Commit 18a4c153 authored by Cholgrrr's avatar Cholgrrr
Browse files

Merge branch 'New_Structure' of https://gitlab.com/Cholgrrr/m4labplatform into New_Structure

parents 923bc474 781d3312
...@@ -28,7 +28,7 @@ t.exports=function(t){return null!=t&&null!=t.constructor&&"function"===typeof t ...@@ -28,7 +28,7 @@ t.exports=function(t){return null!=t&&null!=t.constructor&&"function"===typeof t
* vue-router v3.0.7 * vue-router v3.0.7
* (c) 2019 Evan You * (c) 2019 Evan You
* @license MIT * @license MIT
*/function i(t,e){0}function r(t){return Object.prototype.toString.call(t).indexOf("Error")>-1}function a(t,e){for(var n in e)t[n]=e[n];return t}var o={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(t,e){var n=e.props,i=e.children,r=e.parent,o=e.data;o.routerView=!0;var c=r.$createElement,l=n.name,u=r.$route,d=r._routerViewCache||(r._routerViewCache={}),f=0,p=!1;while(r&&r._routerRoot!==r){var h=r.$vnode&&r.$vnode.data;h&&(h.routerView&&f++,h.keepAlive&&r._inactive&&(p=!0)),r=r.$parent}if(o.routerViewDepth=f,p)return c(d[l],o,i);var m=u.matched[f];if(!m)return d[l]=null,c();var _=d[l]=m.components[l];o.registerRouteInstance=function(t,e){var n=m.instances[l];(e&&n!==t||!e&&n===t)&&(m.instances[l]=e)},(o.hook||(o.hook={})).prepatch=function(t,e){m.instances[l]=e.componentInstance},o.hook.init=function(t){t.data.keepAlive&&t.componentInstance&&t.componentInstance!==m.instances[l]&&(m.instances[l]=t.componentInstance)};var v=o.props=s(u,m.props&&m.props[l]);if(v){v=o.props=a({},v);var g=o.attrs=o.attrs||{};for(var b in v)_.props&&b in _.props||(g[b]=v[b],delete v[b])}return c(_,o,i)}};function s(t,e){switch(typeof e){case"undefined":return;case"object":return e;case"function":return e(t);case"boolean":return e?t.params:void 0;default:0}}var c=/[!'()*]/g,l=function(t){return"%"+t.charCodeAt(0).toString(16)},u=/%2C/g,d=function(t){return encodeURIComponent(t).replace(c,l).replace(u,",")},f=decodeURIComponent;function p(t,e,n){void 0===e&&(e={});var i,r=n||h;try{i=r(t||"")}catch(o){i={}}for(var a in e)i[a]=e[a];return i}function h(t){var e={};return t=t.trim().replace(/^(\?|#|&)/,""),t?(t.split("&").forEach((function(t){var n=t.replace(/\+/g," ").split("="),i=f(n.shift()),r=n.length>0?f(n.join("=")):null;void 0===e[i]?e[i]=r:Array.isArray(e[i])?e[i].push(r):e[i]=[e[i],r]})),e):e}function m(t){var e=t?Object.keys(t).map((function(e){var n=t[e];if(void 0===n)return"";if(null===n)return d(e);if(Array.isArray(n)){var i=[];return n.forEach((function(t){void 0!==t&&(null===t?i.push(d(e)):i.push(d(e)+"="+d(t)))})),i.join("&")}return d(e)+"="+d(n)})).filter((function(t){return t.length>0})).join("&"):null;return e?"?"+e:""}var _=/\/?$/;function v(t,e,n,i){var r=i&&i.options.stringifyQuery,a=e.query||{};try{a=g(a)}catch(s){}var o={name:e.name||t&&t.name,meta:t&&t.meta||{},path:e.path||"/",hash:e.hash||"",query:a,params:e.params||{},fullPath:y(e,r),matched:t?M(t):[]};return n&&(o.redirectedFrom=y(n,r)),Object.freeze(o)}function g(t){if(Array.isArray(t))return t.map(g);if(t&&"object"===typeof t){var e={};for(var n in t)e[n]=g(t[n]);return e}return t}var b=v(null,{path:"/"});function M(t){var e=[];while(t)e.unshift(t),t=t.parent;return e}function y(t,e){var n=t.path,i=t.query;void 0===i&&(i={});var r=t.hash;void 0===r&&(r="");var a=e||m;return(n||"/")+a(i)+r}function w(t,e){return e===b?t===e:!!e&&(t.path&&e.path?t.path.replace(_,"")===e.path.replace(_,"")&&t.hash===e.hash&&L(t.query,e.query):!(!t.name||!e.name)&&(t.name===e.name&&t.hash===e.hash&&L(t.query,e.query)&&L(t.params,e.params)))}function L(t,e){if(void 0===t&&(t={}),void 0===e&&(e={}),!t||!e)return t===e;var n=Object.keys(t),i=Object.keys(e);return n.length===i.length&&n.every((function(n){var i=t[n],r=e[n];return"object"===typeof i&&"object"===typeof r?L(i,r):String(i)===String(r)}))}function A(t,e){return 0===t.path.replace(_,"/").indexOf(e.path.replace(_,"/"))&&(!e.hash||t.hash===e.hash)&&k(t.query,e.query)}function k(t,e){for(var n in e)if(!(n in t))return!1;return!0}var x,O=[String,Object],S=[String,Array],T={name:"RouterLink",props:{to:{type:O,required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,event:{type:S,default:"click"}},render:function(t){var e=this,n=this.$router,i=this.$route,r=n.resolve(this.to,i,this.append),o=r.location,s=r.route,c=r.href,l={},u=n.options.linkActiveClass,d=n.options.linkExactActiveClass,f=null==u?"router-link-active":u,p=null==d?"router-link-exact-active":d,h=null==this.activeClass?f:this.activeClass,m=null==this.exactActiveClass?p:this.exactActiveClass,_=o.path?v(null,o,null,n):s;l[m]=w(i,_),l[h]=this.exact?l[m]:A(i,_);var g=function(t){z(t)&&(e.replace?n.replace(o):n.push(o))},b={click:z};Array.isArray(this.event)?this.event.forEach((function(t){b[t]=g})):b[this.event]=g;var M={class:l};if("a"===this.tag)M.on=b,M.attrs={href:c};else{var y=C(this.$slots.default);if(y){y.isStatic=!1;var L=y.data=a({},y.data);L.on=b;var k=y.data.attrs=a({},y.data.attrs);k.href=c}else M.on=b}return t(this.tag,M,this.$slots.default)}};function z(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&(void 0===t.button||0===t.button)){if(t.currentTarget&&t.currentTarget.getAttribute){var e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function C(t){if(t)for(var e,n=0;n<t.length;n++){if(e=t[n],"a"===e.tag)return e;if(e.children&&(e=C(e.children)))return e}}function D(t){if(!D.installed||x!==t){D.installed=!0,x=t;var e=function(t){return void 0!==t},n=function(t,n){var i=t.$options._parentVnode;e(i)&&e(i=i.data)&&e(i=i.registerRouteInstance)&&i(t,n)};t.mixin({beforeCreate:function(){e(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),t.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,n(this,this)},destroyed:function(){n(this)}}),Object.defineProperty(t.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(t.prototype,"$route",{get:function(){return this._routerRoot._route}}),t.component("RouterView",o),t.component("RouterLink",T);var i=t.config.optionMergeStrategies;i.beforeRouteEnter=i.beforeRouteLeave=i.beforeRouteUpdate=i.created}}var N="undefined"!==typeof window;function E(t,e,n){var i=t.charAt(0);if("/"===i)return t;if("?"===i||"#"===i)return e+t;var r=e.split("/");n&&r[r.length-1]||r.pop();for(var a=t.replace(/^\//,"").split("/"),o=0;o<a.length;o++){var s=a[o];".."===s?r.pop():"."!==s&&r.push(s)}return""!==r[0]&&r.unshift(""),r.join("/")}function j(t){var e="",n="",i=t.indexOf("#");i>=0&&(e=t.slice(i),t=t.slice(0,i));var r=t.indexOf("?");return r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),{path:t,query:n,hash:e}}function q(t){return t.replace(/\/\//g,"/")}var P=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)},Y=it,B=H,W=R,$=U,I=nt,F=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function H(t,e){var n,i=[],r=0,a=0,o="",s=e&&e.delimiter||"/";while(null!=(n=F.exec(t))){var c=n[0],l=n[1],u=n.index;if(o+=t.slice(a,u),a=u+c.length,l)o+=l[1];else{var d=t[a],f=n[2],p=n[3],h=n[4],m=n[5],_=n[6],v=n[7];o&&(i.push(o),o="");var g=null!=f&&null!=d&&d!==f,b="+"===_||"*"===_,M="?"===_||"*"===_,y=n[2]||s,w=h||m;i.push({name:p||r++,prefix:f||"",delimiter:y,optional:M,repeat:b,partial:g,asterisk:!!v,pattern:w?J(w):v?".*":"[^"+G(y)+"]+?"})}}return a<t.length&&(o+=t.substr(a)),o&&i.push(o),i}function R(t,e){return U(H(t,e))}function X(t){return encodeURI(t).replace(/[\/?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}))}function V(t){return encodeURI(t).replace(/[?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}))}function U(t){for(var e=new Array(t.length),n=0;n<t.length;n++)"object"===typeof t[n]&&(e[n]=new RegExp("^(?:"+t[n].pattern+")$"));return function(n,i){for(var r="",a=n||{},o=i||{},s=o.pretty?X:encodeURIComponent,c=0;c<t.length;c++){var l=t[c];if("string"!==typeof l){var u,d=a[l.name];if(null==d){if(l.optional){l.partial&&(r+=l.prefix);continue}throw new TypeError('Expected "'+l.name+'" to be defined')}if(P(d)){if(!l.repeat)throw new TypeError('Expected "'+l.name+'" to not repeat, but received `'+JSON.stringify(d)+"`");if(0===d.length){if(l.optional)continue;throw new TypeError('Expected "'+l.name+'" to not be empty')}for(var f=0;f<d.length;f++){if(u=s(d[f]),!e[c].test(u))throw new TypeError('Expected all "'+l.name+'" to match "'+l.pattern+'", but received `'+JSON.stringify(u)+"`");r+=(0===f?l.prefix:l.delimiter)+u}}else{if(u=l.asterisk?V(d):s(d),!e[c].test(u))throw new TypeError('Expected "'+l.name+'" to match "'+l.pattern+'", but received "'+u+'"');r+=l.prefix+u}}else r+=l}return r}}function G(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function J(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function K(t,e){return t.keys=e,t}function Q(t){return t.sensitive?"":"i"}function Z(t,e){var n=t.source.match(/\((?!\?)/g);if(n)for(var i=0;i<n.length;i++)e.push({name:i,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return K(t,e)}function tt(t,e,n){for(var i=[],r=0;r<t.length;r++)i.push(it(t[r],e,n).source);var a=new RegExp("(?:"+i.join("|")+")",Q(n));return K(a,e)}function et(t,e,n){return nt(H(t,n),e,n)}function nt(t,e,n){P(e)||(n=e||n,e=[]),n=n||{};for(var i=n.strict,r=!1!==n.end,a="",o=0;o<t.length;o++){var s=t[o];if("string"===typeof s)a+=G(s);else{var c=G(s.prefix),l="(?:"+s.pattern+")";e.push(s),s.repeat&&(l+="(?:"+c+l+")*"),l=s.optional?s.partial?c+"("+l+")?":"(?:"+c+"("+l+"))?":c+"("+l+")",a+=l}}var u=G(n.delimiter||"/"),d=a.slice(-u.length)===u;return i||(a=(d?a.slice(0,-u.length):a)+"(?:"+u+"(?=$))?"),a+=r?"$":i&&d?"":"(?="+u+"|$)",K(new RegExp("^"+a,Q(n)),e)}function it(t,e,n){return P(e)||(n=e||n,e=[]),n=n||{},t instanceof RegExp?Z(t,e):P(t)?tt(t,e,n):et(t,e,n)}Y.parse=B,Y.compile=W,Y.tokensToFunction=$,Y.tokensToRegExp=I;var rt=Object.create(null);function at(t,e,n){e=e||{};try{var i=rt[t]||(rt[t]=Y.compile(t));return e.pathMatch&&(e[0]=e.pathMatch),i(e,{pretty:!0})}catch(r){return""}finally{delete e[0]}}function ot(t,e,n,i){var r=e||[],a=n||Object.create(null),o=i||Object.create(null);t.forEach((function(t){st(r,a,o,t)}));for(var s=0,c=r.length;s<c;s++)"*"===r[s]&&(r.push(r.splice(s,1)[0]),c--,s--);return{pathList:r,pathMap:a,nameMap:o}}function st(t,e,n,i,r,a){var o=i.path,s=i.name;var c=i.pathToRegexpOptions||{},l=lt(o,r,c.strict);"boolean"===typeof i.caseSensitive&&(c.sensitive=i.caseSensitive);var u={path:l,regex:ct(l,c),components:i.components||{default:i.component},instances:{},name:s,parent:r,matchAs:a,redirect:i.redirect,beforeEnter:i.beforeEnter,meta:i.meta||{},props:null==i.props?{}:i.components?i.props:{default:i.props}};if(i.children&&i.children.forEach((function(i){var r=a?q(a+"/"+i.path):void 0;st(t,e,n,i,u,r)})),void 0!==i.alias){var d=Array.isArray(i.alias)?i.alias:[i.alias];d.forEach((function(a){var o={path:a,children:i.children};st(t,e,n,o,r,u.path||"/")}))}e[u.path]||(t.push(u.path),e[u.path]=u),s&&(n[s]||(n[s]=u))}function ct(t,e){var n=Y(t,[],e);return n}function lt(t,e,n){return n||(t=t.replace(/\/$/,"")),"/"===t[0]||null==e?t:q(e.path+"/"+t)}function ut(t,e,n,i){var r="string"===typeof t?{path:t}:t;if(r._normalized)return r;if(r.name)return a({},t);if(!r.path&&r.params&&e){r=a({},r),r._normalized=!0;var o=a(a({},e.params),r.params);if(e.name)r.name=e.name,r.params=o;else if(e.matched.length){var s=e.matched[e.matched.length-1].path;r.path=at(s,o,"path "+e.path)}else 0;return r}var c=j(r.path||""),l=e&&e.path||"/",u=c.path?E(c.path,l,n||r.append):l,d=p(c.query,r.query,i&&i.options.parseQuery),f=r.hash||c.hash;return f&&"#"!==f.charAt(0)&&(f="#"+f),{_normalized:!0,path:u,query:d,hash:f}}function dt(t,e){var n=ot(t),i=n.pathList,r=n.pathMap,a=n.nameMap;function o(t){ot(t,i,r,a)}function s(t,n,o){var s=ut(t,n,!1,e),c=s.name;if(c){var l=a[c];if(!l)return u(null,s);var d=l.regex.keys.filter((function(t){return!t.optional})).map((function(t){return t.name}));if("object"!==typeof s.params&&(s.params={}),n&&"object"===typeof n.params)for(var f in n.params)!(f in s.params)&&d.indexOf(f)>-1&&(s.params[f]=n.params[f]);return s.path=at(l.path,s.params,'named route "'+c+'"'),u(l,s,o)}if(s.path){s.params={};for(var p=0;p<i.length;p++){var h=i[p],m=r[h];if(ft(m.regex,s.path,s.params))return u(m,s,o)}}return u(null,s)}function c(t,n){var i=t.redirect,r="function"===typeof i?i(v(t,n,null,e)):i;if("string"===typeof r&&(r={path:r}),!r||"object"!==typeof r)return u(null,n);var o=r,c=o.name,l=o.path,d=n.query,f=n.hash,p=n.params;if(d=o.hasOwnProperty("query")?o.query:d,f=o.hasOwnProperty("hash")?o.hash:f,p=o.hasOwnProperty("params")?o.params:p,c){a[c];return s({_normalized:!0,name:c,query:d,hash:f,params:p},void 0,n)}if(l){var h=pt(l,t),m=at(h,p,'redirect route with path "'+h+'"');return s({_normalized:!0,path:m,query:d,hash:f},void 0,n)}return u(null,n)}function l(t,e,n){var i=at(n,e.params,'aliased route with path "'+n+'"'),r=s({_normalized:!0,path:i});if(r){var a=r.matched,o=a[a.length-1];return e.params=r.params,u(o,e)}return u(null,e)}function u(t,n,i){return t&&t.redirect?c(t,i||n):t&&t.matchAs?l(t,n,t.matchAs):v(t,n,i,e)}return{match:s,addRoutes:o}}function ft(t,e,n){var i=e.match(t);if(!i)return!1;if(!n)return!0;for(var r=1,a=i.length;r<a;++r){var o=t.keys[r-1],s="string"===typeof i[r]?decodeURIComponent(i[r]):i[r];o&&(n[o.name||"pathMatch"]=s)}return!0}function pt(t,e){return E(t,e.parent?e.parent.path:"/",!0)}var ht=Object.create(null);function mt(){var t=window.location.protocol+"//"+window.location.host,e=window.location.href.replace(t,"");window.history.replaceState({key:Tt()},"",e),window.addEventListener("popstate",(function(t){vt(),t.state&&t.state.key&&zt(t.state.key)}))}function _t(t,e,n,i){if(t.app){var r=t.options.scrollBehavior;r&&t.app.$nextTick((function(){var a=gt(),o=r.call(t,e,n,i?a:null);o&&("function"===typeof o.then?o.then((function(t){At(t,a)})).catch((function(t){0})):At(o,a))}))}}function vt(){var t=Tt();t&&(ht[t]={x:window.pageXOffset,y:window.pageYOffset})}function gt(){var t=Tt();if(t)return ht[t]}function bt(t,e){var n=document.documentElement,i=n.getBoundingClientRect(),r=t.getBoundingClientRect();return{x:r.left-i.left-e.x,y:r.top-i.top-e.y}}function Mt(t){return Lt(t.x)||Lt(t.y)}function yt(t){return{x:Lt(t.x)?t.x:window.pageXOffset,y:Lt(t.y)?t.y:window.pageYOffset}}function wt(t){return{x:Lt(t.x)?t.x:0,y:Lt(t.y)?t.y:0}}function Lt(t){return"number"===typeof t}function At(t,e){var n="object"===typeof t;if(n&&"string"===typeof t.selector){var i=document.querySelector(t.selector);if(i){var r=t.offset&&"object"===typeof t.offset?t.offset:{};r=wt(r),e=bt(i,r)}else Mt(t)&&(e=yt(t))}else n&&Mt(t)&&(e=yt(t));e&&window.scrollTo(e.x,e.y)}var kt=N&&function(){var t=window.navigator.userAgent;return(-1===t.indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)}(),xt=N&&window.performance&&window.performance.now?window.performance:Date,Ot=St();function St(){return xt.now().toFixed(3)}function Tt(){return Ot}function zt(t){Ot=t}function Ct(t,e){vt();var n=window.history;try{e?n.replaceState({key:Ot},"",t):(Ot=St(),n.pushState({key:Ot},"",t))}catch(i){window.location[e?"replace":"assign"](t)}}function Dt(t){Ct(t,!0)}function Nt(t,e,n){var i=function(r){r>=t.length?n():t[r]?e(t[r],(function(){i(r+1)})):i(r+1)};i(0)}function Et(t){return function(e,n,i){var a=!1,o=0,s=null;jt(t,(function(t,e,n,c){if("function"===typeof t&&void 0===t.cid){a=!0,o++;var l,u=Bt((function(e){Yt(e)&&(e=e.default),t.resolved="function"===typeof e?e:x.extend(e),n.components[c]=e,o--,o<=0&&i()})),d=Bt((function(t){var e="Failed to resolve async component "+c+": "+t;s||(s=r(t)?t:new Error(e),i(s))}));try{l=t(u,d)}catch(p){d(p)}if(l)if("function"===typeof l.then)l.then(u,d);else{var f=l.component;f&&"function"===typeof f.then&&f.then(u,d)}}})),a||i()}}function jt(t,e){return qt(t.map((function(t){return Object.keys(t.components).map((function(n){return e(t.components[n],t.instances[n],t,n)}))})))}function qt(t){return Array.prototype.concat.apply([],t)}var Pt="function"===typeof Symbol&&"symbol"===typeof Symbol.toStringTag;function Yt(t){return t.__esModule||Pt&&"Module"===t[Symbol.toStringTag]}function Bt(t){var e=!1;return function(){var n=[],i=arguments.length;while(i--)n[i]=arguments[i];if(!e)return e=!0,t.apply(this,n)}}var Wt=function(t,e){this.router=t,this.base=$t(e),this.current=b,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[]};function $t(t){if(!t)if(N){var e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^https?:\/\/[^\/]+/,"")}else t="/";return"/"!==t.charAt(0)&&(t="/"+t),t.replace(/\/$/,"")}function It(t,e){var n,i=Math.max(t.length,e.length);for(n=0;n<i;n++)if(t[n]!==e[n])break;return{updated:e.slice(0,n),activated:e.slice(n),deactivated:t.slice(n)}}function Ft(t,e,n,i){var r=jt(t,(function(t,i,r,a){var o=Ht(t,e);if(o)return Array.isArray(o)?o.map((function(t){return n(t,i,r,a)})):n(o,i,r,a)}));return qt(i?r.reverse():r)}function Ht(t,e){return"function"!==typeof t&&(t=x.extend(t)),t.options[e]}function Rt(t){return Ft(t,"beforeRouteLeave",Vt,!0)}function Xt(t){return Ft(t,"beforeRouteUpdate",Vt)}function Vt(t,e){if(e)return function(){return t.apply(e,arguments)}}function Ut(t,e,n){return Ft(t,"beforeRouteEnter",(function(t,i,r,a){return Gt(t,r,a,e,n)}))}function Gt(t,e,n,i,r){return function(a,o,s){return t(a,o,(function(t){"function"===typeof t&&i.push((function(){Jt(t,e.instances,n,r)})),s(t)}))}}function Jt(t,e,n,i){e[n]&&!e[n]._isBeingDestroyed?t(e[n]):i()&&setTimeout((function(){Jt(t,e,n,i)}),16)}Wt.prototype.listen=function(t){this.cb=t},Wt.prototype.onReady=function(t,e){this.ready?t():(this.readyCbs.push(t),e&&this.readyErrorCbs.push(e))},Wt.prototype.onError=function(t){this.errorCbs.push(t)},Wt.prototype.transitionTo=function(t,e,n){var i=this,r=this.router.match(t,this.current);this.confirmTransition(r,(function(){i.updateRoute(r),e&&e(r),i.ensureURL(),i.ready||(i.ready=!0,i.readyCbs.forEach((function(t){t(r)})))}),(function(t){n&&n(t),t&&!i.ready&&(i.ready=!0,i.readyErrorCbs.forEach((function(e){e(t)})))}))},Wt.prototype.confirmTransition=function(t,e,n){var a=this,o=this.current,s=function(t){r(t)&&(a.errorCbs.length?a.errorCbs.forEach((function(e){e(t)})):(i(!1,"uncaught error during route navigation:"),console.error(t))),n&&n(t)};if(w(t,o)&&t.matched.length===o.matched.length)return this.ensureURL(),s();var c=It(this.current.matched,t.matched),l=c.updated,u=c.deactivated,d=c.activated,f=[].concat(Rt(u),this.router.beforeHooks,Xt(l),d.map((function(t){return t.beforeEnter})),Et(d));this.pending=t;var p=function(e,n){if(a.pending!==t)return s();try{e(t,o,(function(t){!1===t||r(t)?(a.ensureURL(!0),s(t)):"string"===typeof t||"object"===typeof t&&("string"===typeof t.path||"string"===typeof t.name)?(s(),"object"===typeof t&&t.replace?a.replace(t):a.push(t)):n(t)}))}catch(i){s(i)}};Nt(f,p,(function(){var n=[],i=function(){return a.current===t},r=Ut(d,n,i),o=r.concat(a.router.resolveHooks);Nt(o,p,(function(){if(a.pending!==t)return s();a.pending=null,e(t),a.router.app&&a.router.app.$nextTick((function(){n.forEach((function(t){t()}))}))}))}))},Wt.prototype.updateRoute=function(t){var e=this.current;this.current=t,this.cb&&this.cb(t),this.router.afterHooks.forEach((function(n){n&&n(t,e)}))};var Kt=function(t){function e(e,n){var i=this;t.call(this,e,n);var r=e.options.scrollBehavior,a=kt&&r;a&&mt();var o=Qt(this.base);window.addEventListener("popstate",(function(t){var n=i.current,r=Qt(i.base);i.current===b&&r===o||i.transitionTo(r,(function(t){a&&_t(e,t,n,!0)}))}))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.go=function(t){window.history.go(t)},e.prototype.push=function(t,e,n){var i=this,r=this,a=r.current;this.transitionTo(t,(function(t){Ct(q(i.base+t.fullPath)),_t(i.router,t,a,!1),e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var i=this,r=this,a=r.current;this.transitionTo(t,(function(t){Dt(q(i.base+t.fullPath)),_t(i.router,t,a,!1),e&&e(t)}),n)},e.prototype.ensureURL=function(t){if(Qt(this.base)!==this.current.fullPath){var e=q(this.base+this.current.fullPath);t?Ct(e):Dt(e)}},e.prototype.getCurrentLocation=function(){return Qt(this.base)},e}(Wt);function Qt(t){var e=decodeURI(window.location.pathname);return t&&0===e.indexOf(t)&&(e=e.slice(t.length)),(e||"/")+window.location.search+window.location.hash}var Zt=function(t){function e(e,n,i){t.call(this,e,n),i&&te(this.base)||ee()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setupListeners=function(){var t=this,e=this.router,n=e.options.scrollBehavior,i=kt&&n;i&&mt(),window.addEventListener(kt?"popstate":"hashchange",(function(){var e=t.current;ee()&&t.transitionTo(ne(),(function(n){i&&_t(t.router,n,e,!0),kt||ae(n.fullPath)}))}))},e.prototype.push=function(t,e,n){var i=this,r=this,a=r.current;this.transitionTo(t,(function(t){re(t.fullPath),_t(i.router,t,a,!1),e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var i=this,r=this,a=r.current;this.transitionTo(t,(function(t){ae(t.fullPath),_t(i.router,t,a,!1),e&&e(t)}),n)},e.prototype.go=function(t){window.history.go(t)},e.prototype.ensureURL=function(t){var e=this.current.fullPath;ne()!==e&&(t?re(e):ae(e))},e.prototype.getCurrentLocation=function(){return ne()},e}(Wt);function te(t){var e=Qt(t);if(!/^\/#/.test(e))return window.location.replace(q(t+"/#"+e)),!0}function ee(){var t=ne();return"/"===t.charAt(0)||(ae("/"+t),!1)}function ne(){var t=window.location.href,e=t.indexOf("#");if(e<0)return"";t=t.slice(e+1);var n=t.indexOf("?");if(n<0){var i=t.indexOf("#");t=i>-1?decodeURI(t.slice(0,i))+t.slice(i):decodeURI(t)}else n>-1&&(t=decodeURI(t.slice(0,n))+t.slice(n));return t}function ie(t){var e=window.location.href,n=e.indexOf("#"),i=n>=0?e.slice(0,n):e;return i+"#"+t}function re(t){kt?Ct(ie(t)):window.location.hash=t}function ae(t){kt?Dt(ie(t)):window.location.replace(ie(t))}var oe=function(t){function e(e,n){t.call(this,e,n),this.stack=[],this.index=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(t,e,n){var i=this;this.transitionTo(t,(function(t){i.stack=i.stack.slice(0,i.index+1).concat(t),i.index++,e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var i=this;this.transitionTo(t,(function(t){i.stack=i.stack.slice(0,i.index).concat(t),e&&e(t)}),n)},e.prototype.go=function(t){var e=this,n=this.index+t;if(!(n<0||n>=this.stack.length)){var i=this.stack[n];this.confirmTransition(i,(function(){e.index=n,e.updateRoute(i)}))}},e.prototype.getCurrentLocation=function(){var t=this.stack[this.stack.length-1];return t?t.fullPath:"/"},e.prototype.ensureURL=function(){},e}(Wt),se=function(t){void 0===t&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=dt(t.routes||[],this);var e=t.mode||"hash";switch(this.fallback="history"===e&&!kt&&!1!==t.fallback,this.fallback&&(e="hash"),N||(e="abstract"),this.mode=e,e){case"history":this.history=new Kt(this,t.base);break;case"hash":this.history=new Zt(this,t.base,this.fallback);break;case"abstract":this.history=new oe(this,t.base);break;default:0}},ce={currentRoute:{configurable:!0}};function le(t,e){return t.push(e),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function ue(t,e,n){var i="hash"===n?"#"+e:e;return t?q(t+"/"+i):i}se.prototype.match=function(t,e,n){return this.matcher.match(t,e,n)},ce.currentRoute.get=function(){return this.history&&this.history.current},se.prototype.init=function(t){var e=this;if(this.apps.push(t),t.$once("hook:destroyed",(function(){var n=e.apps.indexOf(t);n>-1&&e.apps.splice(n,1),e.app===t&&(e.app=e.apps[0]||null)})),!this.app){this.app=t;var n=this.history;if(n instanceof Kt)n.transitionTo(n.getCurrentLocation());else if(n instanceof Zt){var i=function(){n.setupListeners()};n.transitionTo(n.getCurrentLocation(),i,i)}n.listen((function(t){e.apps.forEach((function(e){e._route=t}))}))}},se.prototype.beforeEach=function(t){return le(this.beforeHooks,t)},se.prototype.beforeResolve=function(t){return le(this.resolveHooks,t)},se.prototype.afterEach=function(t){return le(this.afterHooks,t)},se.prototype.onReady=function(t,e){this.history.onReady(t,e)},se.prototype.onError=function(t){this.history.onError(t)},se.prototype.push=function(t,e,n){this.history.push(t,e,n)},se.prototype.replace=function(t,e,n){this.history.replace(t,e,n)},se.prototype.go=function(t){this.history.go(t)},se.prototype.back=function(){this.go(-1)},se.prototype.forward=function(){this.go(1)},se.prototype.getMatchedComponents=function(t){var e=t?t.matched?t:this.resolve(t).route:this.currentRoute;return e?[].concat.apply([],e.matched.map((function(t){return Object.keys(t.components).map((function(e){return t.components[e]}))}))):[]},se.prototype.resolve=function(t,e,n){e=e||this.history.current;var i=ut(t,e,n,this),r=this.match(i,e),a=r.redirectedFrom||r.fullPath,o=this.history.base,s=ue(o,a,this.mode);return{location:i,route:r,href:s,normalizedTo:i,resolved:r}},se.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==b&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(se.prototype,ce),se.install=D,se.version="3.0.7",N&&window.Vue&&window.Vue.use(se),e["a"]=se},,,,,,,,,,,,,,function(t,e,n){var i=n(21),r=n(880);i({target:"Number",stat:!0},{isInteger:r})},,,,,,,,,,,function(t,e,n){(function(e){ */function i(t,e){0}function r(t){return Object.prototype.toString.call(t).indexOf("Error")>-1}function a(t,e){for(var n in e)t[n]=e[n];return t}var o={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(t,e){var n=e.props,i=e.children,r=e.parent,o=e.data;o.routerView=!0;var c=r.$createElement,l=n.name,u=r.$route,d=r._routerViewCache||(r._routerViewCache={}),f=0,p=!1;while(r&&r._routerRoot!==r){var h=r.$vnode&&r.$vnode.data;h&&(h.routerView&&f++,h.keepAlive&&r._inactive&&(p=!0)),r=r.$parent}if(o.routerViewDepth=f,p)return c(d[l],o,i);var m=u.matched[f];if(!m)return d[l]=null,c();var _=d[l]=m.components[l];o.registerRouteInstance=function(t,e){var n=m.instances[l];(e&&n!==t||!e&&n===t)&&(m.instances[l]=e)},(o.hook||(o.hook={})).prepatch=function(t,e){m.instances[l]=e.componentInstance},o.hook.init=function(t){t.data.keepAlive&&t.componentInstance&&t.componentInstance!==m.instances[l]&&(m.instances[l]=t.componentInstance)};var v=o.props=s(u,m.props&&m.props[l]);if(v){v=o.props=a({},v);var g=o.attrs=o.attrs||{};for(var b in v)_.props&&b in _.props||(g[b]=v[b],delete v[b])}return c(_,o,i)}};function s(t,e){switch(typeof e){case"undefined":return;case"object":return e;case"function":return e(t);case"boolean":return e?t.params:void 0;default:0}}var c=/[!'()*]/g,l=function(t){return"%"+t.charCodeAt(0).toString(16)},u=/%2C/g,d=function(t){return encodeURIComponent(t).replace(c,l).replace(u,",")},f=decodeURIComponent;function p(t,e,n){void 0===e&&(e={});var i,r=n||h;try{i=r(t||"")}catch(o){i={}}for(var a in e)i[a]=e[a];return i}function h(t){var e={};return t=t.trim().replace(/^(\?|#|&)/,""),t?(t.split("&").forEach((function(t){var n=t.replace(/\+/g," ").split("="),i=f(n.shift()),r=n.length>0?f(n.join("=")):null;void 0===e[i]?e[i]=r:Array.isArray(e[i])?e[i].push(r):e[i]=[e[i],r]})),e):e}function m(t){var e=t?Object.keys(t).map((function(e){var n=t[e];if(void 0===n)return"";if(null===n)return d(e);if(Array.isArray(n)){var i=[];return n.forEach((function(t){void 0!==t&&(null===t?i.push(d(e)):i.push(d(e)+"="+d(t)))})),i.join("&")}return d(e)+"="+d(n)})).filter((function(t){return t.length>0})).join("&"):null;return e?"?"+e:""}var _=/\/?$/;function v(t,e,n,i){var r=i&&i.options.stringifyQuery,a=e.query||{};try{a=g(a)}catch(s){}var o={name:e.name||t&&t.name,meta:t&&t.meta||{},path:e.path||"/",hash:e.hash||"",query:a,params:e.params||{},fullPath:y(e,r),matched:t?M(t):[]};return n&&(o.redirectedFrom=y(n,r)),Object.freeze(o)}function g(t){if(Array.isArray(t))return t.map(g);if(t&&"object"===typeof t){var e={};for(var n in t)e[n]=g(t[n]);return e}return t}var b=v(null,{path:"/"});function M(t){var e=[];while(t)e.unshift(t),t=t.parent;return e}function y(t,e){var n=t.path,i=t.query;void 0===i&&(i={});var r=t.hash;void 0===r&&(r="");var a=e||m;return(n||"/")+a(i)+r}function w(t,e){return e===b?t===e:!!e&&(t.path&&e.path?t.path.replace(_,"")===e.path.replace(_,"")&&t.hash===e.hash&&L(t.query,e.query):!(!t.name||!e.name)&&(t.name===e.name&&t.hash===e.hash&&L(t.query,e.query)&&L(t.params,e.params)))}function L(t,e){if(void 0===t&&(t={}),void 0===e&&(e={}),!t||!e)return t===e;var n=Object.keys(t),i=Object.keys(e);return n.length===i.length&&n.every((function(n){var i=t[n],r=e[n];return"object"===typeof i&&"object"===typeof r?L(i,r):String(i)===String(r)}))}function A(t,e){return 0===t.path.replace(_,"/").indexOf(e.path.replace(_,"/"))&&(!e.hash||t.hash===e.hash)&&k(t.query,e.query)}function k(t,e){for(var n in e)if(!(n in t))return!1;return!0}var x,O=[String,Object],S=[String,Array],T={name:"RouterLink",props:{to:{type:O,required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,event:{type:S,default:"click"}},render:function(t){var e=this,n=this.$router,i=this.$route,r=n.resolve(this.to,i,this.append),o=r.location,s=r.route,c=r.href,l={},u=n.options.linkActiveClass,d=n.options.linkExactActiveClass,f=null==u?"router-link-active":u,p=null==d?"router-link-exact-active":d,h=null==this.activeClass?f:this.activeClass,m=null==this.exactActiveClass?p:this.exactActiveClass,_=o.path?v(null,o,null,n):s;l[m]=w(i,_),l[h]=this.exact?l[m]:A(i,_);var g=function(t){z(t)&&(e.replace?n.replace(o):n.push(o))},b={click:z};Array.isArray(this.event)?this.event.forEach((function(t){b[t]=g})):b[this.event]=g;var M={class:l};if("a"===this.tag)M.on=b,M.attrs={href:c};else{var y=C(this.$slots.default);if(y){y.isStatic=!1;var L=y.data=a({},y.data);L.on=b;var k=y.data.attrs=a({},y.data.attrs);k.href=c}else M.on=b}return t(this.tag,M,this.$slots.default)}};function z(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&(void 0===t.button||0===t.button)){if(t.currentTarget&&t.currentTarget.getAttribute){var e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function C(t){if(t)for(var e,n=0;n<t.length;n++){if(e=t[n],"a"===e.tag)return e;if(e.children&&(e=C(e.children)))return e}}function D(t){if(!D.installed||x!==t){D.installed=!0,x=t;var e=function(t){return void 0!==t},n=function(t,n){var i=t.$options._parentVnode;e(i)&&e(i=i.data)&&e(i=i.registerRouteInstance)&&i(t,n)};t.mixin({beforeCreate:function(){e(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),t.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,n(this,this)},destroyed:function(){n(this)}}),Object.defineProperty(t.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(t.prototype,"$route",{get:function(){return this._routerRoot._route}}),t.component("RouterView",o),t.component("RouterLink",T);var i=t.config.optionMergeStrategies;i.beforeRouteEnter=i.beforeRouteLeave=i.beforeRouteUpdate=i.created}}var N="undefined"!==typeof window;function E(t,e,n){var i=t.charAt(0);if("/"===i)return t;if("?"===i||"#"===i)return e+t;var r=e.split("/");n&&r[r.length-1]||r.pop();for(var a=t.replace(/^\//,"").split("/"),o=0;o<a.length;o++){var s=a[o];".."===s?r.pop():"."!==s&&r.push(s)}return""!==r[0]&&r.unshift(""),r.join("/")}function j(t){var e="",n="",i=t.indexOf("#");i>=0&&(e=t.slice(i),t=t.slice(0,i));var r=t.indexOf("?");return r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),{path:t,query:n,hash:e}}function q(t){return t.replace(/\/\//g,"/")}var P=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)},Y=it,B=H,W=R,$=U,I=nt,F=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function H(t,e){var n,i=[],r=0,a=0,o="",s=e&&e.delimiter||"/";while(null!=(n=F.exec(t))){var c=n[0],l=n[1],u=n.index;if(o+=t.slice(a,u),a=u+c.length,l)o+=l[1];else{var d=t[a],f=n[2],p=n[3],h=n[4],m=n[5],_=n[6],v=n[7];o&&(i.push(o),o="");var g=null!=f&&null!=d&&d!==f,b="+"===_||"*"===_,M="?"===_||"*"===_,y=n[2]||s,w=h||m;i.push({name:p||r++,prefix:f||"",delimiter:y,optional:M,repeat:b,partial:g,asterisk:!!v,pattern:w?J(w):v?".*":"[^"+G(y)+"]+?"})}}return a<t.length&&(o+=t.substr(a)),o&&i.push(o),i}function R(t,e){return U(H(t,e))}function X(t){return encodeURI(t).replace(/[\/?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}))}function V(t){return encodeURI(t).replace(/[?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}))}function U(t){for(var e=new Array(t.length),n=0;n<t.length;n++)"object"===typeof t[n]&&(e[n]=new RegExp("^(?:"+t[n].pattern+")$"));return function(n,i){for(var r="",a=n||{},o=i||{},s=o.pretty?X:encodeURIComponent,c=0;c<t.length;c++){var l=t[c];if("string"!==typeof l){var u,d=a[l.name];if(null==d){if(l.optional){l.partial&&(r+=l.prefix);continue}throw new TypeError('Expected "'+l.name+'" to be defined')}if(P(d)){if(!l.repeat)throw new TypeError('Expected "'+l.name+'" to not repeat, but received `'+JSON.stringify(d)+"`");if(0===d.length){if(l.optional)continue;throw new TypeError('Expected "'+l.name+'" to not be empty')}for(var f=0;f<d.length;f++){if(u=s(d[f]),!e[c].test(u))throw new TypeError('Expected all "'+l.name+'" to match "'+l.pattern+'", but received `'+JSON.stringify(u)+"`");r+=(0===f?l.prefix:l.delimiter)+u}}else{if(u=l.asterisk?V(d):s(d),!e[c].test(u))throw new TypeError('Expected "'+l.name+'" to match "'+l.pattern+'", but received "'+u+'"');r+=l.prefix+u}}else r+=l}return r}}function G(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function J(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function K(t,e){return t.keys=e,t}function Q(t){return t.sensitive?"":"i"}function Z(t,e){var n=t.source.match(/\((?!\?)/g);if(n)for(var i=0;i<n.length;i++)e.push({name:i,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return K(t,e)}function tt(t,e,n){for(var i=[],r=0;r<t.length;r++)i.push(it(t[r],e,n).source);var a=new RegExp("(?:"+i.join("|")+")",Q(n));return K(a,e)}function et(t,e,n){return nt(H(t,n),e,n)}function nt(t,e,n){P(e)||(n=e||n,e=[]),n=n||{};for(var i=n.strict,r=!1!==n.end,a="",o=0;o<t.length;o++){var s=t[o];if("string"===typeof s)a+=G(s);else{var c=G(s.prefix),l="(?:"+s.pattern+")";e.push(s),s.repeat&&(l+="(?:"+c+l+")*"),l=s.optional?s.partial?c+"("+l+")?":"(?:"+c+"("+l+"))?":c+"("+l+")",a+=l}}var u=G(n.delimiter||"/"),d=a.slice(-u.length)===u;return i||(a=(d?a.slice(0,-u.length):a)+"(?:"+u+"(?=$))?"),a+=r?"$":i&&d?"":"(?="+u+"|$)",K(new RegExp("^"+a,Q(n)),e)}function it(t,e,n){return P(e)||(n=e||n,e=[]),n=n||{},t instanceof RegExp?Z(t,e):P(t)?tt(t,e,n):et(t,e,n)}Y.parse=B,Y.compile=W,Y.tokensToFunction=$,Y.tokensToRegExp=I;var rt=Object.create(null);function at(t,e,n){e=e||{};try{var i=rt[t]||(rt[t]=Y.compile(t));return e.pathMatch&&(e[0]=e.pathMatch),i(e,{pretty:!0})}catch(r){return""}finally{delete e[0]}}function ot(t,e,n,i){var r=e||[],a=n||Object.create(null),o=i||Object.create(null);t.forEach((function(t){st(r,a,o,t)}));for(var s=0,c=r.length;s<c;s++)"*"===r[s]&&(r.push(r.splice(s,1)[0]),c--,s--);return{pathList:r,pathMap:a,nameMap:o}}function st(t,e,n,i,r,a){var o=i.path,s=i.name;var c=i.pathToRegexpOptions||{},l=lt(o,r,c.strict);"boolean"===typeof i.caseSensitive&&(c.sensitive=i.caseSensitive);var u={path:l,regex:ct(l,c),components:i.components||{default:i.component},instances:{},name:s,parent:r,matchAs:a,redirect:i.redirect,beforeEnter:i.beforeEnter,meta:i.meta||{},props:null==i.props?{}:i.components?i.props:{default:i.props}};if(i.children&&i.children.forEach((function(i){var r=a?q(a+"/"+i.path):void 0;st(t,e,n,i,u,r)})),void 0!==i.alias){var d=Array.isArray(i.alias)?i.alias:[i.alias];d.forEach((function(a){var o={path:a,children:i.children};st(t,e,n,o,r,u.path||"/")}))}e[u.path]||(t.push(u.path),e[u.path]=u),s&&(n[s]||(n[s]=u))}function ct(t,e){var n=Y(t,[],e);return n}function lt(t,e,n){return n||(t=t.replace(/\/$/,"")),"/"===t[0]||null==e?t:q(e.path+"/"+t)}function ut(t,e,n,i){var r="string"===typeof t?{path:t}:t;if(r._normalized)return r;if(r.name)return a({},t);if(!r.path&&r.params&&e){r=a({},r),r._normalized=!0;var o=a(a({},e.params),r.params);if(e.name)r.name=e.name,r.params=o;else if(e.matched.length){var s=e.matched[e.matched.length-1].path;r.path=at(s,o,"path "+e.path)}else 0;return r}var c=j(r.path||""),l=e&&e.path||"/",u=c.path?E(c.path,l,n||r.append):l,d=p(c.query,r.query,i&&i.options.parseQuery),f=r.hash||c.hash;return f&&"#"!==f.charAt(0)&&(f="#"+f),{_normalized:!0,path:u,query:d,hash:f}}function dt(t,e){var n=ot(t),i=n.pathList,r=n.pathMap,a=n.nameMap;function o(t){ot(t,i,r,a)}function s(t,n,o){var s=ut(t,n,!1,e),c=s.name;if(c){var l=a[c];if(!l)return u(null,s);var d=l.regex.keys.filter((function(t){return!t.optional})).map((function(t){return t.name}));if("object"!==typeof s.params&&(s.params={}),n&&"object"===typeof n.params)for(var f in n.params)!(f in s.params)&&d.indexOf(f)>-1&&(s.params[f]=n.params[f]);return s.path=at(l.path,s.params,'named route "'+c+'"'),u(l,s,o)}if(s.path){s.params={};for(var p=0;p<i.length;p++){var h=i[p],m=r[h];if(ft(m.regex,s.path,s.params))return u(m,s,o)}}return u(null,s)}function c(t,n){var i=t.redirect,r="function"===typeof i?i(v(t,n,null,e)):i;if("string"===typeof r&&(r={path:r}),!r||"object"!==typeof r)return u(null,n);var o=r,c=o.name,l=o.path,d=n.query,f=n.hash,p=n.params;if(d=o.hasOwnProperty("query")?o.query:d,f=o.hasOwnProperty("hash")?o.hash:f,p=o.hasOwnProperty("params")?o.params:p,c){a[c];return s({_normalized:!0,name:c,query:d,hash:f,params:p},void 0,n)}if(l){var h=pt(l,t),m=at(h,p,'redirect route with path "'+h+'"');return s({_normalized:!0,path:m,query:d,hash:f},void 0,n)}return u(null,n)}function l(t,e,n){var i=at(n,e.params,'aliased route with path "'+n+'"'),r=s({_normalized:!0,path:i});if(r){var a=r.matched,o=a[a.length-1];return e.params=r.params,u(o,e)}return u(null,e)}function u(t,n,i){return t&&t.redirect?c(t,i||n):t&&t.matchAs?l(t,n,t.matchAs):v(t,n,i,e)}return{match:s,addRoutes:o}}function ft(t,e,n){var i=e.match(t);if(!i)return!1;if(!n)return!0;for(var r=1,a=i.length;r<a;++r){var o=t.keys[r-1],s="string"===typeof i[r]?decodeURIComponent(i[r]):i[r];o&&(n[o.name||"pathMatch"]=s)}return!0}function pt(t,e){return E(t,e.parent?e.parent.path:"/",!0)}var ht=Object.create(null);function mt(){var t=window.location.protocol+"//"+window.location.host,e=window.location.href.replace(t,"");window.history.replaceState({key:Tt()},"",e),window.addEventListener("popstate",(function(t){vt(),t.state&&t.state.key&&zt(t.state.key)}))}function _t(t,e,n,i){if(t.app){var r=t.options.scrollBehavior;r&&t.app.$nextTick((function(){var a=gt(),o=r.call(t,e,n,i?a:null);o&&("function"===typeof o.then?o.then((function(t){At(t,a)})).catch((function(t){0})):At(o,a))}))}}function vt(){var t=Tt();t&&(ht[t]={x:window.pageXOffset,y:window.pageYOffset})}function gt(){var t=Tt();if(t)return ht[t]}function bt(t,e){var n=document.documentElement,i=n.getBoundingClientRect(),r=t.getBoundingClientRect();return{x:r.left-i.left-e.x,y:r.top-i.top-e.y}}function Mt(t){return Lt(t.x)||Lt(t.y)}function yt(t){return{x:Lt(t.x)?t.x:window.pageXOffset,y:Lt(t.y)?t.y:window.pageYOffset}}function wt(t){return{x:Lt(t.x)?t.x:0,y:Lt(t.y)?t.y:0}}function Lt(t){return"number"===typeof t}function At(t,e){var n="object"===typeof t;if(n&&"string"===typeof t.selector){var i=document.querySelector(t.selector);if(i){var r=t.offset&&"object"===typeof t.offset?t.offset:{};r=wt(r),e=bt(i,r)}else Mt(t)&&(e=yt(t))}else n&&Mt(t)&&(e=yt(t));e&&window.scrollTo(e.x,e.y)}var kt=N&&function(){var t=window.navigator.userAgent;return(-1===t.indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)}(),xt=N&&window.performance&&window.performance.now?window.performance:Date,Ot=St();function St(){return xt.now().toFixed(3)}function Tt(){return Ot}function zt(t){Ot=t}function Ct(t,e){vt();var n=window.history;try{console.log("update the history")}catch(i){window.location[e?"replace":"assign"](t)}}function Dt(t){Ct(t,!0)}function Nt(t,e,n){var i=function(r){r>=t.length?n():t[r]?e(t[r],(function(){i(r+1)})):i(r+1)};i(0)}function Et(t){return function(e,n,i){var a=!1,o=0,s=null;jt(t,(function(t,e,n,c){if("function"===typeof t&&void 0===t.cid){a=!0,o++;var l,u=Bt((function(e){Yt(e)&&(e=e.default),t.resolved="function"===typeof e?e:x.extend(e),n.components[c]=e,o--,o<=0&&i()})),d=Bt((function(t){var e="Failed to resolve async component "+c+": "+t;s||(s=r(t)?t:new Error(e),i(s))}));try{l=t(u,d)}catch(p){d(p)}if(l)if("function"===typeof l.then)l.then(u,d);else{var f=l.component;f&&"function"===typeof f.then&&f.then(u,d)}}})),a||i()}}function jt(t,e){return qt(t.map((function(t){return Object.keys(t.components).map((function(n){return e(t.components[n],t.instances[n],t,n)}))})))}function qt(t){return Array.prototype.concat.apply([],t)}var Pt="function"===typeof Symbol&&"symbol"===typeof Symbol.toStringTag;function Yt(t){return t.__esModule||Pt&&"Module"===t[Symbol.toStringTag]}function Bt(t){var e=!1;return function(){var n=[],i=arguments.length;while(i--)n[i]=arguments[i];if(!e)return e=!0,t.apply(this,n)}}var Wt=function(t,e){this.router=t,this.base=$t(e),this.current=b,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[]};function $t(t){if(!t)if(N){var e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^https?:\/\/[^\/]+/,"")}else t="/";return"/"!==t.charAt(0)&&(t="/"+t),t.replace(/\/$/,"")}function It(t,e){var n,i=Math.max(t.length,e.length);for(n=0;n<i;n++)if(t[n]!==e[n])break;return{updated:e.slice(0,n),activated:e.slice(n),deactivated:t.slice(n)}}function Ft(t,e,n,i){var r=jt(t,(function(t,i,r,a){var o=Ht(t,e);if(o)return Array.isArray(o)?o.map((function(t){return n(t,i,r,a)})):n(o,i,r,a)}));return qt(i?r.reverse():r)}function Ht(t,e){return"function"!==typeof t&&(t=x.extend(t)),t.options[e]}function Rt(t){return Ft(t,"beforeRouteLeave",Vt,!0)}function Xt(t){return Ft(t,"beforeRouteUpdate",Vt)}function Vt(t,e){if(e)return function(){return t.apply(e,arguments)}}function Ut(t,e,n){return Ft(t,"beforeRouteEnter",(function(t,i,r,a){return Gt(t,r,a,e,n)}))}function Gt(t,e,n,i,r){return function(a,o,s){return t(a,o,(function(t){"function"===typeof t&&i.push((function(){Jt(t,e.instances,n,r)})),s(t)}))}}function Jt(t,e,n,i){e[n]&&!e[n]._isBeingDestroyed?t(e[n]):i()&&setTimeout((function(){Jt(t,e,n,i)}),16)}Wt.prototype.listen=function(t){this.cb=t},Wt.prototype.onReady=function(t,e){this.ready?t():(this.readyCbs.push(t),e&&this.readyErrorCbs.push(e))},Wt.prototype.onError=function(t){this.errorCbs.push(t)},Wt.prototype.transitionTo=function(t,e,n){var i=this,r=this.router.match(t,this.current);this.confirmTransition(r,(function(){i.updateRoute(r),e&&e(r),i.ensureURL(),i.ready||(i.ready=!0,i.readyCbs.forEach((function(t){t(r)})))}),(function(t){n&&n(t),t&&!i.ready&&(i.ready=!0,i.readyErrorCbs.forEach((function(e){e(t)})))}))},Wt.prototype.confirmTransition=function(t,e,n){var a=this,o=this.current,s=function(t){r(t)&&(a.errorCbs.length?a.errorCbs.forEach((function(e){e(t)})):(i(!1,"uncaught error during route navigation:"),console.error(t))),n&&n(t)};if(w(t,o)&&t.matched.length===o.matched.length)return this.ensureURL(),s();var c=It(this.current.matched,t.matched),l=c.updated,u=c.deactivated,d=c.activated,f=[].concat(Rt(u),this.router.beforeHooks,Xt(l),d.map((function(t){return t.beforeEnter})),Et(d));this.pending=t;var p=function(e,n){if(a.pending!==t)return s();try{e(t,o,(function(t){!1===t||r(t)?(a.ensureURL(!0),s(t)):"string"===typeof t||"object"===typeof t&&("string"===typeof t.path||"string"===typeof t.name)?(s(),"object"===typeof t&&t.replace?a.replace(t):a.push(t)):n(t)}))}catch(i){s(i)}};Nt(f,p,(function(){var n=[],i=function(){return a.current===t},r=Ut(d,n,i),o=r.concat(a.router.resolveHooks);Nt(o,p,(function(){if(a.pending!==t)return s();a.pending=null,e(t),a.router.app&&a.router.app.$nextTick((function(){n.forEach((function(t){t()}))}))}))}))},Wt.prototype.updateRoute=function(t){var e=this.current;this.current=t,this.cb&&this.cb(t),this.router.afterHooks.forEach((function(n){n&&n(t,e)}))};var Kt=function(t){function e(e,n){var i=this;t.call(this,e,n);var r=e.options.scrollBehavior,a=kt&&r;a&&mt();var o=Qt(this.base);window.addEventListener("popstate",(function(t){var n=i.current,r=Qt(i.base);i.current===b&&r===o||i.transitionTo(r,(function(t){a&&_t(e,t,n,!0)}))}))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.go=function(t){window.history.go(t)},e.prototype.push=function(t,e,n){var i=this,r=this,a=r.current;this.transitionTo(t,(function(t){Ct(q(i.base+t.fullPath)),_t(i.router,t,a,!1),e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var i=this,r=this,a=r.current;this.transitionTo(t,(function(t){Dt(q(i.base+t.fullPath)),_t(i.router,t,a,!1),e&&e(t)}),n)},e.prototype.ensureURL=function(t){if(Qt(this.base)!==this.current.fullPath){var e=q(this.base+this.current.fullPath);t?Ct(e):Dt(e)}},e.prototype.getCurrentLocation=function(){return Qt(this.base)},e}(Wt);function Qt(t){var e=decodeURI(window.location.pathname);return t&&0===e.indexOf(t)&&(e=e.slice(t.length)),(e||"/")+window.location.search+window.location.hash}var Zt=function(t){function e(e,n,i){t.call(this,e,n),i&&te(this.base)||ee()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setupListeners=function(){var t=this,e=this.router,n=e.options.scrollBehavior,i=kt&&n;i&&mt(),window.addEventListener(kt?"popstate":"hashchange",(function(){var e=t.current;ee()&&t.transitionTo(ne(),(function(n){i&&_t(t.router,n,e,!0),kt||ae(n.fullPath)}))}))},e.prototype.push=function(t,e,n){var i=this,r=this,a=r.current;this.transitionTo(t,(function(t){re(t.fullPath),_t(i.router,t,a,!1),e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var i=this,r=this,a=r.current;this.transitionTo(t,(function(t){ae(t.fullPath),_t(i.router,t,a,!1),e&&e(t)}),n)},e.prototype.go=function(t){window.history.go(t)},e.prototype.ensureURL=function(t){var e=this.current.fullPath;ne()!==e&&(t?re(e):ae(e))},e.prototype.getCurrentLocation=function(){return ne()},e}(Wt);function te(t){var e=Qt(t);if(!/^\/#/.test(e))return window.location.replace(q(t+"/#"+e)),!0}function ee(){var t=ne();return"/"===t.charAt(0)||(ae("/"+t),!1)}function ne(){var t=window.location.href,e=t.indexOf("#");if(e<0)return"";t=t.slice(e+1);var n=t.indexOf("?");if(n<0){var i=t.indexOf("#");t=i>-1?decodeURI(t.slice(0,i))+t.slice(i):decodeURI(t)}else n>-1&&(t=decodeURI(t.slice(0,n))+t.slice(n));return t}function ie(t){var e=window.location.href,n=e.indexOf("#"),i=n>=0?e.slice(0,n):e;return i+"#"+t}function re(t){kt?Ct(ie(t)):window.location.hash=t}function ae(t){kt?Dt(ie(t)):window.location.replace(ie(t))}var oe=function(t){function e(e,n){t.call(this,e,n),this.stack=[],this.index=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(t,e,n){var i=this;this.transitionTo(t,(function(t){i.stack=i.stack.slice(0,i.index+1).concat(t),i.index++,e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var i=this;this.transitionTo(t,(function(t){i.stack=i.stack.slice(0,i.index).concat(t),e&&e(t)}),n)},e.prototype.go=function(t){var e=this,n=this.index+t;if(!(n<0||n>=this.stack.length)){var i=this.stack[n];this.confirmTransition(i,(function(){e.index=n,e.updateRoute(i)}))}},e.prototype.getCurrentLocation=function(){var t=this.stack[this.stack.length-1];return t?t.fullPath:"/"},e.prototype.ensureURL=function(){},e}(Wt),se=function(t){void 0===t&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=dt(t.routes||[],this);var e=t.mode||"hash";switch(this.fallback="history"===e&&!kt&&!1!==t.fallback,this.fallback&&(e="hash"),N||(e="abstract"),this.mode=e,e){case"history":this.history=new Kt(this,t.base);break;case"hash":this.history=new Zt(this,t.base,this.fallback);break;case"abstract":this.history=new oe(this,t.base);break;default:0}},ce={currentRoute:{configurable:!0}};function le(t,e){return t.push(e),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function ue(t,e,n){var i="hash"===n?"#"+e:e;return t?q(t+"/"+i):i}se.prototype.match=function(t,e,n){return this.matcher.match(t,e,n)},ce.currentRoute.get=function(){return this.history&&this.history.current},se.prototype.init=function(t){var e=this;if(this.apps.push(t),t.$once("hook:destroyed",(function(){var n=e.apps.indexOf(t);n>-1&&e.apps.splice(n,1),e.app===t&&(e.app=e.apps[0]||null)})),!this.app){this.app=t;var n=this.history;if(n instanceof Kt)n.transitionTo(n.getCurrentLocation());else if(n instanceof Zt){var i=function(){n.setupListeners()};n.transitionTo(n.getCurrentLocation(),i,i)}n.listen((function(t){e.apps.forEach((function(e){e._route=t}))}))}},se.prototype.beforeEach=function(t){return le(this.beforeHooks,t)},se.prototype.beforeResolve=function(t){return le(this.resolveHooks,t)},se.prototype.afterEach=function(t){return le(this.afterHooks,t)},se.prototype.onReady=function(t,e){this.history.onReady(t,e)},se.prototype.onError=function(t){this.history.onError(t)},se.prototype.push=function(t,e,n){this.history.push(t,e,n)},se.prototype.replace=function(t,e,n){this.history.replace(t,e,n)},se.prototype.go=function(t){this.history.go(t)},se.prototype.back=function(){this.go(-1)},se.prototype.forward=function(){this.go(1)},se.prototype.getMatchedComponents=function(t){var e=t?t.matched?t:this.resolve(t).route:this.currentRoute;return e?[].concat.apply([],e.matched.map((function(t){return Object.keys(t.components).map((function(e){return t.components[e]}))}))):[]},se.prototype.resolve=function(t,e,n){e=e||this.history.current;var i=ut(t,e,n,this),r=this.match(i,e),a=r.redirectedFrom||r.fullPath,o=this.history.base,s=ue(o,a,this.mode);return{location:i,route:r,href:s,normalizedTo:i,resolved:r}},se.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==b&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(se.prototype,ce),se.install=D,se.version="3.0.7",N&&window.Vue&&window.Vue.use(se),e["a"]=se},,,,,,,,,,,,,,function(t,e,n){var i=n(21),r=n(880);i({target:"Number",stat:!0},{isInteger:r})},,,,,,,,,,,function(t,e,n){(function(e){
/** /**
* vue-paginate v3.5.0 * vue-paginate v3.5.0
* (c) 2017 Taha Shashtari * (c) 2017 Taha Shashtari
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment