@opengis/admin 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/add-page-w8kqN9iC.js +94 -0
- package/dist/{admin-interface-vPkHXzQK.js → admin-interface-BfdlUhra.js} +142 -136
- package/dist/{admin-view-BYF4ITZY.js → admin-view-RWOu4JiB.js} +1 -1
- package/dist/admin.js +1 -1
- package/dist/admin.umd.cjs +618 -25
- package/dist/card-page-B3wwBScq.js +115 -0
- package/dist/{card-view-CjZRvfqy.js → card-view-CZ14NHxS.js} +1 -1
- package/dist/edit-page-QkVrvzva.js +104 -0
- package/dist/import-file-BJrxCNbe.js +29254 -0
- package/dist/style.css +1 -1
- package/package.json +5 -2
- package/plugin.js +1 -1
- package/server/routes/data/controllers/cardData.js +1 -1
- package/server/routes/data/controllers/funcs/getFilterSQL/index.js +82 -0
- package/server/routes/data/controllers/funcs/getFilterSQL/util/formatValue.js +142 -0
- package/server/routes/data/controllers/funcs/getFilterSQL/util/getCustomQuery.js +13 -0
- package/server/routes/data/controllers/funcs/getFilterSQL/util/getFilterQuery.js +67 -0
- package/server/routes/data/controllers/funcs/getFilterSQL/util/getOptimizedQuery.js +12 -0
- package/server/routes/data/controllers/funcs/getFilterSQL/util/getTableSql.js +34 -0
- package/server/routes/data/controllers/tableData.js +12 -31
- package/server/routes/data/controllers/tableFilter.js +1 -1
- package/server/routes/data/controllers/utils/assignTokens.js +31 -0
- package/server/routes/data/index.mjs +1 -1
- package/server/routes/templates/controllers/getTemplate.js +2 -4
- package/dist/add-page-C-msiPrU.js +0 -64
- package/dist/card-page-HOwuHNjV.js +0 -49
- package/dist/edit-page-7yrRusn4.js +0 -58
- package/dist/form-TrZSpRSC.js +0 -38
- package/dist/import-file-DPHo57R5.js +0 -3726
- package/server/routes/data/controllers/metaFormat/getSelectVal.js +0 -19
- package/server/routes/data/controllers/metaFormat/index.js +0 -29
- package/server/routes/templates/funcs/addTempateFolder.js +0 -47
- package/server/routes/templates/funcs/getTemplate.js +0 -70
- package/server/routes/templates/funcs/getTemplatePath.js +0 -39
- package/server/routes/templates/funcs/loadTemplate.js +0 -1
- package/server/routes/templates/funcs/loadTemplateDir.js +0 -1
- package/server/routes/templates/funcs/loadTemplatePath.js +0 -1
- package/server/templates/interface/management.user_group.html +0 -1
- package/server/templates/interface/management.user_group.json +0 -10
- package/server/templates/interface/management.users.html +0 -1
- package/server/templates/interface/management.users.json +0 -10
- package/server/templates/map/dgm_level_line.xml +0 -52
- package/server/templates/pt/admin-menu-pt.html +0 -108
- package/server/templates/pt/management.user_group.table.pt.html +0 -127
- package/server/templates/pt/management.users.table.pt.html +0 -130
- package/server/templates/pt/table-standard-pt.html +0 -202
|
@@ -1,3726 +0,0 @@
|
|
|
1
|
-
import { resolveComponent as on, openBlock as be, createBlock as sn, shallowRef as or, unref as ie, shallowReactive as sr, nextTick as ir, defineComponent as an, reactive as ar, inject as ye, computed as H, h as cn, provide as qe, ref as cr, watch as ln, getCurrentInstance as un, watchEffect as lr, createElementBlock as dt, createElementVNode as W, toDisplayString as fn } from "vue";
|
|
2
|
-
function dn(e, t) {
|
|
3
|
-
return function() {
|
|
4
|
-
return e.apply(t, arguments);
|
|
5
|
-
};
|
|
6
|
-
}
|
|
7
|
-
const { toString: ur } = Object.prototype, { getPrototypeOf: ht } = Object, ke = /* @__PURE__ */ ((e) => (t) => {
|
|
8
|
-
const n = ur.call(t);
|
|
9
|
-
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
10
|
-
})(/* @__PURE__ */ Object.create(null)), q = (e) => (e = e.toLowerCase(), (t) => ke(t) === e), De = (e) => (t) => typeof t === e, { isArray: le } = Array, Ee = De("undefined");
|
|
11
|
-
function fr(e) {
|
|
12
|
-
return e !== null && !Ee(e) && e.constructor !== null && !Ee(e.constructor) && F(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
13
|
-
}
|
|
14
|
-
const hn = q("ArrayBuffer");
|
|
15
|
-
function dr(e) {
|
|
16
|
-
let t;
|
|
17
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && hn(e.buffer), t;
|
|
18
|
-
}
|
|
19
|
-
const hr = De("string"), F = De("function"), pn = De("number"), $e = (e) => e !== null && typeof e == "object", pr = (e) => e === !0 || e === !1, Pe = (e) => {
|
|
20
|
-
if (ke(e) !== "object")
|
|
21
|
-
return !1;
|
|
22
|
-
const t = ht(e);
|
|
23
|
-
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
24
|
-
}, mr = q("Date"), gr = q("File"), yr = q("Blob"), Er = q("FileList"), vr = (e) => $e(e) && F(e.pipe), br = (e) => {
|
|
25
|
-
let t;
|
|
26
|
-
return e && (typeof FormData == "function" && e instanceof FormData || F(e.append) && ((t = ke(e)) === "formdata" || // detect form-data instance
|
|
27
|
-
t === "object" && F(e.toString) && e.toString() === "[object FormData]"));
|
|
28
|
-
}, wr = q("URLSearchParams"), [_r, Rr, Sr, Or] = ["ReadableStream", "Request", "Response", "Headers"].map(q), Nr = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
29
|
-
function we(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
30
|
-
if (e === null || typeof e > "u")
|
|
31
|
-
return;
|
|
32
|
-
let r, o;
|
|
33
|
-
if (typeof e != "object" && (e = [e]), le(e))
|
|
34
|
-
for (r = 0, o = e.length; r < o; r++)
|
|
35
|
-
t.call(null, e[r], r, e);
|
|
36
|
-
else {
|
|
37
|
-
const s = n ? Object.getOwnPropertyNames(e) : Object.keys(e), i = s.length;
|
|
38
|
-
let c;
|
|
39
|
-
for (r = 0; r < i; r++)
|
|
40
|
-
c = s[r], t.call(null, e[c], c, e);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
function mn(e, t) {
|
|
44
|
-
t = t.toLowerCase();
|
|
45
|
-
const n = Object.keys(e);
|
|
46
|
-
let r = n.length, o;
|
|
47
|
-
for (; r-- > 0; )
|
|
48
|
-
if (o = n[r], t === o.toLowerCase())
|
|
49
|
-
return o;
|
|
50
|
-
return null;
|
|
51
|
-
}
|
|
52
|
-
const Z = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, gn = (e) => !Ee(e) && e !== Z;
|
|
53
|
-
function Ye() {
|
|
54
|
-
const { caseless: e } = gn(this) && this || {}, t = {}, n = (r, o) => {
|
|
55
|
-
const s = e && mn(t, o) || o;
|
|
56
|
-
Pe(t[s]) && Pe(r) ? t[s] = Ye(t[s], r) : Pe(r) ? t[s] = Ye({}, r) : le(r) ? t[s] = r.slice() : t[s] = r;
|
|
57
|
-
};
|
|
58
|
-
for (let r = 0, o = arguments.length; r < o; r++)
|
|
59
|
-
arguments[r] && we(arguments[r], n);
|
|
60
|
-
return t;
|
|
61
|
-
}
|
|
62
|
-
const Pr = (e, t, n, { allOwnKeys: r } = {}) => (we(t, (o, s) => {
|
|
63
|
-
n && F(o) ? e[s] = dn(o, n) : e[s] = o;
|
|
64
|
-
}, { allOwnKeys: r }), e), xr = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Ar = (e, t, n, r) => {
|
|
65
|
-
e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
66
|
-
value: t.prototype
|
|
67
|
-
}), n && Object.assign(e.prototype, n);
|
|
68
|
-
}, Tr = (e, t, n, r) => {
|
|
69
|
-
let o, s, i;
|
|
70
|
-
const c = {};
|
|
71
|
-
if (t = t || {}, e == null) return t;
|
|
72
|
-
do {
|
|
73
|
-
for (o = Object.getOwnPropertyNames(e), s = o.length; s-- > 0; )
|
|
74
|
-
i = o[s], (!r || r(i, e, t)) && !c[i] && (t[i] = e[i], c[i] = !0);
|
|
75
|
-
e = n !== !1 && ht(e);
|
|
76
|
-
} while (e && (!n || n(e, t)) && e !== Object.prototype);
|
|
77
|
-
return t;
|
|
78
|
-
}, Cr = (e, t, n) => {
|
|
79
|
-
e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
|
|
80
|
-
const r = e.indexOf(t, n);
|
|
81
|
-
return r !== -1 && r === n;
|
|
82
|
-
}, kr = (e) => {
|
|
83
|
-
if (!e) return null;
|
|
84
|
-
if (le(e)) return e;
|
|
85
|
-
let t = e.length;
|
|
86
|
-
if (!pn(t)) return null;
|
|
87
|
-
const n = new Array(t);
|
|
88
|
-
for (; t-- > 0; )
|
|
89
|
-
n[t] = e[t];
|
|
90
|
-
return n;
|
|
91
|
-
}, Dr = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && ht(Uint8Array)), $r = (e, t) => {
|
|
92
|
-
const r = (e && e[Symbol.iterator]).call(e);
|
|
93
|
-
let o;
|
|
94
|
-
for (; (o = r.next()) && !o.done; ) {
|
|
95
|
-
const s = o.value;
|
|
96
|
-
t.call(e, s[0], s[1]);
|
|
97
|
-
}
|
|
98
|
-
}, Ir = (e, t) => {
|
|
99
|
-
let n;
|
|
100
|
-
const r = [];
|
|
101
|
-
for (; (n = e.exec(t)) !== null; )
|
|
102
|
-
r.push(n);
|
|
103
|
-
return r;
|
|
104
|
-
}, Lr = q("HTMLFormElement"), Br = (e) => e.toLowerCase().replace(
|
|
105
|
-
/[-_\s]([a-z\d])(\w*)/g,
|
|
106
|
-
function(n, r, o) {
|
|
107
|
-
return r.toUpperCase() + o;
|
|
108
|
-
}
|
|
109
|
-
), Nt = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Ur = q("RegExp"), yn = (e, t) => {
|
|
110
|
-
const n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
111
|
-
we(n, (o, s) => {
|
|
112
|
-
let i;
|
|
113
|
-
(i = t(o, s, e)) !== !1 && (r[s] = i || o);
|
|
114
|
-
}), Object.defineProperties(e, r);
|
|
115
|
-
}, jr = (e) => {
|
|
116
|
-
yn(e, (t, n) => {
|
|
117
|
-
if (F(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
118
|
-
return !1;
|
|
119
|
-
const r = e[n];
|
|
120
|
-
if (F(r)) {
|
|
121
|
-
if (t.enumerable = !1, "writable" in t) {
|
|
122
|
-
t.writable = !1;
|
|
123
|
-
return;
|
|
124
|
-
}
|
|
125
|
-
t.set || (t.set = () => {
|
|
126
|
-
throw Error("Can not rewrite read-only method '" + n + "'");
|
|
127
|
-
});
|
|
128
|
-
}
|
|
129
|
-
});
|
|
130
|
-
}, Vr = (e, t) => {
|
|
131
|
-
const n = {}, r = (o) => {
|
|
132
|
-
o.forEach((s) => {
|
|
133
|
-
n[s] = !0;
|
|
134
|
-
});
|
|
135
|
-
};
|
|
136
|
-
return le(e) ? r(e) : r(String(e).split(t)), n;
|
|
137
|
-
}, Fr = () => {
|
|
138
|
-
}, Mr = (e, t) => e != null && Number.isFinite(e = +e) ? e : t, He = "abcdefghijklmnopqrstuvwxyz", Pt = "0123456789", En = {
|
|
139
|
-
DIGIT: Pt,
|
|
140
|
-
ALPHA: He,
|
|
141
|
-
ALPHA_DIGIT: He + He.toUpperCase() + Pt
|
|
142
|
-
}, qr = (e = 16, t = En.ALPHA_DIGIT) => {
|
|
143
|
-
let n = "";
|
|
144
|
-
const { length: r } = t;
|
|
145
|
-
for (; e--; )
|
|
146
|
-
n += t[Math.random() * r | 0];
|
|
147
|
-
return n;
|
|
148
|
-
};
|
|
149
|
-
function Hr(e) {
|
|
150
|
-
return !!(e && F(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator]);
|
|
151
|
-
}
|
|
152
|
-
const zr = (e) => {
|
|
153
|
-
const t = new Array(10), n = (r, o) => {
|
|
154
|
-
if ($e(r)) {
|
|
155
|
-
if (t.indexOf(r) >= 0)
|
|
156
|
-
return;
|
|
157
|
-
if (!("toJSON" in r)) {
|
|
158
|
-
t[o] = r;
|
|
159
|
-
const s = le(r) ? [] : {};
|
|
160
|
-
return we(r, (i, c) => {
|
|
161
|
-
const u = n(i, o + 1);
|
|
162
|
-
!Ee(u) && (s[c] = u);
|
|
163
|
-
}), t[o] = void 0, s;
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
return r;
|
|
167
|
-
};
|
|
168
|
-
return n(e, 0);
|
|
169
|
-
}, Kr = q("AsyncFunction"), Wr = (e) => e && ($e(e) || F(e)) && F(e.then) && F(e.catch), vn = ((e, t) => e ? setImmediate : t ? ((n, r) => (Z.addEventListener("message", ({ source: o, data: s }) => {
|
|
170
|
-
o === Z && s === n && r.length && r.shift()();
|
|
171
|
-
}, !1), (o) => {
|
|
172
|
-
r.push(o), Z.postMessage(n, "*");
|
|
173
|
-
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
174
|
-
typeof setImmediate == "function",
|
|
175
|
-
F(Z.postMessage)
|
|
176
|
-
), Gr = typeof queueMicrotask < "u" ? queueMicrotask.bind(Z) : typeof process < "u" && process.nextTick || vn, h = {
|
|
177
|
-
isArray: le,
|
|
178
|
-
isArrayBuffer: hn,
|
|
179
|
-
isBuffer: fr,
|
|
180
|
-
isFormData: br,
|
|
181
|
-
isArrayBufferView: dr,
|
|
182
|
-
isString: hr,
|
|
183
|
-
isNumber: pn,
|
|
184
|
-
isBoolean: pr,
|
|
185
|
-
isObject: $e,
|
|
186
|
-
isPlainObject: Pe,
|
|
187
|
-
isReadableStream: _r,
|
|
188
|
-
isRequest: Rr,
|
|
189
|
-
isResponse: Sr,
|
|
190
|
-
isHeaders: Or,
|
|
191
|
-
isUndefined: Ee,
|
|
192
|
-
isDate: mr,
|
|
193
|
-
isFile: gr,
|
|
194
|
-
isBlob: yr,
|
|
195
|
-
isRegExp: Ur,
|
|
196
|
-
isFunction: F,
|
|
197
|
-
isStream: vr,
|
|
198
|
-
isURLSearchParams: wr,
|
|
199
|
-
isTypedArray: Dr,
|
|
200
|
-
isFileList: Er,
|
|
201
|
-
forEach: we,
|
|
202
|
-
merge: Ye,
|
|
203
|
-
extend: Pr,
|
|
204
|
-
trim: Nr,
|
|
205
|
-
stripBOM: xr,
|
|
206
|
-
inherits: Ar,
|
|
207
|
-
toFlatObject: Tr,
|
|
208
|
-
kindOf: ke,
|
|
209
|
-
kindOfTest: q,
|
|
210
|
-
endsWith: Cr,
|
|
211
|
-
toArray: kr,
|
|
212
|
-
forEachEntry: $r,
|
|
213
|
-
matchAll: Ir,
|
|
214
|
-
isHTMLForm: Lr,
|
|
215
|
-
hasOwnProperty: Nt,
|
|
216
|
-
hasOwnProp: Nt,
|
|
217
|
-
// an alias to avoid ESLint no-prototype-builtins detection
|
|
218
|
-
reduceDescriptors: yn,
|
|
219
|
-
freezeMethods: jr,
|
|
220
|
-
toObjectSet: Vr,
|
|
221
|
-
toCamelCase: Br,
|
|
222
|
-
noop: Fr,
|
|
223
|
-
toFiniteNumber: Mr,
|
|
224
|
-
findKey: mn,
|
|
225
|
-
global: Z,
|
|
226
|
-
isContextDefined: gn,
|
|
227
|
-
ALPHABET: En,
|
|
228
|
-
generateString: qr,
|
|
229
|
-
isSpecCompliantForm: Hr,
|
|
230
|
-
toJSONObject: zr,
|
|
231
|
-
isAsyncFn: Kr,
|
|
232
|
-
isThenable: Wr,
|
|
233
|
-
setImmediate: vn,
|
|
234
|
-
asap: Gr
|
|
235
|
-
};
|
|
236
|
-
function O(e, t, n, r, o) {
|
|
237
|
-
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), n && (this.config = n), r && (this.request = r), o && (this.response = o, this.status = o.status ? o.status : null);
|
|
238
|
-
}
|
|
239
|
-
h.inherits(O, Error, {
|
|
240
|
-
toJSON: function() {
|
|
241
|
-
return {
|
|
242
|
-
// Standard
|
|
243
|
-
message: this.message,
|
|
244
|
-
name: this.name,
|
|
245
|
-
// Microsoft
|
|
246
|
-
description: this.description,
|
|
247
|
-
number: this.number,
|
|
248
|
-
// Mozilla
|
|
249
|
-
fileName: this.fileName,
|
|
250
|
-
lineNumber: this.lineNumber,
|
|
251
|
-
columnNumber: this.columnNumber,
|
|
252
|
-
stack: this.stack,
|
|
253
|
-
// Axios
|
|
254
|
-
config: h.toJSONObject(this.config),
|
|
255
|
-
code: this.code,
|
|
256
|
-
status: this.status
|
|
257
|
-
};
|
|
258
|
-
}
|
|
259
|
-
});
|
|
260
|
-
const bn = O.prototype, wn = {};
|
|
261
|
-
[
|
|
262
|
-
"ERR_BAD_OPTION_VALUE",
|
|
263
|
-
"ERR_BAD_OPTION",
|
|
264
|
-
"ECONNABORTED",
|
|
265
|
-
"ETIMEDOUT",
|
|
266
|
-
"ERR_NETWORK",
|
|
267
|
-
"ERR_FR_TOO_MANY_REDIRECTS",
|
|
268
|
-
"ERR_DEPRECATED",
|
|
269
|
-
"ERR_BAD_RESPONSE",
|
|
270
|
-
"ERR_BAD_REQUEST",
|
|
271
|
-
"ERR_CANCELED",
|
|
272
|
-
"ERR_NOT_SUPPORT",
|
|
273
|
-
"ERR_INVALID_URL"
|
|
274
|
-
// eslint-disable-next-line func-names
|
|
275
|
-
].forEach((e) => {
|
|
276
|
-
wn[e] = { value: e };
|
|
277
|
-
});
|
|
278
|
-
Object.defineProperties(O, wn);
|
|
279
|
-
Object.defineProperty(bn, "isAxiosError", { value: !0 });
|
|
280
|
-
O.from = (e, t, n, r, o, s) => {
|
|
281
|
-
const i = Object.create(bn);
|
|
282
|
-
return h.toFlatObject(e, i, function(u) {
|
|
283
|
-
return u !== Error.prototype;
|
|
284
|
-
}, (c) => c !== "isAxiosError"), O.call(i, e.message, t, n, r, o), i.cause = e, i.name = e.name, s && Object.assign(i, s), i;
|
|
285
|
-
};
|
|
286
|
-
const Jr = null;
|
|
287
|
-
function Ze(e) {
|
|
288
|
-
return h.isPlainObject(e) || h.isArray(e);
|
|
289
|
-
}
|
|
290
|
-
function _n(e) {
|
|
291
|
-
return h.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
292
|
-
}
|
|
293
|
-
function xt(e, t, n) {
|
|
294
|
-
return e ? e.concat(t).map(function(o, s) {
|
|
295
|
-
return o = _n(o), !n && s ? "[" + o + "]" : o;
|
|
296
|
-
}).join(n ? "." : "") : t;
|
|
297
|
-
}
|
|
298
|
-
function Qr(e) {
|
|
299
|
-
return h.isArray(e) && !e.some(Ze);
|
|
300
|
-
}
|
|
301
|
-
const Xr = h.toFlatObject(h, {}, null, function(t) {
|
|
302
|
-
return /^is[A-Z]/.test(t);
|
|
303
|
-
});
|
|
304
|
-
function Ie(e, t, n) {
|
|
305
|
-
if (!h.isObject(e))
|
|
306
|
-
throw new TypeError("target must be an object");
|
|
307
|
-
t = t || new FormData(), n = h.toFlatObject(n, {
|
|
308
|
-
metaTokens: !0,
|
|
309
|
-
dots: !1,
|
|
310
|
-
indexes: !1
|
|
311
|
-
}, !1, function(E, y) {
|
|
312
|
-
return !h.isUndefined(y[E]);
|
|
313
|
-
});
|
|
314
|
-
const r = n.metaTokens, o = n.visitor || a, s = n.dots, i = n.indexes, u = (n.Blob || typeof Blob < "u" && Blob) && h.isSpecCompliantForm(t);
|
|
315
|
-
if (!h.isFunction(o))
|
|
316
|
-
throw new TypeError("visitor must be a function");
|
|
317
|
-
function f(g) {
|
|
318
|
-
if (g === null) return "";
|
|
319
|
-
if (h.isDate(g))
|
|
320
|
-
return g.toISOString();
|
|
321
|
-
if (!u && h.isBlob(g))
|
|
322
|
-
throw new O("Blob is not supported. Use a Buffer instead.");
|
|
323
|
-
return h.isArrayBuffer(g) || h.isTypedArray(g) ? u && typeof Blob == "function" ? new Blob([g]) : Buffer.from(g) : g;
|
|
324
|
-
}
|
|
325
|
-
function a(g, E, y) {
|
|
326
|
-
let S = g;
|
|
327
|
-
if (g && !y && typeof g == "object") {
|
|
328
|
-
if (h.endsWith(E, "{}"))
|
|
329
|
-
E = r ? E : E.slice(0, -2), g = JSON.stringify(g);
|
|
330
|
-
else if (h.isArray(g) && Qr(g) || (h.isFileList(g) || h.endsWith(E, "[]")) && (S = h.toArray(g)))
|
|
331
|
-
return E = _n(E), S.forEach(function(R, k) {
|
|
332
|
-
!(h.isUndefined(R) || R === null) && t.append(
|
|
333
|
-
// eslint-disable-next-line no-nested-ternary
|
|
334
|
-
i === !0 ? xt([E], k, s) : i === null ? E : E + "[]",
|
|
335
|
-
f(R)
|
|
336
|
-
);
|
|
337
|
-
}), !1;
|
|
338
|
-
}
|
|
339
|
-
return Ze(g) ? !0 : (t.append(xt(y, E, s), f(g)), !1);
|
|
340
|
-
}
|
|
341
|
-
const l = [], d = Object.assign(Xr, {
|
|
342
|
-
defaultVisitor: a,
|
|
343
|
-
convertValue: f,
|
|
344
|
-
isVisitable: Ze
|
|
345
|
-
});
|
|
346
|
-
function m(g, E) {
|
|
347
|
-
if (!h.isUndefined(g)) {
|
|
348
|
-
if (l.indexOf(g) !== -1)
|
|
349
|
-
throw Error("Circular reference detected in " + E.join("."));
|
|
350
|
-
l.push(g), h.forEach(g, function(S, _) {
|
|
351
|
-
(!(h.isUndefined(S) || S === null) && o.call(
|
|
352
|
-
t,
|
|
353
|
-
S,
|
|
354
|
-
h.isString(_) ? _.trim() : _,
|
|
355
|
-
E,
|
|
356
|
-
d
|
|
357
|
-
)) === !0 && m(S, E ? E.concat(_) : [_]);
|
|
358
|
-
}), l.pop();
|
|
359
|
-
}
|
|
360
|
-
}
|
|
361
|
-
if (!h.isObject(e))
|
|
362
|
-
throw new TypeError("data must be an object");
|
|
363
|
-
return m(e), t;
|
|
364
|
-
}
|
|
365
|
-
function At(e) {
|
|
366
|
-
const t = {
|
|
367
|
-
"!": "%21",
|
|
368
|
-
"'": "%27",
|
|
369
|
-
"(": "%28",
|
|
370
|
-
")": "%29",
|
|
371
|
-
"~": "%7E",
|
|
372
|
-
"%20": "+",
|
|
373
|
-
"%00": "\0"
|
|
374
|
-
};
|
|
375
|
-
return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(r) {
|
|
376
|
-
return t[r];
|
|
377
|
-
});
|
|
378
|
-
}
|
|
379
|
-
function pt(e, t) {
|
|
380
|
-
this._pairs = [], e && Ie(e, this, t);
|
|
381
|
-
}
|
|
382
|
-
const Rn = pt.prototype;
|
|
383
|
-
Rn.append = function(t, n) {
|
|
384
|
-
this._pairs.push([t, n]);
|
|
385
|
-
};
|
|
386
|
-
Rn.toString = function(t) {
|
|
387
|
-
const n = t ? function(r) {
|
|
388
|
-
return t.call(this, r, At);
|
|
389
|
-
} : At;
|
|
390
|
-
return this._pairs.map(function(o) {
|
|
391
|
-
return n(o[0]) + "=" + n(o[1]);
|
|
392
|
-
}, "").join("&");
|
|
393
|
-
};
|
|
394
|
-
function Yr(e) {
|
|
395
|
-
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
396
|
-
}
|
|
397
|
-
function Sn(e, t, n) {
|
|
398
|
-
if (!t)
|
|
399
|
-
return e;
|
|
400
|
-
const r = n && n.encode || Yr, o = n && n.serialize;
|
|
401
|
-
let s;
|
|
402
|
-
if (o ? s = o(t, n) : s = h.isURLSearchParams(t) ? t.toString() : new pt(t, n).toString(r), s) {
|
|
403
|
-
const i = e.indexOf("#");
|
|
404
|
-
i !== -1 && (e = e.slice(0, i)), e += (e.indexOf("?") === -1 ? "?" : "&") + s;
|
|
405
|
-
}
|
|
406
|
-
return e;
|
|
407
|
-
}
|
|
408
|
-
class Tt {
|
|
409
|
-
constructor() {
|
|
410
|
-
this.handlers = [];
|
|
411
|
-
}
|
|
412
|
-
/**
|
|
413
|
-
* Add a new interceptor to the stack
|
|
414
|
-
*
|
|
415
|
-
* @param {Function} fulfilled The function to handle `then` for a `Promise`
|
|
416
|
-
* @param {Function} rejected The function to handle `reject` for a `Promise`
|
|
417
|
-
*
|
|
418
|
-
* @return {Number} An ID used to remove interceptor later
|
|
419
|
-
*/
|
|
420
|
-
use(t, n, r) {
|
|
421
|
-
return this.handlers.push({
|
|
422
|
-
fulfilled: t,
|
|
423
|
-
rejected: n,
|
|
424
|
-
synchronous: r ? r.synchronous : !1,
|
|
425
|
-
runWhen: r ? r.runWhen : null
|
|
426
|
-
}), this.handlers.length - 1;
|
|
427
|
-
}
|
|
428
|
-
/**
|
|
429
|
-
* Remove an interceptor from the stack
|
|
430
|
-
*
|
|
431
|
-
* @param {Number} id The ID that was returned by `use`
|
|
432
|
-
*
|
|
433
|
-
* @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
|
|
434
|
-
*/
|
|
435
|
-
eject(t) {
|
|
436
|
-
this.handlers[t] && (this.handlers[t] = null);
|
|
437
|
-
}
|
|
438
|
-
/**
|
|
439
|
-
* Clear all interceptors from the stack
|
|
440
|
-
*
|
|
441
|
-
* @returns {void}
|
|
442
|
-
*/
|
|
443
|
-
clear() {
|
|
444
|
-
this.handlers && (this.handlers = []);
|
|
445
|
-
}
|
|
446
|
-
/**
|
|
447
|
-
* Iterate over all the registered interceptors
|
|
448
|
-
*
|
|
449
|
-
* This method is particularly useful for skipping over any
|
|
450
|
-
* interceptors that may have become `null` calling `eject`.
|
|
451
|
-
*
|
|
452
|
-
* @param {Function} fn The function to call for each interceptor
|
|
453
|
-
*
|
|
454
|
-
* @returns {void}
|
|
455
|
-
*/
|
|
456
|
-
forEach(t) {
|
|
457
|
-
h.forEach(this.handlers, function(r) {
|
|
458
|
-
r !== null && t(r);
|
|
459
|
-
});
|
|
460
|
-
}
|
|
461
|
-
}
|
|
462
|
-
const On = {
|
|
463
|
-
silentJSONParsing: !0,
|
|
464
|
-
forcedJSONParsing: !0,
|
|
465
|
-
clarifyTimeoutError: !1
|
|
466
|
-
}, Zr = typeof URLSearchParams < "u" ? URLSearchParams : pt, eo = typeof FormData < "u" ? FormData : null, to = typeof Blob < "u" ? Blob : null, no = {
|
|
467
|
-
isBrowser: !0,
|
|
468
|
-
classes: {
|
|
469
|
-
URLSearchParams: Zr,
|
|
470
|
-
FormData: eo,
|
|
471
|
-
Blob: to
|
|
472
|
-
},
|
|
473
|
-
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
474
|
-
}, mt = typeof window < "u" && typeof document < "u", et = typeof navigator == "object" && navigator || void 0, ro = mt && (!et || ["ReactNative", "NativeScript", "NS"].indexOf(et.product) < 0), oo = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
475
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", so = mt && window.location.href || "http://localhost", io = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
476
|
-
__proto__: null,
|
|
477
|
-
hasBrowserEnv: mt,
|
|
478
|
-
hasStandardBrowserEnv: ro,
|
|
479
|
-
hasStandardBrowserWebWorkerEnv: oo,
|
|
480
|
-
navigator: et,
|
|
481
|
-
origin: so
|
|
482
|
-
}, Symbol.toStringTag, { value: "Module" })), j = {
|
|
483
|
-
...io,
|
|
484
|
-
...no
|
|
485
|
-
};
|
|
486
|
-
function ao(e, t) {
|
|
487
|
-
return Ie(e, new j.classes.URLSearchParams(), Object.assign({
|
|
488
|
-
visitor: function(n, r, o, s) {
|
|
489
|
-
return j.isNode && h.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : s.defaultVisitor.apply(this, arguments);
|
|
490
|
-
}
|
|
491
|
-
}, t));
|
|
492
|
-
}
|
|
493
|
-
function co(e) {
|
|
494
|
-
return h.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
|
495
|
-
}
|
|
496
|
-
function lo(e) {
|
|
497
|
-
const t = {}, n = Object.keys(e);
|
|
498
|
-
let r;
|
|
499
|
-
const o = n.length;
|
|
500
|
-
let s;
|
|
501
|
-
for (r = 0; r < o; r++)
|
|
502
|
-
s = n[r], t[s] = e[s];
|
|
503
|
-
return t;
|
|
504
|
-
}
|
|
505
|
-
function Nn(e) {
|
|
506
|
-
function t(n, r, o, s) {
|
|
507
|
-
let i = n[s++];
|
|
508
|
-
if (i === "__proto__") return !0;
|
|
509
|
-
const c = Number.isFinite(+i), u = s >= n.length;
|
|
510
|
-
return i = !i && h.isArray(o) ? o.length : i, u ? (h.hasOwnProp(o, i) ? o[i] = [o[i], r] : o[i] = r, !c) : ((!o[i] || !h.isObject(o[i])) && (o[i] = []), t(n, r, o[i], s) && h.isArray(o[i]) && (o[i] = lo(o[i])), !c);
|
|
511
|
-
}
|
|
512
|
-
if (h.isFormData(e) && h.isFunction(e.entries)) {
|
|
513
|
-
const n = {};
|
|
514
|
-
return h.forEachEntry(e, (r, o) => {
|
|
515
|
-
t(co(r), o, n, 0);
|
|
516
|
-
}), n;
|
|
517
|
-
}
|
|
518
|
-
return null;
|
|
519
|
-
}
|
|
520
|
-
function uo(e, t, n) {
|
|
521
|
-
if (h.isString(e))
|
|
522
|
-
try {
|
|
523
|
-
return (t || JSON.parse)(e), h.trim(e);
|
|
524
|
-
} catch (r) {
|
|
525
|
-
if (r.name !== "SyntaxError")
|
|
526
|
-
throw r;
|
|
527
|
-
}
|
|
528
|
-
return (n || JSON.stringify)(e);
|
|
529
|
-
}
|
|
530
|
-
const _e = {
|
|
531
|
-
transitional: On,
|
|
532
|
-
adapter: ["xhr", "http", "fetch"],
|
|
533
|
-
transformRequest: [function(t, n) {
|
|
534
|
-
const r = n.getContentType() || "", o = r.indexOf("application/json") > -1, s = h.isObject(t);
|
|
535
|
-
if (s && h.isHTMLForm(t) && (t = new FormData(t)), h.isFormData(t))
|
|
536
|
-
return o ? JSON.stringify(Nn(t)) : t;
|
|
537
|
-
if (h.isArrayBuffer(t) || h.isBuffer(t) || h.isStream(t) || h.isFile(t) || h.isBlob(t) || h.isReadableStream(t))
|
|
538
|
-
return t;
|
|
539
|
-
if (h.isArrayBufferView(t))
|
|
540
|
-
return t.buffer;
|
|
541
|
-
if (h.isURLSearchParams(t))
|
|
542
|
-
return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
|
|
543
|
-
let c;
|
|
544
|
-
if (s) {
|
|
545
|
-
if (r.indexOf("application/x-www-form-urlencoded") > -1)
|
|
546
|
-
return ao(t, this.formSerializer).toString();
|
|
547
|
-
if ((c = h.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
|
|
548
|
-
const u = this.env && this.env.FormData;
|
|
549
|
-
return Ie(
|
|
550
|
-
c ? { "files[]": t } : t,
|
|
551
|
-
u && new u(),
|
|
552
|
-
this.formSerializer
|
|
553
|
-
);
|
|
554
|
-
}
|
|
555
|
-
}
|
|
556
|
-
return s || o ? (n.setContentType("application/json", !1), uo(t)) : t;
|
|
557
|
-
}],
|
|
558
|
-
transformResponse: [function(t) {
|
|
559
|
-
const n = this.transitional || _e.transitional, r = n && n.forcedJSONParsing, o = this.responseType === "json";
|
|
560
|
-
if (h.isResponse(t) || h.isReadableStream(t))
|
|
561
|
-
return t;
|
|
562
|
-
if (t && h.isString(t) && (r && !this.responseType || o)) {
|
|
563
|
-
const i = !(n && n.silentJSONParsing) && o;
|
|
564
|
-
try {
|
|
565
|
-
return JSON.parse(t);
|
|
566
|
-
} catch (c) {
|
|
567
|
-
if (i)
|
|
568
|
-
throw c.name === "SyntaxError" ? O.from(c, O.ERR_BAD_RESPONSE, this, null, this.response) : c;
|
|
569
|
-
}
|
|
570
|
-
}
|
|
571
|
-
return t;
|
|
572
|
-
}],
|
|
573
|
-
/**
|
|
574
|
-
* A timeout in milliseconds to abort a request. If set to 0 (default) a
|
|
575
|
-
* timeout is not created.
|
|
576
|
-
*/
|
|
577
|
-
timeout: 0,
|
|
578
|
-
xsrfCookieName: "XSRF-TOKEN",
|
|
579
|
-
xsrfHeaderName: "X-XSRF-TOKEN",
|
|
580
|
-
maxContentLength: -1,
|
|
581
|
-
maxBodyLength: -1,
|
|
582
|
-
env: {
|
|
583
|
-
FormData: j.classes.FormData,
|
|
584
|
-
Blob: j.classes.Blob
|
|
585
|
-
},
|
|
586
|
-
validateStatus: function(t) {
|
|
587
|
-
return t >= 200 && t < 300;
|
|
588
|
-
},
|
|
589
|
-
headers: {
|
|
590
|
-
common: {
|
|
591
|
-
Accept: "application/json, text/plain, */*",
|
|
592
|
-
"Content-Type": void 0
|
|
593
|
-
}
|
|
594
|
-
}
|
|
595
|
-
};
|
|
596
|
-
h.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
597
|
-
_e.headers[e] = {};
|
|
598
|
-
});
|
|
599
|
-
const fo = h.toObjectSet([
|
|
600
|
-
"age",
|
|
601
|
-
"authorization",
|
|
602
|
-
"content-length",
|
|
603
|
-
"content-type",
|
|
604
|
-
"etag",
|
|
605
|
-
"expires",
|
|
606
|
-
"from",
|
|
607
|
-
"host",
|
|
608
|
-
"if-modified-since",
|
|
609
|
-
"if-unmodified-since",
|
|
610
|
-
"last-modified",
|
|
611
|
-
"location",
|
|
612
|
-
"max-forwards",
|
|
613
|
-
"proxy-authorization",
|
|
614
|
-
"referer",
|
|
615
|
-
"retry-after",
|
|
616
|
-
"user-agent"
|
|
617
|
-
]), ho = (e) => {
|
|
618
|
-
const t = {};
|
|
619
|
-
let n, r, o;
|
|
620
|
-
return e && e.split(`
|
|
621
|
-
`).forEach(function(i) {
|
|
622
|
-
o = i.indexOf(":"), n = i.substring(0, o).trim().toLowerCase(), r = i.substring(o + 1).trim(), !(!n || t[n] && fo[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
|
|
623
|
-
}), t;
|
|
624
|
-
}, Ct = Symbol("internals");
|
|
625
|
-
function de(e) {
|
|
626
|
-
return e && String(e).trim().toLowerCase();
|
|
627
|
-
}
|
|
628
|
-
function xe(e) {
|
|
629
|
-
return e === !1 || e == null ? e : h.isArray(e) ? e.map(xe) : String(e);
|
|
630
|
-
}
|
|
631
|
-
function po(e) {
|
|
632
|
-
const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
633
|
-
let r;
|
|
634
|
-
for (; r = n.exec(e); )
|
|
635
|
-
t[r[1]] = r[2];
|
|
636
|
-
return t;
|
|
637
|
-
}
|
|
638
|
-
const mo = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
639
|
-
function ze(e, t, n, r, o) {
|
|
640
|
-
if (h.isFunction(r))
|
|
641
|
-
return r.call(this, t, n);
|
|
642
|
-
if (o && (t = n), !!h.isString(t)) {
|
|
643
|
-
if (h.isString(r))
|
|
644
|
-
return t.indexOf(r) !== -1;
|
|
645
|
-
if (h.isRegExp(r))
|
|
646
|
-
return r.test(t);
|
|
647
|
-
}
|
|
648
|
-
}
|
|
649
|
-
function go(e) {
|
|
650
|
-
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
|
|
651
|
-
}
|
|
652
|
-
function yo(e, t) {
|
|
653
|
-
const n = h.toCamelCase(" " + t);
|
|
654
|
-
["get", "set", "has"].forEach((r) => {
|
|
655
|
-
Object.defineProperty(e, r + n, {
|
|
656
|
-
value: function(o, s, i) {
|
|
657
|
-
return this[r].call(this, t, o, s, i);
|
|
658
|
-
},
|
|
659
|
-
configurable: !0
|
|
660
|
-
});
|
|
661
|
-
});
|
|
662
|
-
}
|
|
663
|
-
class V {
|
|
664
|
-
constructor(t) {
|
|
665
|
-
t && this.set(t);
|
|
666
|
-
}
|
|
667
|
-
set(t, n, r) {
|
|
668
|
-
const o = this;
|
|
669
|
-
function s(c, u, f) {
|
|
670
|
-
const a = de(u);
|
|
671
|
-
if (!a)
|
|
672
|
-
throw new Error("header name must be a non-empty string");
|
|
673
|
-
const l = h.findKey(o, a);
|
|
674
|
-
(!l || o[l] === void 0 || f === !0 || f === void 0 && o[l] !== !1) && (o[l || u] = xe(c));
|
|
675
|
-
}
|
|
676
|
-
const i = (c, u) => h.forEach(c, (f, a) => s(f, a, u));
|
|
677
|
-
if (h.isPlainObject(t) || t instanceof this.constructor)
|
|
678
|
-
i(t, n);
|
|
679
|
-
else if (h.isString(t) && (t = t.trim()) && !mo(t))
|
|
680
|
-
i(ho(t), n);
|
|
681
|
-
else if (h.isHeaders(t))
|
|
682
|
-
for (const [c, u] of t.entries())
|
|
683
|
-
s(u, c, r);
|
|
684
|
-
else
|
|
685
|
-
t != null && s(n, t, r);
|
|
686
|
-
return this;
|
|
687
|
-
}
|
|
688
|
-
get(t, n) {
|
|
689
|
-
if (t = de(t), t) {
|
|
690
|
-
const r = h.findKey(this, t);
|
|
691
|
-
if (r) {
|
|
692
|
-
const o = this[r];
|
|
693
|
-
if (!n)
|
|
694
|
-
return o;
|
|
695
|
-
if (n === !0)
|
|
696
|
-
return po(o);
|
|
697
|
-
if (h.isFunction(n))
|
|
698
|
-
return n.call(this, o, r);
|
|
699
|
-
if (h.isRegExp(n))
|
|
700
|
-
return n.exec(o);
|
|
701
|
-
throw new TypeError("parser must be boolean|regexp|function");
|
|
702
|
-
}
|
|
703
|
-
}
|
|
704
|
-
}
|
|
705
|
-
has(t, n) {
|
|
706
|
-
if (t = de(t), t) {
|
|
707
|
-
const r = h.findKey(this, t);
|
|
708
|
-
return !!(r && this[r] !== void 0 && (!n || ze(this, this[r], r, n)));
|
|
709
|
-
}
|
|
710
|
-
return !1;
|
|
711
|
-
}
|
|
712
|
-
delete(t, n) {
|
|
713
|
-
const r = this;
|
|
714
|
-
let o = !1;
|
|
715
|
-
function s(i) {
|
|
716
|
-
if (i = de(i), i) {
|
|
717
|
-
const c = h.findKey(r, i);
|
|
718
|
-
c && (!n || ze(r, r[c], c, n)) && (delete r[c], o = !0);
|
|
719
|
-
}
|
|
720
|
-
}
|
|
721
|
-
return h.isArray(t) ? t.forEach(s) : s(t), o;
|
|
722
|
-
}
|
|
723
|
-
clear(t) {
|
|
724
|
-
const n = Object.keys(this);
|
|
725
|
-
let r = n.length, o = !1;
|
|
726
|
-
for (; r--; ) {
|
|
727
|
-
const s = n[r];
|
|
728
|
-
(!t || ze(this, this[s], s, t, !0)) && (delete this[s], o = !0);
|
|
729
|
-
}
|
|
730
|
-
return o;
|
|
731
|
-
}
|
|
732
|
-
normalize(t) {
|
|
733
|
-
const n = this, r = {};
|
|
734
|
-
return h.forEach(this, (o, s) => {
|
|
735
|
-
const i = h.findKey(r, s);
|
|
736
|
-
if (i) {
|
|
737
|
-
n[i] = xe(o), delete n[s];
|
|
738
|
-
return;
|
|
739
|
-
}
|
|
740
|
-
const c = t ? go(s) : String(s).trim();
|
|
741
|
-
c !== s && delete n[s], n[c] = xe(o), r[c] = !0;
|
|
742
|
-
}), this;
|
|
743
|
-
}
|
|
744
|
-
concat(...t) {
|
|
745
|
-
return this.constructor.concat(this, ...t);
|
|
746
|
-
}
|
|
747
|
-
toJSON(t) {
|
|
748
|
-
const n = /* @__PURE__ */ Object.create(null);
|
|
749
|
-
return h.forEach(this, (r, o) => {
|
|
750
|
-
r != null && r !== !1 && (n[o] = t && h.isArray(r) ? r.join(", ") : r);
|
|
751
|
-
}), n;
|
|
752
|
-
}
|
|
753
|
-
[Symbol.iterator]() {
|
|
754
|
-
return Object.entries(this.toJSON())[Symbol.iterator]();
|
|
755
|
-
}
|
|
756
|
-
toString() {
|
|
757
|
-
return Object.entries(this.toJSON()).map(([t, n]) => t + ": " + n).join(`
|
|
758
|
-
`);
|
|
759
|
-
}
|
|
760
|
-
get [Symbol.toStringTag]() {
|
|
761
|
-
return "AxiosHeaders";
|
|
762
|
-
}
|
|
763
|
-
static from(t) {
|
|
764
|
-
return t instanceof this ? t : new this(t);
|
|
765
|
-
}
|
|
766
|
-
static concat(t, ...n) {
|
|
767
|
-
const r = new this(t);
|
|
768
|
-
return n.forEach((o) => r.set(o)), r;
|
|
769
|
-
}
|
|
770
|
-
static accessor(t) {
|
|
771
|
-
const r = (this[Ct] = this[Ct] = {
|
|
772
|
-
accessors: {}
|
|
773
|
-
}).accessors, o = this.prototype;
|
|
774
|
-
function s(i) {
|
|
775
|
-
const c = de(i);
|
|
776
|
-
r[c] || (yo(o, i), r[c] = !0);
|
|
777
|
-
}
|
|
778
|
-
return h.isArray(t) ? t.forEach(s) : s(t), this;
|
|
779
|
-
}
|
|
780
|
-
}
|
|
781
|
-
V.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
782
|
-
h.reduceDescriptors(V.prototype, ({ value: e }, t) => {
|
|
783
|
-
let n = t[0].toUpperCase() + t.slice(1);
|
|
784
|
-
return {
|
|
785
|
-
get: () => e,
|
|
786
|
-
set(r) {
|
|
787
|
-
this[n] = r;
|
|
788
|
-
}
|
|
789
|
-
};
|
|
790
|
-
});
|
|
791
|
-
h.freezeMethods(V);
|
|
792
|
-
function Ke(e, t) {
|
|
793
|
-
const n = this || _e, r = t || n, o = V.from(r.headers);
|
|
794
|
-
let s = r.data;
|
|
795
|
-
return h.forEach(e, function(c) {
|
|
796
|
-
s = c.call(n, s, o.normalize(), t ? t.status : void 0);
|
|
797
|
-
}), o.normalize(), s;
|
|
798
|
-
}
|
|
799
|
-
function Pn(e) {
|
|
800
|
-
return !!(e && e.__CANCEL__);
|
|
801
|
-
}
|
|
802
|
-
function ue(e, t, n) {
|
|
803
|
-
O.call(this, e ?? "canceled", O.ERR_CANCELED, t, n), this.name = "CanceledError";
|
|
804
|
-
}
|
|
805
|
-
h.inherits(ue, O, {
|
|
806
|
-
__CANCEL__: !0
|
|
807
|
-
});
|
|
808
|
-
function xn(e, t, n) {
|
|
809
|
-
const r = n.config.validateStatus;
|
|
810
|
-
!n.status || !r || r(n.status) ? e(n) : t(new O(
|
|
811
|
-
"Request failed with status code " + n.status,
|
|
812
|
-
[O.ERR_BAD_REQUEST, O.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
|
|
813
|
-
n.config,
|
|
814
|
-
n.request,
|
|
815
|
-
n
|
|
816
|
-
));
|
|
817
|
-
}
|
|
818
|
-
function Eo(e) {
|
|
819
|
-
const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
|
820
|
-
return t && t[1] || "";
|
|
821
|
-
}
|
|
822
|
-
function vo(e, t) {
|
|
823
|
-
e = e || 10;
|
|
824
|
-
const n = new Array(e), r = new Array(e);
|
|
825
|
-
let o = 0, s = 0, i;
|
|
826
|
-
return t = t !== void 0 ? t : 1e3, function(u) {
|
|
827
|
-
const f = Date.now(), a = r[s];
|
|
828
|
-
i || (i = f), n[o] = u, r[o] = f;
|
|
829
|
-
let l = s, d = 0;
|
|
830
|
-
for (; l !== o; )
|
|
831
|
-
d += n[l++], l = l % e;
|
|
832
|
-
if (o = (o + 1) % e, o === s && (s = (s + 1) % e), f - i < t)
|
|
833
|
-
return;
|
|
834
|
-
const m = a && f - a;
|
|
835
|
-
return m ? Math.round(d * 1e3 / m) : void 0;
|
|
836
|
-
};
|
|
837
|
-
}
|
|
838
|
-
function bo(e, t) {
|
|
839
|
-
let n = 0, r = 1e3 / t, o, s;
|
|
840
|
-
const i = (f, a = Date.now()) => {
|
|
841
|
-
n = a, o = null, s && (clearTimeout(s), s = null), e.apply(null, f);
|
|
842
|
-
};
|
|
843
|
-
return [(...f) => {
|
|
844
|
-
const a = Date.now(), l = a - n;
|
|
845
|
-
l >= r ? i(f, a) : (o = f, s || (s = setTimeout(() => {
|
|
846
|
-
s = null, i(o);
|
|
847
|
-
}, r - l)));
|
|
848
|
-
}, () => o && i(o)];
|
|
849
|
-
}
|
|
850
|
-
const Ae = (e, t, n = 3) => {
|
|
851
|
-
let r = 0;
|
|
852
|
-
const o = vo(50, 250);
|
|
853
|
-
return bo((s) => {
|
|
854
|
-
const i = s.loaded, c = s.lengthComputable ? s.total : void 0, u = i - r, f = o(u), a = i <= c;
|
|
855
|
-
r = i;
|
|
856
|
-
const l = {
|
|
857
|
-
loaded: i,
|
|
858
|
-
total: c,
|
|
859
|
-
progress: c ? i / c : void 0,
|
|
860
|
-
bytes: u,
|
|
861
|
-
rate: f || void 0,
|
|
862
|
-
estimated: f && c && a ? (c - i) / f : void 0,
|
|
863
|
-
event: s,
|
|
864
|
-
lengthComputable: c != null,
|
|
865
|
-
[t ? "download" : "upload"]: !0
|
|
866
|
-
};
|
|
867
|
-
e(l);
|
|
868
|
-
}, n);
|
|
869
|
-
}, kt = (e, t) => {
|
|
870
|
-
const n = e != null;
|
|
871
|
-
return [(r) => t[0]({
|
|
872
|
-
lengthComputable: n,
|
|
873
|
-
total: e,
|
|
874
|
-
loaded: r
|
|
875
|
-
}), t[1]];
|
|
876
|
-
}, Dt = (e) => (...t) => h.asap(() => e(...t)), wo = j.hasStandardBrowserEnv ? (
|
|
877
|
-
// Standard browser envs have full support of the APIs needed to test
|
|
878
|
-
// whether the request URL is of the same origin as current location.
|
|
879
|
-
function() {
|
|
880
|
-
const t = j.navigator && /(msie|trident)/i.test(j.navigator.userAgent), n = document.createElement("a");
|
|
881
|
-
let r;
|
|
882
|
-
function o(s) {
|
|
883
|
-
let i = s;
|
|
884
|
-
return t && (n.setAttribute("href", i), i = n.href), n.setAttribute("href", i), {
|
|
885
|
-
href: n.href,
|
|
886
|
-
protocol: n.protocol ? n.protocol.replace(/:$/, "") : "",
|
|
887
|
-
host: n.host,
|
|
888
|
-
search: n.search ? n.search.replace(/^\?/, "") : "",
|
|
889
|
-
hash: n.hash ? n.hash.replace(/^#/, "") : "",
|
|
890
|
-
hostname: n.hostname,
|
|
891
|
-
port: n.port,
|
|
892
|
-
pathname: n.pathname.charAt(0) === "/" ? n.pathname : "/" + n.pathname
|
|
893
|
-
};
|
|
894
|
-
}
|
|
895
|
-
return r = o(window.location.href), function(i) {
|
|
896
|
-
const c = h.isString(i) ? o(i) : i;
|
|
897
|
-
return c.protocol === r.protocol && c.host === r.host;
|
|
898
|
-
};
|
|
899
|
-
}()
|
|
900
|
-
) : (
|
|
901
|
-
// Non standard browser envs (web workers, react-native) lack needed support.
|
|
902
|
-
/* @__PURE__ */ function() {
|
|
903
|
-
return function() {
|
|
904
|
-
return !0;
|
|
905
|
-
};
|
|
906
|
-
}()
|
|
907
|
-
), _o = j.hasStandardBrowserEnv ? (
|
|
908
|
-
// Standard browser envs support document.cookie
|
|
909
|
-
{
|
|
910
|
-
write(e, t, n, r, o, s) {
|
|
911
|
-
const i = [e + "=" + encodeURIComponent(t)];
|
|
912
|
-
h.isNumber(n) && i.push("expires=" + new Date(n).toGMTString()), h.isString(r) && i.push("path=" + r), h.isString(o) && i.push("domain=" + o), s === !0 && i.push("secure"), document.cookie = i.join("; ");
|
|
913
|
-
},
|
|
914
|
-
read(e) {
|
|
915
|
-
const t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)"));
|
|
916
|
-
return t ? decodeURIComponent(t[3]) : null;
|
|
917
|
-
},
|
|
918
|
-
remove(e) {
|
|
919
|
-
this.write(e, "", Date.now() - 864e5);
|
|
920
|
-
}
|
|
921
|
-
}
|
|
922
|
-
) : (
|
|
923
|
-
// Non-standard browser env (web workers, react-native) lack needed support.
|
|
924
|
-
{
|
|
925
|
-
write() {
|
|
926
|
-
},
|
|
927
|
-
read() {
|
|
928
|
-
return null;
|
|
929
|
-
},
|
|
930
|
-
remove() {
|
|
931
|
-
}
|
|
932
|
-
}
|
|
933
|
-
);
|
|
934
|
-
function Ro(e) {
|
|
935
|
-
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
|
|
936
|
-
}
|
|
937
|
-
function So(e, t) {
|
|
938
|
-
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
939
|
-
}
|
|
940
|
-
function An(e, t) {
|
|
941
|
-
return e && !Ro(t) ? So(e, t) : t;
|
|
942
|
-
}
|
|
943
|
-
const $t = (e) => e instanceof V ? { ...e } : e;
|
|
944
|
-
function te(e, t) {
|
|
945
|
-
t = t || {};
|
|
946
|
-
const n = {};
|
|
947
|
-
function r(f, a, l) {
|
|
948
|
-
return h.isPlainObject(f) && h.isPlainObject(a) ? h.merge.call({ caseless: l }, f, a) : h.isPlainObject(a) ? h.merge({}, a) : h.isArray(a) ? a.slice() : a;
|
|
949
|
-
}
|
|
950
|
-
function o(f, a, l) {
|
|
951
|
-
if (h.isUndefined(a)) {
|
|
952
|
-
if (!h.isUndefined(f))
|
|
953
|
-
return r(void 0, f, l);
|
|
954
|
-
} else return r(f, a, l);
|
|
955
|
-
}
|
|
956
|
-
function s(f, a) {
|
|
957
|
-
if (!h.isUndefined(a))
|
|
958
|
-
return r(void 0, a);
|
|
959
|
-
}
|
|
960
|
-
function i(f, a) {
|
|
961
|
-
if (h.isUndefined(a)) {
|
|
962
|
-
if (!h.isUndefined(f))
|
|
963
|
-
return r(void 0, f);
|
|
964
|
-
} else return r(void 0, a);
|
|
965
|
-
}
|
|
966
|
-
function c(f, a, l) {
|
|
967
|
-
if (l in t)
|
|
968
|
-
return r(f, a);
|
|
969
|
-
if (l in e)
|
|
970
|
-
return r(void 0, f);
|
|
971
|
-
}
|
|
972
|
-
const u = {
|
|
973
|
-
url: s,
|
|
974
|
-
method: s,
|
|
975
|
-
data: s,
|
|
976
|
-
baseURL: i,
|
|
977
|
-
transformRequest: i,
|
|
978
|
-
transformResponse: i,
|
|
979
|
-
paramsSerializer: i,
|
|
980
|
-
timeout: i,
|
|
981
|
-
timeoutMessage: i,
|
|
982
|
-
withCredentials: i,
|
|
983
|
-
withXSRFToken: i,
|
|
984
|
-
adapter: i,
|
|
985
|
-
responseType: i,
|
|
986
|
-
xsrfCookieName: i,
|
|
987
|
-
xsrfHeaderName: i,
|
|
988
|
-
onUploadProgress: i,
|
|
989
|
-
onDownloadProgress: i,
|
|
990
|
-
decompress: i,
|
|
991
|
-
maxContentLength: i,
|
|
992
|
-
maxBodyLength: i,
|
|
993
|
-
beforeRedirect: i,
|
|
994
|
-
transport: i,
|
|
995
|
-
httpAgent: i,
|
|
996
|
-
httpsAgent: i,
|
|
997
|
-
cancelToken: i,
|
|
998
|
-
socketPath: i,
|
|
999
|
-
responseEncoding: i,
|
|
1000
|
-
validateStatus: c,
|
|
1001
|
-
headers: (f, a) => o($t(f), $t(a), !0)
|
|
1002
|
-
};
|
|
1003
|
-
return h.forEach(Object.keys(Object.assign({}, e, t)), function(a) {
|
|
1004
|
-
const l = u[a] || o, d = l(e[a], t[a], a);
|
|
1005
|
-
h.isUndefined(d) && l !== c || (n[a] = d);
|
|
1006
|
-
}), n;
|
|
1007
|
-
}
|
|
1008
|
-
const Tn = (e) => {
|
|
1009
|
-
const t = te({}, e);
|
|
1010
|
-
let { data: n, withXSRFToken: r, xsrfHeaderName: o, xsrfCookieName: s, headers: i, auth: c } = t;
|
|
1011
|
-
t.headers = i = V.from(i), t.url = Sn(An(t.baseURL, t.url), e.params, e.paramsSerializer), c && i.set(
|
|
1012
|
-
"Authorization",
|
|
1013
|
-
"Basic " + btoa((c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : ""))
|
|
1014
|
-
);
|
|
1015
|
-
let u;
|
|
1016
|
-
if (h.isFormData(n)) {
|
|
1017
|
-
if (j.hasStandardBrowserEnv || j.hasStandardBrowserWebWorkerEnv)
|
|
1018
|
-
i.setContentType(void 0);
|
|
1019
|
-
else if ((u = i.getContentType()) !== !1) {
|
|
1020
|
-
const [f, ...a] = u ? u.split(";").map((l) => l.trim()).filter(Boolean) : [];
|
|
1021
|
-
i.setContentType([f || "multipart/form-data", ...a].join("; "));
|
|
1022
|
-
}
|
|
1023
|
-
}
|
|
1024
|
-
if (j.hasStandardBrowserEnv && (r && h.isFunction(r) && (r = r(t)), r || r !== !1 && wo(t.url))) {
|
|
1025
|
-
const f = o && s && _o.read(s);
|
|
1026
|
-
f && i.set(o, f);
|
|
1027
|
-
}
|
|
1028
|
-
return t;
|
|
1029
|
-
}, Oo = typeof XMLHttpRequest < "u", No = Oo && function(e) {
|
|
1030
|
-
return new Promise(function(n, r) {
|
|
1031
|
-
const o = Tn(e);
|
|
1032
|
-
let s = o.data;
|
|
1033
|
-
const i = V.from(o.headers).normalize();
|
|
1034
|
-
let { responseType: c, onUploadProgress: u, onDownloadProgress: f } = o, a, l, d, m, g;
|
|
1035
|
-
function E() {
|
|
1036
|
-
m && m(), g && g(), o.cancelToken && o.cancelToken.unsubscribe(a), o.signal && o.signal.removeEventListener("abort", a);
|
|
1037
|
-
}
|
|
1038
|
-
let y = new XMLHttpRequest();
|
|
1039
|
-
y.open(o.method.toUpperCase(), o.url, !0), y.timeout = o.timeout;
|
|
1040
|
-
function S() {
|
|
1041
|
-
if (!y)
|
|
1042
|
-
return;
|
|
1043
|
-
const R = V.from(
|
|
1044
|
-
"getAllResponseHeaders" in y && y.getAllResponseHeaders()
|
|
1045
|
-
), C = {
|
|
1046
|
-
data: !c || c === "text" || c === "json" ? y.responseText : y.response,
|
|
1047
|
-
status: y.status,
|
|
1048
|
-
statusText: y.statusText,
|
|
1049
|
-
headers: R,
|
|
1050
|
-
config: e,
|
|
1051
|
-
request: y
|
|
1052
|
-
};
|
|
1053
|
-
xn(function(I) {
|
|
1054
|
-
n(I), E();
|
|
1055
|
-
}, function(I) {
|
|
1056
|
-
r(I), E();
|
|
1057
|
-
}, C), y = null;
|
|
1058
|
-
}
|
|
1059
|
-
"onloadend" in y ? y.onloadend = S : y.onreadystatechange = function() {
|
|
1060
|
-
!y || y.readyState !== 4 || y.status === 0 && !(y.responseURL && y.responseURL.indexOf("file:") === 0) || setTimeout(S);
|
|
1061
|
-
}, y.onabort = function() {
|
|
1062
|
-
y && (r(new O("Request aborted", O.ECONNABORTED, e, y)), y = null);
|
|
1063
|
-
}, y.onerror = function() {
|
|
1064
|
-
r(new O("Network Error", O.ERR_NETWORK, e, y)), y = null;
|
|
1065
|
-
}, y.ontimeout = function() {
|
|
1066
|
-
let k = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
|
|
1067
|
-
const C = o.transitional || On;
|
|
1068
|
-
o.timeoutErrorMessage && (k = o.timeoutErrorMessage), r(new O(
|
|
1069
|
-
k,
|
|
1070
|
-
C.clarifyTimeoutError ? O.ETIMEDOUT : O.ECONNABORTED,
|
|
1071
|
-
e,
|
|
1072
|
-
y
|
|
1073
|
-
)), y = null;
|
|
1074
|
-
}, s === void 0 && i.setContentType(null), "setRequestHeader" in y && h.forEach(i.toJSON(), function(k, C) {
|
|
1075
|
-
y.setRequestHeader(C, k);
|
|
1076
|
-
}), h.isUndefined(o.withCredentials) || (y.withCredentials = !!o.withCredentials), c && c !== "json" && (y.responseType = o.responseType), f && ([d, g] = Ae(f, !0), y.addEventListener("progress", d)), u && y.upload && ([l, m] = Ae(u), y.upload.addEventListener("progress", l), y.upload.addEventListener("loadend", m)), (o.cancelToken || o.signal) && (a = (R) => {
|
|
1077
|
-
y && (r(!R || R.type ? new ue(null, e, y) : R), y.abort(), y = null);
|
|
1078
|
-
}, o.cancelToken && o.cancelToken.subscribe(a), o.signal && (o.signal.aborted ? a() : o.signal.addEventListener("abort", a)));
|
|
1079
|
-
const _ = Eo(o.url);
|
|
1080
|
-
if (_ && j.protocols.indexOf(_) === -1) {
|
|
1081
|
-
r(new O("Unsupported protocol " + _ + ":", O.ERR_BAD_REQUEST, e));
|
|
1082
|
-
return;
|
|
1083
|
-
}
|
|
1084
|
-
y.send(s || null);
|
|
1085
|
-
});
|
|
1086
|
-
}, Po = (e, t) => {
|
|
1087
|
-
const { length: n } = e = e ? e.filter(Boolean) : [];
|
|
1088
|
-
if (t || n) {
|
|
1089
|
-
let r = new AbortController(), o;
|
|
1090
|
-
const s = function(f) {
|
|
1091
|
-
if (!o) {
|
|
1092
|
-
o = !0, c();
|
|
1093
|
-
const a = f instanceof Error ? f : this.reason;
|
|
1094
|
-
r.abort(a instanceof O ? a : new ue(a instanceof Error ? a.message : a));
|
|
1095
|
-
}
|
|
1096
|
-
};
|
|
1097
|
-
let i = t && setTimeout(() => {
|
|
1098
|
-
i = null, s(new O(`timeout ${t} of ms exceeded`, O.ETIMEDOUT));
|
|
1099
|
-
}, t);
|
|
1100
|
-
const c = () => {
|
|
1101
|
-
e && (i && clearTimeout(i), i = null, e.forEach((f) => {
|
|
1102
|
-
f.unsubscribe ? f.unsubscribe(s) : f.removeEventListener("abort", s);
|
|
1103
|
-
}), e = null);
|
|
1104
|
-
};
|
|
1105
|
-
e.forEach((f) => f.addEventListener("abort", s));
|
|
1106
|
-
const { signal: u } = r;
|
|
1107
|
-
return u.unsubscribe = () => h.asap(c), u;
|
|
1108
|
-
}
|
|
1109
|
-
}, xo = function* (e, t) {
|
|
1110
|
-
let n = e.byteLength;
|
|
1111
|
-
if (!t || n < t) {
|
|
1112
|
-
yield e;
|
|
1113
|
-
return;
|
|
1114
|
-
}
|
|
1115
|
-
let r = 0, o;
|
|
1116
|
-
for (; r < n; )
|
|
1117
|
-
o = r + t, yield e.slice(r, o), r = o;
|
|
1118
|
-
}, Ao = async function* (e, t) {
|
|
1119
|
-
for await (const n of To(e))
|
|
1120
|
-
yield* xo(n, t);
|
|
1121
|
-
}, To = async function* (e) {
|
|
1122
|
-
if (e[Symbol.asyncIterator]) {
|
|
1123
|
-
yield* e;
|
|
1124
|
-
return;
|
|
1125
|
-
}
|
|
1126
|
-
const t = e.getReader();
|
|
1127
|
-
try {
|
|
1128
|
-
for (; ; ) {
|
|
1129
|
-
const { done: n, value: r } = await t.read();
|
|
1130
|
-
if (n)
|
|
1131
|
-
break;
|
|
1132
|
-
yield r;
|
|
1133
|
-
}
|
|
1134
|
-
} finally {
|
|
1135
|
-
await t.cancel();
|
|
1136
|
-
}
|
|
1137
|
-
}, It = (e, t, n, r) => {
|
|
1138
|
-
const o = Ao(e, t);
|
|
1139
|
-
let s = 0, i, c = (u) => {
|
|
1140
|
-
i || (i = !0, r && r(u));
|
|
1141
|
-
};
|
|
1142
|
-
return new ReadableStream({
|
|
1143
|
-
async pull(u) {
|
|
1144
|
-
try {
|
|
1145
|
-
const { done: f, value: a } = await o.next();
|
|
1146
|
-
if (f) {
|
|
1147
|
-
c(), u.close();
|
|
1148
|
-
return;
|
|
1149
|
-
}
|
|
1150
|
-
let l = a.byteLength;
|
|
1151
|
-
if (n) {
|
|
1152
|
-
let d = s += l;
|
|
1153
|
-
n(d);
|
|
1154
|
-
}
|
|
1155
|
-
u.enqueue(new Uint8Array(a));
|
|
1156
|
-
} catch (f) {
|
|
1157
|
-
throw c(f), f;
|
|
1158
|
-
}
|
|
1159
|
-
},
|
|
1160
|
-
cancel(u) {
|
|
1161
|
-
return c(u), o.return();
|
|
1162
|
-
}
|
|
1163
|
-
}, {
|
|
1164
|
-
highWaterMark: 2
|
|
1165
|
-
});
|
|
1166
|
-
}, Le = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", Cn = Le && typeof ReadableStream == "function", Co = Le && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), kn = (e, ...t) => {
|
|
1167
|
-
try {
|
|
1168
|
-
return !!e(...t);
|
|
1169
|
-
} catch {
|
|
1170
|
-
return !1;
|
|
1171
|
-
}
|
|
1172
|
-
}, ko = Cn && kn(() => {
|
|
1173
|
-
let e = !1;
|
|
1174
|
-
const t = new Request(j.origin, {
|
|
1175
|
-
body: new ReadableStream(),
|
|
1176
|
-
method: "POST",
|
|
1177
|
-
get duplex() {
|
|
1178
|
-
return e = !0, "half";
|
|
1179
|
-
}
|
|
1180
|
-
}).headers.has("Content-Type");
|
|
1181
|
-
return e && !t;
|
|
1182
|
-
}), Lt = 64 * 1024, tt = Cn && kn(() => h.isReadableStream(new Response("").body)), Te = {
|
|
1183
|
-
stream: tt && ((e) => e.body)
|
|
1184
|
-
};
|
|
1185
|
-
Le && ((e) => {
|
|
1186
|
-
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
|
|
1187
|
-
!Te[t] && (Te[t] = h.isFunction(e[t]) ? (n) => n[t]() : (n, r) => {
|
|
1188
|
-
throw new O(`Response type '${t}' is not supported`, O.ERR_NOT_SUPPORT, r);
|
|
1189
|
-
});
|
|
1190
|
-
});
|
|
1191
|
-
})(new Response());
|
|
1192
|
-
const Do = async (e) => {
|
|
1193
|
-
if (e == null)
|
|
1194
|
-
return 0;
|
|
1195
|
-
if (h.isBlob(e))
|
|
1196
|
-
return e.size;
|
|
1197
|
-
if (h.isSpecCompliantForm(e))
|
|
1198
|
-
return (await new Request(j.origin, {
|
|
1199
|
-
method: "POST",
|
|
1200
|
-
body: e
|
|
1201
|
-
}).arrayBuffer()).byteLength;
|
|
1202
|
-
if (h.isArrayBufferView(e) || h.isArrayBuffer(e))
|
|
1203
|
-
return e.byteLength;
|
|
1204
|
-
if (h.isURLSearchParams(e) && (e = e + ""), h.isString(e))
|
|
1205
|
-
return (await Co(e)).byteLength;
|
|
1206
|
-
}, $o = async (e, t) => {
|
|
1207
|
-
const n = h.toFiniteNumber(e.getContentLength());
|
|
1208
|
-
return n ?? Do(t);
|
|
1209
|
-
}, Io = Le && (async (e) => {
|
|
1210
|
-
let {
|
|
1211
|
-
url: t,
|
|
1212
|
-
method: n,
|
|
1213
|
-
data: r,
|
|
1214
|
-
signal: o,
|
|
1215
|
-
cancelToken: s,
|
|
1216
|
-
timeout: i,
|
|
1217
|
-
onDownloadProgress: c,
|
|
1218
|
-
onUploadProgress: u,
|
|
1219
|
-
responseType: f,
|
|
1220
|
-
headers: a,
|
|
1221
|
-
withCredentials: l = "same-origin",
|
|
1222
|
-
fetchOptions: d
|
|
1223
|
-
} = Tn(e);
|
|
1224
|
-
f = f ? (f + "").toLowerCase() : "text";
|
|
1225
|
-
let m = Po([o, s && s.toAbortSignal()], i), g;
|
|
1226
|
-
const E = m && m.unsubscribe && (() => {
|
|
1227
|
-
m.unsubscribe();
|
|
1228
|
-
});
|
|
1229
|
-
let y;
|
|
1230
|
-
try {
|
|
1231
|
-
if (u && ko && n !== "get" && n !== "head" && (y = await $o(a, r)) !== 0) {
|
|
1232
|
-
let C = new Request(t, {
|
|
1233
|
-
method: "POST",
|
|
1234
|
-
body: r,
|
|
1235
|
-
duplex: "half"
|
|
1236
|
-
}), B;
|
|
1237
|
-
if (h.isFormData(r) && (B = C.headers.get("content-type")) && a.setContentType(B), C.body) {
|
|
1238
|
-
const [I, ne] = kt(
|
|
1239
|
-
y,
|
|
1240
|
-
Ae(Dt(u))
|
|
1241
|
-
);
|
|
1242
|
-
r = It(C.body, Lt, I, ne);
|
|
1243
|
-
}
|
|
1244
|
-
}
|
|
1245
|
-
h.isString(l) || (l = l ? "include" : "omit");
|
|
1246
|
-
const S = "credentials" in Request.prototype;
|
|
1247
|
-
g = new Request(t, {
|
|
1248
|
-
...d,
|
|
1249
|
-
signal: m,
|
|
1250
|
-
method: n.toUpperCase(),
|
|
1251
|
-
headers: a.normalize().toJSON(),
|
|
1252
|
-
body: r,
|
|
1253
|
-
duplex: "half",
|
|
1254
|
-
credentials: S ? l : void 0
|
|
1255
|
-
});
|
|
1256
|
-
let _ = await fetch(g);
|
|
1257
|
-
const R = tt && (f === "stream" || f === "response");
|
|
1258
|
-
if (tt && (c || R && E)) {
|
|
1259
|
-
const C = {};
|
|
1260
|
-
["status", "statusText", "headers"].forEach((re) => {
|
|
1261
|
-
C[re] = _[re];
|
|
1262
|
-
});
|
|
1263
|
-
const B = h.toFiniteNumber(_.headers.get("content-length")), [I, ne] = c && kt(
|
|
1264
|
-
B,
|
|
1265
|
-
Ae(Dt(c), !0)
|
|
1266
|
-
) || [];
|
|
1267
|
-
_ = new Response(
|
|
1268
|
-
It(_.body, Lt, I, () => {
|
|
1269
|
-
ne && ne(), E && E();
|
|
1270
|
-
}),
|
|
1271
|
-
C
|
|
1272
|
-
);
|
|
1273
|
-
}
|
|
1274
|
-
f = f || "text";
|
|
1275
|
-
let k = await Te[h.findKey(Te, f) || "text"](_, e);
|
|
1276
|
-
return !R && E && E(), await new Promise((C, B) => {
|
|
1277
|
-
xn(C, B, {
|
|
1278
|
-
data: k,
|
|
1279
|
-
headers: V.from(_.headers),
|
|
1280
|
-
status: _.status,
|
|
1281
|
-
statusText: _.statusText,
|
|
1282
|
-
config: e,
|
|
1283
|
-
request: g
|
|
1284
|
-
});
|
|
1285
|
-
});
|
|
1286
|
-
} catch (S) {
|
|
1287
|
-
throw E && E(), S && S.name === "TypeError" && /fetch/i.test(S.message) ? Object.assign(
|
|
1288
|
-
new O("Network Error", O.ERR_NETWORK, e, g),
|
|
1289
|
-
{
|
|
1290
|
-
cause: S.cause || S
|
|
1291
|
-
}
|
|
1292
|
-
) : O.from(S, S && S.code, e, g);
|
|
1293
|
-
}
|
|
1294
|
-
}), nt = {
|
|
1295
|
-
http: Jr,
|
|
1296
|
-
xhr: No,
|
|
1297
|
-
fetch: Io
|
|
1298
|
-
};
|
|
1299
|
-
h.forEach(nt, (e, t) => {
|
|
1300
|
-
if (e) {
|
|
1301
|
-
try {
|
|
1302
|
-
Object.defineProperty(e, "name", { value: t });
|
|
1303
|
-
} catch {
|
|
1304
|
-
}
|
|
1305
|
-
Object.defineProperty(e, "adapterName", { value: t });
|
|
1306
|
-
}
|
|
1307
|
-
});
|
|
1308
|
-
const Bt = (e) => `- ${e}`, Lo = (e) => h.isFunction(e) || e === null || e === !1, Dn = {
|
|
1309
|
-
getAdapter: (e) => {
|
|
1310
|
-
e = h.isArray(e) ? e : [e];
|
|
1311
|
-
const { length: t } = e;
|
|
1312
|
-
let n, r;
|
|
1313
|
-
const o = {};
|
|
1314
|
-
for (let s = 0; s < t; s++) {
|
|
1315
|
-
n = e[s];
|
|
1316
|
-
let i;
|
|
1317
|
-
if (r = n, !Lo(n) && (r = nt[(i = String(n)).toLowerCase()], r === void 0))
|
|
1318
|
-
throw new O(`Unknown adapter '${i}'`);
|
|
1319
|
-
if (r)
|
|
1320
|
-
break;
|
|
1321
|
-
o[i || "#" + s] = r;
|
|
1322
|
-
}
|
|
1323
|
-
if (!r) {
|
|
1324
|
-
const s = Object.entries(o).map(
|
|
1325
|
-
([c, u]) => `adapter ${c} ` + (u === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
1326
|
-
);
|
|
1327
|
-
let i = t ? s.length > 1 ? `since :
|
|
1328
|
-
` + s.map(Bt).join(`
|
|
1329
|
-
`) : " " + Bt(s[0]) : "as no adapter specified";
|
|
1330
|
-
throw new O(
|
|
1331
|
-
"There is no suitable adapter to dispatch the request " + i,
|
|
1332
|
-
"ERR_NOT_SUPPORT"
|
|
1333
|
-
);
|
|
1334
|
-
}
|
|
1335
|
-
return r;
|
|
1336
|
-
},
|
|
1337
|
-
adapters: nt
|
|
1338
|
-
};
|
|
1339
|
-
function We(e) {
|
|
1340
|
-
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
1341
|
-
throw new ue(null, e);
|
|
1342
|
-
}
|
|
1343
|
-
function Ut(e) {
|
|
1344
|
-
return We(e), e.headers = V.from(e.headers), e.data = Ke.call(
|
|
1345
|
-
e,
|
|
1346
|
-
e.transformRequest
|
|
1347
|
-
), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), Dn.getAdapter(e.adapter || _e.adapter)(e).then(function(r) {
|
|
1348
|
-
return We(e), r.data = Ke.call(
|
|
1349
|
-
e,
|
|
1350
|
-
e.transformResponse,
|
|
1351
|
-
r
|
|
1352
|
-
), r.headers = V.from(r.headers), r;
|
|
1353
|
-
}, function(r) {
|
|
1354
|
-
return Pn(r) || (We(e), r && r.response && (r.response.data = Ke.call(
|
|
1355
|
-
e,
|
|
1356
|
-
e.transformResponse,
|
|
1357
|
-
r.response
|
|
1358
|
-
), r.response.headers = V.from(r.response.headers))), Promise.reject(r);
|
|
1359
|
-
});
|
|
1360
|
-
}
|
|
1361
|
-
const $n = "1.7.7", gt = {};
|
|
1362
|
-
["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
|
|
1363
|
-
gt[e] = function(r) {
|
|
1364
|
-
return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
1365
|
-
};
|
|
1366
|
-
});
|
|
1367
|
-
const jt = {};
|
|
1368
|
-
gt.transitional = function(t, n, r) {
|
|
1369
|
-
function o(s, i) {
|
|
1370
|
-
return "[Axios v" + $n + "] Transitional option '" + s + "'" + i + (r ? ". " + r : "");
|
|
1371
|
-
}
|
|
1372
|
-
return (s, i, c) => {
|
|
1373
|
-
if (t === !1)
|
|
1374
|
-
throw new O(
|
|
1375
|
-
o(i, " has been removed" + (n ? " in " + n : "")),
|
|
1376
|
-
O.ERR_DEPRECATED
|
|
1377
|
-
);
|
|
1378
|
-
return n && !jt[i] && (jt[i] = !0, console.warn(
|
|
1379
|
-
o(
|
|
1380
|
-
i,
|
|
1381
|
-
" has been deprecated since v" + n + " and will be removed in the near future"
|
|
1382
|
-
)
|
|
1383
|
-
)), t ? t(s, i, c) : !0;
|
|
1384
|
-
};
|
|
1385
|
-
};
|
|
1386
|
-
function Bo(e, t, n) {
|
|
1387
|
-
if (typeof e != "object")
|
|
1388
|
-
throw new O("options must be an object", O.ERR_BAD_OPTION_VALUE);
|
|
1389
|
-
const r = Object.keys(e);
|
|
1390
|
-
let o = r.length;
|
|
1391
|
-
for (; o-- > 0; ) {
|
|
1392
|
-
const s = r[o], i = t[s];
|
|
1393
|
-
if (i) {
|
|
1394
|
-
const c = e[s], u = c === void 0 || i(c, s, e);
|
|
1395
|
-
if (u !== !0)
|
|
1396
|
-
throw new O("option " + s + " must be " + u, O.ERR_BAD_OPTION_VALUE);
|
|
1397
|
-
continue;
|
|
1398
|
-
}
|
|
1399
|
-
if (n !== !0)
|
|
1400
|
-
throw new O("Unknown option " + s, O.ERR_BAD_OPTION);
|
|
1401
|
-
}
|
|
1402
|
-
}
|
|
1403
|
-
const rt = {
|
|
1404
|
-
assertOptions: Bo,
|
|
1405
|
-
validators: gt
|
|
1406
|
-
}, G = rt.validators;
|
|
1407
|
-
class ee {
|
|
1408
|
-
constructor(t) {
|
|
1409
|
-
this.defaults = t, this.interceptors = {
|
|
1410
|
-
request: new Tt(),
|
|
1411
|
-
response: new Tt()
|
|
1412
|
-
};
|
|
1413
|
-
}
|
|
1414
|
-
/**
|
|
1415
|
-
* Dispatch a request
|
|
1416
|
-
*
|
|
1417
|
-
* @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
|
|
1418
|
-
* @param {?Object} config
|
|
1419
|
-
*
|
|
1420
|
-
* @returns {Promise} The Promise to be fulfilled
|
|
1421
|
-
*/
|
|
1422
|
-
async request(t, n) {
|
|
1423
|
-
try {
|
|
1424
|
-
return await this._request(t, n);
|
|
1425
|
-
} catch (r) {
|
|
1426
|
-
if (r instanceof Error) {
|
|
1427
|
-
let o;
|
|
1428
|
-
Error.captureStackTrace ? Error.captureStackTrace(o = {}) : o = new Error();
|
|
1429
|
-
const s = o.stack ? o.stack.replace(/^.+\n/, "") : "";
|
|
1430
|
-
try {
|
|
1431
|
-
r.stack ? s && !String(r.stack).endsWith(s.replace(/^.+\n.+\n/, "")) && (r.stack += `
|
|
1432
|
-
` + s) : r.stack = s;
|
|
1433
|
-
} catch {
|
|
1434
|
-
}
|
|
1435
|
-
}
|
|
1436
|
-
throw r;
|
|
1437
|
-
}
|
|
1438
|
-
}
|
|
1439
|
-
_request(t, n) {
|
|
1440
|
-
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = te(this.defaults, n);
|
|
1441
|
-
const { transitional: r, paramsSerializer: o, headers: s } = n;
|
|
1442
|
-
r !== void 0 && rt.assertOptions(r, {
|
|
1443
|
-
silentJSONParsing: G.transitional(G.boolean),
|
|
1444
|
-
forcedJSONParsing: G.transitional(G.boolean),
|
|
1445
|
-
clarifyTimeoutError: G.transitional(G.boolean)
|
|
1446
|
-
}, !1), o != null && (h.isFunction(o) ? n.paramsSerializer = {
|
|
1447
|
-
serialize: o
|
|
1448
|
-
} : rt.assertOptions(o, {
|
|
1449
|
-
encode: G.function,
|
|
1450
|
-
serialize: G.function
|
|
1451
|
-
}, !0)), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
1452
|
-
let i = s && h.merge(
|
|
1453
|
-
s.common,
|
|
1454
|
-
s[n.method]
|
|
1455
|
-
);
|
|
1456
|
-
s && h.forEach(
|
|
1457
|
-
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
1458
|
-
(g) => {
|
|
1459
|
-
delete s[g];
|
|
1460
|
-
}
|
|
1461
|
-
), n.headers = V.concat(i, s);
|
|
1462
|
-
const c = [];
|
|
1463
|
-
let u = !0;
|
|
1464
|
-
this.interceptors.request.forEach(function(E) {
|
|
1465
|
-
typeof E.runWhen == "function" && E.runWhen(n) === !1 || (u = u && E.synchronous, c.unshift(E.fulfilled, E.rejected));
|
|
1466
|
-
});
|
|
1467
|
-
const f = [];
|
|
1468
|
-
this.interceptors.response.forEach(function(E) {
|
|
1469
|
-
f.push(E.fulfilled, E.rejected);
|
|
1470
|
-
});
|
|
1471
|
-
let a, l = 0, d;
|
|
1472
|
-
if (!u) {
|
|
1473
|
-
const g = [Ut.bind(this), void 0];
|
|
1474
|
-
for (g.unshift.apply(g, c), g.push.apply(g, f), d = g.length, a = Promise.resolve(n); l < d; )
|
|
1475
|
-
a = a.then(g[l++], g[l++]);
|
|
1476
|
-
return a;
|
|
1477
|
-
}
|
|
1478
|
-
d = c.length;
|
|
1479
|
-
let m = n;
|
|
1480
|
-
for (l = 0; l < d; ) {
|
|
1481
|
-
const g = c[l++], E = c[l++];
|
|
1482
|
-
try {
|
|
1483
|
-
m = g(m);
|
|
1484
|
-
} catch (y) {
|
|
1485
|
-
E.call(this, y);
|
|
1486
|
-
break;
|
|
1487
|
-
}
|
|
1488
|
-
}
|
|
1489
|
-
try {
|
|
1490
|
-
a = Ut.call(this, m);
|
|
1491
|
-
} catch (g) {
|
|
1492
|
-
return Promise.reject(g);
|
|
1493
|
-
}
|
|
1494
|
-
for (l = 0, d = f.length; l < d; )
|
|
1495
|
-
a = a.then(f[l++], f[l++]);
|
|
1496
|
-
return a;
|
|
1497
|
-
}
|
|
1498
|
-
getUri(t) {
|
|
1499
|
-
t = te(this.defaults, t);
|
|
1500
|
-
const n = An(t.baseURL, t.url);
|
|
1501
|
-
return Sn(n, t.params, t.paramsSerializer);
|
|
1502
|
-
}
|
|
1503
|
-
}
|
|
1504
|
-
h.forEach(["delete", "get", "head", "options"], function(t) {
|
|
1505
|
-
ee.prototype[t] = function(n, r) {
|
|
1506
|
-
return this.request(te(r || {}, {
|
|
1507
|
-
method: t,
|
|
1508
|
-
url: n,
|
|
1509
|
-
data: (r || {}).data
|
|
1510
|
-
}));
|
|
1511
|
-
};
|
|
1512
|
-
});
|
|
1513
|
-
h.forEach(["post", "put", "patch"], function(t) {
|
|
1514
|
-
function n(r) {
|
|
1515
|
-
return function(s, i, c) {
|
|
1516
|
-
return this.request(te(c || {}, {
|
|
1517
|
-
method: t,
|
|
1518
|
-
headers: r ? {
|
|
1519
|
-
"Content-Type": "multipart/form-data"
|
|
1520
|
-
} : {},
|
|
1521
|
-
url: s,
|
|
1522
|
-
data: i
|
|
1523
|
-
}));
|
|
1524
|
-
};
|
|
1525
|
-
}
|
|
1526
|
-
ee.prototype[t] = n(), ee.prototype[t + "Form"] = n(!0);
|
|
1527
|
-
});
|
|
1528
|
-
class yt {
|
|
1529
|
-
constructor(t) {
|
|
1530
|
-
if (typeof t != "function")
|
|
1531
|
-
throw new TypeError("executor must be a function.");
|
|
1532
|
-
let n;
|
|
1533
|
-
this.promise = new Promise(function(s) {
|
|
1534
|
-
n = s;
|
|
1535
|
-
});
|
|
1536
|
-
const r = this;
|
|
1537
|
-
this.promise.then((o) => {
|
|
1538
|
-
if (!r._listeners) return;
|
|
1539
|
-
let s = r._listeners.length;
|
|
1540
|
-
for (; s-- > 0; )
|
|
1541
|
-
r._listeners[s](o);
|
|
1542
|
-
r._listeners = null;
|
|
1543
|
-
}), this.promise.then = (o) => {
|
|
1544
|
-
let s;
|
|
1545
|
-
const i = new Promise((c) => {
|
|
1546
|
-
r.subscribe(c), s = c;
|
|
1547
|
-
}).then(o);
|
|
1548
|
-
return i.cancel = function() {
|
|
1549
|
-
r.unsubscribe(s);
|
|
1550
|
-
}, i;
|
|
1551
|
-
}, t(function(s, i, c) {
|
|
1552
|
-
r.reason || (r.reason = new ue(s, i, c), n(r.reason));
|
|
1553
|
-
});
|
|
1554
|
-
}
|
|
1555
|
-
/**
|
|
1556
|
-
* Throws a `CanceledError` if cancellation has been requested.
|
|
1557
|
-
*/
|
|
1558
|
-
throwIfRequested() {
|
|
1559
|
-
if (this.reason)
|
|
1560
|
-
throw this.reason;
|
|
1561
|
-
}
|
|
1562
|
-
/**
|
|
1563
|
-
* Subscribe to the cancel signal
|
|
1564
|
-
*/
|
|
1565
|
-
subscribe(t) {
|
|
1566
|
-
if (this.reason) {
|
|
1567
|
-
t(this.reason);
|
|
1568
|
-
return;
|
|
1569
|
-
}
|
|
1570
|
-
this._listeners ? this._listeners.push(t) : this._listeners = [t];
|
|
1571
|
-
}
|
|
1572
|
-
/**
|
|
1573
|
-
* Unsubscribe from the cancel signal
|
|
1574
|
-
*/
|
|
1575
|
-
unsubscribe(t) {
|
|
1576
|
-
if (!this._listeners)
|
|
1577
|
-
return;
|
|
1578
|
-
const n = this._listeners.indexOf(t);
|
|
1579
|
-
n !== -1 && this._listeners.splice(n, 1);
|
|
1580
|
-
}
|
|
1581
|
-
toAbortSignal() {
|
|
1582
|
-
const t = new AbortController(), n = (r) => {
|
|
1583
|
-
t.abort(r);
|
|
1584
|
-
};
|
|
1585
|
-
return this.subscribe(n), t.signal.unsubscribe = () => this.unsubscribe(n), t.signal;
|
|
1586
|
-
}
|
|
1587
|
-
/**
|
|
1588
|
-
* Returns an object that contains a new `CancelToken` and a function that, when called,
|
|
1589
|
-
* cancels the `CancelToken`.
|
|
1590
|
-
*/
|
|
1591
|
-
static source() {
|
|
1592
|
-
let t;
|
|
1593
|
-
return {
|
|
1594
|
-
token: new yt(function(o) {
|
|
1595
|
-
t = o;
|
|
1596
|
-
}),
|
|
1597
|
-
cancel: t
|
|
1598
|
-
};
|
|
1599
|
-
}
|
|
1600
|
-
}
|
|
1601
|
-
function Uo(e) {
|
|
1602
|
-
return function(n) {
|
|
1603
|
-
return e.apply(null, n);
|
|
1604
|
-
};
|
|
1605
|
-
}
|
|
1606
|
-
function jo(e) {
|
|
1607
|
-
return h.isObject(e) && e.isAxiosError === !0;
|
|
1608
|
-
}
|
|
1609
|
-
const ot = {
|
|
1610
|
-
Continue: 100,
|
|
1611
|
-
SwitchingProtocols: 101,
|
|
1612
|
-
Processing: 102,
|
|
1613
|
-
EarlyHints: 103,
|
|
1614
|
-
Ok: 200,
|
|
1615
|
-
Created: 201,
|
|
1616
|
-
Accepted: 202,
|
|
1617
|
-
NonAuthoritativeInformation: 203,
|
|
1618
|
-
NoContent: 204,
|
|
1619
|
-
ResetContent: 205,
|
|
1620
|
-
PartialContent: 206,
|
|
1621
|
-
MultiStatus: 207,
|
|
1622
|
-
AlreadyReported: 208,
|
|
1623
|
-
ImUsed: 226,
|
|
1624
|
-
MultipleChoices: 300,
|
|
1625
|
-
MovedPermanently: 301,
|
|
1626
|
-
Found: 302,
|
|
1627
|
-
SeeOther: 303,
|
|
1628
|
-
NotModified: 304,
|
|
1629
|
-
UseProxy: 305,
|
|
1630
|
-
Unused: 306,
|
|
1631
|
-
TemporaryRedirect: 307,
|
|
1632
|
-
PermanentRedirect: 308,
|
|
1633
|
-
BadRequest: 400,
|
|
1634
|
-
Unauthorized: 401,
|
|
1635
|
-
PaymentRequired: 402,
|
|
1636
|
-
Forbidden: 403,
|
|
1637
|
-
NotFound: 404,
|
|
1638
|
-
MethodNotAllowed: 405,
|
|
1639
|
-
NotAcceptable: 406,
|
|
1640
|
-
ProxyAuthenticationRequired: 407,
|
|
1641
|
-
RequestTimeout: 408,
|
|
1642
|
-
Conflict: 409,
|
|
1643
|
-
Gone: 410,
|
|
1644
|
-
LengthRequired: 411,
|
|
1645
|
-
PreconditionFailed: 412,
|
|
1646
|
-
PayloadTooLarge: 413,
|
|
1647
|
-
UriTooLong: 414,
|
|
1648
|
-
UnsupportedMediaType: 415,
|
|
1649
|
-
RangeNotSatisfiable: 416,
|
|
1650
|
-
ExpectationFailed: 417,
|
|
1651
|
-
ImATeapot: 418,
|
|
1652
|
-
MisdirectedRequest: 421,
|
|
1653
|
-
UnprocessableEntity: 422,
|
|
1654
|
-
Locked: 423,
|
|
1655
|
-
FailedDependency: 424,
|
|
1656
|
-
TooEarly: 425,
|
|
1657
|
-
UpgradeRequired: 426,
|
|
1658
|
-
PreconditionRequired: 428,
|
|
1659
|
-
TooManyRequests: 429,
|
|
1660
|
-
RequestHeaderFieldsTooLarge: 431,
|
|
1661
|
-
UnavailableForLegalReasons: 451,
|
|
1662
|
-
InternalServerError: 500,
|
|
1663
|
-
NotImplemented: 501,
|
|
1664
|
-
BadGateway: 502,
|
|
1665
|
-
ServiceUnavailable: 503,
|
|
1666
|
-
GatewayTimeout: 504,
|
|
1667
|
-
HttpVersionNotSupported: 505,
|
|
1668
|
-
VariantAlsoNegotiates: 506,
|
|
1669
|
-
InsufficientStorage: 507,
|
|
1670
|
-
LoopDetected: 508,
|
|
1671
|
-
NotExtended: 510,
|
|
1672
|
-
NetworkAuthenticationRequired: 511
|
|
1673
|
-
};
|
|
1674
|
-
Object.entries(ot).forEach(([e, t]) => {
|
|
1675
|
-
ot[t] = e;
|
|
1676
|
-
});
|
|
1677
|
-
function In(e) {
|
|
1678
|
-
const t = new ee(e), n = dn(ee.prototype.request, t);
|
|
1679
|
-
return h.extend(n, ee.prototype, t, { allOwnKeys: !0 }), h.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(o) {
|
|
1680
|
-
return In(te(e, o));
|
|
1681
|
-
}, n;
|
|
1682
|
-
}
|
|
1683
|
-
const $ = In(_e);
|
|
1684
|
-
$.Axios = ee;
|
|
1685
|
-
$.CanceledError = ue;
|
|
1686
|
-
$.CancelToken = yt;
|
|
1687
|
-
$.isCancel = Pn;
|
|
1688
|
-
$.VERSION = $n;
|
|
1689
|
-
$.toFormData = Ie;
|
|
1690
|
-
$.AxiosError = O;
|
|
1691
|
-
$.Cancel = $.CanceledError;
|
|
1692
|
-
$.all = function(t) {
|
|
1693
|
-
return Promise.all(t);
|
|
1694
|
-
};
|
|
1695
|
-
$.spread = Uo;
|
|
1696
|
-
$.isAxiosError = jo;
|
|
1697
|
-
$.mergeConfig = te;
|
|
1698
|
-
$.AxiosHeaders = V;
|
|
1699
|
-
$.formToJSON = (e) => Nn(h.isHTMLForm(e) ? new FormData(e) : e);
|
|
1700
|
-
$.getAdapter = Dn.getAdapter;
|
|
1701
|
-
$.HttpStatusCode = ot;
|
|
1702
|
-
$.default = $;
|
|
1703
|
-
const Re = (e, t) => {
|
|
1704
|
-
const n = e.__vccOpts || e;
|
|
1705
|
-
for (const [r, o] of t)
|
|
1706
|
-
n[r] = o;
|
|
1707
|
-
return n;
|
|
1708
|
-
}, Vo = {};
|
|
1709
|
-
function Fo(e, t, n, r, o, s) {
|
|
1710
|
-
const i = on("router-view");
|
|
1711
|
-
return be(), sn(i);
|
|
1712
|
-
}
|
|
1713
|
-
const Mo = /* @__PURE__ */ Re(Vo, [["render", Fo]]);
|
|
1714
|
-
function qo() {
|
|
1715
|
-
return Ln().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
1716
|
-
}
|
|
1717
|
-
function Ln() {
|
|
1718
|
-
return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
|
|
1719
|
-
}
|
|
1720
|
-
const Ho = typeof Proxy == "function", zo = "devtools-plugin:setup", Ko = "plugin:settings:set";
|
|
1721
|
-
let se, st;
|
|
1722
|
-
function Wo() {
|
|
1723
|
-
var e;
|
|
1724
|
-
return se !== void 0 || (typeof window < "u" && window.performance ? (se = !0, st = window.performance) : typeof globalThis < "u" && (!((e = globalThis.perf_hooks) === null || e === void 0) && e.performance) ? (se = !0, st = globalThis.perf_hooks.performance) : se = !1), se;
|
|
1725
|
-
}
|
|
1726
|
-
function Go() {
|
|
1727
|
-
return Wo() ? st.now() : Date.now();
|
|
1728
|
-
}
|
|
1729
|
-
class Jo {
|
|
1730
|
-
constructor(t, n) {
|
|
1731
|
-
this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = t, this.hook = n;
|
|
1732
|
-
const r = {};
|
|
1733
|
-
if (t.settings)
|
|
1734
|
-
for (const i in t.settings) {
|
|
1735
|
-
const c = t.settings[i];
|
|
1736
|
-
r[i] = c.defaultValue;
|
|
1737
|
-
}
|
|
1738
|
-
const o = `__vue-devtools-plugin-settings__${t.id}`;
|
|
1739
|
-
let s = Object.assign({}, r);
|
|
1740
|
-
try {
|
|
1741
|
-
const i = localStorage.getItem(o), c = JSON.parse(i);
|
|
1742
|
-
Object.assign(s, c);
|
|
1743
|
-
} catch {
|
|
1744
|
-
}
|
|
1745
|
-
this.fallbacks = {
|
|
1746
|
-
getSettings() {
|
|
1747
|
-
return s;
|
|
1748
|
-
},
|
|
1749
|
-
setSettings(i) {
|
|
1750
|
-
try {
|
|
1751
|
-
localStorage.setItem(o, JSON.stringify(i));
|
|
1752
|
-
} catch {
|
|
1753
|
-
}
|
|
1754
|
-
s = i;
|
|
1755
|
-
},
|
|
1756
|
-
now() {
|
|
1757
|
-
return Go();
|
|
1758
|
-
}
|
|
1759
|
-
}, n && n.on(Ko, (i, c) => {
|
|
1760
|
-
i === this.plugin.id && this.fallbacks.setSettings(c);
|
|
1761
|
-
}), this.proxiedOn = new Proxy({}, {
|
|
1762
|
-
get: (i, c) => this.target ? this.target.on[c] : (...u) => {
|
|
1763
|
-
this.onQueue.push({
|
|
1764
|
-
method: c,
|
|
1765
|
-
args: u
|
|
1766
|
-
});
|
|
1767
|
-
}
|
|
1768
|
-
}), this.proxiedTarget = new Proxy({}, {
|
|
1769
|
-
get: (i, c) => this.target ? this.target[c] : c === "on" ? this.proxiedOn : Object.keys(this.fallbacks).includes(c) ? (...u) => (this.targetQueue.push({
|
|
1770
|
-
method: c,
|
|
1771
|
-
args: u,
|
|
1772
|
-
resolve: () => {
|
|
1773
|
-
}
|
|
1774
|
-
}), this.fallbacks[c](...u)) : (...u) => new Promise((f) => {
|
|
1775
|
-
this.targetQueue.push({
|
|
1776
|
-
method: c,
|
|
1777
|
-
args: u,
|
|
1778
|
-
resolve: f
|
|
1779
|
-
});
|
|
1780
|
-
})
|
|
1781
|
-
});
|
|
1782
|
-
}
|
|
1783
|
-
async setRealTarget(t) {
|
|
1784
|
-
this.target = t;
|
|
1785
|
-
for (const n of this.onQueue)
|
|
1786
|
-
this.target.on[n.method](...n.args);
|
|
1787
|
-
for (const n of this.targetQueue)
|
|
1788
|
-
n.resolve(await this.target[n.method](...n.args));
|
|
1789
|
-
}
|
|
1790
|
-
}
|
|
1791
|
-
function Qo(e, t) {
|
|
1792
|
-
const n = e, r = Ln(), o = qo(), s = Ho && n.enableEarlyProxy;
|
|
1793
|
-
if (o && (r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !s))
|
|
1794
|
-
o.emit(zo, e, t);
|
|
1795
|
-
else {
|
|
1796
|
-
const i = s ? new Jo(n, o) : null;
|
|
1797
|
-
(r.__VUE_DEVTOOLS_PLUGINS__ = r.__VUE_DEVTOOLS_PLUGINS__ || []).push({
|
|
1798
|
-
pluginDescriptor: n,
|
|
1799
|
-
setupFn: t,
|
|
1800
|
-
proxy: i
|
|
1801
|
-
}), i && t(i.proxiedTarget);
|
|
1802
|
-
}
|
|
1803
|
-
}
|
|
1804
|
-
/*!
|
|
1805
|
-
* vue-router v4.4.5
|
|
1806
|
-
* (c) 2024 Eduardo San Martin Morote
|
|
1807
|
-
* @license MIT
|
|
1808
|
-
*/
|
|
1809
|
-
const K = typeof document < "u";
|
|
1810
|
-
function Bn(e) {
|
|
1811
|
-
return typeof e == "object" || "displayName" in e || "props" in e || "__vccOpts" in e;
|
|
1812
|
-
}
|
|
1813
|
-
function Xo(e) {
|
|
1814
|
-
return e.__esModule || e[Symbol.toStringTag] === "Module" || // support CF with dynamic imports that do not
|
|
1815
|
-
// add the Module string tag
|
|
1816
|
-
e.default && Bn(e.default);
|
|
1817
|
-
}
|
|
1818
|
-
const T = Object.assign;
|
|
1819
|
-
function Ge(e, t) {
|
|
1820
|
-
const n = {};
|
|
1821
|
-
for (const r in t) {
|
|
1822
|
-
const o = t[r];
|
|
1823
|
-
n[r] = M(o) ? o.map(e) : e(o);
|
|
1824
|
-
}
|
|
1825
|
-
return n;
|
|
1826
|
-
}
|
|
1827
|
-
const me = () => {
|
|
1828
|
-
}, M = Array.isArray;
|
|
1829
|
-
function N(e) {
|
|
1830
|
-
const t = Array.from(arguments).slice(1);
|
|
1831
|
-
console.warn.apply(console, ["[Vue Router warn]: " + e].concat(t));
|
|
1832
|
-
}
|
|
1833
|
-
const Un = /#/g, Yo = /&/g, Zo = /\//g, es = /=/g, ts = /\?/g, jn = /\+/g, ns = /%5B/g, rs = /%5D/g, Vn = /%5E/g, os = /%60/g, Fn = /%7B/g, ss = /%7C/g, Mn = /%7D/g, is = /%20/g;
|
|
1834
|
-
function Et(e) {
|
|
1835
|
-
return encodeURI("" + e).replace(ss, "|").replace(ns, "[").replace(rs, "]");
|
|
1836
|
-
}
|
|
1837
|
-
function as(e) {
|
|
1838
|
-
return Et(e).replace(Fn, "{").replace(Mn, "}").replace(Vn, "^");
|
|
1839
|
-
}
|
|
1840
|
-
function it(e) {
|
|
1841
|
-
return Et(e).replace(jn, "%2B").replace(is, "+").replace(Un, "%23").replace(Yo, "%26").replace(os, "`").replace(Fn, "{").replace(Mn, "}").replace(Vn, "^");
|
|
1842
|
-
}
|
|
1843
|
-
function cs(e) {
|
|
1844
|
-
return it(e).replace(es, "%3D");
|
|
1845
|
-
}
|
|
1846
|
-
function ls(e) {
|
|
1847
|
-
return Et(e).replace(Un, "%23").replace(ts, "%3F");
|
|
1848
|
-
}
|
|
1849
|
-
function us(e) {
|
|
1850
|
-
return e == null ? "" : ls(e).replace(Zo, "%2F");
|
|
1851
|
-
}
|
|
1852
|
-
function ae(e) {
|
|
1853
|
-
try {
|
|
1854
|
-
return decodeURIComponent("" + e);
|
|
1855
|
-
} catch {
|
|
1856
|
-
process.env.NODE_ENV !== "production" && N(`Error decoding "${e}". Using original value`);
|
|
1857
|
-
}
|
|
1858
|
-
return "" + e;
|
|
1859
|
-
}
|
|
1860
|
-
const fs = /\/$/, ds = (e) => e.replace(fs, "");
|
|
1861
|
-
function Je(e, t, n = "/") {
|
|
1862
|
-
let r, o = {}, s = "", i = "";
|
|
1863
|
-
const c = t.indexOf("#");
|
|
1864
|
-
let u = t.indexOf("?");
|
|
1865
|
-
return c < u && c >= 0 && (u = -1), u > -1 && (r = t.slice(0, u), s = t.slice(u + 1, c > -1 ? c : t.length), o = e(s)), c > -1 && (r = r || t.slice(0, c), i = t.slice(c, t.length)), r = ms(r ?? t, n), {
|
|
1866
|
-
fullPath: r + (s && "?") + s + i,
|
|
1867
|
-
path: r,
|
|
1868
|
-
query: o,
|
|
1869
|
-
hash: ae(i)
|
|
1870
|
-
};
|
|
1871
|
-
}
|
|
1872
|
-
function hs(e, t) {
|
|
1873
|
-
const n = t.query ? e(t.query) : "";
|
|
1874
|
-
return t.path + (n && "?") + n + (t.hash || "");
|
|
1875
|
-
}
|
|
1876
|
-
function Vt(e, t) {
|
|
1877
|
-
return !t || !e.toLowerCase().startsWith(t.toLowerCase()) ? e : e.slice(t.length) || "/";
|
|
1878
|
-
}
|
|
1879
|
-
function Ft(e, t, n) {
|
|
1880
|
-
const r = t.matched.length - 1, o = n.matched.length - 1;
|
|
1881
|
-
return r > -1 && r === o && X(t.matched[r], n.matched[o]) && qn(t.params, n.params) && e(t.query) === e(n.query) && t.hash === n.hash;
|
|
1882
|
-
}
|
|
1883
|
-
function X(e, t) {
|
|
1884
|
-
return (e.aliasOf || e) === (t.aliasOf || t);
|
|
1885
|
-
}
|
|
1886
|
-
function qn(e, t) {
|
|
1887
|
-
if (Object.keys(e).length !== Object.keys(t).length)
|
|
1888
|
-
return !1;
|
|
1889
|
-
for (const n in e)
|
|
1890
|
-
if (!ps(e[n], t[n]))
|
|
1891
|
-
return !1;
|
|
1892
|
-
return !0;
|
|
1893
|
-
}
|
|
1894
|
-
function ps(e, t) {
|
|
1895
|
-
return M(e) ? Mt(e, t) : M(t) ? Mt(t, e) : e === t;
|
|
1896
|
-
}
|
|
1897
|
-
function Mt(e, t) {
|
|
1898
|
-
return M(t) ? e.length === t.length && e.every((n, r) => n === t[r]) : e.length === 1 && e[0] === t;
|
|
1899
|
-
}
|
|
1900
|
-
function ms(e, t) {
|
|
1901
|
-
if (e.startsWith("/"))
|
|
1902
|
-
return e;
|
|
1903
|
-
if (process.env.NODE_ENV !== "production" && !t.startsWith("/"))
|
|
1904
|
-
return N(`Cannot resolve a relative location without an absolute path. Trying to resolve "${e}" from "${t}". It should look like "/${t}".`), e;
|
|
1905
|
-
if (!e)
|
|
1906
|
-
return t;
|
|
1907
|
-
const n = t.split("/"), r = e.split("/"), o = r[r.length - 1];
|
|
1908
|
-
(o === ".." || o === ".") && r.push("");
|
|
1909
|
-
let s = n.length - 1, i, c;
|
|
1910
|
-
for (i = 0; i < r.length; i++)
|
|
1911
|
-
if (c = r[i], c !== ".")
|
|
1912
|
-
if (c === "..")
|
|
1913
|
-
s > 1 && s--;
|
|
1914
|
-
else
|
|
1915
|
-
break;
|
|
1916
|
-
return n.slice(0, s).join("/") + "/" + r.slice(i).join("/");
|
|
1917
|
-
}
|
|
1918
|
-
const J = {
|
|
1919
|
-
path: "/",
|
|
1920
|
-
// TODO: could we use a symbol in the future?
|
|
1921
|
-
name: void 0,
|
|
1922
|
-
params: {},
|
|
1923
|
-
query: {},
|
|
1924
|
-
hash: "",
|
|
1925
|
-
fullPath: "/",
|
|
1926
|
-
matched: [],
|
|
1927
|
-
meta: {},
|
|
1928
|
-
redirectedFrom: void 0
|
|
1929
|
-
};
|
|
1930
|
-
var ve;
|
|
1931
|
-
(function(e) {
|
|
1932
|
-
e.pop = "pop", e.push = "push";
|
|
1933
|
-
})(ve || (ve = {}));
|
|
1934
|
-
var ge;
|
|
1935
|
-
(function(e) {
|
|
1936
|
-
e.back = "back", e.forward = "forward", e.unknown = "";
|
|
1937
|
-
})(ge || (ge = {}));
|
|
1938
|
-
function gs(e) {
|
|
1939
|
-
if (!e)
|
|
1940
|
-
if (K) {
|
|
1941
|
-
const t = document.querySelector("base");
|
|
1942
|
-
e = t && t.getAttribute("href") || "/", e = e.replace(/^\w+:\/\/[^\/]+/, "");
|
|
1943
|
-
} else
|
|
1944
|
-
e = "/";
|
|
1945
|
-
return e[0] !== "/" && e[0] !== "#" && (e = "/" + e), ds(e);
|
|
1946
|
-
}
|
|
1947
|
-
const ys = /^[^#]+#/;
|
|
1948
|
-
function Es(e, t) {
|
|
1949
|
-
return e.replace(ys, "#") + t;
|
|
1950
|
-
}
|
|
1951
|
-
function vs(e, t) {
|
|
1952
|
-
const n = document.documentElement.getBoundingClientRect(), r = e.getBoundingClientRect();
|
|
1953
|
-
return {
|
|
1954
|
-
behavior: t.behavior,
|
|
1955
|
-
left: r.left - n.left - (t.left || 0),
|
|
1956
|
-
top: r.top - n.top - (t.top || 0)
|
|
1957
|
-
};
|
|
1958
|
-
}
|
|
1959
|
-
const Be = () => ({
|
|
1960
|
-
left: window.scrollX,
|
|
1961
|
-
top: window.scrollY
|
|
1962
|
-
});
|
|
1963
|
-
function bs(e) {
|
|
1964
|
-
let t;
|
|
1965
|
-
if ("el" in e) {
|
|
1966
|
-
const n = e.el, r = typeof n == "string" && n.startsWith("#");
|
|
1967
|
-
if (process.env.NODE_ENV !== "production" && typeof e.el == "string" && (!r || !document.getElementById(e.el.slice(1))))
|
|
1968
|
-
try {
|
|
1969
|
-
const s = document.querySelector(e.el);
|
|
1970
|
-
if (r && s) {
|
|
1971
|
-
N(`The selector "${e.el}" should be passed as "el: document.querySelector('${e.el}')" because it starts with "#".`);
|
|
1972
|
-
return;
|
|
1973
|
-
}
|
|
1974
|
-
} catch {
|
|
1975
|
-
N(`The selector "${e.el}" is invalid. If you are using an id selector, make sure to escape it. You can find more information about escaping characters in selectors at https://mathiasbynens.be/notes/css-escapes or use CSS.escape (https://developer.mozilla.org/en-US/docs/Web/API/CSS/escape).`);
|
|
1976
|
-
return;
|
|
1977
|
-
}
|
|
1978
|
-
const o = typeof n == "string" ? r ? document.getElementById(n.slice(1)) : document.querySelector(n) : n;
|
|
1979
|
-
if (!o) {
|
|
1980
|
-
process.env.NODE_ENV !== "production" && N(`Couldn't find element using selector "${e.el}" returned by scrollBehavior.`);
|
|
1981
|
-
return;
|
|
1982
|
-
}
|
|
1983
|
-
t = vs(o, e);
|
|
1984
|
-
} else
|
|
1985
|
-
t = e;
|
|
1986
|
-
"scrollBehavior" in document.documentElement.style ? window.scrollTo(t) : window.scrollTo(t.left != null ? t.left : window.scrollX, t.top != null ? t.top : window.scrollY);
|
|
1987
|
-
}
|
|
1988
|
-
function qt(e, t) {
|
|
1989
|
-
return (history.state ? history.state.position - t : -1) + e;
|
|
1990
|
-
}
|
|
1991
|
-
const at = /* @__PURE__ */ new Map();
|
|
1992
|
-
function ws(e, t) {
|
|
1993
|
-
at.set(e, t);
|
|
1994
|
-
}
|
|
1995
|
-
function _s(e) {
|
|
1996
|
-
const t = at.get(e);
|
|
1997
|
-
return at.delete(e), t;
|
|
1998
|
-
}
|
|
1999
|
-
let Rs = () => location.protocol + "//" + location.host;
|
|
2000
|
-
function Hn(e, t) {
|
|
2001
|
-
const { pathname: n, search: r, hash: o } = t, s = e.indexOf("#");
|
|
2002
|
-
if (s > -1) {
|
|
2003
|
-
let c = o.includes(e.slice(s)) ? e.slice(s).length : 1, u = o.slice(c);
|
|
2004
|
-
return u[0] !== "/" && (u = "/" + u), Vt(u, "");
|
|
2005
|
-
}
|
|
2006
|
-
return Vt(n, e) + r + o;
|
|
2007
|
-
}
|
|
2008
|
-
function Ss(e, t, n, r) {
|
|
2009
|
-
let o = [], s = [], i = null;
|
|
2010
|
-
const c = ({ state: d }) => {
|
|
2011
|
-
const m = Hn(e, location), g = n.value, E = t.value;
|
|
2012
|
-
let y = 0;
|
|
2013
|
-
if (d) {
|
|
2014
|
-
if (n.value = m, t.value = d, i && i === g) {
|
|
2015
|
-
i = null;
|
|
2016
|
-
return;
|
|
2017
|
-
}
|
|
2018
|
-
y = E ? d.position - E.position : 0;
|
|
2019
|
-
} else
|
|
2020
|
-
r(m);
|
|
2021
|
-
o.forEach((S) => {
|
|
2022
|
-
S(n.value, g, {
|
|
2023
|
-
delta: y,
|
|
2024
|
-
type: ve.pop,
|
|
2025
|
-
direction: y ? y > 0 ? ge.forward : ge.back : ge.unknown
|
|
2026
|
-
});
|
|
2027
|
-
});
|
|
2028
|
-
};
|
|
2029
|
-
function u() {
|
|
2030
|
-
i = n.value;
|
|
2031
|
-
}
|
|
2032
|
-
function f(d) {
|
|
2033
|
-
o.push(d);
|
|
2034
|
-
const m = () => {
|
|
2035
|
-
const g = o.indexOf(d);
|
|
2036
|
-
g > -1 && o.splice(g, 1);
|
|
2037
|
-
};
|
|
2038
|
-
return s.push(m), m;
|
|
2039
|
-
}
|
|
2040
|
-
function a() {
|
|
2041
|
-
const { history: d } = window;
|
|
2042
|
-
d.state && d.replaceState(T({}, d.state, { scroll: Be() }), "");
|
|
2043
|
-
}
|
|
2044
|
-
function l() {
|
|
2045
|
-
for (const d of s)
|
|
2046
|
-
d();
|
|
2047
|
-
s = [], window.removeEventListener("popstate", c), window.removeEventListener("beforeunload", a);
|
|
2048
|
-
}
|
|
2049
|
-
return window.addEventListener("popstate", c), window.addEventListener("beforeunload", a, {
|
|
2050
|
-
passive: !0
|
|
2051
|
-
}), {
|
|
2052
|
-
pauseListeners: u,
|
|
2053
|
-
listen: f,
|
|
2054
|
-
destroy: l
|
|
2055
|
-
};
|
|
2056
|
-
}
|
|
2057
|
-
function Ht(e, t, n, r = !1, o = !1) {
|
|
2058
|
-
return {
|
|
2059
|
-
back: e,
|
|
2060
|
-
current: t,
|
|
2061
|
-
forward: n,
|
|
2062
|
-
replaced: r,
|
|
2063
|
-
position: window.history.length,
|
|
2064
|
-
scroll: o ? Be() : null
|
|
2065
|
-
};
|
|
2066
|
-
}
|
|
2067
|
-
function Os(e) {
|
|
2068
|
-
const { history: t, location: n } = window, r = {
|
|
2069
|
-
value: Hn(e, n)
|
|
2070
|
-
}, o = { value: t.state };
|
|
2071
|
-
o.value || s(r.value, {
|
|
2072
|
-
back: null,
|
|
2073
|
-
current: r.value,
|
|
2074
|
-
forward: null,
|
|
2075
|
-
// the length is off by one, we need to decrease it
|
|
2076
|
-
position: t.length - 1,
|
|
2077
|
-
replaced: !0,
|
|
2078
|
-
// don't add a scroll as the user may have an anchor, and we want
|
|
2079
|
-
// scrollBehavior to be triggered without a saved position
|
|
2080
|
-
scroll: null
|
|
2081
|
-
}, !0);
|
|
2082
|
-
function s(u, f, a) {
|
|
2083
|
-
const l = e.indexOf("#"), d = l > -1 ? (n.host && document.querySelector("base") ? e : e.slice(l)) + u : Rs() + e + u;
|
|
2084
|
-
try {
|
|
2085
|
-
t[a ? "replaceState" : "pushState"](f, "", d), o.value = f;
|
|
2086
|
-
} catch (m) {
|
|
2087
|
-
process.env.NODE_ENV !== "production" ? N("Error with push/replace State", m) : console.error(m), n[a ? "replace" : "assign"](d);
|
|
2088
|
-
}
|
|
2089
|
-
}
|
|
2090
|
-
function i(u, f) {
|
|
2091
|
-
const a = T({}, t.state, Ht(
|
|
2092
|
-
o.value.back,
|
|
2093
|
-
// keep back and forward entries but override current position
|
|
2094
|
-
u,
|
|
2095
|
-
o.value.forward,
|
|
2096
|
-
!0
|
|
2097
|
-
), f, { position: o.value.position });
|
|
2098
|
-
s(u, a, !0), r.value = u;
|
|
2099
|
-
}
|
|
2100
|
-
function c(u, f) {
|
|
2101
|
-
const a = T(
|
|
2102
|
-
{},
|
|
2103
|
-
// use current history state to gracefully handle a wrong call to
|
|
2104
|
-
// history.replaceState
|
|
2105
|
-
// https://github.com/vuejs/router/issues/366
|
|
2106
|
-
o.value,
|
|
2107
|
-
t.state,
|
|
2108
|
-
{
|
|
2109
|
-
forward: u,
|
|
2110
|
-
scroll: Be()
|
|
2111
|
-
}
|
|
2112
|
-
);
|
|
2113
|
-
process.env.NODE_ENV !== "production" && !t.state && N(`history.state seems to have been manually replaced without preserving the necessary values. Make sure to preserve existing history state if you are manually calling history.replaceState:
|
|
2114
|
-
|
|
2115
|
-
history.replaceState(history.state, '', url)
|
|
2116
|
-
|
|
2117
|
-
You can find more information at https://router.vuejs.org/guide/migration/#Usage-of-history-state`), s(a.current, a, !0);
|
|
2118
|
-
const l = T({}, Ht(r.value, u, null), { position: a.position + 1 }, f);
|
|
2119
|
-
s(u, l, !1), r.value = u;
|
|
2120
|
-
}
|
|
2121
|
-
return {
|
|
2122
|
-
location: r,
|
|
2123
|
-
state: o,
|
|
2124
|
-
push: c,
|
|
2125
|
-
replace: i
|
|
2126
|
-
};
|
|
2127
|
-
}
|
|
2128
|
-
function Ns(e) {
|
|
2129
|
-
e = gs(e);
|
|
2130
|
-
const t = Os(e), n = Ss(e, t.state, t.location, t.replace);
|
|
2131
|
-
function r(s, i = !0) {
|
|
2132
|
-
i || n.pauseListeners(), history.go(s);
|
|
2133
|
-
}
|
|
2134
|
-
const o = T({
|
|
2135
|
-
// it's overridden right after
|
|
2136
|
-
location: "",
|
|
2137
|
-
base: e,
|
|
2138
|
-
go: r,
|
|
2139
|
-
createHref: Es.bind(null, e)
|
|
2140
|
-
}, t, n);
|
|
2141
|
-
return Object.defineProperty(o, "location", {
|
|
2142
|
-
enumerable: !0,
|
|
2143
|
-
get: () => t.location.value
|
|
2144
|
-
}), Object.defineProperty(o, "state", {
|
|
2145
|
-
enumerable: !0,
|
|
2146
|
-
get: () => t.state.value
|
|
2147
|
-
}), o;
|
|
2148
|
-
}
|
|
2149
|
-
function Ce(e) {
|
|
2150
|
-
return typeof e == "string" || e && typeof e == "object";
|
|
2151
|
-
}
|
|
2152
|
-
function zn(e) {
|
|
2153
|
-
return typeof e == "string" || typeof e == "symbol";
|
|
2154
|
-
}
|
|
2155
|
-
const ct = Symbol(process.env.NODE_ENV !== "production" ? "navigation failure" : "");
|
|
2156
|
-
var zt;
|
|
2157
|
-
(function(e) {
|
|
2158
|
-
e[e.aborted = 4] = "aborted", e[e.cancelled = 8] = "cancelled", e[e.duplicated = 16] = "duplicated";
|
|
2159
|
-
})(zt || (zt = {}));
|
|
2160
|
-
const Ps = {
|
|
2161
|
-
1({ location: e, currentLocation: t }) {
|
|
2162
|
-
return `No match for
|
|
2163
|
-
${JSON.stringify(e)}${t ? `
|
|
2164
|
-
while being at
|
|
2165
|
-
` + JSON.stringify(t) : ""}`;
|
|
2166
|
-
},
|
|
2167
|
-
2({ from: e, to: t }) {
|
|
2168
|
-
return `Redirected from "${e.fullPath}" to "${As(t)}" via a navigation guard.`;
|
|
2169
|
-
},
|
|
2170
|
-
4({ from: e, to: t }) {
|
|
2171
|
-
return `Navigation aborted from "${e.fullPath}" to "${t.fullPath}" via a navigation guard.`;
|
|
2172
|
-
},
|
|
2173
|
-
8({ from: e, to: t }) {
|
|
2174
|
-
return `Navigation cancelled from "${e.fullPath}" to "${t.fullPath}" with a new navigation.`;
|
|
2175
|
-
},
|
|
2176
|
-
16({ from: e, to: t }) {
|
|
2177
|
-
return `Avoided redundant navigation to current location: "${e.fullPath}".`;
|
|
2178
|
-
}
|
|
2179
|
-
};
|
|
2180
|
-
function ce(e, t) {
|
|
2181
|
-
return process.env.NODE_ENV !== "production" ? T(new Error(Ps[e](t)), {
|
|
2182
|
-
type: e,
|
|
2183
|
-
[ct]: !0
|
|
2184
|
-
}, t) : T(new Error(), {
|
|
2185
|
-
type: e,
|
|
2186
|
-
[ct]: !0
|
|
2187
|
-
}, t);
|
|
2188
|
-
}
|
|
2189
|
-
function z(e, t) {
|
|
2190
|
-
return e instanceof Error && ct in e && (t == null || !!(e.type & t));
|
|
2191
|
-
}
|
|
2192
|
-
const xs = ["params", "query", "hash"];
|
|
2193
|
-
function As(e) {
|
|
2194
|
-
if (typeof e == "string")
|
|
2195
|
-
return e;
|
|
2196
|
-
if (e.path != null)
|
|
2197
|
-
return e.path;
|
|
2198
|
-
const t = {};
|
|
2199
|
-
for (const n of xs)
|
|
2200
|
-
n in e && (t[n] = e[n]);
|
|
2201
|
-
return JSON.stringify(t, null, 2);
|
|
2202
|
-
}
|
|
2203
|
-
const Kt = "[^/]+?", Ts = {
|
|
2204
|
-
sensitive: !1,
|
|
2205
|
-
strict: !1,
|
|
2206
|
-
start: !0,
|
|
2207
|
-
end: !0
|
|
2208
|
-
}, Cs = /[.+*?^${}()[\]/\\]/g;
|
|
2209
|
-
function ks(e, t) {
|
|
2210
|
-
const n = T({}, Ts, t), r = [];
|
|
2211
|
-
let o = n.start ? "^" : "";
|
|
2212
|
-
const s = [];
|
|
2213
|
-
for (const f of e) {
|
|
2214
|
-
const a = f.length ? [] : [
|
|
2215
|
-
90
|
|
2216
|
-
/* PathScore.Root */
|
|
2217
|
-
];
|
|
2218
|
-
n.strict && !f.length && (o += "/");
|
|
2219
|
-
for (let l = 0; l < f.length; l++) {
|
|
2220
|
-
const d = f[l];
|
|
2221
|
-
let m = 40 + (n.sensitive ? 0.25 : 0);
|
|
2222
|
-
if (d.type === 0)
|
|
2223
|
-
l || (o += "/"), o += d.value.replace(Cs, "\\$&"), m += 40;
|
|
2224
|
-
else if (d.type === 1) {
|
|
2225
|
-
const { value: g, repeatable: E, optional: y, regexp: S } = d;
|
|
2226
|
-
s.push({
|
|
2227
|
-
name: g,
|
|
2228
|
-
repeatable: E,
|
|
2229
|
-
optional: y
|
|
2230
|
-
});
|
|
2231
|
-
const _ = S || Kt;
|
|
2232
|
-
if (_ !== Kt) {
|
|
2233
|
-
m += 10;
|
|
2234
|
-
try {
|
|
2235
|
-
new RegExp(`(${_})`);
|
|
2236
|
-
} catch (k) {
|
|
2237
|
-
throw new Error(`Invalid custom RegExp for param "${g}" (${_}): ` + k.message);
|
|
2238
|
-
}
|
|
2239
|
-
}
|
|
2240
|
-
let R = E ? `((?:${_})(?:/(?:${_}))*)` : `(${_})`;
|
|
2241
|
-
l || (R = // avoid an optional / if there are more segments e.g. /:p?-static
|
|
2242
|
-
// or /:p?-:p2
|
|
2243
|
-
y && f.length < 2 ? `(?:/${R})` : "/" + R), y && (R += "?"), o += R, m += 20, y && (m += -8), E && (m += -20), _ === ".*" && (m += -50);
|
|
2244
|
-
}
|
|
2245
|
-
a.push(m);
|
|
2246
|
-
}
|
|
2247
|
-
r.push(a);
|
|
2248
|
-
}
|
|
2249
|
-
if (n.strict && n.end) {
|
|
2250
|
-
const f = r.length - 1;
|
|
2251
|
-
r[f][r[f].length - 1] += 0.7000000000000001;
|
|
2252
|
-
}
|
|
2253
|
-
n.strict || (o += "/?"), n.end ? o += "$" : n.strict && (o += "(?:/|$)");
|
|
2254
|
-
const i = new RegExp(o, n.sensitive ? "" : "i");
|
|
2255
|
-
function c(f) {
|
|
2256
|
-
const a = f.match(i), l = {};
|
|
2257
|
-
if (!a)
|
|
2258
|
-
return null;
|
|
2259
|
-
for (let d = 1; d < a.length; d++) {
|
|
2260
|
-
const m = a[d] || "", g = s[d - 1];
|
|
2261
|
-
l[g.name] = m && g.repeatable ? m.split("/") : m;
|
|
2262
|
-
}
|
|
2263
|
-
return l;
|
|
2264
|
-
}
|
|
2265
|
-
function u(f) {
|
|
2266
|
-
let a = "", l = !1;
|
|
2267
|
-
for (const d of e) {
|
|
2268
|
-
(!l || !a.endsWith("/")) && (a += "/"), l = !1;
|
|
2269
|
-
for (const m of d)
|
|
2270
|
-
if (m.type === 0)
|
|
2271
|
-
a += m.value;
|
|
2272
|
-
else if (m.type === 1) {
|
|
2273
|
-
const { value: g, repeatable: E, optional: y } = m, S = g in f ? f[g] : "";
|
|
2274
|
-
if (M(S) && !E)
|
|
2275
|
-
throw new Error(`Provided param "${g}" is an array but it is not repeatable (* or + modifiers)`);
|
|
2276
|
-
const _ = M(S) ? S.join("/") : S;
|
|
2277
|
-
if (!_)
|
|
2278
|
-
if (y)
|
|
2279
|
-
d.length < 2 && (a.endsWith("/") ? a = a.slice(0, -1) : l = !0);
|
|
2280
|
-
else
|
|
2281
|
-
throw new Error(`Missing required param "${g}"`);
|
|
2282
|
-
a += _;
|
|
2283
|
-
}
|
|
2284
|
-
}
|
|
2285
|
-
return a || "/";
|
|
2286
|
-
}
|
|
2287
|
-
return {
|
|
2288
|
-
re: i,
|
|
2289
|
-
score: r,
|
|
2290
|
-
keys: s,
|
|
2291
|
-
parse: c,
|
|
2292
|
-
stringify: u
|
|
2293
|
-
};
|
|
2294
|
-
}
|
|
2295
|
-
function Ds(e, t) {
|
|
2296
|
-
let n = 0;
|
|
2297
|
-
for (; n < e.length && n < t.length; ) {
|
|
2298
|
-
const r = t[n] - e[n];
|
|
2299
|
-
if (r)
|
|
2300
|
-
return r;
|
|
2301
|
-
n++;
|
|
2302
|
-
}
|
|
2303
|
-
return e.length < t.length ? e.length === 1 && e[0] === 80 ? -1 : 1 : e.length > t.length ? t.length === 1 && t[0] === 80 ? 1 : -1 : 0;
|
|
2304
|
-
}
|
|
2305
|
-
function Kn(e, t) {
|
|
2306
|
-
let n = 0;
|
|
2307
|
-
const r = e.score, o = t.score;
|
|
2308
|
-
for (; n < r.length && n < o.length; ) {
|
|
2309
|
-
const s = Ds(r[n], o[n]);
|
|
2310
|
-
if (s)
|
|
2311
|
-
return s;
|
|
2312
|
-
n++;
|
|
2313
|
-
}
|
|
2314
|
-
if (Math.abs(o.length - r.length) === 1) {
|
|
2315
|
-
if (Wt(r))
|
|
2316
|
-
return 1;
|
|
2317
|
-
if (Wt(o))
|
|
2318
|
-
return -1;
|
|
2319
|
-
}
|
|
2320
|
-
return o.length - r.length;
|
|
2321
|
-
}
|
|
2322
|
-
function Wt(e) {
|
|
2323
|
-
const t = e[e.length - 1];
|
|
2324
|
-
return e.length > 0 && t[t.length - 1] < 0;
|
|
2325
|
-
}
|
|
2326
|
-
const $s = {
|
|
2327
|
-
type: 0,
|
|
2328
|
-
value: ""
|
|
2329
|
-
}, Is = /[a-zA-Z0-9_]/;
|
|
2330
|
-
function Ls(e) {
|
|
2331
|
-
if (!e)
|
|
2332
|
-
return [[]];
|
|
2333
|
-
if (e === "/")
|
|
2334
|
-
return [[$s]];
|
|
2335
|
-
if (!e.startsWith("/"))
|
|
2336
|
-
throw new Error(process.env.NODE_ENV !== "production" ? `Route paths should start with a "/": "${e}" should be "/${e}".` : `Invalid path "${e}"`);
|
|
2337
|
-
function t(m) {
|
|
2338
|
-
throw new Error(`ERR (${n})/"${f}": ${m}`);
|
|
2339
|
-
}
|
|
2340
|
-
let n = 0, r = n;
|
|
2341
|
-
const o = [];
|
|
2342
|
-
let s;
|
|
2343
|
-
function i() {
|
|
2344
|
-
s && o.push(s), s = [];
|
|
2345
|
-
}
|
|
2346
|
-
let c = 0, u, f = "", a = "";
|
|
2347
|
-
function l() {
|
|
2348
|
-
f && (n === 0 ? s.push({
|
|
2349
|
-
type: 0,
|
|
2350
|
-
value: f
|
|
2351
|
-
}) : n === 1 || n === 2 || n === 3 ? (s.length > 1 && (u === "*" || u === "+") && t(`A repeatable param (${f}) must be alone in its segment. eg: '/:ids+.`), s.push({
|
|
2352
|
-
type: 1,
|
|
2353
|
-
value: f,
|
|
2354
|
-
regexp: a,
|
|
2355
|
-
repeatable: u === "*" || u === "+",
|
|
2356
|
-
optional: u === "*" || u === "?"
|
|
2357
|
-
})) : t("Invalid state to consume buffer"), f = "");
|
|
2358
|
-
}
|
|
2359
|
-
function d() {
|
|
2360
|
-
f += u;
|
|
2361
|
-
}
|
|
2362
|
-
for (; c < e.length; ) {
|
|
2363
|
-
if (u = e[c++], u === "\\" && n !== 2) {
|
|
2364
|
-
r = n, n = 4;
|
|
2365
|
-
continue;
|
|
2366
|
-
}
|
|
2367
|
-
switch (n) {
|
|
2368
|
-
case 0:
|
|
2369
|
-
u === "/" ? (f && l(), i()) : u === ":" ? (l(), n = 1) : d();
|
|
2370
|
-
break;
|
|
2371
|
-
case 4:
|
|
2372
|
-
d(), n = r;
|
|
2373
|
-
break;
|
|
2374
|
-
case 1:
|
|
2375
|
-
u === "(" ? n = 2 : Is.test(u) ? d() : (l(), n = 0, u !== "*" && u !== "?" && u !== "+" && c--);
|
|
2376
|
-
break;
|
|
2377
|
-
case 2:
|
|
2378
|
-
u === ")" ? a[a.length - 1] == "\\" ? a = a.slice(0, -1) + u : n = 3 : a += u;
|
|
2379
|
-
break;
|
|
2380
|
-
case 3:
|
|
2381
|
-
l(), n = 0, u !== "*" && u !== "?" && u !== "+" && c--, a = "";
|
|
2382
|
-
break;
|
|
2383
|
-
default:
|
|
2384
|
-
t("Unknown state");
|
|
2385
|
-
break;
|
|
2386
|
-
}
|
|
2387
|
-
}
|
|
2388
|
-
return n === 2 && t(`Unfinished custom RegExp for param "${f}"`), l(), i(), o;
|
|
2389
|
-
}
|
|
2390
|
-
function Bs(e, t, n) {
|
|
2391
|
-
const r = ks(Ls(e.path), n);
|
|
2392
|
-
if (process.env.NODE_ENV !== "production") {
|
|
2393
|
-
const s = /* @__PURE__ */ new Set();
|
|
2394
|
-
for (const i of r.keys)
|
|
2395
|
-
s.has(i.name) && N(`Found duplicated params with name "${i.name}" for path "${e.path}". Only the last one will be available on "$route.params".`), s.add(i.name);
|
|
2396
|
-
}
|
|
2397
|
-
const o = T(r, {
|
|
2398
|
-
record: e,
|
|
2399
|
-
parent: t,
|
|
2400
|
-
// these needs to be populated by the parent
|
|
2401
|
-
children: [],
|
|
2402
|
-
alias: []
|
|
2403
|
-
});
|
|
2404
|
-
return t && !o.record.aliasOf == !t.record.aliasOf && t.children.push(o), o;
|
|
2405
|
-
}
|
|
2406
|
-
function Us(e, t) {
|
|
2407
|
-
const n = [], r = /* @__PURE__ */ new Map();
|
|
2408
|
-
t = Xt({ strict: !1, end: !0, sensitive: !1 }, t);
|
|
2409
|
-
function o(l) {
|
|
2410
|
-
return r.get(l);
|
|
2411
|
-
}
|
|
2412
|
-
function s(l, d, m) {
|
|
2413
|
-
const g = !m, E = Jt(l);
|
|
2414
|
-
process.env.NODE_ENV !== "production" && Ms(E, d), E.aliasOf = m && m.record;
|
|
2415
|
-
const y = Xt(t, l), S = [E];
|
|
2416
|
-
if ("alias" in l) {
|
|
2417
|
-
const k = typeof l.alias == "string" ? [l.alias] : l.alias;
|
|
2418
|
-
for (const C of k)
|
|
2419
|
-
S.push(
|
|
2420
|
-
// we need to normalize again to ensure the `mods` property
|
|
2421
|
-
// being non enumerable
|
|
2422
|
-
Jt(T({}, E, {
|
|
2423
|
-
// this allows us to hold a copy of the `components` option
|
|
2424
|
-
// so that async components cache is hold on the original record
|
|
2425
|
-
components: m ? m.record.components : E.components,
|
|
2426
|
-
path: C,
|
|
2427
|
-
// we might be the child of an alias
|
|
2428
|
-
aliasOf: m ? m.record : E
|
|
2429
|
-
// the aliases are always of the same kind as the original since they
|
|
2430
|
-
// are defined on the same record
|
|
2431
|
-
}))
|
|
2432
|
-
);
|
|
2433
|
-
}
|
|
2434
|
-
let _, R;
|
|
2435
|
-
for (const k of S) {
|
|
2436
|
-
const { path: C } = k;
|
|
2437
|
-
if (d && C[0] !== "/") {
|
|
2438
|
-
const B = d.record.path, I = B[B.length - 1] === "/" ? "" : "/";
|
|
2439
|
-
k.path = d.record.path + (C && I + C);
|
|
2440
|
-
}
|
|
2441
|
-
if (process.env.NODE_ENV !== "production" && k.path === "*")
|
|
2442
|
-
throw new Error(`Catch all routes ("*") must now be defined using a param with a custom regexp.
|
|
2443
|
-
See more at https://router.vuejs.org/guide/migration/#Removed-star-or-catch-all-routes.`);
|
|
2444
|
-
if (_ = Bs(k, d, y), process.env.NODE_ENV !== "production" && d && C[0] === "/" && qs(_, d), m ? (m.alias.push(_), process.env.NODE_ENV !== "production" && Fs(m, _)) : (R = R || _, R !== _ && R.alias.push(_), g && l.name && !Qt(_) && i(l.name)), Wn(_) && u(_), E.children) {
|
|
2445
|
-
const B = E.children;
|
|
2446
|
-
for (let I = 0; I < B.length; I++)
|
|
2447
|
-
s(B[I], _, m && m.children[I]);
|
|
2448
|
-
}
|
|
2449
|
-
m = m || _;
|
|
2450
|
-
}
|
|
2451
|
-
return R ? () => {
|
|
2452
|
-
i(R);
|
|
2453
|
-
} : me;
|
|
2454
|
-
}
|
|
2455
|
-
function i(l) {
|
|
2456
|
-
if (zn(l)) {
|
|
2457
|
-
const d = r.get(l);
|
|
2458
|
-
d && (r.delete(l), n.splice(n.indexOf(d), 1), d.children.forEach(i), d.alias.forEach(i));
|
|
2459
|
-
} else {
|
|
2460
|
-
const d = n.indexOf(l);
|
|
2461
|
-
d > -1 && (n.splice(d, 1), l.record.name && r.delete(l.record.name), l.children.forEach(i), l.alias.forEach(i));
|
|
2462
|
-
}
|
|
2463
|
-
}
|
|
2464
|
-
function c() {
|
|
2465
|
-
return n;
|
|
2466
|
-
}
|
|
2467
|
-
function u(l) {
|
|
2468
|
-
const d = Hs(l, n);
|
|
2469
|
-
n.splice(d, 0, l), l.record.name && !Qt(l) && r.set(l.record.name, l);
|
|
2470
|
-
}
|
|
2471
|
-
function f(l, d) {
|
|
2472
|
-
let m, g = {}, E, y;
|
|
2473
|
-
if ("name" in l && l.name) {
|
|
2474
|
-
if (m = r.get(l.name), !m)
|
|
2475
|
-
throw ce(1, {
|
|
2476
|
-
location: l
|
|
2477
|
-
});
|
|
2478
|
-
if (process.env.NODE_ENV !== "production") {
|
|
2479
|
-
const R = Object.keys(l.params || {}).filter((k) => !m.keys.find((C) => C.name === k));
|
|
2480
|
-
R.length && N(`Discarded invalid param(s) "${R.join('", "')}" when navigating. See https://github.com/vuejs/router/blob/main/packages/router/CHANGELOG.md#414-2022-08-22 for more details.`);
|
|
2481
|
-
}
|
|
2482
|
-
y = m.record.name, g = T(
|
|
2483
|
-
// paramsFromLocation is a new object
|
|
2484
|
-
Gt(
|
|
2485
|
-
d.params,
|
|
2486
|
-
// only keep params that exist in the resolved location
|
|
2487
|
-
// only keep optional params coming from a parent record
|
|
2488
|
-
m.keys.filter((R) => !R.optional).concat(m.parent ? m.parent.keys.filter((R) => R.optional) : []).map((R) => R.name)
|
|
2489
|
-
),
|
|
2490
|
-
// discard any existing params in the current location that do not exist here
|
|
2491
|
-
// #1497 this ensures better active/exact matching
|
|
2492
|
-
l.params && Gt(l.params, m.keys.map((R) => R.name))
|
|
2493
|
-
), E = m.stringify(g);
|
|
2494
|
-
} else if (l.path != null)
|
|
2495
|
-
E = l.path, process.env.NODE_ENV !== "production" && !E.startsWith("/") && N(`The Matcher cannot resolve relative paths but received "${E}". Unless you directly called \`matcher.resolve("${E}")\`, this is probably a bug in vue-router. Please open an issue at https://github.com/vuejs/router/issues/new/choose.`), m = n.find((R) => R.re.test(E)), m && (g = m.parse(E), y = m.record.name);
|
|
2496
|
-
else {
|
|
2497
|
-
if (m = d.name ? r.get(d.name) : n.find((R) => R.re.test(d.path)), !m)
|
|
2498
|
-
throw ce(1, {
|
|
2499
|
-
location: l,
|
|
2500
|
-
currentLocation: d
|
|
2501
|
-
});
|
|
2502
|
-
y = m.record.name, g = T({}, d.params, l.params), E = m.stringify(g);
|
|
2503
|
-
}
|
|
2504
|
-
const S = [];
|
|
2505
|
-
let _ = m;
|
|
2506
|
-
for (; _; )
|
|
2507
|
-
S.unshift(_.record), _ = _.parent;
|
|
2508
|
-
return {
|
|
2509
|
-
name: y,
|
|
2510
|
-
path: E,
|
|
2511
|
-
params: g,
|
|
2512
|
-
matched: S,
|
|
2513
|
-
meta: Vs(S)
|
|
2514
|
-
};
|
|
2515
|
-
}
|
|
2516
|
-
e.forEach((l) => s(l));
|
|
2517
|
-
function a() {
|
|
2518
|
-
n.length = 0, r.clear();
|
|
2519
|
-
}
|
|
2520
|
-
return {
|
|
2521
|
-
addRoute: s,
|
|
2522
|
-
resolve: f,
|
|
2523
|
-
removeRoute: i,
|
|
2524
|
-
clearRoutes: a,
|
|
2525
|
-
getRoutes: c,
|
|
2526
|
-
getRecordMatcher: o
|
|
2527
|
-
};
|
|
2528
|
-
}
|
|
2529
|
-
function Gt(e, t) {
|
|
2530
|
-
const n = {};
|
|
2531
|
-
for (const r of t)
|
|
2532
|
-
r in e && (n[r] = e[r]);
|
|
2533
|
-
return n;
|
|
2534
|
-
}
|
|
2535
|
-
function Jt(e) {
|
|
2536
|
-
const t = {
|
|
2537
|
-
path: e.path,
|
|
2538
|
-
redirect: e.redirect,
|
|
2539
|
-
name: e.name,
|
|
2540
|
-
meta: e.meta || {},
|
|
2541
|
-
aliasOf: e.aliasOf,
|
|
2542
|
-
beforeEnter: e.beforeEnter,
|
|
2543
|
-
props: js(e),
|
|
2544
|
-
children: e.children || [],
|
|
2545
|
-
instances: {},
|
|
2546
|
-
leaveGuards: /* @__PURE__ */ new Set(),
|
|
2547
|
-
updateGuards: /* @__PURE__ */ new Set(),
|
|
2548
|
-
enterCallbacks: {},
|
|
2549
|
-
// must be declared afterwards
|
|
2550
|
-
// mods: {},
|
|
2551
|
-
components: "components" in e ? e.components || null : e.component && { default: e.component }
|
|
2552
|
-
};
|
|
2553
|
-
return Object.defineProperty(t, "mods", {
|
|
2554
|
-
value: {}
|
|
2555
|
-
}), t;
|
|
2556
|
-
}
|
|
2557
|
-
function js(e) {
|
|
2558
|
-
const t = {}, n = e.props || !1;
|
|
2559
|
-
if ("component" in e)
|
|
2560
|
-
t.default = n;
|
|
2561
|
-
else
|
|
2562
|
-
for (const r in e.components)
|
|
2563
|
-
t[r] = typeof n == "object" ? n[r] : n;
|
|
2564
|
-
return t;
|
|
2565
|
-
}
|
|
2566
|
-
function Qt(e) {
|
|
2567
|
-
for (; e; ) {
|
|
2568
|
-
if (e.record.aliasOf)
|
|
2569
|
-
return !0;
|
|
2570
|
-
e = e.parent;
|
|
2571
|
-
}
|
|
2572
|
-
return !1;
|
|
2573
|
-
}
|
|
2574
|
-
function Vs(e) {
|
|
2575
|
-
return e.reduce((t, n) => T(t, n.meta), {});
|
|
2576
|
-
}
|
|
2577
|
-
function Xt(e, t) {
|
|
2578
|
-
const n = {};
|
|
2579
|
-
for (const r in e)
|
|
2580
|
-
n[r] = r in t ? t[r] : e[r];
|
|
2581
|
-
return n;
|
|
2582
|
-
}
|
|
2583
|
-
function lt(e, t) {
|
|
2584
|
-
return e.name === t.name && e.optional === t.optional && e.repeatable === t.repeatable;
|
|
2585
|
-
}
|
|
2586
|
-
function Fs(e, t) {
|
|
2587
|
-
for (const n of e.keys)
|
|
2588
|
-
if (!n.optional && !t.keys.find(lt.bind(null, n)))
|
|
2589
|
-
return N(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`);
|
|
2590
|
-
for (const n of t.keys)
|
|
2591
|
-
if (!n.optional && !e.keys.find(lt.bind(null, n)))
|
|
2592
|
-
return N(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`);
|
|
2593
|
-
}
|
|
2594
|
-
function Ms(e, t) {
|
|
2595
|
-
t && t.record.name && !e.name && !e.path && N(`The route named "${String(t.record.name)}" has a child without a name and an empty path. Using that name won't render the empty path child so you probably want to move the name to the child instead. If this is intentional, add a name to the child route to remove the warning.`);
|
|
2596
|
-
}
|
|
2597
|
-
function qs(e, t) {
|
|
2598
|
-
for (const n of t.keys)
|
|
2599
|
-
if (!e.keys.find(lt.bind(null, n)))
|
|
2600
|
-
return N(`Absolute path "${e.record.path}" must have the exact same param named "${n.name}" as its parent "${t.record.path}".`);
|
|
2601
|
-
}
|
|
2602
|
-
function Hs(e, t) {
|
|
2603
|
-
let n = 0, r = t.length;
|
|
2604
|
-
for (; n !== r; ) {
|
|
2605
|
-
const s = n + r >> 1;
|
|
2606
|
-
Kn(e, t[s]) < 0 ? r = s : n = s + 1;
|
|
2607
|
-
}
|
|
2608
|
-
const o = zs(e);
|
|
2609
|
-
return o && (r = t.lastIndexOf(o, r - 1), process.env.NODE_ENV !== "production" && r < 0 && N(`Finding ancestor route "${o.record.path}" failed for "${e.record.path}"`)), r;
|
|
2610
|
-
}
|
|
2611
|
-
function zs(e) {
|
|
2612
|
-
let t = e;
|
|
2613
|
-
for (; t = t.parent; )
|
|
2614
|
-
if (Wn(t) && Kn(e, t) === 0)
|
|
2615
|
-
return t;
|
|
2616
|
-
}
|
|
2617
|
-
function Wn({ record: e }) {
|
|
2618
|
-
return !!(e.name || e.components && Object.keys(e.components).length || e.redirect);
|
|
2619
|
-
}
|
|
2620
|
-
function Ks(e) {
|
|
2621
|
-
const t = {};
|
|
2622
|
-
if (e === "" || e === "?")
|
|
2623
|
-
return t;
|
|
2624
|
-
const r = (e[0] === "?" ? e.slice(1) : e).split("&");
|
|
2625
|
-
for (let o = 0; o < r.length; ++o) {
|
|
2626
|
-
const s = r[o].replace(jn, " "), i = s.indexOf("="), c = ae(i < 0 ? s : s.slice(0, i)), u = i < 0 ? null : ae(s.slice(i + 1));
|
|
2627
|
-
if (c in t) {
|
|
2628
|
-
let f = t[c];
|
|
2629
|
-
M(f) || (f = t[c] = [f]), f.push(u);
|
|
2630
|
-
} else
|
|
2631
|
-
t[c] = u;
|
|
2632
|
-
}
|
|
2633
|
-
return t;
|
|
2634
|
-
}
|
|
2635
|
-
function Yt(e) {
|
|
2636
|
-
let t = "";
|
|
2637
|
-
for (let n in e) {
|
|
2638
|
-
const r = e[n];
|
|
2639
|
-
if (n = cs(n), r == null) {
|
|
2640
|
-
r !== void 0 && (t += (t.length ? "&" : "") + n);
|
|
2641
|
-
continue;
|
|
2642
|
-
}
|
|
2643
|
-
(M(r) ? r.map((s) => s && it(s)) : [r && it(r)]).forEach((s) => {
|
|
2644
|
-
s !== void 0 && (t += (t.length ? "&" : "") + n, s != null && (t += "=" + s));
|
|
2645
|
-
});
|
|
2646
|
-
}
|
|
2647
|
-
return t;
|
|
2648
|
-
}
|
|
2649
|
-
function Ws(e) {
|
|
2650
|
-
const t = {};
|
|
2651
|
-
for (const n in e) {
|
|
2652
|
-
const r = e[n];
|
|
2653
|
-
r !== void 0 && (t[n] = M(r) ? r.map((o) => o == null ? null : "" + o) : r == null ? r : "" + r);
|
|
2654
|
-
}
|
|
2655
|
-
return t;
|
|
2656
|
-
}
|
|
2657
|
-
const Gs = Symbol(process.env.NODE_ENV !== "production" ? "router view location matched" : ""), Zt = Symbol(process.env.NODE_ENV !== "production" ? "router view depth" : ""), vt = Symbol(process.env.NODE_ENV !== "production" ? "router" : ""), Gn = Symbol(process.env.NODE_ENV !== "production" ? "route location" : ""), ut = Symbol(process.env.NODE_ENV !== "production" ? "router view location" : "");
|
|
2658
|
-
function he() {
|
|
2659
|
-
let e = [];
|
|
2660
|
-
function t(r) {
|
|
2661
|
-
return e.push(r), () => {
|
|
2662
|
-
const o = e.indexOf(r);
|
|
2663
|
-
o > -1 && e.splice(o, 1);
|
|
2664
|
-
};
|
|
2665
|
-
}
|
|
2666
|
-
function n() {
|
|
2667
|
-
e = [];
|
|
2668
|
-
}
|
|
2669
|
-
return {
|
|
2670
|
-
add: t,
|
|
2671
|
-
list: () => e.slice(),
|
|
2672
|
-
reset: n
|
|
2673
|
-
};
|
|
2674
|
-
}
|
|
2675
|
-
function Q(e, t, n, r, o, s = (i) => i()) {
|
|
2676
|
-
const i = r && // name is defined if record is because of the function overload
|
|
2677
|
-
(r.enterCallbacks[o] = r.enterCallbacks[o] || []);
|
|
2678
|
-
return () => new Promise((c, u) => {
|
|
2679
|
-
const f = (d) => {
|
|
2680
|
-
d === !1 ? u(ce(4, {
|
|
2681
|
-
from: n,
|
|
2682
|
-
to: t
|
|
2683
|
-
})) : d instanceof Error ? u(d) : Ce(d) ? u(ce(2, {
|
|
2684
|
-
from: t,
|
|
2685
|
-
to: d
|
|
2686
|
-
})) : (i && // since enterCallbackArray is truthy, both record and name also are
|
|
2687
|
-
r.enterCallbacks[o] === i && typeof d == "function" && i.push(d), c());
|
|
2688
|
-
}, a = s(() => e.call(r && r.instances[o], t, n, process.env.NODE_ENV !== "production" ? Js(f, t, n) : f));
|
|
2689
|
-
let l = Promise.resolve(a);
|
|
2690
|
-
if (e.length < 3 && (l = l.then(f)), process.env.NODE_ENV !== "production" && e.length > 2) {
|
|
2691
|
-
const d = `The "next" callback was never called inside of ${e.name ? '"' + e.name + '"' : ""}:
|
|
2692
|
-
${e.toString()}
|
|
2693
|
-
. If you are returning a value instead of calling "next", make sure to remove the "next" parameter from your function.`;
|
|
2694
|
-
if (typeof a == "object" && "then" in a)
|
|
2695
|
-
l = l.then((m) => f._called ? m : (N(d), Promise.reject(new Error("Invalid navigation guard"))));
|
|
2696
|
-
else if (a !== void 0 && !f._called) {
|
|
2697
|
-
N(d), u(new Error("Invalid navigation guard"));
|
|
2698
|
-
return;
|
|
2699
|
-
}
|
|
2700
|
-
}
|
|
2701
|
-
l.catch((d) => u(d));
|
|
2702
|
-
});
|
|
2703
|
-
}
|
|
2704
|
-
function Js(e, t, n) {
|
|
2705
|
-
let r = 0;
|
|
2706
|
-
return function() {
|
|
2707
|
-
r++ === 1 && N(`The "next" callback was called more than once in one navigation guard when going from "${n.fullPath}" to "${t.fullPath}". It should be called exactly one time in each navigation guard. This will fail in production.`), e._called = !0, r === 1 && e.apply(null, arguments);
|
|
2708
|
-
};
|
|
2709
|
-
}
|
|
2710
|
-
function Qe(e, t, n, r, o = (s) => s()) {
|
|
2711
|
-
const s = [];
|
|
2712
|
-
for (const i of e) {
|
|
2713
|
-
process.env.NODE_ENV !== "production" && !i.components && !i.children.length && N(`Record with path "${i.path}" is either missing a "component(s)" or "children" property.`);
|
|
2714
|
-
for (const c in i.components) {
|
|
2715
|
-
let u = i.components[c];
|
|
2716
|
-
if (process.env.NODE_ENV !== "production") {
|
|
2717
|
-
if (!u || typeof u != "object" && typeof u != "function")
|
|
2718
|
-
throw N(`Component "${c}" in record with path "${i.path}" is not a valid component. Received "${String(u)}".`), new Error("Invalid route component");
|
|
2719
|
-
if ("then" in u) {
|
|
2720
|
-
N(`Component "${c}" in record with path "${i.path}" is a Promise instead of a function that returns a Promise. Did you write "import('./MyPage.vue')" instead of "() => import('./MyPage.vue')" ? This will break in production if not fixed.`);
|
|
2721
|
-
const f = u;
|
|
2722
|
-
u = () => f;
|
|
2723
|
-
} else u.__asyncLoader && // warn only once per component
|
|
2724
|
-
!u.__warnedDefineAsync && (u.__warnedDefineAsync = !0, N(`Component "${c}" in record with path "${i.path}" is defined using "defineAsyncComponent()". Write "() => import('./MyPage.vue')" instead of "defineAsyncComponent(() => import('./MyPage.vue'))".`));
|
|
2725
|
-
}
|
|
2726
|
-
if (!(t !== "beforeRouteEnter" && !i.instances[c]))
|
|
2727
|
-
if (Bn(u)) {
|
|
2728
|
-
const a = (u.__vccOpts || u)[t];
|
|
2729
|
-
a && s.push(Q(a, n, r, i, c, o));
|
|
2730
|
-
} else {
|
|
2731
|
-
let f = u();
|
|
2732
|
-
process.env.NODE_ENV !== "production" && !("catch" in f) && (N(`Component "${c}" in record with path "${i.path}" is a function that does not return a Promise. If you were passing a functional component, make sure to add a "displayName" to the component. This will break in production if not fixed.`), f = Promise.resolve(f)), s.push(() => f.then((a) => {
|
|
2733
|
-
if (!a)
|
|
2734
|
-
throw new Error(`Couldn't resolve component "${c}" at "${i.path}"`);
|
|
2735
|
-
const l = Xo(a) ? a.default : a;
|
|
2736
|
-
i.mods[c] = a, i.components[c] = l;
|
|
2737
|
-
const m = (l.__vccOpts || l)[t];
|
|
2738
|
-
return m && Q(m, n, r, i, c, o)();
|
|
2739
|
-
}));
|
|
2740
|
-
}
|
|
2741
|
-
}
|
|
2742
|
-
}
|
|
2743
|
-
return s;
|
|
2744
|
-
}
|
|
2745
|
-
function en(e) {
|
|
2746
|
-
const t = ye(vt), n = ye(Gn);
|
|
2747
|
-
let r = !1, o = null;
|
|
2748
|
-
const s = H(() => {
|
|
2749
|
-
const a = ie(e.to);
|
|
2750
|
-
return process.env.NODE_ENV !== "production" && (!r || a !== o) && (Ce(a) || (r ? N(`Invalid value for prop "to" in useLink()
|
|
2751
|
-
- to:`, a, `
|
|
2752
|
-
- previous to:`, o, `
|
|
2753
|
-
- props:`, e) : N(`Invalid value for prop "to" in useLink()
|
|
2754
|
-
- to:`, a, `
|
|
2755
|
-
- props:`, e)), o = a, r = !0), t.resolve(a);
|
|
2756
|
-
}), i = H(() => {
|
|
2757
|
-
const { matched: a } = s.value, { length: l } = a, d = a[l - 1], m = n.matched;
|
|
2758
|
-
if (!d || !m.length)
|
|
2759
|
-
return -1;
|
|
2760
|
-
const g = m.findIndex(X.bind(null, d));
|
|
2761
|
-
if (g > -1)
|
|
2762
|
-
return g;
|
|
2763
|
-
const E = tn(a[l - 2]);
|
|
2764
|
-
return (
|
|
2765
|
-
// we are dealing with nested routes
|
|
2766
|
-
l > 1 && // if the parent and matched route have the same path, this link is
|
|
2767
|
-
// referring to the empty child. Or we currently are on a different
|
|
2768
|
-
// child of the same parent
|
|
2769
|
-
tn(d) === E && // avoid comparing the child with its parent
|
|
2770
|
-
m[m.length - 1].path !== E ? m.findIndex(X.bind(null, a[l - 2])) : g
|
|
2771
|
-
);
|
|
2772
|
-
}), c = H(() => i.value > -1 && Zs(n.params, s.value.params)), u = H(() => i.value > -1 && i.value === n.matched.length - 1 && qn(n.params, s.value.params));
|
|
2773
|
-
function f(a = {}) {
|
|
2774
|
-
return Ys(a) ? t[ie(e.replace) ? "replace" : "push"](
|
|
2775
|
-
ie(e.to)
|
|
2776
|
-
// avoid uncaught errors are they are logged anyway
|
|
2777
|
-
).catch(me) : Promise.resolve();
|
|
2778
|
-
}
|
|
2779
|
-
if (process.env.NODE_ENV !== "production" && K) {
|
|
2780
|
-
const a = un();
|
|
2781
|
-
if (a) {
|
|
2782
|
-
const l = {
|
|
2783
|
-
route: s.value,
|
|
2784
|
-
isActive: c.value,
|
|
2785
|
-
isExactActive: u.value,
|
|
2786
|
-
error: null
|
|
2787
|
-
};
|
|
2788
|
-
a.__vrl_devtools = a.__vrl_devtools || [], a.__vrl_devtools.push(l), lr(() => {
|
|
2789
|
-
l.route = s.value, l.isActive = c.value, l.isExactActive = u.value, l.error = Ce(ie(e.to)) ? null : 'Invalid "to" value';
|
|
2790
|
-
}, { flush: "post" });
|
|
2791
|
-
}
|
|
2792
|
-
}
|
|
2793
|
-
return {
|
|
2794
|
-
route: s,
|
|
2795
|
-
href: H(() => s.value.href),
|
|
2796
|
-
isActive: c,
|
|
2797
|
-
isExactActive: u,
|
|
2798
|
-
navigate: f
|
|
2799
|
-
};
|
|
2800
|
-
}
|
|
2801
|
-
const Qs = /* @__PURE__ */ an({
|
|
2802
|
-
name: "RouterLink",
|
|
2803
|
-
compatConfig: { MODE: 3 },
|
|
2804
|
-
props: {
|
|
2805
|
-
to: {
|
|
2806
|
-
type: [String, Object],
|
|
2807
|
-
required: !0
|
|
2808
|
-
},
|
|
2809
|
-
replace: Boolean,
|
|
2810
|
-
activeClass: String,
|
|
2811
|
-
// inactiveClass: String,
|
|
2812
|
-
exactActiveClass: String,
|
|
2813
|
-
custom: Boolean,
|
|
2814
|
-
ariaCurrentValue: {
|
|
2815
|
-
type: String,
|
|
2816
|
-
default: "page"
|
|
2817
|
-
}
|
|
2818
|
-
},
|
|
2819
|
-
useLink: en,
|
|
2820
|
-
setup(e, { slots: t }) {
|
|
2821
|
-
const n = ar(en(e)), { options: r } = ye(vt), o = H(() => ({
|
|
2822
|
-
[nn(e.activeClass, r.linkActiveClass, "router-link-active")]: n.isActive,
|
|
2823
|
-
// [getLinkClass(
|
|
2824
|
-
// props.inactiveClass,
|
|
2825
|
-
// options.linkInactiveClass,
|
|
2826
|
-
// 'router-link-inactive'
|
|
2827
|
-
// )]: !link.isExactActive,
|
|
2828
|
-
[nn(e.exactActiveClass, r.linkExactActiveClass, "router-link-exact-active")]: n.isExactActive
|
|
2829
|
-
}));
|
|
2830
|
-
return () => {
|
|
2831
|
-
const s = t.default && t.default(n);
|
|
2832
|
-
return e.custom ? s : cn("a", {
|
|
2833
|
-
"aria-current": n.isExactActive ? e.ariaCurrentValue : null,
|
|
2834
|
-
href: n.href,
|
|
2835
|
-
// this would override user added attrs but Vue will still add
|
|
2836
|
-
// the listener, so we end up triggering both
|
|
2837
|
-
onClick: n.navigate,
|
|
2838
|
-
class: o.value
|
|
2839
|
-
}, s);
|
|
2840
|
-
};
|
|
2841
|
-
}
|
|
2842
|
-
}), Xs = Qs;
|
|
2843
|
-
function Ys(e) {
|
|
2844
|
-
if (!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey) && !e.defaultPrevented && !(e.button !== void 0 && e.button !== 0)) {
|
|
2845
|
-
if (e.currentTarget && e.currentTarget.getAttribute) {
|
|
2846
|
-
const t = e.currentTarget.getAttribute("target");
|
|
2847
|
-
if (/\b_blank\b/i.test(t))
|
|
2848
|
-
return;
|
|
2849
|
-
}
|
|
2850
|
-
return e.preventDefault && e.preventDefault(), !0;
|
|
2851
|
-
}
|
|
2852
|
-
}
|
|
2853
|
-
function Zs(e, t) {
|
|
2854
|
-
for (const n in t) {
|
|
2855
|
-
const r = t[n], o = e[n];
|
|
2856
|
-
if (typeof r == "string") {
|
|
2857
|
-
if (r !== o)
|
|
2858
|
-
return !1;
|
|
2859
|
-
} else if (!M(o) || o.length !== r.length || r.some((s, i) => s !== o[i]))
|
|
2860
|
-
return !1;
|
|
2861
|
-
}
|
|
2862
|
-
return !0;
|
|
2863
|
-
}
|
|
2864
|
-
function tn(e) {
|
|
2865
|
-
return e ? e.aliasOf ? e.aliasOf.path : e.path : "";
|
|
2866
|
-
}
|
|
2867
|
-
const nn = (e, t, n) => e ?? t ?? n, ei = /* @__PURE__ */ an({
|
|
2868
|
-
name: "RouterView",
|
|
2869
|
-
// #674 we manually inherit them
|
|
2870
|
-
inheritAttrs: !1,
|
|
2871
|
-
props: {
|
|
2872
|
-
name: {
|
|
2873
|
-
type: String,
|
|
2874
|
-
default: "default"
|
|
2875
|
-
},
|
|
2876
|
-
route: Object
|
|
2877
|
-
},
|
|
2878
|
-
// Better compat for @vue/compat users
|
|
2879
|
-
// https://github.com/vuejs/router/issues/1315
|
|
2880
|
-
compatConfig: { MODE: 3 },
|
|
2881
|
-
setup(e, { attrs: t, slots: n }) {
|
|
2882
|
-
process.env.NODE_ENV !== "production" && ni();
|
|
2883
|
-
const r = ye(ut), o = H(() => e.route || r.value), s = ye(Zt, 0), i = H(() => {
|
|
2884
|
-
let f = ie(s);
|
|
2885
|
-
const { matched: a } = o.value;
|
|
2886
|
-
let l;
|
|
2887
|
-
for (; (l = a[f]) && !l.components; )
|
|
2888
|
-
f++;
|
|
2889
|
-
return f;
|
|
2890
|
-
}), c = H(() => o.value.matched[i.value]);
|
|
2891
|
-
qe(Zt, H(() => i.value + 1)), qe(Gs, c), qe(ut, o);
|
|
2892
|
-
const u = cr();
|
|
2893
|
-
return ln(() => [u.value, c.value, e.name], ([f, a, l], [d, m, g]) => {
|
|
2894
|
-
a && (a.instances[l] = f, m && m !== a && f && f === d && (a.leaveGuards.size || (a.leaveGuards = m.leaveGuards), a.updateGuards.size || (a.updateGuards = m.updateGuards))), f && a && // if there is no instance but to and from are the same this might be
|
|
2895
|
-
// the first visit
|
|
2896
|
-
(!m || !X(a, m) || !d) && (a.enterCallbacks[l] || []).forEach((E) => E(f));
|
|
2897
|
-
}, { flush: "post" }), () => {
|
|
2898
|
-
const f = o.value, a = e.name, l = c.value, d = l && l.components[a];
|
|
2899
|
-
if (!d)
|
|
2900
|
-
return rn(n.default, { Component: d, route: f });
|
|
2901
|
-
const m = l.props[a], g = m ? m === !0 ? f.params : typeof m == "function" ? m(f) : m : null, y = cn(d, T({}, g, t, {
|
|
2902
|
-
onVnodeUnmounted: (S) => {
|
|
2903
|
-
S.component.isUnmounted && (l.instances[a] = null);
|
|
2904
|
-
},
|
|
2905
|
-
ref: u
|
|
2906
|
-
}));
|
|
2907
|
-
if (process.env.NODE_ENV !== "production" && K && y.ref) {
|
|
2908
|
-
const S = {
|
|
2909
|
-
depth: i.value,
|
|
2910
|
-
name: l.name,
|
|
2911
|
-
path: l.path,
|
|
2912
|
-
meta: l.meta
|
|
2913
|
-
};
|
|
2914
|
-
(M(y.ref) ? y.ref.map((R) => R.i) : [y.ref.i]).forEach((R) => {
|
|
2915
|
-
R.__vrv_devtools = S;
|
|
2916
|
-
});
|
|
2917
|
-
}
|
|
2918
|
-
return (
|
|
2919
|
-
// pass the vnode to the slot as a prop.
|
|
2920
|
-
// h and <component :is="..."> both accept vnodes
|
|
2921
|
-
rn(n.default, { Component: y, route: f }) || y
|
|
2922
|
-
);
|
|
2923
|
-
};
|
|
2924
|
-
}
|
|
2925
|
-
});
|
|
2926
|
-
function rn(e, t) {
|
|
2927
|
-
if (!e)
|
|
2928
|
-
return null;
|
|
2929
|
-
const n = e(t);
|
|
2930
|
-
return n.length === 1 ? n[0] : n;
|
|
2931
|
-
}
|
|
2932
|
-
const ti = ei;
|
|
2933
|
-
function ni() {
|
|
2934
|
-
const e = un(), t = e.parent && e.parent.type.name, n = e.parent && e.parent.subTree && e.parent.subTree.type;
|
|
2935
|
-
if (t && (t === "KeepAlive" || t.includes("Transition")) && typeof n == "object" && n.name === "RouterView") {
|
|
2936
|
-
const r = t === "KeepAlive" ? "keep-alive" : "transition";
|
|
2937
|
-
N(`<router-view> can no longer be used directly inside <transition> or <keep-alive>.
|
|
2938
|
-
Use slot props instead:
|
|
2939
|
-
|
|
2940
|
-
<router-view v-slot="{ Component }">
|
|
2941
|
-
<${r}>
|
|
2942
|
-
<component :is="Component" />
|
|
2943
|
-
</${r}>
|
|
2944
|
-
</router-view>`);
|
|
2945
|
-
}
|
|
2946
|
-
}
|
|
2947
|
-
function pe(e, t) {
|
|
2948
|
-
const n = T({}, e, {
|
|
2949
|
-
// remove variables that can contain vue instances
|
|
2950
|
-
matched: e.matched.map((r) => hi(r, ["instances", "children", "aliasOf"]))
|
|
2951
|
-
});
|
|
2952
|
-
return {
|
|
2953
|
-
_custom: {
|
|
2954
|
-
type: null,
|
|
2955
|
-
readOnly: !0,
|
|
2956
|
-
display: e.fullPath,
|
|
2957
|
-
tooltip: t,
|
|
2958
|
-
value: n
|
|
2959
|
-
}
|
|
2960
|
-
};
|
|
2961
|
-
}
|
|
2962
|
-
function Ne(e) {
|
|
2963
|
-
return {
|
|
2964
|
-
_custom: {
|
|
2965
|
-
display: e
|
|
2966
|
-
}
|
|
2967
|
-
};
|
|
2968
|
-
}
|
|
2969
|
-
let ri = 0;
|
|
2970
|
-
function oi(e, t, n) {
|
|
2971
|
-
if (t.__hasDevtools)
|
|
2972
|
-
return;
|
|
2973
|
-
t.__hasDevtools = !0;
|
|
2974
|
-
const r = ri++;
|
|
2975
|
-
Qo({
|
|
2976
|
-
id: "org.vuejs.router" + (r ? "." + r : ""),
|
|
2977
|
-
label: "Vue Router",
|
|
2978
|
-
packageName: "vue-router",
|
|
2979
|
-
homepage: "https://router.vuejs.org",
|
|
2980
|
-
logo: "https://router.vuejs.org/logo.png",
|
|
2981
|
-
componentStateTypes: ["Routing"],
|
|
2982
|
-
app: e
|
|
2983
|
-
}, (o) => {
|
|
2984
|
-
typeof o.now != "function" && console.warn("[Vue Router]: You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."), o.on.inspectComponent((a, l) => {
|
|
2985
|
-
a.instanceData && a.instanceData.state.push({
|
|
2986
|
-
type: "Routing",
|
|
2987
|
-
key: "$route",
|
|
2988
|
-
editable: !1,
|
|
2989
|
-
value: pe(t.currentRoute.value, "Current Route")
|
|
2990
|
-
});
|
|
2991
|
-
}), o.on.visitComponentTree(({ treeNode: a, componentInstance: l }) => {
|
|
2992
|
-
if (l.__vrv_devtools) {
|
|
2993
|
-
const d = l.__vrv_devtools;
|
|
2994
|
-
a.tags.push({
|
|
2995
|
-
label: (d.name ? `${d.name.toString()}: ` : "") + d.path,
|
|
2996
|
-
textColor: 0,
|
|
2997
|
-
tooltip: "This component is rendered by <router-view>",
|
|
2998
|
-
backgroundColor: Jn
|
|
2999
|
-
});
|
|
3000
|
-
}
|
|
3001
|
-
M(l.__vrl_devtools) && (l.__devtoolsApi = o, l.__vrl_devtools.forEach((d) => {
|
|
3002
|
-
let m = d.route.path, g = Yn, E = "", y = 0;
|
|
3003
|
-
d.error ? (m = d.error, g = li, y = ui) : d.isExactActive ? (g = Xn, E = "This is exactly active") : d.isActive && (g = Qn, E = "This link is active"), a.tags.push({
|
|
3004
|
-
label: m,
|
|
3005
|
-
textColor: y,
|
|
3006
|
-
tooltip: E,
|
|
3007
|
-
backgroundColor: g
|
|
3008
|
-
});
|
|
3009
|
-
}));
|
|
3010
|
-
}), ln(t.currentRoute, () => {
|
|
3011
|
-
u(), o.notifyComponentUpdate(), o.sendInspectorTree(c), o.sendInspectorState(c);
|
|
3012
|
-
});
|
|
3013
|
-
const s = "router:navigations:" + r;
|
|
3014
|
-
o.addTimelineLayer({
|
|
3015
|
-
id: s,
|
|
3016
|
-
label: `Router${r ? " " + r : ""} Navigations`,
|
|
3017
|
-
color: 4237508
|
|
3018
|
-
}), t.onError((a, l) => {
|
|
3019
|
-
o.addTimelineEvent({
|
|
3020
|
-
layerId: s,
|
|
3021
|
-
event: {
|
|
3022
|
-
title: "Error during Navigation",
|
|
3023
|
-
subtitle: l.fullPath,
|
|
3024
|
-
logType: "error",
|
|
3025
|
-
time: o.now(),
|
|
3026
|
-
data: { error: a },
|
|
3027
|
-
groupId: l.meta.__navigationId
|
|
3028
|
-
}
|
|
3029
|
-
});
|
|
3030
|
-
});
|
|
3031
|
-
let i = 0;
|
|
3032
|
-
t.beforeEach((a, l) => {
|
|
3033
|
-
const d = {
|
|
3034
|
-
guard: Ne("beforeEach"),
|
|
3035
|
-
from: pe(l, "Current Location during this navigation"),
|
|
3036
|
-
to: pe(a, "Target location")
|
|
3037
|
-
};
|
|
3038
|
-
Object.defineProperty(a.meta, "__navigationId", {
|
|
3039
|
-
value: i++
|
|
3040
|
-
}), o.addTimelineEvent({
|
|
3041
|
-
layerId: s,
|
|
3042
|
-
event: {
|
|
3043
|
-
time: o.now(),
|
|
3044
|
-
title: "Start of navigation",
|
|
3045
|
-
subtitle: a.fullPath,
|
|
3046
|
-
data: d,
|
|
3047
|
-
groupId: a.meta.__navigationId
|
|
3048
|
-
}
|
|
3049
|
-
});
|
|
3050
|
-
}), t.afterEach((a, l, d) => {
|
|
3051
|
-
const m = {
|
|
3052
|
-
guard: Ne("afterEach")
|
|
3053
|
-
};
|
|
3054
|
-
d ? (m.failure = {
|
|
3055
|
-
_custom: {
|
|
3056
|
-
type: Error,
|
|
3057
|
-
readOnly: !0,
|
|
3058
|
-
display: d ? d.message : "",
|
|
3059
|
-
tooltip: "Navigation Failure",
|
|
3060
|
-
value: d
|
|
3061
|
-
}
|
|
3062
|
-
}, m.status = Ne("❌")) : m.status = Ne("✅"), m.from = pe(l, "Current Location during this navigation"), m.to = pe(a, "Target location"), o.addTimelineEvent({
|
|
3063
|
-
layerId: s,
|
|
3064
|
-
event: {
|
|
3065
|
-
title: "End of navigation",
|
|
3066
|
-
subtitle: a.fullPath,
|
|
3067
|
-
time: o.now(),
|
|
3068
|
-
data: m,
|
|
3069
|
-
logType: d ? "warning" : "default",
|
|
3070
|
-
groupId: a.meta.__navigationId
|
|
3071
|
-
}
|
|
3072
|
-
});
|
|
3073
|
-
});
|
|
3074
|
-
const c = "router-inspector:" + r;
|
|
3075
|
-
o.addInspector({
|
|
3076
|
-
id: c,
|
|
3077
|
-
label: "Routes" + (r ? " " + r : ""),
|
|
3078
|
-
icon: "book",
|
|
3079
|
-
treeFilterPlaceholder: "Search routes"
|
|
3080
|
-
});
|
|
3081
|
-
function u() {
|
|
3082
|
-
if (!f)
|
|
3083
|
-
return;
|
|
3084
|
-
const a = f;
|
|
3085
|
-
let l = n.getRoutes().filter((d) => !d.parent || // these routes have a parent with no component which will not appear in the view
|
|
3086
|
-
// therefore we still need to include them
|
|
3087
|
-
!d.parent.record.components);
|
|
3088
|
-
l.forEach(tr), a.filter && (l = l.filter((d) => (
|
|
3089
|
-
// save matches state based on the payload
|
|
3090
|
-
ft(d, a.filter.toLowerCase())
|
|
3091
|
-
))), l.forEach((d) => er(d, t.currentRoute.value)), a.rootNodes = l.map(Zn);
|
|
3092
|
-
}
|
|
3093
|
-
let f;
|
|
3094
|
-
o.on.getInspectorTree((a) => {
|
|
3095
|
-
f = a, a.app === e && a.inspectorId === c && u();
|
|
3096
|
-
}), o.on.getInspectorState((a) => {
|
|
3097
|
-
if (a.app === e && a.inspectorId === c) {
|
|
3098
|
-
const d = n.getRoutes().find((m) => m.record.__vd_id === a.nodeId);
|
|
3099
|
-
d && (a.state = {
|
|
3100
|
-
options: ii(d)
|
|
3101
|
-
});
|
|
3102
|
-
}
|
|
3103
|
-
}), o.sendInspectorTree(c), o.sendInspectorState(c);
|
|
3104
|
-
});
|
|
3105
|
-
}
|
|
3106
|
-
function si(e) {
|
|
3107
|
-
return e.optional ? e.repeatable ? "*" : "?" : e.repeatable ? "+" : "";
|
|
3108
|
-
}
|
|
3109
|
-
function ii(e) {
|
|
3110
|
-
const { record: t } = e, n = [
|
|
3111
|
-
{ editable: !1, key: "path", value: t.path }
|
|
3112
|
-
];
|
|
3113
|
-
return t.name != null && n.push({
|
|
3114
|
-
editable: !1,
|
|
3115
|
-
key: "name",
|
|
3116
|
-
value: t.name
|
|
3117
|
-
}), n.push({ editable: !1, key: "regexp", value: e.re }), e.keys.length && n.push({
|
|
3118
|
-
editable: !1,
|
|
3119
|
-
key: "keys",
|
|
3120
|
-
value: {
|
|
3121
|
-
_custom: {
|
|
3122
|
-
type: null,
|
|
3123
|
-
readOnly: !0,
|
|
3124
|
-
display: e.keys.map((r) => `${r.name}${si(r)}`).join(" "),
|
|
3125
|
-
tooltip: "Param keys",
|
|
3126
|
-
value: e.keys
|
|
3127
|
-
}
|
|
3128
|
-
}
|
|
3129
|
-
}), t.redirect != null && n.push({
|
|
3130
|
-
editable: !1,
|
|
3131
|
-
key: "redirect",
|
|
3132
|
-
value: t.redirect
|
|
3133
|
-
}), e.alias.length && n.push({
|
|
3134
|
-
editable: !1,
|
|
3135
|
-
key: "aliases",
|
|
3136
|
-
value: e.alias.map((r) => r.record.path)
|
|
3137
|
-
}), Object.keys(e.record.meta).length && n.push({
|
|
3138
|
-
editable: !1,
|
|
3139
|
-
key: "meta",
|
|
3140
|
-
value: e.record.meta
|
|
3141
|
-
}), n.push({
|
|
3142
|
-
key: "score",
|
|
3143
|
-
editable: !1,
|
|
3144
|
-
value: {
|
|
3145
|
-
_custom: {
|
|
3146
|
-
type: null,
|
|
3147
|
-
readOnly: !0,
|
|
3148
|
-
display: e.score.map((r) => r.join(", ")).join(" | "),
|
|
3149
|
-
tooltip: "Score used to sort routes",
|
|
3150
|
-
value: e.score
|
|
3151
|
-
}
|
|
3152
|
-
}
|
|
3153
|
-
}), n;
|
|
3154
|
-
}
|
|
3155
|
-
const Jn = 15485081, Qn = 2450411, Xn = 8702998, ai = 2282478, Yn = 16486972, ci = 6710886, li = 16704226, ui = 12131356;
|
|
3156
|
-
function Zn(e) {
|
|
3157
|
-
const t = [], { record: n } = e;
|
|
3158
|
-
n.name != null && t.push({
|
|
3159
|
-
label: String(n.name),
|
|
3160
|
-
textColor: 0,
|
|
3161
|
-
backgroundColor: ai
|
|
3162
|
-
}), n.aliasOf && t.push({
|
|
3163
|
-
label: "alias",
|
|
3164
|
-
textColor: 0,
|
|
3165
|
-
backgroundColor: Yn
|
|
3166
|
-
}), e.__vd_match && t.push({
|
|
3167
|
-
label: "matches",
|
|
3168
|
-
textColor: 0,
|
|
3169
|
-
backgroundColor: Jn
|
|
3170
|
-
}), e.__vd_exactActive && t.push({
|
|
3171
|
-
label: "exact",
|
|
3172
|
-
textColor: 0,
|
|
3173
|
-
backgroundColor: Xn
|
|
3174
|
-
}), e.__vd_active && t.push({
|
|
3175
|
-
label: "active",
|
|
3176
|
-
textColor: 0,
|
|
3177
|
-
backgroundColor: Qn
|
|
3178
|
-
}), n.redirect && t.push({
|
|
3179
|
-
label: typeof n.redirect == "string" ? `redirect: ${n.redirect}` : "redirects",
|
|
3180
|
-
textColor: 16777215,
|
|
3181
|
-
backgroundColor: ci
|
|
3182
|
-
});
|
|
3183
|
-
let r = n.__vd_id;
|
|
3184
|
-
return r == null && (r = String(fi++), n.__vd_id = r), {
|
|
3185
|
-
id: r,
|
|
3186
|
-
label: n.path,
|
|
3187
|
-
tags: t,
|
|
3188
|
-
children: e.children.map(Zn)
|
|
3189
|
-
};
|
|
3190
|
-
}
|
|
3191
|
-
let fi = 0;
|
|
3192
|
-
const di = /^\/(.*)\/([a-z]*)$/;
|
|
3193
|
-
function er(e, t) {
|
|
3194
|
-
const n = t.matched.length && X(t.matched[t.matched.length - 1], e.record);
|
|
3195
|
-
e.__vd_exactActive = e.__vd_active = n, n || (e.__vd_active = t.matched.some((r) => X(r, e.record))), e.children.forEach((r) => er(r, t));
|
|
3196
|
-
}
|
|
3197
|
-
function tr(e) {
|
|
3198
|
-
e.__vd_match = !1, e.children.forEach(tr);
|
|
3199
|
-
}
|
|
3200
|
-
function ft(e, t) {
|
|
3201
|
-
const n = String(e.re).match(di);
|
|
3202
|
-
if (e.__vd_match = !1, !n || n.length < 3)
|
|
3203
|
-
return !1;
|
|
3204
|
-
if (new RegExp(n[1].replace(/\$$/, ""), n[2]).test(t))
|
|
3205
|
-
return e.children.forEach((i) => ft(i, t)), e.record.path !== "/" || t === "/" ? (e.__vd_match = e.re.test(t), !0) : !1;
|
|
3206
|
-
const o = e.record.path.toLowerCase(), s = ae(o);
|
|
3207
|
-
return !t.startsWith("/") && (s.includes(t) || o.includes(t)) || s.startsWith(t) || o.startsWith(t) || e.record.name && String(e.record.name).includes(t) ? !0 : e.children.some((i) => ft(i, t));
|
|
3208
|
-
}
|
|
3209
|
-
function hi(e, t) {
|
|
3210
|
-
const n = {};
|
|
3211
|
-
for (const r in e)
|
|
3212
|
-
t.includes(r) || (n[r] = e[r]);
|
|
3213
|
-
return n;
|
|
3214
|
-
}
|
|
3215
|
-
function pi(e) {
|
|
3216
|
-
const t = Us(e.routes, e), n = e.parseQuery || Ks, r = e.stringifyQuery || Yt, o = e.history;
|
|
3217
|
-
if (process.env.NODE_ENV !== "production" && !o)
|
|
3218
|
-
throw new Error('Provide the "history" option when calling "createRouter()": https://router.vuejs.org/api/interfaces/RouterOptions.html#history');
|
|
3219
|
-
const s = he(), i = he(), c = he(), u = or(J);
|
|
3220
|
-
let f = J;
|
|
3221
|
-
K && e.scrollBehavior && "scrollRestoration" in history && (history.scrollRestoration = "manual");
|
|
3222
|
-
const a = Ge.bind(null, (p) => "" + p), l = Ge.bind(null, us), d = (
|
|
3223
|
-
// @ts-expect-error: intentionally avoid the type check
|
|
3224
|
-
Ge.bind(null, ae)
|
|
3225
|
-
);
|
|
3226
|
-
function m(p, b) {
|
|
3227
|
-
let v, w;
|
|
3228
|
-
return zn(p) ? (v = t.getRecordMatcher(p), process.env.NODE_ENV !== "production" && !v && N(`Parent route "${String(p)}" not found when adding child route`, b), w = b) : w = p, t.addRoute(w, v);
|
|
3229
|
-
}
|
|
3230
|
-
function g(p) {
|
|
3231
|
-
const b = t.getRecordMatcher(p);
|
|
3232
|
-
b ? t.removeRoute(b) : process.env.NODE_ENV !== "production" && N(`Cannot remove non-existent route "${String(p)}"`);
|
|
3233
|
-
}
|
|
3234
|
-
function E() {
|
|
3235
|
-
return t.getRoutes().map((p) => p.record);
|
|
3236
|
-
}
|
|
3237
|
-
function y(p) {
|
|
3238
|
-
return !!t.getRecordMatcher(p);
|
|
3239
|
-
}
|
|
3240
|
-
function S(p, b) {
|
|
3241
|
-
if (b = T({}, b || u.value), typeof p == "string") {
|
|
3242
|
-
const P = Je(n, p, b.path), D = t.resolve({ path: P.path }, b), Y = o.createHref(P.fullPath);
|
|
3243
|
-
return process.env.NODE_ENV !== "production" && (Y.startsWith("//") ? N(`Location "${p}" resolved to "${Y}". A resolved location cannot start with multiple slashes.`) : D.matched.length || N(`No match found for location with path "${p}"`)), T(P, D, {
|
|
3244
|
-
params: d(D.params),
|
|
3245
|
-
hash: ae(P.hash),
|
|
3246
|
-
redirectedFrom: void 0,
|
|
3247
|
-
href: Y
|
|
3248
|
-
});
|
|
3249
|
-
}
|
|
3250
|
-
if (process.env.NODE_ENV !== "production" && !Ce(p))
|
|
3251
|
-
return N(`router.resolve() was passed an invalid location. This will fail in production.
|
|
3252
|
-
- Location:`, p), S({});
|
|
3253
|
-
let v;
|
|
3254
|
-
if (p.path != null)
|
|
3255
|
-
process.env.NODE_ENV !== "production" && "params" in p && !("name" in p) && // @ts-expect-error: the type is never
|
|
3256
|
-
Object.keys(p.params).length && N(`Path "${p.path}" was passed with params but they will be ignored. Use a named route alongside params instead.`), v = T({}, p, {
|
|
3257
|
-
path: Je(n, p.path, b.path).path
|
|
3258
|
-
});
|
|
3259
|
-
else {
|
|
3260
|
-
const P = T({}, p.params);
|
|
3261
|
-
for (const D in P)
|
|
3262
|
-
P[D] == null && delete P[D];
|
|
3263
|
-
v = T({}, p, {
|
|
3264
|
-
params: l(P)
|
|
3265
|
-
}), b.params = l(b.params);
|
|
3266
|
-
}
|
|
3267
|
-
const w = t.resolve(v, b), A = p.hash || "";
|
|
3268
|
-
process.env.NODE_ENV !== "production" && A && !A.startsWith("#") && N(`A \`hash\` should always start with the character "#". Replace "${A}" with "#${A}".`), w.params = a(d(w.params));
|
|
3269
|
-
const L = hs(r, T({}, p, {
|
|
3270
|
-
hash: as(A),
|
|
3271
|
-
path: w.path
|
|
3272
|
-
})), x = o.createHref(L);
|
|
3273
|
-
return process.env.NODE_ENV !== "production" && (x.startsWith("//") ? N(`Location "${p}" resolved to "${x}". A resolved location cannot start with multiple slashes.`) : w.matched.length || N(`No match found for location with path "${p.path != null ? p.path : p}"`)), T({
|
|
3274
|
-
fullPath: L,
|
|
3275
|
-
// keep the hash encoded so fullPath is effectively path + encodedQuery +
|
|
3276
|
-
// hash
|
|
3277
|
-
hash: A,
|
|
3278
|
-
query: (
|
|
3279
|
-
// if the user is using a custom query lib like qs, we might have
|
|
3280
|
-
// nested objects, so we keep the query as is, meaning it can contain
|
|
3281
|
-
// numbers at `$route.query`, but at the point, the user will have to
|
|
3282
|
-
// use their own type anyway.
|
|
3283
|
-
// https://github.com/vuejs/router/issues/328#issuecomment-649481567
|
|
3284
|
-
r === Yt ? Ws(p.query) : p.query || {}
|
|
3285
|
-
)
|
|
3286
|
-
}, w, {
|
|
3287
|
-
redirectedFrom: void 0,
|
|
3288
|
-
href: x
|
|
3289
|
-
});
|
|
3290
|
-
}
|
|
3291
|
-
function _(p) {
|
|
3292
|
-
return typeof p == "string" ? Je(n, p, u.value.path) : T({}, p);
|
|
3293
|
-
}
|
|
3294
|
-
function R(p, b) {
|
|
3295
|
-
if (f !== p)
|
|
3296
|
-
return ce(8, {
|
|
3297
|
-
from: b,
|
|
3298
|
-
to: p
|
|
3299
|
-
});
|
|
3300
|
-
}
|
|
3301
|
-
function k(p) {
|
|
3302
|
-
return I(p);
|
|
3303
|
-
}
|
|
3304
|
-
function C(p) {
|
|
3305
|
-
return k(T(_(p), { replace: !0 }));
|
|
3306
|
-
}
|
|
3307
|
-
function B(p) {
|
|
3308
|
-
const b = p.matched[p.matched.length - 1];
|
|
3309
|
-
if (b && b.redirect) {
|
|
3310
|
-
const { redirect: v } = b;
|
|
3311
|
-
let w = typeof v == "function" ? v(p) : v;
|
|
3312
|
-
if (typeof w == "string" && (w = w.includes("?") || w.includes("#") ? w = _(w) : (
|
|
3313
|
-
// force empty params
|
|
3314
|
-
{ path: w }
|
|
3315
|
-
), w.params = {}), process.env.NODE_ENV !== "production" && w.path == null && !("name" in w))
|
|
3316
|
-
throw N(`Invalid redirect found:
|
|
3317
|
-
${JSON.stringify(w, null, 2)}
|
|
3318
|
-
when navigating to "${p.fullPath}". A redirect must contain a name or path. This will break in production.`), new Error("Invalid redirect");
|
|
3319
|
-
return T({
|
|
3320
|
-
query: p.query,
|
|
3321
|
-
hash: p.hash,
|
|
3322
|
-
// avoid transferring params if the redirect has a path
|
|
3323
|
-
params: w.path != null ? {} : p.params
|
|
3324
|
-
}, w);
|
|
3325
|
-
}
|
|
3326
|
-
}
|
|
3327
|
-
function I(p, b) {
|
|
3328
|
-
const v = f = S(p), w = u.value, A = p.state, L = p.force, x = p.replace === !0, P = B(v);
|
|
3329
|
-
if (P)
|
|
3330
|
-
return I(
|
|
3331
|
-
T(_(P), {
|
|
3332
|
-
state: typeof P == "object" ? T({}, A, P.state) : A,
|
|
3333
|
-
force: L,
|
|
3334
|
-
replace: x
|
|
3335
|
-
}),
|
|
3336
|
-
// keep original redirectedFrom if it exists
|
|
3337
|
-
b || v
|
|
3338
|
-
);
|
|
3339
|
-
const D = v;
|
|
3340
|
-
D.redirectedFrom = b;
|
|
3341
|
-
let Y;
|
|
3342
|
-
return !L && Ft(r, w, v) && (Y = ce(16, { to: D, from: w }), St(
|
|
3343
|
-
w,
|
|
3344
|
-
w,
|
|
3345
|
-
// this is a push, the only way for it to be triggered from a
|
|
3346
|
-
// history.listen is with a redirect, which makes it become a push
|
|
3347
|
-
!0,
|
|
3348
|
-
// This cannot be the first navigation because the initial location
|
|
3349
|
-
// cannot be manually navigated to
|
|
3350
|
-
!1
|
|
3351
|
-
)), (Y ? Promise.resolve(Y) : bt(D, w)).catch((U) => z(U) ? (
|
|
3352
|
-
// navigation redirects still mark the router as ready
|
|
3353
|
-
z(
|
|
3354
|
-
U,
|
|
3355
|
-
2
|
|
3356
|
-
/* ErrorTypes.NAVIGATION_GUARD_REDIRECT */
|
|
3357
|
-
) ? U : Ve(U)
|
|
3358
|
-
) : (
|
|
3359
|
-
// reject any unknown error
|
|
3360
|
-
je(U, D, w)
|
|
3361
|
-
)).then((U) => {
|
|
3362
|
-
if (U) {
|
|
3363
|
-
if (z(
|
|
3364
|
-
U,
|
|
3365
|
-
2
|
|
3366
|
-
/* ErrorTypes.NAVIGATION_GUARD_REDIRECT */
|
|
3367
|
-
))
|
|
3368
|
-
return process.env.NODE_ENV !== "production" && // we are redirecting to the same location we were already at
|
|
3369
|
-
Ft(r, S(U.to), D) && // and we have done it a couple of times
|
|
3370
|
-
b && // @ts-expect-error: added only in dev
|
|
3371
|
-
(b._count = b._count ? (
|
|
3372
|
-
// @ts-expect-error
|
|
3373
|
-
b._count + 1
|
|
3374
|
-
) : 1) > 30 ? (N(`Detected a possibly infinite redirection in a navigation guard when going from "${w.fullPath}" to "${D.fullPath}". Aborting to avoid a Stack Overflow.
|
|
3375
|
-
Are you always returning a new location within a navigation guard? That would lead to this error. Only return when redirecting or aborting, that should fix this. This might break in production if not fixed.`), Promise.reject(new Error("Infinite redirect in navigation guard"))) : I(
|
|
3376
|
-
// keep options
|
|
3377
|
-
T({
|
|
3378
|
-
// preserve an existing replacement but allow the redirect to override it
|
|
3379
|
-
replace: x
|
|
3380
|
-
}, _(U.to), {
|
|
3381
|
-
state: typeof U.to == "object" ? T({}, A, U.to.state) : A,
|
|
3382
|
-
force: L
|
|
3383
|
-
}),
|
|
3384
|
-
// preserve the original redirectedFrom if any
|
|
3385
|
-
b || D
|
|
3386
|
-
);
|
|
3387
|
-
} else
|
|
3388
|
-
U = _t(D, w, !0, x, A);
|
|
3389
|
-
return wt(D, w, U), U;
|
|
3390
|
-
});
|
|
3391
|
-
}
|
|
3392
|
-
function ne(p, b) {
|
|
3393
|
-
const v = R(p, b);
|
|
3394
|
-
return v ? Promise.reject(v) : Promise.resolve();
|
|
3395
|
-
}
|
|
3396
|
-
function re(p) {
|
|
3397
|
-
const b = Oe.values().next().value;
|
|
3398
|
-
return b && typeof b.runWithContext == "function" ? b.runWithContext(p) : p();
|
|
3399
|
-
}
|
|
3400
|
-
function bt(p, b) {
|
|
3401
|
-
let v;
|
|
3402
|
-
const [w, A, L] = mi(p, b);
|
|
3403
|
-
v = Qe(w.reverse(), "beforeRouteLeave", p, b);
|
|
3404
|
-
for (const P of w)
|
|
3405
|
-
P.leaveGuards.forEach((D) => {
|
|
3406
|
-
v.push(Q(D, p, b));
|
|
3407
|
-
});
|
|
3408
|
-
const x = ne.bind(null, p, b);
|
|
3409
|
-
return v.push(x), oe(v).then(() => {
|
|
3410
|
-
v = [];
|
|
3411
|
-
for (const P of s.list())
|
|
3412
|
-
v.push(Q(P, p, b));
|
|
3413
|
-
return v.push(x), oe(v);
|
|
3414
|
-
}).then(() => {
|
|
3415
|
-
v = Qe(A, "beforeRouteUpdate", p, b);
|
|
3416
|
-
for (const P of A)
|
|
3417
|
-
P.updateGuards.forEach((D) => {
|
|
3418
|
-
v.push(Q(D, p, b));
|
|
3419
|
-
});
|
|
3420
|
-
return v.push(x), oe(v);
|
|
3421
|
-
}).then(() => {
|
|
3422
|
-
v = [];
|
|
3423
|
-
for (const P of L)
|
|
3424
|
-
if (P.beforeEnter)
|
|
3425
|
-
if (M(P.beforeEnter))
|
|
3426
|
-
for (const D of P.beforeEnter)
|
|
3427
|
-
v.push(Q(D, p, b));
|
|
3428
|
-
else
|
|
3429
|
-
v.push(Q(P.beforeEnter, p, b));
|
|
3430
|
-
return v.push(x), oe(v);
|
|
3431
|
-
}).then(() => (p.matched.forEach((P) => P.enterCallbacks = {}), v = Qe(L, "beforeRouteEnter", p, b, re), v.push(x), oe(v))).then(() => {
|
|
3432
|
-
v = [];
|
|
3433
|
-
for (const P of i.list())
|
|
3434
|
-
v.push(Q(P, p, b));
|
|
3435
|
-
return v.push(x), oe(v);
|
|
3436
|
-
}).catch((P) => z(
|
|
3437
|
-
P,
|
|
3438
|
-
8
|
|
3439
|
-
/* ErrorTypes.NAVIGATION_CANCELLED */
|
|
3440
|
-
) ? P : Promise.reject(P));
|
|
3441
|
-
}
|
|
3442
|
-
function wt(p, b, v) {
|
|
3443
|
-
c.list().forEach((w) => re(() => w(p, b, v)));
|
|
3444
|
-
}
|
|
3445
|
-
function _t(p, b, v, w, A) {
|
|
3446
|
-
const L = R(p, b);
|
|
3447
|
-
if (L)
|
|
3448
|
-
return L;
|
|
3449
|
-
const x = b === J, P = K ? history.state : {};
|
|
3450
|
-
v && (w || x ? o.replace(p.fullPath, T({
|
|
3451
|
-
scroll: x && P && P.scroll
|
|
3452
|
-
}, A)) : o.push(p.fullPath, A)), u.value = p, St(p, b, v, x), Ve();
|
|
3453
|
-
}
|
|
3454
|
-
let fe;
|
|
3455
|
-
function nr() {
|
|
3456
|
-
fe || (fe = o.listen((p, b, v) => {
|
|
3457
|
-
if (!Ot.listening)
|
|
3458
|
-
return;
|
|
3459
|
-
const w = S(p), A = B(w);
|
|
3460
|
-
if (A) {
|
|
3461
|
-
I(T(A, { replace: !0 }), w).catch(me);
|
|
3462
|
-
return;
|
|
3463
|
-
}
|
|
3464
|
-
f = w;
|
|
3465
|
-
const L = u.value;
|
|
3466
|
-
K && ws(qt(L.fullPath, v.delta), Be()), bt(w, L).catch((x) => z(
|
|
3467
|
-
x,
|
|
3468
|
-
12
|
|
3469
|
-
/* ErrorTypes.NAVIGATION_CANCELLED */
|
|
3470
|
-
) ? x : z(
|
|
3471
|
-
x,
|
|
3472
|
-
2
|
|
3473
|
-
/* ErrorTypes.NAVIGATION_GUARD_REDIRECT */
|
|
3474
|
-
) ? (I(
|
|
3475
|
-
x.to,
|
|
3476
|
-
w
|
|
3477
|
-
// avoid an uncaught rejection, let push call triggerError
|
|
3478
|
-
).then((P) => {
|
|
3479
|
-
z(
|
|
3480
|
-
P,
|
|
3481
|
-
20
|
|
3482
|
-
/* ErrorTypes.NAVIGATION_DUPLICATED */
|
|
3483
|
-
) && !v.delta && v.type === ve.pop && o.go(-1, !1);
|
|
3484
|
-
}).catch(me), Promise.reject()) : (v.delta && o.go(-v.delta, !1), je(x, w, L))).then((x) => {
|
|
3485
|
-
x = x || _t(
|
|
3486
|
-
// after navigation, all matched components are resolved
|
|
3487
|
-
w,
|
|
3488
|
-
L,
|
|
3489
|
-
!1
|
|
3490
|
-
), x && (v.delta && // a new navigation has been triggered, so we do not want to revert, that will change the current history
|
|
3491
|
-
// entry while a different route is displayed
|
|
3492
|
-
!z(
|
|
3493
|
-
x,
|
|
3494
|
-
8
|
|
3495
|
-
/* ErrorTypes.NAVIGATION_CANCELLED */
|
|
3496
|
-
) ? o.go(-v.delta, !1) : v.type === ve.pop && z(
|
|
3497
|
-
x,
|
|
3498
|
-
20
|
|
3499
|
-
/* ErrorTypes.NAVIGATION_DUPLICATED */
|
|
3500
|
-
) && o.go(-1, !1)), wt(w, L, x);
|
|
3501
|
-
}).catch(me);
|
|
3502
|
-
}));
|
|
3503
|
-
}
|
|
3504
|
-
let Ue = he(), Rt = he(), Se;
|
|
3505
|
-
function je(p, b, v) {
|
|
3506
|
-
Ve(p);
|
|
3507
|
-
const w = Rt.list();
|
|
3508
|
-
return w.length ? w.forEach((A) => A(p, b, v)) : (process.env.NODE_ENV !== "production" && N("uncaught error during route navigation:"), console.error(p)), Promise.reject(p);
|
|
3509
|
-
}
|
|
3510
|
-
function rr() {
|
|
3511
|
-
return Se && u.value !== J ? Promise.resolve() : new Promise((p, b) => {
|
|
3512
|
-
Ue.add([p, b]);
|
|
3513
|
-
});
|
|
3514
|
-
}
|
|
3515
|
-
function Ve(p) {
|
|
3516
|
-
return Se || (Se = !p, nr(), Ue.list().forEach(([b, v]) => p ? v(p) : b()), Ue.reset()), p;
|
|
3517
|
-
}
|
|
3518
|
-
function St(p, b, v, w) {
|
|
3519
|
-
const { scrollBehavior: A } = e;
|
|
3520
|
-
if (!K || !A)
|
|
3521
|
-
return Promise.resolve();
|
|
3522
|
-
const L = !v && _s(qt(p.fullPath, 0)) || (w || !v) && history.state && history.state.scroll || null;
|
|
3523
|
-
return ir().then(() => A(p, b, L)).then((x) => x && bs(x)).catch((x) => je(x, p, b));
|
|
3524
|
-
}
|
|
3525
|
-
const Fe = (p) => o.go(p);
|
|
3526
|
-
let Me;
|
|
3527
|
-
const Oe = /* @__PURE__ */ new Set(), Ot = {
|
|
3528
|
-
currentRoute: u,
|
|
3529
|
-
listening: !0,
|
|
3530
|
-
addRoute: m,
|
|
3531
|
-
removeRoute: g,
|
|
3532
|
-
clearRoutes: t.clearRoutes,
|
|
3533
|
-
hasRoute: y,
|
|
3534
|
-
getRoutes: E,
|
|
3535
|
-
resolve: S,
|
|
3536
|
-
options: e,
|
|
3537
|
-
push: k,
|
|
3538
|
-
replace: C,
|
|
3539
|
-
go: Fe,
|
|
3540
|
-
back: () => Fe(-1),
|
|
3541
|
-
forward: () => Fe(1),
|
|
3542
|
-
beforeEach: s.add,
|
|
3543
|
-
beforeResolve: i.add,
|
|
3544
|
-
afterEach: c.add,
|
|
3545
|
-
onError: Rt.add,
|
|
3546
|
-
isReady: rr,
|
|
3547
|
-
install(p) {
|
|
3548
|
-
const b = this;
|
|
3549
|
-
p.component("RouterLink", Xs), p.component("RouterView", ti), p.config.globalProperties.$router = b, Object.defineProperty(p.config.globalProperties, "$route", {
|
|
3550
|
-
enumerable: !0,
|
|
3551
|
-
get: () => ie(u)
|
|
3552
|
-
}), K && // used for the initial navigation client side to avoid pushing
|
|
3553
|
-
// multiple times when the router is used in multiple apps
|
|
3554
|
-
!Me && u.value === J && (Me = !0, k(o.location).catch((A) => {
|
|
3555
|
-
process.env.NODE_ENV !== "production" && N("Unexpected error when starting the router:", A);
|
|
3556
|
-
}));
|
|
3557
|
-
const v = {};
|
|
3558
|
-
for (const A in J)
|
|
3559
|
-
Object.defineProperty(v, A, {
|
|
3560
|
-
get: () => u.value[A],
|
|
3561
|
-
enumerable: !0
|
|
3562
|
-
});
|
|
3563
|
-
p.provide(vt, b), p.provide(Gn, sr(v)), p.provide(ut, u);
|
|
3564
|
-
const w = p.unmount;
|
|
3565
|
-
Oe.add(p), p.unmount = function() {
|
|
3566
|
-
Oe.delete(p), Oe.size < 1 && (f = J, fe && fe(), fe = null, u.value = J, Me = !1, Se = !1), w();
|
|
3567
|
-
}, process.env.NODE_ENV !== "production" && K && oi(p, b, t);
|
|
3568
|
-
}
|
|
3569
|
-
};
|
|
3570
|
-
function oe(p) {
|
|
3571
|
-
return p.reduce((b, v) => b.then(() => re(v)), Promise.resolve());
|
|
3572
|
-
}
|
|
3573
|
-
return Ot;
|
|
3574
|
-
}
|
|
3575
|
-
function mi(e, t) {
|
|
3576
|
-
const n = [], r = [], o = [], s = Math.max(t.matched.length, e.matched.length);
|
|
3577
|
-
for (let i = 0; i < s; i++) {
|
|
3578
|
-
const c = t.matched[i];
|
|
3579
|
-
c && (e.matched.find((f) => X(f, c)) ? r.push(c) : n.push(c));
|
|
3580
|
-
const u = e.matched[i];
|
|
3581
|
-
u && (t.matched.find((f) => X(f, u)) || o.push(u));
|
|
3582
|
-
}
|
|
3583
|
-
return [n, r, o];
|
|
3584
|
-
}
|
|
3585
|
-
const gi = [
|
|
3586
|
-
{ name: "edit", path: "/edit", component: () => import("./edit-page-7yrRusn4.js") },
|
|
3587
|
-
{ name: "add", path: "/add", component: () => import("./add-page-C-msiPrU.js") },
|
|
3588
|
-
{
|
|
3589
|
-
name: "card-view",
|
|
3590
|
-
path: "/card",
|
|
3591
|
-
component: () => import("./card-view-CjZRvfqy.js"),
|
|
3592
|
-
children: [{
|
|
3593
|
-
name: "table",
|
|
3594
|
-
path: ":table",
|
|
3595
|
-
component: () => import("./card-view-CjZRvfqy.js"),
|
|
3596
|
-
children: [{ name: "card", path: ":id", component: () => import("./card-page-HOwuHNjV.js") }]
|
|
3597
|
-
}]
|
|
3598
|
-
}
|
|
3599
|
-
], yi = {}, Ei = { class: "bg-gray-200 w-full px-16 md:px-0 h-screen flex items-center justify-center" }, vi = { class: "bg-white border border-gray-200 flex flex-col items-center justify-center px-4 md:px-8 lg:px-24 py-8 rounded-lg shadow-2xl" };
|
|
3600
|
-
function bi(e, t, n, r, o, s) {
|
|
3601
|
-
return be(), dt("div", Ei, [
|
|
3602
|
-
W("div", vi, [
|
|
3603
|
-
t[2] || (t[2] = W("p", { class: "text-6xl md:text-7xl lg:text-9xl font-bold tracking-wider text-gray-300" }, " 404 ", -1)),
|
|
3604
|
-
t[3] || (t[3] = W("p", { class: "text-2xl md:text-3xl lg:text-5xl font-bold tracking-wider text-gray-500 mt-4" }, " Сторінку не знайдено ", -1)),
|
|
3605
|
-
t[4] || (t[4] = W("p", { class: "text-gray-500 mt-4 pb-4 border-b-2 text-center" }, " Вибачте, така сторінка не існує ", -1)),
|
|
3606
|
-
W("div", {
|
|
3607
|
-
onClick: t[0] || (t[0] = (i) => e.$router.push("/")),
|
|
3608
|
-
class: "flex cursor-pointer items-center space-x-2 bg-blue-600 hover:bg-blue-700 text-gray-100 px-4 py-2 mt-6 rounded transition duration-150",
|
|
3609
|
-
title: "Return Home"
|
|
3610
|
-
}, t[1] || (t[1] = [
|
|
3611
|
-
W("svg", {
|
|
3612
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
3613
|
-
class: "h-5 w-5",
|
|
3614
|
-
viewBox: "0 0 20 20",
|
|
3615
|
-
fill: "currentColor"
|
|
3616
|
-
}, [
|
|
3617
|
-
W("path", {
|
|
3618
|
-
"fill-rule": "evenodd",
|
|
3619
|
-
d: "M9.707 14.707a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 1.414L7.414 9H15a1 1 0 110 2H7.414l2.293 2.293a1 1 0 010 1.414z",
|
|
3620
|
-
"clip-rule": "evenodd"
|
|
3621
|
-
})
|
|
3622
|
-
], -1),
|
|
3623
|
-
W("span", null, "Повернутись на головну", -1)
|
|
3624
|
-
]))
|
|
3625
|
-
])
|
|
3626
|
-
]);
|
|
3627
|
-
}
|
|
3628
|
-
const wi = /* @__PURE__ */ Re(yi, [["render", bi]]), _i = () => {
|
|
3629
|
-
const e = gi.map((n) => ({
|
|
3630
|
-
...n
|
|
3631
|
-
}));
|
|
3632
|
-
return {
|
|
3633
|
-
router: pi({
|
|
3634
|
-
history: Ns(),
|
|
3635
|
-
routes: [
|
|
3636
|
-
{
|
|
3637
|
-
path: "/404",
|
|
3638
|
-
name: "404",
|
|
3639
|
-
component: wi
|
|
3640
|
-
},
|
|
3641
|
-
{
|
|
3642
|
-
path: "/",
|
|
3643
|
-
name: "global",
|
|
3644
|
-
component: () => import("./admin-view-BYF4ITZY.js"),
|
|
3645
|
-
children: [
|
|
3646
|
-
...e,
|
|
3647
|
-
{
|
|
3648
|
-
path: "/:catchAll(.*)",
|
|
3649
|
-
component: () => import("./admin-interface-vPkHXzQK.js")
|
|
3650
|
-
}
|
|
3651
|
-
]
|
|
3652
|
-
}
|
|
3653
|
-
]
|
|
3654
|
-
}),
|
|
3655
|
-
routerData: e
|
|
3656
|
-
};
|
|
3657
|
-
}, Ri = {
|
|
3658
|
-
props: {
|
|
3659
|
-
value: {
|
|
3660
|
-
type: [String],
|
|
3661
|
-
default: () => ""
|
|
3662
|
-
}
|
|
3663
|
-
},
|
|
3664
|
-
data() {
|
|
3665
|
-
return {};
|
|
3666
|
-
}
|
|
3667
|
-
};
|
|
3668
|
-
function Si(e, t, n, r, o, s) {
|
|
3669
|
-
return be(), dt("div", null, fn(n.value), 1);
|
|
3670
|
-
}
|
|
3671
|
-
const Xe = /* @__PURE__ */ Re(Ri, [["render", Si]]), Oi = {
|
|
3672
|
-
props: {
|
|
3673
|
-
value: {
|
|
3674
|
-
type: [String],
|
|
3675
|
-
default: () => ""
|
|
3676
|
-
}
|
|
3677
|
-
},
|
|
3678
|
-
data() {
|
|
3679
|
-
return {};
|
|
3680
|
-
}
|
|
3681
|
-
}, Ni = { class: "p-2 ps-1.5 px-2 inline-flex items-center gap-x-1.5 text-xs font-medium bg-green-100 text-green-800 rounded-md" };
|
|
3682
|
-
function Pi(e, t, n, r, o, s) {
|
|
3683
|
-
return be(), dt("div", Ni, fn(n.value), 1);
|
|
3684
|
-
}
|
|
3685
|
-
const xi = /* @__PURE__ */ Re(Oi, [["render", Pi]]), Ai = {
|
|
3686
|
-
props: { data: Object, name: String },
|
|
3687
|
-
computed: {
|
|
3688
|
-
getValue() {
|
|
3689
|
-
var e;
|
|
3690
|
-
return (e = this.data) == null ? void 0 : e[this.name];
|
|
3691
|
-
}
|
|
3692
|
-
}
|
|
3693
|
-
};
|
|
3694
|
-
function Ti(e, t, n, r, o, s) {
|
|
3695
|
-
const i = on("VsSwitch");
|
|
3696
|
-
return be(), sn(i, {
|
|
3697
|
-
modelValue: s.getValue,
|
|
3698
|
-
"onUpdate:modelValue": t[0] || (t[0] = (c) => s.getValue = c),
|
|
3699
|
-
disabled: "true"
|
|
3700
|
-
}, null, 8, ["modelValue"]);
|
|
3701
|
-
}
|
|
3702
|
-
const Ci = /* @__PURE__ */ Re(Ai, [["render", Ti]]), ki = {
|
|
3703
|
-
// formats
|
|
3704
|
-
"table-format-text": Xe,
|
|
3705
|
-
"table-format-select": Xe,
|
|
3706
|
-
"table-format-badge": xi,
|
|
3707
|
-
"table-format-swetch": Ci,
|
|
3708
|
-
"table-format-html": Xe
|
|
3709
|
-
}, Di = {
|
|
3710
|
-
install(e) {
|
|
3711
|
-
$.defaults.baseURL && ($.defaults.baseURL = $.defaults.baseURL);
|
|
3712
|
-
const { router: t } = _i();
|
|
3713
|
-
e.component("admin", Mo), e.config.globalProperties = {
|
|
3714
|
-
...e.config.globalProperties,
|
|
3715
|
-
$componentsConfig: ki,
|
|
3716
|
-
$router: t
|
|
3717
|
-
}, e.use(t);
|
|
3718
|
-
}
|
|
3719
|
-
}, Ii = {
|
|
3720
|
-
admin: Di
|
|
3721
|
-
};
|
|
3722
|
-
export {
|
|
3723
|
-
Re as _,
|
|
3724
|
-
$ as a,
|
|
3725
|
-
Ii as p
|
|
3726
|
-
};
|