Socket
Socket
Sign inDemoInstall

react-router-dom

Package Overview
Dependencies
Maintainers
2
Versions
412
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-router-dom - npm Package Compare versions

Comparing version 4.4.0-beta.3 to 4.4.0-beta.4

warnAboutDeprecatedCJSRequire.js

2

cjs/react-router-dom.min.js

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

"use strict";function _interopDefault(t){return t&&"object"==typeof t&&"default"in t?t.default:t}Object.defineProperty(exports,"__esModule",{value:!0});var React=_interopDefault(require("react")),commonjsGlobal="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function unwrapExports(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function createCommonjsModule(t,e){return t(e={exports:{}},e.exports),e.exports}var getOwnPropertySymbols=Object.getOwnPropertySymbols,hasOwnProperty=Object.prototype.hasOwnProperty,propIsEnumerable=Object.prototype.propertyIsEnumerable;function toObject(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function shouldUseNative(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(t){r[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}var objectAssign=shouldUseNative()?Object.assign:function(t,e){for(var n,r,o=toObject(t),a=1;a<arguments.length;a++){for(var i in n=Object(arguments[a]))hasOwnProperty.call(n,i)&&(o[i]=n[i]);if(getOwnPropertySymbols){r=getOwnPropertySymbols(n);for(var c=0;c<r.length;c++)propIsEnumerable.call(n,r[c])&&(o[r[c]]=n[r[c]])}}return o},ReactPropTypesSecret="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",ReactPropTypesSecret_1=ReactPropTypesSecret;function emptyFunction(){}var factoryWithThrowingShims=function(){function t(t,e,n,r,o,a){if(a!==ReactPropTypesSecret_1){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e};return n.checkPropTypes=emptyFunction,n.PropTypes=n,n},propTypes=createCommonjsModule(function(t){t.exports=factoryWithThrowingShims()}),warning=function(){},warning_1=warning,invariant=function(t,e,n,r,o,a,i,c){if(!t){var s;if(void 0===e)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,o,a,i,c],p=0;(s=new Error(e.replace(/%s/g,function(){return u[p++]}))).name="Invariant Violation"}throw s.framesToPop=1,s}},invariant_1=invariant;function isAbsolute(t){return"/"===t.charAt(0)}function spliceOne(t,e){for(var n=e,r=n+1,o=t.length;r<o;n+=1,r+=1)t[n]=t[r];t.pop()}function resolvePathname(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=t&&t.split("/")||[],r=e&&e.split("/")||[],o=t&&isAbsolute(t),a=e&&isAbsolute(e),i=o||a;if(t&&isAbsolute(t)?r=n:n.length&&(r.pop(),r=r.concat(n)),!r.length)return"/";var c=void 0;if(r.length){var s=r[r.length-1];c="."===s||".."===s||""===s}else c=!1;for(var u=0,p=r.length;p>=0;p--){var l=r[p];"."===l?spliceOne(r,p):".."===l?(spliceOne(r,p),u++):u&&(spliceOne(r,p),u--)}if(!i)for(;u--;u)r.unshift("..");!i||""===r[0]||r[0]&&isAbsolute(r[0])||r.unshift("");var h=r.join("/");return c&&"/"!==h.substr(-1)&&(h+="/"),h}var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function valueEqual(t,e){if(t===e)return!0;if(null==t||null==e)return!1;if(Array.isArray(t))return Array.isArray(e)&&t.length===e.length&&t.every(function(t,n){return valueEqual(t,e[n])});var n=void 0===t?"undefined":_typeof(t);if(n!==(void 0===e?"undefined":_typeof(e)))return!1;if("object"===n){var r=t.valueOf(),o=e.valueOf();if(r!==t||o!==e)return valueEqual(r,o);var a=Object.keys(t),i=Object.keys(e);return a.length===i.length&&a.every(function(n){return valueEqual(t[n],e[n])})}return!1}var parsePath=function(t){var e=t||"/",n="",r="",o=e.indexOf("#");-1!==o&&(r=e.substr(o),e=e.substr(0,o));var a=e.indexOf("?");return-1!==a&&(n=e.substr(a),e=e.substr(0,a)),{pathname:e,search:"?"===n?"":n,hash:"#"===r?"":r}},createPath=function(t){var e=t.pathname,n=t.search,r=t.hash,o=e||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o},_extends=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},createLocation=function(t,e,n,r){var o=void 0;"string"==typeof t?(o=parsePath(t)).state=e:(void 0===(o=_extends({},t)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==e&&void 0===o.state&&(o.state=e));try{o.pathname=decodeURI(o.pathname)}catch(t){throw t instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):t}return n&&(o.key=n),r?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=resolvePathname(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o},locationsAreEqual=function(t,e){return t.pathname===e.pathname&&t.search===e.search&&t.hash===e.hash&&t.key===e.key&&valueEqual(t.state,e.state)},createTransitionManager=function(){var t=null,e=[];return{setPrompt:function(e){return t=e,function(){t===e&&(t=null)}},confirmTransitionTo:function(e,n,r,o){if(null!=t){var a="function"==typeof t?t(e,n):t;"string"==typeof a?"function"==typeof r?r(a,o):o(!0):o(!1!==a)}else o(!0)},appendListener:function(t){var n=!0,r=function(){n&&t.apply(void 0,arguments)};return e.push(r),function(){n=!1,e=e.filter(function(t){return t!==r})}},notifyListeners:function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];e.forEach(function(t){return t.apply(void 0,n)})}}},canUseDOM=!("undefined"==typeof window||!window.document||!window.document.createElement),_typeof$2="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_extends$3=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},clamp=function(t,e,n){return Math.min(Math.max(t,e),n)},createMemoryHistory=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.getUserConfirmation,n=t.initialEntries,r=void 0===n?["/"]:n,o=t.initialIndex,a=void 0===o?0:o,i=t.keyLength,c=void 0===i?6:i,s=createTransitionManager(),u=function(t){_extends$3(y,t),y.length=y.entries.length,s.notifyListeners(y.location,y.action)},p=function(){return Math.random().toString(36).substr(2,c)},l=clamp(a,0,r.length-1),h=r.map(function(t){return createLocation(t,void 0,"string"==typeof t?p():t.key||p())}),f=createPath,d=function(t){var n=clamp(y.index+t,0,y.entries.length-1),r=y.entries[n];s.confirmTransitionTo(r,"POP",e,function(t){t?u({action:"POP",location:r,index:n}):u()})},y={length:h.length,action:"POP",location:h[l],index:l,entries:h,createHref:f,push:function(t,n){warning_1(!("object"===(void 0===t?"undefined":_typeof$2(t))&&void 0!==t.state&&void 0!==n),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var r=createLocation(t,n,p(),y.location);s.confirmTransitionTo(r,"PUSH",e,function(t){if(t){var e=y.index+1,n=y.entries.slice(0);n.length>e?n.splice(e,n.length-e,r):n.push(r),u({action:"PUSH",location:r,index:e,entries:n})}})},replace:function(t,n){warning_1(!("object"===(void 0===t?"undefined":_typeof$2(t))&&void 0!==t.state&&void 0!==n),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var r=createLocation(t,n,p(),y.location);s.confirmTransitionTo(r,"REPLACE",e,function(t){t&&(y.entries[y.index]=r,u({action:"REPLACE",location:r}))})},go:d,goBack:function(){return d(-1)},goForward:function(){return d(1)},canGo:function(t){var e=y.index+t;return e>=0&&e<y.entries.length},block:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return s.setPrompt(t)},listen:function(t){return s.appendListener(t)}};return y},key="__global_unique_id__",gud=function(){return commonjsGlobal[key]=(commonjsGlobal[key]||0)+1};function makeEmptyFunction(t){return function(){return t}}var emptyFunction$1=function(){};emptyFunction$1.thatReturns=makeEmptyFunction,emptyFunction$1.thatReturnsFalse=makeEmptyFunction(!1),emptyFunction$1.thatReturnsTrue=makeEmptyFunction(!0),emptyFunction$1.thatReturnsNull=makeEmptyFunction(null),emptyFunction$1.thatReturnsThis=function(){return this},emptyFunction$1.thatReturnsArgument=function(t){return t};var emptyFunction_1=emptyFunction$1,warning$2=emptyFunction_1,warning_1$2=warning$2,implementation=createCommonjsModule(function(t,e){e.__esModule=!0,o(React);var n=o(propTypes),r=o(gud);function o(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function c(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}o(warning_1$2);var s=1073741823;e.default=function(t,e){var o,u,p="__create-react-context-"+(0,r.default)()+"__",l=function(t){function n(){var e,r,o,c;a(this,n);for(var s=arguments.length,u=Array(s),p=0;p<s;p++)u[p]=arguments[p];return e=r=i(this,t.call.apply(t,[this].concat(u))),r.emitter=(o=r.props.value,c=[],{on:function(t){c.push(t)},off:function(t){c=c.filter(function(e){return e!==t})},get:function(){return o},set:function(t,e){o=t,c.forEach(function(t){return t(o,e)})}}),i(r,e)}return c(n,t),n.prototype.getChildContext=function(){var t;return(t={})[p]=this.emitter,t},n.prototype.componentWillReceiveProps=function(t){if(this.props.value!==t.value){var n=this.props.value,r=t.value,o=void 0;((a=n)===(i=r)?0!==a||1/a==1/i:a!=a&&i!=i)?o=0:(o="function"==typeof e?e(n,r):s,0!=(o|=0)&&this.emitter.set(t.value,o))}var a,i},n.prototype.render=function(){return this.props.children},n}(React.Component);l.childContextTypes=((o={})[p]=n.default.object.isRequired,o);var h=function(e){function n(){var t,r;a(this,n);for(var o=arguments.length,c=Array(o),s=0;s<o;s++)c[s]=arguments[s];return t=r=i(this,e.call.apply(e,[this].concat(c))),r.state={value:r.getValue()},r.onUpdate=function(t,e){0!=((0|r.observedBits)&e)&&r.setState({value:r.getValue()})},i(r,t)}return c(n,e),n.prototype.componentWillReceiveProps=function(t){var e=t.observedBits;this.observedBits=void 0===e||null===e?s:e},n.prototype.componentDidMount=function(){this.context[p]&&this.context[p].on(this.onUpdate);var t=this.props.observedBits;this.observedBits=void 0===t||null===t?s:t},n.prototype.componentWillUnmount=function(){this.context[p]&&this.context[p].off(this.onUpdate)},n.prototype.getValue=function(){return this.context[p]?this.context[p].get():t},n.prototype.render=function(){return(t=this.props.children,Array.isArray(t)?t[0]:t)(this.state.value);var t},n}(React.Component);return h.contextTypes=((u={})[p]=n.default.object,u),{Provider:l,Consumer:h}},t.exports=e.default});unwrapExports(implementation);var lib=createCommonjsModule(function(t,e){e.__esModule=!0;var n=o(React),r=o(implementation);function o(t){return t&&t.__esModule?t:{default:t}}e.default=n.default.createContext||r.default,t.exports=e.default}),createContext=unwrapExports(lib),context=createContext();context.Provider.displayName="Router.Provider",context.Consumer.displayName="Router.Consumer";var classCallCheck=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},_extends$4=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},inherits=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)},objectWithoutProperties=function(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n},possibleConstructorReturn=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e};function getContext(t,e){return{history:t.history,location:e.location,match:Router.computeRootMatch(e.location.pathname),staticContext:t.staticContext}}var Router=function(t){function e(n){classCallCheck(this,e);var r=possibleConstructorReturn(this,t.call(this,n));return r.state={location:n.history.location},r._isMounted=!1,r._pendingLocation=null,n.staticContext||(r.unlisten=n.history.listen(function(t){r._isMounted?r.setState({location:t}):r._pendingLocation=t})),r}return inherits(e,t),e.computeRootMatch=function(t){return{path:"/",url:"/",params:{},isExact:"/"===t}},e.prototype.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},e.prototype.componentWillUnmount=function(){this.unlisten&&this.unlisten()},e.prototype.render=function(){var t=getContext(this.props,this.state);return React.createElement(context.Provider,{children:this.props.children||null,value:t})},e}(React.Component);React.createContext||(Router.childContextTypes={router:propTypes.object.isRequired},Router.prototype.getChildContext=function(){return{router:getContext(this.props,this.state)}});var MemoryRouter=function(t){function e(){var n,r;classCallCheck(this,e);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=possibleConstructorReturn(this,t.call.apply(t,[this].concat(a))),r.history=createMemoryHistory(r.props),possibleConstructorReturn(r,n)}return inherits(e,t),e.prototype.render=function(){return React.createElement(Router,{history:this.history,children:this.props.children})},e}(React.Component),Lifecycle=function(t){function e(){return classCallCheck(this,e),possibleConstructorReturn(this,t.apply(this,arguments))}return inherits(e,t),e.prototype.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},e.prototype.componentDidUpdate=function(t){this.props.onUpdate&&this.props.onUpdate.call(this,this,t)},e.prototype.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},e.prototype.render=function(){return null},e}(React.Component);function Prompt(t){return React.createElement(context.Consumer,null,function(e){if(e||invariant_1(!1),!t.when||e.staticContext)return null;var n=e.history.block,r=t.message;return React.createElement(Lifecycle,{onMount:function(t){t.release=n(r)},onUpdate:function(t,e){e.message!==r&&(t.release(),t.release=n(r))},onUnmount:function(t){t.release()}})})}Prompt.defaultProps={when:!0};var isarray=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)},pathToRegexp_1=pathToRegexp,parse_1=parse,compile_1=compile,tokensToFunction_1=tokensToFunction,tokensToRegExp_1=tokensToRegExp,PATH_REGEXP=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function parse(t,e){for(var n,r=[],o=0,a=0,i="",c=e&&e.delimiter||"/";null!=(n=PATH_REGEXP.exec(t));){var s=n[0],u=n[1],p=n.index;if(i+=t.slice(a,p),a=p+s.length,u)i+=u[1];else{var l=t[a],h=n[2],f=n[3],d=n[4],y=n[5],m=n[6],v=n[7];i&&(r.push(i),i="");var g=null!=h&&null!=l&&l!==h,b="+"===m||"*"===m,w="?"===m||"*"===m,P=n[2]||c,R=d||y;r.push({name:f||o++,prefix:h||"",delimiter:P,optional:w,repeat:b,partial:g,asterisk:!!v,pattern:R?escapeGroup(R):v?".*":"[^"+escapeString(P)+"]+?"})}}return a<t.length&&(i+=t.substr(a)),i&&r.push(i),r}function compile(t,e){return tokensToFunction(parse(t,e))}function encodeURIComponentPretty(t){return encodeURI(t).replace(/[\/?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function encodeAsterisk(t){return encodeURI(t).replace(/[?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function tokensToFunction(t){for(var e=new Array(t.length),n=0;n<t.length;n++)"object"==typeof t[n]&&(e[n]=new RegExp("^(?:"+t[n].pattern+")$"));return function(n,r){for(var o="",a=n||{},i=(r||{}).pretty?encodeURIComponentPretty:encodeURIComponent,c=0;c<t.length;c++){var s=t[c];if("string"!=typeof s){var u,p=a[s.name];if(null==p){if(s.optional){s.partial&&(o+=s.prefix);continue}throw new TypeError('Expected "'+s.name+'" to be defined')}if(isarray(p)){if(!s.repeat)throw new TypeError('Expected "'+s.name+'" to not repeat, but received `'+JSON.stringify(p)+"`");if(0===p.length){if(s.optional)continue;throw new TypeError('Expected "'+s.name+'" to not be empty')}for(var l=0;l<p.length;l++){if(u=i(p[l]),!e[c].test(u))throw new TypeError('Expected all "'+s.name+'" to match "'+s.pattern+'", but received `'+JSON.stringify(u)+"`");o+=(0===l?s.prefix:s.delimiter)+u}}else{if(u=s.asterisk?encodeAsterisk(p):i(p),!e[c].test(u))throw new TypeError('Expected "'+s.name+'" to match "'+s.pattern+'", but received "'+u+'"');o+=s.prefix+u}}else o+=s}return o}}function escapeString(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function escapeGroup(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function attachKeys(t,e){return t.keys=e,t}function flags(t){return t.sensitive?"":"i"}function regexpToRegexp(t,e){var n=t.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)e.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return attachKeys(t,e)}function arrayToRegexp(t,e,n){for(var r=[],o=0;o<t.length;o++)r.push(pathToRegexp(t[o],e,n).source);return attachKeys(new RegExp("(?:"+r.join("|")+")",flags(n)),e)}function stringToRegexp(t,e,n){return tokensToRegExp(parse(t,n),e,n)}function tokensToRegExp(t,e,n){isarray(e)||(n=e||n,e=[]);for(var r=(n=n||{}).strict,o=!1!==n.end,a="",i=0;i<t.length;i++){var c=t[i];if("string"==typeof c)a+=escapeString(c);else{var s=escapeString(c.prefix),u="(?:"+c.pattern+")";e.push(c),c.repeat&&(u+="(?:"+s+u+")*"),a+=u=c.optional?c.partial?s+"("+u+")?":"(?:"+s+"("+u+"))?":s+"("+u+")"}}var p=escapeString(n.delimiter||"/"),l=a.slice(-p.length)===p;return r||(a=(l?a.slice(0,-p.length):a)+"(?:"+p+"(?=$))?"),a+=o?"$":r&&l?"":"(?="+p+"|$)",attachKeys(new RegExp("^"+a,flags(n)),e)}function pathToRegexp(t,e,n){return isarray(e)||(n=e||n,e=[]),n=n||{},t instanceof RegExp?regexpToRegexp(t,e):isarray(t)?arrayToRegexp(t,e,n):stringToRegexp(t,e,n)}pathToRegexp_1.parse=parse_1,pathToRegexp_1.compile=compile_1,pathToRegexp_1.tokensToFunction=tokensToFunction_1,pathToRegexp_1.tokensToRegExp=tokensToRegExp_1;var cache={},cacheLimit=1e4,cacheCount=0;function compilePath(t){if(cache[t])return cache[t];var e=pathToRegexp_1.compile(t);return cacheCount<cacheLimit&&(cache[t]=e,cacheCount++),e}function generatePath(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"/"===t?t:compilePath(t)(e,{pretty:!0})}function Redirect(t){return React.createElement(context.Consumer,null,function(e){e||invariant_1(!1);var n=t.push?e.history.push:e.history.replace,r=createLocation(t.computedMatch?"string"==typeof t.to?generatePath(t.to,t.computedMatch.params):Object.assign({},t.to,{pathname:generatePath(t.to.pathname,t.computedMatch.params)}):t.to);return e.staticContext?(n(r),null):React.createElement(Lifecycle,{onMount:function(){n(r)},onUpdate:function(t,e){locationsAreEqual(e.to,r)||n(r)},to:r})})}Redirect.defaultProps={push:!1};var cache$1={},cacheLimit$1=1e4,cacheCount$1=0;function compilePath$1(t,e){var n=""+e.end+e.strict+e.sensitive,r=cache$1[n]||(cache$1[n]={});if(r[t])return r[t];var o=[],a={regexp:pathToRegexp_1(t,o,e),keys:o};return cacheCount$1<cacheLimit$1&&(r[t]=a,cacheCount$1++),a}function matchPath(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"string"==typeof e&&(e={path:e});var n=e,r=n.path,o=n.exact,a=void 0!==o&&o,i=n.strict,c=void 0!==i&&i,s=n.sensitive,u=compilePath$1(r,{end:a,strict:c,sensitive:void 0!==s&&s}),p=u.regexp,l=u.keys,h=p.exec(t);if(!h)return null;var f=h[0],d=h.slice(1),y=t===f;return a&&!y?null:{path:r,url:"/"===r&&""===f?"/":f,isExact:y,params:l.reduce(function(t,e,n){return t[e.name]=d[n],t},{})}}function isEmptyChildren(t){return 0===React.Children.count(t)}function getContext$1(t,e){var n=t.location||e.location,r=t.computedMatch?t.computedMatch:t.path?matchPath(n.pathname,t):e.match;return Object.assign({},e,{location:n,match:r})}var Route=function(t){function e(){return classCallCheck(this,e),possibleConstructorReturn(this,t.apply(this,arguments))}return inherits(e,t),e.prototype.render=function(){var t=this;return React.createElement(context.Consumer,null,function(e){e||invariant_1(!1);var n=getContext$1(t.props,e),r=t.props,o=r.children,a=r.component,i=r.render;return Array.isArray(o)&&0===o.length&&(o=null),"function"==typeof o&&void 0===(o=o(n))&&(o=null),React.createElement(context.Provider,{value:n},o&&!isEmptyChildren(o)?o:n.match?a?React.createElement(a,n):i?i(n):null:null)})},e}(React.Component);function addLeadingSlash$1(t){return"/"===t.charAt(0)?t:"/"+t}function addBasename(t,e){return t?Object.assign({},e,{pathname:addLeadingSlash$1(t)+e.pathname}):e}function stripBasename$1(t,e){if(!t)return e;var n=addLeadingSlash$1(t);return 0!==e.pathname.indexOf(n)?e:Object.assign({},e,{pathname:e.pathname.substr(n.length)})}function createURL(t){return"string"==typeof t?t:createPath(t)}function staticHandler(t){return function(){invariant_1(!1)}}function noop(){}React.createContext||(Route.contextTypes={router:propTypes.object.isRequired},Route.childContextTypes={router:propTypes.object.isRequired},Route.prototype.getChildContext=function(){this.context.router||invariant_1(!1);var t=this.context.router;return{router:getContext$1(this.props,t)}});var StaticRouter=function(t){function e(){var n,r;classCallCheck(this,e);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=possibleConstructorReturn(this,t.call.apply(t,[this].concat(a))),r.createHref=function(t){return addLeadingSlash$1(r.props.basename+createURL(t))},r.handlePush=function(t){var e=r.props,n=e.basename,o=e.context;o.action="PUSH",o.location=addBasename(n,createLocation(t)),o.url=createURL(o.location)},r.handleReplace=function(t){var e=r.props,n=e.basename,o=e.context;o.action="REPLACE",o.location=addBasename(n,createLocation(t)),o.url=createURL(o.location)},r.handleListen=function(){return noop},r.handleBlock=function(){return noop},possibleConstructorReturn(r,n)}return inherits(e,t),e.prototype.render=function(){var t=this.props,e=t.basename,n=(t.context,t.location),r=objectWithoutProperties(t,["basename","context","location"]),o={createHref:this.createHref,action:"POP",location:stripBasename$1(e,createLocation(n)),push:this.handlePush,replace:this.handleReplace,go:staticHandler("go"),goBack:staticHandler("goBack"),goForward:staticHandler("goForward"),listen:this.handleListen,block:this.handleBlock};return React.createElement(Router,_extends$4({},r,{history:o,staticContext:this.props.context||{}}))},e}(React.Component);StaticRouter.defaultProps={basename:"",location:"/"};var Switch=function(t){function e(){return classCallCheck(this,e),possibleConstructorReturn(this,t.apply(this,arguments))}return inherits(e,t),e.prototype.render=function(){var t=this;return React.createElement(context.Consumer,null,function(e){e||invariant_1(!1);var n=t.props.location||e.location,r=void 0,o=void 0;return React.Children.forEach(t.props.children,function(t){if(null==o&&React.isValidElement(t)){r=t;var a=t.props.path||t.props.from;o=a?matchPath(n.pathname,Object.assign({},t.props,{path:a})):e.match}}),o?React.cloneElement(r,{location:n,computedMatch:o}):null})},e}(React.Component),REACT_STATICS={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},KNOWN_STATICS={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},defineProperty$1=Object.defineProperty,getOwnPropertyNames=Object.getOwnPropertyNames,getOwnPropertySymbols$1=Object.getOwnPropertySymbols,getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor,getPrototypeOf=Object.getPrototypeOf,objectPrototype=getPrototypeOf&&getPrototypeOf(Object);function hoistNonReactStatics(t,e,n){if("string"!=typeof e){if(objectPrototype){var r=getPrototypeOf(e);r&&r!==objectPrototype&&hoistNonReactStatics(t,r,n)}var o=getOwnPropertyNames(e);getOwnPropertySymbols$1&&(o=o.concat(getOwnPropertySymbols$1(e)));for(var a=0;a<o.length;++a){var i=o[a];if(!(REACT_STATICS[i]||KNOWN_STATICS[i]||n&&n[i])){var c=getOwnPropertyDescriptor(e,i);try{defineProperty$1(t,i,c)}catch(t){}}}return t}return t}var hoistNonReactStatics_cjs=hoistNonReactStatics;function withRouter(t){var e=function(e){var n=e.wrappedComponentRef,r=objectWithoutProperties(e,["wrappedComponentRef"]);return React.createElement(Route,{children:function(e){return React.createElement(t,_extends$4({},r,e,{ref:n}))}})};return e.displayName="withRouter("+(t.displayName||t.name)+")",e.WrappedComponent=t,hoistNonReactStatics_cjs(e,t)}var warning$1=function(){},warning_1$1=warning$1,invariant$1=function(t,e,n,r,o,a,i,c){if(!t){var s;if(void 0===e)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,o,a,i,c],p=0;(s=new Error(e.replace(/%s/g,function(){return u[p++]}))).name="Invariant Violation"}throw s.framesToPop=1,s}},invariant_1$1=invariant$1;function isAbsolute$1(t){return"/"===t.charAt(0)}function spliceOne$1(t,e){for(var n=e,r=n+1,o=t.length;r<o;n+=1,r+=1)t[n]=t[r];t.pop()}function resolvePathname$1(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=t&&t.split("/")||[],r=e&&e.split("/")||[],o=t&&isAbsolute$1(t),a=e&&isAbsolute$1(e),i=o||a;if(t&&isAbsolute$1(t)?r=n:n.length&&(r.pop(),r=r.concat(n)),!r.length)return"/";var c=void 0;if(r.length){var s=r[r.length-1];c="."===s||".."===s||""===s}else c=!1;for(var u=0,p=r.length;p>=0;p--){var l=r[p];"."===l?spliceOne$1(r,p):".."===l?(spliceOne$1(r,p),u++):u&&(spliceOne$1(r,p),u--)}if(!i)for(;u--;u)r.unshift("..");!i||""===r[0]||r[0]&&isAbsolute$1(r[0])||r.unshift("");var h=r.join("/");return c&&"/"!==h.substr(-1)&&(h+="/"),h}var _typeof$1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function valueEqual$1(t,e){if(t===e)return!0;if(null==t||null==e)return!1;if(Array.isArray(t))return Array.isArray(e)&&t.length===e.length&&t.every(function(t,n){return valueEqual$1(t,e[n])});var n=void 0===t?"undefined":_typeof$1(t);if(n!==(void 0===e?"undefined":_typeof$1(e)))return!1;if("object"===n){var r=t.valueOf(),o=e.valueOf();if(r!==t||o!==e)return valueEqual$1(r,o);var a=Object.keys(t),i=Object.keys(e);return a.length===i.length&&a.every(function(n){return valueEqual$1(t[n],e[n])})}return!1}var addLeadingSlash=function(t){return"/"===t.charAt(0)?t:"/"+t},stripLeadingSlash=function(t){return"/"===t.charAt(0)?t.substr(1):t},hasBasename=function(t,e){return new RegExp("^"+e+"(\\/|\\?|#|$)","i").test(t)},stripBasename=function(t,e){return hasBasename(t,e)?t.substr(e.length):t},stripTrailingSlash=function(t){return"/"===t.charAt(t.length-1)?t.slice(0,-1):t},parsePath$1=function(t){var e=t||"/",n="",r="",o=e.indexOf("#");-1!==o&&(r=e.substr(o),e=e.substr(0,o));var a=e.indexOf("?");return-1!==a&&(n=e.substr(a),e=e.substr(0,a)),{pathname:e,search:"?"===n?"":n,hash:"#"===r?"":r}},createPath$1=function(t){var e=t.pathname,n=t.search,r=t.hash,o=e||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o},_extends$1=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},createLocation$1=function(t,e,n,r){var o=void 0;"string"==typeof t?(o=parsePath$1(t)).state=e:(void 0===(o=_extends$1({},t)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==e&&void 0===o.state&&(o.state=e));try{o.pathname=decodeURI(o.pathname)}catch(t){throw t instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):t}return n&&(o.key=n),r?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=resolvePathname$1(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o},locationsAreEqual$1=function(t,e){return t.pathname===e.pathname&&t.search===e.search&&t.hash===e.hash&&t.key===e.key&&valueEqual$1(t.state,e.state)},createTransitionManager$1=function(){var t=null,e=[];return{setPrompt:function(e){return warning_1$1(null==t,"A history supports only one prompt at a time"),t=e,function(){t===e&&(t=null)}},confirmTransitionTo:function(e,n,r,o){if(null!=t){var a="function"==typeof t?t(e,n):t;"string"==typeof a?"function"==typeof r?r(a,o):(warning_1$1(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),o(!0)):o(!1!==a)}else o(!0)},appendListener:function(t){var n=!0,r=function(){n&&t.apply(void 0,arguments)};return e.push(r),function(){n=!1,e=e.filter(function(t){return t!==r})}},notifyListeners:function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];e.forEach(function(t){return t.apply(void 0,n)})}}},canUseDOM$1=!("undefined"==typeof window||!window.document||!window.document.createElement),addEventListener=function(t,e,n){return t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent("on"+e,n)},removeEventListener=function(t,e,n){return t.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent("on"+e,n)},getConfirmation=function(t,e){return e(window.confirm(t))},supportsHistory=function(){var t=window.navigator.userAgent;return(-1===t.indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)},supportsPopStateOnHashChange=function(){return-1===window.navigator.userAgent.indexOf("Trident")},supportsGoWithoutReloadUsingHash=function(){return-1===window.navigator.userAgent.indexOf("Firefox")},isExtraneousPopstateEvent=function(t){return void 0===t.state&&-1===navigator.userAgent.indexOf("CriOS")},_typeof$3="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_extends$2=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},PopStateEvent="popstate",HashChangeEvent="hashchange",getHistoryState=function(){try{return window.history.state||{}}catch(t){return{}}},createBrowserHistory=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};invariant_1$1(canUseDOM$1,"Browser history needs a DOM");var e=window.history,n=supportsHistory(),r=!supportsPopStateOnHashChange(),o=t.forceRefresh,a=void 0!==o&&o,i=t.getUserConfirmation,c=void 0===i?getConfirmation:i,s=t.keyLength,u=void 0===s?6:s,p=t.basename?stripTrailingSlash(addLeadingSlash(t.basename)):"",l=function(t){var e=t||{},n=e.key,r=e.state,o=window.location,a=o.pathname+o.search+o.hash;return warning_1$1(!p||hasBasename(a,p),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+a+'" to begin with "'+p+'".'),p&&(a=stripBasename(a,p)),createLocation$1(a,r,n)},h=function(){return Math.random().toString(36).substr(2,u)},f=createTransitionManager$1(),d=function(t){_extends$2(C,t),C.length=e.length,f.notifyListeners(C.location,C.action)},y=function(t){isExtraneousPopstateEvent(t)||g(l(t.state))},m=function(){g(l(getHistoryState()))},v=!1,g=function(t){if(v)v=!1,d();else{f.confirmTransitionTo(t,"POP",c,function(e){e?d({action:"POP",location:t}):b(t)})}},b=function(t){var e=C.location,n=P.indexOf(e.key);-1===n&&(n=0);var r=P.indexOf(t.key);-1===r&&(r=0);var o=n-r;o&&(v=!0,O(o))},w=l(getHistoryState()),P=[w.key],R=function(t){return p+createPath$1(t)},O=function(t){e.go(t)},x=0,$=function(t){1===(x+=t)?(addEventListener(window,PopStateEvent,y),r&&addEventListener(window,HashChangeEvent,m)):0===x&&(removeEventListener(window,PopStateEvent,y),r&&removeEventListener(window,HashChangeEvent,m))},E=!1,C={length:e.length,action:"POP",location:w,createHref:R,push:function(t,r){warning_1$1(!("object"===(void 0===t?"undefined":_typeof$3(t))&&void 0!==t.state&&void 0!==r),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var o=createLocation$1(t,r,h(),C.location);f.confirmTransitionTo(o,"PUSH",c,function(t){if(t){var r=R(o),i=o.key,c=o.state;if(n)if(e.pushState({key:i,state:c},null,r),a)window.location.href=r;else{var s=P.indexOf(C.location.key),u=P.slice(0,-1===s?0:s+1);u.push(o.key),P=u,d({action:"PUSH",location:o})}else warning_1$1(void 0===c,"Browser history cannot push state in browsers that do not support HTML5 history"),window.location.href=r}})},replace:function(t,r){warning_1$1(!("object"===(void 0===t?"undefined":_typeof$3(t))&&void 0!==t.state&&void 0!==r),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var o=createLocation$1(t,r,h(),C.location);f.confirmTransitionTo(o,"REPLACE",c,function(t){if(t){var r=R(o),i=o.key,c=o.state;if(n)if(e.replaceState({key:i,state:c},null,r),a)window.location.replace(r);else{var s=P.indexOf(C.location.key);-1!==s&&(P[s]=o.key),d({action:"REPLACE",location:o})}else warning_1$1(void 0===c,"Browser history cannot replace state in browsers that do not support HTML5 history"),window.location.replace(r)}})},go:O,goBack:function(){return O(-1)},goForward:function(){return O(1)},block:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=f.setPrompt(t);return E||($(1),E=!0),function(){return E&&(E=!1,$(-1)),e()}},listen:function(t){var e=f.appendListener(t);return $(1),function(){$(-1),e()}}};return C},_extends$5=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},HashChangeEvent$1="hashchange",HashPathCoders={hashbang:{encodePath:function(t){return"!"===t.charAt(0)?t:"!/"+stripLeadingSlash(t)},decodePath:function(t){return"!"===t.charAt(0)?t.substr(1):t}},noslash:{encodePath:stripLeadingSlash,decodePath:addLeadingSlash},slash:{encodePath:addLeadingSlash,decodePath:addLeadingSlash}},getHashPath=function(){var t=window.location.href,e=t.indexOf("#");return-1===e?"":t.substring(e+1)},pushHashPath=function(t){return window.location.hash=t},replaceHashPath=function(t){var e=window.location.href.indexOf("#");window.location.replace(window.location.href.slice(0,e>=0?e:0)+"#"+t)},createHashHistory=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};invariant_1$1(canUseDOM$1,"Hash history needs a DOM");var e=window.history,n=supportsGoWithoutReloadUsingHash(),r=t.getUserConfirmation,o=void 0===r?getConfirmation:r,a=t.hashType,i=void 0===a?"slash":a,c=t.basename?stripTrailingSlash(addLeadingSlash(t.basename)):"",s=HashPathCoders[i],u=s.encodePath,p=s.decodePath,l=function(){var t=p(getHashPath());return warning_1$1(!c||hasBasename(t,c),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+t+'" to begin with "'+c+'".'),c&&(t=stripBasename(t,c)),createLocation$1(t)},h=createTransitionManager$1(),f=function(t){_extends$5(C,t),C.length=e.length,h.notifyListeners(C.location,C.action)},d=!1,y=null,m=function(){var t=getHashPath(),e=u(t);if(t!==e)replaceHashPath(e);else{var n=l(),r=C.location;if(!d&&locationsAreEqual$1(r,n))return;if(y===createPath$1(n))return;y=null,v(n)}},v=function(t){if(d)d=!1,f();else{h.confirmTransitionTo(t,"POP",o,function(e){e?f({action:"POP",location:t}):g(t)})}},g=function(t){var e=C.location,n=R.lastIndexOf(createPath$1(e));-1===n&&(n=0);var r=R.lastIndexOf(createPath$1(t));-1===r&&(r=0);var o=n-r;o&&(d=!0,O(o))},b=getHashPath(),w=u(b);b!==w&&replaceHashPath(w);var P=l(),R=[createPath$1(P)],O=function(t){warning_1$1(n,"Hash history go(n) causes a full page reload in this browser"),e.go(t)},x=0,$=function(t){1===(x+=t)?addEventListener(window,HashChangeEvent$1,m):0===x&&removeEventListener(window,HashChangeEvent$1,m)},E=!1,C={length:e.length,action:"POP",location:P,createHref:function(t){return"#"+u(c+createPath$1(t))},push:function(t,e){warning_1$1(void 0===e,"Hash history cannot push state; it is ignored");var n=createLocation$1(t,void 0,void 0,C.location);h.confirmTransitionTo(n,"PUSH",o,function(t){if(t){var e=createPath$1(n),r=u(c+e);if(getHashPath()!==r){y=e,pushHashPath(r);var o=R.lastIndexOf(createPath$1(C.location)),a=R.slice(0,-1===o?0:o+1);a.push(e),R=a,f({action:"PUSH",location:n})}else warning_1$1(!1,"Hash history cannot PUSH the same path; a new entry will not be added to the history stack"),f()}})},replace:function(t,e){warning_1$1(void 0===e,"Hash history cannot replace state; it is ignored");var n=createLocation$1(t,void 0,void 0,C.location);h.confirmTransitionTo(n,"REPLACE",o,function(t){if(t){var e=createPath$1(n),r=u(c+e);getHashPath()!==r&&(y=e,replaceHashPath(r));var o=R.indexOf(createPath$1(C.location));-1!==o&&(R[o]=e),f({action:"REPLACE",location:n})}})},go:O,goBack:function(){return O(-1)},goForward:function(){return O(1)},block:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=h.setPrompt(t);return E||($(1),E=!0),function(){return E&&(E=!1,$(-1)),e()}},listen:function(t){var e=h.appendListener(t);return $(1),function(){$(-1),e()}}};return C};function createCommonjsModule$1(t,e){return t(e={exports:{}},e.exports),e.exports}var getOwnPropertySymbols$2=Object.getOwnPropertySymbols,hasOwnProperty$1=Object.prototype.hasOwnProperty,propIsEnumerable$1=Object.prototype.propertyIsEnumerable;function toObject$1(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function shouldUseNative$1(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(t){r[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}var objectAssign$1=shouldUseNative$1()?Object.assign:function(t,e){for(var n,r,o=toObject$1(t),a=1;a<arguments.length;a++){for(var i in n=Object(arguments[a]))hasOwnProperty$1.call(n,i)&&(o[i]=n[i]);if(getOwnPropertySymbols$2){r=getOwnPropertySymbols$2(n);for(var c=0;c<r.length;c++)propIsEnumerable$1.call(n,r[c])&&(o[r[c]]=n[r[c]])}}return o},ReactPropTypesSecret$1="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",ReactPropTypesSecret_1$1=ReactPropTypesSecret$1;function emptyFunction$2(){}var factoryWithThrowingShims$1=function(){function t(t,e,n,r,o,a){if(a!==ReactPropTypesSecret_1$1){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e};return n.checkPropTypes=emptyFunction$2,n.PropTypes=n,n},propTypes$1=createCommonjsModule$1(function(t){t.exports=factoryWithThrowingShims$1()}),_typeof$5="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},classCallCheck$1=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},_extends$7=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},inherits$1=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)},objectWithoutProperties$1=function(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n},possibleConstructorReturn$1=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e},BrowserRouter=function(t){function e(){var n,r;classCallCheck$1(this,e);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=possibleConstructorReturn$1(this,t.call.apply(t,[this].concat(a))),r.history=createBrowserHistory(r.props),possibleConstructorReturn$1(r,n)}return inherits$1(e,t),e.prototype.render=function(){return React.createElement(Router,{history:this.history,children:this.props.children})},e}(React.Component),HashRouter=function(t){function e(){var n,r;classCallCheck$1(this,e);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=possibleConstructorReturn$1(this,t.call.apply(t,[this].concat(a))),r.history=createHashHistory(r.props),possibleConstructorReturn$1(r,n)}return inherits$1(e,t),e.prototype.render=function(){return React.createElement(Router,{history:this.history,children:this.props.children})},e}(React.Component);function isModifiedEvent(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}var Link=function(t){function e(){return classCallCheck$1(this,e),possibleConstructorReturn$1(this,t.apply(this,arguments))}return inherits$1(e,t),e.prototype.handleClick=function(t,e){(this.props.onClick&&this.props.onClick(t),t.defaultPrevented||0!==t.button||this.props.target||isModifiedEvent(t))||(t.preventDefault(),(this.props.replace?e.history.replace:e.history.push)(this.props.to))},e.prototype.render=function(){var t=this,e=this.props,n=e.innerRef,r=(e.replace,e.to),o=objectWithoutProperties$1(e,["innerRef","replace","to"]);return React.createElement(context.Consumer,null,function(e){e||invariant_1$1(!1);var a="string"==typeof r?createLocation$1(r,null,null,e.location):r,i=a?e.history.createHref(a):"";return React.createElement("a",_extends$7({},o,{onClick:function(n){return t.handleClick(n,e)},href:i,ref:n}))})},e}(React.Component);function joinClassnames(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.filter(function(t){return t}).join(" ")}function NavLink(t){var e=t["aria-current"],n=t.activeClassName,r=t.activeStyle,o=t.className,a=t.exact,i=t.isActive,c=t.location,s=t.strict,u=t.style,p=t.to,l=objectWithoutProperties$1(t,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","strict","style","to"]),h="object"===(void 0===p?"undefined":_typeof$5(p))?p.pathname:p,f=h&&h.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1");return React.createElement(Route,{path:f,exact:a,strict:s,location:c,children:function(t){var a=t.location,c=t.match,s=!!(i?i(c,a):c),h=s?joinClassnames(o,n):o,f=s?Object.assign({},u,r):u;return React.createElement(Link,_extends$7({"aria-current":s&&e||null,className:h,style:f,to:p},l))}})}Link.defaultProps={replace:!1},NavLink.defaultProps={"aria-current":"page",activeClassName:"active"},exports.BrowserRouter=BrowserRouter,exports.HashRouter=HashRouter,exports.Link=Link,exports.NavLink=NavLink,exports.MemoryRouter=MemoryRouter,exports.Prompt=Prompt,exports.Redirect=Redirect,exports.Route=Route,exports.Router=Router,exports.StaticRouter=StaticRouter,exports.Switch=Switch,exports.generatePath=generatePath,exports.matchPath=matchPath,exports.withRouter=withRouter,exports.__RouterContext=context;
"use strict";function _interopDefault(t){return t&&"object"==typeof t&&"default"in t?t.default:t}Object.defineProperty(exports,"__esModule",{value:!0});var React=_interopDefault(require("react")),reactRouter=require("react-router"),history=require("history");require("prop-types"),require("warning");var invariant=_interopDefault(require("invariant")),_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},classCallCheck=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},_extends=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},inherits=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)},objectWithoutProperties=function(t,e){var r={};for(var o in t)0<=e.indexOf(o)||Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=t[o]);return r},possibleConstructorReturn=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e},BrowserRouter=function(i){function a(){var t,e;classCallCheck(this,a);for(var r=arguments.length,o=Array(r),n=0;n<r;n++)o[n]=arguments[n];return(t=e=possibleConstructorReturn(this,i.call.apply(i,[this].concat(o)))).history=history.createBrowserHistory(e.props),possibleConstructorReturn(e,t)}return inherits(a,i),a.prototype.render=function(){return React.createElement(reactRouter.Router,{history:this.history,children:this.props.children})},a}(React.Component),HashRouter=function(i){function a(){var t,e;classCallCheck(this,a);for(var r=arguments.length,o=Array(r),n=0;n<r;n++)o[n]=arguments[n];return(t=e=possibleConstructorReturn(this,i.call.apply(i,[this].concat(o)))).history=history.createHashHistory(e.props),possibleConstructorReturn(e,t)}return inherits(a,i),a.prototype.render=function(){return React.createElement(reactRouter.Router,{history:this.history,children:this.props.children})},a}(React.Component);function isModifiedEvent(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}var Link=function(t){function e(){return classCallCheck(this,e),possibleConstructorReturn(this,t.apply(this,arguments))}return inherits(e,t),e.prototype.handleClick=function(t,e){(this.props.onClick&&this.props.onClick(t),t.defaultPrevented||0!==t.button||this.props.target&&"_self"!==this.props.target||isModifiedEvent(t))||(t.preventDefault(),(this.props.replace?e.history.replace:e.history.push)(this.props.to))},e.prototype.render=function(){var o=this,t=this.props,n=t.innerRef,i=(t.replace,t.to),a=objectWithoutProperties(t,["innerRef","replace","to"]);return React.createElement(reactRouter.__RouterContext.Consumer,null,function(e){e||invariant(!1);var t="string"==typeof i?history.createLocation(i,null,null,e.location):i,r=t?e.history.createHref(t):"";return React.createElement("a",_extends({},a,{onClick:function(t){return o.handleClick(t,e)},href:r,ref:n}))})},e}(React.Component);function joinClassnames(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.filter(function(t){return t}).join(" ")}function NavLink(t){var a=t["aria-current"],s=t.activeClassName,c=t.activeStyle,u=t.className,e=t.exact,l=t.isActive,r=t.location,o=t.strict,p=t.style,f=t.to,h=objectWithoutProperties(t,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","strict","style","to"]),n="object"===(void 0===f?"undefined":_typeof(f))?f.pathname:f,i=n&&n.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1");return React.createElement(reactRouter.Route,{path:i,exact:e,strict:o,location:r,children:function(t){var e=t.location,r=t.match,o=!!(l?l(r,e):r),n=o?joinClassnames(u,s):u,i=o?Object.assign({},p,c):p;return React.createElement(Link,_extends({"aria-current":o&&a||null,className:n,style:i,to:f},h))}})}Link.defaultProps={replace:!1},NavLink.defaultProps={"aria-current":"page",activeClassName:"active"},Object.keys(reactRouter).forEach(function(t){exports[t]=reactRouter[t]}),exports.BrowserRouter=BrowserRouter,exports.HashRouter=HashRouter,exports.Link=Link,exports.NavLink=NavLink;
{
"name": "react-router-dom",
"version": "4.4.0-beta.3",
"version": "4.4.0-beta.4",
"description": "DOM bindings for React Router",

@@ -30,2 +30,3 @@ "repository": "ReactTraining/react-router",

"withRouter.js",
"warnAboutDeprecatedCJSRequire.js",
"umd"

@@ -37,5 +38,5 @@ ],

"scripts": {
"build": "node ./scripts/build.js",
"build": "del cjs esm umd && rollup -c",
"watch": "babel ./modules -d . --ignore __tests__ --watch",
"prepublishOnly": "node ./scripts/build.js",
"prepublishOnly": "del cjs esm umd && rollup -c",
"lint": "eslint modules",

@@ -52,3 +53,3 @@ "test": "jest"

"prop-types": "^15.6.1",
"react-router": "^4.4.0-beta.3",
"react-router": "^4.4.0-beta.4",
"warning": "^4.0.1"

@@ -66,2 +67,3 @@ },

"babel-preset-react": "^6.5.0",
"del-cli": "^1.1.0",
"eslint": "^4.19.1",

@@ -77,3 +79,2 @@ "eslint-plugin-import": "^2.12.0",

"rollup": "^0.66.6",
"rollup-plugin-alias": "^1.4.0",
"rollup-plugin-babel": "^3.0.4",

@@ -83,3 +84,4 @@ "rollup-plugin-commonjs": "^9.1.3",

"rollup-plugin-replace": "^2.0.0",
"rollup-plugin-uglify": "^3.0.0"
"rollup-plugin-size-snapshot": "^0.7.0",
"rollup-plugin-uglify": "^6.0.0"
},

@@ -86,0 +88,0 @@ "browserify": {

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

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],e):e(t.ReactRouterDOM={},t.React)}(this,function(t,e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e;var n="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function o(t,e){return t(e={exports:{}},e.exports),e.exports}var i=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable;(function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(t){r[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}})()&&Object.assign;var u="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";function s(){}var l=o(function(t){t.exports=function(){function t(t,e,n,r,o,i){if(i!==u){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e};return n.checkPropTypes=s,n.PropTypes=n,n}()}),p=function(){},f=function(t,e,n,r,o,i,a,c){if(!t){var u;if(void 0===e)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,r,o,i,a,c],l=0;(u=new Error(e.replace(/%s/g,function(){return s[l++]}))).name="Invariant Violation"}throw u.framesToPop=1,u}};function h(t){return"/"===t.charAt(0)}function d(t,e){for(var n=e,r=n+1,o=t.length;r<o;n+=1,r+=1)t[n]=t[r];t.pop()}var y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};var v=function(t){var e=t.pathname,n=t.search,r=t.hash,o=e||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o},m=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},g=function(t,e,n,r){var o=void 0;"string"==typeof t?(o=function(t){var e=t||"/",n="",r="",o=e.indexOf("#");-1!==o&&(r=e.substr(o),e=e.substr(0,o));var i=e.indexOf("?");return-1!==i&&(n=e.substr(i),e=e.substr(0,i)),{pathname:e,search:"?"===n?"":n,hash:"#"===r?"":r}}(t)).state=e:(void 0===(o=m({},t)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==e&&void 0===o.state&&(o.state=e));try{o.pathname=decodeURI(o.pathname)}catch(t){throw t instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):t}return n&&(o.key=n),r?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=t&&t.split("/")||[],r=e&&e.split("/")||[],o=t&&h(t),i=e&&h(e),a=o||i;if(t&&h(t)?r=n:n.length&&(r.pop(),r=r.concat(n)),!r.length)return"/";var c=void 0;if(r.length){var u=r[r.length-1];c="."===u||".."===u||""===u}else c=!1;for(var s=0,l=r.length;l>=0;l--){var p=r[l];"."===p?d(r,l):".."===p?(d(r,l),s++):s&&(d(r,l),s--)}if(!a)for(;s--;s)r.unshift("..");!a||""===r[0]||r[0]&&h(r[0])||r.unshift("");var f=r.join("/");return c&&"/"!==f.substr(-1)&&(f+="/"),f}(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o},b=function(t,e){return t.pathname===e.pathname&&t.search===e.search&&t.hash===e.hash&&t.key===e.key&&function t(e,n){if(e===n)return!0;if(null==e||null==n)return!1;if(Array.isArray(e))return Array.isArray(n)&&e.length===n.length&&e.every(function(e,r){return t(e,n[r])});var r=void 0===e?"undefined":y(e);if(r!==(void 0===n?"undefined":y(n)))return!1;if("object"===r){var o=e.valueOf(),i=n.valueOf();if(o!==e||i!==n)return t(o,i);var a=Object.keys(e),c=Object.keys(n);return a.length===c.length&&a.every(function(r){return t(e[r],n[r])})}return!1}(t.state,e.state)},w=("undefined"==typeof window||!window.document||window.document.createElement,"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}),O=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},x=function(t,e,n){return Math.min(Math.max(t,e),n)},P=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.getUserConfirmation,n=t.initialEntries,r=void 0===n?["/"]:n,o=t.initialIndex,i=void 0===o?0:o,a=t.keyLength,c=void 0===a?6:a,u=function(){var t=null,e=[];return{setPrompt:function(e){return t=e,function(){t===e&&(t=null)}},confirmTransitionTo:function(e,n,r,o){if(null!=t){var i="function"==typeof t?t(e,n):t;"string"==typeof i?"function"==typeof r?r(i,o):o(!0):o(!1!==i)}else o(!0)},appendListener:function(t){var n=!0,r=function(){n&&t.apply(void 0,arguments)};return e.push(r),function(){n=!1,e=e.filter(function(t){return t!==r})}},notifyListeners:function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];e.forEach(function(t){return t.apply(void 0,n)})}}}(),s=function(t){O(m,t),m.length=m.entries.length,u.notifyListeners(m.location,m.action)},l=function(){return Math.random().toString(36).substr(2,c)},f=x(i,0,r.length-1),h=r.map(function(t){return g(t,void 0,"string"==typeof t?l():t.key||l())}),d=v,y=function(t){var n=x(m.index+t,0,m.entries.length-1),r=m.entries[n];u.confirmTransitionTo(r,"POP",e,function(t){t?s({action:"POP",location:r,index:n}):s()})},m={length:h.length,action:"POP",location:h[f],index:f,entries:h,createHref:d,push:function(t,n){p(!("object"===(void 0===t?"undefined":w(t))&&void 0!==t.state&&void 0!==n),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var r=g(t,n,l(),m.location);u.confirmTransitionTo(r,"PUSH",e,function(t){if(t){var e=m.index+1,n=m.entries.slice(0);n.length>e?n.splice(e,n.length-e,r):n.push(r),s({action:"PUSH",location:r,index:e,entries:n})}})},replace:function(t,n){p(!("object"===(void 0===t?"undefined":w(t))&&void 0!==t.state&&void 0!==n),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var r=g(t,n,l(),m.location);u.confirmTransitionTo(r,"REPLACE",e,function(t){t&&(m.entries[m.index]=r,s({action:"REPLACE",location:r}))})},go:y,goBack:function(){return y(-1)},goForward:function(){return y(1)},canGo:function(t){var e=m.index+t;return e>=0&&e<m.entries.length},block:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return u.setPrompt(t)},listen:function(t){return u.appendListener(t)}};return m},j="__global_unique_id__",E=function(){return n[j]=(n[j]||0)+1};function C(t){return function(){return t}}var R=function(){};R.thatReturns=C,R.thatReturnsFalse=C(!1),R.thatReturnsTrue=C(!0),R.thatReturnsNull=C(null),R.thatReturnsThis=function(){return this},R.thatReturnsArgument=function(t){return t};var k=R,S=o(function(t,n){n.__esModule=!0,i(e);var r=i(l),o=i(E);function i(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}i(k);var s=1073741823;n.default=function(t,n){var i,l,p="__create-react-context-"+(0,o.default)()+"__",f=function(t){function e(){var n,r,o,i;a(this,e);for(var u=arguments.length,s=Array(u),l=0;l<u;l++)s[l]=arguments[l];return n=r=c(this,t.call.apply(t,[this].concat(s))),r.emitter=(o=r.props.value,i=[],{on:function(t){i.push(t)},off:function(t){i=i.filter(function(e){return e!==t})},get:function(){return o},set:function(t,e){o=t,i.forEach(function(t){return t(o,e)})}}),c(r,n)}return u(e,t),e.prototype.getChildContext=function(){var t;return(t={})[p]=this.emitter,t},e.prototype.componentWillReceiveProps=function(t){if(this.props.value!==t.value){var e=this.props.value,r=t.value,o=void 0;((i=e)===(a=r)?0!==i||1/i==1/a:i!=i&&a!=a)?o=0:(o="function"==typeof n?n(e,r):s,0!=(o|=0)&&this.emitter.set(t.value,o))}var i,a},e.prototype.render=function(){return this.props.children},e}(e.Component);f.childContextTypes=((i={})[p]=r.default.object.isRequired,i);var h=function(e){function n(){var t,r;a(this,n);for(var o=arguments.length,i=Array(o),u=0;u<o;u++)i[u]=arguments[u];return t=r=c(this,e.call.apply(e,[this].concat(i))),r.state={value:r.getValue()},r.onUpdate=function(t,e){0!=((0|r.observedBits)&e)&&r.setState({value:r.getValue()})},c(r,t)}return u(n,e),n.prototype.componentWillReceiveProps=function(t){var e=t.observedBits;this.observedBits=void 0===e||null===e?s:e},n.prototype.componentDidMount=function(){this.context[p]&&this.context[p].on(this.onUpdate);var t=this.props.observedBits;this.observedBits=void 0===t||null===t?s:t},n.prototype.componentWillUnmount=function(){this.context[p]&&this.context[p].off(this.onUpdate)},n.prototype.getValue=function(){return this.context[p]?this.context[p].get():t},n.prototype.render=function(){return(t=this.props.children,Array.isArray(t)?t[0]:t)(this.state.value);var t},n}(e.Component);return h.contextTypes=((l={})[p]=r.default.object,l),{Provider:f,Consumer:h}},t.exports=n.default});r(S);var T=r(o(function(t,n){n.__esModule=!0;var r=i(e),o=i(S);function i(t){return t&&t.__esModule?t:{default:t}}n.default=r.default.createContext||o.default,t.exports=n.default}))();T.Provider.displayName="Router.Provider",T.Consumer.displayName="Router.Consumer";var A=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},_=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},U=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)},L=function(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n},M=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e};function H(t,e){return{history:t.history,location:e.location,match:I.computeRootMatch(e.location.pathname),staticContext:t.staticContext}}var I=function(t){function n(e){A(this,n);var r=M(this,t.call(this,e));return r.state={location:e.history.location},r._isMounted=!1,r._pendingLocation=null,e.staticContext||(r.unlisten=e.history.listen(function(t){r._isMounted?r.setState({location:t}):r._pendingLocation=t})),r}return U(n,t),n.computeRootMatch=function(t){return{path:"/",url:"/",params:{},isExact:"/"===t}},n.prototype.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},n.prototype.componentWillUnmount=function(){this.unlisten&&this.unlisten()},n.prototype.render=function(){var t=H(this.props,this.state);return e.createElement(T.Provider,{children:this.props.children||null,value:t})},n}(e.Component);e.createContext||(I.childContextTypes={router:l.object.isRequired},I.prototype.getChildContext=function(){return{router:H(this.props,this.state)}});var N=function(t){function n(){var e,r;A(this,n);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return e=r=M(this,t.call.apply(t,[this].concat(i))),r.history=P(r.props),M(r,e)}return U(n,t),n.prototype.render=function(){return e.createElement(I,{history:this.history,children:this.props.children})},n}(e.Component),B=function(t){function e(){return A(this,e),M(this,t.apply(this,arguments))}return U(e,t),e.prototype.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},e.prototype.componentDidUpdate=function(t){this.props.onUpdate&&this.props.onUpdate.call(this,this,t)},e.prototype.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},e.prototype.render=function(){return null},e}(e.Component);function D(t){return e.createElement(T.Consumer,null,function(n){if(n||f(!1),!t.when||n.staticContext)return null;var r=n.history.block,o=t.message;return e.createElement(B,{onMount:function(t){t.release=r(o)},onUpdate:function(t,e){e.message!==o&&(t.release(),t.release=r(o))},onUnmount:function(t){t.release()}})})}D.defaultProps={when:!0};var q=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)},$=rt,F=J,W=function(t,e){return Q(J(t,e))},V=Q,Y=nt,K=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function J(t,e){for(var n,r=[],o=0,i=0,a="",c=e&&e.delimiter||"/";null!=(n=K.exec(t));){var u=n[0],s=n[1],l=n.index;if(a+=t.slice(i,l),i=l+u.length,s)a+=s[1];else{var p=t[i],f=n[2],h=n[3],d=n[4],y=n[5],v=n[6],m=n[7];a&&(r.push(a),a="");var g=null!=f&&null!=p&&p!==f,b="+"===v||"*"===v,w="?"===v||"*"===v,O=n[2]||c,x=d||y;r.push({name:h||o++,prefix:f||"",delimiter:O,optional:w,repeat:b,partial:g,asterisk:!!m,pattern:x?Z(x):m?".*":"[^"+X(O)+"]+?"})}}return i<t.length&&(a+=t.substr(i)),a&&r.push(a),r}function G(t){return encodeURI(t).replace(/[\/?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function z(t){return encodeURI(t).replace(/[?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function Q(t){for(var e=new Array(t.length),n=0;n<t.length;n++)"object"==typeof t[n]&&(e[n]=new RegExp("^(?:"+t[n].pattern+")$"));return function(n,r){for(var o="",i=n||{},a=(r||{}).pretty?G:encodeURIComponent,c=0;c<t.length;c++){var u=t[c];if("string"!=typeof u){var s,l=i[u.name];if(null==l){if(u.optional){u.partial&&(o+=u.prefix);continue}throw new TypeError('Expected "'+u.name+'" to be defined')}if(q(l)){if(!u.repeat)throw new TypeError('Expected "'+u.name+'" to not repeat, but received `'+JSON.stringify(l)+"`");if(0===l.length){if(u.optional)continue;throw new TypeError('Expected "'+u.name+'" to not be empty')}for(var p=0;p<l.length;p++){if(s=a(l[p]),!e[c].test(s))throw new TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'", but received `'+JSON.stringify(s)+"`");o+=(0===p?u.prefix:u.delimiter)+s}}else{if(s=u.asterisk?z(l):a(l),!e[c].test(s))throw new TypeError('Expected "'+u.name+'" to match "'+u.pattern+'", but received "'+s+'"');o+=u.prefix+s}}else o+=u}return o}}function X(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function Z(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function tt(t,e){return t.keys=e,t}function et(t){return t.sensitive?"":"i"}function nt(t,e,n){q(e)||(n=e||n,e=[]);for(var r=(n=n||{}).strict,o=!1!==n.end,i="",a=0;a<t.length;a++){var c=t[a];if("string"==typeof c)i+=X(c);else{var u=X(c.prefix),s="(?:"+c.pattern+")";e.push(c),c.repeat&&(s+="(?:"+u+s+")*"),i+=s=c.optional?c.partial?u+"("+s+")?":"(?:"+u+"("+s+"))?":u+"("+s+")"}}var l=X(n.delimiter||"/"),p=i.slice(-l.length)===l;return r||(i=(p?i.slice(0,-l.length):i)+"(?:"+l+"(?=$))?"),i+=o?"$":r&&p?"":"(?="+l+"|$)",tt(new RegExp("^"+i,et(n)),e)}function rt(t,e,n){return q(e)||(n=e||n,e=[]),n=n||{},t instanceof RegExp?function(t,e){var n=t.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)e.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return tt(t,e)}(t,e):q(t)?function(t,e,n){for(var r=[],o=0;o<t.length;o++)r.push(rt(t[o],e,n).source);return tt(new RegExp("(?:"+r.join("|")+")",et(n)),e)}(t,e,n):function(t,e,n){return nt(J(t,n),e,n)}(t,e,n)}$.parse=F,$.compile=W,$.tokensToFunction=V,$.tokensToRegExp=Y;var ot={},it=1e4,at=0;function ct(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"/"===t?t:function(t){if(ot[t])return ot[t];var e=$.compile(t);return at<it&&(ot[t]=e,at++),e}(t)(e,{pretty:!0})}function ut(t){return e.createElement(T.Consumer,null,function(n){n||f(!1);var r=t.push?n.history.push:n.history.replace,o=g(t.computedMatch?"string"==typeof t.to?ct(t.to,t.computedMatch.params):Object.assign({},t.to,{pathname:ct(t.to.pathname,t.computedMatch.params)}):t.to);return n.staticContext?(r(o),null):e.createElement(B,{onMount:function(){r(o)},onUpdate:function(t,e){b(e.to,o)||r(o)},to:o})})}ut.defaultProps={push:!1};var st={},lt=1e4,pt=0;function ft(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"string"==typeof e&&(e={path:e});var n=e,r=n.path,o=n.exact,i=void 0!==o&&o,a=n.strict,c=void 0!==a&&a,u=n.sensitive,s=function(t,e){var n=""+e.end+e.strict+e.sensitive,r=st[n]||(st[n]={});if(r[t])return r[t];var o=[],i={regexp:$(t,o,e),keys:o};return pt<lt&&(r[t]=i,pt++),i}(r,{end:i,strict:c,sensitive:void 0!==u&&u}),l=s.regexp,p=s.keys,f=l.exec(t);if(!f)return null;var h=f[0],d=f.slice(1),y=t===h;return i&&!y?null:{path:r,url:"/"===r&&""===h?"/":h,isExact:y,params:p.reduce(function(t,e,n){return t[e.name]=d[n],t},{})}}function ht(t,e){var n=t.location||e.location,r=t.computedMatch?t.computedMatch:t.path?ft(n.pathname,t):e.match;return Object.assign({},e,{location:n,match:r})}var dt=function(t){function n(){return A(this,n),M(this,t.apply(this,arguments))}return U(n,t),n.prototype.render=function(){var t=this;return e.createElement(T.Consumer,null,function(n){n||f(!1);var r=ht(t.props,n),o=t.props,i=o.children,a=o.component,c=o.render;return Array.isArray(i)&&0===i.length&&(i=null),"function"==typeof i&&void 0===(i=i(r))&&(i=null),e.createElement(T.Provider,{value:r},i&&!function(t){return 0===e.Children.count(t)}(i)?i:r.match?a?e.createElement(a,r):c?c(r):null:null)})},n}(e.Component);function yt(t){return"/"===t.charAt(0)?t:"/"+t}function vt(t,e){return t?Object.assign({},e,{pathname:yt(t)+e.pathname}):e}function mt(t){return"string"==typeof t?t:v(t)}function gt(t){return function(){f(!1)}}function bt(){}e.createContext||(dt.contextTypes={router:l.object.isRequired},dt.childContextTypes={router:l.object.isRequired},dt.prototype.getChildContext=function(){this.context.router||f(!1);var t=this.context.router;return{router:ht(this.props,t)}});var wt=function(t){function n(){var e,r;A(this,n);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return e=r=M(this,t.call.apply(t,[this].concat(i))),r.createHref=function(t){return yt(r.props.basename+mt(t))},r.handlePush=function(t){var e=r.props,n=e.basename,o=e.context;o.action="PUSH",o.location=vt(n,g(t)),o.url=mt(o.location)},r.handleReplace=function(t){var e=r.props,n=e.basename,o=e.context;o.action="REPLACE",o.location=vt(n,g(t)),o.url=mt(o.location)},r.handleListen=function(){return bt},r.handleBlock=function(){return bt},M(r,e)}return U(n,t),n.prototype.render=function(){var t=this.props,n=t.basename,r=(t.context,t.location),o=L(t,["basename","context","location"]),i={createHref:this.createHref,action:"POP",location:function(t,e){if(!t)return e;var n=yt(t);return 0!==e.pathname.indexOf(n)?e:Object.assign({},e,{pathname:e.pathname.substr(n.length)})}(n,g(r)),push:this.handlePush,replace:this.handleReplace,go:gt(),goBack:gt(),goForward:gt(),listen:this.handleListen,block:this.handleBlock};return e.createElement(I,_({},o,{history:i,staticContext:this.props.context||{}}))},n}(e.Component);wt.defaultProps={basename:"",location:"/"};var Ot=function(t){function n(){return A(this,n),M(this,t.apply(this,arguments))}return U(n,t),n.prototype.render=function(){var t=this;return e.createElement(T.Consumer,null,function(n){n||f(!1);var r=t.props.location||n.location,o=void 0,i=void 0;return e.Children.forEach(t.props.children,function(t){if(null==i&&e.isValidElement(t)){o=t;var a=t.props.path||t.props.from;i=a?ft(r.pathname,Object.assign({},t.props,{path:a})):n.match}}),i?e.cloneElement(o,{location:r,computedMatch:i}):null})},n}(e.Component),xt={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Pt={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},jt=Object.defineProperty,Et=Object.getOwnPropertyNames,Ct=Object.getOwnPropertySymbols,Rt=Object.getOwnPropertyDescriptor,kt=Object.getPrototypeOf,St=kt&&kt(Object);var Tt=function t(e,n,r){if("string"!=typeof n){if(St){var o=kt(n);o&&o!==St&&t(e,o,r)}var i=Et(n);Ct&&(i=i.concat(Ct(n)));for(var a=0;a<i.length;++a){var c=i[a];if(!(xt[c]||Pt[c]||r&&r[c])){var u=Rt(n,c);try{jt(e,c,u)}catch(e){}}}return e}return e};var At=function(){},_t=function(t,e,n,r,o,i,a,c){if(!t){var u;if(void 0===e)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,r,o,i,a,c],l=0;(u=new Error(e.replace(/%s/g,function(){return s[l++]}))).name="Invariant Violation"}throw u.framesToPop=1,u}};function Ut(t){return"/"===t.charAt(0)}function Lt(t,e){for(var n=e,r=n+1,o=t.length;r<o;n+=1,r+=1)t[n]=t[r];t.pop()}var Mt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};var Ht=function(t){return"/"===t.charAt(0)?t:"/"+t},It=function(t){return"/"===t.charAt(0)?t.substr(1):t},Nt=function(t,e){return new RegExp("^"+e+"(\\/|\\?|#|$)","i").test(t)},Bt=function(t,e){return Nt(t,e)?t.substr(e.length):t},Dt=function(t){return"/"===t.charAt(t.length-1)?t.slice(0,-1):t},qt=function(t){var e=t.pathname,n=t.search,r=t.hash,o=e||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o},$t=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Ft=function(t,e,n,r){var o=void 0;"string"==typeof t?(o=function(t){var e=t||"/",n="",r="",o=e.indexOf("#");-1!==o&&(r=e.substr(o),e=e.substr(0,o));var i=e.indexOf("?");return-1!==i&&(n=e.substr(i),e=e.substr(0,i)),{pathname:e,search:"?"===n?"":n,hash:"#"===r?"":r}}(t)).state=e:(void 0===(o=$t({},t)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==e&&void 0===o.state&&(o.state=e));try{o.pathname=decodeURI(o.pathname)}catch(t){throw t instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):t}return n&&(o.key=n),r?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=t&&t.split("/")||[],r=e&&e.split("/")||[],o=t&&Ut(t),i=e&&Ut(e),a=o||i;if(t&&Ut(t)?r=n:n.length&&(r.pop(),r=r.concat(n)),!r.length)return"/";var c=void 0;if(r.length){var u=r[r.length-1];c="."===u||".."===u||""===u}else c=!1;for(var s=0,l=r.length;l>=0;l--){var p=r[l];"."===p?Lt(r,l):".."===p?(Lt(r,l),s++):s&&(Lt(r,l),s--)}if(!a)for(;s--;s)r.unshift("..");!a||""===r[0]||r[0]&&Ut(r[0])||r.unshift("");var f=r.join("/");return c&&"/"!==f.substr(-1)&&(f+="/"),f}(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o},Wt=function(t,e){return t.pathname===e.pathname&&t.search===e.search&&t.hash===e.hash&&t.key===e.key&&function t(e,n){if(e===n)return!0;if(null==e||null==n)return!1;if(Array.isArray(e))return Array.isArray(n)&&e.length===n.length&&e.every(function(e,r){return t(e,n[r])});var r=void 0===e?"undefined":Mt(e);if(r!==(void 0===n?"undefined":Mt(n)))return!1;if("object"===r){var o=e.valueOf(),i=n.valueOf();if(o!==e||i!==n)return t(o,i);var a=Object.keys(e),c=Object.keys(n);return a.length===c.length&&a.every(function(r){return t(e[r],n[r])})}return!1}(t.state,e.state)},Vt=function(){var t=null,e=[];return{setPrompt:function(e){return At(null==t,"A history supports only one prompt at a time"),t=e,function(){t===e&&(t=null)}},confirmTransitionTo:function(e,n,r,o){if(null!=t){var i="function"==typeof t?t(e,n):t;"string"==typeof i?"function"==typeof r?r(i,o):(At(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),o(!0)):o(!1!==i)}else o(!0)},appendListener:function(t){var n=!0,r=function(){n&&t.apply(void 0,arguments)};return e.push(r),function(){n=!1,e=e.filter(function(t){return t!==r})}},notifyListeners:function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];e.forEach(function(t){return t.apply(void 0,n)})}}},Yt=!("undefined"==typeof window||!window.document||!window.document.createElement),Kt=function(t,e,n){return t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent("on"+e,n)},Jt=function(t,e,n){return t.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent("on"+e,n)},Gt=function(t,e){return e(window.confirm(t))},zt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Xt=function(){try{return window.history.state||{}}catch(t){return{}}},Zt=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_t(Yt,"Browser history needs a DOM");var e,n=window.history,r=(-1===(e=window.navigator.userAgent).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,o=!(-1===window.navigator.userAgent.indexOf("Trident")),i=t.forceRefresh,a=void 0!==i&&i,c=t.getUserConfirmation,u=void 0===c?Gt:c,s=t.keyLength,l=void 0===s?6:s,p=t.basename?Dt(Ht(t.basename)):"",f=function(t){var e=t||{},n=e.key,r=e.state,o=window.location,i=o.pathname+o.search+o.hash;return At(!p||Nt(i,p),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+i+'" to begin with "'+p+'".'),p&&(i=Bt(i,p)),Ft(i,r,n)},h=function(){return Math.random().toString(36).substr(2,l)},d=Vt(),y=function(t){Qt(k,t),k.length=n.length,d.notifyListeners(k.location,k.action)},v=function(t){(function(t){return void 0===t.state&&-1===navigator.userAgent.indexOf("CriOS")})(t)||b(f(t.state))},m=function(){b(f(Xt()))},g=!1,b=function(t){if(g)g=!1,y();else{d.confirmTransitionTo(t,"POP",u,function(e){e?y({action:"POP",location:t}):w(t)})}},w=function(t){var e=k.location,n=x.indexOf(e.key);-1===n&&(n=0);var r=x.indexOf(t.key);-1===r&&(r=0);var o=n-r;o&&(g=!0,j(o))},O=f(Xt()),x=[O.key],P=function(t){return p+qt(t)},j=function(t){n.go(t)},E=0,C=function(t){1===(E+=t)?(Kt(window,"popstate",v),o&&Kt(window,"hashchange",m)):0===E&&(Jt(window,"popstate",v),o&&Jt(window,"hashchange",m))},R=!1,k={length:n.length,action:"POP",location:O,createHref:P,push:function(t,e){At(!("object"===(void 0===t?"undefined":zt(t))&&void 0!==t.state&&void 0!==e),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var o=Ft(t,e,h(),k.location);d.confirmTransitionTo(o,"PUSH",u,function(t){if(t){var e=P(o),i=o.key,c=o.state;if(r)if(n.pushState({key:i,state:c},null,e),a)window.location.href=e;else{var u=x.indexOf(k.location.key),s=x.slice(0,-1===u?0:u+1);s.push(o.key),x=s,y({action:"PUSH",location:o})}else At(void 0===c,"Browser history cannot push state in browsers that do not support HTML5 history"),window.location.href=e}})},replace:function(t,e){At(!("object"===(void 0===t?"undefined":zt(t))&&void 0!==t.state&&void 0!==e),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var o=Ft(t,e,h(),k.location);d.confirmTransitionTo(o,"REPLACE",u,function(t){if(t){var e=P(o),i=o.key,c=o.state;if(r)if(n.replaceState({key:i,state:c},null,e),a)window.location.replace(e);else{var u=x.indexOf(k.location.key);-1!==u&&(x[u]=o.key),y({action:"REPLACE",location:o})}else At(void 0===c,"Browser history cannot replace state in browsers that do not support HTML5 history"),window.location.replace(e)}})},go:j,goBack:function(){return j(-1)},goForward:function(){return j(1)},block:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=d.setPrompt(t);return R||(C(1),R=!0),function(){return R&&(R=!1,C(-1)),e()}},listen:function(t){var e=d.appendListener(t);return C(1),function(){C(-1),e()}}};return k},te=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},ee={hashbang:{encodePath:function(t){return"!"===t.charAt(0)?t:"!/"+It(t)},decodePath:function(t){return"!"===t.charAt(0)?t.substr(1):t}},noslash:{encodePath:It,decodePath:Ht},slash:{encodePath:Ht,decodePath:Ht}},ne=function(){var t=window.location.href,e=t.indexOf("#");return-1===e?"":t.substring(e+1)},re=function(t){var e=window.location.href.indexOf("#");window.location.replace(window.location.href.slice(0,e>=0?e:0)+"#"+t)},oe=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_t(Yt,"Hash history needs a DOM");var e=window.history,n=-1===window.navigator.userAgent.indexOf("Firefox"),r=t.getUserConfirmation,o=void 0===r?Gt:r,i=t.hashType,a=void 0===i?"slash":i,c=t.basename?Dt(Ht(t.basename)):"",u=ee[a],s=u.encodePath,l=u.decodePath,p=function(){var t=l(ne());return At(!c||Nt(t,c),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+t+'" to begin with "'+c+'".'),c&&(t=Bt(t,c)),Ft(t)},f=Vt(),h=function(t){te(R,t),R.length=e.length,f.notifyListeners(R.location,R.action)},d=!1,y=null,v=function(){var t=ne(),e=s(t);if(t!==e)re(e);else{var n=p(),r=R.location;if(!d&&Wt(r,n))return;if(y===qt(n))return;y=null,m(n)}},m=function(t){if(d)d=!1,h();else{f.confirmTransitionTo(t,"POP",o,function(e){e?h({action:"POP",location:t}):g(t)})}},g=function(t){var e=R.location,n=x.lastIndexOf(qt(e));-1===n&&(n=0);var r=x.lastIndexOf(qt(t));-1===r&&(r=0);var o=n-r;o&&(d=!0,P(o))},b=ne(),w=s(b);b!==w&&re(w);var O=p(),x=[qt(O)],P=function(t){At(n,"Hash history go(n) causes a full page reload in this browser"),e.go(t)},j=0,E=function(t){1===(j+=t)?Kt(window,"hashchange",v):0===j&&Jt(window,"hashchange",v)},C=!1,R={length:e.length,action:"POP",location:O,createHref:function(t){return"#"+s(c+qt(t))},push:function(t,e){At(void 0===e,"Hash history cannot push state; it is ignored");var n=Ft(t,void 0,void 0,R.location);f.confirmTransitionTo(n,"PUSH",o,function(t){if(t){var e=qt(n),r=s(c+e);if(ne()!==r){y=e,function(t){window.location.hash=t}(r);var o=x.lastIndexOf(qt(R.location)),i=x.slice(0,-1===o?0:o+1);i.push(e),x=i,h({action:"PUSH",location:n})}else At(!1,"Hash history cannot PUSH the same path; a new entry will not be added to the history stack"),h()}})},replace:function(t,e){At(void 0===e,"Hash history cannot replace state; it is ignored");var n=Ft(t,void 0,void 0,R.location);f.confirmTransitionTo(n,"REPLACE",o,function(t){if(t){var e=qt(n),r=s(c+e);ne()!==r&&(y=e,re(r));var o=x.indexOf(qt(R.location));-1!==o&&(x[o]=e),h({action:"REPLACE",location:n})}})},go:P,goBack:function(){return P(-1)},goForward:function(){return P(1)},block:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=f.setPrompt(t);return C||(E(1),C=!0),function(){return C&&(C=!1,E(-1)),e()}},listen:function(t){var e=f.appendListener(t);return E(1),function(){E(-1),e()}}};return R};var ie=Object.getOwnPropertySymbols,ae=Object.prototype.hasOwnProperty,ce=Object.prototype.propertyIsEnumerable;(function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(t){r[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}})()&&Object.assign;var ue="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";function se(){}(function(t){t.exports=function(){function t(t,e,n,r,o,i){if(i!==ue){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e};return n.checkPropTypes=se,n.PropTypes=n,n}()})(le={exports:{}},le.exports);var le,pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fe=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},he=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},de=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)},ye=function(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n},ve=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e},me=function(t){function n(){var e,r;fe(this,n);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return e=r=ve(this,t.call.apply(t,[this].concat(i))),r.history=Zt(r.props),ve(r,e)}return de(n,t),n.prototype.render=function(){return e.createElement(I,{history:this.history,children:this.props.children})},n}(e.Component),ge=function(t){function n(){var e,r;fe(this,n);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return e=r=ve(this,t.call.apply(t,[this].concat(i))),r.history=oe(r.props),ve(r,e)}return de(n,t),n.prototype.render=function(){return e.createElement(I,{history:this.history,children:this.props.children})},n}(e.Component);var be=function(t){function n(){return fe(this,n),ve(this,t.apply(this,arguments))}return de(n,t),n.prototype.handleClick=function(t,e){(this.props.onClick&&this.props.onClick(t),t.defaultPrevented||0!==t.button||this.props.target||function(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}(t))||(t.preventDefault(),(this.props.replace?e.history.replace:e.history.push)(this.props.to))},n.prototype.render=function(){var t=this,n=this.props,r=n.innerRef,o=(n.replace,n.to),i=ye(n,["innerRef","replace","to"]);return e.createElement(T.Consumer,null,function(n){n||_t(!1);var a="string"==typeof o?Ft(o,null,null,n.location):o,c=a?n.history.createHref(a):"";return e.createElement("a",he({},i,{onClick:function(e){return t.handleClick(e,n)},href:c,ref:r}))})},n}(e.Component);function we(t){var n=t["aria-current"],r=t.activeClassName,o=t.activeStyle,i=t.className,a=t.exact,c=t.isActive,u=t.location,s=t.strict,l=t.style,p=t.to,f=ye(t,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","strict","style","to"]),h="object"===(void 0===p?"undefined":pe(p))?p.pathname:p,d=h&&h.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1");return e.createElement(dt,{path:d,exact:a,strict:s,location:u,children:function(t){var a=t.location,u=t.match,s=!!(c?c(u,a):u),h=s?function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.filter(function(t){return t}).join(" ")}(i,r):i,d=s?Object.assign({},l,o):l;return e.createElement(be,he({"aria-current":s&&n||null,className:h,style:d,to:p},f))}})}be.defaultProps={replace:!1},we.defaultProps={"aria-current":"page",activeClassName:"active"},t.BrowserRouter=me,t.HashRouter=ge,t.Link=be,t.NavLink=we,t.MemoryRouter=N,t.Prompt=D,t.Redirect=ut,t.Route=dt,t.Router=I,t.StaticRouter=wt,t.Switch=Ot,t.generatePath=ct,t.matchPath=ft,t.withRouter=function(t){var n=function(n){var r=n.wrappedComponentRef,o=L(n,["wrappedComponentRef"]);return e.createElement(dt,{children:function(n){return e.createElement(t,_({},o,n,{ref:r}))}})};return n.displayName="withRouter("+(t.displayName||t.name)+")",n.WrappedComponent=t,Tt(n,t)},t.__RouterContext=T,Object.defineProperty(t,"__esModule",{value:!0})});
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],e):e(t.ReactRouterDOM={},t.React)}(this,function(t,d){"use strict";d=d&&d.hasOwnProperty("default")?d.default:d;var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function r(t,e){return t(e={exports:{}},e.exports),e.exports}var o=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;(function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(t){r[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}})()&&Object.assign;function c(){}var h=r(function(t){t.exports=function(){function t(t,e,n,r,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function e(){return t}var n={array:t.isRequired=t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e};return n.checkPropTypes=c,n.PropTypes=n}()}),u="__global_unique_id__",y=function(){return e[u]=(e[u]||0)+1};function s(t){return function(){return t}}var l=function(){};l.thatReturns=s,l.thatReturnsFalse=s(!1),l.thatReturnsTrue=s(!0),l.thatReturnsNull=s(null),l.thatReturnsThis=function(){return this},l.thatReturnsArgument=function(t){return t};var v=l,p=r(function(t,e){e.__esModule=!0;n(d);var c=n(h),u=n(y);n(v);function n(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function p(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var f=1073741823;e.default=function(t,a){var e,n,r="__create-react-context-"+(0,u.default)()+"__",o=function(c){function u(){var t,e,n,r;s(this,u);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return(t=e=l(this,c.call.apply(c,[this].concat(i)))).emitter=(n=e.props.value,r=[],{on:function(t){r.push(t)},off:function(e){r=r.filter(function(t){return t!==e})},get:function(){return n},set:function(t,e){n=t,r.forEach(function(t){return t(n,e)})}}),l(e,t)}return p(u,c),u.prototype.getChildContext=function(){var t;return(t={})[r]=this.emitter,t},u.prototype.componentWillReceiveProps=function(t){if(this.props.value!==t.value){var e=this.props.value,n=t.value,r=void 0;((o=e)===(i=n)?0!==o||1/o==1/i:o!=o&&i!=i)?r=0:(r="function"==typeof a?a(e,n):f,0!=(r|=0)&&this.emitter.set(t.value,r))}var o,i},u.prototype.render=function(){return this.props.children},u}(d.Component);o.childContextTypes=((e={})[r]=c.default.object.isRequired,e);var i=function(i){function a(){var t,n;s(this,a);for(var e=arguments.length,r=Array(e),o=0;o<e;o++)r[o]=arguments[o];return(t=n=l(this,i.call.apply(i,[this].concat(r)))).state={value:n.getValue()},n.onUpdate=function(t,e){0!=((0|n.observedBits)&e)&&n.setState({value:n.getValue()})},l(n,t)}return p(a,i),a.prototype.componentWillReceiveProps=function(t){var e=t.observedBits;this.observedBits=null==e?f:e},a.prototype.componentDidMount=function(){this.context[r]&&this.context[r].on(this.onUpdate);var t=this.props.observedBits;this.observedBits=null==t?f:t},a.prototype.componentWillUnmount=function(){this.context[r]&&this.context[r].off(this.onUpdate)},a.prototype.getValue=function(){return this.context[r]?this.context[r].get():t},a.prototype.render=function(){return t=this.props.children,(Array.isArray(t)?t[0]:t)(this.state.value);var t},a}(d.Component);return i.contextTypes=((n={})[r]=c.default.object,n),{Provider:o,Consumer:i}},t.exports=e.default});n(p);var f=n(r(function(t,e){e.__esModule=!0;var n=o(d),r=o(p);function o(t){return t&&t.__esModule?t:{default:t}}e.default=n.default.createContext||r.default,t.exports=e.default})),g=function(){},m=function(t,e,n,r,o,i,a,c){if(!t){var u;if(void 0===e)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,r,o,i,a,c],l=0;(u=new Error(e.replace(/%s/g,function(){return s[l++]}))).name="Invariant Violation"}throw u.framesToPop=1,u}};function b(t){return"/"===t.charAt(0)}function w(t,e){for(var n=e,r=n+1,o=t.length;r<o;n+=1,r+=1)t[n]=t[r];t.pop()}var O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};var x=function(t){var e=t.pathname,n=t.search,r=t.hash,o=e||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o},P=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},j=function(t,e,n,r){var o=void 0;"string"==typeof t?(o=function(t){var e=t||"/",n="",r="",o=e.indexOf("#");-1!==o&&(r=e.substr(o),e=e.substr(0,o));var i=e.indexOf("?");return-1!==i&&(n=e.substr(i),e=e.substr(0,i)),{pathname:e,search:"?"===n?"":n,hash:"#"===r?"":r}}(t)).state=e:(void 0===(o=P({},t)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==e&&void 0===o.state&&(o.state=e));try{o.pathname=decodeURI(o.pathname)}catch(t){throw t instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):t}return n&&(o.key=n),r?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",n=t&&t.split("/")||[],r=e&&e.split("/")||[],o=t&&b(t),i=e&&b(e),a=o||i;if(t&&b(t)?r=n:n.length&&(r.pop(),r=r.concat(n)),!r.length)return"/";var c=void 0;if(r.length){var u=r[r.length-1];c="."===u||".."===u||""===u}else c=!1;for(var s=0,l=r.length;0<=l;l--){var p=r[l];"."===p?w(r,l):".."===p?(w(r,l),s++):s&&(w(r,l),s--)}if(!a)for(;s--;s)r.unshift("..");!a||""===r[0]||r[0]&&b(r[0])||r.unshift("");var f=r.join("/");return c&&"/"!==f.substr(-1)&&(f+="/"),f}(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o},E=function(t,e){return t.pathname===e.pathname&&t.search===e.search&&t.hash===e.hash&&t.key===e.key&&function n(e,r){if(e===r)return!0;if(null==e||null==r)return!1;if(Array.isArray(e))return Array.isArray(r)&&e.length===r.length&&e.every(function(t,e){return n(t,r[e])});var t=void 0===e?"undefined":O(e);if(t!==(void 0===r?"undefined":O(r)))return!1;if("object"!==t)return!1;var o=e.valueOf(),i=r.valueOf();if(o!==e||i!==r)return n(o,i);var a=Object.keys(e),c=Object.keys(r);return a.length===c.length&&a.every(function(t){return n(e[t],r[t])})}(t.state,e.state)},C=("undefined"==typeof window||!window.document||window.document.createElement,"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}),k=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},R=function(t,e,n){return Math.min(Math.max(t,e),n)},S=function(){var i,r,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},o=t.getUserConfirmation,e=t.initialEntries,n=void 0===e?["/"]:e,a=t.initialIndex,c=void 0===a?0:a,u=t.keyLength,s=void 0===u?6:u,l=(i=null,r=[],{setPrompt:function(t){return g(null==i,"A history supports only one prompt at a time"),i=t,function(){i===t&&(i=null)}},confirmTransitionTo:function(t,e,n,r){if(null!=i){var o="function"==typeof i?i(t,e):i;"string"==typeof o?"function"==typeof n?n(o,r):(g(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),r(!0)):r(!1!==o)}else r(!0)},appendListener:function(t){var e=!0,n=function(){e&&t.apply(void 0,arguments)};return r.push(n),function(){e=!1,r=r.filter(function(t){return t!==n})}},notifyListeners:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];r.forEach(function(t){return t.apply(void 0,e)})}}),p=function(t){k(m,t),m.length=m.entries.length,l.notifyListeners(m.location,m.action)},f=function(){return Math.random().toString(36).substr(2,s)},h=R(c,0,n.length-1),d=n.map(function(t){return j(t,void 0,"string"==typeof t?f():t.key||f())}),y=x,v=function(t){var e=R(m.index+t,0,m.entries.length-1),n=m.entries[e];l.confirmTransitionTo(n,"POP",o,function(t){t?p({action:"POP",location:n,index:e}):p()})},m={length:d.length,action:"POP",location:d[h],index:h,entries:d,createHref:y,push:function(t,e){g(!("object"===(void 0===t?"undefined":C(t))&&void 0!==t.state&&void 0!==e),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var r=j(t,e,f(),m.location);l.confirmTransitionTo(r,"PUSH",o,function(t){if(t){var e=m.index+1,n=m.entries.slice(0);n.length>e?n.splice(e,n.length-e,r):n.push(r),p({action:"PUSH",location:r,index:e,entries:n})}})},replace:function(t,e){g(!("object"===(void 0===t?"undefined":C(t))&&void 0!==t.state&&void 0!==e),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var n="REPLACE",r=j(t,e,f(),m.location);l.confirmTransitionTo(r,n,o,function(t){t&&(m.entries[m.index]=r,p({action:n,location:r}))})},go:v,goBack:function(){return v(-1)},goForward:function(){return v(1)},canGo:function(t){var e=m.index+t;return 0<=e&&e<m.entries.length},block:function(){var t=0<arguments.length&&void 0!==arguments[0]&&arguments[0];return l.setPrompt(t)},listen:function(t){return l.appendListener(t)}};return m},T=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)},A=W,_=I,U=function(t,e){return B(I(t,e))},M=B,L=F,H=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function I(t,e){for(var n,r,o=[],i=0,a=0,c="",u=e&&e.delimiter||"/";null!=(n=H.exec(t));){var s=n[0],l=n[1],p=n.index;if(c+=t.slice(a,p),a=p+s.length,l)c+=l[1];else{var f=t[a],h=n[2],d=n[3],y=n[4],v=n[5],m=n[6],g=n[7];c&&(o.push(c),c="");var b=null!=h&&null!=f&&f!==h,w="+"===m||"*"===m,O="?"===m||"*"===m,x=n[2]||u,P=y||v;o.push({name:d||i++,prefix:h||"",delimiter:x,optional:O,repeat:w,partial:b,asterisk:!!g,pattern:P?(r=P,r.replace(/([=!:$\/()])/g,"\\$1")):g?".*":"[^"+D(x)+"]+?"})}}return a<t.length&&(c+=t.substr(a)),c&&o.push(c),o}function N(t){return encodeURI(t).replace(/[\/?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function B(l){for(var p=new Array(l.length),t=0;t<l.length;t++)"object"==typeof l[t]&&(p[t]=new RegExp("^(?:"+l[t].pattern+")$"));return function(t,e){for(var n="",r=t||{},o=(e||{}).pretty?N:encodeURIComponent,i=0;i<l.length;i++){var a=l[i];if("string"!=typeof a){var c,u=r[a.name];if(null==u){if(a.optional){a.partial&&(n+=a.prefix);continue}throw new TypeError('Expected "'+a.name+'" to be defined')}if(T(u)){if(!a.repeat)throw new TypeError('Expected "'+a.name+'" to not repeat, but received `'+JSON.stringify(u)+"`");if(0===u.length){if(a.optional)continue;throw new TypeError('Expected "'+a.name+'" to not be empty')}for(var s=0;s<u.length;s++){if(c=o(u[s]),!p[i].test(c))throw new TypeError('Expected all "'+a.name+'" to match "'+a.pattern+'", but received `'+JSON.stringify(c)+"`");n+=(0===s?a.prefix:a.delimiter)+c}}else{if(c=a.asterisk?encodeURI(u).replace(/[?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}):o(u),!p[i].test(c))throw new TypeError('Expected "'+a.name+'" to match "'+a.pattern+'", but received "'+c+'"');n+=a.prefix+c}}else n+=a}return n}}function D(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function q(t,e){return t.keys=e,t}function $(t){return t.sensitive?"":"i"}function F(t,e,n){T(e)||(n=e||n,e=[]);for(var r=(n=n||{}).strict,o=!1!==n.end,i="",a=0;a<t.length;a++){var c=t[a];if("string"==typeof c)i+=D(c);else{var u=D(c.prefix),s="(?:"+c.pattern+")";e.push(c),c.repeat&&(s+="(?:"+u+s+")*"),i+=s=c.optional?c.partial?u+"("+s+")?":"(?:"+u+"("+s+"))?":u+"("+s+")"}}var l=D(n.delimiter||"/"),p=i.slice(-l.length)===l;return r||(i=(p?i.slice(0,-l.length):i)+"(?:"+l+"(?=$))?"),i+=o?"$":r&&p?"":"(?="+l+"|$)",q(new RegExp("^"+i,$(n)),e)}function W(t,e,n){return T(e)||(n=e||n,e=[]),n=n||{},t instanceof RegExp?function(t,e){var n=t.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)e.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return q(t,e)}(t,e):T(t)?function(t,e,n){for(var r=[],o=0;o<t.length;o++)r.push(W(t[o],e,n).source);return q(new RegExp("(?:"+r.join("|")+")",$(n)),e)}(t,e,n):(r=e,F(I(t,o=n),r,o));var r,o}A.parse=_,A.compile=U,A.tokensToFunction=M,A.tokensToRegExp=L;var V={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Y={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},K=Object.defineProperty,J=Object.getOwnPropertyNames,G=Object.getOwnPropertySymbols,z=Object.getOwnPropertyDescriptor,Q=Object.getPrototypeOf,X=Q&&Q(Object);var Z=function t(e,n,r){if("string"==typeof n)return e;if(X){var o=Q(n);o&&o!==X&&t(e,o,r)}var i=J(n);G&&(i=i.concat(G(n)));for(var a=0;a<i.length;++a){var c=i[a];if(!(V[c]||Y[c]||r&&r[c])){var u=z(n,c);try{K(e,c,u)}catch(t){}}}return e},tt=f();tt.Provider.displayName="Router.Provider",tt.Consumer.displayName="Router.Consumer";var et=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},nt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},rt=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)},ot=function(t,e){var n={};for(var r in t)0<=e.indexOf(r)||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n},it=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e};function at(t,e){return{history:t.history,location:e.location,match:ct.computeRootMatch(e.location.pathname),staticContext:t.staticContext}}var ct=function(n){function r(t){et(this,r);var e=it(this,n.call(this,t));return e.state={location:t.history.location},e._isMounted=!1,e._pendingLocation=null,t.staticContext||(e.unlisten=t.history.listen(function(t){e._isMounted?e.setState({location:t}):e._pendingLocation=t})),e}return rt(r,n),r.computeRootMatch=function(t){return{path:"/",url:"/",params:{},isExact:"/"===t}},r.prototype.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},r.prototype.componentWillUnmount=function(){this.unlisten&&this.unlisten()},r.prototype.render=function(){var t=at(this.props,this.state);return d.createElement(tt.Provider,{children:this.props.children||null,value:t})},r}(d.Component);d.createContext||(ct.childContextTypes={router:h.object.isRequired},ct.prototype.getChildContext=function(){return{router:at(this.props,this.state)}});var ut=function(i){function a(){var t,e;et(this,a);for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e=it(this,i.call.apply(i,[this].concat(r)))).history=S(e.props),it(e,t)}return rt(a,i),a.prototype.render=function(){return d.createElement(ct,{history:this.history,children:this.props.children})},a}(d.Component),st=function(t){function e(){return et(this,e),it(this,t.apply(this,arguments))}return rt(e,t),e.prototype.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},e.prototype.componentDidUpdate=function(t){this.props.onUpdate&&this.props.onUpdate.call(this,this,t)},e.prototype.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},e.prototype.render=function(){return null},e}(d.Component);function lt(e){return d.createElement(tt.Consumer,null,function(t){if(t||m(!1),!e.when||t.staticContext)return null;var n=t.history.block,r=e.message;return d.createElement(st,{onMount:function(t){t.release=n(r)},onUpdate:function(t,e){e.message!==r&&(t.release(),t.release=n(r))},onUnmount:function(t){t.release()}})})}var pt={},ft=1e4,ht=0;function dt(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"/",e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return"/"===t?t:function(t){if(pt[t])return pt[t];var e=A.compile(t);return ht<ft&&(pt[t]=e,ht++),e}(t)(e,{pretty:!0})}function yt(e){return d.createElement(tt.Consumer,null,function(t){t||m(!1);var n=e.push?t.history.push:t.history.replace,r=j(e.computedMatch?"string"==typeof e.to?dt(e.to,e.computedMatch.params):Object.assign({},e.to,{pathname:dt(e.to.pathname,e.computedMatch.params)}):e.to);return t.staticContext?(n(r),null):d.createElement(st,{onMount:function(){n(r)},onUpdate:function(t,e){E(e.to,r)||n(r)},to:r})})}yt.defaultProps={push:!(lt.defaultProps={when:!0})};var vt={},mt=1e4,gt=0;function bt(s){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};"string"==typeof t&&(t={path:t});var e=t,n=e.path,r=e.exact,l=void 0!==r&&r,o=e.strict,p=void 0!==o&&o,i=e.sensitive,f=void 0!==i&&i;return[].concat(n).reduce(function(t,e){if(t)return t;var n=function(t,e){var n=""+e.end+e.strict+e.sensitive,r=vt[n]||(vt[n]={});if(r[t])return r[t];var o=[],i={regexp:A(t,o,e),keys:o};return gt<mt&&(r[t]=i,gt++),i}(e,{end:l,strict:p,sensitive:f}),r=n.regexp,o=n.keys,i=r.exec(s);if(!i)return null;var a=i[0],c=i.slice(1),u=s===a;return l&&!u?null:{path:e,url:"/"===e&&""===a?"/":a,isExact:u,params:o.reduce(function(t,e,n){return t[e.name]=c[n],t},{})}},null)}function wt(t,e){var n=t.location||e.location,r=t.computedMatch?t.computedMatch:t.path?bt(n.pathname,t):e.match;return Object.assign({},e,{location:n,match:r})}var Ot=function(t){function e(){return et(this,e),it(this,t.apply(this,arguments))}return rt(e,t),e.prototype.render=function(){var c=this;return d.createElement(tt.Consumer,null,function(t){t||m(!1);var e,n=wt(c.props,t),r=c.props,o=r.children,i=r.component,a=r.render;return Array.isArray(o)&&0===o.length&&(o=null),"function"==typeof o&&void 0===(o=o(n))&&(o=null),d.createElement(tt.Provider,{value:n},o&&(e=o,0!==d.Children.count(e))?o:n.match?i?d.createElement(i,n):a?a(n):null:null)})},e}(d.Component);function xt(t){return"/"===t.charAt(0)?t:"/"+t}function Pt(t,e){return t?Object.assign({},e,{pathname:xt(t)+e.pathname}):e}function jt(t){return"string"==typeof t?t:x(t)}function Et(t){return function(){m(!1)}}function Ct(){}d.createContext||(Ot.contextTypes={router:h.object.isRequired},Ot.childContextTypes={router:h.object.isRequired},Ot.prototype.getChildContext=function(){this.context.router||m(!1);var t=this.context.router;return{router:wt(this.props,t)}});var kt=function(i){function a(){var t,o;et(this,a);for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=o=it(this,i.call.apply(i,[this].concat(n)))).createHref=function(t){return xt(o.props.basename+jt(t))},o.handlePush=function(t){var e=o.props,n=e.basename,r=e.context;r.action="PUSH",r.location=Pt(n,j(t)),r.url=jt(r.location)},o.handleReplace=function(t){var e=o.props,n=e.basename,r=e.context;r.action="REPLACE",r.location=Pt(n,j(t)),r.url=jt(r.location)},o.handleListen=function(){return Ct},o.handleBlock=function(){return Ct},it(o,t)}return rt(a,i),a.prototype.render=function(){var t=this.props,e=t.basename,n=(t.context,t.location),r=ot(t,["basename","context","location"]),o={createHref:this.createHref,action:"POP",location:function(t,e){if(!t)return e;var n=xt(t);return 0!==e.pathname.indexOf(n)?e:Object.assign({},e,{pathname:e.pathname.substr(n.length)})}(e,j(n)),push:this.handlePush,replace:this.handleReplace,go:Et(),goBack:Et(),goForward:Et(),listen:this.handleListen,block:this.handleBlock};return d.createElement(ct,nt({},r,{history:o,staticContext:this.props.context||{}}))},a}(d.Component);kt.defaultProps={basename:"",location:"/"};var Rt=function(t){function e(){return et(this,e),it(this,t.apply(this,arguments))}return rt(e,t),e.prototype.render=function(){var t=this;return d.createElement(tt.Consumer,null,function(n){n||m(!1);var r=t.props.location||n.location,o=void 0,i=void 0;return d.Children.forEach(t.props.children,function(t){if(null==i&&d.isValidElement(t)){var e=(o=t).props.path||t.props.from;i=e?bt(r.pathname,Object.assign({},t.props,{path:e})):n.match}}),i?d.cloneElement(o,{location:r,computedMatch:i}):null})},e}(d.Component);var St=function(){},Tt=function(t,e,n,r,o,i,a,c){if(!t){var u;if(void 0===e)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,r,o,i,a,c],l=0;(u=new Error(e.replace(/%s/g,function(){return s[l++]}))).name="Invariant Violation"}throw u.framesToPop=1,u}};function At(t){return"/"===t.charAt(0)}function _t(t,e){for(var n=e,r=n+1,o=t.length;r<o;n+=1,r+=1)t[n]=t[r];t.pop()}var Ut="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};var Mt=function(t){return"/"===t.charAt(0)?t:"/"+t},Lt=function(t){return"/"===t.charAt(0)?t.substr(1):t},Ht=function(t,e){return new RegExp("^"+e+"(\\/|\\?|#|$)","i").test(t)},It=function(t,e){return Ht(t,e)?t.substr(e.length):t},Nt=function(t){return"/"===t.charAt(t.length-1)?t.slice(0,-1):t},Bt=function(t){var e=t.pathname,n=t.search,r=t.hash,o=e||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o},Dt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},qt=function(t,e,n,r){var o=void 0;"string"==typeof t?(o=function(t){var e=t||"/",n="",r="",o=e.indexOf("#");-1!==o&&(r=e.substr(o),e=e.substr(0,o));var i=e.indexOf("?");return-1!==i&&(n=e.substr(i),e=e.substr(0,i)),{pathname:e,search:"?"===n?"":n,hash:"#"===r?"":r}}(t)).state=e:(void 0===(o=Dt({},t)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==e&&void 0===o.state&&(o.state=e));try{o.pathname=decodeURI(o.pathname)}catch(t){throw t instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):t}return n&&(o.key=n),r?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",n=t&&t.split("/")||[],r=e&&e.split("/")||[],o=t&&At(t),i=e&&At(e),a=o||i;if(t&&At(t)?r=n:n.length&&(r.pop(),r=r.concat(n)),!r.length)return"/";var c=void 0;if(r.length){var u=r[r.length-1];c="."===u||".."===u||""===u}else c=!1;for(var s=0,l=r.length;0<=l;l--){var p=r[l];"."===p?_t(r,l):".."===p?(_t(r,l),s++):s&&(_t(r,l),s--)}if(!a)for(;s--;s)r.unshift("..");!a||""===r[0]||r[0]&&At(r[0])||r.unshift("");var f=r.join("/");return c&&"/"!==f.substr(-1)&&(f+="/"),f}(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o},$t=function(t,e){return t.pathname===e.pathname&&t.search===e.search&&t.hash===e.hash&&t.key===e.key&&function n(e,r){if(e===r)return!0;if(null==e||null==r)return!1;if(Array.isArray(e))return Array.isArray(r)&&e.length===r.length&&e.every(function(t,e){return n(t,r[e])});var t=void 0===e?"undefined":Ut(e);if(t!==(void 0===r?"undefined":Ut(r)))return!1;if("object"!==t)return!1;var o=e.valueOf(),i=r.valueOf();if(o!==e||i!==r)return n(o,i);var a=Object.keys(e),c=Object.keys(r);return a.length===c.length&&a.every(function(t){return n(e[t],r[t])})}(t.state,e.state)},Ft=function(){var i=null,r=[];return{setPrompt:function(t){return St(null==i,"A history supports only one prompt at a time"),i=t,function(){i===t&&(i=null)}},confirmTransitionTo:function(t,e,n,r){if(null!=i){var o="function"==typeof i?i(t,e):i;"string"==typeof o?"function"==typeof n?n(o,r):(St(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),r(!0)):r(!1!==o)}else r(!0)},appendListener:function(t){var e=!0,n=function(){e&&t.apply(void 0,arguments)};return r.push(n),function(){e=!1,r=r.filter(function(t){return t!==n})}},notifyListeners:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];r.forEach(function(t){return t.apply(void 0,e)})}}},Wt=!("undefined"==typeof window||!window.document||!window.document.createElement),Vt=function(t,e,n){return t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent("on"+e,n)},Yt=function(t,e,n){return t.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent("on"+e,n)},Kt=function(t,e){return e(window.confirm(t))},Jt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},zt="popstate",Qt="hashchange",Xt=function(){try{return window.history.state||{}}catch(t){return{}}},Zt=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};Tt(Wt,"Browser history needs a DOM");var e,c=window.history,u=(-1===(e=window.navigator.userAgent).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,n=!(-1===window.navigator.userAgent.indexOf("Trident")),r=t.forceRefresh,s=void 0!==r&&r,o=t.getUserConfirmation,l=void 0===o?Kt:o,i=t.keyLength,a=void 0===i?6:i,p=t.basename?Nt(Mt(t.basename)):"",f=function(t){var e=t||{},n=e.key,r=e.state,o=window.location,i=o.pathname+o.search+o.hash;return St(!p||Ht(i,p),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+i+'" to begin with "'+p+'".'),p&&(i=It(i,p)),qt(i,r,n)},h=function(){return Math.random().toString(36).substr(2,a)},d=Ft(),y=function(t){Gt(R,t),R.length=c.length,d.notifyListeners(R.location,R.action)},v=function(t){void 0===t.state&&-1===navigator.userAgent.indexOf("CriOS")||b(f(t.state))},m=function(){b(f(Xt()))},g=!1,b=function(e){if(g)g=!1,y();else{d.confirmTransitionTo(e,"POP",l,function(t){t?y({action:"POP",location:e}):w(e)})}},w=function(t){var e=R.location,n=x.indexOf(e.key);-1===n&&(n=0);var r=x.indexOf(t.key);-1===r&&(r=0);var o=n-r;o&&(g=!0,j(o))},O=f(Xt()),x=[O.key],P=function(t){return p+Bt(t)},j=function(t){c.go(t)},E=0,C=function(t){1===(E+=t)?(Vt(window,zt,v),n&&Vt(window,Qt,m)):0===E&&(Yt(window,zt,v),n&&Yt(window,Qt,m))},k=!1,R={length:c.length,action:"POP",location:O,createHref:P,push:function(t,e){St(!("object"===(void 0===t?"undefined":Jt(t))&&void 0!==t.state&&void 0!==e),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var a=qt(t,e,h(),R.location);d.confirmTransitionTo(a,"PUSH",l,function(t){if(t){var e=P(a),n=a.key,r=a.state;if(u)if(c.pushState({key:n,state:r},null,e),s)window.location.href=e;else{var o=x.indexOf(R.location.key),i=x.slice(0,-1===o?0:o+1);i.push(a.key),x=i,y({action:"PUSH",location:a})}else St(void 0===r,"Browser history cannot push state in browsers that do not support HTML5 history"),window.location.href=e}})},replace:function(t,e){St(!("object"===(void 0===t?"undefined":Jt(t))&&void 0!==t.state&&void 0!==e),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var i="REPLACE",a=qt(t,e,h(),R.location);d.confirmTransitionTo(a,i,l,function(t){if(t){var e=P(a),n=a.key,r=a.state;if(u)if(c.replaceState({key:n,state:r},null,e),s)window.location.replace(e);else{var o=x.indexOf(R.location.key);-1!==o&&(x[o]=a.key),y({action:i,location:a})}else St(void 0===r,"Browser history cannot replace state in browsers that do not support HTML5 history"),window.location.replace(e)}})},go:j,goBack:function(){return j(-1)},goForward:function(){return j(1)},block:function(){var t=0<arguments.length&&void 0!==arguments[0]&&arguments[0],e=d.setPrompt(t);return k||(C(1),k=!0),function(){return k&&(k=!1,C(-1)),e()}},listen:function(t){var e=d.appendListener(t);return C(1),function(){C(-1),e()}}};return R},te=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},ee="hashchange",ne={hashbang:{encodePath:function(t){return"!"===t.charAt(0)?t:"!/"+Lt(t)},decodePath:function(t){return"!"===t.charAt(0)?t.substr(1):t}},noslash:{encodePath:Lt,decodePath:Mt},slash:{encodePath:Mt,decodePath:Mt}},re=function(){var t=window.location.href,e=t.indexOf("#");return-1===e?"":t.substring(e+1)},oe=function(t){var e=window.location.href.indexOf("#");window.location.replace(window.location.href.slice(0,0<=e?e:0)+"#"+t)},ie=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};Tt(Wt,"Hash history needs a DOM");var e=window.history,n=-1===window.navigator.userAgent.indexOf("Firefox"),r=t.getUserConfirmation,c=void 0===r?Kt:r,o=t.hashType,i=void 0===o?"slash":o,u=t.basename?Nt(Mt(t.basename)):"",a=ne[i],s=a.encodePath,l=a.decodePath,p=function(){var t=l(re());return St(!u||Ht(t,u),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+t+'" to begin with "'+u+'".'),u&&(t=It(t,u)),qt(t)},f=Ft(),h=function(t){te(k,t),k.length=e.length,f.notifyListeners(k.location,k.action)},d=!1,y=null,v=function(){var t=re(),e=s(t);if(t!==e)oe(e);else{var n=p(),r=k.location;if(!d&&$t(r,n))return;if(y===Bt(n))return;y=null,m(n)}},m=function(e){if(d)d=!1,h();else{f.confirmTransitionTo(e,"POP",c,function(t){t?h({action:"POP",location:e}):g(e)})}},g=function(t){var e=k.location,n=x.lastIndexOf(Bt(e));-1===n&&(n=0);var r=x.lastIndexOf(Bt(t));-1===r&&(r=0);var o=n-r;o&&(d=!0,P(o))},b=re(),w=s(b);b!==w&&oe(w);var O=p(),x=[Bt(O)],P=function(t){St(n,"Hash history go(n) causes a full page reload in this browser"),e.go(t)},j=0,E=function(t){1===(j+=t)?Vt(window,ee,v):0===j&&Yt(window,ee,v)},C=!1,k={length:e.length,action:"POP",location:O,createHref:function(t){return"#"+s(u+Bt(t))},push:function(t,e){St(void 0===e,"Hash history cannot push state; it is ignored");var a=qt(t,void 0,void 0,k.location);f.confirmTransitionTo(a,"PUSH",c,function(t){if(t){var e,n=Bt(a),r=s(u+n);if(re()!==r){y=n,e=r,window.location.hash=e;var o=x.lastIndexOf(Bt(k.location)),i=x.slice(0,-1===o?0:o+1);i.push(n),x=i,h({action:"PUSH",location:a})}else St(!1,"Hash history cannot PUSH the same path; a new entry will not be added to the history stack"),h()}})},replace:function(t,e){St(void 0===e,"Hash history cannot replace state; it is ignored");var o="REPLACE",i=qt(t,void 0,void 0,k.location);f.confirmTransitionTo(i,o,c,function(t){if(t){var e=Bt(i),n=s(u+e);re()!==n&&(y=e,oe(n));var r=x.indexOf(Bt(k.location));-1!==r&&(x[r]=e),h({action:o,location:i})}})},go:P,goBack:function(){return P(-1)},goForward:function(){return P(1)},block:function(){var t=0<arguments.length&&void 0!==arguments[0]&&arguments[0],e=f.setPrompt(t);return C||(E(1),C=!0),function(){return C&&(C=!1,E(-1)),e()}},listen:function(t){var e=f.appendListener(t);return E(1),function(){E(-1),e()}}};return k},ae=Object.getOwnPropertySymbols,ce=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable;(function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(t){r[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}})()&&Object.assign;function se(){}r(function(t){t.exports=function(){function t(t,e,n,r,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function e(){return t}var n={array:t.isRequired=t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e};return n.checkPropTypes=se,n.PropTypes=n}()});var le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pe=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},fe=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},he=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)},de=function(t,e){var n={};for(var r in t)0<=e.indexOf(r)||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n},ye=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e},ve=function(i){function a(){var t,e;pe(this,a);for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e=ye(this,i.call.apply(i,[this].concat(r)))).history=Zt(e.props),ye(e,t)}return he(a,i),a.prototype.render=function(){return d.createElement(ct,{history:this.history,children:this.props.children})},a}(d.Component),me=function(i){function a(){var t,e;pe(this,a);for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e=ye(this,i.call.apply(i,[this].concat(r)))).history=ie(e.props),ye(e,t)}return he(a,i),a.prototype.render=function(){return d.createElement(ct,{history:this.history,children:this.props.children})},a}(d.Component);var ge=function(t){function e(){return pe(this,e),ye(this,t.apply(this,arguments))}return he(e,t),e.prototype.handleClick=function(t,e){var n;(this.props.onClick&&this.props.onClick(t),t.defaultPrevented||0!==t.button||this.props.target&&"_self"!==this.props.target||((n=t).metaKey||n.altKey||n.ctrlKey||n.shiftKey))||(t.preventDefault(),(this.props.replace?e.history.replace:e.history.push)(this.props.to))},e.prototype.render=function(){var r=this,t=this.props,o=t.innerRef,i=(t.replace,t.to),a=de(t,["innerRef","replace","to"]);return d.createElement(tt.Consumer,null,function(e){e||Tt(!1);var t="string"==typeof i?qt(i,null,null,e.location):i,n=t?e.history.createHref(t):"";return d.createElement("a",fe({},a,{onClick:function(t){return r.handleClick(t,e)},href:n,ref:o}))})},e}(d.Component);function be(t){var a=t["aria-current"],c=t.activeClassName,u=t.activeStyle,s=t.className,e=t.exact,l=t.isActive,n=t.location,r=t.strict,p=t.style,f=t.to,h=de(t,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","strict","style","to"]),o="object"===(void 0===f?"undefined":le(f))?f.pathname:f,i=o&&o.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1");return d.createElement(Ot,{path:i,exact:e,strict:r,location:n,children:function(t){var e=t.location,n=t.match,r=!!(l?l(n,e):n),o=r?function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.filter(function(t){return t}).join(" ")}(s,c):s,i=r?Object.assign({},p,u):p;return d.createElement(ge,fe({"aria-current":r&&a||null,className:o,style:i,to:f},h))}})}ge.defaultProps={replace:!1},be.defaultProps={"aria-current":"page",activeClassName:"active"},t.BrowserRouter=ve,t.HashRouter=me,t.Link=ge,t.NavLink=be,t.MemoryRouter=ut,t.Prompt=lt,t.Redirect=yt,t.Route=Ot,t.Router=ct,t.StaticRouter=kt,t.Switch=Rt,t.generatePath=dt,t.matchPath=bt,t.withRouter=function(r){var t=function(t){var e=t.wrappedComponentRef,n=ot(t,["wrappedComponentRef"]);return d.createElement(Ot,{children:function(t){return d.createElement(r,nt({},n,t,{ref:e}))}})};return t.displayName="withRouter("+(r.displayName||r.name)+")",t.WrappedComponent=r,Z(t,r)},t.__RouterContext=tt,Object.defineProperty(t,"__esModule",{value:!0})});

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

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

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