page-agent-sdk 3.21.0 → 3.22.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/README.zh-CN.md +2 -2
- package/dist/page-agent-sdk.headless.js +3 -2
- package/dist/page-agent-sdk.iife.js +132 -132
- package/dist/page-agent-sdk.js +981 -942
- package/dist/page-agent-sdk.umd.cjs +37 -37
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/skills/page-agent-sdk-integrate/SKILL.md +22 -0
- package/types/index.d.ts +19 -0
package/dist/page-agent-sdk.js
CHANGED
|
@@ -1117,7 +1117,7 @@ function K(e, ...t) {
|
|
|
1117
1117
|
if (r) Xn(r, n, 11, [
|
|
1118
1118
|
e + t.map((e) => e.toString?.call(e) ?? JSON.stringify(e)).join(""),
|
|
1119
1119
|
n && n.proxy,
|
|
1120
|
-
i.map(({ vnode: e }) => `at <${
|
|
1120
|
+
i.map(({ vnode: e }) => `at <${Xs(n, e.type)}>`).join("\n"),
|
|
1121
1121
|
i
|
|
1122
1122
|
]);
|
|
1123
1123
|
else {
|
|
@@ -1148,7 +1148,7 @@ function Wn(e) {
|
|
|
1148
1148
|
}), t;
|
|
1149
1149
|
}
|
|
1150
1150
|
function Gn({ vnode: e, recurseCount: t }) {
|
|
1151
|
-
let n = t > 0 ? `... (${t} recursive calls)` : "", r = e.component ? e.component.parent == null : !1, i = ` at <${
|
|
1151
|
+
let n = t > 0 ? `... (${t} recursive calls)` : "", r = e.component ? e.component.parent == null : !1, i = ` at <${Xs(e.component, e.type, r)}`, a = ">" + n;
|
|
1152
1152
|
return e.props ? [
|
|
1153
1153
|
i,
|
|
1154
1154
|
...Kn(e.props),
|
|
@@ -1325,7 +1325,7 @@ function gr(e) {
|
|
|
1325
1325
|
function _r(e, t) {
|
|
1326
1326
|
let n = e.get(t) || 0;
|
|
1327
1327
|
if (n > sr) {
|
|
1328
|
-
let e = t.i, n = e &&
|
|
1328
|
+
let e = t.i, n = e && Ys(e.type);
|
|
1329
1329
|
return Qn(`Maximum recursive updates exceeded${n ? ` in component <${n}>` : ""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`, null, 10), !0;
|
|
1330
1330
|
}
|
|
1331
1331
|
return e.set(t, n + 1), !1;
|
|
@@ -1357,7 +1357,7 @@ function wr(e, t) {
|
|
|
1357
1357
|
}), !0);
|
|
1358
1358
|
}
|
|
1359
1359
|
function Tr(e) {
|
|
1360
|
-
return
|
|
1360
|
+
return Zs(e) ? e.__vccOpts : e;
|
|
1361
1361
|
}
|
|
1362
1362
|
function Er(e, t) {
|
|
1363
1363
|
let n = xr.get(e);
|
|
@@ -1460,7 +1460,7 @@ function Xr(e) {
|
|
|
1460
1460
|
}
|
|
1461
1461
|
function Zr(e, t) {
|
|
1462
1462
|
if (Kr === null) return process.env.NODE_ENV !== "production" && K("withDirectives can only be used inside render functions."), e;
|
|
1463
|
-
let n =
|
|
1463
|
+
let n = Ks(Kr), r = e.dirs ||= [];
|
|
1464
1464
|
for (let e = 0; e < t.length; e++) {
|
|
1465
1465
|
let [i, a, o, s = A] = t[e];
|
|
1466
1466
|
i && (z(i) && (i = {
|
|
@@ -1492,13 +1492,13 @@ function Qr(e, t, n, r) {
|
|
|
1492
1492
|
}
|
|
1493
1493
|
}
|
|
1494
1494
|
function $r(e, t) {
|
|
1495
|
-
if (process.env.NODE_ENV !== "production" && (!
|
|
1496
|
-
let n =
|
|
1497
|
-
r === n && (n =
|
|
1495
|
+
if (process.env.NODE_ENV !== "production" && (!Es || Es.isMounted) && K("provide() can only be used inside setup()."), Es) {
|
|
1496
|
+
let n = Es.provides, r = Es.parent && Es.parent.provides;
|
|
1497
|
+
r === n && (n = Es.provides = Object.create(r)), n[e] = t;
|
|
1498
1498
|
}
|
|
1499
1499
|
}
|
|
1500
1500
|
function ei(e, t, n = !1) {
|
|
1501
|
-
let r =
|
|
1501
|
+
let r = Ds();
|
|
1502
1502
|
if (r || za) {
|
|
1503
1503
|
let i = za ? za._context.provides : r ? r.parent == null || r.ce ? r.vnode.appContext && r.vnode.appContext.provides : r.parent.provides : void 0;
|
|
1504
1504
|
if (i && e in i) return i[e];
|
|
@@ -1521,7 +1521,7 @@ function ii(e, t, n = A) {
|
|
|
1521
1521
|
let s = P({}, n);
|
|
1522
1522
|
process.env.NODE_ENV !== "production" && (s.onWarn = K);
|
|
1523
1523
|
let c = t && r || !t && a !== "post", l;
|
|
1524
|
-
if (
|
|
1524
|
+
if (Fs) {
|
|
1525
1525
|
if (a === "sync") {
|
|
1526
1526
|
let e = ni();
|
|
1527
1527
|
l = e.__watcherHandles ||= [];
|
|
@@ -1530,7 +1530,7 @@ function ii(e, t, n = A) {
|
|
|
1530
1530
|
return e.stop = j, e.resume = j, e.pause = j, e;
|
|
1531
1531
|
}
|
|
1532
1532
|
}
|
|
1533
|
-
let u =
|
|
1533
|
+
let u = Es;
|
|
1534
1534
|
s.call = (e, t, n) => Zn(e, u, t, n);
|
|
1535
1535
|
let d = !1;
|
|
1536
1536
|
a === "post" ? s.scheduler = (e) => {
|
|
@@ -1541,12 +1541,12 @@ function ii(e, t, n = A) {
|
|
|
1541
1541
|
t && (e.flags |= 4), d && (e.flags |= 2, u && (e.id = u.uid, e.i = u));
|
|
1542
1542
|
};
|
|
1543
1543
|
let f = Ln(e, t, s);
|
|
1544
|
-
return
|
|
1544
|
+
return Fs && (l ? l.push(f) : c && f()), f;
|
|
1545
1545
|
}
|
|
1546
1546
|
function ai(e, t, n) {
|
|
1547
1547
|
let r = this.proxy, i = ae(e) ? e.includes(".") ? oi(r, e) : () => r[e] : e.bind(r, r), a;
|
|
1548
1548
|
z(t) ? a = t : (a = t.handler, n = t);
|
|
1549
|
-
let o =
|
|
1549
|
+
let o = As(this), s = ii(i, a.bind(r), n);
|
|
1550
1550
|
return o(), s;
|
|
1551
1551
|
}
|
|
1552
1552
|
function oi(e, t) {
|
|
@@ -1701,9 +1701,9 @@ var wi = [Function, Array], Ti = {
|
|
|
1701
1701
|
name: "BaseTransition",
|
|
1702
1702
|
props: Ti,
|
|
1703
1703
|
setup(e, { slots: t }) {
|
|
1704
|
-
let n =
|
|
1704
|
+
let n = Ds(), r = Ci();
|
|
1705
1705
|
return () => {
|
|
1706
|
-
let i = t.default && Fi(t.default(), !0), a = i && i.length ? Oi(i) : n.subTree ?
|
|
1706
|
+
let i = t.default && Fi(t.default(), !0), a = i && i.length ? Oi(i) : n.subTree ? Q() : void 0;
|
|
1707
1707
|
if (!a) return;
|
|
1708
1708
|
let o = /* @__PURE__ */ yn(e), { mode: s } = o;
|
|
1709
1709
|
if (process.env.NODE_ENV !== "production" && s && s !== "in-out" && s !== "out-in" && s !== "default" && K(`invalid <transition> mode: ${s}`), r.isLeaving) return Mi(a);
|
|
@@ -1797,7 +1797,7 @@ function ji(e, t, n, r, i) {
|
|
|
1797
1797
|
return w;
|
|
1798
1798
|
}
|
|
1799
1799
|
function Mi(e) {
|
|
1800
|
-
if (Wi(e)) return e =
|
|
1800
|
+
if (Wi(e)) return e = hs(e), e.children = null, e;
|
|
1801
1801
|
}
|
|
1802
1802
|
function Ni(e) {
|
|
1803
1803
|
if (!Wi(e)) return li(e.type) && e.children ? Oi(e.children) : e;
|
|
@@ -1815,7 +1815,7 @@ function Fi(e, t = !1, n) {
|
|
|
1815
1815
|
let r = [], i = 0;
|
|
1816
1816
|
for (let a = 0; a < e.length; a++) {
|
|
1817
1817
|
let o = e[a], s = n == null ? o.key : String(n) + String(o.key == null ? a : o.key);
|
|
1818
|
-
o.type === q ? (o.patchFlag & 128 && i++, r = r.concat(Fi(o.children, t, s))) : (t || o.type !== Qo) && r.push(s == null ? o :
|
|
1818
|
+
o.type === q ? (o.patchFlag & 128 && i++, r = r.concat(Fi(o.children, t, s))) : (t || o.type !== Qo) && r.push(s == null ? o : hs(o, { key: s }));
|
|
1819
1819
|
}
|
|
1820
1820
|
if (i > 1) for (let e = 0; e < r.length; e++) r[e].patchFlag = -2;
|
|
1821
1821
|
return r;
|
|
@@ -1846,7 +1846,7 @@ function Vi(e, t, n, r, i = !1) {
|
|
|
1846
1846
|
r.shapeFlag & 512 && r.type.__asyncResolved && r.component.subTree.component && Vi(e, t, n, r.component.subTree);
|
|
1847
1847
|
return;
|
|
1848
1848
|
}
|
|
1849
|
-
let a = r.shapeFlag & 4 ?
|
|
1849
|
+
let a = r.shapeFlag & 4 ? Ks(r.component) : r.el, o = i ? null : a, { i: s, r: c } = e;
|
|
1850
1850
|
if (process.env.NODE_ENV !== "production" && !s) {
|
|
1851
1851
|
K("Missing ref owner context. ref cannot be used on hoisted vnodes. A vnode with ref must be created inside the render function.");
|
|
1852
1852
|
return;
|
|
@@ -1902,7 +1902,7 @@ function Gi(e, t) {
|
|
|
1902
1902
|
function Ki(e, t) {
|
|
1903
1903
|
qi(e, "da", t);
|
|
1904
1904
|
}
|
|
1905
|
-
function qi(e, t, n =
|
|
1905
|
+
function qi(e, t, n = Es) {
|
|
1906
1906
|
let r = e.__wdc ||= () => {
|
|
1907
1907
|
let t = n;
|
|
1908
1908
|
for (; t;) {
|
|
@@ -1922,20 +1922,20 @@ function Ji(e, t, n, r) {
|
|
|
1922
1922
|
F(r[t], i);
|
|
1923
1923
|
}, n);
|
|
1924
1924
|
}
|
|
1925
|
-
function Yi(e, t, n =
|
|
1925
|
+
function Yi(e, t, n = Es, r = !1) {
|
|
1926
1926
|
if (n) {
|
|
1927
1927
|
let i = n[e] || (n[e] = []), a = t.__weh ||= (...r) => {
|
|
1928
1928
|
ht();
|
|
1929
|
-
let i =
|
|
1929
|
+
let i = As(n), a = Zn(t, n, e, r);
|
|
1930
1930
|
return i(), gt(), a;
|
|
1931
1931
|
};
|
|
1932
1932
|
return r ? i.unshift(a) : i.push(a), a;
|
|
1933
1933
|
} else process.env.NODE_ENV !== "production" && K(`${be(Yn[e].replace(/ hook$/, ""))} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.`);
|
|
1934
1934
|
}
|
|
1935
|
-
var Xi = (e) => (t, n =
|
|
1936
|
-
(!
|
|
1935
|
+
var Xi = (e) => (t, n = Es) => {
|
|
1936
|
+
(!Fs || e === "sp") && Yi(e, (...e) => t(...e), n);
|
|
1937
1937
|
}, Zi = Xi("bm"), Qi = Xi("m"), $i = Xi("bu"), ea = Xi("u"), ta = Xi("bum"), na = Xi("um"), ra = Xi("sp"), ia = Xi("rtg"), aa = Xi("rtc");
|
|
1938
|
-
function oa(e, t =
|
|
1938
|
+
function oa(e, t = Es) {
|
|
1939
1939
|
Yi("ec", e, t);
|
|
1940
1940
|
}
|
|
1941
1941
|
var sa = /* @__PURE__ */ Symbol.for("v-ndc");
|
|
@@ -1965,7 +1965,7 @@ function ca(e, t, n, r) {
|
|
|
1965
1965
|
function la(e, t, n = {}, r, i) {
|
|
1966
1966
|
if (Kr.ce || Kr.parent && Ui(Kr.parent) && Kr.parent.ce) {
|
|
1967
1967
|
let e = Object.keys(n).length > 0;
|
|
1968
|
-
return t !== "default" && (n.name = t), J(), os(q, null, [
|
|
1968
|
+
return t !== "default" && (n.name = t), J(), os(q, null, [Z("slot", n, r && r())], e ? -2 : 64);
|
|
1969
1969
|
}
|
|
1970
1970
|
let a = e[t];
|
|
1971
1971
|
process.env.NODE_ENV !== "production" && a && a.length > 1 && (K("SSR-optimized slot function detected in a non-SSR-optimized render function. You need to mark this component with $dynamic-slots in the parent template."), a = () => []), a && a._c && (a._d = !1), J();
|
|
@@ -1975,7 +1975,7 @@ function la(e, t, n = {}, r, i) {
|
|
|
1975
1975
|
function ua(e) {
|
|
1976
1976
|
return e.some((e) => !ss(e) || !(e.type === Qo || e.type === q && !ua(e.children))) ? e : null;
|
|
1977
1977
|
}
|
|
1978
|
-
var da = (e) => e ?
|
|
1978
|
+
var da = (e) => e ? Ps(e) ? Ks(e) : da(e.parent) : null, fa = /* @__PURE__ */ P(/* @__PURE__ */ Object.create(null), {
|
|
1979
1979
|
$: (e) => e,
|
|
1980
1980
|
$el: (e) => e.vnode.el,
|
|
1981
1981
|
$data: (e) => e.data,
|
|
@@ -2120,7 +2120,7 @@ function Sa(e) {
|
|
|
2120
2120
|
if (xa = !0, a) for (let e in a) {
|
|
2121
2121
|
let t = a[e], i = z(t) ? t.bind(n, n) : z(t.get) ? t.get.bind(n, n) : j;
|
|
2122
2122
|
process.env.NODE_ENV !== "production" && i === j && K(`Computed property "${e}" has no getter.`);
|
|
2123
|
-
let o =
|
|
2123
|
+
let o = Qs({
|
|
2124
2124
|
get: i,
|
|
2125
2125
|
set: !z(t) && z(t.set) ? t.set.bind(n) : process.env.NODE_ENV === "production" ? j : () => {
|
|
2126
2126
|
K(`Write operation failed: computed property "${e}" is readonly.`);
|
|
@@ -2302,7 +2302,7 @@ function Ra(e, t) {
|
|
|
2302
2302
|
return i.mixins.includes(e) ? process.env.NODE_ENV !== "production" && K("Mixin has already been applied to target app" + (e.name ? `: ${e.name}` : "")) : i.mixins.push(e), c;
|
|
2303
2303
|
},
|
|
2304
2304
|
component(e, t) {
|
|
2305
|
-
return process.env.NODE_ENV !== "production" &&
|
|
2305
|
+
return process.env.NODE_ENV !== "production" && Ns(e, i.config), t ? (process.env.NODE_ENV !== "production" && i.components[e] && K(`Component "${e}" has already been registered in target app.`), i.components[e] = t, c) : i.components[e];
|
|
2306
2306
|
},
|
|
2307
2307
|
directive(e, t) {
|
|
2308
2308
|
return process.env.NODE_ENV !== "production" && Xr(e), t ? (process.env.NODE_ENV !== "production" && i.directives[e] && K(`Directive "${e}" has already been registered in target app.`), i.directives[e] = t, c) : i.directives[e];
|
|
@@ -2311,11 +2311,11 @@ function Ra(e, t) {
|
|
|
2311
2311
|
if (s) process.env.NODE_ENV !== "production" && K("App has already been mounted.\nIf you want to remount the same app, move your app creation logic into a factory function and create fresh app instances for each mount - e.g. `const createMyApp = () => createApp(App)`");
|
|
2312
2312
|
else {
|
|
2313
2313
|
process.env.NODE_ENV !== "production" && a.__vue_app__ && K("There is already an app instance mounted on the host container.\n If you want to mount another app on the same host container, you need to unmount the previous app by calling `app.unmount()` first.");
|
|
2314
|
-
let u = c._ceVNode ||
|
|
2314
|
+
let u = c._ceVNode || Z(n, r);
|
|
2315
2315
|
return u.appContext = i, l === !0 ? l = "svg" : l === !1 && (l = void 0), process.env.NODE_ENV !== "production" && (i.reload = () => {
|
|
2316
|
-
let t =
|
|
2316
|
+
let t = hs(u);
|
|
2317
2317
|
t.el = null, e(t, a, l);
|
|
2318
|
-
}), o && t ? t(u, a) : e(u, a, l), s = !0, c._container = a, a.__vue_app__ = c, process.env.NODE_ENV !== "production" && (c._instance = u.component, Fr(c, tc)),
|
|
2318
|
+
}), o && t ? t(u, a) : e(u, a, l), s = !0, c._container = a, a.__vue_app__ = c, process.env.NODE_ENV !== "production" && (c._instance = u.component, Fr(c, tc)), Ks(u.component);
|
|
2319
2319
|
}
|
|
2320
2320
|
},
|
|
2321
2321
|
onUnmount(e) {
|
|
@@ -2355,7 +2355,7 @@ function Va(e, t, ...n) {
|
|
|
2355
2355
|
let i = n, a = t.startsWith("update:"), o = a && Ba(r, t.slice(7));
|
|
2356
2356
|
if (o && (o.trim && (i = n.map((e) => ae(e) ? e.trim() : e)), o.number && (i = n.map(we))), process.env.NODE_ENV !== "production" && Gr(e, t, i), process.env.NODE_ENV !== "production") {
|
|
2357
2357
|
let n = t.toLowerCase();
|
|
2358
|
-
n !== t && r[be(n)] && K(`Event "${n}" is emitted in component ${
|
|
2358
|
+
n !== t && r[be(n)] && K(`Event "${n}" is emitted in component ${Xs(e, e.type)} but the handler is registered for "${t}". Note that HTML attributes are case-insensitive and you cannot use v-on to listen to camelCase events when using in-DOM templates. You should probably use "${ve(t)}" instead of "${t}".`);
|
|
2359
2359
|
}
|
|
2360
2360
|
let s, c = r[s = be(t)] || r[s = be(ge(t))];
|
|
2361
2361
|
!c && a && (c = r[s = be(ve(t))]), c && Zn(c, e, 6, i);
|
|
@@ -2395,10 +2395,10 @@ function qa(e) {
|
|
|
2395
2395
|
let e = i || r, t = process.env.NODE_ENV !== "production" && p.__isScriptSetup ? new Proxy(e, { get(e, t, n) {
|
|
2396
2396
|
return K(`Property '${String(t)}' was accessed via 'this'. Avoid using 'this' in templates.`), Reflect.get(e, t, n);
|
|
2397
2397
|
} }) : e;
|
|
2398
|
-
_ =
|
|
2398
|
+
_ = vs(l.call(t, e, u, process.env.NODE_ENV === "production" ? d : /* @__PURE__ */ pn(d), p, f, m)), v = s;
|
|
2399
2399
|
} else {
|
|
2400
2400
|
let e = t;
|
|
2401
|
-
process.env.NODE_ENV !== "production" && s === d && Ka(), _ =
|
|
2401
|
+
process.env.NODE_ENV !== "production" && s === d && Ka(), _ = vs(e.length > 1 ? e(process.env.NODE_ENV === "production" ? d : /* @__PURE__ */ pn(d), process.env.NODE_ENV === "production" ? {
|
|
2402
2402
|
attrs: s,
|
|
2403
2403
|
slots: o,
|
|
2404
2404
|
emit: c
|
|
@@ -2411,13 +2411,13 @@ function qa(e) {
|
|
|
2411
2411
|
}) : e(process.env.NODE_ENV === "production" ? d : /* @__PURE__ */ pn(d), null)), v = t.props ? s : Xa(s);
|
|
2412
2412
|
}
|
|
2413
2413
|
} catch (t) {
|
|
2414
|
-
es.length = 0, Qn(t, e, 1), _ =
|
|
2414
|
+
es.length = 0, Qn(t, e, 1), _ = Z(Qo);
|
|
2415
2415
|
}
|
|
2416
2416
|
let y = _, b;
|
|
2417
2417
|
if (process.env.NODE_ENV !== "production" && _.patchFlag > 0 && _.patchFlag & 2048 && ([y, b] = Ja(_)), v && h !== !1) {
|
|
2418
2418
|
let e = Object.keys(v), { shapeFlag: t } = y;
|
|
2419
2419
|
if (e.length) {
|
|
2420
|
-
if (t & 7) a && e.some(te) && (v = Za(v, a)), y =
|
|
2420
|
+
if (t & 7) a && e.some(te) && (v = Za(v, a)), y = hs(y, v, !1, !0);
|
|
2421
2421
|
else if (process.env.NODE_ENV !== "production" && !Ga && y.type !== Qo) {
|
|
2422
2422
|
let e = Object.keys(s), t = [], n = [];
|
|
2423
2423
|
for (let r = 0, i = e.length; r < i; r++) {
|
|
@@ -2428,14 +2428,14 @@ function qa(e) {
|
|
|
2428
2428
|
}
|
|
2429
2429
|
}
|
|
2430
2430
|
}
|
|
2431
|
-
return n.dirs && (process.env.NODE_ENV !== "production" && !Qa(y) && K("Runtime directive used on component with non-element root node. The directives will not function as intended."), y =
|
|
2431
|
+
return n.dirs && (process.env.NODE_ENV !== "production" && !Qa(y) && K("Runtime directive used on component with non-element root node. The directives will not function as intended."), y = hs(y, null, !1, !0), y.dirs = y.dirs ? y.dirs.concat(n.dirs) : n.dirs), n.transition && (process.env.NODE_ENV !== "production" && !Qa(y) && K("Component inside <Transition> renders non-element root node that cannot be animated."), Pi(y, n.transition)), process.env.NODE_ENV !== "production" && b ? b(y) : _ = y, Jr(g), _;
|
|
2432
2432
|
}
|
|
2433
2433
|
var Ja = (e) => {
|
|
2434
2434
|
let t = e.children, n = e.dynamicChildren, r = Ya(t, !1);
|
|
2435
2435
|
if (!r) return [e, void 0];
|
|
2436
2436
|
if (process.env.NODE_ENV !== "production" && r.patchFlag > 0 && r.patchFlag & 2048) return Ja(r);
|
|
2437
2437
|
let i = t.indexOf(r), a = n ? n.indexOf(r) : -1;
|
|
2438
|
-
return [
|
|
2438
|
+
return [vs(r), (r) => {
|
|
2439
2439
|
t[i] = r, n && (a > -1 ? n[a] = r : r.patchFlag > 0 && (e.dynamicChildren = [...n, r]));
|
|
2440
2440
|
}];
|
|
2441
2441
|
};
|
|
@@ -2562,7 +2562,7 @@ function uo(e, t, n, r, i, a) {
|
|
|
2562
2562
|
let { propsDefaults: a } = i;
|
|
2563
2563
|
if (n in a) r = a[n];
|
|
2564
2564
|
else {
|
|
2565
|
-
let o =
|
|
2565
|
+
let o = As(i);
|
|
2566
2566
|
r = a[n] = e.call(null, t), o();
|
|
2567
2567
|
}
|
|
2568
2568
|
} else r = e;
|
|
@@ -2680,9 +2680,9 @@ function Co(...e) {
|
|
|
2680
2680
|
return t !== "boolean" && t !== "symbol";
|
|
2681
2681
|
});
|
|
2682
2682
|
}
|
|
2683
|
-
var wo = (e) => e === "_" || e === "_ctx" || e === "$stable", To = (e) => L(e) ? e.map(
|
|
2683
|
+
var wo = (e) => e === "_" || e === "_ctx" || e === "$stable", To = (e) => L(e) ? e.map(vs) : [vs(e)], Eo = (e, t, n) => {
|
|
2684
2684
|
if (t._n) return t;
|
|
2685
|
-
let r = Yr((...r) => (process.env.NODE_ENV !== "production" &&
|
|
2685
|
+
let r = Yr((...r) => (process.env.NODE_ENV !== "production" && Es && !(n === null && Kr) && !(n && n.root !== Es.root) && K(`Slot "${e}" invoked outside of the render function: this will not track dependencies used in the slot. Invoke the slot function inside the render function instead.`), To(t(...r))), n);
|
|
2686
2686
|
return r._c = !1, r;
|
|
2687
2687
|
}, Do = (e, t, n) => {
|
|
2688
2688
|
let r = e._ctx;
|
|
@@ -2721,7 +2721,7 @@ function Po(e, t) {
|
|
|
2721
2721
|
}
|
|
2722
2722
|
function Fo(e, t) {
|
|
2723
2723
|
if (e.appContext.config.performance && Io()) {
|
|
2724
|
-
let n = `vue-${t}-${e.uid}`, r = n + ":end", i = `<${
|
|
2724
|
+
let n = `vue-${t}-${e.uid}`, r = n + ":end", i = `<${Xs(e, e.type)}> ${t}`;
|
|
2725
2725
|
No.mark(r), No.measure(i, n, r), No.clearMeasures(i), No.clearMarks(n), No.clearMarks(r);
|
|
2726
2726
|
}
|
|
2727
2727
|
process.env.NODE_ENV !== "production" && Ur(e, t, Io() ? No.now() : Date.now());
|
|
@@ -2803,7 +2803,7 @@ function Bo(e, t) {
|
|
|
2803
2803
|
let f, p, { props: m, shapeFlag: h, transition: g, dirs: _ } = e;
|
|
2804
2804
|
if (f = e.el = o(e.type, c, m && m.is, m), h & 8 ? u(f, e.children) : h & 16 && T(e.children, f, null, i, s, Vo(e, c), l, d), _ && Qr(e, null, i, "created"), w(f, e, e.scopeId, l, i), m) {
|
|
2805
2805
|
for (let e in m) e !== "value" && !fe(e) && a(f, e, null, m[e], c, i);
|
|
2806
|
-
"value" in m && a(f, "value", null, m.value, c), (p = m.onVnodeBeforeMount) &&
|
|
2806
|
+
"value" in m && a(f, "value", null, m.value, c), (p = m.onVnodeBeforeMount) && Ss(p, i, e);
|
|
2807
2807
|
}
|
|
2808
2808
|
process.env.NODE_ENV !== "production" && (Ce(f, "__vnode", e, !0), Ce(f, "__vueParentComponent", i, !0)), _ && Qr(e, null, i, "beforeMount");
|
|
2809
2809
|
let v = Uo(s, g);
|
|
@@ -2813,7 +2813,7 @@ function Bo(e, t) {
|
|
|
2813
2813
|
let n;
|
|
2814
2814
|
process.env.NODE_ENV !== "production" && (n = yr(t));
|
|
2815
2815
|
try {
|
|
2816
|
-
p &&
|
|
2816
|
+
p && Ss(p, i, e), v && g.enter(f), _ && Qr(e, null, i, "mounted");
|
|
2817
2817
|
} finally {
|
|
2818
2818
|
process.env.NODE_ENV !== "production" && yr(n);
|
|
2819
2819
|
}
|
|
@@ -2830,7 +2830,7 @@ function Bo(e, t) {
|
|
|
2830
2830
|
}
|
|
2831
2831
|
}, T = (e, t, n, r, i, a, o, s, c = 0) => {
|
|
2832
2832
|
for (let l = c; l < e.length; l++) {
|
|
2833
|
-
let c = e[l] = s ?
|
|
2833
|
+
let c = e[l] = s ? ys(e[l]) : vs(e[l]);
|
|
2834
2834
|
h(null, c, t, n, r, i, a, o, s);
|
|
2835
2835
|
}
|
|
2836
2836
|
}, E = (e, t, n, r, i, o, s) => {
|
|
@@ -2839,7 +2839,7 @@ function Bo(e, t) {
|
|
|
2839
2839
|
let { patchFlag: l, dynamicChildren: d, dirs: f } = t;
|
|
2840
2840
|
l |= e.patchFlag & 16;
|
|
2841
2841
|
let p = e.props || A, m = t.props || A, h;
|
|
2842
|
-
if (n && Ho(n, !1), (h = m.onVnodeBeforeUpdate) &&
|
|
2842
|
+
if (n && Ho(n, !1), (h = m.onVnodeBeforeUpdate) && Ss(h, n, t, e), f && Qr(t, e, n, "beforeUpdate"), n && Ho(n, !0), (process.env.NODE_ENV !== "production" && vr || d && (!e.dynamicChildren || e.dynamicChildren.length !== d.length)) && (l = 0, s = !1, d = null), (p.innerHTML && m.innerHTML == null || p.textContent && m.textContent == null) && u(c, ""), d ? (D(e.dynamicChildren, d, c, n, r, Vo(t, i), o), process.env.NODE_ENV !== "production" && Wo(e, t)) : s || ne(e, t, c, null, n, r, Vo(t, i), o, !1), l > 0) {
|
|
2843
2843
|
if (l & 16) O(c, p, m, n, i);
|
|
2844
2844
|
else if (l & 2 && p.class !== m.class && a(c, "class", null, m.class, i), l & 4 && a(c, "style", p.style, m.style, i), l & 8) {
|
|
2845
2845
|
let e = t.dynamicProps;
|
|
@@ -2851,7 +2851,7 @@ function Bo(e, t) {
|
|
|
2851
2851
|
l & 1 && e.children !== t.children && u(c, t.children);
|
|
2852
2852
|
} else !s && d == null && O(c, p, m, n, i);
|
|
2853
2853
|
((h = m.onVnodeUpdated) || f) && Ro(() => {
|
|
2854
|
-
h &&
|
|
2854
|
+
h && Ss(h, n, t, e), f && Qr(t, e, n, "updated");
|
|
2855
2855
|
}, r);
|
|
2856
2856
|
}, D = (e, t, n, r, i, a, o) => {
|
|
2857
2857
|
for (let s = 0; s < t.length; s++) {
|
|
@@ -2874,10 +2874,10 @@ function Bo(e, t) {
|
|
|
2874
2874
|
}, M = (e, t, n, r, i, a, o, s, c) => {
|
|
2875
2875
|
t.slotScopeIds = s, e == null ? t.shapeFlag & 512 ? i.ctx.activate(t, n, r, o, c) : N(t, n, r, i, a, o, c) : te(e, t, c);
|
|
2876
2876
|
}, N = (e, t, n, r, i, a, o) => {
|
|
2877
|
-
let s = e.component =
|
|
2878
|
-
if (process.env.NODE_ENV !== "production" && s.type.__hmrId && Sr(s), process.env.NODE_ENV !== "production" && (Bn(e), Po(s, "mount")), Wi(e) && (s.ctx.renderer = le), process.env.NODE_ENV !== "production" && Po(s, "init"),
|
|
2877
|
+
let s = e.component = Ts(e, r, i);
|
|
2878
|
+
if (process.env.NODE_ENV !== "production" && s.type.__hmrId && Sr(s), process.env.NODE_ENV !== "production" && (Bn(e), Po(s, "mount")), Wi(e) && (s.ctx.renderer = le), process.env.NODE_ENV !== "production" && Po(s, "init"), Is(s, !1, o), process.env.NODE_ENV !== "production" && Fo(s, "init"), process.env.NODE_ENV !== "production" && vr && (e.el = null), s.asyncDep) {
|
|
2879
2879
|
if (i && i.registerDep(s, P, o), !e.el) {
|
|
2880
|
-
let r = s.subTree =
|
|
2880
|
+
let r = s.subTree = Z(Qo);
|
|
2881
2881
|
_(null, r, t, n), e.placeholder = r.el;
|
|
2882
2882
|
}
|
|
2883
2883
|
} else P(s, e, t, n, i, a, o);
|
|
@@ -2905,14 +2905,14 @@ function Bo(e, t) {
|
|
|
2905
2905
|
}
|
|
2906
2906
|
}
|
|
2907
2907
|
let u = t, f;
|
|
2908
|
-
process.env.NODE_ENV !== "production" && Bn(t || e.vnode), Ho(e, !1), t ? (t.el = c.el, F(e, t, o)) : t = c, n && Se(n), (f = t.props && t.props.onVnodeBeforeUpdate) &&
|
|
2908
|
+
process.env.NODE_ENV !== "production" && Bn(t || e.vnode), Ho(e, !1), t ? (t.el = c.el, F(e, t, o)) : t = c, n && Se(n), (f = t.props && t.props.onVnodeBeforeUpdate) && Ss(f, s, t, c), Ho(e, !0), process.env.NODE_ENV !== "production" && Po(e, "render");
|
|
2909
2909
|
let p = qa(e);
|
|
2910
2910
|
process.env.NODE_ENV !== "production" && Fo(e, "render");
|
|
2911
2911
|
let m = e.subTree;
|
|
2912
|
-
e.subTree = p, process.env.NODE_ENV !== "production" && Po(e, "patch"), h(m, p, d(m.el), B(m), e, i, a), process.env.NODE_ENV !== "production" && Fo(e, "patch"), t.el = p.el, u === null && no(e, p.el), r && Ro(r, i), (f = t.props && t.props.onVnodeUpdated) && Ro(() =>
|
|
2912
|
+
e.subTree = p, process.env.NODE_ENV !== "production" && Po(e, "patch"), h(m, p, d(m.el), B(m), e, i, a), process.env.NODE_ENV !== "production" && Fo(e, "patch"), t.el = p.el, u === null && no(e, p.el), r && Ro(r, i), (f = t.props && t.props.onVnodeUpdated) && Ro(() => Ss(f, s, t, c), i), process.env.NODE_ENV !== "production" && Rr(e), process.env.NODE_ENV !== "production" && Vn();
|
|
2913
2913
|
} else {
|
|
2914
2914
|
let o, { el: s, props: c } = t, { bm: l, m: u, parent: d, root: f, type: p } = e, m = Ui(t);
|
|
2915
|
-
if (Ho(e, !1), l && Se(l), !m && (o = c && c.onVnodeBeforeMount) &&
|
|
2915
|
+
if (Ho(e, !1), l && Se(l), !m && (o = c && c.onVnodeBeforeMount) && Ss(o, d, t), Ho(e, !0), s && de) {
|
|
2916
2916
|
let t = () => {
|
|
2917
2917
|
process.env.NODE_ENV !== "production" && Po(e, "render"), e.subTree = qa(e), process.env.NODE_ENV !== "production" && Fo(e, "render"), process.env.NODE_ENV !== "production" && Po(e, "hydrate"), de(s, e.subTree, e, i, null), process.env.NODE_ENV !== "production" && Fo(e, "hydrate");
|
|
2918
2918
|
};
|
|
@@ -2924,7 +2924,7 @@ function Bo(e, t) {
|
|
|
2924
2924
|
}
|
|
2925
2925
|
if (u && Ro(u, i), !m && (o = c && c.onVnodeMounted)) {
|
|
2926
2926
|
let e = t;
|
|
2927
|
-
Ro(() =>
|
|
2927
|
+
Ro(() => Ss(o, d, e), i);
|
|
2928
2928
|
}
|
|
2929
2929
|
(t.shapeFlag & 256 || d && Ui(d.vnode) && d.vnode.shapeFlag & 256) && e.a && Ro(e.a, i), e.isMounted = !0, process.env.NODE_ENV !== "production" && Lr(e), t = n = r = null;
|
|
2930
2930
|
}
|
|
@@ -2954,20 +2954,20 @@ function Bo(e, t) {
|
|
|
2954
2954
|
e ||= ee, t ||= ee;
|
|
2955
2955
|
let l = e.length, u = t.length, d = Math.min(l, u), f;
|
|
2956
2956
|
for (f = 0; f < d; f++) {
|
|
2957
|
-
let r = t[f] = c ?
|
|
2957
|
+
let r = t[f] = c ? ys(t[f]) : vs(t[f]);
|
|
2958
2958
|
h(e[f], r, n, null, i, a, o, s, c);
|
|
2959
2959
|
}
|
|
2960
2960
|
l > u ? oe(e, i, a, !0, !1, d) : T(t, n, r, i, a, o, s, c, d);
|
|
2961
2961
|
}, L = (e, t, n, r, i, a, o, s, c) => {
|
|
2962
2962
|
let l = 0, u = t.length, d = e.length - 1, f = u - 1;
|
|
2963
2963
|
for (; l <= d && l <= f;) {
|
|
2964
|
-
let r = e[l], u = t[l] = c ?
|
|
2964
|
+
let r = e[l], u = t[l] = c ? ys(t[l]) : vs(t[l]);
|
|
2965
2965
|
if (cs(r, u)) h(r, u, n, null, i, a, o, s, c);
|
|
2966
2966
|
else break;
|
|
2967
2967
|
l++;
|
|
2968
2968
|
}
|
|
2969
2969
|
for (; l <= d && l <= f;) {
|
|
2970
|
-
let r = e[d], l = t[f] = c ?
|
|
2970
|
+
let r = e[d], l = t[f] = c ? ys(t[f]) : vs(t[f]);
|
|
2971
2971
|
if (cs(r, l)) h(r, l, n, null, i, a, o, s, c);
|
|
2972
2972
|
else break;
|
|
2973
2973
|
d--, f--;
|
|
@@ -2975,13 +2975,13 @@ function Bo(e, t) {
|
|
|
2975
2975
|
if (l > d) {
|
|
2976
2976
|
if (l <= f) {
|
|
2977
2977
|
let e = f + 1, d = e < u ? t[e].el : r;
|
|
2978
|
-
for (; l <= f;) h(null, t[l] = c ?
|
|
2978
|
+
for (; l <= f;) h(null, t[l] = c ? ys(t[l]) : vs(t[l]), n, d, i, a, o, s, c), l++;
|
|
2979
2979
|
}
|
|
2980
2980
|
} else if (l > f) for (; l <= d;) R(e[l], i, a, !0), l++;
|
|
2981
2981
|
else {
|
|
2982
2982
|
let p = l, m = l, g = /* @__PURE__ */ new Map();
|
|
2983
2983
|
for (l = m; l <= f; l++) {
|
|
2984
|
-
let e = t[l] = c ?
|
|
2984
|
+
let e = t[l] = c ? ys(t[l]) : vs(t[l]);
|
|
2985
2985
|
e.key != null && (process.env.NODE_ENV !== "production" && g.has(e.key) && K("Duplicate keys found during update:", JSON.stringify(e.key), "Make sure keys are unique."), g.set(e.key, l));
|
|
2986
2986
|
}
|
|
2987
2987
|
let _, v = 0, y = f - m + 1, b = !1, x = 0, S = Array(y);
|
|
@@ -3050,7 +3050,7 @@ function Bo(e, t) {
|
|
|
3050
3050
|
return;
|
|
3051
3051
|
}
|
|
3052
3052
|
let h = u & 1 && f, g = !Ui(e), _;
|
|
3053
|
-
if (g && (_ = o && o.onVnodeBeforeUnmount) &&
|
|
3053
|
+
if (g && (_ = o && o.onVnodeBeforeUnmount) && Ss(_, t, e), u & 6) ae(e.component, n, r);
|
|
3054
3054
|
else {
|
|
3055
3055
|
if (u & 128) {
|
|
3056
3056
|
e.suspense.unmount(n, r);
|
|
@@ -3060,7 +3060,7 @@ function Bo(e, t) {
|
|
|
3060
3060
|
}
|
|
3061
3061
|
let v = m != null && p == null;
|
|
3062
3062
|
(g && (_ = o && o.onVnodeUnmounted) || h || v) && Ro(() => {
|
|
3063
|
-
_ &&
|
|
3063
|
+
_ && Ss(_, t, e), h && Qr(e, null, t, "unmounted"), v && (e.el = null);
|
|
3064
3064
|
}, n);
|
|
3065
3065
|
}, ie = (e) => {
|
|
3066
3066
|
let { type: t, el: n, anchor: r, transition: a } = e;
|
|
@@ -3132,7 +3132,7 @@ function Wo(e, t, n = !1) {
|
|
|
3132
3132
|
let r = e.children, i = t.children;
|
|
3133
3133
|
if (L(r) && L(i)) for (let e = 0; e < r.length; e++) {
|
|
3134
3134
|
let t = r[e], a = i[e];
|
|
3135
|
-
a.shapeFlag & 1 && !a.dynamicChildren && ((a.patchFlag <= 0 || a.patchFlag === 32) && (a = i[e] =
|
|
3135
|
+
a.shapeFlag & 1 && !a.dynamicChildren && ((a.patchFlag <= 0 || a.patchFlag === 32) && (a = i[e] = ys(i[e]), a.el = t.el), !n && a.patchFlag !== -2 && Wo(t, a)), a.type === Zo && (a.patchFlag === -1 && (a = i[e] = ys(a)), a.el = t.el), a.type === Qo && !a.el && (a.el = t.el), process.env.NODE_ENV !== "production" && a.el && (a.el.__vnode = a);
|
|
3136
3136
|
}
|
|
3137
3137
|
}
|
|
3138
3138
|
function Go(e) {
|
|
@@ -3185,7 +3185,7 @@ function Y(e, t, n, r, i, a) {
|
|
|
3185
3185
|
return as(X(e, t, n, r, i, a, !0));
|
|
3186
3186
|
}
|
|
3187
3187
|
function os(e, t, n, r, i) {
|
|
3188
|
-
return as(
|
|
3188
|
+
return as(Z(e, t, n, r, i, !0));
|
|
3189
3189
|
}
|
|
3190
3190
|
function ss(e) {
|
|
3191
3191
|
return e ? e.__v_isVNode === !0 : !1;
|
|
@@ -3197,7 +3197,7 @@ function cs(e, t) {
|
|
|
3197
3197
|
}
|
|
3198
3198
|
return e.type === t.type && e.key === t.key;
|
|
3199
3199
|
}
|
|
3200
|
-
var ls, us = (...e) =>
|
|
3200
|
+
var ls, us = (...e) => ps(...ls ? ls(e, Kr) : e), ds = ({ key: e }) => e ?? null, fs = ({ ref: e, ref_key: t, ref_for: n }) => (typeof e == "number" && (e = "" + e), e == null ? null : ae(e) || /* @__PURE__ */ Cn(e) || z(e) ? {
|
|
3201
3201
|
i: Kr,
|
|
3202
3202
|
r: e,
|
|
3203
3203
|
k: t,
|
|
@@ -3233,27 +3233,27 @@ function X(e, t = null, n = null, r = 0, i = null, a = e === q ? 0 : 1, o = !1,
|
|
|
3233
3233
|
appContext: null,
|
|
3234
3234
|
ctx: Kr
|
|
3235
3235
|
};
|
|
3236
|
-
return s ? (
|
|
3236
|
+
return s ? (bs(c, n), a & 128 && e.normalize(c)) : n && (c.shapeFlag |= ae(n) ? 8 : 16), process.env.NODE_ENV !== "production" && c.key !== c.key && K("VNode created with invalid key (NaN). VNode type:", c.type), rs > 0 && !o && ts && (c.patchFlag > 0 || a & 6) && c.patchFlag !== 32 && ts.push(c), c;
|
|
3237
3237
|
}
|
|
3238
|
-
var
|
|
3239
|
-
function
|
|
3238
|
+
var Z = process.env.NODE_ENV === "production" ? ps : us;
|
|
3239
|
+
function ps(e, t = null, n = null, r = 0, i = null, a = !1) {
|
|
3240
3240
|
if ((!e || e === sa) && (process.env.NODE_ENV !== "production" && !e && K(`Invalid vnode type when creating vnode: ${e}.`), e = Qo), ss(e)) {
|
|
3241
|
-
let r =
|
|
3242
|
-
return n &&
|
|
3241
|
+
let r = hs(e, t, !0);
|
|
3242
|
+
return n && bs(r, n), rs > 0 && !a && ts && (r.shapeFlag & 6 ? ts[ts.indexOf(e)] = r : ts.push(r)), r.patchFlag = -2, r;
|
|
3243
3243
|
}
|
|
3244
|
-
if (
|
|
3245
|
-
t =
|
|
3244
|
+
if (Zs(e) && (e = e.__vccOpts), t) {
|
|
3245
|
+
t = ms(t);
|
|
3246
3246
|
let { class: e, style: n } = t;
|
|
3247
3247
|
e && !ae(e) && (t.class = H(e)), B(n) && (/* @__PURE__ */ vn(n) && !L(n) && (n = P({}, n)), t.style = Oe(n));
|
|
3248
3248
|
}
|
|
3249
3249
|
let o = ae(e) ? 1 : Yo(e) ? 128 : li(e) ? 64 : B(e) ? 4 : z(e) ? 2 : 0;
|
|
3250
3250
|
return process.env.NODE_ENV !== "production" && o & 4 && /* @__PURE__ */ vn(e) && (e = /* @__PURE__ */ yn(e), K("Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.", "\nComponent that was made reactive: ", e)), X(e, t, n, r, i, o, a, !0);
|
|
3251
3251
|
}
|
|
3252
|
-
function
|
|
3252
|
+
function ms(e) {
|
|
3253
3253
|
return e ? /* @__PURE__ */ vn(e) || ao(e) ? P({}, e) : e : null;
|
|
3254
3254
|
}
|
|
3255
|
-
function
|
|
3256
|
-
let { props: i, ref: a, patchFlag: o, children: s, transition: c } = e, l = t ?
|
|
3255
|
+
function hs(e, t, n = !1, r = !1) {
|
|
3256
|
+
let { props: i, ref: a, patchFlag: o, children: s, transition: c } = e, l = t ? xs(i || {}, t) : i, u = {
|
|
3257
3257
|
__v_isVNode: !0,
|
|
3258
3258
|
__v_skip: !0,
|
|
3259
3259
|
type: e.type,
|
|
@@ -3262,7 +3262,7 @@ function gs(e, t, n = !1, r = !1) {
|
|
|
3262
3262
|
ref: t && t.ref ? n && a ? L(a) ? a.concat(fs(t)) : [a, fs(t)] : fs(t) : a,
|
|
3263
3263
|
scopeId: e.scopeId,
|
|
3264
3264
|
slotScopeIds: e.slotScopeIds,
|
|
3265
|
-
children: process.env.NODE_ENV !== "production" && o === -1 && L(s) ? s.map(
|
|
3265
|
+
children: process.env.NODE_ENV !== "production" && o === -1 && L(s) ? s.map(gs) : s,
|
|
3266
3266
|
target: e.target,
|
|
3267
3267
|
targetStart: e.targetStart,
|
|
3268
3268
|
targetAnchor: e.targetAnchor,
|
|
@@ -3276,8 +3276,8 @@ function gs(e, t, n = !1, r = !1) {
|
|
|
3276
3276
|
transition: c,
|
|
3277
3277
|
component: e.component,
|
|
3278
3278
|
suspense: e.suspense,
|
|
3279
|
-
ssContent: e.ssContent &&
|
|
3280
|
-
ssFallback: e.ssFallback &&
|
|
3279
|
+
ssContent: e.ssContent && hs(e.ssContent),
|
|
3280
|
+
ssFallback: e.ssFallback && hs(e.ssFallback),
|
|
3281
3281
|
placeholder: e.placeholder,
|
|
3282
3282
|
el: e.el,
|
|
3283
3283
|
anchor: e.anchor,
|
|
@@ -3286,29 +3286,29 @@ function gs(e, t, n = !1, r = !1) {
|
|
|
3286
3286
|
};
|
|
3287
3287
|
return c && r && Pi(u, c.clone(u)), u;
|
|
3288
3288
|
}
|
|
3289
|
-
function
|
|
3290
|
-
let t =
|
|
3291
|
-
return L(e.children) && (t.children = e.children.map(
|
|
3289
|
+
function gs(e) {
|
|
3290
|
+
let t = hs(e);
|
|
3291
|
+
return L(e.children) && (t.children = e.children.map(gs)), t;
|
|
3292
3292
|
}
|
|
3293
|
-
function
|
|
3294
|
-
return
|
|
3293
|
+
function _s(e = " ", t = 0) {
|
|
3294
|
+
return Z(Zo, null, e, t);
|
|
3295
3295
|
}
|
|
3296
|
-
function
|
|
3297
|
-
return t ? (J(), os(Qo, null, e)) :
|
|
3296
|
+
function Q(e = "", t = !1) {
|
|
3297
|
+
return t ? (J(), os(Qo, null, e)) : Z(Qo, null, e);
|
|
3298
3298
|
}
|
|
3299
|
-
function
|
|
3300
|
-
return e == null || typeof e == "boolean" ?
|
|
3299
|
+
function vs(e) {
|
|
3300
|
+
return e == null || typeof e == "boolean" ? Z(Qo) : L(e) ? Z(q, null, e.slice()) : ss(e) ? ys(e) : Z(Zo, null, String(e));
|
|
3301
3301
|
}
|
|
3302
|
-
function
|
|
3303
|
-
return e.el === null && e.patchFlag !== -1 || e.memo ? e :
|
|
3302
|
+
function ys(e) {
|
|
3303
|
+
return e.el === null && e.patchFlag !== -1 || e.memo ? e : hs(e);
|
|
3304
3304
|
}
|
|
3305
|
-
function
|
|
3305
|
+
function bs(e, t) {
|
|
3306
3306
|
let n = 0, { shapeFlag: r } = e;
|
|
3307
3307
|
if (t == null) t = null;
|
|
3308
3308
|
else if (L(t)) n = 16;
|
|
3309
3309
|
else if (typeof t == "object") if (r & 65) {
|
|
3310
3310
|
let n = t.default;
|
|
3311
|
-
n && (n._c && (n._d = !1),
|
|
3311
|
+
n && (n._c && (n._d = !1), bs(e, n()), n._c && (n._d = !0));
|
|
3312
3312
|
return;
|
|
3313
3313
|
} else {
|
|
3314
3314
|
n = 32;
|
|
@@ -3317,17 +3317,17 @@ function xs(e, t) {
|
|
|
3317
3317
|
}
|
|
3318
3318
|
else if (z(t)) {
|
|
3319
3319
|
if (r & 65) {
|
|
3320
|
-
|
|
3320
|
+
bs(e, { default: t });
|
|
3321
3321
|
return;
|
|
3322
3322
|
}
|
|
3323
3323
|
t = {
|
|
3324
3324
|
default: t,
|
|
3325
3325
|
_ctx: Kr
|
|
3326
3326
|
}, n = 32;
|
|
3327
|
-
} else t = String(t), r & 64 ? (n = 16, t = [
|
|
3327
|
+
} else t = String(t), r & 64 ? (n = 16, t = [_s(t)]) : n = 8;
|
|
3328
3328
|
e.children = t, e.shapeFlag |= n;
|
|
3329
3329
|
}
|
|
3330
|
-
function
|
|
3330
|
+
function xs(...e) {
|
|
3331
3331
|
let t = {};
|
|
3332
3332
|
for (let n = 0; n < e.length; n++) {
|
|
3333
3333
|
let r = e[n];
|
|
@@ -3340,13 +3340,13 @@ function Ss(...e) {
|
|
|
3340
3340
|
}
|
|
3341
3341
|
return t;
|
|
3342
3342
|
}
|
|
3343
|
-
function
|
|
3343
|
+
function Ss(e, t, n, r = null) {
|
|
3344
3344
|
Zn(e, t, 7, [n, r]);
|
|
3345
3345
|
}
|
|
3346
|
-
var
|
|
3347
|
-
function
|
|
3348
|
-
let r = e.type, i = (t ? t.appContext : e.appContext) ||
|
|
3349
|
-
uid:
|
|
3346
|
+
var Cs = Ia(), ws = 0;
|
|
3347
|
+
function Ts(e, t, n) {
|
|
3348
|
+
let r = e.type, i = (t ? t.appContext : e.appContext) || Cs, a = {
|
|
3349
|
+
uid: ws++,
|
|
3350
3350
|
vnode: e,
|
|
3351
3351
|
type: r,
|
|
3352
3352
|
parent: t,
|
|
@@ -3411,7 +3411,7 @@ function Es(e, t, n) {
|
|
|
3411
3411
|
};
|
|
3412
3412
|
return process.env.NODE_ENV === "production" ? a.ctx = { _: a } : a.ctx = ga(a), a.root = t ? t.root : a, a.emit = Va.bind(null, a), e.ce && e.ce(a), a;
|
|
3413
3413
|
}
|
|
3414
|
-
var
|
|
3414
|
+
var Es = null, Ds = () => Es || Kr, Os, ks;
|
|
3415
3415
|
{
|
|
3416
3416
|
let e = De(), t = (t, n) => {
|
|
3417
3417
|
let r;
|
|
@@ -3419,80 +3419,80 @@ var Ds = null, Os = () => Ds || Kr, ks, As;
|
|
|
3419
3419
|
r.length > 1 ? r.forEach((t) => t(e)) : r[0](e);
|
|
3420
3420
|
};
|
|
3421
3421
|
};
|
|
3422
|
-
|
|
3422
|
+
Os = t("__VUE_INSTANCE_SETTERS__", (e) => Es = e), ks = t("__VUE_SSR_SETTERS__", (e) => Fs = e);
|
|
3423
3423
|
}
|
|
3424
|
-
var
|
|
3425
|
-
let t =
|
|
3426
|
-
return
|
|
3427
|
-
e.scope.off(),
|
|
3424
|
+
var As = (e) => {
|
|
3425
|
+
let t = Es;
|
|
3426
|
+
return Os(e), e.scope.on(), () => {
|
|
3427
|
+
e.scope.off(), Os(t);
|
|
3428
3428
|
};
|
|
3429
|
-
},
|
|
3430
|
-
|
|
3431
|
-
},
|
|
3432
|
-
function
|
|
3433
|
-
(
|
|
3429
|
+
}, js = () => {
|
|
3430
|
+
Es && Es.scope.off(), Os(null);
|
|
3431
|
+
}, Ms = /* @__PURE__ */ k("slot,component");
|
|
3432
|
+
function Ns(e, { isNativeTag: t }) {
|
|
3433
|
+
(Ms(e) || t(e)) && K("Do not use built-in or reserved HTML elements as component id: " + e);
|
|
3434
3434
|
}
|
|
3435
|
-
function
|
|
3435
|
+
function Ps(e) {
|
|
3436
3436
|
return e.vnode.shapeFlag & 4;
|
|
3437
3437
|
}
|
|
3438
|
-
var
|
|
3439
|
-
function
|
|
3440
|
-
t &&
|
|
3441
|
-
let { props: r, children: i } = e.vnode, a =
|
|
3438
|
+
var Fs = !1;
|
|
3439
|
+
function Is(e, t = !1, n = !1) {
|
|
3440
|
+
t && ks(t);
|
|
3441
|
+
let { props: r, children: i } = e.vnode, a = Ps(e);
|
|
3442
3442
|
oo(e, r, a, t), Ao(e, i, n || t);
|
|
3443
|
-
let o = a ?
|
|
3444
|
-
return t &&
|
|
3443
|
+
let o = a ? Ls(e, t) : void 0;
|
|
3444
|
+
return t && ks(!1), o;
|
|
3445
3445
|
}
|
|
3446
|
-
function
|
|
3446
|
+
function Ls(e, t) {
|
|
3447
3447
|
let n = e.type;
|
|
3448
3448
|
if (process.env.NODE_ENV !== "production") {
|
|
3449
|
-
if (n.name &&
|
|
3449
|
+
if (n.name && Ns(n.name, e.appContext.config), n.components) {
|
|
3450
3450
|
let t = Object.keys(n.components);
|
|
3451
|
-
for (let n = 0; n < t.length; n++)
|
|
3451
|
+
for (let n = 0; n < t.length; n++) Ns(t[n], e.appContext.config);
|
|
3452
3452
|
}
|
|
3453
3453
|
if (n.directives) {
|
|
3454
3454
|
let e = Object.keys(n.directives);
|
|
3455
3455
|
for (let t = 0; t < e.length; t++) Xr(e[t]);
|
|
3456
3456
|
}
|
|
3457
|
-
n.compilerOptions &&
|
|
3457
|
+
n.compilerOptions && Vs() && K("\"compilerOptions\" is only supported when using a build of Vue that includes the runtime compiler. Since you are using a runtime-only build, the options should be passed via your build tool config instead.");
|
|
3458
3458
|
}
|
|
3459
3459
|
e.accessCache = /* @__PURE__ */ Object.create(null), e.proxy = new Proxy(e.ctx, ha), process.env.NODE_ENV !== "production" && _a(e);
|
|
3460
3460
|
let { setup: r } = n;
|
|
3461
3461
|
if (r) {
|
|
3462
3462
|
ht();
|
|
3463
|
-
let i = e.setupContext = r.length > 1 ?
|
|
3463
|
+
let i = e.setupContext = r.length > 1 ? Gs(e) : null, a = As(e), o = Xn(r, e, 0, [process.env.NODE_ENV === "production" ? e.props : /* @__PURE__ */ pn(e.props), i]), s = se(o);
|
|
3464
3464
|
if (gt(), a(), (s || e.sp) && !Ui(e) && Li(e), s) {
|
|
3465
|
-
if (o.then(
|
|
3466
|
-
|
|
3465
|
+
if (o.then(js, js), t) return o.then((n) => {
|
|
3466
|
+
Rs(e, n, t);
|
|
3467
3467
|
}).catch((t) => {
|
|
3468
3468
|
Qn(t, e, 0);
|
|
3469
3469
|
});
|
|
3470
|
-
e.asyncDep = o, process.env.NODE_ENV !== "production" && !e.suspense && K(`Component <${
|
|
3471
|
-
} else
|
|
3472
|
-
} else
|
|
3470
|
+
e.asyncDep = o, process.env.NODE_ENV !== "production" && !e.suspense && K(`Component <${Xs(e, n)}>: setup function returned a promise, but no <Suspense> boundary was found in the parent component tree. A component with async setup() must be nested in a <Suspense> in order to be rendered.`);
|
|
3471
|
+
} else Rs(e, o, t);
|
|
3472
|
+
} else Hs(e, t);
|
|
3473
3473
|
}
|
|
3474
|
-
function
|
|
3475
|
-
z(t) ? e.type.__ssrInlineRender ? e.ssrRender = t : e.render = t : B(t) ? (process.env.NODE_ENV !== "production" && ss(t) && K("setup() should not return VNodes directly - return a render function instead."), process.env.NODE_ENV !== "production" && (e.devtoolsRawSetupState = t), e.setupState = An(t), process.env.NODE_ENV !== "production" && va(e)) : process.env.NODE_ENV !== "production" && t !== void 0 && K(`setup() should return an object. Received: ${t === null ? "null" : typeof t}`),
|
|
3474
|
+
function Rs(e, t, n) {
|
|
3475
|
+
z(t) ? e.type.__ssrInlineRender ? e.ssrRender = t : e.render = t : B(t) ? (process.env.NODE_ENV !== "production" && ss(t) && K("setup() should not return VNodes directly - return a render function instead."), process.env.NODE_ENV !== "production" && (e.devtoolsRawSetupState = t), e.setupState = An(t), process.env.NODE_ENV !== "production" && va(e)) : process.env.NODE_ENV !== "production" && t !== void 0 && K(`setup() should return an object. Received: ${t === null ? "null" : typeof t}`), Hs(e, n);
|
|
3476
3476
|
}
|
|
3477
|
-
var Bs, Vs
|
|
3478
|
-
function
|
|
3477
|
+
var zs, Bs, Vs = () => !zs;
|
|
3478
|
+
function Hs(e, t, n) {
|
|
3479
3479
|
let r = e.type;
|
|
3480
3480
|
if (!e.render) {
|
|
3481
|
-
if (!t &&
|
|
3481
|
+
if (!t && zs && !r.render) {
|
|
3482
3482
|
let t = r.template || Ea(e).template;
|
|
3483
3483
|
if (t) {
|
|
3484
3484
|
process.env.NODE_ENV !== "production" && Po(e, "compile");
|
|
3485
3485
|
let { isCustomElement: n, compilerOptions: i } = e.appContext.config, { delimiters: a, compilerOptions: o } = r;
|
|
3486
|
-
r.render =
|
|
3486
|
+
r.render = zs(t, P(P({
|
|
3487
3487
|
isCustomElement: n,
|
|
3488
3488
|
delimiters: a
|
|
3489
3489
|
}, i), o)), process.env.NODE_ENV !== "production" && Fo(e, "compile");
|
|
3490
3490
|
}
|
|
3491
3491
|
}
|
|
3492
|
-
e.render = r.render || j,
|
|
3492
|
+
e.render = r.render || j, Bs && Bs(e);
|
|
3493
3493
|
}
|
|
3494
3494
|
{
|
|
3495
|
-
let t =
|
|
3495
|
+
let t = As(e);
|
|
3496
3496
|
ht();
|
|
3497
3497
|
try {
|
|
3498
3498
|
Sa(e);
|
|
@@ -3500,9 +3500,9 @@ function Us(e, t, n) {
|
|
|
3500
3500
|
gt(), t();
|
|
3501
3501
|
}
|
|
3502
3502
|
}
|
|
3503
|
-
process.env.NODE_ENV !== "production" && !r.render && e.render === j && !t && (!
|
|
3503
|
+
process.env.NODE_ENV !== "production" && !r.render && e.render === j && !t && (!zs && r.template ? K("Component provided template option but runtime compilation is not supported in this build of Vue. Configure your bundler to alias \"vue\" to \"vue/dist/vue.esm-bundler.js\".") : K("Component is missing template or render function: ", r));
|
|
3504
3504
|
}
|
|
3505
|
-
var
|
|
3505
|
+
var Us = process.env.NODE_ENV === "production" ? { get(e, t) {
|
|
3506
3506
|
return Et(e, "get", ""), e[t];
|
|
3507
3507
|
} } : {
|
|
3508
3508
|
get(e, t) {
|
|
@@ -3515,12 +3515,12 @@ var Ws = process.env.NODE_ENV === "production" ? { get(e, t) {
|
|
|
3515
3515
|
return K("setupContext.attrs is readonly."), !1;
|
|
3516
3516
|
}
|
|
3517
3517
|
};
|
|
3518
|
-
function
|
|
3518
|
+
function Ws(e) {
|
|
3519
3519
|
return new Proxy(e.slots, { get(t, n) {
|
|
3520
3520
|
return Et(e, "get", "$slots"), t[n];
|
|
3521
3521
|
} });
|
|
3522
3522
|
}
|
|
3523
|
-
function
|
|
3523
|
+
function Gs(e) {
|
|
3524
3524
|
let t = (t) => {
|
|
3525
3525
|
if (process.env.NODE_ENV !== "production" && (e.exposed && K("expose() should be called only once per setup()."), t != null)) {
|
|
3526
3526
|
let e = typeof t;
|
|
@@ -3532,10 +3532,10 @@ function Ks(e) {
|
|
|
3532
3532
|
let n, r;
|
|
3533
3533
|
return Object.freeze({
|
|
3534
3534
|
get attrs() {
|
|
3535
|
-
return n ||= new Proxy(e.attrs,
|
|
3535
|
+
return n ||= new Proxy(e.attrs, Us);
|
|
3536
3536
|
},
|
|
3537
3537
|
get slots() {
|
|
3538
|
-
return r ||=
|
|
3538
|
+
return r ||= Ws(e);
|
|
3539
3539
|
},
|
|
3540
3540
|
get emit() {
|
|
3541
3541
|
return (t, ...n) => e.emit(t, ...n);
|
|
@@ -3543,13 +3543,13 @@ function Ks(e) {
|
|
|
3543
3543
|
expose: t
|
|
3544
3544
|
});
|
|
3545
3545
|
} else return {
|
|
3546
|
-
attrs: new Proxy(e.attrs,
|
|
3546
|
+
attrs: new Proxy(e.attrs, Us),
|
|
3547
3547
|
slots: e.slots,
|
|
3548
3548
|
emit: e.emit,
|
|
3549
3549
|
expose: t
|
|
3550
3550
|
};
|
|
3551
3551
|
}
|
|
3552
|
-
function
|
|
3552
|
+
function Ks(e) {
|
|
3553
3553
|
return e.exposed ? e.exposeProxy ||= new Proxy(An(bn(e.exposed)), {
|
|
3554
3554
|
get(t, n) {
|
|
3555
3555
|
if (n in t) return t[n];
|
|
@@ -3560,12 +3560,12 @@ function qs(e) {
|
|
|
3560
3560
|
}
|
|
3561
3561
|
}) : e.proxy;
|
|
3562
3562
|
}
|
|
3563
|
-
var
|
|
3564
|
-
function
|
|
3563
|
+
var qs = /(?:^|[-_])\w/g, Js = (e) => e.replace(qs, (e) => e.toUpperCase()).replace(/[-_]/g, "");
|
|
3564
|
+
function Ys(e, t = !0) {
|
|
3565
3565
|
return z(e) ? e.displayName || e.name : e.name || t && e.__name;
|
|
3566
3566
|
}
|
|
3567
|
-
function
|
|
3568
|
-
let r =
|
|
3567
|
+
function Xs(e, t, n = !1) {
|
|
3568
|
+
let r = Ys(t);
|
|
3569
3569
|
if (!r && t.__file) {
|
|
3570
3570
|
let e = t.__file.match(/([^/\\]+)\.\w+$/);
|
|
3571
3571
|
e && (r = e[1]);
|
|
@@ -3576,15 +3576,15 @@ function Zs(e, t, n = !1) {
|
|
|
3576
3576
|
};
|
|
3577
3577
|
r = n(e.components) || e.parent && n(e.parent.type.components) || n(e.appContext.components);
|
|
3578
3578
|
}
|
|
3579
|
-
return r ?
|
|
3579
|
+
return r ? Js(r) : n ? "App" : "Anonymous";
|
|
3580
3580
|
}
|
|
3581
|
-
function
|
|
3581
|
+
function Zs(e) {
|
|
3582
3582
|
return z(e) && "__vccOpts" in e;
|
|
3583
3583
|
}
|
|
3584
|
-
var
|
|
3585
|
-
let n = /* @__PURE__ */ Mn(e, t,
|
|
3584
|
+
var Qs = (e, t) => {
|
|
3585
|
+
let n = /* @__PURE__ */ Mn(e, t, Fs);
|
|
3586
3586
|
if (process.env.NODE_ENV !== "production") {
|
|
3587
|
-
let e =
|
|
3587
|
+
let e = Ds();
|
|
3588
3588
|
e && e.appContext.config.warnRecursiveComputed && (n._warnRecursive = !0);
|
|
3589
3589
|
}
|
|
3590
3590
|
return n;
|
|
@@ -3593,7 +3593,7 @@ function $s(e, t, n) {
|
|
|
3593
3593
|
try {
|
|
3594
3594
|
is(-1);
|
|
3595
3595
|
let r = arguments.length;
|
|
3596
|
-
return r === 2 ? B(t) && !L(t) ? ss(t) ?
|
|
3596
|
+
return r === 2 ? B(t) && !L(t) ? ss(t) ? Z(e, null, [t]) : Z(e, t) : Z(e, null, t) : (r > 3 ? n = Array.prototype.slice.call(arguments, 2) : r === 3 && ss(n) && (n = [n]), Z(e, t, n));
|
|
3597
3597
|
} finally {
|
|
3598
3598
|
is(1);
|
|
3599
3599
|
}
|
|
@@ -4188,7 +4188,7 @@ function Dl(e) {
|
|
|
4188
4188
|
});
|
|
4189
4189
|
}
|
|
4190
4190
|
function Ol(e) {
|
|
4191
|
-
if (
|
|
4191
|
+
if (Vs()) {
|
|
4192
4192
|
let t = e.config.isCustomElement;
|
|
4193
4193
|
Object.defineProperty(e.config, "isCustomElement", {
|
|
4194
4194
|
get() {
|
|
@@ -9339,7 +9339,7 @@ function Km(e) {
|
|
|
9339
9339
|
temperature: 0,
|
|
9340
9340
|
maxTokens: 30
|
|
9341
9341
|
}));
|
|
9342
|
-
let t = await i.invoke([new o(e.
|
|
9342
|
+
let t = await i.invoke([new o(e.i18n?.locale === "en-US" ? "Generate a short English title (max 10 words) summarizing the conversation below. Output the title text only, no quotes or punctuation." : "根据以下对话的主旨,生成一个简短的中文标题(不超过15个字,不要标点和引号,直接输出标题文字)。"), new a(n)], { signal: s.signal }), c = e.i18n?.locale === "en-US" ? 60 : 20;
|
|
9343
9343
|
return Wm(t).trim().replace(/^["'""「『]|["'""」』]$/g, "").split("\n")[0].slice(0, c);
|
|
9344
9344
|
} catch {
|
|
9345
9345
|
return "";
|
|
@@ -12504,7 +12504,7 @@ function p_(e, n) {
|
|
|
12504
12504
|
maxCheckpoints: ne && typeof ne == "object" ? ne.maxCheckpoints : void 0
|
|
12505
12505
|
}) : null, re = !ne || typeof ne != "object" || ne.auto !== !1, R = Oh(e.capabilities), ie = R.dataOps, z = R.draftWrite, ae = R.tracing, oe = R.automation, B = qp({
|
|
12506
12506
|
...e,
|
|
12507
|
-
locale: e.
|
|
12507
|
+
locale: e.i18n?.locale
|
|
12508
12508
|
});
|
|
12509
12509
|
if (te) {
|
|
12510
12510
|
let e = M.map((e) => e._codeAsset.orchestratorPrompt).filter(Boolean).join("\n\n");
|
|
@@ -13528,6 +13528,7 @@ function m_(e, t) {
|
|
|
13528
13528
|
el: m,
|
|
13529
13529
|
core: a,
|
|
13530
13530
|
dialogCfg: c,
|
|
13531
|
+
i18n: e.i18n,
|
|
13531
13532
|
streaming: r,
|
|
13532
13533
|
runSerial: a.runSerial,
|
|
13533
13534
|
hide: p,
|
|
@@ -14446,13 +14447,13 @@ function T_(e = {}) {
|
|
|
14446
14447
|
v.value = !1;
|
|
14447
14448
|
}, 1500));
|
|
14448
14449
|
});
|
|
14449
|
-
}, b =
|
|
14450
|
+
}, b = Qs(() => {
|
|
14450
14451
|
let t = e.getInfo?.();
|
|
14451
14452
|
return {
|
|
14452
14453
|
mcp: t?.mcp?.servers?.length ?? 0,
|
|
14453
14454
|
tools: t?.tools?.length ?? 0
|
|
14454
14455
|
};
|
|
14455
|
-
}), x =
|
|
14456
|
+
}), x = Qs(() => (n.messages.length, typeof e.canUndo == "function" && !!e.canUndo())), S = () => {
|
|
14456
14457
|
e.onUndo?.() && (n.error = null);
|
|
14457
14458
|
}, C = (e) => new Date(e).toLocaleTimeString(N, {
|
|
14458
14459
|
hour: "2-digit",
|
|
@@ -14468,7 +14469,7 @@ function T_(e = {}) {
|
|
|
14468
14469
|
if (!r || r.role !== "assistant") return !1;
|
|
14469
14470
|
let i = "reasoning" in r ? r.reasoning : void 0;
|
|
14470
14471
|
return n.loading && e === t.length - 1 && !r.content && !i;
|
|
14471
|
-
}, O =
|
|
14472
|
+
}, O = Qs(() => (e.infoTick?.value, e.getFocuses?.() ?? [])), k = (t) => e.onAddFocus ? e.onAddFocus(t) : {
|
|
14472
14473
|
ok: !1,
|
|
14473
14474
|
error: "focus 未启用"
|
|
14474
14475
|
}, A = (t) => {
|
|
@@ -15310,42 +15311,82 @@ var Zv = [
|
|
|
15310
15311
|
"span"
|
|
15311
15312
|
], Qv = /* @__PURE__ */ "viewBox.xmlns.width.height.fill.fill-rule.fill-opacity.stroke.stroke-width.stroke-linecap.stroke-linejoin.stroke-opacity.stroke-dasharray.d.cx.cy.r.rx.ry.x.y.x1.y1.x2.y2.points.transform.opacity.clip-rule.src.alt.class.aria-hidden".split(".");
|
|
15312
15313
|
function $v(e) {
|
|
15313
|
-
return
|
|
15314
|
+
return e.replace(/<[^>]*>/g, "");
|
|
15315
|
+
}
|
|
15316
|
+
function ey(e) {
|
|
15317
|
+
return typeof Yv.sanitize == "function" ? Yv.sanitize(e, {
|
|
15314
15318
|
ALLOWED_TAGS: [...Zv],
|
|
15315
15319
|
ALLOWED_ATTR: [...Qv],
|
|
15316
15320
|
ALLOW_DATA_ATTR: !1
|
|
15317
|
-
});
|
|
15321
|
+
}) : $v(e);
|
|
15322
|
+
}
|
|
15323
|
+
var ty = [
|
|
15324
|
+
"b",
|
|
15325
|
+
"strong",
|
|
15326
|
+
"i",
|
|
15327
|
+
"em",
|
|
15328
|
+
"u",
|
|
15329
|
+
"s",
|
|
15330
|
+
"span",
|
|
15331
|
+
"sub",
|
|
15332
|
+
"sup",
|
|
15333
|
+
"mark",
|
|
15334
|
+
"code",
|
|
15335
|
+
"kbd",
|
|
15336
|
+
"br"
|
|
15337
|
+
], ny = [
|
|
15338
|
+
"class",
|
|
15339
|
+
"style",
|
|
15340
|
+
"title"
|
|
15341
|
+
];
|
|
15342
|
+
function ry(e) {
|
|
15343
|
+
return typeof Yv.sanitize == "function" ? Yv.sanitize(e, {
|
|
15344
|
+
ALLOWED_TAGS: [...ty],
|
|
15345
|
+
ALLOWED_ATTR: [...ny],
|
|
15346
|
+
ALLOW_DATA_ATTR: !1
|
|
15347
|
+
}) : $v(e);
|
|
15318
15348
|
}
|
|
15319
15349
|
//#endregion
|
|
15320
15350
|
//#region src/core/components/IconGlyph.vue?vue&type=script&setup=true&lang.ts
|
|
15321
|
-
var
|
|
15351
|
+
var iy = ["innerHTML"], ay = {
|
|
15322
15352
|
key: 1,
|
|
15323
15353
|
class: "icon-text"
|
|
15324
|
-
},
|
|
15354
|
+
}, oy = /*@__PURE__*/ Ii({
|
|
15325
15355
|
__name: "IconGlyph",
|
|
15326
15356
|
props: { icon: {} },
|
|
15327
15357
|
setup(e) {
|
|
15328
|
-
let t = e, n =
|
|
15358
|
+
let t = e, n = Qs(() => Xv(t.icon)), r = Qs(() => n.value ? ey(t.icon) : "");
|
|
15329
15359
|
return (t, i) => n.value ? (J(), Y("span", {
|
|
15330
15360
|
key: 0,
|
|
15331
15361
|
class: "icon-html",
|
|
15332
15362
|
innerHTML: r.value
|
|
15333
|
-
}, null, 8,
|
|
15363
|
+
}, null, 8, iy)) : (J(), Y("span", ay, U(e.icon), 1));
|
|
15334
15364
|
}
|
|
15335
|
-
}),
|
|
15365
|
+
}), sy = (e, t) => {
|
|
15336
15366
|
let n = e.__vccOpts || e;
|
|
15337
15367
|
for (let [e, r] of t) n[e] = r;
|
|
15338
15368
|
return n;
|
|
15339
|
-
},
|
|
15369
|
+
}, cy = /*#__PURE__*/ sy(oy, [["__scopeId", "data-v-7d3cf5e5"]]), ly = ["innerHTML"], uy = /* @__PURE__ */ Ii({
|
|
15370
|
+
__name: "MsgText",
|
|
15371
|
+
props: { text: {} },
|
|
15372
|
+
setup(e) {
|
|
15373
|
+
let t = e, n = Qs(() => Xv(t.text) ? ry(t.text) : "");
|
|
15374
|
+
return (t, r) => n.value ? (J(), Y("span", {
|
|
15375
|
+
key: 0,
|
|
15376
|
+
class: "msg-rich",
|
|
15377
|
+
innerHTML: n.value
|
|
15378
|
+
}, null, 8, ly)) : (J(), Y(q, { key: 1 }, [_s(U(e.text), 1)], 64));
|
|
15379
|
+
}
|
|
15380
|
+
}), dy = { class: "chat-header" }, fy = { class: "header-left" }, py = { class: "header-icon" }, my = { class: "header-title" }, hy = {
|
|
15340
15381
|
key: 0,
|
|
15341
15382
|
class: "status-dot pulse"
|
|
15342
|
-
},
|
|
15383
|
+
}, gy = ["title"], _y = ["title"], vy = ["data-sid", "onClick"], yy = { class: "hist-title" }, by = { class: "hist-meta" }, xy = ["onClick"], Sy = ["title"], Cy = {
|
|
15343
15384
|
key: 0,
|
|
15344
15385
|
class: "debug-badge"
|
|
15345
|
-
},
|
|
15386
|
+
}, wy = ["title"], Ty = {
|
|
15346
15387
|
key: 0,
|
|
15347
15388
|
class: "more-item-badge"
|
|
15348
|
-
},
|
|
15389
|
+
}, Ey = ["title"], Dy = ["title", "disabled"], Oy = ["title"], ky = /*#__PURE__*/ sy(/* @__PURE__ */ Ii({
|
|
15349
15390
|
__name: "ChatHeader",
|
|
15350
15391
|
props: {
|
|
15351
15392
|
title: {},
|
|
@@ -15360,7 +15401,7 @@ var ey = ["innerHTML"], ty = {
|
|
|
15360
15401
|
},
|
|
15361
15402
|
emits: ["close"],
|
|
15362
15403
|
setup(e) {
|
|
15363
|
-
let t = e, n = E_(), { chat: r, icons: i, messages: a } = n, { state: o, reset: s, clearMessages: c } = r, l = /* @__PURE__ */ wn(!1), u = /* @__PURE__ */ wn(!1), d =
|
|
15404
|
+
let t = e, n = E_(), { chat: r, icons: i, messages: a } = n, { state: o, reset: s, clearMessages: c } = r, l = /* @__PURE__ */ wn(!1), u = /* @__PURE__ */ wn(!1), d = Qs(() => o.messages.length > 0), f = Qs(() => (t.debugLogs?.length ?? 0) > 0);
|
|
15364
15405
|
function p(e) {
|
|
15365
15406
|
let t = Date.now() - e;
|
|
15366
15407
|
return t < 6e4 ? a.justNow : t < 36e5 ? Math.floor(t / 6e4) + a.minutesAgoSuffix : new Date(e).toLocaleString();
|
|
@@ -15371,11 +15412,11 @@ var ey = ["innerHTML"], ty = {
|
|
|
15371
15412
|
function h(e) {
|
|
15372
15413
|
s(), t.onOpenSession?.(e);
|
|
15373
15414
|
}
|
|
15374
|
-
return (t, r) => (J(), Y("div",
|
|
15375
|
-
X("div",
|
|
15376
|
-
X("span",
|
|
15377
|
-
X("span",
|
|
15378
|
-
G(o).loading ? (J(), Y("span",
|
|
15415
|
+
return (t, r) => (J(), Y("div", dy, [
|
|
15416
|
+
X("div", fy, [
|
|
15417
|
+
X("span", py, [Z(cy, { icon: G(i).header }, null, 8, ["icon"])]),
|
|
15418
|
+
X("span", my, [Z(uy, { text: e.title }, null, 8, ["text"])]),
|
|
15419
|
+
G(o).loading ? (J(), Y("span", hy)) : Q("", !0)
|
|
15379
15420
|
]),
|
|
15380
15421
|
X("div", {
|
|
15381
15422
|
class: "header-actions",
|
|
@@ -15394,7 +15435,7 @@ var ey = ["innerHTML"], ty = {
|
|
|
15394
15435
|
fill: "none",
|
|
15395
15436
|
stroke: "currentColor",
|
|
15396
15437
|
"stroke-width": "2"
|
|
15397
|
-
}, [X("path", { d: "M12 5v14M5 12h14" })], -1)]], 8,
|
|
15438
|
+
}, [X("path", { d: "M12 5v14M5 12h14" })], -1)]], 8, gy)) : Q("", !0),
|
|
15398
15439
|
e.sessions ? (J(), Y("button", {
|
|
15399
15440
|
key: 1,
|
|
15400
15441
|
class: H(["action-btn", { active: u.value }]),
|
|
@@ -15414,7 +15455,7 @@ var ey = ["innerHTML"], ty = {
|
|
|
15414
15455
|
X("path", { d: "M3 12a9 9 0 1 0 3-6.7L3 8" }),
|
|
15415
15456
|
X("path", { d: "M3 3v5h5" }),
|
|
15416
15457
|
X("path", { d: "M12 7v5l3 2" })
|
|
15417
|
-
], -1)]], 10,
|
|
15458
|
+
], -1)]], 10, _y)) : Q("", !0),
|
|
15418
15459
|
e.sessions && u.value ? (J(), Y("div", {
|
|
15419
15460
|
key: 2,
|
|
15420
15461
|
class: "cs-history-menu",
|
|
@@ -15424,12 +15465,12 @@ var ey = ["innerHTML"], ty = {
|
|
|
15424
15465
|
class: H(["hist-item", { active: e.currentSessionId === t.sessionId }]),
|
|
15425
15466
|
"data-sid": t.sessionId,
|
|
15426
15467
|
onClick: (e) => h(t.sessionId)
|
|
15427
|
-
}, [X("div",
|
|
15468
|
+
}, [X("div", yy, U(t.title || G(a).sessionFallbackPrefix + t.sessionId.slice(-6)), 1), X("div", by, [X("span", null, U(p(t.lastAccessed)), 1), e.currentSessionId === t.sessionId ? Q("", !0) : (J(), Y("button", {
|
|
15428
15469
|
key: 0,
|
|
15429
15470
|
class: "hist-del",
|
|
15430
15471
|
"data-test": "del-btn",
|
|
15431
15472
|
onClick: yl((n) => e.onRemoveSession?.(t.sessionId), ["stop"])
|
|
15432
|
-
}, "✕", 8,
|
|
15473
|
+
}, "✕", 8, xy))])], 10, vy))), 128))])) : Q("", !0),
|
|
15433
15474
|
X("button", {
|
|
15434
15475
|
class: H(["action-btn more-btn", { active: l.value }]),
|
|
15435
15476
|
title: G(a).more,
|
|
@@ -15457,7 +15498,7 @@ var ey = ["innerHTML"], ty = {
|
|
|
15457
15498
|
cy: "19",
|
|
15458
15499
|
r: "1.6"
|
|
15459
15500
|
})
|
|
15460
|
-
], -1), f.value ? (J(), Y("span",
|
|
15501
|
+
], -1), f.value ? (J(), Y("span", Cy, U(e.debugLogs?.length), 1)) : Q("", !0)], 10, Sy),
|
|
15461
15502
|
l.value ? (J(), Y("div", {
|
|
15462
15503
|
key: 3,
|
|
15463
15504
|
class: "more-menu",
|
|
@@ -15483,8 +15524,8 @@ var ey = ["innerHTML"], ty = {
|
|
|
15483
15524
|
X("path", { d: "M9 18h6" })
|
|
15484
15525
|
], -1),
|
|
15485
15526
|
X("span", null, U(G(a).debugMenu), 1),
|
|
15486
|
-
f.value ? (J(), Y("span",
|
|
15487
|
-
], 8,
|
|
15527
|
+
f.value ? (J(), Y("span", Ty, U(e.debugLogs?.length), 1)) : Q("", !0)
|
|
15528
|
+
], 8, wy),
|
|
15488
15529
|
e.skillAvailable ? (J(), Y("button", {
|
|
15489
15530
|
key: 0,
|
|
15490
15531
|
class: "more-item",
|
|
@@ -15499,7 +15540,7 @@ var ey = ["innerHTML"], ty = {
|
|
|
15499
15540
|
fill: "none",
|
|
15500
15541
|
stroke: "currentColor",
|
|
15501
15542
|
"stroke-width": "2"
|
|
15502
|
-
}, [X("path", { d: "M12 2l2.4 7.4H22l-6 4.4 2.3 7.2L12 16.8 5.7 21l2.3-7.2-6-4.4h7.6z" })], -1), X("span", null, U(G(a).skillMenu), 1)], 8,
|
|
15543
|
+
}, [X("path", { d: "M12 2l2.4 7.4H22l-6 4.4 2.3 7.2L12 16.8 5.7 21l2.3-7.2-6-4.4h7.6z" })], -1), X("span", null, U(G(a).skillMenu), 1)], 8, Ey)) : Q("", !0),
|
|
15503
15544
|
X("button", {
|
|
15504
15545
|
class: "more-item",
|
|
15505
15546
|
title: G(a).clearChat,
|
|
@@ -15514,8 +15555,8 @@ var ey = ["innerHTML"], ty = {
|
|
|
15514
15555
|
fill: "none",
|
|
15515
15556
|
stroke: "currentColor",
|
|
15516
15557
|
"stroke-width": "2"
|
|
15517
|
-
}, [X("polyline", { points: "3 6 5 6 21 6" }), X("path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" })], -1), X("span", null, U(G(a).clearChat), 1)], 8,
|
|
15518
|
-
])) :
|
|
15558
|
+
}, [X("polyline", { points: "3 6 5 6 21 6" }), X("path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" })], -1), X("span", null, U(G(a).clearChat), 1)], 8, Dy)
|
|
15559
|
+
])) : Q("", !0),
|
|
15519
15560
|
e.drawer ? (J(), Y("button", {
|
|
15520
15561
|
key: 4,
|
|
15521
15562
|
class: "action-btn",
|
|
@@ -15528,7 +15569,7 @@ var ey = ["innerHTML"], ty = {
|
|
|
15528
15569
|
fill: "none",
|
|
15529
15570
|
stroke: "currentColor",
|
|
15530
15571
|
"stroke-width": "2"
|
|
15531
|
-
}, [X("path", { d: "M18 6L6 18M6 6l12 12" })], -1)]], 8,
|
|
15572
|
+
}, [X("path", { d: "M18 6L6 18M6 6l12 12" })], -1)]], 8, Oy)) : Q("", !0)
|
|
15532
15573
|
]),
|
|
15533
15574
|
l.value || u.value ? (J(), Y("div", {
|
|
15534
15575
|
key: 0,
|
|
@@ -15536,19 +15577,19 @@ var ey = ["innerHTML"], ty = {
|
|
|
15536
15577
|
onClick: r[9] ||= (e) => {
|
|
15537
15578
|
l.value = !1, u.value = !1;
|
|
15538
15579
|
}
|
|
15539
|
-
})) :
|
|
15580
|
+
})) : Q("", !0)
|
|
15540
15581
|
]));
|
|
15541
15582
|
}
|
|
15542
|
-
}), [["__scopeId", "data-v-
|
|
15583
|
+
}), [["__scopeId", "data-v-0d783fe2"]]), Ay = {
|
|
15543
15584
|
key: 0,
|
|
15544
15585
|
class: "focus-bar"
|
|
15545
|
-
},
|
|
15586
|
+
}, jy = { class: "focus-bar-icon" }, My = { class: "focus-bar-text" }, Ny = {
|
|
15546
15587
|
key: 0,
|
|
15547
15588
|
class: "focus-bar-label"
|
|
15548
|
-
},
|
|
15589
|
+
}, Py = { class: "focus-bar-path" }, Fy = ["title"], Iy = ["title"], Ly = {
|
|
15549
15590
|
key: 0,
|
|
15550
15591
|
class: "focus-edit-row"
|
|
15551
|
-
},
|
|
15592
|
+
}, Ry = ["placeholder"], zy = ["placeholder"], By = /*#__PURE__*/ sy(/* @__PURE__ */ Ii({
|
|
15552
15593
|
__name: "FocusBar",
|
|
15553
15594
|
props: {
|
|
15554
15595
|
getFocus: {},
|
|
@@ -15559,7 +15600,7 @@ var ey = ["innerHTML"], ty = {
|
|
|
15559
15600
|
messages: { default: () => ({ ...b_ }) }
|
|
15560
15601
|
},
|
|
15561
15602
|
setup(e) {
|
|
15562
|
-
let t = e, n =
|
|
15603
|
+
let t = e, n = Qs(() => (t.infoTick?.value, t.getFocus?.())), r = /* @__PURE__ */ wn(!1), i = /* @__PURE__ */ wn(""), a = /* @__PURE__ */ wn("");
|
|
15563
15604
|
function o() {
|
|
15564
15605
|
let e = i.value.trim();
|
|
15565
15606
|
if (!e || !t.onSetFocus) return;
|
|
@@ -15572,46 +15613,46 @@ var ey = ["innerHTML"], ty = {
|
|
|
15572
15613
|
function s() {
|
|
15573
15614
|
t.onClearFocus?.(), r.value = !1;
|
|
15574
15615
|
}
|
|
15575
|
-
return (t, c) => n.value ? (J(), Y("div",
|
|
15576
|
-
X("span",
|
|
15577
|
-
X("span",
|
|
15616
|
+
return (t, c) => n.value ? (J(), Y("div", Ay, [
|
|
15617
|
+
X("span", jy, [Z(cy, { icon: e.icons.focus }, null, 8, ["icon"])]),
|
|
15618
|
+
X("span", My, [n.value.label ? (J(), Y("span", Ny, U(n.value.label), 1)) : Q("", !0), X("code", Py, U(n.value.path), 1)]),
|
|
15578
15619
|
X("button", {
|
|
15579
15620
|
class: "focus-bar-btn",
|
|
15580
15621
|
title: e.messages.switchFocusTitle,
|
|
15581
15622
|
onClick: c[0] ||= (e) => r.value = !r.value
|
|
15582
|
-
}, "▾", 8,
|
|
15623
|
+
}, "▾", 8, Fy),
|
|
15583
15624
|
X("button", {
|
|
15584
15625
|
class: "focus-bar-btn",
|
|
15585
15626
|
title: e.messages.exitFocusTitle,
|
|
15586
15627
|
"data-test": "focus-clear",
|
|
15587
15628
|
onClick: s
|
|
15588
|
-
}, "✕", 8,
|
|
15589
|
-
r.value ? (J(), Y("div",
|
|
15629
|
+
}, "✕", 8, Iy),
|
|
15630
|
+
r.value ? (J(), Y("div", Ly, [
|
|
15590
15631
|
Zr(X("input", {
|
|
15591
15632
|
"onUpdate:modelValue": c[1] ||= (e) => i.value = e,
|
|
15592
15633
|
class: "focus-edit-input",
|
|
15593
15634
|
placeholder: e.messages.focusPathPlaceholder,
|
|
15594
15635
|
"data-test": "focus-path-input",
|
|
15595
15636
|
onKeyup: xl(o, ["enter"])
|
|
15596
|
-
}, null, 40,
|
|
15637
|
+
}, null, 40, Ry), [[gl, i.value]]),
|
|
15597
15638
|
Zr(X("input", {
|
|
15598
15639
|
"onUpdate:modelValue": c[2] ||= (e) => a.value = e,
|
|
15599
15640
|
class: "focus-edit-input focus-edit-label",
|
|
15600
15641
|
placeholder: e.messages.focusLabelPlaceholder,
|
|
15601
15642
|
onKeyup: xl(o, ["enter"])
|
|
15602
|
-
}, null, 40,
|
|
15643
|
+
}, null, 40, zy), [[gl, a.value]]),
|
|
15603
15644
|
X("button", {
|
|
15604
15645
|
class: "focus-edit-go",
|
|
15605
15646
|
"data-test": "focus-submit",
|
|
15606
15647
|
onClick: o
|
|
15607
15648
|
}, U(e.messages.focusSubmit), 1)
|
|
15608
|
-
])) :
|
|
15609
|
-
])) :
|
|
15649
|
+
])) : Q("", !0)
|
|
15650
|
+
])) : Q("", !0);
|
|
15610
15651
|
}
|
|
15611
|
-
}), [["__scopeId", "data-v-4904b0b4"]]),
|
|
15652
|
+
}), [["__scopeId", "data-v-4904b0b4"]]), Vy = { class: "reasoning-toggle" }, Hy = {
|
|
15612
15653
|
key: 0,
|
|
15613
15654
|
class: "reasoning-body"
|
|
15614
|
-
},
|
|
15655
|
+
}, Uy = /*#__PURE__*/ sy(/* @__PURE__ */ Ii({
|
|
15615
15656
|
__name: "MessageReasoning",
|
|
15616
15657
|
props: {
|
|
15617
15658
|
text: {},
|
|
@@ -15628,13 +15669,13 @@ var ey = ["innerHTML"], ty = {
|
|
|
15628
15669
|
}, [
|
|
15629
15670
|
n[1] ||= X("span", { class: "status-dot ok" }, null, -1),
|
|
15630
15671
|
n[2] ||= X("span", { class: "reasoning-title" }, "思考过程", -1),
|
|
15631
|
-
X("span",
|
|
15632
|
-
]), e.expanded ? (J(), Y("div",
|
|
15672
|
+
X("span", Vy, U(e.expanded ? "收起" : "展开"), 1)
|
|
15673
|
+
]), e.expanded ? (J(), Y("div", Hy, U(e.text), 1)) : Q("", !0)], 2)) : Q("", !0);
|
|
15633
15674
|
}
|
|
15634
|
-
}), [["__scopeId", "data-v-dbe90e42"]]),
|
|
15675
|
+
}), [["__scopeId", "data-v-dbe90e42"]]), Wy = ["open"], Gy = { class: "sub-reason-head" }, Ky = {
|
|
15635
15676
|
key: 0,
|
|
15636
15677
|
class: "sub-reason-trunc"
|
|
15637
|
-
},
|
|
15678
|
+
}, qy = ["title"], Jy = /*#__PURE__*/ sy(/* @__PURE__ */ Ii({
|
|
15638
15679
|
__name: "SubReasonDetails",
|
|
15639
15680
|
props: {
|
|
15640
15681
|
subReason: {},
|
|
@@ -15647,10 +15688,10 @@ var ey = ["innerHTML"], ty = {
|
|
|
15647
15688
|
ri(() => t.subReason.length, async () => {
|
|
15648
15689
|
t.status === "running" && r.value && n.value && (await cr(), n.value.scrollTop = n.value.scrollHeight);
|
|
15649
15690
|
});
|
|
15650
|
-
let i =
|
|
15691
|
+
let i = Qs(() => t.subReasonFull?.length ?? t.subReason.length), a = Qs(() => {
|
|
15651
15692
|
let e = i.value;
|
|
15652
15693
|
return e >= 1e5 ? `${Math.round(e / 1e3)}k` : `${e}`;
|
|
15653
|
-
}), o =
|
|
15694
|
+
}), o = Qs(() => (t.subReasonFull?.length ?? t.subReason.length) > t.subReason.length), s = /* @__PURE__ */ wn(!1);
|
|
15654
15695
|
async function c() {
|
|
15655
15696
|
try {
|
|
15656
15697
|
await navigator.clipboard.writeText(t.subReasonFull ?? t.subReason), s.value = !0, setTimeout(() => {
|
|
@@ -15662,56 +15703,56 @@ var ey = ["innerHTML"], ty = {
|
|
|
15662
15703
|
class: "step-sub-reason",
|
|
15663
15704
|
open: r.value,
|
|
15664
15705
|
onToggle: i[0] ||= (e) => r.value = e.target.open
|
|
15665
|
-
}, [X("summary",
|
|
15706
|
+
}, [X("summary", Gy, [
|
|
15666
15707
|
X("span", { class: H(["status-dot sm", e.status === "running" ? "running" : "ok"]) }, null, 2),
|
|
15667
15708
|
X("span", { class: H(["sub-reason-label", { pulsing: e.status === "running" }]) }, U(e.status === "running" ? `${e.messages.thinkingCountPrefix}${a.value}${e.messages.charCountSuffix}` : e.messages.reasoningTitle), 3),
|
|
15668
|
-
o.value ? (J(), Y("span",
|
|
15709
|
+
o.value ? (J(), Y("span", Ky, U(e.messages.truncatedNotePrefix) + U(e.subReason.length) + U(e.messages.truncatedNoteSuffix), 1)) : Q("", !0),
|
|
15669
15710
|
X("button", {
|
|
15670
15711
|
type: "button",
|
|
15671
15712
|
class: H(["sub-reason-copy", { copied: s.value }]),
|
|
15672
15713
|
title: o.value ? e.messages.copyThinkingTruncTitle : e.messages.copyThinking,
|
|
15673
15714
|
onClick: yl(c, ["stop", "prevent"])
|
|
15674
|
-
}, U(s.value ? e.messages.copied : e.messages.copy), 11,
|
|
15715
|
+
}, U(s.value ? e.messages.copied : e.messages.copy), 11, qy)
|
|
15675
15716
|
]), X("div", {
|
|
15676
15717
|
ref_key: "bodyRef",
|
|
15677
15718
|
ref: n,
|
|
15678
15719
|
class: "sub-reason-body"
|
|
15679
|
-
}, U(o.value ? "…(前面已截断)\n" : "") + U(e.subReason), 513)], 40,
|
|
15720
|
+
}, U(o.value ? "…(前面已截断)\n" : "") + U(e.subReason), 513)], 40, Wy));
|
|
15680
15721
|
}
|
|
15681
|
-
}), [["__scopeId", "data-v-282d02cd"]]),
|
|
15722
|
+
}), [["__scopeId", "data-v-282d02cd"]]), Yy = {
|
|
15682
15723
|
key: 0,
|
|
15683
15724
|
class: "steps-block"
|
|
15684
|
-
},
|
|
15725
|
+
}, Xy = { class: "step-head" }, Zy = { class: "step-name" }, Qy = ["title"], $y = {
|
|
15685
15726
|
key: 1,
|
|
15686
15727
|
class: "step-count"
|
|
15687
|
-
},
|
|
15728
|
+
}, eb = {
|
|
15688
15729
|
key: 2,
|
|
15689
15730
|
class: "step-duration"
|
|
15690
|
-
},
|
|
15731
|
+
}, tb = ["onClick"], nb = {
|
|
15691
15732
|
key: 0,
|
|
15692
15733
|
class: "step-detail"
|
|
15693
|
-
},
|
|
15734
|
+
}, rb = {
|
|
15694
15735
|
key: 0,
|
|
15695
15736
|
class: "step-detail-call-label"
|
|
15696
|
-
},
|
|
15737
|
+
}, ib = {
|
|
15697
15738
|
key: 1,
|
|
15698
15739
|
class: "step-detail-section"
|
|
15699
|
-
},
|
|
15740
|
+
}, ab = { class: "step-detail-head" }, ob = ["onClick"], sb = { class: "step-detail-pre" }, cb = {
|
|
15700
15741
|
key: 2,
|
|
15701
15742
|
class: "step-detail-section"
|
|
15702
|
-
},
|
|
15743
|
+
}, lb = { class: "step-detail-head" }, ub = ["onClick"], db = {
|
|
15703
15744
|
key: 3,
|
|
15704
15745
|
class: "step-detail-empty"
|
|
15705
|
-
},
|
|
15746
|
+
}, fb = {
|
|
15706
15747
|
key: 2,
|
|
15707
15748
|
class: "step-children"
|
|
15708
|
-
},
|
|
15749
|
+
}, pb = { class: "step-children-label" }, mb = { class: "step-name" }, hb = {
|
|
15709
15750
|
key: 0,
|
|
15710
15751
|
class: "step-count"
|
|
15711
|
-
},
|
|
15752
|
+
}, gb = {
|
|
15712
15753
|
key: 1,
|
|
15713
15754
|
class: "step-status running"
|
|
15714
|
-
},
|
|
15755
|
+
}, _b = 2e3, vb = 4e3, yb = /*#__PURE__*/ sy(/* @__PURE__ */ Ii({
|
|
15715
15756
|
__name: "MessageSteps",
|
|
15716
15757
|
props: {
|
|
15717
15758
|
steps: {},
|
|
@@ -15751,7 +15792,7 @@ var ey = ["innerHTML"], ty = {
|
|
|
15751
15792
|
subReasonFull: e.subReasonFull
|
|
15752
15793
|
}));
|
|
15753
15794
|
}
|
|
15754
|
-
let i =
|
|
15795
|
+
let i = Qs(() => r(t.steps));
|
|
15755
15796
|
function a(e) {
|
|
15756
15797
|
return e.startsWith("use_");
|
|
15757
15798
|
}
|
|
@@ -15790,8 +15831,8 @@ var ey = ["innerHTML"], ty = {
|
|
|
15790
15831
|
} catch {
|
|
15791
15832
|
n = String(e);
|
|
15792
15833
|
}
|
|
15793
|
-
return n.length >
|
|
15794
|
-
text: n.slice(0,
|
|
15834
|
+
return n.length > _b ? {
|
|
15835
|
+
text: n.slice(0, _b) + t.messages.displayTruncatedSuffix,
|
|
15795
15836
|
truncated: !0
|
|
15796
15837
|
} : {
|
|
15797
15838
|
text: n,
|
|
@@ -15802,8 +15843,8 @@ var ey = ["innerHTML"], ty = {
|
|
|
15802
15843
|
return e == null || e === "" ? {
|
|
15803
15844
|
text: "",
|
|
15804
15845
|
truncated: !1
|
|
15805
|
-
} : e.length >
|
|
15806
|
-
text: e.slice(0,
|
|
15846
|
+
} : e.length > vb ? {
|
|
15847
|
+
text: e.slice(0, vb) + t.messages.displayTruncatedSuffix,
|
|
15807
15848
|
truncated: !0
|
|
15808
15849
|
} : {
|
|
15809
15850
|
text: e,
|
|
@@ -15823,45 +15864,45 @@ var ey = ["innerHTML"], ty = {
|
|
|
15823
15864
|
}
|
|
15824
15865
|
__(e);
|
|
15825
15866
|
}
|
|
15826
|
-
return (t, s) => e.steps.length ? (J(), Y("div",
|
|
15867
|
+
return (t, s) => e.steps.length ? (J(), Y("div", Yy, [(J(!0), Y(q, null, ca(i.value, (t, i) => (J(), Y("div", {
|
|
15827
15868
|
key: i,
|
|
15828
15869
|
class: H(["step-item", t.status])
|
|
15829
15870
|
}, [
|
|
15830
|
-
X("div",
|
|
15871
|
+
X("div", Xy, [
|
|
15831
15872
|
X("span", { class: H(["status-dot", t.status]) }, null, 2),
|
|
15832
|
-
X("span",
|
|
15873
|
+
X("span", Zy, U(t.name), 1),
|
|
15833
15874
|
a(t.name) ? (J(), Y("span", {
|
|
15834
15875
|
key: 0,
|
|
15835
15876
|
class: "subagent-badge",
|
|
15836
15877
|
title: e.messages.subagentBadgeTitle
|
|
15837
|
-
}, [
|
|
15838
|
-
t.count > 1 ? (J(), Y("span",
|
|
15839
|
-
X("span", { class: H(["step-status", t.status]) },
|
|
15840
|
-
t.durationMs != null && t.status !== "running" ? (J(), Y("span",
|
|
15878
|
+
}, [Z(cy, { icon: e.icons.subagent }, null, 8, ["icon"]), _s(" " + U(e.messages.subagentBadge), 1)], 8, Qy)) : Q("", !0),
|
|
15879
|
+
t.count > 1 ? (J(), Y("span", $y, "×" + U(t.count), 1)) : Q("", !0),
|
|
15880
|
+
X("span", { class: H(["step-status", t.status]) }, [Z(uy, { text: n(t.status) }, null, 8, ["text"])], 2),
|
|
15881
|
+
t.durationMs != null && t.status !== "running" ? (J(), Y("span", eb, U(o(t.durationMs)), 1)) : Q("", !0),
|
|
15841
15882
|
f(t.calls) ? (J(), Y("button", {
|
|
15842
15883
|
key: 3,
|
|
15843
15884
|
type: "button",
|
|
15844
15885
|
class: H(["step-detail-toggle", { open: u.has(i) }]),
|
|
15845
15886
|
onClick: (e) => d(i)
|
|
15846
|
-
}, U(u.has(i) ? e.messages.collapse : e.messages.expand), 11,
|
|
15887
|
+
}, U(u.has(i) ? e.messages.collapse : e.messages.expand), 11, tb)) : Q("", !0)
|
|
15847
15888
|
]),
|
|
15848
|
-
u.has(i) && t.calls?.length ? (J(), Y("div",
|
|
15889
|
+
u.has(i) && t.calls?.length ? (J(), Y("div", nb, [(J(!0), Y(q, null, ca(t.calls, (n, r) => (J(), Y("div", {
|
|
15849
15890
|
key: r,
|
|
15850
15891
|
class: "step-detail-call"
|
|
15851
15892
|
}, [
|
|
15852
|
-
t.count > 1 ? (J(), Y("div",
|
|
15853
|
-
p(n.args).text ? (J(), Y("div",
|
|
15893
|
+
t.count > 1 ? (J(), Y("div", rb, U(e.messages.nthCallPrefix) + U(r + 1) + U(e.messages.nthCallSuffix), 1)) : Q("", !0),
|
|
15894
|
+
p(n.args).text ? (J(), Y("div", ib, [X("div", ab, [_s(U(e.messages.argsLabel), 1), X("button", {
|
|
15854
15895
|
type: "button",
|
|
15855
15896
|
class: "step-detail-copy",
|
|
15856
15897
|
onClick: (e) => h(p(n.args).text, p(n.args).truncated, n.args)
|
|
15857
|
-
}, U(e.messages.copy), 9,
|
|
15858
|
-
n.status !== "running" && m(n.result).text ? (J(), Y("div",
|
|
15898
|
+
}, U(e.messages.copy), 9, ob)]), X("pre", sb, U(p(n.args).text), 1)])) : Q("", !0),
|
|
15899
|
+
n.status !== "running" && m(n.result).text ? (J(), Y("div", cb, [X("div", lb, [_s(U(e.messages.resultLabel), 1), X("button", {
|
|
15859
15900
|
type: "button",
|
|
15860
15901
|
class: "step-detail-copy",
|
|
15861
15902
|
onClick: (e) => h(m(n.result).text, m(n.result).truncated, n.result)
|
|
15862
|
-
}, U(e.messages.copy), 9,
|
|
15863
|
-
]))), 128))])) :
|
|
15864
|
-
t.subReason ? (J(), os(
|
|
15903
|
+
}, U(e.messages.copy), 9, ub)]), X("pre", { class: H(["step-detail-pre", { err: n.status === "error" }]) }, U(m(n.result).text), 3)])) : n.status !== "running" && !m(n.result).text ? (J(), Y("div", db, U(e.messages.noResult), 1)) : Q("", !0)
|
|
15904
|
+
]))), 128))])) : Q("", !0),
|
|
15905
|
+
t.subReason ? (J(), os(Jy, {
|
|
15865
15906
|
key: 1,
|
|
15866
15907
|
"sub-reason": t.subReason,
|
|
15867
15908
|
"sub-reason-full": t.subReasonFull,
|
|
@@ -15872,22 +15913,22 @@ var ey = ["innerHTML"], ty = {
|
|
|
15872
15913
|
"sub-reason-full",
|
|
15873
15914
|
"status",
|
|
15874
15915
|
"messages"
|
|
15875
|
-
])) :
|
|
15876
|
-
t.children && t.children.length ? (J(), Y("div",
|
|
15916
|
+
])) : Q("", !0),
|
|
15917
|
+
t.children && t.children.length ? (J(), Y("div", fb, [X("div", pb, [Z(cy, { icon: e.icons.subagentProgress }, null, 8, ["icon"]), _s(" " + U(e.messages.subagentProgress), 1)]), (J(!0), Y(q, null, ca(r(t.children), (e, t) => (J(), Y("div", {
|
|
15877
15918
|
key: t,
|
|
15878
15919
|
class: H(["step-child", e.status])
|
|
15879
15920
|
}, [
|
|
15880
15921
|
X("span", { class: H(["status-dot sm", e.status]) }, null, 2),
|
|
15881
|
-
X("span",
|
|
15882
|
-
e.count > 1 ? (J(), Y("span",
|
|
15883
|
-
e.status === "running" ? (J(), Y("span",
|
|
15884
|
-
], 2))), 128))])) :
|
|
15885
|
-
], 2))), 128))])) :
|
|
15922
|
+
X("span", mb, U(e.name), 1),
|
|
15923
|
+
e.count > 1 ? (J(), Y("span", hb, "×" + U(e.count), 1)) : Q("", !0),
|
|
15924
|
+
e.status === "running" ? (J(), Y("span", gb, "…")) : Q("", !0)
|
|
15925
|
+
], 2))), 128))])) : Q("", !0)
|
|
15926
|
+
], 2))), 128))])) : Q("", !0);
|
|
15886
15927
|
}
|
|
15887
|
-
}), [["__scopeId", "data-v-
|
|
15928
|
+
}), [["__scopeId", "data-v-95a48c0c"]]);
|
|
15888
15929
|
//#endregion
|
|
15889
15930
|
//#region node_modules/marked/lib/marked.esm.js
|
|
15890
|
-
function
|
|
15931
|
+
function bb() {
|
|
15891
15932
|
return {
|
|
15892
15933
|
async: !1,
|
|
15893
15934
|
breaks: !1,
|
|
@@ -15901,35 +15942,35 @@ function mb() {
|
|
|
15901
15942
|
walkTokens: null
|
|
15902
15943
|
};
|
|
15903
15944
|
}
|
|
15904
|
-
var
|
|
15905
|
-
function
|
|
15906
|
-
|
|
15945
|
+
var xb = bb();
|
|
15946
|
+
function Sb(e) {
|
|
15947
|
+
xb = e;
|
|
15907
15948
|
}
|
|
15908
|
-
var
|
|
15909
|
-
function
|
|
15949
|
+
var Cb = { exec: () => null };
|
|
15950
|
+
function wb(e) {
|
|
15910
15951
|
let t = [];
|
|
15911
15952
|
return (n) => {
|
|
15912
15953
|
let r = Math.max(0, Math.min(3, n - 1)), i = t[r];
|
|
15913
15954
|
return i || (i = e(r), t[r] = i), i;
|
|
15914
15955
|
};
|
|
15915
15956
|
}
|
|
15916
|
-
function
|
|
15957
|
+
function Tb(e, t = "") {
|
|
15917
15958
|
let n = typeof e == "string" ? e : e.source, r = {
|
|
15918
15959
|
replace: (e, t) => {
|
|
15919
15960
|
let i = typeof t == "string" ? t : t.source;
|
|
15920
|
-
return i = i.replace(
|
|
15961
|
+
return i = i.replace(Db.caret, "$1"), n = n.replace(e, i), r;
|
|
15921
15962
|
},
|
|
15922
15963
|
getRegex: () => new RegExp(n, t)
|
|
15923
15964
|
};
|
|
15924
15965
|
return r;
|
|
15925
15966
|
}
|
|
15926
|
-
var
|
|
15967
|
+
var Eb = ((e = "") => {
|
|
15927
15968
|
try {
|
|
15928
15969
|
return !!RegExp("(?<=1)(?<!1)" + e);
|
|
15929
15970
|
} catch {
|
|
15930
15971
|
return !1;
|
|
15931
15972
|
}
|
|
15932
|
-
})(),
|
|
15973
|
+
})(), Db = {
|
|
15933
15974
|
codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm,
|
|
15934
15975
|
outputLinkReplace: /\\([\[\]])/g,
|
|
15935
15976
|
indentCodeCompensation: /^(\s+)(?:```)/,
|
|
@@ -15980,121 +16021,121 @@ var bb = ((e = "") => {
|
|
|
15980
16021
|
notSpaceStart: /^\S*/,
|
|
15981
16022
|
endingNewline: /\n$/,
|
|
15982
16023
|
listItemRegex: (e) => RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),
|
|
15983
|
-
nextBulletRegex:
|
|
15984
|
-
hrRegex:
|
|
15985
|
-
fencesBeginRegex:
|
|
15986
|
-
headingBeginRegex:
|
|
15987
|
-
htmlBeginRegex:
|
|
15988
|
-
blockquoteBeginRegex:
|
|
15989
|
-
},
|
|
15990
|
-
blockquote:
|
|
15991
|
-
code:
|
|
15992
|
-
def:
|
|
15993
|
-
fences:
|
|
15994
|
-
heading:
|
|
15995
|
-
hr:
|
|
15996
|
-
html:
|
|
15997
|
-
lheading:
|
|
15998
|
-
list:
|
|
15999
|
-
newline:
|
|
16000
|
-
paragraph:
|
|
16001
|
-
table:
|
|
16002
|
-
text:
|
|
16003
|
-
},
|
|
16004
|
-
...
|
|
16005
|
-
lheading:
|
|
16006
|
-
table:
|
|
16007
|
-
paragraph:
|
|
16008
|
-
},
|
|
16009
|
-
...
|
|
16010
|
-
html:
|
|
16024
|
+
nextBulletRegex: wb((e) => RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),
|
|
16025
|
+
hrRegex: wb((e) => RegExp(`^ {0,${e}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),
|
|
16026
|
+
fencesBeginRegex: wb((e) => RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),
|
|
16027
|
+
headingBeginRegex: wb((e) => RegExp(`^ {0,${e}}#`)),
|
|
16028
|
+
htmlBeginRegex: wb((e) => RegExp(`^ {0,${e}}<(?:[a-z].*>|!--)`, "i")),
|
|
16029
|
+
blockquoteBeginRegex: wb((e) => RegExp(`^ {0,${e}}>`))
|
|
16030
|
+
}, Ob = /^(?:[ \t]*(?:\n|$))+/, kb = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Ab = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, jb = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Mb = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, Nb = / {0,3}(?:[*+-]|\d{1,9}[.)])/, Pb = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, Fb = Tb(Pb).replace(/bull/g, Nb).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), Ib = Tb(Pb).replace(/bull/g, Nb).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), Lb = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Rb = /^[^\n]+/, zb = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, Bb = Tb(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", zb).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Vb = Tb(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g, Nb).getRegex(), Hb = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", Ub = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Wb = Tb("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n+|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n+|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n+|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", Ub).replace("tag", Hb).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), Gb = (e) => Tb(Lb).replace("hr", jb).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", e).replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Hb).getRegex(), Kb = Gb(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/), qb = Gb(/ {0,3}(?:[*+-]|\d{1,9}[.)])[ \t]+[^ \t\n]/), Jb = {
|
|
16031
|
+
blockquote: Tb(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", qb).getRegex(),
|
|
16032
|
+
code: kb,
|
|
16033
|
+
def: Bb,
|
|
16034
|
+
fences: Ab,
|
|
16035
|
+
heading: Mb,
|
|
16036
|
+
hr: jb,
|
|
16037
|
+
html: Wb,
|
|
16038
|
+
lheading: Fb,
|
|
16039
|
+
list: Vb,
|
|
16040
|
+
newline: Ob,
|
|
16041
|
+
paragraph: Kb,
|
|
16042
|
+
table: Cb,
|
|
16043
|
+
text: Rb
|
|
16044
|
+
}, Yb = Tb("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", jb).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Hb).getRegex(), Xb = {
|
|
16045
|
+
...Jb,
|
|
16046
|
+
lheading: Ib,
|
|
16047
|
+
table: Yb,
|
|
16048
|
+
paragraph: Tb(Lb).replace("hr", jb).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Yb).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Hb).getRegex()
|
|
16049
|
+
}, Zb = {
|
|
16050
|
+
...Jb,
|
|
16051
|
+
html: Tb("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment", Ub).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
|
|
16011
16052
|
def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
|
|
16012
16053
|
heading: /^(#{1,6})(.*)(?:\n+|$)/,
|
|
16013
|
-
fences:
|
|
16054
|
+
fences: Cb,
|
|
16014
16055
|
lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
|
|
16015
|
-
paragraph:
|
|
16016
|
-
},
|
|
16017
|
-
_backpedal:
|
|
16018
|
-
anyPunctuation:
|
|
16019
|
-
autolink:
|
|
16020
|
-
blockSkip:
|
|
16021
|
-
br:
|
|
16022
|
-
code:
|
|
16023
|
-
del:
|
|
16024
|
-
delLDelim:
|
|
16025
|
-
delRDelim:
|
|
16026
|
-
emStrongLDelim:
|
|
16027
|
-
emStrongRDelimAst:
|
|
16028
|
-
emStrongRDelimUnd:
|
|
16029
|
-
escape:
|
|
16030
|
-
link:
|
|
16031
|
-
nolink:
|
|
16032
|
-
punctuation:
|
|
16033
|
-
reflink:
|
|
16034
|
-
reflinkSearch:
|
|
16035
|
-
tag:
|
|
16036
|
-
text:
|
|
16037
|
-
url:
|
|
16038
|
-
},
|
|
16039
|
-
...
|
|
16040
|
-
link:
|
|
16041
|
-
reflink:
|
|
16042
|
-
},
|
|
16043
|
-
...
|
|
16044
|
-
emStrongRDelimAst:
|
|
16045
|
-
emStrongLDelim:
|
|
16046
|
-
delLDelim:
|
|
16047
|
-
delRDelim:
|
|
16048
|
-
url:
|
|
16056
|
+
paragraph: Tb(Lb).replace("hr", jb).replace("heading", " *#{1,6} *[^\n]").replace("lheading", Fb).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
|
|
16057
|
+
}, Qb = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, $b = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, ex = /^( {2,}|\\)\n(?!\s*$)/, tx = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, nx = /[\p{P}\p{S}]/u, rx = /[\s\p{P}\p{S}]/u, ix = /[^\s\p{P}\p{S}]/u, ax = Tb(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, rx).getRegex(), ox = /(?!~)[\p{P}\p{S}]/u, sx = /(?!~)[\s\p{P}\p{S}]/u, cx = /(?:[^\s\p{P}\p{S}]|~)/u, lx = Tb(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", Eb ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), ux = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, dx = Tb(ux, "u").replace(/punct/g, nx).getRegex(), fx = Tb(ux, "u").replace(/punct/g, ox).getRegex(), px = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", mx = Tb(px, "gu").replace(/notPunctSpace/g, ix).replace(/punctSpace/g, rx).replace(/punct/g, nx).getRegex(), hx = Tb(px, "gu").replace(/notPunctSpace/g, cx).replace(/punctSpace/g, sx).replace(/punct/g, ox).getRegex(), gx = Tb("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, ix).replace(/punctSpace/g, rx).replace(/punct/g, nx).getRegex(), _x = Tb(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, nx).getRegex(), vx = Tb("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", "gu").replace(/notPunctSpace/g, ix).replace(/punctSpace/g, rx).replace(/punct/g, nx).getRegex(), yx = Tb(/\\(punct)/, "gu").replace(/punct/g, nx).getRegex(), bx = Tb(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), xx = Tb(Ub).replace("(?:-->|$)", "-->").getRegex(), Sx = Tb("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", xx).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), Cx = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/, wx = Tb(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", Cx).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Tx = Tb(/^!?\[(label)\]\[(ref)\]/).replace("label", Cx).replace("ref", zb).getRegex(), Ex = Tb(/^!?\[(ref)\](?:\[\])?/).replace("ref", zb).getRegex(), Dx = Tb("reflink|nolink(?!\\()", "g").replace("reflink", Tx).replace("nolink", Ex).getRegex(), Ox = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, kx = {
|
|
16058
|
+
_backpedal: Cb,
|
|
16059
|
+
anyPunctuation: yx,
|
|
16060
|
+
autolink: bx,
|
|
16061
|
+
blockSkip: lx,
|
|
16062
|
+
br: ex,
|
|
16063
|
+
code: $b,
|
|
16064
|
+
del: Cb,
|
|
16065
|
+
delLDelim: Cb,
|
|
16066
|
+
delRDelim: Cb,
|
|
16067
|
+
emStrongLDelim: dx,
|
|
16068
|
+
emStrongRDelimAst: mx,
|
|
16069
|
+
emStrongRDelimUnd: gx,
|
|
16070
|
+
escape: Qb,
|
|
16071
|
+
link: wx,
|
|
16072
|
+
nolink: Ex,
|
|
16073
|
+
punctuation: ax,
|
|
16074
|
+
reflink: Tx,
|
|
16075
|
+
reflinkSearch: Dx,
|
|
16076
|
+
tag: Sx,
|
|
16077
|
+
text: tx,
|
|
16078
|
+
url: Cb
|
|
16079
|
+
}, Ax = {
|
|
16080
|
+
...kx,
|
|
16081
|
+
link: Tb(/^!?\[(label)\]\((.*?)\)/).replace("label", Cx).getRegex(),
|
|
16082
|
+
reflink: Tb(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", Cx).getRegex()
|
|
16083
|
+
}, jx = {
|
|
16084
|
+
...kx,
|
|
16085
|
+
emStrongRDelimAst: hx,
|
|
16086
|
+
emStrongLDelim: fx,
|
|
16087
|
+
delLDelim: _x,
|
|
16088
|
+
delRDelim: vx,
|
|
16089
|
+
url: Tb(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", Ox).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
|
|
16049
16090
|
_backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
|
|
16050
16091
|
del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,
|
|
16051
|
-
text:
|
|
16052
|
-
},
|
|
16053
|
-
...
|
|
16054
|
-
br:
|
|
16055
|
-
text:
|
|
16056
|
-
},
|
|
16057
|
-
normal:
|
|
16058
|
-
gfm:
|
|
16059
|
-
pedantic:
|
|
16060
|
-
},
|
|
16061
|
-
normal:
|
|
16062
|
-
gfm:
|
|
16063
|
-
breaks:
|
|
16064
|
-
pedantic:
|
|
16065
|
-
},
|
|
16092
|
+
text: Tb(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", Ox).getRegex()
|
|
16093
|
+
}, Mx = {
|
|
16094
|
+
...jx,
|
|
16095
|
+
br: Tb(ex).replace("{2,}", "*").getRegex(),
|
|
16096
|
+
text: Tb(jx.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
|
|
16097
|
+
}, Nx = {
|
|
16098
|
+
normal: Jb,
|
|
16099
|
+
gfm: Xb,
|
|
16100
|
+
pedantic: Zb
|
|
16101
|
+
}, Px = {
|
|
16102
|
+
normal: kx,
|
|
16103
|
+
gfm: jx,
|
|
16104
|
+
breaks: Mx,
|
|
16105
|
+
pedantic: Ax
|
|
16106
|
+
}, Fx = {
|
|
16066
16107
|
"&": "&",
|
|
16067
16108
|
"<": "<",
|
|
16068
16109
|
">": ">",
|
|
16069
16110
|
"\"": """,
|
|
16070
16111
|
"'": "'"
|
|
16071
|
-
},
|
|
16072
|
-
function
|
|
16112
|
+
}, Ix = (e) => Fx[e];
|
|
16113
|
+
function Lx(e, t) {
|
|
16073
16114
|
if (t) {
|
|
16074
|
-
if (
|
|
16075
|
-
} else if (
|
|
16115
|
+
if (Db.escapeTest.test(e)) return e.replace(Db.escapeReplace, Ix);
|
|
16116
|
+
} else if (Db.escapeTestNoEncode.test(e)) return e.replace(Db.escapeReplaceNoEncode, Ix);
|
|
16076
16117
|
return e;
|
|
16077
16118
|
}
|
|
16078
|
-
function
|
|
16119
|
+
function Rx(e) {
|
|
16079
16120
|
try {
|
|
16080
|
-
e = encodeURI(e).replace(
|
|
16121
|
+
e = encodeURI(e).replace(Db.percentDecode, "%");
|
|
16081
16122
|
} catch {
|
|
16082
16123
|
return null;
|
|
16083
16124
|
}
|
|
16084
16125
|
return e;
|
|
16085
16126
|
}
|
|
16086
|
-
function
|
|
16087
|
-
let n = e.replace(
|
|
16127
|
+
function zx(e, t) {
|
|
16128
|
+
let n = e.replace(Db.findPipe, (e, t, n) => {
|
|
16088
16129
|
let r = !1, i = t;
|
|
16089
16130
|
for (; --i >= 0 && n[i] === "\\";) r = !r;
|
|
16090
16131
|
return r ? "|" : " |";
|
|
16091
|
-
}).split(
|
|
16132
|
+
}).split(Db.splitPipe), r = 0;
|
|
16092
16133
|
if (n[0].trim() || n.shift(), n.length > 0 && !n.at(-1)?.trim() && n.pop(), t) if (n.length > t) n.splice(t);
|
|
16093
16134
|
else for (; n.length < t;) n.push("");
|
|
16094
|
-
for (; r < n.length; r++) n[r] = n[r].trim().replace(
|
|
16135
|
+
for (; r < n.length; r++) n[r] = n[r].trim().replace(Db.slashPipe, "|");
|
|
16095
16136
|
return n;
|
|
16096
16137
|
}
|
|
16097
|
-
function
|
|
16138
|
+
function Bx(e, t, n) {
|
|
16098
16139
|
let r = e.length;
|
|
16099
16140
|
if (r === 0) return "";
|
|
16100
16141
|
let i = 0;
|
|
@@ -16106,12 +16147,12 @@ function Px(e, t, n) {
|
|
|
16106
16147
|
}
|
|
16107
16148
|
return e.slice(0, r - i);
|
|
16108
16149
|
}
|
|
16109
|
-
function
|
|
16150
|
+
function Vx(e) {
|
|
16110
16151
|
let t = e.split("\n"), n = t.length - 1;
|
|
16111
|
-
for (; n >= 0 &&
|
|
16152
|
+
for (; n >= 0 && Db.blankLine.test(t[n]);) n--;
|
|
16112
16153
|
return t.length - n <= 2 ? e : t.slice(0, n + 1).join("\n");
|
|
16113
16154
|
}
|
|
16114
|
-
function
|
|
16155
|
+
function Hx(e, t) {
|
|
16115
16156
|
if (e.indexOf(t[1]) === -1) return -1;
|
|
16116
16157
|
let n = 0;
|
|
16117
16158
|
for (let r = 0; r < e.length; r++) if (e[r] === "\\") r++;
|
|
@@ -16119,7 +16160,7 @@ function Ix(e, t) {
|
|
|
16119
16160
|
else if (e[r] === t[1] && (n--, n < 0)) return r;
|
|
16120
16161
|
return n > 0 ? -2 : -1;
|
|
16121
16162
|
}
|
|
16122
|
-
function
|
|
16163
|
+
function Ux(e, t = 0) {
|
|
16123
16164
|
let n = t, r = "";
|
|
16124
16165
|
for (let t of e) if (t === " ") {
|
|
16125
16166
|
let e = 4 - n % 4;
|
|
@@ -16127,7 +16168,7 @@ function Lx(e, t = 0) {
|
|
|
16127
16168
|
} else r += t, n++;
|
|
16128
16169
|
return r;
|
|
16129
16170
|
}
|
|
16130
|
-
function
|
|
16171
|
+
function Wx(e, t, n, r, i) {
|
|
16131
16172
|
let a = t.href, o = t.title || null, s = e[1].replace(i.other.outputLinkReplace, "$1");
|
|
16132
16173
|
r.state.inLink = !0;
|
|
16133
16174
|
let c = {
|
|
@@ -16140,7 +16181,7 @@ function Rx(e, t, n, r, i) {
|
|
|
16140
16181
|
};
|
|
16141
16182
|
return r.state.inLink = !1, c;
|
|
16142
16183
|
}
|
|
16143
|
-
function
|
|
16184
|
+
function Gx(e, t, n) {
|
|
16144
16185
|
let r = e.match(n.other.indentCodeCompensation);
|
|
16145
16186
|
if (r === null) return t;
|
|
16146
16187
|
let i = r[1];
|
|
@@ -16151,12 +16192,12 @@ function zx(e, t, n) {
|
|
|
16151
16192
|
return r.length >= i.length ? e.slice(i.length) : e;
|
|
16152
16193
|
}).join("\n");
|
|
16153
16194
|
}
|
|
16154
|
-
var
|
|
16195
|
+
var Kx = class {
|
|
16155
16196
|
options;
|
|
16156
16197
|
rules;
|
|
16157
16198
|
lexer;
|
|
16158
16199
|
constructor(e) {
|
|
16159
|
-
this.options = e ||
|
|
16200
|
+
this.options = e || xb;
|
|
16160
16201
|
}
|
|
16161
16202
|
space(e) {
|
|
16162
16203
|
let t = this.rules.block.newline.exec(e);
|
|
@@ -16168,7 +16209,7 @@ var Bx = class {
|
|
|
16168
16209
|
code(e) {
|
|
16169
16210
|
let t = this.rules.block.code.exec(e);
|
|
16170
16211
|
if (t) {
|
|
16171
|
-
let e = this.options.pedantic ? t[0] :
|
|
16212
|
+
let e = this.options.pedantic ? t[0] : Vx(t[0]);
|
|
16172
16213
|
return {
|
|
16173
16214
|
type: "code",
|
|
16174
16215
|
raw: e,
|
|
@@ -16180,7 +16221,7 @@ var Bx = class {
|
|
|
16180
16221
|
fences(e) {
|
|
16181
16222
|
let t = this.rules.block.fences.exec(e);
|
|
16182
16223
|
if (t) {
|
|
16183
|
-
let e = t[0], n =
|
|
16224
|
+
let e = t[0], n = Gx(e, t[3] || "", this.rules);
|
|
16184
16225
|
return {
|
|
16185
16226
|
type: "code",
|
|
16186
16227
|
raw: e,
|
|
@@ -16194,12 +16235,12 @@ var Bx = class {
|
|
|
16194
16235
|
if (t) {
|
|
16195
16236
|
let e = t[2].trim();
|
|
16196
16237
|
if (this.rules.other.endingHash.test(e)) {
|
|
16197
|
-
let t =
|
|
16238
|
+
let t = Bx(e, "#");
|
|
16198
16239
|
(this.options.pedantic || !t || this.rules.other.endingSpaceChar.test(t)) && (e = t.trim());
|
|
16199
16240
|
}
|
|
16200
16241
|
return {
|
|
16201
16242
|
type: "heading",
|
|
16202
|
-
raw:
|
|
16243
|
+
raw: Bx(t[0], "\n"),
|
|
16203
16244
|
depth: t[1].length,
|
|
16204
16245
|
text: e,
|
|
16205
16246
|
tokens: this.lexer.inline(e)
|
|
@@ -16210,13 +16251,13 @@ var Bx = class {
|
|
|
16210
16251
|
let t = this.rules.block.hr.exec(e);
|
|
16211
16252
|
if (t) return {
|
|
16212
16253
|
type: "hr",
|
|
16213
|
-
raw:
|
|
16254
|
+
raw: Bx(t[0], "\n")
|
|
16214
16255
|
};
|
|
16215
16256
|
}
|
|
16216
16257
|
blockquote(e) {
|
|
16217
16258
|
let t = this.rules.block.blockquote.exec(e);
|
|
16218
16259
|
if (t) {
|
|
16219
|
-
let e =
|
|
16260
|
+
let e = Bx(t[0], "\n").split("\n"), n = "", r = "", i = [];
|
|
16220
16261
|
for (; e.length > 0;) {
|
|
16221
16262
|
let t = !1, a = [], o;
|
|
16222
16263
|
for (o = 0; o < e.length; o++) if (this.rules.other.blockquoteStart.test(e[o])) a.push(e[o]), t = !0;
|
|
@@ -16266,7 +16307,7 @@ ${c}` : c;
|
|
|
16266
16307
|
let n = !1, r = "", s = "";
|
|
16267
16308
|
if (!(t = a.exec(e)) || this.rules.block.hr.test(e)) break;
|
|
16268
16309
|
r = t[0], e = e.substring(r.length);
|
|
16269
|
-
let c =
|
|
16310
|
+
let c = Ux(t[2].split("\n", 1)[0], t[1].length), l = e.split("\n", 1)[0], u = !c.trim(), d = 0;
|
|
16270
16311
|
if (this.options.pedantic ? (d = 2, s = c.trimStart()) : u ? d = t[1].length + 1 : (d = c.search(this.rules.other.nonSpaceChar), d = d > 4 ? 1 : d, s = c.slice(d), d += t[1].length), u && this.rules.other.blankLine.test(l) && (r += l + "\n", e = e.substring(l.length + 1), n = !0), !n) {
|
|
16271
16312
|
let t = this.rules.other.nextBulletRegex(d), n = this.rules.other.hrRegex(d), i = this.rules.other.fencesBeginRegex(d), a = this.rules.other.headingBeginRegex(d), o = this.rules.other.htmlBeginRegex(d), f = this.rules.other.blockquoteBeginRegex(d);
|
|
16272
16313
|
for (; e;) {
|
|
@@ -16332,7 +16373,7 @@ ${c}` : c;
|
|
|
16332
16373
|
html(e) {
|
|
16333
16374
|
let t = this.rules.block.html.exec(e);
|
|
16334
16375
|
if (t) {
|
|
16335
|
-
let e =
|
|
16376
|
+
let e = Vx(t[0]);
|
|
16336
16377
|
return {
|
|
16337
16378
|
type: "html",
|
|
16338
16379
|
block: !0,
|
|
@@ -16349,7 +16390,7 @@ ${c}` : c;
|
|
|
16349
16390
|
return {
|
|
16350
16391
|
type: "def",
|
|
16351
16392
|
tag: e,
|
|
16352
|
-
raw:
|
|
16393
|
+
raw: Bx(t[0], "\n"),
|
|
16353
16394
|
href: n,
|
|
16354
16395
|
title: r
|
|
16355
16396
|
};
|
|
@@ -16358,9 +16399,9 @@ ${c}` : c;
|
|
|
16358
16399
|
table(e) {
|
|
16359
16400
|
let t = this.rules.block.table.exec(e);
|
|
16360
16401
|
if (!t || !this.rules.other.tableDelimiter.test(t[2])) return;
|
|
16361
|
-
let n =
|
|
16402
|
+
let n = zx(t[1]), r = t[2].replace(this.rules.other.tableAlignChars, "").split("|"), i = t[3]?.trim() ? t[3].replace(this.rules.other.tableRowBlankLine, "").split("\n") : [], a = {
|
|
16362
16403
|
type: "table",
|
|
16363
|
-
raw:
|
|
16404
|
+
raw: Bx(t[0], "\n"),
|
|
16364
16405
|
header: [],
|
|
16365
16406
|
align: [],
|
|
16366
16407
|
rows: []
|
|
@@ -16373,7 +16414,7 @@ ${c}` : c;
|
|
|
16373
16414
|
header: !0,
|
|
16374
16415
|
align: a.align[e]
|
|
16375
16416
|
});
|
|
16376
|
-
for (let e of i) a.rows.push(
|
|
16417
|
+
for (let e of i) a.rows.push(zx(e, a.header.length).map((e, t) => ({
|
|
16377
16418
|
text: e,
|
|
16378
16419
|
tokens: this.lexer.inline(e),
|
|
16379
16420
|
header: !1,
|
|
@@ -16388,7 +16429,7 @@ ${c}` : c;
|
|
|
16388
16429
|
let e = t[1].trim();
|
|
16389
16430
|
return {
|
|
16390
16431
|
type: "heading",
|
|
16391
|
-
raw:
|
|
16432
|
+
raw: Bx(t[0], "\n"),
|
|
16392
16433
|
depth: t[2].charAt(0) === "=" ? 1 : 2,
|
|
16393
16434
|
text: e,
|
|
16394
16435
|
tokens: this.lexer.inline(e)
|
|
@@ -16441,10 +16482,10 @@ ${c}` : c;
|
|
|
16441
16482
|
let e = t[2].trim();
|
|
16442
16483
|
if (!this.options.pedantic && this.rules.other.startAngleBracket.test(e)) {
|
|
16443
16484
|
if (!this.rules.other.endAngleBracket.test(e)) return;
|
|
16444
|
-
let t =
|
|
16485
|
+
let t = Bx(e.slice(0, -1), "\\");
|
|
16445
16486
|
if ((e.length - t.length) % 2 == 0) return;
|
|
16446
16487
|
} else {
|
|
16447
|
-
let e =
|
|
16488
|
+
let e = Hx(t[2], "()");
|
|
16448
16489
|
if (e === -2) return;
|
|
16449
16490
|
if (e > -1) {
|
|
16450
16491
|
let n = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + e;
|
|
@@ -16456,7 +16497,7 @@ ${c}` : c;
|
|
|
16456
16497
|
let e = this.rules.other.pedanticHrefTitle.exec(n);
|
|
16457
16498
|
e && (n = e[1], r = e[3]);
|
|
16458
16499
|
} else r = t[3] ? t[3].slice(1, -1) : "";
|
|
16459
|
-
return n = n.trim(), this.rules.other.startAngleBracket.test(n) && (n = this.options.pedantic && !this.rules.other.endAngleBracket.test(e) ? n.slice(1) : n.slice(1, -1)),
|
|
16500
|
+
return n = n.trim(), this.rules.other.startAngleBracket.test(n) && (n = this.options.pedantic && !this.rules.other.endAngleBracket.test(e) ? n.slice(1) : n.slice(1, -1)), Wx(t, {
|
|
16460
16501
|
href: n && n.replace(this.rules.inline.anyPunctuation, "$1"),
|
|
16461
16502
|
title: r && r.replace(this.rules.inline.anyPunctuation, "$1")
|
|
16462
16503
|
}, t[0], this.lexer, this.rules);
|
|
@@ -16474,7 +16515,7 @@ ${c}` : c;
|
|
|
16474
16515
|
text: e
|
|
16475
16516
|
};
|
|
16476
16517
|
}
|
|
16477
|
-
return
|
|
16518
|
+
return Wx(n, e, n[0], this.lexer, this.rules);
|
|
16478
16519
|
}
|
|
16479
16520
|
}
|
|
16480
16521
|
emStrong(e, t, n = "") {
|
|
@@ -16606,29 +16647,29 @@ ${c}` : c;
|
|
|
16606
16647
|
};
|
|
16607
16648
|
}
|
|
16608
16649
|
}
|
|
16609
|
-
},
|
|
16650
|
+
}, qx = class e {
|
|
16610
16651
|
tokens;
|
|
16611
16652
|
options;
|
|
16612
16653
|
state;
|
|
16613
16654
|
inlineQueue;
|
|
16614
16655
|
tokenizer;
|
|
16615
16656
|
constructor(e) {
|
|
16616
|
-
this.tokens = [], this.tokens.links = Object.create(null), this.options = e ||
|
|
16657
|
+
this.tokens = [], this.tokens.links = Object.create(null), this.options = e || xb, this.options.tokenizer = this.options.tokenizer || new Kx(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
|
|
16617
16658
|
inLink: !1,
|
|
16618
16659
|
inRawBlock: !1,
|
|
16619
16660
|
top: !0
|
|
16620
16661
|
};
|
|
16621
16662
|
let t = {
|
|
16622
|
-
other:
|
|
16623
|
-
block:
|
|
16624
|
-
inline:
|
|
16663
|
+
other: Db,
|
|
16664
|
+
block: Nx.normal,
|
|
16665
|
+
inline: Px.normal
|
|
16625
16666
|
};
|
|
16626
|
-
this.options.pedantic ? (t.block =
|
|
16667
|
+
this.options.pedantic ? (t.block = Nx.pedantic, t.inline = Px.pedantic) : this.options.gfm && (t.block = Nx.gfm, this.options.breaks ? t.inline = Px.breaks : t.inline = Px.gfm), this.tokenizer.rules = t;
|
|
16627
16668
|
}
|
|
16628
16669
|
static get rules() {
|
|
16629
16670
|
return {
|
|
16630
|
-
block:
|
|
16631
|
-
inline:
|
|
16671
|
+
block: Nx,
|
|
16672
|
+
inline: Px
|
|
16632
16673
|
};
|
|
16633
16674
|
}
|
|
16634
16675
|
static lex(t, n) {
|
|
@@ -16638,7 +16679,7 @@ ${c}` : c;
|
|
|
16638
16679
|
return new e(n).inlineTokens(t);
|
|
16639
16680
|
}
|
|
16640
16681
|
lex(e) {
|
|
16641
|
-
e = e.replace(
|
|
16682
|
+
e = e.replace(Db.carriageReturn, "\n"), this.blockTokens(e, this.tokens);
|
|
16642
16683
|
for (let e = 0; e < this.inlineQueue.length; e++) {
|
|
16643
16684
|
let t = this.inlineQueue[e];
|
|
16644
16685
|
this.inlineTokens(t.src, t.tokens);
|
|
@@ -16646,7 +16687,7 @@ ${c}` : c;
|
|
|
16646
16687
|
return this.inlineQueue = [], this.tokens;
|
|
16647
16688
|
}
|
|
16648
16689
|
blockTokens(e, t = [], n = !1) {
|
|
16649
|
-
this.tokenizer.lexer = this, this.options.pedantic && (e = e.replace(
|
|
16690
|
+
this.tokenizer.lexer = this, this.options.pedantic && (e = e.replace(Db.tabCharGlobal, " ").replace(Db.spaceLine, ""));
|
|
16650
16691
|
let r = Infinity;
|
|
16651
16692
|
for (; e;) {
|
|
16652
16693
|
if (e.length < r) r = e.length;
|
|
@@ -16828,18 +16869,18 @@ ${c}` : c;
|
|
|
16828
16869
|
if (this.options.silent) console.error(t);
|
|
16829
16870
|
else throw Error(t);
|
|
16830
16871
|
}
|
|
16831
|
-
},
|
|
16872
|
+
}, Jx = class {
|
|
16832
16873
|
options;
|
|
16833
16874
|
parser;
|
|
16834
16875
|
constructor(e) {
|
|
16835
|
-
this.options = e ||
|
|
16876
|
+
this.options = e || xb;
|
|
16836
16877
|
}
|
|
16837
16878
|
space(e) {
|
|
16838
16879
|
return "";
|
|
16839
16880
|
}
|
|
16840
16881
|
code({ text: e, lang: t, escaped: n }) {
|
|
16841
|
-
let r = (t || "").match(
|
|
16842
|
-
return r ? "<pre><code class=\"language-" +
|
|
16882
|
+
let r = (t || "").match(Db.notSpaceStart)?.[0], i = e.replace(Db.endingNewline, "") + "\n";
|
|
16883
|
+
return r ? "<pre><code class=\"language-" + Lx(r) + "\">" + (n ? i : Lx(i, !0)) + "</code></pre>\n" : "<pre><code>" + (n ? i : Lx(i, !0)) + "</code></pre>\n";
|
|
16843
16884
|
}
|
|
16844
16885
|
blockquote({ tokens: e }) {
|
|
16845
16886
|
return `<blockquote>
|
|
@@ -16909,7 +16950,7 @@ ${e}</tr>
|
|
|
16909
16950
|
return `<em>${this.parser.parseInline(e)}</em>`;
|
|
16910
16951
|
}
|
|
16911
16952
|
codespan({ text: e }) {
|
|
16912
|
-
return `<code>${
|
|
16953
|
+
return `<code>${Lx(e, !0)}</code>`;
|
|
16913
16954
|
}
|
|
16914
16955
|
br(e) {
|
|
16915
16956
|
return "<br>";
|
|
@@ -16918,24 +16959,24 @@ ${e}</tr>
|
|
|
16918
16959
|
return `<del>${this.parser.parseInline(e)}</del>`;
|
|
16919
16960
|
}
|
|
16920
16961
|
link({ href: e, title: t, tokens: n }) {
|
|
16921
|
-
let r = this.parser.parseInline(n), i =
|
|
16962
|
+
let r = this.parser.parseInline(n), i = Rx(e);
|
|
16922
16963
|
if (i === null) return r;
|
|
16923
16964
|
e = i;
|
|
16924
16965
|
let a = "<a href=\"" + e + "\"";
|
|
16925
|
-
return t && (a += " title=\"" +
|
|
16966
|
+
return t && (a += " title=\"" + Lx(t) + "\""), a += ">" + r + "</a>", a;
|
|
16926
16967
|
}
|
|
16927
16968
|
image({ href: e, title: t, text: n, tokens: r }) {
|
|
16928
16969
|
r && (n = this.parser.parseInline(r, this.parser.textRenderer));
|
|
16929
|
-
let i =
|
|
16930
|
-
if (i === null) return
|
|
16970
|
+
let i = Rx(e);
|
|
16971
|
+
if (i === null) return Lx(n);
|
|
16931
16972
|
e = i;
|
|
16932
|
-
let a = `<img src="${e}" alt="${
|
|
16933
|
-
return t && (a += ` title="${
|
|
16973
|
+
let a = `<img src="${e}" alt="${Lx(n)}"`;
|
|
16974
|
+
return t && (a += ` title="${Lx(t)}"`), a += ">", a;
|
|
16934
16975
|
}
|
|
16935
16976
|
text(e) {
|
|
16936
|
-
return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text :
|
|
16977
|
+
return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : "escaped" in e && e.escaped ? e.text : Lx(e.text);
|
|
16937
16978
|
}
|
|
16938
|
-
},
|
|
16979
|
+
}, Yx = class {
|
|
16939
16980
|
strong({ text: e }) {
|
|
16940
16981
|
return e;
|
|
16941
16982
|
}
|
|
@@ -16966,12 +17007,12 @@ ${e}</tr>
|
|
|
16966
17007
|
checkbox({ raw: e }) {
|
|
16967
17008
|
return e;
|
|
16968
17009
|
}
|
|
16969
|
-
},
|
|
17010
|
+
}, Xx = class e {
|
|
16970
17011
|
options;
|
|
16971
17012
|
renderer;
|
|
16972
17013
|
textRenderer;
|
|
16973
17014
|
constructor(e) {
|
|
16974
|
-
this.options = e ||
|
|
17015
|
+
this.options = e || xb, this.options.renderer = this.options.renderer || new Jx(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new Yx();
|
|
16975
17016
|
}
|
|
16976
17017
|
static parse(t, n) {
|
|
16977
17018
|
return new e(n).parse(t);
|
|
@@ -17117,11 +17158,11 @@ ${e}</tr>
|
|
|
17117
17158
|
}
|
|
17118
17159
|
return n;
|
|
17119
17160
|
}
|
|
17120
|
-
},
|
|
17161
|
+
}, Zx = class {
|
|
17121
17162
|
options;
|
|
17122
17163
|
block;
|
|
17123
17164
|
constructor(e) {
|
|
17124
|
-
this.options = e ||
|
|
17165
|
+
this.options = e || xb;
|
|
17125
17166
|
}
|
|
17126
17167
|
static passThroughHooks = /* @__PURE__ */ new Set([
|
|
17127
17168
|
"preprocess",
|
|
@@ -17147,22 +17188,22 @@ ${e}</tr>
|
|
|
17147
17188
|
return e;
|
|
17148
17189
|
}
|
|
17149
17190
|
provideLexer(e = this.block) {
|
|
17150
|
-
return e ?
|
|
17191
|
+
return e ? qx.lex : qx.lexInline;
|
|
17151
17192
|
}
|
|
17152
17193
|
provideParser(e = this.block) {
|
|
17153
|
-
return e ?
|
|
17194
|
+
return e ? Xx.parse : Xx.parseInline;
|
|
17154
17195
|
}
|
|
17155
|
-
},
|
|
17156
|
-
defaults =
|
|
17196
|
+
}, Qx = new class {
|
|
17197
|
+
defaults = bb();
|
|
17157
17198
|
options = this.setOptions;
|
|
17158
17199
|
parse = this.parseMarkdown(!0);
|
|
17159
17200
|
parseInline = this.parseMarkdown(!1);
|
|
17160
|
-
Parser =
|
|
17161
|
-
Renderer =
|
|
17162
|
-
TextRenderer =
|
|
17163
|
-
Lexer =
|
|
17164
|
-
Tokenizer =
|
|
17165
|
-
Hooks =
|
|
17201
|
+
Parser = Xx;
|
|
17202
|
+
Renderer = Jx;
|
|
17203
|
+
TextRenderer = Yx;
|
|
17204
|
+
Lexer = qx;
|
|
17205
|
+
Tokenizer = Kx;
|
|
17206
|
+
Hooks = Zx;
|
|
17166
17207
|
constructor(...e) {
|
|
17167
17208
|
this.use(...e);
|
|
17168
17209
|
}
|
|
@@ -17213,7 +17254,7 @@ ${e}</tr>
|
|
|
17213
17254
|
}
|
|
17214
17255
|
"childTokens" in e && e.childTokens && (t.childTokens[e.name] = e.childTokens);
|
|
17215
17256
|
}), n.extensions = t), e.renderer) {
|
|
17216
|
-
let t = this.defaults.renderer || new
|
|
17257
|
+
let t = this.defaults.renderer || new Jx(this.defaults);
|
|
17217
17258
|
for (let n in e.renderer) {
|
|
17218
17259
|
if (!(n in t)) throw Error(`renderer '${n}' does not exist`);
|
|
17219
17260
|
if (["options", "parser"].includes(n)) continue;
|
|
@@ -17226,7 +17267,7 @@ ${e}</tr>
|
|
|
17226
17267
|
n.renderer = t;
|
|
17227
17268
|
}
|
|
17228
17269
|
if (e.tokenizer) {
|
|
17229
|
-
let t = this.defaults.tokenizer || new
|
|
17270
|
+
let t = this.defaults.tokenizer || new Kx(this.defaults);
|
|
17230
17271
|
for (let n in e.tokenizer) {
|
|
17231
17272
|
if (!(n in t)) throw Error(`tokenizer '${n}' does not exist`);
|
|
17232
17273
|
if ([
|
|
@@ -17243,13 +17284,13 @@ ${e}</tr>
|
|
|
17243
17284
|
n.tokenizer = t;
|
|
17244
17285
|
}
|
|
17245
17286
|
if (e.hooks) {
|
|
17246
|
-
let t = this.defaults.hooks || new
|
|
17287
|
+
let t = this.defaults.hooks || new Zx();
|
|
17247
17288
|
for (let n in e.hooks) {
|
|
17248
17289
|
if (!(n in t)) throw Error(`hook '${n}' does not exist`);
|
|
17249
17290
|
if (["options", "block"].includes(n)) continue;
|
|
17250
17291
|
let r = n, i = e.hooks[r], a = t[r];
|
|
17251
|
-
|
|
17252
|
-
if (this.defaults.async &&
|
|
17292
|
+
Zx.passThroughHooks.has(n) ? t[r] = (e) => {
|
|
17293
|
+
if (this.defaults.async && Zx.passThroughHooksRespectAsync.has(n)) return (async () => {
|
|
17253
17294
|
let n = await i.call(t, e);
|
|
17254
17295
|
return a.call(t, n);
|
|
17255
17296
|
})();
|
|
@@ -17286,10 +17327,10 @@ ${e}</tr>
|
|
|
17286
17327
|
}, this;
|
|
17287
17328
|
}
|
|
17288
17329
|
lexer(e, t) {
|
|
17289
|
-
return
|
|
17330
|
+
return qx.lex(e, t ?? this.defaults);
|
|
17290
17331
|
}
|
|
17291
17332
|
parser(e, t) {
|
|
17292
|
-
return
|
|
17333
|
+
return Xx.parse(e, t ?? this.defaults);
|
|
17293
17334
|
}
|
|
17294
17335
|
parseMarkdown(e) {
|
|
17295
17336
|
return (t, n) => {
|
|
@@ -17301,16 +17342,16 @@ ${e}</tr>
|
|
|
17301
17342
|
if (typeof t > "u" || t === null) return a(/* @__PURE__ */ Error("marked(): input parameter is undefined or null"));
|
|
17302
17343
|
if (typeof t != "string") return a(/* @__PURE__ */ Error("marked(): input parameter is of type " + Object.prototype.toString.call(t) + ", string expected"));
|
|
17303
17344
|
if (i.hooks && (i.hooks.options = i, i.hooks.block = e), i.async) return (async () => {
|
|
17304
|
-
let n = i.hooks ? await i.hooks.preprocess(t) : t, r = await (i.hooks ? await i.hooks.provideLexer(e) : e ?
|
|
17345
|
+
let n = i.hooks ? await i.hooks.preprocess(t) : t, r = await (i.hooks ? await i.hooks.provideLexer(e) : e ? qx.lex : qx.lexInline)(n, i), a = i.hooks ? await i.hooks.processAllTokens(r) : r;
|
|
17305
17346
|
i.walkTokens && await Promise.all(this.walkTokens(a, i.walkTokens));
|
|
17306
|
-
let o = await (i.hooks ? await i.hooks.provideParser(e) : e ?
|
|
17347
|
+
let o = await (i.hooks ? await i.hooks.provideParser(e) : e ? Xx.parse : Xx.parseInline)(a, i);
|
|
17307
17348
|
return i.hooks ? await i.hooks.postprocess(o) : o;
|
|
17308
17349
|
})().catch(a);
|
|
17309
17350
|
try {
|
|
17310
17351
|
i.hooks && (t = i.hooks.preprocess(t));
|
|
17311
|
-
let n = (i.hooks ? i.hooks.provideLexer(e) : e ?
|
|
17352
|
+
let n = (i.hooks ? i.hooks.provideLexer(e) : e ? qx.lex : qx.lexInline)(t, i);
|
|
17312
17353
|
i.hooks && (n = i.hooks.processAllTokens(n)), i.walkTokens && this.walkTokens(n, i.walkTokens);
|
|
17313
|
-
let r = (i.hooks ? i.hooks.provideParser(e) : e ?
|
|
17354
|
+
let r = (i.hooks ? i.hooks.provideParser(e) : e ? Xx.parse : Xx.parseInline)(n, i);
|
|
17314
17355
|
return i.hooks && (r = i.hooks.postprocess(r)), r;
|
|
17315
17356
|
} catch (e) {
|
|
17316
17357
|
return a(e);
|
|
@@ -17320,7 +17361,7 @@ ${e}</tr>
|
|
|
17320
17361
|
onError(e, t) {
|
|
17321
17362
|
return (n) => {
|
|
17322
17363
|
if (n.message += "\nPlease report this to https://github.com/markedjs/marked.", e) {
|
|
17323
|
-
let e = "<p>An error occurred:</p><pre>" +
|
|
17364
|
+
let e = "<p>An error occurred:</p><pre>" + Lx(n.message + "", !0) + "</pre>";
|
|
17324
17365
|
return t ? Promise.resolve(e) : e;
|
|
17325
17366
|
}
|
|
17326
17367
|
if (t) return Promise.reject(n);
|
|
@@ -17328,19 +17369,19 @@ ${e}</tr>
|
|
|
17328
17369
|
};
|
|
17329
17370
|
}
|
|
17330
17371
|
}();
|
|
17331
|
-
function
|
|
17332
|
-
return
|
|
17333
|
-
}
|
|
17334
|
-
|
|
17335
|
-
return
|
|
17336
|
-
},
|
|
17337
|
-
return
|
|
17338
|
-
},
|
|
17339
|
-
return
|
|
17340
|
-
},
|
|
17372
|
+
function $x(e, t) {
|
|
17373
|
+
return Qx.parse(e, t);
|
|
17374
|
+
}
|
|
17375
|
+
$x.options = $x.setOptions = function(e) {
|
|
17376
|
+
return Qx.setOptions(e), $x.defaults = Qx.defaults, Sb($x.defaults), $x;
|
|
17377
|
+
}, $x.getDefaults = bb, $x.defaults = xb, $x.use = function(...e) {
|
|
17378
|
+
return Qx.use(...e), $x.defaults = Qx.defaults, Sb($x.defaults), $x;
|
|
17379
|
+
}, $x.walkTokens = function(e, t) {
|
|
17380
|
+
return Qx.walkTokens(e, t);
|
|
17381
|
+
}, $x.parseInline = Qx.parseInline, $x.Parser = Xx, $x.parser = Xx.parse, $x.Renderer = Jx, $x.TextRenderer = Yx, $x.Lexer = qx, $x.lexer = qx.lex, $x.Tokenizer = Kx, $x.Hooks = Zx, $x.parse = $x, $x.options, $x.setOptions, $x.use, $x.walkTokens, $x.parseInline, Xx.parse, qx.lex;
|
|
17341
17382
|
//#endregion
|
|
17342
17383
|
//#region node_modules/highlight.js/lib/core.js
|
|
17343
|
-
var
|
|
17384
|
+
var eS = /* @__PURE__ */ h(((e, t) => {
|
|
17344
17385
|
function n(e) {
|
|
17345
17386
|
return e instanceof Map ? e.clear = e.delete = e.set = function() {
|
|
17346
17387
|
throw Error("map is read-only");
|
|
@@ -18181,7 +18222,7 @@ var Jx = /* @__PURE__ */ h(((e, t) => {
|
|
|
18181
18222
|
return Object.assign(e, L), e;
|
|
18182
18223
|
}, je = Ae({});
|
|
18183
18224
|
je.newInstance = () => Ae({}), t.exports = je, je.HighlightJS = je, je.default = je;
|
|
18184
|
-
})),
|
|
18225
|
+
})), tS = /* @__PURE__ */ h(((e, t) => {
|
|
18185
18226
|
function n(e) {
|
|
18186
18227
|
let t = e.regex, n = t.concat(/[\p{L}_]/u, t.optional(/[\p{L}0-9_.-]*:/u), /[\p{L}0-9_.-]*/u), r = /[\p{L}0-9._:-]+/u, i = {
|
|
18187
18228
|
className: "symbol",
|
|
@@ -18346,7 +18387,7 @@ var Jx = /* @__PURE__ */ h(((e, t) => {
|
|
|
18346
18387
|
};
|
|
18347
18388
|
}
|
|
18348
18389
|
t.exports = n;
|
|
18349
|
-
})),
|
|
18390
|
+
})), nS = /* @__PURE__ */ h(((e, t) => {
|
|
18350
18391
|
function n(e) {
|
|
18351
18392
|
let t = e.regex, n = {}, r = {
|
|
18352
18393
|
begin: /\$\{/,
|
|
@@ -18514,7 +18555,7 @@ var Jx = /* @__PURE__ */ h(((e, t) => {
|
|
|
18514
18555
|
};
|
|
18515
18556
|
}
|
|
18516
18557
|
t.exports = n;
|
|
18517
|
-
})),
|
|
18558
|
+
})), rS = /* @__PURE__ */ h(((e, t) => {
|
|
18518
18559
|
function n(e) {
|
|
18519
18560
|
let t = e.regex, n = e.COMMENT("//", "$", { contains: [{ begin: /\\\n/ }] }), r = "[a-zA-Z_]\\w*::", i = "(decltype\\(auto\\)|" + t.optional(r) + "[a-zA-Z_]\\w*" + t.optional("<[^<>]+>") + ")", a = {
|
|
18520
18561
|
className: "type",
|
|
@@ -18689,7 +18730,7 @@ var Jx = /* @__PURE__ */ h(((e, t) => {
|
|
|
18689
18730
|
};
|
|
18690
18731
|
}
|
|
18691
18732
|
t.exports = n;
|
|
18692
|
-
})),
|
|
18733
|
+
})), iS = /* @__PURE__ */ h(((e, t) => {
|
|
18693
18734
|
function n(e) {
|
|
18694
18735
|
let t = e.regex, n = e.COMMENT("//", "$", { contains: [{ begin: /\\\n/ }] }), r = "[a-zA-Z_]\\w*::", i = "(?!struct)(decltype\\(auto\\)|" + t.optional(r) + "[a-zA-Z_]\\w*" + t.optional("<[^<>]+>") + ")", a = {
|
|
18695
18736
|
className: "type",
|
|
@@ -18913,7 +18954,7 @@ var Jx = /* @__PURE__ */ h(((e, t) => {
|
|
|
18913
18954
|
};
|
|
18914
18955
|
}
|
|
18915
18956
|
t.exports = n;
|
|
18916
|
-
})),
|
|
18957
|
+
})), aS = /* @__PURE__ */ h(((e, t) => {
|
|
18917
18958
|
function n(e) {
|
|
18918
18959
|
let t = [
|
|
18919
18960
|
"bool",
|
|
@@ -19172,7 +19213,7 @@ var Jx = /* @__PURE__ */ h(((e, t) => {
|
|
|
19172
19213
|
};
|
|
19173
19214
|
}
|
|
19174
19215
|
t.exports = n;
|
|
19175
|
-
})),
|
|
19216
|
+
})), oS = /* @__PURE__ */ h(((e, t) => {
|
|
19176
19217
|
var n = (e) => ({
|
|
19177
19218
|
IMPORTANT: {
|
|
19178
19219
|
scope: "meta",
|
|
@@ -19311,7 +19352,7 @@ var Jx = /* @__PURE__ */ h(((e, t) => {
|
|
|
19311
19352
|
};
|
|
19312
19353
|
}
|
|
19313
19354
|
t.exports = u;
|
|
19314
|
-
})),
|
|
19355
|
+
})), sS = /* @__PURE__ */ h(((e, t) => {
|
|
19315
19356
|
function n(e) {
|
|
19316
19357
|
let t = e.regex, n = {
|
|
19317
19358
|
begin: /<\/?[A-Za-z_]/,
|
|
@@ -19491,7 +19532,7 @@ var Jx = /* @__PURE__ */ h(((e, t) => {
|
|
|
19491
19532
|
};
|
|
19492
19533
|
}
|
|
19493
19534
|
t.exports = n;
|
|
19494
|
-
})),
|
|
19535
|
+
})), cS = /* @__PURE__ */ h(((e, t) => {
|
|
19495
19536
|
function n(e) {
|
|
19496
19537
|
let t = e.regex;
|
|
19497
19538
|
return {
|
|
@@ -19529,7 +19570,7 @@ var Jx = /* @__PURE__ */ h(((e, t) => {
|
|
|
19529
19570
|
};
|
|
19530
19571
|
}
|
|
19531
19572
|
t.exports = n;
|
|
19532
|
-
})),
|
|
19573
|
+
})), lS = /* @__PURE__ */ h(((e, t) => {
|
|
19533
19574
|
function n(e) {
|
|
19534
19575
|
let t = e.regex, n = "([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)", r = t.either(/\b([A-Z]+[a-z0-9]+)+/, /\b([A-Z]+[a-z0-9]+)+[A-Z]+/), i = t.concat(r, /(::\w+)*/), a = {
|
|
19535
19576
|
"variable.constant": [
|
|
@@ -19790,7 +19831,7 @@ var Jx = /* @__PURE__ */ h(((e, t) => {
|
|
|
19790
19831
|
};
|
|
19791
19832
|
}
|
|
19792
19833
|
t.exports = n;
|
|
19793
|
-
})),
|
|
19834
|
+
})), uS = /* @__PURE__ */ h(((e, t) => {
|
|
19794
19835
|
function n(e) {
|
|
19795
19836
|
let t = {
|
|
19796
19837
|
keyword: [
|
|
@@ -19929,7 +19970,7 @@ var Jx = /* @__PURE__ */ h(((e, t) => {
|
|
|
19929
19970
|
};
|
|
19930
19971
|
}
|
|
19931
19972
|
t.exports = n;
|
|
19932
|
-
})),
|
|
19973
|
+
})), dS = /* @__PURE__ */ h(((e, t) => {
|
|
19933
19974
|
function n(e) {
|
|
19934
19975
|
let t = e.regex;
|
|
19935
19976
|
return {
|
|
@@ -19995,7 +20036,7 @@ var Jx = /* @__PURE__ */ h(((e, t) => {
|
|
|
19995
20036
|
};
|
|
19996
20037
|
}
|
|
19997
20038
|
t.exports = n;
|
|
19998
|
-
})),
|
|
20039
|
+
})), fS = /* @__PURE__ */ h(((e, t) => {
|
|
19999
20040
|
function n(e) {
|
|
20000
20041
|
let t = e.regex, n = {
|
|
20001
20042
|
className: "number",
|
|
@@ -20082,7 +20123,7 @@ var Jx = /* @__PURE__ */ h(((e, t) => {
|
|
|
20082
20123
|
};
|
|
20083
20124
|
}
|
|
20084
20125
|
t.exports = n;
|
|
20085
|
-
})),
|
|
20126
|
+
})), pS = /* @__PURE__ */ h(((e, t) => {
|
|
20086
20127
|
var n = "[0-9](_*[0-9])*", r = `\\.(${n})`, i = "[0-9a-fA-F](_*[0-9a-fA-F])*", a = {
|
|
20087
20128
|
className: "number",
|
|
20088
20129
|
variants: [
|
|
@@ -20250,7 +20291,7 @@ var Jx = /* @__PURE__ */ h(((e, t) => {
|
|
|
20250
20291
|
};
|
|
20251
20292
|
}
|
|
20252
20293
|
t.exports = s;
|
|
20253
|
-
})),
|
|
20294
|
+
})), mS = /* @__PURE__ */ h(((e, t) => {
|
|
20254
20295
|
var n = "[A-Za-z$_][0-9A-Za-z$_]*", r = /* @__PURE__ */ "as.in.of.if.for.while.finally.var.new.function.do.return.void.else.break.catch.instanceof.with.throw.case.default.try.switch.continue.typeof.delete.let.yield.const.class.debugger.async.await.static.import.from.export.extends.using".split("."), i = [
|
|
20255
20296
|
"true",
|
|
20256
20297
|
"false",
|
|
@@ -20685,7 +20726,7 @@ var Jx = /* @__PURE__ */ h(((e, t) => {
|
|
|
20685
20726
|
};
|
|
20686
20727
|
}
|
|
20687
20728
|
t.exports = u;
|
|
20688
|
-
})),
|
|
20729
|
+
})), hS = /* @__PURE__ */ h(((e, t) => {
|
|
20689
20730
|
function n(e) {
|
|
20690
20731
|
let t = {
|
|
20691
20732
|
className: "attr",
|
|
@@ -20720,7 +20761,7 @@ var Jx = /* @__PURE__ */ h(((e, t) => {
|
|
|
20720
20761
|
};
|
|
20721
20762
|
}
|
|
20722
20763
|
t.exports = n;
|
|
20723
|
-
})),
|
|
20764
|
+
})), gS = /* @__PURE__ */ h(((e, t) => {
|
|
20724
20765
|
var n = "[0-9](_*[0-9])*", r = `\\.(${n})`, i = "[0-9a-fA-F](_*[0-9a-fA-F])*", a = {
|
|
20725
20766
|
className: "number",
|
|
20726
20767
|
variants: [
|
|
@@ -20920,7 +20961,7 @@ var Jx = /* @__PURE__ */ h(((e, t) => {
|
|
|
20920
20961
|
};
|
|
20921
20962
|
}
|
|
20922
20963
|
t.exports = o;
|
|
20923
|
-
})),
|
|
20964
|
+
})), _S = /* @__PURE__ */ h(((e, t) => {
|
|
20924
20965
|
var n = (e) => ({
|
|
20925
20966
|
IMPORTANT: {
|
|
20926
20967
|
scope: "meta",
|
|
@@ -21111,7 +21152,7 @@ var Jx = /* @__PURE__ */ h(((e, t) => {
|
|
|
21111
21152
|
};
|
|
21112
21153
|
}
|
|
21113
21154
|
t.exports = d;
|
|
21114
|
-
})),
|
|
21155
|
+
})), vS = /* @__PURE__ */ h(((e, t) => {
|
|
21115
21156
|
function n(e) {
|
|
21116
21157
|
let t = "\\[=*\\[", n = "\\]=*\\]", r = {
|
|
21117
21158
|
begin: t,
|
|
@@ -21156,7 +21197,7 @@ var Jx = /* @__PURE__ */ h(((e, t) => {
|
|
|
21156
21197
|
};
|
|
21157
21198
|
}
|
|
21158
21199
|
t.exports = n;
|
|
21159
|
-
})),
|
|
21200
|
+
})), yS = /* @__PURE__ */ h(((e, t) => {
|
|
21160
21201
|
function n(e) {
|
|
21161
21202
|
let t = {
|
|
21162
21203
|
className: "variable",
|
|
@@ -21212,7 +21253,7 @@ var Jx = /* @__PURE__ */ h(((e, t) => {
|
|
|
21212
21253
|
};
|
|
21213
21254
|
}
|
|
21214
21255
|
t.exports = n;
|
|
21215
|
-
})),
|
|
21256
|
+
})), bS = /* @__PURE__ */ h(((e, t) => {
|
|
21216
21257
|
function n(e) {
|
|
21217
21258
|
let t = e.regex, n = /* @__PURE__ */ "abs.accept.alarm.and.atan2.bind.binmode.bless.break.caller.chdir.chmod.chomp.chop.chown.chr.chroot.class.close.closedir.connect.continue.cos.crypt.dbmclose.dbmopen.defined.delete.die.do.dump.each.else.elsif.endgrent.endhostent.endnetent.endprotoent.endpwent.endservent.eof.eval.exec.exists.exit.exp.fcntl.field.fileno.flock.for.foreach.fork.format.formline.getc.getgrent.getgrgid.getgrnam.gethostbyaddr.gethostbyname.gethostent.getlogin.getnetbyaddr.getnetbyname.getnetent.getpeername.getpgrp.getpriority.getprotobyname.getprotobynumber.getprotoent.getpwent.getpwnam.getpwuid.getservbyname.getservbyport.getservent.getsockname.getsockopt.given.glob.gmtime.goto.grep.gt.hex.if.index.int.ioctl.join.keys.kill.last.lc.lcfirst.length.link.listen.local.localtime.log.lstat.lt.ma.map.method.mkdir.msgctl.msgget.msgrcv.msgsnd.my.ne.next.no.not.oct.open.opendir.or.ord.our.pack.package.pipe.pop.pos.print.printf.prototype.push.q|0.qq.quotemeta.qw.qx.rand.read.readdir.readline.readlink.readpipe.recv.redo.ref.rename.require.reset.return.reverse.rewinddir.rindex.rmdir.say.scalar.seek.seekdir.select.semctl.semget.semop.send.setgrent.sethostent.setnetent.setpgrp.setpriority.setprotoent.setpwent.setservent.setsockopt.shift.shmctl.shmget.shmread.shmwrite.shutdown.sin.sleep.socket.socketpair.sort.splice.split.sprintf.sqrt.srand.stat.state.study.sub.substr.symlink.syscall.sysopen.sysread.sysseek.system.syswrite.tell.telldir.tie.tied.time.times.tr.truncate.uc.ucfirst.umask.undef.unless.unlink.unpack.unshift.untie.until.use.utime.values.vec.wait.waitpid.wantarray.warn.when.while.write.x|0.xor.y|0".split("."), r = /[dualxmsipngr]{0,12}/, i = {
|
|
21218
21259
|
$pattern: /[\w.]+/,
|
|
@@ -21403,7 +21444,7 @@ var Jx = /* @__PURE__ */ h(((e, t) => {
|
|
|
21403
21444
|
};
|
|
21404
21445
|
}
|
|
21405
21446
|
t.exports = n;
|
|
21406
|
-
})),
|
|
21447
|
+
})), xS = /* @__PURE__ */ h(((e, t) => {
|
|
21407
21448
|
function n(e) {
|
|
21408
21449
|
let t = {
|
|
21409
21450
|
className: "built_in",
|
|
@@ -21519,7 +21560,7 @@ var Jx = /* @__PURE__ */ h(((e, t) => {
|
|
|
21519
21560
|
};
|
|
21520
21561
|
}
|
|
21521
21562
|
t.exports = n;
|
|
21522
|
-
})),
|
|
21563
|
+
})), SS = /* @__PURE__ */ h(((e, t) => {
|
|
21523
21564
|
function n(e) {
|
|
21524
21565
|
let t = e.regex, n = /(?![A-Za-z0-9])(?![$])/, r = t.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/, n), i = t.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/, n), a = t.concat(/[A-Z]+/, n), o = {
|
|
21525
21566
|
scope: "variable",
|
|
@@ -21812,7 +21853,7 @@ var Jx = /* @__PURE__ */ h(((e, t) => {
|
|
|
21812
21853
|
};
|
|
21813
21854
|
}
|
|
21814
21855
|
t.exports = n;
|
|
21815
|
-
})),
|
|
21856
|
+
})), CS = /* @__PURE__ */ h(((e, t) => {
|
|
21816
21857
|
function n(e) {
|
|
21817
21858
|
return {
|
|
21818
21859
|
name: "PHP template",
|
|
@@ -21854,7 +21895,7 @@ var Jx = /* @__PURE__ */ h(((e, t) => {
|
|
|
21854
21895
|
};
|
|
21855
21896
|
}
|
|
21856
21897
|
t.exports = n;
|
|
21857
|
-
})),
|
|
21898
|
+
})), wS = /* @__PURE__ */ h(((e, t) => {
|
|
21858
21899
|
function n(e) {
|
|
21859
21900
|
return {
|
|
21860
21901
|
name: "Plain text",
|
|
@@ -21863,7 +21904,7 @@ var Jx = /* @__PURE__ */ h(((e, t) => {
|
|
|
21863
21904
|
};
|
|
21864
21905
|
}
|
|
21865
21906
|
t.exports = n;
|
|
21866
|
-
})),
|
|
21907
|
+
})), TS = /* @__PURE__ */ h(((e, t) => {
|
|
21867
21908
|
function n(e) {
|
|
21868
21909
|
let t = e.regex, n = /[\p{XID_Start}_]\p{XID_Continue}*/u, r = /* @__PURE__ */ "and.as.assert.async.await.break.case.class.continue.def.del.elif.else.except.finally.for.from.global.if.import.in.is.lambda.match.nonlocal|10.not.or.pass.raise.return.try.while.with.yield".split("."), i = {
|
|
21869
21910
|
$pattern: /[A-Za-z]\w+|__\w+__/,
|
|
@@ -22100,7 +22141,7 @@ var Jx = /* @__PURE__ */ h(((e, t) => {
|
|
|
22100
22141
|
};
|
|
22101
22142
|
}
|
|
22102
22143
|
t.exports = n;
|
|
22103
|
-
})),
|
|
22144
|
+
})), ES = /* @__PURE__ */ h(((e, t) => {
|
|
22104
22145
|
function n(e) {
|
|
22105
22146
|
return {
|
|
22106
22147
|
aliases: ["pycon"],
|
|
@@ -22118,7 +22159,7 @@ var Jx = /* @__PURE__ */ h(((e, t) => {
|
|
|
22118
22159
|
};
|
|
22119
22160
|
}
|
|
22120
22161
|
t.exports = n;
|
|
22121
|
-
})),
|
|
22162
|
+
})), DS = /* @__PURE__ */ h(((e, t) => {
|
|
22122
22163
|
function n(e) {
|
|
22123
22164
|
let t = e.regex, n = /(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/, r = t.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/, /0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/, /(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/), i = /[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/, a = t.either(/[()]/, /[{}]/, /\[\[/, /[[\]]/, /\\/, /,/);
|
|
22124
22165
|
return {
|
|
@@ -22257,7 +22298,7 @@ var Jx = /* @__PURE__ */ h(((e, t) => {
|
|
|
22257
22298
|
};
|
|
22258
22299
|
}
|
|
22259
22300
|
t.exports = n;
|
|
22260
|
-
})),
|
|
22301
|
+
})), OS = /* @__PURE__ */ h(((e, t) => {
|
|
22261
22302
|
function n(e) {
|
|
22262
22303
|
let t = e.regex, n = /(r#)?/, r = t.concat(n, e.UNDERSCORE_IDENT_RE), i = t.concat(n, e.IDENT_RE), a = {
|
|
22263
22304
|
className: "title.function.invoke",
|
|
@@ -22425,7 +22466,7 @@ var Jx = /* @__PURE__ */ h(((e, t) => {
|
|
|
22425
22466
|
};
|
|
22426
22467
|
}
|
|
22427
22468
|
t.exports = n;
|
|
22428
|
-
})),
|
|
22469
|
+
})), kS = /* @__PURE__ */ h(((e, t) => {
|
|
22429
22470
|
var n = (e) => ({
|
|
22430
22471
|
IMPORTANT: {
|
|
22431
22472
|
scope: "meta",
|
|
@@ -22574,7 +22615,7 @@ var Jx = /* @__PURE__ */ h(((e, t) => {
|
|
|
22574
22615
|
};
|
|
22575
22616
|
}
|
|
22576
22617
|
t.exports = u;
|
|
22577
|
-
})),
|
|
22618
|
+
})), AS = /* @__PURE__ */ h(((e, t) => {
|
|
22578
22619
|
function n(e) {
|
|
22579
22620
|
return {
|
|
22580
22621
|
name: "Shell Session",
|
|
@@ -22590,7 +22631,7 @@ var Jx = /* @__PURE__ */ h(((e, t) => {
|
|
|
22590
22631
|
};
|
|
22591
22632
|
}
|
|
22592
22633
|
t.exports = n;
|
|
22593
|
-
})),
|
|
22634
|
+
})), jS = /* @__PURE__ */ h(((e, t) => {
|
|
22594
22635
|
function n(e) {
|
|
22595
22636
|
let t = e.regex, n = e.COMMENT("--", "$"), r = {
|
|
22596
22637
|
scope: "string",
|
|
@@ -22707,7 +22748,7 @@ var Jx = /* @__PURE__ */ h(((e, t) => {
|
|
|
22707
22748
|
};
|
|
22708
22749
|
}
|
|
22709
22750
|
t.exports = n;
|
|
22710
|
-
})),
|
|
22751
|
+
})), MS = /* @__PURE__ */ h(((e, t) => {
|
|
22711
22752
|
function n(e) {
|
|
22712
22753
|
return e ? typeof e == "string" ? e : e.source : null;
|
|
22713
22754
|
}
|
|
@@ -23280,7 +23321,7 @@ var Jx = /* @__PURE__ */ h(((e, t) => {
|
|
|
23280
23321
|
};
|
|
23281
23322
|
}
|
|
23282
23323
|
t.exports = T;
|
|
23283
|
-
})),
|
|
23324
|
+
})), NS = /* @__PURE__ */ h(((e, t) => {
|
|
23284
23325
|
function n(e) {
|
|
23285
23326
|
let t = "true false yes no null", n = {
|
|
23286
23327
|
className: "attr",
|
|
@@ -23423,7 +23464,7 @@ var Jx = /* @__PURE__ */ h(((e, t) => {
|
|
|
23423
23464
|
};
|
|
23424
23465
|
}
|
|
23425
23466
|
t.exports = n;
|
|
23426
|
-
})),
|
|
23467
|
+
})), PS = /* @__PURE__ */ h(((e, t) => {
|
|
23427
23468
|
var n = "[A-Za-z$_][0-9A-Za-z$_]*", r = /* @__PURE__ */ "as.in.of.if.for.while.finally.var.new.function.do.return.void.else.break.catch.instanceof.with.throw.case.default.try.switch.continue.typeof.delete.let.yield.const.class.debugger.async.await.static.import.from.export.extends.using".split("."), i = [
|
|
23428
23469
|
"true",
|
|
23429
23470
|
"false",
|
|
@@ -23943,7 +23984,7 @@ var Jx = /* @__PURE__ */ h(((e, t) => {
|
|
|
23943
23984
|
}), a;
|
|
23944
23985
|
}
|
|
23945
23986
|
t.exports = d;
|
|
23946
|
-
})),
|
|
23987
|
+
})), FS = /* @__PURE__ */ h(((e, t) => {
|
|
23947
23988
|
function n(e) {
|
|
23948
23989
|
let t = e.regex, n = {
|
|
23949
23990
|
className: "string",
|
|
@@ -24011,7 +24052,7 @@ var Jx = /* @__PURE__ */ h(((e, t) => {
|
|
|
24011
24052
|
};
|
|
24012
24053
|
}
|
|
24013
24054
|
t.exports = n;
|
|
24014
|
-
})),
|
|
24055
|
+
})), IS = /* @__PURE__ */ h(((e, t) => {
|
|
24015
24056
|
function n(e) {
|
|
24016
24057
|
e.regex;
|
|
24017
24058
|
let t = e.COMMENT(/\(;/, /;\)/);
|
|
@@ -24073,71 +24114,71 @@ var Jx = /* @__PURE__ */ h(((e, t) => {
|
|
|
24073
24114
|
};
|
|
24074
24115
|
}
|
|
24075
24116
|
t.exports = n;
|
|
24076
|
-
})),
|
|
24077
|
-
var n =
|
|
24078
|
-
n.registerLanguage("xml",
|
|
24117
|
+
})), LS = (/* @__PURE__ */ _((/* @__PURE__ */ h(((e, t) => {
|
|
24118
|
+
var n = eS();
|
|
24119
|
+
n.registerLanguage("xml", tS()), n.registerLanguage("bash", nS()), n.registerLanguage("c", rS()), n.registerLanguage("cpp", iS()), n.registerLanguage("csharp", aS()), n.registerLanguage("css", oS()), n.registerLanguage("markdown", sS()), n.registerLanguage("diff", cS()), n.registerLanguage("ruby", lS()), n.registerLanguage("go", uS()), n.registerLanguage("graphql", dS()), n.registerLanguage("ini", fS()), n.registerLanguage("java", pS()), n.registerLanguage("javascript", mS()), n.registerLanguage("json", hS()), n.registerLanguage("kotlin", gS()), n.registerLanguage("less", _S()), n.registerLanguage("lua", vS()), n.registerLanguage("makefile", yS()), n.registerLanguage("perl", bS()), n.registerLanguage("objectivec", xS()), n.registerLanguage("php", SS()), n.registerLanguage("php-template", CS()), n.registerLanguage("plaintext", wS()), n.registerLanguage("python", TS()), n.registerLanguage("python-repl", ES()), n.registerLanguage("r", DS()), n.registerLanguage("rust", OS()), n.registerLanguage("scss", kS()), n.registerLanguage("shell", AS()), n.registerLanguage("sql", jS()), n.registerLanguage("swift", MS()), n.registerLanguage("yaml", NS()), n.registerLanguage("typescript", PS()), n.registerLanguage("vbnet", FS()), n.registerLanguage("wasm", IS()), n.HighlightJS = n, n.default = n, t.exports = n;
|
|
24079
24120
|
})))())).default;
|
|
24080
24121
|
//#endregion
|
|
24081
24122
|
//#region src/core/composables/useMarkdown.ts
|
|
24082
|
-
|
|
24123
|
+
$x.setOptions({
|
|
24083
24124
|
breaks: !0,
|
|
24084
24125
|
gfm: !0
|
|
24085
24126
|
});
|
|
24086
|
-
var
|
|
24087
|
-
|
|
24127
|
+
var RS = 2e4, zS = new $x.Renderer();
|
|
24128
|
+
zS.code = ({ text: e, lang: t }) => {
|
|
24088
24129
|
let n = (t || "").trim() || "plaintext", r = "";
|
|
24089
|
-
if (e.length > 2e4) r =
|
|
24130
|
+
if (e.length > 2e4) r = VS(e);
|
|
24090
24131
|
else try {
|
|
24091
|
-
r =
|
|
24132
|
+
r = LS.highlight(e, {
|
|
24092
24133
|
language: n,
|
|
24093
24134
|
ignoreIllegals: !0
|
|
24094
24135
|
}).value;
|
|
24095
24136
|
} catch {
|
|
24096
|
-
r =
|
|
24137
|
+
r = VS(e);
|
|
24097
24138
|
}
|
|
24098
|
-
let i = encodeURIComponent(e), a =
|
|
24139
|
+
let i = encodeURIComponent(e), a = BS(n);
|
|
24099
24140
|
return `<pre class="code-block" data-lang="${a}" data-code="${i}"><code class="hljs language-${a}">${r}</code></pre>`;
|
|
24100
24141
|
};
|
|
24101
|
-
function
|
|
24142
|
+
function BS(e) {
|
|
24102
24143
|
return e.replace(/&/g, "&").replace(/"/g, """).replace(/</g, "<").replace(/>/g, ">");
|
|
24103
24144
|
}
|
|
24104
|
-
function
|
|
24145
|
+
function VS(e) {
|
|
24105
24146
|
return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">");
|
|
24106
24147
|
}
|
|
24107
|
-
var
|
|
24148
|
+
var HS = { ADD_ATTR: [
|
|
24108
24149
|
"data-code",
|
|
24109
24150
|
"data-lang",
|
|
24110
24151
|
"target",
|
|
24111
24152
|
"rel"
|
|
24112
24153
|
] };
|
|
24113
|
-
function
|
|
24114
|
-
return Yv.sanitize(e,
|
|
24154
|
+
function US(e) {
|
|
24155
|
+
return Yv.sanitize(e, HS);
|
|
24115
24156
|
}
|
|
24116
|
-
function
|
|
24117
|
-
return
|
|
24157
|
+
function WS(e) {
|
|
24158
|
+
return $x.parse(e || "", { renderer: zS });
|
|
24118
24159
|
}
|
|
24119
|
-
function
|
|
24120
|
-
return
|
|
24160
|
+
function GS(e) {
|
|
24161
|
+
return US(WS(e));
|
|
24121
24162
|
}
|
|
24122
|
-
var
|
|
24123
|
-
function
|
|
24124
|
-
let t = /* @__PURE__ */ Tn(
|
|
24163
|
+
var KS = 100, qS = 2e3;
|
|
24164
|
+
function JS(e) {
|
|
24165
|
+
let t = /* @__PURE__ */ Tn(GS(e())), n = 0, r = null;
|
|
24125
24166
|
function i() {
|
|
24126
|
-
r = null, n = Date.now(), t.value =
|
|
24167
|
+
r = null, n = Date.now(), t.value = GS(e());
|
|
24127
24168
|
}
|
|
24128
24169
|
return ri(e, () => {
|
|
24129
24170
|
let a = e();
|
|
24130
|
-
if (a.length <=
|
|
24131
|
-
r &&= (clearTimeout(r), null), n = Date.now(), t.value =
|
|
24171
|
+
if (a.length <= qS) {
|
|
24172
|
+
r &&= (clearTimeout(r), null), n = Date.now(), t.value = GS(a);
|
|
24132
24173
|
return;
|
|
24133
24174
|
}
|
|
24134
|
-
let o = n +
|
|
24175
|
+
let o = n + KS - Date.now();
|
|
24135
24176
|
o <= 0 ? (r &&= (clearTimeout(r), null), i()) : r ||= setTimeout(i, o);
|
|
24136
24177
|
}), Ze(() => {
|
|
24137
24178
|
r &&= (clearTimeout(r), null);
|
|
24138
24179
|
}), {
|
|
24139
24180
|
html: t,
|
|
24140
|
-
codeBlocks:
|
|
24181
|
+
codeBlocks: Qs(() => {
|
|
24141
24182
|
let t = [], n = /```(\w+)?\n([\s\S]*?)```/g, r;
|
|
24142
24183
|
for (; (r = n.exec(e() || "")) !== null;) t.push({
|
|
24143
24184
|
lang: (r[1] || "plaintext").toLowerCase(),
|
|
@@ -24149,20 +24190,20 @@ function HS(e) {
|
|
|
24149
24190
|
}
|
|
24150
24191
|
//#endregion
|
|
24151
24192
|
//#region src/core/components/CodePreview.vue?vue&type=script&setup=true&lang.ts
|
|
24152
|
-
var
|
|
24193
|
+
var YS = { class: "code-preview-modal" }, XS = { class: "preview-header" }, ZS = { class: "preview-title" }, QS = { class: "preview-tabs" }, $S = ["disabled"], eC = { class: "preview-actions" }, tC = ["title"], nC = {
|
|
24153
24194
|
key: 0,
|
|
24154
24195
|
viewBox: "0 0 16 16",
|
|
24155
24196
|
fill: "none",
|
|
24156
24197
|
"aria-hidden": "true"
|
|
24157
|
-
},
|
|
24198
|
+
}, rC = {
|
|
24158
24199
|
key: 1,
|
|
24159
24200
|
viewBox: "0 0 16 16",
|
|
24160
24201
|
fill: "none",
|
|
24161
24202
|
"aria-hidden": "true"
|
|
24162
|
-
},
|
|
24203
|
+
}, iC = ["title"], aC = ["title"], oC = { class: "preview-body" }, sC = ["srcdoc"], cC = {
|
|
24163
24204
|
key: 1,
|
|
24164
24205
|
class: "preview-source"
|
|
24165
|
-
},
|
|
24206
|
+
}, lC = /*#__PURE__*/ sy(/* @__PURE__ */ Ii({
|
|
24166
24207
|
__name: "CodePreview",
|
|
24167
24208
|
props: {
|
|
24168
24209
|
code: {},
|
|
@@ -24171,7 +24212,7 @@ var US = { class: "code-preview-modal" }, WS = { class: "preview-header" }, GS =
|
|
|
24171
24212
|
},
|
|
24172
24213
|
emits: ["close"],
|
|
24173
24214
|
setup(e, { emit: t }) {
|
|
24174
|
-
let n = e, r = t, i = /* @__PURE__ */ wn(null), a = /* @__PURE__ */ wn("preview"), o = /* @__PURE__ */ wn(!1), s =
|
|
24215
|
+
let n = e, r = t, i = /* @__PURE__ */ wn(null), a = /* @__PURE__ */ wn("preview"), o = /* @__PURE__ */ wn(!1), s = Qs(() => {
|
|
24175
24216
|
let e = n.lang.toLowerCase();
|
|
24176
24217
|
return [
|
|
24177
24218
|
"html",
|
|
@@ -24181,7 +24222,7 @@ var US = { class: "code-preview-modal" }, WS = { class: "preview-header" }, GS =
|
|
|
24181
24222
|
"js",
|
|
24182
24223
|
"css"
|
|
24183
24224
|
].includes(e);
|
|
24184
|
-
}), c =
|
|
24225
|
+
}), c = Qs(() => {
|
|
24185
24226
|
let e = n.lang.toLowerCase();
|
|
24186
24227
|
if (e === "html" || e === "htm") return n.code;
|
|
24187
24228
|
if (e === "vue") return l(n.code);
|
|
@@ -24229,28 +24270,28 @@ app.mount('#app');
|
|
|
24229
24270
|
return (t, n) => (J(), Y("div", {
|
|
24230
24271
|
class: "code-preview-overlay",
|
|
24231
24272
|
onClick: n[3] ||= yl((e) => r("close"), ["self"])
|
|
24232
|
-
}, [X("div",
|
|
24233
|
-
X("span",
|
|
24234
|
-
X("div",
|
|
24273
|
+
}, [X("div", YS, [X("div", XS, [
|
|
24274
|
+
X("span", ZS, U(e.messages.codePreviewTitlePrefix) + U(e.lang), 1),
|
|
24275
|
+
X("div", QS, [X("button", {
|
|
24235
24276
|
class: H({ active: a.value === "preview" }),
|
|
24236
24277
|
disabled: !s.value,
|
|
24237
24278
|
onClick: n[0] ||= (e) => a.value = "preview"
|
|
24238
|
-
}, U(e.messages.codePreviewTab), 11,
|
|
24279
|
+
}, U(e.messages.codePreviewTab), 11, $S), X("button", {
|
|
24239
24280
|
class: H({ active: a.value === "source" }),
|
|
24240
24281
|
onClick: n[1] ||= (e) => a.value = "source"
|
|
24241
24282
|
}, U(e.messages.codeSourceTab), 3)]),
|
|
24242
|
-
X("div",
|
|
24283
|
+
X("div", eC, [
|
|
24243
24284
|
X("button", {
|
|
24244
24285
|
class: H(["icon-btn", { done: o.value }]),
|
|
24245
24286
|
title: o.value ? e.messages.copied : e.messages.codeCopyTitle,
|
|
24246
24287
|
onClick: u
|
|
24247
|
-
}, [o.value ? (J(), Y("svg",
|
|
24288
|
+
}, [o.value ? (J(), Y("svg", nC, [...n[4] ||= [X("path", {
|
|
24248
24289
|
d: "M3 8.5l3 3 7-7",
|
|
24249
24290
|
stroke: "currentColor",
|
|
24250
24291
|
"stroke-width": "1.6",
|
|
24251
24292
|
"stroke-linecap": "round",
|
|
24252
24293
|
"stroke-linejoin": "round"
|
|
24253
|
-
}, null, -1)]])) : (J(), Y("svg",
|
|
24294
|
+
}, null, -1)]])) : (J(), Y("svg", rC, [...n[5] ||= [X("rect", {
|
|
24254
24295
|
x: "5.5",
|
|
24255
24296
|
y: "5.5",
|
|
24256
24297
|
width: "8",
|
|
@@ -24262,7 +24303,7 @@ app.mount('#app');
|
|
|
24262
24303
|
d: "M10.5 3.5v-.5A1.5 1.5 0 0 0 9 1.5H3.5A1.5 1.5 0 0 0 2 3v5.5A1.5 1.5 0 0 0 3.5 10H4",
|
|
24263
24304
|
stroke: "currentColor",
|
|
24264
24305
|
"stroke-width": "1.3"
|
|
24265
|
-
}, null, -1)]]))], 10,
|
|
24306
|
+
}, null, -1)]]))], 10, tC),
|
|
24266
24307
|
X("button", {
|
|
24267
24308
|
class: "icon-btn",
|
|
24268
24309
|
title: e.messages.codeOpenTitle,
|
|
@@ -24282,7 +24323,7 @@ app.mount('#app');
|
|
|
24282
24323
|
"stroke-width": "1.3",
|
|
24283
24324
|
"stroke-linecap": "round",
|
|
24284
24325
|
"stroke-linejoin": "round"
|
|
24285
|
-
})], -1)]], 8,
|
|
24326
|
+
})], -1)]], 8, iC),
|
|
24286
24327
|
X("button", {
|
|
24287
24328
|
class: "icon-btn",
|
|
24288
24329
|
title: e.messages.close,
|
|
@@ -24296,25 +24337,25 @@ app.mount('#app');
|
|
|
24296
24337
|
stroke: "currentColor",
|
|
24297
24338
|
"stroke-width": "1.4",
|
|
24298
24339
|
"stroke-linecap": "round"
|
|
24299
|
-
})], -1)]], 8,
|
|
24340
|
+
})], -1)]], 8, aC)
|
|
24300
24341
|
])
|
|
24301
|
-
]), X("div",
|
|
24342
|
+
]), X("div", oC, [a.value === "preview" && s.value ? (J(), Y("iframe", {
|
|
24302
24343
|
key: 0,
|
|
24303
24344
|
ref_key: "iframeRef",
|
|
24304
24345
|
ref: i,
|
|
24305
24346
|
class: "preview-iframe",
|
|
24306
24347
|
sandbox: "allow-scripts allow-modals allow-popups allow-forms",
|
|
24307
24348
|
srcdoc: c.value
|
|
24308
|
-
}, null, 8,
|
|
24349
|
+
}, null, 8, sC)) : (J(), Y("pre", cC, [X("code", null, U(e.code), 1)]))])])]));
|
|
24309
24350
|
}
|
|
24310
|
-
}), [["__scopeId", "data-v-27eac25e"]]),
|
|
24351
|
+
}), [["__scopeId", "data-v-27eac25e"]]), uC = ["innerHTML"], dC = /* @__PURE__ */ Ii({
|
|
24311
24352
|
__name: "MessageContent",
|
|
24312
24353
|
props: {
|
|
24313
24354
|
content: {},
|
|
24314
24355
|
messages: { default: () => b_ }
|
|
24315
24356
|
},
|
|
24316
24357
|
setup(e) {
|
|
24317
|
-
let t = e, { html: n, codeBlocks: r } =
|
|
24358
|
+
let t = e, { html: n, codeBlocks: r } = JS(() => t.content), i = /* @__PURE__ */ wn(null), a = /* @__PURE__ */ wn(null), o = [
|
|
24318
24359
|
"html",
|
|
24319
24360
|
"htm",
|
|
24320
24361
|
"vue",
|
|
@@ -24387,7 +24428,7 @@ app.mount('#app');
|
|
|
24387
24428
|
ref_key: "containerRef",
|
|
24388
24429
|
ref: i,
|
|
24389
24430
|
innerHTML: G(n)
|
|
24390
|
-
}, null, 8,
|
|
24431
|
+
}, null, 8, uC), (J(), os(vi, { to: "body" }, [a.value ? (J(), os(lC, {
|
|
24391
24432
|
key: 0,
|
|
24392
24433
|
code: a.value.code,
|
|
24393
24434
|
lang: a.value.lang,
|
|
@@ -24397,12 +24438,12 @@ app.mount('#app');
|
|
|
24397
24438
|
"code",
|
|
24398
24439
|
"lang",
|
|
24399
24440
|
"messages"
|
|
24400
|
-
])) :
|
|
24441
|
+
])) : Q("", !0)]))], 64));
|
|
24401
24442
|
}
|
|
24402
|
-
}),
|
|
24443
|
+
}), fC = { class: "typing-text" }, pC = {
|
|
24403
24444
|
key: 0,
|
|
24404
24445
|
class: "stream-cursor"
|
|
24405
|
-
},
|
|
24446
|
+
}, mC = /*#__PURE__*/ sy(/* @__PURE__ */ Ii({
|
|
24406
24447
|
__name: "MessageBubble",
|
|
24407
24448
|
props: {
|
|
24408
24449
|
content: {},
|
|
@@ -24413,29 +24454,29 @@ app.mount('#app');
|
|
|
24413
24454
|
messages: { default: () => ({ ...b_ }) }
|
|
24414
24455
|
},
|
|
24415
24456
|
setup(e) {
|
|
24416
|
-
return (t, n) => (J(), Y(q, null, [X("div", { class: H(["message-bubble", [e.role, { typing: e.isPendingAssistant }]]) }, [e.isPendingAssistant ? (J(), Y(q, { key: 0 }, [X("span", { class: H(["typing-dot", { pulse: e.showTyping }]) }, null, 2), X("span",
|
|
24457
|
+
return (t, n) => (J(), Y(q, null, [X("div", { class: H(["message-bubble", [e.role, { typing: e.isPendingAssistant }]]) }, [e.isPendingAssistant ? (J(), Y(q, { key: 0 }, [X("span", { class: H(["typing-dot", { pulse: e.showTyping }]) }, null, 2), X("span", fC, [Z(uy, { text: e.messages.thinking }, null, 8, ["text"])])], 64)) : (J(), Y(q, { key: 1 }, [e.role === "assistant" ? (J(), os(dC, {
|
|
24417
24458
|
key: 0,
|
|
24418
24459
|
content: e.content,
|
|
24419
24460
|
messages: e.messages
|
|
24420
|
-
}, null, 8, ["content", "messages"])) : (J(), Y(q, { key: 1 }, [
|
|
24461
|
+
}, null, 8, ["content", "messages"])) : (J(), Y(q, { key: 1 }, [_s(U(e.content), 1)], 64))], 64))], 2), e.showCursor ? (J(), Y("span", pC)) : Q("", !0)], 64));
|
|
24421
24462
|
}
|
|
24422
|
-
}), [["__scopeId", "data-v-
|
|
24463
|
+
}), [["__scopeId", "data-v-2aaa2787"]]), hC = { class: "message-time" }, gC = /*#__PURE__*/ sy(/* @__PURE__ */ Ii({
|
|
24423
24464
|
__name: "MessageTime",
|
|
24424
24465
|
props: { time: {} },
|
|
24425
24466
|
setup(e) {
|
|
24426
|
-
return (t, n) => (J(), Y("div",
|
|
24467
|
+
return (t, n) => (J(), Y("div", hC, U(e.time), 1));
|
|
24427
24468
|
}
|
|
24428
|
-
}), [["__scopeId", "data-v-4a976e4a"]]),
|
|
24469
|
+
}), [["__scopeId", "data-v-4a976e4a"]]), _C = { class: "msg-actions" }, vC = ["title"], yC = {
|
|
24429
24470
|
key: 0,
|
|
24430
24471
|
viewBox: "0 0 16 16",
|
|
24431
24472
|
fill: "none",
|
|
24432
24473
|
"aria-hidden": "true"
|
|
24433
|
-
},
|
|
24474
|
+
}, bC = {
|
|
24434
24475
|
key: 1,
|
|
24435
24476
|
viewBox: "0 0 16 16",
|
|
24436
24477
|
fill: "none",
|
|
24437
24478
|
"aria-hidden": "true"
|
|
24438
|
-
},
|
|
24479
|
+
}, xC = /*#__PURE__*/ sy(/* @__PURE__ */ Ii({
|
|
24439
24480
|
__name: "MessageActions",
|
|
24440
24481
|
props: {
|
|
24441
24482
|
copied: { type: Boolean },
|
|
@@ -24443,17 +24484,17 @@ app.mount('#app');
|
|
|
24443
24484
|
},
|
|
24444
24485
|
emits: ["copy", "regenerate"],
|
|
24445
24486
|
setup(e) {
|
|
24446
|
-
return (t, n) => (J(), Y("div",
|
|
24487
|
+
return (t, n) => (J(), Y("div", _C, [X("button", {
|
|
24447
24488
|
class: H(["msg-action-btn", { done: e.copied }]),
|
|
24448
24489
|
title: e.copied ? e.messages.copied : e.messages.copy,
|
|
24449
24490
|
onClick: n[0] ||= (e) => t.$emit("copy")
|
|
24450
|
-
}, [e.copied ? (J(), Y("svg",
|
|
24491
|
+
}, [e.copied ? (J(), Y("svg", yC, [...n[2] ||= [X("path", {
|
|
24451
24492
|
d: "M3 8.5l3 3 7-7",
|
|
24452
24493
|
stroke: "currentColor",
|
|
24453
24494
|
"stroke-width": "1.6",
|
|
24454
24495
|
"stroke-linecap": "round",
|
|
24455
24496
|
"stroke-linejoin": "round"
|
|
24456
|
-
}, null, -1)]])) : (J(), Y("svg",
|
|
24497
|
+
}, null, -1)]])) : (J(), Y("svg", bC, [...n[3] ||= [X("rect", {
|
|
24457
24498
|
x: "5.5",
|
|
24458
24499
|
y: "5.5",
|
|
24459
24500
|
width: "8",
|
|
@@ -24465,7 +24506,7 @@ app.mount('#app');
|
|
|
24465
24506
|
d: "M10.5 3.5v-.5A1.5 1.5 0 0 0 9 1.5H3.5A1.5 1.5 0 0 0 2 3v5.5A1.5 1.5 0 0 0 3.5 10H4",
|
|
24466
24507
|
stroke: "currentColor",
|
|
24467
24508
|
"stroke-width": "1.3"
|
|
24468
|
-
}, null, -1)]])), X("span", null, U(e.copied ? e.messages.copied : e.messages.copy), 1)], 10,
|
|
24509
|
+
}, null, -1)]])), X("span", null, U(e.copied ? e.messages.copied : e.messages.copy), 1)], 10, vC), X("button", {
|
|
24469
24510
|
class: "msg-action-btn",
|
|
24470
24511
|
onClick: n[1] ||= (e) => t.$emit("regenerate")
|
|
24471
24512
|
}, [n[4] ||= X("svg", {
|
|
@@ -24485,38 +24526,38 @@ app.mount('#app');
|
|
|
24485
24526
|
"stroke-linejoin": "round"
|
|
24486
24527
|
})], -1), X("span", null, U(e.messages.regenerate), 1)])]));
|
|
24487
24528
|
}
|
|
24488
|
-
}), [["__scopeId", "data-v-dc051a49"]]),
|
|
24529
|
+
}), [["__scopeId", "data-v-dc051a49"]]), SC = {
|
|
24489
24530
|
key: 1,
|
|
24490
24531
|
class: "avatar-icon",
|
|
24491
24532
|
viewBox: "0 0 1024 1024",
|
|
24492
24533
|
xmlns: "http://www.w3.org/2000/svg",
|
|
24493
24534
|
"aria-hidden": "true"
|
|
24494
|
-
},
|
|
24535
|
+
}, CC = {
|
|
24495
24536
|
key: 2,
|
|
24496
24537
|
class: "avatar-icon",
|
|
24497
24538
|
viewBox: "0 0 1024 1024",
|
|
24498
24539
|
xmlns: "http://www.w3.org/2000/svg",
|
|
24499
24540
|
"aria-hidden": "true"
|
|
24500
|
-
},
|
|
24541
|
+
}, wC = /*#__PURE__*/ sy(/* @__PURE__ */ Ii({
|
|
24501
24542
|
__name: "AvatarIcon",
|
|
24502
24543
|
props: {
|
|
24503
24544
|
role: {},
|
|
24504
24545
|
glyph: {}
|
|
24505
24546
|
},
|
|
24506
24547
|
setup(e) {
|
|
24507
|
-
return (t, n) => e.glyph ? (J(), os(
|
|
24548
|
+
return (t, n) => e.glyph ? (J(), os(cy, {
|
|
24508
24549
|
key: 0,
|
|
24509
24550
|
icon: e.glyph,
|
|
24510
24551
|
class: "avatar-glyph"
|
|
24511
|
-
}, null, 8, ["icon"])) : e.role === "user" ? (J(), Y("svg",
|
|
24552
|
+
}, null, 8, ["icon"])) : e.role === "user" ? (J(), Y("svg", SC, [...n[0] ||= [X("path", { d: "M512 170.688a149.312 149.312 0 1 0 0 298.624 149.312 149.312 0 0 0 0-298.624zM277.312 320a234.688 234.688 0 1 1 469.376 0 234.688 234.688 0 0 1-469.376 0zM128 810.688a213.312 213.312 0 0 1 213.312-213.312h341.376A213.312 213.312 0 0 1 896 810.688v128H128v-128z m213.312-128a128 128 0 0 0-128 128v42.688h597.376v-42.688a128 128 0 0 0-128-128H341.312z" }, null, -1)]])) : (J(), Y("svg", CC, [...n[1] ||= [X("path", { d: "M717.12 274H762c82.842 0 150 67.158 150 150v200c0 82.842-67.158 150-150 150H262c-82.842 0-150-67.158-150-150V424c0-82.842 67.158-150 150-150h44.88l-18.268-109.602c-4.086-24.514 12.476-47.7 36.99-51.786 24.514-4.086 47.7 12.476 51.786 36.99l20 120c0.246 1.472 0.416 2.94 0.516 4.398h228.192c0.1-1.46 0.27-2.926 0.516-4.398l20-120c4.086-24.514 27.272-41.076 51.786-36.99 24.514 4.086 41.076 27.272 36.99 51.786L717.12 274zM262 364c-33.138 0-60 26.862-60 60v200c0 33.138 26.862 60 60 60h500c33.138 0 60-26.862 60-60V424c0-33.138-26.862-60-60-60H262z m50 548c-24.852 0-45-20.148-45-45S287.148 822 312 822h400c24.852 0 45 20.148 45 45S736.852 912 712 912H312z m-4-428c0-24.852 20.148-45 45-45S398 459.148 398 484v40c0 24.852-20.148 45-45 45S308 548.852 308 524v-40z m318 0c0-24.852 20.148-45 45-45S716 459.148 716 484v40c0 24.852-20.148 45-45 45S626 548.852 626 524v-40z" }, null, -1)]]));
|
|
24512
24553
|
}
|
|
24513
|
-
}), [["__scopeId", "data-v-a0b508ea"]]),
|
|
24554
|
+
}), [["__scopeId", "data-v-a0b508ea"]]), TC = ["data-msg-idx"], EC = {
|
|
24514
24555
|
key: 0,
|
|
24515
24556
|
class: "message-avatar"
|
|
24516
|
-
},
|
|
24557
|
+
}, DC = { class: "message-content" }, OC = {
|
|
24517
24558
|
key: 2,
|
|
24518
24559
|
class: "msg-focuses"
|
|
24519
|
-
},
|
|
24560
|
+
}, kC = ["title", "onClick"], AC = /*#__PURE__*/ sy(/* @__PURE__ */ Ii({
|
|
24520
24561
|
__name: "MessageRow",
|
|
24521
24562
|
props: {
|
|
24522
24563
|
message: {},
|
|
@@ -24536,21 +24577,21 @@ app.mount('#app');
|
|
|
24536
24577
|
"regenerate"
|
|
24537
24578
|
],
|
|
24538
24579
|
setup(e) {
|
|
24539
|
-
let t = e, n = E_(), r =
|
|
24580
|
+
let t = e, n = E_(), r = Qs(() => t.message.role === "assistant"), i = Qs(() => r.value && "reasoning" in t.message ? t.message.reasoning ?? "" : ""), a = Qs(() => r.value && "steps" in t.message ? t.message.steps ?? [] : []), o = Qs(() => r.value && !!t.message.content && !t.loading && t.isLast), s = Qs(() => r.value && t.loading && t.isLast && !!t.message.content);
|
|
24540
24581
|
return (t, c) => (J(), Y("div", {
|
|
24541
24582
|
class: H(["message-row", e.message.role]),
|
|
24542
24583
|
"data-msg-idx": e.index
|
|
24543
|
-
}, [e.showAvatar ? (J(), Y("div",
|
|
24584
|
+
}, [e.showAvatar ? (J(), Y("div", EC, [Z(wC, {
|
|
24544
24585
|
role: e.message.role,
|
|
24545
24586
|
glyph: e.message.role === "user" ? G(n).icons.userAvatar : G(n).icons.assistantAvatar
|
|
24546
|
-
}, null, 8, ["role", "glyph"])])) :
|
|
24547
|
-
r.value ? (J(), os(
|
|
24587
|
+
}, null, 8, ["role", "glyph"])])) : Q("", !0), X("div", DC, [
|
|
24588
|
+
r.value ? (J(), os(Uy, {
|
|
24548
24589
|
key: 0,
|
|
24549
24590
|
text: i.value,
|
|
24550
24591
|
expanded: e.reasoningExpanded,
|
|
24551
24592
|
onToggle: c[0] ||= (e) => t.$emit("toggle-reasoning")
|
|
24552
|
-
}, null, 8, ["text", "expanded"])) :
|
|
24553
|
-
r.value ? (J(), os(
|
|
24593
|
+
}, null, 8, ["text", "expanded"])) : Q("", !0),
|
|
24594
|
+
r.value ? (J(), os(yb, {
|
|
24554
24595
|
key: 1,
|
|
24555
24596
|
steps: a.value,
|
|
24556
24597
|
icons: G(n).icons,
|
|
@@ -24559,14 +24600,14 @@ app.mount('#app');
|
|
|
24559
24600
|
"steps",
|
|
24560
24601
|
"icons",
|
|
24561
24602
|
"messages"
|
|
24562
|
-
])) :
|
|
24563
|
-
e.message.role === "user" && e.message.focuses?.length ? (J(), Y("div",
|
|
24603
|
+
])) : Q("", !0),
|
|
24604
|
+
e.message.role === "user" && e.message.focuses?.length ? (J(), Y("div", OC, [(J(!0), Y(q, null, ca(e.message.focuses, (e) => (J(), Y("span", {
|
|
24564
24605
|
key: e.path,
|
|
24565
24606
|
class: "msg-focus-chip",
|
|
24566
24607
|
title: G(n).messages.historyFocusChipTitlePrefix + e.path,
|
|
24567
24608
|
onClick: (t) => G(n).focusChipClick(e)
|
|
24568
|
-
}, [
|
|
24569
|
-
|
|
24609
|
+
}, [Z(cy, { icon: G(n).icons.focus }, null, 8, ["icon"]), _s(" " + U(e.path), 1)], 8, kC))), 128))])) : Q("", !0),
|
|
24610
|
+
Z(mC, {
|
|
24570
24611
|
messages: G(n).messages,
|
|
24571
24612
|
content: e.message.content,
|
|
24572
24613
|
role: e.message.role,
|
|
@@ -24581,39 +24622,39 @@ app.mount('#app');
|
|
|
24581
24622
|
"show-typing",
|
|
24582
24623
|
"show-cursor"
|
|
24583
24624
|
]),
|
|
24584
|
-
|
|
24585
|
-
o.value ? (J(), os(
|
|
24625
|
+
Z(gC, { time: e.time }, null, 8, ["time"]),
|
|
24626
|
+
o.value ? (J(), os(xC, {
|
|
24586
24627
|
key: 3,
|
|
24587
24628
|
messages: G(n).messages,
|
|
24588
24629
|
copied: e.copied,
|
|
24589
24630
|
onCopy: c[1] ||= (e) => t.$emit("copy"),
|
|
24590
24631
|
onRegenerate: c[2] ||= (e) => t.$emit("regenerate")
|
|
24591
|
-
}, null, 8, ["messages", "copied"])) :
|
|
24592
|
-
])], 10,
|
|
24632
|
+
}, null, 8, ["messages", "copied"])) : Q("", !0)
|
|
24633
|
+
])], 10, TC));
|
|
24593
24634
|
}
|
|
24594
|
-
}), [["__scopeId", "data-v-18d4a5dd"]]),
|
|
24635
|
+
}), [["__scopeId", "data-v-18d4a5dd"]]), jC = { class: "chat-body" }, MC = {
|
|
24595
24636
|
key: 0,
|
|
24596
24637
|
class: "empty-state"
|
|
24597
|
-
},
|
|
24638
|
+
}, NC = { class: "empty-icon" }, PC = {
|
|
24598
24639
|
key: 1,
|
|
24599
24640
|
class: "message-row assistant"
|
|
24600
|
-
},
|
|
24641
|
+
}, FC = {
|
|
24601
24642
|
key: 0,
|
|
24602
24643
|
class: "message-avatar"
|
|
24603
|
-
},
|
|
24644
|
+
}, IC = { class: "message-content" }, LC = {
|
|
24604
24645
|
key: 2,
|
|
24605
24646
|
class: "error-bar"
|
|
24606
|
-
},
|
|
24647
|
+
}, RC = { class: "error-text" }, zC = ["title"], BC = /*#__PURE__*/ sy(/* @__PURE__ */ Ii({
|
|
24607
24648
|
__name: "MessageList",
|
|
24608
24649
|
props: {
|
|
24609
24650
|
showAvatar: { type: Boolean },
|
|
24610
24651
|
showTyping: { type: Boolean }
|
|
24611
24652
|
},
|
|
24612
24653
|
setup(e) {
|
|
24613
|
-
let { chat: t, formatTime: n, copiedMsg: r, copyMessage: i, isPendingAssistant: a, isReasoningExpanded: o, toggleReasoning: s, canUndo: c, undo: l, icons: u, messages: d } = E_(), { state: f, retry: p, regenerate: m } = t, h =
|
|
24614
|
-
return (t, v) => (J(), Y("div",
|
|
24615
|
-
h.value ?
|
|
24616
|
-
(J(!0), Y(q, null, ca(G(f).messages, (t, c) => (J(), os(
|
|
24654
|
+
let { chat: t, formatTime: n, copiedMsg: r, copyMessage: i, isPendingAssistant: a, isReasoningExpanded: o, toggleReasoning: s, canUndo: c, undo: l, icons: u, messages: d } = E_(), { state: f, retry: p, regenerate: m } = t, h = Qs(() => f.messages.length > 0), g = Qs(() => f.messages.some((e) => e.role === "user")), _ = Qs(() => f.messages[f.messages.length - 1]?.role === "assistant");
|
|
24655
|
+
return (t, v) => (J(), Y("div", jC, [
|
|
24656
|
+
h.value ? Q("", !0) : (J(), Y("div", MC, [X("div", NC, [Z(cy, { icon: G(u).empty }, null, 8, ["icon"])]), X("p", null, [Z(uy, { text: G(d).emptyGreeting }, null, 8, ["text"])])])),
|
|
24657
|
+
(J(!0), Y(q, null, ca(G(f).messages, (t, c) => (J(), os(AC, {
|
|
24617
24658
|
key: c,
|
|
24618
24659
|
message: t,
|
|
24619
24660
|
index: c,
|
|
@@ -24643,91 +24684,91 @@ app.mount('#app');
|
|
|
24643
24684
|
"onCopy",
|
|
24644
24685
|
"onRegenerate"
|
|
24645
24686
|
]))), 128)),
|
|
24646
|
-
G(f).loading && !_.value ? (J(), Y("div",
|
|
24687
|
+
G(f).loading && !_.value ? (J(), Y("div", PC, [e.showAvatar ? (J(), Y("div", FC, [Z(wC, {
|
|
24647
24688
|
role: "assistant",
|
|
24648
24689
|
glyph: G(u).assistantAvatar
|
|
24649
|
-
}, null, 8, ["glyph"])])) :
|
|
24690
|
+
}, null, 8, ["glyph"])])) : Q("", !0), X("div", IC, [Z(mC, {
|
|
24650
24691
|
content: "",
|
|
24651
24692
|
role: "assistant",
|
|
24652
24693
|
"is-pending-assistant": !0,
|
|
24653
24694
|
"show-typing": e.showTyping,
|
|
24654
24695
|
"show-cursor": !1,
|
|
24655
24696
|
messages: G(d)
|
|
24656
|
-
}, null, 8, ["show-typing", "messages"])])])) :
|
|
24657
|
-
G(f).error ? (J(), Y("div",
|
|
24658
|
-
X("span",
|
|
24697
|
+
}, null, 8, ["show-typing", "messages"])])])) : Q("", !0),
|
|
24698
|
+
G(f).error ? (J(), Y("div", LC, [
|
|
24699
|
+
X("span", RC, U(G(f).error), 1),
|
|
24659
24700
|
g.value ? (J(), Y("button", {
|
|
24660
24701
|
key: 0,
|
|
24661
24702
|
class: "retry-btn",
|
|
24662
24703
|
onClick: v[0] ||= (...e) => G(p) && G(p)(...e)
|
|
24663
|
-
},
|
|
24704
|
+
}, [Z(uy, { text: G(d).retry }, null, 8, ["text"])])) : Q("", !0),
|
|
24664
24705
|
G(c) ? (J(), Y("button", {
|
|
24665
24706
|
key: 1,
|
|
24666
24707
|
class: "undo-btn",
|
|
24667
24708
|
title: G(d).undoTitle,
|
|
24668
24709
|
onClick: v[1] ||= (...e) => G(l) && G(l)(...e)
|
|
24669
|
-
},
|
|
24670
|
-
])) :
|
|
24710
|
+
}, [Z(uy, { text: G(d).undo }, null, 8, ["text"])], 8, zC)) : Q("", !0)
|
|
24711
|
+
])) : Q("", !0)
|
|
24671
24712
|
]));
|
|
24672
24713
|
}
|
|
24673
|
-
}), [["__scopeId", "data-v-
|
|
24714
|
+
}), [["__scopeId", "data-v-080b33e4"]]), VC = {
|
|
24674
24715
|
key: 0,
|
|
24675
24716
|
class: "queued-bar"
|
|
24676
|
-
},
|
|
24717
|
+
}, HC = { class: "queued-head" }, UC = { class: "queued-icon" }, WC = { class: "queued-title" }, GC = { class: "queued-count" }, KC = { class: "queued-idx" }, qC = { class: "queued-text" }, JC = ["title", "onClick"], YC = ["title", "onClick"], XC = /*#__PURE__*/ sy(/* @__PURE__ */ Ii({
|
|
24677
24718
|
__name: "QueuedBar",
|
|
24678
24719
|
setup(e) {
|
|
24679
24720
|
let { chat: t, editQueued: n, icons: r, messages: i } = E_(), { queuedTasks: a, removeQueuedTask: o } = t;
|
|
24680
|
-
return (e, t) => G(a).length ? (J(), Y("div",
|
|
24681
|
-
X("span",
|
|
24682
|
-
X("span",
|
|
24683
|
-
X("span",
|
|
24721
|
+
return (e, t) => G(a).length ? (J(), Y("div", VC, [X("div", HC, [
|
|
24722
|
+
X("span", UC, [Z(cy, { icon: G(r).queued }, null, 8, ["icon"])]),
|
|
24723
|
+
X("span", WC, U(G(i).queuedTitle), 1),
|
|
24724
|
+
X("span", GC, U(G(a).length), 1)
|
|
24684
24725
|
]), (J(!0), Y(q, null, ca(G(a), (e, t) => (J(), Y("div", {
|
|
24685
24726
|
key: t,
|
|
24686
24727
|
class: "queued-item"
|
|
24687
24728
|
}, [
|
|
24688
|
-
X("span",
|
|
24689
|
-
X("span",
|
|
24729
|
+
X("span", KC, U(t + 1), 1),
|
|
24730
|
+
X("span", qC, U(e), 1),
|
|
24690
24731
|
X("button", {
|
|
24691
24732
|
class: "queued-act",
|
|
24692
24733
|
title: G(i).queuedEditTitle,
|
|
24693
24734
|
onClick: (e) => G(n)(t)
|
|
24694
|
-
}, [
|
|
24735
|
+
}, [Z(cy, { icon: G(r).queuedEdit }, null, 8, ["icon"])], 8, JC),
|
|
24695
24736
|
X("button", {
|
|
24696
24737
|
class: "queued-act queued-del",
|
|
24697
24738
|
title: G(i).removeQueuedTitle,
|
|
24698
24739
|
onClick: (e) => G(o)(t)
|
|
24699
|
-
}, "✕", 8,
|
|
24700
|
-
]))), 128))])) :
|
|
24740
|
+
}, "✕", 8, YC)
|
|
24741
|
+
]))), 128))])) : Q("", !0);
|
|
24701
24742
|
}
|
|
24702
|
-
}), [["__scopeId", "data-v-7b61eb04"]]),
|
|
24743
|
+
}), [["__scopeId", "data-v-7b61eb04"]]), ZC = {
|
|
24703
24744
|
key: 0,
|
|
24704
24745
|
class: "approval-bar"
|
|
24705
|
-
},
|
|
24746
|
+
}, QC = { class: "approval-head" }, $C = { class: "approval-title" }, ew = {
|
|
24706
24747
|
key: 0,
|
|
24707
24748
|
class: "approval-question"
|
|
24708
|
-
},
|
|
24749
|
+
}, tw = {
|
|
24709
24750
|
key: 1,
|
|
24710
24751
|
class: "approval-context"
|
|
24711
|
-
},
|
|
24752
|
+
}, nw = {
|
|
24712
24753
|
key: 2,
|
|
24713
24754
|
class: "approval-recommend"
|
|
24714
|
-
},
|
|
24755
|
+
}, rw = {
|
|
24715
24756
|
key: 3,
|
|
24716
24757
|
class: "approval-options"
|
|
24717
|
-
},
|
|
24758
|
+
}, iw = ["onClick"], aw = { class: "approval-actions" }, ow = { class: "approval-head" }, sw = { class: "approval-title" }, cw = {
|
|
24718
24759
|
key: 0,
|
|
24719
24760
|
class: "approval-args"
|
|
24720
|
-
},
|
|
24761
|
+
}, lw = { class: "approval-actions" }, uw = /*#__PURE__*/ sy(/* @__PURE__ */ Ii({
|
|
24721
24762
|
__name: "ApprovalBar",
|
|
24722
24763
|
setup(e) {
|
|
24723
24764
|
let t = E_(), { pendingApproval: n, resolveApproval: r } = t.chat, i = t.messages, a = /* @__PURE__ */ wn(!1);
|
|
24724
24765
|
ri(n, () => {
|
|
24725
24766
|
a.value = !1;
|
|
24726
24767
|
});
|
|
24727
|
-
let o =
|
|
24768
|
+
let o = Qs(() => n.value?.toolName === "request_human_confirmation"), s = Qs(() => {
|
|
24728
24769
|
let e = n.value?.args?.options;
|
|
24729
24770
|
return Array.isArray(e) ? e.map(String) : [];
|
|
24730
|
-
}), c =
|
|
24771
|
+
}), c = Qs(() => {
|
|
24731
24772
|
let e = n.value?.args;
|
|
24732
24773
|
if (e == null) return "";
|
|
24733
24774
|
try {
|
|
@@ -24737,51 +24778,51 @@ app.mount('#app');
|
|
|
24737
24778
|
return String(e);
|
|
24738
24779
|
}
|
|
24739
24780
|
});
|
|
24740
|
-
return (e, l) => G(n) ? (J(), Y("div",
|
|
24741
|
-
X("div",
|
|
24742
|
-
G(n).args?.question ? (J(), Y("div",
|
|
24743
|
-
G(n).args?.context ? (J(), Y("div",
|
|
24744
|
-
G(n).args?.recommendation ? (J(), Y("div",
|
|
24745
|
-
s.value.length ? (J(), Y("div",
|
|
24781
|
+
return (e, l) => G(n) ? (J(), Y("div", ZC, [o.value ? (J(), Y(q, { key: 0 }, [
|
|
24782
|
+
X("div", QC, [l[5] ||= X("span", { class: "approval-icon" }, "❓", -1), X("span", $C, U(G(i).humanConfirmTitle), 1)]),
|
|
24783
|
+
G(n).args?.question ? (J(), Y("div", ew, U(G(n).args.question), 1)) : Q("", !0),
|
|
24784
|
+
G(n).args?.context ? (J(), Y("div", tw, U(G(n).args.context), 1)) : Q("", !0),
|
|
24785
|
+
G(n).args?.recommendation ? (J(), Y("div", nw, [Z(cy, { icon: G(t).icons.recommend }, null, 8, ["icon"]), _s(U(G(i).recommendPrefix) + U(G(n).args.recommendation), 1)])) : Q("", !0),
|
|
24786
|
+
s.value.length ? (J(), Y("div", rw, [(J(!0), Y(q, null, ca(s.value, (e) => (J(), Y("button", {
|
|
24746
24787
|
key: e,
|
|
24747
24788
|
class: "approval-opt",
|
|
24748
24789
|
onClick: (t) => G(r)(e)
|
|
24749
|
-
}, U(e), 9,
|
|
24750
|
-
X("div",
|
|
24790
|
+
}, U(e), 9, iw))), 128))])) : Q("", !0),
|
|
24791
|
+
X("div", aw, [X("button", {
|
|
24751
24792
|
class: "approval-deny",
|
|
24752
24793
|
onClick: l[0] ||= (e) => G(r)(!1)
|
|
24753
|
-
},
|
|
24794
|
+
}, [Z(uy, { text: G(i).deny }, null, 8, ["text"])]), s.value.length ? Q("", !0) : (J(), Y("button", {
|
|
24754
24795
|
key: 0,
|
|
24755
24796
|
class: "approval-allow",
|
|
24756
24797
|
onClick: l[1] ||= (e) => G(r)(!0)
|
|
24757
|
-
},
|
|
24798
|
+
}, [Z(uy, { text: G(i).approve }, null, 8, ["text"])]))])
|
|
24758
24799
|
], 64)) : (J(), Y(q, { key: 1 }, [
|
|
24759
|
-
X("div",
|
|
24800
|
+
X("div", ow, [
|
|
24760
24801
|
l[6] ||= X("span", { class: "approval-icon" }, "✋", -1),
|
|
24761
|
-
X("span",
|
|
24802
|
+
X("span", sw, [_s(U(G(i).toolConfirmPrefix), 1), X("code", null, U(G(n).toolName), 1)]),
|
|
24762
24803
|
c.value ? (J(), Y("button", {
|
|
24763
24804
|
key: 0,
|
|
24764
24805
|
class: "approval-toggle",
|
|
24765
24806
|
onClick: l[2] ||= (e) => a.value = !a.value
|
|
24766
|
-
}, U(a.value ? G(i).collapseArgs : G(i).viewArgs) + U(a.value ? " ▴" : " ▾"), 1)) :
|
|
24807
|
+
}, U(a.value ? G(i).collapseArgs : G(i).viewArgs) + U(a.value ? " ▴" : " ▾"), 1)) : Q("", !0)
|
|
24767
24808
|
]),
|
|
24768
|
-
c.value && a.value ? (J(), Y("pre",
|
|
24769
|
-
X("div",
|
|
24809
|
+
c.value && a.value ? (J(), Y("pre", cw, U(c.value), 1)) : Q("", !0),
|
|
24810
|
+
X("div", lw, [X("button", {
|
|
24770
24811
|
class: "approval-deny",
|
|
24771
24812
|
onClick: l[3] ||= (e) => G(r)(!1)
|
|
24772
|
-
},
|
|
24813
|
+
}, [Z(uy, { text: G(i).deny }, null, 8, ["text"])]), X("button", {
|
|
24773
24814
|
class: "approval-allow",
|
|
24774
24815
|
onClick: l[4] ||= (e) => G(r)(!0)
|
|
24775
|
-
},
|
|
24776
|
-
], 64))])) :
|
|
24816
|
+
}, [Z(uy, { text: G(i).approve }, null, 8, ["text"])])])
|
|
24817
|
+
], 64))])) : Q("", !0);
|
|
24777
24818
|
}
|
|
24778
|
-
}), [["__scopeId", "data-v-
|
|
24819
|
+
}), [["__scopeId", "data-v-8566d3cd"]]), dw = {
|
|
24779
24820
|
key: 0,
|
|
24780
24821
|
class: "conflict-bar"
|
|
24781
|
-
},
|
|
24822
|
+
}, fw = { class: "conflict-head" }, pw = { class: "conflict-icon" }, mw = { class: "conflict-title" }, hw = { class: "conflict-detail" }, gw = {
|
|
24782
24823
|
key: 0,
|
|
24783
24824
|
class: "conflict-diff"
|
|
24784
|
-
},
|
|
24825
|
+
}, _w = { class: "conflict-diff-col" }, vw = { class: "conflict-diff-label" }, yw = { class: "conflict-diff-pre" }, bw = { class: "conflict-diff-col" }, xw = { class: "conflict-diff-label" }, Sw = { class: "conflict-diff-pre" }, Cw = { class: "conflict-actions" }, ww = ["title"], Tw = ["title"], Ew = ["title"], Dw = /*#__PURE__*/ sy(/* @__PURE__ */ Ii({
|
|
24785
24826
|
__name: "ConflictBar",
|
|
24786
24827
|
props: {
|
|
24787
24828
|
pendingConflict: {},
|
|
@@ -24794,7 +24835,7 @@ app.mount('#app');
|
|
|
24794
24835
|
ri(() => t.pendingConflict, () => {
|
|
24795
24836
|
n.value = !1;
|
|
24796
24837
|
});
|
|
24797
|
-
let r =
|
|
24838
|
+
let r = Qs(() => {
|
|
24798
24839
|
let e = t.pendingConflict?.agentValue;
|
|
24799
24840
|
if (e === void 0) return "";
|
|
24800
24841
|
try {
|
|
@@ -24803,7 +24844,7 @@ app.mount('#app');
|
|
|
24803
24844
|
} catch {
|
|
24804
24845
|
return String(e);
|
|
24805
24846
|
}
|
|
24806
|
-
}), i =
|
|
24847
|
+
}), i = Qs(() => {
|
|
24807
24848
|
let e = t.pendingConflict?.currentValue;
|
|
24808
24849
|
if (e == null) return "";
|
|
24809
24850
|
try {
|
|
@@ -24813,47 +24854,47 @@ app.mount('#app');
|
|
|
24813
24854
|
return String(e);
|
|
24814
24855
|
}
|
|
24815
24856
|
});
|
|
24816
|
-
return (t, a) => e.pendingConflict ? (J(), Y("div",
|
|
24817
|
-
X("div",
|
|
24818
|
-
|
|
24857
|
+
return (t, a) => e.pendingConflict ? (J(), Y("div", dw, [
|
|
24858
|
+
X("div", fw, [X("span", pw, [Z(cy, { icon: e.icons.conflict }, null, 8, ["icon"])]), X("span", mw, [
|
|
24859
|
+
_s(U(e.messages.conflictTitlePrefix), 1),
|
|
24819
24860
|
X("code", null, U(e.pendingConflict.path), 1),
|
|
24820
|
-
|
|
24861
|
+
_s(U(e.messages.conflictTitleSuffix), 1)
|
|
24821
24862
|
])]),
|
|
24822
|
-
X("div",
|
|
24863
|
+
X("div", hw, U(e.messages.conflictDetailTemplate.replace("{op}", e.pendingConflict.op === "delete" ? e.messages.conflictOpDelete : e.messages.conflictOpWrite)), 1),
|
|
24823
24864
|
X("button", {
|
|
24824
24865
|
class: "conflict-toggle",
|
|
24825
24866
|
onClick: a[0] ||= (e) => n.value = !n.value
|
|
24826
24867
|
}, U(n.value ? e.messages.collapseDiff : e.messages.viewDiff) + U(n.value ? " ▴" : " ▾"), 1),
|
|
24827
|
-
n.value ? (J(), Y("div",
|
|
24828
|
-
X("div",
|
|
24868
|
+
n.value ? (J(), Y("div", gw, [X("div", _w, [X("div", vw, U(e.messages.agentValueLabel), 1), X("pre", yw, U(r.value || e.messages.deleteNoValue), 1)]), X("div", bw, [X("div", xw, U(e.messages.currentValueLabel), 1), X("pre", Sw, U(i.value), 1)])])) : Q("", !0),
|
|
24869
|
+
X("div", Cw, [
|
|
24829
24870
|
X("button", {
|
|
24830
24871
|
class: "conflict-keep",
|
|
24831
24872
|
onClick: a[1] ||= (t) => e.onResolve?.("keep_external"),
|
|
24832
24873
|
title: e.messages.keepExternalTitle
|
|
24833
|
-
},
|
|
24874
|
+
}, [Z(uy, { text: e.messages.keepExternal }, null, 8, ["text"])], 8, ww),
|
|
24834
24875
|
X("button", {
|
|
24835
24876
|
class: "conflict-overwrite",
|
|
24836
24877
|
onClick: a[2] ||= (t) => e.onResolve?.("overwrite"),
|
|
24837
24878
|
title: e.messages.overwriteTitle
|
|
24838
|
-
},
|
|
24879
|
+
}, [Z(uy, { text: e.messages.overwrite }, null, 8, ["text"])], 8, Tw),
|
|
24839
24880
|
X("button", {
|
|
24840
24881
|
class: "conflict-restore",
|
|
24841
24882
|
onClick: a[3] ||= (t) => e.onResolve?.("restore"),
|
|
24842
24883
|
title: e.messages.restoreTitle
|
|
24843
|
-
},
|
|
24884
|
+
}, [Z(uy, { text: e.messages.restore }, null, 8, ["text"])], 8, Ew)
|
|
24844
24885
|
])
|
|
24845
|
-
])) :
|
|
24886
|
+
])) : Q("", !0);
|
|
24846
24887
|
}
|
|
24847
|
-
}), [["__scopeId", "data-v-
|
|
24888
|
+
}), [["__scopeId", "data-v-8263b7d4"]]), Ow = { class: "chat-footer" }, kw = ["title"], Aw = { class: "chat-input-wrap" }, jw = {
|
|
24848
24889
|
key: 0,
|
|
24849
24890
|
class: "focus-chips"
|
|
24850
|
-
},
|
|
24891
|
+
}, Mw = ["title", "onClick"], Nw = { class: "focus-chip-icon" }, Pw = { class: "focus-chip-path" }, Fw = ["title", "onClick"], Iw = ["placeholder", "rows"], Lw = { class: "input-actions" }, Rw = { class: "send-hint" }, zw = ["disabled", "title"], Bw = {
|
|
24851
24892
|
key: 0,
|
|
24852
24893
|
width: "16",
|
|
24853
24894
|
height: "16",
|
|
24854
24895
|
viewBox: "0 0 24 24",
|
|
24855
24896
|
fill: "currentColor"
|
|
24856
|
-
},
|
|
24897
|
+
}, Vw = {
|
|
24857
24898
|
key: 2,
|
|
24858
24899
|
width: "18",
|
|
24859
24900
|
height: "18",
|
|
@@ -24861,7 +24902,7 @@ app.mount('#app');
|
|
|
24861
24902
|
fill: "none",
|
|
24862
24903
|
stroke: "currentColor",
|
|
24863
24904
|
"stroke-width": "2"
|
|
24864
|
-
},
|
|
24905
|
+
}, Hw = /*#__PURE__*/ sy(/* @__PURE__ */ Ii({
|
|
24865
24906
|
__name: "ChatInput",
|
|
24866
24907
|
props: {
|
|
24867
24908
|
placeholder: {},
|
|
@@ -24869,241 +24910,241 @@ app.mount('#app');
|
|
|
24869
24910
|
},
|
|
24870
24911
|
setup(e) {
|
|
24871
24912
|
let t = E_(), { inputText: n, send: r, keydown: i, canUndo: a, undo: o, focuses: s, removeFocus: c, focusChipClick: l, icons: u, messages: d } = t, { state: f, stop: p } = t.chat;
|
|
24872
|
-
return (t, m) => (J(), Y("div",
|
|
24913
|
+
return (t, m) => (J(), Y("div", Ow, [G(a) ? (J(), Y("button", {
|
|
24873
24914
|
key: 0,
|
|
24874
24915
|
class: "undo-foot-btn",
|
|
24875
24916
|
title: G(d).undoTitle,
|
|
24876
24917
|
onClick: m[0] ||= (...e) => G(o) && G(o)(...e)
|
|
24877
|
-
}, U(G(d).undo), 9,
|
|
24878
|
-
G(s).length ? (J(), Y("div",
|
|
24918
|
+
}, U(G(d).undo), 9, kw)) : Q("", !0), X("div", Aw, [
|
|
24919
|
+
G(s).length ? (J(), Y("div", jw, [(J(!0), Y(q, null, ca(G(s), (e) => (J(), Y("span", {
|
|
24879
24920
|
key: e.path,
|
|
24880
24921
|
class: "focus-chip",
|
|
24881
24922
|
title: G(d).focusChipTitlePrefix + e.path + G(d).focusChipTitleHint,
|
|
24882
24923
|
onClick: (t) => G(l)(e)
|
|
24883
24924
|
}, [
|
|
24884
|
-
X("span",
|
|
24885
|
-
X("code",
|
|
24925
|
+
X("span", Nw, [Z(cy, { icon: G(u).focus }, null, 8, ["icon"])]),
|
|
24926
|
+
X("code", Pw, U(e.path), 1),
|
|
24886
24927
|
X("button", {
|
|
24887
24928
|
type: "button",
|
|
24888
24929
|
class: "focus-chip-x",
|
|
24889
24930
|
"data-test": "focus-clear",
|
|
24890
24931
|
title: G(d).removeFocus,
|
|
24891
24932
|
onClick: yl((t) => G(c)(e.path), ["stop"])
|
|
24892
|
-
}, "✕", 8,
|
|
24893
|
-
], 8,
|
|
24933
|
+
}, "✕", 8, Fw)
|
|
24934
|
+
], 8, Mw))), 128))])) : Q("", !0),
|
|
24894
24935
|
Zr(X("textarea", {
|
|
24895
24936
|
"onUpdate:modelValue": m[1] ||= (e) => /* @__PURE__ */ Cn(n) ? n.value = e : null,
|
|
24896
24937
|
class: H(["chat-input", { "has-focus-chip": G(s).length > 0 }]),
|
|
24897
24938
|
placeholder: e.placeholder,
|
|
24898
24939
|
rows: e.inputRows,
|
|
24899
24940
|
onKeydown: m[2] ||= (...e) => G(i) && G(i)(...e)
|
|
24900
|
-
}, null, 42,
|
|
24901
|
-
X("div",
|
|
24941
|
+
}, null, 42, Iw), [[gl, G(n)]]),
|
|
24942
|
+
X("div", Lw, [X("span", Rw, U(G(d).sendHint), 1), X("button", {
|
|
24902
24943
|
class: H(["send-btn", { "stop-btn": G(f).loading }]),
|
|
24903
24944
|
disabled: !G(f).loading && !G(n).trim(),
|
|
24904
24945
|
title: G(f).loading ? G(d).stopTitle : G(d).sendTitle,
|
|
24905
24946
|
onClick: m[3] ||= (e) => G(f).loading ? G(p)() : G(r)()
|
|
24906
|
-
}, [G(f).loading ? (J(), Y("svg",
|
|
24947
|
+
}, [G(f).loading ? (J(), Y("svg", Bw, [...m[4] ||= [X("rect", {
|
|
24907
24948
|
x: "6",
|
|
24908
24949
|
y: "6",
|
|
24909
24950
|
width: "12",
|
|
24910
24951
|
height: "12",
|
|
24911
24952
|
rx: "2"
|
|
24912
|
-
}, null, -1)]])) : G(u).send ? (J(), os(
|
|
24953
|
+
}, null, -1)]])) : G(u).send ? (J(), os(cy, {
|
|
24913
24954
|
key: 1,
|
|
24914
24955
|
icon: G(u).send
|
|
24915
|
-
}, null, 8, ["icon"])) : (J(), Y("svg",
|
|
24956
|
+
}, null, 8, ["icon"])) : (J(), Y("svg", Vw, [...m[5] ||= [X("line", {
|
|
24916
24957
|
x1: "22",
|
|
24917
24958
|
y1: "2",
|
|
24918
24959
|
x2: "11",
|
|
24919
24960
|
y2: "13"
|
|
24920
|
-
}, null, -1), X("polygon", { points: "22 2 15 22 11 13 2 9 22 2" }, null, -1)]]))], 10,
|
|
24961
|
+
}, null, -1), X("polygon", { points: "22 2 15 22 11 13 2 9 22 2" }, null, -1)]]))], 10, zw)])
|
|
24921
24962
|
])]));
|
|
24922
24963
|
}
|
|
24923
|
-
}), [["__scopeId", "data-v-9114bce6"]]),
|
|
24964
|
+
}), [["__scopeId", "data-v-9114bce6"]]), Uw = {
|
|
24924
24965
|
key: 0,
|
|
24925
24966
|
class: "debug-drawer"
|
|
24926
|
-
},
|
|
24967
|
+
}, Ww = { class: "drawer-header" }, Gw = { class: "tab-group" }, Kw = { class: "header-actions" }, qw = ["title"], Jw = ["title"], Yw = {
|
|
24927
24968
|
key: 0,
|
|
24928
24969
|
class: "drawer-filters"
|
|
24929
|
-
},
|
|
24970
|
+
}, Xw = ["onClick"], Zw = { class: "chip-count" }, Qw = { class: "chip-count" }, $w = { class: "drawer-body" }, eT = {
|
|
24930
24971
|
key: 0,
|
|
24931
24972
|
class: "trace-panel"
|
|
24932
|
-
},
|
|
24973
|
+
}, tT = {
|
|
24933
24974
|
key: 0,
|
|
24934
24975
|
class: "trace-empty"
|
|
24935
|
-
},
|
|
24976
|
+
}, nT = { class: "trace-metrics" }, rT = { class: "metric-card" }, iT = { class: "metric-card" }, aT = { class: "metric-card" }, oT = { class: "metric-card" }, sT = {
|
|
24936
24977
|
key: 0,
|
|
24937
24978
|
class: "metric-card"
|
|
24938
|
-
},
|
|
24979
|
+
}, cT = {
|
|
24939
24980
|
key: 1,
|
|
24940
24981
|
class: "metric-card"
|
|
24941
|
-
},
|
|
24982
|
+
}, lT = { class: "trace-spans" }, uT = { class: "span-ico" }, dT = { class: "span-name" }, fT = {
|
|
24942
24983
|
key: 0,
|
|
24943
24984
|
class: "span-dur"
|
|
24944
|
-
},
|
|
24985
|
+
}, pT = {
|
|
24945
24986
|
key: 1,
|
|
24946
24987
|
class: "span-status"
|
|
24947
|
-
},
|
|
24988
|
+
}, mT = {
|
|
24948
24989
|
key: 1,
|
|
24949
24990
|
class: "context-panel"
|
|
24950
|
-
},
|
|
24991
|
+
}, hT = {
|
|
24951
24992
|
key: 0,
|
|
24952
24993
|
class: "trace-empty"
|
|
24953
|
-
},
|
|
24994
|
+
}, gT = { class: "ctx-overview" }, _T = { class: "ctx-occupancy" }, vT = ["title"], yT = ["title"], bT = { class: "ctx-pct" }, xT = { class: "ctx-kv-row" }, ST = { class: "ctx-kv" }, CT = {
|
|
24954
24995
|
key: 0,
|
|
24955
24996
|
class: "ctx-kv"
|
|
24956
|
-
},
|
|
24997
|
+
}, wT = {
|
|
24957
24998
|
key: 1,
|
|
24958
24999
|
class: "ctx-kv"
|
|
24959
|
-
},
|
|
25000
|
+
}, TT = { class: "ctx-section-title" }, ET = ["title"], DT = { class: "ctx-cat-bar" }, OT = { class: "ctx-cat-tokens" }, kT = {
|
|
24960
25001
|
key: 0,
|
|
24961
25002
|
class: "ctx-compression"
|
|
24962
|
-
},
|
|
25003
|
+
}, AT = { class: "ctx-section-title" }, jT = { class: "ctx-kv-row" }, MT = { class: "ctx-kv" }, NT = { class: "ctx-kv" }, PT = { class: "ctx-kv" }, FT = {
|
|
24963
25004
|
key: 0,
|
|
24964
25005
|
class: "ctx-kv"
|
|
24965
|
-
},
|
|
25006
|
+
}, IT = {
|
|
24966
25007
|
key: 2,
|
|
24967
25008
|
class: "subagent-panel"
|
|
24968
|
-
},
|
|
25009
|
+
}, LT = {
|
|
24969
25010
|
key: 0,
|
|
24970
25011
|
class: "sub-section"
|
|
24971
|
-
},
|
|
25012
|
+
}, RT = { class: "sub-section-title" }, zT = {
|
|
24972
25013
|
key: 1,
|
|
24973
25014
|
class: "trace-empty"
|
|
24974
|
-
},
|
|
25015
|
+
}, BT = {
|
|
24975
25016
|
key: 0,
|
|
24976
25017
|
class: "sub-section"
|
|
24977
|
-
},
|
|
25018
|
+
}, VT = { class: "sub-section-title" }, HT = { class: "sub-head" }, UT = { class: "sub-label" }, WT = { class: "sub-steps-badge" }, GT = { class: "sub-task" }, KT = {
|
|
24978
25019
|
key: 1,
|
|
24979
25020
|
class: "sub-section"
|
|
24980
|
-
},
|
|
25021
|
+
}, qT = { class: "sub-section-title" }, JT = { class: "sub-head" }, YT = { class: "sub-label" }, XT = {
|
|
24981
25022
|
key: 0,
|
|
24982
25023
|
class: "sub-dur"
|
|
24983
|
-
},
|
|
25024
|
+
}, ZT = ["onClick"], QT = { class: "sub-task" }, $T = {
|
|
24984
25025
|
key: 0,
|
|
24985
25026
|
class: "sub-result"
|
|
24986
|
-
},
|
|
25027
|
+
}, eE = {
|
|
24987
25028
|
key: 1,
|
|
24988
25029
|
class: "sub-steps-list"
|
|
24989
|
-
},
|
|
25030
|
+
}, tE = { class: "sub-step-kind" }, nE = { class: "sub-step-name" }, rE = { class: "sub-step-ts" }, iE = {
|
|
24990
25031
|
key: 0,
|
|
24991
25032
|
class: "empty"
|
|
24992
|
-
},
|
|
25033
|
+
}, aE = { class: "log-head" }, oE = {
|
|
24993
25034
|
key: 0,
|
|
24994
25035
|
class: "log-source"
|
|
24995
|
-
},
|
|
25036
|
+
}, sE = { class: "log-time" }, cE = { class: "log-body" }, lE = { class: "kv-grid" }, uE = { class: "kv" }, dE = { class: "k" }, fE = { class: "v" }, pE = { class: "kv" }, mE = { class: "k" }, hE = { class: "v" }, gE = { class: "kv" }, _E = { class: "v" }, vE = { class: "kv" }, yE = { class: "k" }, bE = { class: "v" }, xE = { class: "section-label" }, SE = { class: "chip-row" }, CE = { class: "section-label" }, wE = { class: "msg-list" }, TE = { class: "msg-text" }, EE = { class: "badge-row" }, DE = { class: "badge" }, OE = {
|
|
24996
25037
|
key: 0,
|
|
24997
25038
|
class: "badge muted"
|
|
24998
|
-
},
|
|
25039
|
+
}, kE = { class: "badge muted" }, AE = {
|
|
24999
25040
|
key: 1,
|
|
25000
25041
|
class: "badge muted"
|
|
25001
|
-
},
|
|
25042
|
+
}, jE = ["onClick"], ME = {
|
|
25002
25043
|
key: 0,
|
|
25003
25044
|
class: "msg-list"
|
|
25004
|
-
},
|
|
25045
|
+
}, NE = { class: "msg-detail" }, PE = {
|
|
25005
25046
|
key: 0,
|
|
25006
25047
|
class: "msg-text"
|
|
25007
|
-
},
|
|
25048
|
+
}, FE = { class: "tc-inline-name" }, IE = { class: "tc-inline-args" }, LE = {
|
|
25008
25049
|
key: 1,
|
|
25009
25050
|
class: "tc-id"
|
|
25010
|
-
},
|
|
25051
|
+
}, RE = {
|
|
25011
25052
|
key: 1,
|
|
25012
25053
|
class: "log-raw"
|
|
25013
|
-
},
|
|
25054
|
+
}, zE = { class: "badge-row" }, BE = { class: "badge" }, VE = {
|
|
25014
25055
|
key: 0,
|
|
25015
25056
|
class: "badge warn"
|
|
25016
|
-
},
|
|
25057
|
+
}, HE = {
|
|
25017
25058
|
key: 0,
|
|
25018
25059
|
class: "resp-content"
|
|
25019
|
-
},
|
|
25060
|
+
}, UE = {
|
|
25020
25061
|
key: 1,
|
|
25021
25062
|
class: "tc-list"
|
|
25022
|
-
},
|
|
25063
|
+
}, WE = { class: "tc-name" }, GE = { class: "tc-args" }, KE = {
|
|
25023
25064
|
key: 2,
|
|
25024
25065
|
class: "usage-row"
|
|
25025
|
-
},
|
|
25066
|
+
}, qE = { class: "usage" }, JE = { class: "usage" }, YE = { class: "usage" }, XE = {
|
|
25026
25067
|
key: 3,
|
|
25027
25068
|
class: "tc-card inline"
|
|
25028
|
-
},
|
|
25069
|
+
}, ZE = { class: "tc-name" }, QE = { class: "tc-args" }, $E = {
|
|
25029
25070
|
key: 4,
|
|
25030
25071
|
class: "tc-card inline"
|
|
25031
|
-
},
|
|
25072
|
+
}, eD = { class: "tc-name" }, tD = { class: "tc-args" }, nD = {
|
|
25032
25073
|
key: 5,
|
|
25033
25074
|
class: "err-box"
|
|
25034
|
-
},
|
|
25075
|
+
}, rD = { class: "log-footer" }, iD = ["onClick"], aD = ["onClick"], oD = {
|
|
25035
25076
|
key: 0,
|
|
25036
25077
|
class: "log-raw"
|
|
25037
|
-
},
|
|
25078
|
+
}, sD = {
|
|
25038
25079
|
key: 0,
|
|
25039
25080
|
class: "empty"
|
|
25040
|
-
},
|
|
25081
|
+
}, cD = {
|
|
25041
25082
|
key: 1,
|
|
25042
25083
|
class: "flow-section"
|
|
25043
|
-
},
|
|
25084
|
+
}, lD = { class: "flow-section-title" }, uD = { class: "flow-ico" }, dD = { class: "flow-label" }, fD = { class: "flow-detail" }, pD = { class: "flow-time" }, mD = { class: "flow-round-head" }, hD = { class: "flow-round-body" }, gD = { class: "flow-ico" }, _D = { class: "flow-label" }, vD = { class: "flow-detail" }, yD = { class: "flow-time" }, bD = {
|
|
25044
25085
|
key: 5,
|
|
25045
25086
|
class: "info-body"
|
|
25046
|
-
},
|
|
25087
|
+
}, xD = {
|
|
25047
25088
|
key: 0,
|
|
25048
25089
|
class: "empty"
|
|
25049
|
-
},
|
|
25090
|
+
}, SD = { class: "info-section" }, CD = { class: "info-title" }, wD = { class: "kv-grid" }, TD = { class: "kv" }, ED = { class: "v" }, DD = { class: "kv" }, OD = { class: "k" }, kD = { class: "v" }, AD = { class: "kv" }, jD = { class: "k" }, MD = { class: "v" }, ND = { class: "kv" }, PD = { class: "k" }, FD = { class: "v" }, ID = {
|
|
25050
25091
|
class: "kv",
|
|
25051
25092
|
style: { "margin-top": "6px" }
|
|
25052
|
-
},
|
|
25093
|
+
}, LD = { class: "k" }, RD = {
|
|
25053
25094
|
class: "v",
|
|
25054
25095
|
style: { "font-size": "11px" }
|
|
25055
|
-
},
|
|
25096
|
+
}, zD = { class: "info-section" }, BD = { class: "info-title" }, VD = { class: "info-name" }, HD = { class: "info-desc" }, UD = {
|
|
25056
25097
|
key: 0,
|
|
25057
25098
|
class: "info-section"
|
|
25058
|
-
},
|
|
25099
|
+
}, WD = { class: "info-title" }, GD = { class: "info-hint" }, KD = ["onClick"], qD = { class: "info-desc" }, JD = {
|
|
25059
25100
|
key: 0,
|
|
25060
25101
|
class: "skill-content"
|
|
25061
|
-
},
|
|
25102
|
+
}, YD = {
|
|
25062
25103
|
key: 0,
|
|
25063
25104
|
class: "skill-loading"
|
|
25064
|
-
},
|
|
25105
|
+
}, XD = {
|
|
25065
25106
|
key: 1,
|
|
25066
25107
|
class: "skill-error"
|
|
25067
|
-
},
|
|
25108
|
+
}, ZD = {
|
|
25068
25109
|
key: 2,
|
|
25069
25110
|
class: "skill-pre"
|
|
25070
|
-
},
|
|
25111
|
+
}, QD = {
|
|
25071
25112
|
key: 1,
|
|
25072
25113
|
class: "info-section"
|
|
25073
|
-
},
|
|
25114
|
+
}, $D = { class: "info-title" }, eO = { class: "info-item" }, tO = { class: "info-name" }, nO = { class: "info-desc" }, rO = { class: "info-section" }, iO = { class: "info-title" }, aO = { class: "kv-grid" }, oO = { class: "kv" }, sO = { class: "k" }, cO = { class: "v" }, lO = { class: "kv" }, uO = { class: "k" }, dO = { class: "v" }, fO = { class: "kv" }, pO = { class: "k" }, mO = { class: "v" }, hO = { class: "kv" }, gO = { class: "k" }, _O = {
|
|
25074
25115
|
class: "v",
|
|
25075
25116
|
style: { "font-size": "11px" }
|
|
25076
|
-
},
|
|
25117
|
+
}, vO = {
|
|
25077
25118
|
key: 2,
|
|
25078
25119
|
class: "info-section"
|
|
25079
|
-
},
|
|
25120
|
+
}, yO = { class: "info-title" }, bO = { class: "info-name" }, xO = { class: "src-tag mcp" }, SO = { class: "info-desc" }, CO = {
|
|
25080
25121
|
key: 3,
|
|
25081
25122
|
class: "info-section"
|
|
25082
|
-
},
|
|
25123
|
+
}, wO = { class: "info-title" }, TO = { class: "kv-grid" }, EO = { class: "kv" }, DO = { class: "k" }, OO = { class: "v" }, kO = { class: "kv" }, AO = { class: "k" }, jO = { class: "v" }, MO = { class: "kv" }, NO = { class: "k" }, PO = { class: "v" }, FO = {
|
|
25083
25124
|
key: 0,
|
|
25084
25125
|
class: "kv"
|
|
25085
|
-
},
|
|
25126
|
+
}, IO = { class: "k" }, LO = {
|
|
25086
25127
|
class: "v",
|
|
25087
25128
|
style: { "font-size": "11px" }
|
|
25088
|
-
},
|
|
25129
|
+
}, RO = {
|
|
25089
25130
|
key: 4,
|
|
25090
25131
|
class: "info-section"
|
|
25091
|
-
},
|
|
25132
|
+
}, zO = { class: "info-title" }, BO = {
|
|
25092
25133
|
key: 5,
|
|
25093
25134
|
class: "info-section"
|
|
25094
|
-
},
|
|
25135
|
+
}, VO = { class: "info-title" }, HO = { class: "info-pre" }, UO = {
|
|
25095
25136
|
key: 6,
|
|
25096
25137
|
class: "info-section"
|
|
25097
|
-
},
|
|
25138
|
+
}, WO = { class: "info-title" }, GO = { class: "info-kv" }, KO = { class: "kv" }, qO = { class: "k" }, JO = { class: "v" }, YO = { class: "kv" }, XO = { class: "k" }, ZO = { class: "v" }, QO = { class: "kv" }, $O = { class: "k" }, ek = { class: "v" }, tk = { class: "kv" }, nk = { class: "k" }, rk = { class: "v" }, ik = { class: "kv" }, ak = { class: "k" }, ok = {
|
|
25098
25139
|
class: "v",
|
|
25099
25140
|
style: { "font-size": "11px" }
|
|
25100
|
-
},
|
|
25141
|
+
}, sk = {
|
|
25101
25142
|
key: 0,
|
|
25102
25143
|
class: "kv"
|
|
25103
|
-
},
|
|
25144
|
+
}, ck = { class: "k" }, lk = {
|
|
25104
25145
|
class: "v",
|
|
25105
25146
|
style: { "font-size": "11px" }
|
|
25106
|
-
},
|
|
25147
|
+
}, uk = /*#__PURE__*/ sy(/* @__PURE__ */ Ii({
|
|
25107
25148
|
__name: "DebugDrawer",
|
|
25108
25149
|
props: {
|
|
25109
25150
|
logs: { default: () => [] },
|
|
@@ -25117,7 +25158,7 @@ app.mount('#app');
|
|
|
25117
25158
|
},
|
|
25118
25159
|
emits: ["update:visible", "clear"],
|
|
25119
25160
|
setup(e, { emit: t }) {
|
|
25120
|
-
let n = e, r = t, i = /* @__PURE__ */ wn("all"), a = /* @__PURE__ */ wn(/* @__PURE__ */ new Set()), o = /* @__PURE__ */ wn(/* @__PURE__ */ new Set()), s =
|
|
25161
|
+
let n = e, r = t, i = /* @__PURE__ */ wn("all"), a = /* @__PURE__ */ wn(/* @__PURE__ */ new Set()), o = /* @__PURE__ */ wn(/* @__PURE__ */ new Set()), s = Qs(() => n.messages), c = Qs(() => ({
|
|
25121
25162
|
context: {
|
|
25122
25163
|
label: s.value.debugTypeContext,
|
|
25123
25164
|
color: "var(--cs-primary)",
|
|
@@ -25153,7 +25194,7 @@ app.mount('#app');
|
|
|
25153
25194
|
color: "#0891b2",
|
|
25154
25195
|
icon: "⚙️"
|
|
25155
25196
|
}
|
|
25156
|
-
})), l =
|
|
25197
|
+
})), l = Qs(() => Array.isArray(n.logs) ? n.logs : []), u = Qs(() => i.value === "all" ? l.value : l.value.filter((e) => e.type === i.value)), d = Qs(() => {
|
|
25157
25198
|
let e = { all: l.value.length };
|
|
25158
25199
|
for (let t of l.value) e[t.type] = (e[t.type] || 0) + 1;
|
|
25159
25200
|
return e;
|
|
@@ -25272,7 +25313,7 @@ app.mount('#app');
|
|
|
25272
25313
|
ri(() => n.infoTick?.value, () => {
|
|
25273
25314
|
n.visible && (b.value === "subagent" || b.value === "info" || b.value === "context") && w();
|
|
25274
25315
|
});
|
|
25275
|
-
let E =
|
|
25316
|
+
let E = Qs(() => ({
|
|
25276
25317
|
pending: {
|
|
25277
25318
|
label: s.value.debugTodoPending,
|
|
25278
25319
|
color: "#9ca3af"
|
|
@@ -25292,7 +25333,7 @@ app.mount('#app');
|
|
|
25292
25333
|
function O(e) {
|
|
25293
25334
|
return e ? e === "builtin" ? "builtin" : e.startsWith("mcp:") ? "mcp" : "user" : "";
|
|
25294
25335
|
}
|
|
25295
|
-
let k =
|
|
25336
|
+
let k = Qs(() => {
|
|
25296
25337
|
let e = /* @__PURE__ */ new Map(), t = [];
|
|
25297
25338
|
for (let n of l.value) {
|
|
25298
25339
|
let r = n.data?.round;
|
|
@@ -25316,10 +25357,10 @@ app.mount('#app');
|
|
|
25316
25357
|
}
|
|
25317
25358
|
return `${e}ms`;
|
|
25318
25359
|
}
|
|
25319
|
-
let j =
|
|
25360
|
+
let j = Qs(() => x.value?.trace?.spans ?? []), M = Qs(() => x.value?.trace?.metrics), N = Qs(() => x.value?.context), te = Qs(() => {
|
|
25320
25361
|
let e = N.value;
|
|
25321
25362
|
return e ? e.occupancy >= 1 ? "red" : e.thresholdRatio > 0 && e.occupancy >= e.thresholdRatio ? "yellow" : "green" : "";
|
|
25322
|
-
}), P =
|
|
25363
|
+
}), P = Qs(() => x.value?.subagent?.active ?? []), F = Qs(() => x.value?.subagent?.history ?? []), ne = Qs(() => Object.entries(x.value?.subagent?.lockedComponents ?? {})), I = Qs(() => ({
|
|
25323
25364
|
running: {
|
|
25324
25365
|
label: s.value.debugSubRunning,
|
|
25325
25366
|
color: "#059669"
|
|
@@ -25356,9 +25397,9 @@ app.mount('#app');
|
|
|
25356
25397
|
default: return "";
|
|
25357
25398
|
}
|
|
25358
25399
|
}
|
|
25359
|
-
return (t, n) => (J(), os(vi, { to: "body" }, [
|
|
25360
|
-
default: Yr(() => [e.visible ? (J(), Y("div",
|
|
25361
|
-
X("div",
|
|
25400
|
+
return (t, n) => (J(), os(vi, { to: "body" }, [Z(gc, { name: "drawer" }, {
|
|
25401
|
+
default: Yr(() => [e.visible ? (J(), Y("div", Uw, [X("div", { class: H(["drawer-panel", { "cs-theme-dark": e.csTheme === "dark" }]) }, [
|
|
25402
|
+
X("div", Ww, [X("div", Gw, [
|
|
25362
25403
|
X("button", {
|
|
25363
25404
|
class: H(["tab-btn", { active: b.value === "logs" }]),
|
|
25364
25405
|
onClick: n[0] ||= (e) => T("logs")
|
|
@@ -25371,60 +25412,60 @@ app.mount('#app');
|
|
|
25371
25412
|
key: 0,
|
|
25372
25413
|
class: H(["tab-btn", { active: b.value === "trace" }]),
|
|
25373
25414
|
onClick: n[2] ||= (e) => T("trace")
|
|
25374
|
-
}, "🌳 Trace", 2)) :
|
|
25415
|
+
}, "🌳 Trace", 2)) : Q("", !0),
|
|
25375
25416
|
e.getInfo ? (J(), Y("button", {
|
|
25376
25417
|
key: 1,
|
|
25377
25418
|
class: H(["tab-btn", { active: b.value === "context" }]),
|
|
25378
25419
|
onClick: n[3] ||= (e) => T("context")
|
|
25379
|
-
}, "📊 " + U(s.value.debugTabContext), 3)) :
|
|
25420
|
+
}, "📊 " + U(s.value.debugTabContext), 3)) : Q("", !0),
|
|
25380
25421
|
e.getInfo ? (J(), Y("button", {
|
|
25381
25422
|
key: 2,
|
|
25382
25423
|
class: H(["tab-btn", { active: b.value === "subagent" }]),
|
|
25383
25424
|
onClick: n[4] ||= (e) => T("subagent")
|
|
25384
|
-
}, "🤖 " + U(s.value.debugTabSubagent), 3)) :
|
|
25425
|
+
}, "🤖 " + U(s.value.debugTabSubagent), 3)) : Q("", !0),
|
|
25385
25426
|
e.getInfo ? (J(), Y("button", {
|
|
25386
25427
|
key: 3,
|
|
25387
25428
|
class: H(["tab-btn", { active: b.value === "info" }]),
|
|
25388
25429
|
onClick: n[5] ||= (e) => T("info")
|
|
25389
|
-
}, "🧬 " + U(s.value.debugTabInfo), 3)) :
|
|
25390
|
-
]), X("div",
|
|
25430
|
+
}, "🧬 " + U(s.value.debugTabInfo), 3)) : Q("", !0)
|
|
25431
|
+
]), X("div", Kw, [b.value === "logs" ? (J(), Y("button", {
|
|
25391
25432
|
key: 0,
|
|
25392
25433
|
class: "hd-btn",
|
|
25393
25434
|
title: s.value.debugClearLogs,
|
|
25394
25435
|
onClick: y
|
|
25395
|
-
}, "🗑️", 8,
|
|
25436
|
+
}, "🗑️", 8, qw)) : Q("", !0), X("button", {
|
|
25396
25437
|
class: "hd-btn",
|
|
25397
25438
|
title: s.value.close,
|
|
25398
25439
|
onClick: v
|
|
25399
|
-
}, "✕", 8,
|
|
25400
|
-
b.value === "logs" ? (J(), Y("div",
|
|
25440
|
+
}, "✕", 8, Jw)])]),
|
|
25441
|
+
b.value === "logs" ? (J(), Y("div", Yw, [(J(!0), Y(q, null, ca(c.value, (e, t) => (J(), Y("button", {
|
|
25401
25442
|
key: t,
|
|
25402
25443
|
class: H(["filter-chip", { active: i.value === t }]),
|
|
25403
25444
|
style: Oe({ "--chip-color": e.color }),
|
|
25404
25445
|
onClick: (e) => i.value = t
|
|
25405
|
-
}, [
|
|
25446
|
+
}, [_s(U(e.icon) + " " + U(e.label) + " ", 1), X("span", Zw, U(d.value[t] || 0), 1)], 14, Xw))), 128)), X("button", {
|
|
25406
25447
|
class: H(["filter-chip all", { active: i.value === "all" }]),
|
|
25407
25448
|
onClick: n[6] ||= (e) => i.value = "all"
|
|
25408
|
-
}, [
|
|
25409
|
-
X("div",
|
|
25410
|
-
b.value === "trace" ? (J(), Y("div",
|
|
25411
|
-
X("div",
|
|
25412
|
-
X("div",
|
|
25413
|
-
X("div",
|
|
25414
|
-
X("div",
|
|
25415
|
-
M.value.compressions ? (J(), Y("div",
|
|
25416
|
-
M.value.totalTokens ? (J(), Y("div",
|
|
25417
|
-
]), X("div",
|
|
25449
|
+
}, [_s(U(s.value.debugFilterAll) + " ", 1), X("span", Qw, U(d.value.all || 0), 1)], 2)])) : Q("", !0),
|
|
25450
|
+
X("div", $w, [
|
|
25451
|
+
b.value === "trace" ? (J(), Y("div", eT, [M.value ? (J(), Y(q, { key: 1 }, [X("div", nT, [
|
|
25452
|
+
X("div", rT, [X("span", null, U(s.value.debugMetricRounds), 1), X("b", null, U(M.value.rounds), 1)]),
|
|
25453
|
+
X("div", iT, [X("span", null, U(s.value.debugMetricTotal), 1), X("b", null, U(M.value.totalDurationMs) + "ms", 1)]),
|
|
25454
|
+
X("div", aT, [X("span", null, U(s.value.debugMetricAvg), 1), X("b", null, U(M.value.avgRoundMs) + "ms", 1)]),
|
|
25455
|
+
X("div", oT, [X("span", null, U(s.value.debugMetricTools), 1), X("b", null, U(M.value.toolCalls) + "(✅" + U(Math.round(M.value.toolSuccessRate * 100)) + "%)", 1)]),
|
|
25456
|
+
M.value.compressions ? (J(), Y("div", sT, [X("span", null, U(s.value.debugMetricCompressions), 1), X("b", null, U(M.value.compressions), 1)])) : Q("", !0),
|
|
25457
|
+
M.value.totalTokens ? (J(), Y("div", cT, [n[7] ||= X("span", null, "Token", -1), X("b", null, U(M.value.totalTokens.total), 1)])) : Q("", !0)
|
|
25458
|
+
]), X("div", lT, [(J(!0), Y(q, null, ca(j.value, (e) => (J(), Y("div", {
|
|
25418
25459
|
key: e.id,
|
|
25419
25460
|
class: H(["trace-span", [e.type, e.status]])
|
|
25420
25461
|
}, [
|
|
25421
|
-
X("span",
|
|
25422
|
-
X("span",
|
|
25423
|
-
e.durationMs ? (J(), Y("span",
|
|
25424
|
-
e.status === "error" ? (J(), Y("span",
|
|
25425
|
-
], 2))), 128))])], 64)) : (J(), Y("div",
|
|
25426
|
-
b.value === "context" ? (J(), Y("div",
|
|
25427
|
-
X("div",
|
|
25462
|
+
X("span", uT, U(R(e.type)), 1),
|
|
25463
|
+
X("span", dT, U(e.name), 1),
|
|
25464
|
+
e.durationMs ? (J(), Y("span", fT, U(ee(e.durationMs)), 1)) : Q("", !0),
|
|
25465
|
+
e.status === "error" ? (J(), Y("span", pT, "❌")) : Q("", !0)
|
|
25466
|
+
], 2))), 128))])], 64)) : (J(), Y("div", tT, U(s.value.debugTraceEmpty), 1))])) : Q("", !0),
|
|
25467
|
+
b.value === "context" ? (J(), Y("div", mT, [N.value ? (J(), Y(q, { key: 1 }, [
|
|
25468
|
+
X("div", gT, [X("div", _T, [X("div", {
|
|
25428
25469
|
class: "ctx-bar-track",
|
|
25429
25470
|
title: `${s.value.debugCtxOccupancy} ${Math.round(N.value.occupancy * 100)}%`
|
|
25430
25471
|
}, [X("div", {
|
|
@@ -25435,12 +25476,12 @@ app.mount('#app');
|
|
|
25435
25476
|
class: "ctx-threshold-mark",
|
|
25436
25477
|
style: Oe({ left: Math.min(N.value.thresholdRatio * 100, 100) + "%" }),
|
|
25437
25478
|
title: s.value.debugCtxThreshold
|
|
25438
|
-
}, null, 12,
|
|
25439
|
-
X("span",
|
|
25440
|
-
N.value.contextWindow ? (J(), Y("span",
|
|
25441
|
-
N.value.thresholdRatio > 0 ? (J(), Y("span",
|
|
25479
|
+
}, null, 12, yT)) : Q("", !0)], 8, vT), X("span", bT, U(Math.round(N.value.occupancy * 100)) + "%", 1)]), X("div", xT, [
|
|
25480
|
+
X("span", ST, U(s.value.debugCtxTokens) + " " + U(N.value.totalTokens) + " token", 1),
|
|
25481
|
+
N.value.contextWindow ? (J(), Y("span", CT, U(s.value.debugCtxWindow) + " " + U(N.value.contextWindow), 1)) : Q("", !0),
|
|
25482
|
+
N.value.thresholdRatio > 0 ? (J(), Y("span", wT, U(s.value.debugCtxThresholdPct) + " " + U(Math.round(N.value.thresholdRatio * 100)) + "%", 1)) : Q("", !0)
|
|
25442
25483
|
])]),
|
|
25443
|
-
X("div",
|
|
25484
|
+
X("div", TT, U(s.value.debugCtxCategories), 1),
|
|
25444
25485
|
(J(!0), Y(q, null, ca(N.value.categories, (e) => (J(), Y("div", {
|
|
25445
25486
|
key: e.key,
|
|
25446
25487
|
class: "ctx-cat"
|
|
@@ -25448,240 +25489,240 @@ app.mount('#app');
|
|
|
25448
25489
|
X("span", {
|
|
25449
25490
|
class: "ctx-cat-label",
|
|
25450
25491
|
title: e.label
|
|
25451
|
-
}, U(e.label), 9,
|
|
25452
|
-
X("div",
|
|
25492
|
+
}, U(e.label), 9, ET),
|
|
25493
|
+
X("div", DT, [X("div", {
|
|
25453
25494
|
class: "ctx-cat-fill",
|
|
25454
25495
|
style: Oe({ width: Math.max(Math.round(e.pct * 100), 2) + "%" })
|
|
25455
25496
|
}, null, 4)]),
|
|
25456
|
-
X("span",
|
|
25497
|
+
X("span", OT, [_s(U(e.tokens) + " ", 1), X("i", null, "(" + U(Math.round(e.pct * 100)) + "%)", 1)])
|
|
25457
25498
|
]))), 128)),
|
|
25458
|
-
N.value.compression ? (J(), Y("div",
|
|
25459
|
-
X("span",
|
|
25460
|
-
X("span",
|
|
25461
|
-
X("span",
|
|
25462
|
-
N.value.compression.decision ? (J(), Y("span",
|
|
25463
|
-
])])) :
|
|
25464
|
-
], 64)) : (J(), Y("div",
|
|
25465
|
-
b.value === "subagent" ? (J(), Y("div",
|
|
25499
|
+
N.value.compression ? (J(), Y("div", kT, [X("div", AT, U(s.value.debugCtxLastCompression), 1), X("div", jT, [
|
|
25500
|
+
X("span", MT, U(s.value.debugCtxSummarized) + " " + U(N.value.compression.roundsSummarized) + "/" + U(N.value.compression.roundsTotal) + U(s.value.debugCtxRoundsSuffix), 1),
|
|
25501
|
+
X("span", NT, U(s.value.debugCtxRecalled) + " " + U(N.value.compression.roundsRecalled), 1),
|
|
25502
|
+
X("span", PT, U(N.value.compression.strategy), 1),
|
|
25503
|
+
N.value.compression.decision ? (J(), Y("span", FT, "🤖 " + U(s.value.debugCtxAgentDecision) + U(ie(N.value.compression.decision)), 1)) : Q("", !0)
|
|
25504
|
+
])])) : Q("", !0)
|
|
25505
|
+
], 64)) : (J(), Y("div", hT, U(s.value.debugCtxEmpty), 1))])) : Q("", !0),
|
|
25506
|
+
b.value === "subagent" ? (J(), Y("div", IT, [ne.value.length ? (J(), Y("div", LT, [X("div", RT, "🔒 " + U(s.value.debugLocksTitle) + " (" + U(ne.value.length) + ")", 1), (J(!0), Y(q, null, ca(ne.value, ([e, t]) => (J(), Y("div", {
|
|
25466
25507
|
key: "lock-" + e,
|
|
25467
25508
|
class: "sub-task"
|
|
25468
|
-
}, "🔒 " + U(e) + " ← " + U(t), 1))), 128))])) :
|
|
25509
|
+
}, "🔒 " + U(e) + " ← " + U(t), 1))), 128))])) : Q("", !0), !P.value.length && !F.value.length ? (J(), Y("div", zT, U(s.value.debugSubagentEmpty), 1)) : (J(), Y(q, { key: 2 }, [P.value.length ? (J(), Y("div", BT, [X("div", VT, "▶ " + U(s.value.debugSubRunningTitle) + " (" + U(P.value.length) + ")", 1), (J(!0), Y(q, null, ca(P.value, (e, t) => (J(), Y("div", {
|
|
25469
25510
|
key: "a" + t,
|
|
25470
25511
|
class: H(["sub-card", e.status])
|
|
25471
|
-
}, [X("div",
|
|
25512
|
+
}, [X("div", HT, [
|
|
25472
25513
|
X("span", {
|
|
25473
25514
|
class: "sub-status",
|
|
25474
25515
|
style: Oe({ background: I.value[e.status] && I.value[e.status].color || "#9ca3af" })
|
|
25475
25516
|
}, U(I.value[e.status] && I.value[e.status].label || e.status), 5),
|
|
25476
|
-
X("span",
|
|
25477
|
-
X("span",
|
|
25478
|
-
]), X("div",
|
|
25517
|
+
X("span", UT, U(e.label), 1),
|
|
25518
|
+
X("span", WT, U(e.steps.length) + U(s.value.debugStepsCountSuffix), 1)
|
|
25519
|
+
]), X("div", GT, U(A(e.task, 80)), 1)], 2))), 128))])) : Q("", !0), F.value.length ? (J(), Y("div", KT, [X("div", qT, "🕐 " + U(s.value.debugSubHistoryTitle) + " (" + U(F.value.length) + ")", 1), (J(!0), Y(q, null, ca(F.value, (e, t) => (J(), Y("div", {
|
|
25479
25520
|
key: "h" + t,
|
|
25480
25521
|
class: H(["sub-card", e.status])
|
|
25481
25522
|
}, [
|
|
25482
|
-
X("div",
|
|
25523
|
+
X("div", JT, [
|
|
25483
25524
|
X("span", {
|
|
25484
25525
|
class: "sub-status",
|
|
25485
25526
|
style: Oe({ background: I.value[e.status] && I.value[e.status].color || "#9ca3af" })
|
|
25486
25527
|
}, U(I.value[e.status] && I.value[e.status].label || e.status), 5),
|
|
25487
|
-
X("span",
|
|
25488
|
-
e.durationMs == null ?
|
|
25528
|
+
X("span", YT, U(e.label), 1),
|
|
25529
|
+
e.durationMs == null ? Q("", !0) : (J(), Y("span", XT, U(ee(e.durationMs)), 1)),
|
|
25489
25530
|
e.steps.length ? (J(), Y("button", {
|
|
25490
25531
|
key: 1,
|
|
25491
25532
|
class: "sub-toggle",
|
|
25492
25533
|
onClick: (e) => re(t)
|
|
25493
|
-
}, U(L.value.has(t) ? s.value.collapse : s.value.debugStepsBtn), 9,
|
|
25534
|
+
}, U(L.value.has(t) ? s.value.collapse : s.value.debugStepsBtn), 9, ZT)) : Q("", !0)
|
|
25494
25535
|
]),
|
|
25495
|
-
X("div",
|
|
25496
|
-
e.resultPreview ? (J(), Y("div",
|
|
25497
|
-
L.value.has(t) && e.steps.length ? (J(), Y("div",
|
|
25536
|
+
X("div", QT, U(A(e.task, 80)), 1),
|
|
25537
|
+
e.resultPreview ? (J(), Y("div", $T, U(e.resultPreview), 1)) : Q("", !0),
|
|
25538
|
+
L.value.has(t) && e.steps.length ? (J(), Y("div", eE, [(J(!0), Y(q, null, ca(e.steps, (e, t) => (J(), Y("div", {
|
|
25498
25539
|
key: t,
|
|
25499
25540
|
class: "sub-step"
|
|
25500
25541
|
}, [
|
|
25501
|
-
X("span",
|
|
25502
|
-
X("span",
|
|
25503
|
-
X("span",
|
|
25504
|
-
]))), 128))])) :
|
|
25505
|
-
], 2))), 128))])) :
|
|
25506
|
-
b.value === "logs" ? (J(), Y(q, { key: 3 }, [u.value.length === 0 ? (J(), Y("div",
|
|
25542
|
+
X("span", tE, U(e.kind === "tool_call" ? "🔧" : "✅"), 1),
|
|
25543
|
+
X("span", nE, U(e.name), 1),
|
|
25544
|
+
X("span", rE, U(f(e.ts)), 1)
|
|
25545
|
+
]))), 128))])) : Q("", !0)
|
|
25546
|
+
], 2))), 128))])) : Q("", !0)], 64))])) : Q("", !0),
|
|
25547
|
+
b.value === "logs" ? (J(), Y(q, { key: 3 }, [u.value.length === 0 ? (J(), Y("div", iE, U(s.value.debugLogsEmpty), 1)) : Q("", !0), (J(!0), Y(q, null, ca(u.value, (e, t) => (J(), Y("div", {
|
|
25507
25548
|
key: t,
|
|
25508
25549
|
class: "log-item"
|
|
25509
25550
|
}, [
|
|
25510
|
-
X("div",
|
|
25551
|
+
X("div", aE, [
|
|
25511
25552
|
X("span", {
|
|
25512
25553
|
class: "log-type",
|
|
25513
25554
|
style: Oe({ background: c.value[e.type].color })
|
|
25514
25555
|
}, U(c.value[e.type].icon) + " " + U(c.value[e.type].label), 5),
|
|
25515
|
-
e.source ? (J(), Y("span",
|
|
25516
|
-
X("span",
|
|
25556
|
+
e.source ? (J(), Y("span", oE, "↳ " + U(e.source), 1)) : Q("", !0),
|
|
25557
|
+
X("span", sE, U(f(e.timestamp)), 1)
|
|
25517
25558
|
]),
|
|
25518
|
-
X("div",
|
|
25519
|
-
X("div",
|
|
25520
|
-
X("div",
|
|
25521
|
-
X("div",
|
|
25522
|
-
X("div",
|
|
25523
|
-
X("div",
|
|
25559
|
+
X("div", cE, [e.type === "context" ? (J(), Y(q, { key: 0 }, [
|
|
25560
|
+
X("div", lE, [
|
|
25561
|
+
X("div", uE, [X("span", dE, U(s.value.debugModel), 1), X("span", fE, U(e.data.model), 1)]),
|
|
25562
|
+
X("div", pE, [X("span", mE, U(s.value.debugTemperature), 1), X("span", hE, U(e.data.temperature), 1)]),
|
|
25563
|
+
X("div", gE, [n[8] ||= X("span", { class: "k" }, "MaxTokens", -1), X("span", _E, U(e.data.maxTokens), 1)]),
|
|
25564
|
+
X("div", vE, [X("span", yE, U(s.value.debugMessageCount), 1), X("span", bE, U(e.data.totalMessages), 1)])
|
|
25524
25565
|
]),
|
|
25525
|
-
X("div",
|
|
25526
|
-
X("div",
|
|
25566
|
+
X("div", xE, U(s.value.debugToolsLabel) + " (" + U(e.data.tools?.length || 0) + ")", 1),
|
|
25567
|
+
X("div", SE, [(J(!0), Y(q, null, ca(e.data.tools, (e) => (J(), Y("span", {
|
|
25527
25568
|
key: e,
|
|
25528
25569
|
class: "tool-chip"
|
|
25529
25570
|
}, U(e), 1))), 128))]),
|
|
25530
|
-
X("div",
|
|
25531
|
-
X("div",
|
|
25571
|
+
X("div", CE, U(s.value.debugContextMessages), 1),
|
|
25572
|
+
X("div", wE, [(J(!0), Y(q, null, ca(e.data.messages, (e, t) => (J(), Y("div", {
|
|
25532
25573
|
key: t,
|
|
25533
25574
|
class: "msg-row"
|
|
25534
25575
|
}, [X("span", {
|
|
25535
25576
|
class: "msg-role",
|
|
25536
25577
|
style: Oe({ background: _(e.type).color })
|
|
25537
|
-
}, U(_(e.type).label), 5), X("span",
|
|
25538
|
-
], 64)) : e.type === "llm_request" ? (J(), Y(q, { key: 1 }, [X("div",
|
|
25539
|
-
X("span",
|
|
25540
|
-
e.data.model ? (J(), Y("span",
|
|
25541
|
-
X("span",
|
|
25542
|
-
e.data.tools?.length ? (J(), Y("span",
|
|
25578
|
+
}, U(_(e.type).label), 5), X("span", TE, U(e.content), 1)]))), 128))])
|
|
25579
|
+
], 64)) : e.type === "llm_request" ? (J(), Y(q, { key: 1 }, [X("div", EE, [
|
|
25580
|
+
X("span", DE, U(s.value.debugRoundPrefix) + U(e.data.round) + U(s.value.debugRoundSuffix), 1),
|
|
25581
|
+
e.data.model ? (J(), Y("span", OE, U(e.data.model), 1)) : Q("", !0),
|
|
25582
|
+
X("span", kE, U((e.data.messages || []).length) + U(s.value.debugMsgCountSuffix), 1),
|
|
25583
|
+
e.data.tools?.length ? (J(), Y("span", AE, U(e.data.tools.length) + U(s.value.debugToolCountSuffix), 1)) : Q("", !0),
|
|
25543
25584
|
X("button", {
|
|
25544
25585
|
class: "view-toggle",
|
|
25545
25586
|
onClick: (e) => m(t)
|
|
25546
|
-
}, U(o.value.has(t) ? s.value.debugCardView : s.value.debugRequestBody), 9,
|
|
25547
|
-
]), o.value.has(t) ? (J(), Y("pre",
|
|
25587
|
+
}, U(o.value.has(t) ? s.value.debugCardView : s.value.debugRequestBody), 9, jE)
|
|
25588
|
+
]), o.value.has(t) ? (J(), Y("pre", RE, [X("code", null, U(h(e.data.messages)), 1)])) : (J(), Y("div", ME, [(J(!0), Y(q, null, ca(e.data.messages, (e, t) => (J(), Y("div", {
|
|
25548
25589
|
key: t,
|
|
25549
25590
|
class: "msg-row"
|
|
25550
25591
|
}, [X("span", {
|
|
25551
25592
|
class: "msg-role",
|
|
25552
25593
|
style: Oe({ background: _(e.role).color })
|
|
25553
|
-
}, U(_(e.role).label), 5), X("div",
|
|
25554
|
-
e.content ? (J(), Y("span",
|
|
25594
|
+
}, U(_(e.role).label), 5), X("div", NE, [
|
|
25595
|
+
e.content ? (J(), Y("span", PE, U(e.content), 1)) : Q("", !0),
|
|
25555
25596
|
(J(!0), Y(q, null, ca(e.tool_calls || [], (e, t) => (J(), Y("div", {
|
|
25556
25597
|
key: t,
|
|
25557
25598
|
class: "tc-inline"
|
|
25558
|
-
}, [X("span",
|
|
25559
|
-
e.tool_call_id ? (J(), Y("span",
|
|
25599
|
+
}, [X("span", FE, "🔧 " + U(e.function?.name || e.name), 1), X("code", IE, U(e.function?.arguments ?? e.args), 1)]))), 128)),
|
|
25600
|
+
e.tool_call_id ? (J(), Y("span", LE, "↳ tool_call_id: " + U(e.tool_call_id), 1)) : Q("", !0)
|
|
25560
25601
|
])]))), 128))]))], 64)) : e.type === "llm_response" ? (J(), Y(q, { key: 2 }, [
|
|
25561
|
-
X("div",
|
|
25562
|
-
e.data.content ? (J(), Y("div",
|
|
25563
|
-
e.data.toolCalls?.length ? (J(), Y("div",
|
|
25602
|
+
X("div", zE, [X("span", BE, U(s.value.debugRoundPrefix) + U(e.data.round) + U(s.value.debugRoundSuffix), 1), e.data.toolCalls?.length ? (J(), Y("span", VE, "🔧 " + U(e.data.toolCalls.length) + U(s.value.debugToolCallsSuffix), 1)) : Q("", !0)]),
|
|
25603
|
+
e.data.content ? (J(), Y("div", HE, U(e.data.content), 1)) : Q("", !0),
|
|
25604
|
+
e.data.toolCalls?.length ? (J(), Y("div", UE, [(J(!0), Y(q, null, ca(e.data.toolCalls, (e, t) => (J(), Y("div", {
|
|
25564
25605
|
key: t,
|
|
25565
25606
|
class: "tc-card"
|
|
25566
|
-
}, [X("div",
|
|
25567
|
-
e.data.usage ? (J(), Y("div",
|
|
25568
|
-
X("span",
|
|
25569
|
-
X("span",
|
|
25570
|
-
X("span",
|
|
25571
|
-
])) :
|
|
25572
|
-
], 64)) : e.type === "tool_call" ? (J(), Y("div",
|
|
25573
|
-
X("div",
|
|
25607
|
+
}, [X("div", WE, "🔧 " + U(e.name), 1), X("pre", GE, U(h(e.args)), 1)]))), 128))])) : Q("", !0),
|
|
25608
|
+
e.data.usage ? (J(), Y("div", KE, [
|
|
25609
|
+
X("span", qE, "prompt: " + U(e.data.usage.prompt_tokens ?? "-"), 1),
|
|
25610
|
+
X("span", JE, "completion: " + U(e.data.usage.completion_tokens ?? "-"), 1),
|
|
25611
|
+
X("span", YE, "total: " + U(e.data.usage.total_tokens ?? "-"), 1)
|
|
25612
|
+
])) : Q("", !0)
|
|
25613
|
+
], 64)) : e.type === "tool_call" ? (J(), Y("div", XE, [X("div", ZE, "🔧 " + U(e.data.name), 1), X("pre", QE, U(h(e.data.args)), 1)])) : e.type === "tool_result" ? (J(), Y("div", $E, [X("div", eD, "✅ " + U(e.data.name) + U(s.value.debugResultSuffix), 1), X("pre", tD, U(e.data.result), 1)])) : e.type === "error" ? (J(), Y("div", nD, U(e.data.tool ? `[${e.data.tool}] ` : "") + U(e.data.error), 1)) : Q("", !0)]),
|
|
25614
|
+
X("div", rD, [X("button", {
|
|
25574
25615
|
class: "raw-toggle",
|
|
25575
25616
|
onClick: (e) => p(t)
|
|
25576
|
-
}, U(a.value.has(t) ? s.value.debugCollapseRawJson : s.value.debugViewRawJson), 9,
|
|
25617
|
+
}, U(a.value.has(t) ? s.value.debugCollapseRawJson : s.value.debugViewRawJson), 9, iD), X("button", {
|
|
25577
25618
|
class: "raw-toggle",
|
|
25578
25619
|
onClick: (t) => G(__)(h(e.data))
|
|
25579
|
-
}, U(s.value.copy), 9,
|
|
25580
|
-
a.value.has(t) ? (J(), Y("pre",
|
|
25620
|
+
}, U(s.value.copy), 9, aD)]),
|
|
25621
|
+
a.value.has(t) ? (J(), Y("pre", oD, [X("code", null, U(h(e.data)), 1)])) : Q("", !0)
|
|
25581
25622
|
]))), 128))], 64)) : b.value === "flow" ? (J(), Y(q, { key: 4 }, [
|
|
25582
|
-
l.value.length ?
|
|
25583
|
-
k.value.pre.length ? (J(), Y("div",
|
|
25623
|
+
l.value.length ? Q("", !0) : (J(), Y("div", sD, U(s.value.debugFlowEmpty), 1)),
|
|
25624
|
+
k.value.pre.length ? (J(), Y("div", cD, [X("div", lD, "⚙️ " + U(s.value.debugFlowPrep), 1), (J(!0), Y(q, null, ca(k.value.pre, (e, t) => (J(), Y("div", {
|
|
25584
25625
|
key: "p" + t,
|
|
25585
25626
|
class: H(["flow-node", e.type])
|
|
25586
25627
|
}, [
|
|
25587
|
-
X("span",
|
|
25588
|
-
X("span",
|
|
25589
|
-
X("span",
|
|
25590
|
-
X("span",
|
|
25591
|
-
], 2))), 128))])) :
|
|
25628
|
+
X("span", uD, U(c.value[e.type]?.icon), 1),
|
|
25629
|
+
X("span", dD, U(c.value[e.type]?.label), 1),
|
|
25630
|
+
X("span", fD, U(z(e)), 1),
|
|
25631
|
+
X("span", pD, U(f(e.timestamp)), 1)
|
|
25632
|
+
], 2))), 128))])) : Q("", !0),
|
|
25592
25633
|
(J(!0), Y(q, null, ca(k.value.rounds, (e) => (J(), Y("div", {
|
|
25593
25634
|
key: e.round,
|
|
25594
25635
|
class: "flow-round"
|
|
25595
|
-
}, [X("div",
|
|
25636
|
+
}, [X("div", mD, "🔁 " + U(s.value.debugRoundPrefix) + U(e.round) + U(s.value.debugRoundSuffix), 1), X("div", hD, [(J(!0), Y(q, null, ca(e.items, (e, t) => (J(), Y("div", {
|
|
25596
25637
|
key: t,
|
|
25597
25638
|
class: H(["flow-node", e.type])
|
|
25598
25639
|
}, [
|
|
25599
|
-
X("span",
|
|
25600
|
-
X("span",
|
|
25601
|
-
X("span",
|
|
25602
|
-
X("span",
|
|
25640
|
+
X("span", gD, U(c.value[e.type]?.icon), 1),
|
|
25641
|
+
X("span", _D, U(c.value[e.type]?.label), 1),
|
|
25642
|
+
X("span", vD, U(z(e)), 1),
|
|
25643
|
+
X("span", yD, U(f(e.timestamp)), 1)
|
|
25603
25644
|
], 2))), 128))])]))), 128))
|
|
25604
|
-
], 64)) : (J(), Y("div",
|
|
25605
|
-
X("div",
|
|
25606
|
-
X("div",
|
|
25607
|
-
X("div",
|
|
25608
|
-
X("div",
|
|
25609
|
-
X("div",
|
|
25610
|
-
X("div",
|
|
25611
|
-
X("div",
|
|
25645
|
+
], 64)) : (J(), Y("div", bD, [x.value ? (J(), Y(q, { key: 1 }, [
|
|
25646
|
+
X("div", SD, [
|
|
25647
|
+
X("div", CD, U(s.value.debugInfoBasic), 1),
|
|
25648
|
+
X("div", wD, [
|
|
25649
|
+
X("div", TD, [n[9] ||= X("span", { class: "k" }, "ID", -1), X("span", ED, U(x.value.id), 1)]),
|
|
25650
|
+
X("div", DD, [X("span", OD, U(s.value.debugModel), 1), X("span", kD, U(x.value.model || "-"), 1)]),
|
|
25651
|
+
X("div", AD, [X("span", jD, U(s.value.debugToolCount), 1), X("span", MD, U(x.value.tools.length), 1)]),
|
|
25652
|
+
X("div", ND, [X("span", PD, U(s.value.debugMiddleware), 1), X("span", FD, U(x.value.middleware.length), 1)])
|
|
25612
25653
|
]),
|
|
25613
|
-
X("div",
|
|
25654
|
+
X("div", ID, [X("span", LD, U(s.value.debugMiddlewareStack), 1), X("span", RD, U(x.value.middleware.join(" → ") || "-"), 1)])
|
|
25614
25655
|
]),
|
|
25615
|
-
X("div",
|
|
25656
|
+
X("div", zD, [X("div", BD, "🔧 " + U(s.value.debugToolsLabel) + " (" + U(x.value.tools.length) + ")", 1), (J(!0), Y(q, null, ca(x.value.tools, (e) => (J(), Y("div", {
|
|
25616
25657
|
key: e.name,
|
|
25617
25658
|
class: "info-item"
|
|
25618
|
-
}, [X("div",
|
|
25659
|
+
}, [X("div", VD, [_s(U(e.name), 1), e.source ? (J(), Y("span", {
|
|
25619
25660
|
key: 0,
|
|
25620
25661
|
class: H(["src-tag", O(e.source)])
|
|
25621
|
-
}, U(e.source), 3)) :
|
|
25622
|
-
x.value.skills.length ? (J(), Y("div",
|
|
25662
|
+
}, U(e.source), 3)) : Q("", !0)]), X("div", HD, U(e.description), 1)]))), 128))]),
|
|
25663
|
+
x.value.skills.length ? (J(), Y("div", UD, [X("div", WD, [_s("📘 " + U(s.value.debugSkillsTitle) + " (" + U(x.value.skills.length) + ")", 1), X("span", GD, U(s.value.debugSkillsHint), 1)]), (J(!0), Y(q, null, ca(x.value.skills, (e) => (J(), Y("div", {
|
|
25623
25664
|
key: e.name,
|
|
25624
25665
|
class: "info-item"
|
|
25625
25666
|
}, [
|
|
25626
25667
|
X("div", {
|
|
25627
25668
|
class: "info-name skill-toggle",
|
|
25628
25669
|
onClick: (t) => C(e.name)
|
|
25629
|
-
}, [X("span", { class: H(["skill-arrow", { open: !!S.value[e.name] }]) }, "▶", 2),
|
|
25630
|
-
X("div",
|
|
25631
|
-
S.value[e.name] ? (J(), Y("div",
|
|
25632
|
-
]))), 128))])) :
|
|
25633
|
-
x.value.data ? (J(), Y("div",
|
|
25634
|
-
X("div",
|
|
25635
|
-
X("div",
|
|
25636
|
-
X("div",
|
|
25637
|
-
X("div",
|
|
25638
|
-
X("div",
|
|
25670
|
+
}, [X("span", { class: H(["skill-arrow", { open: !!S.value[e.name] }]) }, "▶", 2), _s(" " + U(e.name), 1)], 8, KD),
|
|
25671
|
+
X("div", qD, U(e.description), 1),
|
|
25672
|
+
S.value[e.name] ? (J(), Y("div", JD, [S.value[e.name].loading ? (J(), Y("div", YD, U(s.value.debugLoading), 1)) : S.value[e.name].error ? (J(), Y("div", XD, U(S.value[e.name].error), 1)) : S.value[e.name].content ? (J(), Y("pre", ZD, U(S.value[e.name].content), 1)) : Q("", !0)])) : Q("", !0)
|
|
25673
|
+
]))), 128))])) : Q("", !0),
|
|
25674
|
+
x.value.data ? (J(), Y("div", QD, [X("div", $D, "📊 " + U(s.value.debugDataTitle), 1), X("div", eO, [X("div", tO, U(x.value.data.description || s.value.debugDataFallback), 1), X("div", nO, U(s.value.debugSchemaPrefix) + U(x.value.data.schema ? s.value.debugSchemaDeclared : s.value.debugSchemaMissing), 1)])])) : Q("", !0),
|
|
25675
|
+
X("div", rO, [X("div", iO, "🧬 " + U(s.value.debugSubagentTitle), 1), X("div", aO, [
|
|
25676
|
+
X("div", oO, [X("span", sO, U(s.value.debugEnabled), 1), X("span", cO, U(x.value.subagent.enabled ? s.value.debugYes : s.value.debugNo), 1)]),
|
|
25677
|
+
X("div", lO, [X("span", uO, U(s.value.debugMaxDepth), 1), X("span", dO, U(x.value.subagent.maxDepth), 1)]),
|
|
25678
|
+
X("div", fO, [X("span", pO, U(s.value.debugMaxParallel), 1), X("span", mO, U(x.value.subagent.maxParallel), 1)]),
|
|
25679
|
+
X("div", hO, [X("span", gO, U(s.value.debugExtraTools), 1), X("span", _O, U(x.value.subagent.allowedTools.length ? x.value.subagent.allowedTools.join(", ") : s.value.debugDefaultReadonly), 1)])
|
|
25639
25680
|
])]),
|
|
25640
|
-
x.value.mcp?.servers?.length ? (J(), Y("div",
|
|
25681
|
+
x.value.mcp?.servers?.length ? (J(), Y("div", vO, [X("div", yO, "🔌 MCP (" + U(x.value.mcp.servers.length) + ")", 1), (J(!0), Y(q, null, ca(x.value.mcp.servers, (e) => (J(), Y("div", {
|
|
25641
25682
|
key: e.name,
|
|
25642
25683
|
class: "info-item"
|
|
25643
|
-
}, [X("div",
|
|
25644
|
-
x.value.verify ? (J(), Y("div",
|
|
25645
|
-
X("div",
|
|
25646
|
-
X("div",
|
|
25647
|
-
X("div",
|
|
25648
|
-
x.value.verify.adversarial ? (J(), Y("div",
|
|
25649
|
-
])])) :
|
|
25650
|
-
x.value.todos.length ? (J(), Y("div",
|
|
25684
|
+
}, [X("div", bO, [_s(U(e.name) + " ", 1), X("span", xO, U(e.toolCount) + U(s.value.debugToolCountSuffix), 1)]), X("div", SO, U(e.url), 1)]))), 128))])) : Q("", !0),
|
|
25685
|
+
x.value.verify ? (J(), Y("div", CO, [X("div", wO, "✅ " + U(s.value.debugVerifyTitle), 1), X("div", TO, [
|
|
25686
|
+
X("div", EO, [X("span", DO, U(s.value.debugEnabled), 1), X("span", OO, U(x.value.verify.enabled ? s.value.debugYes : s.value.debugNo), 1)]),
|
|
25687
|
+
X("div", kO, [X("span", AO, U(s.value.debugMaxAttempts), 1), X("span", jO, U(x.value.verify.maxAttempts), 1)]),
|
|
25688
|
+
X("div", MO, [X("span", NO, U(s.value.debugAdversarial), 1), X("span", PO, U(x.value.verify.adversarial ? s.value.debugOn : s.value.debugOff), 1)]),
|
|
25689
|
+
x.value.verify.adversarial ? (J(), Y("div", FO, [X("span", IO, U(s.value.debugAdversarialModel), 1), X("span", LO, U(x.value.model || "-") + U(s.value.debugSameAsMain), 1)])) : Q("", !0)
|
|
25690
|
+
])])) : Q("", !0),
|
|
25691
|
+
x.value.todos.length ? (J(), Y("div", RO, [X("div", zO, "📋 " + U(s.value.debugTodosTitle) + " (" + U(x.value.todos.length) + ")", 1), (J(!0), Y(q, null, ca(x.value.todos, (e, t) => (J(), Y("div", {
|
|
25651
25692
|
key: t,
|
|
25652
25693
|
class: "info-todo"
|
|
25653
25694
|
}, [X("span", {
|
|
25654
25695
|
class: "todo-tag",
|
|
25655
25696
|
style: Oe({ background: E.value[e.status] && E.value[e.status].color || "#9ca3af" })
|
|
25656
|
-
}, U(D(e.status)), 5), X("span", null, U(e.content), 1)]))), 128))])) :
|
|
25657
|
-
x.value.memory ? (J(), Y("div",
|
|
25658
|
-
x.value.lastCompression ? (J(), Y("div",
|
|
25659
|
-
X("div",
|
|
25660
|
-
X("div",
|
|
25661
|
-
X("div",
|
|
25662
|
-
X("div",
|
|
25663
|
-
X("div",
|
|
25664
|
-
x.value.lastCompression.decision ? (J(), Y("div",
|
|
25665
|
-
])])) :
|
|
25666
|
-
], 64)) : (J(), Y("div",
|
|
25697
|
+
}, U(D(e.status)), 5), X("span", null, U(e.content), 1)]))), 128))])) : Q("", !0),
|
|
25698
|
+
x.value.memory ? (J(), Y("div", BO, [X("div", VO, "📝 " + U(s.value.debugMemoryTitle), 1), X("pre", HO, U(x.value.memory), 1)])) : Q("", !0),
|
|
25699
|
+
x.value.lastCompression ? (J(), Y("div", UO, [X("div", WO, "🗜️ " + U(s.value.debugLastCompTitle), 1), X("div", GO, [
|
|
25700
|
+
X("div", KO, [X("span", qO, U(s.value.debugTriggered), 1), X("span", JO, U(x.value.lastCompression.triggered ? "✓" : s.value.debugNotTriggered), 1)]),
|
|
25701
|
+
X("div", YO, [X("span", XO, U(s.value.debugRoundsSummarized), 1), X("span", ZO, U(x.value.lastCompression.roundsSummarized) + " / " + U(x.value.lastCompression.roundsTotal), 1)]),
|
|
25702
|
+
X("div", QO, [X("span", $O, U(s.value.debugCtxRecalled), 1), X("span", ek, U(x.value.lastCompression.roundsRecalled) + U(s.value.debugCountSuffix), 1)]),
|
|
25703
|
+
X("div", tk, [X("span", nk, U(s.value.debugMessageCount), 1), X("span", rk, U(x.value.lastCompression.originalMessages) + " → " + U(x.value.lastCompression.compressedMessages), 1)]),
|
|
25704
|
+
X("div", ik, [X("span", ak, U(s.value.debugStrategy), 1), X("span", ok, U(x.value.lastCompression.strategy), 1)]),
|
|
25705
|
+
x.value.lastCompression.decision ? (J(), Y("div", sk, [X("span", ck, U(s.value.debugDecision), 1), X("span", lk, "🤖 " + U(ie(x.value.lastCompression.decision)), 1)])) : Q("", !0)
|
|
25706
|
+
])])) : Q("", !0)
|
|
25707
|
+
], 64)) : (J(), Y("div", xD, U(s.value.debugNoInfo), 1))]))
|
|
25667
25708
|
])
|
|
25668
25709
|
], 2), X("div", {
|
|
25669
25710
|
class: "drawer-mask",
|
|
25670
25711
|
onClick: v
|
|
25671
|
-
})])) :
|
|
25712
|
+
})])) : Q("", !0)]),
|
|
25672
25713
|
_: 1
|
|
25673
25714
|
})]));
|
|
25674
25715
|
}
|
|
25675
|
-
}), [["__scopeId", "data-v-c3c5a5dd"]]),
|
|
25716
|
+
}), [["__scopeId", "data-v-c3c5a5dd"]]), dk = { class: "skill-panel" }, fk = { class: "skill-header" }, pk = { class: "skill-title" }, mk = ["title"], hk = { class: "skill-section" }, gk = { class: "section-title" }, _k = ["title"], vk = { class: "field" }, yk = { class: "field-label" }, bk = ["disabled", "placeholder"], xk = { class: "field" }, Sk = { class: "field-label" }, Ck = ["placeholder"], wk = { class: "field field-textarea" }, Tk = { class: "field-label" }, Ek = ["placeholder"], Dk = {
|
|
25676
25717
|
key: 0,
|
|
25677
25718
|
class: "skill-error"
|
|
25678
|
-
},
|
|
25719
|
+
}, Ok = { class: "skill-section" }, kk = { class: "section-title" }, Ak = {
|
|
25679
25720
|
key: 0,
|
|
25680
25721
|
class: "empty-hint"
|
|
25681
|
-
},
|
|
25722
|
+
}, jk = {
|
|
25682
25723
|
key: 1,
|
|
25683
25724
|
class: "skill-list"
|
|
25684
|
-
},
|
|
25725
|
+
}, Mk = { class: "skill-actions" }, Nk = ["title", "onClick"], Pk = ["title", "onClick"], Fk = { class: "skill-hint" }, Ik = /*#__PURE__*/ sy(/* @__PURE__ */ Ii({
|
|
25685
25726
|
__name: "SkillPanel",
|
|
25686
25727
|
props: {
|
|
25687
25728
|
visible: { type: Boolean },
|
|
@@ -25731,71 +25772,71 @@ app.mount('#app');
|
|
|
25731
25772
|
function h() {
|
|
25732
25773
|
u.value = null, i.value = "", a.value = "", o.value = "", s.value = "";
|
|
25733
25774
|
}
|
|
25734
|
-
return (t, n) => (J(), os(vi, { to: "body" }, [
|
|
25775
|
+
return (t, n) => (J(), os(vi, { to: "body" }, [Z(gc, { name: "cs-skill-fade" }, {
|
|
25735
25776
|
default: Yr(() => [e.visible ? (J(), Y("div", {
|
|
25736
25777
|
key: 0,
|
|
25737
25778
|
class: "skill-mask",
|
|
25738
25779
|
onClick: n[4] ||= yl((e) => r("close"), ["self"])
|
|
25739
|
-
}, [X("div",
|
|
25740
|
-
X("div",
|
|
25780
|
+
}, [X("div", dk, [
|
|
25781
|
+
X("div", fk, [X("span", pk, U(e.messages.skillPanelTitle), 1), X("button", {
|
|
25741
25782
|
class: "skill-close",
|
|
25742
25783
|
title: e.messages.close,
|
|
25743
25784
|
onClick: n[0] ||= (e) => r("close")
|
|
25744
|
-
}, "✕", 8,
|
|
25745
|
-
X("div",
|
|
25746
|
-
X("div",
|
|
25785
|
+
}, "✕", 8, mk)]),
|
|
25786
|
+
X("div", hk, [
|
|
25787
|
+
X("div", gk, [_s(U(u.value ? `${e.messages.skillEditingPrefix}${u.value}` : e.messages.skillCreateNew) + " ", 1), u.value ? (J(), Y("button", {
|
|
25747
25788
|
key: 0,
|
|
25748
25789
|
class: "btn btn-ghost btn-cancel",
|
|
25749
25790
|
title: e.messages.skillCancelEdit,
|
|
25750
25791
|
onClick: h
|
|
25751
|
-
}, U(e.messages.skillCancelEdit), 9,
|
|
25752
|
-
X("label",
|
|
25792
|
+
}, U(e.messages.skillCancelEdit), 9, _k)) : Q("", !0)]),
|
|
25793
|
+
X("label", vk, [X("span", yk, U(e.messages.skillNameLabel), 1), Zr(X("input", {
|
|
25753
25794
|
"onUpdate:modelValue": n[1] ||= (e) => i.value = e,
|
|
25754
25795
|
disabled: !!u.value,
|
|
25755
25796
|
placeholder: e.messages.skillNamePlaceholder,
|
|
25756
25797
|
class: "field-input"
|
|
25757
|
-
}, null, 8,
|
|
25758
|
-
X("label",
|
|
25798
|
+
}, null, 8, bk), [[gl, i.value]])]),
|
|
25799
|
+
X("label", xk, [X("span", Sk, U(e.messages.skillDescLabel), 1), Zr(X("input", {
|
|
25759
25800
|
"onUpdate:modelValue": n[2] ||= (e) => a.value = e,
|
|
25760
25801
|
placeholder: e.messages.skillDescPlaceholder,
|
|
25761
25802
|
class: "field-input"
|
|
25762
|
-
}, null, 8,
|
|
25763
|
-
X("label",
|
|
25803
|
+
}, null, 8, Ck), [[gl, a.value]])]),
|
|
25804
|
+
X("label", wk, [X("span", Tk, U(e.messages.skillContentLabel), 1), Zr(X("textarea", {
|
|
25764
25805
|
"onUpdate:modelValue": n[3] ||= (e) => o.value = e,
|
|
25765
25806
|
placeholder: e.messages.skillContentPlaceholder,
|
|
25766
25807
|
rows: "6",
|
|
25767
25808
|
class: "field-input"
|
|
25768
|
-
}, null, 8,
|
|
25769
|
-
s.value ? (J(), Y("div",
|
|
25809
|
+
}, null, 8, Ek), [[gl, o.value]])]),
|
|
25810
|
+
s.value ? (J(), Y("div", Dk, U(s.value), 1)) : Q("", !0),
|
|
25770
25811
|
X("button", {
|
|
25771
25812
|
class: "btn btn-primary",
|
|
25772
25813
|
onClick: f
|
|
25773
25814
|
}, U(u.value ? e.messages.skillSave : e.messages.skillAdd), 1)
|
|
25774
25815
|
]),
|
|
25775
|
-
X("div",
|
|
25816
|
+
X("div", Ok, [X("div", kk, U(e.messages.skillCreatedTitle) + "(" + U(c.value.length) + ")", 1), c.value.length ? (J(), Y("ul", jk, [(J(!0), Y(q, null, ca(c.value, (t) => (J(), Y("li", {
|
|
25776
25817
|
key: t,
|
|
25777
25818
|
class: "skill-item"
|
|
25778
|
-
}, [X("span", { class: H(["skill-name", { active: u.value === t }]) }, U(t), 3), X("span",
|
|
25819
|
+
}, [X("span", { class: H(["skill-name", { active: u.value === t }]) }, U(t), 3), X("span", Mk, [X("button", {
|
|
25779
25820
|
class: "btn btn-ghost btn-edit",
|
|
25780
25821
|
title: e.messages.skillEditTitle,
|
|
25781
25822
|
onClick: (e) => m(t)
|
|
25782
|
-
}, U(e.messages.skillEditBtn), 9,
|
|
25823
|
+
}, U(e.messages.skillEditBtn), 9, Nk), X("button", {
|
|
25783
25824
|
class: "btn btn-ghost btn-del",
|
|
25784
25825
|
title: e.messages.skillDeleteTitle,
|
|
25785
25826
|
onClick: (e) => p(t)
|
|
25786
|
-
}, U(e.messages.skillDeleteBtn), 9,
|
|
25787
|
-
X("div",
|
|
25788
|
-
|
|
25827
|
+
}, U(e.messages.skillDeleteBtn), 9, Pk)])]))), 128))])) : (J(), Y("div", Ak, U(e.messages.skillEmpty), 1))]),
|
|
25828
|
+
X("div", Fk, [
|
|
25829
|
+
_s(" 💡 " + U(e.messages.skillHintA) + " ", 1),
|
|
25789
25830
|
n[5] ||= X("code", null, "load_skill(name)", -1),
|
|
25790
|
-
|
|
25831
|
+
_s(" " + U(e.messages.skillHintB) + " ", 1),
|
|
25791
25832
|
n[6] ||= X("code", null, "skillStorage.id", -1),
|
|
25792
|
-
|
|
25833
|
+
_s(" " + U(e.messages.skillHintC), 1)
|
|
25793
25834
|
])
|
|
25794
|
-
])])) :
|
|
25835
|
+
])])) : Q("", !0)]),
|
|
25795
25836
|
_: 1
|
|
25796
25837
|
})]));
|
|
25797
25838
|
}
|
|
25798
|
-
}), [["__scopeId", "data-v-fcd21121"]]),
|
|
25839
|
+
}), [["__scopeId", "data-v-fcd21121"]]), Lk = /*#__PURE__*/ sy(/* @__PURE__ */ Ii({
|
|
25799
25840
|
__name: "ChatDialog",
|
|
25800
25841
|
props: {
|
|
25801
25842
|
fetchResponse: {},
|
|
@@ -25845,8 +25886,7 @@ app.mount('#app');
|
|
|
25845
25886
|
sections: {},
|
|
25846
25887
|
csTheme: {},
|
|
25847
25888
|
icons: {},
|
|
25848
|
-
|
|
25849
|
-
messages: {}
|
|
25889
|
+
i18n: {}
|
|
25850
25890
|
},
|
|
25851
25891
|
emits: ["close"],
|
|
25852
25892
|
setup(e, { emit: t }) {
|
|
@@ -25867,15 +25907,15 @@ app.mount('#app');
|
|
|
25867
25907
|
onFocusChipClick: n.onFocusChipClick,
|
|
25868
25908
|
infoTick: n.infoTick,
|
|
25869
25909
|
icons: n.icons,
|
|
25870
|
-
locale: n.locale,
|
|
25871
|
-
dialogMessages: n.messages
|
|
25910
|
+
locale: n.i18n?.locale,
|
|
25911
|
+
dialogMessages: n.i18n?.messages
|
|
25872
25912
|
});
|
|
25873
25913
|
$r(w_, i);
|
|
25874
25914
|
let { isExpanded: a, debugVisible: o, skillVisible: s, closeSkill: c } = i, { scrollContainer: l, onScroll: u, onWheel: d } = i.chat;
|
|
25875
25915
|
function f(e) {
|
|
25876
25916
|
return e === "focus" ? n.sections?.focus === !0 : n.sections?.[e] !== !1;
|
|
25877
25917
|
}
|
|
25878
|
-
let p =
|
|
25918
|
+
let p = Qs(() => !!n.onAddSkill), m = Qs(() => {
|
|
25879
25919
|
if (!n.drawer || n.drawerWidth == null) return null;
|
|
25880
25920
|
let e = n.drawerWidth;
|
|
25881
25921
|
return typeof e == "number" ? `${e}px` : e;
|
|
@@ -25884,7 +25924,7 @@ app.mount('#app');
|
|
|
25884
25924
|
key: 0,
|
|
25885
25925
|
class: "chat-mask",
|
|
25886
25926
|
onClick: n[0] ||= (e) => r("close")
|
|
25887
|
-
})) :
|
|
25927
|
+
})) : Q("", !0), X("div", {
|
|
25888
25928
|
class: H(["chat-dialog", {
|
|
25889
25929
|
collapsed: !G(a) && !e.drawer,
|
|
25890
25930
|
drawer: e.drawer,
|
|
@@ -25898,7 +25938,7 @@ app.mount('#app');
|
|
|
25898
25938
|
f("header") ? la(t.$slots, "header", {
|
|
25899
25939
|
key: 0,
|
|
25900
25940
|
chat: G(i)
|
|
25901
|
-
}, () => [
|
|
25941
|
+
}, () => [Z(ky, {
|
|
25902
25942
|
title: e.title || G(i).messages.defaultTitle,
|
|
25903
25943
|
drawer: e.drawer,
|
|
25904
25944
|
"debug-logs": e.debugLogs,
|
|
@@ -25919,11 +25959,11 @@ app.mount('#app');
|
|
|
25919
25959
|
"on-new-session",
|
|
25920
25960
|
"on-open-session",
|
|
25921
25961
|
"on-remove-session"
|
|
25922
|
-
])], !0) :
|
|
25962
|
+
])], !0) : Q("", !0),
|
|
25923
25963
|
f("focus") ? la(t.$slots, "focus", {
|
|
25924
25964
|
key: 1,
|
|
25925
25965
|
chat: G(i)
|
|
25926
|
-
}, () => [
|
|
25966
|
+
}, () => [Z(By, {
|
|
25927
25967
|
"get-focus": e.getFocus,
|
|
25928
25968
|
"on-set-focus": e.onSetFocus,
|
|
25929
25969
|
"on-clear-focus": e.onClearFocus,
|
|
@@ -25937,7 +25977,7 @@ app.mount('#app');
|
|
|
25937
25977
|
"info-tick",
|
|
25938
25978
|
"icons",
|
|
25939
25979
|
"messages"
|
|
25940
|
-
])], !0) :
|
|
25980
|
+
])], !0) : Q("", !0),
|
|
25941
25981
|
X("div", {
|
|
25942
25982
|
class: "chat-main",
|
|
25943
25983
|
ref_key: "scrollContainer",
|
|
@@ -25949,24 +25989,24 @@ app.mount('#app');
|
|
|
25949
25989
|
key: 0,
|
|
25950
25990
|
name: "cs-slide"
|
|
25951
25991
|
}, {
|
|
25952
|
-
default: Yr(() => [la(t.$slots, "body", { chat: G(i) }, () => [Zr(
|
|
25992
|
+
default: Yr(() => [la(t.$slots, "body", { chat: G(i) }, () => [Zr(Z(BC, {
|
|
25953
25993
|
"show-avatar": e.showAvatar,
|
|
25954
25994
|
"show-typing": e.showTyping
|
|
25955
25995
|
}, null, 8, ["show-avatar", "show-typing"]), [[Pc, G(a)]])], !0)]),
|
|
25956
25996
|
_: 3
|
|
25957
|
-
})) :
|
|
25997
|
+
})) : Q("", !0),
|
|
25958
25998
|
f("queued") ? la(t.$slots, "queued", {
|
|
25959
25999
|
key: 1,
|
|
25960
26000
|
chat: G(i)
|
|
25961
|
-
}, () => [
|
|
26001
|
+
}, () => [Z(XC)], !0) : Q("", !0),
|
|
25962
26002
|
f("approval") ? la(t.$slots, "approval", {
|
|
25963
26003
|
key: 2,
|
|
25964
26004
|
chat: G(i)
|
|
25965
|
-
}, () => [
|
|
26005
|
+
}, () => [Z(uw)], !0) : Q("", !0),
|
|
25966
26006
|
f("conflict") ? la(t.$slots, "conflict", {
|
|
25967
26007
|
key: 3,
|
|
25968
26008
|
chat: G(i)
|
|
25969
|
-
}, () => [
|
|
26009
|
+
}, () => [Z(Dw, {
|
|
25970
26010
|
"pending-conflict": e.pendingConflict,
|
|
25971
26011
|
"on-resolve": e.onResolveConflict,
|
|
25972
26012
|
icons: G(i).icons,
|
|
@@ -25976,22 +26016,22 @@ app.mount('#app');
|
|
|
25976
26016
|
"on-resolve",
|
|
25977
26017
|
"icons",
|
|
25978
26018
|
"messages"
|
|
25979
|
-
])], !0) :
|
|
26019
|
+
])], !0) : Q("", !0)
|
|
25980
26020
|
], 544),
|
|
25981
26021
|
f("footer") ? (J(), os(gc, {
|
|
25982
26022
|
key: 2,
|
|
25983
26023
|
name: "cs-slide"
|
|
25984
26024
|
}, {
|
|
25985
|
-
default: Yr(() => [la(t.$slots, "footer", { chat: G(i) }, () => [
|
|
26025
|
+
default: Yr(() => [la(t.$slots, "footer", { chat: G(i) }, () => [Z(Hw, {
|
|
25986
26026
|
placeholder: e.placeholder || G(i).messages.inputPlaceholder,
|
|
25987
26027
|
"input-rows": e.inputRows
|
|
25988
26028
|
}, null, 8, ["placeholder", "input-rows"])], !0)]),
|
|
25989
26029
|
_: 3
|
|
25990
|
-
})) :
|
|
26030
|
+
})) : Q("", !0),
|
|
25991
26031
|
f("debug") ? la(t.$slots, "debug", {
|
|
25992
26032
|
key: 3,
|
|
25993
26033
|
chat: G(i)
|
|
25994
|
-
}, () => [
|
|
26034
|
+
}, () => [Z(uk, {
|
|
25995
26035
|
visible: G(o),
|
|
25996
26036
|
"onUpdate:visible": n[4] ||= (e) => /* @__PURE__ */ Cn(o) ? o.value = e : null,
|
|
25997
26037
|
logs: e.debugLogs,
|
|
@@ -26010,11 +26050,11 @@ app.mount('#app');
|
|
|
26010
26050
|
"cs-theme",
|
|
26011
26051
|
"messages",
|
|
26012
26052
|
"locale"
|
|
26013
|
-
])], !0) :
|
|
26053
|
+
])], !0) : Q("", !0),
|
|
26014
26054
|
f("skill") ? la(t.$slots, "skill", {
|
|
26015
26055
|
key: 4,
|
|
26016
26056
|
chat: G(i)
|
|
26017
|
-
}, () => [
|
|
26057
|
+
}, () => [Z(Ik, {
|
|
26018
26058
|
visible: G(s),
|
|
26019
26059
|
"on-add-skill": e.onAddSkill,
|
|
26020
26060
|
"on-remove-skill": e.onRemoveSkill,
|
|
@@ -26030,16 +26070,16 @@ app.mount('#app');
|
|
|
26030
26070
|
"on-get-skill",
|
|
26031
26071
|
"messages",
|
|
26032
26072
|
"onClose"
|
|
26033
|
-
])], !0) :
|
|
26073
|
+
])], !0) : Q("", !0)
|
|
26034
26074
|
], 6)], 64));
|
|
26035
26075
|
}
|
|
26036
|
-
}), [["__scopeId", "data-v-
|
|
26076
|
+
}), [["__scopeId", "data-v-22154cd1"]]);
|
|
26037
26077
|
//#endregion
|
|
26038
26078
|
//#region src/core/sdk/mountChatDialog.ts
|
|
26039
|
-
function
|
|
26079
|
+
function Rk(e) {
|
|
26040
26080
|
let { core: t, dialogCfg: n } = e, r = null, i = e.el, a = t.agent.debugLogs;
|
|
26041
26081
|
return r = Tl(/* @__PURE__ */ Ii({ setup() {
|
|
26042
|
-
return () => $s(
|
|
26082
|
+
return () => $s(Lk, {
|
|
26043
26083
|
fetchStream: e.streaming ? t.stream : void 0,
|
|
26044
26084
|
fetchResponse: e.streaming ? void 0 : (e, n) => {
|
|
26045
26085
|
if (n) {
|
|
@@ -26086,8 +26126,7 @@ function Mk(e) {
|
|
|
26086
26126
|
inputRows: n.inputRows,
|
|
26087
26127
|
sections: n.sections,
|
|
26088
26128
|
icons: n.icons,
|
|
26089
|
-
|
|
26090
|
-
messages: n.messages,
|
|
26129
|
+
i18n: e.i18n,
|
|
26091
26130
|
getFocus: () => t.getFocus(),
|
|
26092
26131
|
getFocuses: () => t.getFocuses(),
|
|
26093
26132
|
onSetFocus: (e) => t.setFocus(e),
|
|
@@ -26141,7 +26180,7 @@ function Mk(e) {
|
|
|
26141
26180
|
}
|
|
26142
26181
|
//#endregion
|
|
26143
26182
|
//#region src/core/sdk/ragSubagent.ts
|
|
26144
|
-
function
|
|
26183
|
+
function zk(e, t, n, r, i) {
|
|
26145
26184
|
let a = [];
|
|
26146
26185
|
e && a.push("vfs_grep + vfs_read(搜预注入文档)"), t && a.push(`${r}(语义检索)`), n && a.push(`${i}(按 source 加载)`), a.push("fetch_document(公网 URL)");
|
|
26147
26186
|
let o = [];
|
|
@@ -26156,7 +26195,7 @@ function Nk(e, t, n, r, i) {
|
|
|
26156
26195
|
|
|
26157
26196
|
你是只读检索角色,不要尝试修改任何数据。不要尝试上面未列出的工具。`;
|
|
26158
26197
|
}
|
|
26159
|
-
function
|
|
26198
|
+
function Bk(e, t, n, r, i) {
|
|
26160
26199
|
let a = [], o = [];
|
|
26161
26200
|
return e && (a.push("- vfs_grep / vfs_read:搜集成方预注入 vfs 的文档(组件文档 / UI 规范)—— 快、静态,先查"), o.push("- 静态文档(组件库文档 / UI 规范):vfs_grep")), t && (a.push(`- ${r}:语义检索(retriever 向量库)—— 模糊匹配,关键词不确定 / 语义相似时用`), o.push(`- 语义相似(「瀑布流组件」「倒计时」「拼团」):${r}`)), n && (a.push(`- ${i}:按 source 精确加载(已知文档 id / URL / key)—— 精确取特定文档`), o.push(`- 已知文档 id / URL:${i}`)), a.push("- fetch_document:公网 URL —— 查公开资料"), o.push("- 公开 URL(设计规范网站 / 第三方文档):fetch_document"), `# 知识检索策略(RAG)
|
|
26162
26201
|
|
|
@@ -26173,12 +26212,12 @@ ${a.join("\n")}
|
|
|
26173
26212
|
## 何时用何源
|
|
26174
26213
|
${o.join("\n")}`;
|
|
26175
26214
|
}
|
|
26176
|
-
var
|
|
26215
|
+
var Vk = {
|
|
26177
26216
|
name: "rag-search",
|
|
26178
26217
|
description: "多源知识检索策略:vfs 预注入文档 → 语义检索 → 指定文档加载 → 公网;综合结构化结论 + 溯源",
|
|
26179
|
-
getContent: () =>
|
|
26218
|
+
getContent: () => Bk(!0, !0, !0, "search_docs", "load_doc")
|
|
26180
26219
|
};
|
|
26181
|
-
function
|
|
26220
|
+
function Hk(e, n, i) {
|
|
26182
26221
|
return r(async ({ query: e, topK: t }) => {
|
|
26183
26222
|
try {
|
|
26184
26223
|
let r = await n(e, { topK: t ?? i });
|
|
@@ -26195,7 +26234,7 @@ function Ik(e, n, i) {
|
|
|
26195
26234
|
})
|
|
26196
26235
|
});
|
|
26197
26236
|
}
|
|
26198
|
-
function
|
|
26237
|
+
function Uk(e, n) {
|
|
26199
26238
|
return r(async ({ source: e }) => {
|
|
26200
26239
|
try {
|
|
26201
26240
|
let t = await n(e), r = Array.isArray(t) ? t : [t];
|
|
@@ -26209,19 +26248,19 @@ function Lk(e, n) {
|
|
|
26209
26248
|
schema: t.object({ source: t.string().describe("文档标识(id/URL/key)") })
|
|
26210
26249
|
});
|
|
26211
26250
|
}
|
|
26212
|
-
function
|
|
26251
|
+
function Wk(e) {
|
|
26213
26252
|
let { retriever: t, loader: n, useVfs: r = !0, id: i = "rag", description: a, topK: o = 5, searchToolName: s = "search_docs", loadToolName: c = "load_doc", maxToolRounds: l = 8, summarization: u, skills: d, extraTools: f } = e;
|
|
26214
26253
|
if (!t && !n && r === !1) throw Error("[page-agent-sdk][createRagSubagent] 至少配一种知识源:retriever / loader / useVfs(true)");
|
|
26215
26254
|
let p = [];
|
|
26216
|
-
t && p.push(
|
|
26255
|
+
t && p.push(Hk(s, t, o)), n && p.push(Uk(c, n)), f && p.push(...f);
|
|
26217
26256
|
let m = r ? [
|
|
26218
26257
|
"vfs_grep",
|
|
26219
26258
|
"vfs_read",
|
|
26220
26259
|
"vfs_json_read"
|
|
26221
|
-
] : void 0, h =
|
|
26260
|
+
] : void 0, h = zk(r, !!t, !!n, s, c), g = {
|
|
26222
26261
|
name: "rag-search",
|
|
26223
|
-
description:
|
|
26224
|
-
getContent: () =>
|
|
26262
|
+
description: Vk.description,
|
|
26263
|
+
getContent: () => Bk(r, !!t, !!n, s, c)
|
|
26225
26264
|
};
|
|
26226
26265
|
return {
|
|
26227
26266
|
id: i,
|
|
@@ -26236,8 +26275,8 @@ function Rk(e) {
|
|
|
26236
26275
|
}
|
|
26237
26276
|
//#endregion
|
|
26238
26277
|
//#region src/core/index.ts
|
|
26239
|
-
function
|
|
26240
|
-
return m_(e,
|
|
26278
|
+
function Gk(e) {
|
|
26279
|
+
return m_(e, Rk);
|
|
26241
26280
|
}
|
|
26242
26281
|
//#endregion
|
|
26243
|
-
export {
|
|
26282
|
+
export { uw as ApprovalBar, Dh as CAPABILITIES, Ah as CONTEXT_PRESETS, Lk as ChatDialog, ky as ChatHeader, Hw as ChatInput, lC as CodePreview, Vm as CompressDecisionSchema, Dw as ConflictBar, v_ as DEFAULT_DIALOG_ICONS, Kf as DEFAULT_PROMPT_SOFT_CAP, Wp as DEFAULT_SYSTEM_PROMPT, Gp as DEFAULT_SYSTEM_PROMPT_EN, uk as DebugDrawer, By as FocusBar, RS as HLJS_BLOCK_MAX_CHARS, sm as HTML_VOID_TAGS, vf as HUMAN_CONFIRM_TOOL_NAME, cy as IconGlyph, x_ as MESSAGES_EN_US, b_ as MESSAGES_ZH_CN, Ul as MIN_CONTEXT_WINDOW, dC as MessageContent, BC as MessageList, AC as MessageRow, XC as QueuedBar, Gf as SOFT_CAP_MIN_WINDOW, zf as STOP_WORDS, Ik as SkillPanel, hd as UNSAFE_KEYS, Ug as actionsToInspectInfo, Hg as actionsToTools, Il as agentError, Lp as analyzeContext, Od as applyPatchToClone, jd as applyPatchToLive, Fl as asAgentError, Kp as buildDataPrompt, Mm as buildHtmlFragmentSkill, qp as buildSystemPrompt, w_ as chatContextKey, gg as commitSetToBind, Up as connectMcp, C as constructLlmFromConfig, S as constructOpenLlmSync, __ as copyText, ku as createAgent, _f as createApprovalMiddleware, T_ as createChatContext, Gk as createChatSdk, Of as createCheckpointManager, kf as createCheckpointMiddleware, $m as createConflictManager, Rp as createContextInspectorMiddleware, wg as createDataOps, Pm as createHtmlFormatCheck, Lm as createHtmlSubagent, xf as createHumanConfirmMiddleware, bf as createHumanConfirmTool, bh as createMemoryBackend, uf as createMemoryMiddleware, y as createProxyLlm, Wk as createRagSubagent, qd as createSandboxRunner, kh as createSdkEvents, o_ as createSerialRunner, wh as createSessionStore, n_ as createSkillStore, mp as createSubagentMiddleware, Qf as createSubagentTracker, _p as createSubagentsMiddleware, Xg as createUsageHintsMiddleware, vp as createVerifyMiddleware, Zp as createVfs, Sh as createWebStorageBackend, wp as createWriteBackCheck, xd as deepClone, Kg as defineDataToolset, Yd as defineSkill, Rm as defineTool, bd as deleteByPath, Hm as deriveTitle, Ku as describeSchemaNode, pu as detectGarbledToolCall, _u as detectTransitionalReply, Fd as diffObjects, Ag as domToStructure, Mg as domTools, Gg as domToolsStatic, Vf as estimateMessageTokens, Hf as estimateRoundTokens, Gl as estimateTokens, T as extractReasoningDelta, ad as extractSchemaHint, zp as extractText, w as extractTextDelta, E as extractUsage, Eg as fetchDocTools, Wg as fetchTools, hg as filterByToolMode, Pd as findStrippedKeys, qu as formatConstraints, jl as formatZodIssues, vd as getByPath, jg as getDomTool, Fg as getEnvSummary, Nu as getSchemaAtPath, Au as getSchemaTopKeys, Jl as getTraceMetrics, Dd as hashValue, Nm as htmlFragmentSkill, ed as htmlOrchestratorPrompt, Uf as indexSummarize, Rg as inspectEnvTool, zg as inspectTools, Um as isChatModel, iu as isContextLengthError, Xv as isIconHtml, ju as isPathAllowed, fh as isQuotaError, gd as isUnsafePath, Wh as jpEval, Nl as jsonParseError, wd as limitDepth, WS as markedToHtml, Sd as maybeParseValue, Ad as moveByPath, x as normalizeBaseUrl, O as normalizeUsage, ql as offloadPassThroughChars, Kl as offloadThresholdChars, $u as presets, Bu as projectBySchema, zu as projectBySchemaDeep, Cd as projectFields, Wf as recallRounds, GS as renderMarkdownHtml, Ju as renderSchemaHint, Yu as renderSchemaOverview, Qu as renderSchemaShallow, Oh as resolveCapabilities, Mh as resolveContextOptions, Eh as resolveDialogConfig, y_ as resolveDialogIcons, C_ as resolveDialogMessages, Qm as resolveLlm, Wl as resolveModelCaps, qf as resolvePromptSoftCap, Th as resolveStorage, Nd as restoreInPlace, Md as restoreLive, Pl as routeError, Jd as runHostScript, Jh as runSandboxedScript, _d as safeMerge, Pg as safeSerialize, Td as safeStringify, mu as sanitizeGarbledContent, ey as sanitizeIconHtml, ry as sanitizeMessageHtml, Kh as searchJson, qg as selectBuiltinTools, yd as setByPath, Jf as shouldTriggerCompression, b as stripStainlessFetch, td as systemPromptHelpers, Bf as tokenize, $ as toolError, Mu as unwrapSchema, g_ as useChat, E_ as useChatContext, lm as validateHtmlFormat, e as z, Ml as zodError };
|