diff --git a/dist/stormpath-sdk-react.js b/dist/stormpath-sdk-react.js index 1283c70..7268d2e 100644 --- a/dist/stormpath-sdk-react.js +++ b/dist/stormpath-sdk-react.js @@ -52,7 +52,7 @@ return /******/ (function(modules) { // webpackBootstrap /************************************************************************/ /******/ ([ /* 0 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -83,75 +83,75 @@ return /******/ (function(modules) { // webpackBootstrap var _UserConstants2 = _interopRequireDefault(_UserConstants); - var _HomeRoute2 = __webpack_require__(95); + var _HomeRoute2 = __webpack_require__(105); var _HomeRoute3 = _interopRequireDefault(_HomeRoute2); - var _LoginRoute2 = __webpack_require__(96); + var _LoginRoute2 = __webpack_require__(106); var _LoginRoute3 = _interopRequireDefault(_LoginRoute2); - var _LogoutRoute2 = __webpack_require__(97); + var _LogoutRoute2 = __webpack_require__(107); var _LogoutRoute3 = _interopRequireDefault(_LogoutRoute2); - var _AuthenticatedRoute2 = __webpack_require__(98); + var _AuthenticatedRoute2 = __webpack_require__(108); var _AuthenticatedRoute3 = _interopRequireDefault(_AuthenticatedRoute2); - var _Authenticated2 = __webpack_require__(99); + var _Authenticated2 = __webpack_require__(109); var _Authenticated3 = _interopRequireDefault(_Authenticated2); - var _NotAuthenticated2 = __webpack_require__(100); + var _NotAuthenticated2 = __webpack_require__(110); var _NotAuthenticated3 = _interopRequireDefault(_NotAuthenticated2); - var _LoginLink2 = __webpack_require__(101); + var _LoginLink2 = __webpack_require__(111); var _LoginLink3 = _interopRequireDefault(_LoginLink2); - var _LogoutLink2 = __webpack_require__(102); + var _LogoutLink2 = __webpack_require__(112); var _LogoutLink3 = _interopRequireDefault(_LogoutLink2); - var _LoginForm2 = __webpack_require__(103); + var _LoginForm2 = __webpack_require__(113); var _LoginForm3 = _interopRequireDefault(_LoginForm2); - var _UserProfileForm2 = __webpack_require__(108); + var _UserProfileForm2 = __webpack_require__(118); var _UserProfileForm3 = _interopRequireDefault(_UserProfileForm2); - var _RegistrationForm2 = __webpack_require__(109); + var _RegistrationForm2 = __webpack_require__(119); var _RegistrationForm3 = _interopRequireDefault(_RegistrationForm2); - var _ResetPasswordForm2 = __webpack_require__(110); + var _ResetPasswordForm2 = __webpack_require__(120); var _ResetPasswordForm3 = _interopRequireDefault(_ResetPasswordForm2); - var _ChangePasswordForm2 = __webpack_require__(111); + var _ChangePasswordForm2 = __webpack_require__(121); var _ChangePasswordForm3 = _interopRequireDefault(_ChangePasswordForm2); - var _VerifyEmailView2 = __webpack_require__(112); + var _VerifyEmailView2 = __webpack_require__(122); var _VerifyEmailView3 = _interopRequireDefault(_VerifyEmailView2); - var _SocialLoginLink2 = __webpack_require__(106); + var _SocialLoginLink2 = __webpack_require__(116); var _SocialLoginLink3 = _interopRequireDefault(_SocialLoginLink2); - var _SocialLoginButton2 = __webpack_require__(105); + var _SocialLoginButton2 = __webpack_require__(115); var _SocialLoginButton3 = _interopRequireDefault(_SocialLoginButton2); - var _UserField2 = __webpack_require__(113); + var _UserField2 = __webpack_require__(123); var _UserField3 = _interopRequireDefault(_UserField2); - var _UserComponent2 = __webpack_require__(114); + var _UserComponent2 = __webpack_require__(124); var _UserComponent3 = _interopRequireDefault(_UserComponent2); @@ -194,9 +194,9 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = _app2.default; -/***/ }, +/***/ }), /* 1 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -370,9 +370,9 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = new App(); -/***/ }, +/***/ }), /* 2 */ -/***/ function(module, exports) { +/***/ (function(module, exports) { // Copyright Joyent, Inc. and other Node contributors. // @@ -678,9 +678,9 @@ return /******/ (function(modules) { // webpackBootstrap } -/***/ }, +/***/ }), /* 3 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -697,9 +697,9 @@ return /******/ (function(modules) { // webpackBootstrap exports.LocalStorage = _LocalStorage3.default; -/***/ }, +/***/ }), /* 4 */ -/***/ function(module, exports) { +/***/ (function(module, exports) { 'use strict'; @@ -752,9 +752,9 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = LocalStorage; -/***/ }, +/***/ }), /* 5 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -786,9 +786,9 @@ return /******/ (function(modules) { // webpackBootstrap exports.UserService = _UserService3.default; exports.ClientApiUserService = _ClientApiUserService3.default; -/***/ }, +/***/ }), /* 6 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -930,7 +930,7 @@ return /******/ (function(modules) { // webpackBootstrap // Only set the X-Stormpath-Agent header if we're on the same domain as the requested URI. // This because we want to avoid CORS requests that require you to have to whitelist the X-Stormpath-Agent header. if (this.forceAgentHeader || _utils2.default.isRelativeUri(uri) || _utils2.default.isSameHost(uri, window.location.href)) { - headers['X-Stormpath-Agent'] = 'stormpath-sdk-react/' + ("3.0.0") + ' react/' + _react2.default.version; + headers['X-Stormpath-Agent'] = 'stormpath-sdk-react/' + ("3.1.0") + ' react/' + _react2.default.version; } makeHttpRequest(method, uri, body, headers, function (err, result) { @@ -962,15 +962,15 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = BaseService; -/***/ }, +/***/ }), /* 7 */ -/***/ function(module, exports) { +/***/ (function(module, exports) { module.exports = __WEBPACK_EXTERNAL_MODULE_7__; -/***/ }, +/***/ }), /* 8 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -1611,9 +1611,9 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = new Utils(); -/***/ }, +/***/ }), /* 9 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { // Copyright Joyent, Inc. and other Node contributors. // @@ -2349,9 +2349,9 @@ return /******/ (function(modules) { // webpackBootstrap }; -/***/ }, +/***/ }), /* 10 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_RESULT__;/* WEBPACK VAR INJECTION */(function(module, global) {/*! https://mths.be/punycode v1.3.2 by @mathias */ ;(function(root) { @@ -2884,9 +2884,9 @@ return /******/ (function(modules) { // webpackBootstrap /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(11)(module), (function() { return this; }()))) -/***/ }, +/***/ }), /* 11 */ -/***/ function(module, exports) { +/***/ (function(module, exports) { module.exports = function(module) { if(!module.webpackPolyfill) { @@ -2900,9 +2900,9 @@ return /******/ (function(modules) { // webpackBootstrap } -/***/ }, +/***/ }), /* 12 */ -/***/ function(module, exports) { +/***/ (function(module, exports) { 'use strict'; @@ -2922,9 +2922,9 @@ return /******/ (function(modules) { // webpackBootstrap }; -/***/ }, +/***/ }), /* 13 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -2932,9 +2932,9 @@ return /******/ (function(modules) { // webpackBootstrap exports.encode = exports.stringify = __webpack_require__(15); -/***/ }, +/***/ }), /* 14 */ -/***/ function(module, exports) { +/***/ (function(module, exports) { // Copyright Joyent, Inc. and other Node contributors. // @@ -3018,9 +3018,9 @@ return /******/ (function(modules) { // webpackBootstrap }; -/***/ }, +/***/ }), /* 15 */ -/***/ function(module, exports) { +/***/ (function(module, exports) { // Copyright Joyent, Inc. and other Node contributors. // @@ -3088,9 +3088,9 @@ return /******/ (function(modules) { // webpackBootstrap }; -/***/ }, +/***/ }), /* 16 */ -/***/ function(module, exports) { +/***/ (function(module, exports) { "use strict"; @@ -3133,9 +3133,9 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = RequestPool; -/***/ }, +/***/ }), /* 17 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -3260,9 +3260,9 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = UserService; -/***/ }, +/***/ }), /* 18 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -3481,9 +3481,9 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = ClientApiUserService; -/***/ }, +/***/ }), /* 19 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -3546,9 +3546,9 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = new TokenActions(); -/***/ }, +/***/ }), /* 20 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -3629,9 +3629,9 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = new Context(); -/***/ }, +/***/ }), /* 21 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -3712,9 +3712,9 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = SessionStore; -/***/ }, +/***/ }), /* 22 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -3763,9 +3763,9 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = BaseStore; -/***/ }, +/***/ }), /* 23 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -3784,9 +3784,9 @@ return /******/ (function(modules) { // webpackBootstrap TOKEN_REFRESH: null }); -/***/ }, +/***/ }), /* 24 */ -/***/ function(module, exports) { +/***/ (function(module, exports) { /** * Copyright 2013-2014 Facebook, Inc. @@ -3843,9 +3843,9 @@ return /******/ (function(modules) { // webpackBootstrap module.exports = keyMirror; -/***/ }, +/***/ }), /* 25 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -3867,9 +3867,9 @@ return /******/ (function(modules) { // webpackBootstrap exports.UserConstants = _UserConstants3.default; exports.TokenConstants = _TokenConstants3.default; -/***/ }, +/***/ }), /* 26 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -3894,9 +3894,9 @@ return /******/ (function(modules) { // webpackBootstrap USER_LOGOUT: null }); -/***/ }, +/***/ }), /* 27 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -3923,9 +3923,9 @@ return /******/ (function(modules) { // webpackBootstrap exports.SessionStore = _SessionStore3.default; exports.TokenStore = _TokenStore3.default; -/***/ }, +/***/ }), /* 28 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -4117,9 +4117,9 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = UserStore; -/***/ }, +/***/ }), /* 29 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -4235,9 +4235,9 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = new UserActions(); -/***/ }, +/***/ }), /* 30 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -4338,9 +4338,9 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = TokenStore; -/***/ }, +/***/ }), /* 31 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -4362,9 +4362,9 @@ return /******/ (function(modules) { // webpackBootstrap exports.FluxDispatcher = _FluxDispatcher3.default; exports.ReduxDispatcher = _ReduxDispatcher3.default; -/***/ }, +/***/ }), /* 32 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -4415,12 +4415,12 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = FluxDispatcher; -/***/ }, +/***/ }), /* 33 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { /** - * Copyright (c) 2014-2015, Facebook, Inc. + * Copyright (c) 2014-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the @@ -4431,12 +4431,12 @@ return /******/ (function(modules) { // webpackBootstrap module.exports.Dispatcher = __webpack_require__(34); -/***/ }, +/***/ }), /* 34 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {/** - * Copyright (c) 2014-2015, Facebook, Inc. + * Copyright (c) 2014-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the @@ -4668,9 +4668,9 @@ return /******/ (function(modules) { // webpackBootstrap module.exports = Dispatcher; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, +/***/ }), /* 35 */ -/***/ function(module, exports) { +/***/ (function(module, exports) { // shim for using process in browser var process = module.exports = {}; @@ -4842,6 +4842,10 @@ return /******/ (function(modules) { // webpackBootstrap process.removeListener = noop; process.removeAllListeners = noop; process.emit = noop; + process.prependListener = noop; + process.prependOnceListener = noop; + + process.listeners = function (name) { return [] } process.binding = function (name) { throw new Error('process.binding is not supported'); @@ -4854,17 +4858,15 @@ return /******/ (function(modules) { // webpackBootstrap process.umask = function() { return 0; }; -/***/ }, +/***/ }), /* 36 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {/** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ @@ -4915,9 +4917,9 @@ return /******/ (function(modules) { // webpackBootstrap module.exports = invariant; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, +/***/ }), /* 37 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -4957,9 +4959,9 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = ReduxDispatcher; -/***/ }, +/***/ }), /* 38 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -4988,19 +4990,19 @@ return /******/ (function(modules) { // webpackBootstrap var _context2 = _interopRequireDefault(_context); - var _HomeRoute = __webpack_require__(95); + var _HomeRoute = __webpack_require__(105); var _HomeRoute2 = _interopRequireDefault(_HomeRoute); - var _LoginRoute = __webpack_require__(96); + var _LoginRoute = __webpack_require__(106); var _LoginRoute2 = _interopRequireDefault(_LoginRoute); - var _LogoutRoute = __webpack_require__(97); + var _LogoutRoute = __webpack_require__(107); var _LogoutRoute2 = _interopRequireDefault(_LogoutRoute); - var _AuthenticatedRoute = __webpack_require__(98); + var _AuthenticatedRoute = __webpack_require__(108); var _AuthenticatedRoute2 = _interopRequireDefault(_AuthenticatedRoute); @@ -5145,9 +5147,9 @@ return /******/ (function(modules) { // webpackBootstrap }, _class.defaultProps = _reactRouter.Router.defaultProps, _temp); exports.default = Router; -/***/ }, +/***/ }), /* 39 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -5178,7 +5180,7 @@ return /******/ (function(modules) { // webpackBootstrap } }); - var _PatternUtils = __webpack_require__(42); + var _PatternUtils = __webpack_require__(50); Object.defineProperty(exports, 'formatPattern', { enumerable: true, @@ -5187,63 +5189,63 @@ return /******/ (function(modules) { // webpackBootstrap } }); - var _Router2 = __webpack_require__(44); + var _Router2 = __webpack_require__(52); var _Router3 = _interopRequireDefault(_Router2); - var _Link2 = __webpack_require__(60); + var _Link2 = __webpack_require__(71); var _Link3 = _interopRequireDefault(_Link2); - var _IndexLink2 = __webpack_require__(61); + var _IndexLink2 = __webpack_require__(72); var _IndexLink3 = _interopRequireDefault(_IndexLink2); - var _withRouter2 = __webpack_require__(62); + var _withRouter2 = __webpack_require__(73); var _withRouter3 = _interopRequireDefault(_withRouter2); - var _IndexRedirect2 = __webpack_require__(64); + var _IndexRedirect2 = __webpack_require__(75); var _IndexRedirect3 = _interopRequireDefault(_IndexRedirect2); - var _IndexRoute2 = __webpack_require__(66); + var _IndexRoute2 = __webpack_require__(77); var _IndexRoute3 = _interopRequireDefault(_IndexRoute2); - var _Redirect2 = __webpack_require__(65); + var _Redirect2 = __webpack_require__(76); var _Redirect3 = _interopRequireDefault(_Redirect2); - var _Route2 = __webpack_require__(67); + var _Route2 = __webpack_require__(78); var _Route3 = _interopRequireDefault(_Route2); - var _RouterContext2 = __webpack_require__(56); + var _RouterContext2 = __webpack_require__(67); var _RouterContext3 = _interopRequireDefault(_RouterContext2); - var _match2 = __webpack_require__(68); + var _match2 = __webpack_require__(79); var _match3 = _interopRequireDefault(_match2); - var _useRouterHistory2 = __webpack_require__(82); + var _useRouterHistory2 = __webpack_require__(92); var _useRouterHistory3 = _interopRequireDefault(_useRouterHistory2); - var _applyRouterMiddleware2 = __webpack_require__(83); + var _applyRouterMiddleware2 = __webpack_require__(93); var _applyRouterMiddleware3 = _interopRequireDefault(_applyRouterMiddleware2); - var _browserHistory2 = __webpack_require__(84); + var _browserHistory2 = __webpack_require__(94); var _browserHistory3 = _interopRequireDefault(_browserHistory2); - var _hashHistory2 = __webpack_require__(92); + var _hashHistory2 = __webpack_require__(102); var _hashHistory3 = _interopRequireDefault(_hashHistory2); - var _createMemoryHistory2 = __webpack_require__(70); + var _createMemoryHistory2 = __webpack_require__(81); var _createMemoryHistory3 = _interopRequireDefault(_createMemoryHistory2); @@ -5275,9 +5277,9 @@ return /******/ (function(modules) { // webpackBootstrap exports.hashHistory = _hashHistory3.default; exports.createMemoryHistory = _createMemoryHistory3.default; -/***/ }, +/***/ }), /* 40 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -5373,531 +5375,2453 @@ return /******/ (function(modules) { // webpackBootstrap return routes; } -/***/ }, +/***/ }), /* 41 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { 'use strict'; exports.__esModule = true; exports.locationShape = exports.routerShape = undefined; - var _react = __webpack_require__(7); + var _propTypes = __webpack_require__(42); - var func = _react.PropTypes.func, - object = _react.PropTypes.object, - shape = _react.PropTypes.shape, - string = _react.PropTypes.string; - var routerShape = exports.routerShape = shape({ - push: func.isRequired, - replace: func.isRequired, - go: func.isRequired, - goBack: func.isRequired, - goForward: func.isRequired, - setRouteLeaveHook: func.isRequired, - isActive: func.isRequired + var routerShape = exports.routerShape = (0, _propTypes.shape)({ + push: _propTypes.func.isRequired, + replace: _propTypes.func.isRequired, + go: _propTypes.func.isRequired, + goBack: _propTypes.func.isRequired, + goForward: _propTypes.func.isRequired, + setRouteLeaveHook: _propTypes.func.isRequired, + isActive: _propTypes.func.isRequired }); - var locationShape = exports.locationShape = shape({ - pathname: string.isRequired, - search: string.isRequired, - state: object, - action: string.isRequired, - key: string + var locationShape = exports.locationShape = (0, _propTypes.shape)({ + pathname: _propTypes.string.isRequired, + search: _propTypes.string.isRequired, + state: _propTypes.object, + action: _propTypes.string.isRequired, + key: _propTypes.string }); -/***/ }, +/***/ }), /* 42 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { - /* WEBPACK VAR INJECTION */(function(process) {'use strict'; + /* WEBPACK VAR INJECTION */(function(process) {/** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ - exports.__esModule = true; - exports.compilePattern = compilePattern; - exports.matchPattern = matchPattern; - exports.getParamNames = getParamNames; - exports.getParams = getParams; - exports.formatPattern = formatPattern; + if (process.env.NODE_ENV !== 'production') { + var REACT_ELEMENT_TYPE = (typeof Symbol === 'function' && + Symbol.for && + Symbol.for('react.element')) || + 0xeac7; + + var isValidElement = function(object) { + return typeof object === 'object' && + object !== null && + object.$$typeof === REACT_ELEMENT_TYPE; + }; - var _invariant = __webpack_require__(43); + // By explicitly using `prop-types` you are opting into new development behavior. + // http://fb.me/prop-types-in-prod + var throwOnDirectAccess = true; + module.exports = __webpack_require__(43)(isValidElement, throwOnDirectAccess); + } else { + // By explicitly using `prop-types` you are opting into new production behavior. + // http://fb.me/prop-types-in-prod + module.exports = __webpack_require__(49)(); + } - var _invariant2 = _interopRequireDefault(_invariant); + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } +/***/ }), +/* 43 */ +/***/ (function(module, exports, __webpack_require__) { - function escapeRegExp(string) { - return string.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); - } + /* WEBPACK VAR INJECTION */(function(process) {/** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ - function _compilePattern(pattern) { - var regexpSource = ''; - var paramNames = []; - var tokens = []; + 'use strict'; - var match = void 0, - lastIndex = 0, - matcher = /:([a-zA-Z_$][a-zA-Z0-9_$]*)|\*\*|\*|\(|\)|\\\(|\\\)/g; - while (match = matcher.exec(pattern)) { - if (match.index !== lastIndex) { - tokens.push(pattern.slice(lastIndex, match.index)); - regexpSource += escapeRegExp(pattern.slice(lastIndex, match.index)); - } + var emptyFunction = __webpack_require__(44); + var invariant = __webpack_require__(36); + var warning = __webpack_require__(45); + var assign = __webpack_require__(46); - if (match[1]) { - regexpSource += '([^/]+)'; - paramNames.push(match[1]); - } else if (match[0] === '**') { - regexpSource += '(.*)'; - paramNames.push('splat'); - } else if (match[0] === '*') { - regexpSource += '(.*?)'; - paramNames.push('splat'); - } else if (match[0] === '(') { - regexpSource += '(?:'; - } else if (match[0] === ')') { - regexpSource += ')?'; - } else if (match[0] === '\\(') { - regexpSource += '\\('; - } else if (match[0] === '\\)') { - regexpSource += '\\)'; - } + var ReactPropTypesSecret = __webpack_require__(47); + var checkPropTypes = __webpack_require__(48); - tokens.push(match[0]); + module.exports = function(isValidElement, throwOnDirectAccess) { + /* global Symbol */ + var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator; + var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec. - lastIndex = matcher.lastIndex; + /** + * Returns the iterator method function contained on the iterable object. + * + * Be sure to invoke the function with the iterable as context: + * + * var iteratorFn = getIteratorFn(myIterable); + * if (iteratorFn) { + * var iterator = iteratorFn.call(myIterable); + * ... + * } + * + * @param {?object} maybeIterable + * @return {?function} + */ + function getIteratorFn(maybeIterable) { + var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]); + if (typeof iteratorFn === 'function') { + return iteratorFn; + } } - if (lastIndex !== pattern.length) { - tokens.push(pattern.slice(lastIndex, pattern.length)); - regexpSource += escapeRegExp(pattern.slice(lastIndex, pattern.length)); - } + /** + * Collection of methods that allow declaration and validation of props that are + * supplied to React components. Example usage: + * + * var Props = require('ReactPropTypes'); + * var MyArticle = React.createClass({ + * propTypes: { + * // An optional string prop named "description". + * description: Props.string, + * + * // A required enum prop named "category". + * category: Props.oneOf(['News','Photos']).isRequired, + * + * // A prop named "dialog" that requires an instance of Dialog. + * dialog: Props.instanceOf(Dialog).isRequired + * }, + * render: function() { ... } + * }); + * + * A more formal specification of how these methods are used: + * + * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...) + * decl := ReactPropTypes.{type}(.isRequired)? + * + * Each and every declaration produces a function with the same signature. This + * allows the creation of custom validation functions. For example: + * + * var MyLink = React.createClass({ + * propTypes: { + * // An optional string or URI prop named "href". + * href: function(props, propName, componentName) { + * var propValue = props[propName]; + * if (propValue != null && typeof propValue !== 'string' && + * !(propValue instanceof URI)) { + * return new Error( + * 'Expected a string or an URI for ' + propName + ' in ' + + * componentName + * ); + * } + * } + * }, + * render: function() {...} + * }); + * + * @internal + */ - return { - pattern: pattern, - regexpSource: regexpSource, - paramNames: paramNames, - tokens: tokens + var ANONYMOUS = '<>'; + + // Important! + // Keep this list in sync with production version in `./factoryWithThrowingShims.js`. + var ReactPropTypes = { + array: createPrimitiveTypeChecker('array'), + bool: createPrimitiveTypeChecker('boolean'), + func: createPrimitiveTypeChecker('function'), + number: createPrimitiveTypeChecker('number'), + object: createPrimitiveTypeChecker('object'), + string: createPrimitiveTypeChecker('string'), + symbol: createPrimitiveTypeChecker('symbol'), + + any: createAnyTypeChecker(), + arrayOf: createArrayOfTypeChecker, + element: createElementTypeChecker(), + instanceOf: createInstanceTypeChecker, + node: createNodeChecker(), + objectOf: createObjectOfTypeChecker, + oneOf: createEnumTypeChecker, + oneOfType: createUnionTypeChecker, + shape: createShapeTypeChecker, + exact: createStrictShapeTypeChecker, }; - } - var CompiledPatternsCache = Object.create(null); + /** + * inlined Object.is polyfill to avoid requiring consumers ship their own + * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is + */ + /*eslint-disable no-self-compare*/ + function is(x, y) { + // SameValue algorithm + if (x === y) { + // Steps 1-5, 7-10 + // Steps 6.b-6.e: +0 != -0 + return x !== 0 || 1 / x === 1 / y; + } else { + // Step 6.a: NaN == NaN + return x !== x && y !== y; + } + } + /*eslint-enable no-self-compare*/ - function compilePattern(pattern) { - if (!CompiledPatternsCache[pattern]) CompiledPatternsCache[pattern] = _compilePattern(pattern); + /** + * We use an Error-like object for backward compatibility as people may call + * PropTypes directly and inspect their output. However, we don't use real + * Errors anymore. We don't inspect their stack anyway, and creating them + * is prohibitively expensive if they are created too often, such as what + * happens in oneOfType() for any type before the one that matched. + */ + function PropTypeError(message) { + this.message = message; + this.stack = ''; + } + // Make `instanceof Error` still work for returned errors. + PropTypeError.prototype = Error.prototype; + + function createChainableTypeChecker(validate) { + if (process.env.NODE_ENV !== 'production') { + var manualPropTypeCallCache = {}; + var manualPropTypeWarningCount = 0; + } + function checkType(isRequired, props, propName, componentName, location, propFullName, secret) { + componentName = componentName || ANONYMOUS; + propFullName = propFullName || propName; + + if (secret !== ReactPropTypesSecret) { + if (throwOnDirectAccess) { + // New behavior only for users of `prop-types` package + invariant( + false, + 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' + + 'Use `PropTypes.checkPropTypes()` to call them. ' + + 'Read more at http://fb.me/use-check-prop-types' + ); + } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') { + // Old behavior for people using React.PropTypes + var cacheKey = componentName + ':' + propName; + if ( + !manualPropTypeCallCache[cacheKey] && + // Avoid spamming the console because they are often not actionable except for lib authors + manualPropTypeWarningCount < 3 + ) { + warning( + false, + 'You are manually calling a React.PropTypes validation ' + + 'function for the `%s` prop on `%s`. This is deprecated ' + + 'and will throw in the standalone `prop-types` package. ' + + '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 + ); + manualPropTypeCallCache[cacheKey] = true; + manualPropTypeWarningCount++; + } + } + } + if (props[propName] == null) { + if (isRequired) { + if (props[propName] === null) { + return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.')); + } + return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.')); + } + return null; + } else { + return validate(props, propName, componentName, location, propFullName); + } + } - return CompiledPatternsCache[pattern]; - } + var chainedCheckType = checkType.bind(null, false); + chainedCheckType.isRequired = checkType.bind(null, true); - /** - * Attempts to match a pattern on the given pathname. Patterns may use - * the following special characters: - * - * - :paramName Matches a URL segment up to the next /, ?, or #. The - * captured string is considered a "param" - * - () Wraps a segment of the URL that is optional - * - * Consumes (non-greedy) all characters up to the next - * character in the pattern, or to the end of the URL if - * there is none - * - ** Consumes (greedy) all characters up to the next character - * in the pattern, or to the end of the URL if there is none - * - * The function calls callback(error, matched) when finished. - * The return value is an object with the following properties: - * - * - remainingPathname - * - paramNames - * - paramValues - */ - function matchPattern(pattern, pathname) { - // Ensure pattern starts with leading slash for consistency with pathname. - if (pattern.charAt(0) !== '/') { - pattern = '/' + pattern; + return chainedCheckType; } - var _compilePattern2 = compilePattern(pattern), - regexpSource = _compilePattern2.regexpSource, - paramNames = _compilePattern2.paramNames, - tokens = _compilePattern2.tokens; + function createPrimitiveTypeChecker(expectedType) { + function validate(props, propName, componentName, location, propFullName, secret) { + var propValue = props[propName]; + var propType = getPropType(propValue); + if (propType !== expectedType) { + // `propValue` being instance of, say, date/regexp, pass the 'object' + // check, but we can offer a more precise error message here rather than + // 'of type `object`'. + var preciseType = getPreciseType(propValue); - if (pattern.charAt(pattern.length - 1) !== '/') { - regexpSource += '/?'; // Allow optional path separator at end. + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.')); + } + return null; + } + return createChainableTypeChecker(validate); } - // Special-case patterns like '*' for catch-all routes. - if (tokens[tokens.length - 1] === '*') { - regexpSource += '$'; + function createAnyTypeChecker() { + return createChainableTypeChecker(emptyFunction.thatReturnsNull); } - var match = pathname.match(new RegExp('^' + regexpSource, 'i')); - if (match == null) { - return null; + function createArrayOfTypeChecker(typeChecker) { + function validate(props, propName, componentName, location, propFullName) { + if (typeof typeChecker !== 'function') { + return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.'); + } + var propValue = props[propName]; + if (!Array.isArray(propValue)) { + var propType = getPropType(propValue); + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.')); + } + for (var i = 0; i < propValue.length; i++) { + var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret); + if (error instanceof Error) { + return error; + } + } + return null; + } + return createChainableTypeChecker(validate); } - var matchedPath = match[0]; - var remainingPathname = pathname.substr(matchedPath.length); - - if (remainingPathname) { - // Require that the match ends at a path separator, if we didn't match - // the full path, so any remaining pathname is a new path segment. - if (matchedPath.charAt(matchedPath.length - 1) !== '/') { + function createElementTypeChecker() { + function validate(props, propName, componentName, location, propFullName) { + var propValue = props[propName]; + if (!isValidElement(propValue)) { + var propType = getPropType(propValue); + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.')); + } return null; } + return createChainableTypeChecker(validate); + } - // If there is a remaining pathname, treat the path separator as part of - // the remaining pathname for properly continuing the match. - remainingPathname = '/' + remainingPathname; + function createInstanceTypeChecker(expectedClass) { + function validate(props, propName, componentName, location, propFullName) { + if (!(props[propName] instanceof expectedClass)) { + var expectedClassName = expectedClass.name || ANONYMOUS; + var actualClassName = getClassName(props[propName]); + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.')); + } + return null; + } + return createChainableTypeChecker(validate); } - return { - remainingPathname: remainingPathname, - paramNames: paramNames, - paramValues: match.slice(1).map(function (v) { - return v && decodeURIComponent(v); - }) - }; - } + function createEnumTypeChecker(expectedValues) { + if (!Array.isArray(expectedValues)) { + process.env.NODE_ENV !== 'production' ? warning(false, 'Invalid argument supplied to oneOf, expected an instance of array.') : void 0; + return emptyFunction.thatReturnsNull; + } - function getParamNames(pattern) { - return compilePattern(pattern).paramNames; - } + function validate(props, propName, componentName, location, propFullName) { + var propValue = props[propName]; + for (var i = 0; i < expectedValues.length; i++) { + if (is(propValue, expectedValues[i])) { + return null; + } + } - function getParams(pattern, pathname) { - var match = matchPattern(pattern, pathname); - if (!match) { - return null; + var valuesString = JSON.stringify(expectedValues); + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.')); + } + return createChainableTypeChecker(validate); } - var paramNames = match.paramNames, - paramValues = match.paramValues; + function createObjectOfTypeChecker(typeChecker) { + function validate(props, propName, componentName, location, propFullName) { + if (typeof typeChecker !== 'function') { + return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.'); + } + var propValue = props[propName]; + var propType = getPropType(propValue); + if (propType !== 'object') { + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.')); + } + for (var key in propValue) { + if (propValue.hasOwnProperty(key)) { + var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret); + if (error instanceof Error) { + return error; + } + } + } + return null; + } + return createChainableTypeChecker(validate); + } - var params = {}; + function createUnionTypeChecker(arrayOfTypeCheckers) { + if (!Array.isArray(arrayOfTypeCheckers)) { + process.env.NODE_ENV !== 'production' ? warning(false, 'Invalid argument supplied to oneOfType, expected an instance of array.') : void 0; + return emptyFunction.thatReturnsNull; + } - paramNames.forEach(function (paramName, index) { - params[paramName] = paramValues[index]; - }); + for (var i = 0; i < arrayOfTypeCheckers.length; i++) { + var checker = arrayOfTypeCheckers[i]; + if (typeof checker !== 'function') { + warning( + false, + 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' + + 'received %s at index %s.', + getPostfixForTypeWarning(checker), + i + ); + return emptyFunction.thatReturnsNull; + } + } - return params; - } + function validate(props, propName, componentName, location, propFullName) { + for (var i = 0; i < arrayOfTypeCheckers.length; i++) { + var checker = arrayOfTypeCheckers[i]; + if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret) == null) { + return null; + } + } - /** - * Returns a version of the given pattern with params interpolated. Throws - * if there is a dynamic segment of the pattern for which there is no param. - */ - function formatPattern(pattern, params) { - params = params || {}; + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.')); + } + return createChainableTypeChecker(validate); + } - var _compilePattern3 = compilePattern(pattern), - tokens = _compilePattern3.tokens; + function createNodeChecker() { + function validate(props, propName, componentName, location, propFullName) { + if (!isNode(props[propName])) { + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.')); + } + return null; + } + return createChainableTypeChecker(validate); + } - var parenCount = 0, - pathname = '', - splatIndex = 0, - parenHistory = []; + function createShapeTypeChecker(shapeTypes) { + function validate(props, propName, componentName, location, propFullName) { + var propValue = props[propName]; + var propType = getPropType(propValue); + if (propType !== 'object') { + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.')); + } + for (var key in shapeTypes) { + var checker = shapeTypes[key]; + if (!checker) { + continue; + } + var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret); + if (error) { + return error; + } + } + return null; + } + return createChainableTypeChecker(validate); + } + + function createStrictShapeTypeChecker(shapeTypes) { + function validate(props, propName, componentName, location, propFullName) { + var propValue = props[propName]; + var propType = getPropType(propValue); + if (propType !== 'object') { + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.')); + } + // We need to check all keys in case some are required but missing from + // props. + var allKeys = assign({}, props[propName], shapeTypes); + for (var key in allKeys) { + var checker = shapeTypes[key]; + if (!checker) { + return new PropTypeError( + 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' + + '\nBad object: ' + JSON.stringify(props[propName], null, ' ') + + '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ') + ); + } + var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret); + if (error) { + return error; + } + } + return null; + } - var token = void 0, - paramName = void 0, - paramValue = void 0; - for (var i = 0, len = tokens.length; i < len; ++i) { - token = tokens[i]; + return createChainableTypeChecker(validate); + } - if (token === '*' || token === '**') { - paramValue = Array.isArray(params.splat) ? params.splat[splatIndex++] : params.splat; + function isNode(propValue) { + switch (typeof propValue) { + case 'number': + case 'string': + case 'undefined': + return true; + case 'boolean': + return !propValue; + case 'object': + if (Array.isArray(propValue)) { + return propValue.every(isNode); + } + if (propValue === null || isValidElement(propValue)) { + return true; + } - !(paramValue != null || parenCount > 0) ? process.env.NODE_ENV !== 'production' ? (0, _invariant2.default)(false, 'Missing splat #%s for path "%s"', splatIndex, pattern) : (0, _invariant2.default)(false) : void 0; + var iteratorFn = getIteratorFn(propValue); + if (iteratorFn) { + var iterator = iteratorFn.call(propValue); + var step; + if (iteratorFn !== propValue.entries) { + while (!(step = iterator.next()).done) { + if (!isNode(step.value)) { + return false; + } + } + } else { + // Iterator will provide entry [k,v] tuples rather than values. + while (!(step = iterator.next()).done) { + var entry = step.value; + if (entry) { + if (!isNode(entry[1])) { + return false; + } + } + } + } + } else { + return false; + } - if (paramValue != null) pathname += encodeURI(paramValue); - } else if (token === '(') { - parenHistory[parenCount] = ''; - parenCount += 1; - } else if (token === ')') { - var parenText = parenHistory.pop(); - parenCount -= 1; + return true; + default: + return false; + } + } - if (parenCount) parenHistory[parenCount - 1] += parenText;else pathname += parenText; - } else if (token === '\\(') { - pathname += '('; - } else if (token === '\\)') { - pathname += ')'; - } else if (token.charAt(0) === ':') { - paramName = token.substring(1); - paramValue = params[paramName]; + function isSymbol(propType, propValue) { + // Native Symbol. + if (propType === 'symbol') { + return true; + } - !(paramValue != null || parenCount > 0) ? process.env.NODE_ENV !== 'production' ? (0, _invariant2.default)(false, 'Missing "%s" parameter for path "%s"', paramName, pattern) : (0, _invariant2.default)(false) : void 0; + // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol' + if (propValue['@@toStringTag'] === 'Symbol') { + return true; + } - if (paramValue == null) { - if (parenCount) { - parenHistory[parenCount - 1] = ''; + // Fallback for non-spec compliant Symbols which are polyfilled. + if (typeof Symbol === 'function' && propValue instanceof Symbol) { + return true; + } - var curTokenIdx = tokens.indexOf(token); - var tokensSubset = tokens.slice(curTokenIdx, tokens.length); - var nextParenIdx = -1; + return false; + } - for (var _i = 0; _i < tokensSubset.length; _i++) { - if (tokensSubset[_i] == ')') { - nextParenIdx = _i; - break; - } - } + // Equivalent of `typeof` but with special handling for array and regexp. + function getPropType(propValue) { + var propType = typeof propValue; + if (Array.isArray(propValue)) { + return 'array'; + } + if (propValue instanceof RegExp) { + // Old webkits (at least until Android 4.0) return 'function' rather than + // 'object' for typeof a RegExp. We'll normalize this here so that /bla/ + // passes PropTypes.object. + return 'object'; + } + if (isSymbol(propType, propValue)) { + return 'symbol'; + } + return propType; + } - !(nextParenIdx > 0) ? process.env.NODE_ENV !== 'production' ? (0, _invariant2.default)(false, 'Path "%s" is missing end paren at segment "%s"', pattern, tokensSubset.join('')) : (0, _invariant2.default)(false) : void 0; + // This handles more types than `getPropType`. Only used for error messages. + // See `createPrimitiveTypeChecker`. + function getPreciseType(propValue) { + if (typeof propValue === 'undefined' || propValue === null) { + return '' + propValue; + } + var propType = getPropType(propValue); + if (propType === 'object') { + if (propValue instanceof Date) { + return 'date'; + } else if (propValue instanceof RegExp) { + return 'regexp'; + } + } + return propType; + } - // jump to ending paren - i = curTokenIdx + nextParenIdx - 1; - } - } else if (parenCount) parenHistory[parenCount - 1] += encodeURIComponent(paramValue);else pathname += encodeURIComponent(paramValue); - } else { - if (parenCount) parenHistory[parenCount - 1] += token;else pathname += token; + // Returns a string that is postfixed to a warning about an invalid type. + // For example, "undefined" or "of type array" + function getPostfixForTypeWarning(value) { + var type = getPreciseType(value); + switch (type) { + case 'array': + case 'object': + return 'an ' + type; + case 'boolean': + case 'date': + case 'regexp': + return 'a ' + type; + default: + return type; } } - !(parenCount <= 0) ? process.env.NODE_ENV !== 'production' ? (0, _invariant2.default)(false, 'Path "%s" is missing end paren', pattern) : (0, _invariant2.default)(false) : void 0; + // Returns class name of the object, if any. + function getClassName(propValue) { + if (!propValue.constructor || !propValue.constructor.name) { + return ANONYMOUS; + } + return propValue.constructor.name; + } + + ReactPropTypes.checkPropTypes = checkPropTypes; + ReactPropTypes.PropTypes = ReactPropTypes; + + return ReactPropTypes; + }; - return pathname.replace(/\/+/g, '/'); - } /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 43 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 44 */ +/***/ (function(module, exports) { - /* WEBPACK VAR INJECTION */(function(process) {/** - * Copyright 2013-2015, Facebook, Inc. - * All rights reserved. + "use strict"; + + /** + * Copyright (c) 2013-present, Facebook, Inc. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * */ - 'use strict'; + function makeEmptyFunction(arg) { + return function () { + return arg; + }; + } /** - * Use invariant() to assert state which your program assumes to be true. + * This function accepts and discards inputs; it has no side effects. This is + * primarily useful idiomatically for overridable function endpoints which + * always need to be callable, since JS lacks a null-call idiom ala Cocoa. + */ + var emptyFunction = function emptyFunction() {}; + + emptyFunction.thatReturns = makeEmptyFunction; + emptyFunction.thatReturnsFalse = makeEmptyFunction(false); + emptyFunction.thatReturnsTrue = makeEmptyFunction(true); + emptyFunction.thatReturnsNull = makeEmptyFunction(null); + emptyFunction.thatReturnsThis = function () { + return this; + }; + emptyFunction.thatReturnsArgument = function (arg) { + return arg; + }; + + module.exports = emptyFunction; + +/***/ }), +/* 45 */ +/***/ (function(module, exports, __webpack_require__) { + + /* WEBPACK VAR INJECTION */(function(process) {/** + * Copyright (c) 2014-present, Facebook, Inc. * - * Provide sprintf-style format (only %s is supported) and arguments - * to provide information about what broke and what you were - * expecting. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * - * The invariant message will be stripped in production, but the invariant - * will remain to ensure logic does not differ in production. */ - var invariant = function(condition, format, a, b, c, d, e, f) { - if (process.env.NODE_ENV !== 'production') { - if (format === undefined) { - throw new Error('invariant requires an error message argument'); + 'use strict'; + + var emptyFunction = __webpack_require__(44); + + /** + * Similar to invariant but only logs a warning if the condition is not met. + * This can be used to log issues in development environments in critical + * paths. Removing the logging code for production environments will keep the + * same logic and follow the same code paths. + */ + + var warning = emptyFunction; + + if (process.env.NODE_ENV !== 'production') { + var printWarning = function printWarning(format) { + for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + args[_key - 1] = arguments[_key]; } - } - if (!condition) { - var error; - if (format === undefined) { - error = new Error( - 'Minified exception occurred; use the non-minified dev environment ' + - 'for the full error message and additional helpful warnings.' - ); - } else { - var args = [a, b, c, d, e, f]; - var argIndex = 0; - error = new Error( - format.replace(/%s/g, function() { return args[argIndex++]; }) - ); - error.name = 'Invariant Violation'; + var argIndex = 0; + var message = 'Warning: ' + format.replace(/%s/g, function () { + return args[argIndex++]; + }); + if (typeof console !== 'undefined') { + console.error(message); } + try { + // --- Welcome to debugging React --- + // This error was thrown as a convenience so that you can use this stack + // to find the callsite that caused this warning to fire. + throw new Error(message); + } catch (x) {} + }; - error.framesToPop = 1; // we don't care about invariant's own frame - throw error; - } - }; + warning = function warning(condition, format) { + if (format === undefined) { + throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument'); + } - module.exports = invariant; + if (format.indexOf('Failed Composite propType: ') === 0) { + return; // Ignore CompositeComponent proptype check. + } - /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) + if (!condition) { + for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) { + args[_key2 - 2] = arguments[_key2]; + } -/***/ }, -/* 44 */ -/***/ function(module, exports, __webpack_require__) { + printWarning.apply(undefined, [format].concat(args)); + } + }; + } - /* WEBPACK VAR INJECTION */(function(process) {'use strict'; + module.exports = warning; + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) - exports.__esModule = true; +/***/ }), +/* 46 */ +/***/ (function(module, exports) { - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + /* + object-assign + (c) Sindre Sorhus + @license MIT + */ - var _invariant = __webpack_require__(43); + 'use strict'; + /* eslint-disable no-unused-vars */ + var getOwnPropertySymbols = Object.getOwnPropertySymbols; + var hasOwnProperty = Object.prototype.hasOwnProperty; + var propIsEnumerable = Object.prototype.propertyIsEnumerable; - var _invariant2 = _interopRequireDefault(_invariant); + function toObject(val) { + if (val === null || val === undefined) { + throw new TypeError('Object.assign cannot be called with null or undefined'); + } - var _react = __webpack_require__(7); + return Object(val); + } - var _react2 = _interopRequireDefault(_react); + function shouldUseNative() { + try { + if (!Object.assign) { + return false; + } - var _createTransitionManager2 = __webpack_require__(45); + // Detect buggy property enumeration order in older V8 versions. - var _createTransitionManager3 = _interopRequireDefault(_createTransitionManager2); + // https://bugs.chromium.org/p/v8/issues/detail?id=4118 + var test1 = new String('abc'); // eslint-disable-line no-new-wrappers + test1[5] = 'de'; + if (Object.getOwnPropertyNames(test1)[0] === '5') { + return false; + } - var _InternalPropTypes = __webpack_require__(55); + // https://bugs.chromium.org/p/v8/issues/detail?id=3056 + var test2 = {}; + for (var i = 0; i < 10; i++) { + test2['_' + String.fromCharCode(i)] = i; + } + var order2 = Object.getOwnPropertyNames(test2).map(function (n) { + return test2[n]; + }); + if (order2.join('') !== '0123456789') { + return false; + } - var _RouterContext = __webpack_require__(56); + // https://bugs.chromium.org/p/v8/issues/detail?id=3056 + var test3 = {}; + 'abcdefghijklmnopqrst'.split('').forEach(function (letter) { + test3[letter] = letter; + }); + if (Object.keys(Object.assign({}, test3)).join('') !== + 'abcdefghijklmnopqrst') { + return false; + } - var _RouterContext2 = _interopRequireDefault(_RouterContext); + return true; + } catch (err) { + // We don't expect any of the above to throw, but better to be safe. + return false; + } + } - var _RouteUtils = __webpack_require__(40); + module.exports = shouldUseNative() ? Object.assign : function (target, source) { + var from; + var to = toObject(target); + var symbols; - var _RouterUtils = __webpack_require__(59); + for (var s = 1; s < arguments.length; s++) { + from = Object(arguments[s]); - var _routerWarning = __webpack_require__(46); + for (var key in from) { + if (hasOwnProperty.call(from, key)) { + to[key] = from[key]; + } + } - var _routerWarning2 = _interopRequireDefault(_routerWarning); + if (getOwnPropertySymbols) { + symbols = getOwnPropertySymbols(from); + for (var i = 0; i < symbols.length; i++) { + if (propIsEnumerable.call(from, symbols[i])) { + to[symbols[i]] = from[symbols[i]]; + } + } + } + } - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + return to; + }; - function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } - var _React$PropTypes = _react2.default.PropTypes, - func = _React$PropTypes.func, - object = _React$PropTypes.object; +/***/ }), +/* 47 */ +/***/ (function(module, exports) { /** - * A is a high-level API for automatically setting up - * a router that renders a with all the props - * it needs each time the URL changes. + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ - var Router = _react2.default.createClass({ - displayName: 'Router', + 'use strict'; + + var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'; + + module.exports = ReactPropTypesSecret; + + +/***/ }), +/* 48 */ +/***/ (function(module, exports, __webpack_require__) { + + /* WEBPACK VAR INJECTION */(function(process) {/** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + + 'use strict'; + + if (process.env.NODE_ENV !== 'production') { + var invariant = __webpack_require__(36); + var warning = __webpack_require__(45); + var ReactPropTypesSecret = __webpack_require__(47); + var loggedTypeFailures = {}; + } + + /** + * Assert that the values match with the type specs. + * Error messages are memorized and will only be shown once. + * + * @param {object} typeSpecs Map of name to a ReactPropType + * @param {object} values Runtime values that need to be type-checked + * @param {string} location e.g. "prop", "context", "child context" + * @param {string} componentName Name of the component for error messages. + * @param {?Function} getStack Returns the component stack. + * @private + */ + function checkPropTypes(typeSpecs, values, location, componentName, getStack) { + if (process.env.NODE_ENV !== 'production') { + for (var typeSpecName in typeSpecs) { + if (typeSpecs.hasOwnProperty(typeSpecName)) { + var error; + // Prop type validation may throw. In case they do, we don't want to + // fail the render phase where it didn't fail before. So we log it. + // After these have been cleaned up, we'll let them throw. + try { + // This is intentionally an invariant that gets caught. It's the same + // behavior as without this statement except with a better message. + invariant(typeof typeSpecs[typeSpecName] === 'function', '%s: %s type `%s` is invalid; it must be a function, usually from ' + 'the `prop-types` package, but received `%s`.', componentName || 'React class', location, typeSpecName, typeof typeSpecs[typeSpecName]); + error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret); + } catch (ex) { + error = ex; + } + 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); + if (error instanceof Error && !(error.message in loggedTypeFailures)) { + // Only monitor this failure once because there tends to be a lot of the + // same error. + loggedTypeFailures[error.message] = true; + + var stack = getStack ? getStack() : ''; + + warning(false, 'Failed %s type: %s%s', location, error.message, stack != null ? stack : ''); + } + } + } + } + } + + module.exports = checkPropTypes; + + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) + +/***/ }), +/* 49 */ +/***/ (function(module, exports, __webpack_require__) { + + /** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + + 'use strict'; + + var emptyFunction = __webpack_require__(44); + var invariant = __webpack_require__(36); + var ReactPropTypesSecret = __webpack_require__(47); + + module.exports = function() { + function shim(props, propName, componentName, location, propFullName, secret) { + if (secret === ReactPropTypesSecret) { + // It is still safe when called from React. + return; + } + invariant( + false, + 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' + + 'Use PropTypes.checkPropTypes() to call them. ' + + 'Read more at http://fb.me/use-check-prop-types' + ); + }; + shim.isRequired = shim; + function getShim() { + return shim; + }; + // Important! + // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`. + var ReactPropTypes = { + array: shim, + bool: shim, + func: shim, + number: shim, + object: shim, + string: shim, + symbol: shim, + + any: shim, + arrayOf: getShim, + element: shim, + instanceOf: getShim, + node: shim, + objectOf: getShim, + oneOf: getShim, + oneOfType: getShim, + shape: getShim, + exact: getShim + }; + + ReactPropTypes.checkPropTypes = emptyFunction; + ReactPropTypes.PropTypes = ReactPropTypes; + + return ReactPropTypes; + }; + + +/***/ }), +/* 50 */ +/***/ (function(module, exports, __webpack_require__) { + + /* WEBPACK VAR INJECTION */(function(process) {'use strict'; + + exports.__esModule = true; + exports.compilePattern = compilePattern; + exports.matchPattern = matchPattern; + exports.getParamNames = getParamNames; + exports.getParams = getParams; + exports.formatPattern = formatPattern; + + var _invariant = __webpack_require__(51); + + var _invariant2 = _interopRequireDefault(_invariant); + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + function escapeRegExp(string) { + return string.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); + } + + function _compilePattern(pattern) { + var regexpSource = ''; + var paramNames = []; + var tokens = []; + + var match = void 0, + lastIndex = 0, + matcher = /:([a-zA-Z_$][a-zA-Z0-9_$]*)|\*\*|\*|\(|\)|\\\(|\\\)/g; + while (match = matcher.exec(pattern)) { + if (match.index !== lastIndex) { + tokens.push(pattern.slice(lastIndex, match.index)); + regexpSource += escapeRegExp(pattern.slice(lastIndex, match.index)); + } + + if (match[1]) { + regexpSource += '([^/]+)'; + paramNames.push(match[1]); + } else if (match[0] === '**') { + regexpSource += '(.*)'; + paramNames.push('splat'); + } else if (match[0] === '*') { + regexpSource += '(.*?)'; + paramNames.push('splat'); + } else if (match[0] === '(') { + regexpSource += '(?:'; + } else if (match[0] === ')') { + regexpSource += ')?'; + } else if (match[0] === '\\(') { + regexpSource += '\\('; + } else if (match[0] === '\\)') { + regexpSource += '\\)'; + } + + tokens.push(match[0]); + + lastIndex = matcher.lastIndex; + } + + if (lastIndex !== pattern.length) { + tokens.push(pattern.slice(lastIndex, pattern.length)); + regexpSource += escapeRegExp(pattern.slice(lastIndex, pattern.length)); + } + + return { + pattern: pattern, + regexpSource: regexpSource, + paramNames: paramNames, + tokens: tokens + }; + } + + var CompiledPatternsCache = Object.create(null); + + function compilePattern(pattern) { + if (!CompiledPatternsCache[pattern]) CompiledPatternsCache[pattern] = _compilePattern(pattern); + + return CompiledPatternsCache[pattern]; + } + + /** + * Attempts to match a pattern on the given pathname. Patterns may use + * the following special characters: + * + * - :paramName Matches a URL segment up to the next /, ?, or #. The + * captured string is considered a "param" + * - () Wraps a segment of the URL that is optional + * - * Consumes (non-greedy) all characters up to the next + * character in the pattern, or to the end of the URL if + * there is none + * - ** Consumes (greedy) all characters up to the next character + * in the pattern, or to the end of the URL if there is none + * + * The function calls callback(error, matched) when finished. + * The return value is an object with the following properties: + * + * - remainingPathname + * - paramNames + * - paramValues + */ + function matchPattern(pattern, pathname) { + // Ensure pattern starts with leading slash for consistency with pathname. + if (pattern.charAt(0) !== '/') { + pattern = '/' + pattern; + } + + var _compilePattern2 = compilePattern(pattern), + regexpSource = _compilePattern2.regexpSource, + paramNames = _compilePattern2.paramNames, + tokens = _compilePattern2.tokens; + + if (pattern.charAt(pattern.length - 1) !== '/') { + regexpSource += '/?'; // Allow optional path separator at end. + } + + // Special-case patterns like '*' for catch-all routes. + if (tokens[tokens.length - 1] === '*') { + regexpSource += '$'; + } + + var match = pathname.match(new RegExp('^' + regexpSource, 'i')); + if (match == null) { + return null; + } + + var matchedPath = match[0]; + var remainingPathname = pathname.substr(matchedPath.length); + + if (remainingPathname) { + // Require that the match ends at a path separator, if we didn't match + // the full path, so any remaining pathname is a new path segment. + if (matchedPath.charAt(matchedPath.length - 1) !== '/') { + return null; + } + + // If there is a remaining pathname, treat the path separator as part of + // the remaining pathname for properly continuing the match. + remainingPathname = '/' + remainingPathname; + } + + return { + remainingPathname: remainingPathname, + paramNames: paramNames, + paramValues: match.slice(1).map(function (v) { + return v && decodeURIComponent(v); + }) + }; + } + + function getParamNames(pattern) { + return compilePattern(pattern).paramNames; + } + + function getParams(pattern, pathname) { + var match = matchPattern(pattern, pathname); + if (!match) { + return null; + } + + var paramNames = match.paramNames, + paramValues = match.paramValues; + + var params = {}; + + paramNames.forEach(function (paramName, index) { + params[paramName] = paramValues[index]; + }); + + return params; + } + + /** + * Returns a version of the given pattern with params interpolated. Throws + * if there is a dynamic segment of the pattern for which there is no param. + */ + function formatPattern(pattern, params) { + params = params || {}; + + var _compilePattern3 = compilePattern(pattern), + tokens = _compilePattern3.tokens; + + var parenCount = 0, + pathname = '', + splatIndex = 0, + parenHistory = []; + + var token = void 0, + paramName = void 0, + paramValue = void 0; + for (var i = 0, len = tokens.length; i < len; ++i) { + token = tokens[i]; + + if (token === '*' || token === '**') { + paramValue = Array.isArray(params.splat) ? params.splat[splatIndex++] : params.splat; + + !(paramValue != null || parenCount > 0) ? process.env.NODE_ENV !== 'production' ? (0, _invariant2.default)(false, 'Missing splat #%s for path "%s"', splatIndex, pattern) : (0, _invariant2.default)(false) : void 0; + + if (paramValue != null) pathname += encodeURI(paramValue); + } else if (token === '(') { + parenHistory[parenCount] = ''; + parenCount += 1; + } else if (token === ')') { + var parenText = parenHistory.pop(); + parenCount -= 1; + + if (parenCount) parenHistory[parenCount - 1] += parenText;else pathname += parenText; + } else if (token === '\\(') { + pathname += '('; + } else if (token === '\\)') { + pathname += ')'; + } else if (token.charAt(0) === ':') { + paramName = token.substring(1); + paramValue = params[paramName]; + + !(paramValue != null || parenCount > 0) ? process.env.NODE_ENV !== 'production' ? (0, _invariant2.default)(false, 'Missing "%s" parameter for path "%s"', paramName, pattern) : (0, _invariant2.default)(false) : void 0; + + if (paramValue == null) { + if (parenCount) { + parenHistory[parenCount - 1] = ''; + + var curTokenIdx = tokens.indexOf(token); + var tokensSubset = tokens.slice(curTokenIdx, tokens.length); + var nextParenIdx = -1; + + for (var _i = 0; _i < tokensSubset.length; _i++) { + if (tokensSubset[_i] == ')') { + nextParenIdx = _i; + break; + } + } + + !(nextParenIdx > 0) ? process.env.NODE_ENV !== 'production' ? (0, _invariant2.default)(false, 'Path "%s" is missing end paren at segment "%s"', pattern, tokensSubset.join('')) : (0, _invariant2.default)(false) : void 0; + + // jump to ending paren + i = curTokenIdx + nextParenIdx - 1; + } + } else if (parenCount) parenHistory[parenCount - 1] += encodeURIComponent(paramValue);else pathname += encodeURIComponent(paramValue); + } else { + if (parenCount) parenHistory[parenCount - 1] += token;else pathname += token; + } + } + + !(parenCount <= 0) ? process.env.NODE_ENV !== 'production' ? (0, _invariant2.default)(false, 'Path "%s" is missing end paren', pattern) : (0, _invariant2.default)(false) : void 0; + + return pathname.replace(/\/+/g, '/'); + } + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) + +/***/ }), +/* 51 */ +/***/ (function(module, exports, __webpack_require__) { + + /* WEBPACK VAR INJECTION */(function(process) {/** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + + 'use strict'; + + /** + * Use invariant() to assert state which your program assumes to be true. + * + * Provide sprintf-style format (only %s is supported) and arguments + * to provide information about what broke and what you were + * expecting. + * + * The invariant message will be stripped in production, but the invariant + * will remain to ensure logic does not differ in production. + */ + + var invariant = function(condition, format, a, b, c, d, e, f) { + if (process.env.NODE_ENV !== 'production') { + if (format === undefined) { + throw new Error('invariant requires an error message argument'); + } + } + + if (!condition) { + var error; + if (format === undefined) { + error = new Error( + 'Minified exception occurred; use the non-minified dev environment ' + + 'for the full error message and additional helpful warnings.' + ); + } else { + var args = [a, b, c, d, e, f]; + var argIndex = 0; + error = new Error( + format.replace(/%s/g, function() { return args[argIndex++]; }) + ); + error.name = 'Invariant Violation'; + } + + error.framesToPop = 1; // we don't care about invariant's own frame + throw error; + } + }; + + module.exports = invariant; + + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) + +/***/ }), +/* 52 */ +/***/ (function(module, exports, __webpack_require__) { + + /* WEBPACK VAR INJECTION */(function(process) {'use strict'; + + exports.__esModule = true; + + var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + + var _invariant = __webpack_require__(51); + + var _invariant2 = _interopRequireDefault(_invariant); + + var _react = __webpack_require__(7); + + var _react2 = _interopRequireDefault(_react); + + var _createReactClass = __webpack_require__(53); + + var _createReactClass2 = _interopRequireDefault(_createReactClass); + + var _propTypes = __webpack_require__(42); + + var _createTransitionManager2 = __webpack_require__(56); + + var _createTransitionManager3 = _interopRequireDefault(_createTransitionManager2); + + var _InternalPropTypes = __webpack_require__(66); + + var _RouterContext = __webpack_require__(67); + + var _RouterContext2 = _interopRequireDefault(_RouterContext); + + var _RouteUtils = __webpack_require__(40); + + var _RouterUtils = __webpack_require__(70); + + var _routerWarning = __webpack_require__(57); + + var _routerWarning2 = _interopRequireDefault(_routerWarning); + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } + + var propTypes = { + history: _propTypes.object, + children: _InternalPropTypes.routes, + routes: _InternalPropTypes.routes, // alias for children + render: _propTypes.func, + createElement: _propTypes.func, + onError: _propTypes.func, + onUpdate: _propTypes.func, + + // PRIVATE: For client-side rehydration of server match. + matchContext: _propTypes.object + + /** + * A is a high-level API for automatically setting up + * a router that renders a with all the props + * it needs each time the URL changes. + */ + };var Router = (0, _createReactClass2.default)({ + displayName: 'Router', + + propTypes: propTypes, + + getDefaultProps: function getDefaultProps() { + return { + render: function render(props) { + return _react2.default.createElement(_RouterContext2.default, props); + } + }; + }, + getInitialState: function getInitialState() { + return { + location: null, + routes: null, + params: null, + components: null + }; + }, + handleError: function handleError(error) { + if (this.props.onError) { + this.props.onError.call(this, error); + } else { + // Throw errors by default so we don't silently swallow them! + throw error; // This error probably occurred in getChildRoutes or getComponents. + } + }, + createRouterObject: function createRouterObject(state) { + var matchContext = this.props.matchContext; + + if (matchContext) { + return matchContext.router; + } + + var history = this.props.history; + + return (0, _RouterUtils.createRouterObject)(history, this.transitionManager, state); + }, + createTransitionManager: function createTransitionManager() { + var matchContext = this.props.matchContext; + + if (matchContext) { + return matchContext.transitionManager; + } + + var history = this.props.history; + var _props = this.props, + routes = _props.routes, + children = _props.children; + + + !history.getCurrentLocation ? process.env.NODE_ENV !== 'production' ? (0, _invariant2.default)(false, 'You have provided a history object created with history v4.x or v2.x ' + 'and earlier. This version of React Router is only compatible with v3 ' + 'history objects. Please change to history v3.x.') : (0, _invariant2.default)(false) : void 0; + + return (0, _createTransitionManager3.default)(history, (0, _RouteUtils.createRoutes)(routes || children)); + }, + componentWillMount: function componentWillMount() { + var _this = this; + this.transitionManager = this.createTransitionManager(); + this.router = this.createRouterObject(this.state); - propTypes: { - history: object, - children: _InternalPropTypes.routes, - routes: _InternalPropTypes.routes, // alias for children - render: func, - createElement: func, - onError: func, - onUpdate: func, - - // PRIVATE: For client-side rehydration of server match. - matchContext: object + this._unlisten = this.transitionManager.listen(function (error, state) { + if (error) { + _this.handleError(error); + } else { + // Keep the identity of this.router because of a caveat in ContextUtils: + // they only work if the object identity is preserved. + (0, _RouterUtils.assignRouterState)(_this.router, state); + _this.setState(state, _this.props.onUpdate); + } + }); }, - getDefaultProps: function getDefaultProps() { - return { - render: function render(props) { - return _react2.default.createElement(_RouterContext2.default, props); + + /* istanbul ignore next: sanity check */ + componentWillReceiveProps: function componentWillReceiveProps(nextProps) { + process.env.NODE_ENV !== 'production' ? (0, _routerWarning2.default)(nextProps.history === this.props.history, 'You cannot change ; it will be ignored') : void 0; + + process.env.NODE_ENV !== 'production' ? (0, _routerWarning2.default)((nextProps.routes || nextProps.children) === (this.props.routes || this.props.children), 'You cannot change ; it will be ignored') : void 0; + }, + componentWillUnmount: function componentWillUnmount() { + if (this._unlisten) this._unlisten(); + }, + render: function render() { + var _state = this.state, + location = _state.location, + routes = _state.routes, + params = _state.params, + components = _state.components; + + var _props2 = this.props, + createElement = _props2.createElement, + render = _props2.render, + props = _objectWithoutProperties(_props2, ['createElement', 'render']); + + if (location == null) return null; // Async match + + // Only forward non-Router-specific props to routing context, as those are + // the only ones that might be custom routing context props. + Object.keys(propTypes).forEach(function (propType) { + return delete props[propType]; + }); + + return render(_extends({}, props, { + router: this.router, + location: location, + routes: routes, + params: params, + components: components, + createElement: createElement + })); + } + }); + + exports.default = Router; + module.exports = exports['default']; + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) + +/***/ }), +/* 53 */ +/***/ (function(module, exports, __webpack_require__) { + + /** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + */ + + 'use strict'; + + var React = __webpack_require__(7); + var factory = __webpack_require__(54); + + if (typeof React === 'undefined') { + throw Error( + 'create-react-class could not find the React object. If you are using script tags, ' + + 'make sure that React is being loaded before create-react-class.' + ); + } + + // Hack to grab NoopUpdateQueue from isomorphic React + var ReactNoopUpdateQueue = new React.Component().updater; + + module.exports = factory( + React.Component, + React.isValidElement, + ReactNoopUpdateQueue + ); + + +/***/ }), +/* 54 */ +/***/ (function(module, exports, __webpack_require__) { + + /* WEBPACK VAR INJECTION */(function(process) {/** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + */ + + 'use strict'; + + var _assign = __webpack_require__(46); + + var emptyObject = __webpack_require__(55); + var _invariant = __webpack_require__(36); + + if (process.env.NODE_ENV !== 'production') { + var warning = __webpack_require__(45); + } + + var MIXINS_KEY = 'mixins'; + + // Helper function to allow the creation of anonymous functions which do not + // have .name set to the name of the variable being assigned to. + function identity(fn) { + return fn; + } + + var ReactPropTypeLocationNames; + if (process.env.NODE_ENV !== 'production') { + ReactPropTypeLocationNames = { + prop: 'prop', + context: 'context', + childContext: 'child context' + }; + } else { + ReactPropTypeLocationNames = {}; + } + + function factory(ReactComponent, isValidElement, ReactNoopUpdateQueue) { + /** + * Policies that describe methods in `ReactClassInterface`. + */ + + var injectedMixins = []; + + /** + * Composite components are higher-level components that compose other composite + * or host components. + * + * To create a new type of `ReactClass`, pass a specification of + * your new class to `React.createClass`. The only requirement of your class + * specification is that you implement a `render` method. + * + * var MyComponent = React.createClass({ + * render: function() { + * return
Hello World
; + * } + * }); + * + * The class specification supports a specific protocol of methods that have + * special meaning (e.g. `render`). See `ReactClassInterface` for + * more the comprehensive protocol. Any other properties and methods in the + * class specification will be available on the prototype. + * + * @interface ReactClassInterface + * @internal + */ + var ReactClassInterface = { + /** + * An array of Mixin objects to include when defining your component. + * + * @type {array} + * @optional + */ + mixins: 'DEFINE_MANY', + + /** + * An object containing properties and methods that should be defined on + * the component's constructor instead of its prototype (static methods). + * + * @type {object} + * @optional + */ + statics: 'DEFINE_MANY', + + /** + * Definition of prop types for this component. + * + * @type {object} + * @optional + */ + propTypes: 'DEFINE_MANY', + + /** + * Definition of context types for this component. + * + * @type {object} + * @optional + */ + contextTypes: 'DEFINE_MANY', + + /** + * Definition of context types this component sets for its children. + * + * @type {object} + * @optional + */ + childContextTypes: 'DEFINE_MANY', + + // ==== Definition methods ==== + + /** + * Invoked when the component is mounted. Values in the mapping will be set on + * `this.props` if that prop is not specified (i.e. using an `in` check). + * + * This method is invoked before `getInitialState` and therefore cannot rely + * on `this.state` or use `this.setState`. + * + * @return {object} + * @optional + */ + getDefaultProps: 'DEFINE_MANY_MERGED', + + /** + * Invoked once before the component is mounted. The return value will be used + * as the initial value of `this.state`. + * + * getInitialState: function() { + * return { + * isOn: false, + * fooBaz: new BazFoo() + * } + * } + * + * @return {object} + * @optional + */ + getInitialState: 'DEFINE_MANY_MERGED', + + /** + * @return {object} + * @optional + */ + getChildContext: 'DEFINE_MANY_MERGED', + + /** + * Uses props from `this.props` and state from `this.state` to render the + * structure of the component. + * + * No guarantees are made about when or how often this method is invoked, so + * it must not have side effects. + * + * render: function() { + * var name = this.props.name; + * return
Hello, {name}!
; + * } + * + * @return {ReactComponent} + * @required + */ + render: 'DEFINE_ONCE', + + // ==== Delegate methods ==== + + /** + * Invoked when the component is initially created and about to be mounted. + * This may have side effects, but any external subscriptions or data created + * by this method must be cleaned up in `componentWillUnmount`. + * + * @optional + */ + componentWillMount: 'DEFINE_MANY', + + /** + * Invoked when the component has been mounted and has a DOM representation. + * However, there is no guarantee that the DOM node is in the document. + * + * Use this as an opportunity to operate on the DOM when the component has + * been mounted (initialized and rendered) for the first time. + * + * @param {DOMElement} rootNode DOM element representing the component. + * @optional + */ + componentDidMount: 'DEFINE_MANY', + + /** + * Invoked before the component receives new props. + * + * Use this as an opportunity to react to a prop transition by updating the + * state using `this.setState`. Current props are accessed via `this.props`. + * + * componentWillReceiveProps: function(nextProps, nextContext) { + * this.setState({ + * likesIncreasing: nextProps.likeCount > this.props.likeCount + * }); + * } + * + * NOTE: There is no equivalent `componentWillReceiveState`. An incoming prop + * transition may cause a state change, but the opposite is not true. If you + * need it, you are probably looking for `componentWillUpdate`. + * + * @param {object} nextProps + * @optional + */ + componentWillReceiveProps: 'DEFINE_MANY', + + /** + * Invoked while deciding if the component should be updated as a result of + * receiving new props, state and/or context. + * + * Use this as an opportunity to `return false` when you're certain that the + * transition to the new props/state/context will not require a component + * update. + * + * shouldComponentUpdate: function(nextProps, nextState, nextContext) { + * return !equal(nextProps, this.props) || + * !equal(nextState, this.state) || + * !equal(nextContext, this.context); + * } + * + * @param {object} nextProps + * @param {?object} nextState + * @param {?object} nextContext + * @return {boolean} True if the component should update. + * @optional + */ + shouldComponentUpdate: 'DEFINE_ONCE', + + /** + * Invoked when the component is about to update due to a transition from + * `this.props`, `this.state` and `this.context` to `nextProps`, `nextState` + * and `nextContext`. + * + * Use this as an opportunity to perform preparation before an update occurs. + * + * NOTE: You **cannot** use `this.setState()` in this method. + * + * @param {object} nextProps + * @param {?object} nextState + * @param {?object} nextContext + * @param {ReactReconcileTransaction} transaction + * @optional + */ + componentWillUpdate: 'DEFINE_MANY', + + /** + * Invoked when the component's DOM representation has been updated. + * + * Use this as an opportunity to operate on the DOM when the component has + * been updated. + * + * @param {object} prevProps + * @param {?object} prevState + * @param {?object} prevContext + * @param {DOMElement} rootNode DOM element representing the component. + * @optional + */ + componentDidUpdate: 'DEFINE_MANY', + + /** + * Invoked when the component is about to be removed from its parent and have + * its DOM representation destroyed. + * + * Use this as an opportunity to deallocate any external resources. + * + * NOTE: There is no `componentDidUnmount` since your component will have been + * destroyed by that point. + * + * @optional + */ + componentWillUnmount: 'DEFINE_MANY', + + /** + * Replacement for (deprecated) `componentWillMount`. + * + * @optional + */ + UNSAFE_componentWillMount: 'DEFINE_MANY', + + /** + * Replacement for (deprecated) `componentWillReceiveProps`. + * + * @optional + */ + UNSAFE_componentWillReceiveProps: 'DEFINE_MANY', + + /** + * Replacement for (deprecated) `componentWillUpdate`. + * + * @optional + */ + UNSAFE_componentWillUpdate: 'DEFINE_MANY', + + // ==== Advanced methods ==== + + /** + * Updates the component's currently mounted DOM representation. + * + * By default, this implements React's rendering and reconciliation algorithm. + * Sophisticated clients may wish to override this. + * + * @param {ReactReconcileTransaction} transaction + * @internal + * @overridable + */ + updateComponent: 'OVERRIDE_BASE' + }; + + /** + * Similar to ReactClassInterface but for static methods. + */ + var ReactClassStaticInterface = { + /** + * This method is invoked after a component is instantiated and when it + * receives new props. Return an object to update state in response to + * prop changes. Return null to indicate no change to state. + * + * If an object is returned, its keys will be merged into the existing state. + * + * @return {object || null} + * @optional + */ + getDerivedStateFromProps: 'DEFINE_MANY_MERGED' + }; + + /** + * Mapping from class specification keys to special processing functions. + * + * Although these are declared like instance properties in the specification + * when defining classes using `React.createClass`, they are actually static + * and are accessible on the constructor instead of the prototype. Despite + * being static, they must be defined outside of the "statics" key under + * which all other static methods are defined. + */ + var RESERVED_SPEC_KEYS = { + displayName: function(Constructor, displayName) { + Constructor.displayName = displayName; + }, + mixins: function(Constructor, mixins) { + if (mixins) { + for (var i = 0; i < mixins.length; i++) { + mixSpecIntoComponent(Constructor, mixins[i]); + } + } + }, + childContextTypes: function(Constructor, childContextTypes) { + if (process.env.NODE_ENV !== 'production') { + validateTypeDef(Constructor, childContextTypes, 'childContext'); + } + Constructor.childContextTypes = _assign( + {}, + Constructor.childContextTypes, + childContextTypes + ); + }, + contextTypes: function(Constructor, contextTypes) { + if (process.env.NODE_ENV !== 'production') { + validateTypeDef(Constructor, contextTypes, 'context'); + } + Constructor.contextTypes = _assign( + {}, + Constructor.contextTypes, + contextTypes + ); + }, + /** + * Special case getDefaultProps which should move into statics but requires + * automatic merging. + */ + getDefaultProps: function(Constructor, getDefaultProps) { + if (Constructor.getDefaultProps) { + Constructor.getDefaultProps = createMergedResultFunction( + Constructor.getDefaultProps, + getDefaultProps + ); + } else { + Constructor.getDefaultProps = getDefaultProps; + } + }, + propTypes: function(Constructor, propTypes) { + if (process.env.NODE_ENV !== 'production') { + validateTypeDef(Constructor, propTypes, 'prop'); + } + Constructor.propTypes = _assign({}, Constructor.propTypes, propTypes); + }, + statics: function(Constructor, statics) { + mixStaticSpecIntoComponent(Constructor, statics); + }, + autobind: function() {} + }; + + function validateTypeDef(Constructor, typeDef, location) { + for (var propName in typeDef) { + if (typeDef.hasOwnProperty(propName)) { + // use a warning instead of an _invariant so components + // don't show up in prod but only in __DEV__ + if (process.env.NODE_ENV !== 'production') { + warning( + typeof typeDef[propName] === 'function', + '%s: %s type `%s` is invalid; it must be a function, usually from ' + + 'React.PropTypes.', + Constructor.displayName || 'ReactClass', + ReactPropTypeLocationNames[location], + propName + ); + } + } + } + } + + function validateMethodOverride(isAlreadyDefined, name) { + var specPolicy = ReactClassInterface.hasOwnProperty(name) + ? ReactClassInterface[name] + : null; + + // Disallow overriding of base class methods unless explicitly allowed. + if (ReactClassMixin.hasOwnProperty(name)) { + _invariant( + specPolicy === 'OVERRIDE_BASE', + 'ReactClassInterface: You are attempting to override ' + + '`%s` from your class specification. Ensure that your method names ' + + 'do not overlap with React methods.', + name + ); + } + + // Disallow defining methods more than once unless explicitly allowed. + if (isAlreadyDefined) { + _invariant( + specPolicy === 'DEFINE_MANY' || specPolicy === 'DEFINE_MANY_MERGED', + 'ReactClassInterface: You are attempting to define ' + + '`%s` on your component more than once. This conflict may be due ' + + 'to a mixin.', + name + ); + } + } + + /** + * Mixin helper which handles policy validation and reserved + * specification keys when building React classes. + */ + function mixSpecIntoComponent(Constructor, spec) { + if (!spec) { + if (process.env.NODE_ENV !== 'production') { + var typeofSpec = typeof spec; + var isMixinValid = typeofSpec === 'object' && spec !== null; + + if (process.env.NODE_ENV !== 'production') { + warning( + isMixinValid, + "%s: You're attempting to include a mixin that is either null " + + 'or not an object. Check the mixins included by the component, ' + + 'as well as any mixins they include themselves. ' + + 'Expected object but got %s.', + Constructor.displayName || 'ReactClass', + spec === null ? null : typeofSpec + ); + } + } + + return; + } + + _invariant( + typeof spec !== 'function', + "ReactClass: You're attempting to " + + 'use a component class or function as a mixin. Instead, just use a ' + + 'regular object.' + ); + _invariant( + !isValidElement(spec), + "ReactClass: You're attempting to " + + 'use a component as a mixin. Instead, just use a regular object.' + ); + + var proto = Constructor.prototype; + var autoBindPairs = proto.__reactAutoBindPairs; + + // By handling mixins before any other properties, we ensure the same + // chaining order is applied to methods with DEFINE_MANY policy, whether + // mixins are listed before or after these methods in the spec. + if (spec.hasOwnProperty(MIXINS_KEY)) { + RESERVED_SPEC_KEYS.mixins(Constructor, spec.mixins); + } + + for (var name in spec) { + if (!spec.hasOwnProperty(name)) { + continue; + } + + if (name === MIXINS_KEY) { + // We have already handled mixins in a special case above. + continue; + } + + var property = spec[name]; + var isAlreadyDefined = proto.hasOwnProperty(name); + validateMethodOverride(isAlreadyDefined, name); + + if (RESERVED_SPEC_KEYS.hasOwnProperty(name)) { + RESERVED_SPEC_KEYS[name](Constructor, property); + } else { + // Setup methods on prototype: + // The following member methods should not be automatically bound: + // 1. Expected ReactClass methods (in the "interface"). + // 2. Overridden methods (that were mixed in). + var isReactClassMethod = ReactClassInterface.hasOwnProperty(name); + var isFunction = typeof property === 'function'; + var shouldAutoBind = + isFunction && + !isReactClassMethod && + !isAlreadyDefined && + spec.autobind !== false; + + if (shouldAutoBind) { + autoBindPairs.push(name, property); + proto[name] = property; + } else { + if (isAlreadyDefined) { + var specPolicy = ReactClassInterface[name]; + + // These cases should already be caught by validateMethodOverride. + _invariant( + isReactClassMethod && + (specPolicy === 'DEFINE_MANY_MERGED' || + specPolicy === 'DEFINE_MANY'), + 'ReactClass: Unexpected spec policy %s for key %s ' + + 'when mixing in component specs.', + specPolicy, + name + ); + + // For methods which are defined more than once, call the existing + // methods before calling the new property, merging if appropriate. + if (specPolicy === 'DEFINE_MANY_MERGED') { + proto[name] = createMergedResultFunction(proto[name], property); + } else if (specPolicy === 'DEFINE_MANY') { + proto[name] = createChainedFunction(proto[name], property); + } + } else { + proto[name] = property; + if (process.env.NODE_ENV !== 'production') { + // Add verbose displayName to the function, which helps when looking + // at profiling tools. + if (typeof property === 'function' && spec.displayName) { + proto[name].displayName = spec.displayName + '_' + name; + } + } + } + } + } + } + } + + function mixStaticSpecIntoComponent(Constructor, statics) { + if (!statics) { + return; + } + + for (var name in statics) { + var property = statics[name]; + if (!statics.hasOwnProperty(name)) { + continue; + } + + var isReserved = name in RESERVED_SPEC_KEYS; + _invariant( + !isReserved, + 'ReactClass: You are attempting to define a reserved ' + + 'property, `%s`, that shouldn\'t be on the "statics" key. Define it ' + + 'as an instance property instead; it will still be accessible on the ' + + 'constructor.', + name + ); + + var isAlreadyDefined = name in Constructor; + if (isAlreadyDefined) { + var specPolicy = ReactClassStaticInterface.hasOwnProperty(name) + ? ReactClassStaticInterface[name] + : null; + + _invariant( + specPolicy === 'DEFINE_MANY_MERGED', + 'ReactClass: You are attempting to define ' + + '`%s` on your component more than once. This conflict may be ' + + 'due to a mixin.', + name + ); + + Constructor[name] = createMergedResultFunction(Constructor[name], property); + + return; + } + + Constructor[name] = property; + } + } + + /** + * Merge two objects, but throw if both contain the same key. + * + * @param {object} one The first object, which is mutated. + * @param {object} two The second object + * @return {object} one after it has been mutated to contain everything in two. + */ + function mergeIntoWithNoDuplicateKeys(one, two) { + _invariant( + one && two && typeof one === 'object' && typeof two === 'object', + 'mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.' + ); + + for (var key in two) { + if (two.hasOwnProperty(key)) { + _invariant( + one[key] === undefined, + 'mergeIntoWithNoDuplicateKeys(): ' + + 'Tried to merge two objects with the same key: `%s`. This conflict ' + + 'may be due to a mixin; in particular, this may be caused by two ' + + 'getInitialState() or getDefaultProps() methods returning objects ' + + 'with clashing keys.', + key + ); + one[key] = two[key]; } + } + return one; + } + + /** + * Creates a function that invokes two functions and merges their return values. + * + * @param {function} one Function to invoke first. + * @param {function} two Function to invoke second. + * @return {function} Function that invokes the two argument functions. + * @private + */ + function createMergedResultFunction(one, two) { + return function mergedResult() { + var a = one.apply(this, arguments); + var b = two.apply(this, arguments); + if (a == null) { + return b; + } else if (b == null) { + return a; + } + var c = {}; + mergeIntoWithNoDuplicateKeys(c, a); + mergeIntoWithNoDuplicateKeys(c, b); + return c; }; - }, - getInitialState: function getInitialState() { - return { - location: null, - routes: null, - params: null, - components: null + } + + /** + * Creates a function that invokes two functions and ignores their return vales. + * + * @param {function} one Function to invoke first. + * @param {function} two Function to invoke second. + * @return {function} Function that invokes the two argument functions. + * @private + */ + function createChainedFunction(one, two) { + return function chainedFunction() { + one.apply(this, arguments); + two.apply(this, arguments); }; - }, - handleError: function handleError(error) { - if (this.props.onError) { - this.props.onError.call(this, error); - } else { - // Throw errors by default so we don't silently swallow them! - throw error; // This error probably occurred in getChildRoutes or getComponents. + } + + /** + * Binds a method to the component. + * + * @param {object} component Component whose method is going to be bound. + * @param {function} method Method to be bound. + * @return {function} The bound method. + */ + function bindAutoBindMethod(component, method) { + var boundMethod = method.bind(component); + if (process.env.NODE_ENV !== 'production') { + boundMethod.__reactBoundContext = component; + boundMethod.__reactBoundMethod = method; + boundMethod.__reactBoundArguments = null; + var componentName = component.constructor.displayName; + var _bind = boundMethod.bind; + boundMethod.bind = function(newThis) { + for ( + var _len = arguments.length, + args = Array(_len > 1 ? _len - 1 : 0), + _key = 1; + _key < _len; + _key++ + ) { + args[_key - 1] = arguments[_key]; + } + + // User is trying to bind() an autobound method; we effectively will + // ignore the value of "this" that the user is trying to use, so + // let's warn. + if (newThis !== component && newThis !== null) { + if (process.env.NODE_ENV !== 'production') { + warning( + false, + 'bind(): React component methods may only be bound to the ' + + 'component instance. See %s', + componentName + ); + } + } else if (!args.length) { + if (process.env.NODE_ENV !== 'production') { + warning( + false, + 'bind(): You are binding a component method to the component. ' + + 'React does this for you automatically in a high-performance ' + + 'way, so you can safely remove this call. See %s', + componentName + ); + } + return boundMethod; + } + var reboundMethod = _bind.apply(boundMethod, arguments); + reboundMethod.__reactBoundContext = component; + reboundMethod.__reactBoundMethod = method; + reboundMethod.__reactBoundArguments = args; + return reboundMethod; + }; } - }, - createRouterObject: function createRouterObject(state) { - var matchContext = this.props.matchContext; + return boundMethod; + } - if (matchContext) { - return matchContext.router; + /** + * Binds all auto-bound methods in a component. + * + * @param {object} component Component whose method is going to be bound. + */ + function bindAutoBindMethods(component) { + var pairs = component.__reactAutoBindPairs; + for (var i = 0; i < pairs.length; i += 2) { + var autoBindKey = pairs[i]; + var method = pairs[i + 1]; + component[autoBindKey] = bindAutoBindMethod(component, method); } + } - var history = this.props.history; + var IsMountedPreMixin = { + componentDidMount: function() { + this.__isMounted = true; + } + }; + + var IsMountedPostMixin = { + componentWillUnmount: function() { + this.__isMounted = false; + } + }; - return (0, _RouterUtils.createRouterObject)(history, this.transitionManager, state); - }, - createTransitionManager: function createTransitionManager() { - var matchContext = this.props.matchContext; + /** + * Add more to the ReactClass base class. These are all legacy features and + * therefore not already part of the modern ReactComponent. + */ + var ReactClassMixin = { + /** + * TODO: This will be deprecated because state should always keep a consistent + * type signature and the only use case for this, is to avoid that. + */ + replaceState: function(newState, callback) { + this.updater.enqueueReplaceState(this, newState, callback); + }, - if (matchContext) { - return matchContext.transitionManager; + /** + * Checks whether or not this composite component is mounted. + * @return {boolean} True if mounted, false otherwise. + * @protected + * @final + */ + isMounted: function() { + if (process.env.NODE_ENV !== 'production') { + warning( + this.__didWarnIsMounted, + '%s: isMounted is deprecated. Instead, make sure to clean up ' + + 'subscriptions and pending requests in componentWillUnmount to ' + + 'prevent memory leaks.', + (this.constructor && this.constructor.displayName) || + this.name || + 'Component' + ); + this.__didWarnIsMounted = true; + } + return !!this.__isMounted; } + }; - var history = this.props.history; - var _props = this.props, - routes = _props.routes, - children = _props.children; + var ReactClassComponent = function() {}; + _assign( + ReactClassComponent.prototype, + ReactComponent.prototype, + ReactClassMixin + ); + /** + * Creates a composite component class given a class specification. + * See https://facebook.github.io/react/docs/top-level-api.html#react.createclass + * + * @param {object} spec Class specification (which must define `render`). + * @return {function} Component constructor function. + * @public + */ + function createClass(spec) { + // To keep our warnings more understandable, we'll use a little hack here to + // ensure that Constructor.name !== 'Constructor'. This makes sure we don't + // unnecessarily identify a class without displayName as 'Constructor'. + var Constructor = identity(function(props, context, updater) { + // This constructor gets overridden by mocks. The argument is used + // by mocks to assert on what gets mounted. + + if (process.env.NODE_ENV !== 'production') { + warning( + this instanceof Constructor, + 'Something is calling a React component directly. Use a factory or ' + + 'JSX instead. See: https://fb.me/react-legacyfactory' + ); + } - !history.getCurrentLocation ? process.env.NODE_ENV !== 'production' ? (0, _invariant2.default)(false, 'You have provided a history object created with history v4.x or v2.x ' + 'and earlier. This version of React Router is only compatible with v3 ' + 'history objects. Please change to history v3.x.') : (0, _invariant2.default)(false) : void 0; + // Wire up auto-binding + if (this.__reactAutoBindPairs.length) { + bindAutoBindMethods(this); + } - return (0, _createTransitionManager3.default)(history, (0, _RouteUtils.createRoutes)(routes || children)); - }, - componentWillMount: function componentWillMount() { - var _this = this; + this.props = props; + this.context = context; + this.refs = emptyObject; + this.updater = updater || ReactNoopUpdateQueue; - this.transitionManager = this.createTransitionManager(); - this.router = this.createRouterObject(this.state); + this.state = null; - this._unlisten = this.transitionManager.listen(function (error, state) { - if (error) { - _this.handleError(error); - } else { - // Keep the identity of this.router because of a caveat in ContextUtils: - // they only work if the object identity is preserved. - (0, _RouterUtils.assignRouterState)(_this.router, state); - _this.setState(state, _this.props.onUpdate); + // ReactClasses doesn't have constructors. Instead, they use the + // getInitialState and componentWillMount methods for initialization. + + var initialState = this.getInitialState ? this.getInitialState() : null; + if (process.env.NODE_ENV !== 'production') { + // We allow auto-mocks to proceed as if they're returning null. + if ( + initialState === undefined && + this.getInitialState._isMockFunction + ) { + // This is probably bad practice. Consider warning here and + // deprecating this convenience. + initialState = null; + } } + _invariant( + typeof initialState === 'object' && !Array.isArray(initialState), + '%s.getInitialState(): must return an object or null', + Constructor.displayName || 'ReactCompositeComponent' + ); + + this.state = initialState; }); - }, + Constructor.prototype = new ReactClassComponent(); + Constructor.prototype.constructor = Constructor; + Constructor.prototype.__reactAutoBindPairs = []; + injectedMixins.forEach(mixSpecIntoComponent.bind(null, Constructor)); - /* istanbul ignore next: sanity check */ - componentWillReceiveProps: function componentWillReceiveProps(nextProps) { - process.env.NODE_ENV !== 'production' ? (0, _routerWarning2.default)(nextProps.history === this.props.history, 'You cannot change ; it will be ignored') : void 0; + mixSpecIntoComponent(Constructor, IsMountedPreMixin); + mixSpecIntoComponent(Constructor, spec); + mixSpecIntoComponent(Constructor, IsMountedPostMixin); - process.env.NODE_ENV !== 'production' ? (0, _routerWarning2.default)((nextProps.routes || nextProps.children) === (this.props.routes || this.props.children), 'You cannot change ; it will be ignored') : void 0; - }, - componentWillUnmount: function componentWillUnmount() { - if (this._unlisten) this._unlisten(); - }, - render: function render() { - var _state = this.state, - location = _state.location, - routes = _state.routes, - params = _state.params, - components = _state.components; + // Initialize the defaultProps property after all mixins have been merged. + if (Constructor.getDefaultProps) { + Constructor.defaultProps = Constructor.getDefaultProps(); + } - var _props2 = this.props, - createElement = _props2.createElement, - render = _props2.render, - props = _objectWithoutProperties(_props2, ['createElement', 'render']); + if (process.env.NODE_ENV !== 'production') { + // This is a tag to indicate that the use of these method names is ok, + // since it's used with createClass. If it's not, then it's likely a + // mistake so we'll warn you to use the static property, property + // initializer or constructor respectively. + if (Constructor.getDefaultProps) { + Constructor.getDefaultProps.isReactClassApproved = {}; + } + if (Constructor.prototype.getInitialState) { + Constructor.prototype.getInitialState.isReactClassApproved = {}; + } + } - if (location == null) return null; // Async match + _invariant( + Constructor.prototype.render, + 'createClass(...): Class specification must implement a `render` method.' + ); - // Only forward non-Router-specific props to routing context, as those are - // the only ones that might be custom routing context props. - Object.keys(Router.propTypes).forEach(function (propType) { - return delete props[propType]; - }); + if (process.env.NODE_ENV !== 'production') { + warning( + !Constructor.prototype.componentShouldUpdate, + '%s has a method called ' + + 'componentShouldUpdate(). Did you mean shouldComponentUpdate()? ' + + 'The name is phrased as a question because the function is ' + + 'expected to return a value.', + spec.displayName || 'A component' + ); + warning( + !Constructor.prototype.componentWillRecieveProps, + '%s has a method called ' + + 'componentWillRecieveProps(). Did you mean componentWillReceiveProps()?', + spec.displayName || 'A component' + ); + warning( + !Constructor.prototype.UNSAFE_componentWillRecieveProps, + '%s has a method called UNSAFE_componentWillRecieveProps(). ' + + 'Did you mean UNSAFE_componentWillReceiveProps()?', + spec.displayName || 'A component' + ); + } - return render(_extends({}, props, { - router: this.router, - location: location, - routes: routes, - params: params, - components: components, - createElement: createElement - })); + // Reduce time spent doing lookups by setting these on the prototype. + for (var methodName in ReactClassInterface) { + if (!Constructor.prototype[methodName]) { + Constructor.prototype[methodName] = null; + } + } + + return Constructor; } - }); - exports.default = Router; - module.exports = exports['default']; + return createClass; + } + + module.exports = factory; + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 45 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 55 */ +/***/ (function(module, exports, __webpack_require__) { + + /* WEBPACK VAR INJECTION */(function(process) {/** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + */ + + 'use strict'; + + var emptyObject = {}; + + if (process.env.NODE_ENV !== 'production') { + Object.freeze(emptyObject); + } + + module.exports = emptyObject; + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) + +/***/ }), +/* 56 */ +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {'use strict'; @@ -5907,25 +7831,27 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = createTransitionManager; - var _routerWarning = __webpack_require__(46); + var _routerWarning = __webpack_require__(57); var _routerWarning2 = _interopRequireDefault(_routerWarning); - var _computeChangedRoutes2 = __webpack_require__(48); + var _computeChangedRoutes2 = __webpack_require__(59); var _computeChangedRoutes3 = _interopRequireDefault(_computeChangedRoutes2); - var _TransitionUtils = __webpack_require__(49); + var _TransitionUtils = __webpack_require__(60); - var _isActive2 = __webpack_require__(51); + var _TransitionUtils2 = _interopRequireDefault(_TransitionUtils); + + var _isActive2 = __webpack_require__(62); var _isActive3 = _interopRequireDefault(_isActive2); - var _getComponents = __webpack_require__(52); + var _getComponents = __webpack_require__(63); var _getComponents2 = _interopRequireDefault(_getComponents); - var _matchRoutes = __webpack_require__(54); + var _matchRoutes = __webpack_require__(65); var _matchRoutes2 = _interopRequireDefault(_matchRoutes); @@ -5940,8 +7866,15 @@ return /******/ (function(modules) { // webpackBootstrap function createTransitionManager(history, routes) { var state = {}; + var _getTransitionUtils = (0, _TransitionUtils2.default)(), + runEnterHooks = _getTransitionUtils.runEnterHooks, + runChangeHooks = _getTransitionUtils.runChangeHooks, + runLeaveHooks = _getTransitionUtils.runLeaveHooks; + // Signature should be (location, indexOnly), but needs to support (path, // query, indexOnly) + + function isActive(location, indexOnly) { location = history.createLocation(location); @@ -5973,7 +7906,7 @@ return /******/ (function(modules) { // webpackBootstrap changeRoutes = _computeChangedRoutes.changeRoutes, enterRoutes = _computeChangedRoutes.enterRoutes; - (0, _TransitionUtils.runLeaveHooks)(leaveRoutes, state); + runLeaveHooks(leaveRoutes, state); // Tear down confirmation hooks for left routes leaveRoutes.filter(function (route) { @@ -5981,10 +7914,10 @@ return /******/ (function(modules) { // webpackBootstrap }).forEach(removeListenBeforeHooksForRoute); // change and enter hooks are run in series - (0, _TransitionUtils.runChangeHooks)(changeRoutes, state, nextState, function (error, redirectInfo) { + runChangeHooks(changeRoutes, state, nextState, function (error, redirectInfo) { if (error || redirectInfo) return handleErrorOrRedirect(error, redirectInfo); - (0, _TransitionUtils.runEnterHooks)(enterRoutes, nextState, finishEnterHooks); + runEnterHooks(enterRoutes, nextState, finishEnterHooks); }); function finishEnterHooks(error, redirectInfo) { @@ -6176,9 +8109,9 @@ return /******/ (function(modules) { // webpackBootstrap module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 46 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 57 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -6186,7 +8119,7 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = routerWarning; exports._resetWarned = _resetWarned; - var _warning = __webpack_require__(47); + var _warning = __webpack_require__(58); var _warning2 = _interopRequireDefault(_warning); @@ -6217,9 +8150,9 @@ return /******/ (function(modules) { // webpackBootstrap warned = {}; } -/***/ }, -/* 47 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 58 */ +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {/** * Copyright 2014-2015, Facebook, Inc. @@ -6284,15 +8217,15 @@ return /******/ (function(modules) { // webpackBootstrap /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 48 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 59 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; exports.__esModule = true; - var _PatternUtils = __webpack_require__(42); + var _PatternUtils = __webpack_require__(50); function routeParamsChanged(route, prevState, nextState) { if (!route.path) return false; @@ -6325,31 +8258,29 @@ return /******/ (function(modules) { // webpackBootstrap changeRoutes = void 0, enterRoutes = void 0; if (prevRoutes) { - (function () { - var parentIsLeaving = false; - leaveRoutes = prevRoutes.filter(function (route) { - if (parentIsLeaving) { - return true; - } else { - var isLeaving = nextRoutes.indexOf(route) === -1 || routeParamsChanged(route, prevState, nextState); - if (isLeaving) parentIsLeaving = true; - return isLeaving; - } - }); + var parentIsLeaving = false; + leaveRoutes = prevRoutes.filter(function (route) { + if (parentIsLeaving) { + return true; + } else { + var isLeaving = nextRoutes.indexOf(route) === -1 || routeParamsChanged(route, prevState, nextState); + if (isLeaving) parentIsLeaving = true; + return isLeaving; + } + }); - // onLeave hooks start at the leaf route. - leaveRoutes.reverse(); + // onLeave hooks start at the leaf route. + leaveRoutes.reverse(); - enterRoutes = []; - changeRoutes = []; + enterRoutes = []; + changeRoutes = []; - nextRoutes.forEach(function (route) { - var isNew = prevRoutes.indexOf(route) === -1; - var paramsChanged = leaveRoutes.indexOf(route) !== -1; + nextRoutes.forEach(function (route) { + var isNew = prevRoutes.indexOf(route) === -1; + var paramsChanged = leaveRoutes.indexOf(route) !== -1; - if (isNew || paramsChanged) enterRoutes.push(route);else changeRoutes.push(route); - }); - })(); + if (isNew || paramsChanged) enterRoutes.push(route);else changeRoutes.push(route); + }); } else { leaveRoutes = []; changeRoutes = []; @@ -6366,18 +8297,16 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = computeChangedRoutes; module.exports = exports['default']; -/***/ }, -/* 49 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 60 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; exports.__esModule = true; - exports.runEnterHooks = runEnterHooks; - exports.runChangeHooks = runChangeHooks; - exports.runLeaveHooks = runLeaveHooks; + exports.default = getTransitionUtils; - var _AsyncUtils = __webpack_require__(50); + var _AsyncUtils = __webpack_require__(61); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } @@ -6407,128 +8336,137 @@ return /******/ (function(modules) { // webpackBootstrap }; }; - var enterHooks = new PendingHooks(); - var changeHooks = new PendingHooks(); - - function createTransitionHook(hook, route, asyncArity, pendingHooks) { - var isSync = hook.length < asyncArity; - - var transitionHook = function transitionHook() { - for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } + function getTransitionUtils() { + var enterHooks = new PendingHooks(); + var changeHooks = new PendingHooks(); - hook.apply(route, args); + function createTransitionHook(hook, route, asyncArity, pendingHooks) { + var isSync = hook.length < asyncArity; - if (isSync) { - var callback = args[args.length - 1]; - // Assume hook executes synchronously and - // automatically call the callback. - callback(); - } - }; + var transitionHook = function transitionHook() { + for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } - pendingHooks.add(transitionHook); + hook.apply(route, args); - return transitionHook; - } + if (isSync) { + var callback = args[args.length - 1]; + // Assume hook executes synchronously and + // automatically call the callback. + callback(); + } + }; - function getEnterHooks(routes) { - return routes.reduce(function (hooks, route) { - if (route.onEnter) hooks.push(createTransitionHook(route.onEnter, route, 3, enterHooks)); - return hooks; - }, []); - } + pendingHooks.add(transitionHook); - function getChangeHooks(routes) { - return routes.reduce(function (hooks, route) { - if (route.onChange) hooks.push(createTransitionHook(route.onChange, route, 4, changeHooks)); - return hooks; - }, []); - } + return transitionHook; + } - function runTransitionHooks(length, iter, callback) { - if (!length) { - callback(); - return; + function getEnterHooks(routes) { + return routes.reduce(function (hooks, route) { + if (route.onEnter) hooks.push(createTransitionHook(route.onEnter, route, 3, enterHooks)); + return hooks; + }, []); } - var redirectInfo = void 0; - function replace(location) { - redirectInfo = location; + function getChangeHooks(routes) { + return routes.reduce(function (hooks, route) { + if (route.onChange) hooks.push(createTransitionHook(route.onChange, route, 4, changeHooks)); + return hooks; + }, []); } - (0, _AsyncUtils.loopAsync)(length, function (index, next, done) { - iter(index, replace, function (error) { - if (error || redirectInfo) { - done(error, redirectInfo); // No need to continue. - } else { - next(); - } - }); - }, callback); - } + function runTransitionHooks(length, iter, callback) { + if (!length) { + callback(); + return; + } - /** - * Runs all onEnter hooks in the given array of routes in order - * with onEnter(nextState, replace, callback) and calls - * callback(error, redirectInfo) when finished. The first hook - * to use replace short-circuits the loop. - * - * If a hook needs to run asynchronously, it may use the callback - * function. However, doing so will cause the transition to pause, - * which could lead to a non-responsive UI if the hook is slow. - */ - function runEnterHooks(routes, nextState, callback) { - enterHooks.clear(); - var hooks = getEnterHooks(routes); - return runTransitionHooks(hooks.length, function (index, replace, next) { - var wrappedNext = function wrappedNext() { - if (enterHooks.has(hooks[index])) { - next.apply(undefined, arguments); - enterHooks.remove(hooks[index]); - } - }; - hooks[index](nextState, replace, wrappedNext); - }, callback); - } + var redirectInfo = void 0; + function replace(location) { + redirectInfo = location; + } - /** - * Runs all onChange hooks in the given array of routes in order - * with onChange(prevState, nextState, replace, callback) and calls - * callback(error, redirectInfo) when finished. The first hook - * to use replace short-circuits the loop. - * - * If a hook needs to run asynchronously, it may use the callback - * function. However, doing so will cause the transition to pause, - * which could lead to a non-responsive UI if the hook is slow. - */ - function runChangeHooks(routes, state, nextState, callback) { - changeHooks.clear(); - var hooks = getChangeHooks(routes); - return runTransitionHooks(hooks.length, function (index, replace, next) { - var wrappedNext = function wrappedNext() { - if (changeHooks.has(hooks[index])) { - next.apply(undefined, arguments); - changeHooks.remove(hooks[index]); - } - }; - hooks[index](state, nextState, replace, wrappedNext); - }, callback); - } + (0, _AsyncUtils.loopAsync)(length, function (index, next, done) { + iter(index, replace, function (error) { + if (error || redirectInfo) { + done(error, redirectInfo); // No need to continue. + } else { + next(); + } + }); + }, callback); + } - /** - * Runs all onLeave hooks in the given array of routes in order. - */ - function runLeaveHooks(routes, prevState) { - for (var i = 0, len = routes.length; i < len; ++i) { - if (routes[i].onLeave) routes[i].onLeave.call(routes[i], prevState); + /** + * Runs all onEnter hooks in the given array of routes in order + * with onEnter(nextState, replace, callback) and calls + * callback(error, redirectInfo) when finished. The first hook + * to use replace short-circuits the loop. + * + * If a hook needs to run asynchronously, it may use the callback + * function. However, doing so will cause the transition to pause, + * which could lead to a non-responsive UI if the hook is slow. + */ + function runEnterHooks(routes, nextState, callback) { + enterHooks.clear(); + var hooks = getEnterHooks(routes); + return runTransitionHooks(hooks.length, function (index, replace, next) { + var wrappedNext = function wrappedNext() { + if (enterHooks.has(hooks[index])) { + next.apply(undefined, arguments); + enterHooks.remove(hooks[index]); + } + }; + hooks[index](nextState, replace, wrappedNext); + }, callback); + } + + /** + * Runs all onChange hooks in the given array of routes in order + * with onChange(prevState, nextState, replace, callback) and calls + * callback(error, redirectInfo) when finished. The first hook + * to use replace short-circuits the loop. + * + * If a hook needs to run asynchronously, it may use the callback + * function. However, doing so will cause the transition to pause, + * which could lead to a non-responsive UI if the hook is slow. + */ + function runChangeHooks(routes, state, nextState, callback) { + changeHooks.clear(); + var hooks = getChangeHooks(routes); + return runTransitionHooks(hooks.length, function (index, replace, next) { + var wrappedNext = function wrappedNext() { + if (changeHooks.has(hooks[index])) { + next.apply(undefined, arguments); + changeHooks.remove(hooks[index]); + } + }; + hooks[index](state, nextState, replace, wrappedNext); + }, callback); + } + + /** + * Runs all onLeave hooks in the given array of routes in order. + */ + function runLeaveHooks(routes, prevState) { + for (var i = 0, len = routes.length; i < len; ++i) { + if (routes[i].onLeave) routes[i].onLeave.call(routes[i], prevState); + } } + + return { + runEnterHooks: runEnterHooks, + runChangeHooks: runChangeHooks, + runLeaveHooks: runLeaveHooks + }; } + module.exports = exports['default']; -/***/ }, -/* 50 */ -/***/ function(module, exports) { +/***/ }), +/* 61 */ +/***/ (function(module, exports) { "use strict"; @@ -6619,9 +8557,9 @@ return /******/ (function(modules) { // webpackBootstrap }); } -/***/ }, -/* 51 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 62 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -6631,7 +8569,7 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = isActive; - var _PatternUtils = __webpack_require__(42); + var _PatternUtils = __webpack_require__(50); function deepEqual(a, b) { if (a == b) return true; @@ -6776,17 +8714,17 @@ return /******/ (function(modules) { // webpackBootstrap } module.exports = exports['default']; -/***/ }, -/* 52 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 63 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; exports.__esModule = true; - var _AsyncUtils = __webpack_require__(50); + var _AsyncUtils = __webpack_require__(61); - var _PromiseUtils = __webpack_require__(53); + var _PromiseUtils = __webpack_require__(64); function getComponentsForRoute(nextState, route, callback) { if (route.component || route.components) { @@ -6821,9 +8759,9 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = getComponents; module.exports = exports['default']; -/***/ }, -/* 53 */ -/***/ function(module, exports) { +/***/ }), +/* 64 */ +/***/ (function(module, exports) { 'use strict'; @@ -6833,9 +8771,9 @@ return /******/ (function(modules) { // webpackBootstrap return obj && typeof obj.then === 'function'; } -/***/ }, -/* 54 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 65 */ +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {'use strict'; @@ -6843,17 +8781,15 @@ return /******/ (function(modules) { // webpackBootstrap var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; - exports.default = matchRoutes; - var _AsyncUtils = __webpack_require__(50); + var _AsyncUtils = __webpack_require__(61); - var _PromiseUtils = __webpack_require__(53); + var _PromiseUtils = __webpack_require__(64); - var _PatternUtils = __webpack_require__(42); + var _PatternUtils = __webpack_require__(50); - var _routerWarning = __webpack_require__(46); + var _routerWarning = __webpack_require__(57); var _routerWarning2 = _interopRequireDefault(_routerWarning); @@ -6993,38 +8929,32 @@ return /******/ (function(modules) { // webpackBootstrap // By assumption, pattern is non-empty here, which is the prerequisite for // actually terminating a match. if (remainingPathname === '') { - var _ret = function () { - var match = { - routes: [route], - params: createParams(paramNames, paramValues) - }; - - getIndexRoute(route, location, paramNames, paramValues, function (error, indexRoute) { - if (error) { - callback(error); - } else { - if (Array.isArray(indexRoute)) { - var _match$routes; - - process.env.NODE_ENV !== 'production' ? (0, _routerWarning2.default)(indexRoute.every(function (route) { - return !route.path; - }), 'Index routes should not have paths') : void 0; - (_match$routes = match.routes).push.apply(_match$routes, indexRoute); - } else if (indexRoute) { - process.env.NODE_ENV !== 'production' ? (0, _routerWarning2.default)(!indexRoute.path, 'Index routes should not have paths') : void 0; - match.routes.push(indexRoute); - } + var match = { + routes: [route], + params: createParams(paramNames, paramValues) + }; - callback(null, match); + getIndexRoute(route, location, paramNames, paramValues, function (error, indexRoute) { + if (error) { + callback(error); + } else { + if (Array.isArray(indexRoute)) { + var _match$routes; + + process.env.NODE_ENV !== 'production' ? (0, _routerWarning2.default)(indexRoute.every(function (route) { + return !route.path; + }), 'Index routes should not have paths') : void 0; + (_match$routes = match.routes).push.apply(_match$routes, indexRoute); + } else if (indexRoute) { + process.env.NODE_ENV !== 'production' ? (0, _routerWarning2.default)(!indexRoute.path, 'Index routes should not have paths') : void 0; + match.routes.push(indexRoute); } - }); - return { - v: void 0 - }; - }(); + callback(null, match); + } + }); - if ((typeof _ret === 'undefined' ? 'undefined' : _typeof(_ret)) === "object") return _ret.v; + return; } } @@ -7102,9 +9032,9 @@ return /******/ (function(modules) { // webpackBootstrap module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 55 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 66 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -7112,36 +9042,29 @@ return /******/ (function(modules) { // webpackBootstrap exports.routes = exports.route = exports.components = exports.component = exports.history = undefined; exports.falsy = falsy; - var _react = __webpack_require__(7); + var _propTypes = __webpack_require__(42); - var func = _react.PropTypes.func, - object = _react.PropTypes.object, - arrayOf = _react.PropTypes.arrayOf, - oneOfType = _react.PropTypes.oneOfType, - element = _react.PropTypes.element, - shape = _react.PropTypes.shape, - string = _react.PropTypes.string; function falsy(props, propName, componentName) { if (props[propName]) return new Error('<' + componentName + '> should not have a "' + propName + '" prop'); } - var history = exports.history = shape({ - listen: func.isRequired, - push: func.isRequired, - replace: func.isRequired, - go: func.isRequired, - goBack: func.isRequired, - goForward: func.isRequired + var history = exports.history = (0, _propTypes.shape)({ + listen: _propTypes.func.isRequired, + push: _propTypes.func.isRequired, + replace: _propTypes.func.isRequired, + go: _propTypes.func.isRequired, + goBack: _propTypes.func.isRequired, + goForward: _propTypes.func.isRequired }); - var component = exports.component = oneOfType([func, string]); - var components = exports.components = oneOfType([component, object]); - var route = exports.route = oneOfType([object, element]); - var routes = exports.routes = oneOfType([route, arrayOf(route)]); + var component = exports.component = (0, _propTypes.oneOfType)([_propTypes.func, _propTypes.string]); + var components = exports.components = (0, _propTypes.oneOfType)([component, _propTypes.object]); + var route = exports.route = (0, _propTypes.oneOfType)([_propTypes.object, _propTypes.element]); + var routes = exports.routes = (0, _propTypes.oneOfType)([route, (0, _propTypes.arrayOf)(route)]); -/***/ }, -/* 56 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 67 */ +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {'use strict'; @@ -7151,7 +9074,7 @@ return /******/ (function(modules) { // webpackBootstrap var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; - var _invariant = __webpack_require__(43); + var _invariant = __webpack_require__(51); var _invariant2 = _interopRequireDefault(_invariant); @@ -7159,39 +9082,38 @@ return /******/ (function(modules) { // webpackBootstrap var _react2 = _interopRequireDefault(_react); - var _getRouteParams = __webpack_require__(57); + var _createReactClass = __webpack_require__(53); + + var _createReactClass2 = _interopRequireDefault(_createReactClass); + + var _propTypes = __webpack_require__(42); + + var _getRouteParams = __webpack_require__(68); var _getRouteParams2 = _interopRequireDefault(_getRouteParams); - var _ContextUtils = __webpack_require__(58); + var _ContextUtils = __webpack_require__(69); var _RouteUtils = __webpack_require__(40); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - var _React$PropTypes = _react2.default.PropTypes, - array = _React$PropTypes.array, - func = _React$PropTypes.func, - object = _React$PropTypes.object; - /** * A renders the component tree for a given router state * and sets the history object and the current location in context. */ - - var RouterContext = _react2.default.createClass({ + var RouterContext = (0, _createReactClass2.default)({ displayName: 'RouterContext', - mixins: [(0, _ContextUtils.ContextProvider)('router')], propTypes: { - router: object.isRequired, - location: object.isRequired, - routes: array.isRequired, - params: object.isRequired, - components: array.isRequired, - createElement: func.isRequired + router: _propTypes.object.isRequired, + location: _propTypes.object.isRequired, + routes: _propTypes.array.isRequired, + params: _propTypes.object.isRequired, + components: _propTypes.array.isRequired, + createElement: _propTypes.func.isRequired }, getDefaultProps: function getDefaultProps() { @@ -7202,7 +9124,7 @@ return /******/ (function(modules) { // webpackBootstrap childContextTypes: { - router: object.isRequired + router: _propTypes.object.isRequired }, getChildContext: function getChildContext() { @@ -7278,15 +9200,15 @@ return /******/ (function(modules) { // webpackBootstrap module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 57 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 68 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; exports.__esModule = true; - var _PatternUtils = __webpack_require__(42); + var _PatternUtils = __webpack_require__(50); /** * Extracts an object of params the given route cares about from @@ -7309,9 +9231,9 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = getRouteParams; module.exports = exports['default']; -/***/ }, -/* 58 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 69 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -7319,16 +9241,20 @@ return /******/ (function(modules) { // webpackBootstrap exports.ContextProvider = ContextProvider; exports.ContextSubscriber = ContextSubscriber; - var _react = __webpack_require__(7); + var _propTypes = __webpack_require__(42); + + var _propTypes2 = _interopRequireDefault(_propTypes); + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } // Works around issues with context updates failing to propagate. // Caveat: the context value is expected to never change its identity. // https://github.com/facebook/react/issues/2517 // https://github.com/reactjs/react-router/issues/470 - var contextProviderShape = _react.PropTypes.shape({ - subscribe: _react.PropTypes.func.isRequired, - eventIndex: _react.PropTypes.number.isRequired + var contextProviderShape = _propTypes2.default.shape({ + subscribe: _propTypes2.default.func.isRequired, + eventIndex: _propTypes2.default.number.isRequired }); function makeContextName(name) { @@ -7435,9 +9361,9 @@ return /******/ (function(modules) { // webpackBootstrap }, _ref4; } -/***/ }, -/* 59 */ -/***/ function(module, exports) { +/***/ }), +/* 70 */ +/***/ (function(module, exports) { "use strict"; @@ -7468,9 +9394,9 @@ return /******/ (function(modules) { // webpackBootstrap return router; } -/***/ }, -/* 60 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 71 */ +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {'use strict'; @@ -7482,26 +9408,24 @@ return /******/ (function(modules) { // webpackBootstrap var _react2 = _interopRequireDefault(_react); - var _invariant = __webpack_require__(43); + var _createReactClass = __webpack_require__(53); + + var _createReactClass2 = _interopRequireDefault(_createReactClass); + + var _propTypes = __webpack_require__(42); + + var _invariant = __webpack_require__(51); var _invariant2 = _interopRequireDefault(_invariant); var _PropTypes = __webpack_require__(41); - var _ContextUtils = __webpack_require__(58); + var _ContextUtils = __webpack_require__(69); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } - var _React$PropTypes = _react2.default.PropTypes, - bool = _React$PropTypes.bool, - object = _React$PropTypes.object, - string = _React$PropTypes.string, - func = _React$PropTypes.func, - oneOfType = _React$PropTypes.oneOfType; - - function isLeftClickEvent(event) { return event.button === 0; } @@ -7533,16 +9457,10 @@ return /******/ (function(modules) { // webpackBootstrap * You could use the following component to link to that route: * * - * - * Links may pass along location state and/or query string parameters - * in the state/query props, respectively. - * - * */ - var Link = _react2.default.createClass({ + var Link = (0, _createReactClass2.default)({ displayName: 'Link', - mixins: [(0, _ContextUtils.ContextSubscriber)('router')], contextTypes: { @@ -7550,15 +9468,12 @@ return /******/ (function(modules) { // webpackBootstrap }, propTypes: { - to: oneOfType([string, object, func]), - query: object, - hash: string, - state: object, - activeStyle: object, - activeClassName: string, - onlyActiveOnIndex: bool.isRequired, - onClick: func, - target: string + to: (0, _propTypes.oneOfType)([_propTypes.string, _propTypes.object, _propTypes.func]), + activeStyle: _propTypes.object, + activeClassName: _propTypes.string, + onlyActiveOnIndex: _propTypes.bool.isRequired, + onClick: _propTypes.func, + target: _propTypes.string }, getDefaultProps: function getDefaultProps() { @@ -7632,9 +9547,9 @@ return /******/ (function(modules) { // webpackBootstrap module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 61 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 72 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -7646,7 +9561,11 @@ return /******/ (function(modules) { // webpackBootstrap var _react2 = _interopRequireDefault(_react); - var _Link = __webpack_require__(60); + var _createReactClass = __webpack_require__(53); + + var _createReactClass2 = _interopRequireDefault(_createReactClass); + + var _Link = __webpack_require__(71); var _Link2 = _interopRequireDefault(_Link); @@ -7655,8 +9574,9 @@ return /******/ (function(modules) { // webpackBootstrap /** * An is used to link to an . */ - var IndexLink = _react2.default.createClass({ + var IndexLink = (0, _createReactClass2.default)({ displayName: 'IndexLink', + render: function render() { return _react2.default.createElement(_Link2.default, _extends({}, this.props, { onlyActiveOnIndex: true })); } @@ -7665,9 +9585,9 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = IndexLink; module.exports = exports['default']; -/***/ }, -/* 62 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 73 */ +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {'use strict'; @@ -7677,7 +9597,7 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = withRouter; - var _invariant = __webpack_require__(43); + var _invariant = __webpack_require__(51); var _invariant2 = _interopRequireDefault(_invariant); @@ -7685,11 +9605,15 @@ return /******/ (function(modules) { // webpackBootstrap var _react2 = _interopRequireDefault(_react); - var _hoistNonReactStatics = __webpack_require__(63); + var _createReactClass = __webpack_require__(53); + + var _createReactClass2 = _interopRequireDefault(_createReactClass); + + var _hoistNonReactStatics = __webpack_require__(74); var _hoistNonReactStatics2 = _interopRequireDefault(_hoistNonReactStatics); - var _ContextUtils = __webpack_require__(58); + var _ContextUtils = __webpack_require__(69); var _PropTypes = __webpack_require__(41); @@ -7702,7 +9626,7 @@ return /******/ (function(modules) { // webpackBootstrap function withRouter(WrappedComponent, options) { var withRef = options && options.withRef; - var WithRouter = _react2.default.createClass({ + var WithRouter = (0, _createReactClass2.default)({ displayName: 'WithRouter', mixins: [(0, _ContextUtils.ContextSubscriber)('router')], @@ -7747,22 +9671,23 @@ return /******/ (function(modules) { // webpackBootstrap module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 63 */ -/***/ function(module, exports) { +/***/ }), +/* 74 */ +/***/ (function(module, exports) { + + 'use strict'; /** * Copyright 2015, Yahoo! Inc. * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms. */ - 'use strict'; - var REACT_STATICS = { childContextTypes: true, contextTypes: true, defaultProps: true, displayName: true, getDefaultProps: true, + getDerivedStateFromProps: true, mixins: true, propTypes: true, type: true @@ -7773,77 +9698,90 @@ return /******/ (function(modules) { // webpackBootstrap length: true, prototype: true, caller: true, + callee: true, arguments: true, arity: true }; - var isGetOwnPropertySymbolsAvailable = typeof Object.getOwnPropertySymbols === 'function'; + var defineProperty = Object.defineProperty; + var getOwnPropertyNames = Object.getOwnPropertyNames; + var getOwnPropertySymbols = Object.getOwnPropertySymbols; + var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; + var getPrototypeOf = Object.getPrototypeOf; + var objectPrototype = getPrototypeOf && getPrototypeOf(Object); - module.exports = function hoistNonReactStatics(targetComponent, sourceComponent, customStatics) { + function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) { if (typeof sourceComponent !== 'string') { // don't hoist over string (html) components - var keys = Object.getOwnPropertyNames(sourceComponent); - /* istanbul ignore else */ - if (isGetOwnPropertySymbolsAvailable) { - keys = keys.concat(Object.getOwnPropertySymbols(sourceComponent)); + if (objectPrototype) { + var inheritedComponent = getPrototypeOf(sourceComponent); + if (inheritedComponent && inheritedComponent !== objectPrototype) { + hoistNonReactStatics(targetComponent, inheritedComponent, blacklist); + } } - for (var i = 0; i < keys.length; ++i) { - if (!REACT_STATICS[keys[i]] && !KNOWN_STATICS[keys[i]] && (!customStatics || !customStatics[keys[i]])) { - try { - targetComponent[keys[i]] = sourceComponent[keys[i]]; - } catch (error) { + var keys = getOwnPropertyNames(sourceComponent); - } + if (getOwnPropertySymbols) { + keys = keys.concat(getOwnPropertySymbols(sourceComponent)); + } + + for (var i = 0; i < keys.length; ++i) { + var key = keys[i]; + if (!REACT_STATICS[key] && !KNOWN_STATICS[key] && (!blacklist || !blacklist[key])) { + var descriptor = getOwnPropertyDescriptor(sourceComponent, key); + try { // Avoid failures from read-only properties + defineProperty(targetComponent, key, descriptor); + } catch (e) {} } } + + return targetComponent; } return targetComponent; - }; + } + module.exports = hoistNonReactStatics; -/***/ }, -/* 64 */ -/***/ function(module, exports, __webpack_require__) { + +/***/ }), +/* 75 */ +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {'use strict'; exports.__esModule = true; - var _react = __webpack_require__(7); + var _createReactClass = __webpack_require__(53); - var _react2 = _interopRequireDefault(_react); + var _createReactClass2 = _interopRequireDefault(_createReactClass); + + var _propTypes = __webpack_require__(42); - var _routerWarning = __webpack_require__(46); + var _routerWarning = __webpack_require__(57); var _routerWarning2 = _interopRequireDefault(_routerWarning); - var _invariant = __webpack_require__(43); + var _invariant = __webpack_require__(51); var _invariant2 = _interopRequireDefault(_invariant); - var _Redirect = __webpack_require__(65); + var _Redirect = __webpack_require__(76); var _Redirect2 = _interopRequireDefault(_Redirect); - var _InternalPropTypes = __webpack_require__(55); + var _InternalPropTypes = __webpack_require__(66); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - var _React$PropTypes = _react2.default.PropTypes, - string = _React$PropTypes.string, - object = _React$PropTypes.object; - /** * An is used to redirect from an indexRoute. */ /* eslint-disable react/require-render-return */ - - var IndexRedirect = _react2.default.createClass({ + var IndexRedirect = (0, _createReactClass2.default)({ displayName: 'IndexRedirect', - statics: { createRouteFromReactElement: function createRouteFromReactElement(element, parentRoute) { /* istanbul ignore else: sanity check */ @@ -7856,9 +9794,9 @@ return /******/ (function(modules) { // webpackBootstrap }, propTypes: { - to: string.isRequired, - query: object, - state: object, + to: _propTypes.string.isRequired, + query: _propTypes.object, + state: _propTypes.object, onEnter: _InternalPropTypes.falsy, children: _InternalPropTypes.falsy }, @@ -7873,34 +9811,32 @@ return /******/ (function(modules) { // webpackBootstrap module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 65 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 76 */ +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {'use strict'; exports.__esModule = true; - var _react = __webpack_require__(7); + var _createReactClass = __webpack_require__(53); - var _react2 = _interopRequireDefault(_react); + var _createReactClass2 = _interopRequireDefault(_createReactClass); + + var _propTypes = __webpack_require__(42); - var _invariant = __webpack_require__(43); + var _invariant = __webpack_require__(51); var _invariant2 = _interopRequireDefault(_invariant); var _RouteUtils = __webpack_require__(40); - var _PatternUtils = __webpack_require__(42); + var _PatternUtils = __webpack_require__(50); - var _InternalPropTypes = __webpack_require__(55); + var _InternalPropTypes = __webpack_require__(66); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - var _React$PropTypes = _react2.default.PropTypes, - string = _React$PropTypes.string, - object = _React$PropTypes.object; - /** * A is used to declare another URL path a client should * be sent to when they request a given URL. @@ -7909,11 +9845,9 @@ return /******/ (function(modules) { // webpackBootstrap * and are traversed in the same manner. */ /* eslint-disable react/require-render-return */ - - var Redirect = _react2.default.createClass({ + var Redirect = (0, _createReactClass2.default)({ displayName: 'Redirect', - statics: { createRouteFromReactElement: function createRouteFromReactElement(element) { var route = (0, _RouteUtils.createRouteFromReactElement)(element); @@ -7963,11 +9897,11 @@ return /******/ (function(modules) { // webpackBootstrap }, propTypes: { - path: string, - from: string, // Alias for path - to: string.isRequired, - query: object, - state: object, + path: _propTypes.string, + from: _propTypes.string, // Alias for path + to: _propTypes.string.isRequired, + query: _propTypes.object, + state: _propTypes.object, onEnter: _InternalPropTypes.falsy, children: _InternalPropTypes.falsy }, @@ -7982,44 +9916,42 @@ return /******/ (function(modules) { // webpackBootstrap module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 66 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 77 */ +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {'use strict'; exports.__esModule = true; - var _react = __webpack_require__(7); + var _createReactClass = __webpack_require__(53); - var _react2 = _interopRequireDefault(_react); + var _createReactClass2 = _interopRequireDefault(_createReactClass); + + var _propTypes = __webpack_require__(42); - var _routerWarning = __webpack_require__(46); + var _routerWarning = __webpack_require__(57); var _routerWarning2 = _interopRequireDefault(_routerWarning); - var _invariant = __webpack_require__(43); + var _invariant = __webpack_require__(51); var _invariant2 = _interopRequireDefault(_invariant); var _RouteUtils = __webpack_require__(40); - var _InternalPropTypes = __webpack_require__(55); + var _InternalPropTypes = __webpack_require__(66); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - var func = _react2.default.PropTypes.func; - /** * An is used to specify its parent's in * a JSX route config. */ /* eslint-disable react/require-render-return */ - - var IndexRoute = _react2.default.createClass({ + var IndexRoute = (0, _createReactClass2.default)({ displayName: 'IndexRoute', - statics: { createRouteFromReactElement: function createRouteFromReactElement(element, parentRoute) { /* istanbul ignore else: sanity check */ @@ -8035,8 +9967,8 @@ return /******/ (function(modules) { // webpackBootstrap path: _InternalPropTypes.falsy, component: _InternalPropTypes.component, components: _InternalPropTypes.components, - getComponent: func, - getComponents: func + getComponent: _propTypes.func, + getComponents: _propTypes.func }, /* istanbul ignore next: sanity check */ @@ -8049,32 +9981,30 @@ return /******/ (function(modules) { // webpackBootstrap module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 67 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 78 */ +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {'use strict'; exports.__esModule = true; - var _react = __webpack_require__(7); + var _createReactClass = __webpack_require__(53); - var _react2 = _interopRequireDefault(_react); + var _createReactClass2 = _interopRequireDefault(_createReactClass); + + var _propTypes = __webpack_require__(42); - var _invariant = __webpack_require__(43); + var _invariant = __webpack_require__(51); var _invariant2 = _interopRequireDefault(_invariant); var _RouteUtils = __webpack_require__(40); - var _InternalPropTypes = __webpack_require__(55); + var _InternalPropTypes = __webpack_require__(66); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - var _React$PropTypes = _react2.default.PropTypes, - string = _React$PropTypes.string, - func = _React$PropTypes.func; - /** * A is used to declare which components are rendered to the * page when the URL matches a given pattern. @@ -8086,21 +10016,19 @@ return /******/ (function(modules) { // webpackBootstrap * rendered into the DOM, nested in the same order as in the tree. */ /* eslint-disable react/require-render-return */ - - var Route = _react2.default.createClass({ + var Route = (0, _createReactClass2.default)({ displayName: 'Route', - statics: { createRouteFromReactElement: _RouteUtils.createRouteFromReactElement }, propTypes: { - path: string, + path: _propTypes.string, component: _InternalPropTypes.component, components: _InternalPropTypes.components, - getComponent: func, - getComponents: func + getComponent: _propTypes.func, + getComponents: _propTypes.func }, /* istanbul ignore next: sanity check */ @@ -8113,9 +10041,9 @@ return /******/ (function(modules) { // webpackBootstrap module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 68 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 79 */ +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {'use strict'; @@ -8123,23 +10051,23 @@ return /******/ (function(modules) { // webpackBootstrap var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - var _Actions = __webpack_require__(69); + var _Actions = __webpack_require__(80); - var _invariant = __webpack_require__(43); + var _invariant = __webpack_require__(51); var _invariant2 = _interopRequireDefault(_invariant); - var _createMemoryHistory = __webpack_require__(70); + var _createMemoryHistory = __webpack_require__(81); var _createMemoryHistory2 = _interopRequireDefault(_createMemoryHistory); - var _createTransitionManager = __webpack_require__(45); + var _createTransitionManager = __webpack_require__(56); var _createTransitionManager2 = _interopRequireDefault(_createTransitionManager); var _RouteUtils = __webpack_require__(40); - var _RouterUtils = __webpack_require__(59); + var _RouterUtils = __webpack_require__(70); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -8191,9 +10119,9 @@ return /******/ (function(modules) { // webpackBootstrap module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 69 */ -/***/ function(module, exports) { +/***/ }), +/* 80 */ +/***/ (function(module, exports) { 'use strict'; @@ -8218,24 +10146,24 @@ return /******/ (function(modules) { // webpackBootstrap */ var POP = exports.POP = 'POP'; -/***/ }, -/* 70 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 81 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; exports.__esModule = true; exports.default = createMemoryHistory; - var _useQueries = __webpack_require__(71); + var _useQueries = __webpack_require__(82); var _useQueries2 = _interopRequireDefault(_useQueries); - var _useBasename = __webpack_require__(78); + var _useBasename = __webpack_require__(88); var _useBasename2 = _interopRequireDefault(_useBasename); - var _createMemoryHistory = __webpack_require__(79); + var _createMemoryHistory = __webpack_require__(89); var _createMemoryHistory2 = _interopRequireDefault(_createMemoryHistory); @@ -8254,9 +10182,9 @@ return /******/ (function(modules) { // webpackBootstrap } module.exports = exports['default']; -/***/ }, -/* 71 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 82 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -8264,15 +10192,15 @@ return /******/ (function(modules) { // webpackBootstrap var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - var _queryString = __webpack_require__(72); + var _queryString = __webpack_require__(83); - var _runTransitionHook = __webpack_require__(75); + var _runTransitionHook = __webpack_require__(85); var _runTransitionHook2 = _interopRequireDefault(_runTransitionHook); - var _LocationUtils = __webpack_require__(76); + var _LocationUtils = __webpack_require__(86); - var _PathUtils = __webpack_require__(77); + var _PathUtils = __webpack_require__(87); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -8380,13 +10308,13 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = useQueries; -/***/ }, -/* 72 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 83 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; - var strictUriEncode = __webpack_require__(73); - var objectAssign = __webpack_require__(74); + var strictUriEncode = __webpack_require__(84); + var objectAssign = __webpack_require__(46); function encoderForArrayFormat(opts) { switch (opts.arrayFormat) { @@ -8451,12 +10379,14 @@ return /******/ (function(modules) { // webpackBootstrap case 'bracket': return function (key, value, accumulator) { result = /(\[\])$/.exec(key); - key = key.replace(/\[\]$/, ''); - if (!result || accumulator[key] === undefined) { + if (!result) { accumulator[key] = value; return; + } else if (accumulator[key] === undefined) { + accumulator[key] = [value]; + return; } accumulator[key] = [].concat(accumulator[key], value); @@ -8589,9 +10519,9 @@ return /******/ (function(modules) { // webpackBootstrap }; -/***/ }, -/* 73 */ -/***/ function(module, exports) { +/***/ }), +/* 84 */ +/***/ (function(module, exports) { 'use strict'; module.exports = function (str) { @@ -8601,111 +10531,15 @@ return /******/ (function(modules) { // webpackBootstrap }; -/***/ }, -/* 74 */ -/***/ function(module, exports) { - - /* - object-assign - (c) Sindre Sorhus - @license MIT - */ - - 'use strict'; - /* eslint-disable no-unused-vars */ - var getOwnPropertySymbols = Object.getOwnPropertySymbols; - var hasOwnProperty = Object.prototype.hasOwnProperty; - var propIsEnumerable = Object.prototype.propertyIsEnumerable; - - function toObject(val) { - if (val === null || val === undefined) { - throw new TypeError('Object.assign cannot be called with null or undefined'); - } - - return Object(val); - } - - function shouldUseNative() { - try { - if (!Object.assign) { - return false; - } - - // Detect buggy property enumeration order in older V8 versions. - - // https://bugs.chromium.org/p/v8/issues/detail?id=4118 - var test1 = new String('abc'); // eslint-disable-line no-new-wrappers - test1[5] = 'de'; - if (Object.getOwnPropertyNames(test1)[0] === '5') { - return false; - } - - // https://bugs.chromium.org/p/v8/issues/detail?id=3056 - var test2 = {}; - for (var i = 0; i < 10; i++) { - test2['_' + String.fromCharCode(i)] = i; - } - var order2 = Object.getOwnPropertyNames(test2).map(function (n) { - return test2[n]; - }); - if (order2.join('') !== '0123456789') { - return false; - } - - // https://bugs.chromium.org/p/v8/issues/detail?id=3056 - var test3 = {}; - 'abcdefghijklmnopqrst'.split('').forEach(function (letter) { - test3[letter] = letter; - }); - if (Object.keys(Object.assign({}, test3)).join('') !== - 'abcdefghijklmnopqrst') { - return false; - } - - return true; - } catch (err) { - // We don't expect any of the above to throw, but better to be safe. - return false; - } - } - - module.exports = shouldUseNative() ? Object.assign : function (target, source) { - var from; - var to = toObject(target); - var symbols; - - for (var s = 1; s < arguments.length; s++) { - from = Object(arguments[s]); - - for (var key in from) { - if (hasOwnProperty.call(from, key)) { - to[key] = from[key]; - } - } - - if (getOwnPropertySymbols) { - symbols = getOwnPropertySymbols(from); - for (var i = 0; i < symbols.length; i++) { - if (propIsEnumerable.call(from, symbols[i])) { - to[symbols[i]] = from[symbols[i]]; - } - } - } - } - - return to; - }; - - -/***/ }, -/* 75 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 85 */ +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {'use strict'; exports.__esModule = true; - var _warning = __webpack_require__(47); + var _warning = __webpack_require__(58); var _warning2 = _interopRequireDefault(_warning); @@ -8726,9 +10560,9 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = runTransitionHook; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 76 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 86 */ +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {'use strict'; @@ -8739,17 +10573,17 @@ return /******/ (function(modules) { // webpackBootstrap var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - var _invariant = __webpack_require__(43); + var _invariant = __webpack_require__(51); var _invariant2 = _interopRequireDefault(_invariant); - var _warning = __webpack_require__(47); + var _warning = __webpack_require__(58); var _warning2 = _interopRequireDefault(_warning); - var _PathUtils = __webpack_require__(77); + var _PathUtils = __webpack_require__(87); - var _Actions = __webpack_require__(69); + var _Actions = __webpack_require__(80); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -8824,16 +10658,16 @@ return /******/ (function(modules) { // webpackBootstrap }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 77 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 87 */ +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {'use strict'; exports.__esModule = true; exports.createPath = exports.parsePath = exports.getQueryStringValueFromPath = exports.stripQueryStringValueFromPath = exports.addQueryStringValueToPath = undefined; - var _warning = __webpack_require__(47); + var _warning = __webpack_require__(58); var _warning2 = _interopRequireDefault(_warning); @@ -8926,9 +10760,9 @@ return /******/ (function(modules) { // webpackBootstrap }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 78 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 88 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -8936,11 +10770,11 @@ return /******/ (function(modules) { // webpackBootstrap var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - var _runTransitionHook = __webpack_require__(75); + var _runTransitionHook = __webpack_require__(85); var _runTransitionHook2 = _interopRequireDefault(_runTransitionHook); - var _PathUtils = __webpack_require__(77); + var _PathUtils = __webpack_require__(87); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -9040,9 +10874,9 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = useBasename; -/***/ }, -/* 79 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 89 */ +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {'use strict'; @@ -9050,23 +10884,23 @@ return /******/ (function(modules) { // webpackBootstrap var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - var _warning = __webpack_require__(47); + var _warning = __webpack_require__(58); var _warning2 = _interopRequireDefault(_warning); - var _invariant = __webpack_require__(43); + var _invariant = __webpack_require__(51); var _invariant2 = _interopRequireDefault(_invariant); - var _LocationUtils = __webpack_require__(76); + var _LocationUtils = __webpack_require__(86); - var _PathUtils = __webpack_require__(77); + var _PathUtils = __webpack_require__(87); - var _createHistory = __webpack_require__(80); + var _createHistory = __webpack_require__(90); var _createHistory2 = _interopRequireDefault(_createHistory); - var _Actions = __webpack_require__(69); + var _Actions = __webpack_require__(80); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -9186,25 +11020,25 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = createMemoryHistory; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 80 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 90 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; exports.__esModule = true; - var _AsyncUtils = __webpack_require__(81); + var _AsyncUtils = __webpack_require__(91); - var _PathUtils = __webpack_require__(77); + var _PathUtils = __webpack_require__(87); - var _runTransitionHook = __webpack_require__(75); + var _runTransitionHook = __webpack_require__(85); var _runTransitionHook2 = _interopRequireDefault(_runTransitionHook); - var _Actions = __webpack_require__(69); + var _Actions = __webpack_require__(80); - var _LocationUtils = __webpack_require__(76); + var _LocationUtils = __webpack_require__(86); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -9367,9 +11201,9 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = createHistory; -/***/ }, -/* 81 */ -/***/ function(module, exports) { +/***/ }), +/* 91 */ +/***/ (function(module, exports) { "use strict"; @@ -9428,20 +11262,20 @@ return /******/ (function(modules) { // webpackBootstrap next(); }; -/***/ }, -/* 82 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 92 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; exports.__esModule = true; exports.default = useRouterHistory; - var _useQueries = __webpack_require__(71); + var _useQueries = __webpack_require__(82); var _useQueries2 = _interopRequireDefault(_useQueries); - var _useBasename = __webpack_require__(78); + var _useBasename = __webpack_require__(88); var _useBasename2 = _interopRequireDefault(_useBasename); @@ -9455,9 +11289,9 @@ return /******/ (function(modules) { // webpackBootstrap } module.exports = exports['default']; -/***/ }, -/* 83 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 93 */ +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {'use strict'; @@ -9469,11 +11303,11 @@ return /******/ (function(modules) { // webpackBootstrap var _react2 = _interopRequireDefault(_react); - var _RouterContext = __webpack_require__(56); + var _RouterContext = __webpack_require__(67); var _RouterContext2 = _interopRequireDefault(_RouterContext); - var _routerWarning = __webpack_require__(46); + var _routerWarning = __webpack_require__(57); var _routerWarning2 = _interopRequireDefault(_routerWarning); @@ -9518,19 +11352,19 @@ return /******/ (function(modules) { // webpackBootstrap module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 84 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 94 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; exports.__esModule = true; - var _createBrowserHistory = __webpack_require__(85); + var _createBrowserHistory = __webpack_require__(95); var _createBrowserHistory2 = _interopRequireDefault(_createBrowserHistory); - var _createRouterHistory = __webpack_require__(91); + var _createRouterHistory = __webpack_require__(101); var _createRouterHistory2 = _interopRequireDefault(_createRouterHistory); @@ -9539,9 +11373,9 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = (0, _createRouterHistory2.default)(_createBrowserHistory2.default); module.exports = exports['default']; -/***/ }, -/* 85 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 95 */ +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {'use strict'; @@ -9549,23 +11383,23 @@ return /******/ (function(modules) { // webpackBootstrap var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - var _invariant = __webpack_require__(43); + var _invariant = __webpack_require__(51); var _invariant2 = _interopRequireDefault(_invariant); - var _ExecutionEnvironment = __webpack_require__(86); + var _ExecutionEnvironment = __webpack_require__(96); - var _BrowserProtocol = __webpack_require__(87); + var _BrowserProtocol = __webpack_require__(97); var BrowserProtocol = _interopRequireWildcard(_BrowserProtocol); - var _RefreshProtocol = __webpack_require__(90); + var _RefreshProtocol = __webpack_require__(100); var RefreshProtocol = _interopRequireWildcard(_RefreshProtocol); - var _DOMUtils = __webpack_require__(88); + var _DOMUtils = __webpack_require__(98); - var _createHistory = __webpack_require__(80); + var _createHistory = __webpack_require__(90); var _createHistory2 = _interopRequireDefault(_createHistory); @@ -9638,33 +11472,33 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = createBrowserHistory; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 86 */ -/***/ function(module, exports) { +/***/ }), +/* 96 */ +/***/ (function(module, exports) { 'use strict'; exports.__esModule = true; var canUseDOM = exports.canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement); -/***/ }, -/* 87 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 97 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; exports.__esModule = true; exports.go = exports.replaceLocation = exports.pushLocation = exports.startListener = exports.getUserConfirmation = exports.getCurrentLocation = undefined; - var _LocationUtils = __webpack_require__(76); + var _LocationUtils = __webpack_require__(86); - var _DOMUtils = __webpack_require__(88); + var _DOMUtils = __webpack_require__(98); - var _DOMStateStorage = __webpack_require__(89); + var _DOMStateStorage = __webpack_require__(99); - var _PathUtils = __webpack_require__(77); + var _PathUtils = __webpack_require__(87); - var _ExecutionEnvironment = __webpack_require__(86); + var _ExecutionEnvironment = __webpack_require__(96); var PopStateEvent = 'popstate'; var HashChangeEvent = 'hashchange'; @@ -9751,9 +11585,9 @@ return /******/ (function(modules) { // webpackBootstrap if (n) window.history.go(n); }; -/***/ }, -/* 88 */ -/***/ function(module, exports) { +/***/ }), +/* 98 */ +/***/ (function(module, exports) { 'use strict'; @@ -9805,16 +11639,16 @@ return /******/ (function(modules) { // webpackBootstrap return event.state === undefined && navigator.userAgent.indexOf('CriOS') === -1; }; -/***/ }, -/* 89 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 99 */ +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {'use strict'; exports.__esModule = true; exports.readState = exports.saveState = undefined; - var _warning = __webpack_require__(47); + var _warning = __webpack_require__(58); var _warning2 = _interopRequireDefault(_warning); @@ -9896,16 +11730,16 @@ return /******/ (function(modules) { // webpackBootstrap }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 90 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 100 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; exports.__esModule = true; exports.replaceLocation = exports.pushLocation = exports.getCurrentLocation = exports.go = exports.getUserConfirmation = undefined; - var _BrowserProtocol = __webpack_require__(87); + var _BrowserProtocol = __webpack_require__(97); Object.defineProperty(exports, 'getUserConfirmation', { enumerable: true, @@ -9920,9 +11754,9 @@ return /******/ (function(modules) { // webpackBootstrap } }); - var _LocationUtils = __webpack_require__(76); + var _LocationUtils = __webpack_require__(86); - var _PathUtils = __webpack_require__(77); + var _PathUtils = __webpack_require__(87); var getCurrentLocation = exports.getCurrentLocation = function getCurrentLocation() { return (0, _LocationUtils.createLocation)(window.location); @@ -9938,21 +11772,16 @@ return /******/ (function(modules) { // webpackBootstrap return false; // Don't update location }; -/***/ }, -/* 91 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 101 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; exports.__esModule = true; + exports.default = createRouterHistory; - exports.default = function (createHistory) { - var history = void 0; - if (canUseDOM) history = (0, _useRouterHistory2.default)(createHistory)(); - return history; - }; - - var _useRouterHistory = __webpack_require__(82); + var _useRouterHistory = __webpack_require__(92); var _useRouterHistory2 = _interopRequireDefault(_useRouterHistory); @@ -9960,21 +11789,26 @@ return /******/ (function(modules) { // webpackBootstrap var canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement); + function createRouterHistory(createHistory) { + var history = void 0; + if (canUseDOM) history = (0, _useRouterHistory2.default)(createHistory)(); + return history; + } module.exports = exports['default']; -/***/ }, -/* 92 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 102 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; exports.__esModule = true; - var _createHashHistory = __webpack_require__(93); + var _createHashHistory = __webpack_require__(103); var _createHashHistory2 = _interopRequireDefault(_createHashHistory); - var _createRouterHistory = __webpack_require__(91); + var _createRouterHistory = __webpack_require__(101); var _createRouterHistory2 = _interopRequireDefault(_createRouterHistory); @@ -9983,9 +11817,9 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = (0, _createRouterHistory2.default)(_createHashHistory2.default); module.exports = exports['default']; -/***/ }, -/* 93 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 103 */ +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {'use strict'; @@ -9993,23 +11827,23 @@ return /******/ (function(modules) { // webpackBootstrap var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - var _warning = __webpack_require__(47); + var _warning = __webpack_require__(58); var _warning2 = _interopRequireDefault(_warning); - var _invariant = __webpack_require__(43); + var _invariant = __webpack_require__(51); var _invariant2 = _interopRequireDefault(_invariant); - var _ExecutionEnvironment = __webpack_require__(86); + var _ExecutionEnvironment = __webpack_require__(96); - var _DOMUtils = __webpack_require__(88); + var _DOMUtils = __webpack_require__(98); - var _HashProtocol = __webpack_require__(94); + var _HashProtocol = __webpack_require__(104); var HashProtocol = _interopRequireWildcard(_HashProtocol); - var _createHistory = __webpack_require__(80); + var _createHistory = __webpack_require__(90); var _createHistory2 = _interopRequireDefault(_createHistory); @@ -10136,16 +11970,16 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = createHashHistory; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 94 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 104 */ +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {'use strict'; exports.__esModule = true; exports.replaceLocation = exports.pushLocation = exports.startListener = exports.getCurrentLocation = exports.go = exports.getUserConfirmation = undefined; - var _BrowserProtocol = __webpack_require__(87); + var _BrowserProtocol = __webpack_require__(97); Object.defineProperty(exports, 'getUserConfirmation', { enumerable: true, @@ -10160,17 +11994,17 @@ return /******/ (function(modules) { // webpackBootstrap } }); - var _warning = __webpack_require__(47); + var _warning = __webpack_require__(58); var _warning2 = _interopRequireDefault(_warning); - var _LocationUtils = __webpack_require__(76); + var _LocationUtils = __webpack_require__(86); - var _DOMUtils = __webpack_require__(88); + var _DOMUtils = __webpack_require__(98); - var _DOMStateStorage = __webpack_require__(89); + var _DOMStateStorage = __webpack_require__(99); - var _PathUtils = __webpack_require__(77); + var _PathUtils = __webpack_require__(87); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -10278,9 +12112,9 @@ return /******/ (function(modules) { // webpackBootstrap }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 95 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 105 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -10311,9 +12145,9 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = HomeRoute; -/***/ }, -/* 96 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 106 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -10365,9 +12199,9 @@ return /******/ (function(modules) { // webpackBootstrap }, _temp); exports.default = LoginRoute; -/***/ }, -/* 97 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 107 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -10430,9 +12264,9 @@ return /******/ (function(modules) { // webpackBootstrap }, _temp); exports.default = LogoutRoute; -/***/ }, -/* 98 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 108 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -10486,9 +12320,9 @@ return /******/ (function(modules) { // webpackBootstrap }, _temp); exports.default = AuthenticatedRoute; -/***/ }, -/* 99 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 109 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -10552,9 +12386,9 @@ return /******/ (function(modules) { // webpackBootstrap }, _temp); exports.default = Authenticated; -/***/ }, -/* 100 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 110 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -10622,9 +12456,9 @@ return /******/ (function(modules) { // webpackBootstrap }, _temp); exports.default = NotAuthenticated; -/***/ }, -/* 101 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 111 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -10689,9 +12523,9 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = LoginLink; -/***/ }, -/* 102 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 112 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -10795,9 +12629,9 @@ return /******/ (function(modules) { // webpackBootstrap }, _temp2); exports.default = LogoutLink; -/***/ }, -/* 103 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 113 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -10830,11 +12664,11 @@ return /******/ (function(modules) { // webpackBootstrap var _UserActions2 = _interopRequireDefault(_UserActions); - var _LoadingText = __webpack_require__(104); + var _LoadingText = __webpack_require__(114); var _LoadingText2 = _interopRequireDefault(_LoadingText); - var _SocialLoginButton = __webpack_require__(105); + var _SocialLoginButton = __webpack_require__(115); var _SocialLoginButton2 = _interopRequireDefault(_SocialLoginButton); @@ -11046,7 +12880,8 @@ return /******/ (function(modules) { // webpackBootstrap return _ret2 = (_temp2 = (_this3 = _possibleConstructorReturn(this, (_ref2 = LoginForm.__proto__ || Object.getPrototypeOf(LoginForm)).call.apply(_ref2, [this].concat(args))), _this3), _this3.state = { fields: { username: '', - password: '' + password: '', + brand: 'scooponexperience' }, errorMessage: null, isFormProcessing: false @@ -11090,7 +12925,8 @@ return /******/ (function(modules) { // webpackBootstrap _UserActions2.default.login({ login: data.username, - password: data.password + password: data.password, + brand: data.brand }, function (err, result) { if (err) { if (onSubmitError) { @@ -11211,9 +13047,9 @@ return /******/ (function(modules) { // webpackBootstrap }, _temp3); exports.default = LoginForm; -/***/ }, -/* 104 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 114 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -11293,9 +13129,9 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = LoadingText; -/***/ }, -/* 105 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 115 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -11316,7 +13152,7 @@ return /******/ (function(modules) { // webpackBootstrap var _utils2 = _interopRequireDefault(_utils); - var _SocialLoginLink = __webpack_require__(106); + var _SocialLoginLink = __webpack_require__(116); var _SocialLoginLink2 = _interopRequireDefault(_SocialLoginLink); @@ -11357,9 +13193,9 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = SocialLoginButton; -/***/ }, -/* 106 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 116 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -11376,7 +13212,7 @@ return /******/ (function(modules) { // webpackBootstrap var _react2 = _interopRequireDefault(_react); - var _xtend = __webpack_require__(107); + var _xtend = __webpack_require__(117); var _xtend2 = _interopRequireDefault(_xtend); @@ -11518,9 +13354,9 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = SocialLoginLink; -/***/ }, -/* 107 */ -/***/ function(module, exports) { +/***/ }), +/* 117 */ +/***/ (function(module, exports) { module.exports = extend @@ -11543,9 +13379,9 @@ return /******/ (function(modules) { // webpackBootstrap } -/***/ }, -/* 108 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 118 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -11910,9 +13746,9 @@ return /******/ (function(modules) { // webpackBootstrap }, _temp3); exports.default = UserProfileForm; -/***/ }, -/* 109 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 119 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -11941,7 +13777,7 @@ return /******/ (function(modules) { // webpackBootstrap var _context2 = _interopRequireDefault(_context); - var _LoginLink = __webpack_require__(101); + var _LoginLink = __webpack_require__(111); var _LoginLink2 = _interopRequireDefault(_LoginLink); @@ -11949,11 +13785,11 @@ return /******/ (function(modules) { // webpackBootstrap var _UserActions2 = _interopRequireDefault(_UserActions); - var _LoadingText = __webpack_require__(104); + var _LoadingText = __webpack_require__(114); var _LoadingText2 = _interopRequireDefault(_LoadingText); - var _SocialLoginButton = __webpack_require__(105); + var _SocialLoginButton = __webpack_require__(115); var _SocialLoginButton2 = _interopRequireDefault(_SocialLoginButton); @@ -12433,9 +14269,9 @@ return /******/ (function(modules) { // webpackBootstrap }, _temp3); exports.default = RegistrationForm; -/***/ }, -/* 110 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 120 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -12458,7 +14294,7 @@ return /******/ (function(modules) { // webpackBootstrap var _utils2 = _interopRequireDefault(_utils); - var _LoginLink = __webpack_require__(101); + var _LoginLink = __webpack_require__(111); var _LoginLink2 = _interopRequireDefault(_LoginLink); @@ -12705,9 +14541,9 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = ResetPasswordForm; -/***/ }, -/* 111 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 121 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -12730,11 +14566,11 @@ return /******/ (function(modules) { // webpackBootstrap var _utils2 = _interopRequireDefault(_utils); - var _LoginLink = __webpack_require__(101); + var _LoginLink = __webpack_require__(111); var _LoginLink2 = _interopRequireDefault(_LoginLink); - var _LoadingText = __webpack_require__(104); + var _LoadingText = __webpack_require__(114); var _LoadingText2 = _interopRequireDefault(_LoadingText); @@ -13027,9 +14863,9 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = ChangePasswordForm; -/***/ }, -/* 112 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 122 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -13050,7 +14886,7 @@ return /******/ (function(modules) { // webpackBootstrap var _utils2 = _interopRequireDefault(_utils); - var _LoginLink = __webpack_require__(101); + var _LoginLink = __webpack_require__(111); var _LoginLink2 = _interopRequireDefault(_LoginLink); @@ -13147,9 +14983,9 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = VerifyEmailView; -/***/ }, -/* 113 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 123 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -13168,7 +15004,7 @@ return /******/ (function(modules) { // webpackBootstrap var _utils2 = _interopRequireDefault(_utils); - var _UserComponent2 = __webpack_require__(114); + var _UserComponent2 = __webpack_require__(124); var _UserComponent3 = _interopRequireDefault(_UserComponent2); @@ -13237,9 +15073,9 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = UserField; -/***/ }, -/* 114 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 124 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -13318,7 +15154,7 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = UserComponent; -/***/ } +/***/ }) /******/ ]) }); ; \ No newline at end of file diff --git a/dist/stormpath-sdk-react.min.js b/dist/stormpath-sdk-react.min.js index 3946b89..e44be09 100644 --- a/dist/stormpath-sdk-react.min.js +++ b/dist/stormpath-sdk-react.min.js @@ -1,11 +1,11 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.ReactStormpath=t(require("react")):e.ReactStormpath=t(e.React)}(this,function(e){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(){s.default.init.apply(s.default,arguments)}function a(){return s.default.getAccessToken()}Object.defineProperty(t,"__esModule",{value:!0}),t.UserComponent=t.UserField=t.SocialLoginButton=t.SocialLoginLink=t.VerifyEmailView=t.ChangePasswordForm=t.ResetPasswordForm=t.RegistrationForm=t.UserProfileForm=t.LoginForm=t.LogoutLink=t.LoginLink=t.NotAuthenticated=t.Authenticated=t.AuthenticatedRoute=t.LogoutRoute=t.LoginRoute=t.HomeRoute=t.constants=t.actions=t.Router=t.context=void 0,t.init=o,t.getAccessToken=a;var i=n(55),s=r(i),u=n(4),l=r(u),c=n(63),f=r(c),p=n(7),d=r(p),h=n(20),v=r(h),m=n(32),y=r(m),g=n(33),b=r(g),_=n(34),w=r(_),E=n(31),O=r(E),P=n(56),k=r(P),j=n(60),S=r(j),R=n(14),x=r(R),N=n(59),C=r(N),T=n(58),M=r(T),A=n(65),L=r(A),F=n(61),I=r(F),U=n(62),D=r(U),q=n(57),H=r(q),V=n(66),B=r(V),G=n(35),W=r(G),z=n(19),K=r(z),Q=n(64),Y=r(Q),$=n(36),J=r($);t.context=l.default,t.Router=f.default,t.actions=d.default,t.constants=v.default,t.HomeRoute=y.default,t.LoginRoute=b.default,t.LogoutRoute=w.default,t.AuthenticatedRoute=O.default,t.Authenticated=k.default,t.NotAuthenticated=S.default,t.LoginLink=x.default,t.LogoutLink=C.default,t.LoginForm=M.default,t.UserProfileForm=L.default,t.RegistrationForm=I.default,t.ResetPasswordForm=D.default,t.ChangePasswordForm=H.default,t.VerifyEmailView=B.default,t.SocialLoginLink=W.default,t.SocialLoginButton=K.default,t.UserField=Y.default,t.UserComponent=J.default,t.default=s.default},function(t,n){t.exports=e},function(e,t){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(e){if(c===setTimeout)return setTimeout(e,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}function a(e){if(f===clearTimeout)return clearTimeout(e);if((f===r||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(e);try{return f(e)}catch(t){try{return f.call(null,e)}catch(t){return f.call(this,e)}}}function i(){v&&d&&(v=!1,d.length?h=d.concat(h):m=-1,h.length&&s())}function s(){if(!v){var e=o(i);v=!0;for(var t=h.length;t;){for(d=h,h=[];++m1)for(var n=1;n-1)return!0}return!1}},{key:"isInputLikeComponent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["input","field","text"];if("function"==typeof e.type){var n=this.containsWord(this.functionName(e.type),t),r=this.takeProp(e.props,"spInputLike","data-spInputLike");return r||n}}},{key:"takeProp",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r-1&&"submit"!==e.props.type&&t(e.props.name,n)}},{key:"getFormFieldMap",value:function(e,t){var n={},r=function(e,t,r){e.props.ignore||(e.props.fieldName&&(t=elements.props.fieldName),t in n||(n[t]={element:e,defaultValue:r}))};this.forEachChild(e,function(e){e.props&&t(e,r.bind(null,e))});var o={},a={};for(var i in n){var s=n[i],u=s.element,l="function"==typeof u.type?this.functionName(u.type):u.type;l in o||(o[l]={}),a[i]=void 0!==s.defaultValue?s.defaultValue:u.props.value||"",o[l][u.props.name]={fieldName:i,field:u}}return{defaultValues:a,inverse:o}}},{key:"getFieldValue",value:function(e,t){for(var n=e,r=t.split("."),o=0;o1?n-1:0),i=1;i2?r-2:0);for(var o=2;o0?void 0:"production"!==e.env.NODE_ENV?(0,p.default)(!1,'Missing splat #%s for path "%s"',u,t):(0,p.default)(!1),null!=d&&(s+=encodeURI(d));else if("("===c)l[a]="",a+=1;else if(")"===c){var m=l.pop();a-=1,a?l[a-1]+=m:s+=m}else if("\\("===c)s+="(";else if("\\)"===c)s+=")";else if(":"===c.charAt(0))if(f=c.substring(1),d=n[f],null!=d||a>0?void 0:"production"!==e.env.NODE_ENV?(0,p.default)(!1,'Missing "%s" parameter for path "%s"',f,t):(0,p.default)(!1),null==d){if(a){l[a-1]="";for(var y=o.indexOf(c),g=o.slice(y,o.length),b=-1,_=0;_0?void 0:"production"!==e.env.NODE_ENV?(0,p.default)(!1,'Path "%s" is missing end paren at segment "%s"',t,g.join("")):(0,p.default)(!1),h=y+b-1}}else a?l[a-1]+=encodeURIComponent(d):s+=encodeURIComponent(d);else a?l[a-1]+=c:s+=c;return a<=0?void 0:"production"!==e.env.NODE_ENV?(0,p.default)(!1,'Path "%s" is missing end paren',t):(0,p.default)(!1),s.replace(/\/+/g,"/")}t.__esModule=!0,t.compilePattern=i,t.matchPattern=s,t.getParamNames=u,t.getParams=l,t.formatPattern=c;var f=n(5),p=r(f),d=Object.create(null)}).call(t,n(2))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(t.indexOf("deprecated")!==-1){if(u[t])return;u[t]=!0}t="[react-router] "+t;for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o0&&void 0!==arguments[0]?arguments[0]:"/",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.POP,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o="string"==typeof t?(0,c.parsePath)(t):t;"production"!==e.env.NODE_ENV?(0,l.default)(!o.path,"Location descriptor objects should have a `pathname`, not a `path`."):void 0;var a=o.pathname||"/",i=o.search||"",s=o.hash||"",u=o.state;return{pathname:a,search:i,hash:s,state:u,action:n,key:r}},function(e){return"[object Date]"===Object.prototype.toString.call(e)}),d=t.statesAreEqual=function t(n,r){if(n===r)return!0;var a="undefined"==typeof n?"undefined":o(n),i="undefined"==typeof r?"undefined":o(r);if(a!==i)return!1;if("function"===a?"production"!==e.env.NODE_ENV?(0,s.default)(!1,"You must not store functions in location state"):(0,s.default)(!1):void 0,"object"===a){if(p(n)&&p(r)?"production"!==e.env.NODE_ENV?(0,s.default)(!1,"You must not store Date objects in location state"):(0,s.default)(!1):void 0,!Array.isArray(n)){var u=Object.keys(n),l=Object.keys(r);return u.length===l.length&&u.every(function(e){return t(n[e],r[e])})}return Array.isArray(r)&&n.length===r.length&&n.every(function(e,n){return t(e,r[n])})}return!1};t.locationsAreEqual=function(e,t){return e.key===t.key&&e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&d(e.state,t.state)}}).call(t,n(2))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=Object.assign||function(e){for(var t=1;t should not have a "'+t+'" prop')}t.__esModule=!0,t.routes=t.route=t.components=t.component=t.history=void 0,t.falsy=r;var o=n(1),a=o.PropTypes.func,i=o.PropTypes.object,s=o.PropTypes.arrayOf,u=o.PropTypes.oneOfType,l=o.PropTypes.element,c=o.PropTypes.shape,f=o.PropTypes.string,p=(t.history=c({listen:a.isRequired,push:a.isRequired,replace:a.isRequired,go:a.isRequired,goBack:a.isRequired,goForward:a.isRequired}),t.component=u([a,f])),d=(t.components=u([p,i]),t.route=u([i,l]));t.routes=u([d,s(d)])},function(e,t){"use strict";t.__esModule=!0;t.PUSH="PUSH",t.REPLACE="REPLACE",t.POP="POP"},function(e,t){"use strict";t.__esModule=!0;t.addEventListener=function(e,t,n){return e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)},t.removeEventListener=function(e,t,n){return e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent("on"+t,n)},t.supportsHistory=function(){var e=window.navigator.userAgent;return(e.indexOf("Android 2.")===-1&&e.indexOf("Android 4.0")===-1||e.indexOf("Mobile Safari")===-1||e.indexOf("Chrome")!==-1||e.indexOf("Windows Phone")!==-1)&&(window.history&&"pushState"in window.history)},t.supportsGoWithoutReloadUsingHash=function(){return window.navigator.userAgent.indexOf("Firefox")===-1},t.supportsPopstateOnHashchange=function(){return window.navigator.userAgent.indexOf("Trident")===-1},t.isExtraneousPopstateEvent=function(e){return void 0===e.state&&navigator.userAgent.indexOf("CriOS")===-1}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=Object.assign||function(e){for(var t=1;t=e&&u&&(i=!0,n()))}}var a=0,i=!1,s=!1,u=!1,l=void 0;o()}function r(e,t,n){function r(e,t,r){i||(t?(i=!0,n(t)):(a[e]=r,i=++s===o,i&&n(null,a)))}var o=e.length,a=[];if(0===o)return n(null,a);var i=!1,s=0;e.forEach(function(e,n){t(e,n,function(e,t){r(n,e,t)})})}t.__esModule=!0,t.loopAsync=n,t.mapAsync=r},function(e,t,n){"use strict";function r(e){return"@@contextSubscriber/"+e}function o(e){var t,n,o=r(e),a=o+"/listeners",i=o+"/eventIndex",u=o+"/subscribe";return n={childContextTypes:(t={},t[o]=s.isRequired,t),getChildContext:function(){var e;return e={},e[o]={eventIndex:this[i],subscribe:this[u]},e},componentWillMount:function(){this[a]=[],this[i]=0},componentWillReceiveProps:function(){this[i]++},componentDidUpdate:function(){var e=this;this[a].forEach(function(t){return t(e[i])})}},n[u]=function(e){var t=this;return this[a].push(e),function(){t[a]=t[a].filter(function(t){return t!==e})}},n}function a(e){var t,n,o=r(e),a=o+"/lastRenderedEventIndex",i=o+"/handleContextUpdate",u=o+"/unsubscribe";return n={contextTypes:(t={},t[o]=s,t),getInitialState:function(){var e;return this.context[o]?(e={},e[a]=this.context[o].eventIndex,e):{}},componentDidMount:function(){this.context[o]&&(this[u]=this.context[o].subscribe(this[i]))},componentWillReceiveProps:function(){var e;this.context[o]&&this.setState((e={},e[a]=this.context[o].eventIndex,e))},componentWillUnmount:function(){this[u]&&(this[u](),this[u]=null)}},n[i]=function(e){if(e!==this.state[a]){var t;this.setState((t={},t[a]=e,t))}},n}t.__esModule=!0,t.ContextProvider=o,t.ContextSubscriber=a;var i=n(1),s=i.PropTypes.shape({subscribe:i.PropTypes.func.isRequired,eventIndex:i.PropTypes.number.isRequired})},function(e,t,n){"use strict";t.__esModule=!0,t.locationShape=t.routerShape=void 0;var r=n(1),o=r.PropTypes.func,a=r.PropTypes.object,i=r.PropTypes.shape,s=r.PropTypes.string;t.routerShape=i({push:o.isRequired,replace:o.isRequired,go:o.isRequired,goBack:o.isRequired,goForward:o.isRequired,setRouteLeaveHook:o.isRequired,isActive:o.isRequired}),t.locationShape=i({pathname:s.isRequired,search:s.isRequired,state:a,action:s.isRequired,key:s})},function(e,t,n){(function(r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.getCurrentLocation,n=e.getUserConfirmation,r=e.pushLocation,i=e.replaceLocation,c=e.go,f=e.keyLength,p=void 0,d=void 0,h=[],v=[],m=[],y=function(){return d&&d.action===u.POP?m.indexOf(d.key):p?m.indexOf(p.key):-1},g=function(e){var t=y();p=e,p.action===u.PUSH?m=[].concat(m.slice(0,t+1),[p.key]):p.action===u.REPLACE&&(m[t]=p.key),v.forEach(function(e){return e(p)})},b=function(e){return h.push(e),function(){return h=h.filter(function(t){return t!==e})}},_=function(e){return v.push(e),function(){return v=v.filter(function(t){return t!==e})}},w=function(e,t){(0,o.loopAsync)(h.length,function(t,n,r){(0,s.default)(h[t],e,function(e){return null!=e?r(e):n()})},function(e){n&&"string"==typeof e?n(e,function(e){return t(e!==!1)}):t(e!==!1)})},E=function(e){p&&(0,l.locationsAreEqual)(p,e)||d&&(0,l.locationsAreEqual)(d,e)||(d=e,w(e,function(t){if(d===e)if(d=null,t){if(e.action===u.PUSH){var n=(0,a.createPath)(p),o=(0,a.createPath)(e);o===n&&(0,l.statesAreEqual)(p.state,e.state)&&(e.action=u.REPLACE)}e.action===u.POP?g(e):e.action===u.PUSH?r(e)!==!1&&g(e):e.action===u.REPLACE&&i(e)!==!1&&g(e)}else if(p&&e.action===u.POP){var s=m.indexOf(p.key),f=m.indexOf(e.key);s!==-1&&f!==-1&&c(s-f)}}))},O=function(e){return E(x(e,u.PUSH))},P=function(e){return E(x(e,u.REPLACE))},k=function(){return c(-1)},j=function(){return c(1)},S=function(){return Math.random().toString(36).substr(2,f||6)},R=function(e){return(0,a.createPath)(e)},x=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:S();return(0,l.createLocation)(e,t,n)};return{getCurrentLocation:t,listenBefore:b,listen:_,transitionTo:E,push:O,replace:P,go:c,goBack:k,goForward:j,createKey:S,createPath:a.createPath,createHref:R,createLocation:x}};t.default=c},function(e,t,n){(function(e){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n(10),a=r(o),i=function(t,n,r){var o=t(n,r);t.length<2?r(o):"production"!==e.env.NODE_ENV?(0,a.default)(void 0===o,'You should not "return" in a transition hook with a callback argument; call the callback instead'):void 0};t.default=i}).call(t,n(2))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e){setTimeout(function(){u.default.getDispatcher().dispatch(e)},0)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n0&&this._events[e].length>o&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace())),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){function n(){this.removeListener(e,n),o||(o=!0,t.apply(this,arguments))}if(!r(t))throw TypeError("listener must be a function");var o=!1;return n.listener=t,this.on(e,n),this},n.prototype.removeListener=function(e,t){var n,o,i,s;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(n=this._events[e],i=n.length,o=-1,n===t||r(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(a(n)){for(s=i;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){o=s;break}if(o<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(o,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],r(n))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){var t;return t=this._events&&this._events[e]?r(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(r(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},function(e,t){"use strict";var n=function(e){var t,n={};if(!(e instanceof Object)||Array.isArray(e))throw new Error("keyMirror(...): Argument must be an object.");for(t in e)e.hasOwnProperty(t)&&(n[t]=t);return n};e.exports=n},function(e,t,n){(function(r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e){return 0===e.button}function s(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function u(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}function l(e,t){return"function"==typeof e?e(t.location):e}t.__esModule=!0;var c=Object.assign||function(e){for(var t=1;ts rendered outside of a router context cannot navigate."):(0,h.default)(!1),!s(e)&&i(e)&&(this.props.target||(e.preventDefault(),t.push(l(this.props.to,t))))}},render:function(){var e=this.props,t=e.to,n=e.activeClassName,r=e.activeStyle,o=e.onlyActiveOnIndex,i=a(e,["to","activeClassName","activeStyle","onlyActiveOnIndex"]),s=this.context.router;if(s){if(!t)return p.default.createElement("a",i);var f=l(t,s);i.href=s.createHref(f),(n||null!=r&&!u(r))&&s.isActive(f,o)&&(n&&(i.className?i.className+=" "+n:i.className=n), -r&&(i.style=c({},i.style,r)))}return p.default.createElement("a",c({},i,{onClick:this.handleClick}))}});t.default=O,e.exports=t.default}).call(t,n(2))},function(e,t){"use strict";function n(e){return e&&"function"==typeof e.then}t.__esModule=!0,t.isPromise=n},function(e,t,n){(function(r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(1),i=o(a),s=n(5),u=o(s),l=n(8),c=n(11),f=n(15),p=i.default.PropTypes,d=p.string,h=p.object,v=i.default.createClass({displayName:"Redirect",statics:{createRouteFromReactElement:function(e){var t=(0,l.createRouteFromReactElement)(e);return t.from&&(t.path=t.from),t.onEnter=function(e,n){var r=e.location,o=e.params,a=void 0;if("/"===t.to.charAt(0))a=(0,c.formatPattern)(t.to,o);else if(t.to){var i=e.routes.indexOf(t),s=v.getRoutePattern(e.routes,i-1),u=s.replace(/\/*$/,"/")+t.to;a=(0,c.formatPattern)(u,o)}else a=r.pathname;n({pathname:a,query:t.query||r.query,state:t.state||r.state})},t},getRoutePattern:function(e,t){for(var n="",r=t;r>=0;r--){var o=e[r],a=o.path||"";if(n=a.replace(/\/*$/,"/")+n,0===a.indexOf("/"))break}return"/"+n}},propTypes:{path:d,from:d,to:d.isRequired,query:h,state:h,onEnter:f.falsy,children:f.falsy},render:function(){"production"!==r.env.NODE_ENV?(0,u.default)(!1," elements are for router configuration only and should not be rendered"):(0,u.default)(!1)}});t.default=v,e.exports=t.default}).call(t,n(2))},function(e,t){"use strict";function n(e,t,n){var a=o({},e,{setRouteLeaveHook:t.listenBeforeLeavingRoute,isActive:t.isActive});return r(a,n)}function r(e,t){var n=t.location,r=t.params,o=t.routes;return e.location=n,e.params=r,e.routes=o,e}t.__esModule=!0;var o=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]&&arguments[1];return e.__id__||t&&(e.__id__=O++)}function c(e){return e.map(function(e){return P[u(e)]}).filter(function(e){return e})}function d(e,n){(0,g.default)(t,e,function(t,r){if(null==r)return void n();E=s({},r,{location:e});for(var o=c((0,f.default)(w,E).leaveRoutes),a=void 0,i=0,u=o.length;null==a&&i0&&void 0!==arguments[0]?arguments[0]:{},n=e(t),r=t.basename,a=function(e){return e?(r&&null==e.basename&&(0===e.pathname.toLowerCase().indexOf(r.toLowerCase())?(e.pathname=e.pathname.substring(r.length),e.basename=r,""===e.pathname&&(e.pathname="/")):e.basename=""),e):e},u=function(e){if(!r)return e;var t="string"==typeof e?(0,s.parsePath)(e):e,n=t.pathname,a="/"===r.slice(-1)?r:r+"/",i="/"===n.charAt(0)?n.slice(1):n,u=a+i;return o({},t,{pathname:u})},l=function(){return a(n.getCurrentLocation())},c=function(e){return n.listenBefore(function(t,n){return(0,i.default)(e,a(t),n)})},f=function(e){return n.listen(function(t){return e(a(t))})},p=function(e){return n.push(u(e))},d=function(e){return n.replace(u(e))},h=function(e){return n.createPath(u(e))},v=function(e){return n.createHref(u(e))},m=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),o=1;o0&&void 0!==arguments[0]?arguments[0]:{},n=e(t),r=t.stringifyQuery,a=t.parseQueryString;"function"!=typeof r&&(r=c),"function"!=typeof a&&(a=f);var i=function(e){return e?(null==e.query&&(e.query=a(e.search.substring(1))),e):e},p=function(e,t){if(null==t)return e;var n="string"==typeof e?(0,l.parsePath)(e):e,a=r(t),i=a?"?"+a:"";return o({},n,{search:i})},d=function(){return i(n.getCurrentLocation())},h=function(e){return n.listenBefore(function(t,n){return(0,s.default)(e,i(t),n)})},v=function(e){return n.listen(function(t){return e(i(t))})},m=function(e){return n.push(p(e,e.query))},y=function(e){return n.replace(p(e,e.query))},g=function(e){return n.createPath(p(e,e.query))},b=function(e){return n.createHref(p(e,e.query))},_=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),o=1;o","In order to use the inGroup property, you must expand the groups resource for the /me endpoint."));var n=d.default.excludeProps(["inGroup"],this.props);return t?d.default.enforceRootElement(this.props.children,n):null}}]),t}(f.default.Component),s.contextTypes={user:f.default.PropTypes.object},u);t.default=h},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=Object.assign||function(e){for(var t=1;t In order to use the inGroup option, you must expand the groups resource for the /me endpoint.")}var n=d.default.excludeProps(["inGroup"],this.props);return t?null:d.default.enforceRootElement(this.props.children,n)}}]),t}(f.default.Component),s.contextTypes={user:f.default.PropTypes.object},u);t.default=h},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s,u,l=Object.assign||function(e){for(var t=1;t0})}},{key:"render",value:function(){return p.default.createElement(_,this.props,p.default.createElement("div",{className:"sp-update-profile-form"},p.default.createElement("div",{className:"row"},p.default.createElement("div",{className:"col-xs-12"},p.default.createElement("div",{className:"form-horizontal"},p.default.createElement("div",{className:"form-group"},p.default.createElement("label",{htmlFor:"givenName",className:"col-xs-12 col-sm-4 control-label"},"First name"),p.default.createElement("div",{className:"col-xs-12 col-sm-4"},p.default.createElement("input",{type:"text",className:"form-control",id:"givenName",name:"givenName",placeholder:"First name",required:!0}))),p.default.createElement("div",{className:"form-group"},p.default.createElement("label",{htmlFor:"surname",className:"col-xs-12 col-sm-4 control-label"},"Last name"),p.default.createElement("div",{className:"col-xs-12 col-sm-4"},p.default.createElement("input",{type:"text",className:"form-control",id:"surname",name:"surname",placeholder:"Last name",required:!0}))),p.default.createElement("div",{className:"form-group"},p.default.createElement("label",{htmlFor:"email",className:"col-xs-12 col-sm-4 control-label"},"Email"),p.default.createElement("div",{className:"col-xs-12 col-sm-4"},p.default.createElement("input",{type:"email",className:"form-control",id:"email",name:"email",placeholder:"Email",required:!0}))),p.default.createElement("div",{className:"form-group"},p.default.createElement("label",{htmlFor:"password",className:"col-xs-12 col-sm-4 control-label"},"Password"),p.default.createElement("div",{className:"col-xs-12 col-sm-4"},p.default.createElement("input",{type:"password",className:"form-control",id:"password",name:"password",placeholder:"Password",onChange:this.onPasswordChanged.bind(this)}))),p.default.createElement("div",null,this.state.showPasswordVerification?p.default.createElement("div",{className:"form-group"},p.default.createElement("label",{htmlFor:"password",className:"col-xs-12 col-sm-4 control-label"},"Existing password"),p.default.createElement("div",{className:"col-xs-12 col-sm-4"},p.default.createElement("input",{type:"password",className:"form-control",id:"existingPassword",name:"existingPassword",placeholder:"Existing password",required:!0}))):null),p.default.createElement("div",{key:"update-button",className:"form-group"},p.default.createElement("div",{className:"col-sm-offset-4 col-sm-4"},p.default.createElement("p",{className:"alert alert-danger","data-spIf":"form.error"},p.default.createElement("span",{"data-spBind":"form.errorMessage"})),p.default.createElement("p",{className:"alert alert-success","data-spIf":"form.successful"},"Profile updated."),p.default.createElement("button",{type:"submit",className:"btn btn-primary"},p.default.createElement("span",{"data-spIf":"!form.processing"},"Update"),p.default.createElement("span",{"data-spIf":"form.processing"},"Updating...")))))))))}}]),t}(p.default.Component),_=(u=s=function(e){function t(){var e,n,r,i;o(this,t);for(var s=arguments.length,u=Array(s),l=0;l In order to use the inGroup option, you must expand the groups resource for the /me endpoint.")),t(r,a)})}},{key:"getAccessToken",value:function(){return this.service.getToken?this.service.getToken("access_token").then(function(e){return e?Promise.resolve(e):Promise.reject("No access token available.")}):Promise.reject(new Error("Unable to retrieve access token for current auth strategy."))}},{key:"getLoginViewData",value:function(e){this.service.getLoginViewData(e)}},{key:"login",value:function(e,t){var n=this;this.reset(),this.service.login(e,function(e){return e?t(e):void n.resolveSession(t,!0)})}},{key:"register",value:function(e,t){this.service.register(e,t)}},{key:"getRegisterViewData",value:function(e){this.service.getRegisterViewData(e)}},{key:"forgotPassword",value:function(e,t){this.service.forgotPassword(e,t)}},{key:"changePassword",value:function(e,t){this.service.changePassword(e,t)}},{key:"updateProfile",value:function(e,t){this.service.updateProfile(e,t)}},{key:"verifyEmail",value:function(e,t){this.service.verifyEmail(e,t)}},{key:"logout",value:function(e){var t=this;this.service.logout(function(n){return n?e(n):(t.reset(),t.emitChange(),void e())})}},{key:"resolveSession",value:function(e,t){var n=this;return t||!this.sessionError&&this.sessionStore.empty()?void this.service.me(function(t,r){t?(n.sessionError=t,n.sessionStore.reset(),d.default.set(null)):(n.sessionError=null,n.sessionStore.set(r),d.default.set(r)),e&&e(n.sessionError,n.sessionStore.get()),n.emitChange()}):e&&e(this.sessionError,this.sessionStore.get())}},{key:"reset",value:function(){this.sessionError=null,this.sessionStore.reset(),d.default.set(null)}}]),t}(f.default);t.default=h},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.TokenStore=t.SessionStore=t.UserStore=void 0;var o=n(76),a=r(o),i=n(41),s=r(i),u=n(75),l=r(u);t.UserStore=a.default,t.SessionStore=s.default,t.TokenStore=l.default},function(e,t,n){(function(t){"use strict";function n(e,t,n,o,a,i,s,u){if(r(t),!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,o,a,i,s,u],f=0;l=new Error(t.replace(/%s/g,function(){return c[f++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}}var r=function(e){};"production"!==t.env.NODE_ENV&&(r=function(e){if(void 0===e)throw new Error("invariant requires an error message argument")}),e.exports=n}).call(t,n(2))},function(e,t,n){e.exports.Dispatcher=n(80)},function(e,t,n){(function(r){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var a=n(78),i="ID_",s=function(){function e(){o(this,e),this._callbacks={},this._isDispatching=!1,this._isHandled={},this._isPending={},this._lastID=1}return e.prototype.register=function(e){var t=i+this._lastID++;return this._callbacks[t]=e,t},e.prototype.unregister=function(e){this._callbacks[e]?void 0:"production"!==r.env.NODE_ENV?a(!1,"Dispatcher.unregister(...): `%s` does not map to a registered callback.",e):a(!1),delete this._callbacks[e]},e.prototype.waitFor=function(e){this._isDispatching?void 0:"production"!==r.env.NODE_ENV?a(!1,"Dispatcher.waitFor(...): Must be invoked while dispatching."):a(!1);for(var t=0;t1)for(var n=1;n-1)return!0}return!1}},{key:"isInputLikeComponent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["input","field","text"];if("function"==typeof e.type){var n=this.containsWord(this.functionName(e.type),t),r=this.takeProp(e.props,"spInputLike","data-spInputLike");return r||n}}},{key:"takeProp",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r-1&&"submit"!==e.props.type&&t(e.props.name,n)}},{key:"getFormFieldMap",value:function(e,t){var n={},r=function(e,t,r){e.props.ignore||(e.props.fieldName&&(t=elements.props.fieldName),t in n||(n[t]={element:e,defaultValue:r}))};this.forEachChild(e,function(e){e.props&&t(e,r.bind(null,e))});var o={},a={};for(var i in n){var s=n[i],u=s.element,c="function"==typeof u.type?this.functionName(u.type):u.type;c in o||(o[c]={}),a[i]=void 0!==s.defaultValue?s.defaultValue:u.props.value||"",o[c][u.props.name]={fieldName:i,field:u}}return{defaultValues:a,inverse:o}}},{key:"getFieldValue",value:function(e,t){for(var n=e,r=t.split("."),o=0;o1?n-1:0),i=1;i2?r-2:0);for(var o=2;o0?void 0:"production"!==e.env.NODE_ENV?(0,p.default)(!1,'Missing splat #%s for path "%s"',u,t):(0,p.default)(!1),null!=d&&(s+=encodeURI(d));else if("("===l)c[a]="",a+=1;else if(")"===l){var m=c.pop();a-=1,a?c[a-1]+=m:s+=m}else if("\\("===l)s+="(";else if("\\)"===l)s+=")";else if(":"===l.charAt(0))if(f=l.substring(1),d=n[f],null!=d||a>0?void 0:"production"!==e.env.NODE_ENV?(0,p.default)(!1,'Missing "%s" parameter for path "%s"',f,t):(0,p.default)(!1),null==d){if(a){c[a-1]="";for(var y=o.indexOf(l),g=o.slice(y,o.length),b=-1,_=0;_0?void 0:"production"!==e.env.NODE_ENV?(0,p.default)(!1,'Path "%s" is missing end paren at segment "%s"',t,g.join("")):(0,p.default)(!1),h=y+b-1}}else a?c[a-1]+=encodeURIComponent(d):s+=encodeURIComponent(d);else a?c[a-1]+=l:s+=l;return a<=0?void 0:"production"!==e.env.NODE_ENV?(0,p.default)(!1,'Path "%s" is missing end paren',t):(0,p.default)(!1),s.replace(/\/+/g,"/")}t.__esModule=!0,t.compilePattern=i,t.matchPattern=s,t.getParamNames=u,t.getParams=c,t.formatPattern=l;var f=n(5),p=r(f),d=Object.create(null)}).call(t,n(1))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(t.indexOf("deprecated")!==-1){if(u[t])return;u[t]=!0}t="[react-router] "+t;for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o0&&void 0!==arguments[0]?arguments[0]:"/",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.POP,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o="string"==typeof t?(0,l.parsePath)(t):t;"production"!==e.env.NODE_ENV?(0,c.default)(!o.path,"Location descriptor objects should have a `pathname`, not a `path`."):void 0;var a=o.pathname||"/",i=o.search||"",s=o.hash||"",u=o.state;return{pathname:a,search:i,hash:s,state:u,action:n,key:r}},function(e){return"[object Date]"===Object.prototype.toString.call(e)}),d=t.statesAreEqual=function t(n,r){if(n===r)return!0;var a="undefined"==typeof n?"undefined":o(n),i="undefined"==typeof r?"undefined":o(r);if(a!==i)return!1;if("function"===a?"production"!==e.env.NODE_ENV?(0,s.default)(!1,"You must not store functions in location state"):(0,s.default)(!1):void 0,"object"===a){if(p(n)&&p(r)?"production"!==e.env.NODE_ENV?(0,s.default)(!1,"You must not store Date objects in location state"):(0,s.default)(!1):void 0,!Array.isArray(n)){var u=Object.keys(n),c=Object.keys(r);return u.length===c.length&&u.every(function(e){return t(n[e],r[e])})}return Array.isArray(r)&&n.length===r.length&&n.every(function(e,n){return t(e,r[n])})}return!1};t.locationsAreEqual=function(e,t){return e.key===t.key&&e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&d(e.state,t.state)}}).call(t,n(1))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=Object.assign||function(e){for(var t=1;t should not have a "'+t+'" prop')}t.__esModule=!0,t.routes=t.route=t.components=t.component=t.history=void 0,t.falsy=r;var o=n(8),a=(t.history=(0,o.shape)({listen:o.func.isRequired,push:o.func.isRequired,replace:o.func.isRequired,go:o.func.isRequired,goBack:o.func.isRequired,goForward:o.func.isRequired}),t.component=(0,o.oneOfType)([o.func,o.string])),i=(t.components=(0,o.oneOfType)([a,o.object]),t.route=(0,o.oneOfType)([o.object,o.element]));t.routes=(0,o.oneOfType)([i,(0,o.arrayOf)(i)])},function(e,t){"use strict";t.__esModule=!0;t.PUSH="PUSH",t.REPLACE="REPLACE",t.POP="POP"},function(e,t){"use strict";t.__esModule=!0;t.addEventListener=function(e,t,n){return e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)},t.removeEventListener=function(e,t,n){return e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent("on"+t,n)},t.supportsHistory=function(){var e=window.navigator.userAgent;return(e.indexOf("Android 2.")===-1&&e.indexOf("Android 4.0")===-1||e.indexOf("Mobile Safari")===-1||e.indexOf("Chrome")!==-1||e.indexOf("Windows Phone")!==-1)&&(window.history&&"pushState"in window.history)},t.supportsGoWithoutReloadUsingHash=function(){return window.navigator.userAgent.indexOf("Firefox")===-1},t.supportsPopstateOnHashchange=function(){return window.navigator.userAgent.indexOf("Trident")===-1},t.isExtraneousPopstateEvent=function(e){return void 0===e.state&&navigator.userAgent.indexOf("CriOS")===-1}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=Object.assign||function(e){for(var t=1;t1?t-1:0),r=1;r2?n-2:0),o=2;o0&&u>s&&(u=s);for(var l=0;l=0?(c=h.substr(0,v),f=h.substr(v+1)):(c=h,f=""),p=decodeURIComponent(c),d=decodeURIComponent(f),n(a,p)?Array.isArray(a[p])?a[p].push(d):a[p]=[a[p],d]:a[p]=d}return a}},function(e,t){"use strict";var n=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,r,o){return t=t||"&",r=r||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map(function(o){var a=encodeURIComponent(n(o))+r;return Array.isArray(e[o])?e[o].map(function(e){return a+encodeURIComponent(n(e))}).join(t):a+encodeURIComponent(n(e[o]))}).join(t):o?encodeURIComponent(n(o))+r+encodeURIComponent(n(e)):""}},function(e,t,n){"use strict";t.decode=t.parse=n(84),t.encode=t.stringify=n(85)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=Object.assign||function(e){for(var t=1;t does not make sense at the root of your route config"):void 0}},propTypes:{to:v.isRequired,query:m,state:m,onEnter:d.falsy,children:d.falsy},render:function(){"production"!==r.env.NODE_ENV?(0,c.default)(!1," elements are for router configuration only and should not be rendered"):(0,c.default)(!1)}});t.default=y,e.exports=t.default}).call(t,n(2))},function(e,t,n){(function(r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(1),i=o(a),s=n(12),u=o(s),l=n(5),c=o(l),f=n(8),p=n(15),d=i.default.PropTypes.func,h=i.default.createClass({displayName:"IndexRoute",statics:{createRouteFromReactElement:function(e,t){t?t.indexRoute=(0,f.createRouteFromReactElement)(e):"production"!==r.env.NODE_ENV?(0,u.default)(!1,"An does not make sense at the root of your route config"):void 0}},propTypes:{path:p.falsy,component:p.component,components:p.components,getComponent:d,getComponents:d},render:function(){"production"!==r.env.NODE_ENV?(0,c.default)(!1," elements are for router configuration only and should not be rendered"):(0,c.default)(!1)}});t.default=h,e.exports=t.default}).call(t,n(2))},function(e,t,n){(function(r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(1),i=o(a),s=n(5),u=o(s),l=n(8),c=n(15),f=i.default.PropTypes,p=f.string,d=f.func,h=i.default.createClass({displayName:"Route",statics:{createRouteFromReactElement:l.createRouteFromReactElement},propTypes:{path:p,component:c.component,components:c.components,getComponent:d,getComponents:d},render:function(){"production"!==r.env.NODE_ENV?(0,u.default)(!1," elements are for router configuration only and should not be rendered"):(0,u.default)(!1)}});t.default=h,e.exports=t.default}).call(t,n(2))},function(e,t,n){(function(r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}t.__esModule=!0;var i=Object.assign||function(e){for(var t=1;t; it will be ignored"):void 0,"production"!==r.env.NODE_ENV?(0,b.default)((e.routes||e.children)===(this.props.routes||this.props.children),"You cannot change ; it will be ignored"):void 0},componentWillUnmount:function(){this._unlisten&&this._unlisten()},render:function e(){var t=this.state,n=t.location,r=t.routes,o=t.params,s=t.components,u=this.props,l=u.createElement,e=u.render,c=a(u,["createElement","render"]);return null==n?null:(Object.keys(O.propTypes).forEach(function(e){return delete c[e]}),e(i({},c,{router:this.router,location:n,routes:r,params:o,components:s,createElement:l})))}});t.default=O,e.exports=t.default}).call(t,n(2))},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,n,r){var o=e.length0&&void 0!==arguments[0]?arguments[0]:i.createElement;return function(t,n){return u.reduceRight(function(e,t){return t(e,n)},e(t,n))}};return function(e){return o.reduceRight(function(t,n){return n(t,e)},s.default.createElement(l.default,a({},e,{createElement:c(e.createElement)})))}},e.exports=t.default}).call(t,n(2))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n(106),a=r(o),i=n(49),s=r(i);t.default=(0,s.default)(a.default),e.exports=t.default},function(e,t,n){"use strict";function r(e,t,n){if(!e.path)return!1;var r=(0,a.getParamNames)(e.path);return r.some(function(e){return t.params[e]!==n.params[e]})}function o(e,t){var n=e&&e.routes,o=t.routes,a=void 0,i=void 0,s=void 0;return n?!function(){var u=!1;a=n.filter(function(n){if(u)return!0;var a=o.indexOf(n)===-1||r(n,e,t);return a&&(u=!0),a}),a.reverse(),s=[],i=[],o.forEach(function(e){var t=n.indexOf(e)===-1,r=a.indexOf(e)!==-1;t||r?s.push(e):i.push(e)})}():(a=[],i=[],s=o),{leaveRoutes:a,changeRoutes:i,enterRoutes:s}}t.__esModule=!0;var a=n(11);t.default=o,e.exports=t.default},function(e,t,n){"use strict";function r(e,t,n){if(t.component||t.components)return void n(null,t.component||t.components);var r=t.getComponent||t.getComponents;if(r){var o=r.call(t,e,n);(0,i.isPromise)(o)&&o.then(function(e){return n(null,e)},n)}else n()}function o(e,t){(0,a.mapAsync)(e.routes,function(t,n,o){r(e,t,o)},t)}t.__esModule=!0;var a=n(22),i=n(45);t.default=o,e.exports=t.default},function(e,t,n){"use strict";function r(e,t){var n={};return e.path?((0,o.getParamNames)(e.path).forEach(function(e){Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e])}),n):n}t.__esModule=!0;var o=n(11);t.default=r,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n(107),a=r(o),i=n(49),s=r(i);t.default=(0,s.default)(a.default),e.exports=t.default},function(e,t,n){"use strict";function r(e,t){if(e==t)return!0;if(null==e||null==t)return!1;if(Array.isArray(e))return Array.isArray(t)&&e.length===t.length&&e.every(function(e,n){return r(e,t[n])});if("object"===("undefined"==typeof e?"undefined":u(e))){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n))if(void 0===e[n]){if(void 0!==t[n])return!1}else{if(!Object.prototype.hasOwnProperty.call(t,n))return!1;if(!r(e[n],t[n]))return!1}return!0}return String(e)===String(t)}function o(e,t){return"/"!==t.charAt(0)&&(t="/"+t),"/"!==e.charAt(e.length-1)&&(e+="/"),"/"!==t.charAt(t.length-1)&&(t+="/"),t===e}function a(e,t,n){for(var r=e,o=[],a=[],i=0,s=t.length;i=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){var n=e.history,o=e.routes,i=e.location,l=a(e,["history","routes","location"]);n||i?void 0:"production"!==r.env.NODE_ENV?(0,c.default)(!1,"match needs a history or a location"):(0,c.default)(!1),n=n?n:(0,p.default)(l);var f=(0,h.default)(n,(0,v.createRoutes)(o));i=i?n.createLocation(i):n.getCurrentLocation(),f.match(i,function(e,r,o){var a=void 0;if(o){var i=(0,m.createRouterObject)(n,f,o);a=s({},o,{router:i,matchContext:{transitionManager:f,router:i}})}t(e,r&&n.createLocation(r,u.REPLACE),a)})}t.__esModule=!0;var s=Object.assign||function(e){for(var t=1;t4&&void 0!==arguments[4]?arguments[4]:[],a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[];void 0===r&&("/"!==t.pathname.charAt(0)&&(t=f({},t,{pathname:"/"+t.pathname})),r=t.pathname),(0,d.loopAsync)(e.length,function(n,i,s){l(e[n],t,r,o,a,function(e,t){e||t?s(e,t):i()})},n)}t.__esModule=!0;var f=Object.assign||function(e){for(var t=1;t=e&&i&&(o=!0,n()))}};l()}},function(e,t,n){(function(e){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.replaceLocation=t.pushLocation=t.startListener=t.getCurrentLocation=t.go=t.getUserConfirmation=void 0;var o=n(26);Object.defineProperty(t,"getUserConfirmation",{enumerable:!0,get:function(){return o.getUserConfirmation}}),Object.defineProperty(t,"go",{enumerable:!0,get:function(){return o.go}});var a=n(10),i=r(a),s=n(13),u=n(17),l=n(52),c=n(9),f="hashchange",p=function(){var e=window.location.href,t=e.indexOf("#");return t===-1?"":e.substring(t+1)},d=function(e){return window.location.hash=e},h=function(e){var t=window.location.href.indexOf("#");window.location.replace(window.location.href.slice(0,t>=0?t:0)+"#"+e)},v=t.getCurrentLocation=function(e,t){var n=e.decodePath(p()),r=(0,c.getQueryStringValueFromPath)(n,t),o=void 0;r&&(n=(0,c.stripQueryStringValueFromPath)(n,t),o=(0,l.readState)(r));var a=(0,c.parsePath)(n);return a.state=o,(0,s.createLocation)(a,void 0,r)},m=void 0,y=(t.startListener=function(e,t,n){var r=function(){var r=p(),o=t.encodePath(r);if(r!==o)h(o);else{var a=v(t,n);if(m&&a.key&&m.key===a.key)return;m=a,e(a)}},o=p(),a=t.encodePath(o);return o!==a&&h(a),(0,u.addEventListener)(window,f,r),function(){return(0,u.removeEventListener)(window,f,r)}},function(e,t,n,r){var o=e.state,a=e.key,i=t.encodePath((0,c.createPath)(e));void 0!==o&&(i=(0,c.addQueryStringValueToPath)(i,n,a),(0,l.saveState)(a,o)),m=e,r(i)});t.pushLocation=function(t,n,r){return y(t,n,r,function(t){p()!==t?d(t):"production"!==e.env.NODE_ENV?(0,i.default)(!1,"You cannot PUSH the same path using hash history"):void 0})},t.replaceLocation=function(e,t,n){return y(e,t,n,function(e){p()!==e&&h(e)})}}).call(t,n(2))},function(e,t,n){"use strict";t.__esModule=!0,t.replaceLocation=t.pushLocation=t.getCurrentLocation=t.go=t.getUserConfirmation=void 0;var r=n(26);Object.defineProperty(t,"getUserConfirmation",{enumerable:!0,get:function(){return r.getUserConfirmation}}),Object.defineProperty(t,"go",{enumerable:!0,get:function(){return r.go}});var o=n(13),a=n(9);t.getCurrentLocation=function(){return(0,o.createLocation)(window.location)},t.pushLocation=function(e){return window.location.href=(0,a.createPath)(e),!1},t.replaceLocation=function(e){return window.location.replace((0,a.createPath)(e)),!1}},function(e,t,n){(function(e){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};u.canUseDOM?void 0:"production"!==e.env.NODE_ENV?(0,s.default)(!1,"Browser history needs a DOM"):(0,s.default)(!1);var n=t.forceRefresh||!(0,d.supportsHistory)(),r=n?p:c,o=r.getUserConfirmation,i=r.getCurrentLocation,l=r.pushLocation,f=r.replaceLocation,h=r.go,m=(0,v.default)(a({getUserConfirmation:o},t,{getCurrentLocation:i,pushLocation:l,replaceLocation:f,go:h})),y=0,g=void 0,b=function(e,t){1===++y&&(g=c.startListener(m.transitionTo));var n=t?m.listenBefore(e):m.listen(e);return function(){n(),0===--y&&g()}},_=function(e){return b(e,!0)},w=function(e){return b(e,!1)};return a({},m,{listenBefore:_,listen:w})};t.default=m}).call(t,n(2))},function(e,t,n){(function(e){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};c.canUseDOM?void 0:"production"!==e.env.NODE_ENV?(0,l.default)(!1,"Hash history needs a DOM"):(0,l.default)(!1);var n=t.queryKey,r=t.hashType;"production"!==e.env.NODE_ENV?(0,s.default)(n!==!1,"Using { queryKey: false } no longer works. Instead, just don't use location state if you don't want a key in your URL query string"):void 0,"string"!=typeof n&&(n=m),null==r&&(r="slash"),r in g||("production"!==e.env.NODE_ENV?(0,s.default)(!1,"Invalid hash type: %s",r):void 0,r="slash");var o=g[r],i=d.getUserConfirmation,u=function(){return d.getCurrentLocation(o,n)},p=function(e){return d.pushLocation(e,o,n)},h=function(e){return d.replaceLocation(e,o,n)},y=(0,v.default)(a({getUserConfirmation:i},t,{getCurrentLocation:u,pushLocation:p,replaceLocation:h,go:d.go})),b=0,_=void 0,w=function(e,t){1===++b&&(_=d.startListener(y.transitionTo,o,n));var r=t?y.listenBefore(e):y.listen(e);return function(){r(),0===--b&&_()}},E=function(e){return w(e,!0)},O=function(e){return w(e,!1)},P=(0,f.supportsGoWithoutReloadUsingHash)(),k=function(t){"production"!==e.env.NODE_ENV?(0,s.default)(P,"Hash history go(n) causes a full page reload in this browser"):void 0,y.go(t)},j=function(e){return"#"+o.encodePath(y.createHref(e))};return a({},y,{listenBefore:E,listen:O,go:k,createHref:j})};t.default=b}).call(t,n(2))},function(e,t,n){(function(e){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};Array.isArray(t)?t={entries:t}:"string"==typeof t&&(t={entries:[t]});var n=function(){var e=y[g],t=(0,c.createPath)(e),n=void 0,r=void 0;e.key&&(n=e.key,r=w(n));var a=(0,c.parsePath)(t);return(0,l.createLocation)(o({},a,{state:r}),void 0,n)},r=function(e){var t=g+e;return t>=0&&t=0&&g= 0 and < %s, was %s",y.length,g):(0,u.default)(!1);var b=h(y),_=function(e,t){return b[e]=t},w=function(e){return b[e]};return o({},v,{canGo:r})};t.default=v}).call(t,n(2))},function(e,t){"use strict";e.exports=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}},function(e,t,n){var r;(function(e,o){!function(a){function i(e){throw RangeError(T[e])}function s(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function u(e,t){var n=e.split("@"),r="";n.length>1&&(r=n[0]+"@",e=n[1]),e=e.replace(C,".");var o=e.split("."),a=s(o,t).join(".");return r+a}function l(e){for(var t,n,r=[],o=0,a=e.length;o=55296&&t<=56319&&o65535&&(e-=65536,t+=L(e>>>10&1023|55296),e=56320|1023&e),t+=L(e)}).join("")}function f(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:w}function p(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function d(e,t,n){var r=0;for(e=n?A(e/k):e>>1,e+=A(e/t);e>M*O>>1;r+=w)e=A(e/M);return A(r+(M+1)*e/(e+P))}function h(e){var t,n,r,o,a,s,u,l,p,h,v=[],m=e.length,y=0,g=S,b=j;for(n=e.lastIndexOf(R),n<0&&(n=0),r=0;r=128&&i("not-basic"),v.push(e.charCodeAt(r));for(o=n>0?n+1:0;o=m&&i("invalid-input"),l=f(e.charCodeAt(o++)),(l>=w||l>A((_-y)/s))&&i("overflow"),y+=l*s,p=u<=b?E:u>=b+O?O:u-b,!(lA(_/h)&&i("overflow"),s*=h;t=v.length+1,b=d(y-a,t,0==a),A(y/t)>_-g&&i("overflow"),g+=A(y/t),y%=t,v.splice(y++,0,g)}return c(v)}function v(e){var t,n,r,o,a,s,u,c,f,h,v,m,y,g,b,P=[];for(e=l(e),m=e.length,t=S,n=0,a=j,s=0;s=t&&vA((_-n)/y)&&i("overflow"),n+=(u-t)*y,t=u,s=0;s_&&i("overflow"),v==t){for(c=n,f=w;h=f<=a?E:f>=a+O?O:f-a,!(c= 0x80 (not a basic code point)","invalid-input":"Invalid input"},M=w-E,A=Math.floor,L=String.fromCharCode;b={version:"1.3.2",ucs2:{decode:l,encode:c},decode:h,encode:v,toASCII:y,toUnicode:m},r=function(){return b}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))}(this)}).call(t,n(113)(e),function(){return this}())},function(e,t,n){"use strict";function r(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function o(e,t,n){if(e&&l.isObject(e)&&e instanceof r)return e;var o=new r;return o.parse(e,t,n),o}function a(e){return l.isString(e)&&(e=o(e)),e instanceof r?e.format():r.prototype.format.call(e)}function i(e,t){return o(e,!1,!0).resolve(t)}function s(e,t){return e?o(e,!1,!0).resolveObject(t):t}var u=n(110),l=n(112);t.parse=o,t.resolve=i,t.resolveObject=s,t.format=a,t.Url=r;var c=/^([a-z0-9.+-]+:)/i,f=/:[0-9]*$/,p=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,d=["<",">",'"',"`"," ","\r","\n","\t"],h=["{","}","|","\\","^","`"].concat(d),v=["'"].concat(h),m=["%","/","?",";","#"].concat(v),y=["/","?","#"],g=255,b=/^[+a-z0-9A-Z_-]{0,63}$/,_=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,w={javascript:!0,"javascript:":!0},E={javascript:!0,"javascript:":!0},O={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0, -"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},P=n(86);r.prototype.parse=function(e,t,n){if(!l.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var r=e.indexOf("?"),o=r!==-1&&r127?"x":A[F];if(!L.match(b)){var U=T.slice(0,S),D=T.slice(S+1),q=A.match(_);q&&(U.push(q[1]),D.unshift(q[2])),D.length&&(s="/"+D.join(".")+s),this.hostname=U.join(".");break}}}this.hostname.length>g?this.hostname="":this.hostname=this.hostname.toLowerCase(),C||(this.hostname=u.toASCII(this.hostname));var H=this.port?":"+this.port:"",V=this.hostname||"";this.host=V+H,this.href+=this.host,C&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==s[0]&&(s="/"+s))}if(!w[h])for(var S=0,M=v.length;S0)&&n.host.split("@");k&&(n.auth=k.shift(),n.host=n.hostname=k.shift())}return n.search=e.search,n.query=e.query,l.isNull(n.pathname)&&l.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!w.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var j=w.slice(-1)[0],S=(n.host||e.host||w.length>1)&&("."===j||".."===j)||""===j,R=0,x=w.length;x>=0;x--)j=w[x],"."===j?w.splice(x,1):".."===j?(w.splice(x,1),R++):R&&(w.splice(x,1),R--);if(!b&&!_)for(;R--;R)w.unshift("..");!b||""===w[0]||w[0]&&"/"===w[0].charAt(0)||w.unshift(""),S&&"/"!==w.join("/").substr(-1)&&w.push("");var N=""===w[0]||w[0]&&"/"===w[0].charAt(0);if(P){n.hostname=n.host=N?"":w.length?w.shift():"";var k=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@");k&&(n.auth=k.shift(),n.host=n.hostname=k.shift())}return b=b||n.host&&w.length,b&&!N&&w.unshift(""),w.length?n.pathname=w.join("/"):(n.pathname=null,n.path=null),l.isNull(n.pathname)&&l.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},r.prototype.parseHost=function(){var e=this.host,t=f.exec(e);t&&(t=t[0],":"!==t&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children=[],e.webpackPolyfill=1),e}},function(e,t){function n(){for(var e={},t=0;t=e&&u&&(i=!0,n()))}}var a=0,i=!1,s=!1,u=!1,c=void 0;o()}function r(e,t,n){function r(e,t,r){i||(t?(i=!0,n(t)):(a[e]=r,i=++s===o,i&&n(null,a)))}var o=e.length,a=[];if(0===o)return n(null,a);var i=!1,s=0;e.forEach(function(e,n){t(e,n,function(e,t){r(n,e,t)})})}t.__esModule=!0,t.loopAsync=n,t.mapAsync=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return"@@contextSubscriber/"+e}function a(e){var t,n,r=o(e),a=r+"/listeners",i=r+"/eventIndex",s=r+"/subscribe";return n={childContextTypes:(t={},t[r]=c.isRequired,t),getChildContext:function(){var e;return e={},e[r]={eventIndex:this[i],subscribe:this[s]},e},componentWillMount:function(){this[a]=[],this[i]=0},componentWillReceiveProps:function(){this[i]++},componentDidUpdate:function(){var e=this;this[a].forEach(function(t){return t(e[i])})}},n[s]=function(e){var t=this;return this[a].push(e),function(){t[a]=t[a].filter(function(t){return t!==e})}},n}function i(e){var t,n,r=o(e),a=r+"/lastRenderedEventIndex",i=r+"/handleContextUpdate",s=r+"/unsubscribe";return n={contextTypes:(t={},t[r]=c,t),getInitialState:function(){var e;return this.context[r]?(e={},e[a]=this.context[r].eventIndex,e):{}},componentDidMount:function(){this.context[r]&&(this[s]=this.context[r].subscribe(this[i]))},componentWillReceiveProps:function(){var e;this.context[r]&&this.setState((e={},e[a]=this.context[r].eventIndex,e))},componentWillUnmount:function(){this[s]&&(this[s](),this[s]=null)}},n[i]=function(e){if(e!==this.state[a]){var t;this.setState((t={},t[a]=e,t))}},n}t.__esModule=!0,t.ContextProvider=a,t.ContextSubscriber=i;var s=n(8),u=r(s),c=u.default.shape({subscribe:u.default.func.isRequired,eventIndex:u.default.number.isRequired})},function(e,t,n){"use strict";t.__esModule=!0,t.locationShape=t.routerShape=void 0;var r=n(8);t.routerShape=(0,r.shape)({push:r.func.isRequired,replace:r.func.isRequired,go:r.func.isRequired,goBack:r.func.isRequired,goForward:r.func.isRequired,setRouteLeaveHook:r.func.isRequired,isActive:r.func.isRequired}),t.locationShape=(0,r.shape)({pathname:r.string.isRequired,search:r.string.isRequired,state:r.object,action:r.string.isRequired,key:r.string})},function(e,t,n){(function(r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.getCurrentLocation,n=e.getUserConfirmation,r=e.pushLocation,i=e.replaceLocation,l=e.go,f=e.keyLength,p=void 0,d=void 0,h=[],v=[],m=[],y=function(){return d&&d.action===u.POP?m.indexOf(d.key):p?m.indexOf(p.key):-1},g=function(e){var t=y();p=e,p.action===u.PUSH?m=[].concat(m.slice(0,t+1),[p.key]):p.action===u.REPLACE&&(m[t]=p.key),v.forEach(function(e){return e(p)})},b=function(e){return h.push(e),function(){return h=h.filter(function(t){return t!==e})}},_=function(e){return v.push(e),function(){return v=v.filter(function(t){return t!==e})}},E=function(e,t){(0,o.loopAsync)(h.length,function(t,n,r){(0,s.default)(h[t],e,function(e){return null!=e?r(e):n()})},function(e){n&&"string"==typeof e?n(e,function(e){return t(e!==!1)}):t(e!==!1)})},w=function(e){p&&(0,c.locationsAreEqual)(p,e)||d&&(0,c.locationsAreEqual)(d,e)||(d=e,E(e,function(t){if(d===e)if(d=null,t){if(e.action===u.PUSH){var n=(0,a.createPath)(p),o=(0,a.createPath)(e);o===n&&(0,c.statesAreEqual)(p.state,e.state)&&(e.action=u.REPLACE)}e.action===u.POP?g(e):e.action===u.PUSH?r(e)!==!1&&g(e):e.action===u.REPLACE&&i(e)!==!1&&g(e)}else if(p&&e.action===u.POP){var s=m.indexOf(p.key),f=m.indexOf(e.key);s!==-1&&f!==-1&&l(s-f)}}))},O=function(e){return w(S(e,u.PUSH))},P=function(e){return w(S(e,u.REPLACE))},k=function(){return l(-1)},j=function(){return l(1)},R=function(){return Math.random().toString(36).substr(2,f||6)},N=function(e){return(0,a.createPath)(e)},S=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:R();return(0,c.createLocation)(e,t,n)};return{getCurrentLocation:t,listenBefore:b,listen:_,transitionTo:w,push:O,replace:P,go:l,goBack:k,goForward:j,createKey:R,createPath:a.createPath,createHref:N,createLocation:S}};t.default=l},function(e,t,n){(function(e){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n(12),a=r(o),i=function(t,n,r){var o=t(n,r);t.length<2?r(o):"production"!==e.env.NODE_ENV?(0,a.default)(void 0===o,'You should not "return" in a transition hook with a callback argument; call the callback instead'):void 0};t.default=i}).call(t,n(1))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e){setTimeout(function(){u.default.getDispatcher().dispatch(e)},0)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n0&&this._events[e].length>o&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace())),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){function n(){this.removeListener(e,n),o||(o=!0,t.apply(this,arguments))}if(!r(t))throw TypeError("listener must be a function");var o=!1;return n.listener=t,this.on(e,n),this},n.prototype.removeListener=function(e,t){var n,o,i,s;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(n=this._events[e],i=n.length,o=-1,n===t||r(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(a(n)){for(s=i;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){o=s;break}if(o<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(o,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],r(n))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){var t;return t=this._events&&this._events[e]?r(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(r(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},function(e,t){"use strict";var n=function(e){var t,n={};if(!(e instanceof Object)||Array.isArray(e))throw new Error("keyMirror(...): Argument must be an object.");for(t in e)e.hasOwnProperty(t)&&(n[t]=t);return n};e.exports=n},function(e,t,n){(function(r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e){return 0===e.button}function s(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function u(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}function c(e,t){return"function"==typeof e?e(t.location):e}t.__esModule=!0;var l=Object.assign||function(e){for(var t=1;ts rendered outside of a router context cannot navigate."):(0,y.default)(!1),!s(e)&&i(e)&&(this.props.target||(e.preventDefault(),t.push(c(this.props.to,t))))}},render:function(){ +var e=this.props,t=e.to,n=e.activeClassName,r=e.activeStyle,o=e.onlyActiveOnIndex,i=a(e,["to","activeClassName","activeStyle","onlyActiveOnIndex"]),s=this.context.router;if(s){if(!t)return p.default.createElement("a",i);var f=c(t,s);i.href=s.createHref(f),(n||null!=r&&!u(r))&&s.isActive(f,o)&&(n&&(i.className?i.className+=" "+n:i.className=n),r&&(i.style=l({},i.style,r)))}return p.default.createElement("a",l({},i,{onClick:this.handleClick}))}});t.default=_,e.exports=t.default}).call(t,n(1))},function(e,t){"use strict";function n(e){return e&&"function"==typeof e.then}t.__esModule=!0,t.isPromise=n},function(e,t,n){(function(r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(9),i=o(a),s=n(8),u=n(5),c=o(u),l=n(10),f=n(13),p=n(18),d=(0,i.default)({displayName:"Redirect",statics:{createRouteFromReactElement:function(e){var t=(0,l.createRouteFromReactElement)(e);return t.from&&(t.path=t.from),t.onEnter=function(e,n){var r=e.location,o=e.params,a=void 0;if("/"===t.to.charAt(0))a=(0,f.formatPattern)(t.to,o);else if(t.to){var i=e.routes.indexOf(t),s=d.getRoutePattern(e.routes,i-1),u=s.replace(/\/*$/,"/")+t.to;a=(0,f.formatPattern)(u,o)}else a=r.pathname;n({pathname:a,query:t.query||r.query,state:t.state||r.state})},t},getRoutePattern:function(e,t){for(var n="",r=t;r>=0;r--){var o=e[r],a=o.path||"";if(n=a.replace(/\/*$/,"/")+n,0===a.indexOf("/"))break}return"/"+n}},propTypes:{path:s.string,from:s.string,to:s.string.isRequired,query:s.object,state:s.object,onEnter:p.falsy,children:p.falsy},render:function(){"production"!==r.env.NODE_ENV?(0,c.default)(!1," elements are for router configuration only and should not be rendered"):(0,c.default)(!1)}});t.default=d,e.exports=t.default}).call(t,n(1))},function(e,t){"use strict";function n(e,t,n){var a=o({},e,{setRouteLeaveHook:t.listenBeforeLeavingRoute,isActive:t.isActive});return r(a,n)}function r(e,t){var n=t.location,r=t.params,o=t.routes;return e.location=n,e.params=r,e.routes=o,e}t.__esModule=!0;var o=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]&&arguments[1];return e.__id__||t&&(e.__id__=R++)}function l(e){return e.map(function(e){return N[u(e)]}).filter(function(e){return e})}function p(e,n){(0,b.default)(t,e,function(t,r){if(null==r)return void n();j=s({},r,{location:e});for(var o=l((0,f.default)(E,j).leaveRoutes),a=void 0,i=0,u=o.length;null==a&&i0&&void 0!==arguments[0]?arguments[0]:{},n=e(t),r=t.basename,a=function(e){return e?(r&&null==e.basename&&(0===e.pathname.toLowerCase().indexOf(r.toLowerCase())?(e.pathname=e.pathname.substring(r.length),e.basename=r,""===e.pathname&&(e.pathname="/")):e.basename=""),e):e},u=function(e){if(!r)return e;var t="string"==typeof e?(0,s.parsePath)(e):e,n=t.pathname,a="/"===r.slice(-1)?r:r+"/",i="/"===n.charAt(0)?n.slice(1):n,u=a+i;return o({},t,{pathname:u})},c=function(){return a(n.getCurrentLocation())},l=function(e){return n.listenBefore(function(t,n){return(0,i.default)(e,a(t),n)})},f=function(e){return n.listen(function(t){return e(a(t))})},p=function(e){return n.push(u(e))},d=function(e){return n.replace(u(e))},h=function(e){return n.createPath(u(e))},v=function(e){return n.createHref(u(e))},m=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),o=1;o0&&void 0!==arguments[0]?arguments[0]:{},n=e(t),r=t.stringifyQuery,a=t.parseQueryString;"function"!=typeof r&&(r=l),"function"!=typeof a&&(a=f);var i=function(e){return e?(null==e.query&&(e.query=a(e.search.substring(1))),e):e},p=function(e,t){if(null==t)return e;var n="string"==typeof e?(0,c.parsePath)(e):e,a=r(t),i=a?"?"+a:"";return o({},n,{search:i})},d=function(){return i(n.getCurrentLocation())},h=function(e){return n.listenBefore(function(t,n){return(0,s.default)(e,i(t),n)})},v=function(e){return n.listen(function(t){return e(i(t))})},m=function(e){return n.push(p(e,e.query))},y=function(e){return n.replace(p(e,e.query))},g=function(e){return n.createPath(p(e,e.query))},b=function(e){return n.createHref(p(e,e.query))},_=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),o=1;o","In order to use the inGroup property, you must expand the groups resource for the /me endpoint."));var n=d.default.excludeProps(["inGroup"],this.props);return t?d.default.enforceRootElement(this.props.children,n):null}}]),t}(f.default.Component),s.contextTypes={user:f.default.PropTypes.object},u);t.default=h},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=Object.assign||function(e){for(var t=1;t In order to use the inGroup option, you must expand the groups resource for the /me endpoint.")}var n=d.default.excludeProps(["inGroup"],this.props);return t?null:d.default.enforceRootElement(this.props.children,n)}}]),t}(f.default.Component),s.contextTypes={user:f.default.PropTypes.object},u);t.default=h},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s,u,c=Object.assign||function(e){for(var t=1;t0})}},{key:"render",value:function(){return p.default.createElement(_,this.props,p.default.createElement("div",{className:"sp-update-profile-form"},p.default.createElement("div",{className:"row"},p.default.createElement("div",{className:"col-xs-12"},p.default.createElement("div",{className:"form-horizontal"},p.default.createElement("div",{className:"form-group"},p.default.createElement("label",{htmlFor:"givenName",className:"col-xs-12 col-sm-4 control-label"},"First name"),p.default.createElement("div",{className:"col-xs-12 col-sm-4"},p.default.createElement("input",{type:"text",className:"form-control",id:"givenName",name:"givenName",placeholder:"First name",required:!0}))),p.default.createElement("div",{className:"form-group"},p.default.createElement("label",{htmlFor:"surname",className:"col-xs-12 col-sm-4 control-label"},"Last name"),p.default.createElement("div",{className:"col-xs-12 col-sm-4"},p.default.createElement("input",{type:"text",className:"form-control",id:"surname",name:"surname",placeholder:"Last name",required:!0}))),p.default.createElement("div",{className:"form-group"},p.default.createElement("label",{htmlFor:"email",className:"col-xs-12 col-sm-4 control-label"},"Email"),p.default.createElement("div",{className:"col-xs-12 col-sm-4"},p.default.createElement("input",{type:"email",className:"form-control",id:"email",name:"email",placeholder:"Email",required:!0}))),p.default.createElement("div",{className:"form-group"},p.default.createElement("label",{htmlFor:"password",className:"col-xs-12 col-sm-4 control-label"},"Password"),p.default.createElement("div",{className:"col-xs-12 col-sm-4"},p.default.createElement("input",{type:"password",className:"form-control",id:"password",name:"password",placeholder:"Password",onChange:this.onPasswordChanged.bind(this)}))),p.default.createElement("div",null,this.state.showPasswordVerification?p.default.createElement("div",{className:"form-group"},p.default.createElement("label",{htmlFor:"password",className:"col-xs-12 col-sm-4 control-label"},"Existing password"),p.default.createElement("div",{className:"col-xs-12 col-sm-4"},p.default.createElement("input",{type:"password",className:"form-control",id:"existingPassword",name:"existingPassword",placeholder:"Existing password",required:!0}))):null),p.default.createElement("div",{key:"update-button",className:"form-group"},p.default.createElement("div",{className:"col-sm-offset-4 col-sm-4"},p.default.createElement("p",{className:"alert alert-danger","data-spIf":"form.error"},p.default.createElement("span",{"data-spBind":"form.errorMessage"})),p.default.createElement("p",{className:"alert alert-success","data-spIf":"form.successful"},"Profile updated."),p.default.createElement("button",{type:"submit",className:"btn btn-primary"},p.default.createElement("span",{"data-spIf":"!form.processing"},"Update"),p.default.createElement("span",{"data-spIf":"form.processing"},"Updating...")))))))))}}]),t}(p.default.Component),_=(u=s=function(e){function t(){var e,n,r,i;o(this,t);for(var s=arguments.length,u=Array(s),c=0;c In order to use the inGroup option, you must expand the groups resource for the /me endpoint.")),t(r,a)})}},{key:"getAccessToken",value:function(){return this.service.getToken?this.service.getToken("access_token").then(function(e){return e?Promise.resolve(e):Promise.reject("No access token available.")}):Promise.reject(new Error("Unable to retrieve access token for current auth strategy."))}},{key:"getLoginViewData",value:function(e){this.service.getLoginViewData(e)}},{key:"login",value:function(e,t){var n=this;this.reset(),this.service.login(e,function(e){return e?t(e):void n.resolveSession(t,!0)})}},{key:"register",value:function(e,t){this.service.register(e,t)}},{key:"getRegisterViewData",value:function(e){this.service.getRegisterViewData(e)}},{key:"forgotPassword",value:function(e,t){this.service.forgotPassword(e,t)}},{key:"changePassword",value:function(e,t){this.service.changePassword(e,t)}},{key:"updateProfile",value:function(e,t){this.service.updateProfile(e,t)}},{key:"verifyEmail",value:function(e,t){this.service.verifyEmail(e,t)}},{key:"logout",value:function(e){var t=this;this.service.logout(function(n){return n?e(n):(t.reset(),t.emitChange(),void e())})}},{key:"resolveSession",value:function(e,t){var n=this;return t||!this.sessionError&&this.sessionStore.empty()?void this.service.me(function(t,r){t?(n.sessionError=t,n.sessionStore.reset(),d.default.set(null)):(n.sessionError=null,n.sessionStore.set(r),d.default.set(r)),e&&e(n.sessionError,n.sessionStore.get()),n.emitChange()}):e&&e(this.sessionError,this.sessionStore.get())}},{key:"reset",value:function(){this.sessionError=null,this.sessionStore.reset(),d.default.set(null)}}]),t}(f.default);t.default=h},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.TokenStore=t.SessionStore=t.UserStore=void 0;var o=n(83),a=r(o),i=n(48),s=r(i),u=n(82),c=r(u);t.UserStore=a.default,t.SessionStore=s.default,t.TokenStore=c.default},function(e,t,n){(function(t){"use strict";function r(e){return e}function o(e,n,o){function f(e,n,r){for(var o in n)n.hasOwnProperty(o)&&"production"!==t.env.NODE_ENV&&u("function"==typeof n[o],"%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.",e.displayName||"ReactClass",c[r],o)}function p(e,t){var n=w.hasOwnProperty(t)?w[t]:null;R.hasOwnProperty(t)&&s("OVERRIDE_BASE"===n,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",t),e&&s("DEFINE_MANY"===n||"DEFINE_MANY_MERGED"===n,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",t)}function d(e,r){if(r){s("function"!=typeof r,"ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object."),s(!n(r),"ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.");var o=e.prototype,a=o.__reactAutoBindPairs;r.hasOwnProperty(l)&&P.mixins(e,r.mixins);for(var i in r)if(r.hasOwnProperty(i)&&i!==l){var c=r[i],f=o.hasOwnProperty(i);if(p(f,i),P.hasOwnProperty(i))P[i](e,c);else{var d=w.hasOwnProperty(i),h="function"==typeof c,v=h&&!d&&!f&&r.autobind!==!1;if(v)a.push(i,c),o[i]=c;else if(f){var g=w[i];s(d&&("DEFINE_MANY_MERGED"===g||"DEFINE_MANY"===g),"ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.",g,i),"DEFINE_MANY_MERGED"===g?o[i]=m(o[i],c):"DEFINE_MANY"===g&&(o[i]=y(o[i],c))}else o[i]=c,"production"!==t.env.NODE_ENV&&"function"==typeof c&&r.displayName&&(o[i].displayName=r.displayName+"_"+i)}}}else if("production"!==t.env.NODE_ENV){var b=typeof r,_="object"===b&&null!==r;"production"!==t.env.NODE_ENV&&u(_,"%s: You're attempting to include a mixin that is either null or not an object. Check the mixins included by the component, as well as any mixins they include themselves. Expected object but got %s.",e.displayName||"ReactClass",null===r?null:b)}}function h(e,t){if(t)for(var n in t){var r=t[n];if(t.hasOwnProperty(n)){var o=n in P;s(!o,'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',n);var a=n in e;if(a){var i=O.hasOwnProperty(n)?O[n]:null;return s("DEFINE_MANY_MERGED"===i,"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",n),void(e[n]=m(e[n],r))}e[n]=r}}}function v(e,t){s(e&&t&&"object"==typeof e&&"object"==typeof t,"mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.");for(var n in t)t.hasOwnProperty(n)&&(s(void 0===e[n],"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",n),e[n]=t[n]);return e}function m(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 v(o,n),v(o,r),o}}function y(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function g(e,n){var r=n.bind(e);if("production"!==t.env.NODE_ENV){r.__reactBoundContext=e,r.__reactBoundMethod=n,r.__reactBoundArguments=null;var o=e.constructor.displayName,a=r.bind;r.bind=function(i){for(var s=arguments.length,c=Array(s>1?s-1:0),l=1;l0&&u>s&&(u=s);for(var c=0;c=0?(l=h.substr(0,v),f=h.substr(v+1)):(l=h,f=""),p=decodeURIComponent(l),d=decodeURIComponent(f),n(a,p)?Array.isArray(a[p])?a[p].push(d):a[p]=[a[p],d]:a[p]=d}return a}},function(e,t){"use strict";var n=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,r,o){return t=t||"&",r=r||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map(function(o){var a=encodeURIComponent(n(o))+r;return Array.isArray(e[o])?e[o].map(function(e){return a+encodeURIComponent(n(e))}).join(t):a+encodeURIComponent(n(e[o]))}).join(t):o?encodeURIComponent(n(o))+r+encodeURIComponent(n(e)):""}},function(e,t,n){"use strict";t.decode=t.parse=n(94),t.encode=t.stringify=n(95)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=Object.assign||function(e){for(var t=1;t does not make sense at the root of your route config"):void 0}},propTypes:{to:s.string.isRequired,query:s.object,state:s.object,onEnter:h.falsy,children:h.falsy},render:function(){"production"!==r.env.NODE_ENV?(0,f.default)(!1," elements are for router configuration only and should not be rendered"):(0,f.default)(!1)}});t.default=v,e.exports=t.default}).call(t,n(1))},function(e,t,n){(function(r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(9),i=o(a),s=n(8),u=n(14),c=o(u),l=n(5),f=o(l),p=n(10),d=n(18),h=(0,i.default)({displayName:"IndexRoute",statics:{createRouteFromReactElement:function(e,t){t?t.indexRoute=(0,p.createRouteFromReactElement)(e):"production"!==r.env.NODE_ENV?(0,c.default)(!1,"An does not make sense at the root of your route config"):void 0}},propTypes:{path:d.falsy,component:d.component,components:d.components,getComponent:s.func,getComponents:s.func},render:function(){"production"!==r.env.NODE_ENV?(0,f.default)(!1," elements are for router configuration only and should not be rendered"):(0,f.default)(!1)}});t.default=h,e.exports=t.default}).call(t,n(1))},function(e,t,n){(function(r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(9),i=o(a),s=n(8),u=n(5),c=o(u),l=n(10),f=n(18),p=(0,i.default)({displayName:"Route",statics:{createRouteFromReactElement:l.createRouteFromReactElement},propTypes:{path:s.string,component:f.component,components:f.components,getComponent:s.func,getComponents:s.func},render:function(){"production"!==r.env.NODE_ENV?(0,c.default)(!1," elements are for router configuration only and should not be rendered"):(0,c.default)(!1)}});t.default=p,e.exports=t.default}).call(t,n(1))},function(e,t,n){(function(r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}t.__esModule=!0;var i=Object.assign||function(e){for(var t=1;t; it will be ignored"):void 0,"production"!==r.env.NODE_ENV?(0,w.default)((e.routes||e.children)===(this.props.routes||this.props.children),"You cannot change ; it will be ignored"):void 0},componentWillUnmount:function(){this._unlisten&&this._unlisten()},render:function e(){var t=this.state,n=t.location,r=t.routes,o=t.params,s=t.components,u=this.props,c=u.createElement,e=u.render,l=a(u,["createElement","render"]);return null==n?null:(Object.keys(O).forEach(function(e){ +return delete l[e]}),e(i({},l,{router:this.router,location:n,routes:r,params:o,components:s,createElement:c})))}});t.default=P,e.exports=t.default}).call(t,n(1))},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(){function e(e,t,n,r){var o=e.length0&&void 0!==arguments[0]?arguments[0]:i.createElement;return function(t,n){return u.reduceRight(function(e,t){return t(e,n)},e(t,n))}};return function(e){return o.reduceRight(function(t,n){return n(t,e)},s.default.createElement(c.default,a({},e,{createElement:l(e.createElement)})))}},e.exports=t.default}).call(t,n(1))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n(116),a=r(o),i=n(56),s=r(i);t.default=(0,s.default)(a.default),e.exports=t.default},function(e,t,n){"use strict";function r(e,t,n){if(!e.path)return!1;var r=(0,a.getParamNames)(e.path);return r.some(function(e){return t.params[e]!==n.params[e]})}function o(e,t){var n=e&&e.routes,o=t.routes,a=void 0,i=void 0,s=void 0;if(n){var u=!1;a=n.filter(function(n){if(u)return!0;var a=o.indexOf(n)===-1||r(n,e,t);return a&&(u=!0),a}),a.reverse(),s=[],i=[],o.forEach(function(e){var t=n.indexOf(e)===-1,r=a.indexOf(e)!==-1;t||r?s.push(e):i.push(e)})}else a=[],i=[],s=o;return{leaveRoutes:a,changeRoutes:i,enterRoutes:s}}t.__esModule=!0;var a=n(13);t.default=o,e.exports=t.default},function(e,t,n){"use strict";function r(e,t,n){if(t.component||t.components)return void n(null,t.component||t.components);var r=t.getComponent||t.getComponents;if(r){var o=r.call(t,e,n);(0,i.isPromise)(o)&&o.then(function(e){return n(null,e)},n)}else n()}function o(e,t){(0,a.mapAsync)(e.routes,function(t,n,o){r(e,t,o)},t)}t.__esModule=!0;var a=n(29),i=n(52);t.default=o,e.exports=t.default},function(e,t,n){"use strict";function r(e,t){var n={};return e.path?((0,o.getParamNames)(e.path).forEach(function(e){Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e])}),n):n}t.__esModule=!0;var o=n(13);t.default=r,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n(117),a=r(o),i=n(56),s=r(i);t.default=(0,s.default)(a.default),e.exports=t.default},function(e,t,n){"use strict";function r(e,t){if(e==t)return!0;if(null==e||null==t)return!1;if(Array.isArray(e))return Array.isArray(t)&&e.length===t.length&&e.every(function(e,n){return r(e,t[n])});if("object"===("undefined"==typeof e?"undefined":u(e))){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n))if(void 0===e[n]){if(void 0!==t[n])return!1}else{if(!Object.prototype.hasOwnProperty.call(t,n))return!1;if(!r(e[n],t[n]))return!1}return!0}return String(e)===String(t)}function o(e,t){return"/"!==t.charAt(0)&&(t="/"+t),"/"!==e.charAt(e.length-1)&&(e+="/"),"/"!==t.charAt(t.length-1)&&(t+="/"),t===e}function a(e,t,n){for(var r=e,o=[],a=[],i=0,s=t.length;i=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){var n=e.history,o=e.routes,i=e.location,c=a(e,["history","routes","location"]);n||i?void 0:"production"!==r.env.NODE_ENV?(0,l.default)(!1,"match needs a history or a location"):(0,l.default)(!1),n=n?n:(0,p.default)(c);var f=(0,h.default)(n,(0,v.createRoutes)(o));i=i?n.createLocation(i):n.getCurrentLocation(),f.match(i,function(e,r,o){var a=void 0;if(o){var i=(0,m.createRouterObject)(n,f,o);a=s({},o,{router:i,matchContext:{transitionManager:f,router:i}})}t(e,r&&n.createLocation(r,u.REPLACE),a)})}t.__esModule=!0;var s=Object.assign||function(e){for(var t=1;t4&&void 0!==arguments[4]?arguments[4]:[],a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[];void 0===r&&("/"!==t.pathname.charAt(0)&&(t=f({},t,{pathname:"/"+t.pathname})),r=t.pathname),(0,p.loopAsync)(e.length,function(n,i,s){c(e[n],t,r,o,a,function(e,t){e||t?s(e,t):i()})},n)}t.__esModule=!0;var f=Object.assign||function(e){for(var t=1;t=e&&i&&(o=!0,n()))}};c()}},function(e,t,n){(function(e){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.replaceLocation=t.pushLocation=t.startListener=t.getCurrentLocation=t.go=t.getUserConfirmation=void 0;var o=n(33);Object.defineProperty(t,"getUserConfirmation",{enumerable:!0,get:function(){return o.getUserConfirmation}}),Object.defineProperty(t,"go",{enumerable:!0,get:function(){return o.go}});var a=n(12),i=r(a),s=n(15),u=n(20),c=n(59),l=n(11),f="hashchange",p=function(){var e=window.location.href,t=e.indexOf("#");return t===-1?"":e.substring(t+1)},d=function(e){return window.location.hash=e},h=function(e){var t=window.location.href.indexOf("#");window.location.replace(window.location.href.slice(0,t>=0?t:0)+"#"+e)},v=t.getCurrentLocation=function(e,t){var n=e.decodePath(p()),r=(0,l.getQueryStringValueFromPath)(n,t),o=void 0;r&&(n=(0,l.stripQueryStringValueFromPath)(n,t),o=(0,c.readState)(r));var a=(0,l.parsePath)(n);return a.state=o,(0,s.createLocation)(a,void 0,r)},m=void 0,y=(t.startListener=function(e,t,n){var r=function(){var r=p(),o=t.encodePath(r);if(r!==o)h(o);else{var a=v(t,n);if(m&&a.key&&m.key===a.key)return;m=a,e(a)}},o=p(),a=t.encodePath(o);return o!==a&&h(a),(0,u.addEventListener)(window,f,r),function(){return(0,u.removeEventListener)(window,f,r)}},function(e,t,n,r){var o=e.state,a=e.key,i=t.encodePath((0,l.createPath)(e));void 0!==o&&(i=(0,l.addQueryStringValueToPath)(i,n,a),(0,c.saveState)(a,o)),m=e,r(i)});t.pushLocation=function(t,n,r){return y(t,n,r,function(t){p()!==t?d(t):"production"!==e.env.NODE_ENV?(0,i.default)(!1,"You cannot PUSH the same path using hash history"):void 0})},t.replaceLocation=function(e,t,n){return y(e,t,n,function(e){p()!==e&&h(e)})}}).call(t,n(1))},function(e,t,n){"use strict";t.__esModule=!0,t.replaceLocation=t.pushLocation=t.getCurrentLocation=t.go=t.getUserConfirmation=void 0;var r=n(33);Object.defineProperty(t,"getUserConfirmation",{enumerable:!0,get:function(){return r.getUserConfirmation}}),Object.defineProperty(t,"go",{enumerable:!0,get:function(){return r.go}});var o=n(15),a=n(11);t.getCurrentLocation=function(){return(0,o.createLocation)(window.location)},t.pushLocation=function(e){return window.location.href=(0,a.createPath)(e),!1},t.replaceLocation=function(e){return window.location.replace((0,a.createPath)(e)),!1}},function(e,t,n){(function(e){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};u.canUseDOM?void 0:"production"!==e.env.NODE_ENV?(0,s.default)(!1,"Browser history needs a DOM"):(0,s.default)(!1);var n=t.forceRefresh||!(0,d.supportsHistory)(),r=n?p:l,o=r.getUserConfirmation,i=r.getCurrentLocation,c=r.pushLocation,f=r.replaceLocation,h=r.go,m=(0,v.default)(a({getUserConfirmation:o},t,{getCurrentLocation:i,pushLocation:c,replaceLocation:f,go:h})),y=0,g=void 0,b=function(e,t){1===++y&&(g=l.startListener(m.transitionTo));var n=t?m.listenBefore(e):m.listen(e);return function(){n(),0===--y&&g()}},_=function(e){return b(e,!0)},E=function(e){return b(e,!1)};return a({},m,{listenBefore:_,listen:E})};t.default=m}).call(t,n(1))},function(e,t,n){(function(e){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};l.canUseDOM?void 0:"production"!==e.env.NODE_ENV?(0,c.default)(!1,"Hash history needs a DOM"):(0,c.default)(!1);var n=t.queryKey,r=t.hashType;"production"!==e.env.NODE_ENV?(0,s.default)(n!==!1,"Using { queryKey: false } no longer works. Instead, just don't use location state if you don't want a key in your URL query string"):void 0,"string"!=typeof n&&(n=m),null==r&&(r="slash"),r in g||("production"!==e.env.NODE_ENV?(0,s.default)(!1,"Invalid hash type: %s",r):void 0,r="slash");var o=g[r],i=d.getUserConfirmation,u=function(){return d.getCurrentLocation(o,n)},p=function(e){return d.pushLocation(e,o,n)},h=function(e){return d.replaceLocation(e,o,n)},y=(0,v.default)(a({getUserConfirmation:i},t,{getCurrentLocation:u,pushLocation:p,replaceLocation:h,go:d.go})),b=0,_=void 0,E=function(e,t){1===++b&&(_=d.startListener(y.transitionTo,o,n));var r=t?y.listenBefore(e):y.listen(e);return function(){r(),0===--b&&_()}},w=function(e){return E(e,!0)},O=function(e){return E(e,!1)},P=(0,f.supportsGoWithoutReloadUsingHash)(),k=function(t){"production"!==e.env.NODE_ENV?(0,s.default)(P,"Hash history go(n) causes a full page reload in this browser"):void 0,y.go(t)},j=function(e){return"#"+o.encodePath(y.createHref(e))};return a({},y,{listenBefore:w,listen:O,go:k,createHref:j})};t.default=b}).call(t,n(1))},function(e,t,n){(function(e){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};Array.isArray(t)?t={entries:t}:"string"==typeof t&&(t={entries:[t]});var n=function(){var e=y[g],t=(0,l.createPath)(e),n=void 0,r=void 0;e.key&&(n=e.key,r=E(n));var a=(0,l.parsePath)(t);return(0,c.createLocation)(o({},a,{state:r}),void 0,n)},r=function(e){var t=g+e;return t>=0&&t=0&&g= 0 and < %s, was %s",y.length,g):(0,u.default)(!1);var b=h(y),_=function(e,t){return b[e]=t},E=function(e){return b[e]};return o({},v,{canGo:r})};t.default=v}).call(t,n(1))},function(e,t){"use strict";e.exports=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}},function(e,t,n){var r;(function(e,o){!function(a){function i(e){throw RangeError(M[e])}function s(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function u(e,t){var n=e.split("@"),r="";n.length>1&&(r=n[0]+"@",e=n[1]),e=e.replace(C,".");var o=e.split("."),a=s(o,t).join(".");return r+a}function c(e){for(var t,n,r=[],o=0,a=e.length;o=55296&&t<=56319&&o65535&&(e-=65536,t+=F(e>>>10&1023|55296),e=56320|1023&e),t+=F(e)}).join("")}function f(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:E}function p(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function d(e,t,n){var r=0;for(e=n?A(e/k):e>>1,e+=A(e/t);e>T*O>>1;r+=E)e=A(e/T);return A(r+(T+1)*e/(e+P))}function h(e){var t,n,r,o,a,s,u,c,p,h,v=[],m=e.length,y=0,g=R,b=j;for(n=e.lastIndexOf(N),n<0&&(n=0),r=0;r=128&&i("not-basic"),v.push(e.charCodeAt(r));for(o=n>0?n+1:0;o=m&&i("invalid-input"),c=f(e.charCodeAt(o++)),(c>=E||c>A((_-y)/s))&&i("overflow"),y+=c*s,p=u<=b?w:u>=b+O?O:u-b,!(cA(_/h)&&i("overflow"),s*=h;t=v.length+1,b=d(y-a,t,0==a),A(y/t)>_-g&&i("overflow"),g+=A(y/t),y%=t,v.splice(y++,0,g)}return l(v)}function v(e){var t,n,r,o,a,s,u,l,f,h,v,m,y,g,b,P=[];for(e=c(e),m=e.length,t=R,n=0,a=j,s=0;s=t&&vA((_-n)/y)&&i("overflow"),n+=(u-t)*y,t=u,s=0;s_&&i("overflow"),v==t){for(l=n,f=E;h=f<=a?w:f>=a+O?O:f-a,!(l= 0x80 (not a basic code point)","invalid-input":"Invalid input"},T=E-w,A=Math.floor,F=String.fromCharCode;b={version:"1.3.2",ucs2:{decode:c,encode:l},decode:h,encode:v,toASCII:y,toUnicode:m},r=function(){return b}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))}(this)}).call(t,n(123)(e),function(){return this}())},function(e,t,n){"use strict";function r(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function o(e,t,n){if(e&&c.isObject(e)&&e instanceof r)return e;var o=new r;return o.parse(e,t,n),o}function a(e){return c.isString(e)&&(e=o(e)),e instanceof r?e.format():r.prototype.format.call(e)}function i(e,t){return o(e,!1,!0).resolve(t)}function s(e,t){return e?o(e,!1,!0).resolveObject(t):t}var u=n(120),c=n(122);t.parse=o,t.resolve=i,t.resolveObject=s,t.format=a,t.Url=r;var l=/^([a-z0-9.+-]+:)/i,f=/:[0-9]*$/,p=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,d=["<",">",'"',"`"," ","\r","\n","\t"],h=["{","}","|","\\","^","`"].concat(d),v=["'"].concat(h),m=["%","/","?",";","#"].concat(v),y=["/","?","#"],g=255,b=/^[+a-z0-9A-Z_-]{0,63}$/,_=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,E={javascript:!0,"javascript:":!0},w={javascript:!0,"javascript:":!0},O={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},P=n(96);r.prototype.parse=function(e,t,n){if(!c.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var r=e.indexOf("?"),o=r!==-1&&r127?"x":A[D];if(!F.match(b)){var I=M.slice(0,R),U=M.slice(R+1),q=A.match(_);q&&(I.push(q[1]),U.unshift(q[2])),U.length&&(s="/"+U.join(".")+s),this.hostname=I.join(".");break}}}this.hostname.length>g?this.hostname="":this.hostname=this.hostname.toLowerCase(),C||(this.hostname=u.toASCII(this.hostname));var V=this.port?":"+this.port:"",H=this.hostname||"";this.host=H+V,this.href+=this.host,C&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==s[0]&&(s="/"+s))}if(!E[h])for(var R=0,T=v.length;R0)&&n.host.split("@");k&&(n.auth=k.shift(),n.host=n.hostname=k.shift())}return n.search=e.search,n.query=e.query,c.isNull(n.pathname)&&c.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!E.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var j=E.slice(-1)[0],R=(n.host||e.host||E.length>1)&&("."===j||".."===j)||""===j,N=0,S=E.length;S>=0;S--)j=E[S],"."===j?E.splice(S,1):".."===j?(E.splice(S,1),N++):N&&(E.splice(S,1),N--);if(!b&&!_)for(;N--;N)E.unshift("..");!b||""===E[0]||E[0]&&"/"===E[0].charAt(0)||E.unshift(""),R&&"/"!==E.join("/").substr(-1)&&E.push("");var x=""===E[0]||E[0]&&"/"===E[0].charAt(0);if(P){n.hostname=n.host=x?"":E.length?E.shift():"";var k=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@");k&&(n.auth=k.shift(),n.host=n.hostname=k.shift())}return b=b||n.host&&E.length,b&&!x&&E.unshift(""),E.length?n.pathname=E.join("/"):(n.pathname=null,n.path=null),c.isNull(n.pathname)&&c.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},r.prototype.parseHost=function(){var e=this.host,t=f.exec(e);t&&(t=t[0],":"!==t&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children=[],e.webpackPolyfill=1),e}},function(e,t){function n(){for(var e={},t=0;t 0) ? process.env.NODE_ENV !== 'production' ? (0, _invariant2.default)(false, 'Missing splat #%s for path "%s"', splatIndex, pattern) : (0, _invariant2.default)(false) : void 0; + var iteratorFn = getIteratorFn(propValue); + if (iteratorFn) { + var iterator = iteratorFn.call(propValue); + var step; + if (iteratorFn !== propValue.entries) { + while (!(step = iterator.next()).done) { + if (!isNode(step.value)) { + return false; + } + } + } else { + // Iterator will provide entry [k,v] tuples rather than values. + while (!(step = iterator.next()).done) { + var entry = step.value; + if (entry) { + if (!isNode(entry[1])) { + return false; + } + } + } + } + } else { + return false; + } - if (paramValue != null) pathname += encodeURI(paramValue); - } else if (token === '(') { - parenHistory[parenCount] = ''; - parenCount += 1; - } else if (token === ')') { - var parenText = parenHistory.pop(); - parenCount -= 1; + return true; + default: + return false; + } + } - if (parenCount) parenHistory[parenCount - 1] += parenText;else pathname += parenText; - } else if (token === '\\(') { - pathname += '('; - } else if (token === '\\)') { - pathname += ')'; - } else if (token.charAt(0) === ':') { - paramName = token.substring(1); - paramValue = params[paramName]; + function isSymbol(propType, propValue) { + // Native Symbol. + if (propType === 'symbol') { + return true; + } - !(paramValue != null || parenCount > 0) ? process.env.NODE_ENV !== 'production' ? (0, _invariant2.default)(false, 'Missing "%s" parameter for path "%s"', paramName, pattern) : (0, _invariant2.default)(false) : void 0; + // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol' + if (propValue['@@toStringTag'] === 'Symbol') { + return true; + } - if (paramValue == null) { - if (parenCount) { - parenHistory[parenCount - 1] = ''; + // Fallback for non-spec compliant Symbols which are polyfilled. + if (typeof Symbol === 'function' && propValue instanceof Symbol) { + return true; + } - var curTokenIdx = tokens.indexOf(token); - var tokensSubset = tokens.slice(curTokenIdx, tokens.length); - var nextParenIdx = -1; + return false; + } - for (var _i = 0; _i < tokensSubset.length; _i++) { - if (tokensSubset[_i] == ')') { - nextParenIdx = _i; - break; - } - } + // Equivalent of `typeof` but with special handling for array and regexp. + function getPropType(propValue) { + var propType = typeof propValue; + if (Array.isArray(propValue)) { + return 'array'; + } + if (propValue instanceof RegExp) { + // Old webkits (at least until Android 4.0) return 'function' rather than + // 'object' for typeof a RegExp. We'll normalize this here so that /bla/ + // passes PropTypes.object. + return 'object'; + } + if (isSymbol(propType, propValue)) { + return 'symbol'; + } + return propType; + } - !(nextParenIdx > 0) ? process.env.NODE_ENV !== 'production' ? (0, _invariant2.default)(false, 'Path "%s" is missing end paren at segment "%s"', pattern, tokensSubset.join('')) : (0, _invariant2.default)(false) : void 0; + // This handles more types than `getPropType`. Only used for error messages. + // See `createPrimitiveTypeChecker`. + function getPreciseType(propValue) { + if (typeof propValue === 'undefined' || propValue === null) { + return '' + propValue; + } + var propType = getPropType(propValue); + if (propType === 'object') { + if (propValue instanceof Date) { + return 'date'; + } else if (propValue instanceof RegExp) { + return 'regexp'; + } + } + return propType; + } - // jump to ending paren - i = curTokenIdx + nextParenIdx - 1; - } - } else if (parenCount) parenHistory[parenCount - 1] += encodeURIComponent(paramValue);else pathname += encodeURIComponent(paramValue); - } else { - if (parenCount) parenHistory[parenCount - 1] += token;else pathname += token; + // Returns a string that is postfixed to a warning about an invalid type. + // For example, "undefined" or "of type array" + function getPostfixForTypeWarning(value) { + var type = getPreciseType(value); + switch (type) { + case 'array': + case 'object': + return 'an ' + type; + case 'boolean': + case 'date': + case 'regexp': + return 'a ' + type; + default: + return type; } } - !(parenCount <= 0) ? process.env.NODE_ENV !== 'production' ? (0, _invariant2.default)(false, 'Path "%s" is missing end paren', pattern) : (0, _invariant2.default)(false) : void 0; + // Returns class name of the object, if any. + function getClassName(propValue) { + if (!propValue.constructor || !propValue.constructor.name) { + return ANONYMOUS; + } + return propValue.constructor.name; + } + + ReactPropTypes.checkPropTypes = checkPropTypes; + ReactPropTypes.PropTypes = ReactPropTypes; + + return ReactPropTypes; + }; - return pathname.replace(/\/+/g, '/'); - } /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 43 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 44 */ +/***/ (function(module, exports) { - /* WEBPACK VAR INJECTION */(function(process) {/** - * Copyright 2013-2015, Facebook, Inc. - * All rights reserved. + "use strict"; + + /** + * Copyright (c) 2013-present, Facebook, Inc. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * */ - 'use strict'; + function makeEmptyFunction(arg) { + return function () { + return arg; + }; + } /** - * Use invariant() to assert state which your program assumes to be true. + * This function accepts and discards inputs; it has no side effects. This is + * primarily useful idiomatically for overridable function endpoints which + * always need to be callable, since JS lacks a null-call idiom ala Cocoa. + */ + var emptyFunction = function emptyFunction() {}; + + emptyFunction.thatReturns = makeEmptyFunction; + emptyFunction.thatReturnsFalse = makeEmptyFunction(false); + emptyFunction.thatReturnsTrue = makeEmptyFunction(true); + emptyFunction.thatReturnsNull = makeEmptyFunction(null); + emptyFunction.thatReturnsThis = function () { + return this; + }; + emptyFunction.thatReturnsArgument = function (arg) { + return arg; + }; + + module.exports = emptyFunction; + +/***/ }), +/* 45 */ +/***/ (function(module, exports, __webpack_require__) { + + /* WEBPACK VAR INJECTION */(function(process) {/** + * Copyright (c) 2014-present, Facebook, Inc. * - * Provide sprintf-style format (only %s is supported) and arguments - * to provide information about what broke and what you were - * expecting. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * - * The invariant message will be stripped in production, but the invariant - * will remain to ensure logic does not differ in production. */ - var invariant = function(condition, format, a, b, c, d, e, f) { - if (process.env.NODE_ENV !== 'production') { - if (format === undefined) { - throw new Error('invariant requires an error message argument'); + 'use strict'; + + var emptyFunction = __webpack_require__(44); + + /** + * Similar to invariant but only logs a warning if the condition is not met. + * This can be used to log issues in development environments in critical + * paths. Removing the logging code for production environments will keep the + * same logic and follow the same code paths. + */ + + var warning = emptyFunction; + + if (process.env.NODE_ENV !== 'production') { + var printWarning = function printWarning(format) { + for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + args[_key - 1] = arguments[_key]; } - } - if (!condition) { - var error; - if (format === undefined) { - error = new Error( - 'Minified exception occurred; use the non-minified dev environment ' + - 'for the full error message and additional helpful warnings.' - ); - } else { - var args = [a, b, c, d, e, f]; - var argIndex = 0; - error = new Error( - format.replace(/%s/g, function() { return args[argIndex++]; }) - ); - error.name = 'Invariant Violation'; + var argIndex = 0; + var message = 'Warning: ' + format.replace(/%s/g, function () { + return args[argIndex++]; + }); + if (typeof console !== 'undefined') { + console.error(message); } + try { + // --- Welcome to debugging React --- + // This error was thrown as a convenience so that you can use this stack + // to find the callsite that caused this warning to fire. + throw new Error(message); + } catch (x) {} + }; - error.framesToPop = 1; // we don't care about invariant's own frame - throw error; - } - }; + warning = function warning(condition, format) { + if (format === undefined) { + throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument'); + } - module.exports = invariant; + if (format.indexOf('Failed Composite propType: ') === 0) { + return; // Ignore CompositeComponent proptype check. + } - /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) + if (!condition) { + for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) { + args[_key2 - 2] = arguments[_key2]; + } -/***/ }, -/* 44 */ -/***/ function(module, exports, __webpack_require__) { + printWarning.apply(undefined, [format].concat(args)); + } + }; + } - /* WEBPACK VAR INJECTION */(function(process) {'use strict'; + module.exports = warning; + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) - exports.__esModule = true; +/***/ }), +/* 46 */ +/***/ (function(module, exports) { - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + /* + object-assign + (c) Sindre Sorhus + @license MIT + */ - var _invariant = __webpack_require__(43); + 'use strict'; + /* eslint-disable no-unused-vars */ + var getOwnPropertySymbols = Object.getOwnPropertySymbols; + var hasOwnProperty = Object.prototype.hasOwnProperty; + var propIsEnumerable = Object.prototype.propertyIsEnumerable; - var _invariant2 = _interopRequireDefault(_invariant); + function toObject(val) { + if (val === null || val === undefined) { + throw new TypeError('Object.assign cannot be called with null or undefined'); + } - var _react = __webpack_require__(7); + return Object(val); + } - var _react2 = _interopRequireDefault(_react); + function shouldUseNative() { + try { + if (!Object.assign) { + return false; + } - var _createTransitionManager2 = __webpack_require__(45); + // Detect buggy property enumeration order in older V8 versions. - var _createTransitionManager3 = _interopRequireDefault(_createTransitionManager2); + // https://bugs.chromium.org/p/v8/issues/detail?id=4118 + var test1 = new String('abc'); // eslint-disable-line no-new-wrappers + test1[5] = 'de'; + if (Object.getOwnPropertyNames(test1)[0] === '5') { + return false; + } - var _InternalPropTypes = __webpack_require__(55); + // https://bugs.chromium.org/p/v8/issues/detail?id=3056 + var test2 = {}; + for (var i = 0; i < 10; i++) { + test2['_' + String.fromCharCode(i)] = i; + } + var order2 = Object.getOwnPropertyNames(test2).map(function (n) { + return test2[n]; + }); + if (order2.join('') !== '0123456789') { + return false; + } - var _RouterContext = __webpack_require__(56); + // https://bugs.chromium.org/p/v8/issues/detail?id=3056 + var test3 = {}; + 'abcdefghijklmnopqrst'.split('').forEach(function (letter) { + test3[letter] = letter; + }); + if (Object.keys(Object.assign({}, test3)).join('') !== + 'abcdefghijklmnopqrst') { + return false; + } - var _RouterContext2 = _interopRequireDefault(_RouterContext); + return true; + } catch (err) { + // We don't expect any of the above to throw, but better to be safe. + return false; + } + } - var _RouteUtils = __webpack_require__(40); + module.exports = shouldUseNative() ? Object.assign : function (target, source) { + var from; + var to = toObject(target); + var symbols; - var _RouterUtils = __webpack_require__(59); + for (var s = 1; s < arguments.length; s++) { + from = Object(arguments[s]); - var _routerWarning = __webpack_require__(46); + for (var key in from) { + if (hasOwnProperty.call(from, key)) { + to[key] = from[key]; + } + } - var _routerWarning2 = _interopRequireDefault(_routerWarning); + if (getOwnPropertySymbols) { + symbols = getOwnPropertySymbols(from); + for (var i = 0; i < symbols.length; i++) { + if (propIsEnumerable.call(from, symbols[i])) { + to[symbols[i]] = from[symbols[i]]; + } + } + } + } - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + return to; + }; - function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } - var _React$PropTypes = _react2.default.PropTypes, - func = _React$PropTypes.func, - object = _React$PropTypes.object; +/***/ }), +/* 47 */ +/***/ (function(module, exports) { /** - * A is a high-level API for automatically setting up - * a router that renders a with all the props - * it needs each time the URL changes. + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ - var Router = _react2.default.createClass({ - displayName: 'Router', + 'use strict'; + + var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'; + + module.exports = ReactPropTypesSecret; + + +/***/ }), +/* 48 */ +/***/ (function(module, exports, __webpack_require__) { + + /* WEBPACK VAR INJECTION */(function(process) {/** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + + 'use strict'; + + if (process.env.NODE_ENV !== 'production') { + var invariant = __webpack_require__(36); + var warning = __webpack_require__(45); + var ReactPropTypesSecret = __webpack_require__(47); + var loggedTypeFailures = {}; + } + + /** + * Assert that the values match with the type specs. + * Error messages are memorized and will only be shown once. + * + * @param {object} typeSpecs Map of name to a ReactPropType + * @param {object} values Runtime values that need to be type-checked + * @param {string} location e.g. "prop", "context", "child context" + * @param {string} componentName Name of the component for error messages. + * @param {?Function} getStack Returns the component stack. + * @private + */ + function checkPropTypes(typeSpecs, values, location, componentName, getStack) { + if (process.env.NODE_ENV !== 'production') { + for (var typeSpecName in typeSpecs) { + if (typeSpecs.hasOwnProperty(typeSpecName)) { + var error; + // Prop type validation may throw. In case they do, we don't want to + // fail the render phase where it didn't fail before. So we log it. + // After these have been cleaned up, we'll let them throw. + try { + // This is intentionally an invariant that gets caught. It's the same + // behavior as without this statement except with a better message. + invariant(typeof typeSpecs[typeSpecName] === 'function', '%s: %s type `%s` is invalid; it must be a function, usually from ' + 'the `prop-types` package, but received `%s`.', componentName || 'React class', location, typeSpecName, typeof typeSpecs[typeSpecName]); + error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret); + } catch (ex) { + error = ex; + } + 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); + if (error instanceof Error && !(error.message in loggedTypeFailures)) { + // Only monitor this failure once because there tends to be a lot of the + // same error. + loggedTypeFailures[error.message] = true; + + var stack = getStack ? getStack() : ''; + + warning(false, 'Failed %s type: %s%s', location, error.message, stack != null ? stack : ''); + } + } + } + } + } + + module.exports = checkPropTypes; + + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) + +/***/ }), +/* 49 */ +/***/ (function(module, exports, __webpack_require__) { + + /** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + + 'use strict'; + + var emptyFunction = __webpack_require__(44); + var invariant = __webpack_require__(36); + var ReactPropTypesSecret = __webpack_require__(47); + + module.exports = function() { + function shim(props, propName, componentName, location, propFullName, secret) { + if (secret === ReactPropTypesSecret) { + // It is still safe when called from React. + return; + } + invariant( + false, + 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' + + 'Use PropTypes.checkPropTypes() to call them. ' + + 'Read more at http://fb.me/use-check-prop-types' + ); + }; + shim.isRequired = shim; + function getShim() { + return shim; + }; + // Important! + // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`. + var ReactPropTypes = { + array: shim, + bool: shim, + func: shim, + number: shim, + object: shim, + string: shim, + symbol: shim, + + any: shim, + arrayOf: getShim, + element: shim, + instanceOf: getShim, + node: shim, + objectOf: getShim, + oneOf: getShim, + oneOfType: getShim, + shape: getShim, + exact: getShim + }; + + ReactPropTypes.checkPropTypes = emptyFunction; + ReactPropTypes.PropTypes = ReactPropTypes; + + return ReactPropTypes; + }; + + +/***/ }), +/* 50 */ +/***/ (function(module, exports, __webpack_require__) { + + /* WEBPACK VAR INJECTION */(function(process) {'use strict'; + + exports.__esModule = true; + exports.compilePattern = compilePattern; + exports.matchPattern = matchPattern; + exports.getParamNames = getParamNames; + exports.getParams = getParams; + exports.formatPattern = formatPattern; + + var _invariant = __webpack_require__(51); + + var _invariant2 = _interopRequireDefault(_invariant); + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + function escapeRegExp(string) { + return string.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); + } + + function _compilePattern(pattern) { + var regexpSource = ''; + var paramNames = []; + var tokens = []; + + var match = void 0, + lastIndex = 0, + matcher = /:([a-zA-Z_$][a-zA-Z0-9_$]*)|\*\*|\*|\(|\)|\\\(|\\\)/g; + while (match = matcher.exec(pattern)) { + if (match.index !== lastIndex) { + tokens.push(pattern.slice(lastIndex, match.index)); + regexpSource += escapeRegExp(pattern.slice(lastIndex, match.index)); + } + + if (match[1]) { + regexpSource += '([^/]+)'; + paramNames.push(match[1]); + } else if (match[0] === '**') { + regexpSource += '(.*)'; + paramNames.push('splat'); + } else if (match[0] === '*') { + regexpSource += '(.*?)'; + paramNames.push('splat'); + } else if (match[0] === '(') { + regexpSource += '(?:'; + } else if (match[0] === ')') { + regexpSource += ')?'; + } else if (match[0] === '\\(') { + regexpSource += '\\('; + } else if (match[0] === '\\)') { + regexpSource += '\\)'; + } + + tokens.push(match[0]); + + lastIndex = matcher.lastIndex; + } + + if (lastIndex !== pattern.length) { + tokens.push(pattern.slice(lastIndex, pattern.length)); + regexpSource += escapeRegExp(pattern.slice(lastIndex, pattern.length)); + } + + return { + pattern: pattern, + regexpSource: regexpSource, + paramNames: paramNames, + tokens: tokens + }; + } + + var CompiledPatternsCache = Object.create(null); + + function compilePattern(pattern) { + if (!CompiledPatternsCache[pattern]) CompiledPatternsCache[pattern] = _compilePattern(pattern); + + return CompiledPatternsCache[pattern]; + } + + /** + * Attempts to match a pattern on the given pathname. Patterns may use + * the following special characters: + * + * - :paramName Matches a URL segment up to the next /, ?, or #. The + * captured string is considered a "param" + * - () Wraps a segment of the URL that is optional + * - * Consumes (non-greedy) all characters up to the next + * character in the pattern, or to the end of the URL if + * there is none + * - ** Consumes (greedy) all characters up to the next character + * in the pattern, or to the end of the URL if there is none + * + * The function calls callback(error, matched) when finished. + * The return value is an object with the following properties: + * + * - remainingPathname + * - paramNames + * - paramValues + */ + function matchPattern(pattern, pathname) { + // Ensure pattern starts with leading slash for consistency with pathname. + if (pattern.charAt(0) !== '/') { + pattern = '/' + pattern; + } + + var _compilePattern2 = compilePattern(pattern), + regexpSource = _compilePattern2.regexpSource, + paramNames = _compilePattern2.paramNames, + tokens = _compilePattern2.tokens; + + if (pattern.charAt(pattern.length - 1) !== '/') { + regexpSource += '/?'; // Allow optional path separator at end. + } + + // Special-case patterns like '*' for catch-all routes. + if (tokens[tokens.length - 1] === '*') { + regexpSource += '$'; + } + + var match = pathname.match(new RegExp('^' + regexpSource, 'i')); + if (match == null) { + return null; + } + + var matchedPath = match[0]; + var remainingPathname = pathname.substr(matchedPath.length); + + if (remainingPathname) { + // Require that the match ends at a path separator, if we didn't match + // the full path, so any remaining pathname is a new path segment. + if (matchedPath.charAt(matchedPath.length - 1) !== '/') { + return null; + } + + // If there is a remaining pathname, treat the path separator as part of + // the remaining pathname for properly continuing the match. + remainingPathname = '/' + remainingPathname; + } + + return { + remainingPathname: remainingPathname, + paramNames: paramNames, + paramValues: match.slice(1).map(function (v) { + return v && decodeURIComponent(v); + }) + }; + } + + function getParamNames(pattern) { + return compilePattern(pattern).paramNames; + } + + function getParams(pattern, pathname) { + var match = matchPattern(pattern, pathname); + if (!match) { + return null; + } + + var paramNames = match.paramNames, + paramValues = match.paramValues; + + var params = {}; + + paramNames.forEach(function (paramName, index) { + params[paramName] = paramValues[index]; + }); + + return params; + } + + /** + * Returns a version of the given pattern with params interpolated. Throws + * if there is a dynamic segment of the pattern for which there is no param. + */ + function formatPattern(pattern, params) { + params = params || {}; + + var _compilePattern3 = compilePattern(pattern), + tokens = _compilePattern3.tokens; + + var parenCount = 0, + pathname = '', + splatIndex = 0, + parenHistory = []; + + var token = void 0, + paramName = void 0, + paramValue = void 0; + for (var i = 0, len = tokens.length; i < len; ++i) { + token = tokens[i]; + + if (token === '*' || token === '**') { + paramValue = Array.isArray(params.splat) ? params.splat[splatIndex++] : params.splat; + + !(paramValue != null || parenCount > 0) ? process.env.NODE_ENV !== 'production' ? (0, _invariant2.default)(false, 'Missing splat #%s for path "%s"', splatIndex, pattern) : (0, _invariant2.default)(false) : void 0; + + if (paramValue != null) pathname += encodeURI(paramValue); + } else if (token === '(') { + parenHistory[parenCount] = ''; + parenCount += 1; + } else if (token === ')') { + var parenText = parenHistory.pop(); + parenCount -= 1; + + if (parenCount) parenHistory[parenCount - 1] += parenText;else pathname += parenText; + } else if (token === '\\(') { + pathname += '('; + } else if (token === '\\)') { + pathname += ')'; + } else if (token.charAt(0) === ':') { + paramName = token.substring(1); + paramValue = params[paramName]; + + !(paramValue != null || parenCount > 0) ? process.env.NODE_ENV !== 'production' ? (0, _invariant2.default)(false, 'Missing "%s" parameter for path "%s"', paramName, pattern) : (0, _invariant2.default)(false) : void 0; + + if (paramValue == null) { + if (parenCount) { + parenHistory[parenCount - 1] = ''; + + var curTokenIdx = tokens.indexOf(token); + var tokensSubset = tokens.slice(curTokenIdx, tokens.length); + var nextParenIdx = -1; + + for (var _i = 0; _i < tokensSubset.length; _i++) { + if (tokensSubset[_i] == ')') { + nextParenIdx = _i; + break; + } + } + + !(nextParenIdx > 0) ? process.env.NODE_ENV !== 'production' ? (0, _invariant2.default)(false, 'Path "%s" is missing end paren at segment "%s"', pattern, tokensSubset.join('')) : (0, _invariant2.default)(false) : void 0; + + // jump to ending paren + i = curTokenIdx + nextParenIdx - 1; + } + } else if (parenCount) parenHistory[parenCount - 1] += encodeURIComponent(paramValue);else pathname += encodeURIComponent(paramValue); + } else { + if (parenCount) parenHistory[parenCount - 1] += token;else pathname += token; + } + } + + !(parenCount <= 0) ? process.env.NODE_ENV !== 'production' ? (0, _invariant2.default)(false, 'Path "%s" is missing end paren', pattern) : (0, _invariant2.default)(false) : void 0; + + return pathname.replace(/\/+/g, '/'); + } + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) + +/***/ }), +/* 51 */ +/***/ (function(module, exports, __webpack_require__) { + + /* WEBPACK VAR INJECTION */(function(process) {/** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + + 'use strict'; + + /** + * Use invariant() to assert state which your program assumes to be true. + * + * Provide sprintf-style format (only %s is supported) and arguments + * to provide information about what broke and what you were + * expecting. + * + * The invariant message will be stripped in production, but the invariant + * will remain to ensure logic does not differ in production. + */ + + var invariant = function(condition, format, a, b, c, d, e, f) { + if (process.env.NODE_ENV !== 'production') { + if (format === undefined) { + throw new Error('invariant requires an error message argument'); + } + } + + if (!condition) { + var error; + if (format === undefined) { + error = new Error( + 'Minified exception occurred; use the non-minified dev environment ' + + 'for the full error message and additional helpful warnings.' + ); + } else { + var args = [a, b, c, d, e, f]; + var argIndex = 0; + error = new Error( + format.replace(/%s/g, function() { return args[argIndex++]; }) + ); + error.name = 'Invariant Violation'; + } + + error.framesToPop = 1; // we don't care about invariant's own frame + throw error; + } + }; + + module.exports = invariant; + + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) + +/***/ }), +/* 52 */ +/***/ (function(module, exports, __webpack_require__) { + + /* WEBPACK VAR INJECTION */(function(process) {'use strict'; + + exports.__esModule = true; + + var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + + var _invariant = __webpack_require__(51); + + var _invariant2 = _interopRequireDefault(_invariant); + + var _react = __webpack_require__(7); + + var _react2 = _interopRequireDefault(_react); + + var _createReactClass = __webpack_require__(53); + + var _createReactClass2 = _interopRequireDefault(_createReactClass); + + var _propTypes = __webpack_require__(42); + + var _createTransitionManager2 = __webpack_require__(56); + + var _createTransitionManager3 = _interopRequireDefault(_createTransitionManager2); + + var _InternalPropTypes = __webpack_require__(66); + + var _RouterContext = __webpack_require__(67); + + var _RouterContext2 = _interopRequireDefault(_RouterContext); + + var _RouteUtils = __webpack_require__(40); + + var _RouterUtils = __webpack_require__(70); + + var _routerWarning = __webpack_require__(57); + + var _routerWarning2 = _interopRequireDefault(_routerWarning); + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } + + var propTypes = { + history: _propTypes.object, + children: _InternalPropTypes.routes, + routes: _InternalPropTypes.routes, // alias for children + render: _propTypes.func, + createElement: _propTypes.func, + onError: _propTypes.func, + onUpdate: _propTypes.func, + + // PRIVATE: For client-side rehydration of server match. + matchContext: _propTypes.object + + /** + * A is a high-level API for automatically setting up + * a router that renders a with all the props + * it needs each time the URL changes. + */ + };var Router = (0, _createReactClass2.default)({ + displayName: 'Router', + + propTypes: propTypes, + + getDefaultProps: function getDefaultProps() { + return { + render: function render(props) { + return _react2.default.createElement(_RouterContext2.default, props); + } + }; + }, + getInitialState: function getInitialState() { + return { + location: null, + routes: null, + params: null, + components: null + }; + }, + handleError: function handleError(error) { + if (this.props.onError) { + this.props.onError.call(this, error); + } else { + // Throw errors by default so we don't silently swallow them! + throw error; // This error probably occurred in getChildRoutes or getComponents. + } + }, + createRouterObject: function createRouterObject(state) { + var matchContext = this.props.matchContext; + + if (matchContext) { + return matchContext.router; + } + + var history = this.props.history; + + return (0, _RouterUtils.createRouterObject)(history, this.transitionManager, state); + }, + createTransitionManager: function createTransitionManager() { + var matchContext = this.props.matchContext; + + if (matchContext) { + return matchContext.transitionManager; + } + + var history = this.props.history; + var _props = this.props, + routes = _props.routes, + children = _props.children; + + + !history.getCurrentLocation ? process.env.NODE_ENV !== 'production' ? (0, _invariant2.default)(false, 'You have provided a history object created with history v4.x or v2.x ' + 'and earlier. This version of React Router is only compatible with v3 ' + 'history objects. Please change to history v3.x.') : (0, _invariant2.default)(false) : void 0; + + return (0, _createTransitionManager3.default)(history, (0, _RouteUtils.createRoutes)(routes || children)); + }, + componentWillMount: function componentWillMount() { + var _this = this; + this.transitionManager = this.createTransitionManager(); + this.router = this.createRouterObject(this.state); - propTypes: { - history: object, - children: _InternalPropTypes.routes, - routes: _InternalPropTypes.routes, // alias for children - render: func, - createElement: func, - onError: func, - onUpdate: func, - - // PRIVATE: For client-side rehydration of server match. - matchContext: object + this._unlisten = this.transitionManager.listen(function (error, state) { + if (error) { + _this.handleError(error); + } else { + // Keep the identity of this.router because of a caveat in ContextUtils: + // they only work if the object identity is preserved. + (0, _RouterUtils.assignRouterState)(_this.router, state); + _this.setState(state, _this.props.onUpdate); + } + }); }, - getDefaultProps: function getDefaultProps() { - return { - render: function render(props) { - return _react2.default.createElement(_RouterContext2.default, props); + + /* istanbul ignore next: sanity check */ + componentWillReceiveProps: function componentWillReceiveProps(nextProps) { + process.env.NODE_ENV !== 'production' ? (0, _routerWarning2.default)(nextProps.history === this.props.history, 'You cannot change ; it will be ignored') : void 0; + + process.env.NODE_ENV !== 'production' ? (0, _routerWarning2.default)((nextProps.routes || nextProps.children) === (this.props.routes || this.props.children), 'You cannot change ; it will be ignored') : void 0; + }, + componentWillUnmount: function componentWillUnmount() { + if (this._unlisten) this._unlisten(); + }, + render: function render() { + var _state = this.state, + location = _state.location, + routes = _state.routes, + params = _state.params, + components = _state.components; + + var _props2 = this.props, + createElement = _props2.createElement, + render = _props2.render, + props = _objectWithoutProperties(_props2, ['createElement', 'render']); + + if (location == null) return null; // Async match + + // Only forward non-Router-specific props to routing context, as those are + // the only ones that might be custom routing context props. + Object.keys(propTypes).forEach(function (propType) { + return delete props[propType]; + }); + + return render(_extends({}, props, { + router: this.router, + location: location, + routes: routes, + params: params, + components: components, + createElement: createElement + })); + } + }); + + exports.default = Router; + module.exports = exports['default']; + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) + +/***/ }), +/* 53 */ +/***/ (function(module, exports, __webpack_require__) { + + /** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + */ + + 'use strict'; + + var React = __webpack_require__(7); + var factory = __webpack_require__(54); + + if (typeof React === 'undefined') { + throw Error( + 'create-react-class could not find the React object. If you are using script tags, ' + + 'make sure that React is being loaded before create-react-class.' + ); + } + + // Hack to grab NoopUpdateQueue from isomorphic React + var ReactNoopUpdateQueue = new React.Component().updater; + + module.exports = factory( + React.Component, + React.isValidElement, + ReactNoopUpdateQueue + ); + + +/***/ }), +/* 54 */ +/***/ (function(module, exports, __webpack_require__) { + + /* WEBPACK VAR INJECTION */(function(process) {/** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + */ + + 'use strict'; + + var _assign = __webpack_require__(46); + + var emptyObject = __webpack_require__(55); + var _invariant = __webpack_require__(36); + + if (process.env.NODE_ENV !== 'production') { + var warning = __webpack_require__(45); + } + + var MIXINS_KEY = 'mixins'; + + // Helper function to allow the creation of anonymous functions which do not + // have .name set to the name of the variable being assigned to. + function identity(fn) { + return fn; + } + + var ReactPropTypeLocationNames; + if (process.env.NODE_ENV !== 'production') { + ReactPropTypeLocationNames = { + prop: 'prop', + context: 'context', + childContext: 'child context' + }; + } else { + ReactPropTypeLocationNames = {}; + } + + function factory(ReactComponent, isValidElement, ReactNoopUpdateQueue) { + /** + * Policies that describe methods in `ReactClassInterface`. + */ + + var injectedMixins = []; + + /** + * Composite components are higher-level components that compose other composite + * or host components. + * + * To create a new type of `ReactClass`, pass a specification of + * your new class to `React.createClass`. The only requirement of your class + * specification is that you implement a `render` method. + * + * var MyComponent = React.createClass({ + * render: function() { + * return
Hello World
; + * } + * }); + * + * The class specification supports a specific protocol of methods that have + * special meaning (e.g. `render`). See `ReactClassInterface` for + * more the comprehensive protocol. Any other properties and methods in the + * class specification will be available on the prototype. + * + * @interface ReactClassInterface + * @internal + */ + var ReactClassInterface = { + /** + * An array of Mixin objects to include when defining your component. + * + * @type {array} + * @optional + */ + mixins: 'DEFINE_MANY', + + /** + * An object containing properties and methods that should be defined on + * the component's constructor instead of its prototype (static methods). + * + * @type {object} + * @optional + */ + statics: 'DEFINE_MANY', + + /** + * Definition of prop types for this component. + * + * @type {object} + * @optional + */ + propTypes: 'DEFINE_MANY', + + /** + * Definition of context types for this component. + * + * @type {object} + * @optional + */ + contextTypes: 'DEFINE_MANY', + + /** + * Definition of context types this component sets for its children. + * + * @type {object} + * @optional + */ + childContextTypes: 'DEFINE_MANY', + + // ==== Definition methods ==== + + /** + * Invoked when the component is mounted. Values in the mapping will be set on + * `this.props` if that prop is not specified (i.e. using an `in` check). + * + * This method is invoked before `getInitialState` and therefore cannot rely + * on `this.state` or use `this.setState`. + * + * @return {object} + * @optional + */ + getDefaultProps: 'DEFINE_MANY_MERGED', + + /** + * Invoked once before the component is mounted. The return value will be used + * as the initial value of `this.state`. + * + * getInitialState: function() { + * return { + * isOn: false, + * fooBaz: new BazFoo() + * } + * } + * + * @return {object} + * @optional + */ + getInitialState: 'DEFINE_MANY_MERGED', + + /** + * @return {object} + * @optional + */ + getChildContext: 'DEFINE_MANY_MERGED', + + /** + * Uses props from `this.props` and state from `this.state` to render the + * structure of the component. + * + * No guarantees are made about when or how often this method is invoked, so + * it must not have side effects. + * + * render: function() { + * var name = this.props.name; + * return
Hello, {name}!
; + * } + * + * @return {ReactComponent} + * @required + */ + render: 'DEFINE_ONCE', + + // ==== Delegate methods ==== + + /** + * Invoked when the component is initially created and about to be mounted. + * This may have side effects, but any external subscriptions or data created + * by this method must be cleaned up in `componentWillUnmount`. + * + * @optional + */ + componentWillMount: 'DEFINE_MANY', + + /** + * Invoked when the component has been mounted and has a DOM representation. + * However, there is no guarantee that the DOM node is in the document. + * + * Use this as an opportunity to operate on the DOM when the component has + * been mounted (initialized and rendered) for the first time. + * + * @param {DOMElement} rootNode DOM element representing the component. + * @optional + */ + componentDidMount: 'DEFINE_MANY', + + /** + * Invoked before the component receives new props. + * + * Use this as an opportunity to react to a prop transition by updating the + * state using `this.setState`. Current props are accessed via `this.props`. + * + * componentWillReceiveProps: function(nextProps, nextContext) { + * this.setState({ + * likesIncreasing: nextProps.likeCount > this.props.likeCount + * }); + * } + * + * NOTE: There is no equivalent `componentWillReceiveState`. An incoming prop + * transition may cause a state change, but the opposite is not true. If you + * need it, you are probably looking for `componentWillUpdate`. + * + * @param {object} nextProps + * @optional + */ + componentWillReceiveProps: 'DEFINE_MANY', + + /** + * Invoked while deciding if the component should be updated as a result of + * receiving new props, state and/or context. + * + * Use this as an opportunity to `return false` when you're certain that the + * transition to the new props/state/context will not require a component + * update. + * + * shouldComponentUpdate: function(nextProps, nextState, nextContext) { + * return !equal(nextProps, this.props) || + * !equal(nextState, this.state) || + * !equal(nextContext, this.context); + * } + * + * @param {object} nextProps + * @param {?object} nextState + * @param {?object} nextContext + * @return {boolean} True if the component should update. + * @optional + */ + shouldComponentUpdate: 'DEFINE_ONCE', + + /** + * Invoked when the component is about to update due to a transition from + * `this.props`, `this.state` and `this.context` to `nextProps`, `nextState` + * and `nextContext`. + * + * Use this as an opportunity to perform preparation before an update occurs. + * + * NOTE: You **cannot** use `this.setState()` in this method. + * + * @param {object} nextProps + * @param {?object} nextState + * @param {?object} nextContext + * @param {ReactReconcileTransaction} transaction + * @optional + */ + componentWillUpdate: 'DEFINE_MANY', + + /** + * Invoked when the component's DOM representation has been updated. + * + * Use this as an opportunity to operate on the DOM when the component has + * been updated. + * + * @param {object} prevProps + * @param {?object} prevState + * @param {?object} prevContext + * @param {DOMElement} rootNode DOM element representing the component. + * @optional + */ + componentDidUpdate: 'DEFINE_MANY', + + /** + * Invoked when the component is about to be removed from its parent and have + * its DOM representation destroyed. + * + * Use this as an opportunity to deallocate any external resources. + * + * NOTE: There is no `componentDidUnmount` since your component will have been + * destroyed by that point. + * + * @optional + */ + componentWillUnmount: 'DEFINE_MANY', + + /** + * Replacement for (deprecated) `componentWillMount`. + * + * @optional + */ + UNSAFE_componentWillMount: 'DEFINE_MANY', + + /** + * Replacement for (deprecated) `componentWillReceiveProps`. + * + * @optional + */ + UNSAFE_componentWillReceiveProps: 'DEFINE_MANY', + + /** + * Replacement for (deprecated) `componentWillUpdate`. + * + * @optional + */ + UNSAFE_componentWillUpdate: 'DEFINE_MANY', + + // ==== Advanced methods ==== + + /** + * Updates the component's currently mounted DOM representation. + * + * By default, this implements React's rendering and reconciliation algorithm. + * Sophisticated clients may wish to override this. + * + * @param {ReactReconcileTransaction} transaction + * @internal + * @overridable + */ + updateComponent: 'OVERRIDE_BASE' + }; + + /** + * Similar to ReactClassInterface but for static methods. + */ + var ReactClassStaticInterface = { + /** + * This method is invoked after a component is instantiated and when it + * receives new props. Return an object to update state in response to + * prop changes. Return null to indicate no change to state. + * + * If an object is returned, its keys will be merged into the existing state. + * + * @return {object || null} + * @optional + */ + getDerivedStateFromProps: 'DEFINE_MANY_MERGED' + }; + + /** + * Mapping from class specification keys to special processing functions. + * + * Although these are declared like instance properties in the specification + * when defining classes using `React.createClass`, they are actually static + * and are accessible on the constructor instead of the prototype. Despite + * being static, they must be defined outside of the "statics" key under + * which all other static methods are defined. + */ + var RESERVED_SPEC_KEYS = { + displayName: function(Constructor, displayName) { + Constructor.displayName = displayName; + }, + mixins: function(Constructor, mixins) { + if (mixins) { + for (var i = 0; i < mixins.length; i++) { + mixSpecIntoComponent(Constructor, mixins[i]); + } + } + }, + childContextTypes: function(Constructor, childContextTypes) { + if (process.env.NODE_ENV !== 'production') { + validateTypeDef(Constructor, childContextTypes, 'childContext'); + } + Constructor.childContextTypes = _assign( + {}, + Constructor.childContextTypes, + childContextTypes + ); + }, + contextTypes: function(Constructor, contextTypes) { + if (process.env.NODE_ENV !== 'production') { + validateTypeDef(Constructor, contextTypes, 'context'); + } + Constructor.contextTypes = _assign( + {}, + Constructor.contextTypes, + contextTypes + ); + }, + /** + * Special case getDefaultProps which should move into statics but requires + * automatic merging. + */ + getDefaultProps: function(Constructor, getDefaultProps) { + if (Constructor.getDefaultProps) { + Constructor.getDefaultProps = createMergedResultFunction( + Constructor.getDefaultProps, + getDefaultProps + ); + } else { + Constructor.getDefaultProps = getDefaultProps; + } + }, + propTypes: function(Constructor, propTypes) { + if (process.env.NODE_ENV !== 'production') { + validateTypeDef(Constructor, propTypes, 'prop'); + } + Constructor.propTypes = _assign({}, Constructor.propTypes, propTypes); + }, + statics: function(Constructor, statics) { + mixStaticSpecIntoComponent(Constructor, statics); + }, + autobind: function() {} + }; + + function validateTypeDef(Constructor, typeDef, location) { + for (var propName in typeDef) { + if (typeDef.hasOwnProperty(propName)) { + // use a warning instead of an _invariant so components + // don't show up in prod but only in __DEV__ + if (process.env.NODE_ENV !== 'production') { + warning( + typeof typeDef[propName] === 'function', + '%s: %s type `%s` is invalid; it must be a function, usually from ' + + 'React.PropTypes.', + Constructor.displayName || 'ReactClass', + ReactPropTypeLocationNames[location], + propName + ); + } + } + } + } + + function validateMethodOverride(isAlreadyDefined, name) { + var specPolicy = ReactClassInterface.hasOwnProperty(name) + ? ReactClassInterface[name] + : null; + + // Disallow overriding of base class methods unless explicitly allowed. + if (ReactClassMixin.hasOwnProperty(name)) { + _invariant( + specPolicy === 'OVERRIDE_BASE', + 'ReactClassInterface: You are attempting to override ' + + '`%s` from your class specification. Ensure that your method names ' + + 'do not overlap with React methods.', + name + ); + } + + // Disallow defining methods more than once unless explicitly allowed. + if (isAlreadyDefined) { + _invariant( + specPolicy === 'DEFINE_MANY' || specPolicy === 'DEFINE_MANY_MERGED', + 'ReactClassInterface: You are attempting to define ' + + '`%s` on your component more than once. This conflict may be due ' + + 'to a mixin.', + name + ); + } + } + + /** + * Mixin helper which handles policy validation and reserved + * specification keys when building React classes. + */ + function mixSpecIntoComponent(Constructor, spec) { + if (!spec) { + if (process.env.NODE_ENV !== 'production') { + var typeofSpec = typeof spec; + var isMixinValid = typeofSpec === 'object' && spec !== null; + + if (process.env.NODE_ENV !== 'production') { + warning( + isMixinValid, + "%s: You're attempting to include a mixin that is either null " + + 'or not an object. Check the mixins included by the component, ' + + 'as well as any mixins they include themselves. ' + + 'Expected object but got %s.', + Constructor.displayName || 'ReactClass', + spec === null ? null : typeofSpec + ); + } + } + + return; + } + + _invariant( + typeof spec !== 'function', + "ReactClass: You're attempting to " + + 'use a component class or function as a mixin. Instead, just use a ' + + 'regular object.' + ); + _invariant( + !isValidElement(spec), + "ReactClass: You're attempting to " + + 'use a component as a mixin. Instead, just use a regular object.' + ); + + var proto = Constructor.prototype; + var autoBindPairs = proto.__reactAutoBindPairs; + + // By handling mixins before any other properties, we ensure the same + // chaining order is applied to methods with DEFINE_MANY policy, whether + // mixins are listed before or after these methods in the spec. + if (spec.hasOwnProperty(MIXINS_KEY)) { + RESERVED_SPEC_KEYS.mixins(Constructor, spec.mixins); + } + + for (var name in spec) { + if (!spec.hasOwnProperty(name)) { + continue; + } + + if (name === MIXINS_KEY) { + // We have already handled mixins in a special case above. + continue; + } + + var property = spec[name]; + var isAlreadyDefined = proto.hasOwnProperty(name); + validateMethodOverride(isAlreadyDefined, name); + + if (RESERVED_SPEC_KEYS.hasOwnProperty(name)) { + RESERVED_SPEC_KEYS[name](Constructor, property); + } else { + // Setup methods on prototype: + // The following member methods should not be automatically bound: + // 1. Expected ReactClass methods (in the "interface"). + // 2. Overridden methods (that were mixed in). + var isReactClassMethod = ReactClassInterface.hasOwnProperty(name); + var isFunction = typeof property === 'function'; + var shouldAutoBind = + isFunction && + !isReactClassMethod && + !isAlreadyDefined && + spec.autobind !== false; + + if (shouldAutoBind) { + autoBindPairs.push(name, property); + proto[name] = property; + } else { + if (isAlreadyDefined) { + var specPolicy = ReactClassInterface[name]; + + // These cases should already be caught by validateMethodOverride. + _invariant( + isReactClassMethod && + (specPolicy === 'DEFINE_MANY_MERGED' || + specPolicy === 'DEFINE_MANY'), + 'ReactClass: Unexpected spec policy %s for key %s ' + + 'when mixing in component specs.', + specPolicy, + name + ); + + // For methods which are defined more than once, call the existing + // methods before calling the new property, merging if appropriate. + if (specPolicy === 'DEFINE_MANY_MERGED') { + proto[name] = createMergedResultFunction(proto[name], property); + } else if (specPolicy === 'DEFINE_MANY') { + proto[name] = createChainedFunction(proto[name], property); + } + } else { + proto[name] = property; + if (process.env.NODE_ENV !== 'production') { + // Add verbose displayName to the function, which helps when looking + // at profiling tools. + if (typeof property === 'function' && spec.displayName) { + proto[name].displayName = spec.displayName + '_' + name; + } + } + } + } + } + } + } + + function mixStaticSpecIntoComponent(Constructor, statics) { + if (!statics) { + return; + } + + for (var name in statics) { + var property = statics[name]; + if (!statics.hasOwnProperty(name)) { + continue; + } + + var isReserved = name in RESERVED_SPEC_KEYS; + _invariant( + !isReserved, + 'ReactClass: You are attempting to define a reserved ' + + 'property, `%s`, that shouldn\'t be on the "statics" key. Define it ' + + 'as an instance property instead; it will still be accessible on the ' + + 'constructor.', + name + ); + + var isAlreadyDefined = name in Constructor; + if (isAlreadyDefined) { + var specPolicy = ReactClassStaticInterface.hasOwnProperty(name) + ? ReactClassStaticInterface[name] + : null; + + _invariant( + specPolicy === 'DEFINE_MANY_MERGED', + 'ReactClass: You are attempting to define ' + + '`%s` on your component more than once. This conflict may be ' + + 'due to a mixin.', + name + ); + + Constructor[name] = createMergedResultFunction(Constructor[name], property); + + return; + } + + Constructor[name] = property; + } + } + + /** + * Merge two objects, but throw if both contain the same key. + * + * @param {object} one The first object, which is mutated. + * @param {object} two The second object + * @return {object} one after it has been mutated to contain everything in two. + */ + function mergeIntoWithNoDuplicateKeys(one, two) { + _invariant( + one && two && typeof one === 'object' && typeof two === 'object', + 'mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.' + ); + + for (var key in two) { + if (two.hasOwnProperty(key)) { + _invariant( + one[key] === undefined, + 'mergeIntoWithNoDuplicateKeys(): ' + + 'Tried to merge two objects with the same key: `%s`. This conflict ' + + 'may be due to a mixin; in particular, this may be caused by two ' + + 'getInitialState() or getDefaultProps() methods returning objects ' + + 'with clashing keys.', + key + ); + one[key] = two[key]; } + } + return one; + } + + /** + * Creates a function that invokes two functions and merges their return values. + * + * @param {function} one Function to invoke first. + * @param {function} two Function to invoke second. + * @return {function} Function that invokes the two argument functions. + * @private + */ + function createMergedResultFunction(one, two) { + return function mergedResult() { + var a = one.apply(this, arguments); + var b = two.apply(this, arguments); + if (a == null) { + return b; + } else if (b == null) { + return a; + } + var c = {}; + mergeIntoWithNoDuplicateKeys(c, a); + mergeIntoWithNoDuplicateKeys(c, b); + return c; }; - }, - getInitialState: function getInitialState() { - return { - location: null, - routes: null, - params: null, - components: null + } + + /** + * Creates a function that invokes two functions and ignores their return vales. + * + * @param {function} one Function to invoke first. + * @param {function} two Function to invoke second. + * @return {function} Function that invokes the two argument functions. + * @private + */ + function createChainedFunction(one, two) { + return function chainedFunction() { + one.apply(this, arguments); + two.apply(this, arguments); }; - }, - handleError: function handleError(error) { - if (this.props.onError) { - this.props.onError.call(this, error); - } else { - // Throw errors by default so we don't silently swallow them! - throw error; // This error probably occurred in getChildRoutes or getComponents. + } + + /** + * Binds a method to the component. + * + * @param {object} component Component whose method is going to be bound. + * @param {function} method Method to be bound. + * @return {function} The bound method. + */ + function bindAutoBindMethod(component, method) { + var boundMethod = method.bind(component); + if (process.env.NODE_ENV !== 'production') { + boundMethod.__reactBoundContext = component; + boundMethod.__reactBoundMethod = method; + boundMethod.__reactBoundArguments = null; + var componentName = component.constructor.displayName; + var _bind = boundMethod.bind; + boundMethod.bind = function(newThis) { + for ( + var _len = arguments.length, + args = Array(_len > 1 ? _len - 1 : 0), + _key = 1; + _key < _len; + _key++ + ) { + args[_key - 1] = arguments[_key]; + } + + // User is trying to bind() an autobound method; we effectively will + // ignore the value of "this" that the user is trying to use, so + // let's warn. + if (newThis !== component && newThis !== null) { + if (process.env.NODE_ENV !== 'production') { + warning( + false, + 'bind(): React component methods may only be bound to the ' + + 'component instance. See %s', + componentName + ); + } + } else if (!args.length) { + if (process.env.NODE_ENV !== 'production') { + warning( + false, + 'bind(): You are binding a component method to the component. ' + + 'React does this for you automatically in a high-performance ' + + 'way, so you can safely remove this call. See %s', + componentName + ); + } + return boundMethod; + } + var reboundMethod = _bind.apply(boundMethod, arguments); + reboundMethod.__reactBoundContext = component; + reboundMethod.__reactBoundMethod = method; + reboundMethod.__reactBoundArguments = args; + return reboundMethod; + }; } - }, - createRouterObject: function createRouterObject(state) { - var matchContext = this.props.matchContext; + return boundMethod; + } - if (matchContext) { - return matchContext.router; + /** + * Binds all auto-bound methods in a component. + * + * @param {object} component Component whose method is going to be bound. + */ + function bindAutoBindMethods(component) { + var pairs = component.__reactAutoBindPairs; + for (var i = 0; i < pairs.length; i += 2) { + var autoBindKey = pairs[i]; + var method = pairs[i + 1]; + component[autoBindKey] = bindAutoBindMethod(component, method); } + } - var history = this.props.history; + var IsMountedPreMixin = { + componentDidMount: function() { + this.__isMounted = true; + } + }; + + var IsMountedPostMixin = { + componentWillUnmount: function() { + this.__isMounted = false; + } + }; - return (0, _RouterUtils.createRouterObject)(history, this.transitionManager, state); - }, - createTransitionManager: function createTransitionManager() { - var matchContext = this.props.matchContext; + /** + * Add more to the ReactClass base class. These are all legacy features and + * therefore not already part of the modern ReactComponent. + */ + var ReactClassMixin = { + /** + * TODO: This will be deprecated because state should always keep a consistent + * type signature and the only use case for this, is to avoid that. + */ + replaceState: function(newState, callback) { + this.updater.enqueueReplaceState(this, newState, callback); + }, - if (matchContext) { - return matchContext.transitionManager; + /** + * Checks whether or not this composite component is mounted. + * @return {boolean} True if mounted, false otherwise. + * @protected + * @final + */ + isMounted: function() { + if (process.env.NODE_ENV !== 'production') { + warning( + this.__didWarnIsMounted, + '%s: isMounted is deprecated. Instead, make sure to clean up ' + + 'subscriptions and pending requests in componentWillUnmount to ' + + 'prevent memory leaks.', + (this.constructor && this.constructor.displayName) || + this.name || + 'Component' + ); + this.__didWarnIsMounted = true; + } + return !!this.__isMounted; } + }; - var history = this.props.history; - var _props = this.props, - routes = _props.routes, - children = _props.children; + var ReactClassComponent = function() {}; + _assign( + ReactClassComponent.prototype, + ReactComponent.prototype, + ReactClassMixin + ); + /** + * Creates a composite component class given a class specification. + * See https://facebook.github.io/react/docs/top-level-api.html#react.createclass + * + * @param {object} spec Class specification (which must define `render`). + * @return {function} Component constructor function. + * @public + */ + function createClass(spec) { + // To keep our warnings more understandable, we'll use a little hack here to + // ensure that Constructor.name !== 'Constructor'. This makes sure we don't + // unnecessarily identify a class without displayName as 'Constructor'. + var Constructor = identity(function(props, context, updater) { + // This constructor gets overridden by mocks. The argument is used + // by mocks to assert on what gets mounted. + + if (process.env.NODE_ENV !== 'production') { + warning( + this instanceof Constructor, + 'Something is calling a React component directly. Use a factory or ' + + 'JSX instead. See: https://fb.me/react-legacyfactory' + ); + } - !history.getCurrentLocation ? process.env.NODE_ENV !== 'production' ? (0, _invariant2.default)(false, 'You have provided a history object created with history v4.x or v2.x ' + 'and earlier. This version of React Router is only compatible with v3 ' + 'history objects. Please change to history v3.x.') : (0, _invariant2.default)(false) : void 0; + // Wire up auto-binding + if (this.__reactAutoBindPairs.length) { + bindAutoBindMethods(this); + } - return (0, _createTransitionManager3.default)(history, (0, _RouteUtils.createRoutes)(routes || children)); - }, - componentWillMount: function componentWillMount() { - var _this = this; + this.props = props; + this.context = context; + this.refs = emptyObject; + this.updater = updater || ReactNoopUpdateQueue; - this.transitionManager = this.createTransitionManager(); - this.router = this.createRouterObject(this.state); + this.state = null; - this._unlisten = this.transitionManager.listen(function (error, state) { - if (error) { - _this.handleError(error); - } else { - // Keep the identity of this.router because of a caveat in ContextUtils: - // they only work if the object identity is preserved. - (0, _RouterUtils.assignRouterState)(_this.router, state); - _this.setState(state, _this.props.onUpdate); + // ReactClasses doesn't have constructors. Instead, they use the + // getInitialState and componentWillMount methods for initialization. + + var initialState = this.getInitialState ? this.getInitialState() : null; + if (process.env.NODE_ENV !== 'production') { + // We allow auto-mocks to proceed as if they're returning null. + if ( + initialState === undefined && + this.getInitialState._isMockFunction + ) { + // This is probably bad practice. Consider warning here and + // deprecating this convenience. + initialState = null; + } } + _invariant( + typeof initialState === 'object' && !Array.isArray(initialState), + '%s.getInitialState(): must return an object or null', + Constructor.displayName || 'ReactCompositeComponent' + ); + + this.state = initialState; }); - }, + Constructor.prototype = new ReactClassComponent(); + Constructor.prototype.constructor = Constructor; + Constructor.prototype.__reactAutoBindPairs = []; + injectedMixins.forEach(mixSpecIntoComponent.bind(null, Constructor)); - /* istanbul ignore next: sanity check */ - componentWillReceiveProps: function componentWillReceiveProps(nextProps) { - process.env.NODE_ENV !== 'production' ? (0, _routerWarning2.default)(nextProps.history === this.props.history, 'You cannot change ; it will be ignored') : void 0; + mixSpecIntoComponent(Constructor, IsMountedPreMixin); + mixSpecIntoComponent(Constructor, spec); + mixSpecIntoComponent(Constructor, IsMountedPostMixin); - process.env.NODE_ENV !== 'production' ? (0, _routerWarning2.default)((nextProps.routes || nextProps.children) === (this.props.routes || this.props.children), 'You cannot change ; it will be ignored') : void 0; - }, - componentWillUnmount: function componentWillUnmount() { - if (this._unlisten) this._unlisten(); - }, - render: function render() { - var _state = this.state, - location = _state.location, - routes = _state.routes, - params = _state.params, - components = _state.components; + // Initialize the defaultProps property after all mixins have been merged. + if (Constructor.getDefaultProps) { + Constructor.defaultProps = Constructor.getDefaultProps(); + } - var _props2 = this.props, - createElement = _props2.createElement, - render = _props2.render, - props = _objectWithoutProperties(_props2, ['createElement', 'render']); + if (process.env.NODE_ENV !== 'production') { + // This is a tag to indicate that the use of these method names is ok, + // since it's used with createClass. If it's not, then it's likely a + // mistake so we'll warn you to use the static property, property + // initializer or constructor respectively. + if (Constructor.getDefaultProps) { + Constructor.getDefaultProps.isReactClassApproved = {}; + } + if (Constructor.prototype.getInitialState) { + Constructor.prototype.getInitialState.isReactClassApproved = {}; + } + } - if (location == null) return null; // Async match + _invariant( + Constructor.prototype.render, + 'createClass(...): Class specification must implement a `render` method.' + ); - // Only forward non-Router-specific props to routing context, as those are - // the only ones that might be custom routing context props. - Object.keys(Router.propTypes).forEach(function (propType) { - return delete props[propType]; - }); + if (process.env.NODE_ENV !== 'production') { + warning( + !Constructor.prototype.componentShouldUpdate, + '%s has a method called ' + + 'componentShouldUpdate(). Did you mean shouldComponentUpdate()? ' + + 'The name is phrased as a question because the function is ' + + 'expected to return a value.', + spec.displayName || 'A component' + ); + warning( + !Constructor.prototype.componentWillRecieveProps, + '%s has a method called ' + + 'componentWillRecieveProps(). Did you mean componentWillReceiveProps()?', + spec.displayName || 'A component' + ); + warning( + !Constructor.prototype.UNSAFE_componentWillRecieveProps, + '%s has a method called UNSAFE_componentWillRecieveProps(). ' + + 'Did you mean UNSAFE_componentWillReceiveProps()?', + spec.displayName || 'A component' + ); + } - return render(_extends({}, props, { - router: this.router, - location: location, - routes: routes, - params: params, - components: components, - createElement: createElement - })); + // Reduce time spent doing lookups by setting these on the prototype. + for (var methodName in ReactClassInterface) { + if (!Constructor.prototype[methodName]) { + Constructor.prototype[methodName] = null; + } + } + + return Constructor; } - }); - exports.default = Router; - module.exports = exports['default']; + return createClass; + } + + module.exports = factory; + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 45 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 55 */ +/***/ (function(module, exports, __webpack_require__) { + + /* WEBPACK VAR INJECTION */(function(process) {/** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + */ + + 'use strict'; + + var emptyObject = {}; + + if (process.env.NODE_ENV !== 'production') { + Object.freeze(emptyObject); + } + + module.exports = emptyObject; + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) + +/***/ }), +/* 56 */ +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {'use strict'; @@ -5898,25 +7822,27 @@ module.exports = exports.default = createTransitionManager; - var _routerWarning = __webpack_require__(46); + var _routerWarning = __webpack_require__(57); var _routerWarning2 = _interopRequireDefault(_routerWarning); - var _computeChangedRoutes2 = __webpack_require__(48); + var _computeChangedRoutes2 = __webpack_require__(59); var _computeChangedRoutes3 = _interopRequireDefault(_computeChangedRoutes2); - var _TransitionUtils = __webpack_require__(49); + var _TransitionUtils = __webpack_require__(60); - var _isActive2 = __webpack_require__(51); + var _TransitionUtils2 = _interopRequireDefault(_TransitionUtils); + + var _isActive2 = __webpack_require__(62); var _isActive3 = _interopRequireDefault(_isActive2); - var _getComponents = __webpack_require__(52); + var _getComponents = __webpack_require__(63); var _getComponents2 = _interopRequireDefault(_getComponents); - var _matchRoutes = __webpack_require__(54); + var _matchRoutes = __webpack_require__(65); var _matchRoutes2 = _interopRequireDefault(_matchRoutes); @@ -5931,8 +7857,15 @@ module.exports = function createTransitionManager(history, routes) { var state = {}; + var _getTransitionUtils = (0, _TransitionUtils2.default)(), + runEnterHooks = _getTransitionUtils.runEnterHooks, + runChangeHooks = _getTransitionUtils.runChangeHooks, + runLeaveHooks = _getTransitionUtils.runLeaveHooks; + // Signature should be (location, indexOnly), but needs to support (path, // query, indexOnly) + + function isActive(location, indexOnly) { location = history.createLocation(location); @@ -5964,7 +7897,7 @@ module.exports = changeRoutes = _computeChangedRoutes.changeRoutes, enterRoutes = _computeChangedRoutes.enterRoutes; - (0, _TransitionUtils.runLeaveHooks)(leaveRoutes, state); + runLeaveHooks(leaveRoutes, state); // Tear down confirmation hooks for left routes leaveRoutes.filter(function (route) { @@ -5972,10 +7905,10 @@ module.exports = }).forEach(removeListenBeforeHooksForRoute); // change and enter hooks are run in series - (0, _TransitionUtils.runChangeHooks)(changeRoutes, state, nextState, function (error, redirectInfo) { + runChangeHooks(changeRoutes, state, nextState, function (error, redirectInfo) { if (error || redirectInfo) return handleErrorOrRedirect(error, redirectInfo); - (0, _TransitionUtils.runEnterHooks)(enterRoutes, nextState, finishEnterHooks); + runEnterHooks(enterRoutes, nextState, finishEnterHooks); }); function finishEnterHooks(error, redirectInfo) { @@ -6167,9 +8100,9 @@ module.exports = module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 46 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 57 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -6177,7 +8110,7 @@ module.exports = exports.default = routerWarning; exports._resetWarned = _resetWarned; - var _warning = __webpack_require__(47); + var _warning = __webpack_require__(58); var _warning2 = _interopRequireDefault(_warning); @@ -6208,9 +8141,9 @@ module.exports = warned = {}; } -/***/ }, -/* 47 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 58 */ +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {/** * Copyright 2014-2015, Facebook, Inc. @@ -6275,15 +8208,15 @@ module.exports = /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 48 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 59 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; exports.__esModule = true; - var _PatternUtils = __webpack_require__(42); + var _PatternUtils = __webpack_require__(50); function routeParamsChanged(route, prevState, nextState) { if (!route.path) return false; @@ -6316,31 +8249,29 @@ module.exports = changeRoutes = void 0, enterRoutes = void 0; if (prevRoutes) { - (function () { - var parentIsLeaving = false; - leaveRoutes = prevRoutes.filter(function (route) { - if (parentIsLeaving) { - return true; - } else { - var isLeaving = nextRoutes.indexOf(route) === -1 || routeParamsChanged(route, prevState, nextState); - if (isLeaving) parentIsLeaving = true; - return isLeaving; - } - }); + var parentIsLeaving = false; + leaveRoutes = prevRoutes.filter(function (route) { + if (parentIsLeaving) { + return true; + } else { + var isLeaving = nextRoutes.indexOf(route) === -1 || routeParamsChanged(route, prevState, nextState); + if (isLeaving) parentIsLeaving = true; + return isLeaving; + } + }); - // onLeave hooks start at the leaf route. - leaveRoutes.reverse(); + // onLeave hooks start at the leaf route. + leaveRoutes.reverse(); - enterRoutes = []; - changeRoutes = []; + enterRoutes = []; + changeRoutes = []; - nextRoutes.forEach(function (route) { - var isNew = prevRoutes.indexOf(route) === -1; - var paramsChanged = leaveRoutes.indexOf(route) !== -1; + nextRoutes.forEach(function (route) { + var isNew = prevRoutes.indexOf(route) === -1; + var paramsChanged = leaveRoutes.indexOf(route) !== -1; - if (isNew || paramsChanged) enterRoutes.push(route);else changeRoutes.push(route); - }); - })(); + if (isNew || paramsChanged) enterRoutes.push(route);else changeRoutes.push(route); + }); } else { leaveRoutes = []; changeRoutes = []; @@ -6357,18 +8288,16 @@ module.exports = exports.default = computeChangedRoutes; module.exports = exports['default']; -/***/ }, -/* 49 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 60 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; exports.__esModule = true; - exports.runEnterHooks = runEnterHooks; - exports.runChangeHooks = runChangeHooks; - exports.runLeaveHooks = runLeaveHooks; + exports.default = getTransitionUtils; - var _AsyncUtils = __webpack_require__(50); + var _AsyncUtils = __webpack_require__(61); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } @@ -6398,128 +8327,137 @@ module.exports = }; }; - var enterHooks = new PendingHooks(); - var changeHooks = new PendingHooks(); - - function createTransitionHook(hook, route, asyncArity, pendingHooks) { - var isSync = hook.length < asyncArity; - - var transitionHook = function transitionHook() { - for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } + function getTransitionUtils() { + var enterHooks = new PendingHooks(); + var changeHooks = new PendingHooks(); - hook.apply(route, args); + function createTransitionHook(hook, route, asyncArity, pendingHooks) { + var isSync = hook.length < asyncArity; - if (isSync) { - var callback = args[args.length - 1]; - // Assume hook executes synchronously and - // automatically call the callback. - callback(); - } - }; + var transitionHook = function transitionHook() { + for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } - pendingHooks.add(transitionHook); + hook.apply(route, args); - return transitionHook; - } + if (isSync) { + var callback = args[args.length - 1]; + // Assume hook executes synchronously and + // automatically call the callback. + callback(); + } + }; - function getEnterHooks(routes) { - return routes.reduce(function (hooks, route) { - if (route.onEnter) hooks.push(createTransitionHook(route.onEnter, route, 3, enterHooks)); - return hooks; - }, []); - } + pendingHooks.add(transitionHook); - function getChangeHooks(routes) { - return routes.reduce(function (hooks, route) { - if (route.onChange) hooks.push(createTransitionHook(route.onChange, route, 4, changeHooks)); - return hooks; - }, []); - } + return transitionHook; + } - function runTransitionHooks(length, iter, callback) { - if (!length) { - callback(); - return; + function getEnterHooks(routes) { + return routes.reduce(function (hooks, route) { + if (route.onEnter) hooks.push(createTransitionHook(route.onEnter, route, 3, enterHooks)); + return hooks; + }, []); } - var redirectInfo = void 0; - function replace(location) { - redirectInfo = location; + function getChangeHooks(routes) { + return routes.reduce(function (hooks, route) { + if (route.onChange) hooks.push(createTransitionHook(route.onChange, route, 4, changeHooks)); + return hooks; + }, []); } - (0, _AsyncUtils.loopAsync)(length, function (index, next, done) { - iter(index, replace, function (error) { - if (error || redirectInfo) { - done(error, redirectInfo); // No need to continue. - } else { - next(); - } - }); - }, callback); - } + function runTransitionHooks(length, iter, callback) { + if (!length) { + callback(); + return; + } - /** - * Runs all onEnter hooks in the given array of routes in order - * with onEnter(nextState, replace, callback) and calls - * callback(error, redirectInfo) when finished. The first hook - * to use replace short-circuits the loop. - * - * If a hook needs to run asynchronously, it may use the callback - * function. However, doing so will cause the transition to pause, - * which could lead to a non-responsive UI if the hook is slow. - */ - function runEnterHooks(routes, nextState, callback) { - enterHooks.clear(); - var hooks = getEnterHooks(routes); - return runTransitionHooks(hooks.length, function (index, replace, next) { - var wrappedNext = function wrappedNext() { - if (enterHooks.has(hooks[index])) { - next.apply(undefined, arguments); - enterHooks.remove(hooks[index]); - } - }; - hooks[index](nextState, replace, wrappedNext); - }, callback); - } + var redirectInfo = void 0; + function replace(location) { + redirectInfo = location; + } - /** - * Runs all onChange hooks in the given array of routes in order - * with onChange(prevState, nextState, replace, callback) and calls - * callback(error, redirectInfo) when finished. The first hook - * to use replace short-circuits the loop. - * - * If a hook needs to run asynchronously, it may use the callback - * function. However, doing so will cause the transition to pause, - * which could lead to a non-responsive UI if the hook is slow. - */ - function runChangeHooks(routes, state, nextState, callback) { - changeHooks.clear(); - var hooks = getChangeHooks(routes); - return runTransitionHooks(hooks.length, function (index, replace, next) { - var wrappedNext = function wrappedNext() { - if (changeHooks.has(hooks[index])) { - next.apply(undefined, arguments); - changeHooks.remove(hooks[index]); - } - }; - hooks[index](state, nextState, replace, wrappedNext); - }, callback); - } + (0, _AsyncUtils.loopAsync)(length, function (index, next, done) { + iter(index, replace, function (error) { + if (error || redirectInfo) { + done(error, redirectInfo); // No need to continue. + } else { + next(); + } + }); + }, callback); + } - /** - * Runs all onLeave hooks in the given array of routes in order. - */ - function runLeaveHooks(routes, prevState) { - for (var i = 0, len = routes.length; i < len; ++i) { - if (routes[i].onLeave) routes[i].onLeave.call(routes[i], prevState); + /** + * Runs all onEnter hooks in the given array of routes in order + * with onEnter(nextState, replace, callback) and calls + * callback(error, redirectInfo) when finished. The first hook + * to use replace short-circuits the loop. + * + * If a hook needs to run asynchronously, it may use the callback + * function. However, doing so will cause the transition to pause, + * which could lead to a non-responsive UI if the hook is slow. + */ + function runEnterHooks(routes, nextState, callback) { + enterHooks.clear(); + var hooks = getEnterHooks(routes); + return runTransitionHooks(hooks.length, function (index, replace, next) { + var wrappedNext = function wrappedNext() { + if (enterHooks.has(hooks[index])) { + next.apply(undefined, arguments); + enterHooks.remove(hooks[index]); + } + }; + hooks[index](nextState, replace, wrappedNext); + }, callback); + } + + /** + * Runs all onChange hooks in the given array of routes in order + * with onChange(prevState, nextState, replace, callback) and calls + * callback(error, redirectInfo) when finished. The first hook + * to use replace short-circuits the loop. + * + * If a hook needs to run asynchronously, it may use the callback + * function. However, doing so will cause the transition to pause, + * which could lead to a non-responsive UI if the hook is slow. + */ + function runChangeHooks(routes, state, nextState, callback) { + changeHooks.clear(); + var hooks = getChangeHooks(routes); + return runTransitionHooks(hooks.length, function (index, replace, next) { + var wrappedNext = function wrappedNext() { + if (changeHooks.has(hooks[index])) { + next.apply(undefined, arguments); + changeHooks.remove(hooks[index]); + } + }; + hooks[index](state, nextState, replace, wrappedNext); + }, callback); + } + + /** + * Runs all onLeave hooks in the given array of routes in order. + */ + function runLeaveHooks(routes, prevState) { + for (var i = 0, len = routes.length; i < len; ++i) { + if (routes[i].onLeave) routes[i].onLeave.call(routes[i], prevState); + } } + + return { + runEnterHooks: runEnterHooks, + runChangeHooks: runChangeHooks, + runLeaveHooks: runLeaveHooks + }; } + module.exports = exports['default']; -/***/ }, -/* 50 */ -/***/ function(module, exports) { +/***/ }), +/* 61 */ +/***/ (function(module, exports) { "use strict"; @@ -6610,9 +8548,9 @@ module.exports = }); } -/***/ }, -/* 51 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 62 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -6622,7 +8560,7 @@ module.exports = exports.default = isActive; - var _PatternUtils = __webpack_require__(42); + var _PatternUtils = __webpack_require__(50); function deepEqual(a, b) { if (a == b) return true; @@ -6767,17 +8705,17 @@ module.exports = } module.exports = exports['default']; -/***/ }, -/* 52 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 63 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; exports.__esModule = true; - var _AsyncUtils = __webpack_require__(50); + var _AsyncUtils = __webpack_require__(61); - var _PromiseUtils = __webpack_require__(53); + var _PromiseUtils = __webpack_require__(64); function getComponentsForRoute(nextState, route, callback) { if (route.component || route.components) { @@ -6812,9 +8750,9 @@ module.exports = exports.default = getComponents; module.exports = exports['default']; -/***/ }, -/* 53 */ -/***/ function(module, exports) { +/***/ }), +/* 64 */ +/***/ (function(module, exports) { 'use strict'; @@ -6824,9 +8762,9 @@ module.exports = return obj && typeof obj.then === 'function'; } -/***/ }, -/* 54 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 65 */ +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {'use strict'; @@ -6834,17 +8772,15 @@ module.exports = var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; - exports.default = matchRoutes; - var _AsyncUtils = __webpack_require__(50); + var _AsyncUtils = __webpack_require__(61); - var _PromiseUtils = __webpack_require__(53); + var _PromiseUtils = __webpack_require__(64); - var _PatternUtils = __webpack_require__(42); + var _PatternUtils = __webpack_require__(50); - var _routerWarning = __webpack_require__(46); + var _routerWarning = __webpack_require__(57); var _routerWarning2 = _interopRequireDefault(_routerWarning); @@ -6984,38 +8920,32 @@ module.exports = // By assumption, pattern is non-empty here, which is the prerequisite for // actually terminating a match. if (remainingPathname === '') { - var _ret = function () { - var match = { - routes: [route], - params: createParams(paramNames, paramValues) - }; - - getIndexRoute(route, location, paramNames, paramValues, function (error, indexRoute) { - if (error) { - callback(error); - } else { - if (Array.isArray(indexRoute)) { - var _match$routes; - - process.env.NODE_ENV !== 'production' ? (0, _routerWarning2.default)(indexRoute.every(function (route) { - return !route.path; - }), 'Index routes should not have paths') : void 0; - (_match$routes = match.routes).push.apply(_match$routes, indexRoute); - } else if (indexRoute) { - process.env.NODE_ENV !== 'production' ? (0, _routerWarning2.default)(!indexRoute.path, 'Index routes should not have paths') : void 0; - match.routes.push(indexRoute); - } + var match = { + routes: [route], + params: createParams(paramNames, paramValues) + }; - callback(null, match); + getIndexRoute(route, location, paramNames, paramValues, function (error, indexRoute) { + if (error) { + callback(error); + } else { + if (Array.isArray(indexRoute)) { + var _match$routes; + + process.env.NODE_ENV !== 'production' ? (0, _routerWarning2.default)(indexRoute.every(function (route) { + return !route.path; + }), 'Index routes should not have paths') : void 0; + (_match$routes = match.routes).push.apply(_match$routes, indexRoute); + } else if (indexRoute) { + process.env.NODE_ENV !== 'production' ? (0, _routerWarning2.default)(!indexRoute.path, 'Index routes should not have paths') : void 0; + match.routes.push(indexRoute); } - }); - return { - v: void 0 - }; - }(); + callback(null, match); + } + }); - if ((typeof _ret === 'undefined' ? 'undefined' : _typeof(_ret)) === "object") return _ret.v; + return; } } @@ -7093,9 +9023,9 @@ module.exports = module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 55 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 66 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -7103,36 +9033,29 @@ module.exports = exports.routes = exports.route = exports.components = exports.component = exports.history = undefined; exports.falsy = falsy; - var _react = __webpack_require__(7); + var _propTypes = __webpack_require__(42); - var func = _react.PropTypes.func, - object = _react.PropTypes.object, - arrayOf = _react.PropTypes.arrayOf, - oneOfType = _react.PropTypes.oneOfType, - element = _react.PropTypes.element, - shape = _react.PropTypes.shape, - string = _react.PropTypes.string; function falsy(props, propName, componentName) { if (props[propName]) return new Error('<' + componentName + '> should not have a "' + propName + '" prop'); } - var history = exports.history = shape({ - listen: func.isRequired, - push: func.isRequired, - replace: func.isRequired, - go: func.isRequired, - goBack: func.isRequired, - goForward: func.isRequired + var history = exports.history = (0, _propTypes.shape)({ + listen: _propTypes.func.isRequired, + push: _propTypes.func.isRequired, + replace: _propTypes.func.isRequired, + go: _propTypes.func.isRequired, + goBack: _propTypes.func.isRequired, + goForward: _propTypes.func.isRequired }); - var component = exports.component = oneOfType([func, string]); - var components = exports.components = oneOfType([component, object]); - var route = exports.route = oneOfType([object, element]); - var routes = exports.routes = oneOfType([route, arrayOf(route)]); + var component = exports.component = (0, _propTypes.oneOfType)([_propTypes.func, _propTypes.string]); + var components = exports.components = (0, _propTypes.oneOfType)([component, _propTypes.object]); + var route = exports.route = (0, _propTypes.oneOfType)([_propTypes.object, _propTypes.element]); + var routes = exports.routes = (0, _propTypes.oneOfType)([route, (0, _propTypes.arrayOf)(route)]); -/***/ }, -/* 56 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 67 */ +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {'use strict'; @@ -7142,7 +9065,7 @@ module.exports = var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; - var _invariant = __webpack_require__(43); + var _invariant = __webpack_require__(51); var _invariant2 = _interopRequireDefault(_invariant); @@ -7150,39 +9073,38 @@ module.exports = var _react2 = _interopRequireDefault(_react); - var _getRouteParams = __webpack_require__(57); + var _createReactClass = __webpack_require__(53); + + var _createReactClass2 = _interopRequireDefault(_createReactClass); + + var _propTypes = __webpack_require__(42); + + var _getRouteParams = __webpack_require__(68); var _getRouteParams2 = _interopRequireDefault(_getRouteParams); - var _ContextUtils = __webpack_require__(58); + var _ContextUtils = __webpack_require__(69); var _RouteUtils = __webpack_require__(40); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - var _React$PropTypes = _react2.default.PropTypes, - array = _React$PropTypes.array, - func = _React$PropTypes.func, - object = _React$PropTypes.object; - /** * A renders the component tree for a given router state * and sets the history object and the current location in context. */ - - var RouterContext = _react2.default.createClass({ + var RouterContext = (0, _createReactClass2.default)({ displayName: 'RouterContext', - mixins: [(0, _ContextUtils.ContextProvider)('router')], propTypes: { - router: object.isRequired, - location: object.isRequired, - routes: array.isRequired, - params: object.isRequired, - components: array.isRequired, - createElement: func.isRequired + router: _propTypes.object.isRequired, + location: _propTypes.object.isRequired, + routes: _propTypes.array.isRequired, + params: _propTypes.object.isRequired, + components: _propTypes.array.isRequired, + createElement: _propTypes.func.isRequired }, getDefaultProps: function getDefaultProps() { @@ -7193,7 +9115,7 @@ module.exports = childContextTypes: { - router: object.isRequired + router: _propTypes.object.isRequired }, getChildContext: function getChildContext() { @@ -7269,15 +9191,15 @@ module.exports = module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 57 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 68 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; exports.__esModule = true; - var _PatternUtils = __webpack_require__(42); + var _PatternUtils = __webpack_require__(50); /** * Extracts an object of params the given route cares about from @@ -7300,9 +9222,9 @@ module.exports = exports.default = getRouteParams; module.exports = exports['default']; -/***/ }, -/* 58 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 69 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -7310,16 +9232,20 @@ module.exports = exports.ContextProvider = ContextProvider; exports.ContextSubscriber = ContextSubscriber; - var _react = __webpack_require__(7); + var _propTypes = __webpack_require__(42); + + var _propTypes2 = _interopRequireDefault(_propTypes); + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } // Works around issues with context updates failing to propagate. // Caveat: the context value is expected to never change its identity. // https://github.com/facebook/react/issues/2517 // https://github.com/reactjs/react-router/issues/470 - var contextProviderShape = _react.PropTypes.shape({ - subscribe: _react.PropTypes.func.isRequired, - eventIndex: _react.PropTypes.number.isRequired + var contextProviderShape = _propTypes2.default.shape({ + subscribe: _propTypes2.default.func.isRequired, + eventIndex: _propTypes2.default.number.isRequired }); function makeContextName(name) { @@ -7426,9 +9352,9 @@ module.exports = }, _ref4; } -/***/ }, -/* 59 */ -/***/ function(module, exports) { +/***/ }), +/* 70 */ +/***/ (function(module, exports) { "use strict"; @@ -7459,9 +9385,9 @@ module.exports = return router; } -/***/ }, -/* 60 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 71 */ +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {'use strict'; @@ -7473,26 +9399,24 @@ module.exports = var _react2 = _interopRequireDefault(_react); - var _invariant = __webpack_require__(43); + var _createReactClass = __webpack_require__(53); + + var _createReactClass2 = _interopRequireDefault(_createReactClass); + + var _propTypes = __webpack_require__(42); + + var _invariant = __webpack_require__(51); var _invariant2 = _interopRequireDefault(_invariant); var _PropTypes = __webpack_require__(41); - var _ContextUtils = __webpack_require__(58); + var _ContextUtils = __webpack_require__(69); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } - var _React$PropTypes = _react2.default.PropTypes, - bool = _React$PropTypes.bool, - object = _React$PropTypes.object, - string = _React$PropTypes.string, - func = _React$PropTypes.func, - oneOfType = _React$PropTypes.oneOfType; - - function isLeftClickEvent(event) { return event.button === 0; } @@ -7524,16 +9448,10 @@ module.exports = * You could use the following component to link to that route: * * - * - * Links may pass along location state and/or query string parameters - * in the state/query props, respectively. - * - * */ - var Link = _react2.default.createClass({ + var Link = (0, _createReactClass2.default)({ displayName: 'Link', - mixins: [(0, _ContextUtils.ContextSubscriber)('router')], contextTypes: { @@ -7541,15 +9459,12 @@ module.exports = }, propTypes: { - to: oneOfType([string, object, func]), - query: object, - hash: string, - state: object, - activeStyle: object, - activeClassName: string, - onlyActiveOnIndex: bool.isRequired, - onClick: func, - target: string + to: (0, _propTypes.oneOfType)([_propTypes.string, _propTypes.object, _propTypes.func]), + activeStyle: _propTypes.object, + activeClassName: _propTypes.string, + onlyActiveOnIndex: _propTypes.bool.isRequired, + onClick: _propTypes.func, + target: _propTypes.string }, getDefaultProps: function getDefaultProps() { @@ -7623,9 +9538,9 @@ module.exports = module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 61 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 72 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -7637,7 +9552,11 @@ module.exports = var _react2 = _interopRequireDefault(_react); - var _Link = __webpack_require__(60); + var _createReactClass = __webpack_require__(53); + + var _createReactClass2 = _interopRequireDefault(_createReactClass); + + var _Link = __webpack_require__(71); var _Link2 = _interopRequireDefault(_Link); @@ -7646,8 +9565,9 @@ module.exports = /** * An is used to link to an . */ - var IndexLink = _react2.default.createClass({ + var IndexLink = (0, _createReactClass2.default)({ displayName: 'IndexLink', + render: function render() { return _react2.default.createElement(_Link2.default, _extends({}, this.props, { onlyActiveOnIndex: true })); } @@ -7656,9 +9576,9 @@ module.exports = exports.default = IndexLink; module.exports = exports['default']; -/***/ }, -/* 62 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 73 */ +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {'use strict'; @@ -7668,7 +9588,7 @@ module.exports = exports.default = withRouter; - var _invariant = __webpack_require__(43); + var _invariant = __webpack_require__(51); var _invariant2 = _interopRequireDefault(_invariant); @@ -7676,11 +9596,15 @@ module.exports = var _react2 = _interopRequireDefault(_react); - var _hoistNonReactStatics = __webpack_require__(63); + var _createReactClass = __webpack_require__(53); + + var _createReactClass2 = _interopRequireDefault(_createReactClass); + + var _hoistNonReactStatics = __webpack_require__(74); var _hoistNonReactStatics2 = _interopRequireDefault(_hoistNonReactStatics); - var _ContextUtils = __webpack_require__(58); + var _ContextUtils = __webpack_require__(69); var _PropTypes = __webpack_require__(41); @@ -7693,7 +9617,7 @@ module.exports = function withRouter(WrappedComponent, options) { var withRef = options && options.withRef; - var WithRouter = _react2.default.createClass({ + var WithRouter = (0, _createReactClass2.default)({ displayName: 'WithRouter', mixins: [(0, _ContextUtils.ContextSubscriber)('router')], @@ -7738,22 +9662,23 @@ module.exports = module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 63 */ -/***/ function(module, exports) { +/***/ }), +/* 74 */ +/***/ (function(module, exports) { + + 'use strict'; /** * Copyright 2015, Yahoo! Inc. * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms. */ - 'use strict'; - var REACT_STATICS = { childContextTypes: true, contextTypes: true, defaultProps: true, displayName: true, getDefaultProps: true, + getDerivedStateFromProps: true, mixins: true, propTypes: true, type: true @@ -7764,77 +9689,90 @@ module.exports = length: true, prototype: true, caller: true, + callee: true, arguments: true, arity: true }; - var isGetOwnPropertySymbolsAvailable = typeof Object.getOwnPropertySymbols === 'function'; + var defineProperty = Object.defineProperty; + var getOwnPropertyNames = Object.getOwnPropertyNames; + var getOwnPropertySymbols = Object.getOwnPropertySymbols; + var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; + var getPrototypeOf = Object.getPrototypeOf; + var objectPrototype = getPrototypeOf && getPrototypeOf(Object); - module.exports = function hoistNonReactStatics(targetComponent, sourceComponent, customStatics) { + function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) { if (typeof sourceComponent !== 'string') { // don't hoist over string (html) components - var keys = Object.getOwnPropertyNames(sourceComponent); - /* istanbul ignore else */ - if (isGetOwnPropertySymbolsAvailable) { - keys = keys.concat(Object.getOwnPropertySymbols(sourceComponent)); + if (objectPrototype) { + var inheritedComponent = getPrototypeOf(sourceComponent); + if (inheritedComponent && inheritedComponent !== objectPrototype) { + hoistNonReactStatics(targetComponent, inheritedComponent, blacklist); + } } - for (var i = 0; i < keys.length; ++i) { - if (!REACT_STATICS[keys[i]] && !KNOWN_STATICS[keys[i]] && (!customStatics || !customStatics[keys[i]])) { - try { - targetComponent[keys[i]] = sourceComponent[keys[i]]; - } catch (error) { + var keys = getOwnPropertyNames(sourceComponent); - } + if (getOwnPropertySymbols) { + keys = keys.concat(getOwnPropertySymbols(sourceComponent)); + } + + for (var i = 0; i < keys.length; ++i) { + var key = keys[i]; + if (!REACT_STATICS[key] && !KNOWN_STATICS[key] && (!blacklist || !blacklist[key])) { + var descriptor = getOwnPropertyDescriptor(sourceComponent, key); + try { // Avoid failures from read-only properties + defineProperty(targetComponent, key, descriptor); + } catch (e) {} } } + + return targetComponent; } return targetComponent; - }; + } + module.exports = hoistNonReactStatics; -/***/ }, -/* 64 */ -/***/ function(module, exports, __webpack_require__) { + +/***/ }), +/* 75 */ +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {'use strict'; exports.__esModule = true; - var _react = __webpack_require__(7); + var _createReactClass = __webpack_require__(53); - var _react2 = _interopRequireDefault(_react); + var _createReactClass2 = _interopRequireDefault(_createReactClass); + + var _propTypes = __webpack_require__(42); - var _routerWarning = __webpack_require__(46); + var _routerWarning = __webpack_require__(57); var _routerWarning2 = _interopRequireDefault(_routerWarning); - var _invariant = __webpack_require__(43); + var _invariant = __webpack_require__(51); var _invariant2 = _interopRequireDefault(_invariant); - var _Redirect = __webpack_require__(65); + var _Redirect = __webpack_require__(76); var _Redirect2 = _interopRequireDefault(_Redirect); - var _InternalPropTypes = __webpack_require__(55); + var _InternalPropTypes = __webpack_require__(66); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - var _React$PropTypes = _react2.default.PropTypes, - string = _React$PropTypes.string, - object = _React$PropTypes.object; - /** * An is used to redirect from an indexRoute. */ /* eslint-disable react/require-render-return */ - - var IndexRedirect = _react2.default.createClass({ + var IndexRedirect = (0, _createReactClass2.default)({ displayName: 'IndexRedirect', - statics: { createRouteFromReactElement: function createRouteFromReactElement(element, parentRoute) { /* istanbul ignore else: sanity check */ @@ -7847,9 +9785,9 @@ module.exports = }, propTypes: { - to: string.isRequired, - query: object, - state: object, + to: _propTypes.string.isRequired, + query: _propTypes.object, + state: _propTypes.object, onEnter: _InternalPropTypes.falsy, children: _InternalPropTypes.falsy }, @@ -7864,34 +9802,32 @@ module.exports = module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 65 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 76 */ +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {'use strict'; exports.__esModule = true; - var _react = __webpack_require__(7); + var _createReactClass = __webpack_require__(53); - var _react2 = _interopRequireDefault(_react); + var _createReactClass2 = _interopRequireDefault(_createReactClass); + + var _propTypes = __webpack_require__(42); - var _invariant = __webpack_require__(43); + var _invariant = __webpack_require__(51); var _invariant2 = _interopRequireDefault(_invariant); var _RouteUtils = __webpack_require__(40); - var _PatternUtils = __webpack_require__(42); + var _PatternUtils = __webpack_require__(50); - var _InternalPropTypes = __webpack_require__(55); + var _InternalPropTypes = __webpack_require__(66); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - var _React$PropTypes = _react2.default.PropTypes, - string = _React$PropTypes.string, - object = _React$PropTypes.object; - /** * A is used to declare another URL path a client should * be sent to when they request a given URL. @@ -7900,11 +9836,9 @@ module.exports = * and are traversed in the same manner. */ /* eslint-disable react/require-render-return */ - - var Redirect = _react2.default.createClass({ + var Redirect = (0, _createReactClass2.default)({ displayName: 'Redirect', - statics: { createRouteFromReactElement: function createRouteFromReactElement(element) { var route = (0, _RouteUtils.createRouteFromReactElement)(element); @@ -7954,11 +9888,11 @@ module.exports = }, propTypes: { - path: string, - from: string, // Alias for path - to: string.isRequired, - query: object, - state: object, + path: _propTypes.string, + from: _propTypes.string, // Alias for path + to: _propTypes.string.isRequired, + query: _propTypes.object, + state: _propTypes.object, onEnter: _InternalPropTypes.falsy, children: _InternalPropTypes.falsy }, @@ -7973,44 +9907,42 @@ module.exports = module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 66 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 77 */ +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {'use strict'; exports.__esModule = true; - var _react = __webpack_require__(7); + var _createReactClass = __webpack_require__(53); - var _react2 = _interopRequireDefault(_react); + var _createReactClass2 = _interopRequireDefault(_createReactClass); + + var _propTypes = __webpack_require__(42); - var _routerWarning = __webpack_require__(46); + var _routerWarning = __webpack_require__(57); var _routerWarning2 = _interopRequireDefault(_routerWarning); - var _invariant = __webpack_require__(43); + var _invariant = __webpack_require__(51); var _invariant2 = _interopRequireDefault(_invariant); var _RouteUtils = __webpack_require__(40); - var _InternalPropTypes = __webpack_require__(55); + var _InternalPropTypes = __webpack_require__(66); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - var func = _react2.default.PropTypes.func; - /** * An is used to specify its parent's in * a JSX route config. */ /* eslint-disable react/require-render-return */ - - var IndexRoute = _react2.default.createClass({ + var IndexRoute = (0, _createReactClass2.default)({ displayName: 'IndexRoute', - statics: { createRouteFromReactElement: function createRouteFromReactElement(element, parentRoute) { /* istanbul ignore else: sanity check */ @@ -8026,8 +9958,8 @@ module.exports = path: _InternalPropTypes.falsy, component: _InternalPropTypes.component, components: _InternalPropTypes.components, - getComponent: func, - getComponents: func + getComponent: _propTypes.func, + getComponents: _propTypes.func }, /* istanbul ignore next: sanity check */ @@ -8040,32 +9972,30 @@ module.exports = module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 67 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 78 */ +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {'use strict'; exports.__esModule = true; - var _react = __webpack_require__(7); + var _createReactClass = __webpack_require__(53); - var _react2 = _interopRequireDefault(_react); + var _createReactClass2 = _interopRequireDefault(_createReactClass); + + var _propTypes = __webpack_require__(42); - var _invariant = __webpack_require__(43); + var _invariant = __webpack_require__(51); var _invariant2 = _interopRequireDefault(_invariant); var _RouteUtils = __webpack_require__(40); - var _InternalPropTypes = __webpack_require__(55); + var _InternalPropTypes = __webpack_require__(66); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - var _React$PropTypes = _react2.default.PropTypes, - string = _React$PropTypes.string, - func = _React$PropTypes.func; - /** * A is used to declare which components are rendered to the * page when the URL matches a given pattern. @@ -8077,21 +10007,19 @@ module.exports = * rendered into the DOM, nested in the same order as in the tree. */ /* eslint-disable react/require-render-return */ - - var Route = _react2.default.createClass({ + var Route = (0, _createReactClass2.default)({ displayName: 'Route', - statics: { createRouteFromReactElement: _RouteUtils.createRouteFromReactElement }, propTypes: { - path: string, + path: _propTypes.string, component: _InternalPropTypes.component, components: _InternalPropTypes.components, - getComponent: func, - getComponents: func + getComponent: _propTypes.func, + getComponents: _propTypes.func }, /* istanbul ignore next: sanity check */ @@ -8104,9 +10032,9 @@ module.exports = module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 68 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 79 */ +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {'use strict'; @@ -8114,23 +10042,23 @@ module.exports = var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - var _Actions = __webpack_require__(69); + var _Actions = __webpack_require__(80); - var _invariant = __webpack_require__(43); + var _invariant = __webpack_require__(51); var _invariant2 = _interopRequireDefault(_invariant); - var _createMemoryHistory = __webpack_require__(70); + var _createMemoryHistory = __webpack_require__(81); var _createMemoryHistory2 = _interopRequireDefault(_createMemoryHistory); - var _createTransitionManager = __webpack_require__(45); + var _createTransitionManager = __webpack_require__(56); var _createTransitionManager2 = _interopRequireDefault(_createTransitionManager); var _RouteUtils = __webpack_require__(40); - var _RouterUtils = __webpack_require__(59); + var _RouterUtils = __webpack_require__(70); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -8182,9 +10110,9 @@ module.exports = module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 69 */ -/***/ function(module, exports) { +/***/ }), +/* 80 */ +/***/ (function(module, exports) { 'use strict'; @@ -8209,24 +10137,24 @@ module.exports = */ var POP = exports.POP = 'POP'; -/***/ }, -/* 70 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 81 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; exports.__esModule = true; exports.default = createMemoryHistory; - var _useQueries = __webpack_require__(71); + var _useQueries = __webpack_require__(82); var _useQueries2 = _interopRequireDefault(_useQueries); - var _useBasename = __webpack_require__(78); + var _useBasename = __webpack_require__(88); var _useBasename2 = _interopRequireDefault(_useBasename); - var _createMemoryHistory = __webpack_require__(79); + var _createMemoryHistory = __webpack_require__(89); var _createMemoryHistory2 = _interopRequireDefault(_createMemoryHistory); @@ -8245,9 +10173,9 @@ module.exports = } module.exports = exports['default']; -/***/ }, -/* 71 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 82 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -8255,15 +10183,15 @@ module.exports = var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - var _queryString = __webpack_require__(72); + var _queryString = __webpack_require__(83); - var _runTransitionHook = __webpack_require__(75); + var _runTransitionHook = __webpack_require__(85); var _runTransitionHook2 = _interopRequireDefault(_runTransitionHook); - var _LocationUtils = __webpack_require__(76); + var _LocationUtils = __webpack_require__(86); - var _PathUtils = __webpack_require__(77); + var _PathUtils = __webpack_require__(87); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -8371,13 +10299,13 @@ module.exports = exports.default = useQueries; -/***/ }, -/* 72 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 83 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; - var strictUriEncode = __webpack_require__(73); - var objectAssign = __webpack_require__(74); + var strictUriEncode = __webpack_require__(84); + var objectAssign = __webpack_require__(46); function encoderForArrayFormat(opts) { switch (opts.arrayFormat) { @@ -8442,12 +10370,14 @@ module.exports = case 'bracket': return function (key, value, accumulator) { result = /(\[\])$/.exec(key); - key = key.replace(/\[\]$/, ''); - if (!result || accumulator[key] === undefined) { + if (!result) { accumulator[key] = value; return; + } else if (accumulator[key] === undefined) { + accumulator[key] = [value]; + return; } accumulator[key] = [].concat(accumulator[key], value); @@ -8580,9 +10510,9 @@ module.exports = }; -/***/ }, -/* 73 */ -/***/ function(module, exports) { +/***/ }), +/* 84 */ +/***/ (function(module, exports) { 'use strict'; module.exports = function (str) { @@ -8592,111 +10522,15 @@ module.exports = }; -/***/ }, -/* 74 */ -/***/ function(module, exports) { - - /* - object-assign - (c) Sindre Sorhus - @license MIT - */ - - 'use strict'; - /* eslint-disable no-unused-vars */ - var getOwnPropertySymbols = Object.getOwnPropertySymbols; - var hasOwnProperty = Object.prototype.hasOwnProperty; - var propIsEnumerable = Object.prototype.propertyIsEnumerable; - - function toObject(val) { - if (val === null || val === undefined) { - throw new TypeError('Object.assign cannot be called with null or undefined'); - } - - return Object(val); - } - - function shouldUseNative() { - try { - if (!Object.assign) { - return false; - } - - // Detect buggy property enumeration order in older V8 versions. - - // https://bugs.chromium.org/p/v8/issues/detail?id=4118 - var test1 = new String('abc'); // eslint-disable-line no-new-wrappers - test1[5] = 'de'; - if (Object.getOwnPropertyNames(test1)[0] === '5') { - return false; - } - - // https://bugs.chromium.org/p/v8/issues/detail?id=3056 - var test2 = {}; - for (var i = 0; i < 10; i++) { - test2['_' + String.fromCharCode(i)] = i; - } - var order2 = Object.getOwnPropertyNames(test2).map(function (n) { - return test2[n]; - }); - if (order2.join('') !== '0123456789') { - return false; - } - - // https://bugs.chromium.org/p/v8/issues/detail?id=3056 - var test3 = {}; - 'abcdefghijklmnopqrst'.split('').forEach(function (letter) { - test3[letter] = letter; - }); - if (Object.keys(Object.assign({}, test3)).join('') !== - 'abcdefghijklmnopqrst') { - return false; - } - - return true; - } catch (err) { - // We don't expect any of the above to throw, but better to be safe. - return false; - } - } - - module.exports = shouldUseNative() ? Object.assign : function (target, source) { - var from; - var to = toObject(target); - var symbols; - - for (var s = 1; s < arguments.length; s++) { - from = Object(arguments[s]); - - for (var key in from) { - if (hasOwnProperty.call(from, key)) { - to[key] = from[key]; - } - } - - if (getOwnPropertySymbols) { - symbols = getOwnPropertySymbols(from); - for (var i = 0; i < symbols.length; i++) { - if (propIsEnumerable.call(from, symbols[i])) { - to[symbols[i]] = from[symbols[i]]; - } - } - } - } - - return to; - }; - - -/***/ }, -/* 75 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 85 */ +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {'use strict'; exports.__esModule = true; - var _warning = __webpack_require__(47); + var _warning = __webpack_require__(58); var _warning2 = _interopRequireDefault(_warning); @@ -8717,9 +10551,9 @@ module.exports = exports.default = runTransitionHook; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 76 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 86 */ +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {'use strict'; @@ -8730,17 +10564,17 @@ module.exports = var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - var _invariant = __webpack_require__(43); + var _invariant = __webpack_require__(51); var _invariant2 = _interopRequireDefault(_invariant); - var _warning = __webpack_require__(47); + var _warning = __webpack_require__(58); var _warning2 = _interopRequireDefault(_warning); - var _PathUtils = __webpack_require__(77); + var _PathUtils = __webpack_require__(87); - var _Actions = __webpack_require__(69); + var _Actions = __webpack_require__(80); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -8815,16 +10649,16 @@ module.exports = }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 77 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 87 */ +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {'use strict'; exports.__esModule = true; exports.createPath = exports.parsePath = exports.getQueryStringValueFromPath = exports.stripQueryStringValueFromPath = exports.addQueryStringValueToPath = undefined; - var _warning = __webpack_require__(47); + var _warning = __webpack_require__(58); var _warning2 = _interopRequireDefault(_warning); @@ -8917,9 +10751,9 @@ module.exports = }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 78 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 88 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -8927,11 +10761,11 @@ module.exports = var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - var _runTransitionHook = __webpack_require__(75); + var _runTransitionHook = __webpack_require__(85); var _runTransitionHook2 = _interopRequireDefault(_runTransitionHook); - var _PathUtils = __webpack_require__(77); + var _PathUtils = __webpack_require__(87); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -9031,9 +10865,9 @@ module.exports = exports.default = useBasename; -/***/ }, -/* 79 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 89 */ +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {'use strict'; @@ -9041,23 +10875,23 @@ module.exports = var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - var _warning = __webpack_require__(47); + var _warning = __webpack_require__(58); var _warning2 = _interopRequireDefault(_warning); - var _invariant = __webpack_require__(43); + var _invariant = __webpack_require__(51); var _invariant2 = _interopRequireDefault(_invariant); - var _LocationUtils = __webpack_require__(76); + var _LocationUtils = __webpack_require__(86); - var _PathUtils = __webpack_require__(77); + var _PathUtils = __webpack_require__(87); - var _createHistory = __webpack_require__(80); + var _createHistory = __webpack_require__(90); var _createHistory2 = _interopRequireDefault(_createHistory); - var _Actions = __webpack_require__(69); + var _Actions = __webpack_require__(80); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -9177,25 +11011,25 @@ module.exports = exports.default = createMemoryHistory; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 80 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 90 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; exports.__esModule = true; - var _AsyncUtils = __webpack_require__(81); + var _AsyncUtils = __webpack_require__(91); - var _PathUtils = __webpack_require__(77); + var _PathUtils = __webpack_require__(87); - var _runTransitionHook = __webpack_require__(75); + var _runTransitionHook = __webpack_require__(85); var _runTransitionHook2 = _interopRequireDefault(_runTransitionHook); - var _Actions = __webpack_require__(69); + var _Actions = __webpack_require__(80); - var _LocationUtils = __webpack_require__(76); + var _LocationUtils = __webpack_require__(86); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -9358,9 +11192,9 @@ module.exports = exports.default = createHistory; -/***/ }, -/* 81 */ -/***/ function(module, exports) { +/***/ }), +/* 91 */ +/***/ (function(module, exports) { "use strict"; @@ -9419,20 +11253,20 @@ module.exports = next(); }; -/***/ }, -/* 82 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 92 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; exports.__esModule = true; exports.default = useRouterHistory; - var _useQueries = __webpack_require__(71); + var _useQueries = __webpack_require__(82); var _useQueries2 = _interopRequireDefault(_useQueries); - var _useBasename = __webpack_require__(78); + var _useBasename = __webpack_require__(88); var _useBasename2 = _interopRequireDefault(_useBasename); @@ -9446,9 +11280,9 @@ module.exports = } module.exports = exports['default']; -/***/ }, -/* 83 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 93 */ +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {'use strict'; @@ -9460,11 +11294,11 @@ module.exports = var _react2 = _interopRequireDefault(_react); - var _RouterContext = __webpack_require__(56); + var _RouterContext = __webpack_require__(67); var _RouterContext2 = _interopRequireDefault(_RouterContext); - var _routerWarning = __webpack_require__(46); + var _routerWarning = __webpack_require__(57); var _routerWarning2 = _interopRequireDefault(_routerWarning); @@ -9509,19 +11343,19 @@ module.exports = module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 84 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 94 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; exports.__esModule = true; - var _createBrowserHistory = __webpack_require__(85); + var _createBrowserHistory = __webpack_require__(95); var _createBrowserHistory2 = _interopRequireDefault(_createBrowserHistory); - var _createRouterHistory = __webpack_require__(91); + var _createRouterHistory = __webpack_require__(101); var _createRouterHistory2 = _interopRequireDefault(_createRouterHistory); @@ -9530,9 +11364,9 @@ module.exports = exports.default = (0, _createRouterHistory2.default)(_createBrowserHistory2.default); module.exports = exports['default']; -/***/ }, -/* 85 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 95 */ +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {'use strict'; @@ -9540,23 +11374,23 @@ module.exports = var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - var _invariant = __webpack_require__(43); + var _invariant = __webpack_require__(51); var _invariant2 = _interopRequireDefault(_invariant); - var _ExecutionEnvironment = __webpack_require__(86); + var _ExecutionEnvironment = __webpack_require__(96); - var _BrowserProtocol = __webpack_require__(87); + var _BrowserProtocol = __webpack_require__(97); var BrowserProtocol = _interopRequireWildcard(_BrowserProtocol); - var _RefreshProtocol = __webpack_require__(90); + var _RefreshProtocol = __webpack_require__(100); var RefreshProtocol = _interopRequireWildcard(_RefreshProtocol); - var _DOMUtils = __webpack_require__(88); + var _DOMUtils = __webpack_require__(98); - var _createHistory = __webpack_require__(80); + var _createHistory = __webpack_require__(90); var _createHistory2 = _interopRequireDefault(_createHistory); @@ -9629,33 +11463,33 @@ module.exports = exports.default = createBrowserHistory; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 86 */ -/***/ function(module, exports) { +/***/ }), +/* 96 */ +/***/ (function(module, exports) { 'use strict'; exports.__esModule = true; var canUseDOM = exports.canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement); -/***/ }, -/* 87 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 97 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; exports.__esModule = true; exports.go = exports.replaceLocation = exports.pushLocation = exports.startListener = exports.getUserConfirmation = exports.getCurrentLocation = undefined; - var _LocationUtils = __webpack_require__(76); + var _LocationUtils = __webpack_require__(86); - var _DOMUtils = __webpack_require__(88); + var _DOMUtils = __webpack_require__(98); - var _DOMStateStorage = __webpack_require__(89); + var _DOMStateStorage = __webpack_require__(99); - var _PathUtils = __webpack_require__(77); + var _PathUtils = __webpack_require__(87); - var _ExecutionEnvironment = __webpack_require__(86); + var _ExecutionEnvironment = __webpack_require__(96); var PopStateEvent = 'popstate'; var HashChangeEvent = 'hashchange'; @@ -9742,9 +11576,9 @@ module.exports = if (n) window.history.go(n); }; -/***/ }, -/* 88 */ -/***/ function(module, exports) { +/***/ }), +/* 98 */ +/***/ (function(module, exports) { 'use strict'; @@ -9796,16 +11630,16 @@ module.exports = return event.state === undefined && navigator.userAgent.indexOf('CriOS') === -1; }; -/***/ }, -/* 89 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 99 */ +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {'use strict'; exports.__esModule = true; exports.readState = exports.saveState = undefined; - var _warning = __webpack_require__(47); + var _warning = __webpack_require__(58); var _warning2 = _interopRequireDefault(_warning); @@ -9887,16 +11721,16 @@ module.exports = }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 90 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 100 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; exports.__esModule = true; exports.replaceLocation = exports.pushLocation = exports.getCurrentLocation = exports.go = exports.getUserConfirmation = undefined; - var _BrowserProtocol = __webpack_require__(87); + var _BrowserProtocol = __webpack_require__(97); Object.defineProperty(exports, 'getUserConfirmation', { enumerable: true, @@ -9911,9 +11745,9 @@ module.exports = } }); - var _LocationUtils = __webpack_require__(76); + var _LocationUtils = __webpack_require__(86); - var _PathUtils = __webpack_require__(77); + var _PathUtils = __webpack_require__(87); var getCurrentLocation = exports.getCurrentLocation = function getCurrentLocation() { return (0, _LocationUtils.createLocation)(window.location); @@ -9929,21 +11763,16 @@ module.exports = return false; // Don't update location }; -/***/ }, -/* 91 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 101 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; exports.__esModule = true; + exports.default = createRouterHistory; - exports.default = function (createHistory) { - var history = void 0; - if (canUseDOM) history = (0, _useRouterHistory2.default)(createHistory)(); - return history; - }; - - var _useRouterHistory = __webpack_require__(82); + var _useRouterHistory = __webpack_require__(92); var _useRouterHistory2 = _interopRequireDefault(_useRouterHistory); @@ -9951,21 +11780,26 @@ module.exports = var canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement); + function createRouterHistory(createHistory) { + var history = void 0; + if (canUseDOM) history = (0, _useRouterHistory2.default)(createHistory)(); + return history; + } module.exports = exports['default']; -/***/ }, -/* 92 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 102 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; exports.__esModule = true; - var _createHashHistory = __webpack_require__(93); + var _createHashHistory = __webpack_require__(103); var _createHashHistory2 = _interopRequireDefault(_createHashHistory); - var _createRouterHistory = __webpack_require__(91); + var _createRouterHistory = __webpack_require__(101); var _createRouterHistory2 = _interopRequireDefault(_createRouterHistory); @@ -9974,9 +11808,9 @@ module.exports = exports.default = (0, _createRouterHistory2.default)(_createHashHistory2.default); module.exports = exports['default']; -/***/ }, -/* 93 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 103 */ +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {'use strict'; @@ -9984,23 +11818,23 @@ module.exports = var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - var _warning = __webpack_require__(47); + var _warning = __webpack_require__(58); var _warning2 = _interopRequireDefault(_warning); - var _invariant = __webpack_require__(43); + var _invariant = __webpack_require__(51); var _invariant2 = _interopRequireDefault(_invariant); - var _ExecutionEnvironment = __webpack_require__(86); + var _ExecutionEnvironment = __webpack_require__(96); - var _DOMUtils = __webpack_require__(88); + var _DOMUtils = __webpack_require__(98); - var _HashProtocol = __webpack_require__(94); + var _HashProtocol = __webpack_require__(104); var HashProtocol = _interopRequireWildcard(_HashProtocol); - var _createHistory = __webpack_require__(80); + var _createHistory = __webpack_require__(90); var _createHistory2 = _interopRequireDefault(_createHistory); @@ -10127,16 +11961,16 @@ module.exports = exports.default = createHashHistory; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 94 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 104 */ +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {'use strict'; exports.__esModule = true; exports.replaceLocation = exports.pushLocation = exports.startListener = exports.getCurrentLocation = exports.go = exports.getUserConfirmation = undefined; - var _BrowserProtocol = __webpack_require__(87); + var _BrowserProtocol = __webpack_require__(97); Object.defineProperty(exports, 'getUserConfirmation', { enumerable: true, @@ -10151,17 +11985,17 @@ module.exports = } }); - var _warning = __webpack_require__(47); + var _warning = __webpack_require__(58); var _warning2 = _interopRequireDefault(_warning); - var _LocationUtils = __webpack_require__(76); + var _LocationUtils = __webpack_require__(86); - var _DOMUtils = __webpack_require__(88); + var _DOMUtils = __webpack_require__(98); - var _DOMStateStorage = __webpack_require__(89); + var _DOMStateStorage = __webpack_require__(99); - var _PathUtils = __webpack_require__(77); + var _PathUtils = __webpack_require__(87); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -10269,9 +12103,9 @@ module.exports = }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 95 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 105 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -10302,9 +12136,9 @@ module.exports = exports.default = HomeRoute; -/***/ }, -/* 96 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 106 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -10356,9 +12190,9 @@ module.exports = }, _temp); exports.default = LoginRoute; -/***/ }, -/* 97 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 107 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -10421,9 +12255,9 @@ module.exports = }, _temp); exports.default = LogoutRoute; -/***/ }, -/* 98 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 108 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -10477,9 +12311,9 @@ module.exports = }, _temp); exports.default = AuthenticatedRoute; -/***/ }, -/* 99 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 109 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -10543,9 +12377,9 @@ module.exports = }, _temp); exports.default = Authenticated; -/***/ }, -/* 100 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 110 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -10613,9 +12447,9 @@ module.exports = }, _temp); exports.default = NotAuthenticated; -/***/ }, -/* 101 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 111 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -10680,9 +12514,9 @@ module.exports = exports.default = LoginLink; -/***/ }, -/* 102 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 112 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -10786,9 +12620,9 @@ module.exports = }, _temp2); exports.default = LogoutLink; -/***/ }, -/* 103 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 113 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -10821,11 +12655,11 @@ module.exports = var _UserActions2 = _interopRequireDefault(_UserActions); - var _LoadingText = __webpack_require__(104); + var _LoadingText = __webpack_require__(114); var _LoadingText2 = _interopRequireDefault(_LoadingText); - var _SocialLoginButton = __webpack_require__(105); + var _SocialLoginButton = __webpack_require__(115); var _SocialLoginButton2 = _interopRequireDefault(_SocialLoginButton); @@ -11037,7 +12871,8 @@ module.exports = return _ret2 = (_temp2 = (_this3 = _possibleConstructorReturn(this, (_ref2 = LoginForm.__proto__ || Object.getPrototypeOf(LoginForm)).call.apply(_ref2, [this].concat(args))), _this3), _this3.state = { fields: { username: '', - password: '' + password: '', + brand: 'scooponexperience' }, errorMessage: null, isFormProcessing: false @@ -11081,7 +12916,8 @@ module.exports = _UserActions2.default.login({ login: data.username, - password: data.password + password: data.password, + brand: data.brand }, function (err, result) { if (err) { if (onSubmitError) { @@ -11202,9 +13038,9 @@ module.exports = }, _temp3); exports.default = LoginForm; -/***/ }, -/* 104 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 114 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -11284,9 +13120,9 @@ module.exports = exports.default = LoadingText; -/***/ }, -/* 105 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 115 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -11307,7 +13143,7 @@ module.exports = var _utils2 = _interopRequireDefault(_utils); - var _SocialLoginLink = __webpack_require__(106); + var _SocialLoginLink = __webpack_require__(116); var _SocialLoginLink2 = _interopRequireDefault(_SocialLoginLink); @@ -11348,9 +13184,9 @@ module.exports = exports.default = SocialLoginButton; -/***/ }, -/* 106 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 116 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -11367,7 +13203,7 @@ module.exports = var _react2 = _interopRequireDefault(_react); - var _xtend = __webpack_require__(107); + var _xtend = __webpack_require__(117); var _xtend2 = _interopRequireDefault(_xtend); @@ -11509,9 +13345,9 @@ module.exports = exports.default = SocialLoginLink; -/***/ }, -/* 107 */ -/***/ function(module, exports) { +/***/ }), +/* 117 */ +/***/ (function(module, exports) { module.exports = extend @@ -11534,9 +13370,9 @@ module.exports = } -/***/ }, -/* 108 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 118 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -11901,9 +13737,9 @@ module.exports = }, _temp3); exports.default = UserProfileForm; -/***/ }, -/* 109 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 119 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -11932,7 +13768,7 @@ module.exports = var _context2 = _interopRequireDefault(_context); - var _LoginLink = __webpack_require__(101); + var _LoginLink = __webpack_require__(111); var _LoginLink2 = _interopRequireDefault(_LoginLink); @@ -11940,11 +13776,11 @@ module.exports = var _UserActions2 = _interopRequireDefault(_UserActions); - var _LoadingText = __webpack_require__(104); + var _LoadingText = __webpack_require__(114); var _LoadingText2 = _interopRequireDefault(_LoadingText); - var _SocialLoginButton = __webpack_require__(105); + var _SocialLoginButton = __webpack_require__(115); var _SocialLoginButton2 = _interopRequireDefault(_SocialLoginButton); @@ -12424,9 +14260,9 @@ module.exports = }, _temp3); exports.default = RegistrationForm; -/***/ }, -/* 110 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 120 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -12449,7 +14285,7 @@ module.exports = var _utils2 = _interopRequireDefault(_utils); - var _LoginLink = __webpack_require__(101); + var _LoginLink = __webpack_require__(111); var _LoginLink2 = _interopRequireDefault(_LoginLink); @@ -12696,9 +14532,9 @@ module.exports = exports.default = ResetPasswordForm; -/***/ }, -/* 111 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 121 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -12721,11 +14557,11 @@ module.exports = var _utils2 = _interopRequireDefault(_utils); - var _LoginLink = __webpack_require__(101); + var _LoginLink = __webpack_require__(111); var _LoginLink2 = _interopRequireDefault(_LoginLink); - var _LoadingText = __webpack_require__(104); + var _LoadingText = __webpack_require__(114); var _LoadingText2 = _interopRequireDefault(_LoadingText); @@ -13018,9 +14854,9 @@ module.exports = exports.default = ChangePasswordForm; -/***/ }, -/* 112 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 122 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -13041,7 +14877,7 @@ module.exports = var _utils2 = _interopRequireDefault(_utils); - var _LoginLink = __webpack_require__(101); + var _LoginLink = __webpack_require__(111); var _LoginLink2 = _interopRequireDefault(_LoginLink); @@ -13138,9 +14974,9 @@ module.exports = exports.default = VerifyEmailView; -/***/ }, -/* 113 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 123 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -13159,7 +14995,7 @@ module.exports = var _utils2 = _interopRequireDefault(_utils); - var _UserComponent2 = __webpack_require__(114); + var _UserComponent2 = __webpack_require__(124); var _UserComponent3 = _interopRequireDefault(_UserComponent2); @@ -13228,9 +15064,9 @@ module.exports = exports.default = UserField; -/***/ }, -/* 114 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 124 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -13309,5 +15145,5 @@ module.exports = exports.default = UserComponent; -/***/ } +/***/ }) /******/ ]); \ No newline at end of file diff --git a/lib/index.js b/lib/index.js index 96af4d6..1bb0ba8 100644 --- a/lib/index.js +++ b/lib/index.js @@ -43,7 +43,7 @@ module.exports = /************************************************************************/ /******/ ([ /* 0 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -74,75 +74,75 @@ module.exports = var _UserConstants2 = _interopRequireDefault(_UserConstants); - var _HomeRoute2 = __webpack_require__(95); + var _HomeRoute2 = __webpack_require__(105); var _HomeRoute3 = _interopRequireDefault(_HomeRoute2); - var _LoginRoute2 = __webpack_require__(96); + var _LoginRoute2 = __webpack_require__(106); var _LoginRoute3 = _interopRequireDefault(_LoginRoute2); - var _LogoutRoute2 = __webpack_require__(97); + var _LogoutRoute2 = __webpack_require__(107); var _LogoutRoute3 = _interopRequireDefault(_LogoutRoute2); - var _AuthenticatedRoute2 = __webpack_require__(98); + var _AuthenticatedRoute2 = __webpack_require__(108); var _AuthenticatedRoute3 = _interopRequireDefault(_AuthenticatedRoute2); - var _Authenticated2 = __webpack_require__(99); + var _Authenticated2 = __webpack_require__(109); var _Authenticated3 = _interopRequireDefault(_Authenticated2); - var _NotAuthenticated2 = __webpack_require__(100); + var _NotAuthenticated2 = __webpack_require__(110); var _NotAuthenticated3 = _interopRequireDefault(_NotAuthenticated2); - var _LoginLink2 = __webpack_require__(101); + var _LoginLink2 = __webpack_require__(111); var _LoginLink3 = _interopRequireDefault(_LoginLink2); - var _LogoutLink2 = __webpack_require__(102); + var _LogoutLink2 = __webpack_require__(112); var _LogoutLink3 = _interopRequireDefault(_LogoutLink2); - var _LoginForm2 = __webpack_require__(103); + var _LoginForm2 = __webpack_require__(113); var _LoginForm3 = _interopRequireDefault(_LoginForm2); - var _UserProfileForm2 = __webpack_require__(108); + var _UserProfileForm2 = __webpack_require__(118); var _UserProfileForm3 = _interopRequireDefault(_UserProfileForm2); - var _RegistrationForm2 = __webpack_require__(109); + var _RegistrationForm2 = __webpack_require__(119); var _RegistrationForm3 = _interopRequireDefault(_RegistrationForm2); - var _ResetPasswordForm2 = __webpack_require__(110); + var _ResetPasswordForm2 = __webpack_require__(120); var _ResetPasswordForm3 = _interopRequireDefault(_ResetPasswordForm2); - var _ChangePasswordForm2 = __webpack_require__(111); + var _ChangePasswordForm2 = __webpack_require__(121); var _ChangePasswordForm3 = _interopRequireDefault(_ChangePasswordForm2); - var _VerifyEmailView2 = __webpack_require__(112); + var _VerifyEmailView2 = __webpack_require__(122); var _VerifyEmailView3 = _interopRequireDefault(_VerifyEmailView2); - var _SocialLoginLink2 = __webpack_require__(106); + var _SocialLoginLink2 = __webpack_require__(116); var _SocialLoginLink3 = _interopRequireDefault(_SocialLoginLink2); - var _SocialLoginButton2 = __webpack_require__(105); + var _SocialLoginButton2 = __webpack_require__(115); var _SocialLoginButton3 = _interopRequireDefault(_SocialLoginButton2); - var _UserField2 = __webpack_require__(113); + var _UserField2 = __webpack_require__(123); var _UserField3 = _interopRequireDefault(_UserField2); - var _UserComponent2 = __webpack_require__(114); + var _UserComponent2 = __webpack_require__(124); var _UserComponent3 = _interopRequireDefault(_UserComponent2); @@ -185,9 +185,9 @@ module.exports = exports.default = _app2.default; -/***/ }, +/***/ }), /* 1 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -361,9 +361,9 @@ module.exports = exports.default = new App(); -/***/ }, +/***/ }), /* 2 */ -/***/ function(module, exports) { +/***/ (function(module, exports) { // Copyright Joyent, Inc. and other Node contributors. // @@ -669,9 +669,9 @@ module.exports = } -/***/ }, +/***/ }), /* 3 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -688,9 +688,9 @@ module.exports = exports.LocalStorage = _LocalStorage3.default; -/***/ }, +/***/ }), /* 4 */ -/***/ function(module, exports) { +/***/ (function(module, exports) { 'use strict'; @@ -743,9 +743,9 @@ module.exports = exports.default = LocalStorage; -/***/ }, +/***/ }), /* 5 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -777,9 +777,9 @@ module.exports = exports.UserService = _UserService3.default; exports.ClientApiUserService = _ClientApiUserService3.default; -/***/ }, +/***/ }), /* 6 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -921,7 +921,7 @@ module.exports = // Only set the X-Stormpath-Agent header if we're on the same domain as the requested URI. // This because we want to avoid CORS requests that require you to have to whitelist the X-Stormpath-Agent header. if (this.forceAgentHeader || _utils2.default.isRelativeUri(uri) || _utils2.default.isSameHost(uri, window.location.href)) { - headers['X-Stormpath-Agent'] = 'stormpath-sdk-react/' + ("3.0.0") + ' react/' + _react2.default.version; + headers['X-Stormpath-Agent'] = 'stormpath-sdk-react/' + ("3.1.0") + ' react/' + _react2.default.version; } makeHttpRequest(method, uri, body, headers, function (err, result) { @@ -953,15 +953,15 @@ module.exports = exports.default = BaseService; -/***/ }, +/***/ }), /* 7 */ -/***/ function(module, exports) { +/***/ (function(module, exports) { module.exports = require("react"); -/***/ }, +/***/ }), /* 8 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -1602,9 +1602,9 @@ module.exports = exports.default = new Utils(); -/***/ }, +/***/ }), /* 9 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { // Copyright Joyent, Inc. and other Node contributors. // @@ -2340,9 +2340,9 @@ module.exports = }; -/***/ }, +/***/ }), /* 10 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_RESULT__;/* WEBPACK VAR INJECTION */(function(module, global) {/*! https://mths.be/punycode v1.3.2 by @mathias */ ;(function(root) { @@ -2875,9 +2875,9 @@ module.exports = /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(11)(module), (function() { return this; }()))) -/***/ }, +/***/ }), /* 11 */ -/***/ function(module, exports) { +/***/ (function(module, exports) { module.exports = function(module) { if(!module.webpackPolyfill) { @@ -2891,9 +2891,9 @@ module.exports = } -/***/ }, +/***/ }), /* 12 */ -/***/ function(module, exports) { +/***/ (function(module, exports) { 'use strict'; @@ -2913,9 +2913,9 @@ module.exports = }; -/***/ }, +/***/ }), /* 13 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -2923,9 +2923,9 @@ module.exports = exports.encode = exports.stringify = __webpack_require__(15); -/***/ }, +/***/ }), /* 14 */ -/***/ function(module, exports) { +/***/ (function(module, exports) { // Copyright Joyent, Inc. and other Node contributors. // @@ -3009,9 +3009,9 @@ module.exports = }; -/***/ }, +/***/ }), /* 15 */ -/***/ function(module, exports) { +/***/ (function(module, exports) { // Copyright Joyent, Inc. and other Node contributors. // @@ -3079,9 +3079,9 @@ module.exports = }; -/***/ }, +/***/ }), /* 16 */ -/***/ function(module, exports) { +/***/ (function(module, exports) { "use strict"; @@ -3124,9 +3124,9 @@ module.exports = exports.default = RequestPool; -/***/ }, +/***/ }), /* 17 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -3251,9 +3251,9 @@ module.exports = exports.default = UserService; -/***/ }, +/***/ }), /* 18 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -3472,9 +3472,9 @@ module.exports = exports.default = ClientApiUserService; -/***/ }, +/***/ }), /* 19 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -3537,9 +3537,9 @@ module.exports = exports.default = new TokenActions(); -/***/ }, +/***/ }), /* 20 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -3620,9 +3620,9 @@ module.exports = exports.default = new Context(); -/***/ }, +/***/ }), /* 21 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -3703,9 +3703,9 @@ module.exports = exports.default = SessionStore; -/***/ }, +/***/ }), /* 22 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -3754,9 +3754,9 @@ module.exports = exports.default = BaseStore; -/***/ }, +/***/ }), /* 23 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -3775,9 +3775,9 @@ module.exports = TOKEN_REFRESH: null }); -/***/ }, +/***/ }), /* 24 */ -/***/ function(module, exports) { +/***/ (function(module, exports) { /** * Copyright 2013-2014 Facebook, Inc. @@ -3834,9 +3834,9 @@ module.exports = module.exports = keyMirror; -/***/ }, +/***/ }), /* 25 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -3858,9 +3858,9 @@ module.exports = exports.UserConstants = _UserConstants3.default; exports.TokenConstants = _TokenConstants3.default; -/***/ }, +/***/ }), /* 26 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -3885,9 +3885,9 @@ module.exports = USER_LOGOUT: null }); -/***/ }, +/***/ }), /* 27 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -3914,9 +3914,9 @@ module.exports = exports.SessionStore = _SessionStore3.default; exports.TokenStore = _TokenStore3.default; -/***/ }, +/***/ }), /* 28 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -4108,9 +4108,9 @@ module.exports = exports.default = UserStore; -/***/ }, +/***/ }), /* 29 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -4226,9 +4226,9 @@ module.exports = exports.default = new UserActions(); -/***/ }, +/***/ }), /* 30 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -4329,9 +4329,9 @@ module.exports = exports.default = TokenStore; -/***/ }, +/***/ }), /* 31 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -4353,9 +4353,9 @@ module.exports = exports.FluxDispatcher = _FluxDispatcher3.default; exports.ReduxDispatcher = _ReduxDispatcher3.default; -/***/ }, +/***/ }), /* 32 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -4406,12 +4406,12 @@ module.exports = exports.default = FluxDispatcher; -/***/ }, +/***/ }), /* 33 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { /** - * Copyright (c) 2014-2015, Facebook, Inc. + * Copyright (c) 2014-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the @@ -4422,12 +4422,12 @@ module.exports = module.exports.Dispatcher = __webpack_require__(34); -/***/ }, +/***/ }), /* 34 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {/** - * Copyright (c) 2014-2015, Facebook, Inc. + * Copyright (c) 2014-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the @@ -4659,9 +4659,9 @@ module.exports = module.exports = Dispatcher; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, +/***/ }), /* 35 */ -/***/ function(module, exports) { +/***/ (function(module, exports) { // shim for using process in browser var process = module.exports = {}; @@ -4833,6 +4833,10 @@ module.exports = process.removeListener = noop; process.removeAllListeners = noop; process.emit = noop; + process.prependListener = noop; + process.prependOnceListener = noop; + + process.listeners = function (name) { return [] } process.binding = function (name) { throw new Error('process.binding is not supported'); @@ -4845,17 +4849,15 @@ module.exports = process.umask = function() { return 0; }; -/***/ }, +/***/ }), /* 36 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {/** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ @@ -4906,9 +4908,9 @@ module.exports = module.exports = invariant; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, +/***/ }), /* 37 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -4948,9 +4950,9 @@ module.exports = exports.default = ReduxDispatcher; -/***/ }, +/***/ }), /* 38 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -4979,19 +4981,19 @@ module.exports = var _context2 = _interopRequireDefault(_context); - var _HomeRoute = __webpack_require__(95); + var _HomeRoute = __webpack_require__(105); var _HomeRoute2 = _interopRequireDefault(_HomeRoute); - var _LoginRoute = __webpack_require__(96); + var _LoginRoute = __webpack_require__(106); var _LoginRoute2 = _interopRequireDefault(_LoginRoute); - var _LogoutRoute = __webpack_require__(97); + var _LogoutRoute = __webpack_require__(107); var _LogoutRoute2 = _interopRequireDefault(_LogoutRoute); - var _AuthenticatedRoute = __webpack_require__(98); + var _AuthenticatedRoute = __webpack_require__(108); var _AuthenticatedRoute2 = _interopRequireDefault(_AuthenticatedRoute); @@ -5136,9 +5138,9 @@ module.exports = }, _class.defaultProps = _reactRouter.Router.defaultProps, _temp); exports.default = Router; -/***/ }, +/***/ }), /* 39 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -5169,7 +5171,7 @@ module.exports = } }); - var _PatternUtils = __webpack_require__(42); + var _PatternUtils = __webpack_require__(50); Object.defineProperty(exports, 'formatPattern', { enumerable: true, @@ -5178,63 +5180,63 @@ module.exports = } }); - var _Router2 = __webpack_require__(44); + var _Router2 = __webpack_require__(52); var _Router3 = _interopRequireDefault(_Router2); - var _Link2 = __webpack_require__(60); + var _Link2 = __webpack_require__(71); var _Link3 = _interopRequireDefault(_Link2); - var _IndexLink2 = __webpack_require__(61); + var _IndexLink2 = __webpack_require__(72); var _IndexLink3 = _interopRequireDefault(_IndexLink2); - var _withRouter2 = __webpack_require__(62); + var _withRouter2 = __webpack_require__(73); var _withRouter3 = _interopRequireDefault(_withRouter2); - var _IndexRedirect2 = __webpack_require__(64); + var _IndexRedirect2 = __webpack_require__(75); var _IndexRedirect3 = _interopRequireDefault(_IndexRedirect2); - var _IndexRoute2 = __webpack_require__(66); + var _IndexRoute2 = __webpack_require__(77); var _IndexRoute3 = _interopRequireDefault(_IndexRoute2); - var _Redirect2 = __webpack_require__(65); + var _Redirect2 = __webpack_require__(76); var _Redirect3 = _interopRequireDefault(_Redirect2); - var _Route2 = __webpack_require__(67); + var _Route2 = __webpack_require__(78); var _Route3 = _interopRequireDefault(_Route2); - var _RouterContext2 = __webpack_require__(56); + var _RouterContext2 = __webpack_require__(67); var _RouterContext3 = _interopRequireDefault(_RouterContext2); - var _match2 = __webpack_require__(68); + var _match2 = __webpack_require__(79); var _match3 = _interopRequireDefault(_match2); - var _useRouterHistory2 = __webpack_require__(82); + var _useRouterHistory2 = __webpack_require__(92); var _useRouterHistory3 = _interopRequireDefault(_useRouterHistory2); - var _applyRouterMiddleware2 = __webpack_require__(83); + var _applyRouterMiddleware2 = __webpack_require__(93); var _applyRouterMiddleware3 = _interopRequireDefault(_applyRouterMiddleware2); - var _browserHistory2 = __webpack_require__(84); + var _browserHistory2 = __webpack_require__(94); var _browserHistory3 = _interopRequireDefault(_browserHistory2); - var _hashHistory2 = __webpack_require__(92); + var _hashHistory2 = __webpack_require__(102); var _hashHistory3 = _interopRequireDefault(_hashHistory2); - var _createMemoryHistory2 = __webpack_require__(70); + var _createMemoryHistory2 = __webpack_require__(81); var _createMemoryHistory3 = _interopRequireDefault(_createMemoryHistory2); @@ -5266,9 +5268,9 @@ module.exports = exports.hashHistory = _hashHistory3.default; exports.createMemoryHistory = _createMemoryHistory3.default; -/***/ }, +/***/ }), /* 40 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -5364,531 +5366,2453 @@ module.exports = return routes; } -/***/ }, +/***/ }), /* 41 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { 'use strict'; exports.__esModule = true; exports.locationShape = exports.routerShape = undefined; - var _react = __webpack_require__(7); + var _propTypes = __webpack_require__(42); - var func = _react.PropTypes.func, - object = _react.PropTypes.object, - shape = _react.PropTypes.shape, - string = _react.PropTypes.string; - var routerShape = exports.routerShape = shape({ - push: func.isRequired, - replace: func.isRequired, - go: func.isRequired, - goBack: func.isRequired, - goForward: func.isRequired, - setRouteLeaveHook: func.isRequired, - isActive: func.isRequired + var routerShape = exports.routerShape = (0, _propTypes.shape)({ + push: _propTypes.func.isRequired, + replace: _propTypes.func.isRequired, + go: _propTypes.func.isRequired, + goBack: _propTypes.func.isRequired, + goForward: _propTypes.func.isRequired, + setRouteLeaveHook: _propTypes.func.isRequired, + isActive: _propTypes.func.isRequired }); - var locationShape = exports.locationShape = shape({ - pathname: string.isRequired, - search: string.isRequired, - state: object, - action: string.isRequired, - key: string + var locationShape = exports.locationShape = (0, _propTypes.shape)({ + pathname: _propTypes.string.isRequired, + search: _propTypes.string.isRequired, + state: _propTypes.object, + action: _propTypes.string.isRequired, + key: _propTypes.string }); -/***/ }, +/***/ }), /* 42 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { - /* WEBPACK VAR INJECTION */(function(process) {'use strict'; + /* WEBPACK VAR INJECTION */(function(process) {/** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ - exports.__esModule = true; - exports.compilePattern = compilePattern; - exports.matchPattern = matchPattern; - exports.getParamNames = getParamNames; - exports.getParams = getParams; - exports.formatPattern = formatPattern; + if (process.env.NODE_ENV !== 'production') { + var REACT_ELEMENT_TYPE = (typeof Symbol === 'function' && + Symbol.for && + Symbol.for('react.element')) || + 0xeac7; + + var isValidElement = function(object) { + return typeof object === 'object' && + object !== null && + object.$$typeof === REACT_ELEMENT_TYPE; + }; - var _invariant = __webpack_require__(43); + // By explicitly using `prop-types` you are opting into new development behavior. + // http://fb.me/prop-types-in-prod + var throwOnDirectAccess = true; + module.exports = __webpack_require__(43)(isValidElement, throwOnDirectAccess); + } else { + // By explicitly using `prop-types` you are opting into new production behavior. + // http://fb.me/prop-types-in-prod + module.exports = __webpack_require__(49)(); + } - var _invariant2 = _interopRequireDefault(_invariant); + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } +/***/ }), +/* 43 */ +/***/ (function(module, exports, __webpack_require__) { - function escapeRegExp(string) { - return string.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); - } + /* WEBPACK VAR INJECTION */(function(process) {/** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ - function _compilePattern(pattern) { - var regexpSource = ''; - var paramNames = []; - var tokens = []; + 'use strict'; - var match = void 0, - lastIndex = 0, - matcher = /:([a-zA-Z_$][a-zA-Z0-9_$]*)|\*\*|\*|\(|\)|\\\(|\\\)/g; - while (match = matcher.exec(pattern)) { - if (match.index !== lastIndex) { - tokens.push(pattern.slice(lastIndex, match.index)); - regexpSource += escapeRegExp(pattern.slice(lastIndex, match.index)); - } + var emptyFunction = __webpack_require__(44); + var invariant = __webpack_require__(36); + var warning = __webpack_require__(45); + var assign = __webpack_require__(46); - if (match[1]) { - regexpSource += '([^/]+)'; - paramNames.push(match[1]); - } else if (match[0] === '**') { - regexpSource += '(.*)'; - paramNames.push('splat'); - } else if (match[0] === '*') { - regexpSource += '(.*?)'; - paramNames.push('splat'); - } else if (match[0] === '(') { - regexpSource += '(?:'; - } else if (match[0] === ')') { - regexpSource += ')?'; - } else if (match[0] === '\\(') { - regexpSource += '\\('; - } else if (match[0] === '\\)') { - regexpSource += '\\)'; - } + var ReactPropTypesSecret = __webpack_require__(47); + var checkPropTypes = __webpack_require__(48); - tokens.push(match[0]); + module.exports = function(isValidElement, throwOnDirectAccess) { + /* global Symbol */ + var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator; + var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec. - lastIndex = matcher.lastIndex; + /** + * Returns the iterator method function contained on the iterable object. + * + * Be sure to invoke the function with the iterable as context: + * + * var iteratorFn = getIteratorFn(myIterable); + * if (iteratorFn) { + * var iterator = iteratorFn.call(myIterable); + * ... + * } + * + * @param {?object} maybeIterable + * @return {?function} + */ + function getIteratorFn(maybeIterable) { + var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]); + if (typeof iteratorFn === 'function') { + return iteratorFn; + } } - if (lastIndex !== pattern.length) { - tokens.push(pattern.slice(lastIndex, pattern.length)); - regexpSource += escapeRegExp(pattern.slice(lastIndex, pattern.length)); - } + /** + * Collection of methods that allow declaration and validation of props that are + * supplied to React components. Example usage: + * + * var Props = require('ReactPropTypes'); + * var MyArticle = React.createClass({ + * propTypes: { + * // An optional string prop named "description". + * description: Props.string, + * + * // A required enum prop named "category". + * category: Props.oneOf(['News','Photos']).isRequired, + * + * // A prop named "dialog" that requires an instance of Dialog. + * dialog: Props.instanceOf(Dialog).isRequired + * }, + * render: function() { ... } + * }); + * + * A more formal specification of how these methods are used: + * + * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...) + * decl := ReactPropTypes.{type}(.isRequired)? + * + * Each and every declaration produces a function with the same signature. This + * allows the creation of custom validation functions. For example: + * + * var MyLink = React.createClass({ + * propTypes: { + * // An optional string or URI prop named "href". + * href: function(props, propName, componentName) { + * var propValue = props[propName]; + * if (propValue != null && typeof propValue !== 'string' && + * !(propValue instanceof URI)) { + * return new Error( + * 'Expected a string or an URI for ' + propName + ' in ' + + * componentName + * ); + * } + * } + * }, + * render: function() {...} + * }); + * + * @internal + */ - return { - pattern: pattern, - regexpSource: regexpSource, - paramNames: paramNames, - tokens: tokens + var ANONYMOUS = '<>'; + + // Important! + // Keep this list in sync with production version in `./factoryWithThrowingShims.js`. + var ReactPropTypes = { + array: createPrimitiveTypeChecker('array'), + bool: createPrimitiveTypeChecker('boolean'), + func: createPrimitiveTypeChecker('function'), + number: createPrimitiveTypeChecker('number'), + object: createPrimitiveTypeChecker('object'), + string: createPrimitiveTypeChecker('string'), + symbol: createPrimitiveTypeChecker('symbol'), + + any: createAnyTypeChecker(), + arrayOf: createArrayOfTypeChecker, + element: createElementTypeChecker(), + instanceOf: createInstanceTypeChecker, + node: createNodeChecker(), + objectOf: createObjectOfTypeChecker, + oneOf: createEnumTypeChecker, + oneOfType: createUnionTypeChecker, + shape: createShapeTypeChecker, + exact: createStrictShapeTypeChecker, }; - } - var CompiledPatternsCache = Object.create(null); + /** + * inlined Object.is polyfill to avoid requiring consumers ship their own + * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is + */ + /*eslint-disable no-self-compare*/ + function is(x, y) { + // SameValue algorithm + if (x === y) { + // Steps 1-5, 7-10 + // Steps 6.b-6.e: +0 != -0 + return x !== 0 || 1 / x === 1 / y; + } else { + // Step 6.a: NaN == NaN + return x !== x && y !== y; + } + } + /*eslint-enable no-self-compare*/ - function compilePattern(pattern) { - if (!CompiledPatternsCache[pattern]) CompiledPatternsCache[pattern] = _compilePattern(pattern); + /** + * We use an Error-like object for backward compatibility as people may call + * PropTypes directly and inspect their output. However, we don't use real + * Errors anymore. We don't inspect their stack anyway, and creating them + * is prohibitively expensive if they are created too often, such as what + * happens in oneOfType() for any type before the one that matched. + */ + function PropTypeError(message) { + this.message = message; + this.stack = ''; + } + // Make `instanceof Error` still work for returned errors. + PropTypeError.prototype = Error.prototype; + + function createChainableTypeChecker(validate) { + if (process.env.NODE_ENV !== 'production') { + var manualPropTypeCallCache = {}; + var manualPropTypeWarningCount = 0; + } + function checkType(isRequired, props, propName, componentName, location, propFullName, secret) { + componentName = componentName || ANONYMOUS; + propFullName = propFullName || propName; + + if (secret !== ReactPropTypesSecret) { + if (throwOnDirectAccess) { + // New behavior only for users of `prop-types` package + invariant( + false, + 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' + + 'Use `PropTypes.checkPropTypes()` to call them. ' + + 'Read more at http://fb.me/use-check-prop-types' + ); + } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') { + // Old behavior for people using React.PropTypes + var cacheKey = componentName + ':' + propName; + if ( + !manualPropTypeCallCache[cacheKey] && + // Avoid spamming the console because they are often not actionable except for lib authors + manualPropTypeWarningCount < 3 + ) { + warning( + false, + 'You are manually calling a React.PropTypes validation ' + + 'function for the `%s` prop on `%s`. This is deprecated ' + + 'and will throw in the standalone `prop-types` package. ' + + '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 + ); + manualPropTypeCallCache[cacheKey] = true; + manualPropTypeWarningCount++; + } + } + } + if (props[propName] == null) { + if (isRequired) { + if (props[propName] === null) { + return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.')); + } + return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.')); + } + return null; + } else { + return validate(props, propName, componentName, location, propFullName); + } + } - return CompiledPatternsCache[pattern]; - } + var chainedCheckType = checkType.bind(null, false); + chainedCheckType.isRequired = checkType.bind(null, true); - /** - * Attempts to match a pattern on the given pathname. Patterns may use - * the following special characters: - * - * - :paramName Matches a URL segment up to the next /, ?, or #. The - * captured string is considered a "param" - * - () Wraps a segment of the URL that is optional - * - * Consumes (non-greedy) all characters up to the next - * character in the pattern, or to the end of the URL if - * there is none - * - ** Consumes (greedy) all characters up to the next character - * in the pattern, or to the end of the URL if there is none - * - * The function calls callback(error, matched) when finished. - * The return value is an object with the following properties: - * - * - remainingPathname - * - paramNames - * - paramValues - */ - function matchPattern(pattern, pathname) { - // Ensure pattern starts with leading slash for consistency with pathname. - if (pattern.charAt(0) !== '/') { - pattern = '/' + pattern; + return chainedCheckType; } - var _compilePattern2 = compilePattern(pattern), - regexpSource = _compilePattern2.regexpSource, - paramNames = _compilePattern2.paramNames, - tokens = _compilePattern2.tokens; + function createPrimitiveTypeChecker(expectedType) { + function validate(props, propName, componentName, location, propFullName, secret) { + var propValue = props[propName]; + var propType = getPropType(propValue); + if (propType !== expectedType) { + // `propValue` being instance of, say, date/regexp, pass the 'object' + // check, but we can offer a more precise error message here rather than + // 'of type `object`'. + var preciseType = getPreciseType(propValue); - if (pattern.charAt(pattern.length - 1) !== '/') { - regexpSource += '/?'; // Allow optional path separator at end. + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.')); + } + return null; + } + return createChainableTypeChecker(validate); } - // Special-case patterns like '*' for catch-all routes. - if (tokens[tokens.length - 1] === '*') { - regexpSource += '$'; + function createAnyTypeChecker() { + return createChainableTypeChecker(emptyFunction.thatReturnsNull); } - var match = pathname.match(new RegExp('^' + regexpSource, 'i')); - if (match == null) { - return null; + function createArrayOfTypeChecker(typeChecker) { + function validate(props, propName, componentName, location, propFullName) { + if (typeof typeChecker !== 'function') { + return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.'); + } + var propValue = props[propName]; + if (!Array.isArray(propValue)) { + var propType = getPropType(propValue); + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.')); + } + for (var i = 0; i < propValue.length; i++) { + var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret); + if (error instanceof Error) { + return error; + } + } + return null; + } + return createChainableTypeChecker(validate); } - var matchedPath = match[0]; - var remainingPathname = pathname.substr(matchedPath.length); - - if (remainingPathname) { - // Require that the match ends at a path separator, if we didn't match - // the full path, so any remaining pathname is a new path segment. - if (matchedPath.charAt(matchedPath.length - 1) !== '/') { + function createElementTypeChecker() { + function validate(props, propName, componentName, location, propFullName) { + var propValue = props[propName]; + if (!isValidElement(propValue)) { + var propType = getPropType(propValue); + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.')); + } return null; } + return createChainableTypeChecker(validate); + } - // If there is a remaining pathname, treat the path separator as part of - // the remaining pathname for properly continuing the match. - remainingPathname = '/' + remainingPathname; + function createInstanceTypeChecker(expectedClass) { + function validate(props, propName, componentName, location, propFullName) { + if (!(props[propName] instanceof expectedClass)) { + var expectedClassName = expectedClass.name || ANONYMOUS; + var actualClassName = getClassName(props[propName]); + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.')); + } + return null; + } + return createChainableTypeChecker(validate); } - return { - remainingPathname: remainingPathname, - paramNames: paramNames, - paramValues: match.slice(1).map(function (v) { - return v && decodeURIComponent(v); - }) - }; - } + function createEnumTypeChecker(expectedValues) { + if (!Array.isArray(expectedValues)) { + process.env.NODE_ENV !== 'production' ? warning(false, 'Invalid argument supplied to oneOf, expected an instance of array.') : void 0; + return emptyFunction.thatReturnsNull; + } - function getParamNames(pattern) { - return compilePattern(pattern).paramNames; - } + function validate(props, propName, componentName, location, propFullName) { + var propValue = props[propName]; + for (var i = 0; i < expectedValues.length; i++) { + if (is(propValue, expectedValues[i])) { + return null; + } + } - function getParams(pattern, pathname) { - var match = matchPattern(pattern, pathname); - if (!match) { - return null; + var valuesString = JSON.stringify(expectedValues); + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.')); + } + return createChainableTypeChecker(validate); } - var paramNames = match.paramNames, - paramValues = match.paramValues; + function createObjectOfTypeChecker(typeChecker) { + function validate(props, propName, componentName, location, propFullName) { + if (typeof typeChecker !== 'function') { + return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.'); + } + var propValue = props[propName]; + var propType = getPropType(propValue); + if (propType !== 'object') { + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.')); + } + for (var key in propValue) { + if (propValue.hasOwnProperty(key)) { + var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret); + if (error instanceof Error) { + return error; + } + } + } + return null; + } + return createChainableTypeChecker(validate); + } - var params = {}; + function createUnionTypeChecker(arrayOfTypeCheckers) { + if (!Array.isArray(arrayOfTypeCheckers)) { + process.env.NODE_ENV !== 'production' ? warning(false, 'Invalid argument supplied to oneOfType, expected an instance of array.') : void 0; + return emptyFunction.thatReturnsNull; + } - paramNames.forEach(function (paramName, index) { - params[paramName] = paramValues[index]; - }); + for (var i = 0; i < arrayOfTypeCheckers.length; i++) { + var checker = arrayOfTypeCheckers[i]; + if (typeof checker !== 'function') { + warning( + false, + 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' + + 'received %s at index %s.', + getPostfixForTypeWarning(checker), + i + ); + return emptyFunction.thatReturnsNull; + } + } - return params; - } + function validate(props, propName, componentName, location, propFullName) { + for (var i = 0; i < arrayOfTypeCheckers.length; i++) { + var checker = arrayOfTypeCheckers[i]; + if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret) == null) { + return null; + } + } - /** - * Returns a version of the given pattern with params interpolated. Throws - * if there is a dynamic segment of the pattern for which there is no param. - */ - function formatPattern(pattern, params) { - params = params || {}; + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.')); + } + return createChainableTypeChecker(validate); + } - var _compilePattern3 = compilePattern(pattern), - tokens = _compilePattern3.tokens; + function createNodeChecker() { + function validate(props, propName, componentName, location, propFullName) { + if (!isNode(props[propName])) { + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.')); + } + return null; + } + return createChainableTypeChecker(validate); + } - var parenCount = 0, - pathname = '', - splatIndex = 0, - parenHistory = []; + function createShapeTypeChecker(shapeTypes) { + function validate(props, propName, componentName, location, propFullName) { + var propValue = props[propName]; + var propType = getPropType(propValue); + if (propType !== 'object') { + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.')); + } + for (var key in shapeTypes) { + var checker = shapeTypes[key]; + if (!checker) { + continue; + } + var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret); + if (error) { + return error; + } + } + return null; + } + return createChainableTypeChecker(validate); + } + + function createStrictShapeTypeChecker(shapeTypes) { + function validate(props, propName, componentName, location, propFullName) { + var propValue = props[propName]; + var propType = getPropType(propValue); + if (propType !== 'object') { + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.')); + } + // We need to check all keys in case some are required but missing from + // props. + var allKeys = assign({}, props[propName], shapeTypes); + for (var key in allKeys) { + var checker = shapeTypes[key]; + if (!checker) { + return new PropTypeError( + 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' + + '\nBad object: ' + JSON.stringify(props[propName], null, ' ') + + '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ') + ); + } + var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret); + if (error) { + return error; + } + } + return null; + } - var token = void 0, - paramName = void 0, - paramValue = void 0; - for (var i = 0, len = tokens.length; i < len; ++i) { - token = tokens[i]; + return createChainableTypeChecker(validate); + } - if (token === '*' || token === '**') { - paramValue = Array.isArray(params.splat) ? params.splat[splatIndex++] : params.splat; + function isNode(propValue) { + switch (typeof propValue) { + case 'number': + case 'string': + case 'undefined': + return true; + case 'boolean': + return !propValue; + case 'object': + if (Array.isArray(propValue)) { + return propValue.every(isNode); + } + if (propValue === null || isValidElement(propValue)) { + return true; + } - !(paramValue != null || parenCount > 0) ? process.env.NODE_ENV !== 'production' ? (0, _invariant2.default)(false, 'Missing splat #%s for path "%s"', splatIndex, pattern) : (0, _invariant2.default)(false) : void 0; + var iteratorFn = getIteratorFn(propValue); + if (iteratorFn) { + var iterator = iteratorFn.call(propValue); + var step; + if (iteratorFn !== propValue.entries) { + while (!(step = iterator.next()).done) { + if (!isNode(step.value)) { + return false; + } + } + } else { + // Iterator will provide entry [k,v] tuples rather than values. + while (!(step = iterator.next()).done) { + var entry = step.value; + if (entry) { + if (!isNode(entry[1])) { + return false; + } + } + } + } + } else { + return false; + } - if (paramValue != null) pathname += encodeURI(paramValue); - } else if (token === '(') { - parenHistory[parenCount] = ''; - parenCount += 1; - } else if (token === ')') { - var parenText = parenHistory.pop(); - parenCount -= 1; + return true; + default: + return false; + } + } - if (parenCount) parenHistory[parenCount - 1] += parenText;else pathname += parenText; - } else if (token === '\\(') { - pathname += '('; - } else if (token === '\\)') { - pathname += ')'; - } else if (token.charAt(0) === ':') { - paramName = token.substring(1); - paramValue = params[paramName]; + function isSymbol(propType, propValue) { + // Native Symbol. + if (propType === 'symbol') { + return true; + } - !(paramValue != null || parenCount > 0) ? process.env.NODE_ENV !== 'production' ? (0, _invariant2.default)(false, 'Missing "%s" parameter for path "%s"', paramName, pattern) : (0, _invariant2.default)(false) : void 0; + // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol' + if (propValue['@@toStringTag'] === 'Symbol') { + return true; + } - if (paramValue == null) { - if (parenCount) { - parenHistory[parenCount - 1] = ''; + // Fallback for non-spec compliant Symbols which are polyfilled. + if (typeof Symbol === 'function' && propValue instanceof Symbol) { + return true; + } - var curTokenIdx = tokens.indexOf(token); - var tokensSubset = tokens.slice(curTokenIdx, tokens.length); - var nextParenIdx = -1; + return false; + } - for (var _i = 0; _i < tokensSubset.length; _i++) { - if (tokensSubset[_i] == ')') { - nextParenIdx = _i; - break; - } - } + // Equivalent of `typeof` but with special handling for array and regexp. + function getPropType(propValue) { + var propType = typeof propValue; + if (Array.isArray(propValue)) { + return 'array'; + } + if (propValue instanceof RegExp) { + // Old webkits (at least until Android 4.0) return 'function' rather than + // 'object' for typeof a RegExp. We'll normalize this here so that /bla/ + // passes PropTypes.object. + return 'object'; + } + if (isSymbol(propType, propValue)) { + return 'symbol'; + } + return propType; + } - !(nextParenIdx > 0) ? process.env.NODE_ENV !== 'production' ? (0, _invariant2.default)(false, 'Path "%s" is missing end paren at segment "%s"', pattern, tokensSubset.join('')) : (0, _invariant2.default)(false) : void 0; + // This handles more types than `getPropType`. Only used for error messages. + // See `createPrimitiveTypeChecker`. + function getPreciseType(propValue) { + if (typeof propValue === 'undefined' || propValue === null) { + return '' + propValue; + } + var propType = getPropType(propValue); + if (propType === 'object') { + if (propValue instanceof Date) { + return 'date'; + } else if (propValue instanceof RegExp) { + return 'regexp'; + } + } + return propType; + } - // jump to ending paren - i = curTokenIdx + nextParenIdx - 1; - } - } else if (parenCount) parenHistory[parenCount - 1] += encodeURIComponent(paramValue);else pathname += encodeURIComponent(paramValue); - } else { - if (parenCount) parenHistory[parenCount - 1] += token;else pathname += token; + // Returns a string that is postfixed to a warning about an invalid type. + // For example, "undefined" or "of type array" + function getPostfixForTypeWarning(value) { + var type = getPreciseType(value); + switch (type) { + case 'array': + case 'object': + return 'an ' + type; + case 'boolean': + case 'date': + case 'regexp': + return 'a ' + type; + default: + return type; } } - !(parenCount <= 0) ? process.env.NODE_ENV !== 'production' ? (0, _invariant2.default)(false, 'Path "%s" is missing end paren', pattern) : (0, _invariant2.default)(false) : void 0; + // Returns class name of the object, if any. + function getClassName(propValue) { + if (!propValue.constructor || !propValue.constructor.name) { + return ANONYMOUS; + } + return propValue.constructor.name; + } + + ReactPropTypes.checkPropTypes = checkPropTypes; + ReactPropTypes.PropTypes = ReactPropTypes; + + return ReactPropTypes; + }; - return pathname.replace(/\/+/g, '/'); - } /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 43 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 44 */ +/***/ (function(module, exports) { - /* WEBPACK VAR INJECTION */(function(process) {/** - * Copyright 2013-2015, Facebook, Inc. - * All rights reserved. + "use strict"; + + /** + * Copyright (c) 2013-present, Facebook, Inc. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * */ - 'use strict'; + function makeEmptyFunction(arg) { + return function () { + return arg; + }; + } /** - * Use invariant() to assert state which your program assumes to be true. + * This function accepts and discards inputs; it has no side effects. This is + * primarily useful idiomatically for overridable function endpoints which + * always need to be callable, since JS lacks a null-call idiom ala Cocoa. + */ + var emptyFunction = function emptyFunction() {}; + + emptyFunction.thatReturns = makeEmptyFunction; + emptyFunction.thatReturnsFalse = makeEmptyFunction(false); + emptyFunction.thatReturnsTrue = makeEmptyFunction(true); + emptyFunction.thatReturnsNull = makeEmptyFunction(null); + emptyFunction.thatReturnsThis = function () { + return this; + }; + emptyFunction.thatReturnsArgument = function (arg) { + return arg; + }; + + module.exports = emptyFunction; + +/***/ }), +/* 45 */ +/***/ (function(module, exports, __webpack_require__) { + + /* WEBPACK VAR INJECTION */(function(process) {/** + * Copyright (c) 2014-present, Facebook, Inc. * - * Provide sprintf-style format (only %s is supported) and arguments - * to provide information about what broke and what you were - * expecting. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * - * The invariant message will be stripped in production, but the invariant - * will remain to ensure logic does not differ in production. */ - var invariant = function(condition, format, a, b, c, d, e, f) { - if (process.env.NODE_ENV !== 'production') { - if (format === undefined) { - throw new Error('invariant requires an error message argument'); + 'use strict'; + + var emptyFunction = __webpack_require__(44); + + /** + * Similar to invariant but only logs a warning if the condition is not met. + * This can be used to log issues in development environments in critical + * paths. Removing the logging code for production environments will keep the + * same logic and follow the same code paths. + */ + + var warning = emptyFunction; + + if (process.env.NODE_ENV !== 'production') { + var printWarning = function printWarning(format) { + for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + args[_key - 1] = arguments[_key]; } - } - if (!condition) { - var error; - if (format === undefined) { - error = new Error( - 'Minified exception occurred; use the non-minified dev environment ' + - 'for the full error message and additional helpful warnings.' - ); - } else { - var args = [a, b, c, d, e, f]; - var argIndex = 0; - error = new Error( - format.replace(/%s/g, function() { return args[argIndex++]; }) - ); - error.name = 'Invariant Violation'; + var argIndex = 0; + var message = 'Warning: ' + format.replace(/%s/g, function () { + return args[argIndex++]; + }); + if (typeof console !== 'undefined') { + console.error(message); } + try { + // --- Welcome to debugging React --- + // This error was thrown as a convenience so that you can use this stack + // to find the callsite that caused this warning to fire. + throw new Error(message); + } catch (x) {} + }; - error.framesToPop = 1; // we don't care about invariant's own frame - throw error; - } - }; + warning = function warning(condition, format) { + if (format === undefined) { + throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument'); + } - module.exports = invariant; + if (format.indexOf('Failed Composite propType: ') === 0) { + return; // Ignore CompositeComponent proptype check. + } - /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) + if (!condition) { + for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) { + args[_key2 - 2] = arguments[_key2]; + } -/***/ }, -/* 44 */ -/***/ function(module, exports, __webpack_require__) { + printWarning.apply(undefined, [format].concat(args)); + } + }; + } - /* WEBPACK VAR INJECTION */(function(process) {'use strict'; + module.exports = warning; + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) - exports.__esModule = true; +/***/ }), +/* 46 */ +/***/ (function(module, exports) { - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + /* + object-assign + (c) Sindre Sorhus + @license MIT + */ - var _invariant = __webpack_require__(43); + 'use strict'; + /* eslint-disable no-unused-vars */ + var getOwnPropertySymbols = Object.getOwnPropertySymbols; + var hasOwnProperty = Object.prototype.hasOwnProperty; + var propIsEnumerable = Object.prototype.propertyIsEnumerable; - var _invariant2 = _interopRequireDefault(_invariant); + function toObject(val) { + if (val === null || val === undefined) { + throw new TypeError('Object.assign cannot be called with null or undefined'); + } - var _react = __webpack_require__(7); + return Object(val); + } - var _react2 = _interopRequireDefault(_react); + function shouldUseNative() { + try { + if (!Object.assign) { + return false; + } - var _createTransitionManager2 = __webpack_require__(45); + // Detect buggy property enumeration order in older V8 versions. - var _createTransitionManager3 = _interopRequireDefault(_createTransitionManager2); + // https://bugs.chromium.org/p/v8/issues/detail?id=4118 + var test1 = new String('abc'); // eslint-disable-line no-new-wrappers + test1[5] = 'de'; + if (Object.getOwnPropertyNames(test1)[0] === '5') { + return false; + } - var _InternalPropTypes = __webpack_require__(55); + // https://bugs.chromium.org/p/v8/issues/detail?id=3056 + var test2 = {}; + for (var i = 0; i < 10; i++) { + test2['_' + String.fromCharCode(i)] = i; + } + var order2 = Object.getOwnPropertyNames(test2).map(function (n) { + return test2[n]; + }); + if (order2.join('') !== '0123456789') { + return false; + } - var _RouterContext = __webpack_require__(56); + // https://bugs.chromium.org/p/v8/issues/detail?id=3056 + var test3 = {}; + 'abcdefghijklmnopqrst'.split('').forEach(function (letter) { + test3[letter] = letter; + }); + if (Object.keys(Object.assign({}, test3)).join('') !== + 'abcdefghijklmnopqrst') { + return false; + } - var _RouterContext2 = _interopRequireDefault(_RouterContext); + return true; + } catch (err) { + // We don't expect any of the above to throw, but better to be safe. + return false; + } + } - var _RouteUtils = __webpack_require__(40); + module.exports = shouldUseNative() ? Object.assign : function (target, source) { + var from; + var to = toObject(target); + var symbols; - var _RouterUtils = __webpack_require__(59); + for (var s = 1; s < arguments.length; s++) { + from = Object(arguments[s]); - var _routerWarning = __webpack_require__(46); + for (var key in from) { + if (hasOwnProperty.call(from, key)) { + to[key] = from[key]; + } + } - var _routerWarning2 = _interopRequireDefault(_routerWarning); + if (getOwnPropertySymbols) { + symbols = getOwnPropertySymbols(from); + for (var i = 0; i < symbols.length; i++) { + if (propIsEnumerable.call(from, symbols[i])) { + to[symbols[i]] = from[symbols[i]]; + } + } + } + } - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + return to; + }; - function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } - var _React$PropTypes = _react2.default.PropTypes, - func = _React$PropTypes.func, - object = _React$PropTypes.object; +/***/ }), +/* 47 */ +/***/ (function(module, exports) { /** - * A is a high-level API for automatically setting up - * a router that renders a with all the props - * it needs each time the URL changes. + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ - var Router = _react2.default.createClass({ - displayName: 'Router', + 'use strict'; + + var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'; + + module.exports = ReactPropTypesSecret; + + +/***/ }), +/* 48 */ +/***/ (function(module, exports, __webpack_require__) { + + /* WEBPACK VAR INJECTION */(function(process) {/** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + + 'use strict'; + + if (process.env.NODE_ENV !== 'production') { + var invariant = __webpack_require__(36); + var warning = __webpack_require__(45); + var ReactPropTypesSecret = __webpack_require__(47); + var loggedTypeFailures = {}; + } + + /** + * Assert that the values match with the type specs. + * Error messages are memorized and will only be shown once. + * + * @param {object} typeSpecs Map of name to a ReactPropType + * @param {object} values Runtime values that need to be type-checked + * @param {string} location e.g. "prop", "context", "child context" + * @param {string} componentName Name of the component for error messages. + * @param {?Function} getStack Returns the component stack. + * @private + */ + function checkPropTypes(typeSpecs, values, location, componentName, getStack) { + if (process.env.NODE_ENV !== 'production') { + for (var typeSpecName in typeSpecs) { + if (typeSpecs.hasOwnProperty(typeSpecName)) { + var error; + // Prop type validation may throw. In case they do, we don't want to + // fail the render phase where it didn't fail before. So we log it. + // After these have been cleaned up, we'll let them throw. + try { + // This is intentionally an invariant that gets caught. It's the same + // behavior as without this statement except with a better message. + invariant(typeof typeSpecs[typeSpecName] === 'function', '%s: %s type `%s` is invalid; it must be a function, usually from ' + 'the `prop-types` package, but received `%s`.', componentName || 'React class', location, typeSpecName, typeof typeSpecs[typeSpecName]); + error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret); + } catch (ex) { + error = ex; + } + 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); + if (error instanceof Error && !(error.message in loggedTypeFailures)) { + // Only monitor this failure once because there tends to be a lot of the + // same error. + loggedTypeFailures[error.message] = true; + + var stack = getStack ? getStack() : ''; + + warning(false, 'Failed %s type: %s%s', location, error.message, stack != null ? stack : ''); + } + } + } + } + } + + module.exports = checkPropTypes; + + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) + +/***/ }), +/* 49 */ +/***/ (function(module, exports, __webpack_require__) { + + /** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + + 'use strict'; + + var emptyFunction = __webpack_require__(44); + var invariant = __webpack_require__(36); + var ReactPropTypesSecret = __webpack_require__(47); + + module.exports = function() { + function shim(props, propName, componentName, location, propFullName, secret) { + if (secret === ReactPropTypesSecret) { + // It is still safe when called from React. + return; + } + invariant( + false, + 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' + + 'Use PropTypes.checkPropTypes() to call them. ' + + 'Read more at http://fb.me/use-check-prop-types' + ); + }; + shim.isRequired = shim; + function getShim() { + return shim; + }; + // Important! + // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`. + var ReactPropTypes = { + array: shim, + bool: shim, + func: shim, + number: shim, + object: shim, + string: shim, + symbol: shim, + + any: shim, + arrayOf: getShim, + element: shim, + instanceOf: getShim, + node: shim, + objectOf: getShim, + oneOf: getShim, + oneOfType: getShim, + shape: getShim, + exact: getShim + }; + + ReactPropTypes.checkPropTypes = emptyFunction; + ReactPropTypes.PropTypes = ReactPropTypes; + + return ReactPropTypes; + }; + + +/***/ }), +/* 50 */ +/***/ (function(module, exports, __webpack_require__) { + + /* WEBPACK VAR INJECTION */(function(process) {'use strict'; + + exports.__esModule = true; + exports.compilePattern = compilePattern; + exports.matchPattern = matchPattern; + exports.getParamNames = getParamNames; + exports.getParams = getParams; + exports.formatPattern = formatPattern; + + var _invariant = __webpack_require__(51); + + var _invariant2 = _interopRequireDefault(_invariant); + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + function escapeRegExp(string) { + return string.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); + } + + function _compilePattern(pattern) { + var regexpSource = ''; + var paramNames = []; + var tokens = []; + + var match = void 0, + lastIndex = 0, + matcher = /:([a-zA-Z_$][a-zA-Z0-9_$]*)|\*\*|\*|\(|\)|\\\(|\\\)/g; + while (match = matcher.exec(pattern)) { + if (match.index !== lastIndex) { + tokens.push(pattern.slice(lastIndex, match.index)); + regexpSource += escapeRegExp(pattern.slice(lastIndex, match.index)); + } + + if (match[1]) { + regexpSource += '([^/]+)'; + paramNames.push(match[1]); + } else if (match[0] === '**') { + regexpSource += '(.*)'; + paramNames.push('splat'); + } else if (match[0] === '*') { + regexpSource += '(.*?)'; + paramNames.push('splat'); + } else if (match[0] === '(') { + regexpSource += '(?:'; + } else if (match[0] === ')') { + regexpSource += ')?'; + } else if (match[0] === '\\(') { + regexpSource += '\\('; + } else if (match[0] === '\\)') { + regexpSource += '\\)'; + } + + tokens.push(match[0]); + + lastIndex = matcher.lastIndex; + } + + if (lastIndex !== pattern.length) { + tokens.push(pattern.slice(lastIndex, pattern.length)); + regexpSource += escapeRegExp(pattern.slice(lastIndex, pattern.length)); + } + + return { + pattern: pattern, + regexpSource: regexpSource, + paramNames: paramNames, + tokens: tokens + }; + } + + var CompiledPatternsCache = Object.create(null); + + function compilePattern(pattern) { + if (!CompiledPatternsCache[pattern]) CompiledPatternsCache[pattern] = _compilePattern(pattern); + + return CompiledPatternsCache[pattern]; + } + + /** + * Attempts to match a pattern on the given pathname. Patterns may use + * the following special characters: + * + * - :paramName Matches a URL segment up to the next /, ?, or #. The + * captured string is considered a "param" + * - () Wraps a segment of the URL that is optional + * - * Consumes (non-greedy) all characters up to the next + * character in the pattern, or to the end of the URL if + * there is none + * - ** Consumes (greedy) all characters up to the next character + * in the pattern, or to the end of the URL if there is none + * + * The function calls callback(error, matched) when finished. + * The return value is an object with the following properties: + * + * - remainingPathname + * - paramNames + * - paramValues + */ + function matchPattern(pattern, pathname) { + // Ensure pattern starts with leading slash for consistency with pathname. + if (pattern.charAt(0) !== '/') { + pattern = '/' + pattern; + } + + var _compilePattern2 = compilePattern(pattern), + regexpSource = _compilePattern2.regexpSource, + paramNames = _compilePattern2.paramNames, + tokens = _compilePattern2.tokens; + + if (pattern.charAt(pattern.length - 1) !== '/') { + regexpSource += '/?'; // Allow optional path separator at end. + } + + // Special-case patterns like '*' for catch-all routes. + if (tokens[tokens.length - 1] === '*') { + regexpSource += '$'; + } + + var match = pathname.match(new RegExp('^' + regexpSource, 'i')); + if (match == null) { + return null; + } + + var matchedPath = match[0]; + var remainingPathname = pathname.substr(matchedPath.length); + + if (remainingPathname) { + // Require that the match ends at a path separator, if we didn't match + // the full path, so any remaining pathname is a new path segment. + if (matchedPath.charAt(matchedPath.length - 1) !== '/') { + return null; + } + + // If there is a remaining pathname, treat the path separator as part of + // the remaining pathname for properly continuing the match. + remainingPathname = '/' + remainingPathname; + } + + return { + remainingPathname: remainingPathname, + paramNames: paramNames, + paramValues: match.slice(1).map(function (v) { + return v && decodeURIComponent(v); + }) + }; + } + + function getParamNames(pattern) { + return compilePattern(pattern).paramNames; + } + + function getParams(pattern, pathname) { + var match = matchPattern(pattern, pathname); + if (!match) { + return null; + } + + var paramNames = match.paramNames, + paramValues = match.paramValues; + + var params = {}; + + paramNames.forEach(function (paramName, index) { + params[paramName] = paramValues[index]; + }); + + return params; + } + + /** + * Returns a version of the given pattern with params interpolated. Throws + * if there is a dynamic segment of the pattern for which there is no param. + */ + function formatPattern(pattern, params) { + params = params || {}; + + var _compilePattern3 = compilePattern(pattern), + tokens = _compilePattern3.tokens; + + var parenCount = 0, + pathname = '', + splatIndex = 0, + parenHistory = []; + + var token = void 0, + paramName = void 0, + paramValue = void 0; + for (var i = 0, len = tokens.length; i < len; ++i) { + token = tokens[i]; + + if (token === '*' || token === '**') { + paramValue = Array.isArray(params.splat) ? params.splat[splatIndex++] : params.splat; + + !(paramValue != null || parenCount > 0) ? process.env.NODE_ENV !== 'production' ? (0, _invariant2.default)(false, 'Missing splat #%s for path "%s"', splatIndex, pattern) : (0, _invariant2.default)(false) : void 0; + + if (paramValue != null) pathname += encodeURI(paramValue); + } else if (token === '(') { + parenHistory[parenCount] = ''; + parenCount += 1; + } else if (token === ')') { + var parenText = parenHistory.pop(); + parenCount -= 1; + + if (parenCount) parenHistory[parenCount - 1] += parenText;else pathname += parenText; + } else if (token === '\\(') { + pathname += '('; + } else if (token === '\\)') { + pathname += ')'; + } else if (token.charAt(0) === ':') { + paramName = token.substring(1); + paramValue = params[paramName]; + + !(paramValue != null || parenCount > 0) ? process.env.NODE_ENV !== 'production' ? (0, _invariant2.default)(false, 'Missing "%s" parameter for path "%s"', paramName, pattern) : (0, _invariant2.default)(false) : void 0; + + if (paramValue == null) { + if (parenCount) { + parenHistory[parenCount - 1] = ''; + + var curTokenIdx = tokens.indexOf(token); + var tokensSubset = tokens.slice(curTokenIdx, tokens.length); + var nextParenIdx = -1; + + for (var _i = 0; _i < tokensSubset.length; _i++) { + if (tokensSubset[_i] == ')') { + nextParenIdx = _i; + break; + } + } + + !(nextParenIdx > 0) ? process.env.NODE_ENV !== 'production' ? (0, _invariant2.default)(false, 'Path "%s" is missing end paren at segment "%s"', pattern, tokensSubset.join('')) : (0, _invariant2.default)(false) : void 0; + + // jump to ending paren + i = curTokenIdx + nextParenIdx - 1; + } + } else if (parenCount) parenHistory[parenCount - 1] += encodeURIComponent(paramValue);else pathname += encodeURIComponent(paramValue); + } else { + if (parenCount) parenHistory[parenCount - 1] += token;else pathname += token; + } + } + + !(parenCount <= 0) ? process.env.NODE_ENV !== 'production' ? (0, _invariant2.default)(false, 'Path "%s" is missing end paren', pattern) : (0, _invariant2.default)(false) : void 0; + + return pathname.replace(/\/+/g, '/'); + } + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) + +/***/ }), +/* 51 */ +/***/ (function(module, exports, __webpack_require__) { + + /* WEBPACK VAR INJECTION */(function(process) {/** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + + 'use strict'; + + /** + * Use invariant() to assert state which your program assumes to be true. + * + * Provide sprintf-style format (only %s is supported) and arguments + * to provide information about what broke and what you were + * expecting. + * + * The invariant message will be stripped in production, but the invariant + * will remain to ensure logic does not differ in production. + */ + + var invariant = function(condition, format, a, b, c, d, e, f) { + if (process.env.NODE_ENV !== 'production') { + if (format === undefined) { + throw new Error('invariant requires an error message argument'); + } + } + + if (!condition) { + var error; + if (format === undefined) { + error = new Error( + 'Minified exception occurred; use the non-minified dev environment ' + + 'for the full error message and additional helpful warnings.' + ); + } else { + var args = [a, b, c, d, e, f]; + var argIndex = 0; + error = new Error( + format.replace(/%s/g, function() { return args[argIndex++]; }) + ); + error.name = 'Invariant Violation'; + } + + error.framesToPop = 1; // we don't care about invariant's own frame + throw error; + } + }; + + module.exports = invariant; + + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) + +/***/ }), +/* 52 */ +/***/ (function(module, exports, __webpack_require__) { + + /* WEBPACK VAR INJECTION */(function(process) {'use strict'; + + exports.__esModule = true; + + var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + + var _invariant = __webpack_require__(51); + + var _invariant2 = _interopRequireDefault(_invariant); + + var _react = __webpack_require__(7); + + var _react2 = _interopRequireDefault(_react); + + var _createReactClass = __webpack_require__(53); + + var _createReactClass2 = _interopRequireDefault(_createReactClass); + + var _propTypes = __webpack_require__(42); + + var _createTransitionManager2 = __webpack_require__(56); + + var _createTransitionManager3 = _interopRequireDefault(_createTransitionManager2); + + var _InternalPropTypes = __webpack_require__(66); + + var _RouterContext = __webpack_require__(67); + + var _RouterContext2 = _interopRequireDefault(_RouterContext); + + var _RouteUtils = __webpack_require__(40); + + var _RouterUtils = __webpack_require__(70); + + var _routerWarning = __webpack_require__(57); + + var _routerWarning2 = _interopRequireDefault(_routerWarning); + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } + + var propTypes = { + history: _propTypes.object, + children: _InternalPropTypes.routes, + routes: _InternalPropTypes.routes, // alias for children + render: _propTypes.func, + createElement: _propTypes.func, + onError: _propTypes.func, + onUpdate: _propTypes.func, + + // PRIVATE: For client-side rehydration of server match. + matchContext: _propTypes.object + + /** + * A is a high-level API for automatically setting up + * a router that renders a with all the props + * it needs each time the URL changes. + */ + };var Router = (0, _createReactClass2.default)({ + displayName: 'Router', + + propTypes: propTypes, + + getDefaultProps: function getDefaultProps() { + return { + render: function render(props) { + return _react2.default.createElement(_RouterContext2.default, props); + } + }; + }, + getInitialState: function getInitialState() { + return { + location: null, + routes: null, + params: null, + components: null + }; + }, + handleError: function handleError(error) { + if (this.props.onError) { + this.props.onError.call(this, error); + } else { + // Throw errors by default so we don't silently swallow them! + throw error; // This error probably occurred in getChildRoutes or getComponents. + } + }, + createRouterObject: function createRouterObject(state) { + var matchContext = this.props.matchContext; + + if (matchContext) { + return matchContext.router; + } + + var history = this.props.history; + + return (0, _RouterUtils.createRouterObject)(history, this.transitionManager, state); + }, + createTransitionManager: function createTransitionManager() { + var matchContext = this.props.matchContext; + + if (matchContext) { + return matchContext.transitionManager; + } + + var history = this.props.history; + var _props = this.props, + routes = _props.routes, + children = _props.children; + + + !history.getCurrentLocation ? process.env.NODE_ENV !== 'production' ? (0, _invariant2.default)(false, 'You have provided a history object created with history v4.x or v2.x ' + 'and earlier. This version of React Router is only compatible with v3 ' + 'history objects. Please change to history v3.x.') : (0, _invariant2.default)(false) : void 0; + + return (0, _createTransitionManager3.default)(history, (0, _RouteUtils.createRoutes)(routes || children)); + }, + componentWillMount: function componentWillMount() { + var _this = this; + this.transitionManager = this.createTransitionManager(); + this.router = this.createRouterObject(this.state); - propTypes: { - history: object, - children: _InternalPropTypes.routes, - routes: _InternalPropTypes.routes, // alias for children - render: func, - createElement: func, - onError: func, - onUpdate: func, - - // PRIVATE: For client-side rehydration of server match. - matchContext: object + this._unlisten = this.transitionManager.listen(function (error, state) { + if (error) { + _this.handleError(error); + } else { + // Keep the identity of this.router because of a caveat in ContextUtils: + // they only work if the object identity is preserved. + (0, _RouterUtils.assignRouterState)(_this.router, state); + _this.setState(state, _this.props.onUpdate); + } + }); }, - getDefaultProps: function getDefaultProps() { - return { - render: function render(props) { - return _react2.default.createElement(_RouterContext2.default, props); + + /* istanbul ignore next: sanity check */ + componentWillReceiveProps: function componentWillReceiveProps(nextProps) { + process.env.NODE_ENV !== 'production' ? (0, _routerWarning2.default)(nextProps.history === this.props.history, 'You cannot change ; it will be ignored') : void 0; + + process.env.NODE_ENV !== 'production' ? (0, _routerWarning2.default)((nextProps.routes || nextProps.children) === (this.props.routes || this.props.children), 'You cannot change ; it will be ignored') : void 0; + }, + componentWillUnmount: function componentWillUnmount() { + if (this._unlisten) this._unlisten(); + }, + render: function render() { + var _state = this.state, + location = _state.location, + routes = _state.routes, + params = _state.params, + components = _state.components; + + var _props2 = this.props, + createElement = _props2.createElement, + render = _props2.render, + props = _objectWithoutProperties(_props2, ['createElement', 'render']); + + if (location == null) return null; // Async match + + // Only forward non-Router-specific props to routing context, as those are + // the only ones that might be custom routing context props. + Object.keys(propTypes).forEach(function (propType) { + return delete props[propType]; + }); + + return render(_extends({}, props, { + router: this.router, + location: location, + routes: routes, + params: params, + components: components, + createElement: createElement + })); + } + }); + + exports.default = Router; + module.exports = exports['default']; + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) + +/***/ }), +/* 53 */ +/***/ (function(module, exports, __webpack_require__) { + + /** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + */ + + 'use strict'; + + var React = __webpack_require__(7); + var factory = __webpack_require__(54); + + if (typeof React === 'undefined') { + throw Error( + 'create-react-class could not find the React object. If you are using script tags, ' + + 'make sure that React is being loaded before create-react-class.' + ); + } + + // Hack to grab NoopUpdateQueue from isomorphic React + var ReactNoopUpdateQueue = new React.Component().updater; + + module.exports = factory( + React.Component, + React.isValidElement, + ReactNoopUpdateQueue + ); + + +/***/ }), +/* 54 */ +/***/ (function(module, exports, __webpack_require__) { + + /* WEBPACK VAR INJECTION */(function(process) {/** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + */ + + 'use strict'; + + var _assign = __webpack_require__(46); + + var emptyObject = __webpack_require__(55); + var _invariant = __webpack_require__(36); + + if (process.env.NODE_ENV !== 'production') { + var warning = __webpack_require__(45); + } + + var MIXINS_KEY = 'mixins'; + + // Helper function to allow the creation of anonymous functions which do not + // have .name set to the name of the variable being assigned to. + function identity(fn) { + return fn; + } + + var ReactPropTypeLocationNames; + if (process.env.NODE_ENV !== 'production') { + ReactPropTypeLocationNames = { + prop: 'prop', + context: 'context', + childContext: 'child context' + }; + } else { + ReactPropTypeLocationNames = {}; + } + + function factory(ReactComponent, isValidElement, ReactNoopUpdateQueue) { + /** + * Policies that describe methods in `ReactClassInterface`. + */ + + var injectedMixins = []; + + /** + * Composite components are higher-level components that compose other composite + * or host components. + * + * To create a new type of `ReactClass`, pass a specification of + * your new class to `React.createClass`. The only requirement of your class + * specification is that you implement a `render` method. + * + * var MyComponent = React.createClass({ + * render: function() { + * return
Hello World
; + * } + * }); + * + * The class specification supports a specific protocol of methods that have + * special meaning (e.g. `render`). See `ReactClassInterface` for + * more the comprehensive protocol. Any other properties and methods in the + * class specification will be available on the prototype. + * + * @interface ReactClassInterface + * @internal + */ + var ReactClassInterface = { + /** + * An array of Mixin objects to include when defining your component. + * + * @type {array} + * @optional + */ + mixins: 'DEFINE_MANY', + + /** + * An object containing properties and methods that should be defined on + * the component's constructor instead of its prototype (static methods). + * + * @type {object} + * @optional + */ + statics: 'DEFINE_MANY', + + /** + * Definition of prop types for this component. + * + * @type {object} + * @optional + */ + propTypes: 'DEFINE_MANY', + + /** + * Definition of context types for this component. + * + * @type {object} + * @optional + */ + contextTypes: 'DEFINE_MANY', + + /** + * Definition of context types this component sets for its children. + * + * @type {object} + * @optional + */ + childContextTypes: 'DEFINE_MANY', + + // ==== Definition methods ==== + + /** + * Invoked when the component is mounted. Values in the mapping will be set on + * `this.props` if that prop is not specified (i.e. using an `in` check). + * + * This method is invoked before `getInitialState` and therefore cannot rely + * on `this.state` or use `this.setState`. + * + * @return {object} + * @optional + */ + getDefaultProps: 'DEFINE_MANY_MERGED', + + /** + * Invoked once before the component is mounted. The return value will be used + * as the initial value of `this.state`. + * + * getInitialState: function() { + * return { + * isOn: false, + * fooBaz: new BazFoo() + * } + * } + * + * @return {object} + * @optional + */ + getInitialState: 'DEFINE_MANY_MERGED', + + /** + * @return {object} + * @optional + */ + getChildContext: 'DEFINE_MANY_MERGED', + + /** + * Uses props from `this.props` and state from `this.state` to render the + * structure of the component. + * + * No guarantees are made about when or how often this method is invoked, so + * it must not have side effects. + * + * render: function() { + * var name = this.props.name; + * return
Hello, {name}!
; + * } + * + * @return {ReactComponent} + * @required + */ + render: 'DEFINE_ONCE', + + // ==== Delegate methods ==== + + /** + * Invoked when the component is initially created and about to be mounted. + * This may have side effects, but any external subscriptions or data created + * by this method must be cleaned up in `componentWillUnmount`. + * + * @optional + */ + componentWillMount: 'DEFINE_MANY', + + /** + * Invoked when the component has been mounted and has a DOM representation. + * However, there is no guarantee that the DOM node is in the document. + * + * Use this as an opportunity to operate on the DOM when the component has + * been mounted (initialized and rendered) for the first time. + * + * @param {DOMElement} rootNode DOM element representing the component. + * @optional + */ + componentDidMount: 'DEFINE_MANY', + + /** + * Invoked before the component receives new props. + * + * Use this as an opportunity to react to a prop transition by updating the + * state using `this.setState`. Current props are accessed via `this.props`. + * + * componentWillReceiveProps: function(nextProps, nextContext) { + * this.setState({ + * likesIncreasing: nextProps.likeCount > this.props.likeCount + * }); + * } + * + * NOTE: There is no equivalent `componentWillReceiveState`. An incoming prop + * transition may cause a state change, but the opposite is not true. If you + * need it, you are probably looking for `componentWillUpdate`. + * + * @param {object} nextProps + * @optional + */ + componentWillReceiveProps: 'DEFINE_MANY', + + /** + * Invoked while deciding if the component should be updated as a result of + * receiving new props, state and/or context. + * + * Use this as an opportunity to `return false` when you're certain that the + * transition to the new props/state/context will not require a component + * update. + * + * shouldComponentUpdate: function(nextProps, nextState, nextContext) { + * return !equal(nextProps, this.props) || + * !equal(nextState, this.state) || + * !equal(nextContext, this.context); + * } + * + * @param {object} nextProps + * @param {?object} nextState + * @param {?object} nextContext + * @return {boolean} True if the component should update. + * @optional + */ + shouldComponentUpdate: 'DEFINE_ONCE', + + /** + * Invoked when the component is about to update due to a transition from + * `this.props`, `this.state` and `this.context` to `nextProps`, `nextState` + * and `nextContext`. + * + * Use this as an opportunity to perform preparation before an update occurs. + * + * NOTE: You **cannot** use `this.setState()` in this method. + * + * @param {object} nextProps + * @param {?object} nextState + * @param {?object} nextContext + * @param {ReactReconcileTransaction} transaction + * @optional + */ + componentWillUpdate: 'DEFINE_MANY', + + /** + * Invoked when the component's DOM representation has been updated. + * + * Use this as an opportunity to operate on the DOM when the component has + * been updated. + * + * @param {object} prevProps + * @param {?object} prevState + * @param {?object} prevContext + * @param {DOMElement} rootNode DOM element representing the component. + * @optional + */ + componentDidUpdate: 'DEFINE_MANY', + + /** + * Invoked when the component is about to be removed from its parent and have + * its DOM representation destroyed. + * + * Use this as an opportunity to deallocate any external resources. + * + * NOTE: There is no `componentDidUnmount` since your component will have been + * destroyed by that point. + * + * @optional + */ + componentWillUnmount: 'DEFINE_MANY', + + /** + * Replacement for (deprecated) `componentWillMount`. + * + * @optional + */ + UNSAFE_componentWillMount: 'DEFINE_MANY', + + /** + * Replacement for (deprecated) `componentWillReceiveProps`. + * + * @optional + */ + UNSAFE_componentWillReceiveProps: 'DEFINE_MANY', + + /** + * Replacement for (deprecated) `componentWillUpdate`. + * + * @optional + */ + UNSAFE_componentWillUpdate: 'DEFINE_MANY', + + // ==== Advanced methods ==== + + /** + * Updates the component's currently mounted DOM representation. + * + * By default, this implements React's rendering and reconciliation algorithm. + * Sophisticated clients may wish to override this. + * + * @param {ReactReconcileTransaction} transaction + * @internal + * @overridable + */ + updateComponent: 'OVERRIDE_BASE' + }; + + /** + * Similar to ReactClassInterface but for static methods. + */ + var ReactClassStaticInterface = { + /** + * This method is invoked after a component is instantiated and when it + * receives new props. Return an object to update state in response to + * prop changes. Return null to indicate no change to state. + * + * If an object is returned, its keys will be merged into the existing state. + * + * @return {object || null} + * @optional + */ + getDerivedStateFromProps: 'DEFINE_MANY_MERGED' + }; + + /** + * Mapping from class specification keys to special processing functions. + * + * Although these are declared like instance properties in the specification + * when defining classes using `React.createClass`, they are actually static + * and are accessible on the constructor instead of the prototype. Despite + * being static, they must be defined outside of the "statics" key under + * which all other static methods are defined. + */ + var RESERVED_SPEC_KEYS = { + displayName: function(Constructor, displayName) { + Constructor.displayName = displayName; + }, + mixins: function(Constructor, mixins) { + if (mixins) { + for (var i = 0; i < mixins.length; i++) { + mixSpecIntoComponent(Constructor, mixins[i]); + } + } + }, + childContextTypes: function(Constructor, childContextTypes) { + if (process.env.NODE_ENV !== 'production') { + validateTypeDef(Constructor, childContextTypes, 'childContext'); + } + Constructor.childContextTypes = _assign( + {}, + Constructor.childContextTypes, + childContextTypes + ); + }, + contextTypes: function(Constructor, contextTypes) { + if (process.env.NODE_ENV !== 'production') { + validateTypeDef(Constructor, contextTypes, 'context'); + } + Constructor.contextTypes = _assign( + {}, + Constructor.contextTypes, + contextTypes + ); + }, + /** + * Special case getDefaultProps which should move into statics but requires + * automatic merging. + */ + getDefaultProps: function(Constructor, getDefaultProps) { + if (Constructor.getDefaultProps) { + Constructor.getDefaultProps = createMergedResultFunction( + Constructor.getDefaultProps, + getDefaultProps + ); + } else { + Constructor.getDefaultProps = getDefaultProps; + } + }, + propTypes: function(Constructor, propTypes) { + if (process.env.NODE_ENV !== 'production') { + validateTypeDef(Constructor, propTypes, 'prop'); + } + Constructor.propTypes = _assign({}, Constructor.propTypes, propTypes); + }, + statics: function(Constructor, statics) { + mixStaticSpecIntoComponent(Constructor, statics); + }, + autobind: function() {} + }; + + function validateTypeDef(Constructor, typeDef, location) { + for (var propName in typeDef) { + if (typeDef.hasOwnProperty(propName)) { + // use a warning instead of an _invariant so components + // don't show up in prod but only in __DEV__ + if (process.env.NODE_ENV !== 'production') { + warning( + typeof typeDef[propName] === 'function', + '%s: %s type `%s` is invalid; it must be a function, usually from ' + + 'React.PropTypes.', + Constructor.displayName || 'ReactClass', + ReactPropTypeLocationNames[location], + propName + ); + } + } + } + } + + function validateMethodOverride(isAlreadyDefined, name) { + var specPolicy = ReactClassInterface.hasOwnProperty(name) + ? ReactClassInterface[name] + : null; + + // Disallow overriding of base class methods unless explicitly allowed. + if (ReactClassMixin.hasOwnProperty(name)) { + _invariant( + specPolicy === 'OVERRIDE_BASE', + 'ReactClassInterface: You are attempting to override ' + + '`%s` from your class specification. Ensure that your method names ' + + 'do not overlap with React methods.', + name + ); + } + + // Disallow defining methods more than once unless explicitly allowed. + if (isAlreadyDefined) { + _invariant( + specPolicy === 'DEFINE_MANY' || specPolicy === 'DEFINE_MANY_MERGED', + 'ReactClassInterface: You are attempting to define ' + + '`%s` on your component more than once. This conflict may be due ' + + 'to a mixin.', + name + ); + } + } + + /** + * Mixin helper which handles policy validation and reserved + * specification keys when building React classes. + */ + function mixSpecIntoComponent(Constructor, spec) { + if (!spec) { + if (process.env.NODE_ENV !== 'production') { + var typeofSpec = typeof spec; + var isMixinValid = typeofSpec === 'object' && spec !== null; + + if (process.env.NODE_ENV !== 'production') { + warning( + isMixinValid, + "%s: You're attempting to include a mixin that is either null " + + 'or not an object. Check the mixins included by the component, ' + + 'as well as any mixins they include themselves. ' + + 'Expected object but got %s.', + Constructor.displayName || 'ReactClass', + spec === null ? null : typeofSpec + ); + } + } + + return; + } + + _invariant( + typeof spec !== 'function', + "ReactClass: You're attempting to " + + 'use a component class or function as a mixin. Instead, just use a ' + + 'regular object.' + ); + _invariant( + !isValidElement(spec), + "ReactClass: You're attempting to " + + 'use a component as a mixin. Instead, just use a regular object.' + ); + + var proto = Constructor.prototype; + var autoBindPairs = proto.__reactAutoBindPairs; + + // By handling mixins before any other properties, we ensure the same + // chaining order is applied to methods with DEFINE_MANY policy, whether + // mixins are listed before or after these methods in the spec. + if (spec.hasOwnProperty(MIXINS_KEY)) { + RESERVED_SPEC_KEYS.mixins(Constructor, spec.mixins); + } + + for (var name in spec) { + if (!spec.hasOwnProperty(name)) { + continue; + } + + if (name === MIXINS_KEY) { + // We have already handled mixins in a special case above. + continue; + } + + var property = spec[name]; + var isAlreadyDefined = proto.hasOwnProperty(name); + validateMethodOverride(isAlreadyDefined, name); + + if (RESERVED_SPEC_KEYS.hasOwnProperty(name)) { + RESERVED_SPEC_KEYS[name](Constructor, property); + } else { + // Setup methods on prototype: + // The following member methods should not be automatically bound: + // 1. Expected ReactClass methods (in the "interface"). + // 2. Overridden methods (that were mixed in). + var isReactClassMethod = ReactClassInterface.hasOwnProperty(name); + var isFunction = typeof property === 'function'; + var shouldAutoBind = + isFunction && + !isReactClassMethod && + !isAlreadyDefined && + spec.autobind !== false; + + if (shouldAutoBind) { + autoBindPairs.push(name, property); + proto[name] = property; + } else { + if (isAlreadyDefined) { + var specPolicy = ReactClassInterface[name]; + + // These cases should already be caught by validateMethodOverride. + _invariant( + isReactClassMethod && + (specPolicy === 'DEFINE_MANY_MERGED' || + specPolicy === 'DEFINE_MANY'), + 'ReactClass: Unexpected spec policy %s for key %s ' + + 'when mixing in component specs.', + specPolicy, + name + ); + + // For methods which are defined more than once, call the existing + // methods before calling the new property, merging if appropriate. + if (specPolicy === 'DEFINE_MANY_MERGED') { + proto[name] = createMergedResultFunction(proto[name], property); + } else if (specPolicy === 'DEFINE_MANY') { + proto[name] = createChainedFunction(proto[name], property); + } + } else { + proto[name] = property; + if (process.env.NODE_ENV !== 'production') { + // Add verbose displayName to the function, which helps when looking + // at profiling tools. + if (typeof property === 'function' && spec.displayName) { + proto[name].displayName = spec.displayName + '_' + name; + } + } + } + } + } + } + } + + function mixStaticSpecIntoComponent(Constructor, statics) { + if (!statics) { + return; + } + + for (var name in statics) { + var property = statics[name]; + if (!statics.hasOwnProperty(name)) { + continue; + } + + var isReserved = name in RESERVED_SPEC_KEYS; + _invariant( + !isReserved, + 'ReactClass: You are attempting to define a reserved ' + + 'property, `%s`, that shouldn\'t be on the "statics" key. Define it ' + + 'as an instance property instead; it will still be accessible on the ' + + 'constructor.', + name + ); + + var isAlreadyDefined = name in Constructor; + if (isAlreadyDefined) { + var specPolicy = ReactClassStaticInterface.hasOwnProperty(name) + ? ReactClassStaticInterface[name] + : null; + + _invariant( + specPolicy === 'DEFINE_MANY_MERGED', + 'ReactClass: You are attempting to define ' + + '`%s` on your component more than once. This conflict may be ' + + 'due to a mixin.', + name + ); + + Constructor[name] = createMergedResultFunction(Constructor[name], property); + + return; + } + + Constructor[name] = property; + } + } + + /** + * Merge two objects, but throw if both contain the same key. + * + * @param {object} one The first object, which is mutated. + * @param {object} two The second object + * @return {object} one after it has been mutated to contain everything in two. + */ + function mergeIntoWithNoDuplicateKeys(one, two) { + _invariant( + one && two && typeof one === 'object' && typeof two === 'object', + 'mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.' + ); + + for (var key in two) { + if (two.hasOwnProperty(key)) { + _invariant( + one[key] === undefined, + 'mergeIntoWithNoDuplicateKeys(): ' + + 'Tried to merge two objects with the same key: `%s`. This conflict ' + + 'may be due to a mixin; in particular, this may be caused by two ' + + 'getInitialState() or getDefaultProps() methods returning objects ' + + 'with clashing keys.', + key + ); + one[key] = two[key]; } + } + return one; + } + + /** + * Creates a function that invokes two functions and merges their return values. + * + * @param {function} one Function to invoke first. + * @param {function} two Function to invoke second. + * @return {function} Function that invokes the two argument functions. + * @private + */ + function createMergedResultFunction(one, two) { + return function mergedResult() { + var a = one.apply(this, arguments); + var b = two.apply(this, arguments); + if (a == null) { + return b; + } else if (b == null) { + return a; + } + var c = {}; + mergeIntoWithNoDuplicateKeys(c, a); + mergeIntoWithNoDuplicateKeys(c, b); + return c; }; - }, - getInitialState: function getInitialState() { - return { - location: null, - routes: null, - params: null, - components: null + } + + /** + * Creates a function that invokes two functions and ignores their return vales. + * + * @param {function} one Function to invoke first. + * @param {function} two Function to invoke second. + * @return {function} Function that invokes the two argument functions. + * @private + */ + function createChainedFunction(one, two) { + return function chainedFunction() { + one.apply(this, arguments); + two.apply(this, arguments); }; - }, - handleError: function handleError(error) { - if (this.props.onError) { - this.props.onError.call(this, error); - } else { - // Throw errors by default so we don't silently swallow them! - throw error; // This error probably occurred in getChildRoutes or getComponents. + } + + /** + * Binds a method to the component. + * + * @param {object} component Component whose method is going to be bound. + * @param {function} method Method to be bound. + * @return {function} The bound method. + */ + function bindAutoBindMethod(component, method) { + var boundMethod = method.bind(component); + if (process.env.NODE_ENV !== 'production') { + boundMethod.__reactBoundContext = component; + boundMethod.__reactBoundMethod = method; + boundMethod.__reactBoundArguments = null; + var componentName = component.constructor.displayName; + var _bind = boundMethod.bind; + boundMethod.bind = function(newThis) { + for ( + var _len = arguments.length, + args = Array(_len > 1 ? _len - 1 : 0), + _key = 1; + _key < _len; + _key++ + ) { + args[_key - 1] = arguments[_key]; + } + + // User is trying to bind() an autobound method; we effectively will + // ignore the value of "this" that the user is trying to use, so + // let's warn. + if (newThis !== component && newThis !== null) { + if (process.env.NODE_ENV !== 'production') { + warning( + false, + 'bind(): React component methods may only be bound to the ' + + 'component instance. See %s', + componentName + ); + } + } else if (!args.length) { + if (process.env.NODE_ENV !== 'production') { + warning( + false, + 'bind(): You are binding a component method to the component. ' + + 'React does this for you automatically in a high-performance ' + + 'way, so you can safely remove this call. See %s', + componentName + ); + } + return boundMethod; + } + var reboundMethod = _bind.apply(boundMethod, arguments); + reboundMethod.__reactBoundContext = component; + reboundMethod.__reactBoundMethod = method; + reboundMethod.__reactBoundArguments = args; + return reboundMethod; + }; } - }, - createRouterObject: function createRouterObject(state) { - var matchContext = this.props.matchContext; + return boundMethod; + } - if (matchContext) { - return matchContext.router; + /** + * Binds all auto-bound methods in a component. + * + * @param {object} component Component whose method is going to be bound. + */ + function bindAutoBindMethods(component) { + var pairs = component.__reactAutoBindPairs; + for (var i = 0; i < pairs.length; i += 2) { + var autoBindKey = pairs[i]; + var method = pairs[i + 1]; + component[autoBindKey] = bindAutoBindMethod(component, method); } + } - var history = this.props.history; + var IsMountedPreMixin = { + componentDidMount: function() { + this.__isMounted = true; + } + }; + + var IsMountedPostMixin = { + componentWillUnmount: function() { + this.__isMounted = false; + } + }; - return (0, _RouterUtils.createRouterObject)(history, this.transitionManager, state); - }, - createTransitionManager: function createTransitionManager() { - var matchContext = this.props.matchContext; + /** + * Add more to the ReactClass base class. These are all legacy features and + * therefore not already part of the modern ReactComponent. + */ + var ReactClassMixin = { + /** + * TODO: This will be deprecated because state should always keep a consistent + * type signature and the only use case for this, is to avoid that. + */ + replaceState: function(newState, callback) { + this.updater.enqueueReplaceState(this, newState, callback); + }, - if (matchContext) { - return matchContext.transitionManager; + /** + * Checks whether or not this composite component is mounted. + * @return {boolean} True if mounted, false otherwise. + * @protected + * @final + */ + isMounted: function() { + if (process.env.NODE_ENV !== 'production') { + warning( + this.__didWarnIsMounted, + '%s: isMounted is deprecated. Instead, make sure to clean up ' + + 'subscriptions and pending requests in componentWillUnmount to ' + + 'prevent memory leaks.', + (this.constructor && this.constructor.displayName) || + this.name || + 'Component' + ); + this.__didWarnIsMounted = true; + } + return !!this.__isMounted; } + }; - var history = this.props.history; - var _props = this.props, - routes = _props.routes, - children = _props.children; + var ReactClassComponent = function() {}; + _assign( + ReactClassComponent.prototype, + ReactComponent.prototype, + ReactClassMixin + ); + /** + * Creates a composite component class given a class specification. + * See https://facebook.github.io/react/docs/top-level-api.html#react.createclass + * + * @param {object} spec Class specification (which must define `render`). + * @return {function} Component constructor function. + * @public + */ + function createClass(spec) { + // To keep our warnings more understandable, we'll use a little hack here to + // ensure that Constructor.name !== 'Constructor'. This makes sure we don't + // unnecessarily identify a class without displayName as 'Constructor'. + var Constructor = identity(function(props, context, updater) { + // This constructor gets overridden by mocks. The argument is used + // by mocks to assert on what gets mounted. + + if (process.env.NODE_ENV !== 'production') { + warning( + this instanceof Constructor, + 'Something is calling a React component directly. Use a factory or ' + + 'JSX instead. See: https://fb.me/react-legacyfactory' + ); + } - !history.getCurrentLocation ? process.env.NODE_ENV !== 'production' ? (0, _invariant2.default)(false, 'You have provided a history object created with history v4.x or v2.x ' + 'and earlier. This version of React Router is only compatible with v3 ' + 'history objects. Please change to history v3.x.') : (0, _invariant2.default)(false) : void 0; + // Wire up auto-binding + if (this.__reactAutoBindPairs.length) { + bindAutoBindMethods(this); + } - return (0, _createTransitionManager3.default)(history, (0, _RouteUtils.createRoutes)(routes || children)); - }, - componentWillMount: function componentWillMount() { - var _this = this; + this.props = props; + this.context = context; + this.refs = emptyObject; + this.updater = updater || ReactNoopUpdateQueue; - this.transitionManager = this.createTransitionManager(); - this.router = this.createRouterObject(this.state); + this.state = null; - this._unlisten = this.transitionManager.listen(function (error, state) { - if (error) { - _this.handleError(error); - } else { - // Keep the identity of this.router because of a caveat in ContextUtils: - // they only work if the object identity is preserved. - (0, _RouterUtils.assignRouterState)(_this.router, state); - _this.setState(state, _this.props.onUpdate); + // ReactClasses doesn't have constructors. Instead, they use the + // getInitialState and componentWillMount methods for initialization. + + var initialState = this.getInitialState ? this.getInitialState() : null; + if (process.env.NODE_ENV !== 'production') { + // We allow auto-mocks to proceed as if they're returning null. + if ( + initialState === undefined && + this.getInitialState._isMockFunction + ) { + // This is probably bad practice. Consider warning here and + // deprecating this convenience. + initialState = null; + } } + _invariant( + typeof initialState === 'object' && !Array.isArray(initialState), + '%s.getInitialState(): must return an object or null', + Constructor.displayName || 'ReactCompositeComponent' + ); + + this.state = initialState; }); - }, + Constructor.prototype = new ReactClassComponent(); + Constructor.prototype.constructor = Constructor; + Constructor.prototype.__reactAutoBindPairs = []; + injectedMixins.forEach(mixSpecIntoComponent.bind(null, Constructor)); - /* istanbul ignore next: sanity check */ - componentWillReceiveProps: function componentWillReceiveProps(nextProps) { - process.env.NODE_ENV !== 'production' ? (0, _routerWarning2.default)(nextProps.history === this.props.history, 'You cannot change ; it will be ignored') : void 0; + mixSpecIntoComponent(Constructor, IsMountedPreMixin); + mixSpecIntoComponent(Constructor, spec); + mixSpecIntoComponent(Constructor, IsMountedPostMixin); - process.env.NODE_ENV !== 'production' ? (0, _routerWarning2.default)((nextProps.routes || nextProps.children) === (this.props.routes || this.props.children), 'You cannot change ; it will be ignored') : void 0; - }, - componentWillUnmount: function componentWillUnmount() { - if (this._unlisten) this._unlisten(); - }, - render: function render() { - var _state = this.state, - location = _state.location, - routes = _state.routes, - params = _state.params, - components = _state.components; + // Initialize the defaultProps property after all mixins have been merged. + if (Constructor.getDefaultProps) { + Constructor.defaultProps = Constructor.getDefaultProps(); + } - var _props2 = this.props, - createElement = _props2.createElement, - render = _props2.render, - props = _objectWithoutProperties(_props2, ['createElement', 'render']); + if (process.env.NODE_ENV !== 'production') { + // This is a tag to indicate that the use of these method names is ok, + // since it's used with createClass. If it's not, then it's likely a + // mistake so we'll warn you to use the static property, property + // initializer or constructor respectively. + if (Constructor.getDefaultProps) { + Constructor.getDefaultProps.isReactClassApproved = {}; + } + if (Constructor.prototype.getInitialState) { + Constructor.prototype.getInitialState.isReactClassApproved = {}; + } + } - if (location == null) return null; // Async match + _invariant( + Constructor.prototype.render, + 'createClass(...): Class specification must implement a `render` method.' + ); - // Only forward non-Router-specific props to routing context, as those are - // the only ones that might be custom routing context props. - Object.keys(Router.propTypes).forEach(function (propType) { - return delete props[propType]; - }); + if (process.env.NODE_ENV !== 'production') { + warning( + !Constructor.prototype.componentShouldUpdate, + '%s has a method called ' + + 'componentShouldUpdate(). Did you mean shouldComponentUpdate()? ' + + 'The name is phrased as a question because the function is ' + + 'expected to return a value.', + spec.displayName || 'A component' + ); + warning( + !Constructor.prototype.componentWillRecieveProps, + '%s has a method called ' + + 'componentWillRecieveProps(). Did you mean componentWillReceiveProps()?', + spec.displayName || 'A component' + ); + warning( + !Constructor.prototype.UNSAFE_componentWillRecieveProps, + '%s has a method called UNSAFE_componentWillRecieveProps(). ' + + 'Did you mean UNSAFE_componentWillReceiveProps()?', + spec.displayName || 'A component' + ); + } - return render(_extends({}, props, { - router: this.router, - location: location, - routes: routes, - params: params, - components: components, - createElement: createElement - })); + // Reduce time spent doing lookups by setting these on the prototype. + for (var methodName in ReactClassInterface) { + if (!Constructor.prototype[methodName]) { + Constructor.prototype[methodName] = null; + } + } + + return Constructor; } - }); - exports.default = Router; - module.exports = exports['default']; + return createClass; + } + + module.exports = factory; + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 45 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 55 */ +/***/ (function(module, exports, __webpack_require__) { + + /* WEBPACK VAR INJECTION */(function(process) {/** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + */ + + 'use strict'; + + var emptyObject = {}; + + if (process.env.NODE_ENV !== 'production') { + Object.freeze(emptyObject); + } + + module.exports = emptyObject; + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) + +/***/ }), +/* 56 */ +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {'use strict'; @@ -5898,25 +7822,27 @@ module.exports = exports.default = createTransitionManager; - var _routerWarning = __webpack_require__(46); + var _routerWarning = __webpack_require__(57); var _routerWarning2 = _interopRequireDefault(_routerWarning); - var _computeChangedRoutes2 = __webpack_require__(48); + var _computeChangedRoutes2 = __webpack_require__(59); var _computeChangedRoutes3 = _interopRequireDefault(_computeChangedRoutes2); - var _TransitionUtils = __webpack_require__(49); + var _TransitionUtils = __webpack_require__(60); - var _isActive2 = __webpack_require__(51); + var _TransitionUtils2 = _interopRequireDefault(_TransitionUtils); + + var _isActive2 = __webpack_require__(62); var _isActive3 = _interopRequireDefault(_isActive2); - var _getComponents = __webpack_require__(52); + var _getComponents = __webpack_require__(63); var _getComponents2 = _interopRequireDefault(_getComponents); - var _matchRoutes = __webpack_require__(54); + var _matchRoutes = __webpack_require__(65); var _matchRoutes2 = _interopRequireDefault(_matchRoutes); @@ -5931,8 +7857,15 @@ module.exports = function createTransitionManager(history, routes) { var state = {}; + var _getTransitionUtils = (0, _TransitionUtils2.default)(), + runEnterHooks = _getTransitionUtils.runEnterHooks, + runChangeHooks = _getTransitionUtils.runChangeHooks, + runLeaveHooks = _getTransitionUtils.runLeaveHooks; + // Signature should be (location, indexOnly), but needs to support (path, // query, indexOnly) + + function isActive(location, indexOnly) { location = history.createLocation(location); @@ -5964,7 +7897,7 @@ module.exports = changeRoutes = _computeChangedRoutes.changeRoutes, enterRoutes = _computeChangedRoutes.enterRoutes; - (0, _TransitionUtils.runLeaveHooks)(leaveRoutes, state); + runLeaveHooks(leaveRoutes, state); // Tear down confirmation hooks for left routes leaveRoutes.filter(function (route) { @@ -5972,10 +7905,10 @@ module.exports = }).forEach(removeListenBeforeHooksForRoute); // change and enter hooks are run in series - (0, _TransitionUtils.runChangeHooks)(changeRoutes, state, nextState, function (error, redirectInfo) { + runChangeHooks(changeRoutes, state, nextState, function (error, redirectInfo) { if (error || redirectInfo) return handleErrorOrRedirect(error, redirectInfo); - (0, _TransitionUtils.runEnterHooks)(enterRoutes, nextState, finishEnterHooks); + runEnterHooks(enterRoutes, nextState, finishEnterHooks); }); function finishEnterHooks(error, redirectInfo) { @@ -6167,9 +8100,9 @@ module.exports = module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 46 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 57 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -6177,7 +8110,7 @@ module.exports = exports.default = routerWarning; exports._resetWarned = _resetWarned; - var _warning = __webpack_require__(47); + var _warning = __webpack_require__(58); var _warning2 = _interopRequireDefault(_warning); @@ -6208,9 +8141,9 @@ module.exports = warned = {}; } -/***/ }, -/* 47 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 58 */ +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {/** * Copyright 2014-2015, Facebook, Inc. @@ -6275,15 +8208,15 @@ module.exports = /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 48 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 59 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; exports.__esModule = true; - var _PatternUtils = __webpack_require__(42); + var _PatternUtils = __webpack_require__(50); function routeParamsChanged(route, prevState, nextState) { if (!route.path) return false; @@ -6316,31 +8249,29 @@ module.exports = changeRoutes = void 0, enterRoutes = void 0; if (prevRoutes) { - (function () { - var parentIsLeaving = false; - leaveRoutes = prevRoutes.filter(function (route) { - if (parentIsLeaving) { - return true; - } else { - var isLeaving = nextRoutes.indexOf(route) === -1 || routeParamsChanged(route, prevState, nextState); - if (isLeaving) parentIsLeaving = true; - return isLeaving; - } - }); + var parentIsLeaving = false; + leaveRoutes = prevRoutes.filter(function (route) { + if (parentIsLeaving) { + return true; + } else { + var isLeaving = nextRoutes.indexOf(route) === -1 || routeParamsChanged(route, prevState, nextState); + if (isLeaving) parentIsLeaving = true; + return isLeaving; + } + }); - // onLeave hooks start at the leaf route. - leaveRoutes.reverse(); + // onLeave hooks start at the leaf route. + leaveRoutes.reverse(); - enterRoutes = []; - changeRoutes = []; + enterRoutes = []; + changeRoutes = []; - nextRoutes.forEach(function (route) { - var isNew = prevRoutes.indexOf(route) === -1; - var paramsChanged = leaveRoutes.indexOf(route) !== -1; + nextRoutes.forEach(function (route) { + var isNew = prevRoutes.indexOf(route) === -1; + var paramsChanged = leaveRoutes.indexOf(route) !== -1; - if (isNew || paramsChanged) enterRoutes.push(route);else changeRoutes.push(route); - }); - })(); + if (isNew || paramsChanged) enterRoutes.push(route);else changeRoutes.push(route); + }); } else { leaveRoutes = []; changeRoutes = []; @@ -6357,18 +8288,16 @@ module.exports = exports.default = computeChangedRoutes; module.exports = exports['default']; -/***/ }, -/* 49 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 60 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; exports.__esModule = true; - exports.runEnterHooks = runEnterHooks; - exports.runChangeHooks = runChangeHooks; - exports.runLeaveHooks = runLeaveHooks; + exports.default = getTransitionUtils; - var _AsyncUtils = __webpack_require__(50); + var _AsyncUtils = __webpack_require__(61); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } @@ -6398,128 +8327,137 @@ module.exports = }; }; - var enterHooks = new PendingHooks(); - var changeHooks = new PendingHooks(); - - function createTransitionHook(hook, route, asyncArity, pendingHooks) { - var isSync = hook.length < asyncArity; - - var transitionHook = function transitionHook() { - for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } + function getTransitionUtils() { + var enterHooks = new PendingHooks(); + var changeHooks = new PendingHooks(); - hook.apply(route, args); + function createTransitionHook(hook, route, asyncArity, pendingHooks) { + var isSync = hook.length < asyncArity; - if (isSync) { - var callback = args[args.length - 1]; - // Assume hook executes synchronously and - // automatically call the callback. - callback(); - } - }; + var transitionHook = function transitionHook() { + for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } - pendingHooks.add(transitionHook); + hook.apply(route, args); - return transitionHook; - } + if (isSync) { + var callback = args[args.length - 1]; + // Assume hook executes synchronously and + // automatically call the callback. + callback(); + } + }; - function getEnterHooks(routes) { - return routes.reduce(function (hooks, route) { - if (route.onEnter) hooks.push(createTransitionHook(route.onEnter, route, 3, enterHooks)); - return hooks; - }, []); - } + pendingHooks.add(transitionHook); - function getChangeHooks(routes) { - return routes.reduce(function (hooks, route) { - if (route.onChange) hooks.push(createTransitionHook(route.onChange, route, 4, changeHooks)); - return hooks; - }, []); - } + return transitionHook; + } - function runTransitionHooks(length, iter, callback) { - if (!length) { - callback(); - return; + function getEnterHooks(routes) { + return routes.reduce(function (hooks, route) { + if (route.onEnter) hooks.push(createTransitionHook(route.onEnter, route, 3, enterHooks)); + return hooks; + }, []); } - var redirectInfo = void 0; - function replace(location) { - redirectInfo = location; + function getChangeHooks(routes) { + return routes.reduce(function (hooks, route) { + if (route.onChange) hooks.push(createTransitionHook(route.onChange, route, 4, changeHooks)); + return hooks; + }, []); } - (0, _AsyncUtils.loopAsync)(length, function (index, next, done) { - iter(index, replace, function (error) { - if (error || redirectInfo) { - done(error, redirectInfo); // No need to continue. - } else { - next(); - } - }); - }, callback); - } + function runTransitionHooks(length, iter, callback) { + if (!length) { + callback(); + return; + } - /** - * Runs all onEnter hooks in the given array of routes in order - * with onEnter(nextState, replace, callback) and calls - * callback(error, redirectInfo) when finished. The first hook - * to use replace short-circuits the loop. - * - * If a hook needs to run asynchronously, it may use the callback - * function. However, doing so will cause the transition to pause, - * which could lead to a non-responsive UI if the hook is slow. - */ - function runEnterHooks(routes, nextState, callback) { - enterHooks.clear(); - var hooks = getEnterHooks(routes); - return runTransitionHooks(hooks.length, function (index, replace, next) { - var wrappedNext = function wrappedNext() { - if (enterHooks.has(hooks[index])) { - next.apply(undefined, arguments); - enterHooks.remove(hooks[index]); - } - }; - hooks[index](nextState, replace, wrappedNext); - }, callback); - } + var redirectInfo = void 0; + function replace(location) { + redirectInfo = location; + } - /** - * Runs all onChange hooks in the given array of routes in order - * with onChange(prevState, nextState, replace, callback) and calls - * callback(error, redirectInfo) when finished. The first hook - * to use replace short-circuits the loop. - * - * If a hook needs to run asynchronously, it may use the callback - * function. However, doing so will cause the transition to pause, - * which could lead to a non-responsive UI if the hook is slow. - */ - function runChangeHooks(routes, state, nextState, callback) { - changeHooks.clear(); - var hooks = getChangeHooks(routes); - return runTransitionHooks(hooks.length, function (index, replace, next) { - var wrappedNext = function wrappedNext() { - if (changeHooks.has(hooks[index])) { - next.apply(undefined, arguments); - changeHooks.remove(hooks[index]); - } - }; - hooks[index](state, nextState, replace, wrappedNext); - }, callback); - } + (0, _AsyncUtils.loopAsync)(length, function (index, next, done) { + iter(index, replace, function (error) { + if (error || redirectInfo) { + done(error, redirectInfo); // No need to continue. + } else { + next(); + } + }); + }, callback); + } - /** - * Runs all onLeave hooks in the given array of routes in order. - */ - function runLeaveHooks(routes, prevState) { - for (var i = 0, len = routes.length; i < len; ++i) { - if (routes[i].onLeave) routes[i].onLeave.call(routes[i], prevState); + /** + * Runs all onEnter hooks in the given array of routes in order + * with onEnter(nextState, replace, callback) and calls + * callback(error, redirectInfo) when finished. The first hook + * to use replace short-circuits the loop. + * + * If a hook needs to run asynchronously, it may use the callback + * function. However, doing so will cause the transition to pause, + * which could lead to a non-responsive UI if the hook is slow. + */ + function runEnterHooks(routes, nextState, callback) { + enterHooks.clear(); + var hooks = getEnterHooks(routes); + return runTransitionHooks(hooks.length, function (index, replace, next) { + var wrappedNext = function wrappedNext() { + if (enterHooks.has(hooks[index])) { + next.apply(undefined, arguments); + enterHooks.remove(hooks[index]); + } + }; + hooks[index](nextState, replace, wrappedNext); + }, callback); + } + + /** + * Runs all onChange hooks in the given array of routes in order + * with onChange(prevState, nextState, replace, callback) and calls + * callback(error, redirectInfo) when finished. The first hook + * to use replace short-circuits the loop. + * + * If a hook needs to run asynchronously, it may use the callback + * function. However, doing so will cause the transition to pause, + * which could lead to a non-responsive UI if the hook is slow. + */ + function runChangeHooks(routes, state, nextState, callback) { + changeHooks.clear(); + var hooks = getChangeHooks(routes); + return runTransitionHooks(hooks.length, function (index, replace, next) { + var wrappedNext = function wrappedNext() { + if (changeHooks.has(hooks[index])) { + next.apply(undefined, arguments); + changeHooks.remove(hooks[index]); + } + }; + hooks[index](state, nextState, replace, wrappedNext); + }, callback); + } + + /** + * Runs all onLeave hooks in the given array of routes in order. + */ + function runLeaveHooks(routes, prevState) { + for (var i = 0, len = routes.length; i < len; ++i) { + if (routes[i].onLeave) routes[i].onLeave.call(routes[i], prevState); + } } + + return { + runEnterHooks: runEnterHooks, + runChangeHooks: runChangeHooks, + runLeaveHooks: runLeaveHooks + }; } + module.exports = exports['default']; -/***/ }, -/* 50 */ -/***/ function(module, exports) { +/***/ }), +/* 61 */ +/***/ (function(module, exports) { "use strict"; @@ -6610,9 +8548,9 @@ module.exports = }); } -/***/ }, -/* 51 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 62 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -6622,7 +8560,7 @@ module.exports = exports.default = isActive; - var _PatternUtils = __webpack_require__(42); + var _PatternUtils = __webpack_require__(50); function deepEqual(a, b) { if (a == b) return true; @@ -6767,17 +8705,17 @@ module.exports = } module.exports = exports['default']; -/***/ }, -/* 52 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 63 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; exports.__esModule = true; - var _AsyncUtils = __webpack_require__(50); + var _AsyncUtils = __webpack_require__(61); - var _PromiseUtils = __webpack_require__(53); + var _PromiseUtils = __webpack_require__(64); function getComponentsForRoute(nextState, route, callback) { if (route.component || route.components) { @@ -6812,9 +8750,9 @@ module.exports = exports.default = getComponents; module.exports = exports['default']; -/***/ }, -/* 53 */ -/***/ function(module, exports) { +/***/ }), +/* 64 */ +/***/ (function(module, exports) { 'use strict'; @@ -6824,9 +8762,9 @@ module.exports = return obj && typeof obj.then === 'function'; } -/***/ }, -/* 54 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 65 */ +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {'use strict'; @@ -6834,17 +8772,15 @@ module.exports = var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; - exports.default = matchRoutes; - var _AsyncUtils = __webpack_require__(50); + var _AsyncUtils = __webpack_require__(61); - var _PromiseUtils = __webpack_require__(53); + var _PromiseUtils = __webpack_require__(64); - var _PatternUtils = __webpack_require__(42); + var _PatternUtils = __webpack_require__(50); - var _routerWarning = __webpack_require__(46); + var _routerWarning = __webpack_require__(57); var _routerWarning2 = _interopRequireDefault(_routerWarning); @@ -6984,38 +8920,32 @@ module.exports = // By assumption, pattern is non-empty here, which is the prerequisite for // actually terminating a match. if (remainingPathname === '') { - var _ret = function () { - var match = { - routes: [route], - params: createParams(paramNames, paramValues) - }; - - getIndexRoute(route, location, paramNames, paramValues, function (error, indexRoute) { - if (error) { - callback(error); - } else { - if (Array.isArray(indexRoute)) { - var _match$routes; - - process.env.NODE_ENV !== 'production' ? (0, _routerWarning2.default)(indexRoute.every(function (route) { - return !route.path; - }), 'Index routes should not have paths') : void 0; - (_match$routes = match.routes).push.apply(_match$routes, indexRoute); - } else if (indexRoute) { - process.env.NODE_ENV !== 'production' ? (0, _routerWarning2.default)(!indexRoute.path, 'Index routes should not have paths') : void 0; - match.routes.push(indexRoute); - } + var match = { + routes: [route], + params: createParams(paramNames, paramValues) + }; - callback(null, match); + getIndexRoute(route, location, paramNames, paramValues, function (error, indexRoute) { + if (error) { + callback(error); + } else { + if (Array.isArray(indexRoute)) { + var _match$routes; + + process.env.NODE_ENV !== 'production' ? (0, _routerWarning2.default)(indexRoute.every(function (route) { + return !route.path; + }), 'Index routes should not have paths') : void 0; + (_match$routes = match.routes).push.apply(_match$routes, indexRoute); + } else if (indexRoute) { + process.env.NODE_ENV !== 'production' ? (0, _routerWarning2.default)(!indexRoute.path, 'Index routes should not have paths') : void 0; + match.routes.push(indexRoute); } - }); - return { - v: void 0 - }; - }(); + callback(null, match); + } + }); - if ((typeof _ret === 'undefined' ? 'undefined' : _typeof(_ret)) === "object") return _ret.v; + return; } } @@ -7093,9 +9023,9 @@ module.exports = module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 55 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 66 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -7103,36 +9033,29 @@ module.exports = exports.routes = exports.route = exports.components = exports.component = exports.history = undefined; exports.falsy = falsy; - var _react = __webpack_require__(7); + var _propTypes = __webpack_require__(42); - var func = _react.PropTypes.func, - object = _react.PropTypes.object, - arrayOf = _react.PropTypes.arrayOf, - oneOfType = _react.PropTypes.oneOfType, - element = _react.PropTypes.element, - shape = _react.PropTypes.shape, - string = _react.PropTypes.string; function falsy(props, propName, componentName) { if (props[propName]) return new Error('<' + componentName + '> should not have a "' + propName + '" prop'); } - var history = exports.history = shape({ - listen: func.isRequired, - push: func.isRequired, - replace: func.isRequired, - go: func.isRequired, - goBack: func.isRequired, - goForward: func.isRequired + var history = exports.history = (0, _propTypes.shape)({ + listen: _propTypes.func.isRequired, + push: _propTypes.func.isRequired, + replace: _propTypes.func.isRequired, + go: _propTypes.func.isRequired, + goBack: _propTypes.func.isRequired, + goForward: _propTypes.func.isRequired }); - var component = exports.component = oneOfType([func, string]); - var components = exports.components = oneOfType([component, object]); - var route = exports.route = oneOfType([object, element]); - var routes = exports.routes = oneOfType([route, arrayOf(route)]); + var component = exports.component = (0, _propTypes.oneOfType)([_propTypes.func, _propTypes.string]); + var components = exports.components = (0, _propTypes.oneOfType)([component, _propTypes.object]); + var route = exports.route = (0, _propTypes.oneOfType)([_propTypes.object, _propTypes.element]); + var routes = exports.routes = (0, _propTypes.oneOfType)([route, (0, _propTypes.arrayOf)(route)]); -/***/ }, -/* 56 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 67 */ +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {'use strict'; @@ -7142,7 +9065,7 @@ module.exports = var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; - var _invariant = __webpack_require__(43); + var _invariant = __webpack_require__(51); var _invariant2 = _interopRequireDefault(_invariant); @@ -7150,39 +9073,38 @@ module.exports = var _react2 = _interopRequireDefault(_react); - var _getRouteParams = __webpack_require__(57); + var _createReactClass = __webpack_require__(53); + + var _createReactClass2 = _interopRequireDefault(_createReactClass); + + var _propTypes = __webpack_require__(42); + + var _getRouteParams = __webpack_require__(68); var _getRouteParams2 = _interopRequireDefault(_getRouteParams); - var _ContextUtils = __webpack_require__(58); + var _ContextUtils = __webpack_require__(69); var _RouteUtils = __webpack_require__(40); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - var _React$PropTypes = _react2.default.PropTypes, - array = _React$PropTypes.array, - func = _React$PropTypes.func, - object = _React$PropTypes.object; - /** * A renders the component tree for a given router state * and sets the history object and the current location in context. */ - - var RouterContext = _react2.default.createClass({ + var RouterContext = (0, _createReactClass2.default)({ displayName: 'RouterContext', - mixins: [(0, _ContextUtils.ContextProvider)('router')], propTypes: { - router: object.isRequired, - location: object.isRequired, - routes: array.isRequired, - params: object.isRequired, - components: array.isRequired, - createElement: func.isRequired + router: _propTypes.object.isRequired, + location: _propTypes.object.isRequired, + routes: _propTypes.array.isRequired, + params: _propTypes.object.isRequired, + components: _propTypes.array.isRequired, + createElement: _propTypes.func.isRequired }, getDefaultProps: function getDefaultProps() { @@ -7193,7 +9115,7 @@ module.exports = childContextTypes: { - router: object.isRequired + router: _propTypes.object.isRequired }, getChildContext: function getChildContext() { @@ -7269,15 +9191,15 @@ module.exports = module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 57 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 68 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; exports.__esModule = true; - var _PatternUtils = __webpack_require__(42); + var _PatternUtils = __webpack_require__(50); /** * Extracts an object of params the given route cares about from @@ -7300,9 +9222,9 @@ module.exports = exports.default = getRouteParams; module.exports = exports['default']; -/***/ }, -/* 58 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 69 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -7310,16 +9232,20 @@ module.exports = exports.ContextProvider = ContextProvider; exports.ContextSubscriber = ContextSubscriber; - var _react = __webpack_require__(7); + var _propTypes = __webpack_require__(42); + + var _propTypes2 = _interopRequireDefault(_propTypes); + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } // Works around issues with context updates failing to propagate. // Caveat: the context value is expected to never change its identity. // https://github.com/facebook/react/issues/2517 // https://github.com/reactjs/react-router/issues/470 - var contextProviderShape = _react.PropTypes.shape({ - subscribe: _react.PropTypes.func.isRequired, - eventIndex: _react.PropTypes.number.isRequired + var contextProviderShape = _propTypes2.default.shape({ + subscribe: _propTypes2.default.func.isRequired, + eventIndex: _propTypes2.default.number.isRequired }); function makeContextName(name) { @@ -7426,9 +9352,9 @@ module.exports = }, _ref4; } -/***/ }, -/* 59 */ -/***/ function(module, exports) { +/***/ }), +/* 70 */ +/***/ (function(module, exports) { "use strict"; @@ -7459,9 +9385,9 @@ module.exports = return router; } -/***/ }, -/* 60 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 71 */ +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {'use strict'; @@ -7473,26 +9399,24 @@ module.exports = var _react2 = _interopRequireDefault(_react); - var _invariant = __webpack_require__(43); + var _createReactClass = __webpack_require__(53); + + var _createReactClass2 = _interopRequireDefault(_createReactClass); + + var _propTypes = __webpack_require__(42); + + var _invariant = __webpack_require__(51); var _invariant2 = _interopRequireDefault(_invariant); var _PropTypes = __webpack_require__(41); - var _ContextUtils = __webpack_require__(58); + var _ContextUtils = __webpack_require__(69); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } - var _React$PropTypes = _react2.default.PropTypes, - bool = _React$PropTypes.bool, - object = _React$PropTypes.object, - string = _React$PropTypes.string, - func = _React$PropTypes.func, - oneOfType = _React$PropTypes.oneOfType; - - function isLeftClickEvent(event) { return event.button === 0; } @@ -7524,16 +9448,10 @@ module.exports = * You could use the following component to link to that route: * * - * - * Links may pass along location state and/or query string parameters - * in the state/query props, respectively. - * - * */ - var Link = _react2.default.createClass({ + var Link = (0, _createReactClass2.default)({ displayName: 'Link', - mixins: [(0, _ContextUtils.ContextSubscriber)('router')], contextTypes: { @@ -7541,15 +9459,12 @@ module.exports = }, propTypes: { - to: oneOfType([string, object, func]), - query: object, - hash: string, - state: object, - activeStyle: object, - activeClassName: string, - onlyActiveOnIndex: bool.isRequired, - onClick: func, - target: string + to: (0, _propTypes.oneOfType)([_propTypes.string, _propTypes.object, _propTypes.func]), + activeStyle: _propTypes.object, + activeClassName: _propTypes.string, + onlyActiveOnIndex: _propTypes.bool.isRequired, + onClick: _propTypes.func, + target: _propTypes.string }, getDefaultProps: function getDefaultProps() { @@ -7623,9 +9538,9 @@ module.exports = module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 61 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 72 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -7637,7 +9552,11 @@ module.exports = var _react2 = _interopRequireDefault(_react); - var _Link = __webpack_require__(60); + var _createReactClass = __webpack_require__(53); + + var _createReactClass2 = _interopRequireDefault(_createReactClass); + + var _Link = __webpack_require__(71); var _Link2 = _interopRequireDefault(_Link); @@ -7646,8 +9565,9 @@ module.exports = /** * An is used to link to an . */ - var IndexLink = _react2.default.createClass({ + var IndexLink = (0, _createReactClass2.default)({ displayName: 'IndexLink', + render: function render() { return _react2.default.createElement(_Link2.default, _extends({}, this.props, { onlyActiveOnIndex: true })); } @@ -7656,9 +9576,9 @@ module.exports = exports.default = IndexLink; module.exports = exports['default']; -/***/ }, -/* 62 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 73 */ +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {'use strict'; @@ -7668,7 +9588,7 @@ module.exports = exports.default = withRouter; - var _invariant = __webpack_require__(43); + var _invariant = __webpack_require__(51); var _invariant2 = _interopRequireDefault(_invariant); @@ -7676,11 +9596,15 @@ module.exports = var _react2 = _interopRequireDefault(_react); - var _hoistNonReactStatics = __webpack_require__(63); + var _createReactClass = __webpack_require__(53); + + var _createReactClass2 = _interopRequireDefault(_createReactClass); + + var _hoistNonReactStatics = __webpack_require__(74); var _hoistNonReactStatics2 = _interopRequireDefault(_hoistNonReactStatics); - var _ContextUtils = __webpack_require__(58); + var _ContextUtils = __webpack_require__(69); var _PropTypes = __webpack_require__(41); @@ -7693,7 +9617,7 @@ module.exports = function withRouter(WrappedComponent, options) { var withRef = options && options.withRef; - var WithRouter = _react2.default.createClass({ + var WithRouter = (0, _createReactClass2.default)({ displayName: 'WithRouter', mixins: [(0, _ContextUtils.ContextSubscriber)('router')], @@ -7738,22 +9662,23 @@ module.exports = module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 63 */ -/***/ function(module, exports) { +/***/ }), +/* 74 */ +/***/ (function(module, exports) { + + 'use strict'; /** * Copyright 2015, Yahoo! Inc. * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms. */ - 'use strict'; - var REACT_STATICS = { childContextTypes: true, contextTypes: true, defaultProps: true, displayName: true, getDefaultProps: true, + getDerivedStateFromProps: true, mixins: true, propTypes: true, type: true @@ -7764,77 +9689,90 @@ module.exports = length: true, prototype: true, caller: true, + callee: true, arguments: true, arity: true }; - var isGetOwnPropertySymbolsAvailable = typeof Object.getOwnPropertySymbols === 'function'; + var defineProperty = Object.defineProperty; + var getOwnPropertyNames = Object.getOwnPropertyNames; + var getOwnPropertySymbols = Object.getOwnPropertySymbols; + var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; + var getPrototypeOf = Object.getPrototypeOf; + var objectPrototype = getPrototypeOf && getPrototypeOf(Object); - module.exports = function hoistNonReactStatics(targetComponent, sourceComponent, customStatics) { + function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) { if (typeof sourceComponent !== 'string') { // don't hoist over string (html) components - var keys = Object.getOwnPropertyNames(sourceComponent); - /* istanbul ignore else */ - if (isGetOwnPropertySymbolsAvailable) { - keys = keys.concat(Object.getOwnPropertySymbols(sourceComponent)); + if (objectPrototype) { + var inheritedComponent = getPrototypeOf(sourceComponent); + if (inheritedComponent && inheritedComponent !== objectPrototype) { + hoistNonReactStatics(targetComponent, inheritedComponent, blacklist); + } } - for (var i = 0; i < keys.length; ++i) { - if (!REACT_STATICS[keys[i]] && !KNOWN_STATICS[keys[i]] && (!customStatics || !customStatics[keys[i]])) { - try { - targetComponent[keys[i]] = sourceComponent[keys[i]]; - } catch (error) { + var keys = getOwnPropertyNames(sourceComponent); - } + if (getOwnPropertySymbols) { + keys = keys.concat(getOwnPropertySymbols(sourceComponent)); + } + + for (var i = 0; i < keys.length; ++i) { + var key = keys[i]; + if (!REACT_STATICS[key] && !KNOWN_STATICS[key] && (!blacklist || !blacklist[key])) { + var descriptor = getOwnPropertyDescriptor(sourceComponent, key); + try { // Avoid failures from read-only properties + defineProperty(targetComponent, key, descriptor); + } catch (e) {} } } + + return targetComponent; } return targetComponent; - }; + } + module.exports = hoistNonReactStatics; -/***/ }, -/* 64 */ -/***/ function(module, exports, __webpack_require__) { + +/***/ }), +/* 75 */ +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {'use strict'; exports.__esModule = true; - var _react = __webpack_require__(7); + var _createReactClass = __webpack_require__(53); - var _react2 = _interopRequireDefault(_react); + var _createReactClass2 = _interopRequireDefault(_createReactClass); + + var _propTypes = __webpack_require__(42); - var _routerWarning = __webpack_require__(46); + var _routerWarning = __webpack_require__(57); var _routerWarning2 = _interopRequireDefault(_routerWarning); - var _invariant = __webpack_require__(43); + var _invariant = __webpack_require__(51); var _invariant2 = _interopRequireDefault(_invariant); - var _Redirect = __webpack_require__(65); + var _Redirect = __webpack_require__(76); var _Redirect2 = _interopRequireDefault(_Redirect); - var _InternalPropTypes = __webpack_require__(55); + var _InternalPropTypes = __webpack_require__(66); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - var _React$PropTypes = _react2.default.PropTypes, - string = _React$PropTypes.string, - object = _React$PropTypes.object; - /** * An is used to redirect from an indexRoute. */ /* eslint-disable react/require-render-return */ - - var IndexRedirect = _react2.default.createClass({ + var IndexRedirect = (0, _createReactClass2.default)({ displayName: 'IndexRedirect', - statics: { createRouteFromReactElement: function createRouteFromReactElement(element, parentRoute) { /* istanbul ignore else: sanity check */ @@ -7847,9 +9785,9 @@ module.exports = }, propTypes: { - to: string.isRequired, - query: object, - state: object, + to: _propTypes.string.isRequired, + query: _propTypes.object, + state: _propTypes.object, onEnter: _InternalPropTypes.falsy, children: _InternalPropTypes.falsy }, @@ -7864,34 +9802,32 @@ module.exports = module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 65 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 76 */ +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {'use strict'; exports.__esModule = true; - var _react = __webpack_require__(7); + var _createReactClass = __webpack_require__(53); - var _react2 = _interopRequireDefault(_react); + var _createReactClass2 = _interopRequireDefault(_createReactClass); + + var _propTypes = __webpack_require__(42); - var _invariant = __webpack_require__(43); + var _invariant = __webpack_require__(51); var _invariant2 = _interopRequireDefault(_invariant); var _RouteUtils = __webpack_require__(40); - var _PatternUtils = __webpack_require__(42); + var _PatternUtils = __webpack_require__(50); - var _InternalPropTypes = __webpack_require__(55); + var _InternalPropTypes = __webpack_require__(66); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - var _React$PropTypes = _react2.default.PropTypes, - string = _React$PropTypes.string, - object = _React$PropTypes.object; - /** * A is used to declare another URL path a client should * be sent to when they request a given URL. @@ -7900,11 +9836,9 @@ module.exports = * and are traversed in the same manner. */ /* eslint-disable react/require-render-return */ - - var Redirect = _react2.default.createClass({ + var Redirect = (0, _createReactClass2.default)({ displayName: 'Redirect', - statics: { createRouteFromReactElement: function createRouteFromReactElement(element) { var route = (0, _RouteUtils.createRouteFromReactElement)(element); @@ -7954,11 +9888,11 @@ module.exports = }, propTypes: { - path: string, - from: string, // Alias for path - to: string.isRequired, - query: object, - state: object, + path: _propTypes.string, + from: _propTypes.string, // Alias for path + to: _propTypes.string.isRequired, + query: _propTypes.object, + state: _propTypes.object, onEnter: _InternalPropTypes.falsy, children: _InternalPropTypes.falsy }, @@ -7973,44 +9907,42 @@ module.exports = module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 66 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 77 */ +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {'use strict'; exports.__esModule = true; - var _react = __webpack_require__(7); + var _createReactClass = __webpack_require__(53); - var _react2 = _interopRequireDefault(_react); + var _createReactClass2 = _interopRequireDefault(_createReactClass); + + var _propTypes = __webpack_require__(42); - var _routerWarning = __webpack_require__(46); + var _routerWarning = __webpack_require__(57); var _routerWarning2 = _interopRequireDefault(_routerWarning); - var _invariant = __webpack_require__(43); + var _invariant = __webpack_require__(51); var _invariant2 = _interopRequireDefault(_invariant); var _RouteUtils = __webpack_require__(40); - var _InternalPropTypes = __webpack_require__(55); + var _InternalPropTypes = __webpack_require__(66); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - var func = _react2.default.PropTypes.func; - /** * An is used to specify its parent's in * a JSX route config. */ /* eslint-disable react/require-render-return */ - - var IndexRoute = _react2.default.createClass({ + var IndexRoute = (0, _createReactClass2.default)({ displayName: 'IndexRoute', - statics: { createRouteFromReactElement: function createRouteFromReactElement(element, parentRoute) { /* istanbul ignore else: sanity check */ @@ -8026,8 +9958,8 @@ module.exports = path: _InternalPropTypes.falsy, component: _InternalPropTypes.component, components: _InternalPropTypes.components, - getComponent: func, - getComponents: func + getComponent: _propTypes.func, + getComponents: _propTypes.func }, /* istanbul ignore next: sanity check */ @@ -8040,32 +9972,30 @@ module.exports = module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 67 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 78 */ +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {'use strict'; exports.__esModule = true; - var _react = __webpack_require__(7); + var _createReactClass = __webpack_require__(53); - var _react2 = _interopRequireDefault(_react); + var _createReactClass2 = _interopRequireDefault(_createReactClass); + + var _propTypes = __webpack_require__(42); - var _invariant = __webpack_require__(43); + var _invariant = __webpack_require__(51); var _invariant2 = _interopRequireDefault(_invariant); var _RouteUtils = __webpack_require__(40); - var _InternalPropTypes = __webpack_require__(55); + var _InternalPropTypes = __webpack_require__(66); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - var _React$PropTypes = _react2.default.PropTypes, - string = _React$PropTypes.string, - func = _React$PropTypes.func; - /** * A is used to declare which components are rendered to the * page when the URL matches a given pattern. @@ -8077,21 +10007,19 @@ module.exports = * rendered into the DOM, nested in the same order as in the tree. */ /* eslint-disable react/require-render-return */ - - var Route = _react2.default.createClass({ + var Route = (0, _createReactClass2.default)({ displayName: 'Route', - statics: { createRouteFromReactElement: _RouteUtils.createRouteFromReactElement }, propTypes: { - path: string, + path: _propTypes.string, component: _InternalPropTypes.component, components: _InternalPropTypes.components, - getComponent: func, - getComponents: func + getComponent: _propTypes.func, + getComponents: _propTypes.func }, /* istanbul ignore next: sanity check */ @@ -8104,9 +10032,9 @@ module.exports = module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 68 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 79 */ +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {'use strict'; @@ -8114,23 +10042,23 @@ module.exports = var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - var _Actions = __webpack_require__(69); + var _Actions = __webpack_require__(80); - var _invariant = __webpack_require__(43); + var _invariant = __webpack_require__(51); var _invariant2 = _interopRequireDefault(_invariant); - var _createMemoryHistory = __webpack_require__(70); + var _createMemoryHistory = __webpack_require__(81); var _createMemoryHistory2 = _interopRequireDefault(_createMemoryHistory); - var _createTransitionManager = __webpack_require__(45); + var _createTransitionManager = __webpack_require__(56); var _createTransitionManager2 = _interopRequireDefault(_createTransitionManager); var _RouteUtils = __webpack_require__(40); - var _RouterUtils = __webpack_require__(59); + var _RouterUtils = __webpack_require__(70); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -8182,9 +10110,9 @@ module.exports = module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 69 */ -/***/ function(module, exports) { +/***/ }), +/* 80 */ +/***/ (function(module, exports) { 'use strict'; @@ -8209,24 +10137,24 @@ module.exports = */ var POP = exports.POP = 'POP'; -/***/ }, -/* 70 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 81 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; exports.__esModule = true; exports.default = createMemoryHistory; - var _useQueries = __webpack_require__(71); + var _useQueries = __webpack_require__(82); var _useQueries2 = _interopRequireDefault(_useQueries); - var _useBasename = __webpack_require__(78); + var _useBasename = __webpack_require__(88); var _useBasename2 = _interopRequireDefault(_useBasename); - var _createMemoryHistory = __webpack_require__(79); + var _createMemoryHistory = __webpack_require__(89); var _createMemoryHistory2 = _interopRequireDefault(_createMemoryHistory); @@ -8245,9 +10173,9 @@ module.exports = } module.exports = exports['default']; -/***/ }, -/* 71 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 82 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -8255,15 +10183,15 @@ module.exports = var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - var _queryString = __webpack_require__(72); + var _queryString = __webpack_require__(83); - var _runTransitionHook = __webpack_require__(75); + var _runTransitionHook = __webpack_require__(85); var _runTransitionHook2 = _interopRequireDefault(_runTransitionHook); - var _LocationUtils = __webpack_require__(76); + var _LocationUtils = __webpack_require__(86); - var _PathUtils = __webpack_require__(77); + var _PathUtils = __webpack_require__(87); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -8371,13 +10299,13 @@ module.exports = exports.default = useQueries; -/***/ }, -/* 72 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 83 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; - var strictUriEncode = __webpack_require__(73); - var objectAssign = __webpack_require__(74); + var strictUriEncode = __webpack_require__(84); + var objectAssign = __webpack_require__(46); function encoderForArrayFormat(opts) { switch (opts.arrayFormat) { @@ -8442,12 +10370,14 @@ module.exports = case 'bracket': return function (key, value, accumulator) { result = /(\[\])$/.exec(key); - key = key.replace(/\[\]$/, ''); - if (!result || accumulator[key] === undefined) { + if (!result) { accumulator[key] = value; return; + } else if (accumulator[key] === undefined) { + accumulator[key] = [value]; + return; } accumulator[key] = [].concat(accumulator[key], value); @@ -8580,9 +10510,9 @@ module.exports = }; -/***/ }, -/* 73 */ -/***/ function(module, exports) { +/***/ }), +/* 84 */ +/***/ (function(module, exports) { 'use strict'; module.exports = function (str) { @@ -8592,111 +10522,15 @@ module.exports = }; -/***/ }, -/* 74 */ -/***/ function(module, exports) { - - /* - object-assign - (c) Sindre Sorhus - @license MIT - */ - - 'use strict'; - /* eslint-disable no-unused-vars */ - var getOwnPropertySymbols = Object.getOwnPropertySymbols; - var hasOwnProperty = Object.prototype.hasOwnProperty; - var propIsEnumerable = Object.prototype.propertyIsEnumerable; - - function toObject(val) { - if (val === null || val === undefined) { - throw new TypeError('Object.assign cannot be called with null or undefined'); - } - - return Object(val); - } - - function shouldUseNative() { - try { - if (!Object.assign) { - return false; - } - - // Detect buggy property enumeration order in older V8 versions. - - // https://bugs.chromium.org/p/v8/issues/detail?id=4118 - var test1 = new String('abc'); // eslint-disable-line no-new-wrappers - test1[5] = 'de'; - if (Object.getOwnPropertyNames(test1)[0] === '5') { - return false; - } - - // https://bugs.chromium.org/p/v8/issues/detail?id=3056 - var test2 = {}; - for (var i = 0; i < 10; i++) { - test2['_' + String.fromCharCode(i)] = i; - } - var order2 = Object.getOwnPropertyNames(test2).map(function (n) { - return test2[n]; - }); - if (order2.join('') !== '0123456789') { - return false; - } - - // https://bugs.chromium.org/p/v8/issues/detail?id=3056 - var test3 = {}; - 'abcdefghijklmnopqrst'.split('').forEach(function (letter) { - test3[letter] = letter; - }); - if (Object.keys(Object.assign({}, test3)).join('') !== - 'abcdefghijklmnopqrst') { - return false; - } - - return true; - } catch (err) { - // We don't expect any of the above to throw, but better to be safe. - return false; - } - } - - module.exports = shouldUseNative() ? Object.assign : function (target, source) { - var from; - var to = toObject(target); - var symbols; - - for (var s = 1; s < arguments.length; s++) { - from = Object(arguments[s]); - - for (var key in from) { - if (hasOwnProperty.call(from, key)) { - to[key] = from[key]; - } - } - - if (getOwnPropertySymbols) { - symbols = getOwnPropertySymbols(from); - for (var i = 0; i < symbols.length; i++) { - if (propIsEnumerable.call(from, symbols[i])) { - to[symbols[i]] = from[symbols[i]]; - } - } - } - } - - return to; - }; - - -/***/ }, -/* 75 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 85 */ +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {'use strict'; exports.__esModule = true; - var _warning = __webpack_require__(47); + var _warning = __webpack_require__(58); var _warning2 = _interopRequireDefault(_warning); @@ -8717,9 +10551,9 @@ module.exports = exports.default = runTransitionHook; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 76 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 86 */ +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {'use strict'; @@ -8730,17 +10564,17 @@ module.exports = var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - var _invariant = __webpack_require__(43); + var _invariant = __webpack_require__(51); var _invariant2 = _interopRequireDefault(_invariant); - var _warning = __webpack_require__(47); + var _warning = __webpack_require__(58); var _warning2 = _interopRequireDefault(_warning); - var _PathUtils = __webpack_require__(77); + var _PathUtils = __webpack_require__(87); - var _Actions = __webpack_require__(69); + var _Actions = __webpack_require__(80); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -8815,16 +10649,16 @@ module.exports = }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 77 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 87 */ +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {'use strict'; exports.__esModule = true; exports.createPath = exports.parsePath = exports.getQueryStringValueFromPath = exports.stripQueryStringValueFromPath = exports.addQueryStringValueToPath = undefined; - var _warning = __webpack_require__(47); + var _warning = __webpack_require__(58); var _warning2 = _interopRequireDefault(_warning); @@ -8917,9 +10751,9 @@ module.exports = }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 78 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 88 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -8927,11 +10761,11 @@ module.exports = var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - var _runTransitionHook = __webpack_require__(75); + var _runTransitionHook = __webpack_require__(85); var _runTransitionHook2 = _interopRequireDefault(_runTransitionHook); - var _PathUtils = __webpack_require__(77); + var _PathUtils = __webpack_require__(87); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -9031,9 +10865,9 @@ module.exports = exports.default = useBasename; -/***/ }, -/* 79 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 89 */ +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {'use strict'; @@ -9041,23 +10875,23 @@ module.exports = var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - var _warning = __webpack_require__(47); + var _warning = __webpack_require__(58); var _warning2 = _interopRequireDefault(_warning); - var _invariant = __webpack_require__(43); + var _invariant = __webpack_require__(51); var _invariant2 = _interopRequireDefault(_invariant); - var _LocationUtils = __webpack_require__(76); + var _LocationUtils = __webpack_require__(86); - var _PathUtils = __webpack_require__(77); + var _PathUtils = __webpack_require__(87); - var _createHistory = __webpack_require__(80); + var _createHistory = __webpack_require__(90); var _createHistory2 = _interopRequireDefault(_createHistory); - var _Actions = __webpack_require__(69); + var _Actions = __webpack_require__(80); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -9177,25 +11011,25 @@ module.exports = exports.default = createMemoryHistory; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 80 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 90 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; exports.__esModule = true; - var _AsyncUtils = __webpack_require__(81); + var _AsyncUtils = __webpack_require__(91); - var _PathUtils = __webpack_require__(77); + var _PathUtils = __webpack_require__(87); - var _runTransitionHook = __webpack_require__(75); + var _runTransitionHook = __webpack_require__(85); var _runTransitionHook2 = _interopRequireDefault(_runTransitionHook); - var _Actions = __webpack_require__(69); + var _Actions = __webpack_require__(80); - var _LocationUtils = __webpack_require__(76); + var _LocationUtils = __webpack_require__(86); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -9358,9 +11192,9 @@ module.exports = exports.default = createHistory; -/***/ }, -/* 81 */ -/***/ function(module, exports) { +/***/ }), +/* 91 */ +/***/ (function(module, exports) { "use strict"; @@ -9419,20 +11253,20 @@ module.exports = next(); }; -/***/ }, -/* 82 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 92 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; exports.__esModule = true; exports.default = useRouterHistory; - var _useQueries = __webpack_require__(71); + var _useQueries = __webpack_require__(82); var _useQueries2 = _interopRequireDefault(_useQueries); - var _useBasename = __webpack_require__(78); + var _useBasename = __webpack_require__(88); var _useBasename2 = _interopRequireDefault(_useBasename); @@ -9446,9 +11280,9 @@ module.exports = } module.exports = exports['default']; -/***/ }, -/* 83 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 93 */ +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {'use strict'; @@ -9460,11 +11294,11 @@ module.exports = var _react2 = _interopRequireDefault(_react); - var _RouterContext = __webpack_require__(56); + var _RouterContext = __webpack_require__(67); var _RouterContext2 = _interopRequireDefault(_RouterContext); - var _routerWarning = __webpack_require__(46); + var _routerWarning = __webpack_require__(57); var _routerWarning2 = _interopRequireDefault(_routerWarning); @@ -9509,19 +11343,19 @@ module.exports = module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 84 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 94 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; exports.__esModule = true; - var _createBrowserHistory = __webpack_require__(85); + var _createBrowserHistory = __webpack_require__(95); var _createBrowserHistory2 = _interopRequireDefault(_createBrowserHistory); - var _createRouterHistory = __webpack_require__(91); + var _createRouterHistory = __webpack_require__(101); var _createRouterHistory2 = _interopRequireDefault(_createRouterHistory); @@ -9530,9 +11364,9 @@ module.exports = exports.default = (0, _createRouterHistory2.default)(_createBrowserHistory2.default); module.exports = exports['default']; -/***/ }, -/* 85 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 95 */ +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {'use strict'; @@ -9540,23 +11374,23 @@ module.exports = var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - var _invariant = __webpack_require__(43); + var _invariant = __webpack_require__(51); var _invariant2 = _interopRequireDefault(_invariant); - var _ExecutionEnvironment = __webpack_require__(86); + var _ExecutionEnvironment = __webpack_require__(96); - var _BrowserProtocol = __webpack_require__(87); + var _BrowserProtocol = __webpack_require__(97); var BrowserProtocol = _interopRequireWildcard(_BrowserProtocol); - var _RefreshProtocol = __webpack_require__(90); + var _RefreshProtocol = __webpack_require__(100); var RefreshProtocol = _interopRequireWildcard(_RefreshProtocol); - var _DOMUtils = __webpack_require__(88); + var _DOMUtils = __webpack_require__(98); - var _createHistory = __webpack_require__(80); + var _createHistory = __webpack_require__(90); var _createHistory2 = _interopRequireDefault(_createHistory); @@ -9629,33 +11463,33 @@ module.exports = exports.default = createBrowserHistory; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 86 */ -/***/ function(module, exports) { +/***/ }), +/* 96 */ +/***/ (function(module, exports) { 'use strict'; exports.__esModule = true; var canUseDOM = exports.canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement); -/***/ }, -/* 87 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 97 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; exports.__esModule = true; exports.go = exports.replaceLocation = exports.pushLocation = exports.startListener = exports.getUserConfirmation = exports.getCurrentLocation = undefined; - var _LocationUtils = __webpack_require__(76); + var _LocationUtils = __webpack_require__(86); - var _DOMUtils = __webpack_require__(88); + var _DOMUtils = __webpack_require__(98); - var _DOMStateStorage = __webpack_require__(89); + var _DOMStateStorage = __webpack_require__(99); - var _PathUtils = __webpack_require__(77); + var _PathUtils = __webpack_require__(87); - var _ExecutionEnvironment = __webpack_require__(86); + var _ExecutionEnvironment = __webpack_require__(96); var PopStateEvent = 'popstate'; var HashChangeEvent = 'hashchange'; @@ -9742,9 +11576,9 @@ module.exports = if (n) window.history.go(n); }; -/***/ }, -/* 88 */ -/***/ function(module, exports) { +/***/ }), +/* 98 */ +/***/ (function(module, exports) { 'use strict'; @@ -9796,16 +11630,16 @@ module.exports = return event.state === undefined && navigator.userAgent.indexOf('CriOS') === -1; }; -/***/ }, -/* 89 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 99 */ +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {'use strict'; exports.__esModule = true; exports.readState = exports.saveState = undefined; - var _warning = __webpack_require__(47); + var _warning = __webpack_require__(58); var _warning2 = _interopRequireDefault(_warning); @@ -9887,16 +11721,16 @@ module.exports = }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 90 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 100 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; exports.__esModule = true; exports.replaceLocation = exports.pushLocation = exports.getCurrentLocation = exports.go = exports.getUserConfirmation = undefined; - var _BrowserProtocol = __webpack_require__(87); + var _BrowserProtocol = __webpack_require__(97); Object.defineProperty(exports, 'getUserConfirmation', { enumerable: true, @@ -9911,9 +11745,9 @@ module.exports = } }); - var _LocationUtils = __webpack_require__(76); + var _LocationUtils = __webpack_require__(86); - var _PathUtils = __webpack_require__(77); + var _PathUtils = __webpack_require__(87); var getCurrentLocation = exports.getCurrentLocation = function getCurrentLocation() { return (0, _LocationUtils.createLocation)(window.location); @@ -9929,21 +11763,16 @@ module.exports = return false; // Don't update location }; -/***/ }, -/* 91 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 101 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; exports.__esModule = true; + exports.default = createRouterHistory; - exports.default = function (createHistory) { - var history = void 0; - if (canUseDOM) history = (0, _useRouterHistory2.default)(createHistory)(); - return history; - }; - - var _useRouterHistory = __webpack_require__(82); + var _useRouterHistory = __webpack_require__(92); var _useRouterHistory2 = _interopRequireDefault(_useRouterHistory); @@ -9951,21 +11780,26 @@ module.exports = var canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement); + function createRouterHistory(createHistory) { + var history = void 0; + if (canUseDOM) history = (0, _useRouterHistory2.default)(createHistory)(); + return history; + } module.exports = exports['default']; -/***/ }, -/* 92 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 102 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; exports.__esModule = true; - var _createHashHistory = __webpack_require__(93); + var _createHashHistory = __webpack_require__(103); var _createHashHistory2 = _interopRequireDefault(_createHashHistory); - var _createRouterHistory = __webpack_require__(91); + var _createRouterHistory = __webpack_require__(101); var _createRouterHistory2 = _interopRequireDefault(_createRouterHistory); @@ -9974,9 +11808,9 @@ module.exports = exports.default = (0, _createRouterHistory2.default)(_createHashHistory2.default); module.exports = exports['default']; -/***/ }, -/* 93 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 103 */ +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {'use strict'; @@ -9984,23 +11818,23 @@ module.exports = var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - var _warning = __webpack_require__(47); + var _warning = __webpack_require__(58); var _warning2 = _interopRequireDefault(_warning); - var _invariant = __webpack_require__(43); + var _invariant = __webpack_require__(51); var _invariant2 = _interopRequireDefault(_invariant); - var _ExecutionEnvironment = __webpack_require__(86); + var _ExecutionEnvironment = __webpack_require__(96); - var _DOMUtils = __webpack_require__(88); + var _DOMUtils = __webpack_require__(98); - var _HashProtocol = __webpack_require__(94); + var _HashProtocol = __webpack_require__(104); var HashProtocol = _interopRequireWildcard(_HashProtocol); - var _createHistory = __webpack_require__(80); + var _createHistory = __webpack_require__(90); var _createHistory2 = _interopRequireDefault(_createHistory); @@ -10127,16 +11961,16 @@ module.exports = exports.default = createHashHistory; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 94 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 104 */ +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {'use strict'; exports.__esModule = true; exports.replaceLocation = exports.pushLocation = exports.startListener = exports.getCurrentLocation = exports.go = exports.getUserConfirmation = undefined; - var _BrowserProtocol = __webpack_require__(87); + var _BrowserProtocol = __webpack_require__(97); Object.defineProperty(exports, 'getUserConfirmation', { enumerable: true, @@ -10151,17 +11985,17 @@ module.exports = } }); - var _warning = __webpack_require__(47); + var _warning = __webpack_require__(58); var _warning2 = _interopRequireDefault(_warning); - var _LocationUtils = __webpack_require__(76); + var _LocationUtils = __webpack_require__(86); - var _DOMUtils = __webpack_require__(88); + var _DOMUtils = __webpack_require__(98); - var _DOMStateStorage = __webpack_require__(89); + var _DOMStateStorage = __webpack_require__(99); - var _PathUtils = __webpack_require__(77); + var _PathUtils = __webpack_require__(87); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -10269,9 +12103,9 @@ module.exports = }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 95 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 105 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -10302,9 +12136,9 @@ module.exports = exports.default = HomeRoute; -/***/ }, -/* 96 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 106 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -10356,9 +12190,9 @@ module.exports = }, _temp); exports.default = LoginRoute; -/***/ }, -/* 97 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 107 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -10421,9 +12255,9 @@ module.exports = }, _temp); exports.default = LogoutRoute; -/***/ }, -/* 98 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 108 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -10477,9 +12311,9 @@ module.exports = }, _temp); exports.default = AuthenticatedRoute; -/***/ }, -/* 99 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 109 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -10543,9 +12377,9 @@ module.exports = }, _temp); exports.default = Authenticated; -/***/ }, -/* 100 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 110 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -10613,9 +12447,9 @@ module.exports = }, _temp); exports.default = NotAuthenticated; -/***/ }, -/* 101 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 111 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -10680,9 +12514,9 @@ module.exports = exports.default = LoginLink; -/***/ }, -/* 102 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 112 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -10786,9 +12620,9 @@ module.exports = }, _temp2); exports.default = LogoutLink; -/***/ }, -/* 103 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 113 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -10821,11 +12655,11 @@ module.exports = var _UserActions2 = _interopRequireDefault(_UserActions); - var _LoadingText = __webpack_require__(104); + var _LoadingText = __webpack_require__(114); var _LoadingText2 = _interopRequireDefault(_LoadingText); - var _SocialLoginButton = __webpack_require__(105); + var _SocialLoginButton = __webpack_require__(115); var _SocialLoginButton2 = _interopRequireDefault(_SocialLoginButton); @@ -11037,7 +12871,8 @@ module.exports = return _ret2 = (_temp2 = (_this3 = _possibleConstructorReturn(this, (_ref2 = LoginForm.__proto__ || Object.getPrototypeOf(LoginForm)).call.apply(_ref2, [this].concat(args))), _this3), _this3.state = { fields: { username: '', - password: '' + password: '', + brand: 'scooponexperience' }, errorMessage: null, isFormProcessing: false @@ -11081,7 +12916,8 @@ module.exports = _UserActions2.default.login({ login: data.username, - password: data.password + password: data.password, + brand: data.brand }, function (err, result) { if (err) { if (onSubmitError) { @@ -11202,9 +13038,9 @@ module.exports = }, _temp3); exports.default = LoginForm; -/***/ }, -/* 104 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 114 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -11284,9 +13120,9 @@ module.exports = exports.default = LoadingText; -/***/ }, -/* 105 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 115 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -11307,7 +13143,7 @@ module.exports = var _utils2 = _interopRequireDefault(_utils); - var _SocialLoginLink = __webpack_require__(106); + var _SocialLoginLink = __webpack_require__(116); var _SocialLoginLink2 = _interopRequireDefault(_SocialLoginLink); @@ -11348,9 +13184,9 @@ module.exports = exports.default = SocialLoginButton; -/***/ }, -/* 106 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 116 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -11367,7 +13203,7 @@ module.exports = var _react2 = _interopRequireDefault(_react); - var _xtend = __webpack_require__(107); + var _xtend = __webpack_require__(117); var _xtend2 = _interopRequireDefault(_xtend); @@ -11509,9 +13345,9 @@ module.exports = exports.default = SocialLoginLink; -/***/ }, -/* 107 */ -/***/ function(module, exports) { +/***/ }), +/* 117 */ +/***/ (function(module, exports) { module.exports = extend @@ -11534,9 +13370,9 @@ module.exports = } -/***/ }, -/* 108 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 118 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -11901,9 +13737,9 @@ module.exports = }, _temp3); exports.default = UserProfileForm; -/***/ }, -/* 109 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 119 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -11932,7 +13768,7 @@ module.exports = var _context2 = _interopRequireDefault(_context); - var _LoginLink = __webpack_require__(101); + var _LoginLink = __webpack_require__(111); var _LoginLink2 = _interopRequireDefault(_LoginLink); @@ -11940,11 +13776,11 @@ module.exports = var _UserActions2 = _interopRequireDefault(_UserActions); - var _LoadingText = __webpack_require__(104); + var _LoadingText = __webpack_require__(114); var _LoadingText2 = _interopRequireDefault(_LoadingText); - var _SocialLoginButton = __webpack_require__(105); + var _SocialLoginButton = __webpack_require__(115); var _SocialLoginButton2 = _interopRequireDefault(_SocialLoginButton); @@ -12424,9 +14260,9 @@ module.exports = }, _temp3); exports.default = RegistrationForm; -/***/ }, -/* 110 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 120 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -12449,7 +14285,7 @@ module.exports = var _utils2 = _interopRequireDefault(_utils); - var _LoginLink = __webpack_require__(101); + var _LoginLink = __webpack_require__(111); var _LoginLink2 = _interopRequireDefault(_LoginLink); @@ -12696,9 +14532,9 @@ module.exports = exports.default = ResetPasswordForm; -/***/ }, -/* 111 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 121 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -12721,11 +14557,11 @@ module.exports = var _utils2 = _interopRequireDefault(_utils); - var _LoginLink = __webpack_require__(101); + var _LoginLink = __webpack_require__(111); var _LoginLink2 = _interopRequireDefault(_LoginLink); - var _LoadingText = __webpack_require__(104); + var _LoadingText = __webpack_require__(114); var _LoadingText2 = _interopRequireDefault(_LoadingText); @@ -13018,9 +14854,9 @@ module.exports = exports.default = ChangePasswordForm; -/***/ }, -/* 112 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 122 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -13041,7 +14877,7 @@ module.exports = var _utils2 = _interopRequireDefault(_utils); - var _LoginLink = __webpack_require__(101); + var _LoginLink = __webpack_require__(111); var _LoginLink2 = _interopRequireDefault(_LoginLink); @@ -13138,9 +14974,9 @@ module.exports = exports.default = VerifyEmailView; -/***/ }, -/* 113 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 123 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -13159,7 +14995,7 @@ module.exports = var _utils2 = _interopRequireDefault(_utils); - var _UserComponent2 = __webpack_require__(114); + var _UserComponent2 = __webpack_require__(124); var _UserComponent3 = _interopRequireDefault(_UserComponent2); @@ -13228,9 +15064,9 @@ module.exports = exports.default = UserField; -/***/ }, -/* 114 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 124 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -13309,5 +15145,5 @@ module.exports = exports.default = UserComponent; -/***/ } +/***/ }) /******/ ]); \ No newline at end of file diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..533920d --- /dev/null +++ b/package-lock.json @@ -0,0 +1,5375 @@ +{ + "name": "react-stormpath", + "version": "3.1.0", + "lockfileVersion": 1, + "requires": true, + "dependencies": { + "abbrev": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.0.9.tgz", + "integrity": "sha1-kbR5JYinc4wl813W9jdSovh3YTU=", + "dev": true + }, + "acorn": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-5.7.1.tgz", + "integrity": "sha512-d+nbxBUGKg7Arpsvbnlq61mc12ek3EY8EQldM3GPAhWJ1UVxC6TDGbIvUMNU6obBX3i1+ptCIzV4vq0gFPEGVQ==", + "dev": true + }, + "acorn-jsx": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-3.0.1.tgz", + "integrity": "sha1-r9+UiPsezvyDSPb7IvRk4ypYs2s=", + "dev": true, + "requires": { + "acorn": "3.3.0" + }, + "dependencies": { + "acorn": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-3.3.0.tgz", + "integrity": "sha1-ReN/s56No/JbruP/U2niu18iAXo=", + "dev": true + } + } + }, + "ajv": { + "version": "4.11.8", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-4.11.8.tgz", + "integrity": "sha1-gv+wKynmYq5TvcIK8VlHcGc5xTY=", + "dev": true, + "requires": { + "co": "4.6.0", + "json-stable-stringify": "1.0.1" + } + }, + "ajv-keywords": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-1.5.1.tgz", + "integrity": "sha1-MU3QpLM2j609/NxU7eYXG4htrzw=", + "dev": true + }, + "align-text": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/align-text/-/align-text-0.1.4.tgz", + "integrity": "sha1-DNkKVhCT810KmSVsIrcGlDP60Rc=", + "dev": true, + "requires": { + "kind-of": "3.2.2", + "longest": "1.0.1", + "repeat-string": "1.6.1" + } + }, + "alphanum-sort": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/alphanum-sort/-/alphanum-sort-1.0.2.tgz", + "integrity": "sha1-l6ERlkmyEa0zaR2fn0hqjsn74KM=", + "dev": true + }, + "amdefine": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/amdefine/-/amdefine-1.0.1.tgz", + "integrity": "sha1-SlKCrBZHKek2Gbz9OtFR+BfOkfU=", + "dev": true + }, + "ansi-escapes": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-1.4.0.tgz", + "integrity": "sha1-06ioOzGapneTZisT52HHkRQiMG4=", + "dev": true + }, + "ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", + "dev": true + }, + "ansi-styles": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", + "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", + "dev": true + }, + "anymatch": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-1.3.2.tgz", + "integrity": "sha512-0XNayC8lTHQ2OI8aljNCN3sSx6hsr/1+rlcDAotXJR7C1oZZHCNsfpbKwMjRA3Uqb5tF1Rae2oloTr4xpq+WjA==", + "dev": true, + "requires": { + "micromatch": "2.3.11", + "normalize-path": "2.1.1" + } + }, + "argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "requires": { + "sprintf-js": "1.0.3" + } + }, + "arr-diff": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-2.0.0.tgz", + "integrity": "sha1-jzuCf5Vai9ZpaX5KQlasPOrjVs8=", + "dev": true, + "requires": { + "arr-flatten": "1.1.0" + } + }, + "arr-flatten": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/arr-flatten/-/arr-flatten-1.1.0.tgz", + "integrity": "sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg==", + "dev": true + }, + "array-union": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/array-union/-/array-union-1.0.2.tgz", + "integrity": "sha1-mjRBDk9OPaI96jdb5b5w8kd47Dk=", + "dev": true, + "requires": { + "array-uniq": "1.0.3" + } + }, + "array-uniq": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/array-uniq/-/array-uniq-1.0.3.tgz", + "integrity": "sha1-r2rId6Jcx/dOBYiUdThY39sk/bY=", + "dev": true + }, + "array-unique": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.2.1.tgz", + "integrity": "sha1-odl8yvy8JiXMcPrc6zalDFiwGlM=", + "dev": true + }, + "array.prototype.find": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/array.prototype.find/-/array.prototype.find-2.0.4.tgz", + "integrity": "sha1-VWpcU2LAhkgyPdrrnenRS8GGTJA=", + "dev": true, + "requires": { + "define-properties": "1.1.2", + "es-abstract": "1.12.0" + } + }, + "arrify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz", + "integrity": "sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0=", + "dev": true + }, + "asap": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz", + "integrity": "sha1-5QNHYR1+aQlDIIu9r+vLwvuGbUY=", + "dev": true + }, + "assert": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/assert/-/assert-1.4.1.tgz", + "integrity": "sha1-mZEtWRg2tab1s0XA8H7vwI/GXZE=", + "dev": true, + "requires": { + "util": "0.10.3" + }, + "dependencies": { + "inherits": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.1.tgz", + "integrity": "sha1-sX0I0ya0Qj5Wjv9xn5GwscvfafE=", + "dev": true + }, + "util": { + "version": "0.10.3", + "resolved": "https://registry.npmjs.org/util/-/util-0.10.3.tgz", + "integrity": "sha1-evsa/lCAUkZInj23/g7TeTNqwPk=", + "dev": true, + "requires": { + "inherits": "2.0.1" + } + } + } + }, + "async": { + "version": "1.5.2", + "resolved": "https://registry.npmjs.org/async/-/async-1.5.2.tgz", + "integrity": "sha1-7GphrlZIDAw8skHJVhjiCJL5Zyo=", + "dev": true + }, + "async-each": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/async-each/-/async-each-1.0.1.tgz", + "integrity": "sha1-GdOGodntxufByF04iu28xW0zYC0=", + "dev": true + }, + "autoprefixer": { + "version": "6.7.7", + "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-6.7.7.tgz", + "integrity": "sha1-Hb0cg1ZY41zj+ZhAmdsAWFx4IBQ=", + "dev": true, + "requires": { + "browserslist": "1.7.7", + "caniuse-db": "1.0.30000856", + "normalize-range": "0.1.2", + "num2fraction": "1.2.2", + "postcss": "5.2.18", + "postcss-value-parser": "3.3.0" + } + }, + "babel-cli": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-cli/-/babel-cli-6.26.0.tgz", + "integrity": "sha1-UCq1SHTX24itALiHoGODzgPQAvE=", + "dev": true, + "requires": { + "babel-core": "6.26.3", + "babel-polyfill": "6.26.0", + "babel-register": "6.26.0", + "babel-runtime": "6.26.0", + "chokidar": "1.7.0", + "commander": "2.15.1", + "convert-source-map": "1.5.1", + "fs-readdir-recursive": "1.1.0", + "glob": "7.1.2", + "lodash": "4.17.10", + "output-file-sync": "1.1.2", + "path-is-absolute": "1.0.1", + "slash": "1.0.0", + "source-map": "0.5.7", + "v8flags": "2.1.1" + } + }, + "babel-code-frame": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-code-frame/-/babel-code-frame-6.26.0.tgz", + "integrity": "sha1-Y/1D99weO7fONZR9uP42mj9Yx0s=", + "dev": true, + "requires": { + "chalk": "1.1.3", + "esutils": "2.0.2", + "js-tokens": "3.0.2" + } + }, + "babel-core": { + "version": "6.26.3", + "resolved": "https://registry.npmjs.org/babel-core/-/babel-core-6.26.3.tgz", + "integrity": "sha512-6jyFLuDmeidKmUEb3NM+/yawG0M2bDZ9Z1qbZP59cyHLz8kYGKYwpJP0UwUKKUiTRNvxfLesJnTedqczP7cTDA==", + "dev": true, + "requires": { + "babel-code-frame": "6.26.0", + "babel-generator": "6.26.1", + "babel-helpers": "6.24.1", + "babel-messages": "6.23.0", + "babel-register": "6.26.0", + "babel-runtime": "6.26.0", + "babel-template": "6.26.0", + "babel-traverse": "6.26.0", + "babel-types": "6.26.0", + "babylon": "6.18.0", + "convert-source-map": "1.5.1", + "debug": "2.6.9", + "json5": "0.5.1", + "lodash": "4.17.10", + "minimatch": "3.0.4", + "path-is-absolute": "1.0.1", + "private": "0.1.8", + "slash": "1.0.0", + "source-map": "0.5.7" + } + }, + "babel-eslint": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/babel-eslint/-/babel-eslint-7.2.3.tgz", + "integrity": "sha1-sv4tgBJkcPXBlELcdXJTqJdxCCc=", + "dev": true, + "requires": { + "babel-code-frame": "6.26.0", + "babel-traverse": "6.26.0", + "babel-types": "6.26.0", + "babylon": "6.18.0" + } + }, + "babel-generator": { + "version": "6.26.1", + "resolved": "https://registry.npmjs.org/babel-generator/-/babel-generator-6.26.1.tgz", + "integrity": "sha512-HyfwY6ApZj7BYTcJURpM5tznulaBvyio7/0d4zFOeMPUmfxkCjHocCuoLa2SAGzBI8AREcH3eP3758F672DppA==", + "dev": true, + "requires": { + "babel-messages": "6.23.0", + "babel-runtime": "6.26.0", + "babel-types": "6.26.0", + "detect-indent": "4.0.0", + "jsesc": "1.3.0", + "lodash": "4.17.10", + "source-map": "0.5.7", + "trim-right": "1.0.1" + } + }, + "babel-helper-bindify-decorators": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-helper-bindify-decorators/-/babel-helper-bindify-decorators-6.24.1.tgz", + "integrity": "sha1-FMGeXxQte0fxmlJDHlKxzLxAozA=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0", + "babel-traverse": "6.26.0", + "babel-types": "6.26.0" + } + }, + "babel-helper-builder-binary-assignment-operator-visitor": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-helper-builder-binary-assignment-operator-visitor/-/babel-helper-builder-binary-assignment-operator-visitor-6.24.1.tgz", + "integrity": "sha1-zORReto1b0IgvK6KAsKzRvmlZmQ=", + "dev": true, + "requires": { + "babel-helper-explode-assignable-expression": "6.24.1", + "babel-runtime": "6.26.0", + "babel-types": "6.26.0" + } + }, + "babel-helper-builder-react-jsx": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-helper-builder-react-jsx/-/babel-helper-builder-react-jsx-6.26.0.tgz", + "integrity": "sha1-Of+DE7dci2Xc7/HzHTg+D/KkCKA=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0", + "babel-types": "6.26.0", + "esutils": "2.0.2" + } + }, + "babel-helper-call-delegate": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-helper-call-delegate/-/babel-helper-call-delegate-6.24.1.tgz", + "integrity": "sha1-7Oaqzdx25Bw0YfiL/Fdb0Nqi340=", + "dev": true, + "requires": { + "babel-helper-hoist-variables": "6.24.1", + "babel-runtime": "6.26.0", + "babel-traverse": "6.26.0", + "babel-types": "6.26.0" + } + }, + "babel-helper-define-map": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-helper-define-map/-/babel-helper-define-map-6.26.0.tgz", + "integrity": "sha1-pfVtq0GiX5fstJjH66ypgZ+Vvl8=", + "dev": true, + "requires": { + "babel-helper-function-name": "6.24.1", + "babel-runtime": "6.26.0", + "babel-types": "6.26.0", + "lodash": "4.17.10" + } + }, + "babel-helper-explode-assignable-expression": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-helper-explode-assignable-expression/-/babel-helper-explode-assignable-expression-6.24.1.tgz", + "integrity": "sha1-8luCz33BBDPFX3BZLVdGQArCLKo=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0", + "babel-traverse": "6.26.0", + "babel-types": "6.26.0" + } + }, + "babel-helper-explode-class": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-helper-explode-class/-/babel-helper-explode-class-6.24.1.tgz", + "integrity": "sha1-fcKjkQ3uAHBW4eMdZAztPVTqqes=", + "dev": true, + "requires": { + "babel-helper-bindify-decorators": "6.24.1", + "babel-runtime": "6.26.0", + "babel-traverse": "6.26.0", + "babel-types": "6.26.0" + } + }, + "babel-helper-function-name": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-helper-function-name/-/babel-helper-function-name-6.24.1.tgz", + "integrity": "sha1-00dbjAPtmCQqJbSDUasYOZ01gKk=", + "dev": true, + "requires": { + "babel-helper-get-function-arity": "6.24.1", + "babel-runtime": "6.26.0", + "babel-template": "6.26.0", + "babel-traverse": "6.26.0", + "babel-types": "6.26.0" + } + }, + "babel-helper-get-function-arity": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-helper-get-function-arity/-/babel-helper-get-function-arity-6.24.1.tgz", + "integrity": "sha1-j3eCqpNAfEHTqlCQj4mwMbG2hT0=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0", + "babel-types": "6.26.0" + } + }, + "babel-helper-hoist-variables": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-helper-hoist-variables/-/babel-helper-hoist-variables-6.24.1.tgz", + "integrity": "sha1-HssnaJydJVE+rbyZFKc/VAi+enY=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0", + "babel-types": "6.26.0" + } + }, + "babel-helper-optimise-call-expression": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-helper-optimise-call-expression/-/babel-helper-optimise-call-expression-6.24.1.tgz", + "integrity": "sha1-96E0J7qfc/j0+pk8VKl4gtEkQlc=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0", + "babel-types": "6.26.0" + } + }, + "babel-helper-regex": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-helper-regex/-/babel-helper-regex-6.26.0.tgz", + "integrity": "sha1-MlxZ+QL4LyS3T6zu0DY5VPZJXnI=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0", + "babel-types": "6.26.0", + "lodash": "4.17.10" + } + }, + "babel-helper-remap-async-to-generator": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-helper-remap-async-to-generator/-/babel-helper-remap-async-to-generator-6.24.1.tgz", + "integrity": "sha1-XsWBgnrXI/7N04HxySg5BnbkVRs=", + "dev": true, + "requires": { + "babel-helper-function-name": "6.24.1", + "babel-runtime": "6.26.0", + "babel-template": "6.26.0", + "babel-traverse": "6.26.0", + "babel-types": "6.26.0" + } + }, + "babel-helper-replace-supers": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-helper-replace-supers/-/babel-helper-replace-supers-6.24.1.tgz", + "integrity": "sha1-v22/5Dk40XNpohPKiov3S2qQqxo=", + "dev": true, + "requires": { + "babel-helper-optimise-call-expression": "6.24.1", + "babel-messages": "6.23.0", + "babel-runtime": "6.26.0", + "babel-template": "6.26.0", + "babel-traverse": "6.26.0", + "babel-types": "6.26.0" + } + }, + "babel-helpers": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-helpers/-/babel-helpers-6.24.1.tgz", + "integrity": "sha1-NHHenK7DiOXIUOWX5Yom3fN2ArI=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0", + "babel-template": "6.26.0" + } + }, + "babel-loader": { + "version": "6.4.1", + "resolved": "https://registry.npmjs.org/babel-loader/-/babel-loader-6.4.1.tgz", + "integrity": "sha1-CzQRLVsHSKjc2/Uaz2+b1C1QuMo=", + "dev": true, + "requires": { + "find-cache-dir": "0.1.1", + "loader-utils": "0.2.17", + "mkdirp": "0.5.1", + "object-assign": "4.1.1" + } + }, + "babel-messages": { + "version": "6.23.0", + "resolved": "https://registry.npmjs.org/babel-messages/-/babel-messages-6.23.0.tgz", + "integrity": "sha1-8830cDhYA1sqKVHG7F7fbGLyYw4=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0" + } + }, + "babel-plugin-check-es2015-constants": { + "version": "6.22.0", + "resolved": "https://registry.npmjs.org/babel-plugin-check-es2015-constants/-/babel-plugin-check-es2015-constants-6.22.0.tgz", + "integrity": "sha1-NRV7EBQm/S/9PaP3XH0ekYNbv4o=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0" + } + }, + "babel-plugin-dev-expression": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/babel-plugin-dev-expression/-/babel-plugin-dev-expression-0.2.1.tgz", + "integrity": "sha1-1Ke+7++7UOPyc0mQqCokhs+eue4=", + "dev": true + }, + "babel-plugin-syntax-async-functions": { + "version": "6.13.0", + "resolved": "https://registry.npmjs.org/babel-plugin-syntax-async-functions/-/babel-plugin-syntax-async-functions-6.13.0.tgz", + "integrity": "sha1-ytnK0RkbWtY0vzCuCHI5HgZHvpU=", + "dev": true + }, + "babel-plugin-syntax-async-generators": { + "version": "6.13.0", + "resolved": "https://registry.npmjs.org/babel-plugin-syntax-async-generators/-/babel-plugin-syntax-async-generators-6.13.0.tgz", + "integrity": "sha1-a8lj67FuzLrmuStZbrfzXDQqi5o=", + "dev": true + }, + "babel-plugin-syntax-class-constructor-call": { + "version": "6.18.0", + "resolved": "https://registry.npmjs.org/babel-plugin-syntax-class-constructor-call/-/babel-plugin-syntax-class-constructor-call-6.18.0.tgz", + "integrity": "sha1-nLnTn+Q8hgC+yBRkVt3L1OGnZBY=", + "dev": true + }, + "babel-plugin-syntax-class-properties": { + "version": "6.13.0", + "resolved": "https://registry.npmjs.org/babel-plugin-syntax-class-properties/-/babel-plugin-syntax-class-properties-6.13.0.tgz", + "integrity": "sha1-1+sjt5oxf4VDlixQW4J8fWysJ94=", + "dev": true + }, + "babel-plugin-syntax-decorators": { + "version": "6.13.0", + "resolved": "https://registry.npmjs.org/babel-plugin-syntax-decorators/-/babel-plugin-syntax-decorators-6.13.0.tgz", + "integrity": "sha1-MSVjtNvePMgGzuPkFszurd0RrAs=", + "dev": true + }, + "babel-plugin-syntax-do-expressions": { + "version": "6.13.0", + "resolved": "https://registry.npmjs.org/babel-plugin-syntax-do-expressions/-/babel-plugin-syntax-do-expressions-6.13.0.tgz", + "integrity": "sha1-V0d1YTmqJtOQ0JQQsDdEugfkeW0=", + "dev": true + }, + "babel-plugin-syntax-dynamic-import": { + "version": "6.18.0", + "resolved": "https://registry.npmjs.org/babel-plugin-syntax-dynamic-import/-/babel-plugin-syntax-dynamic-import-6.18.0.tgz", + "integrity": "sha1-jWomIpyDdFqZgqRBBRVyyqF5sdo=", + "dev": true + }, + "babel-plugin-syntax-exponentiation-operator": { + "version": "6.13.0", + "resolved": "https://registry.npmjs.org/babel-plugin-syntax-exponentiation-operator/-/babel-plugin-syntax-exponentiation-operator-6.13.0.tgz", + "integrity": "sha1-nufoM3KQ2pUoggGmpX9BcDF4MN4=", + "dev": true + }, + "babel-plugin-syntax-export-extensions": { + "version": "6.13.0", + "resolved": "https://registry.npmjs.org/babel-plugin-syntax-export-extensions/-/babel-plugin-syntax-export-extensions-6.13.0.tgz", + "integrity": "sha1-cKFITw+QiaToStRLrDU8lbmxJyE=", + "dev": true + }, + "babel-plugin-syntax-flow": { + "version": "6.18.0", + "resolved": "https://registry.npmjs.org/babel-plugin-syntax-flow/-/babel-plugin-syntax-flow-6.18.0.tgz", + "integrity": "sha1-TDqyCiryaqIM0lmVw5jE63AxDI0=", + "dev": true + }, + "babel-plugin-syntax-function-bind": { + "version": "6.13.0", + "resolved": "https://registry.npmjs.org/babel-plugin-syntax-function-bind/-/babel-plugin-syntax-function-bind-6.13.0.tgz", + "integrity": "sha1-SMSV8Xe98xqYHnMvVa3AvdJgH0Y=", + "dev": true + }, + "babel-plugin-syntax-jsx": { + "version": "6.18.0", + "resolved": "https://registry.npmjs.org/babel-plugin-syntax-jsx/-/babel-plugin-syntax-jsx-6.18.0.tgz", + "integrity": "sha1-CvMqmm4Tyno/1QaeYtew9Y0NiUY=", + "dev": true + }, + "babel-plugin-syntax-object-rest-spread": { + "version": "6.13.0", + "resolved": "https://registry.npmjs.org/babel-plugin-syntax-object-rest-spread/-/babel-plugin-syntax-object-rest-spread-6.13.0.tgz", + "integrity": "sha1-/WU28rzhODb/o6VFjEkDpZe7O/U=", + "dev": true + }, + "babel-plugin-syntax-trailing-function-commas": { + "version": "6.22.0", + "resolved": "https://registry.npmjs.org/babel-plugin-syntax-trailing-function-commas/-/babel-plugin-syntax-trailing-function-commas-6.22.0.tgz", + "integrity": "sha1-ugNgk3+NBuQBgKQ/4NVhb/9TLPM=", + "dev": true + }, + "babel-plugin-transform-async-generator-functions": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-async-generator-functions/-/babel-plugin-transform-async-generator-functions-6.24.1.tgz", + "integrity": "sha1-8FiQAUX9PpkHpt3yjaWfIVJYpds=", + "dev": true, + "requires": { + "babel-helper-remap-async-to-generator": "6.24.1", + "babel-plugin-syntax-async-generators": "6.13.0", + "babel-runtime": "6.26.0" + } + }, + "babel-plugin-transform-async-to-generator": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-async-to-generator/-/babel-plugin-transform-async-to-generator-6.24.1.tgz", + "integrity": "sha1-ZTbjeK/2yx1VF6wOQOs+n8jQh2E=", + "dev": true, + "requires": { + "babel-helper-remap-async-to-generator": "6.24.1", + "babel-plugin-syntax-async-functions": "6.13.0", + "babel-runtime": "6.26.0" + } + }, + "babel-plugin-transform-class-constructor-call": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-class-constructor-call/-/babel-plugin-transform-class-constructor-call-6.24.1.tgz", + "integrity": "sha1-gNwoVQWsBn3LjWxl4vbxGrd2Xvk=", + "dev": true, + "requires": { + "babel-plugin-syntax-class-constructor-call": "6.18.0", + "babel-runtime": "6.26.0", + "babel-template": "6.26.0" + } + }, + "babel-plugin-transform-class-properties": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-class-properties/-/babel-plugin-transform-class-properties-6.24.1.tgz", + "integrity": "sha1-anl2PqYdM9NvN7YRqp3vgagbRqw=", + "dev": true, + "requires": { + "babel-helper-function-name": "6.24.1", + "babel-plugin-syntax-class-properties": "6.13.0", + "babel-runtime": "6.26.0", + "babel-template": "6.26.0" + } + }, + "babel-plugin-transform-decorators": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-decorators/-/babel-plugin-transform-decorators-6.24.1.tgz", + "integrity": "sha1-eIAT2PjGtSIr33s0Q5Df13Vp4k0=", + "dev": true, + "requires": { + "babel-helper-explode-class": "6.24.1", + "babel-plugin-syntax-decorators": "6.13.0", + "babel-runtime": "6.26.0", + "babel-template": "6.26.0", + "babel-types": "6.26.0" + } + }, + "babel-plugin-transform-decorators-legacy": { + "version": "1.3.5", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-decorators-legacy/-/babel-plugin-transform-decorators-legacy-1.3.5.tgz", + "integrity": "sha512-jYHwjzRXRelYQ1uGm353zNzf3QmtdCfvJbuYTZ4gKveK7M9H1fs3a5AKdY1JUDl0z97E30ukORW1dzhWvsabtA==", + "dev": true, + "requires": { + "babel-plugin-syntax-decorators": "6.13.0", + "babel-runtime": "6.26.0", + "babel-template": "6.26.0" + } + }, + "babel-plugin-transform-do-expressions": { + "version": "6.22.0", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-do-expressions/-/babel-plugin-transform-do-expressions-6.22.0.tgz", + "integrity": "sha1-KMyvkoEtlJws0SgfaQyP3EaK6bs=", + "dev": true, + "requires": { + "babel-plugin-syntax-do-expressions": "6.13.0", + "babel-runtime": "6.26.0" + } + }, + "babel-plugin-transform-es2015-arrow-functions": { + "version": "6.22.0", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-arrow-functions/-/babel-plugin-transform-es2015-arrow-functions-6.22.0.tgz", + "integrity": "sha1-RSaSy3EdX3ncf4XkQM5BufJE0iE=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0" + } + }, + "babel-plugin-transform-es2015-block-scoped-functions": { + "version": "6.22.0", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-block-scoped-functions/-/babel-plugin-transform-es2015-block-scoped-functions-6.22.0.tgz", + "integrity": "sha1-u8UbSflk1wy42OC5ToICRs46YUE=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0" + } + }, + "babel-plugin-transform-es2015-block-scoping": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-block-scoping/-/babel-plugin-transform-es2015-block-scoping-6.26.0.tgz", + "integrity": "sha1-1w9SmcEwjQXBL0Y4E7CgnnOxiV8=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0", + "babel-template": "6.26.0", + "babel-traverse": "6.26.0", + "babel-types": "6.26.0", + "lodash": "4.17.10" + } + }, + "babel-plugin-transform-es2015-classes": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-classes/-/babel-plugin-transform-es2015-classes-6.24.1.tgz", + "integrity": "sha1-WkxYpQyclGHlZLSyo7+ryXolhNs=", + "dev": true, + "requires": { + "babel-helper-define-map": "6.26.0", + "babel-helper-function-name": "6.24.1", + "babel-helper-optimise-call-expression": "6.24.1", + "babel-helper-replace-supers": "6.24.1", + "babel-messages": "6.23.0", + "babel-runtime": "6.26.0", + "babel-template": "6.26.0", + "babel-traverse": "6.26.0", + "babel-types": "6.26.0" + } + }, + "babel-plugin-transform-es2015-computed-properties": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-computed-properties/-/babel-plugin-transform-es2015-computed-properties-6.24.1.tgz", + "integrity": "sha1-b+Ko0WiV1WNPTNmZttNICjCBWbM=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0", + "babel-template": "6.26.0" + } + }, + "babel-plugin-transform-es2015-destructuring": { + "version": "6.23.0", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-destructuring/-/babel-plugin-transform-es2015-destructuring-6.23.0.tgz", + "integrity": "sha1-mXux8auWf2gtKwh2/jWNYOdlxW0=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0" + } + }, + "babel-plugin-transform-es2015-duplicate-keys": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-duplicate-keys/-/babel-plugin-transform-es2015-duplicate-keys-6.24.1.tgz", + "integrity": "sha1-c+s9MQypaePvnskcU3QabxV2Qj4=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0", + "babel-types": "6.26.0" + } + }, + "babel-plugin-transform-es2015-for-of": { + "version": "6.23.0", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-for-of/-/babel-plugin-transform-es2015-for-of-6.23.0.tgz", + "integrity": "sha1-9HyVsrYT3x0+zC/bdXNiPHUkhpE=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0" + } + }, + "babel-plugin-transform-es2015-function-name": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-function-name/-/babel-plugin-transform-es2015-function-name-6.24.1.tgz", + "integrity": "sha1-g0yJhTvDaxrw86TF26qU/Y6sqos=", + "dev": true, + "requires": { + "babel-helper-function-name": "6.24.1", + "babel-runtime": "6.26.0", + "babel-types": "6.26.0" + } + }, + "babel-plugin-transform-es2015-literals": { + "version": "6.22.0", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-literals/-/babel-plugin-transform-es2015-literals-6.22.0.tgz", + "integrity": "sha1-T1SgLWzWbPkVKAAZox0xklN3yi4=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0" + } + }, + "babel-plugin-transform-es2015-modules-amd": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-modules-amd/-/babel-plugin-transform-es2015-modules-amd-6.24.1.tgz", + "integrity": "sha1-Oz5UAXI5hC1tGcMBHEvS8AoA0VQ=", + "dev": true, + "requires": { + "babel-plugin-transform-es2015-modules-commonjs": "6.26.2", + "babel-runtime": "6.26.0", + "babel-template": "6.26.0" + } + }, + "babel-plugin-transform-es2015-modules-commonjs": { + "version": "6.26.2", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-modules-commonjs/-/babel-plugin-transform-es2015-modules-commonjs-6.26.2.tgz", + "integrity": "sha512-CV9ROOHEdrjcwhIaJNBGMBCodN+1cfkwtM1SbUHmvyy35KGT7fohbpOxkE2uLz1o6odKK2Ck/tz47z+VqQfi9Q==", + "dev": true, + "requires": { + "babel-plugin-transform-strict-mode": "6.24.1", + "babel-runtime": "6.26.0", + "babel-template": "6.26.0", + "babel-types": "6.26.0" + } + }, + "babel-plugin-transform-es2015-modules-systemjs": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-modules-systemjs/-/babel-plugin-transform-es2015-modules-systemjs-6.24.1.tgz", + "integrity": "sha1-/4mhQrkRmpBhlfXxBuzzBdlAfSM=", + "dev": true, + "requires": { + "babel-helper-hoist-variables": "6.24.1", + "babel-runtime": "6.26.0", + "babel-template": "6.26.0" + } + }, + "babel-plugin-transform-es2015-modules-umd": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-modules-umd/-/babel-plugin-transform-es2015-modules-umd-6.24.1.tgz", + "integrity": "sha1-rJl+YoXNGO1hdq22B9YCNErThGg=", + "dev": true, + "requires": { + "babel-plugin-transform-es2015-modules-amd": "6.24.1", + "babel-runtime": "6.26.0", + "babel-template": "6.26.0" + } + }, + "babel-plugin-transform-es2015-object-super": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-object-super/-/babel-plugin-transform-es2015-object-super-6.24.1.tgz", + "integrity": "sha1-JM72muIcuDp/hgPa0CH1cusnj40=", + "dev": true, + "requires": { + "babel-helper-replace-supers": "6.24.1", + "babel-runtime": "6.26.0" + } + }, + "babel-plugin-transform-es2015-parameters": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-parameters/-/babel-plugin-transform-es2015-parameters-6.24.1.tgz", + "integrity": "sha1-V6w1GrScrxSpfNE7CfZv3wpiXys=", + "dev": true, + "requires": { + "babel-helper-call-delegate": "6.24.1", + "babel-helper-get-function-arity": "6.24.1", + "babel-runtime": "6.26.0", + "babel-template": "6.26.0", + "babel-traverse": "6.26.0", + "babel-types": "6.26.0" + } + }, + "babel-plugin-transform-es2015-shorthand-properties": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-shorthand-properties/-/babel-plugin-transform-es2015-shorthand-properties-6.24.1.tgz", + "integrity": "sha1-JPh11nIch2YbvZmkYi5R8U3jiqA=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0", + "babel-types": "6.26.0" + } + }, + "babel-plugin-transform-es2015-spread": { + "version": "6.22.0", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-spread/-/babel-plugin-transform-es2015-spread-6.22.0.tgz", + "integrity": "sha1-1taKmfia7cRTbIGlQujdnxdG+NE=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0" + } + }, + "babel-plugin-transform-es2015-sticky-regex": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-sticky-regex/-/babel-plugin-transform-es2015-sticky-regex-6.24.1.tgz", + "integrity": "sha1-AMHNsaynERLN8M9hJsLta0V8zbw=", + "dev": true, + "requires": { + "babel-helper-regex": "6.26.0", + "babel-runtime": "6.26.0", + "babel-types": "6.26.0" + } + }, + "babel-plugin-transform-es2015-template-literals": { + "version": "6.22.0", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-template-literals/-/babel-plugin-transform-es2015-template-literals-6.22.0.tgz", + "integrity": "sha1-qEs0UPfp+PH2g51taH2oS7EjbY0=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0" + } + }, + "babel-plugin-transform-es2015-typeof-symbol": { + "version": "6.23.0", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-typeof-symbol/-/babel-plugin-transform-es2015-typeof-symbol-6.23.0.tgz", + "integrity": "sha1-3sCfHN3/lLUqxz1QXITfWdzOs3I=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0" + } + }, + "babel-plugin-transform-es2015-unicode-regex": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-unicode-regex/-/babel-plugin-transform-es2015-unicode-regex-6.24.1.tgz", + "integrity": "sha1-04sS9C6nMj9yk4fxinxa4frrNek=", + "dev": true, + "requires": { + "babel-helper-regex": "6.26.0", + "babel-runtime": "6.26.0", + "regexpu-core": "2.0.0" + } + }, + "babel-plugin-transform-exponentiation-operator": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-exponentiation-operator/-/babel-plugin-transform-exponentiation-operator-6.24.1.tgz", + "integrity": "sha1-KrDJx/MJj6SJB3cruBP+QejeOg4=", + "dev": true, + "requires": { + "babel-helper-builder-binary-assignment-operator-visitor": "6.24.1", + "babel-plugin-syntax-exponentiation-operator": "6.13.0", + "babel-runtime": "6.26.0" + } + }, + "babel-plugin-transform-export-extensions": { + "version": "6.22.0", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-export-extensions/-/babel-plugin-transform-export-extensions-6.22.0.tgz", + "integrity": "sha1-U3OLR+deghhYnuqUbLvTkQm75lM=", + "dev": true, + "requires": { + "babel-plugin-syntax-export-extensions": "6.13.0", + "babel-runtime": "6.26.0" + } + }, + "babel-plugin-transform-flow-strip-types": { + "version": "6.22.0", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-flow-strip-types/-/babel-plugin-transform-flow-strip-types-6.22.0.tgz", + "integrity": "sha1-hMtnKTXUNxT9wyvOhFaNh0Qc988=", + "dev": true, + "requires": { + "babel-plugin-syntax-flow": "6.18.0", + "babel-runtime": "6.26.0" + } + }, + "babel-plugin-transform-function-bind": { + "version": "6.22.0", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-function-bind/-/babel-plugin-transform-function-bind-6.22.0.tgz", + "integrity": "sha1-xvuOlqwpajELjPjqQBRiQH3fapc=", + "dev": true, + "requires": { + "babel-plugin-syntax-function-bind": "6.13.0", + "babel-runtime": "6.26.0" + } + }, + "babel-plugin-transform-object-rest-spread": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-object-rest-spread/-/babel-plugin-transform-object-rest-spread-6.26.0.tgz", + "integrity": "sha1-DzZpLVD+9rfi1LOsFHgTepY7ewY=", + "dev": true, + "requires": { + "babel-plugin-syntax-object-rest-spread": "6.13.0", + "babel-runtime": "6.26.0" + } + }, + "babel-plugin-transform-proto-to-assign": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-proto-to-assign/-/babel-plugin-transform-proto-to-assign-6.26.0.tgz", + "integrity": "sha1-xJPiSmJ0mkT37ellBsDLOhiR9ns=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0", + "lodash": "4.17.10" + } + }, + "babel-plugin-transform-react-display-name": { + "version": "6.25.0", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-react-display-name/-/babel-plugin-transform-react-display-name-6.25.0.tgz", + "integrity": "sha1-Z+K/Hx6ck6sI25Z5LgU5K/LMKNE=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0" + } + }, + "babel-plugin-transform-react-jsx": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-react-jsx/-/babel-plugin-transform-react-jsx-6.24.1.tgz", + "integrity": "sha1-hAoCjn30YN/DotKfDA2R9jduZqM=", + "dev": true, + "requires": { + "babel-helper-builder-react-jsx": "6.26.0", + "babel-plugin-syntax-jsx": "6.18.0", + "babel-runtime": "6.26.0" + } + }, + "babel-plugin-transform-react-jsx-self": { + "version": "6.22.0", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-react-jsx-self/-/babel-plugin-transform-react-jsx-self-6.22.0.tgz", + "integrity": "sha1-322AqdomEqEh5t3XVYvL7PBuY24=", + "dev": true, + "requires": { + "babel-plugin-syntax-jsx": "6.18.0", + "babel-runtime": "6.26.0" + } + }, + "babel-plugin-transform-react-jsx-source": { + "version": "6.22.0", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-react-jsx-source/-/babel-plugin-transform-react-jsx-source-6.22.0.tgz", + "integrity": "sha1-ZqwSFT9c0tF7PBkmj0vwGX9E7NY=", + "dev": true, + "requires": { + "babel-plugin-syntax-jsx": "6.18.0", + "babel-runtime": "6.26.0" + } + }, + "babel-plugin-transform-regenerator": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-regenerator/-/babel-plugin-transform-regenerator-6.26.0.tgz", + "integrity": "sha1-4HA2lvveJ/Cj78rPi03KL3s6jy8=", + "dev": true, + "requires": { + "regenerator-transform": "0.10.1" + } + }, + "babel-plugin-transform-strict-mode": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-strict-mode/-/babel-plugin-transform-strict-mode-6.24.1.tgz", + "integrity": "sha1-1fr3qleKZbvlkc9e2uBKDGcCB1g=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0", + "babel-types": "6.26.0" + } + }, + "babel-polyfill": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-polyfill/-/babel-polyfill-6.26.0.tgz", + "integrity": "sha1-N5k3q8Z9eJWXCtxiHyhM2WbPIVM=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0", + "core-js": "2.5.7", + "regenerator-runtime": "0.10.5" + }, + "dependencies": { + "regenerator-runtime": { + "version": "0.10.5", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz", + "integrity": "sha1-M2w+/BIgrc7dosn6tntaeVWjNlg=", + "dev": true + } + } + }, + "babel-preset-es2015": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-preset-es2015/-/babel-preset-es2015-6.24.1.tgz", + "integrity": "sha1-1EBQ1rwsn+6nAqrzjXJ6AhBTiTk=", + "dev": true, + "requires": { + "babel-plugin-check-es2015-constants": "6.22.0", + "babel-plugin-transform-es2015-arrow-functions": "6.22.0", + "babel-plugin-transform-es2015-block-scoped-functions": "6.22.0", + "babel-plugin-transform-es2015-block-scoping": "6.26.0", + "babel-plugin-transform-es2015-classes": "6.24.1", + "babel-plugin-transform-es2015-computed-properties": "6.24.1", + "babel-plugin-transform-es2015-destructuring": "6.23.0", + "babel-plugin-transform-es2015-duplicate-keys": "6.24.1", + "babel-plugin-transform-es2015-for-of": "6.23.0", + "babel-plugin-transform-es2015-function-name": "6.24.1", + "babel-plugin-transform-es2015-literals": "6.22.0", + "babel-plugin-transform-es2015-modules-amd": "6.24.1", + "babel-plugin-transform-es2015-modules-commonjs": "6.26.2", + "babel-plugin-transform-es2015-modules-systemjs": "6.24.1", + "babel-plugin-transform-es2015-modules-umd": "6.24.1", + "babel-plugin-transform-es2015-object-super": "6.24.1", + "babel-plugin-transform-es2015-parameters": "6.24.1", + "babel-plugin-transform-es2015-shorthand-properties": "6.24.1", + "babel-plugin-transform-es2015-spread": "6.22.0", + "babel-plugin-transform-es2015-sticky-regex": "6.24.1", + "babel-plugin-transform-es2015-template-literals": "6.22.0", + "babel-plugin-transform-es2015-typeof-symbol": "6.23.0", + "babel-plugin-transform-es2015-unicode-regex": "6.24.1", + "babel-plugin-transform-regenerator": "6.26.0" + } + }, + "babel-preset-flow": { + "version": "6.23.0", + "resolved": "https://registry.npmjs.org/babel-preset-flow/-/babel-preset-flow-6.23.0.tgz", + "integrity": "sha1-5xIYiHCFrpoktb5Baa/7WZgWxJ0=", + "dev": true, + "requires": { + "babel-plugin-transform-flow-strip-types": "6.22.0" + } + }, + "babel-preset-react": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-preset-react/-/babel-preset-react-6.24.1.tgz", + "integrity": "sha1-umnfrqRfw+xjm2pOzqbhdwLJE4A=", + "dev": true, + "requires": { + "babel-plugin-syntax-jsx": "6.18.0", + "babel-plugin-transform-react-display-name": "6.25.0", + "babel-plugin-transform-react-jsx": "6.24.1", + "babel-plugin-transform-react-jsx-self": "6.22.0", + "babel-plugin-transform-react-jsx-source": "6.22.0", + "babel-preset-flow": "6.23.0" + } + }, + "babel-preset-stage-0": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-preset-stage-0/-/babel-preset-stage-0-6.24.1.tgz", + "integrity": "sha1-VkLRUEL5E4TX5a+LyIsduVsDnmo=", + "dev": true, + "requires": { + "babel-plugin-transform-do-expressions": "6.22.0", + "babel-plugin-transform-function-bind": "6.22.0", + "babel-preset-stage-1": "6.24.1" + } + }, + "babel-preset-stage-1": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-preset-stage-1/-/babel-preset-stage-1-6.24.1.tgz", + "integrity": "sha1-dpLNfc1oSZB+auSgqFWJz7niv7A=", + "dev": true, + "requires": { + "babel-plugin-transform-class-constructor-call": "6.24.1", + "babel-plugin-transform-export-extensions": "6.22.0", + "babel-preset-stage-2": "6.24.1" + } + }, + "babel-preset-stage-2": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-preset-stage-2/-/babel-preset-stage-2-6.24.1.tgz", + "integrity": "sha1-2eKWD7PXEYfw5k7sYrwHdnIZvcE=", + "dev": true, + "requires": { + "babel-plugin-syntax-dynamic-import": "6.18.0", + "babel-plugin-transform-class-properties": "6.24.1", + "babel-plugin-transform-decorators": "6.24.1", + "babel-preset-stage-3": "6.24.1" + } + }, + "babel-preset-stage-3": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-preset-stage-3/-/babel-preset-stage-3-6.24.1.tgz", + "integrity": "sha1-g2raCp56f6N8sTj7kyb4eTSkg5U=", + "dev": true, + "requires": { + "babel-plugin-syntax-trailing-function-commas": "6.22.0", + "babel-plugin-transform-async-generator-functions": "6.24.1", + "babel-plugin-transform-async-to-generator": "6.24.1", + "babel-plugin-transform-exponentiation-operator": "6.24.1", + "babel-plugin-transform-object-rest-spread": "6.26.0" + } + }, + "babel-register": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-register/-/babel-register-6.26.0.tgz", + "integrity": "sha1-btAhFz4vy0htestFxgCahW9kcHE=", + "dev": true, + "requires": { + "babel-core": "6.26.3", + "babel-runtime": "6.26.0", + "core-js": "2.5.7", + "home-or-tmp": "2.0.0", + "lodash": "4.17.10", + "mkdirp": "0.5.1", + "source-map-support": "0.4.18" + } + }, + "babel-runtime": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", + "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", + "dev": true, + "requires": { + "core-js": "2.5.7", + "regenerator-runtime": "0.11.1" + } + }, + "babel-template": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-template/-/babel-template-6.26.0.tgz", + "integrity": "sha1-3gPi0WOWsGn0bdn/+FIfsaDjXgI=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0", + "babel-traverse": "6.26.0", + "babel-types": "6.26.0", + "babylon": "6.18.0", + "lodash": "4.17.10" + } + }, + "babel-traverse": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-traverse/-/babel-traverse-6.26.0.tgz", + "integrity": "sha1-RqnL1+3MYsjlwGTi0tjQ9ANXZu4=", + "dev": true, + "requires": { + "babel-code-frame": "6.26.0", + "babel-messages": "6.23.0", + "babel-runtime": "6.26.0", + "babel-types": "6.26.0", + "babylon": "6.18.0", + "debug": "2.6.9", + "globals": "9.18.0", + "invariant": "2.2.4", + "lodash": "4.17.10" + } + }, + "babel-types": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-types/-/babel-types-6.26.0.tgz", + "integrity": "sha1-o7Bz+Uq0nrb6Vc1lInozQ4BjJJc=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0", + "esutils": "2.0.2", + "lodash": "4.17.10", + "to-fast-properties": "1.0.3" + } + }, + "babylon": { + "version": "6.18.0", + "resolved": "https://registry.npmjs.org/babylon/-/babylon-6.18.0.tgz", + "integrity": "sha512-q/UEjfGJ2Cm3oKV71DJz9d25TPnq5rhBVL2Q4fA5wcC3jcrdn7+SssEybFIxwAvvP+YCsCYNKughoF33GxgycQ==", + "dev": true + }, + "balanced-match": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", + "dev": true + }, + "base64-js": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.3.0.tgz", + "integrity": "sha512-ccav/yGvoa80BQDljCxsmmQ3Xvx60/UpBIij5QN21W3wBi/hhIC9OoO+KLpu9IJTS9j4DRVJ3aDDF9cMSoa2lw==", + "dev": true + }, + "big.js": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/big.js/-/big.js-3.2.0.tgz", + "integrity": "sha512-+hN/Zh2D08Mx65pZ/4g5bsmNiZUuChDiQfTUQ7qJr4/kuopCr88xZsAXv6mBoZEsUI4OuGHlX59qE94K2mMW8Q==", + "dev": true + }, + "binary-extensions": { + "version": "1.11.0", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-1.11.0.tgz", + "integrity": "sha1-RqoXUftqL5PuXmibsQh9SxTGwgU=", + "dev": true + }, + "brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "requires": { + "balanced-match": "1.0.0", + "concat-map": "0.0.1" + } + }, + "braces": { + "version": "1.8.5", + "resolved": "https://registry.npmjs.org/braces/-/braces-1.8.5.tgz", + "integrity": "sha1-uneWLhLf+WnWt2cR6RS3N4V79qc=", + "dev": true, + "requires": { + "expand-range": "1.8.2", + "preserve": "0.2.0", + "repeat-element": "1.1.2" + } + }, + "browserify-aes": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/browserify-aes/-/browserify-aes-0.4.0.tgz", + "integrity": "sha1-BnFJtmjfMcS1hTPgLQHoBthgjiw=", + "dev": true, + "requires": { + "inherits": "2.0.3" + } + }, + "browserify-zlib": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/browserify-zlib/-/browserify-zlib-0.1.4.tgz", + "integrity": "sha1-uzX4pRn2AOD6a4SFJByXnQFB+y0=", + "dev": true, + "requires": { + "pako": "0.2.9" + } + }, + "browserslist": { + "version": "1.7.7", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-1.7.7.tgz", + "integrity": "sha1-C9dnBCWL6CmyOYu1Dkti0aFmsLk=", + "dev": true, + "requires": { + "caniuse-db": "1.0.30000856", + "electron-to-chromium": "1.3.48" + } + }, + "buffer": { + "version": "4.9.1", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-4.9.1.tgz", + "integrity": "sha1-bRu2AbB6TvztlwlBMgkwJ8lbwpg=", + "dev": true, + "requires": { + "base64-js": "1.3.0", + "ieee754": "1.1.12", + "isarray": "1.0.0" + } + }, + "buffer-from": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.0.tgz", + "integrity": "sha512-c5mRlguI/Pe2dSZmpER62rSCu0ryKmWddzRYsuXc50U2/g8jMOulc31VZMa4mYx31U5xsmSOpDCgH88Vl9cDGQ==", + "dev": true + }, + "builtin-status-codes": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/builtin-status-codes/-/builtin-status-codes-3.0.0.tgz", + "integrity": "sha1-hZgoeOIbmOHGZCXgPQF0eI9Wnug=", + "dev": true + }, + "bundle-loader": { + "version": "0.5.6", + "resolved": "https://registry.npmjs.org/bundle-loader/-/bundle-loader-0.5.6.tgz", + "integrity": "sha512-SUgX+u/LJzlJiuoIghuubZ66eflehnjmqSfh/ib9DTe08sxRJ5F/MhHSjp7GfSJivSp8NWgez4PVNAUuMg7vSg==", + "dev": true, + "requires": { + "loader-utils": "1.1.0" + }, + "dependencies": { + "loader-utils": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-1.1.0.tgz", + "integrity": "sha1-yYrvSIvM7aL/teLeZG1qdUQp9c0=", + "dev": true, + "requires": { + "big.js": "3.2.0", + "emojis-list": "2.1.0", + "json5": "0.5.1" + } + } + } + }, + "caller-path": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/caller-path/-/caller-path-0.1.0.tgz", + "integrity": "sha1-lAhe9jWB7NPaqSREqP6U6CV3dR8=", + "dev": true, + "requires": { + "callsites": "0.2.0" + } + }, + "callsites": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-0.2.0.tgz", + "integrity": "sha1-r6uWJikQp/M8GaV3WCXGnzTjUMo=", + "dev": true + }, + "camelcase": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-1.2.1.tgz", + "integrity": "sha1-m7UwTS4LVmmLLHWLCKPqqdqlijk=", + "dev": true + }, + "caniuse-api": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/caniuse-api/-/caniuse-api-1.6.1.tgz", + "integrity": "sha1-tTTnxzTE+B7F++isoq0kNUuWLGw=", + "dev": true, + "requires": { + "browserslist": "1.7.7", + "caniuse-db": "1.0.30000856", + "lodash.memoize": "4.1.2", + "lodash.uniq": "4.5.0" + } + }, + "caniuse-db": { + "version": "1.0.30000856", + "resolved": "https://registry.npmjs.org/caniuse-db/-/caniuse-db-1.0.30000856.tgz", + "integrity": "sha1-++u5mr4VpWVPx3R+u1MVvf3jNY8=", + "dev": true + }, + "center-align": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/center-align/-/center-align-0.1.3.tgz", + "integrity": "sha1-qg0yYptu6XIgBBHL1EYckHvCt60=", + "dev": true, + "requires": { + "align-text": "0.1.4", + "lazy-cache": "1.0.4" + } + }, + "chain-function": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/chain-function/-/chain-function-1.0.0.tgz", + "integrity": "sha1-DUqzfn4Y6tC9xHuSB2QRjOWHM9w=", + "dev": true + }, + "chalk": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", + "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", + "dev": true, + "requires": { + "ansi-styles": "2.2.1", + "escape-string-regexp": "1.0.5", + "has-ansi": "2.0.0", + "strip-ansi": "3.0.1", + "supports-color": "2.0.0" + } + }, + "chokidar": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-1.7.0.tgz", + "integrity": "sha1-eY5ol3gVHIB2tLNg5e3SjNortGg=", + "dev": true, + "requires": { + "anymatch": "1.3.2", + "async-each": "1.0.1", + "glob-parent": "2.0.0", + "inherits": "2.0.3", + "is-binary-path": "1.0.1", + "is-glob": "2.0.1", + "path-is-absolute": "1.0.1", + "readdirp": "2.1.0" + } + }, + "circular-json": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/circular-json/-/circular-json-0.3.3.tgz", + "integrity": "sha512-UZK3NBx2Mca+b5LsG7bY183pHWt5Y1xts4P3Pz7ENTwGVnJOUWbRb3ocjvX7hx9tq/yTAdclXm9sZ38gNuem4A==", + "dev": true + }, + "clap": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/clap/-/clap-1.2.3.tgz", + "integrity": "sha512-4CoL/A3hf90V3VIEjeuhSvlGFEHKzOz+Wfc2IVZc+FaUgU0ZQafJTP49fvnULipOPcAfqhyI2duwQyns6xqjYA==", + "dev": true, + "requires": { + "chalk": "1.1.3" + } + }, + "cli-cursor": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-1.0.2.tgz", + "integrity": "sha1-ZNo/fValRBLll5S9Ytw1KV6PKYc=", + "dev": true, + "requires": { + "restore-cursor": "1.0.1" + } + }, + "cli-width": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/cli-width/-/cli-width-2.2.0.tgz", + "integrity": "sha1-/xnt6Kml5XkyQUewwR8PvLq+1jk=", + "dev": true + }, + "cliui": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-2.1.0.tgz", + "integrity": "sha1-S0dXYP+AJkx2LDoXGQMukcf+oNE=", + "dev": true, + "requires": { + "center-align": "0.1.3", + "right-align": "0.1.3", + "wordwrap": "0.0.2" + }, + "dependencies": { + "wordwrap": { + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.2.tgz", + "integrity": "sha1-t5Zpu0LstAn4PVg8rVLKF+qhZD8=", + "dev": true + } + } + }, + "clone": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz", + "integrity": "sha1-2jCcwmPfFZlMaIypAheco8fNfH4=", + "dev": true + }, + "co": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", + "integrity": "sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ=", + "dev": true + }, + "coa": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/coa/-/coa-1.0.4.tgz", + "integrity": "sha1-qe8VNmDWqGqL3sAomlxoTSF0Mv0=", + "dev": true, + "requires": { + "q": "1.5.1" + } + }, + "code-point-at": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", + "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=", + "dev": true + }, + "color": { + "version": "0.11.4", + "resolved": "https://registry.npmjs.org/color/-/color-0.11.4.tgz", + "integrity": "sha1-bXtcdPtl6EHNSHkq0e1eB7kE12Q=", + "dev": true, + "requires": { + "clone": "1.0.4", + "color-convert": "1.9.2", + "color-string": "0.3.0" + } + }, + "color-convert": { + "version": "1.9.2", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.2.tgz", + "integrity": "sha512-3NUJZdhMhcdPn8vJ9v2UQJoH0qqoGUkYTgFEPZaPjEtwmmKUfNV46zZmgB2M5M4DCEQHMaCfWHCxiBflLm04Tg==", + "dev": true, + "requires": { + "color-name": "1.1.1" + } + }, + "color-name": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.1.tgz", + "integrity": "sha1-SxQVMEz1ACjqgWQ2Q72C6gWANok=", + "dev": true + }, + "color-string": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/color-string/-/color-string-0.3.0.tgz", + "integrity": "sha1-J9RvtnAlxcL6JZk7+/V55HhBuZE=", + "dev": true, + "requires": { + "color-name": "1.1.1" + } + }, + "colormin": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/colormin/-/colormin-1.1.2.tgz", + "integrity": "sha1-6i90IKcrlogaOKrlnsEkpvcpgTM=", + "dev": true, + "requires": { + "color": "0.11.4", + "css-color-names": "0.0.4", + "has": "1.0.3" + } + }, + "colors": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/colors/-/colors-1.1.2.tgz", + "integrity": "sha1-FopHAXVran9RoSzgyXv6KMCE7WM=", + "dev": true + }, + "commander": { + "version": "2.15.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.15.1.tgz", + "integrity": "sha512-VlfT9F3V0v+jr4yxPc5gg9s62/fIVWsd2Bk2iD435um1NlGMYdVCq+MjcXnhYq2icNOizHr1kK+5TI6H0Hy0ag==", + "dev": true + }, + "commondir": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz", + "integrity": "sha1-3dgA2gxmEnOTzKWVDqloo6rxJTs=", + "dev": true + }, + "concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", + "dev": true + }, + "concat-stream": { + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz", + "integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==", + "dev": true, + "requires": { + "buffer-from": "1.1.0", + "inherits": "2.0.3", + "readable-stream": "2.3.6", + "typedarray": "0.0.6" + } + }, + "console-browserify": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/console-browserify/-/console-browserify-1.1.0.tgz", + "integrity": "sha1-8CQcRXMKn8YyOyBtvzjtx0HQuxA=", + "dev": true, + "requires": { + "date-now": "0.1.4" + } + }, + "constants-browserify": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/constants-browserify/-/constants-browserify-1.0.0.tgz", + "integrity": "sha1-wguW2MYXdIqvHBYCF2DNJ/y4y3U=", + "dev": true + }, + "convert-source-map": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.5.1.tgz", + "integrity": "sha1-uCeAl7m8IpNl3lxiz1/K7YtVmeU=", + "dev": true + }, + "core-js": { + "version": "2.5.7", + "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.5.7.tgz", + "integrity": "sha512-RszJCAxg/PP6uzXVXL6BsxSXx/B05oJAQ2vkJRjyjrEcNVycaqOmNb5OTxZPE3xa5gwZduqza6L9JOCenh/Ecw==", + "dev": true + }, + "core-util-is": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", + "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=", + "dev": true + }, + "create-react-class": { + "version": "15.6.3", + "resolved": "https://registry.npmjs.org/create-react-class/-/create-react-class-15.6.3.tgz", + "integrity": "sha512-M+/3Q6E6DLO6Yx3OwrWjwHBnvfXXYA7W+dFjt/ZDBemHO1DDZhsalX/NUtnTYclN6GfnBDRh4qRHjcDHmlJBJg==", + "dev": true, + "requires": { + "fbjs": "0.8.17", + "loose-envify": "1.3.1", + "object-assign": "4.1.1" + } + }, + "crypto-browserify": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/crypto-browserify/-/crypto-browserify-3.3.0.tgz", + "integrity": "sha1-ufx1u0oO1h3PHNXa6W6zDJw+UGw=", + "dev": true, + "requires": { + "browserify-aes": "0.4.0", + "pbkdf2-compat": "2.0.1", + "ripemd160": "0.2.0", + "sha.js": "2.2.6" + } + }, + "css-color-names": { + "version": "0.0.4", + "resolved": "https://registry.npmjs.org/css-color-names/-/css-color-names-0.0.4.tgz", + "integrity": "sha1-gIrcLnnPhHOAabZGyyDsJ762KeA=", + "dev": true + }, + "css-loader": { + "version": "0.25.0", + "resolved": "https://registry.npmjs.org/css-loader/-/css-loader-0.25.0.tgz", + "integrity": "sha1-w/68jOKPTINXa2sTcH9H+Qw5AiM=", + "dev": true, + "requires": { + "babel-code-frame": "6.26.0", + "css-selector-tokenizer": "0.6.0", + "cssnano": "3.10.0", + "loader-utils": "0.2.17", + "lodash.camelcase": "3.0.1", + "object-assign": "4.1.1", + "postcss": "5.2.18", + "postcss-modules-extract-imports": "1.1.0", + "postcss-modules-local-by-default": "1.2.0", + "postcss-modules-scope": "1.1.0", + "postcss-modules-values": "1.3.0", + "source-list-map": "0.1.8" + } + }, + "css-selector-tokenizer": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/css-selector-tokenizer/-/css-selector-tokenizer-0.6.0.tgz", + "integrity": "sha1-ZEX1gseTDSQdzFAHpD1vy48HMVI=", + "dev": true, + "requires": { + "cssesc": "0.1.0", + "fastparse": "1.1.1", + "regexpu-core": "1.0.0" + }, + "dependencies": { + "regexpu-core": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-1.0.0.tgz", + "integrity": "sha1-hqdj9Y7k18L2sQLkdkBQ3n7ZDGs=", + "dev": true, + "requires": { + "regenerate": "1.4.0", + "regjsgen": "0.2.0", + "regjsparser": "0.1.5" + } + } + } + }, + "cssesc": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-0.1.0.tgz", + "integrity": "sha1-yBSQPkViM3GgR3tAEJqq++6t27Q=", + "dev": true + }, + "cssnano": { + "version": "3.10.0", + "resolved": "https://registry.npmjs.org/cssnano/-/cssnano-3.10.0.tgz", + "integrity": "sha1-Tzj2zqK5sX+gFJDyPx3GjqZcHDg=", + "dev": true, + "requires": { + "autoprefixer": "6.7.7", + "decamelize": "1.2.0", + "defined": "1.0.0", + "has": "1.0.3", + "object-assign": "4.1.1", + "postcss": "5.2.18", + "postcss-calc": "5.3.1", + "postcss-colormin": "2.2.2", + "postcss-convert-values": "2.6.1", + "postcss-discard-comments": "2.0.4", + "postcss-discard-duplicates": "2.1.0", + "postcss-discard-empty": "2.1.0", + "postcss-discard-overridden": "0.1.1", + "postcss-discard-unused": "2.2.3", + "postcss-filter-plugins": "2.0.3", + "postcss-merge-idents": "2.1.7", + "postcss-merge-longhand": "2.0.2", + "postcss-merge-rules": "2.1.2", + "postcss-minify-font-values": "1.0.5", + "postcss-minify-gradients": "1.0.5", + "postcss-minify-params": "1.2.2", + "postcss-minify-selectors": "2.1.1", + "postcss-normalize-charset": "1.1.1", + "postcss-normalize-url": "3.0.8", + "postcss-ordered-values": "2.2.3", + "postcss-reduce-idents": "2.4.0", + "postcss-reduce-initial": "1.0.1", + "postcss-reduce-transforms": "1.0.4", + "postcss-svgo": "2.1.6", + "postcss-unique-selectors": "2.0.2", + "postcss-value-parser": "3.3.0", + "postcss-zindex": "2.2.0" + } + }, + "csso": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/csso/-/csso-2.3.2.tgz", + "integrity": "sha1-3dUsWHAz9J6Utx/FVWnyUuj/X4U=", + "dev": true, + "requires": { + "clap": "1.2.3", + "source-map": "0.5.7" + } + }, + "d": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/d/-/d-1.0.0.tgz", + "integrity": "sha1-dUu1v+VUUdpppYuU1F9MWwRi1Y8=", + "dev": true, + "requires": { + "es5-ext": "0.10.45" + } + }, + "date-now": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/date-now/-/date-now-0.1.4.tgz", + "integrity": "sha1-6vQ5/U1ISK105cx9vvIAZyueNFs=", + "dev": true + }, + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, + "decamelize": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", + "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=", + "dev": true + }, + "deep-equal": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/deep-equal/-/deep-equal-1.0.1.tgz", + "integrity": "sha1-9dJgKStmDghO/0zbyfCK0yR0SLU=", + "dev": true + }, + "deep-is": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.3.tgz", + "integrity": "sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ=", + "dev": true + }, + "define-properties": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.2.tgz", + "integrity": "sha1-g6c/L+pWmJj7c3GTyPhzyvbUXJQ=", + "dev": true, + "requires": { + "foreach": "2.0.5", + "object-keys": "1.0.12" + } + }, + "defined": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/defined/-/defined-1.0.0.tgz", + "integrity": "sha1-yY2bzvdWdBiOEQlpFRGZ45sfppM=", + "dev": true + }, + "del": { + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/del/-/del-2.2.2.tgz", + "integrity": "sha1-wSyYHQZ4RshLyvhiz/kw2Qf/0ag=", + "dev": true, + "requires": { + "globby": "5.0.0", + "is-path-cwd": "1.0.0", + "is-path-in-cwd": "1.0.1", + "object-assign": "4.1.1", + "pify": "2.3.0", + "pinkie-promise": "2.0.1", + "rimraf": "2.6.2" + } + }, + "detect-indent": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/detect-indent/-/detect-indent-4.0.0.tgz", + "integrity": "sha1-920GQ1LN9Docts5hnE7jqUdd4gg=", + "dev": true, + "requires": { + "repeating": "2.0.1" + } + }, + "doctrine": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", + "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", + "dev": true, + "requires": { + "esutils": "2.0.2" + } + }, + "dom-helpers": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/dom-helpers/-/dom-helpers-3.3.1.tgz", + "integrity": "sha512-2Sm+JaYn74OiTM2wHvxJOo3roiq/h25Yi69Fqk269cNUwIXsCvATB6CRSFC9Am/20G2b28hGv/+7NiWydIrPvg==", + "dev": true + }, + "domain-browser": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/domain-browser/-/domain-browser-1.2.0.tgz", + "integrity": "sha512-jnjyiM6eRyZl2H+W8Q/zLMA481hzi0eszAaBUzIVnmYVDBbnLxVNnfu1HgEBvCbL+71FrxMl3E6lpKH7Ge3OXA==", + "dev": true + }, + "duplexer": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/duplexer/-/duplexer-0.1.1.tgz", + "integrity": "sha1-rOb/gIwc5mtX0ev5eXessCM0z8E=", + "dev": true + }, + "electron-to-chromium": { + "version": "1.3.48", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.48.tgz", + "integrity": "sha1-07DYWTgUBE4JLs4hCPw6ya6kuQA=", + "dev": true + }, + "emojis-list": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/emojis-list/-/emojis-list-2.1.0.tgz", + "integrity": "sha1-TapNnbAPmBmIDHn6RXrlsJof04k=", + "dev": true + }, + "encoding": { + "version": "0.1.12", + "resolved": "https://registry.npmjs.org/encoding/-/encoding-0.1.12.tgz", + "integrity": "sha1-U4tm8+5izRq1HsMjgp0flIDHS+s=", + "dev": true, + "requires": { + "iconv-lite": "0.4.23" + } + }, + "enhanced-resolve": { + "version": "0.9.1", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-0.9.1.tgz", + "integrity": "sha1-TW5omzcl+GCQknzMhs2fFjW4ni4=", + "dev": true, + "requires": { + "graceful-fs": "4.1.11", + "memory-fs": "0.2.0", + "tapable": "0.1.10" + }, + "dependencies": { + "memory-fs": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/memory-fs/-/memory-fs-0.2.0.tgz", + "integrity": "sha1-8rslNovBIeORwlIN6Slpyu4KApA=", + "dev": true + } + } + }, + "errno": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/errno/-/errno-0.1.7.tgz", + "integrity": "sha512-MfrRBDWzIWifgq6tJj60gkAwtLNb6sQPlcFrSOflcP1aFmmruKQ2wRnze/8V6kgyz7H3FF8Npzv78mZ7XLLflg==", + "dev": true, + "requires": { + "prr": "1.0.1" + } + }, + "es-abstract": { + "version": "1.12.0", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.12.0.tgz", + "integrity": "sha512-C8Fx/0jFmV5IPoMOFPA9P9G5NtqW+4cOPit3MIuvR2t7Ag2K15EJTpxnHAYTzL+aYQJIESYeXZmDBfOBE1HcpA==", + "dev": true, + "requires": { + "es-to-primitive": "1.1.1", + "function-bind": "1.1.1", + "has": "1.0.3", + "is-callable": "1.1.3", + "is-regex": "1.0.4" + } + }, + "es-to-primitive": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.1.1.tgz", + "integrity": "sha1-RTVSSKiJeQNLZ5Lhm7gfK3l13Q0=", + "dev": true, + "requires": { + "is-callable": "1.1.3", + "is-date-object": "1.0.1", + "is-symbol": "1.0.1" + } + }, + "es5-ext": { + "version": "0.10.45", + "resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.45.tgz", + "integrity": "sha512-FkfM6Vxxfmztilbxxz5UKSD4ICMf5tSpRFtDNtkAhOxZ0EKtX6qwmXNyH/sFyIbX2P/nU5AMiA9jilWsUGJzCQ==", + "dev": true, + "requires": { + "es6-iterator": "2.0.3", + "es6-symbol": "3.1.1", + "next-tick": "1.0.0" + } + }, + "es6-iterator": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/es6-iterator/-/es6-iterator-2.0.3.tgz", + "integrity": "sha1-p96IkUGgWpSwhUQDstCg+/qY87c=", + "dev": true, + "requires": { + "d": "1.0.0", + "es5-ext": "0.10.45", + "es6-symbol": "3.1.1" + } + }, + "es6-map": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/es6-map/-/es6-map-0.1.5.tgz", + "integrity": "sha1-kTbgUD3MBqMBaQ8LsU/042TpSfA=", + "dev": true, + "requires": { + "d": "1.0.0", + "es5-ext": "0.10.45", + "es6-iterator": "2.0.3", + "es6-set": "0.1.5", + "es6-symbol": "3.1.1", + "event-emitter": "0.3.5" + } + }, + "es6-set": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/es6-set/-/es6-set-0.1.5.tgz", + "integrity": "sha1-0rPsXU2ADO2BjbU40ol02wpzzLE=", + "dev": true, + "requires": { + "d": "1.0.0", + "es5-ext": "0.10.45", + "es6-iterator": "2.0.3", + "es6-symbol": "3.1.1", + "event-emitter": "0.3.5" + } + }, + "es6-symbol": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/es6-symbol/-/es6-symbol-3.1.1.tgz", + "integrity": "sha1-vwDvT9q2uhtG7Le2KbTH7VcVzHc=", + "dev": true, + "requires": { + "d": "1.0.0", + "es5-ext": "0.10.45" + } + }, + "es6-weak-map": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/es6-weak-map/-/es6-weak-map-2.0.2.tgz", + "integrity": "sha1-XjqzIlH/0VOKH45f+hNXdy+S2W8=", + "dev": true, + "requires": { + "d": "1.0.0", + "es5-ext": "0.10.45", + "es6-iterator": "2.0.3", + "es6-symbol": "3.1.1" + } + }, + "escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", + "dev": true + }, + "escodegen": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-1.10.0.tgz", + "integrity": "sha512-fjUOf8johsv23WuIKdNQU4P9t9jhQ4Qzx6pC2uW890OloK3Zs1ZAoCNpg/2larNF501jLl3UNy0kIRcF6VI22g==", + "dev": true, + "requires": { + "esprima": "3.1.3", + "estraverse": "4.2.0", + "esutils": "2.0.2", + "optionator": "0.8.2", + "source-map": "0.6.1" + }, + "dependencies": { + "esprima": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-3.1.3.tgz", + "integrity": "sha1-/cpRzuYTOJXjyI1TXOSdv/YqRjM=", + "dev": true + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "optional": true + } + } + }, + "escope": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/escope/-/escope-3.6.0.tgz", + "integrity": "sha1-4Bl16BJ4GhY6ba392AOY3GTIicM=", + "dev": true, + "requires": { + "es6-map": "0.1.5", + "es6-weak-map": "2.0.2", + "esrecurse": "4.2.1", + "estraverse": "4.2.0" + } + }, + "eslint": { + "version": "3.19.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-3.19.0.tgz", + "integrity": "sha1-yPxiAcf0DdCJQbh8CFdnOGpnmsw=", + "dev": true, + "requires": { + "babel-code-frame": "6.26.0", + "chalk": "1.1.3", + "concat-stream": "1.6.2", + "debug": "2.6.9", + "doctrine": "2.1.0", + "escope": "3.6.0", + "espree": "3.5.4", + "esquery": "1.0.1", + "estraverse": "4.2.0", + "esutils": "2.0.2", + "file-entry-cache": "2.0.0", + "glob": "7.1.2", + "globals": "9.18.0", + "ignore": "3.3.8", + "imurmurhash": "0.1.4", + "inquirer": "0.12.0", + "is-my-json-valid": "2.17.2", + "is-resolvable": "1.1.0", + "js-yaml": "3.7.0", + "json-stable-stringify": "1.0.1", + "levn": "0.3.0", + "lodash": "4.17.10", + "mkdirp": "0.5.1", + "natural-compare": "1.4.0", + "optionator": "0.8.2", + "path-is-inside": "1.0.2", + "pluralize": "1.2.1", + "progress": "1.1.8", + "require-uncached": "1.0.3", + "shelljs": "0.7.8", + "strip-bom": "3.0.0", + "strip-json-comments": "2.0.1", + "table": "3.8.3", + "text-table": "0.2.0", + "user-home": "2.0.0" + }, + "dependencies": { + "user-home": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/user-home/-/user-home-2.0.0.tgz", + "integrity": "sha1-nHC/2Babwdy/SGBODwS4tJzenp8=", + "dev": true, + "requires": { + "os-homedir": "1.0.2" + } + } + } + }, + "eslint-plugin-react": { + "version": "6.10.3", + "resolved": "https://registry.npmjs.org/eslint-plugin-react/-/eslint-plugin-react-6.10.3.tgz", + "integrity": "sha1-xUNb6wZ3ThLH2y9qut3L+QDNP3g=", + "dev": true, + "requires": { + "array.prototype.find": "2.0.4", + "doctrine": "1.5.0", + "has": "1.0.3", + "jsx-ast-utils": "1.4.1", + "object.assign": "4.1.0" + }, + "dependencies": { + "doctrine": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-1.5.0.tgz", + "integrity": "sha1-N53Ocw9hZvds76TmcHoVmwLFpvo=", + "dev": true, + "requires": { + "esutils": "2.0.2", + "isarray": "1.0.0" + } + } + } + }, + "espree": { + "version": "3.5.4", + "resolved": "https://registry.npmjs.org/espree/-/espree-3.5.4.tgz", + "integrity": "sha512-yAcIQxtmMiB/jL32dzEp2enBeidsB7xWPLNiw3IIkpVds1P+h7qF9YwJq1yUNzp2OKXgAprs4F61ih66UsoD1A==", + "dev": true, + "requires": { + "acorn": "5.7.1", + "acorn-jsx": "3.0.1" + } + }, + "esprima": { + "version": "2.7.3", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-2.7.3.tgz", + "integrity": "sha1-luO3DVd59q1JzQMmc9HDEnZ7pYE=", + "dev": true + }, + "esquery": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.0.1.tgz", + "integrity": "sha512-SmiyZ5zIWH9VM+SRUReLS5Q8a7GxtRdxEBVZpm98rJM7Sb+A9DVCndXfkeFUd3byderg+EbDkfnevfCwynWaNA==", + "dev": true, + "requires": { + "estraverse": "4.2.0" + } + }, + "esrecurse": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.2.1.tgz", + "integrity": "sha512-64RBB++fIOAXPw3P9cy89qfMlvZEXZkqqJkjqqXIvzP5ezRZjW+lPWjw35UX/3EhUPFYbg5ER4JYgDw4007/DQ==", + "dev": true, + "requires": { + "estraverse": "4.2.0" + } + }, + "estraverse": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.2.0.tgz", + "integrity": "sha1-De4/7TH81GlhjOc0IJn8GvoL2xM=", + "dev": true + }, + "esutils": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.2.tgz", + "integrity": "sha1-Cr9PHKpbyx96nYrMbepPqqBLrJs=", + "dev": true + }, + "event-emitter": { + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/event-emitter/-/event-emitter-0.3.5.tgz", + "integrity": "sha1-34xp7vFkeSPHFXuc6DhAYQsCzDk=", + "dev": true, + "requires": { + "d": "1.0.0", + "es5-ext": "0.10.45" + } + }, + "events": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/events/-/events-1.1.1.tgz", + "integrity": "sha1-nr23Y1rQmccNzEwqH1AEKI6L2SQ=", + "dev": true + }, + "exit-hook": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/exit-hook/-/exit-hook-1.1.1.tgz", + "integrity": "sha1-8FyiM7SMBdVP/wd2XfhQfpXAL/g=", + "dev": true + }, + "expand-brackets": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-0.1.5.tgz", + "integrity": "sha1-3wcoTjQqgHzXM6xa9yQR5YHRF3s=", + "dev": true, + "requires": { + "is-posix-bracket": "0.1.1" + } + }, + "expand-range": { + "version": "1.8.2", + "resolved": "https://registry.npmjs.org/expand-range/-/expand-range-1.8.2.tgz", + "integrity": "sha1-opnv/TNf4nIeuujiV+x5ZE/IUzc=", + "dev": true, + "requires": { + "fill-range": "2.2.4" + } + }, + "extglob": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/extglob/-/extglob-0.3.2.tgz", + "integrity": "sha1-Lhj/PS9JqydlzskCPwEdqo2DSaE=", + "dev": true, + "requires": { + "is-extglob": "1.0.0" + } + }, + "fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=", + "dev": true + }, + "fastparse": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/fastparse/-/fastparse-1.1.1.tgz", + "integrity": "sha1-0eJkOzipTXWDtHkGDmxK/8lAcfg=", + "dev": true + }, + "fbemitter": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/fbemitter/-/fbemitter-2.1.1.tgz", + "integrity": "sha1-Uj4U/a9SSIBbsC9i78M75wP1GGU=", + "dev": true, + "requires": { + "fbjs": "0.8.17" + } + }, + "fbjs": { + "version": "0.8.17", + "resolved": "https://registry.npmjs.org/fbjs/-/fbjs-0.8.17.tgz", + "integrity": "sha1-xNWY6taUkRJlPWWIsBpc3Nn5D90=", + "dev": true, + "requires": { + "core-js": "1.2.7", + "isomorphic-fetch": "2.2.1", + "loose-envify": "1.3.1", + "object-assign": "4.1.1", + "promise": "7.3.1", + "setimmediate": "1.0.5", + "ua-parser-js": "0.7.18" + }, + "dependencies": { + "core-js": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/core-js/-/core-js-1.2.7.tgz", + "integrity": "sha1-ZSKUwUZR2yj6k70tX/KYOk8IxjY=", + "dev": true + } + } + }, + "figures": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/figures/-/figures-1.7.0.tgz", + "integrity": "sha1-y+Hjr/zxzUS4DK3+0o3Hk6lwHS4=", + "dev": true, + "requires": { + "escape-string-regexp": "1.0.5", + "object-assign": "4.1.1" + } + }, + "file-entry-cache": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-2.0.0.tgz", + "integrity": "sha1-w5KZDD5oR4PYOLjISkXYoEhFg2E=", + "dev": true, + "requires": { + "flat-cache": "1.3.0", + "object-assign": "4.1.1" + } + }, + "filename-regex": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/filename-regex/-/filename-regex-2.0.1.tgz", + "integrity": "sha1-wcS5vuPglyXdsQa3XB4wH+LxiyY=", + "dev": true + }, + "fill-range": { + "version": "2.2.4", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-2.2.4.tgz", + "integrity": "sha512-cnrcCbj01+j2gTG921VZPnHbjmdAf8oQV/iGeV2kZxGSyfYjjTyY79ErsK1WJWMpw6DaApEX72binqJE+/d+5Q==", + "dev": true, + "requires": { + "is-number": "2.1.0", + "isobject": "2.1.0", + "randomatic": "3.0.0", + "repeat-element": "1.1.2", + "repeat-string": "1.6.1" + } + }, + "find-cache-dir": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-0.1.1.tgz", + "integrity": "sha1-yN765XyKUqinhPnjHFfHQumToLk=", + "dev": true, + "requires": { + "commondir": "1.0.1", + "mkdirp": "0.5.1", + "pkg-dir": "1.0.0" + } + }, + "find-up": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-1.1.2.tgz", + "integrity": "sha1-ay6YIrGizgpgq2TWEOzK1TyyTQ8=", + "dev": true, + "requires": { + "path-exists": "2.1.0", + "pinkie-promise": "2.0.1" + } + }, + "flat-cache": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-1.3.0.tgz", + "integrity": "sha1-0wMLMrOBVPTjt+nHCfSQ9++XxIE=", + "dev": true, + "requires": { + "circular-json": "0.3.3", + "del": "2.2.2", + "graceful-fs": "4.1.11", + "write": "0.2.1" + } + }, + "flatten": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/flatten/-/flatten-1.0.2.tgz", + "integrity": "sha1-2uRqnXj74lKSJYzB54CkHZXAN4I=", + "dev": true + }, + "flux": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/flux/-/flux-3.1.3.tgz", + "integrity": "sha1-0jvtUVp5oi2TOrU6tK2hnQWy8Io=", + "dev": true, + "requires": { + "fbemitter": "2.1.1", + "fbjs": "0.8.17" + } + }, + "for-in": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz", + "integrity": "sha1-gQaNKVqBQuwKxybG4iAMMPttXoA=", + "dev": true + }, + "for-own": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/for-own/-/for-own-0.1.5.tgz", + "integrity": "sha1-UmXGgaTylNq78XyVCbZ2OqhFEM4=", + "dev": true, + "requires": { + "for-in": "1.0.2" + } + }, + "foreach": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/foreach/-/foreach-2.0.5.tgz", + "integrity": "sha1-C+4AUBiusmDQo6865ljdATbsG5k=", + "dev": true + }, + "fs-readdir-recursive": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/fs-readdir-recursive/-/fs-readdir-recursive-1.1.0.tgz", + "integrity": "sha512-GNanXlVr2pf02+sPN40XN8HG+ePaNcvM0q5mZBd668Obwb0yD5GiUbZOFgwn8kGMY6I3mdyDJzieUy3PTYyTRA==", + "dev": true + }, + "fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", + "dev": true + }, + "function-bind": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", + "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", + "dev": true + }, + "generate-function": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/generate-function/-/generate-function-2.0.0.tgz", + "integrity": "sha1-aFj+fAlpt9TpCTM3ZHrHn2DfvnQ=", + "dev": true + }, + "generate-object-property": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/generate-object-property/-/generate-object-property-1.2.0.tgz", + "integrity": "sha1-nA4cQDCM6AT0eDYYuTf6iPmdUNA=", + "dev": true, + "requires": { + "is-property": "1.0.2" + } + }, + "glob": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz", + "integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==", + "dev": true, + "requires": { + "fs.realpath": "1.0.0", + "inflight": "1.0.6", + "inherits": "2.0.3", + "minimatch": "3.0.4", + "once": "1.4.0", + "path-is-absolute": "1.0.1" + } + }, + "glob-base": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/glob-base/-/glob-base-0.3.0.tgz", + "integrity": "sha1-27Fk9iIbHAscz4Kuoyi0l98Oo8Q=", + "dev": true, + "requires": { + "glob-parent": "2.0.0", + "is-glob": "2.0.1" + } + }, + "glob-parent": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-2.0.0.tgz", + "integrity": "sha1-gTg9ctsFT8zPUzbaqQLxgvbtuyg=", + "dev": true, + "requires": { + "is-glob": "2.0.1" + } + }, + "globals": { + "version": "9.18.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-9.18.0.tgz", + "integrity": "sha512-S0nG3CLEQiY/ILxqtztTWH/3iRRdyBLw6KMDxnKMchrtbj2OFmehVh0WUCfW3DUrIgx/qFrJPICrq4Z4sTR9UQ==", + "dev": true + }, + "globby": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/globby/-/globby-5.0.0.tgz", + "integrity": "sha1-69hGZ8oNuzMLmbz8aOrCvFQ3Dg0=", + "dev": true, + "requires": { + "array-union": "1.0.2", + "arrify": "1.0.1", + "glob": "7.1.2", + "object-assign": "4.1.1", + "pify": "2.3.0", + "pinkie-promise": "2.0.1" + } + }, + "graceful-fs": { + "version": "4.1.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", + "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=", + "dev": true + }, + "gzip-size": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/gzip-size/-/gzip-size-3.0.0.tgz", + "integrity": "sha1-VGGI6b3DN/Zzdy+BZgRks4nc5SA=", + "dev": true, + "requires": { + "duplexer": "0.1.1" + } + }, + "handlebars": { + "version": "4.0.11", + "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.0.11.tgz", + "integrity": "sha1-Ywo13+ApS8KB7a5v/F0yn8eYLcw=", + "dev": true, + "requires": { + "async": "1.5.2", + "optimist": "0.6.1", + "source-map": "0.4.4", + "uglify-js": "2.8.29" + }, + "dependencies": { + "source-map": { + "version": "0.4.4", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.4.4.tgz", + "integrity": "sha1-66T12pwNyZneaAMti092FzZSA2s=", + "dev": true, + "requires": { + "amdefine": "1.0.1" + } + } + } + }, + "has": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", + "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", + "dev": true, + "requires": { + "function-bind": "1.1.1" + } + }, + "has-ansi": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", + "integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=", + "dev": true, + "requires": { + "ansi-regex": "2.1.1" + } + }, + "has-color": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/has-color/-/has-color-0.1.7.tgz", + "integrity": "sha1-ZxRKUmDDT8PMpnfQQdr1L+e3iy8=", + "dev": true + }, + "has-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-1.0.0.tgz", + "integrity": "sha1-nZ55MWXOAXoA8AQYxD+UKnsdEfo=", + "dev": true + }, + "has-symbols": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.0.tgz", + "integrity": "sha1-uhqPGvKg/DllD1yFA2dwQSIGO0Q=", + "dev": true + }, + "history": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/history/-/history-2.1.2.tgz", + "integrity": "sha1-SqLeiXoOSGfkU5hDvm7Nsphr/ew=", + "dev": true, + "requires": { + "deep-equal": "1.0.1", + "invariant": "2.2.4", + "query-string": "3.0.3", + "warning": "2.1.0" + }, + "dependencies": { + "query-string": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/query-string/-/query-string-3.0.3.tgz", + "integrity": "sha1-ri4UtNBQcdTpuetIc8NbDc1C5jg=", + "dev": true, + "requires": { + "strict-uri-encode": "1.1.0" + } + }, + "warning": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/warning/-/warning-2.1.0.tgz", + "integrity": "sha1-ISINnGOvx3qMkhEeARr3Bc4MaQE=", + "dev": true, + "requires": { + "loose-envify": "1.3.1" + } + } + } + }, + "hoist-non-react-statics": { + "version": "2.5.5", + "resolved": "https://registry.npmjs.org/hoist-non-react-statics/-/hoist-non-react-statics-2.5.5.tgz", + "integrity": "sha512-rqcy4pJo55FTTLWt+bU8ukscqHeE/e9KWvsOW2b/a3afxQZhwkQdT1rPPCJ0rYXdj4vNcasY8zHTH+jF/qStxw==", + "dev": true + }, + "home-or-tmp": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/home-or-tmp/-/home-or-tmp-2.0.0.tgz", + "integrity": "sha1-42w/LSyufXRqhX440Y1fMqeILbg=", + "dev": true, + "requires": { + "os-homedir": "1.0.2", + "os-tmpdir": "1.0.2" + } + }, + "html-comment-regex": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/html-comment-regex/-/html-comment-regex-1.1.1.tgz", + "integrity": "sha1-ZouTd26q5V696POtRkswekljYl4=", + "dev": true + }, + "https-browserify": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/https-browserify/-/https-browserify-0.0.1.tgz", + "integrity": "sha1-P5E2XKvmC3ftDruiS0VOPgnZWoI=", + "dev": true + }, + "iconv-lite": { + "version": "0.4.23", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.23.tgz", + "integrity": "sha512-neyTUVFtahjf0mB3dZT77u+8O0QB89jFdnBkd5P1JgYPbPaia3gXXOVL2fq8VyU2gMMD7SaN7QukTB/pmXYvDA==", + "dev": true, + "requires": { + "safer-buffer": "2.1.2" + } + }, + "icss-replace-symbols": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/icss-replace-symbols/-/icss-replace-symbols-1.1.0.tgz", + "integrity": "sha1-Bupvg2ead0njhs/h/oEq5dsiPe0=", + "dev": true + }, + "ieee754": { + "version": "1.1.12", + "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.1.12.tgz", + "integrity": "sha512-GguP+DRY+pJ3soyIiGPTvdiVXjZ+DbXOxGpXn3eMvNW4x4irjqXm4wHKscC+TfxSJ0yw/S1F24tqdMNsMZTiLA==", + "dev": true + }, + "ignore": { + "version": "3.3.8", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-3.3.8.tgz", + "integrity": "sha512-pUh+xUQQhQzevjRHHFqqcTy0/dP/kS9I8HSrUydhihjuD09W6ldVWFtIrwhXdUJHis3i2rZNqEHpZH/cbinFbg==", + "dev": true + }, + "imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=", + "dev": true + }, + "indexes-of": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/indexes-of/-/indexes-of-1.0.1.tgz", + "integrity": "sha1-8w9xbI4r00bHtn0985FVZqfAVgc=", + "dev": true + }, + "indexof": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/indexof/-/indexof-0.0.1.tgz", + "integrity": "sha1-gtwzbSMrkGIXnQWrMpOmYFn9Q10=", + "dev": true + }, + "inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", + "dev": true, + "requires": { + "once": "1.4.0", + "wrappy": "1.0.2" + } + }, + "inherits": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", + "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", + "dev": true + }, + "inquirer": { + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-0.12.0.tgz", + "integrity": "sha1-HvK/1jUE3wvHV4X/+MLEHfEvB34=", + "dev": true, + "requires": { + "ansi-escapes": "1.4.0", + "ansi-regex": "2.1.1", + "chalk": "1.1.3", + "cli-cursor": "1.0.2", + "cli-width": "2.2.0", + "figures": "1.7.0", + "lodash": "4.17.10", + "readline2": "1.0.1", + "run-async": "0.1.0", + "rx-lite": "3.1.2", + "string-width": "1.0.2", + "strip-ansi": "3.0.1", + "through": "2.3.8" + } + }, + "interpret": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.1.0.tgz", + "integrity": "sha1-ftGxQQxqDg94z5XTuEQMY/eLhhQ=", + "dev": true + }, + "invariant": { + "version": "2.2.4", + "resolved": "https://registry.npmjs.org/invariant/-/invariant-2.2.4.tgz", + "integrity": "sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==", + "dev": true, + "requires": { + "loose-envify": "1.3.1" + } + }, + "is-absolute-url": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-absolute-url/-/is-absolute-url-2.1.0.tgz", + "integrity": "sha1-UFMN+4T8yap9vnhS6Do3uTufKqY=", + "dev": true + }, + "is-binary-path": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-1.0.1.tgz", + "integrity": "sha1-dfFmQrSA8YenEcgUFh/TpKdlWJg=", + "dev": true, + "requires": { + "binary-extensions": "1.11.0" + } + }, + "is-buffer": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", + "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", + "dev": true + }, + "is-callable": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.1.3.tgz", + "integrity": "sha1-hut1OSgF3cM69xySoO7fdO52BLI=", + "dev": true + }, + "is-date-object": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.1.tgz", + "integrity": "sha1-mqIOtq7rv/d/vTPnTKAbM1gdOhY=", + "dev": true + }, + "is-dotfile": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/is-dotfile/-/is-dotfile-1.0.3.tgz", + "integrity": "sha1-pqLzL/0t+wT1yiXs0Pa4PPeYoeE=", + "dev": true + }, + "is-equal-shallow": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/is-equal-shallow/-/is-equal-shallow-0.1.3.tgz", + "integrity": "sha1-IjgJj8Ih3gvPpdnqxMRdY4qhxTQ=", + "dev": true, + "requires": { + "is-primitive": "2.0.0" + } + }, + "is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=", + "dev": true + }, + "is-extglob": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-1.0.0.tgz", + "integrity": "sha1-rEaBd8SUNAWgkvyPKXYMb/xiBsA=", + "dev": true + }, + "is-finite": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-finite/-/is-finite-1.0.2.tgz", + "integrity": "sha1-zGZ3aVYCvlUO8R6LSqYwU0K20Ko=", + "dev": true, + "requires": { + "number-is-nan": "1.0.1" + } + }, + "is-fullwidth-code-point": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", + "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", + "dev": true, + "requires": { + "number-is-nan": "1.0.1" + } + }, + "is-glob": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-2.0.1.tgz", + "integrity": "sha1-0Jb5JqPe1WAPP9/ZEZjLCIjC2GM=", + "dev": true, + "requires": { + "is-extglob": "1.0.0" + } + }, + "is-my-ip-valid": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-my-ip-valid/-/is-my-ip-valid-1.0.0.tgz", + "integrity": "sha512-gmh/eWXROncUzRnIa1Ubrt5b8ep/MGSnfAUI3aRp+sqTCs1tv1Isl8d8F6JmkN3dXKc3ehZMrtiPN9eL03NuaQ==", + "dev": true + }, + "is-my-json-valid": { + "version": "2.17.2", + "resolved": "https://registry.npmjs.org/is-my-json-valid/-/is-my-json-valid-2.17.2.tgz", + "integrity": "sha512-IBhBslgngMQN8DDSppmgDv7RNrlFotuuDsKcrCP3+HbFaVivIBU7u9oiiErw8sH4ynx3+gOGQ3q2otkgiSi6kg==", + "dev": true, + "requires": { + "generate-function": "2.0.0", + "generate-object-property": "1.2.0", + "is-my-ip-valid": "1.0.0", + "jsonpointer": "4.0.1", + "xtend": "4.0.1" + } + }, + "is-number": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-2.1.0.tgz", + "integrity": "sha1-Afy7s5NGOlSPL0ZszhbezknbkI8=", + "dev": true, + "requires": { + "kind-of": "3.2.2" + } + }, + "is-path-cwd": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-path-cwd/-/is-path-cwd-1.0.0.tgz", + "integrity": "sha1-0iXsIxMuie3Tj9p2dHLmLmXxEG0=", + "dev": true + }, + "is-path-in-cwd": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-path-in-cwd/-/is-path-in-cwd-1.0.1.tgz", + "integrity": "sha512-FjV1RTW48E7CWM7eE/J2NJvAEEVektecDBVBE5Hh3nM1Jd0kvhHtX68Pr3xsDf857xt3Y4AkwVULK1Vku62aaQ==", + "dev": true, + "requires": { + "is-path-inside": "1.0.1" + } + }, + "is-path-inside": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-1.0.1.tgz", + "integrity": "sha1-jvW33lBDej/cprToZe96pVy0gDY=", + "dev": true, + "requires": { + "path-is-inside": "1.0.2" + } + }, + "is-plain-obj": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-1.1.0.tgz", + "integrity": "sha1-caUMhCnfync8kqOQpKA7OfzVHT4=", + "dev": true + }, + "is-posix-bracket": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-posix-bracket/-/is-posix-bracket-0.1.1.tgz", + "integrity": "sha1-MzTceXdDaOkvAW5vvAqI9c1ua8Q=", + "dev": true + }, + "is-primitive": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-primitive/-/is-primitive-2.0.0.tgz", + "integrity": "sha1-IHurkWOEmcB7Kt8kCkGochADRXU=", + "dev": true + }, + "is-property": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-property/-/is-property-1.0.2.tgz", + "integrity": "sha1-V/4cTkhHTt1lsJkR8msc1Ald2oQ=", + "dev": true + }, + "is-regex": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.0.4.tgz", + "integrity": "sha1-VRdIm1RwkbCTDglWVM7SXul+lJE=", + "dev": true, + "requires": { + "has": "1.0.3" + } + }, + "is-resolvable": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-resolvable/-/is-resolvable-1.1.0.tgz", + "integrity": "sha512-qgDYXFSR5WvEfuS5dMj6oTMEbrrSaM0CrFk2Yiq/gXnBvD9pMa2jGXxyhGLfvhZpuMZe18CJpFxAt3CRs42NMg==", + "dev": true + }, + "is-stream": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", + "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=", + "dev": true + }, + "is-svg": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-svg/-/is-svg-2.1.0.tgz", + "integrity": "sha1-z2EJDaDZ77yrhyLeum8DIgjbsOk=", + "dev": true, + "requires": { + "html-comment-regex": "1.1.1" + } + }, + "is-symbol": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.1.tgz", + "integrity": "sha1-PMWfAAJRlLarLjjbrmaJJWtmBXI=", + "dev": true + }, + "isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", + "dev": true + }, + "isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", + "dev": true + }, + "isobject": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz", + "integrity": "sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk=", + "dev": true, + "requires": { + "isarray": "1.0.0" + } + }, + "isomorphic-fetch": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/isomorphic-fetch/-/isomorphic-fetch-2.2.1.tgz", + "integrity": "sha1-YRrhrPFPXoH3KVB0coGf6XM1WKk=", + "dev": true, + "requires": { + "node-fetch": "1.7.3", + "whatwg-fetch": "2.0.4" + } + }, + "isparta": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/isparta/-/isparta-4.0.0.tgz", + "integrity": "sha1-HekZlvSAsi3LGsqFECVbrhV0RG4=", + "dev": true, + "requires": { + "babel-core": "6.26.3", + "escodegen": "1.10.0", + "esprima": "2.7.3", + "istanbul": "0.4.5", + "mkdirp": "0.5.1", + "nomnomnomnom": "2.0.1", + "object-assign": "4.1.1", + "source-map": "0.5.7", + "which": "1.3.1" + } + }, + "isparta-loader": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isparta-loader/-/isparta-loader-2.0.0.tgz", + "integrity": "sha1-RCX0lsk/dlu8603ZOFdtowdWbtE=", + "dev": true, + "requires": { + "isparta": "4.0.0" + } + }, + "istanbul": { + "version": "0.4.5", + "resolved": "https://registry.npmjs.org/istanbul/-/istanbul-0.4.5.tgz", + "integrity": "sha1-ZcfXPUxNqE1POsMQuRj7C4Azczs=", + "dev": true, + "requires": { + "abbrev": "1.0.9", + "async": "1.5.2", + "escodegen": "1.8.1", + "esprima": "2.7.3", + "glob": "5.0.15", + "handlebars": "4.0.11", + "js-yaml": "3.7.0", + "mkdirp": "0.5.1", + "nopt": "3.0.6", + "once": "1.4.0", + "resolve": "1.1.7", + "supports-color": "3.2.3", + "which": "1.3.1", + "wordwrap": "1.0.0" + }, + "dependencies": { + "escodegen": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-1.8.1.tgz", + "integrity": "sha1-WltTr0aTEQvrsIZ6o0MN07cKEBg=", + "dev": true, + "requires": { + "esprima": "2.7.3", + "estraverse": "1.9.3", + "esutils": "2.0.2", + "optionator": "0.8.2", + "source-map": "0.2.0" + } + }, + "estraverse": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-1.9.3.tgz", + "integrity": "sha1-r2fy3JIlgkFZUJJgkaQAXSnJu0Q=", + "dev": true + }, + "glob": { + "version": "5.0.15", + "resolved": "https://registry.npmjs.org/glob/-/glob-5.0.15.tgz", + "integrity": "sha1-G8k2ueAvSmA/zCIuz3Yz0wuLk7E=", + "dev": true, + "requires": { + "inflight": "1.0.6", + "inherits": "2.0.3", + "minimatch": "3.0.4", + "once": "1.4.0", + "path-is-absolute": "1.0.1" + } + }, + "resolve": { + "version": "1.1.7", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.1.7.tgz", + "integrity": "sha1-IDEU2CrSxe2ejgQRs5ModeiJ6Xs=", + "dev": true + }, + "source-map": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.2.0.tgz", + "integrity": "sha1-2rc/vPwrqBm03gO9b26qSBZLP50=", + "dev": true, + "optional": true, + "requires": { + "amdefine": "1.0.1" + } + }, + "supports-color": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-3.2.3.tgz", + "integrity": "sha1-ZawFBLOVQXHYpklGsq48u4pfVPY=", + "dev": true, + "requires": { + "has-flag": "1.0.0" + } + } + } + }, + "js-base64": { + "version": "2.4.5", + "resolved": "https://registry.npmjs.org/js-base64/-/js-base64-2.4.5.tgz", + "integrity": "sha512-aUnNwqMOXw3yvErjMPSQu6qIIzUmT1e5KcU1OZxRDU1g/am6mzBvcrmLAYwzmB59BHPrh5/tKaiF4OPhqRWESQ==", + "dev": true + }, + "js-tokens": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-3.0.2.tgz", + "integrity": "sha1-mGbfOVECEw449/mWvOtlRDIJwls=", + "dev": true + }, + "js-yaml": { + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.7.0.tgz", + "integrity": "sha1-XJZ93YN6m/3KXy3oQlOr6KHAO4A=", + "dev": true, + "requires": { + "argparse": "1.0.10", + "esprima": "2.7.3" + } + }, + "jsesc": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-1.3.0.tgz", + "integrity": "sha1-RsP+yMGJKxKwgz25vHYiF226s0s=", + "dev": true + }, + "json-stable-stringify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify/-/json-stable-stringify-1.0.1.tgz", + "integrity": "sha1-mnWdOcXy/1A/1TAGRu1EX4jE+a8=", + "dev": true, + "requires": { + "jsonify": "0.0.0" + } + }, + "json5": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/json5/-/json5-0.5.1.tgz", + "integrity": "sha1-Hq3nrMASA0rYTiOWdn6tn6VJWCE=", + "dev": true + }, + "jsonify": { + "version": "0.0.0", + "resolved": "https://registry.npmjs.org/jsonify/-/jsonify-0.0.0.tgz", + "integrity": "sha1-LHS27kHZPKUbe1qu6PUDYx0lKnM=", + "dev": true + }, + "jsonpointer": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/jsonpointer/-/jsonpointer-4.0.1.tgz", + "integrity": "sha1-T9kss04OnbPInIYi7PUfm5eMbLk=", + "dev": true + }, + "jsx-ast-utils": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-1.4.1.tgz", + "integrity": "sha1-OGchPo3Xm/Ho8jAMDPwe+xgsDfE=", + "dev": true + }, + "keymirror": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/keymirror/-/keymirror-0.1.1.tgz", + "integrity": "sha1-kYiJ6hP40KQufFVyUO7nE63JXDU=", + "dev": true + }, + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "1.1.6" + } + }, + "lazy-cache": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/lazy-cache/-/lazy-cache-1.0.4.tgz", + "integrity": "sha1-odePw6UEdMuAhF07O24dpJpEbo4=", + "dev": true + }, + "levn": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", + "integrity": "sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4=", + "dev": true, + "requires": { + "prelude-ls": "1.1.2", + "type-check": "0.3.2" + } + }, + "loader-utils": { + "version": "0.2.17", + "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-0.2.17.tgz", + "integrity": "sha1-+G5jdNQyBabmxg6RlvF8Apm/s0g=", + "dev": true, + "requires": { + "big.js": "3.2.0", + "emojis-list": "2.1.0", + "json5": "0.5.1", + "object-assign": "4.1.1" + } + }, + "lodash": { + "version": "4.17.10", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.10.tgz", + "integrity": "sha512-UejweD1pDoXu+AD825lWwp4ZGtSwgnpZxb3JDViD7StjQz+Nb/6l093lx4OQ0foGWNRoc19mWy7BzL+UAK2iVg==", + "dev": true + }, + "lodash._createcompounder": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/lodash._createcompounder/-/lodash._createcompounder-3.0.0.tgz", + "integrity": "sha1-XdLLVTctbnDg4jkvsjBNZjEJEHU=", + "dev": true, + "requires": { + "lodash.deburr": "3.2.0", + "lodash.words": "3.2.0" + } + }, + "lodash._root": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/lodash._root/-/lodash._root-3.0.1.tgz", + "integrity": "sha1-+6HEUkwZ7ppfgTa0YJ8BfPTe1pI=", + "dev": true + }, + "lodash.camelcase": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-3.0.1.tgz", + "integrity": "sha1-kyyLh/ikN3iXxnGXUzKC+Xrqwpg=", + "dev": true, + "requires": { + "lodash._createcompounder": "3.0.0" + } + }, + "lodash.deburr": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/lodash.deburr/-/lodash.deburr-3.2.0.tgz", + "integrity": "sha1-baj1QzSjZqfPTEx2742Aqhs2XtU=", + "dev": true, + "requires": { + "lodash._root": "3.0.1" + } + }, + "lodash.memoize": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz", + "integrity": "sha1-vMbEmkKihA7Zl/Mj6tpezRguC/4=", + "dev": true + }, + "lodash.uniq": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/lodash.uniq/-/lodash.uniq-4.5.0.tgz", + "integrity": "sha1-0CJTc662Uq3BvILklFM5qEJ1R3M=", + "dev": true + }, + "lodash.words": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/lodash.words/-/lodash.words-3.2.0.tgz", + "integrity": "sha1-TiqGSbwIdFsXxpWxo86P7llmI7M=", + "dev": true, + "requires": { + "lodash._root": "3.0.1" + } + }, + "longest": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/longest/-/longest-1.0.1.tgz", + "integrity": "sha1-MKCy2jj3N3DoKUoNIuZiXtd9AJc=", + "dev": true + }, + "loose-envify": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.3.1.tgz", + "integrity": "sha1-0aitM/qc4OcT1l/dCsi3SNR4yEg=", + "dev": true, + "requires": { + "js-tokens": "3.0.2" + } + }, + "math-expression-evaluator": { + "version": "1.2.17", + "resolved": "https://registry.npmjs.org/math-expression-evaluator/-/math-expression-evaluator-1.2.17.tgz", + "integrity": "sha1-3oGf282E3M2PrlnGrreWFbnSZqw=", + "dev": true + }, + "math-random": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/math-random/-/math-random-1.0.1.tgz", + "integrity": "sha1-izqsWIuKZuSXXjzepn97sylgH6w=", + "dev": true + }, + "memory-fs": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/memory-fs/-/memory-fs-0.3.0.tgz", + "integrity": "sha1-e8xrYp46Q+hx1+Kaymrop/FcuyA=", + "dev": true, + "requires": { + "errno": "0.1.7", + "readable-stream": "2.3.6" + } + }, + "micromatch": { + "version": "2.3.11", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-2.3.11.tgz", + "integrity": "sha1-hmd8l9FyCzY0MdBNDRUpO9OMFWU=", + "dev": true, + "requires": { + "arr-diff": "2.0.0", + "array-unique": "0.2.1", + "braces": "1.8.5", + "expand-brackets": "0.1.5", + "extglob": "0.3.2", + "filename-regex": "2.0.1", + "is-extglob": "1.0.0", + "is-glob": "2.0.1", + "kind-of": "3.2.2", + "normalize-path": "2.1.1", + "object.omit": "2.0.1", + "parse-glob": "3.0.4", + "regex-cache": "0.4.4" + } + }, + "mime": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", + "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", + "dev": true + }, + "minimatch": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "dev": true, + "requires": { + "brace-expansion": "1.1.11" + } + }, + "minimist": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", + "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", + "dev": true + }, + "mkdirp": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", + "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", + "dev": true, + "requires": { + "minimist": "0.0.8" + } + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "dev": true + }, + "mute-stream": { + "version": "0.0.5", + "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.5.tgz", + "integrity": "sha1-j7+rsKmKJT0xhDMfno3rc3L6xsA=", + "dev": true + }, + "natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=", + "dev": true + }, + "next-tick": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/next-tick/-/next-tick-1.0.0.tgz", + "integrity": "sha1-yobR/ogoFpsBICCOPchCS524NCw=", + "dev": true + }, + "node-fetch": { + "version": "1.7.3", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-1.7.3.tgz", + "integrity": "sha512-NhZ4CsKx7cYm2vSrBAr2PvFOe6sWDf0UYLRqA6svUYg7+/TSfVAu49jYC4BvQ4Sms9SZgdqGBgroqfDhJdTyKQ==", + "dev": true, + "requires": { + "encoding": "0.1.12", + "is-stream": "1.1.0" + } + }, + "node-libs-browser": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/node-libs-browser/-/node-libs-browser-0.7.0.tgz", + "integrity": "sha1-PicsCBnjCJNeJmdECNevDhSRuDs=", + "dev": true, + "requires": { + "assert": "1.4.1", + "browserify-zlib": "0.1.4", + "buffer": "4.9.1", + "console-browserify": "1.1.0", + "constants-browserify": "1.0.0", + "crypto-browserify": "3.3.0", + "domain-browser": "1.2.0", + "events": "1.1.1", + "https-browserify": "0.0.1", + "os-browserify": "0.2.1", + "path-browserify": "0.0.0", + "process": "0.11.10", + "punycode": "1.4.1", + "querystring-es3": "0.2.1", + "readable-stream": "2.3.6", + "stream-browserify": "2.0.1", + "stream-http": "2.8.3", + "string_decoder": "0.10.31", + "timers-browserify": "2.0.10", + "tty-browserify": "0.0.0", + "url": "0.11.0", + "util": "0.10.4", + "vm-browserify": "0.0.4" + }, + "dependencies": { + "string_decoder": { + "version": "0.10.31", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", + "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=", + "dev": true + } + } + }, + "nomnomnomnom": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/nomnomnomnom/-/nomnomnomnom-2.0.1.tgz", + "integrity": "sha1-siOfAxyNBNpn4yg24eMZnhL3qOI=", + "dev": true, + "requires": { + "chalk": "0.4.0", + "underscore": "1.6.0" + }, + "dependencies": { + "ansi-styles": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-1.0.0.tgz", + "integrity": "sha1-yxAt8cVvUSPquLZ817mAJ6AnkXg=", + "dev": true + }, + "chalk": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-0.4.0.tgz", + "integrity": "sha1-UZmj3c0MHv4jvAjBsCewYXbgxk8=", + "dev": true, + "requires": { + "ansi-styles": "1.0.0", + "has-color": "0.1.7", + "strip-ansi": "0.1.1" + } + }, + "strip-ansi": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-0.1.1.tgz", + "integrity": "sha1-OeipjQRNFQZgq+SmgIrPcLt7yZE=", + "dev": true + } + } + }, + "nopt": { + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/nopt/-/nopt-3.0.6.tgz", + "integrity": "sha1-xkZdvwirzU2zWTF/eaxopkayj/k=", + "dev": true, + "requires": { + "abbrev": "1.0.9" + } + }, + "normalize-path": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-2.1.1.tgz", + "integrity": "sha1-GrKLVW4Zg2Oowab35vogE3/mrtk=", + "dev": true, + "requires": { + "remove-trailing-separator": "1.1.0" + } + }, + "normalize-range": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/normalize-range/-/normalize-range-0.1.2.tgz", + "integrity": "sha1-LRDAa9/TEuqXd2laTShDlFa3WUI=", + "dev": true + }, + "normalize-url": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-1.9.1.tgz", + "integrity": "sha1-LMDWazHqIwNkWENuNiDYWVTGbDw=", + "dev": true, + "requires": { + "object-assign": "4.1.1", + "prepend-http": "1.0.4", + "query-string": "4.3.4", + "sort-keys": "1.1.2" + } + }, + "num2fraction": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/num2fraction/-/num2fraction-1.2.2.tgz", + "integrity": "sha1-b2gragJ6Tp3fpFZM0lidHU5mnt4=", + "dev": true + }, + "number-is-nan": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", + "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=", + "dev": true + }, + "object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", + "dev": true + }, + "object-keys": { + "version": "1.0.12", + "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.0.12.tgz", + "integrity": "sha512-FTMyFUm2wBcGHnH2eXmz7tC6IwlqQZ6mVZ+6dm6vZ4IQIHjs6FdNsQBuKGPuUUUY6NfJw2PshC08Tn6LzLDOag==", + "dev": true + }, + "object.assign": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.0.tgz", + "integrity": "sha512-exHJeq6kBKj58mqGyTQ9DFvrZC/eR6OwxzoM9YRoGBqrXYonaFyGiFMuc9VZrXf7DarreEwMpurG3dd+CNyW5w==", + "dev": true, + "requires": { + "define-properties": "1.1.2", + "function-bind": "1.1.1", + "has-symbols": "1.0.0", + "object-keys": "1.0.12" + } + }, + "object.omit": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/object.omit/-/object.omit-2.0.1.tgz", + "integrity": "sha1-Gpx0SCnznbuFjHbKNXmuKlTr0fo=", + "dev": true, + "requires": { + "for-own": "0.1.5", + "is-extendable": "0.1.1" + } + }, + "once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "dev": true, + "requires": { + "wrappy": "1.0.2" + } + }, + "onetime": { + "version": "1.1.0", + "resolved": "http://registry.npmjs.org/onetime/-/onetime-1.1.0.tgz", + "integrity": "sha1-ofeDj4MUxRbwXs78vEzP4EtO14k=", + "dev": true + }, + "optimist": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/optimist/-/optimist-0.6.1.tgz", + "integrity": "sha1-2j6nRob6IaGaERwybpDrFaAZZoY=", + "dev": true, + "requires": { + "minimist": "0.0.8", + "wordwrap": "0.0.3" + }, + "dependencies": { + "wordwrap": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.3.tgz", + "integrity": "sha1-o9XabNXAvAAI03I0u68b7WMFkQc=", + "dev": true + } + } + }, + "optionator": { + "version": "0.8.2", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.2.tgz", + "integrity": "sha1-NkxeQJ0/TWMB1sC0wFu6UBgK62Q=", + "dev": true, + "requires": { + "deep-is": "0.1.3", + "fast-levenshtein": "2.0.6", + "levn": "0.3.0", + "prelude-ls": "1.1.2", + "type-check": "0.3.2", + "wordwrap": "1.0.0" + } + }, + "os-browserify": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/os-browserify/-/os-browserify-0.2.1.tgz", + "integrity": "sha1-Y/xMzuXS13Y9Jrv4YBB45sLgBE8=", + "dev": true + }, + "os-homedir": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz", + "integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M=", + "dev": true + }, + "os-tmpdir": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", + "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=", + "dev": true + }, + "output-file-sync": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/output-file-sync/-/output-file-sync-1.1.2.tgz", + "integrity": "sha1-0KM+7+YaIF+suQCS6CZZjVJFznY=", + "dev": true, + "requires": { + "graceful-fs": "4.1.11", + "mkdirp": "0.5.1", + "object-assign": "4.1.1" + } + }, + "pako": { + "version": "0.2.9", + "resolved": "https://registry.npmjs.org/pako/-/pako-0.2.9.tgz", + "integrity": "sha1-8/dSL073gjSNqBYbrZ7P1Rv4OnU=", + "dev": true + }, + "parse-glob": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/parse-glob/-/parse-glob-3.0.4.tgz", + "integrity": "sha1-ssN2z7EfNVE7rdFz7wu246OIORw=", + "dev": true, + "requires": { + "glob-base": "0.3.0", + "is-dotfile": "1.0.3", + "is-extglob": "1.0.0", + "is-glob": "2.0.1" + } + }, + "path-browserify": { + "version": "0.0.0", + "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-0.0.0.tgz", + "integrity": "sha1-oLhwcpquIUAFt9UDLsLLuw+0RRo=", + "dev": true + }, + "path-exists": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-2.1.0.tgz", + "integrity": "sha1-D+tsZPD8UY2adU3V77YscCJ2H0s=", + "dev": true, + "requires": { + "pinkie-promise": "2.0.1" + } + }, + "path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", + "dev": true + }, + "path-is-inside": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/path-is-inside/-/path-is-inside-1.0.2.tgz", + "integrity": "sha1-NlQX3t5EQw0cEa9hAn+s8HS9/FM=", + "dev": true + }, + "path-parse": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.5.tgz", + "integrity": "sha1-PBrfhx6pzWyUMbbqK9dKD/BVxME=", + "dev": true + }, + "pbkdf2-compat": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/pbkdf2-compat/-/pbkdf2-compat-2.0.1.tgz", + "integrity": "sha1-tuDI+plJTZTgURV1gCpZpcFC8og=", + "dev": true + }, + "pify": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", + "dev": true + }, + "pinkie": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz", + "integrity": "sha1-clVrgM+g1IqXToDnckjoDtT3+HA=", + "dev": true + }, + "pinkie-promise": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz", + "integrity": "sha1-ITXW36ejWMBprJsXh3YogihFD/o=", + "dev": true, + "requires": { + "pinkie": "2.0.4" + } + }, + "pkg-dir": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-1.0.0.tgz", + "integrity": "sha1-ektQio1bstYp1EcFb/TpyTFM89Q=", + "dev": true, + "requires": { + "find-up": "1.1.2" + } + }, + "pluralize": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/pluralize/-/pluralize-1.2.1.tgz", + "integrity": "sha1-0aIUg/0iu0HlihL6NCGCMUCJfEU=", + "dev": true + }, + "postcss": { + "version": "5.2.18", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-5.2.18.tgz", + "integrity": "sha512-zrUjRRe1bpXKsX1qAJNJjqZViErVuyEkMTRrwu4ud4sbTtIBRmtaYDrHmcGgmrbsW3MHfmtIf+vJumgQn+PrXg==", + "dev": true, + "requires": { + "chalk": "1.1.3", + "js-base64": "2.4.5", + "source-map": "0.5.7", + "supports-color": "3.2.3" + }, + "dependencies": { + "supports-color": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-3.2.3.tgz", + "integrity": "sha1-ZawFBLOVQXHYpklGsq48u4pfVPY=", + "dev": true, + "requires": { + "has-flag": "1.0.0" + } + } + } + }, + "postcss-calc": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/postcss-calc/-/postcss-calc-5.3.1.tgz", + "integrity": "sha1-d7rnypKK2FcW4v2kLyYb98HWW14=", + "dev": true, + "requires": { + "postcss": "5.2.18", + "postcss-message-helpers": "2.0.0", + "reduce-css-calc": "1.3.0" + } + }, + "postcss-colormin": { + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/postcss-colormin/-/postcss-colormin-2.2.2.tgz", + "integrity": "sha1-ZjFBfV8OkJo9fsJrJMio0eT5bks=", + "dev": true, + "requires": { + "colormin": "1.1.2", + "postcss": "5.2.18", + "postcss-value-parser": "3.3.0" + } + }, + "postcss-convert-values": { + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/postcss-convert-values/-/postcss-convert-values-2.6.1.tgz", + "integrity": "sha1-u9hZPFwf0uPRwyK7kl3K6Nrk1i0=", + "dev": true, + "requires": { + "postcss": "5.2.18", + "postcss-value-parser": "3.3.0" + } + }, + "postcss-discard-comments": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/postcss-discard-comments/-/postcss-discard-comments-2.0.4.tgz", + "integrity": "sha1-vv6J+v1bPazlzM5Rt2uBUUvgDj0=", + "dev": true, + "requires": { + "postcss": "5.2.18" + } + }, + "postcss-discard-duplicates": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/postcss-discard-duplicates/-/postcss-discard-duplicates-2.1.0.tgz", + "integrity": "sha1-uavye4isGIFYpesSq8riAmO5GTI=", + "dev": true, + "requires": { + "postcss": "5.2.18" + } + }, + "postcss-discard-empty": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/postcss-discard-empty/-/postcss-discard-empty-2.1.0.tgz", + "integrity": "sha1-0rS9nVztXr2Nyt52QMfXzX9PkrU=", + "dev": true, + "requires": { + "postcss": "5.2.18" + } + }, + "postcss-discard-overridden": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/postcss-discard-overridden/-/postcss-discard-overridden-0.1.1.tgz", + "integrity": "sha1-ix6vVU9ob7KIzYdMVWZ7CqNmjVg=", + "dev": true, + "requires": { + "postcss": "5.2.18" + } + }, + "postcss-discard-unused": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/postcss-discard-unused/-/postcss-discard-unused-2.2.3.tgz", + "integrity": "sha1-vOMLLMWR/8Y0Mitfs0ZLbZNPRDM=", + "dev": true, + "requires": { + "postcss": "5.2.18", + "uniqs": "2.0.0" + } + }, + "postcss-filter-plugins": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/postcss-filter-plugins/-/postcss-filter-plugins-2.0.3.tgz", + "integrity": "sha512-T53GVFsdinJhgwm7rg1BzbeBRomOg9y5MBVhGcsV0CxurUdVj1UlPdKtn7aqYA/c/QVkzKMjq2bSV5dKG5+AwQ==", + "dev": true, + "requires": { + "postcss": "5.2.18" + } + }, + "postcss-merge-idents": { + "version": "2.1.7", + "resolved": "https://registry.npmjs.org/postcss-merge-idents/-/postcss-merge-idents-2.1.7.tgz", + "integrity": "sha1-TFUwMTwI4dWzu/PSu8dH4njuonA=", + "dev": true, + "requires": { + "has": "1.0.3", + "postcss": "5.2.18", + "postcss-value-parser": "3.3.0" + } + }, + "postcss-merge-longhand": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/postcss-merge-longhand/-/postcss-merge-longhand-2.0.2.tgz", + "integrity": "sha1-I9kM0Sewp3mUkVMyc5A0oaTz1lg=", + "dev": true, + "requires": { + "postcss": "5.2.18" + } + }, + "postcss-merge-rules": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/postcss-merge-rules/-/postcss-merge-rules-2.1.2.tgz", + "integrity": "sha1-0d9d+qexrMO+VT8OnhDofGG19yE=", + "dev": true, + "requires": { + "browserslist": "1.7.7", + "caniuse-api": "1.6.1", + "postcss": "5.2.18", + "postcss-selector-parser": "2.2.3", + "vendors": "1.0.2" + } + }, + "postcss-message-helpers": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/postcss-message-helpers/-/postcss-message-helpers-2.0.0.tgz", + "integrity": "sha1-pPL0+rbk/gAvCu0ABHjN9S+bpg4=", + "dev": true + }, + "postcss-minify-font-values": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/postcss-minify-font-values/-/postcss-minify-font-values-1.0.5.tgz", + "integrity": "sha1-S1jttWZB66fIR0qzUmyv17vey2k=", + "dev": true, + "requires": { + "object-assign": "4.1.1", + "postcss": "5.2.18", + "postcss-value-parser": "3.3.0" + } + }, + "postcss-minify-gradients": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/postcss-minify-gradients/-/postcss-minify-gradients-1.0.5.tgz", + "integrity": "sha1-Xb2hE3NwP4PPtKPqOIHY11/15uE=", + "dev": true, + "requires": { + "postcss": "5.2.18", + "postcss-value-parser": "3.3.0" + } + }, + "postcss-minify-params": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/postcss-minify-params/-/postcss-minify-params-1.2.2.tgz", + "integrity": "sha1-rSzgcTc7lDs9kwo/pZo1jCjW8fM=", + "dev": true, + "requires": { + "alphanum-sort": "1.0.2", + "postcss": "5.2.18", + "postcss-value-parser": "3.3.0", + "uniqs": "2.0.0" + } + }, + "postcss-minify-selectors": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/postcss-minify-selectors/-/postcss-minify-selectors-2.1.1.tgz", + "integrity": "sha1-ssapjAByz5G5MtGkllCBFDEXNb8=", + "dev": true, + "requires": { + "alphanum-sort": "1.0.2", + "has": "1.0.3", + "postcss": "5.2.18", + "postcss-selector-parser": "2.2.3" + } + }, + "postcss-modules-extract-imports": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/postcss-modules-extract-imports/-/postcss-modules-extract-imports-1.1.0.tgz", + "integrity": "sha1-thTJcgvmgW6u41+zpfqh26agXds=", + "dev": true, + "requires": { + "postcss": "6.0.22" + }, + "dependencies": { + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "requires": { + "color-convert": "1.9.2" + } + }, + "chalk": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.1.tgz", + "integrity": "sha512-ObN6h1v2fTJSmUXoS3nMQ92LbDK9be4TV+6G+omQlGJFdcUX5heKi1LZ1YnRMIgwTLEj3E24bT6tYni50rlCfQ==", + "dev": true, + "requires": { + "ansi-styles": "3.2.1", + "escape-string-regexp": "1.0.5", + "supports-color": "5.4.0" + } + }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "dev": true + }, + "postcss": { + "version": "6.0.22", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-6.0.22.tgz", + "integrity": "sha512-Toc9lLoUASwGqxBSJGTVcOQiDqjK+Z2XlWBg+IgYwQMY9vA2f7iMpXVc1GpPcfTSyM5lkxNo0oDwDRO+wm7XHA==", + "dev": true, + "requires": { + "chalk": "2.4.1", + "source-map": "0.6.1", + "supports-color": "5.4.0" + } + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + }, + "supports-color": { + "version": "5.4.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.4.0.tgz", + "integrity": "sha512-zjaXglF5nnWpsq470jSv6P9DwPvgLkuapYmfDm3JWOm0vkNTVF2tI4UrN2r6jH1qM/uc/WtxYY1hYoA2dOKj5w==", + "dev": true, + "requires": { + "has-flag": "3.0.0" + } + } + } + }, + "postcss-modules-local-by-default": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/postcss-modules-local-by-default/-/postcss-modules-local-by-default-1.2.0.tgz", + "integrity": "sha1-99gMOYxaOT+nlkRmvRlQCn1hwGk=", + "dev": true, + "requires": { + "css-selector-tokenizer": "0.7.0", + "postcss": "6.0.22" + }, + "dependencies": { + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "requires": { + "color-convert": "1.9.2" + } + }, + "chalk": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.1.tgz", + "integrity": "sha512-ObN6h1v2fTJSmUXoS3nMQ92LbDK9be4TV+6G+omQlGJFdcUX5heKi1LZ1YnRMIgwTLEj3E24bT6tYni50rlCfQ==", + "dev": true, + "requires": { + "ansi-styles": "3.2.1", + "escape-string-regexp": "1.0.5", + "supports-color": "5.4.0" + } + }, + "css-selector-tokenizer": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/css-selector-tokenizer/-/css-selector-tokenizer-0.7.0.tgz", + "integrity": "sha1-5piEdK6MlTR3v15+/s/OzNnPTIY=", + "dev": true, + "requires": { + "cssesc": "0.1.0", + "fastparse": "1.1.1", + "regexpu-core": "1.0.0" + } + }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "dev": true + }, + "postcss": { + "version": "6.0.22", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-6.0.22.tgz", + "integrity": "sha512-Toc9lLoUASwGqxBSJGTVcOQiDqjK+Z2XlWBg+IgYwQMY9vA2f7iMpXVc1GpPcfTSyM5lkxNo0oDwDRO+wm7XHA==", + "dev": true, + "requires": { + "chalk": "2.4.1", + "source-map": "0.6.1", + "supports-color": "5.4.0" + } + }, + "regexpu-core": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-1.0.0.tgz", + "integrity": "sha1-hqdj9Y7k18L2sQLkdkBQ3n7ZDGs=", + "dev": true, + "requires": { + "regenerate": "1.4.0", + "regjsgen": "0.2.0", + "regjsparser": "0.1.5" + } + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + }, + "supports-color": { + "version": "5.4.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.4.0.tgz", + "integrity": "sha512-zjaXglF5nnWpsq470jSv6P9DwPvgLkuapYmfDm3JWOm0vkNTVF2tI4UrN2r6jH1qM/uc/WtxYY1hYoA2dOKj5w==", + "dev": true, + "requires": { + "has-flag": "3.0.0" + } + } + } + }, + "postcss-modules-scope": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/postcss-modules-scope/-/postcss-modules-scope-1.1.0.tgz", + "integrity": "sha1-1upkmUx5+XtipytCb75gVqGUu5A=", + "dev": true, + "requires": { + "css-selector-tokenizer": "0.7.0", + "postcss": "6.0.22" + }, + "dependencies": { + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "requires": { + "color-convert": "1.9.2" + } + }, + "chalk": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.1.tgz", + "integrity": "sha512-ObN6h1v2fTJSmUXoS3nMQ92LbDK9be4TV+6G+omQlGJFdcUX5heKi1LZ1YnRMIgwTLEj3E24bT6tYni50rlCfQ==", + "dev": true, + "requires": { + "ansi-styles": "3.2.1", + "escape-string-regexp": "1.0.5", + "supports-color": "5.4.0" + } + }, + "css-selector-tokenizer": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/css-selector-tokenizer/-/css-selector-tokenizer-0.7.0.tgz", + "integrity": "sha1-5piEdK6MlTR3v15+/s/OzNnPTIY=", + "dev": true, + "requires": { + "cssesc": "0.1.0", + "fastparse": "1.1.1", + "regexpu-core": "1.0.0" + } + }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "dev": true + }, + "postcss": { + "version": "6.0.22", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-6.0.22.tgz", + "integrity": "sha512-Toc9lLoUASwGqxBSJGTVcOQiDqjK+Z2XlWBg+IgYwQMY9vA2f7iMpXVc1GpPcfTSyM5lkxNo0oDwDRO+wm7XHA==", + "dev": true, + "requires": { + "chalk": "2.4.1", + "source-map": "0.6.1", + "supports-color": "5.4.0" + } + }, + "regexpu-core": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-1.0.0.tgz", + "integrity": "sha1-hqdj9Y7k18L2sQLkdkBQ3n7ZDGs=", + "dev": true, + "requires": { + "regenerate": "1.4.0", + "regjsgen": "0.2.0", + "regjsparser": "0.1.5" + } + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + }, + "supports-color": { + "version": "5.4.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.4.0.tgz", + "integrity": "sha512-zjaXglF5nnWpsq470jSv6P9DwPvgLkuapYmfDm3JWOm0vkNTVF2tI4UrN2r6jH1qM/uc/WtxYY1hYoA2dOKj5w==", + "dev": true, + "requires": { + "has-flag": "3.0.0" + } + } + } + }, + "postcss-modules-values": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/postcss-modules-values/-/postcss-modules-values-1.3.0.tgz", + "integrity": "sha1-7P+p1+GSUYOJ9CrQ6D9yrsRW6iA=", + "dev": true, + "requires": { + "icss-replace-symbols": "1.1.0", + "postcss": "6.0.22" + }, + "dependencies": { + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "requires": { + "color-convert": "1.9.2" + } + }, + "chalk": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.1.tgz", + "integrity": "sha512-ObN6h1v2fTJSmUXoS3nMQ92LbDK9be4TV+6G+omQlGJFdcUX5heKi1LZ1YnRMIgwTLEj3E24bT6tYni50rlCfQ==", + "dev": true, + "requires": { + "ansi-styles": "3.2.1", + "escape-string-regexp": "1.0.5", + "supports-color": "5.4.0" + } + }, + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "dev": true + }, + "postcss": { + "version": "6.0.22", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-6.0.22.tgz", + "integrity": "sha512-Toc9lLoUASwGqxBSJGTVcOQiDqjK+Z2XlWBg+IgYwQMY9vA2f7iMpXVc1GpPcfTSyM5lkxNo0oDwDRO+wm7XHA==", + "dev": true, + "requires": { + "chalk": "2.4.1", + "source-map": "0.6.1", + "supports-color": "5.4.0" + } + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + }, + "supports-color": { + "version": "5.4.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.4.0.tgz", + "integrity": "sha512-zjaXglF5nnWpsq470jSv6P9DwPvgLkuapYmfDm3JWOm0vkNTVF2tI4UrN2r6jH1qM/uc/WtxYY1hYoA2dOKj5w==", + "dev": true, + "requires": { + "has-flag": "3.0.0" + } + } + } + }, + "postcss-normalize-charset": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/postcss-normalize-charset/-/postcss-normalize-charset-1.1.1.tgz", + "integrity": "sha1-757nEhLX/nWceO0WL2HtYrXLk/E=", + "dev": true, + "requires": { + "postcss": "5.2.18" + } + }, + "postcss-normalize-url": { + "version": "3.0.8", + "resolved": "https://registry.npmjs.org/postcss-normalize-url/-/postcss-normalize-url-3.0.8.tgz", + "integrity": "sha1-EI90s/L82viRov+j6kWSJ5/HgiI=", + "dev": true, + "requires": { + "is-absolute-url": "2.1.0", + "normalize-url": "1.9.1", + "postcss": "5.2.18", + "postcss-value-parser": "3.3.0" + } + }, + "postcss-ordered-values": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/postcss-ordered-values/-/postcss-ordered-values-2.2.3.tgz", + "integrity": "sha1-7sbCpntsQSqNsgQud/6NpD+VwR0=", + "dev": true, + "requires": { + "postcss": "5.2.18", + "postcss-value-parser": "3.3.0" + } + }, + "postcss-reduce-idents": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/postcss-reduce-idents/-/postcss-reduce-idents-2.4.0.tgz", + "integrity": "sha1-wsbSDMlYKE9qv75j92Cb9AkFmtM=", + "dev": true, + "requires": { + "postcss": "5.2.18", + "postcss-value-parser": "3.3.0" + } + }, + "postcss-reduce-initial": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/postcss-reduce-initial/-/postcss-reduce-initial-1.0.1.tgz", + "integrity": "sha1-aPgGlfBF0IJjqHmtJA343WT2ROo=", + "dev": true, + "requires": { + "postcss": "5.2.18" + } + }, + "postcss-reduce-transforms": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/postcss-reduce-transforms/-/postcss-reduce-transforms-1.0.4.tgz", + "integrity": "sha1-/3b02CEkN7McKYpC0uFEQCV3GuE=", + "dev": true, + "requires": { + "has": "1.0.3", + "postcss": "5.2.18", + "postcss-value-parser": "3.3.0" + } + }, + "postcss-selector-parser": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-2.2.3.tgz", + "integrity": "sha1-+UN3iGBsPJrO4W/+jYsWKX8nu5A=", + "dev": true, + "requires": { + "flatten": "1.0.2", + "indexes-of": "1.0.1", + "uniq": "1.0.1" + } + }, + "postcss-svgo": { + "version": "2.1.6", + "resolved": "https://registry.npmjs.org/postcss-svgo/-/postcss-svgo-2.1.6.tgz", + "integrity": "sha1-tt8YqmE7Zm4TPwittSGcJoSsEI0=", + "dev": true, + "requires": { + "is-svg": "2.1.0", + "postcss": "5.2.18", + "postcss-value-parser": "3.3.0", + "svgo": "0.7.2" + } + }, + "postcss-unique-selectors": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/postcss-unique-selectors/-/postcss-unique-selectors-2.0.2.tgz", + "integrity": "sha1-mB1X0p3csz57Hf4f1DuGSfkzyh0=", + "dev": true, + "requires": { + "alphanum-sort": "1.0.2", + "postcss": "5.2.18", + "uniqs": "2.0.0" + } + }, + "postcss-value-parser": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-3.3.0.tgz", + "integrity": "sha1-h/OPnxj3dKSrTIojL1xc6IcqnRU=", + "dev": true + }, + "postcss-zindex": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/postcss-zindex/-/postcss-zindex-2.2.0.tgz", + "integrity": "sha1-0hCd3AVbka9n/EyzsCWUZjnSryI=", + "dev": true, + "requires": { + "has": "1.0.3", + "postcss": "5.2.18", + "uniqs": "2.0.0" + } + }, + "prelude-ls": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz", + "integrity": "sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=", + "dev": true + }, + "prepend-http": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-1.0.4.tgz", + "integrity": "sha1-1PRWKwzjaW5BrFLQ4ALlemNdxtw=", + "dev": true + }, + "preserve": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/preserve/-/preserve-0.2.0.tgz", + "integrity": "sha1-gV7R9uvGWSb4ZbMQwHE7yzMVzks=", + "dev": true + }, + "pretty-bytes": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/pretty-bytes/-/pretty-bytes-4.0.2.tgz", + "integrity": "sha1-sr+C5zUNZcbDOqlaqlpPYyf2HNk=", + "dev": true + }, + "private": { + "version": "0.1.8", + "resolved": "https://registry.npmjs.org/private/-/private-0.1.8.tgz", + "integrity": "sha512-VvivMrbvd2nKkiG38qjULzlc+4Vx4wm/whI9pQD35YrARNnhxeiRktSOhSukRLFNlzg6Br/cJPet5J/u19r/mg==", + "dev": true + }, + "process": { + "version": "0.11.10", + "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", + "integrity": "sha1-czIwDoQBYb2j5podHZGn1LwW8YI=", + "dev": true + }, + "process-nextick-args": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.0.tgz", + "integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw==", + "dev": true + }, + "progress": { + "version": "1.1.8", + "resolved": "https://registry.npmjs.org/progress/-/progress-1.1.8.tgz", + "integrity": "sha1-4mDHj2Fhzdmw5WzD4Khd4Xx6V74=", + "dev": true + }, + "promise": { + "version": "7.3.1", + "resolved": "https://registry.npmjs.org/promise/-/promise-7.3.1.tgz", + "integrity": "sha512-nolQXZ/4L+bP/UGlkfaIujX9BKxGwmQ9OT4mOt5yvy8iK1h3wqTEJCijzGANTCCl9nWjY41juyAn2K3Q1hLLTg==", + "dev": true, + "requires": { + "asap": "2.0.6" + } + }, + "prop-types": { + "version": "15.6.1", + "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.6.1.tgz", + "integrity": "sha512-4ec7bY1Y66LymSUOH/zARVYObB23AT2h8cf6e/O6ZALB/N0sqZFEx7rq6EYPX2MkOdKORuooI/H5k9TlR4q7kQ==", + "dev": true, + "requires": { + "fbjs": "0.8.17", + "loose-envify": "1.3.1", + "object-assign": "4.1.1" + } + }, + "prr": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/prr/-/prr-1.0.1.tgz", + "integrity": "sha1-0/wRS6BplaRexok/SEzrHXj19HY=", + "dev": true + }, + "punycode": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", + "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=", + "dev": true + }, + "q": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/q/-/q-1.5.1.tgz", + "integrity": "sha1-fjL3W0E4EpHQRhHxvxQQmsAGUdc=", + "dev": true + }, + "qs": { + "version": "6.5.2", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz", + "integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==", + "dev": true + }, + "query-string": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/query-string/-/query-string-4.3.4.tgz", + "integrity": "sha1-u7aTucqRXCMlFbIosaArYJBD2+s=", + "dev": true, + "requires": { + "object-assign": "4.1.1", + "strict-uri-encode": "1.1.0" + } + }, + "querystring": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/querystring/-/querystring-0.2.0.tgz", + "integrity": "sha1-sgmEkgO7Jd+CDadW50cAWHhSFiA=", + "dev": true + }, + "querystring-es3": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/querystring-es3/-/querystring-es3-0.2.1.tgz", + "integrity": "sha1-nsYfeQSYdXB9aUFFlv2Qek1xHnM=", + "dev": true + }, + "randomatic": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/randomatic/-/randomatic-3.0.0.tgz", + "integrity": "sha512-VdxFOIEY3mNO5PtSRkkle/hPJDHvQhK21oa73K4yAc9qmp6N429gAyF1gZMOTMeS0/AYzaV/2Trcef+NaIonSA==", + "dev": true, + "requires": { + "is-number": "4.0.0", + "kind-of": "6.0.2", + "math-random": "1.0.1" + }, + "dependencies": { + "is-number": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-4.0.0.tgz", + "integrity": "sha512-rSklcAIlf1OmFdyAqbnWTLVelsQ58uvZ66S/ZyawjWqIviTWCjg2PzVGw8WUA+nNuPTqb4wgA+NszrJ+08LlgQ==", + "dev": true + }, + "kind-of": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz", + "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==", + "dev": true + } + } + }, + "range-parser": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.0.tgz", + "integrity": "sha1-9JvmtIeJTdxA3MlKMi9hEJLgDV4=", + "dev": true + }, + "react": { + "version": "15.6.2", + "resolved": "https://registry.npmjs.org/react/-/react-15.6.2.tgz", + "integrity": "sha1-26BDSrQ5z+gvEI8PURZjkIF5qnI=", + "dev": true, + "requires": { + "create-react-class": "15.6.3", + "fbjs": "0.8.17", + "loose-envify": "1.3.1", + "object-assign": "4.1.1", + "prop-types": "15.6.1" + } + }, + "react-addons-css-transition-group": { + "version": "15.6.2", + "resolved": "https://registry.npmjs.org/react-addons-css-transition-group/-/react-addons-css-transition-group-15.6.2.tgz", + "integrity": "sha1-nkN2vPQLUhfRTsaFUwgc7ksIptY=", + "dev": true, + "requires": { + "react-transition-group": "1.2.1" + } + }, + "react-addons-test-utils": { + "version": "15.3.2", + "resolved": "https://registry.npmjs.org/react-addons-test-utils/-/react-addons-test-utils-15.3.2.tgz", + "integrity": "sha1-wJpE9YNCWkqcGzhETXpsPm8PQfY=", + "dev": true + }, + "react-dom": { + "version": "15.6.2", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-15.6.2.tgz", + "integrity": "sha1-Qc+t9pO3V/rycIRDodH9WgK+9zA=", + "dev": true, + "requires": { + "fbjs": "0.8.17", + "loose-envify": "1.3.1", + "object-assign": "4.1.1", + "prop-types": "15.6.1" + } + }, + "react-router": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/react-router/-/react-router-3.2.1.tgz", + "integrity": "sha512-SXkhC0nr3G0ltzVU07IN8jYl0bB6FsrDIqlLC9dK3SITXqyTJyM7yhXlUqs89w3Nqi5OkXsfRUeHX+P874HQrg==", + "dev": true, + "requires": { + "create-react-class": "15.6.3", + "history": "3.3.0", + "hoist-non-react-statics": "2.5.5", + "invariant": "2.2.4", + "loose-envify": "1.3.1", + "prop-types": "15.6.1", + "warning": "3.0.0" + }, + "dependencies": { + "history": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/history/-/history-3.3.0.tgz", + "integrity": "sha1-/O3M6PEpdTcVRdc1RhAzV5ptrpw=", + "dev": true, + "requires": { + "invariant": "2.2.4", + "loose-envify": "1.3.1", + "query-string": "4.3.4", + "warning": "3.0.0" + } + } + } + }, + "react-static-container": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/react-static-container/-/react-static-container-1.0.2.tgz", + "integrity": "sha512-rxlZtZk5t6Y3gqqpaZ1lxY3RqlQcBU5uGsSoZj/hbF3ZweDqPbFHDkczT4emAxeaw37OD96RAAoayFGFQZCdWg==", + "dev": true + }, + "react-transform-catch-errors": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/react-transform-catch-errors/-/react-transform-catch-errors-1.0.2.tgz", + "integrity": "sha1-G01KdulycYlvwW/jCGx5PsiKnus=", + "dev": true + }, + "react-transition-group": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/react-transition-group/-/react-transition-group-1.2.1.tgz", + "integrity": "sha512-CWaL3laCmgAFdxdKbhhps+c0HRGF4c+hdM4H23+FI1QBNUyx/AMeIJGWorehPNSaKnQNOAxL7PQmqMu78CDj3Q==", + "dev": true, + "requires": { + "chain-function": "1.0.0", + "dom-helpers": "3.3.1", + "loose-envify": "1.3.1", + "prop-types": "15.6.1", + "warning": "3.0.0" + } + }, + "readable-stream": { + "version": "2.3.6", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", + "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==", + "dev": true, + "requires": { + "core-util-is": "1.0.2", + "inherits": "2.0.3", + "isarray": "1.0.0", + "process-nextick-args": "2.0.0", + "safe-buffer": "5.1.2", + "string_decoder": "1.1.1", + "util-deprecate": "1.0.2" + } + }, + "readdirp": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-2.1.0.tgz", + "integrity": "sha1-TtCtBg3zBzMAxIRANz9y0cxkLXg=", + "dev": true, + "requires": { + "graceful-fs": "4.1.11", + "minimatch": "3.0.4", + "readable-stream": "2.3.6", + "set-immediate-shim": "1.0.1" + } + }, + "readline2": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/readline2/-/readline2-1.0.1.tgz", + "integrity": "sha1-QQWWCP/BVHV7cV2ZidGZ/783LjU=", + "dev": true, + "requires": { + "code-point-at": "1.1.0", + "is-fullwidth-code-point": "1.0.0", + "mute-stream": "0.0.5" + } + }, + "rechoir": { + "version": "0.6.2", + "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.6.2.tgz", + "integrity": "sha1-hSBLVNuoLVdC4oyWdW70OvUOM4Q=", + "dev": true, + "requires": { + "resolve": "1.8.1" + } + }, + "reduce-css-calc": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/reduce-css-calc/-/reduce-css-calc-1.3.0.tgz", + "integrity": "sha1-dHyRTgSWFKTJz7umKYca0dKSdxY=", + "dev": true, + "requires": { + "balanced-match": "0.4.2", + "math-expression-evaluator": "1.2.17", + "reduce-function-call": "1.0.2" + }, + "dependencies": { + "balanced-match": { + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-0.4.2.tgz", + "integrity": "sha1-yz8+PHMtwPAe5wtAPzAuYddwmDg=", + "dev": true + } + } + }, + "reduce-function-call": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/reduce-function-call/-/reduce-function-call-1.0.2.tgz", + "integrity": "sha1-WiAL+S4ON3UXUv5FsKszD9S2vpk=", + "dev": true, + "requires": { + "balanced-match": "0.4.2" + }, + "dependencies": { + "balanced-match": { + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-0.4.2.tgz", + "integrity": "sha1-yz8+PHMtwPAe5wtAPzAuYddwmDg=", + "dev": true + } + } + }, + "regenerate": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.0.tgz", + "integrity": "sha512-1G6jJVDWrt0rK99kBjvEtziZNCICAuvIPkSiUFIQxVP06RCVpq3dmDo2oi6ABpYaDYaTRr67BEhL8r1wgEZZKg==", + "dev": true + }, + "regenerator-runtime": { + "version": "0.11.1", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", + "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==", + "dev": true + }, + "regenerator-transform": { + "version": "0.10.1", + "resolved": "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.10.1.tgz", + "integrity": "sha512-PJepbvDbuK1xgIgnau7Y90cwaAmO/LCLMI2mPvaXq2heGMR3aWW5/BQvYrhJ8jgmQjXewXvBjzfqKcVOmhjZ6Q==", + "dev": true, + "requires": { + "babel-runtime": "6.26.0", + "babel-types": "6.26.0", + "private": "0.1.8" + } + }, + "regex-cache": { + "version": "0.4.4", + "resolved": "https://registry.npmjs.org/regex-cache/-/regex-cache-0.4.4.tgz", + "integrity": "sha512-nVIZwtCjkC9YgvWkpM55B5rBhBYRZhAaJbgcFYXXsHnbZ9UZI9nnVWYZpBlCqv9ho2eZryPnWrZGsOdPwVWXWQ==", + "dev": true, + "requires": { + "is-equal-shallow": "0.1.3" + } + }, + "regexpu-core": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-2.0.0.tgz", + "integrity": "sha1-SdA4g3uNz4v6W5pCE5k45uoq4kA=", + "dev": true, + "requires": { + "regenerate": "1.4.0", + "regjsgen": "0.2.0", + "regjsparser": "0.1.5" + } + }, + "regjsgen": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/regjsgen/-/regjsgen-0.2.0.tgz", + "integrity": "sha1-bAFq3qxVT3WCP+N6wFuS1aTtsfc=", + "dev": true + }, + "regjsparser": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.1.5.tgz", + "integrity": "sha1-fuj4Tcb6eS0/0K4ijSS9lJ6tIFw=", + "dev": true, + "requires": { + "jsesc": "0.5.0" + }, + "dependencies": { + "jsesc": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-0.5.0.tgz", + "integrity": "sha1-597mbjXW/Bb3EP6R1c9p9w8IkR0=", + "dev": true + } + } + }, + "remove-trailing-separator": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz", + "integrity": "sha1-wkvOKig62tW8P1jg1IJJuSN52O8=", + "dev": true + }, + "repeat-element": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.2.tgz", + "integrity": "sha1-7wiaF40Ug7quTZPrmLT55OEdmQo=", + "dev": true + }, + "repeat-string": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz", + "integrity": "sha1-jcrkcOHIirwtYA//Sndihtp15jc=", + "dev": true + }, + "repeating": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/repeating/-/repeating-2.0.1.tgz", + "integrity": "sha1-UhTFOpJtNVJwdSf7q0FdvAjQbdo=", + "dev": true, + "requires": { + "is-finite": "1.0.2" + } + }, + "require-uncached": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/require-uncached/-/require-uncached-1.0.3.tgz", + "integrity": "sha1-Tg1W1slmL9MeQwEcS5WqSZVUIdM=", + "dev": true, + "requires": { + "caller-path": "0.1.0", + "resolve-from": "1.0.1" + } + }, + "resolve": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.8.1.tgz", + "integrity": "sha512-AicPrAC7Qu1JxPCZ9ZgCZlY35QgFnNqc+0LtbRNxnVw4TXvjQ72wnuL9JQcEBgXkI9JM8MsT9kaQoHcpCRJOYA==", + "dev": true, + "requires": { + "path-parse": "1.0.5" + } + }, + "resolve-from": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-1.0.1.tgz", + "integrity": "sha1-Jsv+k10a7uq7Kbw/5a6wHpPUQiY=", + "dev": true + }, + "restore-cursor": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-1.0.1.tgz", + "integrity": "sha1-NGYfRohjJ/7SmRR5FSJS35LapUE=", + "dev": true, + "requires": { + "exit-hook": "1.1.1", + "onetime": "1.1.0" + } + }, + "right-align": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/right-align/-/right-align-0.1.3.tgz", + "integrity": "sha1-YTObci/mo1FWiSENJOFMlhSGE+8=", + "dev": true, + "requires": { + "align-text": "0.1.4" + } + }, + "rimraf": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.2.tgz", + "integrity": "sha512-lreewLK/BlghmxtfH36YYVg1i8IAce4TI7oao75I1g245+6BctqTVQiBP3YUJ9C6DQOXJmkYR9X9fCLtCOJc5w==", + "dev": true, + "requires": { + "glob": "7.1.2" + } + }, + "ripemd160": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/ripemd160/-/ripemd160-0.2.0.tgz", + "integrity": "sha1-K/GYveFnys+lHAqSjoS2i74XH84=", + "dev": true + }, + "run-async": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/run-async/-/run-async-0.1.0.tgz", + "integrity": "sha1-yK1KXhEGYeQCp9IbUw4AnyX444k=", + "dev": true, + "requires": { + "once": "1.4.0" + } + }, + "rx-lite": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/rx-lite/-/rx-lite-3.1.2.tgz", + "integrity": "sha1-Gc5QLKVyZl87ZHsQk5+X/RYV8QI=", + "dev": true + }, + "safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "dev": true + }, + "safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", + "dev": true + }, + "sax": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", + "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==", + "dev": true + }, + "set-immediate-shim": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/set-immediate-shim/-/set-immediate-shim-1.0.1.tgz", + "integrity": "sha1-SysbJ+uAip+NzEgaWOXlb1mfP2E=", + "dev": true + }, + "setimmediate": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz", + "integrity": "sha1-KQy7Iy4waULX1+qbg3Mqt4VvgoU=", + "dev": true + }, + "sha.js": { + "version": "2.2.6", + "resolved": "https://registry.npmjs.org/sha.js/-/sha.js-2.2.6.tgz", + "integrity": "sha1-F93t3F9yL7ZlAWWIlUYZd4ZzFbo=", + "dev": true + }, + "shelljs": { + "version": "0.7.8", + "resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.7.8.tgz", + "integrity": "sha1-3svPh0sNHl+3LhSxZKloMEjprLM=", + "dev": true, + "requires": { + "glob": "7.1.2", + "interpret": "1.1.0", + "rechoir": "0.6.2" + } + }, + "slash": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-1.0.0.tgz", + "integrity": "sha1-xB8vbDn8FtHNF61LXYlhFK5HDVU=", + "dev": true + }, + "slice-ansi": { + "version": "0.0.4", + "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-0.0.4.tgz", + "integrity": "sha1-7b+JA/ZvfOL46v1s7tZeJkyDGzU=", + "dev": true + }, + "sort-keys": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/sort-keys/-/sort-keys-1.1.2.tgz", + "integrity": "sha1-RBttTTRnmPG05J6JIK37oOVD+a0=", + "dev": true, + "requires": { + "is-plain-obj": "1.1.0" + } + }, + "source-list-map": { + "version": "0.1.8", + "resolved": "https://registry.npmjs.org/source-list-map/-/source-list-map-0.1.8.tgz", + "integrity": "sha1-xVCyq1Qn9rPyH1r+rYjE9Vh7IQY=", + "dev": true + }, + "source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", + "dev": true + }, + "source-map-support": { + "version": "0.4.18", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.4.18.tgz", + "integrity": "sha512-try0/JqxPLF9nOjvSta7tVondkP5dwgyLDjVoyMDlmjugT2lRZ1OfsrYTkCd2hkDnJTKRbO/Rl3orm8vlsUzbA==", + "dev": true, + "requires": { + "source-map": "0.5.7" + } + }, + "sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", + "dev": true + }, + "stream-browserify": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/stream-browserify/-/stream-browserify-2.0.1.tgz", + "integrity": "sha1-ZiZu5fm9uZQKTkUUyvtDu3Hlyds=", + "dev": true, + "requires": { + "inherits": "2.0.3", + "readable-stream": "2.3.6" + } + }, + "stream-http": { + "version": "2.8.3", + "resolved": "https://registry.npmjs.org/stream-http/-/stream-http-2.8.3.tgz", + "integrity": "sha512-+TSkfINHDo4J+ZobQLWiMouQYB+UVYFttRA94FpEzzJ7ZdqcL4uUUQ7WkdkI4DSozGmgBUE/a47L+38PenXhUw==", + "dev": true, + "requires": { + "builtin-status-codes": "3.0.0", + "inherits": "2.0.3", + "readable-stream": "2.3.6", + "to-arraybuffer": "1.0.1", + "xtend": "4.0.1" + } + }, + "strict-uri-encode": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/strict-uri-encode/-/strict-uri-encode-1.1.0.tgz", + "integrity": "sha1-J5siXfHVgrH1TmWt3UNS4Y+qBxM=", + "dev": true + }, + "string-width": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", + "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", + "dev": true, + "requires": { + "code-point-at": "1.1.0", + "is-fullwidth-code-point": "1.0.0", + "strip-ansi": "3.0.1" + } + }, + "string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dev": true, + "requires": { + "safe-buffer": "5.1.2" + } + }, + "strip-ansi": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", + "dev": true, + "requires": { + "ansi-regex": "2.1.1" + } + }, + "strip-bom": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", + "integrity": "sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=", + "dev": true + }, + "strip-json-comments": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", + "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", + "dev": true + }, + "style-loader": { + "version": "0.13.2", + "resolved": "https://registry.npmjs.org/style-loader/-/style-loader-0.13.2.tgz", + "integrity": "sha1-dFMzhM9pjHEEx5URULSXF63C87s=", + "dev": true, + "requires": { + "loader-utils": "1.1.0" + }, + "dependencies": { + "loader-utils": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-1.1.0.tgz", + "integrity": "sha1-yYrvSIvM7aL/teLeZG1qdUQp9c0=", + "dev": true, + "requires": { + "big.js": "3.2.0", + "emojis-list": "2.1.0", + "json5": "0.5.1" + } + } + } + }, + "supports-color": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", + "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", + "dev": true + }, + "svgo": { + "version": "0.7.2", + "resolved": "https://registry.npmjs.org/svgo/-/svgo-0.7.2.tgz", + "integrity": "sha1-n1dyQTlSE1xv779Ar+ak+qiLS7U=", + "dev": true, + "requires": { + "coa": "1.0.4", + "colors": "1.1.2", + "csso": "2.3.2", + "js-yaml": "3.7.0", + "mkdirp": "0.5.1", + "sax": "1.2.4", + "whet.extend": "0.9.9" + } + }, + "table": { + "version": "3.8.3", + "resolved": "https://registry.npmjs.org/table/-/table-3.8.3.tgz", + "integrity": "sha1-K7xULw/amGGnVdOUf+/Ys/UThV8=", + "dev": true, + "requires": { + "ajv": "4.11.8", + "ajv-keywords": "1.5.1", + "chalk": "1.1.3", + "lodash": "4.17.10", + "slice-ansi": "0.0.4", + "string-width": "2.1.1" + }, + "dependencies": { + "ansi-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", + "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", + "dev": true + }, + "is-fullwidth-code-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", + "dev": true + }, + "string-width": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", + "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", + "dev": true, + "requires": { + "is-fullwidth-code-point": "2.0.0", + "strip-ansi": "4.0.0" + } + }, + "strip-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", + "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", + "dev": true, + "requires": { + "ansi-regex": "3.0.0" + } + } + } + }, + "tapable": { + "version": "0.1.10", + "resolved": "https://registry.npmjs.org/tapable/-/tapable-0.1.10.tgz", + "integrity": "sha1-KcNXB8K3DlDQdIK10gLo7URtr9Q=", + "dev": true + }, + "text-table": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", + "integrity": "sha1-f17oI66AUgfACvLfSoTsP8+lcLQ=", + "dev": true + }, + "through": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", + "integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=", + "dev": true + }, + "time-stamp": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/time-stamp/-/time-stamp-2.0.0.tgz", + "integrity": "sha1-lcakRTDhW6jW9KPsuMOj+sRto1c=", + "dev": true + }, + "timers-browserify": { + "version": "2.0.10", + "resolved": "https://registry.npmjs.org/timers-browserify/-/timers-browserify-2.0.10.tgz", + "integrity": "sha512-YvC1SV1XdOUaL6gx5CoGroT3Gu49pK9+TZ38ErPldOWW4j49GI1HKs9DV+KGq/w6y+LZ72W1c8cKz2vzY+qpzg==", + "dev": true, + "requires": { + "setimmediate": "1.0.5" + } + }, + "to-arraybuffer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/to-arraybuffer/-/to-arraybuffer-1.0.1.tgz", + "integrity": "sha1-fSKbH8xjfkZsoIEYCDanqr/4P0M=", + "dev": true + }, + "to-fast-properties": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-1.0.3.tgz", + "integrity": "sha1-uDVx+k2MJbguIxsG46MFXeTKGkc=", + "dev": true + }, + "trim-right": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/trim-right/-/trim-right-1.0.1.tgz", + "integrity": "sha1-yy4SAwZ+DI3h9hQJS5/kVwTqYAM=", + "dev": true + }, + "tty-browserify": { + "version": "0.0.0", + "resolved": "https://registry.npmjs.org/tty-browserify/-/tty-browserify-0.0.0.tgz", + "integrity": "sha1-oVe6QC2iTpv5V/mqadUk7tQpAaY=", + "dev": true + }, + "type-check": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", + "integrity": "sha1-WITKtRLPHTVeP7eE8wgEsrUg23I=", + "dev": true, + "requires": { + "prelude-ls": "1.1.2" + } + }, + "typedarray": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz", + "integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=", + "dev": true + }, + "ua-parser-js": { + "version": "0.7.18", + "resolved": "https://registry.npmjs.org/ua-parser-js/-/ua-parser-js-0.7.18.tgz", + "integrity": "sha512-LtzwHlVHwFGTptfNSgezHp7WUlwiqb0gA9AALRbKaERfxwJoiX0A73QbTToxteIAuIaFshhgIZfqK8s7clqgnA==", + "dev": true + }, + "uglify-js": { + "version": "2.8.29", + "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-2.8.29.tgz", + "integrity": "sha1-KcVzMUgFe7Th913zW3qcty5qWd0=", + "dev": true, + "optional": true, + "requires": { + "source-map": "0.5.7", + "uglify-to-browserify": "1.0.2", + "yargs": "3.10.0" + } + }, + "uglify-to-browserify": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/uglify-to-browserify/-/uglify-to-browserify-1.0.2.tgz", + "integrity": "sha1-bgkk1r2mta/jSeOabWMoUKD4grc=", + "dev": true + }, + "underscore": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.6.0.tgz", + "integrity": "sha1-izixDKze9jM3uLJOT/htRa6lKag=", + "dev": true + }, + "uniq": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/uniq/-/uniq-1.0.1.tgz", + "integrity": "sha1-sxxa6CVIRKOoKBVBzisEuGWnNP8=", + "dev": true + }, + "uniqs": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/uniqs/-/uniqs-2.0.0.tgz", + "integrity": "sha1-/+3ks2slKQaW5uFl1KWe25mOawI=", + "dev": true + }, + "url": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/url/-/url-0.11.0.tgz", + "integrity": "sha1-ODjpfPxgUh63PFJajlW/3Z4uKPE=", + "dev": true, + "requires": { + "punycode": "1.3.2", + "querystring": "0.2.0" + }, + "dependencies": { + "punycode": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.3.2.tgz", + "integrity": "sha1-llOgNvt8HuQjQvIyXM7v6jkmxI0=", + "dev": true + } + } + }, + "user-home": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/user-home/-/user-home-1.1.1.tgz", + "integrity": "sha1-K1viOjK2Onyd640PKNSFcko98ZA=", + "dev": true + }, + "util": { + "version": "0.10.4", + "resolved": "https://registry.npmjs.org/util/-/util-0.10.4.tgz", + "integrity": "sha512-0Pm9hTQ3se5ll1XihRic3FDIku70C+iHUdT/W926rSgHV5QgXsYbKZN8MSC3tJtSkhuROzvsQjAaFENRXr+19A==", + "dev": true, + "requires": { + "inherits": "2.0.3" + } + }, + "util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", + "dev": true + }, + "v8flags": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/v8flags/-/v8flags-2.1.1.tgz", + "integrity": "sha1-qrGh+jDUX4jdMhFIh1rALAtV5bQ=", + "dev": true, + "requires": { + "user-home": "1.1.1" + } + }, + "vendors": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/vendors/-/vendors-1.0.2.tgz", + "integrity": "sha512-w/hry/368nO21AN9QljsaIhb9ZiZtZARoVH5f3CsFbawdLdayCgKRPup7CggujvySMxx0I91NOyxdVENohprLQ==", + "dev": true + }, + "vm-browserify": { + "version": "0.0.4", + "resolved": "https://registry.npmjs.org/vm-browserify/-/vm-browserify-0.0.4.tgz", + "integrity": "sha1-XX6kW7755Kb/ZflUOOCofDV9WnM=", + "dev": true, + "requires": { + "indexof": "0.0.1" + } + }, + "warning": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/warning/-/warning-3.0.0.tgz", + "integrity": "sha1-MuU3fLVy3kqwR1O9+IIcAe1gW3w=", + "dev": true, + "requires": { + "loose-envify": "1.3.1" + } + }, + "watchpack": { + "version": "0.2.9", + "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-0.2.9.tgz", + "integrity": "sha1-Yuqkq15bo1/fwBgnVibjwPXj+ws=", + "dev": true, + "requires": { + "async": "0.9.2", + "chokidar": "1.7.0", + "graceful-fs": "4.1.11" + }, + "dependencies": { + "async": { + "version": "0.9.2", + "resolved": "https://registry.npmjs.org/async/-/async-0.9.2.tgz", + "integrity": "sha1-rqdNXmHB+JlhO/ZL2mbUx48v0X0=", + "dev": true + } + } + }, + "webpack": { + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-1.15.0.tgz", + "integrity": "sha1-T/MfU9sDM55VFkqdRo7gMklo/pg=", + "dev": true, + "requires": { + "acorn": "3.3.0", + "async": "1.5.2", + "clone": "1.0.4", + "enhanced-resolve": "0.9.1", + "interpret": "0.6.6", + "loader-utils": "0.2.17", + "memory-fs": "0.3.0", + "mkdirp": "0.5.1", + "node-libs-browser": "0.7.0", + "optimist": "0.6.1", + "supports-color": "3.2.3", + "tapable": "0.1.10", + "uglify-js": "2.7.5", + "watchpack": "0.2.9", + "webpack-core": "0.6.9" + }, + "dependencies": { + "acorn": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-3.3.0.tgz", + "integrity": "sha1-ReN/s56No/JbruP/U2niu18iAXo=", + "dev": true + }, + "interpret": { + "version": "0.6.6", + "resolved": "https://registry.npmjs.org/interpret/-/interpret-0.6.6.tgz", + "integrity": "sha1-/s16GOfOXKar+5U+H4YhOknxYls=", + "dev": true + }, + "supports-color": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-3.2.3.tgz", + "integrity": "sha1-ZawFBLOVQXHYpklGsq48u4pfVPY=", + "dev": true, + "requires": { + "has-flag": "1.0.0" + } + }, + "uglify-js": { + "version": "2.7.5", + "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-2.7.5.tgz", + "integrity": "sha1-RhLAx7qu4rp8SH3kkErhIgefLKg=", + "dev": true, + "requires": { + "async": "0.2.10", + "source-map": "0.5.7", + "uglify-to-browserify": "1.0.2", + "yargs": "3.10.0" + }, + "dependencies": { + "async": { + "version": "0.2.10", + "resolved": "https://registry.npmjs.org/async/-/async-0.2.10.tgz", + "integrity": "sha1-trvgsGdLnXGXCMo43owjfLUmw9E=", + "dev": true + } + } + } + } + }, + "webpack-core": { + "version": "0.6.9", + "resolved": "https://registry.npmjs.org/webpack-core/-/webpack-core-0.6.9.tgz", + "integrity": "sha1-/FcViMhVjad76e+23r3Fo7FyvcI=", + "dev": true, + "requires": { + "source-list-map": "0.1.8", + "source-map": "0.4.4" + }, + "dependencies": { + "source-map": { + "version": "0.4.4", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.4.4.tgz", + "integrity": "sha1-66T12pwNyZneaAMti092FzZSA2s=", + "dev": true, + "requires": { + "amdefine": "1.0.1" + } + } + } + }, + "webpack-dev-middleware": { + "version": "1.12.2", + "resolved": "https://registry.npmjs.org/webpack-dev-middleware/-/webpack-dev-middleware-1.12.2.tgz", + "integrity": "sha512-FCrqPy1yy/sN6U/SaEZcHKRXGlqU0DUaEBL45jkUYoB8foVb6wCnbIJ1HKIx+qUFTW+3JpVcCJCxZ8VATL4e+A==", + "dev": true, + "requires": { + "memory-fs": "0.4.1", + "mime": "1.6.0", + "path-is-absolute": "1.0.1", + "range-parser": "1.2.0", + "time-stamp": "2.0.0" + }, + "dependencies": { + "memory-fs": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/memory-fs/-/memory-fs-0.4.1.tgz", + "integrity": "sha1-OpoguEYlI+RHz7x+i7gO1me/xVI=", + "dev": true, + "requires": { + "errno": "0.1.7", + "readable-stream": "2.3.6" + } + } + } + }, + "whatwg-fetch": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/whatwg-fetch/-/whatwg-fetch-2.0.4.tgz", + "integrity": "sha512-dcQ1GWpOD/eEQ97k66aiEVpNnapVj90/+R+SXTPYGHpYBBypfKJEQjLrvMZ7YXbKm21gXd4NcuxUTjiv1YtLng==", + "dev": true + }, + "whet.extend": { + "version": "0.9.9", + "resolved": "https://registry.npmjs.org/whet.extend/-/whet.extend-0.9.9.tgz", + "integrity": "sha1-+HfVv2SMl+WqVC+twW1qJZucEaE=", + "dev": true + }, + "which": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", + "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", + "dev": true, + "requires": { + "isexe": "2.0.0" + } + }, + "window-size": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/window-size/-/window-size-0.1.0.tgz", + "integrity": "sha1-VDjNLqk7IC76Ohn+iIeu58lPnJ0=", + "dev": true + }, + "wordwrap": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz", + "integrity": "sha1-J1hIEIkUVqQXHI0CJkQa3pDLyus=", + "dev": true + }, + "wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", + "dev": true + }, + "write": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/write/-/write-0.2.1.tgz", + "integrity": "sha1-X8A4KOJkzqP+kUVUdvejxWbLB1c=", + "dev": true, + "requires": { + "mkdirp": "0.5.1" + } + }, + "xtend": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.1.tgz", + "integrity": "sha1-pcbVMr5lbiPbgg77lDofBJmNY68=" + }, + "yargs": { + "version": "3.10.0", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-3.10.0.tgz", + "integrity": "sha1-9+572FfdfB0tOMDnTvvWgdFDH9E=", + "dev": true, + "requires": { + "camelcase": "1.2.1", + "cliui": "2.1.0", + "decamelize": "1.2.0", + "window-size": "0.1.0" + } + } + } +} diff --git a/package.json b/package.json index 320564c..05c0381 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-stormpath", - "version": "3.0.0", + "version": "3.1.0", "description": "Stormpath SDK for React.", "author": "Stormpath, Inc.", "license": "Apache-2.0", diff --git a/src/components/LoginForm.js b/src/components/LoginForm.js index 0875692..0cc7ad7 100644 --- a/src/components/LoginForm.js +++ b/src/components/LoginForm.js @@ -150,6 +150,7 @@ export default class LoginForm extends React.Component { fields: { username: '', password: '', + brand: 'scooponexperience' }, errorMessage: null, isFormProcessing: false @@ -188,7 +189,8 @@ export default class LoginForm extends React.Component { UserActions.login({ login: data.username, - password: data.password + password: data.password, + brand: data.brand }, (err, result) => { if (err) { if (onSubmitError) { diff --git a/umd/stormpath-sdk-react.js b/umd/stormpath-sdk-react.js index 1283c70..7268d2e 100644 --- a/umd/stormpath-sdk-react.js +++ b/umd/stormpath-sdk-react.js @@ -52,7 +52,7 @@ return /******/ (function(modules) { // webpackBootstrap /************************************************************************/ /******/ ([ /* 0 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -83,75 +83,75 @@ return /******/ (function(modules) { // webpackBootstrap var _UserConstants2 = _interopRequireDefault(_UserConstants); - var _HomeRoute2 = __webpack_require__(95); + var _HomeRoute2 = __webpack_require__(105); var _HomeRoute3 = _interopRequireDefault(_HomeRoute2); - var _LoginRoute2 = __webpack_require__(96); + var _LoginRoute2 = __webpack_require__(106); var _LoginRoute3 = _interopRequireDefault(_LoginRoute2); - var _LogoutRoute2 = __webpack_require__(97); + var _LogoutRoute2 = __webpack_require__(107); var _LogoutRoute3 = _interopRequireDefault(_LogoutRoute2); - var _AuthenticatedRoute2 = __webpack_require__(98); + var _AuthenticatedRoute2 = __webpack_require__(108); var _AuthenticatedRoute3 = _interopRequireDefault(_AuthenticatedRoute2); - var _Authenticated2 = __webpack_require__(99); + var _Authenticated2 = __webpack_require__(109); var _Authenticated3 = _interopRequireDefault(_Authenticated2); - var _NotAuthenticated2 = __webpack_require__(100); + var _NotAuthenticated2 = __webpack_require__(110); var _NotAuthenticated3 = _interopRequireDefault(_NotAuthenticated2); - var _LoginLink2 = __webpack_require__(101); + var _LoginLink2 = __webpack_require__(111); var _LoginLink3 = _interopRequireDefault(_LoginLink2); - var _LogoutLink2 = __webpack_require__(102); + var _LogoutLink2 = __webpack_require__(112); var _LogoutLink3 = _interopRequireDefault(_LogoutLink2); - var _LoginForm2 = __webpack_require__(103); + var _LoginForm2 = __webpack_require__(113); var _LoginForm3 = _interopRequireDefault(_LoginForm2); - var _UserProfileForm2 = __webpack_require__(108); + var _UserProfileForm2 = __webpack_require__(118); var _UserProfileForm3 = _interopRequireDefault(_UserProfileForm2); - var _RegistrationForm2 = __webpack_require__(109); + var _RegistrationForm2 = __webpack_require__(119); var _RegistrationForm3 = _interopRequireDefault(_RegistrationForm2); - var _ResetPasswordForm2 = __webpack_require__(110); + var _ResetPasswordForm2 = __webpack_require__(120); var _ResetPasswordForm3 = _interopRequireDefault(_ResetPasswordForm2); - var _ChangePasswordForm2 = __webpack_require__(111); + var _ChangePasswordForm2 = __webpack_require__(121); var _ChangePasswordForm3 = _interopRequireDefault(_ChangePasswordForm2); - var _VerifyEmailView2 = __webpack_require__(112); + var _VerifyEmailView2 = __webpack_require__(122); var _VerifyEmailView3 = _interopRequireDefault(_VerifyEmailView2); - var _SocialLoginLink2 = __webpack_require__(106); + var _SocialLoginLink2 = __webpack_require__(116); var _SocialLoginLink3 = _interopRequireDefault(_SocialLoginLink2); - var _SocialLoginButton2 = __webpack_require__(105); + var _SocialLoginButton2 = __webpack_require__(115); var _SocialLoginButton3 = _interopRequireDefault(_SocialLoginButton2); - var _UserField2 = __webpack_require__(113); + var _UserField2 = __webpack_require__(123); var _UserField3 = _interopRequireDefault(_UserField2); - var _UserComponent2 = __webpack_require__(114); + var _UserComponent2 = __webpack_require__(124); var _UserComponent3 = _interopRequireDefault(_UserComponent2); @@ -194,9 +194,9 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = _app2.default; -/***/ }, +/***/ }), /* 1 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -370,9 +370,9 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = new App(); -/***/ }, +/***/ }), /* 2 */ -/***/ function(module, exports) { +/***/ (function(module, exports) { // Copyright Joyent, Inc. and other Node contributors. // @@ -678,9 +678,9 @@ return /******/ (function(modules) { // webpackBootstrap } -/***/ }, +/***/ }), /* 3 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -697,9 +697,9 @@ return /******/ (function(modules) { // webpackBootstrap exports.LocalStorage = _LocalStorage3.default; -/***/ }, +/***/ }), /* 4 */ -/***/ function(module, exports) { +/***/ (function(module, exports) { 'use strict'; @@ -752,9 +752,9 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = LocalStorage; -/***/ }, +/***/ }), /* 5 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -786,9 +786,9 @@ return /******/ (function(modules) { // webpackBootstrap exports.UserService = _UserService3.default; exports.ClientApiUserService = _ClientApiUserService3.default; -/***/ }, +/***/ }), /* 6 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -930,7 +930,7 @@ return /******/ (function(modules) { // webpackBootstrap // Only set the X-Stormpath-Agent header if we're on the same domain as the requested URI. // This because we want to avoid CORS requests that require you to have to whitelist the X-Stormpath-Agent header. if (this.forceAgentHeader || _utils2.default.isRelativeUri(uri) || _utils2.default.isSameHost(uri, window.location.href)) { - headers['X-Stormpath-Agent'] = 'stormpath-sdk-react/' + ("3.0.0") + ' react/' + _react2.default.version; + headers['X-Stormpath-Agent'] = 'stormpath-sdk-react/' + ("3.1.0") + ' react/' + _react2.default.version; } makeHttpRequest(method, uri, body, headers, function (err, result) { @@ -962,15 +962,15 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = BaseService; -/***/ }, +/***/ }), /* 7 */ -/***/ function(module, exports) { +/***/ (function(module, exports) { module.exports = __WEBPACK_EXTERNAL_MODULE_7__; -/***/ }, +/***/ }), /* 8 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -1611,9 +1611,9 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = new Utils(); -/***/ }, +/***/ }), /* 9 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { // Copyright Joyent, Inc. and other Node contributors. // @@ -2349,9 +2349,9 @@ return /******/ (function(modules) { // webpackBootstrap }; -/***/ }, +/***/ }), /* 10 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { var __WEBPACK_AMD_DEFINE_RESULT__;/* WEBPACK VAR INJECTION */(function(module, global) {/*! https://mths.be/punycode v1.3.2 by @mathias */ ;(function(root) { @@ -2884,9 +2884,9 @@ return /******/ (function(modules) { // webpackBootstrap /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(11)(module), (function() { return this; }()))) -/***/ }, +/***/ }), /* 11 */ -/***/ function(module, exports) { +/***/ (function(module, exports) { module.exports = function(module) { if(!module.webpackPolyfill) { @@ -2900,9 +2900,9 @@ return /******/ (function(modules) { // webpackBootstrap } -/***/ }, +/***/ }), /* 12 */ -/***/ function(module, exports) { +/***/ (function(module, exports) { 'use strict'; @@ -2922,9 +2922,9 @@ return /******/ (function(modules) { // webpackBootstrap }; -/***/ }, +/***/ }), /* 13 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -2932,9 +2932,9 @@ return /******/ (function(modules) { // webpackBootstrap exports.encode = exports.stringify = __webpack_require__(15); -/***/ }, +/***/ }), /* 14 */ -/***/ function(module, exports) { +/***/ (function(module, exports) { // Copyright Joyent, Inc. and other Node contributors. // @@ -3018,9 +3018,9 @@ return /******/ (function(modules) { // webpackBootstrap }; -/***/ }, +/***/ }), /* 15 */ -/***/ function(module, exports) { +/***/ (function(module, exports) { // Copyright Joyent, Inc. and other Node contributors. // @@ -3088,9 +3088,9 @@ return /******/ (function(modules) { // webpackBootstrap }; -/***/ }, +/***/ }), /* 16 */ -/***/ function(module, exports) { +/***/ (function(module, exports) { "use strict"; @@ -3133,9 +3133,9 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = RequestPool; -/***/ }, +/***/ }), /* 17 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -3260,9 +3260,9 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = UserService; -/***/ }, +/***/ }), /* 18 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -3481,9 +3481,9 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = ClientApiUserService; -/***/ }, +/***/ }), /* 19 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -3546,9 +3546,9 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = new TokenActions(); -/***/ }, +/***/ }), /* 20 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -3629,9 +3629,9 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = new Context(); -/***/ }, +/***/ }), /* 21 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -3712,9 +3712,9 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = SessionStore; -/***/ }, +/***/ }), /* 22 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -3763,9 +3763,9 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = BaseStore; -/***/ }, +/***/ }), /* 23 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -3784,9 +3784,9 @@ return /******/ (function(modules) { // webpackBootstrap TOKEN_REFRESH: null }); -/***/ }, +/***/ }), /* 24 */ -/***/ function(module, exports) { +/***/ (function(module, exports) { /** * Copyright 2013-2014 Facebook, Inc. @@ -3843,9 +3843,9 @@ return /******/ (function(modules) { // webpackBootstrap module.exports = keyMirror; -/***/ }, +/***/ }), /* 25 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -3867,9 +3867,9 @@ return /******/ (function(modules) { // webpackBootstrap exports.UserConstants = _UserConstants3.default; exports.TokenConstants = _TokenConstants3.default; -/***/ }, +/***/ }), /* 26 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -3894,9 +3894,9 @@ return /******/ (function(modules) { // webpackBootstrap USER_LOGOUT: null }); -/***/ }, +/***/ }), /* 27 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -3923,9 +3923,9 @@ return /******/ (function(modules) { // webpackBootstrap exports.SessionStore = _SessionStore3.default; exports.TokenStore = _TokenStore3.default; -/***/ }, +/***/ }), /* 28 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -4117,9 +4117,9 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = UserStore; -/***/ }, +/***/ }), /* 29 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -4235,9 +4235,9 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = new UserActions(); -/***/ }, +/***/ }), /* 30 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -4338,9 +4338,9 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = TokenStore; -/***/ }, +/***/ }), /* 31 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -4362,9 +4362,9 @@ return /******/ (function(modules) { // webpackBootstrap exports.FluxDispatcher = _FluxDispatcher3.default; exports.ReduxDispatcher = _ReduxDispatcher3.default; -/***/ }, +/***/ }), /* 32 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -4415,12 +4415,12 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = FluxDispatcher; -/***/ }, +/***/ }), /* 33 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { /** - * Copyright (c) 2014-2015, Facebook, Inc. + * Copyright (c) 2014-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the @@ -4431,12 +4431,12 @@ return /******/ (function(modules) { // webpackBootstrap module.exports.Dispatcher = __webpack_require__(34); -/***/ }, +/***/ }), /* 34 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {/** - * Copyright (c) 2014-2015, Facebook, Inc. + * Copyright (c) 2014-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the @@ -4668,9 +4668,9 @@ return /******/ (function(modules) { // webpackBootstrap module.exports = Dispatcher; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, +/***/ }), /* 35 */ -/***/ function(module, exports) { +/***/ (function(module, exports) { // shim for using process in browser var process = module.exports = {}; @@ -4842,6 +4842,10 @@ return /******/ (function(modules) { // webpackBootstrap process.removeListener = noop; process.removeAllListeners = noop; process.emit = noop; + process.prependListener = noop; + process.prependOnceListener = noop; + + process.listeners = function (name) { return [] } process.binding = function (name) { throw new Error('process.binding is not supported'); @@ -4854,17 +4858,15 @@ return /******/ (function(modules) { // webpackBootstrap process.umask = function() { return 0; }; -/***/ }, +/***/ }), /* 36 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {/** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ @@ -4915,9 +4917,9 @@ return /******/ (function(modules) { // webpackBootstrap module.exports = invariant; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, +/***/ }), /* 37 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -4957,9 +4959,9 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = ReduxDispatcher; -/***/ }, +/***/ }), /* 38 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -4988,19 +4990,19 @@ return /******/ (function(modules) { // webpackBootstrap var _context2 = _interopRequireDefault(_context); - var _HomeRoute = __webpack_require__(95); + var _HomeRoute = __webpack_require__(105); var _HomeRoute2 = _interopRequireDefault(_HomeRoute); - var _LoginRoute = __webpack_require__(96); + var _LoginRoute = __webpack_require__(106); var _LoginRoute2 = _interopRequireDefault(_LoginRoute); - var _LogoutRoute = __webpack_require__(97); + var _LogoutRoute = __webpack_require__(107); var _LogoutRoute2 = _interopRequireDefault(_LogoutRoute); - var _AuthenticatedRoute = __webpack_require__(98); + var _AuthenticatedRoute = __webpack_require__(108); var _AuthenticatedRoute2 = _interopRequireDefault(_AuthenticatedRoute); @@ -5145,9 +5147,9 @@ return /******/ (function(modules) { // webpackBootstrap }, _class.defaultProps = _reactRouter.Router.defaultProps, _temp); exports.default = Router; -/***/ }, +/***/ }), /* 39 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -5178,7 +5180,7 @@ return /******/ (function(modules) { // webpackBootstrap } }); - var _PatternUtils = __webpack_require__(42); + var _PatternUtils = __webpack_require__(50); Object.defineProperty(exports, 'formatPattern', { enumerable: true, @@ -5187,63 +5189,63 @@ return /******/ (function(modules) { // webpackBootstrap } }); - var _Router2 = __webpack_require__(44); + var _Router2 = __webpack_require__(52); var _Router3 = _interopRequireDefault(_Router2); - var _Link2 = __webpack_require__(60); + var _Link2 = __webpack_require__(71); var _Link3 = _interopRequireDefault(_Link2); - var _IndexLink2 = __webpack_require__(61); + var _IndexLink2 = __webpack_require__(72); var _IndexLink3 = _interopRequireDefault(_IndexLink2); - var _withRouter2 = __webpack_require__(62); + var _withRouter2 = __webpack_require__(73); var _withRouter3 = _interopRequireDefault(_withRouter2); - var _IndexRedirect2 = __webpack_require__(64); + var _IndexRedirect2 = __webpack_require__(75); var _IndexRedirect3 = _interopRequireDefault(_IndexRedirect2); - var _IndexRoute2 = __webpack_require__(66); + var _IndexRoute2 = __webpack_require__(77); var _IndexRoute3 = _interopRequireDefault(_IndexRoute2); - var _Redirect2 = __webpack_require__(65); + var _Redirect2 = __webpack_require__(76); var _Redirect3 = _interopRequireDefault(_Redirect2); - var _Route2 = __webpack_require__(67); + var _Route2 = __webpack_require__(78); var _Route3 = _interopRequireDefault(_Route2); - var _RouterContext2 = __webpack_require__(56); + var _RouterContext2 = __webpack_require__(67); var _RouterContext3 = _interopRequireDefault(_RouterContext2); - var _match2 = __webpack_require__(68); + var _match2 = __webpack_require__(79); var _match3 = _interopRequireDefault(_match2); - var _useRouterHistory2 = __webpack_require__(82); + var _useRouterHistory2 = __webpack_require__(92); var _useRouterHistory3 = _interopRequireDefault(_useRouterHistory2); - var _applyRouterMiddleware2 = __webpack_require__(83); + var _applyRouterMiddleware2 = __webpack_require__(93); var _applyRouterMiddleware3 = _interopRequireDefault(_applyRouterMiddleware2); - var _browserHistory2 = __webpack_require__(84); + var _browserHistory2 = __webpack_require__(94); var _browserHistory3 = _interopRequireDefault(_browserHistory2); - var _hashHistory2 = __webpack_require__(92); + var _hashHistory2 = __webpack_require__(102); var _hashHistory3 = _interopRequireDefault(_hashHistory2); - var _createMemoryHistory2 = __webpack_require__(70); + var _createMemoryHistory2 = __webpack_require__(81); var _createMemoryHistory3 = _interopRequireDefault(_createMemoryHistory2); @@ -5275,9 +5277,9 @@ return /******/ (function(modules) { // webpackBootstrap exports.hashHistory = _hashHistory3.default; exports.createMemoryHistory = _createMemoryHistory3.default; -/***/ }, +/***/ }), /* 40 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -5373,531 +5375,2453 @@ return /******/ (function(modules) { // webpackBootstrap return routes; } -/***/ }, +/***/ }), /* 41 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { 'use strict'; exports.__esModule = true; exports.locationShape = exports.routerShape = undefined; - var _react = __webpack_require__(7); + var _propTypes = __webpack_require__(42); - var func = _react.PropTypes.func, - object = _react.PropTypes.object, - shape = _react.PropTypes.shape, - string = _react.PropTypes.string; - var routerShape = exports.routerShape = shape({ - push: func.isRequired, - replace: func.isRequired, - go: func.isRequired, - goBack: func.isRequired, - goForward: func.isRequired, - setRouteLeaveHook: func.isRequired, - isActive: func.isRequired + var routerShape = exports.routerShape = (0, _propTypes.shape)({ + push: _propTypes.func.isRequired, + replace: _propTypes.func.isRequired, + go: _propTypes.func.isRequired, + goBack: _propTypes.func.isRequired, + goForward: _propTypes.func.isRequired, + setRouteLeaveHook: _propTypes.func.isRequired, + isActive: _propTypes.func.isRequired }); - var locationShape = exports.locationShape = shape({ - pathname: string.isRequired, - search: string.isRequired, - state: object, - action: string.isRequired, - key: string + var locationShape = exports.locationShape = (0, _propTypes.shape)({ + pathname: _propTypes.string.isRequired, + search: _propTypes.string.isRequired, + state: _propTypes.object, + action: _propTypes.string.isRequired, + key: _propTypes.string }); -/***/ }, +/***/ }), /* 42 */ -/***/ function(module, exports, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { - /* WEBPACK VAR INJECTION */(function(process) {'use strict'; + /* WEBPACK VAR INJECTION */(function(process) {/** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ - exports.__esModule = true; - exports.compilePattern = compilePattern; - exports.matchPattern = matchPattern; - exports.getParamNames = getParamNames; - exports.getParams = getParams; - exports.formatPattern = formatPattern; + if (process.env.NODE_ENV !== 'production') { + var REACT_ELEMENT_TYPE = (typeof Symbol === 'function' && + Symbol.for && + Symbol.for('react.element')) || + 0xeac7; + + var isValidElement = function(object) { + return typeof object === 'object' && + object !== null && + object.$$typeof === REACT_ELEMENT_TYPE; + }; - var _invariant = __webpack_require__(43); + // By explicitly using `prop-types` you are opting into new development behavior. + // http://fb.me/prop-types-in-prod + var throwOnDirectAccess = true; + module.exports = __webpack_require__(43)(isValidElement, throwOnDirectAccess); + } else { + // By explicitly using `prop-types` you are opting into new production behavior. + // http://fb.me/prop-types-in-prod + module.exports = __webpack_require__(49)(); + } - var _invariant2 = _interopRequireDefault(_invariant); + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } +/***/ }), +/* 43 */ +/***/ (function(module, exports, __webpack_require__) { - function escapeRegExp(string) { - return string.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); - } + /* WEBPACK VAR INJECTION */(function(process) {/** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ - function _compilePattern(pattern) { - var regexpSource = ''; - var paramNames = []; - var tokens = []; + 'use strict'; - var match = void 0, - lastIndex = 0, - matcher = /:([a-zA-Z_$][a-zA-Z0-9_$]*)|\*\*|\*|\(|\)|\\\(|\\\)/g; - while (match = matcher.exec(pattern)) { - if (match.index !== lastIndex) { - tokens.push(pattern.slice(lastIndex, match.index)); - regexpSource += escapeRegExp(pattern.slice(lastIndex, match.index)); - } + var emptyFunction = __webpack_require__(44); + var invariant = __webpack_require__(36); + var warning = __webpack_require__(45); + var assign = __webpack_require__(46); - if (match[1]) { - regexpSource += '([^/]+)'; - paramNames.push(match[1]); - } else if (match[0] === '**') { - regexpSource += '(.*)'; - paramNames.push('splat'); - } else if (match[0] === '*') { - regexpSource += '(.*?)'; - paramNames.push('splat'); - } else if (match[0] === '(') { - regexpSource += '(?:'; - } else if (match[0] === ')') { - regexpSource += ')?'; - } else if (match[0] === '\\(') { - regexpSource += '\\('; - } else if (match[0] === '\\)') { - regexpSource += '\\)'; - } + var ReactPropTypesSecret = __webpack_require__(47); + var checkPropTypes = __webpack_require__(48); - tokens.push(match[0]); + module.exports = function(isValidElement, throwOnDirectAccess) { + /* global Symbol */ + var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator; + var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec. - lastIndex = matcher.lastIndex; + /** + * Returns the iterator method function contained on the iterable object. + * + * Be sure to invoke the function with the iterable as context: + * + * var iteratorFn = getIteratorFn(myIterable); + * if (iteratorFn) { + * var iterator = iteratorFn.call(myIterable); + * ... + * } + * + * @param {?object} maybeIterable + * @return {?function} + */ + function getIteratorFn(maybeIterable) { + var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]); + if (typeof iteratorFn === 'function') { + return iteratorFn; + } } - if (lastIndex !== pattern.length) { - tokens.push(pattern.slice(lastIndex, pattern.length)); - regexpSource += escapeRegExp(pattern.slice(lastIndex, pattern.length)); - } + /** + * Collection of methods that allow declaration and validation of props that are + * supplied to React components. Example usage: + * + * var Props = require('ReactPropTypes'); + * var MyArticle = React.createClass({ + * propTypes: { + * // An optional string prop named "description". + * description: Props.string, + * + * // A required enum prop named "category". + * category: Props.oneOf(['News','Photos']).isRequired, + * + * // A prop named "dialog" that requires an instance of Dialog. + * dialog: Props.instanceOf(Dialog).isRequired + * }, + * render: function() { ... } + * }); + * + * A more formal specification of how these methods are used: + * + * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...) + * decl := ReactPropTypes.{type}(.isRequired)? + * + * Each and every declaration produces a function with the same signature. This + * allows the creation of custom validation functions. For example: + * + * var MyLink = React.createClass({ + * propTypes: { + * // An optional string or URI prop named "href". + * href: function(props, propName, componentName) { + * var propValue = props[propName]; + * if (propValue != null && typeof propValue !== 'string' && + * !(propValue instanceof URI)) { + * return new Error( + * 'Expected a string or an URI for ' + propName + ' in ' + + * componentName + * ); + * } + * } + * }, + * render: function() {...} + * }); + * + * @internal + */ - return { - pattern: pattern, - regexpSource: regexpSource, - paramNames: paramNames, - tokens: tokens + var ANONYMOUS = '<>'; + + // Important! + // Keep this list in sync with production version in `./factoryWithThrowingShims.js`. + var ReactPropTypes = { + array: createPrimitiveTypeChecker('array'), + bool: createPrimitiveTypeChecker('boolean'), + func: createPrimitiveTypeChecker('function'), + number: createPrimitiveTypeChecker('number'), + object: createPrimitiveTypeChecker('object'), + string: createPrimitiveTypeChecker('string'), + symbol: createPrimitiveTypeChecker('symbol'), + + any: createAnyTypeChecker(), + arrayOf: createArrayOfTypeChecker, + element: createElementTypeChecker(), + instanceOf: createInstanceTypeChecker, + node: createNodeChecker(), + objectOf: createObjectOfTypeChecker, + oneOf: createEnumTypeChecker, + oneOfType: createUnionTypeChecker, + shape: createShapeTypeChecker, + exact: createStrictShapeTypeChecker, }; - } - var CompiledPatternsCache = Object.create(null); + /** + * inlined Object.is polyfill to avoid requiring consumers ship their own + * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is + */ + /*eslint-disable no-self-compare*/ + function is(x, y) { + // SameValue algorithm + if (x === y) { + // Steps 1-5, 7-10 + // Steps 6.b-6.e: +0 != -0 + return x !== 0 || 1 / x === 1 / y; + } else { + // Step 6.a: NaN == NaN + return x !== x && y !== y; + } + } + /*eslint-enable no-self-compare*/ - function compilePattern(pattern) { - if (!CompiledPatternsCache[pattern]) CompiledPatternsCache[pattern] = _compilePattern(pattern); + /** + * We use an Error-like object for backward compatibility as people may call + * PropTypes directly and inspect their output. However, we don't use real + * Errors anymore. We don't inspect their stack anyway, and creating them + * is prohibitively expensive if they are created too often, such as what + * happens in oneOfType() for any type before the one that matched. + */ + function PropTypeError(message) { + this.message = message; + this.stack = ''; + } + // Make `instanceof Error` still work for returned errors. + PropTypeError.prototype = Error.prototype; + + function createChainableTypeChecker(validate) { + if (process.env.NODE_ENV !== 'production') { + var manualPropTypeCallCache = {}; + var manualPropTypeWarningCount = 0; + } + function checkType(isRequired, props, propName, componentName, location, propFullName, secret) { + componentName = componentName || ANONYMOUS; + propFullName = propFullName || propName; + + if (secret !== ReactPropTypesSecret) { + if (throwOnDirectAccess) { + // New behavior only for users of `prop-types` package + invariant( + false, + 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' + + 'Use `PropTypes.checkPropTypes()` to call them. ' + + 'Read more at http://fb.me/use-check-prop-types' + ); + } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') { + // Old behavior for people using React.PropTypes + var cacheKey = componentName + ':' + propName; + if ( + !manualPropTypeCallCache[cacheKey] && + // Avoid spamming the console because they are often not actionable except for lib authors + manualPropTypeWarningCount < 3 + ) { + warning( + false, + 'You are manually calling a React.PropTypes validation ' + + 'function for the `%s` prop on `%s`. This is deprecated ' + + 'and will throw in the standalone `prop-types` package. ' + + '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 + ); + manualPropTypeCallCache[cacheKey] = true; + manualPropTypeWarningCount++; + } + } + } + if (props[propName] == null) { + if (isRequired) { + if (props[propName] === null) { + return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.')); + } + return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.')); + } + return null; + } else { + return validate(props, propName, componentName, location, propFullName); + } + } - return CompiledPatternsCache[pattern]; - } + var chainedCheckType = checkType.bind(null, false); + chainedCheckType.isRequired = checkType.bind(null, true); - /** - * Attempts to match a pattern on the given pathname. Patterns may use - * the following special characters: - * - * - :paramName Matches a URL segment up to the next /, ?, or #. The - * captured string is considered a "param" - * - () Wraps a segment of the URL that is optional - * - * Consumes (non-greedy) all characters up to the next - * character in the pattern, or to the end of the URL if - * there is none - * - ** Consumes (greedy) all characters up to the next character - * in the pattern, or to the end of the URL if there is none - * - * The function calls callback(error, matched) when finished. - * The return value is an object with the following properties: - * - * - remainingPathname - * - paramNames - * - paramValues - */ - function matchPattern(pattern, pathname) { - // Ensure pattern starts with leading slash for consistency with pathname. - if (pattern.charAt(0) !== '/') { - pattern = '/' + pattern; + return chainedCheckType; } - var _compilePattern2 = compilePattern(pattern), - regexpSource = _compilePattern2.regexpSource, - paramNames = _compilePattern2.paramNames, - tokens = _compilePattern2.tokens; + function createPrimitiveTypeChecker(expectedType) { + function validate(props, propName, componentName, location, propFullName, secret) { + var propValue = props[propName]; + var propType = getPropType(propValue); + if (propType !== expectedType) { + // `propValue` being instance of, say, date/regexp, pass the 'object' + // check, but we can offer a more precise error message here rather than + // 'of type `object`'. + var preciseType = getPreciseType(propValue); - if (pattern.charAt(pattern.length - 1) !== '/') { - regexpSource += '/?'; // Allow optional path separator at end. + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.')); + } + return null; + } + return createChainableTypeChecker(validate); } - // Special-case patterns like '*' for catch-all routes. - if (tokens[tokens.length - 1] === '*') { - regexpSource += '$'; + function createAnyTypeChecker() { + return createChainableTypeChecker(emptyFunction.thatReturnsNull); } - var match = pathname.match(new RegExp('^' + regexpSource, 'i')); - if (match == null) { - return null; + function createArrayOfTypeChecker(typeChecker) { + function validate(props, propName, componentName, location, propFullName) { + if (typeof typeChecker !== 'function') { + return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.'); + } + var propValue = props[propName]; + if (!Array.isArray(propValue)) { + var propType = getPropType(propValue); + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.')); + } + for (var i = 0; i < propValue.length; i++) { + var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret); + if (error instanceof Error) { + return error; + } + } + return null; + } + return createChainableTypeChecker(validate); } - var matchedPath = match[0]; - var remainingPathname = pathname.substr(matchedPath.length); - - if (remainingPathname) { - // Require that the match ends at a path separator, if we didn't match - // the full path, so any remaining pathname is a new path segment. - if (matchedPath.charAt(matchedPath.length - 1) !== '/') { + function createElementTypeChecker() { + function validate(props, propName, componentName, location, propFullName) { + var propValue = props[propName]; + if (!isValidElement(propValue)) { + var propType = getPropType(propValue); + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.')); + } return null; } + return createChainableTypeChecker(validate); + } - // If there is a remaining pathname, treat the path separator as part of - // the remaining pathname for properly continuing the match. - remainingPathname = '/' + remainingPathname; + function createInstanceTypeChecker(expectedClass) { + function validate(props, propName, componentName, location, propFullName) { + if (!(props[propName] instanceof expectedClass)) { + var expectedClassName = expectedClass.name || ANONYMOUS; + var actualClassName = getClassName(props[propName]); + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.')); + } + return null; + } + return createChainableTypeChecker(validate); } - return { - remainingPathname: remainingPathname, - paramNames: paramNames, - paramValues: match.slice(1).map(function (v) { - return v && decodeURIComponent(v); - }) - }; - } + function createEnumTypeChecker(expectedValues) { + if (!Array.isArray(expectedValues)) { + process.env.NODE_ENV !== 'production' ? warning(false, 'Invalid argument supplied to oneOf, expected an instance of array.') : void 0; + return emptyFunction.thatReturnsNull; + } - function getParamNames(pattern) { - return compilePattern(pattern).paramNames; - } + function validate(props, propName, componentName, location, propFullName) { + var propValue = props[propName]; + for (var i = 0; i < expectedValues.length; i++) { + if (is(propValue, expectedValues[i])) { + return null; + } + } - function getParams(pattern, pathname) { - var match = matchPattern(pattern, pathname); - if (!match) { - return null; + var valuesString = JSON.stringify(expectedValues); + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.')); + } + return createChainableTypeChecker(validate); } - var paramNames = match.paramNames, - paramValues = match.paramValues; + function createObjectOfTypeChecker(typeChecker) { + function validate(props, propName, componentName, location, propFullName) { + if (typeof typeChecker !== 'function') { + return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.'); + } + var propValue = props[propName]; + var propType = getPropType(propValue); + if (propType !== 'object') { + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.')); + } + for (var key in propValue) { + if (propValue.hasOwnProperty(key)) { + var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret); + if (error instanceof Error) { + return error; + } + } + } + return null; + } + return createChainableTypeChecker(validate); + } - var params = {}; + function createUnionTypeChecker(arrayOfTypeCheckers) { + if (!Array.isArray(arrayOfTypeCheckers)) { + process.env.NODE_ENV !== 'production' ? warning(false, 'Invalid argument supplied to oneOfType, expected an instance of array.') : void 0; + return emptyFunction.thatReturnsNull; + } - paramNames.forEach(function (paramName, index) { - params[paramName] = paramValues[index]; - }); + for (var i = 0; i < arrayOfTypeCheckers.length; i++) { + var checker = arrayOfTypeCheckers[i]; + if (typeof checker !== 'function') { + warning( + false, + 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' + + 'received %s at index %s.', + getPostfixForTypeWarning(checker), + i + ); + return emptyFunction.thatReturnsNull; + } + } - return params; - } + function validate(props, propName, componentName, location, propFullName) { + for (var i = 0; i < arrayOfTypeCheckers.length; i++) { + var checker = arrayOfTypeCheckers[i]; + if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret) == null) { + return null; + } + } - /** - * Returns a version of the given pattern with params interpolated. Throws - * if there is a dynamic segment of the pattern for which there is no param. - */ - function formatPattern(pattern, params) { - params = params || {}; + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.')); + } + return createChainableTypeChecker(validate); + } - var _compilePattern3 = compilePattern(pattern), - tokens = _compilePattern3.tokens; + function createNodeChecker() { + function validate(props, propName, componentName, location, propFullName) { + if (!isNode(props[propName])) { + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.')); + } + return null; + } + return createChainableTypeChecker(validate); + } - var parenCount = 0, - pathname = '', - splatIndex = 0, - parenHistory = []; + function createShapeTypeChecker(shapeTypes) { + function validate(props, propName, componentName, location, propFullName) { + var propValue = props[propName]; + var propType = getPropType(propValue); + if (propType !== 'object') { + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.')); + } + for (var key in shapeTypes) { + var checker = shapeTypes[key]; + if (!checker) { + continue; + } + var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret); + if (error) { + return error; + } + } + return null; + } + return createChainableTypeChecker(validate); + } + + function createStrictShapeTypeChecker(shapeTypes) { + function validate(props, propName, componentName, location, propFullName) { + var propValue = props[propName]; + var propType = getPropType(propValue); + if (propType !== 'object') { + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.')); + } + // We need to check all keys in case some are required but missing from + // props. + var allKeys = assign({}, props[propName], shapeTypes); + for (var key in allKeys) { + var checker = shapeTypes[key]; + if (!checker) { + return new PropTypeError( + 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' + + '\nBad object: ' + JSON.stringify(props[propName], null, ' ') + + '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ') + ); + } + var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret); + if (error) { + return error; + } + } + return null; + } - var token = void 0, - paramName = void 0, - paramValue = void 0; - for (var i = 0, len = tokens.length; i < len; ++i) { - token = tokens[i]; + return createChainableTypeChecker(validate); + } - if (token === '*' || token === '**') { - paramValue = Array.isArray(params.splat) ? params.splat[splatIndex++] : params.splat; + function isNode(propValue) { + switch (typeof propValue) { + case 'number': + case 'string': + case 'undefined': + return true; + case 'boolean': + return !propValue; + case 'object': + if (Array.isArray(propValue)) { + return propValue.every(isNode); + } + if (propValue === null || isValidElement(propValue)) { + return true; + } - !(paramValue != null || parenCount > 0) ? process.env.NODE_ENV !== 'production' ? (0, _invariant2.default)(false, 'Missing splat #%s for path "%s"', splatIndex, pattern) : (0, _invariant2.default)(false) : void 0; + var iteratorFn = getIteratorFn(propValue); + if (iteratorFn) { + var iterator = iteratorFn.call(propValue); + var step; + if (iteratorFn !== propValue.entries) { + while (!(step = iterator.next()).done) { + if (!isNode(step.value)) { + return false; + } + } + } else { + // Iterator will provide entry [k,v] tuples rather than values. + while (!(step = iterator.next()).done) { + var entry = step.value; + if (entry) { + if (!isNode(entry[1])) { + return false; + } + } + } + } + } else { + return false; + } - if (paramValue != null) pathname += encodeURI(paramValue); - } else if (token === '(') { - parenHistory[parenCount] = ''; - parenCount += 1; - } else if (token === ')') { - var parenText = parenHistory.pop(); - parenCount -= 1; + return true; + default: + return false; + } + } - if (parenCount) parenHistory[parenCount - 1] += parenText;else pathname += parenText; - } else if (token === '\\(') { - pathname += '('; - } else if (token === '\\)') { - pathname += ')'; - } else if (token.charAt(0) === ':') { - paramName = token.substring(1); - paramValue = params[paramName]; + function isSymbol(propType, propValue) { + // Native Symbol. + if (propType === 'symbol') { + return true; + } - !(paramValue != null || parenCount > 0) ? process.env.NODE_ENV !== 'production' ? (0, _invariant2.default)(false, 'Missing "%s" parameter for path "%s"', paramName, pattern) : (0, _invariant2.default)(false) : void 0; + // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol' + if (propValue['@@toStringTag'] === 'Symbol') { + return true; + } - if (paramValue == null) { - if (parenCount) { - parenHistory[parenCount - 1] = ''; + // Fallback for non-spec compliant Symbols which are polyfilled. + if (typeof Symbol === 'function' && propValue instanceof Symbol) { + return true; + } - var curTokenIdx = tokens.indexOf(token); - var tokensSubset = tokens.slice(curTokenIdx, tokens.length); - var nextParenIdx = -1; + return false; + } - for (var _i = 0; _i < tokensSubset.length; _i++) { - if (tokensSubset[_i] == ')') { - nextParenIdx = _i; - break; - } - } + // Equivalent of `typeof` but with special handling for array and regexp. + function getPropType(propValue) { + var propType = typeof propValue; + if (Array.isArray(propValue)) { + return 'array'; + } + if (propValue instanceof RegExp) { + // Old webkits (at least until Android 4.0) return 'function' rather than + // 'object' for typeof a RegExp. We'll normalize this here so that /bla/ + // passes PropTypes.object. + return 'object'; + } + if (isSymbol(propType, propValue)) { + return 'symbol'; + } + return propType; + } - !(nextParenIdx > 0) ? process.env.NODE_ENV !== 'production' ? (0, _invariant2.default)(false, 'Path "%s" is missing end paren at segment "%s"', pattern, tokensSubset.join('')) : (0, _invariant2.default)(false) : void 0; + // This handles more types than `getPropType`. Only used for error messages. + // See `createPrimitiveTypeChecker`. + function getPreciseType(propValue) { + if (typeof propValue === 'undefined' || propValue === null) { + return '' + propValue; + } + var propType = getPropType(propValue); + if (propType === 'object') { + if (propValue instanceof Date) { + return 'date'; + } else if (propValue instanceof RegExp) { + return 'regexp'; + } + } + return propType; + } - // jump to ending paren - i = curTokenIdx + nextParenIdx - 1; - } - } else if (parenCount) parenHistory[parenCount - 1] += encodeURIComponent(paramValue);else pathname += encodeURIComponent(paramValue); - } else { - if (parenCount) parenHistory[parenCount - 1] += token;else pathname += token; + // Returns a string that is postfixed to a warning about an invalid type. + // For example, "undefined" or "of type array" + function getPostfixForTypeWarning(value) { + var type = getPreciseType(value); + switch (type) { + case 'array': + case 'object': + return 'an ' + type; + case 'boolean': + case 'date': + case 'regexp': + return 'a ' + type; + default: + return type; } } - !(parenCount <= 0) ? process.env.NODE_ENV !== 'production' ? (0, _invariant2.default)(false, 'Path "%s" is missing end paren', pattern) : (0, _invariant2.default)(false) : void 0; + // Returns class name of the object, if any. + function getClassName(propValue) { + if (!propValue.constructor || !propValue.constructor.name) { + return ANONYMOUS; + } + return propValue.constructor.name; + } + + ReactPropTypes.checkPropTypes = checkPropTypes; + ReactPropTypes.PropTypes = ReactPropTypes; + + return ReactPropTypes; + }; - return pathname.replace(/\/+/g, '/'); - } /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 43 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 44 */ +/***/ (function(module, exports) { - /* WEBPACK VAR INJECTION */(function(process) {/** - * Copyright 2013-2015, Facebook, Inc. - * All rights reserved. + "use strict"; + + /** + * Copyright (c) 2013-present, Facebook, Inc. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * */ - 'use strict'; + function makeEmptyFunction(arg) { + return function () { + return arg; + }; + } /** - * Use invariant() to assert state which your program assumes to be true. + * This function accepts and discards inputs; it has no side effects. This is + * primarily useful idiomatically for overridable function endpoints which + * always need to be callable, since JS lacks a null-call idiom ala Cocoa. + */ + var emptyFunction = function emptyFunction() {}; + + emptyFunction.thatReturns = makeEmptyFunction; + emptyFunction.thatReturnsFalse = makeEmptyFunction(false); + emptyFunction.thatReturnsTrue = makeEmptyFunction(true); + emptyFunction.thatReturnsNull = makeEmptyFunction(null); + emptyFunction.thatReturnsThis = function () { + return this; + }; + emptyFunction.thatReturnsArgument = function (arg) { + return arg; + }; + + module.exports = emptyFunction; + +/***/ }), +/* 45 */ +/***/ (function(module, exports, __webpack_require__) { + + /* WEBPACK VAR INJECTION */(function(process) {/** + * Copyright (c) 2014-present, Facebook, Inc. * - * Provide sprintf-style format (only %s is supported) and arguments - * to provide information about what broke and what you were - * expecting. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * - * The invariant message will be stripped in production, but the invariant - * will remain to ensure logic does not differ in production. */ - var invariant = function(condition, format, a, b, c, d, e, f) { - if (process.env.NODE_ENV !== 'production') { - if (format === undefined) { - throw new Error('invariant requires an error message argument'); + 'use strict'; + + var emptyFunction = __webpack_require__(44); + + /** + * Similar to invariant but only logs a warning if the condition is not met. + * This can be used to log issues in development environments in critical + * paths. Removing the logging code for production environments will keep the + * same logic and follow the same code paths. + */ + + var warning = emptyFunction; + + if (process.env.NODE_ENV !== 'production') { + var printWarning = function printWarning(format) { + for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + args[_key - 1] = arguments[_key]; } - } - if (!condition) { - var error; - if (format === undefined) { - error = new Error( - 'Minified exception occurred; use the non-minified dev environment ' + - 'for the full error message and additional helpful warnings.' - ); - } else { - var args = [a, b, c, d, e, f]; - var argIndex = 0; - error = new Error( - format.replace(/%s/g, function() { return args[argIndex++]; }) - ); - error.name = 'Invariant Violation'; + var argIndex = 0; + var message = 'Warning: ' + format.replace(/%s/g, function () { + return args[argIndex++]; + }); + if (typeof console !== 'undefined') { + console.error(message); } + try { + // --- Welcome to debugging React --- + // This error was thrown as a convenience so that you can use this stack + // to find the callsite that caused this warning to fire. + throw new Error(message); + } catch (x) {} + }; - error.framesToPop = 1; // we don't care about invariant's own frame - throw error; - } - }; + warning = function warning(condition, format) { + if (format === undefined) { + throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument'); + } - module.exports = invariant; + if (format.indexOf('Failed Composite propType: ') === 0) { + return; // Ignore CompositeComponent proptype check. + } - /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) + if (!condition) { + for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) { + args[_key2 - 2] = arguments[_key2]; + } -/***/ }, -/* 44 */ -/***/ function(module, exports, __webpack_require__) { + printWarning.apply(undefined, [format].concat(args)); + } + }; + } - /* WEBPACK VAR INJECTION */(function(process) {'use strict'; + module.exports = warning; + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) - exports.__esModule = true; +/***/ }), +/* 46 */ +/***/ (function(module, exports) { - var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + /* + object-assign + (c) Sindre Sorhus + @license MIT + */ - var _invariant = __webpack_require__(43); + 'use strict'; + /* eslint-disable no-unused-vars */ + var getOwnPropertySymbols = Object.getOwnPropertySymbols; + var hasOwnProperty = Object.prototype.hasOwnProperty; + var propIsEnumerable = Object.prototype.propertyIsEnumerable; - var _invariant2 = _interopRequireDefault(_invariant); + function toObject(val) { + if (val === null || val === undefined) { + throw new TypeError('Object.assign cannot be called with null or undefined'); + } - var _react = __webpack_require__(7); + return Object(val); + } - var _react2 = _interopRequireDefault(_react); + function shouldUseNative() { + try { + if (!Object.assign) { + return false; + } - var _createTransitionManager2 = __webpack_require__(45); + // Detect buggy property enumeration order in older V8 versions. - var _createTransitionManager3 = _interopRequireDefault(_createTransitionManager2); + // https://bugs.chromium.org/p/v8/issues/detail?id=4118 + var test1 = new String('abc'); // eslint-disable-line no-new-wrappers + test1[5] = 'de'; + if (Object.getOwnPropertyNames(test1)[0] === '5') { + return false; + } - var _InternalPropTypes = __webpack_require__(55); + // https://bugs.chromium.org/p/v8/issues/detail?id=3056 + var test2 = {}; + for (var i = 0; i < 10; i++) { + test2['_' + String.fromCharCode(i)] = i; + } + var order2 = Object.getOwnPropertyNames(test2).map(function (n) { + return test2[n]; + }); + if (order2.join('') !== '0123456789') { + return false; + } - var _RouterContext = __webpack_require__(56); + // https://bugs.chromium.org/p/v8/issues/detail?id=3056 + var test3 = {}; + 'abcdefghijklmnopqrst'.split('').forEach(function (letter) { + test3[letter] = letter; + }); + if (Object.keys(Object.assign({}, test3)).join('') !== + 'abcdefghijklmnopqrst') { + return false; + } - var _RouterContext2 = _interopRequireDefault(_RouterContext); + return true; + } catch (err) { + // We don't expect any of the above to throw, but better to be safe. + return false; + } + } - var _RouteUtils = __webpack_require__(40); + module.exports = shouldUseNative() ? Object.assign : function (target, source) { + var from; + var to = toObject(target); + var symbols; - var _RouterUtils = __webpack_require__(59); + for (var s = 1; s < arguments.length; s++) { + from = Object(arguments[s]); - var _routerWarning = __webpack_require__(46); + for (var key in from) { + if (hasOwnProperty.call(from, key)) { + to[key] = from[key]; + } + } - var _routerWarning2 = _interopRequireDefault(_routerWarning); + if (getOwnPropertySymbols) { + symbols = getOwnPropertySymbols(from); + for (var i = 0; i < symbols.length; i++) { + if (propIsEnumerable.call(from, symbols[i])) { + to[symbols[i]] = from[symbols[i]]; + } + } + } + } - function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + return to; + }; - function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } - var _React$PropTypes = _react2.default.PropTypes, - func = _React$PropTypes.func, - object = _React$PropTypes.object; +/***/ }), +/* 47 */ +/***/ (function(module, exports) { /** - * A is a high-level API for automatically setting up - * a router that renders a with all the props - * it needs each time the URL changes. + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ - var Router = _react2.default.createClass({ - displayName: 'Router', + 'use strict'; + + var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'; + + module.exports = ReactPropTypesSecret; + + +/***/ }), +/* 48 */ +/***/ (function(module, exports, __webpack_require__) { + + /* WEBPACK VAR INJECTION */(function(process) {/** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + + 'use strict'; + + if (process.env.NODE_ENV !== 'production') { + var invariant = __webpack_require__(36); + var warning = __webpack_require__(45); + var ReactPropTypesSecret = __webpack_require__(47); + var loggedTypeFailures = {}; + } + + /** + * Assert that the values match with the type specs. + * Error messages are memorized and will only be shown once. + * + * @param {object} typeSpecs Map of name to a ReactPropType + * @param {object} values Runtime values that need to be type-checked + * @param {string} location e.g. "prop", "context", "child context" + * @param {string} componentName Name of the component for error messages. + * @param {?Function} getStack Returns the component stack. + * @private + */ + function checkPropTypes(typeSpecs, values, location, componentName, getStack) { + if (process.env.NODE_ENV !== 'production') { + for (var typeSpecName in typeSpecs) { + if (typeSpecs.hasOwnProperty(typeSpecName)) { + var error; + // Prop type validation may throw. In case they do, we don't want to + // fail the render phase where it didn't fail before. So we log it. + // After these have been cleaned up, we'll let them throw. + try { + // This is intentionally an invariant that gets caught. It's the same + // behavior as without this statement except with a better message. + invariant(typeof typeSpecs[typeSpecName] === 'function', '%s: %s type `%s` is invalid; it must be a function, usually from ' + 'the `prop-types` package, but received `%s`.', componentName || 'React class', location, typeSpecName, typeof typeSpecs[typeSpecName]); + error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret); + } catch (ex) { + error = ex; + } + 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); + if (error instanceof Error && !(error.message in loggedTypeFailures)) { + // Only monitor this failure once because there tends to be a lot of the + // same error. + loggedTypeFailures[error.message] = true; + + var stack = getStack ? getStack() : ''; + + warning(false, 'Failed %s type: %s%s', location, error.message, stack != null ? stack : ''); + } + } + } + } + } + + module.exports = checkPropTypes; + + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) + +/***/ }), +/* 49 */ +/***/ (function(module, exports, __webpack_require__) { + + /** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + + 'use strict'; + + var emptyFunction = __webpack_require__(44); + var invariant = __webpack_require__(36); + var ReactPropTypesSecret = __webpack_require__(47); + + module.exports = function() { + function shim(props, propName, componentName, location, propFullName, secret) { + if (secret === ReactPropTypesSecret) { + // It is still safe when called from React. + return; + } + invariant( + false, + 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' + + 'Use PropTypes.checkPropTypes() to call them. ' + + 'Read more at http://fb.me/use-check-prop-types' + ); + }; + shim.isRequired = shim; + function getShim() { + return shim; + }; + // Important! + // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`. + var ReactPropTypes = { + array: shim, + bool: shim, + func: shim, + number: shim, + object: shim, + string: shim, + symbol: shim, + + any: shim, + arrayOf: getShim, + element: shim, + instanceOf: getShim, + node: shim, + objectOf: getShim, + oneOf: getShim, + oneOfType: getShim, + shape: getShim, + exact: getShim + }; + + ReactPropTypes.checkPropTypes = emptyFunction; + ReactPropTypes.PropTypes = ReactPropTypes; + + return ReactPropTypes; + }; + + +/***/ }), +/* 50 */ +/***/ (function(module, exports, __webpack_require__) { + + /* WEBPACK VAR INJECTION */(function(process) {'use strict'; + + exports.__esModule = true; + exports.compilePattern = compilePattern; + exports.matchPattern = matchPattern; + exports.getParamNames = getParamNames; + exports.getParams = getParams; + exports.formatPattern = formatPattern; + + var _invariant = __webpack_require__(51); + + var _invariant2 = _interopRequireDefault(_invariant); + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + function escapeRegExp(string) { + return string.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); + } + + function _compilePattern(pattern) { + var regexpSource = ''; + var paramNames = []; + var tokens = []; + + var match = void 0, + lastIndex = 0, + matcher = /:([a-zA-Z_$][a-zA-Z0-9_$]*)|\*\*|\*|\(|\)|\\\(|\\\)/g; + while (match = matcher.exec(pattern)) { + if (match.index !== lastIndex) { + tokens.push(pattern.slice(lastIndex, match.index)); + regexpSource += escapeRegExp(pattern.slice(lastIndex, match.index)); + } + + if (match[1]) { + regexpSource += '([^/]+)'; + paramNames.push(match[1]); + } else if (match[0] === '**') { + regexpSource += '(.*)'; + paramNames.push('splat'); + } else if (match[0] === '*') { + regexpSource += '(.*?)'; + paramNames.push('splat'); + } else if (match[0] === '(') { + regexpSource += '(?:'; + } else if (match[0] === ')') { + regexpSource += ')?'; + } else if (match[0] === '\\(') { + regexpSource += '\\('; + } else if (match[0] === '\\)') { + regexpSource += '\\)'; + } + + tokens.push(match[0]); + + lastIndex = matcher.lastIndex; + } + + if (lastIndex !== pattern.length) { + tokens.push(pattern.slice(lastIndex, pattern.length)); + regexpSource += escapeRegExp(pattern.slice(lastIndex, pattern.length)); + } + + return { + pattern: pattern, + regexpSource: regexpSource, + paramNames: paramNames, + tokens: tokens + }; + } + + var CompiledPatternsCache = Object.create(null); + + function compilePattern(pattern) { + if (!CompiledPatternsCache[pattern]) CompiledPatternsCache[pattern] = _compilePattern(pattern); + + return CompiledPatternsCache[pattern]; + } + + /** + * Attempts to match a pattern on the given pathname. Patterns may use + * the following special characters: + * + * - :paramName Matches a URL segment up to the next /, ?, or #. The + * captured string is considered a "param" + * - () Wraps a segment of the URL that is optional + * - * Consumes (non-greedy) all characters up to the next + * character in the pattern, or to the end of the URL if + * there is none + * - ** Consumes (greedy) all characters up to the next character + * in the pattern, or to the end of the URL if there is none + * + * The function calls callback(error, matched) when finished. + * The return value is an object with the following properties: + * + * - remainingPathname + * - paramNames + * - paramValues + */ + function matchPattern(pattern, pathname) { + // Ensure pattern starts with leading slash for consistency with pathname. + if (pattern.charAt(0) !== '/') { + pattern = '/' + pattern; + } + + var _compilePattern2 = compilePattern(pattern), + regexpSource = _compilePattern2.regexpSource, + paramNames = _compilePattern2.paramNames, + tokens = _compilePattern2.tokens; + + if (pattern.charAt(pattern.length - 1) !== '/') { + regexpSource += '/?'; // Allow optional path separator at end. + } + + // Special-case patterns like '*' for catch-all routes. + if (tokens[tokens.length - 1] === '*') { + regexpSource += '$'; + } + + var match = pathname.match(new RegExp('^' + regexpSource, 'i')); + if (match == null) { + return null; + } + + var matchedPath = match[0]; + var remainingPathname = pathname.substr(matchedPath.length); + + if (remainingPathname) { + // Require that the match ends at a path separator, if we didn't match + // the full path, so any remaining pathname is a new path segment. + if (matchedPath.charAt(matchedPath.length - 1) !== '/') { + return null; + } + + // If there is a remaining pathname, treat the path separator as part of + // the remaining pathname for properly continuing the match. + remainingPathname = '/' + remainingPathname; + } + + return { + remainingPathname: remainingPathname, + paramNames: paramNames, + paramValues: match.slice(1).map(function (v) { + return v && decodeURIComponent(v); + }) + }; + } + + function getParamNames(pattern) { + return compilePattern(pattern).paramNames; + } + + function getParams(pattern, pathname) { + var match = matchPattern(pattern, pathname); + if (!match) { + return null; + } + + var paramNames = match.paramNames, + paramValues = match.paramValues; + + var params = {}; + + paramNames.forEach(function (paramName, index) { + params[paramName] = paramValues[index]; + }); + + return params; + } + + /** + * Returns a version of the given pattern with params interpolated. Throws + * if there is a dynamic segment of the pattern for which there is no param. + */ + function formatPattern(pattern, params) { + params = params || {}; + + var _compilePattern3 = compilePattern(pattern), + tokens = _compilePattern3.tokens; + + var parenCount = 0, + pathname = '', + splatIndex = 0, + parenHistory = []; + + var token = void 0, + paramName = void 0, + paramValue = void 0; + for (var i = 0, len = tokens.length; i < len; ++i) { + token = tokens[i]; + + if (token === '*' || token === '**') { + paramValue = Array.isArray(params.splat) ? params.splat[splatIndex++] : params.splat; + + !(paramValue != null || parenCount > 0) ? process.env.NODE_ENV !== 'production' ? (0, _invariant2.default)(false, 'Missing splat #%s for path "%s"', splatIndex, pattern) : (0, _invariant2.default)(false) : void 0; + + if (paramValue != null) pathname += encodeURI(paramValue); + } else if (token === '(') { + parenHistory[parenCount] = ''; + parenCount += 1; + } else if (token === ')') { + var parenText = parenHistory.pop(); + parenCount -= 1; + + if (parenCount) parenHistory[parenCount - 1] += parenText;else pathname += parenText; + } else if (token === '\\(') { + pathname += '('; + } else if (token === '\\)') { + pathname += ')'; + } else if (token.charAt(0) === ':') { + paramName = token.substring(1); + paramValue = params[paramName]; + + !(paramValue != null || parenCount > 0) ? process.env.NODE_ENV !== 'production' ? (0, _invariant2.default)(false, 'Missing "%s" parameter for path "%s"', paramName, pattern) : (0, _invariant2.default)(false) : void 0; + + if (paramValue == null) { + if (parenCount) { + parenHistory[parenCount - 1] = ''; + + var curTokenIdx = tokens.indexOf(token); + var tokensSubset = tokens.slice(curTokenIdx, tokens.length); + var nextParenIdx = -1; + + for (var _i = 0; _i < tokensSubset.length; _i++) { + if (tokensSubset[_i] == ')') { + nextParenIdx = _i; + break; + } + } + + !(nextParenIdx > 0) ? process.env.NODE_ENV !== 'production' ? (0, _invariant2.default)(false, 'Path "%s" is missing end paren at segment "%s"', pattern, tokensSubset.join('')) : (0, _invariant2.default)(false) : void 0; + + // jump to ending paren + i = curTokenIdx + nextParenIdx - 1; + } + } else if (parenCount) parenHistory[parenCount - 1] += encodeURIComponent(paramValue);else pathname += encodeURIComponent(paramValue); + } else { + if (parenCount) parenHistory[parenCount - 1] += token;else pathname += token; + } + } + + !(parenCount <= 0) ? process.env.NODE_ENV !== 'production' ? (0, _invariant2.default)(false, 'Path "%s" is missing end paren', pattern) : (0, _invariant2.default)(false) : void 0; + + return pathname.replace(/\/+/g, '/'); + } + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) + +/***/ }), +/* 51 */ +/***/ (function(module, exports, __webpack_require__) { + + /* WEBPACK VAR INJECTION */(function(process) {/** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + + 'use strict'; + + /** + * Use invariant() to assert state which your program assumes to be true. + * + * Provide sprintf-style format (only %s is supported) and arguments + * to provide information about what broke and what you were + * expecting. + * + * The invariant message will be stripped in production, but the invariant + * will remain to ensure logic does not differ in production. + */ + + var invariant = function(condition, format, a, b, c, d, e, f) { + if (process.env.NODE_ENV !== 'production') { + if (format === undefined) { + throw new Error('invariant requires an error message argument'); + } + } + + if (!condition) { + var error; + if (format === undefined) { + error = new Error( + 'Minified exception occurred; use the non-minified dev environment ' + + 'for the full error message and additional helpful warnings.' + ); + } else { + var args = [a, b, c, d, e, f]; + var argIndex = 0; + error = new Error( + format.replace(/%s/g, function() { return args[argIndex++]; }) + ); + error.name = 'Invariant Violation'; + } + + error.framesToPop = 1; // we don't care about invariant's own frame + throw error; + } + }; + + module.exports = invariant; + + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) + +/***/ }), +/* 52 */ +/***/ (function(module, exports, __webpack_require__) { + + /* WEBPACK VAR INJECTION */(function(process) {'use strict'; + + exports.__esModule = true; + + var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; + + var _invariant = __webpack_require__(51); + + var _invariant2 = _interopRequireDefault(_invariant); + + var _react = __webpack_require__(7); + + var _react2 = _interopRequireDefault(_react); + + var _createReactClass = __webpack_require__(53); + + var _createReactClass2 = _interopRequireDefault(_createReactClass); + + var _propTypes = __webpack_require__(42); + + var _createTransitionManager2 = __webpack_require__(56); + + var _createTransitionManager3 = _interopRequireDefault(_createTransitionManager2); + + var _InternalPropTypes = __webpack_require__(66); + + var _RouterContext = __webpack_require__(67); + + var _RouterContext2 = _interopRequireDefault(_RouterContext); + + var _RouteUtils = __webpack_require__(40); + + var _RouterUtils = __webpack_require__(70); + + var _routerWarning = __webpack_require__(57); + + var _routerWarning2 = _interopRequireDefault(_routerWarning); + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + + function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } + + var propTypes = { + history: _propTypes.object, + children: _InternalPropTypes.routes, + routes: _InternalPropTypes.routes, // alias for children + render: _propTypes.func, + createElement: _propTypes.func, + onError: _propTypes.func, + onUpdate: _propTypes.func, + + // PRIVATE: For client-side rehydration of server match. + matchContext: _propTypes.object + + /** + * A is a high-level API for automatically setting up + * a router that renders a with all the props + * it needs each time the URL changes. + */ + };var Router = (0, _createReactClass2.default)({ + displayName: 'Router', + + propTypes: propTypes, + + getDefaultProps: function getDefaultProps() { + return { + render: function render(props) { + return _react2.default.createElement(_RouterContext2.default, props); + } + }; + }, + getInitialState: function getInitialState() { + return { + location: null, + routes: null, + params: null, + components: null + }; + }, + handleError: function handleError(error) { + if (this.props.onError) { + this.props.onError.call(this, error); + } else { + // Throw errors by default so we don't silently swallow them! + throw error; // This error probably occurred in getChildRoutes or getComponents. + } + }, + createRouterObject: function createRouterObject(state) { + var matchContext = this.props.matchContext; + + if (matchContext) { + return matchContext.router; + } + + var history = this.props.history; + + return (0, _RouterUtils.createRouterObject)(history, this.transitionManager, state); + }, + createTransitionManager: function createTransitionManager() { + var matchContext = this.props.matchContext; + + if (matchContext) { + return matchContext.transitionManager; + } + + var history = this.props.history; + var _props = this.props, + routes = _props.routes, + children = _props.children; + + + !history.getCurrentLocation ? process.env.NODE_ENV !== 'production' ? (0, _invariant2.default)(false, 'You have provided a history object created with history v4.x or v2.x ' + 'and earlier. This version of React Router is only compatible with v3 ' + 'history objects. Please change to history v3.x.') : (0, _invariant2.default)(false) : void 0; + + return (0, _createTransitionManager3.default)(history, (0, _RouteUtils.createRoutes)(routes || children)); + }, + componentWillMount: function componentWillMount() { + var _this = this; + this.transitionManager = this.createTransitionManager(); + this.router = this.createRouterObject(this.state); - propTypes: { - history: object, - children: _InternalPropTypes.routes, - routes: _InternalPropTypes.routes, // alias for children - render: func, - createElement: func, - onError: func, - onUpdate: func, - - // PRIVATE: For client-side rehydration of server match. - matchContext: object + this._unlisten = this.transitionManager.listen(function (error, state) { + if (error) { + _this.handleError(error); + } else { + // Keep the identity of this.router because of a caveat in ContextUtils: + // they only work if the object identity is preserved. + (0, _RouterUtils.assignRouterState)(_this.router, state); + _this.setState(state, _this.props.onUpdate); + } + }); }, - getDefaultProps: function getDefaultProps() { - return { - render: function render(props) { - return _react2.default.createElement(_RouterContext2.default, props); + + /* istanbul ignore next: sanity check */ + componentWillReceiveProps: function componentWillReceiveProps(nextProps) { + process.env.NODE_ENV !== 'production' ? (0, _routerWarning2.default)(nextProps.history === this.props.history, 'You cannot change ; it will be ignored') : void 0; + + process.env.NODE_ENV !== 'production' ? (0, _routerWarning2.default)((nextProps.routes || nextProps.children) === (this.props.routes || this.props.children), 'You cannot change ; it will be ignored') : void 0; + }, + componentWillUnmount: function componentWillUnmount() { + if (this._unlisten) this._unlisten(); + }, + render: function render() { + var _state = this.state, + location = _state.location, + routes = _state.routes, + params = _state.params, + components = _state.components; + + var _props2 = this.props, + createElement = _props2.createElement, + render = _props2.render, + props = _objectWithoutProperties(_props2, ['createElement', 'render']); + + if (location == null) return null; // Async match + + // Only forward non-Router-specific props to routing context, as those are + // the only ones that might be custom routing context props. + Object.keys(propTypes).forEach(function (propType) { + return delete props[propType]; + }); + + return render(_extends({}, props, { + router: this.router, + location: location, + routes: routes, + params: params, + components: components, + createElement: createElement + })); + } + }); + + exports.default = Router; + module.exports = exports['default']; + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) + +/***/ }), +/* 53 */ +/***/ (function(module, exports, __webpack_require__) { + + /** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + */ + + 'use strict'; + + var React = __webpack_require__(7); + var factory = __webpack_require__(54); + + if (typeof React === 'undefined') { + throw Error( + 'create-react-class could not find the React object. If you are using script tags, ' + + 'make sure that React is being loaded before create-react-class.' + ); + } + + // Hack to grab NoopUpdateQueue from isomorphic React + var ReactNoopUpdateQueue = new React.Component().updater; + + module.exports = factory( + React.Component, + React.isValidElement, + ReactNoopUpdateQueue + ); + + +/***/ }), +/* 54 */ +/***/ (function(module, exports, __webpack_require__) { + + /* WEBPACK VAR INJECTION */(function(process) {/** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + */ + + 'use strict'; + + var _assign = __webpack_require__(46); + + var emptyObject = __webpack_require__(55); + var _invariant = __webpack_require__(36); + + if (process.env.NODE_ENV !== 'production') { + var warning = __webpack_require__(45); + } + + var MIXINS_KEY = 'mixins'; + + // Helper function to allow the creation of anonymous functions which do not + // have .name set to the name of the variable being assigned to. + function identity(fn) { + return fn; + } + + var ReactPropTypeLocationNames; + if (process.env.NODE_ENV !== 'production') { + ReactPropTypeLocationNames = { + prop: 'prop', + context: 'context', + childContext: 'child context' + }; + } else { + ReactPropTypeLocationNames = {}; + } + + function factory(ReactComponent, isValidElement, ReactNoopUpdateQueue) { + /** + * Policies that describe methods in `ReactClassInterface`. + */ + + var injectedMixins = []; + + /** + * Composite components are higher-level components that compose other composite + * or host components. + * + * To create a new type of `ReactClass`, pass a specification of + * your new class to `React.createClass`. The only requirement of your class + * specification is that you implement a `render` method. + * + * var MyComponent = React.createClass({ + * render: function() { + * return
Hello World
; + * } + * }); + * + * The class specification supports a specific protocol of methods that have + * special meaning (e.g. `render`). See `ReactClassInterface` for + * more the comprehensive protocol. Any other properties and methods in the + * class specification will be available on the prototype. + * + * @interface ReactClassInterface + * @internal + */ + var ReactClassInterface = { + /** + * An array of Mixin objects to include when defining your component. + * + * @type {array} + * @optional + */ + mixins: 'DEFINE_MANY', + + /** + * An object containing properties and methods that should be defined on + * the component's constructor instead of its prototype (static methods). + * + * @type {object} + * @optional + */ + statics: 'DEFINE_MANY', + + /** + * Definition of prop types for this component. + * + * @type {object} + * @optional + */ + propTypes: 'DEFINE_MANY', + + /** + * Definition of context types for this component. + * + * @type {object} + * @optional + */ + contextTypes: 'DEFINE_MANY', + + /** + * Definition of context types this component sets for its children. + * + * @type {object} + * @optional + */ + childContextTypes: 'DEFINE_MANY', + + // ==== Definition methods ==== + + /** + * Invoked when the component is mounted. Values in the mapping will be set on + * `this.props` if that prop is not specified (i.e. using an `in` check). + * + * This method is invoked before `getInitialState` and therefore cannot rely + * on `this.state` or use `this.setState`. + * + * @return {object} + * @optional + */ + getDefaultProps: 'DEFINE_MANY_MERGED', + + /** + * Invoked once before the component is mounted. The return value will be used + * as the initial value of `this.state`. + * + * getInitialState: function() { + * return { + * isOn: false, + * fooBaz: new BazFoo() + * } + * } + * + * @return {object} + * @optional + */ + getInitialState: 'DEFINE_MANY_MERGED', + + /** + * @return {object} + * @optional + */ + getChildContext: 'DEFINE_MANY_MERGED', + + /** + * Uses props from `this.props` and state from `this.state` to render the + * structure of the component. + * + * No guarantees are made about when or how often this method is invoked, so + * it must not have side effects. + * + * render: function() { + * var name = this.props.name; + * return
Hello, {name}!
; + * } + * + * @return {ReactComponent} + * @required + */ + render: 'DEFINE_ONCE', + + // ==== Delegate methods ==== + + /** + * Invoked when the component is initially created and about to be mounted. + * This may have side effects, but any external subscriptions or data created + * by this method must be cleaned up in `componentWillUnmount`. + * + * @optional + */ + componentWillMount: 'DEFINE_MANY', + + /** + * Invoked when the component has been mounted and has a DOM representation. + * However, there is no guarantee that the DOM node is in the document. + * + * Use this as an opportunity to operate on the DOM when the component has + * been mounted (initialized and rendered) for the first time. + * + * @param {DOMElement} rootNode DOM element representing the component. + * @optional + */ + componentDidMount: 'DEFINE_MANY', + + /** + * Invoked before the component receives new props. + * + * Use this as an opportunity to react to a prop transition by updating the + * state using `this.setState`. Current props are accessed via `this.props`. + * + * componentWillReceiveProps: function(nextProps, nextContext) { + * this.setState({ + * likesIncreasing: nextProps.likeCount > this.props.likeCount + * }); + * } + * + * NOTE: There is no equivalent `componentWillReceiveState`. An incoming prop + * transition may cause a state change, but the opposite is not true. If you + * need it, you are probably looking for `componentWillUpdate`. + * + * @param {object} nextProps + * @optional + */ + componentWillReceiveProps: 'DEFINE_MANY', + + /** + * Invoked while deciding if the component should be updated as a result of + * receiving new props, state and/or context. + * + * Use this as an opportunity to `return false` when you're certain that the + * transition to the new props/state/context will not require a component + * update. + * + * shouldComponentUpdate: function(nextProps, nextState, nextContext) { + * return !equal(nextProps, this.props) || + * !equal(nextState, this.state) || + * !equal(nextContext, this.context); + * } + * + * @param {object} nextProps + * @param {?object} nextState + * @param {?object} nextContext + * @return {boolean} True if the component should update. + * @optional + */ + shouldComponentUpdate: 'DEFINE_ONCE', + + /** + * Invoked when the component is about to update due to a transition from + * `this.props`, `this.state` and `this.context` to `nextProps`, `nextState` + * and `nextContext`. + * + * Use this as an opportunity to perform preparation before an update occurs. + * + * NOTE: You **cannot** use `this.setState()` in this method. + * + * @param {object} nextProps + * @param {?object} nextState + * @param {?object} nextContext + * @param {ReactReconcileTransaction} transaction + * @optional + */ + componentWillUpdate: 'DEFINE_MANY', + + /** + * Invoked when the component's DOM representation has been updated. + * + * Use this as an opportunity to operate on the DOM when the component has + * been updated. + * + * @param {object} prevProps + * @param {?object} prevState + * @param {?object} prevContext + * @param {DOMElement} rootNode DOM element representing the component. + * @optional + */ + componentDidUpdate: 'DEFINE_MANY', + + /** + * Invoked when the component is about to be removed from its parent and have + * its DOM representation destroyed. + * + * Use this as an opportunity to deallocate any external resources. + * + * NOTE: There is no `componentDidUnmount` since your component will have been + * destroyed by that point. + * + * @optional + */ + componentWillUnmount: 'DEFINE_MANY', + + /** + * Replacement for (deprecated) `componentWillMount`. + * + * @optional + */ + UNSAFE_componentWillMount: 'DEFINE_MANY', + + /** + * Replacement for (deprecated) `componentWillReceiveProps`. + * + * @optional + */ + UNSAFE_componentWillReceiveProps: 'DEFINE_MANY', + + /** + * Replacement for (deprecated) `componentWillUpdate`. + * + * @optional + */ + UNSAFE_componentWillUpdate: 'DEFINE_MANY', + + // ==== Advanced methods ==== + + /** + * Updates the component's currently mounted DOM representation. + * + * By default, this implements React's rendering and reconciliation algorithm. + * Sophisticated clients may wish to override this. + * + * @param {ReactReconcileTransaction} transaction + * @internal + * @overridable + */ + updateComponent: 'OVERRIDE_BASE' + }; + + /** + * Similar to ReactClassInterface but for static methods. + */ + var ReactClassStaticInterface = { + /** + * This method is invoked after a component is instantiated and when it + * receives new props. Return an object to update state in response to + * prop changes. Return null to indicate no change to state. + * + * If an object is returned, its keys will be merged into the existing state. + * + * @return {object || null} + * @optional + */ + getDerivedStateFromProps: 'DEFINE_MANY_MERGED' + }; + + /** + * Mapping from class specification keys to special processing functions. + * + * Although these are declared like instance properties in the specification + * when defining classes using `React.createClass`, they are actually static + * and are accessible on the constructor instead of the prototype. Despite + * being static, they must be defined outside of the "statics" key under + * which all other static methods are defined. + */ + var RESERVED_SPEC_KEYS = { + displayName: function(Constructor, displayName) { + Constructor.displayName = displayName; + }, + mixins: function(Constructor, mixins) { + if (mixins) { + for (var i = 0; i < mixins.length; i++) { + mixSpecIntoComponent(Constructor, mixins[i]); + } + } + }, + childContextTypes: function(Constructor, childContextTypes) { + if (process.env.NODE_ENV !== 'production') { + validateTypeDef(Constructor, childContextTypes, 'childContext'); + } + Constructor.childContextTypes = _assign( + {}, + Constructor.childContextTypes, + childContextTypes + ); + }, + contextTypes: function(Constructor, contextTypes) { + if (process.env.NODE_ENV !== 'production') { + validateTypeDef(Constructor, contextTypes, 'context'); + } + Constructor.contextTypes = _assign( + {}, + Constructor.contextTypes, + contextTypes + ); + }, + /** + * Special case getDefaultProps which should move into statics but requires + * automatic merging. + */ + getDefaultProps: function(Constructor, getDefaultProps) { + if (Constructor.getDefaultProps) { + Constructor.getDefaultProps = createMergedResultFunction( + Constructor.getDefaultProps, + getDefaultProps + ); + } else { + Constructor.getDefaultProps = getDefaultProps; + } + }, + propTypes: function(Constructor, propTypes) { + if (process.env.NODE_ENV !== 'production') { + validateTypeDef(Constructor, propTypes, 'prop'); + } + Constructor.propTypes = _assign({}, Constructor.propTypes, propTypes); + }, + statics: function(Constructor, statics) { + mixStaticSpecIntoComponent(Constructor, statics); + }, + autobind: function() {} + }; + + function validateTypeDef(Constructor, typeDef, location) { + for (var propName in typeDef) { + if (typeDef.hasOwnProperty(propName)) { + // use a warning instead of an _invariant so components + // don't show up in prod but only in __DEV__ + if (process.env.NODE_ENV !== 'production') { + warning( + typeof typeDef[propName] === 'function', + '%s: %s type `%s` is invalid; it must be a function, usually from ' + + 'React.PropTypes.', + Constructor.displayName || 'ReactClass', + ReactPropTypeLocationNames[location], + propName + ); + } + } + } + } + + function validateMethodOverride(isAlreadyDefined, name) { + var specPolicy = ReactClassInterface.hasOwnProperty(name) + ? ReactClassInterface[name] + : null; + + // Disallow overriding of base class methods unless explicitly allowed. + if (ReactClassMixin.hasOwnProperty(name)) { + _invariant( + specPolicy === 'OVERRIDE_BASE', + 'ReactClassInterface: You are attempting to override ' + + '`%s` from your class specification. Ensure that your method names ' + + 'do not overlap with React methods.', + name + ); + } + + // Disallow defining methods more than once unless explicitly allowed. + if (isAlreadyDefined) { + _invariant( + specPolicy === 'DEFINE_MANY' || specPolicy === 'DEFINE_MANY_MERGED', + 'ReactClassInterface: You are attempting to define ' + + '`%s` on your component more than once. This conflict may be due ' + + 'to a mixin.', + name + ); + } + } + + /** + * Mixin helper which handles policy validation and reserved + * specification keys when building React classes. + */ + function mixSpecIntoComponent(Constructor, spec) { + if (!spec) { + if (process.env.NODE_ENV !== 'production') { + var typeofSpec = typeof spec; + var isMixinValid = typeofSpec === 'object' && spec !== null; + + if (process.env.NODE_ENV !== 'production') { + warning( + isMixinValid, + "%s: You're attempting to include a mixin that is either null " + + 'or not an object. Check the mixins included by the component, ' + + 'as well as any mixins they include themselves. ' + + 'Expected object but got %s.', + Constructor.displayName || 'ReactClass', + spec === null ? null : typeofSpec + ); + } + } + + return; + } + + _invariant( + typeof spec !== 'function', + "ReactClass: You're attempting to " + + 'use a component class or function as a mixin. Instead, just use a ' + + 'regular object.' + ); + _invariant( + !isValidElement(spec), + "ReactClass: You're attempting to " + + 'use a component as a mixin. Instead, just use a regular object.' + ); + + var proto = Constructor.prototype; + var autoBindPairs = proto.__reactAutoBindPairs; + + // By handling mixins before any other properties, we ensure the same + // chaining order is applied to methods with DEFINE_MANY policy, whether + // mixins are listed before or after these methods in the spec. + if (spec.hasOwnProperty(MIXINS_KEY)) { + RESERVED_SPEC_KEYS.mixins(Constructor, spec.mixins); + } + + for (var name in spec) { + if (!spec.hasOwnProperty(name)) { + continue; + } + + if (name === MIXINS_KEY) { + // We have already handled mixins in a special case above. + continue; + } + + var property = spec[name]; + var isAlreadyDefined = proto.hasOwnProperty(name); + validateMethodOverride(isAlreadyDefined, name); + + if (RESERVED_SPEC_KEYS.hasOwnProperty(name)) { + RESERVED_SPEC_KEYS[name](Constructor, property); + } else { + // Setup methods on prototype: + // The following member methods should not be automatically bound: + // 1. Expected ReactClass methods (in the "interface"). + // 2. Overridden methods (that were mixed in). + var isReactClassMethod = ReactClassInterface.hasOwnProperty(name); + var isFunction = typeof property === 'function'; + var shouldAutoBind = + isFunction && + !isReactClassMethod && + !isAlreadyDefined && + spec.autobind !== false; + + if (shouldAutoBind) { + autoBindPairs.push(name, property); + proto[name] = property; + } else { + if (isAlreadyDefined) { + var specPolicy = ReactClassInterface[name]; + + // These cases should already be caught by validateMethodOverride. + _invariant( + isReactClassMethod && + (specPolicy === 'DEFINE_MANY_MERGED' || + specPolicy === 'DEFINE_MANY'), + 'ReactClass: Unexpected spec policy %s for key %s ' + + 'when mixing in component specs.', + specPolicy, + name + ); + + // For methods which are defined more than once, call the existing + // methods before calling the new property, merging if appropriate. + if (specPolicy === 'DEFINE_MANY_MERGED') { + proto[name] = createMergedResultFunction(proto[name], property); + } else if (specPolicy === 'DEFINE_MANY') { + proto[name] = createChainedFunction(proto[name], property); + } + } else { + proto[name] = property; + if (process.env.NODE_ENV !== 'production') { + // Add verbose displayName to the function, which helps when looking + // at profiling tools. + if (typeof property === 'function' && spec.displayName) { + proto[name].displayName = spec.displayName + '_' + name; + } + } + } + } + } + } + } + + function mixStaticSpecIntoComponent(Constructor, statics) { + if (!statics) { + return; + } + + for (var name in statics) { + var property = statics[name]; + if (!statics.hasOwnProperty(name)) { + continue; + } + + var isReserved = name in RESERVED_SPEC_KEYS; + _invariant( + !isReserved, + 'ReactClass: You are attempting to define a reserved ' + + 'property, `%s`, that shouldn\'t be on the "statics" key. Define it ' + + 'as an instance property instead; it will still be accessible on the ' + + 'constructor.', + name + ); + + var isAlreadyDefined = name in Constructor; + if (isAlreadyDefined) { + var specPolicy = ReactClassStaticInterface.hasOwnProperty(name) + ? ReactClassStaticInterface[name] + : null; + + _invariant( + specPolicy === 'DEFINE_MANY_MERGED', + 'ReactClass: You are attempting to define ' + + '`%s` on your component more than once. This conflict may be ' + + 'due to a mixin.', + name + ); + + Constructor[name] = createMergedResultFunction(Constructor[name], property); + + return; + } + + Constructor[name] = property; + } + } + + /** + * Merge two objects, but throw if both contain the same key. + * + * @param {object} one The first object, which is mutated. + * @param {object} two The second object + * @return {object} one after it has been mutated to contain everything in two. + */ + function mergeIntoWithNoDuplicateKeys(one, two) { + _invariant( + one && two && typeof one === 'object' && typeof two === 'object', + 'mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.' + ); + + for (var key in two) { + if (two.hasOwnProperty(key)) { + _invariant( + one[key] === undefined, + 'mergeIntoWithNoDuplicateKeys(): ' + + 'Tried to merge two objects with the same key: `%s`. This conflict ' + + 'may be due to a mixin; in particular, this may be caused by two ' + + 'getInitialState() or getDefaultProps() methods returning objects ' + + 'with clashing keys.', + key + ); + one[key] = two[key]; } + } + return one; + } + + /** + * Creates a function that invokes two functions and merges their return values. + * + * @param {function} one Function to invoke first. + * @param {function} two Function to invoke second. + * @return {function} Function that invokes the two argument functions. + * @private + */ + function createMergedResultFunction(one, two) { + return function mergedResult() { + var a = one.apply(this, arguments); + var b = two.apply(this, arguments); + if (a == null) { + return b; + } else if (b == null) { + return a; + } + var c = {}; + mergeIntoWithNoDuplicateKeys(c, a); + mergeIntoWithNoDuplicateKeys(c, b); + return c; }; - }, - getInitialState: function getInitialState() { - return { - location: null, - routes: null, - params: null, - components: null + } + + /** + * Creates a function that invokes two functions and ignores their return vales. + * + * @param {function} one Function to invoke first. + * @param {function} two Function to invoke second. + * @return {function} Function that invokes the two argument functions. + * @private + */ + function createChainedFunction(one, two) { + return function chainedFunction() { + one.apply(this, arguments); + two.apply(this, arguments); }; - }, - handleError: function handleError(error) { - if (this.props.onError) { - this.props.onError.call(this, error); - } else { - // Throw errors by default so we don't silently swallow them! - throw error; // This error probably occurred in getChildRoutes or getComponents. + } + + /** + * Binds a method to the component. + * + * @param {object} component Component whose method is going to be bound. + * @param {function} method Method to be bound. + * @return {function} The bound method. + */ + function bindAutoBindMethod(component, method) { + var boundMethod = method.bind(component); + if (process.env.NODE_ENV !== 'production') { + boundMethod.__reactBoundContext = component; + boundMethod.__reactBoundMethod = method; + boundMethod.__reactBoundArguments = null; + var componentName = component.constructor.displayName; + var _bind = boundMethod.bind; + boundMethod.bind = function(newThis) { + for ( + var _len = arguments.length, + args = Array(_len > 1 ? _len - 1 : 0), + _key = 1; + _key < _len; + _key++ + ) { + args[_key - 1] = arguments[_key]; + } + + // User is trying to bind() an autobound method; we effectively will + // ignore the value of "this" that the user is trying to use, so + // let's warn. + if (newThis !== component && newThis !== null) { + if (process.env.NODE_ENV !== 'production') { + warning( + false, + 'bind(): React component methods may only be bound to the ' + + 'component instance. See %s', + componentName + ); + } + } else if (!args.length) { + if (process.env.NODE_ENV !== 'production') { + warning( + false, + 'bind(): You are binding a component method to the component. ' + + 'React does this for you automatically in a high-performance ' + + 'way, so you can safely remove this call. See %s', + componentName + ); + } + return boundMethod; + } + var reboundMethod = _bind.apply(boundMethod, arguments); + reboundMethod.__reactBoundContext = component; + reboundMethod.__reactBoundMethod = method; + reboundMethod.__reactBoundArguments = args; + return reboundMethod; + }; } - }, - createRouterObject: function createRouterObject(state) { - var matchContext = this.props.matchContext; + return boundMethod; + } - if (matchContext) { - return matchContext.router; + /** + * Binds all auto-bound methods in a component. + * + * @param {object} component Component whose method is going to be bound. + */ + function bindAutoBindMethods(component) { + var pairs = component.__reactAutoBindPairs; + for (var i = 0; i < pairs.length; i += 2) { + var autoBindKey = pairs[i]; + var method = pairs[i + 1]; + component[autoBindKey] = bindAutoBindMethod(component, method); } + } - var history = this.props.history; + var IsMountedPreMixin = { + componentDidMount: function() { + this.__isMounted = true; + } + }; + + var IsMountedPostMixin = { + componentWillUnmount: function() { + this.__isMounted = false; + } + }; - return (0, _RouterUtils.createRouterObject)(history, this.transitionManager, state); - }, - createTransitionManager: function createTransitionManager() { - var matchContext = this.props.matchContext; + /** + * Add more to the ReactClass base class. These are all legacy features and + * therefore not already part of the modern ReactComponent. + */ + var ReactClassMixin = { + /** + * TODO: This will be deprecated because state should always keep a consistent + * type signature and the only use case for this, is to avoid that. + */ + replaceState: function(newState, callback) { + this.updater.enqueueReplaceState(this, newState, callback); + }, - if (matchContext) { - return matchContext.transitionManager; + /** + * Checks whether or not this composite component is mounted. + * @return {boolean} True if mounted, false otherwise. + * @protected + * @final + */ + isMounted: function() { + if (process.env.NODE_ENV !== 'production') { + warning( + this.__didWarnIsMounted, + '%s: isMounted is deprecated. Instead, make sure to clean up ' + + 'subscriptions and pending requests in componentWillUnmount to ' + + 'prevent memory leaks.', + (this.constructor && this.constructor.displayName) || + this.name || + 'Component' + ); + this.__didWarnIsMounted = true; + } + return !!this.__isMounted; } + }; - var history = this.props.history; - var _props = this.props, - routes = _props.routes, - children = _props.children; + var ReactClassComponent = function() {}; + _assign( + ReactClassComponent.prototype, + ReactComponent.prototype, + ReactClassMixin + ); + /** + * Creates a composite component class given a class specification. + * See https://facebook.github.io/react/docs/top-level-api.html#react.createclass + * + * @param {object} spec Class specification (which must define `render`). + * @return {function} Component constructor function. + * @public + */ + function createClass(spec) { + // To keep our warnings more understandable, we'll use a little hack here to + // ensure that Constructor.name !== 'Constructor'. This makes sure we don't + // unnecessarily identify a class without displayName as 'Constructor'. + var Constructor = identity(function(props, context, updater) { + // This constructor gets overridden by mocks. The argument is used + // by mocks to assert on what gets mounted. + + if (process.env.NODE_ENV !== 'production') { + warning( + this instanceof Constructor, + 'Something is calling a React component directly. Use a factory or ' + + 'JSX instead. See: https://fb.me/react-legacyfactory' + ); + } - !history.getCurrentLocation ? process.env.NODE_ENV !== 'production' ? (0, _invariant2.default)(false, 'You have provided a history object created with history v4.x or v2.x ' + 'and earlier. This version of React Router is only compatible with v3 ' + 'history objects. Please change to history v3.x.') : (0, _invariant2.default)(false) : void 0; + // Wire up auto-binding + if (this.__reactAutoBindPairs.length) { + bindAutoBindMethods(this); + } - return (0, _createTransitionManager3.default)(history, (0, _RouteUtils.createRoutes)(routes || children)); - }, - componentWillMount: function componentWillMount() { - var _this = this; + this.props = props; + this.context = context; + this.refs = emptyObject; + this.updater = updater || ReactNoopUpdateQueue; - this.transitionManager = this.createTransitionManager(); - this.router = this.createRouterObject(this.state); + this.state = null; - this._unlisten = this.transitionManager.listen(function (error, state) { - if (error) { - _this.handleError(error); - } else { - // Keep the identity of this.router because of a caveat in ContextUtils: - // they only work if the object identity is preserved. - (0, _RouterUtils.assignRouterState)(_this.router, state); - _this.setState(state, _this.props.onUpdate); + // ReactClasses doesn't have constructors. Instead, they use the + // getInitialState and componentWillMount methods for initialization. + + var initialState = this.getInitialState ? this.getInitialState() : null; + if (process.env.NODE_ENV !== 'production') { + // We allow auto-mocks to proceed as if they're returning null. + if ( + initialState === undefined && + this.getInitialState._isMockFunction + ) { + // This is probably bad practice. Consider warning here and + // deprecating this convenience. + initialState = null; + } } + _invariant( + typeof initialState === 'object' && !Array.isArray(initialState), + '%s.getInitialState(): must return an object or null', + Constructor.displayName || 'ReactCompositeComponent' + ); + + this.state = initialState; }); - }, + Constructor.prototype = new ReactClassComponent(); + Constructor.prototype.constructor = Constructor; + Constructor.prototype.__reactAutoBindPairs = []; + injectedMixins.forEach(mixSpecIntoComponent.bind(null, Constructor)); - /* istanbul ignore next: sanity check */ - componentWillReceiveProps: function componentWillReceiveProps(nextProps) { - process.env.NODE_ENV !== 'production' ? (0, _routerWarning2.default)(nextProps.history === this.props.history, 'You cannot change ; it will be ignored') : void 0; + mixSpecIntoComponent(Constructor, IsMountedPreMixin); + mixSpecIntoComponent(Constructor, spec); + mixSpecIntoComponent(Constructor, IsMountedPostMixin); - process.env.NODE_ENV !== 'production' ? (0, _routerWarning2.default)((nextProps.routes || nextProps.children) === (this.props.routes || this.props.children), 'You cannot change ; it will be ignored') : void 0; - }, - componentWillUnmount: function componentWillUnmount() { - if (this._unlisten) this._unlisten(); - }, - render: function render() { - var _state = this.state, - location = _state.location, - routes = _state.routes, - params = _state.params, - components = _state.components; + // Initialize the defaultProps property after all mixins have been merged. + if (Constructor.getDefaultProps) { + Constructor.defaultProps = Constructor.getDefaultProps(); + } - var _props2 = this.props, - createElement = _props2.createElement, - render = _props2.render, - props = _objectWithoutProperties(_props2, ['createElement', 'render']); + if (process.env.NODE_ENV !== 'production') { + // This is a tag to indicate that the use of these method names is ok, + // since it's used with createClass. If it's not, then it's likely a + // mistake so we'll warn you to use the static property, property + // initializer or constructor respectively. + if (Constructor.getDefaultProps) { + Constructor.getDefaultProps.isReactClassApproved = {}; + } + if (Constructor.prototype.getInitialState) { + Constructor.prototype.getInitialState.isReactClassApproved = {}; + } + } - if (location == null) return null; // Async match + _invariant( + Constructor.prototype.render, + 'createClass(...): Class specification must implement a `render` method.' + ); - // Only forward non-Router-specific props to routing context, as those are - // the only ones that might be custom routing context props. - Object.keys(Router.propTypes).forEach(function (propType) { - return delete props[propType]; - }); + if (process.env.NODE_ENV !== 'production') { + warning( + !Constructor.prototype.componentShouldUpdate, + '%s has a method called ' + + 'componentShouldUpdate(). Did you mean shouldComponentUpdate()? ' + + 'The name is phrased as a question because the function is ' + + 'expected to return a value.', + spec.displayName || 'A component' + ); + warning( + !Constructor.prototype.componentWillRecieveProps, + '%s has a method called ' + + 'componentWillRecieveProps(). Did you mean componentWillReceiveProps()?', + spec.displayName || 'A component' + ); + warning( + !Constructor.prototype.UNSAFE_componentWillRecieveProps, + '%s has a method called UNSAFE_componentWillRecieveProps(). ' + + 'Did you mean UNSAFE_componentWillReceiveProps()?', + spec.displayName || 'A component' + ); + } - return render(_extends({}, props, { - router: this.router, - location: location, - routes: routes, - params: params, - components: components, - createElement: createElement - })); + // Reduce time spent doing lookups by setting these on the prototype. + for (var methodName in ReactClassInterface) { + if (!Constructor.prototype[methodName]) { + Constructor.prototype[methodName] = null; + } + } + + return Constructor; } - }); - exports.default = Router; - module.exports = exports['default']; + return createClass; + } + + module.exports = factory; + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 45 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 55 */ +/***/ (function(module, exports, __webpack_require__) { + + /* WEBPACK VAR INJECTION */(function(process) {/** + * Copyright (c) 2013-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + */ + + 'use strict'; + + var emptyObject = {}; + + if (process.env.NODE_ENV !== 'production') { + Object.freeze(emptyObject); + } + + module.exports = emptyObject; + /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) + +/***/ }), +/* 56 */ +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {'use strict'; @@ -5907,25 +7831,27 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = createTransitionManager; - var _routerWarning = __webpack_require__(46); + var _routerWarning = __webpack_require__(57); var _routerWarning2 = _interopRequireDefault(_routerWarning); - var _computeChangedRoutes2 = __webpack_require__(48); + var _computeChangedRoutes2 = __webpack_require__(59); var _computeChangedRoutes3 = _interopRequireDefault(_computeChangedRoutes2); - var _TransitionUtils = __webpack_require__(49); + var _TransitionUtils = __webpack_require__(60); - var _isActive2 = __webpack_require__(51); + var _TransitionUtils2 = _interopRequireDefault(_TransitionUtils); + + var _isActive2 = __webpack_require__(62); var _isActive3 = _interopRequireDefault(_isActive2); - var _getComponents = __webpack_require__(52); + var _getComponents = __webpack_require__(63); var _getComponents2 = _interopRequireDefault(_getComponents); - var _matchRoutes = __webpack_require__(54); + var _matchRoutes = __webpack_require__(65); var _matchRoutes2 = _interopRequireDefault(_matchRoutes); @@ -5940,8 +7866,15 @@ return /******/ (function(modules) { // webpackBootstrap function createTransitionManager(history, routes) { var state = {}; + var _getTransitionUtils = (0, _TransitionUtils2.default)(), + runEnterHooks = _getTransitionUtils.runEnterHooks, + runChangeHooks = _getTransitionUtils.runChangeHooks, + runLeaveHooks = _getTransitionUtils.runLeaveHooks; + // Signature should be (location, indexOnly), but needs to support (path, // query, indexOnly) + + function isActive(location, indexOnly) { location = history.createLocation(location); @@ -5973,7 +7906,7 @@ return /******/ (function(modules) { // webpackBootstrap changeRoutes = _computeChangedRoutes.changeRoutes, enterRoutes = _computeChangedRoutes.enterRoutes; - (0, _TransitionUtils.runLeaveHooks)(leaveRoutes, state); + runLeaveHooks(leaveRoutes, state); // Tear down confirmation hooks for left routes leaveRoutes.filter(function (route) { @@ -5981,10 +7914,10 @@ return /******/ (function(modules) { // webpackBootstrap }).forEach(removeListenBeforeHooksForRoute); // change and enter hooks are run in series - (0, _TransitionUtils.runChangeHooks)(changeRoutes, state, nextState, function (error, redirectInfo) { + runChangeHooks(changeRoutes, state, nextState, function (error, redirectInfo) { if (error || redirectInfo) return handleErrorOrRedirect(error, redirectInfo); - (0, _TransitionUtils.runEnterHooks)(enterRoutes, nextState, finishEnterHooks); + runEnterHooks(enterRoutes, nextState, finishEnterHooks); }); function finishEnterHooks(error, redirectInfo) { @@ -6176,9 +8109,9 @@ return /******/ (function(modules) { // webpackBootstrap module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 46 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 57 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -6186,7 +8119,7 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = routerWarning; exports._resetWarned = _resetWarned; - var _warning = __webpack_require__(47); + var _warning = __webpack_require__(58); var _warning2 = _interopRequireDefault(_warning); @@ -6217,9 +8150,9 @@ return /******/ (function(modules) { // webpackBootstrap warned = {}; } -/***/ }, -/* 47 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 58 */ +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {/** * Copyright 2014-2015, Facebook, Inc. @@ -6284,15 +8217,15 @@ return /******/ (function(modules) { // webpackBootstrap /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 48 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 59 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; exports.__esModule = true; - var _PatternUtils = __webpack_require__(42); + var _PatternUtils = __webpack_require__(50); function routeParamsChanged(route, prevState, nextState) { if (!route.path) return false; @@ -6325,31 +8258,29 @@ return /******/ (function(modules) { // webpackBootstrap changeRoutes = void 0, enterRoutes = void 0; if (prevRoutes) { - (function () { - var parentIsLeaving = false; - leaveRoutes = prevRoutes.filter(function (route) { - if (parentIsLeaving) { - return true; - } else { - var isLeaving = nextRoutes.indexOf(route) === -1 || routeParamsChanged(route, prevState, nextState); - if (isLeaving) parentIsLeaving = true; - return isLeaving; - } - }); + var parentIsLeaving = false; + leaveRoutes = prevRoutes.filter(function (route) { + if (parentIsLeaving) { + return true; + } else { + var isLeaving = nextRoutes.indexOf(route) === -1 || routeParamsChanged(route, prevState, nextState); + if (isLeaving) parentIsLeaving = true; + return isLeaving; + } + }); - // onLeave hooks start at the leaf route. - leaveRoutes.reverse(); + // onLeave hooks start at the leaf route. + leaveRoutes.reverse(); - enterRoutes = []; - changeRoutes = []; + enterRoutes = []; + changeRoutes = []; - nextRoutes.forEach(function (route) { - var isNew = prevRoutes.indexOf(route) === -1; - var paramsChanged = leaveRoutes.indexOf(route) !== -1; + nextRoutes.forEach(function (route) { + var isNew = prevRoutes.indexOf(route) === -1; + var paramsChanged = leaveRoutes.indexOf(route) !== -1; - if (isNew || paramsChanged) enterRoutes.push(route);else changeRoutes.push(route); - }); - })(); + if (isNew || paramsChanged) enterRoutes.push(route);else changeRoutes.push(route); + }); } else { leaveRoutes = []; changeRoutes = []; @@ -6366,18 +8297,16 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = computeChangedRoutes; module.exports = exports['default']; -/***/ }, -/* 49 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 60 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; exports.__esModule = true; - exports.runEnterHooks = runEnterHooks; - exports.runChangeHooks = runChangeHooks; - exports.runLeaveHooks = runLeaveHooks; + exports.default = getTransitionUtils; - var _AsyncUtils = __webpack_require__(50); + var _AsyncUtils = __webpack_require__(61); function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } @@ -6407,128 +8336,137 @@ return /******/ (function(modules) { // webpackBootstrap }; }; - var enterHooks = new PendingHooks(); - var changeHooks = new PendingHooks(); - - function createTransitionHook(hook, route, asyncArity, pendingHooks) { - var isSync = hook.length < asyncArity; - - var transitionHook = function transitionHook() { - for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } + function getTransitionUtils() { + var enterHooks = new PendingHooks(); + var changeHooks = new PendingHooks(); - hook.apply(route, args); + function createTransitionHook(hook, route, asyncArity, pendingHooks) { + var isSync = hook.length < asyncArity; - if (isSync) { - var callback = args[args.length - 1]; - // Assume hook executes synchronously and - // automatically call the callback. - callback(); - } - }; + var transitionHook = function transitionHook() { + for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } - pendingHooks.add(transitionHook); + hook.apply(route, args); - return transitionHook; - } + if (isSync) { + var callback = args[args.length - 1]; + // Assume hook executes synchronously and + // automatically call the callback. + callback(); + } + }; - function getEnterHooks(routes) { - return routes.reduce(function (hooks, route) { - if (route.onEnter) hooks.push(createTransitionHook(route.onEnter, route, 3, enterHooks)); - return hooks; - }, []); - } + pendingHooks.add(transitionHook); - function getChangeHooks(routes) { - return routes.reduce(function (hooks, route) { - if (route.onChange) hooks.push(createTransitionHook(route.onChange, route, 4, changeHooks)); - return hooks; - }, []); - } + return transitionHook; + } - function runTransitionHooks(length, iter, callback) { - if (!length) { - callback(); - return; + function getEnterHooks(routes) { + return routes.reduce(function (hooks, route) { + if (route.onEnter) hooks.push(createTransitionHook(route.onEnter, route, 3, enterHooks)); + return hooks; + }, []); } - var redirectInfo = void 0; - function replace(location) { - redirectInfo = location; + function getChangeHooks(routes) { + return routes.reduce(function (hooks, route) { + if (route.onChange) hooks.push(createTransitionHook(route.onChange, route, 4, changeHooks)); + return hooks; + }, []); } - (0, _AsyncUtils.loopAsync)(length, function (index, next, done) { - iter(index, replace, function (error) { - if (error || redirectInfo) { - done(error, redirectInfo); // No need to continue. - } else { - next(); - } - }); - }, callback); - } + function runTransitionHooks(length, iter, callback) { + if (!length) { + callback(); + return; + } - /** - * Runs all onEnter hooks in the given array of routes in order - * with onEnter(nextState, replace, callback) and calls - * callback(error, redirectInfo) when finished. The first hook - * to use replace short-circuits the loop. - * - * If a hook needs to run asynchronously, it may use the callback - * function. However, doing so will cause the transition to pause, - * which could lead to a non-responsive UI if the hook is slow. - */ - function runEnterHooks(routes, nextState, callback) { - enterHooks.clear(); - var hooks = getEnterHooks(routes); - return runTransitionHooks(hooks.length, function (index, replace, next) { - var wrappedNext = function wrappedNext() { - if (enterHooks.has(hooks[index])) { - next.apply(undefined, arguments); - enterHooks.remove(hooks[index]); - } - }; - hooks[index](nextState, replace, wrappedNext); - }, callback); - } + var redirectInfo = void 0; + function replace(location) { + redirectInfo = location; + } - /** - * Runs all onChange hooks in the given array of routes in order - * with onChange(prevState, nextState, replace, callback) and calls - * callback(error, redirectInfo) when finished. The first hook - * to use replace short-circuits the loop. - * - * If a hook needs to run asynchronously, it may use the callback - * function. However, doing so will cause the transition to pause, - * which could lead to a non-responsive UI if the hook is slow. - */ - function runChangeHooks(routes, state, nextState, callback) { - changeHooks.clear(); - var hooks = getChangeHooks(routes); - return runTransitionHooks(hooks.length, function (index, replace, next) { - var wrappedNext = function wrappedNext() { - if (changeHooks.has(hooks[index])) { - next.apply(undefined, arguments); - changeHooks.remove(hooks[index]); - } - }; - hooks[index](state, nextState, replace, wrappedNext); - }, callback); - } + (0, _AsyncUtils.loopAsync)(length, function (index, next, done) { + iter(index, replace, function (error) { + if (error || redirectInfo) { + done(error, redirectInfo); // No need to continue. + } else { + next(); + } + }); + }, callback); + } - /** - * Runs all onLeave hooks in the given array of routes in order. - */ - function runLeaveHooks(routes, prevState) { - for (var i = 0, len = routes.length; i < len; ++i) { - if (routes[i].onLeave) routes[i].onLeave.call(routes[i], prevState); + /** + * Runs all onEnter hooks in the given array of routes in order + * with onEnter(nextState, replace, callback) and calls + * callback(error, redirectInfo) when finished. The first hook + * to use replace short-circuits the loop. + * + * If a hook needs to run asynchronously, it may use the callback + * function. However, doing so will cause the transition to pause, + * which could lead to a non-responsive UI if the hook is slow. + */ + function runEnterHooks(routes, nextState, callback) { + enterHooks.clear(); + var hooks = getEnterHooks(routes); + return runTransitionHooks(hooks.length, function (index, replace, next) { + var wrappedNext = function wrappedNext() { + if (enterHooks.has(hooks[index])) { + next.apply(undefined, arguments); + enterHooks.remove(hooks[index]); + } + }; + hooks[index](nextState, replace, wrappedNext); + }, callback); + } + + /** + * Runs all onChange hooks in the given array of routes in order + * with onChange(prevState, nextState, replace, callback) and calls + * callback(error, redirectInfo) when finished. The first hook + * to use replace short-circuits the loop. + * + * If a hook needs to run asynchronously, it may use the callback + * function. However, doing so will cause the transition to pause, + * which could lead to a non-responsive UI if the hook is slow. + */ + function runChangeHooks(routes, state, nextState, callback) { + changeHooks.clear(); + var hooks = getChangeHooks(routes); + return runTransitionHooks(hooks.length, function (index, replace, next) { + var wrappedNext = function wrappedNext() { + if (changeHooks.has(hooks[index])) { + next.apply(undefined, arguments); + changeHooks.remove(hooks[index]); + } + }; + hooks[index](state, nextState, replace, wrappedNext); + }, callback); + } + + /** + * Runs all onLeave hooks in the given array of routes in order. + */ + function runLeaveHooks(routes, prevState) { + for (var i = 0, len = routes.length; i < len; ++i) { + if (routes[i].onLeave) routes[i].onLeave.call(routes[i], prevState); + } } + + return { + runEnterHooks: runEnterHooks, + runChangeHooks: runChangeHooks, + runLeaveHooks: runLeaveHooks + }; } + module.exports = exports['default']; -/***/ }, -/* 50 */ -/***/ function(module, exports) { +/***/ }), +/* 61 */ +/***/ (function(module, exports) { "use strict"; @@ -6619,9 +8557,9 @@ return /******/ (function(modules) { // webpackBootstrap }); } -/***/ }, -/* 51 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 62 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -6631,7 +8569,7 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = isActive; - var _PatternUtils = __webpack_require__(42); + var _PatternUtils = __webpack_require__(50); function deepEqual(a, b) { if (a == b) return true; @@ -6776,17 +8714,17 @@ return /******/ (function(modules) { // webpackBootstrap } module.exports = exports['default']; -/***/ }, -/* 52 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 63 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; exports.__esModule = true; - var _AsyncUtils = __webpack_require__(50); + var _AsyncUtils = __webpack_require__(61); - var _PromiseUtils = __webpack_require__(53); + var _PromiseUtils = __webpack_require__(64); function getComponentsForRoute(nextState, route, callback) { if (route.component || route.components) { @@ -6821,9 +8759,9 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = getComponents; module.exports = exports['default']; -/***/ }, -/* 53 */ -/***/ function(module, exports) { +/***/ }), +/* 64 */ +/***/ (function(module, exports) { 'use strict'; @@ -6833,9 +8771,9 @@ return /******/ (function(modules) { // webpackBootstrap return obj && typeof obj.then === 'function'; } -/***/ }, -/* 54 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 65 */ +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {'use strict'; @@ -6843,17 +8781,15 @@ return /******/ (function(modules) { // webpackBootstrap var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; - exports.default = matchRoutes; - var _AsyncUtils = __webpack_require__(50); + var _AsyncUtils = __webpack_require__(61); - var _PromiseUtils = __webpack_require__(53); + var _PromiseUtils = __webpack_require__(64); - var _PatternUtils = __webpack_require__(42); + var _PatternUtils = __webpack_require__(50); - var _routerWarning = __webpack_require__(46); + var _routerWarning = __webpack_require__(57); var _routerWarning2 = _interopRequireDefault(_routerWarning); @@ -6993,38 +8929,32 @@ return /******/ (function(modules) { // webpackBootstrap // By assumption, pattern is non-empty here, which is the prerequisite for // actually terminating a match. if (remainingPathname === '') { - var _ret = function () { - var match = { - routes: [route], - params: createParams(paramNames, paramValues) - }; - - getIndexRoute(route, location, paramNames, paramValues, function (error, indexRoute) { - if (error) { - callback(error); - } else { - if (Array.isArray(indexRoute)) { - var _match$routes; - - process.env.NODE_ENV !== 'production' ? (0, _routerWarning2.default)(indexRoute.every(function (route) { - return !route.path; - }), 'Index routes should not have paths') : void 0; - (_match$routes = match.routes).push.apply(_match$routes, indexRoute); - } else if (indexRoute) { - process.env.NODE_ENV !== 'production' ? (0, _routerWarning2.default)(!indexRoute.path, 'Index routes should not have paths') : void 0; - match.routes.push(indexRoute); - } + var match = { + routes: [route], + params: createParams(paramNames, paramValues) + }; - callback(null, match); + getIndexRoute(route, location, paramNames, paramValues, function (error, indexRoute) { + if (error) { + callback(error); + } else { + if (Array.isArray(indexRoute)) { + var _match$routes; + + process.env.NODE_ENV !== 'production' ? (0, _routerWarning2.default)(indexRoute.every(function (route) { + return !route.path; + }), 'Index routes should not have paths') : void 0; + (_match$routes = match.routes).push.apply(_match$routes, indexRoute); + } else if (indexRoute) { + process.env.NODE_ENV !== 'production' ? (0, _routerWarning2.default)(!indexRoute.path, 'Index routes should not have paths') : void 0; + match.routes.push(indexRoute); } - }); - return { - v: void 0 - }; - }(); + callback(null, match); + } + }); - if ((typeof _ret === 'undefined' ? 'undefined' : _typeof(_ret)) === "object") return _ret.v; + return; } } @@ -7102,9 +9032,9 @@ return /******/ (function(modules) { // webpackBootstrap module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 55 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 66 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -7112,36 +9042,29 @@ return /******/ (function(modules) { // webpackBootstrap exports.routes = exports.route = exports.components = exports.component = exports.history = undefined; exports.falsy = falsy; - var _react = __webpack_require__(7); + var _propTypes = __webpack_require__(42); - var func = _react.PropTypes.func, - object = _react.PropTypes.object, - arrayOf = _react.PropTypes.arrayOf, - oneOfType = _react.PropTypes.oneOfType, - element = _react.PropTypes.element, - shape = _react.PropTypes.shape, - string = _react.PropTypes.string; function falsy(props, propName, componentName) { if (props[propName]) return new Error('<' + componentName + '> should not have a "' + propName + '" prop'); } - var history = exports.history = shape({ - listen: func.isRequired, - push: func.isRequired, - replace: func.isRequired, - go: func.isRequired, - goBack: func.isRequired, - goForward: func.isRequired + var history = exports.history = (0, _propTypes.shape)({ + listen: _propTypes.func.isRequired, + push: _propTypes.func.isRequired, + replace: _propTypes.func.isRequired, + go: _propTypes.func.isRequired, + goBack: _propTypes.func.isRequired, + goForward: _propTypes.func.isRequired }); - var component = exports.component = oneOfType([func, string]); - var components = exports.components = oneOfType([component, object]); - var route = exports.route = oneOfType([object, element]); - var routes = exports.routes = oneOfType([route, arrayOf(route)]); + var component = exports.component = (0, _propTypes.oneOfType)([_propTypes.func, _propTypes.string]); + var components = exports.components = (0, _propTypes.oneOfType)([component, _propTypes.object]); + var route = exports.route = (0, _propTypes.oneOfType)([_propTypes.object, _propTypes.element]); + var routes = exports.routes = (0, _propTypes.oneOfType)([route, (0, _propTypes.arrayOf)(route)]); -/***/ }, -/* 56 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 67 */ +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {'use strict'; @@ -7151,7 +9074,7 @@ return /******/ (function(modules) { // webpackBootstrap var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; - var _invariant = __webpack_require__(43); + var _invariant = __webpack_require__(51); var _invariant2 = _interopRequireDefault(_invariant); @@ -7159,39 +9082,38 @@ return /******/ (function(modules) { // webpackBootstrap var _react2 = _interopRequireDefault(_react); - var _getRouteParams = __webpack_require__(57); + var _createReactClass = __webpack_require__(53); + + var _createReactClass2 = _interopRequireDefault(_createReactClass); + + var _propTypes = __webpack_require__(42); + + var _getRouteParams = __webpack_require__(68); var _getRouteParams2 = _interopRequireDefault(_getRouteParams); - var _ContextUtils = __webpack_require__(58); + var _ContextUtils = __webpack_require__(69); var _RouteUtils = __webpack_require__(40); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - var _React$PropTypes = _react2.default.PropTypes, - array = _React$PropTypes.array, - func = _React$PropTypes.func, - object = _React$PropTypes.object; - /** * A renders the component tree for a given router state * and sets the history object and the current location in context. */ - - var RouterContext = _react2.default.createClass({ + var RouterContext = (0, _createReactClass2.default)({ displayName: 'RouterContext', - mixins: [(0, _ContextUtils.ContextProvider)('router')], propTypes: { - router: object.isRequired, - location: object.isRequired, - routes: array.isRequired, - params: object.isRequired, - components: array.isRequired, - createElement: func.isRequired + router: _propTypes.object.isRequired, + location: _propTypes.object.isRequired, + routes: _propTypes.array.isRequired, + params: _propTypes.object.isRequired, + components: _propTypes.array.isRequired, + createElement: _propTypes.func.isRequired }, getDefaultProps: function getDefaultProps() { @@ -7202,7 +9124,7 @@ return /******/ (function(modules) { // webpackBootstrap childContextTypes: { - router: object.isRequired + router: _propTypes.object.isRequired }, getChildContext: function getChildContext() { @@ -7278,15 +9200,15 @@ return /******/ (function(modules) { // webpackBootstrap module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 57 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 68 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; exports.__esModule = true; - var _PatternUtils = __webpack_require__(42); + var _PatternUtils = __webpack_require__(50); /** * Extracts an object of params the given route cares about from @@ -7309,9 +9231,9 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = getRouteParams; module.exports = exports['default']; -/***/ }, -/* 58 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 69 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -7319,16 +9241,20 @@ return /******/ (function(modules) { // webpackBootstrap exports.ContextProvider = ContextProvider; exports.ContextSubscriber = ContextSubscriber; - var _react = __webpack_require__(7); + var _propTypes = __webpack_require__(42); + + var _propTypes2 = _interopRequireDefault(_propTypes); + + function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } // Works around issues with context updates failing to propagate. // Caveat: the context value is expected to never change its identity. // https://github.com/facebook/react/issues/2517 // https://github.com/reactjs/react-router/issues/470 - var contextProviderShape = _react.PropTypes.shape({ - subscribe: _react.PropTypes.func.isRequired, - eventIndex: _react.PropTypes.number.isRequired + var contextProviderShape = _propTypes2.default.shape({ + subscribe: _propTypes2.default.func.isRequired, + eventIndex: _propTypes2.default.number.isRequired }); function makeContextName(name) { @@ -7435,9 +9361,9 @@ return /******/ (function(modules) { // webpackBootstrap }, _ref4; } -/***/ }, -/* 59 */ -/***/ function(module, exports) { +/***/ }), +/* 70 */ +/***/ (function(module, exports) { "use strict"; @@ -7468,9 +9394,9 @@ return /******/ (function(modules) { // webpackBootstrap return router; } -/***/ }, -/* 60 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 71 */ +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {'use strict'; @@ -7482,26 +9408,24 @@ return /******/ (function(modules) { // webpackBootstrap var _react2 = _interopRequireDefault(_react); - var _invariant = __webpack_require__(43); + var _createReactClass = __webpack_require__(53); + + var _createReactClass2 = _interopRequireDefault(_createReactClass); + + var _propTypes = __webpack_require__(42); + + var _invariant = __webpack_require__(51); var _invariant2 = _interopRequireDefault(_invariant); var _PropTypes = __webpack_require__(41); - var _ContextUtils = __webpack_require__(58); + var _ContextUtils = __webpack_require__(69); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } - var _React$PropTypes = _react2.default.PropTypes, - bool = _React$PropTypes.bool, - object = _React$PropTypes.object, - string = _React$PropTypes.string, - func = _React$PropTypes.func, - oneOfType = _React$PropTypes.oneOfType; - - function isLeftClickEvent(event) { return event.button === 0; } @@ -7533,16 +9457,10 @@ return /******/ (function(modules) { // webpackBootstrap * You could use the following component to link to that route: * * - * - * Links may pass along location state and/or query string parameters - * in the state/query props, respectively. - * - * */ - var Link = _react2.default.createClass({ + var Link = (0, _createReactClass2.default)({ displayName: 'Link', - mixins: [(0, _ContextUtils.ContextSubscriber)('router')], contextTypes: { @@ -7550,15 +9468,12 @@ return /******/ (function(modules) { // webpackBootstrap }, propTypes: { - to: oneOfType([string, object, func]), - query: object, - hash: string, - state: object, - activeStyle: object, - activeClassName: string, - onlyActiveOnIndex: bool.isRequired, - onClick: func, - target: string + to: (0, _propTypes.oneOfType)([_propTypes.string, _propTypes.object, _propTypes.func]), + activeStyle: _propTypes.object, + activeClassName: _propTypes.string, + onlyActiveOnIndex: _propTypes.bool.isRequired, + onClick: _propTypes.func, + target: _propTypes.string }, getDefaultProps: function getDefaultProps() { @@ -7632,9 +9547,9 @@ return /******/ (function(modules) { // webpackBootstrap module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 61 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 72 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -7646,7 +9561,11 @@ return /******/ (function(modules) { // webpackBootstrap var _react2 = _interopRequireDefault(_react); - var _Link = __webpack_require__(60); + var _createReactClass = __webpack_require__(53); + + var _createReactClass2 = _interopRequireDefault(_createReactClass); + + var _Link = __webpack_require__(71); var _Link2 = _interopRequireDefault(_Link); @@ -7655,8 +9574,9 @@ return /******/ (function(modules) { // webpackBootstrap /** * An is used to link to an . */ - var IndexLink = _react2.default.createClass({ + var IndexLink = (0, _createReactClass2.default)({ displayName: 'IndexLink', + render: function render() { return _react2.default.createElement(_Link2.default, _extends({}, this.props, { onlyActiveOnIndex: true })); } @@ -7665,9 +9585,9 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = IndexLink; module.exports = exports['default']; -/***/ }, -/* 62 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 73 */ +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {'use strict'; @@ -7677,7 +9597,7 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = withRouter; - var _invariant = __webpack_require__(43); + var _invariant = __webpack_require__(51); var _invariant2 = _interopRequireDefault(_invariant); @@ -7685,11 +9605,15 @@ return /******/ (function(modules) { // webpackBootstrap var _react2 = _interopRequireDefault(_react); - var _hoistNonReactStatics = __webpack_require__(63); + var _createReactClass = __webpack_require__(53); + + var _createReactClass2 = _interopRequireDefault(_createReactClass); + + var _hoistNonReactStatics = __webpack_require__(74); var _hoistNonReactStatics2 = _interopRequireDefault(_hoistNonReactStatics); - var _ContextUtils = __webpack_require__(58); + var _ContextUtils = __webpack_require__(69); var _PropTypes = __webpack_require__(41); @@ -7702,7 +9626,7 @@ return /******/ (function(modules) { // webpackBootstrap function withRouter(WrappedComponent, options) { var withRef = options && options.withRef; - var WithRouter = _react2.default.createClass({ + var WithRouter = (0, _createReactClass2.default)({ displayName: 'WithRouter', mixins: [(0, _ContextUtils.ContextSubscriber)('router')], @@ -7747,22 +9671,23 @@ return /******/ (function(modules) { // webpackBootstrap module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 63 */ -/***/ function(module, exports) { +/***/ }), +/* 74 */ +/***/ (function(module, exports) { + + 'use strict'; /** * Copyright 2015, Yahoo! Inc. * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms. */ - 'use strict'; - var REACT_STATICS = { childContextTypes: true, contextTypes: true, defaultProps: true, displayName: true, getDefaultProps: true, + getDerivedStateFromProps: true, mixins: true, propTypes: true, type: true @@ -7773,77 +9698,90 @@ return /******/ (function(modules) { // webpackBootstrap length: true, prototype: true, caller: true, + callee: true, arguments: true, arity: true }; - var isGetOwnPropertySymbolsAvailable = typeof Object.getOwnPropertySymbols === 'function'; + var defineProperty = Object.defineProperty; + var getOwnPropertyNames = Object.getOwnPropertyNames; + var getOwnPropertySymbols = Object.getOwnPropertySymbols; + var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; + var getPrototypeOf = Object.getPrototypeOf; + var objectPrototype = getPrototypeOf && getPrototypeOf(Object); - module.exports = function hoistNonReactStatics(targetComponent, sourceComponent, customStatics) { + function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) { if (typeof sourceComponent !== 'string') { // don't hoist over string (html) components - var keys = Object.getOwnPropertyNames(sourceComponent); - /* istanbul ignore else */ - if (isGetOwnPropertySymbolsAvailable) { - keys = keys.concat(Object.getOwnPropertySymbols(sourceComponent)); + if (objectPrototype) { + var inheritedComponent = getPrototypeOf(sourceComponent); + if (inheritedComponent && inheritedComponent !== objectPrototype) { + hoistNonReactStatics(targetComponent, inheritedComponent, blacklist); + } } - for (var i = 0; i < keys.length; ++i) { - if (!REACT_STATICS[keys[i]] && !KNOWN_STATICS[keys[i]] && (!customStatics || !customStatics[keys[i]])) { - try { - targetComponent[keys[i]] = sourceComponent[keys[i]]; - } catch (error) { + var keys = getOwnPropertyNames(sourceComponent); - } + if (getOwnPropertySymbols) { + keys = keys.concat(getOwnPropertySymbols(sourceComponent)); + } + + for (var i = 0; i < keys.length; ++i) { + var key = keys[i]; + if (!REACT_STATICS[key] && !KNOWN_STATICS[key] && (!blacklist || !blacklist[key])) { + var descriptor = getOwnPropertyDescriptor(sourceComponent, key); + try { // Avoid failures from read-only properties + defineProperty(targetComponent, key, descriptor); + } catch (e) {} } } + + return targetComponent; } return targetComponent; - }; + } + module.exports = hoistNonReactStatics; -/***/ }, -/* 64 */ -/***/ function(module, exports, __webpack_require__) { + +/***/ }), +/* 75 */ +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {'use strict'; exports.__esModule = true; - var _react = __webpack_require__(7); + var _createReactClass = __webpack_require__(53); - var _react2 = _interopRequireDefault(_react); + var _createReactClass2 = _interopRequireDefault(_createReactClass); + + var _propTypes = __webpack_require__(42); - var _routerWarning = __webpack_require__(46); + var _routerWarning = __webpack_require__(57); var _routerWarning2 = _interopRequireDefault(_routerWarning); - var _invariant = __webpack_require__(43); + var _invariant = __webpack_require__(51); var _invariant2 = _interopRequireDefault(_invariant); - var _Redirect = __webpack_require__(65); + var _Redirect = __webpack_require__(76); var _Redirect2 = _interopRequireDefault(_Redirect); - var _InternalPropTypes = __webpack_require__(55); + var _InternalPropTypes = __webpack_require__(66); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - var _React$PropTypes = _react2.default.PropTypes, - string = _React$PropTypes.string, - object = _React$PropTypes.object; - /** * An is used to redirect from an indexRoute. */ /* eslint-disable react/require-render-return */ - - var IndexRedirect = _react2.default.createClass({ + var IndexRedirect = (0, _createReactClass2.default)({ displayName: 'IndexRedirect', - statics: { createRouteFromReactElement: function createRouteFromReactElement(element, parentRoute) { /* istanbul ignore else: sanity check */ @@ -7856,9 +9794,9 @@ return /******/ (function(modules) { // webpackBootstrap }, propTypes: { - to: string.isRequired, - query: object, - state: object, + to: _propTypes.string.isRequired, + query: _propTypes.object, + state: _propTypes.object, onEnter: _InternalPropTypes.falsy, children: _InternalPropTypes.falsy }, @@ -7873,34 +9811,32 @@ return /******/ (function(modules) { // webpackBootstrap module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 65 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 76 */ +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {'use strict'; exports.__esModule = true; - var _react = __webpack_require__(7); + var _createReactClass = __webpack_require__(53); - var _react2 = _interopRequireDefault(_react); + var _createReactClass2 = _interopRequireDefault(_createReactClass); + + var _propTypes = __webpack_require__(42); - var _invariant = __webpack_require__(43); + var _invariant = __webpack_require__(51); var _invariant2 = _interopRequireDefault(_invariant); var _RouteUtils = __webpack_require__(40); - var _PatternUtils = __webpack_require__(42); + var _PatternUtils = __webpack_require__(50); - var _InternalPropTypes = __webpack_require__(55); + var _InternalPropTypes = __webpack_require__(66); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - var _React$PropTypes = _react2.default.PropTypes, - string = _React$PropTypes.string, - object = _React$PropTypes.object; - /** * A is used to declare another URL path a client should * be sent to when they request a given URL. @@ -7909,11 +9845,9 @@ return /******/ (function(modules) { // webpackBootstrap * and are traversed in the same manner. */ /* eslint-disable react/require-render-return */ - - var Redirect = _react2.default.createClass({ + var Redirect = (0, _createReactClass2.default)({ displayName: 'Redirect', - statics: { createRouteFromReactElement: function createRouteFromReactElement(element) { var route = (0, _RouteUtils.createRouteFromReactElement)(element); @@ -7963,11 +9897,11 @@ return /******/ (function(modules) { // webpackBootstrap }, propTypes: { - path: string, - from: string, // Alias for path - to: string.isRequired, - query: object, - state: object, + path: _propTypes.string, + from: _propTypes.string, // Alias for path + to: _propTypes.string.isRequired, + query: _propTypes.object, + state: _propTypes.object, onEnter: _InternalPropTypes.falsy, children: _InternalPropTypes.falsy }, @@ -7982,44 +9916,42 @@ return /******/ (function(modules) { // webpackBootstrap module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 66 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 77 */ +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {'use strict'; exports.__esModule = true; - var _react = __webpack_require__(7); + var _createReactClass = __webpack_require__(53); - var _react2 = _interopRequireDefault(_react); + var _createReactClass2 = _interopRequireDefault(_createReactClass); + + var _propTypes = __webpack_require__(42); - var _routerWarning = __webpack_require__(46); + var _routerWarning = __webpack_require__(57); var _routerWarning2 = _interopRequireDefault(_routerWarning); - var _invariant = __webpack_require__(43); + var _invariant = __webpack_require__(51); var _invariant2 = _interopRequireDefault(_invariant); var _RouteUtils = __webpack_require__(40); - var _InternalPropTypes = __webpack_require__(55); + var _InternalPropTypes = __webpack_require__(66); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - var func = _react2.default.PropTypes.func; - /** * An is used to specify its parent's in * a JSX route config. */ /* eslint-disable react/require-render-return */ - - var IndexRoute = _react2.default.createClass({ + var IndexRoute = (0, _createReactClass2.default)({ displayName: 'IndexRoute', - statics: { createRouteFromReactElement: function createRouteFromReactElement(element, parentRoute) { /* istanbul ignore else: sanity check */ @@ -8035,8 +9967,8 @@ return /******/ (function(modules) { // webpackBootstrap path: _InternalPropTypes.falsy, component: _InternalPropTypes.component, components: _InternalPropTypes.components, - getComponent: func, - getComponents: func + getComponent: _propTypes.func, + getComponents: _propTypes.func }, /* istanbul ignore next: sanity check */ @@ -8049,32 +9981,30 @@ return /******/ (function(modules) { // webpackBootstrap module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 67 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 78 */ +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {'use strict'; exports.__esModule = true; - var _react = __webpack_require__(7); + var _createReactClass = __webpack_require__(53); - var _react2 = _interopRequireDefault(_react); + var _createReactClass2 = _interopRequireDefault(_createReactClass); + + var _propTypes = __webpack_require__(42); - var _invariant = __webpack_require__(43); + var _invariant = __webpack_require__(51); var _invariant2 = _interopRequireDefault(_invariant); var _RouteUtils = __webpack_require__(40); - var _InternalPropTypes = __webpack_require__(55); + var _InternalPropTypes = __webpack_require__(66); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - var _React$PropTypes = _react2.default.PropTypes, - string = _React$PropTypes.string, - func = _React$PropTypes.func; - /** * A is used to declare which components are rendered to the * page when the URL matches a given pattern. @@ -8086,21 +10016,19 @@ return /******/ (function(modules) { // webpackBootstrap * rendered into the DOM, nested in the same order as in the tree. */ /* eslint-disable react/require-render-return */ - - var Route = _react2.default.createClass({ + var Route = (0, _createReactClass2.default)({ displayName: 'Route', - statics: { createRouteFromReactElement: _RouteUtils.createRouteFromReactElement }, propTypes: { - path: string, + path: _propTypes.string, component: _InternalPropTypes.component, components: _InternalPropTypes.components, - getComponent: func, - getComponents: func + getComponent: _propTypes.func, + getComponents: _propTypes.func }, /* istanbul ignore next: sanity check */ @@ -8113,9 +10041,9 @@ return /******/ (function(modules) { // webpackBootstrap module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 68 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 79 */ +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {'use strict'; @@ -8123,23 +10051,23 @@ return /******/ (function(modules) { // webpackBootstrap var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - var _Actions = __webpack_require__(69); + var _Actions = __webpack_require__(80); - var _invariant = __webpack_require__(43); + var _invariant = __webpack_require__(51); var _invariant2 = _interopRequireDefault(_invariant); - var _createMemoryHistory = __webpack_require__(70); + var _createMemoryHistory = __webpack_require__(81); var _createMemoryHistory2 = _interopRequireDefault(_createMemoryHistory); - var _createTransitionManager = __webpack_require__(45); + var _createTransitionManager = __webpack_require__(56); var _createTransitionManager2 = _interopRequireDefault(_createTransitionManager); var _RouteUtils = __webpack_require__(40); - var _RouterUtils = __webpack_require__(59); + var _RouterUtils = __webpack_require__(70); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -8191,9 +10119,9 @@ return /******/ (function(modules) { // webpackBootstrap module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 69 */ -/***/ function(module, exports) { +/***/ }), +/* 80 */ +/***/ (function(module, exports) { 'use strict'; @@ -8218,24 +10146,24 @@ return /******/ (function(modules) { // webpackBootstrap */ var POP = exports.POP = 'POP'; -/***/ }, -/* 70 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 81 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; exports.__esModule = true; exports.default = createMemoryHistory; - var _useQueries = __webpack_require__(71); + var _useQueries = __webpack_require__(82); var _useQueries2 = _interopRequireDefault(_useQueries); - var _useBasename = __webpack_require__(78); + var _useBasename = __webpack_require__(88); var _useBasename2 = _interopRequireDefault(_useBasename); - var _createMemoryHistory = __webpack_require__(79); + var _createMemoryHistory = __webpack_require__(89); var _createMemoryHistory2 = _interopRequireDefault(_createMemoryHistory); @@ -8254,9 +10182,9 @@ return /******/ (function(modules) { // webpackBootstrap } module.exports = exports['default']; -/***/ }, -/* 71 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 82 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -8264,15 +10192,15 @@ return /******/ (function(modules) { // webpackBootstrap var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - var _queryString = __webpack_require__(72); + var _queryString = __webpack_require__(83); - var _runTransitionHook = __webpack_require__(75); + var _runTransitionHook = __webpack_require__(85); var _runTransitionHook2 = _interopRequireDefault(_runTransitionHook); - var _LocationUtils = __webpack_require__(76); + var _LocationUtils = __webpack_require__(86); - var _PathUtils = __webpack_require__(77); + var _PathUtils = __webpack_require__(87); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -8380,13 +10308,13 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = useQueries; -/***/ }, -/* 72 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 83 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; - var strictUriEncode = __webpack_require__(73); - var objectAssign = __webpack_require__(74); + var strictUriEncode = __webpack_require__(84); + var objectAssign = __webpack_require__(46); function encoderForArrayFormat(opts) { switch (opts.arrayFormat) { @@ -8451,12 +10379,14 @@ return /******/ (function(modules) { // webpackBootstrap case 'bracket': return function (key, value, accumulator) { result = /(\[\])$/.exec(key); - key = key.replace(/\[\]$/, ''); - if (!result || accumulator[key] === undefined) { + if (!result) { accumulator[key] = value; return; + } else if (accumulator[key] === undefined) { + accumulator[key] = [value]; + return; } accumulator[key] = [].concat(accumulator[key], value); @@ -8589,9 +10519,9 @@ return /******/ (function(modules) { // webpackBootstrap }; -/***/ }, -/* 73 */ -/***/ function(module, exports) { +/***/ }), +/* 84 */ +/***/ (function(module, exports) { 'use strict'; module.exports = function (str) { @@ -8601,111 +10531,15 @@ return /******/ (function(modules) { // webpackBootstrap }; -/***/ }, -/* 74 */ -/***/ function(module, exports) { - - /* - object-assign - (c) Sindre Sorhus - @license MIT - */ - - 'use strict'; - /* eslint-disable no-unused-vars */ - var getOwnPropertySymbols = Object.getOwnPropertySymbols; - var hasOwnProperty = Object.prototype.hasOwnProperty; - var propIsEnumerable = Object.prototype.propertyIsEnumerable; - - function toObject(val) { - if (val === null || val === undefined) { - throw new TypeError('Object.assign cannot be called with null or undefined'); - } - - return Object(val); - } - - function shouldUseNative() { - try { - if (!Object.assign) { - return false; - } - - // Detect buggy property enumeration order in older V8 versions. - - // https://bugs.chromium.org/p/v8/issues/detail?id=4118 - var test1 = new String('abc'); // eslint-disable-line no-new-wrappers - test1[5] = 'de'; - if (Object.getOwnPropertyNames(test1)[0] === '5') { - return false; - } - - // https://bugs.chromium.org/p/v8/issues/detail?id=3056 - var test2 = {}; - for (var i = 0; i < 10; i++) { - test2['_' + String.fromCharCode(i)] = i; - } - var order2 = Object.getOwnPropertyNames(test2).map(function (n) { - return test2[n]; - }); - if (order2.join('') !== '0123456789') { - return false; - } - - // https://bugs.chromium.org/p/v8/issues/detail?id=3056 - var test3 = {}; - 'abcdefghijklmnopqrst'.split('').forEach(function (letter) { - test3[letter] = letter; - }); - if (Object.keys(Object.assign({}, test3)).join('') !== - 'abcdefghijklmnopqrst') { - return false; - } - - return true; - } catch (err) { - // We don't expect any of the above to throw, but better to be safe. - return false; - } - } - - module.exports = shouldUseNative() ? Object.assign : function (target, source) { - var from; - var to = toObject(target); - var symbols; - - for (var s = 1; s < arguments.length; s++) { - from = Object(arguments[s]); - - for (var key in from) { - if (hasOwnProperty.call(from, key)) { - to[key] = from[key]; - } - } - - if (getOwnPropertySymbols) { - symbols = getOwnPropertySymbols(from); - for (var i = 0; i < symbols.length; i++) { - if (propIsEnumerable.call(from, symbols[i])) { - to[symbols[i]] = from[symbols[i]]; - } - } - } - } - - return to; - }; - - -/***/ }, -/* 75 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 85 */ +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {'use strict'; exports.__esModule = true; - var _warning = __webpack_require__(47); + var _warning = __webpack_require__(58); var _warning2 = _interopRequireDefault(_warning); @@ -8726,9 +10560,9 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = runTransitionHook; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 76 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 86 */ +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {'use strict'; @@ -8739,17 +10573,17 @@ return /******/ (function(modules) { // webpackBootstrap var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - var _invariant = __webpack_require__(43); + var _invariant = __webpack_require__(51); var _invariant2 = _interopRequireDefault(_invariant); - var _warning = __webpack_require__(47); + var _warning = __webpack_require__(58); var _warning2 = _interopRequireDefault(_warning); - var _PathUtils = __webpack_require__(77); + var _PathUtils = __webpack_require__(87); - var _Actions = __webpack_require__(69); + var _Actions = __webpack_require__(80); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -8824,16 +10658,16 @@ return /******/ (function(modules) { // webpackBootstrap }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 77 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 87 */ +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {'use strict'; exports.__esModule = true; exports.createPath = exports.parsePath = exports.getQueryStringValueFromPath = exports.stripQueryStringValueFromPath = exports.addQueryStringValueToPath = undefined; - var _warning = __webpack_require__(47); + var _warning = __webpack_require__(58); var _warning2 = _interopRequireDefault(_warning); @@ -8926,9 +10760,9 @@ return /******/ (function(modules) { // webpackBootstrap }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 78 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 88 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -8936,11 +10770,11 @@ return /******/ (function(modules) { // webpackBootstrap var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - var _runTransitionHook = __webpack_require__(75); + var _runTransitionHook = __webpack_require__(85); var _runTransitionHook2 = _interopRequireDefault(_runTransitionHook); - var _PathUtils = __webpack_require__(77); + var _PathUtils = __webpack_require__(87); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -9040,9 +10874,9 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = useBasename; -/***/ }, -/* 79 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 89 */ +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {'use strict'; @@ -9050,23 +10884,23 @@ return /******/ (function(modules) { // webpackBootstrap var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - var _warning = __webpack_require__(47); + var _warning = __webpack_require__(58); var _warning2 = _interopRequireDefault(_warning); - var _invariant = __webpack_require__(43); + var _invariant = __webpack_require__(51); var _invariant2 = _interopRequireDefault(_invariant); - var _LocationUtils = __webpack_require__(76); + var _LocationUtils = __webpack_require__(86); - var _PathUtils = __webpack_require__(77); + var _PathUtils = __webpack_require__(87); - var _createHistory = __webpack_require__(80); + var _createHistory = __webpack_require__(90); var _createHistory2 = _interopRequireDefault(_createHistory); - var _Actions = __webpack_require__(69); + var _Actions = __webpack_require__(80); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -9186,25 +11020,25 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = createMemoryHistory; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 80 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 90 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; exports.__esModule = true; - var _AsyncUtils = __webpack_require__(81); + var _AsyncUtils = __webpack_require__(91); - var _PathUtils = __webpack_require__(77); + var _PathUtils = __webpack_require__(87); - var _runTransitionHook = __webpack_require__(75); + var _runTransitionHook = __webpack_require__(85); var _runTransitionHook2 = _interopRequireDefault(_runTransitionHook); - var _Actions = __webpack_require__(69); + var _Actions = __webpack_require__(80); - var _LocationUtils = __webpack_require__(76); + var _LocationUtils = __webpack_require__(86); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -9367,9 +11201,9 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = createHistory; -/***/ }, -/* 81 */ -/***/ function(module, exports) { +/***/ }), +/* 91 */ +/***/ (function(module, exports) { "use strict"; @@ -9428,20 +11262,20 @@ return /******/ (function(modules) { // webpackBootstrap next(); }; -/***/ }, -/* 82 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 92 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; exports.__esModule = true; exports.default = useRouterHistory; - var _useQueries = __webpack_require__(71); + var _useQueries = __webpack_require__(82); var _useQueries2 = _interopRequireDefault(_useQueries); - var _useBasename = __webpack_require__(78); + var _useBasename = __webpack_require__(88); var _useBasename2 = _interopRequireDefault(_useBasename); @@ -9455,9 +11289,9 @@ return /******/ (function(modules) { // webpackBootstrap } module.exports = exports['default']; -/***/ }, -/* 83 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 93 */ +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {'use strict'; @@ -9469,11 +11303,11 @@ return /******/ (function(modules) { // webpackBootstrap var _react2 = _interopRequireDefault(_react); - var _RouterContext = __webpack_require__(56); + var _RouterContext = __webpack_require__(67); var _RouterContext2 = _interopRequireDefault(_RouterContext); - var _routerWarning = __webpack_require__(46); + var _routerWarning = __webpack_require__(57); var _routerWarning2 = _interopRequireDefault(_routerWarning); @@ -9518,19 +11352,19 @@ return /******/ (function(modules) { // webpackBootstrap module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 84 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 94 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; exports.__esModule = true; - var _createBrowserHistory = __webpack_require__(85); + var _createBrowserHistory = __webpack_require__(95); var _createBrowserHistory2 = _interopRequireDefault(_createBrowserHistory); - var _createRouterHistory = __webpack_require__(91); + var _createRouterHistory = __webpack_require__(101); var _createRouterHistory2 = _interopRequireDefault(_createRouterHistory); @@ -9539,9 +11373,9 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = (0, _createRouterHistory2.default)(_createBrowserHistory2.default); module.exports = exports['default']; -/***/ }, -/* 85 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 95 */ +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {'use strict'; @@ -9549,23 +11383,23 @@ return /******/ (function(modules) { // webpackBootstrap var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - var _invariant = __webpack_require__(43); + var _invariant = __webpack_require__(51); var _invariant2 = _interopRequireDefault(_invariant); - var _ExecutionEnvironment = __webpack_require__(86); + var _ExecutionEnvironment = __webpack_require__(96); - var _BrowserProtocol = __webpack_require__(87); + var _BrowserProtocol = __webpack_require__(97); var BrowserProtocol = _interopRequireWildcard(_BrowserProtocol); - var _RefreshProtocol = __webpack_require__(90); + var _RefreshProtocol = __webpack_require__(100); var RefreshProtocol = _interopRequireWildcard(_RefreshProtocol); - var _DOMUtils = __webpack_require__(88); + var _DOMUtils = __webpack_require__(98); - var _createHistory = __webpack_require__(80); + var _createHistory = __webpack_require__(90); var _createHistory2 = _interopRequireDefault(_createHistory); @@ -9638,33 +11472,33 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = createBrowserHistory; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 86 */ -/***/ function(module, exports) { +/***/ }), +/* 96 */ +/***/ (function(module, exports) { 'use strict'; exports.__esModule = true; var canUseDOM = exports.canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement); -/***/ }, -/* 87 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 97 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; exports.__esModule = true; exports.go = exports.replaceLocation = exports.pushLocation = exports.startListener = exports.getUserConfirmation = exports.getCurrentLocation = undefined; - var _LocationUtils = __webpack_require__(76); + var _LocationUtils = __webpack_require__(86); - var _DOMUtils = __webpack_require__(88); + var _DOMUtils = __webpack_require__(98); - var _DOMStateStorage = __webpack_require__(89); + var _DOMStateStorage = __webpack_require__(99); - var _PathUtils = __webpack_require__(77); + var _PathUtils = __webpack_require__(87); - var _ExecutionEnvironment = __webpack_require__(86); + var _ExecutionEnvironment = __webpack_require__(96); var PopStateEvent = 'popstate'; var HashChangeEvent = 'hashchange'; @@ -9751,9 +11585,9 @@ return /******/ (function(modules) { // webpackBootstrap if (n) window.history.go(n); }; -/***/ }, -/* 88 */ -/***/ function(module, exports) { +/***/ }), +/* 98 */ +/***/ (function(module, exports) { 'use strict'; @@ -9805,16 +11639,16 @@ return /******/ (function(modules) { // webpackBootstrap return event.state === undefined && navigator.userAgent.indexOf('CriOS') === -1; }; -/***/ }, -/* 89 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 99 */ +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {'use strict'; exports.__esModule = true; exports.readState = exports.saveState = undefined; - var _warning = __webpack_require__(47); + var _warning = __webpack_require__(58); var _warning2 = _interopRequireDefault(_warning); @@ -9896,16 +11730,16 @@ return /******/ (function(modules) { // webpackBootstrap }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 90 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 100 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; exports.__esModule = true; exports.replaceLocation = exports.pushLocation = exports.getCurrentLocation = exports.go = exports.getUserConfirmation = undefined; - var _BrowserProtocol = __webpack_require__(87); + var _BrowserProtocol = __webpack_require__(97); Object.defineProperty(exports, 'getUserConfirmation', { enumerable: true, @@ -9920,9 +11754,9 @@ return /******/ (function(modules) { // webpackBootstrap } }); - var _LocationUtils = __webpack_require__(76); + var _LocationUtils = __webpack_require__(86); - var _PathUtils = __webpack_require__(77); + var _PathUtils = __webpack_require__(87); var getCurrentLocation = exports.getCurrentLocation = function getCurrentLocation() { return (0, _LocationUtils.createLocation)(window.location); @@ -9938,21 +11772,16 @@ return /******/ (function(modules) { // webpackBootstrap return false; // Don't update location }; -/***/ }, -/* 91 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 101 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; exports.__esModule = true; + exports.default = createRouterHistory; - exports.default = function (createHistory) { - var history = void 0; - if (canUseDOM) history = (0, _useRouterHistory2.default)(createHistory)(); - return history; - }; - - var _useRouterHistory = __webpack_require__(82); + var _useRouterHistory = __webpack_require__(92); var _useRouterHistory2 = _interopRequireDefault(_useRouterHistory); @@ -9960,21 +11789,26 @@ return /******/ (function(modules) { // webpackBootstrap var canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement); + function createRouterHistory(createHistory) { + var history = void 0; + if (canUseDOM) history = (0, _useRouterHistory2.default)(createHistory)(); + return history; + } module.exports = exports['default']; -/***/ }, -/* 92 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 102 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; exports.__esModule = true; - var _createHashHistory = __webpack_require__(93); + var _createHashHistory = __webpack_require__(103); var _createHashHistory2 = _interopRequireDefault(_createHashHistory); - var _createRouterHistory = __webpack_require__(91); + var _createRouterHistory = __webpack_require__(101); var _createRouterHistory2 = _interopRequireDefault(_createRouterHistory); @@ -9983,9 +11817,9 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = (0, _createRouterHistory2.default)(_createHashHistory2.default); module.exports = exports['default']; -/***/ }, -/* 93 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 103 */ +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {'use strict'; @@ -9993,23 +11827,23 @@ return /******/ (function(modules) { // webpackBootstrap var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; - var _warning = __webpack_require__(47); + var _warning = __webpack_require__(58); var _warning2 = _interopRequireDefault(_warning); - var _invariant = __webpack_require__(43); + var _invariant = __webpack_require__(51); var _invariant2 = _interopRequireDefault(_invariant); - var _ExecutionEnvironment = __webpack_require__(86); + var _ExecutionEnvironment = __webpack_require__(96); - var _DOMUtils = __webpack_require__(88); + var _DOMUtils = __webpack_require__(98); - var _HashProtocol = __webpack_require__(94); + var _HashProtocol = __webpack_require__(104); var HashProtocol = _interopRequireWildcard(_HashProtocol); - var _createHistory = __webpack_require__(80); + var _createHistory = __webpack_require__(90); var _createHistory2 = _interopRequireDefault(_createHistory); @@ -10136,16 +11970,16 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = createHashHistory; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 94 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 104 */ +/***/ (function(module, exports, __webpack_require__) { /* WEBPACK VAR INJECTION */(function(process) {'use strict'; exports.__esModule = true; exports.replaceLocation = exports.pushLocation = exports.startListener = exports.getCurrentLocation = exports.go = exports.getUserConfirmation = undefined; - var _BrowserProtocol = __webpack_require__(87); + var _BrowserProtocol = __webpack_require__(97); Object.defineProperty(exports, 'getUserConfirmation', { enumerable: true, @@ -10160,17 +11994,17 @@ return /******/ (function(modules) { // webpackBootstrap } }); - var _warning = __webpack_require__(47); + var _warning = __webpack_require__(58); var _warning2 = _interopRequireDefault(_warning); - var _LocationUtils = __webpack_require__(76); + var _LocationUtils = __webpack_require__(86); - var _DOMUtils = __webpack_require__(88); + var _DOMUtils = __webpack_require__(98); - var _DOMStateStorage = __webpack_require__(89); + var _DOMStateStorage = __webpack_require__(99); - var _PathUtils = __webpack_require__(77); + var _PathUtils = __webpack_require__(87); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -10278,9 +12112,9 @@ return /******/ (function(modules) { // webpackBootstrap }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35))) -/***/ }, -/* 95 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 105 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -10311,9 +12145,9 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = HomeRoute; -/***/ }, -/* 96 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 106 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -10365,9 +12199,9 @@ return /******/ (function(modules) { // webpackBootstrap }, _temp); exports.default = LoginRoute; -/***/ }, -/* 97 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 107 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -10430,9 +12264,9 @@ return /******/ (function(modules) { // webpackBootstrap }, _temp); exports.default = LogoutRoute; -/***/ }, -/* 98 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 108 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -10486,9 +12320,9 @@ return /******/ (function(modules) { // webpackBootstrap }, _temp); exports.default = AuthenticatedRoute; -/***/ }, -/* 99 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 109 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -10552,9 +12386,9 @@ return /******/ (function(modules) { // webpackBootstrap }, _temp); exports.default = Authenticated; -/***/ }, -/* 100 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 110 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -10622,9 +12456,9 @@ return /******/ (function(modules) { // webpackBootstrap }, _temp); exports.default = NotAuthenticated; -/***/ }, -/* 101 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 111 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -10689,9 +12523,9 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = LoginLink; -/***/ }, -/* 102 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 112 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -10795,9 +12629,9 @@ return /******/ (function(modules) { // webpackBootstrap }, _temp2); exports.default = LogoutLink; -/***/ }, -/* 103 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 113 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -10830,11 +12664,11 @@ return /******/ (function(modules) { // webpackBootstrap var _UserActions2 = _interopRequireDefault(_UserActions); - var _LoadingText = __webpack_require__(104); + var _LoadingText = __webpack_require__(114); var _LoadingText2 = _interopRequireDefault(_LoadingText); - var _SocialLoginButton = __webpack_require__(105); + var _SocialLoginButton = __webpack_require__(115); var _SocialLoginButton2 = _interopRequireDefault(_SocialLoginButton); @@ -11046,7 +12880,8 @@ return /******/ (function(modules) { // webpackBootstrap return _ret2 = (_temp2 = (_this3 = _possibleConstructorReturn(this, (_ref2 = LoginForm.__proto__ || Object.getPrototypeOf(LoginForm)).call.apply(_ref2, [this].concat(args))), _this3), _this3.state = { fields: { username: '', - password: '' + password: '', + brand: 'scooponexperience' }, errorMessage: null, isFormProcessing: false @@ -11090,7 +12925,8 @@ return /******/ (function(modules) { // webpackBootstrap _UserActions2.default.login({ login: data.username, - password: data.password + password: data.password, + brand: data.brand }, function (err, result) { if (err) { if (onSubmitError) { @@ -11211,9 +13047,9 @@ return /******/ (function(modules) { // webpackBootstrap }, _temp3); exports.default = LoginForm; -/***/ }, -/* 104 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 114 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -11293,9 +13129,9 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = LoadingText; -/***/ }, -/* 105 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 115 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -11316,7 +13152,7 @@ return /******/ (function(modules) { // webpackBootstrap var _utils2 = _interopRequireDefault(_utils); - var _SocialLoginLink = __webpack_require__(106); + var _SocialLoginLink = __webpack_require__(116); var _SocialLoginLink2 = _interopRequireDefault(_SocialLoginLink); @@ -11357,9 +13193,9 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = SocialLoginButton; -/***/ }, -/* 106 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 116 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -11376,7 +13212,7 @@ return /******/ (function(modules) { // webpackBootstrap var _react2 = _interopRequireDefault(_react); - var _xtend = __webpack_require__(107); + var _xtend = __webpack_require__(117); var _xtend2 = _interopRequireDefault(_xtend); @@ -11518,9 +13354,9 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = SocialLoginLink; -/***/ }, -/* 107 */ -/***/ function(module, exports) { +/***/ }), +/* 117 */ +/***/ (function(module, exports) { module.exports = extend @@ -11543,9 +13379,9 @@ return /******/ (function(modules) { // webpackBootstrap } -/***/ }, -/* 108 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 118 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -11910,9 +13746,9 @@ return /******/ (function(modules) { // webpackBootstrap }, _temp3); exports.default = UserProfileForm; -/***/ }, -/* 109 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 119 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -11941,7 +13777,7 @@ return /******/ (function(modules) { // webpackBootstrap var _context2 = _interopRequireDefault(_context); - var _LoginLink = __webpack_require__(101); + var _LoginLink = __webpack_require__(111); var _LoginLink2 = _interopRequireDefault(_LoginLink); @@ -11949,11 +13785,11 @@ return /******/ (function(modules) { // webpackBootstrap var _UserActions2 = _interopRequireDefault(_UserActions); - var _LoadingText = __webpack_require__(104); + var _LoadingText = __webpack_require__(114); var _LoadingText2 = _interopRequireDefault(_LoadingText); - var _SocialLoginButton = __webpack_require__(105); + var _SocialLoginButton = __webpack_require__(115); var _SocialLoginButton2 = _interopRequireDefault(_SocialLoginButton); @@ -12433,9 +14269,9 @@ return /******/ (function(modules) { // webpackBootstrap }, _temp3); exports.default = RegistrationForm; -/***/ }, -/* 110 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 120 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -12458,7 +14294,7 @@ return /******/ (function(modules) { // webpackBootstrap var _utils2 = _interopRequireDefault(_utils); - var _LoginLink = __webpack_require__(101); + var _LoginLink = __webpack_require__(111); var _LoginLink2 = _interopRequireDefault(_LoginLink); @@ -12705,9 +14541,9 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = ResetPasswordForm; -/***/ }, -/* 111 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 121 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -12730,11 +14566,11 @@ return /******/ (function(modules) { // webpackBootstrap var _utils2 = _interopRequireDefault(_utils); - var _LoginLink = __webpack_require__(101); + var _LoginLink = __webpack_require__(111); var _LoginLink2 = _interopRequireDefault(_LoginLink); - var _LoadingText = __webpack_require__(104); + var _LoadingText = __webpack_require__(114); var _LoadingText2 = _interopRequireDefault(_LoadingText); @@ -13027,9 +14863,9 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = ChangePasswordForm; -/***/ }, -/* 112 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 122 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -13050,7 +14886,7 @@ return /******/ (function(modules) { // webpackBootstrap var _utils2 = _interopRequireDefault(_utils); - var _LoginLink = __webpack_require__(101); + var _LoginLink = __webpack_require__(111); var _LoginLink2 = _interopRequireDefault(_LoginLink); @@ -13147,9 +14983,9 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = VerifyEmailView; -/***/ }, -/* 113 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 123 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -13168,7 +15004,7 @@ return /******/ (function(modules) { // webpackBootstrap var _utils2 = _interopRequireDefault(_utils); - var _UserComponent2 = __webpack_require__(114); + var _UserComponent2 = __webpack_require__(124); var _UserComponent3 = _interopRequireDefault(_UserComponent2); @@ -13237,9 +15073,9 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = UserField; -/***/ }, -/* 114 */ -/***/ function(module, exports, __webpack_require__) { +/***/ }), +/* 124 */ +/***/ (function(module, exports, __webpack_require__) { 'use strict'; @@ -13318,7 +15154,7 @@ return /******/ (function(modules) { // webpackBootstrap exports.default = UserComponent; -/***/ } +/***/ }) /******/ ]) }); ; \ No newline at end of file diff --git a/umd/stormpath-sdk-react.min.js b/umd/stormpath-sdk-react.min.js index 3946b89..e44be09 100644 --- a/umd/stormpath-sdk-react.min.js +++ b/umd/stormpath-sdk-react.min.js @@ -1,11 +1,11 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.ReactStormpath=t(require("react")):e.ReactStormpath=t(e.React)}(this,function(e){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(){s.default.init.apply(s.default,arguments)}function a(){return s.default.getAccessToken()}Object.defineProperty(t,"__esModule",{value:!0}),t.UserComponent=t.UserField=t.SocialLoginButton=t.SocialLoginLink=t.VerifyEmailView=t.ChangePasswordForm=t.ResetPasswordForm=t.RegistrationForm=t.UserProfileForm=t.LoginForm=t.LogoutLink=t.LoginLink=t.NotAuthenticated=t.Authenticated=t.AuthenticatedRoute=t.LogoutRoute=t.LoginRoute=t.HomeRoute=t.constants=t.actions=t.Router=t.context=void 0,t.init=o,t.getAccessToken=a;var i=n(55),s=r(i),u=n(4),l=r(u),c=n(63),f=r(c),p=n(7),d=r(p),h=n(20),v=r(h),m=n(32),y=r(m),g=n(33),b=r(g),_=n(34),w=r(_),E=n(31),O=r(E),P=n(56),k=r(P),j=n(60),S=r(j),R=n(14),x=r(R),N=n(59),C=r(N),T=n(58),M=r(T),A=n(65),L=r(A),F=n(61),I=r(F),U=n(62),D=r(U),q=n(57),H=r(q),V=n(66),B=r(V),G=n(35),W=r(G),z=n(19),K=r(z),Q=n(64),Y=r(Q),$=n(36),J=r($);t.context=l.default,t.Router=f.default,t.actions=d.default,t.constants=v.default,t.HomeRoute=y.default,t.LoginRoute=b.default,t.LogoutRoute=w.default,t.AuthenticatedRoute=O.default,t.Authenticated=k.default,t.NotAuthenticated=S.default,t.LoginLink=x.default,t.LogoutLink=C.default,t.LoginForm=M.default,t.UserProfileForm=L.default,t.RegistrationForm=I.default,t.ResetPasswordForm=D.default,t.ChangePasswordForm=H.default,t.VerifyEmailView=B.default,t.SocialLoginLink=W.default,t.SocialLoginButton=K.default,t.UserField=Y.default,t.UserComponent=J.default,t.default=s.default},function(t,n){t.exports=e},function(e,t){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(e){if(c===setTimeout)return setTimeout(e,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}function a(e){if(f===clearTimeout)return clearTimeout(e);if((f===r||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(e);try{return f(e)}catch(t){try{return f.call(null,e)}catch(t){return f.call(this,e)}}}function i(){v&&d&&(v=!1,d.length?h=d.concat(h):m=-1,h.length&&s())}function s(){if(!v){var e=o(i);v=!0;for(var t=h.length;t;){for(d=h,h=[];++m1)for(var n=1;n-1)return!0}return!1}},{key:"isInputLikeComponent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["input","field","text"];if("function"==typeof e.type){var n=this.containsWord(this.functionName(e.type),t),r=this.takeProp(e.props,"spInputLike","data-spInputLike");return r||n}}},{key:"takeProp",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r-1&&"submit"!==e.props.type&&t(e.props.name,n)}},{key:"getFormFieldMap",value:function(e,t){var n={},r=function(e,t,r){e.props.ignore||(e.props.fieldName&&(t=elements.props.fieldName),t in n||(n[t]={element:e,defaultValue:r}))};this.forEachChild(e,function(e){e.props&&t(e,r.bind(null,e))});var o={},a={};for(var i in n){var s=n[i],u=s.element,l="function"==typeof u.type?this.functionName(u.type):u.type;l in o||(o[l]={}),a[i]=void 0!==s.defaultValue?s.defaultValue:u.props.value||"",o[l][u.props.name]={fieldName:i,field:u}}return{defaultValues:a,inverse:o}}},{key:"getFieldValue",value:function(e,t){for(var n=e,r=t.split("."),o=0;o1?n-1:0),i=1;i2?r-2:0);for(var o=2;o0?void 0:"production"!==e.env.NODE_ENV?(0,p.default)(!1,'Missing splat #%s for path "%s"',u,t):(0,p.default)(!1),null!=d&&(s+=encodeURI(d));else if("("===c)l[a]="",a+=1;else if(")"===c){var m=l.pop();a-=1,a?l[a-1]+=m:s+=m}else if("\\("===c)s+="(";else if("\\)"===c)s+=")";else if(":"===c.charAt(0))if(f=c.substring(1),d=n[f],null!=d||a>0?void 0:"production"!==e.env.NODE_ENV?(0,p.default)(!1,'Missing "%s" parameter for path "%s"',f,t):(0,p.default)(!1),null==d){if(a){l[a-1]="";for(var y=o.indexOf(c),g=o.slice(y,o.length),b=-1,_=0;_0?void 0:"production"!==e.env.NODE_ENV?(0,p.default)(!1,'Path "%s" is missing end paren at segment "%s"',t,g.join("")):(0,p.default)(!1),h=y+b-1}}else a?l[a-1]+=encodeURIComponent(d):s+=encodeURIComponent(d);else a?l[a-1]+=c:s+=c;return a<=0?void 0:"production"!==e.env.NODE_ENV?(0,p.default)(!1,'Path "%s" is missing end paren',t):(0,p.default)(!1),s.replace(/\/+/g,"/")}t.__esModule=!0,t.compilePattern=i,t.matchPattern=s,t.getParamNames=u,t.getParams=l,t.formatPattern=c;var f=n(5),p=r(f),d=Object.create(null)}).call(t,n(2))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(t.indexOf("deprecated")!==-1){if(u[t])return;u[t]=!0}t="[react-router] "+t;for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o0&&void 0!==arguments[0]?arguments[0]:"/",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.POP,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o="string"==typeof t?(0,c.parsePath)(t):t;"production"!==e.env.NODE_ENV?(0,l.default)(!o.path,"Location descriptor objects should have a `pathname`, not a `path`."):void 0;var a=o.pathname||"/",i=o.search||"",s=o.hash||"",u=o.state;return{pathname:a,search:i,hash:s,state:u,action:n,key:r}},function(e){return"[object Date]"===Object.prototype.toString.call(e)}),d=t.statesAreEqual=function t(n,r){if(n===r)return!0;var a="undefined"==typeof n?"undefined":o(n),i="undefined"==typeof r?"undefined":o(r);if(a!==i)return!1;if("function"===a?"production"!==e.env.NODE_ENV?(0,s.default)(!1,"You must not store functions in location state"):(0,s.default)(!1):void 0,"object"===a){if(p(n)&&p(r)?"production"!==e.env.NODE_ENV?(0,s.default)(!1,"You must not store Date objects in location state"):(0,s.default)(!1):void 0,!Array.isArray(n)){var u=Object.keys(n),l=Object.keys(r);return u.length===l.length&&u.every(function(e){return t(n[e],r[e])})}return Array.isArray(r)&&n.length===r.length&&n.every(function(e,n){return t(e,r[n])})}return!1};t.locationsAreEqual=function(e,t){return e.key===t.key&&e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&d(e.state,t.state)}}).call(t,n(2))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=Object.assign||function(e){for(var t=1;t should not have a "'+t+'" prop')}t.__esModule=!0,t.routes=t.route=t.components=t.component=t.history=void 0,t.falsy=r;var o=n(1),a=o.PropTypes.func,i=o.PropTypes.object,s=o.PropTypes.arrayOf,u=o.PropTypes.oneOfType,l=o.PropTypes.element,c=o.PropTypes.shape,f=o.PropTypes.string,p=(t.history=c({listen:a.isRequired,push:a.isRequired,replace:a.isRequired,go:a.isRequired,goBack:a.isRequired,goForward:a.isRequired}),t.component=u([a,f])),d=(t.components=u([p,i]),t.route=u([i,l]));t.routes=u([d,s(d)])},function(e,t){"use strict";t.__esModule=!0;t.PUSH="PUSH",t.REPLACE="REPLACE",t.POP="POP"},function(e,t){"use strict";t.__esModule=!0;t.addEventListener=function(e,t,n){return e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)},t.removeEventListener=function(e,t,n){return e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent("on"+t,n)},t.supportsHistory=function(){var e=window.navigator.userAgent;return(e.indexOf("Android 2.")===-1&&e.indexOf("Android 4.0")===-1||e.indexOf("Mobile Safari")===-1||e.indexOf("Chrome")!==-1||e.indexOf("Windows Phone")!==-1)&&(window.history&&"pushState"in window.history)},t.supportsGoWithoutReloadUsingHash=function(){return window.navigator.userAgent.indexOf("Firefox")===-1},t.supportsPopstateOnHashchange=function(){return window.navigator.userAgent.indexOf("Trident")===-1},t.isExtraneousPopstateEvent=function(e){return void 0===e.state&&navigator.userAgent.indexOf("CriOS")===-1}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=Object.assign||function(e){for(var t=1;t=e&&u&&(i=!0,n()))}}var a=0,i=!1,s=!1,u=!1,l=void 0;o()}function r(e,t,n){function r(e,t,r){i||(t?(i=!0,n(t)):(a[e]=r,i=++s===o,i&&n(null,a)))}var o=e.length,a=[];if(0===o)return n(null,a);var i=!1,s=0;e.forEach(function(e,n){t(e,n,function(e,t){r(n,e,t)})})}t.__esModule=!0,t.loopAsync=n,t.mapAsync=r},function(e,t,n){"use strict";function r(e){return"@@contextSubscriber/"+e}function o(e){var t,n,o=r(e),a=o+"/listeners",i=o+"/eventIndex",u=o+"/subscribe";return n={childContextTypes:(t={},t[o]=s.isRequired,t),getChildContext:function(){var e;return e={},e[o]={eventIndex:this[i],subscribe:this[u]},e},componentWillMount:function(){this[a]=[],this[i]=0},componentWillReceiveProps:function(){this[i]++},componentDidUpdate:function(){var e=this;this[a].forEach(function(t){return t(e[i])})}},n[u]=function(e){var t=this;return this[a].push(e),function(){t[a]=t[a].filter(function(t){return t!==e})}},n}function a(e){var t,n,o=r(e),a=o+"/lastRenderedEventIndex",i=o+"/handleContextUpdate",u=o+"/unsubscribe";return n={contextTypes:(t={},t[o]=s,t),getInitialState:function(){var e;return this.context[o]?(e={},e[a]=this.context[o].eventIndex,e):{}},componentDidMount:function(){this.context[o]&&(this[u]=this.context[o].subscribe(this[i]))},componentWillReceiveProps:function(){var e;this.context[o]&&this.setState((e={},e[a]=this.context[o].eventIndex,e))},componentWillUnmount:function(){this[u]&&(this[u](),this[u]=null)}},n[i]=function(e){if(e!==this.state[a]){var t;this.setState((t={},t[a]=e,t))}},n}t.__esModule=!0,t.ContextProvider=o,t.ContextSubscriber=a;var i=n(1),s=i.PropTypes.shape({subscribe:i.PropTypes.func.isRequired,eventIndex:i.PropTypes.number.isRequired})},function(e,t,n){"use strict";t.__esModule=!0,t.locationShape=t.routerShape=void 0;var r=n(1),o=r.PropTypes.func,a=r.PropTypes.object,i=r.PropTypes.shape,s=r.PropTypes.string;t.routerShape=i({push:o.isRequired,replace:o.isRequired,go:o.isRequired,goBack:o.isRequired,goForward:o.isRequired,setRouteLeaveHook:o.isRequired,isActive:o.isRequired}),t.locationShape=i({pathname:s.isRequired,search:s.isRequired,state:a,action:s.isRequired,key:s})},function(e,t,n){(function(r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.getCurrentLocation,n=e.getUserConfirmation,r=e.pushLocation,i=e.replaceLocation,c=e.go,f=e.keyLength,p=void 0,d=void 0,h=[],v=[],m=[],y=function(){return d&&d.action===u.POP?m.indexOf(d.key):p?m.indexOf(p.key):-1},g=function(e){var t=y();p=e,p.action===u.PUSH?m=[].concat(m.slice(0,t+1),[p.key]):p.action===u.REPLACE&&(m[t]=p.key),v.forEach(function(e){return e(p)})},b=function(e){return h.push(e),function(){return h=h.filter(function(t){return t!==e})}},_=function(e){return v.push(e),function(){return v=v.filter(function(t){return t!==e})}},w=function(e,t){(0,o.loopAsync)(h.length,function(t,n,r){(0,s.default)(h[t],e,function(e){return null!=e?r(e):n()})},function(e){n&&"string"==typeof e?n(e,function(e){return t(e!==!1)}):t(e!==!1)})},E=function(e){p&&(0,l.locationsAreEqual)(p,e)||d&&(0,l.locationsAreEqual)(d,e)||(d=e,w(e,function(t){if(d===e)if(d=null,t){if(e.action===u.PUSH){var n=(0,a.createPath)(p),o=(0,a.createPath)(e);o===n&&(0,l.statesAreEqual)(p.state,e.state)&&(e.action=u.REPLACE)}e.action===u.POP?g(e):e.action===u.PUSH?r(e)!==!1&&g(e):e.action===u.REPLACE&&i(e)!==!1&&g(e)}else if(p&&e.action===u.POP){var s=m.indexOf(p.key),f=m.indexOf(e.key);s!==-1&&f!==-1&&c(s-f)}}))},O=function(e){return E(x(e,u.PUSH))},P=function(e){return E(x(e,u.REPLACE))},k=function(){return c(-1)},j=function(){return c(1)},S=function(){return Math.random().toString(36).substr(2,f||6)},R=function(e){return(0,a.createPath)(e)},x=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:S();return(0,l.createLocation)(e,t,n)};return{getCurrentLocation:t,listenBefore:b,listen:_,transitionTo:E,push:O,replace:P,go:c,goBack:k,goForward:j,createKey:S,createPath:a.createPath,createHref:R,createLocation:x}};t.default=c},function(e,t,n){(function(e){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n(10),a=r(o),i=function(t,n,r){var o=t(n,r);t.length<2?r(o):"production"!==e.env.NODE_ENV?(0,a.default)(void 0===o,'You should not "return" in a transition hook with a callback argument; call the callback instead'):void 0};t.default=i}).call(t,n(2))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e){setTimeout(function(){u.default.getDispatcher().dispatch(e)},0)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n0&&this._events[e].length>o&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace())),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){function n(){this.removeListener(e,n),o||(o=!0,t.apply(this,arguments))}if(!r(t))throw TypeError("listener must be a function");var o=!1;return n.listener=t,this.on(e,n),this},n.prototype.removeListener=function(e,t){var n,o,i,s;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(n=this._events[e],i=n.length,o=-1,n===t||r(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(a(n)){for(s=i;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){o=s;break}if(o<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(o,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],r(n))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){var t;return t=this._events&&this._events[e]?r(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(r(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},function(e,t){"use strict";var n=function(e){var t,n={};if(!(e instanceof Object)||Array.isArray(e))throw new Error("keyMirror(...): Argument must be an object.");for(t in e)e.hasOwnProperty(t)&&(n[t]=t);return n};e.exports=n},function(e,t,n){(function(r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e){return 0===e.button}function s(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function u(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}function l(e,t){return"function"==typeof e?e(t.location):e}t.__esModule=!0;var c=Object.assign||function(e){for(var t=1;ts rendered outside of a router context cannot navigate."):(0,h.default)(!1),!s(e)&&i(e)&&(this.props.target||(e.preventDefault(),t.push(l(this.props.to,t))))}},render:function(){var e=this.props,t=e.to,n=e.activeClassName,r=e.activeStyle,o=e.onlyActiveOnIndex,i=a(e,["to","activeClassName","activeStyle","onlyActiveOnIndex"]),s=this.context.router;if(s){if(!t)return p.default.createElement("a",i);var f=l(t,s);i.href=s.createHref(f),(n||null!=r&&!u(r))&&s.isActive(f,o)&&(n&&(i.className?i.className+=" "+n:i.className=n), -r&&(i.style=c({},i.style,r)))}return p.default.createElement("a",c({},i,{onClick:this.handleClick}))}});t.default=O,e.exports=t.default}).call(t,n(2))},function(e,t){"use strict";function n(e){return e&&"function"==typeof e.then}t.__esModule=!0,t.isPromise=n},function(e,t,n){(function(r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(1),i=o(a),s=n(5),u=o(s),l=n(8),c=n(11),f=n(15),p=i.default.PropTypes,d=p.string,h=p.object,v=i.default.createClass({displayName:"Redirect",statics:{createRouteFromReactElement:function(e){var t=(0,l.createRouteFromReactElement)(e);return t.from&&(t.path=t.from),t.onEnter=function(e,n){var r=e.location,o=e.params,a=void 0;if("/"===t.to.charAt(0))a=(0,c.formatPattern)(t.to,o);else if(t.to){var i=e.routes.indexOf(t),s=v.getRoutePattern(e.routes,i-1),u=s.replace(/\/*$/,"/")+t.to;a=(0,c.formatPattern)(u,o)}else a=r.pathname;n({pathname:a,query:t.query||r.query,state:t.state||r.state})},t},getRoutePattern:function(e,t){for(var n="",r=t;r>=0;r--){var o=e[r],a=o.path||"";if(n=a.replace(/\/*$/,"/")+n,0===a.indexOf("/"))break}return"/"+n}},propTypes:{path:d,from:d,to:d.isRequired,query:h,state:h,onEnter:f.falsy,children:f.falsy},render:function(){"production"!==r.env.NODE_ENV?(0,u.default)(!1," elements are for router configuration only and should not be rendered"):(0,u.default)(!1)}});t.default=v,e.exports=t.default}).call(t,n(2))},function(e,t){"use strict";function n(e,t,n){var a=o({},e,{setRouteLeaveHook:t.listenBeforeLeavingRoute,isActive:t.isActive});return r(a,n)}function r(e,t){var n=t.location,r=t.params,o=t.routes;return e.location=n,e.params=r,e.routes=o,e}t.__esModule=!0;var o=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]&&arguments[1];return e.__id__||t&&(e.__id__=O++)}function c(e){return e.map(function(e){return P[u(e)]}).filter(function(e){return e})}function d(e,n){(0,g.default)(t,e,function(t,r){if(null==r)return void n();E=s({},r,{location:e});for(var o=c((0,f.default)(w,E).leaveRoutes),a=void 0,i=0,u=o.length;null==a&&i0&&void 0!==arguments[0]?arguments[0]:{},n=e(t),r=t.basename,a=function(e){return e?(r&&null==e.basename&&(0===e.pathname.toLowerCase().indexOf(r.toLowerCase())?(e.pathname=e.pathname.substring(r.length),e.basename=r,""===e.pathname&&(e.pathname="/")):e.basename=""),e):e},u=function(e){if(!r)return e;var t="string"==typeof e?(0,s.parsePath)(e):e,n=t.pathname,a="/"===r.slice(-1)?r:r+"/",i="/"===n.charAt(0)?n.slice(1):n,u=a+i;return o({},t,{pathname:u})},l=function(){return a(n.getCurrentLocation())},c=function(e){return n.listenBefore(function(t,n){return(0,i.default)(e,a(t),n)})},f=function(e){return n.listen(function(t){return e(a(t))})},p=function(e){return n.push(u(e))},d=function(e){return n.replace(u(e))},h=function(e){return n.createPath(u(e))},v=function(e){return n.createHref(u(e))},m=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),o=1;o0&&void 0!==arguments[0]?arguments[0]:{},n=e(t),r=t.stringifyQuery,a=t.parseQueryString;"function"!=typeof r&&(r=c),"function"!=typeof a&&(a=f);var i=function(e){return e?(null==e.query&&(e.query=a(e.search.substring(1))),e):e},p=function(e,t){if(null==t)return e;var n="string"==typeof e?(0,l.parsePath)(e):e,a=r(t),i=a?"?"+a:"";return o({},n,{search:i})},d=function(){return i(n.getCurrentLocation())},h=function(e){return n.listenBefore(function(t,n){return(0,s.default)(e,i(t),n)})},v=function(e){return n.listen(function(t){return e(i(t))})},m=function(e){return n.push(p(e,e.query))},y=function(e){return n.replace(p(e,e.query))},g=function(e){return n.createPath(p(e,e.query))},b=function(e){return n.createHref(p(e,e.query))},_=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),o=1;o","In order to use the inGroup property, you must expand the groups resource for the /me endpoint."));var n=d.default.excludeProps(["inGroup"],this.props);return t?d.default.enforceRootElement(this.props.children,n):null}}]),t}(f.default.Component),s.contextTypes={user:f.default.PropTypes.object},u);t.default=h},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=Object.assign||function(e){for(var t=1;t In order to use the inGroup option, you must expand the groups resource for the /me endpoint.")}var n=d.default.excludeProps(["inGroup"],this.props);return t?null:d.default.enforceRootElement(this.props.children,n)}}]),t}(f.default.Component),s.contextTypes={user:f.default.PropTypes.object},u);t.default=h},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s,u,l=Object.assign||function(e){for(var t=1;t0})}},{key:"render",value:function(){return p.default.createElement(_,this.props,p.default.createElement("div",{className:"sp-update-profile-form"},p.default.createElement("div",{className:"row"},p.default.createElement("div",{className:"col-xs-12"},p.default.createElement("div",{className:"form-horizontal"},p.default.createElement("div",{className:"form-group"},p.default.createElement("label",{htmlFor:"givenName",className:"col-xs-12 col-sm-4 control-label"},"First name"),p.default.createElement("div",{className:"col-xs-12 col-sm-4"},p.default.createElement("input",{type:"text",className:"form-control",id:"givenName",name:"givenName",placeholder:"First name",required:!0}))),p.default.createElement("div",{className:"form-group"},p.default.createElement("label",{htmlFor:"surname",className:"col-xs-12 col-sm-4 control-label"},"Last name"),p.default.createElement("div",{className:"col-xs-12 col-sm-4"},p.default.createElement("input",{type:"text",className:"form-control",id:"surname",name:"surname",placeholder:"Last name",required:!0}))),p.default.createElement("div",{className:"form-group"},p.default.createElement("label",{htmlFor:"email",className:"col-xs-12 col-sm-4 control-label"},"Email"),p.default.createElement("div",{className:"col-xs-12 col-sm-4"},p.default.createElement("input",{type:"email",className:"form-control",id:"email",name:"email",placeholder:"Email",required:!0}))),p.default.createElement("div",{className:"form-group"},p.default.createElement("label",{htmlFor:"password",className:"col-xs-12 col-sm-4 control-label"},"Password"),p.default.createElement("div",{className:"col-xs-12 col-sm-4"},p.default.createElement("input",{type:"password",className:"form-control",id:"password",name:"password",placeholder:"Password",onChange:this.onPasswordChanged.bind(this)}))),p.default.createElement("div",null,this.state.showPasswordVerification?p.default.createElement("div",{className:"form-group"},p.default.createElement("label",{htmlFor:"password",className:"col-xs-12 col-sm-4 control-label"},"Existing password"),p.default.createElement("div",{className:"col-xs-12 col-sm-4"},p.default.createElement("input",{type:"password",className:"form-control",id:"existingPassword",name:"existingPassword",placeholder:"Existing password",required:!0}))):null),p.default.createElement("div",{key:"update-button",className:"form-group"},p.default.createElement("div",{className:"col-sm-offset-4 col-sm-4"},p.default.createElement("p",{className:"alert alert-danger","data-spIf":"form.error"},p.default.createElement("span",{"data-spBind":"form.errorMessage"})),p.default.createElement("p",{className:"alert alert-success","data-spIf":"form.successful"},"Profile updated."),p.default.createElement("button",{type:"submit",className:"btn btn-primary"},p.default.createElement("span",{"data-spIf":"!form.processing"},"Update"),p.default.createElement("span",{"data-spIf":"form.processing"},"Updating...")))))))))}}]),t}(p.default.Component),_=(u=s=function(e){function t(){var e,n,r,i;o(this,t);for(var s=arguments.length,u=Array(s),l=0;l In order to use the inGroup option, you must expand the groups resource for the /me endpoint.")),t(r,a)})}},{key:"getAccessToken",value:function(){return this.service.getToken?this.service.getToken("access_token").then(function(e){return e?Promise.resolve(e):Promise.reject("No access token available.")}):Promise.reject(new Error("Unable to retrieve access token for current auth strategy."))}},{key:"getLoginViewData",value:function(e){this.service.getLoginViewData(e)}},{key:"login",value:function(e,t){var n=this;this.reset(),this.service.login(e,function(e){return e?t(e):void n.resolveSession(t,!0)})}},{key:"register",value:function(e,t){this.service.register(e,t)}},{key:"getRegisterViewData",value:function(e){this.service.getRegisterViewData(e)}},{key:"forgotPassword",value:function(e,t){this.service.forgotPassword(e,t)}},{key:"changePassword",value:function(e,t){this.service.changePassword(e,t)}},{key:"updateProfile",value:function(e,t){this.service.updateProfile(e,t)}},{key:"verifyEmail",value:function(e,t){this.service.verifyEmail(e,t)}},{key:"logout",value:function(e){var t=this;this.service.logout(function(n){return n?e(n):(t.reset(),t.emitChange(),void e())})}},{key:"resolveSession",value:function(e,t){var n=this;return t||!this.sessionError&&this.sessionStore.empty()?void this.service.me(function(t,r){t?(n.sessionError=t,n.sessionStore.reset(),d.default.set(null)):(n.sessionError=null,n.sessionStore.set(r),d.default.set(r)),e&&e(n.sessionError,n.sessionStore.get()),n.emitChange()}):e&&e(this.sessionError,this.sessionStore.get())}},{key:"reset",value:function(){this.sessionError=null,this.sessionStore.reset(),d.default.set(null)}}]),t}(f.default);t.default=h},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.TokenStore=t.SessionStore=t.UserStore=void 0;var o=n(76),a=r(o),i=n(41),s=r(i),u=n(75),l=r(u);t.UserStore=a.default,t.SessionStore=s.default,t.TokenStore=l.default},function(e,t,n){(function(t){"use strict";function n(e,t,n,o,a,i,s,u){if(r(t),!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,o,a,i,s,u],f=0;l=new Error(t.replace(/%s/g,function(){return c[f++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}}var r=function(e){};"production"!==t.env.NODE_ENV&&(r=function(e){if(void 0===e)throw new Error("invariant requires an error message argument")}),e.exports=n}).call(t,n(2))},function(e,t,n){e.exports.Dispatcher=n(80)},function(e,t,n){(function(r){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var a=n(78),i="ID_",s=function(){function e(){o(this,e),this._callbacks={},this._isDispatching=!1,this._isHandled={},this._isPending={},this._lastID=1}return e.prototype.register=function(e){var t=i+this._lastID++;return this._callbacks[t]=e,t},e.prototype.unregister=function(e){this._callbacks[e]?void 0:"production"!==r.env.NODE_ENV?a(!1,"Dispatcher.unregister(...): `%s` does not map to a registered callback.",e):a(!1),delete this._callbacks[e]},e.prototype.waitFor=function(e){this._isDispatching?void 0:"production"!==r.env.NODE_ENV?a(!1,"Dispatcher.waitFor(...): Must be invoked while dispatching."):a(!1);for(var t=0;t1)for(var n=1;n-1)return!0}return!1}},{key:"isInputLikeComponent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["input","field","text"];if("function"==typeof e.type){var n=this.containsWord(this.functionName(e.type),t),r=this.takeProp(e.props,"spInputLike","data-spInputLike");return r||n}}},{key:"takeProp",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r-1&&"submit"!==e.props.type&&t(e.props.name,n)}},{key:"getFormFieldMap",value:function(e,t){var n={},r=function(e,t,r){e.props.ignore||(e.props.fieldName&&(t=elements.props.fieldName),t in n||(n[t]={element:e,defaultValue:r}))};this.forEachChild(e,function(e){e.props&&t(e,r.bind(null,e))});var o={},a={};for(var i in n){var s=n[i],u=s.element,c="function"==typeof u.type?this.functionName(u.type):u.type;c in o||(o[c]={}),a[i]=void 0!==s.defaultValue?s.defaultValue:u.props.value||"",o[c][u.props.name]={fieldName:i,field:u}}return{defaultValues:a,inverse:o}}},{key:"getFieldValue",value:function(e,t){for(var n=e,r=t.split("."),o=0;o1?n-1:0),i=1;i2?r-2:0);for(var o=2;o0?void 0:"production"!==e.env.NODE_ENV?(0,p.default)(!1,'Missing splat #%s for path "%s"',u,t):(0,p.default)(!1),null!=d&&(s+=encodeURI(d));else if("("===l)c[a]="",a+=1;else if(")"===l){var m=c.pop();a-=1,a?c[a-1]+=m:s+=m}else if("\\("===l)s+="(";else if("\\)"===l)s+=")";else if(":"===l.charAt(0))if(f=l.substring(1),d=n[f],null!=d||a>0?void 0:"production"!==e.env.NODE_ENV?(0,p.default)(!1,'Missing "%s" parameter for path "%s"',f,t):(0,p.default)(!1),null==d){if(a){c[a-1]="";for(var y=o.indexOf(l),g=o.slice(y,o.length),b=-1,_=0;_0?void 0:"production"!==e.env.NODE_ENV?(0,p.default)(!1,'Path "%s" is missing end paren at segment "%s"',t,g.join("")):(0,p.default)(!1),h=y+b-1}}else a?c[a-1]+=encodeURIComponent(d):s+=encodeURIComponent(d);else a?c[a-1]+=l:s+=l;return a<=0?void 0:"production"!==e.env.NODE_ENV?(0,p.default)(!1,'Path "%s" is missing end paren',t):(0,p.default)(!1),s.replace(/\/+/g,"/")}t.__esModule=!0,t.compilePattern=i,t.matchPattern=s,t.getParamNames=u,t.getParams=c,t.formatPattern=l;var f=n(5),p=r(f),d=Object.create(null)}).call(t,n(1))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(t.indexOf("deprecated")!==-1){if(u[t])return;u[t]=!0}t="[react-router] "+t;for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o0&&void 0!==arguments[0]?arguments[0]:"/",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.POP,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o="string"==typeof t?(0,l.parsePath)(t):t;"production"!==e.env.NODE_ENV?(0,c.default)(!o.path,"Location descriptor objects should have a `pathname`, not a `path`."):void 0;var a=o.pathname||"/",i=o.search||"",s=o.hash||"",u=o.state;return{pathname:a,search:i,hash:s,state:u,action:n,key:r}},function(e){return"[object Date]"===Object.prototype.toString.call(e)}),d=t.statesAreEqual=function t(n,r){if(n===r)return!0;var a="undefined"==typeof n?"undefined":o(n),i="undefined"==typeof r?"undefined":o(r);if(a!==i)return!1;if("function"===a?"production"!==e.env.NODE_ENV?(0,s.default)(!1,"You must not store functions in location state"):(0,s.default)(!1):void 0,"object"===a){if(p(n)&&p(r)?"production"!==e.env.NODE_ENV?(0,s.default)(!1,"You must not store Date objects in location state"):(0,s.default)(!1):void 0,!Array.isArray(n)){var u=Object.keys(n),c=Object.keys(r);return u.length===c.length&&u.every(function(e){return t(n[e],r[e])})}return Array.isArray(r)&&n.length===r.length&&n.every(function(e,n){return t(e,r[n])})}return!1};t.locationsAreEqual=function(e,t){return e.key===t.key&&e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&d(e.state,t.state)}}).call(t,n(1))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=Object.assign||function(e){for(var t=1;t should not have a "'+t+'" prop')}t.__esModule=!0,t.routes=t.route=t.components=t.component=t.history=void 0,t.falsy=r;var o=n(8),a=(t.history=(0,o.shape)({listen:o.func.isRequired,push:o.func.isRequired,replace:o.func.isRequired,go:o.func.isRequired,goBack:o.func.isRequired,goForward:o.func.isRequired}),t.component=(0,o.oneOfType)([o.func,o.string])),i=(t.components=(0,o.oneOfType)([a,o.object]),t.route=(0,o.oneOfType)([o.object,o.element]));t.routes=(0,o.oneOfType)([i,(0,o.arrayOf)(i)])},function(e,t){"use strict";t.__esModule=!0;t.PUSH="PUSH",t.REPLACE="REPLACE",t.POP="POP"},function(e,t){"use strict";t.__esModule=!0;t.addEventListener=function(e,t,n){return e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)},t.removeEventListener=function(e,t,n){return e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent("on"+t,n)},t.supportsHistory=function(){var e=window.navigator.userAgent;return(e.indexOf("Android 2.")===-1&&e.indexOf("Android 4.0")===-1||e.indexOf("Mobile Safari")===-1||e.indexOf("Chrome")!==-1||e.indexOf("Windows Phone")!==-1)&&(window.history&&"pushState"in window.history)},t.supportsGoWithoutReloadUsingHash=function(){return window.navigator.userAgent.indexOf("Firefox")===-1},t.supportsPopstateOnHashchange=function(){return window.navigator.userAgent.indexOf("Trident")===-1},t.isExtraneousPopstateEvent=function(e){return void 0===e.state&&navigator.userAgent.indexOf("CriOS")===-1}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=Object.assign||function(e){for(var t=1;t1?t-1:0),r=1;r2?n-2:0),o=2;o0&&u>s&&(u=s);for(var l=0;l=0?(c=h.substr(0,v),f=h.substr(v+1)):(c=h,f=""),p=decodeURIComponent(c),d=decodeURIComponent(f),n(a,p)?Array.isArray(a[p])?a[p].push(d):a[p]=[a[p],d]:a[p]=d}return a}},function(e,t){"use strict";var n=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,r,o){return t=t||"&",r=r||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map(function(o){var a=encodeURIComponent(n(o))+r;return Array.isArray(e[o])?e[o].map(function(e){return a+encodeURIComponent(n(e))}).join(t):a+encodeURIComponent(n(e[o]))}).join(t):o?encodeURIComponent(n(o))+r+encodeURIComponent(n(e)):""}},function(e,t,n){"use strict";t.decode=t.parse=n(84),t.encode=t.stringify=n(85)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=Object.assign||function(e){for(var t=1;t does not make sense at the root of your route config"):void 0}},propTypes:{to:v.isRequired,query:m,state:m,onEnter:d.falsy,children:d.falsy},render:function(){"production"!==r.env.NODE_ENV?(0,c.default)(!1," elements are for router configuration only and should not be rendered"):(0,c.default)(!1)}});t.default=y,e.exports=t.default}).call(t,n(2))},function(e,t,n){(function(r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(1),i=o(a),s=n(12),u=o(s),l=n(5),c=o(l),f=n(8),p=n(15),d=i.default.PropTypes.func,h=i.default.createClass({displayName:"IndexRoute",statics:{createRouteFromReactElement:function(e,t){t?t.indexRoute=(0,f.createRouteFromReactElement)(e):"production"!==r.env.NODE_ENV?(0,u.default)(!1,"An does not make sense at the root of your route config"):void 0}},propTypes:{path:p.falsy,component:p.component,components:p.components,getComponent:d,getComponents:d},render:function(){"production"!==r.env.NODE_ENV?(0,c.default)(!1," elements are for router configuration only and should not be rendered"):(0,c.default)(!1)}});t.default=h,e.exports=t.default}).call(t,n(2))},function(e,t,n){(function(r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(1),i=o(a),s=n(5),u=o(s),l=n(8),c=n(15),f=i.default.PropTypes,p=f.string,d=f.func,h=i.default.createClass({displayName:"Route",statics:{createRouteFromReactElement:l.createRouteFromReactElement},propTypes:{path:p,component:c.component,components:c.components,getComponent:d,getComponents:d},render:function(){"production"!==r.env.NODE_ENV?(0,u.default)(!1," elements are for router configuration only and should not be rendered"):(0,u.default)(!1)}});t.default=h,e.exports=t.default}).call(t,n(2))},function(e,t,n){(function(r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}t.__esModule=!0;var i=Object.assign||function(e){for(var t=1;t; it will be ignored"):void 0,"production"!==r.env.NODE_ENV?(0,b.default)((e.routes||e.children)===(this.props.routes||this.props.children),"You cannot change ; it will be ignored"):void 0},componentWillUnmount:function(){this._unlisten&&this._unlisten()},render:function e(){var t=this.state,n=t.location,r=t.routes,o=t.params,s=t.components,u=this.props,l=u.createElement,e=u.render,c=a(u,["createElement","render"]);return null==n?null:(Object.keys(O.propTypes).forEach(function(e){return delete c[e]}),e(i({},c,{router:this.router,location:n,routes:r,params:o,components:s,createElement:l})))}});t.default=O,e.exports=t.default}).call(t,n(2))},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,n,r){var o=e.length0&&void 0!==arguments[0]?arguments[0]:i.createElement;return function(t,n){return u.reduceRight(function(e,t){return t(e,n)},e(t,n))}};return function(e){return o.reduceRight(function(t,n){return n(t,e)},s.default.createElement(l.default,a({},e,{createElement:c(e.createElement)})))}},e.exports=t.default}).call(t,n(2))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n(106),a=r(o),i=n(49),s=r(i);t.default=(0,s.default)(a.default),e.exports=t.default},function(e,t,n){"use strict";function r(e,t,n){if(!e.path)return!1;var r=(0,a.getParamNames)(e.path);return r.some(function(e){return t.params[e]!==n.params[e]})}function o(e,t){var n=e&&e.routes,o=t.routes,a=void 0,i=void 0,s=void 0;return n?!function(){var u=!1;a=n.filter(function(n){if(u)return!0;var a=o.indexOf(n)===-1||r(n,e,t);return a&&(u=!0),a}),a.reverse(),s=[],i=[],o.forEach(function(e){var t=n.indexOf(e)===-1,r=a.indexOf(e)!==-1;t||r?s.push(e):i.push(e)})}():(a=[],i=[],s=o),{leaveRoutes:a,changeRoutes:i,enterRoutes:s}}t.__esModule=!0;var a=n(11);t.default=o,e.exports=t.default},function(e,t,n){"use strict";function r(e,t,n){if(t.component||t.components)return void n(null,t.component||t.components);var r=t.getComponent||t.getComponents;if(r){var o=r.call(t,e,n);(0,i.isPromise)(o)&&o.then(function(e){return n(null,e)},n)}else n()}function o(e,t){(0,a.mapAsync)(e.routes,function(t,n,o){r(e,t,o)},t)}t.__esModule=!0;var a=n(22),i=n(45);t.default=o,e.exports=t.default},function(e,t,n){"use strict";function r(e,t){var n={};return e.path?((0,o.getParamNames)(e.path).forEach(function(e){Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e])}),n):n}t.__esModule=!0;var o=n(11);t.default=r,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n(107),a=r(o),i=n(49),s=r(i);t.default=(0,s.default)(a.default),e.exports=t.default},function(e,t,n){"use strict";function r(e,t){if(e==t)return!0;if(null==e||null==t)return!1;if(Array.isArray(e))return Array.isArray(t)&&e.length===t.length&&e.every(function(e,n){return r(e,t[n])});if("object"===("undefined"==typeof e?"undefined":u(e))){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n))if(void 0===e[n]){if(void 0!==t[n])return!1}else{if(!Object.prototype.hasOwnProperty.call(t,n))return!1;if(!r(e[n],t[n]))return!1}return!0}return String(e)===String(t)}function o(e,t){return"/"!==t.charAt(0)&&(t="/"+t),"/"!==e.charAt(e.length-1)&&(e+="/"),"/"!==t.charAt(t.length-1)&&(t+="/"),t===e}function a(e,t,n){for(var r=e,o=[],a=[],i=0,s=t.length;i=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){var n=e.history,o=e.routes,i=e.location,l=a(e,["history","routes","location"]);n||i?void 0:"production"!==r.env.NODE_ENV?(0,c.default)(!1,"match needs a history or a location"):(0,c.default)(!1),n=n?n:(0,p.default)(l);var f=(0,h.default)(n,(0,v.createRoutes)(o));i=i?n.createLocation(i):n.getCurrentLocation(),f.match(i,function(e,r,o){var a=void 0;if(o){var i=(0,m.createRouterObject)(n,f,o);a=s({},o,{router:i,matchContext:{transitionManager:f,router:i}})}t(e,r&&n.createLocation(r,u.REPLACE),a)})}t.__esModule=!0;var s=Object.assign||function(e){for(var t=1;t4&&void 0!==arguments[4]?arguments[4]:[],a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[];void 0===r&&("/"!==t.pathname.charAt(0)&&(t=f({},t,{pathname:"/"+t.pathname})),r=t.pathname),(0,d.loopAsync)(e.length,function(n,i,s){l(e[n],t,r,o,a,function(e,t){e||t?s(e,t):i()})},n)}t.__esModule=!0;var f=Object.assign||function(e){for(var t=1;t=e&&i&&(o=!0,n()))}};l()}},function(e,t,n){(function(e){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.replaceLocation=t.pushLocation=t.startListener=t.getCurrentLocation=t.go=t.getUserConfirmation=void 0;var o=n(26);Object.defineProperty(t,"getUserConfirmation",{enumerable:!0,get:function(){return o.getUserConfirmation}}),Object.defineProperty(t,"go",{enumerable:!0,get:function(){return o.go}});var a=n(10),i=r(a),s=n(13),u=n(17),l=n(52),c=n(9),f="hashchange",p=function(){var e=window.location.href,t=e.indexOf("#");return t===-1?"":e.substring(t+1)},d=function(e){return window.location.hash=e},h=function(e){var t=window.location.href.indexOf("#");window.location.replace(window.location.href.slice(0,t>=0?t:0)+"#"+e)},v=t.getCurrentLocation=function(e,t){var n=e.decodePath(p()),r=(0,c.getQueryStringValueFromPath)(n,t),o=void 0;r&&(n=(0,c.stripQueryStringValueFromPath)(n,t),o=(0,l.readState)(r));var a=(0,c.parsePath)(n);return a.state=o,(0,s.createLocation)(a,void 0,r)},m=void 0,y=(t.startListener=function(e,t,n){var r=function(){var r=p(),o=t.encodePath(r);if(r!==o)h(o);else{var a=v(t,n);if(m&&a.key&&m.key===a.key)return;m=a,e(a)}},o=p(),a=t.encodePath(o);return o!==a&&h(a),(0,u.addEventListener)(window,f,r),function(){return(0,u.removeEventListener)(window,f,r)}},function(e,t,n,r){var o=e.state,a=e.key,i=t.encodePath((0,c.createPath)(e));void 0!==o&&(i=(0,c.addQueryStringValueToPath)(i,n,a),(0,l.saveState)(a,o)),m=e,r(i)});t.pushLocation=function(t,n,r){return y(t,n,r,function(t){p()!==t?d(t):"production"!==e.env.NODE_ENV?(0,i.default)(!1,"You cannot PUSH the same path using hash history"):void 0})},t.replaceLocation=function(e,t,n){return y(e,t,n,function(e){p()!==e&&h(e)})}}).call(t,n(2))},function(e,t,n){"use strict";t.__esModule=!0,t.replaceLocation=t.pushLocation=t.getCurrentLocation=t.go=t.getUserConfirmation=void 0;var r=n(26);Object.defineProperty(t,"getUserConfirmation",{enumerable:!0,get:function(){return r.getUserConfirmation}}),Object.defineProperty(t,"go",{enumerable:!0,get:function(){return r.go}});var o=n(13),a=n(9);t.getCurrentLocation=function(){return(0,o.createLocation)(window.location)},t.pushLocation=function(e){return window.location.href=(0,a.createPath)(e),!1},t.replaceLocation=function(e){return window.location.replace((0,a.createPath)(e)),!1}},function(e,t,n){(function(e){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};u.canUseDOM?void 0:"production"!==e.env.NODE_ENV?(0,s.default)(!1,"Browser history needs a DOM"):(0,s.default)(!1);var n=t.forceRefresh||!(0,d.supportsHistory)(),r=n?p:c,o=r.getUserConfirmation,i=r.getCurrentLocation,l=r.pushLocation,f=r.replaceLocation,h=r.go,m=(0,v.default)(a({getUserConfirmation:o},t,{getCurrentLocation:i,pushLocation:l,replaceLocation:f,go:h})),y=0,g=void 0,b=function(e,t){1===++y&&(g=c.startListener(m.transitionTo));var n=t?m.listenBefore(e):m.listen(e);return function(){n(),0===--y&&g()}},_=function(e){return b(e,!0)},w=function(e){return b(e,!1)};return a({},m,{listenBefore:_,listen:w})};t.default=m}).call(t,n(2))},function(e,t,n){(function(e){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};c.canUseDOM?void 0:"production"!==e.env.NODE_ENV?(0,l.default)(!1,"Hash history needs a DOM"):(0,l.default)(!1);var n=t.queryKey,r=t.hashType;"production"!==e.env.NODE_ENV?(0,s.default)(n!==!1,"Using { queryKey: false } no longer works. Instead, just don't use location state if you don't want a key in your URL query string"):void 0,"string"!=typeof n&&(n=m),null==r&&(r="slash"),r in g||("production"!==e.env.NODE_ENV?(0,s.default)(!1,"Invalid hash type: %s",r):void 0,r="slash");var o=g[r],i=d.getUserConfirmation,u=function(){return d.getCurrentLocation(o,n)},p=function(e){return d.pushLocation(e,o,n)},h=function(e){return d.replaceLocation(e,o,n)},y=(0,v.default)(a({getUserConfirmation:i},t,{getCurrentLocation:u,pushLocation:p,replaceLocation:h,go:d.go})),b=0,_=void 0,w=function(e,t){1===++b&&(_=d.startListener(y.transitionTo,o,n));var r=t?y.listenBefore(e):y.listen(e);return function(){r(),0===--b&&_()}},E=function(e){return w(e,!0)},O=function(e){return w(e,!1)},P=(0,f.supportsGoWithoutReloadUsingHash)(),k=function(t){"production"!==e.env.NODE_ENV?(0,s.default)(P,"Hash history go(n) causes a full page reload in this browser"):void 0,y.go(t)},j=function(e){return"#"+o.encodePath(y.createHref(e))};return a({},y,{listenBefore:E,listen:O,go:k,createHref:j})};t.default=b}).call(t,n(2))},function(e,t,n){(function(e){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};Array.isArray(t)?t={entries:t}:"string"==typeof t&&(t={entries:[t]});var n=function(){var e=y[g],t=(0,c.createPath)(e),n=void 0,r=void 0;e.key&&(n=e.key,r=w(n));var a=(0,c.parsePath)(t);return(0,l.createLocation)(o({},a,{state:r}),void 0,n)},r=function(e){var t=g+e;return t>=0&&t=0&&g= 0 and < %s, was %s",y.length,g):(0,u.default)(!1);var b=h(y),_=function(e,t){return b[e]=t},w=function(e){return b[e]};return o({},v,{canGo:r})};t.default=v}).call(t,n(2))},function(e,t){"use strict";e.exports=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}},function(e,t,n){var r;(function(e,o){!function(a){function i(e){throw RangeError(T[e])}function s(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function u(e,t){var n=e.split("@"),r="";n.length>1&&(r=n[0]+"@",e=n[1]),e=e.replace(C,".");var o=e.split("."),a=s(o,t).join(".");return r+a}function l(e){for(var t,n,r=[],o=0,a=e.length;o=55296&&t<=56319&&o65535&&(e-=65536,t+=L(e>>>10&1023|55296),e=56320|1023&e),t+=L(e)}).join("")}function f(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:w}function p(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function d(e,t,n){var r=0;for(e=n?A(e/k):e>>1,e+=A(e/t);e>M*O>>1;r+=w)e=A(e/M);return A(r+(M+1)*e/(e+P))}function h(e){var t,n,r,o,a,s,u,l,p,h,v=[],m=e.length,y=0,g=S,b=j;for(n=e.lastIndexOf(R),n<0&&(n=0),r=0;r=128&&i("not-basic"),v.push(e.charCodeAt(r));for(o=n>0?n+1:0;o=m&&i("invalid-input"),l=f(e.charCodeAt(o++)),(l>=w||l>A((_-y)/s))&&i("overflow"),y+=l*s,p=u<=b?E:u>=b+O?O:u-b,!(lA(_/h)&&i("overflow"),s*=h;t=v.length+1,b=d(y-a,t,0==a),A(y/t)>_-g&&i("overflow"),g+=A(y/t),y%=t,v.splice(y++,0,g)}return c(v)}function v(e){var t,n,r,o,a,s,u,c,f,h,v,m,y,g,b,P=[];for(e=l(e),m=e.length,t=S,n=0,a=j,s=0;s=t&&vA((_-n)/y)&&i("overflow"),n+=(u-t)*y,t=u,s=0;s_&&i("overflow"),v==t){for(c=n,f=w;h=f<=a?E:f>=a+O?O:f-a,!(c= 0x80 (not a basic code point)","invalid-input":"Invalid input"},M=w-E,A=Math.floor,L=String.fromCharCode;b={version:"1.3.2",ucs2:{decode:l,encode:c},decode:h,encode:v,toASCII:y,toUnicode:m},r=function(){return b}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))}(this)}).call(t,n(113)(e),function(){return this}())},function(e,t,n){"use strict";function r(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function o(e,t,n){if(e&&l.isObject(e)&&e instanceof r)return e;var o=new r;return o.parse(e,t,n),o}function a(e){return l.isString(e)&&(e=o(e)),e instanceof r?e.format():r.prototype.format.call(e)}function i(e,t){return o(e,!1,!0).resolve(t)}function s(e,t){return e?o(e,!1,!0).resolveObject(t):t}var u=n(110),l=n(112);t.parse=o,t.resolve=i,t.resolveObject=s,t.format=a,t.Url=r;var c=/^([a-z0-9.+-]+:)/i,f=/:[0-9]*$/,p=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,d=["<",">",'"',"`"," ","\r","\n","\t"],h=["{","}","|","\\","^","`"].concat(d),v=["'"].concat(h),m=["%","/","?",";","#"].concat(v),y=["/","?","#"],g=255,b=/^[+a-z0-9A-Z_-]{0,63}$/,_=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,w={javascript:!0,"javascript:":!0},E={javascript:!0,"javascript:":!0},O={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0, -"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},P=n(86);r.prototype.parse=function(e,t,n){if(!l.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var r=e.indexOf("?"),o=r!==-1&&r127?"x":A[F];if(!L.match(b)){var U=T.slice(0,S),D=T.slice(S+1),q=A.match(_);q&&(U.push(q[1]),D.unshift(q[2])),D.length&&(s="/"+D.join(".")+s),this.hostname=U.join(".");break}}}this.hostname.length>g?this.hostname="":this.hostname=this.hostname.toLowerCase(),C||(this.hostname=u.toASCII(this.hostname));var H=this.port?":"+this.port:"",V=this.hostname||"";this.host=V+H,this.href+=this.host,C&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==s[0]&&(s="/"+s))}if(!w[h])for(var S=0,M=v.length;S0)&&n.host.split("@");k&&(n.auth=k.shift(),n.host=n.hostname=k.shift())}return n.search=e.search,n.query=e.query,l.isNull(n.pathname)&&l.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!w.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var j=w.slice(-1)[0],S=(n.host||e.host||w.length>1)&&("."===j||".."===j)||""===j,R=0,x=w.length;x>=0;x--)j=w[x],"."===j?w.splice(x,1):".."===j?(w.splice(x,1),R++):R&&(w.splice(x,1),R--);if(!b&&!_)for(;R--;R)w.unshift("..");!b||""===w[0]||w[0]&&"/"===w[0].charAt(0)||w.unshift(""),S&&"/"!==w.join("/").substr(-1)&&w.push("");var N=""===w[0]||w[0]&&"/"===w[0].charAt(0);if(P){n.hostname=n.host=N?"":w.length?w.shift():"";var k=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@");k&&(n.auth=k.shift(),n.host=n.hostname=k.shift())}return b=b||n.host&&w.length,b&&!N&&w.unshift(""),w.length?n.pathname=w.join("/"):(n.pathname=null,n.path=null),l.isNull(n.pathname)&&l.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},r.prototype.parseHost=function(){var e=this.host,t=f.exec(e);t&&(t=t[0],":"!==t&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children=[],e.webpackPolyfill=1),e}},function(e,t){function n(){for(var e={},t=0;t=e&&u&&(i=!0,n()))}}var a=0,i=!1,s=!1,u=!1,c=void 0;o()}function r(e,t,n){function r(e,t,r){i||(t?(i=!0,n(t)):(a[e]=r,i=++s===o,i&&n(null,a)))}var o=e.length,a=[];if(0===o)return n(null,a);var i=!1,s=0;e.forEach(function(e,n){t(e,n,function(e,t){r(n,e,t)})})}t.__esModule=!0,t.loopAsync=n,t.mapAsync=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return"@@contextSubscriber/"+e}function a(e){var t,n,r=o(e),a=r+"/listeners",i=r+"/eventIndex",s=r+"/subscribe";return n={childContextTypes:(t={},t[r]=c.isRequired,t),getChildContext:function(){var e;return e={},e[r]={eventIndex:this[i],subscribe:this[s]},e},componentWillMount:function(){this[a]=[],this[i]=0},componentWillReceiveProps:function(){this[i]++},componentDidUpdate:function(){var e=this;this[a].forEach(function(t){return t(e[i])})}},n[s]=function(e){var t=this;return this[a].push(e),function(){t[a]=t[a].filter(function(t){return t!==e})}},n}function i(e){var t,n,r=o(e),a=r+"/lastRenderedEventIndex",i=r+"/handleContextUpdate",s=r+"/unsubscribe";return n={contextTypes:(t={},t[r]=c,t),getInitialState:function(){var e;return this.context[r]?(e={},e[a]=this.context[r].eventIndex,e):{}},componentDidMount:function(){this.context[r]&&(this[s]=this.context[r].subscribe(this[i]))},componentWillReceiveProps:function(){var e;this.context[r]&&this.setState((e={},e[a]=this.context[r].eventIndex,e))},componentWillUnmount:function(){this[s]&&(this[s](),this[s]=null)}},n[i]=function(e){if(e!==this.state[a]){var t;this.setState((t={},t[a]=e,t))}},n}t.__esModule=!0,t.ContextProvider=a,t.ContextSubscriber=i;var s=n(8),u=r(s),c=u.default.shape({subscribe:u.default.func.isRequired,eventIndex:u.default.number.isRequired})},function(e,t,n){"use strict";t.__esModule=!0,t.locationShape=t.routerShape=void 0;var r=n(8);t.routerShape=(0,r.shape)({push:r.func.isRequired,replace:r.func.isRequired,go:r.func.isRequired,goBack:r.func.isRequired,goForward:r.func.isRequired,setRouteLeaveHook:r.func.isRequired,isActive:r.func.isRequired}),t.locationShape=(0,r.shape)({pathname:r.string.isRequired,search:r.string.isRequired,state:r.object,action:r.string.isRequired,key:r.string})},function(e,t,n){(function(r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.getCurrentLocation,n=e.getUserConfirmation,r=e.pushLocation,i=e.replaceLocation,l=e.go,f=e.keyLength,p=void 0,d=void 0,h=[],v=[],m=[],y=function(){return d&&d.action===u.POP?m.indexOf(d.key):p?m.indexOf(p.key):-1},g=function(e){var t=y();p=e,p.action===u.PUSH?m=[].concat(m.slice(0,t+1),[p.key]):p.action===u.REPLACE&&(m[t]=p.key),v.forEach(function(e){return e(p)})},b=function(e){return h.push(e),function(){return h=h.filter(function(t){return t!==e})}},_=function(e){return v.push(e),function(){return v=v.filter(function(t){return t!==e})}},E=function(e,t){(0,o.loopAsync)(h.length,function(t,n,r){(0,s.default)(h[t],e,function(e){return null!=e?r(e):n()})},function(e){n&&"string"==typeof e?n(e,function(e){return t(e!==!1)}):t(e!==!1)})},w=function(e){p&&(0,c.locationsAreEqual)(p,e)||d&&(0,c.locationsAreEqual)(d,e)||(d=e,E(e,function(t){if(d===e)if(d=null,t){if(e.action===u.PUSH){var n=(0,a.createPath)(p),o=(0,a.createPath)(e);o===n&&(0,c.statesAreEqual)(p.state,e.state)&&(e.action=u.REPLACE)}e.action===u.POP?g(e):e.action===u.PUSH?r(e)!==!1&&g(e):e.action===u.REPLACE&&i(e)!==!1&&g(e)}else if(p&&e.action===u.POP){var s=m.indexOf(p.key),f=m.indexOf(e.key);s!==-1&&f!==-1&&l(s-f)}}))},O=function(e){return w(S(e,u.PUSH))},P=function(e){return w(S(e,u.REPLACE))},k=function(){return l(-1)},j=function(){return l(1)},R=function(){return Math.random().toString(36).substr(2,f||6)},N=function(e){return(0,a.createPath)(e)},S=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:R();return(0,c.createLocation)(e,t,n)};return{getCurrentLocation:t,listenBefore:b,listen:_,transitionTo:w,push:O,replace:P,go:l,goBack:k,goForward:j,createKey:R,createPath:a.createPath,createHref:N,createLocation:S}};t.default=l},function(e,t,n){(function(e){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n(12),a=r(o),i=function(t,n,r){var o=t(n,r);t.length<2?r(o):"production"!==e.env.NODE_ENV?(0,a.default)(void 0===o,'You should not "return" in a transition hook with a callback argument; call the callback instead'):void 0};t.default=i}).call(t,n(1))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e){setTimeout(function(){u.default.getDispatcher().dispatch(e)},0)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n0&&this._events[e].length>o&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace())),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){function n(){this.removeListener(e,n),o||(o=!0,t.apply(this,arguments))}if(!r(t))throw TypeError("listener must be a function");var o=!1;return n.listener=t,this.on(e,n),this},n.prototype.removeListener=function(e,t){var n,o,i,s;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(n=this._events[e],i=n.length,o=-1,n===t||r(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(a(n)){for(s=i;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){o=s;break}if(o<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(o,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],r(n))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){var t;return t=this._events&&this._events[e]?r(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(r(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},function(e,t){"use strict";var n=function(e){var t,n={};if(!(e instanceof Object)||Array.isArray(e))throw new Error("keyMirror(...): Argument must be an object.");for(t in e)e.hasOwnProperty(t)&&(n[t]=t);return n};e.exports=n},function(e,t,n){(function(r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e){return 0===e.button}function s(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function u(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}function c(e,t){return"function"==typeof e?e(t.location):e}t.__esModule=!0;var l=Object.assign||function(e){for(var t=1;ts rendered outside of a router context cannot navigate."):(0,y.default)(!1),!s(e)&&i(e)&&(this.props.target||(e.preventDefault(),t.push(c(this.props.to,t))))}},render:function(){ +var e=this.props,t=e.to,n=e.activeClassName,r=e.activeStyle,o=e.onlyActiveOnIndex,i=a(e,["to","activeClassName","activeStyle","onlyActiveOnIndex"]),s=this.context.router;if(s){if(!t)return p.default.createElement("a",i);var f=c(t,s);i.href=s.createHref(f),(n||null!=r&&!u(r))&&s.isActive(f,o)&&(n&&(i.className?i.className+=" "+n:i.className=n),r&&(i.style=l({},i.style,r)))}return p.default.createElement("a",l({},i,{onClick:this.handleClick}))}});t.default=_,e.exports=t.default}).call(t,n(1))},function(e,t){"use strict";function n(e){return e&&"function"==typeof e.then}t.__esModule=!0,t.isPromise=n},function(e,t,n){(function(r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(9),i=o(a),s=n(8),u=n(5),c=o(u),l=n(10),f=n(13),p=n(18),d=(0,i.default)({displayName:"Redirect",statics:{createRouteFromReactElement:function(e){var t=(0,l.createRouteFromReactElement)(e);return t.from&&(t.path=t.from),t.onEnter=function(e,n){var r=e.location,o=e.params,a=void 0;if("/"===t.to.charAt(0))a=(0,f.formatPattern)(t.to,o);else if(t.to){var i=e.routes.indexOf(t),s=d.getRoutePattern(e.routes,i-1),u=s.replace(/\/*$/,"/")+t.to;a=(0,f.formatPattern)(u,o)}else a=r.pathname;n({pathname:a,query:t.query||r.query,state:t.state||r.state})},t},getRoutePattern:function(e,t){for(var n="",r=t;r>=0;r--){var o=e[r],a=o.path||"";if(n=a.replace(/\/*$/,"/")+n,0===a.indexOf("/"))break}return"/"+n}},propTypes:{path:s.string,from:s.string,to:s.string.isRequired,query:s.object,state:s.object,onEnter:p.falsy,children:p.falsy},render:function(){"production"!==r.env.NODE_ENV?(0,c.default)(!1," elements are for router configuration only and should not be rendered"):(0,c.default)(!1)}});t.default=d,e.exports=t.default}).call(t,n(1))},function(e,t){"use strict";function n(e,t,n){var a=o({},e,{setRouteLeaveHook:t.listenBeforeLeavingRoute,isActive:t.isActive});return r(a,n)}function r(e,t){var n=t.location,r=t.params,o=t.routes;return e.location=n,e.params=r,e.routes=o,e}t.__esModule=!0;var o=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]&&arguments[1];return e.__id__||t&&(e.__id__=R++)}function l(e){return e.map(function(e){return N[u(e)]}).filter(function(e){return e})}function p(e,n){(0,b.default)(t,e,function(t,r){if(null==r)return void n();j=s({},r,{location:e});for(var o=l((0,f.default)(E,j).leaveRoutes),a=void 0,i=0,u=o.length;null==a&&i0&&void 0!==arguments[0]?arguments[0]:{},n=e(t),r=t.basename,a=function(e){return e?(r&&null==e.basename&&(0===e.pathname.toLowerCase().indexOf(r.toLowerCase())?(e.pathname=e.pathname.substring(r.length),e.basename=r,""===e.pathname&&(e.pathname="/")):e.basename=""),e):e},u=function(e){if(!r)return e;var t="string"==typeof e?(0,s.parsePath)(e):e,n=t.pathname,a="/"===r.slice(-1)?r:r+"/",i="/"===n.charAt(0)?n.slice(1):n,u=a+i;return o({},t,{pathname:u})},c=function(){return a(n.getCurrentLocation())},l=function(e){return n.listenBefore(function(t,n){return(0,i.default)(e,a(t),n)})},f=function(e){return n.listen(function(t){return e(a(t))})},p=function(e){return n.push(u(e))},d=function(e){return n.replace(u(e))},h=function(e){return n.createPath(u(e))},v=function(e){return n.createHref(u(e))},m=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),o=1;o0&&void 0!==arguments[0]?arguments[0]:{},n=e(t),r=t.stringifyQuery,a=t.parseQueryString;"function"!=typeof r&&(r=l),"function"!=typeof a&&(a=f);var i=function(e){return e?(null==e.query&&(e.query=a(e.search.substring(1))),e):e},p=function(e,t){if(null==t)return e;var n="string"==typeof e?(0,c.parsePath)(e):e,a=r(t),i=a?"?"+a:"";return o({},n,{search:i})},d=function(){return i(n.getCurrentLocation())},h=function(e){return n.listenBefore(function(t,n){return(0,s.default)(e,i(t),n)})},v=function(e){return n.listen(function(t){return e(i(t))})},m=function(e){return n.push(p(e,e.query))},y=function(e){return n.replace(p(e,e.query))},g=function(e){return n.createPath(p(e,e.query))},b=function(e){return n.createHref(p(e,e.query))},_=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),o=1;o","In order to use the inGroup property, you must expand the groups resource for the /me endpoint."));var n=d.default.excludeProps(["inGroup"],this.props);return t?d.default.enforceRootElement(this.props.children,n):null}}]),t}(f.default.Component),s.contextTypes={user:f.default.PropTypes.object},u);t.default=h},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=Object.assign||function(e){for(var t=1;t In order to use the inGroup option, you must expand the groups resource for the /me endpoint.")}var n=d.default.excludeProps(["inGroup"],this.props);return t?null:d.default.enforceRootElement(this.props.children,n)}}]),t}(f.default.Component),s.contextTypes={user:f.default.PropTypes.object},u);t.default=h},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s,u,c=Object.assign||function(e){for(var t=1;t0})}},{key:"render",value:function(){return p.default.createElement(_,this.props,p.default.createElement("div",{className:"sp-update-profile-form"},p.default.createElement("div",{className:"row"},p.default.createElement("div",{className:"col-xs-12"},p.default.createElement("div",{className:"form-horizontal"},p.default.createElement("div",{className:"form-group"},p.default.createElement("label",{htmlFor:"givenName",className:"col-xs-12 col-sm-4 control-label"},"First name"),p.default.createElement("div",{className:"col-xs-12 col-sm-4"},p.default.createElement("input",{type:"text",className:"form-control",id:"givenName",name:"givenName",placeholder:"First name",required:!0}))),p.default.createElement("div",{className:"form-group"},p.default.createElement("label",{htmlFor:"surname",className:"col-xs-12 col-sm-4 control-label"},"Last name"),p.default.createElement("div",{className:"col-xs-12 col-sm-4"},p.default.createElement("input",{type:"text",className:"form-control",id:"surname",name:"surname",placeholder:"Last name",required:!0}))),p.default.createElement("div",{className:"form-group"},p.default.createElement("label",{htmlFor:"email",className:"col-xs-12 col-sm-4 control-label"},"Email"),p.default.createElement("div",{className:"col-xs-12 col-sm-4"},p.default.createElement("input",{type:"email",className:"form-control",id:"email",name:"email",placeholder:"Email",required:!0}))),p.default.createElement("div",{className:"form-group"},p.default.createElement("label",{htmlFor:"password",className:"col-xs-12 col-sm-4 control-label"},"Password"),p.default.createElement("div",{className:"col-xs-12 col-sm-4"},p.default.createElement("input",{type:"password",className:"form-control",id:"password",name:"password",placeholder:"Password",onChange:this.onPasswordChanged.bind(this)}))),p.default.createElement("div",null,this.state.showPasswordVerification?p.default.createElement("div",{className:"form-group"},p.default.createElement("label",{htmlFor:"password",className:"col-xs-12 col-sm-4 control-label"},"Existing password"),p.default.createElement("div",{className:"col-xs-12 col-sm-4"},p.default.createElement("input",{type:"password",className:"form-control",id:"existingPassword",name:"existingPassword",placeholder:"Existing password",required:!0}))):null),p.default.createElement("div",{key:"update-button",className:"form-group"},p.default.createElement("div",{className:"col-sm-offset-4 col-sm-4"},p.default.createElement("p",{className:"alert alert-danger","data-spIf":"form.error"},p.default.createElement("span",{"data-spBind":"form.errorMessage"})),p.default.createElement("p",{className:"alert alert-success","data-spIf":"form.successful"},"Profile updated."),p.default.createElement("button",{type:"submit",className:"btn btn-primary"},p.default.createElement("span",{"data-spIf":"!form.processing"},"Update"),p.default.createElement("span",{"data-spIf":"form.processing"},"Updating...")))))))))}}]),t}(p.default.Component),_=(u=s=function(e){function t(){var e,n,r,i;o(this,t);for(var s=arguments.length,u=Array(s),c=0;c In order to use the inGroup option, you must expand the groups resource for the /me endpoint.")),t(r,a)})}},{key:"getAccessToken",value:function(){return this.service.getToken?this.service.getToken("access_token").then(function(e){return e?Promise.resolve(e):Promise.reject("No access token available.")}):Promise.reject(new Error("Unable to retrieve access token for current auth strategy."))}},{key:"getLoginViewData",value:function(e){this.service.getLoginViewData(e)}},{key:"login",value:function(e,t){var n=this;this.reset(),this.service.login(e,function(e){return e?t(e):void n.resolveSession(t,!0)})}},{key:"register",value:function(e,t){this.service.register(e,t)}},{key:"getRegisterViewData",value:function(e){this.service.getRegisterViewData(e)}},{key:"forgotPassword",value:function(e,t){this.service.forgotPassword(e,t)}},{key:"changePassword",value:function(e,t){this.service.changePassword(e,t)}},{key:"updateProfile",value:function(e,t){this.service.updateProfile(e,t)}},{key:"verifyEmail",value:function(e,t){this.service.verifyEmail(e,t)}},{key:"logout",value:function(e){var t=this;this.service.logout(function(n){return n?e(n):(t.reset(),t.emitChange(),void e())})}},{key:"resolveSession",value:function(e,t){var n=this;return t||!this.sessionError&&this.sessionStore.empty()?void this.service.me(function(t,r){t?(n.sessionError=t,n.sessionStore.reset(),d.default.set(null)):(n.sessionError=null,n.sessionStore.set(r),d.default.set(r)),e&&e(n.sessionError,n.sessionStore.get()),n.emitChange()}):e&&e(this.sessionError,this.sessionStore.get())}},{key:"reset",value:function(){this.sessionError=null,this.sessionStore.reset(),d.default.set(null)}}]),t}(f.default);t.default=h},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.TokenStore=t.SessionStore=t.UserStore=void 0;var o=n(83),a=r(o),i=n(48),s=r(i),u=n(82),c=r(u);t.UserStore=a.default,t.SessionStore=s.default,t.TokenStore=c.default},function(e,t,n){(function(t){"use strict";function r(e){return e}function o(e,n,o){function f(e,n,r){for(var o in n)n.hasOwnProperty(o)&&"production"!==t.env.NODE_ENV&&u("function"==typeof n[o],"%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.",e.displayName||"ReactClass",c[r],o)}function p(e,t){var n=w.hasOwnProperty(t)?w[t]:null;R.hasOwnProperty(t)&&s("OVERRIDE_BASE"===n,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",t),e&&s("DEFINE_MANY"===n||"DEFINE_MANY_MERGED"===n,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",t)}function d(e,r){if(r){s("function"!=typeof r,"ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object."),s(!n(r),"ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.");var o=e.prototype,a=o.__reactAutoBindPairs;r.hasOwnProperty(l)&&P.mixins(e,r.mixins);for(var i in r)if(r.hasOwnProperty(i)&&i!==l){var c=r[i],f=o.hasOwnProperty(i);if(p(f,i),P.hasOwnProperty(i))P[i](e,c);else{var d=w.hasOwnProperty(i),h="function"==typeof c,v=h&&!d&&!f&&r.autobind!==!1;if(v)a.push(i,c),o[i]=c;else if(f){var g=w[i];s(d&&("DEFINE_MANY_MERGED"===g||"DEFINE_MANY"===g),"ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.",g,i),"DEFINE_MANY_MERGED"===g?o[i]=m(o[i],c):"DEFINE_MANY"===g&&(o[i]=y(o[i],c))}else o[i]=c,"production"!==t.env.NODE_ENV&&"function"==typeof c&&r.displayName&&(o[i].displayName=r.displayName+"_"+i)}}}else if("production"!==t.env.NODE_ENV){var b=typeof r,_="object"===b&&null!==r;"production"!==t.env.NODE_ENV&&u(_,"%s: You're attempting to include a mixin that is either null or not an object. Check the mixins included by the component, as well as any mixins they include themselves. Expected object but got %s.",e.displayName||"ReactClass",null===r?null:b)}}function h(e,t){if(t)for(var n in t){var r=t[n];if(t.hasOwnProperty(n)){var o=n in P;s(!o,'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',n);var a=n in e;if(a){var i=O.hasOwnProperty(n)?O[n]:null;return s("DEFINE_MANY_MERGED"===i,"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",n),void(e[n]=m(e[n],r))}e[n]=r}}}function v(e,t){s(e&&t&&"object"==typeof e&&"object"==typeof t,"mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.");for(var n in t)t.hasOwnProperty(n)&&(s(void 0===e[n],"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",n),e[n]=t[n]);return e}function m(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 v(o,n),v(o,r),o}}function y(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function g(e,n){var r=n.bind(e);if("production"!==t.env.NODE_ENV){r.__reactBoundContext=e,r.__reactBoundMethod=n,r.__reactBoundArguments=null;var o=e.constructor.displayName,a=r.bind;r.bind=function(i){for(var s=arguments.length,c=Array(s>1?s-1:0),l=1;l0&&u>s&&(u=s);for(var c=0;c=0?(l=h.substr(0,v),f=h.substr(v+1)):(l=h,f=""),p=decodeURIComponent(l),d=decodeURIComponent(f),n(a,p)?Array.isArray(a[p])?a[p].push(d):a[p]=[a[p],d]:a[p]=d}return a}},function(e,t){"use strict";var n=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,r,o){return t=t||"&",r=r||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map(function(o){var a=encodeURIComponent(n(o))+r;return Array.isArray(e[o])?e[o].map(function(e){return a+encodeURIComponent(n(e))}).join(t):a+encodeURIComponent(n(e[o]))}).join(t):o?encodeURIComponent(n(o))+r+encodeURIComponent(n(e)):""}},function(e,t,n){"use strict";t.decode=t.parse=n(94),t.encode=t.stringify=n(95)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=Object.assign||function(e){for(var t=1;t does not make sense at the root of your route config"):void 0}},propTypes:{to:s.string.isRequired,query:s.object,state:s.object,onEnter:h.falsy,children:h.falsy},render:function(){"production"!==r.env.NODE_ENV?(0,f.default)(!1," elements are for router configuration only and should not be rendered"):(0,f.default)(!1)}});t.default=v,e.exports=t.default}).call(t,n(1))},function(e,t,n){(function(r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(9),i=o(a),s=n(8),u=n(14),c=o(u),l=n(5),f=o(l),p=n(10),d=n(18),h=(0,i.default)({displayName:"IndexRoute",statics:{createRouteFromReactElement:function(e,t){t?t.indexRoute=(0,p.createRouteFromReactElement)(e):"production"!==r.env.NODE_ENV?(0,c.default)(!1,"An does not make sense at the root of your route config"):void 0}},propTypes:{path:d.falsy,component:d.component,components:d.components,getComponent:s.func,getComponents:s.func},render:function(){"production"!==r.env.NODE_ENV?(0,f.default)(!1," elements are for router configuration only and should not be rendered"):(0,f.default)(!1)}});t.default=h,e.exports=t.default}).call(t,n(1))},function(e,t,n){(function(r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(9),i=o(a),s=n(8),u=n(5),c=o(u),l=n(10),f=n(18),p=(0,i.default)({displayName:"Route",statics:{createRouteFromReactElement:l.createRouteFromReactElement},propTypes:{path:s.string,component:f.component,components:f.components,getComponent:s.func,getComponents:s.func},render:function(){"production"!==r.env.NODE_ENV?(0,c.default)(!1," elements are for router configuration only and should not be rendered"):(0,c.default)(!1)}});t.default=p,e.exports=t.default}).call(t,n(1))},function(e,t,n){(function(r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}t.__esModule=!0;var i=Object.assign||function(e){for(var t=1;t; it will be ignored"):void 0,"production"!==r.env.NODE_ENV?(0,w.default)((e.routes||e.children)===(this.props.routes||this.props.children),"You cannot change ; it will be ignored"):void 0},componentWillUnmount:function(){this._unlisten&&this._unlisten()},render:function e(){var t=this.state,n=t.location,r=t.routes,o=t.params,s=t.components,u=this.props,c=u.createElement,e=u.render,l=a(u,["createElement","render"]);return null==n?null:(Object.keys(O).forEach(function(e){ +return delete l[e]}),e(i({},l,{router:this.router,location:n,routes:r,params:o,components:s,createElement:c})))}});t.default=P,e.exports=t.default}).call(t,n(1))},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(){function e(e,t,n,r){var o=e.length0&&void 0!==arguments[0]?arguments[0]:i.createElement;return function(t,n){return u.reduceRight(function(e,t){return t(e,n)},e(t,n))}};return function(e){return o.reduceRight(function(t,n){return n(t,e)},s.default.createElement(c.default,a({},e,{createElement:l(e.createElement)})))}},e.exports=t.default}).call(t,n(1))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n(116),a=r(o),i=n(56),s=r(i);t.default=(0,s.default)(a.default),e.exports=t.default},function(e,t,n){"use strict";function r(e,t,n){if(!e.path)return!1;var r=(0,a.getParamNames)(e.path);return r.some(function(e){return t.params[e]!==n.params[e]})}function o(e,t){var n=e&&e.routes,o=t.routes,a=void 0,i=void 0,s=void 0;if(n){var u=!1;a=n.filter(function(n){if(u)return!0;var a=o.indexOf(n)===-1||r(n,e,t);return a&&(u=!0),a}),a.reverse(),s=[],i=[],o.forEach(function(e){var t=n.indexOf(e)===-1,r=a.indexOf(e)!==-1;t||r?s.push(e):i.push(e)})}else a=[],i=[],s=o;return{leaveRoutes:a,changeRoutes:i,enterRoutes:s}}t.__esModule=!0;var a=n(13);t.default=o,e.exports=t.default},function(e,t,n){"use strict";function r(e,t,n){if(t.component||t.components)return void n(null,t.component||t.components);var r=t.getComponent||t.getComponents;if(r){var o=r.call(t,e,n);(0,i.isPromise)(o)&&o.then(function(e){return n(null,e)},n)}else n()}function o(e,t){(0,a.mapAsync)(e.routes,function(t,n,o){r(e,t,o)},t)}t.__esModule=!0;var a=n(29),i=n(52);t.default=o,e.exports=t.default},function(e,t,n){"use strict";function r(e,t){var n={};return e.path?((0,o.getParamNames)(e.path).forEach(function(e){Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e])}),n):n}t.__esModule=!0;var o=n(13);t.default=r,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n(117),a=r(o),i=n(56),s=r(i);t.default=(0,s.default)(a.default),e.exports=t.default},function(e,t,n){"use strict";function r(e,t){if(e==t)return!0;if(null==e||null==t)return!1;if(Array.isArray(e))return Array.isArray(t)&&e.length===t.length&&e.every(function(e,n){return r(e,t[n])});if("object"===("undefined"==typeof e?"undefined":u(e))){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n))if(void 0===e[n]){if(void 0!==t[n])return!1}else{if(!Object.prototype.hasOwnProperty.call(t,n))return!1;if(!r(e[n],t[n]))return!1}return!0}return String(e)===String(t)}function o(e,t){return"/"!==t.charAt(0)&&(t="/"+t),"/"!==e.charAt(e.length-1)&&(e+="/"),"/"!==t.charAt(t.length-1)&&(t+="/"),t===e}function a(e,t,n){for(var r=e,o=[],a=[],i=0,s=t.length;i=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){var n=e.history,o=e.routes,i=e.location,c=a(e,["history","routes","location"]);n||i?void 0:"production"!==r.env.NODE_ENV?(0,l.default)(!1,"match needs a history or a location"):(0,l.default)(!1),n=n?n:(0,p.default)(c);var f=(0,h.default)(n,(0,v.createRoutes)(o));i=i?n.createLocation(i):n.getCurrentLocation(),f.match(i,function(e,r,o){var a=void 0;if(o){var i=(0,m.createRouterObject)(n,f,o);a=s({},o,{router:i,matchContext:{transitionManager:f,router:i}})}t(e,r&&n.createLocation(r,u.REPLACE),a)})}t.__esModule=!0;var s=Object.assign||function(e){for(var t=1;t4&&void 0!==arguments[4]?arguments[4]:[],a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[];void 0===r&&("/"!==t.pathname.charAt(0)&&(t=f({},t,{pathname:"/"+t.pathname})),r=t.pathname),(0,p.loopAsync)(e.length,function(n,i,s){c(e[n],t,r,o,a,function(e,t){e||t?s(e,t):i()})},n)}t.__esModule=!0;var f=Object.assign||function(e){for(var t=1;t=e&&i&&(o=!0,n()))}};c()}},function(e,t,n){(function(e){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.replaceLocation=t.pushLocation=t.startListener=t.getCurrentLocation=t.go=t.getUserConfirmation=void 0;var o=n(33);Object.defineProperty(t,"getUserConfirmation",{enumerable:!0,get:function(){return o.getUserConfirmation}}),Object.defineProperty(t,"go",{enumerable:!0,get:function(){return o.go}});var a=n(12),i=r(a),s=n(15),u=n(20),c=n(59),l=n(11),f="hashchange",p=function(){var e=window.location.href,t=e.indexOf("#");return t===-1?"":e.substring(t+1)},d=function(e){return window.location.hash=e},h=function(e){var t=window.location.href.indexOf("#");window.location.replace(window.location.href.slice(0,t>=0?t:0)+"#"+e)},v=t.getCurrentLocation=function(e,t){var n=e.decodePath(p()),r=(0,l.getQueryStringValueFromPath)(n,t),o=void 0;r&&(n=(0,l.stripQueryStringValueFromPath)(n,t),o=(0,c.readState)(r));var a=(0,l.parsePath)(n);return a.state=o,(0,s.createLocation)(a,void 0,r)},m=void 0,y=(t.startListener=function(e,t,n){var r=function(){var r=p(),o=t.encodePath(r);if(r!==o)h(o);else{var a=v(t,n);if(m&&a.key&&m.key===a.key)return;m=a,e(a)}},o=p(),a=t.encodePath(o);return o!==a&&h(a),(0,u.addEventListener)(window,f,r),function(){return(0,u.removeEventListener)(window,f,r)}},function(e,t,n,r){var o=e.state,a=e.key,i=t.encodePath((0,l.createPath)(e));void 0!==o&&(i=(0,l.addQueryStringValueToPath)(i,n,a),(0,c.saveState)(a,o)),m=e,r(i)});t.pushLocation=function(t,n,r){return y(t,n,r,function(t){p()!==t?d(t):"production"!==e.env.NODE_ENV?(0,i.default)(!1,"You cannot PUSH the same path using hash history"):void 0})},t.replaceLocation=function(e,t,n){return y(e,t,n,function(e){p()!==e&&h(e)})}}).call(t,n(1))},function(e,t,n){"use strict";t.__esModule=!0,t.replaceLocation=t.pushLocation=t.getCurrentLocation=t.go=t.getUserConfirmation=void 0;var r=n(33);Object.defineProperty(t,"getUserConfirmation",{enumerable:!0,get:function(){return r.getUserConfirmation}}),Object.defineProperty(t,"go",{enumerable:!0,get:function(){return r.go}});var o=n(15),a=n(11);t.getCurrentLocation=function(){return(0,o.createLocation)(window.location)},t.pushLocation=function(e){return window.location.href=(0,a.createPath)(e),!1},t.replaceLocation=function(e){return window.location.replace((0,a.createPath)(e)),!1}},function(e,t,n){(function(e){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};u.canUseDOM?void 0:"production"!==e.env.NODE_ENV?(0,s.default)(!1,"Browser history needs a DOM"):(0,s.default)(!1);var n=t.forceRefresh||!(0,d.supportsHistory)(),r=n?p:l,o=r.getUserConfirmation,i=r.getCurrentLocation,c=r.pushLocation,f=r.replaceLocation,h=r.go,m=(0,v.default)(a({getUserConfirmation:o},t,{getCurrentLocation:i,pushLocation:c,replaceLocation:f,go:h})),y=0,g=void 0,b=function(e,t){1===++y&&(g=l.startListener(m.transitionTo));var n=t?m.listenBefore(e):m.listen(e);return function(){n(),0===--y&&g()}},_=function(e){return b(e,!0)},E=function(e){return b(e,!1)};return a({},m,{listenBefore:_,listen:E})};t.default=m}).call(t,n(1))},function(e,t,n){(function(e){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};l.canUseDOM?void 0:"production"!==e.env.NODE_ENV?(0,c.default)(!1,"Hash history needs a DOM"):(0,c.default)(!1);var n=t.queryKey,r=t.hashType;"production"!==e.env.NODE_ENV?(0,s.default)(n!==!1,"Using { queryKey: false } no longer works. Instead, just don't use location state if you don't want a key in your URL query string"):void 0,"string"!=typeof n&&(n=m),null==r&&(r="slash"),r in g||("production"!==e.env.NODE_ENV?(0,s.default)(!1,"Invalid hash type: %s",r):void 0,r="slash");var o=g[r],i=d.getUserConfirmation,u=function(){return d.getCurrentLocation(o,n)},p=function(e){return d.pushLocation(e,o,n)},h=function(e){return d.replaceLocation(e,o,n)},y=(0,v.default)(a({getUserConfirmation:i},t,{getCurrentLocation:u,pushLocation:p,replaceLocation:h,go:d.go})),b=0,_=void 0,E=function(e,t){1===++b&&(_=d.startListener(y.transitionTo,o,n));var r=t?y.listenBefore(e):y.listen(e);return function(){r(),0===--b&&_()}},w=function(e){return E(e,!0)},O=function(e){return E(e,!1)},P=(0,f.supportsGoWithoutReloadUsingHash)(),k=function(t){"production"!==e.env.NODE_ENV?(0,s.default)(P,"Hash history go(n) causes a full page reload in this browser"):void 0,y.go(t)},j=function(e){return"#"+o.encodePath(y.createHref(e))};return a({},y,{listenBefore:w,listen:O,go:k,createHref:j})};t.default=b}).call(t,n(1))},function(e,t,n){(function(e){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};Array.isArray(t)?t={entries:t}:"string"==typeof t&&(t={entries:[t]});var n=function(){var e=y[g],t=(0,l.createPath)(e),n=void 0,r=void 0;e.key&&(n=e.key,r=E(n));var a=(0,l.parsePath)(t);return(0,c.createLocation)(o({},a,{state:r}),void 0,n)},r=function(e){var t=g+e;return t>=0&&t=0&&g= 0 and < %s, was %s",y.length,g):(0,u.default)(!1);var b=h(y),_=function(e,t){return b[e]=t},E=function(e){return b[e]};return o({},v,{canGo:r})};t.default=v}).call(t,n(1))},function(e,t){"use strict";e.exports=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}},function(e,t,n){var r;(function(e,o){!function(a){function i(e){throw RangeError(M[e])}function s(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function u(e,t){var n=e.split("@"),r="";n.length>1&&(r=n[0]+"@",e=n[1]),e=e.replace(C,".");var o=e.split("."),a=s(o,t).join(".");return r+a}function c(e){for(var t,n,r=[],o=0,a=e.length;o=55296&&t<=56319&&o65535&&(e-=65536,t+=F(e>>>10&1023|55296),e=56320|1023&e),t+=F(e)}).join("")}function f(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:E}function p(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function d(e,t,n){var r=0;for(e=n?A(e/k):e>>1,e+=A(e/t);e>T*O>>1;r+=E)e=A(e/T);return A(r+(T+1)*e/(e+P))}function h(e){var t,n,r,o,a,s,u,c,p,h,v=[],m=e.length,y=0,g=R,b=j;for(n=e.lastIndexOf(N),n<0&&(n=0),r=0;r=128&&i("not-basic"),v.push(e.charCodeAt(r));for(o=n>0?n+1:0;o=m&&i("invalid-input"),c=f(e.charCodeAt(o++)),(c>=E||c>A((_-y)/s))&&i("overflow"),y+=c*s,p=u<=b?w:u>=b+O?O:u-b,!(cA(_/h)&&i("overflow"),s*=h;t=v.length+1,b=d(y-a,t,0==a),A(y/t)>_-g&&i("overflow"),g+=A(y/t),y%=t,v.splice(y++,0,g)}return l(v)}function v(e){var t,n,r,o,a,s,u,l,f,h,v,m,y,g,b,P=[];for(e=c(e),m=e.length,t=R,n=0,a=j,s=0;s=t&&vA((_-n)/y)&&i("overflow"),n+=(u-t)*y,t=u,s=0;s_&&i("overflow"),v==t){for(l=n,f=E;h=f<=a?w:f>=a+O?O:f-a,!(l= 0x80 (not a basic code point)","invalid-input":"Invalid input"},T=E-w,A=Math.floor,F=String.fromCharCode;b={version:"1.3.2",ucs2:{decode:c,encode:l},decode:h,encode:v,toASCII:y,toUnicode:m},r=function(){return b}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))}(this)}).call(t,n(123)(e),function(){return this}())},function(e,t,n){"use strict";function r(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function o(e,t,n){if(e&&c.isObject(e)&&e instanceof r)return e;var o=new r;return o.parse(e,t,n),o}function a(e){return c.isString(e)&&(e=o(e)),e instanceof r?e.format():r.prototype.format.call(e)}function i(e,t){return o(e,!1,!0).resolve(t)}function s(e,t){return e?o(e,!1,!0).resolveObject(t):t}var u=n(120),c=n(122);t.parse=o,t.resolve=i,t.resolveObject=s,t.format=a,t.Url=r;var l=/^([a-z0-9.+-]+:)/i,f=/:[0-9]*$/,p=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,d=["<",">",'"',"`"," ","\r","\n","\t"],h=["{","}","|","\\","^","`"].concat(d),v=["'"].concat(h),m=["%","/","?",";","#"].concat(v),y=["/","?","#"],g=255,b=/^[+a-z0-9A-Z_-]{0,63}$/,_=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,E={javascript:!0,"javascript:":!0},w={javascript:!0,"javascript:":!0},O={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},P=n(96);r.prototype.parse=function(e,t,n){if(!c.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var r=e.indexOf("?"),o=r!==-1&&r127?"x":A[D];if(!F.match(b)){var I=M.slice(0,R),U=M.slice(R+1),q=A.match(_);q&&(I.push(q[1]),U.unshift(q[2])),U.length&&(s="/"+U.join(".")+s),this.hostname=I.join(".");break}}}this.hostname.length>g?this.hostname="":this.hostname=this.hostname.toLowerCase(),C||(this.hostname=u.toASCII(this.hostname));var V=this.port?":"+this.port:"",H=this.hostname||"";this.host=H+V,this.href+=this.host,C&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==s[0]&&(s="/"+s))}if(!E[h])for(var R=0,T=v.length;R0)&&n.host.split("@");k&&(n.auth=k.shift(),n.host=n.hostname=k.shift())}return n.search=e.search,n.query=e.query,c.isNull(n.pathname)&&c.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!E.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var j=E.slice(-1)[0],R=(n.host||e.host||E.length>1)&&("."===j||".."===j)||""===j,N=0,S=E.length;S>=0;S--)j=E[S],"."===j?E.splice(S,1):".."===j?(E.splice(S,1),N++):N&&(E.splice(S,1),N--);if(!b&&!_)for(;N--;N)E.unshift("..");!b||""===E[0]||E[0]&&"/"===E[0].charAt(0)||E.unshift(""),R&&"/"!==E.join("/").substr(-1)&&E.push("");var x=""===E[0]||E[0]&&"/"===E[0].charAt(0);if(P){n.hostname=n.host=x?"":E.length?E.shift():"";var k=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@");k&&(n.auth=k.shift(),n.host=n.hostname=k.shift())}return b=b||n.host&&E.length,b&&!x&&E.unshift(""),E.length?n.pathname=E.join("/"):(n.pathname=null,n.path=null),c.isNull(n.pathname)&&c.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},r.prototype.parseHost=function(){var e=this.host,t=f.exec(e);t&&(t=t[0],":"!==t&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children=[],e.webpackPolyfill=1),e}},function(e,t){function n(){for(var e={},t=0;t