instaui 0.1.16__py2.py3-none-any.whl → 0.1.18__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/components/html/radio.py +1 -1
- instaui/js/fn.py +42 -0
- instaui/runtime/_app.py +13 -0
- instaui/static/insta-ui.esm-browser.prod.js +878 -881
- instaui/static/insta-ui.js.map +1 -1
- instaui/ui/__init__.py +2 -2
- instaui/ui/__init__.pyi +2 -2
- instaui/vars/ref.py +15 -5
- instaui/vars/state.py +4 -4
- {instaui-0.1.16.dist-info → instaui-0.1.18.dist-info}/METADATA +1 -1
- {instaui-0.1.16.dist-info → instaui-0.1.18.dist-info}/RECORD +13 -15
- instaui/js/__init__.py +0 -4
- instaui/js/js_output.py +0 -15
- instaui/js/lambda_func.py +0 -35
- {instaui-0.1.16.dist-info → instaui-0.1.18.dist-info}/WHEEL +0 -0
- {instaui-0.1.16.dist-info → instaui-0.1.18.dist-info}/licenses/LICENSE +0 -0
@@ -1,14 +1,14 @@
|
|
1
|
-
var
|
2
|
-
var
|
3
|
-
var B = (e, t, n) =>
|
4
|
-
import * as
|
5
|
-
import { toRaw as
|
6
|
-
let
|
7
|
-
function
|
8
|
-
|
1
|
+
var Un = Object.defineProperty;
|
2
|
+
var Kn = (e, t, n) => t in e ? Un(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
3
|
+
var B = (e, t, n) => Kn(e, typeof t != "symbol" ? t + "" : t, n);
|
4
|
+
import * as Gn from "vue";
|
5
|
+
import { toRaw as qn, customRef as je, toValue as q, unref as L, watch as G, nextTick as Ie, isRef as Ht, ref as Z, shallowRef as J, watchEffect as zt, computed as K, readonly as Hn, provide as Ne, inject as ee, shallowReactive as zn, defineComponent as F, reactive as Jn, h as A, getCurrentInstance as Jt, normalizeStyle as Qn, normalizeClass as Ye, toDisplayString as Qt, onUnmounted as Ce, Fragment as xe, vModelDynamic as Yn, vShow as Xn, resolveDynamicComponent as ft, normalizeProps as Zn, withDirectives as er, onErrorCaptured as tr, openBlock as he, createElementBlock as ke, createElementVNode as nr, createVNode as rr, withCtx as or, renderList as sr, createBlock as ir, TransitionGroup as Yt, KeepAlive as ar } from "vue";
|
6
|
+
let Xt;
|
7
|
+
function cr(e) {
|
8
|
+
Xt = e;
|
9
9
|
}
|
10
10
|
function Xe() {
|
11
|
-
return
|
11
|
+
return Xt;
|
12
12
|
}
|
13
13
|
function ye() {
|
14
14
|
const { queryPath: e, pathParams: t, queryParams: n } = Xe();
|
@@ -18,7 +18,7 @@ function ye() {
|
|
18
18
|
...n === void 0 ? {} : { queryParams: n }
|
19
19
|
};
|
20
20
|
}
|
21
|
-
class
|
21
|
+
class ur extends Map {
|
22
22
|
constructor(t) {
|
23
23
|
super(), this.factory = t;
|
24
24
|
}
|
@@ -31,17 +31,17 @@ class cr extends Map {
|
|
31
31
|
}
|
32
32
|
}
|
33
33
|
function _e(e) {
|
34
|
-
return new
|
34
|
+
return new ur(e);
|
35
35
|
}
|
36
|
-
function
|
36
|
+
function St(e, t) {
|
37
37
|
Object.entries(e).forEach(([n, r]) => t(r, n));
|
38
38
|
}
|
39
|
-
function
|
40
|
-
return
|
39
|
+
function De(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, s], i) => [
|
@@ -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, ...s] = t;
|
56
56
|
switch (o) {
|
@@ -62,10 +62,10 @@ function Zt(e, t, n) {
|
|
62
62
|
return s[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))
|
@@ -82,33 +82,33 @@ function en(e, t) {
|
|
82
82
|
}
|
83
83
|
function be(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
89
|
function Ze(e, t, n, r) {
|
90
90
|
t.reduce((o, s, i) => {
|
91
91
|
if (i === t.length - 1)
|
92
|
-
o[
|
92
|
+
o[tn(s, r)] = n;
|
93
93
|
else
|
94
|
-
return
|
94
|
+
return en(o, s, r);
|
95
95
|
}, e);
|
96
96
|
}
|
97
|
-
function
|
97
|
+
function nn(e) {
|
98
98
|
return JSON.parse(JSON.stringify(e));
|
99
99
|
}
|
100
|
-
class
|
100
|
+
class lr {
|
101
101
|
toString() {
|
102
102
|
return "";
|
103
103
|
}
|
104
104
|
}
|
105
|
-
const we = new
|
105
|
+
const we = new lr();
|
106
106
|
function Ee(e) {
|
107
|
-
return
|
107
|
+
return qn(e) === we;
|
108
108
|
}
|
109
|
-
function
|
109
|
+
function Ot(e, t, n) {
|
110
110
|
const { paths: r, getBindableValueFn: o } = t, { paths: s, getBindableValueFn: i } = t;
|
111
|
-
return r === void 0 || r.length === 0 ? e :
|
111
|
+
return r === void 0 || r.length === 0 ? e : je(() => ({
|
112
112
|
get() {
|
113
113
|
try {
|
114
114
|
return be(
|
@@ -120,18 +120,18 @@ function bt(e, t, n) {
|
|
120
120
|
return;
|
121
121
|
}
|
122
122
|
},
|
123
|
-
set(
|
123
|
+
set(u) {
|
124
124
|
Ze(
|
125
125
|
q(e),
|
126
126
|
s || r,
|
127
|
-
|
127
|
+
u,
|
128
128
|
i
|
129
129
|
);
|
130
130
|
}
|
131
131
|
}));
|
132
132
|
}
|
133
|
-
function
|
134
|
-
return
|
133
|
+
function ht(e) {
|
134
|
+
return je((t, n) => ({
|
135
135
|
get() {
|
136
136
|
return t(), e;
|
137
137
|
},
|
@@ -141,7 +141,7 @@ function nn(e) {
|
|
141
141
|
}));
|
142
142
|
}
|
143
143
|
function de(e) {
|
144
|
-
return typeof e == "function" ? e() :
|
144
|
+
return typeof e == "function" ? e() : L(e);
|
145
145
|
}
|
146
146
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
147
147
|
const et = () => {
|
@@ -152,13 +152,13 @@ function tt(e, t = !1, n = "Timeout") {
|
|
152
152
|
});
|
153
153
|
}
|
154
154
|
function nt(e, t = !1) {
|
155
|
-
function n(
|
155
|
+
function n(a, { flush: f = "sync", deep: d = !1, timeout: v, throwOnTimeout: p } = {}) {
|
156
156
|
let g = null;
|
157
|
-
const _ = [new Promise((
|
157
|
+
const _ = [new Promise((S) => {
|
158
158
|
g = G(
|
159
159
|
e,
|
160
160
|
(R) => {
|
161
|
-
|
161
|
+
a(R) !== t && (g ? g() : Ie(() => g == null ? void 0 : g()), S(R));
|
162
162
|
},
|
163
163
|
{
|
164
164
|
flush: f,
|
@@ -171,16 +171,16 @@ function nt(e, t = !1) {
|
|
171
171
|
tt(v, p).then(() => de(e)).finally(() => g == null ? void 0 : g())
|
172
172
|
), Promise.race(_);
|
173
173
|
}
|
174
|
-
function r(
|
175
|
-
if (!
|
176
|
-
return n((R) => R ===
|
174
|
+
function r(a, f) {
|
175
|
+
if (!Ht(a))
|
176
|
+
return n((R) => R === a, f);
|
177
177
|
const { flush: d = "sync", deep: v = !1, timeout: p, throwOnTimeout: g } = f ?? {};
|
178
178
|
let y = null;
|
179
|
-
const
|
179
|
+
const S = [new Promise((R) => {
|
180
180
|
y = G(
|
181
|
-
[e,
|
181
|
+
[e, a],
|
182
182
|
([D, C]) => {
|
183
|
-
t !== (D === C) && (y ? y() :
|
183
|
+
t !== (D === C) && (y ? y() : Ie(() => y == null ? void 0 : y()), R(D));
|
184
184
|
},
|
185
185
|
{
|
186
186
|
flush: d,
|
@@ -189,40 +189,40 @@ function nt(e, t = !1) {
|
|
189
189
|
}
|
190
190
|
);
|
191
191
|
})];
|
192
|
-
return p != null &&
|
192
|
+
return p != null && S.push(
|
193
193
|
tt(p, g).then(() => de(e)).finally(() => (y == null || y(), de(e)))
|
194
|
-
), Promise.race(
|
194
|
+
), Promise.race(S);
|
195
195
|
}
|
196
|
-
function o(
|
197
|
-
return n((f) => !!f,
|
196
|
+
function o(a) {
|
197
|
+
return n((f) => !!f, a);
|
198
198
|
}
|
199
|
-
function s(
|
200
|
-
return r(null,
|
199
|
+
function s(a) {
|
200
|
+
return r(null, a);
|
201
201
|
}
|
202
|
-
function i(
|
203
|
-
return r(void 0,
|
202
|
+
function i(a) {
|
203
|
+
return r(void 0, a);
|
204
204
|
}
|
205
|
-
function
|
206
|
-
return n(Number.isNaN,
|
205
|
+
function u(a) {
|
206
|
+
return n(Number.isNaN, a);
|
207
207
|
}
|
208
|
-
function l(
|
208
|
+
function l(a, f) {
|
209
209
|
return n((d) => {
|
210
210
|
const v = Array.from(d);
|
211
|
-
return v.includes(
|
211
|
+
return v.includes(a) || v.includes(de(a));
|
212
212
|
}, f);
|
213
213
|
}
|
214
|
-
function h(
|
215
|
-
return
|
214
|
+
function h(a) {
|
215
|
+
return c(1, a);
|
216
216
|
}
|
217
|
-
function a
|
217
|
+
function c(a = 1, f) {
|
218
218
|
let d = -1;
|
219
|
-
return n(() => (d += 1, d >=
|
219
|
+
return n(() => (d += 1, d >= a), f);
|
220
220
|
}
|
221
221
|
return Array.isArray(de(e)) ? {
|
222
222
|
toMatch: n,
|
223
223
|
toContains: l,
|
224
224
|
changed: h,
|
225
|
-
changedTimes:
|
225
|
+
changedTimes: c,
|
226
226
|
get not() {
|
227
227
|
return nt(e, !t);
|
228
228
|
}
|
@@ -231,88 +231,88 @@ function nt(e, t = !1) {
|
|
231
231
|
toBe: r,
|
232
232
|
toBeTruthy: o,
|
233
233
|
toBeNull: s,
|
234
|
-
toBeNaN:
|
234
|
+
toBeNaN: u,
|
235
235
|
toBeUndefined: i,
|
236
236
|
changed: h,
|
237
|
-
changedTimes:
|
237
|
+
changedTimes: c,
|
238
238
|
get not() {
|
239
239
|
return nt(e, !t);
|
240
240
|
}
|
241
241
|
};
|
242
242
|
}
|
243
|
-
function
|
243
|
+
function fr(e) {
|
244
244
|
return nt(e);
|
245
245
|
}
|
246
|
-
function
|
246
|
+
function hr(e, t, n) {
|
247
247
|
let r;
|
248
|
-
|
248
|
+
Ht(n) ? r = {
|
249
249
|
evaluating: n
|
250
250
|
} : r = n || {};
|
251
251
|
const {
|
252
252
|
lazy: o = !1,
|
253
253
|
evaluating: s = void 0,
|
254
254
|
shallow: i = !0,
|
255
|
-
onError:
|
255
|
+
onError: u = et
|
256
256
|
} = r, l = Z(!o), h = i ? J(t) : Z(t);
|
257
|
-
let
|
258
|
-
return
|
257
|
+
let c = 0;
|
258
|
+
return zt(async (a) => {
|
259
259
|
if (!l.value)
|
260
260
|
return;
|
261
|
-
|
262
|
-
const f =
|
261
|
+
c++;
|
262
|
+
const f = c;
|
263
263
|
let d = !1;
|
264
264
|
s && Promise.resolve().then(() => {
|
265
265
|
s.value = !0;
|
266
266
|
});
|
267
267
|
try {
|
268
268
|
const v = await e((p) => {
|
269
|
-
|
269
|
+
a(() => {
|
270
270
|
s && (s.value = !1), d || p();
|
271
271
|
});
|
272
272
|
});
|
273
|
-
f ===
|
273
|
+
f === c && (h.value = v);
|
274
274
|
} catch (v) {
|
275
|
-
|
275
|
+
u(v);
|
276
276
|
} finally {
|
277
|
-
s && f ===
|
277
|
+
s && f === c && (s.value = !1), d = !0;
|
278
278
|
}
|
279
|
-
}), o ?
|
279
|
+
}), o ? K(() => (l.value = !0, h.value)) : h;
|
280
280
|
}
|
281
|
-
function
|
281
|
+
function dr(e, t, n) {
|
282
282
|
const {
|
283
283
|
immediate: r = !0,
|
284
284
|
delay: o = 0,
|
285
285
|
onError: s = et,
|
286
286
|
onSuccess: i = et,
|
287
|
-
resetOnExecute:
|
287
|
+
resetOnExecute: u = !0,
|
288
288
|
shallow: l = !0,
|
289
289
|
throwError: h
|
290
|
-
} = {},
|
290
|
+
} = {}, c = l ? J(t) : Z(t), a = Z(!1), f = Z(!1), d = J(void 0);
|
291
291
|
async function v(y = 0, ..._) {
|
292
|
-
|
293
|
-
const
|
292
|
+
u && (c.value = t), d.value = void 0, a.value = !1, f.value = !0, y > 0 && await tt(y);
|
293
|
+
const S = typeof e == "function" ? e(..._) : e;
|
294
294
|
try {
|
295
|
-
const R = await
|
296
|
-
|
295
|
+
const R = await S;
|
296
|
+
c.value = R, a.value = !0, i(R);
|
297
297
|
} catch (R) {
|
298
298
|
if (d.value = R, s(R), h)
|
299
299
|
throw R;
|
300
300
|
} finally {
|
301
301
|
f.value = !1;
|
302
302
|
}
|
303
|
-
return
|
303
|
+
return c.value;
|
304
304
|
}
|
305
305
|
r && v(o);
|
306
306
|
const p = {
|
307
|
-
state:
|
308
|
-
isReady:
|
307
|
+
state: c,
|
308
|
+
isReady: a,
|
309
309
|
isLoading: f,
|
310
310
|
error: d,
|
311
311
|
execute: v
|
312
312
|
};
|
313
313
|
function g() {
|
314
314
|
return new Promise((y, _) => {
|
315
|
-
|
315
|
+
fr(f).toBe(!1).then(() => y(p)).catch(_);
|
316
316
|
});
|
317
317
|
}
|
318
318
|
return {
|
@@ -322,20 +322,20 @@ function hr(e, t, n) {
|
|
322
322
|
}
|
323
323
|
};
|
324
324
|
}
|
325
|
-
function
|
325
|
+
function W(e, t) {
|
326
326
|
t = t || {};
|
327
|
-
const n = [...Object.keys(t), "__Vue"], r = [...Object.values(t),
|
327
|
+
const n = [...Object.keys(t), "__Vue"], r = [...Object.values(t), Gn];
|
328
328
|
try {
|
329
329
|
return new Function(...n, `return (${e})`)(...r);
|
330
330
|
} catch (o) {
|
331
331
|
throw new Error(o + " in function code: " + e);
|
332
332
|
}
|
333
333
|
}
|
334
|
-
function
|
334
|
+
function pr(e) {
|
335
335
|
if (e.startsWith(":")) {
|
336
336
|
e = e.slice(1);
|
337
337
|
try {
|
338
|
-
return
|
338
|
+
return W(e);
|
339
339
|
} catch (t) {
|
340
340
|
throw new Error(t + " in function code: " + e);
|
341
341
|
}
|
@@ -344,87 +344,88 @@ function dr(e) {
|
|
344
344
|
function rn(e) {
|
345
345
|
return e.constructor.name === "AsyncFunction";
|
346
346
|
}
|
347
|
-
function
|
348
|
-
|
347
|
+
function mr(e, t) {
|
348
|
+
const { deepCompare: n = !1 } = e;
|
349
|
+
return n ? ht(e.value) : Z(e.value);
|
349
350
|
}
|
350
|
-
function
|
351
|
-
const { bind: r = {}, code: o, const: s = [] } = e, i = Object.values(r).map((
|
351
|
+
function gr(e, t, n) {
|
352
|
+
const { bind: r = {}, code: o, const: s = [] } = e, i = Object.values(r).map((c, a) => s[a] === 1 ? c : t.getVueRefObjectOrValue(c));
|
352
353
|
if (rn(new Function(o)))
|
353
|
-
return
|
354
|
+
return hr(
|
354
355
|
async () => {
|
355
|
-
const
|
356
|
-
Object.keys(r).map((
|
356
|
+
const c = Object.fromEntries(
|
357
|
+
Object.keys(r).map((a, f) => [a, i[f]])
|
357
358
|
);
|
358
|
-
return await
|
359
|
+
return await W(o, c)();
|
359
360
|
},
|
360
361
|
null,
|
361
362
|
{ lazy: !0 }
|
362
363
|
);
|
363
|
-
const
|
364
|
-
Object.keys(r).map((
|
365
|
-
), l =
|
366
|
-
return
|
364
|
+
const u = Object.fromEntries(
|
365
|
+
Object.keys(r).map((c, a) => [c, i[a]])
|
366
|
+
), l = W(o, u);
|
367
|
+
return K(l);
|
367
368
|
}
|
368
|
-
function
|
369
|
+
function vr(e, t, n) {
|
369
370
|
const {
|
370
371
|
inputs: r = [],
|
371
372
|
code: o,
|
372
373
|
slient: s,
|
373
374
|
data: i,
|
374
|
-
asyncInit:
|
375
|
+
asyncInit: u = null,
|
375
376
|
deepEqOnInput: l = 0
|
376
|
-
} = e, h = s || Array(r.length).fill(0),
|
377
|
+
} = e, h = s || Array(r.length).fill(0), c = i || Array(r.length).fill(0), a = r.filter((g, y) => h[y] === 0 && c[y] === 0).map((g) => t.getVueRefObject(g));
|
377
378
|
function f() {
|
378
379
|
return r.map(
|
379
|
-
(g, y) =>
|
380
|
+
(g, y) => c[y] === 1 ? g : t.getObjectToValue(g)
|
380
381
|
);
|
381
382
|
}
|
382
|
-
const d =
|
383
|
-
return rn(d) ? (v.value =
|
384
|
-
|
383
|
+
const d = W(o), v = l === 0 ? J(we) : ht(we), p = { immediate: !0, deep: !0 };
|
384
|
+
return rn(d) ? (v.value = u, G(
|
385
|
+
a,
|
385
386
|
async () => {
|
386
387
|
f().some(Ee) || (v.value = await d(...f()));
|
387
388
|
},
|
388
389
|
p
|
389
390
|
)) : G(
|
390
|
-
|
391
|
+
a,
|
391
392
|
() => {
|
392
393
|
const g = f();
|
393
394
|
g.some(Ee) || (v.value = d(...g));
|
394
395
|
},
|
395
396
|
p
|
396
|
-
),
|
397
|
+
), Hn(v);
|
397
398
|
}
|
398
|
-
function
|
399
|
+
function yr() {
|
399
400
|
return [];
|
400
401
|
}
|
401
|
-
const Se = _e(
|
402
|
+
const Se = _e(yr);
|
402
403
|
function on(e, t) {
|
403
|
-
var s, i,
|
404
|
+
var s, i, u, l, h;
|
404
405
|
const n = Se.getOrDefault(e.id), r = /* @__PURE__ */ new Map();
|
405
406
|
n.push(r), t.replaceSnapshot({
|
406
407
|
scopeSnapshot: sn()
|
407
408
|
});
|
408
|
-
const o = (
|
409
|
-
r.set(
|
409
|
+
const o = (c, a) => {
|
410
|
+
r.set(c.id, a);
|
410
411
|
};
|
411
|
-
return (s = e.refs) == null || s.forEach((
|
412
|
-
o(
|
413
|
-
}), (i = e.web_computed) == null || i.forEach((
|
414
|
-
const { init:
|
415
|
-
o(
|
416
|
-
}), (
|
412
|
+
return (s = e.refs) == null || s.forEach((c) => {
|
413
|
+
o(c, mr(c));
|
414
|
+
}), (i = e.web_computed) == null || i.forEach((c) => {
|
415
|
+
const { init: a } = c, f = c.deepEqOnInput === void 0 ? J(a ?? we) : ht(a ?? we);
|
416
|
+
o(c, f);
|
417
|
+
}), (u = e.vue_computed) == null || u.forEach((c) => {
|
417
418
|
o(
|
418
|
-
|
419
|
-
|
419
|
+
c,
|
420
|
+
gr(c, t)
|
420
421
|
);
|
421
|
-
}), (l = e.js_computed) == null || l.forEach((
|
422
|
+
}), (l = e.js_computed) == null || l.forEach((c) => {
|
422
423
|
o(
|
423
|
-
|
424
|
-
|
424
|
+
c,
|
425
|
+
vr(c, t)
|
425
426
|
);
|
426
|
-
}), (h = e.data) == null || h.forEach((
|
427
|
-
o(
|
427
|
+
}), (h = e.data) == null || h.forEach((c) => {
|
428
|
+
o(c, c.value);
|
428
429
|
}), n.length - 1;
|
429
430
|
}
|
430
431
|
function sn() {
|
@@ -440,7 +441,7 @@ function sn() {
|
|
440
441
|
getVueRef: t
|
441
442
|
};
|
442
443
|
}
|
443
|
-
function
|
444
|
+
function wr(e) {
|
444
445
|
return an(e, Se);
|
445
446
|
}
|
446
447
|
function an(e, t) {
|
@@ -452,29 +453,29 @@ function an(e, t) {
|
|
452
453
|
throw new Error(`Var ${e.id} not found in scope ${e.sid}`);
|
453
454
|
return o;
|
454
455
|
}
|
455
|
-
function
|
456
|
+
function Er(e) {
|
456
457
|
Se.delete(e);
|
457
458
|
}
|
458
459
|
function cn(e, t) {
|
459
460
|
const n = Se.get(e);
|
460
461
|
n && n.splice(t, 1);
|
461
462
|
}
|
462
|
-
const
|
463
|
-
function
|
463
|
+
const dt = _e(() => []);
|
464
|
+
function _r(e) {
|
464
465
|
var r;
|
465
|
-
const t = /* @__PURE__ */ new Map(), n =
|
466
|
+
const t = /* @__PURE__ */ new Map(), n = dt.getOrDefault(e.id).push(t);
|
466
467
|
return (r = e.eRefs) == null || r.forEach((o) => {
|
467
468
|
const s = J();
|
468
469
|
t.set(o.id, s);
|
469
470
|
}), n;
|
470
471
|
}
|
471
|
-
function
|
472
|
-
const n =
|
472
|
+
function br(e, t) {
|
473
|
+
const n = dt.get(e);
|
473
474
|
n && n.splice(t, 1);
|
474
475
|
}
|
475
476
|
function un() {
|
476
477
|
const e = new Map(
|
477
|
-
Array.from(
|
478
|
+
Array.from(dt.entries()).map(([n, r]) => [
|
478
479
|
n,
|
479
480
|
r[r.length - 1]
|
480
481
|
])
|
@@ -488,63 +489,59 @@ function un() {
|
|
488
489
|
}
|
489
490
|
var N;
|
490
491
|
((e) => {
|
491
|
-
function t(
|
492
|
-
return
|
492
|
+
function t(a) {
|
493
|
+
return a.type === "var";
|
493
494
|
}
|
494
495
|
e.isVar = t;
|
495
|
-
function n(
|
496
|
-
return
|
496
|
+
function n(a) {
|
497
|
+
return a.type === "routePar";
|
497
498
|
}
|
498
499
|
e.isRouterParams = n;
|
499
|
-
function r(
|
500
|
-
return
|
500
|
+
function r(a) {
|
501
|
+
return a.type === "routeAct";
|
501
502
|
}
|
502
503
|
e.isRouterAction = r;
|
503
|
-
function o(
|
504
|
-
return
|
504
|
+
function o(a) {
|
505
|
+
return a.type === "jsFn";
|
505
506
|
}
|
506
|
-
e.
|
507
|
-
function s(
|
508
|
-
return
|
507
|
+
e.isJsFn = o;
|
508
|
+
function s(a) {
|
509
|
+
return a.type === "vf";
|
509
510
|
}
|
510
|
-
e.
|
511
|
-
function i(
|
512
|
-
return
|
511
|
+
e.isVForItem = s;
|
512
|
+
function i(a) {
|
513
|
+
return a.type === "vf-i";
|
513
514
|
}
|
514
|
-
e.
|
515
|
-
function
|
516
|
-
return
|
515
|
+
e.isVForIndex = i;
|
516
|
+
function u(a) {
|
517
|
+
return a.type === "sp";
|
517
518
|
}
|
518
|
-
e.
|
519
|
-
function l(
|
520
|
-
return
|
519
|
+
e.isSlotProp = u;
|
520
|
+
function l(a) {
|
521
|
+
return a.type === "event";
|
521
522
|
}
|
522
|
-
e.
|
523
|
-
function h(
|
524
|
-
return
|
523
|
+
e.isEventContext = l;
|
524
|
+
function h(a) {
|
525
|
+
return a.type === "ele_ref";
|
525
526
|
}
|
526
|
-
e.
|
527
|
-
function a
|
528
|
-
return
|
527
|
+
e.isElementRef = h;
|
528
|
+
function c(a) {
|
529
|
+
return a.type !== void 0;
|
529
530
|
}
|
530
|
-
e.
|
531
|
-
function u(f) {
|
532
|
-
return f.type !== void 0;
|
533
|
-
}
|
534
|
-
e.IsBinding = u;
|
531
|
+
e.IsBinding = c;
|
535
532
|
})(N || (N = {}));
|
536
533
|
const Me = _e(() => []);
|
537
|
-
function
|
534
|
+
function Sr(e) {
|
538
535
|
const t = Me.getOrDefault(e);
|
539
536
|
return t.push(J({})), t.length - 1;
|
540
537
|
}
|
541
|
-
function
|
538
|
+
function Or(e, t, n) {
|
542
539
|
Me.get(e)[t].value = n;
|
543
540
|
}
|
544
|
-
function
|
541
|
+
function Rr(e) {
|
545
542
|
Me.delete(e);
|
546
543
|
}
|
547
|
-
function
|
544
|
+
function Pr() {
|
548
545
|
const e = /* @__PURE__ */ new Map();
|
549
546
|
for (const [n, r] of Me) {
|
550
547
|
const o = r[r.length - 1];
|
@@ -557,45 +554,45 @@ function Rr() {
|
|
557
554
|
getPropsValue: t
|
558
555
|
};
|
559
556
|
}
|
560
|
-
const ln = /* @__PURE__ */ new Map(),
|
561
|
-
function
|
557
|
+
const ln = /* @__PURE__ */ new Map(), pt = _e(() => /* @__PURE__ */ new Map()), fn = /* @__PURE__ */ new Set(), hn = Symbol("vfor");
|
558
|
+
function kr(e) {
|
562
559
|
const t = dn() ?? {};
|
563
|
-
|
560
|
+
Ne(hn, { ...t, [e.fid]: e.key });
|
564
561
|
}
|
565
562
|
function dn() {
|
566
563
|
return ee(hn, void 0);
|
567
564
|
}
|
568
|
-
function
|
565
|
+
function Vr() {
|
569
566
|
const e = dn(), t = /* @__PURE__ */ new Map();
|
570
567
|
return e === void 0 || Object.keys(e).forEach((n) => {
|
571
568
|
t.set(n, e[n]);
|
572
569
|
}), t;
|
573
570
|
}
|
574
|
-
function
|
571
|
+
function Nr(e, t, n, r) {
|
575
572
|
if (r) {
|
576
573
|
fn.add(e);
|
577
574
|
return;
|
578
575
|
}
|
579
576
|
let o;
|
580
577
|
if (n)
|
581
|
-
o = new
|
578
|
+
o = new xr(t);
|
582
579
|
else {
|
583
|
-
const s = Array.isArray(t) ? t : Object.entries(t).map(([i,
|
584
|
-
o = new
|
580
|
+
const s = Array.isArray(t) ? t : Object.entries(t).map(([i, u], l) => [u, i, l]);
|
581
|
+
o = new Cr(s);
|
585
582
|
}
|
586
583
|
ln.set(e, o);
|
587
584
|
}
|
588
|
-
function
|
589
|
-
const r =
|
585
|
+
function Ir(e, t, n) {
|
586
|
+
const r = pt.getOrDefault(e);
|
590
587
|
r.has(t) || r.set(t, Z(n)), r.get(t).value = n;
|
591
588
|
}
|
592
|
-
function
|
589
|
+
function Tr(e) {
|
593
590
|
const t = /* @__PURE__ */ new Set();
|
594
591
|
function n(o) {
|
595
592
|
t.add(o);
|
596
593
|
}
|
597
594
|
function r() {
|
598
|
-
const o =
|
595
|
+
const o = pt.get(e);
|
599
596
|
o !== void 0 && o.forEach((s, i) => {
|
600
597
|
t.has(i) || o.delete(i);
|
601
598
|
});
|
@@ -605,29 +602,29 @@ function Ir(e) {
|
|
605
602
|
removeUnusedKeys: r
|
606
603
|
};
|
607
604
|
}
|
608
|
-
function
|
609
|
-
const t = e, n =
|
605
|
+
function Ar(e) {
|
606
|
+
const t = e, n = Vr();
|
610
607
|
function r(o) {
|
611
608
|
const s = n.get(o) ?? t;
|
612
|
-
return
|
609
|
+
return pt.get(o).get(s).value;
|
613
610
|
}
|
614
611
|
return {
|
615
612
|
getVForIndex: r
|
616
613
|
};
|
617
614
|
}
|
618
|
-
function
|
615
|
+
function $r(e) {
|
619
616
|
return ln.get(e.binding.fid).createRefObjectWithPaths(e);
|
620
617
|
}
|
621
|
-
function
|
618
|
+
function jr(e) {
|
622
619
|
return fn.has(e);
|
623
620
|
}
|
624
|
-
class
|
621
|
+
class Cr {
|
625
622
|
constructor(t) {
|
626
623
|
this.array = t;
|
627
624
|
}
|
628
625
|
createRefObjectWithPaths(t) {
|
629
626
|
const { binding: n } = t, { snapshot: r } = t, { path: o = [] } = n, s = [...o], i = r.getVForIndex(n.fid);
|
630
|
-
return s.unshift(i),
|
627
|
+
return s.unshift(i), je(() => ({
|
631
628
|
get: () => be(
|
632
629
|
this.array,
|
633
630
|
s,
|
@@ -639,7 +636,7 @@ class jr {
|
|
639
636
|
}));
|
640
637
|
}
|
641
638
|
}
|
642
|
-
class
|
639
|
+
class xr {
|
643
640
|
constructor(t) {
|
644
641
|
B(this, "_isDictSource");
|
645
642
|
this.binding = t;
|
@@ -652,17 +649,17 @@ class Cr {
|
|
652
649
|
return this._isDictSource;
|
653
650
|
}
|
654
651
|
createRefObjectWithPaths(t) {
|
655
|
-
const { binding: n } = t, { path: r = [] } = n, o = [...r], { snapshot: s } = t, i = s.getVueRefObject(this.binding),
|
656
|
-
return o.unshift(l, ...h),
|
652
|
+
const { binding: n } = t, { path: r = [] } = n, o = [...r], { snapshot: s } = t, i = s.getVueRefObject(this.binding), u = this.isDictSource(i), l = s.getVForIndex(n.fid), h = u && o.length === 0 ? [0] : [];
|
653
|
+
return o.unshift(l, ...h), je(() => ({
|
657
654
|
get: () => {
|
658
|
-
const
|
655
|
+
const c = q(i), a = u ? Object.entries(c).map(([f, d], v) => [
|
659
656
|
d,
|
660
657
|
f,
|
661
658
|
v
|
662
|
-
]) :
|
659
|
+
]) : c;
|
663
660
|
try {
|
664
661
|
return be(
|
665
|
-
q(
|
662
|
+
q(a),
|
666
663
|
o,
|
667
664
|
s.getObjectToValue
|
668
665
|
);
|
@@ -670,35 +667,32 @@ class Cr {
|
|
670
667
|
return;
|
671
668
|
}
|
672
669
|
},
|
673
|
-
set: (
|
674
|
-
const
|
675
|
-
if (
|
676
|
-
const f = Object.keys(
|
670
|
+
set: (c) => {
|
671
|
+
const a = q(i);
|
672
|
+
if (u) {
|
673
|
+
const f = Object.keys(a);
|
677
674
|
if (l >= f.length)
|
678
675
|
throw new Error("Cannot set value to a non-existent key");
|
679
676
|
const d = f[l];
|
680
677
|
Ze(
|
681
|
-
u,
|
682
|
-
[d],
|
683
678
|
a,
|
679
|
+
[d],
|
680
|
+
c,
|
684
681
|
s.getObjectToValue
|
685
682
|
);
|
686
683
|
return;
|
687
684
|
}
|
688
685
|
Ze(
|
689
|
-
u,
|
690
|
-
o,
|
691
686
|
a,
|
687
|
+
o,
|
688
|
+
c,
|
692
689
|
s.getObjectToValue
|
693
690
|
);
|
694
691
|
}
|
695
692
|
}));
|
696
693
|
}
|
697
694
|
}
|
698
|
-
function
|
699
|
-
return n && (e = `$computed(${e})`, t = { ...t, $computed: U }), L(e, t);
|
700
|
-
}
|
701
|
-
function St(e) {
|
695
|
+
function Rt(e) {
|
702
696
|
return e == null;
|
703
697
|
}
|
704
698
|
function Dr() {
|
@@ -722,14 +716,14 @@ class Ur {
|
|
722
716
|
const r = {};
|
723
717
|
if (t.settings)
|
724
718
|
for (const i in t.settings) {
|
725
|
-
const
|
726
|
-
r[i] =
|
719
|
+
const u = t.settings[i];
|
720
|
+
r[i] = u.defaultValue;
|
727
721
|
}
|
728
722
|
const o = `__vue-devtools-plugin-settings__${t.id}`;
|
729
723
|
let s = Object.assign({}, r);
|
730
724
|
try {
|
731
|
-
const i = localStorage.getItem(o),
|
732
|
-
Object.assign(s,
|
725
|
+
const i = localStorage.getItem(o), u = JSON.parse(i);
|
726
|
+
Object.assign(s, u);
|
733
727
|
} catch {
|
734
728
|
}
|
735
729
|
this.fallbacks = {
|
@@ -746,24 +740,24 @@ class Ur {
|
|
746
740
|
now() {
|
747
741
|
return Wr();
|
748
742
|
}
|
749
|
-
}, n && n.on(Br, (i,
|
750
|
-
i === this.plugin.id && this.fallbacks.setSettings(
|
743
|
+
}, n && n.on(Br, (i, u) => {
|
744
|
+
i === this.plugin.id && this.fallbacks.setSettings(u);
|
751
745
|
}), this.proxiedOn = new Proxy({}, {
|
752
|
-
get: (i,
|
746
|
+
get: (i, u) => this.target ? this.target.on[u] : (...l) => {
|
753
747
|
this.onQueue.push({
|
754
|
-
method:
|
748
|
+
method: u,
|
755
749
|
args: l
|
756
750
|
});
|
757
751
|
}
|
758
752
|
}), this.proxiedTarget = new Proxy({}, {
|
759
|
-
get: (i,
|
760
|
-
method:
|
753
|
+
get: (i, u) => this.target ? this.target[u] : u === "on" ? this.proxiedOn : Object.keys(this.fallbacks).includes(u) ? (...l) => (this.targetQueue.push({
|
754
|
+
method: u,
|
761
755
|
args: l,
|
762
756
|
resolve: () => {
|
763
757
|
}
|
764
|
-
}), this.fallbacks[
|
758
|
+
}), this.fallbacks[u](...l)) : (...l) => new Promise((h) => {
|
765
759
|
this.targetQueue.push({
|
766
|
-
method:
|
760
|
+
method: u,
|
767
761
|
args: l,
|
768
762
|
resolve: h
|
769
763
|
});
|
@@ -791,7 +785,7 @@ function Kr(e, t) {
|
|
791
785
|
}), i && t(i.proxiedTarget);
|
792
786
|
}
|
793
787
|
}
|
794
|
-
var
|
788
|
+
var O = {};
|
795
789
|
const z = typeof document < "u";
|
796
790
|
function mn(e) {
|
797
791
|
return typeof e == "object" || "displayName" in e || "props" in e || "__vccOpts" in e;
|
@@ -806,31 +800,31 @@ function He(e, t) {
|
|
806
800
|
const n = {};
|
807
801
|
for (const r in t) {
|
808
802
|
const o = t[r];
|
809
|
-
n[r] =
|
803
|
+
n[r] = U(o) ? o.map(e) : e(o);
|
810
804
|
}
|
811
805
|
return n;
|
812
806
|
}
|
813
807
|
const ve = () => {
|
814
|
-
},
|
808
|
+
}, U = Array.isArray;
|
815
809
|
function P(e) {
|
816
810
|
const t = Array.from(arguments).slice(1);
|
817
811
|
console.warn.apply(console, ["[Vue Router warn]: " + e].concat(t));
|
818
812
|
}
|
819
813
|
const gn = /#/g, qr = /&/g, Hr = /\//g, zr = /=/g, Jr = /\?/g, vn = /\+/g, Qr = /%5B/g, Yr = /%5D/g, yn = /%5E/g, Xr = /%60/g, wn = /%7B/g, Zr = /%7C/g, En = /%7D/g, eo = /%20/g;
|
820
|
-
function
|
814
|
+
function mt(e) {
|
821
815
|
return encodeURI("" + e).replace(Zr, "|").replace(Qr, "[").replace(Yr, "]");
|
822
816
|
}
|
823
817
|
function to(e) {
|
824
|
-
return
|
818
|
+
return mt(e).replace(wn, "{").replace(En, "}").replace(yn, "^");
|
825
819
|
}
|
826
820
|
function ot(e) {
|
827
|
-
return
|
821
|
+
return mt(e).replace(vn, "%2B").replace(eo, "+").replace(gn, "%23").replace(qr, "%26").replace(Xr, "`").replace(wn, "{").replace(En, "}").replace(yn, "^");
|
828
822
|
}
|
829
823
|
function no(e) {
|
830
824
|
return ot(e).replace(zr, "%3D");
|
831
825
|
}
|
832
826
|
function ro(e) {
|
833
|
-
return
|
827
|
+
return mt(e).replace(gn, "%23").replace(Jr, "%3F");
|
834
828
|
}
|
835
829
|
function oo(e) {
|
836
830
|
return e == null ? "" : ro(e).replace(Hr, "%2F");
|
@@ -839,16 +833,16 @@ function ae(e) {
|
|
839
833
|
try {
|
840
834
|
return decodeURIComponent("" + e);
|
841
835
|
} catch {
|
842
|
-
|
836
|
+
O.NODE_ENV !== "production" && P(`Error decoding "${e}". Using original value`);
|
843
837
|
}
|
844
838
|
return "" + e;
|
845
839
|
}
|
846
840
|
const so = /\/$/, io = (e) => e.replace(so, "");
|
847
841
|
function ze(e, t, n = "/") {
|
848
842
|
let r, o = {}, s = "", i = "";
|
849
|
-
const
|
843
|
+
const u = t.indexOf("#");
|
850
844
|
let l = t.indexOf("?");
|
851
|
-
return
|
845
|
+
return u < l && u >= 0 && (l = -1), l > -1 && (r = t.slice(0, l), s = t.slice(l + 1, u > -1 ? u : t.length), o = e(s)), u > -1 && (r = r || t.slice(0, u), i = t.slice(u, t.length)), r = uo(r ?? t, n), {
|
852
846
|
fullPath: r + (s && "?") + s + i,
|
853
847
|
path: r,
|
854
848
|
query: o,
|
@@ -859,10 +853,10 @@ function ao(e, t) {
|
|
859
853
|
const n = t.query ? e(t.query) : "";
|
860
854
|
return t.path + (n && "?") + n + (t.hash || "");
|
861
855
|
}
|
862
|
-
function
|
856
|
+
function Pt(e, t) {
|
863
857
|
return !t || !e.toLowerCase().startsWith(t.toLowerCase()) ? e : e.slice(t.length) || "/";
|
864
858
|
}
|
865
|
-
function
|
859
|
+
function kt(e, t, n) {
|
866
860
|
const r = t.matched.length - 1, o = n.matched.length - 1;
|
867
861
|
return r > -1 && r === o && te(t.matched[r], n.matched[o]) && _n(t.params, n.params) && e(t.query) === e(n.query) && t.hash === n.hash;
|
868
862
|
}
|
@@ -878,24 +872,24 @@ function _n(e, t) {
|
|
878
872
|
return !0;
|
879
873
|
}
|
880
874
|
function co(e, t) {
|
881
|
-
return
|
875
|
+
return U(e) ? Vt(e, t) : U(t) ? Vt(t, e) : e === t;
|
882
876
|
}
|
883
|
-
function
|
884
|
-
return
|
877
|
+
function Vt(e, t) {
|
878
|
+
return U(t) ? e.length === t.length && e.every((n, r) => n === t[r]) : e.length === 1 && e[0] === t;
|
885
879
|
}
|
886
880
|
function uo(e, t) {
|
887
881
|
if (e.startsWith("/"))
|
888
882
|
return e;
|
889
|
-
if (
|
883
|
+
if (O.NODE_ENV !== "production" && !t.startsWith("/"))
|
890
884
|
return P(`Cannot resolve a relative location without an absolute path. Trying to resolve "${e}" from "${t}". It should look like "/${t}".`), e;
|
891
885
|
if (!e)
|
892
886
|
return t;
|
893
887
|
const n = t.split("/"), r = e.split("/"), o = r[r.length - 1];
|
894
888
|
(o === ".." || o === ".") && r.push("");
|
895
|
-
let s = n.length - 1, i,
|
889
|
+
let s = n.length - 1, i, u;
|
896
890
|
for (i = 0; i < r.length; i++)
|
897
|
-
if (
|
898
|
-
if (
|
891
|
+
if (u = r[i], u !== ".")
|
892
|
+
if (u === "..")
|
899
893
|
s > 1 && s--;
|
900
894
|
else
|
901
895
|
break;
|
@@ -922,7 +916,7 @@ var oe;
|
|
922
916
|
e.back = "back", e.forward = "forward", e.unknown = "";
|
923
917
|
})(oe || (oe = {}));
|
924
918
|
const Je = "";
|
925
|
-
function
|
919
|
+
function bn(e) {
|
926
920
|
if (!e)
|
927
921
|
if (z) {
|
928
922
|
const t = document.querySelector("base");
|
@@ -932,7 +926,7 @@ function On(e) {
|
|
932
926
|
return e[0] !== "/" && e[0] !== "#" && (e = "/" + e), io(e);
|
933
927
|
}
|
934
928
|
const lo = /^[^#]+#/;
|
935
|
-
function
|
929
|
+
function Sn(e, t) {
|
936
930
|
return e.replace(lo, "#") + t;
|
937
931
|
}
|
938
932
|
function fo(e, t) {
|
@@ -951,7 +945,7 @@ function ho(e) {
|
|
951
945
|
let t;
|
952
946
|
if ("el" in e) {
|
953
947
|
const n = e.el, r = typeof n == "string" && n.startsWith("#");
|
954
|
-
if (
|
948
|
+
if (O.NODE_ENV !== "production" && typeof e.el == "string" && (!r || !document.getElementById(e.el.slice(1))))
|
955
949
|
try {
|
956
950
|
const s = document.querySelector(e.el);
|
957
951
|
if (r && s) {
|
@@ -964,7 +958,7 @@ function ho(e) {
|
|
964
958
|
}
|
965
959
|
const o = typeof n == "string" ? r ? document.getElementById(n.slice(1)) : document.querySelector(n) : n;
|
966
960
|
if (!o) {
|
967
|
-
|
961
|
+
O.NODE_ENV !== "production" && P(`Couldn't find element using selector "${e.el}" returned by scrollBehavior.`);
|
968
962
|
return;
|
969
963
|
}
|
970
964
|
t = fo(o, e);
|
@@ -972,7 +966,7 @@ function ho(e) {
|
|
972
966
|
t = e;
|
973
967
|
"scrollBehavior" in document.documentElement.style ? window.scrollTo(t) : window.scrollTo(t.left != null ? t.left : window.scrollX, t.top != null ? t.top : window.scrollY);
|
974
968
|
}
|
975
|
-
function
|
969
|
+
function Nt(e, t) {
|
976
970
|
return (history.state ? history.state.position - t : -1) + e;
|
977
971
|
}
|
978
972
|
const st = /* @__PURE__ */ new Map();
|
@@ -984,18 +978,18 @@ function mo(e) {
|
|
984
978
|
return st.delete(e), t;
|
985
979
|
}
|
986
980
|
let go = () => location.protocol + "//" + location.host;
|
987
|
-
function
|
981
|
+
function On(e, t) {
|
988
982
|
const { pathname: n, search: r, hash: o } = t, s = e.indexOf("#");
|
989
983
|
if (s > -1) {
|
990
|
-
let
|
991
|
-
return l[0] !== "/" && (l = "/" + l),
|
984
|
+
let u = o.includes(e.slice(s)) ? e.slice(s).length : 1, l = o.slice(u);
|
985
|
+
return l[0] !== "/" && (l = "/" + l), Pt(l, "");
|
992
986
|
}
|
993
|
-
return
|
987
|
+
return Pt(n, e) + r + o;
|
994
988
|
}
|
995
989
|
function vo(e, t, n, r) {
|
996
990
|
let o = [], s = [], i = null;
|
997
|
-
const
|
998
|
-
const d =
|
991
|
+
const u = ({ state: f }) => {
|
992
|
+
const d = On(e, location), v = n.value, p = t.value;
|
999
993
|
let g = 0;
|
1000
994
|
if (f) {
|
1001
995
|
if (n.value = d, t.value = f, i && i === v) {
|
@@ -1024,24 +1018,24 @@ function vo(e, t, n, r) {
|
|
1024
1018
|
};
|
1025
1019
|
return s.push(d), d;
|
1026
1020
|
}
|
1027
|
-
function
|
1021
|
+
function c() {
|
1028
1022
|
const { history: f } = window;
|
1029
1023
|
f.state && f.replaceState(I({}, f.state, { scroll: Fe() }), "");
|
1030
1024
|
}
|
1031
|
-
function
|
1025
|
+
function a() {
|
1032
1026
|
for (const f of s)
|
1033
1027
|
f();
|
1034
|
-
s = [], window.removeEventListener("popstate",
|
1028
|
+
s = [], window.removeEventListener("popstate", u), window.removeEventListener("beforeunload", c);
|
1035
1029
|
}
|
1036
|
-
return window.addEventListener("popstate",
|
1030
|
+
return window.addEventListener("popstate", u), window.addEventListener("beforeunload", c, {
|
1037
1031
|
passive: !0
|
1038
1032
|
}), {
|
1039
1033
|
pauseListeners: l,
|
1040
1034
|
listen: h,
|
1041
|
-
destroy:
|
1035
|
+
destroy: a
|
1042
1036
|
};
|
1043
1037
|
}
|
1044
|
-
function
|
1038
|
+
function It(e, t, n, r = !1, o = !1) {
|
1045
1039
|
return {
|
1046
1040
|
back: e,
|
1047
1041
|
current: t,
|
@@ -1053,7 +1047,7 @@ function Nt(e, t, n, r = !1, o = !1) {
|
|
1053
1047
|
}
|
1054
1048
|
function yo(e) {
|
1055
1049
|
const { history: t, location: n } = window, r = {
|
1056
|
-
value:
|
1050
|
+
value: On(e, n)
|
1057
1051
|
}, o = { value: t.state };
|
1058
1052
|
o.value || s(r.value, {
|
1059
1053
|
back: null,
|
@@ -1066,26 +1060,26 @@ function yo(e) {
|
|
1066
1060
|
// scrollBehavior to be triggered without a saved position
|
1067
1061
|
scroll: null
|
1068
1062
|
}, !0);
|
1069
|
-
function s(l, h,
|
1070
|
-
const
|
1063
|
+
function s(l, h, c) {
|
1064
|
+
const a = e.indexOf("#"), f = a > -1 ? (n.host && document.querySelector("base") ? e : e.slice(a)) + l : go() + e + l;
|
1071
1065
|
try {
|
1072
|
-
t[
|
1066
|
+
t[c ? "replaceState" : "pushState"](h, "", f), o.value = h;
|
1073
1067
|
} catch (d) {
|
1074
|
-
|
1068
|
+
O.NODE_ENV !== "production" ? P("Error with push/replace State", d) : console.error(d), n[c ? "replace" : "assign"](f);
|
1075
1069
|
}
|
1076
1070
|
}
|
1077
1071
|
function i(l, h) {
|
1078
|
-
const
|
1072
|
+
const c = I({}, t.state, It(
|
1079
1073
|
o.value.back,
|
1080
1074
|
// keep back and forward entries but override current position
|
1081
1075
|
l,
|
1082
1076
|
o.value.forward,
|
1083
1077
|
!0
|
1084
1078
|
), h, { position: o.value.position });
|
1085
|
-
s(l,
|
1079
|
+
s(l, c, !0), r.value = l;
|
1086
1080
|
}
|
1087
|
-
function
|
1088
|
-
const
|
1081
|
+
function u(l, h) {
|
1082
|
+
const c = I(
|
1089
1083
|
{},
|
1090
1084
|
// use current history state to gracefully handle a wrong call to
|
1091
1085
|
// history.replaceState
|
@@ -1097,23 +1091,23 @@ function yo(e) {
|
|
1097
1091
|
scroll: Fe()
|
1098
1092
|
}
|
1099
1093
|
);
|
1100
|
-
|
1094
|
+
O.NODE_ENV !== "production" && !t.state && P(`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:
|
1101
1095
|
|
1102
1096
|
history.replaceState(history.state, '', url)
|
1103
1097
|
|
1104
|
-
You can find more information at https://router.vuejs.org/guide/migration/#Usage-of-history-state`), s(
|
1105
|
-
const
|
1106
|
-
s(l,
|
1098
|
+
You can find more information at https://router.vuejs.org/guide/migration/#Usage-of-history-state`), s(c.current, c, !0);
|
1099
|
+
const a = I({}, It(r.value, l, null), { position: c.position + 1 }, h);
|
1100
|
+
s(l, a, !1), r.value = l;
|
1107
1101
|
}
|
1108
1102
|
return {
|
1109
1103
|
location: r,
|
1110
1104
|
state: o,
|
1111
|
-
push:
|
1105
|
+
push: u,
|
1112
1106
|
replace: i
|
1113
1107
|
};
|
1114
1108
|
}
|
1115
1109
|
function Rn(e) {
|
1116
|
-
e =
|
1110
|
+
e = bn(e);
|
1117
1111
|
const t = yo(e), n = vo(e, t.state, t.location, t.replace);
|
1118
1112
|
function r(s, i = !0) {
|
1119
1113
|
i || n.pauseListeners(), history.go(s);
|
@@ -1123,7 +1117,7 @@ function Rn(e) {
|
|
1123
1117
|
location: "",
|
1124
1118
|
base: e,
|
1125
1119
|
go: r,
|
1126
|
-
createHref:
|
1120
|
+
createHref: Sn.bind(null, e)
|
1127
1121
|
}, t, n);
|
1128
1122
|
return Object.defineProperty(o, "location", {
|
1129
1123
|
enumerable: !0,
|
@@ -1135,18 +1129,18 @@ function Rn(e) {
|
|
1135
1129
|
}
|
1136
1130
|
function wo(e = "") {
|
1137
1131
|
let t = [], n = [Je], r = 0;
|
1138
|
-
e =
|
1139
|
-
function o(
|
1140
|
-
r++, r !== n.length && n.splice(r), n.push(
|
1132
|
+
e = bn(e);
|
1133
|
+
function o(u) {
|
1134
|
+
r++, r !== n.length && n.splice(r), n.push(u);
|
1141
1135
|
}
|
1142
|
-
function s(
|
1143
|
-
const
|
1136
|
+
function s(u, l, { direction: h, delta: c }) {
|
1137
|
+
const a = {
|
1144
1138
|
direction: h,
|
1145
|
-
delta:
|
1139
|
+
delta: c,
|
1146
1140
|
type: ce.pop
|
1147
1141
|
};
|
1148
1142
|
for (const f of t)
|
1149
|
-
f(
|
1143
|
+
f(u, l, a);
|
1150
1144
|
}
|
1151
1145
|
const i = {
|
1152
1146
|
// rewritten by Object.defineProperty
|
@@ -1154,32 +1148,32 @@ function wo(e = "") {
|
|
1154
1148
|
// TODO: should be kept in queue
|
1155
1149
|
state: {},
|
1156
1150
|
base: e,
|
1157
|
-
createHref:
|
1158
|
-
replace(
|
1159
|
-
n.splice(r--, 1), o(
|
1151
|
+
createHref: Sn.bind(null, e),
|
1152
|
+
replace(u) {
|
1153
|
+
n.splice(r--, 1), o(u);
|
1160
1154
|
},
|
1161
|
-
push(
|
1162
|
-
o(
|
1155
|
+
push(u, l) {
|
1156
|
+
o(u);
|
1163
1157
|
},
|
1164
|
-
listen(
|
1165
|
-
return t.push(
|
1166
|
-
const l = t.indexOf(
|
1158
|
+
listen(u) {
|
1159
|
+
return t.push(u), () => {
|
1160
|
+
const l = t.indexOf(u);
|
1167
1161
|
l > -1 && t.splice(l, 1);
|
1168
1162
|
};
|
1169
1163
|
},
|
1170
1164
|
destroy() {
|
1171
1165
|
t = [], n = [Je], r = 0;
|
1172
1166
|
},
|
1173
|
-
go(
|
1174
|
-
const h = this.location,
|
1167
|
+
go(u, l = !0) {
|
1168
|
+
const h = this.location, c = (
|
1175
1169
|
// we are considering delta === 0 going forward, but in abstract mode
|
1176
1170
|
// using 0 for the delta doesn't make sense like it does in html5 where
|
1177
1171
|
// it reloads the page
|
1178
|
-
|
1172
|
+
u < 0 ? oe.back : oe.forward
|
1179
1173
|
);
|
1180
|
-
r = Math.max(0, Math.min(r +
|
1181
|
-
direction:
|
1182
|
-
delta:
|
1174
|
+
r = Math.max(0, Math.min(r + u, n.length - 1)), l && s(this.location, h, {
|
1175
|
+
direction: c,
|
1176
|
+
delta: u
|
1183
1177
|
});
|
1184
1178
|
}
|
1185
1179
|
};
|
@@ -1189,20 +1183,20 @@ function wo(e = "") {
|
|
1189
1183
|
}), i;
|
1190
1184
|
}
|
1191
1185
|
function Eo(e) {
|
1192
|
-
return e = location.host ? e || location.pathname + location.search : "", e.includes("#") || (e += "#"),
|
1186
|
+
return e = location.host ? e || location.pathname + location.search : "", e.includes("#") || (e += "#"), O.NODE_ENV !== "production" && !e.endsWith("#/") && !e.endsWith("#") && P(`A hash base must end with a "#":
|
1193
1187
|
"${e}" should be "${e.replace(/#.*$/, "#")}".`), Rn(e);
|
1194
1188
|
}
|
1195
|
-
function
|
1189
|
+
function Te(e) {
|
1196
1190
|
return typeof e == "string" || e && typeof e == "object";
|
1197
1191
|
}
|
1198
1192
|
function Pn(e) {
|
1199
1193
|
return typeof e == "string" || typeof e == "symbol";
|
1200
1194
|
}
|
1201
|
-
const it = Symbol(
|
1202
|
-
var
|
1195
|
+
const it = Symbol(O.NODE_ENV !== "production" ? "navigation failure" : "");
|
1196
|
+
var Tt;
|
1203
1197
|
(function(e) {
|
1204
1198
|
e[e.aborted = 4] = "aborted", e[e.cancelled = 8] = "cancelled", e[e.duplicated = 16] = "duplicated";
|
1205
|
-
})(
|
1199
|
+
})(Tt || (Tt = {}));
|
1206
1200
|
const _o = {
|
1207
1201
|
1({ location: e, currentLocation: t }) {
|
1208
1202
|
return `No match for
|
@@ -1211,7 +1205,7 @@ while being at
|
|
1211
1205
|
` + JSON.stringify(t) : ""}`;
|
1212
1206
|
},
|
1213
1207
|
2({ from: e, to: t }) {
|
1214
|
-
return `Redirected from "${e.fullPath}" to "${
|
1208
|
+
return `Redirected from "${e.fullPath}" to "${So(t)}" via a navigation guard.`;
|
1215
1209
|
},
|
1216
1210
|
4({ from: e, to: t }) {
|
1217
1211
|
return `Navigation aborted from "${e.fullPath}" to "${t.fullPath}" via a navigation guard.`;
|
@@ -1224,7 +1218,7 @@ while being at
|
|
1224
1218
|
}
|
1225
1219
|
};
|
1226
1220
|
function ue(e, t) {
|
1227
|
-
return
|
1221
|
+
return O.NODE_ENV !== "production" ? I(new Error(_o[e](t)), {
|
1228
1222
|
type: e,
|
1229
1223
|
[it]: !0
|
1230
1224
|
}, t) : I(new Error(), {
|
@@ -1235,38 +1229,38 @@ function ue(e, t) {
|
|
1235
1229
|
function H(e, t) {
|
1236
1230
|
return e instanceof Error && it in e && (t == null || !!(e.type & t));
|
1237
1231
|
}
|
1238
|
-
const
|
1239
|
-
function
|
1232
|
+
const bo = ["params", "query", "hash"];
|
1233
|
+
function So(e) {
|
1240
1234
|
if (typeof e == "string")
|
1241
1235
|
return e;
|
1242
1236
|
if (e.path != null)
|
1243
1237
|
return e.path;
|
1244
1238
|
const t = {};
|
1245
|
-
for (const n of
|
1239
|
+
for (const n of bo)
|
1246
1240
|
n in e && (t[n] = e[n]);
|
1247
1241
|
return JSON.stringify(t, null, 2);
|
1248
1242
|
}
|
1249
|
-
const
|
1243
|
+
const At = "[^/]+?", Oo = {
|
1250
1244
|
sensitive: !1,
|
1251
1245
|
strict: !1,
|
1252
1246
|
start: !0,
|
1253
1247
|
end: !0
|
1254
1248
|
}, Ro = /[.+*?^${}()[\]/\\]/g;
|
1255
1249
|
function Po(e, t) {
|
1256
|
-
const n = I({},
|
1250
|
+
const n = I({}, Oo, t), r = [];
|
1257
1251
|
let o = n.start ? "^" : "";
|
1258
1252
|
const s = [];
|
1259
1253
|
for (const h of e) {
|
1260
|
-
const
|
1254
|
+
const c = h.length ? [] : [
|
1261
1255
|
90
|
1262
1256
|
/* PathScore.Root */
|
1263
1257
|
];
|
1264
1258
|
n.strict && !h.length && (o += "/");
|
1265
|
-
for (let
|
1266
|
-
const f = h[
|
1259
|
+
for (let a = 0; a < h.length; a++) {
|
1260
|
+
const f = h[a];
|
1267
1261
|
let d = 40 + (n.sensitive ? 0.25 : 0);
|
1268
1262
|
if (f.type === 0)
|
1269
|
-
|
1263
|
+
a || (o += "/"), o += f.value.replace(Ro, "\\$&"), d += 40;
|
1270
1264
|
else if (f.type === 1) {
|
1271
1265
|
const { value: v, repeatable: p, optional: g, regexp: y } = f;
|
1272
1266
|
s.push({
|
@@ -1274,8 +1268,8 @@ function Po(e, t) {
|
|
1274
1268
|
repeatable: p,
|
1275
1269
|
optional: g
|
1276
1270
|
});
|
1277
|
-
const _ = y ||
|
1278
|
-
if (_ !==
|
1271
|
+
const _ = y || At;
|
1272
|
+
if (_ !== At) {
|
1279
1273
|
d += 10;
|
1280
1274
|
try {
|
1281
1275
|
new RegExp(`(${_})`);
|
@@ -1283,14 +1277,14 @@ function Po(e, t) {
|
|
1283
1277
|
throw new Error(`Invalid custom RegExp for param "${v}" (${_}): ` + R.message);
|
1284
1278
|
}
|
1285
1279
|
}
|
1286
|
-
let
|
1287
|
-
|
1280
|
+
let S = p ? `((?:${_})(?:/(?:${_}))*)` : `(${_})`;
|
1281
|
+
a || (S = // avoid an optional / if there are more segments e.g. /:p?-static
|
1288
1282
|
// or /:p?-:p2
|
1289
|
-
g && h.length < 2 ? `(?:/${
|
1283
|
+
g && h.length < 2 ? `(?:/${S})` : "/" + S), g && (S += "?"), o += S, d += 20, g && (d += -8), p && (d += -20), _ === ".*" && (d += -50);
|
1290
1284
|
}
|
1291
|
-
|
1285
|
+
c.push(d);
|
1292
1286
|
}
|
1293
|
-
r.push(
|
1287
|
+
r.push(c);
|
1294
1288
|
}
|
1295
1289
|
if (n.strict && n.end) {
|
1296
1290
|
const h = r.length - 1;
|
@@ -1298,43 +1292,43 @@ function Po(e, t) {
|
|
1298
1292
|
}
|
1299
1293
|
n.strict || (o += "/?"), n.end ? o += "$" : n.strict && !o.endsWith("/") && (o += "(?:/|$)");
|
1300
1294
|
const i = new RegExp(o, n.sensitive ? "" : "i");
|
1301
|
-
function
|
1302
|
-
const
|
1303
|
-
if (!
|
1295
|
+
function u(h) {
|
1296
|
+
const c = h.match(i), a = {};
|
1297
|
+
if (!c)
|
1304
1298
|
return null;
|
1305
|
-
for (let f = 1; f <
|
1306
|
-
const d =
|
1307
|
-
|
1299
|
+
for (let f = 1; f < c.length; f++) {
|
1300
|
+
const d = c[f] || "", v = s[f - 1];
|
1301
|
+
a[v.name] = d && v.repeatable ? d.split("/") : d;
|
1308
1302
|
}
|
1309
|
-
return
|
1303
|
+
return a;
|
1310
1304
|
}
|
1311
1305
|
function l(h) {
|
1312
|
-
let
|
1306
|
+
let c = "", a = !1;
|
1313
1307
|
for (const f of e) {
|
1314
|
-
(!
|
1308
|
+
(!a || !c.endsWith("/")) && (c += "/"), a = !1;
|
1315
1309
|
for (const d of f)
|
1316
1310
|
if (d.type === 0)
|
1317
|
-
|
1311
|
+
c += d.value;
|
1318
1312
|
else if (d.type === 1) {
|
1319
1313
|
const { value: v, repeatable: p, optional: g } = d, y = v in h ? h[v] : "";
|
1320
|
-
if (
|
1314
|
+
if (U(y) && !p)
|
1321
1315
|
throw new Error(`Provided param "${v}" is an array but it is not repeatable (* or + modifiers)`);
|
1322
|
-
const _ =
|
1316
|
+
const _ = U(y) ? y.join("/") : y;
|
1323
1317
|
if (!_)
|
1324
1318
|
if (g)
|
1325
|
-
f.length < 2 && (
|
1319
|
+
f.length < 2 && (c.endsWith("/") ? c = c.slice(0, -1) : a = !0);
|
1326
1320
|
else
|
1327
1321
|
throw new Error(`Missing required param "${v}"`);
|
1328
|
-
|
1322
|
+
c += _;
|
1329
1323
|
}
|
1330
1324
|
}
|
1331
|
-
return
|
1325
|
+
return c || "/";
|
1332
1326
|
}
|
1333
1327
|
return {
|
1334
1328
|
re: i,
|
1335
1329
|
score: r,
|
1336
1330
|
keys: s,
|
1337
|
-
parse:
|
1331
|
+
parse: u,
|
1338
1332
|
stringify: l
|
1339
1333
|
};
|
1340
1334
|
}
|
@@ -1358,14 +1352,14 @@ function kn(e, t) {
|
|
1358
1352
|
n++;
|
1359
1353
|
}
|
1360
1354
|
if (Math.abs(o.length - r.length) === 1) {
|
1361
|
-
if (
|
1355
|
+
if ($t(r))
|
1362
1356
|
return 1;
|
1363
|
-
if (
|
1357
|
+
if ($t(o))
|
1364
1358
|
return -1;
|
1365
1359
|
}
|
1366
1360
|
return o.length - r.length;
|
1367
1361
|
}
|
1368
|
-
function
|
1362
|
+
function $t(e) {
|
1369
1363
|
const t = e[e.length - 1];
|
1370
1364
|
return e.length > 0 && t[t.length - 1] < 0;
|
1371
1365
|
}
|
@@ -1379,7 +1373,7 @@ function Io(e) {
|
|
1379
1373
|
if (e === "/")
|
1380
1374
|
return [[Vo]];
|
1381
1375
|
if (!e.startsWith("/"))
|
1382
|
-
throw new Error(
|
1376
|
+
throw new Error(O.NODE_ENV !== "production" ? `Route paths should start with a "/": "${e}" should be "/${e}".` : `Invalid path "${e}"`);
|
1383
1377
|
function t(d) {
|
1384
1378
|
throw new Error(`ERR (${n})/"${h}": ${d}`);
|
1385
1379
|
}
|
@@ -1389,15 +1383,15 @@ function Io(e) {
|
|
1389
1383
|
function i() {
|
1390
1384
|
s && o.push(s), s = [];
|
1391
1385
|
}
|
1392
|
-
let
|
1393
|
-
function
|
1386
|
+
let u = 0, l, h = "", c = "";
|
1387
|
+
function a() {
|
1394
1388
|
h && (n === 0 ? s.push({
|
1395
1389
|
type: 0,
|
1396
1390
|
value: h
|
1397
1391
|
}) : n === 1 || n === 2 || n === 3 ? (s.length > 1 && (l === "*" || l === "+") && t(`A repeatable param (${h}) must be alone in its segment. eg: '/:ids+.`), s.push({
|
1398
1392
|
type: 1,
|
1399
1393
|
value: h,
|
1400
|
-
regexp:
|
1394
|
+
regexp: c,
|
1401
1395
|
repeatable: l === "*" || l === "+",
|
1402
1396
|
optional: l === "*" || l === "?"
|
1403
1397
|
})) : t("Invalid state to consume buffer"), h = "");
|
@@ -1405,37 +1399,37 @@ function Io(e) {
|
|
1405
1399
|
function f() {
|
1406
1400
|
h += l;
|
1407
1401
|
}
|
1408
|
-
for (;
|
1409
|
-
if (l = e[
|
1402
|
+
for (; u < e.length; ) {
|
1403
|
+
if (l = e[u++], l === "\\" && n !== 2) {
|
1410
1404
|
r = n, n = 4;
|
1411
1405
|
continue;
|
1412
1406
|
}
|
1413
1407
|
switch (n) {
|
1414
1408
|
case 0:
|
1415
|
-
l === "/" ? (h &&
|
1409
|
+
l === "/" ? (h && a(), i()) : l === ":" ? (a(), n = 1) : f();
|
1416
1410
|
break;
|
1417
1411
|
case 4:
|
1418
1412
|
f(), n = r;
|
1419
1413
|
break;
|
1420
1414
|
case 1:
|
1421
|
-
l === "(" ? n = 2 : No.test(l) ? f() : (
|
1415
|
+
l === "(" ? n = 2 : No.test(l) ? f() : (a(), n = 0, l !== "*" && l !== "?" && l !== "+" && u--);
|
1422
1416
|
break;
|
1423
1417
|
case 2:
|
1424
|
-
l === ")" ?
|
1418
|
+
l === ")" ? c[c.length - 1] == "\\" ? c = c.slice(0, -1) + l : n = 3 : c += l;
|
1425
1419
|
break;
|
1426
1420
|
case 3:
|
1427
|
-
|
1421
|
+
a(), n = 0, l !== "*" && l !== "?" && l !== "+" && u--, c = "";
|
1428
1422
|
break;
|
1429
1423
|
default:
|
1430
1424
|
t("Unknown state");
|
1431
1425
|
break;
|
1432
1426
|
}
|
1433
1427
|
}
|
1434
|
-
return n === 2 && t(`Unfinished custom RegExp for param "${h}"`),
|
1428
|
+
return n === 2 && t(`Unfinished custom RegExp for param "${h}"`), a(), i(), o;
|
1435
1429
|
}
|
1436
1430
|
function To(e, t, n) {
|
1437
1431
|
const r = Po(Io(e.path), n);
|
1438
|
-
if (
|
1432
|
+
if (O.NODE_ENV !== "production") {
|
1439
1433
|
const s = /* @__PURE__ */ new Set();
|
1440
1434
|
for (const i of r.keys)
|
1441
1435
|
s.has(i.name) && P(`Found duplicated params with name "${i.name}" for path "${e.path}". Only the last one will be available on "$route.params".`), s.add(i.name);
|
@@ -1451,21 +1445,21 @@ function To(e, t, n) {
|
|
1451
1445
|
}
|
1452
1446
|
function Ao(e, t) {
|
1453
1447
|
const n = [], r = /* @__PURE__ */ new Map();
|
1454
|
-
t =
|
1455
|
-
function o(
|
1456
|
-
return r.get(
|
1457
|
-
}
|
1458
|
-
function s(
|
1459
|
-
const v = !d, p =
|
1460
|
-
|
1461
|
-
const g =
|
1462
|
-
if ("alias" in
|
1463
|
-
const R = typeof
|
1448
|
+
t = Dt({ strict: !1, end: !0, sensitive: !1 }, t);
|
1449
|
+
function o(a) {
|
1450
|
+
return r.get(a);
|
1451
|
+
}
|
1452
|
+
function s(a, f, d) {
|
1453
|
+
const v = !d, p = Ct(a);
|
1454
|
+
O.NODE_ENV !== "production" && xo(p, f), p.aliasOf = d && d.record;
|
1455
|
+
const g = Dt(t, a), y = [p];
|
1456
|
+
if ("alias" in a) {
|
1457
|
+
const R = typeof a.alias == "string" ? [a.alias] : a.alias;
|
1464
1458
|
for (const D of R)
|
1465
1459
|
y.push(
|
1466
1460
|
// we need to normalize again to ensure the `mods` property
|
1467
1461
|
// being non enumerable
|
1468
|
-
|
1462
|
+
Ct(I({}, p, {
|
1469
1463
|
// this allows us to hold a copy of the `components` option
|
1470
1464
|
// so that async components cache is hold on the original record
|
1471
1465
|
components: d ? d.record.components : p.components,
|
@@ -1477,75 +1471,75 @@ function Ao(e, t) {
|
|
1477
1471
|
}))
|
1478
1472
|
);
|
1479
1473
|
}
|
1480
|
-
let _,
|
1474
|
+
let _, S;
|
1481
1475
|
for (const R of y) {
|
1482
1476
|
const { path: D } = R;
|
1483
1477
|
if (f && D[0] !== "/") {
|
1484
1478
|
const C = f.record.path, x = C[C.length - 1] === "/" ? "" : "/";
|
1485
1479
|
R.path = f.record.path + (D && x + D);
|
1486
1480
|
}
|
1487
|
-
if (
|
1481
|
+
if (O.NODE_ENV !== "production" && R.path === "*")
|
1488
1482
|
throw new Error(`Catch all routes ("*") must now be defined using a param with a custom regexp.
|
1489
1483
|
See more at https://router.vuejs.org/guide/migration/#Removed-star-or-catch-all-routes.`);
|
1490
|
-
if (_ = To(R, f, g),
|
1484
|
+
if (_ = To(R, f, g), O.NODE_ENV !== "production" && f && D[0] === "/" && Mo(_, f), d ? (d.alias.push(_), O.NODE_ENV !== "production" && Co(d, _)) : (S = S || _, S !== _ && S.alias.push(_), v && a.name && !xt(_) && (O.NODE_ENV !== "production" && Do(a, f), i(a.name))), Vn(_) && l(_), p.children) {
|
1491
1485
|
const C = p.children;
|
1492
1486
|
for (let x = 0; x < C.length; x++)
|
1493
1487
|
s(C[x], _, d && d.children[x]);
|
1494
1488
|
}
|
1495
1489
|
d = d || _;
|
1496
1490
|
}
|
1497
|
-
return
|
1498
|
-
i(
|
1491
|
+
return S ? () => {
|
1492
|
+
i(S);
|
1499
1493
|
} : ve;
|
1500
1494
|
}
|
1501
|
-
function i(
|
1502
|
-
if (Pn(
|
1503
|
-
const f = r.get(
|
1504
|
-
f && (r.delete(
|
1495
|
+
function i(a) {
|
1496
|
+
if (Pn(a)) {
|
1497
|
+
const f = r.get(a);
|
1498
|
+
f && (r.delete(a), n.splice(n.indexOf(f), 1), f.children.forEach(i), f.alias.forEach(i));
|
1505
1499
|
} else {
|
1506
|
-
const f = n.indexOf(
|
1507
|
-
f > -1 && (n.splice(f, 1),
|
1500
|
+
const f = n.indexOf(a);
|
1501
|
+
f > -1 && (n.splice(f, 1), a.record.name && r.delete(a.record.name), a.children.forEach(i), a.alias.forEach(i));
|
1508
1502
|
}
|
1509
1503
|
}
|
1510
|
-
function
|
1504
|
+
function u() {
|
1511
1505
|
return n;
|
1512
1506
|
}
|
1513
|
-
function l(
|
1514
|
-
const f = Fo(
|
1515
|
-
n.splice(f, 0,
|
1507
|
+
function l(a) {
|
1508
|
+
const f = Fo(a, n);
|
1509
|
+
n.splice(f, 0, a), a.record.name && !xt(a) && r.set(a.record.name, a);
|
1516
1510
|
}
|
1517
|
-
function h(
|
1511
|
+
function h(a, f) {
|
1518
1512
|
let d, v = {}, p, g;
|
1519
|
-
if ("name" in
|
1520
|
-
if (d = r.get(
|
1513
|
+
if ("name" in a && a.name) {
|
1514
|
+
if (d = r.get(a.name), !d)
|
1521
1515
|
throw ue(1, {
|
1522
|
-
location:
|
1516
|
+
location: a
|
1523
1517
|
});
|
1524
|
-
if (
|
1525
|
-
const
|
1526
|
-
|
1518
|
+
if (O.NODE_ENV !== "production") {
|
1519
|
+
const S = Object.keys(a.params || {}).filter((R) => !d.keys.find((D) => D.name === R));
|
1520
|
+
S.length && P(`Discarded invalid param(s) "${S.join('", "')}" when navigating. See https://github.com/vuejs/router/blob/main/packages/router/CHANGELOG.md#414-2022-08-22 for more details.`);
|
1527
1521
|
}
|
1528
1522
|
g = d.record.name, v = I(
|
1529
1523
|
// paramsFromLocation is a new object
|
1530
|
-
|
1524
|
+
jt(
|
1531
1525
|
f.params,
|
1532
1526
|
// only keep params that exist in the resolved location
|
1533
1527
|
// only keep optional params coming from a parent record
|
1534
|
-
d.keys.filter((
|
1528
|
+
d.keys.filter((S) => !S.optional).concat(d.parent ? d.parent.keys.filter((S) => S.optional) : []).map((S) => S.name)
|
1535
1529
|
),
|
1536
1530
|
// discard any existing params in the current location that do not exist here
|
1537
1531
|
// #1497 this ensures better active/exact matching
|
1538
|
-
|
1532
|
+
a.params && jt(a.params, d.keys.map((S) => S.name))
|
1539
1533
|
), p = d.stringify(v);
|
1540
|
-
} else if (
|
1541
|
-
p =
|
1534
|
+
} else if (a.path != null)
|
1535
|
+
p = a.path, O.NODE_ENV !== "production" && !p.startsWith("/") && P(`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.`), d = n.find((S) => S.re.test(p)), d && (v = d.parse(p), g = d.record.name);
|
1542
1536
|
else {
|
1543
|
-
if (d = f.name ? r.get(f.name) : n.find((
|
1537
|
+
if (d = f.name ? r.get(f.name) : n.find((S) => S.re.test(f.path)), !d)
|
1544
1538
|
throw ue(1, {
|
1545
|
-
location:
|
1539
|
+
location: a,
|
1546
1540
|
currentLocation: f
|
1547
1541
|
});
|
1548
|
-
g = d.record.name, v = I({}, f.params,
|
1542
|
+
g = d.record.name, v = I({}, f.params, a.params), p = d.stringify(v);
|
1549
1543
|
}
|
1550
1544
|
const y = [];
|
1551
1545
|
let _ = d;
|
@@ -1559,26 +1553,26 @@ See more at https://router.vuejs.org/guide/migration/#Removed-star-or-catch-all-
|
|
1559
1553
|
meta: jo(y)
|
1560
1554
|
};
|
1561
1555
|
}
|
1562
|
-
e.forEach((
|
1563
|
-
function
|
1556
|
+
e.forEach((a) => s(a));
|
1557
|
+
function c() {
|
1564
1558
|
n.length = 0, r.clear();
|
1565
1559
|
}
|
1566
1560
|
return {
|
1567
1561
|
addRoute: s,
|
1568
1562
|
resolve: h,
|
1569
1563
|
removeRoute: i,
|
1570
|
-
clearRoutes:
|
1571
|
-
getRoutes:
|
1564
|
+
clearRoutes: c,
|
1565
|
+
getRoutes: u,
|
1572
1566
|
getRecordMatcher: o
|
1573
1567
|
};
|
1574
1568
|
}
|
1575
|
-
function
|
1569
|
+
function jt(e, t) {
|
1576
1570
|
const n = {};
|
1577
1571
|
for (const r of t)
|
1578
1572
|
r in e && (n[r] = e[r]);
|
1579
1573
|
return n;
|
1580
1574
|
}
|
1581
|
-
function
|
1575
|
+
function Ct(e) {
|
1582
1576
|
const t = {
|
1583
1577
|
path: e.path,
|
1584
1578
|
redirect: e.redirect,
|
@@ -1609,7 +1603,7 @@ function $o(e) {
|
|
1609
1603
|
t[r] = typeof n == "object" ? n[r] : n;
|
1610
1604
|
return t;
|
1611
1605
|
}
|
1612
|
-
function
|
1606
|
+
function xt(e) {
|
1613
1607
|
for (; e; ) {
|
1614
1608
|
if (e.record.aliasOf)
|
1615
1609
|
return !0;
|
@@ -1620,7 +1614,7 @@ function Ct(e) {
|
|
1620
1614
|
function jo(e) {
|
1621
1615
|
return e.reduce((t, n) => I(t, n.meta), {});
|
1622
1616
|
}
|
1623
|
-
function
|
1617
|
+
function Dt(e, t) {
|
1624
1618
|
const n = {};
|
1625
1619
|
for (const r in e)
|
1626
1620
|
n[r] = r in t ? t[r] : e[r];
|
@@ -1657,7 +1651,7 @@ function Fo(e, t) {
|
|
1657
1651
|
kn(e, t[s]) < 0 ? r = s : n = s + 1;
|
1658
1652
|
}
|
1659
1653
|
const o = Bo(e);
|
1660
|
-
return o && (r = t.lastIndexOf(o, r - 1),
|
1654
|
+
return o && (r = t.lastIndexOf(o, r - 1), O.NODE_ENV !== "production" && r < 0 && P(`Finding ancestor route "${o.record.path}" failed for "${e.record.path}"`)), r;
|
1661
1655
|
}
|
1662
1656
|
function Bo(e) {
|
1663
1657
|
let t = e;
|
@@ -1674,16 +1668,16 @@ function Lo(e) {
|
|
1674
1668
|
return t;
|
1675
1669
|
const r = (e[0] === "?" ? e.slice(1) : e).split("&");
|
1676
1670
|
for (let o = 0; o < r.length; ++o) {
|
1677
|
-
const s = r[o].replace(vn, " "), i = s.indexOf("="),
|
1678
|
-
if (
|
1679
|
-
let h = t[
|
1680
|
-
|
1671
|
+
const s = r[o].replace(vn, " "), i = s.indexOf("="), u = ae(i < 0 ? s : s.slice(0, i)), l = i < 0 ? null : ae(s.slice(i + 1));
|
1672
|
+
if (u in t) {
|
1673
|
+
let h = t[u];
|
1674
|
+
U(h) || (h = t[u] = [h]), h.push(l);
|
1681
1675
|
} else
|
1682
|
-
t[
|
1676
|
+
t[u] = l;
|
1683
1677
|
}
|
1684
1678
|
return t;
|
1685
1679
|
}
|
1686
|
-
function
|
1680
|
+
function Mt(e) {
|
1687
1681
|
let t = "";
|
1688
1682
|
for (let n in e) {
|
1689
1683
|
const r = e[n];
|
@@ -1691,7 +1685,7 @@ function Dt(e) {
|
|
1691
1685
|
r !== void 0 && (t += (t.length ? "&" : "") + n);
|
1692
1686
|
continue;
|
1693
1687
|
}
|
1694
|
-
(
|
1688
|
+
(U(r) ? r.map((s) => s && ot(s)) : [r && ot(r)]).forEach((s) => {
|
1695
1689
|
s !== void 0 && (t += (t.length ? "&" : "") + n, s != null && (t += "=" + s));
|
1696
1690
|
});
|
1697
1691
|
}
|
@@ -1701,11 +1695,11 @@ function Wo(e) {
|
|
1701
1695
|
const t = {};
|
1702
1696
|
for (const n in e) {
|
1703
1697
|
const r = e[n];
|
1704
|
-
r !== void 0 && (t[n] =
|
1698
|
+
r !== void 0 && (t[n] = U(r) ? r.map((o) => o == null ? null : "" + o) : r == null ? r : "" + r);
|
1705
1699
|
}
|
1706
1700
|
return t;
|
1707
1701
|
}
|
1708
|
-
const Uo = Symbol(
|
1702
|
+
const Uo = Symbol(O.NODE_ENV !== "production" ? "router view location matched" : ""), Ft = Symbol(O.NODE_ENV !== "production" ? "router view depth" : ""), Be = Symbol(O.NODE_ENV !== "production" ? "router" : ""), gt = Symbol(O.NODE_ENV !== "production" ? "route location" : ""), ct = Symbol(O.NODE_ENV !== "production" ? "router view location" : "");
|
1709
1703
|
function pe() {
|
1710
1704
|
let e = [];
|
1711
1705
|
function t(r) {
|
@@ -1726,30 +1720,30 @@ function pe() {
|
|
1726
1720
|
function X(e, t, n, r, o, s = (i) => i()) {
|
1727
1721
|
const i = r && // name is defined if record is because of the function overload
|
1728
1722
|
(r.enterCallbacks[o] = r.enterCallbacks[o] || []);
|
1729
|
-
return () => new Promise((
|
1723
|
+
return () => new Promise((u, l) => {
|
1730
1724
|
const h = (f) => {
|
1731
1725
|
f === !1 ? l(ue(4, {
|
1732
1726
|
from: n,
|
1733
1727
|
to: t
|
1734
|
-
})) : f instanceof Error ? l(f) :
|
1728
|
+
})) : f instanceof Error ? l(f) : Te(f) ? l(ue(2, {
|
1735
1729
|
from: t,
|
1736
1730
|
to: f
|
1737
1731
|
})) : (i && // since enterCallbackArray is truthy, both record and name also are
|
1738
|
-
r.enterCallbacks[o] === i && typeof f == "function" && i.push(f),
|
1739
|
-
},
|
1740
|
-
let
|
1741
|
-
if (e.length < 3 && (
|
1732
|
+
r.enterCallbacks[o] === i && typeof f == "function" && i.push(f), u());
|
1733
|
+
}, c = s(() => e.call(r && r.instances[o], t, n, O.NODE_ENV !== "production" ? Ko(h, t, n) : h));
|
1734
|
+
let a = Promise.resolve(c);
|
1735
|
+
if (e.length < 3 && (a = a.then(h)), O.NODE_ENV !== "production" && e.length > 2) {
|
1742
1736
|
const f = `The "next" callback was never called inside of ${e.name ? '"' + e.name + '"' : ""}:
|
1743
1737
|
${e.toString()}
|
1744
1738
|
. If you are returning a value instead of calling "next", make sure to remove the "next" parameter from your function.`;
|
1745
|
-
if (typeof
|
1746
|
-
|
1747
|
-
else if (
|
1739
|
+
if (typeof c == "object" && "then" in c)
|
1740
|
+
a = a.then((d) => h._called ? d : (P(f), Promise.reject(new Error("Invalid navigation guard"))));
|
1741
|
+
else if (c !== void 0 && !h._called) {
|
1748
1742
|
P(f), l(new Error("Invalid navigation guard"));
|
1749
1743
|
return;
|
1750
1744
|
}
|
1751
1745
|
}
|
1752
|
-
|
1746
|
+
a.catch((f) => l(f));
|
1753
1747
|
});
|
1754
1748
|
}
|
1755
1749
|
function Ko(e, t, n) {
|
@@ -1761,94 +1755,94 @@ function Ko(e, t, n) {
|
|
1761
1755
|
function Qe(e, t, n, r, o = (s) => s()) {
|
1762
1756
|
const s = [];
|
1763
1757
|
for (const i of e) {
|
1764
|
-
|
1765
|
-
for (const
|
1766
|
-
let l = i.components[
|
1767
|
-
if (
|
1758
|
+
O.NODE_ENV !== "production" && !i.components && !i.children.length && P(`Record with path "${i.path}" is either missing a "component(s)" or "children" property.`);
|
1759
|
+
for (const u in i.components) {
|
1760
|
+
let l = i.components[u];
|
1761
|
+
if (O.NODE_ENV !== "production") {
|
1768
1762
|
if (!l || typeof l != "object" && typeof l != "function")
|
1769
|
-
throw P(`Component "${
|
1763
|
+
throw P(`Component "${u}" in record with path "${i.path}" is not a valid component. Received "${String(l)}".`), new Error("Invalid route component");
|
1770
1764
|
if ("then" in l) {
|
1771
|
-
P(`Component "${
|
1765
|
+
P(`Component "${u}" in record with path "${i.path}" is a Promise instead of a function that returns a Promise. Did you write "import('./MyPage.vue')" instead of "() => import('./MyPage.vue')" ? This will break in production if not fixed.`);
|
1772
1766
|
const h = l;
|
1773
1767
|
l = () => h;
|
1774
1768
|
} else l.__asyncLoader && // warn only once per component
|
1775
|
-
!l.__warnedDefineAsync && (l.__warnedDefineAsync = !0, P(`Component "${
|
1769
|
+
!l.__warnedDefineAsync && (l.__warnedDefineAsync = !0, P(`Component "${u}" in record with path "${i.path}" is defined using "defineAsyncComponent()". Write "() => import('./MyPage.vue')" instead of "defineAsyncComponent(() => import('./MyPage.vue'))".`));
|
1776
1770
|
}
|
1777
|
-
if (!(t !== "beforeRouteEnter" && !i.instances[
|
1771
|
+
if (!(t !== "beforeRouteEnter" && !i.instances[u]))
|
1778
1772
|
if (mn(l)) {
|
1779
|
-
const
|
1780
|
-
|
1773
|
+
const c = (l.__vccOpts || l)[t];
|
1774
|
+
c && s.push(X(c, n, r, i, u, o));
|
1781
1775
|
} else {
|
1782
1776
|
let h = l();
|
1783
|
-
|
1784
|
-
if (!
|
1785
|
-
throw new Error(`Couldn't resolve component "${
|
1786
|
-
const
|
1787
|
-
i.mods[
|
1788
|
-
const d = (
|
1789
|
-
return d && X(d, n, r, i,
|
1777
|
+
O.NODE_ENV !== "production" && !("catch" in h) && (P(`Component "${u}" in record with path "${i.path}" is a function that does not return a Promise. If you were passing a functional component, make sure to add a "displayName" to the component. This will break in production if not fixed.`), h = Promise.resolve(h)), s.push(() => h.then((c) => {
|
1778
|
+
if (!c)
|
1779
|
+
throw new Error(`Couldn't resolve component "${u}" at "${i.path}"`);
|
1780
|
+
const a = Gr(c) ? c.default : c;
|
1781
|
+
i.mods[u] = c, i.components[u] = a;
|
1782
|
+
const d = (a.__vccOpts || a)[t];
|
1783
|
+
return d && X(d, n, r, i, u, o)();
|
1790
1784
|
}));
|
1791
1785
|
}
|
1792
1786
|
}
|
1793
1787
|
}
|
1794
1788
|
return s;
|
1795
1789
|
}
|
1796
|
-
function
|
1797
|
-
const t = ee(Be), n = ee(
|
1790
|
+
function Bt(e) {
|
1791
|
+
const t = ee(Be), n = ee(gt);
|
1798
1792
|
let r = !1, o = null;
|
1799
|
-
const s =
|
1800
|
-
const
|
1801
|
-
return
|
1802
|
-
- to:`,
|
1793
|
+
const s = K(() => {
|
1794
|
+
const c = L(e.to);
|
1795
|
+
return O.NODE_ENV !== "production" && (!r || c !== o) && (Te(c) || (r ? P(`Invalid value for prop "to" in useLink()
|
1796
|
+
- to:`, c, `
|
1803
1797
|
- previous to:`, o, `
|
1804
1798
|
- props:`, e) : P(`Invalid value for prop "to" in useLink()
|
1805
|
-
- to:`,
|
1806
|
-
- props:`, e)), o =
|
1807
|
-
}), i =
|
1808
|
-
const { matched:
|
1799
|
+
- to:`, c, `
|
1800
|
+
- props:`, e)), o = c, r = !0), t.resolve(c);
|
1801
|
+
}), i = K(() => {
|
1802
|
+
const { matched: c } = s.value, { length: a } = c, f = c[a - 1], d = n.matched;
|
1809
1803
|
if (!f || !d.length)
|
1810
1804
|
return -1;
|
1811
1805
|
const v = d.findIndex(te.bind(null, f));
|
1812
1806
|
if (v > -1)
|
1813
1807
|
return v;
|
1814
|
-
const p =
|
1808
|
+
const p = Lt(c[a - 2]);
|
1815
1809
|
return (
|
1816
1810
|
// we are dealing with nested routes
|
1817
|
-
|
1811
|
+
a > 1 && // if the parent and matched route have the same path, this link is
|
1818
1812
|
// referring to the empty child. Or we currently are on a different
|
1819
1813
|
// child of the same parent
|
1820
|
-
|
1821
|
-
d[d.length - 1].path !== p ? d.findIndex(te.bind(null, a
|
1814
|
+
Lt(f) === p && // avoid comparing the child with its parent
|
1815
|
+
d[d.length - 1].path !== p ? d.findIndex(te.bind(null, c[a - 2])) : v
|
1822
1816
|
);
|
1823
|
-
}),
|
1824
|
-
function h(
|
1825
|
-
if (zo(
|
1826
|
-
const
|
1827
|
-
|
1817
|
+
}), u = K(() => i.value > -1 && Jo(n.params, s.value.params)), l = K(() => i.value > -1 && i.value === n.matched.length - 1 && _n(n.params, s.value.params));
|
1818
|
+
function h(c = {}) {
|
1819
|
+
if (zo(c)) {
|
1820
|
+
const a = t[L(e.replace) ? "replace" : "push"](
|
1821
|
+
L(e.to)
|
1828
1822
|
// avoid uncaught errors are they are logged anyway
|
1829
1823
|
).catch(ve);
|
1830
|
-
return e.viewTransition && typeof document < "u" && "startViewTransition" in document && document.startViewTransition(() =>
|
1824
|
+
return e.viewTransition && typeof document < "u" && "startViewTransition" in document && document.startViewTransition(() => a), a;
|
1831
1825
|
}
|
1832
1826
|
return Promise.resolve();
|
1833
1827
|
}
|
1834
|
-
if (
|
1835
|
-
const
|
1836
|
-
if (
|
1837
|
-
const
|
1828
|
+
if (O.NODE_ENV !== "production" && z) {
|
1829
|
+
const c = Jt();
|
1830
|
+
if (c) {
|
1831
|
+
const a = {
|
1838
1832
|
route: s.value,
|
1839
|
-
isActive:
|
1833
|
+
isActive: u.value,
|
1840
1834
|
isExactActive: l.value,
|
1841
1835
|
error: null
|
1842
1836
|
};
|
1843
|
-
|
1844
|
-
|
1837
|
+
c.__vrl_devtools = c.__vrl_devtools || [], c.__vrl_devtools.push(a), zt(() => {
|
1838
|
+
a.route = s.value, a.isActive = u.value, a.isExactActive = l.value, a.error = Te(L(e.to)) ? null : 'Invalid "to" value';
|
1845
1839
|
}, { flush: "post" });
|
1846
1840
|
}
|
1847
1841
|
}
|
1848
1842
|
return {
|
1849
1843
|
route: s,
|
1850
|
-
href:
|
1851
|
-
isActive:
|
1844
|
+
href: K(() => s.value.href),
|
1845
|
+
isActive: u,
|
1852
1846
|
isExactActive: l,
|
1853
1847
|
navigate: h
|
1854
1848
|
};
|
@@ -1874,16 +1868,16 @@ const qo = /* @__PURE__ */ F({
|
|
1874
1868
|
default: "page"
|
1875
1869
|
}
|
1876
1870
|
},
|
1877
|
-
useLink:
|
1871
|
+
useLink: Bt,
|
1878
1872
|
setup(e, { slots: t }) {
|
1879
|
-
const n =
|
1880
|
-
[
|
1873
|
+
const n = Jn(Bt(e)), { options: r } = ee(Be), o = K(() => ({
|
1874
|
+
[Wt(e.activeClass, r.linkActiveClass, "router-link-active")]: n.isActive,
|
1881
1875
|
// [getLinkClass(
|
1882
1876
|
// props.inactiveClass,
|
1883
1877
|
// options.linkInactiveClass,
|
1884
1878
|
// 'router-link-inactive'
|
1885
1879
|
// )]: !link.isExactActive,
|
1886
|
-
[
|
1880
|
+
[Wt(e.exactActiveClass, r.linkExactActiveClass, "router-link-exact-active")]: n.isExactActive
|
1887
1881
|
}));
|
1888
1882
|
return () => {
|
1889
1883
|
const s = t.default && Go(t.default(n));
|
@@ -1914,15 +1908,15 @@ function Jo(e, t) {
|
|
1914
1908
|
if (typeof r == "string") {
|
1915
1909
|
if (r !== o)
|
1916
1910
|
return !1;
|
1917
|
-
} else if (!
|
1911
|
+
} else if (!U(o) || o.length !== r.length || r.some((s, i) => s !== o[i]))
|
1918
1912
|
return !1;
|
1919
1913
|
}
|
1920
1914
|
return !0;
|
1921
1915
|
}
|
1922
|
-
function
|
1916
|
+
function Lt(e) {
|
1923
1917
|
return e ? e.aliasOf ? e.aliasOf.path : e.path : "";
|
1924
1918
|
}
|
1925
|
-
const
|
1919
|
+
const Wt = (e, t, n) => e ?? t ?? n, Qo = /* @__PURE__ */ F({
|
1926
1920
|
name: "RouterView",
|
1927
1921
|
// #674 we manually inherit them
|
1928
1922
|
inheritAttrs: !1,
|
@@ -1937,51 +1931,51 @@ const Lt = (e, t, n) => e ?? t ?? n, Qo = /* @__PURE__ */ F({
|
|
1937
1931
|
// https://github.com/vuejs/router/issues/1315
|
1938
1932
|
compatConfig: { MODE: 3 },
|
1939
1933
|
setup(e, { attrs: t, slots: n }) {
|
1940
|
-
|
1941
|
-
const r = ee(ct), o =
|
1942
|
-
let h =
|
1943
|
-
const { matched:
|
1944
|
-
let
|
1945
|
-
for (; (
|
1934
|
+
O.NODE_ENV !== "production" && Xo();
|
1935
|
+
const r = ee(ct), o = K(() => e.route || r.value), s = ee(Ft, 0), i = K(() => {
|
1936
|
+
let h = L(s);
|
1937
|
+
const { matched: c } = o.value;
|
1938
|
+
let a;
|
1939
|
+
for (; (a = c[h]) && !a.components; )
|
1946
1940
|
h++;
|
1947
1941
|
return h;
|
1948
|
-
}),
|
1949
|
-
|
1942
|
+
}), u = K(() => o.value.matched[i.value]);
|
1943
|
+
Ne(Ft, K(() => i.value + 1)), Ne(Uo, u), Ne(ct, o);
|
1950
1944
|
const l = Z();
|
1951
|
-
return G(() => [l.value,
|
1952
|
-
|
1945
|
+
return G(() => [l.value, u.value, e.name], ([h, c, a], [f, d, v]) => {
|
1946
|
+
c && (c.instances[a] = h, d && d !== c && h && h === f && (c.leaveGuards.size || (c.leaveGuards = d.leaveGuards), c.updateGuards.size || (c.updateGuards = d.updateGuards))), h && c && // if there is no instance but to and from are the same this might be
|
1953
1947
|
// the first visit
|
1954
|
-
(!d || !te(
|
1948
|
+
(!d || !te(c, d) || !f) && (c.enterCallbacks[a] || []).forEach((p) => p(h));
|
1955
1949
|
}, { flush: "post" }), () => {
|
1956
|
-
const h = o.value,
|
1950
|
+
const h = o.value, c = e.name, a = u.value, f = a && a.components[c];
|
1957
1951
|
if (!f)
|
1958
|
-
return
|
1959
|
-
const d =
|
1952
|
+
return Ut(n.default, { Component: f, route: h });
|
1953
|
+
const d = a.props[c], v = d ? d === !0 ? h.params : typeof d == "function" ? d(h) : d : null, g = A(f, I({}, v, t, {
|
1960
1954
|
onVnodeUnmounted: (y) => {
|
1961
|
-
y.component.isUnmounted && (
|
1955
|
+
y.component.isUnmounted && (a.instances[c] = null);
|
1962
1956
|
},
|
1963
1957
|
ref: l
|
1964
1958
|
}));
|
1965
|
-
if (
|
1959
|
+
if (O.NODE_ENV !== "production" && z && g.ref) {
|
1966
1960
|
const y = {
|
1967
1961
|
depth: i.value,
|
1968
|
-
name:
|
1969
|
-
path:
|
1970
|
-
meta:
|
1962
|
+
name: a.name,
|
1963
|
+
path: a.path,
|
1964
|
+
meta: a.meta
|
1971
1965
|
};
|
1972
|
-
(
|
1973
|
-
|
1966
|
+
(U(g.ref) ? g.ref.map((S) => S.i) : [g.ref.i]).forEach((S) => {
|
1967
|
+
S.__vrv_devtools = y;
|
1974
1968
|
});
|
1975
1969
|
}
|
1976
1970
|
return (
|
1977
1971
|
// pass the vnode to the slot as a prop.
|
1978
1972
|
// h and <component :is="..."> both accept vnodes
|
1979
|
-
|
1973
|
+
Ut(n.default, { Component: g, route: h }) || g
|
1980
1974
|
);
|
1981
1975
|
};
|
1982
1976
|
}
|
1983
1977
|
});
|
1984
|
-
function
|
1978
|
+
function Ut(e, t) {
|
1985
1979
|
if (!e)
|
1986
1980
|
return null;
|
1987
1981
|
const n = e(t);
|
@@ -1989,7 +1983,7 @@ function Wt(e, t) {
|
|
1989
1983
|
}
|
1990
1984
|
const Yo = Qo;
|
1991
1985
|
function Xo() {
|
1992
|
-
const e =
|
1986
|
+
const e = Jt(), t = e.parent && e.parent.type.name, n = e.parent && e.parent.subTree && e.parent.subTree.type;
|
1993
1987
|
if (t && (t === "KeepAlive" || t.includes("Transition")) && typeof n == "object" && n.name === "RouterView") {
|
1994
1988
|
const r = t === "KeepAlive" ? "keep-alive" : "transition";
|
1995
1989
|
P(`<router-view> can no longer be used directly inside <transition> or <keep-alive>.
|
@@ -2017,7 +2011,7 @@ function me(e, t) {
|
|
2017
2011
|
}
|
2018
2012
|
};
|
2019
2013
|
}
|
2020
|
-
function
|
2014
|
+
function Ve(e) {
|
2021
2015
|
return {
|
2022
2016
|
_custom: {
|
2023
2017
|
display: e
|
@@ -2039,26 +2033,26 @@ function es(e, t, n) {
|
|
2039
2033
|
componentStateTypes: ["Routing"],
|
2040
2034
|
app: e
|
2041
2035
|
}, (o) => {
|
2042
|
-
typeof o.now != "function" && console.warn("[Vue Router]: You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."), o.on.inspectComponent((
|
2043
|
-
|
2036
|
+
typeof o.now != "function" && console.warn("[Vue Router]: You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."), o.on.inspectComponent((c, a) => {
|
2037
|
+
c.instanceData && c.instanceData.state.push({
|
2044
2038
|
type: "Routing",
|
2045
2039
|
key: "$route",
|
2046
2040
|
editable: !1,
|
2047
2041
|
value: me(t.currentRoute.value, "Current Route")
|
2048
2042
|
});
|
2049
|
-
}), o.on.visitComponentTree(({ treeNode:
|
2050
|
-
if (
|
2051
|
-
const f =
|
2052
|
-
|
2043
|
+
}), o.on.visitComponentTree(({ treeNode: c, componentInstance: a }) => {
|
2044
|
+
if (a.__vrv_devtools) {
|
2045
|
+
const f = a.__vrv_devtools;
|
2046
|
+
c.tags.push({
|
2053
2047
|
label: (f.name ? `${f.name.toString()}: ` : "") + f.path,
|
2054
2048
|
textColor: 0,
|
2055
2049
|
tooltip: "This component is rendered by <router-view>",
|
2056
2050
|
backgroundColor: Nn
|
2057
2051
|
});
|
2058
2052
|
}
|
2059
|
-
|
2053
|
+
U(a.__vrl_devtools) && (a.__devtoolsApi = o, a.__vrl_devtools.forEach((f) => {
|
2060
2054
|
let d = f.route.path, v = An, p = "", g = 0;
|
2061
|
-
f.error ? (d = f.error, v = ss, g = is) : f.isExactActive ? (v = Tn, p = "This is exactly active") : f.isActive && (v = In, p = "This link is active"),
|
2055
|
+
f.error ? (d = f.error, v = ss, g = is) : f.isExactActive ? (v = Tn, p = "This is exactly active") : f.isActive && (v = In, p = "This link is active"), c.tags.push({
|
2062
2056
|
label: d,
|
2063
2057
|
textColor: g,
|
2064
2058
|
tooltip: p,
|
@@ -2066,48 +2060,48 @@ function es(e, t, n) {
|
|
2066
2060
|
});
|
2067
2061
|
}));
|
2068
2062
|
}), G(t.currentRoute, () => {
|
2069
|
-
l(), o.notifyComponentUpdate(), o.sendInspectorTree(
|
2063
|
+
l(), o.notifyComponentUpdate(), o.sendInspectorTree(u), o.sendInspectorState(u);
|
2070
2064
|
});
|
2071
2065
|
const s = "router:navigations:" + r;
|
2072
2066
|
o.addTimelineLayer({
|
2073
2067
|
id: s,
|
2074
2068
|
label: `Router${r ? " " + r : ""} Navigations`,
|
2075
2069
|
color: 4237508
|
2076
|
-
}), t.onError((
|
2070
|
+
}), t.onError((c, a) => {
|
2077
2071
|
o.addTimelineEvent({
|
2078
2072
|
layerId: s,
|
2079
2073
|
event: {
|
2080
2074
|
title: "Error during Navigation",
|
2081
|
-
subtitle:
|
2075
|
+
subtitle: a.fullPath,
|
2082
2076
|
logType: "error",
|
2083
2077
|
time: o.now(),
|
2084
|
-
data: { error:
|
2085
|
-
groupId:
|
2078
|
+
data: { error: c },
|
2079
|
+
groupId: a.meta.__navigationId
|
2086
2080
|
}
|
2087
2081
|
});
|
2088
2082
|
});
|
2089
2083
|
let i = 0;
|
2090
|
-
t.beforeEach((
|
2084
|
+
t.beforeEach((c, a) => {
|
2091
2085
|
const f = {
|
2092
|
-
guard:
|
2093
|
-
from: me(
|
2094
|
-
to: me(
|
2086
|
+
guard: Ve("beforeEach"),
|
2087
|
+
from: me(a, "Current Location during this navigation"),
|
2088
|
+
to: me(c, "Target location")
|
2095
2089
|
};
|
2096
|
-
Object.defineProperty(
|
2090
|
+
Object.defineProperty(c.meta, "__navigationId", {
|
2097
2091
|
value: i++
|
2098
2092
|
}), o.addTimelineEvent({
|
2099
2093
|
layerId: s,
|
2100
2094
|
event: {
|
2101
2095
|
time: o.now(),
|
2102
2096
|
title: "Start of navigation",
|
2103
|
-
subtitle:
|
2097
|
+
subtitle: c.fullPath,
|
2104
2098
|
data: f,
|
2105
|
-
groupId:
|
2099
|
+
groupId: c.meta.__navigationId
|
2106
2100
|
}
|
2107
2101
|
});
|
2108
|
-
}), t.afterEach((
|
2102
|
+
}), t.afterEach((c, a, f) => {
|
2109
2103
|
const d = {
|
2110
|
-
guard:
|
2104
|
+
guard: Ve("afterEach")
|
2111
2105
|
};
|
2112
2106
|
f ? (d.failure = {
|
2113
2107
|
_custom: {
|
@@ -2117,21 +2111,21 @@ function es(e, t, n) {
|
|
2117
2111
|
tooltip: "Navigation Failure",
|
2118
2112
|
value: f
|
2119
2113
|
}
|
2120
|
-
}, d.status =
|
2114
|
+
}, d.status = Ve("❌")) : d.status = Ve("✅"), d.from = me(a, "Current Location during this navigation"), d.to = me(c, "Target location"), o.addTimelineEvent({
|
2121
2115
|
layerId: s,
|
2122
2116
|
event: {
|
2123
2117
|
title: "End of navigation",
|
2124
|
-
subtitle:
|
2118
|
+
subtitle: c.fullPath,
|
2125
2119
|
time: o.now(),
|
2126
2120
|
data: d,
|
2127
2121
|
logType: f ? "warning" : "default",
|
2128
|
-
groupId:
|
2122
|
+
groupId: c.meta.__navigationId
|
2129
2123
|
}
|
2130
2124
|
});
|
2131
2125
|
});
|
2132
|
-
const
|
2126
|
+
const u = "router-inspector:" + r;
|
2133
2127
|
o.addInspector({
|
2134
|
-
id:
|
2128
|
+
id: u,
|
2135
2129
|
label: "Routes" + (r ? " " + r : ""),
|
2136
2130
|
icon: "book",
|
2137
2131
|
treeFilterPlaceholder: "Search routes"
|
@@ -2139,26 +2133,26 @@ function es(e, t, n) {
|
|
2139
2133
|
function l() {
|
2140
2134
|
if (!h)
|
2141
2135
|
return;
|
2142
|
-
const
|
2143
|
-
let
|
2136
|
+
const c = h;
|
2137
|
+
let a = n.getRoutes().filter((f) => !f.parent || // these routes have a parent with no component which will not appear in the view
|
2144
2138
|
// therefore we still need to include them
|
2145
2139
|
!f.parent.record.components);
|
2146
|
-
|
2140
|
+
a.forEach(Cn), c.filter && (a = a.filter((f) => (
|
2147
2141
|
// save matches state based on the payload
|
2148
|
-
ut(f,
|
2149
|
-
))),
|
2142
|
+
ut(f, c.filter.toLowerCase())
|
2143
|
+
))), a.forEach((f) => jn(f, t.currentRoute.value)), c.rootNodes = a.map($n);
|
2150
2144
|
}
|
2151
2145
|
let h;
|
2152
|
-
o.on.getInspectorTree((
|
2153
|
-
h =
|
2154
|
-
}), o.on.getInspectorState((
|
2155
|
-
if (
|
2156
|
-
const f = n.getRoutes().find((d) => d.record.__vd_id ===
|
2157
|
-
f && (
|
2146
|
+
o.on.getInspectorTree((c) => {
|
2147
|
+
h = c, c.app === e && c.inspectorId === u && l();
|
2148
|
+
}), o.on.getInspectorState((c) => {
|
2149
|
+
if (c.app === e && c.inspectorId === u) {
|
2150
|
+
const f = n.getRoutes().find((d) => d.record.__vd_id === c.nodeId);
|
2151
|
+
f && (c.state = {
|
2158
2152
|
options: ns(f)
|
2159
2153
|
});
|
2160
2154
|
}
|
2161
|
-
}), o.sendInspectorTree(
|
2155
|
+
}), o.sendInspectorTree(u), o.sendInspectorState(u);
|
2162
2156
|
});
|
2163
2157
|
}
|
2164
2158
|
function ts(e) {
|
@@ -2271,23 +2265,23 @@ function us(e, t) {
|
|
2271
2265
|
return n;
|
2272
2266
|
}
|
2273
2267
|
function ls(e) {
|
2274
|
-
const t = Ao(e.routes, e), n = e.parseQuery || Lo, r = e.stringifyQuery ||
|
2275
|
-
if (
|
2268
|
+
const t = Ao(e.routes, e), n = e.parseQuery || Lo, r = e.stringifyQuery || Mt, o = e.history;
|
2269
|
+
if (O.NODE_ENV !== "production" && !o)
|
2276
2270
|
throw new Error('Provide the "history" option when calling "createRouter()": https://router.vuejs.org/api/interfaces/RouterOptions.html#history');
|
2277
|
-
const s = pe(), i = pe(),
|
2271
|
+
const s = pe(), i = pe(), u = pe(), l = J(Y);
|
2278
2272
|
let h = Y;
|
2279
2273
|
z && e.scrollBehavior && "scrollRestoration" in history && (history.scrollRestoration = "manual");
|
2280
|
-
const
|
2274
|
+
const c = He.bind(null, (m) => "" + m), a = He.bind(null, oo), f = (
|
2281
2275
|
// @ts-expect-error: intentionally avoid the type check
|
2282
2276
|
He.bind(null, ae)
|
2283
2277
|
);
|
2284
2278
|
function d(m, E) {
|
2285
2279
|
let w, b;
|
2286
|
-
return Pn(m) ? (w = t.getRecordMatcher(m),
|
2280
|
+
return Pn(m) ? (w = t.getRecordMatcher(m), O.NODE_ENV !== "production" && !w && P(`Parent route "${String(m)}" not found when adding child route`, E), b = E) : b = m, t.addRoute(b, w);
|
2287
2281
|
}
|
2288
2282
|
function v(m) {
|
2289
2283
|
const E = t.getRecordMatcher(m);
|
2290
|
-
E ? t.removeRoute(E) :
|
2284
|
+
E ? t.removeRoute(E) : O.NODE_ENV !== "production" && P(`Cannot remove non-existent route "${String(m)}"`);
|
2291
2285
|
}
|
2292
2286
|
function p() {
|
2293
2287
|
return t.getRoutes().map((m) => m.record);
|
@@ -2298,19 +2292,19 @@ function ls(e) {
|
|
2298
2292
|
function y(m, E) {
|
2299
2293
|
if (E = I({}, E || l.value), typeof m == "string") {
|
2300
2294
|
const k = ze(n, m, E.path), $ = t.resolve({ path: k.path }, E), re = o.createHref(k.fullPath);
|
2301
|
-
return
|
2295
|
+
return O.NODE_ENV !== "production" && (re.startsWith("//") ? P(`Location "${m}" resolved to "${re}". A resolved location cannot start with multiple slashes.`) : $.matched.length || P(`No match found for location with path "${m}"`)), I(k, $, {
|
2302
2296
|
params: f($.params),
|
2303
2297
|
hash: ae(k.hash),
|
2304
2298
|
redirectedFrom: void 0,
|
2305
2299
|
href: re
|
2306
2300
|
});
|
2307
2301
|
}
|
2308
|
-
if (
|
2302
|
+
if (O.NODE_ENV !== "production" && !Te(m))
|
2309
2303
|
return P(`router.resolve() was passed an invalid location. This will fail in production.
|
2310
2304
|
- Location:`, m), y({});
|
2311
2305
|
let w;
|
2312
2306
|
if (m.path != null)
|
2313
|
-
|
2307
|
+
O.NODE_ENV !== "production" && "params" in m && !("name" in m) && // @ts-expect-error: the type is never
|
2314
2308
|
Object.keys(m.params).length && P(`Path "${m.path}" was passed with params but they will be ignored. Use a named route alongside params instead.`), w = I({}, m, {
|
2315
2309
|
path: ze(n, m.path, E.path).path
|
2316
2310
|
});
|
@@ -2319,16 +2313,16 @@ function ls(e) {
|
|
2319
2313
|
for (const $ in k)
|
2320
2314
|
k[$] == null && delete k[$];
|
2321
2315
|
w = I({}, m, {
|
2322
|
-
params:
|
2323
|
-
}), E.params =
|
2316
|
+
params: a(k)
|
2317
|
+
}), E.params = a(E.params);
|
2324
2318
|
}
|
2325
2319
|
const b = t.resolve(w, E), T = m.hash || "";
|
2326
|
-
|
2320
|
+
O.NODE_ENV !== "production" && T && !T.startsWith("#") && P(`A \`hash\` should always start with the character "#". Replace "${T}" with "#${T}".`), b.params = c(f(b.params));
|
2327
2321
|
const j = ao(r, I({}, m, {
|
2328
2322
|
hash: to(T),
|
2329
2323
|
path: b.path
|
2330
2324
|
})), V = o.createHref(j);
|
2331
|
-
return
|
2325
|
+
return O.NODE_ENV !== "production" && (V.startsWith("//") ? P(`Location "${m}" resolved to "${V}". A resolved location cannot start with multiple slashes.`) : b.matched.length || P(`No match found for location with path "${m.path != null ? m.path : m}"`)), I({
|
2332
2326
|
fullPath: j,
|
2333
2327
|
// keep the hash encoded so fullPath is effectively path + encodedQuery +
|
2334
2328
|
// hash
|
@@ -2339,7 +2333,7 @@ function ls(e) {
|
|
2339
2333
|
// numbers at `$route.query`, but at the point, the user will have to
|
2340
2334
|
// use their own type anyway.
|
2341
2335
|
// https://github.com/vuejs/router/issues/328#issuecomment-649481567
|
2342
|
-
r ===
|
2336
|
+
r === Mt ? Wo(m.query) : m.query || {}
|
2343
2337
|
)
|
2344
2338
|
}, b, {
|
2345
2339
|
redirectedFrom: void 0,
|
@@ -2349,7 +2343,7 @@ function ls(e) {
|
|
2349
2343
|
function _(m) {
|
2350
2344
|
return typeof m == "string" ? ze(n, m, l.value.path) : I({}, m);
|
2351
2345
|
}
|
2352
|
-
function
|
2346
|
+
function S(m, E) {
|
2353
2347
|
if (h !== m)
|
2354
2348
|
return ue(8, {
|
2355
2349
|
from: E,
|
@@ -2370,7 +2364,7 @@ function ls(e) {
|
|
2370
2364
|
if (typeof b == "string" && (b = b.includes("?") || b.includes("#") ? b = _(b) : (
|
2371
2365
|
// force empty params
|
2372
2366
|
{ path: b }
|
2373
|
-
), b.params = {}),
|
2367
|
+
), b.params = {}), O.NODE_ENV !== "production" && b.path == null && !("name" in b))
|
2374
2368
|
throw P(`Invalid redirect found:
|
2375
2369
|
${JSON.stringify(b, null, 2)}
|
2376
2370
|
when navigating to "${m.fullPath}". A redirect must contain a name or path. This will break in production.`), new Error("Invalid redirect");
|
@@ -2397,7 +2391,7 @@ ${JSON.stringify(b, null, 2)}
|
|
2397
2391
|
const $ = w;
|
2398
2392
|
$.redirectedFrom = E;
|
2399
2393
|
let re;
|
2400
|
-
return !j &&
|
2394
|
+
return !j && kt(r, b, w) && (re = ue(16, { to: $, from: b }), _t(
|
2401
2395
|
b,
|
2402
2396
|
b,
|
2403
2397
|
// this is a push, the only way for it to be triggered from a
|
@@ -2406,7 +2400,7 @@ ${JSON.stringify(b, null, 2)}
|
|
2406
2400
|
// This cannot be the first navigation because the initial location
|
2407
2401
|
// cannot be manually navigated to
|
2408
2402
|
!1
|
2409
|
-
)), (re ? Promise.resolve(re) :
|
2403
|
+
)), (re ? Promise.resolve(re) : vt($, b)).catch((M) => H(M) ? (
|
2410
2404
|
// navigation redirects still mark the router as ready
|
2411
2405
|
H(
|
2412
2406
|
M,
|
@@ -2423,8 +2417,8 @@ ${JSON.stringify(b, null, 2)}
|
|
2423
2417
|
2
|
2424
2418
|
/* ErrorTypes.NAVIGATION_GUARD_REDIRECT */
|
2425
2419
|
))
|
2426
|
-
return
|
2427
|
-
|
2420
|
+
return O.NODE_ENV !== "production" && // we are redirecting to the same location we were already at
|
2421
|
+
kt(r, y(M.to), $) && // and we have done it a couple of times
|
2428
2422
|
E && // @ts-expect-error: added only in dev
|
2429
2423
|
(E._count = E._count ? (
|
2430
2424
|
// @ts-expect-error
|
@@ -2443,19 +2437,19 @@ ${JSON.stringify(b, null, 2)}
|
|
2443
2437
|
E || $
|
2444
2438
|
);
|
2445
2439
|
} else
|
2446
|
-
M =
|
2447
|
-
return
|
2440
|
+
M = wt($, b, !0, V, T);
|
2441
|
+
return yt($, b, M), M;
|
2448
2442
|
});
|
2449
2443
|
}
|
2450
2444
|
function Le(m, E) {
|
2451
|
-
const w =
|
2445
|
+
const w = S(m, E);
|
2452
2446
|
return w ? Promise.reject(w) : Promise.resolve();
|
2453
2447
|
}
|
2454
2448
|
function le(m) {
|
2455
|
-
const E =
|
2449
|
+
const E = Pe.values().next().value;
|
2456
2450
|
return E && typeof E.runWithContext == "function" ? E.runWithContext(m) : m();
|
2457
2451
|
}
|
2458
|
-
function
|
2452
|
+
function vt(m, E) {
|
2459
2453
|
let w;
|
2460
2454
|
const [b, T, j] = fs(m, E);
|
2461
2455
|
w = Qe(b.reverse(), "beforeRouteLeave", m, E);
|
@@ -2480,7 +2474,7 @@ ${JSON.stringify(b, null, 2)}
|
|
2480
2474
|
w = [];
|
2481
2475
|
for (const k of j)
|
2482
2476
|
if (k.beforeEnter)
|
2483
|
-
if (
|
2477
|
+
if (U(k.beforeEnter))
|
2484
2478
|
for (const $ of k.beforeEnter)
|
2485
2479
|
w.push(X($, m, E));
|
2486
2480
|
else
|
@@ -2497,22 +2491,22 @@ ${JSON.stringify(b, null, 2)}
|
|
2497
2491
|
/* ErrorTypes.NAVIGATION_CANCELLED */
|
2498
2492
|
) ? k : Promise.reject(k));
|
2499
2493
|
}
|
2500
|
-
function
|
2501
|
-
|
2494
|
+
function yt(m, E, w) {
|
2495
|
+
u.list().forEach((b) => le(() => b(m, E, w)));
|
2502
2496
|
}
|
2503
|
-
function
|
2504
|
-
const j =
|
2497
|
+
function wt(m, E, w, b, T) {
|
2498
|
+
const j = S(m, E);
|
2505
2499
|
if (j)
|
2506
2500
|
return j;
|
2507
2501
|
const V = E === Y, k = z ? history.state : {};
|
2508
2502
|
w && (b || V ? o.replace(m.fullPath, I({
|
2509
2503
|
scroll: V && k && k.scroll
|
2510
|
-
}, T)) : o.push(m.fullPath, T)), l.value = m,
|
2504
|
+
}, T)) : o.push(m.fullPath, T)), l.value = m, _t(m, E, w, V), Ke();
|
2511
2505
|
}
|
2512
2506
|
let fe;
|
2513
|
-
function
|
2507
|
+
function Ln() {
|
2514
2508
|
fe || (fe = o.listen((m, E, w) => {
|
2515
|
-
if (!
|
2509
|
+
if (!bt.listening)
|
2516
2510
|
return;
|
2517
2511
|
const b = y(m), T = C(b);
|
2518
2512
|
if (T) {
|
@@ -2521,7 +2515,7 @@ ${JSON.stringify(b, null, 2)}
|
|
2521
2515
|
}
|
2522
2516
|
h = b;
|
2523
2517
|
const j = l.value;
|
2524
|
-
z && po(
|
2518
|
+
z && po(Nt(j.fullPath, w.delta), Fe()), vt(b, j).catch((V) => H(
|
2525
2519
|
V,
|
2526
2520
|
12
|
2527
2521
|
/* ErrorTypes.NAVIGATION_CANCELLED */
|
@@ -2542,7 +2536,7 @@ ${JSON.stringify(b, null, 2)}
|
|
2542
2536
|
/* ErrorTypes.NAVIGATION_DUPLICATED */
|
2543
2537
|
) && !w.delta && w.type === ce.pop && o.go(-1, !1);
|
2544
2538
|
}).catch(ve), Promise.reject()) : (w.delta && o.go(-w.delta, !1), Ue(V, b, j))).then((V) => {
|
2545
|
-
V = V ||
|
2539
|
+
V = V || wt(
|
2546
2540
|
// after navigation, all matched components are resolved
|
2547
2541
|
b,
|
2548
2542
|
j,
|
@@ -2557,34 +2551,34 @@ ${JSON.stringify(b, null, 2)}
|
|
2557
2551
|
V,
|
2558
2552
|
20
|
2559
2553
|
/* ErrorTypes.NAVIGATION_DUPLICATED */
|
2560
|
-
) && o.go(-1, !1)),
|
2554
|
+
) && o.go(-1, !1)), yt(b, j, V);
|
2561
2555
|
}).catch(ve);
|
2562
2556
|
}));
|
2563
2557
|
}
|
2564
|
-
let We = pe(),
|
2558
|
+
let We = pe(), Et = pe(), Re;
|
2565
2559
|
function Ue(m, E, w) {
|
2566
2560
|
Ke(m);
|
2567
|
-
const b =
|
2568
|
-
return b.length ? b.forEach((T) => T(m, E, w)) : (
|
2561
|
+
const b = Et.list();
|
2562
|
+
return b.length ? b.forEach((T) => T(m, E, w)) : (O.NODE_ENV !== "production" && P("uncaught error during route navigation:"), console.error(m)), Promise.reject(m);
|
2569
2563
|
}
|
2570
|
-
function
|
2571
|
-
return
|
2564
|
+
function Wn() {
|
2565
|
+
return Re && l.value !== Y ? Promise.resolve() : new Promise((m, E) => {
|
2572
2566
|
We.add([m, E]);
|
2573
2567
|
});
|
2574
2568
|
}
|
2575
2569
|
function Ke(m) {
|
2576
|
-
return
|
2570
|
+
return Re || (Re = !m, Ln(), We.list().forEach(([E, w]) => m ? w(m) : E()), We.reset()), m;
|
2577
2571
|
}
|
2578
|
-
function
|
2572
|
+
function _t(m, E, w, b) {
|
2579
2573
|
const { scrollBehavior: T } = e;
|
2580
2574
|
if (!z || !T)
|
2581
2575
|
return Promise.resolve();
|
2582
|
-
const j = !w && mo(
|
2583
|
-
return
|
2576
|
+
const j = !w && mo(Nt(m.fullPath, 0)) || (b || !w) && history.state && history.state.scroll || null;
|
2577
|
+
return Ie().then(() => T(m, E, j)).then((V) => V && ho(V)).catch((V) => Ue(V, m, E));
|
2584
2578
|
}
|
2585
2579
|
const Ge = (m) => o.go(m);
|
2586
2580
|
let qe;
|
2587
|
-
const
|
2581
|
+
const Pe = /* @__PURE__ */ new Set(), bt = {
|
2588
2582
|
currentRoute: l,
|
2589
2583
|
listening: !0,
|
2590
2584
|
addRoute: d,
|
@@ -2601,18 +2595,18 @@ ${JSON.stringify(b, null, 2)}
|
|
2601
2595
|
forward: () => Ge(1),
|
2602
2596
|
beforeEach: s.add,
|
2603
2597
|
beforeResolve: i.add,
|
2604
|
-
afterEach:
|
2605
|
-
onError:
|
2606
|
-
isReady:
|
2598
|
+
afterEach: u.add,
|
2599
|
+
onError: Et.add,
|
2600
|
+
isReady: Wn,
|
2607
2601
|
install(m) {
|
2608
2602
|
const E = this;
|
2609
2603
|
m.component("RouterLink", Ho), m.component("RouterView", Yo), m.config.globalProperties.$router = E, Object.defineProperty(m.config.globalProperties, "$route", {
|
2610
2604
|
enumerable: !0,
|
2611
|
-
get: () =>
|
2605
|
+
get: () => L(l)
|
2612
2606
|
}), z && // used for the initial navigation client side to avoid pushing
|
2613
2607
|
// multiple times when the router is used in multiple apps
|
2614
2608
|
!qe && l.value === Y && (qe = !0, R(o.location).catch((T) => {
|
2615
|
-
|
2609
|
+
O.NODE_ENV !== "production" && P("Unexpected error when starting the router:", T);
|
2616
2610
|
}));
|
2617
2611
|
const w = {};
|
2618
2612
|
for (const T in Y)
|
@@ -2620,23 +2614,23 @@ ${JSON.stringify(b, null, 2)}
|
|
2620
2614
|
get: () => l.value[T],
|
2621
2615
|
enumerable: !0
|
2622
2616
|
});
|
2623
|
-
m.provide(Be, E), m.provide(
|
2617
|
+
m.provide(Be, E), m.provide(gt, zn(w)), m.provide(ct, l);
|
2624
2618
|
const b = m.unmount;
|
2625
|
-
|
2626
|
-
|
2627
|
-
},
|
2619
|
+
Pe.add(m), m.unmount = function() {
|
2620
|
+
Pe.delete(m), Pe.size < 1 && (h = Y, fe && fe(), fe = null, l.value = Y, qe = !1, Re = !1), b();
|
2621
|
+
}, O.NODE_ENV !== "production" && z && es(m, E, t);
|
2628
2622
|
}
|
2629
2623
|
};
|
2630
2624
|
function se(m) {
|
2631
2625
|
return m.reduce((E, w) => E.then(() => le(w)), Promise.resolve());
|
2632
2626
|
}
|
2633
|
-
return
|
2627
|
+
return bt;
|
2634
2628
|
}
|
2635
2629
|
function fs(e, t) {
|
2636
2630
|
const n = [], r = [], o = [], s = Math.max(t.matched.length, e.matched.length);
|
2637
2631
|
for (let i = 0; i < s; i++) {
|
2638
|
-
const
|
2639
|
-
|
2632
|
+
const u = t.matched[i];
|
2633
|
+
u && (e.matched.find((h) => te(h, u)) ? r.push(u) : n.push(u));
|
2640
2634
|
const l = e.matched[i];
|
2641
2635
|
l && (t.matched.find((h) => te(h, l)) || o.push(l));
|
2642
2636
|
}
|
@@ -2646,23 +2640,33 @@ function hs() {
|
|
2646
2640
|
return ee(Be);
|
2647
2641
|
}
|
2648
2642
|
function ds(e) {
|
2649
|
-
return ee(
|
2643
|
+
return ee(gt);
|
2644
|
+
}
|
2645
|
+
const xn = /* @__PURE__ */ new Map();
|
2646
|
+
function ps(e) {
|
2647
|
+
var t;
|
2648
|
+
(t = e.jsFn) == null || t.forEach((n) => {
|
2649
|
+
xn.set(n.id, W(n.code));
|
2650
|
+
});
|
2651
|
+
}
|
2652
|
+
function ms(e) {
|
2653
|
+
return xn.get(e);
|
2650
2654
|
}
|
2651
2655
|
function ne(e) {
|
2652
|
-
let t = sn(), n =
|
2653
|
-
function
|
2656
|
+
let t = sn(), n = Pr(), r = Ar(e), o = un(), s = hs(), i = ds();
|
2657
|
+
function u(p) {
|
2654
2658
|
p.scopeSnapshot && (t = p.scopeSnapshot), p.slotSnapshot && (n = p.slotSnapshot), p.vforSnapshot && (r = p.vforSnapshot), p.elementRefSnapshot && (o = p.elementRefSnapshot), p.routerSnapshot && (s = p.routerSnapshot);
|
2655
2659
|
}
|
2656
2660
|
function l(p) {
|
2657
2661
|
if (N.isVar(p))
|
2658
2662
|
return q(h(p));
|
2659
2663
|
if (N.isVForItem(p))
|
2660
|
-
return
|
2664
|
+
return jr(p.fid) ? r.getVForIndex(p.fid) : q(h(p));
|
2661
2665
|
if (N.isVForIndex(p))
|
2662
2666
|
return r.getVForIndex(p.fid);
|
2663
|
-
if (N.
|
2664
|
-
const {
|
2665
|
-
return
|
2667
|
+
if (N.isJsFn(p)) {
|
2668
|
+
const { id: g } = p;
|
2669
|
+
return ms(g);
|
2666
2670
|
}
|
2667
2671
|
if (N.isSlotProp(p))
|
2668
2672
|
return n.getPropsValue(p);
|
@@ -2672,14 +2676,14 @@ function ne(e) {
|
|
2672
2676
|
}
|
2673
2677
|
function h(p) {
|
2674
2678
|
if (N.isVar(p)) {
|
2675
|
-
const g = t.getVueRef(p) ||
|
2676
|
-
return
|
2679
|
+
const g = t.getVueRef(p) || wr(p);
|
2680
|
+
return Ot(g, {
|
2677
2681
|
paths: p.path,
|
2678
2682
|
getBindableValueFn: l
|
2679
2683
|
});
|
2680
2684
|
}
|
2681
2685
|
if (N.isVForItem(p))
|
2682
|
-
return
|
2686
|
+
return $r({
|
2683
2687
|
binding: p,
|
2684
2688
|
snapshot: v
|
2685
2689
|
});
|
@@ -2687,25 +2691,23 @@ function ne(e) {
|
|
2687
2691
|
return () => l(p);
|
2688
2692
|
if (N.isRouterParams(p)) {
|
2689
2693
|
const { prop: g = "params" } = p;
|
2690
|
-
return
|
2694
|
+
return Ot(() => i[g], {
|
2691
2695
|
paths: p.path,
|
2692
2696
|
getBindableValueFn: l
|
2693
2697
|
});
|
2694
2698
|
}
|
2695
2699
|
throw new Error(`Invalid binding: ${p}`);
|
2696
2700
|
}
|
2697
|
-
function
|
2701
|
+
function c(p) {
|
2698
2702
|
if (N.isVar(p) || N.isVForItem(p))
|
2699
2703
|
return h(p);
|
2700
|
-
if (N.isVForIndex(p))
|
2704
|
+
if (N.isVForIndex(p) || N.isJsFn(p))
|
2701
2705
|
return l(p);
|
2702
|
-
if (N.isJs(p))
|
2703
|
-
return null;
|
2704
2706
|
if (N.isRouterParams(p))
|
2705
2707
|
return h(p);
|
2706
2708
|
throw new Error(`Invalid binding: ${p}`);
|
2707
2709
|
}
|
2708
|
-
function
|
2710
|
+
function a(p) {
|
2709
2711
|
if (N.isVar(p))
|
2710
2712
|
return {
|
2711
2713
|
sid: p.sid,
|
@@ -2722,8 +2724,8 @@ function ne(e) {
|
|
2722
2724
|
fid: p.fid,
|
2723
2725
|
value: null
|
2724
2726
|
};
|
2725
|
-
if (N.
|
2726
|
-
return
|
2727
|
+
if (N.isJsFn(p))
|
2728
|
+
return l(p);
|
2727
2729
|
}
|
2728
2730
|
function f(p) {
|
2729
2731
|
var g, y;
|
@@ -2737,34 +2739,29 @@ function ne(e) {
|
|
2737
2739
|
});
|
2738
2740
|
}
|
2739
2741
|
function d(p, g) {
|
2740
|
-
if (
|
2742
|
+
if (Rt(g) || Rt(p.values))
|
2741
2743
|
return;
|
2742
2744
|
g = g;
|
2743
2745
|
const y = p.values, _ = p.skips || new Array(g.length).fill(0);
|
2744
|
-
g.forEach((
|
2746
|
+
g.forEach((S, R) => {
|
2745
2747
|
if (_[R] === 1)
|
2746
2748
|
return;
|
2747
|
-
if (N.isVar(
|
2748
|
-
const C = h(
|
2749
|
+
if (N.isVar(S)) {
|
2750
|
+
const C = h(S);
|
2749
2751
|
C.value = y[R];
|
2750
2752
|
return;
|
2751
2753
|
}
|
2752
|
-
if (N.isRouterAction(
|
2754
|
+
if (N.isRouterAction(S)) {
|
2753
2755
|
const C = y[R], x = s[C.fn];
|
2754
2756
|
x(...C.args);
|
2755
2757
|
return;
|
2756
2758
|
}
|
2757
|
-
if (N.isElementRef(
|
2758
|
-
const C = o.getRef(
|
2759
|
+
if (N.isElementRef(S)) {
|
2760
|
+
const C = o.getRef(S).value, x = y[R], { method: Le, args: le = [] } = x;
|
2759
2761
|
C[Le](...le);
|
2760
2762
|
return;
|
2761
2763
|
}
|
2762
|
-
|
2763
|
-
const C = y[R], x = L(C);
|
2764
|
-
typeof x == "function" && x();
|
2765
|
-
return;
|
2766
|
-
}
|
2767
|
-
const D = h(O);
|
2764
|
+
const D = h(S);
|
2768
2765
|
D.value = y[R];
|
2769
2766
|
});
|
2770
2767
|
}
|
@@ -2772,19 +2769,19 @@ function ne(e) {
|
|
2772
2769
|
getVForIndex: r.getVForIndex,
|
2773
2770
|
getObjectToValue: l,
|
2774
2771
|
getVueRefObject: h,
|
2775
|
-
getVueRefObjectOrValue:
|
2776
|
-
getBindingServerInfo:
|
2772
|
+
getVueRefObjectOrValue: c,
|
2773
|
+
getBindingServerInfo: a,
|
2777
2774
|
updateRefFromServer: f,
|
2778
2775
|
updateOutputsRefFromServer: d,
|
2779
|
-
replaceSnapshot:
|
2776
|
+
replaceSnapshot: u
|
2780
2777
|
};
|
2781
2778
|
return v;
|
2782
2779
|
}
|
2783
|
-
class
|
2780
|
+
class gs {
|
2784
2781
|
async eventSend(t, n) {
|
2785
|
-
const { fType: r, hKey: o, key: s } = t, i = Xe().webServerInfo,
|
2782
|
+
const { fType: r, hKey: o, key: s } = t, i = Xe().webServerInfo, u = s !== void 0 ? { key: s } : {}, l = r === "sync" ? i.event_url : i.event_async_url;
|
2786
2783
|
let h = {};
|
2787
|
-
const
|
2784
|
+
const c = await fetch(l, {
|
2788
2785
|
method: "POST",
|
2789
2786
|
headers: {
|
2790
2787
|
"Content-Type": "application/json"
|
@@ -2792,19 +2789,19 @@ class ps {
|
|
2792
2789
|
body: JSON.stringify({
|
2793
2790
|
bind: n,
|
2794
2791
|
hKey: o,
|
2795
|
-
...
|
2792
|
+
...u,
|
2796
2793
|
page: ye(),
|
2797
2794
|
...h
|
2798
2795
|
})
|
2799
2796
|
});
|
2800
|
-
if (!
|
2801
|
-
throw new Error(`HTTP error! status: ${
|
2802
|
-
return await
|
2797
|
+
if (!c.ok)
|
2798
|
+
throw new Error(`HTTP error! status: ${c.status}`);
|
2799
|
+
return await c.json();
|
2803
2800
|
}
|
2804
2801
|
async watchSend(t) {
|
2805
|
-
const { outputs: n, fType: r, key: o } = t.watchConfig, s = Xe().webServerInfo, i = r === "sync" ? s.watch_url : s.watch_async_url,
|
2802
|
+
const { outputs: n, fType: r, key: o } = t.watchConfig, s = Xe().webServerInfo, i = r === "sync" ? s.watch_url : s.watch_async_url, u = t.getServerInputs(), l = {
|
2806
2803
|
key: o,
|
2807
|
-
input:
|
2804
|
+
input: u,
|
2808
2805
|
page: ye()
|
2809
2806
|
};
|
2810
2807
|
return await (await fetch(i, {
|
@@ -2816,17 +2813,17 @@ class ps {
|
|
2816
2813
|
})).json();
|
2817
2814
|
}
|
2818
2815
|
}
|
2819
|
-
class
|
2816
|
+
class vs {
|
2820
2817
|
async eventSend(t, n) {
|
2821
2818
|
const { fType: r, hKey: o, key: s } = t, i = s !== void 0 ? { key: s } : {};
|
2822
|
-
let
|
2819
|
+
let u = {};
|
2823
2820
|
const l = {
|
2824
2821
|
bind: n,
|
2825
2822
|
fType: r,
|
2826
2823
|
hKey: o,
|
2827
2824
|
...i,
|
2828
2825
|
page: ye(),
|
2829
|
-
...
|
2826
|
+
...u
|
2830
2827
|
};
|
2831
2828
|
return await window.pywebview.api.event_call(l);
|
2832
2829
|
}
|
@@ -2841,20 +2838,20 @@ class ms {
|
|
2841
2838
|
}
|
2842
2839
|
}
|
2843
2840
|
let lt;
|
2844
|
-
function
|
2841
|
+
function ys(e) {
|
2845
2842
|
switch (e.mode) {
|
2846
2843
|
case "web":
|
2847
|
-
lt = new
|
2844
|
+
lt = new gs();
|
2848
2845
|
break;
|
2849
2846
|
case "webview":
|
2850
|
-
lt = new
|
2847
|
+
lt = new vs();
|
2851
2848
|
break;
|
2852
2849
|
}
|
2853
2850
|
}
|
2854
|
-
function
|
2851
|
+
function Dn() {
|
2855
2852
|
return lt;
|
2856
2853
|
}
|
2857
|
-
function
|
2854
|
+
function ws(e) {
|
2858
2855
|
const t = {
|
2859
2856
|
type: "var",
|
2860
2857
|
sid: e.sid,
|
@@ -2866,10 +2863,10 @@ function vs(e) {
|
|
2866
2863
|
outputs: [t, ...e.outputs || []]
|
2867
2864
|
};
|
2868
2865
|
}
|
2869
|
-
function
|
2870
|
-
return new
|
2866
|
+
function Es(e, t, n) {
|
2867
|
+
return new _s(e, t, n);
|
2871
2868
|
}
|
2872
|
-
class
|
2869
|
+
class _s {
|
2873
2870
|
constructor(t, n, r) {
|
2874
2871
|
B(this, "taskQueue", []);
|
2875
2872
|
B(this, "id2TaskMap", /* @__PURE__ */ new Map());
|
@@ -2877,41 +2874,41 @@ class ws {
|
|
2877
2874
|
this.snapshots = r;
|
2878
2875
|
const o = [], s = (i) => {
|
2879
2876
|
var l;
|
2880
|
-
const
|
2881
|
-
return this.id2TaskMap.set(
|
2877
|
+
const u = new bs(i, r);
|
2878
|
+
return this.id2TaskMap.set(u.id, u), (l = i.inputs) == null || l.forEach((h, c) => {
|
2882
2879
|
var f, d;
|
2883
|
-
if (((f = i.data) == null ? void 0 : f[
|
2880
|
+
if (((f = i.data) == null ? void 0 : f[c]) === 0 && ((d = i.slient) == null ? void 0 : d[c]) === 0) {
|
2884
2881
|
const v = `${h.sid}-${h.id}`;
|
2885
|
-
this.input2TaskIdMap.getOrDefault(v).push(
|
2882
|
+
this.input2TaskIdMap.getOrDefault(v).push(u.id);
|
2886
2883
|
}
|
2887
|
-
}),
|
2884
|
+
}), u;
|
2888
2885
|
};
|
2889
2886
|
t == null || t.forEach((i) => {
|
2890
|
-
const
|
2891
|
-
o.push(
|
2887
|
+
const u = s(i);
|
2888
|
+
o.push(u);
|
2892
2889
|
}), n == null || n.forEach((i) => {
|
2893
|
-
const
|
2894
|
-
|
2890
|
+
const u = s(
|
2891
|
+
ws(i)
|
2895
2892
|
);
|
2896
|
-
o.push(
|
2893
|
+
o.push(u);
|
2897
2894
|
}), o.forEach((i) => {
|
2898
2895
|
const {
|
2899
|
-
deep:
|
2896
|
+
deep: u = !0,
|
2900
2897
|
once: l,
|
2901
2898
|
flush: h,
|
2902
|
-
immediate:
|
2903
|
-
} = i.watchConfig,
|
2904
|
-
immediate:
|
2905
|
-
deep:
|
2899
|
+
immediate: c = !0
|
2900
|
+
} = i.watchConfig, a = {
|
2901
|
+
immediate: c,
|
2902
|
+
deep: u,
|
2906
2903
|
once: l,
|
2907
2904
|
flush: h
|
2908
2905
|
}, f = this._getWatchTargets(i);
|
2909
2906
|
G(
|
2910
2907
|
f,
|
2911
2908
|
(d) => {
|
2912
|
-
d.some(Ee) || (i.modify = !0, this.taskQueue.push(new
|
2909
|
+
d.some(Ee) || (i.modify = !0, this.taskQueue.push(new Ss(i)), this._scheduleNextTick());
|
2913
2910
|
},
|
2914
|
-
|
2911
|
+
a
|
2915
2912
|
);
|
2916
2913
|
});
|
2917
2914
|
}
|
@@ -2924,7 +2921,7 @@ class ws {
|
|
2924
2921
|
).map((s) => this.snapshots.getVueRefObjectOrValue(s));
|
2925
2922
|
}
|
2926
2923
|
_scheduleNextTick() {
|
2927
|
-
|
2924
|
+
Ie(() => this._runAllTasks());
|
2928
2925
|
}
|
2929
2926
|
_runAllTasks() {
|
2930
2927
|
const t = this.taskQueue.slice();
|
@@ -2959,7 +2956,7 @@ class ws {
|
|
2959
2956
|
}), n;
|
2960
2957
|
}
|
2961
2958
|
}
|
2962
|
-
class
|
2959
|
+
class bs {
|
2963
2960
|
constructor(t, n) {
|
2964
2961
|
B(this, "modify", !0);
|
2965
2962
|
B(this, "_running", !1);
|
@@ -3015,7 +3012,7 @@ class Es {
|
|
3015
3012
|
}
|
3016
3013
|
}
|
3017
3014
|
}
|
3018
|
-
class
|
3015
|
+
class Ss {
|
3019
3016
|
/**
|
3020
3017
|
*
|
3021
3018
|
*/
|
@@ -3068,45 +3065,45 @@ class _s {
|
|
3068
3065
|
}
|
3069
3066
|
}
|
3070
3067
|
async function Os(e) {
|
3071
|
-
const { snapshot: t } = e, { outputs: n } = e.watchConfig, r = await
|
3068
|
+
const { snapshot: t } = e, { outputs: n } = e.watchConfig, r = await Dn().watchSend(e);
|
3072
3069
|
r && t.updateOutputsRefFromServer(r, n);
|
3073
3070
|
}
|
3074
|
-
function
|
3071
|
+
function Rs(e, t) {
|
3075
3072
|
const {
|
3076
3073
|
on: n,
|
3077
3074
|
code: r,
|
3078
3075
|
immediate: o,
|
3079
3076
|
deep: s,
|
3080
3077
|
once: i,
|
3081
|
-
flush:
|
3078
|
+
flush: u,
|
3082
3079
|
bind: l = {},
|
3083
3080
|
onData: h,
|
3084
|
-
bindData:
|
3085
|
-
} = e,
|
3081
|
+
bindData: c
|
3082
|
+
} = e, a = h || new Array(n.length).fill(0), f = c || new Array(Object.keys(l).length).fill(0), d = De(
|
3086
3083
|
l,
|
3087
3084
|
(g, y, _) => f[_] === 0 ? t.getVueRefObject(g) : g
|
3088
|
-
), v =
|
3089
|
-
(g, y) =>
|
3085
|
+
), v = W(r, d), p = n.length === 1 ? Kt(a[0] === 1, n[0], t) : n.map(
|
3086
|
+
(g, y) => Kt(a[y] === 1, g, t)
|
3090
3087
|
);
|
3091
|
-
return G(p, v, { immediate: o, deep: s, once: i, flush:
|
3088
|
+
return G(p, v, { immediate: o, deep: s, once: i, flush: u });
|
3092
3089
|
}
|
3093
|
-
function
|
3090
|
+
function Kt(e, t, n) {
|
3094
3091
|
return e ? () => t : n.getVueRefObject(t);
|
3095
3092
|
}
|
3096
|
-
function
|
3093
|
+
function Ps(e, t) {
|
3097
3094
|
const {
|
3098
3095
|
inputs: n = [],
|
3099
3096
|
outputs: r,
|
3100
3097
|
slient: o,
|
3101
3098
|
data: s,
|
3102
3099
|
code: i,
|
3103
|
-
immediate:
|
3100
|
+
immediate: u = !0,
|
3104
3101
|
deep: l,
|
3105
3102
|
once: h,
|
3106
|
-
flush:
|
3107
|
-
} = e,
|
3103
|
+
flush: c
|
3104
|
+
} = e, a = o || new Array(n.length).fill(0), f = s || new Array(n.length).fill(0), d = W(i), v = n.filter((g, y) => a[y] === 0 && f[y] === 0).map((g) => t.getVueRefObject(g));
|
3108
3105
|
function p() {
|
3109
|
-
return n.map((g, y) => f[y] === 0 ?
|
3106
|
+
return n.map((g, y) => f[y] === 0 ? nn(q(t.getVueRefObject(g))) : g);
|
3110
3107
|
}
|
3111
3108
|
G(
|
3112
3109
|
v,
|
@@ -3114,35 +3111,35 @@ function Ss(e, t) {
|
|
3114
3111
|
let g = d(...p());
|
3115
3112
|
if (!r)
|
3116
3113
|
return;
|
3117
|
-
const _ = r.length === 1 ? [g] : g,
|
3114
|
+
const _ = r.length === 1 ? [g] : g, S = _.map((R) => R === void 0 ? 1 : 0);
|
3118
3115
|
t.updateOutputsRefFromServer(
|
3119
|
-
{ values: _, skips:
|
3116
|
+
{ values: _, skips: S },
|
3120
3117
|
r
|
3121
3118
|
);
|
3122
3119
|
},
|
3123
|
-
{ immediate:
|
3120
|
+
{ immediate: u, deep: l, once: h, flush: c }
|
3124
3121
|
);
|
3125
3122
|
}
|
3126
|
-
function
|
3123
|
+
function ks(e, t) {
|
3127
3124
|
return Object.assign(
|
3128
3125
|
{},
|
3129
3126
|
...Object.entries(e ?? {}).map(([n, r]) => {
|
3130
|
-
const o = r.map((
|
3131
|
-
if (
|
3132
|
-
const l =
|
3133
|
-
return
|
3127
|
+
const o = r.map((u) => {
|
3128
|
+
if (u.type === "web") {
|
3129
|
+
const l = Vs(u.bind, t);
|
3130
|
+
return Ns(u, l, t);
|
3134
3131
|
} else {
|
3135
|
-
if (
|
3136
|
-
return
|
3137
|
-
if (
|
3138
|
-
return
|
3132
|
+
if (u.type === "vue")
|
3133
|
+
return Ts(u, t);
|
3134
|
+
if (u.type === "js")
|
3135
|
+
return Is(u, t);
|
3139
3136
|
}
|
3140
|
-
throw new Error(`unknown event type ${
|
3141
|
-
}), i =
|
3137
|
+
throw new Error(`unknown event type ${u}`);
|
3138
|
+
}), i = W(
|
3142
3139
|
" (...args)=> Promise.all(promises(...args))",
|
3143
3140
|
{
|
3144
|
-
promises: (...
|
3145
|
-
await l(...
|
3141
|
+
promises: (...u) => o.map(async (l) => {
|
3142
|
+
await l(...u);
|
3146
3143
|
})
|
3147
3144
|
}
|
3148
3145
|
);
|
@@ -3150,74 +3147,74 @@ function Rs(e, t) {
|
|
3150
3147
|
})
|
3151
3148
|
);
|
3152
3149
|
}
|
3153
|
-
function
|
3150
|
+
function Vs(e, t) {
|
3154
3151
|
return (...n) => (e ?? []).map((r) => {
|
3155
3152
|
if (N.isEventContext(r)) {
|
3156
3153
|
if (r.path.startsWith(":")) {
|
3157
3154
|
const o = r.path.slice(1);
|
3158
|
-
return
|
3155
|
+
return W(o)(...n);
|
3159
3156
|
}
|
3160
3157
|
return be(n[0], r.path.split("."));
|
3161
3158
|
}
|
3162
3159
|
return N.IsBinding(r) ? t.getObjectToValue(r) : r;
|
3163
3160
|
});
|
3164
3161
|
}
|
3165
|
-
function
|
3162
|
+
function Ns(e, t, n) {
|
3166
3163
|
async function r(...o) {
|
3167
|
-
const s = t(...o), i = await
|
3164
|
+
const s = t(...o), i = await Dn().eventSend(e, s);
|
3168
3165
|
i && n.updateOutputsRefFromServer(i, e.set);
|
3169
3166
|
}
|
3170
3167
|
return r;
|
3171
3168
|
}
|
3172
|
-
function
|
3173
|
-
const { code: n, inputs: r = [], set: o } = e, s =
|
3174
|
-
function i(...
|
3175
|
-
const l = (r ?? []).map((
|
3176
|
-
if (N.isEventContext(
|
3177
|
-
if (
|
3178
|
-
const
|
3179
|
-
return
|
3169
|
+
function Is(e, t) {
|
3170
|
+
const { code: n, inputs: r = [], set: o } = e, s = W(n);
|
3171
|
+
function i(...u) {
|
3172
|
+
const l = (r ?? []).map((c) => {
|
3173
|
+
if (N.isEventContext(c)) {
|
3174
|
+
if (c.path.startsWith(":")) {
|
3175
|
+
const a = c.path.slice(1);
|
3176
|
+
return W(a)(...u);
|
3180
3177
|
}
|
3181
|
-
return be(
|
3178
|
+
return be(u[0], c.path.split("."));
|
3182
3179
|
}
|
3183
|
-
return N.IsBinding(
|
3180
|
+
return N.IsBinding(c) ? nn(t.getObjectToValue(c)) : c;
|
3184
3181
|
}), h = s(...l);
|
3185
3182
|
if (o !== void 0) {
|
3186
|
-
const
|
3187
|
-
t.updateOutputsRefFromServer({ values:
|
3183
|
+
const a = o.length === 1 ? [h] : h, f = a.map((d) => d === void 0 ? 1 : 0);
|
3184
|
+
t.updateOutputsRefFromServer({ values: a, skips: f }, o);
|
3188
3185
|
}
|
3189
3186
|
}
|
3190
3187
|
return i;
|
3191
3188
|
}
|
3192
|
-
function
|
3193
|
-
const { code: n, bind: r = {}, bindData: o } = e, s = o || new Array(Object.keys(r).length).fill(0), i =
|
3189
|
+
function Ts(e, t) {
|
3190
|
+
const { code: n, bind: r = {}, bindData: o } = e, s = o || new Array(Object.keys(r).length).fill(0), i = De(
|
3194
3191
|
r,
|
3195
|
-
(h,
|
3196
|
-
),
|
3192
|
+
(h, c, a) => s[a] === 0 ? t.getVueRefObject(h) : h
|
3193
|
+
), u = W(n, i);
|
3197
3194
|
function l(...h) {
|
3198
|
-
|
3195
|
+
u(...h);
|
3199
3196
|
}
|
3200
3197
|
return l;
|
3201
3198
|
}
|
3202
|
-
function
|
3199
|
+
function As(e, t) {
|
3203
3200
|
const n = [];
|
3204
3201
|
(e.bStyle || []).forEach((s) => {
|
3205
3202
|
Array.isArray(s) ? n.push(
|
3206
3203
|
...s.map((i) => t.getObjectToValue(i))
|
3207
3204
|
) : n.push(
|
3208
|
-
|
3205
|
+
De(
|
3209
3206
|
s,
|
3210
3207
|
(i) => t.getObjectToValue(i)
|
3211
3208
|
)
|
3212
3209
|
);
|
3213
3210
|
});
|
3214
|
-
const r =
|
3211
|
+
const r = Qn([e.style || {}, n]);
|
3215
3212
|
return {
|
3216
3213
|
hasStyle: r && Object.keys(r).length > 0,
|
3217
3214
|
styles: r
|
3218
3215
|
};
|
3219
3216
|
}
|
3220
|
-
function
|
3217
|
+
function $s(e, t) {
|
3221
3218
|
const n = e.classes;
|
3222
3219
|
if (!n)
|
3223
3220
|
return null;
|
@@ -3225,16 +3222,16 @@ function Ts(e, t) {
|
|
3225
3222
|
return Ye(n);
|
3226
3223
|
const { str: r, map: o, bind: s } = n, i = [];
|
3227
3224
|
return r && i.push(r), o && i.push(
|
3228
|
-
|
3225
|
+
De(
|
3229
3226
|
o,
|
3230
|
-
(
|
3227
|
+
(u) => t.getObjectToValue(u)
|
3231
3228
|
)
|
3232
|
-
), s && i.push(...s.map((
|
3229
|
+
), s && i.push(...s.map((u) => t.getObjectToValue(u))), Ye(i);
|
3233
3230
|
}
|
3234
|
-
function
|
3231
|
+
function Ae(e, t = !0) {
|
3235
3232
|
if (!(typeof e != "object" || e === null)) {
|
3236
3233
|
if (Array.isArray(e)) {
|
3237
|
-
t && e.forEach((n) =>
|
3234
|
+
t && e.forEach((n) => Ae(n, !0));
|
3238
3235
|
return;
|
3239
3236
|
}
|
3240
3237
|
for (const [n, r] of Object.entries(e))
|
@@ -3248,66 +3245,66 @@ function $e(e, t = !0) {
|
|
3248
3245
|
);
|
3249
3246
|
}
|
3250
3247
|
else
|
3251
|
-
t &&
|
3248
|
+
t && Ae(r, !0);
|
3252
3249
|
}
|
3253
3250
|
}
|
3254
|
-
function
|
3251
|
+
function js(e, t) {
|
3255
3252
|
const n = e.startsWith(":");
|
3256
|
-
return n && (e = e.slice(1), t =
|
3253
|
+
return n && (e = e.slice(1), t = W(t)), { name: e, value: t, isFunc: n };
|
3257
3254
|
}
|
3258
|
-
function
|
3255
|
+
function Cs(e, t, n) {
|
3259
3256
|
var o;
|
3260
3257
|
const r = {};
|
3261
|
-
return
|
3262
|
-
const
|
3263
|
-
Ee(
|
3258
|
+
return St(e.bProps || {}, (s, i) => {
|
3259
|
+
const u = n.getObjectToValue(s);
|
3260
|
+
Ee(u) || (Ae(u), r[i] = xs(u, i));
|
3264
3261
|
}), (o = e.proxyProps) == null || o.forEach((s) => {
|
3265
3262
|
const i = n.getObjectToValue(s);
|
3266
|
-
typeof i == "object" &&
|
3267
|
-
const { name: h, value:
|
3268
|
-
r[h] =
|
3263
|
+
typeof i == "object" && St(i, (u, l) => {
|
3264
|
+
const { name: h, value: c } = js(l, u);
|
3265
|
+
r[h] = c;
|
3269
3266
|
});
|
3270
3267
|
}), { ...t || {}, ...r };
|
3271
3268
|
}
|
3272
|
-
function
|
3273
|
-
return t === "innerText" ?
|
3269
|
+
function xs(e, t) {
|
3270
|
+
return t === "innerText" ? Qt(e) : e;
|
3274
3271
|
}
|
3275
|
-
function
|
3276
|
-
const { id: n, use: r } = e.propsInfo, o =
|
3277
|
-
return
|
3278
|
-
|
3272
|
+
function Ds(e, { slots: t }) {
|
3273
|
+
const { id: n, use: r } = e.propsInfo, o = Sr(n);
|
3274
|
+
return Ce(() => {
|
3275
|
+
Rr(n);
|
3279
3276
|
}), () => {
|
3280
3277
|
const s = e.propsValue;
|
3281
|
-
return
|
3278
|
+
return Or(
|
3282
3279
|
n,
|
3283
3280
|
o,
|
3284
3281
|
Object.fromEntries(
|
3285
3282
|
r.map((i) => [i, s[i]])
|
3286
3283
|
)
|
3287
|
-
), A(
|
3284
|
+
), A(xe, null, t.default());
|
3288
3285
|
};
|
3289
3286
|
}
|
3290
|
-
const
|
3287
|
+
const Ms = F(Ds, {
|
3291
3288
|
props: ["propsInfo", "propsValue"]
|
3292
3289
|
});
|
3293
|
-
function
|
3290
|
+
function Fs(e, t) {
|
3294
3291
|
if (!e.slots)
|
3295
3292
|
return null;
|
3296
3293
|
const n = e.slots ?? {};
|
3297
|
-
return Array.isArray(n) ? t ? ge(n) : () => ge(n) :
|
3298
|
-
const { items:
|
3294
|
+
return Array.isArray(n) ? t ? ge(n) : () => ge(n) : Zt(n, { keyFn: (i) => i === ":" ? "default" : i, valueFn: (i) => {
|
3295
|
+
const { items: u } = i;
|
3299
3296
|
return (l) => {
|
3300
3297
|
if (i.scope) {
|
3301
|
-
const h = () => i.props ?
|
3302
|
-
return A(
|
3298
|
+
const h = () => i.props ? Gt(i.props, l, u) : ge(u);
|
3299
|
+
return A(Oe, { scope: i.scope }, h);
|
3303
3300
|
}
|
3304
|
-
return i.props ?
|
3301
|
+
return i.props ? Gt(i.props, l, u) : ge(u);
|
3305
3302
|
};
|
3306
3303
|
} });
|
3307
3304
|
}
|
3308
|
-
function
|
3305
|
+
function Gt(e, t, n) {
|
3309
3306
|
return A(
|
3310
|
-
|
3307
|
+
Ms,
|
3311
3308
|
{ propsInfo: e, propsValue: t },
|
3312
3309
|
() => ge(n)
|
3313
3310
|
);
|
@@ -3318,22 +3315,22 @@ function ge(e) {
|
|
3318
3315
|
}));
|
3319
3316
|
return t.length <= 0 ? null : t;
|
3320
3317
|
}
|
3321
|
-
function
|
3318
|
+
function Bs(e, t) {
|
3322
3319
|
const n = {}, r = [];
|
3323
3320
|
return (e || []).forEach((o) => {
|
3324
|
-
const { sys: s, name: i, arg:
|
3321
|
+
const { sys: s, name: i, arg: u, value: l, mf: h } = o;
|
3325
3322
|
if (i === "vmodel") {
|
3326
|
-
const
|
3327
|
-
if (n[`onUpdate:${
|
3328
|
-
|
3323
|
+
const c = t.getVueRefObject(l);
|
3324
|
+
if (n[`onUpdate:${u}`] = (a) => {
|
3325
|
+
c.value = a;
|
3329
3326
|
}, s === 1) {
|
3330
|
-
const
|
3331
|
-
r.push([
|
3327
|
+
const a = h ? Object.fromEntries(h.map((f) => [f, !0])) : {};
|
3328
|
+
r.push([Yn, c.value, void 0, a]);
|
3332
3329
|
} else
|
3333
|
-
n[
|
3330
|
+
n[u] = c.value;
|
3334
3331
|
} else if (i === "vshow") {
|
3335
|
-
const
|
3336
|
-
r.push([
|
3332
|
+
const c = t.getVueRefObject(l);
|
3333
|
+
r.push([Xn, c.value]);
|
3337
3334
|
} else
|
3338
3335
|
console.warn(`Directive ${i} is not supported yet`);
|
3339
3336
|
}), {
|
@@ -3341,56 +3338,56 @@ function Ms(e, t) {
|
|
3341
3338
|
directiveArray: r
|
3342
3339
|
};
|
3343
3340
|
}
|
3344
|
-
function
|
3341
|
+
function Ls(e, t) {
|
3345
3342
|
const { eRef: n } = e;
|
3346
3343
|
return n === void 0 ? {} : { ref: t.getRef(n) };
|
3347
3344
|
}
|
3348
|
-
function
|
3345
|
+
function Ws(e) {
|
3349
3346
|
const t = ne(), n = un(), r = e.component.props ?? {};
|
3350
|
-
return
|
3351
|
-
const { tag: o } = e.component, s = N.IsBinding(o) ? t.getObjectToValue(o) : o, i = ft(s),
|
3347
|
+
return Ae(r, !0), () => {
|
3348
|
+
const { tag: o } = e.component, s = N.IsBinding(o) ? t.getObjectToValue(o) : o, i = ft(s), u = typeof i == "string", l = $s(e.component, t), { styles: h, hasStyle: c } = As(e.component, t), a = ks(e.component.events ?? {}, t), f = Fs(e.component, u), d = Cs(e.component, r, t), { newProps: v, directiveArray: p } = Bs(
|
3352
3349
|
e.component.dir,
|
3353
3350
|
t
|
3354
|
-
), g =
|
3351
|
+
), g = Ls(
|
3355
3352
|
e.component,
|
3356
3353
|
n
|
3357
|
-
), y =
|
3354
|
+
), y = Zn({
|
3358
3355
|
...d,
|
3359
|
-
...
|
3356
|
+
...a,
|
3360
3357
|
...v,
|
3361
3358
|
...g
|
3362
3359
|
}) || {};
|
3363
|
-
|
3360
|
+
c && (y.style = h), l && (y.class = l);
|
3364
3361
|
const _ = A(i, { ...y }, f);
|
3365
|
-
return p.length > 0 ?
|
3362
|
+
return p.length > 0 ? er(
|
3366
3363
|
// @ts-ignore
|
3367
3364
|
_,
|
3368
3365
|
p
|
3369
3366
|
) : _;
|
3370
3367
|
};
|
3371
3368
|
}
|
3372
|
-
const Q = F(
|
3369
|
+
const Q = F(Ws, {
|
3373
3370
|
props: ["component"]
|
3374
3371
|
});
|
3375
|
-
function
|
3372
|
+
function Mn(e, t) {
|
3376
3373
|
var n, r;
|
3377
3374
|
if (e) {
|
3378
|
-
const o =
|
3379
|
-
|
3380
|
-
cn(e.id, s),
|
3375
|
+
const o = _r(e), s = on(e, ne(t)), i = ne(t);
|
3376
|
+
Es(e.py_watch, e.web_computed, i), (n = e.vue_watch) == null || n.forEach((u) => Rs(u, i)), (r = e.js_watch) == null || r.forEach((u) => Ps(u, i)), Ce(() => {
|
3377
|
+
cn(e.id, s), br(e.id, o);
|
3381
3378
|
});
|
3382
3379
|
}
|
3383
3380
|
}
|
3384
|
-
function
|
3381
|
+
function Us(e, { slots: t }) {
|
3385
3382
|
const { scope: n } = e;
|
3386
|
-
return
|
3383
|
+
return Mn(n), () => A(xe, null, t.default());
|
3387
3384
|
}
|
3388
|
-
const
|
3385
|
+
const Oe = F(Us, {
|
3389
3386
|
props: ["scope"]
|
3390
|
-
}),
|
3387
|
+
}), Ks = F(
|
3391
3388
|
(e) => {
|
3392
3389
|
const { scope: t, items: n, vforInfo: r } = e;
|
3393
|
-
return
|
3390
|
+
return kr(r), Mn(t, r.key), n.length === 1 ? () => A(Q, {
|
3394
3391
|
component: n[0]
|
3395
3392
|
}) : () => n.map(
|
3396
3393
|
(s) => A(Q, {
|
@@ -3402,8 +3399,8 @@ const Re = F(Ls, {
|
|
3402
3399
|
props: ["scope", "items", "vforInfo"]
|
3403
3400
|
}
|
3404
3401
|
);
|
3405
|
-
function
|
3406
|
-
const { state: n, isReady: r, isLoading: o } =
|
3402
|
+
function Gs(e, t) {
|
3403
|
+
const { state: n, isReady: r, isLoading: o } = dr(async () => {
|
3407
3404
|
let s = e;
|
3408
3405
|
const i = t;
|
3409
3406
|
if (!s && !i)
|
@@ -3414,45 +3411,45 @@ function Us(e, t) {
|
|
3414
3411
|
}, {});
|
3415
3412
|
return { config: n, isReady: r, isLoading: o };
|
3416
3413
|
}
|
3417
|
-
function
|
3414
|
+
function qs(e, t) {
|
3418
3415
|
let n;
|
3419
3416
|
return t.component ? n = `Error captured from component:tag: ${t.component.tag} ; id: ${t.component.id} ` : n = "Error captured from app init", console.group(n), console.error("Component:", t.component), console.error("Error:", e), console.groupEnd(), !1;
|
3420
3417
|
}
|
3421
|
-
const
|
3418
|
+
const Hs = { class: "app-box" }, zs = {
|
3422
3419
|
key: 0,
|
3423
3420
|
style: { position: "absolute", top: "50%", left: "50%", transform: "translate(-50%, -50%)" }
|
3424
|
-
},
|
3421
|
+
}, Js = /* @__PURE__ */ F({
|
3425
3422
|
__name: "App",
|
3426
3423
|
props: {
|
3427
3424
|
config: {},
|
3428
3425
|
configUrl: {}
|
3429
3426
|
},
|
3430
3427
|
setup(e) {
|
3431
|
-
const t = e, { config: n, isLoading: r } =
|
3428
|
+
const t = e, { config: n, isLoading: r } = Gs(
|
3432
3429
|
t.config,
|
3433
3430
|
t.configUrl
|
3434
3431
|
);
|
3435
3432
|
let o = null;
|
3436
3433
|
return G(n, (s) => {
|
3437
|
-
o = s, s.url && (
|
3434
|
+
o = s, s.url && (cr({
|
3438
3435
|
mode: s.mode,
|
3439
3436
|
version: s.version,
|
3440
3437
|
queryPath: s.url.path,
|
3441
3438
|
pathParams: s.url.params,
|
3442
3439
|
webServerInfo: s.webInfo
|
3443
|
-
}),
|
3444
|
-
}),
|
3445
|
-
|
3446
|
-
|
3447
|
-
]))) : (he(),
|
3440
|
+
}), ys(s), ps(s));
|
3441
|
+
}), tr(qs), (s, i) => (he(), ke("div", Hs, [
|
3442
|
+
L(r) ? (he(), ke("div", zs, i[0] || (i[0] = [
|
3443
|
+
nr("p", { style: { margin: "auto" } }, "Loading ...", -1)
|
3444
|
+
]))) : (he(), ke("div", {
|
3448
3445
|
key: 1,
|
3449
|
-
class: Ye(["insta-main",
|
3446
|
+
class: Ye(["insta-main", L(n).class])
|
3450
3447
|
}, [
|
3451
|
-
|
3452
|
-
scope:
|
3448
|
+
rr(L(Oe), {
|
3449
|
+
scope: L(o).scope
|
3453
3450
|
}, {
|
3454
|
-
default:
|
3455
|
-
(he(!0),
|
3451
|
+
default: or(() => [
|
3452
|
+
(he(!0), ke(xe, null, sr(L(o).items, (u) => (he(), ir(L(Q), { component: u }, null, 8, ["component"]))), 256))
|
3456
3453
|
]),
|
3457
3454
|
_: 1
|
3458
3455
|
}, 8, ["scope"])
|
@@ -3460,19 +3457,19 @@ const Gs = { class: "app-box" }, qs = {
|
|
3460
3457
|
]));
|
3461
3458
|
}
|
3462
3459
|
});
|
3463
|
-
function
|
3460
|
+
function Qs(e) {
|
3464
3461
|
const { on: t, scope: n, items: r } = e, o = ne();
|
3465
3462
|
return () => {
|
3466
3463
|
const s = typeof t == "boolean" ? t : o.getObjectToValue(t);
|
3467
|
-
return A(
|
3468
|
-
(
|
3464
|
+
return A(Oe, { scope: n }, () => s ? r.map(
|
3465
|
+
(u) => A(Q, { component: u })
|
3469
3466
|
) : void 0);
|
3470
3467
|
};
|
3471
3468
|
}
|
3472
|
-
const
|
3469
|
+
const Ys = F(Qs, {
|
3473
3470
|
props: ["on", "scope", "items"]
|
3474
3471
|
});
|
3475
|
-
function
|
3472
|
+
function Xs(e) {
|
3476
3473
|
const { start: t = 0, end: n, step: r = 1 } = e;
|
3477
3474
|
let o = [];
|
3478
3475
|
if (r > 0)
|
@@ -3483,22 +3480,22 @@ function Qs(e) {
|
|
3483
3480
|
o.push(s);
|
3484
3481
|
return o;
|
3485
3482
|
}
|
3486
|
-
function
|
3487
|
-
const { array: t, bArray: n, items: r, fkey: o, fid: s, scope: i, num:
|
3488
|
-
|
3489
|
-
const v =
|
3490
|
-
return
|
3491
|
-
|
3483
|
+
function Zs(e) {
|
3484
|
+
const { array: t, bArray: n, items: r, fkey: o, fid: s, scope: i, num: u, tsGroup: l = {} } = e, h = t === void 0, c = u !== void 0, a = h ? n : t, f = ne();
|
3485
|
+
Nr(s, a, h, c);
|
3486
|
+
const v = oi(o ?? "index");
|
3487
|
+
return Ce(() => {
|
3488
|
+
Er(i.id);
|
3492
3489
|
}), () => {
|
3493
|
-
const p =
|
3494
|
-
|
3490
|
+
const p = ti(
|
3491
|
+
c,
|
3495
3492
|
h,
|
3496
|
-
|
3493
|
+
a,
|
3497
3494
|
f,
|
3498
|
-
|
3499
|
-
), g =
|
3500
|
-
const R = v(_,
|
3501
|
-
return g.add(R),
|
3495
|
+
u
|
3496
|
+
), g = Tr(s), y = p.map((_, S) => {
|
3497
|
+
const R = v(_, S);
|
3498
|
+
return g.add(R), Ir(s, R, S), A(Ks, {
|
3502
3499
|
scope: e.scope,
|
3503
3500
|
items: r,
|
3504
3501
|
vforInfo: {
|
@@ -3508,81 +3505,81 @@ function Ys(e) {
|
|
3508
3505
|
key: R
|
3509
3506
|
});
|
3510
3507
|
});
|
3511
|
-
return g.removeUnusedKeys(), l && Object.keys(l).length > 0 ? A(
|
3508
|
+
return g.removeUnusedKeys(), l && Object.keys(l).length > 0 ? A(Yt, l, {
|
3512
3509
|
default: () => y
|
3513
3510
|
}) : y;
|
3514
3511
|
};
|
3515
3512
|
}
|
3516
|
-
const
|
3513
|
+
const ei = F(Zs, {
|
3517
3514
|
props: ["array", "items", "fid", "bArray", "scope", "num", "fkey", "tsGroup"]
|
3518
3515
|
});
|
3519
|
-
function
|
3516
|
+
function ti(e, t, n, r, o) {
|
3520
3517
|
if (e) {
|
3521
3518
|
let i = 0;
|
3522
|
-
return typeof o == "number" ? i = o : i = r.getObjectToValue(o) ?? 0,
|
3519
|
+
return typeof o == "number" ? i = o : i = r.getObjectToValue(o) ?? 0, Xs({
|
3523
3520
|
end: Math.max(0, i)
|
3524
3521
|
});
|
3525
3522
|
}
|
3526
3523
|
const s = t ? r.getObjectToValue(n) || [] : n;
|
3527
3524
|
return typeof s == "object" ? Object.values(s) : s;
|
3528
3525
|
}
|
3529
|
-
const
|
3530
|
-
function
|
3531
|
-
const t =
|
3532
|
-
return typeof t == "function" ? t : e === "item" ?
|
3526
|
+
const ni = (e) => e, ri = (e, t) => t;
|
3527
|
+
function oi(e) {
|
3528
|
+
const t = pr(e);
|
3529
|
+
return typeof t == "function" ? t : e === "item" ? ni : ri;
|
3533
3530
|
}
|
3534
|
-
function
|
3531
|
+
function si(e) {
|
3535
3532
|
return e.map((n) => {
|
3536
3533
|
if (n.tag)
|
3537
3534
|
return A(Q, { component: n });
|
3538
|
-
const r = ft(
|
3535
|
+
const r = ft(Fn);
|
3539
3536
|
return A(r, {
|
3540
3537
|
scope: n
|
3541
3538
|
});
|
3542
3539
|
});
|
3543
3540
|
}
|
3544
|
-
const
|
3541
|
+
const Fn = F(
|
3545
3542
|
(e) => {
|
3546
3543
|
const t = e.scope;
|
3547
|
-
return () =>
|
3544
|
+
return () => si(t.items ?? []);
|
3548
3545
|
},
|
3549
3546
|
{
|
3550
3547
|
props: ["scope"]
|
3551
3548
|
}
|
3552
3549
|
);
|
3553
|
-
function
|
3550
|
+
function ii(e) {
|
3554
3551
|
return e.map((t) => {
|
3555
3552
|
if (t.tag)
|
3556
3553
|
return A(Q, { component: t });
|
3557
|
-
const n = ft(
|
3554
|
+
const n = ft(Fn);
|
3558
3555
|
return A(n, {
|
3559
3556
|
scope: t
|
3560
3557
|
});
|
3561
3558
|
});
|
3562
3559
|
}
|
3563
|
-
const
|
3560
|
+
const ai = F(
|
3564
3561
|
(e) => {
|
3565
3562
|
const { scope: t, on: n, items: r } = e, o = J(r), s = on(t), i = ne();
|
3566
|
-
return
|
3567
|
-
const { items:
|
3568
|
-
return o.value =
|
3569
|
-
}),
|
3563
|
+
return $e.createDynamicWatchRefresh(n, i, async () => {
|
3564
|
+
const { items: u, on: l } = await $e.fetchRemote(e, i);
|
3565
|
+
return o.value = u, l;
|
3566
|
+
}), Ce(() => {
|
3570
3567
|
cn(t.id, s);
|
3571
|
-
}), () =>
|
3568
|
+
}), () => ii(o.value);
|
3572
3569
|
},
|
3573
3570
|
{
|
3574
3571
|
props: ["sid", "url", "hKey", "on", "bind", "items", "scope"]
|
3575
3572
|
}
|
3576
3573
|
);
|
3577
|
-
var
|
3574
|
+
var $e;
|
3578
3575
|
((e) => {
|
3579
3576
|
function t(r, o, s) {
|
3580
|
-
let i = null,
|
3577
|
+
let i = null, u = r, l = u.map((c) => o.getVueRefObject(c));
|
3581
3578
|
function h() {
|
3582
3579
|
i && i(), i = G(
|
3583
3580
|
l,
|
3584
3581
|
async () => {
|
3585
|
-
|
3582
|
+
u = await s(), l = u.map((c) => o.getVueRefObject(c)), h();
|
3586
3583
|
},
|
3587
3584
|
{ deep: !0 }
|
3588
3585
|
);
|
@@ -3593,125 +3590,125 @@ var je;
|
|
3593
3590
|
}
|
3594
3591
|
e.createDynamicWatchRefresh = t;
|
3595
3592
|
async function n(r, o) {
|
3596
|
-
const s = Object.values(r.bind).map((
|
3597
|
-
sid:
|
3598
|
-
id:
|
3599
|
-
value: o.getObjectToValue(
|
3593
|
+
const s = Object.values(r.bind).map((c) => ({
|
3594
|
+
sid: c.sid,
|
3595
|
+
id: c.id,
|
3596
|
+
value: o.getObjectToValue(c)
|
3600
3597
|
})), i = {
|
3601
3598
|
sid: r.sid,
|
3602
3599
|
bind: s,
|
3603
3600
|
hKey: r.hKey,
|
3604
3601
|
page: ye()
|
3605
|
-
},
|
3602
|
+
}, u = {
|
3606
3603
|
method: "POST",
|
3607
3604
|
headers: {
|
3608
3605
|
"Content-Type": "application/json"
|
3609
3606
|
},
|
3610
3607
|
body: JSON.stringify(i)
|
3611
|
-
}, l = await fetch(r.url,
|
3608
|
+
}, l = await fetch(r.url, u);
|
3612
3609
|
if (!l.ok)
|
3613
3610
|
throw new Error("Failed to fetch data");
|
3614
3611
|
return await l.json();
|
3615
3612
|
}
|
3616
3613
|
e.fetchRemote = n;
|
3617
|
-
})(
|
3618
|
-
function
|
3614
|
+
})($e || ($e = {}));
|
3615
|
+
function ci(e) {
|
3619
3616
|
const { scope: t, items: n } = e;
|
3620
3617
|
return () => {
|
3621
3618
|
const r = n.map((o) => A(Q, { component: o }));
|
3622
|
-
return A(
|
3619
|
+
return A(Oe, { scope: t }, () => r);
|
3623
3620
|
};
|
3624
3621
|
}
|
3625
|
-
const
|
3622
|
+
const qt = F(ci, {
|
3626
3623
|
props: ["scope", "items"]
|
3627
3624
|
});
|
3628
|
-
function
|
3625
|
+
function ui(e) {
|
3629
3626
|
const { on: t, case: n, default: r } = e, o = ne();
|
3630
3627
|
return () => {
|
3631
|
-
const s = o.getObjectToValue(t), i = n.map((
|
3632
|
-
const { value: l, items: h, scope:
|
3628
|
+
const s = o.getObjectToValue(t), i = n.map((u) => {
|
3629
|
+
const { value: l, items: h, scope: c } = u.props;
|
3633
3630
|
if (s === l)
|
3634
|
-
return A(
|
3635
|
-
scope:
|
3631
|
+
return A(qt, {
|
3632
|
+
scope: c,
|
3636
3633
|
items: h,
|
3637
3634
|
key: ["case", l].join("-")
|
3638
3635
|
});
|
3639
|
-
}).filter((
|
3636
|
+
}).filter((u) => u);
|
3640
3637
|
if (r && !i.length) {
|
3641
|
-
const { items:
|
3642
|
-
i.push(A(
|
3638
|
+
const { items: u, scope: l } = r.props;
|
3639
|
+
i.push(A(qt, { scope: l, items: u, key: "default" }));
|
3643
3640
|
}
|
3644
|
-
return A(
|
3641
|
+
return A(xe, i);
|
3645
3642
|
};
|
3646
3643
|
}
|
3647
|
-
const
|
3644
|
+
const li = F(ui, {
|
3648
3645
|
props: ["case", "on", "default"]
|
3649
3646
|
});
|
3650
|
-
function
|
3647
|
+
function fi(e, { slots: t }) {
|
3651
3648
|
const { name: n = "fade", tag: r } = e;
|
3652
3649
|
return () => A(
|
3653
|
-
|
3650
|
+
Yt,
|
3654
3651
|
{ name: n, tag: r },
|
3655
3652
|
{
|
3656
3653
|
default: t.default
|
3657
3654
|
}
|
3658
3655
|
);
|
3659
3656
|
}
|
3660
|
-
const
|
3657
|
+
const hi = F(fi, {
|
3661
3658
|
props: ["name", "tag"]
|
3662
3659
|
});
|
3663
|
-
function
|
3660
|
+
function di(e) {
|
3664
3661
|
const { content: t, r: n = 0 } = e, r = ne(), o = n === 1 ? () => r.getObjectToValue(t) : () => t;
|
3665
|
-
return () =>
|
3662
|
+
return () => Qt(o());
|
3666
3663
|
}
|
3667
|
-
const
|
3664
|
+
const pi = F(di, {
|
3668
3665
|
props: ["content", "r"]
|
3669
3666
|
});
|
3670
|
-
function
|
3667
|
+
function mi(e) {
|
3671
3668
|
if (!e.router)
|
3672
3669
|
throw new Error("Router config is not provided.");
|
3673
3670
|
const { routes: t, kAlive: n = !1 } = e.router;
|
3674
3671
|
return t.map(
|
3675
|
-
(o) =>
|
3672
|
+
(o) => Bn(o, n)
|
3676
3673
|
);
|
3677
3674
|
}
|
3678
|
-
function
|
3675
|
+
function Bn(e, t) {
|
3679
3676
|
var l;
|
3680
3677
|
const { server: n = !1, vueItem: r, scope: o } = e, s = () => {
|
3681
3678
|
if (n)
|
3682
3679
|
throw new Error("Server-side rendering is not supported yet.");
|
3683
|
-
return Promise.resolve(
|
3680
|
+
return Promise.resolve(gi(r, o, t));
|
3684
3681
|
}, i = (l = r.children) == null ? void 0 : l.map(
|
3685
|
-
(h) =>
|
3686
|
-
),
|
3682
|
+
(h) => Bn(h, t)
|
3683
|
+
), u = {
|
3687
3684
|
...r,
|
3688
3685
|
children: i,
|
3689
3686
|
component: s
|
3690
3687
|
};
|
3691
|
-
return r.component.length === 0 && delete
|
3688
|
+
return r.component.length === 0 && delete u.component, i === void 0 && delete u.children, u;
|
3692
3689
|
}
|
3693
|
-
function
|
3690
|
+
function gi(e, t, n) {
|
3694
3691
|
const { path: r, component: o } = e, s = A(
|
3695
|
-
|
3692
|
+
Oe,
|
3696
3693
|
{ scope: t, key: r },
|
3697
|
-
() => o.map((
|
3694
|
+
() => o.map((u) => A(Q, { component: u }))
|
3698
3695
|
);
|
3699
|
-
return n ? A(
|
3696
|
+
return n ? A(ar, null, () => s) : s;
|
3700
3697
|
}
|
3701
|
-
function
|
3698
|
+
function vi(e, t) {
|
3702
3699
|
const { mode: n = "hash" } = t.router, r = n === "hash" ? Eo() : n === "memory" ? wo() : Rn();
|
3703
3700
|
e.use(
|
3704
3701
|
ls({
|
3705
3702
|
history: r,
|
3706
|
-
routes:
|
3703
|
+
routes: mi(t)
|
3707
3704
|
})
|
3708
3705
|
);
|
3709
3706
|
}
|
3710
|
-
function
|
3711
|
-
e.component("insta-ui",
|
3707
|
+
function Ei(e, t) {
|
3708
|
+
e.component("insta-ui", Js), e.component("vif", Ys), e.component("vfor", ei), e.component("match", li), e.component("refresh", ai), e.component("ts-group", hi), e.component("content", pi), t.router && vi(e, t);
|
3712
3709
|
}
|
3713
3710
|
export {
|
3714
|
-
|
3715
|
-
|
3711
|
+
Ae as convertDynamicProperties,
|
3712
|
+
Ei as install
|
3716
3713
|
};
|
3717
3714
|
//# sourceMappingURL=insta-ui.js.map
|