instaui 0.2.0__py2.py3-none-any.whl → 0.2.2__py2.py3-none-any.whl
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.
- instaui/arco/component_types.py +389 -182
- instaui/arco/components/input.py +1 -1
- instaui/arco/components/typography.py +1 -1
- instaui/boot_info.py +2 -2
- instaui/components/component.py +5 -2
- instaui/components/container.py +32 -0
- instaui/components/element.py +11 -8
- instaui/components/heading.py +46 -0
- instaui/components/html/range.py +2 -2
- instaui/components/html/ul.py +2 -2
- instaui/components/match.py +2 -2
- instaui/components/mixins.py +8 -4
- instaui/components/vfor.py +8 -6
- instaui/event/web_event.py +7 -1
- instaui/fastapi_server/_utils.py +5 -21
- instaui/fastapi_server/dependency_router.py +5 -1
- instaui/fastapi_server/event_router.py +5 -5
- instaui/fastapi_server/request_context.py +5 -4
- instaui/fastapi_server/watch_router.py +2 -2
- instaui/patch_update.py +54 -0
- instaui/response.py +64 -0
- instaui/spa_router/_file_base_utils.py +1 -1
- instaui/static/insta-ui.css +1 -1
- instaui/static/insta-ui.esm-browser.prod.js +877 -825
- instaui/static/insta-ui.js.map +1 -1
- instaui/ui/__init__.py +33 -6
- instaui/ui/__init__.pyi +6 -0
- instaui/ui_functions/ui_types.py +6 -2
- instaui/ui_system_var_type.py +6 -0
- instaui/vars/mixin_types/element_binding.py +5 -1
- instaui/vars/mixin_types/observable.py +1 -1
- instaui/vars/mixin_types/py_binding.py +7 -0
- instaui/vars/vue_computed.py +5 -2
- instaui/watch/web_watch.py +10 -2
- instaui/webview/api.py +2 -23
- {instaui-0.2.0.dist-info → instaui-0.2.2.dist-info}/METADATA +1 -1
- {instaui-0.2.0.dist-info → instaui-0.2.2.dist-info}/RECORD +39 -34
- {instaui-0.2.0.dist-info → instaui-0.2.2.dist-info}/WHEEL +0 -0
- {instaui-0.2.0.dist-info → instaui-0.2.2.dist-info}/licenses/LICENSE +0 -0
@@ -1,17 +1,17 @@
|
|
1
|
-
var
|
2
|
-
var
|
3
|
-
var
|
4
|
-
import * as
|
5
|
-
import { toRaw as
|
6
|
-
let
|
1
|
+
var Wn = Object.defineProperty;
|
2
|
+
var Un = (e, t, n) => t in e ? Wn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
3
|
+
var F = (e, t, n) => Un(e, typeof t != "symbol" ? t + "" : t, n);
|
4
|
+
import * as Gn from "vue";
|
5
|
+
import { toRaw as Kt, customRef as De, toValue as q, unref as D, watch as K, nextTick as Ae, isRef as zt, shallowRef as X, ref as H, watchEffect as Qt, computed as W, readonly as qn, provide as Te, inject as Z, shallowReactive as Hn, defineComponent as L, reactive as Kn, h as A, getCurrentInstance as Jt, normalizeStyle as zn, normalizeClass as Ce, toDisplayString as Me, onUnmounted as dt, Fragment as Fe, vModelDynamic as Qn, vShow as Jn, resolveDynamicComponent as Yn, normalizeProps as Xn, withDirectives as Zn, onErrorCaptured as er, openBlock as re, createElementBlock as fe, createElementVNode as tr, createVNode as nr, withCtx as rr, renderList as or, createBlock as sr, createCommentVNode as ir, TransitionGroup as Yt, KeepAlive as ar } from "vue";
|
6
|
+
let Xt;
|
7
7
|
function cr(e) {
|
8
|
-
|
8
|
+
Xt = e;
|
9
9
|
}
|
10
|
-
function
|
11
|
-
return
|
10
|
+
function Ze() {
|
11
|
+
return Xt;
|
12
12
|
}
|
13
|
-
function
|
14
|
-
const { queryPath: e, pathParams: t, queryParams: n } =
|
13
|
+
function $e() {
|
14
|
+
const { queryPath: e, pathParams: t, queryParams: n } = Ze();
|
15
15
|
return {
|
16
16
|
path: e,
|
17
17
|
...t === void 0 ? {} : { params: t },
|
@@ -30,18 +30,18 @@ class ur extends Map {
|
|
30
30
|
return super.get(t);
|
31
31
|
}
|
32
32
|
}
|
33
|
-
function
|
33
|
+
function Oe(e) {
|
34
34
|
return new ur(e);
|
35
35
|
}
|
36
36
|
function bt(e, t) {
|
37
37
|
Object.entries(e).forEach(([n, r]) => t(r, n));
|
38
38
|
}
|
39
|
-
function
|
40
|
-
return
|
39
|
+
function Be(e, t) {
|
40
|
+
return Zt(e, {
|
41
41
|
valueFn: t
|
42
42
|
});
|
43
43
|
}
|
44
|
-
function
|
44
|
+
function Zt(e, t) {
|
45
45
|
const { valueFn: n, keyFn: r } = t;
|
46
46
|
return Object.fromEntries(
|
47
47
|
Object.entries(e).map(([o, i], s) => [
|
@@ -50,7 +50,7 @@ function Xt(e, t) {
|
|
50
50
|
])
|
51
51
|
);
|
52
52
|
}
|
53
|
-
function
|
53
|
+
function en(e, t, n) {
|
54
54
|
if (Array.isArray(t)) {
|
55
55
|
const [o, ...i] = t;
|
56
56
|
switch (o) {
|
@@ -62,10 +62,10 @@ function Zt(e, t, n) {
|
|
62
62
|
return i[0] + e;
|
63
63
|
}
|
64
64
|
}
|
65
|
-
const r =
|
65
|
+
const r = tn(t, n);
|
66
66
|
return e[r];
|
67
67
|
}
|
68
|
-
function
|
68
|
+
function tn(e, t) {
|
69
69
|
if (typeof e == "string" || typeof e == "number")
|
70
70
|
return e;
|
71
71
|
if (!Array.isArray(e))
|
@@ -80,38 +80,50 @@ function en(e, t) {
|
|
80
80
|
throw new Error(`Invalid flag ${n} in array at ${e}`);
|
81
81
|
}
|
82
82
|
}
|
83
|
-
function
|
83
|
+
function Re(e, t, n) {
|
84
84
|
return t.reduce(
|
85
|
-
(r, o) =>
|
85
|
+
(r, o) => en(r, o, n),
|
86
86
|
e
|
87
87
|
);
|
88
88
|
}
|
89
|
-
function
|
89
|
+
function et(e, t, n, r) {
|
90
90
|
t.reduce((o, i, s) => {
|
91
91
|
if (s === t.length - 1)
|
92
|
-
o[
|
92
|
+
o[tn(i, r)] = n;
|
93
93
|
else
|
94
|
-
return
|
94
|
+
return en(o, i, r);
|
95
95
|
}, e);
|
96
96
|
}
|
97
|
-
function
|
98
|
-
|
97
|
+
function lr(e, t, n) {
|
98
|
+
t.reduce((r, o, i) => {
|
99
|
+
if (i === t.length - 1)
|
100
|
+
r[o] = n;
|
101
|
+
else
|
102
|
+
return r[o];
|
103
|
+
}, e);
|
104
|
+
}
|
105
|
+
function fr(e, t) {
|
106
|
+
return t.reduce((n, r) => n[r], e);
|
99
107
|
}
|
100
|
-
|
108
|
+
const dr = structuredClone || ((e) => JSON.parse(JSON.stringify(e)));
|
109
|
+
function nn(e) {
|
110
|
+
return typeof e == "function" ? e : dr(Kt(e));
|
111
|
+
}
|
112
|
+
class hr {
|
101
113
|
toString() {
|
102
114
|
return "";
|
103
115
|
}
|
104
116
|
}
|
105
|
-
const
|
106
|
-
function
|
107
|
-
return
|
117
|
+
const Se = new hr();
|
118
|
+
function be(e) {
|
119
|
+
return Kt(e) === Se;
|
108
120
|
}
|
109
121
|
function Ot(e, t, n) {
|
110
122
|
const { paths: r, getBindableValueFn: o } = t, { paths: i, getBindableValueFn: s } = t;
|
111
|
-
return r === void 0 || r.length === 0 ? e :
|
123
|
+
return r === void 0 || r.length === 0 ? e : De(() => ({
|
112
124
|
get() {
|
113
125
|
try {
|
114
|
-
return
|
126
|
+
return Re(
|
115
127
|
q(e),
|
116
128
|
r,
|
117
129
|
o
|
@@ -121,7 +133,7 @@ function Ot(e, t, n) {
|
|
121
133
|
}
|
122
134
|
},
|
123
135
|
set(c) {
|
124
|
-
|
136
|
+
et(
|
125
137
|
q(e),
|
126
138
|
i || r,
|
127
139
|
c,
|
@@ -130,35 +142,35 @@ function Ot(e, t, n) {
|
|
130
142
|
}
|
131
143
|
}));
|
132
144
|
}
|
133
|
-
function
|
134
|
-
return
|
145
|
+
function ht(e) {
|
146
|
+
return De((t, n) => ({
|
135
147
|
get() {
|
136
148
|
return t(), e;
|
137
149
|
},
|
138
150
|
set(r) {
|
139
|
-
!
|
151
|
+
!be(e) && JSON.stringify(r) === JSON.stringify(e) || (e = r, n());
|
140
152
|
}
|
141
153
|
}));
|
142
154
|
}
|
143
|
-
function
|
144
|
-
return typeof e == "function" ? e() :
|
155
|
+
function ve(e) {
|
156
|
+
return typeof e == "function" ? e() : D(e);
|
145
157
|
}
|
146
158
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
147
|
-
const
|
159
|
+
const tt = () => {
|
148
160
|
};
|
149
|
-
function
|
161
|
+
function nt(e, t = !1, n = "Timeout") {
|
150
162
|
return new Promise((r, o) => {
|
151
163
|
setTimeout(t ? () => o(n) : r, e);
|
152
164
|
});
|
153
165
|
}
|
154
|
-
function
|
166
|
+
function rt(e, t = !1) {
|
155
167
|
function n(a, { flush: f = "sync", deep: h = !1, timeout: v, throwOnTimeout: p } = {}) {
|
156
168
|
let g = null;
|
157
169
|
const _ = [new Promise((b) => {
|
158
|
-
g =
|
170
|
+
g = K(
|
159
171
|
e,
|
160
|
-
(
|
161
|
-
a(
|
172
|
+
(R) => {
|
173
|
+
a(R) !== t && (g ? g() : Ae(() => g == null ? void 0 : g()), b(R));
|
162
174
|
},
|
163
175
|
{
|
164
176
|
flush: f,
|
@@ -168,19 +180,19 @@ function tt(e, t = !1) {
|
|
168
180
|
);
|
169
181
|
})];
|
170
182
|
return v != null && _.push(
|
171
|
-
|
183
|
+
nt(v, p).then(() => ve(e)).finally(() => g == null ? void 0 : g())
|
172
184
|
), Promise.race(_);
|
173
185
|
}
|
174
186
|
function r(a, f) {
|
175
|
-
if (!
|
176
|
-
return n((
|
187
|
+
if (!zt(a))
|
188
|
+
return n((R) => R === a, f);
|
177
189
|
const { flush: h = "sync", deep: v = !1, timeout: p, throwOnTimeout: g } = f ?? {};
|
178
190
|
let y = null;
|
179
|
-
const b = [new Promise((
|
180
|
-
y =
|
191
|
+
const b = [new Promise((R) => {
|
192
|
+
y = K(
|
181
193
|
[e, a],
|
182
|
-
([
|
183
|
-
t !== (
|
194
|
+
([$, G]) => {
|
195
|
+
t !== ($ === G) && (y ? y() : Ae(() => y == null ? void 0 : y()), R($));
|
184
196
|
},
|
185
197
|
{
|
186
198
|
flush: h,
|
@@ -190,7 +202,7 @@ function tt(e, t = !1) {
|
|
190
202
|
);
|
191
203
|
})];
|
192
204
|
return p != null && b.push(
|
193
|
-
|
205
|
+
nt(p, g).then(() => ve(e)).finally(() => (y == null || y(), ve(e)))
|
194
206
|
), Promise.race(b);
|
195
207
|
}
|
196
208
|
function o(a) {
|
@@ -208,7 +220,7 @@ function tt(e, t = !1) {
|
|
208
220
|
function l(a, f) {
|
209
221
|
return n((h) => {
|
210
222
|
const v = Array.from(h);
|
211
|
-
return v.includes(a) || v.includes(
|
223
|
+
return v.includes(a) || v.includes(ve(a));
|
212
224
|
}, f);
|
213
225
|
}
|
214
226
|
function d(a) {
|
@@ -218,13 +230,13 @@ function tt(e, t = !1) {
|
|
218
230
|
let h = -1;
|
219
231
|
return n(() => (h += 1, h >= a), f);
|
220
232
|
}
|
221
|
-
return Array.isArray(
|
233
|
+
return Array.isArray(ve(e)) ? {
|
222
234
|
toMatch: n,
|
223
235
|
toContains: l,
|
224
236
|
changed: d,
|
225
237
|
changedTimes: u,
|
226
238
|
get not() {
|
227
|
-
return
|
239
|
+
return rt(e, !t);
|
228
240
|
}
|
229
241
|
} : {
|
230
242
|
toMatch: n,
|
@@ -236,26 +248,26 @@ function tt(e, t = !1) {
|
|
236
248
|
changed: d,
|
237
249
|
changedTimes: u,
|
238
250
|
get not() {
|
239
|
-
return
|
251
|
+
return rt(e, !t);
|
240
252
|
}
|
241
253
|
};
|
242
254
|
}
|
243
|
-
function
|
244
|
-
return
|
255
|
+
function pr(e) {
|
256
|
+
return rt(e);
|
245
257
|
}
|
246
|
-
function
|
258
|
+
function mr(e, t, n) {
|
247
259
|
let r;
|
248
|
-
|
260
|
+
zt(n) ? r = {
|
249
261
|
evaluating: n
|
250
262
|
} : r = n || {};
|
251
263
|
const {
|
252
264
|
lazy: o = !1,
|
253
265
|
evaluating: i = void 0,
|
254
266
|
shallow: s = !0,
|
255
|
-
onError: c =
|
256
|
-
} = r, l =
|
267
|
+
onError: c = tt
|
268
|
+
} = r, l = H(!o), d = s ? X(t) : H(t);
|
257
269
|
let u = 0;
|
258
|
-
return
|
270
|
+
return Qt(async (a) => {
|
259
271
|
if (!l.value)
|
260
272
|
return;
|
261
273
|
u++;
|
@@ -276,27 +288,27 @@ function dr(e, t, n) {
|
|
276
288
|
} finally {
|
277
289
|
i && f === u && (i.value = !1), h = !0;
|
278
290
|
}
|
279
|
-
}), o ?
|
291
|
+
}), o ? W(() => (l.value = !0, d.value)) : d;
|
280
292
|
}
|
281
|
-
function
|
293
|
+
function gr(e, t, n) {
|
282
294
|
const {
|
283
295
|
immediate: r = !0,
|
284
296
|
delay: o = 0,
|
285
|
-
onError: i =
|
286
|
-
onSuccess: s =
|
297
|
+
onError: i = tt,
|
298
|
+
onSuccess: s = tt,
|
287
299
|
resetOnExecute: c = !0,
|
288
300
|
shallow: l = !0,
|
289
301
|
throwError: d
|
290
|
-
} = {}, u = l ? X(t) :
|
302
|
+
} = {}, u = l ? X(t) : H(t), a = H(!1), f = H(!1), h = X(void 0);
|
291
303
|
async function v(y = 0, ..._) {
|
292
|
-
c && (u.value = t), h.value = void 0, a.value = !1, f.value = !0, y > 0 && await
|
304
|
+
c && (u.value = t), h.value = void 0, a.value = !1, f.value = !0, y > 0 && await nt(y);
|
293
305
|
const b = typeof e == "function" ? e(..._) : e;
|
294
306
|
try {
|
295
|
-
const
|
296
|
-
u.value =
|
297
|
-
} catch (
|
298
|
-
if (h.value =
|
299
|
-
throw
|
307
|
+
const R = await b;
|
308
|
+
u.value = R, a.value = !0, s(R);
|
309
|
+
} catch (R) {
|
310
|
+
if (h.value = R, i(R), d)
|
311
|
+
throw R;
|
300
312
|
} finally {
|
301
313
|
f.value = !1;
|
302
314
|
}
|
@@ -312,7 +324,7 @@ function hr(e, t, n) {
|
|
312
324
|
};
|
313
325
|
function g() {
|
314
326
|
return new Promise((y, _) => {
|
315
|
-
|
327
|
+
pr(f).toBe(!1).then(() => y(p)).catch(_);
|
316
328
|
});
|
317
329
|
}
|
318
330
|
return {
|
@@ -322,51 +334,51 @@ function hr(e, t, n) {
|
|
322
334
|
}
|
323
335
|
};
|
324
336
|
}
|
325
|
-
function
|
337
|
+
function B(e, t) {
|
326
338
|
t = t || {};
|
327
|
-
const n = [...Object.keys(t), "__Vue"], r = [...Object.values(t),
|
339
|
+
const n = [...Object.keys(t), "__Vue"], r = [...Object.values(t), Gn];
|
328
340
|
try {
|
329
341
|
return new Function(...n, `return (${e})`)(...r);
|
330
342
|
} catch (o) {
|
331
343
|
throw new Error(o + " in function code: " + e);
|
332
344
|
}
|
333
345
|
}
|
334
|
-
function
|
346
|
+
function vr(e) {
|
335
347
|
if (e.startsWith(":")) {
|
336
348
|
e = e.slice(1);
|
337
349
|
try {
|
338
|
-
return
|
350
|
+
return B(e);
|
339
351
|
} catch (t) {
|
340
352
|
throw new Error(t + " in function code: " + e);
|
341
353
|
}
|
342
354
|
}
|
343
355
|
}
|
344
|
-
function
|
356
|
+
function rn(e) {
|
345
357
|
return e.constructor.name === "AsyncFunction";
|
346
358
|
}
|
347
|
-
function
|
359
|
+
function yr(e, t) {
|
348
360
|
const { deepCompare: n = !1 } = e;
|
349
|
-
return n ?
|
361
|
+
return n ? ht(e.value) : H(e.value);
|
350
362
|
}
|
351
|
-
function
|
363
|
+
function wr(e, t, n) {
|
352
364
|
const { bind: r = {}, code: o, const: i = [] } = e, s = Object.values(r).map((u, a) => i[a] === 1 ? u : t.getVueRefObjectOrValue(u));
|
353
|
-
if (
|
354
|
-
return
|
365
|
+
if (rn(new Function(o)))
|
366
|
+
return mr(
|
355
367
|
async () => {
|
356
368
|
const u = Object.fromEntries(
|
357
369
|
Object.keys(r).map((a, f) => [a, s[f]])
|
358
370
|
);
|
359
|
-
return await
|
371
|
+
return await B(o, u)();
|
360
372
|
},
|
361
373
|
null,
|
362
374
|
{ lazy: !0 }
|
363
375
|
);
|
364
376
|
const c = Object.fromEntries(
|
365
377
|
Object.keys(r).map((u, a) => [u, s[a]])
|
366
|
-
), l =
|
367
|
-
return
|
378
|
+
), l = B(o, c);
|
379
|
+
return W(l);
|
368
380
|
}
|
369
|
-
function
|
381
|
+
function Er(e, t, n) {
|
370
382
|
const {
|
371
383
|
inputs: r = [],
|
372
384
|
code: o,
|
@@ -380,71 +392,71 @@ function vr(e, t, n) {
|
|
380
392
|
(g, y) => u[y] === 1 ? g : t.getObjectToValue(g)
|
381
393
|
);
|
382
394
|
}
|
383
|
-
const h =
|
384
|
-
return
|
395
|
+
const h = B(o), v = l === 0 ? X(Se) : ht(Se), p = { immediate: !0, deep: !0 };
|
396
|
+
return rn(h) ? (v.value = c, K(
|
385
397
|
a,
|
386
398
|
async () => {
|
387
|
-
f().some(
|
399
|
+
f().some(be) || (v.value = await h(...f()));
|
388
400
|
},
|
389
401
|
p
|
390
|
-
)) :
|
402
|
+
)) : K(
|
391
403
|
a,
|
392
404
|
() => {
|
393
405
|
const g = f();
|
394
|
-
g.some(
|
406
|
+
g.some(be) || (v.value = h(...g));
|
395
407
|
},
|
396
408
|
p
|
397
409
|
), qn(v);
|
398
410
|
}
|
399
|
-
function
|
411
|
+
function _r() {
|
400
412
|
return [];
|
401
413
|
}
|
402
|
-
const
|
403
|
-
function
|
414
|
+
const Ve = Oe(_r);
|
415
|
+
function Sr(e, t) {
|
404
416
|
var i, s, c, l, d;
|
405
|
-
const n =
|
417
|
+
const n = Ve.getOrDefault(e.id), r = /* @__PURE__ */ new Map();
|
406
418
|
n.push(r), t.replaceSnapshot({
|
407
|
-
scopeSnapshot:
|
419
|
+
scopeSnapshot: on()
|
408
420
|
});
|
409
421
|
const o = (u, a) => {
|
410
422
|
r.set(u.id, a);
|
411
423
|
};
|
412
424
|
return (i = e.refs) == null || i.forEach((u) => {
|
413
|
-
o(u,
|
425
|
+
o(u, yr(u));
|
414
426
|
}), (s = e.web_computed) == null || s.forEach((u) => {
|
415
|
-
const { init: a } = u, f = u.deepEqOnInput === void 0 ? X(a ??
|
427
|
+
const { init: a } = u, f = u.deepEqOnInput === void 0 ? X(a ?? Se) : ht(a ?? Se);
|
416
428
|
o(u, f);
|
417
429
|
}), (c = e.vue_computed) == null || c.forEach((u) => {
|
418
430
|
o(
|
419
431
|
u,
|
420
|
-
|
432
|
+
wr(u, t)
|
421
433
|
);
|
422
434
|
}), (l = e.js_computed) == null || l.forEach((u) => {
|
423
435
|
o(
|
424
436
|
u,
|
425
|
-
|
437
|
+
Er(u, t)
|
426
438
|
);
|
427
439
|
}), (d = e.data) == null || d.forEach((u) => {
|
428
440
|
o(u, u.value);
|
429
441
|
}), n.length - 1;
|
430
442
|
}
|
431
|
-
function
|
443
|
+
function on() {
|
432
444
|
const e = /* @__PURE__ */ new Map();
|
433
|
-
for (const [n, r] of
|
445
|
+
for (const [n, r] of Ve) {
|
434
446
|
const o = r[r.length - 1];
|
435
447
|
e.set(n, [o]);
|
436
448
|
}
|
437
449
|
function t(n) {
|
438
|
-
return
|
450
|
+
return sn(n, e);
|
439
451
|
}
|
440
452
|
return {
|
441
453
|
getVueRef: t
|
442
454
|
};
|
443
455
|
}
|
444
|
-
function
|
445
|
-
return
|
456
|
+
function br(e) {
|
457
|
+
return sn(e, Ve);
|
446
458
|
}
|
447
|
-
function
|
459
|
+
function sn(e, t) {
|
448
460
|
const n = t.get(e.sid);
|
449
461
|
if (!n)
|
450
462
|
throw new Error(`Scope ${e.sid} not found`);
|
@@ -453,29 +465,29 @@ function on(e, t) {
|
|
453
465
|
throw new Error(`Var ${e.id} not found in scope ${e.sid}`);
|
454
466
|
return o;
|
455
467
|
}
|
456
|
-
function
|
457
|
-
|
468
|
+
function Or(e) {
|
469
|
+
Ve.delete(e);
|
458
470
|
}
|
459
|
-
function
|
460
|
-
const n =
|
471
|
+
function Rr(e, t) {
|
472
|
+
const n = Ve.get(e);
|
461
473
|
n && n.splice(t, 1);
|
462
474
|
}
|
463
|
-
const
|
464
|
-
function
|
475
|
+
const pt = Oe(() => []);
|
476
|
+
function Vr(e) {
|
465
477
|
var r;
|
466
|
-
const t = /* @__PURE__ */ new Map(), n =
|
478
|
+
const t = /* @__PURE__ */ new Map(), n = pt.getOrDefault(e.id).push(t);
|
467
479
|
return (r = e.eRefs) == null || r.forEach((o) => {
|
468
480
|
const i = X();
|
469
481
|
t.set(o.id, i);
|
470
482
|
}), n;
|
471
483
|
}
|
472
|
-
function
|
473
|
-
const n =
|
484
|
+
function Pr(e, t) {
|
485
|
+
const n = pt.get(e);
|
474
486
|
n && n.splice(t, 1);
|
475
487
|
}
|
476
|
-
function
|
488
|
+
function an() {
|
477
489
|
const e = new Map(
|
478
|
-
Array.from(
|
490
|
+
Array.from(pt.entries()).map(([n, r]) => [
|
479
491
|
n,
|
480
492
|
r[r.length - 1]
|
481
493
|
])
|
@@ -530,20 +542,20 @@ var N;
|
|
530
542
|
}
|
531
543
|
e.IsBinding = u;
|
532
544
|
})(N || (N = {}));
|
533
|
-
const
|
534
|
-
function
|
535
|
-
const t =
|
545
|
+
const Le = Oe(() => []);
|
546
|
+
function kr(e) {
|
547
|
+
const t = Le.getOrDefault(e);
|
536
548
|
return t.push(X({})), t.length - 1;
|
537
549
|
}
|
538
|
-
function
|
539
|
-
|
550
|
+
function Nr(e, t, n) {
|
551
|
+
Le.get(e)[t].value = n;
|
540
552
|
}
|
541
|
-
function
|
542
|
-
|
553
|
+
function Ir(e) {
|
554
|
+
Le.delete(e);
|
543
555
|
}
|
544
|
-
function
|
556
|
+
function Tr() {
|
545
557
|
const e = /* @__PURE__ */ new Map();
|
546
|
-
for (const [n, r] of
|
558
|
+
for (const [n, r] of Le) {
|
547
559
|
const o = r[r.length - 1];
|
548
560
|
e.set(n, o);
|
549
561
|
}
|
@@ -554,45 +566,45 @@ function kr() {
|
|
554
566
|
getPropsValue: t
|
555
567
|
};
|
556
568
|
}
|
557
|
-
const
|
558
|
-
function
|
559
|
-
const t =
|
560
|
-
|
569
|
+
const cn = /* @__PURE__ */ new Map(), mt = Oe(() => /* @__PURE__ */ new Map()), un = /* @__PURE__ */ new Set(), ln = Symbol("vfor");
|
570
|
+
function Ar(e) {
|
571
|
+
const t = fn() ?? {};
|
572
|
+
Te(ln, { ...t, [e.fid]: e.key });
|
561
573
|
}
|
562
|
-
function
|
563
|
-
return Z(
|
574
|
+
function fn() {
|
575
|
+
return Z(ln, void 0);
|
564
576
|
}
|
565
|
-
function
|
566
|
-
const e =
|
577
|
+
function Cr() {
|
578
|
+
const e = fn(), t = /* @__PURE__ */ new Map();
|
567
579
|
return e === void 0 || Object.keys(e).forEach((n) => {
|
568
580
|
t.set(n, e[n]);
|
569
581
|
}), t;
|
570
582
|
}
|
571
|
-
function
|
583
|
+
function $r(e, t, n, r) {
|
572
584
|
if (r) {
|
573
|
-
|
585
|
+
un.add(e);
|
574
586
|
return;
|
575
587
|
}
|
576
588
|
let o;
|
577
589
|
if (n)
|
578
|
-
o = new
|
590
|
+
o = new Lr(t);
|
579
591
|
else {
|
580
592
|
const i = Array.isArray(t) ? t : Object.entries(t).map(([s, c], l) => [c, s, l]);
|
581
|
-
o = new
|
593
|
+
o = new Br(i);
|
582
594
|
}
|
583
|
-
|
595
|
+
cn.set(e, o);
|
584
596
|
}
|
585
|
-
function
|
586
|
-
const r =
|
587
|
-
r.has(t) || r.set(t,
|
597
|
+
function xr(e, t, n) {
|
598
|
+
const r = mt.getOrDefault(e);
|
599
|
+
r.has(t) || r.set(t, H(n)), r.get(t).value = n;
|
588
600
|
}
|
589
|
-
function
|
601
|
+
function jr(e) {
|
590
602
|
const t = /* @__PURE__ */ new Set();
|
591
603
|
function n(o) {
|
592
604
|
t.add(o);
|
593
605
|
}
|
594
606
|
function r() {
|
595
|
-
const o =
|
607
|
+
const o = mt.get(e);
|
596
608
|
o !== void 0 && o.forEach((i, s) => {
|
597
609
|
t.has(s) || o.delete(s);
|
598
610
|
});
|
@@ -602,30 +614,30 @@ function $r(e) {
|
|
602
614
|
removeUnusedKeys: r
|
603
615
|
};
|
604
616
|
}
|
605
|
-
function
|
606
|
-
const t = e, n =
|
617
|
+
function Dr(e) {
|
618
|
+
const t = e, n = Cr();
|
607
619
|
function r(o) {
|
608
620
|
const i = n.get(o) ?? t;
|
609
|
-
return
|
621
|
+
return mt.get(o).get(i).value;
|
610
622
|
}
|
611
623
|
return {
|
612
624
|
getVForIndex: r
|
613
625
|
};
|
614
626
|
}
|
615
|
-
function
|
616
|
-
return
|
627
|
+
function Mr(e) {
|
628
|
+
return cn.get(e.binding.fid).createRefObjectWithPaths(e);
|
617
629
|
}
|
618
|
-
function
|
619
|
-
return
|
630
|
+
function Fr(e) {
|
631
|
+
return un.has(e);
|
620
632
|
}
|
621
|
-
class
|
633
|
+
class Br {
|
622
634
|
constructor(t) {
|
623
635
|
this.array = t;
|
624
636
|
}
|
625
637
|
createRefObjectWithPaths(t) {
|
626
638
|
const { binding: n } = t, { snapshot: r } = t, { path: o = [] } = n, i = [...o], s = r.getVForIndex(n.fid);
|
627
|
-
return i.unshift(s),
|
628
|
-
get: () =>
|
639
|
+
return i.unshift(s), De(() => ({
|
640
|
+
get: () => Re(
|
629
641
|
this.array,
|
630
642
|
i,
|
631
643
|
r.getObjectToValue
|
@@ -636,9 +648,9 @@ class Dr {
|
|
636
648
|
}));
|
637
649
|
}
|
638
650
|
}
|
639
|
-
class
|
651
|
+
class Lr {
|
640
652
|
constructor(t) {
|
641
|
-
|
653
|
+
F(this, "_isDictSource");
|
642
654
|
this.binding = t;
|
643
655
|
}
|
644
656
|
isDictSource(t) {
|
@@ -650,7 +662,7 @@ class Mr {
|
|
650
662
|
}
|
651
663
|
createRefObjectWithPaths(t) {
|
652
664
|
const { binding: n } = t, { path: r = [] } = n, o = [...r], { snapshot: i } = t, s = i.getVueRefObject(this.binding), c = this.isDictSource(s), l = i.getVForIndex(n.fid), d = c && o.length === 0 ? [0] : [];
|
653
|
-
return o.unshift(l, ...d),
|
665
|
+
return o.unshift(l, ...d), De(() => ({
|
654
666
|
get: () => {
|
655
667
|
const u = q(s), a = c ? Object.entries(u).map(([f, h], v) => [
|
656
668
|
h,
|
@@ -658,7 +670,7 @@ class Mr {
|
|
658
670
|
v
|
659
671
|
]) : u;
|
660
672
|
try {
|
661
|
-
return
|
673
|
+
return Re(
|
662
674
|
q(a),
|
663
675
|
o,
|
664
676
|
i.getObjectToValue
|
@@ -674,7 +686,7 @@ class Mr {
|
|
674
686
|
if (l >= f.length)
|
675
687
|
throw new Error("Cannot set value to a non-existent key");
|
676
688
|
const h = f[l];
|
677
|
-
|
689
|
+
et(
|
678
690
|
a,
|
679
691
|
[h],
|
680
692
|
u,
|
@@ -682,7 +694,7 @@ class Mr {
|
|
682
694
|
);
|
683
695
|
return;
|
684
696
|
}
|
685
|
-
|
697
|
+
et(
|
686
698
|
a,
|
687
699
|
o,
|
688
700
|
u,
|
@@ -695,22 +707,22 @@ class Mr {
|
|
695
707
|
function Rt(e) {
|
696
708
|
return e == null;
|
697
709
|
}
|
698
|
-
function
|
699
|
-
return
|
710
|
+
function Wr() {
|
711
|
+
return dn().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
700
712
|
}
|
701
|
-
function
|
713
|
+
function dn() {
|
702
714
|
return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
|
703
715
|
}
|
704
|
-
const
|
705
|
-
let
|
706
|
-
function
|
716
|
+
const Ur = typeof Proxy == "function", Gr = "devtools-plugin:setup", qr = "plugin:settings:set";
|
717
|
+
let le, ot;
|
718
|
+
function Hr() {
|
707
719
|
var e;
|
708
|
-
return
|
720
|
+
return le !== void 0 || (typeof window < "u" && window.performance ? (le = !0, ot = window.performance) : typeof globalThis < "u" && (!((e = globalThis.perf_hooks) === null || e === void 0) && e.performance) ? (le = !0, ot = globalThis.perf_hooks.performance) : le = !1), le;
|
709
721
|
}
|
710
|
-
function
|
711
|
-
return
|
722
|
+
function Kr() {
|
723
|
+
return Hr() ? ot.now() : Date.now();
|
712
724
|
}
|
713
|
-
class
|
725
|
+
class zr {
|
714
726
|
constructor(t, n) {
|
715
727
|
this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = t, this.hook = n;
|
716
728
|
const r = {};
|
@@ -738,9 +750,9 @@ class qr {
|
|
738
750
|
i = s;
|
739
751
|
},
|
740
752
|
now() {
|
741
|
-
return
|
753
|
+
return Kr();
|
742
754
|
}
|
743
|
-
}, n && n.on(
|
755
|
+
}, n && n.on(qr, (s, c) => {
|
744
756
|
s === this.plugin.id && this.fallbacks.setSettings(c);
|
745
757
|
}), this.proxiedOn = new Proxy({}, {
|
746
758
|
get: (s, c) => this.target ? this.target.on[c] : (...l) => {
|
@@ -772,12 +784,12 @@ class qr {
|
|
772
784
|
n.resolve(await this.target[n.method](...n.args));
|
773
785
|
}
|
774
786
|
}
|
775
|
-
function
|
776
|
-
const n = e, r =
|
787
|
+
function Qr(e, t) {
|
788
|
+
const n = e, r = dn(), o = Wr(), i = Ur && n.enableEarlyProxy;
|
777
789
|
if (o && (r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !i))
|
778
|
-
o.emit(
|
790
|
+
o.emit(Gr, e, t);
|
779
791
|
else {
|
780
|
-
const s = i ? new
|
792
|
+
const s = i ? new zr(n, o) : null;
|
781
793
|
(r.__VUE_DEVTOOLS_PLUGINS__ = r.__VUE_DEVTOOLS_PLUGINS__ || []).push({
|
782
794
|
pluginDescriptor: n,
|
783
795
|
setupFn: t,
|
@@ -787,69 +799,69 @@ function Kr(e, t) {
|
|
787
799
|
}
|
788
800
|
var O = {};
|
789
801
|
const Q = typeof document < "u";
|
790
|
-
function
|
802
|
+
function hn(e) {
|
791
803
|
return typeof e == "object" || "displayName" in e || "props" in e || "__vccOpts" in e;
|
792
804
|
}
|
793
|
-
function
|
805
|
+
function Jr(e) {
|
794
806
|
return e.__esModule || e[Symbol.toStringTag] === "Module" || // support CF with dynamic imports that do not
|
795
807
|
// add the Module string tag
|
796
|
-
e.default &&
|
808
|
+
e.default && hn(e.default);
|
797
809
|
}
|
798
810
|
const I = Object.assign;
|
799
|
-
function
|
811
|
+
function Qe(e, t) {
|
800
812
|
const n = {};
|
801
813
|
for (const r in t) {
|
802
814
|
const o = t[r];
|
803
|
-
n[r] =
|
815
|
+
n[r] = U(o) ? o.map(e) : e(o);
|
804
816
|
}
|
805
817
|
return n;
|
806
818
|
}
|
807
|
-
const
|
808
|
-
},
|
809
|
-
function
|
819
|
+
const _e = () => {
|
820
|
+
}, U = Array.isArray;
|
821
|
+
function V(e) {
|
810
822
|
const t = Array.from(arguments).slice(1);
|
811
823
|
console.warn.apply(console, ["[Vue Router warn]: " + e].concat(t));
|
812
824
|
}
|
813
|
-
const
|
814
|
-
function
|
815
|
-
return encodeURI("" + e).replace(
|
825
|
+
const pn = /#/g, Yr = /&/g, Xr = /\//g, Zr = /=/g, eo = /\?/g, mn = /\+/g, to = /%5B/g, no = /%5D/g, gn = /%5E/g, ro = /%60/g, vn = /%7B/g, oo = /%7C/g, yn = /%7D/g, so = /%20/g;
|
826
|
+
function gt(e) {
|
827
|
+
return encodeURI("" + e).replace(oo, "|").replace(to, "[").replace(no, "]");
|
816
828
|
}
|
817
|
-
function
|
818
|
-
return
|
829
|
+
function io(e) {
|
830
|
+
return gt(e).replace(vn, "{").replace(yn, "}").replace(gn, "^");
|
819
831
|
}
|
820
|
-
function
|
821
|
-
return
|
832
|
+
function st(e) {
|
833
|
+
return gt(e).replace(mn, "%2B").replace(so, "+").replace(pn, "%23").replace(Yr, "%26").replace(ro, "`").replace(vn, "{").replace(yn, "}").replace(gn, "^");
|
822
834
|
}
|
823
|
-
function
|
824
|
-
return
|
835
|
+
function ao(e) {
|
836
|
+
return st(e).replace(Zr, "%3D");
|
825
837
|
}
|
826
|
-
function
|
827
|
-
return
|
838
|
+
function co(e) {
|
839
|
+
return gt(e).replace(pn, "%23").replace(eo, "%3F");
|
828
840
|
}
|
829
|
-
function
|
830
|
-
return e == null ? "" :
|
841
|
+
function uo(e) {
|
842
|
+
return e == null ? "" : co(e).replace(Xr, "%2F");
|
831
843
|
}
|
832
|
-
function
|
844
|
+
function de(e) {
|
833
845
|
try {
|
834
846
|
return decodeURIComponent("" + e);
|
835
847
|
} catch {
|
836
|
-
O.NODE_ENV !== "production" &&
|
848
|
+
O.NODE_ENV !== "production" && V(`Error decoding "${e}". Using original value`);
|
837
849
|
}
|
838
850
|
return "" + e;
|
839
851
|
}
|
840
|
-
const
|
841
|
-
function
|
852
|
+
const lo = /\/$/, fo = (e) => e.replace(lo, "");
|
853
|
+
function Je(e, t, n = "/") {
|
842
854
|
let r, o = {}, i = "", s = "";
|
843
855
|
const c = t.indexOf("#");
|
844
856
|
let l = t.indexOf("?");
|
845
|
-
return c < l && c >= 0 && (l = -1), l > -1 && (r = t.slice(0, l), i = t.slice(l + 1, c > -1 ? c : t.length), o = e(i)), c > -1 && (r = r || t.slice(0, c), s = t.slice(c, t.length)), r =
|
857
|
+
return c < l && c >= 0 && (l = -1), l > -1 && (r = t.slice(0, l), i = t.slice(l + 1, c > -1 ? c : t.length), o = e(i)), c > -1 && (r = r || t.slice(0, c), s = t.slice(c, t.length)), r = mo(r ?? t, n), {
|
846
858
|
fullPath: r + (i && "?") + i + s,
|
847
859
|
path: r,
|
848
860
|
query: o,
|
849
|
-
hash:
|
861
|
+
hash: de(s)
|
850
862
|
};
|
851
863
|
}
|
852
|
-
function
|
864
|
+
function ho(e, t) {
|
853
865
|
const n = t.query ? e(t.query) : "";
|
854
866
|
return t.path + (n && "?") + n + (t.hash || "");
|
855
867
|
}
|
@@ -858,30 +870,30 @@ function Vt(e, t) {
|
|
858
870
|
}
|
859
871
|
function Pt(e, t, n) {
|
860
872
|
const r = t.matched.length - 1, o = n.matched.length - 1;
|
861
|
-
return r > -1 && r === o && ee(t.matched[r], n.matched[o]) &&
|
873
|
+
return r > -1 && r === o && ee(t.matched[r], n.matched[o]) && wn(t.params, n.params) && e(t.query) === e(n.query) && t.hash === n.hash;
|
862
874
|
}
|
863
875
|
function ee(e, t) {
|
864
876
|
return (e.aliasOf || e) === (t.aliasOf || t);
|
865
877
|
}
|
866
|
-
function
|
878
|
+
function wn(e, t) {
|
867
879
|
if (Object.keys(e).length !== Object.keys(t).length)
|
868
880
|
return !1;
|
869
881
|
for (const n in e)
|
870
|
-
if (!
|
882
|
+
if (!po(e[n], t[n]))
|
871
883
|
return !1;
|
872
884
|
return !0;
|
873
885
|
}
|
874
|
-
function
|
875
|
-
return
|
886
|
+
function po(e, t) {
|
887
|
+
return U(e) ? kt(e, t) : U(t) ? kt(t, e) : e === t;
|
876
888
|
}
|
877
889
|
function kt(e, t) {
|
878
|
-
return
|
890
|
+
return U(t) ? e.length === t.length && e.every((n, r) => n === t[r]) : e.length === 1 && e[0] === t;
|
879
891
|
}
|
880
|
-
function
|
892
|
+
function mo(e, t) {
|
881
893
|
if (e.startsWith("/"))
|
882
894
|
return e;
|
883
895
|
if (O.NODE_ENV !== "production" && !t.startsWith("/"))
|
884
|
-
return
|
896
|
+
return V(`Cannot resolve a relative location without an absolute path. Trying to resolve "${e}" from "${t}". It should look like "/${t}".`), e;
|
885
897
|
if (!e)
|
886
898
|
return t;
|
887
899
|
const n = t.split("/"), r = e.split("/"), o = r[r.length - 1];
|
@@ -907,29 +919,29 @@ const J = {
|
|
907
919
|
meta: {},
|
908
920
|
redirectedFrom: void 0
|
909
921
|
};
|
910
|
-
var
|
922
|
+
var he;
|
911
923
|
(function(e) {
|
912
924
|
e.pop = "pop", e.push = "push";
|
913
|
-
})(
|
914
|
-
var
|
925
|
+
})(he || (he = {}));
|
926
|
+
var oe;
|
915
927
|
(function(e) {
|
916
928
|
e.back = "back", e.forward = "forward", e.unknown = "";
|
917
|
-
})(
|
918
|
-
const
|
919
|
-
function
|
929
|
+
})(oe || (oe = {}));
|
930
|
+
const Ye = "";
|
931
|
+
function En(e) {
|
920
932
|
if (!e)
|
921
933
|
if (Q) {
|
922
934
|
const t = document.querySelector("base");
|
923
935
|
e = t && t.getAttribute("href") || "/", e = e.replace(/^\w+:\/\/[^\/]+/, "");
|
924
936
|
} else
|
925
937
|
e = "/";
|
926
|
-
return e[0] !== "/" && e[0] !== "#" && (e = "/" + e),
|
938
|
+
return e[0] !== "/" && e[0] !== "#" && (e = "/" + e), fo(e);
|
927
939
|
}
|
928
|
-
const
|
929
|
-
function
|
930
|
-
return e.replace(
|
940
|
+
const go = /^[^#]+#/;
|
941
|
+
function _n(e, t) {
|
942
|
+
return e.replace(go, "#") + t;
|
931
943
|
}
|
932
|
-
function
|
944
|
+
function vo(e, t) {
|
933
945
|
const n = document.documentElement.getBoundingClientRect(), r = e.getBoundingClientRect();
|
934
946
|
return {
|
935
947
|
behavior: t.behavior,
|
@@ -937,11 +949,11 @@ function po(e, t) {
|
|
937
949
|
top: r.top - n.top - (t.top || 0)
|
938
950
|
};
|
939
951
|
}
|
940
|
-
const
|
952
|
+
const We = () => ({
|
941
953
|
left: window.scrollX,
|
942
954
|
top: window.scrollY
|
943
955
|
});
|
944
|
-
function
|
956
|
+
function yo(e) {
|
945
957
|
let t;
|
946
958
|
if ("el" in e) {
|
947
959
|
const n = e.el, r = typeof n == "string" && n.startsWith("#");
|
@@ -949,19 +961,19 @@ function mo(e) {
|
|
949
961
|
try {
|
950
962
|
const i = document.querySelector(e.el);
|
951
963
|
if (r && i) {
|
952
|
-
|
964
|
+
V(`The selector "${e.el}" should be passed as "el: document.querySelector('${e.el}')" because it starts with "#".`);
|
953
965
|
return;
|
954
966
|
}
|
955
967
|
} catch {
|
956
|
-
|
968
|
+
V(`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).`);
|
957
969
|
return;
|
958
970
|
}
|
959
971
|
const o = typeof n == "string" ? r ? document.getElementById(n.slice(1)) : document.querySelector(n) : n;
|
960
972
|
if (!o) {
|
961
|
-
O.NODE_ENV !== "production" &&
|
973
|
+
O.NODE_ENV !== "production" && V(`Couldn't find element using selector "${e.el}" returned by scrollBehavior.`);
|
962
974
|
return;
|
963
975
|
}
|
964
|
-
t =
|
976
|
+
t = vo(o, e);
|
965
977
|
} else
|
966
978
|
t = e;
|
967
979
|
"scrollBehavior" in document.documentElement.style ? window.scrollTo(t) : window.scrollTo(t.left != null ? t.left : window.scrollX, t.top != null ? t.top : window.scrollY);
|
@@ -969,16 +981,16 @@ function mo(e) {
|
|
969
981
|
function Nt(e, t) {
|
970
982
|
return (history.state ? history.state.position - t : -1) + e;
|
971
983
|
}
|
972
|
-
const
|
973
|
-
function
|
974
|
-
|
984
|
+
const it = /* @__PURE__ */ new Map();
|
985
|
+
function wo(e, t) {
|
986
|
+
it.set(e, t);
|
975
987
|
}
|
976
|
-
function
|
977
|
-
const t =
|
978
|
-
return
|
988
|
+
function Eo(e) {
|
989
|
+
const t = it.get(e);
|
990
|
+
return it.delete(e), t;
|
979
991
|
}
|
980
|
-
let
|
981
|
-
function
|
992
|
+
let _o = () => location.protocol + "//" + location.host;
|
993
|
+
function Sn(e, t) {
|
982
994
|
const { pathname: n, search: r, hash: o } = t, i = e.indexOf("#");
|
983
995
|
if (i > -1) {
|
984
996
|
let c = o.includes(e.slice(i)) ? e.slice(i).length : 1, l = o.slice(c);
|
@@ -986,10 +998,10 @@ function _n(e, t) {
|
|
986
998
|
}
|
987
999
|
return Vt(n, e) + r + o;
|
988
1000
|
}
|
989
|
-
function
|
1001
|
+
function So(e, t, n, r) {
|
990
1002
|
let o = [], i = [], s = null;
|
991
1003
|
const c = ({ state: f }) => {
|
992
|
-
const h =
|
1004
|
+
const h = Sn(e, location), v = n.value, p = t.value;
|
993
1005
|
let g = 0;
|
994
1006
|
if (f) {
|
995
1007
|
if (n.value = h, t.value = f, s && s === v) {
|
@@ -1002,8 +1014,8 @@ function wo(e, t, n, r) {
|
|
1002
1014
|
o.forEach((y) => {
|
1003
1015
|
y(n.value, v, {
|
1004
1016
|
delta: g,
|
1005
|
-
type:
|
1006
|
-
direction: g ? g > 0 ?
|
1017
|
+
type: he.pop,
|
1018
|
+
direction: g ? g > 0 ? oe.forward : oe.back : oe.unknown
|
1007
1019
|
});
|
1008
1020
|
});
|
1009
1021
|
};
|
@@ -1020,7 +1032,7 @@ function wo(e, t, n, r) {
|
|
1020
1032
|
}
|
1021
1033
|
function u() {
|
1022
1034
|
const { history: f } = window;
|
1023
|
-
f.state && f.replaceState(I({}, f.state, { scroll:
|
1035
|
+
f.state && f.replaceState(I({}, f.state, { scroll: We() }), "");
|
1024
1036
|
}
|
1025
1037
|
function a() {
|
1026
1038
|
for (const f of i)
|
@@ -1042,12 +1054,12 @@ function It(e, t, n, r = !1, o = !1) {
|
|
1042
1054
|
forward: n,
|
1043
1055
|
replaced: r,
|
1044
1056
|
position: window.history.length,
|
1045
|
-
scroll: o ?
|
1057
|
+
scroll: o ? We() : null
|
1046
1058
|
};
|
1047
1059
|
}
|
1048
|
-
function
|
1060
|
+
function bo(e) {
|
1049
1061
|
const { history: t, location: n } = window, r = {
|
1050
|
-
value:
|
1062
|
+
value: Sn(e, n)
|
1051
1063
|
}, o = { value: t.state };
|
1052
1064
|
o.value || i(r.value, {
|
1053
1065
|
back: null,
|
@@ -1061,11 +1073,11 @@ function Eo(e) {
|
|
1061
1073
|
scroll: null
|
1062
1074
|
}, !0);
|
1063
1075
|
function i(l, d, u) {
|
1064
|
-
const a = e.indexOf("#"), f = a > -1 ? (n.host && document.querySelector("base") ? e : e.slice(a)) + l :
|
1076
|
+
const a = e.indexOf("#"), f = a > -1 ? (n.host && document.querySelector("base") ? e : e.slice(a)) + l : _o() + e + l;
|
1065
1077
|
try {
|
1066
1078
|
t[u ? "replaceState" : "pushState"](d, "", f), o.value = d;
|
1067
1079
|
} catch (h) {
|
1068
|
-
O.NODE_ENV !== "production" ?
|
1080
|
+
O.NODE_ENV !== "production" ? V("Error with push/replace State", h) : console.error(h), n[u ? "replace" : "assign"](f);
|
1069
1081
|
}
|
1070
1082
|
}
|
1071
1083
|
function s(l, d) {
|
@@ -1088,10 +1100,10 @@ function Eo(e) {
|
|
1088
1100
|
t.state,
|
1089
1101
|
{
|
1090
1102
|
forward: l,
|
1091
|
-
scroll:
|
1103
|
+
scroll: We()
|
1092
1104
|
}
|
1093
1105
|
);
|
1094
|
-
O.NODE_ENV !== "production" && !t.state &&
|
1106
|
+
O.NODE_ENV !== "production" && !t.state && V(`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:
|
1095
1107
|
|
1096
1108
|
history.replaceState(history.state, '', url)
|
1097
1109
|
|
@@ -1106,9 +1118,9 @@ You can find more information at https://router.vuejs.org/guide/migration/#Usage
|
|
1106
1118
|
replace: s
|
1107
1119
|
};
|
1108
1120
|
}
|
1109
|
-
function
|
1110
|
-
e =
|
1111
|
-
const t =
|
1121
|
+
function bn(e) {
|
1122
|
+
e = En(e);
|
1123
|
+
const t = bo(e), n = So(e, t.state, t.location, t.replace);
|
1112
1124
|
function r(i, s = !0) {
|
1113
1125
|
s || n.pauseListeners(), history.go(i);
|
1114
1126
|
}
|
@@ -1117,7 +1129,7 @@ function Sn(e) {
|
|
1117
1129
|
location: "",
|
1118
1130
|
base: e,
|
1119
1131
|
go: r,
|
1120
|
-
createHref:
|
1132
|
+
createHref: _n.bind(null, e)
|
1121
1133
|
}, t, n);
|
1122
1134
|
return Object.defineProperty(o, "location", {
|
1123
1135
|
enumerable: !0,
|
@@ -1127,9 +1139,9 @@ function Sn(e) {
|
|
1127
1139
|
get: () => t.state.value
|
1128
1140
|
}), o;
|
1129
1141
|
}
|
1130
|
-
function
|
1131
|
-
let t = [], n = [
|
1132
|
-
e =
|
1142
|
+
function Oo(e = "") {
|
1143
|
+
let t = [], n = [Ye], r = 0;
|
1144
|
+
e = En(e);
|
1133
1145
|
function o(c) {
|
1134
1146
|
r++, r !== n.length && n.splice(r), n.push(c);
|
1135
1147
|
}
|
@@ -1137,18 +1149,18 @@ function _o(e = "") {
|
|
1137
1149
|
const a = {
|
1138
1150
|
direction: d,
|
1139
1151
|
delta: u,
|
1140
|
-
type:
|
1152
|
+
type: he.pop
|
1141
1153
|
};
|
1142
1154
|
for (const f of t)
|
1143
1155
|
f(c, l, a);
|
1144
1156
|
}
|
1145
1157
|
const s = {
|
1146
1158
|
// rewritten by Object.defineProperty
|
1147
|
-
location:
|
1159
|
+
location: Ye,
|
1148
1160
|
// TODO: should be kept in queue
|
1149
1161
|
state: {},
|
1150
1162
|
base: e,
|
1151
|
-
createHref:
|
1163
|
+
createHref: _n.bind(null, e),
|
1152
1164
|
replace(c) {
|
1153
1165
|
n.splice(r--, 1), o(c);
|
1154
1166
|
},
|
@@ -1162,14 +1174,14 @@ function _o(e = "") {
|
|
1162
1174
|
};
|
1163
1175
|
},
|
1164
1176
|
destroy() {
|
1165
|
-
t = [], n = [
|
1177
|
+
t = [], n = [Ye], r = 0;
|
1166
1178
|
},
|
1167
1179
|
go(c, l = !0) {
|
1168
1180
|
const d = this.location, u = (
|
1169
1181
|
// we are considering delta === 0 going forward, but in abstract mode
|
1170
1182
|
// using 0 for the delta doesn't make sense like it does in html5 where
|
1171
1183
|
// it reloads the page
|
1172
|
-
c < 0 ?
|
1184
|
+
c < 0 ? oe.back : oe.forward
|
1173
1185
|
);
|
1174
1186
|
r = Math.max(0, Math.min(r + c, n.length - 1)), l && i(this.location, d, {
|
1175
1187
|
direction: u,
|
@@ -1182,22 +1194,22 @@ function _o(e = "") {
|
|
1182
1194
|
get: () => n[r]
|
1183
1195
|
}), s;
|
1184
1196
|
}
|
1185
|
-
function
|
1186
|
-
return e = location.host ? e || location.pathname + location.search : "", e.includes("#") || (e += "#"), O.NODE_ENV !== "production" && !e.endsWith("#/") && !e.endsWith("#") &&
|
1187
|
-
"${e}" should be "${e.replace(/#.*$/, "#")}".`),
|
1197
|
+
function Ro(e) {
|
1198
|
+
return e = location.host ? e || location.pathname + location.search : "", e.includes("#") || (e += "#"), O.NODE_ENV !== "production" && !e.endsWith("#/") && !e.endsWith("#") && V(`A hash base must end with a "#":
|
1199
|
+
"${e}" should be "${e.replace(/#.*$/, "#")}".`), bn(e);
|
1188
1200
|
}
|
1189
|
-
function
|
1201
|
+
function xe(e) {
|
1190
1202
|
return typeof e == "string" || e && typeof e == "object";
|
1191
1203
|
}
|
1192
|
-
function
|
1204
|
+
function On(e) {
|
1193
1205
|
return typeof e == "string" || typeof e == "symbol";
|
1194
1206
|
}
|
1195
|
-
const
|
1207
|
+
const at = Symbol(O.NODE_ENV !== "production" ? "navigation failure" : "");
|
1196
1208
|
var Tt;
|
1197
1209
|
(function(e) {
|
1198
1210
|
e[e.aborted = 4] = "aborted", e[e.cancelled = 8] = "cancelled", e[e.duplicated = 16] = "duplicated";
|
1199
1211
|
})(Tt || (Tt = {}));
|
1200
|
-
const
|
1212
|
+
const Vo = {
|
1201
1213
|
1({ location: e, currentLocation: t }) {
|
1202
1214
|
return `No match for
|
1203
1215
|
${JSON.stringify(e)}${t ? `
|
@@ -1205,7 +1217,7 @@ while being at
|
|
1205
1217
|
` + JSON.stringify(t) : ""}`;
|
1206
1218
|
},
|
1207
1219
|
2({ from: e, to: t }) {
|
1208
|
-
return `Redirected from "${e.fullPath}" to "${
|
1220
|
+
return `Redirected from "${e.fullPath}" to "${ko(t)}" via a navigation guard.`;
|
1209
1221
|
},
|
1210
1222
|
4({ from: e, to: t }) {
|
1211
1223
|
return `Navigation aborted from "${e.fullPath}" to "${t.fullPath}" via a navigation guard.`;
|
@@ -1217,37 +1229,37 @@ while being at
|
|
1217
1229
|
return `Avoided redundant navigation to current location: "${e.fullPath}".`;
|
1218
1230
|
}
|
1219
1231
|
};
|
1220
|
-
function
|
1221
|
-
return O.NODE_ENV !== "production" ? I(new Error(
|
1232
|
+
function pe(e, t) {
|
1233
|
+
return O.NODE_ENV !== "production" ? I(new Error(Vo[e](t)), {
|
1222
1234
|
type: e,
|
1223
|
-
[
|
1235
|
+
[at]: !0
|
1224
1236
|
}, t) : I(new Error(), {
|
1225
1237
|
type: e,
|
1226
|
-
[
|
1238
|
+
[at]: !0
|
1227
1239
|
}, t);
|
1228
1240
|
}
|
1229
1241
|
function z(e, t) {
|
1230
|
-
return e instanceof Error &&
|
1242
|
+
return e instanceof Error && at in e && (t == null || !!(e.type & t));
|
1231
1243
|
}
|
1232
|
-
const
|
1233
|
-
function
|
1244
|
+
const Po = ["params", "query", "hash"];
|
1245
|
+
function ko(e) {
|
1234
1246
|
if (typeof e == "string")
|
1235
1247
|
return e;
|
1236
1248
|
if (e.path != null)
|
1237
1249
|
return e.path;
|
1238
1250
|
const t = {};
|
1239
|
-
for (const n of
|
1251
|
+
for (const n of Po)
|
1240
1252
|
n in e && (t[n] = e[n]);
|
1241
1253
|
return JSON.stringify(t, null, 2);
|
1242
1254
|
}
|
1243
|
-
const At = "[^/]+?",
|
1255
|
+
const At = "[^/]+?", No = {
|
1244
1256
|
sensitive: !1,
|
1245
1257
|
strict: !1,
|
1246
1258
|
start: !0,
|
1247
1259
|
end: !0
|
1248
|
-
},
|
1249
|
-
function
|
1250
|
-
const n = I({},
|
1260
|
+
}, Io = /[.+*?^${}()[\]/\\]/g;
|
1261
|
+
function To(e, t) {
|
1262
|
+
const n = I({}, No, t), r = [];
|
1251
1263
|
let o = n.start ? "^" : "";
|
1252
1264
|
const i = [];
|
1253
1265
|
for (const d of e) {
|
@@ -1260,7 +1272,7 @@ function ko(e, t) {
|
|
1260
1272
|
const f = d[a];
|
1261
1273
|
let h = 40 + (n.sensitive ? 0.25 : 0);
|
1262
1274
|
if (f.type === 0)
|
1263
|
-
a || (o += "/"), o += f.value.replace(
|
1275
|
+
a || (o += "/"), o += f.value.replace(Io, "\\$&"), h += 40;
|
1264
1276
|
else if (f.type === 1) {
|
1265
1277
|
const { value: v, repeatable: p, optional: g, regexp: y } = f;
|
1266
1278
|
i.push({
|
@@ -1273,8 +1285,8 @@ function ko(e, t) {
|
|
1273
1285
|
h += 10;
|
1274
1286
|
try {
|
1275
1287
|
new RegExp(`(${_})`);
|
1276
|
-
} catch (
|
1277
|
-
throw new Error(`Invalid custom RegExp for param "${v}" (${_}): ` +
|
1288
|
+
} catch (R) {
|
1289
|
+
throw new Error(`Invalid custom RegExp for param "${v}" (${_}): ` + R.message);
|
1278
1290
|
}
|
1279
1291
|
}
|
1280
1292
|
let b = p ? `((?:${_})(?:/(?:${_}))*)` : `(${_})`;
|
@@ -1311,9 +1323,9 @@ function ko(e, t) {
|
|
1311
1323
|
u += h.value;
|
1312
1324
|
else if (h.type === 1) {
|
1313
1325
|
const { value: v, repeatable: p, optional: g } = h, y = v in d ? d[v] : "";
|
1314
|
-
if (
|
1326
|
+
if (U(y) && !p)
|
1315
1327
|
throw new Error(`Provided param "${v}" is an array but it is not repeatable (* or + modifiers)`);
|
1316
|
-
const _ =
|
1328
|
+
const _ = U(y) ? y.join("/") : y;
|
1317
1329
|
if (!_)
|
1318
1330
|
if (g)
|
1319
1331
|
f.length < 2 && (u.endsWith("/") ? u = u.slice(0, -1) : a = !0);
|
@@ -1332,7 +1344,7 @@ function ko(e, t) {
|
|
1332
1344
|
stringify: l
|
1333
1345
|
};
|
1334
1346
|
}
|
1335
|
-
function
|
1347
|
+
function Ao(e, t) {
|
1336
1348
|
let n = 0;
|
1337
1349
|
for (; n < e.length && n < t.length; ) {
|
1338
1350
|
const r = t[n] - e[n];
|
@@ -1342,36 +1354,36 @@ function No(e, t) {
|
|
1342
1354
|
}
|
1343
1355
|
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;
|
1344
1356
|
}
|
1345
|
-
function
|
1357
|
+
function Rn(e, t) {
|
1346
1358
|
let n = 0;
|
1347
1359
|
const r = e.score, o = t.score;
|
1348
1360
|
for (; n < r.length && n < o.length; ) {
|
1349
|
-
const i =
|
1361
|
+
const i = Ao(r[n], o[n]);
|
1350
1362
|
if (i)
|
1351
1363
|
return i;
|
1352
1364
|
n++;
|
1353
1365
|
}
|
1354
1366
|
if (Math.abs(o.length - r.length) === 1) {
|
1355
|
-
if (
|
1367
|
+
if (Ct(r))
|
1356
1368
|
return 1;
|
1357
|
-
if (
|
1369
|
+
if (Ct(o))
|
1358
1370
|
return -1;
|
1359
1371
|
}
|
1360
1372
|
return o.length - r.length;
|
1361
1373
|
}
|
1362
|
-
function
|
1374
|
+
function Ct(e) {
|
1363
1375
|
const t = e[e.length - 1];
|
1364
1376
|
return e.length > 0 && t[t.length - 1] < 0;
|
1365
1377
|
}
|
1366
|
-
const
|
1378
|
+
const Co = {
|
1367
1379
|
type: 0,
|
1368
1380
|
value: ""
|
1369
|
-
},
|
1370
|
-
function
|
1381
|
+
}, $o = /[a-zA-Z0-9_]/;
|
1382
|
+
function xo(e) {
|
1371
1383
|
if (!e)
|
1372
1384
|
return [[]];
|
1373
1385
|
if (e === "/")
|
1374
|
-
return [[
|
1386
|
+
return [[Co]];
|
1375
1387
|
if (!e.startsWith("/"))
|
1376
1388
|
throw new Error(O.NODE_ENV !== "production" ? `Route paths should start with a "/": "${e}" should be "/${e}".` : `Invalid path "${e}"`);
|
1377
1389
|
function t(h) {
|
@@ -1412,7 +1424,7 @@ function Ao(e) {
|
|
1412
1424
|
f(), n = r;
|
1413
1425
|
break;
|
1414
1426
|
case 1:
|
1415
|
-
l === "(" ? n = 2 :
|
1427
|
+
l === "(" ? n = 2 : $o.test(l) ? f() : (a(), n = 0, l !== "*" && l !== "?" && l !== "+" && c--);
|
1416
1428
|
break;
|
1417
1429
|
case 2:
|
1418
1430
|
l === ")" ? u[u.length - 1] == "\\" ? u = u.slice(0, -1) + l : n = 3 : u += l;
|
@@ -1427,12 +1439,12 @@ function Ao(e) {
|
|
1427
1439
|
}
|
1428
1440
|
return n === 2 && t(`Unfinished custom RegExp for param "${d}"`), a(), s(), o;
|
1429
1441
|
}
|
1430
|
-
function
|
1431
|
-
const r =
|
1442
|
+
function jo(e, t, n) {
|
1443
|
+
const r = To(xo(e.path), n);
|
1432
1444
|
if (O.NODE_ENV !== "production") {
|
1433
1445
|
const i = /* @__PURE__ */ new Set();
|
1434
1446
|
for (const s of r.keys)
|
1435
|
-
i.has(s.name) &&
|
1447
|
+
i.has(s.name) && V(`Found duplicated params with name "${s.name}" for path "${e.path}". Only the last one will be available on "$route.params".`), i.add(s.name);
|
1436
1448
|
}
|
1437
1449
|
const o = I(r, {
|
1438
1450
|
record: e,
|
@@ -1443,7 +1455,7 @@ function $o(e, t, n) {
|
|
1443
1455
|
});
|
1444
1456
|
return t && !o.record.aliasOf == !t.record.aliasOf && t.children.push(o), o;
|
1445
1457
|
}
|
1446
|
-
function
|
1458
|
+
function Do(e, t) {
|
1447
1459
|
const n = [], r = /* @__PURE__ */ new Map();
|
1448
1460
|
t = Dt({ strict: !1, end: !0, sensitive: !1 }, t);
|
1449
1461
|
function o(a) {
|
@@ -1451,11 +1463,11 @@ function Co(e, t) {
|
|
1451
1463
|
}
|
1452
1464
|
function i(a, f, h) {
|
1453
1465
|
const v = !h, p = xt(a);
|
1454
|
-
O.NODE_ENV !== "production" &&
|
1466
|
+
O.NODE_ENV !== "production" && Lo(p, f), p.aliasOf = h && h.record;
|
1455
1467
|
const g = Dt(t, a), y = [p];
|
1456
1468
|
if ("alias" in a) {
|
1457
|
-
const
|
1458
|
-
for (const
|
1469
|
+
const R = typeof a.alias == "string" ? [a.alias] : a.alias;
|
1470
|
+
for (const $ of R)
|
1459
1471
|
y.push(
|
1460
1472
|
// we need to normalize again to ensure the `mods` property
|
1461
1473
|
// being non enumerable
|
@@ -1463,7 +1475,7 @@ function Co(e, t) {
|
|
1463
1475
|
// this allows us to hold a copy of the `components` option
|
1464
1476
|
// so that async components cache is hold on the original record
|
1465
1477
|
components: h ? h.record.components : p.components,
|
1466
|
-
path:
|
1478
|
+
path: $,
|
1467
1479
|
// we might be the child of an alias
|
1468
1480
|
aliasOf: h ? h.record : p
|
1469
1481
|
// the aliases are always of the same kind as the original since they
|
@@ -1472,28 +1484,28 @@ function Co(e, t) {
|
|
1472
1484
|
);
|
1473
1485
|
}
|
1474
1486
|
let _, b;
|
1475
|
-
for (const
|
1476
|
-
const { path:
|
1477
|
-
if (f &&
|
1478
|
-
const
|
1479
|
-
|
1487
|
+
for (const R of y) {
|
1488
|
+
const { path: $ } = R;
|
1489
|
+
if (f && $[0] !== "/") {
|
1490
|
+
const G = f.record.path, x = G[G.length - 1] === "/" ? "" : "/";
|
1491
|
+
R.path = f.record.path + ($ && x + $);
|
1480
1492
|
}
|
1481
|
-
if (O.NODE_ENV !== "production" &&
|
1493
|
+
if (O.NODE_ENV !== "production" && R.path === "*")
|
1482
1494
|
throw new Error(`Catch all routes ("*") must now be defined using a param with a custom regexp.
|
1483
1495
|
See more at https://router.vuejs.org/guide/migration/#Removed-star-or-catch-all-routes.`);
|
1484
|
-
if (_ =
|
1485
|
-
const
|
1486
|
-
for (let
|
1487
|
-
i(
|
1496
|
+
if (_ = jo(R, f, g), O.NODE_ENV !== "production" && f && $[0] === "/" && Uo(_, f), h ? (h.alias.push(_), O.NODE_ENV !== "production" && Bo(h, _)) : (b = b || _, b !== _ && b.alias.push(_), v && a.name && !jt(_) && (O.NODE_ENV !== "production" && Wo(a, f), s(a.name))), Vn(_) && l(_), p.children) {
|
1497
|
+
const G = p.children;
|
1498
|
+
for (let x = 0; x < G.length; x++)
|
1499
|
+
i(G[x], _, h && h.children[x]);
|
1488
1500
|
}
|
1489
1501
|
h = h || _;
|
1490
1502
|
}
|
1491
1503
|
return b ? () => {
|
1492
1504
|
s(b);
|
1493
|
-
} :
|
1505
|
+
} : _e;
|
1494
1506
|
}
|
1495
1507
|
function s(a) {
|
1496
|
-
if (
|
1508
|
+
if (On(a)) {
|
1497
1509
|
const f = r.get(a);
|
1498
1510
|
f && (r.delete(a), n.splice(n.indexOf(f), 1), f.children.forEach(s), f.alias.forEach(s));
|
1499
1511
|
} else {
|
@@ -1505,23 +1517,23 @@ See more at https://router.vuejs.org/guide/migration/#Removed-star-or-catch-all-
|
|
1505
1517
|
return n;
|
1506
1518
|
}
|
1507
1519
|
function l(a) {
|
1508
|
-
const f =
|
1520
|
+
const f = Go(a, n);
|
1509
1521
|
n.splice(f, 0, a), a.record.name && !jt(a) && r.set(a.record.name, a);
|
1510
1522
|
}
|
1511
1523
|
function d(a, f) {
|
1512
1524
|
let h, v = {}, p, g;
|
1513
1525
|
if ("name" in a && a.name) {
|
1514
1526
|
if (h = r.get(a.name), !h)
|
1515
|
-
throw
|
1527
|
+
throw pe(1, {
|
1516
1528
|
location: a
|
1517
1529
|
});
|
1518
1530
|
if (O.NODE_ENV !== "production") {
|
1519
|
-
const b = Object.keys(a.params || {}).filter((
|
1520
|
-
b.length &&
|
1531
|
+
const b = Object.keys(a.params || {}).filter((R) => !h.keys.find(($) => $.name === R));
|
1532
|
+
b.length && V(`Discarded invalid param(s) "${b.join('", "')}" when navigating. See https://github.com/vuejs/router/blob/main/packages/router/CHANGELOG.md#414-2022-08-22 for more details.`);
|
1521
1533
|
}
|
1522
1534
|
g = h.record.name, v = I(
|
1523
1535
|
// paramsFromLocation is a new object
|
1524
|
-
|
1536
|
+
$t(
|
1525
1537
|
f.params,
|
1526
1538
|
// only keep params that exist in the resolved location
|
1527
1539
|
// only keep optional params coming from a parent record
|
@@ -1529,13 +1541,13 @@ See more at https://router.vuejs.org/guide/migration/#Removed-star-or-catch-all-
|
|
1529
1541
|
),
|
1530
1542
|
// discard any existing params in the current location that do not exist here
|
1531
1543
|
// #1497 this ensures better active/exact matching
|
1532
|
-
a.params &&
|
1544
|
+
a.params && $t(a.params, h.keys.map((b) => b.name))
|
1533
1545
|
), p = h.stringify(v);
|
1534
1546
|
} else if (a.path != null)
|
1535
|
-
p = a.path, O.NODE_ENV !== "production" && !p.startsWith("/") &&
|
1547
|
+
p = a.path, O.NODE_ENV !== "production" && !p.startsWith("/") && V(`The Matcher cannot resolve relative paths but received "${p}". Unless you directly called \`matcher.resolve("${p}")\`, this is probably a bug in vue-router. Please open an issue at https://github.com/vuejs/router/issues/new/choose.`), h = n.find((b) => b.re.test(p)), h && (v = h.parse(p), g = h.record.name);
|
1536
1548
|
else {
|
1537
1549
|
if (h = f.name ? r.get(f.name) : n.find((b) => b.re.test(f.path)), !h)
|
1538
|
-
throw
|
1550
|
+
throw pe(1, {
|
1539
1551
|
location: a,
|
1540
1552
|
currentLocation: f
|
1541
1553
|
});
|
@@ -1550,7 +1562,7 @@ See more at https://router.vuejs.org/guide/migration/#Removed-star-or-catch-all-
|
|
1550
1562
|
path: p,
|
1551
1563
|
params: v,
|
1552
1564
|
matched: y,
|
1553
|
-
meta:
|
1565
|
+
meta: Fo(y)
|
1554
1566
|
};
|
1555
1567
|
}
|
1556
1568
|
e.forEach((a) => i(a));
|
@@ -1566,7 +1578,7 @@ See more at https://router.vuejs.org/guide/migration/#Removed-star-or-catch-all-
|
|
1566
1578
|
getRecordMatcher: o
|
1567
1579
|
};
|
1568
1580
|
}
|
1569
|
-
function
|
1581
|
+
function $t(e, t) {
|
1570
1582
|
const n = {};
|
1571
1583
|
for (const r of t)
|
1572
1584
|
r in e && (n[r] = e[r]);
|
@@ -1580,7 +1592,7 @@ function xt(e) {
|
|
1580
1592
|
meta: e.meta || {},
|
1581
1593
|
aliasOf: e.aliasOf,
|
1582
1594
|
beforeEnter: e.beforeEnter,
|
1583
|
-
props:
|
1595
|
+
props: Mo(e),
|
1584
1596
|
children: e.children || [],
|
1585
1597
|
instances: {},
|
1586
1598
|
leaveGuards: /* @__PURE__ */ new Set(),
|
@@ -1594,7 +1606,7 @@ function xt(e) {
|
|
1594
1606
|
value: {}
|
1595
1607
|
}), t;
|
1596
1608
|
}
|
1597
|
-
function
|
1609
|
+
function Mo(e) {
|
1598
1610
|
const t = {}, n = e.props || !1;
|
1599
1611
|
if ("component" in e)
|
1600
1612
|
t.default = n;
|
@@ -1611,7 +1623,7 @@ function jt(e) {
|
|
1611
1623
|
}
|
1612
1624
|
return !1;
|
1613
1625
|
}
|
1614
|
-
function
|
1626
|
+
function Fo(e) {
|
1615
1627
|
return e.reduce((t, n) => I(t, n.meta), {});
|
1616
1628
|
}
|
1617
1629
|
function Dt(e, t) {
|
@@ -1620,58 +1632,58 @@ function Dt(e, t) {
|
|
1620
1632
|
n[r] = r in t ? t[r] : e[r];
|
1621
1633
|
return n;
|
1622
1634
|
}
|
1623
|
-
function
|
1635
|
+
function ct(e, t) {
|
1624
1636
|
return e.name === t.name && e.optional === t.optional && e.repeatable === t.repeatable;
|
1625
1637
|
}
|
1626
|
-
function
|
1638
|
+
function Bo(e, t) {
|
1627
1639
|
for (const n of e.keys)
|
1628
|
-
if (!n.optional && !t.keys.find(
|
1629
|
-
return
|
1640
|
+
if (!n.optional && !t.keys.find(ct.bind(null, n)))
|
1641
|
+
return V(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`);
|
1630
1642
|
for (const n of t.keys)
|
1631
|
-
if (!n.optional && !e.keys.find(
|
1632
|
-
return
|
1643
|
+
if (!n.optional && !e.keys.find(ct.bind(null, n)))
|
1644
|
+
return V(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`);
|
1633
1645
|
}
|
1634
|
-
function
|
1635
|
-
t && t.record.name && !e.name && !e.path &&
|
1646
|
+
function Lo(e, t) {
|
1647
|
+
t && t.record.name && !e.name && !e.path && V(`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.`);
|
1636
1648
|
}
|
1637
|
-
function
|
1649
|
+
function Wo(e, t) {
|
1638
1650
|
for (let n = t; n; n = n.parent)
|
1639
1651
|
if (n.record.name === e.name)
|
1640
1652
|
throw new Error(`A route named "${String(e.name)}" has been added as a ${t === n ? "child" : "descendant"} of a route with the same name. Route names must be unique and a nested route cannot use the same name as an ancestor.`);
|
1641
1653
|
}
|
1642
|
-
function
|
1654
|
+
function Uo(e, t) {
|
1643
1655
|
for (const n of t.keys)
|
1644
|
-
if (!e.keys.find(
|
1645
|
-
return
|
1656
|
+
if (!e.keys.find(ct.bind(null, n)))
|
1657
|
+
return V(`Absolute path "${e.record.path}" must have the exact same param named "${n.name}" as its parent "${t.record.path}".`);
|
1646
1658
|
}
|
1647
|
-
function
|
1659
|
+
function Go(e, t) {
|
1648
1660
|
let n = 0, r = t.length;
|
1649
1661
|
for (; n !== r; ) {
|
1650
1662
|
const i = n + r >> 1;
|
1651
|
-
|
1663
|
+
Rn(e, t[i]) < 0 ? r = i : n = i + 1;
|
1652
1664
|
}
|
1653
|
-
const o =
|
1654
|
-
return o && (r = t.lastIndexOf(o, r - 1), O.NODE_ENV !== "production" && r < 0 &&
|
1665
|
+
const o = qo(e);
|
1666
|
+
return o && (r = t.lastIndexOf(o, r - 1), O.NODE_ENV !== "production" && r < 0 && V(`Finding ancestor route "${o.record.path}" failed for "${e.record.path}"`)), r;
|
1655
1667
|
}
|
1656
|
-
function
|
1668
|
+
function qo(e) {
|
1657
1669
|
let t = e;
|
1658
1670
|
for (; t = t.parent; )
|
1659
|
-
if (
|
1671
|
+
if (Vn(t) && Rn(e, t) === 0)
|
1660
1672
|
return t;
|
1661
1673
|
}
|
1662
|
-
function
|
1674
|
+
function Vn({ record: e }) {
|
1663
1675
|
return !!(e.name || e.components && Object.keys(e.components).length || e.redirect);
|
1664
1676
|
}
|
1665
|
-
function
|
1677
|
+
function Ho(e) {
|
1666
1678
|
const t = {};
|
1667
1679
|
if (e === "" || e === "?")
|
1668
1680
|
return t;
|
1669
1681
|
const r = (e[0] === "?" ? e.slice(1) : e).split("&");
|
1670
1682
|
for (let o = 0; o < r.length; ++o) {
|
1671
|
-
const i = r[o].replace(
|
1683
|
+
const i = r[o].replace(mn, " "), s = i.indexOf("="), c = de(s < 0 ? i : i.slice(0, s)), l = s < 0 ? null : de(i.slice(s + 1));
|
1672
1684
|
if (c in t) {
|
1673
1685
|
let d = t[c];
|
1674
|
-
|
1686
|
+
U(d) || (d = t[c] = [d]), d.push(l);
|
1675
1687
|
} else
|
1676
1688
|
t[c] = l;
|
1677
1689
|
}
|
@@ -1681,26 +1693,26 @@ function Mt(e) {
|
|
1681
1693
|
let t = "";
|
1682
1694
|
for (let n in e) {
|
1683
1695
|
const r = e[n];
|
1684
|
-
if (n =
|
1696
|
+
if (n = ao(n), r == null) {
|
1685
1697
|
r !== void 0 && (t += (t.length ? "&" : "") + n);
|
1686
1698
|
continue;
|
1687
1699
|
}
|
1688
|
-
(
|
1700
|
+
(U(r) ? r.map((i) => i && st(i)) : [r && st(r)]).forEach((i) => {
|
1689
1701
|
i !== void 0 && (t += (t.length ? "&" : "") + n, i != null && (t += "=" + i));
|
1690
1702
|
});
|
1691
1703
|
}
|
1692
1704
|
return t;
|
1693
1705
|
}
|
1694
|
-
function
|
1706
|
+
function Ko(e) {
|
1695
1707
|
const t = {};
|
1696
1708
|
for (const n in e) {
|
1697
1709
|
const r = e[n];
|
1698
|
-
r !== void 0 && (t[n] =
|
1710
|
+
r !== void 0 && (t[n] = U(r) ? r.map((o) => o == null ? null : "" + o) : r == null ? r : "" + r);
|
1699
1711
|
}
|
1700
1712
|
return t;
|
1701
1713
|
}
|
1702
|
-
const
|
1703
|
-
function
|
1714
|
+
const zo = Symbol(O.NODE_ENV !== "production" ? "router view location matched" : ""), Ft = Symbol(O.NODE_ENV !== "production" ? "router view depth" : ""), Ue = Symbol(O.NODE_ENV !== "production" ? "router" : ""), vt = Symbol(O.NODE_ENV !== "production" ? "route location" : ""), ut = Symbol(O.NODE_ENV !== "production" ? "router view location" : "");
|
1715
|
+
function ye() {
|
1704
1716
|
let e = [];
|
1705
1717
|
function t(r) {
|
1706
1718
|
return e.push(r), () => {
|
@@ -1722,62 +1734,62 @@ function Y(e, t, n, r, o, i = (s) => s()) {
|
|
1722
1734
|
(r.enterCallbacks[o] = r.enterCallbacks[o] || []);
|
1723
1735
|
return () => new Promise((c, l) => {
|
1724
1736
|
const d = (f) => {
|
1725
|
-
f === !1 ? l(
|
1737
|
+
f === !1 ? l(pe(4, {
|
1726
1738
|
from: n,
|
1727
1739
|
to: t
|
1728
|
-
})) : f instanceof Error ? l(f) :
|
1740
|
+
})) : f instanceof Error ? l(f) : xe(f) ? l(pe(2, {
|
1729
1741
|
from: t,
|
1730
1742
|
to: f
|
1731
1743
|
})) : (s && // since enterCallbackArray is truthy, both record and name also are
|
1732
1744
|
r.enterCallbacks[o] === s && typeof f == "function" && s.push(f), c());
|
1733
|
-
}, u = i(() => e.call(r && r.instances[o], t, n, O.NODE_ENV !== "production" ?
|
1745
|
+
}, u = i(() => e.call(r && r.instances[o], t, n, O.NODE_ENV !== "production" ? Qo(d, t, n) : d));
|
1734
1746
|
let a = Promise.resolve(u);
|
1735
1747
|
if (e.length < 3 && (a = a.then(d)), O.NODE_ENV !== "production" && e.length > 2) {
|
1736
1748
|
const f = `The "next" callback was never called inside of ${e.name ? '"' + e.name + '"' : ""}:
|
1737
1749
|
${e.toString()}
|
1738
1750
|
. If you are returning a value instead of calling "next", make sure to remove the "next" parameter from your function.`;
|
1739
1751
|
if (typeof u == "object" && "then" in u)
|
1740
|
-
a = a.then((h) => d._called ? h : (
|
1752
|
+
a = a.then((h) => d._called ? h : (V(f), Promise.reject(new Error("Invalid navigation guard"))));
|
1741
1753
|
else if (u !== void 0 && !d._called) {
|
1742
|
-
|
1754
|
+
V(f), l(new Error("Invalid navigation guard"));
|
1743
1755
|
return;
|
1744
1756
|
}
|
1745
1757
|
}
|
1746
1758
|
a.catch((f) => l(f));
|
1747
1759
|
});
|
1748
1760
|
}
|
1749
|
-
function
|
1761
|
+
function Qo(e, t, n) {
|
1750
1762
|
let r = 0;
|
1751
1763
|
return function() {
|
1752
|
-
r++ === 1 &&
|
1764
|
+
r++ === 1 && V(`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);
|
1753
1765
|
};
|
1754
1766
|
}
|
1755
|
-
function
|
1767
|
+
function Xe(e, t, n, r, o = (i) => i()) {
|
1756
1768
|
const i = [];
|
1757
1769
|
for (const s of e) {
|
1758
|
-
O.NODE_ENV !== "production" && !s.components && !s.children.length &&
|
1770
|
+
O.NODE_ENV !== "production" && !s.components && !s.children.length && V(`Record with path "${s.path}" is either missing a "component(s)" or "children" property.`);
|
1759
1771
|
for (const c in s.components) {
|
1760
1772
|
let l = s.components[c];
|
1761
1773
|
if (O.NODE_ENV !== "production") {
|
1762
1774
|
if (!l || typeof l != "object" && typeof l != "function")
|
1763
|
-
throw
|
1775
|
+
throw V(`Component "${c}" in record with path "${s.path}" is not a valid component. Received "${String(l)}".`), new Error("Invalid route component");
|
1764
1776
|
if ("then" in l) {
|
1765
|
-
|
1777
|
+
V(`Component "${c}" in record with path "${s.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.`);
|
1766
1778
|
const d = l;
|
1767
1779
|
l = () => d;
|
1768
1780
|
} else l.__asyncLoader && // warn only once per component
|
1769
|
-
!l.__warnedDefineAsync && (l.__warnedDefineAsync = !0,
|
1781
|
+
!l.__warnedDefineAsync && (l.__warnedDefineAsync = !0, V(`Component "${c}" in record with path "${s.path}" is defined using "defineAsyncComponent()". Write "() => import('./MyPage.vue')" instead of "defineAsyncComponent(() => import('./MyPage.vue'))".`));
|
1770
1782
|
}
|
1771
1783
|
if (!(t !== "beforeRouteEnter" && !s.instances[c]))
|
1772
|
-
if (
|
1784
|
+
if (hn(l)) {
|
1773
1785
|
const u = (l.__vccOpts || l)[t];
|
1774
1786
|
u && i.push(Y(u, n, r, s, c, o));
|
1775
1787
|
} else {
|
1776
1788
|
let d = l();
|
1777
|
-
O.NODE_ENV !== "production" && !("catch" in d) && (
|
1789
|
+
O.NODE_ENV !== "production" && !("catch" in d) && (V(`Component "${c}" in record with path "${s.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.`), d = Promise.resolve(d)), i.push(() => d.then((u) => {
|
1778
1790
|
if (!u)
|
1779
1791
|
throw new Error(`Couldn't resolve component "${c}" at "${s.path}"`);
|
1780
|
-
const a =
|
1792
|
+
const a = Jr(u) ? u.default : u;
|
1781
1793
|
s.mods[c] = u, s.components[c] = a;
|
1782
1794
|
const h = (a.__vccOpts || a)[t];
|
1783
1795
|
return h && Y(h, n, r, s, c, o)();
|
@@ -1788,17 +1800,17 @@ function Qe(e, t, n, r, o = (i) => i()) {
|
|
1788
1800
|
return i;
|
1789
1801
|
}
|
1790
1802
|
function Bt(e) {
|
1791
|
-
const t = Z(
|
1803
|
+
const t = Z(Ue), n = Z(vt);
|
1792
1804
|
let r = !1, o = null;
|
1793
|
-
const i =
|
1794
|
-
const u =
|
1795
|
-
return O.NODE_ENV !== "production" && (!r || u !== o) && (
|
1805
|
+
const i = W(() => {
|
1806
|
+
const u = D(e.to);
|
1807
|
+
return O.NODE_ENV !== "production" && (!r || u !== o) && (xe(u) || (r ? V(`Invalid value for prop "to" in useLink()
|
1796
1808
|
- to:`, u, `
|
1797
1809
|
- previous to:`, o, `
|
1798
|
-
- props:`, e) :
|
1810
|
+
- props:`, e) : V(`Invalid value for prop "to" in useLink()
|
1799
1811
|
- to:`, u, `
|
1800
1812
|
- props:`, e)), o = u, r = !0), t.resolve(u);
|
1801
|
-
}), s =
|
1813
|
+
}), s = W(() => {
|
1802
1814
|
const { matched: u } = i.value, { length: a } = u, f = u[a - 1], h = n.matched;
|
1803
1815
|
if (!f || !h.length)
|
1804
1816
|
return -1;
|
@@ -1814,19 +1826,19 @@ function Bt(e) {
|
|
1814
1826
|
Lt(f) === p && // avoid comparing the child with its parent
|
1815
1827
|
h[h.length - 1].path !== p ? h.findIndex(ee.bind(null, u[a - 2])) : v
|
1816
1828
|
);
|
1817
|
-
}), c =
|
1829
|
+
}), c = W(() => s.value > -1 && es(n.params, i.value.params)), l = W(() => s.value > -1 && s.value === n.matched.length - 1 && wn(n.params, i.value.params));
|
1818
1830
|
function d(u = {}) {
|
1819
|
-
if (
|
1820
|
-
const a = t[
|
1821
|
-
|
1831
|
+
if (Zo(u)) {
|
1832
|
+
const a = t[D(e.replace) ? "replace" : "push"](
|
1833
|
+
D(e.to)
|
1822
1834
|
// avoid uncaught errors are they are logged anyway
|
1823
|
-
).catch(
|
1835
|
+
).catch(_e);
|
1824
1836
|
return e.viewTransition && typeof document < "u" && "startViewTransition" in document && document.startViewTransition(() => a), a;
|
1825
1837
|
}
|
1826
1838
|
return Promise.resolve();
|
1827
1839
|
}
|
1828
1840
|
if (O.NODE_ENV !== "production" && Q) {
|
1829
|
-
const u =
|
1841
|
+
const u = Jt();
|
1830
1842
|
if (u) {
|
1831
1843
|
const a = {
|
1832
1844
|
route: i.value,
|
@@ -1834,23 +1846,23 @@ function Bt(e) {
|
|
1834
1846
|
isExactActive: l.value,
|
1835
1847
|
error: null
|
1836
1848
|
};
|
1837
|
-
u.__vrl_devtools = u.__vrl_devtools || [], u.__vrl_devtools.push(a),
|
1838
|
-
a.route = i.value, a.isActive = c.value, a.isExactActive = l.value, a.error =
|
1849
|
+
u.__vrl_devtools = u.__vrl_devtools || [], u.__vrl_devtools.push(a), Qt(() => {
|
1850
|
+
a.route = i.value, a.isActive = c.value, a.isExactActive = l.value, a.error = xe(D(e.to)) ? null : 'Invalid "to" value';
|
1839
1851
|
}, { flush: "post" });
|
1840
1852
|
}
|
1841
1853
|
}
|
1842
1854
|
return {
|
1843
1855
|
route: i,
|
1844
|
-
href:
|
1856
|
+
href: W(() => i.value.href),
|
1845
1857
|
isActive: c,
|
1846
1858
|
isExactActive: l,
|
1847
1859
|
navigate: d
|
1848
1860
|
};
|
1849
1861
|
}
|
1850
|
-
function
|
1862
|
+
function Jo(e) {
|
1851
1863
|
return e.length === 1 ? e[0] : e;
|
1852
1864
|
}
|
1853
|
-
const
|
1865
|
+
const Yo = /* @__PURE__ */ L({
|
1854
1866
|
name: "RouterLink",
|
1855
1867
|
compatConfig: { MODE: 3 },
|
1856
1868
|
props: {
|
@@ -1870,7 +1882,7 @@ const zo = /* @__PURE__ */ U({
|
|
1870
1882
|
},
|
1871
1883
|
useLink: Bt,
|
1872
1884
|
setup(e, { slots: t }) {
|
1873
|
-
const n =
|
1885
|
+
const n = Kn(Bt(e)), { options: r } = Z(Ue), o = W(() => ({
|
1874
1886
|
[Wt(e.activeClass, r.linkActiveClass, "router-link-active")]: n.isActive,
|
1875
1887
|
// [getLinkClass(
|
1876
1888
|
// props.inactiveClass,
|
@@ -1880,7 +1892,7 @@ const zo = /* @__PURE__ */ U({
|
|
1880
1892
|
[Wt(e.exactActiveClass, r.linkExactActiveClass, "router-link-exact-active")]: n.isExactActive
|
1881
1893
|
}));
|
1882
1894
|
return () => {
|
1883
|
-
const i = t.default &&
|
1895
|
+
const i = t.default && Jo(t.default(n));
|
1884
1896
|
return e.custom ? i : A("a", {
|
1885
1897
|
"aria-current": n.isExactActive ? e.ariaCurrentValue : null,
|
1886
1898
|
href: n.href,
|
@@ -1891,8 +1903,8 @@ const zo = /* @__PURE__ */ U({
|
|
1891
1903
|
}, i);
|
1892
1904
|
};
|
1893
1905
|
}
|
1894
|
-
}),
|
1895
|
-
function
|
1906
|
+
}), Xo = Yo;
|
1907
|
+
function Zo(e) {
|
1896
1908
|
if (!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey) && !e.defaultPrevented && !(e.button !== void 0 && e.button !== 0)) {
|
1897
1909
|
if (e.currentTarget && e.currentTarget.getAttribute) {
|
1898
1910
|
const t = e.currentTarget.getAttribute("target");
|
@@ -1902,13 +1914,13 @@ function Jo(e) {
|
|
1902
1914
|
return e.preventDefault && e.preventDefault(), !0;
|
1903
1915
|
}
|
1904
1916
|
}
|
1905
|
-
function
|
1917
|
+
function es(e, t) {
|
1906
1918
|
for (const n in t) {
|
1907
1919
|
const r = t[n], o = e[n];
|
1908
1920
|
if (typeof r == "string") {
|
1909
1921
|
if (r !== o)
|
1910
1922
|
return !1;
|
1911
|
-
} else if (!
|
1923
|
+
} else if (!U(o) || o.length !== r.length || r.some((i, s) => i !== o[s]))
|
1912
1924
|
return !1;
|
1913
1925
|
}
|
1914
1926
|
return !0;
|
@@ -1916,7 +1928,7 @@ function Yo(e, t) {
|
|
1916
1928
|
function Lt(e) {
|
1917
1929
|
return e ? e.aliasOf ? e.aliasOf.path : e.path : "";
|
1918
1930
|
}
|
1919
|
-
const Wt = (e, t, n) => e ?? t ?? n,
|
1931
|
+
const Wt = (e, t, n) => e ?? t ?? n, ts = /* @__PURE__ */ L({
|
1920
1932
|
name: "RouterView",
|
1921
1933
|
// #674 we manually inherit them
|
1922
1934
|
inheritAttrs: !1,
|
@@ -1931,18 +1943,18 @@ const Wt = (e, t, n) => e ?? t ?? n, Xo = /* @__PURE__ */ U({
|
|
1931
1943
|
// https://github.com/vuejs/router/issues/1315
|
1932
1944
|
compatConfig: { MODE: 3 },
|
1933
1945
|
setup(e, { attrs: t, slots: n }) {
|
1934
|
-
O.NODE_ENV !== "production" &&
|
1935
|
-
const r = Z(
|
1936
|
-
let d =
|
1946
|
+
O.NODE_ENV !== "production" && rs();
|
1947
|
+
const r = Z(ut), o = W(() => e.route || r.value), i = Z(Ft, 0), s = W(() => {
|
1948
|
+
let d = D(i);
|
1937
1949
|
const { matched: u } = o.value;
|
1938
1950
|
let a;
|
1939
1951
|
for (; (a = u[d]) && !a.components; )
|
1940
1952
|
d++;
|
1941
1953
|
return d;
|
1942
|
-
}), c =
|
1943
|
-
|
1944
|
-
const l =
|
1945
|
-
return
|
1954
|
+
}), c = W(() => o.value.matched[s.value]);
|
1955
|
+
Te(Ft, W(() => s.value + 1)), Te(zo, c), Te(ut, o);
|
1956
|
+
const l = H();
|
1957
|
+
return K(() => [l.value, c.value, e.name], ([d, u, a], [f, h, v]) => {
|
1946
1958
|
u && (u.instances[a] = d, h && h !== u && d && d === f && (u.leaveGuards.size || (u.leaveGuards = h.leaveGuards), u.updateGuards.size || (u.updateGuards = h.updateGuards))), d && u && // if there is no instance but to and from are the same this might be
|
1947
1959
|
// the first visit
|
1948
1960
|
(!h || !ee(u, h) || !f) && (u.enterCallbacks[a] || []).forEach((p) => p(d));
|
@@ -1963,7 +1975,7 @@ const Wt = (e, t, n) => e ?? t ?? n, Xo = /* @__PURE__ */ U({
|
|
1963
1975
|
path: a.path,
|
1964
1976
|
meta: a.meta
|
1965
1977
|
};
|
1966
|
-
(
|
1978
|
+
(U(g.ref) ? g.ref.map((b) => b.i) : [g.ref.i]).forEach((b) => {
|
1967
1979
|
b.__vrv_devtools = y;
|
1968
1980
|
});
|
1969
1981
|
}
|
@@ -1981,12 +1993,12 @@ function Ut(e, t) {
|
|
1981
1993
|
const n = e(t);
|
1982
1994
|
return n.length === 1 ? n[0] : n;
|
1983
1995
|
}
|
1984
|
-
const
|
1985
|
-
function
|
1986
|
-
const e =
|
1996
|
+
const ns = ts;
|
1997
|
+
function rs() {
|
1998
|
+
const e = Jt(), t = e.parent && e.parent.type.name, n = e.parent && e.parent.subTree && e.parent.subTree.type;
|
1987
1999
|
if (t && (t === "KeepAlive" || t.includes("Transition")) && typeof n == "object" && n.name === "RouterView") {
|
1988
2000
|
const r = t === "KeepAlive" ? "keep-alive" : "transition";
|
1989
|
-
|
2001
|
+
V(`<router-view> can no longer be used directly inside <transition> or <keep-alive>.
|
1990
2002
|
Use slot props instead:
|
1991
2003
|
|
1992
2004
|
<router-view v-slot="{ Component }">
|
@@ -1996,10 +2008,10 @@ Use slot props instead:
|
|
1996
2008
|
</router-view>`);
|
1997
2009
|
}
|
1998
2010
|
}
|
1999
|
-
function
|
2011
|
+
function we(e, t) {
|
2000
2012
|
const n = I({}, e, {
|
2001
2013
|
// remove variables that can contain vue instances
|
2002
|
-
matched: e.matched.map((r) =>
|
2014
|
+
matched: e.matched.map((r) => ps(r, ["instances", "children", "aliasOf"]))
|
2003
2015
|
});
|
2004
2016
|
return {
|
2005
2017
|
_custom: {
|
@@ -2011,20 +2023,20 @@ function ve(e, t) {
|
|
2011
2023
|
}
|
2012
2024
|
};
|
2013
2025
|
}
|
2014
|
-
function
|
2026
|
+
function Ie(e) {
|
2015
2027
|
return {
|
2016
2028
|
_custom: {
|
2017
2029
|
display: e
|
2018
2030
|
}
|
2019
2031
|
};
|
2020
2032
|
}
|
2021
|
-
let
|
2022
|
-
function
|
2033
|
+
let os = 0;
|
2034
|
+
function ss(e, t, n) {
|
2023
2035
|
if (t.__hasDevtools)
|
2024
2036
|
return;
|
2025
2037
|
t.__hasDevtools = !0;
|
2026
|
-
const r =
|
2027
|
-
|
2038
|
+
const r = os++;
|
2039
|
+
Qr({
|
2028
2040
|
id: "org.vuejs.router" + (r ? "." + r : ""),
|
2029
2041
|
label: "Vue Router",
|
2030
2042
|
packageName: "vue-router",
|
@@ -2038,7 +2050,7 @@ function ns(e, t, n) {
|
|
2038
2050
|
type: "Routing",
|
2039
2051
|
key: "$route",
|
2040
2052
|
editable: !1,
|
2041
|
-
value:
|
2053
|
+
value: we(t.currentRoute.value, "Current Route")
|
2042
2054
|
});
|
2043
2055
|
}), o.on.visitComponentTree(({ treeNode: u, componentInstance: a }) => {
|
2044
2056
|
if (a.__vrv_devtools) {
|
@@ -2047,19 +2059,19 @@ function ns(e, t, n) {
|
|
2047
2059
|
label: (f.name ? `${f.name.toString()}: ` : "") + f.path,
|
2048
2060
|
textColor: 0,
|
2049
2061
|
tooltip: "This component is rendered by <router-view>",
|
2050
|
-
backgroundColor:
|
2062
|
+
backgroundColor: Pn
|
2051
2063
|
});
|
2052
2064
|
}
|
2053
|
-
|
2054
|
-
let h = f.route.path, v =
|
2055
|
-
f.error ? (h = f.error, v =
|
2065
|
+
U(a.__vrl_devtools) && (a.__devtoolsApi = o, a.__vrl_devtools.forEach((f) => {
|
2066
|
+
let h = f.route.path, v = In, p = "", g = 0;
|
2067
|
+
f.error ? (h = f.error, v = ls, g = fs) : f.isExactActive ? (v = Nn, p = "This is exactly active") : f.isActive && (v = kn, p = "This link is active"), u.tags.push({
|
2056
2068
|
label: h,
|
2057
2069
|
textColor: g,
|
2058
2070
|
tooltip: p,
|
2059
2071
|
backgroundColor: v
|
2060
2072
|
});
|
2061
2073
|
}));
|
2062
|
-
}),
|
2074
|
+
}), K(t.currentRoute, () => {
|
2063
2075
|
l(), o.notifyComponentUpdate(), o.sendInspectorTree(c), o.sendInspectorState(c);
|
2064
2076
|
});
|
2065
2077
|
const i = "router:navigations:" + r;
|
@@ -2083,9 +2095,9 @@ function ns(e, t, n) {
|
|
2083
2095
|
let s = 0;
|
2084
2096
|
t.beforeEach((u, a) => {
|
2085
2097
|
const f = {
|
2086
|
-
guard:
|
2087
|
-
from:
|
2088
|
-
to:
|
2098
|
+
guard: Ie("beforeEach"),
|
2099
|
+
from: we(a, "Current Location during this navigation"),
|
2100
|
+
to: we(u, "Target location")
|
2089
2101
|
};
|
2090
2102
|
Object.defineProperty(u.meta, "__navigationId", {
|
2091
2103
|
value: s++
|
@@ -2101,7 +2113,7 @@ function ns(e, t, n) {
|
|
2101
2113
|
});
|
2102
2114
|
}), t.afterEach((u, a, f) => {
|
2103
2115
|
const h = {
|
2104
|
-
guard:
|
2116
|
+
guard: Ie("afterEach")
|
2105
2117
|
};
|
2106
2118
|
f ? (h.failure = {
|
2107
2119
|
_custom: {
|
@@ -2111,7 +2123,7 @@ function ns(e, t, n) {
|
|
2111
2123
|
tooltip: "Navigation Failure",
|
2112
2124
|
value: f
|
2113
2125
|
}
|
2114
|
-
}, h.status =
|
2126
|
+
}, h.status = Ie("❌")) : h.status = Ie("✅"), h.from = we(a, "Current Location during this navigation"), h.to = we(u, "Target location"), o.addTimelineEvent({
|
2115
2127
|
layerId: i,
|
2116
2128
|
event: {
|
2117
2129
|
title: "End of navigation",
|
@@ -2137,10 +2149,10 @@ function ns(e, t, n) {
|
|
2137
2149
|
let a = n.getRoutes().filter((f) => !f.parent || // these routes have a parent with no component which will not appear in the view
|
2138
2150
|
// therefore we still need to include them
|
2139
2151
|
!f.parent.record.components);
|
2140
|
-
a.forEach(
|
2152
|
+
a.forEach(Cn), u.filter && (a = a.filter((f) => (
|
2141
2153
|
// save matches state based on the payload
|
2142
|
-
|
2143
|
-
))), a.forEach((f) =>
|
2154
|
+
lt(f, u.filter.toLowerCase())
|
2155
|
+
))), a.forEach((f) => An(f, t.currentRoute.value)), u.rootNodes = a.map(Tn);
|
2144
2156
|
}
|
2145
2157
|
let d;
|
2146
2158
|
o.on.getInspectorTree((u) => {
|
@@ -2149,16 +2161,16 @@ function ns(e, t, n) {
|
|
2149
2161
|
if (u.app === e && u.inspectorId === c) {
|
2150
2162
|
const f = n.getRoutes().find((h) => h.record.__vd_id === u.nodeId);
|
2151
2163
|
f && (u.state = {
|
2152
|
-
options:
|
2164
|
+
options: as(f)
|
2153
2165
|
});
|
2154
2166
|
}
|
2155
2167
|
}), o.sendInspectorTree(c), o.sendInspectorState(c);
|
2156
2168
|
});
|
2157
2169
|
}
|
2158
|
-
function
|
2170
|
+
function is(e) {
|
2159
2171
|
return e.optional ? e.repeatable ? "*" : "?" : e.repeatable ? "+" : "";
|
2160
2172
|
}
|
2161
|
-
function
|
2173
|
+
function as(e) {
|
2162
2174
|
const { record: t } = e, n = [
|
2163
2175
|
{ editable: !1, key: "path", value: t.path }
|
2164
2176
|
];
|
@@ -2173,7 +2185,7 @@ function os(e) {
|
|
2173
2185
|
_custom: {
|
2174
2186
|
type: null,
|
2175
2187
|
readOnly: !0,
|
2176
|
-
display: e.keys.map((r) => `${r.name}${
|
2188
|
+
display: e.keys.map((r) => `${r.name}${is(r)}`).join(" "),
|
2177
2189
|
tooltip: "Param keys",
|
2178
2190
|
value: e.keys
|
2179
2191
|
}
|
@@ -2204,84 +2216,84 @@ function os(e) {
|
|
2204
2216
|
}
|
2205
2217
|
}), n;
|
2206
2218
|
}
|
2207
|
-
const
|
2208
|
-
function
|
2219
|
+
const Pn = 15485081, kn = 2450411, Nn = 8702998, cs = 2282478, In = 16486972, us = 6710886, ls = 16704226, fs = 12131356;
|
2220
|
+
function Tn(e) {
|
2209
2221
|
const t = [], { record: n } = e;
|
2210
2222
|
n.name != null && t.push({
|
2211
2223
|
label: String(n.name),
|
2212
2224
|
textColor: 0,
|
2213
|
-
backgroundColor:
|
2225
|
+
backgroundColor: cs
|
2214
2226
|
}), n.aliasOf && t.push({
|
2215
2227
|
label: "alias",
|
2216
2228
|
textColor: 0,
|
2217
|
-
backgroundColor:
|
2229
|
+
backgroundColor: In
|
2218
2230
|
}), e.__vd_match && t.push({
|
2219
2231
|
label: "matches",
|
2220
2232
|
textColor: 0,
|
2221
|
-
backgroundColor:
|
2233
|
+
backgroundColor: Pn
|
2222
2234
|
}), e.__vd_exactActive && t.push({
|
2223
2235
|
label: "exact",
|
2224
2236
|
textColor: 0,
|
2225
|
-
backgroundColor:
|
2237
|
+
backgroundColor: Nn
|
2226
2238
|
}), e.__vd_active && t.push({
|
2227
2239
|
label: "active",
|
2228
2240
|
textColor: 0,
|
2229
|
-
backgroundColor:
|
2241
|
+
backgroundColor: kn
|
2230
2242
|
}), n.redirect && t.push({
|
2231
2243
|
label: typeof n.redirect == "string" ? `redirect: ${n.redirect}` : "redirects",
|
2232
2244
|
textColor: 16777215,
|
2233
|
-
backgroundColor:
|
2245
|
+
backgroundColor: us
|
2234
2246
|
});
|
2235
2247
|
let r = n.__vd_id;
|
2236
|
-
return r == null && (r = String(
|
2248
|
+
return r == null && (r = String(ds++), n.__vd_id = r), {
|
2237
2249
|
id: r,
|
2238
2250
|
label: n.path,
|
2239
2251
|
tags: t,
|
2240
|
-
children: e.children.map(
|
2252
|
+
children: e.children.map(Tn)
|
2241
2253
|
};
|
2242
2254
|
}
|
2243
|
-
let
|
2244
|
-
const
|
2245
|
-
function
|
2255
|
+
let ds = 0;
|
2256
|
+
const hs = /^\/(.*)\/([a-z]*)$/;
|
2257
|
+
function An(e, t) {
|
2246
2258
|
const n = t.matched.length && ee(t.matched[t.matched.length - 1], e.record);
|
2247
|
-
e.__vd_exactActive = e.__vd_active = n, n || (e.__vd_active = t.matched.some((r) => ee(r, e.record))), e.children.forEach((r) =>
|
2259
|
+
e.__vd_exactActive = e.__vd_active = n, n || (e.__vd_active = t.matched.some((r) => ee(r, e.record))), e.children.forEach((r) => An(r, t));
|
2248
2260
|
}
|
2249
|
-
function
|
2250
|
-
e.__vd_match = !1, e.children.forEach(
|
2261
|
+
function Cn(e) {
|
2262
|
+
e.__vd_match = !1, e.children.forEach(Cn);
|
2251
2263
|
}
|
2252
|
-
function
|
2253
|
-
const n = String(e.re).match(
|
2264
|
+
function lt(e, t) {
|
2265
|
+
const n = String(e.re).match(hs);
|
2254
2266
|
if (e.__vd_match = !1, !n || n.length < 3)
|
2255
2267
|
return !1;
|
2256
2268
|
if (new RegExp(n[1].replace(/\$$/, ""), n[2]).test(t))
|
2257
|
-
return e.children.forEach((s) =>
|
2258
|
-
const o = e.record.path.toLowerCase(), i =
|
2259
|
-
return !t.startsWith("/") && (i.includes(t) || o.includes(t)) || i.startsWith(t) || o.startsWith(t) || e.record.name && String(e.record.name).includes(t) ? !0 : e.children.some((s) =>
|
2269
|
+
return e.children.forEach((s) => lt(s, t)), e.record.path !== "/" || t === "/" ? (e.__vd_match = e.re.test(t), !0) : !1;
|
2270
|
+
const o = e.record.path.toLowerCase(), i = de(o);
|
2271
|
+
return !t.startsWith("/") && (i.includes(t) || o.includes(t)) || i.startsWith(t) || o.startsWith(t) || e.record.name && String(e.record.name).includes(t) ? !0 : e.children.some((s) => lt(s, t));
|
2260
2272
|
}
|
2261
|
-
function
|
2273
|
+
function ps(e, t) {
|
2262
2274
|
const n = {};
|
2263
2275
|
for (const r in e)
|
2264
2276
|
t.includes(r) || (n[r] = e[r]);
|
2265
2277
|
return n;
|
2266
2278
|
}
|
2267
|
-
function
|
2268
|
-
const t =
|
2279
|
+
function ms(e) {
|
2280
|
+
const t = Do(e.routes, e), n = e.parseQuery || Ho, r = e.stringifyQuery || Mt, o = e.history;
|
2269
2281
|
if (O.NODE_ENV !== "production" && !o)
|
2270
2282
|
throw new Error('Provide the "history" option when calling "createRouter()": https://router.vuejs.org/api/interfaces/RouterOptions.html#history');
|
2271
|
-
const i =
|
2283
|
+
const i = ye(), s = ye(), c = ye(), l = X(J);
|
2272
2284
|
let d = J;
|
2273
2285
|
Q && e.scrollBehavior && "scrollRestoration" in history && (history.scrollRestoration = "manual");
|
2274
|
-
const u =
|
2286
|
+
const u = Qe.bind(null, (m) => "" + m), a = Qe.bind(null, uo), f = (
|
2275
2287
|
// @ts-expect-error: intentionally avoid the type check
|
2276
|
-
|
2288
|
+
Qe.bind(null, de)
|
2277
2289
|
);
|
2278
2290
|
function h(m, E) {
|
2279
2291
|
let w, S;
|
2280
|
-
return
|
2292
|
+
return On(m) ? (w = t.getRecordMatcher(m), O.NODE_ENV !== "production" && !w && V(`Parent route "${String(m)}" not found when adding child route`, E), S = E) : S = m, t.addRoute(S, w);
|
2281
2293
|
}
|
2282
2294
|
function v(m) {
|
2283
2295
|
const E = t.getRecordMatcher(m);
|
2284
|
-
E ? t.removeRoute(E) : O.NODE_ENV !== "production" &&
|
2296
|
+
E ? t.removeRoute(E) : O.NODE_ENV !== "production" && V(`Cannot remove non-existent route "${String(m)}"`);
|
2285
2297
|
}
|
2286
2298
|
function p() {
|
2287
2299
|
return t.getRoutes().map((m) => m.record);
|
@@ -2291,39 +2303,39 @@ function ds(e) {
|
|
2291
2303
|
}
|
2292
2304
|
function y(m, E) {
|
2293
2305
|
if (E = I({}, E || l.value), typeof m == "string") {
|
2294
|
-
const P =
|
2295
|
-
return O.NODE_ENV !== "production" && (
|
2296
|
-
params: f(
|
2297
|
-
hash:
|
2306
|
+
const P = Je(n, m, E.path), C = t.resolve({ path: P.path }, E), ne = o.createHref(P.fullPath);
|
2307
|
+
return O.NODE_ENV !== "production" && (ne.startsWith("//") ? V(`Location "${m}" resolved to "${ne}". A resolved location cannot start with multiple slashes.`) : C.matched.length || V(`No match found for location with path "${m}"`)), I(P, C, {
|
2308
|
+
params: f(C.params),
|
2309
|
+
hash: de(P.hash),
|
2298
2310
|
redirectedFrom: void 0,
|
2299
|
-
href:
|
2311
|
+
href: ne
|
2300
2312
|
});
|
2301
2313
|
}
|
2302
|
-
if (O.NODE_ENV !== "production" && !
|
2303
|
-
return
|
2314
|
+
if (O.NODE_ENV !== "production" && !xe(m))
|
2315
|
+
return V(`router.resolve() was passed an invalid location. This will fail in production.
|
2304
2316
|
- Location:`, m), y({});
|
2305
2317
|
let w;
|
2306
2318
|
if (m.path != null)
|
2307
2319
|
O.NODE_ENV !== "production" && "params" in m && !("name" in m) && // @ts-expect-error: the type is never
|
2308
|
-
Object.keys(m.params).length &&
|
2309
|
-
path:
|
2320
|
+
Object.keys(m.params).length && V(`Path "${m.path}" was passed with params but they will be ignored. Use a named route alongside params instead.`), w = I({}, m, {
|
2321
|
+
path: Je(n, m.path, E.path).path
|
2310
2322
|
});
|
2311
2323
|
else {
|
2312
2324
|
const P = I({}, m.params);
|
2313
|
-
for (const
|
2314
|
-
P[
|
2325
|
+
for (const C in P)
|
2326
|
+
P[C] == null && delete P[C];
|
2315
2327
|
w = I({}, m, {
|
2316
2328
|
params: a(P)
|
2317
2329
|
}), E.params = a(E.params);
|
2318
2330
|
}
|
2319
2331
|
const S = t.resolve(w, E), T = m.hash || "";
|
2320
|
-
O.NODE_ENV !== "production" && T && !T.startsWith("#") &&
|
2321
|
-
const
|
2322
|
-
hash:
|
2332
|
+
O.NODE_ENV !== "production" && T && !T.startsWith("#") && V(`A \`hash\` should always start with the character "#". Replace "${T}" with "#${T}".`), S.params = u(f(S.params));
|
2333
|
+
const j = ho(r, I({}, m, {
|
2334
|
+
hash: io(T),
|
2323
2335
|
path: S.path
|
2324
|
-
})), k = o.createHref(
|
2325
|
-
return O.NODE_ENV !== "production" && (k.startsWith("//") ?
|
2326
|
-
fullPath:
|
2336
|
+
})), k = o.createHref(j);
|
2337
|
+
return O.NODE_ENV !== "production" && (k.startsWith("//") ? V(`Location "${m}" resolved to "${k}". A resolved location cannot start with multiple slashes.`) : S.matched.length || V(`No match found for location with path "${m.path != null ? m.path : m}"`)), I({
|
2338
|
+
fullPath: j,
|
2327
2339
|
// keep the hash encoded so fullPath is effectively path + encodedQuery +
|
2328
2340
|
// hash
|
2329
2341
|
hash: T,
|
@@ -2333,7 +2345,7 @@ function ds(e) {
|
|
2333
2345
|
// numbers at `$route.query`, but at the point, the user will have to
|
2334
2346
|
// use their own type anyway.
|
2335
2347
|
// https://github.com/vuejs/router/issues/328#issuecomment-649481567
|
2336
|
-
r === Mt ?
|
2348
|
+
r === Mt ? Ko(m.query) : m.query || {}
|
2337
2349
|
)
|
2338
2350
|
}, S, {
|
2339
2351
|
redirectedFrom: void 0,
|
@@ -2341,22 +2353,22 @@ function ds(e) {
|
|
2341
2353
|
});
|
2342
2354
|
}
|
2343
2355
|
function _(m) {
|
2344
|
-
return typeof m == "string" ?
|
2356
|
+
return typeof m == "string" ? Je(n, m, l.value.path) : I({}, m);
|
2345
2357
|
}
|
2346
2358
|
function b(m, E) {
|
2347
2359
|
if (d !== m)
|
2348
|
-
return
|
2360
|
+
return pe(8, {
|
2349
2361
|
from: E,
|
2350
2362
|
to: m
|
2351
2363
|
});
|
2352
2364
|
}
|
2353
|
-
function
|
2354
|
-
return
|
2365
|
+
function R(m) {
|
2366
|
+
return x(m);
|
2355
2367
|
}
|
2356
|
-
function
|
2357
|
-
return
|
2368
|
+
function $(m) {
|
2369
|
+
return R(I(_(m), { replace: !0 }));
|
2358
2370
|
}
|
2359
|
-
function
|
2371
|
+
function G(m) {
|
2360
2372
|
const E = m.matched[m.matched.length - 1];
|
2361
2373
|
if (E && E.redirect) {
|
2362
2374
|
const { redirect: w } = E;
|
@@ -2365,7 +2377,7 @@ function ds(e) {
|
|
2365
2377
|
// force empty params
|
2366
2378
|
{ path: S }
|
2367
2379
|
), S.params = {}), O.NODE_ENV !== "production" && S.path == null && !("name" in S))
|
2368
|
-
throw
|
2380
|
+
throw V(`Invalid redirect found:
|
2369
2381
|
${JSON.stringify(S, null, 2)}
|
2370
2382
|
when navigating to "${m.fullPath}". A redirect must contain a name or path. This will break in production.`), new Error("Invalid redirect");
|
2371
2383
|
return I({
|
@@ -2376,22 +2388,22 @@ ${JSON.stringify(S, null, 2)}
|
|
2376
2388
|
}, S);
|
2377
2389
|
}
|
2378
2390
|
}
|
2379
|
-
function
|
2380
|
-
const w = d = y(m), S = l.value, T = m.state,
|
2391
|
+
function x(m, E) {
|
2392
|
+
const w = d = y(m), S = l.value, T = m.state, j = m.force, k = m.replace === !0, P = G(w);
|
2381
2393
|
if (P)
|
2382
|
-
return
|
2394
|
+
return x(
|
2383
2395
|
I(_(P), {
|
2384
2396
|
state: typeof P == "object" ? I({}, T, P.state) : T,
|
2385
|
-
force:
|
2397
|
+
force: j,
|
2386
2398
|
replace: k
|
2387
2399
|
}),
|
2388
2400
|
// keep original redirectedFrom if it exists
|
2389
2401
|
E || w
|
2390
2402
|
);
|
2391
|
-
const
|
2392
|
-
|
2393
|
-
let
|
2394
|
-
return !
|
2403
|
+
const C = w;
|
2404
|
+
C.redirectedFrom = E;
|
2405
|
+
let ne;
|
2406
|
+
return !j && Pt(r, S, w) && (ne = pe(16, { to: C, from: S }), _t(
|
2395
2407
|
S,
|
2396
2408
|
S,
|
2397
2409
|
// this is a push, the only way for it to be triggered from a
|
@@ -2400,91 +2412,91 @@ ${JSON.stringify(S, null, 2)}
|
|
2400
2412
|
// This cannot be the first navigation because the initial location
|
2401
2413
|
// cannot be manually navigated to
|
2402
2414
|
!1
|
2403
|
-
)), (
|
2415
|
+
)), (ne ? Promise.resolve(ne) : ce(C, S)).catch((M) => z(M) ? (
|
2404
2416
|
// navigation redirects still mark the router as ready
|
2405
2417
|
z(
|
2406
|
-
|
2418
|
+
M,
|
2407
2419
|
2
|
2408
2420
|
/* ErrorTypes.NAVIGATION_GUARD_REDIRECT */
|
2409
|
-
) ?
|
2421
|
+
) ? M : He(M)
|
2410
2422
|
) : (
|
2411
2423
|
// reject any unknown error
|
2412
|
-
|
2413
|
-
)).then((
|
2414
|
-
if (
|
2424
|
+
qe(M, C, S)
|
2425
|
+
)).then((M) => {
|
2426
|
+
if (M) {
|
2415
2427
|
if (z(
|
2416
|
-
|
2428
|
+
M,
|
2417
2429
|
2
|
2418
2430
|
/* ErrorTypes.NAVIGATION_GUARD_REDIRECT */
|
2419
2431
|
))
|
2420
2432
|
return O.NODE_ENV !== "production" && // we are redirecting to the same location we were already at
|
2421
|
-
Pt(r, y(
|
2433
|
+
Pt(r, y(M.to), C) && // and we have done it a couple of times
|
2422
2434
|
E && // @ts-expect-error: added only in dev
|
2423
2435
|
(E._count = E._count ? (
|
2424
2436
|
// @ts-expect-error
|
2425
2437
|
E._count + 1
|
2426
|
-
) : 1) > 30 ? (
|
2427
|
-
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"))) :
|
2438
|
+
) : 1) > 30 ? (V(`Detected a possibly infinite redirection in a navigation guard when going from "${S.fullPath}" to "${C.fullPath}". Aborting to avoid a Stack Overflow.
|
2439
|
+
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"))) : x(
|
2428
2440
|
// keep options
|
2429
2441
|
I({
|
2430
2442
|
// preserve an existing replacement but allow the redirect to override it
|
2431
2443
|
replace: k
|
2432
|
-
}, _(
|
2433
|
-
state: typeof
|
2434
|
-
force:
|
2444
|
+
}, _(M.to), {
|
2445
|
+
state: typeof M.to == "object" ? I({}, T, M.to.state) : T,
|
2446
|
+
force: j
|
2435
2447
|
}),
|
2436
2448
|
// preserve the original redirectedFrom if any
|
2437
|
-
E ||
|
2449
|
+
E || C
|
2438
2450
|
);
|
2439
2451
|
} else
|
2440
|
-
|
2441
|
-
return yt(
|
2452
|
+
M = wt(C, S, !0, k, T);
|
2453
|
+
return yt(C, S, M), M;
|
2442
2454
|
});
|
2443
2455
|
}
|
2444
|
-
function
|
2456
|
+
function ae(m, E) {
|
2445
2457
|
const w = b(m, E);
|
2446
2458
|
return w ? Promise.reject(w) : Promise.resolve();
|
2447
2459
|
}
|
2448
|
-
function
|
2449
|
-
const E =
|
2460
|
+
function te(m) {
|
2461
|
+
const E = Ne.values().next().value;
|
2450
2462
|
return E && typeof E.runWithContext == "function" ? E.runWithContext(m) : m();
|
2451
2463
|
}
|
2452
|
-
function
|
2464
|
+
function ce(m, E) {
|
2453
2465
|
let w;
|
2454
|
-
const [S, T,
|
2455
|
-
w =
|
2466
|
+
const [S, T, j] = gs(m, E);
|
2467
|
+
w = Xe(S.reverse(), "beforeRouteLeave", m, E);
|
2456
2468
|
for (const P of S)
|
2457
|
-
P.leaveGuards.forEach((
|
2458
|
-
w.push(Y(
|
2469
|
+
P.leaveGuards.forEach((C) => {
|
2470
|
+
w.push(Y(C, m, E));
|
2459
2471
|
});
|
2460
|
-
const k =
|
2461
|
-
return w.push(k),
|
2472
|
+
const k = ae.bind(null, m, E);
|
2473
|
+
return w.push(k), ue(w).then(() => {
|
2462
2474
|
w = [];
|
2463
2475
|
for (const P of i.list())
|
2464
2476
|
w.push(Y(P, m, E));
|
2465
|
-
return w.push(k),
|
2477
|
+
return w.push(k), ue(w);
|
2466
2478
|
}).then(() => {
|
2467
|
-
w =
|
2479
|
+
w = Xe(T, "beforeRouteUpdate", m, E);
|
2468
2480
|
for (const P of T)
|
2469
|
-
P.updateGuards.forEach((
|
2470
|
-
w.push(Y(
|
2481
|
+
P.updateGuards.forEach((C) => {
|
2482
|
+
w.push(Y(C, m, E));
|
2471
2483
|
});
|
2472
|
-
return w.push(k),
|
2484
|
+
return w.push(k), ue(w);
|
2473
2485
|
}).then(() => {
|
2474
2486
|
w = [];
|
2475
|
-
for (const P of
|
2487
|
+
for (const P of j)
|
2476
2488
|
if (P.beforeEnter)
|
2477
|
-
if (
|
2478
|
-
for (const
|
2479
|
-
w.push(Y(
|
2489
|
+
if (U(P.beforeEnter))
|
2490
|
+
for (const C of P.beforeEnter)
|
2491
|
+
w.push(Y(C, m, E));
|
2480
2492
|
else
|
2481
2493
|
w.push(Y(P.beforeEnter, m, E));
|
2482
|
-
return w.push(k),
|
2483
|
-
}).then(() => (m.matched.forEach((P) => P.enterCallbacks = {}), w =
|
2494
|
+
return w.push(k), ue(w);
|
2495
|
+
}).then(() => (m.matched.forEach((P) => P.enterCallbacks = {}), w = Xe(j, "beforeRouteEnter", m, E, te), w.push(k), ue(w))).then(() => {
|
2484
2496
|
w = [];
|
2485
2497
|
for (const P of s.list())
|
2486
2498
|
w.push(Y(P, m, E));
|
2487
|
-
return w.push(k),
|
2499
|
+
return w.push(k), ue(w);
|
2488
2500
|
}).catch((P) => z(
|
2489
2501
|
P,
|
2490
2502
|
8
|
@@ -2492,30 +2504,30 @@ ${JSON.stringify(S, null, 2)}
|
|
2492
2504
|
) ? P : Promise.reject(P));
|
2493
2505
|
}
|
2494
2506
|
function yt(m, E, w) {
|
2495
|
-
c.list().forEach((S) =>
|
2507
|
+
c.list().forEach((S) => te(() => S(m, E, w)));
|
2496
2508
|
}
|
2497
2509
|
function wt(m, E, w, S, T) {
|
2498
|
-
const
|
2499
|
-
if (
|
2500
|
-
return
|
2510
|
+
const j = b(m, E);
|
2511
|
+
if (j)
|
2512
|
+
return j;
|
2501
2513
|
const k = E === J, P = Q ? history.state : {};
|
2502
2514
|
w && (S || k ? o.replace(m.fullPath, I({
|
2503
2515
|
scroll: k && P && P.scroll
|
2504
|
-
}, T)) : o.push(m.fullPath, T)), l.value = m, _t(m, E, w, k),
|
2516
|
+
}, T)) : o.push(m.fullPath, T)), l.value = m, _t(m, E, w, k), He();
|
2505
2517
|
}
|
2506
|
-
let
|
2507
|
-
function
|
2508
|
-
|
2518
|
+
let ge;
|
2519
|
+
function Bn() {
|
2520
|
+
ge || (ge = o.listen((m, E, w) => {
|
2509
2521
|
if (!St.listening)
|
2510
2522
|
return;
|
2511
|
-
const S = y(m), T =
|
2523
|
+
const S = y(m), T = G(S);
|
2512
2524
|
if (T) {
|
2513
|
-
|
2525
|
+
x(I(T, { replace: !0, force: !0 }), S).catch(_e);
|
2514
2526
|
return;
|
2515
2527
|
}
|
2516
2528
|
d = S;
|
2517
|
-
const
|
2518
|
-
Q &&
|
2529
|
+
const j = l.value;
|
2530
|
+
Q && wo(Nt(j.fullPath, w.delta), We()), ce(S, j).catch((k) => z(
|
2519
2531
|
k,
|
2520
2532
|
12
|
2521
2533
|
/* ErrorTypes.NAVIGATION_CANCELLED */
|
@@ -2523,7 +2535,7 @@ ${JSON.stringify(S, null, 2)}
|
|
2523
2535
|
k,
|
2524
2536
|
2
|
2525
2537
|
/* ErrorTypes.NAVIGATION_GUARD_REDIRECT */
|
2526
|
-
) ? (
|
2538
|
+
) ? (x(
|
2527
2539
|
I(_(k.to), {
|
2528
2540
|
force: !0
|
2529
2541
|
}),
|
@@ -2534,12 +2546,12 @@ ${JSON.stringify(S, null, 2)}
|
|
2534
2546
|
P,
|
2535
2547
|
20
|
2536
2548
|
/* ErrorTypes.NAVIGATION_DUPLICATED */
|
2537
|
-
) && !w.delta && w.type ===
|
2538
|
-
}).catch(
|
2549
|
+
) && !w.delta && w.type === he.pop && o.go(-1, !1);
|
2550
|
+
}).catch(_e), Promise.reject()) : (w.delta && o.go(-w.delta, !1), qe(k, S, j))).then((k) => {
|
2539
2551
|
k = k || wt(
|
2540
2552
|
// after navigation, all matched components are resolved
|
2541
2553
|
S,
|
2542
|
-
|
2554
|
+
j,
|
2543
2555
|
!1
|
2544
2556
|
), k && (w.delta && // a new navigation has been triggered, so we do not want to revert, that will change the current history
|
2545
2557
|
// entry while a different route is displayed
|
@@ -2547,38 +2559,38 @@ ${JSON.stringify(S, null, 2)}
|
|
2547
2559
|
k,
|
2548
2560
|
8
|
2549
2561
|
/* ErrorTypes.NAVIGATION_CANCELLED */
|
2550
|
-
) ? o.go(-w.delta, !1) : w.type ===
|
2562
|
+
) ? o.go(-w.delta, !1) : w.type === he.pop && z(
|
2551
2563
|
k,
|
2552
2564
|
20
|
2553
2565
|
/* ErrorTypes.NAVIGATION_DUPLICATED */
|
2554
|
-
) && o.go(-1, !1)), yt(S,
|
2555
|
-
}).catch(
|
2566
|
+
) && o.go(-1, !1)), yt(S, j, k);
|
2567
|
+
}).catch(_e);
|
2556
2568
|
}));
|
2557
2569
|
}
|
2558
|
-
let
|
2559
|
-
function
|
2560
|
-
|
2570
|
+
let Ge = ye(), Et = ye(), ke;
|
2571
|
+
function qe(m, E, w) {
|
2572
|
+
He(m);
|
2561
2573
|
const S = Et.list();
|
2562
|
-
return S.length ? S.forEach((T) => T(m, E, w)) : (O.NODE_ENV !== "production" &&
|
2574
|
+
return S.length ? S.forEach((T) => T(m, E, w)) : (O.NODE_ENV !== "production" && V("uncaught error during route navigation:"), console.error(m)), Promise.reject(m);
|
2563
2575
|
}
|
2564
|
-
function
|
2565
|
-
return
|
2566
|
-
|
2576
|
+
function Ln() {
|
2577
|
+
return ke && l.value !== J ? Promise.resolve() : new Promise((m, E) => {
|
2578
|
+
Ge.add([m, E]);
|
2567
2579
|
});
|
2568
2580
|
}
|
2569
|
-
function
|
2570
|
-
return
|
2581
|
+
function He(m) {
|
2582
|
+
return ke || (ke = !m, Bn(), Ge.list().forEach(([E, w]) => m ? w(m) : E()), Ge.reset()), m;
|
2571
2583
|
}
|
2572
2584
|
function _t(m, E, w, S) {
|
2573
2585
|
const { scrollBehavior: T } = e;
|
2574
2586
|
if (!Q || !T)
|
2575
2587
|
return Promise.resolve();
|
2576
|
-
const
|
2577
|
-
return
|
2588
|
+
const j = !w && Eo(Nt(m.fullPath, 0)) || (S || !w) && history.state && history.state.scroll || null;
|
2589
|
+
return Ae().then(() => T(m, E, j)).then((k) => k && yo(k)).catch((k) => qe(k, m, E));
|
2578
2590
|
}
|
2579
|
-
const
|
2580
|
-
let
|
2581
|
-
const
|
2591
|
+
const Ke = (m) => o.go(m);
|
2592
|
+
let ze;
|
2593
|
+
const Ne = /* @__PURE__ */ new Set(), St = {
|
2582
2594
|
currentRoute: l,
|
2583
2595
|
listening: !0,
|
2584
2596
|
addRoute: h,
|
@@ -2588,25 +2600,25 @@ ${JSON.stringify(S, null, 2)}
|
|
2588
2600
|
getRoutes: p,
|
2589
2601
|
resolve: y,
|
2590
2602
|
options: e,
|
2591
|
-
push:
|
2592
|
-
replace:
|
2593
|
-
go:
|
2594
|
-
back: () =>
|
2595
|
-
forward: () =>
|
2603
|
+
push: R,
|
2604
|
+
replace: $,
|
2605
|
+
go: Ke,
|
2606
|
+
back: () => Ke(-1),
|
2607
|
+
forward: () => Ke(1),
|
2596
2608
|
beforeEach: i.add,
|
2597
2609
|
beforeResolve: s.add,
|
2598
2610
|
afterEach: c.add,
|
2599
2611
|
onError: Et.add,
|
2600
|
-
isReady:
|
2612
|
+
isReady: Ln,
|
2601
2613
|
install(m) {
|
2602
2614
|
const E = this;
|
2603
|
-
m.component("RouterLink",
|
2615
|
+
m.component("RouterLink", Xo), m.component("RouterView", ns), m.config.globalProperties.$router = E, Object.defineProperty(m.config.globalProperties, "$route", {
|
2604
2616
|
enumerable: !0,
|
2605
|
-
get: () =>
|
2617
|
+
get: () => D(l)
|
2606
2618
|
}), Q && // used for the initial navigation client side to avoid pushing
|
2607
2619
|
// multiple times when the router is used in multiple apps
|
2608
|
-
!
|
2609
|
-
O.NODE_ENV !== "production" &&
|
2620
|
+
!ze && l.value === J && (ze = !0, R(o.location).catch((T) => {
|
2621
|
+
O.NODE_ENV !== "production" && V("Unexpected error when starting the router:", T);
|
2610
2622
|
}));
|
2611
2623
|
const w = {};
|
2612
2624
|
for (const T in J)
|
@@ -2614,19 +2626,19 @@ ${JSON.stringify(S, null, 2)}
|
|
2614
2626
|
get: () => l.value[T],
|
2615
2627
|
enumerable: !0
|
2616
2628
|
});
|
2617
|
-
m.provide(
|
2629
|
+
m.provide(Ue, E), m.provide(vt, Hn(w)), m.provide(ut, l);
|
2618
2630
|
const S = m.unmount;
|
2619
|
-
|
2620
|
-
|
2621
|
-
}, O.NODE_ENV !== "production" && Q &&
|
2631
|
+
Ne.add(m), m.unmount = function() {
|
2632
|
+
Ne.delete(m), Ne.size < 1 && (d = J, ge && ge(), ge = null, l.value = J, ze = !1, ke = !1), S();
|
2633
|
+
}, O.NODE_ENV !== "production" && Q && ss(m, E, t);
|
2622
2634
|
}
|
2623
2635
|
};
|
2624
|
-
function
|
2625
|
-
return m.reduce((E, w) => E.then(() =>
|
2636
|
+
function ue(m) {
|
2637
|
+
return m.reduce((E, w) => E.then(() => te(w)), Promise.resolve());
|
2626
2638
|
}
|
2627
2639
|
return St;
|
2628
2640
|
}
|
2629
|
-
function
|
2641
|
+
function gs(e, t) {
|
2630
2642
|
const n = [], r = [], o = [], i = Math.max(t.matched.length, e.matched.length);
|
2631
2643
|
for (let s = 0; s < i; s++) {
|
2632
2644
|
const c = t.matched[s];
|
@@ -2636,26 +2648,26 @@ function hs(e, t) {
|
|
2636
2648
|
}
|
2637
2649
|
return [n, r, o];
|
2638
2650
|
}
|
2639
|
-
function
|
2640
|
-
return Z(
|
2651
|
+
function vs() {
|
2652
|
+
return Z(Ue);
|
2641
2653
|
}
|
2642
|
-
function
|
2643
|
-
return Z(
|
2654
|
+
function ys(e) {
|
2655
|
+
return Z(vt);
|
2644
2656
|
}
|
2645
2657
|
const $n = /* @__PURE__ */ new Map();
|
2646
|
-
function
|
2658
|
+
function ws(e) {
|
2647
2659
|
var t;
|
2648
2660
|
(t = e.jsFn) == null || t.forEach((n) => {
|
2649
2661
|
const { immediately: r = !1 } = n;
|
2650
|
-
let o =
|
2662
|
+
let o = B(n.code);
|
2651
2663
|
r && (o = o()), $n.set(n.id, o);
|
2652
2664
|
});
|
2653
2665
|
}
|
2654
|
-
function
|
2666
|
+
function Es(e) {
|
2655
2667
|
return $n.get(e);
|
2656
2668
|
}
|
2657
|
-
function
|
2658
|
-
let t =
|
2669
|
+
function se(e) {
|
2670
|
+
let t = on(), n = Tr(), r = Dr(e), o = an(), i = vs(), s = ys();
|
2659
2671
|
function c(p) {
|
2660
2672
|
p.scopeSnapshot && (t = p.scopeSnapshot), p.slotSnapshot && (n = p.slotSnapshot), p.vforSnapshot && (r = p.vforSnapshot), p.elementRefSnapshot && (o = p.elementRefSnapshot), p.routerSnapshot && (i = p.routerSnapshot);
|
2661
2673
|
}
|
@@ -2663,29 +2675,31 @@ function re(e) {
|
|
2663
2675
|
if (N.isVar(p))
|
2664
2676
|
return q(d(p));
|
2665
2677
|
if (N.isVForItem(p))
|
2666
|
-
return
|
2678
|
+
return Fr(p.fid) ? r.getVForIndex(p.fid) : q(d(p));
|
2667
2679
|
if (N.isVForIndex(p))
|
2668
2680
|
return r.getVForIndex(p.fid);
|
2669
2681
|
if (N.isJsFn(p)) {
|
2670
2682
|
const { id: g } = p;
|
2671
|
-
return
|
2683
|
+
return Es(g);
|
2684
|
+
}
|
2685
|
+
if (N.isSlotProp(p)) {
|
2686
|
+
const g = n.getPropsValue(p);
|
2687
|
+
return p.path ? fr(g, p.path) : g;
|
2672
2688
|
}
|
2673
|
-
if (N.isSlotProp(p))
|
2674
|
-
return n.getPropsValue(p);
|
2675
2689
|
if (N.isRouterParams(p))
|
2676
2690
|
return q(d(p));
|
2677
2691
|
throw new Error(`Invalid binding: ${p}`);
|
2678
2692
|
}
|
2679
2693
|
function d(p) {
|
2680
2694
|
if (N.isVar(p)) {
|
2681
|
-
const g = t.getVueRef(p) ||
|
2695
|
+
const g = t.getVueRef(p) || br(p);
|
2682
2696
|
return Ot(g, {
|
2683
2697
|
paths: p.path,
|
2684
2698
|
getBindableValueFn: l
|
2685
2699
|
});
|
2686
2700
|
}
|
2687
2701
|
if (N.isVForItem(p))
|
2688
|
-
return
|
2702
|
+
return Mr({
|
2689
2703
|
binding: p,
|
2690
2704
|
snapshot: v
|
2691
2705
|
});
|
@@ -2744,27 +2758,34 @@ function re(e) {
|
|
2744
2758
|
if (Rt(g) || Rt(p.values))
|
2745
2759
|
return;
|
2746
2760
|
g = g;
|
2747
|
-
const y = p.values, _ = p.
|
2748
|
-
g.forEach((b,
|
2749
|
-
|
2761
|
+
const y = p.values, _ = p.types ?? new Array(g.length).fill(0);
|
2762
|
+
g.forEach((b, R) => {
|
2763
|
+
const $ = _[R];
|
2764
|
+
if ($ === 1)
|
2750
2765
|
return;
|
2751
2766
|
if (N.isVar(b)) {
|
2752
|
-
const
|
2753
|
-
|
2767
|
+
const x = d(b);
|
2768
|
+
if ($ === 2) {
|
2769
|
+
y[R].forEach(([te, ce]) => {
|
2770
|
+
lr(x.value, te, ce);
|
2771
|
+
});
|
2772
|
+
return;
|
2773
|
+
}
|
2774
|
+
x.value = y[R];
|
2754
2775
|
return;
|
2755
2776
|
}
|
2756
2777
|
if (N.isRouterAction(b)) {
|
2757
|
-
const
|
2758
|
-
|
2778
|
+
const x = y[R], ae = i[x.fn];
|
2779
|
+
ae(...x.args);
|
2759
2780
|
return;
|
2760
2781
|
}
|
2761
2782
|
if (N.isElementRef(b)) {
|
2762
|
-
const
|
2763
|
-
|
2783
|
+
const x = o.getRef(b).value, ae = y[R], { method: te, args: ce = [] } = ae;
|
2784
|
+
x[te](...ce);
|
2764
2785
|
return;
|
2765
2786
|
}
|
2766
|
-
const
|
2767
|
-
|
2787
|
+
const G = d(b);
|
2788
|
+
G.value = y[R];
|
2768
2789
|
});
|
2769
2790
|
}
|
2770
2791
|
const v = {
|
@@ -2779,9 +2800,9 @@ function re(e) {
|
|
2779
2800
|
};
|
2780
2801
|
return v;
|
2781
2802
|
}
|
2782
|
-
class
|
2803
|
+
class _s {
|
2783
2804
|
async eventSend(t, n) {
|
2784
|
-
const { fType: r, hKey: o, key: i } = t, s =
|
2805
|
+
const { fType: r, hKey: o, key: i } = t, s = Ze().webServerInfo, c = i !== void 0 ? { key: i } : {}, l = r === "sync" ? s.event_url : s.event_async_url;
|
2785
2806
|
let d = {};
|
2786
2807
|
const u = await fetch(l, {
|
2787
2808
|
method: "POST",
|
@@ -2792,7 +2813,7 @@ class ys {
|
|
2792
2813
|
bind: n,
|
2793
2814
|
hKey: o,
|
2794
2815
|
...c,
|
2795
|
-
page:
|
2816
|
+
page: $e(),
|
2796
2817
|
...d
|
2797
2818
|
})
|
2798
2819
|
});
|
@@ -2801,10 +2822,10 @@ class ys {
|
|
2801
2822
|
return await u.json();
|
2802
2823
|
}
|
2803
2824
|
async watchSend(t) {
|
2804
|
-
const { outputs: n, fType: r, key: o } = t.watchConfig, i =
|
2825
|
+
const { outputs: n, fType: r, key: o } = t.watchConfig, i = Ze().webServerInfo, s = r === "sync" ? i.watch_url : i.watch_async_url, c = t.getServerInputs(), l = {
|
2805
2826
|
key: o,
|
2806
2827
|
input: c,
|
2807
|
-
page:
|
2828
|
+
page: $e()
|
2808
2829
|
};
|
2809
2830
|
return await (await fetch(s, {
|
2810
2831
|
method: "POST",
|
@@ -2815,7 +2836,7 @@ class ys {
|
|
2815
2836
|
})).json();
|
2816
2837
|
}
|
2817
2838
|
}
|
2818
|
-
class
|
2839
|
+
class Ss {
|
2819
2840
|
async eventSend(t, n) {
|
2820
2841
|
const { fType: r, hKey: o, key: i } = t, s = i !== void 0 ? { key: i } : {};
|
2821
2842
|
let c = {};
|
@@ -2824,7 +2845,7 @@ class ws {
|
|
2824
2845
|
fType: r,
|
2825
2846
|
hKey: o,
|
2826
2847
|
...s,
|
2827
|
-
page:
|
2848
|
+
page: $e(),
|
2828
2849
|
...c
|
2829
2850
|
};
|
2830
2851
|
return await window.pywebview.api.event_call(l);
|
@@ -2834,26 +2855,26 @@ class ws {
|
|
2834
2855
|
key: o,
|
2835
2856
|
input: i,
|
2836
2857
|
fType: r,
|
2837
|
-
page:
|
2858
|
+
page: $e()
|
2838
2859
|
};
|
2839
2860
|
return await window.pywebview.api.watch_call(s);
|
2840
2861
|
}
|
2841
2862
|
}
|
2842
|
-
let
|
2843
|
-
function
|
2863
|
+
let ft;
|
2864
|
+
function bs(e) {
|
2844
2865
|
switch (e) {
|
2845
2866
|
case "web":
|
2846
|
-
|
2867
|
+
ft = new _s();
|
2847
2868
|
break;
|
2848
2869
|
case "webview":
|
2849
|
-
|
2870
|
+
ft = new Ss();
|
2850
2871
|
break;
|
2851
2872
|
}
|
2852
2873
|
}
|
2853
|
-
function
|
2854
|
-
return
|
2874
|
+
function xn() {
|
2875
|
+
return ft;
|
2855
2876
|
}
|
2856
|
-
function
|
2877
|
+
function Os(e) {
|
2857
2878
|
const t = {
|
2858
2879
|
type: "var",
|
2859
2880
|
sid: e.sid,
|
@@ -2865,7 +2886,7 @@ function _s(e) {
|
|
2865
2886
|
outputs: [t, ...e.outputs || []]
|
2866
2887
|
};
|
2867
2888
|
}
|
2868
|
-
function
|
2889
|
+
function jn(e) {
|
2869
2890
|
const { config: t, snapshot: n } = e;
|
2870
2891
|
if (!t)
|
2871
2892
|
return {
|
@@ -2881,7 +2902,7 @@ function xn(e) {
|
|
2881
2902
|
preValue: c.value,
|
2882
2903
|
newValue: s.value,
|
2883
2904
|
reset: !0
|
2884
|
-
} :
|
2905
|
+
} : Rs(c, s, n);
|
2885
2906
|
});
|
2886
2907
|
return {
|
2887
2908
|
run: () => {
|
@@ -2896,8 +2917,8 @@ function xn(e) {
|
|
2896
2917
|
}
|
2897
2918
|
};
|
2898
2919
|
}
|
2899
|
-
function
|
2900
|
-
const r =
|
2920
|
+
function Rs(e, t, n) {
|
2921
|
+
const r = B(t.code), o = t.inputs.map(
|
2901
2922
|
(i) => n.getObjectToValue(i)
|
2902
2923
|
);
|
2903
2924
|
return {
|
@@ -2907,18 +2928,18 @@ function Ss(e, t, n) {
|
|
2907
2928
|
newValue: r(...o)
|
2908
2929
|
};
|
2909
2930
|
}
|
2910
|
-
function
|
2911
|
-
return new
|
2931
|
+
function Vs(e, t, n) {
|
2932
|
+
return new Ps(e, t, n);
|
2912
2933
|
}
|
2913
|
-
class
|
2934
|
+
class Ps {
|
2914
2935
|
constructor(t, n, r) {
|
2915
|
-
|
2916
|
-
|
2917
|
-
|
2936
|
+
F(this, "taskQueue", []);
|
2937
|
+
F(this, "id2TaskMap", /* @__PURE__ */ new Map());
|
2938
|
+
F(this, "input2TaskIdMap", Oe(() => []));
|
2918
2939
|
this.snapshots = r;
|
2919
2940
|
const o = [], i = (s) => {
|
2920
2941
|
var l;
|
2921
|
-
const c = new
|
2942
|
+
const c = new ks(s, r);
|
2922
2943
|
return this.id2TaskMap.set(c.id, c), (l = s.inputs) == null || l.forEach((d, u) => {
|
2923
2944
|
var f, h;
|
2924
2945
|
if (((f = s.data) == null ? void 0 : f[u]) === 0 && ((h = s.slient) == null ? void 0 : h[u]) === 0) {
|
@@ -2932,7 +2953,7 @@ class Os {
|
|
2932
2953
|
o.push(c);
|
2933
2954
|
}), n == null || n.forEach((s) => {
|
2934
2955
|
const c = i(
|
2935
|
-
|
2956
|
+
Os(s)
|
2936
2957
|
);
|
2937
2958
|
o.push(c);
|
2938
2959
|
}), o.forEach((s) => {
|
@@ -2947,10 +2968,10 @@ class Os {
|
|
2947
2968
|
once: l,
|
2948
2969
|
flush: d
|
2949
2970
|
}, f = this._getWatchTargets(s);
|
2950
|
-
|
2971
|
+
K(
|
2951
2972
|
f,
|
2952
2973
|
(h) => {
|
2953
|
-
h.some(
|
2974
|
+
h.some(be) || (s.modify = !0, this.taskQueue.push(new Ns(s)), this._scheduleNextTick());
|
2954
2975
|
},
|
2955
2976
|
a
|
2956
2977
|
);
|
@@ -2965,7 +2986,7 @@ class Os {
|
|
2965
2986
|
).map((i) => this.snapshots.getVueRefObjectOrValue(i));
|
2966
2987
|
}
|
2967
2988
|
_scheduleNextTick() {
|
2968
|
-
|
2989
|
+
Ae(() => this._runAllTasks());
|
2969
2990
|
}
|
2970
2991
|
_runAllTasks() {
|
2971
2992
|
const t = this.taskQueue.slice();
|
@@ -3000,14 +3021,14 @@ class Os {
|
|
3000
3021
|
}), n;
|
3001
3022
|
}
|
3002
3023
|
}
|
3003
|
-
class
|
3024
|
+
class ks {
|
3004
3025
|
constructor(t, n) {
|
3005
|
-
|
3006
|
-
|
3007
|
-
|
3008
|
-
|
3009
|
-
|
3010
|
-
|
3026
|
+
F(this, "modify", !0);
|
3027
|
+
F(this, "_running", !1);
|
3028
|
+
F(this, "id");
|
3029
|
+
F(this, "_runningPromise", null);
|
3030
|
+
F(this, "_runningPromiseResolve", null);
|
3031
|
+
F(this, "_inputInfos");
|
3011
3032
|
this.watchConfig = t, this.snapshot = n, this.id = Symbol(t.debug), this._inputInfos = this.createInputInfos();
|
3012
3033
|
}
|
3013
3034
|
createInputInfos() {
|
@@ -3056,14 +3077,14 @@ class Rs {
|
|
3056
3077
|
}
|
3057
3078
|
}
|
3058
3079
|
}
|
3059
|
-
class
|
3080
|
+
class Ns {
|
3060
3081
|
/**
|
3061
3082
|
*
|
3062
3083
|
*/
|
3063
3084
|
constructor(t) {
|
3064
|
-
|
3065
|
-
|
3066
|
-
|
3085
|
+
F(this, "prevNodes", []);
|
3086
|
+
F(this, "nextNodes", []);
|
3087
|
+
F(this, "_runningPrev", !1);
|
3067
3088
|
this.watchTask = t;
|
3068
3089
|
}
|
3069
3090
|
/**
|
@@ -3101,21 +3122,21 @@ class Vs {
|
|
3101
3122
|
if (this.watchTask.modify) {
|
3102
3123
|
this.watchTask.modify = !1, this.watchTask.setRunning();
|
3103
3124
|
try {
|
3104
|
-
await
|
3125
|
+
await Is(this.watchTask);
|
3105
3126
|
} finally {
|
3106
3127
|
this.watchTask.taskDone();
|
3107
3128
|
}
|
3108
3129
|
}
|
3109
3130
|
}
|
3110
3131
|
}
|
3111
|
-
async function
|
3112
|
-
const { snapshot: t } = e, { outputs: n, preSetup: r } = e.watchConfig, o =
|
3132
|
+
async function Is(e) {
|
3133
|
+
const { snapshot: t } = e, { outputs: n, preSetup: r } = e.watchConfig, o = jn({
|
3113
3134
|
config: r,
|
3114
3135
|
snapshot: t
|
3115
3136
|
});
|
3116
3137
|
try {
|
3117
3138
|
o.run();
|
3118
|
-
const i = await
|
3139
|
+
const i = await xn().watchSend(e);
|
3119
3140
|
if (!i)
|
3120
3141
|
return;
|
3121
3142
|
t.updateOutputsRefFromServer(i, n);
|
@@ -3123,7 +3144,7 @@ async function Ps(e) {
|
|
3123
3144
|
o.tryReset();
|
3124
3145
|
}
|
3125
3146
|
}
|
3126
|
-
function
|
3147
|
+
function Ts(e, t) {
|
3127
3148
|
const {
|
3128
3149
|
on: n,
|
3129
3150
|
code: r,
|
@@ -3134,18 +3155,18 @@ function ks(e, t) {
|
|
3134
3155
|
bind: l = {},
|
3135
3156
|
onData: d,
|
3136
3157
|
bindData: u
|
3137
|
-
} = e, a = d || new Array(n.length).fill(0), f = u || new Array(Object.keys(l).length).fill(0), h =
|
3158
|
+
} = e, a = d || new Array(n.length).fill(0), f = u || new Array(Object.keys(l).length).fill(0), h = Be(
|
3138
3159
|
l,
|
3139
3160
|
(g, y, _) => f[_] === 0 ? t.getVueRefObject(g) : g
|
3140
|
-
), v =
|
3161
|
+
), v = B(r, h), p = n.length === 1 ? Gt(a[0] === 1, n[0], t) : n.map(
|
3141
3162
|
(g, y) => Gt(a[y] === 1, g, t)
|
3142
3163
|
);
|
3143
|
-
return
|
3164
|
+
return K(p, v, { immediate: o, deep: i, once: s, flush: c });
|
3144
3165
|
}
|
3145
3166
|
function Gt(e, t, n) {
|
3146
3167
|
return e ? () => t : n.getVueRefObject(t);
|
3147
3168
|
}
|
3148
|
-
function
|
3169
|
+
function As(e, t) {
|
3149
3170
|
const {
|
3150
3171
|
inputs: n = [],
|
3151
3172
|
outputs: r,
|
@@ -3156,41 +3177,41 @@ function Ns(e, t) {
|
|
3156
3177
|
deep: l,
|
3157
3178
|
once: d,
|
3158
3179
|
flush: u
|
3159
|
-
} = e, a = o || new Array(n.length).fill(0), f = i || new Array(n.length).fill(0), h =
|
3180
|
+
} = e, a = o || new Array(n.length).fill(0), f = i || new Array(n.length).fill(0), h = B(s), v = n.filter((g, y) => a[y] === 0 && f[y] === 0).map((g) => t.getVueRefObject(g));
|
3160
3181
|
function p() {
|
3161
|
-
return n.map((g, y) => f[y] === 0 ?
|
3182
|
+
return n.map((g, y) => f[y] === 0 ? nn(q(t.getVueRefObject(g))) : g);
|
3162
3183
|
}
|
3163
|
-
|
3184
|
+
K(
|
3164
3185
|
v,
|
3165
3186
|
() => {
|
3166
3187
|
let g = h(...p());
|
3167
3188
|
if (!r)
|
3168
3189
|
return;
|
3169
|
-
const _ = r.length === 1 ? [g] : g, b = _.map((
|
3190
|
+
const _ = r.length === 1 ? [g] : g, b = _.map((R) => R === void 0 ? 1 : 0);
|
3170
3191
|
t.updateOutputsRefFromServer(
|
3171
|
-
{ values: _,
|
3192
|
+
{ values: _, types: b },
|
3172
3193
|
r
|
3173
3194
|
);
|
3174
3195
|
},
|
3175
3196
|
{ immediate: c, deep: l, once: d, flush: u }
|
3176
3197
|
);
|
3177
3198
|
}
|
3178
|
-
function
|
3199
|
+
function Cs(e, t) {
|
3179
3200
|
return Object.assign(
|
3180
3201
|
{},
|
3181
3202
|
...Object.entries(e ?? {}).map(([n, r]) => {
|
3182
3203
|
const o = r.map((c) => {
|
3183
3204
|
if (c.type === "web") {
|
3184
|
-
const l =
|
3185
|
-
return
|
3205
|
+
const l = $s(c.bind, t);
|
3206
|
+
return xs(c, l, t);
|
3186
3207
|
} else {
|
3187
3208
|
if (c.type === "vue")
|
3188
|
-
return
|
3209
|
+
return Ds(c, t);
|
3189
3210
|
if (c.type === "js")
|
3190
|
-
return
|
3211
|
+
return js(c, t);
|
3191
3212
|
}
|
3192
3213
|
throw new Error(`unknown event type ${c}`);
|
3193
|
-
}), s =
|
3214
|
+
}), s = B(
|
3194
3215
|
" (...args)=> Promise.all(promises(...args))",
|
3195
3216
|
{
|
3196
3217
|
promises: (...c) => o.map(async (l) => {
|
@@ -3202,27 +3223,27 @@ function Is(e, t) {
|
|
3202
3223
|
})
|
3203
3224
|
);
|
3204
3225
|
}
|
3205
|
-
function
|
3226
|
+
function $s(e, t) {
|
3206
3227
|
return (...n) => (e ?? []).map((r) => {
|
3207
3228
|
if (N.isEventContext(r)) {
|
3208
3229
|
if (r.path.startsWith(":")) {
|
3209
3230
|
const o = r.path.slice(1);
|
3210
|
-
return
|
3231
|
+
return B(o)(...n);
|
3211
3232
|
}
|
3212
|
-
return
|
3233
|
+
return Re(n[0], r.path.split("."));
|
3213
3234
|
}
|
3214
3235
|
return N.IsBinding(r) ? t.getObjectToValue(r) : r;
|
3215
3236
|
});
|
3216
3237
|
}
|
3217
|
-
function
|
3238
|
+
function xs(e, t, n) {
|
3218
3239
|
async function r(...o) {
|
3219
|
-
const i = t(...o), s =
|
3240
|
+
const i = t(...o), s = jn({
|
3220
3241
|
config: e.preSetup,
|
3221
3242
|
snapshot: n
|
3222
3243
|
});
|
3223
3244
|
try {
|
3224
3245
|
s.run();
|
3225
|
-
const c = await
|
3246
|
+
const c = await xn().eventSend(e, i);
|
3226
3247
|
if (!c)
|
3227
3248
|
return;
|
3228
3249
|
n.updateOutputsRefFromServer(c, e.set);
|
@@ -3232,43 +3253,43 @@ function As(e, t, n) {
|
|
3232
3253
|
}
|
3233
3254
|
return r;
|
3234
3255
|
}
|
3235
|
-
function
|
3236
|
-
const { code: n, inputs: r = [], set: o } = e, i =
|
3256
|
+
function js(e, t) {
|
3257
|
+
const { code: n, inputs: r = [], set: o } = e, i = B(n);
|
3237
3258
|
function s(...c) {
|
3238
3259
|
const l = (r ?? []).map((u) => {
|
3239
3260
|
if (N.isEventContext(u)) {
|
3240
3261
|
if (u.path.startsWith(":")) {
|
3241
3262
|
const a = u.path.slice(1);
|
3242
|
-
return
|
3263
|
+
return B(a)(...c);
|
3243
3264
|
}
|
3244
|
-
return
|
3265
|
+
return Re(c[0], u.path.split("."));
|
3245
3266
|
}
|
3246
|
-
return N.IsBinding(u) ?
|
3267
|
+
return N.IsBinding(u) ? nn(t.getObjectToValue(u)) : u;
|
3247
3268
|
}), d = i(...l);
|
3248
3269
|
if (o !== void 0) {
|
3249
3270
|
const a = o.length === 1 ? [d] : d, f = a.map((h) => h === void 0 ? 1 : 0);
|
3250
|
-
t.updateOutputsRefFromServer({ values: a,
|
3271
|
+
t.updateOutputsRefFromServer({ values: a, types: f }, o);
|
3251
3272
|
}
|
3252
3273
|
}
|
3253
3274
|
return s;
|
3254
3275
|
}
|
3255
|
-
function
|
3256
|
-
const { code: n, bind: r = {}, bindData: o } = e, i = o || new Array(Object.keys(r).length).fill(0), s =
|
3276
|
+
function Ds(e, t) {
|
3277
|
+
const { code: n, bind: r = {}, bindData: o } = e, i = o || new Array(Object.keys(r).length).fill(0), s = Be(
|
3257
3278
|
r,
|
3258
3279
|
(d, u, a) => i[a] === 0 ? t.getVueRefObject(d) : d
|
3259
|
-
), c =
|
3280
|
+
), c = B(n, s);
|
3260
3281
|
function l(...d) {
|
3261
3282
|
c(...d);
|
3262
3283
|
}
|
3263
3284
|
return l;
|
3264
3285
|
}
|
3265
|
-
function
|
3286
|
+
function Ms(e, t) {
|
3266
3287
|
const n = [];
|
3267
3288
|
(e.bStyle || []).forEach((i) => {
|
3268
3289
|
Array.isArray(i) ? n.push(
|
3269
3290
|
...i.map((s) => t.getObjectToValue(s))
|
3270
3291
|
) : n.push(
|
3271
|
-
|
3292
|
+
Be(
|
3272
3293
|
i,
|
3273
3294
|
(s) => t.getObjectToValue(s)
|
3274
3295
|
)
|
@@ -3280,24 +3301,24 @@ function xs(e, t) {
|
|
3280
3301
|
styles: r
|
3281
3302
|
};
|
3282
3303
|
}
|
3283
|
-
function
|
3304
|
+
function Fs(e, t) {
|
3284
3305
|
const n = e.classes;
|
3285
3306
|
if (!n)
|
3286
3307
|
return null;
|
3287
3308
|
if (typeof n == "string")
|
3288
|
-
return
|
3309
|
+
return Ce(n);
|
3289
3310
|
const { str: r, map: o, bind: i } = n, s = [];
|
3290
3311
|
return r && s.push(r), o && s.push(
|
3291
|
-
|
3312
|
+
Be(
|
3292
3313
|
o,
|
3293
3314
|
(c) => t.getObjectToValue(c)
|
3294
3315
|
)
|
3295
|
-
), i && s.push(...i.map((c) => t.getObjectToValue(c))),
|
3316
|
+
), i && s.push(...i.map((c) => t.getObjectToValue(c))), Ce(s);
|
3296
3317
|
}
|
3297
|
-
function
|
3318
|
+
function je(e, t = !0) {
|
3298
3319
|
if (!(typeof e != "object" || e === null)) {
|
3299
3320
|
if (Array.isArray(e)) {
|
3300
|
-
t && e.forEach((n) =>
|
3321
|
+
t && e.forEach((n) => je(n, !0));
|
3301
3322
|
return;
|
3302
3323
|
}
|
3303
3324
|
for (const [n, r] of Object.entries(e))
|
@@ -3311,90 +3332,90 @@ function $e(e, t = !0) {
|
|
3311
3332
|
);
|
3312
3333
|
}
|
3313
3334
|
else
|
3314
|
-
t &&
|
3335
|
+
t && je(r, !0);
|
3315
3336
|
}
|
3316
3337
|
}
|
3317
|
-
function
|
3338
|
+
function Bs(e, t) {
|
3318
3339
|
const n = e.startsWith(":");
|
3319
|
-
return n && (e = e.slice(1), t =
|
3340
|
+
return n && (e = e.slice(1), t = B(t)), { name: e, value: t, isFunc: n };
|
3320
3341
|
}
|
3321
|
-
function
|
3342
|
+
function Ls(e, t, n) {
|
3322
3343
|
var o;
|
3323
3344
|
const r = {};
|
3324
3345
|
return bt(e.bProps || {}, (i, s) => {
|
3325
3346
|
const c = n.getObjectToValue(i);
|
3326
|
-
|
3347
|
+
be(c) || (je(c), r[s] = Ws(c, s));
|
3327
3348
|
}), (o = e.proxyProps) == null || o.forEach((i) => {
|
3328
3349
|
const s = n.getObjectToValue(i);
|
3329
3350
|
typeof s == "object" && bt(s, (c, l) => {
|
3330
|
-
const { name: d, value: u } =
|
3351
|
+
const { name: d, value: u } = Bs(l, c);
|
3331
3352
|
r[d] = u;
|
3332
3353
|
});
|
3333
3354
|
}), { ...t || {}, ...r };
|
3334
3355
|
}
|
3335
|
-
function
|
3336
|
-
return t === "innerText" ?
|
3356
|
+
function Ws(e, t) {
|
3357
|
+
return t === "innerText" ? Me(e) : e;
|
3337
3358
|
}
|
3338
|
-
function
|
3339
|
-
const { id: n, use: r } = e.propsInfo, o =
|
3340
|
-
return
|
3341
|
-
|
3359
|
+
function Us(e, { slots: t }) {
|
3360
|
+
const { id: n, use: r } = e.propsInfo, o = kr(n);
|
3361
|
+
return dt(() => {
|
3362
|
+
Ir(n);
|
3342
3363
|
}), () => {
|
3343
3364
|
const i = e.propsValue;
|
3344
|
-
return
|
3365
|
+
return Nr(
|
3345
3366
|
n,
|
3346
3367
|
o,
|
3347
3368
|
Object.fromEntries(
|
3348
3369
|
r.map((s) => [s, i[s]])
|
3349
3370
|
)
|
3350
|
-
), A(
|
3371
|
+
), A(Fe, null, t.default());
|
3351
3372
|
};
|
3352
3373
|
}
|
3353
|
-
const
|
3374
|
+
const Gs = L(Us, {
|
3354
3375
|
props: ["propsInfo", "propsValue"]
|
3355
|
-
}),
|
3356
|
-
function
|
3376
|
+
}), Dn = /* @__PURE__ */ new Map();
|
3377
|
+
function qs(e) {
|
3357
3378
|
var t;
|
3358
3379
|
(t = e.scopes) == null || t.forEach((n) => {
|
3359
|
-
|
3380
|
+
Dn.set(n.id, n);
|
3360
3381
|
});
|
3361
3382
|
}
|
3362
|
-
function
|
3363
|
-
return
|
3383
|
+
function me(e) {
|
3384
|
+
return Dn.get(e);
|
3364
3385
|
}
|
3365
|
-
function
|
3386
|
+
function Hs(e, t) {
|
3366
3387
|
if (!e.slots)
|
3367
3388
|
return null;
|
3368
3389
|
const n = e.slots ?? {};
|
3369
|
-
return Array.isArray(n) ? t ?
|
3390
|
+
return Array.isArray(n) ? t ? Ee(n) : () => Ee(n) : Zt(n, { keyFn: (s) => s === ":" ? "default" : s, valueFn: (s) => {
|
3370
3391
|
const { items: c } = s;
|
3371
3392
|
return (l) => {
|
3372
3393
|
if (s.scopeId) {
|
3373
|
-
const d = () => s.props ? qt(s.props, l, c) :
|
3394
|
+
const d = () => s.props ? qt(s.props, l, c) : Ee(c);
|
3374
3395
|
return A(
|
3375
|
-
|
3376
|
-
{ scope:
|
3396
|
+
Pe,
|
3397
|
+
{ scope: me(s.scopeId) },
|
3377
3398
|
d
|
3378
3399
|
);
|
3379
3400
|
}
|
3380
|
-
return s.props ? qt(s.props, l, c) :
|
3401
|
+
return s.props ? qt(s.props, l, c) : Ee(c);
|
3381
3402
|
};
|
3382
3403
|
} });
|
3383
3404
|
}
|
3384
3405
|
function qt(e, t, n) {
|
3385
3406
|
return A(
|
3386
|
-
|
3407
|
+
Gs,
|
3387
3408
|
{ propsInfo: e, propsValue: t },
|
3388
|
-
() =>
|
3409
|
+
() => Ee(n)
|
3389
3410
|
);
|
3390
3411
|
}
|
3391
|
-
function
|
3392
|
-
const t = (e ?? []).map((n) => A(
|
3412
|
+
function Ee(e) {
|
3413
|
+
const t = (e ?? []).map((n) => A(ie, {
|
3393
3414
|
component: n
|
3394
3415
|
}));
|
3395
3416
|
return t.length <= 0 ? null : t;
|
3396
3417
|
}
|
3397
|
-
function
|
3418
|
+
function Ks(e, t) {
|
3398
3419
|
const n = {}, r = [];
|
3399
3420
|
return (e || []).forEach((o) => {
|
3400
3421
|
const { sys: i, name: s, arg: c, value: l, mf: d } = o;
|
@@ -3417,17 +3438,17 @@ function Gs(e, t) {
|
|
3417
3438
|
directiveArray: r
|
3418
3439
|
};
|
3419
3440
|
}
|
3420
|
-
function
|
3441
|
+
function zs(e, t) {
|
3421
3442
|
const { eRef: n } = e;
|
3422
3443
|
return n === void 0 ? {} : { ref: t.getRef(n) };
|
3423
3444
|
}
|
3424
|
-
function
|
3425
|
-
const t =
|
3426
|
-
return
|
3427
|
-
const { tag: o } = e.component, i = N.IsBinding(o) ? t.getObjectToValue(o) : o, s = Yn(i), c = typeof s == "string", l =
|
3445
|
+
function Qs(e) {
|
3446
|
+
const t = se(), n = an(), r = e.component.props ?? {};
|
3447
|
+
return je(r, !0), () => {
|
3448
|
+
const { tag: o } = e.component, i = N.IsBinding(o) ? t.getObjectToValue(o) : o, s = Yn(i), c = typeof s == "string", l = Fs(e.component, t), { styles: d, hasStyle: u } = Ms(e.component, t), a = Cs(e.component.events ?? {}, t), f = Hs(e.component, c), h = Ls(e.component, r, t), { newProps: v, directiveArray: p } = Ks(
|
3428
3449
|
e.component.dir,
|
3429
3450
|
t
|
3430
|
-
), g =
|
3451
|
+
), g = zs(
|
3431
3452
|
e.component,
|
3432
3453
|
n
|
3433
3454
|
), y = Xn({
|
@@ -3445,31 +3466,31 @@ function Ks(e) {
|
|
3445
3466
|
) : _;
|
3446
3467
|
};
|
3447
3468
|
}
|
3448
|
-
const
|
3469
|
+
const ie = L(Qs, {
|
3449
3470
|
props: ["component"]
|
3450
3471
|
});
|
3451
|
-
function
|
3472
|
+
function Mn(e, t) {
|
3452
3473
|
var n, r;
|
3453
3474
|
if (e) {
|
3454
|
-
const o =
|
3455
|
-
|
3456
|
-
|
3475
|
+
const o = Vr(e), i = Sr(e, se(t)), s = se(t);
|
3476
|
+
Vs(e.py_watch, e.web_computed, s), (n = e.vue_watch) == null || n.forEach((c) => Ts(c, s)), (r = e.js_watch) == null || r.forEach((c) => As(c, s)), dt(() => {
|
3477
|
+
Rr(e.id, i), Pr(e.id, o);
|
3457
3478
|
});
|
3458
3479
|
}
|
3459
3480
|
}
|
3460
|
-
function
|
3481
|
+
function Js(e, { slots: t }) {
|
3461
3482
|
const { scope: n } = e;
|
3462
|
-
return
|
3483
|
+
return Mn(n), () => A(Fe, null, t.default());
|
3463
3484
|
}
|
3464
|
-
const
|
3485
|
+
const Pe = L(Js, {
|
3465
3486
|
props: ["scope"]
|
3466
|
-
}),
|
3487
|
+
}), Ys = L(
|
3467
3488
|
(e) => {
|
3468
3489
|
const { scope: t, items: n, vforInfo: r } = e;
|
3469
|
-
return
|
3490
|
+
return Ar(r), Mn(t, r.key), n.length === 1 ? () => A(ie, {
|
3470
3491
|
component: n[0]
|
3471
3492
|
}) : () => n.map(
|
3472
|
-
(i) => A(
|
3493
|
+
(i) => A(ie, {
|
3473
3494
|
component: i
|
3474
3495
|
})
|
3475
3496
|
);
|
@@ -3478,8 +3499,8 @@ const Re = U(Hs, {
|
|
3478
3499
|
props: ["scope", "items", "vforInfo"]
|
3479
3500
|
}
|
3480
3501
|
);
|
3481
|
-
function
|
3482
|
-
const { state: n, isReady: r, isLoading: o } =
|
3502
|
+
function Xs(e, t) {
|
3503
|
+
const { state: n, isReady: r, isLoading: o } = gr(async () => {
|
3483
3504
|
let i = e;
|
3484
3505
|
const s = t;
|
3485
3506
|
if (!i && !s)
|
@@ -3490,21 +3511,24 @@ function Qs(e, t) {
|
|
3490
3511
|
}, {});
|
3491
3512
|
return { config: n, isReady: r, isLoading: o };
|
3492
3513
|
}
|
3493
|
-
function
|
3494
|
-
const t =
|
3514
|
+
function Zs(e) {
|
3515
|
+
const t = H(!1), n = H("");
|
3495
3516
|
function r(o, i) {
|
3496
3517
|
let s;
|
3497
3518
|
return i.component ? s = `Error captured from component:tag: ${i.component.tag} ; id: ${i.component.id} ` : s = "Error captured from app init", console.group(s), console.error("Component:", i.component), console.error("Error:", o), console.groupEnd(), e && (t.value = !0, n.value = `${s} ${o.message}`), !1;
|
3498
3519
|
}
|
3499
3520
|
return er(r), { hasError: t, errorMessage: n };
|
3500
3521
|
}
|
3501
|
-
const
|
3522
|
+
const ei = {
|
3523
|
+
class: "app-box insta-themes",
|
3524
|
+
"data-scaling": "100%"
|
3525
|
+
}, ti = {
|
3502
3526
|
key: 0,
|
3503
3527
|
style: { position: "absolute", top: "50%", left: "50%", transform: "translate(-50%, -50%)" }
|
3504
|
-
},
|
3528
|
+
}, ni = {
|
3505
3529
|
key: 0,
|
3506
3530
|
style: { color: "red", "font-size": "1.2em", margin: "1rem", border: "1px dashed red", padding: "1rem" }
|
3507
|
-
},
|
3531
|
+
}, ri = /* @__PURE__ */ L({
|
3508
3532
|
__name: "App",
|
3509
3533
|
props: {
|
3510
3534
|
config: {},
|
@@ -3512,54 +3536,54 @@ const Ys = { class: "app-box" }, Xs = {
|
|
3512
3536
|
configUrl: {}
|
3513
3537
|
},
|
3514
3538
|
setup(e) {
|
3515
|
-
const t = e, { debug: n = !1 } = t.meta, { config: r, isLoading: o } =
|
3539
|
+
const t = e, { debug: n = !1 } = t.meta, { config: r, isLoading: o } = Xs(
|
3516
3540
|
t.config,
|
3517
3541
|
t.configUrl
|
3518
3542
|
);
|
3519
3543
|
let i = null;
|
3520
|
-
|
3544
|
+
K(r, (l) => {
|
3521
3545
|
i = l, l.url && (cr({
|
3522
3546
|
mode: t.meta.mode,
|
3523
3547
|
version: t.meta.version,
|
3524
3548
|
queryPath: l.url.path,
|
3525
3549
|
pathParams: l.url.params,
|
3526
3550
|
webServerInfo: l.webInfo
|
3527
|
-
}),
|
3551
|
+
}), bs(t.meta.mode)), qs(l), ws(l);
|
3528
3552
|
});
|
3529
|
-
const { hasError: s, errorMessage: c } =
|
3530
|
-
return (l, d) => (
|
3531
|
-
|
3553
|
+
const { hasError: s, errorMessage: c } = Zs(n);
|
3554
|
+
return (l, d) => (re(), fe("div", ei, [
|
3555
|
+
D(o) ? (re(), fe("div", ti, d[0] || (d[0] = [
|
3532
3556
|
tr("p", { style: { margin: "auto" } }, "Loading ...", -1)
|
3533
|
-
]))) : (
|
3557
|
+
]))) : (re(), fe("div", {
|
3534
3558
|
key: 1,
|
3535
|
-
class:
|
3559
|
+
class: Ce(["insta-main", D(r).class])
|
3536
3560
|
}, [
|
3537
|
-
nr(
|
3538
|
-
scope:
|
3561
|
+
nr(D(Pe), {
|
3562
|
+
scope: D(me)(D(i).scopeId)
|
3539
3563
|
}, {
|
3540
3564
|
default: rr(() => [
|
3541
|
-
(
|
3565
|
+
(re(!0), fe(Fe, null, or(D(i).items, (u) => (re(), sr(D(ie), { component: u }, null, 8, ["component"]))), 256))
|
3542
3566
|
]),
|
3543
3567
|
_: 1
|
3544
3568
|
}, 8, ["scope"]),
|
3545
|
-
|
3569
|
+
D(s) ? (re(), fe("div", ni, Me(D(c)), 1)) : ir("", !0)
|
3546
3570
|
], 2))
|
3547
3571
|
]));
|
3548
3572
|
}
|
3549
3573
|
});
|
3550
|
-
function
|
3551
|
-
const { on: t, scopeId: n, items: r } = e, o =
|
3574
|
+
function oi(e) {
|
3575
|
+
const { on: t, scopeId: n, items: r } = e, o = me(n), i = se();
|
3552
3576
|
return () => {
|
3553
3577
|
const s = typeof t == "boolean" ? t : i.getObjectToValue(t);
|
3554
|
-
return A(
|
3555
|
-
(l) => A(
|
3578
|
+
return A(Pe, { scope: o }, () => s ? r.map(
|
3579
|
+
(l) => A(ie, { component: l })
|
3556
3580
|
) : void 0);
|
3557
3581
|
};
|
3558
3582
|
}
|
3559
|
-
const
|
3583
|
+
const si = L(oi, {
|
3560
3584
|
props: ["on", "scopeId", "items"]
|
3561
3585
|
});
|
3562
|
-
function
|
3586
|
+
function ii(e) {
|
3563
3587
|
const { start: t = 0, end: n, step: r = 1 } = e;
|
3564
3588
|
let o = [];
|
3565
3589
|
if (r > 0)
|
@@ -3570,39 +3594,39 @@ function ri(e) {
|
|
3570
3594
|
o.push(i);
|
3571
3595
|
return o;
|
3572
3596
|
}
|
3573
|
-
function
|
3574
|
-
const { array: t, bArray: n, items: r, fkey: o, fid: i, scopeId: s, num: c, tsGroup: l = {} } = e, d = t === void 0, u = c !== void 0, a = d ? n : t, f =
|
3575
|
-
|
3576
|
-
const v =
|
3577
|
-
|
3578
|
-
|
3597
|
+
function ai(e) {
|
3598
|
+
const { array: t, bArray: n, items: r, fkey: o, fid: i, scopeId: s, num: c, tsGroup: l = {} } = e, d = t === void 0, u = c !== void 0, a = d ? n : t, f = se();
|
3599
|
+
$r(i, a, d, u);
|
3600
|
+
const v = di(o ?? "index");
|
3601
|
+
dt(() => {
|
3602
|
+
Or(s);
|
3579
3603
|
});
|
3580
|
-
const p =
|
3604
|
+
const p = me(s);
|
3581
3605
|
return () => {
|
3582
|
-
const g =
|
3606
|
+
const g = ui(
|
3583
3607
|
u,
|
3584
3608
|
d,
|
3585
3609
|
a,
|
3586
3610
|
f,
|
3587
3611
|
c
|
3588
|
-
), y =
|
3589
|
-
const
|
3590
|
-
return y.add(
|
3612
|
+
), y = jr(i), _ = g.map((b, R) => {
|
3613
|
+
const $ = v(b, R);
|
3614
|
+
return y.add($), xr(i, $, R), A(Ys, {
|
3591
3615
|
scope: p,
|
3592
3616
|
items: r,
|
3593
3617
|
vforInfo: {
|
3594
3618
|
fid: i,
|
3595
|
-
key:
|
3619
|
+
key: $
|
3596
3620
|
},
|
3597
|
-
key:
|
3621
|
+
key: $
|
3598
3622
|
});
|
3599
3623
|
});
|
3600
|
-
return y.removeUnusedKeys(), l && Object.keys(l).length > 0 ? A(
|
3624
|
+
return y.removeUnusedKeys(), l && Object.keys(l).length > 0 ? A(Yt, l, {
|
3601
3625
|
default: () => _
|
3602
3626
|
}) : _;
|
3603
3627
|
};
|
3604
3628
|
}
|
3605
|
-
const
|
3629
|
+
const ci = L(ai, {
|
3606
3630
|
props: [
|
3607
3631
|
"array",
|
3608
3632
|
"items",
|
@@ -3614,38 +3638,38 @@ const si = U(oi, {
|
|
3614
3638
|
"tsGroup"
|
3615
3639
|
]
|
3616
3640
|
});
|
3617
|
-
function
|
3641
|
+
function ui(e, t, n, r, o) {
|
3618
3642
|
if (e) {
|
3619
3643
|
let s = 0;
|
3620
|
-
return typeof o == "number" ? s = o : s = r.getObjectToValue(o) ?? 0,
|
3644
|
+
return typeof o == "number" ? s = o : s = r.getObjectToValue(o) ?? 0, ii({
|
3621
3645
|
end: Math.max(0, s)
|
3622
3646
|
});
|
3623
3647
|
}
|
3624
3648
|
const i = t ? r.getObjectToValue(n) || [] : n;
|
3625
3649
|
return typeof i == "object" ? Object.values(i) : i;
|
3626
3650
|
}
|
3627
|
-
const
|
3628
|
-
function
|
3629
|
-
const t =
|
3630
|
-
return typeof t == "function" ? t : e === "item" ?
|
3651
|
+
const li = (e) => e, fi = (e, t) => t;
|
3652
|
+
function di(e) {
|
3653
|
+
const t = vr(e);
|
3654
|
+
return typeof t == "function" ? t : e === "item" ? li : fi;
|
3631
3655
|
}
|
3632
|
-
function
|
3633
|
-
const { scopeId: t, items: n } = e, r =
|
3656
|
+
function hi(e) {
|
3657
|
+
const { scopeId: t, items: n } = e, r = me(t);
|
3634
3658
|
return () => {
|
3635
|
-
const o = n.map((i) => A(
|
3636
|
-
return A(
|
3659
|
+
const o = n.map((i) => A(ie, { component: i }));
|
3660
|
+
return A(Pe, { scope: r }, () => o);
|
3637
3661
|
};
|
3638
3662
|
}
|
3639
|
-
const
|
3663
|
+
const Ht = L(hi, {
|
3640
3664
|
props: ["scopeId", "items"]
|
3641
3665
|
});
|
3642
|
-
function
|
3643
|
-
const { on: t, case: n, default: r } = e, o =
|
3666
|
+
function pi(e) {
|
3667
|
+
const { on: t, case: n, default: r } = e, o = se();
|
3644
3668
|
return () => {
|
3645
3669
|
const i = o.getObjectToValue(t), s = n.map((c) => {
|
3646
3670
|
const { value: l, items: d, scopeId: u } = c.props;
|
3647
3671
|
if (i === l)
|
3648
|
-
return A(
|
3672
|
+
return A(Ht, {
|
3649
3673
|
scopeId: u,
|
3650
3674
|
items: d,
|
3651
3675
|
key: ["case", l].join("-")
|
@@ -3653,52 +3677,80 @@ function fi(e) {
|
|
3653
3677
|
}).filter((c) => c);
|
3654
3678
|
if (r && !s.length) {
|
3655
3679
|
const { items: c, scopeId: l } = r.props;
|
3656
|
-
s.push(A(
|
3680
|
+
s.push(A(Ht, { scopeId: l, items: c, key: "default" }));
|
3657
3681
|
}
|
3658
|
-
return A(
|
3682
|
+
return A(Fe, s);
|
3659
3683
|
};
|
3660
3684
|
}
|
3661
|
-
const
|
3685
|
+
const mi = L(pi, {
|
3662
3686
|
props: ["case", "on", "default"]
|
3663
3687
|
});
|
3664
|
-
function
|
3688
|
+
function gi(e, { slots: t }) {
|
3665
3689
|
const { name: n = "fade", tag: r } = e;
|
3666
3690
|
return () => A(
|
3667
|
-
|
3691
|
+
Yt,
|
3668
3692
|
{ name: n, tag: r },
|
3669
3693
|
{
|
3670
3694
|
default: t.default
|
3671
3695
|
}
|
3672
3696
|
);
|
3673
3697
|
}
|
3674
|
-
const
|
3698
|
+
const vi = L(gi, {
|
3675
3699
|
props: ["name", "tag"]
|
3676
3700
|
});
|
3677
|
-
function
|
3678
|
-
const { content: t, r: n = 0 } = e, r =
|
3679
|
-
return () =>
|
3701
|
+
function yi(e) {
|
3702
|
+
const { content: t, r: n = 0 } = e, r = se(), o = n === 1 ? () => r.getObjectToValue(t) : () => t;
|
3703
|
+
return () => Me(o());
|
3680
3704
|
}
|
3681
|
-
const
|
3705
|
+
const wi = L(yi, {
|
3682
3706
|
props: ["content", "r"]
|
3683
3707
|
});
|
3684
|
-
function
|
3708
|
+
function Ei(e) {
|
3709
|
+
return `i-size-${e}`;
|
3710
|
+
}
|
3711
|
+
function _i(e) {
|
3712
|
+
return e ? `i-weight-${e}` : "";
|
3713
|
+
}
|
3714
|
+
function Si(e) {
|
3715
|
+
return e ? `i-text-align-${e}` : "";
|
3716
|
+
}
|
3717
|
+
const bi = /* @__PURE__ */ L({
|
3718
|
+
__name: "Heading",
|
3719
|
+
props: {
|
3720
|
+
text: {},
|
3721
|
+
size: {},
|
3722
|
+
weight: {},
|
3723
|
+
align: {}
|
3724
|
+
},
|
3725
|
+
setup(e) {
|
3726
|
+
const t = e, n = W(() => [
|
3727
|
+
Ei(t.size ?? "6"),
|
3728
|
+
_i(t.weight),
|
3729
|
+
Si(t.align)
|
3730
|
+
]);
|
3731
|
+
return (r, o) => (re(), fe("h1", {
|
3732
|
+
class: Ce(["insta-Heading", n.value])
|
3733
|
+
}, Me(r.text), 3));
|
3734
|
+
}
|
3735
|
+
});
|
3736
|
+
function Oi(e) {
|
3685
3737
|
if (!e.router)
|
3686
3738
|
throw new Error("Router config is not provided.");
|
3687
3739
|
const { routes: t, kAlive: n = !1 } = e.router;
|
3688
3740
|
return t.map(
|
3689
|
-
(o) =>
|
3741
|
+
(o) => Fn(o, n)
|
3690
3742
|
);
|
3691
3743
|
}
|
3692
|
-
function
|
3744
|
+
function Fn(e, t) {
|
3693
3745
|
var l;
|
3694
3746
|
const { server: n = !1, vueItem: r, scopeId: o } = e, i = () => {
|
3695
3747
|
if (n)
|
3696
3748
|
throw new Error("Server-side rendering is not supported yet.");
|
3697
3749
|
return Promise.resolve(
|
3698
|
-
|
3750
|
+
Ri(r, me(o), t)
|
3699
3751
|
);
|
3700
3752
|
}, s = (l = r.children) == null ? void 0 : l.map(
|
3701
|
-
(d) =>
|
3753
|
+
(d) => Fn(d, t)
|
3702
3754
|
), c = {
|
3703
3755
|
...r,
|
3704
3756
|
children: s,
|
@@ -3706,28 +3758,28 @@ function Mn(e, t) {
|
|
3706
3758
|
};
|
3707
3759
|
return r.component.length === 0 && delete c.component, s === void 0 && delete c.children, c;
|
3708
3760
|
}
|
3709
|
-
function
|
3761
|
+
function Ri(e, t, n) {
|
3710
3762
|
const { path: r, component: o } = e, i = A(
|
3711
|
-
|
3763
|
+
Pe,
|
3712
3764
|
{ scope: t, key: r },
|
3713
|
-
() => o.map((c) => A(
|
3765
|
+
() => o.map((c) => A(ie, { component: c }))
|
3714
3766
|
);
|
3715
3767
|
return n ? A(ar, null, () => i) : i;
|
3716
3768
|
}
|
3717
|
-
function
|
3718
|
-
const { mode: n = "hash" } = t.router, r = n === "hash" ?
|
3769
|
+
function Vi(e, t) {
|
3770
|
+
const { mode: n = "hash" } = t.router, r = n === "hash" ? Ro() : n === "memory" ? Oo() : bn();
|
3719
3771
|
e.use(
|
3720
|
-
|
3772
|
+
ms({
|
3721
3773
|
history: r,
|
3722
|
-
routes:
|
3774
|
+
routes: Oi(t)
|
3723
3775
|
})
|
3724
3776
|
);
|
3725
3777
|
}
|
3726
|
-
function
|
3727
|
-
e.component("insta-ui",
|
3778
|
+
function Ni(e, t) {
|
3779
|
+
e.component("insta-ui", ri), e.component("vif", si), e.component("vfor", ci), e.component("match", mi), e.component("ts-group", vi), e.component("content", wi), e.component("heading", bi), t.router && Vi(e, t);
|
3728
3780
|
}
|
3729
3781
|
export {
|
3730
|
-
|
3731
|
-
|
3782
|
+
je as convertDynamicProperties,
|
3783
|
+
Ni as install
|
3732
3784
|
};
|
3733
3785
|
//# sourceMappingURL=insta-ui.js.map
|