Commit b6daa190 authored by 萌萌哒SAKURA酱's avatar 萌萌哒SAKURA酱

Upgrading dependencies.

parent 33d30b39
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
/**
* vue-router v3.0.1
* (c) 2017 Evan You
* @license MIT
*/
! function(t, e) { "object" == typeof exports && "undefined" != typeof module ? module.exports = e() : "function" == typeof define && define.amd ? define(e) : t.VueRouter = e() }(this, function() {
"use strict";
function t(t, e) {}
function e(t) { return Object.prototype.toString.call(t).indexOf("Error") > -1 }
function r(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
}
}
function n(t, e) { for (var r in e) t[r] = e[r]; return t }
function o(t, e, r) { void 0 === e && (e = {}); var n, o = r || i; try { n = o(t || "") } catch (t) { n = {} } for (var a in e) n[a] = e[a]; return n }
function i(t) {
var e = {};
return (t = t.trim().replace(/^(\?|#|&)/, "")) ? (t.split("&").forEach(function(t) {
var r = t.replace(/\+/g, " ").split("="),
n = Ut(r.shift()),
o = r.length > 0 ? Ut(r.join("=")) : null;
void 0 === e[n] ? e[n] = o : Array.isArray(e[n]) ? e[n].push(o) : e[n] = [e[n], o]
}), e) : e
}
function a(t) { var e = t ? Object.keys(t).map(function(e) { var r = t[e]; if (void 0 === r) return ""; if (null === r) return Pt(e); if (Array.isArray(r)) { var n = []; return r.forEach(function(t) { void 0 !== t && (null === t ? n.push(Pt(e)) : n.push(Pt(e) + "=" + Pt(t))) }), n.join("&") } return Pt(e) + "=" + Pt(r) }).filter(function(t) { return t.length > 0 }).join("&") : null; return e ? "?" + e : "" }
function u(t, e, r, n) {
var o = n && n.options.stringifyQuery,
i = e.query || {};
try { i = c(i) } catch (t) {}
var a = { name: e.name || t && t.name, meta: t && t.meta || {}, path: e.path || "/", hash: e.hash || "", query: i, params: e.params || {}, fullPath: p(e, o), matched: t ? s(t) : [] };
return r && (a.redirectedFrom = p(r, o)), Object.freeze(a)
}
function c(t) { if (Array.isArray(t)) return t.map(c); if (t && "object" == typeof t) { var e = {}; for (var r in t) e[r] = c(t[r]); return e } return t }
function s(t) { for (var e = []; t;) e.unshift(t), t = t.parent; return e }
function p(t, e) {
var r = t.path,
n = t.query;
void 0 === n && (n = {});
var o = t.hash;
void 0 === o && (o = "");
var i = e || a;
return (r || "/") + i(n) + o
}
function f(t, e) { return e === Ht ? t === e : !!e && (t.path && e.path ? t.path.replace(Mt, "") === e.path.replace(Mt, "") && t.hash === e.hash && h(t.query, e.query) : !(!t.name || !e.name) && (t.name === e.name && t.hash === e.hash && h(t.query, e.query) && h(t.params, e.params))) }
function h(t, e) {
if (void 0 === t && (t = {}), void 0 === e && (e = {}), !t || !e) return t === e;
var r = Object.keys(t),
n = Object.keys(e);
return r.length === n.length && r.every(function(r) {
var n = t[r],
o = e[r];
return "object" == typeof n && "object" == typeof o ? h(n, o) : String(n) === String(o)
})
}
function l(t, e) { return 0 === t.path.replace(Mt, "/").indexOf(e.path.replace(Mt, "/")) && (!e.hash || t.hash === e.hash) && d(t.query, e.query) }
function d(t, e) {
for (var r in e)
if (!(r in t)) return !1;
return !0
}
function y(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 v(t) {
if (t)
for (var e, r = 0; r < t.length; r++) { if ("a" === (e = t[r]).tag) return e; if (e.children && (e = v(e.children))) return e }
}
function m(t) {
if (!m.installed || Tt !== t) {
m.installed = !0, Tt = t;
var e = function(t) { return void 0 !== t },
r = function(t, r) {
var n = t.$options._parentVnode;
e(n) && e(n = n.data) && e(n = n.registerRouteInstance) && n(t, r)
};
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, r(this, this) }, destroyed: function() { r(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("router-view", St), t.component("router-link", zt);
var n = t.config.optionMergeStrategies;
n.beforeRouteEnter = n.beforeRouteLeave = n.beforeRouteUpdate = n.created
}
}
function g(t, e, r) {
var n = t.charAt(0);
if ("/" === n) return t;
if ("?" === n || "#" === n) return e + t;
var o = e.split("/");
r && o[o.length - 1] || o.pop();
for (var i = t.replace(/^\//, "").split("/"), a = 0; a < i.length; a++) { var u = i[a]; ".." === u ? o.pop() : "." !== u && o.push(u) }
return "" !== o[0] && o.unshift(""), o.join("/")
}
function b(t) {
var e = "",
r = "",
n = t.indexOf("#");
n >= 0 && (e = t.slice(n), t = t.slice(0, n));
var o = t.indexOf("?");
return o >= 0 && (r = t.slice(o + 1), t = t.slice(0, o)), { path: t, query: r, hash: e }
}
function w(t) { return t.replace(/\/\//g, "/") }
function x(t, e) {
for (var r, n = [], o = 0, i = 0, a = "", u = e && e.delimiter || "/"; null != (r = Qt.exec(t));) {
var c = r[0],
s = r[1],
p = r.index;
if (a += t.slice(i, p), i = p + c.length, s) a += s[1];
else {
var f = t[i],
h = r[2],
l = r[3],
d = r[4],
y = r[5],
v = r[6],
m = r[7];
a && (n.push(a), a = "");
var g = null != h && null != f && f !== h,
b = "+" === v || "*" === v,
w = "?" === v || "*" === v,
x = r[2] || u,
k = d || y;
n.push({ name: l || o++, prefix: h || "", delimiter: x, optional: w, repeat: b, partial: g, asterisk: !!m, pattern: k ? C(k) : m ? ".*" : "[^" + O(x) + "]+?" })
}
}
return i < t.length && (a += t.substr(i)), a && n.push(a), n
}
function k(t) { return encodeURI(t).replace(/[\/?#]/g, function(t) { return "%" + t.charCodeAt(0).toString(16).toUpperCase() }) }
function R(t) { return encodeURI(t).replace(/[?#]/g, function(t) { return "%" + t.charCodeAt(0).toString(16).toUpperCase() }) }
function E(t) {
for (var e = new Array(t.length), r = 0; r < t.length; r++) "object" == typeof t[r] && (e[r] = new RegExp("^(?:" + t[r].pattern + ")$"));
return function(r, n) {
for (var o = "", i = r || {}, a = (n || {}).pretty ? k : encodeURIComponent, u = 0; u < t.length; u++) {
var c = t[u];
if ("string" != typeof c) {
var s, p = i[c.name];
if (null == p) { if (c.optional) { c.partial && (o += c.prefix); continue } throw new TypeError('Expected "' + c.name + '" to be defined') }
if (Ft(p)) {
if (!c.repeat) throw new TypeError('Expected "' + c.name + '" to not repeat, but received `' + JSON.stringify(p) + "`");
if (0 === p.length) { if (c.optional) continue; throw new TypeError('Expected "' + c.name + '" to not be empty') }
for (var f = 0; f < p.length; f++) {
if (s = a(p[f]), !e[u].test(s)) throw new TypeError('Expected all "' + c.name + '" to match "' + c.pattern + '", but received `' + JSON.stringify(s) + "`");
o += (0 === f ? c.prefix : c.delimiter) + s
}
} else {
if (s = c.asterisk ? R(p) : a(p), !e[u].test(s)) throw new TypeError('Expected "' + c.name + '" to match "' + c.pattern + '", but received "' + s + '"');
o += c.prefix + s
}
} else o += c
}
return o
}
}
function O(t) { return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g, "\\$1") }
function C(t) { return t.replace(/([=!:$\/()])/g, "\\$1") }
function j(t, e) { return t.keys = e, t }
function A(t) { return t.sensitive ? "" : "i" }
function _(t, e) {
var r = t.source.match(/\((?!\?)/g);
if (r)
for (var n = 0; n < r.length; n++) e.push({ name: n, prefix: null, delimiter: null, optional: !1, repeat: !1, partial: !1, asterisk: !1, pattern: null });
return j(t, e)
}
function T(t, e, r) { for (var n = [], o = 0; o < t.length; o++) n.push(q(t[o], e, r).source); return j(new RegExp("(?:" + n.join("|") + ")", A(r)), e) }
function S(t, e, r) { return $(x(t, r), e, r) }
function $(t, e, r) {
Ft(e) || (r = e || r, e = []);
for (var n = (r = r || {}).strict, o = !1 !== r.end, i = "", a = 0; a < t.length; a++) {
var u = t[a];
if ("string" == typeof u) i += O(u);
else {
var c = O(u.prefix),
s = "(?:" + u.pattern + ")";
e.push(u), u.repeat && (s += "(?:" + c + s + ")*"), i += s = u.optional ? u.partial ? c + "(" + s + ")?" : "(?:" + c + "(" + s + "))?" : c + "(" + s + ")"
}
}
var p = O(r.delimiter || "/"),
f = i.slice(-p.length) === p;
return n || (i = (f ? i.slice(0, -p.length) : i) + "(?:" + p + "(?=$))?"), i += o ? "$" : n && f ? "" : "(?=" + p + "|$)", j(new RegExp("^" + i, A(r)), e)
}
function q(t, e, r) { return Ft(e) || (r = e || r, e = []), r = r || {}, t instanceof RegExp ? _(t, e) : Ft(t) ? T(t, e, r) : S(t, e, r) }
function L(t, e, r) { try { return (Xt[t] || (Xt[t] = Dt.compile(t)))(e || {}, { pretty: !0 }) } catch (t) { return "" } }
function P(t, e, r, n) {
var o = e || [],
i = r || Object.create(null),
a = n || Object.create(null);
t.forEach(function(t) { U(o, i, a, t) });
for (var u = 0, c = o.length; u < c; u++) "*" === o[u] && (o.push(o.splice(u, 1)[0]), c--, u--);
return { pathList: o, pathMap: i, nameMap: a }
}
function U(t, e, r, n, o, i) {
var a = n.path,
u = n.name,
c = n.pathToRegexpOptions || {},
s = H(a, o, c.strict);
"boolean" == typeof n.caseSensitive && (c.sensitive = n.caseSensitive);
var p = { path: s, regex: M(s, c), components: n.components || { default: n.component }, instances: {}, name: u, parent: o, matchAs: i, redirect: n.redirect, beforeEnter: n.beforeEnter, meta: n.meta || {}, props: null == n.props ? {} : n.components ? n.props : { default: n.props } };
n.children && n.children.forEach(function(n) {
var o = i ? w(i + "/" + n.path) : void 0;
U(t, e, r, n, p, o)
}), void 0 !== n.alias && (Array.isArray(n.alias) ? n.alias : [n.alias]).forEach(function(i) {
var a = { path: i, children: n.children };
U(t, e, r, a, o, p.path || "/")
}), e[p.path] || (t.push(p.path), e[p.path] = p), u && (r[u] || (r[u] = p))
}
function M(t, e) { return Dt(t, [], e) }
function H(t, e, r) { return r || (t = t.replace(/\/$/, "")), "/" === t[0] ? t : null == e ? t : w(e.path + "/" + t) }
function I(t, e, r, n) {
var i = "string" == typeof t ? { path: t } : t;
if (i.name || i._normalized) return i;
if (!i.path && i.params && e) {
(i = V({}, i))._normalized = !0;
var a = V(V({}, e.params), i.params);
if (e.name) i.name = e.name, i.params = a;
else if (e.matched.length) {
var u = e.matched[e.matched.length - 1].path;
i.path = L(u, a, "path " + e.path)
}
return i
}
var c = b(i.path || ""),
s = e && e.path || "/",
p = c.path ? g(c.path, s, r || i.append) : s,
f = o(c.query, i.query, n && n.options.parseQuery),
h = i.hash || c.hash;
return h && "#" !== h.charAt(0) && (h = "#" + h), { _normalized: !0, path: p, query: f, hash: h }
}
function V(t, e) { for (var r in e) t[r] = e[r]; return t }
function z(t, e) {
function r(t, r, n) {
var o = I(t, r, !1, e),
a = o.name;
if (a) {
var u = p[a];
if (!u) return i(null, o);
var f = u.regex.keys.filter(function(t) { return !t.optional }).map(function(t) { return t.name });
if ("object" != typeof o.params && (o.params = {}), r && "object" == typeof r.params)
for (var h in r.params) !(h in o.params) && f.indexOf(h) > -1 && (o.params[h] = r.params[h]);
if (u) return o.path = L(u.path, o.params, 'named route "' + a + '"'), i(u, o, n)
} else if (o.path) {
o.params = {};
for (var l = 0; l < c.length; l++) {
var d = c[l],
y = s[d];
if (B(y.regex, o.path, o.params)) return i(y, o, n)
}
}
return i(null, o)
}
function n(t, n) {
var o = t.redirect,
a = "function" == typeof o ? o(u(t, n, null, e)) : o;
if ("string" == typeof a && (a = { path: a }), !a || "object" != typeof a) return i(null, n);
var c = a,
s = c.name,
p = c.path,
f = n.query,
h = n.hash,
l = n.params;
if (f = c.hasOwnProperty("query") ? c.query : f, h = c.hasOwnProperty("hash") ? c.hash : h, l = c.hasOwnProperty("params") ? c.params : l, s) return r({ _normalized: !0, name: s, query: f, hash: h, params: l }, void 0, n);
if (p) { var d = F(p, t); return r({ _normalized: !0, path: L(d, l, 'redirect route with path "' + d + '"'), query: f, hash: h }, void 0, n) }
return i(null, n)
}
function o(t, e, n) {
var o = r({ _normalized: !0, path: L(n, e.params, 'aliased route with path "' + n + '"') });
if (o) {
var a = o.matched,
u = a[a.length - 1];
return e.params = o.params, i(u, e)
}
return i(null, e)
}
function i(t, r, i) { return t && t.redirect ? n(t, i || r) : t && t.matchAs ? o(t, r, t.matchAs) : u(t, r, i, e) }
var a = P(t),
c = a.pathList,
s = a.pathMap,
p = a.nameMap;
return { match: r, addRoutes: function(t) { P(t, c, s, p) } }
}
function B(t, e, r) {
var n = e.match(t);
if (!n) return !1;
if (!r) return !0;
for (var o = 1, i = n.length; o < i; ++o) {
var a = t.keys[o - 1],
u = "string" == typeof n[o] ? decodeURIComponent(n[o]) : n[o];
a && (r[a.name] = u)
}
return !0
}
function F(t, e) { return g(t, e.parent ? e.parent.path : "/", !0) }
function D() { window.history.replaceState({ key: et() }, ""), window.addEventListener("popstate", function(t) { J(), t.state && t.state.key && rt(t.state.key) }) }
function K(t, e, r, n) {
if (t.app) {
var o = t.options.scrollBehavior;
o && t.app.$nextTick(function() {
var t = N(),
i = o(e, r, n ? t : null);
i && ("function" == typeof i.then ? i.then(function(e) { Z(e, t) }).catch(function(t) {}) : Z(i, t))
})
}
}
function J() {
var t = et();
t && (Yt[t] = { x: window.pageXOffset, y: window.pageYOffset })
}
function N() { var t = et(); if (t) return Yt[t] }
function Q(t, e) {
var r = document.documentElement.getBoundingClientRect(),
n = t.getBoundingClientRect();
return { x: n.left - r.left - e.x, y: n.top - r.top - e.y }
}
function X(t) { return G(t.x) || G(t.y) }
function Y(t) { return { x: G(t.x) ? t.x : window.pageXOffset, y: G(t.y) ? t.y : window.pageYOffset } }
function W(t) { return { x: G(t.x) ? t.x : 0, y: G(t.y) ? t.y : 0 } }
function G(t) { return "number" == typeof t }
function Z(t, e) {
var r = "object" == typeof t;
if (r && "string" == typeof t.selector) {
var n = document.querySelector(t.selector);
if (n) {
var o = t.offset && "object" == typeof t.offset ? t.offset : {};
e = Q(n, o = W(o))
} else X(t) && (e = Y(t))
} else r && X(t) && (e = Y(t));
e && window.scrollTo(e.x, e.y)
}
function tt() { return Gt.now().toFixed(3) }
function et() { return Zt }
function rt(t) { Zt = t }
function nt(t, e) { J(); var r = window.history; try { e ? r.replaceState({ key: Zt }, "", t) : (Zt = tt(), r.pushState({ key: Zt }, "", t)) } catch (r) { window.location[e ? "replace" : "assign"](t) } }
function ot(t) { nt(t, !0) }
function it(t, e, r) {
var n = function(o) { o >= t.length ? r() : t[o] ? e(t[o], function() { n(o + 1) }) : n(o + 1) };
n(0)
}
function at(t) {
return function(r, n, o) {
var i = !1,
a = 0,
u = null;
ut(t, function(t, r, n, c) {
if ("function" == typeof t && void 0 === t.cid) {
i = !0, a++;
var s, p = pt(function(e) { st(e) && (e = e.default), t.resolved = "function" == typeof e ? e : Tt.extend(e), n.components[c] = e, --a <= 0 && o() }),
f = pt(function(t) {
var r = "Failed to resolve async component " + c + ": " + t;
u || (u = e(t) ? t : new Error(r), o(u))
});
try { s = t(p, f) } catch (t) { f(t) }
if (s)
if ("function" == typeof s.then) s.then(p, f);
else {
var h = s.component;
h && "function" == typeof h.then && h.then(p, f)
}
}
}), i || o()
}
}
function ut(t, e) { return ct(t.map(function(t) { return Object.keys(t.components).map(function(r) { return e(t.components[r], t.instances[r], t, r) }) })) }
function ct(t) { return Array.prototype.concat.apply([], t) }
function st(t) { return t.__esModule || te && "Module" === t[Symbol.toStringTag] }
function pt(t) { var e = !1; return function() { for (var r = [], n = arguments.length; n--;) r[n] = arguments[n]; if (!e) return e = !0, t.apply(this, r) } }
function ft(t) {
if (!t)
if (Bt) {
var e = document.querySelector("base");
t = (t = e && e.getAttribute("href") || "/").replace(/^https?:\/\/[^\/]+/, "")
} else t = "/";
return "/" !== t.charAt(0) && (t = "/" + t), t.replace(/\/$/, "")
}
function ht(t, e) { var r, n = Math.max(t.length, e.length); for (r = 0; r < n && t[r] === e[r]; r++); return { updated: e.slice(0, r), activated: e.slice(r), deactivated: t.slice(r) } }
function lt(t, e, r, n) { var o = ut(t, function(t, n, o, i) { var a = dt(t, e); if (a) return Array.isArray(a) ? a.map(function(t) { return r(t, n, o, i) }) : r(a, n, o, i) }); return ct(n ? o.reverse() : o) }
function dt(t, e) { return "function" != typeof t && (t = Tt.extend(t)), t.options[e] }
function yt(t) { return lt(t, "beforeRouteLeave", mt, !0) }
function vt(t) { return lt(t, "beforeRouteUpdate", mt) }
function mt(t, e) { if (e) return function() { return t.apply(e, arguments) } }
function gt(t, e, r) { return lt(t, "beforeRouteEnter", function(t, n, o, i) { return bt(t, o, i, e, r) }) }
function bt(t, e, r, n, o) { return function(i, a, u) { return t(i, a, function(t) { u(t), "function" == typeof t && n.push(function() { wt(t, e.instances, r, o) }) }) } }
function wt(t, e, r, n) { e[r] ? t(e[r]) : n() && setTimeout(function() { wt(t, e, r, n) }, 16) }
function xt(t) { var e = window.location.pathname; return t && 0 === e.indexOf(t) && (e = e.slice(t.length)), (e || "/") + window.location.search + window.location.hash }
function kt(t) { var e = xt(t); if (!/^\/#/.test(e)) return window.location.replace(w(t + "/#" + e)), !0 }
function Rt() { var t = Et(); return "/" === t.charAt(0) || (jt("/" + t), !1) }
function Et() {
var t = window.location.href,
e = t.indexOf("#");
return -1 === e ? "" : t.slice(e + 1)
}
function Ot(t) {
var e = window.location.href,
r = e.indexOf("#");
return (r >= 0 ? e.slice(0, r) : e) + "#" + t
}
function Ct(t) { Wt ? nt(Ot(t)) : window.location.hash = t }
function jt(t) { Wt ? ot(Ot(t)) : window.location.replace(Ot(t)) }
function At(t, e) {
return t.push(e),
function() {
var r = t.indexOf(e);
r > -1 && t.splice(r, 1)
}
}
function _t(t, e, r) { var n = "hash" === r ? "#" + e : e; return t ? w(t + "/" + n) : n }
var Tt, St = {
name: "router-view",
functional: !0,
props: { name: { type: String, default: "default" } },
render: function(t, e) {
var o = e.props,
i = e.children,
a = e.parent,
u = e.data;
u.routerView = !0;
for (var c = a.$createElement, s = o.name, p = a.$route, f = a._routerViewCache || (a._routerViewCache = {}), h = 0, l = !1; a && a._routerRoot !== a;) a.$vnode && a.$vnode.data.routerView && h++, a._inactive && (l = !0), a = a.$parent;
if (u.routerViewDepth = h, l) return c(f[s], u, i);
var d = p.matched[h];
if (!d) return f[s] = null, c();
var y = f[s] = d.components[s];
u.registerRouteInstance = function(t, e) {
var r = d.instances[s];
(e && r !== t || !e && r === t) && (d.instances[s] = e)
}, (u.hook || (u.hook = {})).prepatch = function(t, e) { d.instances[s] = e.componentInstance };
var v = u.props = r(p, d.props && d.props[s]);
if (v) { v = u.props = n({}, v); var m = u.attrs = u.attrs || {}; for (var g in v) y.props && g in y.props || (m[g] = v[g], delete v[g]) }
return c(y, u, i)
}
},
$t = /[!'()*]/g,
qt = function(t) { return "%" + t.charCodeAt(0).toString(16) },
Lt = /%2C/g,
Pt = function(t) { return encodeURIComponent(t).replace($t, qt).replace(Lt, ",") },
Ut = decodeURIComponent,
Mt = /\/?$/,
Ht = u(null, { path: "/" }),
It = [String, Object],
Vt = [String, Array],
zt = {
name: "router-link",
props: { to: { type: It, required: !0 }, tag: { type: String, default: "a" }, exact: Boolean, append: Boolean, replace: Boolean, activeClass: String, exactActiveClass: String, event: { type: Vt, default: "click" } },
render: function(t) {
var e = this,
r = this.$router,
n = this.$route,
o = r.resolve(this.to, n, this.append),
i = o.location,
a = o.route,
c = o.href,
s = {},
p = r.options.linkActiveClass,
h = r.options.linkExactActiveClass,
d = null == p ? "router-link-active" : p,
m = null == h ? "router-link-exact-active" : h,
g = null == this.activeClass ? d : this.activeClass,
b = null == this.exactActiveClass ? m : this.exactActiveClass,
w = i.path ? u(null, i, null, r) : a;
s[b] = f(n, w), s[g] = this.exact ? s[b] : l(n, w);
var x = function(t) { y(t) && (e.replace ? r.replace(i) : r.push(i)) },
k = { click: y };
Array.isArray(this.event) ? this.event.forEach(function(t) { k[t] = x }) : k[this.event] = x;
var R = { class: s };
if ("a" === this.tag) R.on = k, R.attrs = { href: c };
else {
var E = v(this.$slots.default);
if (E) {
E.isStatic = !1;
var O = Tt.util.extend;
(E.data = O({}, E.data)).on = k, (E.data.attrs = O({}, E.data.attrs)).href = c
} else R.on = k
}
return t(this.tag, R, this.$slots.default)
}
},
Bt = "undefined" != typeof window,
Ft = Array.isArray || function(t) { return "[object Array]" == Object.prototype.toString.call(t) },
Dt = q,
Kt = x,
Jt = E,
Nt = $,
Qt = new RegExp(["(\\\\.)", "([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"), "g");
Dt.parse = Kt, Dt.compile = function(t, e) { return E(x(t, e)) }, Dt.tokensToFunction = Jt, Dt.tokensToRegExp = Nt;
var Xt = Object.create(null),
Yt = Object.create(null),
Wt = Bt && 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) }(),
Gt = Bt && window.performance && window.performance.now ? window.performance : Date,
Zt = tt(),
te = "function" == typeof Symbol && "symbol" == typeof Symbol.toStringTag,
ee = function(t, e) { this.router = t, this.base = ft(e), this.current = Ht, this.pending = null, this.ready = !1, this.readyCbs = [], this.readyErrorCbs = [], this.errorCbs = [] };
ee.prototype.listen = function(t) { this.cb = t }, ee.prototype.onReady = function(t, e) { this.ready ? t() : (this.readyCbs.push(t), e && this.readyErrorCbs.push(e)) }, ee.prototype.onError = function(t) { this.errorCbs.push(t) }, ee.prototype.transitionTo = function(t, e, r) {
var n = this,
o = this.router.match(t, this.current);
this.confirmTransition(o, function() { n.updateRoute(o), e && e(o), n.ensureURL(), n.ready || (n.ready = !0, n.readyCbs.forEach(function(t) { t(o) })) }, function(t) { r && r(t), t && !n.ready && (n.ready = !0, n.readyErrorCbs.forEach(function(e) { e(t) })) })
}, ee.prototype.confirmTransition = function(r, n, o) {
var i = this,
a = this.current,
u = function(r) { e(r) && (i.errorCbs.length ? i.errorCbs.forEach(function(t) { t(r) }) : (t(!1, "uncaught error during route navigation:"), console.error(r))), o && o(r) };
if (f(r, a) && r.matched.length === a.matched.length) return this.ensureURL(), u();
var c = ht(this.current.matched, r.matched),
s = c.updated,
p = c.deactivated,
h = c.activated,
l = [].concat(yt(p), this.router.beforeHooks, vt(s), h.map(function(t) { return t.beforeEnter }), at(h));
this.pending = r;
var d = function(t, n) { if (i.pending !== r) return u(); try { t(r, a, function(t) {!1 === t || e(t) ? (i.ensureURL(!0), u(t)) : "string" == typeof t || "object" == typeof t && ("string" == typeof t.path || "string" == typeof t.name) ? (u(), "object" == typeof t && t.replace ? i.replace(t) : i.push(t)) : n(t) }) } catch (t) { u(t) } };
it(l, d, function() {
var t = [];
it(gt(h, t, function() { return i.current === r }).concat(i.router.resolveHooks), d, function() {
if (i.pending !== r) return u();
i.pending = null, n(r), i.router.app && i.router.app.$nextTick(function() { t.forEach(function(t) { t() }) })
})
})
}, ee.prototype.updateRoute = function(t) {
var e = this.current;
this.current = t, this.cb && this.cb(t), this.router.afterHooks.forEach(function(r) { r && r(t, e) })
};
var re = function(t) {
function e(e, r) {
var n = this;
t.call(this, e, r);
var o = e.options.scrollBehavior;
o && D();
var i = xt(this.base);
window.addEventListener("popstate", function(t) {
var r = n.current,
a = xt(n.base);
n.current === Ht && a === i || n.transitionTo(a, function(t) { o && K(e, t, r, !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, r) {
var n = this,
o = this.current;
this.transitionTo(t, function(t) { nt(w(n.base + t.fullPath)), K(n.router, t, o, !1), e && e(t) }, r)
}, e.prototype.replace = function(t, e, r) {
var n = this,
o = this.current;
this.transitionTo(t, function(t) { ot(w(n.base + t.fullPath)), K(n.router, t, o, !1), e && e(t) }, r)
}, e.prototype.ensureURL = function(t) {
if (xt(this.base) !== this.current.fullPath) {
var e = w(this.base + this.current.fullPath);
t ? nt(e) : ot(e)
}
}, e.prototype.getCurrentLocation = function() { return xt(this.base) }, e
}(ee),
ne = function(t) {
function e(e, r, n) { t.call(this, e, r), n && kt(this.base) || Rt() }
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.options.scrollBehavior,
r = Wt && e;
r && D(), window.addEventListener(Wt ? "popstate" : "hashchange", function() {
var e = t.current;
Rt() && t.transitionTo(Et(), function(n) { r && K(t.router, n, e, !0), Wt || jt(n.fullPath) })
})
}, e.prototype.push = function(t, e, r) {
var n = this,
o = this.current;
this.transitionTo(t, function(t) { Ct(t.fullPath), K(n.router, t, o, !1), e && e(t) }, r)
}, e.prototype.replace = function(t, e, r) {
var n = this,
o = this.current;
this.transitionTo(t, function(t) { jt(t.fullPath), K(n.router, t, o, !1), e && e(t) }, r)
}, e.prototype.go = function(t) { window.history.go(t) }, e.prototype.ensureURL = function(t) {
var e = this.current.fullPath;
Et() !== e && (t ? Ct(e) : jt(e))
}, e.prototype.getCurrentLocation = function() { return Et() }, e
}(ee),
oe = function(t) {
function e(e, r) { t.call(this, e, r), 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, r) {
var n = this;
this.transitionTo(t, function(t) { n.stack = n.stack.slice(0, n.index + 1).concat(t), n.index++, e && e(t) }, r)
}, e.prototype.replace = function(t, e, r) {
var n = this;
this.transitionTo(t, function(t) { n.stack = n.stack.slice(0, n.index).concat(t), e && e(t) }, r)
}, e.prototype.go = function(t) {
var e = this,
r = this.index + t;
if (!(r < 0 || r >= this.stack.length)) {
var n = this.stack[r];
this.confirmTransition(n, function() { e.index = r, e.updateRoute(n) })
}
}, e.prototype.getCurrentLocation = function() { var t = this.stack[this.stack.length - 1]; return t ? t.fullPath : "/" }, e.prototype.ensureURL = function() {}, e
}(ee),
ie = function(t) {
void 0 === t && (t = {}), this.app = null, this.apps = [], this.options = t, this.beforeHooks = [], this.resolveHooks = [], this.afterHooks = [], this.matcher = z(t.routes || [], this);
var e = t.mode || "hash";
switch (this.fallback = "history" === e && !Wt && !1 !== t.fallback, this.fallback && (e = "hash"), Bt || (e = "abstract"), this.mode = e, e) {
case "history":
this.history = new re(this, t.base);
break;
case "hash":
this.history = new ne(this, t.base, this.fallback);
break;
case "abstract":
this.history = new oe(this, t.base)
}
},
ae = { currentRoute: { configurable: !0 } };
return ie.prototype.match = function(t, e, r) { return this.matcher.match(t, e, r) }, ae.currentRoute.get = function() { return this.history && this.history.current }, ie.prototype.init = function(t) {
var e = this;
if (this.apps.push(t), !this.app) {
this.app = t;
var r = this.history;
if (r instanceof re) r.transitionTo(r.getCurrentLocation());
else if (r instanceof ne) {
var n = function() { r.setupListeners() };
r.transitionTo(r.getCurrentLocation(), n, n)
}
r.listen(function(t) { e.apps.forEach(function(e) { e._route = t }) })
}
}, ie.prototype.beforeEach = function(t) { return At(this.beforeHooks, t) }, ie.prototype.beforeResolve = function(t) { return At(this.resolveHooks, t) }, ie.prototype.afterEach = function(t) { return At(this.afterHooks, t) }, ie.prototype.onReady = function(t, e) { this.history.onReady(t, e) }, ie.prototype.onError = function(t) { this.history.onError(t) }, ie.prototype.push = function(t, e, r) { this.history.push(t, e, r) }, ie.prototype.replace = function(t, e, r) { this.history.replace(t, e, r) }, ie.prototype.go = function(t) { this.history.go(t) }, ie.prototype.back = function() { this.go(-1) }, ie.prototype.forward = function() { this.go(1) }, ie.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] }) })) : [] }, ie.prototype.resolve = function(t, e, r) {
var n = I(t, e || this.history.current, r, this),
o = this.match(n, e),
i = o.redirectedFrom || o.fullPath;
return { location: n, route: o, href: _t(this.history.base, i, this.mode), normalizedTo: n, resolved: o }
}, ie.prototype.addRoutes = function(t) { this.matcher.addRoutes(t), this.history.current !== Ht && this.history.transitionTo(this.history.getCurrentLocation()) }, Object.defineProperties(ie.prototype, ae), ie.install = m, ie.version = "3.0.1", Bt && window.Vue && window.Vue.use(ie), ie
});
\ No newline at end of file
/*!
* vue-router v3.0.2
* (c) 2018 Evan You
* @license MIT
*/
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.VueRouter=e()}(this,function(){"use strict";function l(t){return-1<Object.prototype.toString.call(t).indexOf("Error")}function k(t,e){for(var r in e)t[r]=e[r];return t}var i={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(t,e){var r=e.props,n=e.children,o=e.parent,i=e.data;i.routerView=!0;for(var a=o.$createElement,u=r.name,c=o.$route,s=o._routerViewCache||(o._routerViewCache={}),p=0,f=!1;o&&o._routerRoot!==o;)o.$vnode&&o.$vnode.data.routerView&&p++,o._inactive&&(f=!0),o=o.$parent;if(i.routerViewDepth=p,f)return a(s[u],i,n);var h=c.matched[p];if(!h)return s[u]=null,a();var l=s[u]=h.components[u];i.registerRouteInstance=function(t,e){var r=h.instances[u];(e&&r!==t||!e&&r===t)&&(h.instances[u]=e)},(i.hook||(i.hook={})).prepatch=function(t,e){h.instances[u]=e.componentInstance};var d=i.props=function(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}}(c,h.props&&h.props[u]);if(d){d=i.props=k({},d);var y=i.attrs=i.attrs||{};for(var v in d)l.props&&v in l.props||(y[v]=d[v],delete d[v])}return a(l,i,n)}};var e=/[!'()*]/g,r=function(t){return"%"+t.charCodeAt(0).toString(16)},n=/%2C/g,o=function(t){return encodeURIComponent(t).replace(e,r).replace(n,",")},a=decodeURIComponent;function h(t){var o={};return(t=t.trim().replace(/^(\?|#|&)/,""))&&t.split("&").forEach(function(t){var e=t.replace(/\+/g," ").split("="),r=a(e.shift()),n=0<e.length?a(e.join("=")):null;void 0===o[r]?o[r]=n:Array.isArray(o[r])?o[r].push(n):o[r]=[o[r],n]}),o}function u(n){var t=n?Object.keys(n).map(function(e){var t=n[e];if(void 0===t)return"";if(null===t)return o(e);if(Array.isArray(t)){var r=[];return t.forEach(function(t){void 0!==t&&(null===t?r.push(o(e)):r.push(o(e)+"="+o(t)))}),r.join("&")}return o(e)+"="+o(t)}).filter(function(t){return 0<t.length}).join("&"):null;return t?"?"+t:""}var R=/\/?$/;function E(t,e,r,n){var o=n&&n.options.stringifyQuery,i=e.query||{};try{i=c(i)}catch(t){}var a={name:e.name||t&&t.name,meta:t&&t.meta||{},path:e.path||"/",hash:e.hash||"",query:i,params:e.params||{},fullPath:p(e,o),matched:t?function(t){var e=[];for(;t;)e.unshift(t),t=t.parent;return e}(t):[]};return r&&(a.redirectedFrom=p(r,o)),Object.freeze(a)}function c(t){if(Array.isArray(t))return t.map(c);if(t&&"object"==typeof t){var e={};for(var r in t)e[r]=c(t[r]);return e}return t}var s=E(null,{path:"/"});function p(t,e){var r=t.path,n=t.query;void 0===n&&(n={});var o=t.hash;return void 0===o&&(o=""),(r||"/")+(e||u)(n)+o}function O(t,e){return e===s?t===e:!!e&&(t.path&&e.path?t.path.replace(R,"")===e.path.replace(R,"")&&t.hash===e.hash&&f(t.query,e.query):!(!t.name||!e.name)&&(t.name===e.name&&t.hash===e.hash&&f(t.query,e.query)&&f(t.params,e.params)))}function f(n,o){if(void 0===n&&(n={}),void 0===o&&(o={}),!n||!o)return n===o;var t=Object.keys(n),e=Object.keys(o);return t.length===e.length&&t.every(function(t){var e=n[t],r=o[t];return"object"==typeof e&&"object"==typeof r?f(e,r):String(e)===String(r)})}var d,t=[String,Object],y=[String,Array],v={name:"RouterLink",props:{to:{type:t,required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,event:{type:y,default:"click"}},render:function(t){var e,r,n=this,o=this.$router,i=this.$route,a=o.resolve(this.to,i,this.append),u=a.location,c=a.route,s=a.href,p={},f=o.options.linkActiveClass,h=o.options.linkExactActiveClass,l=null==f?"router-link-active":f,d=null==h?"router-link-exact-active":h,y=null==this.activeClass?l:this.activeClass,v=null==this.exactActiveClass?d:this.exactActiveClass,m=u.path?E(null,u,null,o):c;p[v]=O(i,m),p[y]=this.exact?p[v]:(r=m,0===(e=i).path.replace(R,"/").indexOf(r.path.replace(R,"/"))&&(!r.hash||e.hash===r.hash)&&function(t,e){for(var r in e)if(!(r in t))return!1;return!0}(e.query,r.query));var g=function(t){C(t)&&(n.replace?o.replace(u):o.push(u))},b={click:C};Array.isArray(this.event)?this.event.forEach(function(t){b[t]=g}):b[this.event]=g;var w={class:p};if("a"===this.tag)w.on=b,w.attrs={href:s};else{var x=function t(e){if(e)for(var r,n=0;n<e.length;n++){if("a"===(r=e[n]).tag)return r;if(r.children&&(r=t(r.children)))return r}}(this.$slots.default);if(x)x.isStatic=!1,(x.data=k({},x.data)).on=b,(x.data.attrs=k({},x.data.attrs)).href=s;else w.on=b}return t(this.tag,w,this.$slots.default)}};function C(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}}var m="undefined"!=typeof window;function g(t,e,r){var n=t.charAt(0);if("/"===n)return t;if("?"===n||"#"===n)return e+t;var o=e.split("/");r&&o[o.length-1]||o.pop();for(var i=t.replace(/^\//,"").split("/"),a=0;a<i.length;a++){var u=i[a];".."===u?o.pop():"."!==u&&o.push(u)}return""!==o[0]&&o.unshift(""),o.join("/")}function b(t){return t.replace(/\/\//g,"/")}var w=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)},x=V,j=$,A=function(t,e){return q($(t,e))},_=q,T=M,S=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function $(t,e){for(var r,n,o=[],i=0,a=0,u="",c=e&&e.delimiter||"/";null!=(r=S.exec(t));){var s=r[0],p=r[1],f=r.index;if(u+=t.slice(a,f),a=f+s.length,p)u+=p[1];else{var h=t[a],l=r[2],d=r[3],y=r[4],v=r[5],m=r[6],g=r[7];u&&(o.push(u),u="");var b=null!=l&&null!=h&&h!==l,w="+"===m||"*"===m,x="?"===m||"*"===m,k=r[2]||c,R=y||v;o.push({name:d||i++,prefix:l||"",delimiter:k,optional:x,repeat:w,partial:b,asterisk:!!g,pattern:R?(n=R,n.replace(/([=!:$\/()])/g,"\\$1")):g?".*":"[^"+P(k)+"]+?"})}}return a<t.length&&(u+=t.substr(a)),u&&o.push(u),o}function L(t){return encodeURI(t).replace(/[\/?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function q(p){for(var f=new Array(p.length),t=0;t<p.length;t++)"object"==typeof p[t]&&(f[t]=new RegExp("^(?:"+p[t].pattern+")$"));return function(t,e){for(var r="",n=t||{},o=(e||{}).pretty?L:encodeURIComponent,i=0;i<p.length;i++){var a=p[i];if("string"!=typeof a){var u,c=n[a.name];if(null==c){if(a.optional){a.partial&&(r+=a.prefix);continue}throw new TypeError('Expected "'+a.name+'" to be defined')}if(w(c)){if(!a.repeat)throw new TypeError('Expected "'+a.name+'" to not repeat, but received `'+JSON.stringify(c)+"`");if(0===c.length){if(a.optional)continue;throw new TypeError('Expected "'+a.name+'" to not be empty')}for(var s=0;s<c.length;s++){if(u=o(c[s]),!f[i].test(u))throw new TypeError('Expected all "'+a.name+'" to match "'+a.pattern+'", but received `'+JSON.stringify(u)+"`");r+=(0===s?a.prefix:a.delimiter)+u}}else{if(u=a.asterisk?encodeURI(c).replace(/[?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}):o(c),!f[i].test(u))throw new TypeError('Expected "'+a.name+'" to match "'+a.pattern+'", but received "'+u+'"');r+=a.prefix+u}}else r+=a}return r}}function P(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function U(t,e){return t.keys=e,t}function I(t){return t.sensitive?"":"i"}function M(t,e,r){w(e)||(r=e||r,e=[]);for(var n=(r=r||{}).strict,o=!1!==r.end,i="",a=0;a<t.length;a++){var u=t[a];if("string"==typeof u)i+=P(u);else{var c=P(u.prefix),s="(?:"+u.pattern+")";e.push(u),u.repeat&&(s+="(?:"+c+s+")*"),i+=s=u.optional?u.partial?c+"("+s+")?":"(?:"+c+"("+s+"))?":c+"("+s+")"}}var p=P(r.delimiter||"/"),f=i.slice(-p.length)===p;return n||(i=(f?i.slice(0,-p.length):i)+"(?:"+p+"(?=$))?"),i+=o?"$":n&&f?"":"(?="+p+"|$)",U(new RegExp("^"+i,I(r)),e)}function V(t,e,r){return w(e)||(r=e||r,e=[]),r=r||{},t instanceof RegExp?function(t,e){var r=t.source.match(/\((?!\?)/g);if(r)for(var n=0;n<r.length;n++)e.push({name:n,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return U(t,e)}(t,e):w(t)?function(t,e,r){for(var n=[],o=0;o<t.length;o++)n.push(V(t[o],e,r).source);return U(new RegExp("(?:"+n.join("|")+")",I(r)),e)}(t,e,r):(n=e,M($(t,o=r),n,o));var n,o}x.parse=j,x.compile=A,x.tokensToFunction=_,x.tokensToRegExp=T;var B=Object.create(null);function H(t,e,r){try{return(B[t]||(B[t]=x.compile(t)))(e||{},{pretty:!0})}catch(t){return""}}function z(t,e,r,n){var o=e||[],i=r||Object.create(null),a=n||Object.create(null);t.forEach(function(t){!function r(n,o,i,a,u,c){var t=a.path;var e=a.name;var s=a.pathToRegexpOptions||{};var p=function(t,e,r){r||(t=t.replace(/\/$/,""));if("/"===t[0])return t;if(null==e)return t;return b(e.path+"/"+t)}(t,u,s.strict);"boolean"==typeof a.caseSensitive&&(s.sensitive=a.caseSensitive);var f={path:p,regex:(h=p,l=s,x(h,[],l)),components:a.components||{default:a.component},instances:{},name:e,parent:u,matchAs:c,redirect:a.redirect,beforeEnter:a.beforeEnter,meta:a.meta||{},props:null==a.props?{}:a.components?a.props:{default:a.props}};var h,l;a.children&&a.children.forEach(function(t){var e=c?b(c+"/"+t.path):void 0;r(n,o,i,t,f,e)});if(void 0!==a.alias){var d=Array.isArray(a.alias)?a.alias:[a.alias];d.forEach(function(t){var e={path:t,children:a.children};r(n,o,i,e,u,f.path||"/")})}o[f.path]||(n.push(f.path),o[f.path]=f);e&&(i[e]||(i[e]=f))}(o,i,a,t)});for(var u=0,c=o.length;u<c;u++)"*"===o[u]&&(o.push(o.splice(u,1)[0]),c--,u--);return{pathList:o,pathMap:i,nameMap:a}}function D(t,e,r,n){var o="string"==typeof t?{path:t}:t;if(o.name||o._normalized)return o;if(!o.path&&o.params&&e){(o=k({},o))._normalized=!0;var i=k(k({},e.params),o.params);if(e.name)o.name=e.name,o.params=i;else if(e.matched.length){var a=e.matched[e.matched.length-1].path;o.path=H(a,i,e.path)}return o}var u=function(t){var e="",r="",n=t.indexOf("#");0<=n&&(e=t.slice(n),t=t.slice(0,n));var o=t.indexOf("?");return 0<=o&&(r=t.slice(o+1),t=t.slice(0,o)),{path:t,query:r,hash:e}}(o.path||""),c=e&&e.path||"/",s=u.path?g(u.path,c,r||o.append):c,p=function(t,e,r){void 0===e&&(e={});var n,o=r||h;try{n=o(t||"")}catch(t){n={}}for(var i in e)n[i]=e[i];return n}(u.query,o.query,n&&n.options.parseQuery),f=o.hash||u.hash;return f&&"#"!==f.charAt(0)&&(f="#"+f),{_normalized:!0,path:s,query:p,hash:f}}function F(t,h){var e=z(t),f=e.pathList,l=e.pathMap,d=e.nameMap;function y(t,e,r){var n=D(t,e,!1,h),o=n.name;if(o){var i=d[o];if(!i)return v(null,n);var a=i.regex.keys.filter(function(t){return!t.optional}).map(function(t){return t.name});if("object"!=typeof n.params&&(n.params={}),e&&"object"==typeof e.params)for(var u in e.params)!(u in n.params)&&-1<a.indexOf(u)&&(n.params[u]=e.params[u]);if(i)return n.path=H(i.path,n.params),v(i,n,r)}else if(n.path){n.params={};for(var c=0;c<f.length;c++){var s=f[c],p=l[s];if(K(p.regex,n.path,n.params))return v(p,n,r)}}return v(null,n)}function n(t,e){var r=t.redirect,n="function"==typeof r?r(E(t,e,null,h)):r;if("string"==typeof n&&(n={path:n}),!n||"object"!=typeof n)return v(null,e);var o,i=n,a=i.name,u=i.path,c=e.query,s=e.hash,p=e.params;if(c=i.hasOwnProperty("query")?i.query:c,s=i.hasOwnProperty("hash")?i.hash:s,p=i.hasOwnProperty("params")?i.params:p,a){d[a];return y({_normalized:!0,name:a,query:c,hash:s,params:p},void 0,e)}if(u){var f=g(u,(o=t).parent?o.parent.path:"/",!0);return y({_normalized:!0,path:H(f,p),query:c,hash:s},void 0,e)}return v(null,e)}function v(t,e,r){return t&&t.redirect?n(t,r||e):t&&t.matchAs?function(t,e,r){var n=y({_normalized:!0,path:H(r,e.params)});if(n){var o=n.matched,i=o[o.length-1];return e.params=n.params,v(i,e)}return v(null,e)}(0,e,t.matchAs):E(t,e,r,h)}return{match:y,addRoutes:function(t){z(t,f,l,d)}}}function K(t,e,r){var n=e.match(t);if(!n)return!1;if(!r)return!0;for(var o=1,i=n.length;o<i;++o){var a=t.keys[o-1],u="string"==typeof n[o]?decodeURIComponent(n[o]):n[o];a&&(r[a.name||"pathMatch"]=u)}return!0}var J=Object.create(null);function N(){window.history.replaceState({key:it()},"",window.location.href.replace(window.location.origin,"")),window.addEventListener("popstate",function(t){var e;X(),t.state&&t.state.key&&(e=t.state.key,nt=e)})}function Q(r,n,o,i){if(r.app){var a=r.options.scrollBehavior;a&&r.app.$nextTick(function(){var e=function(){var t=it();if(t)return J[t]}(),t=a.call(r,n,o,i?e:null);t&&("function"==typeof t.then?t.then(function(t){Z(t,e)}).catch(function(t){}):Z(t,e))})}}function X(){var t=it();t&&(J[t]={x:window.pageXOffset,y:window.pageYOffset})}function Y(t){return G(t.x)||G(t.y)}function W(t){return{x:G(t.x)?t.x:window.pageXOffset,y:G(t.y)?t.y:window.pageYOffset}}function G(t){return"number"==typeof t}function Z(t,e){var r,n,o,i,a,u="object"==typeof t;if(u&&"string"==typeof t.selector){var c=document.querySelector(t.selector);if(c){var s=t.offset&&"object"==typeof t.offset?t.offset:{};s={x:G((a=s).x)?a.x:0,y:G(a.y)?a.y:0},r=c,n=s,o=document.documentElement.getBoundingClientRect(),e={x:(i=r.getBoundingClientRect()).left-o.left-n.x,y:i.top-o.top-n.y}}else Y(t)&&(e=W(t))}else u&&Y(t)&&(e=W(t));e&&window.scrollTo(e.x,e.y)}var tt,et=m&&((-1===(tt=window.navigator.userAgent).indexOf("Android 2.")&&-1===tt.indexOf("Android 4.0")||-1===tt.indexOf("Mobile Safari")||-1!==tt.indexOf("Chrome")||-1!==tt.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history),rt=m&&window.performance&&window.performance.now?window.performance:Date,nt=ot();function ot(){return rt.now().toFixed(3)}function it(){return nt}function at(e,r){X();var t=window.history;try{r?t.replaceState({key:nt},"",e):(nt=ot(),t.pushState({key:nt},"",e))}catch(t){window.location[r?"replace":"assign"](e)}}function ut(t){at(t,!0)}function ct(e,r,n){var o=function(t){t>=e.length?n():e[t]?r(e[t],function(){o(t+1)}):o(t+1)};o(0)}function st(r){return function(t,e,c){var s=!1,p=0,f=null;pt(r,function(r,t,n,o){if("function"==typeof r&&void 0===r.cid){s=!0,p++;var e,i=lt(function(t){var e;((e=t).__esModule||ht&&"Module"===e[Symbol.toStringTag])&&(t=t.default),r.resolved="function"==typeof t?t:d.extend(t),n.components[o]=t,--p<=0&&c()}),a=lt(function(t){var e="Failed to resolve async component "+o+": "+t;f||(f=l(t)?t:new Error(e),c(f))});try{e=r(i,a)}catch(t){a(t)}if(e)if("function"==typeof e.then)e.then(i,a);else{var u=e.component;u&&"function"==typeof u.then&&u.then(i,a)}}}),s||c()}}function pt(t,r){return ft(t.map(function(e){return Object.keys(e.components).map(function(t){return r(e.components[t],e.instances[t],e,t)})}))}function ft(t){return Array.prototype.concat.apply([],t)}var ht="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function lt(r){var n=!1;return function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];if(!n)return n=!0,r.apply(this,t)}}var dt=function(t,e){this.router=t,this.base=function(t){if(!t)if(m){var e=document.querySelector("base");t=(t=e&&e.getAttribute("href")||"/").replace(/^https?:\/\/[^\/]+/,"")}else t="/";"/"!==t.charAt(0)&&(t="/"+t);return t.replace(/\/$/,"")}(e),this.current=s,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[]};function yt(t,i,a,e){var r=pt(t,function(t,e,r,n){var o=function(t,e){"function"!=typeof t&&(t=d.extend(t));return t.options[e]}(t,i);if(o)return Array.isArray(o)?o.map(function(t){return a(t,e,r,n)}):a(o,e,r,n)});return ft(e?r.reverse():r)}function vt(t,e){if(e)return function(){return t.apply(e,arguments)}}dt.prototype.listen=function(t){this.cb=t},dt.prototype.onReady=function(t,e){this.ready?t():(this.readyCbs.push(t),e&&this.readyErrorCbs.push(e))},dt.prototype.onError=function(t){this.errorCbs.push(t)},dt.prototype.transitionTo=function(t,e,r){var n=this,o=this.router.match(t,this.current);this.confirmTransition(o,function(){n.updateRoute(o),e&&e(o),n.ensureURL(),n.ready||(n.ready=!0,n.readyCbs.forEach(function(t){t(o)}))},function(e){r&&r(e),e&&!n.ready&&(n.ready=!0,n.readyErrorCbs.forEach(function(t){t(e)}))})},dt.prototype.confirmTransition=function(r,e,t){var n=this,o=this.current,i=function(e){l(e)&&(n.errorCbs.length?n.errorCbs.forEach(function(t){t(e)}):console.error(e)),t&&t(e)};if(O(r,o)&&r.matched.length===o.matched.length)return this.ensureURL(),i();var a=function(t,e){var r,n=Math.max(t.length,e.length);for(r=0;r<n&&t[r]===e[r];r++);return{updated:e.slice(0,r),activated:e.slice(r),deactivated:t.slice(r)}}(this.current.matched,r.matched),u=a.updated,c=a.deactivated,f=a.activated,s=[].concat(yt(c,"beforeRouteLeave",vt,!0),this.router.beforeHooks,yt(u,"beforeRouteUpdate",vt),f.map(function(t){return t.beforeEnter}),st(f));this.pending=r;var h=function(t,e){if(n.pending!==r)return i();try{t(r,o,function(t){!1===t||l(t)?(n.ensureURL(!0),i(t)):"string"==typeof t||"object"==typeof t&&("string"==typeof t.path||"string"==typeof t.name)?(i(),"object"==typeof t&&t.replace?n.replace(t):n.push(t)):e(t)})}catch(t){i(t)}};ct(s,h,function(){var s,p,t=[];ct((s=t,p=function(){return n.current===r},yt(f,"beforeRouteEnter",function(t,e,r,n){return o=t,i=r,a=n,u=s,c=p,function(t,e,r){return o(t,e,function(t){r(t),"function"==typeof t&&u.push(function(){!function t(e,r,n,o){r[n]&&!r[n]._isBeingDestroyed?e(r[n]):o()&&setTimeout(function(){t(e,r,n,o)},16)}(t,i.instances,a,c)})})};var o,i,a,u,c})).concat(n.router.resolveHooks),h,function(){if(n.pending!==r)return i();n.pending=null,e(r),n.router.app&&n.router.app.$nextTick(function(){t.forEach(function(t){t()})})})})},dt.prototype.updateRoute=function(e){var r=this.current;this.current=e,this.cb&&this.cb(e),this.router.afterHooks.forEach(function(t){t&&t(e,r)})};var mt=function(r){function t(n,t){var o=this;r.call(this,n,t);var e=n.options.scrollBehavior,i=et&&e;i&&N();var a=gt(this.base);window.addEventListener("popstate",function(t){var e=o.current,r=gt(o.base);o.current===s&&r===a||o.transitionTo(r,function(t){i&&Q(n,t,e,!0)})})}return r&&(t.__proto__=r),((t.prototype=Object.create(r&&r.prototype)).constructor=t).prototype.go=function(t){window.history.go(t)},t.prototype.push=function(t,e,r){var n=this,o=this.current;this.transitionTo(t,function(t){at(b(n.base+t.fullPath)),Q(n.router,t,o,!1),e&&e(t)},r)},t.prototype.replace=function(t,e,r){var n=this,o=this.current;this.transitionTo(t,function(t){ut(b(n.base+t.fullPath)),Q(n.router,t,o,!1),e&&e(t)},r)},t.prototype.ensureURL=function(t){if(gt(this.base)!==this.current.fullPath){var e=b(this.base+this.current.fullPath);t?at(e):ut(e)}},t.prototype.getCurrentLocation=function(){return gt(this.base)},t}(dt);function gt(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 bt=function(n){function t(t,e,r){n.call(this,t,e),r&&function(t){var e=gt(t);if(!/^\/#/.test(e))return window.location.replace(b(t+"/#"+e)),!0}(this.base)||wt()}return n&&(t.__proto__=n),((t.prototype=Object.create(n&&n.prototype)).constructor=t).prototype.setupListeners=function(){var r=this,t=this.router.options.scrollBehavior,n=et&&t;n&&N(),window.addEventListener(et?"popstate":"hashchange",function(){var e=r.current;wt()&&r.transitionTo(xt(),function(t){n&&Q(r.router,t,e,!0),et||Et(t.fullPath)})})},t.prototype.push=function(t,e,r){var n=this,o=this.current;this.transitionTo(t,function(t){Rt(t.fullPath),Q(n.router,t,o,!1),e&&e(t)},r)},t.prototype.replace=function(t,e,r){var n=this,o=this.current;this.transitionTo(t,function(t){Et(t.fullPath),Q(n.router,t,o,!1),e&&e(t)},r)},t.prototype.go=function(t){window.history.go(t)},t.prototype.ensureURL=function(t){var e=this.current.fullPath;xt()!==e&&(t?Rt(e):Et(e))},t.prototype.getCurrentLocation=function(){return xt()},t}(dt);function wt(){var t=xt();return"/"===t.charAt(0)||(Et("/"+t),!1)}function xt(){var t=window.location.href,e=t.indexOf("#");return-1===e?"":decodeURI(t.slice(e+1))}function kt(t){var e=window.location.href,r=e.indexOf("#");return(0<=r?e.slice(0,r):e)+"#"+t}function Rt(t){et?at(kt(t)):window.location.hash=t}function Et(t){et?ut(kt(t)):window.location.replace(kt(t))}var Ot=function(r){function t(t,e){r.call(this,t,e),this.stack=[],this.index=-1}return r&&(t.__proto__=r),((t.prototype=Object.create(r&&r.prototype)).constructor=t).prototype.push=function(t,e,r){var n=this;this.transitionTo(t,function(t){n.stack=n.stack.slice(0,n.index+1).concat(t),n.index++,e&&e(t)},r)},t.prototype.replace=function(t,e,r){var n=this;this.transitionTo(t,function(t){n.stack=n.stack.slice(0,n.index).concat(t),e&&e(t)},r)},t.prototype.go=function(t){var e=this,r=this.index+t;if(!(r<0||r>=this.stack.length)){var n=this.stack[r];this.confirmTransition(n,function(){e.index=r,e.updateRoute(n)})}},t.prototype.getCurrentLocation=function(){var t=this.stack[this.stack.length-1];return t?t.fullPath:"/"},t.prototype.ensureURL=function(){},t}(dt),Ct=function(t){void 0===t&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=F(t.routes||[],this);var e=t.mode||"hash";switch(this.fallback="history"===e&&!et&&!1!==t.fallback,this.fallback&&(e="hash"),m||(e="abstract"),this.mode=e){case"history":this.history=new mt(this,t.base);break;case"hash":this.history=new bt(this,t.base,this.fallback);break;case"abstract":this.history=new Ot(this,t.base)}},jt={currentRoute:{configurable:!0}};function At(e,r){return e.push(r),function(){var t=e.indexOf(r);-1<t&&e.splice(t,1)}}return Ct.prototype.match=function(t,e,r){return this.matcher.match(t,e,r)},jt.currentRoute.get=function(){return this.history&&this.history.current},Ct.prototype.init=function(t){var r=this;if(this.apps.push(t),!this.app){this.app=t;var e=this.history;if(e instanceof mt)e.transitionTo(e.getCurrentLocation());else if(e instanceof bt){var n=function(){e.setupListeners()};e.transitionTo(e.getCurrentLocation(),n,n)}e.listen(function(e){r.apps.forEach(function(t){t._route=e})})}},Ct.prototype.beforeEach=function(t){return At(this.beforeHooks,t)},Ct.prototype.beforeResolve=function(t){return At(this.resolveHooks,t)},Ct.prototype.afterEach=function(t){return At(this.afterHooks,t)},Ct.prototype.onReady=function(t,e){this.history.onReady(t,e)},Ct.prototype.onError=function(t){this.history.onError(t)},Ct.prototype.push=function(t,e,r){this.history.push(t,e,r)},Ct.prototype.replace=function(t,e,r){this.history.replace(t,e,r)},Ct.prototype.go=function(t){this.history.go(t)},Ct.prototype.back=function(){this.go(-1)},Ct.prototype.forward=function(){this.go(1)},Ct.prototype.getMatchedComponents=function(t){var e=t?t.matched?t:this.resolve(t).route:this.currentRoute;return e?[].concat.apply([],e.matched.map(function(e){return Object.keys(e.components).map(function(t){return e.components[t]})})):[]},Ct.prototype.resolve=function(t,e,r){var n,o,i,a,u=D(t,e||this.history.current,r,this),c=this.match(u,e),s=c.redirectedFrom||c.fullPath,p=this.history.base;return{location:u,route:c,href:(n=p,o=s,i=this.mode,a="hash"===i?"#"+o:o,n?b(n+"/"+a):a),normalizedTo:u,resolved:c}},Ct.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==s&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(Ct.prototype,jt),Ct.install=function t(e){if(!t.installed||d!==e){t.installed=!0;var n=function(t){return void 0!==t},r=function(t,e){var r=t.$options._parentVnode;n(r)&&n(r=r.data)&&n(r=r.registerRouteInstance)&&r(t,e)};(d=e).mixin({beforeCreate:function(){n(this.$options.router)?((this._routerRoot=this)._router=this.$options.router,this._router.init(this),e.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,r(this,this)},destroyed:function(){r(this)}}),Object.defineProperty(e.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(e.prototype,"$route",{get:function(){return this._routerRoot._route}}),e.component("RouterView",i),e.component("RouterLink",v);var o=e.config.optionMergeStrategies;o.beforeRouteEnter=o.beforeRouteLeave=o.beforeRouteUpdate=o.created}},Ct.version="3.0.2",m&&window.Vue&&window.Vue.use(Ct),Ct});
......@@ -46,7 +46,7 @@
<script src="<%= BASE_URL %>util/pad-zeropadding.js" charset="utf-8"></script>
<script src="<%= BASE_URL %>cdn/vue/2.5.2/vue.min.js" charset="utf-8"></script>
<script src="<%= BASE_URL %>cdn/vuex/2.4.1/vuex.min.js" charset="utf-8"></script>
<script src="<%= BASE_URL %>cdn/vue-router/3.0.1/vue-router.min.js" charset="utf-8"></script>
<script src="<%= BASE_URL %>cdn/vue-router/3.0.2/vue-router.min.js" charset="utf-8"></script>
<script src="<%= BASE_URL %>cdn/axios/1.0.0/axios.min.js" charset="utf-8"></script>
<script src="<%= BASE_URL %>cdn/element-ui/2.4.6/index.js" charset="utf-8"></script>
</body>
......
......@@ -5,10 +5,10 @@ module.exports = {
chainWebpack: config => {
// 忽略的打包文件
config.externals({
vue: 'Vue',
'vue': 'Vue',
'vue-router': 'VueRouter',
vuex: 'Vuex',
axios: 'axios',
'vuex': 'Vuex',
'axios': 'axios',
'element-ui': 'ELEMENT'
})
},
......
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