vite-plugin-opencode-assistant 1.1.18 → 1.1.19
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/core/opencode-web.mjs +6 -25
- package/es/endpoints/context.mjs +19 -11
- package/es/endpoints/types.d.ts +8 -2
- package/es/index.mjs +26 -6
- package/lib/client.js +1136 -1134
- package/lib/core/opencode-web.cjs +6 -25
- package/lib/endpoints/context.cjs +19 -11
- package/lib/endpoints/types.d.ts +8 -2
- package/lib/index.cjs +26 -6
- package/package.json +5 -5
package/lib/client.js
CHANGED
|
@@ -4,11 +4,11 @@ function yi(e) {
|
|
|
4
4
|
for (const n of e.split(",")) t[n] = 1;
|
|
5
5
|
return (n) => n in t;
|
|
6
6
|
}
|
|
7
|
-
var me = {},
|
|
7
|
+
var me = {}, cn = [], Ut = () => {
|
|
8
8
|
}, Lr = () => !1, bi = (e) => e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && (e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97), Si = (e) => e.startsWith("onUpdate:"), ot = Object.assign, Dr = (e, t) => {
|
|
9
9
|
const n = e.indexOf(t);
|
|
10
10
|
n > -1 && e.splice(n, 1);
|
|
11
|
-
}, Ol = Object.prototype.hasOwnProperty,
|
|
11
|
+
}, Ol = Object.prototype.hasOwnProperty, ue = (e, t) => Ol.call(e, t), X = Array.isArray, un = (e) => Un(e) === "[object Map]", wi = (e) => Un(e) === "[object Set]", No = (e) => Un(e) === "[object Date]", ce = (e) => typeof e == "function", Ee = (e) => typeof e == "string", rt = (e) => typeof e == "symbol", ve = (e) => e !== null && typeof e == "object", $r = (e) => (ve(e) || ce(e)) && ce(e.then) && ce(e.catch), Fr = Object.prototype.toString, Un = (e) => Fr.call(e), Pl = (e) => Un(e).slice(8, -1), Br = (e) => Un(e) === "[object Object]", Ei = (e) => Ee(e) && e !== "NaN" && e[0] !== "-" && "" + parseInt(e, 10) === e, In = /* @__PURE__ */ yi(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"), Ti = (e) => {
|
|
12
12
|
const t = /* @__PURE__ */ Object.create(null);
|
|
13
13
|
return ((n) => t[n] || (t[n] = e(n)));
|
|
14
14
|
}, Ml = /-\w/g, ht = Ti((e) => e.replace(Ml, (t) => t.slice(1).toUpperCase())), Il = /\B([A-Z])/g, rn = Ti((e) => e.replace(Il, "-$1").toLowerCase()), jr = Ti((e) => e.charAt(0).toUpperCase() + e.slice(1)), Di = Ti((e) => e ? `on${jr(e)}` : ""), Tt = (e, t) => !Object.is(e, t), oi = (e, ...t) => {
|
|
@@ -83,7 +83,7 @@ function qn(e, t) {
|
|
|
83
83
|
function $l(e, t) {
|
|
84
84
|
return e.findIndex((n) => qn(n, t));
|
|
85
85
|
}
|
|
86
|
-
var Ur = (e) => !!(e && e.__v_isRef === !0), xe = (e) => Ee(e) ? e : e == null ? "" : X(e) || ve(e) && (e.toString === Fr || !
|
|
86
|
+
var Ur = (e) => !!(e && e.__v_isRef === !0), xe = (e) => Ee(e) ? e : e == null ? "" : X(e) || ve(e) && (e.toString === Fr || !ce(e.toString)) ? Ur(e) ? xe(e.value) : JSON.stringify(e, qr, 2) : String(e), qr = (e, t) => Ur(t) ? qr(e, t.value) : un(t) ? { [`Map(${t.size})`]: [...t.entries()].reduce((n, [i, o], r) => (n[$i(i, r) + " =>"] = o, n), {}) } : wi(t) ? { [`Set(${t.size})`]: [...t.values()].map((n) => $i(n)) } : rt(t) ? $i(t) : ve(t) && !X(t) && !Br(t) ? String(t) : t, $i = (e, t = "") => {
|
|
87
87
|
var n;
|
|
88
88
|
return rt(e) ? `Symbol(${(n = e.description) != null ? n : t})` : e;
|
|
89
89
|
};
|
|
@@ -362,22 +362,22 @@ function Rt(e, t, n, i, o, r) {
|
|
|
362
362
|
};
|
|
363
363
|
if (vo(), t === "clear") s.forEach(l);
|
|
364
364
|
else {
|
|
365
|
-
const a = X(e),
|
|
365
|
+
const a = X(e), c = a && Ei(n);
|
|
366
366
|
if (a && n === "length") {
|
|
367
|
-
const
|
|
367
|
+
const u = Number(i);
|
|
368
368
|
s.forEach((f, p) => {
|
|
369
|
-
(p === "length" || p === Bn || !rt(p) && p >=
|
|
369
|
+
(p === "length" || p === Bn || !rt(p) && p >= u) && l(f);
|
|
370
370
|
});
|
|
371
371
|
} else
|
|
372
|
-
switch ((n !== void 0 || s.has(void 0)) && l(s.get(n)),
|
|
372
|
+
switch ((n !== void 0 || s.has(void 0)) && l(s.get(n)), c && l(s.get(Bn)), t) {
|
|
373
373
|
case "add":
|
|
374
|
-
a ?
|
|
374
|
+
a ? c && l(s.get("length")) : (l(s.get(nn)), un(e) && l(s.get(eo)));
|
|
375
375
|
break;
|
|
376
376
|
case "delete":
|
|
377
|
-
a || (l(s.get(nn)),
|
|
377
|
+
a || (l(s.get(nn)), un(e) && l(s.get(eo)));
|
|
378
378
|
break;
|
|
379
379
|
case "set":
|
|
380
|
-
|
|
380
|
+
un(e) && l(s.get(nn));
|
|
381
381
|
break;
|
|
382
382
|
}
|
|
383
383
|
}
|
|
@@ -495,22 +495,22 @@ function Mt(e, t, n, i, o, r) {
|
|
|
495
495
|
const f = a.apply(e, r);
|
|
496
496
|
return l ? vt(f) : f;
|
|
497
497
|
}
|
|
498
|
-
let
|
|
499
|
-
s !== e && (l ?
|
|
498
|
+
let c = n;
|
|
499
|
+
s !== e && (l ? c = function(f, p) {
|
|
500
500
|
return n.call(this, wt(e, f), p, e);
|
|
501
|
-
} : n.length > 2 && (
|
|
501
|
+
} : n.length > 2 && (c = function(f, p) {
|
|
502
502
|
return n.call(this, f, p, e);
|
|
503
503
|
}));
|
|
504
|
-
const
|
|
505
|
-
return l && o ? o(
|
|
504
|
+
const u = a.call(s, c, i);
|
|
505
|
+
return l && o ? o(u) : u;
|
|
506
506
|
}
|
|
507
507
|
function $o(e, t, n, i) {
|
|
508
508
|
const o = xi(e), r = o !== e && !/* @__PURE__ */ it(e);
|
|
509
509
|
let s = n, l = !1;
|
|
510
|
-
o !== e && (r ? (l = i.length === 0, s = function(
|
|
511
|
-
return l && (l = !1,
|
|
512
|
-
}) : n.length > 3 && (s = function(
|
|
513
|
-
return n.call(this,
|
|
510
|
+
o !== e && (r ? (l = i.length === 0, s = function(c, u, f) {
|
|
511
|
+
return l && (l = !1, c = wt(e, c)), n.call(this, c, wt(e, u), f, e);
|
|
512
|
+
}) : n.length > 3 && (s = function(c, u, f) {
|
|
513
|
+
return n.call(this, c, u, f, e);
|
|
514
514
|
}));
|
|
515
515
|
const a = o[t](s, ...i);
|
|
516
516
|
return l ? wt(e, a) : a;
|
|
@@ -569,11 +569,11 @@ var ns = class {
|
|
|
569
569
|
const a = /* @__PURE__ */ $t(o);
|
|
570
570
|
if (!/* @__PURE__ */ it(n) && !/* @__PURE__ */ $t(n) && (o = /* @__PURE__ */ oe(o), n = /* @__PURE__ */ oe(n)), !r && /* @__PURE__ */ ke(o) && !/* @__PURE__ */ ke(n)) return a || (o.value = n), !0;
|
|
571
571
|
}
|
|
572
|
-
const s = r ? Number(t) < e.length :
|
|
572
|
+
const s = r ? Number(t) < e.length : ue(e, t), l = Reflect.set(e, t, n, /* @__PURE__ */ ke(e) ? e : i);
|
|
573
573
|
return e === /* @__PURE__ */ oe(i) && l && (s ? Tt(n, o) && Rt(e, "set", t, n, o) : Rt(e, "add", t, n)), l;
|
|
574
574
|
}
|
|
575
575
|
deleteProperty(e, t) {
|
|
576
|
-
const n =
|
|
576
|
+
const n = ue(e, t), i = e[t], o = Reflect.deleteProperty(e, t);
|
|
577
577
|
return o && n && Rt(e, "delete", t, void 0, i), o;
|
|
578
578
|
}
|
|
579
579
|
has(e, t) {
|
|
@@ -596,14 +596,14 @@ var ns = class {
|
|
|
596
596
|
}, Yl = /* @__PURE__ */ new is(), Xl = /* @__PURE__ */ new Gl(), Jl = /* @__PURE__ */ new is(!0), to = (e) => e, Xn = (e) => Reflect.getPrototypeOf(e);
|
|
597
597
|
function Zl(e, t, n) {
|
|
598
598
|
return function(...i) {
|
|
599
|
-
const o = this.__v_raw, r = /* @__PURE__ */ oe(o), s =
|
|
600
|
-
return !t && Be(r, "iterate", a ? eo : nn), ot(Object.create(
|
|
601
|
-
const { value: f, done: p } =
|
|
599
|
+
const o = this.__v_raw, r = /* @__PURE__ */ oe(o), s = un(r), l = e === "entries" || e === Symbol.iterator && s, a = e === "keys" && s, c = o[e](...i), u = n ? to : t ? pn : vt;
|
|
600
|
+
return !t && Be(r, "iterate", a ? eo : nn), ot(Object.create(c), { next() {
|
|
601
|
+
const { value: f, done: p } = c.next();
|
|
602
602
|
return p ? {
|
|
603
603
|
value: f,
|
|
604
604
|
done: p
|
|
605
605
|
} : {
|
|
606
|
-
value: l ? [
|
|
606
|
+
value: l ? [u(f[0]), u(f[1])] : u(f),
|
|
607
607
|
done: p
|
|
608
608
|
};
|
|
609
609
|
} });
|
|
@@ -634,7 +634,7 @@ function Ql(e, t) {
|
|
|
634
634
|
},
|
|
635
635
|
forEach(i, o) {
|
|
636
636
|
const r = this, s = r.__v_raw, l = /* @__PURE__ */ oe(s), a = t ? to : e ? pn : vt;
|
|
637
|
-
return !e && Be(l, "iterate", nn), s.forEach((
|
|
637
|
+
return !e && Be(l, "iterate", nn), s.forEach((c, u) => i.call(o, a(c), a(u), r));
|
|
638
638
|
}
|
|
639
639
|
};
|
|
640
640
|
return ot(n, e ? {
|
|
@@ -652,15 +652,15 @@ function Ql(e, t) {
|
|
|
652
652
|
const r = /* @__PURE__ */ oe(this), { has: s, get: l } = Xn(r);
|
|
653
653
|
let a = s.call(r, i);
|
|
654
654
|
a || (i = /* @__PURE__ */ oe(i), a = s.call(r, i));
|
|
655
|
-
const
|
|
656
|
-
return r.set(i, o), a ? Tt(o,
|
|
655
|
+
const c = l.call(r, i);
|
|
656
|
+
return r.set(i, o), a ? Tt(o, c) && Rt(r, "set", i, o, c) : Rt(r, "add", i, o), this;
|
|
657
657
|
},
|
|
658
658
|
delete(i) {
|
|
659
659
|
const o = /* @__PURE__ */ oe(this), { has: r, get: s } = Xn(o);
|
|
660
660
|
let l = r.call(o, i);
|
|
661
661
|
l || (i = /* @__PURE__ */ oe(i), l = r.call(o, i));
|
|
662
|
-
const a = s ? s.call(o, i) : void 0,
|
|
663
|
-
return l && Rt(o, "delete", i, void 0, a),
|
|
662
|
+
const a = s ? s.call(o, i) : void 0, c = o.delete(i);
|
|
663
|
+
return l && Rt(o, "delete", i, void 0, a), c;
|
|
664
664
|
},
|
|
665
665
|
clear() {
|
|
666
666
|
const i = /* @__PURE__ */ oe(this), o = i.size !== 0, r = void 0, s = i.clear();
|
|
@@ -677,7 +677,7 @@ function Ql(e, t) {
|
|
|
677
677
|
}
|
|
678
678
|
function yo(e, t) {
|
|
679
679
|
const n = Ql(e, t);
|
|
680
|
-
return (i, o, r) => o === "__v_isReactive" ? !e : o === "__v_isReadonly" ? e : o === "__v_raw" ? i : Reflect.get(
|
|
680
|
+
return (i, o, r) => o === "__v_isReactive" ? !e : o === "__v_isReadonly" ? e : o === "__v_raw" ? i : Reflect.get(ue(n, o) && o in i ? n : i, o, r);
|
|
681
681
|
}
|
|
682
682
|
var ea = { get: /* @__PURE__ */ yo(!1, !1) }, ta = { get: /* @__PURE__ */ yo(!1, !0) }, na = { get: /* @__PURE__ */ yo(!0, !1) }, os = /* @__PURE__ */ new WeakMap(), rs = /* @__PURE__ */ new WeakMap(), ss = /* @__PURE__ */ new WeakMap(), ia = /* @__PURE__ */ new WeakMap();
|
|
683
683
|
function oa(e) {
|
|
@@ -737,7 +737,7 @@ function oe(e) {
|
|
|
737
737
|
return t ? /* @__PURE__ */ oe(t) : e;
|
|
738
738
|
}
|
|
739
739
|
function sa(e) {
|
|
740
|
-
return !
|
|
740
|
+
return !ue(e, "__v_skip") && Object.isExtensible(e) && Wr(e, "__v_skip", !0), e;
|
|
741
741
|
}
|
|
742
742
|
var vt = (e) => ve(e) ? /* @__PURE__ */ ls(e) : e, pn = (e) => ve(e) ? /* @__PURE__ */ no(e) : e;
|
|
743
743
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -766,7 +766,7 @@ var aa = class {
|
|
|
766
766
|
function ge(e) {
|
|
767
767
|
return /* @__PURE__ */ ke(e) ? e.value : e;
|
|
768
768
|
}
|
|
769
|
-
var
|
|
769
|
+
var ca = {
|
|
770
770
|
get: (e, t, n) => t === "__v_raw" ? e : ge(Reflect.get(e, t, n)),
|
|
771
771
|
set: (e, t, n, i) => {
|
|
772
772
|
const o = e[t];
|
|
@@ -774,9 +774,9 @@ var ua = {
|
|
|
774
774
|
}
|
|
775
775
|
};
|
|
776
776
|
function as(e) {
|
|
777
|
-
return /* @__PURE__ */ on(e) ? e : new Proxy(e,
|
|
777
|
+
return /* @__PURE__ */ on(e) ? e : new Proxy(e, ca);
|
|
778
778
|
}
|
|
779
|
-
var
|
|
779
|
+
var ua = class {
|
|
780
780
|
constructor(e, t, n) {
|
|
781
781
|
this._object = e, this._defaultValue = n, this.__v_isRef = !0, this._value = void 0, this._key = rt(t) ? t : String(t), this._raw = /* @__PURE__ */ oe(e);
|
|
782
782
|
let i = !0, o = e;
|
|
@@ -812,10 +812,10 @@ var ca = class {
|
|
|
812
812
|
};
|
|
813
813
|
// @__NO_SIDE_EFFECTS__
|
|
814
814
|
function le(e, t, n) {
|
|
815
|
-
return /* @__PURE__ */ ke(e) ? e :
|
|
815
|
+
return /* @__PURE__ */ ke(e) ? e : ce(e) ? new da(e) : ve(e) && arguments.length > 1 ? fa(e, t, n) : /* @__PURE__ */ L(e);
|
|
816
816
|
}
|
|
817
817
|
function fa(e, t, n) {
|
|
818
|
-
return new
|
|
818
|
+
return new ua(e, t, n);
|
|
819
819
|
}
|
|
820
820
|
var ha = class {
|
|
821
821
|
constructor(e, t, n) {
|
|
@@ -836,7 +836,7 @@ var ha = class {
|
|
|
836
836
|
// @__NO_SIDE_EFFECTS__
|
|
837
837
|
function pa(e, t, n = !1) {
|
|
838
838
|
let i, o;
|
|
839
|
-
return
|
|
839
|
+
return ce(e) ? i = e : (i = e.get, o = e.set), new ha(i, o, n);
|
|
840
840
|
}
|
|
841
841
|
var Zn = {}, li = /* @__PURE__ */ new WeakMap(), Zt = void 0;
|
|
842
842
|
function va(e, t = !1, n = Zt) {
|
|
@@ -846,13 +846,13 @@ function va(e, t = !1, n = Zt) {
|
|
|
846
846
|
}
|
|
847
847
|
}
|
|
848
848
|
function ga(e, t, n = me) {
|
|
849
|
-
const { immediate: i, deep: o, once: r, scheduler: s, augmentJob: l, call: a } = n,
|
|
850
|
-
let
|
|
851
|
-
if (/* @__PURE__ */ ke(e) ? (f = () => e.value,
|
|
852
|
-
if (/* @__PURE__ */ ke(
|
|
853
|
-
if (/* @__PURE__ */ on(
|
|
854
|
-
if (
|
|
855
|
-
})) :
|
|
849
|
+
const { immediate: i, deep: o, once: r, scheduler: s, augmentJob: l, call: a } = n, c = (b) => o ? b : /* @__PURE__ */ it(b) || o === !1 || o === 0 ? kt(b, 1) : kt(b);
|
|
850
|
+
let u, f, p, v, y = !1, g = !1;
|
|
851
|
+
if (/* @__PURE__ */ ke(e) ? (f = () => e.value, y = /* @__PURE__ */ it(e)) : /* @__PURE__ */ on(e) ? (f = () => c(e), y = !0) : X(e) ? (g = !0, y = e.some((b) => /* @__PURE__ */ on(b) || /* @__PURE__ */ it(b)), f = () => e.map((b) => {
|
|
852
|
+
if (/* @__PURE__ */ ke(b)) return b.value;
|
|
853
|
+
if (/* @__PURE__ */ on(b)) return c(b);
|
|
854
|
+
if (ce(b)) return a ? a(b, 2) : b();
|
|
855
|
+
})) : ce(e) ? t ? f = a ? () => a(e, 2) : e : f = () => {
|
|
856
856
|
if (p) {
|
|
857
857
|
Lt();
|
|
858
858
|
try {
|
|
@@ -861,40 +861,40 @@ function ga(e, t, n = me) {
|
|
|
861
861
|
Dt();
|
|
862
862
|
}
|
|
863
863
|
}
|
|
864
|
-
const
|
|
865
|
-
Zt =
|
|
864
|
+
const b = Zt;
|
|
865
|
+
Zt = u;
|
|
866
866
|
try {
|
|
867
867
|
return a ? a(e, 3, [v]) : e(v);
|
|
868
868
|
} finally {
|
|
869
|
-
Zt =
|
|
869
|
+
Zt = b;
|
|
870
870
|
}
|
|
871
871
|
} : f = Ut, t && o) {
|
|
872
|
-
const
|
|
873
|
-
f = () => kt(
|
|
872
|
+
const b = f, z = o === !0 ? 1 / 0 : o;
|
|
873
|
+
f = () => kt(b(), z);
|
|
874
874
|
}
|
|
875
|
-
const
|
|
876
|
-
|
|
875
|
+
const T = jl(), S = () => {
|
|
876
|
+
u.stop(), T && T.active && Dr(T.effects, u);
|
|
877
877
|
};
|
|
878
878
|
if (r && t) {
|
|
879
|
-
const
|
|
879
|
+
const b = t;
|
|
880
880
|
t = (...z) => {
|
|
881
|
-
const G =
|
|
882
|
-
return
|
|
881
|
+
const G = b(...z);
|
|
882
|
+
return S(), G;
|
|
883
883
|
};
|
|
884
884
|
}
|
|
885
|
-
let P =
|
|
886
|
-
const V = (
|
|
887
|
-
if (!(!(
|
|
885
|
+
let P = g ? new Array(e.length).fill(Zn) : Zn;
|
|
886
|
+
const V = (b) => {
|
|
887
|
+
if (!(!(u.flags & 1) || !u.dirty && !b))
|
|
888
888
|
if (t) {
|
|
889
|
-
const z =
|
|
890
|
-
if (
|
|
889
|
+
const z = u.run();
|
|
890
|
+
if (b || o || y || (g ? z.some((G, A) => Tt(G, P[A])) : Tt(z, P))) {
|
|
891
891
|
p && p();
|
|
892
892
|
const G = Zt;
|
|
893
|
-
Zt =
|
|
893
|
+
Zt = u;
|
|
894
894
|
try {
|
|
895
895
|
const A = [
|
|
896
896
|
z,
|
|
897
|
-
P === Zn ? void 0 :
|
|
897
|
+
P === Zn ? void 0 : g && P[0] === Zn ? [] : P,
|
|
898
898
|
v
|
|
899
899
|
];
|
|
900
900
|
P = z, a ? a(t, 3, A) : t(...A);
|
|
@@ -902,22 +902,22 @@ function ga(e, t, n = me) {
|
|
|
902
902
|
Zt = G;
|
|
903
903
|
}
|
|
904
904
|
}
|
|
905
|
-
} else
|
|
905
|
+
} else u.run();
|
|
906
906
|
};
|
|
907
|
-
return l && l(V),
|
|
908
|
-
const
|
|
909
|
-
if (
|
|
910
|
-
if (a) a(
|
|
911
|
-
else for (const z of
|
|
912
|
-
li.delete(
|
|
907
|
+
return l && l(V), u = new Kr(f), u.scheduler = s ? () => s(V, !1) : V, v = (b) => va(b, !1, u), p = u.onStop = () => {
|
|
908
|
+
const b = li.get(u);
|
|
909
|
+
if (b) {
|
|
910
|
+
if (a) a(b, 4);
|
|
911
|
+
else for (const z of b) z();
|
|
912
|
+
li.delete(u);
|
|
913
913
|
}
|
|
914
|
-
}, t ? i ? V(!0) : P =
|
|
914
|
+
}, t ? i ? V(!0) : P = u.run() : s ? s(V.bind(null, !0), !0) : u.run(), S.pause = u.pause.bind(u), S.resume = u.resume.bind(u), S.stop = S, S;
|
|
915
915
|
}
|
|
916
916
|
function kt(e, t = 1 / 0, n) {
|
|
917
917
|
if (t <= 0 || !ve(e) || e.__v_skip || (n = n || /* @__PURE__ */ new Map(), (n.get(e) || 0) >= t)) return e;
|
|
918
918
|
if (n.set(e, t), t--, /* @__PURE__ */ ke(e)) kt(e.value, t, n);
|
|
919
919
|
else if (X(e)) for (let i = 0; i < e.length; i++) kt(e[i], t, n);
|
|
920
|
-
else if (wi(e) ||
|
|
920
|
+
else if (wi(e) || un(e)) e.forEach((i) => {
|
|
921
921
|
kt(i, t, n);
|
|
922
922
|
});
|
|
923
923
|
else if (Br(e)) {
|
|
@@ -934,7 +934,7 @@ function Kn(e, t, n, i) {
|
|
|
934
934
|
}
|
|
935
935
|
}
|
|
936
936
|
function Ct(e, t, n, i) {
|
|
937
|
-
if (
|
|
937
|
+
if (ce(e)) {
|
|
938
938
|
const o = Kn(e, t, n, i);
|
|
939
939
|
return o && $r(o) && o.catch((r) => {
|
|
940
940
|
Pi(r, t, n);
|
|
@@ -950,11 +950,11 @@ function Pi(e, t, n, i = !0) {
|
|
|
950
950
|
const o = t ? t.vnode : null, { errorHandler: r, throwUnhandledErrorInProduction: s } = t && t.appContext.config || me;
|
|
951
951
|
if (t) {
|
|
952
952
|
let l = t.parent;
|
|
953
|
-
const a = t.proxy,
|
|
953
|
+
const a = t.proxy, c = `https://vuejs.org/error-reference/#runtime-${n}`;
|
|
954
954
|
for (; l; ) {
|
|
955
|
-
const
|
|
956
|
-
if (
|
|
957
|
-
for (let f = 0; f <
|
|
955
|
+
const u = l.ec;
|
|
956
|
+
if (u) {
|
|
957
|
+
for (let f = 0; f < u.length; f++) if (u[f](e, a, c) === !1) return;
|
|
958
958
|
}
|
|
959
959
|
l = l.parent;
|
|
960
960
|
}
|
|
@@ -962,7 +962,7 @@ function Pi(e, t, n, i = !0) {
|
|
|
962
962
|
Lt(), Kn(r, null, 10, [
|
|
963
963
|
e,
|
|
964
964
|
a,
|
|
965
|
-
|
|
965
|
+
c
|
|
966
966
|
]), Dt();
|
|
967
967
|
return;
|
|
968
968
|
}
|
|
@@ -973,9 +973,9 @@ function ma(e, t, n, i = !0, o = !1) {
|
|
|
973
973
|
if (o) throw e;
|
|
974
974
|
console.error(e);
|
|
975
975
|
}
|
|
976
|
-
var ze = [], bt = -1, dn = [], zt = null, an = 0,
|
|
976
|
+
var ze = [], bt = -1, dn = [], zt = null, an = 0, cs = /* @__PURE__ */ Promise.resolve(), ai = null;
|
|
977
977
|
function Mi(e) {
|
|
978
|
-
const t = ai ||
|
|
978
|
+
const t = ai || cs;
|
|
979
979
|
return e ? t.then(this ? e.bind(this) : e) : t;
|
|
980
980
|
}
|
|
981
981
|
function _a(e) {
|
|
@@ -989,14 +989,14 @@ function _a(e) {
|
|
|
989
989
|
function So(e) {
|
|
990
990
|
if (!(e.flags & 1)) {
|
|
991
991
|
const t = jn(e), n = ze[ze.length - 1];
|
|
992
|
-
!n || !(e.flags & 2) && t >= jn(n) ? ze.push(e) : ze.splice(_a(t), 0, e), e.flags |= 1,
|
|
992
|
+
!n || !(e.flags & 2) && t >= jn(n) ? ze.push(e) : ze.splice(_a(t), 0, e), e.flags |= 1, us();
|
|
993
993
|
}
|
|
994
994
|
}
|
|
995
|
-
function
|
|
996
|
-
ai || (ai =
|
|
995
|
+
function us() {
|
|
996
|
+
ai || (ai = cs.then(hs));
|
|
997
997
|
}
|
|
998
998
|
function ds(e) {
|
|
999
|
-
X(e) ? dn.push(...e) : zt && e.id === -1 ? zt.splice(an + 1, 0, e) : e.flags & 1 || (dn.push(e), e.flags |= 1),
|
|
999
|
+
X(e) ? dn.push(...e) : zt && e.id === -1 ? zt.splice(an + 1, 0, e) : e.flags & 1 || (dn.push(e), e.flags |= 1), us();
|
|
1000
1000
|
}
|
|
1001
1001
|
function Fo(e, t, n = bt + 1) {
|
|
1002
1002
|
for (; n < ze.length; n++) {
|
|
@@ -1037,7 +1037,7 @@ function hs(e) {
|
|
|
1037
1037
|
}
|
|
1038
1038
|
}
|
|
1039
1039
|
var je = null, ps = null;
|
|
1040
|
-
function
|
|
1040
|
+
function ci(e) {
|
|
1041
1041
|
const t = je;
|
|
1042
1042
|
return je = e, ps = e && e.type.__scopeId || null, t;
|
|
1043
1043
|
}
|
|
@@ -1045,12 +1045,12 @@ function Se(e, t = je, n) {
|
|
|
1045
1045
|
if (!t || e._n) return e;
|
|
1046
1046
|
const i = (...o) => {
|
|
1047
1047
|
i._d && qo(-1);
|
|
1048
|
-
const r =
|
|
1048
|
+
const r = ci(t);
|
|
1049
1049
|
let s;
|
|
1050
1050
|
try {
|
|
1051
1051
|
s = e(...o);
|
|
1052
1052
|
} finally {
|
|
1053
|
-
|
|
1053
|
+
ci(r), i._d && qo(1);
|
|
1054
1054
|
}
|
|
1055
1055
|
return s;
|
|
1056
1056
|
};
|
|
@@ -1061,7 +1061,7 @@ function io(e, t) {
|
|
|
1061
1061
|
const n = ki(je), i = e.dirs || (e.dirs = []);
|
|
1062
1062
|
for (let o = 0; o < t.length; o++) {
|
|
1063
1063
|
let [r, s, l, a = me] = t[o];
|
|
1064
|
-
r && (
|
|
1064
|
+
r && (ce(r) && (r = {
|
|
1065
1065
|
mounted: r,
|
|
1066
1066
|
updated: r
|
|
1067
1067
|
}), r.deep && kt(s), i.push({
|
|
@@ -1101,7 +1101,7 @@ function vs(e, t, n = !1) {
|
|
|
1101
1101
|
if (i || hn) {
|
|
1102
1102
|
let o = hn ? hn._context.provides : i ? i.parent == null || i.ce ? i.vnode.appContext && i.vnode.appContext.provides : i.parent.provides : void 0;
|
|
1103
1103
|
if (o && e in o) return o[e];
|
|
1104
|
-
if (arguments.length > 1) return n &&
|
|
1104
|
+
if (arguments.length > 1) return n && ce(t) ? t.call(i && i.proxy) : t;
|
|
1105
1105
|
}
|
|
1106
1106
|
}
|
|
1107
1107
|
var ba = /* @__PURE__ */ Symbol.for("v-scx"), Sa = () => {
|
|
@@ -1115,29 +1115,29 @@ function Ie(e, t, n) {
|
|
|
1115
1115
|
}
|
|
1116
1116
|
function wa(e, t, n = me) {
|
|
1117
1117
|
const { immediate: i, deep: o, flush: r, once: s } = n, l = ot({}, n), a = t && i || !t && r !== "post";
|
|
1118
|
-
let
|
|
1118
|
+
let c;
|
|
1119
1119
|
if (Hn) {
|
|
1120
1120
|
if (r === "sync") {
|
|
1121
1121
|
const v = Sa();
|
|
1122
|
-
|
|
1122
|
+
c = v.__watcherHandles || (v.__watcherHandles = []);
|
|
1123
1123
|
} else if (!a) {
|
|
1124
1124
|
const v = () => {
|
|
1125
1125
|
};
|
|
1126
1126
|
return v.stop = Ut, v.resume = Ut, v.pause = Ut, v;
|
|
1127
1127
|
}
|
|
1128
1128
|
}
|
|
1129
|
-
const
|
|
1130
|
-
l.call = (v,
|
|
1129
|
+
const u = tt;
|
|
1130
|
+
l.call = (v, y, g) => Ct(v, u, y, g);
|
|
1131
1131
|
let f = !1;
|
|
1132
1132
|
r === "post" ? l.scheduler = (v) => {
|
|
1133
|
-
He(v,
|
|
1134
|
-
} : r !== "sync" && (f = !0, l.scheduler = (v,
|
|
1135
|
-
|
|
1133
|
+
He(v, u && u.suspense);
|
|
1134
|
+
} : r !== "sync" && (f = !0, l.scheduler = (v, y) => {
|
|
1135
|
+
y ? v() : So(v);
|
|
1136
1136
|
}), l.augmentJob = (v) => {
|
|
1137
|
-
t && (v.flags |= 4), f && (v.flags |= 2,
|
|
1137
|
+
t && (v.flags |= 4), f && (v.flags |= 2, u && (v.id = u.uid, v.i = u));
|
|
1138
1138
|
};
|
|
1139
1139
|
const p = ga(e, t, l);
|
|
1140
|
-
return Hn && (
|
|
1140
|
+
return Hn && (c ? c.push(p) : a && p()), p;
|
|
1141
1141
|
}
|
|
1142
1142
|
var Ht = /* @__PURE__ */ new WeakMap(), gs = /* @__PURE__ */ Symbol("_vte"), Ea = (e) => e.__isTeleport, en = (e) => e && (e.disabled || e.disabled === ""), Ta = (e) => e && (e.defer || e.defer === ""), Bo = (e) => typeof SVGElement < "u" && e instanceof SVGElement, jo = (e) => typeof MathMLElement == "function" && e instanceof MathMLElement, oo = (e, t) => {
|
|
1143
1143
|
const n = e && e.to;
|
|
@@ -1145,20 +1145,20 @@ var Ht = /* @__PURE__ */ new WeakMap(), gs = /* @__PURE__ */ Symbol("_vte"), Ea
|
|
|
1145
1145
|
}, Ca = {
|
|
1146
1146
|
name: "Teleport",
|
|
1147
1147
|
__isTeleport: !0,
|
|
1148
|
-
process(e, t, n, i, o, r, s, l, a,
|
|
1149
|
-
const { mc:
|
|
1148
|
+
process(e, t, n, i, o, r, s, l, a, c) {
|
|
1149
|
+
const { mc: u, pc: f, pbc: p, o: { insert: v, querySelector: y, createText: g, createComment: T, parentNode: S } } = c, P = en(t.props);
|
|
1150
1150
|
let { dynamicChildren: V } = t;
|
|
1151
|
-
const
|
|
1152
|
-
A.shapeFlag & 16 &&
|
|
1151
|
+
const b = (A, W, F) => {
|
|
1152
|
+
A.shapeFlag & 16 && u(A.children, W, F, o, r, s, l, a);
|
|
1153
1153
|
}, z = (A = t) => {
|
|
1154
|
-
const W = en(A.props), F = A.target = oo(A.props,
|
|
1155
|
-
F && (s !== "svg" && Bo(F) ? s = "svg" : s !== "mathml" && jo(F) && (s = "mathml"), o && o.isCE && (o.ce._teleportTargets || (o.ce._teleportTargets = /* @__PURE__ */ new Set())).add(F), W || (
|
|
1154
|
+
const W = en(A.props), F = A.target = oo(A.props, y), Q = ro(F, A, g, v);
|
|
1155
|
+
F && (s !== "svg" && Bo(F) ? s = "svg" : s !== "mathml" && jo(F) && (s = "mathml"), o && o.isCE && (o.ce._teleportTargets || (o.ce._teleportTargets = /* @__PURE__ */ new Set())).add(F), W || (b(A, F, Q), Pn(A, !1)));
|
|
1156
1156
|
}, G = (A) => {
|
|
1157
1157
|
const W = () => {
|
|
1158
1158
|
if (Ht.get(A) === W) {
|
|
1159
1159
|
if (Ht.delete(A), en(A.props)) {
|
|
1160
|
-
const F =
|
|
1161
|
-
|
|
1160
|
+
const F = S(A.el) || n;
|
|
1161
|
+
b(A, F, A.anchor), Pn(A, !0);
|
|
1162
1162
|
}
|
|
1163
1163
|
z(A);
|
|
1164
1164
|
}
|
|
@@ -1166,12 +1166,12 @@ var Ht = /* @__PURE__ */ new WeakMap(), gs = /* @__PURE__ */ Symbol("_vte"), Ea
|
|
|
1166
1166
|
Ht.set(A, W), He(W, r);
|
|
1167
1167
|
};
|
|
1168
1168
|
if (e == null) {
|
|
1169
|
-
const A = t.el =
|
|
1169
|
+
const A = t.el = g(""), W = t.anchor = g("");
|
|
1170
1170
|
if (v(A, n, i), v(W, n, i), Ta(t.props) || r && r.pendingBranch) {
|
|
1171
1171
|
G(t);
|
|
1172
1172
|
return;
|
|
1173
1173
|
}
|
|
1174
|
-
P && (
|
|
1174
|
+
P && (b(t, n, W), Pn(t, !0)), z();
|
|
1175
1175
|
} else {
|
|
1176
1176
|
t.el = e.el;
|
|
1177
1177
|
const A = t.anchor = e.anchor, W = Ht.get(e);
|
|
@@ -1182,19 +1182,19 @@ var Ht = /* @__PURE__ */ new WeakMap(), gs = /* @__PURE__ */ Symbol("_vte"), Ea
|
|
|
1182
1182
|
t.targetStart = e.targetStart;
|
|
1183
1183
|
const F = t.target = e.target, Q = t.targetAnchor = e.targetAnchor, J = en(e.props), We = J ? n : F, N = J ? A : Q;
|
|
1184
1184
|
if (s === "svg" || Bo(F) ? s = "svg" : (s === "mathml" || jo(F)) && (s = "mathml"), V ? (p(e.dynamicChildren, V, We, o, r, s, l), Co(e, t, !0)) : a || f(e, t, We, N, o, r, s, l, !1), P)
|
|
1185
|
-
J ? t.props && e.props && t.props.to !== e.props.to && (t.props.to = e.props.to) : Qn(t, n, A,
|
|
1185
|
+
J ? t.props && e.props && t.props.to !== e.props.to && (t.props.to = e.props.to) : Qn(t, n, A, c, 1);
|
|
1186
1186
|
else if ((t.props && t.props.to) !== (e.props && e.props.to)) {
|
|
1187
|
-
const U = oo(t.props,
|
|
1188
|
-
U && (t.target = U, Qn(t, U, null,
|
|
1189
|
-
} else J && Qn(t, F, Q,
|
|
1187
|
+
const U = oo(t.props, y);
|
|
1188
|
+
U && (t.target = U, Qn(t, U, null, c, 0));
|
|
1189
|
+
} else J && Qn(t, F, Q, c, 1);
|
|
1190
1190
|
Pn(t, P);
|
|
1191
1191
|
}
|
|
1192
1192
|
},
|
|
1193
1193
|
remove(e, t, n, { um: i, o: { remove: o } }, r) {
|
|
1194
|
-
const { shapeFlag: s, children: l, anchor: a, targetStart:
|
|
1195
|
-
if (
|
|
1196
|
-
const
|
|
1197
|
-
i(
|
|
1194
|
+
const { shapeFlag: s, children: l, anchor: a, targetStart: c, targetAnchor: u, target: f, props: p } = e, v = en(p), y = r || !v, g = Ht.get(e);
|
|
1195
|
+
if (g && (g.flags |= 8, Ht.delete(e)), f && (o(c), o(u)), r && o(a), !g && (v || f) && s & 16) for (let T = 0; T < l.length; T++) {
|
|
1196
|
+
const S = l[T];
|
|
1197
|
+
i(S, t, n, y, !!S.dynamicChildren);
|
|
1198
1198
|
}
|
|
1199
1199
|
},
|
|
1200
1200
|
move: Qn,
|
|
@@ -1202,33 +1202,33 @@ var Ht = /* @__PURE__ */ new WeakMap(), gs = /* @__PURE__ */ Symbol("_vte"), Ea
|
|
|
1202
1202
|
};
|
|
1203
1203
|
function Qn(e, t, n, { o: { insert: i }, m: o }, r = 2) {
|
|
1204
1204
|
r === 0 && i(e.targetAnchor, t, n);
|
|
1205
|
-
const { el: s, anchor: l, shapeFlag: a, children:
|
|
1206
|
-
if (f && i(s, t, n), !Ht.has(e) && (!f || en(
|
|
1207
|
-
for (let p = 0; p <
|
|
1205
|
+
const { el: s, anchor: l, shapeFlag: a, children: c, props: u } = e, f = r === 2;
|
|
1206
|
+
if (f && i(s, t, n), !Ht.has(e) && (!f || en(u)) && a & 16)
|
|
1207
|
+
for (let p = 0; p < c.length; p++) o(c[p], t, n, 2);
|
|
1208
1208
|
f && i(l, t, n);
|
|
1209
1209
|
}
|
|
1210
|
-
function xa(e, t, n, i, o, r, { o: { nextSibling: s, parentNode: l, querySelector: a, insert:
|
|
1211
|
-
function p(
|
|
1212
|
-
let P =
|
|
1210
|
+
function xa(e, t, n, i, o, r, { o: { nextSibling: s, parentNode: l, querySelector: a, insert: c, createText: u } }, f) {
|
|
1211
|
+
function p(T, S) {
|
|
1212
|
+
let P = S;
|
|
1213
1213
|
for (; P; ) {
|
|
1214
1214
|
if (P && P.nodeType === 8) {
|
|
1215
1215
|
if (P.data === "teleport start anchor") t.targetStart = P;
|
|
1216
1216
|
else if (P.data === "teleport anchor") {
|
|
1217
|
-
t.targetAnchor = P,
|
|
1217
|
+
t.targetAnchor = P, T._lpa = t.targetAnchor && s(t.targetAnchor);
|
|
1218
1218
|
break;
|
|
1219
1219
|
}
|
|
1220
1220
|
}
|
|
1221
1221
|
P = s(P);
|
|
1222
1222
|
}
|
|
1223
1223
|
}
|
|
1224
|
-
function v(
|
|
1225
|
-
|
|
1224
|
+
function v(T, S) {
|
|
1225
|
+
S.anchor = f(s(T), S, l(T), n, i, o, r);
|
|
1226
1226
|
}
|
|
1227
|
-
const
|
|
1228
|
-
if (
|
|
1229
|
-
const
|
|
1230
|
-
t.shapeFlag & 16 && (
|
|
1231
|
-
} else
|
|
1227
|
+
const y = t.target = oo(t.props, a), g = en(t.props);
|
|
1228
|
+
if (y) {
|
|
1229
|
+
const T = y._lpa || y.firstChild;
|
|
1230
|
+
t.shapeFlag & 16 && (g ? (v(e, t), p(y, T), t.targetAnchor || ro(y, t, u, c, l(e) === y ? e : null)) : (t.anchor = s(e), p(y, T), t.targetAnchor || ro(y, t, u, c), f(T && s(T), t, y, n, i, o, r))), Pn(t, g);
|
|
1231
|
+
} else g && t.shapeFlag & 16 && (v(e, t), t.targetStart = e, t.targetAnchor = s(e));
|
|
1232
1232
|
return t.anchor && s(t.anchor);
|
|
1233
1233
|
}
|
|
1234
1234
|
var ms = Ca;
|
|
@@ -1251,7 +1251,7 @@ function wo(e, t) {
|
|
|
1251
1251
|
}
|
|
1252
1252
|
// @__NO_SIDE_EFFECTS__
|
|
1253
1253
|
function Ye(e, t) {
|
|
1254
|
-
return
|
|
1254
|
+
return ce(e) ? ot({ name: e.name }, t, { setup: e }) : e;
|
|
1255
1255
|
}
|
|
1256
1256
|
function Oa() {
|
|
1257
1257
|
const e = Ri();
|
|
@@ -1268,61 +1268,61 @@ function Wo(e, t) {
|
|
|
1268
1268
|
let n;
|
|
1269
1269
|
return !!((n = Object.getOwnPropertyDescriptor(e, t)) && !n.configurable);
|
|
1270
1270
|
}
|
|
1271
|
-
var
|
|
1271
|
+
var ui = /* @__PURE__ */ new WeakMap();
|
|
1272
1272
|
function kn(e, t, n, i, o = !1) {
|
|
1273
1273
|
if (X(e)) {
|
|
1274
|
-
e.forEach((
|
|
1274
|
+
e.forEach((g, T) => kn(g, t && (X(t) ? t[T] : t), n, i, o));
|
|
1275
1275
|
return;
|
|
1276
1276
|
}
|
|
1277
1277
|
if (fn(i) && !o) {
|
|
1278
1278
|
i.shapeFlag & 512 && i.type.__asyncResolved && i.component.subTree.component && kn(e, t, n, i.component.subTree);
|
|
1279
1279
|
return;
|
|
1280
1280
|
}
|
|
1281
|
-
const r = i.shapeFlag & 4 ? ki(i.component) : i.el, s = o ? null : r, { i: l, r: a } = e,
|
|
1282
|
-
if (
|
|
1283
|
-
if (Vo(t), Ee(
|
|
1284
|
-
c
|
|
1285
|
-
else if (/* @__PURE__ */ ke(
|
|
1286
|
-
const
|
|
1287
|
-
|
|
1281
|
+
const r = i.shapeFlag & 4 ? ki(i.component) : i.el, s = o ? null : r, { i: l, r: a } = e, c = t && t.r, u = l.refs === me ? l.refs = {} : l.refs, f = l.setupState, p = /* @__PURE__ */ oe(f), v = f === me ? Lr : (g) => Wo(u, g) ? !1 : ue(p, g), y = (g, T) => !(T && Wo(u, T));
|
|
1282
|
+
if (c != null && c !== a) {
|
|
1283
|
+
if (Vo(t), Ee(c))
|
|
1284
|
+
u[c] = null, v(c) && (f[c] = null);
|
|
1285
|
+
else if (/* @__PURE__ */ ke(c)) {
|
|
1286
|
+
const g = t;
|
|
1287
|
+
y(c, g.k) && (c.value = null), g.k && (u[g.k] = null);
|
|
1288
1288
|
}
|
|
1289
1289
|
}
|
|
1290
|
-
if (
|
|
1290
|
+
if (ce(a)) {
|
|
1291
1291
|
Lt();
|
|
1292
1292
|
try {
|
|
1293
|
-
Kn(a, l, 12, [s,
|
|
1293
|
+
Kn(a, l, 12, [s, u]);
|
|
1294
1294
|
} finally {
|
|
1295
1295
|
Dt();
|
|
1296
1296
|
}
|
|
1297
1297
|
} else {
|
|
1298
|
-
const
|
|
1299
|
-
if (
|
|
1300
|
-
const
|
|
1298
|
+
const g = Ee(a), T = /* @__PURE__ */ ke(a);
|
|
1299
|
+
if (g || T) {
|
|
1300
|
+
const S = () => {
|
|
1301
1301
|
if (e.f) {
|
|
1302
|
-
const P =
|
|
1302
|
+
const P = g ? v(a) ? f[a] : u[a] : y(a) || !e.k ? a.value : u[e.k];
|
|
1303
1303
|
if (o) X(P) && Dr(P, r);
|
|
1304
1304
|
else if (X(P)) P.includes(r) || P.push(r);
|
|
1305
|
-
else if (
|
|
1306
|
-
|
|
1305
|
+
else if (g)
|
|
1306
|
+
u[a] = [r], v(a) && (f[a] = u[a]);
|
|
1307
1307
|
else {
|
|
1308
1308
|
const V = [r];
|
|
1309
|
-
|
|
1309
|
+
y(a, e.k) && (a.value = V), e.k && (u[e.k] = V);
|
|
1310
1310
|
}
|
|
1311
|
-
} else
|
|
1311
|
+
} else g ? (u[a] = s, v(a) && (f[a] = s)) : T && (y(a, e.k) && (a.value = s), e.k && (u[e.k] = s));
|
|
1312
1312
|
};
|
|
1313
1313
|
if (s) {
|
|
1314
1314
|
const P = () => {
|
|
1315
|
-
|
|
1315
|
+
S(), ui.delete(e);
|
|
1316
1316
|
};
|
|
1317
|
-
P.id = -1,
|
|
1317
|
+
P.id = -1, ui.set(e, P), He(P, n);
|
|
1318
1318
|
} else
|
|
1319
|
-
Vo(e),
|
|
1319
|
+
Vo(e), S();
|
|
1320
1320
|
}
|
|
1321
1321
|
}
|
|
1322
1322
|
}
|
|
1323
1323
|
function Vo(e) {
|
|
1324
|
-
const t =
|
|
1325
|
-
t && (t.flags |= 8,
|
|
1324
|
+
const t = ui.get(e);
|
|
1325
|
+
t && (t.flags |= 8, ui.delete(e));
|
|
1326
1326
|
}
|
|
1327
1327
|
var $p = Ci().requestIdleCallback || ((e) => setTimeout(e, 1)), Fp = Ci().cancelIdleCallback || ((e) => clearTimeout(e)), fn = (e) => !!e.type.__asyncLoader, Ma = (e) => e.type.__isKeepAlive;
|
|
1328
1328
|
function Ia(e, t, n = tt, i = !1) {
|
|
@@ -1343,9 +1343,9 @@ function Wn(e, t, n, i) {
|
|
|
1343
1343
|
const r = n && n[i], s = X(e);
|
|
1344
1344
|
if (s || Ee(e)) {
|
|
1345
1345
|
const l = s && /* @__PURE__ */ on(e);
|
|
1346
|
-
let a = !1,
|
|
1347
|
-
l && (a = !/* @__PURE__ */ it(e),
|
|
1348
|
-
for (let
|
|
1346
|
+
let a = !1, c = !1;
|
|
1347
|
+
l && (a = !/* @__PURE__ */ it(e), c = /* @__PURE__ */ $t(e), e = xi(e)), o = new Array(e.length);
|
|
1348
|
+
for (let u = 0, f = e.length; u < f; u++) o[u] = t(a ? c ? pn(vt(e[u])) : vt(e[u]) : e[u], u, void 0, r && r[u]);
|
|
1349
1349
|
} else if (typeof e == "number") {
|
|
1350
1350
|
o = new Array(e);
|
|
1351
1351
|
for (let l = 0; l < e; l++) o[l] = t(l + 1, l, void 0, r && r[l]);
|
|
@@ -1353,9 +1353,9 @@ function Wn(e, t, n, i) {
|
|
|
1353
1353
|
else {
|
|
1354
1354
|
const l = Object.keys(e);
|
|
1355
1355
|
o = new Array(l.length);
|
|
1356
|
-
for (let a = 0,
|
|
1357
|
-
const
|
|
1358
|
-
o[a] = t(e[
|
|
1356
|
+
for (let a = 0, c = l.length; a < c; a++) {
|
|
1357
|
+
const u = l[a];
|
|
1358
|
+
o[a] = t(e[u], u, a, r && r[a]);
|
|
1359
1359
|
}
|
|
1360
1360
|
}
|
|
1361
1361
|
else o = [];
|
|
@@ -1374,8 +1374,8 @@ function di(e, t) {
|
|
|
1374
1374
|
}
|
|
1375
1375
|
function ne(e, t, n = {}, i, o) {
|
|
1376
1376
|
if (je.ce || je.parent && fn(je.parent) && je.parent.ce) {
|
|
1377
|
-
const
|
|
1378
|
-
return t !== "default" && (n.name = t), D(), xt(fe, null, [Pe("slot", n, i && i())],
|
|
1377
|
+
const c = Object.keys(n).length > 0;
|
|
1378
|
+
return t !== "default" && (n.name = t), D(), xt(fe, null, [Pe("slot", n, i && i())], c ? -2 : 64);
|
|
1379
1379
|
}
|
|
1380
1380
|
let r = e[t];
|
|
1381
1381
|
r && r._c && (r._d = !1), D();
|
|
@@ -1403,7 +1403,7 @@ var so = (e) => e ? Ns(e) ? ki(e) : so(e.parent) : null, Nn = /* @__PURE__ */ ot
|
|
|
1403
1403
|
}),
|
|
1404
1404
|
$nextTick: (e) => e.n || (e.n = Mi.bind(e.proxy)),
|
|
1405
1405
|
$watch: (e) => Ut
|
|
1406
|
-
}), Vi = (e, t) => e !== me && !e.__isScriptSetup &&
|
|
1406
|
+
}), Vi = (e, t) => e !== me && !e.__isScriptSetup && ue(e, t), ka = {
|
|
1407
1407
|
get({ _: e }, t) {
|
|
1408
1408
|
if (t === "__v_skip") return !0;
|
|
1409
1409
|
const { ctx: n, setupState: i, data: o, props: r, accessCache: s, type: l, appContext: a } = e;
|
|
@@ -1422,32 +1422,32 @@ var so = (e) => e ? Ns(e) ? ki(e) : so(e.parent) : null, Nn = /* @__PURE__ */ ot
|
|
|
1422
1422
|
else {
|
|
1423
1423
|
if (Vi(i, t))
|
|
1424
1424
|
return s[t] = 1, i[t];
|
|
1425
|
-
if (
|
|
1425
|
+
if (ue(r, t))
|
|
1426
1426
|
return s[t] = 3, r[t];
|
|
1427
|
-
if (n !== me &&
|
|
1427
|
+
if (n !== me && ue(n, t))
|
|
1428
1428
|
return s[t] = 4, n[t];
|
|
1429
1429
|
s[t] = 0;
|
|
1430
1430
|
}
|
|
1431
1431
|
}
|
|
1432
|
-
const
|
|
1433
|
-
let
|
|
1434
|
-
if (
|
|
1435
|
-
return t === "$attrs" && Be(e.attrs, "get", ""),
|
|
1436
|
-
if ((
|
|
1437
|
-
if (n !== me &&
|
|
1432
|
+
const c = Nn[t];
|
|
1433
|
+
let u, f;
|
|
1434
|
+
if (c)
|
|
1435
|
+
return t === "$attrs" && Be(e.attrs, "get", ""), c(e);
|
|
1436
|
+
if ((u = l.__cssModules) && (u = u[t])) return u;
|
|
1437
|
+
if (n !== me && ue(n, t))
|
|
1438
1438
|
return s[t] = 4, n[t];
|
|
1439
|
-
if (f = a.config.globalProperties,
|
|
1439
|
+
if (f = a.config.globalProperties, ue(f, t)) return f[t];
|
|
1440
1440
|
},
|
|
1441
1441
|
set({ _: e }, t, n) {
|
|
1442
1442
|
const { data: i, setupState: o, ctx: r } = e;
|
|
1443
|
-
return Vi(o, t) ? (o[t] = n, !0) :
|
|
1443
|
+
return Vi(o, t) ? (o[t] = n, !0) : ue(e.props, t) || t[0] === "$" && t.slice(1) in e ? !1 : (r[t] = n, !0);
|
|
1444
1444
|
},
|
|
1445
1445
|
has({ _: { data: e, setupState: t, accessCache: n, ctx: i, appContext: o, props: r, type: s } }, l) {
|
|
1446
1446
|
let a;
|
|
1447
|
-
return !!(n[l] || Vi(t, l) ||
|
|
1447
|
+
return !!(n[l] || Vi(t, l) || ue(r, l) || ue(i, l) || ue(Nn, l) || ue(o.config.globalProperties, l) || (a = s.__cssModules) && a[l]);
|
|
1448
1448
|
},
|
|
1449
1449
|
defineProperty(e, t, n) {
|
|
1450
|
-
return n.get != null ? e._.accessCache[t] = 0 :
|
|
1450
|
+
return n.get != null ? e._.accessCache[t] = 0 : ue(n, "value") && this.set(e, t, n.value, null), Reflect.defineProperty(e, t, n);
|
|
1451
1451
|
}
|
|
1452
1452
|
};
|
|
1453
1453
|
function ys() {
|
|
@@ -1481,60 +1481,60 @@ function bs() {
|
|
|
1481
1481
|
var La = 0;
|
|
1482
1482
|
function Da(e, t) {
|
|
1483
1483
|
return function(i, o = null) {
|
|
1484
|
-
|
|
1484
|
+
ce(i) || (i = ot({}, i)), o != null && !ve(o) && (o = null);
|
|
1485
1485
|
const r = bs(), s = /* @__PURE__ */ new WeakSet(), l = [];
|
|
1486
1486
|
let a = !1;
|
|
1487
|
-
const
|
|
1487
|
+
const c = r.app = {
|
|
1488
1488
|
_uid: La++,
|
|
1489
1489
|
_component: i,
|
|
1490
1490
|
_props: o,
|
|
1491
1491
|
_container: null,
|
|
1492
1492
|
_context: r,
|
|
1493
1493
|
_instance: null,
|
|
1494
|
-
version:
|
|
1494
|
+
version: fc,
|
|
1495
1495
|
get config() {
|
|
1496
1496
|
return r.config;
|
|
1497
1497
|
},
|
|
1498
|
-
set config(
|
|
1498
|
+
set config(u) {
|
|
1499
1499
|
},
|
|
1500
|
-
use(
|
|
1501
|
-
return s.has(
|
|
1500
|
+
use(u, ...f) {
|
|
1501
|
+
return s.has(u) || (u && ce(u.install) ? (s.add(u), u.install(c, ...f)) : ce(u) && (s.add(u), u(c, ...f))), c;
|
|
1502
1502
|
},
|
|
1503
|
-
mixin(
|
|
1504
|
-
return
|
|
1503
|
+
mixin(u) {
|
|
1504
|
+
return c;
|
|
1505
1505
|
},
|
|
1506
|
-
component(
|
|
1507
|
-
return f ? (r.components[
|
|
1506
|
+
component(u, f) {
|
|
1507
|
+
return f ? (r.components[u] = f, c) : r.components[u];
|
|
1508
1508
|
},
|
|
1509
|
-
directive(
|
|
1510
|
-
return f ? (r.directives[
|
|
1509
|
+
directive(u, f) {
|
|
1510
|
+
return f ? (r.directives[u] = f, c) : r.directives[u];
|
|
1511
1511
|
},
|
|
1512
|
-
mount(
|
|
1512
|
+
mount(u, f, p) {
|
|
1513
1513
|
if (!a) {
|
|
1514
|
-
const v =
|
|
1515
|
-
return v.appContext = r, p === !0 ? p = "svg" : p === !1 && (p = void 0), f && t ? t(v,
|
|
1514
|
+
const v = c._ceVNode || Pe(i, o);
|
|
1515
|
+
return v.appContext = r, p === !0 ? p = "svg" : p === !1 && (p = void 0), f && t ? t(v, u) : e(v, u, p), a = !0, c._container = u, u.__vue_app__ = c, ki(v.component);
|
|
1516
1516
|
}
|
|
1517
1517
|
},
|
|
1518
|
-
onUnmount(
|
|
1519
|
-
l.push(
|
|
1518
|
+
onUnmount(u) {
|
|
1519
|
+
l.push(u);
|
|
1520
1520
|
},
|
|
1521
1521
|
unmount() {
|
|
1522
|
-
a && (Ct(l,
|
|
1522
|
+
a && (Ct(l, c._instance, 16), e(null, c._container), delete c._container.__vue_app__);
|
|
1523
1523
|
},
|
|
1524
|
-
provide(
|
|
1525
|
-
return r.provides[
|
|
1524
|
+
provide(u, f) {
|
|
1525
|
+
return r.provides[u] = f, c;
|
|
1526
1526
|
},
|
|
1527
|
-
runWithContext(
|
|
1527
|
+
runWithContext(u) {
|
|
1528
1528
|
const f = hn;
|
|
1529
|
-
hn =
|
|
1529
|
+
hn = c;
|
|
1530
1530
|
try {
|
|
1531
|
-
return
|
|
1531
|
+
return u();
|
|
1532
1532
|
} finally {
|
|
1533
1533
|
hn = f;
|
|
1534
1534
|
}
|
|
1535
1535
|
}
|
|
1536
1536
|
};
|
|
1537
|
-
return
|
|
1537
|
+
return c;
|
|
1538
1538
|
};
|
|
1539
1539
|
}
|
|
1540
1540
|
var hn = null, $a = (e, t) => t === "modelValue" || t === "model-value" ? e.modelModifiers : e[`${t}Modifiers`] || e[`${ht(t)}Modifiers`] || e[`${rn(t)}Modifiers`];
|
|
@@ -1543,14 +1543,14 @@ function Fa(e, t, ...n) {
|
|
|
1543
1543
|
const i = e.vnode.props || me;
|
|
1544
1544
|
let o = n;
|
|
1545
1545
|
const r = t.startsWith("update:"), s = r && $a(i, t.slice(7));
|
|
1546
|
-
s && (s.trim && (o = n.map((
|
|
1546
|
+
s && (s.trim && (o = n.map((u) => Ee(u) ? u.trim() : u)), s.number && (o = n.map(Vr)));
|
|
1547
1547
|
let l, a = i[l = Di(t)] || i[l = Di(ht(t))];
|
|
1548
1548
|
!a && r && (a = i[l = Di(rn(t))]), a && Ct(a, e, 6, o);
|
|
1549
|
-
const
|
|
1550
|
-
if (
|
|
1549
|
+
const c = i[l + "Once"];
|
|
1550
|
+
if (c) {
|
|
1551
1551
|
if (!e.emitted) e.emitted = {};
|
|
1552
1552
|
else if (e.emitted[l]) return;
|
|
1553
|
-
e.emitted[l] = !0, Ct(
|
|
1553
|
+
e.emitted[l] = !0, Ct(c, e, 6, o);
|
|
1554
1554
|
}
|
|
1555
1555
|
}
|
|
1556
1556
|
function Ba(e, t, n = !1) {
|
|
@@ -1561,32 +1561,32 @@ function Ba(e, t, n = !1) {
|
|
|
1561
1561
|
return r ? (X(r) ? r.forEach((l) => s[l] = null) : ot(s, r), ve(e) && i.set(e, s), s) : (ve(e) && i.set(e, null), null);
|
|
1562
1562
|
}
|
|
1563
1563
|
function Ii(e, t) {
|
|
1564
|
-
return !e || !bi(t) ? !1 : (t = t.slice(2), t = t === "Once" ? t : t.replace(/Once$/, ""),
|
|
1564
|
+
return !e || !bi(t) ? !1 : (t = t.slice(2), t = t === "Once" ? t : t.replace(/Once$/, ""), ue(e, t[0].toLowerCase() + t.slice(1)) || ue(e, rn(t)) || ue(e, t));
|
|
1565
1565
|
}
|
|
1566
1566
|
function Hi(e) {
|
|
1567
|
-
const { type: t, vnode: n, proxy: i, withProxy: o, propsOptions: [r], slots: s, attrs: l, emit: a, render:
|
|
1568
|
-
let
|
|
1567
|
+
const { type: t, vnode: n, proxy: i, withProxy: o, propsOptions: [r], slots: s, attrs: l, emit: a, render: c, renderCache: u, props: f, data: p, setupState: v, ctx: y, inheritAttrs: g } = e, T = ci(e);
|
|
1568
|
+
let S, P;
|
|
1569
1569
|
try {
|
|
1570
1570
|
if (n.shapeFlag & 4) {
|
|
1571
|
-
const
|
|
1572
|
-
|
|
1571
|
+
const b = o || i, z = b;
|
|
1572
|
+
S = Et(c.call(z, b, u, f, v, p, y)), P = l;
|
|
1573
1573
|
} else {
|
|
1574
|
-
const
|
|
1575
|
-
|
|
1574
|
+
const b = t;
|
|
1575
|
+
S = Et(b.length > 1 ? b(f, {
|
|
1576
1576
|
attrs: l,
|
|
1577
1577
|
slots: s,
|
|
1578
1578
|
emit: a
|
|
1579
|
-
}) :
|
|
1579
|
+
}) : b(f, null)), P = t.props ? l : ja(l);
|
|
1580
1580
|
}
|
|
1581
|
-
} catch (
|
|
1582
|
-
Dn.length = 0, Pi(
|
|
1581
|
+
} catch (b) {
|
|
1582
|
+
Dn.length = 0, Pi(b, e, 1), S = Pe(Ft);
|
|
1583
1583
|
}
|
|
1584
|
-
let V =
|
|
1585
|
-
if (P &&
|
|
1586
|
-
const
|
|
1587
|
-
|
|
1584
|
+
let V = S;
|
|
1585
|
+
if (P && g !== !1) {
|
|
1586
|
+
const b = Object.keys(P), { shapeFlag: z } = V;
|
|
1587
|
+
b.length && z & 7 && (r && b.some(Si) && (P = Wa(P, r)), V = vn(V, P, !1, !0));
|
|
1588
1588
|
}
|
|
1589
|
-
return n.dirs && (V = vn(V, null, !1, !0), V.dirs = V.dirs ? V.dirs.concat(n.dirs) : n.dirs), n.transition && wo(V, n.transition),
|
|
1589
|
+
return n.dirs && (V = vn(V, null, !1, !0), V.dirs = V.dirs ? V.dirs.concat(n.dirs) : n.dirs), n.transition && wo(V, n.transition), S = V, ci(T), S;
|
|
1590
1590
|
}
|
|
1591
1591
|
var ja = (e) => {
|
|
1592
1592
|
let t;
|
|
@@ -1598,21 +1598,21 @@ var ja = (e) => {
|
|
|
1598
1598
|
return n;
|
|
1599
1599
|
};
|
|
1600
1600
|
function Va(e, t, n) {
|
|
1601
|
-
const { props: i, children: o, component: r } = e, { props: s, children: l, patchFlag: a } = t,
|
|
1601
|
+
const { props: i, children: o, component: r } = e, { props: s, children: l, patchFlag: a } = t, c = r.emitsOptions;
|
|
1602
1602
|
if (t.dirs || t.transition) return !0;
|
|
1603
1603
|
if (n && a >= 0) {
|
|
1604
1604
|
if (a & 1024) return !0;
|
|
1605
1605
|
if (a & 16)
|
|
1606
|
-
return i ? Ho(i, s,
|
|
1606
|
+
return i ? Ho(i, s, c) : !!s;
|
|
1607
1607
|
if (a & 8) {
|
|
1608
|
-
const
|
|
1609
|
-
for (let f = 0; f <
|
|
1610
|
-
const p =
|
|
1611
|
-
if (Ss(s, i, p) && !Ii(
|
|
1608
|
+
const u = t.dynamicProps;
|
|
1609
|
+
for (let f = 0; f < u.length; f++) {
|
|
1610
|
+
const p = u[f];
|
|
1611
|
+
if (Ss(s, i, p) && !Ii(c, p)) return !0;
|
|
1612
1612
|
}
|
|
1613
1613
|
}
|
|
1614
1614
|
} else
|
|
1615
|
-
return (o || l) && (!l || !l.$stable) ? !0 : i === s ? !1 : i ? s ? Ho(i, s,
|
|
1615
|
+
return (o || l) && (!l || !l.$stable) ? !0 : i === s ? !1 : i ? s ? Ho(i, s, c) : !0 : !!s;
|
|
1616
1616
|
return !1;
|
|
1617
1617
|
}
|
|
1618
1618
|
function Ho(e, t, n) {
|
|
@@ -1646,46 +1646,46 @@ function za(e, t, n, i = !1) {
|
|
|
1646
1646
|
}
|
|
1647
1647
|
function Ua(e, t, n, i) {
|
|
1648
1648
|
const { props: o, attrs: r, vnode: { patchFlag: s } } = e, l = /* @__PURE__ */ oe(o), [a] = e.propsOptions;
|
|
1649
|
-
let
|
|
1649
|
+
let c = !1;
|
|
1650
1650
|
if ((i || s > 0) && !(s & 16)) {
|
|
1651
1651
|
if (s & 8) {
|
|
1652
|
-
const
|
|
1653
|
-
for (let f = 0; f <
|
|
1654
|
-
let p =
|
|
1652
|
+
const u = e.vnode.dynamicProps;
|
|
1653
|
+
for (let f = 0; f < u.length; f++) {
|
|
1654
|
+
let p = u[f];
|
|
1655
1655
|
if (Ii(e.emitsOptions, p)) continue;
|
|
1656
1656
|
const v = t[p];
|
|
1657
|
-
if (a) if (
|
|
1658
|
-
v !== r[p] && (r[p] = v,
|
|
1657
|
+
if (a) if (ue(r, p))
|
|
1658
|
+
v !== r[p] && (r[p] = v, c = !0);
|
|
1659
1659
|
else {
|
|
1660
|
-
const
|
|
1661
|
-
o[
|
|
1660
|
+
const y = ht(p);
|
|
1661
|
+
o[y] = lo(a, l, y, v, e, !1);
|
|
1662
1662
|
}
|
|
1663
|
-
else v !== r[p] && (r[p] = v,
|
|
1663
|
+
else v !== r[p] && (r[p] = v, c = !0);
|
|
1664
1664
|
}
|
|
1665
1665
|
}
|
|
1666
1666
|
} else {
|
|
1667
|
-
Cs(e, t, o, r) && (
|
|
1668
|
-
let
|
|
1669
|
-
for (const f in l) (!t || !
|
|
1667
|
+
Cs(e, t, o, r) && (c = !0);
|
|
1668
|
+
let u;
|
|
1669
|
+
for (const f in l) (!t || !ue(t, f) && ((u = rn(f)) === f || !ue(t, u))) && (a ? n && (n[f] !== void 0 || n[u] !== void 0) && (o[f] = lo(a, l, f, void 0, e, !0)) : delete o[f]);
|
|
1670
1670
|
if (r !== l)
|
|
1671
|
-
for (const f in r) (!t || !
|
|
1671
|
+
for (const f in r) (!t || !ue(t, f)) && (delete r[f], c = !0);
|
|
1672
1672
|
}
|
|
1673
|
-
|
|
1673
|
+
c && Rt(e.attrs, "set", "");
|
|
1674
1674
|
}
|
|
1675
1675
|
function Cs(e, t, n, i) {
|
|
1676
1676
|
const [o, r] = e.propsOptions;
|
|
1677
1677
|
let s = !1, l;
|
|
1678
1678
|
if (t) for (let a in t) {
|
|
1679
1679
|
if (In(a)) continue;
|
|
1680
|
-
const
|
|
1681
|
-
let
|
|
1682
|
-
o &&
|
|
1680
|
+
const c = t[a];
|
|
1681
|
+
let u;
|
|
1682
|
+
o && ue(o, u = ht(a)) ? !r || !r.includes(u) ? n[u] = c : (l || (l = {}))[u] = c : Ii(e.emitsOptions, a) || (!(a in i) || c !== i[a]) && (i[a] = c, s = !0);
|
|
1683
1683
|
}
|
|
1684
1684
|
if (r) {
|
|
1685
|
-
const a = /* @__PURE__ */ oe(n),
|
|
1686
|
-
for (let
|
|
1687
|
-
const f = r[
|
|
1688
|
-
n[f] = lo(o, a, f,
|
|
1685
|
+
const a = /* @__PURE__ */ oe(n), c = l || me;
|
|
1686
|
+
for (let u = 0; u < r.length; u++) {
|
|
1687
|
+
const f = r[u];
|
|
1688
|
+
n[f] = lo(o, a, f, c[f], e, !ue(c, f));
|
|
1689
1689
|
}
|
|
1690
1690
|
}
|
|
1691
1691
|
return s;
|
|
@@ -1693,15 +1693,15 @@ function Cs(e, t, n, i) {
|
|
|
1693
1693
|
function lo(e, t, n, i, o, r) {
|
|
1694
1694
|
const s = e[n];
|
|
1695
1695
|
if (s != null) {
|
|
1696
|
-
const l =
|
|
1696
|
+
const l = ue(s, "default");
|
|
1697
1697
|
if (l && i === void 0) {
|
|
1698
1698
|
const a = s.default;
|
|
1699
|
-
if (s.type !== Function && !s.skipFactory &&
|
|
1700
|
-
const { propsDefaults:
|
|
1701
|
-
if (n in
|
|
1699
|
+
if (s.type !== Function && !s.skipFactory && ce(a)) {
|
|
1700
|
+
const { propsDefaults: c } = o;
|
|
1701
|
+
if (n in c) i = c[n];
|
|
1702
1702
|
else {
|
|
1703
|
-
const
|
|
1704
|
-
i =
|
|
1703
|
+
const u = Po(o);
|
|
1704
|
+
i = c[n] = a.call(null, t), u();
|
|
1705
1705
|
}
|
|
1706
1706
|
} else i = a;
|
|
1707
1707
|
o.ce && o.ce._setProp(n, i);
|
|
@@ -1715,25 +1715,25 @@ function qa(e, t, n = !1) {
|
|
|
1715
1715
|
if (o) return o;
|
|
1716
1716
|
const r = e.props, s = {}, l = [];
|
|
1717
1717
|
if (!r)
|
|
1718
|
-
return ve(e) && i.set(e,
|
|
1719
|
-
if (X(r)) for (let
|
|
1720
|
-
const
|
|
1721
|
-
zo(
|
|
1722
|
-
}
|
|
1723
|
-
else if (r) for (const
|
|
1724
|
-
const
|
|
1725
|
-
if (zo(
|
|
1726
|
-
const f = r[
|
|
1727
|
-
let
|
|
1728
|
-
if (X(v)) for (let
|
|
1729
|
-
const
|
|
1718
|
+
return ve(e) && i.set(e, cn), cn;
|
|
1719
|
+
if (X(r)) for (let c = 0; c < r.length; c++) {
|
|
1720
|
+
const u = ht(r[c]);
|
|
1721
|
+
zo(u) && (s[u] = me);
|
|
1722
|
+
}
|
|
1723
|
+
else if (r) for (const c in r) {
|
|
1724
|
+
const u = ht(c);
|
|
1725
|
+
if (zo(u)) {
|
|
1726
|
+
const f = r[c], p = s[u] = X(f) || ce(f) ? { type: f } : ot({}, f), v = p.type;
|
|
1727
|
+
let y = !1, g = !0;
|
|
1728
|
+
if (X(v)) for (let T = 0; T < v.length; ++T) {
|
|
1729
|
+
const S = v[T], P = ce(S) && S.name;
|
|
1730
1730
|
if (P === "Boolean") {
|
|
1731
|
-
|
|
1731
|
+
y = !0;
|
|
1732
1732
|
break;
|
|
1733
|
-
} else P === "String" && (
|
|
1733
|
+
} else P === "String" && (g = !1);
|
|
1734
1734
|
}
|
|
1735
|
-
else
|
|
1736
|
-
p[0] =
|
|
1735
|
+
else y = ce(v) && v.name === "Boolean";
|
|
1736
|
+
p[0] = y, p[1] = g, (y || ue(p, "default")) && l.push(u);
|
|
1737
1737
|
}
|
|
1738
1738
|
}
|
|
1739
1739
|
const a = [s, l];
|
|
@@ -1751,7 +1751,7 @@ var Eo = (e) => e === "_" || e === "_ctx" || e === "$stable", To = (e) => X(e) ?
|
|
|
1751
1751
|
for (const o in e) {
|
|
1752
1752
|
if (Eo(o)) continue;
|
|
1753
1753
|
const r = e[o];
|
|
1754
|
-
if (
|
|
1754
|
+
if (ce(r)) t[o] = Ka(o, r, i);
|
|
1755
1755
|
else if (r != null) {
|
|
1756
1756
|
const s = To(r);
|
|
1757
1757
|
t[o] = () => s;
|
|
@@ -1777,150 +1777,150 @@ var Eo = (e) => e === "_" || e === "_ctx" || e === "$stable", To = (e) => X(e) ?
|
|
|
1777
1777
|
} else t && (Os(e, t), s = { default: 1 });
|
|
1778
1778
|
if (r)
|
|
1779
1779
|
for (const l in o) !Eo(l) && s[l] == null && delete o[l];
|
|
1780
|
-
}, He =
|
|
1780
|
+
}, He = ec;
|
|
1781
1781
|
function Xa(e) {
|
|
1782
1782
|
return Ja(e);
|
|
1783
1783
|
}
|
|
1784
1784
|
function Ja(e, t) {
|
|
1785
1785
|
const n = Ci();
|
|
1786
1786
|
n.__VUE__ = !0;
|
|
1787
|
-
const { insert: i, remove: o, patchProp: r, createElement: s, createText: l, createComment: a, setText:
|
|
1787
|
+
const { insert: i, remove: o, patchProp: r, createElement: s, createText: l, createComment: a, setText: c, setElementText: u, parentNode: f, nextSibling: p, setScopeId: v = Ut, insertStaticContent: y } = e, g = (d, h, m, O = null, E = null, w = null, k = void 0, R = null, I = !!h.dynamicChildren) => {
|
|
1788
1788
|
if (d === h) return;
|
|
1789
|
-
d && !Cn(d, h) && (O = st(d), Le(d,
|
|
1789
|
+
d && !Cn(d, h) && (O = st(d), Le(d, E, w, !0), d = null), h.patchFlag === -2 && (I = !1, h.dynamicChildren = null);
|
|
1790
1790
|
const { type: x, ref: H, shapeFlag: $ } = h;
|
|
1791
1791
|
switch (x) {
|
|
1792
1792
|
case Ai:
|
|
1793
|
-
|
|
1793
|
+
T(d, h, m, O);
|
|
1794
1794
|
break;
|
|
1795
1795
|
case Ft:
|
|
1796
|
-
|
|
1796
|
+
S(d, h, m, O);
|
|
1797
1797
|
break;
|
|
1798
1798
|
case Ln:
|
|
1799
|
-
d == null && P(h,
|
|
1799
|
+
d == null && P(h, m, O, k);
|
|
1800
1800
|
break;
|
|
1801
1801
|
case fe:
|
|
1802
|
-
We(d, h,
|
|
1802
|
+
We(d, h, m, O, E, w, k, R, I);
|
|
1803
1803
|
break;
|
|
1804
1804
|
default:
|
|
1805
|
-
$ & 1 ? z(d, h,
|
|
1805
|
+
$ & 1 ? z(d, h, m, O, E, w, k, R, I) : $ & 6 ? N(d, h, m, O, E, w, k, R, I) : ($ & 64 || $ & 128) && x.process(d, h, m, O, E, w, k, R, I, ye);
|
|
1806
1806
|
}
|
|
1807
|
-
H != null &&
|
|
1808
|
-
},
|
|
1809
|
-
if (d == null) i(h.el = l(h.children),
|
|
1807
|
+
H != null && E ? kn(H, d && d.ref, w, h || d, !h) : H == null && d && d.ref != null && kn(d.ref, null, w, d, !0);
|
|
1808
|
+
}, T = (d, h, m, O) => {
|
|
1809
|
+
if (d == null) i(h.el = l(h.children), m, O);
|
|
1810
1810
|
else {
|
|
1811
|
-
const
|
|
1812
|
-
h.children !== d.children &&
|
|
1811
|
+
const E = h.el = d.el;
|
|
1812
|
+
h.children !== d.children && c(E, h.children);
|
|
1813
1813
|
}
|
|
1814
|
-
},
|
|
1815
|
-
d == null ? i(h.el = a(h.children || ""),
|
|
1816
|
-
}, P = (d, h,
|
|
1817
|
-
[d.el, d.anchor] =
|
|
1818
|
-
}, V = ({ el: d, anchor: h },
|
|
1819
|
-
let
|
|
1814
|
+
}, S = (d, h, m, O) => {
|
|
1815
|
+
d == null ? i(h.el = a(h.children || ""), m, O) : h.el = d.el;
|
|
1816
|
+
}, P = (d, h, m, O) => {
|
|
1817
|
+
[d.el, d.anchor] = y(d.children, h, m, O, d.el, d.anchor);
|
|
1818
|
+
}, V = ({ el: d, anchor: h }, m, O) => {
|
|
1819
|
+
let E;
|
|
1820
1820
|
for (; d && d !== h; )
|
|
1821
|
-
|
|
1822
|
-
i(h,
|
|
1823
|
-
},
|
|
1824
|
-
let
|
|
1821
|
+
E = p(d), i(d, m, O), d = E;
|
|
1822
|
+
i(h, m, O);
|
|
1823
|
+
}, b = ({ el: d, anchor: h }) => {
|
|
1824
|
+
let m;
|
|
1825
1825
|
for (; d && d !== h; )
|
|
1826
|
-
|
|
1826
|
+
m = p(d), o(d), d = m;
|
|
1827
1827
|
o(h);
|
|
1828
|
-
}, z = (d, h,
|
|
1829
|
-
if (h.type === "svg" ? k = "svg" : h.type === "math" && (k = "mathml"), d == null) G(h,
|
|
1828
|
+
}, z = (d, h, m, O, E, w, k, R, I) => {
|
|
1829
|
+
if (h.type === "svg" ? k = "svg" : h.type === "math" && (k = "mathml"), d == null) G(h, m, O, E, w, k, R, I);
|
|
1830
1830
|
else {
|
|
1831
1831
|
const x = d.el && d.el._isVueCE ? d.el : null;
|
|
1832
1832
|
try {
|
|
1833
|
-
x && x._beginPatch(), F(d, h,
|
|
1833
|
+
x && x._beginPatch(), F(d, h, E, w, k, R, I);
|
|
1834
1834
|
} finally {
|
|
1835
1835
|
x && x._endPatch();
|
|
1836
1836
|
}
|
|
1837
1837
|
}
|
|
1838
|
-
}, G = (d, h,
|
|
1838
|
+
}, G = (d, h, m, O, E, w, k, R) => {
|
|
1839
1839
|
let I, x;
|
|
1840
1840
|
const { props: H, shapeFlag: $, transition: B, dirs: K } = d;
|
|
1841
|
-
if (I = d.el = s(d.type,
|
|
1842
|
-
for (const re in H) re !== "value" && !In(re) && r(I, re, null, H[re],
|
|
1843
|
-
"value" in H && r(I, "value", null, H.value,
|
|
1841
|
+
if (I = d.el = s(d.type, w, H && H.is, H), $ & 8 ? u(I, d.children) : $ & 16 && W(d.children, I, null, O, E, zi(d, w), k, R), K && Xt(d, null, O, "created"), A(I, d, d.scopeId, k, O), H) {
|
|
1842
|
+
for (const re in H) re !== "value" && !In(re) && r(I, re, null, H[re], w, O);
|
|
1843
|
+
"value" in H && r(I, "value", null, H.value, w), (x = H.onVnodeBeforeMount) && yt(x, O, d);
|
|
1844
1844
|
}
|
|
1845
1845
|
K && Xt(d, null, O, "beforeMount");
|
|
1846
|
-
const Z = Za(
|
|
1847
|
-
Z && B.beforeEnter(I), i(I, h,
|
|
1846
|
+
const Z = Za(E, B);
|
|
1847
|
+
Z && B.beforeEnter(I), i(I, h, m), ((x = H && H.onVnodeMounted) || Z || K) && He(() => {
|
|
1848
1848
|
x && yt(x, O, d), Z && B.enter(I), K && Xt(d, null, O, "mounted");
|
|
1849
|
-
},
|
|
1850
|
-
}, A = (d, h,
|
|
1851
|
-
if (
|
|
1852
|
-
if (
|
|
1853
|
-
let
|
|
1854
|
-
if (h ===
|
|
1855
|
-
const k =
|
|
1856
|
-
A(d, k, k.scopeId, k.slotScopeIds,
|
|
1849
|
+
}, E);
|
|
1850
|
+
}, A = (d, h, m, O, E) => {
|
|
1851
|
+
if (m && v(d, m), O) for (let w = 0; w < O.length; w++) v(d, O[w]);
|
|
1852
|
+
if (E) {
|
|
1853
|
+
let w = E.subTree;
|
|
1854
|
+
if (h === w || As(w.type) && (w.ssContent === h || w.ssFallback === h)) {
|
|
1855
|
+
const k = E.vnode;
|
|
1856
|
+
A(d, k, k.scopeId, k.slotScopeIds, E.parent);
|
|
1857
1857
|
}
|
|
1858
1858
|
}
|
|
1859
|
-
}, W = (d, h,
|
|
1859
|
+
}, W = (d, h, m, O, E, w, k, R, I = 0) => {
|
|
1860
1860
|
for (let x = I; x < d.length; x++) {
|
|
1861
1861
|
const H = d[x] = R ? At(d[x]) : Et(d[x]);
|
|
1862
|
-
|
|
1862
|
+
g(null, H, h, m, O, E, w, k, R);
|
|
1863
1863
|
}
|
|
1864
|
-
}, F = (d, h,
|
|
1864
|
+
}, F = (d, h, m, O, E, w, k) => {
|
|
1865
1865
|
const R = h.el = d.el;
|
|
1866
1866
|
let { patchFlag: I, dynamicChildren: x, dirs: H } = h;
|
|
1867
1867
|
I |= d.patchFlag & 16;
|
|
1868
1868
|
const $ = d.props || me, B = h.props || me;
|
|
1869
1869
|
let K;
|
|
1870
|
-
if (
|
|
1871
|
-
if (I & 16) J(R, $, B,
|
|
1872
|
-
else if (I & 2 && $.class !== B.class && r(R, "class", null, B.class,
|
|
1870
|
+
if (m && Jt(m, !1), (K = B.onVnodeBeforeUpdate) && yt(K, m, h, d), H && Xt(h, d, m, "beforeUpdate"), m && Jt(m, !0), x && (!d.dynamicChildren || d.dynamicChildren.length !== x.length) && (I = 0, k = !1, x = null), ($.innerHTML && B.innerHTML == null || $.textContent && B.textContent == null) && u(R, ""), x ? Q(d.dynamicChildren, x, R, m, O, zi(h, E), w) : k || Ae(d, h, R, null, m, O, zi(h, E), w, !1), I > 0) {
|
|
1871
|
+
if (I & 16) J(R, $, B, m, E);
|
|
1872
|
+
else if (I & 2 && $.class !== B.class && r(R, "class", null, B.class, E), I & 4 && r(R, "style", $.style, B.style, E), I & 8) {
|
|
1873
1873
|
const Z = h.dynamicProps;
|
|
1874
1874
|
for (let re = 0; re < Z.length; re++) {
|
|
1875
1875
|
const se = Z[re], he = $[se], pe = B[se];
|
|
1876
|
-
(pe !== he || se === "value") && r(R, se, he, pe,
|
|
1876
|
+
(pe !== he || se === "value") && r(R, se, he, pe, E, m);
|
|
1877
1877
|
}
|
|
1878
1878
|
}
|
|
1879
|
-
I & 1 && d.children !== h.children &&
|
|
1880
|
-
} else !k && x == null && J(R, $, B,
|
|
1879
|
+
I & 1 && d.children !== h.children && u(R, h.children);
|
|
1880
|
+
} else !k && x == null && J(R, $, B, m, E);
|
|
1881
1881
|
((K = B.onVnodeUpdated) || H) && He(() => {
|
|
1882
|
-
K && yt(K,
|
|
1882
|
+
K && yt(K, m, h, d), H && Xt(h, d, m, "updated");
|
|
1883
1883
|
}, O);
|
|
1884
|
-
}, Q = (d, h,
|
|
1884
|
+
}, Q = (d, h, m, O, E, w, k) => {
|
|
1885
1885
|
for (let R = 0; R < h.length; R++) {
|
|
1886
|
-
const I = d[R], x = h[R], H = I.el && (I.type === fe || !Cn(I, x) || I.shapeFlag & 198) ? f(I.el) :
|
|
1887
|
-
|
|
1886
|
+
const I = d[R], x = h[R], H = I.el && (I.type === fe || !Cn(I, x) || I.shapeFlag & 198) ? f(I.el) : m;
|
|
1887
|
+
g(I, x, H, null, O, E, w, k, !0);
|
|
1888
1888
|
}
|
|
1889
|
-
}, J = (d, h,
|
|
1890
|
-
if (h !==
|
|
1889
|
+
}, J = (d, h, m, O, E) => {
|
|
1890
|
+
if (h !== m) {
|
|
1891
1891
|
if (h !== me)
|
|
1892
|
-
for (const
|
|
1893
|
-
for (const
|
|
1894
|
-
if (In(
|
|
1895
|
-
const k =
|
|
1896
|
-
k !== R &&
|
|
1892
|
+
for (const w in h) !In(w) && !(w in m) && r(d, w, h[w], null, E, O);
|
|
1893
|
+
for (const w in m) {
|
|
1894
|
+
if (In(w)) continue;
|
|
1895
|
+
const k = m[w], R = h[w];
|
|
1896
|
+
k !== R && w !== "value" && r(d, w, R, k, E, O);
|
|
1897
1897
|
}
|
|
1898
|
-
"value" in
|
|
1898
|
+
"value" in m && r(d, "value", h.value, m.value, E);
|
|
1899
1899
|
}
|
|
1900
|
-
}, We = (d, h,
|
|
1900
|
+
}, We = (d, h, m, O, E, w, k, R, I) => {
|
|
1901
1901
|
const x = h.el = d ? d.el : l(""), H = h.anchor = d ? d.anchor : l("");
|
|
1902
1902
|
let { patchFlag: $, dynamicChildren: B, slotScopeIds: K } = h;
|
|
1903
|
-
K && (R = R ? R.concat(K) : K), d == null ? (i(x,
|
|
1904
|
-
}, N = (d, h,
|
|
1905
|
-
h.slotScopeIds = R, d == null ? h.shapeFlag & 512 ?
|
|
1906
|
-
}, U = (d, h,
|
|
1907
|
-
const R = d.component =
|
|
1908
|
-
if (Ma(d) && (R.ctx.renderer = ye),
|
|
1909
|
-
if (
|
|
1903
|
+
K && (R = R ? R.concat(K) : K), d == null ? (i(x, m, O), i(H, m, O), W(h.children || [], m, H, E, w, k, R, I)) : $ > 0 && $ & 64 && B && d.dynamicChildren && d.dynamicChildren.length === B.length ? (Q(d.dynamicChildren, B, m, E, w, k, R), (h.key != null || E && h === E.subTree) && Co(d, h, !0)) : Ae(d, h, m, H, E, w, k, R, I);
|
|
1904
|
+
}, N = (d, h, m, O, E, w, k, R, I) => {
|
|
1905
|
+
h.slotScopeIds = R, d == null ? h.shapeFlag & 512 ? E.ctx.activate(h, m, O, k, I) : U(h, m, O, E, w, k, I) : ie(d, h, I);
|
|
1906
|
+
}, U = (d, h, m, O, E, w, k) => {
|
|
1907
|
+
const R = d.component = lc(d, O, E);
|
|
1908
|
+
if (Ma(d) && (R.ctx.renderer = ye), ac(R, !1, k), R.asyncDep) {
|
|
1909
|
+
if (E && E.registerDep(R, Y, k), !d.el) {
|
|
1910
1910
|
const I = R.subTree = Pe(Ft);
|
|
1911
|
-
|
|
1911
|
+
S(null, I, h, m), d.placeholder = I.el;
|
|
1912
1912
|
}
|
|
1913
|
-
} else Y(R, d, h,
|
|
1914
|
-
}, ie = (d, h,
|
|
1913
|
+
} else Y(R, d, h, m, E, w, k);
|
|
1914
|
+
}, ie = (d, h, m) => {
|
|
1915
1915
|
const O = h.component = d.component;
|
|
1916
|
-
if (Va(d, h,
|
|
1917
|
-
ee(O, h,
|
|
1916
|
+
if (Va(d, h, m)) if (O.asyncDep && !O.asyncResolved) {
|
|
1917
|
+
ee(O, h, m);
|
|
1918
1918
|
return;
|
|
1919
1919
|
} else
|
|
1920
1920
|
O.next = h, O.update();
|
|
1921
1921
|
else
|
|
1922
1922
|
h.el = d.el, O.vnode = h;
|
|
1923
|
-
}, Y = (d, h,
|
|
1923
|
+
}, Y = (d, h, m, O, E, w, k) => {
|
|
1924
1924
|
const R = () => {
|
|
1925
1925
|
if (d.isMounted) {
|
|
1926
1926
|
let { next: $, bu: B, u: K, parent: Z, vnode: re } = d;
|
|
@@ -1930,7 +1930,7 @@ function Ja(e, t) {
|
|
|
1930
1930
|
$ && ($.el = re.el, ee(d, $, k)), Re.asyncDep.then(() => {
|
|
1931
1931
|
He(() => {
|
|
1932
1932
|
d.isUnmounted || x();
|
|
1933
|
-
},
|
|
1933
|
+
}, E);
|
|
1934
1934
|
});
|
|
1935
1935
|
return;
|
|
1936
1936
|
}
|
|
@@ -1938,25 +1938,25 @@ function Ja(e, t) {
|
|
|
1938
1938
|
let se = $, he;
|
|
1939
1939
|
Jt(d, !1), $ ? ($.el = re.el, ee(d, $, k)) : $ = re, B && oi(B), (he = $.props && $.props.onVnodeBeforeUpdate) && yt(he, Z, $, re), Jt(d, !0);
|
|
1940
1940
|
const pe = Hi(d), Te = d.subTree;
|
|
1941
|
-
d.subTree = pe,
|
|
1941
|
+
d.subTree = pe, g(Te, pe, f(Te.el), st(Te), d, E, w), $.el = pe.el, se === null && Ha(d, pe.el), K && He(K, E), (he = $.props && $.props.onVnodeUpdated) && He(() => yt(he, Z, $, re), E);
|
|
1942
1942
|
} else {
|
|
1943
1943
|
let $;
|
|
1944
1944
|
const { el: B, props: K } = h, { bm: Z, m: re, parent: se, root: he, type: pe } = d, Te = fn(h);
|
|
1945
1945
|
if (Jt(d, !1), Z && oi(Z), !Te && ($ = K && K.onVnodeBeforeMount) && yt($, se, h), Jt(d, !0), B && Qe) {
|
|
1946
1946
|
const Re = () => {
|
|
1947
|
-
d.subTree = Hi(d), Qe(B, d.subTree, d,
|
|
1947
|
+
d.subTree = Hi(d), Qe(B, d.subTree, d, E, null);
|
|
1948
1948
|
};
|
|
1949
1949
|
Te && pe.__asyncHydrate ? pe.__asyncHydrate(B, d, Re) : Re();
|
|
1950
1950
|
} else {
|
|
1951
1951
|
he.ce && he.ce._hasShadowRoot() && he.ce._injectChildStyle(pe, d.parent ? d.parent.type : void 0);
|
|
1952
1952
|
const Re = d.subTree = Hi(d);
|
|
1953
|
-
|
|
1953
|
+
g(null, Re, m, O, d, E, w), h.el = Re.el;
|
|
1954
1954
|
}
|
|
1955
|
-
if (re && He(re,
|
|
1955
|
+
if (re && He(re, E), !Te && ($ = K && K.onVnodeMounted)) {
|
|
1956
1956
|
const Re = h;
|
|
1957
|
-
He(() => yt($, se, Re),
|
|
1957
|
+
He(() => yt($, se, Re), E);
|
|
1958
1958
|
}
|
|
1959
|
-
(h.shapeFlag & 256 || se && fn(se.vnode) && se.vnode.shapeFlag & 256) && d.a && He(d.a,
|
|
1959
|
+
(h.shapeFlag & 256 || se && fn(se.vnode) && se.vnode.shapeFlag & 256) && d.a && He(d.a, E), d.isMounted = !0, h = m = O = null;
|
|
1960
1960
|
}
|
|
1961
1961
|
};
|
|
1962
1962
|
d.scope.on();
|
|
@@ -1964,44 +1964,44 @@ function Ja(e, t) {
|
|
|
1964
1964
|
d.scope.off();
|
|
1965
1965
|
const x = d.update = I.run.bind(I), H = d.job = I.runIfDirty.bind(I);
|
|
1966
1966
|
H.i = d, H.id = d.uid, I.scheduler = () => So(H), Jt(d, !0), x();
|
|
1967
|
-
}, ee = (d, h,
|
|
1967
|
+
}, ee = (d, h, m) => {
|
|
1968
1968
|
h.component = d;
|
|
1969
1969
|
const O = d.vnode.props;
|
|
1970
|
-
d.vnode = h, d.next = null, Ua(d, h.props, O,
|
|
1971
|
-
}, Ae = (d, h,
|
|
1970
|
+
d.vnode = h, d.next = null, Ua(d, h.props, O, m), Ya(d, h.children, m), Lt(), Fo(d), Dt();
|
|
1971
|
+
}, Ae = (d, h, m, O, E, w, k, R, I = !1) => {
|
|
1972
1972
|
const x = d && d.children, H = d ? d.shapeFlag : 0, $ = h.children, { patchFlag: B, shapeFlag: K } = h;
|
|
1973
1973
|
if (B > 0) {
|
|
1974
1974
|
if (B & 128) {
|
|
1975
|
-
Ke(x, $,
|
|
1975
|
+
Ke(x, $, m, O, E, w, k, R, I);
|
|
1976
1976
|
return;
|
|
1977
1977
|
} else if (B & 256) {
|
|
1978
|
-
Je(x, $,
|
|
1978
|
+
Je(x, $, m, O, E, w, k, R, I);
|
|
1979
1979
|
return;
|
|
1980
1980
|
}
|
|
1981
1981
|
}
|
|
1982
|
-
K & 8 ? (H & 16 && Ge(x,
|
|
1983
|
-
}, Je = (d, h,
|
|
1984
|
-
d = d ||
|
|
1982
|
+
K & 8 ? (H & 16 && Ge(x, E, w), $ !== x && u(m, $)) : H & 16 ? K & 16 ? Ke(x, $, m, O, E, w, k, R, I) : Ge(x, E, w, !0) : (H & 8 && u(m, ""), K & 16 && W($, m, O, E, w, k, R, I));
|
|
1983
|
+
}, Je = (d, h, m, O, E, w, k, R, I) => {
|
|
1984
|
+
d = d || cn, h = h || cn;
|
|
1985
1985
|
const x = d.length, H = h.length, $ = Math.min(x, H);
|
|
1986
1986
|
let B;
|
|
1987
1987
|
for (B = 0; B < $; B++) {
|
|
1988
1988
|
const K = h[B] = I ? At(h[B]) : Et(h[B]);
|
|
1989
|
-
|
|
1989
|
+
g(d[B], K, m, null, E, w, k, R, I);
|
|
1990
1990
|
}
|
|
1991
|
-
x > H ? Ge(d,
|
|
1992
|
-
}, Ke = (d, h,
|
|
1991
|
+
x > H ? Ge(d, E, w, !0, !1, $) : W(h, m, O, E, w, k, R, I, $);
|
|
1992
|
+
}, Ke = (d, h, m, O, E, w, k, R, I) => {
|
|
1993
1993
|
let x = 0;
|
|
1994
1994
|
const H = h.length;
|
|
1995
1995
|
let $ = d.length - 1, B = H - 1;
|
|
1996
1996
|
for (; x <= $ && x <= B; ) {
|
|
1997
1997
|
const K = d[x], Z = h[x] = I ? At(h[x]) : Et(h[x]);
|
|
1998
|
-
if (Cn(K, Z))
|
|
1998
|
+
if (Cn(K, Z)) g(K, Z, m, null, E, w, k, R, I);
|
|
1999
1999
|
else break;
|
|
2000
2000
|
x++;
|
|
2001
2001
|
}
|
|
2002
2002
|
for (; x <= $ && x <= B; ) {
|
|
2003
2003
|
const K = d[$], Z = h[B] = I ? At(h[B]) : Et(h[B]);
|
|
2004
|
-
if (Cn(K, Z))
|
|
2004
|
+
if (Cn(K, Z)) g(K, Z, m, null, E, w, k, R, I);
|
|
2005
2005
|
else break;
|
|
2006
2006
|
$--, B--;
|
|
2007
2007
|
}
|
|
@@ -2009,10 +2009,10 @@ function Ja(e, t) {
|
|
|
2009
2009
|
if (x <= B) {
|
|
2010
2010
|
const K = B + 1, Z = K < H ? h[K].el : O;
|
|
2011
2011
|
for (; x <= B; )
|
|
2012
|
-
|
|
2012
|
+
g(null, h[x] = I ? At(h[x]) : Et(h[x]), m, Z, E, w, k, R, I), x++;
|
|
2013
2013
|
}
|
|
2014
2014
|
} else if (x > B) for (; x <= $; )
|
|
2015
|
-
Le(d[x],
|
|
2015
|
+
Le(d[x], E, w, !0), x++;
|
|
2016
2016
|
else {
|
|
2017
2017
|
const K = x, Z = x, re = /* @__PURE__ */ new Map();
|
|
2018
2018
|
for (x = Z; x <= B; x++) {
|
|
@@ -2022,126 +2022,126 @@ function Ja(e, t) {
|
|
|
2022
2022
|
let se, he = 0;
|
|
2023
2023
|
const pe = B - Z + 1;
|
|
2024
2024
|
let Te = !1, Re = 0;
|
|
2025
|
-
const
|
|
2026
|
-
for (x = 0; x < pe; x++)
|
|
2025
|
+
const ct = new Array(pe);
|
|
2026
|
+
for (x = 0; x < pe; x++) ct[x] = 0;
|
|
2027
2027
|
for (x = K; x <= $; x++) {
|
|
2028
2028
|
const be = d[x];
|
|
2029
2029
|
if (he >= pe) {
|
|
2030
|
-
Le(be,
|
|
2030
|
+
Le(be, E, w, !0);
|
|
2031
2031
|
continue;
|
|
2032
2032
|
}
|
|
2033
2033
|
let Ve;
|
|
2034
2034
|
if (be.key != null) Ve = re.get(be.key);
|
|
2035
|
-
else for (se = Z; se <= B; se++) if (
|
|
2035
|
+
else for (se = Z; se <= B; se++) if (ct[se - Z] === 0 && Cn(be, h[se])) {
|
|
2036
2036
|
Ve = se;
|
|
2037
2037
|
break;
|
|
2038
2038
|
}
|
|
2039
|
-
Ve === void 0 ? Le(be,
|
|
2039
|
+
Ve === void 0 ? Le(be, E, w, !0) : (ct[Ve - Z] = x + 1, Ve >= Re ? Re = Ve : Te = !0, g(be, h[Ve], m, null, E, w, k, R, I), he++);
|
|
2040
2040
|
}
|
|
2041
|
-
const Kt = Te ? Qa(
|
|
2041
|
+
const Kt = Te ? Qa(ct) : cn;
|
|
2042
2042
|
for (se = Kt.length - 1, x = pe - 1; x >= 0; x--) {
|
|
2043
2043
|
const be = Z + x, Ve = h[be], Wt = h[be + 1], et = be + 1 < H ? Wt.el || Is(Wt) : O;
|
|
2044
|
-
|
|
2044
|
+
ct[x] === 0 ? g(null, Ve, m, et, E, w, k, R, I) : Te && (se < 0 || x !== Kt[se] ? Ne(Ve, m, et, 2) : se--);
|
|
2045
2045
|
}
|
|
2046
2046
|
}
|
|
2047
|
-
}, Ne = (d, h,
|
|
2048
|
-
const { el:
|
|
2047
|
+
}, Ne = (d, h, m, O, E = null) => {
|
|
2048
|
+
const { el: w, type: k, transition: R, children: I, shapeFlag: x } = d;
|
|
2049
2049
|
if (x & 6) {
|
|
2050
|
-
Ne(d.component.subTree, h,
|
|
2050
|
+
Ne(d.component.subTree, h, m, O);
|
|
2051
2051
|
return;
|
|
2052
2052
|
}
|
|
2053
2053
|
if (x & 128) {
|
|
2054
|
-
d.suspense.move(h,
|
|
2054
|
+
d.suspense.move(h, m, O);
|
|
2055
2055
|
return;
|
|
2056
2056
|
}
|
|
2057
2057
|
if (x & 64) {
|
|
2058
|
-
k.move(d, h,
|
|
2058
|
+
k.move(d, h, m, ye);
|
|
2059
2059
|
return;
|
|
2060
2060
|
}
|
|
2061
2061
|
if (k === fe) {
|
|
2062
|
-
i(
|
|
2063
|
-
for (let H = 0; H < I.length; H++) Ne(I[H], h,
|
|
2064
|
-
i(d.anchor, h,
|
|
2062
|
+
i(w, h, m);
|
|
2063
|
+
for (let H = 0; H < I.length; H++) Ne(I[H], h, m, O);
|
|
2064
|
+
i(d.anchor, h, m);
|
|
2065
2065
|
return;
|
|
2066
2066
|
}
|
|
2067
2067
|
if (k === Ln) {
|
|
2068
|
-
V(d, h,
|
|
2068
|
+
V(d, h, m);
|
|
2069
2069
|
return;
|
|
2070
2070
|
}
|
|
2071
|
-
if (O !== 2 && x & 1 && R) if (O === 0) R.persisted && !
|
|
2071
|
+
if (O !== 2 && x & 1 && R) if (O === 0) R.persisted && !w[Wi] ? i(w, h, m) : (R.beforeEnter(w), i(w, h, m), He(() => R.enter(w), E));
|
|
2072
2072
|
else {
|
|
2073
2073
|
const { leave: H, delayLeave: $, afterLeave: B } = R, K = () => {
|
|
2074
|
-
d.ctx.isUnmounted ? o(
|
|
2074
|
+
d.ctx.isUnmounted ? o(w) : i(w, h, m);
|
|
2075
2075
|
}, Z = () => {
|
|
2076
|
-
const re =
|
|
2077
|
-
|
|
2076
|
+
const re = w._isLeaving || !!w[Wi];
|
|
2077
|
+
w._isLeaving && w[Wi](!0), R.persisted && !re ? K() : H(w, () => {
|
|
2078
2078
|
K(), B && B();
|
|
2079
2079
|
});
|
|
2080
2080
|
};
|
|
2081
|
-
$ ? $(
|
|
2081
|
+
$ ? $(w, K, Z) : Z();
|
|
2082
2082
|
}
|
|
2083
|
-
else i(
|
|
2084
|
-
}, Le = (d, h,
|
|
2085
|
-
const { type:
|
|
2086
|
-
if ($ === -2 && (
|
|
2083
|
+
else i(w, h, m);
|
|
2084
|
+
}, Le = (d, h, m, O = !1, E = !1) => {
|
|
2085
|
+
const { type: w, props: k, ref: R, children: I, dynamicChildren: x, shapeFlag: H, patchFlag: $, dirs: B, cacheIndex: K, memo: Z } = d;
|
|
2086
|
+
if ($ === -2 && (E = !1), R != null && (Lt(), kn(R, null, m, d, !0), Dt()), K != null && (h.renderCache[K] = void 0), H & 256) {
|
|
2087
2087
|
h.ctx.deactivate(d);
|
|
2088
2088
|
return;
|
|
2089
2089
|
}
|
|
2090
2090
|
const re = H & 1 && B, se = !fn(d);
|
|
2091
2091
|
let he;
|
|
2092
|
-
if (se && (he = k && k.onVnodeBeforeUnmount) && yt(he, h, d), H & 6) at(d.component,
|
|
2092
|
+
if (se && (he = k && k.onVnodeBeforeUnmount) && yt(he, h, d), H & 6) at(d.component, m, O);
|
|
2093
2093
|
else {
|
|
2094
2094
|
if (H & 128) {
|
|
2095
|
-
d.suspense.unmount(
|
|
2095
|
+
d.suspense.unmount(m, O);
|
|
2096
2096
|
return;
|
|
2097
2097
|
}
|
|
2098
|
-
re && Xt(d, null, h, "beforeUnmount"), H & 64 ? d.type.remove(d, h,
|
|
2098
|
+
re && Xt(d, null, h, "beforeUnmount"), H & 64 ? d.type.remove(d, h, m, ye, O) : x && !x.hasOnce && (w !== fe || $ > 0 && $ & 64) ? Ge(x, h, m, !1, !0) : (w === fe && $ & 384 || !E && H & 16) && Ge(I, h, m), O && gt(d);
|
|
2099
2099
|
}
|
|
2100
2100
|
const pe = Z != null && K == null;
|
|
2101
2101
|
(se && (he = k && k.onVnodeUnmounted) || re || pe) && He(() => {
|
|
2102
2102
|
he && yt(he, h, d), re && Xt(d, null, h, "unmounted"), pe && (d.el = null);
|
|
2103
|
-
},
|
|
2103
|
+
}, m);
|
|
2104
2104
|
}, gt = (d) => {
|
|
2105
|
-
const { type: h, el:
|
|
2105
|
+
const { type: h, el: m, anchor: O, transition: E } = d;
|
|
2106
2106
|
if (h === fe) {
|
|
2107
|
-
mt(
|
|
2107
|
+
mt(m, O);
|
|
2108
2108
|
return;
|
|
2109
2109
|
}
|
|
2110
2110
|
if (h === Ln) {
|
|
2111
|
-
|
|
2111
|
+
b(d);
|
|
2112
2112
|
return;
|
|
2113
2113
|
}
|
|
2114
|
-
const
|
|
2115
|
-
o(
|
|
2114
|
+
const w = () => {
|
|
2115
|
+
o(m), E && !E.persisted && E.afterLeave && E.afterLeave();
|
|
2116
2116
|
};
|
|
2117
|
-
if (d.shapeFlag & 1 &&
|
|
2118
|
-
const { leave: k, delayLeave: R } =
|
|
2119
|
-
R ? R(d.el,
|
|
2120
|
-
} else
|
|
2117
|
+
if (d.shapeFlag & 1 && E && !E.persisted) {
|
|
2118
|
+
const { leave: k, delayLeave: R } = E, I = () => k(m, w);
|
|
2119
|
+
R ? R(d.el, w, I) : I();
|
|
2120
|
+
} else w();
|
|
2121
2121
|
}, mt = (d, h) => {
|
|
2122
|
-
let
|
|
2122
|
+
let m;
|
|
2123
2123
|
for (; d !== h; )
|
|
2124
|
-
|
|
2124
|
+
m = p(d), o(d), d = m;
|
|
2125
2125
|
o(h);
|
|
2126
|
-
}, at = (d, h,
|
|
2127
|
-
const { bum: O, scope:
|
|
2128
|
-
Uo(I), Uo(x), O && oi(O),
|
|
2126
|
+
}, at = (d, h, m) => {
|
|
2127
|
+
const { bum: O, scope: E, job: w, subTree: k, um: R, m: I, a: x } = d;
|
|
2128
|
+
Uo(I), Uo(x), O && oi(O), E.stop(), w && (w.flags |= 8, Le(k, d, h, m)), R && He(R, h), He(() => {
|
|
2129
2129
|
d.isUnmounted = !0;
|
|
2130
2130
|
}, h);
|
|
2131
|
-
}, Ge = (d, h,
|
|
2132
|
-
for (let k =
|
|
2131
|
+
}, Ge = (d, h, m, O = !1, E = !1, w = 0) => {
|
|
2132
|
+
for (let k = w; k < d.length; k++) Le(d[k], h, m, O, E);
|
|
2133
2133
|
}, st = (d) => {
|
|
2134
2134
|
if (d.shapeFlag & 6) return st(d.component.subTree);
|
|
2135
2135
|
if (d.shapeFlag & 128) return d.suspense.next();
|
|
2136
|
-
const h = p(d.anchor || d.el),
|
|
2137
|
-
return
|
|
2136
|
+
const h = p(d.anchor || d.el), m = h && h[gs];
|
|
2137
|
+
return m ? p(m) : h;
|
|
2138
2138
|
};
|
|
2139
2139
|
let $e = !1;
|
|
2140
|
-
const Fe = (d, h,
|
|
2140
|
+
const Fe = (d, h, m) => {
|
|
2141
2141
|
let O;
|
|
2142
|
-
d == null ? h._vnode && (Le(h._vnode, null, null, !0), O = h._vnode.component) :
|
|
2142
|
+
d == null ? h._vnode && (Le(h._vnode, null, null, !0), O = h._vnode.component) : g(h._vnode || null, d, h, null, null, null, m), h._vnode = d, $e || ($e = !0, Fo(O), fs(), $e = !1);
|
|
2143
2143
|
}, ye = {
|
|
2144
|
-
p:
|
|
2144
|
+
p: g,
|
|
2145
2145
|
um: Le,
|
|
2146
2146
|
m: Ne,
|
|
2147
2147
|
r: gt,
|
|
@@ -2181,15 +2181,15 @@ function Qa(e) {
|
|
|
2181
2181
|
let i, o, r, s, l;
|
|
2182
2182
|
const a = e.length;
|
|
2183
2183
|
for (i = 0; i < a; i++) {
|
|
2184
|
-
const
|
|
2185
|
-
if (
|
|
2186
|
-
if (o = n[n.length - 1], e[o] <
|
|
2184
|
+
const c = e[i];
|
|
2185
|
+
if (c !== 0) {
|
|
2186
|
+
if (o = n[n.length - 1], e[o] < c) {
|
|
2187
2187
|
t[i] = o, n.push(i);
|
|
2188
2188
|
continue;
|
|
2189
2189
|
}
|
|
2190
2190
|
for (r = 0, s = n.length - 1; r < s; )
|
|
2191
|
-
l = r + s >> 1, e[n[l]] <
|
|
2192
|
-
|
|
2191
|
+
l = r + s >> 1, e[n[l]] < c ? r = l + 1 : s = l;
|
|
2192
|
+
c < e[n[r]] && (r > 0 && (t[i] = n[r - 1]), n[r] = i);
|
|
2193
2193
|
}
|
|
2194
2194
|
}
|
|
2195
2195
|
for (r = n.length, s = n[r - 1]; r-- > 0; )
|
|
@@ -2209,14 +2209,14 @@ function Is(e) {
|
|
|
2209
2209
|
return t ? Is(t.subTree) : null;
|
|
2210
2210
|
}
|
|
2211
2211
|
var As = (e) => e.__isSuspense;
|
|
2212
|
-
function
|
|
2212
|
+
function ec(e, t) {
|
|
2213
2213
|
t && t.pendingBranch ? X(e) ? t.effects.push(...e) : t.effects.push(e) : ds(e);
|
|
2214
2214
|
}
|
|
2215
2215
|
var fe = /* @__PURE__ */ Symbol.for("v-fgt"), Ai = /* @__PURE__ */ Symbol.for("v-txt"), Ft = /* @__PURE__ */ Symbol.for("v-cmt"), Ln = /* @__PURE__ */ Symbol.for("v-stc"), Dn = [], nt = null;
|
|
2216
2216
|
function D(e = !1) {
|
|
2217
2217
|
Dn.push(nt = e ? null : []);
|
|
2218
2218
|
}
|
|
2219
|
-
function
|
|
2219
|
+
function tc() {
|
|
2220
2220
|
Dn.pop(), nt = Dn[Dn.length - 1] || null;
|
|
2221
2221
|
}
|
|
2222
2222
|
var Vn = 1;
|
|
@@ -2224,10 +2224,10 @@ function qo(e, t = !1) {
|
|
|
2224
2224
|
Vn += e, e < 0 && nt && t && (nt.hasOnce = !0);
|
|
2225
2225
|
}
|
|
2226
2226
|
function Rs(e) {
|
|
2227
|
-
return e.dynamicChildren = Vn > 0 ? nt ||
|
|
2227
|
+
return e.dynamicChildren = Vn > 0 ? nt || cn : null, tc(), Vn > 0 && nt && nt.push(e), e;
|
|
2228
2228
|
}
|
|
2229
2229
|
function j(e, t, n, i, o, r) {
|
|
2230
|
-
return Rs(
|
|
2230
|
+
return Rs(_(e, t, n, i, o, r, !0));
|
|
2231
2231
|
}
|
|
2232
2232
|
function xt(e, t, n, i, o) {
|
|
2233
2233
|
return Rs(Pe(e, t, n, i, o, !0));
|
|
@@ -2238,13 +2238,13 @@ function xo(e) {
|
|
|
2238
2238
|
function Cn(e, t) {
|
|
2239
2239
|
return e.type === t.type && e.key === t.key;
|
|
2240
2240
|
}
|
|
2241
|
-
var ks = ({ key: e }) => e ?? null, ri = ({ ref: e, ref_key: t, ref_for: n }) => (typeof e == "number" && (e = "" + e), e != null ? Ee(e) || /* @__PURE__ */ ke(e) ||
|
|
2241
|
+
var ks = ({ key: e }) => e ?? null, ri = ({ ref: e, ref_key: t, ref_for: n }) => (typeof e == "number" && (e = "" + e), e != null ? Ee(e) || /* @__PURE__ */ ke(e) || ce(e) ? {
|
|
2242
2242
|
i: je,
|
|
2243
2243
|
r: e,
|
|
2244
2244
|
k: t,
|
|
2245
2245
|
f: !!n
|
|
2246
2246
|
} : e : null);
|
|
2247
|
-
function
|
|
2247
|
+
function _(e, t = null, n = null, i = 0, o = null, r = e === fe ? 0 : 1, s = !1, l = !1) {
|
|
2248
2248
|
const a = {
|
|
2249
2249
|
__v_isVNode: !0,
|
|
2250
2250
|
__v_skip: !0,
|
|
@@ -2276,30 +2276,30 @@ function y(e, t = null, n = null, i = 0, o = null, r = e === fe ? 0 : 1, s = !1,
|
|
|
2276
2276
|
};
|
|
2277
2277
|
return l ? (fi(a, n), r & 128 && e.normalize(a)) : n && (a.shapeFlag |= Ee(n) ? 8 : 16), Vn > 0 && !s && nt && (a.patchFlag > 0 || r & 6) && a.patchFlag !== 32 && nt.push(a), a;
|
|
2278
2278
|
}
|
|
2279
|
-
var Pe =
|
|
2280
|
-
function
|
|
2279
|
+
var Pe = nc;
|
|
2280
|
+
function nc(e, t = null, n = null, i = 0, o = null, r = !1) {
|
|
2281
2281
|
if ((!e || e === Ra) && (e = Ft), xo(e)) {
|
|
2282
2282
|
const l = vn(e, t, !0);
|
|
2283
2283
|
return n && fi(l, n), Vn > 0 && !r && nt && (l.shapeFlag & 6 ? nt[nt.indexOf(e)] = l : nt.push(l)), l.patchFlag = -2, l;
|
|
2284
2284
|
}
|
|
2285
|
-
if (
|
|
2286
|
-
t =
|
|
2285
|
+
if (dc(e) && (e = e.__vccOpts), t) {
|
|
2286
|
+
t = ic(t);
|
|
2287
2287
|
let { class: l, style: a } = t;
|
|
2288
2288
|
l && !Ee(l) && (t.class = Me(l)), ve(a) && (/* @__PURE__ */ Oi(a) && !X(a) && (a = ot({}, a)), t.style = qt(a));
|
|
2289
2289
|
}
|
|
2290
|
-
const s = Ee(e) ? 1 : As(e) ? 128 : Ea(e) ? 64 : ve(e) ? 4 :
|
|
2291
|
-
return
|
|
2290
|
+
const s = Ee(e) ? 1 : As(e) ? 128 : Ea(e) ? 64 : ve(e) ? 4 : ce(e) ? 2 : 0;
|
|
2291
|
+
return _(e, t, n, i, o, s, r, !0);
|
|
2292
2292
|
}
|
|
2293
|
-
function
|
|
2293
|
+
function ic(e) {
|
|
2294
2294
|
return e ? /* @__PURE__ */ Oi(e) || Ts(e) ? ot({}, e) : e : null;
|
|
2295
2295
|
}
|
|
2296
2296
|
function vn(e, t, n = !1, i = !1) {
|
|
2297
|
-
const { props: o, ref: r, patchFlag: s, children: l, transition: a } = e,
|
|
2297
|
+
const { props: o, ref: r, patchFlag: s, children: l, transition: a } = e, c = t ? oc(o || {}, t) : o, u = {
|
|
2298
2298
|
__v_isVNode: !0,
|
|
2299
2299
|
__v_skip: !0,
|
|
2300
2300
|
type: e.type,
|
|
2301
|
-
props:
|
|
2302
|
-
key:
|
|
2301
|
+
props: c,
|
|
2302
|
+
key: c && ks(c),
|
|
2303
2303
|
ref: t && t.ref ? n && r ? X(r) ? r.concat(ri(t)) : [r, ri(t)] : ri(t) : r,
|
|
2304
2304
|
scopeId: e.scopeId,
|
|
2305
2305
|
slotScopeIds: e.slotScopeIds,
|
|
@@ -2325,7 +2325,7 @@ function vn(e, t, n = !1, i = !1) {
|
|
|
2325
2325
|
ctx: e.ctx,
|
|
2326
2326
|
ce: e.ce
|
|
2327
2327
|
};
|
|
2328
|
-
return a && i && wo(
|
|
2328
|
+
return a && i && wo(u, a.clone(u)), u;
|
|
2329
2329
|
}
|
|
2330
2330
|
function Oo(e = " ", t = 0) {
|
|
2331
2331
|
return Pe(Ai, null, e, t);
|
|
@@ -2357,7 +2357,7 @@ function fi(e, t) {
|
|
|
2357
2357
|
const o = t._;
|
|
2358
2358
|
!o && !Ts(t) ? t._ctx = je : o === 3 && je && (je.slots._ === 1 ? t._ = 1 : (t._ = 2, e.patchFlag |= 1024));
|
|
2359
2359
|
}
|
|
2360
|
-
else if (
|
|
2360
|
+
else if (ce(t)) {
|
|
2361
2361
|
if (i & 65) {
|
|
2362
2362
|
fi(e, { default: t });
|
|
2363
2363
|
return;
|
|
@@ -2370,7 +2370,7 @@ function fi(e, t) {
|
|
|
2370
2370
|
t = String(t), i & 64 ? (n = 16, t = [Oo(t)]) : n = 8;
|
|
2371
2371
|
e.children = t, e.shapeFlag |= n;
|
|
2372
2372
|
}
|
|
2373
|
-
function
|
|
2373
|
+
function oc(...e) {
|
|
2374
2374
|
const t = {};
|
|
2375
2375
|
for (let n = 0; n < e.length; n++) {
|
|
2376
2376
|
const i = e[n];
|
|
@@ -2387,10 +2387,10 @@ function ou(...e) {
|
|
|
2387
2387
|
function yt(e, t, n, i = null) {
|
|
2388
2388
|
Ct(e, t, 7, [n, i]);
|
|
2389
2389
|
}
|
|
2390
|
-
var
|
|
2391
|
-
function
|
|
2392
|
-
const i = e.type, o = (t ? t.appContext : e.appContext) ||
|
|
2393
|
-
uid:
|
|
2390
|
+
var rc = bs(), sc = 0;
|
|
2391
|
+
function lc(e, t, n) {
|
|
2392
|
+
const i = e.type, o = (t ? t.appContext : e.appContext) || rc, r = {
|
|
2393
|
+
uid: sc++,
|
|
2394
2394
|
vnode: e,
|
|
2395
2395
|
type: i,
|
|
2396
2396
|
parent: t,
|
|
@@ -2455,7 +2455,7 @@ function lu(e, t, n) {
|
|
|
2455
2455
|
};
|
|
2456
2456
|
return r.ctx = { _: r }, r.root = t ? t.root : r, r.emit = Fa.bind(null, r), e.ce && e.ce(r), r;
|
|
2457
2457
|
}
|
|
2458
|
-
var tt = null, Ri = () => tt || je, hi,
|
|
2458
|
+
var tt = null, Ri = () => tt || je, hi, co;
|
|
2459
2459
|
{
|
|
2460
2460
|
const e = Ci(), t = (n, i) => {
|
|
2461
2461
|
let o;
|
|
@@ -2463,7 +2463,7 @@ var tt = null, Ri = () => tt || je, hi, uo;
|
|
|
2463
2463
|
o.length > 1 ? o.forEach((s) => s(r)) : o[0](r);
|
|
2464
2464
|
};
|
|
2465
2465
|
};
|
|
2466
|
-
hi = t("__VUE_INSTANCE_SETTERS__", (n) => tt = n),
|
|
2466
|
+
hi = t("__VUE_INSTANCE_SETTERS__", (n) => tt = n), co = t("__VUE_SSR_SETTERS__", (n) => Hn = n);
|
|
2467
2467
|
}
|
|
2468
2468
|
var Po = (e) => {
|
|
2469
2469
|
const t = tt;
|
|
@@ -2477,14 +2477,14 @@ function Ns(e) {
|
|
|
2477
2477
|
return e.vnode.shapeFlag & 4;
|
|
2478
2478
|
}
|
|
2479
2479
|
var Hn = !1;
|
|
2480
|
-
function
|
|
2481
|
-
t &&
|
|
2480
|
+
function ac(e, t = !1, n = !1) {
|
|
2481
|
+
t && co(t);
|
|
2482
2482
|
const { props: i, children: o } = e.vnode, r = Ns(e);
|
|
2483
2483
|
za(e, i, r, t), Ga(e, o, n || t);
|
|
2484
|
-
const s = r ?
|
|
2485
|
-
return t &&
|
|
2484
|
+
const s = r ? cc(e, t) : void 0;
|
|
2485
|
+
return t && co(!1), s;
|
|
2486
2486
|
}
|
|
2487
|
-
function
|
|
2487
|
+
function cc(e, t) {
|
|
2488
2488
|
const n = e.type;
|
|
2489
2489
|
e.accessCache = /* @__PURE__ */ Object.create(null), e.proxy = new Proxy(e.ctx, ka);
|
|
2490
2490
|
const { setup: i } = n;
|
|
@@ -2502,7 +2502,7 @@ function uu(e, t) {
|
|
|
2502
2502
|
} else Ls(e, t);
|
|
2503
2503
|
}
|
|
2504
2504
|
function Go(e, t, n) {
|
|
2505
|
-
|
|
2505
|
+
ce(t) ? e.type.__ssrInlineRender ? e.ssrRender = t : e.render = t : ve(t) && (e.setupState = as(t)), Ls(e, n);
|
|
2506
2506
|
}
|
|
2507
2507
|
var Yo, Xo;
|
|
2508
2508
|
function Ls(e, t, n) {
|
|
@@ -2511,17 +2511,17 @@ function Ls(e, t, n) {
|
|
|
2511
2511
|
if (!t && Yo && !i.render) {
|
|
2512
2512
|
const o = i.template || !1;
|
|
2513
2513
|
if (o) {
|
|
2514
|
-
const { isCustomElement: r, compilerOptions: s } = e.appContext.config, { delimiters: l, compilerOptions: a } = i,
|
|
2514
|
+
const { isCustomElement: r, compilerOptions: s } = e.appContext.config, { delimiters: l, compilerOptions: a } = i, c = ot(ot({
|
|
2515
2515
|
isCustomElement: r,
|
|
2516
2516
|
delimiters: l
|
|
2517
2517
|
}, s), a);
|
|
2518
|
-
i.render = Yo(o,
|
|
2518
|
+
i.render = Yo(o, c);
|
|
2519
2519
|
}
|
|
2520
2520
|
}
|
|
2521
2521
|
e.render = i.render || Ut, Xo && Xo(e);
|
|
2522
2522
|
}
|
|
2523
2523
|
}
|
|
2524
|
-
var
|
|
2524
|
+
var uc = { get(e, t) {
|
|
2525
2525
|
return Be(e, "get", ""), e[t];
|
|
2526
2526
|
} };
|
|
2527
2527
|
function Ds(e) {
|
|
@@ -2529,7 +2529,7 @@ function Ds(e) {
|
|
|
2529
2529
|
e.exposed = n || {};
|
|
2530
2530
|
};
|
|
2531
2531
|
return {
|
|
2532
|
-
attrs: new Proxy(e.attrs,
|
|
2532
|
+
attrs: new Proxy(e.attrs, uc),
|
|
2533
2533
|
slots: e.slots,
|
|
2534
2534
|
emit: e.emit,
|
|
2535
2535
|
expose: t
|
|
@@ -2546,15 +2546,15 @@ function ki(e) {
|
|
|
2546
2546
|
}
|
|
2547
2547
|
})) : e.proxy;
|
|
2548
2548
|
}
|
|
2549
|
-
function
|
|
2550
|
-
return
|
|
2549
|
+
function dc(e) {
|
|
2550
|
+
return ce(e) && "__vccOpts" in e;
|
|
2551
2551
|
}
|
|
2552
|
-
var q = (e, t) => /* @__PURE__ */ pa(e, t, Hn),
|
|
2552
|
+
var q = (e, t) => /* @__PURE__ */ pa(e, t, Hn), fc = "3.5.39", uo = void 0, Jo = typeof window < "u" && window.trustedTypes;
|
|
2553
2553
|
if (Jo) try {
|
|
2554
|
-
|
|
2554
|
+
uo = /* @__PURE__ */ Jo.createPolicy("vue", { createHTML: (e) => e });
|
|
2555
2555
|
} catch {
|
|
2556
2556
|
}
|
|
2557
|
-
var $s =
|
|
2557
|
+
var $s = uo ? (e) => uo.createHTML(e) : (e) => e, hc = "http://www.w3.org/2000/svg", pc = "http://www.w3.org/1998/Math/MathML", It = typeof document < "u" ? document : null, Zo = It && /* @__PURE__ */ It.createElement("template"), vc = {
|
|
2558
2558
|
insert: (e, t, n) => {
|
|
2559
2559
|
t.insertBefore(e, n || null);
|
|
2560
2560
|
},
|
|
@@ -2563,7 +2563,7 @@ var $s = co ? (e) => co.createHTML(e) : (e) => e, hu = "http://www.w3.org/2000/s
|
|
|
2563
2563
|
t && t.removeChild(e);
|
|
2564
2564
|
},
|
|
2565
2565
|
createElement: (e, t, n, i) => {
|
|
2566
|
-
const o = t === "svg" ? It.createElementNS(
|
|
2566
|
+
const o = t === "svg" ? It.createElementNS(hc, e) : t === "mathml" ? It.createElementNS(pc, e) : n ? It.createElement(e, { is: n }) : It.createElement(e);
|
|
2567
2567
|
return e === "select" && i && i.multiple != null && o.setAttribute("multiple", i.multiple), o;
|
|
2568
2568
|
},
|
|
2569
2569
|
createText: (e) => It.createTextNode(e),
|
|
@@ -2596,9 +2596,9 @@ var $s = co ? (e) => co.createHTML(e) : (e) => e, hu = "http://www.w3.org/2000/s
|
|
|
2596
2596
|
}
|
|
2597
2597
|
return [s ? s.nextSibling : t.firstChild, n ? n.previousSibling : t.lastChild];
|
|
2598
2598
|
}
|
|
2599
|
-
},
|
|
2600
|
-
function
|
|
2601
|
-
const i = e[
|
|
2599
|
+
}, gc = /* @__PURE__ */ Symbol("_vtc");
|
|
2600
|
+
function mc(e, t, n) {
|
|
2601
|
+
const i = e[gc];
|
|
2602
2602
|
i && (t = (t ? [t, ...i] : [...i]).join(" ")), t == null ? e.removeAttribute("class") : n ? e.setAttribute("class", t) : e.className = t;
|
|
2603
2603
|
}
|
|
2604
2604
|
var pi = /* @__PURE__ */ Symbol("_vod"), Fs = /* @__PURE__ */ Symbol("_vsh"), Qo = {
|
|
@@ -2666,8 +2666,8 @@ function vi(e, t) {
|
|
|
2666
2666
|
n[Bs] = i;
|
|
2667
2667
|
}
|
|
2668
2668
|
}
|
|
2669
|
-
var
|
|
2670
|
-
function
|
|
2669
|
+
var _c = /(?:^|;)\s*display\s*:/;
|
|
2670
|
+
function yc(e, t, n) {
|
|
2671
2671
|
const i = e.style, o = Ee(n);
|
|
2672
2672
|
let r = !1;
|
|
2673
2673
|
if (n && !o) {
|
|
@@ -2680,12 +2680,12 @@ function yu(e, t, n) {
|
|
|
2680
2680
|
for (const s in n) {
|
|
2681
2681
|
s === "display" && (r = !0);
|
|
2682
2682
|
const l = n[s];
|
|
2683
|
-
l != null ?
|
|
2683
|
+
l != null ? Sc(e, s, !Ee(t) && t ? t[s] : void 0, l) || Mn(i, s, l) : Mn(i, s, "");
|
|
2684
2684
|
}
|
|
2685
2685
|
} else if (o) {
|
|
2686
2686
|
if (t !== n) {
|
|
2687
2687
|
const s = i[Bs];
|
|
2688
|
-
s && (n += ";" + s), i.cssText = n, r =
|
|
2688
|
+
s && (n += ";" + s), i.cssText = n, r = _c.test(n);
|
|
2689
2689
|
}
|
|
2690
2690
|
} else t && e.removeAttribute("style");
|
|
2691
2691
|
pi in e && (e[pi] = r ? i.display : "", e[Fs] && (i.display = "none"));
|
|
@@ -2695,7 +2695,7 @@ function Mn(e, t, n) {
|
|
|
2695
2695
|
if (X(n)) n.forEach((i) => Mn(e, t, i));
|
|
2696
2696
|
else if (n == null && (n = ""), t.startsWith("--")) e.setProperty(t, n);
|
|
2697
2697
|
else {
|
|
2698
|
-
const i =
|
|
2698
|
+
const i = bc(e, t);
|
|
2699
2699
|
er.test(n) ? e.setProperty(rn(i), n.replace(er, ""), "important") : e[i] = n;
|
|
2700
2700
|
}
|
|
2701
2701
|
}
|
|
@@ -2704,7 +2704,7 @@ var tr = [
|
|
|
2704
2704
|
"Moz",
|
|
2705
2705
|
"ms"
|
|
2706
2706
|
], Ui = {};
|
|
2707
|
-
function
|
|
2707
|
+
function bc(e, t) {
|
|
2708
2708
|
const n = Ui[t];
|
|
2709
2709
|
if (n) return n;
|
|
2710
2710
|
let i = ht(t);
|
|
@@ -2716,7 +2716,7 @@ function bu(e, t) {
|
|
|
2716
2716
|
}
|
|
2717
2717
|
return t;
|
|
2718
2718
|
}
|
|
2719
|
-
function
|
|
2719
|
+
function Sc(e, t, n, i) {
|
|
2720
2720
|
return e.tagName === "TEXTAREA" && (t === "width" || t === "height") && Ee(i) && n === i;
|
|
2721
2721
|
}
|
|
2722
2722
|
var nr = "http://www.w3.org/1999/xlink";
|
|
@@ -2748,27 +2748,27 @@ function or(e, t, n, i, o) {
|
|
|
2748
2748
|
function Ws(e, t, n, i) {
|
|
2749
2749
|
e.addEventListener(t, n, i);
|
|
2750
2750
|
}
|
|
2751
|
-
function
|
|
2751
|
+
function wc(e, t, n, i) {
|
|
2752
2752
|
e.removeEventListener(t, n, i);
|
|
2753
2753
|
}
|
|
2754
2754
|
var rr = /* @__PURE__ */ Symbol("_vei");
|
|
2755
|
-
function
|
|
2755
|
+
function Ec(e, t, n, i, o = null) {
|
|
2756
2756
|
const r = e[rr] || (e[rr] = {}), s = r[t];
|
|
2757
2757
|
if (i && s) s.value = i;
|
|
2758
2758
|
else {
|
|
2759
|
-
const [l, a] =
|
|
2760
|
-
i ? Ws(e, l, r[t] =
|
|
2759
|
+
const [l, a] = xc(t);
|
|
2760
|
+
i ? Ws(e, l, r[t] = Mc(i, o), a) : s && (wc(e, l, s, a), r[t] = void 0);
|
|
2761
2761
|
}
|
|
2762
2762
|
}
|
|
2763
|
-
var
|
|
2764
|
-
function
|
|
2763
|
+
var Tc = /(Once|Passive|Capture)$/, Cc = /^on:?(?:Once|Passive|Capture)$/;
|
|
2764
|
+
function xc(e) {
|
|
2765
2765
|
let t, n;
|
|
2766
|
-
for (; (n = e.match(
|
|
2766
|
+
for (; (n = e.match(Tc)) && !Cc.test(e); )
|
|
2767
2767
|
t || (t = {}), e = e.slice(0, e.length - n[1].length), t[n[1].toLowerCase()] = !0;
|
|
2768
2768
|
return [e[2] === ":" ? e.slice(3) : rn(e.slice(2)), t];
|
|
2769
2769
|
}
|
|
2770
|
-
var qi = 0,
|
|
2771
|
-
function
|
|
2770
|
+
var qi = 0, Oc = /* @__PURE__ */ Promise.resolve(), Pc = () => qi || (Oc.then(() => qi = 0), qi = Date.now());
|
|
2771
|
+
function Mc(e, t) {
|
|
2772
2772
|
const n = (i) => {
|
|
2773
2773
|
if (!i._vts) i._vts = Date.now();
|
|
2774
2774
|
else if (i._vts <= n.attached) return;
|
|
@@ -2780,20 +2780,20 @@ function Mu(e, t) {
|
|
|
2780
2780
|
};
|
|
2781
2781
|
const s = o.slice(), l = [i];
|
|
2782
2782
|
for (let a = 0; a < s.length && !i._stopped; a++) {
|
|
2783
|
-
const
|
|
2784
|
-
|
|
2783
|
+
const c = s[a];
|
|
2784
|
+
c && Ct(c, t, 5, l);
|
|
2785
2785
|
}
|
|
2786
2786
|
} else Ct(o, t, 5, [i]);
|
|
2787
2787
|
};
|
|
2788
|
-
return n.value = e, n.attached =
|
|
2788
|
+
return n.value = e, n.attached = Pc(), n;
|
|
2789
2789
|
}
|
|
2790
|
-
var sr = (e) => e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) > 96 && e.charCodeAt(2) < 123,
|
|
2790
|
+
var sr = (e) => e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) > 96 && e.charCodeAt(2) < 123, Ic = (e, t, n, i, o, r) => {
|
|
2791
2791
|
const s = o === "svg";
|
|
2792
|
-
t === "class" ?
|
|
2792
|
+
t === "class" ? mc(e, i, s) : t === "style" ? yc(e, n, i) : bi(t) ? Si(t) || Ec(e, t, n, i, r) : (t[0] === "." ? (t = t.slice(1), !0) : t[0] === "^" ? (t = t.slice(1), !1) : Ac(e, t, i, s)) ? (or(e, t, i), !e.tagName.includes("-") && (t === "value" || t === "checked" || t === "selected") && ir(e, t, i, s, r, t !== "value")) : e._isVueCE && (Rc(e, t) || e._def.__asyncLoader && (/[A-Z]/.test(t) || !Ee(i))) ? or(e, ht(t), i, r, t) : (t === "true-value" ? e._trueValue = i : t === "false-value" && (e._falseValue = i), ir(e, t, i, s));
|
|
2793
2793
|
};
|
|
2794
|
-
function
|
|
2794
|
+
function Ac(e, t, n, i) {
|
|
2795
2795
|
if (i)
|
|
2796
|
-
return !!(t === "innerHTML" || t === "textContent" || t in e && sr(t) &&
|
|
2796
|
+
return !!(t === "innerHTML" || t === "textContent" || t in e && sr(t) && ce(n));
|
|
2797
2797
|
if (t === "spellcheck" || t === "draggable" || t === "translate" || t === "autocorrect" || t === "sandbox" && e.tagName === "IFRAME" || t === "form" || t === "list" && e.tagName === "INPUT" || t === "type" && e.tagName === "TEXTAREA") return !1;
|
|
2798
2798
|
if (t === "width" || t === "height") {
|
|
2799
2799
|
const o = e.tagName;
|
|
@@ -2801,7 +2801,7 @@ function Au(e, t, n, i) {
|
|
|
2801
2801
|
}
|
|
2802
2802
|
return sr(t) && Ee(n) ? !1 : t in e;
|
|
2803
2803
|
}
|
|
2804
|
-
function
|
|
2804
|
+
function Rc(e, t) {
|
|
2805
2805
|
const n = e._def.props;
|
|
2806
2806
|
if (!n) return !1;
|
|
2807
2807
|
const i = ht(t);
|
|
@@ -2810,7 +2810,7 @@ function Ru(e, t) {
|
|
|
2810
2810
|
var lr = (e) => {
|
|
2811
2811
|
const t = e.props["onUpdate:modelValue"] || !1;
|
|
2812
2812
|
return X(t) ? (n) => oi(t, n) : t;
|
|
2813
|
-
}, Ki = /* @__PURE__ */ Symbol("_assign"),
|
|
2813
|
+
}, Ki = /* @__PURE__ */ Symbol("_assign"), kc = {
|
|
2814
2814
|
deep: !0,
|
|
2815
2815
|
created(e, { value: t, modifiers: { number: n } }, i) {
|
|
2816
2816
|
const o = wi(t);
|
|
@@ -2838,7 +2838,7 @@ function ar(e, t) {
|
|
|
2838
2838
|
const s = e.options[o], l = gi(s);
|
|
2839
2839
|
if (n) if (i) {
|
|
2840
2840
|
const a = typeof l;
|
|
2841
|
-
a === "string" || a === "number" ? s.selected = t.some((
|
|
2841
|
+
a === "string" || a === "number" ? s.selected = t.some((c) => String(c) === String(l)) : s.selected = $l(t, l) > -1;
|
|
2842
2842
|
} else s.selected = t.has(l);
|
|
2843
2843
|
else if (qn(gi(s), t)) {
|
|
2844
2844
|
e.selectedIndex !== o && (e.selectedIndex = o);
|
|
@@ -2851,12 +2851,12 @@ function ar(e, t) {
|
|
|
2851
2851
|
function gi(e) {
|
|
2852
2852
|
return "_value" in e ? e._value : e.value;
|
|
2853
2853
|
}
|
|
2854
|
-
var
|
|
2854
|
+
var Nc = [
|
|
2855
2855
|
"ctrl",
|
|
2856
2856
|
"shift",
|
|
2857
2857
|
"alt",
|
|
2858
2858
|
"meta"
|
|
2859
|
-
],
|
|
2859
|
+
], Lc = {
|
|
2860
2860
|
stop: (e) => e.stopPropagation(),
|
|
2861
2861
|
prevent: (e) => e.preventDefault(),
|
|
2862
2862
|
self: (e) => e.target !== e.currentTarget,
|
|
@@ -2867,55 +2867,55 @@ var Nu = [
|
|
|
2867
2867
|
left: (e) => "button" in e && e.button !== 0,
|
|
2868
2868
|
middle: (e) => "button" in e && e.button !== 1,
|
|
2869
2869
|
right: (e) => "button" in e && e.button !== 2,
|
|
2870
|
-
exact: (e, t) =>
|
|
2870
|
+
exact: (e, t) => Nc.some((n) => e[`${n}Key`] && !t.includes(n))
|
|
2871
2871
|
}, Vs = (e, t) => {
|
|
2872
2872
|
if (!e) return e;
|
|
2873
2873
|
const n = e._withMods || (e._withMods = {}), i = t.join(".");
|
|
2874
2874
|
return n[i] || (n[i] = ((o, ...r) => {
|
|
2875
2875
|
for (let s = 0; s < t.length; s++) {
|
|
2876
|
-
const l =
|
|
2876
|
+
const l = Lc[t[s]];
|
|
2877
2877
|
if (l && l(o, t)) return;
|
|
2878
2878
|
}
|
|
2879
2879
|
return e(o, ...r);
|
|
2880
2880
|
}));
|
|
2881
|
-
},
|
|
2882
|
-
function $
|
|
2883
|
-
return
|
|
2881
|
+
}, Dc = /* @__PURE__ */ ot({ patchProp: Ic }, vc), cr;
|
|
2882
|
+
function $c() {
|
|
2883
|
+
return cr || (cr = Xa(Dc));
|
|
2884
2884
|
}
|
|
2885
|
-
var
|
|
2886
|
-
const t = $
|
|
2885
|
+
var Fc = ((...e) => {
|
|
2886
|
+
const t = $c().createApp(...e), { mount: n } = t;
|
|
2887
2887
|
return t.mount = (i) => {
|
|
2888
|
-
const o =
|
|
2888
|
+
const o = jc(i);
|
|
2889
2889
|
if (!o) return;
|
|
2890
2890
|
const r = t._component;
|
|
2891
|
-
!
|
|
2892
|
-
const s = n(o, !1,
|
|
2891
|
+
!ce(r) && !r.render && !r.template && (r.template = o.innerHTML), o.nodeType === 1 && (o.textContent = "");
|
|
2892
|
+
const s = n(o, !1, Bc(o));
|
|
2893
2893
|
return o instanceof Element && (o.removeAttribute("v-cloak"), o.setAttribute("data-v-app", "")), s;
|
|
2894
2894
|
}, t;
|
|
2895
2895
|
});
|
|
2896
|
-
function
|
|
2896
|
+
function Bc(e) {
|
|
2897
2897
|
if (e instanceof SVGElement) return "svg";
|
|
2898
2898
|
if (typeof MathMLElement == "function" && e instanceof MathMLElement) return "mathml";
|
|
2899
2899
|
}
|
|
2900
|
-
function
|
|
2900
|
+
function jc(e) {
|
|
2901
2901
|
return Ee(e) ? document.querySelector(e) : e;
|
|
2902
2902
|
}
|
|
2903
|
-
var
|
|
2903
|
+
var Wc = Object.defineProperty, Vc = Object.defineProperties, Hc = Object.getOwnPropertyDescriptors, ur = Object.getOwnPropertySymbols, zc = Object.prototype.hasOwnProperty, Uc = Object.prototype.propertyIsEnumerable, dr = (e, t, n) => t in e ? Wc(e, t, {
|
|
2904
2904
|
enumerable: !0,
|
|
2905
2905
|
configurable: !0,
|
|
2906
2906
|
writable: !0,
|
|
2907
2907
|
value: n
|
|
2908
|
-
}) : e[t] = n,
|
|
2909
|
-
for (var n in t || (t = {}))
|
|
2910
|
-
if (
|
|
2911
|
-
for (var n of
|
|
2908
|
+
}) : e[t] = n, qc = (e, t) => {
|
|
2909
|
+
for (var n in t || (t = {})) zc.call(t, n) && dr(e, n, t[n]);
|
|
2910
|
+
if (ur)
|
|
2911
|
+
for (var n of ur(t)) Uc.call(t, n) && dr(e, n, t[n]);
|
|
2912
2912
|
return e;
|
|
2913
|
-
},
|
|
2913
|
+
}, Kc = (e, t) => Vc(e, Hc(t)), Hs = "[vite-plugin-opencode]", zs = "data-opencode-config", Us = "/__opencode_context__", Gc = "/__opencode_start__", Gi = "/__opencode_sessions__", fr = "/__opencode_events__", hr = "__opencode_selected_elements__", Yc = {
|
|
2914
2914
|
PAGE_CONTEXT: "PAGE_CONTEXT",
|
|
2915
2915
|
THEME_CHANGE: "THEME_CHANGE",
|
|
2916
2916
|
SERVICE_APPEARED: "SERVICE_APPEARED",
|
|
2917
2917
|
SERVICE_GONE: "SERVICE_GONE"
|
|
2918
|
-
}, Nt =
|
|
2918
|
+
}, Nt = Kc(qc({}, Yc), {
|
|
2919
2919
|
GET_PORT_INFO: "GET_PORT_INFO",
|
|
2920
2920
|
TAB_SWITCHED: "TAB_SWITCHED",
|
|
2921
2921
|
REQUEST_PAGE_CONTEXT: "REQUEST_PAGE_CONTEXT",
|
|
@@ -2947,10 +2947,10 @@ var Wu = Object.defineProperty, Vu = Object.defineProperties, Hu = Object.getOwn
|
|
|
2947
2947
|
function $n() {
|
|
2948
2948
|
return ho;
|
|
2949
2949
|
}
|
|
2950
|
-
function
|
|
2950
|
+
function Xc(e) {
|
|
2951
2951
|
ho.verbose = e, ho.level = e ? 0 : 1;
|
|
2952
2952
|
}
|
|
2953
|
-
function
|
|
2953
|
+
function Jc() {
|
|
2954
2954
|
const e = /* @__PURE__ */ new Date();
|
|
2955
2955
|
return `${String(e.getHours()).padStart(2, "0")}:${String(e.getMinutes()).padStart(2, "0")}:${String(e.getSeconds()).padStart(2, "0")}.${String(e.getMilliseconds()).padStart(3, "0")}`;
|
|
2956
2956
|
}
|
|
@@ -2970,7 +2970,7 @@ ${e.stack}` : ""}`;
|
|
|
2970
2970
|
}
|
|
2971
2971
|
return String(e);
|
|
2972
2972
|
}
|
|
2973
|
-
function
|
|
2973
|
+
function Zc(e) {
|
|
2974
2974
|
if (!e || Object.keys(e).length === 0) return "";
|
|
2975
2975
|
const t = [];
|
|
2976
2976
|
e.module && t.push(`[${e.module}]`), e.operation && t.push(`(${e.operation})`), e.traceId && t.push(`trace:${e.traceId}`), e.duration !== void 0 && t.push(`${e.duration}ms`);
|
|
@@ -2987,17 +2987,17 @@ function Zu(e) {
|
|
|
2987
2987
|
}
|
|
2988
2988
|
return t.join(" ");
|
|
2989
2989
|
}
|
|
2990
|
-
var
|
|
2990
|
+
var Qc = Object.defineProperty, eu = Object.defineProperties, tu = Object.getOwnPropertyDescriptors, vr = Object.getOwnPropertySymbols, nu = Object.prototype.hasOwnProperty, iu = Object.prototype.propertyIsEnumerable, gr = (e, t, n) => t in e ? Qc(e, t, {
|
|
2991
2991
|
enumerable: !0,
|
|
2992
2992
|
configurable: !0,
|
|
2993
2993
|
writable: !0,
|
|
2994
2994
|
value: n
|
|
2995
2995
|
}) : e[t] = n, ei = (e, t) => {
|
|
2996
|
-
for (var n in t || (t = {}))
|
|
2996
|
+
for (var n in t || (t = {})) nu.call(t, n) && gr(e, n, t[n]);
|
|
2997
2997
|
if (vr)
|
|
2998
|
-
for (var n of vr(t))
|
|
2998
|
+
for (var n of vr(t)) iu.call(t, n) && gr(e, n, t[n]);
|
|
2999
2999
|
return e;
|
|
3000
|
-
}, ti = (e, t) =>
|
|
3000
|
+
}, ti = (e, t) => eu(e, tu(t)), ou = {
|
|
3001
3001
|
[Oe.DEBUG]: "DEBUG",
|
|
3002
3002
|
[Oe.INFO]: "INFO ",
|
|
3003
3003
|
[Oe.WARN]: "WARN ",
|
|
@@ -3013,7 +3013,7 @@ var Qu = Object.defineProperty, ec = Object.defineProperties, tc = Object.getOwn
|
|
|
3013
3013
|
magenta: "color: #cd00cd",
|
|
3014
3014
|
cyan: "color: #00cdcd",
|
|
3015
3015
|
reset: ""
|
|
3016
|
-
},
|
|
3016
|
+
}, ru = {
|
|
3017
3017
|
[Oe.DEBUG]: Ue.cyan,
|
|
3018
3018
|
[Oe.INFO]: Ue.green,
|
|
3019
3019
|
[Oe.WARN]: Ue.yellow,
|
|
@@ -3023,18 +3023,18 @@ var Qu = Object.defineProperty, ec = Object.defineProperties, tc = Object.getOwn
|
|
|
3023
3023
|
function ni(e, t, n, ...i) {
|
|
3024
3024
|
if (e < $n().level) return;
|
|
3025
3025
|
const o = [], r = [];
|
|
3026
|
-
$n().showTimestamp && (o.push("%c%s"), r.push(Ue.dim,
|
|
3027
|
-
const s =
|
|
3026
|
+
$n().showTimestamp && (o.push("%c%s"), r.push(Ue.dim, Jc())), o.push(`%c${ou[e]}`), r.push(ru[e]), o.push(`%c${Hs}`), r.push(Ue.bright);
|
|
3027
|
+
const s = Zc(n);
|
|
3028
3028
|
s && (o.push(`%c${s}`), r.push(Ue.magenta));
|
|
3029
|
-
const l = i.length > 0 ? ` ${i.map((
|
|
3029
|
+
const l = i.length > 0 ? ` ${i.map((c) => tn(c)).join(" ")}` : "";
|
|
3030
3030
|
o.push(`%c${t}${l}`), r.push(Ue.reset);
|
|
3031
3031
|
const a = o.join(" ");
|
|
3032
3032
|
if (n?.error) {
|
|
3033
|
-
const
|
|
3034
|
-
|
|
3035
|
-
${
|
|
3036
|
-
%cError: ${
|
|
3037
|
-
%cError: ${tn(
|
|
3033
|
+
const c = n.error;
|
|
3034
|
+
c instanceof Error ? e >= Oe.ERROR && $n().showTrace && c.stack ? console.error(a, ...r, `
|
|
3035
|
+
${c.stack}`) : console.error(a, ...r, `
|
|
3036
|
+
%cError: ${c.message}`, Ue.red) : console.error(a, ...r, `
|
|
3037
|
+
%cError: ${tn(c)}`, Ue.red);
|
|
3038
3038
|
return;
|
|
3039
3039
|
}
|
|
3040
3040
|
e >= Oe.ERROR ? console.error(a, ...r) : e === Oe.WARN ? console.warn(a, ...r) : e === Oe.DEBUG ? console.debug(a, ...r) : console.log(a, ...r);
|
|
@@ -3075,7 +3075,7 @@ function Bt(e) {
|
|
|
3075
3075
|
}
|
|
3076
3076
|
};
|
|
3077
3077
|
}
|
|
3078
|
-
var
|
|
3078
|
+
var su = {
|
|
3079
3079
|
checking_opencode: "检查 OpenCode 安装",
|
|
3080
3080
|
allocating_port: "分配服务端口",
|
|
3081
3081
|
preparing_runtime: "准备运行环境",
|
|
@@ -3094,7 +3094,7 @@ function qs(e, t) {
|
|
|
3094
3094
|
return e.length <= t ? e : `${e.slice(0, t)}...`;
|
|
3095
3095
|
}
|
|
3096
3096
|
var Ks = /* @__PURE__ */ Symbol("OpenCodeWidgetContext");
|
|
3097
|
-
function
|
|
3097
|
+
function lu(e) {
|
|
3098
3098
|
ya(Ks, e);
|
|
3099
3099
|
}
|
|
3100
3100
|
function mn() {
|
|
@@ -3102,23 +3102,23 @@ function mn() {
|
|
|
3102
3102
|
if (!e) throw new Error("useOpenCodeWidgetContext must be used within OpenCodeWidget");
|
|
3103
3103
|
return e;
|
|
3104
3104
|
}
|
|
3105
|
-
var
|
|
3105
|
+
var au = Object.defineProperty, mr = Object.getOwnPropertySymbols, cu = Object.prototype.hasOwnProperty, uu = Object.prototype.propertyIsEnumerable, _r = (e, t, n) => t in e ? au(e, t, {
|
|
3106
3106
|
enumerable: !0,
|
|
3107
3107
|
configurable: !0,
|
|
3108
3108
|
writable: !0,
|
|
3109
3109
|
value: n
|
|
3110
|
-
}) : e[t] = n,
|
|
3111
|
-
for (var n in t || (t = {}))
|
|
3110
|
+
}) : e[t] = n, du = (e, t) => {
|
|
3111
|
+
for (var n in t || (t = {})) cu.call(t, n) && _r(e, n, t[n]);
|
|
3112
3112
|
if (mr)
|
|
3113
|
-
for (var n of mr(t))
|
|
3113
|
+
for (var n of mr(t)) uu.call(t, n) && _r(e, n, t[n]);
|
|
3114
3114
|
return e;
|
|
3115
3115
|
}, Gs = /* @__PURE__ */ Ye({
|
|
3116
3116
|
__name: "Frame",
|
|
3117
3117
|
setup(e, { expose: t }) {
|
|
3118
|
-
const n = /* @__PURE__ */ L(null), { frameLoading: i, showEmptyState: o, showError: r, iframeSource: s, emptyStateText: l, emptyStateActionText: a, handleEmptyAction:
|
|
3119
|
-
function f(v,
|
|
3120
|
-
var
|
|
3121
|
-
(
|
|
3118
|
+
const n = /* @__PURE__ */ L(null), { frameLoading: i, showEmptyState: o, showError: r, iframeSource: s, emptyStateText: l, emptyStateActionText: a, handleEmptyAction: c, handleFrameLoaded: u } = mn();
|
|
3119
|
+
function f(v, y) {
|
|
3120
|
+
var g;
|
|
3121
|
+
(g = n.value) != null && g.contentWindow && n.value.contentWindow.postMessage(du({ type: v }, y), "*");
|
|
3122
3122
|
}
|
|
3123
3123
|
t({ sendMessageToIframe: f });
|
|
3124
3124
|
const p = {
|
|
@@ -3129,8 +3129,8 @@ var ac = Object.defineProperty, mr = Object.getOwnPropertySymbols, uc = Object.p
|
|
|
3129
3129
|
iframeSrc: s,
|
|
3130
3130
|
emptyStateText: l,
|
|
3131
3131
|
emptyStateActionText: a,
|
|
3132
|
-
handleEmptyAction:
|
|
3133
|
-
handleFrameLoaded:
|
|
3132
|
+
handleEmptyAction: c,
|
|
3133
|
+
handleFrameLoaded: u,
|
|
3134
3134
|
sendMessageToIframe: f
|
|
3135
3135
|
};
|
|
3136
3136
|
return Object.defineProperty(p, "__isScriptSetup", {
|
|
@@ -3138,11 +3138,11 @@ var ac = Object.defineProperty, mr = Object.getOwnPropertySymbols, uc = Object.p
|
|
|
3138
3138
|
value: !0
|
|
3139
3139
|
}), p;
|
|
3140
3140
|
}
|
|
3141
|
-
}),
|
|
3142
|
-
function
|
|
3143
|
-
return D(), j("div",
|
|
3144
|
-
|
|
3145
|
-
t[2] || (t[2] =
|
|
3141
|
+
}), fu = { class: "opencode-iframe-container" }, hu = { class: "opencode-empty-state-text" }, pu = ["src"];
|
|
3142
|
+
function vu(e, t, n, i, o, r) {
|
|
3143
|
+
return D(), j("div", fu, [
|
|
3144
|
+
_("div", { class: Me(["opencode-empty-state-overlay", { visible: i.showEmptyState }]) }, [ne(e.$slots, "empty-state", {}, () => [
|
|
3145
|
+
t[2] || (t[2] = _("div", { class: "opencode-empty-state-icon" }, [_("svg", {
|
|
3146
3146
|
viewBox: "0 0 24 24",
|
|
3147
3147
|
width: "48",
|
|
3148
3148
|
height: "48",
|
|
@@ -3150,36 +3150,36 @@ function vc(e, t, n, i, o, r) {
|
|
|
3150
3150
|
stroke: "currentColor",
|
|
3151
3151
|
"stroke-width": "1.5",
|
|
3152
3152
|
"aria-hidden": "true"
|
|
3153
|
-
}, [
|
|
3153
|
+
}, [_("path", {
|
|
3154
3154
|
"stroke-linecap": "round",
|
|
3155
3155
|
"stroke-linejoin": "round",
|
|
3156
3156
|
d: "M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 0 1-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z"
|
|
3157
3157
|
})])], -1)),
|
|
3158
|
-
|
|
3159
|
-
|
|
3158
|
+
_("div", hu, xe(i.emptyStateText), 1),
|
|
3159
|
+
_("button", {
|
|
3160
3160
|
class: "opencode-empty-state-btn",
|
|
3161
3161
|
type: "button",
|
|
3162
3162
|
onClick: t[0] || (t[0] = (...s) => i.handleEmptyAction && i.handleEmptyAction(...s))
|
|
3163
3163
|
}, xe(i.emptyStateActionText), 1)
|
|
3164
3164
|
])], 2),
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
ne(e.$slots, "content", {}, () => [
|
|
3165
|
+
_("div", { class: Me(["opencode-loading-overlay", { visible: i.frameLoading }]) }, [ne(e.$slots, "loading", {}, () => [t[3] || (t[3] = _("div", { class: "opencode-loading-spinner" }, null, -1)), t[4] || (t[4] = _("div", { class: "opencode-loading-text" }, "加载中...", -1))])], 2),
|
|
3166
|
+
_("div", { class: Me(["opencode-error-overlay", { visible: i.showError }]) }, [ne(e.$slots, "error")], 2),
|
|
3167
|
+
ne(e.$slots, "content", {}, () => [_("iframe", {
|
|
3168
3168
|
ref: "iframeRef",
|
|
3169
3169
|
class: "opencode-iframe",
|
|
3170
3170
|
src: i.iframeSrc,
|
|
3171
3171
|
allow: "clipboard-write; clipboard-read",
|
|
3172
3172
|
referrerpolicy: "origin",
|
|
3173
3173
|
onLoad: t[1] || (t[1] = (...s) => i.handleFrameLoaded && i.handleFrameLoaded(...s))
|
|
3174
|
-
}, null, 40,
|
|
3174
|
+
}, null, 40, pu)])
|
|
3175
3175
|
]);
|
|
3176
3176
|
}
|
|
3177
|
-
Gs.render =
|
|
3178
|
-
var
|
|
3177
|
+
Gs.render = vu;
|
|
3178
|
+
var gu = Gs, Ys = /* @__PURE__ */ Ye({
|
|
3179
3179
|
__name: "Header",
|
|
3180
3180
|
setup(e, { expose: t }) {
|
|
3181
3181
|
t();
|
|
3182
|
-
const { title: n, sessionListTitle: i, sessionListCollapsed: o, selectMode: r, selectEnabled: s, theme: l, resolvedTheme: a, minimized:
|
|
3182
|
+
const { title: n, sessionListTitle: i, sessionListCollapsed: o, selectMode: r, selectEnabled: s, theme: l, resolvedTheme: a, minimized: c, promptDockVisible: u, reviewPanelVisible: f, mode: p, displayMode: v, splitPosition: y, handleToggleSessionList: g, handleToggleSelectMode: T, handleToggleTheme: S, handleToggleDisplayMode: P, handleToggleSplitPosition: V, handleClose: b, handleToggleMinimize: z, handleTogglePromptDock: G, handleToggleReviewPanel: A, handleRefresh: W } = mn(), F = {
|
|
3183
3183
|
title: n,
|
|
3184
3184
|
sessionListTitle: i,
|
|
3185
3185
|
sessionListCollapsed: o,
|
|
@@ -3187,18 +3187,18 @@ var gc = Gs, Ys = /* @__PURE__ */ Ye({
|
|
|
3187
3187
|
selectEnabled: s,
|
|
3188
3188
|
theme: l,
|
|
3189
3189
|
resolvedTheme: a,
|
|
3190
|
-
minimized:
|
|
3191
|
-
promptDockVisible:
|
|
3190
|
+
minimized: c,
|
|
3191
|
+
promptDockVisible: u,
|
|
3192
3192
|
reviewPanelVisible: f,
|
|
3193
3193
|
mode: p,
|
|
3194
3194
|
displayMode: v,
|
|
3195
|
-
splitPosition:
|
|
3196
|
-
handleToggleSessionList:
|
|
3197
|
-
handleToggleSelectMode:
|
|
3198
|
-
handleToggleTheme:
|
|
3195
|
+
splitPosition: y,
|
|
3196
|
+
handleToggleSessionList: g,
|
|
3197
|
+
handleToggleSelectMode: T,
|
|
3198
|
+
handleToggleTheme: S,
|
|
3199
3199
|
handleToggleDisplayMode: P,
|
|
3200
3200
|
handleToggleSplitPosition: V,
|
|
3201
|
-
handleClose:
|
|
3201
|
+
handleClose: b,
|
|
3202
3202
|
handleToggleMinimize: z,
|
|
3203
3203
|
handleTogglePromptDock: G,
|
|
3204
3204
|
handleToggleReviewPanel: A,
|
|
@@ -3238,19 +3238,19 @@ var gc = Gs, Ys = /* @__PURE__ */ Ye({
|
|
|
3238
3238
|
splitPositionIconTitle: q(() => `分栏位置: ${{
|
|
3239
3239
|
left: "左侧",
|
|
3240
3240
|
right: "右侧"
|
|
3241
|
-
}[
|
|
3242
|
-
splitPositionIconLabel: q(() => `切换分栏位置 - 下一个: ${
|
|
3241
|
+
}[y.value]}`),
|
|
3242
|
+
splitPositionIconLabel: q(() => `切换分栏位置 - 下一个: ${y.value === "right" ? "左侧" : "右侧"}`)
|
|
3243
3243
|
};
|
|
3244
3244
|
return Object.defineProperty(F, "__isScriptSetup", {
|
|
3245
3245
|
enumerable: !1,
|
|
3246
3246
|
value: !0
|
|
3247
3247
|
}), F;
|
|
3248
3248
|
}
|
|
3249
|
-
}),
|
|
3249
|
+
}), mu = { class: "opencode-chat-header" }, _u = { class: "opencode-chat-header-left" }, yu = [
|
|
3250
3250
|
"title",
|
|
3251
3251
|
"aria-label",
|
|
3252
3252
|
"aria-expanded"
|
|
3253
|
-
],
|
|
3253
|
+
], bu = ["aria-pressed", "disabled"], Su = ["title", "aria-label"], wu = {
|
|
3254
3254
|
key: 0,
|
|
3255
3255
|
viewBox: "0 0 24 24",
|
|
3256
3256
|
width: "16",
|
|
@@ -3259,7 +3259,7 @@ var gc = Gs, Ys = /* @__PURE__ */ Ye({
|
|
|
3259
3259
|
stroke: "currentColor",
|
|
3260
3260
|
"stroke-width": "2",
|
|
3261
3261
|
"aria-hidden": "true"
|
|
3262
|
-
},
|
|
3262
|
+
}, Eu = {
|
|
3263
3263
|
key: 1,
|
|
3264
3264
|
viewBox: "0 0 24 24",
|
|
3265
3265
|
width: "16",
|
|
@@ -3268,7 +3268,7 @@ var gc = Gs, Ys = /* @__PURE__ */ Ye({
|
|
|
3268
3268
|
stroke: "currentColor",
|
|
3269
3269
|
"stroke-width": "2",
|
|
3270
3270
|
"aria-hidden": "true"
|
|
3271
|
-
},
|
|
3271
|
+
}, Tu = {
|
|
3272
3272
|
key: 2,
|
|
3273
3273
|
viewBox: "0 0 24 24",
|
|
3274
3274
|
width: "16",
|
|
@@ -3277,7 +3277,7 @@ var gc = Gs, Ys = /* @__PURE__ */ Ye({
|
|
|
3277
3277
|
stroke: "currentColor",
|
|
3278
3278
|
"stroke-width": "2",
|
|
3279
3279
|
"aria-hidden": "true"
|
|
3280
|
-
},
|
|
3280
|
+
}, Cu = ["title", "aria-label"], xu = {
|
|
3281
3281
|
key: 0,
|
|
3282
3282
|
viewBox: "0 0 24 24",
|
|
3283
3283
|
width: "16",
|
|
@@ -3286,7 +3286,7 @@ var gc = Gs, Ys = /* @__PURE__ */ Ye({
|
|
|
3286
3286
|
stroke: "currentColor",
|
|
3287
3287
|
"stroke-width": "2",
|
|
3288
3288
|
"aria-hidden": "true"
|
|
3289
|
-
},
|
|
3289
|
+
}, Ou = {
|
|
3290
3290
|
key: 1,
|
|
3291
3291
|
viewBox: "0 0 24 24",
|
|
3292
3292
|
width: "16",
|
|
@@ -3295,7 +3295,7 @@ var gc = Gs, Ys = /* @__PURE__ */ Ye({
|
|
|
3295
3295
|
stroke: "currentColor",
|
|
3296
3296
|
"stroke-width": "2",
|
|
3297
3297
|
"aria-hidden": "true"
|
|
3298
|
-
},
|
|
3298
|
+
}, Pu = {
|
|
3299
3299
|
key: 2,
|
|
3300
3300
|
viewBox: "0 0 24 24",
|
|
3301
3301
|
width: "16",
|
|
@@ -3304,7 +3304,7 @@ var gc = Gs, Ys = /* @__PURE__ */ Ye({
|
|
|
3304
3304
|
stroke: "currentColor",
|
|
3305
3305
|
"stroke-width": "2",
|
|
3306
3306
|
"aria-hidden": "true"
|
|
3307
|
-
},
|
|
3307
|
+
}, Mu = { class: "opencode-chat-header-title" }, Iu = { class: "opencode-chat-header-actions" }, Au = ["title", "aria-label"], Ru = {
|
|
3308
3308
|
key: 0,
|
|
3309
3309
|
viewBox: "0 0 24 24",
|
|
3310
3310
|
width: "16",
|
|
@@ -3313,7 +3313,7 @@ var gc = Gs, Ys = /* @__PURE__ */ Ye({
|
|
|
3313
3313
|
stroke: "currentColor",
|
|
3314
3314
|
"stroke-width": "2",
|
|
3315
3315
|
"aria-hidden": "true"
|
|
3316
|
-
},
|
|
3316
|
+
}, ku = {
|
|
3317
3317
|
key: 1,
|
|
3318
3318
|
viewBox: "0 0 24 24",
|
|
3319
3319
|
width: "16",
|
|
@@ -3322,19 +3322,19 @@ var gc = Gs, Ys = /* @__PURE__ */ Ye({
|
|
|
3322
3322
|
stroke: "currentColor",
|
|
3323
3323
|
"stroke-width": "2",
|
|
3324
3324
|
"aria-hidden": "true"
|
|
3325
|
-
},
|
|
3325
|
+
}, Nu = [
|
|
3326
3326
|
"title",
|
|
3327
3327
|
"aria-label",
|
|
3328
3328
|
"aria-pressed"
|
|
3329
|
-
],
|
|
3329
|
+
], Lu = [
|
|
3330
3330
|
"title",
|
|
3331
3331
|
"aria-label",
|
|
3332
3332
|
"aria-pressed"
|
|
3333
|
-
],
|
|
3333
|
+
], Du = [
|
|
3334
3334
|
"title",
|
|
3335
3335
|
"aria-label",
|
|
3336
3336
|
"aria-pressed"
|
|
3337
|
-
], $
|
|
3337
|
+
], $u = {
|
|
3338
3338
|
key: 0,
|
|
3339
3339
|
viewBox: "0 0 24 24",
|
|
3340
3340
|
width: "14",
|
|
@@ -3343,7 +3343,7 @@ var gc = Gs, Ys = /* @__PURE__ */ Ye({
|
|
|
3343
3343
|
stroke: "currentColor",
|
|
3344
3344
|
"stroke-width": "2",
|
|
3345
3345
|
"aria-hidden": "true"
|
|
3346
|
-
},
|
|
3346
|
+
}, Fu = {
|
|
3347
3347
|
key: 1,
|
|
3348
3348
|
viewBox: "0 0 24 24",
|
|
3349
3349
|
width: "14",
|
|
@@ -3353,17 +3353,17 @@ var gc = Gs, Ys = /* @__PURE__ */ Ye({
|
|
|
3353
3353
|
"stroke-width": "2",
|
|
3354
3354
|
"aria-hidden": "true"
|
|
3355
3355
|
};
|
|
3356
|
-
function
|
|
3357
|
-
return D(), j("div",
|
|
3358
|
-
|
|
3359
|
-
|
|
3356
|
+
function Bu(e, t, n, i, o, r) {
|
|
3357
|
+
return D(), j("div", mu, [
|
|
3358
|
+
_("div", _u, [
|
|
3359
|
+
_("button", {
|
|
3360
3360
|
class: Me(["opencode-header-btn session-toggle", { active: !i.sessionListCollapsed }]),
|
|
3361
3361
|
type: "button",
|
|
3362
3362
|
title: i.sessionListTitle,
|
|
3363
3363
|
"aria-label": i.sessionListTitle,
|
|
3364
3364
|
"aria-expanded": !i.sessionListCollapsed,
|
|
3365
3365
|
onClick: t[0] || (t[0] = (...s) => i.handleToggleSessionList && i.handleToggleSessionList(...s))
|
|
3366
|
-
}, [ne(e.$slots, "session-toggle-icon", {}, () => [t[10] || (t[10] =
|
|
3366
|
+
}, [ne(e.$slots, "session-toggle-icon", {}, () => [t[10] || (t[10] = _("svg", {
|
|
3367
3367
|
viewBox: "0 0 24 24",
|
|
3368
3368
|
width: "16",
|
|
3369
3369
|
height: "16",
|
|
@@ -3371,11 +3371,11 @@ function Bc(e, t, n, i, o, r) {
|
|
|
3371
3371
|
stroke: "currentColor",
|
|
3372
3372
|
"stroke-width": "2",
|
|
3373
3373
|
"aria-hidden": "true"
|
|
3374
|
-
}, [
|
|
3374
|
+
}, [_("path", {
|
|
3375
3375
|
d: "M4 6h16M4 12h16M4 18h16",
|
|
3376
3376
|
"stroke-linecap": "round"
|
|
3377
|
-
})], -1))])], 10,
|
|
3378
|
-
|
|
3377
|
+
})], -1))])], 10, yu),
|
|
3378
|
+
_("button", {
|
|
3379
3379
|
class: Me(["opencode-header-btn select-btn", { active: i.selectMode }]),
|
|
3380
3380
|
type: "button",
|
|
3381
3381
|
title: "选择页面元素 (Ctrl+P)",
|
|
@@ -3383,25 +3383,25 @@ function Bc(e, t, n, i, o, r) {
|
|
|
3383
3383
|
"aria-pressed": i.selectMode,
|
|
3384
3384
|
disabled: !i.selectEnabled,
|
|
3385
3385
|
onClick: t[1] || (t[1] = (...s) => i.handleToggleSelectMode && i.handleToggleSelectMode(...s))
|
|
3386
|
-
}, [ne(e.$slots, "select-icon", {}, () => [t[11] || (t[11] =
|
|
3386
|
+
}, [ne(e.$slots, "select-icon", {}, () => [t[11] || (t[11] = _("svg", {
|
|
3387
3387
|
viewBox: "0 0 1024 1024",
|
|
3388
3388
|
width: "16",
|
|
3389
3389
|
height: "16",
|
|
3390
3390
|
"aria-hidden": "true"
|
|
3391
|
-
}, [
|
|
3391
|
+
}, [_("path", {
|
|
3392
3392
|
fill: "currentColor",
|
|
3393
3393
|
d: "M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"
|
|
3394
|
-
}),
|
|
3394
|
+
}), _("path", {
|
|
3395
3395
|
fill: "currentColor",
|
|
3396
3396
|
d: "M512 96a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V128a32 32 0 0 1 32-32m0 576a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V704a32 32 0 0 1 32-32M96 512a32 32 0 0 1 32-32h192a32 32 0 0 1 0 64H128a32 32 0 0 1-32-32m576 0a32 32 0 0 1 32-32h192a32 32 0 1 1 0 64H704a32 32 0 0 1-32-32"
|
|
3397
|
-
})], -1))])], 10,
|
|
3398
|
-
|
|
3397
|
+
})], -1))])], 10, bu),
|
|
3398
|
+
_("button", {
|
|
3399
3399
|
class: "opencode-header-btn theme-btn",
|
|
3400
3400
|
type: "button",
|
|
3401
3401
|
title: i.themeIconTitle,
|
|
3402
3402
|
"aria-label": i.themeIconLabel,
|
|
3403
3403
|
onClick: t[2] || (t[2] = (...s) => i.handleToggleTheme && i.handleToggleTheme(...s))
|
|
3404
|
-
}, [ne(e.$slots, "theme-icon", {}, () => [i.theme === "light" ? (D(), j("svg",
|
|
3404
|
+
}, [ne(e.$slots, "theme-icon", {}, () => [i.theme === "light" ? (D(), j("svg", wu, [...t[12] || (t[12] = [ao('<circle cx="12" cy="12" r="5"></circle><line x1="12" y1="1" x2="12" y2="3"></line><line x1="12" y1="21" x2="12" y2="23"></line><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line><line x1="1" y1="12" x2="3" y2="12"></line><line x1="21" y1="12" x2="23" y2="12"></line><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line>', 9)])])) : i.theme === "dark" ? (D(), j("svg", Eu, [...t[13] || (t[13] = [_("path", { d: "M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z" }, null, -1)])])) : (D(), j("svg", Tu, [...t[14] || (t[14] = [ao('<rect x="2" y="3" width="20" height="14" rx="2" ry="2"></rect><line x1="8" y1="21" x2="16" y2="21"></line><line x1="12" y1="17" x2="12" y2="21"></line><circle cx="12" cy="10" r="3"></circle><path d="M7 7l2 2M17 7l-2 2M7 13l2-2M17 13l-2-2"></path>', 5)])]))])], 8, Su),
|
|
3405
3405
|
i.displayMode !== "extension" ? (D(), j("button", {
|
|
3406
3406
|
key: 0,
|
|
3407
3407
|
class: "opencode-header-btn display-mode-btn",
|
|
@@ -3409,72 +3409,72 @@ function Bc(e, t, n, i, o, r) {
|
|
|
3409
3409
|
title: i.displayModeIconTitle,
|
|
3410
3410
|
"aria-label": i.displayModeIconLabel,
|
|
3411
3411
|
onClick: t[3] || (t[3] = (...s) => i.handleToggleDisplayMode && i.handleToggleDisplayMode(...s))
|
|
3412
|
-
}, [ne(e.$slots, "display-mode-icon", {}, () => [i.displayMode === "bubble" ? (D(), j("svg",
|
|
3413
|
-
|
|
3412
|
+
}, [ne(e.$slots, "display-mode-icon", {}, () => [i.displayMode === "bubble" ? (D(), j("svg", xu, [...t[15] || (t[15] = [
|
|
3413
|
+
_("circle", {
|
|
3414
3414
|
cx: "12",
|
|
3415
3415
|
cy: "12",
|
|
3416
3416
|
r: "10"
|
|
3417
3417
|
}, null, -1),
|
|
3418
|
-
|
|
3418
|
+
_("path", {
|
|
3419
3419
|
d: "M8 14s1.5 2 4 2 4-2 4-2",
|
|
3420
3420
|
"stroke-linecap": "round"
|
|
3421
3421
|
}, null, -1),
|
|
3422
|
-
|
|
3422
|
+
_("line", {
|
|
3423
3423
|
x1: "9",
|
|
3424
3424
|
y1: "9",
|
|
3425
3425
|
x2: "9.01",
|
|
3426
3426
|
y2: "9",
|
|
3427
3427
|
"stroke-linecap": "round"
|
|
3428
3428
|
}, null, -1),
|
|
3429
|
-
|
|
3429
|
+
_("line", {
|
|
3430
3430
|
x1: "15",
|
|
3431
3431
|
y1: "9",
|
|
3432
3432
|
x2: "15.01",
|
|
3433
3433
|
y2: "9",
|
|
3434
3434
|
"stroke-linecap": "round"
|
|
3435
3435
|
}, null, -1)
|
|
3436
|
-
])])) : i.displayMode === "split" ? (D(), j("svg",
|
|
3436
|
+
])])) : i.displayMode === "split" ? (D(), j("svg", Ou, [...t[16] || (t[16] = [_("rect", {
|
|
3437
3437
|
x: "3",
|
|
3438
3438
|
y: "3",
|
|
3439
3439
|
width: "18",
|
|
3440
3440
|
height: "18",
|
|
3441
3441
|
rx: "2"
|
|
3442
|
-
}, null, -1),
|
|
3442
|
+
}, null, -1), _("line", {
|
|
3443
3443
|
x1: "12",
|
|
3444
3444
|
y1: "3",
|
|
3445
3445
|
x2: "12",
|
|
3446
3446
|
y2: "21"
|
|
3447
|
-
}, null, -1)])])) : (D(), j("svg",
|
|
3448
|
-
|
|
3447
|
+
}, null, -1)])])) : (D(), j("svg", Pu, [...t[17] || (t[17] = [
|
|
3448
|
+
_("rect", {
|
|
3449
3449
|
x: "3",
|
|
3450
3450
|
y: "3",
|
|
3451
3451
|
width: "8",
|
|
3452
3452
|
height: "8",
|
|
3453
3453
|
rx: "1"
|
|
3454
3454
|
}, null, -1),
|
|
3455
|
-
|
|
3455
|
+
_("rect", {
|
|
3456
3456
|
x: "15",
|
|
3457
3457
|
y: "3",
|
|
3458
3458
|
width: "6",
|
|
3459
3459
|
height: "8",
|
|
3460
3460
|
rx: "1"
|
|
3461
3461
|
}, null, -1),
|
|
3462
|
-
|
|
3462
|
+
_("rect", {
|
|
3463
3463
|
x: "3",
|
|
3464
3464
|
y: "15",
|
|
3465
3465
|
width: "8",
|
|
3466
3466
|
height: "6",
|
|
3467
3467
|
rx: "1"
|
|
3468
3468
|
}, null, -1),
|
|
3469
|
-
|
|
3469
|
+
_("circle", {
|
|
3470
3470
|
cx: "18",
|
|
3471
3471
|
cy: "18",
|
|
3472
3472
|
r: "3"
|
|
3473
3473
|
}, null, -1)
|
|
3474
|
-
])]))])], 8,
|
|
3474
|
+
])]))])], 8, Cu)) : ae("v-if", !0)
|
|
3475
3475
|
]),
|
|
3476
|
-
|
|
3477
|
-
|
|
3476
|
+
_("span", Mu, xe(i.title), 1),
|
|
3477
|
+
_("div", Iu, [
|
|
3478
3478
|
i.displayMode === "extension" ? (D(), j("button", {
|
|
3479
3479
|
key: 0,
|
|
3480
3480
|
class: "opencode-header-btn refresh-btn",
|
|
@@ -3482,7 +3482,7 @@ function Bc(e, t, n, i, o, r) {
|
|
|
3482
3482
|
title: "刷新面板",
|
|
3483
3483
|
"aria-label": "刷新面板",
|
|
3484
3484
|
onClick: t[4] || (t[4] = (...s) => i.handleRefresh && i.handleRefresh(...s))
|
|
3485
|
-
}, [...t[18] || (t[18] = [
|
|
3485
|
+
}, [...t[18] || (t[18] = [_("svg", {
|
|
3486
3486
|
viewBox: "0 0 24 24",
|
|
3487
3487
|
width: "16",
|
|
3488
3488
|
height: "16",
|
|
@@ -3490,7 +3490,7 @@ function Bc(e, t, n, i, o, r) {
|
|
|
3490
3490
|
stroke: "currentColor",
|
|
3491
3491
|
"stroke-width": "2",
|
|
3492
3492
|
"aria-hidden": "true"
|
|
3493
|
-
}, [
|
|
3493
|
+
}, [_("polyline", { points: "23,4 23,10 17,10" }), _("path", { d: "M20.49 15a9 9 0 1 1-2.12-9.36L23 10" })], -1)])])) : ae("v-if", !0),
|
|
3494
3494
|
i.isSplitMode && i.displayMode !== "extension" ? (D(), j("button", {
|
|
3495
3495
|
key: 1,
|
|
3496
3496
|
class: "opencode-header-btn split-position-btn",
|
|
@@ -3498,37 +3498,37 @@ function Bc(e, t, n, i, o, r) {
|
|
|
3498
3498
|
title: i.splitPositionIconTitle,
|
|
3499
3499
|
"aria-label": i.splitPositionIconLabel,
|
|
3500
3500
|
onClick: t[5] || (t[5] = (...s) => i.handleToggleSplitPosition && i.handleToggleSplitPosition(...s))
|
|
3501
|
-
}, [ne(e.$slots, "split-position-icon", {}, () => [i.splitPosition === "right" ? (D(), j("svg",
|
|
3501
|
+
}, [ne(e.$slots, "split-position-icon", {}, () => [i.splitPosition === "right" ? (D(), j("svg", Ru, [...t[19] || (t[19] = [_("rect", {
|
|
3502
3502
|
x: "3",
|
|
3503
3503
|
y: "3",
|
|
3504
3504
|
width: "18",
|
|
3505
3505
|
height: "18",
|
|
3506
3506
|
rx: "2"
|
|
3507
|
-
}, null, -1),
|
|
3507
|
+
}, null, -1), _("line", {
|
|
3508
3508
|
x1: "15",
|
|
3509
3509
|
y1: "3",
|
|
3510
3510
|
x2: "15",
|
|
3511
3511
|
y2: "21"
|
|
3512
|
-
}, null, -1)])])) : (D(), j("svg",
|
|
3512
|
+
}, null, -1)])])) : (D(), j("svg", ku, [...t[20] || (t[20] = [_("rect", {
|
|
3513
3513
|
x: "3",
|
|
3514
3514
|
y: "3",
|
|
3515
3515
|
width: "18",
|
|
3516
3516
|
height: "18",
|
|
3517
3517
|
rx: "2"
|
|
3518
|
-
}, null, -1),
|
|
3518
|
+
}, null, -1), _("line", {
|
|
3519
3519
|
x1: "9",
|
|
3520
3520
|
y1: "3",
|
|
3521
3521
|
x2: "9",
|
|
3522
3522
|
y2: "21"
|
|
3523
|
-
}, null, -1)])]))])], 8,
|
|
3524
|
-
|
|
3523
|
+
}, null, -1)])]))])], 8, Au)) : ae("v-if", !0),
|
|
3524
|
+
_("button", {
|
|
3525
3525
|
class: Me(["opencode-header-btn review-panel", { active: i.reviewPanelVisible }]),
|
|
3526
3526
|
type: "button",
|
|
3527
3527
|
title: i.reviewPanelVisible ? "收起审查面板" : "展开审查面板",
|
|
3528
3528
|
"aria-label": i.reviewPanelVisible ? "收起审查面板" : "展开审查面板",
|
|
3529
3529
|
"aria-pressed": i.reviewPanelVisible,
|
|
3530
3530
|
onClick: t[6] || (t[6] = (...s) => i.handleToggleReviewPanel && i.handleToggleReviewPanel(...s))
|
|
3531
|
-
}, [...t[21] || (t[21] = [
|
|
3531
|
+
}, [...t[21] || (t[21] = [_("svg", {
|
|
3532
3532
|
viewBox: "0 0 24 24",
|
|
3533
3533
|
width: "15",
|
|
3534
3534
|
height: "15",
|
|
@@ -3538,7 +3538,7 @@ function Bc(e, t, n, i, o, r) {
|
|
|
3538
3538
|
"stroke-linecap": "round",
|
|
3539
3539
|
"stroke-linejoin": "round",
|
|
3540
3540
|
"aria-hidden": "true"
|
|
3541
|
-
}, [
|
|
3541
|
+
}, [_("polyline", { points: "16 18 22 12 16 6" }), _("polyline", { points: "8 6 2 12 8 18" })], -1)])], 10, Nu),
|
|
3542
3542
|
i.isSplitMode ? ae("v-if", !0) : (D(), j("button", {
|
|
3543
3543
|
key: 2,
|
|
3544
3544
|
class: "opencode-header-btn prompt-dock",
|
|
@@ -3547,7 +3547,7 @@ function Bc(e, t, n, i, o, r) {
|
|
|
3547
3547
|
"aria-label": i.promptDockVisible ? "隐藏对话框" : "显示对话框",
|
|
3548
3548
|
"aria-pressed": i.promptDockVisible,
|
|
3549
3549
|
onClick: t[7] || (t[7] = (...s) => i.handleTogglePromptDock && i.handleTogglePromptDock(...s))
|
|
3550
|
-
}, [ne(e.$slots, "prompt-dock-icon", {}, () => [t[22] || (t[22] =
|
|
3550
|
+
}, [ne(e.$slots, "prompt-dock-icon", {}, () => [t[22] || (t[22] = _("svg", {
|
|
3551
3551
|
viewBox: "0 0 24 24",
|
|
3552
3552
|
width: "14",
|
|
3553
3553
|
height: "14",
|
|
@@ -3555,7 +3555,7 @@ function Bc(e, t, n, i, o, r) {
|
|
|
3555
3555
|
stroke: "currentColor",
|
|
3556
3556
|
"stroke-width": "2",
|
|
3557
3557
|
"aria-hidden": "true"
|
|
3558
|
-
}, [
|
|
3558
|
+
}, [_("path", { d: "M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z" })], -1))])], 8, Lu)),
|
|
3559
3559
|
i.isSplitMode ? ae("v-if", !0) : (D(), j("button", {
|
|
3560
3560
|
key: 3,
|
|
3561
3561
|
class: "opencode-header-btn minimize",
|
|
@@ -3564,7 +3564,7 @@ function Bc(e, t, n, i, o, r) {
|
|
|
3564
3564
|
"aria-label": i.minimized ? "展开面板" : "最小化面板",
|
|
3565
3565
|
"aria-pressed": i.minimized,
|
|
3566
3566
|
onClick: t[8] || (t[8] = (...s) => i.handleToggleMinimize && i.handleToggleMinimize(...s))
|
|
3567
|
-
}, [ne(e.$slots, "minimize-icon", {}, () => [i.minimized ? (D(), j("svg", $
|
|
3567
|
+
}, [ne(e.$slots, "minimize-icon", {}, () => [i.minimized ? (D(), j("svg", $u, [...t[23] || (t[23] = [_("path", { d: "M8 3v3a2 2 0 0 1-2 2H3m18 0h-3a2 2 0 0 1-2-2V3m0 18v-3a2 2 0 0 1 2-2h3M3 16h3a2 2 0 0 1 2 2v3" }, null, -1)])])) : (D(), j("svg", Fu, [...t[24] || (t[24] = [_("path", { d: "M8 3v3a2 2 0 0 1-2 2H3m18 0h-3a2 2 0 0 1-2-2V3m0 18v-3a2 2 0 0 1 2-2h3M3 16h3a2 2 0 0 1 2 2v3" }, null, -1)])]))])], 8, Du)),
|
|
3568
3568
|
i.isSplitMode ? ae("v-if", !0) : (D(), j("button", {
|
|
3569
3569
|
key: 4,
|
|
3570
3570
|
class: "opencode-header-btn close",
|
|
@@ -3572,7 +3572,7 @@ function Bc(e, t, n, i, o, r) {
|
|
|
3572
3572
|
title: "关闭",
|
|
3573
3573
|
"aria-label": "关闭面板",
|
|
3574
3574
|
onClick: t[9] || (t[9] = (...s) => i.handleClose && i.handleClose(...s))
|
|
3575
|
-
}, [ne(e.$slots, "close-icon", {}, () => [t[25] || (t[25] =
|
|
3575
|
+
}, [ne(e.$slots, "close-icon", {}, () => [t[25] || (t[25] = _("svg", {
|
|
3576
3576
|
viewBox: "0 0 24 24",
|
|
3577
3577
|
width: "14",
|
|
3578
3578
|
height: "14",
|
|
@@ -3580,16 +3580,16 @@ function Bc(e, t, n, i, o, r) {
|
|
|
3580
3580
|
stroke: "currentColor",
|
|
3581
3581
|
"stroke-width": "2",
|
|
3582
3582
|
"aria-hidden": "true"
|
|
3583
|
-
}, [
|
|
3583
|
+
}, [_("path", { d: "M18 6L6 18M6 6l12 12" })], -1))])]))
|
|
3584
3584
|
])
|
|
3585
3585
|
]);
|
|
3586
3586
|
}
|
|
3587
|
-
Ys.render =
|
|
3588
|
-
var
|
|
3587
|
+
Ys.render = Bu;
|
|
3588
|
+
var ju = Ys, Xs = /* @__PURE__ */ Ye({
|
|
3589
3589
|
__name: "SessionList",
|
|
3590
3590
|
setup(e, { expose: t }) {
|
|
3591
3591
|
t();
|
|
3592
|
-
const { sessionListCollapsed: n, sessionItems: i, loadingSessionList: o, showSessionListSkeleton: r, handleCreateSession: s, handleSelectSession: l, handleDeleteSession: a, sessionKey:
|
|
3592
|
+
const { sessionListCollapsed: n, sessionItems: i, loadingSessionList: o, showSessionListSkeleton: r, handleCreateSession: s, handleSelectSession: l, handleDeleteSession: a, sessionKey: c, sessionStates: u } = mn(), f = /* @__PURE__ */ L(!1);
|
|
3593
3593
|
let p = null;
|
|
3594
3594
|
Ie(n, () => {
|
|
3595
3595
|
f.value = !0, p && clearTimeout(p), p = setTimeout(() => {
|
|
@@ -3597,11 +3597,11 @@ var jc = Ys, Xs = /* @__PURE__ */ Ye({
|
|
|
3597
3597
|
}, 200);
|
|
3598
3598
|
});
|
|
3599
3599
|
const v = q(() => !!(f.value || r.value));
|
|
3600
|
-
function
|
|
3601
|
-
var
|
|
3602
|
-
return !
|
|
3600
|
+
function y(T) {
|
|
3601
|
+
var S, P;
|
|
3602
|
+
return !u?.value || !T ? !1 : (P = (S = u.value[T]) == null ? void 0 : S.thinking) != null ? P : !1;
|
|
3603
3603
|
}
|
|
3604
|
-
const
|
|
3604
|
+
const g = {
|
|
3605
3605
|
collapsed: n,
|
|
3606
3606
|
sessions: i,
|
|
3607
3607
|
loadingSessionList: o,
|
|
@@ -3609,44 +3609,44 @@ var jc = Ys, Xs = /* @__PURE__ */ Ye({
|
|
|
3609
3609
|
handleCreateSession: s,
|
|
3610
3610
|
handleSelectSession: l,
|
|
3611
3611
|
handleDeleteSession: a,
|
|
3612
|
-
sessionKey:
|
|
3613
|
-
sessionStates:
|
|
3612
|
+
sessionKey: c,
|
|
3613
|
+
sessionStates: u,
|
|
3614
3614
|
isAnimating: f,
|
|
3615
3615
|
get animTimer() {
|
|
3616
3616
|
return p;
|
|
3617
3617
|
},
|
|
3618
|
-
set animTimer(
|
|
3619
|
-
p =
|
|
3618
|
+
set animTimer(T) {
|
|
3619
|
+
p = T;
|
|
3620
3620
|
},
|
|
3621
3621
|
showSkeleton: v,
|
|
3622
|
-
isSessionThinking:
|
|
3622
|
+
isSessionThinking: y
|
|
3623
3623
|
};
|
|
3624
|
-
return Object.defineProperty(
|
|
3624
|
+
return Object.defineProperty(g, "__isScriptSetup", {
|
|
3625
3625
|
enumerable: !1,
|
|
3626
3626
|
value: !0
|
|
3627
|
-
}),
|
|
3627
|
+
}), g;
|
|
3628
3628
|
}
|
|
3629
|
-
}),
|
|
3629
|
+
}), Wu = {
|
|
3630
3630
|
key: 0,
|
|
3631
3631
|
class: "opencode-session-list-header"
|
|
3632
|
-
},
|
|
3632
|
+
}, Vu = {
|
|
3633
3633
|
key: 2,
|
|
3634
3634
|
class: "opencode-session-skeleton visible"
|
|
3635
|
-
},
|
|
3635
|
+
}, Hu = {
|
|
3636
3636
|
class: "opencode-session-list-content",
|
|
3637
3637
|
role: "listbox",
|
|
3638
3638
|
"aria-labelledby": "opencode-session-list-title"
|
|
3639
|
-
},
|
|
3639
|
+
}, zu = {
|
|
3640
3640
|
key: 0,
|
|
3641
3641
|
class: "opencode-session-list-loading-overlay"
|
|
3642
|
-
},
|
|
3642
|
+
}, Uu = ["aria-selected", "onClick"], qu = { class: "opencode-session-header" }, Ku = { class: "opencode-session-title" }, Gu = {
|
|
3643
3643
|
key: 0,
|
|
3644
3644
|
class: "opencode-thinking-loading"
|
|
3645
|
-
},
|
|
3646
|
-
function
|
|
3645
|
+
}, Yu = ["aria-label", "onClick"], Xu = { class: "opencode-session-meta" };
|
|
3646
|
+
function Ju(e, t, n, i, o, r) {
|
|
3647
3647
|
return D(), j("div", { class: Me(["opencode-session-list", { collapsed: i.collapsed }]) }, [
|
|
3648
3648
|
ae(" Header "),
|
|
3649
|
-
i.showSkeleton ? (D(), j(fe, { key: 1 }, [ae(" Header Skeleton "), t[2] || (t[2] =
|
|
3649
|
+
i.showSkeleton ? (D(), j(fe, { key: 1 }, [ae(" Header Skeleton "), t[2] || (t[2] = _("div", { class: "opencode-session-header-skeleton visible" }, [_("div", { class: "opencode-skeleton-header-title" }), _("div", { class: "opencode-skeleton-header-btn" })], -1))], 2112)) : (D(), j("div", Wu, [t[1] || (t[1] = _("span", { id: "opencode-session-list-title" }, "会话列表", -1)), _("button", {
|
|
3650
3650
|
class: "opencode-new-session-btn",
|
|
3651
3651
|
type: "button",
|
|
3652
3652
|
title: "新建会话",
|
|
@@ -3654,10 +3654,10 @@ function Jc(e, t, n, i, o, r) {
|
|
|
3654
3654
|
onClick: t[0] || (t[0] = (...s) => i.handleCreateSession && i.handleCreateSession(...s))
|
|
3655
3655
|
}, " + ")])),
|
|
3656
3656
|
ae(" Content Skeleton "),
|
|
3657
|
-
i.showSkeleton ? (D(), j("div",
|
|
3657
|
+
i.showSkeleton ? (D(), j("div", Vu, [(D(), j(fe, null, Wn(5, (s) => _("div", {
|
|
3658
3658
|
key: `skeleton-${s}`,
|
|
3659
3659
|
class: "opencode-skeleton-item"
|
|
3660
|
-
}, [...t[3] || (t[3] = [
|
|
3660
|
+
}, [...t[3] || (t[3] = [_("div", { class: "opencode-skeleton-title" }, null, -1), _("div", { class: "opencode-skeleton-meta" }, null, -1)])])), 64))])) : (D(), j(fe, { key: 3 }, [ae(" Content "), _("div", Hu, [i.loadingSessionList ? (D(), j("div", zu, [...t[4] || (t[4] = [_("div", { class: "opencode-loading-spinner small" }, null, -1)])])) : ae("v-if", !0), i.sessions.length > 0 ? (D(!0), j(fe, { key: 1 }, Wn(i.sessions, (s) => (D(), j("div", {
|
|
3661
3661
|
key: s[i.sessionKey],
|
|
3662
3662
|
class: Me(["opencode-session-item", {
|
|
3663
3663
|
active: s.active,
|
|
@@ -3666,16 +3666,16 @@ function Jc(e, t, n, i, o, r) {
|
|
|
3666
3666
|
role: "option",
|
|
3667
3667
|
"aria-selected": s.active,
|
|
3668
3668
|
onClick: (l) => i.handleSelectSession(s)
|
|
3669
|
-
}, [
|
|
3669
|
+
}, [_("div", qu, [_("div", Ku, [i.isSessionThinking(s.id) ? (D(), j("span", Gu)) : ae("v-if", !0), Oo(" " + xe(s.title), 1)]), _("button", {
|
|
3670
3670
|
class: "opencode-session-delete-btn",
|
|
3671
3671
|
type: "button",
|
|
3672
3672
|
"aria-label": `删除会话: ${s.title}`,
|
|
3673
3673
|
onClick: Vs((l) => i.handleDeleteSession(s), ["stop"])
|
|
3674
|
-
}, " × ", 8,
|
|
3674
|
+
}, " × ", 8, Yu)]), _("div", Xu, xe(s.meta), 1)], 10, Uu))), 128)) : (D(), j(fe, { key: 2 }, [ae(" Empty State "), ne(e.$slots, "empty")], 64))])], 2112))
|
|
3675
3675
|
], 2);
|
|
3676
3676
|
}
|
|
3677
|
-
Xs.render =
|
|
3678
|
-
var
|
|
3677
|
+
Xs.render = Ju;
|
|
3678
|
+
var Zu = Xs, Js = /* @__PURE__ */ Ye({
|
|
3679
3679
|
__name: "SelectedNodes",
|
|
3680
3680
|
setup(e, { expose: t }) {
|
|
3681
3681
|
t();
|
|
@@ -3691,20 +3691,20 @@ var Zc = Xs, Js = /* @__PURE__ */ Ye({
|
|
|
3691
3691
|
value: !0
|
|
3692
3692
|
}), l;
|
|
3693
3693
|
}
|
|
3694
|
-
}),
|
|
3694
|
+
}), Qu = {
|
|
3695
3695
|
class: "opencode-selected-nodes",
|
|
3696
3696
|
role: "list",
|
|
3697
3697
|
"aria-label": "已选元素列表"
|
|
3698
3698
|
}, ed = ["onClick"], td = { class: "opencode-node-content" }, nd = { class: "opencode-node-text" }, id = { class: "opencode-node-file" }, od = ["aria-label", "onClick"];
|
|
3699
3699
|
function rd(e, t, n, i, o, r) {
|
|
3700
3700
|
return D(), j("div", { class: Me(["opencode-right-toolbar", { collapsed: i.items.length === 0 }]) }, [
|
|
3701
|
-
t[1] || (t[1] =
|
|
3702
|
-
|
|
3701
|
+
t[1] || (t[1] = _("div", { class: "opencode-selected-nodes-header" }, [_("div", { class: "opencode-selected-nodes-title" }, "已选节点"), _("div", { class: "opencode-selected-nodes-desc" }, "选中的节点会在对话时一起发送给助手")], -1)),
|
|
3702
|
+
_("div", Qu, [(D(!0), j(fe, null, Wn(i.items, (s, l) => (D(), j("div", {
|
|
3703
3703
|
key: s.key,
|
|
3704
3704
|
class: "opencode-selected-node",
|
|
3705
3705
|
role: "listitem",
|
|
3706
3706
|
onClick: (a) => i.handleClickSelectedNode(s)
|
|
3707
|
-
}, [
|
|
3707
|
+
}, [_("div", td, [_("span", nd, xe(s.description), 1), _("span", id, xe(s.panelFileText), 1)]), _("button", {
|
|
3708
3708
|
class: "opencode-node-remove",
|
|
3709
3709
|
type: "button",
|
|
3710
3710
|
"aria-label": `移除元素: ${s.description}`,
|
|
@@ -3724,17 +3724,17 @@ function rd(e, t, n, i, o, r) {
|
|
|
3724
3724
|
], 2);
|
|
3725
3725
|
}
|
|
3726
3726
|
Js.render = rd;
|
|
3727
|
-
var sd = Js, ld = Object.defineProperty, ad = Object.defineProperties,
|
|
3727
|
+
var sd = Js, ld = Object.defineProperty, ad = Object.defineProperties, cd = Object.getOwnPropertyDescriptors, yr = Object.getOwnPropertySymbols, ud = Object.prototype.hasOwnProperty, dd = Object.prototype.propertyIsEnumerable, br = (e, t, n) => t in e ? ld(e, t, {
|
|
3728
3728
|
enumerable: !0,
|
|
3729
3729
|
configurable: !0,
|
|
3730
3730
|
writable: !0,
|
|
3731
3731
|
value: n
|
|
3732
3732
|
}) : e[t] = n, fd = (e, t) => {
|
|
3733
|
-
for (var n in t || (t = {}))
|
|
3733
|
+
for (var n in t || (t = {})) ud.call(t, n) && br(e, n, t[n]);
|
|
3734
3734
|
if (yr)
|
|
3735
3735
|
for (var n of yr(t)) dd.call(t, n) && br(e, n, t[n]);
|
|
3736
3736
|
return e;
|
|
3737
|
-
}, hd = (e, t) => ad(e,
|
|
3737
|
+
}, hd = (e, t) => ad(e, cd(t)), Zs = /* @__PURE__ */ Ye(hd(fd({}, { name: "ResizeHandle" }), {
|
|
3738
3738
|
__name: "ResizeHandle",
|
|
3739
3739
|
props: {
|
|
3740
3740
|
width: {
|
|
@@ -3766,20 +3766,20 @@ var sd = Js, ld = Object.defineProperty, ad = Object.defineProperties, ud = Obje
|
|
|
3766
3766
|
setup(e, { expose: t, emit: n }) {
|
|
3767
3767
|
t();
|
|
3768
3768
|
const i = e, o = n, r = /* @__PURE__ */ L(!1), s = /* @__PURE__ */ L(0), l = /* @__PURE__ */ L(0), a = (v) => {
|
|
3769
|
-
v.preventDefault(), r.value = !0, s.value = v.clientX, l.value = i.width, o("resize-start"), document.addEventListener("mousemove",
|
|
3770
|
-
},
|
|
3769
|
+
v.preventDefault(), r.value = !0, s.value = v.clientX, l.value = i.width, o("resize-start"), document.addEventListener("mousemove", c), document.addEventListener("mouseup", u);
|
|
3770
|
+
}, c = (v) => {
|
|
3771
3771
|
if (!r.value) return;
|
|
3772
|
-
let
|
|
3773
|
-
i.position === "right" ?
|
|
3774
|
-
const
|
|
3775
|
-
o("resize",
|
|
3776
|
-
},
|
|
3777
|
-
r.value = !1, o("resize-end"), document.removeEventListener("mousemove",
|
|
3772
|
+
let y;
|
|
3773
|
+
i.position === "right" ? y = s.value - v.clientX : y = v.clientX - s.value;
|
|
3774
|
+
const g = Math.max(i.minWidth, Math.min(i.maxWidth, l.value + y));
|
|
3775
|
+
o("resize", g);
|
|
3776
|
+
}, u = () => {
|
|
3777
|
+
r.value = !1, o("resize-end"), document.removeEventListener("mousemove", c), document.removeEventListener("mouseup", u);
|
|
3778
3778
|
}, f = () => {
|
|
3779
3779
|
o("resize", 500);
|
|
3780
3780
|
};
|
|
3781
3781
|
qe(() => {
|
|
3782
|
-
document.removeEventListener("mousemove",
|
|
3782
|
+
document.removeEventListener("mousemove", c), document.removeEventListener("mouseup", u);
|
|
3783
3783
|
});
|
|
3784
3784
|
const p = {
|
|
3785
3785
|
props: i,
|
|
@@ -3788,8 +3788,8 @@ var sd = Js, ld = Object.defineProperty, ad = Object.defineProperties, ud = Obje
|
|
|
3788
3788
|
startX: s,
|
|
3789
3789
|
startWidth: l,
|
|
3790
3790
|
handleMouseDown: a,
|
|
3791
|
-
handleMouseMove:
|
|
3792
|
-
handleMouseUp:
|
|
3791
|
+
handleMouseMove: c,
|
|
3792
|
+
handleMouseUp: u,
|
|
3793
3793
|
handleDoubleClick: f
|
|
3794
3794
|
};
|
|
3795
3795
|
return Object.defineProperty(p, "__isScriptSetup", {
|
|
@@ -3912,9 +3912,9 @@ var vd = Zs, gd = Object.defineProperty, md = Object.defineProperties, _d = Obje
|
|
|
3912
3912
|
"-animationOrigin.x": v.animationOrigin.x,
|
|
3913
3913
|
"-animationOrigin.y": v.animationOrigin.y
|
|
3914
3914
|
}));
|
|
3915
|
-
const i = e, o = n, r = ys(), s = /* @__PURE__ */ L(null), l = (v,
|
|
3916
|
-
var
|
|
3917
|
-
(
|
|
3915
|
+
const i = e, o = n, r = ys(), s = /* @__PURE__ */ L(null), l = (v, y) => {
|
|
3916
|
+
var g;
|
|
3917
|
+
(g = s.value) == null || g.sendMessageToIframe(v, y);
|
|
3918
3918
|
};
|
|
3919
3919
|
t({
|
|
3920
3920
|
sendMessageToIframe: l,
|
|
@@ -3949,9 +3949,9 @@ var vd = Zs, gd = Object.defineProperty, md = Object.defineProperties, _d = Obje
|
|
|
3949
3949
|
"split-right": i.mode === "split" && i.splitPosition === "right" && !i.extension,
|
|
3950
3950
|
"extension-mode": i.extension
|
|
3951
3951
|
}]),
|
|
3952
|
-
Frame:
|
|
3953
|
-
Header:
|
|
3954
|
-
SessionList:
|
|
3952
|
+
Frame: gu,
|
|
3953
|
+
Header: ju,
|
|
3954
|
+
SessionList: Zu,
|
|
3955
3955
|
SelectedNodes: sd,
|
|
3956
3956
|
ResizeHandle: vd
|
|
3957
3957
|
};
|
|
@@ -4025,23 +4025,23 @@ function Id(e, t, n, i, o, r) {
|
|
|
4025
4025
|
"aria-expanded": n.open,
|
|
4026
4026
|
"aria-label": "切换面板",
|
|
4027
4027
|
onClick: i.handleToggle
|
|
4028
|
-
}, [
|
|
4029
|
-
n.open && n.splitPosition === "right" ? (D(), j("svg", Cd, [...t[0] || (t[0] = [
|
|
4028
|
+
}, [_("span", Td, [
|
|
4029
|
+
n.open && n.splitPosition === "right" ? (D(), j("svg", Cd, [...t[0] || (t[0] = [_("path", {
|
|
4030
4030
|
d: "M9 18l6-6-6-6",
|
|
4031
4031
|
"stroke-linecap": "round",
|
|
4032
4032
|
"stroke-linejoin": "round"
|
|
4033
4033
|
}, null, -1)])])) : ae("v-if", !0),
|
|
4034
|
-
!n.open && n.splitPosition === "right" ? (D(), j("svg", xd, [...t[1] || (t[1] = [
|
|
4034
|
+
!n.open && n.splitPosition === "right" ? (D(), j("svg", xd, [...t[1] || (t[1] = [_("path", {
|
|
4035
4035
|
d: "M15 18l-6-6 6-6",
|
|
4036
4036
|
"stroke-linecap": "round",
|
|
4037
4037
|
"stroke-linejoin": "round"
|
|
4038
4038
|
}, null, -1)])])) : ae("v-if", !0),
|
|
4039
|
-
n.open && n.splitPosition === "left" ? (D(), j("svg", Od, [...t[2] || (t[2] = [
|
|
4039
|
+
n.open && n.splitPosition === "left" ? (D(), j("svg", Od, [...t[2] || (t[2] = [_("path", {
|
|
4040
4040
|
d: "M15 18l-6-6 6-6",
|
|
4041
4041
|
"stroke-linecap": "round",
|
|
4042
4042
|
"stroke-linejoin": "round"
|
|
4043
4043
|
}, null, -1)])])) : ae("v-if", !0),
|
|
4044
|
-
!n.open && n.splitPosition === "left" ? (D(), j("svg", Pd, [...t[3] || (t[3] = [
|
|
4044
|
+
!n.open && n.splitPosition === "left" ? (D(), j("svg", Pd, [...t[3] || (t[3] = [_("path", {
|
|
4045
4045
|
d: "M9 18l6-6-6-6",
|
|
4046
4046
|
"stroke-linecap": "round",
|
|
4047
4047
|
"stroke-linejoin": "round"
|
|
@@ -4064,9 +4064,9 @@ function Id(e, t, n, i, o, r) {
|
|
|
4064
4064
|
key: "2"
|
|
4065
4065
|
} : void 0
|
|
4066
4066
|
]), 1024),
|
|
4067
|
-
|
|
4067
|
+
_("div", Md, [
|
|
4068
4068
|
Pe(i.SessionList, null, {
|
|
4069
|
-
empty: Se(() => [ne(e.$slots, "sessions-empty", {}, () => [t[4] || (t[4] =
|
|
4069
|
+
empty: Se(() => [ne(e.$slots, "sessions-empty", {}, () => [t[4] || (t[4] = _("div", { class: "opencode-session-empty" }, "暂无会话", -1))])]),
|
|
4070
4070
|
_: 3
|
|
4071
4071
|
}),
|
|
4072
4072
|
Pe(i.Frame, { ref: "frameRef" }, di({ _: 2 }, [
|
|
@@ -4111,7 +4111,7 @@ var Ad = Qs, el = /* @__PURE__ */ Ye({
|
|
|
4111
4111
|
}
|
|
4112
4112
|
}), Rd = { class: "opencode-hint-shortcut" };
|
|
4113
4113
|
function kd(e, t, n, i, o, r) {
|
|
4114
|
-
return D(), j("div", { class: Me(["opencode-select-mode-hint", { visible: i.visible }]) }, [t[0] || (t[0] = ao('<span class="opencode-hint-main"><span class="opencode-hint-icon" aria-hidden="true"><svg viewBox="0 0 24 24" width="18" height="18" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="8"></circle><circle cx="12" cy="12" r="2.5" fill="currentColor"></circle><line x1="12" y1="2" x2="12" y2="5"></line><line x1="12" y1="19" x2="12" y2="22"></line><line x1="2" y1="12" x2="5" y2="12"></line><line x1="19" y1="12" x2="22" y2="12"></line></svg></span><span class="opencode-hint-text">选择模式已开启 · 点击元素进行选择</span></span>', 1)),
|
|
4114
|
+
return D(), j("div", { class: Me(["opencode-select-mode-hint", { visible: i.visible }]) }, [t[0] || (t[0] = ao('<span class="opencode-hint-main"><span class="opencode-hint-icon" aria-hidden="true"><svg viewBox="0 0 24 24" width="18" height="18" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="8"></circle><circle cx="12" cy="12" r="2.5" fill="currentColor"></circle><line x1="12" y1="2" x2="12" y2="5"></line><line x1="12" y1="19" x2="12" y2="22"></line><line x1="2" y1="12" x2="5" y2="12"></line><line x1="19" y1="12" x2="22" y2="12"></line></svg></span><span class="opencode-hint-text">选择模式已开启 · 点击元素进行选择</span></span>', 1)), _("span", Rd, xe(i.shortcutLabel), 1)], 2);
|
|
4115
4115
|
}
|
|
4116
4116
|
el.render = kd;
|
|
4117
4117
|
var Nd = el, Ld = Object.defineProperty, Dd = Object.defineProperties, $d = Object.getOwnPropertyDescriptors, Er = Object.getOwnPropertySymbols, Fd = Object.prototype.hasOwnProperty, Bd = Object.prototype.propertyIsEnumerable, Tr = (e, t, n) => t in e ? Ld(e, t, {
|
|
@@ -4166,45 +4166,45 @@ var Nd = el, Ld = Object.defineProperty, Dd = Object.defineProperties, $d = Obje
|
|
|
4166
4166
|
y: 0,
|
|
4167
4167
|
width: 0,
|
|
4168
4168
|
height: 0
|
|
4169
|
-
}), l = (N) => N !== null && typeof N == "object", a = q(() => l(i.gap) ? i.gap.x : i.gap),
|
|
4170
|
-
top:
|
|
4171
|
-
right:
|
|
4172
|
-
bottom: f.value - s.value.height -
|
|
4169
|
+
}), l = (N) => N !== null && typeof N == "object", a = q(() => l(i.gap) ? i.gap.x : i.gap), c = q(() => l(i.gap) ? i.gap.y : i.gap), u = /* @__PURE__ */ L(typeof window < "u" ? window.innerWidth : 0), f = /* @__PURE__ */ L(typeof window < "u" ? window.innerHeight : 0), p = q(() => ({
|
|
4170
|
+
top: c.value,
|
|
4171
|
+
right: u.value - s.value.width - a.value,
|
|
4172
|
+
bottom: f.value - s.value.height - c.value,
|
|
4173
4173
|
left: a.value
|
|
4174
|
-
})), v = (N, U) => N.reduce((ie, Y) => Math.abs(ie - U) < Math.abs(Y - U) ? ie : Y),
|
|
4175
|
-
if (i.magnetic === "x") if (
|
|
4176
|
-
else if (
|
|
4174
|
+
})), v = (N, U) => N.reduce((ie, Y) => Math.abs(ie - U) < Math.abs(Y - U) ? ie : Y), y = () => {
|
|
4175
|
+
if (i.magnetic === "x") if (S.value === "left") s.value.x = p.value.left;
|
|
4176
|
+
else if (S.value === "right") s.value.x = p.value.right;
|
|
4177
4177
|
else {
|
|
4178
4178
|
const N = v([p.value.left, p.value.right], s.value.x);
|
|
4179
|
-
s.value.x = N,
|
|
4179
|
+
s.value.x = N, S.value = N === p.value.left ? "left" : "right";
|
|
4180
4180
|
}
|
|
4181
4181
|
if (i.magnetic === "y") {
|
|
4182
4182
|
const N = v([p.value.top, p.value.bottom], s.value.y);
|
|
4183
4183
|
s.value.y = N;
|
|
4184
4184
|
}
|
|
4185
|
-
},
|
|
4185
|
+
}, g = /* @__PURE__ */ L(!1), T = /* @__PURE__ */ L(!1), S = /* @__PURE__ */ L(null), P = q(() => {
|
|
4186
4186
|
const N = {};
|
|
4187
|
-
return N.transform = `translate3d(${`${s.value.x}px`}, ${`${s.value.y}px`}, 0)`,
|
|
4187
|
+
return N.transform = `translate3d(${`${s.value.x}px`}, ${`${s.value.y}px`}, 0)`, g.value || !T.value ? N.transition = "none" : N.transition = "transform 0.3s ease", N;
|
|
4188
4188
|
}), V = () => {
|
|
4189
4189
|
if (!r.value || typeof window > "u") return;
|
|
4190
4190
|
const N = r.value.getBoundingClientRect(), { offset: U } = i;
|
|
4191
|
-
let ie = U ? U.x :
|
|
4192
|
-
const ee =
|
|
4193
|
-
ie < a.value && (ie = a.value), ie > ee && (ie = ee), Y <
|
|
4191
|
+
let ie = U ? U.x : u.value - N.width - a.value, Y = U ? U.y : f.value - N.height - c.value;
|
|
4192
|
+
const ee = u.value - N.width - a.value, Ae = f.value - N.height - c.value;
|
|
4193
|
+
ie < a.value && (ie = a.value), ie > ee && (ie = ee), Y < c.value && (Y = c.value), Y > Ae && (Y = Ae);
|
|
4194
4194
|
const Je = s.value.x, Ke = s.value.y;
|
|
4195
4195
|
if (s.value = {
|
|
4196
4196
|
x: ie,
|
|
4197
4197
|
y: Y,
|
|
4198
4198
|
width: N.width,
|
|
4199
4199
|
height: N.height
|
|
4200
|
-
}, !
|
|
4200
|
+
}, !g.value && (i.magnetic === "x" && S.value ? S.value === "left" ? s.value.x = p.value.left : s.value.x = p.value.right : y(), s.value.x !== Je || s.value.y !== Ke)) {
|
|
4201
4201
|
const Ne = {
|
|
4202
4202
|
x: s.value.x,
|
|
4203
4203
|
y: s.value.y
|
|
4204
4204
|
};
|
|
4205
4205
|
o("update:offset", Ne), o("offset-change", Ne);
|
|
4206
4206
|
}
|
|
4207
|
-
},
|
|
4207
|
+
}, b = {
|
|
4208
4208
|
startX: /* @__PURE__ */ L(0),
|
|
4209
4209
|
startY: /* @__PURE__ */ L(0),
|
|
4210
4210
|
deltaX: /* @__PURE__ */ L(0),
|
|
@@ -4224,17 +4224,17 @@ var Nd = el, Ld = Object.defineProperty, Dd = Object.defineProperties, $d = Obje
|
|
|
4224
4224
|
};
|
|
4225
4225
|
let z = 0, G = 0;
|
|
4226
4226
|
const A = (N) => {
|
|
4227
|
-
|
|
4227
|
+
b.start(N), g.value = !0, z = s.value.x, G = s.value.y, document.body.classList.add("floating-bubble-dragging"), "touches" in N || (window.addEventListener("mousemove", W, { passive: !1 }), window.addEventListener("mouseup", F));
|
|
4228
4228
|
}, W = (N) => {
|
|
4229
4229
|
N.cancelable && N.preventDefault();
|
|
4230
|
-
const U =
|
|
4231
|
-
if (
|
|
4230
|
+
const U = b.isTap.value;
|
|
4231
|
+
if (b.move(N), U && !b.isTap.value && o("drag-start"), i.axis !== "lock" && !b.isTap.value) {
|
|
4232
4232
|
if (i.axis === "x" || i.axis === "xy") {
|
|
4233
|
-
let Y = z +
|
|
4233
|
+
let Y = z + b.deltaX.value;
|
|
4234
4234
|
Y < p.value.left && (Y = p.value.left), Y > p.value.right && (Y = p.value.right), s.value.x = Y;
|
|
4235
4235
|
}
|
|
4236
4236
|
if (i.axis === "y" || i.axis === "xy") {
|
|
4237
|
-
let Y = G +
|
|
4237
|
+
let Y = G + b.deltaY.value;
|
|
4238
4238
|
Y < p.value.top && (Y = p.value.top), Y > p.value.bottom && (Y = p.value.bottom), s.value.y = Y;
|
|
4239
4239
|
}
|
|
4240
4240
|
const ie = {
|
|
@@ -4244,12 +4244,12 @@ var Nd = el, Ld = Object.defineProperty, Dd = Object.defineProperties, $d = Obje
|
|
|
4244
4244
|
o("update:offset", ie);
|
|
4245
4245
|
}
|
|
4246
4246
|
}, F = (N) => {
|
|
4247
|
-
|
|
4248
|
-
if (i.magnetic === "x" && !
|
|
4249
|
-
const U = s.value.x + s.value.width / 2, ie =
|
|
4250
|
-
|
|
4247
|
+
g.value = !1, document.body.classList.remove("floating-bubble-dragging"), N && !("touches" in N) && N.type === "mouseup" && (window.removeEventListener("mousemove", W), window.removeEventListener("mouseup", F)), requestAnimationFrame(() => {
|
|
4248
|
+
if (i.magnetic === "x" && !b.isTap.value) {
|
|
4249
|
+
const U = s.value.x + s.value.width / 2, ie = u.value / 2;
|
|
4250
|
+
S.value = U < ie ? "left" : "right";
|
|
4251
4251
|
}
|
|
4252
|
-
if (
|
|
4252
|
+
if (y(), !b.isTap.value) {
|
|
4253
4253
|
o("drag-end");
|
|
4254
4254
|
const U = {
|
|
4255
4255
|
x: s.value.x,
|
|
@@ -4259,23 +4259,23 @@ var Nd = el, Ld = Object.defineProperty, Dd = Object.defineProperties, $d = Obje
|
|
|
4259
4259
|
}
|
|
4260
4260
|
});
|
|
4261
4261
|
}, Q = (N) => {
|
|
4262
|
-
|
|
4262
|
+
b.isTap.value ? o("click", N) : N.stopPropagation();
|
|
4263
4263
|
}, J = () => {
|
|
4264
|
-
typeof window < "u" && (
|
|
4264
|
+
typeof window < "u" && (u.value = window.innerWidth, f.value = window.innerHeight);
|
|
4265
4265
|
};
|
|
4266
4266
|
Xe(() => {
|
|
4267
4267
|
V(), requestAnimationFrame(() => {
|
|
4268
|
-
|
|
4268
|
+
T.value = !0;
|
|
4269
4269
|
}), typeof window < "u" && window.addEventListener("resize", J), r.value && r.value.addEventListener("touchmove", W, { passive: !1 });
|
|
4270
4270
|
}), qe(() => {
|
|
4271
4271
|
document.body.classList.remove("floating-bubble-dragging"), typeof window < "u" && (window.removeEventListener("resize", J), window.removeEventListener("mousemove", W), window.removeEventListener("mouseup", F)), r.value && r.value.removeEventListener("touchmove", W);
|
|
4272
4272
|
}), Ie([
|
|
4273
|
-
|
|
4273
|
+
u,
|
|
4274
4274
|
f,
|
|
4275
4275
|
a,
|
|
4276
|
-
|
|
4276
|
+
c
|
|
4277
4277
|
], V), Ie(() => i.offset, (N) => {
|
|
4278
|
-
N && (
|
|
4278
|
+
N && (S.value = null), V();
|
|
4279
4279
|
}, { deep: !0 }), t({ offset: q(() => ({
|
|
4280
4280
|
x: s.value.x,
|
|
4281
4281
|
y: s.value.y
|
|
@@ -4287,18 +4287,18 @@ var Nd = el, Ld = Object.defineProperty, Dd = Object.defineProperties, $d = Obje
|
|
|
4287
4287
|
state: s,
|
|
4288
4288
|
isObject: l,
|
|
4289
4289
|
gapX: a,
|
|
4290
|
-
gapY:
|
|
4291
|
-
windowWidth:
|
|
4290
|
+
gapY: c,
|
|
4291
|
+
windowWidth: u,
|
|
4292
4292
|
windowHeight: f,
|
|
4293
4293
|
boundary: p,
|
|
4294
4294
|
closest: v,
|
|
4295
|
-
applyMagnetic:
|
|
4296
|
-
dragging:
|
|
4297
|
-
initialized:
|
|
4298
|
-
magneticSide:
|
|
4295
|
+
applyMagnetic: y,
|
|
4296
|
+
dragging: g,
|
|
4297
|
+
initialized: T,
|
|
4298
|
+
magneticSide: S,
|
|
4299
4299
|
rootStyle: P,
|
|
4300
4300
|
updateState: V,
|
|
4301
|
-
touch:
|
|
4301
|
+
touch: b,
|
|
4302
4302
|
get prevX() {
|
|
4303
4303
|
return z;
|
|
4304
4304
|
},
|
|
@@ -4324,7 +4324,7 @@ var Nd = el, Ld = Object.defineProperty, Dd = Object.defineProperties, $d = Obje
|
|
|
4324
4324
|
}
|
|
4325
4325
|
}));
|
|
4326
4326
|
function Vd(e, t, n, i, o, r) {
|
|
4327
|
-
return D(), xt(ms, { to: n.teleport }, [
|
|
4327
|
+
return D(), xt(ms, { to: n.teleport }, [_("div", {
|
|
4328
4328
|
ref: "rootRef",
|
|
4329
4329
|
class: "floating-bubble",
|
|
4330
4330
|
style: qt(i.rootStyle),
|
|
@@ -4392,31 +4392,31 @@ var Kd = nl, il = /* @__PURE__ */ Ye({
|
|
|
4392
4392
|
__name: "Trigger",
|
|
4393
4393
|
emits: ["drag-start", "drag-end"],
|
|
4394
4394
|
setup(e, { expose: t, emit: n }) {
|
|
4395
|
-
const { buttonActive: i, open: o, hotkeyLabel: r, thinking: s, resolvedTheme: l, handleToggle: a, bubbleOffset:
|
|
4396
|
-
f.value =
|
|
4395
|
+
const { buttonActive: i, open: o, hotkeyLabel: r, thinking: s, resolvedTheme: l, handleToggle: a, bubbleOffset: c, handleBubbleOffsetChange: u } = mn(), f = /* @__PURE__ */ L(c.value), p = n, v = (g) => {
|
|
4396
|
+
f.value = g, u(g);
|
|
4397
4397
|
};
|
|
4398
|
-
Ie(
|
|
4399
|
-
f.value =
|
|
4398
|
+
Ie(c, (g) => {
|
|
4399
|
+
f.value = g;
|
|
4400
4400
|
}), t({ offset: f });
|
|
4401
|
-
const
|
|
4401
|
+
const y = {
|
|
4402
4402
|
active: i,
|
|
4403
4403
|
open: o,
|
|
4404
4404
|
hotkeyLabel: r,
|
|
4405
4405
|
thinking: s,
|
|
4406
4406
|
resolvedTheme: l,
|
|
4407
4407
|
handleToggle: a,
|
|
4408
|
-
bubbleOffset:
|
|
4409
|
-
handleBubbleOffsetChange:
|
|
4408
|
+
bubbleOffset: c,
|
|
4409
|
+
handleBubbleOffsetChange: u,
|
|
4410
4410
|
offset: f,
|
|
4411
4411
|
emit: p,
|
|
4412
4412
|
handleOffsetChange: v,
|
|
4413
4413
|
FloatingBubble: Hd,
|
|
4414
4414
|
OpenCodeLogo: Kd
|
|
4415
4415
|
};
|
|
4416
|
-
return Object.defineProperty(
|
|
4416
|
+
return Object.defineProperty(y, "__isScriptSetup", {
|
|
4417
4417
|
enumerable: !1,
|
|
4418
4418
|
value: !0
|
|
4419
|
-
}),
|
|
4419
|
+
}), y;
|
|
4420
4420
|
}
|
|
4421
4421
|
}), Gd = ["aria-expanded", "title"];
|
|
4422
4422
|
function Yd(e, t, n, i, o, r) {
|
|
@@ -4432,7 +4432,7 @@ function Yd(e, t, n, i, o, r) {
|
|
|
4432
4432
|
onDragStart: t[1] || (t[1] = (s) => i.emit("drag-start")),
|
|
4433
4433
|
onDragEnd: t[2] || (t[2] = (s) => i.emit("drag-end"))
|
|
4434
4434
|
}, {
|
|
4435
|
-
default: Se(() => [
|
|
4435
|
+
default: Se(() => [_("button", {
|
|
4436
4436
|
class: Me(["opencode-button", {
|
|
4437
4437
|
active: i.active,
|
|
4438
4438
|
thinking: i.thinking,
|
|
@@ -4451,14 +4451,14 @@ var Xd = il, Jd = (e, t, n) => new Promise((i, o) => {
|
|
|
4451
4451
|
var r = (a) => {
|
|
4452
4452
|
try {
|
|
4453
4453
|
l(n.next(a));
|
|
4454
|
-
} catch (
|
|
4455
|
-
o(
|
|
4454
|
+
} catch (c) {
|
|
4455
|
+
o(c);
|
|
4456
4456
|
}
|
|
4457
4457
|
}, s = (a) => {
|
|
4458
4458
|
try {
|
|
4459
4459
|
l(n.throw(a));
|
|
4460
|
-
} catch (
|
|
4461
|
-
o(
|
|
4460
|
+
} catch (c) {
|
|
4461
|
+
o(c);
|
|
4462
4462
|
}
|
|
4463
4463
|
}, l = (a) => a.done ? i(a.value) : Promise.resolve(a.value).then(r, s);
|
|
4464
4464
|
l((n = n.apply(e, t)).next());
|
|
@@ -4477,8 +4477,8 @@ function ef(e) {
|
|
|
4477
4477
|
return `${(n = e.innerText) != null && n.trim() ? `${qs(e.innerText.trim(), 30)} · ` : ""}${i}${o}`;
|
|
4478
4478
|
}
|
|
4479
4479
|
function tf(e) {
|
|
4480
|
-
const t = q(() => e.selectMode.value), n = q(() => (e.selectedElements.value || []).map((a,
|
|
4481
|
-
key: Zd(a,
|
|
4480
|
+
const t = q(() => e.selectMode.value), n = q(() => (e.selectedElements.value || []).map((a, c) => ({
|
|
4481
|
+
key: Zd(a, c),
|
|
4482
4482
|
description: a.description || "未知元素",
|
|
4483
4483
|
bubbleFileText: Qd(a),
|
|
4484
4484
|
panelFileText: ef(a),
|
|
@@ -4488,49 +4488,49 @@ function tf(e) {
|
|
|
4488
4488
|
e.onToggleSelectMode(!e.selectMode.value);
|
|
4489
4489
|
}
|
|
4490
4490
|
function r(a) {
|
|
4491
|
-
const
|
|
4492
|
-
if (!
|
|
4493
|
-
let
|
|
4494
|
-
if (
|
|
4495
|
-
const f =
|
|
4496
|
-
f && (
|
|
4491
|
+
const c = a.element.description;
|
|
4492
|
+
if (!c) return;
|
|
4493
|
+
let u = null;
|
|
4494
|
+
if (c.includes("#")) {
|
|
4495
|
+
const f = c.match(/#([^.[\s]+)/);
|
|
4496
|
+
f && (u = document.getElementById(f[1]));
|
|
4497
4497
|
}
|
|
4498
|
-
if (!
|
|
4499
|
-
const f =
|
|
4498
|
+
if (!u && c.includes(".")) {
|
|
4499
|
+
const f = c.match(/^([a-z]+)\.([^[\s]+)/i);
|
|
4500
4500
|
if (f) {
|
|
4501
4501
|
const p = `${f[1]}.${f[2].split(".").filter(Boolean).join(".")}`;
|
|
4502
|
-
|
|
4502
|
+
u = document.querySelector(p);
|
|
4503
4503
|
}
|
|
4504
4504
|
}
|
|
4505
|
-
if (!
|
|
4506
|
-
const f =
|
|
4507
|
-
|
|
4505
|
+
if (!u && c.match(/^([a-z]+)/i)) {
|
|
4506
|
+
const f = c.split(/[.[\s]/)[0];
|
|
4507
|
+
u = document.querySelector(f);
|
|
4508
4508
|
}
|
|
4509
|
-
if (
|
|
4510
|
-
|
|
4509
|
+
if (u) {
|
|
4510
|
+
u.scrollIntoView({
|
|
4511
4511
|
behavior: "smooth",
|
|
4512
4512
|
block: "center"
|
|
4513
4513
|
});
|
|
4514
4514
|
const f = document.createElement("div");
|
|
4515
4515
|
f.className = "opencode-element-highlight-temp";
|
|
4516
4516
|
const p = document.querySelector(".opencode-widget");
|
|
4517
|
-
let v = "#3b82f6",
|
|
4517
|
+
let v = "#3b82f6", y = "rgba(59, 130, 246, 0.1)";
|
|
4518
4518
|
if (p) {
|
|
4519
|
-
const
|
|
4520
|
-
v =
|
|
4519
|
+
const T = getComputedStyle(p);
|
|
4520
|
+
v = T.getPropertyValue("--oc-primary").trim() || v, y = T.getPropertyValue("--oc-primary-bg").trim() || y;
|
|
4521
4521
|
}
|
|
4522
|
-
f.style.border = `2px solid ${v}`, f.style.background =
|
|
4523
|
-
const
|
|
4524
|
-
f.style.top = `${
|
|
4522
|
+
f.style.border = `2px solid ${v}`, f.style.background = y;
|
|
4523
|
+
const g = u.getBoundingClientRect();
|
|
4524
|
+
f.style.top = `${g.top + window.scrollY}px`, f.style.left = `${g.left + window.scrollX}px`, f.style.width = `${g.width}px`, f.style.height = `${g.height}px`, document.body.appendChild(f), setTimeout(() => {
|
|
4525
4525
|
f.remove();
|
|
4526
4526
|
}, 2e3);
|
|
4527
4527
|
}
|
|
4528
4528
|
}
|
|
4529
|
-
function s(a,
|
|
4529
|
+
function s(a, c, u) {
|
|
4530
4530
|
e.onRemoveSelectedNode({
|
|
4531
4531
|
element: a.element,
|
|
4532
|
-
index:
|
|
4533
|
-
source:
|
|
4532
|
+
index: c,
|
|
4533
|
+
source: u
|
|
4534
4534
|
});
|
|
4535
4535
|
}
|
|
4536
4536
|
function l() {
|
|
@@ -4552,14 +4552,14 @@ var nf = (e, t, n) => new Promise((i, o) => {
|
|
|
4552
4552
|
var r = (a) => {
|
|
4553
4553
|
try {
|
|
4554
4554
|
l(n.next(a));
|
|
4555
|
-
} catch (
|
|
4556
|
-
o(
|
|
4555
|
+
} catch (c) {
|
|
4556
|
+
o(c);
|
|
4557
4557
|
}
|
|
4558
4558
|
}, s = (a) => {
|
|
4559
4559
|
try {
|
|
4560
4560
|
l(n.throw(a));
|
|
4561
|
-
} catch (
|
|
4562
|
-
o(
|
|
4561
|
+
} catch (c) {
|
|
4562
|
+
o(c);
|
|
4563
4563
|
}
|
|
4564
4564
|
}, l = (a) => a.done ? i(a.value) : Promise.resolve(a.value).then(r, s);
|
|
4565
4565
|
l((n = n.apply(e, t)).next());
|
|
@@ -4609,21 +4609,21 @@ function sf(e) {
|
|
|
4609
4609
|
}
|
|
4610
4610
|
let i = null, o = null;
|
|
4611
4611
|
Xe(() => {
|
|
4612
|
-
typeof window > "u" || (t.value = n(), i = window.matchMedia("(prefers-color-scheme: dark)"), o = (
|
|
4613
|
-
t.value =
|
|
4612
|
+
typeof window > "u" || (t.value = n(), i = window.matchMedia("(prefers-color-scheme: dark)"), o = (g) => {
|
|
4613
|
+
t.value = g.matches ? "dark" : "light";
|
|
4614
4614
|
}, i.addEventListener("change", o));
|
|
4615
4615
|
}), qe(() => {
|
|
4616
4616
|
i && o && i.removeEventListener("change", o);
|
|
4617
4617
|
});
|
|
4618
|
-
const r = q(() => e.theme.value === "auto" ? t.value : e.theme.value), s = q(() => ["opencode-widget", `opencode-theme-${r.value}`]), l = q(() => !!(e.open.value || e.selectMode.value)), a = q(() => e.iframeSrc.value || "about:blank"),
|
|
4619
|
-
function
|
|
4620
|
-
var
|
|
4618
|
+
const r = q(() => e.theme.value === "auto" ? t.value : e.theme.value), s = q(() => ["opencode-widget", `opencode-theme-${r.value}`]), l = q(() => !!(e.open.value || e.selectMode.value)), a = q(() => e.iframeSrc.value || "about:blank"), c = q(() => e.sessionListCollapsed.value ? "展开会话列表" : "折叠会话列表");
|
|
4619
|
+
function u() {
|
|
4620
|
+
var g;
|
|
4621
4621
|
if (e.selectMode.value) {
|
|
4622
|
-
(
|
|
4622
|
+
(g = e.onToggleSelectMode) == null || g.call(e, !1);
|
|
4623
4623
|
return;
|
|
4624
4624
|
}
|
|
4625
|
-
const
|
|
4626
|
-
e.onToggle(
|
|
4625
|
+
const T = !e.open.value;
|
|
4626
|
+
e.onToggle(T);
|
|
4627
4627
|
}
|
|
4628
4628
|
function f() {
|
|
4629
4629
|
e.onClose();
|
|
@@ -4634,22 +4634,22 @@ function sf(e) {
|
|
|
4634
4634
|
function v() {
|
|
4635
4635
|
e.onEmptyAction();
|
|
4636
4636
|
}
|
|
4637
|
-
function
|
|
4638
|
-
var
|
|
4639
|
-
const
|
|
4640
|
-
(
|
|
4637
|
+
function y() {
|
|
4638
|
+
var g;
|
|
4639
|
+
const T = (Yi.indexOf(e.theme.value) + 1) % Yi.length, S = Yi[T];
|
|
4640
|
+
(g = e.onToggleTheme) == null || g.call(e, S);
|
|
4641
4641
|
}
|
|
4642
4642
|
return {
|
|
4643
4643
|
buttonActive: l,
|
|
4644
4644
|
containerClasses: s,
|
|
4645
4645
|
iframeSource: a,
|
|
4646
|
-
sessionListTitle:
|
|
4646
|
+
sessionListTitle: c,
|
|
4647
4647
|
resolvedTheme: r,
|
|
4648
4648
|
handleClose: f,
|
|
4649
4649
|
handleEmptyAction: v,
|
|
4650
|
-
handleToggle:
|
|
4650
|
+
handleToggle: u,
|
|
4651
4651
|
handleToggleSessionList: p,
|
|
4652
|
-
handleToggleTheme:
|
|
4652
|
+
handleToggleTheme: y
|
|
4653
4653
|
};
|
|
4654
4654
|
}
|
|
4655
4655
|
function ol(e) {
|
|
@@ -4674,7 +4674,7 @@ var af = "CssSelectorGenerator";
|
|
|
4674
4674
|
function mi(e = "unknown problem", ...t) {
|
|
4675
4675
|
console.warn(`${af}: ${e}`, ...t);
|
|
4676
4676
|
}
|
|
4677
|
-
var
|
|
4677
|
+
var cf = {
|
|
4678
4678
|
selectors: [
|
|
4679
4679
|
we.id,
|
|
4680
4680
|
we.class,
|
|
@@ -4695,7 +4695,7 @@ var uf = {
|
|
|
4695
4695
|
function On(e) {
|
|
4696
4696
|
return !!e;
|
|
4697
4697
|
}
|
|
4698
|
-
function
|
|
4698
|
+
function uf(e) {
|
|
4699
4699
|
return Array.isArray(e) ? e.filter((t) => lf(we, t)) : [];
|
|
4700
4700
|
}
|
|
4701
4701
|
function rl(e) {
|
|
@@ -4728,9 +4728,9 @@ function Xi(e) {
|
|
|
4728
4728
|
return typeof e == "number" ? e : Number.POSITIVE_INFINITY;
|
|
4729
4729
|
}
|
|
4730
4730
|
function hf(e, t = {}) {
|
|
4731
|
-
const n = Object.assign(Object.assign({},
|
|
4731
|
+
const n = Object.assign(Object.assign({}, cf), t);
|
|
4732
4732
|
return {
|
|
4733
|
-
selectors:
|
|
4733
|
+
selectors: uf(n.selectors),
|
|
4734
4734
|
whitelist: Cr(n.whitelist),
|
|
4735
4735
|
blacklist: Cr(n.blacklist),
|
|
4736
4736
|
root: sl(n.root, e),
|
|
@@ -4815,12 +4815,12 @@ function Ef({ nodeName: e, nodeValue: t }) {
|
|
|
4815
4815
|
value: gn(t ?? void 0)
|
|
4816
4816
|
};
|
|
4817
4817
|
}
|
|
4818
|
-
function
|
|
4818
|
+
function cl(e, t) {
|
|
4819
4819
|
const n = Array.from(e.attributes).filter((i) => wf(i, e)).map(Ef);
|
|
4820
4820
|
return [...n.map(bf), ...n.map(Sf)];
|
|
4821
4821
|
}
|
|
4822
4822
|
function Tf(e, t) {
|
|
4823
|
-
return Gn(e.map((n) =>
|
|
4823
|
+
return Gn(e.map((n) => cl(n, t)));
|
|
4824
4824
|
}
|
|
4825
4825
|
var Cf = /^[a-z_-]{3,}$/i, xf = /[bcdfghjklmnpqrstvwxyz]{4,}/i;
|
|
4826
4826
|
function Of(e) {
|
|
@@ -4831,7 +4831,7 @@ function Of(e) {
|
|
|
4831
4831
|
if (n.length <= 2 || xf.test(n)) return !1;
|
|
4832
4832
|
return !0;
|
|
4833
4833
|
}
|
|
4834
|
-
function
|
|
4834
|
+
function ul(e, t) {
|
|
4835
4835
|
var n;
|
|
4836
4836
|
const i = ((n = e.getAttribute("class")) !== null && n !== void 0 ? n : "").trim().split(/\s+/).filter((r) => !_f.test(r));
|
|
4837
4837
|
let o = i;
|
|
@@ -4845,7 +4845,7 @@ function cl(e, t) {
|
|
|
4845
4845
|
return o.map((r) => `.${gn(r)}`);
|
|
4846
4846
|
}
|
|
4847
4847
|
function Pf(e, t) {
|
|
4848
|
-
return Gn(e.map((n) =>
|
|
4848
|
+
return Gn(e.map((n) => ul(n, t)));
|
|
4849
4849
|
}
|
|
4850
4850
|
function dl(e, t) {
|
|
4851
4851
|
var n;
|
|
@@ -4944,8 +4944,8 @@ var Ff = {
|
|
|
4944
4944
|
}, Bf = {
|
|
4945
4945
|
tag: hl,
|
|
4946
4946
|
id: dl,
|
|
4947
|
-
class:
|
|
4948
|
-
attribute:
|
|
4947
|
+
class: ul,
|
|
4948
|
+
attribute: cl,
|
|
4949
4949
|
nthchild: fl,
|
|
4950
4950
|
nthoftype: vl
|
|
4951
4951
|
};
|
|
@@ -4970,9 +4970,9 @@ function* zf(e, t) {
|
|
|
4970
4970
|
for (const o of Yf(i, t)) n.has(o) || (n.add(o), yield o);
|
|
4971
4971
|
}
|
|
4972
4972
|
function Uf(e, t) {
|
|
4973
|
-
const { blacklist: n, whitelist: i, combineWithinSelector: o, maxCombinations: r } = t, s = _i(n), l = _i(i), a = (
|
|
4974
|
-
const f = Hf(Vf(Wf(e,
|
|
4975
|
-
return u
|
|
4973
|
+
const { blacklist: n, whitelist: i, combineWithinSelector: o, maxCombinations: r } = t, s = _i(n), l = _i(i), a = (c, u) => {
|
|
4974
|
+
const f = Hf(Vf(Wf(e, u, t), s, l), l);
|
|
4975
|
+
return c[u] = o ? Array.from(gl(f, { maxResults: r })) : f.map((p) => [p]), c;
|
|
4976
4976
|
};
|
|
4977
4977
|
return qf(t).reduce(a, {});
|
|
4978
4978
|
}
|
|
@@ -5029,10 +5029,10 @@ function* ih({ elements: e, root: t, rootSelector: n = "", options: i }) {
|
|
|
5029
5029
|
for (; s; ) {
|
|
5030
5030
|
let l = !1;
|
|
5031
5031
|
for (const a of nh(e, o, r, i)) {
|
|
5032
|
-
const { foundElements:
|
|
5033
|
-
if (l = !0, Mo(e,
|
|
5032
|
+
const { foundElements: c, selector: u } = a;
|
|
5033
|
+
if (l = !0, Mo(e, u, t)) yield u;
|
|
5034
5034
|
else {
|
|
5035
|
-
o =
|
|
5035
|
+
o = c[0], r = u;
|
|
5036
5036
|
break;
|
|
5037
5037
|
}
|
|
5038
5038
|
}
|
|
@@ -5075,16 +5075,16 @@ function ah(e, t) {
|
|
|
5075
5075
|
const n = ll(e, t).reverse(), i = t instanceof ShadowRoot, o = n.map((r, s) => {
|
|
5076
5076
|
var l;
|
|
5077
5077
|
const a = sh(r, [we.nthchild], i && s === 0 ? zn.NONE : zn.CHILD);
|
|
5078
|
-
return ((l = a.selectors.nthchild) !== null && l !== void 0 ? l : []).forEach((
|
|
5079
|
-
|
|
5078
|
+
return ((l = a.selectors.nthchild) !== null && l !== void 0 ? l : []).forEach((c) => {
|
|
5079
|
+
c.include = !0;
|
|
5080
5080
|
}), a;
|
|
5081
5081
|
});
|
|
5082
5082
|
return [i ? "" : t ? ":scope" : ":root", ...o.map(lh)].join("");
|
|
5083
5083
|
}
|
|
5084
|
-
function
|
|
5084
|
+
function ch(e, t) {
|
|
5085
5085
|
return e.map((n) => ah(n, t)).join(", ");
|
|
5086
5086
|
}
|
|
5087
|
-
var
|
|
5087
|
+
var uh = function(e, t) {
|
|
5088
5088
|
var n = {};
|
|
5089
5089
|
for (var i in e) Object.prototype.hasOwnProperty.call(e, i) && t.indexOf(i) < 0 && (n[i] = e[i]);
|
|
5090
5090
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -5106,11 +5106,11 @@ function* dh(e, t = {}) {
|
|
|
5106
5106
|
}))
|
|
5107
5107
|
if (yield a, s++, s >= o.maxResults) return;
|
|
5108
5108
|
if (i.length > 1) {
|
|
5109
|
-
const { maxResults: a } = t,
|
|
5110
|
-
if (yield i.map((
|
|
5109
|
+
const { maxResults: a } = t, c = uh(t, ["maxResults"]);
|
|
5110
|
+
if (yield i.map((u) => ml(u, c)).join(", "), s++, s >= o.maxResults) return;
|
|
5111
5111
|
}
|
|
5112
5112
|
const l = t.root !== void 0;
|
|
5113
|
-
yield
|
|
5113
|
+
yield ch(i, o.useScope || l ? r : void 0);
|
|
5114
5114
|
}
|
|
5115
5115
|
var fh = [
|
|
5116
5116
|
"#vue-inspector-container",
|
|
@@ -5203,13 +5203,13 @@ function wh(e) {
|
|
|
5203
5203
|
var t, n, i, o, r, s, l;
|
|
5204
5204
|
const a = (n = (t = e.__vnode) == null ? void 0 : t.props) == null ? void 0 : n[Ji];
|
|
5205
5205
|
if (a) return a;
|
|
5206
|
-
const
|
|
5207
|
-
if (
|
|
5208
|
-
const v = (r =
|
|
5206
|
+
const c = (o = (i = e.__vnode) == null ? void 0 : i.ctx) == null ? void 0 : o.vnode;
|
|
5207
|
+
if (c?.el === e) {
|
|
5208
|
+
const v = (r = c.props) == null ? void 0 : r[Ji];
|
|
5209
5209
|
if (v) return v;
|
|
5210
5210
|
}
|
|
5211
|
-
const
|
|
5212
|
-
let f =
|
|
5211
|
+
const u = e.__vueParentComponent;
|
|
5212
|
+
let f = u?.parent;
|
|
5213
5213
|
for (; f; ) {
|
|
5214
5214
|
if (((s = f.vnode) == null ? void 0 : s.el) === e) {
|
|
5215
5215
|
const v = (l = f.vnode.props) == null ? void 0 : l[Ji];
|
|
@@ -5273,32 +5273,32 @@ function Ch(e) {
|
|
|
5273
5273
|
description: "",
|
|
5274
5274
|
fileInfo: ""
|
|
5275
5275
|
}), s = 500;
|
|
5276
|
-
let l = null, a = "#3b82f6",
|
|
5277
|
-
function
|
|
5278
|
-
|
|
5279
|
-
|
|
5276
|
+
let l = null, a = "#3b82f6", c = "rgba(59, 130, 246, 0.1)";
|
|
5277
|
+
function u(T) {
|
|
5278
|
+
T.forEach((S) => {
|
|
5279
|
+
S && (S.style.pointerEvents = "none");
|
|
5280
5280
|
});
|
|
5281
5281
|
}
|
|
5282
|
-
function f(
|
|
5283
|
-
|
|
5284
|
-
|
|
5282
|
+
function f(T) {
|
|
5283
|
+
T.forEach((S) => {
|
|
5284
|
+
S && (S.style.pointerEvents = "");
|
|
5285
5285
|
});
|
|
5286
5286
|
}
|
|
5287
|
-
function p(
|
|
5287
|
+
function p(T) {
|
|
5288
5288
|
if (!e.selectMode.value) return;
|
|
5289
|
-
const
|
|
5289
|
+
const S = [
|
|
5290
5290
|
document.querySelector(".opencode-element-highlight"),
|
|
5291
5291
|
document.querySelector(".opencode-element-tooltip"),
|
|
5292
5292
|
document.querySelector(".opencode-select-mode-hint"),
|
|
5293
5293
|
document.querySelector(".floating-bubble")
|
|
5294
5294
|
];
|
|
5295
|
-
|
|
5296
|
-
const P = Pr(
|
|
5297
|
-
if (f(
|
|
5298
|
-
const
|
|
5299
|
-
if (
|
|
5300
|
-
const U = getComputedStyle(
|
|
5301
|
-
a = U.getPropertyValue("--oc-primary").trim() || a,
|
|
5295
|
+
u(S);
|
|
5296
|
+
const P = Pr(T), V = Mr(T, P);
|
|
5297
|
+
if (f(S), P) {
|
|
5298
|
+
const b = document.querySelector(".opencode-widget");
|
|
5299
|
+
if (b) {
|
|
5300
|
+
const U = getComputedStyle(b);
|
|
5301
|
+
a = U.getPropertyValue("--oc-primary").trim() || a, c = U.getPropertyValue("--oc-primary-bg").trim() || c;
|
|
5302
5302
|
}
|
|
5303
5303
|
const z = Or(P), G = V.file ? V.file.split("/").pop() : "";
|
|
5304
5304
|
let A = "";
|
|
@@ -5315,7 +5315,7 @@ function Ch(e) {
|
|
|
5315
5315
|
width: We,
|
|
5316
5316
|
height: N,
|
|
5317
5317
|
border: `2px solid ${a}`,
|
|
5318
|
-
background:
|
|
5318
|
+
background: c
|
|
5319
5319
|
}), t.value = !0, i.value = !0, Mi(() => {
|
|
5320
5320
|
const U = document.querySelector(".opencode-element-tooltip");
|
|
5321
5321
|
if (!U) return;
|
|
@@ -5343,8 +5343,8 @@ function Ch(e) {
|
|
|
5343
5343
|
}
|
|
5344
5344
|
];
|
|
5345
5345
|
for (const h of d) {
|
|
5346
|
-
const
|
|
5347
|
-
if (
|
|
5346
|
+
const m = h.left + ie, O = h.top + Y;
|
|
5347
|
+
if (m <= F.left || F.right <= h.left || O <= F.top || F.bottom <= h.top) {
|
|
5348
5348
|
$e = h.top, Fe = h.left, ye = !0;
|
|
5349
5349
|
break;
|
|
5350
5350
|
}
|
|
@@ -5361,18 +5361,18 @@ function Ch(e) {
|
|
|
5361
5361
|
t.value = !1, i.value = !1;
|
|
5362
5362
|
}
|
|
5363
5363
|
const v = p;
|
|
5364
|
-
function
|
|
5365
|
-
const
|
|
5366
|
-
if (!
|
|
5367
|
-
const
|
|
5368
|
-
|
|
5364
|
+
function y() {
|
|
5365
|
+
const T = window.__VUE_INSPECTOR__;
|
|
5366
|
+
if (!T || T.__opencode_hooked) return;
|
|
5367
|
+
const S = T.handleClick.bind(T);
|
|
5368
|
+
T.handleClick = function(P) {
|
|
5369
5369
|
if (e.selectMode.value) {
|
|
5370
5370
|
const V = P.target instanceof Element ? P.target : null;
|
|
5371
|
-
if (V && V.closest(".opencode-widget")) return
|
|
5371
|
+
if (V && V.closest(".opencode-widget")) return S.call(T, P);
|
|
5372
5372
|
P.preventDefault(), P.stopPropagation();
|
|
5373
|
-
const
|
|
5374
|
-
if (
|
|
5375
|
-
const G = vh(
|
|
5373
|
+
const b = Pr(P), z = Mr(P, b);
|
|
5374
|
+
if (b) {
|
|
5375
|
+
const G = vh(b), A = Or(b), W = {
|
|
5376
5376
|
filePath: z.file,
|
|
5377
5377
|
line: z.line,
|
|
5378
5378
|
column: z.column,
|
|
@@ -5383,21 +5383,21 @@ function Ch(e) {
|
|
|
5383
5383
|
}
|
|
5384
5384
|
return;
|
|
5385
5385
|
}
|
|
5386
|
-
return
|
|
5387
|
-
},
|
|
5386
|
+
return S.call(T, P);
|
|
5387
|
+
}, T.__opencode_hooked = !0;
|
|
5388
5388
|
}
|
|
5389
|
-
function
|
|
5390
|
-
|
|
5389
|
+
function g(T) {
|
|
5390
|
+
T.key === "Escape" && e.selectMode.value && (T.preventDefault(), T.stopPropagation(), e.onExitSelectMode());
|
|
5391
5391
|
}
|
|
5392
|
-
return Ie(e.selectMode, (
|
|
5393
|
-
const
|
|
5394
|
-
|
|
5392
|
+
return Ie(e.selectMode, (T) => {
|
|
5393
|
+
const S = window.__VUE_INSPECTOR__;
|
|
5394
|
+
T ? (S && S.enable(), document.addEventListener("mousemove", v), document.addEventListener("keydown", g, !0)) : (S && S.disable(), document.removeEventListener("mousemove", v), document.removeEventListener("keydown", g, !0), t.value = !1, i.value = !1);
|
|
5395
5395
|
}), Xe(() => {
|
|
5396
|
-
window.__VUE_INSPECTOR__ ?
|
|
5397
|
-
window.__VUE_INSPECTOR__ && (
|
|
5396
|
+
window.__VUE_INSPECTOR__ ? y() : l = window.setInterval(() => {
|
|
5397
|
+
window.__VUE_INSPECTOR__ && (y(), l && (window.clearInterval(l), l = null));
|
|
5398
5398
|
}, s);
|
|
5399
5399
|
}), qe(() => {
|
|
5400
|
-
l && window.clearInterval(l), document.removeEventListener("mousemove", v), document.removeEventListener("keydown",
|
|
5400
|
+
l && window.clearInterval(l), document.removeEventListener("mousemove", v), document.removeEventListener("keydown", g, !0);
|
|
5401
5401
|
}), {
|
|
5402
5402
|
highlightVisible: t,
|
|
5403
5403
|
highlightStyle: n,
|
|
@@ -5467,66 +5467,66 @@ var Mh = 1440;
|
|
|
5467
5467
|
function Ih(e) {
|
|
5468
5468
|
var t, n;
|
|
5469
5469
|
const i = /* @__PURE__ */ L(typeof window < "u" ? window.innerWidth : 0), o = /* @__PURE__ */ L((n = (t = e.splitPosition) == null ? void 0 : t.value) != null ? n : "right"), r = q(() => e.displayMode.value === "extension"), s = q(() => r.value || e.displayMode.value === "extension-selector"), l = q(() => {
|
|
5470
|
-
var
|
|
5470
|
+
var S, P, V, b, z, G, A;
|
|
5471
5471
|
const W = e.splitMode.value || {}, F = r.value;
|
|
5472
5472
|
return {
|
|
5473
|
-
width: (
|
|
5473
|
+
width: (S = W.width) != null ? S : 500,
|
|
5474
5474
|
minWidth: (P = W.minWidth) != null ? P : 400,
|
|
5475
5475
|
maxWidth: (V = W.maxWidth) != null ? V : 800,
|
|
5476
|
-
resizable: F ? !1 : (
|
|
5476
|
+
resizable: F ? !1 : (b = W.resizable) != null ? b : !0,
|
|
5477
5477
|
shrinkPage: F ? !1 : (z = W.shrinkPage) != null ? z : !0,
|
|
5478
5478
|
defaultOpen: F ? !0 : (G = W.defaultOpen) != null ? G : !0,
|
|
5479
5479
|
position: (A = W.position) != null ? A : o.value
|
|
5480
5480
|
};
|
|
5481
|
-
}), a = /* @__PURE__ */ L(l.value.width),
|
|
5481
|
+
}), a = /* @__PURE__ */ L(l.value.width), c = q(() => r.value ? "split" : e.displayMode.value === "bubble" ? "bubble" : e.displayMode.value === "split" || i.value >= Mh ? "split" : "bubble"), u = q(() => c.value === "split"), f = q(() => l.value.position), p = (S) => {
|
|
5482
5482
|
var P;
|
|
5483
|
-
a.value =
|
|
5483
|
+
a.value = S, (P = e.onWidthChange) == null || P.call(e, S);
|
|
5484
5484
|
}, v = () => {
|
|
5485
|
-
var
|
|
5485
|
+
var S;
|
|
5486
5486
|
const P = !e.open.value;
|
|
5487
|
-
(
|
|
5488
|
-
},
|
|
5489
|
-
var
|
|
5487
|
+
(S = e.onOpenChange) == null || S.call(e, P);
|
|
5488
|
+
}, y = () => {
|
|
5489
|
+
var S;
|
|
5490
5490
|
const P = o.value === "right" ? "left" : "right";
|
|
5491
|
-
o.value = P, (
|
|
5492
|
-
},
|
|
5491
|
+
o.value = P, (S = e.onPositionChange) == null || S.call(e, P);
|
|
5492
|
+
}, g = () => {
|
|
5493
5493
|
typeof window < "u" && (i.value = window.innerWidth);
|
|
5494
|
-
},
|
|
5494
|
+
}, T = () => {
|
|
5495
5495
|
if (!(typeof document > "u")) {
|
|
5496
5496
|
if (s.value) {
|
|
5497
5497
|
document.body.classList.remove("has-opencode-split"), document.body.classList.remove("has-opencode-split-left"), document.body.classList.remove("has-opencode-split-right"), document.body.style.removeProperty("--opencode-split-width");
|
|
5498
5498
|
return;
|
|
5499
5499
|
}
|
|
5500
|
-
|
|
5500
|
+
u.value && e.open.value && l.value.shrinkPage ? (document.body.classList.add("has-opencode-split"), document.body.style.setProperty("--opencode-split-width", `${a.value}px`), f.value === "left" ? (document.body.classList.add("has-opencode-split-left"), document.body.classList.remove("has-opencode-split-right")) : (document.body.classList.add("has-opencode-split-right"), document.body.classList.remove("has-opencode-split-left"))) : (document.body.classList.remove("has-opencode-split"), document.body.classList.remove("has-opencode-split-left"), document.body.classList.remove("has-opencode-split-right"), document.body.style.removeProperty("--opencode-split-width"));
|
|
5501
5501
|
}
|
|
5502
5502
|
};
|
|
5503
5503
|
return Ie([
|
|
5504
|
-
|
|
5504
|
+
u,
|
|
5505
5505
|
e.open,
|
|
5506
5506
|
a,
|
|
5507
5507
|
f
|
|
5508
|
-
],
|
|
5509
|
-
a.value <
|
|
5508
|
+
], T, { immediate: !0 }), Ie(l, (S) => {
|
|
5509
|
+
a.value < S.minWidth && (a.value = S.minWidth), a.value > S.maxWidth && (a.value = S.maxWidth);
|
|
5510
5510
|
}), Ie(() => {
|
|
5511
|
-
var
|
|
5512
|
-
return (
|
|
5513
|
-
}, (
|
|
5514
|
-
|
|
5511
|
+
var S;
|
|
5512
|
+
return (S = e.splitPosition) == null ? void 0 : S.value;
|
|
5513
|
+
}, (S) => {
|
|
5514
|
+
S && S !== o.value && (o.value = S);
|
|
5515
5515
|
}), Xe(() => {
|
|
5516
|
-
var
|
|
5517
|
-
typeof window < "u" && (window.addEventListener("resize",
|
|
5516
|
+
var S;
|
|
5517
|
+
typeof window < "u" && (window.addEventListener("resize", g), !r.value && u.value && l.value.defaultOpen && !e.open.value && ((S = e.onOpenChange) == null || S.call(e, !0)));
|
|
5518
5518
|
}), qe(() => {
|
|
5519
|
-
typeof window < "u" && (window.removeEventListener("resize",
|
|
5519
|
+
typeof window < "u" && (window.removeEventListener("resize", g), r.value || (document.body.classList.remove("has-opencode-split"), document.body.classList.remove("has-opencode-split-left"), document.body.classList.remove("has-opencode-split-right"), document.body.style.removeProperty("--opencode-split-width")));
|
|
5520
5520
|
}), {
|
|
5521
|
-
effectiveMode:
|
|
5522
|
-
isSplitMode:
|
|
5521
|
+
effectiveMode: c,
|
|
5522
|
+
isSplitMode: u,
|
|
5523
5523
|
isExtensionMode: r,
|
|
5524
5524
|
panelWidth: a,
|
|
5525
5525
|
splitConfig: l,
|
|
5526
5526
|
splitPosition: f,
|
|
5527
5527
|
handleResize: p,
|
|
5528
5528
|
handleToggle: v,
|
|
5529
|
-
handleTogglePosition:
|
|
5529
|
+
handleTogglePosition: y
|
|
5530
5530
|
};
|
|
5531
5531
|
}
|
|
5532
5532
|
var Ah = Object.defineProperty, Rh = Object.defineProperties, kh = Object.getOwnPropertyDescriptors, Ir = Object.getOwnPropertySymbols, Nh = Object.prototype.hasOwnProperty, Lh = Object.prototype.propertyIsEnumerable, Ar = (e, t, n) => t in e ? Ah(e, t, {
|
|
@@ -5707,22 +5707,22 @@ var Ah = Object.defineProperty, Rh = Object.defineProperties, kh = Object.getOwn
|
|
|
5707
5707
|
"-chatAnimationOrigin.x": Li.value.x,
|
|
5708
5708
|
"-chatAnimationOrigin.y": Li.value.y
|
|
5709
5709
|
}));
|
|
5710
|
-
const r = e, s = n, l = ys(), a = /* @__PURE__ */ L(""),
|
|
5710
|
+
const r = e, s = n, l = ys(), a = /* @__PURE__ */ L(""), c = /* @__PURE__ */ L(!1), u = /* @__PURE__ */ L("widget");
|
|
5711
5711
|
let f = null;
|
|
5712
5712
|
const p = (C, Ce) => {
|
|
5713
5713
|
const { duration: dt = 3e3, mode: Ot = "widget" } = Ce || {};
|
|
5714
|
-
a.value = C,
|
|
5715
|
-
|
|
5714
|
+
a.value = C, c.value = !0, u.value = Ot, f && clearTimeout(f), f = setTimeout(() => {
|
|
5715
|
+
c.value = !1;
|
|
5716
5716
|
}, dt);
|
|
5717
|
-
}, v = /* @__PURE__ */ L(!1),
|
|
5718
|
-
let
|
|
5719
|
-
const
|
|
5720
|
-
|
|
5721
|
-
})),
|
|
5722
|
-
v.value = !1,
|
|
5717
|
+
}, v = /* @__PURE__ */ L(!1), y = /* @__PURE__ */ L("");
|
|
5718
|
+
let g = null;
|
|
5719
|
+
const T = (C) => (y.value = C, v.value = !0, new Promise((Ce) => {
|
|
5720
|
+
g = Ce;
|
|
5721
|
+
})), S = () => {
|
|
5722
|
+
v.value = !1, g && g(!0);
|
|
5723
5723
|
}, P = () => {
|
|
5724
|
-
v.value = !1,
|
|
5725
|
-
}, V = /* @__PURE__ */ L(null),
|
|
5724
|
+
v.value = !1, g && g(!1);
|
|
5725
|
+
}, V = /* @__PURE__ */ L(null), b = /* @__PURE__ */ L(null), z = (C, Ce) => {
|
|
5726
5726
|
var dt;
|
|
5727
5727
|
(dt = V.value) == null || dt.sendMessageToIframe(C, Ce);
|
|
5728
5728
|
}, G = /* @__PURE__ */ L(r.sessionListCollapsed), A = /* @__PURE__ */ L(r.displayMode), W = /* @__PURE__ */ L((o = (i = r.splitMode) == null ? void 0 : i.position) != null ? o : "right"), F = /* @__PURE__ */ L(!1), Q = /* @__PURE__ */ L(!0), J = /* @__PURE__ */ L(!1), We = /* @__PURE__ */ L(!0), N = /* @__PURE__ */ L(!1), U = /* @__PURE__ */ L(!1), ie = /* @__PURE__ */ L(r.splitPanelWidth), Y = () => {
|
|
@@ -5777,8 +5777,8 @@ var Ah = Object.defineProperty, Rh = Object.defineProperties, kh = Object.getOwn
|
|
|
5777
5777
|
s("update:currentSessionId", C.id), s("select-session", C);
|
|
5778
5778
|
},
|
|
5779
5779
|
onDeleteSession: (C) => s("delete-session", C),
|
|
5780
|
-
showConfirmDialog:
|
|
5781
|
-
}), { bubbleVisible: d, hasSelectedElements: h, selectedElementItems:
|
|
5780
|
+
showConfirmDialog: T
|
|
5781
|
+
}), { bubbleVisible: d, hasSelectedElements: h, selectedElementItems: m, handleClearSelectedNodes: O, handleClickSelectedNode: E, handleRemoveSelectedNode: w, handleToggleSelectMode: k } = tf({
|
|
5782
5782
|
selectMode: /* @__PURE__ */ le(r, "selectMode"),
|
|
5783
5783
|
selectedElements: /* @__PURE__ */ le(r, "selectedElements"),
|
|
5784
5784
|
onToggleSelectMode: (C) => {
|
|
@@ -5792,7 +5792,7 @@ var Ah = Object.defineProperty, Rh = Object.defineProperties, kh = Object.getOwn
|
|
|
5792
5792
|
onClearSelectedNodes: () => {
|
|
5793
5793
|
s("clear-selected-nodes"), s("update:selectedElements", []);
|
|
5794
5794
|
},
|
|
5795
|
-
showConfirmDialog:
|
|
5795
|
+
showConfirmDialog: T
|
|
5796
5796
|
}), { highlightVisible: R, highlightStyle: I, tooltipVisible: x, tooltipStyle: H, tooltipContent: $ } = Ch({
|
|
5797
5797
|
selectMode: /* @__PURE__ */ le(r, "selectMode"),
|
|
5798
5798
|
onAddSelectedNode: (C) => {
|
|
@@ -5801,7 +5801,7 @@ var Ah = Object.defineProperty, Rh = Object.defineProperties, kh = Object.getOwn
|
|
|
5801
5801
|
onExitSelectMode: () => {
|
|
5802
5802
|
s("update:selectMode", !1), s("toggle-select-mode", !1);
|
|
5803
5803
|
}
|
|
5804
|
-
}), B = /* @__PURE__ */ L(void 0), { effectiveMode: K, isSplitMode: Z, isExtensionMode: re, panelWidth: se, splitConfig: he, splitPosition: pe, handleResize: Te, handleToggle: Re, handleTogglePosition:
|
|
5804
|
+
}), B = /* @__PURE__ */ L(void 0), { effectiveMode: K, isSplitMode: Z, isExtensionMode: re, panelWidth: se, splitConfig: he, splitPosition: pe, handleResize: Te, handleToggle: Re, handleTogglePosition: ct } = Ih({
|
|
5805
5805
|
displayMode: A,
|
|
5806
5806
|
splitMode: /* @__PURE__ */ le(r, "splitMode"),
|
|
5807
5807
|
open: /* @__PURE__ */ le(r, "open"),
|
|
@@ -5850,8 +5850,8 @@ var Ah = Object.defineProperty, Rh = Object.defineProperties, kh = Object.getOwn
|
|
|
5850
5850
|
J.value = !J.value, z(_e.REVIEW_PANEL_TOGGLE, { visible: J.value });
|
|
5851
5851
|
}, Wt = () => {
|
|
5852
5852
|
window.location.reload();
|
|
5853
|
-
}, et = /* @__PURE__ */ L(typeof window < "u" ? window.innerWidth : 0),
|
|
5854
|
-
typeof window < "u" && (et.value = window.innerWidth,
|
|
5853
|
+
}, et = /* @__PURE__ */ L(typeof window < "u" ? window.innerWidth : 0), ut = /* @__PURE__ */ L(typeof window < "u" ? window.innerHeight : 0), _n = () => {
|
|
5854
|
+
typeof window < "u" && (et.value = window.innerWidth, ut.value = window.innerHeight);
|
|
5855
5855
|
}, M = (C) => {
|
|
5856
5856
|
var Ce;
|
|
5857
5857
|
((Ce = C.data) == null ? void 0 : Ce.type) === _e.READY && (U.value = !0, Y());
|
|
@@ -5864,7 +5864,7 @@ var Ah = Object.defineProperty, Rh = Object.defineProperties, kh = Object.getOwn
|
|
|
5864
5864
|
const te = q(() => {
|
|
5865
5865
|
var C, Ce, dt, Ot;
|
|
5866
5866
|
if (typeof window > "u") return "bottom-right";
|
|
5867
|
-
const Gt = et.value / 2, Vt =
|
|
5867
|
+
const Gt = et.value / 2, Vt = ut.value / 2, Pt = 44, lt = (Ce = (C = b.value) == null ? void 0 : C.offset) != null ? Ce : B.value, Yt = ((dt = lt?.x) != null ? dt : et.value - Pt - 24) + Pt / 2, _t = ((Ot = lt?.y) != null ? Ot : ut.value - Pt - 24) + Pt / 2;
|
|
5868
5868
|
return Yt >= Gt && _t >= Vt ? "bottom-right" : Yt < Gt && _t >= Vt ? "bottom-left" : Yt >= Gt && _t < Vt ? "top-right" : "top-left";
|
|
5869
5869
|
}), yn = q(() => {
|
|
5870
5870
|
const C = te.value;
|
|
@@ -5872,9 +5872,9 @@ var Ah = Object.defineProperty, Rh = Object.defineProperties, kh = Object.getOwn
|
|
|
5872
5872
|
}), Ni = q(() => {
|
|
5873
5873
|
var C, Ce, dt;
|
|
5874
5874
|
if (typeof window > "u") return {};
|
|
5875
|
-
const Ot = F.value ? 300 : 700, Gt = F.value ? 300 : Math.min(
|
|
5875
|
+
const Ot = F.value ? 300 : 700, Gt = F.value ? 300 : Math.min(ut.value * 0.86, ut.value - 40), Vt = 24, Pt = 44, lt = 20, Yt = (dt = (Ce = (C = b.value) == null ? void 0 : C.offset) != null ? Ce : B.value) != null ? dt : {
|
|
5876
5876
|
x: et.value - Pt - Vt,
|
|
5877
|
-
y:
|
|
5877
|
+
y: ut.value - Pt - Vt
|
|
5878
5878
|
}, _t = {};
|
|
5879
5879
|
if (yn.value) {
|
|
5880
5880
|
let ft = et.value - Yt.x + Vt;
|
|
@@ -5885,8 +5885,8 @@ var Ah = Object.defineProperty, Rh = Object.defineProperties, kh = Object.getOwn
|
|
|
5885
5885
|
const wn = lt, En = et.value - Ot - lt;
|
|
5886
5886
|
ft > En && (ft = En), ft < wn && (ft = wn), _t.left = `${ft}px`, _t.right = "auto";
|
|
5887
5887
|
}
|
|
5888
|
-
let Sn =
|
|
5889
|
-
const ko =
|
|
5888
|
+
let Sn = ut.value - Yt.y - Pt;
|
|
5889
|
+
const ko = ut.value - Gt - lt;
|
|
5890
5890
|
return Sn > ko && (Sn = ko), Sn < lt && (Sn = lt), _t.bottom = `${Sn}px`, _t;
|
|
5891
5891
|
}), Ao = (C) => {
|
|
5892
5892
|
B.value = C;
|
|
@@ -5924,7 +5924,7 @@ var Ah = Object.defineProperty, Rh = Object.defineProperties, kh = Object.getOwn
|
|
|
5924
5924
|
}, xl = () => {
|
|
5925
5925
|
bn.value = !1, Yn && s("update:open", !0);
|
|
5926
5926
|
};
|
|
5927
|
-
|
|
5927
|
+
lu({
|
|
5928
5928
|
theme: /* @__PURE__ */ le(r, "theme"),
|
|
5929
5929
|
resolvedTheme: gt,
|
|
5930
5930
|
title: /* @__PURE__ */ le(r, "title"),
|
|
@@ -5961,7 +5961,7 @@ var Ah = Object.defineProperty, Rh = Object.defineProperties, kh = Object.getOwn
|
|
|
5961
5961
|
bubbleVisible: d,
|
|
5962
5962
|
hasSelectedElements: h,
|
|
5963
5963
|
sessionItems: Fe,
|
|
5964
|
-
selectedElementItems:
|
|
5964
|
+
selectedElementItems: m,
|
|
5965
5965
|
handleToggle: Ge,
|
|
5966
5966
|
handleClose: mt,
|
|
5967
5967
|
handleToggleMinimize: Kt,
|
|
@@ -5970,21 +5970,21 @@ var Ah = Object.defineProperty, Rh = Object.defineProperties, kh = Object.getOwn
|
|
|
5970
5970
|
handleToggleSessionList: st,
|
|
5971
5971
|
handleToggleTheme: $e,
|
|
5972
5972
|
handleToggleDisplayMode: Ae,
|
|
5973
|
-
handleToggleSplitPosition:
|
|
5973
|
+
handleToggleSplitPosition: ct,
|
|
5974
5974
|
handleEmptyAction: at,
|
|
5975
5975
|
handleCreateSession: ye,
|
|
5976
5976
|
handleSelectSession: Qe,
|
|
5977
5977
|
handleDeleteSession: Ze,
|
|
5978
5978
|
handleToggleSelectMode: k,
|
|
5979
|
-
handleClickSelectedNode:
|
|
5980
|
-
handleRemoveSelectedNode: (C) =>
|
|
5979
|
+
handleClickSelectedNode: E,
|
|
5980
|
+
handleRemoveSelectedNode: (C) => w(C.item, C.index, C.source),
|
|
5981
5981
|
handleClearSelectedNodes: O,
|
|
5982
5982
|
handleFrameLoaded: ee,
|
|
5983
5983
|
handleBubbleOffsetChange: Ao,
|
|
5984
5984
|
handleRefresh: Wt
|
|
5985
5985
|
}), t({
|
|
5986
5986
|
showNotification: p,
|
|
5987
|
-
showConfirmDialog:
|
|
5987
|
+
showConfirmDialog: T,
|
|
5988
5988
|
sendMessageToIframe: z,
|
|
5989
5989
|
isSplitMode: Z
|
|
5990
5990
|
});
|
|
@@ -5993,8 +5993,8 @@ var Ah = Object.defineProperty, Rh = Object.defineProperties, kh = Object.getOwn
|
|
|
5993
5993
|
emit: s,
|
|
5994
5994
|
slots: l,
|
|
5995
5995
|
notificationMessage: a,
|
|
5996
|
-
notificationVisible:
|
|
5997
|
-
notificationMode:
|
|
5996
|
+
notificationVisible: c,
|
|
5997
|
+
notificationMode: u,
|
|
5998
5998
|
get notificationTimer() {
|
|
5999
5999
|
return f;
|
|
6000
6000
|
},
|
|
@@ -6003,18 +6003,18 @@ var Ah = Object.defineProperty, Rh = Object.defineProperties, kh = Object.getOwn
|
|
|
6003
6003
|
},
|
|
6004
6004
|
showNotification: p,
|
|
6005
6005
|
dialogVisible: v,
|
|
6006
|
-
dialogMessage:
|
|
6006
|
+
dialogMessage: y,
|
|
6007
6007
|
get dialogResolve() {
|
|
6008
|
-
return
|
|
6008
|
+
return g;
|
|
6009
6009
|
},
|
|
6010
6010
|
set dialogResolve(C) {
|
|
6011
|
-
|
|
6011
|
+
g = C;
|
|
6012
6012
|
},
|
|
6013
|
-
showConfirmDialog:
|
|
6014
|
-
handleDialogConfirm:
|
|
6013
|
+
showConfirmDialog: T,
|
|
6014
|
+
handleDialogConfirm: S,
|
|
6015
6015
|
handleDialogCancel: P,
|
|
6016
6016
|
frameRef: V,
|
|
6017
|
-
triggerRef:
|
|
6017
|
+
triggerRef: b,
|
|
6018
6018
|
sendMessageToIframe: z,
|
|
6019
6019
|
localSessionListCollapsed: G,
|
|
6020
6020
|
localDisplayMode: A,
|
|
@@ -6045,10 +6045,10 @@ var Ah = Object.defineProperty, Rh = Object.defineProperties, kh = Object.getOwn
|
|
|
6045
6045
|
handleSelectSession: Qe,
|
|
6046
6046
|
bubbleVisible: d,
|
|
6047
6047
|
hasSelectedElements: h,
|
|
6048
|
-
selectedElementItems:
|
|
6048
|
+
selectedElementItems: m,
|
|
6049
6049
|
handleClearSelectedNodes: O,
|
|
6050
|
-
handleClickSelectedNode:
|
|
6051
|
-
handleRemoveSelectedNode:
|
|
6050
|
+
handleClickSelectedNode: E,
|
|
6051
|
+
handleRemoveSelectedNode: w,
|
|
6052
6052
|
handleToggleSelectMode: k,
|
|
6053
6053
|
highlightVisible: R,
|
|
6054
6054
|
highlightStyle: I,
|
|
@@ -6064,13 +6064,13 @@ var Ah = Object.defineProperty, Rh = Object.defineProperties, kh = Object.getOwn
|
|
|
6064
6064
|
splitPosition: pe,
|
|
6065
6065
|
handleResize: Te,
|
|
6066
6066
|
handleSplitToggle: Re,
|
|
6067
|
-
handleTogglePosition:
|
|
6067
|
+
handleTogglePosition: ct,
|
|
6068
6068
|
handleToggleMinimize: Kt,
|
|
6069
6069
|
handleTogglePromptDock: be,
|
|
6070
6070
|
handleToggleReviewPanel: Ve,
|
|
6071
6071
|
handleRefresh: Wt,
|
|
6072
6072
|
windowWidth: et,
|
|
6073
|
-
windowHeight:
|
|
6073
|
+
windowHeight: ut,
|
|
6074
6074
|
handleWindowResize: _n,
|
|
6075
6075
|
handleIframeMessage: M,
|
|
6076
6076
|
bubbleQuadrant: te,
|
|
@@ -6141,7 +6141,7 @@ function zh(e, t, n, i, o, r) {
|
|
|
6141
6141
|
onResizeEnd: i.handleResizeEnd,
|
|
6142
6142
|
onToggle: i.handleSplitToggle
|
|
6143
6143
|
}, di({
|
|
6144
|
-
"sessions-empty": Se(() => [ne(e.$slots, "sessions-empty", {}, () => [t[0] || (t[0] =
|
|
6144
|
+
"sessions-empty": Se(() => [ne(e.$slots, "sessions-empty", {}, () => [t[0] || (t[0] = _("div", { class: "opencode-session-empty" }, "暂无会话", -1))])]),
|
|
6145
6145
|
_: 2
|
|
6146
6146
|
}, [
|
|
6147
6147
|
i.slots["session-toggle-icon"] ? {
|
|
@@ -6200,18 +6200,18 @@ function zh(e, t, n, i, o, r) {
|
|
|
6200
6200
|
]),
|
|
6201
6201
|
Pe(i.SelectHint)
|
|
6202
6202
|
], 64)) : ae("v-if", !0),
|
|
6203
|
-
io(
|
|
6203
|
+
io(_("div", {
|
|
6204
6204
|
class: "opencode-element-highlight",
|
|
6205
6205
|
style: qt(i.highlightStyle)
|
|
6206
6206
|
}, null, 4), [[Qo, i.highlightVisible]]),
|
|
6207
|
-
io(
|
|
6207
|
+
io(_("div", {
|
|
6208
6208
|
class: "opencode-element-tooltip",
|
|
6209
6209
|
style: qt(i.tooltipStyle)
|
|
6210
|
-
}, [
|
|
6211
|
-
i.dialogVisible ? (D(), j("div", jh, [
|
|
6210
|
+
}, [_("div", Fh, xe(i.tooltipContent.description), 1), _("div", Bh, xe(i.tooltipContent.fileInfo), 1)], 4), [[Qo, i.tooltipVisible]]),
|
|
6211
|
+
i.dialogVisible ? (D(), j("div", jh, [_("div", Wh, [_("div", Vh, [_("div", Hh, xe(i.dialogMessage), 1)]), _("div", { class: "opencode-dialog-actions" }, [_("button", {
|
|
6212
6212
|
class: "opencode-dialog-btn cancel",
|
|
6213
6213
|
onClick: i.handleDialogCancel
|
|
6214
|
-
}, "取消"),
|
|
6214
|
+
}, "取消"), _("button", {
|
|
6215
6215
|
class: "opencode-dialog-btn confirm",
|
|
6216
6216
|
onClick: i.handleDialogConfirm
|
|
6217
6217
|
}, "确认")])])])) : ae("v-if", !0),
|
|
@@ -6258,29 +6258,29 @@ function Rr(e, t) {
|
|
|
6258
6258
|
}
|
|
6259
6259
|
var ln = Bt("SSE"), Gh = 10, Yh = 1e3;
|
|
6260
6260
|
function wl(e) {
|
|
6261
|
-
const { endpoint: t, autoConnect: n = !0, enabled: i, maxRetries: o = Gh, retryDelay: r = Yh, onConnected: s, onDisconnected: l, onError: a, onMessage:
|
|
6261
|
+
const { endpoint: t, autoConnect: n = !0, enabled: i, maxRetries: o = Gh, retryDelay: r = Yh, onConnected: s, onDisconnected: l, onError: a, onMessage: c } = e, u = /* @__PURE__ */ L(null), f = /* @__PURE__ */ L("idle"), p = /* @__PURE__ */ L(0);
|
|
6262
6262
|
function v(P) {
|
|
6263
6263
|
try {
|
|
6264
6264
|
const V = JSON.parse(P.data);
|
|
6265
|
-
|
|
6265
|
+
c?.(V);
|
|
6266
6266
|
} catch {
|
|
6267
|
-
|
|
6267
|
+
c?.(P.data);
|
|
6268
6268
|
}
|
|
6269
6269
|
}
|
|
6270
|
-
function
|
|
6271
|
-
if (!(
|
|
6270
|
+
function y() {
|
|
6271
|
+
if (!(u.value || f.value === "connecting")) {
|
|
6272
6272
|
if (i?.value === !1) {
|
|
6273
6273
|
f.value = "idle";
|
|
6274
6274
|
return;
|
|
6275
6275
|
}
|
|
6276
6276
|
f.value = "connecting", ln.debug(`connecting to ${t}`);
|
|
6277
6277
|
try {
|
|
6278
|
-
|
|
6278
|
+
u.value = new EventSource(t), u.value.onopen = () => {
|
|
6279
6279
|
f.value = "connected", p.value = 0, ln.debug(`connected: ${t}`), s?.();
|
|
6280
|
-
},
|
|
6281
|
-
if (!
|
|
6280
|
+
}, u.value.onmessage = v, u.value.onerror = () => {
|
|
6281
|
+
if (!u.value) return;
|
|
6282
6282
|
const P = f.value === "connected";
|
|
6283
|
-
f.value = "error",
|
|
6283
|
+
f.value = "error", u.value?.close(), u.value = null, ln.debug("error on", {
|
|
6284
6284
|
endpoint: t,
|
|
6285
6285
|
wasConnected: P,
|
|
6286
6286
|
retryCount: p.value,
|
|
@@ -6289,10 +6289,10 @@ function wl(e) {
|
|
|
6289
6289
|
const V = /* @__PURE__ */ new Error(`SSE connection error: ${t}`);
|
|
6290
6290
|
if (a?.(V), p.value < o) {
|
|
6291
6291
|
p.value++;
|
|
6292
|
-
const
|
|
6293
|
-
ln.debug(`will retry #${p.value} in ${
|
|
6294
|
-
i?.value !== !1 && !
|
|
6295
|
-
},
|
|
6292
|
+
const b = r * p.value;
|
|
6293
|
+
ln.debug(`will retry #${p.value} in ${b}ms -> ${t}`), setTimeout(() => {
|
|
6294
|
+
i?.value !== !1 && !u.value && f.value !== "disconnected" && y();
|
|
6295
|
+
}, b);
|
|
6296
6296
|
} else P ? (ln.debug(`max retries reached, calling onDisconnected for ${t}`), l?.()) : ln.debug(`max retries reached, was never connected, NOT calling onDisconnected for ${t}`);
|
|
6297
6297
|
};
|
|
6298
6298
|
} catch (P) {
|
|
@@ -6300,40 +6300,40 @@ function wl(e) {
|
|
|
6300
6300
|
const V = P instanceof Error ? P : new Error(String(P));
|
|
6301
6301
|
if (a?.(V), p.value < o) {
|
|
6302
6302
|
p.value++;
|
|
6303
|
-
const
|
|
6303
|
+
const b = r * p.value;
|
|
6304
6304
|
setTimeout(() => {
|
|
6305
|
-
!
|
|
6306
|
-
},
|
|
6305
|
+
!u.value && f.value !== "disconnected" && y();
|
|
6306
|
+
}, b);
|
|
6307
6307
|
}
|
|
6308
6308
|
}
|
|
6309
6309
|
}
|
|
6310
6310
|
}
|
|
6311
|
-
function
|
|
6312
|
-
|
|
6311
|
+
function g() {
|
|
6312
|
+
u.value && (u.value.close(), u.value = null), f.value = "disconnected", p.value = 0, l?.();
|
|
6313
6313
|
}
|
|
6314
|
-
function
|
|
6315
|
-
|
|
6314
|
+
function T() {
|
|
6315
|
+
g(), y();
|
|
6316
6316
|
}
|
|
6317
|
-
function
|
|
6317
|
+
function S() {
|
|
6318
6318
|
p.value = 0;
|
|
6319
6319
|
}
|
|
6320
|
-
return n && i?.value !== !1 &&
|
|
6321
|
-
|
|
6320
|
+
return n && i?.value !== !1 && y(), qe(() => {
|
|
6321
|
+
g();
|
|
6322
6322
|
}), {
|
|
6323
|
-
connection:
|
|
6323
|
+
connection: u,
|
|
6324
6324
|
status: f,
|
|
6325
6325
|
retryCount: p,
|
|
6326
6326
|
isConnected: q(() => f.value === "connected"),
|
|
6327
6327
|
isConnecting: q(() => f.value === "connecting"),
|
|
6328
|
-
connect:
|
|
6329
|
-
disconnect:
|
|
6330
|
-
reconnect:
|
|
6331
|
-
resetRetryCount:
|
|
6328
|
+
connect: y,
|
|
6329
|
+
disconnect: g,
|
|
6330
|
+
reconnect: T,
|
|
6331
|
+
resetRetryCount: S
|
|
6332
6332
|
};
|
|
6333
6333
|
}
|
|
6334
6334
|
var kr = Bt("ServerSSE");
|
|
6335
6335
|
function Xh(e = {}) {
|
|
6336
|
-
const { viteBaseUrl: t = "", onStatusSync: n, onTaskUpdate: i, onClearElements: o, onConnected: r, onDisconnected: s } = e, l = t ? `${t}${fr}` : fr, { status: a, isConnected:
|
|
6336
|
+
const { viteBaseUrl: t = "", onStatusSync: n, onTaskUpdate: i, onClearElements: o, onConnected: r, onDisconnected: s } = e, l = t ? `${t}${fr}` : fr, { status: a, isConnected: c, connect: u, disconnect: f } = wl({
|
|
6337
6337
|
endpoint: l,
|
|
6338
6338
|
autoConnect: !1,
|
|
6339
6339
|
onDisconnected: () => {
|
|
@@ -6359,18 +6359,18 @@ function Xh(e = {}) {
|
|
|
6359
6359
|
});
|
|
6360
6360
|
return {
|
|
6361
6361
|
status: a,
|
|
6362
|
-
isConnected:
|
|
6363
|
-
connect:
|
|
6362
|
+
isConnected: c,
|
|
6363
|
+
connect: u,
|
|
6364
6364
|
disconnect: f
|
|
6365
6365
|
};
|
|
6366
6366
|
}
|
|
6367
6367
|
function Jh(e) {
|
|
6368
|
-
const { proxyBaseUrl: t, enabled: n, onEvent: i, onConnected: o, onError: r } = e, { status: s, isConnected: l, connect: a, disconnect:
|
|
6368
|
+
const { proxyBaseUrl: t, enabled: n, onEvent: i, onConnected: o, onError: r } = e, { status: s, isConnected: l, connect: a, disconnect: c } = wl({
|
|
6369
6369
|
endpoint: `${t}/global/event`,
|
|
6370
6370
|
autoConnect: !1,
|
|
6371
6371
|
enabled: n,
|
|
6372
|
-
onMessage: (
|
|
6373
|
-
const f =
|
|
6372
|
+
onMessage: (u) => {
|
|
6373
|
+
const f = u.payload;
|
|
6374
6374
|
f && i?.(f);
|
|
6375
6375
|
},
|
|
6376
6376
|
onConnected: o,
|
|
@@ -6380,24 +6380,24 @@ function Jh(e) {
|
|
|
6380
6380
|
status: s,
|
|
6381
6381
|
isConnected: l,
|
|
6382
6382
|
connect: a,
|
|
6383
|
-
disconnect:
|
|
6383
|
+
disconnect: c
|
|
6384
6384
|
};
|
|
6385
6385
|
}
|
|
6386
6386
|
function Zh(e) {
|
|
6387
6387
|
const { proxyBaseUrl: t, currentSessionId: n, enabled: i, onConnected: o, onSessionUpdate: r } = e, s = /* @__PURE__ */ L({});
|
|
6388
|
-
function l(
|
|
6389
|
-
return
|
|
6388
|
+
function l(b) {
|
|
6389
|
+
return b?.role === "assistant" && typeof b?.time?.completed != "number";
|
|
6390
6390
|
}
|
|
6391
|
-
function a(
|
|
6392
|
-
const z = s.value[
|
|
6393
|
-
s.value[
|
|
6391
|
+
function a(b) {
|
|
6392
|
+
const z = s.value[b], G = z?.hasPending || z?.statusType !== "idle";
|
|
6393
|
+
s.value[b] = {
|
|
6394
6394
|
thinking: G,
|
|
6395
6395
|
statusType: z?.statusType || "idle",
|
|
6396
6396
|
hasPending: z?.hasPending || !1
|
|
6397
6397
|
};
|
|
6398
6398
|
}
|
|
6399
|
-
function
|
|
6400
|
-
const z =
|
|
6399
|
+
function c(b) {
|
|
6400
|
+
const z = b.type, G = b.properties;
|
|
6401
6401
|
switch (z) {
|
|
6402
6402
|
case "session.updated": {
|
|
6403
6403
|
const A = G.info;
|
|
@@ -6451,83 +6451,83 @@ function Zh(e) {
|
|
|
6451
6451
|
}
|
|
6452
6452
|
}
|
|
6453
6453
|
}
|
|
6454
|
-
const
|
|
6454
|
+
const u = Jh({
|
|
6455
6455
|
proxyBaseUrl: t,
|
|
6456
6456
|
enabled: i,
|
|
6457
|
-
onEvent:
|
|
6457
|
+
onEvent: c,
|
|
6458
6458
|
onConnected: o
|
|
6459
6459
|
}), f = q(() => {
|
|
6460
|
-
const
|
|
6461
|
-
return
|
|
6460
|
+
const b = n.value;
|
|
6461
|
+
return b ? s.value[b]?.thinking ?? !1 : !1;
|
|
6462
6462
|
}), p = q(() => {
|
|
6463
|
-
const
|
|
6464
|
-
return
|
|
6465
|
-
}), v = q(() => Object.values(s.value).some((
|
|
6466
|
-
function
|
|
6467
|
-
delete s.value[
|
|
6463
|
+
const b = n.value;
|
|
6464
|
+
return b && s.value[b] || null;
|
|
6465
|
+
}), v = q(() => Object.values(s.value).some((b) => b.thinking)), y = q(() => Object.values(s.value).filter((b) => b.thinking).length);
|
|
6466
|
+
function g(b) {
|
|
6467
|
+
delete s.value[b];
|
|
6468
6468
|
}
|
|
6469
|
-
function
|
|
6469
|
+
function T() {
|
|
6470
6470
|
s.value = {};
|
|
6471
6471
|
}
|
|
6472
|
-
function
|
|
6473
|
-
return s.value[
|
|
6472
|
+
function S(b) {
|
|
6473
|
+
return s.value[b];
|
|
6474
6474
|
}
|
|
6475
|
-
function P(
|
|
6476
|
-
return s.value[
|
|
6475
|
+
function P(b) {
|
|
6476
|
+
return s.value[b]?.thinking ?? !1;
|
|
6477
6477
|
}
|
|
6478
|
-
function V(
|
|
6479
|
-
return
|
|
6478
|
+
function V(b) {
|
|
6479
|
+
return b.reduce((z, G) => (z[G] = P(G), z), {});
|
|
6480
6480
|
}
|
|
6481
6481
|
return {
|
|
6482
|
-
status:
|
|
6483
|
-
isConnected:
|
|
6482
|
+
status: u.status,
|
|
6483
|
+
isConnected: u.isConnected,
|
|
6484
6484
|
sessionStates: s,
|
|
6485
6485
|
currentThinking: f,
|
|
6486
6486
|
currentSessionState: p,
|
|
6487
6487
|
hasAnyThinking: v,
|
|
6488
|
-
thinkingSessionCount:
|
|
6489
|
-
connect:
|
|
6490
|
-
disconnect:
|
|
6491
|
-
clearSessionState:
|
|
6492
|
-
clearAllSessionStates:
|
|
6493
|
-
getSessionState:
|
|
6488
|
+
thinkingSessionCount: y,
|
|
6489
|
+
connect: u.connect,
|
|
6490
|
+
disconnect: u.disconnect,
|
|
6491
|
+
clearSessionState: g,
|
|
6492
|
+
clearAllSessionStates: T,
|
|
6493
|
+
getSessionState: S,
|
|
6494
6494
|
isSessionThinking: P,
|
|
6495
6495
|
getSessionsThinking: V
|
|
6496
6496
|
};
|
|
6497
6497
|
}
|
|
6498
6498
|
var Qh = Bt("OpenCode");
|
|
6499
6499
|
function ep(e) {
|
|
6500
|
-
const { showNotification: t, viteBaseUrl: n = "" } = e, i = (
|
|
6500
|
+
const { showNotification: t, viteBaseUrl: n = "" } = e, i = (y) => n ? `${n}${y}` : y, o = /* @__PURE__ */ L([]), r = /* @__PURE__ */ L(void 0), s = /* @__PURE__ */ L(null), l = /* @__PURE__ */ L(!1), a = q(() => s.value && o.value.find((y) => y.id === s.value)?.url || ""), c = async () => {
|
|
6501
6501
|
r.value = !0;
|
|
6502
6502
|
try {
|
|
6503
|
-
const
|
|
6504
|
-
o.value =
|
|
6505
|
-
...
|
|
6506
|
-
updatedAt:
|
|
6503
|
+
const y = await (await fetch(i(Gi))).json();
|
|
6504
|
+
o.value = y.filter((g) => !(g.title === "__chrome_mcp_warmup__" || g.parentID || g.time?.archived)).map((g) => ({
|
|
6505
|
+
...g,
|
|
6506
|
+
updatedAt: g.time?.updated || Date.now()
|
|
6507
6507
|
})), o.value.length || f(), s.value = o.value[0]?.id || null;
|
|
6508
|
-
} catch (
|
|
6509
|
-
Qh.error("Failed to load sessions:", { error:
|
|
6508
|
+
} catch (y) {
|
|
6509
|
+
Qh.error("Failed to load sessions:", { error: y });
|
|
6510
6510
|
} finally {
|
|
6511
6511
|
r.value = !1;
|
|
6512
6512
|
}
|
|
6513
|
-
},
|
|
6514
|
-
const
|
|
6515
|
-
if (
|
|
6516
|
-
const
|
|
6517
|
-
|
|
6518
|
-
...
|
|
6519
|
-
title:
|
|
6520
|
-
updatedAt:
|
|
6513
|
+
}, u = (y) => {
|
|
6514
|
+
const g = o.value.findIndex((S) => S.id === y.id);
|
|
6515
|
+
if (g === -1) return;
|
|
6516
|
+
const T = o.value[g];
|
|
6517
|
+
y.title && y.title !== T.title && (o.value[g] = {
|
|
6518
|
+
...T,
|
|
6519
|
+
title: y.title,
|
|
6520
|
+
updatedAt: y.time?.updated || Date.now()
|
|
6521
6521
|
});
|
|
6522
6522
|
}, f = async () => {
|
|
6523
6523
|
try {
|
|
6524
|
-
const
|
|
6524
|
+
const y = await (await fetch(i(Gi), { method: "POST" })).json();
|
|
6525
6525
|
o.value.unshift({
|
|
6526
|
-
id:
|
|
6526
|
+
id: y.id,
|
|
6527
6527
|
title: "新会话",
|
|
6528
6528
|
updatedAt: Date.now(),
|
|
6529
|
-
url:
|
|
6530
|
-
}), s.value =
|
|
6529
|
+
url: y.url
|
|
6530
|
+
}), s.value = y.id, l.value = !0;
|
|
6531
6531
|
} catch {
|
|
6532
6532
|
t("创建会话失败");
|
|
6533
6533
|
}
|
|
@@ -6538,22 +6538,22 @@ function ep(e) {
|
|
|
6538
6538
|
currentSessionId: s,
|
|
6539
6539
|
iframeSrc: a,
|
|
6540
6540
|
iframeLoading: l,
|
|
6541
|
-
loadSessions:
|
|
6541
|
+
loadSessions: c,
|
|
6542
6542
|
createSession: f,
|
|
6543
|
-
deleteSession: async (
|
|
6543
|
+
deleteSession: async (y) => {
|
|
6544
6544
|
try {
|
|
6545
|
-
if (await fetch(i(`${Gi}?id=${
|
|
6546
|
-
const
|
|
6547
|
-
s.value =
|
|
6545
|
+
if (await fetch(i(`${Gi}?id=${y.id}`), { method: "DELETE" }), await c(), t("会话已删除"), s.value === y.id) if (o.value.length > 0) {
|
|
6546
|
+
const g = o.value[0];
|
|
6547
|
+
s.value = g.id, l.value = !0;
|
|
6548
6548
|
} else s.value = null;
|
|
6549
6549
|
} catch {
|
|
6550
6550
|
t("删除会话失败");
|
|
6551
6551
|
}
|
|
6552
6552
|
},
|
|
6553
|
-
selectSession: (
|
|
6554
|
-
s.value !==
|
|
6553
|
+
selectSession: (y) => {
|
|
6554
|
+
s.value !== y.id && (s.value = y.id, l.value = !0);
|
|
6555
6555
|
},
|
|
6556
|
-
updateSessionInfo:
|
|
6556
|
+
updateSessionInfo: u
|
|
6557
6557
|
};
|
|
6558
6558
|
}
|
|
6559
6559
|
function tp(e, t) {
|
|
@@ -6597,7 +6597,7 @@ function np(e = "") {
|
|
|
6597
6597
|
};
|
|
6598
6598
|
}
|
|
6599
6599
|
function ip() {
|
|
6600
|
-
const e = /* @__PURE__ */ L(""), t = /* @__PURE__ */ L("idle"), n = /* @__PURE__ */ L(!1), i = /* @__PURE__ */ L(void 0), o = /* @__PURE__ */ L(void 0), r = Bt("useServiceStatus"), s = q(() => e.value &&
|
|
6600
|
+
const e = /* @__PURE__ */ L(""), t = /* @__PURE__ */ L("idle"), n = /* @__PURE__ */ L(!1), i = /* @__PURE__ */ L(void 0), o = /* @__PURE__ */ L(void 0), r = Bt("useServiceStatus"), s = q(() => e.value && su[e.value] || "加载中...");
|
|
6601
6601
|
return {
|
|
6602
6602
|
currentTask: e,
|
|
6603
6603
|
serviceStatus: t,
|
|
@@ -6605,9 +6605,9 @@ function ip() {
|
|
|
6605
6605
|
chromeMcpErrorType: i,
|
|
6606
6606
|
chromeMcpErrorMessage: o,
|
|
6607
6607
|
loadingText: s,
|
|
6608
|
-
updateStatusFromTask: (
|
|
6608
|
+
updateStatusFromTask: (c, u, f) => {
|
|
6609
6609
|
const p = t.value;
|
|
6610
|
-
e.value =
|
|
6610
|
+
e.value = c, c === "ready" ? (t.value = "ready", n.value = !1, i.value = void 0, o.value = void 0) : c === "chrome_mcp_failed" ? (t.value = "partial", n.value = !0, i.value = u, o.value = f) : c === "session_creation_failed" || c === "opencode_not_installed" || c === "web_start_timeout" ? t.value = "failed" : t.value === "idle" && c && (t.value = "starting"), r.debug(`updateStatusFromTask: task="${c}" status: ${p} -> ${t.value}`);
|
|
6611
6611
|
},
|
|
6612
6612
|
setStarting: () => {
|
|
6613
6613
|
t.value = "starting";
|
|
@@ -6629,87 +6629,89 @@ function op(e, t, n = "") {
|
|
|
6629
6629
|
});
|
|
6630
6630
|
}, l = (p = !1) => {
|
|
6631
6631
|
if (e.value === "idle") return;
|
|
6632
|
-
const v = window.location.href,
|
|
6633
|
-
(p || v !== i ||
|
|
6632
|
+
const v = window.location.href, y = document.title;
|
|
6633
|
+
(p || v !== i || y !== o) && (i = v, o = y, s(v, y));
|
|
6634
6634
|
}, a = () => {
|
|
6635
6635
|
requestAnimationFrame(() => l());
|
|
6636
6636
|
};
|
|
6637
|
-
let
|
|
6638
|
-
const
|
|
6637
|
+
let c = null;
|
|
6638
|
+
const u = history.pushState, f = history.replaceState;
|
|
6639
6639
|
return Xe(() => {
|
|
6640
6640
|
history.pushState = function(...p) {
|
|
6641
|
-
|
|
6641
|
+
u.apply(this, p), a();
|
|
6642
6642
|
}, history.replaceState = function(...p) {
|
|
6643
6643
|
f.apply(this, p), a();
|
|
6644
|
-
}, window.addEventListener("popstate", a), window.addEventListener("hashchange", a),
|
|
6644
|
+
}, window.addEventListener("popstate", a), window.addEventListener("hashchange", a), c = new MutationObserver(() => {
|
|
6645
6645
|
document.title !== o && l();
|
|
6646
|
-
}), document.head &&
|
|
6646
|
+
}), document.head && c.observe(document.head, {
|
|
6647
6647
|
childList: !0,
|
|
6648
6648
|
subtree: !0
|
|
6649
6649
|
});
|
|
6650
6650
|
}), qe(() => {
|
|
6651
|
-
history.pushState =
|
|
6651
|
+
history.pushState = u, history.replaceState = f, window.removeEventListener("popstate", a), window.removeEventListener("hashchange", a), c && c.disconnect();
|
|
6652
6652
|
}), { updateContext: l };
|
|
6653
6653
|
}
|
|
6654
|
-
function rp(e, t, n = "", i = ""
|
|
6655
|
-
let
|
|
6656
|
-
const
|
|
6657
|
-
|
|
6654
|
+
function rp(e, t, n = "", i = "") {
|
|
6655
|
+
let o = "", r = "", s, l;
|
|
6656
|
+
const a = /* @__PURE__ */ L(""), c = /* @__PURE__ */ L(""), u = Bt("ExtCtx"), f = (g) => n ? `${n}${g}` : g, p = (g, T) => {
|
|
6657
|
+
u.debug(`[ExtCtx] POST 上下文: tabId=${s} url=${g} title=${T}`), fetch(f(Us), {
|
|
6658
6658
|
method: "POST",
|
|
6659
6659
|
headers: { "Content-Type": "application/json" },
|
|
6660
6660
|
body: JSON.stringify({
|
|
6661
|
-
url:
|
|
6662
|
-
title:
|
|
6663
|
-
|
|
6664
|
-
...
|
|
6661
|
+
url: g,
|
|
6662
|
+
title: T,
|
|
6663
|
+
active: !0,
|
|
6664
|
+
...s !== void 0 ? { tabId: s } : {},
|
|
6665
|
+
...l !== void 0 ? { tabIndex: l } : {},
|
|
6665
6666
|
selectedElements: t.value
|
|
6666
6667
|
})
|
|
6667
6668
|
}).catch(() => {
|
|
6668
6669
|
});
|
|
6669
|
-
},
|
|
6670
|
+
}, v = (g = !1) => {
|
|
6670
6671
|
if (e.value === "idle") return;
|
|
6671
|
-
const
|
|
6672
|
-
!
|
|
6673
|
-
},
|
|
6674
|
-
if (!(
|
|
6675
|
-
if (
|
|
6676
|
-
|
|
6672
|
+
const T = a.value, S = c.value;
|
|
6673
|
+
!T && !S || (g || T !== o || S !== r) && (o = T, r = S, p(T, S));
|
|
6674
|
+
}, y = (g) => {
|
|
6675
|
+
if (!(g.serviceInstanceId && g.serviceInstanceId !== i)) {
|
|
6676
|
+
if (g.type === Nt.TAB_SWITCHED) {
|
|
6677
|
+
u.debug(`[ExtCtx] activeTabId: ${s} → ${g.tabId} (windowId=${g.windowId})`), s = g.tabId;
|
|
6677
6678
|
return;
|
|
6678
6679
|
}
|
|
6679
|
-
if (
|
|
6680
|
-
|
|
6681
|
-
|
|
6680
|
+
if (g.type === Nt.PAGE_CONTEXT && g.ctx) {
|
|
6681
|
+
const T = s === void 0 || g.tabId === void 0 || g.tabId === s;
|
|
6682
|
+
if (s === void 0 && g.tabId !== void 0 && (s = g.tabId), !T) return;
|
|
6683
|
+
a.value = g.ctx.url, c.value = g.ctx.title, v(!0);
|
|
6682
6684
|
}
|
|
6683
6685
|
}
|
|
6684
6686
|
};
|
|
6685
6687
|
return Xe(async () => {
|
|
6686
|
-
chrome.runtime.onMessage.addListener(
|
|
6688
|
+
chrome.runtime.onMessage.addListener(y);
|
|
6687
6689
|
try {
|
|
6688
|
-
const
|
|
6690
|
+
const g = await chrome.tabs.query({
|
|
6689
6691
|
active: !0,
|
|
6690
6692
|
currentWindow: !0
|
|
6691
6693
|
});
|
|
6692
|
-
|
|
6693
|
-
})) :
|
|
6694
|
-
} catch (
|
|
6695
|
-
|
|
6694
|
+
g[0]?.id !== void 0 ? (s = g[0].id, l = g[0].index, u.debug(`onMounted activeTabId=${s} tabIndex=${l} url=${g[0].url}`), chrome.tabs.sendMessage(g[0].id, { type: Nt.REQUEST_PAGE_CONTEXT }).catch(() => {
|
|
6695
|
+
})) : u.debug(`onMounted 未查询到活跃 Tab, tabs=${JSON.stringify(g)}`);
|
|
6696
|
+
} catch (g) {
|
|
6697
|
+
u.debug(`onMounted 查询 Tab 失败: ${g}`);
|
|
6696
6698
|
}
|
|
6697
6699
|
}), qe(() => {
|
|
6698
|
-
chrome.runtime.onMessage.removeListener(
|
|
6699
|
-
}), { updateContext:
|
|
6700
|
+
chrome.runtime.onMessage.removeListener(y);
|
|
6701
|
+
}), { updateContext: v };
|
|
6700
6702
|
}
|
|
6701
6703
|
function sp(e) {
|
|
6702
|
-
const { selectMode: t, serviceInstanceId: n, onElementSelected: i, onThemeChange: o } = e, r = (
|
|
6703
|
-
if (!(
|
|
6704
|
-
switch (
|
|
6704
|
+
const { selectMode: t, serviceInstanceId: n, onElementSelected: i, onThemeChange: o } = e, r = (c) => {
|
|
6705
|
+
if (!(c.serviceInstanceId && c.serviceInstanceId !== n))
|
|
6706
|
+
switch (c.type) {
|
|
6705
6707
|
case _e.ELEMENT_SELECTED:
|
|
6706
6708
|
i({
|
|
6707
|
-
filePath:
|
|
6708
|
-
line:
|
|
6709
|
-
column:
|
|
6710
|
-
innerText:
|
|
6711
|
-
description:
|
|
6712
|
-
},
|
|
6709
|
+
filePath: c.filePath ?? null,
|
|
6710
|
+
line: c.line ?? null,
|
|
6711
|
+
column: c.column ?? null,
|
|
6712
|
+
innerText: c.innerText ?? "",
|
|
6713
|
+
description: c.description
|
|
6714
|
+
}, c.pageUrl, c.pageTitle);
|
|
6713
6715
|
break;
|
|
6714
6716
|
case _e.SELECTION_CANCELLED:
|
|
6715
6717
|
t.value = !1;
|
|
@@ -6721,7 +6723,7 @@ function sp(e) {
|
|
|
6721
6723
|
t.value = !1;
|
|
6722
6724
|
break;
|
|
6723
6725
|
case Nt.THEME_CHANGE:
|
|
6724
|
-
|
|
6726
|
+
c.theme && o && o(c.theme);
|
|
6725
6727
|
break;
|
|
6726
6728
|
}
|
|
6727
6729
|
};
|
|
@@ -6730,23 +6732,23 @@ function sp(e) {
|
|
|
6730
6732
|
}), qe(() => {
|
|
6731
6733
|
chrome.runtime.onMessage.removeListener(r);
|
|
6732
6734
|
});
|
|
6733
|
-
async function s(
|
|
6735
|
+
async function s(c) {
|
|
6734
6736
|
try {
|
|
6735
|
-
const
|
|
6737
|
+
const u = await chrome.tabs.query({
|
|
6736
6738
|
active: !0,
|
|
6737
6739
|
currentWindow: !0
|
|
6738
6740
|
});
|
|
6739
|
-
|
|
6741
|
+
u[0]?.id && await chrome.tabs.sendMessage(u[0].id, c);
|
|
6740
6742
|
} catch {
|
|
6741
6743
|
}
|
|
6742
6744
|
}
|
|
6743
|
-
function l(
|
|
6744
|
-
s({ type:
|
|
6745
|
+
function l(c) {
|
|
6746
|
+
s({ type: c ? Nt.SELECTION_START : Nt.SELECTION_STOP });
|
|
6745
6747
|
}
|
|
6746
|
-
function a(
|
|
6748
|
+
function a(c) {
|
|
6747
6749
|
chrome.runtime.sendMessage({
|
|
6748
6750
|
type: Nt.THEME_CHANGE,
|
|
6749
|
-
theme:
|
|
6751
|
+
theme: c
|
|
6750
6752
|
}).catch(() => {
|
|
6751
6753
|
});
|
|
6752
6754
|
}
|
|
@@ -6783,13 +6785,13 @@ function lp(e) {
|
|
|
6783
6785
|
notifySelectModeChange: o
|
|
6784
6786
|
};
|
|
6785
6787
|
}
|
|
6786
|
-
var ap = { class: "opencode-custom-loading" },
|
|
6788
|
+
var ap = { class: "opencode-custom-loading" }, cp = { class: "opencode-loading-text" }, up = /* @__PURE__ */ Ye({
|
|
6787
6789
|
__name: "LoadingContent",
|
|
6788
6790
|
props: { loadingText: {} },
|
|
6789
6791
|
setup(e) {
|
|
6790
|
-
return (t, n) => (D(), j("div", ap, [n[0] || (n[0] =
|
|
6792
|
+
return (t, n) => (D(), j("div", ap, [n[0] || (n[0] = _("div", { class: "opencode-loading-spinner" }, null, -1)), _("div", cp, xe(e.loadingText), 1)]));
|
|
6791
6793
|
}
|
|
6792
|
-
}), dp =
|
|
6794
|
+
}), dp = up, fp = { class: "opencode-chrome-warmup-failed" }, hp = { class: "opencode-chrome-warmup-failed-text" }, pp = {
|
|
6793
6795
|
key: 0,
|
|
6794
6796
|
style: {
|
|
6795
6797
|
"margin-top": "12px",
|
|
@@ -6830,22 +6832,22 @@ var ap = { class: "opencode-custom-loading" }, up = { class: "opencode-loading-t
|
|
|
6830
6832
|
}), a = q(() => {
|
|
6831
6833
|
if (!o.value || !n.models) return n.models?.[0] || null;
|
|
6832
6834
|
const [p, v] = o.value.split(":");
|
|
6833
|
-
return n.models.find((
|
|
6834
|
-
}),
|
|
6835
|
+
return n.models.find((y) => y.providerID === p && y.modelID === v) || null;
|
|
6836
|
+
}), c = (p) => ({
|
|
6835
6837
|
anthropic: "Anthropic",
|
|
6836
6838
|
openai: "OpenAI",
|
|
6837
6839
|
google: "Google",
|
|
6838
6840
|
xai: "xAI",
|
|
6839
6841
|
opencode: "OpenCode",
|
|
6840
6842
|
opencode_go: "OpenCode Go"
|
|
6841
|
-
})[p] || p,
|
|
6843
|
+
})[p] || p, u = (p) => `${p.providerID}:${p.modelID}`, f = () => {
|
|
6842
6844
|
r.value && s.value && a.value ? i("retry", {
|
|
6843
6845
|
providerID: a.value.providerID,
|
|
6844
6846
|
modelID: a.value.modelID
|
|
6845
6847
|
}) : i("retry");
|
|
6846
6848
|
};
|
|
6847
6849
|
return (p, v) => (D(), j("div", fp, [
|
|
6848
|
-
v[11] || (v[11] =
|
|
6850
|
+
v[11] || (v[11] = _("div", { class: "opencode-chrome-warmup-failed-icon" }, [_("svg", {
|
|
6849
6851
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6850
6852
|
fill: "none",
|
|
6851
6853
|
viewBox: "0 0 24 24",
|
|
@@ -6853,58 +6855,58 @@ var ap = { class: "opencode-custom-loading" }, up = { class: "opencode-loading-t
|
|
|
6853
6855
|
height: "48",
|
|
6854
6856
|
stroke: "currentColor",
|
|
6855
6857
|
"stroke-width": "1.5"
|
|
6856
|
-
}, [
|
|
6858
|
+
}, [_("path", {
|
|
6857
6859
|
"stroke-linecap": "round",
|
|
6858
6860
|
"stroke-linejoin": "round",
|
|
6859
6861
|
d: "M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z"
|
|
6860
6862
|
})])], -1)),
|
|
6861
|
-
e.errorType === ge(Qt).CHROME_NOT_CONNECTED ? (D(), j(fe, { key: 0 }, [v[2] || (v[2] =
|
|
6862
|
-
|
|
6863
|
-
|
|
6864
|
-
|
|
6865
|
-
|
|
6866
|
-
])], -1))], 64)) : e.errorType === ge(Qt).AI_TIMEOUT ? (D(), j(fe, { key: 1 }, [v[6] || (v[6] =
|
|
6867
|
-
v[4] || (v[4] =
|
|
6868
|
-
v[5] || (v[5] =
|
|
6869
|
-
|
|
6870
|
-
|
|
6871
|
-
|
|
6863
|
+
e.errorType === ge(Qt).CHROME_NOT_CONNECTED ? (D(), j(fe, { key: 0 }, [v[2] || (v[2] = _("div", { class: "opencode-chrome-warmup-failed-title" }, "Chrome DevTools MCP 连接失败", -1)), v[3] || (v[3] = _("div", { class: "opencode-chrome-warmup-failed-text" }, [_("p", null, "请按以下步骤开启 Chrome 远程调试:"), _("div", { class: "opencode-chrome-warmup-steps" }, [
|
|
6864
|
+
_("div", null, [Oo(" 在 Chrome 地址栏输入 "), _("code", { class: "opencode-chrome-warmup-code" }, "chrome://inspect/#remote-debugging")]),
|
|
6865
|
+
_("div", null, "勾选 'Allow remote debugging for this browser instance' 选项"),
|
|
6866
|
+
_("div", null, "重新启动浏览器"),
|
|
6867
|
+
_("div", null, "完成后点击下方按钮重试")
|
|
6868
|
+
])], -1))], 64)) : e.errorType === ge(Qt).AI_TIMEOUT ? (D(), j(fe, { key: 1 }, [v[6] || (v[6] = _("div", { class: "opencode-chrome-warmup-failed-title" }, "AI 响应超时", -1)), _("div", hp, [
|
|
6869
|
+
v[4] || (v[4] = _("p", null, "AI 模型响应超时,可能的原因:", -1)),
|
|
6870
|
+
v[5] || (v[5] = _("div", { class: "opencode-chrome-warmup-steps" }, [
|
|
6871
|
+
_("div", null, "当前选择的 AI 模型服务不可用或响应缓慢"),
|
|
6872
|
+
_("div", null, "网络连接问题"),
|
|
6873
|
+
_("div", null, "模型配置不正确")
|
|
6872
6874
|
], -1)),
|
|
6873
6875
|
s.value ? (D(), j("p", pp, "可选择其他模型重试:")) : ae("", !0)
|
|
6874
|
-
])], 64)) : e.errorType === ge(Qt).AI_RESPONSE_ERROR ? (D(), j(fe, { key: 2 }, [v[8] || (v[8] =
|
|
6875
|
-
v[7] || (v[7] =
|
|
6876
|
-
|
|
6876
|
+
])], 64)) : e.errorType === ge(Qt).AI_RESPONSE_ERROR ? (D(), j(fe, { key: 2 }, [v[8] || (v[8] = _("div", { class: "opencode-chrome-warmup-failed-title" }, "AI 响应错误", -1)), _("div", vp, [
|
|
6877
|
+
v[7] || (v[7] = _("p", null, "AI 模型返回了意外的响应:", -1)),
|
|
6878
|
+
_("div", gp, xe(e.errorMessage || "未知错误"), 1),
|
|
6877
6879
|
s.value ? (D(), j("p", mp, "可选择其他模型重试:")) : ae("", !0)
|
|
6878
|
-
])], 64)) : (D(), j(fe, { key: 3 }, [v[9] || (v[9] =
|
|
6879
|
-
r.value && s.value ? (D(), j("div", wp, [
|
|
6880
|
-
"onUpdate:modelValue": v[0] || (v[0] = (
|
|
6880
|
+
])], 64)) : (D(), j(fe, { key: 3 }, [v[9] || (v[9] = _("div", { class: "opencode-chrome-warmup-failed-title" }, "Chrome DevTools MCP 连接失败", -1)), _("div", _p, [e.errorMessage ? (D(), j("p", yp, xe(e.errorMessage), 1)) : (D(), j("p", bp, "连接失败,请重试")), s.value ? (D(), j("p", Sp, "可选择模型重试:")) : ae("", !0)])], 64)),
|
|
6881
|
+
r.value && s.value ? (D(), j("div", wp, [_("div", Ep, [io(_("select", {
|
|
6882
|
+
"onUpdate:modelValue": v[0] || (v[0] = (y) => o.value = y),
|
|
6881
6883
|
class: "native-select",
|
|
6882
6884
|
disabled: e.retrying
|
|
6883
|
-
}, [(D(!0), j(fe, null, Wn(l.value, (
|
|
6884
|
-
key:
|
|
6885
|
-
label:
|
|
6886
|
-
}, [(D(!0), j(fe, null, Wn(
|
|
6887
|
-
key:
|
|
6888
|
-
value:
|
|
6889
|
-
}, xe(
|
|
6885
|
+
}, [(D(!0), j(fe, null, Wn(l.value, (y, g) => (D(), j("optgroup", {
|
|
6886
|
+
key: g,
|
|
6887
|
+
label: c(g)
|
|
6888
|
+
}, [(D(!0), j(fe, null, Wn(y, (T) => (D(), j("option", {
|
|
6889
|
+
key: u(T),
|
|
6890
|
+
value: u(T)
|
|
6891
|
+
}, xe(T.name || T.modelID), 9, xp))), 128))], 8, Cp))), 128))], 8, Tp), [[kc, o.value]]), v[10] || (v[10] = _("span", { class: "select-arrow" }, [_("svg", {
|
|
6890
6892
|
viewBox: "0 0 24 24",
|
|
6891
6893
|
width: "16",
|
|
6892
6894
|
height: "16",
|
|
6893
6895
|
fill: "none",
|
|
6894
6896
|
stroke: "currentColor",
|
|
6895
6897
|
"stroke-width": "2"
|
|
6896
|
-
}, [
|
|
6898
|
+
}, [_("path", {
|
|
6897
6899
|
d: "M6 9l6 6 6-6",
|
|
6898
6900
|
"stroke-linecap": "round",
|
|
6899
6901
|
"stroke-linejoin": "round"
|
|
6900
|
-
})])], -1))]),
|
|
6902
|
+
})])], -1))]), _("button", {
|
|
6901
6903
|
class: "retry-btn",
|
|
6902
6904
|
disabled: e.retrying,
|
|
6903
6905
|
onClick: f
|
|
6904
|
-
}, xe(e.retrying ? "连接中..." : "重试连接"), 9, Op)])) : (D(), j("div", Pp, [
|
|
6906
|
+
}, xe(e.retrying ? "连接中..." : "重试连接"), 9, Op)])) : (D(), j("div", Pp, [_("button", {
|
|
6905
6907
|
class: "opencode-chrome-warmup-failed-btn primary",
|
|
6906
6908
|
disabled: e.retrying,
|
|
6907
|
-
onClick: v[1] || (v[1] = (
|
|
6909
|
+
onClick: v[1] || (v[1] = (y) => f())
|
|
6908
6910
|
}, xe(e.retrying ? "连接中..." : "重试连接"), 9, Mp)]))
|
|
6909
6911
|
]));
|
|
6910
6912
|
}
|
|
@@ -6916,7 +6918,7 @@ var ap = { class: "opencode-custom-loading" }, up = { class: "opencode-loading-t
|
|
|
6916
6918
|
__name: "App",
|
|
6917
6919
|
props: { config: {} },
|
|
6918
6920
|
setup(e) {
|
|
6919
|
-
const t = e, n = /* @__PURE__ */ L(!1), i = /* @__PURE__ */ L(!1), o = /* @__PURE__ */ L(!0), r = /* @__PURE__ */ L(!1), s = /* @__PURE__ */ L(null), l = /* @__PURE__ */ L(!1), a = /* @__PURE__ */ L([]), { theme:
|
|
6921
|
+
const t = e, n = /* @__PURE__ */ L(!1), i = /* @__PURE__ */ L(!1), o = /* @__PURE__ */ L(!0), r = /* @__PURE__ */ L(!1), s = /* @__PURE__ */ L(null), l = /* @__PURE__ */ L(!1), a = /* @__PURE__ */ L([]), { theme: c = "auto", open: u = !1, hotkey: f = "ctrl+k", proxyPort: p = 4098, proxyHost: v = "localhost", displayMode: y = "bubble", splitMode: g, vitePort: T = "", serviceInstanceId: S = "", myWindowId: P } = t.config, V = Bt("OpenCode"), b = Bt("App"), z = c, G = /* @__PURE__ */ L(g?.width ?? 500), A = y === "extension", W = y === "extension-selector", F = q(() => T ? `http://127.0.0.1:${T}` : ""), Q = (M) => F.value ? `${F.value}${M}` : M, J = {
|
|
6920
6922
|
onSelectModeChange: null,
|
|
6921
6923
|
broadcastTheme: null,
|
|
6922
6924
|
notifySelectionResult: null,
|
|
@@ -6926,36 +6928,36 @@ var ap = { class: "opencode-custom-loading" }, up = { class: "opencode-loading-t
|
|
|
6926
6928
|
...te,
|
|
6927
6929
|
mode: A ? "widget" : te?.mode
|
|
6928
6930
|
});
|
|
6929
|
-
}, { serviceStatus: U, currentTask: ie, chromeMcpFailed: Y, chromeMcpErrorType: ee, chromeMcpErrorMessage: Ae, loadingText: Je, updateStatusFromTask: Ke, setStarting: Ne } = ip(), { selectedElements: Le, removeElement: gt, clearElements: mt } = np(
|
|
6931
|
+
}, { serviceStatus: U, currentTask: ie, chromeMcpFailed: Y, chromeMcpErrorType: ee, chromeMcpErrorMessage: Ae, loadingText: Je, updateStatusFromTask: Ke, setStarting: Ne } = ip(), { selectedElements: Le, removeElement: gt, clearElements: mt } = np(S), { theme: at, sendThemeToIframe: Ge } = tp(z, s), { sessions: st, loadingSessionList: $e, currentSessionId: Fe, iframeSrc: ye, iframeLoading: Ze, loadSessions: Qe, createSession: d, deleteSession: h, selectSession: m, updateSessionInfo: O } = ep({
|
|
6930
6932
|
showNotification: N,
|
|
6931
6933
|
viteBaseUrl: F.value
|
|
6932
|
-
}), { updateContext:
|
|
6934
|
+
}), { updateContext: E } = A ? rp(U, Le, F.value, S) : op(U, Le, F.value), w = Xh({
|
|
6933
6935
|
viteBaseUrl: F.value,
|
|
6934
6936
|
onStatusSync: (M) => {
|
|
6935
|
-
if (
|
|
6936
|
-
|
|
6937
|
+
if (b.debug(`SSE STATUS_SYNC: ${JSON.stringify(M)} currentStatus: ${U.value}`), R && M.task && M.task !== "ready" && M.task !== "chrome_mcp_failed" && M.task !== "session_creation_failed" && M.task !== "opencode_not_installed" && M.task !== "web_start_timeout") {
|
|
6938
|
+
b.debug(`SSE 重连后服务仍在启动中(${M.task}),重置 status 为 starting`), ie.value = M.task, U.value = "starting", R = !1;
|
|
6937
6939
|
return;
|
|
6938
6940
|
}
|
|
6939
6941
|
R = !1, M.isStarted !== void 0 && M.isStarted && U.value === "idle" && Ne(), M.task && Ke(M.task, M.errorType, M.errorMessage);
|
|
6940
6942
|
},
|
|
6941
6943
|
onTaskUpdate: (M) => {
|
|
6942
|
-
|
|
6944
|
+
b.debug(`SSE TASK_UPDATE: ${JSON.stringify(M)} currentStatus: ${U.value}`), Ke(M.task, M.errorType, M.errorMessage);
|
|
6943
6945
|
},
|
|
6944
6946
|
onClearElements: () => mt(),
|
|
6945
|
-
onConnected: () =>
|
|
6947
|
+
onConnected: () => E(!0)
|
|
6946
6948
|
});
|
|
6947
6949
|
let k = !1, R = !1;
|
|
6948
|
-
Ie(
|
|
6949
|
-
!M && te &&
|
|
6950
|
+
Ie(w.isConnected, (M, te) => {
|
|
6951
|
+
!M && te && S ? (k = !0, b.debug(`SSE 断开,通知服务下线: ${S}`), chrome.runtime.sendMessage({
|
|
6950
6952
|
type: Nt.SERVICE_GONE,
|
|
6951
|
-
serviceInstanceId:
|
|
6953
|
+
serviceInstanceId: S,
|
|
6952
6954
|
windowId: P
|
|
6953
6955
|
}).catch(() => {
|
|
6954
|
-
})) : M && !te && k &&
|
|
6956
|
+
})) : M && !te && k && S && (k = !1, R = !0, b.debug(`SSE 重连,通知服务上线: ${S}`), chrome.runtime.sendMessage({
|
|
6955
6957
|
type: Nt.SERVICE_APPEARED,
|
|
6956
6958
|
proxyPort: p,
|
|
6957
|
-
vitePort:
|
|
6958
|
-
serviceInstanceId:
|
|
6959
|
+
vitePort: T,
|
|
6960
|
+
serviceInstanceId: S,
|
|
6959
6961
|
windowId: P
|
|
6960
6962
|
}).catch(() => {
|
|
6961
6963
|
}));
|
|
@@ -6993,11 +6995,11 @@ var ap = { class: "opencode-custom-loading" }, up = { class: "opencode-loading-t
|
|
|
6993
6995
|
}, se = async () => {
|
|
6994
6996
|
if (U.value !== "idle") return !0;
|
|
6995
6997
|
try {
|
|
6996
|
-
const M = await (await fetch(Q(
|
|
6998
|
+
const M = await (await fetch(Q(Gc))).json();
|
|
6997
6999
|
if (U.value !== "idle")
|
|
6998
|
-
return
|
|
7000
|
+
return b.debug(`[ensureServicesStarted] fetch 完成但 serviceStatus 已变为 ${U.value},跳过启动`), !0;
|
|
6999
7001
|
if (M.success)
|
|
7000
|
-
return Ne(),
|
|
7002
|
+
return Ne(), w.connect(), !0;
|
|
7001
7003
|
} catch {
|
|
7002
7004
|
}
|
|
7003
7005
|
return !1;
|
|
@@ -7015,7 +7017,7 @@ var ap = { class: "opencode-custom-loading" }, up = { class: "opencode-loading-t
|
|
|
7015
7017
|
A || Rr("ctrl+p", (M) => {
|
|
7016
7018
|
M.preventDefault(), he();
|
|
7017
7019
|
}), Ie(U, (M, te) => {
|
|
7018
|
-
M !== "idle" && te === "idle" && (
|
|
7020
|
+
M !== "idle" && te === "idle" && (w.connect(), I.connect()), M === "ready" && te !== "ready" && (b.debug("服务就绪,加载会话列表"), Qe());
|
|
7019
7021
|
}), Ie(Y, (M) => {
|
|
7020
7022
|
M && re();
|
|
7021
7023
|
});
|
|
@@ -7025,7 +7027,7 @@ var ap = { class: "opencode-custom-loading" }, up = { class: "opencode-loading-t
|
|
|
7025
7027
|
i.value && J.onSelectModeChange?.(!1);
|
|
7026
7028
|
};
|
|
7027
7029
|
Xe(() => {
|
|
7028
|
-
|
|
7030
|
+
b.debug(`onMounted, sid=${S}, serviceStatus=${U.value}, config: ${JSON.stringify(t.config)}`), U.value === "ready" ? (b.debug("onMounted: ready 分支,直接加载会话"), Qe(), w.connect(), I.connect(), E(!0)) : U.value === "idle" && (A ? (b.debug("onMounted: idle 分支(扩展模式),先 setStarting 显示蒙层"), Ne(), w.connect()) : (b.debug("onMounted: idle 分支(非扩展模式),直接加载会话"), Qe(), w.connect())), u && U.value === "ready" && setTimeout(() => {
|
|
7029
7031
|
n.value = !0;
|
|
7030
7032
|
}, 1e3), window.addEventListener("message", pe), document.addEventListener("visibilitychange", Te), window.addEventListener("pagehide", Te);
|
|
7031
7033
|
}), qe(() => {
|
|
@@ -7040,8 +7042,8 @@ var ap = { class: "opencode-custom-loading" }, up = { class: "opencode-loading-t
|
|
|
7040
7042
|
return;
|
|
7041
7043
|
}
|
|
7042
7044
|
}
|
|
7043
|
-
n.value = M, M &&
|
|
7044
|
-
},
|
|
7045
|
+
n.value = M, M && E(), M && (Ze.value = !1);
|
|
7046
|
+
}, ct = async (M, te, yn) => {
|
|
7045
7047
|
if (W) {
|
|
7046
7048
|
J.notifySelectionResult?.(M), N("元素已选中", { mode: "page" });
|
|
7047
7049
|
return;
|
|
@@ -7053,7 +7055,7 @@ var ap = { class: "opencode-custom-loading" }, up = { class: "opencode-loading-t
|
|
|
7053
7055
|
};
|
|
7054
7056
|
s.value?.sendMessageToIframe(_e.INSERT_FILE_PART, { element: Ni }), N("节点已添加到对话框", { mode: "page" });
|
|
7055
7057
|
}, Kt = () => {
|
|
7056
|
-
mt(),
|
|
7058
|
+
mt(), E(!0), N("已清除所有选中元素");
|
|
7057
7059
|
}, be = (M) => {
|
|
7058
7060
|
if (i.value === M) return;
|
|
7059
7061
|
i.value = M, A && J.onSelectModeChange?.(M), s.value?.sendMessageToIframe(_e.SELECT_MODE_CHANGE, { selectMode: M });
|
|
@@ -7063,8 +7065,8 @@ var ap = { class: "opencode-custom-loading" }, up = { class: "opencode-loading-t
|
|
|
7063
7065
|
if (A) {
|
|
7064
7066
|
const M = sp({
|
|
7065
7067
|
selectMode: i,
|
|
7066
|
-
serviceInstanceId:
|
|
7067
|
-
onElementSelected:
|
|
7068
|
+
serviceInstanceId: S,
|
|
7069
|
+
onElementSelected: ct,
|
|
7068
7070
|
onThemeChange: (te) => {
|
|
7069
7071
|
at.value = te, Ge();
|
|
7070
7072
|
}
|
|
@@ -7081,8 +7083,8 @@ var ap = { class: "opencode-custom-loading" }, up = { class: "opencode-loading-t
|
|
|
7081
7083
|
at.value = M, A && J.broadcastTheme?.(M);
|
|
7082
7084
|
}, et = (M) => {
|
|
7083
7085
|
G.value = M;
|
|
7084
|
-
},
|
|
7085
|
-
gt(M),
|
|
7086
|
+
}, ut = ({ index: M }) => {
|
|
7087
|
+
gt(M), E(!0);
|
|
7086
7088
|
}, _n = () => {
|
|
7087
7089
|
Ze.value = !1;
|
|
7088
7090
|
};
|
|
@@ -7104,8 +7106,8 @@ var ap = { class: "opencode-custom-loading" }, up = { class: "opencode-loading-t
|
|
|
7104
7106
|
"session-key": "id",
|
|
7105
7107
|
"hotkey-label": ge(f),
|
|
7106
7108
|
thinking: ge(x),
|
|
7107
|
-
"display-mode": ge(
|
|
7108
|
-
"split-mode": ge(
|
|
7109
|
+
"display-mode": ge(y),
|
|
7110
|
+
"split-mode": ge(g),
|
|
7109
7111
|
"split-panel-width": G.value,
|
|
7110
7112
|
"onUpdate:open": Re,
|
|
7111
7113
|
"onUpdate:selectMode": be,
|
|
@@ -7115,10 +7117,10 @@ var ap = { class: "opencode-custom-loading" }, up = { class: "opencode-loading-t
|
|
|
7115
7117
|
onToggleTheme: Wt,
|
|
7116
7118
|
onCreateSession: ge(d),
|
|
7117
7119
|
onDeleteSession: ge(h),
|
|
7118
|
-
onSelectSession: ge(
|
|
7119
|
-
onClickSelectedNode:
|
|
7120
|
+
onSelectSession: ge(m),
|
|
7121
|
+
onClickSelectedNode: ct,
|
|
7120
7122
|
onClearSelectedNodes: Kt,
|
|
7121
|
-
onRemoveSelectedNode:
|
|
7123
|
+
onRemoveSelectedNode: ut,
|
|
7122
7124
|
onEmptyAction: ge(d),
|
|
7123
7125
|
onFrameLoaded: _n
|
|
7124
7126
|
}, {
|
|
@@ -7166,7 +7168,7 @@ if (Nr) {
|
|
|
7166
7168
|
const e = Nr.getAttribute(zs);
|
|
7167
7169
|
if (e) try {
|
|
7168
7170
|
const t = new TextDecoder().decode(Uint8Array.from(atob(e), (n) => n.charCodeAt(0)));
|
|
7169
|
-
St = JSON.parse(t), St.verbose &&
|
|
7171
|
+
St = JSON.parse(t), St.verbose && Xc(!0);
|
|
7170
7172
|
} catch (t) {
|
|
7171
7173
|
Lp.error("Failed to parse config:", { error: t });
|
|
7172
7174
|
}
|
|
@@ -7193,7 +7195,7 @@ if (!window[Zi]) {
|
|
|
7193
7195
|
}
|
|
7194
7196
|
const t = document.createElement("div");
|
|
7195
7197
|
document.body.appendChild(t);
|
|
7196
|
-
const n =
|
|
7198
|
+
const n = Fc(Np, { config: St });
|
|
7197
7199
|
n.mount(t), window.__OPENCODE_CLEANUP__ = () => {
|
|
7198
7200
|
e && clearInterval(e), n.unmount(), t.remove(), window[Zi] = !1;
|
|
7199
7201
|
};
|