Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-router

Package Overview
Dependencies
Maintainers
2
Versions
576
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-router - npm Package Compare versions

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

warnAboutDeprecatedCJSRequire.js

2

cjs/react-router.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 warning_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,"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=!("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);o(warning_1$2);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)}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],g=n[7];i&&(r.push(i),i="");var v=null!=h&&null!=l&&l!==h,b="+"===m||"*"===m,R="?"===m||"*"===m,x=n[2]||c,P=d||y;r.push({name:f||o++,prefix:h||"",delimiter:x,optional:R,repeat:b,partial:v,asterisk:!!g,pattern:P?escapeGroup(P):g?".*":"[^"+escapeString(x)+"]+?"})}}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)}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 createContext=_interopDefault(require("create-react-context"));require("warning");var React=_interopDefault(require("react")),PropTypes=_interopDefault(require("prop-types")),history=require("history"),invariant=_interopDefault(require("invariant")),pathToRegexp=_interopDefault(require("path-to-regexp")),hoistStatics=_interopDefault(require("hoist-non-react-statics")),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=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[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 n={};for(var o in t)0<=e.indexOf(o)||Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);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(n){function o(t){classCallCheck(this,o);var e=possibleConstructorReturn(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 inherits(o,n),o.computeRootMatch=function(t){return{path:"/",url:"/",params:{},isExact:"/"===t}},o.prototype.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},o.prototype.componentWillUnmount=function(){this.unlisten&&this.unlisten()},o.prototype.render=function(){var t=getContext(this.props,this.state);return React.createElement(context.Provider,{children:this.props.children||null,value:t})},o}(React.Component);React.createContext||(Router.childContextTypes={router:PropTypes.object.isRequired},Router.prototype.getChildContext=function(){return{router:getContext(this.props,this.state)}});var MemoryRouter=function(a){function i(){var t,e;classCallCheck(this,i);for(var n=arguments.length,o=Array(n),r=0;r<n;r++)o[r]=arguments[r];return(t=e=possibleConstructorReturn(this,a.call.apply(a,[this].concat(o)))).history=history.createMemoryHistory(e.props),possibleConstructorReturn(e,t)}return inherits(i,a),i.prototype.render=function(){return React.createElement(Router,{history:this.history,children:this.props.children})},i}(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(e){return React.createElement(context.Consumer,null,function(t){if(t||invariant(!1),!e.when||t.staticContext)return null;var n=t.history.block,o=e.message;return React.createElement(Lifecycle,{onMount:function(t){t.release=n(o)},onUpdate:function(t,e){e.message!==o&&(t.release(),t.release=n(o))},onUnmount:function(t){t.release()}})})}Prompt.defaultProps={when:!0};var cache={},cacheLimit=1e4,cacheCount=0;function compilePath(t){if(cache[t])return cache[t];var e=pathToRegexp.compile(t);return cacheCount<cacheLimit&&(cache[t]=e,cacheCount++),e}function generatePath(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"/",e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return"/"===t?t:compilePath(t)(e,{pretty:!0})}function Redirect(e){return React.createElement(context.Consumer,null,function(t){t||invariant(!1);var n=e.push?t.history.push:t.history.replace,o=history.createLocation(e.computedMatch?"string"==typeof e.to?generatePath(e.to,e.computedMatch.params):Object.assign({},e.to,{pathname:generatePath(e.to.pathname,e.computedMatch.params)}):e.to);return t.staticContext?(n(o),null):React.createElement(Lifecycle,{onMount:function(){n(o)},onUpdate:function(t,e){history.locationsAreEqual(e.to,o)||n(o)},to:o})})}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,o=cache$1[n]||(cache$1[n]={});if(o[t])return o[t];var r=[],a={regexp:pathToRegexp(t,r,e),keys:r};return cacheCount$1<cacheLimit$1&&(o[t]=a,cacheCount$1++),a}function matchPath(u){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};"string"==typeof t&&(t={path:t});var e=t,n=e.path,o=e.exact,p=void 0!==o&&o,r=e.strict,l=void 0!==r&&r,a=e.sensitive,h=void 0!==a&&a;return[].concat(n).reduce(function(t,e){if(t)return t;var n=compilePath$1(e,{end:p,strict:l,sensitive:h}),o=n.regexp,r=n.keys,a=o.exec(u);if(!a)return null;var i=a[0],c=a.slice(1),s=u===i;return p&&!s?null:{path:e,url:"/"===e&&""===i?"/":i,isExact:s,params:r.reduce(function(t,e,n){return t[e.name]=c[n],t},{})}},null)}function isEmptyChildren(t){return 0===React.Children.count(t)}function getContext$1(t,e){var n=t.location||e.location,o=t.computedMatch?t.computedMatch:t.path?matchPath(n.pathname,t):e.match;return Object.assign({},e,{location:n,match:o})}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 i=this;return React.createElement(context.Consumer,null,function(t){t||invariant(!1);var e=getContext$1(i.props,t),n=i.props,o=n.children,r=n.component,a=n.render;return Array.isArray(o)&&0===o.length&&(o=null),"function"==typeof o&&void 0===(o=o(e))&&(o=null),React.createElement(context.Provider,{value:e},o&&!isEmptyChildren(o)?o:e.match?r?React.createElement(r,e):a?a(e):null:null)})},e}(React.Component);function addLeadingSlash(t){return"/"===t.charAt(0)?t:"/"+t}function addBasename(t,e){return t?Object.assign({},e,{pathname:addLeadingSlash(t)+e.pathname}):e}function stripBasename(t,e){if(!t)return e;var n=addLeadingSlash(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:history.createPath(t)}function staticHandler(t){return function(){invariant(!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);var t=this.context.router;return{router:getContext$1(this.props,t)}});var StaticRouter=function(a){function i(){var t,r;classCallCheck(this,i);for(var e=arguments.length,n=Array(e),o=0;o<e;o++)n[o]=arguments[o];return(t=r=possibleConstructorReturn(this,a.call.apply(a,[this].concat(n)))).createHref=function(t){return addLeadingSlash(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,history.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,history.createLocation(t)),o.url=createURL(o.location)},r.handleListen=function(){return noop},r.handleBlock=function(){return noop},possibleConstructorReturn(r,t)}return inherits(i,a),i.prototype.render=function(){var t=this.props,e=t.basename,n=(t.context,t.location),o=objectWithoutProperties(t,["basename","context","location"]),r={createHref:this.createHref,action:"POP",location:stripBasename(e,history.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({},o,{history:r,staticContext:this.props.context||{}}))},i}(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(n){n||invariant(!1);var o=t.props.location||n.location,r=void 0,a=void 0;return React.Children.forEach(t.props.children,function(t){if(null==a&&React.isValidElement(t)){var e=(r=t).props.path||t.props.from;a=e?matchPath(o.pathname,Object.assign({},t.props,{path:e})):n.match}}),a?React.cloneElement(r,{location:o,computedMatch:a}):null})},e}(React.Component);function withRouter(o){var t=function(t){var e=t.wrappedComponentRef,n=objectWithoutProperties(t,["wrappedComponentRef"]);return React.createElement(Route,{children:function(t){return React.createElement(o,_extends({},n,t,{ref:e}))}})};return t.displayName="withRouter("+(o.displayName||o.name)+")",t.WrappedComponent=o,hoistStatics(t,o)}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;
{
"name": "react-router",
"version": "4.4.0-beta.3",
"version": "4.4.0-beta.4",
"description": "Declarative routing for React",

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

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

@@ -33,5 +34,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",

@@ -62,2 +63,3 @@ "test": "jest"

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

@@ -73,8 +75,9 @@ "eslint-plugin-import": "^2.12.0",

"react-dom": "^16.5.2",
"rollup": "^0.60.0",
"rollup": "^0.66.6",
"rollup-plugin-babel": "^3.0.4",
"rollup-plugin-commonjs": "^9.1.3",
"rollup-plugin-node-resolve": "^3.3.0",
"rollup-plugin-replace": "^2.0.0",
"rollup-plugin-uglify": "^3.0.0"
"rollup-plugin-commonjs": "^9.2.0",
"rollup-plugin-node-resolve": "^3.4.0",
"rollup-plugin-replace": "^2.1.0",
"rollup-plugin-size-snapshot": "^0.7.0",
"rollup-plugin-uglify": "^6.0.0"
},

@@ -81,0 +84,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.ReactRouter={},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,u=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 c="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";function s(){}var p=o(function(t){t.exports=function(){function t(t,e,n,r,o,i){if(i!==c){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}()}),l=function(){},f=function(t,e,n,r,o,i,a,u){if(!t){var c;if(void 0===e)c=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,u],p=0;(c=new Error(e.replace(/%s/g,function(){return s[p++]}))).name="Invariant Violation"}throw c.framesToPop=1,c}};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 u=void 0;if(r.length){var c=r[r.length-1];u="."===c||".."===c||""===c}else u=!1;for(var s=0,p=r.length;p>=0;p--){var l=r[p];"."===l?d(r,p):".."===l?(d(r,p),s++):s&&(d(r,p),s--)}if(!a)for(;s--;s)r.unshift("..");!a||""===r[0]||r[0]&&h(r[0])||r.unshift("");var f=r.join("/");return u&&"/"!==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),u=Object.keys(n);return a.length===u.length&&a.every(function(r){return t(e[r],n[r])})}return!1}(t.state,e.state)},x=("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},w=function(t,e,n){return Math.min(Math.max(t,e),n)},j=function(){var t,e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.getUserConfirmation,o=n.initialEntries,i=void 0===o?["/"]:o,a=n.initialIndex,u=void 0===a?0:a,c=n.keyLength,s=void 0===c?6:c,p=(t=null,e=[],{setPrompt:function(e){return l(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):(l(!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)})}}),f=function(t){O(j,t),j.length=j.entries.length,p.notifyListeners(j.location,j.action)},h=function(){return Math.random().toString(36).substr(2,s)},d=w(u,0,i.length-1),y=i.map(function(t){return g(t,void 0,"string"==typeof t?h():t.key||h())}),m=v,b=function(t){var e=w(j.index+t,0,j.entries.length-1),n=j.entries[e];p.confirmTransitionTo(n,"POP",r,function(t){t?f({action:"POP",location:n,index:e}):f()})},j={length:y.length,action:"POP",location:y[d],index:d,entries:y,createHref:m,push:function(t,e){l(!("object"===(void 0===t?"undefined":x(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 n=g(t,e,h(),j.location);p.confirmTransitionTo(n,"PUSH",r,function(t){if(t){var e=j.index+1,r=j.entries.slice(0);r.length>e?r.splice(e,r.length-e,n):r.push(n),f({action:"PUSH",location:n,index:e,entries:r})}})},replace:function(t,e){l(!("object"===(void 0===t?"undefined":x(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=g(t,e,h(),j.location);p.confirmTransitionTo(n,"REPLACE",r,function(t){t&&(j.entries[j.index]=n,f({action:"REPLACE",location:n}))})},go:b,goBack:function(){return b(-1)},goForward:function(){return b(1)},canGo:function(t){var e=j.index+t;return e>=0&&e<j.entries.length},block:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return p.setPrompt(t)},listen:function(t){return p.appendListener(t)}};return j},P="__global_unique_id__",E=function(){return n[P]=(n[P]||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 _=R,T=o(function(t,n){n.__esModule=!0;i(e);var r=i(p),o=i(E);i(_);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 u(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)}var s=1073741823;n.default=function(t,n){var i,p,l="__create-react-context-"+(0,o.default)()+"__",f=function(t){function e(){var n,r,o,i;a(this,e);for(var c=arguments.length,s=Array(c),p=0;p<c;p++)s[p]=arguments[p];return n=r=u(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)})}}),u(r,n)}return c(e,t),e.prototype.getChildContext=function(){var t;return(t={})[l]=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={})[l]=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),c=0;c<o;c++)i[c]=arguments[c];return t=r=u(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()})},u(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[l]&&this.context[l].on(this.onUpdate);var t=this.props.observedBits;this.observedBits=void 0===t||null===t?s:t},n.prototype.componentWillUnmount=function(){this.context[l]&&this.context[l].off(this.onUpdate)},n.prototype.getValue=function(){return this.context[l]?this.context[l].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=((p={})[l]=r.default.object,p),{Provider:f,Consumer:h}},t.exports=n.default});r(T);var S=r(o(function(t,n){n.__esModule=!0;var r=i(e),o=i(T);function i(t){return t&&t.__esModule?t:{default:t}}n.default=r.default.createContext||o.default,t.exports=n.default}))();S.Provider.displayName="Router.Provider",S.Consumer.displayName="Router.Consumer";var A=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},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},M=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)},U=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},L=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 I(t,e){return{history:t.history,location:e.location,match:N.computeRootMatch(e.location.pathname),staticContext:t.staticContext}}var N=function(t){function n(e){A(this,n);var r=L(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 M(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=I(this.props,this.state);return e.createElement(S.Provider,{children:this.props.children||null,value:t})},n}(e.Component);e.createContext||(N.childContextTypes={router:p.object.isRequired},N.prototype.getChildContext=function(){return{router:I(this.props,this.state)}});var B=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=L(this,t.call.apply(t,[this].concat(i))),r.history=j(r.props),L(r,e)}return M(n,t),n.prototype.render=function(){return e.createElement(N,{history:this.history,children:this.props.children})},n}(e.Component),q=function(t){function e(){return A(this,e),L(this,t.apply(this,arguments))}return M(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(S.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(q,{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 H=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)},$=nt,W=G,F=function(t,e){return K(G(t,e))},V=K,Y=et,J=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function G(t,e){for(var n,r=[],o=0,i=0,a="",u=e&&e.delimiter||"/";null!=(n=J.exec(t));){var c=n[0],s=n[1],p=n.index;if(a+=t.slice(i,p),i=p+c.length,s)a+=s[1];else{var l=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!=l&&l!==f,b="+"===v||"*"===v,x="?"===v||"*"===v,O=n[2]||u,w=d||y;r.push({name:h||o++,prefix:f||"",delimiter:O,optional:x,repeat:b,partial:g,asterisk:!!m,pattern:w?X(w):m?".*":"[^"+Q(O)+"]+?"})}}return i<t.length&&(a+=t.substr(i)),a&&r.push(a),r}function z(t){return encodeURI(t).replace(/[\/?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function K(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?z:encodeURIComponent,u=0;u<t.length;u++){var c=t[u];if("string"!=typeof c){var s,p=i[c.name];if(null==p){if(c.optional){c.partial&&(o+=c.prefix);continue}throw new TypeError('Expected "'+c.name+'" to be defined')}if(H(p)){if(!c.repeat)throw new TypeError('Expected "'+c.name+'" to not repeat, but received `'+JSON.stringify(p)+"`");if(0===p.length){if(c.optional)continue;throw new TypeError('Expected "'+c.name+'" to not be empty')}for(var l=0;l<p.length;l++){if(s=a(p[l]),!e[u].test(s))throw new TypeError('Expected all "'+c.name+'" to match "'+c.pattern+'", but received `'+JSON.stringify(s)+"`");o+=(0===l?c.prefix:c.delimiter)+s}}else{if(s=c.asterisk?encodeURI(p).replace(/[?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}):a(p),!e[u].test(s))throw new TypeError('Expected "'+c.name+'" to match "'+c.pattern+'", but received "'+s+'"');o+=c.prefix+s}}else o+=c}return o}}function Q(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function X(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function Z(t,e){return t.keys=e,t}function tt(t){return t.sensitive?"":"i"}function et(t,e,n){H(e)||(n=e||n,e=[]);for(var r=(n=n||{}).strict,o=!1!==n.end,i="",a=0;a<t.length;a++){var u=t[a];if("string"==typeof u)i+=Q(u);else{var c=Q(u.prefix),s="(?:"+u.pattern+")";e.push(u),u.repeat&&(s+="(?:"+c+s+")*"),i+=s=u.optional?u.partial?c+"("+s+")?":"(?:"+c+"("+s+"))?":c+"("+s+")"}}var p=Q(n.delimiter||"/"),l=i.slice(-p.length)===p;return r||(i=(l?i.slice(0,-p.length):i)+"(?:"+p+"(?=$))?"),i+=o?"$":r&&l?"":"(?="+p+"|$)",Z(new RegExp("^"+i,tt(n)),e)}function nt(t,e,n){return H(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 Z(t,e)}(t,e):H(t)?function(t,e,n){for(var r=[],o=0;o<t.length;o++)r.push(nt(t[o],e,n).source);return Z(new RegExp("(?:"+r.join("|")+")",tt(n)),e)}(t,e,n):function(t,e,n){return et(G(t,n),e,n)}(t,e,n)}$.parse=W,$.compile=F,$.tokensToFunction=V,$.tokensToRegExp=Y;var rt={},ot=1e4,it=0;function at(){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(rt[t])return rt[t];var e=$.compile(t);return it<ot&&(rt[t]=e,it++),e}(t)(e,{pretty:!0})}function ut(t){return e.createElement(S.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?at(t.to,t.computedMatch.params):Object.assign({},t.to,{pathname:at(t.to.pathname,t.computedMatch.params)}):t.to);return n.staticContext?(r(o),null):e.createElement(q,{onMount:function(){r(o)},onUpdate:function(t,e){b(e.to,o)||r(o)},to:o})})}ut.defaultProps={push:!1};var ct={},st=1e4,pt=0;function lt(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,u=void 0!==a&&a,c=n.sensitive,s=function(t,e){var n=""+e.end+e.strict+e.sensitive,r=ct[n]||(ct[n]={});if(r[t])return r[t];var o=[],i={regexp:$(t,o,e),keys:o};return pt<st&&(r[t]=i,pt++),i}(r,{end:i,strict:u,sensitive:void 0!==c&&c}),p=s.regexp,l=s.keys,f=p.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:l.reduce(function(t,e,n){return t[e.name]=d[n],t},{})}}function ft(t,e){var n=t.location||e.location,r=t.computedMatch?t.computedMatch:t.path?lt(n.pathname,t):e.match;return Object.assign({},e,{location:n,match:r})}var ht=function(t){function n(){return A(this,n),L(this,t.apply(this,arguments))}return M(n,t),n.prototype.render=function(){var t=this;return e.createElement(S.Consumer,null,function(n){n||f(!1);var r=ft(t.props,n),o=t.props,i=o.children,a=o.component,u=o.render;return Array.isArray(i)&&0===i.length&&(i=null),"function"==typeof i&&void 0===(i=i(r))&&(i=null),e.createElement(S.Provider,{value:r},i&&!function(t){return 0===e.Children.count(t)}(i)?i:r.match?a?e.createElement(a,r):u?u(r):null:null)})},n}(e.Component);function dt(t){return"/"===t.charAt(0)?t:"/"+t}function yt(t,e){return t?Object.assign({},e,{pathname:dt(t)+e.pathname}):e}function vt(t){return"string"==typeof t?t:v(t)}function mt(t){return function(){f(!1)}}function gt(){}e.createContext||(ht.contextTypes={router:p.object.isRequired},ht.childContextTypes={router:p.object.isRequired},ht.prototype.getChildContext=function(){this.context.router||f(!1);var t=this.context.router;return{router:ft(this.props,t)}});var bt=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=L(this,t.call.apply(t,[this].concat(i))),r.createHref=function(t){return dt(r.props.basename+vt(t))},r.handlePush=function(t){var e=r.props,n=e.basename,o=e.context;o.action="PUSH",o.location=yt(n,g(t)),o.url=vt(o.location)},r.handleReplace=function(t){var e=r.props,n=e.basename,o=e.context;o.action="REPLACE",o.location=yt(n,g(t)),o.url=vt(o.location)},r.handleListen=function(){return gt},r.handleBlock=function(){return gt},L(r,e)}return M(n,t),n.prototype.render=function(){var t=this.props,n=t.basename,r=(t.context,t.location),o=U(t,["basename","context","location"]),i={createHref:this.createHref,action:"POP",location:function(t,e){if(!t)return e;var n=dt(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:mt(),goBack:mt(),goForward:mt(),listen:this.handleListen,block:this.handleBlock};return e.createElement(N,k({},o,{history:i,staticContext:this.props.context||{}}))},n}(e.Component);bt.defaultProps={basename:"",location:"/"};var xt=function(t){function n(){return A(this,n),L(this,t.apply(this,arguments))}return M(n,t),n.prototype.render=function(){var t=this;return e.createElement(S.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?lt(r.pathname,Object.assign({},t.props,{path:a})):n.match}}),i?e.cloneElement(o,{location:r,computedMatch:i}):null})},n}(e.Component),Ot={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},wt={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},jt=Object.defineProperty,Pt=Object.getOwnPropertyNames,Et=Object.getOwnPropertySymbols,Ct=Object.getOwnPropertyDescriptor,Rt=Object.getPrototypeOf,_t=Rt&&Rt(Object);var Tt=function t(e,n,r){if("string"!=typeof n){if(_t){var o=Rt(n);o&&o!==_t&&t(e,o,r)}var i=Pt(n);Et&&(i=i.concat(Et(n)));for(var a=0;a<i.length;++a){var u=i[a];if(!(Ot[u]||wt[u]||r&&r[u])){var c=Ct(n,u);try{jt(e,u,c)}catch(t){}}}return e}return e};t.MemoryRouter=B,t.Prompt=D,t.Redirect=ut,t.Route=ht,t.Router=N,t.StaticRouter=bt,t.Switch=xt,t.generatePath=at,t.matchPath=lt,t.withRouter=function(t){var n=function(n){var r=n.wrappedComponentRef,o=U(n,["wrappedComponentRef"]);return e.createElement(ht,{children:function(n){return e.createElement(t,k({},o,n,{ref:r}))}})};return n.displayName="withRouter("+(t.displayName||t.name)+")",n.WrappedComponent=t,Tt(n,t)},t.__RouterContext=S,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.ReactRouter={},t.React)}(this,function(t,h){"use strict";h=h&&h.hasOwnProperty("default")?h.default:h;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 u(){}var d=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=u,n.PropTypes=n}()}),g=function(){},c=function(t,e,n,r,o,i,a,u){if(!t){var c;if(void 0===e)c=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,u],p=0;(c=new Error(e.replace(/%s/g,function(){return s[p++]}))).name="Invariant Violation"}throw c.framesToPop=1,c}};function y(t){return"/"===t.charAt(0)}function m(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 s="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 b=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},x=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&&y(t),i=e&&y(e),a=o||i;if(t&&y(t)?r=n:n.length&&(r.pop(),r=r.concat(n)),!r.length)return"/";var u=void 0;if(r.length){var c=r[r.length-1];u="."===c||".."===c||""===c}else u=!1;for(var s=0,p=r.length;0<=p;p--){var l=r[p];"."===l?m(r,p):".."===l?(m(r,p),s++):s&&(m(r,p),s--)}if(!a)for(;s--;s)r.unshift("..");!a||""===r[0]||r[0]&&y(r[0])||r.unshift("");var f=r.join("/");return u&&"/"!==f.substr(-1)&&(f+="/"),f}(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o},l=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":s(e);if(t!==(void 0===r?"undefined":s(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),u=Object.keys(r);return a.length===u.length&&a.every(function(t){return n(e[t],r[t])})}(t.state,e.state)},O=("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}),w=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){return Math.min(Math.max(t,e),n)},f=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,u=void 0===a?0:a,c=t.keyLength,s=void 0===c?6:c,p=(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)})}}),l=function(t){w(v,t),v.length=v.entries.length,p.notifyListeners(v.location,v.action)},f=function(){return Math.random().toString(36).substr(2,s)},h=j(u,0,n.length-1),d=n.map(function(t){return x(t,void 0,"string"==typeof t?f():t.key||f())}),y=b,m=function(t){var e=j(v.index+t,0,v.entries.length-1),n=v.entries[e];p.confirmTransitionTo(n,"POP",o,function(t){t?l({action:"POP",location:n,index:e}):l()})},v={length:d.length,action:"POP",location:d[h],index:h,entries:d,createHref:y,push:function(t,e){g(!("object"===(void 0===t?"undefined":O(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=x(t,e,f(),v.location);p.confirmTransitionTo(r,"PUSH",o,function(t){if(t){var e=v.index+1,n=v.entries.slice(0);n.length>e?n.splice(e,n.length-e,r):n.push(r),l({action:"PUSH",location:r,index:e,entries:n})}})},replace:function(t,e){g(!("object"===(void 0===t?"undefined":O(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=x(t,e,f(),v.location);p.confirmTransitionTo(r,n,o,function(t){t&&(v.entries[v.index]=r,l({action:n,location:r}))})},go:m,goBack:function(){return m(-1)},goForward:function(){return m(1)},canGo:function(t){var e=v.index+t;return 0<=e&&e<v.entries.length},block:function(){var t=0<arguments.length&&void 0!==arguments[0]&&arguments[0];return p.setPrompt(t)},listen:function(t){return p.appendListener(t)}};return v},v="__global_unique_id__",P=function(){return e[v]=(e[v]||0)+1};function E(t){return function(){return t}}var C=function(){};C.thatReturns=E,C.thatReturnsFalse=E(!1),C.thatReturnsTrue=E(!0),C.thatReturnsNull=E(null),C.thatReturnsThis=function(){return this},C.thatReturnsArgument=function(t){return t};var R=C,_=r(function(t,e){e.__esModule=!0;n(h);var u=n(d),c=n(P);n(R);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 p(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 l(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,c.default)()+"__",o=function(u){function c(){var t,e,n,r;s(this,c);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return(t=e=p(this,u.call.apply(u,[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)})}}),p(e,t)}return l(c,u),c.prototype.getChildContext=function(){var t;return(t={})[r]=this.emitter,t},c.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},c.prototype.render=function(){return this.props.children},c}(h.Component);o.childContextTypes=((e={})[r]=u.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=p(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()})},p(n,t)}return l(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}(h.Component);return i.contextTypes=((n={})[r]=u.default.object,n),{Provider:o,Consumer:i}},t.exports=e.default});n(_);var T=n(r(function(t,e){e.__esModule=!0;var n=o(h),r=o(_);function o(t){return t&&t.__esModule?t:{default:t}}e.default=n.default.createContext||r.default,t.exports=e.default}))();T.Provider.displayName="Router.Provider",T.Consumer.displayName="Router.Consumer";var S=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},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},A=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)},M=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},U=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 L(t,e){return{history:t.history,location:e.location,match:I.computeRootMatch(e.location.pathname),staticContext:t.staticContext}}var I=function(n){function r(t){S(this,r);var e=U(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 A(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=L(this.props,this.state);return h.createElement(T.Provider,{children:this.props.children||null,value:t})},r}(h.Component);h.createContext||(I.childContextTypes={router:d.object.isRequired},I.prototype.getChildContext=function(){return{router:L(this.props,this.state)}});var N=function(i){function a(){var t,e;S(this,a);for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e=U(this,i.call.apply(i,[this].concat(r)))).history=f(e.props),U(e,t)}return A(a,i),a.prototype.render=function(){return h.createElement(I,{history:this.history,children:this.props.children})},a}(h.Component),B=function(t){function e(){return S(this,e),U(this,t.apply(this,arguments))}return A(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}(h.Component);function q(e){return h.createElement(T.Consumer,null,function(t){if(t||c(!1),!e.when||t.staticContext)return null;var n=t.history.block,r=e.message;return h.createElement(B,{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()}})})}q.defaultProps={when:!0};var D=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)},H=tt,$=J,W=function(t,e){return z(J(t,e))},F=z,V=Z,Y=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function J(t,e){for(var n,r,o=[],i=0,a=0,u="",c=e&&e.delimiter||"/";null!=(n=Y.exec(t));){var s=n[0],p=n[1],l=n.index;if(u+=t.slice(a,l),a=l+s.length,p)u+=p[1];else{var f=t[a],h=n[2],d=n[3],y=n[4],m=n[5],v=n[6],g=n[7];u&&(o.push(u),u="");var b=null!=h&&null!=f&&f!==h,x="+"===v||"*"===v,O="?"===v||"*"===v,w=n[2]||c,j=y||m;o.push({name:d||i++,prefix:h||"",delimiter:w,optional:O,repeat:x,partial:b,asterisk:!!g,pattern:j?(r=j,r.replace(/([=!:$\/()])/g,"\\$1")):g?".*":"[^"+K(w)+"]+?"})}}return a<t.length&&(u+=t.substr(a)),u&&o.push(u),o}function G(t){return encodeURI(t).replace(/[\/?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function z(p){for(var l=new Array(p.length),t=0;t<p.length;t++)"object"==typeof p[t]&&(l[t]=new RegExp("^(?:"+p[t].pattern+")$"));return function(t,e){for(var n="",r=t||{},o=(e||{}).pretty?G:encodeURIComponent,i=0;i<p.length;i++){var a=p[i];if("string"!=typeof a){var u,c=r[a.name];if(null==c){if(a.optional){a.partial&&(n+=a.prefix);continue}throw new TypeError('Expected "'+a.name+'" to be defined')}if(D(c)){if(!a.repeat)throw new TypeError('Expected "'+a.name+'" to not repeat, but received `'+JSON.stringify(c)+"`");if(0===c.length){if(a.optional)continue;throw new TypeError('Expected "'+a.name+'" to not be empty')}for(var s=0;s<c.length;s++){if(u=o(c[s]),!l[i].test(u))throw new TypeError('Expected all "'+a.name+'" to match "'+a.pattern+'", but received `'+JSON.stringify(u)+"`");n+=(0===s?a.prefix:a.delimiter)+u}}else{if(u=a.asterisk?encodeURI(c).replace(/[?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}):o(c),!l[i].test(u))throw new TypeError('Expected "'+a.name+'" to match "'+a.pattern+'", but received "'+u+'"');n+=a.prefix+u}}else n+=a}return n}}function K(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function Q(t,e){return t.keys=e,t}function X(t){return t.sensitive?"":"i"}function Z(t,e,n){D(e)||(n=e||n,e=[]);for(var r=(n=n||{}).strict,o=!1!==n.end,i="",a=0;a<t.length;a++){var u=t[a];if("string"==typeof u)i+=K(u);else{var c=K(u.prefix),s="(?:"+u.pattern+")";e.push(u),u.repeat&&(s+="(?:"+c+s+")*"),i+=s=u.optional?u.partial?c+"("+s+")?":"(?:"+c+"("+s+"))?":c+"("+s+")"}}var p=K(n.delimiter||"/"),l=i.slice(-p.length)===p;return r||(i=(l?i.slice(0,-p.length):i)+"(?:"+p+"(?=$))?"),i+=o?"$":r&&l?"":"(?="+p+"|$)",Q(new RegExp("^"+i,X(n)),e)}function tt(t,e,n){return D(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):D(t)?function(t,e,n){for(var r=[],o=0;o<t.length;o++)r.push(tt(t[o],e,n).source);return Q(new RegExp("(?:"+r.join("|")+")",X(n)),e)}(t,e,n):(r=e,Z(J(t,o=n),r,o));var r,o}H.parse=$,H.compile=W,H.tokensToFunction=F,H.tokensToRegExp=V;var et={},nt=1e4,rt=0;function ot(){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(et[t])return et[t];var e=H.compile(t);return rt<nt&&(et[t]=e,rt++),e}(t)(e,{pretty:!0})}function it(e){return h.createElement(T.Consumer,null,function(t){t||c(!1);var n=e.push?t.history.push:t.history.replace,r=x(e.computedMatch?"string"==typeof e.to?ot(e.to,e.computedMatch.params):Object.assign({},e.to,{pathname:ot(e.to.pathname,e.computedMatch.params)}):e.to);return t.staticContext?(n(r),null):h.createElement(B,{onMount:function(){n(r)},onUpdate:function(t,e){l(e.to,r)||n(r)},to:r})})}it.defaultProps={push:!1};var at={},ut=1e4,ct=0;function st(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,p=void 0!==r&&r,o=e.strict,l=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=at[n]||(at[n]={});if(r[t])return r[t];var o=[],i={regexp:H(t,o,e),keys:o};return ct<ut&&(r[t]=i,ct++),i}(e,{end:p,strict:l,sensitive:f}),r=n.regexp,o=n.keys,i=r.exec(s);if(!i)return null;var a=i[0],u=i.slice(1),c=s===a;return p&&!c?null:{path:e,url:"/"===e&&""===a?"/":a,isExact:c,params:o.reduce(function(t,e,n){return t[e.name]=u[n],t},{})}},null)}function pt(t,e){var n=t.location||e.location,r=t.computedMatch?t.computedMatch:t.path?st(n.pathname,t):e.match;return Object.assign({},e,{location:n,match:r})}var lt=function(t){function e(){return S(this,e),U(this,t.apply(this,arguments))}return A(e,t),e.prototype.render=function(){var u=this;return h.createElement(T.Consumer,null,function(t){t||c(!1);var e,n=pt(u.props,t),r=u.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),h.createElement(T.Provider,{value:n},o&&(e=o,0!==h.Children.count(e))?o:n.match?i?h.createElement(i,n):a?a(n):null:null)})},e}(h.Component);function ft(t){return"/"===t.charAt(0)?t:"/"+t}function ht(t,e){return t?Object.assign({},e,{pathname:ft(t)+e.pathname}):e}function dt(t){return"string"==typeof t?t:b(t)}function yt(t){return function(){c(!1)}}function mt(){}h.createContext||(lt.contextTypes={router:d.object.isRequired},lt.childContextTypes={router:d.object.isRequired},lt.prototype.getChildContext=function(){this.context.router||c(!1);var t=this.context.router;return{router:pt(this.props,t)}});var vt=function(i){function a(){var t,o;S(this,a);for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=o=U(this,i.call.apply(i,[this].concat(n)))).createHref=function(t){return ft(o.props.basename+dt(t))},o.handlePush=function(t){var e=o.props,n=e.basename,r=e.context;r.action="PUSH",r.location=ht(n,x(t)),r.url=dt(r.location)},o.handleReplace=function(t){var e=o.props,n=e.basename,r=e.context;r.action="REPLACE",r.location=ht(n,x(t)),r.url=dt(r.location)},o.handleListen=function(){return mt},o.handleBlock=function(){return mt},U(o,t)}return A(a,i),a.prototype.render=function(){var t=this.props,e=t.basename,n=(t.context,t.location),r=M(t,["basename","context","location"]),o={createHref:this.createHref,action:"POP",location:function(t,e){if(!t)return e;var n=ft(t);return 0!==e.pathname.indexOf(n)?e:Object.assign({},e,{pathname:e.pathname.substr(n.length)})}(e,x(n)),push:this.handlePush,replace:this.handleReplace,go:yt(),goBack:yt(),goForward:yt(),listen:this.handleListen,block:this.handleBlock};return h.createElement(I,k({},r,{history:o,staticContext:this.props.context||{}}))},a}(h.Component);vt.defaultProps={basename:"",location:"/"};var gt=function(t){function e(){return S(this,e),U(this,t.apply(this,arguments))}return A(e,t),e.prototype.render=function(){var t=this;return h.createElement(T.Consumer,null,function(n){n||c(!1);var r=t.props.location||n.location,o=void 0,i=void 0;return h.Children.forEach(t.props.children,function(t){if(null==i&&h.isValidElement(t)){var e=(o=t).props.path||t.props.from;i=e?st(r.pathname,Object.assign({},t.props,{path:e})):n.match}}),i?h.cloneElement(o,{location:r,computedMatch:i}):null})},e}(h.Component),bt={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},xt={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Ot=Object.defineProperty,wt=Object.getOwnPropertyNames,jt=Object.getOwnPropertySymbols,Pt=Object.getOwnPropertyDescriptor,Et=Object.getPrototypeOf,Ct=Et&&Et(Object);var Rt=function t(e,n,r){if("string"==typeof n)return e;if(Ct){var o=Et(n);o&&o!==Ct&&t(e,o,r)}var i=wt(n);jt&&(i=i.concat(jt(n)));for(var a=0;a<i.length;++a){var u=i[a];if(!(bt[u]||xt[u]||r&&r[u])){var c=Pt(n,u);try{Ot(e,u,c)}catch(t){}}}return e};t.MemoryRouter=N,t.Prompt=q,t.Redirect=it,t.Route=lt,t.Router=I,t.StaticRouter=vt,t.Switch=gt,t.generatePath=ot,t.matchPath=st,t.withRouter=function(r){var t=function(t){var e=t.wrappedComponentRef,n=M(t,["wrappedComponentRef"]);return h.createElement(lt,{children:function(t){return h.createElement(r,k({},n,t,{ref:e}))}})};return t.displayName="withRouter("+(r.displayName||r.name)+")",t.WrappedComponent=r,Rt(t,r)},t.__RouterContext=T,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