Socket
Socket
Sign inDemoInstall

react-router

Package Overview
Dependencies
Maintainers
2
Versions
485
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-router - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

es6/AsyncUtils.js

23

CHANGES.md
## [HEAD]
## [v1.0.1]
> Dec 5, 2015
- Support IE8 ([#2540])
- Add ES2015 module build ([#2530])
[HEAD]: https://github.com/rackt/react-router/compare/latest...HEAD
[#2530]: https://github.com/rackt/react-router/pull/2530
[#2540]: https://github.com/rackt/react-router/pull/2540
## [v1.0.0]
> Nov 9, 2015

@@ -202,3 +211,8 @@ Thanks for your patience :) Big changes from v0.13.x to 1.0. While on

**Note:** React does not validate `propTypes` that are specified via `cloneElement` (see: [facebook/react#4494](https://github.com/facebook/react/issues/4494#issuecomment-125068868)). It is recommended to make such `propTypes` optional.
There's a small semantic change with this approach. React validates `propTypes`
on elements when those elements are created, rather than when they're about to
render. This means that any props with `isRequired` will fail validation when
those props are supplied via this approach. In these cases, you should not
specify `isRequired` for those props. For more details, see
[facebook/react#4494](https://github.com/facebook/react/issues/4494#issuecomment-125068868).

@@ -264,3 +278,3 @@ ### Navigation Mixin

this.props.params // contains params
this.props.history.isActive
this.props.history.isActive('/pathToAssignment')
}

@@ -306,4 +320,3 @@ })

| `getPathname()` | `location.pathname` |
| `getQuery()` | `location.search` |
| `getQueryParams()`| `location.query` |
| `getQuery()` | `location.query` |
| `isActive(to, params, query)` | `history.isActive(pathname, query, indexOnly)` |

@@ -357,2 +370,2 @@

[v1.0.0]: https://github.com/rackt/react-router/compare/v0.13.5...v1.0.0

@@ -21,4 +21,4 @@ ## Tests

For example, if the current version is 2.3 and we change `<Router/>`
`<Rooter/>` the next release will be 2.4 that contains both APIs but
For example, if the current version is 2.3 and we change `<Router/>` to
`<Rooter/>`, the next release will be 2.4 that contains both APIs but using
`<Router/>` would log a warning to the console. When 3.0 is released,

@@ -25,0 +25,0 @@ `<Router/>` would be completely removed.

@@ -16,3 +16,3 @@ # API Reference

* [Handler Components](#handler-components)
* [Route Components](#route-components)
- [Named Components](#named-components)

@@ -27,2 +27,3 @@

* [useRoutes](#useroutescreatehistory)
* [match](#matchlocation-cb)
* [createRoutes](#createroutesroutes)

@@ -74,3 +75,3 @@ * [PropTypes](#proptypes)

##### `onError(error)`
While the router is matching, errors may bubble up, here is your opportunity to catch and deal with them. Typically these will come from async features like [`route.getComponents`](#getcomponentscallback), [`route.getIndexRoute`](#getindexroutecallback), and [`route.getChildRoutes`](#getchildrouteslocation-callback).
While the router is matching, errors may bubble up, here is your opportunity to catch and deal with them. Typically these will come from async features like [`route.getComponents`](#getcomponentslocation-callback), [`route.getIndexRoute`](#getindexroutelocation-callback), and [`route.getChildRoutes`](#getchildrouteslocation-callback).

@@ -100,2 +101,4 @@ ##### `onUpdate()`

_Note: React Router currently does not manage scroll position, and will not scroll to the element corresponding to the hash. Scroll position management utilities are available in the [scroll-behavior](https://github.com/rackt/scroll-behavior) library._
##### `state`

@@ -253,3 +256,3 @@ State to persist to the `location`.

```js
<Route path="courses/:courseId" getComponent={(location, cb) => {
<Route path="courses/:courseId" getComponents={(location, cb) => {
// do asynchronous stuff to find the components

@@ -323,4 +326,35 @@ cb(null, {sidebar: CourseSidebar, content: Course})

##### `indexRoute`
The [index route](/docs/guides/basics/IndexRoutes.md). This is the same as specifying an `<IndexRoute>` child when using JSX route configs.
##### `getIndexRoute(location, callback)`
Same as `indexRoute`, but asynchronous and receives the `location`. As with `getChildRoutes`, this can be useful for code-splitting and dynamic route matching.
###### `callback` signature
`cb(err, route)`
```js
// For example:
let myIndexRoute = {
component: MyIndex
}
let myRoute = {
path: 'courses',
indexRoute: myIndexRoute
}
// async index route
let myRoute = {
path: 'courses',
getIndexRoute(location, cb) {
// do something async here
cb(null, myIndexRoute)
}
}
```
## Redirect

@@ -371,17 +405,4 @@ A `<Redirect>` sets up a redirect to another route in your application to maintain old URLs.

##### `getIndexRoute(location, callback)`
Same as `IndexRoute` but asynchronous, useful for
code-splitting.
###### `callback` signature
`cb(err, component)`
```js
<Route path="courses/:courseId" getIndexRoute={(location, cb) => {
// do asynchronous stuff to find the index route
cb(null, Index)
}}/>
```
## IndexRedirect

@@ -399,8 +420,10 @@ Index Redirects allow you to redirect from the URL of a parent route to another

## Handler Components
A route's handler component is rendered when that route matches the URL. The router will inject the following properties into your component when it's rendered:
## Route Components
A route's component is rendered when that route matches the URL. The router will inject the following properties into your component when it's rendered:
#### `isTransitioning`
A boolean value that is `true` when the router is transitioning, `false` otherwise.
#### `history`
The Router's history [history](https://github.com/rackt/history/blob/master/docs).
Useful mostly for transitioning around with `this.props.history.pushState(state, path, query)`
#### `location`

@@ -424,3 +447,3 @@ The current [location](https://github.com/rackt/history/blob/master/docs/Location.md).

render((
<Router history={history}>
<Router>
<Route path="/" component={App}>

@@ -665,6 +688,12 @@ <Route path="groups" component={Groups} />

*Note: You probably don't want to use this in a browser. Use the [`history.listen`](https://github.com/rackt/history/blob/master/docs/GettingStarted.md#getting-started) API instead.*
The three arguments to the callback function you pass to `match` are:
* `error`: A Javascript `Error` object if an error occurred, `undefined` otherwise.
* `redirectLocation`: A [Location](/docs/Glossary.md#location) object if the route is a redirect, `undefined` otherwise.
* `renderProps`: The props you should pass to the routing context if the route matched, `undefined` otherwise.
If all three parameters are `undefined`, this means that there was no route found matching the given location.
*Note: You probably don't want to use this in a browser unless you're doing server-side rendering of async routes.*
## `createRoutes(routes)`

@@ -671,0 +700,0 @@

@@ -21,6 +21,17 @@ # Histories

import createBrowserHistory from 'history/lib/createBrowserHistory'
// or commonjs
const createBrowserHistory = require('history/lib/createBrowserHistory')
// or CommonJS
var createBrowserHistory = require('history/lib/createBrowserHistory')
const history = createBrowserHistory()
```
Then pass them into your `<Router>`:
```js
render(
<Router history={history} routes={routes} />,
document.getElementById('app')
)
```
### `createHashHistory`

@@ -40,3 +51,3 @@ This is the default history you'll get if you don't specify a history at all (i.e. `<Router>{/* your routes */}</Router>`). It uses the hash (`#`) portion of the URL creating routes that look like `example.com/#/some/path`.

// Opt-out of persistent state, not recommended.
let history = createHistory({
let history = createHashHistory({
queryKey: false

@@ -94,3 +105,8 @@ });

## Example implementation
Putting this all together, if we wanted to use the HTML5 history API for our
app, the client entry point would look like:
```js

@@ -97,0 +113,0 @@ import React from 'react'

@@ -24,3 +24,3 @@ # Index Routes and Index Links

etc. You render in the same position as `Accounts` and `Statements`, so
the router allows you have `Home` be a first class route component with
the router allows you to have `Home` be a first class route component with
`IndexRoute`.

@@ -27,0 +27,0 @@

@@ -5,3 +5,3 @@ # Introduction

To illustrate the problems React Router is going to solve for you, let's build a small application without it.
To illustrate the problems React Router is going to solve for you, let's build a small application without it. We will be using [ES6/ES2015 syntax and language features](https://github.com/lukehoban/es6features#readme) throughout the documentation for any example code.

@@ -8,0 +8,0 @@ ### Without React Router

@@ -15,5 +15,5 @@ ## Table of Contents

* [Navigating Outside of Components](/docs/guides/advanced/NavigatingOutsideOfComponents.md)
* [Upgrade Guide](/UPGRADE_GUIDE.md)
* [Change Log](/CHANGES.md)
* [Troubleshooting](/docs/Troubleshooting.md)
* [API](/docs/API.md)
* [Glossary](/docs/Glossary.md)

@@ -5,4 +5,2 @@ 'use strict';

var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }

@@ -49,11 +47,2 @@

IndexRedirect.createRouteFromReactElement = function createRouteFromReactElement(element, parentRoute) {
/* istanbul ignore else: sanity check */
if (parentRoute) {
parentRoute.indexRoute = _Redirect2['default'].createRouteFromReactElement(element);
} else {
process.env.NODE_ENV !== 'production' ? _warning2['default'](false, 'An <IndexRedirect> does not make sense at the root of your route config') : undefined;
}
};
/* istanbul ignore next: sanity check */

@@ -65,18 +54,23 @@

_createClass(IndexRedirect, null, [{
key: 'propTypes',
value: {
to: string.isRequired,
query: object,
state: object,
onEnter: _PropTypes.falsy,
children: _PropTypes.falsy
},
enumerable: true
}]);
return IndexRedirect;
})(_react.Component);
IndexRedirect.propTypes = {
to: string.isRequired,
query: object,
state: object,
onEnter: _PropTypes.falsy,
children: _PropTypes.falsy
};
IndexRedirect.createRouteFromReactElement = function (element, parentRoute) {
/* istanbul ignore else: sanity check */
if (parentRoute) {
parentRoute.indexRoute = _Redirect2['default'].createRouteFromReactElement(element);
} else {
process.env.NODE_ENV !== 'production' ? _warning2['default'](false, 'An <IndexRedirect> does not make sense at the root of your route config') : undefined;
}
};
exports['default'] = IndexRedirect;
module.exports = exports['default'];

@@ -5,4 +5,2 @@ 'use strict';

var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }

@@ -46,11 +44,2 @@

IndexRoute.createRouteFromReactElement = function createRouteFromReactElement(element, parentRoute) {
/* istanbul ignore else: sanity check */
if (parentRoute) {
parentRoute.indexRoute = _RouteUtils.createRouteFromReactElement(element);
} else {
process.env.NODE_ENV !== 'production' ? _warning2['default'](false, 'An <IndexRoute> does not make sense at the root of your route config') : undefined;
}
};
/* istanbul ignore next: sanity check */

@@ -62,18 +51,23 @@

_createClass(IndexRoute, null, [{
key: 'propTypes',
value: {
path: _PropTypes.falsy,
component: _PropTypes.component,
components: _PropTypes.components,
getComponent: func,
getComponents: func
},
enumerable: true
}]);
return IndexRoute;
})(_react.Component);
IndexRoute.propTypes = {
path: _PropTypes.falsy,
component: _PropTypes.component,
components: _PropTypes.components,
getComponent: func,
getComponents: func
};
IndexRoute.createRouteFromReactElement = function (element, parentRoute) {
/* istanbul ignore else: sanity check */
if (parentRoute) {
parentRoute.indexRoute = _RouteUtils.createRouteFromReactElement(element);
} else {
process.env.NODE_ENV !== 'production' ? _warning2['default'](false, 'An <IndexRoute> does not make sense at the root of your route config') : undefined;
}
};
exports['default'] = IndexRoute;
module.exports = exports['default'];

@@ -7,4 +7,2 @@ 'use strict';

var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }

@@ -141,35 +139,27 @@

_createClass(Link, null, [{
key: 'contextTypes',
value: {
history: object
},
enumerable: true
}, {
key: 'propTypes',
value: {
to: string.isRequired,
query: object,
hash: string,
state: object,
activeStyle: object,
activeClassName: string,
onlyActiveOnIndex: bool.isRequired,
onClick: func
},
enumerable: true
}, {
key: 'defaultProps',
value: {
onlyActiveOnIndex: false,
className: '',
style: {}
},
enumerable: true
}]);
return Link;
})(_react.Component);
Link.contextTypes = {
history: object
};
Link.propTypes = {
to: string.isRequired,
query: object,
hash: string,
state: object,
activeStyle: object,
activeClassName: string,
onlyActiveOnIndex: bool.isRequired,
onClick: func
};
Link.defaultProps = {
onlyActiveOnIndex: false,
className: '',
style: {}
};
exports['default'] = Link;
module.exports = exports['default'];

@@ -5,4 +5,2 @@ 'use strict';

var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }

@@ -49,67 +47,63 @@

Redirect.createRouteFromReactElement = function createRouteFromReactElement(element) {
var route = _RouteUtils.createRouteFromReactElement(element);
/* istanbul ignore next: sanity check */
if (route.from) route.path = route.from;
Redirect.prototype.render = function render() {
!false ? process.env.NODE_ENV !== 'production' ? _invariant2['default'](false, '<Redirect> elements are for router configuration only and should not be rendered') : _invariant2['default'](false) : undefined;
};
route.onEnter = function (nextState, replaceState) {
var location = nextState.location;
var params = nextState.params;
return Redirect;
})(_react.Component);
var pathname = undefined;
if (route.to.charAt(0) === '/') {
pathname = _PatternUtils.formatPattern(route.to, params);
} else if (!route.to) {
pathname = location.pathname;
} else {
var routeIndex = nextState.routes.indexOf(route);
var parentPattern = Redirect.getRoutePattern(nextState.routes, routeIndex - 1);
var pattern = parentPattern.replace(/\/*$/, '/') + route.to;
pathname = _PatternUtils.formatPattern(pattern, params);
}
Redirect.createRouteFromReactElement = function (element) {
var route = _RouteUtils.createRouteFromReactElement(element);
replaceState(route.state || location.state, pathname, route.query || location.query);
};
if (route.from) route.path = route.from;
return route;
};
route.onEnter = function (nextState, replaceState) {
var location = nextState.location;
var params = nextState.params;
Redirect.getRoutePattern = function getRoutePattern(routes, routeIndex) {
var parentPattern = '';
for (var i = routeIndex; i >= 0; i--) {
var route = routes[i];
var pattern = route.path || '';
parentPattern = pattern.replace(/\/*$/, '/') + parentPattern;
if (pattern.indexOf('/') === 0) break;
var pathname = undefined;
if (route.to.charAt(0) === '/') {
pathname = _PatternUtils.formatPattern(route.to, params);
} else if (!route.to) {
pathname = location.pathname;
} else {
var routeIndex = nextState.routes.indexOf(route);
var parentPattern = Redirect.getRoutePattern(nextState.routes, routeIndex - 1);
var pattern = parentPattern.replace(/\/*$/, '/') + route.to;
pathname = _PatternUtils.formatPattern(pattern, params);
}
return '/' + parentPattern;
replaceState(route.state || location.state, pathname, route.query || location.query);
};
/* istanbul ignore next: sanity check */
return route;
};
Redirect.prototype.render = function render() {
!false ? process.env.NODE_ENV !== 'production' ? _invariant2['default'](false, '<Redirect> elements are for router configuration only and should not be rendered') : _invariant2['default'](false) : undefined;
};
Redirect.getRoutePattern = function (routes, routeIndex) {
var parentPattern = '';
_createClass(Redirect, null, [{
key: 'propTypes',
value: {
path: string,
from: string, // Alias for path
to: string.isRequired,
query: object,
state: object,
onEnter: _PropTypes.falsy,
children: _PropTypes.falsy
},
enumerable: true
}]);
for (var i = routeIndex; i >= 0; i--) {
var route = routes[i];
var pattern = route.path || '';
parentPattern = pattern.replace(/\/*$/, '/') + parentPattern;
return Redirect;
})(_react.Component);
if (pattern.indexOf('/') === 0) break;
}
return '/' + parentPattern;
};
Redirect.propTypes = {
path: string,
from: string, // Alias for path
to: string.isRequired,
query: object,
state: object,
onEnter: _PropTypes.falsy,
children: _PropTypes.falsy
};
exports['default'] = Redirect;
module.exports = exports['default'];

@@ -5,4 +5,2 @@ 'use strict';

var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }

@@ -56,22 +54,16 @@

_createClass(Route, null, [{
key: 'createRouteFromReactElement',
value: _RouteUtils.createRouteFromReactElement,
enumerable: true
}, {
key: 'propTypes',
value: {
path: string,
component: _PropTypes.component,
components: _PropTypes.components,
getComponent: func,
getComponents: func
},
enumerable: true
}]);
return Route;
})(_react.Component);
Route.createRouteFromReactElement = _RouteUtils.createRouteFromReactElement;
Route.propTypes = {
path: string,
component: _PropTypes.component,
components: _PropTypes.components,
getComponent: func,
getComponents: func
};
exports['default'] = Route;
module.exports = exports['default'];

@@ -7,4 +7,2 @@ 'use strict';

var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }

@@ -55,24 +53,2 @@

_createClass(Router, null, [{
key: 'propTypes',
value: {
history: object,
children: _PropTypes.routes,
routes: _PropTypes.routes, // alias for children
RoutingContext: func.isRequired,
createElement: func,
onError: func,
onUpdate: func,
parseQueryString: func,
stringifyQuery: func
},
enumerable: true
}, {
key: 'defaultProps',
value: {
RoutingContext: _RoutingContext2['default']
},
enumerable: true
}]);
function Router(props, context) {

@@ -133,2 +109,4 @@ _classCallCheck(this, Router);

process.env.NODE_ENV !== 'production' ? _warning2['default'](nextProps.history === this.props.history, 'You cannot change <Router history>; it will be ignored') : undefined;
process.env.NODE_ENV !== 'production' ? _warning2['default']((nextProps.routes || nextProps.children) === (this.props.routes || this.props.children), 'You cannot change <Router routes>; it will be ignored') : undefined;
};

@@ -173,3 +151,19 @@

Router.propTypes = {
history: object,
children: _PropTypes.routes,
routes: _PropTypes.routes, // alias for children
RoutingContext: func.isRequired,
createElement: func,
onError: func,
onUpdate: func,
parseQueryString: func,
stringifyQuery: func
};
Router.defaultProps = {
RoutingContext: _RoutingContext2['default']
};
exports['default'] = Router;
module.exports = exports['default'];

@@ -5,3 +5,3 @@ 'use strict';

var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();
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; };

@@ -98,4 +98,12 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }

for (var key in components) {
if (components.hasOwnProperty(key)) elements[key] = _this.createElement(components[key], props);
}return elements;
if (components.hasOwnProperty(key)) {
// Pass through the key as a prop to createElement to allow
// custom createElement functions to know which named component
// they're rendering, for e.g. matching up to fetched data.
elements[key] = _this.createElement(components[key], _extends({
key: key }, props));
}
}
return elements;
}

@@ -112,32 +120,24 @@

_createClass(RoutingContext, null, [{
key: 'propTypes',
value: {
history: object.isRequired,
createElement: func.isRequired,
location: object.isRequired,
routes: array.isRequired,
params: object.isRequired,
components: array.isRequired
},
enumerable: true
}, {
key: 'defaultProps',
value: {
createElement: _react2['default'].createElement
},
enumerable: true
}, {
key: 'childContextTypes',
value: {
history: object.isRequired,
location: object.isRequired
},
enumerable: true
}]);
return RoutingContext;
})(_react.Component);
RoutingContext.propTypes = {
history: object.isRequired,
createElement: func.isRequired,
location: object.isRequired,
routes: array.isRequired,
params: object.isRequired,
components: array.isRequired
};
RoutingContext.defaultProps = {
createElement: _react2['default'].createElement
};
RoutingContext.childContextTypes = {
history: object.isRequired,
location: object.isRequired
};
exports['default'] = RoutingContext;
module.exports = exports['default'];
{
"name": "react-router",
"version": "1.0.0",
"version": "1.0.1",
"description": "A complete routing library for React.js",

@@ -8,2 +8,3 @@ "files": [

"docs",
"es6",
"lib",

@@ -14,2 +15,3 @@ "npm-scripts",

"main": "lib/index",
"jsnext:main": "es6/index",
"repository": {

@@ -22,8 +24,12 @@ "type": "git",

"scripts": {
"build": "babel ./modules -d lib --ignore '__tests__'",
"build": "npm run build-cjs && npm run build-es6",
"build-cjs": "rimraf lib && babel ./modules -d lib --ignore '__tests__'",
"build-es6": "rimraf es6 && babel ./modules -d es6 --blacklist=es6.modules --ignore '__tests__'",
"build-umd": "NODE_ENV=production webpack modules/index.js umd/ReactRouter.js",
"build-min": "NODE_ENV=production webpack -p modules/index.js umd/ReactRouter.min.js",
"lint": "eslint modules examples *.js",
"lint": "eslint modules examples",
"start": "node examples/server.js",
"test": "npm run lint && karma start",
"test": "npm run lint && npm run test-node && npm run test-browser",
"test-browser": "karma start",
"test-node": "mocha --compilers js:babel-core/register tests.node.js",
"postinstall": "node ./npm-scripts/postinstall.js"

@@ -78,2 +84,3 @@ },

"react-static-container": "^1.0.0",
"rimraf": "^2.4.3",
"style-loader": "^0.12.4",

@@ -80,0 +87,0 @@ "webpack": "^1.4.13",

@@ -18,7 +18,8 @@ <img src="https://rackt.github.io/react-router/img/vertical.png" width="300">

- [Guides and API Docs](/docs)
- [Upgrade Guide](/UPGRADE_GUIDE.md)
- [Changelog](/CHANGELOG.md)
- [Change Log](/CHANGES.md)
- [Stack Overflow](http://stackoverflow.com/questions/tagged/react-router)
- [Codepen Boilerplate](http://codepen.io/anon/pen/xwQZdy?editors=001)
Please use for bug reports
**Note:** *If you are still using React Router 0.13.x [the docs](https://github.com/rackt/react-router/tree/0.13.x/docs/guides) can be found on [the 0.13.x branch](https://github.com/rackt/react-router/tree/0.13.x).*
**Note:** *If you are still using React Router 0.13.x [the docs](https://github.com/rackt/react-router/tree/0.13.x/docs/guides) can be found on [the 0.13.x branch](https://github.com/rackt/react-router/tree/0.13.x). Upgrade information is available on the [change log](/CHANGES.md).*

@@ -33,6 +34,4 @@ For questions and support, please visit [our channel on Reactiflux](https://discord.gg/0ZcbPKXt5bYaNQ46) or [Stack Overflow](http://stackoverflow.com/questions/tagged/react-router). The issue tracker is *exclusively* for bug reports and feature requests.

#### npm + webpack/browserify
Using [npm](https://www.npmjs.com/):
Install using [npm](https://www.npmjs.com/):
$ npm install history react-router@latest

@@ -42,3 +41,3 @@

Then with a module bundler or webpack, use as you would anything else:
Then with a module bundler like [webpack](https://webpack.github.io/) that supports either CommonJS or ES2015 modules, use as you would anything else:

@@ -55,26 +54,10 @@ ```js

You can require only the pieces you need straight from the `lib` directory:
The UMD build is also available on [npmcdn](https://npmcdn.com):
```js
import Router from 'react-router/lib/Router'
```html
<script src="https://npmcdn.com/react-router/umd/ReactRouter.min.js"></script>
```
### UMD
You can find the library on `window.ReactRouter`.
There's also a UMD build in the `umd` directory:
```js
// using an es6 transpiler, like babel
import { Router, Route, Link } from 'react-router/umd/ReactRouter'
// using globals
var Router = window.ReactRouter.Router;
var Link = window.ReactRouter.Link;
var Route = window.ReactRouter.Route;
```
#### CDN
If you just want to drop a `<script>` tag in your page and be done with it, you can use the UMD/global build [hosted on cdnjs](https://cdnjs.com/libraries/react-router).
### What's it look like?

@@ -81,0 +64,0 @@

@@ -1,2 +0,2 @@

!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.ReactRouter=t(require("react")):e.ReactRouter=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}}t.__esModule=!0;var o=n(26),a=r(o);t.Router=a["default"];var u=n(13),i=r(u);t.Link=i["default"];var s=n(20),c=r(s);t.IndexLink=c["default"];var l=n(21),f=r(l);t.IndexRedirect=f["default"];var p=n(22),d=r(p);t.IndexRoute=d["default"];var y=n(14),h=r(y);t.Redirect=h["default"];var v=n(24),m=r(v);t.Route=m["default"];var g=n(19),b=r(g);t.History=b["default"];var O=n(23),_=r(O);t.Lifecycle=_["default"];var x=n(25),P=r(x);t.RouteContext=P["default"];var w=n(9),j=r(w);t.useRoutes=j["default"];var R=n(4);t.createRoutes=R.createRoutes;var E=n(15),k=r(E);t.RoutingContext=k["default"];var T=n(5),A=r(T);t.PropTypes=A["default"];var M=n(32),S=r(M);t.match=S["default"];var C=r(o);t["default"]=C["default"]},function(t,n){t.exports=e},function(e,t,n){"use strict";var r=function(e,t,n,r,o,a,u,i){if(!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,a,u,i],l=0;s=new Error("Invariant Violation: "+t.replace(/%s/g,function(){return c[l++]}))}throw s.framesToPop=1,s}};e.exports=r},function(e,t,n){"use strict";var r=function(){};e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){return null==e||d["default"].isValidElement(e)}function a(e){return o(e)||Array.isArray(e)&&e.every(o)}function u(e,t,n){e=e||"UnknownComponent";for(var r in t)if(t.hasOwnProperty(r)){var o=t[r](n,r,e);o instanceof Error}}function i(e,t){return f({},e,t)}function s(e){var t=e.type,n=i(t.defaultProps,e.props);if(t.propTypes&&u(t.displayName||t.name,t.propTypes,n),n.children){var r=c(n.children,n);r.length&&(n.childRoutes=r),delete n.children}return n}function c(e,t){var n=[];return d["default"].Children.forEach(e,function(e){if(d["default"].isValidElement(e))if(e.type.createRouteFromReactElement){var r=e.type.createRouteFromReactElement(e,t);r&&n.push(r)}else n.push(s(e))}),n}function l(e){return a(e)?e=c(e):e&&!Array.isArray(e)&&(e=[e]),e}t.__esModule=!0;var f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.isReactChildren=a,t.createRouteFromReactElement=s,t.createRoutesFromReactChildren=c,t.createRoutes=l;var p=n(1),d=r(p),y=n(3);r(y)},function(e,t,n){"use strict";function r(e,t,n){return e[t]?new Error("<"+n+'> should not have a "'+t+'" prop'):void 0}t.__esModule=!0,t.falsy=r;var o=n(1),a=o.PropTypes.func,u=o.PropTypes.object,i=o.PropTypes.arrayOf,s=o.PropTypes.oneOfType,c=o.PropTypes.element,l=o.PropTypes.shape,f=o.PropTypes.string,p=l({listen:a.isRequired,pushState:a.isRequired,replaceState:a.isRequired,go:a.isRequired});t.history=p;var d=l({pathname:f.isRequired,search:f.isRequired,state:u,action:f.isRequired,key:f});t.location=d;var y=s([a,f]);t.component=y;var h=s([y,u]);t.components=h;var v=s([u,c]);t.route=v;var m=s([v,i(v)]);t.routes=m,t["default"]={falsy:r,history:p,location:d,component:y,components:h,route:v}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function a(e){return o(e).replace(/\/+/g,"/+")}function u(e){for(var t="",n=[],r=[],o=void 0,u=0,i=/:([a-zA-Z_$][a-zA-Z0-9_$]*)|\*\*|\*|\(|\)/g;o=i.exec(e);)o.index!==u&&(r.push(e.slice(u,o.index)),t+=a(e.slice(u,o.index))),o[1]?(t+="([^/?#]+)",n.push(o[1])):"**"===o[0]?(t+="([\\s\\S]*)",n.push("splat")):"*"===o[0]?(t+="([\\s\\S]*?)",n.push("splat")):"("===o[0]?t+="(?:":")"===o[0]&&(t+=")?"),r.push(o[0]),u=i.lastIndex;return u!==e.length&&(r.push(e.slice(u,e.length)),t+=a(e.slice(u,e.length))),{pattern:e,regexpSource:t,paramNames:n,tokens:r}}function i(e){return e in y||(y[e]=u(e)),y[e]}function s(e,t){"/"!==e.charAt(0)&&(e="/"+e),"/"!==t.charAt(0)&&(t="/"+t);var n=i(e),r=n.regexpSource,o=n.paramNames,a=n.tokens;r+="/*";var u="*"!==a[a.length-1];u&&(r+="([\\s\\S]*?)");var s=t.match(new RegExp("^"+r+"$","i")),c=void 0,l=void 0;if(null!=s){if(u){c=s.pop();var f=s[0].substr(0,s[0].length-c.length);if(c&&"/"!==f.charAt(f.length-1))return{remainingPathname:null,paramNames:o,paramValues:null}}else c="";l=s.slice(1).map(function(e){return null!=e?decodeURIComponent(e):e})}else c=l=null;return{remainingPathname:c,paramNames:o,paramValues:l}}function c(e){return i(e).paramNames}function l(e,t){var n=s(e,t),r=n.paramNames,o=n.paramValues;return null!=o?r.reduce(function(e,t,n){return e[t]=o[n],e},{}):null}function f(e,t){t=t||{};for(var n=i(e),r=n.tokens,o=0,a="",u=0,s=void 0,c=void 0,l=void 0,f=0,p=r.length;p>f;++f)s=r[f],"*"===s||"**"===s?(l=Array.isArray(t.splat)?t.splat[u++]:t.splat,null!=l||o>0?void 0:d["default"](!1),null!=l&&(a+=encodeURI(l))):"("===s?o+=1:")"===s?o-=1:":"===s.charAt(0)?(c=s.substring(1),l=t[c],null!=l||o>0?void 0:d["default"](!1),null!=l&&(a+=encodeURIComponent(l))):a+=s;return a.replace(/\/+/g,"/")}t.__esModule=!0,t.compilePattern=i,t.matchPattern=s,t.getParamNames=c,t.getParams=l,t.formatPattern=f;var p=n(2),d=r(p),y={}},function(e,t){"use strict";t.__esModule=!0;var n="PUSH";t.PUSH=n;var r="REPLACE";t.REPLACE=r;var o="POP";t.POP=o,t["default"]={PUSH:n,REPLACE:r,POP:o}},function(e,t){"use strict";function n(e,t,n){function r(){u=!0,n.apply(this,arguments)}function o(){u||(e>a?t.call(this,a++,o,r):r.apply(this,arguments))}var a=0,u=!1;o()}function r(e,t,n){function r(e,t,r){u||(t?(u=!0,n(t)):(a[e]=r,u=++i===o,u&&n(null,a)))}var o=e.length,a=[];if(0===o)return n(null,a);var u=!1,i=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,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 a(e){for(var t in e)if(e.hasOwnProperty(t))return!0;return!1}function u(e){return function(){function t(e,t){var n=arguments.length<=2||void 0===arguments[2]?!1:arguments[2];return v["default"](e,t,n,j.location,j.routes,j.params)}function n(e){var t=e.pathname,n=e.query,r=e.state;return w.createLocation(w.createPath(t,n),r,c.REPLACE)}function r(e,t){R&&R.location===e?u(R,t):O["default"](x,e,function(n,r){n?t(n):r?u(i({},r,{location:e}),t):t()})}function u(e,t){var r=d["default"](j,e),o=r.leaveRoutes,a=r.enterRoutes;y.runLeaveHooks(o),y.runEnterHooks(a,e,function(r,o){r?t(r):o?t(null,n(o)):g["default"](e,function(n,r){n?t(n):t(null,null,j=i({},e,{components:r}))})})}function s(e){return e.__id__||(e.__id__=E++)}function l(e){return e.reduce(function(e,t){return e.push.apply(e,k[s(t)]),e},[])}function p(e,t){O["default"](x,e,function(n,r){if(null==r)return void t();R=i({},r,{location:e});for(var o=l(d["default"](j,R).leaveRoutes),a=void 0,u=0,s=o.length;null==a&&s>u;++u)a=o[u](e);t(a)})}function h(){if(j.routes){for(var e=l(j.routes),t=void 0,n=0,r=e.length;"string"!=typeof t&&r>n;++n)t=e[n]();return t}}function m(e,t){var n=s(e),r=k[n];if(null==r){var o=!a(k);r=k[n]=[t],o&&(T=w.listenBefore(p),w.listenBeforeUnload&&(A=w.listenBeforeUnload(h)))}else-1===r.indexOf(t)&&r.push(t);return function(){var e=k[n];if(null!=e){var r=e.filter(function(e){return e!==t});0===r.length?(delete k[n],a(k)||(T&&(T(),T=null),A&&(A(),A=null))):k[n]=r}}}function b(e){return w.listen(function(t){j.location===t?e(null,j):r(t,function(t,n,r){t?e(t):n?w.transitionTo(n):r&&e(null,r)})})}var _=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],x=_.routes,P=o(_,["routes"]),w=f["default"](e)(P),j={},R=void 0,E=1,k={},T=void 0,A=void 0;return i({},w,{isActive:t,match:r,listenBeforeLeavingRoute:m,listen:b})}}t.__esModule=!0;var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=n(3),c=(r(s),n(7)),l=n(42),f=r(l),p=n(28),d=r(p),y=n(27),h=n(31),v=r(h),m=n(29),g=r(m),b=n(33),O=r(b);t["default"]=u,e.exports=t["default"]},function(e,t){"use strict";t.__esModule=!0;var n=!("undefined"==typeof window||!window.document||!window.document.createElement);t.canUseDOM=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){var t=e.match(/^https?:\/\/[^\/]*/);return null==t?e:(i["default"](!1,'A path must be pathname + search + hash only, not a fully qualified URL like "%s"',e),e.substring(t[0].length))}function a(e){var t=o(e),n="",r="",a=t.indexOf("#");-1!==a&&(r=t.substring(a),t=t.substring(0,a));var u=t.indexOf("?");return-1!==u&&(n=t.substring(u),t=t.substring(0,u)),""===t&&(t="/"),{pathname:t,search:n,hash:r}}t.__esModule=!0;var u=n(3),i=r(u);t["default"]=a,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){var r=e(t,n);e.length<2?n(r):u["default"](void 0===r,'You should not "return" in a transition hook with a callback argument; call the callback instead')}t.__esModule=!0;var a=n(3),u=r(a);t["default"]=o,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(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 a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function i(e){return 0===e.button}function s(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function c(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}t.__esModule=!0;var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),p=n(1),d=r(p),y=d["default"].PropTypes,h=y.bool,v=y.object,m=y.string,g=y.func,b=function(e){function t(){a(this,t),e.apply(this,arguments)}return u(t,e),t.prototype.handleClick=function(e){var t=!0;if(this.props.onClick&&this.props.onClick(e),!s(e)&&i(e)){if(e.defaultPrevented===!0&&(t=!1),this.props.target)return void(t||e.preventDefault());if(e.preventDefault(),t){var n=this.props,r=n.state,o=n.to,a=n.query,u=n.hash;u&&(o+=u),this.context.history.pushState(r,o,a)}}},t.prototype.render=function(){var e=this,t=this.props,n=t.to,r=t.query,a=t.hash,u=(t.state,t.activeClassName),i=t.activeStyle,s=t.onlyActiveOnIndex,f=o(t,["to","query","hash","state","activeClassName","activeStyle","onlyActiveOnIndex"]);f.onClick=function(t){return e.handleClick(t)};var p=this.context.history;return p&&(f.href=p.createHref(n,r),a&&(f.href+=a),(u||null!=i&&!c(i))&&p.isActive(n,r,s)&&(u&&(f.className+=""===f.className?u:" "+u),i&&(f.style=l({},f.style,i)))),d["default"].createElement("a",f)},f(t,null,[{key:"contextTypes",value:{history:v},enumerable:!0},{key:"propTypes",value:{to:m.isRequired,query:v,hash:m,state:v,activeStyle:v,activeClassName:m,onlyActiveOnIndex:h.isRequired,onClick:g},enumerable:!0},{key:"defaultProps",value:{onlyActiveOnIndex:!1,className:"",style:{}},enumerable:!0}]),t}(p.Component);t["default"]=b,e.exports=t["default"]},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("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)}t.__esModule=!0;var u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(2),s=r(i),c=n(1),l=r(c),f=n(4),p=n(6),d=n(5),y=l["default"].PropTypes,h=y.string,v=y.object,m=function(e){function t(){o(this,t),e.apply(this,arguments)}return a(t,e),t.createRouteFromReactElement=function(e){var n=f.createRouteFromReactElement(e);return n.from&&(n.path=n.from),n.onEnter=function(e,r){var o=e.location,a=e.params,u=void 0;if("/"===n.to.charAt(0))u=p.formatPattern(n.to,a);else if(n.to){var i=e.routes.indexOf(n),s=t.getRoutePattern(e.routes,i-1),c=s.replace(/\/*$/,"/")+n.to;u=p.formatPattern(c,a)}else u=o.pathname;r(n.state||o.state,u,n.query||o.query)},n},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},t.prototype.render=function(){s["default"](!1)},u(t,null,[{key:"propTypes",value:{path:h,from:h,to:h.isRequired,query:v,state:v,onEnter:d.falsy,children:d.falsy},enumerable:!0}]),t}(c.Component);t["default"]=m,e.exports=t["default"]},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("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)}t.__esModule=!0;var u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(2),s=r(i),c=n(1),l=r(c),f=n(4),p=n(30),d=r(p),y=l["default"].PropTypes,h=y.array,v=y.func,m=y.object,g=function(e){function t(){o(this,t),e.apply(this,arguments)}return a(t,e),t.prototype.getChildContext=function(){var e=this.props,t=e.history,n=e.location;return{history:t,location:n}},t.prototype.createElement=function(e,t){return null==e?null:this.props.createElement(e,t)},t.prototype.render=function(){var e=this,t=this.props,n=t.history,r=t.location,o=t.routes,a=t.params,u=t.components,i=null;return u&&(i=u.reduceRight(function(t,u,i){if(null==u)return t;var s=o[i],c=d["default"](s,a),l={history:n,location:r,params:a,route:s,routeParams:c,routes:o};if(f.isReactChildren(t))l.children=t;else if(t)for(var p in t)t.hasOwnProperty(p)&&(l[p]=t[p]);if("object"==typeof u){var y={};for(var h in u)u.hasOwnProperty(h)&&(y[h]=e.createElement(u[h],l));return y}return e.createElement(u,l)},i)),null===i||i===!1||l["default"].isValidElement(i)?void 0:s["default"](!1),i},u(t,null,[{key:"propTypes",value:{history:m.isRequired,createElement:v.isRequired,location:m.isRequired,routes:h.isRequired,params:m.isRequired,components:h.isRequired},enumerable:!0},{key:"defaultProps",value:{createElement:l["default"].createElement},enumerable:!0},{key:"childContextTypes",value:{history:m.isRequired,location:m.isRequired},enumerable:!0}]),t}(c.Component);t["default"]=g,e.exports=t["default"]},function(e,t){"use strict";function n(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)}function r(e,t,n){e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent("on"+t,n)}function o(){return window.location.href.split("#")[1]||""}function a(e){window.location.replace(window.location.pathname+window.location.search+"#"+e)}function u(){return window.location.pathname+window.location.search+window.location.hash}function i(e){e&&window.history.go(e)}function s(e,t){t(window.confirm(e))}function c(){var e=navigator.userAgent;return-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone")?window.history&&"pushState"in window.history:!1}function l(){var e=navigator.userAgent;return-1===e.indexOf("Firefox")}t.__esModule=!0,t.addEventListener=n,t.removeEventListener=r,t.getHashPath=o,t.replaceHashPath=a,t.getWindowPath=u,t.go=i,t.getUserConfirmation=s,t.supportsHistory=c,t.supportsGoWithoutReloadUsingHash=l},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){return Math.random().toString(36).substr(2,e)}function a(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.key===t.key&&c["default"](e.state,t.state)}function u(){function e(e){return L.push(e),function(){L=L.filter(function(t){return t!==e})}}function t(){return U&&U.action===f.POP?H.indexOf(U.key):N?H.indexOf(N.key):-1}function n(e){var n=t();N=e,N.action===f.PUSH?H=[].concat(H.slice(0,n+1),[N.key]):N.action===f.REPLACE&&(H[n]=N.key),q.forEach(function(e){e(N)})}function r(e){if(q.push(e),N)e(N);else{var t=k();H=[t.key],n(t)}return function(){q=q.filter(function(t){return t!==e})}}function u(e,t){l.loopAsync(L.length,function(t,n,r){h["default"](L[t],e,function(e){null!=e?r(e):n()})},function(e){C&&"string"==typeof e?C(e,function(e){t(e!==!1)}):t(e!==!1)})}function s(e){N&&a(N,e)||(U=e,u(e,function(t){if(U===e)if(t)T(e)!==!1&&n(e);else if(N&&e.action===f.POP){var r=H.indexOf(N.key),o=H.indexOf(e.key);-1!==r&&-1!==o&&M(r-o)}}))}function c(e,t){s(x(t,e,f.PUSH,b()))}function p(e,t){s(x(t,e,f.REPLACE,b()))}function y(){M(-1)}function v(){M(1)}function b(){return o(S)}function O(e){if(null==e||"string"==typeof e)return e;var t=e.pathname,n=e.search,r=e.hash,o=t;return n&&(o+=n),r&&(o+=r),o}function _(e){return O(e)}function x(e,t,n){var r=arguments.length<=3||void 0===arguments[3]?b():arguments[3];return d["default"](e,t,n,r)}function P(e){N?(w(N,e),n(N)):w(k(),e)}function w(e,t){e.state=i({},e.state,t),A(e.key,e.state)}function j(e){-1===L.indexOf(e)&&L.push(e)}function R(e){L=L.filter(function(t){return t!==e})}var E=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],k=E.getCurrentLocation,T=E.finishTransition,A=E.saveState,M=E.go,S=E.keyLength,C=E.getUserConfirmation;"number"!=typeof S&&(S=g);var L=[],H=[],q=[],N=void 0,U=void 0;return{listenBefore:e,listen:r,transitionTo:s,pushState:c,replaceState:p,go:M,goBack:y,goForward:v,createKey:b,createPath:O,createHref:_,createLocation:x,setState:m["default"](P,"setState is deprecated; use location.key to save state instead"),registerTransitionHook:m["default"](j,"registerTransitionHook is deprecated; use listenBefore instead"),unregisterTransitionHook:m["default"](R,"unregisterTransitionHook is deprecated; use the callback returned from listenBefore instead")}}t.__esModule=!0;var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=n(43),c=r(s),l=n(34),f=n(7),p=n(38),d=r(p),y=n(12),h=r(y),v=n(40),m=r(v),g=6;t["default"]=u,e.exports=t["default"]},function(e,t){var n={};n.hexTable=new Array(256);for(var r=0;256>r;++r)n.hexTable[r]="%"+((16>r?"0":"")+r.toString(16)).toUpperCase();t.arrayToObject=function(e,t){for(var n=t.plainObjects?Object.create(null):{},r=0,o=e.length;o>r;++r)"undefined"!=typeof e[r]&&(n[r]=e[r]);return n},t.merge=function(e,n,r){if(!n)return e;if("object"!=typeof n)return Array.isArray(e)?e.push(n):"object"==typeof e?e[n]=!0:e=[e,n],e;if("object"!=typeof e)return e=[e].concat(n);Array.isArray(e)&&!Array.isArray(n)&&(e=t.arrayToObject(e,r));for(var o=Object.keys(n),a=0,u=o.length;u>a;++a){var i=o[a],s=n[i];Object.prototype.hasOwnProperty.call(e,i)?e[i]=t.merge(e[i],s,r):e[i]=s}return e},t.decode=function(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(t){return e}},t.encode=function(e){if(0===e.length)return e;"string"!=typeof e&&(e=""+e);for(var t="",r=0,o=e.length;o>r;++r){var a=e.charCodeAt(r);45===a||46===a||95===a||126===a||a>=48&&57>=a||a>=65&&90>=a||a>=97&&122>=a?t+=e[r]:128>a?t+=n.hexTable[a]:2048>a?t+=n.hexTable[192|a>>6]+n.hexTable[128|63&a]:55296>a||a>=57344?t+=n.hexTable[224|a>>12]+n.hexTable[128|a>>6&63]+n.hexTable[128|63&a]:(++r,a=65536+((1023&a)<<10|1023&e.charCodeAt(r)),t+=n.hexTable[240|a>>18]+n.hexTable[128|a>>12&63]+n.hexTable[128|a>>6&63]+n.hexTable[128|63&a])}return t},t.compact=function(e,n){if("object"!=typeof e||null===e)return e;n=n||[];var r=n.indexOf(e);if(-1!==r)return n[r];if(n.push(e),Array.isArray(e)){for(var o=[],a=0,u=e.length;u>a;++a)"undefined"!=typeof e[a]&&o.push(e[a]);return o}var i=Object.keys(e);for(a=0,u=i.length;u>a;++a){var s=i[a];e[s]=t.compact(e[s],n)}return e},t.isRegExp=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},t.isBuffer=function(e){return null===e||"undefined"==typeof e?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))}},function(e,t,n){"use strict";t.__esModule=!0;var r=n(5),o={contextTypes:{history:r.history},componentWillMount:function(){this.history=this.context.history}};t["default"]=o,e.exports=t["default"]},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("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)}t.__esModule=!0;var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(1),s=r(i),c=n(13),l=r(c),f=function(e){function t(){o(this,t),e.apply(this,arguments)}return a(t,e),t.prototype.render=function(){return s["default"].createElement(l["default"],u({},this.props,{onlyActiveOnIndex:!0}))},t}(i.Component);t["default"]=f,e.exports=t["default"]},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("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)}t.__esModule=!0;var u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(3),s=(r(i),n(2)),c=r(s),l=n(1),f=r(l),p=n(14),d=r(p),y=n(5),h=f["default"].PropTypes,v=h.string,m=h.object,g=function(e){function t(){o(this,t),e.apply(this,arguments)}return a(t,e),t.createRouteFromReactElement=function(e,t){t&&(t.indexRoute=d["default"].createRouteFromReactElement(e))},t.prototype.render=function(){c["default"](!1)},u(t,null,[{key:"propTypes",value:{to:v.isRequired,query:m,state:m,onEnter:y.falsy,children:y.falsy},enumerable:!0}]),t}(l.Component);t["default"]=g,e.exports=t["default"]},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("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)}t.__esModule=!0;var u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(3),s=(r(i),n(2)),c=r(s),l=n(1),f=r(l),p=n(4),d=n(5),y=f["default"].PropTypes.func,h=function(e){function t(){o(this,t),e.apply(this,arguments)}return a(t,e),t.createRouteFromReactElement=function(e,t){t&&(t.indexRoute=p.createRouteFromReactElement(e))},t.prototype.render=function(){c["default"](!1)},u(t,null,[{key:"propTypes",value:{path:d.falsy,component:d.component,components:d.components,getComponent:y,getComponents:y},enumerable:!0}]),t}(l.Component);t["default"]=h,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(1),a=r(o),u=n(2),i=r(u),s=a["default"].PropTypes.object,c={contextTypes:{history:s.isRequired,route:s},propTypes:{route:s},componentDidMount:function(){this.routerWillLeave?void 0:i["default"](!1);var e=this.props.route||this.context.route;e?void 0:i["default"](!1),this._unlistenBeforeLeavingRoute=this.context.history.listenBeforeLeavingRoute(e,this.routerWillLeave)},componentWillUnmount:function(){this._unlistenBeforeLeavingRoute&&this._unlistenBeforeLeavingRoute()}};t["default"]=c,e.exports=t["default"]},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("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)}t.__esModule=!0;var u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(2),s=r(i),c=n(1),l=r(c),f=n(4),p=n(5),d=l["default"].PropTypes,y=d.string,h=d.func,v=function(e){function t(){o(this,t),e.apply(this,arguments)}return a(t,e),t.prototype.render=function(){s["default"](!1)},u(t,null,[{key:"createRouteFromReactElement",value:f.createRouteFromReactElement,enumerable:!0},{key:"propTypes",value:{path:y,component:p.component,components:p.components,getComponent:h,getComponents:h},enumerable:!0}]),t}(c.Component);t["default"]=v,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(1),a=r(o),u=a["default"].PropTypes.object,i={propTypes:{route:u.isRequired},childContextTypes:{route:u.isRequired},getChildContext:function(){return{route:this.props.route}}};t["default"]=i,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(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 a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(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)}t.__esModule=!0;var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n(3),l=(r(c),n(1)),f=r(l),p=n(37),d=r(p),y=n(4),h=n(15),v=r(h),m=n(9),g=r(m),b=n(5),O=f["default"].PropTypes,_=O.func,x=O.object,P=function(e){function t(n,r){a(this,t),e.call(this,n,r),this.state={location:null,routes:null,params:null,components:null}}return u(t,e),s(t,null,[{key:"propTypes",value:{history:x,children:b.routes,routes:b.routes,RoutingContext:_.isRequired,createElement:_,onError:_,onUpdate:_,parseQueryString:_,stringifyQuery:_},enumerable:!0},{key:"defaultProps",value:{RoutingContext:v["default"]},enumerable:!0}]),t.prototype.handleError=function(e){if(!this.props.onError)throw e;this.props.onError.call(this,e)},t.prototype.componentWillMount=function(){var e=this,t=this.props,n=t.history,r=t.children,o=t.routes,a=t.parseQueryString,u=t.stringifyQuery,i=n?function(){return n}:d["default"];this.history=g["default"](i)({routes:y.createRoutes(o||r),parseQueryString:a,stringifyQuery:u}),this._unlisten=this.history.listen(function(t,n){t?e.handleError(t):e.setState(n,e.props.onUpdate)})},t.prototype.componentWillReceiveProps=function(e){},t.prototype.componentWillUnmount=function(){this._unlisten&&this._unlisten()},t.prototype.render=function(){var e=this.state,n=e.location,r=e.routes,a=e.params,u=e.components,s=this.props,c=s.RoutingContext,l=s.createElement,p=o(s,["RoutingContext","createElement"]);return null==n?null:(Object.keys(t.propTypes).forEach(function(e){return delete p[e]}),f["default"].createElement(c,i({},p,{history:this.history,createElement:l,location:n,routes:r,params:a,components:u})))},t}(l.Component);t["default"]=P,e.exports=t["default"]},function(e,t,n){"use strict";function r(e,t){return function(n,r,o){e.apply(t,arguments),e.length<3&&o()}}function o(e){return e.reduce(function(e,t){return t.onEnter&&e.push(r(t.onEnter,t)),e},[])}function a(e,t,n){function r(e,t,n){u={pathname:t,query:n,state:e}}var a=o(e);if(!a.length)return void n();var u=void 0;i.loopAsync(a.length,function(e,n,o){a[e](t,r,function(e){e||u?o(e,u):n()})},n)}function u(e){for(var t=0,n=e.length;n>t;++t)e[t].onLeave&&e[t].onLeave.call(e[t])}t.__esModule=!0,t.runEnterHooks=a,t.runLeaveHooks=u;var i=n(8)},function(e,t,n){"use strict";function r(e,t,n){if(!e.path)return!1;var r=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,u=void 0;return n?(a=n.filter(function(n){return-1===o.indexOf(n)||r(n,e,t)}),a.reverse(),u=o.filter(function(e){return-1===n.indexOf(e)||-1!==a.indexOf(e)})):(a=[],u=o),{leaveRoutes:a,enterRoutes:u}}t.__esModule=!0;var a=n(6);t["default"]=o,e.exports=t["default"]},function(e,t,n){"use strict";function r(e,t,n){t.component||t.components?n(null,t.component||t.components):t.getComponent?t.getComponent(e,n):t.getComponents?t.getComponents(e,n):n()}function o(e,t){a.mapAsync(e.routes,function(t,n,o){r(e.location,t,o)},t)}t.__esModule=!0;var a=n(8);t["default"]=o,e.exports=t["default"]},function(e,t,n){"use strict";function r(e,t){var n={};if(!e.path)return n;var r=o.getParamNames(e.path);for(var a in t)t.hasOwnProperty(a)&&-1!==r.indexOf(a)&&(n[a]=t[a]);return n}t.__esModule=!0;var o=n(6);t["default"]=r,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"==typeof e){for(var n in e)if(e.hasOwnProperty(n))if(void 0===e[n]){if(void 0!==t[n])return!1}else{if(!t.hasOwnProperty(n))return!1;if(!r(e[n],t[n]))return!1}return!0}return String(e)===String(t);
}function o(e,t,n){return e.every(function(e,r){return String(t[r])===String(n[e])})}function a(e,t,n){for(var r=e,a=[],u=[],i=0,s=t.length;s>i;++i){var l=t[i],f=l.path||"";if("/"===f.charAt(0)&&(r=e,a=[],u=[]),null!==r){var p=c.matchPattern(f,r);r=p.remainingPathname,a=[].concat(a,p.paramNames),u=[].concat(u,p.paramValues)}if(""===r&&l.path&&o(a,u,n))return i}return null}function u(e,t,n,r){var o=a(e,t,n);return null===o?!1:r?t.slice(o+1).every(function(e){return!e.path}):!0}function i(e,t){return null==t?null==e:null==e?!0:r(e,t)}function s(e,t,n,r,o,a){return null==r?!1:u(e,o,a,n)?i(t,r.query):!1}t.__esModule=!0;var c=n(6);t["default"]=s,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n=e.routes,r=e.location,o=e.parseQueryString,u=e.stringifyQuery,s=e.basename;r?void 0:i["default"](!1);var c=h({routes:p.createRoutes(n),parseQueryString:o,stringifyQuery:u,basename:s});"string"==typeof r&&(r=c.createLocation(r)),c.match(r,function(e,n,r){t(e,n,r&&a({},r,{history:c}))})}t.__esModule=!0;var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=n(2),i=r(u),s=n(39),c=r(s),l=n(41),f=r(l),p=n(4),d=n(9),y=r(d),h=y["default"](f["default"](c["default"]));t["default"]=o,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){e.childRoutes?n(null,e.childRoutes):e.getChildRoutes?e.getChildRoutes(t,function(e,t){n(e,!e&&d.createRoutes(t))}):n()}function a(e,t,n){e.indexRoute?n(null,e.indexRoute):e.getIndexRoute?e.getIndexRoute(t,function(e,t){n(e,!e&&d.createRoutes(t)[0])}):e.childRoutes?!function(){var r=e.childRoutes.filter(function(e){return!e.hasOwnProperty("path")});f.loopAsync(r.length,function(e,n,o){a(r[e],t,function(t,a){if(t||a){var u=[r[e]].concat(Array.isArray(a)?a:[a]);o(t,u)}else n()})},function(e,t){n(null,t)})}():n()}function u(e,t,n){return t.reduce(function(e,t,r){var o=n&&n[r];return Array.isArray(e[t])?e[t].push(o):t in e?e[t]=[e[t],o]:e[t]=o,e},e)}function i(e,t){return u({},e,t)}function s(e,t,n,r,u,s){var l=e.path||"";if("/"===l.charAt(0)&&(n=t.pathname,r=[],u=[]),null!==n){var f=p.matchPattern(l,n);if(n=f.remainingPathname,r=[].concat(r,f.paramNames),u=[].concat(u,f.paramValues),""===n&&e.path){var d=function(){var n={routes:[e],params:i(r,u)};return a(e,t,function(e,t){if(e)s(e);else{if(Array.isArray(t)){var r;(r=n.routes).push.apply(r,t)}else t&&n.routes.push(t);s(null,n)}}),{v:void 0}}();if("object"==typeof d)return d.v}}null!=n||e.childRoutes?o(e,t,function(o,a){o?s(o):a?c(a,t,function(t,n){t?s(t):n?(n.routes.unshift(e),s(null,n)):s()},n,r,u):s()}):s()}function c(e,t,n){var r=arguments.length<=3||void 0===arguments[3]?t.pathname:arguments[3],o=arguments.length<=4||void 0===arguments[4]?[]:arguments[4],a=arguments.length<=5||void 0===arguments[5]?[]:arguments[5];return function(){f.loopAsync(e.length,function(n,u,i){s(e[n],t,r,o,a,function(e,t){e||t?i(e,t):u()})},n)}()}t.__esModule=!0;var l=n(3),f=(r(l),n(8)),p=n(6),d=n(4);t["default"]=c,e.exports=t["default"]},function(e,t){"use strict";function n(e,t,n){function r(){u=!0,n.apply(this,arguments)}function o(){u||(e>a?t.call(this,a++,o,r):r.apply(this,arguments))}var a=0,u=!1;o()}t.__esModule=!0,t.loopAsync=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){return c+e}function a(e,t){try{window.sessionStorage.setItem(o(e),JSON.stringify(t))}catch(n){if(n.name===l||0===window.sessionStorage.length)return void s["default"](!1,"[history] Unable to save state; sessionStorage is not available in Safari private mode");throw n}}function u(e){var t=window.sessionStorage.getItem(o(e));if(t)try{return JSON.parse(t)}catch(n){}return null}t.__esModule=!0,t.saveState=a,t.readState=u;var i=n(3),s=r(i),c="@@History/",l="QuotaExceededError"},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){function t(e){return i["default"](s.canUseDOM,"DOM history needs a DOM"),n.listen(e)}var n=f["default"](a({getUserConfirmation:c.getUserConfirmation},e,{go:c.go}));return a({},n,{listen:t})}t.__esModule=!0;var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=n(2),i=r(u),s=n(10),c=n(16),l=n(17),f=r(l);t["default"]=o,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){return"string"==typeof e&&"/"===e.charAt(0)}function a(){var e=m.getHashPath();return o(e)?!0:(m.replaceHashPath("/"+e),!1)}function u(e,t,n){return e+(-1===e.indexOf("?")?"?":"&")+(t+"="+n)}function i(e,t){return e.replace(new RegExp("[?&]?"+t+"=[a-zA-Z0-9]+"),"")}function s(e,t){var n=e.match(new RegExp("\\?.*?\\b"+t+"=(.+?)\\b"));return n&&n[1]}function c(){function e(){var e=m.getHashPath(),t=void 0,n=void 0;return j?(t=s(e,j),e=i(e,j),t?n=g.readState(t):(n=null,t=R.createKey(),m.replaceHashPath(u(e,j,t)))):t=n=null,R.createLocation(e,n,void 0,t)}function t(t){function n(){a()&&r(e())}var r=t.transitionTo;return a(),m.addEventListener(window,"hashchange",n),function(){m.removeEventListener(window,"hashchange",n)}}function n(e){var t=e.basename,n=e.pathname,r=e.search,o=e.state,a=e.action,i=e.key;if(a!==h.POP){var s=(t||"")+n+r;j&&(s=u(s,j,i)),s===m.getHashPath()?p["default"](!1,"You cannot %s the same path using hash history",a):(j?g.saveState(i,o):e.key=e.state=null,a===h.PUSH?window.location.hash=s:m.replaceHashPath(s))}}function r(e){1===++E&&(k=t(R));var n=R.listenBefore(e);return function(){n(),0===--E&&k()}}function o(e){1===++E&&(k=t(R));var n=R.listen(e);return function(){n(),0===--E&&k()}}function c(e,t){p["default"](j||null==e,"You cannot use state without a queryKey it will be dropped"),R.pushState(e,t)}function f(e,t){p["default"](j||null==e,"You cannot use state without a queryKey it will be dropped"),R.replaceState(e,t)}function d(e){p["default"](T,"Hash history go(n) causes a full page reload in this browser"),R.go(e)}function b(e){return"#"+R.createHref(e)}function x(e){1===++E&&(k=t(R)),R.registerTransitionHook(e)}function P(e){R.unregisterTransitionHook(e),0===--E&&k()}var w=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];y["default"](v.canUseDOM,"Hash history needs a DOM");var j=w.queryKey;(void 0===j||j)&&(j="string"==typeof j?j:_);var R=O["default"](l({},w,{getCurrentLocation:e,finishTransition:n,saveState:g.saveState})),E=0,k=void 0,T=m.supportsGoWithoutReloadUsingHash();return l({},R,{listenBefore:r,listen:o,pushState:c,replaceState:f,go:d,createHref:b,registerTransitionHook:x,unregisterTransitionHook:P})}t.__esModule=!0;var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f=n(3),p=r(f),d=n(2),y=r(d),h=n(7),v=n(10),m=n(16),g=n(35),b=n(36),O=r(b),_="_k";t["default"]=c,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(){var e=arguments.length<=0||void 0===arguments[0]?"/":arguments[0],t=arguments.length<=1||void 0===arguments[1]?null:arguments[1],n=arguments.length<=2||void 0===arguments[2]?a.POP:arguments[2],r=arguments.length<=3||void 0===arguments[3]?null:arguments[3];"string"==typeof e&&(e=i["default"](e));var o=e.pathname||"/",u=e.search||"",s=e.hash||"";return{pathname:o,search:u,hash:s,state:t,action:n,key:r}}t.__esModule=!0;var a=n(7),u=n(11),i=r(u);t["default"]=o,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){return e.filter(function(e){return e.state}).reduce(function(e,t){return e[t.key]=t.state,e},{})}function a(){function e(e,t){v[e]=t}function t(e){return v[e]}function n(){var e=y[h],n=e.key,r=e.basename,o=e.pathname,a=e.search,u=(r||"")+o+(a||""),i=void 0;return n?i=t(n):(i=null,n=p.createKey(),e.key=n),p.createLocation(u,i,void 0,n)}function r(e){var t=h+e;return t>=0&&t<y.length}function a(e){if(e){s["default"](r(e),"Cannot go(%s) there is not enough history",e),h+=e;var t=n();p.transitionTo(u({},t,{action:c.POP}))}}function i(t){switch(t.action){case c.PUSH:h+=1,h<y.length&&y.splice(h),y.push(t),e(t.key,t.state);break;case c.REPLACE:y[h]=t,e(t.key,t.state)}}var l=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];Array.isArray(l)?l={entries:l}:"string"==typeof l&&(l={entries:[l]});var p=f["default"](u({},l,{getCurrentLocation:n,finishTransition:i,saveState:e,go:a})),d=l,y=d.entries,h=d.current;"string"==typeof y?y=[y]:Array.isArray(y)||(y=["/"]),y=y.map(function(e){var t=p.createKey();return"string"==typeof e?{pathname:e,key:t}:"object"==typeof e&&e?u({},e,{key:t}):void s["default"](!1,"Unable to create history entry from %s",e)}),null==h?h=y.length-1:s["default"](h>=0&&h<y.length,"Current index must be >= 0 and < %s, was %s",y.length,h);var v=o(y);return p}t.__esModule=!0;var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(2),s=r(i),c=n(7),l=n(17),f=r(l);t["default"]=a,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){return function(){return u["default"](!1,"[history] "+t),e.apply(this,arguments)}}t.__esModule=!0;var a=n(3),u=r(a);t["default"]=o,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(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 a(e){return function(){function t(e){return v&&null==e.basename&&(0===e.pathname.indexOf(v)?(e.pathname=e.pathname.substring(v.length),e.basename=v,""===e.pathname&&(e.pathname="/")):e.basename=""),e}function n(e){if(!v)return e;"string"==typeof e&&(e=f["default"](e));var t=e.pathname,n="/"===v.slice(-1)?v:v+"/",r="/"===t.charAt(0)?t.slice(1):t,o=n+r;return u({},e,{pathname:o})}function r(e){return g.listenBefore(function(n,r){c["default"](e,t(n),r)})}function a(e){return g.listen(function(n){e(t(n))})}function s(e,t){g.pushState(e,n(t))}function l(e,t){g.replaceState(e,n(t))}function p(e){return g.createPath(n(e))}function d(e){return g.createHref(n(e))}function y(){return t(g.createLocation.apply(g,arguments))}var h=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],v=h.basename,m=o(h,["basename"]),g=e(m);if(null==v&&i.canUseDOM){var b=document.getElementsByTagName("base")[0];b&&(v=b.href)}return u({},g,{listenBefore:r,listen:a,pushState:s,replaceState:l,createPath:p,createHref:d,createLocation:y})}}t.__esModule=!0;var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(10),s=n(12),c=r(s),l=n(11),f=r(l);t["default"]=a,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(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 a(e){return l["default"].stringify(e,{arrayFormat:"brackets"})}function u(e){return l["default"].parse(e)}function i(e){return function(){function t(e){return null==e.query&&(e.query=g(e.search.substring(1))),e}function n(e,t){var n=void 0;if(!t||""===(n=m(t)))return e;"string"==typeof e&&(e=y["default"](e));var r=e.search+(e.search?"&":"?")+n;return s({},e,{search:r})}function r(e){return O.listenBefore(function(n,r){p["default"](e,t(n),r)})}function i(e){return O.listen(function(n){e(t(n))})}function c(e,t,r){return O.pushState(e,n(t,r))}function l(e,t,r){return O.replaceState(e,n(t,r))}function f(e,t){return O.createPath(n(e,t))}function d(e,t){return O.createHref(n(e,t))}function h(){return t(O.createLocation.apply(O,arguments))}var v=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],m=v.stringifyQuery,g=v.parseQueryString,b=o(v,["stringifyQuery","parseQueryString"]),O=e(b);return"function"!=typeof m&&(m=a),"function"!=typeof g&&(g=u),s({},O,{listenBefore:r,listen:i,pushState:c,replaceState:l,createPath:f,createHref:d,createLocation:h})}}t.__esModule=!0;var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c=n(46),l=r(c),f=n(12),p=r(f),d=n(11),y=r(d);t["default"]=i,e.exports=t["default"]},function(e,t,n){function r(e){return null===e||void 0===e}function o(e){return e&&"object"==typeof e&&"number"==typeof e.length?"function"!=typeof e.copy||"function"!=typeof e.slice?!1:e.length>0&&"number"!=typeof e[0]?!1:!0:!1}function a(e,t,n){var a,l;if(r(e)||r(t))return!1;if(e.prototype!==t.prototype)return!1;if(s(e))return s(t)?(e=u.call(e),t=u.call(t),c(e,t,n)):!1;if(o(e)){if(!o(t))return!1;if(e.length!==t.length)return!1;for(a=0;a<e.length;a++)if(e[a]!==t[a])return!1;return!0}try{var f=i(e),p=i(t)}catch(d){return!1}if(f.length!=p.length)return!1;for(f.sort(),p.sort(),a=f.length-1;a>=0;a--)if(f[a]!=p[a])return!1;for(a=f.length-1;a>=0;a--)if(l=f[a],!c(e[l],t[l],n))return!1;return typeof e==typeof t}var u=Array.prototype.slice,i=n(45),s=n(44),c=e.exports=function(e,t,n){return n||(n={}),e===t?!0:e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||"object"!=typeof e&&"object"!=typeof t?n.strict?e===t:e==t:a(e,t,n)}},function(e,t){function n(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function r(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Object.prototype.hasOwnProperty.call(e,"callee")&&!Object.prototype.propertyIsEnumerable.call(e,"callee")||!1}var o="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();t=e.exports=o?n:r,t.supported=n,t.unsupported=r},function(e,t){function n(e){var t=[];for(var n in e)t.push(n);return t}t=e.exports="function"==typeof Object.keys?Object.keys:n,t.shim=n},function(e,t,n){var r=n(48),o=n(47);e.exports={stringify:r,parse:o}},function(e,t,n){var r=n(18),o={delimiter:"&",depth:5,arrayLimit:20,parameterLimit:1e3,strictNullHandling:!1,plainObjects:!1,allowPrototypes:!1};o.parseValues=function(e,t){for(var n={},o=e.split(t.delimiter,t.parameterLimit===1/0?void 0:t.parameterLimit),a=0,u=o.length;u>a;++a){var i=o[a],s=-1===i.indexOf("]=")?i.indexOf("="):i.indexOf("]=")+1;if(-1===s)n[r.decode(i)]="",t.strictNullHandling&&(n[r.decode(i)]=null);else{var c=r.decode(i.slice(0,s)),l=r.decode(i.slice(s+1));Object.prototype.hasOwnProperty.call(n,c)?n[c]=[].concat(n[c]).concat(l):n[c]=l}}return n},o.parseObject=function(e,t,n){if(!e.length)return t;var r,a=e.shift();if("[]"===a)r=[],r=r.concat(o.parseObject(e,t,n));else{r=n.plainObjects?Object.create(null):{};var u="["===a[0]&&"]"===a[a.length-1]?a.slice(1,a.length-1):a,i=parseInt(u,10),s=""+i;!isNaN(i)&&a!==u&&s===u&&i>=0&&n.parseArrays&&i<=n.arrayLimit?(r=[],r[i]=o.parseObject(e,t,n)):r[u]=o.parseObject(e,t,n)}return r},o.parseKeys=function(e,t,n){if(e){n.allowDots&&(e=e.replace(/\.([^\.\[]+)/g,"[$1]"));var r=/^([^\[\]]*)/,a=/(\[[^\[\]]*\])/g,u=r.exec(e),i=[];if(u[1]){if(!n.plainObjects&&Object.prototype.hasOwnProperty(u[1])&&!n.allowPrototypes)return;i.push(u[1])}for(var s=0;null!==(u=a.exec(e))&&s<n.depth;)++s,(n.plainObjects||!Object.prototype.hasOwnProperty(u[1].replace(/\[|\]/g,""))||n.allowPrototypes)&&i.push(u[1]);return u&&i.push("["+e.slice(u.index)+"]"),o.parseObject(i,t,n)}},e.exports=function(e,t){if(t=t||{},t.delimiter="string"==typeof t.delimiter||r.isRegExp(t.delimiter)?t.delimiter:o.delimiter,t.depth="number"==typeof t.depth?t.depth:o.depth,t.arrayLimit="number"==typeof t.arrayLimit?t.arrayLimit:o.arrayLimit,t.parseArrays=t.parseArrays!==!1,t.allowDots=t.allowDots!==!1,t.plainObjects="boolean"==typeof t.plainObjects?t.plainObjects:o.plainObjects,t.allowPrototypes="boolean"==typeof t.allowPrototypes?t.allowPrototypes:o.allowPrototypes,t.parameterLimit="number"==typeof t.parameterLimit?t.parameterLimit:o.parameterLimit,t.strictNullHandling="boolean"==typeof t.strictNullHandling?t.strictNullHandling:o.strictNullHandling,""===e||null===e||"undefined"==typeof e)return t.plainObjects?Object.create(null):{};for(var n="string"==typeof e?o.parseValues(e,t):e,a=t.plainObjects?Object.create(null):{},u=Object.keys(n),i=0,s=u.length;s>i;++i){var c=u[i],l=o.parseKeys(c,n[c],t);a=r.merge(a,l,t)}return r.compact(a)}},function(e,t,n){var r=n(18),o={delimiter:"&",arrayPrefixGenerators:{brackets:function(e,t){return e+"[]"},indices:function(e,t){return e+"["+t+"]"},repeat:function(e,t){return e}},strictNullHandling:!1};o.stringify=function(e,t,n,a,u){if("function"==typeof u)e=u(t,e);else if(r.isBuffer(e))e=e.toString();else if(e instanceof Date)e=e.toISOString();else if(null===e){if(a)return r.encode(t);e=""}if("string"==typeof e||"number"==typeof e||"boolean"==typeof e)return[r.encode(t)+"="+r.encode(e)];var i=[];if("undefined"==typeof e)return i;for(var s=Array.isArray(u)?u:Object.keys(e),c=0,l=s.length;l>c;++c){var f=s[c];i=Array.isArray(e)?i.concat(o.stringify(e[f],n(t,f),n,a,u)):i.concat(o.stringify(e[f],t+"["+f+"]",n,a,u))}return i},e.exports=function(e,t){t=t||{};var n,r,a="undefined"==typeof t.delimiter?o.delimiter:t.delimiter,u="boolean"==typeof t.strictNullHandling?t.strictNullHandling:o.strictNullHandling;"function"==typeof t.filter?(r=t.filter,e=r("",e)):Array.isArray(t.filter)&&(n=r=t.filter);var i=[];if("object"!=typeof e||null===e)return"";var s;s=t.arrayFormat in o.arrayPrefixGenerators?t.arrayFormat:"indices"in t?t.indices?"indices":"repeat":"indices";var c=o.arrayPrefixGenerators[s];n||(n=Object.keys(e));for(var l=0,f=n.length;f>l;++l){var p=n[l];i=i.concat(o.stringify(e[p],p,c,u,r))}return i.join(a)}}])});
!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.ReactRouter=t(require("react")):e.ReactRouter=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}}t.__esModule=!0;var o=n(27),a=r(o);t.Router=a["default"];var u=n(13),i=r(u);t.Link=i["default"];var s=n(21),c=r(s);t.IndexLink=c["default"];var f=n(22),l=r(f);t.IndexRedirect=l["default"];var p=n(23),d=r(p);t.IndexRoute=d["default"];var h=n(14),y=r(h);t.Redirect=y["default"];var v=n(25),m=r(v);t.Route=m["default"];var g=n(20),b=r(g);t.History=b["default"];var O=n(24),_=r(O);t.Lifecycle=_["default"];var x=n(26),P=r(x);t.RouteContext=P["default"];var w=n(9),j=r(w);t.useRoutes=j["default"];var R=n(4);t.createRoutes=R.createRoutes;var E=n(15),T=r(E);t.RoutingContext=T["default"];var A=n(5),S=r(A);t.PropTypes=S["default"];var M=n(33),C=r(M);t.match=C["default"];var k=r(o);t["default"]=k["default"]},function(t,n){t.exports=e},function(e,t,n){"use strict";var r=function(e,t,n,r,o,a,u,i){if(!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,a,u,i],f=0;s=new Error(t.replace(/%s/g,function(){return c[f++]})),s.name="Invariant Violation"}throw s.framesToPop=1,s}};e.exports=r},function(e,t,n){"use strict";var r=function(){};e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){return null==e||d["default"].isValidElement(e)}function a(e){return o(e)||Array.isArray(e)&&e.every(o)}function u(e,t,n){e=e||"UnknownComponent";for(var r in t)if(t.hasOwnProperty(r)){var o=t[r](n,r,e);o instanceof Error}}function i(e,t){return l({},e,t)}function s(e){var t=e.type,n=i(t.defaultProps,e.props);if(t.propTypes&&u(t.displayName||t.name,t.propTypes,n),n.children){var r=c(n.children,n);r.length&&(n.childRoutes=r),delete n.children}return n}function c(e,t){var n=[];return d["default"].Children.forEach(e,function(e){if(d["default"].isValidElement(e))if(e.type.createRouteFromReactElement){var r=e.type.createRouteFromReactElement(e,t);r&&n.push(r)}else n.push(s(e))}),n}function f(e){return a(e)?e=c(e):e&&!Array.isArray(e)&&(e=[e]),e}t.__esModule=!0;var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.isReactChildren=a,t.createRouteFromReactElement=s,t.createRoutesFromReactChildren=c,t.createRoutes=f;var p=n(1),d=r(p),h=n(3);r(h)},function(e,t,n){"use strict";function r(e,t,n){return e[t]?new Error("<"+n+'> should not have a "'+t+'" prop'):void 0}t.__esModule=!0,t.falsy=r;var o=n(1),a=o.PropTypes.func,u=o.PropTypes.object,i=o.PropTypes.arrayOf,s=o.PropTypes.oneOfType,c=o.PropTypes.element,f=o.PropTypes.shape,l=o.PropTypes.string,p=f({listen:a.isRequired,pushState:a.isRequired,replaceState:a.isRequired,go:a.isRequired});t.history=p;var d=f({pathname:l.isRequired,search:l.isRequired,state:u,action:l.isRequired,key:l});t.location=d;var h=s([a,l]);t.component=h;var y=s([h,u]);t.components=y;var v=s([u,c]);t.route=v;var m=s([v,i(v)]);t.routes=m,t["default"]={falsy:r,history:p,location:d,component:h,components:y,route:v}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function a(e){return o(e).replace(/\/+/g,"/+")}function u(e){for(var t="",n=[],r=[],o=void 0,u=0,i=/:([a-zA-Z_$][a-zA-Z0-9_$]*)|\*\*|\*|\(|\)/g;o=i.exec(e);)o.index!==u&&(r.push(e.slice(u,o.index)),t+=a(e.slice(u,o.index))),o[1]?(t+="([^/?#]+)",n.push(o[1])):"**"===o[0]?(t+="([\\s\\S]*)",n.push("splat")):"*"===o[0]?(t+="([\\s\\S]*?)",n.push("splat")):"("===o[0]?t+="(?:":")"===o[0]&&(t+=")?"),r.push(o[0]),u=i.lastIndex;return u!==e.length&&(r.push(e.slice(u,e.length)),t+=a(e.slice(u,e.length))),{pattern:e,regexpSource:t,paramNames:n,tokens:r}}function i(e){return e in h||(h[e]=u(e)),h[e]}function s(e,t){"/"!==e.charAt(0)&&(e="/"+e),"/"!==t.charAt(0)&&(t="/"+t);var n=i(e),r=n.regexpSource,o=n.paramNames,a=n.tokens;r+="/*";var u="*"!==a[a.length-1];u&&(r+="([\\s\\S]*?)");var s=t.match(new RegExp("^"+r+"$","i")),c=void 0,f=void 0;if(null!=s){if(u){c=s.pop();var l=s[0].substr(0,s[0].length-c.length);if(c&&"/"!==l.charAt(l.length-1))return{remainingPathname:null,paramNames:o,paramValues:null}}else c="";f=s.slice(1).map(function(e){return null!=e?decodeURIComponent(e):e})}else c=f=null;return{remainingPathname:c,paramNames:o,paramValues:f}}function c(e){return i(e).paramNames}function f(e,t){var n=s(e,t),r=n.paramNames,o=n.paramValues;return null!=o?r.reduce(function(e,t,n){return e[t]=o[n],e},{}):null}function l(e,t){t=t||{};for(var n=i(e),r=n.tokens,o=0,a="",u=0,s=void 0,c=void 0,f=void 0,l=0,p=r.length;p>l;++l)s=r[l],"*"===s||"**"===s?(f=Array.isArray(t.splat)?t.splat[u++]:t.splat,null!=f||o>0?void 0:d["default"](!1),null!=f&&(a+=encodeURI(f))):"("===s?o+=1:")"===s?o-=1:":"===s.charAt(0)?(c=s.substring(1),f=t[c],null!=f||o>0?void 0:d["default"](!1),null!=f&&(a+=encodeURIComponent(f))):a+=s;return a.replace(/\/+/g,"/")}t.__esModule=!0,t.compilePattern=i,t.matchPattern=s,t.getParamNames=c,t.getParams=f,t.formatPattern=l;var p=n(2),d=r(p),h={}},function(e,t){"use strict";t.__esModule=!0;var n="PUSH";t.PUSH=n;var r="REPLACE";t.REPLACE=r;var o="POP";t.POP=o,t["default"]={PUSH:n,REPLACE:r,POP:o}},function(e,t){"use strict";function n(e,t,n){function r(){u=!0,n.apply(this,arguments)}function o(){u||(e>a?t.call(this,a++,o,r):r.apply(this,arguments))}var a=0,u=!1;o()}function r(e,t,n){function r(e,t,r){u||(t?(u=!0,n(t)):(a[e]=r,u=++i===o,u&&n(null,a)))}var o=e.length,a=[];if(0===o)return n(null,a);var u=!1,i=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,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 a(e){for(var t in e)if(e.hasOwnProperty(t))return!0;return!1}function u(e){return function(){function t(e,t){var n=arguments.length<=2||void 0===arguments[2]?!1:arguments[2];return v["default"](e,t,n,j.location,j.routes,j.params)}function n(e){var t=e.pathname,n=e.query,r=e.state;return w.createLocation(w.createPath(t,n),r,c.REPLACE)}function r(e,t){R&&R.location===e?u(R,t):O["default"](x,e,function(n,r){n?t(n):r?u(i({},r,{location:e}),t):t()})}function u(e,t){var r=d["default"](j,e),o=r.leaveRoutes,a=r.enterRoutes;h.runLeaveHooks(o),h.runEnterHooks(a,e,function(r,o){r?t(r):o?t(null,n(o)):g["default"](e,function(n,r){n?t(n):t(null,null,j=i({},e,{components:r}))})})}function s(e){return e.__id__||(e.__id__=E++)}function f(e){return e.reduce(function(e,t){return e.push.apply(e,T[s(t)]),e},[])}function p(e,t){O["default"](x,e,function(n,r){if(null==r)return void t();R=i({},r,{location:e});for(var o=f(d["default"](j,R).leaveRoutes),a=void 0,u=0,s=o.length;null==a&&s>u;++u)a=o[u](e);t(a)})}function y(){if(j.routes){for(var e=f(j.routes),t=void 0,n=0,r=e.length;"string"!=typeof t&&r>n;++n)t=e[n]();return t}}function m(e,t){var n=s(e),r=T[n];if(null==r){var o=!a(T);r=T[n]=[t],o&&(A=w.listenBefore(p),w.listenBeforeUnload&&(S=w.listenBeforeUnload(y)))}else-1===r.indexOf(t)&&r.push(t);return function(){var e=T[n];if(null!=e){var r=e.filter(function(e){return e!==t});0===r.length?(delete T[n],a(T)||(A&&(A(),A=null),S&&(S(),S=null))):T[n]=r}}}function b(e){return w.listen(function(t){j.location===t?e(null,j):r(t,function(t,n,r){t?e(t):n?w.transitionTo(n):r&&e(null,r)})})}var _=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],x=_.routes,P=o(_,["routes"]),w=l["default"](e)(P),j={},R=void 0,E=1,T={},A=void 0,S=void 0;return i({},w,{isActive:t,match:r,listenBeforeLeavingRoute:m,listen:b})}}t.__esModule=!0;var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=n(3),c=(r(s),n(7)),f=n(43),l=r(f),p=n(29),d=r(p),h=n(28),y=n(32),v=r(y),m=n(30),g=r(m),b=n(34),O=r(b);t["default"]=u,e.exports=t["default"]},function(e,t){"use strict";t.__esModule=!0;var n=!("undefined"==typeof window||!window.document||!window.document.createElement);t.canUseDOM=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){var t=i["default"](e),n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substring(o),t=t.substring(0,o));var a=t.indexOf("?");return-1!==a&&(n=t.substring(a),t=t.substring(0,a)),""===t&&(t="/"),{pathname:t,search:n,hash:r}}t.__esModule=!0;var a=n(3),u=(r(a),n(18)),i=r(u);t["default"]=o,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){var r=e(t,n);e.length<2&&n(r)}t.__esModule=!0;var a=n(3);r(a);t["default"]=o,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(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 a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function i(e){return 0===e.button}function s(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function c(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}t.__esModule=!0;var f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=n(1),p=r(l),d=p["default"].PropTypes,h=d.bool,y=d.object,v=d.string,m=d.func,g=function(e){function t(){a(this,t),e.apply(this,arguments)}return u(t,e),t.prototype.handleClick=function(e){var t=!0;if(this.props.onClick&&this.props.onClick(e),!s(e)&&i(e)){if(e.defaultPrevented===!0&&(t=!1),this.props.target)return void(t||e.preventDefault());if(e.preventDefault(),t){var n=this.props,r=n.state,o=n.to,a=n.query,u=n.hash;u&&(o+=u),this.context.history.pushState(r,o,a)}}},t.prototype.render=function(){var e=this,t=this.props,n=t.to,r=t.query,a=t.hash,u=(t.state,t.activeClassName),i=t.activeStyle,s=t.onlyActiveOnIndex,l=o(t,["to","query","hash","state","activeClassName","activeStyle","onlyActiveOnIndex"]);l.onClick=function(t){return e.handleClick(t)};var d=this.context.history;return d&&(l.href=d.createHref(n,r),a&&(l.href+=a),(u||null!=i&&!c(i))&&d.isActive(n,r,s)&&(u&&(l.className+=""===l.className?u:" "+u),i&&(l.style=f({},l.style,i)))),p["default"].createElement("a",l)},t}(l.Component);g.contextTypes={history:y},g.propTypes={to:v.isRequired,query:y,hash:v,state:y,activeStyle:y,activeClassName:v,onlyActiveOnIndex:h.isRequired,onClick:m},g.defaultProps={onlyActiveOnIndex:!1,className:"",style:{}},t["default"]=g,e.exports=t["default"]},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("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)}t.__esModule=!0;var u=n(2),i=r(u),s=n(1),c=r(s),f=n(4),l=n(6),p=n(5),d=c["default"].PropTypes,h=d.string,y=d.object,v=function(e){function t(){o(this,t),e.apply(this,arguments)}return a(t,e),t.prototype.render=function(){i["default"](!1)},t}(s.Component);v.createRouteFromReactElement=function(e){var t=f.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=l.formatPattern(t.to,o);else if(t.to){var u=e.routes.indexOf(t),i=v.getRoutePattern(e.routes,u-1),s=i.replace(/\/*$/,"/")+t.to;a=l.formatPattern(s,o)}else a=r.pathname;n(t.state||r.state,a,t.query||r.query)},t},v.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},v.propTypes={path:h,from:h,to:h.isRequired,query:y,state:y,onEnter:p.falsy,children:p.falsy},t["default"]=v,e.exports=t["default"]},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("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)}t.__esModule=!0;var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(2),s=r(i),c=n(1),f=r(c),l=n(4),p=n(31),d=r(p),h=f["default"].PropTypes,y=h.array,v=h.func,m=h.object,g=function(e){function t(){o(this,t),e.apply(this,arguments)}return a(t,e),t.prototype.getChildContext=function(){var e=this.props,t=e.history,n=e.location;return{history:t,location:n}},t.prototype.createElement=function(e,t){return null==e?null:this.props.createElement(e,t)},t.prototype.render=function(){var e=this,t=this.props,n=t.history,r=t.location,o=t.routes,a=t.params,i=t.components,c=null;return i&&(c=i.reduceRight(function(t,i,s){if(null==i)return t;var c=o[s],f=d["default"](c,a),p={history:n,location:r,params:a,route:c,routeParams:f,routes:o};if(l.isReactChildren(t))p.children=t;else if(t)for(var h in t)t.hasOwnProperty(h)&&(p[h]=t[h]);if("object"==typeof i){var y={};for(var v in i)i.hasOwnProperty(v)&&(y[v]=e.createElement(i[v],u({key:v},p)));return y}return e.createElement(i,p)},c)),null===c||c===!1||f["default"].isValidElement(c)?void 0:s["default"](!1),c},t}(c.Component);g.propTypes={history:m.isRequired,createElement:v.isRequired,location:m.isRequired,routes:y.isRequired,params:m.isRequired,components:y.isRequired},g.defaultProps={createElement:f["default"].createElement},g.childContextTypes={history:m.isRequired,location:m.isRequired},t["default"]=g,e.exports=t["default"]},function(e,t){"use strict";function n(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)}function r(e,t,n){e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent("on"+t,n)}function o(){return window.location.href.split("#")[1]||""}function a(e){window.location.replace(window.location.pathname+window.location.search+"#"+e)}function u(){return window.location.pathname+window.location.search+window.location.hash}function i(e){e&&window.history.go(e)}function s(e,t){t(window.confirm(e))}function c(){var e=navigator.userAgent;return-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone")?window.history&&"pushState"in window.history:!1}function f(){var e=navigator.userAgent;return-1===e.indexOf("Firefox")}t.__esModule=!0,t.addEventListener=n,t.removeEventListener=r,t.getHashPath=o,t.replaceHashPath=a,t.getWindowPath=u,t.go=i,t.getUserConfirmation=s,t.supportsHistory=c,t.supportsGoWithoutReloadUsingHash=f},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){return Math.random().toString(36).substr(2,e)}function a(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.key===t.key&&c["default"](e.state,t.state)}function u(){function e(e){return q.push(e),function(){q=q.filter(function(t){return t!==e})}}function t(){return I&&I.action===l.POP?N.indexOf(I.key):B?N.indexOf(B.key):-1}function n(e){var n=t();B=e,B.action===l.PUSH?N=[].concat(N.slice(0,n+1),[B.key]):B.action===l.REPLACE&&(N[n]=B.key),U.forEach(function(e){e(B)})}function r(e){if(U.push(e),B)e(B);else{var t=S();N=[t.key],n(t)}return function(){U=U.filter(function(t){return t!==e})}}function u(e,t){f.loopAsync(q.length,function(t,n,r){y["default"](q[t],e,function(e){null!=e?r(e):n()})},function(e){H&&"string"==typeof e?H(e,function(e){t(e!==!1)}):t(e!==!1)})}function s(e){B&&a(B,e)||(I=e,u(e,function(t){if(I===e)if(t){if(e.action===l.PUSH){var r=S(),o=r.pathname,a=r.search,u=o+a,i=e.pathname+e.search;u===i&&(e.action=l.REPLACE)}M(e)!==!1&&n(e)}else if(B&&e.action===l.POP){var s=N.indexOf(B.key),c=N.indexOf(e.key);-1!==s&&-1!==c&&k(s-c)}}))}function c(e,t){s(w(t,e,l.PUSH,_()))}function p(e){c(null,e)}function h(e,t){s(w(t,e,l.REPLACE,_()))}function v(e){h(null,e)}function b(){k(-1)}function O(){k(1)}function _(){return o(L)}function x(e){if(null==e||"string"==typeof e)return e;var t=e.pathname,n=e.search,r=e.hash,o=t;return n&&(o+=n),r&&(o+=r),o}function P(e){return x(e)}function w(e,t,n){var r=arguments.length<=3||void 0===arguments[3]?_():arguments[3];return d["default"](e,t,n,r)}function j(e){B?(R(B,e),n(B)):R(S(),e)}function R(e,t){e.state=i({},e.state,t),C(e.key,e.state)}function E(e){-1===q.indexOf(e)&&q.push(e)}function T(e){q=q.filter(function(t){return t!==e})}var A=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],S=A.getCurrentLocation,M=A.finishTransition,C=A.saveState,k=A.go,L=A.keyLength,H=A.getUserConfirmation;"number"!=typeof L&&(L=g);var q=[],N=[],U=[],B=void 0,I=void 0;return{listenBefore:e,listen:r,transitionTo:s,pushState:c,replaceState:h,push:p,replace:v,go:k,goBack:b,goForward:O,createKey:_,createPath:x,createHref:P,createLocation:w,setState:m["default"](j,"setState is deprecated; use location.key to save state instead"),registerTransitionHook:m["default"](E,"registerTransitionHook is deprecated; use listenBefore instead"),unregisterTransitionHook:m["default"](T,"unregisterTransitionHook is deprecated; use the callback returned from listenBefore instead")}}t.__esModule=!0;var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=n(44),c=r(s),f=n(35),l=n(7),p=n(39),d=r(p),h=n(12),y=r(h),v=n(41),m=r(v),g=6;t["default"]=u,e.exports=t["default"]},function(e,t){"use strict";function n(e){var t=e.match(/^https?:\/\/[^\/]*/);return null==t?e:e.substring(t[0].length)}t.__esModule=!0,t["default"]=n,e.exports=t["default"]},function(e,t){var n={};n.hexTable=new Array(256);for(var r=0;256>r;++r)n.hexTable[r]="%"+((16>r?"0":"")+r.toString(16)).toUpperCase();t.arrayToObject=function(e,t){for(var n=t.plainObjects?Object.create(null):{},r=0,o=e.length;o>r;++r)"undefined"!=typeof e[r]&&(n[r]=e[r]);return n},t.merge=function(e,n,r){if(!n)return e;if("object"!=typeof n)return Array.isArray(e)?e.push(n):"object"==typeof e?e[n]=!0:e=[e,n],e;if("object"!=typeof e)return e=[e].concat(n);Array.isArray(e)&&!Array.isArray(n)&&(e=t.arrayToObject(e,r));for(var o=Object.keys(n),a=0,u=o.length;u>a;++a){var i=o[a],s=n[i];Object.prototype.hasOwnProperty.call(e,i)?e[i]=t.merge(e[i],s,r):e[i]=s}return e},t.decode=function(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(t){return e}},t.encode=function(e){if(0===e.length)return e;"string"!=typeof e&&(e=""+e);for(var t="",r=0,o=e.length;o>r;++r){var a=e.charCodeAt(r);45===a||46===a||95===a||126===a||a>=48&&57>=a||a>=65&&90>=a||a>=97&&122>=a?t+=e[r]:128>a?t+=n.hexTable[a]:2048>a?t+=n.hexTable[192|a>>6]+n.hexTable[128|63&a]:55296>a||a>=57344?t+=n.hexTable[224|a>>12]+n.hexTable[128|a>>6&63]+n.hexTable[128|63&a]:(++r,a=65536+((1023&a)<<10|1023&e.charCodeAt(r)),t+=n.hexTable[240|a>>18]+n.hexTable[128|a>>12&63]+n.hexTable[128|a>>6&63]+n.hexTable[128|63&a])}return t},t.compact=function(e,n){if("object"!=typeof e||null===e)return e;n=n||[];var r=n.indexOf(e);if(-1!==r)return n[r];if(n.push(e),Array.isArray(e)){for(var o=[],a=0,u=e.length;u>a;++a)"undefined"!=typeof e[a]&&o.push(e[a]);return o}var i=Object.keys(e);for(a=0,u=i.length;u>a;++a){var s=i[a];e[s]=t.compact(e[s],n)}return e},t.isRegExp=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},t.isBuffer=function(e){return null===e||"undefined"==typeof e?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))}},function(e,t,n){"use strict";t.__esModule=!0;var r=n(5),o={contextTypes:{history:r.history},componentWillMount:function(){this.history=this.context.history}};t["default"]=o,e.exports=t["default"]},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("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)}t.__esModule=!0;var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(1),s=r(i),c=n(13),f=r(c),l=function(e){function t(){o(this,t),e.apply(this,arguments)}return a(t,e),t.prototype.render=function(){return s["default"].createElement(f["default"],u({},this.props,{onlyActiveOnIndex:!0}))},t}(i.Component);t["default"]=l,e.exports=t["default"]},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("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)}t.__esModule=!0;var u=n(3),i=(r(u),n(2)),s=r(i),c=n(1),f=r(c),l=n(14),p=r(l),d=n(5),h=f["default"].PropTypes,y=h.string,v=h.object,m=function(e){function t(){o(this,t),e.apply(this,arguments)}return a(t,e),t.prototype.render=function(){s["default"](!1)},t}(c.Component);m.propTypes={to:y.isRequired,query:v,state:v,onEnter:d.falsy,children:d.falsy},m.createRouteFromReactElement=function(e,t){t&&(t.indexRoute=p["default"].createRouteFromReactElement(e))},t["default"]=m,e.exports=t["default"]},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("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)}t.__esModule=!0;var u=n(3),i=(r(u),n(2)),s=r(i),c=n(1),f=r(c),l=n(4),p=n(5),d=f["default"].PropTypes.func,h=function(e){function t(){o(this,t),e.apply(this,arguments)}return a(t,e),t.prototype.render=function(){s["default"](!1)},t}(c.Component);h.propTypes={path:p.falsy,component:p.component,components:p.components,getComponent:d,getComponents:d},h.createRouteFromReactElement=function(e,t){t&&(t.indexRoute=l.createRouteFromReactElement(e))},t["default"]=h,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(1),a=r(o),u=n(2),i=r(u),s=a["default"].PropTypes.object,c={contextTypes:{history:s.isRequired,route:s},propTypes:{route:s},componentDidMount:function(){this.routerWillLeave?void 0:i["default"](!1);var e=this.props.route||this.context.route;e?void 0:i["default"](!1),this._unlistenBeforeLeavingRoute=this.context.history.listenBeforeLeavingRoute(e,this.routerWillLeave)},componentWillUnmount:function(){this._unlistenBeforeLeavingRoute&&this._unlistenBeforeLeavingRoute()}};t["default"]=c,e.exports=t["default"]},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("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)}t.__esModule=!0;var u=n(2),i=r(u),s=n(1),c=r(s),f=n(4),l=n(5),p=c["default"].PropTypes,d=p.string,h=p.func,y=function(e){function t(){o(this,t),e.apply(this,arguments)}return a(t,e),t.prototype.render=function(){i["default"](!1)},t}(s.Component);y.createRouteFromReactElement=f.createRouteFromReactElement,y.propTypes={path:d,component:l.component,components:l.components,getComponent:h,getComponents:h},t["default"]=y,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(1),a=r(o),u=a["default"].PropTypes.object,i={propTypes:{route:u.isRequired},childContextTypes:{route:u.isRequired},getChildContext:function(){return{route:this.props.route}}};t["default"]=i,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(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 a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(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)}t.__esModule=!0;var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=n(3),c=(r(s),n(1)),f=r(c),l=n(38),p=r(l),d=n(4),h=n(15),y=r(h),v=n(9),m=r(v),g=n(5),b=f["default"].PropTypes,O=b.func,_=b.object,x=function(e){function t(n,r){a(this,t),e.call(this,n,r),this.state={location:null,routes:null,params:null,components:null}}return u(t,e),t.prototype.handleError=function(e){if(!this.props.onError)throw e;this.props.onError.call(this,e)},t.prototype.componentWillMount=function(){var e=this,t=this.props,n=t.history,r=t.children,o=t.routes,a=t.parseQueryString,u=t.stringifyQuery,i=n?function(){return n}:p["default"];this.history=m["default"](i)({routes:d.createRoutes(o||r),parseQueryString:a,stringifyQuery:u}),this._unlisten=this.history.listen(function(t,n){t?e.handleError(t):e.setState(n,e.props.onUpdate)})},t.prototype.componentWillReceiveProps=function(e){},t.prototype.componentWillUnmount=function(){this._unlisten&&this._unlisten()},t.prototype.render=function(){var e=this.state,n=e.location,r=e.routes,a=e.params,u=e.components,s=this.props,c=s.RoutingContext,l=s.createElement,p=o(s,["RoutingContext","createElement"]);return null==n?null:(Object.keys(t.propTypes).forEach(function(e){return delete p[e]}),f["default"].createElement(c,i({},p,{history:this.history,createElement:l,location:n,routes:r,params:a,components:u})))},t}(c.Component);x.propTypes={history:_,children:g.routes,routes:g.routes,RoutingContext:O.isRequired,createElement:O,onError:O,onUpdate:O,parseQueryString:O,stringifyQuery:O},x.defaultProps={RoutingContext:y["default"]},t["default"]=x,e.exports=t["default"]},function(e,t,n){"use strict";function r(e,t){return function(n,r,o){e.apply(t,arguments),e.length<3&&o()}}function o(e){return e.reduce(function(e,t){return t.onEnter&&e.push(r(t.onEnter,t)),e},[])}function a(e,t,n){function r(e,t,n){u={pathname:t,query:n,state:e}}var a=o(e);if(!a.length)return void n();var u=void 0;i.loopAsync(a.length,function(e,n,o){a[e](t,r,function(e){e||u?o(e,u):n()})},n)}function u(e){for(var t=0,n=e.length;n>t;++t)e[t].onLeave&&e[t].onLeave.call(e[t])}t.__esModule=!0,t.runEnterHooks=a,t.runLeaveHooks=u;var i=n(8)},function(e,t,n){"use strict";function r(e,t,n){if(!e.path)return!1;var r=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,u=void 0;return n?(a=n.filter(function(n){return-1===o.indexOf(n)||r(n,e,t)}),a.reverse(),u=o.filter(function(e){return-1===n.indexOf(e)||-1!==a.indexOf(e)})):(a=[],u=o),{leaveRoutes:a,enterRoutes:u}}t.__esModule=!0;var a=n(6);t["default"]=o,e.exports=t["default"]},function(e,t,n){"use strict";function r(e,t,n){t.component||t.components?n(null,t.component||t.components):t.getComponent?t.getComponent(e,n):t.getComponents?t.getComponents(e,n):n()}function o(e,t){a.mapAsync(e.routes,function(t,n,o){r(e.location,t,o)},t)}t.__esModule=!0;var a=n(8);t["default"]=o,e.exports=t["default"]},function(e,t,n){"use strict";function r(e,t){var n={};if(!e.path)return n;var r=o.getParamNames(e.path);for(var a in t)t.hasOwnProperty(a)&&-1!==r.indexOf(a)&&(n[a]=t[a]);return n}t.__esModule=!0;var o=n(6);t["default"]=r,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"==typeof e){for(var n in e)if(e.hasOwnProperty(n))if(void 0===e[n]){if(void 0!==t[n])return!1}else{if(!t.hasOwnProperty(n))return!1;if(!r(e[n],t[n]))return!1}return!0}return String(e)===String(t)}function o(e,t,n){return e.every(function(e,r){return String(t[r])===String(n[e])})}function a(e,t,n){for(var r=e,a=[],u=[],i=0,s=t.length;s>i;++i){var f=t[i],l=f.path||"";if("/"===l.charAt(0)&&(r=e,a=[],u=[]),null!==r){var p=c.matchPattern(l,r);r=p.remainingPathname,a=[].concat(a,p.paramNames),u=[].concat(u,p.paramValues)}if(""===r&&f.path&&o(a,u,n))return i}return null}function u(e,t,n,r){var o=a(e,t,n);return null===o?!1:r?t.slice(o+1).every(function(e){return!e.path}):!0}function i(e,t){return null==t?null==e:null==e?!0:r(e,t)}function s(e,t,n,r,o,a){return null==r?!1:u(e,o,a,n)?i(t,r.query):!1}t.__esModule=!0;var c=n(6);t["default"]=s,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n=e.routes,r=e.location,o=e.parseQueryString,u=e.stringifyQuery,s=e.basename;r?void 0:i["default"](!1);var c=y({routes:p.createRoutes(n),parseQueryString:o,stringifyQuery:u,basename:s});"string"==typeof r&&(r=c.createLocation(r)),c.match(r,function(e,n,r){t(e,n,r&&a({},r,{history:c}))})}t.__esModule=!0;var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=n(2),i=r(u),s=n(40),c=r(s),f=n(42),l=r(f),p=n(4),d=n(9),h=r(d),y=h["default"](l["default"](c["default"]));t["default"]=o,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){e.childRoutes?n(null,e.childRoutes):e.getChildRoutes?e.getChildRoutes(t,function(e,t){n(e,!e&&d.createRoutes(t))}):n()}function a(e,t,n){e.indexRoute?n(null,e.indexRoute):e.getIndexRoute?e.getIndexRoute(t,function(e,t){n(e,!e&&d.createRoutes(t)[0])}):e.childRoutes?!function(){var r=e.childRoutes.filter(function(e){return!e.hasOwnProperty("path")});l.loopAsync(r.length,function(e,n,o){
a(r[e],t,function(t,a){if(t||a){var u=[r[e]].concat(Array.isArray(a)?a:[a]);o(t,u)}else n()})},function(e,t){n(null,t)})}():n()}function u(e,t,n){return t.reduce(function(e,t,r){var o=n&&n[r];return Array.isArray(e[t])?e[t].push(o):t in e?e[t]=[e[t],o]:e[t]=o,e},e)}function i(e,t){return u({},e,t)}function s(e,t,n,r,u,s){var f=e.path||"";if("/"===f.charAt(0)&&(n=t.pathname,r=[],u=[]),null!==n){var l=p.matchPattern(f,n);if(n=l.remainingPathname,r=[].concat(r,l.paramNames),u=[].concat(u,l.paramValues),""===n&&e.path){var d=function(){var n={routes:[e],params:i(r,u)};return a(e,t,function(e,t){if(e)s(e);else{if(Array.isArray(t)){var r;(r=n.routes).push.apply(r,t)}else t&&n.routes.push(t);s(null,n)}}),{v:void 0}}();if("object"==typeof d)return d.v}}null!=n||e.childRoutes?o(e,t,function(o,a){o?s(o):a?c(a,t,function(t,n){t?s(t):n?(n.routes.unshift(e),s(null,n)):s()},n,r,u):s()}):s()}function c(e,t,n){var r=arguments.length<=3||void 0===arguments[3]?t.pathname:arguments[3],o=arguments.length<=4||void 0===arguments[4]?[]:arguments[4],a=arguments.length<=5||void 0===arguments[5]?[]:arguments[5];return function(){l.loopAsync(e.length,function(n,u,i){s(e[n],t,r,o,a,function(e,t){e||t?i(e,t):u()})},n)}()}t.__esModule=!0;var f=n(3),l=(r(f),n(8)),p=n(6),d=n(4);t["default"]=c,e.exports=t["default"]},function(e,t){"use strict";function n(e,t,n){function r(){u=!0,n.apply(this,arguments)}function o(){u||(e>a?t.call(this,a++,o,r):r.apply(this,arguments))}var a=0,u=!1;o()}t.__esModule=!0,t.loopAsync=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){return s+e}function a(e,t){try{window.sessionStorage.setItem(o(e),JSON.stringify(t))}catch(n){if(n.name===f)return;if(n.name===c&&0===window.sessionStorage.length)return;throw n}}function u(e){var t=void 0;try{t=window.sessionStorage.getItem(o(e))}catch(n){if(n.name===f)return null}if(t)try{return JSON.parse(t)}catch(n){}return null}t.__esModule=!0,t.saveState=a,t.readState=u;var i=n(3),s=(r(i),"@@History/"),c="QuotaExceededError",f="SecurityError"},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){function t(e){return s.canUseDOM?void 0:i["default"](!1),n.listen(e)}var n=l["default"](a({getUserConfirmation:c.getUserConfirmation},e,{go:c.go}));return a({},n,{listen:t})}t.__esModule=!0;var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=n(2),i=r(u),s=n(10),c=n(16),f=n(17),l=r(f);t["default"]=o,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){return"string"==typeof e&&"/"===e.charAt(0)}function a(){var e=v.getHashPath();return o(e)?!0:(v.replaceHashPath("/"+e),!1)}function u(e,t,n){return e+(-1===e.indexOf("?")?"?":"&")+(t+"="+n)}function i(e,t){return e.replace(new RegExp("[?&]?"+t+"=[a-zA-Z0-9]+"),"")}function s(e,t){var n=e.match(new RegExp("\\?.*?\\b"+t+"=(.+?)\\b"));return n&&n[1]}function c(){function e(){var e=v.getHashPath(),t=void 0,n=void 0;return w?(t=s(e,w),e=i(e,w),t?n=m.readState(t):(n=null,t=j.createKey(),v.replaceHashPath(u(e,w,t)))):t=n=null,j.createLocation(e,n,void 0,t)}function t(t){function n(){a()&&r(e())}var r=t.transitionTo;return a(),v.addEventListener(window,"hashchange",n),function(){v.removeEventListener(window,"hashchange",n)}}function n(e){var t=e.basename,n=e.pathname,r=e.search,o=e.state,a=e.action,i=e.key;if(a!==h.POP){var s=(t||"")+n+r;w?(s=u(s,w,i),m.saveState(i,o)):e.key=e.state=null;var c=v.getHashPath();a===h.PUSH?c!==s&&(window.location.hash=s):c!==s&&v.replaceHashPath(s)}}function r(e){1===++R&&(E=t(j));var n=j.listenBefore(e);return function(){n(),0===--R&&E()}}function o(e){1===++R&&(E=t(j));var n=j.listen(e);return function(){n(),0===--R&&E()}}function c(e,t){j.pushState(e,t)}function l(e,t){j.replaceState(e,t)}function p(e){j.go(e)}function g(e){return"#"+j.createHref(e)}function _(e){1===++R&&(E=t(j)),j.registerTransitionHook(e)}function x(e){j.unregisterTransitionHook(e),0===--R&&E()}var P=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];y.canUseDOM?void 0:d["default"](!1);var w=P.queryKey;(void 0===w||w)&&(w="string"==typeof w?w:O);var j=b["default"](f({},P,{getCurrentLocation:e,finishTransition:n,saveState:m.saveState})),R=0,E=void 0;v.supportsGoWithoutReloadUsingHash();return f({},j,{listenBefore:r,listen:o,pushState:c,replaceState:l,go:p,createHref:g,registerTransitionHook:_,unregisterTransitionHook:x})}t.__esModule=!0;var f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=n(3),p=(r(l),n(2)),d=r(p),h=n(7),y=n(10),v=n(16),m=n(36),g=n(37),b=r(g),O="_k";t["default"]=c,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(){var e=arguments.length<=0||void 0===arguments[0]?"/":arguments[0],t=arguments.length<=1||void 0===arguments[1]?null:arguments[1],n=arguments.length<=2||void 0===arguments[2]?a.POP:arguments[2],r=arguments.length<=3||void 0===arguments[3]?null:arguments[3];"string"==typeof e&&(e=i["default"](e));var o=e.pathname||"/",u=e.search||"",s=e.hash||"";return{pathname:o,search:u,hash:s,state:t,action:n,key:r}}t.__esModule=!0;var a=n(7),u=n(11),i=r(u);t["default"]=o,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){return e.filter(function(e){return e.state}).reduce(function(e,t){return e[t.key]=t.state,e},{})}function a(){function e(e,t){v[e]=t}function t(e){return v[e]}function n(){var e=h[y],n=e.key,r=e.basename,o=e.pathname,a=e.search,u=(r||"")+o+(a||""),i=void 0;return n?i=t(n):(i=null,n=p.createKey(),e.key=n),p.createLocation(u,i,void 0,n)}function r(e){var t=y+e;return t>=0&&t<h.length}function a(e){if(e){r(e)?void 0:s["default"](!1),y+=e;var t=n();p.transitionTo(u({},t,{action:c.POP}))}}function i(t){switch(t.action){case c.PUSH:y+=1,y<h.length&&h.splice(y),h.push(t),e(t.key,t.state);break;case c.REPLACE:h[y]=t,e(t.key,t.state)}}var f=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];Array.isArray(f)?f={entries:f}:"string"==typeof f&&(f={entries:[f]});var p=l["default"](u({},f,{getCurrentLocation:n,finishTransition:i,saveState:e,go:a})),d=f,h=d.entries,y=d.current;"string"==typeof h?h=[h]:Array.isArray(h)||(h=["/"]),h=h.map(function(e){var t=p.createKey();return"string"==typeof e?{pathname:e,key:t}:"object"==typeof e&&e?u({},e,{key:t}):void s["default"](!1)}),null==y?y=h.length-1:y>=0&&y<h.length?void 0:s["default"](!1);var v=o(h);return p}t.__esModule=!0;var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(2),s=r(i),c=n(7),f=n(17),l=r(f);t["default"]=a,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){return function(){return e.apply(this,arguments)}}t.__esModule=!0;var a=n(3);r(a);t["default"]=o,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(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 a(e){return function(){function t(e){return b&&null==e.basename&&(0===e.pathname.indexOf(b)?(e.pathname=e.pathname.substring(b.length),e.basename=b,""===e.pathname&&(e.pathname="/")):e.basename=""),e}function n(e){if(!b)return e;"string"==typeof e&&(e=d["default"](e));var t=e.pathname,n="/"===b.slice(-1)?b:b+"/",r="/"===t.charAt(0)?t.slice(1):t,o=n+r;return u({},e,{pathname:o})}function r(e){return _.listenBefore(function(n,r){c["default"](e,t(n),r)})}function a(e){return _.listen(function(n){e(t(n))})}function s(e,t){_.pushState(e,n(t))}function f(e){s(null,e)}function p(e,t){_.replaceState(e,n(t))}function h(e){p(null,e)}function y(e){return _.createPath(n(e))}function v(e){return _.createHref(n(e))}function m(){return t(_.createLocation.apply(_,arguments))}var g=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],b=g.basename,O=o(g,["basename"]),_=e(O);if(null==b&&i.canUseDOM){var x=document.getElementsByTagName("base")[0];x&&(b=l["default"](x.href))}return u({},_,{listenBefore:r,listen:a,pushState:s,push:f,replaceState:p,replace:h,createPath:y,createHref:v,createLocation:m})}}t.__esModule=!0;var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(10),s=n(12),c=r(s),f=n(18),l=r(f),p=n(11),d=r(p);t["default"]=a,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(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 a(e){return f["default"].stringify(e,{arrayFormat:"brackets"}).replace(/%20/g,"+")}function u(e){return f["default"].parse(e.replace(/\+/g,"%20"))}function i(e){return function(){function t(e){return null==e.query&&(e.query=g(e.search.substring(1))),e}function n(e,t){var n=void 0;if(!t||""===(n=m(t)))return e;"string"==typeof e&&(e=h["default"](e));var r=e.search+(e.search?"&":"?")+n;return s({},e,{search:r})}function r(e){return O.listenBefore(function(n,r){p["default"](e,t(n),r)})}function i(e){return O.listen(function(n){e(t(n))})}function c(e,t,r){return O.pushState(e,n(t,r))}function f(e,t,r){return O.replaceState(e,n(t,r))}function l(e,t){return O.createPath(n(e,t))}function d(e,t){return O.createHref(n(e,t))}function y(){return t(O.createLocation.apply(O,arguments))}var v=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],m=v.stringifyQuery,g=v.parseQueryString,b=o(v,["stringifyQuery","parseQueryString"]),O=e(b);return"function"!=typeof m&&(m=a),"function"!=typeof g&&(g=u),s({},O,{listenBefore:r,listen:i,pushState:c,replaceState:f,createPath:l,createHref:d,createLocation:y})}}t.__esModule=!0;var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c=n(47),f=r(c),l=n(12),p=r(l),d=n(11),h=r(d);t["default"]=i,e.exports=t["default"]},function(e,t,n){function r(e){return null===e||void 0===e}function o(e){return e&&"object"==typeof e&&"number"==typeof e.length?"function"!=typeof e.copy||"function"!=typeof e.slice?!1:e.length>0&&"number"!=typeof e[0]?!1:!0:!1}function a(e,t,n){var a,f;if(r(e)||r(t))return!1;if(e.prototype!==t.prototype)return!1;if(s(e))return s(t)?(e=u.call(e),t=u.call(t),c(e,t,n)):!1;if(o(e)){if(!o(t))return!1;if(e.length!==t.length)return!1;for(a=0;a<e.length;a++)if(e[a]!==t[a])return!1;return!0}try{var l=i(e),p=i(t)}catch(d){return!1}if(l.length!=p.length)return!1;for(l.sort(),p.sort(),a=l.length-1;a>=0;a--)if(l[a]!=p[a])return!1;for(a=l.length-1;a>=0;a--)if(f=l[a],!c(e[f],t[f],n))return!1;return typeof e==typeof t}var u=Array.prototype.slice,i=n(46),s=n(45),c=e.exports=function(e,t,n){return n||(n={}),e===t?!0:e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||"object"!=typeof e&&"object"!=typeof t?n.strict?e===t:e==t:a(e,t,n)}},function(e,t){function n(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function r(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Object.prototype.hasOwnProperty.call(e,"callee")&&!Object.prototype.propertyIsEnumerable.call(e,"callee")||!1}var o="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();t=e.exports=o?n:r,t.supported=n,t.unsupported=r},function(e,t){function n(e){var t=[];for(var n in e)t.push(n);return t}t=e.exports="function"==typeof Object.keys?Object.keys:n,t.shim=n},function(e,t,n){var r=n(49),o=n(48);e.exports={stringify:r,parse:o}},function(e,t,n){var r=n(19),o={delimiter:"&",depth:5,arrayLimit:20,parameterLimit:1e3,strictNullHandling:!1,plainObjects:!1,allowPrototypes:!1};o.parseValues=function(e,t){for(var n={},o=e.split(t.delimiter,t.parameterLimit===1/0?void 0:t.parameterLimit),a=0,u=o.length;u>a;++a){var i=o[a],s=-1===i.indexOf("]=")?i.indexOf("="):i.indexOf("]=")+1;if(-1===s)n[r.decode(i)]="",t.strictNullHandling&&(n[r.decode(i)]=null);else{var c=r.decode(i.slice(0,s)),f=r.decode(i.slice(s+1));Object.prototype.hasOwnProperty.call(n,c)?n[c]=[].concat(n[c]).concat(f):n[c]=f}}return n},o.parseObject=function(e,t,n){if(!e.length)return t;var r,a=e.shift();if("[]"===a)r=[],r=r.concat(o.parseObject(e,t,n));else{r=n.plainObjects?Object.create(null):{};var u="["===a[0]&&"]"===a[a.length-1]?a.slice(1,a.length-1):a,i=parseInt(u,10),s=""+i;!isNaN(i)&&a!==u&&s===u&&i>=0&&n.parseArrays&&i<=n.arrayLimit?(r=[],r[i]=o.parseObject(e,t,n)):r[u]=o.parseObject(e,t,n)}return r},o.parseKeys=function(e,t,n){if(e){n.allowDots&&(e=e.replace(/\.([^\.\[]+)/g,"[$1]"));var r=/^([^\[\]]*)/,a=/(\[[^\[\]]*\])/g,u=r.exec(e),i=[];if(u[1]){if(!n.plainObjects&&Object.prototype.hasOwnProperty(u[1])&&!n.allowPrototypes)return;i.push(u[1])}for(var s=0;null!==(u=a.exec(e))&&s<n.depth;)++s,(n.plainObjects||!Object.prototype.hasOwnProperty(u[1].replace(/\[|\]/g,""))||n.allowPrototypes)&&i.push(u[1]);return u&&i.push("["+e.slice(u.index)+"]"),o.parseObject(i,t,n)}},e.exports=function(e,t){if(t=t||{},t.delimiter="string"==typeof t.delimiter||r.isRegExp(t.delimiter)?t.delimiter:o.delimiter,t.depth="number"==typeof t.depth?t.depth:o.depth,t.arrayLimit="number"==typeof t.arrayLimit?t.arrayLimit:o.arrayLimit,t.parseArrays=t.parseArrays!==!1,t.allowDots=t.allowDots!==!1,t.plainObjects="boolean"==typeof t.plainObjects?t.plainObjects:o.plainObjects,t.allowPrototypes="boolean"==typeof t.allowPrototypes?t.allowPrototypes:o.allowPrototypes,t.parameterLimit="number"==typeof t.parameterLimit?t.parameterLimit:o.parameterLimit,t.strictNullHandling="boolean"==typeof t.strictNullHandling?t.strictNullHandling:o.strictNullHandling,""===e||null===e||"undefined"==typeof e)return t.plainObjects?Object.create(null):{};for(var n="string"==typeof e?o.parseValues(e,t):e,a=t.plainObjects?Object.create(null):{},u=Object.keys(n),i=0,s=u.length;s>i;++i){var c=u[i],f=o.parseKeys(c,n[c],t);a=r.merge(a,f,t)}return r.compact(a)}},function(e,t,n){var r=n(19),o={delimiter:"&",arrayPrefixGenerators:{brackets:function(e,t){return e+"[]"},indices:function(e,t){return e+"["+t+"]"},repeat:function(e,t){return e}},strictNullHandling:!1};o.stringify=function(e,t,n,a,u){if("function"==typeof u)e=u(t,e);else if(r.isBuffer(e))e=e.toString();else if(e instanceof Date)e=e.toISOString();else if(null===e){if(a)return r.encode(t);e=""}if("string"==typeof e||"number"==typeof e||"boolean"==typeof e)return[r.encode(t)+"="+r.encode(e)];var i=[];if("undefined"==typeof e)return i;for(var s=Array.isArray(u)?u:Object.keys(e),c=0,f=s.length;f>c;++c){var l=s[c];i=Array.isArray(e)?i.concat(o.stringify(e[l],n(t,l),n,a,u)):i.concat(o.stringify(e[l],t+"["+l+"]",n,a,u))}return i},e.exports=function(e,t){t=t||{};var n,r,a="undefined"==typeof t.delimiter?o.delimiter:t.delimiter,u="boolean"==typeof t.strictNullHandling?t.strictNullHandling:o.strictNullHandling;"function"==typeof t.filter?(r=t.filter,e=r("",e)):Array.isArray(t.filter)&&(n=r=t.filter);var i=[];if("object"!=typeof e||null===e)return"";var s;s=t.arrayFormat in o.arrayPrefixGenerators?t.arrayFormat:"indices"in t?t.indices?"indices":"repeat":"indices";var c=o.arrayPrefixGenerators[s];n||(n=Object.keys(e));for(var f=0,l=n.length;l>f;++f){var p=n[f];i=i.concat(o.stringify(e[p],p,c,u,r))}return i.join(a)}}])});

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc