vite-plugin-opencode-assistant 1.0.55 → 1.0.56
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/es/client/App.vue.mjs +5 -2
- package/es/core/proxy-server.mjs +28 -0
- package/lib/client/App.vue.cjs +5 -2
- package/lib/client.js +202 -200
- package/lib/core/proxy-server.cjs +28 -0
- package/package.json +4 -4
package/lib/client.js
CHANGED
|
@@ -743,7 +743,7 @@ class mr extends Ti {
|
|
|
743
743
|
}
|
|
744
744
|
}
|
|
745
745
|
const vr = /* @__PURE__ */ new xi(), _r = /* @__PURE__ */ new mr(), yr = /* @__PURE__ */ new xi(!0);
|
|
746
|
-
const Mo = (e) => e,
|
|
746
|
+
const Mo = (e) => e, In = (e) => Reflect.getPrototypeOf(e);
|
|
747
747
|
function br(e, t, n) {
|
|
748
748
|
return function(...o) {
|
|
749
749
|
const s = this.__v_raw, i = /* @__PURE__ */ ne(s), l = Yt(i), r = e === "entries" || e === Symbol.iterator && l, a = e === "keys" && l, u = s[e](...o), c = n ? Mo : t ? Zt : tt;
|
|
@@ -777,7 +777,7 @@ function Sr(e, t) {
|
|
|
777
777
|
get(s) {
|
|
778
778
|
const i = this.__v_raw, l = /* @__PURE__ */ ne(i), r = /* @__PURE__ */ ne(s);
|
|
779
779
|
e || (dt(s, r) && Pe(l, "get", s), Pe(l, "get", r));
|
|
780
|
-
const { has: a } =
|
|
780
|
+
const { has: a } = In(l), u = t ? Mo : e ? Zt : tt;
|
|
781
781
|
if (a.call(l, s))
|
|
782
782
|
return u(i.get(s));
|
|
783
783
|
if (a.call(l, r))
|
|
@@ -806,19 +806,19 @@ function Sr(e, t) {
|
|
|
806
806
|
clear: Rn("clear")
|
|
807
807
|
} : {
|
|
808
808
|
add(s) {
|
|
809
|
-
const i = /* @__PURE__ */ ne(this), l =
|
|
809
|
+
const i = /* @__PURE__ */ ne(this), l = In(i), r = /* @__PURE__ */ ne(s), a = !t && !/* @__PURE__ */ Ve(s) && !/* @__PURE__ */ wt(s) ? r : s;
|
|
810
810
|
return l.has.call(i, a) || dt(s, a) && l.has.call(i, s) || dt(r, a) && l.has.call(i, r) || (i.add(a), bt(i, "add", a, a)), this;
|
|
811
811
|
},
|
|
812
812
|
set(s, i) {
|
|
813
813
|
!t && !/* @__PURE__ */ Ve(i) && !/* @__PURE__ */ wt(i) && (i = /* @__PURE__ */ ne(i));
|
|
814
|
-
const l = /* @__PURE__ */ ne(this), { has: r, get: a } =
|
|
814
|
+
const l = /* @__PURE__ */ ne(this), { has: r, get: a } = In(l);
|
|
815
815
|
let u = r.call(l, s);
|
|
816
816
|
u || (s = /* @__PURE__ */ ne(s), u = r.call(l, s));
|
|
817
817
|
const c = a.call(l, s);
|
|
818
818
|
return l.set(s, i), u ? dt(i, c) && bt(l, "set", s, i) : bt(l, "add", s, i), this;
|
|
819
819
|
},
|
|
820
820
|
delete(s) {
|
|
821
|
-
const i = /* @__PURE__ */ ne(this), { has: l, get: r } =
|
|
821
|
+
const i = /* @__PURE__ */ ne(this), { has: l, get: r } = In(i);
|
|
822
822
|
let a = l.call(i, s);
|
|
823
823
|
a || (s = /* @__PURE__ */ ne(s), a = l.call(i, s)), r && r.call(i, s);
|
|
824
824
|
const u = i.delete(s);
|
|
@@ -972,7 +972,7 @@ class kr {
|
|
|
972
972
|
function de(e) {
|
|
973
973
|
return /* @__PURE__ */ Te(e) ? e.value : e;
|
|
974
974
|
}
|
|
975
|
-
const
|
|
975
|
+
const Dr = {
|
|
976
976
|
get: (e, t, n) => t === "__v_raw" ? e : de(Reflect.get(e, t, n)),
|
|
977
977
|
set: (e, t, n, o) => {
|
|
978
978
|
const s = e[t];
|
|
@@ -980,9 +980,9 @@ const Ir = {
|
|
|
980
980
|
}
|
|
981
981
|
};
|
|
982
982
|
function Pi(e) {
|
|
983
|
-
return /* @__PURE__ */ Wt(e) ? e : new Proxy(e,
|
|
983
|
+
return /* @__PURE__ */ Wt(e) ? e : new Proxy(e, Dr);
|
|
984
984
|
}
|
|
985
|
-
class
|
|
985
|
+
class Ir {
|
|
986
986
|
constructor(t, n, o) {
|
|
987
987
|
this._object = t, this._defaultValue = o, this.__v_isRef = !0, this._value = void 0, this._key = ze(n) ? n : String(n), this._raw = /* @__PURE__ */ ne(t);
|
|
988
988
|
let s = !0, i = t;
|
|
@@ -1023,7 +1023,7 @@ function se(e, t, n) {
|
|
|
1023
1023
|
return /* @__PURE__ */ Te(e) ? e : ie(e) ? new Rr(e) : ue(e) && arguments.length > 1 ? Lr(e, t, n) : /* @__PURE__ */ N(e);
|
|
1024
1024
|
}
|
|
1025
1025
|
function Lr(e, t, n) {
|
|
1026
|
-
return new
|
|
1026
|
+
return new Ir(e, t, n);
|
|
1027
1027
|
}
|
|
1028
1028
|
class Nr {
|
|
1029
1029
|
constructor(t, n, o) {
|
|
@@ -1233,14 +1233,14 @@ function Yo(e) {
|
|
|
1233
1233
|
if (!(e.flags & 1)) {
|
|
1234
1234
|
const t = En(e), n = Re[Re.length - 1];
|
|
1235
1235
|
!n || // fast path when the job id is larger than the tail
|
|
1236
|
-
!(e.flags & 2) && t >= En(n) ? Re.push(e) : Re.splice(Wr(t), 0, e), e.flags |= 1,
|
|
1236
|
+
!(e.flags & 2) && t >= En(n) ? Re.push(e) : Re.splice(Wr(t), 0, e), e.flags |= 1, Di();
|
|
1237
1237
|
}
|
|
1238
1238
|
}
|
|
1239
|
-
function
|
|
1239
|
+
function Di() {
|
|
1240
1240
|
Hn || (Hn = ki.then(Li));
|
|
1241
1241
|
}
|
|
1242
|
-
function
|
|
1243
|
-
G(e) ? Gt.push(...e) : At && e.id === -1 ? At.splice(Kt + 1, 0, e) : e.flags & 1 || (Gt.push(e), e.flags |= 1),
|
|
1242
|
+
function Ii(e) {
|
|
1243
|
+
G(e) ? Gt.push(...e) : At && e.id === -1 ? At.splice(Kt + 1, 0, e) : e.flags & 1 || (Gt.push(e), e.flags |= 1), Di();
|
|
1244
1244
|
}
|
|
1245
1245
|
function ps(e, t, n = at + 1) {
|
|
1246
1246
|
for (; n < Re.length; n++) {
|
|
@@ -1380,7 +1380,7 @@ function qr(e, t, n = fe) {
|
|
|
1380
1380
|
r.call = (g, b, m) => Et(g, c, b, m);
|
|
1381
1381
|
let f = !1;
|
|
1382
1382
|
i === "post" ? r.scheduler = (g) => {
|
|
1383
|
-
|
|
1383
|
+
Ie(g, c && c.suspense);
|
|
1384
1384
|
} : i !== "sync" && (f = !0, r.scheduler = (g, b) => {
|
|
1385
1385
|
b ? g() : Yo(g);
|
|
1386
1386
|
}), r.augmentJob = (g) => {
|
|
@@ -1389,7 +1389,7 @@ function qr(e, t, n = fe) {
|
|
|
1389
1389
|
const p = $r(e, t, r);
|
|
1390
1390
|
return Cn && (u ? u.push(p) : a && p()), p;
|
|
1391
1391
|
}
|
|
1392
|
-
const Lt = /* @__PURE__ */ new WeakMap(), Bi = /* @__PURE__ */ Symbol("_vte"), Kr = (e) => e.__isTeleport, $t = (e) => e && (e.disabled || e.disabled === ""), Ur = (e) => e && (e.defer || e.defer === ""), gs = (e) => typeof SVGElement < "u" && e instanceof SVGElement, ms = (e) => typeof MathMLElement == "function" && e instanceof MathMLElement,
|
|
1392
|
+
const Lt = /* @__PURE__ */ new WeakMap(), Bi = /* @__PURE__ */ Symbol("_vte"), Kr = (e) => e.__isTeleport, $t = (e) => e && (e.disabled || e.disabled === ""), Ur = (e) => e && (e.defer || e.defer === ""), gs = (e) => typeof SVGElement < "u" && e instanceof SVGElement, ms = (e) => typeof MathMLElement == "function" && e instanceof MathMLElement, Do = (e, t) => {
|
|
1393
1393
|
const n = e && e.to;
|
|
1394
1394
|
return we(n) ? t ? t(n) : null : n;
|
|
1395
1395
|
}, Yr = {
|
|
@@ -1415,13 +1415,13 @@ const Lt = /* @__PURE__ */ new WeakMap(), Bi = /* @__PURE__ */ Symbol("_vte"), K
|
|
|
1415
1415
|
a
|
|
1416
1416
|
);
|
|
1417
1417
|
}, y = (L = t) => {
|
|
1418
|
-
const B = $t(L.props), q = L.target =
|
|
1418
|
+
const B = $t(L.props), q = L.target = Do(L.props, b), Z = Io(q, L, m, g);
|
|
1419
1419
|
q && (l !== "svg" && gs(q) ? l = "svg" : l !== "mathml" && ms(q) && (l = "mathml"), s && s.isCE && (s.ce._teleportTargets || (s.ce._teleportTargets = /* @__PURE__ */ new Set())).add(q), B || ($(L, q, Z), hn(L, !1)));
|
|
1420
1420
|
}, j = (L) => {
|
|
1421
1421
|
const B = () => {
|
|
1422
1422
|
Lt.get(L) === B && (Lt.delete(L), $t(L.props) && ($(L, n, L.anchor), hn(L, !0)), y(L));
|
|
1423
1423
|
};
|
|
1424
|
-
Lt.set(L, B),
|
|
1424
|
+
Lt.set(L, B), Ie(B, i);
|
|
1425
1425
|
};
|
|
1426
1426
|
if (e == null) {
|
|
1427
1427
|
const L = t.el = m(""), B = t.anchor = m("");
|
|
@@ -1466,13 +1466,13 @@ const Lt = /* @__PURE__ */ new WeakMap(), Bi = /* @__PURE__ */ Symbol("_vte"), K
|
|
|
1466
1466
|
1
|
|
1467
1467
|
);
|
|
1468
1468
|
else if ((t.props && t.props.to) !== (e.props && e.props.to)) {
|
|
1469
|
-
const
|
|
1469
|
+
const D = t.target = Do(
|
|
1470
1470
|
t.props,
|
|
1471
1471
|
b
|
|
1472
1472
|
);
|
|
1473
|
-
|
|
1473
|
+
D && Nn(
|
|
1474
1474
|
t,
|
|
1475
|
-
|
|
1475
|
+
D,
|
|
1476
1476
|
null,
|
|
1477
1477
|
u,
|
|
1478
1478
|
0
|
|
@@ -1555,13 +1555,13 @@ function Gr(e, t, n, o, s, i, {
|
|
|
1555
1555
|
i
|
|
1556
1556
|
);
|
|
1557
1557
|
}
|
|
1558
|
-
const b = t.target =
|
|
1558
|
+
const b = t.target = Do(
|
|
1559
1559
|
t.props,
|
|
1560
1560
|
a
|
|
1561
1561
|
), m = $t(t.props);
|
|
1562
1562
|
if (b) {
|
|
1563
1563
|
const x = b._lpa || b.firstChild;
|
|
1564
|
-
t.shapeFlag & 16 && (m ? (g(e, t), p(b, x), t.targetAnchor ||
|
|
1564
|
+
t.shapeFlag & 16 && (m ? (g(e, t), p(b, x), t.targetAnchor || Io(
|
|
1565
1565
|
b,
|
|
1566
1566
|
t,
|
|
1567
1567
|
c,
|
|
@@ -1569,7 +1569,7 @@ function Gr(e, t, n, o, s, i, {
|
|
|
1569
1569
|
// if target is the same as the main view, insert anchors before current node
|
|
1570
1570
|
// to avoid hydrating mismatch
|
|
1571
1571
|
r(e) === b ? e : null
|
|
1572
|
-
)) : (t.anchor = l(e), p(b, x), t.targetAnchor ||
|
|
1572
|
+
)) : (t.anchor = l(e), p(b, x), t.targetAnchor || Io(b, t, c, u), f(
|
|
1573
1573
|
x && l(x),
|
|
1574
1574
|
t,
|
|
1575
1575
|
b,
|
|
@@ -1591,7 +1591,7 @@ function hn(e, t) {
|
|
|
1591
1591
|
n.ut();
|
|
1592
1592
|
}
|
|
1593
1593
|
}
|
|
1594
|
-
function
|
|
1594
|
+
function Io(e, t, n, o, s = null) {
|
|
1595
1595
|
const i = t.targetStart = n(""), l = t.targetAnchor = n("");
|
|
1596
1596
|
return i[Bi] = l, e && (o(i, e, s), o(l, e, s)), l;
|
|
1597
1597
|
}
|
|
@@ -1665,7 +1665,7 @@ function vn(e, t, n, o, s = !1) {
|
|
|
1665
1665
|
const M = () => {
|
|
1666
1666
|
R(), zn.delete(e);
|
|
1667
1667
|
};
|
|
1668
|
-
M.id = -1, zn.set(e, M),
|
|
1668
|
+
M.id = -1, zn.set(e, M), Ie(M, n);
|
|
1669
1669
|
} else
|
|
1670
1670
|
_s(e), R();
|
|
1671
1671
|
}
|
|
@@ -2307,7 +2307,7 @@ const Jo = (e) => e === "_" || e === "_ctx" || e === "$stable", Zo = (e) => G(e)
|
|
|
2307
2307
|
if (i)
|
|
2308
2308
|
for (const r in s)
|
|
2309
2309
|
!Jo(r) && l[r] == null && delete s[r];
|
|
2310
|
-
},
|
|
2310
|
+
}, Ie = Ea;
|
|
2311
2311
|
function ya(e) {
|
|
2312
2312
|
return ba(e);
|
|
2313
2313
|
}
|
|
@@ -2327,7 +2327,7 @@ function ba(e, t) {
|
|
|
2327
2327
|
nextSibling: p,
|
|
2328
2328
|
setScopeId: g = Ot,
|
|
2329
2329
|
insertStaticContent: b
|
|
2330
|
-
} = e, m = (d, h, _, C = null, S = null, w = null,
|
|
2330
|
+
} = e, m = (d, h, _, C = null, S = null, w = null, I = void 0, P = null, A = !!h.dynamicChildren) => {
|
|
2331
2331
|
if (d === h)
|
|
2332
2332
|
return;
|
|
2333
2333
|
d && !un(d, h) && (C = Ge(d), ve(d, S, w, !0), d = null), h.patchFlag === -2 && (A = !1, h.dynamicChildren = null);
|
|
@@ -2340,7 +2340,7 @@ function ba(e, t) {
|
|
|
2340
2340
|
R(d, h, _, C);
|
|
2341
2341
|
break;
|
|
2342
2342
|
case yn:
|
|
2343
|
-
d == null && M(h, _, C,
|
|
2343
|
+
d == null && M(h, _, C, I);
|
|
2344
2344
|
break;
|
|
2345
2345
|
case ce:
|
|
2346
2346
|
Ae(
|
|
@@ -2350,7 +2350,7 @@ function ba(e, t) {
|
|
|
2350
2350
|
C,
|
|
2351
2351
|
S,
|
|
2352
2352
|
w,
|
|
2353
|
-
|
|
2353
|
+
I,
|
|
2354
2354
|
P,
|
|
2355
2355
|
A
|
|
2356
2356
|
);
|
|
@@ -2363,17 +2363,17 @@ function ba(e, t) {
|
|
|
2363
2363
|
C,
|
|
2364
2364
|
S,
|
|
2365
2365
|
w,
|
|
2366
|
-
|
|
2366
|
+
I,
|
|
2367
2367
|
P,
|
|
2368
2368
|
A
|
|
2369
|
-
) : k & 6 ?
|
|
2369
|
+
) : k & 6 ? D(
|
|
2370
2370
|
d,
|
|
2371
2371
|
h,
|
|
2372
2372
|
_,
|
|
2373
2373
|
C,
|
|
2374
2374
|
S,
|
|
2375
2375
|
w,
|
|
2376
|
-
|
|
2376
|
+
I,
|
|
2377
2377
|
P,
|
|
2378
2378
|
A
|
|
2379
2379
|
) : (k & 64 || k & 128) && E.process(
|
|
@@ -2383,7 +2383,7 @@ function ba(e, t) {
|
|
|
2383
2383
|
C,
|
|
2384
2384
|
S,
|
|
2385
2385
|
w,
|
|
2386
|
-
|
|
2386
|
+
I,
|
|
2387
2387
|
P,
|
|
2388
2388
|
A,
|
|
2389
2389
|
it
|
|
@@ -2426,15 +2426,15 @@ function ba(e, t) {
|
|
|
2426
2426
|
for (; d && d !== h; )
|
|
2427
2427
|
_ = p(d), s(d), d = _;
|
|
2428
2428
|
s(h);
|
|
2429
|
-
}, j = (d, h, _, C, S, w,
|
|
2430
|
-
if (h.type === "svg" ?
|
|
2429
|
+
}, j = (d, h, _, C, S, w, I, P, A) => {
|
|
2430
|
+
if (h.type === "svg" ? I = "svg" : h.type === "math" && (I = "mathml"), d == null)
|
|
2431
2431
|
L(
|
|
2432
2432
|
h,
|
|
2433
2433
|
_,
|
|
2434
2434
|
C,
|
|
2435
2435
|
S,
|
|
2436
2436
|
w,
|
|
2437
|
-
|
|
2437
|
+
I,
|
|
2438
2438
|
P,
|
|
2439
2439
|
A
|
|
2440
2440
|
);
|
|
@@ -2446,7 +2446,7 @@ function ba(e, t) {
|
|
|
2446
2446
|
h,
|
|
2447
2447
|
S,
|
|
2448
2448
|
w,
|
|
2449
|
-
|
|
2449
|
+
I,
|
|
2450
2450
|
P,
|
|
2451
2451
|
A
|
|
2452
2452
|
);
|
|
@@ -2454,7 +2454,7 @@ function ba(e, t) {
|
|
|
2454
2454
|
E && E._endPatch();
|
|
2455
2455
|
}
|
|
2456
2456
|
}
|
|
2457
|
-
}, L = (d, h, _, C, S, w,
|
|
2457
|
+
}, L = (d, h, _, C, S, w, I, P) => {
|
|
2458
2458
|
let A, E;
|
|
2459
2459
|
const { props: z, shapeFlag: k, transition: H, dirs: K } = d;
|
|
2460
2460
|
if (A = d.el = l(
|
|
@@ -2469,16 +2469,16 @@ function ba(e, t) {
|
|
|
2469
2469
|
C,
|
|
2470
2470
|
S,
|
|
2471
2471
|
_o(d, w),
|
|
2472
|
-
|
|
2472
|
+
I,
|
|
2473
2473
|
P
|
|
2474
|
-
), K && Rt(d, null, C, "created"), B(A, d, d.scopeId,
|
|
2474
|
+
), K && Rt(d, null, C, "created"), B(A, d, d.scopeId, I, C), z) {
|
|
2475
2475
|
for (const O in z)
|
|
2476
2476
|
O !== "value" && !pn(O) && i(A, O, null, z[O], w, C);
|
|
2477
2477
|
"value" in z && i(A, "value", null, z.value, w), (E = z.onVnodeBeforeMount) && rt(E, C, d);
|
|
2478
2478
|
}
|
|
2479
2479
|
K && Rt(d, null, C, "beforeMount");
|
|
2480
2480
|
const J = Sa(S, H);
|
|
2481
|
-
J && H.beforeEnter(A), o(A, h, _), ((E = z && z.onVnodeMounted) || J || K) &&
|
|
2481
|
+
J && H.beforeEnter(A), o(A, h, _), ((E = z && z.onVnodeMounted) || J || K) && Ie(() => {
|
|
2482
2482
|
try {
|
|
2483
2483
|
E && rt(E, C, d), J && H.enter(A), K && Rt(d, null, C, "mounted");
|
|
2484
2484
|
} finally {
|
|
@@ -2491,17 +2491,17 @@ function ba(e, t) {
|
|
|
2491
2491
|
if (S) {
|
|
2492
2492
|
let w = S.subTree;
|
|
2493
2493
|
if (h === w || Qi(w.type) && (w.ssContent === h || w.ssFallback === h)) {
|
|
2494
|
-
const
|
|
2494
|
+
const I = S.vnode;
|
|
2495
2495
|
B(
|
|
2496
2496
|
d,
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2497
|
+
I,
|
|
2498
|
+
I.scopeId,
|
|
2499
|
+
I.slotScopeIds,
|
|
2500
2500
|
S.parent
|
|
2501
2501
|
);
|
|
2502
2502
|
}
|
|
2503
2503
|
}
|
|
2504
|
-
}, q = (d, h, _, C, S, w,
|
|
2504
|
+
}, q = (d, h, _, C, S, w, I, P, A = 0) => {
|
|
2505
2505
|
for (let E = A; E < d.length; E++) {
|
|
2506
2506
|
const z = d[E] = P ? yt(d[E]) : ut(d[E]);
|
|
2507
2507
|
m(
|
|
@@ -2512,11 +2512,11 @@ function ba(e, t) {
|
|
|
2512
2512
|
C,
|
|
2513
2513
|
S,
|
|
2514
2514
|
w,
|
|
2515
|
-
|
|
2515
|
+
I,
|
|
2516
2516
|
P
|
|
2517
2517
|
);
|
|
2518
2518
|
}
|
|
2519
|
-
}, Z = (d, h, _, C, S, w,
|
|
2519
|
+
}, Z = (d, h, _, C, S, w, I) => {
|
|
2520
2520
|
const P = h.el = d.el;
|
|
2521
2521
|
let { patchFlag: A, dynamicChildren: E, dirs: z } = h;
|
|
2522
2522
|
A |= d.patchFlag & 16;
|
|
@@ -2530,7 +2530,7 @@ function ba(e, t) {
|
|
|
2530
2530
|
C,
|
|
2531
2531
|
_o(h, S),
|
|
2532
2532
|
w
|
|
2533
|
-
) :
|
|
2533
|
+
) : I || De(
|
|
2534
2534
|
d,
|
|
2535
2535
|
h,
|
|
2536
2536
|
P,
|
|
@@ -2551,11 +2551,11 @@ function ba(e, t) {
|
|
|
2551
2551
|
}
|
|
2552
2552
|
}
|
|
2553
2553
|
A & 1 && d.children !== h.children && c(P, h.children);
|
|
2554
|
-
} else !
|
|
2555
|
-
((K = H.onVnodeUpdated) || z) &&
|
|
2554
|
+
} else !I && E == null && me(P, k, H, _, S);
|
|
2555
|
+
((K = H.onVnodeUpdated) || z) && Ie(() => {
|
|
2556
2556
|
K && rt(K, _, h, d), z && Rt(h, d, _, "updated");
|
|
2557
2557
|
}, C);
|
|
2558
|
-
}, Q = (d, h, _, C, S, w,
|
|
2558
|
+
}, Q = (d, h, _, C, S, w, I) => {
|
|
2559
2559
|
for (let P = 0; P < h.length; P++) {
|
|
2560
2560
|
const A = d[P], E = h[P], z = (
|
|
2561
2561
|
// oldVNode may be an errored async setup() component inside Suspense
|
|
@@ -2579,7 +2579,7 @@ function ba(e, t) {
|
|
|
2579
2579
|
C,
|
|
2580
2580
|
S,
|
|
2581
2581
|
w,
|
|
2582
|
-
|
|
2582
|
+
I,
|
|
2583
2583
|
!0
|
|
2584
2584
|
);
|
|
2585
2585
|
}
|
|
@@ -2597,12 +2597,12 @@ function ba(e, t) {
|
|
|
2597
2597
|
);
|
|
2598
2598
|
for (const w in _) {
|
|
2599
2599
|
if (pn(w)) continue;
|
|
2600
|
-
const
|
|
2601
|
-
|
|
2600
|
+
const I = _[w], P = h[w];
|
|
2601
|
+
I !== P && w !== "value" && i(d, w, P, I, S, C);
|
|
2602
2602
|
}
|
|
2603
2603
|
"value" in _ && i(d, "value", h.value, _.value, S);
|
|
2604
2604
|
}
|
|
2605
|
-
}, Ae = (d, h, _, C, S, w,
|
|
2605
|
+
}, Ae = (d, h, _, C, S, w, I, P, A) => {
|
|
2606
2606
|
const E = h.el = d ? d.el : r(""), z = h.anchor = d ? d.anchor : r("");
|
|
2607
2607
|
let { patchFlag: k, dynamicChildren: H, slotScopeIds: K } = h;
|
|
2608
2608
|
K && (P = P ? P.concat(K) : K), d == null ? (o(E, _, C), o(z, _, C), q(
|
|
@@ -2615,7 +2615,7 @@ function ba(e, t) {
|
|
|
2615
2615
|
z,
|
|
2616
2616
|
S,
|
|
2617
2617
|
w,
|
|
2618
|
-
|
|
2618
|
+
I,
|
|
2619
2619
|
P,
|
|
2620
2620
|
A
|
|
2621
2621
|
)) : k > 0 && k & 64 && H && // #2715 the previous fragment could've been a BAILed one as a result
|
|
@@ -2626,7 +2626,7 @@ function ba(e, t) {
|
|
|
2626
2626
|
_,
|
|
2627
2627
|
S,
|
|
2628
2628
|
w,
|
|
2629
|
-
|
|
2629
|
+
I,
|
|
2630
2630
|
P
|
|
2631
2631
|
), // #2080 if the stable fragment has a key, it's a <template v-for> that may
|
|
2632
2632
|
// get moved around. Make sure all root level vnodes inherit el.
|
|
@@ -2637,23 +2637,23 @@ function ba(e, t) {
|
|
|
2637
2637
|
h,
|
|
2638
2638
|
!0
|
|
2639
2639
|
/* shallow */
|
|
2640
|
-
)) :
|
|
2640
|
+
)) : De(
|
|
2641
2641
|
d,
|
|
2642
2642
|
h,
|
|
2643
2643
|
_,
|
|
2644
2644
|
z,
|
|
2645
2645
|
S,
|
|
2646
2646
|
w,
|
|
2647
|
-
|
|
2647
|
+
I,
|
|
2648
2648
|
P,
|
|
2649
2649
|
A
|
|
2650
2650
|
);
|
|
2651
|
-
},
|
|
2651
|
+
}, D = (d, h, _, C, S, w, I, P, A) => {
|
|
2652
2652
|
h.slotScopeIds = P, d == null ? h.shapeFlag & 512 ? S.ctx.activate(
|
|
2653
2653
|
h,
|
|
2654
2654
|
_,
|
|
2655
2655
|
C,
|
|
2656
|
-
|
|
2656
|
+
I,
|
|
2657
2657
|
A
|
|
2658
2658
|
) : Y(
|
|
2659
2659
|
h,
|
|
@@ -2661,17 +2661,17 @@ function ba(e, t) {
|
|
|
2661
2661
|
C,
|
|
2662
2662
|
S,
|
|
2663
2663
|
w,
|
|
2664
|
-
|
|
2664
|
+
I,
|
|
2665
2665
|
A
|
|
2666
2666
|
) : oe(d, h, A);
|
|
2667
|
-
}, Y = (d, h, _, C, S, w,
|
|
2667
|
+
}, Y = (d, h, _, C, S, w, I) => {
|
|
2668
2668
|
const P = d.component = Pa(
|
|
2669
2669
|
d,
|
|
2670
2670
|
C,
|
|
2671
2671
|
S
|
|
2672
2672
|
);
|
|
2673
|
-
if (Zr(d) && (P.ctx.renderer = it), ka(P, !1,
|
|
2674
|
-
if (S && S.registerDep(P, X,
|
|
2673
|
+
if (Zr(d) && (P.ctx.renderer = it), ka(P, !1, I), P.asyncDep) {
|
|
2674
|
+
if (S && S.registerDep(P, X, I), !d.el) {
|
|
2675
2675
|
const A = P.subTree = Ee(Tt);
|
|
2676
2676
|
R(null, A, h, _), d.placeholder = A.el;
|
|
2677
2677
|
}
|
|
@@ -2683,7 +2683,7 @@ function ba(e, t) {
|
|
|
2683
2683
|
_,
|
|
2684
2684
|
S,
|
|
2685
2685
|
w,
|
|
2686
|
-
|
|
2686
|
+
I
|
|
2687
2687
|
);
|
|
2688
2688
|
}, oe = (d, h, _) => {
|
|
2689
2689
|
const C = h.component = d.component;
|
|
@@ -2695,15 +2695,15 @@ function ba(e, t) {
|
|
|
2695
2695
|
C.next = h, C.update();
|
|
2696
2696
|
else
|
|
2697
2697
|
h.el = d.el, C.vnode = h;
|
|
2698
|
-
}, X = (d, h, _, C, S, w,
|
|
2698
|
+
}, X = (d, h, _, C, S, w, I) => {
|
|
2699
2699
|
const P = () => {
|
|
2700
2700
|
if (d.isMounted) {
|
|
2701
2701
|
let { next: k, bu: H, u: K, parent: J, vnode: O } = d;
|
|
2702
2702
|
{
|
|
2703
2703
|
const $e = Ji(d);
|
|
2704
2704
|
if ($e) {
|
|
2705
|
-
k && (k.el = O.el, Oe(d, k,
|
|
2706
|
-
|
|
2705
|
+
k && (k.el = O.el, Oe(d, k, I)), $e.asyncDep.then(() => {
|
|
2706
|
+
Ie(() => {
|
|
2707
2707
|
d.isUnmounted || E();
|
|
2708
2708
|
}, S);
|
|
2709
2709
|
});
|
|
@@ -2711,7 +2711,7 @@ function ba(e, t) {
|
|
|
2711
2711
|
}
|
|
2712
2712
|
}
|
|
2713
2713
|
let V = k, te;
|
|
2714
|
-
Nt(d, !1), k ? (k.el = O.el, Oe(d, k,
|
|
2714
|
+
Nt(d, !1), k ? (k.el = O.el, Oe(d, k, I)) : k = O, H && Fn(H), (te = k.props && k.props.onVnodeBeforeUpdate) && rt(te, J, k, O), Nt(d, !0);
|
|
2715
2715
|
const Se = ys(d), Be = d.subTree;
|
|
2716
2716
|
d.subTree = Se, m(
|
|
2717
2717
|
Be,
|
|
@@ -2723,7 +2723,7 @@ function ba(e, t) {
|
|
|
2723
2723
|
d,
|
|
2724
2724
|
S,
|
|
2725
2725
|
w
|
|
2726
|
-
), k.el = Se.el, V === null && fa(d, Se.el), K &&
|
|
2726
|
+
), k.el = Se.el, V === null && fa(d, Se.el), K && Ie(K, S), (te = k.props && k.props.onVnodeUpdated) && Ie(
|
|
2727
2727
|
() => rt(te, J, k, O),
|
|
2728
2728
|
S
|
|
2729
2729
|
);
|
|
@@ -2747,14 +2747,14 @@ function ba(e, t) {
|
|
|
2747
2747
|
w
|
|
2748
2748
|
), h.el = $e.el;
|
|
2749
2749
|
}
|
|
2750
|
-
if (O &&
|
|
2750
|
+
if (O && Ie(O, S), !Be && (k = K && K.onVnodeMounted)) {
|
|
2751
2751
|
const $e = h;
|
|
2752
|
-
|
|
2752
|
+
Ie(
|
|
2753
2753
|
() => rt(k, V, $e),
|
|
2754
2754
|
S
|
|
2755
2755
|
);
|
|
2756
2756
|
}
|
|
2757
|
-
(h.shapeFlag & 256 || V && Xt(V.vnode) && V.vnode.shapeFlag & 256) && d.a &&
|
|
2757
|
+
(h.shapeFlag & 256 || V && Xt(V.vnode) && V.vnode.shapeFlag & 256) && d.a && Ie(d.a, S), d.isMounted = !0, h = _ = C = null;
|
|
2758
2758
|
}
|
|
2759
2759
|
};
|
|
2760
2760
|
d.scope.on();
|
|
@@ -2766,7 +2766,7 @@ function ba(e, t) {
|
|
|
2766
2766
|
h.component = d;
|
|
2767
2767
|
const C = d.vnode.props;
|
|
2768
2768
|
d.vnode = h, d.next = null, pa(d, h.props, C, _), _a(d, h.children, _), Mt(), ps(d), Pt();
|
|
2769
|
-
},
|
|
2769
|
+
}, De = (d, h, _, C, S, w, I, P, A = !1) => {
|
|
2770
2770
|
const E = d && d.children, z = d ? d.shapeFlag : 0, k = h.children, { patchFlag: H, shapeFlag: K } = h;
|
|
2771
2771
|
if (H > 0) {
|
|
2772
2772
|
if (H & 128) {
|
|
@@ -2777,7 +2777,7 @@ function ba(e, t) {
|
|
|
2777
2777
|
C,
|
|
2778
2778
|
S,
|
|
2779
2779
|
w,
|
|
2780
|
-
|
|
2780
|
+
I,
|
|
2781
2781
|
P,
|
|
2782
2782
|
A
|
|
2783
2783
|
);
|
|
@@ -2790,7 +2790,7 @@ function ba(e, t) {
|
|
|
2790
2790
|
C,
|
|
2791
2791
|
S,
|
|
2792
2792
|
w,
|
|
2793
|
-
|
|
2793
|
+
I,
|
|
2794
2794
|
P,
|
|
2795
2795
|
A
|
|
2796
2796
|
);
|
|
@@ -2804,7 +2804,7 @@ function ba(e, t) {
|
|
|
2804
2804
|
C,
|
|
2805
2805
|
S,
|
|
2806
2806
|
w,
|
|
2807
|
-
|
|
2807
|
+
I,
|
|
2808
2808
|
P,
|
|
2809
2809
|
A
|
|
2810
2810
|
) : Le(E, S, w, !0) : (z & 8 && c(_, ""), K & 16 && q(
|
|
@@ -2813,11 +2813,11 @@ function ba(e, t) {
|
|
|
2813
2813
|
C,
|
|
2814
2814
|
S,
|
|
2815
2815
|
w,
|
|
2816
|
-
|
|
2816
|
+
I,
|
|
2817
2817
|
P,
|
|
2818
2818
|
A
|
|
2819
2819
|
));
|
|
2820
|
-
}, Ye = (d, h, _, C, S, w,
|
|
2820
|
+
}, Ye = (d, h, _, C, S, w, I, P, A) => {
|
|
2821
2821
|
d = d || Ut, h = h || Ut;
|
|
2822
2822
|
const E = d.length, z = h.length, k = Math.min(E, z);
|
|
2823
2823
|
let H;
|
|
@@ -2830,7 +2830,7 @@ function ba(e, t) {
|
|
|
2830
2830
|
null,
|
|
2831
2831
|
S,
|
|
2832
2832
|
w,
|
|
2833
|
-
|
|
2833
|
+
I,
|
|
2834
2834
|
P,
|
|
2835
2835
|
A
|
|
2836
2836
|
);
|
|
@@ -2848,12 +2848,12 @@ function ba(e, t) {
|
|
|
2848
2848
|
C,
|
|
2849
2849
|
S,
|
|
2850
2850
|
w,
|
|
2851
|
-
|
|
2851
|
+
I,
|
|
2852
2852
|
P,
|
|
2853
2853
|
A,
|
|
2854
2854
|
k
|
|
2855
2855
|
);
|
|
2856
|
-
}, ye = (d, h, _, C, S, w,
|
|
2856
|
+
}, ye = (d, h, _, C, S, w, I, P, A) => {
|
|
2857
2857
|
let E = 0;
|
|
2858
2858
|
const z = h.length;
|
|
2859
2859
|
let k = d.length - 1, H = z - 1;
|
|
@@ -2867,7 +2867,7 @@ function ba(e, t) {
|
|
|
2867
2867
|
null,
|
|
2868
2868
|
S,
|
|
2869
2869
|
w,
|
|
2870
|
-
|
|
2870
|
+
I,
|
|
2871
2871
|
P,
|
|
2872
2872
|
A
|
|
2873
2873
|
);
|
|
@@ -2885,7 +2885,7 @@ function ba(e, t) {
|
|
|
2885
2885
|
null,
|
|
2886
2886
|
S,
|
|
2887
2887
|
w,
|
|
2888
|
-
|
|
2888
|
+
I,
|
|
2889
2889
|
P,
|
|
2890
2890
|
A
|
|
2891
2891
|
);
|
|
@@ -2904,7 +2904,7 @@ function ba(e, t) {
|
|
|
2904
2904
|
J,
|
|
2905
2905
|
S,
|
|
2906
2906
|
w,
|
|
2907
|
-
|
|
2907
|
+
I,
|
|
2908
2908
|
P,
|
|
2909
2909
|
A
|
|
2910
2910
|
), E++;
|
|
@@ -2945,7 +2945,7 @@ function ba(e, t) {
|
|
|
2945
2945
|
null,
|
|
2946
2946
|
S,
|
|
2947
2947
|
w,
|
|
2948
|
-
|
|
2948
|
+
I,
|
|
2949
2949
|
P,
|
|
2950
2950
|
A
|
|
2951
2951
|
), te++);
|
|
@@ -2963,14 +2963,14 @@ function ba(e, t) {
|
|
|
2963
2963
|
on,
|
|
2964
2964
|
S,
|
|
2965
2965
|
w,
|
|
2966
|
-
|
|
2966
|
+
I,
|
|
2967
2967
|
P,
|
|
2968
2968
|
A
|
|
2969
2969
|
) : Be && (V < 0 || E !== Je[V] ? be(Ne, _, on, 2) : V--);
|
|
2970
2970
|
}
|
|
2971
2971
|
}
|
|
2972
2972
|
}, be = (d, h, _, C, S = null) => {
|
|
2973
|
-
const { el: w, type:
|
|
2973
|
+
const { el: w, type: I, transition: P, children: A, shapeFlag: E } = d;
|
|
2974
2974
|
if (E & 6) {
|
|
2975
2975
|
be(d.component.subTree, h, _, C);
|
|
2976
2976
|
return;
|
|
@@ -2980,23 +2980,23 @@ function ba(e, t) {
|
|
|
2980
2980
|
return;
|
|
2981
2981
|
}
|
|
2982
2982
|
if (E & 64) {
|
|
2983
|
-
|
|
2983
|
+
I.move(d, h, _, it);
|
|
2984
2984
|
return;
|
|
2985
2985
|
}
|
|
2986
|
-
if (
|
|
2986
|
+
if (I === ce) {
|
|
2987
2987
|
o(w, h, _);
|
|
2988
2988
|
for (let k = 0; k < A.length; k++)
|
|
2989
2989
|
be(A[k], h, _, C);
|
|
2990
2990
|
o(d.anchor, h, _);
|
|
2991
2991
|
return;
|
|
2992
2992
|
}
|
|
2993
|
-
if (
|
|
2993
|
+
if (I === yn) {
|
|
2994
2994
|
$(d, h, _);
|
|
2995
2995
|
return;
|
|
2996
2996
|
}
|
|
2997
2997
|
if (C !== 2 && E & 1 && P)
|
|
2998
2998
|
if (C === 0)
|
|
2999
|
-
P.beforeEnter(w), o(w, h, _),
|
|
2999
|
+
P.beforeEnter(w), o(w, h, _), Ie(() => P.enter(w), S);
|
|
3000
3000
|
else {
|
|
3001
3001
|
const { leave: k, delayLeave: H, afterLeave: K } = P, J = () => {
|
|
3002
3002
|
d.ctx.isUnmounted ? s(w) : o(w, h, _);
|
|
@@ -3015,7 +3015,7 @@ function ba(e, t) {
|
|
|
3015
3015
|
}, ve = (d, h, _, C = !1, S = !1) => {
|
|
3016
3016
|
const {
|
|
3017
3017
|
type: w,
|
|
3018
|
-
props:
|
|
3018
|
+
props: I,
|
|
3019
3019
|
ref: P,
|
|
3020
3020
|
children: A,
|
|
3021
3021
|
dynamicChildren: E,
|
|
@@ -3031,7 +3031,7 @@ function ba(e, t) {
|
|
|
3031
3031
|
}
|
|
3032
3032
|
const O = z & 1 && H, V = !Xt(d);
|
|
3033
3033
|
let te;
|
|
3034
|
-
if (V && (te =
|
|
3034
|
+
if (V && (te = I && I.onVnodeBeforeUnmount) && rt(te, h, d), z & 6)
|
|
3035
3035
|
pt(d.component, _, C);
|
|
3036
3036
|
else {
|
|
3037
3037
|
if (z & 128) {
|
|
@@ -3059,7 +3059,7 @@ function ba(e, t) {
|
|
|
3059
3059
|
) : (w === ce && k & 384 || !S && z & 16) && Le(A, h, _), C && st(d);
|
|
3060
3060
|
}
|
|
3061
3061
|
const Se = J != null && K == null;
|
|
3062
|
-
(V && (te =
|
|
3062
|
+
(V && (te = I && I.onVnodeUnmounted) || O || Se) && Ie(() => {
|
|
3063
3063
|
te && rt(te, h, d), O && Rt(d, null, h, "unmounted"), Se && (d.el = null);
|
|
3064
3064
|
}, _);
|
|
3065
3065
|
}, st = (d) => {
|
|
@@ -3076,7 +3076,7 @@ function ba(e, t) {
|
|
|
3076
3076
|
s(_), S && !S.persisted && S.afterLeave && S.afterLeave();
|
|
3077
3077
|
};
|
|
3078
3078
|
if (d.shapeFlag & 1 && S && !S.persisted) {
|
|
3079
|
-
const { leave:
|
|
3079
|
+
const { leave: I, delayLeave: P } = S, A = () => I(_, w);
|
|
3080
3080
|
P ? P(d.el, w, A) : A();
|
|
3081
3081
|
} else
|
|
3082
3082
|
w();
|
|
@@ -3086,13 +3086,13 @@ function ba(e, t) {
|
|
|
3086
3086
|
_ = p(d), s(d), d = _;
|
|
3087
3087
|
s(h);
|
|
3088
3088
|
}, pt = (d, h, _) => {
|
|
3089
|
-
const { bum: C, scope: S, job: w, subTree:
|
|
3090
|
-
ws(A), ws(E), C && Fn(C), S.stop(), w && (w.flags |= 8, ve(
|
|
3089
|
+
const { bum: C, scope: S, job: w, subTree: I, um: P, m: A, a: E } = d;
|
|
3090
|
+
ws(A), ws(E), C && Fn(C), S.stop(), w && (w.flags |= 8, ve(I, d, h, _)), P && Ie(P, h), Ie(() => {
|
|
3091
3091
|
d.isUnmounted = !0;
|
|
3092
3092
|
}, h);
|
|
3093
3093
|
}, Le = (d, h, _, C = !1, S = !1, w = 0) => {
|
|
3094
|
-
for (let
|
|
3095
|
-
ve(d[
|
|
3094
|
+
for (let I = w; I < d.length; I++)
|
|
3095
|
+
ve(d[I], h, _, C, S);
|
|
3096
3096
|
}, Ge = (d) => {
|
|
3097
3097
|
if (d.shapeFlag & 6)
|
|
3098
3098
|
return Ge(d.component.subTree);
|
|
@@ -3120,7 +3120,7 @@ function ba(e, t) {
|
|
|
3120
3120
|
r: st,
|
|
3121
3121
|
mt: Y,
|
|
3122
3122
|
mc: q,
|
|
3123
|
-
pc:
|
|
3123
|
+
pc: De,
|
|
3124
3124
|
pbc: Q,
|
|
3125
3125
|
n: Ge,
|
|
3126
3126
|
o: e
|
|
@@ -3187,7 +3187,7 @@ function Zi(e) {
|
|
|
3187
3187
|
}
|
|
3188
3188
|
const Qi = (e) => e.__isSuspense;
|
|
3189
3189
|
function Ea(e, t) {
|
|
3190
|
-
t && t.pendingBranch ? G(e) ? t.effects.push(...e) : t.effects.push(e) :
|
|
3190
|
+
t && t.pendingBranch ? G(e) ? t.effects.push(...e) : t.effects.push(e) : Ii(e);
|
|
3191
3191
|
}
|
|
3192
3192
|
const ce = /* @__PURE__ */ Symbol.for("v-fgt"), ao = /* @__PURE__ */ Symbol.for("v-txt"), Tt = /* @__PURE__ */ Symbol.for("v-cmt"), yn = /* @__PURE__ */ Symbol.for("v-stc"), bn = [];
|
|
3193
3193
|
let He = null;
|
|
@@ -3541,10 +3541,10 @@ function ka(e, t = !1, n = !1) {
|
|
|
3541
3541
|
t && No(t);
|
|
3542
3542
|
const { props: o, children: s } = e.vnode, i = nl(e);
|
|
3543
3543
|
ha(e, o, i, t), va(e, s, n || t);
|
|
3544
|
-
const l = i ?
|
|
3544
|
+
const l = i ? Da(e, t) : void 0;
|
|
3545
3545
|
return t && No(!1), l;
|
|
3546
3546
|
}
|
|
3547
|
-
function
|
|
3547
|
+
function Da(e, t) {
|
|
3548
3548
|
const n = e.type;
|
|
3549
3549
|
e.accessCache = /* @__PURE__ */ Object.create(null), e.proxy = new Proxy(e.ctx, na);
|
|
3550
3550
|
const { setup: o } = n;
|
|
@@ -3579,7 +3579,7 @@ function ol(e, t, n) {
|
|
|
3579
3579
|
const o = e.type;
|
|
3580
3580
|
e.render || (e.render = o.render || Ot);
|
|
3581
3581
|
}
|
|
3582
|
-
const
|
|
3582
|
+
const Ia = {
|
|
3583
3583
|
get(e, t) {
|
|
3584
3584
|
return Pe(e, "get", ""), e[t];
|
|
3585
3585
|
}
|
|
@@ -3589,7 +3589,7 @@ function sl(e) {
|
|
|
3589
3589
|
e.exposed = n || {};
|
|
3590
3590
|
};
|
|
3591
3591
|
return {
|
|
3592
|
-
attrs: new Proxy(e.attrs,
|
|
3592
|
+
attrs: new Proxy(e.attrs, Ia),
|
|
3593
3593
|
slots: e.slots,
|
|
3594
3594
|
emit: e.emit,
|
|
3595
3595
|
expose: t
|
|
@@ -3721,7 +3721,7 @@ function al(e) {
|
|
|
3721
3721
|
t.ce ? Yn(t.ce, s) : Bo(t.subTree, s), n(s);
|
|
3722
3722
|
};
|
|
3723
3723
|
ea(() => {
|
|
3724
|
-
|
|
3724
|
+
Ii(o);
|
|
3725
3725
|
}), Ue(() => {
|
|
3726
3726
|
Ce(o, Ot, { flush: "post" });
|
|
3727
3727
|
const s = new MutationObserver(o);
|
|
@@ -3813,9 +3813,9 @@ function Va(e, t) {
|
|
|
3813
3813
|
}
|
|
3814
3814
|
return t;
|
|
3815
3815
|
}
|
|
3816
|
-
const
|
|
3817
|
-
function
|
|
3818
|
-
o && t.startsWith("xlink:") ? n == null ? e.removeAttributeNS(
|
|
3816
|
+
const Ds = "http://www.w3.org/1999/xlink";
|
|
3817
|
+
function Is(e, t, n, o, s, i = or(t)) {
|
|
3818
|
+
o && t.startsWith("xlink:") ? n == null ? e.removeAttributeNS(Ds, t.slice(6, t.length)) : e.setAttributeNS(Ds, t, n) : n == null || i && !fi(n) ? e.removeAttribute(t) : e.setAttribute(
|
|
3819
3819
|
t,
|
|
3820
3820
|
i ? "" : ze(n) ? String(n) : n
|
|
3821
3821
|
);
|
|
@@ -3911,9 +3911,9 @@ function Xa(e, t) {
|
|
|
3911
3911
|
const Fs = (e) => e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && // lowercase letter
|
|
3912
3912
|
e.charCodeAt(2) > 96 && e.charCodeAt(2) < 123, Ja = (e, t, n, o, s, i) => {
|
|
3913
3913
|
const l = s === "svg";
|
|
3914
|
-
t === "class" ? ja(e, o, l) : t === "style" ? Ha(e, n, o) : Zn(t) ? Qn(t) || qa(e, t, n, o, i) : (t[0] === "." ? (t = t.slice(1), !0) : t[0] === "^" ? (t = t.slice(1), !1) : Za(e, t, o, l)) ? (Rs(e, t, o), !e.tagName.includes("-") && (t === "value" || t === "checked" || t === "selected") &&
|
|
3914
|
+
t === "class" ? ja(e, o, l) : t === "style" ? Ha(e, n, o) : Zn(t) ? Qn(t) || qa(e, t, n, o, i) : (t[0] === "." ? (t = t.slice(1), !0) : t[0] === "^" ? (t = t.slice(1), !1) : Za(e, t, o, l)) ? (Rs(e, t, o), !e.tagName.includes("-") && (t === "value" || t === "checked" || t === "selected") && Is(e, t, o, l, i, t !== "value")) : /* #11081 force set props for possible async custom element */ e._isVueCE && // #12408 check if it's declared prop or it's async custom element
|
|
3915
3915
|
(Qa(e, t) || // @ts-expect-error _def is private
|
|
3916
|
-
e._def.__asyncLoader && (/[A-Z]/.test(t) || !we(o))) ? Rs(e, Qe(t), o, i, t) : (t === "true-value" ? e._trueValue = o : t === "false-value" && (e._falseValue = o),
|
|
3916
|
+
e._def.__asyncLoader && (/[A-Z]/.test(t) || !we(o))) ? Rs(e, Qe(t), o, i, t) : (t === "true-value" ? e._trueValue = o : t === "false-value" && (e._falseValue = o), Is(e, t, o, l));
|
|
3917
3917
|
};
|
|
3918
3918
|
function Za(e, t, n, o) {
|
|
3919
3919
|
if (o)
|
|
@@ -4254,8 +4254,8 @@ const gl = /* @__PURE__ */ qe({
|
|
|
4254
4254
|
}), me = U(() => `分栏位置: ${{
|
|
4255
4255
|
left: "左侧",
|
|
4256
4256
|
right: "右侧"
|
|
4257
|
-
}[g.value]}`), Ae = U(() => `切换分栏位置 - 下一个: ${g.value === "right" ? "左侧" : "右侧"}`),
|
|
4258
|
-
return Object.defineProperty(
|
|
4257
|
+
}[g.value]}`), Ae = U(() => `切换分栏位置 - 下一个: ${g.value === "right" ? "左侧" : "右侧"}`), D = { title: n, sessionListTitle: o, sessionListCollapsed: s, selectMode: i, selectEnabled: l, theme: r, resolvedTheme: a, minimized: u, promptDockVisible: c, mode: f, displayMode: p, splitPosition: g, handleToggleSessionList: b, handleToggleSelectMode: m, handleToggleTheme: x, handleToggleDisplayMode: R, handleToggleSplitPosition: M, handleClose: $, handleToggleMinimize: y, handleTogglePromptDock: j, isSplitMode: L, themeIconTitle: B, themeIconLabel: q, displayModeIconTitle: Z, displayModeIconLabel: Q, splitPositionIconTitle: me, splitPositionIconLabel: Ae };
|
|
4258
|
+
return Object.defineProperty(D, "__isScriptSetup", { enumerable: !1, value: !0 }), D;
|
|
4259
4259
|
}
|
|
4260
4260
|
}), yc = { class: "opencode-chat-header" }, bc = { class: "opencode-chat-header-left" }, Sc = ["title", "aria-label", "aria-expanded"], wc = ["aria-pressed", "disabled"], Ec = ["title", "aria-label"], Tc = {
|
|
4261
4261
|
key: 0,
|
|
@@ -4311,7 +4311,7 @@ const gl = /* @__PURE__ */ qe({
|
|
|
4311
4311
|
stroke: "currentColor",
|
|
4312
4312
|
"stroke-width": "2",
|
|
4313
4313
|
"aria-hidden": "true"
|
|
4314
|
-
}, kc = { class: "opencode-chat-header-title" },
|
|
4314
|
+
}, kc = { class: "opencode-chat-header-title" }, Dc = { class: "opencode-chat-header-actions" }, Ic = ["title", "aria-label"], Rc = {
|
|
4315
4315
|
key: 0,
|
|
4316
4316
|
viewBox: "0 0 24 24",
|
|
4317
4317
|
width: "16",
|
|
@@ -4582,7 +4582,7 @@ function jc(e, t, n, o, s, i) {
|
|
|
4582
4582
|
1
|
|
4583
4583
|
/* TEXT */
|
|
4584
4584
|
),
|
|
4585
|
-
v("div",
|
|
4585
|
+
v("div", Dc, [
|
|
4586
4586
|
o.isSplitMode ? (F(), W("button", {
|
|
4587
4587
|
key: 0,
|
|
4588
4588
|
class: "opencode-header-btn split-position-btn",
|
|
@@ -4646,7 +4646,7 @@ function jc(e, t, n, o, s, i) {
|
|
|
4646
4646
|
)
|
|
4647
4647
|
])]))
|
|
4648
4648
|
])
|
|
4649
|
-
], 8,
|
|
4649
|
+
], 8, Ic)) : ae("v-if", !0),
|
|
4650
4650
|
o.isSplitMode ? ae("v-if", !0) : (F(), W("button", {
|
|
4651
4651
|
key: 1,
|
|
4652
4652
|
class: "opencode-header-btn prompt-dock",
|
|
@@ -5176,7 +5176,7 @@ const yl = /* @__PURE__ */ qe(Eu(wu({}, {
|
|
|
5176
5176
|
class: "opencode-notification",
|
|
5177
5177
|
role: "alert"
|
|
5178
5178
|
}, ku = { class: "opencode-chat-content" };
|
|
5179
|
-
function
|
|
5179
|
+
function Du(e, t, n, o, s, i) {
|
|
5180
5180
|
return F(), W(
|
|
5181
5181
|
"div",
|
|
5182
5182
|
{
|
|
@@ -5358,8 +5358,8 @@ function Iu(e, t, n, o, s, i) {
|
|
|
5358
5358
|
/* CLASS, STYLE */
|
|
5359
5359
|
);
|
|
5360
5360
|
}
|
|
5361
|
-
yl.render =
|
|
5362
|
-
var
|
|
5361
|
+
yl.render = Du;
|
|
5362
|
+
var Iu = yl;
|
|
5363
5363
|
const bl = /* @__PURE__ */ qe({
|
|
5364
5364
|
__name: "SelectHint",
|
|
5365
5365
|
setup(e, { expose: t }) {
|
|
@@ -5421,7 +5421,7 @@ const Sl = /* @__PURE__ */ qe(Vu(Hu({}, {
|
|
|
5421
5421
|
y: 0,
|
|
5422
5422
|
width: 0,
|
|
5423
5423
|
height: 0
|
|
5424
|
-
}), r = (
|
|
5424
|
+
}), r = (D) => D !== null && typeof D == "object", a = U(
|
|
5425
5425
|
() => r(o.gap) ? o.gap.x : o.gap
|
|
5426
5426
|
), u = U(
|
|
5427
5427
|
() => r(o.gap) ? o.gap.y : o.gap
|
|
@@ -5430,7 +5430,7 @@ const Sl = /* @__PURE__ */ qe(Vu(Hu({}, {
|
|
|
5430
5430
|
right: c.value - l.value.width - a.value,
|
|
5431
5431
|
bottom: f.value - l.value.height - u.value,
|
|
5432
5432
|
left: a.value
|
|
5433
|
-
})), g = (
|
|
5433
|
+
})), g = (D, Y) => D.reduce(
|
|
5434
5434
|
(oe, X) => Math.abs(oe - Y) < Math.abs(X - Y) ? oe : X
|
|
5435
5435
|
), b = () => {
|
|
5436
5436
|
if (o.magnetic === "x")
|
|
@@ -5439,34 +5439,34 @@ const Sl = /* @__PURE__ */ qe(Vu(Hu({}, {
|
|
|
5439
5439
|
else if (R.value === "right")
|
|
5440
5440
|
l.value.x = p.value.right;
|
|
5441
5441
|
else {
|
|
5442
|
-
const
|
|
5442
|
+
const D = g(
|
|
5443
5443
|
[p.value.left, p.value.right],
|
|
5444
5444
|
l.value.x
|
|
5445
5445
|
);
|
|
5446
|
-
l.value.x =
|
|
5446
|
+
l.value.x = D, R.value = D === p.value.left ? "left" : "right";
|
|
5447
5447
|
}
|
|
5448
5448
|
if (o.magnetic === "y") {
|
|
5449
|
-
const
|
|
5449
|
+
const D = g(
|
|
5450
5450
|
[p.value.top, p.value.bottom],
|
|
5451
5451
|
l.value.y
|
|
5452
5452
|
);
|
|
5453
|
-
l.value.y =
|
|
5453
|
+
l.value.y = D;
|
|
5454
5454
|
}
|
|
5455
5455
|
}, m = /* @__PURE__ */ N(!1), x = /* @__PURE__ */ N(!1), R = /* @__PURE__ */ N(null), M = U(() => {
|
|
5456
|
-
const
|
|
5457
|
-
return
|
|
5456
|
+
const D = {}, Y = `${l.value.x}px`, oe = `${l.value.y}px`;
|
|
5457
|
+
return D.transform = `translate3d(${Y}, ${oe}, 0)`, m.value || !x.value ? D.transition = "none" : D.transition = "transform 0.3s ease", D;
|
|
5458
5458
|
}), $ = () => {
|
|
5459
5459
|
if (!i.value || typeof window > "u") return;
|
|
5460
|
-
const
|
|
5461
|
-
let oe = Y ? Y.x : c.value -
|
|
5462
|
-
const Oe = c.value -
|
|
5463
|
-
oe < a.value && (oe = a.value), oe > Oe && (oe = Oe), X < u.value && (X = u.value), X >
|
|
5460
|
+
const D = i.value.getBoundingClientRect(), { offset: Y } = o;
|
|
5461
|
+
let oe = Y ? Y.x : c.value - D.width - a.value, X = Y ? Y.y : f.value - D.height - u.value;
|
|
5462
|
+
const Oe = c.value - D.width - a.value, De = f.value - D.height - u.value;
|
|
5463
|
+
oe < a.value && (oe = a.value), oe > Oe && (oe = Oe), X < u.value && (X = u.value), X > De && (X = De);
|
|
5464
5464
|
const Ye = l.value.x, ye = l.value.y;
|
|
5465
5465
|
if (l.value = {
|
|
5466
5466
|
x: oe,
|
|
5467
5467
|
y: X,
|
|
5468
|
-
width:
|
|
5469
|
-
height:
|
|
5468
|
+
width: D.width,
|
|
5469
|
+
height: D.height
|
|
5470
5470
|
}, !m.value && (o.magnetic === "x" && R.value ? R.value === "left" ? l.value.x = p.value.left : l.value.x = p.value.right : b(), l.value.x !== Ye || l.value.y !== ye)) {
|
|
5471
5471
|
const be = { x: l.value.x, y: l.value.y };
|
|
5472
5472
|
s("update:offset", be), s("offset-change", be);
|
|
@@ -5479,23 +5479,23 @@ const Sl = /* @__PURE__ */ qe(Vu(Hu({}, {
|
|
|
5479
5479
|
offsetX: /* @__PURE__ */ N(0),
|
|
5480
5480
|
offsetY: /* @__PURE__ */ N(0),
|
|
5481
5481
|
isTap: /* @__PURE__ */ N(!0),
|
|
5482
|
-
start(
|
|
5483
|
-
this.startX.value = "touches" in
|
|
5482
|
+
start(D) {
|
|
5483
|
+
this.startX.value = "touches" in D ? D.touches[0].clientX : D.clientX, this.startY.value = "touches" in D ? D.touches[0].clientY : D.clientY, this.deltaX.value = 0, this.deltaY.value = 0, this.offsetX.value = 0, this.offsetY.value = 0, this.isTap.value = !0;
|
|
5484
5484
|
},
|
|
5485
|
-
move(
|
|
5486
|
-
const Y = "touches" in
|
|
5485
|
+
move(D) {
|
|
5486
|
+
const Y = "touches" in D ? D.touches[0].clientX : D.clientX, oe = "touches" in D ? D.touches[0].clientY : D.clientY;
|
|
5487
5487
|
this.deltaX.value = Y - this.startX.value, this.deltaY.value = oe - this.startY.value, this.offsetX.value = Math.abs(this.deltaX.value), this.offsetY.value = Math.abs(this.deltaY.value);
|
|
5488
5488
|
const X = 5;
|
|
5489
5489
|
this.isTap.value && (this.offsetX.value > X || this.offsetY.value > X) && (this.isTap.value = !1);
|
|
5490
5490
|
}
|
|
5491
5491
|
};
|
|
5492
5492
|
let j = 0, L = 0;
|
|
5493
|
-
const B = (
|
|
5494
|
-
y.start(
|
|
5495
|
-
}, q = (
|
|
5496
|
-
|
|
5493
|
+
const B = (D) => {
|
|
5494
|
+
y.start(D), m.value = !0, j = l.value.x, L = l.value.y, document.body.classList.add("floating-bubble-dragging"), "touches" in D || (window.addEventListener("mousemove", q, { passive: !1 }), window.addEventListener("mouseup", Z));
|
|
5495
|
+
}, q = (D) => {
|
|
5496
|
+
D.cancelable && D.preventDefault();
|
|
5497
5497
|
const Y = y.isTap.value;
|
|
5498
|
-
if (y.move(
|
|
5498
|
+
if (y.move(D), Y && !y.isTap.value && s("drag-start"), o.axis !== "lock" && !y.isTap.value) {
|
|
5499
5499
|
if (o.axis === "x" || o.axis === "xy") {
|
|
5500
5500
|
let X = j + y.deltaX.value;
|
|
5501
5501
|
X < p.value.left && (X = p.value.left), X > p.value.right && (X = p.value.right), l.value.x = X;
|
|
@@ -5507,8 +5507,8 @@ const Sl = /* @__PURE__ */ qe(Vu(Hu({}, {
|
|
|
5507
5507
|
const oe = { x: l.value.x, y: l.value.y };
|
|
5508
5508
|
s("update:offset", oe);
|
|
5509
5509
|
}
|
|
5510
|
-
}, Z = (
|
|
5511
|
-
m.value = !1, document.body.classList.remove("floating-bubble-dragging"),
|
|
5510
|
+
}, Z = (D) => {
|
|
5511
|
+
m.value = !1, document.body.classList.remove("floating-bubble-dragging"), D && !("touches" in D) && D.type === "mouseup" && (window.removeEventListener("mousemove", q), window.removeEventListener("mouseup", Z)), requestAnimationFrame(() => {
|
|
5512
5512
|
if (o.magnetic === "x" && !y.isTap.value) {
|
|
5513
5513
|
const Y = l.value.x + l.value.width / 2, oe = c.value / 2;
|
|
5514
5514
|
R.value = Y < oe ? "left" : "right";
|
|
@@ -5519,8 +5519,8 @@ const Sl = /* @__PURE__ */ qe(Vu(Hu({}, {
|
|
|
5519
5519
|
s("update:offset", Y), (j !== Y.x || L !== Y.y) && s("offset-change", Y);
|
|
5520
5520
|
}
|
|
5521
5521
|
});
|
|
5522
|
-
}, Q = (
|
|
5523
|
-
y.isTap.value ? s("click",
|
|
5522
|
+
}, Q = (D) => {
|
|
5523
|
+
y.isTap.value ? s("click", D) : D.stopPropagation();
|
|
5524
5524
|
}, me = () => {
|
|
5525
5525
|
typeof window < "u" && (c.value = window.innerWidth, f.value = window.innerHeight);
|
|
5526
5526
|
};
|
|
@@ -5541,12 +5541,12 @@ const Sl = /* @__PURE__ */ qe(Vu(Hu({}, {
|
|
|
5541
5541
|
});
|
|
5542
5542
|
const Ae = { props: o, emit: s, rootRef: i, state: l, isObject: r, gapX: a, gapY: u, windowWidth: c, windowHeight: f, boundary: p, closest: g, applyMagnetic: b, dragging: m, initialized: x, magneticSide: R, rootStyle: M, updateState: $, touch: y, get prevX() {
|
|
5543
5543
|
return j;
|
|
5544
|
-
}, set prevX(
|
|
5545
|
-
j =
|
|
5544
|
+
}, set prevX(D) {
|
|
5545
|
+
j = D;
|
|
5546
5546
|
}, get prevY() {
|
|
5547
5547
|
return L;
|
|
5548
|
-
}, set prevY(
|
|
5549
|
-
L =
|
|
5548
|
+
}, set prevY(D) {
|
|
5549
|
+
L = D;
|
|
5550
5550
|
}, onTouchStart: B, onTouchMove: q, onTouchEnd: Z, onClick: Q, handleResize: me };
|
|
5551
5551
|
return Object.defineProperty(Ae, "__isScriptSetup", { enumerable: !1, value: !0 }), Ae;
|
|
5552
5552
|
}
|
|
@@ -6116,7 +6116,7 @@ function kl(e, t) {
|
|
|
6116
6116
|
function Cd(e, t) {
|
|
6117
6117
|
return e.length === 0 || e.length > 1 ? [] : kl(e[0]);
|
|
6118
6118
|
}
|
|
6119
|
-
function
|
|
6119
|
+
function Dl(e, t) {
|
|
6120
6120
|
const n = e.parentNode, o = n && "children" in n ? n.children : null;
|
|
6121
6121
|
if (o) {
|
|
6122
6122
|
for (let s = 0; s < o.length; s++)
|
|
@@ -6126,16 +6126,16 @@ function Il(e, t) {
|
|
|
6126
6126
|
return [];
|
|
6127
6127
|
}
|
|
6128
6128
|
function Ad(e, t) {
|
|
6129
|
-
return kn(e.map((n) =>
|
|
6129
|
+
return kn(e.map((n) => Dl(n)));
|
|
6130
6130
|
}
|
|
6131
|
-
function
|
|
6131
|
+
function Il(e, t) {
|
|
6132
6132
|
return [
|
|
6133
6133
|
en(e.tagName.toLowerCase())
|
|
6134
6134
|
];
|
|
6135
6135
|
}
|
|
6136
6136
|
function Rl(e, t) {
|
|
6137
6137
|
const n = [
|
|
6138
|
-
...new Set(dd(e.map((o) =>
|
|
6138
|
+
...new Set(dd(e.map((o) => Il(o))))
|
|
6139
6139
|
];
|
|
6140
6140
|
return n.length === 0 || n.length > 1 ? [] : [n[0]];
|
|
6141
6141
|
}
|
|
@@ -6202,12 +6202,12 @@ function* kd(e = {}) {
|
|
|
6202
6202
|
});
|
|
6203
6203
|
}
|
|
6204
6204
|
}
|
|
6205
|
-
const
|
|
6205
|
+
const Dd = "3a".toUpperCase(), Id = /[ !"#$%&'()\[\]{|}<>*+,./;=?@^`~\\]/;
|
|
6206
6206
|
function en(e = "") {
|
|
6207
6207
|
return CSS ? CSS.escape(e) : Rd(e);
|
|
6208
6208
|
}
|
|
6209
6209
|
function Rd(e = "") {
|
|
6210
|
-
return e.split("").map((t) => t === ":" ? `\\${
|
|
6210
|
+
return e.split("").map((t) => t === ":" ? `\\${Dd} ` : Id.test(t) ? `\\${t}` : escape(t).replace(/%/g, "\\")).join("");
|
|
6211
6211
|
}
|
|
6212
6212
|
const Ld = {
|
|
6213
6213
|
tag: Rl,
|
|
@@ -6217,11 +6217,11 @@ const Ld = {
|
|
|
6217
6217
|
nthchild: Ad,
|
|
6218
6218
|
nthoftype: Od
|
|
6219
6219
|
}, Nd = {
|
|
6220
|
-
tag:
|
|
6220
|
+
tag: Il,
|
|
6221
6221
|
id: kl,
|
|
6222
6222
|
class: Pl,
|
|
6223
6223
|
attribute: Ml,
|
|
6224
|
-
nthchild:
|
|
6224
|
+
nthchild: Dl,
|
|
6225
6225
|
nthoftype: Ll
|
|
6226
6226
|
};
|
|
6227
6227
|
function Fd(e, t, n) {
|
|
@@ -6581,7 +6581,7 @@ function wf(e) {
|
|
|
6581
6581
|
description: Z,
|
|
6582
6582
|
fileInfo: Ae
|
|
6583
6583
|
};
|
|
6584
|
-
const
|
|
6584
|
+
const D = L.getBoundingClientRect(), Y = `${D.top}px`, oe = `${D.left}px`, X = `${D.width}px`, Oe = `${D.height}px`;
|
|
6585
6585
|
(n.value.top !== Y || n.value.left !== oe || n.value.width !== X || n.value.height !== Oe) && (n.value = {
|
|
6586
6586
|
top: Y,
|
|
6587
6587
|
left: oe,
|
|
@@ -6590,9 +6590,9 @@ function wf(e) {
|
|
|
6590
6590
|
border: `2px solid ${a}`,
|
|
6591
6591
|
background: u
|
|
6592
6592
|
});
|
|
6593
|
-
const
|
|
6594
|
-
let be =
|
|
6595
|
-
be < ye && (be =
|
|
6593
|
+
const De = 50, Ye = 200, ye = 10;
|
|
6594
|
+
let be = D.top - De - 8, ve = D.left;
|
|
6595
|
+
be < ye && (be = D.bottom + 8), be + De > window.innerHeight - ye && (be = Math.max(ye, D.top - De - 8)), ve < ye && (ve = ye), ve + Ye > window.innerWidth - ye && (ve = window.innerWidth - Ye - ye);
|
|
6596
6596
|
const st = `${be}px`, ht = `${ve}px`;
|
|
6597
6597
|
(s.value.top !== st || s.value.left !== ht) && (s.value = {
|
|
6598
6598
|
top: st,
|
|
@@ -6766,15 +6766,15 @@ function Af(e) {
|
|
|
6766
6766
|
handleTogglePosition: p
|
|
6767
6767
|
};
|
|
6768
6768
|
}
|
|
6769
|
-
var Of = Object.defineProperty, Mf = Object.defineProperties, Pf = Object.getOwnPropertyDescriptors, ei = Object.getOwnPropertySymbols, kf = Object.prototype.hasOwnProperty,
|
|
6769
|
+
var Of = Object.defineProperty, Mf = Object.defineProperties, Pf = Object.getOwnPropertyDescriptors, ei = Object.getOwnPropertySymbols, kf = Object.prototype.hasOwnProperty, Df = Object.prototype.propertyIsEnumerable, ti = (e, t, n) => t in e ? Of(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, If = (e, t) => {
|
|
6770
6770
|
for (var n in t || (t = {}))
|
|
6771
6771
|
kf.call(t, n) && ti(e, n, t[n]);
|
|
6772
6772
|
if (ei)
|
|
6773
6773
|
for (var n of ei(t))
|
|
6774
|
-
|
|
6774
|
+
Df.call(t, n) && ti(e, n, t[n]);
|
|
6775
6775
|
return e;
|
|
6776
6776
|
}, Rf = (e, t) => Mf(e, Pf(t));
|
|
6777
|
-
const jl = /* @__PURE__ */ qe(Rf(
|
|
6777
|
+
const jl = /* @__PURE__ */ qe(Rf(If({}, {
|
|
6778
6778
|
name: "OpencodeWidget"
|
|
6779
6779
|
}), {
|
|
6780
6780
|
__name: "index",
|
|
@@ -6833,7 +6833,7 @@ const jl = /* @__PURE__ */ qe(Rf(Df({}, {
|
|
|
6833
6833
|
(je = $.value) == null || je.sendMessageToIframe(T, Me);
|
|
6834
6834
|
}, L = /* @__PURE__ */ N(i.sessionListCollapsed), B = /* @__PURE__ */ N(i.displayMode), q = /* @__PURE__ */ N(
|
|
6835
6835
|
(s = (o = i.splitMode) == null ? void 0 : o.position) != null ? s : "right"
|
|
6836
|
-
), Z = /* @__PURE__ */ N(!1), Q = /* @__PURE__ */ N(!0), me = /* @__PURE__ */ N(!0), Ae = /* @__PURE__ */ N(!1),
|
|
6836
|
+
), Z = /* @__PURE__ */ N(!1), Q = /* @__PURE__ */ N(!0), me = /* @__PURE__ */ N(!0), Ae = /* @__PURE__ */ N(!1), D = /* @__PURE__ */ N(i.splitPanelWidth), Y = () => {
|
|
6837
6837
|
Ae.value && (j("prompt-dock-visibility-change", { visible: Q.value }), j("minimize-state-change", { minimized: Z.value }));
|
|
6838
6838
|
}, oe = () => {
|
|
6839
6839
|
l("frame-loaded"), Ae.value = !0, Y();
|
|
@@ -6846,7 +6846,7 @@ const jl = /* @__PURE__ */ qe(Rf(Df({}, {
|
|
|
6846
6846
|
), Ce(
|
|
6847
6847
|
() => i.splitPanelWidth,
|
|
6848
6848
|
(T) => {
|
|
6849
|
-
|
|
6849
|
+
D.value = T;
|
|
6850
6850
|
}
|
|
6851
6851
|
), Ce(
|
|
6852
6852
|
() => i.displayMode,
|
|
@@ -6859,7 +6859,7 @@ const jl = /* @__PURE__ */ qe(Rf(Df({}, {
|
|
|
6859
6859
|
B.value = T[je];
|
|
6860
6860
|
}, {
|
|
6861
6861
|
buttonActive: Oe,
|
|
6862
|
-
containerClasses:
|
|
6862
|
+
containerClasses: De,
|
|
6863
6863
|
iframeSource: Ye,
|
|
6864
6864
|
sessionListTitle: ye,
|
|
6865
6865
|
resolvedTheme: be,
|
|
@@ -6924,7 +6924,7 @@ const jl = /* @__PURE__ */ qe(Rf(Df({}, {
|
|
|
6924
6924
|
l("clear-selected-nodes"), l("update:selectedElements", []);
|
|
6925
6925
|
},
|
|
6926
6926
|
showConfirmDialog: x
|
|
6927
|
-
}), { highlightVisible:
|
|
6927
|
+
}), { highlightVisible: I, highlightStyle: P, tooltipVisible: A, tooltipStyle: E, tooltipContent: z } = wf({
|
|
6928
6928
|
selectMode: /* @__PURE__ */ se(i, "selectMode"),
|
|
6929
6929
|
onAddSelectedNode: (T) => {
|
|
6930
6930
|
l("click-selected-node", T);
|
|
@@ -6950,7 +6950,7 @@ const jl = /* @__PURE__ */ qe(Rf(Df({}, {
|
|
|
6950
6950
|
l("update:open", T), l("toggle", T);
|
|
6951
6951
|
},
|
|
6952
6952
|
onWidthChange: (T) => {
|
|
6953
|
-
|
|
6953
|
+
D.value = T, l("update:splitPanelWidth", T), l("split-panel-width-change", T);
|
|
6954
6954
|
},
|
|
6955
6955
|
onPositionChange: (T) => {
|
|
6956
6956
|
q.value = T;
|
|
@@ -6963,15 +6963,15 @@ const jl = /* @__PURE__ */ qe(Rf(Df({}, {
|
|
|
6963
6963
|
bubbleOffset: k,
|
|
6964
6964
|
theme: /* @__PURE__ */ se(i, "theme"),
|
|
6965
6965
|
sessionListCollapsed: L,
|
|
6966
|
-
splitPanelWidth:
|
|
6966
|
+
splitPanelWidth: D,
|
|
6967
6967
|
displayMode: B,
|
|
6968
6968
|
splitPosition: q,
|
|
6969
6969
|
onRestore: (T) => {
|
|
6970
6970
|
if (T.open !== void 0 && T.open !== i.open && (l("update:open", T.open), l("toggle", T.open)), T.minimized !== void 0 && (Z.value = T.minimized), T.bubbleOffset !== void 0) {
|
|
6971
|
-
const gt = window.innerWidth - 44 - 10,
|
|
6971
|
+
const gt = window.innerWidth - 44 - 10, Dt = window.innerHeight - 44 - 10;
|
|
6972
6972
|
k.value = {
|
|
6973
6973
|
x: Math.max(10, Math.min(T.bubbleOffset.x, gt)),
|
|
6974
|
-
y: Math.max(10, Math.min(T.bubbleOffset.y,
|
|
6974
|
+
y: Math.max(10, Math.min(T.bubbleOffset.y, Dt))
|
|
6975
6975
|
};
|
|
6976
6976
|
}
|
|
6977
6977
|
T.theme !== void 0 && T.theme !== i.theme && (l("update:theme", T.theme), l("toggle-theme", T.theme)), T.sessionListCollapsed !== void 0 && T.sessionListCollapsed !== i.sessionListCollapsed && (L.value = T.sessionListCollapsed, l("update:sessionListCollapsed", T.sessionListCollapsed)), T.promptDockVisible !== void 0 ? Q.value = T.promptDockVisible : Z.value && (Q.value = !1), T.splitPanelWidth !== void 0 && T.splitPanelWidth !== i.splitPanelWidth && te(T.splitPanelWidth), T.displayMode !== void 0 && T.displayMode !== i.displayMode && (B.value = T.displayMode), T.splitPosition !== void 0 && (q.value = T.splitPosition), Uo(() => {
|
|
@@ -6996,26 +6996,26 @@ const jl = /* @__PURE__ */ qe(Rf(Df({}, {
|
|
|
6996
6996
|
const zt = U(() => {
|
|
6997
6997
|
var T, Me, je, gt;
|
|
6998
6998
|
if (typeof window > "u") return "bottom-right";
|
|
6999
|
-
const
|
|
7000
|
-
return
|
|
6999
|
+
const Dt = Je.value / 2, Ct = he.value / 2, mt = 44, Ke = (Me = (T = y.value) == null ? void 0 : T.offset) != null ? Me : k.value, It = ((je = Ke?.x) != null ? je : Je.value - mt - 24) + mt / 2, lt = ((gt = Ke?.y) != null ? gt : he.value - mt - 24) + mt / 2;
|
|
7000
|
+
return It >= Dt && lt >= Ct ? "bottom-right" : It < Dt && lt >= Ct ? "bottom-left" : It >= Dt && lt < Ct ? "top-right" : "top-left";
|
|
7001
7001
|
}), on = U(() => {
|
|
7002
7002
|
const T = zt.value;
|
|
7003
7003
|
return T === "top-right" || T === "bottom-right";
|
|
7004
7004
|
}), Vl = U(() => {
|
|
7005
7005
|
var T, Me, je;
|
|
7006
7006
|
if (typeof window > "u") return {};
|
|
7007
|
-
const gt = Z.value ? 300 : 700,
|
|
7007
|
+
const gt = Z.value ? 300 : 700, Dt = Z.value ? 300 : Math.min(he.value * 0.86, he.value - 40), Ct = 24, mt = 44, Ke = 20, It = (je = (Me = (T = y.value) == null ? void 0 : T.offset) != null ? Me : k.value) != null ? je : { x: Je.value - mt - Ct, y: he.value - mt - Ct }, lt = {};
|
|
7008
7008
|
if (on.value) {
|
|
7009
|
-
let Ze = Je.value -
|
|
7009
|
+
let Ze = Je.value - It.x + Ct;
|
|
7010
7010
|
const rn = Ke, an = Je.value - gt - Ke;
|
|
7011
7011
|
Ze > an && (Ze = an), Ze < rn && (Ze = rn), lt.right = `${Ze}px`, lt.left = "auto";
|
|
7012
7012
|
} else {
|
|
7013
|
-
let Ze =
|
|
7013
|
+
let Ze = It.x + mt + Ct;
|
|
7014
7014
|
const rn = Ke, an = Je.value - gt - Ke;
|
|
7015
7015
|
Ze > an && (Ze = an), Ze < rn && (Ze = rn), lt.left = `${Ze}px`, lt.right = "auto";
|
|
7016
7016
|
}
|
|
7017
|
-
let ln = he.value -
|
|
7018
|
-
const cs = he.value -
|
|
7017
|
+
let ln = he.value - It.y - mt;
|
|
7018
|
+
const cs = he.value - Dt - Ke;
|
|
7019
7019
|
return ln > cs && (ln = cs), ln < Ke && (ln = Ke), lt.bottom = `${ln}px`, lt;
|
|
7020
7020
|
}), rs = (T) => {
|
|
7021
7021
|
k.value = T;
|
|
@@ -7036,11 +7036,11 @@ const jl = /* @__PURE__ */ qe(Rf(Df({}, {
|
|
|
7036
7036
|
return { x: "20px", y: "20px" };
|
|
7037
7037
|
}
|
|
7038
7038
|
}), sn = /* @__PURE__ */ N(!1);
|
|
7039
|
-
let
|
|
7039
|
+
let Dn = !1;
|
|
7040
7040
|
const Kl = () => {
|
|
7041
|
-
sn.value = !0,
|
|
7041
|
+
sn.value = !0, Dn = i.open, i.open && l("update:open", !1);
|
|
7042
7042
|
}, Ul = () => {
|
|
7043
|
-
sn.value = !1,
|
|
7043
|
+
sn.value = !1, Dn && l("update:open", !0);
|
|
7044
7044
|
};
|
|
7045
7045
|
cc({
|
|
7046
7046
|
theme: /* @__PURE__ */ se(i, "theme"),
|
|
@@ -7111,11 +7111,11 @@ const jl = /* @__PURE__ */ qe(Rf(Df({}, {
|
|
|
7111
7111
|
return m;
|
|
7112
7112
|
}, set dialogResolve(T) {
|
|
7113
7113
|
m = T;
|
|
7114
|
-
}, showConfirmDialog: x, handleDialogConfirm: R, handleDialogCancel: M, frameRef: $, triggerRef: y, sendMessageToIframe: j, localSessionListCollapsed: L, localDisplayMode: B, localSplitPosition: q, minimized: Z, promptDockVisible: Q, isRestoring: me, iframeLoaded: Ae, splitPanelWidth:
|
|
7115
|
-
return
|
|
7114
|
+
}, showConfirmDialog: x, handleDialogConfirm: R, handleDialogCancel: M, frameRef: $, triggerRef: y, sendMessageToIframe: j, localSessionListCollapsed: L, localDisplayMode: B, localSplitPosition: q, minimized: Z, promptDockVisible: Q, isRestoring: me, iframeLoaded: Ae, splitPanelWidth: D, syncStateToIframe: Y, handleFrameLoaded: oe, handleToggleDisplayMode: X, buttonActive: Oe, containerClasses: De, iframeSource: Ye, sessionListTitle: ye, resolvedTheme: be, handleClose: ve, handleEmptyAction: st, handleToggle: ht, handleToggleSessionList: pt, handleToggleTheme: Le, sessionItems: Ge, handleCreateSession: Xe, handleDeleteSession: kt, handleSelectSession: it, bubbleVisible: nn, hasSelectedElements: d, selectedElementItems: h, handleClearSelectedNodes: _, handleClickSelectedNode: C, handleRemoveSelectedNode: S, handleToggleSelectMode: w, highlightVisible: I, highlightStyle: P, tooltipVisible: A, tooltipStyle: E, tooltipContent: z, bubbleOffset: k, effectiveMode: H, isSplitMode: K, panelWidth: J, splitConfig: O, splitPosition: V, handleResize: te, handleSplitToggle: Se, handleTogglePosition: Be, handleToggleMinimize: $e, handleTogglePromptDock: xt, windowWidth: Je, windowHeight: he, handleWindowResize: Ne, bubbleQuadrant: zt, isBubbleOnRightSide: on, chatPositionStyle: Vl, handleBubbleOffsetChange: rs, handleResizeStart: zl, handleResizeEnd: ql, chatAnimationOrigin: uo, isDragging: sn, get wasOpenBeforeDrag() {
|
|
7115
|
+
return Dn;
|
|
7116
7116
|
}, set wasOpenBeforeDrag(T) {
|
|
7117
|
-
|
|
7118
|
-
}, handleDragStart: Kl, handleDragEnd: Ul, ChatPanel:
|
|
7117
|
+
Dn = T;
|
|
7118
|
+
}, handleDragStart: Kl, handleDragEnd: Ul, ChatPanel: Iu, SelectHint: Nu, Trigger: Yu };
|
|
7119
7119
|
return Object.defineProperty(as, "__isScriptSetup", { enumerable: !1, value: !0 }), as;
|
|
7120
7120
|
}
|
|
7121
7121
|
})), Lf = { class: "opencode-tooltip-tag" }, Nf = { class: "opencode-tooltip-file" }, Ff = {
|
|
@@ -7968,10 +7968,10 @@ const oh = { class: "opencode-custom-loading" }, sh = { class: "opencode-loading
|
|
|
7968
7968
|
loadingText: q,
|
|
7969
7969
|
updateStatusFromTask: Z,
|
|
7970
7970
|
setStarting: Q
|
|
7971
|
-
} = th(), { selectedElements: me, removeElement: Ae, clearElements:
|
|
7971
|
+
} = th(), { selectedElements: me, removeElement: Ae, clearElements: D } = eh(), { theme: Y, sendThemeToIframe: oe } = Qf(x, l), {
|
|
7972
7972
|
sessions: X,
|
|
7973
7973
|
loadingSessionList: Oe,
|
|
7974
|
-
currentSessionId:
|
|
7974
|
+
currentSessionId: De,
|
|
7975
7975
|
iframeSrc: Ye,
|
|
7976
7976
|
iframeLoading: ye,
|
|
7977
7977
|
loadSessions: be,
|
|
@@ -7986,11 +7986,11 @@ const oh = { class: "opencode-custom-loading" }, sh = { class: "opencode-loading
|
|
|
7986
7986
|
onTaskUpdate: (O) => {
|
|
7987
7987
|
Z(O.task, O.errorType, O.errorMessage);
|
|
7988
7988
|
},
|
|
7989
|
-
onClearElements: () =>
|
|
7989
|
+
onClearElements: () => D(),
|
|
7990
7990
|
onConnected: () => Le(!0)
|
|
7991
7991
|
}), Xe = Jf({
|
|
7992
7992
|
proxyBaseUrl: M.value,
|
|
7993
|
-
currentSessionId:
|
|
7993
|
+
currentSessionId: De,
|
|
7994
7994
|
onConnected: () => {
|
|
7995
7995
|
console.log("[OpenCode] Session SSE connected");
|
|
7996
7996
|
},
|
|
@@ -8028,7 +8028,7 @@ const oh = { class: "opencode-custom-loading" }, sh = { class: "opencode-loading
|
|
|
8028
8028
|
return !1;
|
|
8029
8029
|
};
|
|
8030
8030
|
ni(f, (O) => {
|
|
8031
|
-
O.preventDefault(),
|
|
8031
|
+
O.preventDefault(), I(!n.value);
|
|
8032
8032
|
});
|
|
8033
8033
|
const w = () => {
|
|
8034
8034
|
window.__VUE_INSPECTOR__ ? E(!o.value) : $("Vue Inspector 未加载,无法使用元素选择功能");
|
|
@@ -8048,7 +8048,7 @@ const oh = { class: "opencode-custom-loading" }, sh = { class: "opencode-loading
|
|
|
8048
8048
|
};
|
|
8049
8049
|
window.addEventListener("message", O);
|
|
8050
8050
|
});
|
|
8051
|
-
const
|
|
8051
|
+
const I = async (O) => {
|
|
8052
8052
|
if (y.value === "idle" && O) {
|
|
8053
8053
|
i.value = !0;
|
|
8054
8054
|
const V = await S();
|
|
@@ -8068,9 +8068,11 @@ const oh = { class: "opencode-custom-loading" }, sh = { class: "opencode-loading
|
|
|
8068
8068
|
element: V
|
|
8069
8069
|
}), $("节点已添加到对话框", { mode: "page" });
|
|
8070
8070
|
}, A = () => {
|
|
8071
|
-
|
|
8071
|
+
D(), Le(!0), $("已清除所有选中元素");
|
|
8072
8072
|
}, E = (O) => {
|
|
8073
|
-
o.value = O
|
|
8073
|
+
o.value = O, l.value?.sendMessageToIframe("OPENCODE_SELECT_MODE_CHANGE", {
|
|
8074
|
+
selectMode: O
|
|
8075
|
+
});
|
|
8074
8076
|
const V = l.value?.isSplitMode;
|
|
8075
8077
|
O && !V && n.value && (n.value = !1), !O && !n.value && (n.value = !0);
|
|
8076
8078
|
}, z = (O) => {
|
|
@@ -8096,7 +8098,7 @@ const oh = { class: "opencode-custom-loading" }, sh = { class: "opencode-loading
|
|
|
8096
8098
|
"show-session-list-skeleton": nn.value,
|
|
8097
8099
|
"show-error": de(j),
|
|
8098
8100
|
"iframe-src": de(Ye),
|
|
8099
|
-
"current-session-id": de(
|
|
8101
|
+
"current-session-id": de(De),
|
|
8100
8102
|
sessions: de(X),
|
|
8101
8103
|
"session-states": de(it),
|
|
8102
8104
|
"session-key": "id",
|
|
@@ -8105,7 +8107,7 @@ const oh = { class: "opencode-custom-loading" }, sh = { class: "opencode-loading
|
|
|
8105
8107
|
"display-mode": de(b),
|
|
8106
8108
|
"split-mode": de(m),
|
|
8107
8109
|
"split-panel-width": R.value,
|
|
8108
|
-
"onUpdate:open":
|
|
8110
|
+
"onUpdate:open": I,
|
|
8109
8111
|
"onUpdate:selectMode": E,
|
|
8110
8112
|
"onUpdate:sessionListCollapsed": z,
|
|
8111
8113
|
"onUpdate:theme": k,
|