@vue/devtools-applet 7.3.2 → 7.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +7 -7
- package/dist/index.js +831 -851
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Zs = Object.defineProperty;
|
|
2
2
|
var Vs = (A, B, Q) => B in A ? Zs(A, B, { enumerable: !0, configurable: !0, writable: !0, value: Q }) : A[B] = Q;
|
|
3
|
-
var h = (A, B, Q) =>
|
|
4
|
-
import { openBlock as f, createElementBlock as L, createStaticVNode as zs, ref as K, computed as x, toValue as js, defineComponent as z, h as AC, provide as FB, inject as iB, createElementVNode as p, createVNode as U, unref as N, createTextVNode as rA, normalizeStyle as PA, renderSlot as gA, Fragment as FA, renderList as AB, toDisplayString as NA, createCommentVNode as $, pushScopeId as
|
|
3
|
+
var h = (A, B, Q) => Vs(A, typeof B != "symbol" ? B + "" : B, Q);
|
|
4
|
+
import { openBlock as f, createElementBlock as L, createStaticVNode as zs, ref as K, computed as x, toValue as js, defineComponent as z, h as AC, provide as FB, inject as iB, createElementVNode as p, createVNode as U, unref as N, createTextVNode as rA, normalizeStyle as PA, renderSlot as gA, Fragment as FA, renderList as AB, toDisplayString as NA, createCommentVNode as $, pushScopeId as LQ, popScopeId as kQ, nextTick as rB, createBlock as Z, normalizeClass as eA, normalizeProps as ot, guardReactiveProps as st, withScopeId as nt, resolveComponent as vB, withKeys as $s, mergeProps as UA, withCtx as O, createApp as An, useAttrs as Bn, useSlots as Qn, resolveDynamicComponent as Ig, watchEffect as nQ, onMounted as Lg, Teleport as gn, Transition as En, withDirectives as DA, isRef as HQ, vModelDynamic as Cn, createSlots as en, watch as oA, customRef as it, getCurrentInstance as kg, getCurrentScope as wt, onScopeDispose as Dt, toRef as In, readonly as rt, reactive as mC, withModifiers as jA, toRaw as tn, mergeModels as at, useModel as ct, onUnmounted as LB, markRaw as on, shallowReactive as sn, resolveDirective as nn, toHandlers as wn, shallowRef as Dn, vShow as rn } from "vue";
|
|
5
5
|
const kB = (A, B) => {
|
|
6
6
|
const Q = A.__vccOpts || A;
|
|
7
7
|
for (const [g, E] of B)
|
|
@@ -34,7 +34,7 @@ function QC(A) {
|
|
|
34
34
|
}
|
|
35
35
|
return FB(BC, B), FB(lt, Q), { VirtualRouterView: E, restoreRouter: C };
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function RQ() {
|
|
38
38
|
const A = iB(BC);
|
|
39
39
|
return {
|
|
40
40
|
push(B) {
|
|
@@ -120,7 +120,7 @@ const pn = {
|
|
|
120
120
|
], -1), mn = /* @__PURE__ */ p("div", { "flex-auto": "" }, null, -1), Jn = /* @__PURE__ */ z({
|
|
121
121
|
__name: "Home",
|
|
122
122
|
setup(A) {
|
|
123
|
-
const B =
|
|
123
|
+
const B = RQ();
|
|
124
124
|
return (Q, g) => (f(), L("div", pn, [
|
|
125
125
|
p("div", fn, [
|
|
126
126
|
Fn,
|
|
@@ -152,7 +152,7 @@ const pn = {
|
|
|
152
152
|
])
|
|
153
153
|
]));
|
|
154
154
|
}
|
|
155
|
-
}),
|
|
155
|
+
}), PQ = {
|
|
156
156
|
name: "splitpanes",
|
|
157
157
|
emits: ["ready", "resize", "resized", "pane-click", "pane-maximize", "pane-add", "pane-remove", "splitter-click"],
|
|
158
158
|
props: {
|
|
@@ -505,18 +505,17 @@ var bn = Object.create, ut = Object.defineProperty, Tn = Object.getOwnPropertyDe
|
|
|
505
505
|
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
506
506
|
B || !A || !A.__esModule ? ut(Q, "default", { value: A, enumerable: !0 }) : Q,
|
|
507
507
|
A
|
|
508
|
-
)),
|
|
508
|
+
)), UQ = Wn({
|
|
509
509
|
"../../node_modules/.pnpm/tsup@8.1.0_@microsoft+api-extractor@7.43.0_@types+node@20.14.5__@swc+core@1.5.29_postcss@8.4.38_typescript@5.4.5/node_modules/tsup/assets/esm_shims.js"() {
|
|
510
510
|
}
|
|
511
511
|
}), zn = Xn({
|
|
512
512
|
"../../node_modules/.pnpm/rfdc@1.4.1/node_modules/rfdc/index.js"(A, B) {
|
|
513
|
-
|
|
513
|
+
UQ(), B.exports = g;
|
|
514
514
|
function Q(C) {
|
|
515
515
|
return C instanceof Buffer ? Buffer.from(C) : new C.constructor(C.buffer.slice(), C.byteOffset, C.length);
|
|
516
516
|
}
|
|
517
517
|
function g(C) {
|
|
518
|
-
if (C = C || {}, C.circles)
|
|
519
|
-
return E(C);
|
|
518
|
+
if (C = C || {}, C.circles) return E(C);
|
|
520
519
|
const e = /* @__PURE__ */ new Map();
|
|
521
520
|
if (e.set(Date, (s) => new Date(s)), e.set(Map, (s, i) => new Map(t(Array.from(s), i))), e.set(Set, (s, i) => new Set(t(Array.from(s), i))), C.constructorHandlers)
|
|
522
521
|
for (const s of C.constructorHandlers)
|
|
@@ -526,32 +525,27 @@ var bn = Object.create, ut = Object.defineProperty, Tn = Object.getOwnPropertyDe
|
|
|
526
525
|
function t(s, i) {
|
|
527
526
|
const w = Object.keys(s), r = new Array(w.length);
|
|
528
527
|
for (let D = 0; D < w.length; D++) {
|
|
529
|
-
const a = w[D],
|
|
530
|
-
typeof
|
|
528
|
+
const a = w[D], u = s[a];
|
|
529
|
+
typeof u != "object" || u === null ? r[a] = u : u.constructor !== Object && (I = e.get(u.constructor)) ? r[a] = I(u, i) : ArrayBuffer.isView(u) ? r[a] = Q(u) : r[a] = i(u);
|
|
531
530
|
}
|
|
532
531
|
return r;
|
|
533
532
|
}
|
|
534
533
|
function o(s) {
|
|
535
|
-
if (typeof s != "object" || s === null)
|
|
536
|
-
|
|
537
|
-
if (Array.isArray(s))
|
|
538
|
-
return t(s, o);
|
|
534
|
+
if (typeof s != "object" || s === null) return s;
|
|
535
|
+
if (Array.isArray(s)) return t(s, o);
|
|
539
536
|
if (s.constructor !== Object && (I = e.get(s.constructor)))
|
|
540
537
|
return I(s, o);
|
|
541
538
|
const i = {};
|
|
542
539
|
for (const w in s) {
|
|
543
|
-
if (Object.hasOwnProperty.call(s, w) === !1)
|
|
544
|
-
continue;
|
|
540
|
+
if (Object.hasOwnProperty.call(s, w) === !1) continue;
|
|
545
541
|
const r = s[w];
|
|
546
542
|
typeof r != "object" || r === null ? i[w] = r : r.constructor !== Object && (I = e.get(r.constructor)) ? i[w] = I(r, o) : ArrayBuffer.isView(r) ? i[w] = Q(r) : i[w] = o(r);
|
|
547
543
|
}
|
|
548
544
|
return i;
|
|
549
545
|
}
|
|
550
546
|
function n(s) {
|
|
551
|
-
if (typeof s != "object" || s === null)
|
|
552
|
-
|
|
553
|
-
if (Array.isArray(s))
|
|
554
|
-
return t(s, n);
|
|
547
|
+
if (typeof s != "object" || s === null) return s;
|
|
548
|
+
if (Array.isArray(s)) return t(s, n);
|
|
555
549
|
if (s.constructor !== Object && (I = e.get(s.constructor)))
|
|
556
550
|
return I(s, n);
|
|
557
551
|
const i = {};
|
|
@@ -571,33 +565,30 @@ var bn = Object.create, ut = Object.defineProperty, Tn = Object.getOwnPropertyDe
|
|
|
571
565
|
return C.proto ? i : s;
|
|
572
566
|
function n(w, r) {
|
|
573
567
|
const D = Object.keys(w), a = new Array(D.length);
|
|
574
|
-
for (let
|
|
575
|
-
const
|
|
576
|
-
if (typeof
|
|
577
|
-
a[
|
|
578
|
-
else if (
|
|
579
|
-
a[
|
|
580
|
-
else if (ArrayBuffer.isView(
|
|
581
|
-
a[
|
|
568
|
+
for (let u = 0; u < D.length; u++) {
|
|
569
|
+
const M = D[u], c = w[M];
|
|
570
|
+
if (typeof c != "object" || c === null)
|
|
571
|
+
a[M] = c;
|
|
572
|
+
else if (c.constructor !== Object && (o = t.get(c.constructor)))
|
|
573
|
+
a[M] = o(c, r);
|
|
574
|
+
else if (ArrayBuffer.isView(c))
|
|
575
|
+
a[M] = Q(c);
|
|
582
576
|
else {
|
|
583
|
-
const
|
|
584
|
-
|
|
577
|
+
const l = e.indexOf(c);
|
|
578
|
+
l !== -1 ? a[M] = I[l] : a[M] = r(c);
|
|
585
579
|
}
|
|
586
580
|
}
|
|
587
581
|
return a;
|
|
588
582
|
}
|
|
589
583
|
function s(w) {
|
|
590
|
-
if (typeof w != "object" || w === null)
|
|
591
|
-
|
|
592
|
-
if (Array.isArray(w))
|
|
593
|
-
return n(w, s);
|
|
584
|
+
if (typeof w != "object" || w === null) return w;
|
|
585
|
+
if (Array.isArray(w)) return n(w, s);
|
|
594
586
|
if (w.constructor !== Object && (o = t.get(w.constructor)))
|
|
595
587
|
return o(w, s);
|
|
596
588
|
const r = {};
|
|
597
589
|
e.push(w), I.push(r);
|
|
598
590
|
for (const D in w) {
|
|
599
|
-
if (Object.hasOwnProperty.call(w, D) === !1)
|
|
600
|
-
continue;
|
|
591
|
+
if (Object.hasOwnProperty.call(w, D) === !1) continue;
|
|
601
592
|
const a = w[D];
|
|
602
593
|
if (typeof a != "object" || a === null)
|
|
603
594
|
r[D] = a;
|
|
@@ -606,17 +597,15 @@ var bn = Object.create, ut = Object.defineProperty, Tn = Object.getOwnPropertyDe
|
|
|
606
597
|
else if (ArrayBuffer.isView(a))
|
|
607
598
|
r[D] = Q(a);
|
|
608
599
|
else {
|
|
609
|
-
const
|
|
610
|
-
|
|
600
|
+
const u = e.indexOf(a);
|
|
601
|
+
u !== -1 ? r[D] = I[u] : r[D] = s(a);
|
|
611
602
|
}
|
|
612
603
|
}
|
|
613
604
|
return e.pop(), I.pop(), r;
|
|
614
605
|
}
|
|
615
606
|
function i(w) {
|
|
616
|
-
if (typeof w != "object" || w === null)
|
|
617
|
-
|
|
618
|
-
if (Array.isArray(w))
|
|
619
|
-
return n(w, i);
|
|
607
|
+
if (typeof w != "object" || w === null) return w;
|
|
608
|
+
if (Array.isArray(w)) return n(w, i);
|
|
620
609
|
if (w.constructor !== Object && (o = t.get(w.constructor)))
|
|
621
610
|
return o(w, i);
|
|
622
611
|
const r = {};
|
|
@@ -630,8 +619,8 @@ var bn = Object.create, ut = Object.defineProperty, Tn = Object.getOwnPropertyDe
|
|
|
630
619
|
else if (ArrayBuffer.isView(a))
|
|
631
620
|
r[D] = Q(a);
|
|
632
621
|
else {
|
|
633
|
-
const
|
|
634
|
-
|
|
622
|
+
const u = e.indexOf(a);
|
|
623
|
+
u !== -1 ? r[D] = I[u] : r[D] = i(a);
|
|
635
624
|
}
|
|
636
625
|
}
|
|
637
626
|
return e.pop(), I.pop(), r;
|
|
@@ -639,12 +628,12 @@ var bn = Object.create, ut = Object.defineProperty, Tn = Object.getOwnPropertyDe
|
|
|
639
628
|
}
|
|
640
629
|
}
|
|
641
630
|
});
|
|
642
|
-
|
|
643
|
-
|
|
631
|
+
UQ();
|
|
632
|
+
UQ();
|
|
644
633
|
var jn = typeof navigator < "u", Y = typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : typeof global < "u" ? global : {}, AE = typeof Y.chrome < "u" && !!Y.chrome.devtools;
|
|
645
634
|
jn && (Y.self, Y.top);
|
|
646
635
|
typeof navigator < "u" && navigator.userAgent.toLowerCase().includes("electron");
|
|
647
|
-
|
|
636
|
+
UQ();
|
|
648
637
|
var $n = Vn(zn(), 1), Ai = /(?:^|[-_/])(\w)/g;
|
|
649
638
|
function Bi(A, B) {
|
|
650
639
|
return B ? B.toUpperCase() : "";
|
|
@@ -670,7 +659,7 @@ function xC(A) {
|
|
|
670
659
|
function OC(A) {
|
|
671
660
|
return Array.isArray(A);
|
|
672
661
|
}
|
|
673
|
-
|
|
662
|
+
UQ();
|
|
674
663
|
function fE(A, B = {}, Q) {
|
|
675
664
|
for (const g in A) {
|
|
676
665
|
const E = A[g], C = Q ? `${Q}:${g}` : g;
|
|
@@ -802,7 +791,7 @@ function Mt() {
|
|
|
802
791
|
const oi = {
|
|
803
792
|
trailing: !0
|
|
804
793
|
};
|
|
805
|
-
function
|
|
794
|
+
function KQ(A, B = 25, Q = {}) {
|
|
806
795
|
if (Q = { ...oi, ...Q }, !Number.isFinite(B))
|
|
807
796
|
throw new TypeError("Expected `wait` to be a finite number");
|
|
808
797
|
let g, E, C = [], e, I;
|
|
@@ -2183,14 +2172,14 @@ var ni = Object.create, pt = Object.defineProperty, ii = Object.getOwnPropertyDe
|
|
|
2183
2172
|
"∑": "tong",
|
|
2184
2173
|
"¤": "tien te"
|
|
2185
2174
|
}
|
|
2186
|
-
}, t = [";", "?", ":", "@", "&", "=", "+", "$", ",", "/"].join(""), o = [";", "?", ":", "@", "&", "=", "+", "$", ","].join(""), n = [".", "!", "~", "*", "'", "(", ")"].join(""), s = function(a,
|
|
2187
|
-
var
|
|
2175
|
+
}, t = [";", "?", ":", "@", "&", "=", "+", "$", ",", "/"].join(""), o = [";", "?", ":", "@", "&", "=", "+", "$", ","].join(""), n = [".", "!", "~", "*", "'", "(", ")"].join(""), s = function(a, u) {
|
|
2176
|
+
var M = "-", c = "", l = "", d = !0, F = {}, S, J, W, m, H, P, G, R, _, X, T, dA, aA, GA, kA = "";
|
|
2188
2177
|
if (typeof a != "string")
|
|
2189
2178
|
return "";
|
|
2190
|
-
if (typeof
|
|
2191
|
-
S =
|
|
2179
|
+
if (typeof u == "string" && (M = u), G = I.en, R = e.en, typeof u == "object") {
|
|
2180
|
+
S = u.maintainCase || !1, F = u.custom && typeof u.custom == "object" ? u.custom : F, W = +u.truncate > 1 && u.truncate || !1, m = u.uric || !1, H = u.uricNoSlash || !1, P = u.mark || !1, d = !(u.symbols === !1 || u.lang === !1), M = u.separator || M, m && (kA += t), H && (kA += o), P && (kA += n), G = u.lang && I[u.lang] && d ? I[u.lang] : d ? I.en : {}, R = u.lang && e[u.lang] ? e[u.lang] : u.lang === !1 || u.lang === !0 ? {} : e.en, u.titleCase && typeof u.titleCase.length == "number" && Array.prototype.toString.call(u.titleCase) ? (u.titleCase.forEach(function(uA) {
|
|
2192
2181
|
F[uA + ""] = uA + "";
|
|
2193
|
-
}), J = !0) : J = !!
|
|
2182
|
+
}), J = !0) : J = !!u.titleCase, u.custom && typeof u.custom.length == "number" && Array.prototype.toString.call(u.custom) && u.custom.forEach(function(uA) {
|
|
2194
2183
|
F[uA + ""] = uA + "";
|
|
2195
2184
|
}), Object.keys(F).forEach(function(uA) {
|
|
2196
2185
|
var SA;
|
|
@@ -2199,21 +2188,21 @@ var ni = Object.create, pt = Object.defineProperty, ii = Object.getOwnPropertyDe
|
|
|
2199
2188
|
for (T in F)
|
|
2200
2189
|
kA += T;
|
|
2201
2190
|
}
|
|
2202
|
-
for (kA +=
|
|
2203
|
-
T = a[X], r(T, F) ? aA = !1 : R[T] ? (T = aA && R[T].match(/[A-Za-z0-9]/) ? " " + R[T] : R[T], aA = !1) : T in g ? (X + 1 <
|
|
2204
|
-
return J && (
|
|
2191
|
+
for (kA += M, kA = w(kA), a = a.replace(/(^\s+|\s+$)/g, ""), aA = !1, GA = !1, X = 0, dA = a.length; X < dA; X++)
|
|
2192
|
+
T = a[X], r(T, F) ? aA = !1 : R[T] ? (T = aA && R[T].match(/[A-Za-z0-9]/) ? " " + R[T] : R[T], aA = !1) : T in g ? (X + 1 < dA && E.indexOf(a[X + 1]) >= 0 ? (l += T, T = "") : GA === !0 ? (T = C[l] + g[T], l = "") : T = aA && g[T].match(/[A-Za-z0-9]/) ? " " + g[T] : g[T], aA = !1, GA = !1) : T in C ? (l += T, T = "", X === dA - 1 && (T = C[l]), GA = !0) : /* process symbol chars */ G[T] && !(m && t.indexOf(T) !== -1) && !(H && o.indexOf(T) !== -1) ? (T = aA || c.substr(-1).match(/[A-Za-z0-9]/) ? M + G[T] : G[T], T += a[X + 1] !== void 0 && a[X + 1].match(/[A-Za-z0-9]/) ? M : "", aA = !0) : (GA === !0 ? (T = C[l] + T, l = "", GA = !1) : aA && (/[A-Za-z0-9]/.test(T) || c.substr(-1).match(/A-Za-z0-9]/)) && (T = " " + T), aA = !1), c += T.replace(new RegExp("[^\\w\\s" + kA + "_-]", "g"), M);
|
|
2193
|
+
return J && (c = c.replace(/(\w)(\S*)/g, function(uA, SA, KB) {
|
|
2205
2194
|
var CB = SA.toUpperCase() + (KB !== null ? KB : "");
|
|
2206
2195
|
return Object.keys(F).indexOf(CB.toLowerCase()) < 0 ? CB : CB.toLowerCase();
|
|
2207
|
-
})),
|
|
2196
|
+
})), c = c.replace(/\s+/g, M).replace(new RegExp("\\" + M + "+", "g"), M).replace(new RegExp("(^\\" + M + "+|\\" + M + "+$)", "g"), ""), W && c.length > W && (_ = c.charAt(W) === M, c = c.slice(0, W), _ || (c = c.slice(0, c.lastIndexOf(M)))), !S && !J && (c = c.toLowerCase()), c;
|
|
2208
2197
|
}, i = function(a) {
|
|
2209
|
-
return function(
|
|
2210
|
-
return s(
|
|
2198
|
+
return function(M) {
|
|
2199
|
+
return s(M, a);
|
|
2211
2200
|
};
|
|
2212
2201
|
}, w = function(a) {
|
|
2213
2202
|
return a.replace(/[-\\^$*+?.()|[\]{}\/]/g, "\\$&");
|
|
2214
2203
|
}, r = function(D, a) {
|
|
2215
|
-
for (var
|
|
2216
|
-
if (a[
|
|
2204
|
+
for (var u in a)
|
|
2205
|
+
if (a[u] === D)
|
|
2217
2206
|
return !0;
|
|
2218
2207
|
};
|
|
2219
2208
|
if (typeof B < "u" && B.exports)
|
|
@@ -2291,9 +2280,9 @@ function Ft(A) {
|
|
|
2291
2280
|
function QE(A) {
|
|
2292
2281
|
return !!(A && A.__v_isRef === !0);
|
|
2293
2282
|
}
|
|
2294
|
-
function
|
|
2283
|
+
function QQ(A) {
|
|
2295
2284
|
const B = A && A.__v_raw;
|
|
2296
|
-
return B ?
|
|
2285
|
+
return B ? QQ(B) : A;
|
|
2297
2286
|
}
|
|
2298
2287
|
var pi = Symbol.for("v-fgt");
|
|
2299
2288
|
function fi(A) {
|
|
@@ -2377,9 +2366,9 @@ function yi() {
|
|
|
2377
2366
|
};
|
|
2378
2367
|
return A;
|
|
2379
2368
|
}
|
|
2380
|
-
var
|
|
2369
|
+
var qQ;
|
|
2381
2370
|
function Li(A) {
|
|
2382
|
-
return
|
|
2371
|
+
return qQ || (qQ = document.createRange()), qQ.selectNode(A), qQ.getBoundingClientRect();
|
|
2383
2372
|
}
|
|
2384
2373
|
function ki(A) {
|
|
2385
2374
|
const B = yi();
|
|
@@ -2511,7 +2500,7 @@ function GE(A) {
|
|
|
2511
2500
|
function mi(A, B) {
|
|
2512
2501
|
var Q;
|
|
2513
2502
|
if (A.preventDefault(), A.stopPropagation(), NE) {
|
|
2514
|
-
const g = (Q =
|
|
2503
|
+
const g = (Q = fA.value) == null ? void 0 : Q.app;
|
|
2515
2504
|
Ni({
|
|
2516
2505
|
app: g,
|
|
2517
2506
|
uid: g.uid,
|
|
@@ -2538,7 +2527,7 @@ function xi() {
|
|
|
2538
2527
|
});
|
|
2539
2528
|
}
|
|
2540
2529
|
function Oi(A) {
|
|
2541
|
-
const B = FE(
|
|
2530
|
+
const B = FE(fA.value, A.id);
|
|
2542
2531
|
if (B) {
|
|
2543
2532
|
const [Q] = eC(B);
|
|
2544
2533
|
if (typeof Q.scrollIntoView == "function")
|
|
@@ -2594,17 +2583,17 @@ function vi() {
|
|
|
2594
2583
|
}
|
|
2595
2584
|
var Qe, ge;
|
|
2596
2585
|
(ge = (Qe = Y)[uB]) != null || (Qe[uB] = vi());
|
|
2597
|
-
var bi =
|
|
2598
|
-
|
|
2586
|
+
var bi = KQ((A) => {
|
|
2587
|
+
YQ.hooks.callHook("devtoolsStateUpdated", { state: A });
|
|
2599
2588
|
});
|
|
2600
|
-
|
|
2601
|
-
|
|
2589
|
+
KQ((A, B) => {
|
|
2590
|
+
YQ.hooks.callHook("devtoolsConnectedUpdated", { state: A, oldState: B });
|
|
2602
2591
|
});
|
|
2603
2592
|
var Rg = new Proxy(Y.__VUE_DEVTOOLS_KIT_APP_RECORDS__, {
|
|
2604
2593
|
get(A, B, Q) {
|
|
2605
2594
|
return B === "value" ? Y.__VUE_DEVTOOLS_KIT_APP_RECORDS__ : Y.__VUE_DEVTOOLS_KIT_APP_RECORDS__[B];
|
|
2606
2595
|
}
|
|
2607
|
-
}),
|
|
2596
|
+
}), fA = new Proxy(Y.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__, {
|
|
2608
2597
|
get(A, B, Q) {
|
|
2609
2598
|
return B === "value" ? Y.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__ : B === "id" ? Y.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__ : Y.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__[B];
|
|
2610
2599
|
}
|
|
@@ -2613,7 +2602,7 @@ function Pt() {
|
|
|
2613
2602
|
bi({
|
|
2614
2603
|
...Y[uB],
|
|
2615
2604
|
appRecords: Rg.value,
|
|
2616
|
-
activeAppRecordId:
|
|
2605
|
+
activeAppRecordId: fA.id,
|
|
2617
2606
|
tabs: Y.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__,
|
|
2618
2607
|
commands: Y.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__
|
|
2619
2608
|
});
|
|
@@ -2626,7 +2615,7 @@ function qi(A) {
|
|
|
2626
2615
|
}
|
|
2627
2616
|
var Ut = new Proxy(Y[uB], {
|
|
2628
2617
|
get(A, B) {
|
|
2629
|
-
return B === "appRecords" ? Rg : B === "activeAppRecordId" ?
|
|
2618
|
+
return B === "appRecords" ? Rg : B === "activeAppRecordId" ? fA.id : B === "tabs" ? Y.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__ : B === "commands" ? Y.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__ : Y[uB][B];
|
|
2630
2619
|
},
|
|
2631
2620
|
deleteProperty(A, B) {
|
|
2632
2621
|
return delete A[B], !0;
|
|
@@ -2656,8 +2645,8 @@ var sC = new Proxy(Y.__VUE_DEVTOOLS_KIT_INSPECTOR__, {
|
|
|
2656
2645
|
get(A, B, Q) {
|
|
2657
2646
|
return Reflect.get(A, B, Q);
|
|
2658
2647
|
}
|
|
2659
|
-
}), Kt =
|
|
2660
|
-
|
|
2648
|
+
}), Kt = KQ(() => {
|
|
2649
|
+
YQ.hooks.callHook("sendInspectorToClient", Yt());
|
|
2661
2650
|
});
|
|
2662
2651
|
function Xi(A, B) {
|
|
2663
2652
|
sC.push({
|
|
@@ -2669,7 +2658,7 @@ function Xi(A, B) {
|
|
|
2669
2658
|
}), Kt();
|
|
2670
2659
|
}
|
|
2671
2660
|
function Yt() {
|
|
2672
|
-
return sC.filter((A) => A.descriptor.app ===
|
|
2661
|
+
return sC.filter((A) => A.descriptor.app === fA.value.app).filter((A) => A.descriptor.id !== "components").map((A) => {
|
|
2673
2662
|
var B;
|
|
2674
2663
|
const Q = A.descriptor, g = A.options;
|
|
2675
2664
|
return {
|
|
@@ -2768,7 +2757,7 @@ function Zi() {
|
|
|
2768
2757
|
const g = Q.id.toString();
|
|
2769
2758
|
return [...Q.instanceMap].filter(([C]) => C.split(":")[0] === g).map(([, C]) => C);
|
|
2770
2759
|
}), A.hook("getComponentBounds", async ({ instance: B }) => NB(B)), A.hook("getComponentName", ({ instance: B }) => Hg(B)), A.hook("componentHighlight", ({ uid: B }) => {
|
|
2771
|
-
const Q =
|
|
2760
|
+
const Q = fA.value.instanceMap.get(B);
|
|
2772
2761
|
Q && Si(Q);
|
|
2773
2762
|
}), A.hook("componentUnhighlight", () => {
|
|
2774
2763
|
Rt();
|
|
@@ -2808,9 +2797,9 @@ var Vi = class {
|
|
|
2808
2797
|
}
|
|
2809
2798
|
createDefaultSetCallback(A) {
|
|
2810
2799
|
return (B, Q, g) => {
|
|
2811
|
-
if ((A.remove || A.newKey) && (Array.isArray(B) ? B.splice(Q, 1) :
|
|
2800
|
+
if ((A.remove || A.newKey) && (Array.isArray(B) ? B.splice(Q, 1) : QQ(B) instanceof Map ? B.delete(Q) : QQ(B) instanceof Set ? B.delete(Array.from(B.values())[Q]) : Reflect.deleteProperty(B, Q)), !A.remove) {
|
|
2812
2801
|
const E = B[A.newKey || Q];
|
|
2813
|
-
this.refEditor.isRef(E) ? this.refEditor.set(E, g) :
|
|
2802
|
+
this.refEditor.isRef(E) ? this.refEditor.set(E, g) : QQ(B) instanceof Map ? B.set(A.newKey || Q, g) : QQ(B) instanceof Set ? B.add(g) : B[A.newKey || Q] = g;
|
|
2814
2803
|
}
|
|
2815
2804
|
};
|
|
2816
2805
|
}
|
|
@@ -2855,22 +2844,22 @@ function ji(A = {}) {
|
|
|
2855
2844
|
}
|
|
2856
2845
|
y();
|
|
2857
2846
|
y();
|
|
2858
|
-
var
|
|
2847
|
+
var iQ = "__VUE_DEVTOOLS_ROUTER__", bB = "__VUE_DEVTOOLS_ROUTER_INFO__", te, oe;
|
|
2859
2848
|
(oe = (te = Y)[bB]) != null || (te[bB] = {
|
|
2860
2849
|
currentRoute: null,
|
|
2861
2850
|
routes: []
|
|
2862
2851
|
});
|
|
2863
2852
|
var se, ne;
|
|
2864
|
-
(ne = (se = Y)[
|
|
2853
|
+
(ne = (se = Y)[iQ]) != null || (se[iQ] = {});
|
|
2865
2854
|
new Proxy(Y[bB], {
|
|
2866
2855
|
get(A, B) {
|
|
2867
2856
|
return Y[bB][B];
|
|
2868
2857
|
}
|
|
2869
2858
|
});
|
|
2870
|
-
new Proxy(Y[
|
|
2859
|
+
new Proxy(Y[iQ], {
|
|
2871
2860
|
get(A, B) {
|
|
2872
2861
|
if (B === "value")
|
|
2873
|
-
return Y[
|
|
2862
|
+
return Y[iQ];
|
|
2874
2863
|
}
|
|
2875
2864
|
});
|
|
2876
2865
|
function $i(A) {
|
|
@@ -2911,11 +2900,11 @@ function Bw(A, B) {
|
|
|
2911
2900
|
}, Y[bB] = {
|
|
2912
2901
|
currentRoute: C ? JC(C) : {},
|
|
2913
2902
|
routes: JC(e)
|
|
2914
|
-
}, Y[
|
|
2903
|
+
}, Y[iQ] = E, console.warn = I;
|
|
2915
2904
|
}
|
|
2916
|
-
Q(), di.on.componentUpdated(
|
|
2905
|
+
Q(), di.on.componentUpdated(KQ(() => {
|
|
2917
2906
|
var g;
|
|
2918
|
-
((g = B.value) == null ? void 0 : g.app) === A.app && (Q(),
|
|
2907
|
+
((g = B.value) == null ? void 0 : g.app) === A.app && (Q(), YQ.hooks.callHook("routerInfoUpdated", { state: Y[bB] }));
|
|
2919
2908
|
}, 200));
|
|
2920
2909
|
}
|
|
2921
2910
|
y();
|
|
@@ -3125,7 +3114,7 @@ function iw(A, B) {
|
|
|
3125
3114
|
setupFn: g,
|
|
3126
3115
|
descriptor: Q
|
|
3127
3116
|
},
|
|
3128
|
-
ctx:
|
|
3117
|
+
ctx: YQ
|
|
3129
3118
|
});
|
|
3130
3119
|
Q.packageName === "vuex" && E.on.editInspectorState((C) => {
|
|
3131
3120
|
E.sendInspectorState(C.inspectorId);
|
|
@@ -3142,7 +3131,7 @@ function Dw(A) {
|
|
|
3142
3131
|
async getInspectorTree(B) {
|
|
3143
3132
|
const Q = {
|
|
3144
3133
|
...B,
|
|
3145
|
-
app:
|
|
3134
|
+
app: fA.value.app,
|
|
3146
3135
|
rootNodes: []
|
|
3147
3136
|
};
|
|
3148
3137
|
return await new Promise((g) => {
|
|
@@ -3159,7 +3148,7 @@ function Dw(A) {
|
|
|
3159
3148
|
async getInspectorState(B) {
|
|
3160
3149
|
const Q = {
|
|
3161
3150
|
...B,
|
|
3162
|
-
app:
|
|
3151
|
+
app: fA.value.app,
|
|
3163
3152
|
state: null
|
|
3164
3153
|
}, g = {
|
|
3165
3154
|
currentTab: `custom-inspector:${B.inspectorId}`
|
|
@@ -3178,7 +3167,7 @@ function Dw(A) {
|
|
|
3178
3167
|
editInspectorState(B) {
|
|
3179
3168
|
const Q = new Vi(), g = {
|
|
3180
3169
|
...B,
|
|
3181
|
-
app:
|
|
3170
|
+
app: fA.value.app,
|
|
3182
3171
|
set: (E, C = B.path, e = B.state.value, I) => {
|
|
3183
3172
|
Q.set(E, C, e, I || Q.createDefaultSetCallback(B.state));
|
|
3184
3173
|
}
|
|
@@ -3209,7 +3198,7 @@ function Dw(A) {
|
|
|
3209
3198
|
},
|
|
3210
3199
|
// get component render code
|
|
3211
3200
|
getComponentRenderCode(B) {
|
|
3212
|
-
const Q = FE(
|
|
3201
|
+
const Q = FE(fA.value, B);
|
|
3213
3202
|
if (Q)
|
|
3214
3203
|
return (Q == null ? void 0 : Q.type) instanceof Function ? Q.type.toString() : Q.render.toString();
|
|
3215
3204
|
},
|
|
@@ -3224,11 +3213,11 @@ function Dw(A) {
|
|
|
3224
3213
|
// toggle app
|
|
3225
3214
|
toggleApp(B) {
|
|
3226
3215
|
const Q = Rg.value.find((g) => g.id === B);
|
|
3227
|
-
Q && (qi(B), Ti(Q), Bw(Q,
|
|
3216
|
+
Q && (qi(B), Ti(Q), Bw(Q, fA), Kt(), ww(Q.app));
|
|
3228
3217
|
},
|
|
3229
3218
|
// inspect dom
|
|
3230
3219
|
inspectDOM(B) {
|
|
3231
|
-
const Q = FE(
|
|
3220
|
+
const Q = FE(fA.value, B);
|
|
3232
3221
|
if (Q) {
|
|
3233
3222
|
const [g] = eC(Q);
|
|
3234
3223
|
g && (Y.__VUE_DEVTOOLS_INSPECT_DOM_TARGET__ = g);
|
|
@@ -3247,14 +3236,14 @@ var de = Zi(), Me, pe;
|
|
|
3247
3236
|
get state() {
|
|
3248
3237
|
return {
|
|
3249
3238
|
...Ut,
|
|
3250
|
-
activeAppRecordId:
|
|
3251
|
-
activeAppRecord:
|
|
3239
|
+
activeAppRecordId: fA.id,
|
|
3240
|
+
activeAppRecord: fA.value,
|
|
3252
3241
|
appRecords: Rg.value
|
|
3253
3242
|
};
|
|
3254
3243
|
},
|
|
3255
3244
|
api: Dw(de)
|
|
3256
3245
|
});
|
|
3257
|
-
var
|
|
3246
|
+
var YQ = Y.__VUE_DEVTOOLS_KIT_CONTEXT__;
|
|
3258
3247
|
y();
|
|
3259
3248
|
y();
|
|
3260
3249
|
ci(ui(), 1);
|
|
@@ -3365,9 +3354,9 @@ var uw = class {
|
|
|
3365
3354
|
};
|
|
3366
3355
|
y();
|
|
3367
3356
|
y();
|
|
3368
|
-
var hw = (A) => Object.prototype.toString.call(A).slice(8, -1), Ot = (A) => typeof A > "u", dw = (A) => A === null,
|
|
3357
|
+
var hw = (A) => Object.prototype.toString.call(A).slice(8, -1), Ot = (A) => typeof A > "u", dw = (A) => A === null, wQ = (A) => typeof A != "object" || A === null || A === Object.prototype ? !1 : Object.getPrototypeOf(A) === null ? !0 : Object.getPrototypeOf(A) === Object.prototype, yE = (A) => wQ(A) && Object.keys(A).length === 0, wB = (A) => Array.isArray(A), Mw = (A) => typeof A == "string", pw = (A) => typeof A == "number" && !isNaN(A), fw = (A) => typeof A == "boolean", Fw = (A) => A instanceof RegExp, DQ = (A) => A instanceof Map, rQ = (A) => A instanceof Set, vt = (A) => hw(A) === "Symbol", Nw = (A) => A instanceof Date && !isNaN(A.valueOf()), Gw = (A) => A instanceof Error, Ge = (A) => typeof A == "number" && isNaN(A), yw = (A) => fw(A) || dw(A) || Ot(A) || pw(A) || Mw(A) || vt(A), Lw = (A) => typeof A == "bigint", kw = (A) => A === 1 / 0 || A === -1 / 0, Hw = (A) => ArrayBuffer.isView(A) && !(A instanceof DataView), Rw = (A) => A instanceof URL;
|
|
3369
3358
|
y();
|
|
3370
|
-
var bt = (A) => A.replace(/\./g, "\\."), EE = (A) => A.map(String).map(bt).join("."),
|
|
3359
|
+
var bt = (A) => A.replace(/\./g, "\\."), EE = (A) => A.map(String).map(bt).join("."), EQ = (A) => {
|
|
3371
3360
|
const B = [];
|
|
3372
3361
|
let Q = "";
|
|
3373
3362
|
for (let E = 0; E < A.length; E++) {
|
|
@@ -3418,14 +3407,14 @@ var Tt = [
|
|
|
3418
3407
|
return new RegExp(B, Q);
|
|
3419
3408
|
}),
|
|
3420
3409
|
vA(
|
|
3421
|
-
|
|
3410
|
+
rQ,
|
|
3422
3411
|
"set",
|
|
3423
3412
|
// (sets only exist in es6+)
|
|
3424
3413
|
// eslint-disable-next-line es5/no-es6-methods
|
|
3425
3414
|
(A) => [...A.values()],
|
|
3426
3415
|
(A) => new Set(A)
|
|
3427
3416
|
),
|
|
3428
|
-
vA(
|
|
3417
|
+
vA(DQ, "map", (A) => [...A.entries()], (A) => new Map(A)),
|
|
3429
3418
|
vA((A) => Ge(A) || kw(A), "number", (A) => Ge(A) ? "NaN" : A > 0 ? "Infinity" : "-Infinity", Number),
|
|
3430
3419
|
vA((A) => A === 0 && 1 / A === -1 / 0, "number", () => "-0", Number),
|
|
3431
3420
|
vA(Rw, "URL", (A) => A.toString(), (A) => new URL(A))
|
|
@@ -3537,9 +3526,9 @@ var Yw = (A, B) => {
|
|
|
3537
3526
|
zt(B);
|
|
3538
3527
|
for (let Q = 0; Q < B.length; Q++) {
|
|
3539
3528
|
const g = B[Q];
|
|
3540
|
-
if (
|
|
3529
|
+
if (rQ(A))
|
|
3541
3530
|
A = SB(A, +g);
|
|
3542
|
-
else if (
|
|
3531
|
+
else if (DQ(A)) {
|
|
3543
3532
|
const E = +g, C = +B[++Q] == 0 ? "key" : "value", e = SB(A, E);
|
|
3544
3533
|
switch (C) {
|
|
3545
3534
|
case "key":
|
|
@@ -3562,12 +3551,12 @@ var Yw = (A, B) => {
|
|
|
3562
3551
|
if (wB(g)) {
|
|
3563
3552
|
const I = +e;
|
|
3564
3553
|
g = g[I];
|
|
3565
|
-
} else if (
|
|
3554
|
+
} else if (wQ(g))
|
|
3566
3555
|
g = g[e];
|
|
3567
|
-
else if (
|
|
3556
|
+
else if (rQ(g)) {
|
|
3568
3557
|
const I = +e;
|
|
3569
3558
|
g = SB(g, I);
|
|
3570
|
-
} else if (
|
|
3559
|
+
} else if (DQ(g)) {
|
|
3571
3560
|
if (C === B.length - 2)
|
|
3572
3561
|
break;
|
|
3573
3562
|
const t = +e, o = +B[++C] == 0 ? "key" : "value", n = SB(g, t);
|
|
@@ -3582,11 +3571,11 @@ var Yw = (A, B) => {
|
|
|
3582
3571
|
}
|
|
3583
3572
|
}
|
|
3584
3573
|
const E = B[B.length - 1];
|
|
3585
|
-
if (wB(g) ? g[+E] = Q(g[+E]) :
|
|
3574
|
+
if (wB(g) ? g[+E] = Q(g[+E]) : wQ(g) && (g[E] = Q(g[E])), rQ(g)) {
|
|
3586
3575
|
const C = SB(g, +E), e = Q(C);
|
|
3587
3576
|
C !== e && (g.delete(C), g.add(e));
|
|
3588
3577
|
}
|
|
3589
|
-
if (
|
|
3578
|
+
if (DQ(g)) {
|
|
3590
3579
|
const C = +B[B.length - 2], e = SB(g, C);
|
|
3591
3580
|
switch (+E == 0 ? "key" : "value") {
|
|
3592
3581
|
case "key": {
|
|
@@ -3606,12 +3595,12 @@ function kE(A, B, Q = []) {
|
|
|
3606
3595
|
if (!A)
|
|
3607
3596
|
return;
|
|
3608
3597
|
if (!wB(A)) {
|
|
3609
|
-
TB(A, (C, e) => kE(C, B, [...Q, ...
|
|
3598
|
+
TB(A, (C, e) => kE(C, B, [...Q, ...EQ(e)]));
|
|
3610
3599
|
return;
|
|
3611
3600
|
}
|
|
3612
3601
|
const [g, E] = A;
|
|
3613
3602
|
E && TB(E, (C, e) => {
|
|
3614
|
-
kE(C, B, [...Q, ...
|
|
3603
|
+
kE(C, B, [...Q, ...EQ(e)]);
|
|
3615
3604
|
}), B(g, Q);
|
|
3616
3605
|
}
|
|
3617
3606
|
function Sw(A, B, Q) {
|
|
@@ -3621,21 +3610,21 @@ function Sw(A, B, Q) {
|
|
|
3621
3610
|
}
|
|
3622
3611
|
function mw(A, B) {
|
|
3623
3612
|
function Q(g, E) {
|
|
3624
|
-
const C = Yw(A,
|
|
3625
|
-
g.map(
|
|
3613
|
+
const C = Yw(A, EQ(E));
|
|
3614
|
+
g.map(EQ).forEach((e) => {
|
|
3626
3615
|
A = LE(A, e, () => C);
|
|
3627
3616
|
});
|
|
3628
3617
|
}
|
|
3629
3618
|
if (wB(B)) {
|
|
3630
3619
|
const [g, E] = B;
|
|
3631
3620
|
g.forEach((C) => {
|
|
3632
|
-
A = LE(A,
|
|
3621
|
+
A = LE(A, EQ(C), () => A);
|
|
3633
3622
|
}), E && TB(E, Q);
|
|
3634
3623
|
} else
|
|
3635
3624
|
TB(B, Q);
|
|
3636
3625
|
return A;
|
|
3637
3626
|
}
|
|
3638
|
-
var Jw = (A, B) =>
|
|
3627
|
+
var Jw = (A, B) => wQ(A) || wB(A) || DQ(A) || rQ(A) || Wt(A, B);
|
|
3639
3628
|
function xw(A, B, Q) {
|
|
3640
3629
|
const g = Q.get(A);
|
|
3641
3630
|
g ? g.push(B) : Q.set(A, [B]);
|
|
@@ -3680,8 +3669,8 @@ var jt = (A, B, Q, g, E = [], C = [], e = /* @__PURE__ */ new Map()) => {
|
|
|
3680
3669
|
if (D === "__proto__" || D === "constructor" || D === "prototype")
|
|
3681
3670
|
throw new Error(`Detected property ${D}. This is a prototype pollution risk, please remove it from your object.`);
|
|
3682
3671
|
const a = jt(r, B, Q, g, [...E, D], [...C, A], e);
|
|
3683
|
-
s[D] = a.transformedValue, wB(a.annotations) ? i[D] = a.annotations :
|
|
3684
|
-
i[bt(D) + "." +
|
|
3672
|
+
s[D] = a.transformedValue, wB(a.annotations) ? i[D] = a.annotations : wQ(a.annotations) && TB(a.annotations, (u, M) => {
|
|
3673
|
+
i[bt(D) + "." + M] = u;
|
|
3685
3674
|
});
|
|
3686
3675
|
});
|
|
3687
3676
|
const w = yE(i) ? {
|
|
@@ -3863,7 +3852,7 @@ function mg(A) {
|
|
|
3863
3852
|
return Number.NaN;
|
|
3864
3853
|
if (A && A._custom) {
|
|
3865
3854
|
const { _custom: B } = A;
|
|
3866
|
-
return B.type === "component" ?
|
|
3855
|
+
return B.type === "component" ? fA.value.instanceMap.get(B.id) : B.type === "map" ? Xw(A) : B.type === "set" ? Ww(A) : B.type === "bigint" ? BigInt(B.value) : mg(B.value);
|
|
3867
3856
|
} else if (ae.test(A)) {
|
|
3868
3857
|
const [, B] = ae.exec(A);
|
|
3869
3858
|
return Symbol.for(B);
|
|
@@ -3897,14 +3886,14 @@ function ve(A, B = null) {
|
|
|
3897
3886
|
return arguments.length === 1 ? JSON.parse(A) : JSON.parse(A, B);
|
|
3898
3887
|
}
|
|
3899
3888
|
y();
|
|
3900
|
-
function
|
|
3889
|
+
function aQ(A, B = !0) {
|
|
3901
3890
|
const Q = typeof A;
|
|
3902
3891
|
if (A == null || A === Pg || A === "undefined")
|
|
3903
3892
|
return "null";
|
|
3904
3893
|
if (Q === "boolean" || Q === "number" || A === Ug || A === Kg || A === Yg)
|
|
3905
3894
|
return "literal";
|
|
3906
3895
|
if (A != null && A._custom)
|
|
3907
|
-
return B || A._custom.display != null || A._custom.displayText != null ? "custom" :
|
|
3896
|
+
return B || A._custom.display != null || A._custom.displayText != null ? "custom" : aQ(A._custom.value);
|
|
3908
3897
|
if (typeof A == "string") {
|
|
3909
3898
|
const g = og.exec(A);
|
|
3910
3899
|
if (g) {
|
|
@@ -3912,14 +3901,13 @@ function rQ(A, B = !0) {
|
|
|
3912
3901
|
return `native ${E}`;
|
|
3913
3902
|
} else
|
|
3914
3903
|
return "string";
|
|
3915
|
-
} else
|
|
3916
|
-
return Array.isArray(A) || A != null && A._isArray ? "array" : mt(A) ? "plain-object" : "unknown";
|
|
3904
|
+
} else return Array.isArray(A) || A != null && A._isArray ? "array" : mt(A) ? "plain-object" : "unknown";
|
|
3917
3905
|
}
|
|
3918
3906
|
function Bo(A, B = !1, Q) {
|
|
3919
3907
|
var g, E, C;
|
|
3920
3908
|
const { customClass: e } = Q ?? {};
|
|
3921
3909
|
let I;
|
|
3922
|
-
const t =
|
|
3910
|
+
const t = aQ(A, !1);
|
|
3923
3911
|
if (t !== "custom" && (A != null && A._custom) && (A = A._custom.value), I = ow(A))
|
|
3924
3912
|
return I;
|
|
3925
3913
|
if (t === "custom")
|
|
@@ -3942,7 +3930,7 @@ function zB(A) {
|
|
|
3942
3930
|
function iC(A) {
|
|
3943
3931
|
var B, Q, g;
|
|
3944
3932
|
let E;
|
|
3945
|
-
const C =
|
|
3933
|
+
const C = aQ(A) === "custom";
|
|
3946
3934
|
let e = {};
|
|
3947
3935
|
if (C) {
|
|
3948
3936
|
const I = A, t = (B = I._custom) == null ? void 0 : B.value, o = (Q = I._custom) == null ? void 0 : Q.type, n = typeof t == "object" && t !== null && "_custom" in t ? iC(t) : { inherit: void 0, value: void 0, customType: void 0 };
|
|
@@ -4143,7 +4131,7 @@ new Proxy({
|
|
|
4143
4131
|
const QD = { class: "flex gap3" }, gD = ["onClick"], xg = /* @__PURE__ */ z({
|
|
4144
4132
|
__name: "Navbar",
|
|
4145
4133
|
setup(A) {
|
|
4146
|
-
const { routes: B, currentRoute: Q } = Mn(), g =
|
|
4134
|
+
const { routes: B, currentRoute: Q } = Mn(), g = RQ();
|
|
4147
4135
|
return (E, C) => (f(), L("ul", QD, [
|
|
4148
4136
|
(f(!0), L(FA, null, AB(N(B), (e, I) => (f(), L("li", {
|
|
4149
4137
|
key: I,
|
|
@@ -4170,7 +4158,7 @@ const QD = { class: "flex gap3" }, gD = ["onClick"], xg = /* @__PURE__ */ z({
|
|
|
4170
4158
|
docLink: {}
|
|
4171
4159
|
},
|
|
4172
4160
|
setup(A) {
|
|
4173
|
-
const B =
|
|
4161
|
+
const B = RQ();
|
|
4174
4162
|
return (Q, g) => (f(), L("div", ED, [
|
|
4175
4163
|
p("div", null, [
|
|
4176
4164
|
gA(Q.$slots, "default", {}, () => [
|
|
@@ -4203,7 +4191,7 @@ function DD(A, B) {
|
|
|
4203
4191
|
])
|
|
4204
4192
|
]);
|
|
4205
4193
|
}
|
|
4206
|
-
const
|
|
4194
|
+
const cQ = /* @__PURE__ */ kB(nD, [["render", DD]]), rD = ["top", "right", "bottom", "left"], be = ["start", "end"], Te = /* @__PURE__ */ rD.reduce((A, B) => A.concat(B, B + "-" + be[0], B + "-" + be[1]), []), lQ = Math.min, cB = Math.max, aD = {
|
|
4207
4195
|
left: "right",
|
|
4208
4196
|
right: "left",
|
|
4209
4197
|
bottom: "top",
|
|
@@ -4213,7 +4201,7 @@ const aQ = /* @__PURE__ */ kB(nD, [["render", DD]]), rD = ["top", "right", "bott
|
|
|
4213
4201
|
end: "start"
|
|
4214
4202
|
};
|
|
4215
4203
|
function PE(A, B, Q) {
|
|
4216
|
-
return cB(A,
|
|
4204
|
+
return cB(A, lQ(B, Q));
|
|
4217
4205
|
}
|
|
4218
4206
|
function HB(A, B) {
|
|
4219
4207
|
return typeof A == "function" ? A(B) : A;
|
|
@@ -4230,11 +4218,11 @@ function Eo(A) {
|
|
|
4230
4218
|
function wC(A) {
|
|
4231
4219
|
return A === "y" ? "height" : "width";
|
|
4232
4220
|
}
|
|
4233
|
-
function
|
|
4221
|
+
function SQ(A) {
|
|
4234
4222
|
return ["top", "bottom"].includes(WA(A)) ? "y" : "x";
|
|
4235
4223
|
}
|
|
4236
4224
|
function DC(A) {
|
|
4237
|
-
return Eo(
|
|
4225
|
+
return Eo(SQ(A));
|
|
4238
4226
|
}
|
|
4239
4227
|
function Co(A, B, Q) {
|
|
4240
4228
|
Q === void 0 && (Q = !1);
|
|
@@ -4287,7 +4275,7 @@ function eo(A) {
|
|
|
4287
4275
|
left: A
|
|
4288
4276
|
};
|
|
4289
4277
|
}
|
|
4290
|
-
function
|
|
4278
|
+
function CQ(A) {
|
|
4291
4279
|
return {
|
|
4292
4280
|
...A,
|
|
4293
4281
|
top: A.y,
|
|
@@ -4301,7 +4289,7 @@ function qe(A, B, Q) {
|
|
|
4301
4289
|
reference: g,
|
|
4302
4290
|
floating: E
|
|
4303
4291
|
} = A;
|
|
4304
|
-
const C =
|
|
4292
|
+
const C = SQ(B), e = DC(B), I = wC(e), t = WA(B), o = C === "y", n = g.x + g.width / 2 - E.width / 2, s = g.y + g.height / 2 - E.height / 2, i = g[I] / 2 - E[I] / 2;
|
|
4305
4293
|
let w;
|
|
4306
4294
|
switch (t) {
|
|
4307
4295
|
case "top":
|
|
@@ -4362,13 +4350,13 @@ const MD = async (A, B, Q) => {
|
|
|
4362
4350
|
for (let D = 0; D < I.length; D++) {
|
|
4363
4351
|
const {
|
|
4364
4352
|
name: a,
|
|
4365
|
-
fn:
|
|
4353
|
+
fn: u
|
|
4366
4354
|
} = I[D], {
|
|
4367
|
-
x:
|
|
4368
|
-
y:
|
|
4369
|
-
data:
|
|
4370
|
-
reset:
|
|
4371
|
-
} = await
|
|
4355
|
+
x: M,
|
|
4356
|
+
y: c,
|
|
4357
|
+
data: l,
|
|
4358
|
+
reset: d
|
|
4359
|
+
} = await u({
|
|
4372
4360
|
x: n,
|
|
4373
4361
|
y: s,
|
|
4374
4362
|
initialPlacement: g,
|
|
@@ -4382,18 +4370,18 @@ const MD = async (A, B, Q) => {
|
|
|
4382
4370
|
floating: B
|
|
4383
4371
|
}
|
|
4384
4372
|
});
|
|
4385
|
-
if (n =
|
|
4373
|
+
if (n = M ?? n, s = c ?? s, w = {
|
|
4386
4374
|
...w,
|
|
4387
4375
|
[a]: {
|
|
4388
4376
|
...w[a],
|
|
4389
|
-
...
|
|
4377
|
+
...l
|
|
4390
4378
|
}
|
|
4391
|
-
},
|
|
4392
|
-
r++, typeof
|
|
4379
|
+
}, d && r <= 50) {
|
|
4380
|
+
r++, typeof d == "object" && (d.placement && (i = d.placement), d.rects && (o = d.rects === !0 ? await e.getElementRects({
|
|
4393
4381
|
reference: A,
|
|
4394
4382
|
floating: B,
|
|
4395
4383
|
strategy: E
|
|
4396
|
-
}) :
|
|
4384
|
+
}) : d.rects), {
|
|
4397
4385
|
x: n,
|
|
4398
4386
|
y: s
|
|
4399
4387
|
} = qe(o, i, t)), D = -1;
|
|
@@ -4424,31 +4412,31 @@ async function vg(A, B) {
|
|
|
4424
4412
|
elementContext: s = "floating",
|
|
4425
4413
|
altBoundary: i = !1,
|
|
4426
4414
|
padding: w = 0
|
|
4427
|
-
} = HB(B, A), r = eo(w), a = I[i ? s === "floating" ? "reference" : "floating" : s],
|
|
4415
|
+
} = HB(B, A), r = eo(w), a = I[i ? s === "floating" ? "reference" : "floating" : s], u = CQ(await C.getClippingRect({
|
|
4428
4416
|
element: (Q = await (C.isElement == null ? void 0 : C.isElement(a))) == null || Q ? a : a.contextElement || await (C.getDocumentElement == null ? void 0 : C.getDocumentElement(I.floating)),
|
|
4429
4417
|
boundary: o,
|
|
4430
4418
|
rootBoundary: n,
|
|
4431
4419
|
strategy: t
|
|
4432
|
-
})),
|
|
4420
|
+
})), M = s === "floating" ? {
|
|
4433
4421
|
...e.floating,
|
|
4434
4422
|
x: g,
|
|
4435
4423
|
y: E
|
|
4436
|
-
} : e.reference,
|
|
4424
|
+
} : e.reference, c = await (C.getOffsetParent == null ? void 0 : C.getOffsetParent(I.floating)), l = await (C.isElement == null ? void 0 : C.isElement(c)) ? await (C.getScale == null ? void 0 : C.getScale(c)) || {
|
|
4437
4425
|
x: 1,
|
|
4438
4426
|
y: 1
|
|
4439
4427
|
} : {
|
|
4440
4428
|
x: 1,
|
|
4441
4429
|
y: 1
|
|
4442
|
-
},
|
|
4443
|
-
rect:
|
|
4444
|
-
offsetParent:
|
|
4430
|
+
}, d = CQ(C.convertOffsetParentRelativeRectToViewportRelativeRect ? await C.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
4431
|
+
rect: M,
|
|
4432
|
+
offsetParent: c,
|
|
4445
4433
|
strategy: t
|
|
4446
|
-
}) :
|
|
4434
|
+
}) : M);
|
|
4447
4435
|
return {
|
|
4448
|
-
top: (
|
|
4449
|
-
bottom: (
|
|
4450
|
-
left: (
|
|
4451
|
-
right: (
|
|
4436
|
+
top: (u.top - d.top + r.top) / l.y,
|
|
4437
|
+
bottom: (d.bottom - u.bottom + r.bottom) / l.y,
|
|
4438
|
+
left: (u.left - d.left + r.left) / l.x,
|
|
4439
|
+
right: (d.right - u.right + r.right) / l.x
|
|
4452
4440
|
};
|
|
4453
4441
|
}
|
|
4454
4442
|
const pD = (A) => ({
|
|
@@ -4471,10 +4459,10 @@ const pD = (A) => ({
|
|
|
4471
4459
|
const n = eo(o), s = {
|
|
4472
4460
|
x: Q,
|
|
4473
4461
|
y: g
|
|
4474
|
-
}, i = DC(E), w = wC(i), r = await e.getDimensions(t), D = i === "y", a = D ? "top" : "left",
|
|
4475
|
-
let F =
|
|
4476
|
-
(!F || !await (e.isElement == null ? void 0 : e.isElement(
|
|
4477
|
-
const S =
|
|
4462
|
+
}, i = DC(E), w = wC(i), r = await e.getDimensions(t), D = i === "y", a = D ? "top" : "left", u = D ? "bottom" : "right", M = D ? "clientHeight" : "clientWidth", c = C.reference[w] + C.reference[i] - s[i] - C.floating[w], l = s[i] - C.reference[i], d = await (e.getOffsetParent == null ? void 0 : e.getOffsetParent(t));
|
|
4463
|
+
let F = d ? d[M] : 0;
|
|
4464
|
+
(!F || !await (e.isElement == null ? void 0 : e.isElement(d))) && (F = I.floating[M] || C.floating[w]);
|
|
4465
|
+
const S = c / 2 - l / 2, J = F / 2 - r[w] / 2 - 1, W = lQ(n[a], J), m = lQ(n[u], J), H = W, P = F - r[w] - m, G = F / 2 - r[w] / 2 + S, R = PE(H, G, P), X = xA(E) != null && G != R && C.reference[w] / 2 - (G < H ? W : m) - r[w] / 2 < 0 ? G < H ? H - G : P - G : 0;
|
|
4478
4466
|
return {
|
|
4479
4467
|
[i]: s[i] - X,
|
|
4480
4468
|
data: {
|
|
@@ -4505,31 +4493,31 @@ const FD = function(A) {
|
|
|
4505
4493
|
allowedPlacements: i = Te,
|
|
4506
4494
|
autoAlignment: w = !0,
|
|
4507
4495
|
...r
|
|
4508
|
-
} = HB(A, B), D = s !== void 0 || i === Te ? fD(s || null, w, i) : i, a = await vg(B, r),
|
|
4509
|
-
if (
|
|
4496
|
+
} = HB(A, B), D = s !== void 0 || i === Te ? fD(s || null, w, i) : i, a = await vg(B, r), u = ((Q = e.autoPlacement) == null ? void 0 : Q.index) || 0, M = D[u];
|
|
4497
|
+
if (M == null)
|
|
4510
4498
|
return {};
|
|
4511
|
-
const
|
|
4512
|
-
if (I !==
|
|
4499
|
+
const c = Co(M, C, await (t.isRTL == null ? void 0 : t.isRTL(o.floating)));
|
|
4500
|
+
if (I !== M)
|
|
4513
4501
|
return {
|
|
4514
4502
|
reset: {
|
|
4515
4503
|
placement: D[0]
|
|
4516
4504
|
}
|
|
4517
4505
|
};
|
|
4518
|
-
const
|
|
4519
|
-
placement:
|
|
4520
|
-
overflows:
|
|
4521
|
-
}], F = D[
|
|
4506
|
+
const l = [a[WA(M)], a[c[0]], a[c[1]]], d = [...((g = e.autoPlacement) == null ? void 0 : g.overflows) || [], {
|
|
4507
|
+
placement: M,
|
|
4508
|
+
overflows: l
|
|
4509
|
+
}], F = D[u + 1];
|
|
4522
4510
|
if (F)
|
|
4523
4511
|
return {
|
|
4524
4512
|
data: {
|
|
4525
|
-
index:
|
|
4526
|
-
overflows:
|
|
4513
|
+
index: u + 1,
|
|
4514
|
+
overflows: d
|
|
4527
4515
|
},
|
|
4528
4516
|
reset: {
|
|
4529
4517
|
placement: F
|
|
4530
4518
|
}
|
|
4531
4519
|
};
|
|
4532
|
-
const S =
|
|
4520
|
+
const S = d.map((m) => {
|
|
4533
4521
|
const H = xA(m.placement);
|
|
4534
4522
|
return [m.placement, H && n ? (
|
|
4535
4523
|
// Check along the mainAxis and main crossAxis side.
|
|
@@ -4546,8 +4534,8 @@ const FD = function(A) {
|
|
|
4546
4534
|
).every((H) => H <= 0))[0]) == null ? void 0 : E[0]) || S[0][0];
|
|
4547
4535
|
return W !== I ? {
|
|
4548
4536
|
data: {
|
|
4549
|
-
index:
|
|
4550
|
-
overflows:
|
|
4537
|
+
index: u + 1,
|
|
4538
|
+
overflows: d
|
|
4551
4539
|
},
|
|
4552
4540
|
reset: {
|
|
4553
4541
|
placement: W
|
|
@@ -4576,20 +4564,20 @@ const FD = function(A) {
|
|
|
4576
4564
|
fallbackAxisSideDirection: w = "none",
|
|
4577
4565
|
flipAlignment: r = !0,
|
|
4578
4566
|
...D
|
|
4579
|
-
} = HB(A, B), a = WA(g),
|
|
4580
|
-
!s && w !== "none" &&
|
|
4581
|
-
const
|
|
4567
|
+
} = HB(A, B), a = WA(g), u = WA(e) === e, M = await (I.isRTL == null ? void 0 : I.isRTL(t.floating)), c = s || (u || !r ? [ig(e)] : lD(e));
|
|
4568
|
+
!s && w !== "none" && c.push(...hD(e, r, w, M));
|
|
4569
|
+
const l = [e, ...c], d = await vg(B, D), F = [];
|
|
4582
4570
|
let S = ((Q = E.flip) == null ? void 0 : Q.overflows) || [];
|
|
4583
|
-
if (o && F.push(
|
|
4584
|
-
const H = Co(g, C,
|
|
4585
|
-
F.push(
|
|
4571
|
+
if (o && F.push(d[a]), n) {
|
|
4572
|
+
const H = Co(g, C, M);
|
|
4573
|
+
F.push(d[H[0]], d[H[1]]);
|
|
4586
4574
|
}
|
|
4587
4575
|
if (S = [...S, {
|
|
4588
4576
|
placement: g,
|
|
4589
4577
|
overflows: F
|
|
4590
4578
|
}], !F.every((H) => H <= 0)) {
|
|
4591
4579
|
var J, W;
|
|
4592
|
-
const H = (((J = E.flip) == null ? void 0 : J.index) || 0) + 1, P =
|
|
4580
|
+
const H = (((J = E.flip) == null ? void 0 : J.index) || 0) + 1, P = l[H];
|
|
4593
4581
|
if (P)
|
|
4594
4582
|
return {
|
|
4595
4583
|
data: {
|
|
@@ -4629,7 +4617,7 @@ async function GD(A, B) {
|
|
|
4629
4617
|
placement: Q,
|
|
4630
4618
|
platform: g,
|
|
4631
4619
|
elements: E
|
|
4632
|
-
} = A, C = await (g.isRTL == null ? void 0 : g.isRTL(E.floating)), e = WA(Q), I = xA(Q), t =
|
|
4620
|
+
} = A, C = await (g.isRTL == null ? void 0 : g.isRTL(E.floating)), e = WA(Q), I = xA(Q), t = SQ(Q) === "y", o = ["left", "top"].includes(e) ? -1 : 1, n = C && t ? -1 : 1, s = HB(B, A);
|
|
4633
4621
|
let {
|
|
4634
4622
|
mainAxis: i,
|
|
4635
4623
|
crossAxis: w,
|
|
@@ -4683,12 +4671,12 @@ const yD = function(A) {
|
|
|
4683
4671
|
limiter: I = {
|
|
4684
4672
|
fn: (a) => {
|
|
4685
4673
|
let {
|
|
4686
|
-
x:
|
|
4687
|
-
y:
|
|
4674
|
+
x: u,
|
|
4675
|
+
y: M
|
|
4688
4676
|
} = a;
|
|
4689
4677
|
return {
|
|
4690
|
-
x:
|
|
4691
|
-
y:
|
|
4678
|
+
x: u,
|
|
4679
|
+
y: M
|
|
4692
4680
|
};
|
|
4693
4681
|
}
|
|
4694
4682
|
},
|
|
@@ -4696,15 +4684,15 @@ const yD = function(A) {
|
|
|
4696
4684
|
} = HB(A, B), o = {
|
|
4697
4685
|
x: Q,
|
|
4698
4686
|
y: g
|
|
4699
|
-
}, n = await vg(B, t), s =
|
|
4687
|
+
}, n = await vg(B, t), s = SQ(WA(E)), i = Eo(s);
|
|
4700
4688
|
let w = o[i], r = o[s];
|
|
4701
4689
|
if (C) {
|
|
4702
|
-
const a = i === "y" ? "top" : "left",
|
|
4703
|
-
w = PE(
|
|
4690
|
+
const a = i === "y" ? "top" : "left", u = i === "y" ? "bottom" : "right", M = w + n[a], c = w - n[u];
|
|
4691
|
+
w = PE(M, w, c);
|
|
4704
4692
|
}
|
|
4705
4693
|
if (e) {
|
|
4706
|
-
const a = s === "y" ? "top" : "left",
|
|
4707
|
-
r = PE(
|
|
4694
|
+
const a = s === "y" ? "top" : "left", u = s === "y" ? "bottom" : "right", M = r + n[a], c = r - n[u];
|
|
4695
|
+
r = PE(M, r, c);
|
|
4708
4696
|
}
|
|
4709
4697
|
const D = I.fn({
|
|
4710
4698
|
...B,
|
|
@@ -4734,32 +4722,32 @@ const yD = function(A) {
|
|
|
4734
4722
|
apply: e = () => {
|
|
4735
4723
|
},
|
|
4736
4724
|
...I
|
|
4737
|
-
} = HB(A, B), t = await vg(B, I), o = WA(Q), n = xA(Q), s =
|
|
4725
|
+
} = HB(A, B), t = await vg(B, I), o = WA(Q), n = xA(Q), s = SQ(Q) === "y", {
|
|
4738
4726
|
width: i,
|
|
4739
4727
|
height: w
|
|
4740
4728
|
} = g.floating;
|
|
4741
4729
|
let r, D;
|
|
4742
4730
|
o === "top" || o === "bottom" ? (r = o, D = n === (await (E.isRTL == null ? void 0 : E.isRTL(C.floating)) ? "start" : "end") ? "left" : "right") : (D = o, r = n === "end" ? "top" : "bottom");
|
|
4743
|
-
const a = w - t[r],
|
|
4744
|
-
let
|
|
4731
|
+
const a = w - t[r], u = i - t[D], M = !B.middlewareData.shift;
|
|
4732
|
+
let c = a, l = u;
|
|
4745
4733
|
if (s) {
|
|
4746
4734
|
const F = i - t.left - t.right;
|
|
4747
|
-
|
|
4735
|
+
l = n || M ? lQ(u, F) : F;
|
|
4748
4736
|
} else {
|
|
4749
4737
|
const F = w - t.top - t.bottom;
|
|
4750
|
-
|
|
4738
|
+
c = n || M ? lQ(a, F) : F;
|
|
4751
4739
|
}
|
|
4752
|
-
if (
|
|
4740
|
+
if (M && !n) {
|
|
4753
4741
|
const F = cB(t.left, 0), S = cB(t.right, 0), J = cB(t.top, 0), W = cB(t.bottom, 0);
|
|
4754
|
-
s ?
|
|
4742
|
+
s ? l = i - 2 * (F !== 0 || S !== 0 ? F + S : cB(t.left, t.right)) : c = w - 2 * (J !== 0 || W !== 0 ? J + W : cB(t.top, t.bottom));
|
|
4755
4743
|
}
|
|
4756
4744
|
await e({
|
|
4757
4745
|
...B,
|
|
4758
|
-
availableWidth:
|
|
4759
|
-
availableHeight:
|
|
4746
|
+
availableWidth: l,
|
|
4747
|
+
availableHeight: c
|
|
4760
4748
|
});
|
|
4761
|
-
const
|
|
4762
|
-
return i !==
|
|
4749
|
+
const d = await E.getDimensions(C.floating);
|
|
4750
|
+
return i !== d.width || w !== d.height ? {
|
|
4763
4751
|
reset: {
|
|
4764
4752
|
rects: !0
|
|
4765
4753
|
}
|
|
@@ -4774,7 +4762,7 @@ function KA(A) {
|
|
|
4774
4762
|
function TA(A) {
|
|
4775
4763
|
return KA(A).getComputedStyle(A);
|
|
4776
4764
|
}
|
|
4777
|
-
const _e = Math.min,
|
|
4765
|
+
const _e = Math.min, eQ = Math.max, wg = Math.round;
|
|
4778
4766
|
function Io(A) {
|
|
4779
4767
|
const B = TA(A);
|
|
4780
4768
|
let Q = parseFloat(B.width), g = parseFloat(B.height);
|
|
@@ -4784,12 +4772,11 @@ function Io(A) {
|
|
|
4784
4772
|
function DB(A) {
|
|
4785
4773
|
return oo(A) ? (A.nodeName || "").toLowerCase() : "";
|
|
4786
4774
|
}
|
|
4787
|
-
let
|
|
4775
|
+
let _Q;
|
|
4788
4776
|
function to() {
|
|
4789
|
-
if (
|
|
4790
|
-
return qQ;
|
|
4777
|
+
if (_Q) return _Q;
|
|
4791
4778
|
const A = navigator.userAgentData;
|
|
4792
|
-
return A && Array.isArray(A.brands) ? (
|
|
4779
|
+
return A && Array.isArray(A.brands) ? (_Q = A.brands.map((B) => B.brand + "/" + B.version).join(" "), _Q) : navigator.userAgent;
|
|
4793
4780
|
}
|
|
4794
4781
|
function qA(A) {
|
|
4795
4782
|
return A instanceof KA(A).HTMLElement;
|
|
@@ -4829,13 +4816,12 @@ function no(A) {
|
|
|
4829
4816
|
const io = { x: 1, y: 1 };
|
|
4830
4817
|
function JB(A) {
|
|
4831
4818
|
const B = no(A);
|
|
4832
|
-
if (!qA(B))
|
|
4833
|
-
return io;
|
|
4819
|
+
if (!qA(B)) return io;
|
|
4834
4820
|
const Q = B.getBoundingClientRect(), { width: g, height: E, fallback: C } = Io(B);
|
|
4835
4821
|
let e = (C ? wg(Q.width) : Q.width) / g, I = (C ? wg(Q.height) : Q.height) / E;
|
|
4836
4822
|
return e && Number.isFinite(e) || (e = 1), I && Number.isFinite(I) || (I = 1), { x: e, y: I };
|
|
4837
4823
|
}
|
|
4838
|
-
function
|
|
4824
|
+
function uQ(A, B, Q, g) {
|
|
4839
4825
|
var E, C;
|
|
4840
4826
|
B === void 0 && (B = !1), Q === void 0 && (Q = !1);
|
|
4841
4827
|
const e = A.getBoundingClientRect(), I = no(A);
|
|
@@ -4845,10 +4831,10 @@ function lQ(A, B, Q, g) {
|
|
|
4845
4831
|
let s = (e.left + (n && ((E = o.visualViewport) == null ? void 0 : E.offsetLeft) || 0)) / t.x, i = (e.top + (n && ((C = o.visualViewport) == null ? void 0 : C.offsetTop) || 0)) / t.y, w = e.width / t.x, r = e.height / t.y;
|
|
4846
4832
|
if (I) {
|
|
4847
4833
|
const D = KA(I), a = g && oB(g) ? KA(g) : g;
|
|
4848
|
-
let
|
|
4849
|
-
for (;
|
|
4850
|
-
const
|
|
4851
|
-
|
|
4834
|
+
let u = D.frameElement;
|
|
4835
|
+
for (; u && g && a !== D; ) {
|
|
4836
|
+
const M = JB(u), c = u.getBoundingClientRect(), l = getComputedStyle(u);
|
|
4837
|
+
c.x += (u.clientLeft + parseFloat(l.paddingLeft)) * M.x, c.y += (u.clientTop + parseFloat(l.paddingTop)) * M.y, s *= M.x, i *= M.y, w *= M.x, r *= M.y, s += c.x, i += c.y, u = KA(u).frameElement;
|
|
4852
4838
|
}
|
|
4853
4839
|
}
|
|
4854
4840
|
return { width: w, height: r, top: i, right: s + w, bottom: i + r, left: s, x: s, y: i };
|
|
@@ -4860,16 +4846,15 @@ function Tg(A) {
|
|
|
4860
4846
|
return oB(A) ? { scrollLeft: A.scrollLeft, scrollTop: A.scrollTop } : { scrollLeft: A.pageXOffset, scrollTop: A.pageYOffset };
|
|
4861
4847
|
}
|
|
4862
4848
|
function wo(A) {
|
|
4863
|
-
return
|
|
4849
|
+
return uQ(sB(A)).left + Tg(A).scrollLeft;
|
|
4864
4850
|
}
|
|
4865
|
-
function
|
|
4866
|
-
if (DB(A) === "html")
|
|
4867
|
-
return A;
|
|
4851
|
+
function hQ(A) {
|
|
4852
|
+
if (DB(A) === "html") return A;
|
|
4868
4853
|
const B = A.assignedSlot || A.parentNode || We(A) && A.host || sB(A);
|
|
4869
4854
|
return We(B) ? B.host : B;
|
|
4870
4855
|
}
|
|
4871
4856
|
function Do(A) {
|
|
4872
|
-
const B =
|
|
4857
|
+
const B = hQ(A);
|
|
4873
4858
|
return rC(B) ? B.ownerDocument.body : qA(B) && bg(B) ? B : Do(B);
|
|
4874
4859
|
}
|
|
4875
4860
|
function Dg(A, B) {
|
|
@@ -4879,7 +4864,7 @@ function Dg(A, B) {
|
|
|
4879
4864
|
return E ? B.concat(C, C.visualViewport || [], bg(g) ? g : []) : B.concat(g, Dg(g));
|
|
4880
4865
|
}
|
|
4881
4866
|
function Xe(A, B, Q) {
|
|
4882
|
-
return B === "viewport" ?
|
|
4867
|
+
return B === "viewport" ? CQ(function(g, E) {
|
|
4883
4868
|
const C = KA(g), e = sB(g), I = C.visualViewport;
|
|
4884
4869
|
let t = e.clientWidth, o = e.clientHeight, n = 0, s = 0;
|
|
4885
4870
|
if (I) {
|
|
@@ -4888,14 +4873,14 @@ function Xe(A, B, Q) {
|
|
|
4888
4873
|
(i || !i && E === "fixed") && (n = I.offsetLeft, s = I.offsetTop);
|
|
4889
4874
|
}
|
|
4890
4875
|
return { width: t, height: o, x: n, y: s };
|
|
4891
|
-
}(A, Q)) : oB(B) ?
|
|
4892
|
-
const C =
|
|
4876
|
+
}(A, Q)) : oB(B) ? CQ(function(g, E) {
|
|
4877
|
+
const C = uQ(g, !0, E === "fixed"), e = C.top + g.clientTop, I = C.left + g.clientLeft, t = qA(g) ? JB(g) : { x: 1, y: 1 };
|
|
4893
4878
|
return { width: g.clientWidth * t.x, height: g.clientHeight * t.y, x: I * t.x, y: e * t.y };
|
|
4894
|
-
}(B, Q)) :
|
|
4895
|
-
const E = sB(g), C = Tg(g), e = g.ownerDocument.body, I =
|
|
4879
|
+
}(B, Q)) : CQ(function(g) {
|
|
4880
|
+
const E = sB(g), C = Tg(g), e = g.ownerDocument.body, I = eQ(E.scrollWidth, E.clientWidth, e.scrollWidth, e.clientWidth), t = eQ(E.scrollHeight, E.clientHeight, e.scrollHeight, e.clientHeight);
|
|
4896
4881
|
let o = -C.scrollLeft + wo(g);
|
|
4897
4882
|
const n = -C.scrollTop;
|
|
4898
|
-
return TA(e).direction === "rtl" && (o +=
|
|
4883
|
+
return TA(e).direction === "rtl" && (o += eQ(E.clientWidth, e.clientWidth) - I), { width: I, height: t, x: o, y: n };
|
|
4899
4884
|
}(sB(A)));
|
|
4900
4885
|
}
|
|
4901
4886
|
function Ze(A) {
|
|
@@ -4904,58 +4889,52 @@ function Ze(A) {
|
|
|
4904
4889
|
function Ve(A) {
|
|
4905
4890
|
const B = KA(A);
|
|
4906
4891
|
let Q = Ze(A);
|
|
4907
|
-
for (; Q && HD(Q) && TA(Q).position === "static"; )
|
|
4908
|
-
Q = Ze(Q);
|
|
4892
|
+
for (; Q && HD(Q) && TA(Q).position === "static"; ) Q = Ze(Q);
|
|
4909
4893
|
return Q && (DB(Q) === "html" || DB(Q) === "body" && TA(Q).position === "static" && !UE(Q)) ? B : Q || function(g) {
|
|
4910
|
-
let E =
|
|
4894
|
+
let E = hQ(g);
|
|
4911
4895
|
for (; qA(E) && !rC(E); ) {
|
|
4912
|
-
if (UE(E))
|
|
4913
|
-
|
|
4914
|
-
E = uQ(E);
|
|
4896
|
+
if (UE(E)) return E;
|
|
4897
|
+
E = hQ(E);
|
|
4915
4898
|
}
|
|
4916
4899
|
return null;
|
|
4917
4900
|
}(A) || B;
|
|
4918
4901
|
}
|
|
4919
4902
|
function RD(A, B, Q) {
|
|
4920
|
-
const g = qA(B), E = sB(B), C =
|
|
4903
|
+
const g = qA(B), E = sB(B), C = uQ(A, !0, Q === "fixed", B);
|
|
4921
4904
|
let e = { scrollLeft: 0, scrollTop: 0 };
|
|
4922
4905
|
const I = { x: 0, y: 0 };
|
|
4923
|
-
if (g || !g && Q !== "fixed")
|
|
4924
|
-
|
|
4925
|
-
|
|
4926
|
-
|
|
4927
|
-
} else
|
|
4928
|
-
E && (I.x = wo(E));
|
|
4906
|
+
if (g || !g && Q !== "fixed") if ((DB(B) !== "body" || bg(E)) && (e = Tg(B)), qA(B)) {
|
|
4907
|
+
const t = uQ(B, !0);
|
|
4908
|
+
I.x = t.x + B.clientLeft, I.y = t.y + B.clientTop;
|
|
4909
|
+
} else E && (I.x = wo(E));
|
|
4929
4910
|
return { x: C.left + e.scrollLeft - I.x, y: C.top + e.scrollTop - I.y, width: C.width, height: C.height };
|
|
4930
4911
|
}
|
|
4931
4912
|
const PD = { getClippingRect: function(A) {
|
|
4932
4913
|
let { element: B, boundary: Q, rootBoundary: g, strategy: E } = A;
|
|
4933
4914
|
const C = Q === "clippingAncestors" ? function(o, n) {
|
|
4934
4915
|
const s = n.get(o);
|
|
4935
|
-
if (s)
|
|
4936
|
-
return s;
|
|
4916
|
+
if (s) return s;
|
|
4937
4917
|
let i = Dg(o).filter((a) => oB(a) && DB(a) !== "body"), w = null;
|
|
4938
4918
|
const r = TA(o).position === "fixed";
|
|
4939
|
-
let D = r ?
|
|
4919
|
+
let D = r ? hQ(o) : o;
|
|
4940
4920
|
for (; oB(D) && !rC(D); ) {
|
|
4941
|
-
const a = TA(D),
|
|
4942
|
-
(r ?
|
|
4921
|
+
const a = TA(D), u = UE(D);
|
|
4922
|
+
(r ? u || w : u || a.position !== "static" || !w || !["absolute", "fixed"].includes(w.position)) ? w = a : i = i.filter((M) => M !== D), D = hQ(D);
|
|
4943
4923
|
}
|
|
4944
4924
|
return n.set(o, i), i;
|
|
4945
4925
|
}(B, this._c) : [].concat(Q), e = [...C, g], I = e[0], t = e.reduce((o, n) => {
|
|
4946
4926
|
const s = Xe(B, n, E);
|
|
4947
|
-
return o.top =
|
|
4927
|
+
return o.top = eQ(s.top, o.top), o.right = _e(s.right, o.right), o.bottom = _e(s.bottom, o.bottom), o.left = eQ(s.left, o.left), o;
|
|
4948
4928
|
}, Xe(B, I, E));
|
|
4949
4929
|
return { width: t.right - t.left, height: t.bottom - t.top, x: t.left, y: t.top };
|
|
4950
4930
|
}, convertOffsetParentRelativeRectToViewportRelativeRect: function(A) {
|
|
4951
4931
|
let { rect: B, offsetParent: Q, strategy: g } = A;
|
|
4952
4932
|
const E = qA(Q), C = sB(Q);
|
|
4953
|
-
if (Q === C)
|
|
4954
|
-
return B;
|
|
4933
|
+
if (Q === C) return B;
|
|
4955
4934
|
let e = { scrollLeft: 0, scrollTop: 0 }, I = { x: 1, y: 1 };
|
|
4956
4935
|
const t = { x: 0, y: 0 };
|
|
4957
4936
|
if ((E || !E && g !== "fixed") && ((DB(Q) !== "body" || bg(C)) && (e = Tg(Q)), qA(Q))) {
|
|
4958
|
-
const o =
|
|
4937
|
+
const o = uQ(Q);
|
|
4959
4938
|
I = JB(Q), t.x = o.x + Q.clientLeft, t.y = o.y + Q.clientTop;
|
|
4960
4939
|
}
|
|
4961
4940
|
return { width: B.width * I.x, height: B.height * I.y, x: B.x * I.x - e.scrollLeft * I.x + t.x, y: B.y * I.y - e.scrollTop * I.y + t.y };
|
|
@@ -5047,7 +5026,7 @@ const PD = { getClippingRect: function(A) {
|
|
|
5047
5026
|
}
|
|
5048
5027
|
}
|
|
5049
5028
|
};
|
|
5050
|
-
function
|
|
5029
|
+
function dQ(A, B) {
|
|
5051
5030
|
let Q = pB.themes[A] || {}, g;
|
|
5052
5031
|
do
|
|
5053
5032
|
g = Q[B], typeof g > "u" ? Q.$extend ? Q = pB.themes[Q.$extend] || {} : (Q = null, g = pB[B]) : Q = null;
|
|
@@ -5123,7 +5102,7 @@ let KE = function() {
|
|
|
5123
5102
|
typeof window < "u" && (KE = window.Element);
|
|
5124
5103
|
function AA(A) {
|
|
5125
5104
|
return function(B) {
|
|
5126
|
-
return
|
|
5105
|
+
return dQ(B.theme, A);
|
|
5127
5106
|
};
|
|
5128
5107
|
}
|
|
5129
5108
|
const IE = "__floating-vue__popper", co = () => z({
|
|
@@ -5679,12 +5658,12 @@ const IE = "__floating-vue__popper", co = () => z({
|
|
|
5679
5658
|
},
|
|
5680
5659
|
$_isAimingPopper() {
|
|
5681
5660
|
const A = this.$_referenceNode.getBoundingClientRect();
|
|
5682
|
-
if (
|
|
5683
|
-
const B = this.$_popperNode.getBoundingClientRect(), Q =
|
|
5684
|
-
return
|
|
5685
|
-
|
|
5686
|
-
|
|
5687
|
-
|
|
5661
|
+
if (IQ >= A.left && IQ <= A.right && tQ >= A.top && tQ <= A.bottom) {
|
|
5662
|
+
const B = this.$_popperNode.getBoundingClientRect(), Q = IQ - eB, g = tQ - IB, E = B.left + B.width / 2 - eB + (B.top + B.height / 2) - IB + B.width + B.height, C = eB + Q * E, e = IB + g * E;
|
|
5663
|
+
return WQ(eB, IB, C, e, B.left, B.top, B.left, B.bottom) || // Left edge
|
|
5664
|
+
WQ(eB, IB, C, e, B.left, B.top, B.right, B.top) || // Top edge
|
|
5665
|
+
WQ(eB, IB, C, e, B.right, B.top, B.right, B.bottom) || // Right edge
|
|
5666
|
+
WQ(eB, IB, C, e, B.left, B.bottom, B.right, B.bottom);
|
|
5688
5667
|
}
|
|
5689
5668
|
return !1;
|
|
5690
5669
|
}
|
|
@@ -5753,13 +5732,13 @@ function mD() {
|
|
|
5753
5732
|
for (let A = 0; A < mA.length; A++)
|
|
5754
5733
|
mA[A].$_computePosition();
|
|
5755
5734
|
}
|
|
5756
|
-
let eB = 0, IB = 0,
|
|
5735
|
+
let eB = 0, IB = 0, IQ = 0, tQ = 0;
|
|
5757
5736
|
typeof window < "u" && window.addEventListener("mousemove", (A) => {
|
|
5758
|
-
eB =
|
|
5737
|
+
eB = IQ, IB = tQ, IQ = A.clientX, tQ = A.clientY;
|
|
5759
5738
|
}, qB ? {
|
|
5760
5739
|
passive: !0
|
|
5761
5740
|
} : void 0);
|
|
5762
|
-
function
|
|
5741
|
+
function WQ(A, B, Q, g, E, C, e, I) {
|
|
5763
5742
|
const t = ((e - E) * (B - C) - (I - C) * (A - E)) / ((I - C) * (Q - A) - (e - E) * (g - B)), o = ((Q - A) * (B - C) - (g - B) * (A - E)) / ((I - C) * (Q - A) - (e - E) * (g - B));
|
|
5764
5743
|
return t >= 0 && t <= 1 && o >= 0 && o <= 1;
|
|
5765
5744
|
}
|
|
@@ -5846,12 +5825,12 @@ var _g = {
|
|
|
5846
5825
|
}
|
|
5847
5826
|
};
|
|
5848
5827
|
const bD = /* @__PURE__ */ nt("data-v-b329ee4c");
|
|
5849
|
-
|
|
5828
|
+
LQ("data-v-b329ee4c");
|
|
5850
5829
|
const TD = {
|
|
5851
5830
|
class: "resize-observer",
|
|
5852
5831
|
tabindex: "-1"
|
|
5853
5832
|
};
|
|
5854
|
-
|
|
5833
|
+
kQ();
|
|
5855
5834
|
const qD = /* @__PURE__ */ bD((A, B, Q, g, E, C) => (f(), Z("div", TD)));
|
|
5856
5835
|
_g.render = qD;
|
|
5857
5836
|
_g.__scopeId = "data-v-b329ee4c";
|
|
@@ -6202,8 +6181,8 @@ function Ar(A, B, Q, g, E, C) {
|
|
|
6202
6181
|
hide: r,
|
|
6203
6182
|
handleResize: D,
|
|
6204
6183
|
onResize: a,
|
|
6205
|
-
classes:
|
|
6206
|
-
result:
|
|
6184
|
+
classes: u,
|
|
6185
|
+
result: M
|
|
6207
6186
|
}) => [
|
|
6208
6187
|
gA(A.$slots, "default", {
|
|
6209
6188
|
shown: o,
|
|
@@ -6219,8 +6198,8 @@ function Ar(A, B, Q, g, E, C) {
|
|
|
6219
6198
|
"skip-transition": s,
|
|
6220
6199
|
"auto-hide": i,
|
|
6221
6200
|
"handle-resize": D,
|
|
6222
|
-
classes:
|
|
6223
|
-
result:
|
|
6201
|
+
classes: u,
|
|
6202
|
+
result: M,
|
|
6224
6203
|
onHide: r,
|
|
6225
6204
|
onResize: a
|
|
6226
6205
|
}, {
|
|
@@ -6264,7 +6243,7 @@ const Qr = z({
|
|
|
6264
6243
|
},
|
|
6265
6244
|
html: {
|
|
6266
6245
|
type: Boolean,
|
|
6267
|
-
default: (A) =>
|
|
6246
|
+
default: (A) => dQ(A.theme, "html")
|
|
6268
6247
|
},
|
|
6269
6248
|
content: {
|
|
6270
6249
|
type: [String, Number, Function],
|
|
@@ -6272,7 +6251,7 @@ const Qr = z({
|
|
|
6272
6251
|
},
|
|
6273
6252
|
loadingContent: {
|
|
6274
6253
|
type: String,
|
|
6275
|
-
default: (A) =>
|
|
6254
|
+
default: (A) => dQ(A.theme, "loadingContent")
|
|
6276
6255
|
},
|
|
6277
6256
|
targetNodes: {
|
|
6278
6257
|
type: Function,
|
|
@@ -6347,7 +6326,7 @@ function Cr(A, B, Q, g, E, C) {
|
|
|
6347
6326
|
handleResize: r,
|
|
6348
6327
|
onResize: D,
|
|
6349
6328
|
classes: a,
|
|
6350
|
-
result:
|
|
6329
|
+
result: u
|
|
6351
6330
|
}) => [
|
|
6352
6331
|
U(e, {
|
|
6353
6332
|
ref: "popperContent",
|
|
@@ -6362,7 +6341,7 @@ function Cr(A, B, Q, g, E, C) {
|
|
|
6362
6341
|
"auto-hide": i,
|
|
6363
6342
|
"handle-resize": r,
|
|
6364
6343
|
classes: a,
|
|
6365
|
-
result:
|
|
6344
|
+
result: u,
|
|
6366
6345
|
onHide: w,
|
|
6367
6346
|
onResize: D
|
|
6368
6347
|
}, {
|
|
@@ -6387,22 +6366,22 @@ function Ir(A, B) {
|
|
|
6387
6366
|
if (!Q && B)
|
|
6388
6367
|
for (const g of ao)
|
|
6389
6368
|
B[g] && (Q = g);
|
|
6390
|
-
return Q || (Q =
|
|
6369
|
+
return Q || (Q = dQ(A.theme || "tooltip", "placement")), Q;
|
|
6391
6370
|
}
|
|
6392
6371
|
function po(A, B, Q) {
|
|
6393
6372
|
let g;
|
|
6394
6373
|
const E = typeof B;
|
|
6395
6374
|
return E === "string" ? g = { content: B } : B && E === "object" ? g = B : g = { content: !1 }, g.placement = Ir(g, Q), g.targetNodes = () => [A], g.referenceNode = () => A, g;
|
|
6396
6375
|
}
|
|
6397
|
-
let tE,
|
|
6376
|
+
let tE, MQ, tr = 0;
|
|
6398
6377
|
function or() {
|
|
6399
6378
|
if (tE)
|
|
6400
6379
|
return;
|
|
6401
|
-
|
|
6380
|
+
MQ = K([]), tE = An({
|
|
6402
6381
|
name: "VTooltipDirectiveApp",
|
|
6403
6382
|
setup() {
|
|
6404
6383
|
return {
|
|
6405
|
-
directives:
|
|
6384
|
+
directives: MQ
|
|
6406
6385
|
};
|
|
6407
6386
|
},
|
|
6408
6387
|
render() {
|
|
@@ -6426,7 +6405,7 @@ function sr(A, B, Q) {
|
|
|
6426
6405
|
options: g,
|
|
6427
6406
|
shown: E
|
|
6428
6407
|
};
|
|
6429
|
-
return
|
|
6408
|
+
return MQ.value.push(C), A.classList && A.classList.add(Mo), A.$_popper = {
|
|
6430
6409
|
options: g,
|
|
6431
6410
|
item: C,
|
|
6432
6411
|
show() {
|
|
@@ -6439,14 +6418,14 @@ function sr(A, B, Q) {
|
|
|
6439
6418
|
}
|
|
6440
6419
|
function fo(A) {
|
|
6441
6420
|
if (A.$_popper) {
|
|
6442
|
-
const B =
|
|
6443
|
-
B !== -1 &&
|
|
6421
|
+
const B = MQ.value.indexOf(A.$_popper.item);
|
|
6422
|
+
B !== -1 && MQ.value.splice(B, 1), delete A.$_popper, delete A.$_popperOldShown, delete A.$_popperMountTarget;
|
|
6444
6423
|
}
|
|
6445
6424
|
A.classList && A.classList.remove(Mo);
|
|
6446
6425
|
}
|
|
6447
6426
|
function eI(A, { value: B, modifiers: Q }) {
|
|
6448
6427
|
const g = po(A, B, Q);
|
|
6449
|
-
if (!g.content ||
|
|
6428
|
+
if (!g.content || dQ(g.theme || "tooltip", "disabled"))
|
|
6450
6429
|
fo(A);
|
|
6451
6430
|
else {
|
|
6452
6431
|
let E;
|
|
@@ -6626,7 +6605,7 @@ const yo = /* @__PURE__ */ rr(ar, [["render", hr]]), dr = { key: 2 }, RA = /* @_
|
|
|
6626
6605
|
_: 3
|
|
6627
6606
|
}, 16, ["aria-disabled", "class"]));
|
|
6628
6607
|
}
|
|
6629
|
-
}),
|
|
6608
|
+
}), MA = /* @__PURE__ */ z({
|
|
6630
6609
|
__name: "Icon",
|
|
6631
6610
|
props: {
|
|
6632
6611
|
icon: {},
|
|
@@ -6644,7 +6623,7 @@ function Lo(A) {
|
|
|
6644
6623
|
}
|
|
6645
6624
|
function Mr(A, B, { enumerable: Q = !1, unwrap: g = !0 } = {}) {
|
|
6646
6625
|
for (const [E, C] of Object.entries(B))
|
|
6647
|
-
E !== "value" && (
|
|
6626
|
+
E !== "value" && (HQ(C) && g ? Object.defineProperty(A, E, {
|
|
6648
6627
|
get() {
|
|
6649
6628
|
return C.value;
|
|
6650
6629
|
},
|
|
@@ -6856,31 +6835,31 @@ function Uo(A, B, Q, g = {}) {
|
|
|
6856
6835
|
} = g, w = kg(), r = Q || (w == null ? void 0 : w.emit) || ((E = w == null ? void 0 : w.$emit) == null ? void 0 : E.bind(w)) || ((e = (C = w == null ? void 0 : w.proxy) == null ? void 0 : C.$emit) == null ? void 0 : e.bind(w == null ? void 0 : w.proxy));
|
|
6857
6836
|
let D = o;
|
|
6858
6837
|
B || (B = "modelValue"), D = D || `update:${B.toString()}`;
|
|
6859
|
-
const a = (
|
|
6860
|
-
i ? i(
|
|
6838
|
+
const a = (c) => I ? typeof I == "function" ? I(c) : Yr(c) : c, u = () => pr(A[B]) ? a(A[B]) : s, M = (c) => {
|
|
6839
|
+
i ? i(c) && r(D, c) : r(D, c);
|
|
6861
6840
|
};
|
|
6862
6841
|
if (t) {
|
|
6863
|
-
const
|
|
6864
|
-
let
|
|
6842
|
+
const c = u(), l = K(c);
|
|
6843
|
+
let d = !1;
|
|
6865
6844
|
return oA(
|
|
6866
6845
|
() => A[B],
|
|
6867
6846
|
(F) => {
|
|
6868
|
-
|
|
6847
|
+
d || (d = !0, l.value = a(F), rB(() => d = !1));
|
|
6869
6848
|
}
|
|
6870
6849
|
), oA(
|
|
6871
|
-
|
|
6850
|
+
l,
|
|
6872
6851
|
(F) => {
|
|
6873
|
-
!
|
|
6852
|
+
!d && (F !== A[B] || n) && M(F);
|
|
6874
6853
|
},
|
|
6875
6854
|
{ deep: n }
|
|
6876
|
-
),
|
|
6855
|
+
), l;
|
|
6877
6856
|
} else
|
|
6878
6857
|
return x({
|
|
6879
6858
|
get() {
|
|
6880
|
-
return
|
|
6859
|
+
return u();
|
|
6881
6860
|
},
|
|
6882
|
-
set(
|
|
6883
|
-
|
|
6861
|
+
set(c) {
|
|
6862
|
+
M(c);
|
|
6884
6863
|
}
|
|
6885
6864
|
});
|
|
6886
6865
|
}
|
|
@@ -6921,7 +6900,7 @@ const Jr = /* @__PURE__ */ z({
|
|
|
6921
6900
|
emits: ["close", "update:modelValue"],
|
|
6922
6901
|
setup(A, { emit: B }) {
|
|
6923
6902
|
const Q = A, g = Uo(Q, "modelValue", B, { passive: !0 }), E = mr(() => window.document.documentElement);
|
|
6924
|
-
|
|
6903
|
+
nQ(() => {
|
|
6925
6904
|
g.value ? E.value = !0 : E.value = !1;
|
|
6926
6905
|
});
|
|
6927
6906
|
function C() {
|
|
@@ -7023,13 +7002,13 @@ const Jr = /* @__PURE__ */ z({
|
|
|
7023
7002
|
}
|
|
7024
7003
|
}), I = x(() => Q.variant === "flat" || Q.variant === "warning" || Q.disabled || Q.readonly), t = x(() => Q.disabled || C.value), o = K();
|
|
7025
7004
|
let n = !1;
|
|
7026
|
-
return
|
|
7005
|
+
return nQ(() => {
|
|
7027
7006
|
C.value && e.value ? n = !0 : !C.value && n && (n = !1, rB(() => {
|
|
7028
7007
|
e.value = !0;
|
|
7029
7008
|
}));
|
|
7030
7009
|
}), Lg(() => {
|
|
7031
7010
|
Q.autoFocus && (e.value = !0);
|
|
7032
|
-
}),
|
|
7011
|
+
}), nQ(() => {
|
|
7033
7012
|
var s;
|
|
7034
7013
|
e.value && ((s = o.value) == null || s.focus());
|
|
7035
7014
|
}), (s, i) => (f(), L("div", {
|
|
@@ -7052,12 +7031,12 @@ const Jr = /* @__PURE__ */ z({
|
|
|
7052
7031
|
key: 0,
|
|
7053
7032
|
class: eA(nE)
|
|
7054
7033
|
}, [
|
|
7055
|
-
U(
|
|
7034
|
+
U(MA, { icon: s.leftIcon }, null, 8, ["icon"])
|
|
7056
7035
|
])) : $("", !0),
|
|
7057
7036
|
DA(p("input", {
|
|
7058
7037
|
ref_key: "inputRef",
|
|
7059
7038
|
ref: o,
|
|
7060
|
-
"onUpdate:modelValue": i[0] || (i[0] = (w) =>
|
|
7039
|
+
"onUpdate:modelValue": i[0] || (i[0] = (w) => HQ(E) ? E.value = w : null),
|
|
7061
7040
|
class: "$ui-base w-full bg-transparent color-inherit outline-none placeholder-color-gray-500 dark:placeholder-gray-300",
|
|
7062
7041
|
type: s.type,
|
|
7063
7042
|
placeholder: s.placeholder,
|
|
@@ -7075,7 +7054,7 @@ const Jr = /* @__PURE__ */ z({
|
|
|
7075
7054
|
key: 2,
|
|
7076
7055
|
class: eA(nE)
|
|
7077
7056
|
}, [
|
|
7078
|
-
U(
|
|
7057
|
+
U(MA, { icon: s.rightIcon }, null, 8, ["icon"])
|
|
7079
7058
|
])) : $("", !0),
|
|
7080
7059
|
I.value ? $("", !0) : (f(), L("div", Zr))
|
|
7081
7060
|
], 2));
|
|
@@ -7267,7 +7246,7 @@ function sa(A = !1, B = {}) {
|
|
|
7267
7246
|
const {
|
|
7268
7247
|
truthyValue: Q = !0,
|
|
7269
7248
|
falsyValue: g = !1
|
|
7270
|
-
} = B, E =
|
|
7249
|
+
} = B, E = HQ(A), C = K(A);
|
|
7271
7250
|
function e(I) {
|
|
7272
7251
|
if (arguments.length)
|
|
7273
7252
|
return C.value = I, C.value;
|
|
@@ -7366,24 +7345,24 @@ function wa(A = {}) {
|
|
|
7366
7345
|
legacy: C = !1
|
|
7367
7346
|
} = A, e = uC(() => B && "clipboard" in B), I = nI("clipboard-read"), t = nI("clipboard-write"), o = x(() => e.value || C), n = K(""), s = K(!1), i = oa(() => s.value = !1, E);
|
|
7368
7347
|
function w() {
|
|
7369
|
-
e.value &&
|
|
7370
|
-
n.value =
|
|
7348
|
+
e.value && u(I.value) ? B.clipboard.readText().then((M) => {
|
|
7349
|
+
n.value = M;
|
|
7371
7350
|
}) : n.value = a();
|
|
7372
7351
|
}
|
|
7373
7352
|
o.value && Q && tB(["copy", "cut"], w);
|
|
7374
|
-
async function r(
|
|
7375
|
-
o.value &&
|
|
7353
|
+
async function r(M = XA(g)) {
|
|
7354
|
+
o.value && M != null && (e.value && u(t.value) ? await B.clipboard.writeText(M) : D(M), n.value = M, s.value = !0, i.start());
|
|
7376
7355
|
}
|
|
7377
|
-
function D(
|
|
7378
|
-
const
|
|
7379
|
-
|
|
7356
|
+
function D(M) {
|
|
7357
|
+
const c = document.createElement("textarea");
|
|
7358
|
+
c.value = M ?? "", c.style.position = "absolute", c.style.opacity = "0", document.body.appendChild(c), c.select(), document.execCommand("copy"), c.remove();
|
|
7380
7359
|
}
|
|
7381
7360
|
function a() {
|
|
7382
|
-
var
|
|
7383
|
-
return (
|
|
7361
|
+
var M, c, l;
|
|
7362
|
+
return (l = (c = (M = document == null ? void 0 : document.getSelection) == null ? void 0 : M.call(document)) == null ? void 0 : c.toString()) != null ? l : "";
|
|
7384
7363
|
}
|
|
7385
|
-
function
|
|
7386
|
-
return
|
|
7364
|
+
function u(M) {
|
|
7365
|
+
return M === "granted" || M === "prompt";
|
|
7387
7366
|
}
|
|
7388
7367
|
return {
|
|
7389
7368
|
isSupported: o,
|
|
@@ -7491,30 +7470,30 @@ function la(A = {}) {
|
|
|
7491
7470
|
s(D, !1);
|
|
7492
7471
|
}
|
|
7493
7472
|
function w(D, a) {
|
|
7494
|
-
var
|
|
7495
|
-
const
|
|
7496
|
-
|
|
7497
|
-
for (const F of
|
|
7473
|
+
var u, M;
|
|
7474
|
+
const c = (u = D.key) == null ? void 0 : u.toLowerCase(), d = [(M = D.code) == null ? void 0 : M.toLowerCase(), c].filter(Boolean);
|
|
7475
|
+
c && (a ? e.add(c) : e.delete(c));
|
|
7476
|
+
for (const F of d)
|
|
7498
7477
|
n.add(F), s(F, a);
|
|
7499
|
-
|
|
7478
|
+
c === "meta" && !a ? (o.forEach((F) => {
|
|
7500
7479
|
e.delete(F), s(F, !1);
|
|
7501
|
-
}), o.clear()) : typeof D.getModifierState == "function" && D.getModifierState("Meta") && a && [...e, ...
|
|
7480
|
+
}), o.clear()) : typeof D.getModifierState == "function" && D.getModifierState("Meta") && a && [...e, ...d].forEach((F) => o.add(F));
|
|
7502
7481
|
}
|
|
7503
7482
|
tB(Q, "keydown", (D) => (w(D, !0), C(D)), { passive: E }), tB(Q, "keyup", (D) => (w(D, !1), C(D)), { passive: E }), tB("blur", i, { passive: !0 }), tB("focus", i, { passive: !0 });
|
|
7504
7483
|
const r = new Proxy(
|
|
7505
7484
|
t,
|
|
7506
7485
|
{
|
|
7507
|
-
get(D, a,
|
|
7486
|
+
get(D, a, u) {
|
|
7508
7487
|
if (typeof a != "string")
|
|
7509
|
-
return Reflect.get(D, a,
|
|
7488
|
+
return Reflect.get(D, a, u);
|
|
7510
7489
|
if (a = a.toLowerCase(), a in g && (a = g[a]), !(a in t))
|
|
7511
7490
|
if (/[+_-]/.test(a)) {
|
|
7512
|
-
const
|
|
7513
|
-
t[a] = x(() =>
|
|
7491
|
+
const c = a.split(/[+_-]/g).map((l) => l.trim());
|
|
7492
|
+
t[a] = x(() => c.every((l) => XA(r[l])));
|
|
7514
7493
|
} else
|
|
7515
7494
|
t[a] = K(!1);
|
|
7516
|
-
const
|
|
7517
|
-
return B ? XA(
|
|
7495
|
+
const M = Reflect.get(D, a, u);
|
|
7496
|
+
return B ? XA(M) : M;
|
|
7518
7497
|
}
|
|
7519
7498
|
}
|
|
7520
7499
|
);
|
|
@@ -7532,31 +7511,31 @@ function ua(A, B, Q, g = {}) {
|
|
|
7532
7511
|
} = g, w = kg(), r = Q || (w == null ? void 0 : w.emit) || ((E = w == null ? void 0 : w.$emit) == null ? void 0 : E.bind(w)) || ((e = (C = w == null ? void 0 : w.proxy) == null ? void 0 : C.$emit) == null ? void 0 : e.bind(w == null ? void 0 : w.proxy));
|
|
7533
7512
|
let D = o;
|
|
7534
7513
|
B || (B = "modelValue"), D = D || `update:${B.toString()}`;
|
|
7535
|
-
const a = (
|
|
7536
|
-
i ? i(
|
|
7514
|
+
const a = (c) => I ? typeof I == "function" ? I(c) : Da(c) : c, u = () => $r(A[B]) ? a(A[B]) : s, M = (c) => {
|
|
7515
|
+
i ? i(c) && r(D, c) : r(D, c);
|
|
7537
7516
|
};
|
|
7538
7517
|
if (t) {
|
|
7539
|
-
const
|
|
7540
|
-
let
|
|
7518
|
+
const c = u(), l = K(c);
|
|
7519
|
+
let d = !1;
|
|
7541
7520
|
return oA(
|
|
7542
7521
|
() => A[B],
|
|
7543
7522
|
(F) => {
|
|
7544
|
-
|
|
7523
|
+
d || (d = !0, l.value = a(F), rB(() => d = !1));
|
|
7545
7524
|
}
|
|
7546
7525
|
), oA(
|
|
7547
|
-
|
|
7526
|
+
l,
|
|
7548
7527
|
(F) => {
|
|
7549
|
-
!
|
|
7528
|
+
!d && (F !== A[B] || n) && M(F);
|
|
7550
7529
|
},
|
|
7551
7530
|
{ deep: n }
|
|
7552
|
-
),
|
|
7531
|
+
), l;
|
|
7553
7532
|
} else
|
|
7554
7533
|
return x({
|
|
7555
7534
|
get() {
|
|
7556
|
-
return
|
|
7535
|
+
return u();
|
|
7557
7536
|
},
|
|
7558
|
-
set(
|
|
7559
|
-
|
|
7537
|
+
set(c) {
|
|
7538
|
+
M(c);
|
|
7560
7539
|
}
|
|
7561
7540
|
});
|
|
7562
7541
|
}
|
|
@@ -7664,7 +7643,7 @@ const fa = { class: "flex pl5px" }, Fa = { class: "w160px py5px" }, Na = /* @__P
|
|
|
7664
7643
|
onClick: D[0] || (D[0] = jA((a) => r.$emit("enableEditInput", o.value), ["stop"]))
|
|
7665
7644
|
}), {
|
|
7666
7645
|
icon: O(() => [
|
|
7667
|
-
U(N(
|
|
7646
|
+
U(N(MA), { icon: "i-material-symbols-edit-rounded" })
|
|
7668
7647
|
]),
|
|
7669
7648
|
_: 1
|
|
7670
7649
|
}, 16, ["class"])), [
|
|
@@ -7677,7 +7656,7 @@ const fa = { class: "flex pl5px" }, Fa = { class: "w160px py5px" }, Na = /* @__P
|
|
|
7677
7656
|
onClick: D[1] || (D[1] = jA((a) => r.$emit("addNewProp", Array.isArray(I.value) ? "array" : "object"), ["stop"]))
|
|
7678
7657
|
}), {
|
|
7679
7658
|
icon: O(() => [
|
|
7680
|
-
U(N(
|
|
7659
|
+
U(N(MA), { icon: "i-material-symbols-add-circle-rounded" })
|
|
7681
7660
|
]),
|
|
7682
7661
|
_: 1
|
|
7683
7662
|
}, 16, ["class"])), [
|
|
@@ -7691,7 +7670,7 @@ const fa = { class: "flex pl5px" }, Fa = { class: "w160px py5px" }, Na = /* @__P
|
|
|
7691
7670
|
onClick: D[2] || (D[2] = (a) => i(!I.value))
|
|
7692
7671
|
}), {
|
|
7693
7672
|
icon: O(() => [
|
|
7694
|
-
U(N(
|
|
7673
|
+
U(N(MA), {
|
|
7695
7674
|
icon: I.value ? "i-material-symbols-check-box-sharp" : "i-material-symbols-check-box-outline-blank-sharp"
|
|
7696
7675
|
}, null, 8, ["icon"])
|
|
7697
7676
|
]),
|
|
@@ -7702,7 +7681,7 @@ const fa = { class: "flex pl5px" }, Fa = { class: "w160px py5px" }, Na = /* @__P
|
|
|
7702
7681
|
onClick: D[3] || (D[3] = jA((a) => w(I.value, 1), ["stop"]))
|
|
7703
7682
|
}), {
|
|
7704
7683
|
icon: O(() => [
|
|
7705
|
-
U(N(
|
|
7684
|
+
U(N(MA), { icon: "i-carbon-add" })
|
|
7706
7685
|
]),
|
|
7707
7686
|
_: 1
|
|
7708
7687
|
}, 16, ["class"]),
|
|
@@ -7711,7 +7690,7 @@ const fa = { class: "flex pl5px" }, Fa = { class: "w160px py5px" }, Na = /* @__P
|
|
|
7711
7690
|
onClick: D[4] || (D[4] = jA((a) => w(I.value, -1), ["stop"]))
|
|
7712
7691
|
}), {
|
|
7713
7692
|
icon: O(() => [
|
|
7714
|
-
U(N(
|
|
7693
|
+
U(N(MA), { icon: "i-carbon-subtract" })
|
|
7715
7694
|
]),
|
|
7716
7695
|
_: 1
|
|
7717
7696
|
}, 16, ["class"])
|
|
@@ -7722,7 +7701,7 @@ const fa = { class: "flex pl5px" }, Fa = { class: "w160px py5px" }, Na = /* @__P
|
|
|
7722
7701
|
onClick: D[5] || (D[5] = jA((a) => i(I.value, !0), ["stop"]))
|
|
7723
7702
|
}), {
|
|
7724
7703
|
icon: O(() => [
|
|
7725
|
-
U(N(
|
|
7704
|
+
U(N(MA), { icon: "i-material-symbols-delete-rounded" })
|
|
7726
7705
|
]),
|
|
7727
7706
|
_: 1
|
|
7728
7707
|
}, 16, ["class"])) : $("", !0),
|
|
@@ -7743,7 +7722,7 @@ const fa = { class: "flex pl5px" }, Fa = { class: "w160px py5px" }, Na = /* @__P
|
|
|
7743
7722
|
onClick: D[6] || (D[6] = (a) => N(g)(typeof I.value == "object" ? JSON.stringify(I.value) : I.value.toString()))
|
|
7744
7723
|
}, {
|
|
7745
7724
|
icon: O(() => [
|
|
7746
|
-
U(N(
|
|
7725
|
+
U(N(MA), {
|
|
7747
7726
|
icon: "i-material-symbols-copy-all-rounded",
|
|
7748
7727
|
class: "mt4px"
|
|
7749
7728
|
}),
|
|
@@ -7757,7 +7736,7 @@ const fa = { class: "flex pl5px" }, Fa = { class: "w160px py5px" }, Na = /* @__P
|
|
|
7757
7736
|
})
|
|
7758
7737
|
}, {
|
|
7759
7738
|
icon: O(() => [
|
|
7760
|
-
U(N(
|
|
7739
|
+
U(N(MA), {
|
|
7761
7740
|
icon: "i-material-symbols-copy-all-rounded",
|
|
7762
7741
|
class: "mt4px"
|
|
7763
7742
|
}),
|
|
@@ -7768,7 +7747,7 @@ const fa = { class: "flex pl5px" }, Fa = { class: "w160px py5px" }, Na = /* @__P
|
|
|
7768
7747
|
])
|
|
7769
7748
|
]),
|
|
7770
7749
|
"button-icon": O(() => [
|
|
7771
|
-
U(N(
|
|
7750
|
+
U(N(MA), { icon: "i-material-symbols:more-vert" })
|
|
7772
7751
|
]),
|
|
7773
7752
|
_: 1
|
|
7774
7753
|
}, 8, ["class", "disabled"])
|
|
@@ -7785,7 +7764,7 @@ const fa = { class: "flex pl5px" }, Fa = { class: "w160px py5px" }, Na = /* @__P
|
|
|
7785
7764
|
emits: ["cancel", "submit", "update:modelValue"],
|
|
7786
7765
|
setup(A, { emit: B }) {
|
|
7787
7766
|
const Q = A, g = B, E = x(() => Q.customType === "date" ? "datetime-local" : ""), { escape: C, enter: e } = la();
|
|
7788
|
-
|
|
7767
|
+
nQ(() => {
|
|
7789
7768
|
C.value ? g("cancel") : e.value && g("submit");
|
|
7790
7769
|
});
|
|
7791
7770
|
const I = ua(Q, "modelValue", g);
|
|
@@ -7797,12 +7776,12 @@ const fa = { class: "flex pl5px" }, Fa = { class: "w160px py5px" }, Na = /* @__P
|
|
|
7797
7776
|
}
|
|
7798
7777
|
}
|
|
7799
7778
|
const o = K(!1);
|
|
7800
|
-
return oA(I,
|
|
7779
|
+
return oA(I, KQ(() => {
|
|
7801
7780
|
o.value = !t(I.value);
|
|
7802
7781
|
}, 300)), (s, i) => (f(), L("span", Ga, [
|
|
7803
7782
|
U(N(mE), {
|
|
7804
7783
|
modelValue: N(I),
|
|
7805
|
-
"onUpdate:modelValue": i[0] || (i[0] = (w) =>
|
|
7784
|
+
"onUpdate:modelValue": i[0] || (i[0] = (w) => HQ(I) ? I.value = w : null),
|
|
7806
7785
|
type: E.value,
|
|
7807
7786
|
variant: o.value ? "warning" : "normal",
|
|
7808
7787
|
class: eA(["h25px px4px", s.customType === "date" ? "w240px" : "w120px"]),
|
|
@@ -7818,7 +7797,7 @@ const fa = { class: "flex pl5px" }, Fa = { class: "w160px py5px" }, Na = /* @__P
|
|
|
7818
7797
|
onClick: i[2] || (i[2] = jA((w) => s.$emit("cancel"), ["stop"]))
|
|
7819
7798
|
}, {
|
|
7820
7799
|
icon: O(() => [
|
|
7821
|
-
U(N(
|
|
7800
|
+
U(N(MA), { icon: "i-material-symbols-cancel" })
|
|
7822
7801
|
]),
|
|
7823
7802
|
_: 1
|
|
7824
7803
|
})), [
|
|
@@ -7826,7 +7805,7 @@ const fa = { class: "flex pl5px" }, Fa = { class: "w160px py5px" }, Na = /* @__P
|
|
|
7826
7805
|
content: "Esc to cancel"
|
|
7827
7806
|
}]
|
|
7828
7807
|
]),
|
|
7829
|
-
o.value ? DA((f(), Z(N(
|
|
7808
|
+
o.value ? DA((f(), Z(N(MA), {
|
|
7830
7809
|
key: 1,
|
|
7831
7810
|
icon: "i-material-symbols-warning",
|
|
7832
7811
|
class: "color-warning-500 dark:color-warning-300"
|
|
@@ -7842,7 +7821,7 @@ const fa = { class: "flex pl5px" }, Fa = { class: "w160px py5px" }, Na = /* @__P
|
|
|
7842
7821
|
onClick: i[3] || (i[3] = jA((w) => s.$emit("submit"), ["stop"]))
|
|
7843
7822
|
}, {
|
|
7844
7823
|
icon: O(() => [
|
|
7845
|
-
U(N(
|
|
7824
|
+
U(N(MA), { icon: "i-material-symbols-save" })
|
|
7846
7825
|
]),
|
|
7847
7826
|
_: 1
|
|
7848
7827
|
})), [
|
|
@@ -7899,7 +7878,7 @@ function ya(A, B = {}) {
|
|
|
7899
7878
|
isHovering: C
|
|
7900
7879
|
};
|
|
7901
7880
|
}
|
|
7902
|
-
const mo = (A) => (
|
|
7881
|
+
const mo = (A) => (LQ("data-v-4631f32d"), A = A(), kQ(), A), La = {
|
|
7903
7882
|
key: 1,
|
|
7904
7883
|
pl5: ""
|
|
7905
7884
|
}, ka = {
|
|
@@ -7923,22 +7902,22 @@ const mo = (A) => (yQ("data-v-4631f32d"), A = A(), LQ(), A), La = {
|
|
|
7923
7902
|
customClass: {
|
|
7924
7903
|
string: "max-w-120 truncate"
|
|
7925
7904
|
}
|
|
7926
|
-
})), E = x(() =>
|
|
7905
|
+
})), E = x(() => aQ(B.data.value)), C = x(() => iC(B.data.value)), { expanded: e, toggleExpanded: I } = MC(B.expandedStateId ?? ""), t = x(() => {
|
|
7927
7906
|
var G;
|
|
7928
7907
|
return E.value === "custom" ? `${((G = B.data.value._custom) == null ? void 0 : G.type) ?? "string"}-custom-state` : "";
|
|
7929
7908
|
}), o = x(() => {
|
|
7930
7909
|
const { value: G } = C.value;
|
|
7931
7910
|
return OC(G) ? G.length : xC(G) ? Object.keys(G).length : 0;
|
|
7932
7911
|
}), n = x(() => B.data.path || [B.data.key]), s = x(() => n.value[n.value.length - 1]), i = x(() => {
|
|
7933
|
-
var _, X, T,
|
|
7912
|
+
var _, X, T, dA, aA, GA, kA;
|
|
7934
7913
|
const G = ["Reactive"], R = ((X = (_ = B.data) == null ? void 0 : _._custom) == null ? void 0 : X.stateTypeName) || ((T = B.data) == null ? void 0 : T.stateTypeName);
|
|
7935
7914
|
if (G.includes(R))
|
|
7936
7915
|
return R;
|
|
7937
|
-
if ((aA = (
|
|
7916
|
+
if ((aA = (dA = B.data.value) == null ? void 0 : dA.fields) != null && aA.abstract)
|
|
7938
7917
|
return "";
|
|
7939
7918
|
{
|
|
7940
|
-
const uA = (kA = (GA = B.data.value) == null ? void 0 : GA._custom) == null ? void 0 : kA.type, SA = E.value === "custom" && !uA ? `"${g.value}"` : g.value === "" ? '""' : g.value, KB = E.value === "custom" && uA === "ref" ?
|
|
7941
|
-
return R ? `${
|
|
7919
|
+
const uA = (kA = (GA = B.data.value) == null ? void 0 : GA._custom) == null ? void 0 : kA.type, SA = E.value === "custom" && !uA ? `"${g.value}"` : g.value === "" ? '""' : g.value, KB = E.value === "custom" && uA === "ref" ? aQ(SA) : E.value, CB = E.value === "string" ? "select-text" : "", TQ = `<span class="${KB}-state-type flex whitespace-nowrap ${CB}">${SA}</span>`;
|
|
7920
|
+
return R ? `${TQ} <span class="text-gray-500">(${R})</span>` : TQ;
|
|
7942
7921
|
}
|
|
7943
7922
|
}), w = x(() => {
|
|
7944
7923
|
const { value: G, inherit: R, customType: _ } = C.value, X = _ === "set";
|
|
@@ -7950,21 +7929,21 @@ const mo = (A) => (yQ("data-v-4631f32d"), A = A(), LQ(), A), La = {
|
|
|
7950
7929
|
...R,
|
|
7951
7930
|
editable: B.data.editable && !X,
|
|
7952
7931
|
creating: !1
|
|
7953
|
-
})) : (xC(G) && (T = Object.keys(G).slice(0, Q.value).map((
|
|
7954
|
-
key:
|
|
7955
|
-
path: [...n.value,
|
|
7956
|
-
value: G[
|
|
7932
|
+
})) : (xC(G) && (T = Object.keys(G).slice(0, Q.value).map((dA) => ({
|
|
7933
|
+
key: dA,
|
|
7934
|
+
path: [...n.value, dA],
|
|
7935
|
+
value: G[dA],
|
|
7957
7936
|
...R,
|
|
7958
7937
|
editable: B.data.editable && !X,
|
|
7959
7938
|
creating: !1
|
|
7960
7939
|
})), E.value !== "custom" && (T = ht(T))), T === B.data.value ? [] : T);
|
|
7961
|
-
}), r = x(() => w.value.length > 0), D = K(), a = hC(), { isHovering:
|
|
7962
|
-
oA(() =>
|
|
7940
|
+
}), r = x(() => w.value.length > 0), D = K(), a = hC(), { isHovering: u } = ya(() => D.value), { editingType: M, editing: c, editingText: l, toggleEditing: d, nodeId: F } = da();
|
|
7941
|
+
oA(() => c.value, (G) => {
|
|
7963
7942
|
if (G) {
|
|
7964
7943
|
const { value: R } = C.value;
|
|
7965
|
-
|
|
7944
|
+
l.value = Vw(R, C.value.customType);
|
|
7966
7945
|
} else
|
|
7967
|
-
|
|
7946
|
+
l.value = "";
|
|
7968
7947
|
});
|
|
7969
7948
|
async function S() {
|
|
7970
7949
|
const G = B.data;
|
|
@@ -7975,10 +7954,10 @@ const mo = (A) => (yQ("data-v-4631f32d"), A = A(), LQ(), A), La = {
|
|
|
7975
7954
|
nodeId: F.value,
|
|
7976
7955
|
state: {
|
|
7977
7956
|
newKey: null,
|
|
7978
|
-
type:
|
|
7979
|
-
value: Qg(
|
|
7957
|
+
type: M.value,
|
|
7958
|
+
value: Qg(l.value, C.value.customType)
|
|
7980
7959
|
}
|
|
7981
|
-
}), await q.value.sendInspectorState(a.value.inspectorId),
|
|
7960
|
+
}), await q.value.sendInspectorState(a.value.inspectorId), d();
|
|
7982
7961
|
}
|
|
7983
7962
|
const { addNewProp: J, draftingNewProp: W, resetDrafting: m } = pa();
|
|
7984
7963
|
function H(G) {
|
|
@@ -8013,12 +7992,12 @@ const mo = (A) => (yQ("data-v-4631f32d"), A = A(), LQ(), A), La = {
|
|
|
8013
7992
|
}, null, 8, ["value"])) : (f(), L("span", La)),
|
|
8014
7993
|
p("span", ka, NA(s.value), 1),
|
|
8015
7994
|
Ha,
|
|
8016
|
-
N(
|
|
7995
|
+
N(c) ? (f(), Z(iE, {
|
|
8017
7996
|
key: 2,
|
|
8018
|
-
modelValue: N(
|
|
8019
|
-
"onUpdate:modelValue": R[0] || (R[0] = (_) =>
|
|
7997
|
+
modelValue: N(l),
|
|
7998
|
+
"onUpdate:modelValue": R[0] || (R[0] = (_) => HQ(l) ? l.value = _ : null),
|
|
8020
7999
|
"custom-type": C.value.customType,
|
|
8021
|
-
onCancel: N(
|
|
8000
|
+
onCancel: N(d),
|
|
8022
8001
|
onSubmit: S
|
|
8023
8002
|
}, null, 8, ["modelValue", "custom-type", "onCancel"])) : $("", !0),
|
|
8024
8003
|
p("span", {
|
|
@@ -8030,11 +8009,11 @@ const mo = (A) => (yQ("data-v-4631f32d"), A = A(), LQ(), A), La = {
|
|
|
8030
8009
|
}, null, 8, Ra)
|
|
8031
8010
|
], 2),
|
|
8032
8011
|
U(Na, {
|
|
8033
|
-
hovering: N(
|
|
8012
|
+
hovering: N(u),
|
|
8034
8013
|
"disable-edit": N(a).disableEdit,
|
|
8035
8014
|
data: G.data,
|
|
8036
8015
|
depth: G.depth,
|
|
8037
|
-
onEnableEditInput: N(
|
|
8016
|
+
onEnableEditInput: N(d),
|
|
8038
8017
|
onAddNewProp: H
|
|
8039
8018
|
}, null, 8, ["hovering", "disable-edit", "data", "depth", "onEnableEditInput"])
|
|
8040
8019
|
], 6),
|
|
@@ -8052,7 +8031,7 @@ const mo = (A) => (yQ("data-v-4631f32d"), A = A(), LQ(), A), La = {
|
|
|
8052
8031
|
onClick: R[2] || (R[2] = (_) => Q.value += iI)
|
|
8053
8032
|
}, {
|
|
8054
8033
|
icon: O(() => [
|
|
8055
|
-
U(N(
|
|
8034
|
+
U(N(MA), { icon: "i-material-symbols-more-horiz" })
|
|
8056
8035
|
]),
|
|
8057
8036
|
_: 1
|
|
8058
8037
|
})), [
|
|
@@ -8107,7 +8086,7 @@ const mo = (A) => (yQ("data-v-4631f32d"), A = A(), LQ(), A), La = {
|
|
|
8107
8086
|
}, xa = {
|
|
8108
8087
|
"font-state-field": "",
|
|
8109
8088
|
"text-13px": ""
|
|
8110
|
-
}, Oa = { key: 0 },
|
|
8089
|
+
}, Oa = { key: 0 }, mQ = /* @__PURE__ */ z({
|
|
8111
8090
|
__name: "RootStateViewer",
|
|
8112
8091
|
props: {
|
|
8113
8092
|
data: {},
|
|
@@ -8126,7 +8105,7 @@ const mo = (A) => (yQ("data-v-4631f32d"), A = A(), LQ(), A), La = {
|
|
|
8126
8105
|
};
|
|
8127
8106
|
}
|
|
8128
8107
|
const { context: g } = ha(Q());
|
|
8129
|
-
|
|
8108
|
+
nQ(() => {
|
|
8130
8109
|
g.value = Q();
|
|
8131
8110
|
});
|
|
8132
8111
|
const { expanded: E, toggleExpanded: C } = MC(B.expandedStateId);
|
|
@@ -8246,7 +8225,7 @@ const Za = ["onClick", "onDblclick"], Va = {
|
|
|
8246
8225
|
}, Ac = {
|
|
8247
8226
|
key: 1,
|
|
8248
8227
|
class: "text-gray-400 dark:text-gray-600 group-hover:text-white group-hover:op50 [.active_&]:op50 [.active_&]:text-white!"
|
|
8249
|
-
}, Bc = { key: 0 },
|
|
8228
|
+
}, Bc = { key: 0 }, JQ = /* @__PURE__ */ z({
|
|
8250
8229
|
__name: "TreeViewer",
|
|
8251
8230
|
props: /* @__PURE__ */ at({
|
|
8252
8231
|
data: {},
|
|
@@ -8297,7 +8276,7 @@ const Za = ["onClick", "onDblclick"], Va = {
|
|
|
8297
8276
|
}, null, 8, ["tag"]))), 128))
|
|
8298
8277
|
], 46, Za),
|
|
8299
8278
|
(s = t == null ? void 0 : t.children) != null && s.length && N(Q).includes(t.id) ? (f(), L("div", Bc, [
|
|
8300
|
-
U(
|
|
8279
|
+
U(JQ, {
|
|
8301
8280
|
modelValue: B.value,
|
|
8302
8281
|
"onUpdate:modelValue": I[0] || (I[0] = (i) => B.value = i),
|
|
8303
8282
|
data: t == null ? void 0 : t.children,
|
|
@@ -8323,43 +8302,43 @@ const Za = ["onClick", "onDblclick"], Va = {
|
|
|
8323
8302
|
__name: "Index",
|
|
8324
8303
|
setup(A) {
|
|
8325
8304
|
const { expanded: B } = BB(), { expanded: Q } = BB("pinia-store-state"), g = K(""), E = K([]), C = x(() => {
|
|
8326
|
-
var
|
|
8327
|
-
return (
|
|
8328
|
-
}), e = x(() => i(E.value)), I = x(() => e.value.map((
|
|
8329
|
-
var
|
|
8330
|
-
return !((
|
|
8305
|
+
var c, l;
|
|
8306
|
+
return (c = E.value) != null && c.length ? n((l = E.value) == null ? void 0 : l[0]) : [];
|
|
8307
|
+
}), e = x(() => i(E.value)), I = x(() => e.value.map((c) => c.id)), t = K({}), o = x(() => {
|
|
8308
|
+
var c, l;
|
|
8309
|
+
return !((c = t.value.state) != null && c.length) && !((l = t.value.getters) != null && l.length);
|
|
8331
8310
|
});
|
|
8332
|
-
function n(
|
|
8311
|
+
function n(c, l = [], d = []) {
|
|
8333
8312
|
var F;
|
|
8334
|
-
return
|
|
8335
|
-
n(S,
|
|
8336
|
-
}),
|
|
8313
|
+
return l.push(c.id), ((F = c.children) == null ? void 0 : F.length) === 0 && d.push([...l]), Array.isArray(c.children) && c.children.forEach((S) => {
|
|
8314
|
+
n(S, l, d);
|
|
8315
|
+
}), l.pop(), d;
|
|
8337
8316
|
}
|
|
8338
|
-
function s(
|
|
8339
|
-
const
|
|
8340
|
-
return
|
|
8341
|
-
|
|
8342
|
-
}), [...new Set(
|
|
8317
|
+
function s(c, l) {
|
|
8318
|
+
const d = [];
|
|
8319
|
+
return c == null || c.forEach((F) => {
|
|
8320
|
+
d.push(...F.slice(0, l + 1));
|
|
8321
|
+
}), [...new Set(d)];
|
|
8343
8322
|
}
|
|
8344
|
-
function i(
|
|
8345
|
-
const
|
|
8323
|
+
function i(c) {
|
|
8324
|
+
const l = [], d = (F) => {
|
|
8346
8325
|
F == null || F.forEach((S) => {
|
|
8347
8326
|
var J;
|
|
8348
|
-
|
|
8327
|
+
l.push(S), (J = S.children) != null && J.length && d(S.children);
|
|
8349
8328
|
});
|
|
8350
8329
|
};
|
|
8351
|
-
return
|
|
8330
|
+
return d(c), l;
|
|
8352
8331
|
}
|
|
8353
|
-
function w(
|
|
8354
|
-
var
|
|
8355
|
-
for (const
|
|
8356
|
-
(
|
|
8357
|
-
return
|
|
8332
|
+
function w(c) {
|
|
8333
|
+
var l;
|
|
8334
|
+
for (const d in c)
|
|
8335
|
+
(l = c[d]) != null && l.length || delete c[d];
|
|
8336
|
+
return c;
|
|
8358
8337
|
}
|
|
8359
|
-
function r(
|
|
8360
|
-
q.value.getInspectorState({ inspectorId: jB, nodeId:
|
|
8361
|
-
const
|
|
8362
|
-
|
|
8338
|
+
function r(c) {
|
|
8339
|
+
q.value.getInspectorState({ inspectorId: jB, nodeId: c }).then((l) => {
|
|
8340
|
+
const d = lA(l);
|
|
8341
|
+
d && (t.value = w(d), Q.value = Array.from({ length: Object.keys(t.value).length }, (F, S) => `${S}`));
|
|
8363
8342
|
});
|
|
8364
8343
|
}
|
|
8365
8344
|
function D() {
|
|
@@ -8368,28 +8347,28 @@ const Za = ["onClick", "onDblclick"], Va = {
|
|
|
8368
8347
|
oA(g, () => {
|
|
8369
8348
|
D(), r(g.value);
|
|
8370
8349
|
}), (() => {
|
|
8371
|
-
q.value.getInspectorTree({ inspectorId: jB, filter: "" }).then((
|
|
8372
|
-
const
|
|
8373
|
-
E.value =
|
|
8350
|
+
q.value.getInspectorTree({ inspectorId: jB, filter: "" }).then((c) => {
|
|
8351
|
+
const l = lA(c);
|
|
8352
|
+
E.value = l, !g.value && l.length && (g.value = l[0].id, r(l[0].id), B.value = s(C.value, 1));
|
|
8374
8353
|
});
|
|
8375
8354
|
})();
|
|
8376
|
-
function c
|
|
8377
|
-
const
|
|
8378
|
-
|
|
8355
|
+
function u(c) {
|
|
8356
|
+
const l = lA(c);
|
|
8357
|
+
l.inspectorId !== jB || !l.rootNodes.length || (E.value = l.rootNodes, I.value.includes(g.value) || (g.value = l.rootNodes[0].id, B.value = s(C.value, 1), r(l.rootNodes[0].id)));
|
|
8379
8358
|
}
|
|
8380
|
-
function
|
|
8381
|
-
const
|
|
8382
|
-
if (
|
|
8359
|
+
function M(c) {
|
|
8360
|
+
const l = lA(c);
|
|
8361
|
+
if (l.inspectorId !== jB)
|
|
8383
8362
|
return;
|
|
8384
|
-
const
|
|
8363
|
+
const d = l.state;
|
|
8385
8364
|
t.value = w({
|
|
8386
|
-
state:
|
|
8387
|
-
getters:
|
|
8365
|
+
state: d.state,
|
|
8366
|
+
getters: d.getters
|
|
8388
8367
|
});
|
|
8389
8368
|
}
|
|
8390
|
-
return q.functions.on(IA.INSPECTOR_TREE_UPDATED,
|
|
8391
|
-
q.functions.off(IA.INSPECTOR_TREE_UPDATED,
|
|
8392
|
-
}), (
|
|
8369
|
+
return q.functions.on(IA.INSPECTOR_TREE_UPDATED, u), q.functions.on(IA.INSPECTOR_STATE_UPDATED, M), LB(() => {
|
|
8370
|
+
q.functions.off(IA.INSPECTOR_TREE_UPDATED, u), q.functions.off(IA.INSPECTOR_STATE_UPDATED, M);
|
|
8371
|
+
}), (c, l) => (f(), L("div", Qc, [
|
|
8393
8372
|
U(Og, {
|
|
8394
8373
|
"doc-link": "https://pinia.vuejs.org/",
|
|
8395
8374
|
"github-repo-link": "https://github.com/vuejs/pinia"
|
|
@@ -8399,7 +8378,7 @@ const Za = ["onClick", "onDblclick"], Va = {
|
|
|
8399
8378
|
]),
|
|
8400
8379
|
_: 1
|
|
8401
8380
|
}),
|
|
8402
|
-
U(N(
|
|
8381
|
+
U(N(PQ), { class: "flex-1 overflow-auto" }, {
|
|
8403
8382
|
default: O(() => [
|
|
8404
8383
|
U(N(_A), {
|
|
8405
8384
|
border: "r base",
|
|
@@ -8408,9 +8387,9 @@ const Za = ["onClick", "onDblclick"], Va = {
|
|
|
8408
8387
|
}, {
|
|
8409
8388
|
default: O(() => [
|
|
8410
8389
|
p("div", gc, [
|
|
8411
|
-
U(
|
|
8390
|
+
U(JQ, {
|
|
8412
8391
|
modelValue: g.value,
|
|
8413
|
-
"onUpdate:modelValue":
|
|
8392
|
+
"onUpdate:modelValue": l[0] || (l[0] = (d) => g.value = d),
|
|
8414
8393
|
data: E.value
|
|
8415
8394
|
}, null, 8, ["modelValue", "data"])
|
|
8416
8395
|
])
|
|
@@ -8420,14 +8399,14 @@ const Za = ["onClick", "onDblclick"], Va = {
|
|
|
8420
8399
|
U(N(_A), { size: "60" }, {
|
|
8421
8400
|
default: O(() => [
|
|
8422
8401
|
p("div", Ec, [
|
|
8423
|
-
g.value && !o.value ? (f(), Z(
|
|
8402
|
+
g.value && !o.value ? (f(), Z(mQ, {
|
|
8424
8403
|
key: 0,
|
|
8425
8404
|
class: "p3",
|
|
8426
8405
|
data: t.value,
|
|
8427
8406
|
"node-id": g.value,
|
|
8428
8407
|
"inspector-id": jB,
|
|
8429
8408
|
"expanded-state-id": "pinia-store-state"
|
|
8430
|
-
}, null, 8, ["data", "node-id"])) : (f(), Z(
|
|
8409
|
+
}, null, 8, ["data", "node-id"])) : (f(), Z(cQ, { key: 1 }, {
|
|
8431
8410
|
default: O(() => [
|
|
8432
8411
|
rA(" No Data ")
|
|
8433
8412
|
]),
|
|
@@ -8507,12 +8486,12 @@ var Xg = {
|
|
|
8507
8486
|
}
|
|
8508
8487
|
};
|
|
8509
8488
|
const Ic = /* @__PURE__ */ nt("data-v-b329ee4c");
|
|
8510
|
-
|
|
8489
|
+
LQ("data-v-b329ee4c");
|
|
8511
8490
|
const tc = {
|
|
8512
8491
|
class: "resize-observer",
|
|
8513
8492
|
tabindex: "-1"
|
|
8514
8493
|
};
|
|
8515
|
-
|
|
8494
|
+
kQ();
|
|
8516
8495
|
const oc = /* @__PURE__ */ Ic((A, B, Q, g, E, C) => (f(), Z("div", tc)));
|
|
8517
8496
|
Xg.render = oc;
|
|
8518
8497
|
Xg.__scopeId = "data-v-b329ee4c";
|
|
@@ -8542,28 +8521,22 @@ function aI(A) {
|
|
|
8542
8521
|
return ic(A) || wc(A) || Dc(A) || rc();
|
|
8543
8522
|
}
|
|
8544
8523
|
function ic(A) {
|
|
8545
|
-
if (Array.isArray(A))
|
|
8546
|
-
return xE(A);
|
|
8524
|
+
if (Array.isArray(A)) return xE(A);
|
|
8547
8525
|
}
|
|
8548
8526
|
function wc(A) {
|
|
8549
|
-
if (typeof Symbol < "u" && Symbol.iterator in Object(A))
|
|
8550
|
-
return Array.from(A);
|
|
8527
|
+
if (typeof Symbol < "u" && Symbol.iterator in Object(A)) return Array.from(A);
|
|
8551
8528
|
}
|
|
8552
8529
|
function Dc(A, B) {
|
|
8553
8530
|
if (A) {
|
|
8554
|
-
if (typeof A == "string")
|
|
8555
|
-
return xE(A, B);
|
|
8531
|
+
if (typeof A == "string") return xE(A, B);
|
|
8556
8532
|
var Q = Object.prototype.toString.call(A).slice(8, -1);
|
|
8557
|
-
if (Q === "Object" && A.constructor && (Q = A.constructor.name), Q === "Map" || Q === "Set")
|
|
8558
|
-
|
|
8559
|
-
if (Q === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Q))
|
|
8560
|
-
return xE(A, B);
|
|
8533
|
+
if (Q === "Object" && A.constructor && (Q = A.constructor.name), Q === "Map" || Q === "Set") return Array.from(A);
|
|
8534
|
+
if (Q === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Q)) return xE(A, B);
|
|
8561
8535
|
}
|
|
8562
8536
|
}
|
|
8563
8537
|
function xE(A, B) {
|
|
8564
8538
|
(B == null || B > A.length) && (B = A.length);
|
|
8565
|
-
for (var Q = 0, g = new Array(B); Q < B; Q++)
|
|
8566
|
-
g[Q] = A[Q];
|
|
8539
|
+
for (var Q = 0, g = new Array(B); Q < B; Q++) g[Q] = A[Q];
|
|
8567
8540
|
return g;
|
|
8568
8541
|
}
|
|
8569
8542
|
function rc() {
|
|
@@ -8592,8 +8565,7 @@ function cc(A, B) {
|
|
|
8592
8565
|
}, e;
|
|
8593
8566
|
}
|
|
8594
8567
|
function To(A, B) {
|
|
8595
|
-
if (A === B)
|
|
8596
|
-
return !0;
|
|
8568
|
+
if (A === B) return !0;
|
|
8597
8569
|
if (Cg(A) === "object") {
|
|
8598
8570
|
for (var Q in A)
|
|
8599
8571
|
if (!To(A[Q], B[Q]))
|
|
@@ -8631,8 +8603,7 @@ var lc = /* @__PURE__ */ function() {
|
|
|
8631
8603
|
}
|
|
8632
8604
|
if (E.callback) {
|
|
8633
8605
|
var n = t.isIntersecting && t.intersectionRatio >= E.threshold;
|
|
8634
|
-
if (n === E.oldResult)
|
|
8635
|
-
return;
|
|
8606
|
+
if (n === E.oldResult) return;
|
|
8636
8607
|
E.oldResult = n, E.callback(n, t);
|
|
8637
8608
|
}
|
|
8638
8609
|
}, this.options.intersection), rB(function() {
|
|
@@ -8928,8 +8899,7 @@ var pC = {
|
|
|
8928
8899
|
},
|
|
8929
8900
|
handleScroll(A) {
|
|
8930
8901
|
if (!this.$_scrollDirty) {
|
|
8931
|
-
if (this.$_scrollDirty = !0, this.$_updateTimeout)
|
|
8932
|
-
return;
|
|
8902
|
+
if (this.$_scrollDirty = !0, this.$_updateTimeout) return;
|
|
8933
8903
|
const B = () => requestAnimationFrame(() => {
|
|
8934
8904
|
this.$_scrollDirty = !1;
|
|
8935
8905
|
const { continuous: Q } = this.updateVisibleItems(!1, !0);
|
|
@@ -8947,11 +8917,11 @@ var pC = {
|
|
|
8947
8917
|
},
|
|
8948
8918
|
updateVisibleItems(A, B = !1) {
|
|
8949
8919
|
const Q = this.itemSize, g = this.gridItems || 1, E = this.itemSecondarySize || Q, C = this.$_computedMinItemSize, e = this.typeField, I = this.simpleArray ? null : this.keyField, t = this.items, o = t.length, n = this.sizes, s = this.$_views, i = this.$_unusedViews, w = this.pool, r = this.itemIndexByKey;
|
|
8950
|
-
let D, a,
|
|
8920
|
+
let D, a, u, M, c;
|
|
8951
8921
|
if (!o)
|
|
8952
|
-
D = a =
|
|
8922
|
+
D = a = M = c = u = 0;
|
|
8953
8923
|
else if (this.$_prerender)
|
|
8954
|
-
D =
|
|
8924
|
+
D = M = 0, a = c = Math.min(this.prerender, t.length), u = null;
|
|
8955
8925
|
else {
|
|
8956
8926
|
const m = this.getScroll();
|
|
8957
8927
|
if (B) {
|
|
@@ -8974,47 +8944,44 @@ var pC = {
|
|
|
8974
8944
|
do
|
|
8975
8945
|
T = X, G = n[X].accumulator, G < m.start ? R = X : X < o - 1 && n[X + 1].accumulator > m.start && (_ = X), X = ~~((R + _) / 2);
|
|
8976
8946
|
while (X !== T);
|
|
8977
|
-
for (X < 0 && (X = 0), D = X,
|
|
8978
|
-
|
|
8979
|
-
for (
|
|
8980
|
-
;
|
|
8981
|
-
for (l = d; l < o && P + n[l].accumulator < m.end; l++)
|
|
8982
|
-
;
|
|
8947
|
+
for (X < 0 && (X = 0), D = X, u = n[o - 1].accumulator, a = X; a < o && n[a].accumulator < m.end; a++) ;
|
|
8948
|
+
for (a === -1 ? a = t.length - 1 : (a++, a > o && (a = o)), M = D; M < o && P + n[M].accumulator < m.start; M++) ;
|
|
8949
|
+
for (c = M; c < o && P + n[c].accumulator < m.end; c++) ;
|
|
8983
8950
|
} else {
|
|
8984
8951
|
D = ~~(m.start / Q * g);
|
|
8985
8952
|
const G = D % g;
|
|
8986
|
-
D -= G, a = Math.ceil(m.end / Q * g),
|
|
8953
|
+
D -= G, a = Math.ceil(m.end / Q * g), M = Math.max(0, Math.floor((m.start - P) / Q * g)), c = Math.floor((m.end - P) / Q * g), D < 0 && (D = 0), a > o && (a = o), M < 0 && (M = 0), c > o && (c = o), u = Math.ceil(o / g) * Q;
|
|
8987
8954
|
}
|
|
8988
8955
|
}
|
|
8989
|
-
a - D > dc.itemsLimit && this.itemsLimitError(), this.totalSize =
|
|
8990
|
-
let
|
|
8991
|
-
const
|
|
8992
|
-
if (
|
|
8956
|
+
a - D > dc.itemsLimit && this.itemsLimitError(), this.totalSize = u;
|
|
8957
|
+
let l;
|
|
8958
|
+
const d = D <= this.$_endIndex && a >= this.$_startIndex;
|
|
8959
|
+
if (d)
|
|
8993
8960
|
for (let m = 0, H = w.length; m < H; m++)
|
|
8994
|
-
|
|
8995
|
-
const F =
|
|
8961
|
+
l = w[m], l.nr.used && (A && (l.nr.index = r[l.item[I]]), (l.nr.index == null || l.nr.index < D || l.nr.index >= a) && this.unuseView(l));
|
|
8962
|
+
const F = d ? null : /* @__PURE__ */ new Map();
|
|
8996
8963
|
let S, J, W;
|
|
8997
8964
|
for (let m = D; m < a; m++) {
|
|
8998
8965
|
S = t[m];
|
|
8999
8966
|
const H = I ? S[I] : S;
|
|
9000
8967
|
if (H == null)
|
|
9001
8968
|
throw new Error(`Key is ${H} on item (keyField is '${I}')`);
|
|
9002
|
-
if (
|
|
9003
|
-
|
|
8969
|
+
if (l = s.get(H), !Q && !n[m].size) {
|
|
8970
|
+
l && this.unuseView(l);
|
|
9004
8971
|
continue;
|
|
9005
8972
|
}
|
|
9006
8973
|
J = S[e];
|
|
9007
8974
|
let P = i.get(J), G = !1;
|
|
9008
|
-
if (!
|
|
9009
|
-
|
|
9010
|
-
else if (!
|
|
9011
|
-
const R = P.indexOf(
|
|
8975
|
+
if (!l)
|
|
8976
|
+
d ? P && P.length ? l = P.pop() : l = this.addView(w, m, S, H, J) : (W = F.get(J) || 0, (!P || W >= P.length) && (l = this.addView(w, m, S, H, J), this.unuseView(l, !0), P = i.get(J)), l = P[W], F.set(J, W + 1)), s.delete(l.nr.key), l.nr.used = !0, l.nr.index = m, l.nr.key = H, l.nr.type = J, s.set(H, l), G = !0;
|
|
8977
|
+
else if (!l.nr.used && (l.nr.used = !0, G = !0, P)) {
|
|
8978
|
+
const R = P.indexOf(l);
|
|
9012
8979
|
R !== -1 && P.splice(R, 1);
|
|
9013
8980
|
}
|
|
9014
|
-
|
|
8981
|
+
l.item = S, G && (m === t.length - 1 && this.$emit("scroll-end"), m === 0 && this.$emit("scroll-start")), Q === null ? (l.position = n[m - 1].accumulator, l.offset = 0) : (l.position = Math.floor(m / g) * Q, l.offset = m % g * E);
|
|
9015
8982
|
}
|
|
9016
|
-
return this.$_startIndex = D, this.$_endIndex = a, this.emitUpdate && this.$emit("update", D, a,
|
|
9017
|
-
continuous:
|
|
8983
|
+
return this.$_startIndex = D, this.$_endIndex = a, this.emitUpdate && this.$emit("update", D, a, M, c), clearTimeout(this.$_sortTimer), this.$_sortTimer = setTimeout(this.sortViews, this.updateInterval + 300), {
|
|
8984
|
+
continuous: d
|
|
9018
8985
|
};
|
|
9019
8986
|
},
|
|
9020
8987
|
getListenerTarget() {
|
|
@@ -9031,14 +8998,13 @@ var pC = {
|
|
|
9031
8998
|
start: e,
|
|
9032
8999
|
end: e + I
|
|
9033
9000
|
};
|
|
9034
|
-
} else
|
|
9035
|
-
|
|
9036
|
-
|
|
9037
|
-
|
|
9038
|
-
|
|
9039
|
-
|
|
9040
|
-
|
|
9041
|
-
};
|
|
9001
|
+
} else Q ? g = {
|
|
9002
|
+
start: A.scrollTop,
|
|
9003
|
+
end: A.scrollTop + A.clientHeight
|
|
9004
|
+
} : g = {
|
|
9005
|
+
start: A.scrollLeft,
|
|
9006
|
+
end: A.scrollLeft + A.clientWidth
|
|
9007
|
+
};
|
|
9042
9008
|
return g;
|
|
9043
9009
|
},
|
|
9044
9010
|
applyPageMode() {
|
|
@@ -9279,17 +9245,17 @@ const Rc = { class: "p3" }, Pc = ["onClick"], Uc = {
|
|
|
9279
9245
|
var r, D, a;
|
|
9280
9246
|
const i = (r = e.value) == null ? void 0 : r.groupId, w = E.value.get(i);
|
|
9281
9247
|
if (w) {
|
|
9282
|
-
const
|
|
9248
|
+
const u = ((D = w[w.length - 1]) == null ? void 0 : D.time) - (((a = w[0]) == null ? void 0 : a.time) ?? 0);
|
|
9283
9249
|
return [{
|
|
9284
9250
|
key: "events",
|
|
9285
9251
|
type: "events",
|
|
9286
9252
|
editable: !1,
|
|
9287
9253
|
value: w.length
|
|
9288
|
-
},
|
|
9254
|
+
}, u && {
|
|
9289
9255
|
key: "duration",
|
|
9290
9256
|
type: "duration",
|
|
9291
9257
|
editable: !1,
|
|
9292
|
-
value: `${
|
|
9258
|
+
value: `${u}ms`
|
|
9293
9259
|
}].filter(Boolean);
|
|
9294
9260
|
}
|
|
9295
9261
|
}), o = x(() => ({ "Event Info": I.value, ...t.value && { "Group Info": t.value } }));
|
|
@@ -9318,7 +9284,7 @@ const Rc = { class: "p3" }, Pc = ["onClick"], Uc = {
|
|
|
9318
9284
|
_: 1
|
|
9319
9285
|
}, 8, ["doc-link", "github-repo-link"]),
|
|
9320
9286
|
g.value.length ? (f(), L("div", xc, [
|
|
9321
|
-
U(N(
|
|
9287
|
+
U(N(PQ), { class: "h-full" }, {
|
|
9322
9288
|
default: O(() => [
|
|
9323
9289
|
U(N(_A), {
|
|
9324
9290
|
border: "r base",
|
|
@@ -9339,7 +9305,7 @@ const Rc = { class: "p3" }, Pc = ["onClick"], Uc = {
|
|
|
9339
9305
|
U(N(_A), { size: "60" }, {
|
|
9340
9306
|
default: O(() => [
|
|
9341
9307
|
p("div", vc, [
|
|
9342
|
-
U(
|
|
9308
|
+
U(mQ, {
|
|
9343
9309
|
class: "p3",
|
|
9344
9310
|
data: o.value,
|
|
9345
9311
|
"node-id": "",
|
|
@@ -9354,7 +9320,7 @@ const Rc = { class: "p3" }, Pc = ["onClick"], Uc = {
|
|
|
9354
9320
|
]),
|
|
9355
9321
|
_: 1
|
|
9356
9322
|
})
|
|
9357
|
-
])) : (f(), Z(
|
|
9323
|
+
])) : (f(), Z(cQ, {
|
|
9358
9324
|
key: 1,
|
|
9359
9325
|
class: "flex-1"
|
|
9360
9326
|
}, {
|
|
@@ -9563,9 +9529,9 @@ function Cu(A) {
|
|
|
9563
9529
|
return A(B);
|
|
9564
9530
|
};
|
|
9565
9531
|
}
|
|
9566
|
-
var gs = typeof exports == "object" && exports && !exports.nodeType && exports,
|
|
9532
|
+
var gs = typeof exports == "object" && exports && !exports.nodeType && exports, oQ = gs && typeof module == "object" && module && !module.nodeType && module, eu = oQ && oQ.exports === gs, rE = eu && Xo.process, NI = function() {
|
|
9567
9533
|
try {
|
|
9568
|
-
var A =
|
|
9534
|
+
var A = oQ && oQ.require && oQ.require("util").types;
|
|
9569
9535
|
return A || rE && rE.binding && rE.binding("util");
|
|
9570
9536
|
} catch {
|
|
9571
9537
|
}
|
|
@@ -9604,9 +9570,9 @@ function kC(A, B) {
|
|
|
9604
9570
|
var Q = typeof A;
|
|
9605
9571
|
return Q == "number" || Q == "symbol" || Q == "boolean" || A == null || FC(A) ? !0 : au.test(A) || !ru.test(A) || B != null && A in Object(B);
|
|
9606
9572
|
}
|
|
9607
|
-
var
|
|
9573
|
+
var pQ = PB(Object, "create");
|
|
9608
9574
|
function cu() {
|
|
9609
|
-
this.__data__ =
|
|
9575
|
+
this.__data__ = pQ ? pQ(null) : {}, this.size = 0;
|
|
9610
9576
|
}
|
|
9611
9577
|
function lu(A) {
|
|
9612
9578
|
var B = this.has(A) && delete this.__data__[A];
|
|
@@ -9615,7 +9581,7 @@ function lu(A) {
|
|
|
9615
9581
|
var uu = "__lodash_hash_undefined__", hu = Object.prototype, du = hu.hasOwnProperty;
|
|
9616
9582
|
function Mu(A) {
|
|
9617
9583
|
var B = this.__data__;
|
|
9618
|
-
if (
|
|
9584
|
+
if (pQ) {
|
|
9619
9585
|
var Q = B[A];
|
|
9620
9586
|
return Q === uu ? void 0 : Q;
|
|
9621
9587
|
}
|
|
@@ -9624,12 +9590,12 @@ function Mu(A) {
|
|
|
9624
9590
|
var pu = Object.prototype, fu = pu.hasOwnProperty;
|
|
9625
9591
|
function Fu(A) {
|
|
9626
9592
|
var B = this.__data__;
|
|
9627
|
-
return
|
|
9593
|
+
return pQ ? B[A] !== void 0 : fu.call(B, A);
|
|
9628
9594
|
}
|
|
9629
9595
|
var Nu = "__lodash_hash_undefined__";
|
|
9630
9596
|
function Gu(A, B) {
|
|
9631
9597
|
var Q = this.__data__;
|
|
9632
|
-
return this.size += this.has(A) ? 0 : 1, Q[A] =
|
|
9598
|
+
return this.size += this.has(A) ? 0 : 1, Q[A] = pQ && B === void 0 ? Nu : B, this;
|
|
9633
9599
|
}
|
|
9634
9600
|
function GB(A) {
|
|
9635
9601
|
var B = -1, Q = A == null ? 0 : A.length;
|
|
@@ -9683,11 +9649,11 @@ gB.prototype.delete = Hu;
|
|
|
9683
9649
|
gB.prototype.get = Ru;
|
|
9684
9650
|
gB.prototype.has = Pu;
|
|
9685
9651
|
gB.prototype.set = Uu;
|
|
9686
|
-
var
|
|
9652
|
+
var fQ = PB(QB, "Map");
|
|
9687
9653
|
function Ku() {
|
|
9688
9654
|
this.size = 0, this.__data__ = {
|
|
9689
9655
|
hash: new GB(),
|
|
9690
|
-
map: new (
|
|
9656
|
+
map: new (fQ || gB)(),
|
|
9691
9657
|
string: new GB()
|
|
9692
9658
|
};
|
|
9693
9659
|
}
|
|
@@ -9814,7 +9780,7 @@ function g0(A, B) {
|
|
|
9814
9780
|
var Q = this.__data__;
|
|
9815
9781
|
if (Q instanceof gB) {
|
|
9816
9782
|
var g = Q.__data__;
|
|
9817
|
-
if (!
|
|
9783
|
+
if (!fQ || g.length < Q0 - 1)
|
|
9818
9784
|
return g.push([A, B]), this.size = ++Q.size, this;
|
|
9819
9785
|
Q = this.__data__ = new EB(g);
|
|
9820
9786
|
}
|
|
@@ -9858,8 +9824,8 @@ var i0 = PB(QB, "Promise");
|
|
|
9858
9824
|
const _E = i0;
|
|
9859
9825
|
var w0 = PB(QB, "Set");
|
|
9860
9826
|
const WE = w0;
|
|
9861
|
-
var HI = "[object Map]", D0 = "[object Object]", RI = "[object Promise]", PI = "[object Set]", UI = "[object WeakMap]", KI = "[object DataView]", r0 = RB(qE), a0 = RB(
|
|
9862
|
-
(qE && lB(new qE(new ArrayBuffer(1))) != KI ||
|
|
9827
|
+
var HI = "[object Map]", D0 = "[object Object]", RI = "[object Promise]", PI = "[object Set]", UI = "[object WeakMap]", KI = "[object DataView]", r0 = RB(qE), a0 = RB(fQ), c0 = RB(_E), l0 = RB(WE), u0 = RB(bE), lB = ZB;
|
|
9828
|
+
(qE && lB(new qE(new ArrayBuffer(1))) != KI || fQ && lB(new fQ()) != HI || _E && lB(_E.resolve()) != RI || WE && lB(new WE()) != PI || bE && lB(new bE()) != UI) && (lB = function(A) {
|
|
9863
9829
|
var B = ZB(A), Q = B == D0 ? A.constructor : void 0, g = Q ? RB(Q) : "";
|
|
9864
9830
|
if (g)
|
|
9865
9831
|
switch (g) {
|
|
@@ -9922,9 +9888,9 @@ function os(A, B, Q, g, E, C) {
|
|
|
9922
9888
|
break;
|
|
9923
9889
|
}
|
|
9924
9890
|
if (w) {
|
|
9925
|
-
if (!f0(B, function(
|
|
9926
|
-
if (!F0(w,
|
|
9927
|
-
return w.push(
|
|
9891
|
+
if (!f0(B, function(u, M) {
|
|
9892
|
+
if (!F0(w, M) && (r === u || E(r, u, Q, g, C)))
|
|
9893
|
+
return w.push(M);
|
|
9928
9894
|
})) {
|
|
9929
9895
|
i = !1;
|
|
9930
9896
|
break;
|
|
@@ -10001,26 +9967,26 @@ function W0(A, B, Q, g, E, C) {
|
|
|
10001
9967
|
C.set(A, B), C.set(B, A);
|
|
10002
9968
|
for (var a = e; ++s < t; ) {
|
|
10003
9969
|
i = I[s];
|
|
10004
|
-
var
|
|
9970
|
+
var u = A[i], M = B[i];
|
|
10005
9971
|
if (g)
|
|
10006
|
-
var
|
|
10007
|
-
if (!(
|
|
9972
|
+
var c = e ? g(M, u, i, B, A, C) : g(u, M, i, A, B, C);
|
|
9973
|
+
if (!(c === void 0 ? u === M || E(u, M, Q, g, C) : c)) {
|
|
10008
9974
|
D = !1;
|
|
10009
9975
|
break;
|
|
10010
9976
|
}
|
|
10011
9977
|
a || (a = i == "constructor");
|
|
10012
9978
|
}
|
|
10013
9979
|
if (D && !a) {
|
|
10014
|
-
var
|
|
10015
|
-
|
|
9980
|
+
var l = A.constructor, d = B.constructor;
|
|
9981
|
+
l != d && "constructor" in A && "constructor" in B && !(typeof l == "function" && l instanceof l && typeof d == "function" && d instanceof d) && (D = !1);
|
|
10016
9982
|
}
|
|
10017
9983
|
return C.delete(A), C.delete(B), D;
|
|
10018
9984
|
}
|
|
10019
|
-
var X0 = 1, JI = "[object Arguments]", xI = "[object Array]",
|
|
9985
|
+
var X0 = 1, JI = "[object Arguments]", xI = "[object Array]", XQ = "[object Object]", Z0 = Object.prototype, OI = Z0.hasOwnProperty;
|
|
10020
9986
|
function V0(A, B, Q, g, E, C) {
|
|
10021
9987
|
var e = OA(A), I = OA(B), t = e ? xI : YI(A), o = I ? xI : YI(B);
|
|
10022
|
-
t = t == JI ?
|
|
10023
|
-
var n = t ==
|
|
9988
|
+
t = t == JI ? XQ : t, o = o == JI ? XQ : o;
|
|
9989
|
+
var n = t == XQ, s = o == XQ, i = t == o;
|
|
10024
9990
|
if (i && TE(A)) {
|
|
10025
9991
|
if (!TE(B))
|
|
10026
9992
|
return !1;
|
|
@@ -10222,8 +10188,8 @@ var WB;
|
|
|
10222
10188
|
}
|
|
10223
10189
|
A.getBackground = t;
|
|
10224
10190
|
function o(n, s, i, w, r, D, a) {
|
|
10225
|
-
let
|
|
10226
|
-
return s !== 0 && (
|
|
10191
|
+
let u = A.getLanguageId(n), M = A.getTokenType(n), c = A.containsBalancedBrackets(n) ? 1 : 0, l = A.getFontStyle(n), d = A.getForeground(n), F = A.getBackground(n);
|
|
10192
|
+
return s !== 0 && (u = s), i !== 8 && (M = i), w !== null && (c = w ? 1 : 0), r !== -1 && (l = r), D !== 0 && (d = D), a !== 0 && (F = a), (u << 0 | M << 8 | c << 10 | l << 11 | d << 15 | F << 24) >>> 0;
|
|
10227
10193
|
}
|
|
10228
10194
|
A.set = o;
|
|
10229
10195
|
})(WB || (WB = {}));
|
|
@@ -10336,7 +10302,7 @@ function Ds(A) {
|
|
|
10336
10302
|
return B === 0 ? A : ~B === A.length - 1 ? Ds(A.substring(0, A.length - 1)) : A.substr(~B + 1);
|
|
10337
10303
|
}
|
|
10338
10304
|
let cE = /\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;
|
|
10339
|
-
class
|
|
10305
|
+
class ZQ {
|
|
10340
10306
|
static hasCaptures(B) {
|
|
10341
10307
|
return B === null ? !1 : (cE.lastIndex = 0, cE.test(B));
|
|
10342
10308
|
}
|
|
@@ -10400,7 +10366,7 @@ class ls {
|
|
|
10400
10366
|
return this.cache.set(B, Q), Q;
|
|
10401
10367
|
}
|
|
10402
10368
|
}
|
|
10403
|
-
class
|
|
10369
|
+
class FQ {
|
|
10404
10370
|
constructor(B) {
|
|
10405
10371
|
h(this, "scopeName");
|
|
10406
10372
|
this.scopeName = B;
|
|
@@ -10440,7 +10406,7 @@ class Hh {
|
|
|
10440
10406
|
h(this, "seenFullScopeRequests", /* @__PURE__ */ new Set());
|
|
10441
10407
|
h(this, "seenPartialScopeRequests", /* @__PURE__ */ new Set());
|
|
10442
10408
|
h(this, "Q");
|
|
10443
|
-
this.repo = B, this.initialScopeName = Q, this.seenFullScopeRequests.add(this.initialScopeName), this.Q = [new
|
|
10409
|
+
this.repo = B, this.initialScopeName = Q, this.seenFullScopeRequests.add(this.initialScopeName), this.Q = [new FQ(this.initialScopeName)];
|
|
10444
10410
|
}
|
|
10445
10411
|
processQueue() {
|
|
10446
10412
|
const B = this.Q;
|
|
@@ -10449,7 +10415,7 @@ class Hh {
|
|
|
10449
10415
|
for (const g of B)
|
|
10450
10416
|
Rh(g, this.initialScopeName, this.repo, Q);
|
|
10451
10417
|
for (const g of Q.references)
|
|
10452
|
-
if (g instanceof
|
|
10418
|
+
if (g instanceof FQ) {
|
|
10453
10419
|
if (this.seenFullScopeRequests.has(g.scopeName))
|
|
10454
10420
|
continue;
|
|
10455
10421
|
this.seenFullScopeRequests.add(g.scopeName), this.Q.push(g);
|
|
@@ -10468,11 +10434,11 @@ function Rh(A, B, Q, g) {
|
|
|
10468
10434
|
return;
|
|
10469
10435
|
}
|
|
10470
10436
|
const C = Q.lookup(B);
|
|
10471
|
-
A instanceof
|
|
10437
|
+
A instanceof FQ ? eg({ baseGrammar: C, selfGrammar: E }, g) : XE(A.ruleName, { baseGrammar: C, selfGrammar: E, repository: E.repository }, g);
|
|
10472
10438
|
const e = Q.injections(A.scopeName);
|
|
10473
10439
|
if (e)
|
|
10474
10440
|
for (const I of e)
|
|
10475
|
-
g.add(new
|
|
10441
|
+
g.add(new FQ(I));
|
|
10476
10442
|
}
|
|
10477
10443
|
function XE(A, B, Q) {
|
|
10478
10444
|
if (B.repository && B.repository[A]) {
|
|
@@ -10511,7 +10477,7 @@ function hg(A, B, Q) {
|
|
|
10511
10477
|
const t = { baseGrammar: B.baseGrammar, selfGrammar: I, repository: E };
|
|
10512
10478
|
e.kind === 4 ? XE(e.ruleName, t, Q) : eg(t, Q);
|
|
10513
10479
|
} else
|
|
10514
|
-
e.kind === 4 ? Q.add(new Lh(e.scopeName, e.ruleName)) : Q.add(new
|
|
10480
|
+
e.kind === 4 ? Q.add(new Lh(e.scopeName, e.ruleName)) : Q.add(new FQ(e.scopeName));
|
|
10515
10481
|
break;
|
|
10516
10482
|
}
|
|
10517
10483
|
}
|
|
@@ -10564,7 +10530,7 @@ function us(A) {
|
|
|
10564
10530
|
}
|
|
10565
10531
|
}
|
|
10566
10532
|
const mh = /\\(\d+)/, TI = /\\(\d+)/g, Jh = -1, hs = -2;
|
|
10567
|
-
class
|
|
10533
|
+
class xQ {
|
|
10568
10534
|
constructor(B, Q, g, E) {
|
|
10569
10535
|
h(this, "$location");
|
|
10570
10536
|
h(this, "id");
|
|
@@ -10572,20 +10538,20 @@ class JQ {
|
|
|
10572
10538
|
h(this, "_name");
|
|
10573
10539
|
h(this, "_contentNameIsCapturing");
|
|
10574
10540
|
h(this, "_contentName");
|
|
10575
|
-
this.$location = B, this.id = Q, this._name = g || null, this._nameIsCapturing =
|
|
10541
|
+
this.$location = B, this.id = Q, this._name = g || null, this._nameIsCapturing = ZQ.hasCaptures(this._name), this._contentName = E || null, this._contentNameIsCapturing = ZQ.hasCaptures(this._contentName);
|
|
10576
10542
|
}
|
|
10577
10543
|
get debugName() {
|
|
10578
10544
|
const B = this.$location ? `${Ds(this.$location.filename)}:${this.$location.line}` : "unknown";
|
|
10579
10545
|
return `${this.constructor.name}#${this.id} @ ${B}`;
|
|
10580
10546
|
}
|
|
10581
10547
|
getName(B, Q) {
|
|
10582
|
-
return !this._nameIsCapturing || this._name === null || B === null || Q === null ? this._name :
|
|
10548
|
+
return !this._nameIsCapturing || this._name === null || B === null || Q === null ? this._name : ZQ.replaceCaptures(this._name, B, Q);
|
|
10583
10549
|
}
|
|
10584
10550
|
getContentName(B, Q) {
|
|
10585
|
-
return !this._contentNameIsCapturing || this._contentName === null ? this._contentName :
|
|
10551
|
+
return !this._contentNameIsCapturing || this._contentName === null ? this._contentName : ZQ.replaceCaptures(this._contentName, B, Q);
|
|
10586
10552
|
}
|
|
10587
10553
|
}
|
|
10588
|
-
class xh extends
|
|
10554
|
+
class xh extends xQ {
|
|
10589
10555
|
constructor(Q, g, E, C, e) {
|
|
10590
10556
|
super(Q, g, E, C);
|
|
10591
10557
|
h(this, "retokenizeCapturedWithRuleId");
|
|
@@ -10603,7 +10569,7 @@ class xh extends JQ {
|
|
|
10603
10569
|
throw new Error("Not supported!");
|
|
10604
10570
|
}
|
|
10605
10571
|
}
|
|
10606
|
-
class Oh extends
|
|
10572
|
+
class Oh extends xQ {
|
|
10607
10573
|
constructor(Q, g, E, C, e) {
|
|
10608
10574
|
super(Q, g, E, null);
|
|
10609
10575
|
h(this, "_match");
|
|
@@ -10627,10 +10593,10 @@ class Oh extends JQ {
|
|
|
10627
10593
|
return this._getCachedCompiledPatterns(Q).compileAG(Q, E, C);
|
|
10628
10594
|
}
|
|
10629
10595
|
_getCachedCompiledPatterns(Q) {
|
|
10630
|
-
return this._cachedCompiledPatterns || (this._cachedCompiledPatterns = new
|
|
10596
|
+
return this._cachedCompiledPatterns || (this._cachedCompiledPatterns = new NQ(), this.collectPatterns(Q, this._cachedCompiledPatterns)), this._cachedCompiledPatterns;
|
|
10631
10597
|
}
|
|
10632
10598
|
}
|
|
10633
|
-
class qI extends
|
|
10599
|
+
class qI extends xQ {
|
|
10634
10600
|
constructor(Q, g, E, C, e) {
|
|
10635
10601
|
super(Q, g, E, C);
|
|
10636
10602
|
h(this, "hasMissingPatterns");
|
|
@@ -10652,10 +10618,10 @@ class qI extends JQ {
|
|
|
10652
10618
|
return this._getCachedCompiledPatterns(Q).compileAG(Q, E, C);
|
|
10653
10619
|
}
|
|
10654
10620
|
_getCachedCompiledPatterns(Q) {
|
|
10655
|
-
return this._cachedCompiledPatterns || (this._cachedCompiledPatterns = new
|
|
10621
|
+
return this._cachedCompiledPatterns || (this._cachedCompiledPatterns = new NQ(), this.collectPatterns(Q, this._cachedCompiledPatterns)), this._cachedCompiledPatterns;
|
|
10656
10622
|
}
|
|
10657
10623
|
}
|
|
10658
|
-
class ZE extends
|
|
10624
|
+
class ZE extends xQ {
|
|
10659
10625
|
constructor(Q, g, E, C, e, I, t, o, n, s) {
|
|
10660
10626
|
super(Q, g, E, C);
|
|
10661
10627
|
h(this, "_begin");
|
|
@@ -10692,7 +10658,7 @@ class ZE extends JQ {
|
|
|
10692
10658
|
}
|
|
10693
10659
|
_getCachedCompiledPatterns(Q, g) {
|
|
10694
10660
|
if (!this._cachedCompiledPatterns) {
|
|
10695
|
-
this._cachedCompiledPatterns = new
|
|
10661
|
+
this._cachedCompiledPatterns = new NQ();
|
|
10696
10662
|
for (const E of this.patterns)
|
|
10697
10663
|
Q.getRule(E).collectPatterns(Q, this._cachedCompiledPatterns);
|
|
10698
10664
|
this.applyEndPatternLast ? this._cachedCompiledPatterns.push(this._end.hasBackReferences ? this._end.clone() : this._end) : this._cachedCompiledPatterns.unshift(this._end.hasBackReferences ? this._end.clone() : this._end);
|
|
@@ -10700,7 +10666,7 @@ class ZE extends JQ {
|
|
|
10700
10666
|
return this._end.hasBackReferences && (this.applyEndPatternLast ? this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length() - 1, g) : this._cachedCompiledPatterns.setSource(0, g)), this._cachedCompiledPatterns;
|
|
10701
10667
|
}
|
|
10702
10668
|
}
|
|
10703
|
-
class dg extends
|
|
10669
|
+
class dg extends xQ {
|
|
10704
10670
|
constructor(Q, g, E, C, e, I, t, o, n) {
|
|
10705
10671
|
super(Q, g, E, C);
|
|
10706
10672
|
h(this, "_begin");
|
|
@@ -10737,7 +10703,7 @@ class dg extends JQ {
|
|
|
10737
10703
|
}
|
|
10738
10704
|
_getCachedCompiledPatterns(Q) {
|
|
10739
10705
|
if (!this._cachedCompiledPatterns) {
|
|
10740
|
-
this._cachedCompiledPatterns = new
|
|
10706
|
+
this._cachedCompiledPatterns = new NQ();
|
|
10741
10707
|
for (const g of this.patterns)
|
|
10742
10708
|
Q.getRule(g).collectPatterns(Q, this._cachedCompiledPatterns);
|
|
10743
10709
|
}
|
|
@@ -10750,7 +10716,7 @@ class dg extends JQ {
|
|
|
10750
10716
|
return this._getCachedCompiledWhilePatterns(Q, g).compileAG(Q, E, C);
|
|
10751
10717
|
}
|
|
10752
10718
|
_getCachedCompiledWhilePatterns(Q, g) {
|
|
10753
|
-
return this._cachedCompiledWhilePatterns || (this._cachedCompiledWhilePatterns = new
|
|
10719
|
+
return this._cachedCompiledWhilePatterns || (this._cachedCompiledWhilePatterns = new NQ(), this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences ? this._while.clone() : this._while)), this._while.hasBackReferences && this._cachedCompiledWhilePatterns.setSource(0, g || ""), this._cachedCompiledWhilePatterns;
|
|
10754
10720
|
}
|
|
10755
10721
|
}
|
|
10756
10722
|
class iA {
|
|
@@ -10880,7 +10846,7 @@ class yB {
|
|
|
10880
10846
|
return !this.hasAnchor || !this._anchorCache ? this.source : B ? Q ? this._anchorCache.A1_G1 : this._anchorCache.A1_G0 : Q ? this._anchorCache.A0_G1 : this._anchorCache.A0_G0;
|
|
10881
10847
|
}
|
|
10882
10848
|
}
|
|
10883
|
-
class
|
|
10849
|
+
class NQ {
|
|
10884
10850
|
constructor() {
|
|
10885
10851
|
h(this, "_items");
|
|
10886
10852
|
h(this, "_hasAnchors");
|
|
@@ -11058,8 +11024,7 @@ function Th(A) {
|
|
|
11058
11024
|
if (typeof e.scope == "string") {
|
|
11059
11025
|
let s = e.scope;
|
|
11060
11026
|
s = s.replace(/^[,]+/, ""), s = s.replace(/[,]+$/, ""), I = s.split(",");
|
|
11061
|
-
} else
|
|
11062
|
-
Array.isArray(e.scope) ? I = e.scope : I = [""];
|
|
11027
|
+
} else Array.isArray(e.scope) ? I = e.scope : I = [""];
|
|
11063
11028
|
let t = -1;
|
|
11064
11029
|
if (typeof e.settings.fontStyle == "string") {
|
|
11065
11030
|
t = 0;
|
|
@@ -11112,7 +11077,7 @@ function _h(A, B) {
|
|
|
11112
11077
|
let t = A.shift();
|
|
11113
11078
|
t.fontStyle !== -1 && (Q = t.fontStyle), t.foreground !== null && (g = t.foreground), t.background !== null && (E = t.background);
|
|
11114
11079
|
}
|
|
11115
|
-
let C = new Wh(B), e = new ds(Q, C.getId(g), C.getId(E)), I = new
|
|
11080
|
+
let C = new Wh(B), e = new ds(Q, C.getId(g), C.getId(E)), I = new sQ(new GQ(0, null, -1, 0, 0), []);
|
|
11116
11081
|
for (let t = 0, o = A.length; t < o; t++) {
|
|
11117
11082
|
let n = A[t];
|
|
11118
11083
|
I.insert(0, n.scope, n.parentScopes, n.fontStyle, C.getId(n.foreground), C.getId(n.background));
|
|
@@ -11147,7 +11112,7 @@ class Wh {
|
|
|
11147
11112
|
return this._id2color.slice(0);
|
|
11148
11113
|
}
|
|
11149
11114
|
}
|
|
11150
|
-
class
|
|
11115
|
+
class GQ {
|
|
11151
11116
|
constructor(B, Q, g, E, C) {
|
|
11152
11117
|
h(this, "scopeDepth");
|
|
11153
11118
|
h(this, "parentScopes");
|
|
@@ -11157,7 +11122,7 @@ class NQ {
|
|
|
11157
11122
|
this.scopeDepth = B, this.parentScopes = Q, this.fontStyle = g, this.foreground = E, this.background = C;
|
|
11158
11123
|
}
|
|
11159
11124
|
clone() {
|
|
11160
|
-
return new
|
|
11125
|
+
return new GQ(this.scopeDepth, this.parentScopes, this.fontStyle, this.foreground, this.background);
|
|
11161
11126
|
}
|
|
11162
11127
|
static cloneArr(B) {
|
|
11163
11128
|
let Q = [];
|
|
@@ -11169,7 +11134,7 @@ class NQ {
|
|
|
11169
11134
|
this.scopeDepth > B ? console.log("how did this happen?") : this.scopeDepth = B, Q !== -1 && (this.fontStyle = Q), g !== 0 && (this.foreground = g), E !== 0 && (this.background = E);
|
|
11170
11135
|
}
|
|
11171
11136
|
}
|
|
11172
|
-
class
|
|
11137
|
+
class sQ {
|
|
11173
11138
|
constructor(B, Q = [], g = {}) {
|
|
11174
11139
|
h(this, "_mainRule");
|
|
11175
11140
|
h(this, "_children");
|
|
@@ -11195,9 +11160,9 @@ class oQ {
|
|
|
11195
11160
|
}
|
|
11196
11161
|
match(B) {
|
|
11197
11162
|
if (B === "")
|
|
11198
|
-
return
|
|
11163
|
+
return sQ._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes));
|
|
11199
11164
|
let Q = B.indexOf("."), g, E;
|
|
11200
|
-
return Q === -1 ? (g = B, E = "") : (g = B.substring(0, Q), E = B.substring(Q + 1)), this._children.hasOwnProperty(g) ? this._children[g].match(E) :
|
|
11165
|
+
return Q === -1 ? (g = B, E = "") : (g = B.substring(0, Q), E = B.substring(Q + 1)), this._children.hasOwnProperty(g) ? this._children[g].match(E) : sQ._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes));
|
|
11201
11166
|
}
|
|
11202
11167
|
insert(B, Q, g, E, C, e) {
|
|
11203
11168
|
if (Q === "") {
|
|
@@ -11207,7 +11172,7 @@ class oQ {
|
|
|
11207
11172
|
let I = Q.indexOf("."), t, o;
|
|
11208
11173
|
I === -1 ? (t = Q, o = "") : (t = Q.substring(0, I), o = Q.substring(I + 1));
|
|
11209
11174
|
let n;
|
|
11210
|
-
this._children.hasOwnProperty(t) ? n = this._children[t] : (n = new
|
|
11175
|
+
this._children.hasOwnProperty(t) ? n = this._children[t] : (n = new sQ(this._mainRule.clone(), GQ.cloneArr(this._rulesWithParentScopes)), this._children[t] = n), n.insert(B + 1, o, g, E, C, e);
|
|
11211
11176
|
}
|
|
11212
11177
|
_doInsertHere(B, Q, g, E, C) {
|
|
11213
11178
|
if (Q === null) {
|
|
@@ -11221,7 +11186,7 @@ class oQ {
|
|
|
11221
11186
|
return;
|
|
11222
11187
|
}
|
|
11223
11188
|
}
|
|
11224
|
-
g === -1 && (g = this._mainRule.fontStyle), E === 0 && (E = this._mainRule.foreground), C === 0 && (C = this._mainRule.background), this._rulesWithParentScopes.push(new
|
|
11189
|
+
g === -1 && (g = this._mainRule.fontStyle), E === 0 && (E = this._mainRule.foreground), C === 0 && (C = this._mainRule.background), this._rulesWithParentScopes.push(new GQ(B, Q, g, E, C));
|
|
11225
11190
|
}
|
|
11226
11191
|
}
|
|
11227
11192
|
class lE {
|
|
@@ -11326,34 +11291,34 @@ function Ms(A, B, Q, g, E, C, e, I) {
|
|
|
11326
11291
|
}
|
|
11327
11292
|
const r = w.captureIndices, D = w.matchedRuleId, a = r && r.length > 0 ? r[0].end > g : !1;
|
|
11328
11293
|
if (D === Jh) {
|
|
11329
|
-
const
|
|
11330
|
-
C.produce(E, r[0].start), E = E.withContentNameScopesList(E.nameScopesList),
|
|
11331
|
-
const
|
|
11332
|
-
if (E = E.parent, n =
|
|
11333
|
-
E =
|
|
11294
|
+
const u = E.getRule(A);
|
|
11295
|
+
C.produce(E, r[0].start), E = E.withContentNameScopesList(E.nameScopesList), gQ(A, B, Q, E, C, u.endCaptures, r), C.produce(E, r[0].end);
|
|
11296
|
+
const M = E;
|
|
11297
|
+
if (E = E.parent, n = M.getAnchorPos(), !a && M.getEnterPos() === g) {
|
|
11298
|
+
E = M, C.produce(E, t), o = !0;
|
|
11334
11299
|
return;
|
|
11335
11300
|
}
|
|
11336
11301
|
} else {
|
|
11337
|
-
const
|
|
11302
|
+
const u = A.getRule(D);
|
|
11338
11303
|
C.produce(E, r[0].start);
|
|
11339
|
-
const
|
|
11340
|
-
if (E = E.push(D, g, n, r[0].end === t, null,
|
|
11341
|
-
const
|
|
11342
|
-
|
|
11343
|
-
const F =
|
|
11344
|
-
if (E = E.withContentNameScopesList(S),
|
|
11304
|
+
const M = E, c = u.getName(B.content, r), l = E.contentNameScopesList.pushAttributed(c, A);
|
|
11305
|
+
if (E = E.push(D, g, n, r[0].end === t, null, l, l), u instanceof ZE) {
|
|
11306
|
+
const d = u;
|
|
11307
|
+
gQ(A, B, Q, E, C, d.beginCaptures, r), C.produce(E, r[0].end), n = r[0].end;
|
|
11308
|
+
const F = d.getContentName(B.content, r), S = l.pushAttributed(F, A);
|
|
11309
|
+
if (E = E.withContentNameScopesList(S), d.endHasBackReferences && (E = E.withEndRule(d.getEndWithResolvedBackReferences(B.content, r))), !a && M.hasSameRuleAs(E)) {
|
|
11345
11310
|
E = E.pop(), C.produce(E, t), o = !0;
|
|
11346
11311
|
return;
|
|
11347
11312
|
}
|
|
11348
|
-
} else if (
|
|
11349
|
-
const
|
|
11350
|
-
|
|
11351
|
-
const F =
|
|
11352
|
-
if (E = E.withContentNameScopesList(S),
|
|
11313
|
+
} else if (u instanceof dg) {
|
|
11314
|
+
const d = u;
|
|
11315
|
+
gQ(A, B, Q, E, C, d.beginCaptures, r), C.produce(E, r[0].end), n = r[0].end;
|
|
11316
|
+
const F = d.getContentName(B.content, r), S = l.pushAttributed(F, A);
|
|
11317
|
+
if (E = E.withContentNameScopesList(S), d.whileHasBackReferences && (E = E.withEndRule(d.getWhileWithResolvedBackReferences(B.content, r))), !a && M.hasSameRuleAs(E)) {
|
|
11353
11318
|
E = E.pop(), C.produce(E, t), o = !0;
|
|
11354
11319
|
return;
|
|
11355
11320
|
}
|
|
11356
|
-
} else if (
|
|
11321
|
+
} else if (gQ(A, B, Q, E, C, u.captures, r), C.produce(E, r[0].end), E = E.pop(), !a) {
|
|
11357
11322
|
E = E.safePop(), C.produce(E, t), o = !0;
|
|
11358
11323
|
return;
|
|
11359
11324
|
}
|
|
@@ -11378,7 +11343,7 @@ function Zh(A, B, Q, g, E, C) {
|
|
|
11378
11343
|
E = t.stack.pop();
|
|
11379
11344
|
break;
|
|
11380
11345
|
}
|
|
11381
|
-
s.captureIndices && s.captureIndices.length && (C.produce(t.stack, s.captureIndices[0].start),
|
|
11346
|
+
s.captureIndices && s.captureIndices.length && (C.produce(t.stack, s.captureIndices[0].start), gQ(A, B, Q, t.stack, C, t.rule.whileCaptures, s.captureIndices), C.produce(t.stack, s.captureIndices[0].end), e = s.captureIndices[0].end, s.captureIndices[0].end > g && (g = s.captureIndices[0].end, Q = !1));
|
|
11382
11347
|
} else {
|
|
11383
11348
|
E = t.stack.pop();
|
|
11384
11349
|
break;
|
|
@@ -11412,11 +11377,11 @@ function jh(A, B, Q, g, E, C, e) {
|
|
|
11412
11377
|
const r = A[i];
|
|
11413
11378
|
if (!r.matcher(s))
|
|
11414
11379
|
continue;
|
|
11415
|
-
const D = B.getRule(r.ruleId), { ruleScanner: a, findOptions:
|
|
11416
|
-
if (!
|
|
11380
|
+
const D = B.getRule(r.ruleId), { ruleScanner: a, findOptions: u } = ps(D, B, null, g, E === e), M = a.findNextMatchSync(Q, E, u);
|
|
11381
|
+
if (!M)
|
|
11417
11382
|
continue;
|
|
11418
|
-
const
|
|
11419
|
-
if (!(
|
|
11383
|
+
const c = M.captureIndices[0].start;
|
|
11384
|
+
if (!(c >= I) && (I = c, t = M.captureIndices, o = M.ruleId, n = r.priority, I === E))
|
|
11420
11385
|
break;
|
|
11421
11386
|
}
|
|
11422
11387
|
return t ? {
|
|
@@ -11439,7 +11404,7 @@ function $h(A, B, Q, g, E) {
|
|
|
11439
11404
|
/* FindOption.None */
|
|
11440
11405
|
};
|
|
11441
11406
|
}
|
|
11442
|
-
function
|
|
11407
|
+
function gQ(A, B, Q, g, E, C, e) {
|
|
11443
11408
|
if (C.length === 0)
|
|
11444
11409
|
return;
|
|
11445
11410
|
const I = B.content, t = Math.min(C.length, e.length), o = [], n = e[0].end;
|
|
@@ -11455,18 +11420,18 @@ function QQ(A, B, Q, g, E, C, e) {
|
|
|
11455
11420
|
for (; o.length > 0 && o[o.length - 1].endPos <= w.start; )
|
|
11456
11421
|
E.produceFromScopes(o[o.length - 1].scopes, o[o.length - 1].endPos), o.pop();
|
|
11457
11422
|
if (o.length > 0 ? E.produceFromScopes(o[o.length - 1].scopes, w.start) : E.produce(g, w.start), i.retokenizeCapturedWithRuleId) {
|
|
11458
|
-
const D = i.getName(I, e), a = g.contentNameScopesList.pushAttributed(D, A),
|
|
11423
|
+
const D = i.getName(I, e), a = g.contentNameScopesList.pushAttributed(D, A), u = i.getContentName(I, e), M = a.pushAttributed(u, A), c = g.push(i.retokenizeCapturedWithRuleId, w.start, -1, !1, null, a, M), l = A.createOnigString(I.substring(0, w.end));
|
|
11459
11424
|
Ms(
|
|
11460
11425
|
A,
|
|
11461
|
-
|
|
11426
|
+
l,
|
|
11462
11427
|
Q && w.start === 0,
|
|
11463
11428
|
w.start,
|
|
11464
|
-
|
|
11429
|
+
c,
|
|
11465
11430
|
E,
|
|
11466
11431
|
!1,
|
|
11467
11432
|
/* no time limit */
|
|
11468
11433
|
0
|
|
11469
|
-
), is(
|
|
11434
|
+
), is(l);
|
|
11470
11435
|
continue;
|
|
11471
11436
|
}
|
|
11472
11437
|
const r = i.getName(I, e);
|
|
@@ -11617,11 +11582,11 @@ class gd {
|
|
|
11617
11582
|
_tokenize(B, Q, g, E) {
|
|
11618
11583
|
this._rootId === -1 && (this._rootId = iA.getCompiledRuleId(this._grammar.repository.$self, this, this._grammar.repository), this.getInjections());
|
|
11619
11584
|
let C;
|
|
11620
|
-
if (!Q || Q ===
|
|
11585
|
+
if (!Q || Q === yQ.NULL) {
|
|
11621
11586
|
C = !0;
|
|
11622
11587
|
const n = this._basicScopeAttributesProvider.getDefaultAttributes(), s = this.themeProvider.getDefaults(), i = WB.set(0, n.languageId, n.tokenType, null, s.fontStyle, s.foregroundId, s.backgroundId), w = this.getRule(this._rootId).getName(null, null);
|
|
11623
11588
|
let r;
|
|
11624
|
-
w ? r =
|
|
11589
|
+
w ? r = pA.createRootAndLookUpScopeName(w, i, this) : r = pA.createRoot("unknown", i), Q = new yQ(null, this._rootId, -1, -1, !1, null, r, r);
|
|
11625
11590
|
} else
|
|
11626
11591
|
C = !1, Q.reset();
|
|
11627
11592
|
B = B + `
|
|
@@ -11642,7 +11607,7 @@ function ZI(A, B) {
|
|
|
11642
11607
|
name: A.scopeName
|
|
11643
11608
|
}, A.repository.$base = B || A.repository.$self, A;
|
|
11644
11609
|
}
|
|
11645
|
-
class
|
|
11610
|
+
class pA {
|
|
11646
11611
|
/**
|
|
11647
11612
|
* Invariant:
|
|
11648
11613
|
* ```
|
|
@@ -11660,15 +11625,15 @@ class MA {
|
|
|
11660
11625
|
static fromExtension(B, Q) {
|
|
11661
11626
|
let g = B, E = (B == null ? void 0 : B.scopePath) ?? null;
|
|
11662
11627
|
for (const C of Q)
|
|
11663
|
-
E = fB.push(E, C.scopeNames), g = new
|
|
11628
|
+
E = fB.push(E, C.scopeNames), g = new pA(g, E, C.encodedTokenAttributes);
|
|
11664
11629
|
return g;
|
|
11665
11630
|
}
|
|
11666
11631
|
static createRoot(B, Q) {
|
|
11667
|
-
return new
|
|
11632
|
+
return new pA(null, new fB(null, B), Q);
|
|
11668
11633
|
}
|
|
11669
11634
|
static createRootAndLookUpScopeName(B, Q, g) {
|
|
11670
|
-
const E = g.getMetadataForScope(B), C = new fB(null, B), e = g.themeProvider.themeMatch(C), I =
|
|
11671
|
-
return new
|
|
11635
|
+
const E = g.getMetadataForScope(B), C = new fB(null, B), e = g.themeProvider.themeMatch(C), I = pA.mergeAttributes(Q, E, e);
|
|
11636
|
+
return new pA(null, C, I);
|
|
11672
11637
|
}
|
|
11673
11638
|
get scopeName() {
|
|
11674
11639
|
return this.scopePath.scopeName;
|
|
@@ -11677,7 +11642,7 @@ class MA {
|
|
|
11677
11642
|
return this.getScopeNames().join(" ");
|
|
11678
11643
|
}
|
|
11679
11644
|
equals(B) {
|
|
11680
|
-
return
|
|
11645
|
+
return pA.equals(this, B);
|
|
11681
11646
|
}
|
|
11682
11647
|
static equals(B, Q) {
|
|
11683
11648
|
do {
|
|
@@ -11696,16 +11661,16 @@ class MA {
|
|
|
11696
11661
|
if (B === null)
|
|
11697
11662
|
return this;
|
|
11698
11663
|
if (B.indexOf(" ") === -1)
|
|
11699
|
-
return
|
|
11664
|
+
return pA._pushAttributed(this, B, Q);
|
|
11700
11665
|
const g = B.split(/ /g);
|
|
11701
11666
|
let E = this;
|
|
11702
11667
|
for (const C of g)
|
|
11703
|
-
E =
|
|
11668
|
+
E = pA._pushAttributed(E, C, Q);
|
|
11704
11669
|
return E;
|
|
11705
11670
|
}
|
|
11706
11671
|
static _pushAttributed(B, Q, g) {
|
|
11707
|
-
const E = g.getMetadataForScope(Q), C = B.scopePath.push(Q), e = g.themeProvider.themeMatch(C), I =
|
|
11708
|
-
return new
|
|
11672
|
+
const E = g.getMetadataForScope(Q), C = B.scopePath.push(Q), e = g.themeProvider.themeMatch(C), I = pA.mergeAttributes(B.tokenAttributes, E, e);
|
|
11673
|
+
return new pA(B, C, I);
|
|
11709
11674
|
}
|
|
11710
11675
|
getScopeNames() {
|
|
11711
11676
|
return this.scopePath.getSegments();
|
|
@@ -11764,7 +11729,7 @@ const VA = class VA {
|
|
|
11764
11729
|
return B === null ? !1 : VA._equals(this, B);
|
|
11765
11730
|
}
|
|
11766
11731
|
static _equals(B, Q) {
|
|
11767
|
-
return B === Q ? !0 : this._structuralEquals(B, Q) ?
|
|
11732
|
+
return B === Q ? !0 : this._structuralEquals(B, Q) ? pA.equals(B.contentNameScopesList, Q.contentNameScopesList) : !1;
|
|
11768
11733
|
}
|
|
11769
11734
|
/**
|
|
11770
11735
|
* A structural equals check. Does not take into account `scopes`.
|
|
@@ -11841,13 +11806,13 @@ const VA = class VA {
|
|
|
11841
11806
|
};
|
|
11842
11807
|
}
|
|
11843
11808
|
static pushFrame(B, Q) {
|
|
11844
|
-
const g =
|
|
11845
|
-
return new VA(B, Q.ruleId, Q.enterPos ?? -1, Q.anchorPos ?? -1, Q.beginRuleCapturedEOL, Q.endRule, g,
|
|
11809
|
+
const g = pA.fromExtension((B == null ? void 0 : B.nameScopesList) ?? null, Q.nameScopesList);
|
|
11810
|
+
return new VA(B, Q.ruleId, Q.enterPos ?? -1, Q.anchorPos ?? -1, Q.beginRuleCapturedEOL, Q.endRule, g, pA.fromExtension(g, Q.contentNameScopesList));
|
|
11846
11811
|
}
|
|
11847
11812
|
};
|
|
11848
11813
|
// TODO remove me
|
|
11849
11814
|
h(VA, "NULL", new VA(null, 0, 0, 0, !1, null, null, null));
|
|
11850
|
-
let
|
|
11815
|
+
let yQ = VA;
|
|
11851
11816
|
class Ed {
|
|
11852
11817
|
constructor(B, Q) {
|
|
11853
11818
|
h(this, "balancedBracketScopes");
|
|
@@ -12065,7 +12030,7 @@ let Id = class {
|
|
|
12065
12030
|
return this._syncRegistry.grammarForScopeName(B, Q, g, E, C);
|
|
12066
12031
|
}
|
|
12067
12032
|
};
|
|
12068
|
-
const td =
|
|
12033
|
+
const td = yQ.NULL, cA = {
|
|
12069
12034
|
LANGUAGEID_MASK: 255,
|
|
12070
12035
|
TOKEN_TYPE_MASK: 768,
|
|
12071
12036
|
BALANCED_BRACKETS_MASK: 1024,
|
|
@@ -12321,16 +12286,15 @@ function rd(A) {
|
|
|
12321
12286
|
type: "setBackgroundColor",
|
|
12322
12287
|
value: e
|
|
12323
12288
|
}), Q += C;
|
|
12324
|
-
} else
|
|
12325
|
-
|
|
12326
|
-
|
|
12327
|
-
|
|
12328
|
-
|
|
12329
|
-
|
|
12330
|
-
|
|
12331
|
-
|
|
12332
|
-
|
|
12333
|
-
});
|
|
12289
|
+
} else E === 49 ? B.push({
|
|
12290
|
+
type: "resetBackgroundColor"
|
|
12291
|
+
}) : E >= 90 && E <= 97 ? B.push({
|
|
12292
|
+
type: "setForegroundColor",
|
|
12293
|
+
value: { type: "named", name: MB[E - 90 + 8] }
|
|
12294
|
+
}) : E >= 100 && E <= 107 && B.push({
|
|
12295
|
+
type: "setBackgroundColor",
|
|
12296
|
+
value: { type: "named", name: MB[E - 100 + 8] }
|
|
12297
|
+
});
|
|
12334
12298
|
}
|
|
12335
12299
|
return B;
|
|
12336
12300
|
}
|
|
@@ -12447,8 +12411,7 @@ function hd(A) {
|
|
|
12447
12411
|
if (B[3]) {
|
|
12448
12412
|
const g = Math.round(Number.parseInt(B[3], 16) / 2).toString(16).padStart(2, "0");
|
|
12449
12413
|
return `#${B[1]}${B[2]}${g}`;
|
|
12450
|
-
} else
|
|
12451
|
-
return B[2] ? `#${B[1]}${B[2]}80` : `#${Array.from(B[1]).map((g) => `${g}${g}`).join("")}80`;
|
|
12414
|
+
} else return B[2] ? `#${B[1]}${B[2]}80` : `#${Array.from(B[1]).map((g) => `${g}${g}`).join("")}80`;
|
|
12452
12415
|
const Q = A.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);
|
|
12453
12416
|
return Q ? `var(${Q[1]}-dim)` : A;
|
|
12454
12417
|
}
|
|
@@ -12499,14 +12462,14 @@ function dd(A, B, Q, g, E) {
|
|
|
12499
12462
|
}]);
|
|
12500
12463
|
continue;
|
|
12501
12464
|
}
|
|
12502
|
-
let
|
|
12503
|
-
E.includeExplanation && (
|
|
12504
|
-
const
|
|
12505
|
-
for (let F = 0; F <
|
|
12506
|
-
const S =
|
|
12465
|
+
let u, M, c;
|
|
12466
|
+
E.includeExplanation && (u = B.tokenizeLine(D, o), M = u.tokens, c = 0);
|
|
12467
|
+
const l = B.tokenizeLine2(D, o, I), d = l.tokens.length / 2;
|
|
12468
|
+
for (let F = 0; F < d; F++) {
|
|
12469
|
+
const S = l.tokens[2 * F], J = F + 1 < d ? l.tokens[2 * F + 2] : D.length;
|
|
12507
12470
|
if (S === J)
|
|
12508
12471
|
continue;
|
|
12509
|
-
const W =
|
|
12472
|
+
const W = l.tokens[2 * F + 1], m = dB(g[zA.getForeground(W)], C), H = zA.getFontStyle(W), P = {
|
|
12510
12473
|
content: D.substring(S, J),
|
|
12511
12474
|
offset: a + S,
|
|
12512
12475
|
color: m,
|
|
@@ -12516,16 +12479,16 @@ function dd(A, B, Q, g, E) {
|
|
|
12516
12479
|
P.explanation = [];
|
|
12517
12480
|
let G = 0;
|
|
12518
12481
|
for (; S + G < J; ) {
|
|
12519
|
-
const R =
|
|
12482
|
+
const R = M[c], _ = D.substring(R.startIndex, R.endIndex);
|
|
12520
12483
|
G += _.length, P.explanation.push({
|
|
12521
12484
|
content: _,
|
|
12522
12485
|
scopes: Md(i, R.scopes)
|
|
12523
|
-
}),
|
|
12486
|
+
}), c += 1;
|
|
12524
12487
|
}
|
|
12525
12488
|
}
|
|
12526
12489
|
n.push(P);
|
|
12527
12490
|
}
|
|
12528
|
-
s.push(n), n = [], o =
|
|
12491
|
+
s.push(n), n = [], o = l.ruleStack;
|
|
12529
12492
|
}
|
|
12530
12493
|
return s;
|
|
12531
12494
|
}
|
|
@@ -12601,7 +12564,7 @@ function Fd(...A) {
|
|
|
12601
12564
|
}
|
|
12602
12565
|
return B;
|
|
12603
12566
|
}
|
|
12604
|
-
class
|
|
12567
|
+
class hA extends Error {
|
|
12605
12568
|
constructor(B) {
|
|
12606
12569
|
super(B), this.name = "ShikiError";
|
|
12607
12570
|
}
|
|
@@ -12611,10 +12574,10 @@ function Fg(A, B, Q) {
|
|
|
12611
12574
|
if ("themes" in Q) {
|
|
12612
12575
|
const { defaultColor: t = "light", cssVariablePrefix: o = "--shiki-" } = Q, n = Object.entries(Q.themes).filter((D) => D[1]).map((D) => ({ color: D[0], theme: D[1] })).sort((D, a) => D.color === t ? -1 : a.color === t ? 1 : 0);
|
|
12613
12576
|
if (n.length === 0)
|
|
12614
|
-
throw new
|
|
12577
|
+
throw new hA("`themes` option must not be empty");
|
|
12615
12578
|
const s = Ls(A, B, Q);
|
|
12616
12579
|
if (t && !n.find((D) => D.color === t))
|
|
12617
|
-
throw new
|
|
12580
|
+
throw new hA(`\`themes\` option must contain the defaultColor key \`${t}\``);
|
|
12618
12581
|
const i = n.map((D) => A.getTheme(D.theme)), w = n.map((D) => D.color);
|
|
12619
12582
|
C = s.map((D) => D.map((a) => Nd(a, w, o, t)));
|
|
12620
12583
|
const r = n.map((D) => fg(D.theme, Q));
|
|
@@ -12625,7 +12588,7 @@ function Fg(A, B, Q) {
|
|
|
12625
12588
|
const o = A.getTheme(Q.theme);
|
|
12626
12589
|
g = dB(o.bg, t), E = dB(o.fg, t), e = o.name;
|
|
12627
12590
|
} else
|
|
12628
|
-
throw new
|
|
12591
|
+
throw new hA("Invalid options, either `theme` or `themes` must be provided");
|
|
12629
12592
|
return {
|
|
12630
12593
|
tokens: C,
|
|
12631
12594
|
fg: E,
|
|
@@ -12683,13 +12646,13 @@ function Gd() {
|
|
|
12683
12646
|
for (let E = 0; E < g.length; E++) {
|
|
12684
12647
|
const C = g[E];
|
|
12685
12648
|
if (C.start.offset > C.end.offset)
|
|
12686
|
-
throw new
|
|
12649
|
+
throw new hA(`Invalid decoration range: ${JSON.stringify(C.start)} - ${JSON.stringify(C.end)}`);
|
|
12687
12650
|
for (let e = E + 1; e < g.length; e++) {
|
|
12688
12651
|
const I = g[e], t = C.start.offset < I.start.offset && I.start.offset < C.end.offset, o = C.start.offset < I.end.offset && I.end.offset < C.end.offset, n = I.start.offset < C.start.offset && C.start.offset < I.end.offset, s = I.start.offset < C.end.offset && C.end.offset < I.end.offset;
|
|
12689
12652
|
if (t || o || n || s) {
|
|
12690
12653
|
if (o && o || n && s)
|
|
12691
12654
|
continue;
|
|
12692
|
-
throw new
|
|
12655
|
+
throw new hA(`Decorations ${JSON.stringify(C.start)} and ${JSON.stringify(I.start)} intersect.`);
|
|
12693
12656
|
}
|
|
12694
12657
|
}
|
|
12695
12658
|
}
|
|
@@ -12709,46 +12672,46 @@ function Gd() {
|
|
|
12709
12672
|
return;
|
|
12710
12673
|
const E = B(this), C = Array.from(g.children).filter((i) => i.type === "element" && i.tagName === "span");
|
|
12711
12674
|
if (C.length !== E.converter.lines.length)
|
|
12712
|
-
throw new
|
|
12675
|
+
throw new hA(`Number of lines in code element (${C.length}) does not match the number of lines in the source (${E.converter.lines.length}). Failed to apply decorations.`);
|
|
12713
12676
|
function e(i, w, r, D) {
|
|
12714
12677
|
const a = C[i];
|
|
12715
|
-
let
|
|
12716
|
-
function
|
|
12717
|
-
return F.type === "text" ? F.value : F.type === "element" ? F.children.map(
|
|
12678
|
+
let u = "", M = -1, c = -1;
|
|
12679
|
+
function l(F) {
|
|
12680
|
+
return F.type === "text" ? F.value : F.type === "element" ? F.children.map(l).join("") : "";
|
|
12718
12681
|
}
|
|
12719
|
-
if (w === 0 && (
|
|
12682
|
+
if (w === 0 && (M = 0), r === 0 && (c = 0), r === Number.POSITIVE_INFINITY && (c = a.children.length), M === -1 || c === -1)
|
|
12720
12683
|
for (let F = 0; F < a.children.length; F++)
|
|
12721
|
-
|
|
12722
|
-
if (
|
|
12723
|
-
throw new
|
|
12724
|
-
if (
|
|
12725
|
-
throw new
|
|
12726
|
-
const
|
|
12727
|
-
if (!D.alwaysWrap &&
|
|
12684
|
+
u += l(a.children[F]), M === -1 && u.length === w && (M = F + 1), c === -1 && u.length === r && (c = F + 1);
|
|
12685
|
+
if (M === -1)
|
|
12686
|
+
throw new hA(`Failed to find start index for decoration ${JSON.stringify(D.start)}`);
|
|
12687
|
+
if (c === -1)
|
|
12688
|
+
throw new hA(`Failed to find end index for decoration ${JSON.stringify(D.end)}`);
|
|
12689
|
+
const d = a.children.slice(M, c);
|
|
12690
|
+
if (!D.alwaysWrap && d.length === a.children.length)
|
|
12728
12691
|
t(a, D, "line");
|
|
12729
|
-
else if (!D.alwaysWrap &&
|
|
12730
|
-
t(
|
|
12692
|
+
else if (!D.alwaysWrap && d.length === 1 && d[0].type === "element")
|
|
12693
|
+
t(d[0], D, "token");
|
|
12731
12694
|
else {
|
|
12732
12695
|
const F = {
|
|
12733
12696
|
type: "element",
|
|
12734
12697
|
tagName: "span",
|
|
12735
12698
|
properties: {},
|
|
12736
|
-
children:
|
|
12699
|
+
children: d
|
|
12737
12700
|
};
|
|
12738
|
-
t(F, D, "wrapper"), a.children.splice(
|
|
12701
|
+
t(F, D, "wrapper"), a.children.splice(M, d.length, F);
|
|
12739
12702
|
}
|
|
12740
12703
|
}
|
|
12741
12704
|
function I(i, w) {
|
|
12742
12705
|
C[i] = t(C[i], w, "line");
|
|
12743
12706
|
}
|
|
12744
12707
|
function t(i, w, r) {
|
|
12745
|
-
var
|
|
12746
|
-
const D = w.properties || {}, a = w.transform || ((
|
|
12708
|
+
var u;
|
|
12709
|
+
const D = w.properties || {}, a = w.transform || ((M) => M);
|
|
12747
12710
|
return i.tagName = w.tagName || "span", i.properties = {
|
|
12748
12711
|
...i.properties,
|
|
12749
12712
|
...D,
|
|
12750
12713
|
class: i.properties.class
|
|
12751
|
-
}, (
|
|
12714
|
+
}, (u = w.properties) != null && u.class && Ns(i, w.properties.class), i = a(i, r) || i, i;
|
|
12752
12715
|
}
|
|
12753
12716
|
const o = [], n = E.decorations.sort((i, w) => w.start.offset - i.start.offset);
|
|
12754
12717
|
for (const i of n) {
|
|
@@ -12853,32 +12816,32 @@ function Ld(A, B, Q) {
|
|
|
12853
12816
|
}
|
|
12854
12817
|
};
|
|
12855
12818
|
if (A.forEach((D, a) => {
|
|
12856
|
-
var
|
|
12819
|
+
var c, l;
|
|
12857
12820
|
a && (e === "inline" ? C.children.push({ type: "element", tagName: "br", properties: {}, children: [] }) : e === "classic" && E.push({ type: "text", value: `
|
|
12858
12821
|
` }));
|
|
12859
|
-
let
|
|
12822
|
+
let u = {
|
|
12860
12823
|
type: "element",
|
|
12861
12824
|
tagName: "span",
|
|
12862
12825
|
properties: { class: "line" },
|
|
12863
12826
|
children: []
|
|
12864
|
-
},
|
|
12865
|
-
for (const
|
|
12827
|
+
}, M = 0;
|
|
12828
|
+
for (const d of D) {
|
|
12866
12829
|
let F = {
|
|
12867
12830
|
type: "element",
|
|
12868
12831
|
tagName: "span",
|
|
12869
12832
|
properties: {},
|
|
12870
|
-
children: [{ type: "text", value:
|
|
12833
|
+
children: [{ type: "text", value: d.content }]
|
|
12871
12834
|
};
|
|
12872
|
-
const S =
|
|
12835
|
+
const S = d.htmlStyle || ys(Gs(d));
|
|
12873
12836
|
S && (F.properties.style = S);
|
|
12874
12837
|
for (const J of g)
|
|
12875
|
-
F = ((
|
|
12876
|
-
e === "inline" ? C.children.push(F) : e === "classic" &&
|
|
12838
|
+
F = ((c = J == null ? void 0 : J.span) == null ? void 0 : c.call(n, F, a + 1, M, u)) || F;
|
|
12839
|
+
e === "inline" ? C.children.push(F) : e === "classic" && u.children.push(F), M += d.content.length;
|
|
12877
12840
|
}
|
|
12878
12841
|
if (e === "classic") {
|
|
12879
|
-
for (const
|
|
12880
|
-
|
|
12881
|
-
o.push(
|
|
12842
|
+
for (const d of g)
|
|
12843
|
+
u = ((l = d == null ? void 0 : d.line) == null ? void 0 : l.call(n, u, a + 1)) || u;
|
|
12844
|
+
o.push(u), E.push(u);
|
|
12882
12845
|
}
|
|
12883
12846
|
}), e === "classic") {
|
|
12884
12847
|
for (const D of g)
|
|
@@ -12956,7 +12919,7 @@ const Rd = [
|
|
|
12956
12919
|
"track",
|
|
12957
12920
|
"wbr"
|
|
12958
12921
|
];
|
|
12959
|
-
class
|
|
12922
|
+
class OQ {
|
|
12960
12923
|
/**
|
|
12961
12924
|
* @constructor
|
|
12962
12925
|
* @param {Properties} property
|
|
@@ -12967,15 +12930,15 @@ class xQ {
|
|
|
12967
12930
|
this.property = B, this.normal = Q, g && (this.space = g);
|
|
12968
12931
|
}
|
|
12969
12932
|
}
|
|
12970
|
-
|
|
12971
|
-
|
|
12972
|
-
|
|
12933
|
+
OQ.prototype.property = {};
|
|
12934
|
+
OQ.prototype.normal = {};
|
|
12935
|
+
OQ.prototype.space = null;
|
|
12973
12936
|
function ks(A, B) {
|
|
12974
12937
|
const Q = {}, g = {};
|
|
12975
12938
|
let E = -1;
|
|
12976
12939
|
for (; ++E < A.length; )
|
|
12977
12940
|
Object.assign(Q, A[E].property), Object.assign(g, A[E].normal);
|
|
12978
|
-
return new
|
|
12941
|
+
return new OQ(Q, g, B);
|
|
12979
12942
|
}
|
|
12980
12943
|
function zE(A) {
|
|
12981
12944
|
return A.toLowerCase();
|
|
@@ -13051,7 +13014,7 @@ function VB(A) {
|
|
|
13051
13014
|
);
|
|
13052
13015
|
A.mustUseProperty && A.mustUseProperty.includes(g) && (C.mustUseProperty = !0), B[g] = C, Q[zE(g)] = g, Q[zE(C.attribute)] = g;
|
|
13053
13016
|
}
|
|
13054
|
-
return new
|
|
13017
|
+
return new OQ(B, Q, A.space);
|
|
13055
13018
|
}
|
|
13056
13019
|
const Rs = VB({
|
|
13057
13020
|
space: "xlink",
|
|
@@ -14511,9 +14474,9 @@ const Xd = [
|
|
|
14511
14474
|
"para",
|
|
14512
14475
|
"times"
|
|
14513
14476
|
], Js = {}.hasOwnProperty, $E = {};
|
|
14514
|
-
let
|
|
14515
|
-
for (
|
|
14516
|
-
Js.call(dE,
|
|
14477
|
+
let VQ;
|
|
14478
|
+
for (VQ in dE)
|
|
14479
|
+
Js.call(dE, VQ) && ($E[dE[VQ]] = VQ);
|
|
14517
14480
|
function Vd(A, B, Q, g) {
|
|
14518
14481
|
const E = String.fromCharCode(A);
|
|
14519
14482
|
if (Js.call($E, E)) {
|
|
@@ -14700,8 +14663,7 @@ function M8(A) {
|
|
|
14700
14663
|
for (; ++g < B.length; ) {
|
|
14701
14664
|
const E = B[g];
|
|
14702
14665
|
if (E.type === "element" && (E.tagName === "title" || E.tagName === "base")) {
|
|
14703
|
-
if (Q.includes(E.tagName))
|
|
14704
|
-
return !1;
|
|
14666
|
+
if (Q.includes(E.tagName)) return !1;
|
|
14705
14667
|
Q.push(E.tagName);
|
|
14706
14668
|
}
|
|
14707
14669
|
}
|
|
@@ -14719,7 +14681,7 @@ function F8(A, B, Q) {
|
|
|
14719
14681
|
const g = xs(Q, B), E = sA(A, -1);
|
|
14720
14682
|
return Q && g && g.type === "element" && (g.tagName === "thead" || g.tagName === "tbody") && SC(g, Q.children.indexOf(g), Q) ? !1 : !!(E && E.type === "element" && E.tagName === "tr");
|
|
14721
14683
|
}
|
|
14722
|
-
const
|
|
14684
|
+
const zQ = {
|
|
14723
14685
|
// See: <https://html.spec.whatwg.org/#attribute-name-state>.
|
|
14724
14686
|
name: [
|
|
14725
14687
|
[`
|
|
@@ -14785,7 +14747,7 @@ function y8(A, B, Q) {
|
|
|
14785
14747
|
g.attribute,
|
|
14786
14748
|
Object.assign({}, A.settings.characterReferences, {
|
|
14787
14749
|
// Always encode without parse errors in non-HTML.
|
|
14788
|
-
subset:
|
|
14750
|
+
subset: zQ.name[E][C]
|
|
14789
14751
|
})
|
|
14790
14752
|
);
|
|
14791
14753
|
return Q === !0 || (Q = Array.isArray(Q) ? (g.commaSeparated ? g8 : E8)(Q, {
|
|
@@ -14794,13 +14756,13 @@ function y8(A, B, Q) {
|
|
|
14794
14756
|
Q,
|
|
14795
14757
|
Object.assign({}, A.settings.characterReferences, {
|
|
14796
14758
|
attribute: !0,
|
|
14797
|
-
subset:
|
|
14759
|
+
subset: zQ.unquoted[E][C]
|
|
14798
14760
|
})
|
|
14799
14761
|
)), I !== Q && (A.settings.quoteSmart && Bt(Q, e) > Bt(Q, A.alternative) && (e = A.alternative), I = e + OB(
|
|
14800
14762
|
Q,
|
|
14801
14763
|
Object.assign({}, A.settings.characterReferences, {
|
|
14802
14764
|
// Always encode without parse errors in non-HTML.
|
|
14803
|
-
subset: (e === "'" ?
|
|
14765
|
+
subset: (e === "'" ? zQ.single : zQ.double)[E][C],
|
|
14804
14766
|
attribute: !0
|
|
14805
14767
|
})
|
|
14806
14768
|
) + e), t + (I && "=" + I));
|
|
@@ -14903,8 +14865,8 @@ async function v8(A) {
|
|
|
14903
14865
|
function C() {
|
|
14904
14866
|
return typeof performance < "u" ? performance.now() : Date.now();
|
|
14905
14867
|
}
|
|
14906
|
-
function e(D, a,
|
|
14907
|
-
g.HEAPU8.copyWithin(D, a, a +
|
|
14868
|
+
function e(D, a, u) {
|
|
14869
|
+
g.HEAPU8.copyWithin(D, a, a + u);
|
|
14908
14870
|
}
|
|
14909
14871
|
function I() {
|
|
14910
14872
|
return 2147483648;
|
|
@@ -14918,48 +14880,48 @@ async function v8(A) {
|
|
|
14918
14880
|
function o(D) {
|
|
14919
14881
|
const a = g.HEAPU8.length;
|
|
14920
14882
|
D = D >>> 0;
|
|
14921
|
-
const
|
|
14922
|
-
if (D >
|
|
14883
|
+
const u = I();
|
|
14884
|
+
if (D > u)
|
|
14923
14885
|
return !1;
|
|
14924
|
-
const
|
|
14925
|
-
for (let
|
|
14926
|
-
let
|
|
14927
|
-
|
|
14928
|
-
const
|
|
14929
|
-
if (t(
|
|
14886
|
+
const M = (c, l) => c + (l - c % l) % l;
|
|
14887
|
+
for (let c = 1; c <= 4; c *= 2) {
|
|
14888
|
+
let l = a * (1 + 0.2 / c);
|
|
14889
|
+
l = Math.min(l, D + 100663296);
|
|
14890
|
+
const d = Math.min(u, M(Math.max(D, l), 65536));
|
|
14891
|
+
if (t(d))
|
|
14930
14892
|
return !0;
|
|
14931
14893
|
}
|
|
14932
14894
|
return !1;
|
|
14933
14895
|
}
|
|
14934
14896
|
const n = typeof TextDecoder < "u" ? new TextDecoder("utf8") : void 0;
|
|
14935
|
-
function s(D, a,
|
|
14936
|
-
const
|
|
14937
|
-
let
|
|
14938
|
-
for (; D[
|
|
14939
|
-
++
|
|
14940
|
-
if (
|
|
14941
|
-
return n.decode(D.subarray(a,
|
|
14942
|
-
let
|
|
14943
|
-
for (; a <
|
|
14944
|
-
let
|
|
14945
|
-
if (!(
|
|
14946
|
-
|
|
14897
|
+
function s(D, a, u = 1024) {
|
|
14898
|
+
const M = a + u;
|
|
14899
|
+
let c = a;
|
|
14900
|
+
for (; D[c] && !(c >= M); )
|
|
14901
|
+
++c;
|
|
14902
|
+
if (c - a > 16 && D.buffer && n)
|
|
14903
|
+
return n.decode(D.subarray(a, c));
|
|
14904
|
+
let l = "";
|
|
14905
|
+
for (; a < c; ) {
|
|
14906
|
+
let d = D[a++];
|
|
14907
|
+
if (!(d & 128)) {
|
|
14908
|
+
l += String.fromCharCode(d);
|
|
14947
14909
|
continue;
|
|
14948
14910
|
}
|
|
14949
14911
|
const F = D[a++] & 63;
|
|
14950
|
-
if ((
|
|
14951
|
-
|
|
14912
|
+
if ((d & 224) === 192) {
|
|
14913
|
+
l += String.fromCharCode((d & 31) << 6 | F);
|
|
14952
14914
|
continue;
|
|
14953
14915
|
}
|
|
14954
14916
|
const S = D[a++] & 63;
|
|
14955
|
-
if ((
|
|
14956
|
-
|
|
14917
|
+
if ((d & 240) === 224 ? d = (d & 15) << 12 | F << 6 | S : d = (d & 7) << 18 | F << 12 | S << 6 | D[a++] & 63, d < 65536)
|
|
14918
|
+
l += String.fromCharCode(d);
|
|
14957
14919
|
else {
|
|
14958
|
-
const J =
|
|
14959
|
-
|
|
14920
|
+
const J = d - 65536;
|
|
14921
|
+
l += String.fromCharCode(55296 | J >> 10, 56320 | J & 1023);
|
|
14960
14922
|
}
|
|
14961
14923
|
}
|
|
14962
|
-
return
|
|
14924
|
+
return l;
|
|
14963
14925
|
}
|
|
14964
14926
|
function i(D, a) {
|
|
14965
14927
|
return D ? s(g.HEAPU8, D, a) : "";
|
|
@@ -14981,7 +14943,7 @@ async function v8(A) {
|
|
|
14981
14943
|
}
|
|
14982
14944
|
let wA = null, b8 = !1;
|
|
14983
14945
|
function T8(A) {
|
|
14984
|
-
throw new
|
|
14946
|
+
throw new hA(A.UTF8ToString(A.getLastOnigError()));
|
|
14985
14947
|
}
|
|
14986
14948
|
class $g {
|
|
14987
14949
|
constructor(B) {
|
|
@@ -15037,7 +14999,7 @@ const yA = class yA {
|
|
|
15037
14999
|
h(this, "utf8OffsetToUtf16");
|
|
15038
15000
|
h(this, "ptr");
|
|
15039
15001
|
if (!wA)
|
|
15040
|
-
throw new
|
|
15002
|
+
throw new hA("Must invoke loadWasm first.");
|
|
15041
15003
|
this._onigBinding = wA, this.content = B;
|
|
15042
15004
|
const Q = new $g(B);
|
|
15043
15005
|
this.utf16Length = Q.utf16Length, this.utf8Length = Q.utf8Length, this.utf16OffsetToUtf8 = Q.utf16OffsetToUtf8, this.utf8OffsetToUtf16 = Q.utf8OffsetToUtf16, this.utf8Length < 1e4 && !yA._sharedPtrInUse ? (yA._sharedPtr || (yA._sharedPtr = wA.omalloc(1e4)), yA._sharedPtrInUse = !0, wA.HEAPU8.set(Q.utf8Value, yA._sharedPtr), this.ptr = yA._sharedPtr) : this.ptr = Q.createString(wA);
|
|
@@ -15060,7 +15022,7 @@ class q8 {
|
|
|
15060
15022
|
h(this, "_onigBinding");
|
|
15061
15023
|
h(this, "_ptr");
|
|
15062
15024
|
if (!wA)
|
|
15063
|
-
throw new
|
|
15025
|
+
throw new hA("Must invoke loadWasm first.");
|
|
15064
15026
|
const Q = [], g = [];
|
|
15065
15027
|
for (let I = 0, t = B.length; I < t; I++) {
|
|
15066
15028
|
const o = new $g(B[I]);
|
|
@@ -15125,17 +15087,17 @@ function V8(A) {
|
|
|
15125
15087
|
var B;
|
|
15126
15088
|
return typeof ArrayBuffer < "u" && (A instanceof ArrayBuffer || ArrayBuffer.isView(A)) || typeof Buffer < "u" && ((B = Buffer.isBuffer) == null ? void 0 : B.call(Buffer, A)) || typeof SharedArrayBuffer < "u" && A instanceof SharedArrayBuffer || typeof Uint32Array < "u" && A instanceof Uint32Array;
|
|
15127
15089
|
}
|
|
15128
|
-
let
|
|
15090
|
+
let jQ;
|
|
15129
15091
|
function z8(A) {
|
|
15130
|
-
if (
|
|
15131
|
-
return
|
|
15092
|
+
if (jQ)
|
|
15093
|
+
return jQ;
|
|
15132
15094
|
async function B() {
|
|
15133
15095
|
wA = await v8(async (Q) => {
|
|
15134
15096
|
let g = A;
|
|
15135
15097
|
return g = await g, typeof g == "function" && (g = await g(Q)), typeof g == "function" && (g = await g(Q)), _8(g) ? g = await g.instantiator(Q) : W8(g) ? g = await g.default(Q) : (X8(g) && (g = g.data), Z8(g) ? typeof WebAssembly.instantiateStreaming == "function" ? g = await j8(g)(Q) : g = await $8(g)(Q) : V8(g) ? g = await pE(g)(Q) : g instanceof WebAssembly.Module ? g = await pE(g)(Q) : "default" in g && g.default instanceof WebAssembly.Module && (g = await pE(g.default)(Q))), "instance" in g && (g = g.instance), "exports" in g && (g = g.exports), g;
|
|
15136
15098
|
});
|
|
15137
15099
|
}
|
|
15138
|
-
return
|
|
15100
|
+
return jQ = B(), jQ;
|
|
15139
15101
|
}
|
|
15140
15102
|
function pE(A) {
|
|
15141
15103
|
return (B) => WebAssembly.instantiate(A, B);
|
|
@@ -15186,8 +15148,8 @@ function Ts(A) {
|
|
|
15186
15148
|
return (r = B.colorReplacements) != null && r[`#${w}`] ? e(i) : (C.set(i, w), w);
|
|
15187
15149
|
}
|
|
15188
15150
|
B.settings = B.settings.map((i) => {
|
|
15189
|
-
var a,
|
|
15190
|
-
const w = ((a = i.settings) == null ? void 0 : a.foreground) && !i.settings.foreground.startsWith("#"), r = ((
|
|
15151
|
+
var a, u;
|
|
15152
|
+
const w = ((a = i.settings) == null ? void 0 : a.foreground) && !i.settings.foreground.startsWith("#"), r = ((u = i.settings) == null ? void 0 : u.background) && !i.settings.background.startsWith("#");
|
|
15191
15153
|
if (!w && !r)
|
|
15192
15154
|
return i;
|
|
15193
15155
|
const D = {
|
|
@@ -15197,12 +15159,12 @@ function Ts(A) {
|
|
|
15197
15159
|
}
|
|
15198
15160
|
};
|
|
15199
15161
|
if (w) {
|
|
15200
|
-
const
|
|
15201
|
-
B.colorReplacements[
|
|
15162
|
+
const M = e(i.settings.foreground);
|
|
15163
|
+
B.colorReplacements[M] = i.settings.foreground, D.settings.foreground = M;
|
|
15202
15164
|
}
|
|
15203
15165
|
if (r) {
|
|
15204
|
-
const
|
|
15205
|
-
B.colorReplacements[
|
|
15166
|
+
const M = e(i.settings.background);
|
|
15167
|
+
B.colorReplacements[M] = i.settings.background, D.settings.background = M;
|
|
15206
15168
|
}
|
|
15207
15169
|
return D;
|
|
15208
15170
|
});
|
|
@@ -15224,9 +15186,9 @@ class QM extends Id {
|
|
|
15224
15186
|
h(this, "_themes");
|
|
15225
15187
|
h(this, "_langs");
|
|
15226
15188
|
h(this, "_alias");
|
|
15227
|
-
h(this, "_resolvedThemes",
|
|
15228
|
-
h(this, "_resolvedGrammars",
|
|
15229
|
-
h(this, "_langMap",
|
|
15189
|
+
h(this, "_resolvedThemes", /* @__PURE__ */ new Map());
|
|
15190
|
+
h(this, "_resolvedGrammars", /* @__PURE__ */ new Map());
|
|
15191
|
+
h(this, "_langMap", /* @__PURE__ */ new Map());
|
|
15230
15192
|
h(this, "_langGraph", /* @__PURE__ */ new Map());
|
|
15231
15193
|
h(this, "_textmateThemeCache", /* @__PURE__ */ new WeakMap());
|
|
15232
15194
|
h(this, "_loadedThemesCache", null);
|
|
@@ -15234,14 +15196,14 @@ class QM extends Id {
|
|
|
15234
15196
|
this._resolver = Q, this._themes = g, this._langs = E, this._alias = C, g.forEach((e) => this.loadTheme(e)), E.forEach((e) => this.loadLanguage(e));
|
|
15235
15197
|
}
|
|
15236
15198
|
getTheme(Q) {
|
|
15237
|
-
return typeof Q == "string" ? this._resolvedThemes
|
|
15199
|
+
return typeof Q == "string" ? this._resolvedThemes.get(Q) : this.loadTheme(Q);
|
|
15238
15200
|
}
|
|
15239
15201
|
loadTheme(Q) {
|
|
15240
15202
|
const g = Ts(Q);
|
|
15241
|
-
return g.name && (this._resolvedThemes
|
|
15203
|
+
return g.name && (this._resolvedThemes.set(g.name, g), this._loadedThemesCache = null), g;
|
|
15242
15204
|
}
|
|
15243
15205
|
getLoadedThemes() {
|
|
15244
|
-
return this._loadedThemesCache || (this._loadedThemesCache =
|
|
15206
|
+
return this._loadedThemesCache || (this._loadedThemesCache = [...this._resolvedThemes.keys()]), this._loadedThemesCache;
|
|
15245
15207
|
}
|
|
15246
15208
|
// Override and re-implement this method to cache the textmate themes as `TextMateTheme.createFromRawTheme`
|
|
15247
15209
|
// is expensive. Themes can switch often especially for dual-theme support.
|
|
@@ -15257,17 +15219,17 @@ class QM extends Id {
|
|
|
15257
15219
|
const g = /* @__PURE__ */ new Set([Q]);
|
|
15258
15220
|
for (; this._alias[Q]; ) {
|
|
15259
15221
|
if (Q = this._alias[Q], g.has(Q))
|
|
15260
|
-
throw new
|
|
15222
|
+
throw new hA(`Circular alias \`${Array.from(g).join(" -> ")} -> ${Q}\``);
|
|
15261
15223
|
g.add(Q);
|
|
15262
15224
|
}
|
|
15263
15225
|
}
|
|
15264
|
-
return this._resolvedGrammars
|
|
15226
|
+
return this._resolvedGrammars.get(Q);
|
|
15265
15227
|
}
|
|
15266
15228
|
async loadLanguage(Q) {
|
|
15267
15229
|
var e, I, t, o;
|
|
15268
15230
|
if (this.getGrammar(Q.name))
|
|
15269
15231
|
return;
|
|
15270
|
-
const g = new Set(
|
|
15232
|
+
const g = new Set([...this._langMap.values()].filter((n) => {
|
|
15271
15233
|
var s;
|
|
15272
15234
|
return (s = n.embeddedLangsLazy) == null ? void 0 : s.includes(Q.name);
|
|
15273
15235
|
}));
|
|
@@ -15278,15 +15240,18 @@ class QM extends Id {
|
|
|
15278
15240
|
};
|
|
15279
15241
|
this._syncRegistry._rawGrammars.set(Q.scopeName, Q);
|
|
15280
15242
|
const C = await this.loadGrammarWithConfiguration(Q.scopeName, 1, E);
|
|
15281
|
-
if (this._resolvedGrammars
|
|
15243
|
+
if (this._resolvedGrammars.set(Q.name, C), Q.aliases && Q.aliases.forEach((n) => {
|
|
15282
15244
|
this._alias[n] = Q.name;
|
|
15283
15245
|
}), this._loadedLanguagesCache = null, g.size)
|
|
15284
15246
|
for (const n of g)
|
|
15285
|
-
|
|
15247
|
+
this._resolvedGrammars.delete(n.name), this._loadedLanguagesCache = null, (I = (e = this._syncRegistry) == null ? void 0 : e._injectionGrammars) == null || I.delete(n.scopeName), (o = (t = this._syncRegistry) == null ? void 0 : t._grammars) == null || o.delete(n.scopeName), await this.loadLanguage(this._langMap.get(n.name));
|
|
15286
15248
|
}
|
|
15287
15249
|
async init() {
|
|
15288
15250
|
this._themes.map((Q) => this.loadTheme(Q)), await this.loadLanguages(this._langs);
|
|
15289
15251
|
}
|
|
15252
|
+
dispose() {
|
|
15253
|
+
super.dispose(), this._resolvedThemes.clear(), this._resolvedGrammars.clear(), this._langMap.clear(), this._langGraph.clear(), this._loadedThemesCache = null;
|
|
15254
|
+
}
|
|
15290
15255
|
async loadLanguages(Q) {
|
|
15291
15256
|
for (const C of Q)
|
|
15292
15257
|
this.resolveEmbeddedLanguages(C);
|
|
@@ -15296,7 +15261,7 @@ class QM extends Id {
|
|
|
15296
15261
|
var t;
|
|
15297
15262
|
return I && ((t = I.embeddedLangs) == null ? void 0 : t.some((o) => E.map(([n]) => n).includes(o)));
|
|
15298
15263
|
}).filter((e) => !E.includes(e));
|
|
15299
|
-
throw new
|
|
15264
|
+
throw new hA(`Missing languages ${E.map(([e]) => `\`${e}\``).join(", ")}, required by ${C.map(([e]) => `\`${e}\``).join(", ")}`);
|
|
15300
15265
|
}
|
|
15301
15266
|
for (const [C, e] of g)
|
|
15302
15267
|
this._resolver.addLanguage(e);
|
|
@@ -15304,12 +15269,14 @@ class QM extends Id {
|
|
|
15304
15269
|
await this.loadLanguage(e);
|
|
15305
15270
|
}
|
|
15306
15271
|
getLoadedLanguages() {
|
|
15307
|
-
return this._loadedLanguagesCache || (this._loadedLanguagesCache =
|
|
15272
|
+
return this._loadedLanguagesCache || (this._loadedLanguagesCache = [
|
|
15273
|
+
.../* @__PURE__ */ new Set([...this._resolvedGrammars.keys(), ...Object.keys(this._alias)])
|
|
15274
|
+
]), this._loadedLanguagesCache;
|
|
15308
15275
|
}
|
|
15309
15276
|
resolveEmbeddedLanguages(Q) {
|
|
15310
|
-
if (this._langMap
|
|
15277
|
+
if (this._langMap.set(Q.name, Q), this._langGraph.set(Q.name, Q), Q.embeddedLangs)
|
|
15311
15278
|
for (const g of Q.embeddedLangs)
|
|
15312
|
-
this._langGraph.set(g, this._langMap
|
|
15279
|
+
this._langGraph.set(g, this._langMap.get(g));
|
|
15313
15280
|
}
|
|
15314
15281
|
}
|
|
15315
15282
|
class gM {
|
|
@@ -15346,72 +15313,85 @@ class gM {
|
|
|
15346
15313
|
return g;
|
|
15347
15314
|
}
|
|
15348
15315
|
}
|
|
15349
|
-
let EM,
|
|
15316
|
+
let EM, AQ = 0;
|
|
15350
15317
|
async function CM(A = {}) {
|
|
15351
|
-
|
|
15352
|
-
|
|
15353
|
-
|
|
15354
|
-
|
|
15355
|
-
|
|
15356
|
-
|
|
15357
|
-
|
|
15358
|
-
|
|
15359
|
-
|
|
15360
|
-
|
|
15361
|
-
g
|
|
15362
|
-
|
|
15363
|
-
|
|
15364
|
-
|
|
15318
|
+
AQ += 1, A.warnings !== !1 && AQ >= 10 && AQ % 10 === 0 && console.warn(`[Shiki] ${AQ} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);
|
|
15319
|
+
let B = !1;
|
|
15320
|
+
async function Q(c) {
|
|
15321
|
+
return Promise.resolve(typeof c == "function" ? c() : c).then((l) => l.default || l);
|
|
15322
|
+
}
|
|
15323
|
+
async function g(c) {
|
|
15324
|
+
return Array.from(new Set((await Promise.all(c.filter((l) => !od(l)).map(async (l) => await Q(l).then((d) => Array.isArray(d) ? d : [d])))).flat()));
|
|
15325
|
+
}
|
|
15326
|
+
const E = A.loadWasm || EM, [C, e] = await Promise.all([
|
|
15327
|
+
Promise.all((A.themes || []).map(Q)).then((c) => c.map(Ts)),
|
|
15328
|
+
g(A.langs || []),
|
|
15329
|
+
E ? z8(E) : void 0
|
|
15330
|
+
]), I = new gM(Promise.resolve({
|
|
15331
|
+
createOnigScanner(c) {
|
|
15332
|
+
return BM(c);
|
|
15365
15333
|
},
|
|
15366
|
-
createOnigString(
|
|
15367
|
-
return AM(
|
|
15334
|
+
createOnigString(c) {
|
|
15335
|
+
return AM(c);
|
|
15368
15336
|
}
|
|
15369
|
-
}),
|
|
15370
|
-
await
|
|
15371
|
-
let
|
|
15372
|
-
function
|
|
15373
|
-
|
|
15374
|
-
|
|
15375
|
-
|
|
15376
|
-
|
|
15377
|
-
|
|
15378
|
-
|
|
15379
|
-
|
|
15337
|
+
}), e), t = new QM(I, C, e, A.langAlias);
|
|
15338
|
+
await t.init();
|
|
15339
|
+
let o;
|
|
15340
|
+
function n(c) {
|
|
15341
|
+
u();
|
|
15342
|
+
const l = t.getGrammar(typeof c == "string" ? c : c.name);
|
|
15343
|
+
if (!l)
|
|
15344
|
+
throw new hA(`Language \`${c}\` not found, you may need to load it first`);
|
|
15345
|
+
return l;
|
|
15346
|
+
}
|
|
15347
|
+
function s(c) {
|
|
15348
|
+
if (c === "none")
|
|
15380
15349
|
return { bg: "", fg: "", name: "none", settings: [], type: "dark" };
|
|
15381
|
-
|
|
15382
|
-
|
|
15383
|
-
|
|
15384
|
-
|
|
15385
|
-
|
|
15386
|
-
|
|
15387
|
-
|
|
15388
|
-
|
|
15389
|
-
const
|
|
15350
|
+
u();
|
|
15351
|
+
const l = t.getTheme(c);
|
|
15352
|
+
if (!l)
|
|
15353
|
+
throw new hA(`Theme \`${c}\` not found, you may need to load it first`);
|
|
15354
|
+
return l;
|
|
15355
|
+
}
|
|
15356
|
+
function i(c) {
|
|
15357
|
+
u();
|
|
15358
|
+
const l = s(c);
|
|
15359
|
+
o !== c && (t.setTheme(l), o = c);
|
|
15360
|
+
const d = t.getColorMap();
|
|
15390
15361
|
return {
|
|
15391
|
-
theme:
|
|
15362
|
+
theme: l,
|
|
15392
15363
|
colorMap: d
|
|
15393
15364
|
};
|
|
15394
15365
|
}
|
|
15395
|
-
function i() {
|
|
15396
|
-
return I.getLoadedThemes();
|
|
15397
|
-
}
|
|
15398
15366
|
function w() {
|
|
15399
|
-
return
|
|
15367
|
+
return u(), t.getLoadedThemes();
|
|
15368
|
+
}
|
|
15369
|
+
function r() {
|
|
15370
|
+
return u(), t.getLoadedLanguages();
|
|
15400
15371
|
}
|
|
15401
|
-
async function
|
|
15402
|
-
await
|
|
15372
|
+
async function D(...c) {
|
|
15373
|
+
u(), await t.loadLanguages(await g(c));
|
|
15403
15374
|
}
|
|
15404
|
-
async function
|
|
15405
|
-
await Promise.all(
|
|
15375
|
+
async function a(...c) {
|
|
15376
|
+
u(), await Promise.all(c.map(async (l) => sd(l) ? null : t.loadTheme(await Q(l))));
|
|
15377
|
+
}
|
|
15378
|
+
function u() {
|
|
15379
|
+
if (B)
|
|
15380
|
+
throw new hA("Shiki instance has been disposed");
|
|
15381
|
+
}
|
|
15382
|
+
function M() {
|
|
15383
|
+
B || (B = !0, t.dispose(), AQ -= 1);
|
|
15406
15384
|
}
|
|
15407
15385
|
return {
|
|
15408
|
-
setTheme:
|
|
15409
|
-
getTheme:
|
|
15410
|
-
getLanguage:
|
|
15411
|
-
getLoadedThemes:
|
|
15412
|
-
getLoadedLanguages:
|
|
15413
|
-
loadLanguage:
|
|
15414
|
-
loadTheme:
|
|
15386
|
+
setTheme: i,
|
|
15387
|
+
getTheme: s,
|
|
15388
|
+
getLanguage: n,
|
|
15389
|
+
getLoadedThemes: w,
|
|
15390
|
+
getLoadedLanguages: r,
|
|
15391
|
+
loadLanguage: D,
|
|
15392
|
+
loadTheme: a,
|
|
15393
|
+
dispose: M,
|
|
15394
|
+
[Symbol.dispose]: M
|
|
15415
15395
|
};
|
|
15416
15396
|
}
|
|
15417
15397
|
async function eM(A = {}) {
|
|
@@ -15530,7 +15510,7 @@ const nM = ["innerHTML"], iM = { class: "shiki" }, wM = ["textContent"], DM = /*
|
|
|
15530
15510
|
])
|
|
15531
15511
|
]));
|
|
15532
15512
|
}
|
|
15533
|
-
}),
|
|
15513
|
+
}), vQ = (A) => (LQ("data-v-337065f2"), A = A(), kQ(), A), hM = { class: "h-full w-full" }, dM = {
|
|
15534
15514
|
key: 0,
|
|
15535
15515
|
class: "h-full flex flex-col p2"
|
|
15536
15516
|
}, MM = { class: "flex py2" }, pM = {
|
|
@@ -15538,7 +15518,7 @@ const nM = ["innerHTML"], iM = { class: "shiki" }, wM = ["textContent"], DM = /*
|
|
|
15538
15518
|
style: { height: "1.1em", width: "1.1em" },
|
|
15539
15519
|
class: "op-80 hover:op-100",
|
|
15540
15520
|
viewBox: "0 0 24 24"
|
|
15541
|
-
}, fM = /* @__PURE__ */
|
|
15521
|
+
}, fM = /* @__PURE__ */ vQ(() => /* @__PURE__ */ p("path", {
|
|
15542
15522
|
fill: "currentColor",
|
|
15543
15523
|
d: "M10.611 10.611a1 1 0 0 1 1.11-.208l8.839 3.889a1 1 0 0 1-.14 1.88l-3.338.91l-.91 3.338a1 1 0 0 1-1.88.14l-3.89-8.84a1 1 0 0 1 .209-1.109M17 3a3 3 0 0 1 3 3v3a1 1 0 1 1-2 0V6a1 1 0 0 0-1-1H6a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1h3a1 1 0 1 1 0 2H6a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3zm-3.73 10.269l1.715 3.9l.318-1.164a1 1 0 0 1 .701-.702l1.165-.318l-3.9-1.716Z"
|
|
15544
15524
|
}, null, -1)), FM = [
|
|
@@ -15546,15 +15526,15 @@ const nM = ["innerHTML"], iM = { class: "shiki" }, wM = ["textContent"], DM = /*
|
|
|
15546
15526
|
], NM = { class: "h-full flex flex-col p2" }, GM = { class: "flex py2" }, yM = {
|
|
15547
15527
|
key: 0,
|
|
15548
15528
|
class: "font-state-field flex items-center px-1 text-13px"
|
|
15549
|
-
}, LM = /* @__PURE__ */
|
|
15529
|
+
}, LM = /* @__PURE__ */ vQ(() => /* @__PURE__ */ p("span", { class: "text-gray-400 dark:text-gray-600" }, "<", -1)), kM = {
|
|
15550
15530
|
"group-hover:text-white": "",
|
|
15551
15531
|
class: "max-w-40 of-hidden text-ellipsis ws-nowrap [.active_&]:text-white"
|
|
15552
|
-
}, HM = /* @__PURE__ */
|
|
15532
|
+
}, HM = /* @__PURE__ */ vQ(() => /* @__PURE__ */ p("span", { class: "text-gray-400 dark:text-gray-600" }, ">", -1)), RM = { class: "flex items-center gap-2 px-1" }, PM = { class: "h-full flex flex-col items-center justify-center gap-2" }, UM = { class: "block" }, KM = {
|
|
15553
15533
|
xmlns: "http://www.w3.org/2000/svg",
|
|
15554
15534
|
style: { height: "2em", width: "2em", opacity: "0.5", color: "#00dc82" },
|
|
15555
15535
|
class: "animate-fade",
|
|
15556
15536
|
viewBox: "0 0 24 24"
|
|
15557
|
-
}, YM = /* @__PURE__ */
|
|
15537
|
+
}, YM = /* @__PURE__ */ vQ(() => /* @__PURE__ */ p("g", {
|
|
15558
15538
|
fill: "none",
|
|
15559
15539
|
stroke: "currentColor",
|
|
15560
15540
|
"stroke-linecap": "round",
|
|
@@ -15570,7 +15550,7 @@ const nM = ["innerHTML"], iM = { class: "shiki" }, wM = ["textContent"], DM = /*
|
|
|
15570
15550
|
/* @__PURE__ */ p("path", { d: "M5 12a7 7 0 1 0 14 0a7 7 0 1 0-14 0m7-9v2m-9 7h2m7 7v2m7-9h2" })
|
|
15571
15551
|
], -1)), SM = [
|
|
15572
15552
|
YM
|
|
15573
|
-
], mM = /* @__PURE__ */
|
|
15553
|
+
], mM = /* @__PURE__ */ vQ(() => /* @__PURE__ */ p("p", null, " Click on a component on the page to select it ", -1)), JM = { class: "flex items-center justify-center" }, BQ = "components", xM = /* @__PURE__ */ z({
|
|
15574
15554
|
__name: "index",
|
|
15575
15555
|
emits: ["openInEditor", "onInspectComponentStart", "onInspectComponentEnd"],
|
|
15576
15556
|
setup(A, { emit: B }) {
|
|
@@ -15590,30 +15570,30 @@ const nM = ["innerHTML"], iM = { class: "shiki" }, wM = ["textContent"], DM = /*
|
|
|
15590
15570
|
};
|
|
15591
15571
|
return j(b), v;
|
|
15592
15572
|
}
|
|
15593
|
-
function
|
|
15573
|
+
function u(b, v) {
|
|
15594
15574
|
const j = [];
|
|
15595
15575
|
return b == null || b.forEach((BA) => {
|
|
15596
15576
|
j.push(...BA.slice(0, v + 1));
|
|
15597
15577
|
}), [...new Set(j)];
|
|
15598
15578
|
}
|
|
15599
|
-
function
|
|
15579
|
+
function M(b, v) {
|
|
15600
15580
|
const j = [];
|
|
15601
15581
|
return b.forEach((BA) => {
|
|
15602
15582
|
const nA = BA.indexOf(v);
|
|
15603
15583
|
nA !== -1 && j.push(...BA.slice(0, nA + 1));
|
|
15604
15584
|
}), [...new Set(j)];
|
|
15605
15585
|
}
|
|
15606
|
-
const
|
|
15586
|
+
const c = K([]), l = x(() => {
|
|
15607
15587
|
var b, v;
|
|
15608
|
-
return (b =
|
|
15609
|
-
}),
|
|
15588
|
+
return (b = c.value) != null && b.length ? D((v = c.value) == null ? void 0 : v[0]) : [];
|
|
15589
|
+
}), d = x(() => a(c.value)), F = x(() => d.value.map((b) => b.id)), S = K({}), J = K(""), W = x(() => {
|
|
15610
15590
|
const b = [], v = (j) => {
|
|
15611
15591
|
j.forEach((BA) => {
|
|
15612
15592
|
var nA;
|
|
15613
15593
|
BA.id === J.value && b.push(BA), (nA = BA.children) != null && nA.length && v(BA.children);
|
|
15614
15594
|
});
|
|
15615
15595
|
};
|
|
15616
|
-
return v(
|
|
15596
|
+
return v(c.value), b[0];
|
|
15617
15597
|
}), m = x(() => {
|
|
15618
15598
|
var b;
|
|
15619
15599
|
return ((b = W.value) == null ? void 0 : b.file) ?? "";
|
|
@@ -15637,10 +15617,10 @@ const nM = ["innerHTML"], iM = { class: "shiki" }, wM = ["textContent"], DM = /*
|
|
|
15637
15617
|
}), { expanded: P } = BB(), { expanded: G } = BB("component-state");
|
|
15638
15618
|
Wa();
|
|
15639
15619
|
function R(b = "") {
|
|
15640
|
-
return q.value.getInspectorTree({ inspectorId:
|
|
15620
|
+
return q.value.getInspectorTree({ inspectorId: BQ, filter: b }).then((v) => {
|
|
15641
15621
|
var BA, nA;
|
|
15642
15622
|
const j = lA(v);
|
|
15643
|
-
|
|
15623
|
+
c.value = j, J.value = (nA = (BA = c.value) == null ? void 0 : BA[0]) == null ? void 0 : nA.id, P.value = u(l.value, 1), s.value = !0;
|
|
15644
15624
|
});
|
|
15645
15625
|
}
|
|
15646
15626
|
function _(b) {
|
|
@@ -15652,7 +15632,7 @@ const nM = ["innerHTML"], iM = { class: "shiki" }, wM = ["textContent"], DM = /*
|
|
|
15652
15632
|
}), v;
|
|
15653
15633
|
}
|
|
15654
15634
|
function X(b) {
|
|
15655
|
-
q.value.getInspectorState({ inspectorId:
|
|
15635
|
+
q.value.getInspectorState({ inspectorId: BQ, nodeId: b }).then((v) => {
|
|
15656
15636
|
const j = lA(v);
|
|
15657
15637
|
j && (S.value = _(j), G.value = Array.from({ length: Object.keys(S.value).length }, (BA, nA) => `${nA}`));
|
|
15658
15638
|
});
|
|
@@ -15662,16 +15642,16 @@ const nM = ["innerHTML"], iM = { class: "shiki" }, wM = ["textContent"], DM = /*
|
|
|
15662
15642
|
});
|
|
15663
15643
|
function T(b) {
|
|
15664
15644
|
const v = lA(b);
|
|
15665
|
-
v.inspectorId !==
|
|
15645
|
+
v.inspectorId !== BQ || v.nodeId !== J.value || (S.value = _({ state: v.state.state }));
|
|
15666
15646
|
}
|
|
15667
15647
|
q.functions.on(IA.INSPECTOR_STATE_UPDATED, T), R();
|
|
15668
|
-
function
|
|
15648
|
+
function dA(b) {
|
|
15669
15649
|
var j, BA;
|
|
15670
15650
|
const v = lA(b);
|
|
15671
|
-
v.inspectorId ===
|
|
15651
|
+
v.inspectorId === BQ && (c.value = v.rootNodes, F.value.includes(J.value) || (J.value = (BA = (j = c.value) == null ? void 0 : j[0]) == null ? void 0 : BA.id, P.value = u(l.value, 1)));
|
|
15672
15652
|
}
|
|
15673
|
-
q.functions.on(IA.INSPECTOR_TREE_UPDATED,
|
|
15674
|
-
q.functions.off(IA.INSPECTOR_STATE_UPDATED, T), q.functions.off(IA.INSPECTOR_TREE_UPDATED,
|
|
15653
|
+
q.functions.on(IA.INSPECTOR_TREE_UPDATED, dA), LB(() => {
|
|
15654
|
+
q.functions.off(IA.INSPECTOR_STATE_UPDATED, T), q.functions.off(IA.INSPECTOR_TREE_UPDATED, dA);
|
|
15675
15655
|
}), na(I, (b) => {
|
|
15676
15656
|
const v = b.trim().toLowerCase();
|
|
15677
15657
|
n(), R(v).then(() => {
|
|
@@ -15681,7 +15661,7 @@ const nM = ["innerHTML"], iM = { class: "shiki" }, wM = ["textContent"], DM = /*
|
|
|
15681
15661
|
function aA() {
|
|
15682
15662
|
i.value = !0, Q("onInspectComponentStart"), q.value.inspectComponentInspector().then((b) => {
|
|
15683
15663
|
const v = JSON.parse(b);
|
|
15684
|
-
J.value = v.id, P.value.includes(v.id) || P.value.push(v.id), P.value = [.../* @__PURE__ */ new Set([...P.value, ...
|
|
15664
|
+
J.value = v.id, P.value.includes(v.id) || P.value.push(v.id), P.value = [.../* @__PURE__ */ new Set([...P.value, ...M(l.value, v.id)])], TQ();
|
|
15685
15665
|
}).finally(() => {
|
|
15686
15666
|
i.value = !1, Q("onInspectComponentEnd");
|
|
15687
15667
|
});
|
|
@@ -15706,7 +15686,7 @@ const nM = ["innerHTML"], iM = { class: "shiki" }, wM = ["textContent"], DM = /*
|
|
|
15706
15686
|
Q("openInEditor", m.value);
|
|
15707
15687
|
}
|
|
15708
15688
|
const CB = K();
|
|
15709
|
-
function
|
|
15689
|
+
function TQ() {
|
|
15710
15690
|
setTimeout(() => {
|
|
15711
15691
|
var v;
|
|
15712
15692
|
const b = (v = CB.value) == null ? void 0 : v.querySelector(".active");
|
|
@@ -15717,7 +15697,7 @@ const nM = ["innerHTML"], iM = { class: "shiki" }, wM = ["textContent"], DM = /*
|
|
|
15717
15697
|
w.value = "", r.value = !1;
|
|
15718
15698
|
}
|
|
15719
15699
|
return (b, v) => (f(), L("div", hM, [
|
|
15720
|
-
U(N(
|
|
15700
|
+
U(N(PQ), {
|
|
15721
15701
|
ref_key: "splitpanesRef",
|
|
15722
15702
|
ref: g,
|
|
15723
15703
|
class: "flex-1 overflow-auto",
|
|
@@ -15760,10 +15740,10 @@ const nM = ["innerHTML"], iM = { class: "shiki" }, wM = ["textContent"], DM = /*
|
|
|
15760
15740
|
ref: CB,
|
|
15761
15741
|
class: "no-scrollbar flex-1 select-none overflow-scroll"
|
|
15762
15742
|
}, [
|
|
15763
|
-
U(
|
|
15743
|
+
U(JQ, {
|
|
15764
15744
|
modelValue: J.value,
|
|
15765
15745
|
"onUpdate:modelValue": v[1] || (v[1] = (j) => J.value = j),
|
|
15766
|
-
data:
|
|
15746
|
+
data: c.value,
|
|
15767
15747
|
"with-tag": !0
|
|
15768
15748
|
}, null, 8, ["modelValue", "data"])
|
|
15769
15749
|
], 512)
|
|
@@ -15841,11 +15821,11 @@ const nM = ["innerHTML"], iM = { class: "shiki" }, wM = ["textContent"], DM = /*
|
|
|
15841
15821
|
]) : $("", !0)
|
|
15842
15822
|
])
|
|
15843
15823
|
]),
|
|
15844
|
-
U(
|
|
15824
|
+
U(mQ, {
|
|
15845
15825
|
class: "no-scrollbar flex-1 select-none overflow-scroll",
|
|
15846
15826
|
data: H.value,
|
|
15847
15827
|
"node-id": J.value,
|
|
15848
|
-
"inspector-id":
|
|
15828
|
+
"inspector-id": BQ,
|
|
15849
15829
|
"expanded-state-id": "component-state"
|
|
15850
15830
|
}, null, 8, ["data", "node-id"])
|
|
15851
15831
|
]),
|
|
@@ -15986,7 +15966,7 @@ const WM = /* @__PURE__ */ kB(OM, [["render", _M]]), XM = {
|
|
|
15986
15966
|
], -1), op = /* @__PURE__ */ p("div", { "flex-auto": "" }, null, -1), sp = /* @__PURE__ */ z({
|
|
15987
15967
|
__name: "Home",
|
|
15988
15968
|
setup(A) {
|
|
15989
|
-
const B =
|
|
15969
|
+
const B = RQ();
|
|
15990
15970
|
return (Q, g) => (f(), L("div", XM, [
|
|
15991
15971
|
p("div", ZM, [
|
|
15992
15972
|
VM,
|
|
@@ -16019,7 +15999,7 @@ const WM = /* @__PURE__ */ kB(OM, [["render", _M]]), XM = {
|
|
|
16019
15999
|
]));
|
|
16020
16000
|
}
|
|
16021
16001
|
}), qs = Symbol("VueDevToolsCustomInspectorStateSymbol");
|
|
16022
|
-
function
|
|
16002
|
+
function bQ() {
|
|
16023
16003
|
return iB(qs);
|
|
16024
16004
|
}
|
|
16025
16005
|
function _s() {
|
|
@@ -16046,40 +16026,40 @@ const np = { class: "h-full flex flex-col" }, ip = {
|
|
|
16046
16026
|
}, Dp = /* @__PURE__ */ z({
|
|
16047
16027
|
__name: "Index",
|
|
16048
16028
|
setup(A) {
|
|
16049
|
-
const { expanded: B } = BB(), { expanded: Q } = BB("routes-state"), g =
|
|
16050
|
-
var
|
|
16051
|
-
return (
|
|
16052
|
-
}), t = x(() => w(e.value)), o = x(() => t.value.map((
|
|
16053
|
-
function s(
|
|
16029
|
+
const { expanded: B } = BB(), { expanded: Q } = BB("routes-state"), g = bQ(), E = x(() => g.value.id), C = K(""), e = K([]), I = x(() => {
|
|
16030
|
+
var l, d;
|
|
16031
|
+
return (l = e.value) != null && l.length ? s((d = e.value) == null ? void 0 : d[0]) : [];
|
|
16032
|
+
}), t = x(() => w(e.value)), o = x(() => t.value.map((l) => l.id)), n = K({});
|
|
16033
|
+
function s(l, d = [], F = []) {
|
|
16054
16034
|
var S;
|
|
16055
|
-
return
|
|
16056
|
-
s(J,
|
|
16057
|
-
}),
|
|
16035
|
+
return d.push(l.id), ((S = l.children) == null ? void 0 : S.length) === 0 && F.push([...d]), Array.isArray(l.children) && l.children.forEach((J) => {
|
|
16036
|
+
s(J, d, F);
|
|
16037
|
+
}), d.pop(), F;
|
|
16058
16038
|
}
|
|
16059
|
-
function i(
|
|
16039
|
+
function i(l, d) {
|
|
16060
16040
|
const F = [];
|
|
16061
|
-
return
|
|
16062
|
-
F.push(...S.slice(0,
|
|
16041
|
+
return l == null || l.forEach((S) => {
|
|
16042
|
+
F.push(...S.slice(0, d + 1));
|
|
16063
16043
|
}), [...new Set(F)];
|
|
16064
16044
|
}
|
|
16065
|
-
function w(
|
|
16066
|
-
const
|
|
16045
|
+
function w(l) {
|
|
16046
|
+
const d = [], F = (S) => {
|
|
16067
16047
|
S == null || S.forEach((J) => {
|
|
16068
16048
|
var W;
|
|
16069
|
-
|
|
16049
|
+
d.push(J), (W = J.children) != null && W.length && F(J.children);
|
|
16070
16050
|
});
|
|
16071
16051
|
};
|
|
16072
|
-
return F(
|
|
16052
|
+
return F(l), d;
|
|
16073
16053
|
}
|
|
16074
|
-
function r(
|
|
16075
|
-
var
|
|
16076
|
-
for (const F in
|
|
16077
|
-
(
|
|
16078
|
-
return
|
|
16054
|
+
function r(l) {
|
|
16055
|
+
var d;
|
|
16056
|
+
for (const F in l)
|
|
16057
|
+
(d = l[F]) != null && d.length || delete l[F];
|
|
16058
|
+
return l;
|
|
16079
16059
|
}
|
|
16080
|
-
function D(
|
|
16081
|
-
q.value.getInspectorState({ inspectorId: E.value, nodeId:
|
|
16082
|
-
const F = lA(
|
|
16060
|
+
function D(l) {
|
|
16061
|
+
q.value.getInspectorState({ inspectorId: E.value, nodeId: l }).then((d) => {
|
|
16062
|
+
const F = lA(d);
|
|
16083
16063
|
F && (n.value = r(F), Q.value = Array.from({ length: Object.keys(n.value).length }, (S, J) => `${J}`));
|
|
16084
16064
|
});
|
|
16085
16065
|
}
|
|
@@ -16089,25 +16069,25 @@ const np = { class: "h-full flex flex-col" }, ip = {
|
|
|
16089
16069
|
oA(C, () => {
|
|
16090
16070
|
a(), D(C.value);
|
|
16091
16071
|
}), (() => {
|
|
16092
|
-
q.value.getInspectorTree({ inspectorId: E.value, filter: "" }).then((
|
|
16093
|
-
const
|
|
16094
|
-
e.value =
|
|
16072
|
+
q.value.getInspectorTree({ inspectorId: E.value, filter: "" }).then((l) => {
|
|
16073
|
+
const d = lA(l);
|
|
16074
|
+
e.value = d, !C.value && d.length && (C.value = d[0].id, D(d[0].id), B.value = i(I.value, 1));
|
|
16095
16075
|
});
|
|
16096
16076
|
})();
|
|
16097
|
-
function
|
|
16098
|
-
const
|
|
16099
|
-
|
|
16077
|
+
function M(l) {
|
|
16078
|
+
const d = lA(l);
|
|
16079
|
+
d.inspectorId !== E.value || !d.rootNodes.length || (e.value = d.rootNodes, o.value.includes(C.value) || (C.value = d.rootNodes[0].id, B.value = i(I.value, 1), D(d.rootNodes[0].id)));
|
|
16100
16080
|
}
|
|
16101
|
-
function l
|
|
16102
|
-
const
|
|
16103
|
-
if (
|
|
16081
|
+
function c(l) {
|
|
16082
|
+
const d = lA(l);
|
|
16083
|
+
if (d.inspectorId !== E.value)
|
|
16104
16084
|
return;
|
|
16105
|
-
const F =
|
|
16085
|
+
const F = d.state;
|
|
16106
16086
|
n.value = r(F);
|
|
16107
16087
|
}
|
|
16108
|
-
return q.functions.on(IA.INSPECTOR_TREE_UPDATED,
|
|
16109
|
-
q.functions.off(IA.INSPECTOR_TREE_UPDATED,
|
|
16110
|
-
}), (
|
|
16088
|
+
return q.functions.on(IA.INSPECTOR_TREE_UPDATED, M), q.functions.on(IA.INSPECTOR_STATE_UPDATED, c), LB(() => {
|
|
16089
|
+
q.functions.off(IA.INSPECTOR_TREE_UPDATED, M), q.functions.off(IA.INSPECTOR_STATE_UPDATED, c);
|
|
16090
|
+
}), (l, d) => (f(), L("div", np, [
|
|
16111
16091
|
U(Og, {
|
|
16112
16092
|
"doc-link": "https://router.vuejs.org/",
|
|
16113
16093
|
"github-repo-link": "https://github.com/vuejs/router"
|
|
@@ -16117,7 +16097,7 @@ const np = { class: "h-full flex flex-col" }, ip = {
|
|
|
16117
16097
|
]),
|
|
16118
16098
|
_: 1
|
|
16119
16099
|
}),
|
|
16120
|
-
U(N(
|
|
16100
|
+
U(N(PQ), { class: "flex-1 overflow-auto" }, {
|
|
16121
16101
|
default: O(() => [
|
|
16122
16102
|
U(N(_A), {
|
|
16123
16103
|
border: "r base",
|
|
@@ -16126,9 +16106,9 @@ const np = { class: "h-full flex flex-col" }, ip = {
|
|
|
16126
16106
|
}, {
|
|
16127
16107
|
default: O(() => [
|
|
16128
16108
|
p("div", ip, [
|
|
16129
|
-
U(
|
|
16109
|
+
U(JQ, {
|
|
16130
16110
|
modelValue: C.value,
|
|
16131
|
-
"onUpdate:modelValue":
|
|
16111
|
+
"onUpdate:modelValue": d[0] || (d[0] = (F) => C.value = F),
|
|
16132
16112
|
data: e.value
|
|
16133
16113
|
}, null, 8, ["modelValue", "data"])
|
|
16134
16114
|
])
|
|
@@ -16138,14 +16118,14 @@ const np = { class: "h-full flex flex-col" }, ip = {
|
|
|
16138
16118
|
U(N(_A), { size: "60" }, {
|
|
16139
16119
|
default: O(() => [
|
|
16140
16120
|
p("div", wp, [
|
|
16141
|
-
C.value ? (f(), Z(
|
|
16121
|
+
C.value ? (f(), Z(mQ, {
|
|
16142
16122
|
key: 0,
|
|
16143
16123
|
class: "p3",
|
|
16144
16124
|
data: n.value,
|
|
16145
16125
|
"node-id": "",
|
|
16146
16126
|
"inspector-id": "router",
|
|
16147
16127
|
"expanded-state-id": "routes-state"
|
|
16148
|
-
}, null, 8, ["data"])) : (f(), Z(
|
|
16128
|
+
}, null, 8, ["data"])) : (f(), Z(cQ, { key: 1 }, {
|
|
16149
16129
|
default: O(() => [
|
|
16150
16130
|
rA(" No Data ")
|
|
16151
16131
|
]),
|
|
@@ -16163,7 +16143,7 @@ const np = { class: "h-full flex flex-col" }, ip = {
|
|
|
16163
16143
|
}), rp = /* @__PURE__ */ z({
|
|
16164
16144
|
__name: "Index",
|
|
16165
16145
|
setup(A) {
|
|
16166
|
-
const B =
|
|
16146
|
+
const B = bQ();
|
|
16167
16147
|
return (Q, g) => (f(), Z(fC, {
|
|
16168
16148
|
"layer-ids": N(B).timelineLayerIds,
|
|
16169
16149
|
"doc-link": "https://router.vuejs.org/",
|
|
@@ -16286,7 +16266,7 @@ const Mp = /* @__PURE__ */ kB(cp, [["render", dp]]), pp = {
|
|
|
16286
16266
|
}, bp = ["href"], Tp = /* @__PURE__ */ p("div", { "i-carbon-document": "" }, null, -1), qp = /* @__PURE__ */ p("div", { "flex-auto": "" }, null, -1), _p = /* @__PURE__ */ z({
|
|
16287
16267
|
__name: "Home",
|
|
16288
16268
|
setup(A) {
|
|
16289
|
-
const B =
|
|
16269
|
+
const B = RQ(), Q = bQ(), g = K(!1), E = K(!1);
|
|
16290
16270
|
function C() {
|
|
16291
16271
|
g.value = !0;
|
|
16292
16272
|
}
|
|
@@ -16369,7 +16349,7 @@ const Mp = /* @__PURE__ */ kB(cp, [["render", dp]]), pp = {
|
|
|
16369
16349
|
}, Bf = { class: "flex items-center gap-2 px-1" }, Qf = ["onClick"], gf = /* @__PURE__ */ z({
|
|
16370
16350
|
__name: "Index",
|
|
16371
16351
|
setup(A) {
|
|
16372
|
-
const { expanded: B } = BB(), { expanded: Q } = BB("custom-inspector-state"), g =
|
|
16352
|
+
const { expanded: B } = BB(), { expanded: Q } = BB("custom-inspector-state"), g = bQ(), E = x(() => g.value.id), C = K([]), e = K([]), I = K([]), t = x(() => {
|
|
16373
16353
|
var H, P;
|
|
16374
16354
|
return (H = I.value) != null && H.length ? r((P = I.value) == null ? void 0 : P[0]) : [];
|
|
16375
16355
|
}), o = x(() => a(I.value)), n = x(() => o.value.map((H) => H.id)), s = K(""), i = K({}), w = x(() => !Object.keys(i.value).length);
|
|
@@ -16394,24 +16374,24 @@ const Mp = /* @__PURE__ */ kB(cp, [["render", dp]]), pp = {
|
|
|
16394
16374
|
};
|
|
16395
16375
|
return G(H), P;
|
|
16396
16376
|
}
|
|
16397
|
-
function
|
|
16377
|
+
function u() {
|
|
16398
16378
|
q.value.getInspectorNodeActions(E.value).then((H) => {
|
|
16399
16379
|
C.value = H;
|
|
16400
16380
|
});
|
|
16401
16381
|
}
|
|
16402
|
-
function
|
|
16382
|
+
function M() {
|
|
16403
16383
|
q.value.getInspectorActions(E.value).then((H) => {
|
|
16404
16384
|
e.value = H;
|
|
16405
16385
|
});
|
|
16406
16386
|
}
|
|
16407
|
-
|
|
16408
|
-
function
|
|
16387
|
+
u(), M();
|
|
16388
|
+
function c(H) {
|
|
16409
16389
|
q.value.callInspectorNodeAction(E.value, H, s.value);
|
|
16410
16390
|
}
|
|
16411
|
-
function
|
|
16391
|
+
function l(H) {
|
|
16412
16392
|
q.value.callInspectorAction(E.value, H);
|
|
16413
16393
|
}
|
|
16414
|
-
function
|
|
16394
|
+
function d(H) {
|
|
16415
16395
|
var P;
|
|
16416
16396
|
for (const G in H)
|
|
16417
16397
|
(P = H[G]) != null && P.length || delete H[G];
|
|
@@ -16420,7 +16400,7 @@ const Mp = /* @__PURE__ */ kB(cp, [["render", dp]]), pp = {
|
|
|
16420
16400
|
function F(H) {
|
|
16421
16401
|
q.value.getInspectorState({ inspectorId: E.value, nodeId: H }).then((P) => {
|
|
16422
16402
|
const G = lA(P);
|
|
16423
|
-
G && (i.value =
|
|
16403
|
+
G && (i.value = d(G), Q.value = Array.from({ length: Object.keys(i.value).length }, (R, _) => `${_}`));
|
|
16424
16404
|
});
|
|
16425
16405
|
}
|
|
16426
16406
|
function S() {
|
|
@@ -16444,7 +16424,7 @@ const Mp = /* @__PURE__ */ kB(cp, [["render", dp]]), pp = {
|
|
|
16444
16424
|
if (P.inspectorId !== E.value || !P.state || P.nodeId !== s.value)
|
|
16445
16425
|
return;
|
|
16446
16426
|
const { inspectorId: G, ...R } = P.state;
|
|
16447
|
-
i.value =
|
|
16427
|
+
i.value = d(R);
|
|
16448
16428
|
}
|
|
16449
16429
|
return Jg(() => {
|
|
16450
16430
|
q.functions.on(IA.INSPECTOR_TREE_UPDATED, W), q.functions.on(IA.INSPECTOR_STATE_UPDATED, m);
|
|
@@ -16459,7 +16439,7 @@ const Mp = /* @__PURE__ */ kB(cp, [["render", dp]]), pp = {
|
|
|
16459
16439
|
]),
|
|
16460
16440
|
_: 1
|
|
16461
16441
|
}, 8, ["doc-link"]),
|
|
16462
|
-
I.value.length ? (f(), Z(N(
|
|
16442
|
+
I.value.length ? (f(), Z(N(PQ), {
|
|
16463
16443
|
key: 0,
|
|
16464
16444
|
class: "flex-1 overflow-auto"
|
|
16465
16445
|
}, {
|
|
@@ -16478,7 +16458,7 @@ const Mp = /* @__PURE__ */ kB(cp, [["render", dp]]), pp = {
|
|
|
16478
16458
|
(f(!0), L(FA, null, AB(e.value, (R, _) => DA((f(), L("div", {
|
|
16479
16459
|
key: _,
|
|
16480
16460
|
class: "flex items-center gap1",
|
|
16481
|
-
onClick: (X) =>
|
|
16461
|
+
onClick: (X) => l(_)
|
|
16482
16462
|
}, [
|
|
16483
16463
|
p("i", {
|
|
16484
16464
|
class: eA(`i-ic-baseline-${R.icon.replace(/\_/g, "-")}`),
|
|
@@ -16498,7 +16478,7 @@ const Mp = /* @__PURE__ */ kB(cp, [["render", dp]]), pp = {
|
|
|
16498
16478
|
])
|
|
16499
16479
|
])) : $("", !0),
|
|
16500
16480
|
p("div", jp, [
|
|
16501
|
-
U(
|
|
16481
|
+
U(JQ, {
|
|
16502
16482
|
modelValue: s.value,
|
|
16503
16483
|
"onUpdate:modelValue": P[0] || (P[0] = (R) => s.value = R),
|
|
16504
16484
|
data: I.value
|
|
@@ -16519,7 +16499,7 @@ const Mp = /* @__PURE__ */ kB(cp, [["render", dp]]), pp = {
|
|
|
16519
16499
|
(f(!0), L(FA, null, AB(C.value, (R, _) => DA((f(), L("div", {
|
|
16520
16500
|
key: _,
|
|
16521
16501
|
class: "flex items-center gap1",
|
|
16522
|
-
onClick: (X) =>
|
|
16502
|
+
onClick: (X) => c(_)
|
|
16523
16503
|
}, [
|
|
16524
16504
|
p("i", {
|
|
16525
16505
|
class: eA(`i-ic-baseline-${R.icon.replace(/\_/g, "-")}`),
|
|
@@ -16538,14 +16518,14 @@ const Mp = /* @__PURE__ */ kB(cp, [["render", dp]]), pp = {
|
|
|
16538
16518
|
])), 128))
|
|
16539
16519
|
])
|
|
16540
16520
|
])) : $("", !0),
|
|
16541
|
-
s.value && !w.value ? (f(), Z(
|
|
16521
|
+
s.value && !w.value ? (f(), Z(mQ, {
|
|
16542
16522
|
key: 1,
|
|
16543
16523
|
data: i.value,
|
|
16544
16524
|
"node-id": s.value,
|
|
16545
16525
|
"inspector-id": E.value,
|
|
16546
16526
|
"expanded-state-id": "custom-inspector-state",
|
|
16547
16527
|
class: "no-scrollbar flex-1 select-none overflow-scroll"
|
|
16548
|
-
}, null, 8, ["data", "node-id", "inspector-id"])) : (f(), Z(
|
|
16528
|
+
}, null, 8, ["data", "node-id", "inspector-id"])) : (f(), Z(cQ, { key: 2 }, {
|
|
16549
16529
|
default: O(() => [
|
|
16550
16530
|
rA(" No Data ")
|
|
16551
16531
|
]),
|
|
@@ -16558,7 +16538,7 @@ const Mp = /* @__PURE__ */ kB(cp, [["render", dp]]), pp = {
|
|
|
16558
16538
|
})
|
|
16559
16539
|
]),
|
|
16560
16540
|
_: 1
|
|
16561
|
-
})) : (f(), Z(
|
|
16541
|
+
})) : (f(), Z(cQ, { key: 1 }, {
|
|
16562
16542
|
default: O(() => [
|
|
16563
16543
|
rA(" No Data ")
|
|
16564
16544
|
]),
|
|
@@ -16569,13 +16549,13 @@ const Mp = /* @__PURE__ */ kB(cp, [["render", dp]]), pp = {
|
|
|
16569
16549
|
}), Ef = /* @__PURE__ */ z({
|
|
16570
16550
|
__name: "Index",
|
|
16571
16551
|
setup(A) {
|
|
16572
|
-
const B =
|
|
16552
|
+
const B = bQ();
|
|
16573
16553
|
return (Q, g) => (f(), Z(fC, {
|
|
16574
16554
|
"layer-ids": N(B).timelineLayerIds,
|
|
16575
16555
|
"doc-link": N(B).homepage
|
|
16576
16556
|
}, null, 8, ["layer-ids", "doc-link"]));
|
|
16577
16557
|
}
|
|
16578
|
-
}), Cf = {}, ef = (A) => (
|
|
16558
|
+
}), Cf = {}, ef = (A) => (LQ("data-v-b8018f07"), A = A(), kQ(), A), If = { class: "h-screen w-screen $ui-fcc flex-col" }, tf = /* @__PURE__ */ ef(() => /* @__PURE__ */ p("div", { class: "outer" }, [
|
|
16579
16559
|
/* @__PURE__ */ p("div", { class: "inner" }, [
|
|
16580
16560
|
/* @__PURE__ */ p("i", {
|
|
16581
16561
|
class: "i-logos-vue inline-block h8! w8!",
|