Socket
Socket
Sign inDemoInstall

react-router

Package Overview
Dependencies
Maintainers
2
Versions
539
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-rc4 to 1.0.0

CHANGES.md

37

CONTRIBUTING.md

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

### Tests
## Tests

@@ -7,30 +7,21 @@ All commits that fix bugs or add features need a test.

### Commit Subjects for Public API Changes
## Changelog
If your patch **changes the API or fixes a bug** please use one of the
following prefixes in your commit subject:
All commits that change or add to the API must be done in a pull request
that also:
- `[fixed] ...`
- `[changed] ...`
- `[added] ...`
- `[removed] ...`
- Add an entry to `CHANGES.md` with clear steps for updating code for
changed or removed API.
- Updates examples
- Updates the docs
That ensures the subject line of your commit makes it into the
auto-generated changelog. Do not use these tags if your change doesn't
fix a bug and doesn't change the public API.
## API Deprecation
Commits with changed, added, or removed, should probably be reviewed by
another collaborator.
Introduce new API in minor versions, remove old APIs in major versions.
#### When using `[changed]` or `[removed]`...
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
`<Router/>` would log a warning to the console. When 3.0 is released,
`<Router/>` would be completely removed.
Please include an upgrade path with example code in the commit message.
If it doesn't make sense to do this, then it doesn't make sense to use
`[changed]` or `[removed]` :)
### Docs
Please update the docs with any API changes, the code and docs should
always be in sync.
### Development

@@ -37,0 +28,0 @@

@@ -17,2 +17,3 @@ # API Reference

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

@@ -179,12 +180,11 @@ * [Mixins](#mixins)

##### `components`
Routes can define multiple components as an object of `name:component`
Routes can define one or more named components as an object of `name:component`
pairs to be rendered when the path matches the URL. They can be rendered
by the parent route component with `this.props.children[name]`.
by the parent route component with `this.props[name]`.
```js
// think of it outside the context of the router, if you had pluggable
// portions of your `render`, you might do it like this
<App children={{main: <Users/>, sidebar: <UsersSidebar/>}}/>
// Think of it outside the context of the router - if you had pluggable
// portions of your `render`, you might do it like this:
// <App main={<Users />} sidebar={<UsersSidebar />} />
// So with the router it looks like this:
const routes = (

@@ -201,3 +201,3 @@ <Route component={App}>

render () {
const { main, sidebar } = this.props.children
const { main, sidebar } = this.props
return (

@@ -262,3 +262,3 @@ <div>

##### `onEnter(nextState, replaceState, callback?)`
Called when a route is about to be entered. It provides the next router state and a function to redirect to another path.
Called when a route is about to be entered. It provides the next router state and a function to redirect to another path. `this` will be the route instance that triggered the hook.

@@ -415,3 +415,3 @@ If `callback` is listed as a 3rd argument, this hook will run asynchronously, and the transition will block until `callback` is called.

#### `children`
The matched child route elements to be rendered.
The matched child route element to be rendered. If the route has [named components](https://github.com/rackt/react-router/blob/master/docs/API.md#named-components) then this will be undefined, and the components will instead be available as direct properties on `this.props`.

@@ -442,3 +442,3 @@ ##### Example

### Named Components
When a route has multiple components, the child elements are available by name on `this.props.children`. All route components can participate in the nesting.
When a route has one or more named components, the child elements are available by name on `this.props`. In this case `this.props.children` will be undefined. All route components can participate in the nesting.

@@ -465,7 +465,7 @@ #### Example

{/* this will either be <Groups> or <Users> */}
{this.props.children.main}
{this.props.main}
</div>
<div className="Sidebar">
{/* this will either be <GroupsSidebar> or <UsersSidebar> */}
{this.props.children.sidebar}
{this.props.sidebar}
</div>

@@ -482,4 +482,4 @@ </div>

{/* if at "/users/123" this will be <Profile> */}
{/* UsersSidebar will also get <Profile> as this.props.children,
you pick where it renders */}
{/* UsersSidebar will also get <Profile> as this.props.children.
You can pick where it renders */}
{this.props.children}

@@ -493,3 +493,2 @@ </div>

## Mixins

@@ -496,0 +495,0 @@

@@ -29,17 +29,4 @@ # Confirming Navigation

If you are using ES6 classes for your components, you can use [react-mixin](https://github.com/brigand/react-mixin) to add the `Lifecycle` mixin to your component.
If you are using ES6 classes for your components, you can use [react-mixin](https://github.com/brigand/react-mixin) to add the `Lifecycle` mixin to your component, but we recommend using `React.createClass` for components that set up router lifecycle hooks.
```js
import reactMixin from 'react-mixin'
import { Lifecycle } from 'react-router'
class Foo extends Component { /* ... */ }
reactMixin(Foo.prototype, Lifecycle)
// or
@reactMixin.decorate(Lifecycle)
class Bar extends Component { /* ... */ }
```
If you need a [`routerWillLeave`](/docs/API.md#routerwillleavenextlocation) hook in a deeply nested component, simply use the [`RouteContext`](/docs/API.md#routecontext-mixin) mixin in your [route component](/docs/Glossary.md#routecomponent) to put the `route` in context.

@@ -46,0 +33,0 @@

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

var _React$PropTypes = _react2['default'].PropTypes;
var bool = _React$PropTypes.bool;
var func = _React$PropTypes.func;
var func = _react2['default'].PropTypes.func;

@@ -67,5 +65,5 @@ /**

path: _PropTypes.falsy,
ignoreScrollBehavior: bool,
component: _PropTypes.component,
components: _PropTypes.components,
getComponent: func,
getComponents: func

@@ -72,0 +70,0 @@ },

@@ -79,2 +79,3 @@ 'use strict';

// If target prop is set (e.g. to "_blank") let browser handle link.
/* istanbul ignore if: untestable with Karma */
if (this.props.target) {

@@ -81,0 +82,0 @@ if (!allowTransition) event.preventDefault();

@@ -27,3 +27,2 @@ 'use strict';

var string = _React$PropTypes.string;
var bool = _React$PropTypes.bool;
var func = _React$PropTypes.func;

@@ -65,5 +64,5 @@

path: string,
ignoreScrollBehavior: bool,
component: _PropTypes.component,
components: _PropTypes.components,
getComponent: func,
getComponents: func

@@ -70,0 +69,0 @@ },

{
"name": "react-router",
"version": "1.0.0-rc4",
"version": "1.0.0",
"description": "A complete routing library for React.js",
"files": [
"*.md",
"docs",
"lib",
"npm-scripts",
"umd"
],
"main": "lib/index",

@@ -16,3 +23,3 @@ "repository": {

"build-min": "NODE_ENV=production webpack -p modules/index.js umd/ReactRouter.min.js",
"lint": "eslint modules examples",
"lint": "eslint modules examples *.js",
"start": "node examples/server.js",

@@ -57,3 +64,2 @@ "test": "npm run lint && karma start",

"karma-coverage": "^0.5.3",
"karma-firefox-launcher": "^0.1.6",
"karma-mocha": "^0.2.0",

@@ -71,3 +77,2 @@ "karma-mocha-reporter": "^1.1.1",

"react-static-container": "^1.0.0",
"rf-changelog": "^0.4.0",
"style-loader": "^0.12.4",

@@ -74,0 +79,0 @@ "webpack": "^1.4.13",

<img src="https://rackt.github.io/react-router/img/vertical.png" width="300">
[![npm package](https://img.shields.io/npm/v/react-router.svg?style=flat-square)](https://www.npmjs.org/package/react-router)
[![build status](https://img.shields.io/travis/rackt/react-router/master.svg?style=flat-square)](https://travis-ci.org/rackt/react-router)
[![Coverage Status](https://img.shields.io/coveralls/rackt/react-router.svg?style=flat-square)](https://coveralls.io/github/rackt/react-router)
[![#rackt on freenode](https://img.shields.io/badge/irc-rackt_on_freenode-61DAFB.svg?style=flat-square)](https://webchat.freenode.net/)
[![Travis][build-badge]][build]
[![npm package][npm-badge]][npm]
[![Coveralls][coveralls-badge]][coveralls]
[![Discord][discord-badge]][discord]

@@ -20,3 +20,2 @@ A complete routing library for React

- [Changelog](/CHANGELOG.md)
- [#react-router @ Reactiflux](https://discord.gg/0ZcbPKXt5bYaNQ46)
- [Stack Overflow](http://stackoverflow.com/questions/tagged/react-router)

@@ -146,6 +145,23 @@

### Thanks
Thanks to [our sponsors](/SPONSORS.md) for supporting the development of
React Router.
React Router was initially inspired by Ember's fantastic router. Many thanks to the Ember team.
Also, thanks to [BrowserStack](https://www.browserstack.com/) for providing the infrastructure that allows us to run our build in real browsers.
[build-badge]: https://img.shields.io/travis/rackt/react-router/master.svg?style=flat-square
[build]: https://travis-ci.org/rackt/react-router
[npm-badge]: https://img.shields.io/npm/v/react-router.svg?style=flat-square
[npm]: https://www.npmjs.org/package/react-router
[coveralls-badge]: https://img.shields.io/coveralls/rackt/react-router/master.svg?style=flat-square
[coveralls]: https://coveralls.io/github/rackt/react-router
[discord-badge]: https://img.shields.io/badge/Discord-join%20chat%20%E2%86%92-738bd7.svg?style=flat-square
[discord]: https://discord.gg/0ZcbPKXt5bYaNQ46

@@ -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 S=n(32),M=r(S);t.match=M["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&&S(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(){S(-1)}function v(){S(1)}function b(){return o(M)}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,S=E.go,M=E.keyLength,C=E.getUserConfirmation;"number"!=typeof M&&(M=g);var L=[],H=[],q=[],N=void 0,U=void 0;return{listenBefore:e,listen:r,transitionTo:s,pushState:c,replaceState:p,go:S,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,h=y.bool,v=y.func,m=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,ignoreScrollBehavior:h,component:d.component,components:d.components,getComponents:v},enumerable:!0}]),t}(l.Component);t["default"]=m,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.bool,v=d.func,m=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,ignoreScrollBehavior:h,component:p.component,components:p.components,getComponents:v},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}}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(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)}}])});

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

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc