!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;"undefined"!=typeof window?e=window:"undefined"!=typeof global?e=global:"undefined"!=typeof self&&(e=self),e.page=t()}}(function(){return function t(e,n,r){function i(o,s){if(!n[o]){if(!e[o]){var h="function"==typeof require&&require;if(!s&&h)return h(o,!0);if(a)return a(o,!0);var c=new Error("Cannot find module '"+o+"'");throw c.code="MODULE_NOT_FOUND",c}var u=n[o]={exports:{}};e[o][0].call(u.exports,function(t){var n=e[o][1][t];return i(n?n:t)},u,u.exports,t,e,n,r)}return n[o].exports}for(var a="function"==typeof require&&require,o=0;o<r.length;o++)i(r[o]);return i}({1:[function(t,e,n){"use strict";function r(t,e){if("function"==typeof t)return r("*",t);if("function"==typeof e)for(var n=new s(t),i=1;i<arguments.length;++i)r.callbacks.push(n.middleware(arguments[i]));else"string"==typeof t?r["string"==typeof e?"redirect":"show"](t,e):r.start(t)}function i(t){if(!t.handled){var e;e=y?w+v.hash.replace("#!",""):v.pathname+v.search,e!==t.canonicalPath&&(r.stop(),t.handled=!1,v.href=t.canonicalPath)}}function a(t){return"string"!=typeof t?t:g?decodeURIComponent(t.replace(/\+/g," ")):t}function o(t,e){"/"===t[0]&&0!==t.indexOf(w)&&(t=w+(y?"#!":"")+t);var n=t.indexOf("?");if(this.canonicalPath=t,this.path=t.replace(w,"")||"/",y&&(this.path=this.path.replace("#!","")||"/"),this.title=document.title,this.state=e||{},this.state.path=t,this.querystring=~n?a(t.slice(n+1)):"",this.pathname=a(~n?t.slice(0,n):t),this.params={},this.hash="",!y){if(!~this.path.indexOf("#"))return;var r=this.path.split("#");this.path=r[0],this.hash=a(r[1])||"",this.querystring=this.querystring.split("#")[0]}}function s(t,e){e=e||{},this.path="*"===t?"(.*)":t,this.method="GET",this.regexp=f(this.path,this.keys=[],e.sensitive,e.strict)}function h(t){if(t.state){var e=t.state.path;r.replace(e,t.state)}else r.show(v.pathname+v.hash,void 0,void 0,!1)}function c(t){if(1===u(t)&&!(t.metaKey||t.ctrlKey||t.shiftKey||t.defaultPrevented)){for(var e=t.target;e&&"A"!==e.nodeName;)e=e.parentNode;if(e&&"A"===e.nodeName&&!e.getAttribute("download")&&"external"!==e.getAttribute("rel")){var n=e.getAttribute("href");if((y||e.pathname!==v.pathname||!e.hash&&"#"!==n)&&!(n&&n.indexOf("mailto:")>-1)&&!e.target&&p(e.href)){var i=e.pathname+e.search+(e.hash||""),a=i;i=i.replace(w,""),y&&(i=i.replace("#!","")),w&&a===i||(t.preventDefault(),r.show(a))}}}}function u(t){return t=t||window.event,null===t.which?t.button:t.which}function p(t){var e=v.protocol+"//"+v.hostname;return v.port&&(e+=":"+v.port),t&&0===t.indexOf(e)}var f=t("path-to-regexp");e.exports=r;var l,d,v="undefined"!=typeof window&&(window.history.location||window.location),m=!0,g=!0,w="",y=!1;r.callbacks=[],r.exits=[],r.current="",r.len=0,r.base=function(t){return 0===arguments.length?w:void(w=t)},r.start=function(t){if(t=t||{},!l&&(l=!0,!1===t.dispatch&&(m=!1),!1===t.decodeURLComponents&&(g=!1),!1!==t.popstate&&window.addEventListener("popstate",h,!1),!1!==t.click&&window.addEventListener("click",c,!1),!0===t.hashbang&&(y=!0),m)){var e=y&&~v.hash.indexOf("#!")?v.hash.substr(2)+v.search:v.pathname+v.search+v.hash;r.replace(e,null,!0,m)}},r.stop=function(){l&&(r.current="",r.len=0,l=!1,window.removeEventListener("click",c,!1),window.removeEventListener("popstate",h,!1))},r.show=function(t,e,n,i){var a=new o(t,e);return r.current=a.path,!1!==n&&r.dispatch(a),!1!==a.handled&&!1!==i&&a.pushState(),a},r.back=function(t,e){r.len>0?(history.back(),r.len--):t?setTimeout(function(){r.show(t,e)}):setTimeout(function(){r.show(w,e)})},r.redirect=function(t,e){"string"==typeof t&&"string"==typeof e&&r(t,function(t){setTimeout(function(){r.replace(e)},0)}),"string"==typeof t&&"undefined"==typeof e&&setTimeout(function(){r.replace(t)},0)},r.replace=function(t,e,n,i){var a=new o(t,e);return r.current=a.path,a.init=n,a.save(),!1!==i&&r.dispatch(a),a},r.dispatch=function(t){function e(){var t=r.exits[s++];return t?void t(a,e):n()}function n(){var e=r.callbacks[o++];return t.path!==r.current?void(t.handled=!1):e?void e(t,n):i(t)}var a=d,o=0,s=0;d=t,a?e():n()},r.exit=function(t,e){if("function"==typeof t)return r.exit("*",t);for(var n=new s(t),i=1;i<arguments.length;++i)r.exits.push(n.middleware(arguments[i]))},r.Context=o,o.prototype.pushState=function(){r.len++,history.pushState(this.state,this.title,y&&"/"!==this.path?"#!"+this.path:this.canonicalPath)},o.prototype.save=function(){history.replaceState(this.state,this.title,y&&"/"!==this.path?"#!"+this.path:this.canonicalPath)},r.Route=s,s.prototype.middleware=function(t){var e=this;return function(n,r){return e.match(n.path,n.params)?t(n,r):void r()}},s.prototype.match=function(t,e){var n=this.keys,r=t.indexOf("?"),i=~r?t.slice(0,r):t,o=this.regexp.exec(decodeURIComponent(i));if(!o)return!1;for(var s=1,h=o.length;h>s;++s){var c=n[s-1],u=a(o[s]);void 0===u&&hasOwnProperty.call(e,c.name)||(e[c.name]=u)}return!0},r.sameOrigin=p},{"path-to-regexp":2}],2:[function(t,e,n){function r(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function i(t,e){return t.keys=e,t}function a(t,e,n){o(e)||(n=e,e=null),e=e||[],n=n||{};var h=n.strict,c=n.end!==!1,u=n.sensitive?"":"i",p=0;if(t instanceof RegExp){var f=t.source.match(/\((?!\?)/g);if(f)for(var l=0;l<f.length;l++)e.push({name:l,delimiter:null,optional:!1,repeat:!1});return i(t,e)}if(o(t)){for(var d=[],l=0;l<t.length;l++)d.push(a(t[l],e,n).source);return i(new RegExp("(?:"+d.join("|")+")",u),e)}t=t.replace(s,function(t,n,i,a,o,s,h,c){if(n)return n;if(c)return"\\"+c;var u="+"===h||"*"===h,f="?"===h||"*"===h;return e.push({name:a||p++,delimiter:i||"/",optional:f,repeat:u}),i=i?"\\"+i:"",o=r(o||s||"[^"+(i||"\\/")+"]+?"),u&&(o=o+"(?:"+i+o+")*"),f?"(?:"+i+"("+o+"))?":i+"("+o+")"});var v="/"===t[t.length-1];return h||(t=(v?t.slice(0,-2):t)+"(?:\\/(?=$))?"),c||(t+=h&&v?"":"(?=\\/|$)"),i(new RegExp("^"+t+(c?"$":""),u),e)}var o=t("isarray");e.exports=a;var s=new RegExp(["(\\\\.)","([\\/.])?(?:\\:(\\w+)(?:\\(((?:\\\\.|[^)])*)\\))?|\\(((?:\\\\.|[^)])*)\\))([+*?])?","([.+*?=^!:${}()[\\]|\\/])"].join("|"),"g")},{isarray:3}],3:[function(t,e,n){e.exports=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)}},{}]},{},[1])(1)});