hyper-router 2.4.1 → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +330 -268
- data/lib/hyper-router.rb +30 -15
- data/lib/hyper-router/class_methods.rb +53 -0
- data/lib/hyper-router/component_methods.rb +63 -0
- data/lib/hyper-router/history.rb +22 -0
- data/lib/hyper-router/location.rb +29 -0
- data/lib/hyper-router/match.rb +18 -0
- data/lib/hyper-router/react-router-source.rb +4 -2
- data/lib/{react/router → hyper-router}/version.rb +1 -1
- data/lib/hyperloop/router.rb +36 -0
- data/lib/hyperloop/router/base.rb +12 -0
- data/lib/hyperloop/router/base/class_methods.rb +21 -0
- data/lib/hyperloop/router/browser.rb +12 -0
- data/lib/hyperloop/router/browser/class_methods.rb +15 -0
- data/lib/hyperloop/router/component.rb +28 -0
- data/lib/hyperloop/router/hash.rb +12 -0
- data/lib/hyperloop/router/hash/class_methods.rb +15 -0
- data/lib/hyperloop/router/memory.rb +12 -0
- data/lib/hyperloop/router/memory/class_methods.rb +15 -0
- data/lib/hyperloop/router/static.rb +12 -0
- data/lib/hyperloop/router/static/class_methods.rb +15 -0
- data/lib/react/router.rb +2 -128
- data/lib/react/router/dom.rb +7 -0
- data/lib/react/router/history.rb +19 -25
- data/lib/src/history.min.js +1 -0
- data/lib/src/react-router-dom.min.js +2 -0
- data/lib/src/react-router.min.js +1 -0
- metadata +34 -21
- data/lib/promise_extras.rb +0 -7
- data/lib/react/router/dsl.rb +0 -31
- data/lib/react/router/dsl/index.rb +0 -11
- data/lib/react/router/dsl/route.rb +0 -89
- data/lib/react/router/dsl/route/hooks.rb +0 -21
- data/lib/react/router/dsl/route/wrappers.rb +0 -104
- data/lib/react/router/dsl/transition_context.rb +0 -27
- data/lib/src/react-router.js +0 -2
@@ -1,21 +0,0 @@
|
|
1
|
-
module React
|
2
|
-
class Router
|
3
|
-
class DSL
|
4
|
-
class Route
|
5
|
-
def on(hook, &block)
|
6
|
-
@opts["on_#{hook}"] = block
|
7
|
-
self
|
8
|
-
end
|
9
|
-
|
10
|
-
def mounts(name = nil, &block)
|
11
|
-
if name
|
12
|
-
@components ||= {}
|
13
|
-
@components[name] = block
|
14
|
-
else
|
15
|
-
@component = block
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
@@ -1,104 +0,0 @@
|
|
1
|
-
module React
|
2
|
-
class Router
|
3
|
-
class DSL
|
4
|
-
class Route
|
5
|
-
def get_child_routes_wrapper
|
6
|
-
lambda do |location, callBack|
|
7
|
-
children, index, promise =
|
8
|
-
React::Router::DSL.evaluate_children(TransitionContext.new(location: location),
|
9
|
-
&@get_children)
|
10
|
-
if promise.class < Promise || promise.is_a?(Promise)
|
11
|
-
|
12
|
-
promise.then do |children|
|
13
|
-
callBack.call(nil.to_n, React::Router::DSL.children_to_n(children))
|
14
|
-
end.fail { |err_object| callBack.call(err_object, nil.to_n) }
|
15
|
-
else
|
16
|
-
callBack.call(nil.to_n, DSL.children_to_n(children))
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
20
|
-
def get_components_wrapper
|
21
|
-
lambda do |nextState, callBack|
|
22
|
-
result_hash = {}
|
23
|
-
promises = []
|
24
|
-
@components.each do |name, proc_or_comp|
|
25
|
-
if proc_or_comp.respond_to? :call
|
26
|
-
comp = proc.call(TransitionContext.new(next_state: nextState))
|
27
|
-
if comp.class < Promise || comp.is_a?(Promise)
|
28
|
-
promises << comp
|
29
|
-
comp.then do |component|
|
30
|
-
result_hash[name] = React::API.create_native_react_class(component)
|
31
|
-
end.fail { |err_object| `callBack(#{err_object}, null)` }
|
32
|
-
else
|
33
|
-
result_hash[name] = React::API.create_native_react_class(comp)
|
34
|
-
end
|
35
|
-
else
|
36
|
-
result_hash[name] = React::API.create_native_react_class(proc_or_comp)
|
37
|
-
end
|
38
|
-
end
|
39
|
-
Promise.when(*promises).then { `callBack(null, #{result_hash.to_n})` }
|
40
|
-
end.to_n
|
41
|
-
end
|
42
|
-
|
43
|
-
def get_component_wrapper
|
44
|
-
lambda do |nextState, callBack|
|
45
|
-
comp = @component.call(TransitionContext.new(next_state: nextState))
|
46
|
-
if comp.class < Promise || comp.is_a?(Promise)
|
47
|
-
comp.then do |component|
|
48
|
-
component = React::API.create_native_react_class(component)
|
49
|
-
`callBack(null, component)`
|
50
|
-
end.fail { |err_object| `callBack(#{err_object}, null)` }
|
51
|
-
else
|
52
|
-
comp = React::API.create_native_react_class(comp)
|
53
|
-
`callBack(null, comp)`
|
54
|
-
end
|
55
|
-
end.to_n
|
56
|
-
end
|
57
|
-
|
58
|
-
def on_enter_wrapper
|
59
|
-
lambda do |nextState, replace, callBack|
|
60
|
-
comp =
|
61
|
-
@opts[:on_enter].call(TransitionContext.new(next_state: nextState,
|
62
|
-
replace: replace))
|
63
|
-
if comp.class < Promise || comp.is_a?(Promise)
|
64
|
-
comp.then { `callBack()` }
|
65
|
-
else
|
66
|
-
`callBack()`
|
67
|
-
end
|
68
|
-
end.to_n
|
69
|
-
end
|
70
|
-
|
71
|
-
def on_change_wrapper(proc)
|
72
|
-
lambda do |prevState, nextState, replace, callBack|
|
73
|
-
comp = @opts[:on_change].call(TransitionContext.new(prev_state: prevState,
|
74
|
-
next_state: nextState,
|
75
|
-
replace: replace))
|
76
|
-
if comp.class < Promise || comp.is_a?(Promise)
|
77
|
-
comp.then { `callBack()` }
|
78
|
-
else
|
79
|
-
`callBack()`
|
80
|
-
end
|
81
|
-
end.to_n
|
82
|
-
end
|
83
|
-
|
84
|
-
def on_leave_wrapper(proc)
|
85
|
-
lambda do
|
86
|
-
@opts[:on_leave].call(TransitionContext.new)
|
87
|
-
end.to_n
|
88
|
-
end
|
89
|
-
|
90
|
-
def get_index_route_wrapper
|
91
|
-
lambda do |location, callBack|
|
92
|
-
comp = @opts[:index].call(TransitionContext.new(location: location))
|
93
|
-
if comp.class < Promise || comp.is_a?(Promise)
|
94
|
-
comp.then { |component| `callBack(null, {component: #{component}})` }
|
95
|
-
.fail { |err_object| `callBack(#{err_object}, null)` }
|
96
|
-
else
|
97
|
-
`callBack(null, {component: #{comp}})`
|
98
|
-
end
|
99
|
-
end.to_n
|
100
|
-
end
|
101
|
-
end
|
102
|
-
end
|
103
|
-
end
|
104
|
-
end
|
@@ -1,27 +0,0 @@
|
|
1
|
-
module React
|
2
|
-
class Router
|
3
|
-
class DSL
|
4
|
-
class TransitionContext
|
5
|
-
def initialize(opts = {})
|
6
|
-
@prev_state = Hash.new opts[:prev_state]
|
7
|
-
@next_state = Hash.new opts[:next_state]
|
8
|
-
@replace = opts[:replace]
|
9
|
-
@location = Hash.new opts[:location]
|
10
|
-
end
|
11
|
-
|
12
|
-
attr_reader :prev_state
|
13
|
-
attr_reader :next_state
|
14
|
-
attr_reader :location
|
15
|
-
|
16
|
-
def replace(url)
|
17
|
-
`#{@replace}(#{url.to_n})`
|
18
|
-
url
|
19
|
-
end
|
20
|
-
|
21
|
-
def promise
|
22
|
-
@promise ||= Promise.new
|
23
|
-
end
|
24
|
-
end
|
25
|
-
end
|
26
|
-
end
|
27
|
-
end
|
data/lib/src/react-router.js
DELETED
@@ -1,2 +0,0 @@
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.ReactRouter=t(require("react")):e.ReactRouter=t(e.React)}(this,function(e){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t.createMemoryHistory=t.hashHistory=t.browserHistory=t.applyRouterMiddleware=t.formatPattern=t.useRouterHistory=t.match=t.routerShape=t.locationShape=t.PropTypes=t.RoutingContext=t.RouterContext=t.createRoutes=t.useRoutes=t.RouteContext=t.Lifecycle=t.History=t.Route=t.Redirect=t.IndexRoute=t.IndexRedirect=t.withRouter=t.IndexLink=t.Link=t.Router=void 0;var o=n(5);Object.defineProperty(t,"createRoutes",{enumerable:!0,get:function(){return o.createRoutes}});var u=n(15);Object.defineProperty(t,"locationShape",{enumerable:!0,get:function(){return u.locationShape}}),Object.defineProperty(t,"routerShape",{enumerable:!0,get:function(){return u.routerShape}});var a=n(8);Object.defineProperty(t,"formatPattern",{enumerable:!0,get:function(){return a.formatPattern}});var i=n(38),s=r(i),c=n(20),f=r(c),l=n(32),d=r(l),p=n(51),h=r(p),v=n(33),y=r(v),m=n(34),g=r(m),_=n(21),R=r(_),O=n(36),P=r(O),b=n(31),x=r(b),w=n(35),M=r(w),j=n(37),E=r(j),S=n(50),A=r(S),C=n(10),k=r(C),T=n(39),H=r(T),q=r(u),L=n(48),U=r(L),N=n(25),B=r(N),I=n(41),D=r(I),W=n(42),F=r(W),K=n(46),Q=r(K),V=n(23),$=r(V);t.Router=s["default"],t.Link=f["default"],t.IndexLink=d["default"],t.withRouter=h["default"],t.IndexRedirect=y["default"],t.IndexRoute=g["default"],t.Redirect=R["default"],t.Route=P["default"],t.History=x["default"],t.Lifecycle=M["default"],t.RouteContext=E["default"],t.useRoutes=A["default"],t.RouterContext=k["default"],t.RoutingContext=H["default"],t.PropTypes=q["default"],t.match=U["default"],t.useRouterHistory=B["default"],t.applyRouterMiddleware=D["default"],t.browserHistory=F["default"],t.hashHistory=Q["default"],t.createMemoryHistory=$["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(-1!==t.indexOf("deprecated")){if(s[t])return;s[t]=!0}t="[react-router] "+t;for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;n>o;o++)r[o-2]=arguments[o];i["default"].apply(void 0,[e,t].concat(r))}function u(){s={}}t.__esModule=!0,t["default"]=o,t._resetWarned=u;var a=n(4),i=r(a),s={}},function(t,n){t.exports=e},function(e,t,n){"use strict";var r=function(e,t,n,r,o,u,a,i){if(!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,u,a,i],f=0;s=new Error(t.replace(/%s/g,function(){return c[f++]})),s.name="Invariant Violation"}throw s.framesToPop=1,s}};e.exports=r},function(e,t,n){"use strict";var r=function(){};e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){return null==e||p["default"].isValidElement(e)}function u(e){return o(e)||Array.isArray(e)&&e.every(o)}function a(e,t,n){e=e||"UnknownComponent";for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var o=t[r](n,r,e);o instanceof Error}}function i(e,t){return l({},e,t)}function s(e){var t=e.type,n=i(t.defaultProps,e.props);if(t.propTypes&&a(t.displayName||t.name,t.propTypes,n),n.children){var r=c(n.children,n);r.length&&(n.childRoutes=r),delete n.children}return n}function c(e,t){var n=[];return p["default"].Children.forEach(e,function(e){if(p["default"].isValidElement(e))if(e.type.createRouteFromReactElement){var r=e.type.createRouteFromReactElement(e,t);r&&n.push(r)}else n.push(s(e))}),n}function f(e){return u(e)?e=c(e):e&&!Array.isArray(e)&&(e=[e]),e}t.__esModule=!0;var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.isReactChildren=u,t.createRouteFromReactElement=s,t.createRoutesFromReactChildren=c,t.createRoutes=f;var d=n(2),p=r(d),h=n(1);r(h)},function(e,t,n){"use strict";function r(e,t,n){return e[t]?new Error("<"+n+'> should not have a "'+t+'" prop'):void 0}t.__esModule=!0,t.routes=t.route=t.components=t.component=t.history=void 0,t.falsy=r;var o=n(2),u=o.PropTypes.func,a=o.PropTypes.object,i=o.PropTypes.arrayOf,s=o.PropTypes.oneOfType,c=o.PropTypes.element,f=o.PropTypes.shape,l=o.PropTypes.string,d=(t.history=f({listen:u.isRequired,push:u.isRequired,replace:u.isRequired,go:u.isRequired,goBack:u.isRequired,goForward:u.isRequired}),t.component=s([u,l])),p=(t.components=s([d,a]),t.route=s([a,c]));t.routes=s([p,i(p)])},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){var t=e.match(/^https?:\/\/[^\/]*/);return null==t?e:e.substring(t[0].length)}function u(e){var t=o(e),n="",r="",u=t.indexOf("#");-1!==u&&(r=t.substring(u),t=t.substring(0,u));var a=t.indexOf("?");return-1!==a&&(n=t.substring(a),t=t.substring(0,a)),""===t&&(t="/"),{pathname:t,search:n,hash:r}}t.__esModule=!0,t.extractPath=o,t.parsePath=u;var a=n(4);r(a)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function u(e){for(var t="",n=[],r=[],u=void 0,a=0,i=/:([a-zA-Z_$][a-zA-Z0-9_$]*)|\*\*|\*|\(|\)/g;u=i.exec(e);)u.index!==a&&(r.push(e.slice(a,u.index)),t+=o(e.slice(a,u.index))),u[1]?(t+="([^/]+)",n.push(u[1])):"**"===u[0]?(t+="(.*)",n.push("splat")):"*"===u[0]?(t+="(.*?)",n.push("splat")):"("===u[0]?t+="(?:":")"===u[0]&&(t+=")?"),r.push(u[0]),a=i.lastIndex;return a!==e.length&&(r.push(e.slice(a,e.length)),t+=o(e.slice(a,e.length))),{pattern:e,regexpSource:t,paramNames:n,tokens:r}}function a(e){return e in p||(p[e]=u(e)),p[e]}function i(e,t){"/"!==e.charAt(0)&&(e="/"+e);var n=a(e),r=n.regexpSource,o=n.paramNames,u=n.tokens;"/"!==e.charAt(e.length-1)&&(r+="/?"),"*"===u[u.length-1]&&(r+="$");var i=t.match(new RegExp("^"+r,"i"));if(null==i)return null;var s=i[0],c=t.substr(s.length);if(c){if("/"!==s.charAt(s.length-1))return null;c="/"+c}return{remainingPathname:c,paramNames:o,paramValues:i.slice(1).map(function(e){return e&&decodeURIComponent(e)})}}function s(e){return a(e).paramNames}function c(e,t){var n=i(e,t);if(!n)return null;var r=n.paramNames,o=n.paramValues,u={};return r.forEach(function(e,t){u[e]=o[t]}),u}function f(e,t){t=t||{};for(var n=a(e),r=n.tokens,o=0,u="",i=0,s=void 0,c=void 0,f=void 0,l=0,p=r.length;p>l;++l)s=r[l],"*"===s||"**"===s?(f=Array.isArray(t.splat)?t.splat[i++]:t.splat,null!=f||o>0?void 0:(0,d["default"])(!1),null!=f&&(u+=encodeURI(f))):"("===s?o+=1:")"===s?o-=1:":"===s.charAt(0)?(c=s.substring(1),f=t[c],null!=f||o>0?void 0:(0,d["default"])(!1),null!=f&&(u+=encodeURIComponent(f))):u+=s;return u.replace(/\/+/g,"/")}t.__esModule=!0,t.compilePattern=a,t.matchPattern=i,t.getParamNames=s,t.getParams=c,t.formatPattern=f;var l=n(3),d=r(l),p={}},function(e,t){"use strict";t.__esModule=!0;var n="PUSH";t.PUSH=n;var r="REPLACE";t.REPLACE=r;var o="POP";t.POP=o,t["default"]={PUSH:n,REPLACE:r,POP:o}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(3),i=r(a),s=n(2),c=r(s),f=n(11),l=(r(f),n(45)),d=r(l),p=n(5),h=n(1),v=(r(h),c["default"].PropTypes),y=v.array,m=v.func,g=v.object,_=c["default"].createClass({displayName:"RouterContext",propTypes:{history:g,router:g.isRequired,location:g.isRequired,routes:y.isRequired,params:g.isRequired,components:y.isRequired,createElement:m.isRequired},getDefaultProps:function(){return{createElement:c["default"].createElement}},childContextTypes:{history:g,location:g.isRequired,router:g.isRequired},getChildContext:function(){var e=this.props,t=e.router,n=e.history,r=e.location;return t||(t=u({},n,{setRouteLeaveHook:n.listenBeforeLeavingRoute}),delete t.listenBeforeLeavingRoute),{history:n,location:r,router:t}},createElement:function(e,t){return null==e?null:this.props.createElement(e,t)},render:function(){var e=this,t=this.props,n=t.history,r=t.location,a=t.routes,s=t.params,f=t.components,l=null;return f&&(l=f.reduceRight(function(t,i,c){if(null==i)return t;var f=a[c],l=(0,d["default"])(f,s),h={history:n,location:r,params:s,route:f,routeParams:l,routes:a};if((0,p.isReactChildren)(t))h.children=t;else if(t)for(var v in t)Object.prototype.hasOwnProperty.call(t,v)&&(h[v]=t[v]);if("object"===("undefined"==typeof i?"undefined":o(i))){var y={};for(var m in i)Object.prototype.hasOwnProperty.call(i,m)&&(y[m]=e.createElement(i[m],u({key:m},h)));return y}return e.createElement(i,h)},l)),null===l||l===!1||c["default"].isValidElement(l)?void 0:(0,i["default"])(!1),l}});t["default"]=_,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t.canUseMembrane=void 0;var o=n(1),u=(r(o),t.canUseMembrane=!1,function(e){return e});t["default"]=u},function(e,t){"use strict";t.__esModule=!0;var n=!("undefined"==typeof window||!window.document||!window.document.createElement);t.canUseDOM=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){return s.stringify(e).replace(/%20/g,"+")}function u(e){return function(){function t(e){if(null==e.query){var t=e.search;e.query=P(t.substring(1)),e[h]={search:t,searchBase:""}}return e}function n(e,t){var n,r=e[h],o=t?O(t):"";if(!r&&!o)return e;"string"==typeof e&&(e=l.parsePath(e));var u=void 0;u=r&&e.search===r.search?r.searchBase:e.search||"";var i=u;return o&&(i+=(i?"&":"?")+o),a({},e,(n={search:i},n[h]={search:i,searchBase:u},n))}function r(e){return R.listenBefore(function(n,r){f["default"](e,t(n),r)})}function u(e){return R.listen(function(n){e(t(n))})}function i(e){R.push(n(e,e.query))}function s(e){R.replace(n(e,e.query))}function c(e,t){return R.createPath(n(e,t||e.query))}function d(e,t){return R.createHref(n(e,t||e.query))}function y(e){for(var r=arguments.length,o=Array(r>1?r-1:0),u=1;r>u;u++)o[u-1]=arguments[u];var a=R.createLocation.apply(R,[n(e,e.query)].concat(o));return e.query&&(a.query=e.query),t(a)}function m(e,t,n){"string"==typeof t&&(t=l.parsePath(t)),i(a({state:e},t,{query:n}))}function g(e,t,n){"string"==typeof t&&(t=l.parsePath(t)),s(a({state:e},t,{query:n}))}var _=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],R=e(_),O=_.stringifyQuery,P=_.parseQueryString;return"function"!=typeof O&&(O=o),"function"!=typeof P&&(P=v),a({},R,{listenBefore:r,listen:u,push:i,replace:s,createPath:c,createHref:d,createLocation:y,pushState:p["default"](m,"pushState is deprecated; use push instead"),replaceState:p["default"](g,"replaceState is deprecated; use replace instead")})}}t.__esModule=!0;var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(4),s=(r(i),n(60)),c=n(19),f=r(c),l=n(7),d=n(18),p=r(d),h="$searchBase",v=s.parse;t["default"]=u,e.exports=t["default"]},function(e,t){"use strict";function n(e,t,n){function r(){return a=!0,i?void(c=[].concat(Array.prototype.slice.call(arguments))):void n.apply(this,arguments)}function o(){if(!a&&(s=!0,!i)){for(i=!0;!a&&e>u&&s;)s=!1,t.call(this,u++,o,r);return i=!1,a?void n.apply(this,c):void(u>=e&&s&&(a=!0,n()))}}var u=0,a=!1,i=!1,s=!1,c=void 0;o()}function r(e,t,n){function r(e,t,r){a||(t?(a=!0,n(t)):(u[e]=r,a=++i===o,a&&n(null,u)))}var o=e.length,u=[];if(0===o)return n(null,u);var a=!1,i=0;e.forEach(function(e,n){t(e,n,function(e,t){r(n,e,t)})})}t.__esModule=!0,t.loopAsync=n,t.mapAsync=r},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function o(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t.router=t.routes=t.route=t.components=t.component=t.location=t.history=t.falsy=t.locationShape=t.routerShape=void 0;var u=n(2),a=n(11),i=(o(a),n(6)),s=r(i),c=n(1),f=(o(c),u.PropTypes.func),l=u.PropTypes.object,d=u.PropTypes.shape,p=u.PropTypes.string,h=t.routerShape=d({push:f.isRequired,replace:f.isRequired,go:f.isRequired,goBack:f.isRequired,goForward:f.isRequired,setRouteLeaveHook:f.isRequired,isActive:f.isRequired}),v=t.locationShape=d({pathname:p.isRequired,search:p.isRequired,state:l,action:p.isRequired,key:p}),y=t.falsy=s.falsy,m=t.history=s.history,g=t.location=v,_=t.component=s.component,R=t.components=s.components,O=t.route=s.route,P=(t.routes=s.routes,t.router=h),b={falsy:y,history:m,location:g,component:_,components:R,route:O,router:P};t["default"]=b},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!0;return!1}function u(e,t){function n(t){var n=arguments.length<=1||void 0===arguments[1]?!1:arguments[1],r=arguments.length<=2||void 0===arguments[2]?null:arguments[2],o=void 0;return n&&n!==!0||null!==r?(t={pathname:t,query:n},o=r||!1):(t=e.createLocation(t),o=n),(0,p["default"])(t,o,O.location,O.routes,O.params)}function r(t){return e.createLocation(t,s.REPLACE)}function u(e,n){P&&P.location===e?i(P,n):(0,m["default"])(t,e,function(t,r){t?n(t):r?i(a({},r,{location:e}),n):n()})}function i(e,t){function n(n,r){return n||r?o(n,r):void(0,v["default"])(e,function(n,r){n?t(n):t(null,null,O=a({},e,{components:r}))})}function o(e,n){e?t(e):t(null,r(n))}var u=(0,f["default"])(O,e),i=u.leaveRoutes,s=u.changeRoutes,c=u.enterRoutes;(0,l.runLeaveHooks)(i),i.filter(function(e){return-1===c.indexOf(e)}).forEach(g),(0,l.runChangeHooks)(s,O,e,function(t,r){return t||r?o(t,r):void(0,l.runEnterHooks)(c,e,n)})}function c(e){var t=arguments.length<=1||void 0===arguments[1]?!0:arguments[1];return e.__id__||t&&(e.__id__=b++)}function d(e){return e.reduce(function(e,t){return e.push.apply(e,x[c(t)]),e},[])}function h(e,n){(0,m["default"])(t,e,function(t,r){if(null==r)return void n();P=a({},r,{location:e});for(var o=d((0,f["default"])(O,P).leaveRoutes),u=void 0,i=0,s=o.length;null==u&&s>i;++i)u=o[i](e);n(u)})}function y(){if(O.routes){for(var e=d(O.routes),t=void 0,n=0,r=e.length;"string"!=typeof t&&r>n;++n)t=e[n]();return t}}function g(e){var t=c(e,!1);t&&(delete x[t],o(x)||(w&&(w(),w=null),M&&(M(),M=null)))}function _(t,n){var r=c(t),u=x[r];if(u)-1===u.indexOf(n)&&u.push(n);else{var a=!o(x);x[r]=[n],a&&(w=e.listenBefore(h),e.listenBeforeUnload&&(M=e.listenBeforeUnload(y)))}return function(){var e=x[r];if(e){var o=e.filter(function(e){return e!==n});0===o.length?g(t):x[r]=o}}}function R(t){return e.listen(function(n){O.location===n?t(null,O):u(n,function(n,r,o){n?t(n):r?e.transitionTo(r):o&&t(null,o)})})}var O={},P=void 0,b=1,x=Object.create(null),w=void 0,M=void 0;return{isActive:n,match:u,listenBeforeLeavingRoute:_,listen:R}}t.__esModule=!0;var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t["default"]=u;var i=n(1),s=(r(i),n(9)),c=n(43),f=r(c),l=n(40),d=n(47),p=r(d),h=n(44),v=r(h),y=n(49),m=r(y);e.exports=t["default"]},function(e,t){"use strict";function n(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)}function r(e,t,n){e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent("on"+t,n)}function o(){return window.location.href.split("#")[1]||""}function u(e){window.location.replace(window.location.pathname+window.location.search+"#"+e)}function a(){return window.location.pathname+window.location.search+window.location.hash}function i(e){e&&window.history.go(e)}function s(e,t){t(window.confirm(e))}function c(){var e=navigator.userAgent;return-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone")?window.history&&"pushState"in window.history:!1}function f(){var e=navigator.userAgent;return-1===e.indexOf("Firefox")}t.__esModule=!0,t.addEventListener=n,t.removeEventListener=r,t.getHashPath=o,t.replaceHashPath=u,t.getWindowPath=a,t.go=i,t.getUserConfirmation=s,t.supportsHistory=c,t.supportsGoWithoutReloadUsingHash=f},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){return function(){return e.apply(this,arguments)}}t.__esModule=!0;var u=n(4);r(u);t["default"]=o,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){var r=e(t,n);e.length<2&&n(r)}t.__esModule=!0;var u=n(4);r(u);t["default"]=o,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function u(e){return 0===e.button}function a(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function i(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}function s(e,t){var n=t.query,r=t.hash,o=t.state;return n||r||o?{pathname:e,query:n,hash:r,state:o}:e}t.__esModule=!0;var c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f=n(2),l=r(f),d=n(1),p=(r(d),n(15)),h=l["default"].PropTypes,v=h.bool,y=h.object,m=h.string,g=h.func,_=h.oneOfType,R=l["default"].createClass({displayName:"Link",contextTypes:{router:p.routerShape},propTypes:{to:_([m,y]).isRequired,query:y,hash:m,state:y,activeStyle:y,activeClassName:m,onlyActiveOnIndex:v.isRequired,onClick:g,target:m},getDefaultProps:function(){return{onlyActiveOnIndex:!1,style:{}}},handleClick:function(e){var t=!0;if(this.props.onClick&&this.props.onClick(e),!a(e)&&u(e)){if(e.defaultPrevented===!0&&(t=!1),this.props.target)return void(t||e.preventDefault());if(e.preventDefault(),t){var n=this.props,r=n.to,o=n.query,i=n.hash,c=n.state,f=s(r,{query:o,hash:i,state:c});this.context.router.push(f)}}},render:function(){var e=this.props,t=e.to,n=e.query,r=e.hash,u=e.state,a=e.activeClassName,f=e.activeStyle,d=e.onlyActiveOnIndex,p=o(e,["to","query","hash","state","activeClassName","activeStyle","onlyActiveOnIndex"]),h=this.context.router;if(h){var v=s(t,{query:n,hash:r,state:u});p.href=h.createHref(v),(a||null!=f&&!i(f))&&h.isActive(v,d)&&(a&&(p.className?p.className+=" "+a:p.className=a),f&&(p.style=c({},p.style,f)))}return l["default"].createElement("a",c({},p,{onClick:this.handleClick}))}});t["default"]=R,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var o=n(2),u=r(o),a=n(3),i=r(a),s=n(5),c=n(8),f=n(6),l=u["default"].PropTypes,d=l.string,p=l.object,h=u["default"].createClass({displayName:"Redirect",statics:{createRouteFromReactElement:function(e){var t=(0,s.createRouteFromReactElement)(e);return t.from&&(t.path=t.from),t.onEnter=function(e,n){var r=e.location,o=e.params,u=void 0;if("/"===t.to.charAt(0))u=(0,c.formatPattern)(t.to,o);else if(t.to){var a=e.routes.indexOf(t),i=h.getRoutePattern(e.routes,a-1),s=i.replace(/\/*$/,"/")+t.to;u=(0,c.formatPattern)(s,o)}else u=r.pathname;n({pathname:u,query:t.query||r.query,state:t.state||r.state})},t},getRoutePattern:function(e,t){for(var n="",r=t;r>=0;r--){var o=e[r],u=o.path||"";if(n=u.replace(/\/*$/,"/")+n,0===u.indexOf("/"))break}return"/"+n}},propTypes:{path:d,from:d,to:d.isRequired,query:p,state:p,onEnter:f.falsy,children:f.falsy},render:function(){(0,i["default"])(!1)}});t["default"]=h,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){return a({},e,{setRouteLeaveHook:t.listenBeforeLeavingRoute,isActive:t.isActive})}function u(e,t){return e=a({},e,t)}t.__esModule=!0;var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.createRouterObject=o,t.createRoutingHistory=u;var i=n(11);r(i)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){var t=(0,f["default"])(e),n=function(){return t},r=(0,a["default"])((0,s["default"])(n))(e);return r.__v2_compatible__=!0,r}t.__esModule=!0,t["default"]=o;var u=n(13),a=r(u),i=n(30),s=r(i),c=n(58),f=r(c);e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0,t["default"]=function(e){var t=void 0;return a&&(t=(0,u["default"])(e)()),t};var o=n(25),u=r(o),a=!("undefined"==typeof window||!window.document||!window.document.createElement);e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){return function(t){var n=(0,a["default"])((0,s["default"])(e))(t);return n.__v2_compatible__=!0,n}}t.__esModule=!0,t["default"]=o;var u=n(13),a=r(u),i=n(30),s=r(i);e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){return s+e}function u(e,t){try{null==t?window.sessionStorage.removeItem(o(e)):window.sessionStorage.setItem(o(e),JSON.stringify(t))}catch(n){if(n.name===f)return;if(c.indexOf(n.name)>=0&&0===window.sessionStorage.length)return;throw n}}function a(e){var t=void 0;try{t=window.sessionStorage.getItem(o(e))}catch(n){if(n.name===f)return null}if(t)try{return JSON.parse(t)}catch(n){}return null}t.__esModule=!0,t.saveState=u,t.readState=a;var i=n(4),s=(r(i),"@@History/"),c=["QuotaExceededError","QUOTA_EXCEEDED_ERR"],f="SecurityError"},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){function t(e){return s.canUseDOM?void 0:i["default"](!1),n.listen(e)}var n=l["default"](u({getUserConfirmation:c.getUserConfirmation},e,{go:c.go}));return u({},n,{listen:t})}t.__esModule=!0;var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(3),i=r(a),s=n(12),c=n(17),f=n(29),l=r(f);t["default"]=o,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){return"string"==typeof e&&"/"===e.charAt(0)}function u(){var e=m.getHashPath();return o(e)?!0:(m.replaceHashPath("/"+e),!1)}function a(e,t,n){return e+(-1===e.indexOf("?")?"?":"&")+(t+"="+n)}function i(e,t){return e.replace(new RegExp("[?&]?"+t+"=[a-zA-Z0-9]+"),"")}function s(e,t){var n=e.match(new RegExp("\\?.*?\\b"+t+"=(.+?)\\b"));return n&&n[1]}function c(){function e(){var e=m.getHashPath(),t=void 0,n=void 0;j?(t=s(e,j),e=i(e,j),t?n=g.readState(t):(n=null,t=E.createKey(),m.replaceHashPath(a(e,j,t)))):t=n=null;var r=v.parsePath(e);return E.createLocation(f({},r,{state:n}),void 0,t)}function t(t){function n(){u()&&r(e())}var r=t.transitionTo;return u(),m.addEventListener(window,"hashchange",n),function(){m.removeEventListener(window,"hashchange",n)}}function n(e){var t=e.basename,n=e.pathname,r=e.search,o=e.state,u=e.action,i=e.key;if(u!==h.POP){var s=(t||"")+n+r;j?(s=a(s,j,i),g.saveState(i,o)):e.key=e.state=null;var c=m.getHashPath();u===h.PUSH?c!==s&&(window.location.hash=s):c!==s&&m.replaceHashPath(s)}}function r(e){1===++S&&(A=t(E));var n=E.listenBefore(e);return function(){n(),0===--S&&A()}}function o(e){1===++S&&(A=t(E));var n=E.listen(e);return function(){n(),0===--S&&A()}}function c(e){E.push(e)}function l(e){E.replace(e)}function d(e){E.go(e)}function _(e){return"#"+E.createHref(e)}function P(e){1===++S&&(A=t(E)),E.registerTransitionHook(e)}function b(e){E.unregisterTransitionHook(e),0===--S&&A()}function x(e,t){E.pushState(e,t)}function w(e,t){E.replaceState(e,t)}var M=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];y.canUseDOM?void 0:p["default"](!1);var j=M.queryKey;(void 0===j||j)&&(j="string"==typeof j?j:O);var E=R["default"](f({},M,{getCurrentLocation:e,finishTransition:n,saveState:g.saveState})),S=0,A=void 0;m.supportsGoWithoutReloadUsingHash();return f({},E,{listenBefore:r,listen:o,push:c,replace:l,go:d,createHref:_,registerTransitionHook:P,unregisterTransitionHook:b,pushState:x,replaceState:w})}t.__esModule=!0;var f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=n(4),d=(r(l),n(3)),p=r(d),h=n(9),v=n(7),y=n(12),m=n(17),g=n(26),_=n(27),R=r(_),O="_k";t["default"]=c,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){return Math.random().toString(36).substr(2,e)}function u(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.key===t.key&&f["default"](e.state,t.state)}function a(){function e(e){return N.push(e),function(){N=N.filter(function(t){return t!==e})}}function t(){return W&&W.action===p.POP?B.indexOf(W.key):D?B.indexOf(D.key):-1}function n(e){var n=t();D=e,D.action===p.PUSH?B=[].concat(B.slice(0,n+1),[D.key]):D.action===p.REPLACE&&(B[n]=D.key),I.forEach(function(e){e(D)})}function r(e){if(I.push(e),D)e(D);else{var t=k();B=[t.key],n(t)}return function(){I=I.filter(function(t){return t!==e})}}function a(e,t){d.loopAsync(N.length,function(t,n,r){m["default"](N[t],e,function(e){null!=e?r(e):n()})},function(e){L&&"string"==typeof e?L(e,function(e){t(e!==!1)}):t(e!==!1)})}function s(e){D&&u(D,e)||(W=e,a(e,function(t){if(W===e)if(t){if(e.action===p.PUSH){var r=P(D),o=P(e);o===r&&f["default"](D.state,e.state)&&(e.action=p.REPLACE)}T(e)!==!1&&n(e)}else if(D&&e.action===p.POP){var u=B.indexOf(D.key),a=B.indexOf(e.key);-1!==u&&-1!==a&&q(u-a)}}))}function c(e){s(x(e,p.PUSH,O()))}function h(e){s(x(e,p.REPLACE,O()))}function y(){q(-1)}function g(){q(1)}function O(){return o(U)}function P(e){if(null==e||"string"==typeof e)return e;var t=e.pathname,n=e.search,r=e.hash,o=t;return n&&(o+=n),r&&(o+=r),o}function b(e){return P(e)}function x(e,t){var n=arguments.length<=2||void 0===arguments[2]?O():arguments[2];return"object"==typeof t&&("string"==typeof e&&(e=l.parsePath(e)),e=i({},e,{state:t}),t=n,n=arguments[3]||O()),v["default"](e,t,n)}function w(e){D?(M(D,e),n(D)):M(k(),e)}function M(e,t){e.state=i({},e.state,t),H(e.key,e.state)}function j(e){-1===N.indexOf(e)&&N.push(e)}function E(e){N=N.filter(function(t){return t!==e})}function S(e,t){"string"==typeof t&&(t=l.parsePath(t)),c(i({state:e},t))}function A(e,t){"string"==typeof t&&(t=l.parsePath(t)),h(i({state:e},t))}var C=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],k=C.getCurrentLocation,T=C.finishTransition,H=C.saveState,q=C.go,L=C.getUserConfirmation,U=C.keyLength;"number"!=typeof U&&(U=R);var N=[],B=[],I=[],D=void 0,W=void 0;return{listenBefore:e,listen:r,transitionTo:s,push:c,replace:h,go:q,goBack:y,goForward:g,createKey:O,createPath:P,createHref:b,createLocation:x,setState:_["default"](w,"setState is deprecated; use location.key to save state instead"),registerTransitionHook:_["default"](j,"registerTransitionHook is deprecated; use listenBefore instead"),unregisterTransitionHook:_["default"](E,"unregisterTransitionHook is deprecated; use the callback returned from listenBefore instead"),pushState:_["default"](S,"pushState is deprecated; use push instead"),replaceState:_["default"](A,"replaceState is deprecated; use replace instead")}}t.__esModule=!0;var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=n(4),c=(r(s),n(52)),f=r(c),l=n(7),d=n(55),p=n(9),h=n(57),v=r(h),y=n(19),m=r(y),g=n(18),_=r(g),R=6;t["default"]=a,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){return function(){function t(e){return _&&null==e.basename&&(0===e.pathname.indexOf(_)?(e.pathname=e.pathname.substring(_.length),e.basename=_,""===e.pathname&&(e.pathname="/")):e.basename=""),e}function n(e){if(!_)return e;"string"==typeof e&&(e=i.parsePath(e));var t=e.pathname,n="/"===_.slice(-1)?_:_+"/",r="/"===t.charAt(0)?t.slice(1):t,o=n+r;return u({},e,{pathname:o})}function r(e){return g.listenBefore(function(n,r){c["default"](e,t(n),r)})}function o(e){return g.listen(function(n){e(t(n))})}function s(e){g.push(n(e))}function f(e){g.replace(n(e))}function d(e){return g.createPath(n(e))}function p(e){return g.createHref(n(e))}function h(e){for(var r=arguments.length,o=Array(r>1?r-1:0),u=1;r>u;u++)o[u-1]=arguments[u];return t(g.createLocation.apply(g,[n(e)].concat(o)))}function v(e,t){"string"==typeof t&&(t=i.parsePath(t)),s(u({state:e},t))}function y(e,t){"string"==typeof t&&(t=i.parsePath(t)),f(u({state:e},t))}var m=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],g=e(m),_=m.basename;if(null==_&&a.canUseDOM){var R=document.getElementsByTagName("base")[0];R&&(_=R.getAttribute("href"))}return u({},g,{listenBefore:r,listen:o,push:s,replace:f,createPath:d,createHref:p,createLocation:h,pushState:l["default"](v,"pushState is deprecated; use push instead"),replaceState:l["default"](y,"replaceState is deprecated; use replace instead")})}}t.__esModule=!0;var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(12),i=n(7),s=n(19),c=r(s),f=n(18),l=r(f);t["default"]=o,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var o=n(1),u=(r(o),n(6)),a={contextTypes:{history:u.history},componentWillMount:function(){this.history=this.context.history}};t["default"]=a,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=n(2),a=r(u),i=n(20),s=r(i),c=a["default"].createClass({displayName:"IndexLink",render:function(){return a["default"].createElement(s["default"],o({},this.props,{onlyActiveOnIndex:!0}))}});t["default"]=c,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var o=n(2),u=r(o),a=n(1),i=(r(a),n(3)),s=r(i),c=n(21),f=r(c),l=n(6),d=u["default"].PropTypes,p=d.string,h=d.object,v=u["default"].createClass({displayName:"IndexRedirect",statics:{createRouteFromReactElement:function(e,t){t&&(t.indexRoute=f["default"].createRouteFromReactElement(e))}},propTypes:{to:p.isRequired,query:h,state:h,onEnter:l.falsy,children:l.falsy},render:function(){(0,s["default"])(!1)}});t["default"]=v,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var o=n(2),u=r(o),a=n(1),i=(r(a),n(3)),s=r(i),c=n(5),f=n(6),l=u["default"].PropTypes.func,d=u["default"].createClass({displayName:"IndexRoute",statics:{createRouteFromReactElement:function(e,t){t&&(t.indexRoute=(0,c.createRouteFromReactElement)(e))}},propTypes:{path:f.falsy,component:f.component,components:f.components,getComponent:l,getComponents:l},render:function(){(0,s["default"])(!1)}});t["default"]=d,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var o=n(1),u=(r(o),n(2)),a=r(u),i=n(3),s=r(i),c=a["default"].PropTypes.object,f={contextTypes:{history:c.isRequired,route:c},propTypes:{route:c},componentDidMount:function(){this.routerWillLeave?void 0:(0,s["default"])(!1);
|
2
|
-
var e=this.props.route||this.context.route;e?void 0:(0,s["default"])(!1),this._unlistenBeforeLeavingRoute=this.context.history.listenBeforeLeavingRoute(e,this.routerWillLeave)},componentWillUnmount:function(){this._unlistenBeforeLeavingRoute&&this._unlistenBeforeLeavingRoute()}};t["default"]=f,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var o=n(2),u=r(o),a=n(3),i=r(a),s=n(5),c=n(6),f=u["default"].PropTypes,l=f.string,d=f.func,p=u["default"].createClass({displayName:"Route",statics:{createRouteFromReactElement:s.createRouteFromReactElement},propTypes:{path:l,component:c.component,components:c.components,getComponent:d,getComponents:d},render:function(){(0,i["default"])(!1)}});t["default"]=p,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var o=n(1),u=(r(o),n(2)),a=r(u),i=a["default"].PropTypes.object,s={propTypes:{route:i.isRequired},childContextTypes:{route:i.isRequired},getChildContext:function(){return{route:this.props.route}},componentWillMount:function(){}};t["default"]=s,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function u(e){return!e||!e.__v2_compatible__}t.__esModule=!0;var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(28),s=r(i),c=n(13),f=r(c),l=n(2),d=r(l),p=n(16),h=r(p),v=n(6),y=n(10),m=r(y),g=n(5),_=n(22),R=n(1),O=(r(R),d["default"].PropTypes),P=O.func,b=O.object,x=d["default"].createClass({displayName:"Router",propTypes:{history:b,children:v.routes,routes:v.routes,render:P,createElement:P,onError:P,onUpdate:P,matchContext:b},getDefaultProps:function(){return{render:function(e){return d["default"].createElement(m["default"],e)}}},getInitialState:function(){return{location:null,routes:null,params:null,components:null}},handleError:function(e){if(!this.props.onError)throw e;this.props.onError.call(this,e)},componentWillMount:function(){var e=this,t=this.props,n=(t.parseQueryString,t.stringifyQuery,this.createRouterObjects()),r=n.history,o=n.transitionManager,u=n.router;this._unlisten=o.listen(function(t,n){t?e.handleError(t):e.setState(n,e.props.onUpdate)}),this.history=r,this.router=u},createRouterObjects:function(){var e=this.props.matchContext;if(e)return e;var t=this.props.history,n=this.props,r=n.routes,o=n.children;u(t)&&(t=this.wrapDeprecatedHistory(t));var a=(0,h["default"])(t,(0,g.createRoutes)(r||o)),i=(0,_.createRouterObject)(t,a),s=(0,_.createRoutingHistory)(t,a);return{history:s,transitionManager:a,router:i}},wrapDeprecatedHistory:function(e){var t=this.props,n=t.parseQueryString,r=t.stringifyQuery,o=void 0;return o=e?function(){return e}:s["default"],(0,f["default"])(o)({parseQueryString:n,stringifyQuery:r})},componentWillReceiveProps:function(e){},componentWillUnmount:function(){this._unlisten&&this._unlisten()},render:function w(){var e=this.state,t=e.location,n=e.routes,r=e.params,u=e.components,i=this.props,s=i.createElement,w=i.render,c=o(i,["createElement","render"]);return null==t?null:(Object.keys(x.propTypes).forEach(function(e){return delete c[e]}),w(a({},c,{history:this.history,router:this.router,location:t,routes:n,params:r,components:u,createElement:s})))}});t["default"]=x,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var o=n(2),u=r(o),a=n(10),i=r(a),s=n(1),c=(r(s),u["default"].createClass({displayName:"RoutingContext",componentWillMount:function(){},render:function(){return u["default"].createElement(i["default"],this.props)}}));t["default"]=c,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){return function(){for(var r=arguments.length,o=Array(r),u=0;r>u;u++)o[u]=arguments[u];if(e.apply(t,o),e.length<n){var a=o[o.length-1];a()}}}function u(e){return e.reduce(function(e,t){return t.onEnter&&e.push(o(t.onEnter,t,3)),e},[])}function a(e){return e.reduce(function(e,t){return t.onChange&&e.push(o(t.onChange,t,4)),e},[])}function i(e,t,n){function r(e,t,n){return t?void(o={pathname:t,query:n,state:e}):void(o=e)}if(!e)return void n();var o=void 0;(0,l.loopAsync)(e,function(e,n,u){t(e,r,function(e){e||o?u(e,o):n()})},n)}function s(e,t,n){var r=u(e);return i(r.length,function(e,n,o){r[e](t,n,o)},n)}function c(e,t,n,r){var o=a(e);return i(o.length,function(e,r,u){o[e](t,n,r,u)},r)}function f(e){for(var t=0,n=e.length;n>t;++t)e[t].onLeave&&e[t].onLeave.call(e[t])}t.__esModule=!0,t.runEnterHooks=s,t.runChangeHooks=c,t.runLeaveHooks=f;var l=n(14),d=n(1);r(d)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=n(2),a=r(u),i=n(10),s=r(i);t["default"]=function(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];var r=t.map(function(e){return e.renderRouterContext}).filter(function(e){return e}),i=t.map(function(e){return e.renderRouteComponent}).filter(function(e){return e}),c=function(){var e=arguments.length<=0||void 0===arguments[0]?u.createElement:arguments[0];return function(t,n){return i.reduceRight(function(e,t){return t(e,n)},e(t,n))}};return function(e){return r.reduceRight(function(t,n){return n(t,e)},a["default"].createElement(s["default"],o({},e,{createElement:c(e.createElement)})))}},e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var o=n(56),u=r(o),a=n(24),i=r(a);t["default"]=(0,i["default"])(u["default"]),e.exports=t["default"]},function(e,t,n){"use strict";function r(e,t,n){if(!e.path)return!1;var r=(0,u.getParamNames)(e.path);return r.some(function(e){return t.params[e]!==n.params[e]})}function o(e,t){var n=e&&e.routes,o=t.routes,u=void 0,a=void 0,i=void 0;return n?!function(){var s=!1;u=n.filter(function(n){if(s)return!0;var u=-1===o.indexOf(n)||r(n,e,t);return u&&(s=!0),u}),u.reverse(),i=[],a=[],o.forEach(function(e){var t=-1===n.indexOf(e),r=-1!==u.indexOf(e);t||r?i.push(e):a.push(e)})}():(u=[],a=[],i=o),{leaveRoutes:u,changeRoutes:a,enterRoutes:i}}t.__esModule=!0;var u=n(8);t["default"]=o,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){if(t.component||t.components)return void n(null,t.component||t.components);var r=t.getComponent||t.getComponents;if(!r)return void n();var o=e.location,u=void 0;u=a({},e,o),r.call(t,u,n)}function u(e,t){(0,i.mapAsync)(e.routes,function(t,n,r){o(e,t,r)},t)}t.__esModule=!0;var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(14),s=(n(11),n(1));r(s);t["default"]=u,e.exports=t["default"]},function(e,t,n){"use strict";function r(e,t){var n={};if(!e.path)return n;var r=(0,o.getParamNames)(e.path);for(var u in t)Object.prototype.hasOwnProperty.call(t,u)&&-1!==r.indexOf(u)&&(n[u]=t[u]);return n}t.__esModule=!0;var o=n(8);t["default"]=r,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var o=n(28),u=r(o),a=n(24),i=r(a);t["default"]=(0,i["default"])(u["default"]),e.exports=t["default"]},function(e,t,n){"use strict";function r(e,t){if(e==t)return!0;if(null==e||null==t)return!1;if(Array.isArray(e))return Array.isArray(t)&&e.length===t.length&&e.every(function(e,n){return r(e,t[n])});if("object"===("undefined"==typeof e?"undefined":s(e))){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n))if(void 0===e[n]){if(void 0!==t[n])return!1}else{if(!Object.prototype.hasOwnProperty.call(t,n))return!1;if(!r(e[n],t[n]))return!1}return!0}return String(e)===String(t)}function o(e,t){return"/"!==t.charAt(0)&&(t="/"+t),"/"!==e.charAt(e.length-1)&&(e+="/"),"/"!==t.charAt(t.length-1)&&(t+="/"),t===e}function u(e,t,n){for(var r=e,o=[],u=[],a=0,i=t.length;i>a;++a){var s=t[a],f=s.path||"";if("/"===f.charAt(0)&&(r=e,o=[],u=[]),null!==r&&f){var l=(0,c.matchPattern)(f,r);if(l?(r=l.remainingPathname,o=[].concat(o,l.paramNames),u=[].concat(u,l.paramValues)):r=null,""===r)return o.every(function(e,t){return String(u[t])===String(n[e])})}}return!1}function a(e,t){return null==t?null==e:null==e?!0:r(e,t)}function i(e,t,n,r,i){var s=e.pathname,c=e.query;return null==n?!1:("/"!==s.charAt(0)&&(s="/"+s),o(s,n.pathname)||!t&&u(s,r,i)?a(c,n.query):!1)}t.__esModule=!0;var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};t["default"]=i;var c=n(8);e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function u(e,t){var n=e.history,r=e.routes,u=e.location,i=o(e,["history","routes","location"]);n||u?void 0:(0,s["default"])(!1),n=n?n:(0,f["default"])(i);var c=(0,d["default"])(n,(0,p.createRoutes)(r)),l=void 0;u?u=n.createLocation(u):l=n.listen(function(e){u=e});var v=(0,h.createRouterObject)(n,c);n=(0,h.createRoutingHistory)(n,c),c.match(u,function(e,r,o){t(e,r,o&&a({},o,{history:n,router:v,matchContext:{history:n,transitionManager:c,router:v}})),l&&l()})}t.__esModule=!0;var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(3),s=r(i),c=n(23),f=r(c),l=n(16),d=r(l),p=n(5),h=n(22);t["default"]=u,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t,n){if(e.childRoutes)return[null,e.childRoutes];if(!e.getChildRoutes)return[];var r=!0,o=void 0;return e.getChildRoutes(t,function(e,t){return t=!e&&(0,v.createRoutes)(t),r?void(o=[e,t]):void n(e,t)}),r=!1,o}function u(e,t,n){e.indexRoute?n(null,e.indexRoute):e.getIndexRoute?e.getIndexRoute(t,function(e,t){n(e,!e&&(0,v.createRoutes)(t)[0])}):e.childRoutes?!function(){var r=e.childRoutes.filter(function(e){return!e.path});(0,p.loopAsync)(r.length,function(e,n,o){u(r[e],t,function(t,u){if(t||u){var a=[r[e]].concat(Array.isArray(u)?u:[u]);o(t,a)}else n()})},function(e,t){n(null,t)})}():n()}function a(e,t,n){return t.reduce(function(e,t,r){var o=n&&n[r];return Array.isArray(e[t])?e[t].push(o):t in e?e[t]=[e[t],o]:e[t]=o,e},e)}function i(e,t){return a({},e,t)}function s(e,t,n,r,a,s){var f=e.path||"";if("/"===f.charAt(0)&&(n=t.pathname,r=[],a=[]),null!==n&&f){try{var d=(0,h.matchPattern)(f,n);d?(n=d.remainingPathname,r=[].concat(r,d.paramNames),a=[].concat(a,d.paramValues)):n=null}catch(p){s(p)}if(""===n){var v=function(){var n={routes:[e],params:i(r,a)};return u(e,t,function(e,t){if(e)s(e);else{if(Array.isArray(t)){var r;(r=n.routes).push.apply(r,t)}else t&&n.routes.push(t);s(null,n)}}),{v:void 0}}();if("object"===("undefined"==typeof v?"undefined":l(v)))return v.v}}if(null!=n||e.childRoutes){var y=function(o,u){o?s(o):u?c(u,t,function(t,n){t?s(t):n?(n.routes.unshift(e),s(null,n)):s()},n,r,a):s()},m=o(e,t,y);m&&y.apply(void 0,m)}else s()}function c(e,t,n,r){var o=arguments.length<=4||void 0===arguments[4]?[]:arguments[4],u=arguments.length<=5||void 0===arguments[5]?[]:arguments[5];void 0===r&&("/"!==t.pathname.charAt(0)&&(t=f({},t,{pathname:"/"+t.pathname})),r=t.pathname),(0,p.loopAsync)(e.length,function(n,a,i){s(e[n],t,r,o,u,function(e,t){e||t?i(e,t):a()})},n)}t.__esModule=!0;var f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};t["default"]=c;var d=n(1),p=(r(d),n(14)),h=n(8),v=n(5);e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function u(e){return function(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],n=t.routes,r=o(t,["routes"]),u=(0,s["default"])(e)(r),i=(0,f["default"])(u,n);return a({},u,i)}}t.__esModule=!0;var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(13),s=r(i),c=n(16),f=r(c),l=n(1);r(l);t["default"]=u,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){return e.displayName||e.name||"Component"}function u(e){var t=s["default"].createClass({displayName:"WithRouter",contextTypes:{router:l.routerShape},render:function(){return s["default"].createElement(e,a({},this.props,{router:this.context.router}))}});return t.displayName="withRouter("+o(e)+")",t.WrappedComponent=e,(0,f["default"])(t,e)}t.__esModule=!0;var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t["default"]=u;var i=n(2),s=r(i),c=n(59),f=r(c),l=n(15);e.exports=t["default"]},function(e,t,n){function r(e){return null===e||void 0===e}function o(e){return e&&"object"==typeof e&&"number"==typeof e.length?"function"!=typeof e.copy||"function"!=typeof e.slice?!1:!(e.length>0&&"number"!=typeof e[0]):!1}function u(e,t,n){var u,f;if(r(e)||r(t))return!1;if(e.prototype!==t.prototype)return!1;if(s(e))return s(t)?(e=a.call(e),t=a.call(t),c(e,t,n)):!1;if(o(e)){if(!o(t))return!1;if(e.length!==t.length)return!1;for(u=0;u<e.length;u++)if(e[u]!==t[u])return!1;return!0}try{var l=i(e),d=i(t)}catch(p){return!1}if(l.length!=d.length)return!1;for(l.sort(),d.sort(),u=l.length-1;u>=0;u--)if(l[u]!=d[u])return!1;for(u=l.length-1;u>=0;u--)if(f=l[u],!c(e[f],t[f],n))return!1;return typeof e==typeof t}var a=Array.prototype.slice,i=n(54),s=n(53),c=e.exports=function(e,t,n){return n||(n={}),e===t?!0:e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||"object"!=typeof e&&"object"!=typeof t?n.strict?e===t:e==t:u(e,t,n)}},function(e,t){function n(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function r(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Object.prototype.hasOwnProperty.call(e,"callee")&&!Object.prototype.propertyIsEnumerable.call(e,"callee")||!1}var o="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();t=e.exports=o?n:r,t.supported=n,t.unsupported=r},function(e,t){function n(e){var t=[];for(var n in e)t.push(n);return t}t=e.exports="function"==typeof Object.keys?Object.keys:n,t.shim=n},function(e,t){"use strict";function n(e,t,n){function o(){return i=!0,s?void(f=[].concat(r.call(arguments))):void n.apply(this,arguments)}function u(){if(!i&&(c=!0,!s)){for(s=!0;!i&&e>a&&c;)c=!1,t.call(this,a++,u,o);return s=!1,i?void n.apply(this,f):void(a>=e&&c&&(i=!0,n()))}}var a=0,i=!1,s=!1,c=!1,f=void 0;u()}t.__esModule=!0;var r=Array.prototype.slice;t.loopAsync=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(){function e(e){e=e||window.history.state||{};var t=l.getWindowPath(),n=e,r=n.key,o=void 0;r?o=d.readState(r):(o=null,r=_.createKey(),m&&window.history.replaceState(u({},e,{key:r}),null));var a=c.parsePath(t);return _.createLocation(u({},a,{state:o}),void 0,r)}function t(t){function n(t){void 0!==t.state&&r(e(t.state))}var r=t.transitionTo;return l.addEventListener(window,"popstate",n),function(){l.removeEventListener(window,"popstate",n)}}function n(e){var t=e.basename,n=e.pathname,r=e.search,o=e.hash,u=e.state,a=e.action,i=e.key;if(a!==s.POP){d.saveState(i,u);var c=(t||"")+n+r+o,f={key:i};if(a===s.PUSH){if(g)return window.location.href=c,!1;window.history.pushState(f,null,c)}else{if(g)return window.location.replace(c),!1;window.history.replaceState(f,null,c)}}}function r(e){1===++R&&(O=t(_));var n=_.listenBefore(e);return function(){n(),0===--R&&O()}}function o(e){1===++R&&(O=t(_));var n=_.listen(e);return function(){n(),0===--R&&O()}}function a(e){1===++R&&(O=t(_)),_.registerTransitionHook(e)}function p(e){_.unregisterTransitionHook(e),0===--R&&O()}var v=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];f.canUseDOM?void 0:i["default"](!1);var y=v.forceRefresh,m=l.supportsHistory(),g=!m||y,_=h["default"](u({},v,{getCurrentLocation:e,finishTransition:n,saveState:d.saveState})),R=0,O=void 0;return u({},_,{listenBefore:r,listen:o,registerTransitionHook:a,unregisterTransitionHook:p})}t.__esModule=!0;var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(3),i=r(a),s=n(9),c=n(7),f=n(12),l=n(17),d=n(26),p=n(27),h=r(p);t["default"]=o,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(){var e=arguments.length<=0||void 0===arguments[0]?"/":arguments[0],t=arguments.length<=1||void 0===arguments[1]?i.POP:arguments[1],n=arguments.length<=2||void 0===arguments[2]?null:arguments[2],r=arguments.length<=3||void 0===arguments[3]?null:arguments[3];"string"==typeof e&&(e=s.parsePath(e)),"object"==typeof t&&(e=u({},e,{state:t}),t=n||i.POP,n=r);var o=e.pathname||"/",a=e.search||"",c=e.hash||"",f=e.state||null;return{pathname:o,search:a,hash:c,state:f,action:t,key:n}}t.__esModule=!0;var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(4),i=(r(a),n(9)),s=n(7);t["default"]=o,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){return e.filter(function(e){return e.state}).reduce(function(e,t){return e[t.key]=t.state,e},{})}function u(){function e(e,t){m[e]=t}function t(e){return m[e]}function n(){var e=v[y],n=e.basename,r=e.pathname,o=e.search,u=(n||"")+r+(o||""),i=void 0,s=void 0;e.key?(i=e.key,s=t(i)):(i=d.createKey(),s=null,e.key=i);var c=f.parsePath(u);return d.createLocation(a({},c,{state:s}),void 0,i)}function r(e){var t=y+e;return t>=0&&t<v.length}function u(e){if(e){if(!r(e))return;y+=e;var t=n();d.transitionTo(a({},t,{action:l.POP}))}}function i(t){switch(t.action){case l.PUSH:y+=1,y<v.length&&v.splice(y),v.push(t),e(t.key,t.state);break;case l.REPLACE:v[y]=t,e(t.key,t.state)}}var s=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];Array.isArray(s)?s={entries:s}:"string"==typeof s&&(s={entries:[s]});var d=p["default"](a({},s,{getCurrentLocation:n,finishTransition:i,saveState:e,go:u})),h=s,v=h.entries,y=h.current;"string"==typeof v?v=[v]:Array.isArray(v)||(v=["/"]),v=v.map(function(e){var t=d.createKey();return"string"==typeof e?{pathname:e,key:t}:"object"==typeof e&&e?a({},e,{key:t}):void c["default"](!1)}),null==y?y=v.length-1:y>=0&&y<v.length?void 0:c["default"](!1);var m=o(v);return d}t.__esModule=!0;var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n(4),s=(r(i),n(3)),c=r(s),f=n(7),l=n(9),d=n(29),p=r(d);t["default"]=u,e.exports=t["default"]},function(e,t){"use strict";var n={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,arguments:!0,arity:!0};e.exports=function(e,t){if("string"!=typeof t)for(var o=Object.getOwnPropertyNames(t),u=0;u<o.length;++u)if(!n[o[u]]&&!r[o[u]])try{e[o[u]]=t[o[u]]}catch(a){}return e}},function(e,t,n){"use strict";var r=n(61);t.extract=function(e){return e.split("?")[1]||""},t.parse=function(e){return"string"!=typeof e?{}:(e=e.trim().replace(/^(\?|#|&)/,""),e?e.split("&").reduce(function(e,t){var n=t.replace(/\+/g," ").split("="),r=n.shift(),o=n.length>0?n.join("="):void 0;return r=decodeURIComponent(r),o=void 0===o?null:decodeURIComponent(o),e.hasOwnProperty(r)?Array.isArray(e[r])?e[r].push(o):e[r]=[e[r],o]:e[r]=o,e},{}):{})},t.stringify=function(e){return e?Object.keys(e).sort().map(function(t){var n=e[t];return void 0===n?"":null===n?t:Array.isArray(n)?n.slice().sort().map(function(e){return r(t)+"="+r(e)}).join("&"):r(t)+"="+r(n)}).filter(function(e){return e.length>0}).join("&"):""}},function(e,t){"use strict";e.exports=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}}])});
|