@vingy/vuebugger 0.4.0 → 0.4.1
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/index.js +296 -299
- package/package.json +7 -6
package/dist/index.js
CHANGED
|
@@ -7,35 +7,35 @@ var s = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Map(), l = [], u = (e
|
|
|
7
7
|
s.set(t, e);
|
|
8
8
|
let r = c.get(n);
|
|
9
9
|
r ? r.add(t) : c.set(n, new Set([t]));
|
|
10
|
-
}),
|
|
10
|
+
}), ee = d((e) => {
|
|
11
11
|
let { uid: t, groupId: n } = e;
|
|
12
12
|
s.delete(t);
|
|
13
13
|
let r = c.get(n);
|
|
14
14
|
r?.delete(t), r?.size === 0 && c.delete(n);
|
|
15
|
-
}),
|
|
15
|
+
}), p = (e) => {
|
|
16
16
|
l.push(e);
|
|
17
|
-
},
|
|
18
|
-
|
|
19
|
-
},
|
|
17
|
+
}, m = () => Math.random().toString(36).slice(2, 9), h = (e) => {
|
|
18
|
+
m = e;
|
|
19
|
+
}, te = /* @__PURE__ */ new Map(), g = (r, a, o) => {
|
|
20
20
|
let s = t(), c = s?.type.name || s?.type.__name || "No component", l = {
|
|
21
21
|
groupId: r,
|
|
22
|
-
uid: `${c}/${r}-${
|
|
22
|
+
uid: `${c}/${r}-${m()}`,
|
|
23
23
|
componentName: c,
|
|
24
24
|
componentInstance: s,
|
|
25
25
|
debugState: a
|
|
26
26
|
}, u = n();
|
|
27
27
|
if (u) u.run(() => {
|
|
28
|
-
i(() =>
|
|
28
|
+
i(() => ee(l)), o(l);
|
|
29
29
|
});
|
|
30
30
|
else {
|
|
31
|
-
let t =
|
|
31
|
+
let t = te.get(r);
|
|
32
32
|
t && t.stop();
|
|
33
33
|
let n = e();
|
|
34
|
-
|
|
35
|
-
i(() =>
|
|
34
|
+
te.set(r, n), n.run(() => {
|
|
35
|
+
i(() => ee(l)), o(l);
|
|
36
36
|
});
|
|
37
37
|
}
|
|
38
|
-
},
|
|
38
|
+
}, _ = (t, n, r) => ((typeof __ENABLE_VUEBUGGER__ > "u" ? !import.meta.env.DEV : !__ENABLE_VUEBUGGER__) || g(t, n, (t) => {
|
|
39
39
|
if (r?.enable === void 0) o(() => n, (e) => {
|
|
40
40
|
f({
|
|
41
41
|
...t,
|
|
@@ -58,23 +58,21 @@ var s = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Map(), l = [], u = (e
|
|
|
58
58
|
immediate: !0,
|
|
59
59
|
deep: !0
|
|
60
60
|
});
|
|
61
|
-
})) : (s?.stop(), s = void 0,
|
|
61
|
+
})) : (s?.stop(), s = void 0, ee(t));
|
|
62
62
|
}, { immediate: !0 }), i(() => s?.stop());
|
|
63
63
|
}
|
|
64
|
-
}), n),
|
|
65
|
-
return t || (0, e[b(e)[0]])((t = { exports: {} }).exports, t), t.exports;
|
|
66
|
-
}, C = (e, t, n, r) => {
|
|
64
|
+
}), n), v = Object.create, y = Object.defineProperty, ne = Object.getOwnPropertyDescriptor, b = Object.getOwnPropertyNames, x = Object.getPrototypeOf, re = Object.prototype.hasOwnProperty, S = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), C = (e, t, n, r) => {
|
|
67
65
|
if (t && typeof t == "object" || typeof t == "function") for (var i = b(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !re.call(e, s) && s !== n && y(e, s, {
|
|
68
66
|
get: ((e) => t[e]).bind(null, s),
|
|
69
67
|
enumerable: !(r = ne(t, s)) || r.enumerable
|
|
70
68
|
});
|
|
71
69
|
return e;
|
|
72
|
-
}, w = (e, t, n) => (n = e == null ? {} :
|
|
70
|
+
}, w = (e, t, n) => (n = e == null ? {} : v(x(e)), C(t || !e || !e.__esModule ? y(n, "default", {
|
|
73
71
|
value: e,
|
|
74
72
|
enumerable: !0
|
|
75
73
|
}) : n, e)), T = typeof navigator < "u", E = typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : typeof global < "u" ? global : {};
|
|
76
74
|
E.chrome !== void 0 && E.chrome.devtools, T && (E.self, E.top), typeof navigator < "u" && navigator.userAgent?.toLowerCase().includes("electron"), typeof window < "u" && window.__NUXT__;
|
|
77
|
-
var D = /* @__PURE__ */ w((/* @__PURE__ */ S(
|
|
75
|
+
var D = /* @__PURE__ */ w((/* @__PURE__ */ S(((e, t) => {
|
|
78
76
|
t.exports = r;
|
|
79
77
|
function n(e) {
|
|
80
78
|
return e instanceof Buffer ? Buffer.from(e) : new e.constructor(e.buffer.slice(), e.byteOffset, e.length);
|
|
@@ -174,7 +172,7 @@ var D = /* @__PURE__ */ w((/* @__PURE__ */ S({ "../../node_modules/.pnpm/rfdc@1.
|
|
|
174
172
|
return t.pop(), r.pop(), s;
|
|
175
173
|
}
|
|
176
174
|
}
|
|
177
|
-
})
|
|
175
|
+
})))(), 1), ie = /(?:^|[-_/])(\w)/g;
|
|
178
176
|
function ae(e, t) {
|
|
179
177
|
return t ? t.toUpperCase() : "";
|
|
180
178
|
}
|
|
@@ -342,36 +340,35 @@ function ve() {
|
|
|
342
340
|
return new _e();
|
|
343
341
|
}
|
|
344
342
|
//#endregion
|
|
345
|
-
//#region ../../node_modules/.pnpm/@vue+devtools-kit@8.
|
|
346
|
-
var ye =
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
function xe(e) {
|
|
343
|
+
//#region ../../node_modules/.pnpm/@vue+devtools-kit@8.1.2/node_modules/@vue/devtools-kit/dist/index.js
|
|
344
|
+
var ye = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports);
|
|
345
|
+
function be(e) {
|
|
346
|
+
if (typeof e == "function") return e.displayName || e.name || e.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__ || "";
|
|
350
347
|
let t = e.name || e._componentTag || e.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__ || e.__name;
|
|
351
348
|
return t === "index" && e.__file?.endsWith("index.vue") ? "" : t;
|
|
352
349
|
}
|
|
353
|
-
function
|
|
350
|
+
function xe(e) {
|
|
354
351
|
let t = e.__file;
|
|
355
352
|
if (t) return oe(se(t, ".vue"));
|
|
356
353
|
}
|
|
357
|
-
function
|
|
354
|
+
function Se(e, t) {
|
|
358
355
|
return e.type.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__ = t, t;
|
|
359
356
|
}
|
|
360
|
-
function
|
|
357
|
+
function Ce(e) {
|
|
361
358
|
if (e.__VUE_DEVTOOLS_NEXT_APP_RECORD__) return e.__VUE_DEVTOOLS_NEXT_APP_RECORD__;
|
|
362
359
|
if (e.root) return e.appContext.app.__VUE_DEVTOOLS_NEXT_APP_RECORD__;
|
|
363
360
|
}
|
|
364
|
-
function
|
|
365
|
-
let t = e.subTree?.type, n =
|
|
361
|
+
function we(e) {
|
|
362
|
+
let t = e.subTree?.type, n = Ce(e);
|
|
366
363
|
return n ? n?.types?.Fragment === t : !1;
|
|
367
364
|
}
|
|
368
|
-
function
|
|
369
|
-
let t =
|
|
365
|
+
function Te(e) {
|
|
366
|
+
let t = be(e?.type || {});
|
|
370
367
|
if (t) return t;
|
|
371
368
|
if (e?.root === e) return "Root";
|
|
372
|
-
for (let t in e.parent?.type?.components) if (e.parent.type.components[t] === e?.type) return
|
|
373
|
-
for (let t in e.appContext?.components) if (e.appContext.components[t] === e?.type) return
|
|
374
|
-
return
|
|
369
|
+
for (let t in e.parent?.type?.components) if (e.parent.type.components[t] === e?.type) return Se(e, t);
|
|
370
|
+
for (let t in e.appContext?.components) if (e.appContext.components[t] === e?.type) return Se(e, t);
|
|
371
|
+
return xe(e?.type || {}) || "Anonymous Component";
|
|
375
372
|
}
|
|
376
373
|
function Ee(e) {
|
|
377
374
|
return `${e?.appContext?.app?.__VUE_DEVTOOLS_NEXT_APP_RECORD_ID__ ?? 0}:${e === e?.root ? "root" : e.uid}`;
|
|
@@ -403,7 +400,7 @@ function je(e) {
|
|
|
403
400
|
if (!e.children) return t;
|
|
404
401
|
for (let n = 0, r = e.children.length; n < r; n++) {
|
|
405
402
|
let r = e.children[n], i;
|
|
406
|
-
if (r.component) i =
|
|
403
|
+
if (r.component) i = k(r.component);
|
|
407
404
|
else if (r.el) {
|
|
408
405
|
let e = r.el;
|
|
409
406
|
e.nodeType === 1 || e.getBoundingClientRect ? i = e.getBoundingClientRect() : e.nodeType === 3 && e.data.trim() && (i = Ae(e));
|
|
@@ -423,12 +420,12 @@ var Ne = {
|
|
|
423
420
|
width: 0,
|
|
424
421
|
height: 0
|
|
425
422
|
};
|
|
426
|
-
function
|
|
423
|
+
function k(e) {
|
|
427
424
|
let t = e.subTree.el;
|
|
428
|
-
return typeof window > "u" ? Ne :
|
|
425
|
+
return typeof window > "u" ? Ne : we(e) ? je(e.subTree) : t?.nodeType === 1 ? t?.getBoundingClientRect() : e.subTree.component ? k(e.subTree.component) : Ne;
|
|
429
426
|
}
|
|
430
427
|
function Pe(e) {
|
|
431
|
-
return
|
|
428
|
+
return we(e) ? Fe(e.subTree) : e.subTree ? [e.subTree.el] : [];
|
|
432
429
|
}
|
|
433
430
|
function Fe(e) {
|
|
434
431
|
if (!e.children) return [];
|
|
@@ -466,7 +463,7 @@ var Ie = "__vue-devtools-component-inspector__", Le = "__vue-devtools-component-
|
|
|
466
463
|
fontSize: "12px",
|
|
467
464
|
opacity: .7
|
|
468
465
|
};
|
|
469
|
-
function
|
|
466
|
+
function A() {
|
|
470
467
|
return document.getElementById(Ie);
|
|
471
468
|
}
|
|
472
469
|
function Ue() {
|
|
@@ -504,17 +501,17 @@ function qe(e) {
|
|
|
504
501
|
return i.id = ze, i.innerHTML = `${Math.round(e.bounds.width * 100) / 100} x ${Math.round(e.bounds.height * 100) / 100}`, Object.assign(i.style, He), n.appendChild(r), n.appendChild(i), t.appendChild(n), document.body.appendChild(t), t;
|
|
505
502
|
}
|
|
506
503
|
function Je(e) {
|
|
507
|
-
let t =
|
|
504
|
+
let t = A(), n = Ue(), r = Ge(), i = We();
|
|
508
505
|
t && (Object.assign(t.style, {
|
|
509
506
|
...Be,
|
|
510
507
|
...Ke(e.bounds)
|
|
511
508
|
}), Object.assign(n.style, { top: e.bounds.top < 35 ? 0 : "-35px" }), r.innerHTML = `<${e.name}> `, i.innerHTML = `${Math.round(e.bounds.width * 100) / 100} x ${Math.round(e.bounds.height * 100) / 100}`);
|
|
512
509
|
}
|
|
513
510
|
function Ye(e) {
|
|
514
|
-
let t =
|
|
511
|
+
let t = k(e);
|
|
515
512
|
if (!t.width && !t.height) return;
|
|
516
|
-
let n =
|
|
517
|
-
|
|
513
|
+
let n = Te(e);
|
|
514
|
+
A() ? Je({
|
|
518
515
|
bounds: t,
|
|
519
516
|
name: n
|
|
520
517
|
}) : qe({
|
|
@@ -523,7 +520,7 @@ function Ye(e) {
|
|
|
523
520
|
});
|
|
524
521
|
}
|
|
525
522
|
function Xe() {
|
|
526
|
-
let e =
|
|
523
|
+
let e = A();
|
|
527
524
|
e && (e.style.display = "none");
|
|
528
525
|
}
|
|
529
526
|
var Ze = null;
|
|
@@ -532,8 +529,8 @@ function Qe(e) {
|
|
|
532
529
|
if (t) {
|
|
533
530
|
let e = t.__vueParentComponent;
|
|
534
531
|
if (e && (Ze = e, e.vnode.el)) {
|
|
535
|
-
let t =
|
|
536
|
-
|
|
532
|
+
let t = k(e), n = Te(e);
|
|
533
|
+
A() ? Je({
|
|
537
534
|
bounds: t,
|
|
538
535
|
name: n
|
|
539
536
|
}) : qe({
|
|
@@ -546,29 +543,29 @@ function Qe(e) {
|
|
|
546
543
|
function $e(e, t) {
|
|
547
544
|
e.preventDefault(), e.stopPropagation(), Ze && t(Ee(Ze));
|
|
548
545
|
}
|
|
549
|
-
var
|
|
550
|
-
function
|
|
551
|
-
Xe(), window.removeEventListener("mouseover", Qe), window.removeEventListener("click",
|
|
546
|
+
var j = null;
|
|
547
|
+
function et() {
|
|
548
|
+
Xe(), window.removeEventListener("mouseover", Qe), window.removeEventListener("click", j, !0), j = null;
|
|
552
549
|
}
|
|
553
|
-
function
|
|
550
|
+
function tt() {
|
|
554
551
|
return window.addEventListener("mouseover", Qe), new Promise((e) => {
|
|
555
552
|
function t(n) {
|
|
556
553
|
n.preventDefault(), n.stopPropagation(), $e(n, (n) => {
|
|
557
|
-
window.removeEventListener("click", t, !0),
|
|
558
|
-
let r =
|
|
554
|
+
window.removeEventListener("click", t, !0), j = null, window.removeEventListener("mouseover", Qe);
|
|
555
|
+
let r = A();
|
|
559
556
|
r && (r.style.display = "none"), e(JSON.stringify({ id: n }));
|
|
560
557
|
});
|
|
561
558
|
}
|
|
562
|
-
|
|
559
|
+
j = t, window.addEventListener("click", t, !0);
|
|
563
560
|
});
|
|
564
561
|
}
|
|
565
|
-
function
|
|
562
|
+
function nt(e) {
|
|
566
563
|
let t = De(z.value, e.id);
|
|
567
564
|
if (t) {
|
|
568
565
|
let [n] = Pe(t);
|
|
569
566
|
if (typeof n.scrollIntoView == "function") n.scrollIntoView({ behavior: "smooth" });
|
|
570
567
|
else {
|
|
571
|
-
let e =
|
|
568
|
+
let e = k(t), n = document.createElement("div"), r = {
|
|
572
569
|
...Ke(e),
|
|
573
570
|
position: "absolute"
|
|
574
571
|
};
|
|
@@ -577,9 +574,9 @@ function rt(e) {
|
|
|
577
574
|
}, 2e3);
|
|
578
575
|
}
|
|
579
576
|
setTimeout(() => {
|
|
580
|
-
let n =
|
|
577
|
+
let n = k(t);
|
|
581
578
|
if (n.width || n.height) {
|
|
582
|
-
let r =
|
|
579
|
+
let r = Te(t), i = A();
|
|
583
580
|
i ? Je({
|
|
584
581
|
...e,
|
|
585
582
|
name: r,
|
|
@@ -596,23 +593,23 @@ function rt(e) {
|
|
|
596
593
|
}
|
|
597
594
|
}
|
|
598
595
|
E.__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__ ??= !0;
|
|
599
|
-
function
|
|
596
|
+
function rt(e) {
|
|
600
597
|
let t = 0, n = setInterval(() => {
|
|
601
598
|
E.__VUE_INSPECTOR__ && (clearInterval(n), t += 30, e()), t >= 5e3 && clearInterval(n);
|
|
602
599
|
}, 30);
|
|
603
600
|
}
|
|
604
|
-
function
|
|
601
|
+
function it() {
|
|
605
602
|
let e = E.__VUE_INSPECTOR__, t = e.openInEditor;
|
|
606
603
|
e.openInEditor = async (...n) => {
|
|
607
604
|
e.disable(), t(...n);
|
|
608
605
|
};
|
|
609
606
|
}
|
|
610
|
-
function
|
|
607
|
+
function at() {
|
|
611
608
|
return new Promise((e) => {
|
|
612
609
|
function t() {
|
|
613
|
-
|
|
610
|
+
it(), e(E.__VUE_INSPECTOR__);
|
|
614
611
|
}
|
|
615
|
-
E.__VUE_INSPECTOR__ ? t() :
|
|
612
|
+
E.__VUE_INSPECTOR__ ? t() : rt(() => {
|
|
616
613
|
t();
|
|
617
614
|
});
|
|
618
615
|
});
|
|
@@ -620,22 +617,22 @@ function ot() {
|
|
|
620
617
|
var M = /* @__PURE__ */ function(e) {
|
|
621
618
|
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;
|
|
622
619
|
}({});
|
|
623
|
-
function
|
|
620
|
+
function ot(e) {
|
|
624
621
|
return !!(e && e[M.IS_READONLY]);
|
|
625
622
|
}
|
|
626
|
-
function
|
|
627
|
-
return
|
|
623
|
+
function st(e) {
|
|
624
|
+
return ot(e) ? st(e[M.RAW]) : !!(e && e[M.IS_REACTIVE]);
|
|
628
625
|
}
|
|
629
|
-
function
|
|
626
|
+
function ct(e) {
|
|
630
627
|
return !!(e && e.__v_isRef === !0);
|
|
631
628
|
}
|
|
632
629
|
function N(e) {
|
|
633
630
|
let t = e && e[M.RAW];
|
|
634
631
|
return t ? N(t) : e;
|
|
635
632
|
}
|
|
636
|
-
var
|
|
633
|
+
var lt = class {
|
|
637
634
|
constructor() {
|
|
638
|
-
this.refEditor = new
|
|
635
|
+
this.refEditor = new ut();
|
|
639
636
|
}
|
|
640
637
|
set(e, t, n, r) {
|
|
641
638
|
let i = Array.isArray(t) ? t : t.split(".");
|
|
@@ -668,9 +665,9 @@ var ut = class {
|
|
|
668
665
|
}
|
|
669
666
|
};
|
|
670
667
|
}
|
|
671
|
-
},
|
|
668
|
+
}, ut = class {
|
|
672
669
|
set(e, t) {
|
|
673
|
-
if (
|
|
670
|
+
if (ct(e)) e.value = t;
|
|
674
671
|
else {
|
|
675
672
|
if (e instanceof Set && Array.isArray(t)) {
|
|
676
673
|
e.clear(), t.forEach((t) => e.add(t));
|
|
@@ -691,15 +688,15 @@ var ut = class {
|
|
|
691
688
|
}
|
|
692
689
|
}
|
|
693
690
|
get(e) {
|
|
694
|
-
return
|
|
691
|
+
return ct(e) ? e.value : e;
|
|
695
692
|
}
|
|
696
693
|
isRef(e) {
|
|
697
|
-
return
|
|
694
|
+
return ct(e) || st(e);
|
|
698
695
|
}
|
|
699
696
|
};
|
|
700
|
-
new
|
|
701
|
-
var
|
|
702
|
-
function
|
|
697
|
+
new lt();
|
|
698
|
+
var dt = "__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS_STATE__";
|
|
699
|
+
function ft() {
|
|
703
700
|
if (typeof window > "u" || !T || typeof localStorage > "u" || localStorage === null) return {
|
|
704
701
|
recordingState: !1,
|
|
705
702
|
mouseEventEnabled: !1,
|
|
@@ -708,7 +705,7 @@ function pt() {
|
|
|
708
705
|
performanceEventEnabled: !1,
|
|
709
706
|
selected: ""
|
|
710
707
|
};
|
|
711
|
-
let e = localStorage.getItem === void 0 ? null : localStorage.getItem(
|
|
708
|
+
let e = localStorage.getItem === void 0 ? null : localStorage.getItem(dt);
|
|
712
709
|
return e ? JSON.parse(e) : {
|
|
713
710
|
recordingState: !1,
|
|
714
711
|
mouseEventEnabled: !1,
|
|
@@ -719,35 +716,35 @@ function pt() {
|
|
|
719
716
|
};
|
|
720
717
|
}
|
|
721
718
|
E.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS ??= [];
|
|
722
|
-
var
|
|
719
|
+
var pt = new Proxy(E.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS, { get(e, t, n) {
|
|
723
720
|
return Reflect.get(e, t, n);
|
|
724
721
|
} });
|
|
725
|
-
function
|
|
726
|
-
B.timelineLayersState[t.id] = !1,
|
|
722
|
+
function mt(e, t) {
|
|
723
|
+
B.timelineLayersState[t.id] = !1, pt.push({
|
|
727
724
|
...e,
|
|
728
725
|
descriptorId: t.id,
|
|
729
|
-
appRecord:
|
|
726
|
+
appRecord: Ce(t.app)
|
|
730
727
|
});
|
|
731
728
|
}
|
|
732
729
|
E.__VUE_DEVTOOLS_KIT_INSPECTOR__ ??= [];
|
|
733
|
-
var
|
|
730
|
+
var ht = new Proxy(E.__VUE_DEVTOOLS_KIT_INSPECTOR__, { get(e, t, n) {
|
|
734
731
|
return Reflect.get(e, t, n);
|
|
735
|
-
} }),
|
|
736
|
-
W.hooks.callHook(I.SEND_INSPECTOR_TO_CLIENT,
|
|
732
|
+
} }), gt = O(() => {
|
|
733
|
+
W.hooks.callHook(I.SEND_INSPECTOR_TO_CLIENT, vt());
|
|
737
734
|
});
|
|
738
|
-
function
|
|
739
|
-
|
|
735
|
+
function _t(e, t) {
|
|
736
|
+
ht.push({
|
|
740
737
|
options: e,
|
|
741
738
|
descriptor: t,
|
|
742
739
|
treeFilterPlaceholder: e.treeFilterPlaceholder ?? "Search tree...",
|
|
743
740
|
stateFilterPlaceholder: e.stateFilterPlaceholder ?? "Search state...",
|
|
744
741
|
treeFilter: "",
|
|
745
742
|
selectedNodeId: "",
|
|
746
|
-
appRecord:
|
|
747
|
-
}),
|
|
743
|
+
appRecord: Ce(t.app)
|
|
744
|
+
}), gt();
|
|
748
745
|
}
|
|
749
|
-
function
|
|
750
|
-
return
|
|
746
|
+
function vt() {
|
|
747
|
+
return ht.filter((e) => e.descriptor.app === z.value.app).filter((e) => e.descriptor.id !== "components").map((e) => {
|
|
751
748
|
let t = e.descriptor, n = e.options;
|
|
752
749
|
return {
|
|
753
750
|
id: n.id,
|
|
@@ -760,8 +757,8 @@ function yt() {
|
|
|
760
757
|
};
|
|
761
758
|
});
|
|
762
759
|
}
|
|
763
|
-
function
|
|
764
|
-
return
|
|
760
|
+
function yt(e, t) {
|
|
761
|
+
return ht.find((n) => n.options.id === e && (t ? n.descriptor.app === t : !0));
|
|
765
762
|
}
|
|
766
763
|
var P = /* @__PURE__ */ function(e) {
|
|
767
764
|
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;
|
|
@@ -770,14 +767,14 @@ var P = /* @__PURE__ */ function(e) {
|
|
|
770
767
|
}({}), I = /* @__PURE__ */ function(e) {
|
|
771
768
|
return e.SEND_INSPECTOR_TREE_TO_CLIENT = "sendInspectorTreeToClient", e.SEND_INSPECTOR_STATE_TO_CLIENT = "sendInspectorStateToClient", e.SEND_TIMELINE_EVENT_TO_CLIENT = "sendTimelineEventToClient", e.SEND_INSPECTOR_TO_CLIENT = "sendInspectorToClient", e.SEND_ACTIVE_APP_UNMOUNTED_TO_CLIENT = "sendActiveAppUpdatedToClient", e.DEVTOOLS_STATE_UPDATED = "devtoolsStateUpdated", e.DEVTOOLS_CONNECTED_UPDATED = "devtoolsConnectedUpdated", e.ROUTER_INFO_UPDATED = "routerInfoUpdated", e;
|
|
772
769
|
}({});
|
|
773
|
-
function
|
|
770
|
+
function bt() {
|
|
774
771
|
let e = ve();
|
|
775
772
|
e.hook(F.ADD_INSPECTOR, ({ inspector: e, plugin: t }) => {
|
|
776
|
-
|
|
773
|
+
_t(e, t.descriptor);
|
|
777
774
|
});
|
|
778
775
|
let t = O(async ({ inspectorId: t, plugin: n }) => {
|
|
779
776
|
if (!t || !n?.descriptor?.app || B.highPerfModeEnabled) return;
|
|
780
|
-
let r =
|
|
777
|
+
let r = yt(t, n.descriptor.app), i = {
|
|
781
778
|
app: n.descriptor.app,
|
|
782
779
|
inspectorId: t,
|
|
783
780
|
filter: r?.treeFilter || "",
|
|
@@ -797,7 +794,7 @@ function xt() {
|
|
|
797
794
|
e.hook(F.SEND_INSPECTOR_TREE, t);
|
|
798
795
|
let n = O(async ({ inspectorId: t, plugin: n }) => {
|
|
799
796
|
if (!t || !n?.descriptor?.app || B.highPerfModeEnabled) return;
|
|
800
|
-
let r =
|
|
797
|
+
let r = yt(t, n.descriptor.app), i = {
|
|
801
798
|
app: n.descriptor.app,
|
|
802
799
|
inspectorId: t,
|
|
803
800
|
nodeId: r?.selectedNodeId || "",
|
|
@@ -816,10 +813,10 @@ function xt() {
|
|
|
816
813
|
}, I.SEND_INSPECTOR_STATE_TO_CLIENT);
|
|
817
814
|
}, 120);
|
|
818
815
|
return e.hook(F.SEND_INSPECTOR_STATE, n), e.hook(F.CUSTOM_INSPECTOR_SELECT_NODE, ({ inspectorId: e, nodeId: t, plugin: n }) => {
|
|
819
|
-
let r =
|
|
816
|
+
let r = yt(e, n.descriptor.app);
|
|
820
817
|
r && (r.selectedNodeId = t);
|
|
821
818
|
}), e.hook(F.TIMELINE_LAYER_ADDED, ({ options: e, plugin: t }) => {
|
|
822
|
-
|
|
819
|
+
mt(e, t.descriptor);
|
|
823
820
|
}), e.hook(F.TIMELINE_EVENT_ADDED, ({ options: t, plugin: n }) => {
|
|
824
821
|
B.highPerfModeEnabled || !B.timelineLayersState?.[n.descriptor.id] && ![
|
|
825
822
|
"performance",
|
|
@@ -834,7 +831,7 @@ function xt() {
|
|
|
834
831
|
if (!t) return null;
|
|
835
832
|
let n = t.id.toString();
|
|
836
833
|
return [...t.instanceMap].filter(([e]) => e.split(":")[0] === n).map(([, e]) => e);
|
|
837
|
-
}), e.hook(F.GET_COMPONENT_BOUNDS, async ({ instance: e }) =>
|
|
834
|
+
}), e.hook(F.GET_COMPONENT_BOUNDS, async ({ instance: e }) => k(e)), e.hook(F.GET_COMPONENT_NAME, ({ instance: e }) => Te(e)), e.hook(F.COMPONENT_HIGHLIGHT, ({ uid: e }) => {
|
|
838
835
|
let t = z.value.instanceMap.get(e);
|
|
839
836
|
t && Ye(t);
|
|
840
837
|
}), e.hook(F.COMPONENT_UNHIGHLIGHT, () => {
|
|
@@ -843,7 +840,7 @@ function xt() {
|
|
|
843
840
|
}
|
|
844
841
|
E.__VUE_DEVTOOLS_KIT_APP_RECORDS__ ??= [], E.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__ ??= {}, E.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__ ??= "", E.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__ ??= [], E.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__ ??= [];
|
|
845
842
|
var L = "__VUE_DEVTOOLS_KIT_GLOBAL_STATE__";
|
|
846
|
-
function
|
|
843
|
+
function xt() {
|
|
847
844
|
return {
|
|
848
845
|
connected: !1,
|
|
849
846
|
clientConnected: !1,
|
|
@@ -855,11 +852,11 @@ function St() {
|
|
|
855
852
|
highPerfModeEnabled: !0,
|
|
856
853
|
devtoolsClientDetected: {},
|
|
857
854
|
perfUniqueGroupId: 0,
|
|
858
|
-
timelineLayersState:
|
|
855
|
+
timelineLayersState: ft()
|
|
859
856
|
};
|
|
860
857
|
}
|
|
861
|
-
E[L] ??=
|
|
862
|
-
var
|
|
858
|
+
E[L] ??= xt();
|
|
859
|
+
var St = O((e) => {
|
|
863
860
|
W.hooks.callHook(I.DEVTOOLS_STATE_UPDATED, { state: e });
|
|
864
861
|
});
|
|
865
862
|
O((e, t) => {
|
|
@@ -873,8 +870,8 @@ var R = new Proxy(E.__VUE_DEVTOOLS_KIT_APP_RECORDS__, { get(e, t, n) {
|
|
|
873
870
|
} }), z = new Proxy(E.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__, { get(e, t, n) {
|
|
874
871
|
return t === "value" ? E.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__ : t === "id" ? E.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__ : E.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__[t];
|
|
875
872
|
} });
|
|
876
|
-
function
|
|
877
|
-
|
|
873
|
+
function Ct() {
|
|
874
|
+
St({
|
|
878
875
|
...E[L],
|
|
879
876
|
appRecords: R.value,
|
|
880
877
|
activeAppRecordId: z.id,
|
|
@@ -882,11 +879,11 @@ function wt() {
|
|
|
882
879
|
commands: E.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__
|
|
883
880
|
});
|
|
884
881
|
}
|
|
885
|
-
function
|
|
886
|
-
E.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__ = e,
|
|
882
|
+
function wt(e) {
|
|
883
|
+
E.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__ = e, Ct();
|
|
887
884
|
}
|
|
888
|
-
function
|
|
889
|
-
E.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__ = e,
|
|
885
|
+
function Tt(e) {
|
|
886
|
+
E.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__ = e, Ct();
|
|
890
887
|
}
|
|
891
888
|
var B = new Proxy(E[L], {
|
|
892
889
|
get(e, t) {
|
|
@@ -896,10 +893,10 @@ var B = new Proxy(E[L], {
|
|
|
896
893
|
return delete e[t], !0;
|
|
897
894
|
},
|
|
898
895
|
set(e, t, n) {
|
|
899
|
-
return
|
|
896
|
+
return e[t] = n, E[L][t] = n, !0;
|
|
900
897
|
}
|
|
901
898
|
});
|
|
902
|
-
function
|
|
899
|
+
function Et(e = {}) {
|
|
903
900
|
let { file: t, host: n, baseUrl: r = window.location.origin, line: i = 0, column: a = 0 } = e;
|
|
904
901
|
if (t) {
|
|
905
902
|
if (n === "chrome-extension") {
|
|
@@ -917,35 +914,35 @@ function Dt(e = {}) {
|
|
|
917
914
|
}
|
|
918
915
|
}
|
|
919
916
|
E.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__ ??= [];
|
|
920
|
-
var
|
|
917
|
+
var Dt = new Proxy(E.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__, { get(e, t, n) {
|
|
921
918
|
return Reflect.get(e, t, n);
|
|
922
919
|
} });
|
|
923
|
-
function
|
|
920
|
+
function Ot(e) {
|
|
924
921
|
let t = {};
|
|
925
922
|
return Object.keys(e).forEach((n) => {
|
|
926
923
|
t[n] = e[n].defaultValue;
|
|
927
924
|
}), t;
|
|
928
925
|
}
|
|
929
|
-
function
|
|
926
|
+
function kt(e) {
|
|
930
927
|
return `__VUE_DEVTOOLS_NEXT_PLUGIN_SETTINGS__${e}__`;
|
|
931
928
|
}
|
|
932
|
-
function
|
|
933
|
-
return (
|
|
929
|
+
function At(e) {
|
|
930
|
+
return (Dt.find((t) => t[0].id === e && !!t[0]?.settings)?.[0] ?? null)?.settings ?? null;
|
|
934
931
|
}
|
|
935
|
-
function
|
|
936
|
-
let n =
|
|
932
|
+
function jt(e, t) {
|
|
933
|
+
let n = kt(e);
|
|
937
934
|
if (n) {
|
|
938
935
|
let e = localStorage.getItem(n);
|
|
939
936
|
if (e) return JSON.parse(e);
|
|
940
937
|
}
|
|
941
|
-
return
|
|
938
|
+
return Ot(e ? (Dt.find((t) => t[0].id === e)?.[0] ?? null)?.settings ?? {} : t);
|
|
942
939
|
}
|
|
943
|
-
function
|
|
944
|
-
let n =
|
|
945
|
-
localStorage.getItem(n) || localStorage.setItem(n, JSON.stringify(
|
|
940
|
+
function Mt(e, t) {
|
|
941
|
+
let n = kt(e);
|
|
942
|
+
localStorage.getItem(n) || localStorage.setItem(n, JSON.stringify(Ot(t)));
|
|
946
943
|
}
|
|
947
|
-
function
|
|
948
|
-
let r =
|
|
944
|
+
function Nt(e, t, n) {
|
|
945
|
+
let r = kt(e), i = localStorage.getItem(r), a = JSON.parse(i || "{}"), o = {
|
|
949
946
|
...a,
|
|
950
947
|
[t]: n
|
|
951
948
|
};
|
|
@@ -961,7 +958,7 @@ function Pt(e, t, n) {
|
|
|
961
958
|
}
|
|
962
959
|
var V = /* @__PURE__ */ function(e) {
|
|
963
960
|
return e.APP_INIT = "app:init", e.APP_UNMOUNT = "app:unmount", e.COMPONENT_UPDATED = "component:updated", e.COMPONENT_ADDED = "component:added", e.COMPONENT_REMOVED = "component:removed", e.COMPONENT_EMIT = "component:emit", e.PERFORMANCE_START = "perf:start", e.PERFORMANCE_END = "perf:end", e.ADD_ROUTE = "router:add-route", e.REMOVE_ROUTE = "router:remove-route", e.RENDER_TRACKED = "render:tracked", e.RENDER_TRIGGERED = "render:triggered", e.APP_CONNECTED = "app:connected", e.SETUP_DEVTOOLS_PLUGIN = "devtools-plugin:setup", e;
|
|
964
|
-
}({}), H = E.__VUE_DEVTOOLS_HOOK ??= ve(),
|
|
961
|
+
}({}), H = E.__VUE_DEVTOOLS_HOOK ??= ve(), Pt = {
|
|
965
962
|
on: {
|
|
966
963
|
vueAppInit(e) {
|
|
967
964
|
H.hook(V.APP_INIT, e);
|
|
@@ -997,7 +994,7 @@ var V = /* @__PURE__ */ function(e) {
|
|
|
997
994
|
setupDevToolsPlugin(e, t) {
|
|
998
995
|
return H.callHook(V.SETUP_DEVTOOLS_PLUGIN, e, t);
|
|
999
996
|
}
|
|
1000
|
-
},
|
|
997
|
+
}, Ft = class {
|
|
1001
998
|
constructor({ plugin: e, ctx: t }) {
|
|
1002
999
|
this.hooks = t.hooks, this.plugin = e;
|
|
1003
1000
|
}
|
|
@@ -1034,7 +1031,7 @@ var V = /* @__PURE__ */ function(e) {
|
|
|
1034
1031
|
}
|
|
1035
1032
|
notifyComponentUpdate(e) {
|
|
1036
1033
|
if (B.highPerfModeEnabled) return;
|
|
1037
|
-
let t =
|
|
1034
|
+
let t = vt().find((e) => e.packageName === this.plugin.descriptor.packageName);
|
|
1038
1035
|
if (t?.id) {
|
|
1039
1036
|
if (e) {
|
|
1040
1037
|
let t = [
|
|
@@ -1055,7 +1052,7 @@ var V = /* @__PURE__ */ function(e) {
|
|
|
1055
1052
|
this.hooks.callHook(F.ADD_INSPECTOR, {
|
|
1056
1053
|
inspector: e,
|
|
1057
1054
|
plugin: this.plugin
|
|
1058
|
-
}), this.plugin.descriptor.settings &&
|
|
1055
|
+
}), this.plugin.descriptor.settings && Mt(e.id, this.plugin.descriptor.settings);
|
|
1059
1056
|
}
|
|
1060
1057
|
sendInspectorTree(e) {
|
|
1061
1058
|
B.highPerfModeEnabled || this.hooks.callHook(F.SEND_INSPECTOR_TREE, {
|
|
@@ -1095,7 +1092,7 @@ var V = /* @__PURE__ */ function(e) {
|
|
|
1095
1092
|
});
|
|
1096
1093
|
}
|
|
1097
1094
|
getSettings(e) {
|
|
1098
|
-
return
|
|
1095
|
+
return jt(e ?? this.plugin.descriptor.id, this.plugin.descriptor.settings);
|
|
1099
1096
|
}
|
|
1100
1097
|
getComponentInstances(e) {
|
|
1101
1098
|
return this.hooks.callHook(F.GET_COMPONENT_INSTANCES, { app: e });
|
|
@@ -1113,20 +1110,20 @@ var V = /* @__PURE__ */ function(e) {
|
|
|
1113
1110
|
unhighlightElement() {
|
|
1114
1111
|
return this.hooks.callHook(F.COMPONENT_UNHIGHLIGHT);
|
|
1115
1112
|
}
|
|
1116
|
-
},
|
|
1113
|
+
}, It = "__vue_devtool_undefined__", Lt = "__vue_devtool_infinity__", Rt = "__vue_devtool_negative_infinity__", zt = "__vue_devtool_nan__";
|
|
1117
1114
|
Object.entries({
|
|
1118
|
-
[
|
|
1119
|
-
[
|
|
1120
|
-
[
|
|
1121
|
-
[
|
|
1115
|
+
[It]: "undefined",
|
|
1116
|
+
[zt]: "NaN",
|
|
1117
|
+
[Lt]: "Infinity",
|
|
1118
|
+
[Rt]: "-Infinity"
|
|
1122
1119
|
}).reduce((e, [t, n]) => (e[n] = t, e), {}), E.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__ ??= /* @__PURE__ */ new Set();
|
|
1123
|
-
function
|
|
1124
|
-
return
|
|
1120
|
+
function Bt(e, t) {
|
|
1121
|
+
return Pt.setupDevToolsPlugin(e, t);
|
|
1125
1122
|
}
|
|
1126
|
-
function
|
|
1123
|
+
function Vt(e, t) {
|
|
1127
1124
|
let [n, r] = e;
|
|
1128
1125
|
if (n.app !== t) return;
|
|
1129
|
-
let i = new
|
|
1126
|
+
let i = new Ft({
|
|
1130
1127
|
plugin: {
|
|
1131
1128
|
setupFn: r,
|
|
1132
1129
|
descriptor: n
|
|
@@ -1137,28 +1134,28 @@ function Ht(e, t) {
|
|
|
1137
1134
|
i.sendInspectorState(e.inspectorId);
|
|
1138
1135
|
}), r(i);
|
|
1139
1136
|
}
|
|
1140
|
-
function
|
|
1141
|
-
E.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.has(e) || B.highPerfModeEnabled && !t?.inspectingComponent || (E.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.add(e),
|
|
1142
|
-
|
|
1137
|
+
function Ht(e, t) {
|
|
1138
|
+
E.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.has(e) || B.highPerfModeEnabled && !t?.inspectingComponent || (E.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.add(e), Dt.forEach((t) => {
|
|
1139
|
+
Vt(t, e);
|
|
1143
1140
|
}));
|
|
1144
1141
|
}
|
|
1145
|
-
var
|
|
1142
|
+
var Ut = "__VUE_DEVTOOLS_ROUTER__", U = "__VUE_DEVTOOLS_ROUTER_INFO__";
|
|
1146
1143
|
E[U] ??= {
|
|
1147
1144
|
currentRoute: null,
|
|
1148
1145
|
routes: []
|
|
1149
|
-
}, E[
|
|
1146
|
+
}, E[Ut] ??= {}, new Proxy(E[U], { get(e, t) {
|
|
1150
1147
|
return E[U][t];
|
|
1151
|
-
} }), new Proxy(E[
|
|
1152
|
-
if (t === "value") return E[
|
|
1148
|
+
} }), new Proxy(E[Ut], { get(e, t) {
|
|
1149
|
+
if (t === "value") return E[Ut];
|
|
1153
1150
|
} });
|
|
1154
|
-
function
|
|
1151
|
+
function Wt(e) {
|
|
1155
1152
|
let t = /* @__PURE__ */ new Map();
|
|
1156
1153
|
return (e?.getRoutes() || []).filter((e) => !t.has(e.path) && t.set(e.path, 1));
|
|
1157
1154
|
}
|
|
1158
|
-
function
|
|
1155
|
+
function Gt(e) {
|
|
1159
1156
|
return e.map((e) => {
|
|
1160
1157
|
let { path: t, name: n, children: r, meta: i } = e;
|
|
1161
|
-
return r?.length && (r =
|
|
1158
|
+
return r?.length && (r = Gt(r)), {
|
|
1162
1159
|
path: t,
|
|
1163
1160
|
name: n,
|
|
1164
1161
|
children: r,
|
|
@@ -1166,7 +1163,7 @@ function Kt(e) {
|
|
|
1166
1163
|
};
|
|
1167
1164
|
});
|
|
1168
1165
|
}
|
|
1169
|
-
function
|
|
1166
|
+
function Kt(e) {
|
|
1170
1167
|
if (e) {
|
|
1171
1168
|
let { fullPath: t, hash: n, href: r, path: i, name: a, matched: o, params: s, query: c } = e;
|
|
1172
1169
|
return {
|
|
@@ -1177,24 +1174,24 @@ function qt(e) {
|
|
|
1177
1174
|
name: a,
|
|
1178
1175
|
params: s,
|
|
1179
1176
|
query: c,
|
|
1180
|
-
matched:
|
|
1177
|
+
matched: Gt(o)
|
|
1181
1178
|
};
|
|
1182
1179
|
}
|
|
1183
1180
|
return e;
|
|
1184
1181
|
}
|
|
1185
|
-
function
|
|
1182
|
+
function qt(e, t) {
|
|
1186
1183
|
function n() {
|
|
1187
|
-
let t = e.app?.config.globalProperties.$router, n =
|
|
1184
|
+
let t = e.app?.config.globalProperties.$router, n = Kt(t?.currentRoute.value), r = Gt(Wt(t)), i = console.warn;
|
|
1188
1185
|
console.warn = () => {}, E[U] = {
|
|
1189
1186
|
currentRoute: n ? ce(n) : {},
|
|
1190
1187
|
routes: ce(r)
|
|
1191
|
-
}, E[
|
|
1188
|
+
}, E[Ut] = t, console.warn = i;
|
|
1192
1189
|
}
|
|
1193
|
-
n(),
|
|
1190
|
+
n(), Pt.on.componentUpdated(O(() => {
|
|
1194
1191
|
t.value?.app === e.app && (n(), !B.highPerfModeEnabled && W.hooks.callHook(I.ROUTER_INFO_UPDATED, { state: E[U] }));
|
|
1195
1192
|
}, 200));
|
|
1196
1193
|
}
|
|
1197
|
-
function
|
|
1194
|
+
function Jt(e) {
|
|
1198
1195
|
return {
|
|
1199
1196
|
async getInspectorTree(t) {
|
|
1200
1197
|
let n = {
|
|
@@ -1221,7 +1218,7 @@ function Yt(e) {
|
|
|
1221
1218
|
}), n.state;
|
|
1222
1219
|
},
|
|
1223
1220
|
editInspectorState(t) {
|
|
1224
|
-
let n = new
|
|
1221
|
+
let n = new lt(), r = {
|
|
1225
1222
|
...t,
|
|
1226
1223
|
app: z.value.app,
|
|
1227
1224
|
set: (e, r = t.path, i = t.state.value, a) => {
|
|
@@ -1233,7 +1230,7 @@ function Yt(e) {
|
|
|
1233
1230
|
}, P.EDIT_INSPECTOR_STATE);
|
|
1234
1231
|
},
|
|
1235
1232
|
sendInspectorState(t) {
|
|
1236
|
-
let n =
|
|
1233
|
+
let n = yt(t);
|
|
1237
1234
|
e.callHook(F.SEND_INSPECTOR_STATE, {
|
|
1238
1235
|
inspectorId: t,
|
|
1239
1236
|
plugin: {
|
|
@@ -1243,23 +1240,23 @@ function Yt(e) {
|
|
|
1243
1240
|
});
|
|
1244
1241
|
},
|
|
1245
1242
|
inspectComponentInspector() {
|
|
1246
|
-
return
|
|
1243
|
+
return tt();
|
|
1247
1244
|
},
|
|
1248
1245
|
cancelInspectComponentInspector() {
|
|
1249
|
-
return
|
|
1246
|
+
return et();
|
|
1250
1247
|
},
|
|
1251
1248
|
getComponentRenderCode(e) {
|
|
1252
1249
|
let t = De(z.value, e);
|
|
1253
1250
|
if (t) return typeof t?.type == "function" ? t.type.toString() : t.render.toString();
|
|
1254
1251
|
},
|
|
1255
1252
|
scrollToComponent(e) {
|
|
1256
|
-
return
|
|
1253
|
+
return nt({ id: e });
|
|
1257
1254
|
},
|
|
1258
|
-
openInEditor:
|
|
1259
|
-
getVueInspector:
|
|
1255
|
+
openInEditor: Et,
|
|
1256
|
+
getVueInspector: at,
|
|
1260
1257
|
toggleApp(e, t) {
|
|
1261
1258
|
let n = R.value.find((t) => t.id === e);
|
|
1262
|
-
n && (
|
|
1259
|
+
n && (Tt(e), wt(n), qt(n, z), gt(), Ht(n.app, t));
|
|
1263
1260
|
},
|
|
1264
1261
|
inspectDOM(e) {
|
|
1265
1262
|
let t = De(z.value, e);
|
|
@@ -1269,20 +1266,20 @@ function Yt(e) {
|
|
|
1269
1266
|
}
|
|
1270
1267
|
},
|
|
1271
1268
|
updatePluginSettings(e, t, n) {
|
|
1272
|
-
|
|
1269
|
+
Nt(e, t, n);
|
|
1273
1270
|
},
|
|
1274
1271
|
getPluginSettings(e) {
|
|
1275
1272
|
return {
|
|
1276
|
-
options:
|
|
1277
|
-
values:
|
|
1273
|
+
options: At(e),
|
|
1274
|
+
values: jt(e)
|
|
1278
1275
|
};
|
|
1279
1276
|
}
|
|
1280
1277
|
};
|
|
1281
1278
|
}
|
|
1282
1279
|
E.__VUE_DEVTOOLS_ENV__ ??= { vitePluginDetected: !1 };
|
|
1283
|
-
var
|
|
1280
|
+
var Yt = bt();
|
|
1284
1281
|
E.__VUE_DEVTOOLS_KIT_CONTEXT__ ??= {
|
|
1285
|
-
hooks:
|
|
1282
|
+
hooks: Yt,
|
|
1286
1283
|
get state() {
|
|
1287
1284
|
return {
|
|
1288
1285
|
...B,
|
|
@@ -1291,9 +1288,9 @@ E.__VUE_DEVTOOLS_KIT_CONTEXT__ ??= {
|
|
|
1291
1288
|
appRecords: R.value
|
|
1292
1289
|
};
|
|
1293
1290
|
},
|
|
1294
|
-
api: Yt
|
|
1291
|
+
api: Jt(Yt)
|
|
1295
1292
|
};
|
|
1296
|
-
var W = E.__VUE_DEVTOOLS_KIT_CONTEXT__,
|
|
1293
|
+
var W = E.__VUE_DEVTOOLS_KIT_CONTEXT__, Xt = /* @__PURE__ */ ye(((e, t) => {
|
|
1297
1294
|
(function(e) {
|
|
1298
1295
|
var n = {
|
|
1299
1296
|
À: "A",
|
|
@@ -2566,28 +2563,28 @@ var W = E.__VUE_DEVTOOLS_KIT_CONTEXT__, Zt = /* @__PURE__ */ be({ "../../node_mo
|
|
|
2566
2563
|
"(",
|
|
2567
2564
|
")"
|
|
2568
2565
|
].join(""), u = function(e, t) {
|
|
2569
|
-
var u = "-", d = "",
|
|
2566
|
+
var u = "-", d = "", p = "", m = !0, h = {}, te, g, _, v, y, ne, b, x, re, S, C, w, T, E, D = "";
|
|
2570
2567
|
if (typeof e != "string") return "";
|
|
2571
|
-
if (typeof t == "string" && (u = t), b = o.en, x = a.en, typeof t == "object") for (C in
|
|
2572
|
-
|
|
2573
|
-
}),
|
|
2574
|
-
|
|
2575
|
-
}), Object.keys(
|
|
2568
|
+
if (typeof t == "string" && (u = t), b = o.en, x = a.en, typeof t == "object") for (C in te = t.maintainCase || !1, h = t.custom && typeof t.custom == "object" ? t.custom : h, _ = +t.truncate > 1 && t.truncate || !1, v = t.uric || !1, y = t.uricNoSlash || !1, ne = t.mark || !1, m = !(t.symbols === !1 || t.lang === !1), u = t.separator || u, v && (D += s), y && (D += c), ne && (D += l), b = t.lang && o[t.lang] && m ? o[t.lang] : m ? o.en : {}, x = t.lang && a[t.lang] ? a[t.lang] : t.lang === !1 || t.lang === !0 ? {} : a.en, t.titleCase && typeof t.titleCase.length == "number" && Array.prototype.toString.call(t.titleCase) ? (t.titleCase.forEach(function(e) {
|
|
2569
|
+
h[e + ""] = e + "";
|
|
2570
|
+
}), g = !0) : g = !!t.titleCase, t.custom && typeof t.custom.length == "number" && Array.prototype.toString.call(t.custom) && t.custom.forEach(function(e) {
|
|
2571
|
+
h[e + ""] = e + "";
|
|
2572
|
+
}), Object.keys(h).forEach(function(t) {
|
|
2576
2573
|
var n = t.length > 1 ? RegExp("\\b" + f(t) + "\\b", "gi") : new RegExp(f(t), "gi");
|
|
2577
|
-
e = e.replace(n,
|
|
2578
|
-
}),
|
|
2579
|
-
for (D += u, D = f(D), e = e.replace(/(^\s+|\s+$)/g, ""), T = !1, E = !1, S = 0, w = e.length; S < w; S++) C = e[S],
|
|
2580
|
-
return
|
|
2574
|
+
e = e.replace(n, h[t]);
|
|
2575
|
+
}), h) D += C;
|
|
2576
|
+
for (D += u, D = f(D), e = e.replace(/(^\s+|\s+$)/g, ""), T = !1, E = !1, S = 0, w = e.length; S < w; S++) C = e[S], ee(C, h) ? T = !1 : x[C] ? (C = T && x[C].match(/[A-Za-z0-9]/) ? " " + x[C] : x[C], T = !1) : C in n ? (S + 1 < w && r.indexOf(e[S + 1]) >= 0 ? (p += C, C = "") : E === !0 ? (C = i[p] + n[C], p = "") : C = T && n[C].match(/[A-Za-z0-9]/) ? " " + n[C] : n[C], T = !1, E = !1) : C in i ? (p += C, C = "", S === w - 1 && (C = i[p]), E = !0) : b[C] && !(v && s.indexOf(C) !== -1) && !(y && c.indexOf(C) !== -1) ? (C = T || d.substr(-1).match(/[A-Za-z0-9]/) ? u + b[C] : b[C], C += e[S + 1] !== void 0 && e[S + 1].match(/[A-Za-z0-9]/) ? u : "", T = !0) : (E === !0 ? (C = i[p] + C, p = "", E = !1) : T && (/[A-Za-z0-9]/.test(C) || d.substr(-1).match(/A-Za-z0-9]/)) && (C = " " + C), T = !1), d += C.replace(RegExp("[^\\w\\s" + D + "_-]", "g"), u);
|
|
2577
|
+
return g && (d = d.replace(/(\w)(\S*)/g, function(e, t, n) {
|
|
2581
2578
|
var r = t.toUpperCase() + (n === null ? "" : n);
|
|
2582
|
-
return Object.keys(
|
|
2583
|
-
})), d = d.replace(/\s+/g, u).replace(RegExp("\\" + u + "+", "g"), u).replace(RegExp("(^\\" + u + "+|\\" + u + "+$)", "g"), ""),
|
|
2579
|
+
return Object.keys(h).indexOf(r.toLowerCase()) < 0 ? r : r.toLowerCase();
|
|
2580
|
+
})), d = d.replace(/\s+/g, u).replace(RegExp("\\" + u + "+", "g"), u).replace(RegExp("(^\\" + u + "+|\\" + u + "+$)", "g"), ""), _ && d.length > _ && (re = d.charAt(_) === u, d = d.slice(0, _), re || (d = d.slice(0, d.lastIndexOf(u)))), !te && !g && (d = d.toLowerCase()), d;
|
|
2584
2581
|
}, d = function(e) {
|
|
2585
2582
|
return function(t) {
|
|
2586
2583
|
return u(t, e);
|
|
2587
2584
|
};
|
|
2588
2585
|
}, f = function(e) {
|
|
2589
2586
|
return e.replace(/[-\\^$*+?.()|[\]{}\/]/g, "\\$&");
|
|
2590
|
-
},
|
|
2587
|
+
}, ee = function(e, t) {
|
|
2591
2588
|
for (var n in t) if (t[n] === e) return !0;
|
|
2592
2589
|
};
|
|
2593
2590
|
if (t !== void 0 && t.exports) t.exports = u, t.exports.createSlug = d;
|
|
@@ -2599,24 +2596,24 @@ var W = E.__VUE_DEVTOOLS_KIT_CONTEXT__, Zt = /* @__PURE__ */ be({ "../../node_mo
|
|
|
2599
2596
|
e.getSlug = u, e.createSlug = d;
|
|
2600
2597
|
} catch {}
|
|
2601
2598
|
})(e);
|
|
2602
|
-
})
|
|
2603
|
-
(/* @__PURE__ */
|
|
2604
|
-
t.exports =
|
|
2605
|
-
})
|
|
2599
|
+
}));
|
|
2600
|
+
(/* @__PURE__ */ ye(((e, t) => {
|
|
2601
|
+
t.exports = Xt();
|
|
2602
|
+
})))(), E.__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__ ??= {
|
|
2606
2603
|
id: 0,
|
|
2607
2604
|
appIds: /* @__PURE__ */ new Set()
|
|
2608
2605
|
};
|
|
2609
|
-
function
|
|
2610
|
-
B.highPerfModeEnabled = e ?? !B.highPerfModeEnabled, !e && z.value &&
|
|
2606
|
+
function Zt(e) {
|
|
2607
|
+
B.highPerfModeEnabled = e ?? !B.highPerfModeEnabled, !e && z.value && Ht(z.value.app);
|
|
2611
2608
|
}
|
|
2612
|
-
function
|
|
2609
|
+
function Qt(e) {
|
|
2613
2610
|
B.devtoolsClientDetected = {
|
|
2614
2611
|
...B.devtoolsClientDetected,
|
|
2615
2612
|
...e
|
|
2616
|
-
},
|
|
2613
|
+
}, Zt(!Object.values(B.devtoolsClientDetected).some(Boolean));
|
|
2617
2614
|
}
|
|
2618
|
-
E.__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__ ??=
|
|
2619
|
-
var
|
|
2615
|
+
E.__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__ ??= Qt;
|
|
2616
|
+
var $t = class {
|
|
2620
2617
|
constructor() {
|
|
2621
2618
|
this.keyToValue = /* @__PURE__ */ new Map(), this.valueToKey = /* @__PURE__ */ new Map();
|
|
2622
2619
|
}
|
|
@@ -2632,9 +2629,9 @@ var en = class {
|
|
|
2632
2629
|
clear() {
|
|
2633
2630
|
this.keyToValue.clear(), this.valueToKey.clear();
|
|
2634
2631
|
}
|
|
2635
|
-
},
|
|
2632
|
+
}, en = class {
|
|
2636
2633
|
constructor(e) {
|
|
2637
|
-
this.generateIdentifier = e, this.kv = new
|
|
2634
|
+
this.generateIdentifier = e, this.kv = new $t();
|
|
2638
2635
|
}
|
|
2639
2636
|
register(e, t) {
|
|
2640
2637
|
this.kv.getByValue(e) || (t ||= this.generateIdentifier(e), this.kv.set(t, e));
|
|
@@ -2648,7 +2645,7 @@ var en = class {
|
|
|
2648
2645
|
getValue(e) {
|
|
2649
2646
|
return this.kv.getByKey(e);
|
|
2650
2647
|
}
|
|
2651
|
-
},
|
|
2648
|
+
}, tn = class extends en {
|
|
2652
2649
|
constructor() {
|
|
2653
2650
|
super((e) => e.name), this.classToAllowedProps = /* @__PURE__ */ new Map();
|
|
2654
2651
|
}
|
|
@@ -2659,14 +2656,14 @@ var en = class {
|
|
|
2659
2656
|
return this.classToAllowedProps.get(e);
|
|
2660
2657
|
}
|
|
2661
2658
|
};
|
|
2662
|
-
function
|
|
2659
|
+
function nn(e) {
|
|
2663
2660
|
if ("values" in Object) return Object.values(e);
|
|
2664
2661
|
let t = [];
|
|
2665
2662
|
for (let n in e) e.hasOwnProperty(n) && t.push(e[n]);
|
|
2666
2663
|
return t;
|
|
2667
2664
|
}
|
|
2668
|
-
function
|
|
2669
|
-
let n =
|
|
2665
|
+
function rn(e, t) {
|
|
2666
|
+
let n = nn(e);
|
|
2670
2667
|
if ("find" in n) return n.find(t);
|
|
2671
2668
|
let r = n;
|
|
2672
2669
|
for (let e = 0; e < r.length; e++) {
|
|
@@ -2677,16 +2674,16 @@ function an(e, t) {
|
|
|
2677
2674
|
function G(e, t) {
|
|
2678
2675
|
Object.entries(e).forEach(([e, n]) => t(n, e));
|
|
2679
2676
|
}
|
|
2680
|
-
function
|
|
2677
|
+
function an(e, t) {
|
|
2681
2678
|
return e.indexOf(t) !== -1;
|
|
2682
2679
|
}
|
|
2683
|
-
function
|
|
2680
|
+
function on(e, t) {
|
|
2684
2681
|
for (let n = 0; n < e.length; n++) {
|
|
2685
2682
|
let r = e[n];
|
|
2686
2683
|
if (t(r)) return r;
|
|
2687
2684
|
}
|
|
2688
2685
|
}
|
|
2689
|
-
var
|
|
2686
|
+
var sn = class {
|
|
2690
2687
|
constructor() {
|
|
2691
2688
|
this.transfomers = {};
|
|
2692
2689
|
}
|
|
@@ -2694,12 +2691,12 @@ var cn = class {
|
|
|
2694
2691
|
this.transfomers[e.name] = e;
|
|
2695
2692
|
}
|
|
2696
2693
|
findApplicable(e) {
|
|
2697
|
-
return
|
|
2694
|
+
return rn(this.transfomers, (t) => t.isApplicable(e));
|
|
2698
2695
|
}
|
|
2699
2696
|
findByName(e) {
|
|
2700
2697
|
return this.transfomers[e];
|
|
2701
2698
|
}
|
|
2702
|
-
},
|
|
2699
|
+
}, cn = (e) => Object.prototype.toString.call(e).slice(8, -1), ln = (e) => e === void 0, un = (e) => e === null, K = (e) => typeof e != "object" || !e || e === Object.prototype ? !1 : Object.getPrototypeOf(e) === null ? !0 : Object.getPrototypeOf(e) === Object.prototype, dn = (e) => K(e) && Object.keys(e).length === 0, q = (e) => Array.isArray(e), fn = (e) => typeof e == "string", pn = (e) => typeof e == "number" && !isNaN(e), mn = (e) => typeof e == "boolean", hn = (e) => e instanceof RegExp, J = (e) => e instanceof Map, Y = (e) => e instanceof Set, gn = (e) => cn(e) === "Symbol", _n = (e) => e instanceof Date && !isNaN(e.valueOf()), vn = (e) => e instanceof Error, yn = (e) => typeof e == "number" && isNaN(e), bn = (e) => mn(e) || un(e) || ln(e) || pn(e) || fn(e) || gn(e), xn = (e) => typeof e == "bigint", Sn = (e) => e === Infinity || e === -Infinity, Cn = (e) => ArrayBuffer.isView(e) && !(e instanceof DataView), wn = (e) => e instanceof URL, Tn = (e) => e.replace(/\./g, "\\."), En = (e) => e.map(String).map(Tn).join("."), X = (e) => {
|
|
2703
2700
|
let t = [], n = "";
|
|
2704
2701
|
for (let r = 0; r < e.length; r++) {
|
|
2705
2702
|
let i = e.charAt(r);
|
|
@@ -2724,11 +2721,11 @@ function Z(e, t, n, r) {
|
|
|
2724
2721
|
untransform: r
|
|
2725
2722
|
};
|
|
2726
2723
|
}
|
|
2727
|
-
var
|
|
2728
|
-
Z(
|
|
2729
|
-
Z(
|
|
2730
|
-
Z(
|
|
2731
|
-
Z(
|
|
2724
|
+
var Dn = [
|
|
2725
|
+
Z(ln, "undefined", () => null, () => void 0),
|
|
2726
|
+
Z(xn, "bigint", (e) => e.toString(), (e) => typeof BigInt < "u" ? BigInt(e) : (console.error("Please add a BigInt polyfill."), e)),
|
|
2727
|
+
Z(_n, "Date", (e) => e.toISOString(), (e) => new Date(e)),
|
|
2728
|
+
Z(vn, "Error", (e, t) => {
|
|
2732
2729
|
let n = {
|
|
2733
2730
|
name: e.name,
|
|
2734
2731
|
message: e.message
|
|
@@ -2742,17 +2739,17 @@ var On = [
|
|
|
2742
2739
|
n[t] = e[t];
|
|
2743
2740
|
}), n;
|
|
2744
2741
|
}),
|
|
2745
|
-
Z(
|
|
2742
|
+
Z(hn, "regexp", (e) => "" + e, (e) => {
|
|
2746
2743
|
let t = e.slice(1, e.lastIndexOf("/")), n = e.slice(e.lastIndexOf("/") + 1);
|
|
2747
2744
|
return new RegExp(t, n);
|
|
2748
2745
|
}),
|
|
2749
2746
|
Z(Y, "set", (e) => [...e.values()], (e) => new Set(e)),
|
|
2750
2747
|
Z(J, "map", (e) => [...e.entries()], (e) => new Map(e)),
|
|
2751
|
-
Z((e) =>
|
|
2748
|
+
Z((e) => yn(e) || Sn(e), "number", (e) => yn(e) ? "NaN" : e > 0 ? "Infinity" : "-Infinity", Number),
|
|
2752
2749
|
Z((e) => e === 0 && 1 / e == -Infinity, "number", () => "-0", Number),
|
|
2753
|
-
Z(
|
|
2750
|
+
Z(wn, "URL", (e) => e.toString(), (e) => new URL(e))
|
|
2754
2751
|
];
|
|
2755
|
-
function
|
|
2752
|
+
function On(e, t, n, r) {
|
|
2756
2753
|
return {
|
|
2757
2754
|
isApplicable: e,
|
|
2758
2755
|
annotation: t,
|
|
@@ -2760,11 +2757,11 @@ function kn(e, t, n, r) {
|
|
|
2760
2757
|
untransform: r
|
|
2761
2758
|
};
|
|
2762
2759
|
}
|
|
2763
|
-
var
|
|
2760
|
+
var kn = On((e, t) => gn(e) ? !!t.symbolRegistry.getIdentifier(e) : !1, (e, t) => ["symbol", t.symbolRegistry.getIdentifier(e)], (e) => e.description, (e, t, n) => {
|
|
2764
2761
|
let r = n.symbolRegistry.getValue(t[1]);
|
|
2765
2762
|
if (!r) throw Error("Trying to deserialize unknown symbol");
|
|
2766
2763
|
return r;
|
|
2767
|
-
}),
|
|
2764
|
+
}), An = [
|
|
2768
2765
|
Int8Array,
|
|
2769
2766
|
Uint8Array,
|
|
2770
2767
|
Int16Array,
|
|
@@ -2774,15 +2771,15 @@ var An = kn((e, t) => _n(e) ? !!t.symbolRegistry.getIdentifier(e) : !1, (e, t) =
|
|
|
2774
2771
|
Float32Array,
|
|
2775
2772
|
Float64Array,
|
|
2776
2773
|
Uint8ClampedArray
|
|
2777
|
-
].reduce((e, t) => (e[t.name] = t, e), {}),
|
|
2778
|
-
let n =
|
|
2774
|
+
].reduce((e, t) => (e[t.name] = t, e), {}), jn = On(Cn, (e) => ["typed-array", e.constructor.name], (e) => [...e], (e, t) => {
|
|
2775
|
+
let n = An[t[1]];
|
|
2779
2776
|
if (!n) throw Error("Trying to deserialize unknown typed array");
|
|
2780
2777
|
return new n(e);
|
|
2781
2778
|
});
|
|
2782
|
-
function
|
|
2779
|
+
function Mn(e, t) {
|
|
2783
2780
|
return e?.constructor ? !!t.classRegistry.getIdentifier(e.constructor) : !1;
|
|
2784
2781
|
}
|
|
2785
|
-
var
|
|
2782
|
+
var Nn = On(Mn, (e, t) => ["class", t.classRegistry.getIdentifier(e.constructor)], (e, t) => {
|
|
2786
2783
|
let n = t.classRegistry.getAllowedProps(e.constructor);
|
|
2787
2784
|
if (!n) return { ...e };
|
|
2788
2785
|
let r = {};
|
|
@@ -2793,40 +2790,40 @@ var Pn = kn(Nn, (e, t) => ["class", t.classRegistry.getIdentifier(e.constructor)
|
|
|
2793
2790
|
let r = n.classRegistry.getValue(t[1]);
|
|
2794
2791
|
if (!r) throw Error(`Trying to deserialize unknown class '${t[1]}' - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564`);
|
|
2795
2792
|
return Object.assign(Object.create(r.prototype), e);
|
|
2796
|
-
}),
|
|
2793
|
+
}), Pn = On((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) => {
|
|
2797
2794
|
let r = n.customTransformerRegistry.findByName(t[1]);
|
|
2798
2795
|
if (!r) throw Error("Trying to deserialize unknown custom value");
|
|
2799
2796
|
return r.deserialize(e);
|
|
2800
|
-
}),
|
|
2797
|
+
}), Fn = [
|
|
2798
|
+
Nn,
|
|
2799
|
+
kn,
|
|
2801
2800
|
Pn,
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
], Ln = (e, t) => {
|
|
2806
|
-
let n = sn(In, (n) => n.isApplicable(e, t));
|
|
2801
|
+
jn
|
|
2802
|
+
], In = (e, t) => {
|
|
2803
|
+
let n = on(Fn, (n) => n.isApplicable(e, t));
|
|
2807
2804
|
if (n) return {
|
|
2808
2805
|
value: n.transform(e, t),
|
|
2809
2806
|
type: n.annotation(e, t)
|
|
2810
2807
|
};
|
|
2811
|
-
let r =
|
|
2808
|
+
let r = on(Dn, (n) => n.isApplicable(e, t));
|
|
2812
2809
|
if (r) return {
|
|
2813
2810
|
value: r.transform(e, t),
|
|
2814
2811
|
type: r.annotation
|
|
2815
2812
|
};
|
|
2816
|
-
},
|
|
2817
|
-
|
|
2818
|
-
|
|
2813
|
+
}, Ln = {};
|
|
2814
|
+
Dn.forEach((e) => {
|
|
2815
|
+
Ln[e.annotation] = e;
|
|
2819
2816
|
});
|
|
2820
|
-
var
|
|
2817
|
+
var Rn = (e, t, n) => {
|
|
2821
2818
|
if (q(t)) switch (t[0]) {
|
|
2822
|
-
case "symbol": return
|
|
2823
|
-
case "class": return
|
|
2824
|
-
case "custom": return
|
|
2825
|
-
case "typed-array": return
|
|
2819
|
+
case "symbol": return kn.untransform(e, t, n);
|
|
2820
|
+
case "class": return Nn.untransform(e, t, n);
|
|
2821
|
+
case "custom": return Pn.untransform(e, t, n);
|
|
2822
|
+
case "typed-array": return jn.untransform(e, t, n);
|
|
2826
2823
|
default: throw Error("Unknown transformation: " + t);
|
|
2827
2824
|
}
|
|
2828
2825
|
else {
|
|
2829
|
-
let r =
|
|
2826
|
+
let r = Ln[t];
|
|
2830
2827
|
if (!r) throw Error("Unknown transformation: " + t);
|
|
2831
2828
|
return r.untransform(e, n);
|
|
2832
2829
|
}
|
|
@@ -2836,13 +2833,13 @@ var zn = (e, t, n) => {
|
|
|
2836
2833
|
for (; t > 0;) n.next(), t--;
|
|
2837
2834
|
return n.next().value;
|
|
2838
2835
|
};
|
|
2839
|
-
function
|
|
2840
|
-
if (
|
|
2841
|
-
if (
|
|
2842
|
-
if (
|
|
2836
|
+
function zn(e) {
|
|
2837
|
+
if (an(e, "__proto__")) throw Error("__proto__ is not allowed as a property");
|
|
2838
|
+
if (an(e, "prototype")) throw Error("prototype is not allowed as a property");
|
|
2839
|
+
if (an(e, "constructor")) throw Error("constructor is not allowed as a property");
|
|
2843
2840
|
}
|
|
2844
|
-
var
|
|
2845
|
-
|
|
2841
|
+
var Bn = (e, t) => {
|
|
2842
|
+
zn(t);
|
|
2846
2843
|
for (let n = 0; n < t.length; n++) {
|
|
2847
2844
|
let r = t[n];
|
|
2848
2845
|
if (Y(e)) e = Q(e, +r);
|
|
@@ -2859,8 +2856,8 @@ var Vn = (e, t) => {
|
|
|
2859
2856
|
} else e = e[r];
|
|
2860
2857
|
}
|
|
2861
2858
|
return e;
|
|
2862
|
-
},
|
|
2863
|
-
if (
|
|
2859
|
+
}, Vn = (e, t, n) => {
|
|
2860
|
+
if (zn(t), t.length === 0) return n(e);
|
|
2864
2861
|
let r = e;
|
|
2865
2862
|
for (let e = 0; e < t.length - 1; e++) {
|
|
2866
2863
|
let n = t[e];
|
|
@@ -2904,75 +2901,75 @@ var Vn = (e, t) => {
|
|
|
2904
2901
|
}
|
|
2905
2902
|
return e;
|
|
2906
2903
|
};
|
|
2907
|
-
function
|
|
2904
|
+
function Hn(e, t, n = []) {
|
|
2908
2905
|
if (!e) return;
|
|
2909
2906
|
if (!q(e)) {
|
|
2910
|
-
G(e, (e, r) =>
|
|
2907
|
+
G(e, (e, r) => Hn(e, t, [...n, ...X(r)]));
|
|
2911
2908
|
return;
|
|
2912
2909
|
}
|
|
2913
2910
|
let [r, i] = e;
|
|
2914
2911
|
i && G(i, (e, r) => {
|
|
2915
|
-
|
|
2912
|
+
Hn(e, t, [...n, ...X(r)]);
|
|
2916
2913
|
}), t(r, n);
|
|
2917
2914
|
}
|
|
2918
|
-
function
|
|
2919
|
-
return
|
|
2920
|
-
e =
|
|
2915
|
+
function Un(e, t, n) {
|
|
2916
|
+
return Hn(t, (t, r) => {
|
|
2917
|
+
e = Vn(e, r, (e) => Rn(e, t, n));
|
|
2921
2918
|
}), e;
|
|
2922
2919
|
}
|
|
2923
|
-
function
|
|
2920
|
+
function Wn(e, t) {
|
|
2924
2921
|
function n(t, n) {
|
|
2925
|
-
let r =
|
|
2922
|
+
let r = Bn(e, X(n));
|
|
2926
2923
|
t.map(X).forEach((t) => {
|
|
2927
|
-
e =
|
|
2924
|
+
e = Vn(e, t, () => r);
|
|
2928
2925
|
});
|
|
2929
2926
|
}
|
|
2930
2927
|
if (q(t)) {
|
|
2931
2928
|
let [r, i] = t;
|
|
2932
2929
|
r.forEach((t) => {
|
|
2933
|
-
e =
|
|
2930
|
+
e = Vn(e, X(t), () => e);
|
|
2934
2931
|
}), i && G(i, n);
|
|
2935
2932
|
} else G(t, n);
|
|
2936
2933
|
return e;
|
|
2937
2934
|
}
|
|
2938
|
-
var
|
|
2939
|
-
function
|
|
2935
|
+
var Gn = (e, t) => K(e) || q(e) || J(e) || Y(e) || Mn(e, t);
|
|
2936
|
+
function Kn(e, t, n) {
|
|
2940
2937
|
let r = n.get(e);
|
|
2941
2938
|
r ? r.push(t) : n.set(e, [t]);
|
|
2942
2939
|
}
|
|
2943
|
-
function
|
|
2940
|
+
function qn(e, t) {
|
|
2944
2941
|
let n = {}, r;
|
|
2945
2942
|
return e.forEach((e) => {
|
|
2946
2943
|
if (e.length <= 1) return;
|
|
2947
2944
|
t || (e = e.map((e) => e.map(String)).sort((e, t) => e.length - t.length));
|
|
2948
2945
|
let [i, ...a] = e;
|
|
2949
|
-
i.length === 0 ? r = a.map(
|
|
2950
|
-
}), r ?
|
|
2946
|
+
i.length === 0 ? r = a.map(En) : n[En(i)] = a.map(En);
|
|
2947
|
+
}), r ? dn(n) ? [r] : [r, n] : dn(n) ? void 0 : n;
|
|
2951
2948
|
}
|
|
2952
|
-
var
|
|
2953
|
-
let s =
|
|
2949
|
+
var Jn = (e, t, n, r, i = [], a = [], o = /* @__PURE__ */ new Map()) => {
|
|
2950
|
+
let s = bn(e);
|
|
2954
2951
|
if (!s) {
|
|
2955
|
-
|
|
2952
|
+
Kn(e, i, t);
|
|
2956
2953
|
let n = o.get(e);
|
|
2957
2954
|
if (n) return r ? { transformedValue: null } : n;
|
|
2958
2955
|
}
|
|
2959
|
-
if (!
|
|
2960
|
-
let t =
|
|
2956
|
+
if (!Gn(e, n)) {
|
|
2957
|
+
let t = In(e, n), r = t ? {
|
|
2961
2958
|
transformedValue: t.value,
|
|
2962
2959
|
annotations: [t.type]
|
|
2963
2960
|
} : { transformedValue: e };
|
|
2964
2961
|
return s || o.set(e, r), r;
|
|
2965
2962
|
}
|
|
2966
|
-
if (
|
|
2967
|
-
let c =
|
|
2963
|
+
if (an(a, e)) return { transformedValue: null };
|
|
2964
|
+
let c = In(e, n), l = c?.value ?? e, u = q(l) ? [] : {}, d = {};
|
|
2968
2965
|
G(l, (s, c) => {
|
|
2969
2966
|
if (c === "__proto__" || c === "constructor" || c === "prototype") throw Error(`Detected property ${c}. This is a prototype pollution risk, please remove it from your object.`);
|
|
2970
|
-
let l =
|
|
2967
|
+
let l = Jn(s, t, n, r, [...i, c], [...a, e], o);
|
|
2971
2968
|
u[c] = l.transformedValue, q(l.annotations) ? d[c] = l.annotations : K(l.annotations) && G(l.annotations, (e, t) => {
|
|
2972
|
-
d[
|
|
2969
|
+
d[Tn(c) + "." + t] = e;
|
|
2973
2970
|
});
|
|
2974
2971
|
});
|
|
2975
|
-
let f =
|
|
2972
|
+
let f = dn(d) ? {
|
|
2976
2973
|
transformedValue: u,
|
|
2977
2974
|
annotations: c ? [c.type] : void 0
|
|
2978
2975
|
} : {
|
|
@@ -2981,18 +2978,18 @@ var Yn = (e, t, n, r, i = [], a = [], o = /* @__PURE__ */ new Map()) => {
|
|
|
2981
2978
|
};
|
|
2982
2979
|
return s || o.set(e, f), f;
|
|
2983
2980
|
};
|
|
2984
|
-
function
|
|
2981
|
+
function Yn(e) {
|
|
2985
2982
|
return Object.prototype.toString.call(e).slice(8, -1);
|
|
2986
2983
|
}
|
|
2987
|
-
function
|
|
2988
|
-
return
|
|
2984
|
+
function Xn(e) {
|
|
2985
|
+
return Yn(e) === "Array";
|
|
2989
2986
|
}
|
|
2990
|
-
function
|
|
2991
|
-
if (
|
|
2987
|
+
function Zn(e) {
|
|
2988
|
+
if (Yn(e) !== "Object") return !1;
|
|
2992
2989
|
let t = Object.getPrototypeOf(e);
|
|
2993
2990
|
return !!t && t.constructor === Object && t === Object.prototype;
|
|
2994
2991
|
}
|
|
2995
|
-
function
|
|
2992
|
+
function Qn(e, t, n, r, i) {
|
|
2996
2993
|
let a = {}.propertyIsEnumerable.call(r, t) ? "enumerable" : "nonenumerable";
|
|
2997
2994
|
a === "enumerable" && (e[t] = n), i && a === "nonenumerable" && Object.defineProperty(e, t, {
|
|
2998
2995
|
value: n,
|
|
@@ -3001,35 +2998,35 @@ function $n(e, t, n, r, i) {
|
|
|
3001
2998
|
configurable: !0
|
|
3002
2999
|
});
|
|
3003
3000
|
}
|
|
3004
|
-
function
|
|
3005
|
-
if (
|
|
3006
|
-
if (!
|
|
3001
|
+
function $n(e, t = {}) {
|
|
3002
|
+
if (Xn(e)) return e.map((e) => $n(e, t));
|
|
3003
|
+
if (!Zn(e)) return e;
|
|
3007
3004
|
let n = Object.getOwnPropertyNames(e), r = Object.getOwnPropertySymbols(e);
|
|
3008
3005
|
return [...n, ...r].reduce((n, r) => {
|
|
3009
|
-
if (
|
|
3006
|
+
if (Xn(t.props) && !t.props.includes(r)) return n;
|
|
3010
3007
|
let i = e[r];
|
|
3011
|
-
return
|
|
3008
|
+
return Qn(n, r, $n(i, t), e, t.nonenumerable), n;
|
|
3012
3009
|
}, {});
|
|
3013
3010
|
}
|
|
3014
3011
|
var $ = class {
|
|
3015
3012
|
constructor({ dedupe: e = !1 } = {}) {
|
|
3016
|
-
this.classRegistry = new
|
|
3013
|
+
this.classRegistry = new tn(), this.symbolRegistry = new en((e) => e.description ?? ""), this.customTransformerRegistry = new sn(), this.allowedErrorProps = [], this.dedupe = e;
|
|
3017
3014
|
}
|
|
3018
3015
|
serialize(e) {
|
|
3019
|
-
let t = /* @__PURE__ */ new Map(), n =
|
|
3016
|
+
let t = /* @__PURE__ */ new Map(), n = Jn(e, t, this, this.dedupe), r = { json: n.transformedValue };
|
|
3020
3017
|
n.annotations && (r.meta = {
|
|
3021
3018
|
...r.meta,
|
|
3022
3019
|
values: n.annotations
|
|
3023
3020
|
});
|
|
3024
|
-
let i =
|
|
3021
|
+
let i = qn(t, this.dedupe);
|
|
3025
3022
|
return i && (r.meta = {
|
|
3026
3023
|
...r.meta,
|
|
3027
3024
|
referentialEqualities: i
|
|
3028
3025
|
}), r;
|
|
3029
3026
|
}
|
|
3030
3027
|
deserialize(e) {
|
|
3031
|
-
let { json: t, meta: n } = e, r =
|
|
3032
|
-
return n?.values && (r =
|
|
3028
|
+
let { json: t, meta: n } = e, r = $n(t);
|
|
3029
|
+
return n?.values && (r = Un(r, n.values, this)), n?.referentialEqualities && (r = Wn(r, n.referentialEqualities)), r;
|
|
3033
3030
|
}
|
|
3034
3031
|
stringify(e) {
|
|
3035
3032
|
return JSON.stringify(this.serialize(e));
|
|
@@ -3056,7 +3053,7 @@ var $ = class {
|
|
|
3056
3053
|
$.defaultInstance = new $(), $.serialize = $.defaultInstance.serialize.bind($.defaultInstance), $.deserialize = $.defaultInstance.deserialize.bind($.defaultInstance), $.stringify = $.defaultInstance.stringify.bind($.defaultInstance), $.parse = $.defaultInstance.parse.bind($.defaultInstance), $.registerClass = $.defaultInstance.registerClass.bind($.defaultInstance), $.registerSymbol = $.defaultInstance.registerSymbol.bind($.defaultInstance), $.registerCustom = $.defaultInstance.registerCustom.bind($.defaultInstance), $.allowErrorProps = $.defaultInstance.allowErrorProps.bind($.defaultInstance), $.serialize, $.deserialize, $.stringify, $.parse, $.registerClass, $.registerCustom, $.registerSymbol, $.allowErrorProps, E.__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__ ??= [], E.__VUE_DEVTOOLS_KIT_RPC_CLIENT__ ??= null, E.__VUE_DEVTOOLS_KIT_RPC_SERVER__ ??= null, E.__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__ ??= null, E.__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__ ??= null, E.__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__ ??= null;
|
|
3057
3054
|
//#endregion
|
|
3058
3055
|
//#region src/constants.ts
|
|
3059
|
-
var
|
|
3056
|
+
var er = "vuebugger-inspector", tr = "vuebugger-timeline", nr = (e) => {
|
|
3060
3057
|
if (e.inspectorId === "vuebugger-inspector") {
|
|
3061
3058
|
let t = e.filter;
|
|
3062
3059
|
e.rootNodes = c.entries().filter(([e, n]) => e.includes(t) || n.values().some((e) => e.includes(t))).map(([e, n]) => ({
|
|
@@ -3068,7 +3065,7 @@ var tr = "vuebugger-inspector", nr = "vuebugger-timeline", rr = (e) => {
|
|
|
3068
3065
|
})).toArray()
|
|
3069
3066
|
})).toArray();
|
|
3070
3067
|
}
|
|
3071
|
-
},
|
|
3068
|
+
}, rr = (e) => (t) => {
|
|
3072
3069
|
if (t.inspectorId === "vuebugger-inspector") {
|
|
3073
3070
|
let n = s.get(t.nodeId), i = c.get(t.nodeId);
|
|
3074
3071
|
if (i) {
|
|
@@ -3087,7 +3084,7 @@ var tr = "vuebugger-inspector", nr = "vuebugger-timeline", rr = (e) => {
|
|
|
3087
3084
|
editable: !r(t)
|
|
3088
3085
|
})) }, n.componentInstance && e.highlightElement(n.componentInstance));
|
|
3089
3086
|
}
|
|
3090
|
-
},
|
|
3087
|
+
}, ir = (e) => {
|
|
3091
3088
|
let t = s.values().filter((t) => t.componentInstance === e.componentInstance).flatMap((e) => Object.entries(e.debugState).map(([t, n]) => ({
|
|
3092
3089
|
type: e.uid,
|
|
3093
3090
|
key: t,
|
|
@@ -3095,32 +3092,32 @@ var tr = "vuebugger-inspector", nr = "vuebugger-timeline", rr = (e) => {
|
|
|
3095
3092
|
editable: !1
|
|
3096
3093
|
}))).toArray();
|
|
3097
3094
|
e.instanceData.state.push(...t);
|
|
3098
|
-
},
|
|
3095
|
+
}, ar = (e) => {
|
|
3099
3096
|
if (e.inspectorId === "vuebugger-inspector") {
|
|
3100
3097
|
let t = e.nodeId, n = s.get(t);
|
|
3101
3098
|
if (!n) return;
|
|
3102
3099
|
e.set(n.debugState);
|
|
3103
3100
|
}
|
|
3104
3101
|
};
|
|
3105
|
-
function
|
|
3106
|
-
console.log("🐞 Vuebugger ready to use"),
|
|
3102
|
+
function or(e) {
|
|
3103
|
+
console.log("🐞 Vuebugger ready to use"), Bt({
|
|
3107
3104
|
id: "composables-debugger",
|
|
3108
3105
|
label: "Composables",
|
|
3109
3106
|
logo: "https://raw.githubusercontent.com/vinpogo/vuebugger/main/logo.png",
|
|
3110
3107
|
app: e
|
|
3111
3108
|
}, (e) => {
|
|
3112
3109
|
e.addInspector({
|
|
3113
|
-
id:
|
|
3110
|
+
id: er,
|
|
3114
3111
|
label: "Vuebugger",
|
|
3115
3112
|
icon: "https://raw.githubusercontent.com/vinpogo/vuebugger/main/logo.png",
|
|
3116
3113
|
treeFilterPlaceholder: "Search by composable or component name..."
|
|
3117
3114
|
}), e.addTimelineLayer({
|
|
3118
|
-
id:
|
|
3115
|
+
id: tr,
|
|
3119
3116
|
label: "Vuebugger",
|
|
3120
3117
|
color: 155
|
|
3121
|
-
}),
|
|
3122
|
-
e.sendInspectorTree(
|
|
3123
|
-
layerId:
|
|
3118
|
+
}), p((t) => {
|
|
3119
|
+
e.sendInspectorTree(er), e.sendInspectorState(er), e.notifyComponentUpdate(t.componentInstance), e.addTimelineEvent({
|
|
3120
|
+
layerId: tr,
|
|
3124
3121
|
event: {
|
|
3125
3122
|
time: e.now(),
|
|
3126
3123
|
data: t,
|
|
@@ -3128,13 +3125,13 @@ function sr(e) {
|
|
|
3128
3125
|
groupId: t.uid
|
|
3129
3126
|
}
|
|
3130
3127
|
});
|
|
3131
|
-
}), e.on.getInspectorTree(
|
|
3128
|
+
}), e.on.getInspectorTree(nr), e.on.getInspectorState(rr(e)), e.on.inspectComponent(ir), e.on.editInspectorState(ar);
|
|
3132
3129
|
});
|
|
3133
3130
|
}
|
|
3134
3131
|
//#endregion
|
|
3135
3132
|
//#region src/plugin.ts
|
|
3136
|
-
var
|
|
3137
|
-
(typeof __ENABLE_VUEBUGGER__ > "u" ? !import.meta.env.DEV : !__ENABLE_VUEBUGGER__) || (t?.uidFn &&
|
|
3138
|
-
} },
|
|
3133
|
+
var sr = { install: (e, t) => {
|
|
3134
|
+
(typeof __ENABLE_VUEBUGGER__ > "u" ? !import.meta.env.DEV : !__ENABLE_VUEBUGGER__) || (t?.uidFn && h(t.uidFn), or(e));
|
|
3135
|
+
} }, cr = sr;
|
|
3139
3136
|
//#endregion
|
|
3140
|
-
export {
|
|
3137
|
+
export { sr as DebugPlugin, sr as Vuebugger, _ as debug, cr as default };
|