buliang/src/main/resources/static/assets/router-fd396650.js

1155 lines
44 KiB
JavaScript

import {
W as rt,
i as W,
f as x,
a as je,
K as ot,
d as He,
D as X,
h as ze,
E as ce,
b as st,
y as it
} from "./runtime-core.esm-bundler-381a9959.js";
const at = "modulepreload", ct = function (e) {
return "/" + e
}, we = {}, b = function (t, n, r) {
if (!n || n.length === 0) return t();
const o = document.getElementsByTagName("link");
return Promise.all(n.map(a => {
if (a = ct(a), a in we) return;
we[a] = !0;
const p = a.endsWith(".css"), m = p ? '[rel="stylesheet"]' : "";
if (!!r) for (let s = o.length - 1; s >= 0; s--) {
const l = o[s];
if (l.href === a && (!p || l.rel === "stylesheet")) return
} else if (document.querySelector(`link[href="${a}"]${m}`)) return;
const u = document.createElement("link");
if (u.rel = p ? "stylesheet" : at, p || (u.as = "script", u.crossOrigin = ""), u.href = a, document.head.appendChild(u), p) return new Promise((s, l) => {
u.addEventListener("load", s), u.addEventListener("error", () => l(new Error(`Unable to preload CSS for ${a}`)))
})
})).then(() => t())
};/*!
* vue-router v4.1.6
* (c) 2022 Eduardo San Martin Morote
* @license MIT
*/
const H = typeof window < "u";
function lt(e) {
return e.__esModule || e[Symbol.toStringTag] === "Module"
}
const w = Object.assign;
function le(e, t) {
const n = {};
for (const r in t) {
const o = t[r];
n[r] = M(o) ? o.map(e) : e(o)
}
return n
}
const F = () => {
}, M = Array.isArray, ut = /\/$/, ft = e => e.replace(ut, "");
function ue(e, t, n = "/") {
let r, o = {}, a = "", p = "";
const m = t.indexOf("#");
let c = t.indexOf("?");
return m < c && m >= 0 && (c = -1), c > -1 && (r = t.slice(0, c), a = t.slice(c + 1, m > -1 ? m : t.length), o = e(a)), m > -1 && (r = r || t.slice(0, m), p = t.slice(m, t.length)), r = mt(r ?? t, n), {
fullPath: r + (a && "?") + a + p,
path: r,
query: o,
hash: p
}
}
function ht(e, t) {
const n = t.query ? e(t.query) : "";
return t.path + (n && "?") + n + (t.hash || "")
}
function Se(e, t) {
return !t || !e.toLowerCase().startsWith(t.toLowerCase()) ? e : e.slice(t.length) || "/"
}
function pt(e, t, n) {
const r = t.matched.length - 1, o = n.matched.length - 1;
return r > -1 && r === o && z(t.matched[r], n.matched[o]) && qe(t.params, n.params) && e(t.query) === e(n.query) && t.hash === n.hash
}
function z(e, t) {
return (e.aliasOf || e) === (t.aliasOf || t)
}
function qe(e, t) {
if (Object.keys(e).length !== Object.keys(t).length) return !1;
for (const n in e) if (!dt(e[n], t[n])) return !1;
return !0
}
function dt(e, t) {
return M(e) ? Ae(e, t) : M(t) ? Ae(t, e) : e === t
}
function Ae(e, t) {
return M(t) ? e.length === t.length && e.every((n, r) => n === t[r]) : e.length === 1 && e[0] === t
}
function mt(e, t) {
if (e.startsWith("/")) return e;
if (!e) return t;
const n = t.split("/"), r = e.split("/");
let o = n.length - 1, a, p;
for (a = 0; a < r.length; a++) if (p = r[a], p !== ".") if (p === "..") o > 1 && o--; else break;
return n.slice(0, o).join("/") + "/" + r.slice(a - (a === r.length ? 1 : 0)).join("/")
}
var Z;
(function (e) {
e.pop = "pop", e.push = "push"
})(Z || (Z = {}));
var Y;
(function (e) {
e.back = "back", e.forward = "forward", e.unknown = ""
})(Y || (Y = {}));
function gt(e) {
if (!e) if (H) {
const t = document.querySelector("base");
e = t && t.getAttribute("href") || "/", e = e.replace(/^\w+:\/\/[^\/]+/, "")
} else e = "/";
return e[0] !== "/" && e[0] !== "#" && (e = "/" + e), ft(e)
}
const vt = /^[^#]+#/;
function Et(e, t) {
return e.replace(vt, "#") + t
}
function _t(e, t) {
const n = document.documentElement.getBoundingClientRect(), r = e.getBoundingClientRect();
return {behavior: t.behavior, left: r.left - n.left - (t.left || 0), top: r.top - n.top - (t.top || 0)}
}
const te = () => ({left: window.pageXOffset, top: window.pageYOffset});
function yt(e) {
let t;
if ("el" in e) {
const n = e.el, r = typeof n == "string" && n.startsWith("#"),
o = typeof n == "string" ? r ? document.getElementById(n.slice(1)) : document.querySelector(n) : n;
if (!o) return;
t = _t(o, e)
} else t = e;
"scrollBehavior" in document.documentElement.style ? window.scrollTo(t) : window.scrollTo(t.left != null ? t.left : window.pageXOffset, t.top != null ? t.top : window.pageYOffset)
}
function Oe(e, t) {
return (history.state ? history.state.position - t : -1) + e
}
const he = new Map;
function Rt(e, t) {
he.set(e, t)
}
function Pt(e) {
const t = he.get(e);
return he.delete(e), t
}
let wt = () => location.protocol + "//" + location.host;
function Ge(e, t) {
const {pathname: n, search: r, hash: o} = t, a = e.indexOf("#");
if (a > -1) {
let m = o.includes(e.slice(a)) ? e.slice(a).length : 1, c = o.slice(m);
return c[0] !== "/" && (c = "/" + c), Se(c, "")
}
return Se(n, e) + r + o
}
function St(e, t, n, r) {
let o = [], a = [], p = null;
const m = ({state: f}) => {
const g = Ge(e, location), _ = n.value, O = t.value;
let A = 0;
if (f) {
if (n.value = g, t.value = f, p && p === _) {
p = null;
return
}
A = O ? f.position - O.position : 0
} else r(g);
o.forEach(y => {
y(n.value, _, {delta: A, type: Z.pop, direction: A ? A > 0 ? Y.forward : Y.back : Y.unknown})
})
};
function c() {
p = n.value
}
function u(f) {
o.push(f);
const g = () => {
const _ = o.indexOf(f);
_ > -1 && o.splice(_, 1)
};
return a.push(g), g
}
function s() {
const {history: f} = window;
f.state && f.replaceState(w({}, f.state, {scroll: te()}), "")
}
function l() {
for (const f of a) f();
a = [], window.removeEventListener("popstate", m), window.removeEventListener("beforeunload", s)
}
return window.addEventListener("popstate", m), window.addEventListener("beforeunload", s), {
pauseListeners: c,
listen: u,
destroy: l
}
}
function ke(e, t, n, r = !1, o = !1) {
return {back: e, current: t, forward: n, replaced: r, position: window.history.length, scroll: o ? te() : null}
}
function At(e) {
const {history: t, location: n} = window, r = {value: Ge(e, n)}, o = {value: t.state};
o.value || a(r.value, {
back: null,
current: r.value,
forward: null,
position: t.length - 1,
replaced: !0,
scroll: null
}, !0);
function a(c, u, s) {
const l = e.indexOf("#"),
f = l > -1 ? (n.host && document.querySelector("base") ? e : e.slice(l)) + c : wt() + e + c;
try {
t[s ? "replaceState" : "pushState"](u, "", f), o.value = u
} catch (g) {
console.error(g), n[s ? "replace" : "assign"](f)
}
}
function p(c, u) {
const s = w({}, t.state, ke(o.value.back, c, o.value.forward, !0), u, {position: o.value.position});
a(c, s, !0), r.value = c
}
function m(c, u) {
const s = w({}, o.value, t.state, {forward: c, scroll: te()});
a(s.current, s, !0);
const l = w({}, ke(r.value, c, null), {position: s.position + 1}, u);
a(c, l, !1), r.value = c
}
return {location: r, state: o, push: m, replace: p}
}
function Ot(e) {
e = gt(e);
const t = At(e), n = St(e, t.state, t.location, t.replace);
function r(a, p = !0) {
p || n.pauseListeners(), history.go(a)
}
const o = w({location: "", base: e, go: r, createHref: Et.bind(null, e)}, t, n);
return Object.defineProperty(o, "location", {
enumerable: !0,
get: () => t.location.value
}), Object.defineProperty(o, "state", {enumerable: !0, get: () => t.state.value}), o
}
function kt(e) {
return e = location.host ? e || location.pathname + location.search : "", e.includes("#") || (e += "#"), Ot(e)
}
function Ct(e) {
return typeof e == "string" || e && typeof e == "object"
}
function Ke(e) {
return typeof e == "string" || typeof e == "symbol"
}
const N = {
path: "/",
name: void 0,
params: {},
query: {},
hash: "",
fullPath: "/",
matched: [],
meta: {},
redirectedFrom: void 0
}, Ue = Symbol("");
var Ce;
(function (e) {
e[e.aborted = 4] = "aborted", e[e.cancelled = 8] = "cancelled", e[e.duplicated = 16] = "duplicated"
})(Ce || (Ce = {}));
function q(e, t) {
return w(new Error, {type: e, [Ue]: !0}, t)
}
function V(e, t) {
return e instanceof Error && Ue in e && (t == null || !!(e.type & t))
}
const be = "[^/]+?", bt = {sensitive: !1, strict: !1, start: !0, end: !0}, Lt = /[.+*?^${}()[\]/\\]/g;
function It(e, t) {
const n = w({}, bt, t), r = [];
let o = n.start ? "^" : "";
const a = [];
for (const u of e) {
const s = u.length ? [] : [90];
n.strict && !u.length && (o += "/");
for (let l = 0; l < u.length; l++) {
const f = u[l];
let g = 40 + (n.sensitive ? .25 : 0);
if (f.type === 0) l || (o += "/"), o += f.value.replace(Lt, "\\$&"), g += 40; else if (f.type === 1) {
const {value: _, repeatable: O, optional: A, regexp: y} = f;
a.push({name: _, repeatable: O, optional: A});
const P = y || be;
if (P !== be) {
g += 10;
try {
new RegExp(`(${P})`)
} catch (T) {
throw new Error(`Invalid custom RegExp for param "${_}" (${P}): ` + T.message)
}
}
let L = O ? `((?:${P})(?:/(?:${P}))*)` : `(${P})`;
l || (L = A && u.length < 2 ? `(?:/${L})` : "/" + L), A && (L += "?"), o += L, g += 20, A && (g += -8), O && (g += -20), P === ".*" && (g += -50)
}
s.push(g)
}
r.push(s)
}
if (n.strict && n.end) {
const u = r.length - 1;
r[u][r[u].length - 1] += .7000000000000001
}
n.strict || (o += "/?"), n.end ? o += "$" : n.strict && (o += "(?:/|$)");
const p = new RegExp(o, n.sensitive ? "" : "i");
function m(u) {
const s = u.match(p), l = {};
if (!s) return null;
for (let f = 1; f < s.length; f++) {
const g = s[f] || "", _ = a[f - 1];
l[_.name] = g && _.repeatable ? g.split("/") : g
}
return l
}
function c(u) {
let s = "", l = !1;
for (const f of e) {
(!l || !s.endsWith("/")) && (s += "/"), l = !1;
for (const g of f) if (g.type === 0) s += g.value; else if (g.type === 1) {
const {value: _, repeatable: O, optional: A} = g, y = _ in u ? u[_] : "";
if (M(y) && !O) throw new Error(`Provided param "${_}" is an array but it is not repeatable (* or + modifiers)`);
const P = M(y) ? y.join("/") : y;
if (!P) if (A) f.length < 2 && (s.endsWith("/") ? s = s.slice(0, -1) : l = !0); else throw new Error(`Missing required param "${_}"`);
s += P
}
}
return s || "/"
}
return {re: p, score: r, keys: a, parse: m, stringify: c}
}
function Tt(e, t) {
let n = 0;
for (; n < e.length && n < t.length;) {
const r = t[n] - e[n];
if (r) return r;
n++
}
return e.length < t.length ? e.length === 1 && e[0] === 40 + 40 ? -1 : 1 : e.length > t.length ? t.length === 1 && t[0] === 40 + 40 ? 1 : -1 : 0
}
function xt(e, t) {
let n = 0;
const r = e.score, o = t.score;
for (; n < r.length && n < o.length;) {
const a = Tt(r[n], o[n]);
if (a) return a;
n++
}
if (Math.abs(o.length - r.length) === 1) {
if (Le(r)) return 1;
if (Le(o)) return -1
}
return o.length - r.length
}
function Le(e) {
const t = e[e.length - 1];
return e.length > 0 && t[t.length - 1] < 0
}
const Mt = {type: 0, value: ""}, Dt = /[a-zA-Z0-9_]/;
function Vt(e) {
if (!e) return [[]];
if (e === "/") return [[Mt]];
if (!e.startsWith("/")) throw new Error(`Invalid path "${e}"`);
function t(g) {
throw new Error(`ERR (${n})/"${u}": ${g}`)
}
let n = 0, r = n;
const o = [];
let a;
function p() {
a && o.push(a), a = []
}
let m = 0, c, u = "", s = "";
function l() {
u && (n === 0 ? a.push({
type: 0,
value: u
}) : n === 1 || n === 2 || n === 3 ? (a.length > 1 && (c === "*" || c === "+") && t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`), a.push({
type: 1,
value: u,
regexp: s,
repeatable: c === "*" || c === "+",
optional: c === "*" || c === "?"
})) : t("Invalid state to consume buffer"), u = "")
}
function f() {
u += c
}
for (; m < e.length;) {
if (c = e[m++], c === "\\" && n !== 2) {
r = n, n = 4;
continue
}
switch (n) {
case 0:
c === "/" ? (u && l(), p()) : c === ":" ? (l(), n = 1) : f();
break;
case 4:
f(), n = r;
break;
case 1:
c === "(" ? n = 2 : Dt.test(c) ? f() : (l(), n = 0, c !== "*" && c !== "?" && c !== "+" && m--);
break;
case 2:
c === ")" ? s[s.length - 1] == "\\" ? s = s.slice(0, -1) + c : n = 3 : s += c;
break;
case 3:
l(), n = 0, c !== "*" && c !== "?" && c !== "+" && m--, s = "";
break;
default:
t("Unknown state");
break
}
}
return n === 2 && t(`Unfinished custom RegExp for param "${u}"`), l(), p(), o
}
function Nt(e, t, n) {
const r = It(Vt(e.path), n), o = w(r, {record: e, parent: t, children: [], alias: []});
return t && !o.record.aliasOf == !t.record.aliasOf && t.children.push(o), o
}
function $t(e, t) {
const n = [], r = new Map;
t = xe({strict: !1, end: !0, sensitive: !1}, t);
function o(s) {
return r.get(s)
}
function a(s, l, f) {
const g = !f, _ = Bt(s);
_.aliasOf = f && f.record;
const O = xe(t, s), A = [_];
if ("alias" in s) {
const L = typeof s.alias == "string" ? [s.alias] : s.alias;
for (const T of L) A.push(w({}, _, {
components: f ? f.record.components : _.components,
path: T,
aliasOf: f ? f.record : _
}))
}
let y, P;
for (const L of A) {
const {path: T} = L;
if (l && T[0] !== "/") {
const B = l.record.path, D = B[B.length - 1] === "/" ? "" : "/";
L.path = l.record.path + (T && D + T)
}
if (y = Nt(L, l, O), f ? f.alias.push(y) : (P = P || y, P !== y && P.alias.push(y), g && s.name && !Te(y) && p(s.name)), _.children) {
const B = _.children;
for (let D = 0; D < B.length; D++) a(B[D], y, f && f.children[D])
}
f = f || y, (y.record.components && Object.keys(y.record.components).length || y.record.name || y.record.redirect) && c(y)
}
return P ? () => {
p(P)
} : F
}
function p(s) {
if (Ke(s)) {
const l = r.get(s);
l && (r.delete(s), n.splice(n.indexOf(l), 1), l.children.forEach(p), l.alias.forEach(p))
} else {
const l = n.indexOf(s);
l > -1 && (n.splice(l, 1), s.record.name && r.delete(s.record.name), s.children.forEach(p), s.alias.forEach(p))
}
}
function m() {
return n
}
function c(s) {
let l = 0;
for (; l < n.length && xt(s, n[l]) >= 0 && (s.record.path !== n[l].record.path || !Qe(s, n[l]));) l++;
n.splice(l, 0, s), s.record.name && !Te(s) && r.set(s.record.name, s)
}
function u(s, l) {
let f, g = {}, _, O;
if ("name" in s && s.name) {
if (f = r.get(s.name), !f) throw q(1, {location: s});
O = f.record.name, g = w(Ie(l.params, f.keys.filter(P => !P.optional).map(P => P.name)), s.params && Ie(s.params, f.keys.map(P => P.name))), _ = f.stringify(g)
} else if ("path" in s) _ = s.path, f = n.find(P => P.re.test(_)), f && (g = f.parse(_), O = f.record.name); else {
if (f = l.name ? r.get(l.name) : n.find(P => P.re.test(l.path)), !f) throw q(1, {
location: s,
currentLocation: l
});
O = f.record.name, g = w({}, l.params, s.params), _ = f.stringify(g)
}
const A = [];
let y = f;
for (; y;) A.unshift(y.record), y = y.parent;
return {name: O, path: _, params: g, matched: A, meta: Ht(A)}
}
return e.forEach(s => a(s)), {addRoute: a, resolve: u, removeRoute: p, getRoutes: m, getRecordMatcher: o}
}
function Ie(e, t) {
const n = {};
for (const r of t) r in e && (n[r] = e[r]);
return n
}
function Bt(e) {
return {
path: e.path,
redirect: e.redirect,
name: e.name,
meta: e.meta || {},
aliasOf: void 0,
beforeEnter: e.beforeEnter,
props: jt(e),
children: e.children || [],
instances: {},
leaveGuards: new Set,
updateGuards: new Set,
enterCallbacks: {},
components: "components" in e ? e.components || null : e.component && {default: e.component}
}
}
function jt(e) {
const t = {}, n = e.props || !1;
if ("component" in e) t.default = n; else for (const r in e.components) t[r] = typeof n == "boolean" ? n : n[r];
return t
}
function Te(e) {
for (; e;) {
if (e.record.aliasOf) return !0;
e = e.parent
}
return !1
}
function Ht(e) {
return e.reduce((t, n) => w(t, n.meta), {})
}
function xe(e, t) {
const n = {};
for (const r in e) n[r] = r in t ? t[r] : e[r];
return n
}
function Qe(e, t) {
return t.children.some(n => n === e || Qe(e, n))
}
const We = /#/g, zt = /&/g, qt = /\//g, Gt = /=/g, Kt = /\?/g, Fe = /\+/g, Ut = /%5B/g, Qt = /%5D/g, Ye = /%5E/g,
Wt = /%60/g, Xe = /%7B/g, Ft = /%7C/g, Ze = /%7D/g, Yt = /%20/g;
function me(e) {
return encodeURI("" + e).replace(Ft, "|").replace(Ut, "[").replace(Qt, "]")
}
function Xt(e) {
return me(e).replace(Xe, "{").replace(Ze, "}").replace(Ye, "^")
}
function pe(e) {
return me(e).replace(Fe, "%2B").replace(Yt, "+").replace(We, "%23").replace(zt, "%26").replace(Wt, "`").replace(Xe, "{").replace(Ze, "}").replace(Ye, "^")
}
function Zt(e) {
return pe(e).replace(Gt, "%3D")
}
function Jt(e) {
return me(e).replace(We, "%23").replace(Kt, "%3F")
}
function en(e) {
return e == null ? "" : Jt(e).replace(qt, "%2F")
}
function ee(e) {
try {
return decodeURIComponent("" + e)
} catch {
}
return "" + e
}
function tn(e) {
const t = {};
if (e === "" || e === "?") return t;
const r = (e[0] === "?" ? e.slice(1) : e).split("&");
for (let o = 0; o < r.length; ++o) {
const a = r[o].replace(Fe, " "), p = a.indexOf("="), m = ee(p < 0 ? a : a.slice(0, p)),
c = p < 0 ? null : ee(a.slice(p + 1));
if (m in t) {
let u = t[m];
M(u) || (u = t[m] = [u]), u.push(c)
} else t[m] = c
}
return t
}
function Me(e) {
let t = "";
for (let n in e) {
const r = e[n];
if (n = Zt(n), r == null) {
r !== void 0 && (t += (t.length ? "&" : "") + n);
continue
}
(M(r) ? r.map(a => a && pe(a)) : [r && pe(r)]).forEach(a => {
a !== void 0 && (t += (t.length ? "&" : "") + n, a != null && (t += "=" + a))
})
}
return t
}
function nn(e) {
const t = {};
for (const n in e) {
const r = e[n];
r !== void 0 && (t[n] = M(r) ? r.map(o => o == null ? null : "" + o) : r == null ? r : "" + r)
}
return t
}
const rn = Symbol(""), De = Symbol(""), ge = Symbol(""), Je = Symbol(""), de = Symbol("");
function Q() {
let e = [];
function t(r) {
return e.push(r), () => {
const o = e.indexOf(r);
o > -1 && e.splice(o, 1)
}
}
function n() {
e = []
}
return {add: t, list: () => e, reset: n}
}
function $(e, t, n, r, o) {
const a = r && (r.enterCallbacks[o] = r.enterCallbacks[o] || []);
return () => new Promise((p, m) => {
const c = l => {
l === !1 ? m(q(4, {from: n, to: t})) : l instanceof Error ? m(l) : Ct(l) ? m(q(2, {
from: t,
to: l
})) : (a && r.enterCallbacks[o] === a && typeof l == "function" && a.push(l), p())
}, u = e.call(r && r.instances[o], t, n, c);
let s = Promise.resolve(u);
e.length < 3 && (s = s.then(c)), s.catch(l => m(l))
})
}
function fe(e, t, n, r) {
const o = [];
for (const a of e) for (const p in a.components) {
let m = a.components[p];
if (!(t !== "beforeRouteEnter" && !a.instances[p])) if (on(m)) {
const u = (m.__vccOpts || m)[t];
u && o.push($(u, n, r, a, p))
} else {
let c = m();
o.push(() => c.then(u => {
if (!u) return Promise.reject(new Error(`Couldn't resolve component "${p}" at "${a.path}"`));
const s = lt(u) ? u.default : u;
a.components[p] = s;
const f = (s.__vccOpts || s)[t];
return f && $(f, n, r, a, p)()
}))
}
}
return o
}
function on(e) {
return typeof e == "object" || "displayName" in e || "props" in e || "__vccOpts" in e
}
function Ve(e) {
const t = X(ge), n = X(Je), r = x(() => t.resolve(W(e.to))), o = x(() => {
const {matched: c} = r.value, {length: u} = c, s = c[u - 1], l = n.matched;
if (!s || !l.length) return -1;
const f = l.findIndex(z.bind(null, s));
if (f > -1) return f;
const g = Ne(c[u - 2]);
return u > 1 && Ne(s) === g && l[l.length - 1].path !== g ? l.findIndex(z.bind(null, c[u - 2])) : f
}), a = x(() => o.value > -1 && ln(n.params, r.value.params)),
p = x(() => o.value > -1 && o.value === n.matched.length - 1 && qe(n.params, r.value.params));
function m(c = {}) {
return cn(c) ? t[W(e.replace) ? "replace" : "push"](W(e.to)).catch(F) : Promise.resolve()
}
return {route: r, href: x(() => r.value.href), isActive: a, isExactActive: p, navigate: m}
}
const sn = He({
name: "RouterLink",
compatConfig: {MODE: 3},
props: {
to: {type: [String, Object], required: !0},
replace: Boolean,
activeClass: String,
exactActiveClass: String,
custom: Boolean,
ariaCurrentValue: {type: String, default: "page"}
},
useLink: Ve,
setup(e, {slots: t}) {
const n = je(Ve(e)), {options: r} = X(ge), o = x(() => ({
[$e(e.activeClass, r.linkActiveClass, "router-link-active")]: n.isActive,
[$e(e.exactActiveClass, r.linkExactActiveClass, "router-link-exact-active")]: n.isExactActive
}));
return () => {
const a = t.default && t.default(n);
return e.custom ? a : ze("a", {
"aria-current": n.isExactActive ? e.ariaCurrentValue : null,
href: n.href,
onClick: n.navigate,
class: o.value
}, a)
}
}
}), an = sn;
function cn(e) {
if (!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey) && !e.defaultPrevented && !(e.button !== void 0 && e.button !== 0)) {
if (e.currentTarget && e.currentTarget.getAttribute) {
const t = e.currentTarget.getAttribute("target");
if (/\b_blank\b/i.test(t)) return
}
return e.preventDefault && e.preventDefault(), !0
}
}
function ln(e, t) {
for (const n in t) {
const r = t[n], o = e[n];
if (typeof r == "string") {
if (r !== o) return !1
} else if (!M(o) || o.length !== r.length || r.some((a, p) => a !== o[p])) return !1
}
return !0
}
function Ne(e) {
return e ? e.aliasOf ? e.aliasOf.path : e.path : ""
}
const $e = (e, t, n) => e ?? t ?? n, un = He({
name: "RouterView",
inheritAttrs: !1,
props: {name: {type: String, default: "default"}, route: Object},
compatConfig: {MODE: 3},
setup(e, {attrs: t, slots: n}) {
const r = X(de), o = x(() => e.route || r.value), a = X(De, 0), p = x(() => {
let u = W(a);
const {matched: s} = o.value;
let l;
for (; (l = s[u]) && !l.components;) u++;
return u
}), m = x(() => o.value.matched[p.value]);
ce(De, x(() => p.value + 1)), ce(rn, m), ce(de, o);
const c = st();
return it(() => [c.value, m.value, e.name], ([u, s, l], [f, g, _]) => {
s && (s.instances[l] = u, g && g !== s && u && u === f && (s.leaveGuards.size || (s.leaveGuards = g.leaveGuards), s.updateGuards.size || (s.updateGuards = g.updateGuards))), u && s && (!g || !z(s, g) || !f) && (s.enterCallbacks[l] || []).forEach(O => O(u))
}, {flush: "post"}), () => {
const u = o.value, s = e.name, l = m.value, f = l && l.components[s];
if (!f) return Be(n.default, {Component: f, route: u});
const g = l.props[s], _ = g ? g === !0 ? u.params : typeof g == "function" ? g(u) : g : null,
A = ze(f, w({}, _, t, {
onVnodeUnmounted: y => {
y.component.isUnmounted && (l.instances[s] = null)
}, ref: c
}));
return Be(n.default, {Component: A, route: u}) || A
}
}
});
function Be(e, t) {
if (!e) return null;
const n = e(t);
return n.length === 1 ? n[0] : n
}
const fn = un;
function hn(e) {
const t = $t(e.routes, e), n = e.parseQuery || tn, r = e.stringifyQuery || Me, o = e.history, a = Q(), p = Q(),
m = Q(), c = rt(N);
let u = N;
H && e.scrollBehavior && "scrollRestoration" in history && (history.scrollRestoration = "manual");
const s = le.bind(null, i => "" + i), l = le.bind(null, en), f = le.bind(null, ee);
function g(i, d) {
let h, v;
return Ke(i) ? (h = t.getRecordMatcher(i), v = d) : v = i, t.addRoute(v, h)
}
function _(i) {
const d = t.getRecordMatcher(i);
d && t.removeRoute(d)
}
function O() {
return t.getRoutes().map(i => i.record)
}
function A(i) {
return !!t.getRecordMatcher(i)
}
function y(i, d) {
if (d = w({}, d || c.value), typeof i == "string") {
const E = ue(n, i, d.path), C = t.resolve({path: E.path}, d), U = o.createHref(E.fullPath);
return w(E, C, {params: f(C.params), hash: ee(E.hash), redirectedFrom: void 0, href: U})
}
let h;
if ("path" in i) h = w({}, i, {path: ue(n, i.path, d.path).path}); else {
const E = w({}, i.params);
for (const C in E) E[C] == null && delete E[C];
h = w({}, i, {params: l(i.params)}), d.params = l(d.params)
}
const v = t.resolve(h, d), S = i.hash || "";
v.params = s(f(v.params));
const k = ht(r, w({}, i, {hash: Xt(S), path: v.path})), R = o.createHref(k);
return w({fullPath: k, hash: S, query: r === Me ? nn(i.query) : i.query || {}}, v, {
redirectedFrom: void 0,
href: R
})
}
function P(i) {
return typeof i == "string" ? ue(n, i, c.value.path) : w({}, i)
}
function L(i, d) {
if (u !== i) return q(8, {from: d, to: i})
}
function T(i) {
return G(i)
}
function B(i) {
return T(w(P(i), {replace: !0}))
}
function D(i) {
const d = i.matched[i.matched.length - 1];
if (d && d.redirect) {
const {redirect: h} = d;
let v = typeof h == "function" ? h(i) : h;
return typeof v == "string" && (v = v.includes("?") || v.includes("#") ? v = P(v) : {path: v}, v.params = {}), w({
query: i.query,
hash: i.hash,
params: "path" in v ? {} : i.params
}, v)
}
}
function G(i, d) {
const h = u = y(i), v = c.value, S = i.state, k = i.force, R = i.replace === !0, E = D(h);
if (E) return G(w(P(E), {state: typeof E == "object" ? w({}, S, E.state) : S, force: k, replace: R}), d || h);
const C = h;
C.redirectedFrom = d;
let U;
return !k && pt(r, v, h) && (U = q(16, {
to: C,
from: v
}), Re(v, v, !0, !1)), (U ? Promise.resolve(U) : ve(C, v)).catch(I => V(I) ? V(I, 2) ? I : oe(I) : re(I, C, v)).then(I => {
if (I) {
if (V(I, 2)) return G(w({replace: R}, P(I.to), {
state: typeof I.to == "object" ? w({}, S, I.to.state) : S,
force: k
}), d || C)
} else I = _e(C, v, !0, R, S);
return Ee(C, v, I), I
})
}
function et(i, d) {
const h = L(i, d);
return h ? Promise.reject(h) : Promise.resolve()
}
function ve(i, d) {
let h;
const [v, S, k] = pn(i, d);
h = fe(v.reverse(), "beforeRouteLeave", i, d);
for (const E of v) E.leaveGuards.forEach(C => {
h.push($(C, i, d))
});
const R = et.bind(null, i, d);
return h.push(R), j(h).then(() => {
h = [];
for (const E of a.list()) h.push($(E, i, d));
return h.push(R), j(h)
}).then(() => {
h = fe(S, "beforeRouteUpdate", i, d);
for (const E of S) E.updateGuards.forEach(C => {
h.push($(C, i, d))
});
return h.push(R), j(h)
}).then(() => {
h = [];
for (const E of i.matched) if (E.beforeEnter && !d.matched.includes(E)) if (M(E.beforeEnter)) for (const C of E.beforeEnter) h.push($(C, i, d)); else h.push($(E.beforeEnter, i, d));
return h.push(R), j(h)
}).then(() => (i.matched.forEach(E => E.enterCallbacks = {}), h = fe(k, "beforeRouteEnter", i, d), h.push(R), j(h))).then(() => {
h = [];
for (const E of p.list()) h.push($(E, i, d));
return h.push(R), j(h)
}).catch(E => V(E, 8) ? E : Promise.reject(E))
}
function Ee(i, d, h) {
for (const v of m.list()) v(i, d, h)
}
function _e(i, d, h, v, S) {
const k = L(i, d);
if (k) return k;
const R = d === N, E = H ? history.state : {};
h && (v || R ? o.replace(i.fullPath, w({scroll: R && E && E.scroll}, S)) : o.push(i.fullPath, S)), c.value = i, Re(i, d, h, R), oe()
}
let K;
function tt() {
K || (K = o.listen((i, d, h) => {
if (!Pe.listening) return;
const v = y(i), S = D(v);
if (S) {
G(w(S, {replace: !0}), v).catch(F);
return
}
u = v;
const k = c.value;
H && Rt(Oe(k.fullPath, h.delta), te()), ve(v, k).catch(R => V(R, 12) ? R : V(R, 2) ? (G(R.to, v).then(E => {
V(E, 20) && !h.delta && h.type === Z.pop && o.go(-1, !1)
}).catch(F), Promise.reject()) : (h.delta && o.go(-h.delta, !1), re(R, v, k))).then(R => {
R = R || _e(v, k, !1), R && (h.delta && !V(R, 8) ? o.go(-h.delta, !1) : h.type === Z.pop && V(R, 20) && o.go(-1, !1)), Ee(v, k, R)
}).catch(F)
}))
}
let ne = Q(), ye = Q(), J;
function re(i, d, h) {
oe(i);
const v = ye.list();
return v.length ? v.forEach(S => S(i, d, h)) : console.error(i), Promise.reject(i)
}
function nt() {
return J && c.value !== N ? Promise.resolve() : new Promise((i, d) => {
ne.add([i, d])
})
}
function oe(i) {
return J || (J = !i, tt(), ne.list().forEach(([d, h]) => i ? h(i) : d()), ne.reset()), i
}
function Re(i, d, h, v) {
const {scrollBehavior: S} = e;
if (!H || !S) return Promise.resolve();
const k = !h && Pt(Oe(i.fullPath, 0)) || (v || !h) && history.state && history.state.scroll || null;
return ot().then(() => S(i, d, k)).then(R => R && yt(R)).catch(R => re(R, i, d))
}
const se = i => o.go(i);
let ie;
const ae = new Set, Pe = {
currentRoute: c,
listening: !0,
addRoute: g,
removeRoute: _,
hasRoute: A,
getRoutes: O,
resolve: y,
options: e,
push: T,
replace: B,
go: se,
back: () => se(-1),
forward: () => se(1),
beforeEach: a.add,
beforeResolve: p.add,
afterEach: m.add,
onError: ye.add,
isReady: nt,
install(i) {
const d = this;
i.component("RouterLink", an), i.component("RouterView", fn), i.config.globalProperties.$router = d, Object.defineProperty(i.config.globalProperties, "$route", {
enumerable: !0,
get: () => W(c)
}), H && !ie && c.value === N && (ie = !0, T(o.location).catch(S => {
}));
const h = {};
for (const S in N) h[S] = x(() => c.value[S]);
i.provide(ge, d), i.provide(Je, je(h)), i.provide(de, c);
const v = i.unmount;
ae.add(i), i.unmount = function () {
ae.delete(i), ae.size < 1 && (u = N, K && K(), K = null, c.value = N, ie = !1, J = !1), v()
}
}
};
return Pe
}
function j(e) {
return e.reduce((t, n) => t.then(() => n()), Promise.resolve())
}
function pn(e, t) {
const n = [], r = [], o = [], a = Math.max(t.matched.length, e.matched.length);
for (let p = 0; p < a; p++) {
const m = t.matched[p];
m && (e.matched.find(u => z(u, m)) ? r.push(m) : n.push(m));
const c = e.matched[p];
c && (t.matched.find(u => z(u, c)) || o.push(c))
}
return [n, r, o]
}
const dn = [{path: "/", redirect: "/navigation"}, {
path: "/navigation",
component: () => b(() => import("./MainNavigation-4b4c5212.js"), ["assets/MainNavigation-4b4c5212.js", "assets/runtime-core.esm-bundler-381a9959.js", "assets/_plugin-vue_export-helper-c27b6911.js", "assets/MainNavigation-1ca248ae.css"])
}, {
path: "/shanghaimap",
component: () => b(() => import("./shanghaimap-41438dc4.js"), ["assets/shanghaimap-41438dc4.js", "assets/runtime-dom.esm-bundler-22744054.js", "assets/runtime-core.esm-bundler-381a9959.js", "assets/zhixiaodu-5718fdb5.js", "assets/vue-draggable-resizable-b9fb2b7f.js", "assets/_plugin-vue_export-helper-c27b6911.js", "assets/vue3-color.common-6905acff.js", "assets/_commonjsHelpers-edff4021.js", "assets/SettingAPI-c096c500.js", "assets/requests-80e4eb3a.js", "assets/linq-29a07fb5.js", "assets/index-cf1eecd5.js", "assets/install-0badd932.js", "assets/wordCloud-1bd38ca3.js", "assets/transform-fbfc3254.js", "assets/index-aefe9e2d.js", "assets/shanghaimap-55b54581.css", "assets/VueDraggableResizable-e9353437.css"])
}, {
path: "/shanghaiStreetMap",
component: () => b(() => import("./shanghaiStreetMap-888a7e26.js"), ["assets/shanghaiStreetMap-888a7e26.js", "assets/runtime-dom.esm-bundler-22744054.js", "assets/runtime-core.esm-bundler-381a9959.js", "assets/zhixiaodu-5718fdb5.js", "assets/vue-draggable-resizable-b9fb2b7f.js", "assets/_plugin-vue_export-helper-c27b6911.js", "assets/SettingAPI-c096c500.js", "assets/requests-80e4eb3a.js", "assets/linq-29a07fb5.js", "assets/index-cf1eecd5.js", "assets/install-0badd932.js", "assets/wordCloud-1bd38ca3.js", "assets/transform-fbfc3254.js", "assets/index-aefe9e2d.js", "assets/shanghaiStreetMap-6e19b5a3.css", "assets/VueDraggableResizable-e9353437.css"])
}, {
path: "/eChartsMap",
component: () => b(() => import("./eChartsMap-1014dace.js"), ["assets/eChartsMap-1014dace.js", "assets/eChartsMap.vue_vue_type_script_setup_true_lang-94302b89.js", "assets/index-cf1eecd5.js", "assets/install-0badd932.js", "assets/runtime-core.esm-bundler-381a9959.js"])
}, {
path: "/eChartsMap2",
component: () => b(() => import("./eChartsMapbiaoqian-6eaed25a.js"), ["assets/eChartsMapbiaoqian-6eaed25a.js", "assets/eChartsMap.vue_vue_type_script_setup_true_lang-94302b89.js", "assets/index-cf1eecd5.js", "assets/install-0badd932.js", "assets/runtime-core.esm-bundler-381a9959.js", "assets/_plugin-vue_export-helper-c27b6911.js", "assets/eChartsMapbiaoqian-e3b0c442.css"])
}, {
path: "/fixshanghaimap",
component: () => b(() => import("./fixshanghaimap-b37d1d6f.js"), ["assets/fixshanghaimap-b37d1d6f.js", "assets/runtime-dom.esm-bundler-22744054.js", "assets/runtime-core.esm-bundler-381a9959.js", "assets/vue-draggable-resizable-b9fb2b7f.js", "assets/_plugin-vue_export-helper-c27b6911.js", "assets/barshow-13e7c767.js", "assets/barshow-458bbfb5.css", "assets/vue3-color.common-6905acff.js", "assets/_commonjsHelpers-edff4021.js", "assets/SettingAPI-c096c500.js", "assets/requests-80e4eb3a.js", "assets/linq-29a07fb5.js", "assets/headMenu.vue_vue_type_script_setup_true_component_true_lang-5911bd81.js", "assets/index-aefe9e2d.js", "assets/VueDraggableResizable-e9353437.css"])
}, {
path: "/test2",
component: () => b(() => import("./test2-23ae1c33.js"), ["assets/test2-23ae1c33.js", "assets/runtime-dom.esm-bundler-22744054.js", "assets/runtime-core.esm-bundler-381a9959.js", "assets/vue-draggable-resizable-b9fb2b7f.js", "assets/_plugin-vue_export-helper-c27b6911.js", "assets/VueDraggableResizable-e9353437.css"])
}, {
path: "/chinamap",
component: () => b(() => import("./chinamap-4b91aaf5.js"), ["assets/chinamap-4b91aaf5.js", "assets/runtime-dom.esm-bundler-22744054.js", "assets/runtime-core.esm-bundler-381a9959.js", "assets/vue-draggable-resizable-b9fb2b7f.js", "assets/_plugin-vue_export-helper-c27b6911.js", "assets/barshow-13e7c767.js", "assets/barshow-458bbfb5.css", "assets/vue3-color.common-6905acff.js", "assets/_commonjsHelpers-edff4021.js", "assets/SettingAPI-c096c500.js", "assets/requests-80e4eb3a.js", "assets/linq-29a07fb5.js", "assets/headMenu.vue_vue_type_script_setup_true_component_true_lang-5911bd81.js", "assets/index-aefe9e2d.js", "assets/VueDraggableResizable-e9353437.css"])
}, {
path: "/worldmap",
component: () => b(() => import("./worldmapgen-114ddfbb.js"), ["assets/worldmapgen-114ddfbb.js", "assets/runtime-dom.esm-bundler-22744054.js", "assets/runtime-core.esm-bundler-381a9959.js", "assets/vue-draggable-resizable-b9fb2b7f.js", "assets/_plugin-vue_export-helper-c27b6911.js", "assets/vue3-color.common-6905acff.js", "assets/_commonjsHelpers-edff4021.js", "assets/SettingAPI-c096c500.js", "assets/requests-80e4eb3a.js", "assets/linq-29a07fb5.js", "assets/headMenu.vue_vue_type_script_setup_true_component_true_lang-5911bd81.js", "assets/index-aefe9e2d.js", "assets/worldmapgen-5a2293b5.css", "assets/VueDraggableResizable-e9353437.css"])
}, {
path: "/jiedao",
component: () => b(() => import("./jiedaonew-eba5c246.js"), ["assets/jiedaonew-eba5c246.js", "assets/runtime-dom.esm-bundler-22744054.js", "assets/runtime-core.esm-bundler-381a9959.js"])
}, {
path: "/test",
component: () => b(() => import("./test-c5494412.js"), ["assets/test-c5494412.js", "assets/vue-draggable-resizable-b9fb2b7f.js", "assets/runtime-dom.esm-bundler-22744054.js", "assets/runtime-core.esm-bundler-381a9959.js", "assets/_plugin-vue_export-helper-c27b6911.js", "assets/index-cf1eecd5.js", "assets/install-0badd932.js", "assets/VueDraggableResizable-e9353437.css"])
}, {
path: "/shanghaimapforstage",
component: () => b(() => import("./shanghaimapForStage-a669cc7d.js"), ["assets/shanghaimapForStage-a669cc7d.js", "assets/runtime-dom.esm-bundler-22744054.js", "assets/runtime-core.esm-bundler-381a9959.js", "assets/vue-draggable-resizable-b9fb2b7f.js", "assets/_plugin-vue_export-helper-c27b6911.js", "assets/vue3-color.common-6905acff.js", "assets/_commonjsHelpers-edff4021.js", "assets/requests-80e4eb3a.js", "assets/index-cf1eecd5.js", "assets/install-0badd932.js", "assets/wordCloud-1bd38ca3.js", "assets/index-aefe9e2d.js", "assets/shanghaimapForStage-b5991fcf.css", "assets/VueDraggableResizable-e9353437.css"])
}, {
path: "/shanghaimapfordistrict",
component: () => b(() => import("./shanghaimapForDistrict-c873e2e4.js"), ["assets/shanghaimapForDistrict-c873e2e4.js", "assets/vue-draggable-resizable-b9fb2b7f.js", "assets/runtime-dom.esm-bundler-22744054.js", "assets/runtime-core.esm-bundler-381a9959.js", "assets/_plugin-vue_export-helper-c27b6911.js", "assets/ForDistrictAPI-c6d3bfa6.js", "assets/requests-80e4eb3a.js", "assets/index-cf1eecd5.js", "assets/install-0badd932.js", "assets/wordCloud-1bd38ca3.js", "assets/shanghaiStreetMapForDistrict-928b4d41.css", "assets/VueDraggableResizable-e9353437.css"])
}, {
path: "/shanghaiStreetMapForDistrict",
component: () => b(() => import("./shanghaiStreetMapForDistrict-7d1e9d00.js"), ["assets/shanghaiStreetMapForDistrict-7d1e9d00.js", "assets/vue-draggable-resizable-b9fb2b7f.js", "assets/runtime-dom.esm-bundler-22744054.js", "assets/runtime-core.esm-bundler-381a9959.js", "assets/_plugin-vue_export-helper-c27b6911.js", "assets/ForDistrictAPI-c6d3bfa6.js", "assets/requests-80e4eb3a.js", "assets/index-cf1eecd5.js", "assets/install-0badd932.js", "assets/wordCloud-1bd38ca3.js", "assets/shanghaiStreetMapForDistrict-928b4d41.css", "assets/VueDraggableResizable-e9353437.css"])
}, {
path: "/shanghaiRiskAssessmentMap",
component: () => b(() => import("./shanghaiRiskAssessmentMap-6e2675b1.js"), ["assets/shanghaiRiskAssessmentMap-6e2675b1.js", "assets/runtime-dom.esm-bundler-22744054.js", "assets/runtime-core.esm-bundler-381a9959.js", "assets/vue-draggable-resizable-b9fb2b7f.js", "assets/_plugin-vue_export-helper-c27b6911.js", "assets/RiskAssessmentMapAPI-d9f41779.js", "assets/requests-80e4eb3a.js", "assets/vue3-color.common-6905acff.js", "assets/_commonjsHelpers-edff4021.js", "assets/wordCloud-1bd38ca3.js", "assets/install-0badd932.js", "assets/index-aefe9e2d.js", "assets/chinaRiskAssessmentMap-70b588b3.css", "assets/VueDraggableResizable-e9353437.css"])
}, {
path: "/chinaRiskAssessmentMap",
component: () => b(() => import("./chinaRiskAssessmentMap-e62670c9.js"), ["assets/chinaRiskAssessmentMap-e62670c9.js", "assets/runtime-dom.esm-bundler-22744054.js", "assets/runtime-core.esm-bundler-381a9959.js", "assets/vue-draggable-resizable-b9fb2b7f.js", "assets/_plugin-vue_export-helper-c27b6911.js", "assets/RiskAssessmentMapAPI-d9f41779.js", "assets/requests-80e4eb3a.js", "assets/vue3-color.common-6905acff.js", "assets/_commonjsHelpers-edff4021.js", "assets/wordCloud-1bd38ca3.js", "assets/install-0badd932.js", "assets/index-aefe9e2d.js", "assets/chinaRiskAssessmentMap-70b588b3.css", "assets/VueDraggableResizable-e9353437.css"])
}, {
path: "/aa",
component: () => b(() => import("./shanghaimapCopy-ea4962be.js"), ["assets/shanghaimapCopy-ea4962be.js", "assets/runtime-dom.esm-bundler-22744054.js", "assets/runtime-core.esm-bundler-381a9959.js", "assets/vue-draggable-resizable-b9fb2b7f.js", "assets/_plugin-vue_export-helper-c27b6911.js", "assets/barshow-13e7c767.js", "assets/barshow-458bbfb5.css", "assets/vue3-color.common-6905acff.js", "assets/_commonjsHelpers-edff4021.js", "assets/SettingAPI-c096c500.js", "assets/requests-80e4eb3a.js", "assets/linq-29a07fb5.js", "assets/index-cf1eecd5.js", "assets/install-0badd932.js", "assets/wordCloud-1bd38ca3.js", "assets/transform-fbfc3254.js", "assets/index-aefe9e2d.js", "assets/shanghaimapCopy-a820a53b.css", "assets/VueDraggableResizable-e9353437.css"])
}, {
path: "/zhisuzhinengyujing",
component: () => b(() => import("./compositeIndex-e9a158d2.js"), ["assets/compositeIndex-e9a158d2.js", "assets/index-cf1eecd5.js", "assets/install-0badd932.js", "assets/requests-80e4eb3a.js", "assets/runtime-core.esm-bundler-381a9959.js", "assets/_plugin-vue_export-helper-c27b6911.js", "assets/compositeIndex-4348aa9a.css"])
}, {
path: "/pesticidePingGu",
component: () => b(() => import("./pesticidePingGu-ed04569a.js"), ["assets/pesticidePingGu-ed04569a.js", "assets/runtime-dom.esm-bundler-22744054.js", "assets/runtime-core.esm-bundler-381a9959.js", "assets/requests-80e4eb3a.js", "assets/linq-29a07fb5.js", "assets/_plugin-vue_export-helper-c27b6911.js", "assets/pesticidePingGu-b3fcc95b.css", "assets/VueDraggableResizable-e9353437.css", "assets/index-e7d876d1.css"])
}], gn = hn({history: kt(), routes: dn});
export {gn as r};