@kitbag/router 0.22.6 → 0.22.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/kitbag-router.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { markRaw as ht, defineComponent as Me, h as ue, inject as Re, provide as Lo, onUnmounted as
|
|
1
|
+
import { markRaw as ht, defineComponent as Me, h as ue, inject as Re, provide as Lo, onUnmounted as pn, toRefs as Do, computed as x, reactive as Nt, watch as fe, onServerPrefetch as xo, defineAsyncComponent as Vo, ref as Qe, toValue as D, getCurrentInstance as Mo } from "vue";
|
|
2
2
|
class Bo extends Error {
|
|
3
3
|
constructor(t) {
|
|
4
4
|
super(`Child property on meta for ${t} conflicts with the parent meta.`);
|
|
@@ -33,22 +33,22 @@ function Xe(...e) {
|
|
|
33
33
|
function $o(e, t) {
|
|
34
34
|
return Xe(e, t), { ...e, ...t };
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function nr(e) {
|
|
37
37
|
return "parent" in e && !!e.parent;
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function rr(e) {
|
|
40
40
|
return "component" in e && !!e.component;
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function Un(e) {
|
|
43
43
|
return "props" in e && typeof e.props == "function";
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function or(e) {
|
|
46
46
|
return "components" in e && !!e.components;
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function Ln(e) {
|
|
49
49
|
return "props" in e && typeof e.props == "object";
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function sr(e, t) {
|
|
52
52
|
return {
|
|
53
53
|
...t,
|
|
54
54
|
meta: Ho(e.meta, t.meta),
|
|
@@ -65,9 +65,9 @@ function Q(e) {
|
|
|
65
65
|
function Fo(e) {
|
|
66
66
|
return Q(e) ? e : `/${e}`;
|
|
67
67
|
}
|
|
68
|
-
const
|
|
68
|
+
const ir = /* @__PURE__ */ Symbol("IS_URL_SYMBOL");
|
|
69
69
|
function ve(e) {
|
|
70
|
-
return typeof e == "object" && e !== null &&
|
|
70
|
+
return typeof e == "object" && e !== null && ir in e;
|
|
71
71
|
}
|
|
72
72
|
class Be extends Error {
|
|
73
73
|
constructor() {
|
|
@@ -85,16 +85,16 @@ class qo extends Error {
|
|
|
85
85
|
super(`useRoute called with incorrect route. Given ${t}, expected ${n}`);
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function It() {
|
|
89
89
|
let e = 0;
|
|
90
90
|
return () => (++e).toString();
|
|
91
91
|
}
|
|
92
|
-
const zo =
|
|
92
|
+
const zo = It()();
|
|
93
93
|
function Wo(e) {
|
|
94
94
|
return e === zo;
|
|
95
95
|
}
|
|
96
|
-
const
|
|
97
|
-
function
|
|
96
|
+
const hn = It();
|
|
97
|
+
function ar(e) {
|
|
98
98
|
return e === void 0 ? "" : e;
|
|
99
99
|
}
|
|
100
100
|
class Se {
|
|
@@ -116,7 +116,7 @@ class Jo extends Error {
|
|
|
116
116
|
super(`Invalid Route Redirect "${t}": Router does not support multiple redirects to the same route. All redirects must be unique.`);
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function At() {
|
|
120
120
|
const e = new Se();
|
|
121
121
|
return {
|
|
122
122
|
redirect: (l, m) => {
|
|
@@ -137,7 +137,7 @@ function It() {
|
|
|
137
137
|
store: e
|
|
138
138
|
};
|
|
139
139
|
}
|
|
140
|
-
class
|
|
140
|
+
class En extends Error {
|
|
141
141
|
context;
|
|
142
142
|
constructor(t = {}) {
|
|
143
143
|
super(t.message ?? "Uncaught InvalidRouteParamValueError"), this.context = {
|
|
@@ -148,28 +148,28 @@ class hn extends Error {
|
|
|
148
148
|
};
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
|
-
const et = "[",
|
|
151
|
+
const et = "[", bt = "]";
|
|
152
152
|
function Ko(e) {
|
|
153
153
|
return e !== String && e !== Boolean && e !== Number && e !== Date;
|
|
154
154
|
}
|
|
155
155
|
function Yo(e) {
|
|
156
156
|
return typeof e == "function" && Ko(e);
|
|
157
157
|
}
|
|
158
|
-
function
|
|
158
|
+
function vt(e) {
|
|
159
159
|
return typeof e == "object" && "get" in e && typeof e.get == "function" && "set" in e && typeof e.set == "function";
|
|
160
160
|
}
|
|
161
|
-
function
|
|
161
|
+
function cr(e) {
|
|
162
162
|
return typeof e == "string" || typeof e == "number" || typeof e == "boolean";
|
|
163
163
|
}
|
|
164
164
|
function Qo(e, t) {
|
|
165
|
-
return
|
|
165
|
+
return vt(e) ? { ...e, defaultValue: t ?? e.defaultValue } : {
|
|
166
166
|
get: (n) => me(n, { param: e }),
|
|
167
167
|
set: (n) => ae(n, { param: e }),
|
|
168
168
|
defaultValue: t
|
|
169
169
|
};
|
|
170
170
|
}
|
|
171
|
-
function
|
|
172
|
-
return
|
|
171
|
+
function Et(e) {
|
|
172
|
+
return vt(e) && e.defaultValue !== void 0;
|
|
173
173
|
}
|
|
174
174
|
function Wc(e, t) {
|
|
175
175
|
return Qo(e, t);
|
|
@@ -262,9 +262,9 @@ async function ts() {
|
|
|
262
262
|
};
|
|
263
263
|
}
|
|
264
264
|
function ns(e) {
|
|
265
|
-
return Object.values(e).some((t) => ve(t) ? Object.values(t.schema.host.params).some(({ param: n }) =>
|
|
265
|
+
return Object.values(e).some((t) => ve(t) ? Object.values(t.schema.host.params).some(({ param: n }) => Gt(n)) || Object.values(t.schema.path.params).some(({ param: n }) => Gt(n)) || Object.values(t.schema.query.params).some(({ param: n }) => Gt(n)) : !1);
|
|
266
266
|
}
|
|
267
|
-
function
|
|
267
|
+
function Gt(e) {
|
|
268
268
|
return ke(e) && "parse" in e && typeof e.parse == "function" && "~standard" in e && ke(e["~standard"]) && "vendor" in e["~standard"] && e["~standard"].vendor === "zod";
|
|
269
269
|
}
|
|
270
270
|
async function rs() {
|
|
@@ -281,14 +281,14 @@ function fr(e) {
|
|
|
281
281
|
return {
|
|
282
282
|
get: (t, { invalid: n }) => {
|
|
283
283
|
try {
|
|
284
|
-
return
|
|
284
|
+
return Kt(t, e);
|
|
285
285
|
} catch {
|
|
286
286
|
throw n();
|
|
287
287
|
}
|
|
288
288
|
},
|
|
289
289
|
set: (t, { invalid: n }) => {
|
|
290
290
|
try {
|
|
291
|
-
return
|
|
291
|
+
return Yt(t, e);
|
|
292
292
|
} catch {
|
|
293
293
|
throw n();
|
|
294
294
|
}
|
|
@@ -312,10 +312,10 @@ function Ge(e) {
|
|
|
312
312
|
}
|
|
313
313
|
throw new Error("All functions failed");
|
|
314
314
|
}
|
|
315
|
-
function
|
|
315
|
+
function gt(e, t) {
|
|
316
316
|
return w?.ZodString && e instanceof w.ZodString ? 1 : w?.ZodString && t instanceof w.ZodString ? -1 : 0;
|
|
317
317
|
}
|
|
318
|
-
function
|
|
318
|
+
function Kt(e, t) {
|
|
319
319
|
if (!w)
|
|
320
320
|
throw new Error("Zod is not initialized");
|
|
321
321
|
if (t instanceof w.ZodString)
|
|
@@ -343,11 +343,11 @@ function Jt(e, t) {
|
|
|
343
343
|
if (t instanceof w.ZodArray || t instanceof w.ZodTuple)
|
|
344
344
|
return t.parse(JSON.parse(e, Pe));
|
|
345
345
|
if (t instanceof w.ZodUnion) {
|
|
346
|
-
const n = Array.from(t.def.options).sort(
|
|
346
|
+
const n = Array.from(t.def.options).sort(gt).map((r) => () => Kt(e, r));
|
|
347
347
|
return Ge(n);
|
|
348
348
|
}
|
|
349
349
|
if (t instanceof w.ZodDiscriminatedUnion) {
|
|
350
|
-
const n = Array.from(t.options).sort(
|
|
350
|
+
const n = Array.from(t.options).sort(gt).map((r) => () => Kt(e, r));
|
|
351
351
|
return Ge(n);
|
|
352
352
|
}
|
|
353
353
|
if (t instanceof w.ZodRecord)
|
|
@@ -362,7 +362,7 @@ function Jt(e, t) {
|
|
|
362
362
|
throw new Error("Promise schemas are not supported");
|
|
363
363
|
return t.parse(e);
|
|
364
364
|
}
|
|
365
|
-
function
|
|
365
|
+
function Yt(e, t) {
|
|
366
366
|
if (!w)
|
|
367
367
|
throw new Error("Zod is not initialized");
|
|
368
368
|
if (t instanceof w.ZodString || t instanceof w.ZodISODateTime || t instanceof w.ZodISODate || t instanceof w.ZodISOTime || t instanceof w.ZodIPv4 || t instanceof w.ZodIPv6 || t instanceof w.ZodCIDRv4 || t instanceof w.ZodCIDRv6 || t instanceof w.ZodURL || t instanceof w.ZodEmail || t instanceof w.ZodUUID || t instanceof w.ZodBase64 || t instanceof w.ZodCUID || t instanceof w.ZodCUID2 || t instanceof w.ZodULID || t instanceof w.ZodJWT)
|
|
@@ -390,11 +390,11 @@ function Kt(e, t) {
|
|
|
390
390
|
if (t instanceof w.ZodArray || t instanceof w.ZodTuple)
|
|
391
391
|
return JSON.stringify(t.parse(e));
|
|
392
392
|
if (t instanceof w.ZodUnion) {
|
|
393
|
-
const n = Array.from(t.def.options).sort(
|
|
393
|
+
const n = Array.from(t.def.options).sort(gt).map((r) => () => Yt(e, r));
|
|
394
394
|
return Ge(n);
|
|
395
395
|
}
|
|
396
396
|
if (t instanceof w.ZodDiscriminatedUnion) {
|
|
397
|
-
const n = Array.from(t.options).sort(
|
|
397
|
+
const n = Array.from(t.options).sort(gt).map((r) => () => Yt(e, r));
|
|
398
398
|
return Ge(n);
|
|
399
399
|
}
|
|
400
400
|
if (t instanceof w.ZodRecord)
|
|
@@ -413,12 +413,12 @@ function Kt(e, t) {
|
|
|
413
413
|
throw new Error("Promise schemas are not supported");
|
|
414
414
|
return JSON.stringify(t.parse(e));
|
|
415
415
|
}
|
|
416
|
-
function
|
|
416
|
+
function gn(e) {
|
|
417
417
|
return typeof e == "object" && e !== null && "then" in e;
|
|
418
418
|
}
|
|
419
419
|
function b(e, t) {
|
|
420
420
|
const n = e["~standard"].validate(t);
|
|
421
|
-
if (
|
|
421
|
+
if (gn(n))
|
|
422
422
|
throw new Error("Promise schemas are not supported");
|
|
423
423
|
if (n.issues)
|
|
424
424
|
throw new Error("Validation failed");
|
|
@@ -434,14 +434,14 @@ function dr(e) {
|
|
|
434
434
|
return {
|
|
435
435
|
get: (t, { invalid: n }) => {
|
|
436
436
|
try {
|
|
437
|
-
return
|
|
437
|
+
return Qt(t, e);
|
|
438
438
|
} catch {
|
|
439
439
|
throw n();
|
|
440
440
|
}
|
|
441
441
|
},
|
|
442
442
|
set: (t, { invalid: n }) => {
|
|
443
443
|
try {
|
|
444
|
-
return
|
|
444
|
+
return Xt(t, e);
|
|
445
445
|
} catch {
|
|
446
446
|
throw n();
|
|
447
447
|
}
|
|
@@ -465,10 +465,10 @@ function Ie(e) {
|
|
|
465
465
|
}
|
|
466
466
|
throw new Error("All functions failed");
|
|
467
467
|
}
|
|
468
|
-
function
|
|
468
|
+
function _t(e, t) {
|
|
469
469
|
return e.type === "string" ? 1 : t.type === "string" ? -1 : 0;
|
|
470
470
|
}
|
|
471
|
-
function
|
|
471
|
+
function Qt(e, t) {
|
|
472
472
|
if (t.type === "boolean")
|
|
473
473
|
return b(t, !!e);
|
|
474
474
|
if (t.type === "date")
|
|
@@ -492,11 +492,11 @@ function Yt(e, t) {
|
|
|
492
492
|
if (t.type === "array" || t.type === "tuple")
|
|
493
493
|
return b(t, JSON.parse(e, Ne));
|
|
494
494
|
if (t.type === "union" && "options" in t) {
|
|
495
|
-
const n = t.options.sort(
|
|
495
|
+
const n = t.options.sort(_t).map((r) => () => Qt(e, r));
|
|
496
496
|
return Ie(n);
|
|
497
497
|
}
|
|
498
498
|
if (t.type === "variant" && "options" in t) {
|
|
499
|
-
const n = t.options.sort(
|
|
499
|
+
const n = t.options.sort(_t).map((r) => () => Qt(e, r));
|
|
500
500
|
return Ie(n);
|
|
501
501
|
}
|
|
502
502
|
if (t.type === "record")
|
|
@@ -513,7 +513,7 @@ function Yt(e, t) {
|
|
|
513
513
|
throw new Error("Function schemas are not supported");
|
|
514
514
|
return b(t, e);
|
|
515
515
|
}
|
|
516
|
-
function
|
|
516
|
+
function Xt(e, t) {
|
|
517
517
|
if (t.type === "string" || t.type === "boolean")
|
|
518
518
|
return b(t, e).toString();
|
|
519
519
|
if (t.type === "date")
|
|
@@ -529,11 +529,11 @@ function Qt(e, t) {
|
|
|
529
529
|
if (t.type === "array" || t.type === "tuple")
|
|
530
530
|
return JSON.stringify(b(t, e));
|
|
531
531
|
if (t.type === "union" && "options" in t) {
|
|
532
|
-
const n = t.options.sort(
|
|
532
|
+
const n = t.options.sort(_t).map((r) => () => Xt(e, r));
|
|
533
533
|
return Ie(n);
|
|
534
534
|
}
|
|
535
535
|
if (t.type === "variant" && "options" in t) {
|
|
536
|
-
const n = t.options.sort(
|
|
536
|
+
const n = t.options.sort(_t).map((r) => () => Xt(e, r));
|
|
537
537
|
return Ie(n);
|
|
538
538
|
}
|
|
539
539
|
if (t.type === "record")
|
|
@@ -560,7 +560,7 @@ function as(e, t) {
|
|
|
560
560
|
function pr(e) {
|
|
561
561
|
return {
|
|
562
562
|
invalid: (t) => {
|
|
563
|
-
throw new
|
|
563
|
+
throw new En({ ...e, message: t });
|
|
564
564
|
}
|
|
565
565
|
};
|
|
566
566
|
}
|
|
@@ -571,7 +571,7 @@ const hr = {
|
|
|
571
571
|
throw t(`Expected string value, received ${JSON.stringify(e)}`);
|
|
572
572
|
return e;
|
|
573
573
|
}
|
|
574
|
-
},
|
|
574
|
+
}, _n = {
|
|
575
575
|
get: (e, { invalid: t }) => {
|
|
576
576
|
if (e === "true")
|
|
577
577
|
return !0;
|
|
@@ -584,7 +584,7 @@ const hr = {
|
|
|
584
584
|
throw t(`Expected boolean value, received ${JSON.stringify(e)}`);
|
|
585
585
|
return e.toString();
|
|
586
586
|
}
|
|
587
|
-
},
|
|
587
|
+
}, mn = {
|
|
588
588
|
get: (e, { invalid: t }) => {
|
|
589
589
|
const n = Number(e);
|
|
590
590
|
if (isNaN(n))
|
|
@@ -629,9 +629,9 @@ function cs(e, t, n) {
|
|
|
629
629
|
case "string":
|
|
630
630
|
return hr.get(e, n) === t;
|
|
631
631
|
case "number":
|
|
632
|
-
return
|
|
632
|
+
return mn.get(e, n) === t;
|
|
633
633
|
case "boolean":
|
|
634
|
-
return
|
|
634
|
+
return _n.get(e, n) === t;
|
|
635
635
|
default:
|
|
636
636
|
return !1;
|
|
637
637
|
}
|
|
@@ -639,7 +639,7 @@ function cs(e, t, n) {
|
|
|
639
639
|
function me(e, { param: t = String, isOptional: n = !1 } = {}) {
|
|
640
640
|
const r = pr({ param: t, value: e, isGetter: !0 });
|
|
641
641
|
if (e === void 0 || !oe(e)) {
|
|
642
|
-
if (
|
|
642
|
+
if (Et(t))
|
|
643
643
|
return t.defaultValue;
|
|
644
644
|
if (n)
|
|
645
645
|
return;
|
|
@@ -648,34 +648,34 @@ function me(e, { param: t = String, isOptional: n = !1 } = {}) {
|
|
|
648
648
|
if (t === String)
|
|
649
649
|
return hr.get(e, r);
|
|
650
650
|
if (t === Boolean)
|
|
651
|
-
return gn.get(e, r);
|
|
652
|
-
if (t === Number)
|
|
653
651
|
return _n.get(e, r);
|
|
652
|
+
if (t === Number)
|
|
653
|
+
return mn.get(e, r);
|
|
654
654
|
if (t === Date)
|
|
655
655
|
return Er.get(e, r);
|
|
656
656
|
if (t === JSON)
|
|
657
657
|
return gr.get(e, r);
|
|
658
658
|
if (Yo(t))
|
|
659
659
|
return t(e, r);
|
|
660
|
-
if (
|
|
660
|
+
if (vt(t))
|
|
661
661
|
return t.get(e, r);
|
|
662
662
|
if (t instanceof RegExp) {
|
|
663
663
|
if (t.test(e))
|
|
664
664
|
return e;
|
|
665
665
|
throw r.invalid(`Expected value to match regex ${t.toString()}, received ${JSON.stringify(e)}`);
|
|
666
666
|
}
|
|
667
|
-
if (
|
|
667
|
+
if (cr(t)) {
|
|
668
668
|
if (cs(e, t, r))
|
|
669
669
|
return t;
|
|
670
670
|
throw r.invalid(`Expected value to be ${t}, received ${JSON.stringify(e)}`);
|
|
671
671
|
}
|
|
672
672
|
return ur(t) ? fr(t).get(e, r) : lr(t) ? dr(t).get(e, r) : e;
|
|
673
673
|
}
|
|
674
|
-
function
|
|
674
|
+
function en(e, t) {
|
|
675
675
|
try {
|
|
676
676
|
return me(e, t);
|
|
677
677
|
} catch (n) {
|
|
678
|
-
if (n instanceof
|
|
678
|
+
if (n instanceof En)
|
|
679
679
|
return;
|
|
680
680
|
throw n;
|
|
681
681
|
}
|
|
@@ -684,7 +684,7 @@ function us(e, t) {
|
|
|
684
684
|
try {
|
|
685
685
|
return ae(e, t);
|
|
686
686
|
} catch (n) {
|
|
687
|
-
if (n instanceof
|
|
687
|
+
if (n instanceof En)
|
|
688
688
|
return;
|
|
689
689
|
throw n;
|
|
690
690
|
}
|
|
@@ -697,16 +697,16 @@ function ae(e, { param: t = String, isOptional: n = !1 } = {}) {
|
|
|
697
697
|
throw r.invalid(`Param is not optional, received ${JSON.stringify(e)}`);
|
|
698
698
|
}
|
|
699
699
|
if (t === Boolean)
|
|
700
|
-
return gn.set(e, r);
|
|
701
|
-
if (t === Number)
|
|
702
700
|
return _n.set(e, r);
|
|
701
|
+
if (t === Number)
|
|
702
|
+
return mn.set(e, r);
|
|
703
703
|
if (t === Date)
|
|
704
704
|
return Er.set(e, r);
|
|
705
705
|
if (t === JSON)
|
|
706
706
|
return gr.set(e, r);
|
|
707
|
-
if (
|
|
707
|
+
if (vt(t))
|
|
708
708
|
return t.set(e, r);
|
|
709
|
-
if (
|
|
709
|
+
if (cr(t)) {
|
|
710
710
|
if (t !== e)
|
|
711
711
|
throw r.invalid(`Expected value to be literal ${t}, received ${JSON.stringify(e)}`);
|
|
712
712
|
return e.toString();
|
|
@@ -721,8 +721,8 @@ function ae(e, { param: t = String, isOptional: n = !1 } = {}) {
|
|
|
721
721
|
throw r.invalid(`Unable to set param value, received ${JSON.stringify(e)}`);
|
|
722
722
|
}
|
|
723
723
|
}
|
|
724
|
-
const
|
|
725
|
-
function
|
|
724
|
+
const kt = `\\${et}\\??([\\w-_]+)\\*?\\${bt}`, fs = `\\${et}\\?([\\w-_]+)\\*?\\${bt}`, ls = `\\${et}\\??([\\w-_]+)\\*\\${bt}`, ds = "[^/]*", ps = ".*", hs = "([^/]*)", Es = "(.*)";
|
|
725
|
+
function yn(e) {
|
|
726
726
|
return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
727
727
|
}
|
|
728
728
|
function gs(e, t) {
|
|
@@ -731,7 +731,7 @@ function gs(e, t) {
|
|
|
731
731
|
return [e];
|
|
732
732
|
let r = 0;
|
|
733
733
|
const o = n.reduce((a, i) => {
|
|
734
|
-
const u =
|
|
734
|
+
const u = yn(e.slice(r, i.index));
|
|
735
735
|
u.length && a.push(u);
|
|
736
736
|
const [l] = i;
|
|
737
737
|
return a.push(l), r = i.index + l.length, a;
|
|
@@ -739,29 +739,29 @@ function gs(e, t) {
|
|
|
739
739
|
return s && o.push(s), o;
|
|
740
740
|
}
|
|
741
741
|
function _s(e) {
|
|
742
|
-
const t =
|
|
742
|
+
const t = Ct(e);
|
|
743
743
|
return new RegExp(`^${t || ".*"}$`, "i");
|
|
744
744
|
}
|
|
745
|
-
function
|
|
746
|
-
const t =
|
|
745
|
+
function Dn(e) {
|
|
746
|
+
const t = Ct(e);
|
|
747
747
|
return new RegExp(`^${t}$`, "i");
|
|
748
748
|
}
|
|
749
749
|
function ms(e) {
|
|
750
|
-
const t = e.replace(/^#*/, ""), n =
|
|
750
|
+
const t = e.replace(/^#*/, ""), n = Ct(t);
|
|
751
751
|
return new RegExp(`^#?${n || ".*"}$`, "i");
|
|
752
752
|
}
|
|
753
753
|
function ys(e) {
|
|
754
754
|
const t = new URLSearchParams(e);
|
|
755
755
|
return Array.from(t.entries()).filter(([, n]) => !mr(n)).map(([n, r]) => {
|
|
756
|
-
const o =
|
|
757
|
-
return new RegExp(`${
|
|
756
|
+
const o = Ct(r);
|
|
757
|
+
return new RegExp(`${yn(n)}=${o}(&|$)`, "i");
|
|
758
758
|
});
|
|
759
759
|
}
|
|
760
|
-
function
|
|
761
|
-
return gs(e, new RegExp(
|
|
760
|
+
function Ct(e) {
|
|
761
|
+
return gs(e, new RegExp(kt, "g")).map((t) => t.startsWith(et) ? _r(t) : yn(t)).join("");
|
|
762
762
|
}
|
|
763
763
|
function _r(e) {
|
|
764
|
-
return e.replace(new RegExp(
|
|
764
|
+
return e.replace(new RegExp(kt, "g"), (t) => yr(t) ? ps : ds);
|
|
765
765
|
}
|
|
766
766
|
function Rs(e, t) {
|
|
767
767
|
const n = Rr(t), { isGreedy: r = !1 } = e.params[t] ?? {}, o = r ? Es : hs;
|
|
@@ -773,22 +773,22 @@ function mr(e) {
|
|
|
773
773
|
function yr(e) {
|
|
774
774
|
return new RegExp(ls, "g").test(e);
|
|
775
775
|
}
|
|
776
|
-
function
|
|
777
|
-
const [t] = Sr(e, new RegExp(
|
|
776
|
+
function Ut(e) {
|
|
777
|
+
const [t] = Sr(e, new RegExp(kt, "g"));
|
|
778
778
|
return t;
|
|
779
779
|
}
|
|
780
780
|
function Rr(e) {
|
|
781
|
-
return new RegExp(`\\${et}\\??${e}\\*?\\${
|
|
781
|
+
return new RegExp(`\\${et}\\??${e}\\*?\\${bt}`, "g");
|
|
782
782
|
}
|
|
783
783
|
function Sr(e, t) {
|
|
784
784
|
return Array.from(e.matchAll(t)).flatMap(([, ...r]) => r.map((o) => oe(o) ? o : ""));
|
|
785
785
|
}
|
|
786
786
|
function Ss(e = "", t = {}) {
|
|
787
|
-
return oe(e) ? Array.from(e.matchAll(new RegExp(
|
|
788
|
-
const a =
|
|
787
|
+
return oe(e) ? Array.from(e.matchAll(new RegExp(kt, "g"))).reduce((r, [o, s]) => {
|
|
788
|
+
const a = Ut(o);
|
|
789
789
|
if (!a)
|
|
790
790
|
return r;
|
|
791
|
-
const i = as(t, a), u = mr(o) ||
|
|
791
|
+
const i = as(t, a), u = mr(o) || Et(i), l = yr(o);
|
|
792
792
|
return Xe([a], r), r[s] = { param: i, isOptional: u, isGreedy: l }, r;
|
|
793
793
|
}, {}) : {};
|
|
794
794
|
}
|
|
@@ -797,16 +797,16 @@ function Tr(e) {
|
|
|
797
797
|
return ke(e) && e[Or] === !0;
|
|
798
798
|
}
|
|
799
799
|
function X(e) {
|
|
800
|
-
return e === void 0 ?
|
|
800
|
+
return e === void 0 ? tn() : Tr(e) ? e : tn(e, {});
|
|
801
801
|
}
|
|
802
|
-
function
|
|
802
|
+
function tn(e, t) {
|
|
803
803
|
return {
|
|
804
804
|
value: e ?? "",
|
|
805
805
|
params: Ss(e, t),
|
|
806
806
|
[Or]: !0
|
|
807
807
|
};
|
|
808
808
|
}
|
|
809
|
-
function
|
|
809
|
+
function Lt(e) {
|
|
810
810
|
if (typeof e == "string" || typeof e > "u" || Tr(e))
|
|
811
811
|
return X(e);
|
|
812
812
|
const t = Array.isArray(e) ? e : Object.entries(e), n = [], r = {};
|
|
@@ -814,10 +814,10 @@ function Ut(e) {
|
|
|
814
814
|
if (typeof s == "string")
|
|
815
815
|
n.push(`${o}=${s}`);
|
|
816
816
|
else {
|
|
817
|
-
const a = `[${o}]`, i =
|
|
817
|
+
const a = `[${o}]`, i = Ut(a);
|
|
818
818
|
i && (r[i] = s), n.push(`${i}=${a}`);
|
|
819
819
|
}
|
|
820
|
-
return
|
|
820
|
+
return tn(n.join("&"), r);
|
|
821
821
|
}
|
|
822
822
|
function Os(e, t, n) {
|
|
823
823
|
const r = Rs(t, n), o = _r(r), [s] = Sr(e, new RegExp(o, "g"));
|
|
@@ -837,7 +837,7 @@ function wr(...e) {
|
|
|
837
837
|
return t;
|
|
838
838
|
}
|
|
839
839
|
const lt = "https://internal.invalid";
|
|
840
|
-
function
|
|
840
|
+
function Dt(e) {
|
|
841
841
|
const t = new URL(e.host ?? lt, lt);
|
|
842
842
|
return t.pathname = e.path ?? "", t.search = new URLSearchParams(e.query).toString(), t.hash = e.hash ?? "", Fo(t.toString().replace(new RegExp(`^${lt}/*`), "/"));
|
|
843
843
|
}
|
|
@@ -847,7 +847,7 @@ function se(e) {
|
|
|
847
847
|
function Ce(e, t) {
|
|
848
848
|
if (typeof e == "string") {
|
|
849
849
|
const r = Ce(se(e), t);
|
|
850
|
-
return
|
|
850
|
+
return Dt(r);
|
|
851
851
|
}
|
|
852
852
|
const n = new URLSearchParams(t.query);
|
|
853
853
|
return {
|
|
@@ -878,7 +878,7 @@ function qe(e) {
|
|
|
878
878
|
const t = {
|
|
879
879
|
host: X(e.host),
|
|
880
880
|
path: X(e.path),
|
|
881
|
-
query: Is(
|
|
881
|
+
query: Is(Lt(e.query)),
|
|
882
882
|
hash: Ns(X(e.hash))
|
|
883
883
|
};
|
|
884
884
|
Xe(t.path.params, t.query.params, t.host.params, t.hash.params);
|
|
@@ -886,16 +886,16 @@ function qe(e) {
|
|
|
886
886
|
...t.host,
|
|
887
887
|
regexp: _s(t.host.value),
|
|
888
888
|
stringify(c = {}) {
|
|
889
|
-
return
|
|
889
|
+
return $t(t.host, c);
|
|
890
890
|
}
|
|
891
891
|
}, r = {
|
|
892
892
|
...t.path,
|
|
893
893
|
regexp: {
|
|
894
|
-
trailingSlashIgnored:
|
|
895
|
-
trailingSlashRemoved:
|
|
894
|
+
trailingSlashIgnored: Dn(t.path.value),
|
|
895
|
+
trailingSlashRemoved: Dn(t.path.value.replace(/^(.+)\/$/, "$1"))
|
|
896
896
|
},
|
|
897
897
|
stringify(c = {}) {
|
|
898
|
-
return
|
|
898
|
+
return $t(t.path, c);
|
|
899
899
|
}
|
|
900
900
|
}, o = {
|
|
901
901
|
...t.query,
|
|
@@ -907,11 +907,11 @@ function qe(e) {
|
|
|
907
907
|
...t.hash,
|
|
908
908
|
regexp: ms(t.hash.value),
|
|
909
909
|
stringify(c = {}) {
|
|
910
|
-
return
|
|
910
|
+
return $t(t.hash, c);
|
|
911
911
|
}
|
|
912
912
|
};
|
|
913
913
|
function a(c = {}) {
|
|
914
|
-
return
|
|
914
|
+
return Dt({
|
|
915
915
|
host: n.stringify(c),
|
|
916
916
|
path: r.stringify(c),
|
|
917
917
|
query: o.stringify(c),
|
|
@@ -934,10 +934,10 @@ function qe(e) {
|
|
|
934
934
|
i(c, E);
|
|
935
935
|
const f = se(c);
|
|
936
936
|
return {
|
|
937
|
-
|
|
938
|
-
|
|
937
|
+
...Ft(n, f.host ?? ""),
|
|
938
|
+
...Ft(r, f.path),
|
|
939
939
|
...bs(o, f.query.toString()),
|
|
940
|
-
|
|
940
|
+
...Ft(s, f.hash)
|
|
941
941
|
};
|
|
942
942
|
}
|
|
943
943
|
function l(c, E = {}) {
|
|
@@ -951,7 +951,7 @@ function qe(e) {
|
|
|
951
951
|
...{
|
|
952
952
|
schema: { host: n, path: r, query: o, hash: s },
|
|
953
953
|
params: {},
|
|
954
|
-
[
|
|
954
|
+
[ir]: !0
|
|
955
955
|
},
|
|
956
956
|
isRelative: !oe(t.host.value),
|
|
957
957
|
stringify: a,
|
|
@@ -971,7 +971,7 @@ function Is(e) {
|
|
|
971
971
|
value: e.value.replace(/^\?/, "")
|
|
972
972
|
};
|
|
973
973
|
}
|
|
974
|
-
function
|
|
974
|
+
function $t(e, t) {
|
|
975
975
|
return Object.keys(e.params).reduce((n, r) => Ts(n, e, r, t[r]), e.value);
|
|
976
976
|
}
|
|
977
977
|
function As(e, t) {
|
|
@@ -979,7 +979,7 @@ function As(e, t) {
|
|
|
979
979
|
if (!e.value)
|
|
980
980
|
return n;
|
|
981
981
|
for (const [r, o] of Array.from(n.entries())) {
|
|
982
|
-
const s =
|
|
982
|
+
const s = Ut(o);
|
|
983
983
|
if (!s)
|
|
984
984
|
continue;
|
|
985
985
|
const i = ae(t[s], e.params[s]), u = t[s] === void 0 && i === "";
|
|
@@ -987,7 +987,7 @@ function As(e, t) {
|
|
|
987
987
|
}
|
|
988
988
|
return n;
|
|
989
989
|
}
|
|
990
|
-
function
|
|
990
|
+
function Ft(e, t) {
|
|
991
991
|
const n = {}, r = decodeURIComponent(t);
|
|
992
992
|
for (const [o, s] of Object.entries(e.params)) {
|
|
993
993
|
const a = Os(r, e, o), i = me(a, s);
|
|
@@ -998,7 +998,7 @@ function $t(e, t) {
|
|
|
998
998
|
function bs(e, t) {
|
|
999
999
|
const n = {}, r = new URLSearchParams(e.value), o = new URLSearchParams(t);
|
|
1000
1000
|
for (const [s, a] of Array.from(r.entries())) {
|
|
1001
|
-
const i =
|
|
1001
|
+
const i = Ut(a);
|
|
1002
1002
|
if (!i)
|
|
1003
1003
|
continue;
|
|
1004
1004
|
const l = o.get(s) ?? void 0, m = me(l, e.params[i]);
|
|
@@ -1006,7 +1006,7 @@ function bs(e, t) {
|
|
|
1006
1006
|
}
|
|
1007
1007
|
return n;
|
|
1008
1008
|
}
|
|
1009
|
-
class
|
|
1009
|
+
class xn extends Error {
|
|
1010
1010
|
/**
|
|
1011
1011
|
* Constructs a new InvalidRouteRedirectError instance with a message indicating the problematic route redirect.
|
|
1012
1012
|
* @param routeName - The name of the route that does not support redirects.
|
|
@@ -1015,26 +1015,26 @@ class Dn extends Error {
|
|
|
1015
1015
|
super(`Invalid Route Redirect "${t}": Route does not support redirects. Use createRouteRedirects to create redirects.`);
|
|
1016
1016
|
}
|
|
1017
1017
|
}
|
|
1018
|
-
function
|
|
1018
|
+
function Vn(e) {
|
|
1019
1019
|
return "redirect" in e;
|
|
1020
1020
|
}
|
|
1021
1021
|
function Pr({ getRoute: e }) {
|
|
1022
1022
|
return {
|
|
1023
1023
|
redirectTo: (...[r, o]) => {
|
|
1024
1024
|
const s = e();
|
|
1025
|
-
if (!
|
|
1026
|
-
throw new
|
|
1025
|
+
if (!Vn(s))
|
|
1026
|
+
throw new xn(s.name);
|
|
1027
1027
|
r.context.push(s), s.context.push(r), s.redirect(r, o);
|
|
1028
1028
|
},
|
|
1029
1029
|
redirectFrom: (r, o) => {
|
|
1030
1030
|
const s = e();
|
|
1031
|
-
if (!
|
|
1032
|
-
throw new
|
|
1031
|
+
if (!Vn(r))
|
|
1032
|
+
throw new xn(r.name);
|
|
1033
1033
|
s.context.push(r), r.context.push(s), r.redirect(s, o);
|
|
1034
1034
|
}
|
|
1035
1035
|
};
|
|
1036
1036
|
}
|
|
1037
|
-
function
|
|
1037
|
+
function nn(e, t) {
|
|
1038
1038
|
Xe(e.params, t.params);
|
|
1039
1039
|
const n = `${e.value}${t.value}`;
|
|
1040
1040
|
return {
|
|
@@ -1043,7 +1043,7 @@ function tn(e, t) {
|
|
|
1043
1043
|
params: { ...e.params, ...t.params }
|
|
1044
1044
|
};
|
|
1045
1045
|
}
|
|
1046
|
-
function
|
|
1046
|
+
function Mn(e, t) {
|
|
1047
1047
|
Xe(e.params, t.params);
|
|
1048
1048
|
const n = [e.value, t.value].filter(oe).join("&");
|
|
1049
1049
|
return {
|
|
@@ -1052,33 +1052,33 @@ function Vn(e, t) {
|
|
|
1052
1052
|
params: { ...e.params, ...t.params }
|
|
1053
1053
|
};
|
|
1054
1054
|
}
|
|
1055
|
-
function
|
|
1056
|
-
return
|
|
1055
|
+
function Bn(e, t) {
|
|
1056
|
+
return nn(e, t);
|
|
1057
1057
|
}
|
|
1058
|
-
function
|
|
1058
|
+
function Rn(e, t) {
|
|
1059
1059
|
if (!ve(e))
|
|
1060
1060
|
throw new Error("Parent is not a valid url");
|
|
1061
1061
|
if (!vs(t))
|
|
1062
1062
|
return qe({
|
|
1063
1063
|
host: e.schema.host,
|
|
1064
|
-
path:
|
|
1065
|
-
query:
|
|
1066
|
-
hash:
|
|
1064
|
+
path: nn(e.schema.path, X(t.path)),
|
|
1065
|
+
query: Mn(e.schema.query, Lt(t.query)),
|
|
1066
|
+
hash: Bn(e.schema.hash, X(t.hash))
|
|
1067
1067
|
});
|
|
1068
1068
|
if (!ve(t))
|
|
1069
1069
|
throw new Error("Child is not a valid url");
|
|
1070
1070
|
return qe({
|
|
1071
1071
|
host: e.schema.host,
|
|
1072
|
-
path:
|
|
1073
|
-
query:
|
|
1074
|
-
hash:
|
|
1072
|
+
path: nn(e.schema.path, t.schema.path),
|
|
1073
|
+
query: Mn(e.schema.query, t.schema.query),
|
|
1074
|
+
hash: Bn(e.schema.hash, t.schema.hash)
|
|
1075
1075
|
});
|
|
1076
1076
|
}
|
|
1077
1077
|
function vs(e) {
|
|
1078
1078
|
return ve(e);
|
|
1079
1079
|
}
|
|
1080
1080
|
function Ue(e, t) {
|
|
1081
|
-
const n =
|
|
1081
|
+
const n = hn(), r = ar(e.name), o = X(e.path), s = Lt(e.query), a = X(e.hash), i = e.meta ?? {}, u = e.state ?? {}, l = e.context ?? [], { store: m, ...c } = At(), E = ht({ ...e, id: n, meta: i, state: u, props: t, name: r }), f = Pr({
|
|
1082
1082
|
getRoute: () => y
|
|
1083
1083
|
}), p = qe({
|
|
1084
1084
|
path: o,
|
|
@@ -1099,8 +1099,8 @@ function Ue(e, t) {
|
|
|
1099
1099
|
...p,
|
|
1100
1100
|
...c
|
|
1101
1101
|
};
|
|
1102
|
-
if (
|
|
1103
|
-
const _ =
|
|
1102
|
+
if (nr(e)) {
|
|
1103
|
+
const _ = sr(e.parent, y), h = Rn(e.parent, {
|
|
1104
1104
|
path: o,
|
|
1105
1105
|
query: s,
|
|
1106
1106
|
hash: a
|
|
@@ -1126,7 +1126,7 @@ function Jc(e) {
|
|
|
1126
1126
|
};
|
|
1127
1127
|
}
|
|
1128
1128
|
function Kc(e) {
|
|
1129
|
-
const t =
|
|
1129
|
+
const t = hn(), n = ar(e.name), r = X(e.path), o = Lt(e.query), s = X(e.hash), a = e.meta ?? {}, i = X(e.host), u = e.context ?? [], { store: l, ...m } = At(), c = Pr({
|
|
1130
1130
|
getRoute: () => p
|
|
1131
1131
|
}), E = ht({ id: t, meta: {}, state: {}, ...e }), f = qe({
|
|
1132
1132
|
host: i,
|
|
@@ -1147,8 +1147,8 @@ function Kc(e) {
|
|
|
1147
1147
|
...c,
|
|
1148
1148
|
...f
|
|
1149
1149
|
};
|
|
1150
|
-
if (
|
|
1151
|
-
const y =
|
|
1150
|
+
if (nr(e)) {
|
|
1151
|
+
const y = sr(e.parent, p), _ = Rn(e.parent, {
|
|
1152
1152
|
path: r,
|
|
1153
1153
|
query: o,
|
|
1154
1154
|
hash: s
|
|
@@ -1225,21 +1225,21 @@ function Ls(e, t) {
|
|
|
1225
1225
|
return r.onAfterRouteLeave.forEach((s) => n.onAfterRouteLeave.add(s));
|
|
1226
1226
|
}), n;
|
|
1227
1227
|
}
|
|
1228
|
-
class
|
|
1228
|
+
class xt extends Error {
|
|
1229
1229
|
}
|
|
1230
|
-
class ie extends
|
|
1230
|
+
class ie extends xt {
|
|
1231
1231
|
response;
|
|
1232
1232
|
constructor(t) {
|
|
1233
1233
|
super("Uncaught ContextPushError"), this.response = { status: "PUSH", to: t };
|
|
1234
1234
|
}
|
|
1235
1235
|
}
|
|
1236
|
-
class Ee extends
|
|
1236
|
+
class Ee extends xt {
|
|
1237
1237
|
response;
|
|
1238
1238
|
constructor(t) {
|
|
1239
1239
|
super("Uncaught ContextRejectionError"), this.response = { status: "REJECT", type: t };
|
|
1240
1240
|
}
|
|
1241
1241
|
}
|
|
1242
|
-
class Ar extends
|
|
1242
|
+
class Ar extends xt {
|
|
1243
1243
|
response;
|
|
1244
1244
|
constructor() {
|
|
1245
1245
|
super("Uncaught ContextAbortError"), this.response = { status: "ABORT" };
|
|
@@ -1306,7 +1306,7 @@ function $e({ to: e }) {
|
|
|
1306
1306
|
}
|
|
1307
1307
|
const vr = tt();
|
|
1308
1308
|
function Vs() {
|
|
1309
|
-
const { setVueApp: e, runWithContext: t } = br(), { store: n, ...r } =
|
|
1309
|
+
const { setVueApp: e, runWithContext: t } = br(), { store: n, ...r } = At(), o = new Se(), s = async ({ to: m, from: c }) => {
|
|
1310
1310
|
const { reject: E, push: f, replace: p, update: y, abort: _ } = $e({ to: m }), h = Us(m, c), S = Ds(m, c, n), R = [
|
|
1311
1311
|
...h.redirects,
|
|
1312
1312
|
...S.onBeforeRouteEnter,
|
|
@@ -1386,7 +1386,7 @@ function Vs() {
|
|
|
1386
1386
|
S(m, { to: c, from: E, source: f, reject: p, push: y, replace: _, update: h });
|
|
1387
1387
|
return;
|
|
1388
1388
|
} catch (R) {
|
|
1389
|
-
if (R instanceof
|
|
1389
|
+
if (R instanceof xt)
|
|
1390
1390
|
throw R;
|
|
1391
1391
|
if (R === m)
|
|
1392
1392
|
continue;
|
|
@@ -1424,7 +1424,7 @@ function ct(e, t) {
|
|
|
1424
1424
|
const n = Ir(e), r = Ms(e);
|
|
1425
1425
|
return (o) => {
|
|
1426
1426
|
const s = n(), i = r().addComponentHook({ lifecycle: t, hook: o, depth: s - 1 });
|
|
1427
|
-
return
|
|
1427
|
+
return pn(i), i;
|
|
1428
1428
|
};
|
|
1429
1429
|
}
|
|
1430
1430
|
function Bs(e) {
|
|
@@ -1470,7 +1470,7 @@ function js(e, t) {
|
|
|
1470
1470
|
}
|
|
1471
1471
|
function Zs(e, t, n) {
|
|
1472
1472
|
function r(d) {
|
|
1473
|
-
const g =
|
|
1473
|
+
const g = Dt({
|
|
1474
1474
|
...se(t.href),
|
|
1475
1475
|
query: void 0
|
|
1476
1476
|
}), O = Ce(g, { query: d });
|
|
@@ -1546,7 +1546,7 @@ function Zs(e, t, n) {
|
|
|
1546
1546
|
o({}, { state: d });
|
|
1547
1547
|
}
|
|
1548
1548
|
});
|
|
1549
|
-
return
|
|
1549
|
+
return Nt({
|
|
1550
1550
|
id: u,
|
|
1551
1551
|
matched: l,
|
|
1552
1552
|
matches: m,
|
|
@@ -1562,11 +1562,11 @@ function Zs(e, t, n) {
|
|
|
1562
1562
|
[e]: !0
|
|
1563
1563
|
});
|
|
1564
1564
|
}
|
|
1565
|
-
function
|
|
1565
|
+
function Sn(e) {
|
|
1566
1566
|
return (t, n, { exact: r } = {}) => js(e, t) ? n === void 0 ? !0 : r ? t.matched.name === n : t.matches.map((o) => o.name).includes(n) : !1;
|
|
1567
1567
|
}
|
|
1568
|
-
function
|
|
1569
|
-
const t = st(e), n =
|
|
1568
|
+
function Vt(e) {
|
|
1569
|
+
const t = st(e), n = Sn(e);
|
|
1570
1570
|
return (r, o) => {
|
|
1571
1571
|
const s = t();
|
|
1572
1572
|
function a() {
|
|
@@ -1578,8 +1578,8 @@ function xt(e) {
|
|
|
1578
1578
|
return fe(s.route, a, { immediate: !0, deep: !0 }), s.route;
|
|
1579
1579
|
};
|
|
1580
1580
|
}
|
|
1581
|
-
function
|
|
1582
|
-
const t =
|
|
1581
|
+
function On(e) {
|
|
1582
|
+
const t = Vt(e), n = st(e), r = Ur(e), o = Ir(e), s = Hs(e);
|
|
1583
1583
|
return Me((a, i) => {
|
|
1584
1584
|
const u = t(), l = n(), m = r(), c = o({ increment: !0 });
|
|
1585
1585
|
xo(async () => {
|
|
@@ -1626,7 +1626,7 @@ function ut(e) {
|
|
|
1626
1626
|
return ["eager", "lazy", "intent"].includes(e);
|
|
1627
1627
|
}
|
|
1628
1628
|
function Vr({ routerPrefetch: e, routePrefetch: t, linkPrefetch: n }, r) {
|
|
1629
|
-
const o =
|
|
1629
|
+
const o = qt(n, r), s = qt(t, r), a = qt(e, r), i = [
|
|
1630
1630
|
o,
|
|
1631
1631
|
s,
|
|
1632
1632
|
a,
|
|
@@ -1635,13 +1635,13 @@ function Vr({ routerPrefetch: e, routePrefetch: t, linkPrefetch: n }, r) {
|
|
|
1635
1635
|
].reduce((u, l) => ut(u) ? u : u === !0 && ut(l) ? l : u === !0 && !ut(l) ? u : u === void 0 ? l : u, void 0);
|
|
1636
1636
|
return ut(i) ? i : !1;
|
|
1637
1637
|
}
|
|
1638
|
-
function
|
|
1638
|
+
function qt(e, t) {
|
|
1639
1639
|
return ke(e) ? e[t] : e;
|
|
1640
1640
|
}
|
|
1641
1641
|
const Fs = Vo(() => new Promise((e) => {
|
|
1642
1642
|
e({ default: { template: "foo" } });
|
|
1643
1643
|
}));
|
|
1644
|
-
function
|
|
1644
|
+
function Hn(e) {
|
|
1645
1645
|
return e.name === Fs.name && "__asyncLoader" in e;
|
|
1646
1646
|
}
|
|
1647
1647
|
const Mr = /* @__PURE__ */ Symbol("visibilityObserver");
|
|
@@ -1651,16 +1651,16 @@ function qs(e) {
|
|
|
1651
1651
|
throw new Be();
|
|
1652
1652
|
return fe(e, (r, o) => {
|
|
1653
1653
|
r && t.observe(r), o && t.unobserve(o);
|
|
1654
|
-
}, { immediate: !0 }),
|
|
1654
|
+
}, { immediate: !0 }), pn(() => {
|
|
1655
1655
|
e.value && t.unobserve(e.value);
|
|
1656
1656
|
}), {
|
|
1657
1657
|
isElementVisible: x(() => e.value ? t.isElementVisible(e.value) : !1)
|
|
1658
1658
|
};
|
|
1659
1659
|
}
|
|
1660
|
-
function
|
|
1660
|
+
function jn(e, t, n) {
|
|
1661
1661
|
fe(e, (r, o) => {
|
|
1662
1662
|
r && r.addEventListener(t, n), o && o.removeEventListener(t, n);
|
|
1663
|
-
}, { immediate: !0 }),
|
|
1663
|
+
}, { immediate: !0 }), pn(() => {
|
|
1664
1664
|
e.value && e.value.removeEventListener(t, n);
|
|
1665
1665
|
});
|
|
1666
1666
|
}
|
|
@@ -1676,7 +1676,7 @@ function zs(e) {
|
|
|
1676
1676
|
}, { immediate: !0 }), fe(i, (c) => {
|
|
1677
1677
|
const { route: E, ...f } = D(n);
|
|
1678
1678
|
!E || !c || m("lazy", E, f);
|
|
1679
|
-
}, { immediate: !0 }),
|
|
1679
|
+
}, { immediate: !0 }), jn(o, "focusin", l), jn(o, "mouseover", l);
|
|
1680
1680
|
function l() {
|
|
1681
1681
|
const { route: c, ...E } = D(n);
|
|
1682
1682
|
c && m("intent", c, E);
|
|
@@ -1695,13 +1695,13 @@ function Ws(e, t, n) {
|
|
|
1695
1695
|
Vr({
|
|
1696
1696
|
...n,
|
|
1697
1697
|
routePrefetch: r.prefetch
|
|
1698
|
-
}, "components") === e && (
|
|
1699
|
-
|
|
1698
|
+
}, "components") === e && (rr(r) && Hn(r.component) && r.component.__asyncLoader(), or(r) && Object.values(r.components).forEach((s) => {
|
|
1699
|
+
Hn(s) && s.__asyncLoader();
|
|
1700
1700
|
}));
|
|
1701
1701
|
});
|
|
1702
1702
|
}
|
|
1703
1703
|
function Br(e) {
|
|
1704
|
-
const t = st(e), n = zs(e), r =
|
|
1704
|
+
const t = st(e), n = zs(e), r = Sn(e);
|
|
1705
1705
|
return (o, s = {}, a = {}) => {
|
|
1706
1706
|
const i = t(), u = x(() => {
|
|
1707
1707
|
const d = D(o);
|
|
@@ -1798,19 +1798,20 @@ function Hr(e) {
|
|
|
1798
1798
|
});
|
|
1799
1799
|
}
|
|
1800
1800
|
function Js(e) {
|
|
1801
|
-
const t =
|
|
1801
|
+
const t = Vt(e);
|
|
1802
1802
|
return (n, r = String) => {
|
|
1803
1803
|
const o = t(), s = x({
|
|
1804
1804
|
get() {
|
|
1805
1805
|
const i = o.query.get(D(n));
|
|
1806
|
-
return i === null ? null :
|
|
1806
|
+
return i === null ? Et(r) ? r.defaultValue : null : en(i, { param: r });
|
|
1807
1807
|
},
|
|
1808
1808
|
set(i) {
|
|
1809
1809
|
o.query.set(D(n), ae(i, { param: r }));
|
|
1810
1810
|
}
|
|
1811
1811
|
}), a = x({
|
|
1812
1812
|
get() {
|
|
1813
|
-
|
|
1813
|
+
const i = o.query.getAll(D(n));
|
|
1814
|
+
return i.length === 0 && Et(r) ? [r.defaultValue] : i.map((u) => en(u, { param: r })).filter((u) => u !== null);
|
|
1814
1815
|
},
|
|
1815
1816
|
set(i) {
|
|
1816
1817
|
const u = new URLSearchParams(o.query);
|
|
@@ -1834,7 +1835,7 @@ function Ks(e) {
|
|
|
1834
1835
|
onBeforeRouteUpdate: r,
|
|
1835
1836
|
onAfterRouteLeave: o,
|
|
1836
1837
|
onAfterRouteUpdate: s
|
|
1837
|
-
} = Bs(t), a =
|
|
1838
|
+
} = Bs(t), a = Sn(t), i = On(t), u = Hr(t), l = Vt(t), m = st(t), c = Js(t), E = Br(t), f = Ur(t);
|
|
1838
1839
|
return {
|
|
1839
1840
|
onBeforeRouteLeave: n,
|
|
1840
1841
|
onBeforeRouteUpdate: r,
|
|
@@ -1851,7 +1852,7 @@ function Ks(e) {
|
|
|
1851
1852
|
};
|
|
1852
1853
|
}
|
|
1853
1854
|
function Yc(e) {
|
|
1854
|
-
const { store: t, ...n } =
|
|
1855
|
+
const { store: t, ...n } = At();
|
|
1855
1856
|
return {
|
|
1856
1857
|
routes: e.routes ?? [],
|
|
1857
1858
|
rejections: e.rejections ?? [],
|
|
@@ -1863,7 +1864,7 @@ function Ys(e) {
|
|
|
1863
1864
|
return {
|
|
1864
1865
|
get: (t, { invalid: n }) => {
|
|
1865
1866
|
for (const r of e) {
|
|
1866
|
-
const o =
|
|
1867
|
+
const o = en(t, { param: r, isOptional: !1, isGreedy: !1 });
|
|
1867
1868
|
if (o !== void 0)
|
|
1868
1869
|
return o;
|
|
1869
1870
|
}
|
|
@@ -1928,13 +1929,13 @@ function Le() {
|
|
|
1928
1929
|
}
|
|
1929
1930
|
};
|
|
1930
1931
|
}
|
|
1931
|
-
function
|
|
1932
|
+
function mt() {
|
|
1932
1933
|
return Math.random().toString(36).slice(2, 10);
|
|
1933
1934
|
}
|
|
1934
|
-
function
|
|
1935
|
+
function Zn(e, t, n) {
|
|
1935
1936
|
return Math.min(Math.max(e, t), n);
|
|
1936
1937
|
}
|
|
1937
|
-
function
|
|
1938
|
+
function yt(e) {
|
|
1938
1939
|
e.preventDefault(), e.returnValue = "";
|
|
1939
1940
|
}
|
|
1940
1941
|
function ge({ pathname: e = "/", search: t = "", hash: n = "" }) {
|
|
@@ -1954,8 +1955,8 @@ function ze(e) {
|
|
|
1954
1955
|
function De(e) {
|
|
1955
1956
|
return Object.freeze(e);
|
|
1956
1957
|
}
|
|
1957
|
-
const
|
|
1958
|
-
function
|
|
1958
|
+
const Rt = "beforeunload", jr = "popstate", ei = "hashchange";
|
|
1959
|
+
function Gn(e = {}) {
|
|
1959
1960
|
const { window: t = document.defaultView } = e, n = t.history;
|
|
1960
1961
|
function r() {
|
|
1961
1962
|
const { pathname: d, search: g, hash: O } = t.location, N = n.state ?? {};
|
|
@@ -2005,7 +2006,7 @@ function Zn(e = {}) {
|
|
|
2005
2006
|
search: "",
|
|
2006
2007
|
...typeof d == "string" ? ze(d) : d,
|
|
2007
2008
|
state: g,
|
|
2008
|
-
key:
|
|
2009
|
+
key: mt()
|
|
2009
2010
|
});
|
|
2010
2011
|
}
|
|
2011
2012
|
function f(d, g) {
|
|
@@ -2070,8 +2071,8 @@ function Zn(e = {}) {
|
|
|
2070
2071
|
},
|
|
2071
2072
|
block(d) {
|
|
2072
2073
|
const g = m.push(d);
|
|
2073
|
-
return m.length === 1 && t.addEventListener(
|
|
2074
|
-
g(), m.length || t.removeEventListener(
|
|
2074
|
+
return m.length === 1 && t.addEventListener(Rt, yt), () => {
|
|
2075
|
+
g(), m.length || t.removeEventListener(Rt, yt);
|
|
2075
2076
|
};
|
|
2076
2077
|
}
|
|
2077
2078
|
};
|
|
@@ -2138,7 +2139,7 @@ function ti(e = {}) {
|
|
|
2138
2139
|
search: "",
|
|
2139
2140
|
...typeof g == "string" ? ze(g) : g,
|
|
2140
2141
|
state: O,
|
|
2141
|
-
key:
|
|
2142
|
+
key: mt()
|
|
2142
2143
|
});
|
|
2143
2144
|
}
|
|
2144
2145
|
function p(g, O) {
|
|
@@ -2203,24 +2204,24 @@ function ti(e = {}) {
|
|
|
2203
2204
|
},
|
|
2204
2205
|
block(g) {
|
|
2205
2206
|
const O = m.push(g);
|
|
2206
|
-
return m.length === 1 && t.addEventListener(
|
|
2207
|
-
O(), m.length || t.removeEventListener(
|
|
2207
|
+
return m.length === 1 && t.addEventListener(Rt, yt), () => {
|
|
2208
|
+
O(), m.length || t.removeEventListener(Rt, yt);
|
|
2208
2209
|
};
|
|
2209
2210
|
}
|
|
2210
2211
|
};
|
|
2211
2212
|
}
|
|
2212
|
-
function
|
|
2213
|
+
function $n(e = {}) {
|
|
2213
2214
|
const { initialEntries: t = ["/"], initialIndex: n } = e, r = t.map(
|
|
2214
2215
|
(h) => De({
|
|
2215
2216
|
pathname: "/",
|
|
2216
2217
|
search: "",
|
|
2217
2218
|
hash: "",
|
|
2218
2219
|
state: null,
|
|
2219
|
-
key:
|
|
2220
|
+
key: mt(),
|
|
2220
2221
|
...typeof h == "string" ? ze(h) : h
|
|
2221
2222
|
})
|
|
2222
2223
|
);
|
|
2223
|
-
let o =
|
|
2224
|
+
let o = Zn(n ?? r.length - 1, 0, r.length - 1), s = "POP", a = r[o];
|
|
2224
2225
|
const i = Le(), u = Le();
|
|
2225
2226
|
function l(h) {
|
|
2226
2227
|
return typeof h == "string" ? h : ge(h);
|
|
@@ -2232,7 +2233,7 @@ function Gn(e = {}) {
|
|
|
2232
2233
|
hash: "",
|
|
2233
2234
|
...typeof h == "string" ? ze(h) : h,
|
|
2234
2235
|
state: S,
|
|
2235
|
-
key:
|
|
2236
|
+
key: mt()
|
|
2236
2237
|
});
|
|
2237
2238
|
}
|
|
2238
2239
|
function c(h, S, R) {
|
|
@@ -2256,7 +2257,7 @@ function Gn(e = {}) {
|
|
|
2256
2257
|
c(R, d, g) && (r[o] = d, E(R, d));
|
|
2257
2258
|
}
|
|
2258
2259
|
function y(h) {
|
|
2259
|
-
const S =
|
|
2260
|
+
const S = Zn(o + h, 0, r.length - 1), R = "POP", d = r[S];
|
|
2260
2261
|
function g() {
|
|
2261
2262
|
y(h);
|
|
2262
2263
|
}
|
|
@@ -2291,7 +2292,7 @@ function Gn(e = {}) {
|
|
|
2291
2292
|
};
|
|
2292
2293
|
}
|
|
2293
2294
|
function ni(e, t, n) {
|
|
2294
|
-
const r =
|
|
2295
|
+
const r = Nt({ ...t }), o = (i) => {
|
|
2295
2296
|
Object.assign(r, {
|
|
2296
2297
|
...i
|
|
2297
2298
|
});
|
|
@@ -2308,21 +2309,21 @@ function ri(e) {
|
|
|
2308
2309
|
return !(n === void 0 || n === e);
|
|
2309
2310
|
};
|
|
2310
2311
|
}
|
|
2311
|
-
function
|
|
2312
|
+
function Fn(e) {
|
|
2312
2313
|
try {
|
|
2313
2314
|
const t = e();
|
|
2314
|
-
return
|
|
2315
|
+
return gn(t) ? t.catch((n) => n) : t;
|
|
2315
2316
|
} catch (t) {
|
|
2316
2317
|
return t;
|
|
2317
2318
|
}
|
|
2318
2319
|
}
|
|
2319
2320
|
function oi() {
|
|
2320
|
-
const { setVueApp: e, runWithContext: t } = br(), n =
|
|
2321
|
+
const { setVueApp: e, runWithContext: t } = br(), n = Nt(/* @__PURE__ */ new Map()), r = (E, f, p) => {
|
|
2321
2322
|
const { push: y, replace: _, reject: h, update: S } = $e({ to: f });
|
|
2322
2323
|
return f.matches.filter((R) => Vr({ ...p, routePrefetch: R.prefetch }, "props") === E).flatMap((R) => m(R)).reduce((R, { id: d, name: g, props: O }) => {
|
|
2323
2324
|
if (!O)
|
|
2324
2325
|
return R;
|
|
2325
|
-
const N = l(d, g, f), A = t(() =>
|
|
2326
|
+
const N = l(d, g, f), A = t(() => Fn(() => O(f, {
|
|
2326
2327
|
push: y,
|
|
2327
2328
|
replace: _,
|
|
2328
2329
|
reject: h,
|
|
@@ -2342,7 +2343,7 @@ function oi() {
|
|
|
2342
2343
|
continue;
|
|
2343
2344
|
const N = l(d, g, E);
|
|
2344
2345
|
if (S.push(N), !n.has(N)) {
|
|
2345
|
-
const A = t(() =>
|
|
2346
|
+
const A = t(() => Fn(() => O(E, {
|
|
2346
2347
|
push: f,
|
|
2347
2348
|
replace: p,
|
|
2348
2349
|
reject: y,
|
|
@@ -2372,12 +2373,12 @@ function oi() {
|
|
|
2372
2373
|
function i(E, f = !1) {
|
|
2373
2374
|
const p = E.matches.at(-2);
|
|
2374
2375
|
if (p)
|
|
2375
|
-
return
|
|
2376
|
+
return Un(p) ? {
|
|
2376
2377
|
name: p.name ?? "",
|
|
2377
2378
|
get props() {
|
|
2378
2379
|
return u(p, "default", E, f);
|
|
2379
2380
|
}
|
|
2380
|
-
} :
|
|
2381
|
+
} : Ln(p) ? {
|
|
2381
2382
|
name: p.name ?? "",
|
|
2382
2383
|
props: new Proxy({}, {
|
|
2383
2384
|
get(y, _) {
|
|
@@ -2404,13 +2405,13 @@ function oi() {
|
|
|
2404
2405
|
return [E, f, p.id, JSON.stringify(p.params)].join("-");
|
|
2405
2406
|
}
|
|
2406
2407
|
function m(E) {
|
|
2407
|
-
return
|
|
2408
|
+
return Un(E) ? [
|
|
2408
2409
|
{
|
|
2409
2410
|
id: E.id,
|
|
2410
2411
|
name: "default",
|
|
2411
2412
|
props: E.props
|
|
2412
2413
|
}
|
|
2413
|
-
] :
|
|
2414
|
+
] : Ln(E) ? Object.entries(E.props).map(([f, p]) => ({ id: E.id, name: f, props: p })) : [];
|
|
2414
2415
|
}
|
|
2415
2416
|
function c(E) {
|
|
2416
2417
|
for (const f of n.keys())
|
|
@@ -2424,7 +2425,7 @@ function oi() {
|
|
|
2424
2425
|
setVueApp: e
|
|
2425
2426
|
};
|
|
2426
2427
|
}
|
|
2427
|
-
function
|
|
2428
|
+
function Mt() {
|
|
2428
2429
|
return typeof window < "u" && typeof window.document < "u";
|
|
2429
2430
|
}
|
|
2430
2431
|
function si({ mode: e, listener: t }) {
|
|
@@ -2454,11 +2455,11 @@ function si({ mode: e, listener: t }) {
|
|
|
2454
2455
|
function ii(e = "auto") {
|
|
2455
2456
|
switch (e) {
|
|
2456
2457
|
case "auto":
|
|
2457
|
-
return
|
|
2458
|
+
return Mt() ? Gn() : $n();
|
|
2458
2459
|
case "browser":
|
|
2459
|
-
return Zn();
|
|
2460
|
-
case "memory":
|
|
2461
2460
|
return Gn();
|
|
2461
|
+
case "memory":
|
|
2462
|
+
return $n();
|
|
2462
2463
|
case "hash":
|
|
2463
2464
|
return ti();
|
|
2464
2465
|
default:
|
|
@@ -2501,7 +2502,7 @@ function ai(e) {
|
|
|
2501
2502
|
return ht(a?.component ?? Nr(s));
|
|
2502
2503
|
}, n = (s) => {
|
|
2503
2504
|
const a = ht(t(s)), i = {
|
|
2504
|
-
id:
|
|
2505
|
+
id: hn(),
|
|
2505
2506
|
component: a,
|
|
2506
2507
|
meta: {},
|
|
2507
2508
|
state: {}
|
|
@@ -2540,20 +2541,20 @@ class ci extends Error {
|
|
|
2540
2541
|
function ui(e) {
|
|
2541
2542
|
if (e)
|
|
2542
2543
|
return e;
|
|
2543
|
-
if (
|
|
2544
|
+
if (Mt())
|
|
2544
2545
|
return window.location.toString();
|
|
2545
2546
|
throw new ci();
|
|
2546
2547
|
}
|
|
2547
2548
|
function Gr(e) {
|
|
2548
2549
|
return !!e && typeof e == "object";
|
|
2549
2550
|
}
|
|
2550
|
-
const
|
|
2551
|
+
const St = { isOptional: !0, isGreedy: !1 };
|
|
2551
2552
|
function fi(e, t, n) {
|
|
2552
2553
|
if (Gr(e) && t in e) {
|
|
2553
2554
|
const r = e[t];
|
|
2554
|
-
return typeof r == "string" ? me(r, { param: n, ...
|
|
2555
|
+
return typeof r == "string" ? me(r, { param: n, ...St }) : r;
|
|
2555
2556
|
}
|
|
2556
|
-
return me(void 0, { param: n, ...
|
|
2557
|
+
return me(void 0, { param: n, ...St });
|
|
2557
2558
|
}
|
|
2558
2559
|
function li(e, t) {
|
|
2559
2560
|
const n = {};
|
|
@@ -2566,11 +2567,11 @@ function li(e, t) {
|
|
|
2566
2567
|
function di(e, t, n) {
|
|
2567
2568
|
if (Gr(e) && t in e) {
|
|
2568
2569
|
const r = e[t];
|
|
2569
|
-
return ae(r, { param: n, ...
|
|
2570
|
+
return ae(r, { param: n, ...St });
|
|
2570
2571
|
}
|
|
2571
|
-
return ae(void 0, { param: n, ...
|
|
2572
|
+
return ae(void 0, { param: n, ...St });
|
|
2572
2573
|
}
|
|
2573
|
-
const
|
|
2574
|
+
const qn = (e, t) => {
|
|
2574
2575
|
const n = {};
|
|
2575
2576
|
for (const [r, o] of Object.entries(e)) {
|
|
2576
2577
|
const s = di(t, r, o);
|
|
@@ -2579,7 +2580,7 @@ const Fn = (e, t) => {
|
|
|
2579
2580
|
return n;
|
|
2580
2581
|
};
|
|
2581
2582
|
function pi() {
|
|
2582
|
-
const e =
|
|
2583
|
+
const e = Nt(/* @__PURE__ */ new Map()), t = Mt() ? a() : null, n = (i) => {
|
|
2583
2584
|
e.set(i, !1), t?.observe(i);
|
|
2584
2585
|
}, r = (i) => {
|
|
2585
2586
|
e.delete(i), t?.unobserve(i);
|
|
@@ -2638,7 +2639,7 @@ function Fr(e) {
|
|
|
2638
2639
|
function gi(e, t) {
|
|
2639
2640
|
return oe(t) ? {
|
|
2640
2641
|
...e,
|
|
2641
|
-
...
|
|
2642
|
+
...Rn(qe({ path: t }), e)
|
|
2642
2643
|
} : e;
|
|
2643
2644
|
}
|
|
2644
2645
|
function _i(e, t = [], n) {
|
|
@@ -2690,7 +2691,7 @@ function Si(e = []) {
|
|
|
2690
2691
|
}), t;
|
|
2691
2692
|
}
|
|
2692
2693
|
function Oi(e, { match: t, name: n, component: r }) {
|
|
2693
|
-
const o = xr(e), s =
|
|
2694
|
+
const o = xr(e), s = Vt(e);
|
|
2694
2695
|
return Me({
|
|
2695
2696
|
name: "PropsWrapper",
|
|
2696
2697
|
expose: [],
|
|
@@ -2698,7 +2699,7 @@ function Oi(e, { match: t, name: n, component: r }) {
|
|
|
2698
2699
|
const a = Mo(), i = o(), u = s();
|
|
2699
2700
|
return () => {
|
|
2700
2701
|
const l = i.getProps(t.id, n, u);
|
|
2701
|
-
return l instanceof Error ? "" :
|
|
2702
|
+
return l instanceof Error ? "" : gn(l) ? a?.suspense ? ue(wi, { component: r, props: l }) : ue(Ti, { component: r, props: l }) : ue(r, l);
|
|
2702
2703
|
};
|
|
2703
2704
|
}
|
|
2704
2705
|
});
|
|
@@ -2731,10 +2732,10 @@ function Pi(e) {
|
|
|
2731
2732
|
};
|
|
2732
2733
|
}
|
|
2733
2734
|
function Ni(e, t) {
|
|
2734
|
-
const n =
|
|
2735
|
-
return
|
|
2735
|
+
const n = On(e);
|
|
2736
|
+
return or(t) ? zn(e, t, t.components) : rr(t) ? zn(e, t, { default: t.component }) : { default: n };
|
|
2736
2737
|
}
|
|
2737
|
-
function
|
|
2738
|
+
function zn(e, t, n) {
|
|
2738
2739
|
return Object.fromEntries(
|
|
2739
2740
|
Object.entries(n).map(([r, o]) => [r, Oi(e, { match: t, name: r, component: o })])
|
|
2740
2741
|
);
|
|
@@ -2874,7 +2875,7 @@ function Bi(e, t) {
|
|
|
2874
2875
|
return o.substring(0, s);
|
|
2875
2876
|
}
|
|
2876
2877
|
}
|
|
2877
|
-
const
|
|
2878
|
+
const Wn = (0, Di.default)({ circles: !0 }), Hi = { trailing: !0 };
|
|
2878
2879
|
function xe(e, t = 25, n = {}) {
|
|
2879
2880
|
if (n = {
|
|
2880
2881
|
...Hi,
|
|
@@ -2911,10 +2912,10 @@ function xe(e, t = 25, n = {}) {
|
|
|
2911
2912
|
async function ji(e, t, n) {
|
|
2912
2913
|
return await e.apply(t, n);
|
|
2913
2914
|
}
|
|
2914
|
-
function
|
|
2915
|
+
function rn(e, t = {}, n) {
|
|
2915
2916
|
for (const r in e) {
|
|
2916
2917
|
const o = e[r], s = n ? `${n}:${r}` : r;
|
|
2917
|
-
typeof o == "object" && o !== null ?
|
|
2918
|
+
typeof o == "object" && o !== null ? rn(o, t, s) : typeof o == "function" && (t[s] = o);
|
|
2918
2919
|
}
|
|
2919
2920
|
return t;
|
|
2920
2921
|
}
|
|
@@ -2930,7 +2931,7 @@ function Fi(e, t) {
|
|
|
2930
2931
|
const n = t.shift(), r = Kr(n);
|
|
2931
2932
|
return Promise.all(e.map((o) => r.run(() => o(...t))));
|
|
2932
2933
|
}
|
|
2933
|
-
function
|
|
2934
|
+
function zt(e, t) {
|
|
2934
2935
|
for (const n of [...e])
|
|
2935
2936
|
n(t);
|
|
2936
2937
|
}
|
|
@@ -2985,7 +2986,7 @@ class qi {
|
|
|
2985
2986
|
this.deprecateHook(n, t[n]);
|
|
2986
2987
|
}
|
|
2987
2988
|
addHooks(t) {
|
|
2988
|
-
const n =
|
|
2989
|
+
const n = rn(t), r = Object.keys(n).map(
|
|
2989
2990
|
(o) => this.hook(o, n[o])
|
|
2990
2991
|
);
|
|
2991
2992
|
return () => {
|
|
@@ -2994,7 +2995,7 @@ class qi {
|
|
|
2994
2995
|
};
|
|
2995
2996
|
}
|
|
2996
2997
|
removeHooks(t) {
|
|
2997
|
-
const n =
|
|
2998
|
+
const n = rn(t);
|
|
2998
2999
|
for (const r in n)
|
|
2999
3000
|
this.removeHook(r, n[r]);
|
|
3000
3001
|
}
|
|
@@ -3010,14 +3011,14 @@ class qi {
|
|
|
3010
3011
|
}
|
|
3011
3012
|
callHookWith(t, n, ...r) {
|
|
3012
3013
|
const o = this._before || this._after ? { name: n, args: r, context: {} } : void 0;
|
|
3013
|
-
this._before &&
|
|
3014
|
+
this._before && zt(this._before, o);
|
|
3014
3015
|
const s = t(
|
|
3015
3016
|
n in this._hooks ? [...this._hooks[n]] : [],
|
|
3016
3017
|
r
|
|
3017
3018
|
);
|
|
3018
3019
|
return s instanceof Promise ? s.finally(() => {
|
|
3019
|
-
this._after && o &&
|
|
3020
|
-
}) : (this._after && o &&
|
|
3020
|
+
this._after && o && zt(this._after, o);
|
|
3021
|
+
}) : (this._after && o && zt(this._after, o), s);
|
|
3021
3022
|
}
|
|
3022
3023
|
beforeEach(t) {
|
|
3023
3024
|
return this._before = this._before || [], this._before.push(t), () => {
|
|
@@ -3060,30 +3061,30 @@ function ea(e) {
|
|
|
3060
3061
|
const t = e.__file;
|
|
3061
3062
|
if (t) return Mi(Bi(t, ".vue"));
|
|
3062
3063
|
}
|
|
3063
|
-
function
|
|
3064
|
+
function Jn(e, t) {
|
|
3064
3065
|
return e.type.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__ = t, t;
|
|
3065
3066
|
}
|
|
3066
|
-
function
|
|
3067
|
+
function Tn(e) {
|
|
3067
3068
|
if (e.__VUE_DEVTOOLS_NEXT_APP_RECORD__) return e.__VUE_DEVTOOLS_NEXT_APP_RECORD__;
|
|
3068
3069
|
if (e.root) return e.appContext.app.__VUE_DEVTOOLS_NEXT_APP_RECORD__;
|
|
3069
3070
|
}
|
|
3070
3071
|
function to(e) {
|
|
3071
|
-
const t = e.subTree?.type, n =
|
|
3072
|
+
const t = e.subTree?.type, n = Tn(e);
|
|
3072
3073
|
return n ? n?.types?.Fragment === t : !1;
|
|
3073
3074
|
}
|
|
3074
|
-
function
|
|
3075
|
+
function Bt(e) {
|
|
3075
3076
|
const t = Xi(e?.type || {});
|
|
3076
3077
|
if (t) return t;
|
|
3077
3078
|
if (e?.root === e) return "Root";
|
|
3078
|
-
for (const r in e.parent?.type?.components) if (e.parent.type.components[r] === e?.type) return
|
|
3079
|
-
for (const r in e.appContext?.components) if (e.appContext.components[r] === e?.type) return
|
|
3079
|
+
for (const r in e.parent?.type?.components) if (e.parent.type.components[r] === e?.type) return Jn(e, r);
|
|
3080
|
+
for (const r in e.appContext?.components) if (e.appContext.components[r] === e?.type) return Jn(e, r);
|
|
3080
3081
|
const n = ea(e?.type || {});
|
|
3081
3082
|
return n || "Anonymous Component";
|
|
3082
3083
|
}
|
|
3083
3084
|
function ta(e) {
|
|
3084
3085
|
return `${e?.appContext?.app?.__VUE_DEVTOOLS_NEXT_APP_RECORD_ID__ ?? 0}:${e === e?.root ? "root" : e.uid}`;
|
|
3085
3086
|
}
|
|
3086
|
-
function
|
|
3087
|
+
function on(e, t) {
|
|
3087
3088
|
return t = t || `${e.id}:root`, e.instanceMap.get(t) || e.instanceMap.get(":root");
|
|
3088
3089
|
}
|
|
3089
3090
|
function na() {
|
|
@@ -3123,7 +3124,7 @@ function oa(e) {
|
|
|
3123
3124
|
function sa(e, t) {
|
|
3124
3125
|
return (!e.top || t.top < e.top) && (e.top = t.top), (!e.bottom || t.bottom > e.bottom) && (e.bottom = t.bottom), (!e.left || t.left < e.left) && (e.left = t.left), (!e.right || t.right > e.right) && (e.right = t.right), e;
|
|
3125
3126
|
}
|
|
3126
|
-
const
|
|
3127
|
+
const Kn = {
|
|
3127
3128
|
top: 0,
|
|
3128
3129
|
left: 0,
|
|
3129
3130
|
right: 0,
|
|
@@ -3133,16 +3134,16 @@ const Jn = {
|
|
|
3133
3134
|
};
|
|
3134
3135
|
function ye(e) {
|
|
3135
3136
|
const t = e.subTree.el;
|
|
3136
|
-
return typeof window > "u" ?
|
|
3137
|
+
return typeof window > "u" ? Kn : to(e) ? oa(e.subTree) : t?.nodeType === 1 ? t?.getBoundingClientRect() : e.subTree.component ? ye(e.subTree.component) : Kn;
|
|
3137
3138
|
}
|
|
3138
|
-
function
|
|
3139
|
+
function wn(e) {
|
|
3139
3140
|
return to(e) ? ia(e.subTree) : e.subTree ? [e.subTree.el] : [];
|
|
3140
3141
|
}
|
|
3141
3142
|
function ia(e) {
|
|
3142
3143
|
if (!e.children) return [];
|
|
3143
3144
|
const t = [];
|
|
3144
3145
|
return e.children.forEach((n) => {
|
|
3145
|
-
n.component ? t.push(...
|
|
3146
|
+
n.component ? t.push(...wn(n.component)) : n?.el && t.push(n.el);
|
|
3146
3147
|
}), t;
|
|
3147
3148
|
}
|
|
3148
3149
|
const no = "__vue-devtools-component-inspector__", ro = "__vue-devtools-component-inspector__card__", oo = "__vue-devtools-component-inspector__name__", so = "__vue-devtools-component-inspector__indicator__", io = {
|
|
@@ -3186,7 +3187,7 @@ function fa() {
|
|
|
3186
3187
|
function la() {
|
|
3187
3188
|
return document.getElementById(oo);
|
|
3188
3189
|
}
|
|
3189
|
-
function
|
|
3190
|
+
function Pn(e) {
|
|
3190
3191
|
return {
|
|
3191
3192
|
left: `${Math.round(e.left * 100) / 100}px`,
|
|
3192
3193
|
top: `${Math.round(e.top * 100) / 100}px`,
|
|
@@ -3194,11 +3195,11 @@ function wn(e) {
|
|
|
3194
3195
|
height: `${Math.round(e.height * 100) / 100}px`
|
|
3195
3196
|
};
|
|
3196
3197
|
}
|
|
3197
|
-
function
|
|
3198
|
+
function Nn(e) {
|
|
3198
3199
|
const t = document.createElement("div");
|
|
3199
3200
|
t.id = e.elementId ?? no, Object.assign(t.style, {
|
|
3200
3201
|
...io,
|
|
3201
|
-
...
|
|
3202
|
+
...Pn(e.bounds),
|
|
3202
3203
|
...e.style
|
|
3203
3204
|
});
|
|
3204
3205
|
const n = document.createElement("span");
|
|
@@ -3211,21 +3212,21 @@ function Pn(e) {
|
|
|
3211
3212
|
const o = document.createElement("i");
|
|
3212
3213
|
return o.id = so, o.innerHTML = `${Math.round(e.bounds.width * 100) / 100} x ${Math.round(e.bounds.height * 100) / 100}`, Object.assign(o.style, ca), n.appendChild(r), n.appendChild(o), t.appendChild(n), document.body.appendChild(t), t;
|
|
3213
3214
|
}
|
|
3214
|
-
function
|
|
3215
|
+
function In(e) {
|
|
3215
3216
|
const t = He(), n = ua(), r = la(), o = fa();
|
|
3216
3217
|
t && (Object.assign(t.style, {
|
|
3217
3218
|
...io,
|
|
3218
|
-
...
|
|
3219
|
+
...Pn(e.bounds)
|
|
3219
3220
|
}), Object.assign(n.style, { top: e.bounds.top < 35 ? 0 : "-35px" }), r.innerHTML = `<${e.name}> `, o.innerHTML = `${Math.round(e.bounds.width * 100) / 100} x ${Math.round(e.bounds.height * 100) / 100}`);
|
|
3220
3221
|
}
|
|
3221
3222
|
function da(e) {
|
|
3222
3223
|
const t = ye(e);
|
|
3223
3224
|
if (!t.width && !t.height) return;
|
|
3224
|
-
const n =
|
|
3225
|
-
He() ?
|
|
3225
|
+
const n = Bt(e);
|
|
3226
|
+
He() ? In({
|
|
3226
3227
|
bounds: t,
|
|
3227
3228
|
name: n
|
|
3228
|
-
}) :
|
|
3229
|
+
}) : Nn({
|
|
3229
3230
|
bounds: t,
|
|
3230
3231
|
name: n
|
|
3231
3232
|
});
|
|
@@ -3234,17 +3235,17 @@ function ao() {
|
|
|
3234
3235
|
const e = He();
|
|
3235
3236
|
e && (e.style.display = "none");
|
|
3236
3237
|
}
|
|
3237
|
-
let
|
|
3238
|
-
function
|
|
3238
|
+
let sn = null;
|
|
3239
|
+
function an(e) {
|
|
3239
3240
|
const t = e.target;
|
|
3240
3241
|
if (t) {
|
|
3241
3242
|
const n = t.__vueParentComponent;
|
|
3242
|
-
if (n && (
|
|
3243
|
-
const r = ye(n), o =
|
|
3244
|
-
He() ?
|
|
3243
|
+
if (n && (sn = n, n.vnode.el)) {
|
|
3244
|
+
const r = ye(n), o = Bt(n);
|
|
3245
|
+
He() ? In({
|
|
3245
3246
|
bounds: r,
|
|
3246
3247
|
name: o
|
|
3247
|
-
}) :
|
|
3248
|
+
}) : Nn({
|
|
3248
3249
|
bounds: r,
|
|
3249
3250
|
name: o
|
|
3250
3251
|
});
|
|
@@ -3252,32 +3253,32 @@ function sn(e) {
|
|
|
3252
3253
|
}
|
|
3253
3254
|
}
|
|
3254
3255
|
function pa(e, t) {
|
|
3255
|
-
e.preventDefault(), e.stopPropagation(),
|
|
3256
|
+
e.preventDefault(), e.stopPropagation(), sn && t(ta(sn));
|
|
3256
3257
|
}
|
|
3257
|
-
let
|
|
3258
|
+
let Ot = null;
|
|
3258
3259
|
function ha() {
|
|
3259
|
-
ao(), window.removeEventListener("mouseover",
|
|
3260
|
+
ao(), window.removeEventListener("mouseover", an), window.removeEventListener("click", Ot, !0), Ot = null;
|
|
3260
3261
|
}
|
|
3261
3262
|
function Ea() {
|
|
3262
|
-
return window.addEventListener("mouseover",
|
|
3263
|
+
return window.addEventListener("mouseover", an), new Promise((e) => {
|
|
3263
3264
|
function t(n) {
|
|
3264
3265
|
n.preventDefault(), n.stopPropagation(), pa(n, (r) => {
|
|
3265
|
-
window.removeEventListener("click", t, !0),
|
|
3266
|
+
window.removeEventListener("click", t, !0), Ot = null, window.removeEventListener("mouseover", an);
|
|
3266
3267
|
const o = He();
|
|
3267
3268
|
o && (o.style.display = "none"), e(JSON.stringify({ id: r }));
|
|
3268
3269
|
});
|
|
3269
3270
|
}
|
|
3270
|
-
|
|
3271
|
+
Ot = t, window.addEventListener("click", t, !0);
|
|
3271
3272
|
});
|
|
3272
3273
|
}
|
|
3273
3274
|
function ga(e) {
|
|
3274
|
-
const t =
|
|
3275
|
+
const t = on(Z.value, e.id);
|
|
3275
3276
|
if (t) {
|
|
3276
|
-
const [n] =
|
|
3277
|
+
const [n] = wn(t);
|
|
3277
3278
|
if (typeof n.scrollIntoView == "function") n.scrollIntoView({ behavior: "smooth" });
|
|
3278
3279
|
else {
|
|
3279
3280
|
const r = ye(t), o = document.createElement("div"), s = {
|
|
3280
|
-
...
|
|
3281
|
+
...Pn(r),
|
|
3281
3282
|
position: "absolute"
|
|
3282
3283
|
};
|
|
3283
3284
|
Object.assign(o.style, s), document.body.appendChild(o), o.scrollIntoView({ behavior: "smooth" }), setTimeout(() => {
|
|
@@ -3287,12 +3288,12 @@ function ga(e) {
|
|
|
3287
3288
|
setTimeout(() => {
|
|
3288
3289
|
const r = ye(t);
|
|
3289
3290
|
if (r.width || r.height) {
|
|
3290
|
-
const o =
|
|
3291
|
-
s ?
|
|
3291
|
+
const o = Bt(t), s = He();
|
|
3292
|
+
s ? In({
|
|
3292
3293
|
...e,
|
|
3293
3294
|
name: o,
|
|
3294
3295
|
bounds: r
|
|
3295
|
-
}) :
|
|
3296
|
+
}) : Nn({
|
|
3296
3297
|
...e,
|
|
3297
3298
|
name: o,
|
|
3298
3299
|
bounds: r
|
|
@@ -3326,20 +3327,20 @@ function ya() {
|
|
|
3326
3327
|
});
|
|
3327
3328
|
});
|
|
3328
3329
|
}
|
|
3329
|
-
let
|
|
3330
|
+
let Tt = /* @__PURE__ */ (function(e) {
|
|
3330
3331
|
return e.SKIP = "__v_skip", e.IS_REACTIVE = "__v_isReactive", e.IS_READONLY = "__v_isReadonly", e.IS_SHALLOW = "__v_isShallow", e.RAW = "__v_raw", e;
|
|
3331
3332
|
})({});
|
|
3332
3333
|
function Ra(e) {
|
|
3333
|
-
return !!(e && e[
|
|
3334
|
+
return !!(e && e[Tt.IS_READONLY]);
|
|
3334
3335
|
}
|
|
3335
3336
|
function co(e) {
|
|
3336
|
-
return Ra(e) ? co(e[
|
|
3337
|
+
return Ra(e) ? co(e[Tt.RAW]) : !!(e && e[Tt.IS_REACTIVE]);
|
|
3337
3338
|
}
|
|
3338
|
-
function
|
|
3339
|
+
function Wt(e) {
|
|
3339
3340
|
return !!(e && e.__v_isRef === !0);
|
|
3340
3341
|
}
|
|
3341
3342
|
function Ze(e) {
|
|
3342
|
-
const t = e && e[
|
|
3343
|
+
const t = e && e[Tt.RAW];
|
|
3343
3344
|
return t ? Ze(t) : e;
|
|
3344
3345
|
}
|
|
3345
3346
|
var Sa = class {
|
|
@@ -3380,7 +3381,7 @@ var Sa = class {
|
|
|
3380
3381
|
}
|
|
3381
3382
|
}, Oa = class {
|
|
3382
3383
|
set(e, t) {
|
|
3383
|
-
if (
|
|
3384
|
+
if (Wt(e)) e.value = t;
|
|
3384
3385
|
else {
|
|
3385
3386
|
if (e instanceof Set && Array.isArray(t)) {
|
|
3386
3387
|
e.clear(), t.forEach((o) => e.add(o));
|
|
@@ -3401,10 +3402,10 @@ var Sa = class {
|
|
|
3401
3402
|
}
|
|
3402
3403
|
}
|
|
3403
3404
|
get(e) {
|
|
3404
|
-
return
|
|
3405
|
+
return Wt(e) ? e.value : e;
|
|
3405
3406
|
}
|
|
3406
3407
|
isRef(e) {
|
|
3407
|
-
return
|
|
3408
|
+
return Wt(e) || co(e);
|
|
3408
3409
|
}
|
|
3409
3410
|
};
|
|
3410
3411
|
const Ta = "__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS_STATE__";
|
|
@@ -3435,28 +3436,28 @@ function Na(e, t) {
|
|
|
3435
3436
|
V.timelineLayersState[t.id] = !1, Pa.push({
|
|
3436
3437
|
...e,
|
|
3437
3438
|
descriptorId: t.id,
|
|
3438
|
-
appRecord:
|
|
3439
|
+
appRecord: Tn(t.app)
|
|
3439
3440
|
});
|
|
3440
3441
|
}
|
|
3441
3442
|
T.__VUE_DEVTOOLS_KIT_INSPECTOR__ ??= [];
|
|
3442
|
-
const
|
|
3443
|
+
const An = new Proxy(T.__VUE_DEVTOOLS_KIT_INSPECTOR__, { get(e, t, n) {
|
|
3443
3444
|
return Reflect.get(e, t, n);
|
|
3444
3445
|
} }), uo = xe(() => {
|
|
3445
3446
|
je.hooks.callHook(_e.SEND_INSPECTOR_TO_CLIENT, fo());
|
|
3446
3447
|
});
|
|
3447
3448
|
function Ia(e, t) {
|
|
3448
|
-
|
|
3449
|
+
An.push({
|
|
3449
3450
|
options: e,
|
|
3450
3451
|
descriptor: t,
|
|
3451
3452
|
treeFilterPlaceholder: e.treeFilterPlaceholder ?? "Search tree...",
|
|
3452
3453
|
stateFilterPlaceholder: e.stateFilterPlaceholder ?? "Search state...",
|
|
3453
3454
|
treeFilter: "",
|
|
3454
3455
|
selectedNodeId: "",
|
|
3455
|
-
appRecord:
|
|
3456
|
+
appRecord: Tn(t.app)
|
|
3456
3457
|
}), uo();
|
|
3457
3458
|
}
|
|
3458
3459
|
function fo() {
|
|
3459
|
-
return
|
|
3460
|
+
return An.filter((e) => e.descriptor.app === Z.value.app).filter((e) => e.descriptor.id !== "components").map((e) => {
|
|
3460
3461
|
const t = e.descriptor, n = e.options;
|
|
3461
3462
|
return {
|
|
3462
3463
|
id: n.id,
|
|
@@ -3470,7 +3471,7 @@ function fo() {
|
|
|
3470
3471
|
});
|
|
3471
3472
|
}
|
|
3472
3473
|
function dt(e, t) {
|
|
3473
|
-
return
|
|
3474
|
+
return An.find((n) => n.options.id === e && (t ? n.descriptor.app === t : !0));
|
|
3474
3475
|
}
|
|
3475
3476
|
let H = /* @__PURE__ */ (function(e) {
|
|
3476
3477
|
return e.VISIT_COMPONENT_TREE = "visitComponentTree", e.INSPECT_COMPONENT = "inspectComponent", e.EDIT_COMPONENT_STATE = "editComponentState", e.GET_INSPECTOR_TREE = "getInspectorTree", e.GET_INSPECTOR_STATE = "getInspectorState", e.EDIT_INSPECTOR_STATE = "editInspectorState", e.INSPECT_TIMELINE_EVENT = "inspectTimelineEvent", e.TIMELINE_CLEARED = "timelineCleared", e.SET_PLUGIN_SETTINGS = "setPluginSettings", e;
|
|
@@ -3543,7 +3544,7 @@ function Aa() {
|
|
|
3543
3544
|
if (!o) return null;
|
|
3544
3545
|
const s = o.id.toString();
|
|
3545
3546
|
return [...o.instanceMap].filter(([a]) => a.split(":")[0] === s).map(([, a]) => a);
|
|
3546
|
-
}), e.hook(C.GET_COMPONENT_BOUNDS, async ({ instance: r }) => ye(r)), e.hook(C.GET_COMPONENT_NAME, ({ instance: r }) =>
|
|
3547
|
+
}), e.hook(C.GET_COMPONENT_BOUNDS, async ({ instance: r }) => ye(r)), e.hook(C.GET_COMPONENT_NAME, ({ instance: r }) => Bt(r)), e.hook(C.COMPONENT_HIGHLIGHT, ({ uid: r }) => {
|
|
3547
3548
|
const o = Z.value.instanceMap.get(r);
|
|
3548
3549
|
o && da(o);
|
|
3549
3550
|
}), e.hook(C.COMPONENT_UNHIGHLIGHT, () => {
|
|
@@ -3581,7 +3582,7 @@ xe((e, t) => {
|
|
|
3581
3582
|
oldState: t
|
|
3582
3583
|
});
|
|
3583
3584
|
});
|
|
3584
|
-
const
|
|
3585
|
+
const Ht = new Proxy(T.__VUE_DEVTOOLS_KIT_APP_RECORDS__, { get(e, t, n) {
|
|
3585
3586
|
return t === "value" ? T.__VUE_DEVTOOLS_KIT_APP_RECORDS__ : T.__VUE_DEVTOOLS_KIT_APP_RECORDS__[t];
|
|
3586
3587
|
} }), Z = new Proxy(T.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__, { get(e, t, n) {
|
|
3587
3588
|
return t === "value" ? T.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__ : t === "id" ? T.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__ : T.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__[t];
|
|
@@ -3589,7 +3590,7 @@ const Bt = new Proxy(T.__VUE_DEVTOOLS_KIT_APP_RECORDS__, { get(e, t, n) {
|
|
|
3589
3590
|
function lo() {
|
|
3590
3591
|
va({
|
|
3591
3592
|
...T[Ae],
|
|
3592
|
-
appRecords:
|
|
3593
|
+
appRecords: Ht.value,
|
|
3593
3594
|
activeAppRecordId: Z.id,
|
|
3594
3595
|
tabs: T.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__,
|
|
3595
3596
|
commands: T.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__
|
|
@@ -3603,7 +3604,7 @@ function Ca(e) {
|
|
|
3603
3604
|
}
|
|
3604
3605
|
const V = new Proxy(T[Ae], {
|
|
3605
3606
|
get(e, t) {
|
|
3606
|
-
return t === "appRecords" ?
|
|
3607
|
+
return t === "appRecords" ? Ht : t === "activeAppRecordId" ? Z.id : t === "tabs" ? T.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__ : t === "commands" ? T.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__ : T[Ae][t];
|
|
3607
3608
|
},
|
|
3608
3609
|
deleteProperty(e, t) {
|
|
3609
3610
|
return delete e[t], !0;
|
|
@@ -3630,35 +3631,35 @@ function Ua(e = {}) {
|
|
|
3630
3631
|
}
|
|
3631
3632
|
}
|
|
3632
3633
|
T.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__ ??= [];
|
|
3633
|
-
const
|
|
3634
|
+
const bn = new Proxy(T.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__, { get(e, t, n) {
|
|
3634
3635
|
return Reflect.get(e, t, n);
|
|
3635
3636
|
} });
|
|
3636
|
-
function
|
|
3637
|
+
function cn(e) {
|
|
3637
3638
|
const t = {};
|
|
3638
3639
|
return Object.keys(e).forEach((n) => {
|
|
3639
3640
|
t[n] = e[n].defaultValue;
|
|
3640
3641
|
}), t;
|
|
3641
3642
|
}
|
|
3642
|
-
function
|
|
3643
|
+
function vn(e) {
|
|
3643
3644
|
return `__VUE_DEVTOOLS_NEXT_PLUGIN_SETTINGS__${e}__`;
|
|
3644
3645
|
}
|
|
3645
3646
|
function La(e) {
|
|
3646
|
-
return (
|
|
3647
|
+
return (bn.find((t) => t[0].id === e && !!t[0]?.settings)?.[0] ?? null)?.settings ?? null;
|
|
3647
3648
|
}
|
|
3648
3649
|
function po(e, t) {
|
|
3649
|
-
const n =
|
|
3650
|
+
const n = vn(e);
|
|
3650
3651
|
if (n) {
|
|
3651
3652
|
const r = localStorage.getItem(n);
|
|
3652
3653
|
if (r) return JSON.parse(r);
|
|
3653
3654
|
}
|
|
3654
|
-
return
|
|
3655
|
+
return cn(e ? (bn.find((r) => r[0].id === e)?.[0] ?? null)?.settings ?? {} : t);
|
|
3655
3656
|
}
|
|
3656
3657
|
function Da(e, t) {
|
|
3657
|
-
const n =
|
|
3658
|
-
localStorage.getItem(n) || localStorage.setItem(n, JSON.stringify(
|
|
3658
|
+
const n = vn(e);
|
|
3659
|
+
localStorage.getItem(n) || localStorage.setItem(n, JSON.stringify(cn(t)));
|
|
3659
3660
|
}
|
|
3660
3661
|
function xa(e, t, n) {
|
|
3661
|
-
const r =
|
|
3662
|
+
const r = vn(e), o = localStorage.getItem(r), s = JSON.parse(o || "{}"), a = {
|
|
3662
3663
|
...s,
|
|
3663
3664
|
[t]: n
|
|
3664
3665
|
};
|
|
@@ -3855,30 +3856,30 @@ function qa(e, t) {
|
|
|
3855
3856
|
}), r(o);
|
|
3856
3857
|
}
|
|
3857
3858
|
function Eo(e, t) {
|
|
3858
|
-
T.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.has(e) || V.highPerfModeEnabled && !t?.inspectingComponent || (T.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.add(e),
|
|
3859
|
+
T.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.has(e) || V.highPerfModeEnabled && !t?.inspectingComponent || (T.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.add(e), bn.forEach((n) => {
|
|
3859
3860
|
qa(n, e);
|
|
3860
3861
|
}));
|
|
3861
3862
|
}
|
|
3862
|
-
const
|
|
3863
|
+
const wt = "__VUE_DEVTOOLS_ROUTER__", We = "__VUE_DEVTOOLS_ROUTER_INFO__";
|
|
3863
3864
|
T[We] ??= {
|
|
3864
3865
|
currentRoute: null,
|
|
3865
3866
|
routes: []
|
|
3866
3867
|
};
|
|
3867
|
-
T[
|
|
3868
|
+
T[wt] ??= {};
|
|
3868
3869
|
new Proxy(T[We], { get(e, t) {
|
|
3869
3870
|
return T[We][t];
|
|
3870
3871
|
} });
|
|
3871
|
-
new Proxy(T[
|
|
3872
|
-
if (t === "value") return T[
|
|
3872
|
+
new Proxy(T[wt], { get(e, t) {
|
|
3873
|
+
if (t === "value") return T[wt];
|
|
3873
3874
|
} });
|
|
3874
3875
|
function za(e) {
|
|
3875
3876
|
const t = /* @__PURE__ */ new Map();
|
|
3876
3877
|
return (e?.getRoutes() || []).filter((n) => !t.has(n.path) && t.set(n.path, 1));
|
|
3877
3878
|
}
|
|
3878
|
-
function
|
|
3879
|
+
function kn(e) {
|
|
3879
3880
|
return e.map((t) => {
|
|
3880
3881
|
let { path: n, name: r, children: o, meta: s } = t;
|
|
3881
|
-
return o?.length && (o =
|
|
3882
|
+
return o?.length && (o = kn(o)), {
|
|
3882
3883
|
path: n,
|
|
3883
3884
|
name: r,
|
|
3884
3885
|
children: o,
|
|
@@ -3897,19 +3898,19 @@ function Wa(e) {
|
|
|
3897
3898
|
name: s,
|
|
3898
3899
|
params: i,
|
|
3899
3900
|
query: u,
|
|
3900
|
-
matched:
|
|
3901
|
+
matched: kn(a)
|
|
3901
3902
|
};
|
|
3902
3903
|
}
|
|
3903
3904
|
return e;
|
|
3904
3905
|
}
|
|
3905
3906
|
function Ja(e, t) {
|
|
3906
3907
|
function n() {
|
|
3907
|
-
const r = e.app?.config.globalProperties.$router, o = Wa(r?.currentRoute.value), s =
|
|
3908
|
+
const r = e.app?.config.globalProperties.$router, o = Wa(r?.currentRoute.value), s = kn(za(r)), a = console.warn;
|
|
3908
3909
|
console.warn = () => {
|
|
3909
3910
|
}, T[We] = {
|
|
3910
|
-
currentRoute: o ?
|
|
3911
|
-
routes:
|
|
3912
|
-
}, T[
|
|
3911
|
+
currentRoute: o ? Wn(o) : {},
|
|
3912
|
+
routes: Wn(s)
|
|
3913
|
+
}, T[wt] = r, console.warn = a;
|
|
3913
3914
|
}
|
|
3914
3915
|
n(), ho.on.componentUpdated(xe(() => {
|
|
3915
3916
|
t.value?.app === e.app && (n(), !V.highPerfModeEnabled && je.hooks.callHook(_e.ROUTER_INFO_UPDATED, { state: T[We] }));
|
|
@@ -3970,7 +3971,7 @@ function Ka(e) {
|
|
|
3970
3971
|
return ha();
|
|
3971
3972
|
},
|
|
3972
3973
|
getComponentRenderCode(t) {
|
|
3973
|
-
const n =
|
|
3974
|
+
const n = on(Z.value, t);
|
|
3974
3975
|
if (n) return typeof n?.type != "function" ? n.render.toString() : n.type.toString();
|
|
3975
3976
|
},
|
|
3976
3977
|
scrollToComponent(t) {
|
|
@@ -3979,13 +3980,13 @@ function Ka(e) {
|
|
|
3979
3980
|
openInEditor: Ua,
|
|
3980
3981
|
getVueInspector: ya,
|
|
3981
3982
|
toggleApp(t, n) {
|
|
3982
|
-
const r =
|
|
3983
|
+
const r = Ht.value.find((o) => o.id === t);
|
|
3983
3984
|
r && (Ca(t), ka(r), Ja(r, Z), uo(), Eo(r.app, n));
|
|
3984
3985
|
},
|
|
3985
3986
|
inspectDOM(t) {
|
|
3986
|
-
const n =
|
|
3987
|
+
const n = on(Z.value, t);
|
|
3987
3988
|
if (n) {
|
|
3988
|
-
const [r] =
|
|
3989
|
+
const [r] = wn(n);
|
|
3989
3990
|
r && (T.__VUE_DEVTOOLS_INSPECT_DOM_TARGET__ = r);
|
|
3990
3991
|
}
|
|
3991
3992
|
},
|
|
@@ -4001,18 +4002,18 @@ function Ka(e) {
|
|
|
4001
4002
|
};
|
|
4002
4003
|
}
|
|
4003
4004
|
T.__VUE_DEVTOOLS_ENV__ ??= { vitePluginDetected: !1 };
|
|
4004
|
-
const
|
|
4005
|
+
const Yn = Aa();
|
|
4005
4006
|
T.__VUE_DEVTOOLS_KIT_CONTEXT__ ??= {
|
|
4006
|
-
hooks:
|
|
4007
|
+
hooks: Yn,
|
|
4007
4008
|
get state() {
|
|
4008
4009
|
return {
|
|
4009
4010
|
...V,
|
|
4010
4011
|
activeAppRecordId: Z.id,
|
|
4011
4012
|
activeAppRecord: Z.value,
|
|
4012
|
-
appRecords:
|
|
4013
|
+
appRecords: Ht.value
|
|
4013
4014
|
};
|
|
4014
4015
|
},
|
|
4015
|
-
api: Ka(
|
|
4016
|
+
api: Ka(Yn)
|
|
4016
4017
|
};
|
|
4017
4018
|
const je = T.__VUE_DEVTOOLS_KIT_CONTEXT__;
|
|
4018
4019
|
var Ya = /* @__PURE__ */ eo({ "../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/lib/speakingurl.js": ((e, t) => {
|
|
@@ -5409,7 +5410,7 @@ function Ve(e, t) {
|
|
|
5409
5410
|
function pt(e, t) {
|
|
5410
5411
|
return e.indexOf(t) !== -1;
|
|
5411
5412
|
}
|
|
5412
|
-
function
|
|
5413
|
+
function Qn(e, t) {
|
|
5413
5414
|
for (let n = 0; n < e.length; n++) {
|
|
5414
5415
|
const r = e[n];
|
|
5415
5416
|
if (t(r)) return r;
|
|
@@ -5429,7 +5430,7 @@ var sc = class {
|
|
|
5429
5430
|
return this.transfomers[e];
|
|
5430
5431
|
}
|
|
5431
5432
|
};
|
|
5432
|
-
const ic = (e) => Object.prototype.toString.call(e).slice(8, -1), _o = (e) => typeof e > "u", ac = (e) => e === null, Je = (e) => typeof e != "object" || e === null || e === Object.prototype ? !1 : Object.getPrototypeOf(e) === null ? !0 : Object.getPrototypeOf(e) === Object.prototype,
|
|
5433
|
+
const ic = (e) => Object.prototype.toString.call(e).slice(8, -1), _o = (e) => typeof e > "u", ac = (e) => e === null, Je = (e) => typeof e != "object" || e === null || e === Object.prototype ? !1 : Object.getPrototypeOf(e) === null ? !0 : Object.getPrototypeOf(e) === Object.prototype, un = (e) => Je(e) && Object.keys(e).length === 0, le = (e) => Array.isArray(e), cc = (e) => typeof e == "string", uc = (e) => typeof e == "number" && !isNaN(e), fc = (e) => typeof e == "boolean", lc = (e) => e instanceof RegExp, Ke = (e) => e instanceof Map, Ye = (e) => e instanceof Set, mo = (e) => ic(e) === "Symbol", dc = (e) => e instanceof Date && !isNaN(e.valueOf()), pc = (e) => e instanceof Error, Xn = (e) => typeof e == "number" && isNaN(e), hc = (e) => fc(e) || ac(e) || _o(e) || uc(e) || cc(e) || mo(e), Ec = (e) => typeof e == "bigint", gc = (e) => e === 1 / 0 || e === -1 / 0, _c = (e) => ArrayBuffer.isView(e) && !(e instanceof DataView), mc = (e) => e instanceof URL, yo = (e) => e.replace(/\./g, "\\."), Jt = (e) => e.map(String).map(yo).join("."), Fe = (e) => {
|
|
5433
5434
|
const t = [];
|
|
5434
5435
|
let n = "";
|
|
5435
5436
|
for (let o = 0; o < e.length; o++) {
|
|
@@ -5480,11 +5481,11 @@ const Ro = [
|
|
|
5480
5481
|
}),
|
|
5481
5482
|
re(Ye, "set", (e) => [...e.values()], (e) => new Set(e)),
|
|
5482
5483
|
re(Ke, "map", (e) => [...e.entries()], (e) => new Map(e)),
|
|
5483
|
-
re((e) =>
|
|
5484
|
+
re((e) => Xn(e) || gc(e), "number", (e) => Xn(e) ? "NaN" : e > 0 ? "Infinity" : "-Infinity", Number),
|
|
5484
5485
|
re((e) => e === 0 && 1 / e === -1 / 0, "number", () => "-0", Number),
|
|
5485
5486
|
re(mc, "URL", (e) => e.toString(), (e) => new URL(e))
|
|
5486
5487
|
];
|
|
5487
|
-
function
|
|
5488
|
+
function jt(e, t, n, r) {
|
|
5488
5489
|
return {
|
|
5489
5490
|
isApplicable: e,
|
|
5490
5491
|
annotation: t,
|
|
@@ -5492,7 +5493,7 @@ function Ht(e, t, n, r) {
|
|
|
5492
5493
|
untransform: r
|
|
5493
5494
|
};
|
|
5494
5495
|
}
|
|
5495
|
-
const So =
|
|
5496
|
+
const So = jt((e, t) => mo(e) ? !!t.symbolRegistry.getIdentifier(e) : !1, (e, t) => ["symbol", t.symbolRegistry.getIdentifier(e)], (e) => e.description, (e, t, n) => {
|
|
5496
5497
|
const r = n.symbolRegistry.getValue(t[1]);
|
|
5497
5498
|
if (!r) throw new Error("Trying to deserialize unknown symbol");
|
|
5498
5499
|
return r;
|
|
@@ -5506,7 +5507,7 @@ const So = Ht((e, t) => mo(e) ? !!t.symbolRegistry.getIdentifier(e) : !1, (e, t)
|
|
|
5506
5507
|
Float32Array,
|
|
5507
5508
|
Float64Array,
|
|
5508
5509
|
Uint8ClampedArray
|
|
5509
|
-
].reduce((e, t) => (e[t.name] = t, e), {}), Oo =
|
|
5510
|
+
].reduce((e, t) => (e[t.name] = t, e), {}), Oo = jt(_c, (e) => ["typed-array", e.constructor.name], (e) => [...e], (e, t) => {
|
|
5510
5511
|
const n = yc[t[1]];
|
|
5511
5512
|
if (!n) throw new Error("Trying to deserialize unknown typed array");
|
|
5512
5513
|
return new n(e);
|
|
@@ -5514,7 +5515,7 @@ const So = Ht((e, t) => mo(e) ? !!t.symbolRegistry.getIdentifier(e) : !1, (e, t)
|
|
|
5514
5515
|
function To(e, t) {
|
|
5515
5516
|
return e?.constructor ? !!t.classRegistry.getIdentifier(e.constructor) : !1;
|
|
5516
5517
|
}
|
|
5517
|
-
const wo =
|
|
5518
|
+
const wo = jt(To, (e, t) => ["class", t.classRegistry.getIdentifier(e.constructor)], (e, t) => {
|
|
5518
5519
|
const n = t.classRegistry.getAllowedProps(e.constructor);
|
|
5519
5520
|
if (!n) return { ...e };
|
|
5520
5521
|
const r = {};
|
|
@@ -5525,7 +5526,7 @@ const wo = Ht(To, (e, t) => ["class", t.classRegistry.getIdentifier(e.constructo
|
|
|
5525
5526
|
const r = n.classRegistry.getValue(t[1]);
|
|
5526
5527
|
if (!r) throw new Error(`Trying to deserialize unknown class '${t[1]}' - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564`);
|
|
5527
5528
|
return Object.assign(Object.create(r.prototype), e);
|
|
5528
|
-
}), Po =
|
|
5529
|
+
}), Po = jt((e, t) => !!t.customTransformerRegistry.findApplicable(e), (e, t) => ["custom", t.customTransformerRegistry.findApplicable(e).name], (e, t) => t.customTransformerRegistry.findApplicable(e).serialize(e), (e, t, n) => {
|
|
5529
5530
|
const r = n.customTransformerRegistry.findByName(t[1]);
|
|
5530
5531
|
if (!r) throw new Error("Trying to deserialize unknown custom value");
|
|
5531
5532
|
return r.deserialize(e);
|
|
@@ -5534,13 +5535,13 @@ const wo = Ht(To, (e, t) => ["class", t.classRegistry.getIdentifier(e.constructo
|
|
|
5534
5535
|
So,
|
|
5535
5536
|
Po,
|
|
5536
5537
|
Oo
|
|
5537
|
-
],
|
|
5538
|
-
const n =
|
|
5538
|
+
], er = (e, t) => {
|
|
5539
|
+
const n = Qn(Rc, (o) => o.isApplicable(e, t));
|
|
5539
5540
|
if (n) return {
|
|
5540
5541
|
value: n.transform(e, t),
|
|
5541
5542
|
type: n.annotation(e, t)
|
|
5542
5543
|
};
|
|
5543
|
-
const r =
|
|
5544
|
+
const r = Qn(Ro, (o) => o.isApplicable(e, t));
|
|
5544
5545
|
if (r) return {
|
|
5545
5546
|
value: r.transform(e, t),
|
|
5546
5547
|
type: r.annotation
|
|
@@ -5597,7 +5598,7 @@ const Oc = (e, t) => {
|
|
|
5597
5598
|
} else e = e[r];
|
|
5598
5599
|
}
|
|
5599
5600
|
return e;
|
|
5600
|
-
},
|
|
5601
|
+
}, fn = (e, t, n) => {
|
|
5601
5602
|
if (Io(t), t.length === 0) return n(e);
|
|
5602
5603
|
let r = e;
|
|
5603
5604
|
for (let s = 0; s < t.length - 1; s++) {
|
|
@@ -5642,33 +5643,33 @@ const Oc = (e, t) => {
|
|
|
5642
5643
|
}
|
|
5643
5644
|
return e;
|
|
5644
5645
|
};
|
|
5645
|
-
function
|
|
5646
|
+
function ln(e, t, n = []) {
|
|
5646
5647
|
if (!e) return;
|
|
5647
5648
|
if (!le(e)) {
|
|
5648
|
-
Ve(e, (s, a) =>
|
|
5649
|
+
Ve(e, (s, a) => ln(s, t, [...n, ...Fe(a)]));
|
|
5649
5650
|
return;
|
|
5650
5651
|
}
|
|
5651
5652
|
const [r, o] = e;
|
|
5652
5653
|
o && Ve(o, (s, a) => {
|
|
5653
|
-
|
|
5654
|
+
ln(s, t, [...n, ...Fe(a)]);
|
|
5654
5655
|
}), t(r, n);
|
|
5655
5656
|
}
|
|
5656
5657
|
function Tc(e, t, n) {
|
|
5657
|
-
return
|
|
5658
|
-
e =
|
|
5658
|
+
return ln(t, (r, o) => {
|
|
5659
|
+
e = fn(e, o, (s) => Sc(s, r, n));
|
|
5659
5660
|
}), e;
|
|
5660
5661
|
}
|
|
5661
5662
|
function wc(e, t) {
|
|
5662
5663
|
function n(r, o) {
|
|
5663
5664
|
const s = Oc(e, Fe(o));
|
|
5664
5665
|
r.map(Fe).forEach((a) => {
|
|
5665
|
-
e =
|
|
5666
|
+
e = fn(e, a, () => s);
|
|
5666
5667
|
});
|
|
5667
5668
|
}
|
|
5668
5669
|
if (le(t)) {
|
|
5669
5670
|
const [r, o] = t;
|
|
5670
5671
|
r.forEach((s) => {
|
|
5671
|
-
e =
|
|
5672
|
+
e = fn(e, Fe(s), () => e);
|
|
5672
5673
|
}), o && Ve(o, n);
|
|
5673
5674
|
} else Ve(t, n);
|
|
5674
5675
|
return e;
|
|
@@ -5685,8 +5686,8 @@ function Ic(e, t) {
|
|
|
5685
5686
|
if (o.length <= 1) return;
|
|
5686
5687
|
t || (o = o.map((i) => i.map(String)).sort((i, u) => i.length - u.length));
|
|
5687
5688
|
const [s, ...a] = o;
|
|
5688
|
-
s.length === 0 ? r = a.map(
|
|
5689
|
-
}), r ?
|
|
5689
|
+
s.length === 0 ? r = a.map(Jt) : n[Jt(s)] = a.map(Jt);
|
|
5690
|
+
}), r ? un(n) ? [r] : [r, n] : un(n) ? void 0 : n;
|
|
5690
5691
|
}
|
|
5691
5692
|
const Ao = (e, t, n, r, o = [], s = [], a = /* @__PURE__ */ new Map()) => {
|
|
5692
5693
|
const i = hc(e);
|
|
@@ -5696,14 +5697,14 @@ const Ao = (e, t, n, r, o = [], s = [], a = /* @__PURE__ */ new Map()) => {
|
|
|
5696
5697
|
if (f) return r ? { transformedValue: null } : f;
|
|
5697
5698
|
}
|
|
5698
5699
|
if (!Pc(e, n)) {
|
|
5699
|
-
const f =
|
|
5700
|
+
const f = er(e, n), p = f ? {
|
|
5700
5701
|
transformedValue: f.value,
|
|
5701
5702
|
annotations: [f.type]
|
|
5702
5703
|
} : { transformedValue: e };
|
|
5703
5704
|
return i || a.set(e, p), p;
|
|
5704
5705
|
}
|
|
5705
5706
|
if (pt(s, e)) return { transformedValue: null };
|
|
5706
|
-
const u =
|
|
5707
|
+
const u = er(e, n), l = u?.value ?? e, m = le(l) ? [] : {}, c = {};
|
|
5707
5708
|
Ve(l, (f, p) => {
|
|
5708
5709
|
if (p === "__proto__" || p === "constructor" || p === "prototype") throw new Error(`Detected property ${p}. This is a prototype pollution risk, please remove it from your object.`);
|
|
5709
5710
|
const y = Ao(f, t, n, r, [...o, p], [...s, e], a);
|
|
@@ -5711,7 +5712,7 @@ const Ao = (e, t, n, r, o = [], s = [], a = /* @__PURE__ */ new Map()) => {
|
|
|
5711
5712
|
c[yo(p) + "." + h] = _;
|
|
5712
5713
|
});
|
|
5713
5714
|
});
|
|
5714
|
-
const E =
|
|
5715
|
+
const E = un(c) ? {
|
|
5715
5716
|
transformedValue: m,
|
|
5716
5717
|
annotations: u ? [u.type] : void 0
|
|
5717
5718
|
} : {
|
|
@@ -5723,7 +5724,7 @@ const Ao = (e, t, n, r, o = [], s = [], a = /* @__PURE__ */ new Map()) => {
|
|
|
5723
5724
|
function bo(e) {
|
|
5724
5725
|
return Object.prototype.toString.call(e).slice(8, -1);
|
|
5725
5726
|
}
|
|
5726
|
-
function
|
|
5727
|
+
function tr(e) {
|
|
5727
5728
|
return bo(e) === "Array";
|
|
5728
5729
|
}
|
|
5729
5730
|
function Ac(e) {
|
|
@@ -5740,14 +5741,14 @@ function bc(e, t, n, r, o) {
|
|
|
5740
5741
|
configurable: !0
|
|
5741
5742
|
});
|
|
5742
5743
|
}
|
|
5743
|
-
function
|
|
5744
|
-
if (
|
|
5744
|
+
function dn(e, t = {}) {
|
|
5745
|
+
if (tr(e)) return e.map((o) => dn(o, t));
|
|
5745
5746
|
if (!Ac(e)) return e;
|
|
5746
5747
|
const n = Object.getOwnPropertyNames(e), r = Object.getOwnPropertySymbols(e);
|
|
5747
5748
|
return [...n, ...r].reduce((o, s) => {
|
|
5748
|
-
if (
|
|
5749
|
+
if (tr(t.props) && !t.props.includes(s)) return o;
|
|
5749
5750
|
const a = e[s];
|
|
5750
|
-
return bc(o, s,
|
|
5751
|
+
return bc(o, s, dn(a, t), e, t.nonenumerable), o;
|
|
5751
5752
|
}, {});
|
|
5752
5753
|
}
|
|
5753
5754
|
var v = class {
|
|
@@ -5771,7 +5772,7 @@ var v = class {
|
|
|
5771
5772
|
}
|
|
5772
5773
|
deserialize(e) {
|
|
5773
5774
|
const { json: t, meta: n } = e;
|
|
5774
|
-
let r =
|
|
5775
|
+
let r = dn(t);
|
|
5775
5776
|
return n?.values && (r = Tc(r, n.values, this)), n?.referentialEqualities && (r = wc(r, n.referentialEqualities)), r;
|
|
5776
5777
|
}
|
|
5777
5778
|
stringify(e) {
|
|
@@ -5811,32 +5812,32 @@ T.__VUE_DEVTOOLS_KIT_RPC_SERVER__ ??= null;
|
|
|
5811
5812
|
T.__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__ ??= null;
|
|
5812
5813
|
T.__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__ ??= null;
|
|
5813
5814
|
T.__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__ ??= null;
|
|
5814
|
-
const
|
|
5815
|
+
const Pt = { template: "<div>This is component</div>" }, Cn = Ue({
|
|
5815
5816
|
name: "parentA",
|
|
5816
5817
|
path: "/parentA/[paramA]"
|
|
5817
5818
|
}), vo = Ue({
|
|
5818
|
-
parent:
|
|
5819
|
+
parent: Cn,
|
|
5819
5820
|
name: "parentA.childA",
|
|
5820
5821
|
path: "/childA/[?paramB]"
|
|
5821
5822
|
}), vc = Ue({
|
|
5822
|
-
parent:
|
|
5823
|
+
parent: Cn,
|
|
5823
5824
|
name: "parentA.childB",
|
|
5824
5825
|
path: "/childB/[paramD]",
|
|
5825
|
-
component:
|
|
5826
|
+
component: Pt
|
|
5826
5827
|
}), kc = Ue({
|
|
5827
5828
|
parent: vo,
|
|
5828
5829
|
name: "parentA.childA.grandChildA",
|
|
5829
5830
|
path: "/[paramC]",
|
|
5830
|
-
component:
|
|
5831
|
+
component: Pt
|
|
5831
5832
|
});
|
|
5832
5833
|
Ue({
|
|
5833
5834
|
name: "parentB",
|
|
5834
5835
|
path: "/parentB",
|
|
5835
|
-
component:
|
|
5836
|
+
component: Pt
|
|
5836
5837
|
}), Ue({
|
|
5837
5838
|
name: "parentC",
|
|
5838
5839
|
path: "/",
|
|
5839
|
-
component:
|
|
5840
|
+
component: Pt
|
|
5840
5841
|
});
|
|
5841
5842
|
function Cc(e, t) {
|
|
5842
5843
|
return t !== "1" ? `${e} ${t}` : e;
|
|
@@ -5848,7 +5849,7 @@ const Uc = ({ route: e }) => !!e.name, Lc = ({ route: e, payload: t }) => {
|
|
|
5848
5849
|
return !1;
|
|
5849
5850
|
const n = t.filter.toLowerCase();
|
|
5850
5851
|
return !!(e.name.toLowerCase().includes(n) || e.schema.path.value.toLowerCase().includes(n));
|
|
5851
|
-
}, Dc = (e) => Uc(e) && Lc(e), xc =
|
|
5852
|
+
}, Dc = (e) => Uc(e) && Lc(e), xc = It(), Vc = 2282478, Mc = 2278750, Bc = 1483594;
|
|
5852
5853
|
function Hc(e, t = { match: !1, exactMatch: !1 }) {
|
|
5853
5854
|
const n = [];
|
|
5854
5855
|
return e.name && n.push({
|
|
@@ -5900,7 +5901,7 @@ function Zc(e) {
|
|
|
5900
5901
|
})), t;
|
|
5901
5902
|
}
|
|
5902
5903
|
function Gc({ router: e, app: t, routes: n }) {
|
|
5903
|
-
if (!
|
|
5904
|
+
if (!Mt() || e.hasDevtools)
|
|
5904
5905
|
return;
|
|
5905
5906
|
e.hasDevtools = !0;
|
|
5906
5907
|
const r = xc(), o = new Map(n.map((i) => [i.id, i])), s = `kitbag-router-routes.${r}`, a = `kitbag-router.${r}`;
|
|
@@ -5954,7 +5955,7 @@ function $c(e, t, n = {}) {
|
|
|
5954
5955
|
const ko = /^(\/.+?)\/+$/;
|
|
5955
5956
|
function Fc(e) {
|
|
5956
5957
|
const { path: t, ...n } = se(e);
|
|
5957
|
-
return
|
|
5958
|
+
return Dt({
|
|
5958
5959
|
...n,
|
|
5959
5960
|
path: t.replace(ko, "$1")
|
|
5960
5961
|
});
|
|
@@ -5969,7 +5970,7 @@ function eu(e, t, n = []) {
|
|
|
5969
5970
|
...t?.rejections ?? []
|
|
5970
5971
|
], a = t?.removeTrailingSlashes ?? !0, { routes: i, getRouteByName: u } = _i(e, n, t?.base), l = Vs();
|
|
5971
5972
|
l.addGlobalRouteHooks(Si(n));
|
|
5972
|
-
const m =
|
|
5973
|
+
const m = It(), c = oi(), E = Pi(o), f = pi(), p = si({
|
|
5973
5974
|
mode: t?.historyMode,
|
|
5974
5975
|
listener: ({ location: P }) => {
|
|
5975
5976
|
const k = ge(P);
|
|
@@ -6072,10 +6073,10 @@ function eu(e, t, n = []) {
|
|
|
6072
6073
|
return _(at, ne);
|
|
6073
6074
|
}
|
|
6074
6075
|
if (typeof P == "string") {
|
|
6075
|
-
const { replace: ne, ...at } = { ...G }, Co = { ...k },
|
|
6076
|
-
return _(
|
|
6076
|
+
const { replace: ne, ...at } = { ...G }, Co = { ...k }, Zt = S(P, Co, at), Uo = qn({ ...Zt.matched.state }, { ...Zt.state, ...at.state });
|
|
6077
|
+
return _(Zt.href, { replace: ne, state: Uo });
|
|
6077
6078
|
}
|
|
6078
|
-
const { replace: $, ...L } = { ...k }, M =
|
|
6079
|
+
const { replace: $, ...L } = { ...k }, M = qn({ ...P.matched.state }, { ...P.state, ...L.state }), we = Ce(P.href, {
|
|
6079
6080
|
query: L.query,
|
|
6080
6081
|
hash: L.hash
|
|
6081
6082
|
});
|
|
@@ -6109,7 +6110,7 @@ function eu(e, t, n = []) {
|
|
|
6109
6110
|
}
|
|
6110
6111
|
function it(P) {
|
|
6111
6112
|
l.setVueApp(P), c.setVueApp(P);
|
|
6112
|
-
const k =
|
|
6113
|
+
const k = On(o), G = Hr(o);
|
|
6113
6114
|
P.component("RouterView", k), P.component("RouterLink", G), P.provide(Cr(o), N), P.provide(vr(o), l), P.provide(Dr(o), c), P.provide(kr(o), E), P.provide(Mr, f), P.provide(o, he), Gc({ router: he, app: P, routes: i }), Y();
|
|
6114
6115
|
}
|
|
6115
6116
|
const he = {
|
|
@@ -6144,7 +6145,7 @@ function eu(e, t, n = []) {
|
|
|
6144
6145
|
const K = Ks(qr), tu = K.onBeforeRouteLeave, nu = K.onBeforeRouteUpdate, ru = K.onAfterRouteLeave, ou = K.onAfterRouteUpdate, su = K.isRoute, iu = K.RouterView, au = K.RouterLink, cu = K.useRoute, uu = K.useRouter, fu = K.useQueryValue, lu = K.useLink, du = K.useRejection;
|
|
6145
6146
|
export {
|
|
6146
6147
|
Zo as DuplicateParamsError,
|
|
6147
|
-
|
|
6148
|
+
ir as IS_URL_SYMBOL,
|
|
6148
6149
|
Bo as MetaPropertyConflict,
|
|
6149
6150
|
au as RouterLink,
|
|
6150
6151
|
Be as RouterNotInstalledError,
|
|
@@ -6152,7 +6153,7 @@ export {
|
|
|
6152
6153
|
qo as UseRouteInvalidError,
|
|
6153
6154
|
Qc as arrayOf,
|
|
6154
6155
|
Fo as asUrlString,
|
|
6155
|
-
|
|
6156
|
+
sr as combineRoutes,
|
|
6156
6157
|
Kc as createExternalRoute,
|
|
6157
6158
|
Qo as createParam,
|
|
6158
6159
|
Jc as createRejection,
|
|
@@ -6164,11 +6165,11 @@ export {
|
|
|
6164
6165
|
su as isRoute,
|
|
6165
6166
|
Q as isUrlString,
|
|
6166
6167
|
ve as isUrlWithSchema,
|
|
6167
|
-
|
|
6168
|
-
|
|
6169
|
-
|
|
6170
|
-
|
|
6171
|
-
|
|
6168
|
+
rr as isWithComponent,
|
|
6169
|
+
Un as isWithComponentProps,
|
|
6170
|
+
Ln as isWithComponentPropsRecord,
|
|
6171
|
+
or as isWithComponents,
|
|
6172
|
+
nr as isWithParent,
|
|
6172
6173
|
ru as onAfterRouteLeave,
|
|
6173
6174
|
ou as onAfterRouteUpdate,
|
|
6174
6175
|
tu as onBeforeRouteLeave,
|
|
@@ -6181,5 +6182,5 @@ export {
|
|
|
6181
6182
|
cu as useRoute,
|
|
6182
6183
|
uu as useRouter,
|
|
6183
6184
|
Wc as withDefault,
|
|
6184
|
-
|
|
6185
|
+
tn as withParams
|
|
6185
6186
|
};
|