react-router-dom 4.4.0-beta.8 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-router-dom",
3
- "version": "4.4.0-beta.8",
3
+ "version": "5.0.0",
4
4
  "description": "DOM bindings for React Router",
5
5
  "repository": "ReactTraining/react-router",
6
6
  "license": "MIT",
@@ -44,10 +44,10 @@
44
44
  },
45
45
  "dependencies": {
46
46
  "@babel/runtime": "^7.1.2",
47
- "history": "^4.8.0-beta.0",
47
+ "history": "^4.9.0",
48
48
  "loose-envify": "^1.3.1",
49
49
  "prop-types": "^15.6.2",
50
- "react-router": "^4.4.0-beta.8",
50
+ "react-router": "5.0.0",
51
51
  "tiny-invariant": "^1.0.2",
52
52
  "tiny-warning": "^1.0.0"
53
53
  },
@@ -90,5 +90,5 @@
90
90
  "history",
91
91
  "link"
92
92
  ],
93
- "gitHead": "fa98bc76b363c22a1deb3b4d3a3481987b90cd41"
93
+ "gitHead": "ea8eba843bf899daf8a51c2617d05c179b38369d"
94
94
  }
@@ -3186,32 +3186,32 @@
3186
3186
  }
3187
3187
 
3188
3188
  function addLeadingSlash$2(path) {
3189
- return path.charAt(0) === "/" ? path : "/" + path;
3189
+ return path.charAt(0) === '/' ? path : '/' + path;
3190
3190
  }
3191
3191
  function stripLeadingSlash$1(path) {
3192
- return path.charAt(0) === "/" ? path.substr(1) : path;
3192
+ return path.charAt(0) === '/' ? path.substr(1) : path;
3193
3193
  }
3194
3194
  function hasBasename$1(path, prefix) {
3195
- return new RegExp("^" + prefix + "(\\/|\\?|#|$)", "i").test(path);
3195
+ return new RegExp('^' + prefix + '(\\/|\\?|#|$)', 'i').test(path);
3196
3196
  }
3197
3197
  function stripBasename$2(path, prefix) {
3198
3198
  return hasBasename$1(path, prefix) ? path.substr(prefix.length) : path;
3199
3199
  }
3200
3200
  function stripTrailingSlash$1(path) {
3201
- return path.charAt(path.length - 1) === "/" ? path.slice(0, -1) : path;
3201
+ return path.charAt(path.length - 1) === '/' ? path.slice(0, -1) : path;
3202
3202
  }
3203
3203
  function parsePath$1(path) {
3204
- var pathname = path || "/";
3205
- var search = "";
3206
- var hash = "";
3207
- var hashIndex = pathname.indexOf("#");
3204
+ var pathname = path || '/';
3205
+ var search = '';
3206
+ var hash = '';
3207
+ var hashIndex = pathname.indexOf('#');
3208
3208
 
3209
3209
  if (hashIndex !== -1) {
3210
3210
  hash = pathname.substr(hashIndex);
3211
3211
  pathname = pathname.substr(0, hashIndex);
3212
3212
  }
3213
3213
 
3214
- var searchIndex = pathname.indexOf("?");
3214
+ var searchIndex = pathname.indexOf('?');
3215
3215
 
3216
3216
  if (searchIndex !== -1) {
3217
3217
  search = pathname.substr(searchIndex);
@@ -3220,42 +3220,42 @@
3220
3220
 
3221
3221
  return {
3222
3222
  pathname: pathname,
3223
- search: search === "?" ? "" : search,
3224
- hash: hash === "#" ? "" : hash
3223
+ search: search === '?' ? '' : search,
3224
+ hash: hash === '#' ? '' : hash
3225
3225
  };
3226
3226
  }
3227
3227
  function createPath$1(location) {
3228
3228
  var pathname = location.pathname,
3229
3229
  search = location.search,
3230
3230
  hash = location.hash;
3231
- var path = pathname || "/";
3232
- if (search && search !== "?") path += search.charAt(0) === "?" ? search : "?" + search;
3233
- if (hash && hash !== "#") path += hash.charAt(0) === "#" ? hash : "#" + hash;
3231
+ var path = pathname || '/';
3232
+ if (search && search !== '?') path += search.charAt(0) === '?' ? search : "?" + search;
3233
+ if (hash && hash !== '#') path += hash.charAt(0) === '#' ? hash : "#" + hash;
3234
3234
  return path;
3235
3235
  }
3236
3236
 
3237
3237
  function createLocation$1(path, state, key, currentLocation) {
3238
3238
  var location;
3239
3239
 
3240
- if (typeof path === "string") {
3240
+ if (typeof path === 'string') {
3241
3241
  // Two-arg form: push(path, state)
3242
3242
  location = parsePath$1(path);
3243
3243
  location.state = state;
3244
3244
  } else {
3245
3245
  // One-arg form: push(location)
3246
3246
  location = _extends$1({}, path);
3247
- if (location.pathname === undefined) location.pathname = "";
3247
+ if (location.pathname === undefined) location.pathname = '';
3248
3248
 
3249
3249
  if (location.search) {
3250
- if (location.search.charAt(0) !== "?") location.search = "?" + location.search;
3250
+ if (location.search.charAt(0) !== '?') location.search = '?' + location.search;
3251
3251
  } else {
3252
- location.search = "";
3252
+ location.search = '';
3253
3253
  }
3254
3254
 
3255
3255
  if (location.hash) {
3256
- if (location.hash.charAt(0) !== "#") location.hash = "#" + location.hash;
3256
+ if (location.hash.charAt(0) !== '#') location.hash = '#' + location.hash;
3257
3257
  } else {
3258
- location.hash = "";
3258
+ location.hash = '';
3259
3259
  }
3260
3260
 
3261
3261
  if (state !== undefined && location.state === undefined) location.state = state;
@@ -3265,7 +3265,7 @@
3265
3265
  location.pathname = decodeURI(location.pathname);
3266
3266
  } catch (e) {
3267
3267
  if (e instanceof URIError) {
3268
- throw new URIError('Pathname "' + location.pathname + '" could not be decoded. ' + "This is likely caused by an invalid percent-encoding.");
3268
+ throw new URIError('Pathname "' + location.pathname + '" could not be decoded. ' + 'This is likely caused by an invalid percent-encoding.');
3269
3269
  } else {
3270
3270
  throw e;
3271
3271
  }
@@ -3277,13 +3277,13 @@
3277
3277
  // Resolve incomplete/relative pathname relative to current location.
3278
3278
  if (!location.pathname) {
3279
3279
  location.pathname = currentLocation.pathname;
3280
- } else if (location.pathname.charAt(0) !== "/") {
3280
+ } else if (location.pathname.charAt(0) !== '/') {
3281
3281
  location.pathname = resolvePathname$1(location.pathname, currentLocation.pathname);
3282
3282
  }
3283
3283
  } else {
3284
3284
  // When there is no prior location and pathname is empty, set it to /
3285
3285
  if (!location.pathname) {
3286
- location.pathname = "/";
3286
+ location.pathname = '/';
3287
3287
  }
3288
3288
  }
3289
3289
 
@@ -3297,7 +3297,7 @@
3297
3297
  var prompt = null;
3298
3298
 
3299
3299
  function setPrompt(nextPrompt) {
3300
- warning$2(prompt == null, "A history supports only one prompt at a time");
3300
+ warning$2(prompt == null, 'A history supports only one prompt at a time');
3301
3301
  prompt = nextPrompt;
3302
3302
  return function () {
3303
3303
  if (prompt === nextPrompt) prompt = null;
@@ -3309,13 +3309,13 @@
3309
3309
  // the previous one, we may end up in a weird state. Figure out the
3310
3310
  // best way to handle this.
3311
3311
  if (prompt != null) {
3312
- var result = typeof prompt === "function" ? prompt(location, action) : prompt;
3312
+ var result = typeof prompt === 'function' ? prompt(location, action) : prompt;
3313
3313
 
3314
- if (typeof result === "string") {
3315
- if (typeof getUserConfirmation === "function") {
3314
+ if (typeof result === 'string') {
3315
+ if (typeof getUserConfirmation === 'function') {
3316
3316
  getUserConfirmation(result, callback);
3317
3317
  } else {
3318
- warning$2(false, "A history needs a getUserConfirmation function in order to use a prompt message");
3318
+ warning$2(false, 'A history needs a getUserConfirmation function in order to use a prompt message');
3319
3319
  callback(true);
3320
3320
  }
3321
3321
  } else {
@@ -3363,7 +3363,7 @@
3363
3363
  };
3364
3364
  }
3365
3365
 
3366
- var canUseDOM$1 = !!(typeof window !== "undefined" && window.document && window.document.createElement);
3366
+ var canUseDOM$1 = !!(typeof window !== 'undefined' && window.document && window.document.createElement);
3367
3367
  function getConfirmation$1(message, callback) {
3368
3368
  callback(window.confirm(message)); // eslint-disable-line no-alert
3369
3369
  }
@@ -3377,8 +3377,8 @@
3377
3377
 
3378
3378
  function supportsHistory$1() {
3379
3379
  var ua = window.navigator.userAgent;
3380
- if ((ua.indexOf("Android 2.") !== -1 || ua.indexOf("Android 4.0") !== -1) && ua.indexOf("Mobile Safari") !== -1 && ua.indexOf("Chrome") === -1 && ua.indexOf("Windows Phone") === -1) return false;
3381
- return window.history && "pushState" in window.history;
3380
+ if ((ua.indexOf('Android 2.') !== -1 || ua.indexOf('Android 4.0') !== -1) && ua.indexOf('Mobile Safari') !== -1 && ua.indexOf('Chrome') === -1 && ua.indexOf('Windows Phone') === -1) return false;
3381
+ return window.history && 'pushState' in window.history;
3382
3382
  }
3383
3383
  /**
3384
3384
  * Returns true if browser fires popstate on hash change.
@@ -3386,14 +3386,14 @@
3386
3386
  */
3387
3387
 
3388
3388
  function supportsPopStateOnHashChange$1() {
3389
- return window.navigator.userAgent.indexOf("Trident") === -1;
3389
+ return window.navigator.userAgent.indexOf('Trident') === -1;
3390
3390
  }
3391
3391
  /**
3392
3392
  * Returns false if using go(n) with hash history causes a full page reload.
3393
3393
  */
3394
3394
 
3395
3395
  function supportsGoWithoutReloadUsingHash$1() {
3396
- return window.navigator.userAgent.indexOf("Firefox") === -1;
3396
+ return window.navigator.userAgent.indexOf('Firefox') === -1;
3397
3397
  }
3398
3398
  /**
3399
3399
  * Returns true if a given popstate event is an extraneous WebKit event.
@@ -3402,11 +3402,11 @@
3402
3402
  */
3403
3403
 
3404
3404
  function isExtraneousPopstateEvent$1(event) {
3405
- event.state === undefined && navigator.userAgent.indexOf("CriOS") === -1;
3405
+ event.state === undefined && navigator.userAgent.indexOf('CriOS') === -1;
3406
3406
  }
3407
3407
 
3408
- var PopStateEvent$1 = "popstate";
3409
- var HashChangeEvent$2 = "hashchange";
3408
+ var PopStateEvent$1 = 'popstate';
3409
+ var HashChangeEvent$2 = 'hashchange';
3410
3410
 
3411
3411
  function getHistoryState$1() {
3412
3412
  try {
@@ -3428,7 +3428,7 @@
3428
3428
  props = {};
3429
3429
  }
3430
3430
 
3431
- !canUseDOM$1 ? invariant$1(false, "Browser history needs a DOM") : void 0;
3431
+ !canUseDOM$1 ? invariant$1(false, 'Browser history needs a DOM') : void 0;
3432
3432
  var globalHistory = window.history;
3433
3433
  var canUseHistory = supportsHistory$1();
3434
3434
  var needsHashChangeListener = !supportsPopStateOnHashChange$1();
@@ -3439,7 +3439,7 @@
3439
3439
  getUserConfirmation = _props$getUserConfirm === void 0 ? getConfirmation$1 : _props$getUserConfirm,
3440
3440
  _props$keyLength = _props.keyLength,
3441
3441
  keyLength = _props$keyLength === void 0 ? 6 : _props$keyLength;
3442
- var basename = props.basename ? stripTrailingSlash$1(addLeadingSlash$2(props.basename)) : "";
3442
+ var basename = props.basename ? stripTrailingSlash$1(addLeadingSlash$2(props.basename)) : '';
3443
3443
 
3444
3444
  function getDOMLocation(historyState) {
3445
3445
  var _ref = historyState || {},
@@ -3451,7 +3451,7 @@
3451
3451
  search = _window$location.search,
3452
3452
  hash = _window$location.hash;
3453
3453
  var path = pathname + search + hash;
3454
- warning$2(!basename || hasBasename$1(path, basename), "You are attempting to use a basename on a page whose URL path does not begin " + 'with the basename. Expected path "' + path + '" to begin with "' + basename + '".');
3454
+ warning$2(!basename || hasBasename$1(path, basename), 'You are attempting to use a basename on a page whose URL path does not begin ' + 'with the basename. Expected path "' + path + '" to begin with "' + basename + '".');
3455
3455
  if (basename) path = stripBasename$2(path, basename);
3456
3456
  return createLocation$1(path, state, key);
3457
3457
  }
@@ -3486,7 +3486,7 @@
3486
3486
  forceNextPop = false;
3487
3487
  setState();
3488
3488
  } else {
3489
- var action = "POP";
3489
+ var action = 'POP';
3490
3490
  transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
3491
3491
  if (ok) {
3492
3492
  setState({
@@ -3525,8 +3525,8 @@
3525
3525
  }
3526
3526
 
3527
3527
  function push(path, state) {
3528
- warning$2(!(typeof path === "object" && path.state !== undefined && state !== undefined), "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");
3529
- var action = "PUSH";
3528
+ warning$2(!(typeof path === 'object' && path.state !== undefined && state !== undefined), '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');
3529
+ var action = 'PUSH';
3530
3530
  var location = createLocation$1(path, state, createKey(), history.location);
3531
3531
  transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
3532
3532
  if (!ok) return;
@@ -3553,15 +3553,15 @@
3553
3553
  });
3554
3554
  }
3555
3555
  } else {
3556
- warning$2(state === undefined, "Browser history cannot push state in browsers that do not support HTML5 history");
3556
+ warning$2(state === undefined, 'Browser history cannot push state in browsers that do not support HTML5 history');
3557
3557
  window.location.href = href;
3558
3558
  }
3559
3559
  });
3560
3560
  }
3561
3561
 
3562
3562
  function replace(path, state) {
3563
- warning$2(!(typeof path === "object" && path.state !== undefined && state !== undefined), "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");
3564
- var action = "REPLACE";
3563
+ warning$2(!(typeof path === 'object' && path.state !== undefined && state !== undefined), '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');
3564
+ var action = 'REPLACE';
3565
3565
  var location = createLocation$1(path, state, createKey(), history.location);
3566
3566
  transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
3567
3567
  if (!ok) return;
@@ -3586,7 +3586,7 @@
3586
3586
  });
3587
3587
  }
3588
3588
  } else {
3589
- warning$2(state === undefined, "Browser history cannot replace state in browsers that do not support HTML5 history");
3589
+ warning$2(state === undefined, 'Browser history cannot replace state in browsers that do not support HTML5 history');
3590
3590
  window.location.replace(href);
3591
3591
  }
3592
3592
  });
@@ -3609,7 +3609,7 @@
3609
3609
  function checkDOMListeners(delta) {
3610
3610
  listenerCount += delta;
3611
3611
 
3612
- if (listenerCount === 1) {
3612
+ if (listenerCount === 1 && delta === 1) {
3613
3613
  window.addEventListener(PopStateEvent$1, handlePopState);
3614
3614
  if (needsHashChangeListener) window.addEventListener(HashChangeEvent$2, handleHashChange);
3615
3615
  } else if (listenerCount === 0) {
@@ -3653,7 +3653,7 @@
3653
3653
 
3654
3654
  var history = {
3655
3655
  length: globalHistory.length,
3656
- action: "POP",
3656
+ action: 'POP',
3657
3657
  location: initialLocation,
3658
3658
  createHref: createHref,
3659
3659
  push: push,
@@ -3667,14 +3667,14 @@
3667
3667
  return history;
3668
3668
  }
3669
3669
 
3670
- var HashChangeEvent$1$1 = "hashchange";
3670
+ var HashChangeEvent$1$1 = 'hashchange';
3671
3671
  var HashPathCoders$1 = {
3672
3672
  hashbang: {
3673
3673
  encodePath: function encodePath(path) {
3674
- return path.charAt(0) === "!" ? path : "!/" + stripLeadingSlash$1(path);
3674
+ return path.charAt(0) === '!' ? path : '!/' + stripLeadingSlash$1(path);
3675
3675
  },
3676
3676
  decodePath: function decodePath(path) {
3677
- return path.charAt(0) === "!" ? path.substr(1) : path;
3677
+ return path.charAt(0) === '!' ? path.substr(1) : path;
3678
3678
  }
3679
3679
  },
3680
3680
  noslash: {
@@ -3691,8 +3691,8 @@
3691
3691
  // We can't use window.location.hash here because it's not
3692
3692
  // consistent across browsers - Firefox will pre-decode it!
3693
3693
  var href = window.location.href;
3694
- var hashIndex = href.indexOf("#");
3695
- return hashIndex === -1 ? "" : href.substring(hashIndex + 1);
3694
+ var hashIndex = href.indexOf('#');
3695
+ return hashIndex === -1 ? '' : href.substring(hashIndex + 1);
3696
3696
  }
3697
3697
 
3698
3698
  function pushHashPath$1(path) {
@@ -3700,8 +3700,8 @@
3700
3700
  }
3701
3701
 
3702
3702
  function replaceHashPath$1(path) {
3703
- var hashIndex = window.location.href.indexOf("#");
3704
- window.location.replace(window.location.href.slice(0, hashIndex >= 0 ? hashIndex : 0) + "#" + path);
3703
+ var hashIndex = window.location.href.indexOf('#');
3704
+ window.location.replace(window.location.href.slice(0, hashIndex >= 0 ? hashIndex : 0) + '#' + path);
3705
3705
  }
3706
3706
 
3707
3707
  function createHashHistory$1(props) {
@@ -3709,22 +3709,22 @@
3709
3709
  props = {};
3710
3710
  }
3711
3711
 
3712
- !canUseDOM$1 ? invariant$1(false, "Hash history needs a DOM") : void 0;
3712
+ !canUseDOM$1 ? invariant$1(false, 'Hash history needs a DOM') : void 0;
3713
3713
  var globalHistory = window.history;
3714
3714
  var canGoWithoutReload = supportsGoWithoutReloadUsingHash$1();
3715
3715
  var _props = props,
3716
3716
  _props$getUserConfirm = _props.getUserConfirmation,
3717
3717
  getUserConfirmation = _props$getUserConfirm === void 0 ? getConfirmation$1 : _props$getUserConfirm,
3718
3718
  _props$hashType = _props.hashType,
3719
- hashType = _props$hashType === void 0 ? "slash" : _props$hashType;
3720
- var basename = props.basename ? stripTrailingSlash$1(addLeadingSlash$2(props.basename)) : "";
3719
+ hashType = _props$hashType === void 0 ? 'slash' : _props$hashType;
3720
+ var basename = props.basename ? stripTrailingSlash$1(addLeadingSlash$2(props.basename)) : '';
3721
3721
  var _HashPathCoders$hashT = HashPathCoders$1[hashType],
3722
3722
  encodePath = _HashPathCoders$hashT.encodePath,
3723
3723
  decodePath = _HashPathCoders$hashT.decodePath;
3724
3724
 
3725
3725
  function getDOMLocation() {
3726
3726
  var path = decodePath(getHashPath$1());
3727
- warning$2(!basename || hasBasename$1(path, basename), "You are attempting to use a basename on a page whose URL path does not begin " + 'with the basename. Expected path "' + path + '" to begin with "' + basename + '".');
3727
+ warning$2(!basename || hasBasename$1(path, basename), 'You are attempting to use a basename on a page whose URL path does not begin ' + 'with the basename. Expected path "' + path + '" to begin with "' + basename + '".');
3728
3728
  if (basename) path = stripBasename$2(path, basename);
3729
3729
  return createLocation$1(path);
3730
3730
  }
@@ -3765,7 +3765,7 @@
3765
3765
  forceNextPop = false;
3766
3766
  setState();
3767
3767
  } else {
3768
- var action = "POP";
3768
+ var action = 'POP';
3769
3769
  transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
3770
3770
  if (ok) {
3771
3771
  setState({
@@ -3804,12 +3804,12 @@
3804
3804
  var allPaths = [createPath$1(initialLocation)]; // Public interface
3805
3805
 
3806
3806
  function createHref(location) {
3807
- return "#" + encodePath(basename + createPath$1(location));
3807
+ return '#' + encodePath(basename + createPath$1(location));
3808
3808
  }
3809
3809
 
3810
3810
  function push(path, state) {
3811
- warning$2(state === undefined, "Hash history cannot push state; it is ignored");
3812
- var action = "PUSH";
3811
+ warning$2(state === undefined, 'Hash history cannot push state; it is ignored');
3812
+ var action = 'PUSH';
3813
3813
  var location = createLocation$1(path, undefined, undefined, history.location);
3814
3814
  transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
3815
3815
  if (!ok) return;
@@ -3832,15 +3832,15 @@
3832
3832
  location: location
3833
3833
  });
3834
3834
  } else {
3835
- warning$2(false, "Hash history cannot PUSH the same path; a new entry will not be added to the history stack");
3835
+ warning$2(false, 'Hash history cannot PUSH the same path; a new entry will not be added to the history stack');
3836
3836
  setState();
3837
3837
  }
3838
3838
  });
3839
3839
  }
3840
3840
 
3841
3841
  function replace(path, state) {
3842
- warning$2(state === undefined, "Hash history cannot replace state; it is ignored");
3843
- var action = "REPLACE";
3842
+ warning$2(state === undefined, 'Hash history cannot replace state; it is ignored');
3843
+ var action = 'REPLACE';
3844
3844
  var location = createLocation$1(path, undefined, undefined, history.location);
3845
3845
  transitionManager.confirmTransitionTo(location, action, getUserConfirmation, function (ok) {
3846
3846
  if (!ok) return;
@@ -3866,7 +3866,7 @@
3866
3866
  }
3867
3867
 
3868
3868
  function go(n) {
3869
- warning$2(canGoWithoutReload, "Hash history go(n) causes a full page reload in this browser");
3869
+ warning$2(canGoWithoutReload, 'Hash history go(n) causes a full page reload in this browser');
3870
3870
  globalHistory.go(n);
3871
3871
  }
3872
3872
 
@@ -3883,7 +3883,7 @@
3883
3883
  function checkDOMListeners(delta) {
3884
3884
  listenerCount += delta;
3885
3885
 
3886
- if (listenerCount === 1) {
3886
+ if (listenerCount === 1 && delta === 1) {
3887
3887
  window.addEventListener(HashChangeEvent$1$1, handleHashChange);
3888
3888
  } else if (listenerCount === 0) {
3889
3889
  window.removeEventListener(HashChangeEvent$1$1, handleHashChange);
@@ -3925,7 +3925,7 @@
3925
3925
 
3926
3926
  var history = {
3927
3927
  length: globalHistory.length,
3928
- action: "POP",
3928
+ action: 'POP',
3929
3929
  location: initialLocation,
3930
3930
  createHref: createHref,
3931
3931
  push: push,
@@ -1 +1 @@
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,y){"use strict";y=y&&y.hasOwnProperty("default")?y.default:y;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__",d=function(){return e[u]=(e[u]||0)+1};function s(t){return function(){return t}}var f=function(){};f.thatReturns=s,f.thatReturnsFalse=s(!1),f.thatReturnsTrue=s(!0),f.thatReturnsNull=s(null),f.thatReturnsThis=function(){return this},f.thatReturnsArgument=function(t){return t};var v=f,l=r(function(t,e){e.__esModule=!0;n(y);var c=n(h),u=n(d);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 f(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 p=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=f(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)})}}),f(e,t)}return l(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):p,0!=(r|=0)&&this.emitter.set(t.value,r))}var o,i},u.prototype.render=function(){return this.props.children},u}(y.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=f(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()})},f(n,t)}return l(a,i),a.prototype.componentWillReceiveProps=function(t){var e=t.observedBits;this.observedBits=null==e?p:e},a.prototype.componentDidMount=function(){this.context[r]&&this.context[r].on(this.onUpdate);var t=this.props.observedBits;this.observedBits=null==t?p: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}(y.Component);return i.contextTypes=((n={})[r]=c.default.object,n),{Provider:o,Consumer:i}},t.exports=e.default});n(l);var p=n(r(function(t,e){e.__esModule=!0;var n=o(y),r=o(l);function o(t){return t&&t.__esModule?t:{default:t}}e.default=n.default.createContext||r.default,t.exports=e.default}));function m(t,e){t.prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e}function b(){return(b=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}).apply(this,arguments)}function g(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="Invariant failed";function P(t,e){if(!t)throw new Error(x)}function E(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}function C(t,e,n,r){var o;"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=b({},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&&g(t),i=e&&g(e),a=o||i;if(t&&g(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,f=r.length;0<=f;f--){var l=r[f];"."===l?w(r,f):".."===l?(w(r,f),s++):s&&(w(r,f),s--)}if(!a)for(;s--;s)r.unshift("..");!a||""===r[0]||r[0]&&g(r[0])||r.unshift("");var p=r.join("/");return c&&"/"!==p.substr(-1)&&(p+="/"),p}(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o}function S(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)}"undefined"==typeof window||!window.document||window.document.createElement;function j(t,e,n){return Math.min(Math.max(t,e),n)}function R(t){void 0===t&&(t={});var i,r,e=t,o=e.getUserConfirmation,n=e.initialEntries,a=void 0===n?["/"]:n,c=e.initialIndex,u=void 0===c?0:c,s=e.keyLength,f=void 0===s?6:s,l=(i=null,r=[],{setPrompt:function(t){return 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):r(!0):r(!1!==o)}else r(!0)},appendListener:function(t){var e=!0;function n(){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=new Array(t),n=0;n<t;n++)e[n]=arguments[n];r.forEach(function(t){return t.apply(void 0,e)})}});function p(t){b(g,t),g.length=g.entries.length,l.notifyListeners(g.location,g.action)}function h(){return Math.random().toString(36).substr(2,f)}var d=j(u,0,a.length-1),v=a.map(function(t){return C(t,void 0,"string"==typeof t?h():t.key||h())}),y=E;function m(t){var e=j(g.index+t,0,g.entries.length-1),n=g.entries[e];l.confirmTransitionTo(n,"POP",o,function(t){t?p({action:"POP",location:n,index:e}):p()})}var g={length:v.length,action:"POP",location:v[d],index:d,entries:v,createHref:y,push:function(t,e){var r=C(t,e,h(),g.location);l.confirmTransitionTo(r,"PUSH",o,function(t){if(t){var e=g.index+1,n=g.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){var n="REPLACE",r=C(t,e,h(),g.location);l.confirmTransitionTo(r,n,o,function(t){t&&(g.entries[g.index]=r,p({action:n,location:r}))})},go:m,goBack:function(){m(-1)},goForward:function(){m(1)},canGo:function(t){var e=g.index+t;return 0<=e&&e<g.entries.length},block:function(t){return void 0===t&&(t=!1),l.setPrompt(t)},listen:function(t){return l.appendListener(t)}};return g}var k=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)},_=V,T=$,A=function(t,e){return F($(t,e))},M=F,U=D,L=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function $(t,e){for(var n,r,o=[],i=0,a=0,c="",u=e&&e.delimiter||"/";null!=(n=L.exec(t));){var s=n[0],f=n[1],l=n.index;if(c+=t.slice(a,l),a=l+s.length,f)c+=f[1];else{var p=t[a],h=n[2],d=n[3],v=n[4],y=n[5],m=n[6],g=n[7];c&&(o.push(c),c="");var b=null!=h&&null!=p&&p!==h,w="+"===m||"*"===m,O="?"===m||"*"===m,x=n[2]||u,P=v||y;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?".*":"[^"+N(x)+"]+?"})}}return a<t.length&&(c+=t.substr(a)),c&&o.push(c),o}function I(t){return encodeURI(t).replace(/[\/?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function F(f){for(var l=new Array(f.length),t=0;t<f.length;t++)"object"==typeof f[t]&&(l[t]=new RegExp("^(?:"+f[t].pattern+")$"));return function(t,e){for(var n="",r=t||{},o=(e||{}).pretty?I:encodeURIComponent,i=0;i<f.length;i++){var a=f[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(k(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]),!l[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),!l[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 N(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function H(t,e){return t.keys=e,t}function B(t){return t.sensitive?"":"i"}function D(t,e,n){k(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+=N(c);else{var u=N(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 f=N(n.delimiter||"/"),l=i.slice(-f.length)===f;return r||(i=(l?i.slice(0,-f.length):i)+"(?:"+f+"(?=$))?"),i+=o?"$":r&&l?"":"(?="+f+"|$)",H(new RegExp("^"+i,B(n)),e)}function V(t,e,n){return k(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 H(t,e)}(t,e):k(t)?function(t,e,n){for(var r=[],o=0;o<t.length;o++)r.push(V(t[o],e,n).source);return H(new RegExp("(?:"+r.join("|")+")",B(n)),e)}(t,e,n):(r=e,D($(t,o=n),r,o));var r,o}_.parse=T,_.compile=A,_.tokensToFunction=M,_.tokensToRegExp=U;var q=r(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,c=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,s=n?Symbol.for("react.context"):60110,f=n?Symbol.for("react.concurrent_mode"):60111,l=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.memo"):60115,d=n?Symbol.for("react.lazy"):60116;function v(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case r:switch(t=t.type){case f:case i:case c:case a:return t;default:switch(t=t&&t.$$typeof){case s:case l:case u:return t;default:return e}}case o:return e}}}function y(t){return v(t)===f}e.typeOf=v,e.AsyncMode=f,e.ConcurrentMode=f,e.ContextConsumer=s,e.ContextProvider=u,e.Element=r,e.ForwardRef=l,e.Fragment=i,e.Profiler=c,e.Portal=o,e.StrictMode=a,e.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===i||t===f||t===c||t===a||t===p||"object"==typeof t&&null!==t&&(t.$$typeof===d||t.$$typeof===h||t.$$typeof===u||t.$$typeof===s||t.$$typeof===l)},e.isAsyncMode=function(t){return y(t)},e.isConcurrentMode=y,e.isContextConsumer=function(t){return v(t)===s},e.isContextProvider=function(t){return v(t)===u},e.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===r},e.isForwardRef=function(t){return v(t)===l},e.isFragment=function(t){return v(t)===i},e.isProfiler=function(t){return v(t)===c},e.isPortal=function(t){return v(t)===o},e.isStrictMode=function(t){return v(t)===a}});n(q);q.typeOf,q.AsyncMode,q.ConcurrentMode,q.ContextConsumer,q.ContextProvider,q.Element,q.ForwardRef,q.Fragment,q.Profiler,q.Portal,q.StrictMode,q.isValidElementType,q.isAsyncMode,q.isConcurrentMode,q.isContextConsumer,q.isContextProvider,q.isElement,q.isForwardRef,q.isFragment,q.isProfiler,q.isPortal,q.isStrictMode;var W=r(function(t,e){});n(W);W.typeOf,W.AsyncMode,W.ConcurrentMode,W.ContextConsumer,W.ContextProvider,W.Element,W.ForwardRef,W.Fragment,W.Profiler,W.Portal,W.StrictMode,W.isValidElementType,W.isAsyncMode,W.isConcurrentMode,W.isContextConsumer,W.isContextProvider,W.isElement,W.isForwardRef,W.isFragment,W.isProfiler,W.isPortal,W.isStrictMode;var K=r(function(t){t.exports=q});K.isValidElementType;function J(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],0<=e.indexOf(n)||(o[n]=t[n]);return o}var Y={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},z={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},G={};G[K.ForwardRef]={$$typeof:!0,render:!0};var Q=Object.defineProperty,X=Object.getOwnPropertyNames,Z=Object.getOwnPropertySymbols,tt=Object.getOwnPropertyDescriptor,et=Object.getPrototypeOf,nt=Object.prototype;var rt=function t(e,n,r){if("string"==typeof n)return e;if(nt){var o=et(n);o&&o!==nt&&t(e,o,r)}var i=X(n);Z&&(i=i.concat(Z(n)));for(var a=G[e.$$typeof]||Y,c=G[n.$$typeof]||Y,u=0;u<i.length;++u){var s=i[u];if(!(z[s]||r&&r[s]||c&&c[s]||a&&a[s])){var f=tt(n,s);try{Q(e,s,f)}catch(t){}}}return e},ot=function(t){var e=p();return e.Provider.displayName=t+".Provider",e.Consumer.displayName=t+".Consumer",e}("Router"),it=function(n){function t(t){var e;return(e=n.call(this,t)||this).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}m(t,n),t.computeRootMatch=function(t){return{path:"/",url:"/",params:{},isExact:"/"===t}};var e=t.prototype;return e.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},e.componentWillUnmount=function(){this.unlisten&&this.unlisten()},e.render=function(){return y.createElement(ot.Provider,{children:this.props.children||null,value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}})},t}(y.Component),at=function(o){function t(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=o.call.apply(o,[this].concat(n))||this).history=R(t.props),t}return m(t,o),t.prototype.render=function(){return y.createElement(it,{history:this.history,children:this.props.children})},t}(y.Component),ct=function(t){function e(){return t.apply(this,arguments)||this}m(e,t);var n=e.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(t){this.props.onUpdate&&this.props.onUpdate.call(this,this,t)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},e}(y.Component);var ut={},st=1e4,ft=0;function lt(t,e){return void 0===t&&(t="/"),void 0===e&&(e={}),"/"===t?t:function(t){if(ut[t])return ut[t];var e=_.compile(t);return ft<st&&(ut[t]=e,ft++),e}(t)(e,{pretty:!0})}var pt={},ht=1e4,dt=0;function vt(s,t){void 0===t&&(t={}),"string"==typeof t&&(t={path:t});var e=t,n=e.path,r=e.exact,f=void 0!==r&&r,o=e.strict,l=void 0!==o&&o,i=e.sensitive,p=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=pt[n]||(pt[n]={});if(r[t])return r[t];var o=[],i={regexp:_(t,o,e),keys:o};return dt<ht&&(r[t]=i,dt++),i}(e,{end:f,strict:l,sensitive:p}),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 f&&!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)}var yt=function(t){function e(){return t.apply(this,arguments)||this}return m(e,t),e.prototype.render=function(){var u=this;return y.createElement(ot.Consumer,null,function(t){t||P(!1);var e,n=u.props.location||t.location,r=b({},t,{location:n,match:u.props.computedMatch?u.props.computedMatch:u.props.path?vt(n.pathname,u.props):t.match}),o=u.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),y.createElement(ot.Provider,{value:r},i&&(e=i,0!==y.Children.count(e))?i:r.match?a?y.createElement(a,r):c?c(r):null:null)})},e}(y.Component);function mt(t){return"/"===t.charAt(0)?t:"/"+t}function gt(t){return"string"==typeof t?t:E(t)}function bt(t){return function(){P(!1)}}function wt(){}var Ot=function(o){function t(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))||this).handlePush=function(t){return e.navigateTo(t,"PUSH")},e.handleReplace=function(t){return e.navigateTo(t,"REPLACE")},e.handleListen=function(){return wt},e.handleBlock=function(){return wt},e}m(t,o);var e=t.prototype;return e.navigateTo=function(t,e){var n,r,o=this.props,i=o.basename,a=void 0===i?"":i,c=o.context;c.action=e,c.location=(n=a,r=C(t),n?b({},r,{pathname:mt(n)+r.pathname}):r),c.url=gt(c.location)},e.render=function(){var t=this.props,e=t.basename,n=void 0===e?"":e,r=t.context,o=void 0===r?{}:r,i=t.location,a=void 0===i?"/":i,c=J(t,["basename","context","location"]),u={createHref:function(t){return mt(n+gt(t))},action:"POP",location:function(t,e){if(!t)return e;var n=mt(t);return 0!==e.pathname.indexOf(n)?e:b({},e,{pathname:e.pathname.substr(n.length)})}(n,C(a)),push:this.handlePush,replace:this.handleReplace,go:bt(),goBack:bt(),goForward:bt(),listen:this.handleListen,block:this.handleBlock};return y.createElement(it,b({},c,{history:u,staticContext:o}))},t}(y.Component),xt=function(t){function e(){return t.apply(this,arguments)||this}return m(e,t),e.prototype.render=function(){var t=this;return y.createElement(ot.Consumer,null,function(n){n||P(!1);var r,o,i=t.props.location||n.location;return y.Children.forEach(t.props.children,function(t){if(null==o&&y.isValidElement(t)){var e=(r=t).props.path||t.props.from;o=e?vt(i.pathname,b({},t.props,{path:e})):n.match}}),o?y.cloneElement(r,{location:i,computedMatch:o}):null})},e}(y.Component);function Pt(t,e){t.prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e}function Et(){return(Et=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}).apply(this,arguments)}function Ct(t){return"/"===t.charAt(0)}function St(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 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};var Rt="Invariant failed";function kt(t,e){if(!t)throw new Error(Rt)}function _t(t){return"/"===t.charAt(0)?t:"/"+t}function Tt(t){return"/"===t.charAt(0)?t.substr(1):t}function At(t,e){return n=t,new RegExp("^"+e+"(\\/|\\?|#|$)","i").test(n)?t.substr(e.length):t;var n}function Mt(t){return"/"===t.charAt(t.length-1)?t.slice(0,-1):t}function Ut(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}function Lt(t,e,n,r){var o;"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=Et({},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&&Ct(t),i=e&&Ct(e),a=o||i;if(t&&Ct(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,f=r.length;0<=f;f--){var l=r[f];"."===l?St(r,f):".."===l?(St(r,f),s++):s&&(St(r,f),s--)}if(!a)for(;s--;s)r.unshift("..");!a||""===r[0]||r[0]&&Ct(r[0])||r.unshift("");var p=r.join("/");return c&&"/"!==p.substr(-1)&&(p+="/"),p}(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o}function $t(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":jt(e);if(t!==(void 0===r?"undefined":jt(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)}function It(){var i=null;var r=[];return{setPrompt:function(t){return 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):r(!0):r(!1!==o)}else r(!0)},appendListener:function(t){var e=!0;function n(){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=new Array(t),n=0;n<t;n++)e[n]=arguments[n];r.forEach(function(t){return t.apply(void 0,e)})}}}var Ft=!("undefined"==typeof window||!window.document||!window.document.createElement);function Nt(t,e){e(window.confirm(t))}var Ht="popstate",Bt="hashchange";function Dt(){try{return window.history.state||{}}catch(t){return{}}}function Vt(t){void 0===t&&(t={}),Ft||kt(!1);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,o=r.forceRefresh,s=void 0!==o&&o,i=r.getUserConfirmation,f=void 0===i?Nt:i,a=r.keyLength,l=void 0===a?6:a,p=t.basename?Mt(_t(t.basename)):"";function h(t){var e=t||{},n=e.key,r=e.state,o=window.location,i=o.pathname+o.search+o.hash;return p&&(i=At(i,p)),Lt(i,r,n)}function d(){return Math.random().toString(36).substr(2,l)}var v=It();function y(t){Et(R,t),R.length=c.length,v.notifyListeners(R.location,R.action)}function m(t){void(void 0===t.state&&navigator.userAgent.indexOf("CriOS"))||w(h(t.state))}function g(){w(h(Dt()))}var b=!1;function w(e){if(b)b=!1,y();else{v.confirmTransitionTo(e,"POP",f,function(t){t?y({action:"POP",location:e}):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&&(b=!0,E(o))}(e)})}}var O=h(Dt()),x=[O.key];function P(t){return p+Ut(t)}function E(t){c.go(t)}var C=0;function S(t){1===(C+=t)?(window.addEventListener(Ht,m),n&&window.addEventListener(Bt,g)):0===C&&(window.removeEventListener(Ht,m),n&&window.removeEventListener(Bt,g))}var j=!1;var R={length:c.length,action:"POP",location:O,createHref:P,push:function(t,e){var a=Lt(t,e,d(),R.location);v.confirmTransitionTo(a,"PUSH",f,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 window.location.href=e}})},replace:function(t,e){var i="REPLACE",a=Lt(t,e,d(),R.location);v.confirmTransitionTo(a,i,f,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 window.location.replace(e)}})},go:E,goBack:function(){E(-1)},goForward:function(){E(1)},block:function(t){void 0===t&&(t=!1);var e=v.setPrompt(t);return j||(S(1),j=!0),function(){return j&&(j=!1,S(-1)),e()}},listen:function(t){var e=v.appendListener(t);return S(1),function(){S(-1),e()}}};return R}var qt="hashchange",Wt={hashbang:{encodePath:function(t){return"!"===t.charAt(0)?t:"!/"+Tt(t)},decodePath:function(t){return"!"===t.charAt(0)?t.substr(1):t}},noslash:{encodePath:Tt,decodePath:_t},slash:{encodePath:_t,decodePath:_t}};function Kt(){var t=window.location.href,e=t.indexOf("#");return-1===e?"":t.substring(e+1)}function Jt(t){var e=window.location.href.indexOf("#");window.location.replace(window.location.href.slice(0,0<=e?e:0)+"#"+t)}function Yt(t){void 0===t&&(t={}),Ft||kt(!1);var e=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),t),r=n.getUserConfirmation,c=void 0===r?Nt:r,o=n.hashType,i=void 0===o?"slash":o,u=t.basename?Mt(_t(t.basename)):"",a=Wt[i],s=a.encodePath,f=a.decodePath;function l(){var t=f(Kt());return u&&(t=At(t,u)),Lt(t)}var p=It();function h(t){Et(C,t),C.length=e.length,p.notifyListeners(C.location,C.action)}var d=!1,v=null;function y(){var t=Kt(),e=s(t);if(t!==e)Jt(e);else{var n=l(),r=C.location;if(!d&&$t(r,n))return;if(v===Ut(n))return;v=null,function(e){if(d)d=!1,h();else{p.confirmTransitionTo(e,"POP",c,function(t){t?h({action:"POP",location:e}):function(t){var e=C.location,n=w.lastIndexOf(Ut(e));-1===n&&(n=0);var r=w.lastIndexOf(Ut(t));-1===r&&(r=0);var o=n-r;o&&(d=!0,O(o))}(e)})}}(n)}}var m=Kt(),g=s(m);m!==g&&Jt(g);var b=l(),w=[Ut(b)];function O(t){e.go(t)}var x=0;function P(t){1===(x+=t)?window.addEventListener(qt,y):0===x&&window.removeEventListener(qt,y)}var E=!1;var C={length:e.length,action:"POP",location:b,createHref:function(t){return"#"+s(u+Ut(t))},push:function(t,e){var a=Lt(t,void 0,void 0,C.location);p.confirmTransitionTo(a,"PUSH",c,function(t){if(t){var e,n=Ut(a),r=s(u+n);if(Kt()!==r){v=n,e=r,window.location.hash=e;var o=w.lastIndexOf(Ut(C.location)),i=w.slice(0,-1===o?0:o+1);i.push(n),w=i,h({action:"PUSH",location:a})}else h()}})},replace:function(t,e){var o="REPLACE",i=Lt(t,void 0,void 0,C.location);p.confirmTransitionTo(i,o,c,function(t){if(t){var e=Ut(i),n=s(u+e);Kt()!==n&&(v=e,Jt(n));var r=w.indexOf(Ut(C.location));-1!==r&&(w[r]=e),h({action:o,location:i})}})},go:O,goBack:function(){O(-1)},goForward:function(){O(1)},block:function(t){void 0===t&&(t=!1);var e=p.setPrompt(t);return E||(P(1),E=!0),function(){return E&&(E=!1,P(-1)),e()}},listen:function(t){var e=p.appendListener(t);return P(1),function(){P(-1),e()}}};return C}var zt=Object.getOwnPropertySymbols,Gt=Object.prototype.hasOwnProperty,Qt=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 Xt(){}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=Xt,n.PropTypes=n}()});var Zt=function(o){function t(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=o.call.apply(o,[this].concat(n))||this).history=Vt(t.props),t}return Pt(t,o),t.prototype.render=function(){return y.createElement(it,{history:this.history,children:this.props.children})},t}(y.Component),te=function(o){function t(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=o.call.apply(o,[this].concat(n))||this).history=Yt(t.props),t}return Pt(t,o),t.prototype.render=function(){return y.createElement(it,{history:this.history,children:this.props.children})},t}(y.Component);function ee(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],0<=e.indexOf(n)||(o[n]=t[n]);return o}var ne=function(t){function e(){return t.apply(this,arguments)||this}Pt(e,t);var n=e.prototype;return n.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.replace:e.push)(this.props.to))},n.render=function(){var r=this,t=this.props,o=t.innerRef,i=(t.replace,t.to),a=ee(t,["innerRef","replace","to"]);return y.createElement(ot.Consumer,null,function(e){e||kt(!1);var t="string"==typeof i?Lt(i,null,null,e.location):i,n=t?e.history.createHref(t):"";return y.createElement("a",Et({},a,{onClick:function(t){return r.handleClick(t,e.history)},href:n,ref:o}))})},e}(y.Component);t.BrowserRouter=Zt,t.HashRouter=te,t.Link=ne,t.NavLink=function(t){var e=t["aria-current"],a=void 0===e?"page":e,n=t.activeClassName,c=void 0===n?"active":n,u=t.activeStyle,s=t.className,r=t.exact,f=t.isActive,o=t.location,i=t.strict,l=t.style,p=t.to,h=ee(t,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","strict","style","to"]),d="object"==typeof p?p.pathname:p,v=d&&d.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1");return y.createElement(yt,{path:v,exact:r,strict:i,location:o,children:function(t){var e=t.location,n=t.match,r=!!(f?f(n,e):n),o=r?function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.filter(function(t){return t}).join(" ")}(s,c):s,i=r?Et({},l,u):l;return y.createElement(ne,Et({"aria-current":r&&a||null,className:o,style:i,to:p},h))}})},t.MemoryRouter=at,t.Prompt=function(t){var r=t.message,e=t.when,o=void 0===e||e;return y.createElement(ot.Consumer,null,function(t){if(t||P(!1),!o||t.staticContext)return null;var n=t.history.block;return y.createElement(ct,{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()},message:r})})},t.Redirect=function(t){var i=t.computedMatch,a=t.to,e=t.push,c=void 0!==e&&e;return y.createElement(ot.Consumer,null,function(t){t||P(!1);var e=t.history,n=t.staticContext,r=c?e.push:e.replace,o=C(i?"string"==typeof a?lt(a,i.params):b({},a,{pathname:lt(a.pathname,i.params)}):a);return n?(r(o),null):y.createElement(ct,{onMount:function(){r(o)},onUpdate:function(t,e){S(e.to,o)||r(o)},to:a})})},t.Route=yt,t.Router=it,t.StaticRouter=Ot,t.Switch=xt,t.generatePath=lt,t.matchPath=vt,t.withRouter=function(r){var t=function(t){var e=t.wrappedComponentRef,n=J(t,["wrappedComponentRef"]);return y.createElement(yt,{children:function(t){return y.createElement(r,b({},n,t,{ref:e}))}})};return t.displayName="withRouter("+(r.displayName||r.name)+")",t.WrappedComponent=r,rt(t,r)},t.__RouterContext=ot,Object.defineProperty(t,"__esModule",{value:!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,y){"use strict";y=y&&y.hasOwnProperty("default")?y.default:y;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__",d=function(){return e[u]=(e[u]||0)+1};function s(t){return function(){return t}}var f=function(){};f.thatReturns=s,f.thatReturnsFalse=s(!1),f.thatReturnsTrue=s(!0),f.thatReturnsNull=s(null),f.thatReturnsThis=function(){return this},f.thatReturnsArgument=function(t){return t};var v=f,l=r(function(t,e){e.__esModule=!0;n(y);var c=n(h),u=n(d);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 f(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 p=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=f(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)})}}),f(e,t)}return l(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):p,0!=(r|=0)&&this.emitter.set(t.value,r))}var o,i},u.prototype.render=function(){return this.props.children},u}(y.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=f(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()})},f(n,t)}return l(a,i),a.prototype.componentWillReceiveProps=function(t){var e=t.observedBits;this.observedBits=null==e?p:e},a.prototype.componentDidMount=function(){this.context[r]&&this.context[r].on(this.onUpdate);var t=this.props.observedBits;this.observedBits=null==t?p: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}(y.Component);return i.contextTypes=((n={})[r]=c.default.object,n),{Provider:o,Consumer:i}},t.exports=e.default});n(l);var p=n(r(function(t,e){e.__esModule=!0;var n=o(y),r=o(l);function o(t){return t&&t.__esModule?t:{default:t}}e.default=n.default.createContext||r.default,t.exports=e.default}));function m(t,e){t.prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e}function b(){return(b=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}).apply(this,arguments)}function g(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="Invariant failed";function P(t,e){if(!t)throw new Error(x)}function E(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}function C(t,e,n,r){var o;"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=b({},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&&g(t),i=e&&g(e),a=o||i;if(t&&g(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,f=r.length;0<=f;f--){var l=r[f];"."===l?w(r,f):".."===l?(w(r,f),s++):s&&(w(r,f),s--)}if(!a)for(;s--;s)r.unshift("..");!a||""===r[0]||r[0]&&g(r[0])||r.unshift("");var p=r.join("/");return c&&"/"!==p.substr(-1)&&(p+="/"),p}(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o}function S(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)}"undefined"==typeof window||!window.document||window.document.createElement;function j(t,e,n){return Math.min(Math.max(t,e),n)}function R(t){void 0===t&&(t={});var i,r,e=t,o=e.getUserConfirmation,n=e.initialEntries,a=void 0===n?["/"]:n,c=e.initialIndex,u=void 0===c?0:c,s=e.keyLength,f=void 0===s?6:s,l=(i=null,r=[],{setPrompt:function(t){return 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):r(!0):r(!1!==o)}else r(!0)},appendListener:function(t){var e=!0;function n(){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=new Array(t),n=0;n<t;n++)e[n]=arguments[n];r.forEach(function(t){return t.apply(void 0,e)})}});function p(t){b(g,t),g.length=g.entries.length,l.notifyListeners(g.location,g.action)}function h(){return Math.random().toString(36).substr(2,f)}var d=j(u,0,a.length-1),v=a.map(function(t){return C(t,void 0,"string"==typeof t?h():t.key||h())}),y=E;function m(t){var e=j(g.index+t,0,g.entries.length-1),n=g.entries[e];l.confirmTransitionTo(n,"POP",o,function(t){t?p({action:"POP",location:n,index:e}):p()})}var g={length:v.length,action:"POP",location:v[d],index:d,entries:v,createHref:y,push:function(t,e){var r=C(t,e,h(),g.location);l.confirmTransitionTo(r,"PUSH",o,function(t){if(t){var e=g.index+1,n=g.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){var n="REPLACE",r=C(t,e,h(),g.location);l.confirmTransitionTo(r,n,o,function(t){t&&(g.entries[g.index]=r,p({action:n,location:r}))})},go:m,goBack:function(){m(-1)},goForward:function(){m(1)},canGo:function(t){var e=g.index+t;return 0<=e&&e<g.entries.length},block:function(t){return void 0===t&&(t=!1),l.setPrompt(t)},listen:function(t){return l.appendListener(t)}};return g}var k=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)},_=V,T=$,A=function(t,e){return F($(t,e))},M=F,U=D,L=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function $(t,e){for(var n,r,o=[],i=0,a=0,c="",u=e&&e.delimiter||"/";null!=(n=L.exec(t));){var s=n[0],f=n[1],l=n.index;if(c+=t.slice(a,l),a=l+s.length,f)c+=f[1];else{var p=t[a],h=n[2],d=n[3],v=n[4],y=n[5],m=n[6],g=n[7];c&&(o.push(c),c="");var b=null!=h&&null!=p&&p!==h,w="+"===m||"*"===m,O="?"===m||"*"===m,x=n[2]||u,P=v||y;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?".*":"[^"+N(x)+"]+?"})}}return a<t.length&&(c+=t.substr(a)),c&&o.push(c),o}function I(t){return encodeURI(t).replace(/[\/?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function F(f){for(var l=new Array(f.length),t=0;t<f.length;t++)"object"==typeof f[t]&&(l[t]=new RegExp("^(?:"+f[t].pattern+")$"));return function(t,e){for(var n="",r=t||{},o=(e||{}).pretty?I:encodeURIComponent,i=0;i<f.length;i++){var a=f[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(k(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]),!l[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),!l[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 N(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function H(t,e){return t.keys=e,t}function B(t){return t.sensitive?"":"i"}function D(t,e,n){k(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+=N(c);else{var u=N(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 f=N(n.delimiter||"/"),l=i.slice(-f.length)===f;return r||(i=(l?i.slice(0,-f.length):i)+"(?:"+f+"(?=$))?"),i+=o?"$":r&&l?"":"(?="+f+"|$)",H(new RegExp("^"+i,B(n)),e)}function V(t,e,n){return k(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 H(t,e)}(t,e):k(t)?function(t,e,n){for(var r=[],o=0;o<t.length;o++)r.push(V(t[o],e,n).source);return H(new RegExp("(?:"+r.join("|")+")",B(n)),e)}(t,e,n):(r=e,D($(t,o=n),r,o));var r,o}_.parse=T,_.compile=A,_.tokensToFunction=M,_.tokensToRegExp=U;var q=r(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,c=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,s=n?Symbol.for("react.context"):60110,f=n?Symbol.for("react.concurrent_mode"):60111,l=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.memo"):60115,d=n?Symbol.for("react.lazy"):60116;function v(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case r:switch(t=t.type){case f:case i:case c:case a:return t;default:switch(t=t&&t.$$typeof){case s:case l:case u:return t;default:return e}}case o:return e}}}function y(t){return v(t)===f}e.typeOf=v,e.AsyncMode=f,e.ConcurrentMode=f,e.ContextConsumer=s,e.ContextProvider=u,e.Element=r,e.ForwardRef=l,e.Fragment=i,e.Profiler=c,e.Portal=o,e.StrictMode=a,e.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===i||t===f||t===c||t===a||t===p||"object"==typeof t&&null!==t&&(t.$$typeof===d||t.$$typeof===h||t.$$typeof===u||t.$$typeof===s||t.$$typeof===l)},e.isAsyncMode=function(t){return y(t)},e.isConcurrentMode=y,e.isContextConsumer=function(t){return v(t)===s},e.isContextProvider=function(t){return v(t)===u},e.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===r},e.isForwardRef=function(t){return v(t)===l},e.isFragment=function(t){return v(t)===i},e.isProfiler=function(t){return v(t)===c},e.isPortal=function(t){return v(t)===o},e.isStrictMode=function(t){return v(t)===a}});n(q);q.typeOf,q.AsyncMode,q.ConcurrentMode,q.ContextConsumer,q.ContextProvider,q.Element,q.ForwardRef,q.Fragment,q.Profiler,q.Portal,q.StrictMode,q.isValidElementType,q.isAsyncMode,q.isConcurrentMode,q.isContextConsumer,q.isContextProvider,q.isElement,q.isForwardRef,q.isFragment,q.isProfiler,q.isPortal,q.isStrictMode;var W=r(function(t,e){});n(W);W.typeOf,W.AsyncMode,W.ConcurrentMode,W.ContextConsumer,W.ContextProvider,W.Element,W.ForwardRef,W.Fragment,W.Profiler,W.Portal,W.StrictMode,W.isValidElementType,W.isAsyncMode,W.isConcurrentMode,W.isContextConsumer,W.isContextProvider,W.isElement,W.isForwardRef,W.isFragment,W.isProfiler,W.isPortal,W.isStrictMode;var K=r(function(t){t.exports=q});K.isValidElementType;function J(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],0<=e.indexOf(n)||(o[n]=t[n]);return o}var Y={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},z={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},G={};G[K.ForwardRef]={$$typeof:!0,render:!0};var Q=Object.defineProperty,X=Object.getOwnPropertyNames,Z=Object.getOwnPropertySymbols,tt=Object.getOwnPropertyDescriptor,et=Object.getPrototypeOf,nt=Object.prototype;var rt=function t(e,n,r){if("string"==typeof n)return e;if(nt){var o=et(n);o&&o!==nt&&t(e,o,r)}var i=X(n);Z&&(i=i.concat(Z(n)));for(var a=G[e.$$typeof]||Y,c=G[n.$$typeof]||Y,u=0;u<i.length;++u){var s=i[u];if(!(z[s]||r&&r[s]||c&&c[s]||a&&a[s])){var f=tt(n,s);try{Q(e,s,f)}catch(t){}}}return e},ot=function(t){var e=p();return e.Provider.displayName=t+".Provider",e.Consumer.displayName=t+".Consumer",e}("Router"),it=function(n){function t(t){var e;return(e=n.call(this,t)||this).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}m(t,n),t.computeRootMatch=function(t){return{path:"/",url:"/",params:{},isExact:"/"===t}};var e=t.prototype;return e.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},e.componentWillUnmount=function(){this.unlisten&&this.unlisten()},e.render=function(){return y.createElement(ot.Provider,{children:this.props.children||null,value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}})},t}(y.Component),at=function(o){function t(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=o.call.apply(o,[this].concat(n))||this).history=R(t.props),t}return m(t,o),t.prototype.render=function(){return y.createElement(it,{history:this.history,children:this.props.children})},t}(y.Component),ct=function(t){function e(){return t.apply(this,arguments)||this}m(e,t);var n=e.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(t){this.props.onUpdate&&this.props.onUpdate.call(this,this,t)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},e}(y.Component);var ut={},st=1e4,ft=0;function lt(t,e){return void 0===t&&(t="/"),void 0===e&&(e={}),"/"===t?t:function(t){if(ut[t])return ut[t];var e=_.compile(t);return ft<st&&(ut[t]=e,ft++),e}(t)(e,{pretty:!0})}var pt={},ht=1e4,dt=0;function vt(s,t){void 0===t&&(t={}),"string"==typeof t&&(t={path:t});var e=t,n=e.path,r=e.exact,f=void 0!==r&&r,o=e.strict,l=void 0!==o&&o,i=e.sensitive,p=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=pt[n]||(pt[n]={});if(r[t])return r[t];var o=[],i={regexp:_(t,o,e),keys:o};return dt<ht&&(r[t]=i,dt++),i}(e,{end:f,strict:l,sensitive:p}),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 f&&!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)}var yt=function(t){function e(){return t.apply(this,arguments)||this}return m(e,t),e.prototype.render=function(){var u=this;return y.createElement(ot.Consumer,null,function(t){t||P(!1);var e,n=u.props.location||t.location,r=b({},t,{location:n,match:u.props.computedMatch?u.props.computedMatch:u.props.path?vt(n.pathname,u.props):t.match}),o=u.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),y.createElement(ot.Provider,{value:r},i&&(e=i,0!==y.Children.count(e))?i:r.match?a?y.createElement(a,r):c?c(r):null:null)})},e}(y.Component);function mt(t){return"/"===t.charAt(0)?t:"/"+t}function gt(t){return"string"==typeof t?t:E(t)}function bt(t){return function(){P(!1)}}function wt(){}var Ot=function(o){function t(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=o.call.apply(o,[this].concat(n))||this).handlePush=function(t){return e.navigateTo(t,"PUSH")},e.handleReplace=function(t){return e.navigateTo(t,"REPLACE")},e.handleListen=function(){return wt},e.handleBlock=function(){return wt},e}m(t,o);var e=t.prototype;return e.navigateTo=function(t,e){var n,r,o=this.props,i=o.basename,a=void 0===i?"":i,c=o.context;c.action=e,c.location=(n=a,r=C(t),n?b({},r,{pathname:mt(n)+r.pathname}):r),c.url=gt(c.location)},e.render=function(){var t=this.props,e=t.basename,n=void 0===e?"":e,r=t.context,o=void 0===r?{}:r,i=t.location,a=void 0===i?"/":i,c=J(t,["basename","context","location"]),u={createHref:function(t){return mt(n+gt(t))},action:"POP",location:function(t,e){if(!t)return e;var n=mt(t);return 0!==e.pathname.indexOf(n)?e:b({},e,{pathname:e.pathname.substr(n.length)})}(n,C(a)),push:this.handlePush,replace:this.handleReplace,go:bt(),goBack:bt(),goForward:bt(),listen:this.handleListen,block:this.handleBlock};return y.createElement(it,b({},c,{history:u,staticContext:o}))},t}(y.Component),xt=function(t){function e(){return t.apply(this,arguments)||this}return m(e,t),e.prototype.render=function(){var t=this;return y.createElement(ot.Consumer,null,function(n){n||P(!1);var r,o,i=t.props.location||n.location;return y.Children.forEach(t.props.children,function(t){if(null==o&&y.isValidElement(t)){var e=(r=t).props.path||t.props.from;o=e?vt(i.pathname,b({},t.props,{path:e})):n.match}}),o?y.cloneElement(r,{location:i,computedMatch:o}):null})},e}(y.Component);function Pt(t,e){t.prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e}function Et(){return(Et=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}).apply(this,arguments)}function Ct(t){return"/"===t.charAt(0)}function St(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 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};var Rt="Invariant failed";function kt(t,e){if(!t)throw new Error(Rt)}function _t(t){return"/"===t.charAt(0)?t:"/"+t}function Tt(t){return"/"===t.charAt(0)?t.substr(1):t}function At(t,e){return n=t,new RegExp("^"+e+"(\\/|\\?|#|$)","i").test(n)?t.substr(e.length):t;var n}function Mt(t){return"/"===t.charAt(t.length-1)?t.slice(0,-1):t}function Ut(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}function Lt(t,e,n,r){var o;"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=Et({},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&&Ct(t),i=e&&Ct(e),a=o||i;if(t&&Ct(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,f=r.length;0<=f;f--){var l=r[f];"."===l?St(r,f):".."===l?(St(r,f),s++):s&&(St(r,f),s--)}if(!a)for(;s--;s)r.unshift("..");!a||""===r[0]||r[0]&&Ct(r[0])||r.unshift("");var p=r.join("/");return c&&"/"!==p.substr(-1)&&(p+="/"),p}(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o}function $t(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":jt(e);if(t!==(void 0===r?"undefined":jt(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)}function It(){var i=null;var r=[];return{setPrompt:function(t){return 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):r(!0):r(!1!==o)}else r(!0)},appendListener:function(t){var e=!0;function n(){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=new Array(t),n=0;n<t;n++)e[n]=arguments[n];r.forEach(function(t){return t.apply(void 0,e)})}}}var Ft=!("undefined"==typeof window||!window.document||!window.document.createElement);function Nt(t,e){e(window.confirm(t))}var Ht="popstate",Bt="hashchange";function Dt(){try{return window.history.state||{}}catch(t){return{}}}function Vt(t){void 0===t&&(t={}),Ft||kt(!1);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,o=r.forceRefresh,s=void 0!==o&&o,i=r.getUserConfirmation,f=void 0===i?Nt:i,a=r.keyLength,l=void 0===a?6:a,p=t.basename?Mt(_t(t.basename)):"";function h(t){var e=t||{},n=e.key,r=e.state,o=window.location,i=o.pathname+o.search+o.hash;return p&&(i=At(i,p)),Lt(i,r,n)}function d(){return Math.random().toString(36).substr(2,l)}var v=It();function y(t){Et(R,t),R.length=c.length,v.notifyListeners(R.location,R.action)}function m(t){void(void 0===t.state&&navigator.userAgent.indexOf("CriOS"))||w(h(t.state))}function g(){w(h(Dt()))}var b=!1;function w(e){if(b)b=!1,y();else{v.confirmTransitionTo(e,"POP",f,function(t){t?y({action:"POP",location:e}):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&&(b=!0,E(o))}(e)})}}var O=h(Dt()),x=[O.key];function P(t){return p+Ut(t)}function E(t){c.go(t)}var C=0;function S(t){1===(C+=t)&&1===t?(window.addEventListener(Ht,m),n&&window.addEventListener(Bt,g)):0===C&&(window.removeEventListener(Ht,m),n&&window.removeEventListener(Bt,g))}var j=!1;var R={length:c.length,action:"POP",location:O,createHref:P,push:function(t,e){var a=Lt(t,e,d(),R.location);v.confirmTransitionTo(a,"PUSH",f,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 window.location.href=e}})},replace:function(t,e){var i="REPLACE",a=Lt(t,e,d(),R.location);v.confirmTransitionTo(a,i,f,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 window.location.replace(e)}})},go:E,goBack:function(){E(-1)},goForward:function(){E(1)},block:function(t){void 0===t&&(t=!1);var e=v.setPrompt(t);return j||(S(1),j=!0),function(){return j&&(j=!1,S(-1)),e()}},listen:function(t){var e=v.appendListener(t);return S(1),function(){S(-1),e()}}};return R}var qt="hashchange",Wt={hashbang:{encodePath:function(t){return"!"===t.charAt(0)?t:"!/"+Tt(t)},decodePath:function(t){return"!"===t.charAt(0)?t.substr(1):t}},noslash:{encodePath:Tt,decodePath:_t},slash:{encodePath:_t,decodePath:_t}};function Kt(){var t=window.location.href,e=t.indexOf("#");return-1===e?"":t.substring(e+1)}function Jt(t){var e=window.location.href.indexOf("#");window.location.replace(window.location.href.slice(0,0<=e?e:0)+"#"+t)}function Yt(t){void 0===t&&(t={}),Ft||kt(!1);var e=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),t),r=n.getUserConfirmation,c=void 0===r?Nt:r,o=n.hashType,i=void 0===o?"slash":o,u=t.basename?Mt(_t(t.basename)):"",a=Wt[i],s=a.encodePath,f=a.decodePath;function l(){var t=f(Kt());return u&&(t=At(t,u)),Lt(t)}var p=It();function h(t){Et(C,t),C.length=e.length,p.notifyListeners(C.location,C.action)}var d=!1,v=null;function y(){var t=Kt(),e=s(t);if(t!==e)Jt(e);else{var n=l(),r=C.location;if(!d&&$t(r,n))return;if(v===Ut(n))return;v=null,function(e){if(d)d=!1,h();else{p.confirmTransitionTo(e,"POP",c,function(t){t?h({action:"POP",location:e}):function(t){var e=C.location,n=w.lastIndexOf(Ut(e));-1===n&&(n=0);var r=w.lastIndexOf(Ut(t));-1===r&&(r=0);var o=n-r;o&&(d=!0,O(o))}(e)})}}(n)}}var m=Kt(),g=s(m);m!==g&&Jt(g);var b=l(),w=[Ut(b)];function O(t){e.go(t)}var x=0;function P(t){1===(x+=t)&&1===t?window.addEventListener(qt,y):0===x&&window.removeEventListener(qt,y)}var E=!1;var C={length:e.length,action:"POP",location:b,createHref:function(t){return"#"+s(u+Ut(t))},push:function(t,e){var a=Lt(t,void 0,void 0,C.location);p.confirmTransitionTo(a,"PUSH",c,function(t){if(t){var e,n=Ut(a),r=s(u+n);if(Kt()!==r){v=n,e=r,window.location.hash=e;var o=w.lastIndexOf(Ut(C.location)),i=w.slice(0,-1===o?0:o+1);i.push(n),w=i,h({action:"PUSH",location:a})}else h()}})},replace:function(t,e){var o="REPLACE",i=Lt(t,void 0,void 0,C.location);p.confirmTransitionTo(i,o,c,function(t){if(t){var e=Ut(i),n=s(u+e);Kt()!==n&&(v=e,Jt(n));var r=w.indexOf(Ut(C.location));-1!==r&&(w[r]=e),h({action:o,location:i})}})},go:O,goBack:function(){O(-1)},goForward:function(){O(1)},block:function(t){void 0===t&&(t=!1);var e=p.setPrompt(t);return E||(P(1),E=!0),function(){return E&&(E=!1,P(-1)),e()}},listen:function(t){var e=p.appendListener(t);return P(1),function(){P(-1),e()}}};return C}var zt=Object.getOwnPropertySymbols,Gt=Object.prototype.hasOwnProperty,Qt=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 Xt(){}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=Xt,n.PropTypes=n}()});var Zt=function(o){function t(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=o.call.apply(o,[this].concat(n))||this).history=Vt(t.props),t}return Pt(t,o),t.prototype.render=function(){return y.createElement(it,{history:this.history,children:this.props.children})},t}(y.Component),te=function(o){function t(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=o.call.apply(o,[this].concat(n))||this).history=Yt(t.props),t}return Pt(t,o),t.prototype.render=function(){return y.createElement(it,{history:this.history,children:this.props.children})},t}(y.Component);function ee(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],0<=e.indexOf(n)||(o[n]=t[n]);return o}var ne=function(t){function e(){return t.apply(this,arguments)||this}Pt(e,t);var n=e.prototype;return n.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.replace:e.push)(this.props.to))},n.render=function(){var r=this,t=this.props,o=t.innerRef,i=(t.replace,t.to),a=ee(t,["innerRef","replace","to"]);return y.createElement(ot.Consumer,null,function(e){e||kt(!1);var t="string"==typeof i?Lt(i,null,null,e.location):i,n=t?e.history.createHref(t):"";return y.createElement("a",Et({},a,{onClick:function(t){return r.handleClick(t,e.history)},href:n,ref:o}))})},e}(y.Component);t.BrowserRouter=Zt,t.HashRouter=te,t.Link=ne,t.NavLink=function(t){var e=t["aria-current"],a=void 0===e?"page":e,n=t.activeClassName,c=void 0===n?"active":n,u=t.activeStyle,s=t.className,r=t.exact,f=t.isActive,o=t.location,i=t.strict,l=t.style,p=t.to,h=ee(t,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","strict","style","to"]),d="object"==typeof p?p.pathname:p,v=d&&d.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1");return y.createElement(yt,{path:v,exact:r,strict:i,location:o,children:function(t){var e=t.location,n=t.match,r=!!(f?f(n,e):n),o=r?function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.filter(function(t){return t}).join(" ")}(s,c):s,i=r?Et({},l,u):l;return y.createElement(ne,Et({"aria-current":r&&a||null,className:o,style:i,to:p},h))}})},t.MemoryRouter=at,t.Prompt=function(t){var r=t.message,e=t.when,o=void 0===e||e;return y.createElement(ot.Consumer,null,function(t){if(t||P(!1),!o||t.staticContext)return null;var n=t.history.block;return y.createElement(ct,{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()},message:r})})},t.Redirect=function(t){var i=t.computedMatch,a=t.to,e=t.push,c=void 0!==e&&e;return y.createElement(ot.Consumer,null,function(t){t||P(!1);var e=t.history,n=t.staticContext,r=c?e.push:e.replace,o=C(i?"string"==typeof a?lt(a,i.params):b({},a,{pathname:lt(a.pathname,i.params)}):a);return n?(r(o),null):y.createElement(ct,{onMount:function(){r(o)},onUpdate:function(t,e){S(e.to,o)||r(o)},to:a})})},t.Route=yt,t.Router=it,t.StaticRouter=Ot,t.Switch=xt,t.generatePath=lt,t.matchPath=vt,t.withRouter=function(r){var t=function(t){var e=t.wrappedComponentRef,n=J(t,["wrappedComponentRef"]);return y.createElement(yt,{children:function(t){return y.createElement(r,b({},n,t,{ref:e}))}})};return t.displayName="withRouter("+(r.displayName||r.name)+")",t.WrappedComponent=r,rt(t,r)},t.__RouterContext=ot,Object.defineProperty(t,"__esModule",{value:!0})});