vite-plugin-opencode-assistant 1.0.54 → 1.0.55
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/lib/client.js +772 -778
- package/package.json +4 -4
package/lib/client.js
CHANGED
|
@@ -9,21 +9,21 @@ function jo(e) {
|
|
|
9
9
|
for (const n of e.split(",")) t[n] = 1;
|
|
10
10
|
return (n) => n in t;
|
|
11
11
|
}
|
|
12
|
-
const fe = {},
|
|
12
|
+
const fe = {}, Ut = [], Ot = () => {
|
|
13
13
|
}, si = () => !1, Zn = (e) => e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && // uppercase letter
|
|
14
14
|
(e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97), Qn = (e) => e.startsWith("onUpdate:"), nt = Object.assign, ii = (e, t) => {
|
|
15
15
|
const n = e.indexOf(t);
|
|
16
16
|
n > -1 && e.splice(n, 1);
|
|
17
|
-
},
|
|
17
|
+
}, Yl = Object.prototype.hasOwnProperty, le = (e, t) => Yl.call(e, t), G = Array.isArray, Yt = (e) => On(e) === "[object Map]", eo = (e) => On(e) === "[object Set]", us = (e) => On(e) === "[object Date]", ie = (e) => typeof e == "function", we = (e) => typeof e == "string", ze = (e) => typeof e == "symbol", ue = (e) => e !== null && typeof e == "object", li = (e) => (ue(e) || ie(e)) && ie(e.then) && ie(e.catch), ri = Object.prototype.toString, On = (e) => ri.call(e), Gl = (e) => On(e).slice(8, -1), ai = (e) => On(e) === "[object Object]", to = (e) => we(e) && e !== "NaN" && e[0] !== "-" && "" + parseInt(e, 10) === e, pn = /* @__PURE__ */ jo(
|
|
18
18
|
// the leading comma is intentional so empty string "" is also included
|
|
19
19
|
",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"
|
|
20
20
|
), no = (e) => {
|
|
21
21
|
const t = /* @__PURE__ */ Object.create(null);
|
|
22
22
|
return (n) => t[n] || (t[n] = e(n));
|
|
23
|
-
},
|
|
24
|
-
(e) => e.replace(
|
|
25
|
-
),
|
|
26
|
-
(e) => e.replace(
|
|
23
|
+
}, Xl = /-\w/g, Qe = no(
|
|
24
|
+
(e) => e.replace(Xl, (t) => t.slice(1).toUpperCase())
|
|
25
|
+
), Jl = /\B([A-Z])/g, Vt = no(
|
|
26
|
+
(e) => e.replace(Jl, "-$1").toLowerCase()
|
|
27
27
|
), ci = no((e) => e.charAt(0).toUpperCase() + e.slice(1)), fo = no(
|
|
28
28
|
(e) => e ? `on${ci(e)}` : ""
|
|
29
29
|
), dt = (e, t) => !Object.is(e, t), Fn = (e, ...t) => {
|
|
@@ -46,7 +46,7 @@ function Ht(e) {
|
|
|
46
46
|
if (G(e)) {
|
|
47
47
|
const t = {};
|
|
48
48
|
for (let n = 0; n < e.length; n++) {
|
|
49
|
-
const o = e[n], s = we(o) ?
|
|
49
|
+
const o = e[n], s = we(o) ? tr(o) : Ht(o);
|
|
50
50
|
if (s)
|
|
51
51
|
for (const i in s)
|
|
52
52
|
t[i] = s[i];
|
|
@@ -55,12 +55,12 @@ function Ht(e) {
|
|
|
55
55
|
} else if (we(e) || ue(e))
|
|
56
56
|
return e;
|
|
57
57
|
}
|
|
58
|
-
const
|
|
59
|
-
function
|
|
58
|
+
const Zl = /;(?![^(]*\))/g, Ql = /:([^]+)/, er = /\/\*[^]*?\*\//g;
|
|
59
|
+
function tr(e) {
|
|
60
60
|
const t = {};
|
|
61
|
-
return e.replace(
|
|
61
|
+
return e.replace(er, "").split(Zl).forEach((n) => {
|
|
62
62
|
if (n) {
|
|
63
|
-
const o = n.split(
|
|
63
|
+
const o = n.split(Ql);
|
|
64
64
|
o.length > 1 && (t[o[0].trim()] = o[1].trim());
|
|
65
65
|
}
|
|
66
66
|
}), t;
|
|
@@ -79,11 +79,11 @@ function xe(e) {
|
|
|
79
79
|
e[n] && (t += n + " ");
|
|
80
80
|
return t.trim();
|
|
81
81
|
}
|
|
82
|
-
const
|
|
82
|
+
const nr = "itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly", or = /* @__PURE__ */ jo(nr);
|
|
83
83
|
function fi(e) {
|
|
84
84
|
return !!e || e === "";
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function sr(e, t) {
|
|
87
87
|
if (e.length !== t.length) return !1;
|
|
88
88
|
let n = !0;
|
|
89
89
|
for (let o = 0; n && o < e.length; o++)
|
|
@@ -98,7 +98,7 @@ function Mn(e, t) {
|
|
|
98
98
|
if (n = ze(e), o = ze(t), n || o)
|
|
99
99
|
return e === t;
|
|
100
100
|
if (n = G(e), o = G(t), n || o)
|
|
101
|
-
return n && o ?
|
|
101
|
+
return n && o ? sr(e, t) : !1;
|
|
102
102
|
if (n = ue(e), o = ue(t), n || o) {
|
|
103
103
|
if (!n || !o)
|
|
104
104
|
return !1;
|
|
@@ -113,7 +113,7 @@ function Mn(e, t) {
|
|
|
113
113
|
}
|
|
114
114
|
return String(e) === String(t);
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function ir(e, t) {
|
|
117
117
|
return e.findIndex((n) => Mn(n, t));
|
|
118
118
|
}
|
|
119
119
|
const hi = (e) => !!(e && e.__v_isRef === !0), _e = (e) => we(e) ? e : e == null ? "" : G(e) || ue(e) && (e.toString === ri || !ie(e.toString)) ? hi(e) ? _e(e.value) : JSON.stringify(e, pi, 2) : String(e), pi = (e, t) => hi(t) ? pi(e, t.value) : Yt(t) ? {
|
|
@@ -131,7 +131,7 @@ const hi = (e) => !!(e && e.__v_isRef === !0), _e = (e) => we(e) ? e : e == null
|
|
|
131
131
|
ze(e) ? `Symbol(${(n = e.description) != null ? n : t})` : e
|
|
132
132
|
);
|
|
133
133
|
};
|
|
134
|
-
function
|
|
134
|
+
function lr(e) {
|
|
135
135
|
return e == null ? "initial" : typeof e == "string" ? e === "" ? " " : e : String(e);
|
|
136
136
|
}
|
|
137
137
|
/**
|
|
@@ -140,7 +140,7 @@ function ir(e) {
|
|
|
140
140
|
* @license MIT
|
|
141
141
|
**/
|
|
142
142
|
let Fe;
|
|
143
|
-
class
|
|
143
|
+
class rr {
|
|
144
144
|
// TODO isolatedDeclarations "__v_skip"
|
|
145
145
|
constructor(t = !1) {
|
|
146
146
|
this.detached = t, this._active = !0, this._on = 0, this.effects = [], this.cleanups = [], this._isPaused = !1, this.__v_skip = !0, this.parent = Fe, !t && Fe && (this.index = (Fe.scopes || (Fe.scopes = [])).push(
|
|
@@ -220,7 +220,7 @@ class lr {
|
|
|
220
220
|
}
|
|
221
221
|
}
|
|
222
222
|
}
|
|
223
|
-
function
|
|
223
|
+
function ar() {
|
|
224
224
|
return Fe;
|
|
225
225
|
}
|
|
226
226
|
let re;
|
|
@@ -318,7 +318,7 @@ function yi(e) {
|
|
|
318
318
|
let t, n = e.depsTail, o = n;
|
|
319
319
|
for (; o; ) {
|
|
320
320
|
const s = o.prevDep;
|
|
321
|
-
o.version === -1 ? (o === n && (n = s), Vo(o),
|
|
321
|
+
o.version === -1 ? (o === n && (n = s), Vo(o), cr(o)) : t = o, o.dep.activeLink = o.prevActiveLink, o.prevActiveLink = void 0, o = s;
|
|
322
322
|
}
|
|
323
323
|
e.deps = t, e.depsTail = n;
|
|
324
324
|
}
|
|
@@ -353,7 +353,7 @@ function Vo(e, t = !1) {
|
|
|
353
353
|
}
|
|
354
354
|
!t && !--n.sc && n.map && n.map.delete(n.key);
|
|
355
355
|
}
|
|
356
|
-
function
|
|
356
|
+
function cr(e) {
|
|
357
357
|
const { prevDep: t, nextDep: n } = e;
|
|
358
358
|
t && (t.nextDep = n, e.prevDep = void 0), n && (n.prevDep = t, e.nextDep = void 0);
|
|
359
359
|
}
|
|
@@ -379,7 +379,7 @@ function fs(e) {
|
|
|
379
379
|
}
|
|
380
380
|
}
|
|
381
381
|
let Sn = 0;
|
|
382
|
-
class
|
|
382
|
+
class ur {
|
|
383
383
|
constructor(t, n) {
|
|
384
384
|
this.sub = t, this.dep = n, this.version = n.version, this.nextDep = this.prevDep = this.nextSub = this.prevSub = this.prevActiveLink = void 0;
|
|
385
385
|
}
|
|
@@ -394,7 +394,7 @@ class zo {
|
|
|
394
394
|
return;
|
|
395
395
|
let n = this.activeLink;
|
|
396
396
|
if (n === void 0 || n.sub !== re)
|
|
397
|
-
n = this.activeLink = new
|
|
397
|
+
n = this.activeLink = new ur(re, this), re.deps ? (n.prevDep = re.depsTail, re.depsTail.nextDep = n, re.depsTail = n) : re.deps = re.depsTail = n, wi(n);
|
|
398
398
|
else if (n.version === -1 && (n.version = this.version, n.nextDep)) {
|
|
399
399
|
const o = n.nextDep;
|
|
400
400
|
o.prevDep = n.prevDep, n.prevDep && (n.prevDep.nextDep = o), n.prevDep = re.depsTail, n.nextDep = void 0, re.depsTail.nextDep = n, re.depsTail = n, re.deps === n && (re.deps = o);
|
|
@@ -474,7 +474,7 @@ function bt(e, t, n, o, s, i) {
|
|
|
474
474
|
}
|
|
475
475
|
Ho();
|
|
476
476
|
}
|
|
477
|
-
function
|
|
477
|
+
function dr(e, t) {
|
|
478
478
|
const n = jn.get(e);
|
|
479
479
|
return n && n.get(t);
|
|
480
480
|
}
|
|
@@ -488,7 +488,7 @@ function so(e) {
|
|
|
488
488
|
function ct(e, t) {
|
|
489
489
|
return /* @__PURE__ */ wt(e) ? Zt(/* @__PURE__ */ Wt(e) ? tt(t) : t) : tt(t);
|
|
490
490
|
}
|
|
491
|
-
const
|
|
491
|
+
const fr = {
|
|
492
492
|
__proto__: null,
|
|
493
493
|
[Symbol.iterator]() {
|
|
494
494
|
return go(this, Symbol.iterator, (e) => ct(this, e));
|
|
@@ -605,10 +605,10 @@ function go(e, t, n) {
|
|
|
605
605
|
return i.done || (i.value = n(i.value)), i;
|
|
606
606
|
}), s;
|
|
607
607
|
}
|
|
608
|
-
const
|
|
608
|
+
const hr = Array.prototype;
|
|
609
609
|
function vt(e, t, n, o, s, i) {
|
|
610
610
|
const l = so(e), r = l !== e && !/* @__PURE__ */ Ve(e), a = l[t];
|
|
611
|
-
if (a !==
|
|
611
|
+
if (a !== hr[t]) {
|
|
612
612
|
const f = a.apply(e, i);
|
|
613
613
|
return r ? tt(f) : f;
|
|
614
614
|
}
|
|
@@ -643,10 +643,10 @@ function cn(e, t, n = []) {
|
|
|
643
643
|
const o = (/* @__PURE__ */ ne(e))[t].apply(e, n);
|
|
644
644
|
return Ho(), Pt(), o;
|
|
645
645
|
}
|
|
646
|
-
const
|
|
646
|
+
const pr = /* @__PURE__ */ jo("__proto__,__v_isRef,__isVue"), Ei = new Set(
|
|
647
647
|
/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(ze)
|
|
648
648
|
);
|
|
649
|
-
function
|
|
649
|
+
function gr(e) {
|
|
650
650
|
ze(e) || (e = String(e));
|
|
651
651
|
const t = /* @__PURE__ */ ne(this);
|
|
652
652
|
return Pe(t, "has", e), t.hasOwnProperty(e);
|
|
@@ -665,16 +665,16 @@ class Ti {
|
|
|
665
665
|
if (n === "__v_isShallow")
|
|
666
666
|
return i;
|
|
667
667
|
if (n === "__v_raw")
|
|
668
|
-
return o === (s ? i ?
|
|
668
|
+
return o === (s ? i ? xr : Oi : i ? Ai : Ci).get(t) || // receiver is not the reactive proxy, but has the same prototype
|
|
669
669
|
// this means the receiver is a user proxy of the reactive proxy
|
|
670
670
|
Object.getPrototypeOf(t) === Object.getPrototypeOf(o) ? t : void 0;
|
|
671
671
|
const l = G(t);
|
|
672
672
|
if (!s) {
|
|
673
673
|
let a;
|
|
674
|
-
if (l && (a =
|
|
674
|
+
if (l && (a = fr[n]))
|
|
675
675
|
return a;
|
|
676
676
|
if (n === "hasOwnProperty")
|
|
677
|
-
return
|
|
677
|
+
return gr;
|
|
678
678
|
}
|
|
679
679
|
const r = Reflect.get(
|
|
680
680
|
t,
|
|
@@ -684,7 +684,7 @@ class Ti {
|
|
|
684
684
|
// its class methods
|
|
685
685
|
/* @__PURE__ */ Te(t) ? t : o
|
|
686
686
|
);
|
|
687
|
-
if ((ze(n) ? Ei.has(n) :
|
|
687
|
+
if ((ze(n) ? Ei.has(n) : pr(n)) || (s || Pe(t, "get", n), i))
|
|
688
688
|
return r;
|
|
689
689
|
if (/* @__PURE__ */ Te(r)) {
|
|
690
690
|
const a = l && to(n) ? r : r.value;
|
|
@@ -731,7 +731,7 @@ class xi extends Ti {
|
|
|
731
731
|
), Reflect.ownKeys(t);
|
|
732
732
|
}
|
|
733
733
|
}
|
|
734
|
-
class
|
|
734
|
+
class mr extends Ti {
|
|
735
735
|
constructor(t = !1) {
|
|
736
736
|
super(!0, t);
|
|
737
737
|
}
|
|
@@ -742,9 +742,9 @@ class gr extends Ti {
|
|
|
742
742
|
return !0;
|
|
743
743
|
}
|
|
744
744
|
}
|
|
745
|
-
const
|
|
745
|
+
const vr = /* @__PURE__ */ new xi(), _r = /* @__PURE__ */ new mr(), yr = /* @__PURE__ */ new xi(!0);
|
|
746
746
|
const Mo = (e) => e, Dn = (e) => Reflect.getPrototypeOf(e);
|
|
747
|
-
function
|
|
747
|
+
function br(e, t, n) {
|
|
748
748
|
return function(...o) {
|
|
749
749
|
const s = this.__v_raw, i = /* @__PURE__ */ ne(s), l = Yt(i), r = e === "entries" || e === Symbol.iterator && l, a = e === "keys" && l, u = s[e](...o), c = n ? Mo : t ? Zt : tt;
|
|
750
750
|
return !t && Pe(
|
|
@@ -772,7 +772,7 @@ function Rn(e) {
|
|
|
772
772
|
return e === "delete" ? !1 : e === "clear" ? void 0 : this;
|
|
773
773
|
};
|
|
774
774
|
}
|
|
775
|
-
function
|
|
775
|
+
function Sr(e, t) {
|
|
776
776
|
const n = {
|
|
777
777
|
get(s) {
|
|
778
778
|
const i = this.__v_raw, l = /* @__PURE__ */ ne(i), r = /* @__PURE__ */ ne(s);
|
|
@@ -840,26 +840,26 @@ function br(e, t) {
|
|
|
840
840
|
"entries",
|
|
841
841
|
Symbol.iterator
|
|
842
842
|
].forEach((s) => {
|
|
843
|
-
n[s] =
|
|
843
|
+
n[s] = br(s, e, t);
|
|
844
844
|
}), n;
|
|
845
845
|
}
|
|
846
846
|
function qo(e, t) {
|
|
847
|
-
const n =
|
|
847
|
+
const n = Sr(e, t);
|
|
848
848
|
return (o, s, i) => s === "__v_isReactive" ? !e : s === "__v_isReadonly" ? e : s === "__v_raw" ? o : Reflect.get(
|
|
849
849
|
le(n, s) && s in o ? n : o,
|
|
850
850
|
s,
|
|
851
851
|
i
|
|
852
852
|
);
|
|
853
853
|
}
|
|
854
|
-
const
|
|
854
|
+
const wr = {
|
|
855
855
|
get: /* @__PURE__ */ qo(!1, !1)
|
|
856
|
-
}, wr = {
|
|
857
|
-
get: /* @__PURE__ */ qo(!1, !0)
|
|
858
856
|
}, Er = {
|
|
857
|
+
get: /* @__PURE__ */ qo(!1, !0)
|
|
858
|
+
}, Tr = {
|
|
859
859
|
get: /* @__PURE__ */ qo(!0, !1)
|
|
860
860
|
};
|
|
861
|
-
const Ci = /* @__PURE__ */ new WeakMap(), Ai = /* @__PURE__ */ new WeakMap(), Oi = /* @__PURE__ */ new WeakMap(),
|
|
862
|
-
function
|
|
861
|
+
const Ci = /* @__PURE__ */ new WeakMap(), Ai = /* @__PURE__ */ new WeakMap(), Oi = /* @__PURE__ */ new WeakMap(), xr = /* @__PURE__ */ new WeakMap();
|
|
862
|
+
function Cr(e) {
|
|
863
863
|
switch (e) {
|
|
864
864
|
case "Object":
|
|
865
865
|
case "Array":
|
|
@@ -873,43 +873,43 @@ function xr(e) {
|
|
|
873
873
|
return 0;
|
|
874
874
|
}
|
|
875
875
|
}
|
|
876
|
-
function
|
|
877
|
-
return e.__v_skip || !Object.isExtensible(e) ? 0 :
|
|
876
|
+
function Ar(e) {
|
|
877
|
+
return e.__v_skip || !Object.isExtensible(e) ? 0 : Cr(Gl(e));
|
|
878
878
|
}
|
|
879
879
|
// @__NO_SIDE_EFFECTS__
|
|
880
880
|
function Mi(e) {
|
|
881
|
-
return /* @__PURE__ */ wt(e) ? e :
|
|
881
|
+
return /* @__PURE__ */ wt(e) ? e : Ko(
|
|
882
882
|
e,
|
|
883
883
|
!1,
|
|
884
|
-
|
|
885
|
-
|
|
884
|
+
vr,
|
|
885
|
+
wr,
|
|
886
886
|
Ci
|
|
887
887
|
);
|
|
888
888
|
}
|
|
889
889
|
// @__NO_SIDE_EFFECTS__
|
|
890
|
-
function
|
|
891
|
-
return
|
|
890
|
+
function Or(e) {
|
|
891
|
+
return Ko(
|
|
892
892
|
e,
|
|
893
893
|
!1,
|
|
894
|
-
|
|
895
|
-
|
|
894
|
+
yr,
|
|
895
|
+
Er,
|
|
896
896
|
Ai
|
|
897
897
|
);
|
|
898
898
|
}
|
|
899
899
|
// @__NO_SIDE_EFFECTS__
|
|
900
900
|
function Po(e) {
|
|
901
|
-
return
|
|
901
|
+
return Ko(
|
|
902
902
|
e,
|
|
903
903
|
!0,
|
|
904
|
-
|
|
905
|
-
|
|
904
|
+
_r,
|
|
905
|
+
Tr,
|
|
906
906
|
Oi
|
|
907
907
|
);
|
|
908
908
|
}
|
|
909
|
-
function
|
|
909
|
+
function Ko(e, t, n, o, s) {
|
|
910
910
|
if (!ue(e) || e.__v_raw && !(t && e.__v_isReactive))
|
|
911
911
|
return e;
|
|
912
|
-
const i =
|
|
912
|
+
const i = Ar(e);
|
|
913
913
|
if (i === 0)
|
|
914
914
|
return e;
|
|
915
915
|
const l = s.get(e);
|
|
@@ -942,7 +942,7 @@ function ne(e) {
|
|
|
942
942
|
const t = e && e.__v_raw;
|
|
943
943
|
return t ? /* @__PURE__ */ ne(t) : e;
|
|
944
944
|
}
|
|
945
|
-
function
|
|
945
|
+
function Mr(e) {
|
|
946
946
|
return !le(e, "__v_skip") && Object.isExtensible(e) && ui(e, "__v_skip", !0), e;
|
|
947
947
|
}
|
|
948
948
|
const tt = (e) => ue(e) ? /* @__PURE__ */ Mi(e) : e, Zt = (e) => ue(e) ? /* @__PURE__ */ Po(e) : e;
|
|
@@ -951,13 +951,13 @@ function Te(e) {
|
|
|
951
951
|
return e ? e.__v_isRef === !0 : !1;
|
|
952
952
|
}
|
|
953
953
|
// @__NO_SIDE_EFFECTS__
|
|
954
|
-
function
|
|
955
|
-
return
|
|
954
|
+
function N(e) {
|
|
955
|
+
return Pr(e, !1);
|
|
956
956
|
}
|
|
957
|
-
function
|
|
958
|
-
return /* @__PURE__ */ Te(e) ? e : new
|
|
957
|
+
function Pr(e, t) {
|
|
958
|
+
return /* @__PURE__ */ Te(e) ? e : new kr(e, t);
|
|
959
959
|
}
|
|
960
|
-
class
|
|
960
|
+
class kr {
|
|
961
961
|
constructor(t, n) {
|
|
962
962
|
this.dep = new zo(), this.__v_isRef = !0, this.__v_isShallow = !1, this._rawValue = n ? t : /* @__PURE__ */ ne(t), this._value = n ? t : tt(t), this.__v_isShallow = n;
|
|
963
963
|
}
|
|
@@ -972,7 +972,7 @@ class Pr {
|
|
|
972
972
|
function de(e) {
|
|
973
973
|
return /* @__PURE__ */ Te(e) ? e.value : e;
|
|
974
974
|
}
|
|
975
|
-
const
|
|
975
|
+
const Ir = {
|
|
976
976
|
get: (e, t, n) => t === "__v_raw" ? e : de(Reflect.get(e, t, n)),
|
|
977
977
|
set: (e, t, n, o) => {
|
|
978
978
|
const s = e[t];
|
|
@@ -980,9 +980,9 @@ const kr = {
|
|
|
980
980
|
}
|
|
981
981
|
};
|
|
982
982
|
function Pi(e) {
|
|
983
|
-
return /* @__PURE__ */ Wt(e) ? e : new Proxy(e,
|
|
983
|
+
return /* @__PURE__ */ Wt(e) ? e : new Proxy(e, Ir);
|
|
984
984
|
}
|
|
985
|
-
class
|
|
985
|
+
class Dr {
|
|
986
986
|
constructor(t, n, o) {
|
|
987
987
|
this._object = t, this._defaultValue = o, this.__v_isRef = !0, this._value = void 0, this._key = ze(n) ? n : String(n), this._raw = /* @__PURE__ */ ne(t);
|
|
988
988
|
let s = !0, i = t;
|
|
@@ -1007,10 +1007,10 @@ class Ir {
|
|
|
1007
1007
|
this._object[this._key] = t;
|
|
1008
1008
|
}
|
|
1009
1009
|
get dep() {
|
|
1010
|
-
return
|
|
1010
|
+
return dr(this._raw, this._key);
|
|
1011
1011
|
}
|
|
1012
1012
|
}
|
|
1013
|
-
class
|
|
1013
|
+
class Rr {
|
|
1014
1014
|
constructor(t) {
|
|
1015
1015
|
this._getter = t, this.__v_isRef = !0, this.__v_isReadonly = !0, this._value = void 0;
|
|
1016
1016
|
}
|
|
@@ -1020,10 +1020,10 @@ class Dr {
|
|
|
1020
1020
|
}
|
|
1021
1021
|
// @__NO_SIDE_EFFECTS__
|
|
1022
1022
|
function se(e, t, n) {
|
|
1023
|
-
return /* @__PURE__ */ Te(e) ? e : ie(e) ? new
|
|
1023
|
+
return /* @__PURE__ */ Te(e) ? e : ie(e) ? new Rr(e) : ue(e) && arguments.length > 1 ? Lr(e, t, n) : /* @__PURE__ */ N(e);
|
|
1024
1024
|
}
|
|
1025
|
-
function
|
|
1026
|
-
return new
|
|
1025
|
+
function Lr(e, t, n) {
|
|
1026
|
+
return new Dr(e, t, n);
|
|
1027
1027
|
}
|
|
1028
1028
|
class Nr {
|
|
1029
1029
|
constructor(t, n, o) {
|
|
@@ -1046,19 +1046,19 @@ class Nr {
|
|
|
1046
1046
|
}
|
|
1047
1047
|
}
|
|
1048
1048
|
// @__NO_SIDE_EFFECTS__
|
|
1049
|
-
function
|
|
1049
|
+
function Fr(e, t, n = !1) {
|
|
1050
1050
|
let o, s;
|
|
1051
1051
|
return ie(e) ? o = e : (o = e.get, s = e.set), new Nr(o, s, n);
|
|
1052
1052
|
}
|
|
1053
|
-
const
|
|
1053
|
+
const Ln = {}, Wn = /* @__PURE__ */ new WeakMap();
|
|
1054
1054
|
let Ft;
|
|
1055
|
-
function
|
|
1055
|
+
function Br(e, t = !1, n = Ft) {
|
|
1056
1056
|
if (n) {
|
|
1057
1057
|
let o = Wn.get(n);
|
|
1058
1058
|
o || Wn.set(n, o = []), o.push(e);
|
|
1059
1059
|
}
|
|
1060
1060
|
}
|
|
1061
|
-
function
|
|
1061
|
+
function $r(e, t, n = fe) {
|
|
1062
1062
|
const { immediate: o, deep: s, once: i, scheduler: l, augmentJob: r, call: a } = n, u = (y) => s ? y : /* @__PURE__ */ Ve(y) || s === !1 || s === 0 ? St(y, 1) : St(y);
|
|
1063
1063
|
let c, f, p, g, b = !1, m = !1;
|
|
1064
1064
|
if (/* @__PURE__ */ Te(e) ? (f = () => e.value, b = /* @__PURE__ */ Ve(e)) : /* @__PURE__ */ Wt(e) ? (f = () => u(e), b = !0) : G(e) ? (m = !0, b = e.some((y) => /* @__PURE__ */ Wt(y) || /* @__PURE__ */ Ve(y)), f = () => e.map((y) => {
|
|
@@ -1088,7 +1088,7 @@ function Br(e, t, n = fe) {
|
|
|
1088
1088
|
const y = f, j = s === !0 ? 1 / 0 : s;
|
|
1089
1089
|
f = () => St(y(), j);
|
|
1090
1090
|
}
|
|
1091
|
-
const x =
|
|
1091
|
+
const x = ar(), R = () => {
|
|
1092
1092
|
c.stop(), x && x.active && ii(x.effects, c);
|
|
1093
1093
|
};
|
|
1094
1094
|
if (i && t) {
|
|
@@ -1097,20 +1097,20 @@ function Br(e, t, n = fe) {
|
|
|
1097
1097
|
y(...j), R();
|
|
1098
1098
|
};
|
|
1099
1099
|
}
|
|
1100
|
-
let M = m ? new Array(e.length).fill(
|
|
1100
|
+
let M = m ? new Array(e.length).fill(Ln) : Ln;
|
|
1101
1101
|
const $ = (y) => {
|
|
1102
1102
|
if (!(!(c.flags & 1) || !c.dirty && !y))
|
|
1103
1103
|
if (t) {
|
|
1104
1104
|
const j = c.run();
|
|
1105
|
-
if (s || b || (m ? j.some((
|
|
1105
|
+
if (s || b || (m ? j.some((L, B) => dt(L, M[B])) : dt(j, M))) {
|
|
1106
1106
|
p && p();
|
|
1107
|
-
const
|
|
1107
|
+
const L = Ft;
|
|
1108
1108
|
Ft = c;
|
|
1109
1109
|
try {
|
|
1110
1110
|
const B = [
|
|
1111
1111
|
j,
|
|
1112
1112
|
// pass undefined as the old value when it's changed for the first time
|
|
1113
|
-
M ===
|
|
1113
|
+
M === Ln ? void 0 : m && M[0] === Ln ? [] : M,
|
|
1114
1114
|
g
|
|
1115
1115
|
];
|
|
1116
1116
|
M = j, a ? a(t, 3, B) : (
|
|
@@ -1118,13 +1118,13 @@ function Br(e, t, n = fe) {
|
|
|
1118
1118
|
t(...B)
|
|
1119
1119
|
);
|
|
1120
1120
|
} finally {
|
|
1121
|
-
Ft =
|
|
1121
|
+
Ft = L;
|
|
1122
1122
|
}
|
|
1123
1123
|
}
|
|
1124
1124
|
} else
|
|
1125
1125
|
c.run();
|
|
1126
1126
|
};
|
|
1127
|
-
return r && r($), c = new gi(f), c.scheduler = l ? () => l($, !1) : $, g = (y) =>
|
|
1127
|
+
return r && r($), c = new gi(f), c.scheduler = l ? () => l($, !1) : $, g = (y) => Br(y, !1, c), p = c.onStop = () => {
|
|
1128
1128
|
const y = Wn.get(c);
|
|
1129
1129
|
if (y) {
|
|
1130
1130
|
if (a)
|
|
@@ -1204,9 +1204,9 @@ function lo(e, t, n, o = !0) {
|
|
|
1204
1204
|
return;
|
|
1205
1205
|
}
|
|
1206
1206
|
}
|
|
1207
|
-
|
|
1207
|
+
jr(e, n, s, o, l);
|
|
1208
1208
|
}
|
|
1209
|
-
function
|
|
1209
|
+
function jr(e, t, n, o = !0, s = !1) {
|
|
1210
1210
|
if (s)
|
|
1211
1211
|
throw e;
|
|
1212
1212
|
console.error(e);
|
|
@@ -1214,14 +1214,14 @@ function $r(e, t, n, o = !0, s = !1) {
|
|
|
1214
1214
|
const Re = [];
|
|
1215
1215
|
let at = -1;
|
|
1216
1216
|
const Gt = [];
|
|
1217
|
-
let At = null,
|
|
1217
|
+
let At = null, Kt = 0;
|
|
1218
1218
|
const ki = /* @__PURE__ */ Promise.resolve();
|
|
1219
1219
|
let Hn = null;
|
|
1220
|
-
function
|
|
1220
|
+
function Uo(e) {
|
|
1221
1221
|
const t = Hn || ki;
|
|
1222
1222
|
return e ? t.then(this ? e.bind(this) : e) : t;
|
|
1223
1223
|
}
|
|
1224
|
-
function
|
|
1224
|
+
function Wr(e) {
|
|
1225
1225
|
let t = at + 1, n = Re.length;
|
|
1226
1226
|
for (; t < n; ) {
|
|
1227
1227
|
const o = t + n >>> 1, s = Re[o], i = En(s);
|
|
@@ -1233,14 +1233,14 @@ function Yo(e) {
|
|
|
1233
1233
|
if (!(e.flags & 1)) {
|
|
1234
1234
|
const t = En(e), n = Re[Re.length - 1];
|
|
1235
1235
|
!n || // fast path when the job id is larger than the tail
|
|
1236
|
-
!(e.flags & 2) && t >= En(n) ? Re.push(e) : Re.splice(
|
|
1236
|
+
!(e.flags & 2) && t >= En(n) ? Re.push(e) : Re.splice(Wr(t), 0, e), e.flags |= 1, Ii();
|
|
1237
1237
|
}
|
|
1238
1238
|
}
|
|
1239
1239
|
function Ii() {
|
|
1240
|
-
Hn || (Hn = ki.then(
|
|
1240
|
+
Hn || (Hn = ki.then(Li));
|
|
1241
1241
|
}
|
|
1242
1242
|
function Di(e) {
|
|
1243
|
-
G(e) ? Gt.push(...e) : At && e.id === -1 ? At.splice(
|
|
1243
|
+
G(e) ? Gt.push(...e) : At && e.id === -1 ? At.splice(Kt + 1, 0, e) : e.flags & 1 || (Gt.push(e), e.flags |= 1), Ii();
|
|
1244
1244
|
}
|
|
1245
1245
|
function ps(e, t, n = at + 1) {
|
|
1246
1246
|
for (; n < Re.length; n++) {
|
|
@@ -1261,15 +1261,15 @@ function Ri(e) {
|
|
|
1261
1261
|
At.push(...t);
|
|
1262
1262
|
return;
|
|
1263
1263
|
}
|
|
1264
|
-
for (At = t,
|
|
1265
|
-
const n = At[
|
|
1264
|
+
for (At = t, Kt = 0; Kt < At.length; Kt++) {
|
|
1265
|
+
const n = At[Kt];
|
|
1266
1266
|
n.flags & 4 && (n.flags &= -2), n.flags & 8 || n(), n.flags &= -2;
|
|
1267
1267
|
}
|
|
1268
|
-
At = null,
|
|
1268
|
+
At = null, Kt = 0;
|
|
1269
1269
|
}
|
|
1270
1270
|
}
|
|
1271
1271
|
const En = (e) => e.id == null ? e.flags & 2 ? -1 : 1 / 0 : e.id;
|
|
1272
|
-
function
|
|
1272
|
+
function Li(e) {
|
|
1273
1273
|
try {
|
|
1274
1274
|
for (at = 0; at < Re.length; at++) {
|
|
1275
1275
|
const t = Re[at];
|
|
@@ -1284,13 +1284,13 @@ function Ni(e) {
|
|
|
1284
1284
|
const t = Re[at];
|
|
1285
1285
|
t && (t.flags &= -2);
|
|
1286
1286
|
}
|
|
1287
|
-
at = -1, Re.length = 0, Ri(), Hn = null, (Re.length || Gt.length) &&
|
|
1287
|
+
at = -1, Re.length = 0, Ri(), Hn = null, (Re.length || Gt.length) && Li();
|
|
1288
1288
|
}
|
|
1289
1289
|
}
|
|
1290
|
-
let ke = null,
|
|
1290
|
+
let ke = null, Ni = null;
|
|
1291
1291
|
function Vn(e) {
|
|
1292
1292
|
const t = ke;
|
|
1293
|
-
return ke = e,
|
|
1293
|
+
return ke = e, Ni = e && e.type.__scopeId || null, t;
|
|
1294
1294
|
}
|
|
1295
1295
|
function pe(e, t = ke, n) {
|
|
1296
1296
|
if (!t || e._n)
|
|
@@ -1342,7 +1342,7 @@ function Rt(e, t, n, o) {
|
|
|
1342
1342
|
]), Pt());
|
|
1343
1343
|
}
|
|
1344
1344
|
}
|
|
1345
|
-
function
|
|
1345
|
+
function Hr(e, t) {
|
|
1346
1346
|
if (We) {
|
|
1347
1347
|
let n = We.provides;
|
|
1348
1348
|
const o = We.parent && We.parent.provides;
|
|
@@ -1359,16 +1359,16 @@ function Fi(e, t, n = !1) {
|
|
|
1359
1359
|
return n && ie(t) ? t.call(o && o.proxy) : t;
|
|
1360
1360
|
}
|
|
1361
1361
|
}
|
|
1362
|
-
const
|
|
1362
|
+
const Vr = /* @__PURE__ */ Symbol.for("v-scx"), zr = () => Fi(Vr);
|
|
1363
1363
|
function Ce(e, t, n) {
|
|
1364
|
-
return
|
|
1364
|
+
return qr(e, t, n);
|
|
1365
1365
|
}
|
|
1366
|
-
function
|
|
1366
|
+
function qr(e, t, n = fe) {
|
|
1367
1367
|
const { immediate: o, deep: s, flush: i, once: l } = n, r = nt({}, n), a = t && o || !t && i !== "post";
|
|
1368
1368
|
let u;
|
|
1369
1369
|
if (Cn) {
|
|
1370
1370
|
if (i === "sync") {
|
|
1371
|
-
const g =
|
|
1371
|
+
const g = zr();
|
|
1372
1372
|
u = g.__watcherHandles || (g.__watcherHandles = []);
|
|
1373
1373
|
} else if (!a) {
|
|
1374
1374
|
const g = () => {
|
|
@@ -1386,13 +1386,13 @@ function zr(e, t, n = fe) {
|
|
|
1386
1386
|
}), r.augmentJob = (g) => {
|
|
1387
1387
|
t && (g.flags |= 4), f && (g.flags |= 2, c && (g.id = c.uid, g.i = c));
|
|
1388
1388
|
};
|
|
1389
|
-
const p =
|
|
1389
|
+
const p = $r(e, t, r);
|
|
1390
1390
|
return Cn && (u ? u.push(p) : a && p()), p;
|
|
1391
1391
|
}
|
|
1392
|
-
const
|
|
1392
|
+
const Lt = /* @__PURE__ */ new WeakMap(), Bi = /* @__PURE__ */ Symbol("_vte"), Kr = (e) => e.__isTeleport, $t = (e) => e && (e.disabled || e.disabled === ""), Ur = (e) => e && (e.defer || e.defer === ""), gs = (e) => typeof SVGElement < "u" && e instanceof SVGElement, ms = (e) => typeof MathMLElement == "function" && e instanceof MathMLElement, Io = (e, t) => {
|
|
1393
1393
|
const n = e && e.to;
|
|
1394
1394
|
return we(n) ? t ? t(n) : null : n;
|
|
1395
|
-
},
|
|
1395
|
+
}, Yr = {
|
|
1396
1396
|
name: "Teleport",
|
|
1397
1397
|
__isTeleport: !0,
|
|
1398
1398
|
process(e, t, n, o, s, i, l, r, a, u) {
|
|
@@ -1403,9 +1403,9 @@ const Nt = /* @__PURE__ */ new WeakMap(), Bi = /* @__PURE__ */ Symbol("_vte"), q
|
|
|
1403
1403
|
o: { insert: g, querySelector: b, createText: m, createComment: x }
|
|
1404
1404
|
} = u, R = $t(t.props);
|
|
1405
1405
|
let { dynamicChildren: M } = t;
|
|
1406
|
-
const $ = (
|
|
1407
|
-
|
|
1408
|
-
|
|
1406
|
+
const $ = (L, B, q) => {
|
|
1407
|
+
L.shapeFlag & 16 && c(
|
|
1408
|
+
L.children,
|
|
1409
1409
|
B,
|
|
1410
1410
|
q,
|
|
1411
1411
|
s,
|
|
@@ -1414,31 +1414,31 @@ const Nt = /* @__PURE__ */ new WeakMap(), Bi = /* @__PURE__ */ Symbol("_vte"), q
|
|
|
1414
1414
|
r,
|
|
1415
1415
|
a
|
|
1416
1416
|
);
|
|
1417
|
-
}, y = (
|
|
1418
|
-
const B = $t(
|
|
1419
|
-
q && (l !== "svg" && gs(q) ? l = "svg" : l !== "mathml" && ms(q) && (l = "mathml"), s && s.isCE && (s.ce._teleportTargets || (s.ce._teleportTargets = /* @__PURE__ */ new Set())).add(q), B || ($(
|
|
1420
|
-
}, j = (
|
|
1417
|
+
}, y = (L = t) => {
|
|
1418
|
+
const B = $t(L.props), q = L.target = Io(L.props, b), Z = Do(q, L, m, g);
|
|
1419
|
+
q && (l !== "svg" && gs(q) ? l = "svg" : l !== "mathml" && ms(q) && (l = "mathml"), s && s.isCE && (s.ce._teleportTargets || (s.ce._teleportTargets = /* @__PURE__ */ new Set())).add(q), B || ($(L, q, Z), hn(L, !1)));
|
|
1420
|
+
}, j = (L) => {
|
|
1421
1421
|
const B = () => {
|
|
1422
|
-
|
|
1422
|
+
Lt.get(L) === B && (Lt.delete(L), $t(L.props) && ($(L, n, L.anchor), hn(L, !0)), y(L));
|
|
1423
1423
|
};
|
|
1424
|
-
|
|
1424
|
+
Lt.set(L, B), De(B, i);
|
|
1425
1425
|
};
|
|
1426
1426
|
if (e == null) {
|
|
1427
|
-
const
|
|
1428
|
-
if (g(
|
|
1427
|
+
const L = t.el = m(""), B = t.anchor = m("");
|
|
1428
|
+
if (g(L, n, o), g(B, n, o), Ur(t.props) || i && i.pendingBranch) {
|
|
1429
1429
|
j(t);
|
|
1430
1430
|
return;
|
|
1431
1431
|
}
|
|
1432
1432
|
R && ($(t, n, B), hn(t, !0)), y();
|
|
1433
1433
|
} else {
|
|
1434
1434
|
t.el = e.el;
|
|
1435
|
-
const
|
|
1435
|
+
const L = t.anchor = e.anchor, B = Lt.get(e);
|
|
1436
1436
|
if (B) {
|
|
1437
|
-
B.flags |= 8,
|
|
1437
|
+
B.flags |= 8, Lt.delete(e), j(t);
|
|
1438
1438
|
return;
|
|
1439
1439
|
}
|
|
1440
1440
|
t.targetStart = e.targetStart;
|
|
1441
|
-
const q = t.target = e.target, Z = t.targetAnchor = e.targetAnchor, Q = $t(e.props), me = Q ? n : q, Ae = Q ?
|
|
1441
|
+
const q = t.target = e.target, Z = t.targetAnchor = e.targetAnchor, Q = $t(e.props), me = Q ? n : q, Ae = Q ? L : Z;
|
|
1442
1442
|
if (l === "svg" || gs(q) ? l = "svg" : (l === "mathml" || ms(q)) && (l = "mathml"), M ? (p(
|
|
1443
1443
|
e.dynamicChildren,
|
|
1444
1444
|
M,
|
|
@@ -1458,10 +1458,10 @@ const Nt = /* @__PURE__ */ new WeakMap(), Bi = /* @__PURE__ */ Symbol("_vte"), q
|
|
|
1458
1458
|
r,
|
|
1459
1459
|
!1
|
|
1460
1460
|
), R)
|
|
1461
|
-
Q ? t.props && e.props && t.props.to !== e.props.to && (t.props.to = e.props.to) :
|
|
1461
|
+
Q ? t.props && e.props && t.props.to !== e.props.to && (t.props.to = e.props.to) : Nn(
|
|
1462
1462
|
t,
|
|
1463
1463
|
n,
|
|
1464
|
-
|
|
1464
|
+
L,
|
|
1465
1465
|
u,
|
|
1466
1466
|
1
|
|
1467
1467
|
);
|
|
@@ -1470,14 +1470,14 @@ const Nt = /* @__PURE__ */ new WeakMap(), Bi = /* @__PURE__ */ Symbol("_vte"), q
|
|
|
1470
1470
|
t.props,
|
|
1471
1471
|
b
|
|
1472
1472
|
);
|
|
1473
|
-
I &&
|
|
1473
|
+
I && Nn(
|
|
1474
1474
|
t,
|
|
1475
1475
|
I,
|
|
1476
1476
|
null,
|
|
1477
1477
|
u,
|
|
1478
1478
|
0
|
|
1479
1479
|
);
|
|
1480
|
-
} else Q &&
|
|
1480
|
+
} else Q && Nn(
|
|
1481
1481
|
t,
|
|
1482
1482
|
q,
|
|
1483
1483
|
Z,
|
|
@@ -1498,8 +1498,8 @@ const Nt = /* @__PURE__ */ new WeakMap(), Bi = /* @__PURE__ */ Symbol("_vte"), q
|
|
|
1498
1498
|
props: p
|
|
1499
1499
|
} = e;
|
|
1500
1500
|
let g = i || !$t(p);
|
|
1501
|
-
const b =
|
|
1502
|
-
if (b && (b.flags |= 8,
|
|
1501
|
+
const b = Lt.get(e);
|
|
1502
|
+
if (b && (b.flags |= 8, Lt.delete(e), g = !1), f && (s(u), s(c)), i && s(a), l & 16)
|
|
1503
1503
|
for (let m = 0; m < r.length; m++) {
|
|
1504
1504
|
const x = r[m];
|
|
1505
1505
|
o(
|
|
@@ -1511,10 +1511,10 @@ const Nt = /* @__PURE__ */ new WeakMap(), Bi = /* @__PURE__ */ Symbol("_vte"), q
|
|
|
1511
1511
|
);
|
|
1512
1512
|
}
|
|
1513
1513
|
},
|
|
1514
|
-
move:
|
|
1515
|
-
hydrate:
|
|
1514
|
+
move: Nn,
|
|
1515
|
+
hydrate: Gr
|
|
1516
1516
|
};
|
|
1517
|
-
function
|
|
1517
|
+
function Nn(e, t, n, { o: { insert: o }, m: s }, i = 2) {
|
|
1518
1518
|
i === 0 && o(e.targetAnchor, t, n);
|
|
1519
1519
|
const { el: l, anchor: r, shapeFlag: a, children: u, props: c } = e, f = i === 2;
|
|
1520
1520
|
if (f && o(l, t, n), (!f || $t(c)) && a & 16)
|
|
@@ -1527,7 +1527,7 @@ function Ln(e, t, n, { o: { insert: o }, m: s }, i = 2) {
|
|
|
1527
1527
|
);
|
|
1528
1528
|
f && o(r, t, n);
|
|
1529
1529
|
}
|
|
1530
|
-
function
|
|
1530
|
+
function Gr(e, t, n, o, s, i, {
|
|
1531
1531
|
o: { nextSibling: l, parentNode: r, querySelector: a, insert: u, createText: c }
|
|
1532
1532
|
}, f) {
|
|
1533
1533
|
function p(x, R) {
|
|
@@ -1581,7 +1581,7 @@ function Yr(e, t, n, o, s, i, {
|
|
|
1581
1581
|
} else m && t.shapeFlag & 16 && (g(e, t), t.targetStart = e, t.targetAnchor = l(e));
|
|
1582
1582
|
return t.anchor && l(t.anchor);
|
|
1583
1583
|
}
|
|
1584
|
-
const $i =
|
|
1584
|
+
const $i = Yr;
|
|
1585
1585
|
function hn(e, t) {
|
|
1586
1586
|
const n = e.ctx;
|
|
1587
1587
|
if (n && n.ut) {
|
|
@@ -1595,7 +1595,7 @@ function Do(e, t, n, o, s = null) {
|
|
|
1595
1595
|
const i = t.targetStart = n(""), l = t.targetAnchor = n("");
|
|
1596
1596
|
return i[Bi] = l, e && (o(i, e, s), o(l, e, s)), l;
|
|
1597
1597
|
}
|
|
1598
|
-
const
|
|
1598
|
+
const Xr = /* @__PURE__ */ Symbol("_leaveCb");
|
|
1599
1599
|
function Go(e, t) {
|
|
1600
1600
|
e.shapeFlag & 6 && e.component ? (e.transition = t, Go(e.component.subTree, t)) : e.shapeFlag & 128 ? (e.ssContent.transition = t.clone(e.ssContent), e.ssFallback.transition = t.clone(e.ssFallback)) : e.transition = t;
|
|
1601
1601
|
}
|
|
@@ -1607,7 +1607,7 @@ function qe(e, t) {
|
|
|
1607
1607
|
nt({ name: e.name }, t, { setup: e })
|
|
1608
1608
|
) : e;
|
|
1609
1609
|
}
|
|
1610
|
-
function
|
|
1610
|
+
function Jr(e) {
|
|
1611
1611
|
e.ids = [e.ids[0] + e.ids[2]++ + "-", 0, 0];
|
|
1612
1612
|
}
|
|
1613
1613
|
function vs(e, t) {
|
|
@@ -1677,8 +1677,8 @@ function _s(e) {
|
|
|
1677
1677
|
}
|
|
1678
1678
|
oo().requestIdleCallback;
|
|
1679
1679
|
oo().cancelIdleCallback;
|
|
1680
|
-
const Xt = (e) => !!e.type.__asyncLoader,
|
|
1681
|
-
function
|
|
1680
|
+
const Xt = (e) => !!e.type.__asyncLoader, Zr = (e) => e.type.__isKeepAlive;
|
|
1681
|
+
function Qr(e, t, n = We, o = !1) {
|
|
1682
1682
|
if (n) {
|
|
1683
1683
|
const s = n[e] || (n[e] = []), i = t.__weh || (t.__weh = (...l) => {
|
|
1684
1684
|
Mt();
|
|
@@ -1689,10 +1689,10 @@ function Zr(e, t, n = We, o = !1) {
|
|
|
1689
1689
|
}
|
|
1690
1690
|
}
|
|
1691
1691
|
const Xo = (e) => (t, n = We) => {
|
|
1692
|
-
(!Cn || e === "sp") &&
|
|
1693
|
-
},
|
|
1692
|
+
(!Cn || e === "sp") && Qr(e, (...o) => t(...o), n);
|
|
1693
|
+
}, Ue = Xo("m"), ea = Xo(
|
|
1694
1694
|
"bu"
|
|
1695
|
-
), ot = Xo("um"),
|
|
1695
|
+
), ot = Xo("um"), ta = /* @__PURE__ */ Symbol.for("v-ndc");
|
|
1696
1696
|
function Tn(e, t, n, o) {
|
|
1697
1697
|
let s;
|
|
1698
1698
|
const i = n, l = G(e);
|
|
@@ -1789,10 +1789,10 @@ const Ro = (e) => e ? nl(e) ? co(e) : Ro(e.parent) : null, _n = (
|
|
|
1789
1789
|
$forceUpdate: (e) => e.f || (e.f = () => {
|
|
1790
1790
|
Yo(e.update);
|
|
1791
1791
|
}),
|
|
1792
|
-
$nextTick: (e) => e.n || (e.n =
|
|
1792
|
+
$nextTick: (e) => e.n || (e.n = Uo.bind(e.proxy)),
|
|
1793
1793
|
$watch: (e) => Ot
|
|
1794
1794
|
})
|
|
1795
|
-
), vo = (e, t) => e !== fe && !e.__isScriptSetup && le(e, t),
|
|
1795
|
+
), vo = (e, t) => e !== fe && !e.__isScriptSetup && le(e, t), na = {
|
|
1796
1796
|
get({ _: e }, t) {
|
|
1797
1797
|
if (t === "__v_skip")
|
|
1798
1798
|
return !0;
|
|
@@ -1852,9 +1852,9 @@ const Ro = (e) => e ? nl(e) ? co(e) : Ro(e.parent) : null, _n = (
|
|
|
1852
1852
|
}
|
|
1853
1853
|
};
|
|
1854
1854
|
function Wi() {
|
|
1855
|
-
return
|
|
1855
|
+
return oa().slots;
|
|
1856
1856
|
}
|
|
1857
|
-
function
|
|
1857
|
+
function oa(e) {
|
|
1858
1858
|
const t = os();
|
|
1859
1859
|
return t.setupContext || (t.setupContext = sl(t));
|
|
1860
1860
|
}
|
|
@@ -1879,20 +1879,20 @@ function Hi() {
|
|
|
1879
1879
|
emitsCache: /* @__PURE__ */ new WeakMap()
|
|
1880
1880
|
};
|
|
1881
1881
|
}
|
|
1882
|
-
let
|
|
1883
|
-
function
|
|
1882
|
+
let sa = 0;
|
|
1883
|
+
function ia(e, t) {
|
|
1884
1884
|
return function(o, s = null) {
|
|
1885
1885
|
ie(o) || (o = nt({}, o)), s != null && !ue(s) && (s = null);
|
|
1886
1886
|
const i = Hi(), l = /* @__PURE__ */ new WeakSet(), r = [];
|
|
1887
1887
|
let a = !1;
|
|
1888
1888
|
const u = i.app = {
|
|
1889
|
-
_uid:
|
|
1889
|
+
_uid: sa++,
|
|
1890
1890
|
_component: o,
|
|
1891
1891
|
_props: s,
|
|
1892
1892
|
_container: null,
|
|
1893
1893
|
_context: i,
|
|
1894
1894
|
_instance: null,
|
|
1895
|
-
version:
|
|
1895
|
+
version: La,
|
|
1896
1896
|
get config() {
|
|
1897
1897
|
return i.config;
|
|
1898
1898
|
},
|
|
@@ -1943,12 +1943,12 @@ function sa(e, t) {
|
|
|
1943
1943
|
};
|
|
1944
1944
|
}
|
|
1945
1945
|
let Jt = null;
|
|
1946
|
-
const
|
|
1947
|
-
function
|
|
1946
|
+
const la = (e, t) => t === "modelValue" || t === "model-value" ? e.modelModifiers : e[`${t}Modifiers`] || e[`${Qe(t)}Modifiers`] || e[`${Vt(t)}Modifiers`];
|
|
1947
|
+
function ra(e, t, ...n) {
|
|
1948
1948
|
if (e.isUnmounted) return;
|
|
1949
1949
|
const o = e.vnode.props || fe;
|
|
1950
1950
|
let s = n;
|
|
1951
|
-
const i = t.startsWith("update:"), l = i &&
|
|
1951
|
+
const i = t.startsWith("update:"), l = i && la(o, t.slice(7));
|
|
1952
1952
|
l && (l.trim && (s = n.map((c) => we(c) ? c.trim() : c)), l.number && (s = n.map(di)));
|
|
1953
1953
|
let r, a = o[r = fo(t)] || // also try camelCase event handler (#2249)
|
|
1954
1954
|
o[r = fo(Qe(t))];
|
|
@@ -1972,7 +1972,7 @@ function la(e, t, ...n) {
|
|
|
1972
1972
|
);
|
|
1973
1973
|
}
|
|
1974
1974
|
}
|
|
1975
|
-
function
|
|
1975
|
+
function aa(e, t, n = !1) {
|
|
1976
1976
|
const o = t.emitsCache, s = o.get(e);
|
|
1977
1977
|
if (s !== void 0)
|
|
1978
1978
|
return s;
|
|
@@ -2026,7 +2026,7 @@ function ys(e) {
|
|
|
2026
2026
|
f,
|
|
2027
2027
|
null
|
|
2028
2028
|
)
|
|
2029
|
-
), M = t.props ? r :
|
|
2029
|
+
), M = t.props ? r : ca(r);
|
|
2030
2030
|
}
|
|
2031
2031
|
} catch (y) {
|
|
2032
2032
|
bn.length = 0, lo(y, e, 1), R = Ee(Tt);
|
|
@@ -2034,25 +2034,25 @@ function ys(e) {
|
|
|
2034
2034
|
let $ = R;
|
|
2035
2035
|
if (M && m !== !1) {
|
|
2036
2036
|
const y = Object.keys(M), { shapeFlag: j } = $;
|
|
2037
|
-
y.length && j & 7 && (i && y.some(Qn) && (M =
|
|
2037
|
+
y.length && j & 7 && (i && y.some(Qn) && (M = ua(
|
|
2038
2038
|
M,
|
|
2039
2039
|
i
|
|
2040
2040
|
)), $ = Qt($, M, !1, !0));
|
|
2041
2041
|
}
|
|
2042
2042
|
return n.dirs && ($ = Qt($, null, !1, !0), $.dirs = $.dirs ? $.dirs.concat(n.dirs) : n.dirs), n.transition && Go($, n.transition), R = $, Vn(x), R;
|
|
2043
2043
|
}
|
|
2044
|
-
const
|
|
2044
|
+
const ca = (e) => {
|
|
2045
2045
|
let t;
|
|
2046
2046
|
for (const n in e)
|
|
2047
2047
|
(n === "class" || n === "style" || Zn(n)) && ((t || (t = {}))[n] = e[n]);
|
|
2048
2048
|
return t;
|
|
2049
|
-
},
|
|
2049
|
+
}, ua = (e, t) => {
|
|
2050
2050
|
const n = {};
|
|
2051
2051
|
for (const o in e)
|
|
2052
2052
|
(!Qn(o) || !(o.slice(9) in t)) && (n[o] = e[o]);
|
|
2053
2053
|
return n;
|
|
2054
2054
|
};
|
|
2055
|
-
function
|
|
2055
|
+
function da(e, t, n) {
|
|
2056
2056
|
const { props: o, children: s, component: i } = e, { props: l, children: r, patchFlag: a } = t, u = i.emitsOptions;
|
|
2057
2057
|
if (t.dirs || t.transition)
|
|
2058
2058
|
return !0;
|
|
@@ -2088,7 +2088,7 @@ function Vi(e, t, n) {
|
|
|
2088
2088
|
const o = e[n], s = t[n];
|
|
2089
2089
|
return n === "style" && ue(o) && ue(s) ? !Mn(o, s) : o !== s;
|
|
2090
2090
|
}
|
|
2091
|
-
function
|
|
2091
|
+
function fa({ vnode: e, parent: t, suspense: n }, o) {
|
|
2092
2092
|
for (; t; ) {
|
|
2093
2093
|
const s = t.subTree;
|
|
2094
2094
|
if (s.suspense && s.suspense.activeBranch === e && (s.suspense.vnode.el = s.el = o, e = s), s === e)
|
|
@@ -2098,15 +2098,15 @@ function da({ vnode: e, parent: t, suspense: n }, o) {
|
|
|
2098
2098
|
}
|
|
2099
2099
|
n && n.activeBranch === e && (n.vnode.el = o);
|
|
2100
2100
|
}
|
|
2101
|
-
const zi = {}, qi = () => Object.create(zi),
|
|
2102
|
-
function
|
|
2101
|
+
const zi = {}, qi = () => Object.create(zi), Ki = (e) => Object.getPrototypeOf(e) === zi;
|
|
2102
|
+
function ha(e, t, n, o = !1) {
|
|
2103
2103
|
const s = {}, i = qi();
|
|
2104
|
-
e.propsDefaults = /* @__PURE__ */ Object.create(null),
|
|
2104
|
+
e.propsDefaults = /* @__PURE__ */ Object.create(null), Ui(e, t, s, i);
|
|
2105
2105
|
for (const l in e.propsOptions[0])
|
|
2106
2106
|
l in s || (s[l] = void 0);
|
|
2107
|
-
n ? e.props = o ? s : /* @__PURE__ */
|
|
2107
|
+
n ? e.props = o ? s : /* @__PURE__ */ Or(s) : e.type.props ? e.props = s : e.props = i, e.attrs = i;
|
|
2108
2108
|
}
|
|
2109
|
-
function
|
|
2109
|
+
function pa(e, t, n, o) {
|
|
2110
2110
|
const {
|
|
2111
2111
|
props: s,
|
|
2112
2112
|
attrs: i,
|
|
@@ -2131,7 +2131,7 @@ function ha(e, t, n, o) {
|
|
|
2131
2131
|
g !== i[p] && (i[p] = g, u = !0);
|
|
2132
2132
|
else {
|
|
2133
2133
|
const b = Qe(p);
|
|
2134
|
-
s[b] =
|
|
2134
|
+
s[b] = Lo(
|
|
2135
2135
|
a,
|
|
2136
2136
|
r,
|
|
2137
2137
|
b,
|
|
@@ -2145,7 +2145,7 @@ function ha(e, t, n, o) {
|
|
|
2145
2145
|
}
|
|
2146
2146
|
}
|
|
2147
2147
|
} else {
|
|
2148
|
-
|
|
2148
|
+
Ui(e, t, s, i) && (u = !0);
|
|
2149
2149
|
let c;
|
|
2150
2150
|
for (const f in r)
|
|
2151
2151
|
(!t || // for camelCase
|
|
@@ -2153,7 +2153,7 @@ function ha(e, t, n, o) {
|
|
|
2153
2153
|
// and converted to camelCase (#955)
|
|
2154
2154
|
((c = Vt(f)) === f || !le(t, c))) && (a ? n && // for camelCase
|
|
2155
2155
|
(n[f] !== void 0 || // for kebab-case
|
|
2156
|
-
n[c] !== void 0) && (s[f] =
|
|
2156
|
+
n[c] !== void 0) && (s[f] = Lo(
|
|
2157
2157
|
a,
|
|
2158
2158
|
r,
|
|
2159
2159
|
f,
|
|
@@ -2167,7 +2167,7 @@ function ha(e, t, n, o) {
|
|
|
2167
2167
|
}
|
|
2168
2168
|
u && bt(e.attrs, "set", "");
|
|
2169
2169
|
}
|
|
2170
|
-
function
|
|
2170
|
+
function Ui(e, t, n, o) {
|
|
2171
2171
|
const [s, i] = e.propsOptions;
|
|
2172
2172
|
let l = !1, r;
|
|
2173
2173
|
if (t)
|
|
@@ -2182,7 +2182,7 @@ function Ki(e, t, n, o) {
|
|
|
2182
2182
|
const a = /* @__PURE__ */ ne(n), u = r || fe;
|
|
2183
2183
|
for (let c = 0; c < i.length; c++) {
|
|
2184
2184
|
const f = i[c];
|
|
2185
|
-
n[f] =
|
|
2185
|
+
n[f] = Lo(
|
|
2186
2186
|
s,
|
|
2187
2187
|
a,
|
|
2188
2188
|
f,
|
|
@@ -2194,7 +2194,7 @@ function Ki(e, t, n, o) {
|
|
|
2194
2194
|
}
|
|
2195
2195
|
return l;
|
|
2196
2196
|
}
|
|
2197
|
-
function
|
|
2197
|
+
function Lo(e, t, n, o, s, i) {
|
|
2198
2198
|
const l = e[n];
|
|
2199
2199
|
if (l != null) {
|
|
2200
2200
|
const r = le(l, "default");
|
|
@@ -2225,13 +2225,13 @@ function No(e, t, n, o, s, i) {
|
|
|
2225
2225
|
}
|
|
2226
2226
|
return o;
|
|
2227
2227
|
}
|
|
2228
|
-
function
|
|
2228
|
+
function ga(e, t, n = !1) {
|
|
2229
2229
|
const o = t.propsCache, s = o.get(e);
|
|
2230
2230
|
if (s)
|
|
2231
2231
|
return s;
|
|
2232
2232
|
const i = e.props, l = {}, r = [];
|
|
2233
2233
|
if (!i)
|
|
2234
|
-
return ue(e) && o.set(e,
|
|
2234
|
+
return ue(e) && o.set(e, Ut), Ut;
|
|
2235
2235
|
if (G(i))
|
|
2236
2236
|
for (let u = 0; u < i.length; u++) {
|
|
2237
2237
|
const c = Qe(i[u]);
|
|
@@ -2268,7 +2268,7 @@ function pa(e, t, n = !1) {
|
|
|
2268
2268
|
function Ss(e) {
|
|
2269
2269
|
return e[0] !== "$" && !pn(e);
|
|
2270
2270
|
}
|
|
2271
|
-
const Jo = (e) => e === "_" || e === "_ctx" || e === "$stable", Zo = (e) => G(e) ? e.map(ut) : [ut(e)],
|
|
2271
|
+
const Jo = (e) => e === "_" || e === "_ctx" || e === "$stable", Zo = (e) => G(e) ? e.map(ut) : [ut(e)], ma = (e, t, n) => {
|
|
2272
2272
|
if (t._n)
|
|
2273
2273
|
return t;
|
|
2274
2274
|
const o = pe((...s) => Zo(t(...s)), n);
|
|
@@ -2279,7 +2279,7 @@ const Jo = (e) => e === "_" || e === "_ctx" || e === "$stable", Zo = (e) => G(e)
|
|
|
2279
2279
|
if (Jo(s)) continue;
|
|
2280
2280
|
const i = e[s];
|
|
2281
2281
|
if (ie(i))
|
|
2282
|
-
t[s] =
|
|
2282
|
+
t[s] = ma(s, i, o);
|
|
2283
2283
|
else if (i != null) {
|
|
2284
2284
|
const l = Zo(i);
|
|
2285
2285
|
t[s] = () => l;
|
|
@@ -2291,13 +2291,13 @@ const Jo = (e) => e === "_" || e === "_ctx" || e === "$stable", Zo = (e) => G(e)
|
|
|
2291
2291
|
}, Xi = (e, t, n) => {
|
|
2292
2292
|
for (const o in t)
|
|
2293
2293
|
(n || !Jo(o)) && (e[o] = t[o]);
|
|
2294
|
-
},
|
|
2294
|
+
}, va = (e, t, n) => {
|
|
2295
2295
|
const o = e.slots = qi();
|
|
2296
2296
|
if (e.vnode.shapeFlag & 32) {
|
|
2297
2297
|
const s = t._;
|
|
2298
2298
|
s ? (Xi(o, t, n), n && ui(o, "_", s, !0)) : Yi(t, o);
|
|
2299
2299
|
} else t && Gi(e, t);
|
|
2300
|
-
},
|
|
2300
|
+
}, _a = (e, t, n) => {
|
|
2301
2301
|
const { vnode: o, slots: s } = e;
|
|
2302
2302
|
let i = !0, l = fe;
|
|
2303
2303
|
if (o.shapeFlag & 32) {
|
|
@@ -2307,11 +2307,11 @@ const Jo = (e) => e === "_" || e === "_ctx" || e === "$stable", Zo = (e) => G(e)
|
|
|
2307
2307
|
if (i)
|
|
2308
2308
|
for (const r in s)
|
|
2309
2309
|
!Jo(r) && l[r] == null && delete s[r];
|
|
2310
|
-
}, De =
|
|
2311
|
-
function
|
|
2312
|
-
return
|
|
2310
|
+
}, De = Ea;
|
|
2311
|
+
function ya(e) {
|
|
2312
|
+
return ba(e);
|
|
2313
2313
|
}
|
|
2314
|
-
function
|
|
2314
|
+
function ba(e, t) {
|
|
2315
2315
|
const n = oo();
|
|
2316
2316
|
n.__VUE__ = !0;
|
|
2317
2317
|
const {
|
|
@@ -2428,7 +2428,7 @@ function ya(e, t) {
|
|
|
2428
2428
|
s(h);
|
|
2429
2429
|
}, j = (d, h, _, C, S, w, D, P, A) => {
|
|
2430
2430
|
if (h.type === "svg" ? D = "svg" : h.type === "math" && (D = "mathml"), d == null)
|
|
2431
|
-
|
|
2431
|
+
L(
|
|
2432
2432
|
h,
|
|
2433
2433
|
_,
|
|
2434
2434
|
C,
|
|
@@ -2454,9 +2454,9 @@ function ya(e, t) {
|
|
|
2454
2454
|
E && E._endPatch();
|
|
2455
2455
|
}
|
|
2456
2456
|
}
|
|
2457
|
-
},
|
|
2457
|
+
}, L = (d, h, _, C, S, w, D, P) => {
|
|
2458
2458
|
let A, E;
|
|
2459
|
-
const { props: z, shapeFlag: k, transition: H, dirs:
|
|
2459
|
+
const { props: z, shapeFlag: k, transition: H, dirs: K } = d;
|
|
2460
2460
|
if (A = d.el = l(
|
|
2461
2461
|
d.type,
|
|
2462
2462
|
w,
|
|
@@ -2471,16 +2471,16 @@ function ya(e, t) {
|
|
|
2471
2471
|
_o(d, w),
|
|
2472
2472
|
D,
|
|
2473
2473
|
P
|
|
2474
|
-
),
|
|
2474
|
+
), K && Rt(d, null, C, "created"), B(A, d, d.scopeId, D, C), z) {
|
|
2475
2475
|
for (const O in z)
|
|
2476
2476
|
O !== "value" && !pn(O) && i(A, O, null, z[O], w, C);
|
|
2477
2477
|
"value" in z && i(A, "value", null, z.value, w), (E = z.onVnodeBeforeMount) && rt(E, C, d);
|
|
2478
2478
|
}
|
|
2479
|
-
|
|
2480
|
-
const J =
|
|
2481
|
-
J && H.beforeEnter(A), o(A, h, _), ((E = z && z.onVnodeMounted) || J ||
|
|
2479
|
+
K && Rt(d, null, C, "beforeMount");
|
|
2480
|
+
const J = Sa(S, H);
|
|
2481
|
+
J && H.beforeEnter(A), o(A, h, _), ((E = z && z.onVnodeMounted) || J || K) && De(() => {
|
|
2482
2482
|
try {
|
|
2483
|
-
E && rt(E, C, d), J && H.enter(A),
|
|
2483
|
+
E && rt(E, C, d), J && H.enter(A), K && Rt(d, null, C, "mounted");
|
|
2484
2484
|
} finally {
|
|
2485
2485
|
}
|
|
2486
2486
|
}, S);
|
|
@@ -2521,8 +2521,8 @@ function ya(e, t) {
|
|
|
2521
2521
|
let { patchFlag: A, dynamicChildren: E, dirs: z } = h;
|
|
2522
2522
|
A |= d.patchFlag & 16;
|
|
2523
2523
|
const k = d.props || fe, H = h.props || fe;
|
|
2524
|
-
let
|
|
2525
|
-
if (_ &&
|
|
2524
|
+
let K;
|
|
2525
|
+
if (_ && Nt(_, !1), (K = H.onVnodeBeforeUpdate) && rt(K, _, h, d), z && Rt(h, d, _, "beforeUpdate"), _ && Nt(_, !0), (k.innerHTML && H.innerHTML == null || k.textContent && H.textContent == null) && c(P, ""), E ? Q(
|
|
2526
2526
|
d.dynamicChildren,
|
|
2527
2527
|
E,
|
|
2528
2528
|
P,
|
|
@@ -2552,8 +2552,8 @@ function ya(e, t) {
|
|
|
2552
2552
|
}
|
|
2553
2553
|
A & 1 && d.children !== h.children && c(P, h.children);
|
|
2554
2554
|
} else !D && E == null && me(P, k, H, _, S);
|
|
2555
|
-
((
|
|
2556
|
-
|
|
2555
|
+
((K = H.onVnodeUpdated) || z) && De(() => {
|
|
2556
|
+
K && rt(K, _, h, d), z && Rt(h, d, _, "updated");
|
|
2557
2557
|
}, C);
|
|
2558
2558
|
}, Q = (d, h, _, C, S, w, D) => {
|
|
2559
2559
|
for (let P = 0; P < h.length; P++) {
|
|
@@ -2604,8 +2604,8 @@ function ya(e, t) {
|
|
|
2604
2604
|
}
|
|
2605
2605
|
}, Ae = (d, h, _, C, S, w, D, P, A) => {
|
|
2606
2606
|
const E = h.el = d ? d.el : r(""), z = h.anchor = d ? d.anchor : r("");
|
|
2607
|
-
let { patchFlag: k, dynamicChildren: H, slotScopeIds:
|
|
2608
|
-
|
|
2607
|
+
let { patchFlag: k, dynamicChildren: H, slotScopeIds: K } = h;
|
|
2608
|
+
K && (P = P ? P.concat(K) : K), d == null ? (o(E, _, C), o(z, _, C), q(
|
|
2609
2609
|
// #10007
|
|
2610
2610
|
// such fragment like `<></>` will be compiled into
|
|
2611
2611
|
// a fragment which doesn't have a children.
|
|
@@ -2665,12 +2665,12 @@ function ya(e, t) {
|
|
|
2665
2665
|
A
|
|
2666
2666
|
) : oe(d, h, A);
|
|
2667
2667
|
}, Y = (d, h, _, C, S, w, D) => {
|
|
2668
|
-
const P = d.component =
|
|
2668
|
+
const P = d.component = Pa(
|
|
2669
2669
|
d,
|
|
2670
2670
|
C,
|
|
2671
2671
|
S
|
|
2672
2672
|
);
|
|
2673
|
-
if (
|
|
2673
|
+
if (Zr(d) && (P.ctx.renderer = it), ka(P, !1, D), P.asyncDep) {
|
|
2674
2674
|
if (S && S.registerDep(P, X, D), !d.el) {
|
|
2675
2675
|
const A = P.subTree = Ee(Tt);
|
|
2676
2676
|
R(null, A, h, _), d.placeholder = A.el;
|
|
@@ -2687,7 +2687,7 @@ function ya(e, t) {
|
|
|
2687
2687
|
);
|
|
2688
2688
|
}, oe = (d, h, _) => {
|
|
2689
2689
|
const C = h.component = d.component;
|
|
2690
|
-
if (
|
|
2690
|
+
if (da(d, h, _))
|
|
2691
2691
|
if (C.asyncDep && !C.asyncResolved) {
|
|
2692
2692
|
Oe(C, h, _);
|
|
2693
2693
|
return;
|
|
@@ -2698,7 +2698,7 @@ function ya(e, t) {
|
|
|
2698
2698
|
}, X = (d, h, _, C, S, w, D) => {
|
|
2699
2699
|
const P = () => {
|
|
2700
2700
|
if (d.isMounted) {
|
|
2701
|
-
let { next: k, bu: H, u:
|
|
2701
|
+
let { next: k, bu: H, u: K, parent: J, vnode: O } = d;
|
|
2702
2702
|
{
|
|
2703
2703
|
const $e = Ji(d);
|
|
2704
2704
|
if ($e) {
|
|
@@ -2711,7 +2711,7 @@ function ya(e, t) {
|
|
|
2711
2711
|
}
|
|
2712
2712
|
}
|
|
2713
2713
|
let V = k, te;
|
|
2714
|
-
|
|
2714
|
+
Nt(d, !1), k ? (k.el = O.el, Oe(d, k, D)) : k = O, H && Fn(H), (te = k.props && k.props.onVnodeBeforeUpdate) && rt(te, J, k, O), Nt(d, !0);
|
|
2715
2715
|
const Se = ys(d), Be = d.subTree;
|
|
2716
2716
|
d.subTree = Se, m(
|
|
2717
2717
|
Be,
|
|
@@ -2723,14 +2723,14 @@ function ya(e, t) {
|
|
|
2723
2723
|
d,
|
|
2724
2724
|
S,
|
|
2725
2725
|
w
|
|
2726
|
-
), k.el = Se.el, V === null &&
|
|
2726
|
+
), k.el = Se.el, V === null && fa(d, Se.el), K && De(K, S), (te = k.props && k.props.onVnodeUpdated) && De(
|
|
2727
2727
|
() => rt(te, J, k, O),
|
|
2728
2728
|
S
|
|
2729
2729
|
);
|
|
2730
2730
|
} else {
|
|
2731
2731
|
let k;
|
|
2732
|
-
const { el: H, props:
|
|
2733
|
-
|
|
2732
|
+
const { el: H, props: K } = h, { bm: J, m: O, parent: V, root: te, type: Se } = d, Be = Xt(h);
|
|
2733
|
+
Nt(d, !1), J && Fn(J), !Be && (k = K && K.onVnodeBeforeMount) && rt(k, V, h), Nt(d, !0);
|
|
2734
2734
|
{
|
|
2735
2735
|
te.ce && te.ce._hasShadowRoot() && te.ce._injectChildStyle(
|
|
2736
2736
|
Se,
|
|
@@ -2747,7 +2747,7 @@ function ya(e, t) {
|
|
|
2747
2747
|
w
|
|
2748
2748
|
), h.el = $e.el;
|
|
2749
2749
|
}
|
|
2750
|
-
if (O && De(O, S), !Be && (k =
|
|
2750
|
+
if (O && De(O, S), !Be && (k = K && K.onVnodeMounted)) {
|
|
2751
2751
|
const $e = h;
|
|
2752
2752
|
De(
|
|
2753
2753
|
() => rt(k, V, $e),
|
|
@@ -2761,13 +2761,13 @@ function ya(e, t) {
|
|
|
2761
2761
|
const A = d.effect = new gi(P);
|
|
2762
2762
|
d.scope.off();
|
|
2763
2763
|
const E = d.update = A.run.bind(A), z = d.job = A.runIfDirty.bind(A);
|
|
2764
|
-
z.i = d, z.id = d.uid, A.scheduler = () => Yo(z),
|
|
2764
|
+
z.i = d, z.id = d.uid, A.scheduler = () => Yo(z), Nt(d, !0), E();
|
|
2765
2765
|
}, Oe = (d, h, _) => {
|
|
2766
2766
|
h.component = d;
|
|
2767
2767
|
const C = d.vnode.props;
|
|
2768
|
-
d.vnode = h, d.next = null,
|
|
2768
|
+
d.vnode = h, d.next = null, pa(d, h.props, C, _), _a(d, h.children, _), Mt(), ps(d), Pt();
|
|
2769
2769
|
}, Ie = (d, h, _, C, S, w, D, P, A = !1) => {
|
|
2770
|
-
const E = d && d.children, z = d ? d.shapeFlag : 0, k = h.children, { patchFlag: H, shapeFlag:
|
|
2770
|
+
const E = d && d.children, z = d ? d.shapeFlag : 0, k = h.children, { patchFlag: H, shapeFlag: K } = h;
|
|
2771
2771
|
if (H > 0) {
|
|
2772
2772
|
if (H & 128) {
|
|
2773
2773
|
ye(
|
|
@@ -2797,7 +2797,7 @@ function ya(e, t) {
|
|
|
2797
2797
|
return;
|
|
2798
2798
|
}
|
|
2799
2799
|
}
|
|
2800
|
-
|
|
2800
|
+
K & 8 ? (z & 16 && Le(E, S, w), k !== E && c(_, k)) : z & 16 ? K & 16 ? ye(
|
|
2801
2801
|
E,
|
|
2802
2802
|
k,
|
|
2803
2803
|
_,
|
|
@@ -2807,7 +2807,7 @@ function ya(e, t) {
|
|
|
2807
2807
|
D,
|
|
2808
2808
|
P,
|
|
2809
2809
|
A
|
|
2810
|
-
) :
|
|
2810
|
+
) : Le(E, S, w, !0) : (z & 8 && c(_, ""), K & 16 && q(
|
|
2811
2811
|
k,
|
|
2812
2812
|
_,
|
|
2813
2813
|
C,
|
|
@@ -2818,14 +2818,14 @@ function ya(e, t) {
|
|
|
2818
2818
|
A
|
|
2819
2819
|
));
|
|
2820
2820
|
}, Ye = (d, h, _, C, S, w, D, P, A) => {
|
|
2821
|
-
d = d ||
|
|
2821
|
+
d = d || Ut, h = h || Ut;
|
|
2822
2822
|
const E = d.length, z = h.length, k = Math.min(E, z);
|
|
2823
2823
|
let H;
|
|
2824
2824
|
for (H = 0; H < k; H++) {
|
|
2825
|
-
const
|
|
2825
|
+
const K = h[H] = A ? yt(h[H]) : ut(h[H]);
|
|
2826
2826
|
m(
|
|
2827
2827
|
d[H],
|
|
2828
|
-
|
|
2828
|
+
K,
|
|
2829
2829
|
_,
|
|
2830
2830
|
null,
|
|
2831
2831
|
S,
|
|
@@ -2835,7 +2835,7 @@ function ya(e, t) {
|
|
|
2835
2835
|
A
|
|
2836
2836
|
);
|
|
2837
2837
|
}
|
|
2838
|
-
E > z ?
|
|
2838
|
+
E > z ? Le(
|
|
2839
2839
|
d,
|
|
2840
2840
|
S,
|
|
2841
2841
|
w,
|
|
@@ -2858,10 +2858,10 @@ function ya(e, t) {
|
|
|
2858
2858
|
const z = h.length;
|
|
2859
2859
|
let k = d.length - 1, H = z - 1;
|
|
2860
2860
|
for (; E <= k && E <= H; ) {
|
|
2861
|
-
const
|
|
2862
|
-
if (un(
|
|
2861
|
+
const K = d[E], J = h[E] = A ? yt(h[E]) : ut(h[E]);
|
|
2862
|
+
if (un(K, J))
|
|
2863
2863
|
m(
|
|
2864
|
-
|
|
2864
|
+
K,
|
|
2865
2865
|
J,
|
|
2866
2866
|
_,
|
|
2867
2867
|
null,
|
|
@@ -2876,10 +2876,10 @@ function ya(e, t) {
|
|
|
2876
2876
|
E++;
|
|
2877
2877
|
}
|
|
2878
2878
|
for (; E <= k && E <= H; ) {
|
|
2879
|
-
const
|
|
2880
|
-
if (un(
|
|
2879
|
+
const K = d[k], J = h[H] = A ? yt(h[H]) : ut(h[H]);
|
|
2880
|
+
if (un(K, J))
|
|
2881
2881
|
m(
|
|
2882
|
-
|
|
2882
|
+
K,
|
|
2883
2883
|
J,
|
|
2884
2884
|
_,
|
|
2885
2885
|
null,
|
|
@@ -2895,7 +2895,7 @@ function ya(e, t) {
|
|
|
2895
2895
|
}
|
|
2896
2896
|
if (E > k) {
|
|
2897
2897
|
if (E <= H) {
|
|
2898
|
-
const
|
|
2898
|
+
const K = H + 1, J = K < z ? h[K].el : C;
|
|
2899
2899
|
for (; E <= H; )
|
|
2900
2900
|
m(
|
|
2901
2901
|
null,
|
|
@@ -2913,7 +2913,7 @@ function ya(e, t) {
|
|
|
2913
2913
|
for (; E <= k; )
|
|
2914
2914
|
ve(d[E], S, w, !0), E++;
|
|
2915
2915
|
else {
|
|
2916
|
-
const
|
|
2916
|
+
const K = E, J = E, O = /* @__PURE__ */ new Map();
|
|
2917
2917
|
for (E = J; E <= H; E++) {
|
|
2918
2918
|
const he = h[E] = A ? yt(h[E]) : ut(h[E]);
|
|
2919
2919
|
he.key != null && O.set(he.key, E);
|
|
@@ -2923,24 +2923,24 @@ function ya(e, t) {
|
|
|
2923
2923
|
let Be = !1, $e = 0;
|
|
2924
2924
|
const xt = new Array(Se);
|
|
2925
2925
|
for (E = 0; E < Se; E++) xt[E] = 0;
|
|
2926
|
-
for (E =
|
|
2926
|
+
for (E = K; E <= k; E++) {
|
|
2927
2927
|
const he = d[E];
|
|
2928
2928
|
if (te >= Se) {
|
|
2929
2929
|
ve(he, S, w, !0);
|
|
2930
2930
|
continue;
|
|
2931
2931
|
}
|
|
2932
|
-
let
|
|
2932
|
+
let Ne;
|
|
2933
2933
|
if (he.key != null)
|
|
2934
|
-
|
|
2934
|
+
Ne = O.get(he.key);
|
|
2935
2935
|
else
|
|
2936
2936
|
for (V = J; V <= H; V++)
|
|
2937
2937
|
if (xt[V - J] === 0 && un(he, h[V])) {
|
|
2938
|
-
|
|
2938
|
+
Ne = V;
|
|
2939
2939
|
break;
|
|
2940
2940
|
}
|
|
2941
|
-
|
|
2941
|
+
Ne === void 0 ? ve(he, S, w, !0) : (xt[Ne - J] = E + 1, Ne >= $e ? $e = Ne : Be = !0, m(
|
|
2942
2942
|
he,
|
|
2943
|
-
h[
|
|
2943
|
+
h[Ne],
|
|
2944
2944
|
_,
|
|
2945
2945
|
null,
|
|
2946
2946
|
S,
|
|
@@ -2950,15 +2950,15 @@ function ya(e, t) {
|
|
|
2950
2950
|
A
|
|
2951
2951
|
), te++);
|
|
2952
2952
|
}
|
|
2953
|
-
const Je = Be ?
|
|
2953
|
+
const Je = Be ? wa(xt) : Ut;
|
|
2954
2954
|
for (V = Je.length - 1, E = Se - 1; E >= 0; E--) {
|
|
2955
|
-
const he = J + E,
|
|
2955
|
+
const he = J + E, Ne = h[he], zt = h[he + 1], on = he + 1 < z ? (
|
|
2956
2956
|
// #13559, #14173 fallback to el placeholder for unresolved async component
|
|
2957
2957
|
zt.el || Zi(zt)
|
|
2958
2958
|
) : C;
|
|
2959
2959
|
xt[E] === 0 ? m(
|
|
2960
2960
|
null,
|
|
2961
|
-
|
|
2961
|
+
Ne,
|
|
2962
2962
|
_,
|
|
2963
2963
|
on,
|
|
2964
2964
|
S,
|
|
@@ -2966,7 +2966,7 @@ function ya(e, t) {
|
|
|
2966
2966
|
D,
|
|
2967
2967
|
P,
|
|
2968
2968
|
A
|
|
2969
|
-
) : Be && (V < 0 || E !== Je[V] ? be(
|
|
2969
|
+
) : Be && (V < 0 || E !== Je[V] ? be(Ne, _, on, 2) : V--);
|
|
2970
2970
|
}
|
|
2971
2971
|
}
|
|
2972
2972
|
}, be = (d, h, _, C, S = null) => {
|
|
@@ -2998,14 +2998,14 @@ function ya(e, t) {
|
|
|
2998
2998
|
if (C === 0)
|
|
2999
2999
|
P.beforeEnter(w), o(w, h, _), De(() => P.enter(w), S);
|
|
3000
3000
|
else {
|
|
3001
|
-
const { leave: k, delayLeave: H, afterLeave:
|
|
3001
|
+
const { leave: k, delayLeave: H, afterLeave: K } = P, J = () => {
|
|
3002
3002
|
d.ctx.isUnmounted ? s(w) : o(w, h, _);
|
|
3003
3003
|
}, O = () => {
|
|
3004
|
-
w._isLeaving && w[
|
|
3004
|
+
w._isLeaving && w[Xr](
|
|
3005
3005
|
!0
|
|
3006
3006
|
/* cancelled */
|
|
3007
3007
|
), k(w, () => {
|
|
3008
|
-
J(),
|
|
3008
|
+
J(), K && K();
|
|
3009
3009
|
});
|
|
3010
3010
|
};
|
|
3011
3011
|
H ? H(w, J, O) : O();
|
|
@@ -3022,10 +3022,10 @@ function ya(e, t) {
|
|
|
3022
3022
|
shapeFlag: z,
|
|
3023
3023
|
patchFlag: k,
|
|
3024
3024
|
dirs: H,
|
|
3025
|
-
cacheIndex:
|
|
3025
|
+
cacheIndex: K,
|
|
3026
3026
|
memo: J
|
|
3027
3027
|
} = d;
|
|
3028
|
-
if (k === -2 && (S = !1), P != null && (Mt(), vn(P, null, _, d, !0), Pt()),
|
|
3028
|
+
if (k === -2 && (S = !1), P != null && (Mt(), vn(P, null, _, d, !0), Pt()), K != null && (h.renderCache[K] = void 0), z & 256) {
|
|
3029
3029
|
h.ctx.deactivate(d);
|
|
3030
3030
|
return;
|
|
3031
3031
|
}
|
|
@@ -3050,15 +3050,15 @@ function ya(e, t) {
|
|
|
3050
3050
|
// so that it doesn't take the fast path during unmount - otherwise
|
|
3051
3051
|
// components nested in v-once are never unmounted.
|
|
3052
3052
|
!E.hasOnce && // #1153: fast path should not be taken for non-stable (v-for) fragments
|
|
3053
|
-
(w !== ce || k > 0 && k & 64) ?
|
|
3053
|
+
(w !== ce || k > 0 && k & 64) ? Le(
|
|
3054
3054
|
E,
|
|
3055
3055
|
h,
|
|
3056
3056
|
_,
|
|
3057
3057
|
!1,
|
|
3058
3058
|
!0
|
|
3059
|
-
) : (w === ce && k & 384 || !S && z & 16) &&
|
|
3059
|
+
) : (w === ce && k & 384 || !S && z & 16) && Le(A, h, _), C && st(d);
|
|
3060
3060
|
}
|
|
3061
|
-
const Se = J != null &&
|
|
3061
|
+
const Se = J != null && K == null;
|
|
3062
3062
|
(V && (te = D && D.onVnodeUnmounted) || O || Se) && De(() => {
|
|
3063
3063
|
te && rt(te, h, d), O && Rt(d, null, h, "unmounted"), Se && (d.el = null);
|
|
3064
3064
|
}, _);
|
|
@@ -3090,7 +3090,7 @@ function ya(e, t) {
|
|
|
3090
3090
|
ws(A), ws(E), C && Fn(C), S.stop(), w && (w.flags |= 8, ve(D, d, h, _)), P && De(P, h), De(() => {
|
|
3091
3091
|
d.isUnmounted = !0;
|
|
3092
3092
|
}, h);
|
|
3093
|
-
},
|
|
3093
|
+
}, Le = (d, h, _, C = !1, S = !1, w = 0) => {
|
|
3094
3094
|
for (let D = w; D < d.length; D++)
|
|
3095
3095
|
ve(d[D], h, _, C, S);
|
|
3096
3096
|
}, Ge = (d) => {
|
|
@@ -3128,16 +3128,16 @@ function ya(e, t) {
|
|
|
3128
3128
|
return {
|
|
3129
3129
|
render: kt,
|
|
3130
3130
|
hydrate: void 0,
|
|
3131
|
-
createApp:
|
|
3131
|
+
createApp: ia(kt)
|
|
3132
3132
|
};
|
|
3133
3133
|
}
|
|
3134
3134
|
function _o({ type: e, props: t }, n) {
|
|
3135
3135
|
return n === "svg" && e === "foreignObject" || n === "mathml" && e === "annotation-xml" && t && t.encoding && t.encoding.includes("html") ? void 0 : n;
|
|
3136
3136
|
}
|
|
3137
|
-
function
|
|
3137
|
+
function Nt({ effect: e, job: t }, n) {
|
|
3138
3138
|
n ? (e.flags |= 32, t.flags |= 4) : (e.flags &= -33, t.flags &= -5);
|
|
3139
3139
|
}
|
|
3140
|
-
function
|
|
3140
|
+
function Sa(e, t) {
|
|
3141
3141
|
return (!e || e && !e.pendingBranch) && t && !t.persisted;
|
|
3142
3142
|
}
|
|
3143
3143
|
function Qo(e, t, n = !1) {
|
|
@@ -3149,7 +3149,7 @@ function Qo(e, t, n = !1) {
|
|
|
3149
3149
|
r.shapeFlag & 1 && !r.dynamicChildren && ((r.patchFlag <= 0 || r.patchFlag === 32) && (r = s[i] = yt(s[i]), r.el = l.el), !n && r.patchFlag !== -2 && Qo(l, r)), r.type === ao && (r.patchFlag === -1 && (r = s[i] = yt(r)), r.el = l.el), r.type === Tt && !r.el && (r.el = l.el);
|
|
3150
3150
|
}
|
|
3151
3151
|
}
|
|
3152
|
-
function
|
|
3152
|
+
function wa(e) {
|
|
3153
3153
|
const t = e.slice(), n = [0];
|
|
3154
3154
|
let o, s, i, l, r;
|
|
3155
3155
|
const a = e.length;
|
|
@@ -3186,7 +3186,7 @@ function Zi(e) {
|
|
|
3186
3186
|
return t ? Zi(t.subTree) : null;
|
|
3187
3187
|
}
|
|
3188
3188
|
const Qi = (e) => e.__isSuspense;
|
|
3189
|
-
function
|
|
3189
|
+
function Ea(e, t) {
|
|
3190
3190
|
t && t.pendingBranch ? G(e) ? t.effects.push(...e) : t.effects.push(e) : Di(e);
|
|
3191
3191
|
}
|
|
3192
3192
|
const ce = /* @__PURE__ */ Symbol.for("v-fgt"), ao = /* @__PURE__ */ Symbol.for("v-txt"), Tt = /* @__PURE__ */ Symbol.for("v-cmt"), yn = /* @__PURE__ */ Symbol.for("v-stc"), bn = [];
|
|
@@ -3194,7 +3194,7 @@ let He = null;
|
|
|
3194
3194
|
function F(e = !1) {
|
|
3195
3195
|
bn.push(He = e ? null : []);
|
|
3196
3196
|
}
|
|
3197
|
-
function
|
|
3197
|
+
function Ta() {
|
|
3198
3198
|
bn.pop(), He = bn[bn.length - 1] || null;
|
|
3199
3199
|
}
|
|
3200
3200
|
let xn = 1;
|
|
@@ -3202,7 +3202,7 @@ function Es(e, t = !1) {
|
|
|
3202
3202
|
xn += e, e < 0 && He && t && (He.hasOnce = !0);
|
|
3203
3203
|
}
|
|
3204
3204
|
function el(e) {
|
|
3205
|
-
return e.dynamicChildren = xn > 0 ? He ||
|
|
3205
|
+
return e.dynamicChildren = xn > 0 ? He || Ut : null, Ta(), xn > 0 && He && He.push(e), e;
|
|
3206
3206
|
}
|
|
3207
3207
|
function W(e, t, n, o, s, i) {
|
|
3208
3208
|
return el(
|
|
@@ -3248,7 +3248,7 @@ function v(e, t = null, n = null, o = 0, s = null, i = e === ce ? 0 : 1, l = !1,
|
|
|
3248
3248
|
props: t,
|
|
3249
3249
|
key: t && tl(t),
|
|
3250
3250
|
ref: t && Bn(t),
|
|
3251
|
-
scopeId:
|
|
3251
|
+
scopeId: Ni,
|
|
3252
3252
|
slotScopeIds: null,
|
|
3253
3253
|
children: n,
|
|
3254
3254
|
component: null,
|
|
@@ -3280,9 +3280,9 @@ function v(e, t = null, n = null, o = 0, s = null, i = e === ce ? 0 : 1, l = !1,
|
|
|
3280
3280
|
// vnode should not be considered dynamic due to handler caching.
|
|
3281
3281
|
a.patchFlag !== 32 && He.push(a), a;
|
|
3282
3282
|
}
|
|
3283
|
-
const Ee =
|
|
3284
|
-
function
|
|
3285
|
-
if ((!e || e ===
|
|
3283
|
+
const Ee = xa;
|
|
3284
|
+
function xa(e, t = null, n = null, o = 0, s = null, i = !1) {
|
|
3285
|
+
if ((!e || e === ta) && (e = Tt), es(e)) {
|
|
3286
3286
|
const r = Qt(
|
|
3287
3287
|
e,
|
|
3288
3288
|
t,
|
|
@@ -3291,12 +3291,12 @@ function Ta(e, t = null, n = null, o = 0, s = null, i = !1) {
|
|
|
3291
3291
|
);
|
|
3292
3292
|
return n && ns(r, n), xn > 0 && !i && He && (r.shapeFlag & 6 ? He[He.indexOf(e)] = r : He.push(r)), r.patchFlag = -2, r;
|
|
3293
3293
|
}
|
|
3294
|
-
if (
|
|
3295
|
-
t =
|
|
3294
|
+
if (Ra(e) && (e = e.__vccOpts), t) {
|
|
3295
|
+
t = Ca(t);
|
|
3296
3296
|
let { class: r, style: a } = t;
|
|
3297
3297
|
r && !we(r) && (t.class = xe(r)), ue(a) && (/* @__PURE__ */ io(a) && !G(a) && (a = nt({}, a)), t.style = Ht(a));
|
|
3298
3298
|
}
|
|
3299
|
-
const l = we(e) ? 1 : Qi(e) ? 128 :
|
|
3299
|
+
const l = we(e) ? 1 : Qi(e) ? 128 : Kr(e) ? 64 : ue(e) ? 4 : ie(e) ? 2 : 0;
|
|
3300
3300
|
return v(
|
|
3301
3301
|
e,
|
|
3302
3302
|
t,
|
|
@@ -3308,11 +3308,11 @@ function Ta(e, t = null, n = null, o = 0, s = null, i = !1) {
|
|
|
3308
3308
|
!0
|
|
3309
3309
|
);
|
|
3310
3310
|
}
|
|
3311
|
-
function
|
|
3312
|
-
return e ? /* @__PURE__ */ io(e) ||
|
|
3311
|
+
function Ca(e) {
|
|
3312
|
+
return e ? /* @__PURE__ */ io(e) || Ki(e) ? nt({}, e) : e : null;
|
|
3313
3313
|
}
|
|
3314
3314
|
function Qt(e, t, n = !1, o = !1) {
|
|
3315
|
-
const { props: s, ref: i, patchFlag: l, children: r, transition: a } = e, u = t ?
|
|
3315
|
+
const { props: s, ref: i, patchFlag: l, children: r, transition: a } = e, u = t ? Aa(s || {}, t) : s, c = {
|
|
3316
3316
|
__v_isVNode: !0,
|
|
3317
3317
|
__v_skip: !0,
|
|
3318
3318
|
type: e.type,
|
|
@@ -3397,12 +3397,12 @@ function ns(e, t) {
|
|
|
3397
3397
|
} else {
|
|
3398
3398
|
n = 32;
|
|
3399
3399
|
const s = t._;
|
|
3400
|
-
!s && !
|
|
3400
|
+
!s && !Ki(t) ? t._ctx = ke : s === 3 && ke && (ke.slots._ === 1 ? t._ = 1 : (t._ = 2, e.patchFlag |= 1024));
|
|
3401
3401
|
}
|
|
3402
3402
|
else ie(t) ? (t = { default: t, _ctx: ke }, n = 32) : (t = String(t), o & 64 ? (n = 16, t = [ts(t)]) : n = 8);
|
|
3403
3403
|
e.children = t, e.shapeFlag |= n;
|
|
3404
3404
|
}
|
|
3405
|
-
function
|
|
3405
|
+
function Aa(...e) {
|
|
3406
3406
|
const t = {};
|
|
3407
3407
|
for (let n = 0; n < e.length; n++) {
|
|
3408
3408
|
const o = e[n];
|
|
@@ -3426,11 +3426,11 @@ function rt(e, t, n, o = null) {
|
|
|
3426
3426
|
o
|
|
3427
3427
|
]);
|
|
3428
3428
|
}
|
|
3429
|
-
const
|
|
3430
|
-
let
|
|
3431
|
-
function
|
|
3432
|
-
const o = e.type, s = (t ? t.appContext : e.appContext) ||
|
|
3433
|
-
uid:
|
|
3429
|
+
const Oa = Hi();
|
|
3430
|
+
let Ma = 0;
|
|
3431
|
+
function Pa(e, t, n) {
|
|
3432
|
+
const o = e.type, s = (t ? t.appContext : e.appContext) || Oa, i = {
|
|
3433
|
+
uid: Ma++,
|
|
3434
3434
|
vnode: e,
|
|
3435
3435
|
type: o,
|
|
3436
3436
|
parent: t,
|
|
@@ -3444,7 +3444,7 @@ function Ma(e, t, n) {
|
|
|
3444
3444
|
update: null,
|
|
3445
3445
|
// will be set synchronously right after creation
|
|
3446
3446
|
job: null,
|
|
3447
|
-
scope: new
|
|
3447
|
+
scope: new rr(
|
|
3448
3448
|
!0
|
|
3449
3449
|
/* detached */
|
|
3450
3450
|
),
|
|
@@ -3461,8 +3461,8 @@ function Ma(e, t, n) {
|
|
|
3461
3461
|
components: null,
|
|
3462
3462
|
directives: null,
|
|
3463
3463
|
// resolved props and emits options
|
|
3464
|
-
propsOptions:
|
|
3465
|
-
emitsOptions:
|
|
3464
|
+
propsOptions: ga(o, s),
|
|
3465
|
+
emitsOptions: aa(o, s),
|
|
3466
3466
|
// emit
|
|
3467
3467
|
emit: null,
|
|
3468
3468
|
// to be set immediately
|
|
@@ -3505,11 +3505,11 @@ function Ma(e, t, n) {
|
|
|
3505
3505
|
ec: null,
|
|
3506
3506
|
sp: null
|
|
3507
3507
|
};
|
|
3508
|
-
return i.ctx = { _: i }, i.root = t ? t.root : i, i.emit =
|
|
3508
|
+
return i.ctx = { _: i }, i.root = t ? t.root : i, i.emit = ra.bind(null, i), e.ce && e.ce(i), i;
|
|
3509
3509
|
}
|
|
3510
3510
|
let We = null;
|
|
3511
3511
|
const os = () => We || ke;
|
|
3512
|
-
let
|
|
3512
|
+
let Kn, No;
|
|
3513
3513
|
{
|
|
3514
3514
|
const e = oo(), t = (n, o) => {
|
|
3515
3515
|
let s;
|
|
@@ -3517,36 +3517,36 @@ let Un, Lo;
|
|
|
3517
3517
|
s.length > 1 ? s.forEach((l) => l(i)) : s[0](i);
|
|
3518
3518
|
};
|
|
3519
3519
|
};
|
|
3520
|
-
|
|
3520
|
+
Kn = t(
|
|
3521
3521
|
"__VUE_INSTANCE_SETTERS__",
|
|
3522
3522
|
(n) => We = n
|
|
3523
|
-
),
|
|
3523
|
+
), No = t(
|
|
3524
3524
|
"__VUE_SSR_SETTERS__",
|
|
3525
3525
|
(n) => Cn = n
|
|
3526
3526
|
);
|
|
3527
3527
|
}
|
|
3528
3528
|
const ss = (e) => {
|
|
3529
3529
|
const t = We;
|
|
3530
|
-
return
|
|
3531
|
-
e.scope.off(),
|
|
3530
|
+
return Kn(e), e.scope.on(), () => {
|
|
3531
|
+
e.scope.off(), Kn(t);
|
|
3532
3532
|
};
|
|
3533
3533
|
}, xs = () => {
|
|
3534
|
-
We && We.scope.off(),
|
|
3534
|
+
We && We.scope.off(), Kn(null);
|
|
3535
3535
|
};
|
|
3536
3536
|
function nl(e) {
|
|
3537
3537
|
return e.vnode.shapeFlag & 4;
|
|
3538
3538
|
}
|
|
3539
3539
|
let Cn = !1;
|
|
3540
|
-
function
|
|
3541
|
-
t &&
|
|
3540
|
+
function ka(e, t = !1, n = !1) {
|
|
3541
|
+
t && No(t);
|
|
3542
3542
|
const { props: o, children: s } = e.vnode, i = nl(e);
|
|
3543
|
-
|
|
3544
|
-
const l = i ?
|
|
3545
|
-
return t &&
|
|
3543
|
+
ha(e, o, i, t), va(e, s, n || t);
|
|
3544
|
+
const l = i ? Ia(e, t) : void 0;
|
|
3545
|
+
return t && No(!1), l;
|
|
3546
3546
|
}
|
|
3547
|
-
function
|
|
3547
|
+
function Ia(e, t) {
|
|
3548
3548
|
const n = e.type;
|
|
3549
|
-
e.accessCache = /* @__PURE__ */ Object.create(null), e.proxy = new Proxy(e.ctx,
|
|
3549
|
+
e.accessCache = /* @__PURE__ */ Object.create(null), e.proxy = new Proxy(e.ctx, na);
|
|
3550
3550
|
const { setup: o } = n;
|
|
3551
3551
|
if (o) {
|
|
3552
3552
|
Mt();
|
|
@@ -3559,7 +3559,7 @@ function ka(e, t) {
|
|
|
3559
3559
|
s
|
|
3560
3560
|
]
|
|
3561
3561
|
), r = li(l);
|
|
3562
|
-
if (Pt(), i(), (r || e.sp) && !Xt(e) &&
|
|
3562
|
+
if (Pt(), i(), (r || e.sp) && !Xt(e) && Jr(e), r) {
|
|
3563
3563
|
if (l.then(xs, xs), t)
|
|
3564
3564
|
return l.then((a) => {
|
|
3565
3565
|
Cs(e, a);
|
|
@@ -3579,7 +3579,7 @@ function ol(e, t, n) {
|
|
|
3579
3579
|
const o = e.type;
|
|
3580
3580
|
e.render || (e.render = o.render || Ot);
|
|
3581
3581
|
}
|
|
3582
|
-
const
|
|
3582
|
+
const Da = {
|
|
3583
3583
|
get(e, t) {
|
|
3584
3584
|
return Pe(e, "get", ""), e[t];
|
|
3585
3585
|
}
|
|
@@ -3589,14 +3589,14 @@ function sl(e) {
|
|
|
3589
3589
|
e.exposed = n || {};
|
|
3590
3590
|
};
|
|
3591
3591
|
return {
|
|
3592
|
-
attrs: new Proxy(e.attrs,
|
|
3592
|
+
attrs: new Proxy(e.attrs, Da),
|
|
3593
3593
|
slots: e.slots,
|
|
3594
3594
|
emit: e.emit,
|
|
3595
3595
|
expose: t
|
|
3596
3596
|
};
|
|
3597
3597
|
}
|
|
3598
3598
|
function co(e) {
|
|
3599
|
-
return e.exposed ? e.exposeProxy || (e.exposeProxy = new Proxy(Pi(
|
|
3599
|
+
return e.exposed ? e.exposeProxy || (e.exposeProxy = new Proxy(Pi(Mr(e.exposed)), {
|
|
3600
3600
|
get(t, n) {
|
|
3601
3601
|
if (n in t)
|
|
3602
3602
|
return t[n];
|
|
@@ -3608,10 +3608,10 @@ function co(e) {
|
|
|
3608
3608
|
}
|
|
3609
3609
|
})) : e.proxy;
|
|
3610
3610
|
}
|
|
3611
|
-
function
|
|
3611
|
+
function Ra(e) {
|
|
3612
3612
|
return ie(e) && "__vccOpts" in e;
|
|
3613
3613
|
}
|
|
3614
|
-
const
|
|
3614
|
+
const U = (e, t) => /* @__PURE__ */ Fr(e, t, Cn), La = "3.5.32";
|
|
3615
3615
|
/**
|
|
3616
3616
|
* @vue/runtime-dom v3.5.32
|
|
3617
3617
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
@@ -3626,7 +3626,7 @@ if (As)
|
|
|
3626
3626
|
});
|
|
3627
3627
|
} catch {
|
|
3628
3628
|
}
|
|
3629
|
-
const il = Fo ? (e) => Fo.createHTML(e) : (e) => e, Na = "http://www.w3.org/2000/svg",
|
|
3629
|
+
const il = Fo ? (e) => Fo.createHTML(e) : (e) => e, Na = "http://www.w3.org/2000/svg", Fa = "http://www.w3.org/1998/Math/MathML", _t = typeof document < "u" ? document : null, Os = _t && /* @__PURE__ */ _t.createElement("template"), Ba = {
|
|
3630
3630
|
insert: (e, t, n) => {
|
|
3631
3631
|
t.insertBefore(e, n || null);
|
|
3632
3632
|
},
|
|
@@ -3635,7 +3635,7 @@ const il = Fo ? (e) => Fo.createHTML(e) : (e) => e, Na = "http://www.w3.org/2000
|
|
|
3635
3635
|
t && t.removeChild(e);
|
|
3636
3636
|
},
|
|
3637
3637
|
createElement: (e, t, n, o) => {
|
|
3638
|
-
const s = t === "svg" ? _t.createElementNS(Na, e) : t === "mathml" ? _t.createElementNS(
|
|
3638
|
+
const s = t === "svg" ? _t.createElementNS(Na, e) : t === "mathml" ? _t.createElementNS(Fa, e) : n ? _t.createElement(e, { is: n }) : _t.createElement(e);
|
|
3639
3639
|
return e === "select" && o && o.multiple != null && s.setAttribute("multiple", o.multiple), s;
|
|
3640
3640
|
},
|
|
3641
3641
|
createText: (e) => _t.createTextNode(e),
|
|
@@ -3681,16 +3681,16 @@ const il = Fo ? (e) => Fo.createHTML(e) : (e) => e, Na = "http://www.w3.org/2000
|
|
|
3681
3681
|
n ? n.previousSibling : t.lastChild
|
|
3682
3682
|
];
|
|
3683
3683
|
}
|
|
3684
|
-
},
|
|
3685
|
-
function
|
|
3686
|
-
const o = e[
|
|
3684
|
+
}, $a = /* @__PURE__ */ Symbol("_vtc");
|
|
3685
|
+
function ja(e, t, n) {
|
|
3686
|
+
const o = e[$a];
|
|
3687
3687
|
o && (t = (t ? [t, ...o] : [...o]).join(" ")), t == null ? e.removeAttribute("class") : n ? e.setAttribute("class", t) : e.className = t;
|
|
3688
3688
|
}
|
|
3689
|
-
const
|
|
3689
|
+
const Un = /* @__PURE__ */ Symbol("_vod"), ll = /* @__PURE__ */ Symbol("_vsh"), Ms = {
|
|
3690
3690
|
// used for prop mismatch check during hydration
|
|
3691
3691
|
name: "show",
|
|
3692
3692
|
beforeMount(e, { value: t }, { transition: n }) {
|
|
3693
|
-
e[
|
|
3693
|
+
e[Un] = e.style.display === "none" ? "" : e.style.display, n && t ? n.beforeEnter(e) : dn(e, t);
|
|
3694
3694
|
},
|
|
3695
3695
|
mounted(e, { value: t }, { transition: n }) {
|
|
3696
3696
|
n && t && n.enter(e);
|
|
@@ -3705,7 +3705,7 @@ const Kn = /* @__PURE__ */ Symbol("_vod"), ll = /* @__PURE__ */ Symbol("_vsh"),
|
|
|
3705
3705
|
}
|
|
3706
3706
|
};
|
|
3707
3707
|
function dn(e, t) {
|
|
3708
|
-
e.style.display = t ? e[
|
|
3708
|
+
e.style.display = t ? e[Un] : "none", e[ll] = !t;
|
|
3709
3709
|
}
|
|
3710
3710
|
const rl = /* @__PURE__ */ Symbol("");
|
|
3711
3711
|
function al(e) {
|
|
@@ -3720,9 +3720,9 @@ function al(e) {
|
|
|
3720
3720
|
const s = e(t.proxy);
|
|
3721
3721
|
t.ce ? Yn(t.ce, s) : Bo(t.subTree, s), n(s);
|
|
3722
3722
|
};
|
|
3723
|
-
|
|
3723
|
+
ea(() => {
|
|
3724
3724
|
Di(o);
|
|
3725
|
-
}),
|
|
3725
|
+
}), Ue(() => {
|
|
3726
3726
|
Ce(o, Ot, { flush: "post" });
|
|
3727
3727
|
const s = new MutationObserver(o);
|
|
3728
3728
|
s.observe(t.subTree.el.parentNode, { childList: !0 }), ot(() => s.disconnect());
|
|
@@ -3752,14 +3752,14 @@ function Yn(e, t) {
|
|
|
3752
3752
|
const n = e.style;
|
|
3753
3753
|
let o = "";
|
|
3754
3754
|
for (const s in t) {
|
|
3755
|
-
const i =
|
|
3755
|
+
const i = lr(t[s]);
|
|
3756
3756
|
n.setProperty(`--${s}`, i), o += `--${s}: ${i};`;
|
|
3757
3757
|
}
|
|
3758
3758
|
n[rl] = o;
|
|
3759
3759
|
}
|
|
3760
3760
|
}
|
|
3761
|
-
const
|
|
3762
|
-
function
|
|
3761
|
+
const Wa = /(?:^|;)\s*display\s*:/;
|
|
3762
|
+
function Ha(e, t, n) {
|
|
3763
3763
|
const o = e.style, s = we(n);
|
|
3764
3764
|
let i = !1;
|
|
3765
3765
|
if (n && !s) {
|
|
@@ -3777,10 +3777,10 @@ function Wa(e, t, n) {
|
|
|
3777
3777
|
} else if (s) {
|
|
3778
3778
|
if (t !== n) {
|
|
3779
3779
|
const l = o[rl];
|
|
3780
|
-
l && (n += ";" + l), o.cssText = n, i =
|
|
3780
|
+
l && (n += ";" + l), o.cssText = n, i = Wa.test(n);
|
|
3781
3781
|
}
|
|
3782
3782
|
} else t && e.removeAttribute("style");
|
|
3783
|
-
|
|
3783
|
+
Un in e && (e[Un] = i ? o.display : "", e[ll] && (o.display = "none"));
|
|
3784
3784
|
}
|
|
3785
3785
|
const Ps = /\s*!important$/;
|
|
3786
3786
|
function $n(e, t, n) {
|
|
@@ -3789,7 +3789,7 @@ function $n(e, t, n) {
|
|
|
3789
3789
|
else if (n == null && (n = ""), t.startsWith("--"))
|
|
3790
3790
|
e.setProperty(t, n);
|
|
3791
3791
|
else {
|
|
3792
|
-
const o =
|
|
3792
|
+
const o = Va(e, t);
|
|
3793
3793
|
Ps.test(n) ? e.setProperty(
|
|
3794
3794
|
Vt(o),
|
|
3795
3795
|
n.replace(Ps, ""),
|
|
@@ -3798,7 +3798,7 @@ function $n(e, t, n) {
|
|
|
3798
3798
|
}
|
|
3799
3799
|
}
|
|
3800
3800
|
const ks = ["Webkit", "Moz", "ms"], yo = {};
|
|
3801
|
-
function
|
|
3801
|
+
function Va(e, t) {
|
|
3802
3802
|
const n = yo[t];
|
|
3803
3803
|
if (n)
|
|
3804
3804
|
return n;
|
|
@@ -3814,7 +3814,7 @@ function Ha(e, t) {
|
|
|
3814
3814
|
return t;
|
|
3815
3815
|
}
|
|
3816
3816
|
const Is = "http://www.w3.org/1999/xlink";
|
|
3817
|
-
function Ds(e, t, n, o, s, i =
|
|
3817
|
+
function Ds(e, t, n, o, s, i = or(t)) {
|
|
3818
3818
|
o && t.startsWith("xlink:") ? n == null ? e.removeAttributeNS(Is, t.slice(6, t.length)) : e.setAttributeNS(Is, t, n) : n == null || i && !fi(n) ? e.removeAttribute(t) : e.setAttribute(
|
|
3819
3819
|
t,
|
|
3820
3820
|
i ? "" : ze(n) ? String(n) : n
|
|
@@ -3850,54 +3850,54 @@ function Rs(e, t, n, o, s) {
|
|
|
3850
3850
|
function cl(e, t, n, o) {
|
|
3851
3851
|
e.addEventListener(t, n, o);
|
|
3852
3852
|
}
|
|
3853
|
-
function
|
|
3853
|
+
function za(e, t, n, o) {
|
|
3854
3854
|
e.removeEventListener(t, n, o);
|
|
3855
3855
|
}
|
|
3856
|
-
const
|
|
3857
|
-
function
|
|
3858
|
-
const i = e[
|
|
3856
|
+
const Ls = /* @__PURE__ */ Symbol("_vei");
|
|
3857
|
+
function qa(e, t, n, o, s = null) {
|
|
3858
|
+
const i = e[Ls] || (e[Ls] = {}), l = i[t];
|
|
3859
3859
|
if (o && l)
|
|
3860
3860
|
l.value = o;
|
|
3861
3861
|
else {
|
|
3862
|
-
const [r, a] =
|
|
3862
|
+
const [r, a] = Ka(t);
|
|
3863
3863
|
if (o) {
|
|
3864
|
-
const u = i[t] =
|
|
3864
|
+
const u = i[t] = Ga(
|
|
3865
3865
|
o,
|
|
3866
3866
|
s
|
|
3867
3867
|
);
|
|
3868
3868
|
cl(e, r, u, a);
|
|
3869
|
-
} else l && (
|
|
3869
|
+
} else l && (za(e, r, l, a), i[t] = void 0);
|
|
3870
3870
|
}
|
|
3871
3871
|
}
|
|
3872
|
-
const
|
|
3873
|
-
function
|
|
3872
|
+
const Ns = /(?:Once|Passive|Capture)$/;
|
|
3873
|
+
function Ka(e) {
|
|
3874
3874
|
let t;
|
|
3875
|
-
if (
|
|
3875
|
+
if (Ns.test(e)) {
|
|
3876
3876
|
t = {};
|
|
3877
3877
|
let o;
|
|
3878
|
-
for (; o = e.match(
|
|
3878
|
+
for (; o = e.match(Ns); )
|
|
3879
3879
|
e = e.slice(0, e.length - o[0].length), t[o[0].toLowerCase()] = !0;
|
|
3880
3880
|
}
|
|
3881
3881
|
return [e[2] === ":" ? e.slice(3) : Vt(e.slice(2)), t];
|
|
3882
3882
|
}
|
|
3883
3883
|
let bo = 0;
|
|
3884
|
-
const Ua = /* @__PURE__ */ Promise.resolve(),
|
|
3885
|
-
function
|
|
3884
|
+
const Ua = /* @__PURE__ */ Promise.resolve(), Ya = () => bo || (Ua.then(() => bo = 0), bo = Date.now());
|
|
3885
|
+
function Ga(e, t) {
|
|
3886
3886
|
const n = (o) => {
|
|
3887
3887
|
if (!o._vts)
|
|
3888
3888
|
o._vts = Date.now();
|
|
3889
3889
|
else if (o._vts <= n.attached)
|
|
3890
3890
|
return;
|
|
3891
3891
|
Et(
|
|
3892
|
-
|
|
3892
|
+
Xa(o, n.value),
|
|
3893
3893
|
t,
|
|
3894
3894
|
5,
|
|
3895
3895
|
[o]
|
|
3896
3896
|
);
|
|
3897
3897
|
};
|
|
3898
|
-
return n.value = e, n.attached =
|
|
3898
|
+
return n.value = e, n.attached = Ya(), n;
|
|
3899
3899
|
}
|
|
3900
|
-
function
|
|
3900
|
+
function Xa(e, t) {
|
|
3901
3901
|
if (G(t)) {
|
|
3902
3902
|
const n = e.stopImmediatePropagation;
|
|
3903
3903
|
return e.stopImmediatePropagation = () => {
|
|
@@ -3909,13 +3909,13 @@ function Ga(e, t) {
|
|
|
3909
3909
|
return t;
|
|
3910
3910
|
}
|
|
3911
3911
|
const Fs = (e) => e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && // lowercase letter
|
|
3912
|
-
e.charCodeAt(2) > 96 && e.charCodeAt(2) < 123,
|
|
3912
|
+
e.charCodeAt(2) > 96 && e.charCodeAt(2) < 123, Ja = (e, t, n, o, s, i) => {
|
|
3913
3913
|
const l = s === "svg";
|
|
3914
|
-
t === "class" ?
|
|
3915
|
-
(
|
|
3914
|
+
t === "class" ? ja(e, o, l) : t === "style" ? Ha(e, n, o) : Zn(t) ? Qn(t) || qa(e, t, n, o, i) : (t[0] === "." ? (t = t.slice(1), !0) : t[0] === "^" ? (t = t.slice(1), !1) : Za(e, t, o, l)) ? (Rs(e, t, o), !e.tagName.includes("-") && (t === "value" || t === "checked" || t === "selected") && Ds(e, t, o, l, i, t !== "value")) : /* #11081 force set props for possible async custom element */ e._isVueCE && // #12408 check if it's declared prop or it's async custom element
|
|
3915
|
+
(Qa(e, t) || // @ts-expect-error _def is private
|
|
3916
3916
|
e._def.__asyncLoader && (/[A-Z]/.test(t) || !we(o))) ? Rs(e, Qe(t), o, i, t) : (t === "true-value" ? e._trueValue = o : t === "false-value" && (e._falseValue = o), Ds(e, t, o, l));
|
|
3917
3917
|
};
|
|
3918
|
-
function
|
|
3918
|
+
function Za(e, t, n, o) {
|
|
3919
3919
|
if (o)
|
|
3920
3920
|
return !!(t === "innerHTML" || t === "textContent" || t in e && Fs(t) && ie(n));
|
|
3921
3921
|
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")
|
|
@@ -3927,7 +3927,7 @@ function Ja(e, t, n, o) {
|
|
|
3927
3927
|
}
|
|
3928
3928
|
return Fs(t) && we(n) ? !1 : t in e;
|
|
3929
3929
|
}
|
|
3930
|
-
function
|
|
3930
|
+
function Qa(e, t) {
|
|
3931
3931
|
const n = (
|
|
3932
3932
|
// @ts-expect-error _def is private
|
|
3933
3933
|
e._def.props
|
|
@@ -3940,7 +3940,7 @@ function Za(e, t) {
|
|
|
3940
3940
|
const Bs = (e) => {
|
|
3941
3941
|
const t = e.props["onUpdate:modelValue"] || !1;
|
|
3942
3942
|
return G(t) ? (n) => Fn(t, n) : t;
|
|
3943
|
-
}, So = /* @__PURE__ */ Symbol("_assign"),
|
|
3943
|
+
}, So = /* @__PURE__ */ Symbol("_assign"), ec = {
|
|
3944
3944
|
// <select multiple> value need to be deep traversed
|
|
3945
3945
|
deep: !0,
|
|
3946
3946
|
created(e, { value: t, modifiers: { number: n } }, o) {
|
|
@@ -3951,7 +3951,7 @@ const Bs = (e) => {
|
|
|
3951
3951
|
);
|
|
3952
3952
|
e[So](
|
|
3953
3953
|
e.multiple ? s ? new Set(i) : i : i[0]
|
|
3954
|
-
), e._assigning = !0,
|
|
3954
|
+
), e._assigning = !0, Uo(() => {
|
|
3955
3955
|
e._assigning = !1;
|
|
3956
3956
|
});
|
|
3957
3957
|
}), e[So] = Bs(o);
|
|
@@ -3976,7 +3976,7 @@ function $s(e, t) {
|
|
|
3976
3976
|
if (n)
|
|
3977
3977
|
if (o) {
|
|
3978
3978
|
const a = typeof r;
|
|
3979
|
-
a === "string" || a === "number" ? l.selected = t.some((u) => String(u) === String(r)) : l.selected =
|
|
3979
|
+
a === "string" || a === "number" ? l.selected = t.some((u) => String(u) === String(r)) : l.selected = ir(t, r) > -1;
|
|
3980
3980
|
} else
|
|
3981
3981
|
l.selected = t.has(r);
|
|
3982
3982
|
else if (Mn(Gn(l), t)) {
|
|
@@ -3990,7 +3990,7 @@ function $s(e, t) {
|
|
|
3990
3990
|
function Gn(e) {
|
|
3991
3991
|
return "_value" in e ? e._value : e.value;
|
|
3992
3992
|
}
|
|
3993
|
-
const
|
|
3993
|
+
const tc = ["ctrl", "shift", "alt", "meta"], nc = {
|
|
3994
3994
|
stop: (e) => e.stopPropagation(),
|
|
3995
3995
|
prevent: (e) => e.preventDefault(),
|
|
3996
3996
|
self: (e) => e.target !== e.currentTarget,
|
|
@@ -4001,43 +4001,43 @@ const ec = ["ctrl", "shift", "alt", "meta"], tc = {
|
|
|
4001
4001
|
left: (e) => "button" in e && e.button !== 0,
|
|
4002
4002
|
middle: (e) => "button" in e && e.button !== 1,
|
|
4003
4003
|
right: (e) => "button" in e && e.button !== 2,
|
|
4004
|
-
exact: (e, t) =>
|
|
4004
|
+
exact: (e, t) => tc.some((n) => e[`${n}Key`] && !t.includes(n))
|
|
4005
4005
|
}, ul = (e, t) => {
|
|
4006
4006
|
if (!e) return e;
|
|
4007
4007
|
const n = e._withMods || (e._withMods = {}), o = t.join(".");
|
|
4008
4008
|
return n[o] || (n[o] = (s, ...i) => {
|
|
4009
4009
|
for (let l = 0; l < t.length; l++) {
|
|
4010
|
-
const r =
|
|
4010
|
+
const r = nc[t[l]];
|
|
4011
4011
|
if (r && r(s, t)) return;
|
|
4012
4012
|
}
|
|
4013
4013
|
return e(s, ...i);
|
|
4014
4014
|
});
|
|
4015
|
-
},
|
|
4015
|
+
}, oc = /* @__PURE__ */ nt({ patchProp: Ja }, Ba);
|
|
4016
4016
|
let js;
|
|
4017
|
-
function
|
|
4018
|
-
return js || (js =
|
|
4017
|
+
function sc() {
|
|
4018
|
+
return js || (js = ya(oc));
|
|
4019
4019
|
}
|
|
4020
|
-
const
|
|
4021
|
-
const t =
|
|
4020
|
+
const ic = (...e) => {
|
|
4021
|
+
const t = sc().createApp(...e), { mount: n } = t;
|
|
4022
4022
|
return t.mount = (o) => {
|
|
4023
|
-
const s =
|
|
4023
|
+
const s = rc(o);
|
|
4024
4024
|
if (!s) return;
|
|
4025
4025
|
const i = t._component;
|
|
4026
4026
|
!ie(i) && !i.render && !i.template && (i.template = s.innerHTML), s.nodeType === 1 && (s.textContent = "");
|
|
4027
|
-
const l = n(s, !1,
|
|
4027
|
+
const l = n(s, !1, lc(s));
|
|
4028
4028
|
return s instanceof Element && (s.removeAttribute("v-cloak"), s.setAttribute("data-v-app", "")), l;
|
|
4029
4029
|
}, t;
|
|
4030
4030
|
};
|
|
4031
|
-
function
|
|
4031
|
+
function lc(e) {
|
|
4032
4032
|
if (e instanceof SVGElement)
|
|
4033
4033
|
return "svg";
|
|
4034
4034
|
if (typeof MathMLElement == "function" && e instanceof MathMLElement)
|
|
4035
4035
|
return "mathml";
|
|
4036
4036
|
}
|
|
4037
|
-
function
|
|
4037
|
+
function rc(e) {
|
|
4038
4038
|
return we(e) ? document.querySelector(e) : e;
|
|
4039
4039
|
}
|
|
4040
|
-
const dl = "data-opencode-config", wo = "/__opencode_sessions__",
|
|
4040
|
+
const dl = "data-opencode-config", wo = "/__opencode_sessions__", ac = {
|
|
4041
4041
|
checking_opencode: "检查 OpenCode 安装",
|
|
4042
4042
|
allocating_port: "分配服务端口",
|
|
4043
4043
|
preparing_runtime: "准备运行环境",
|
|
@@ -4057,8 +4057,8 @@ function fl(e, t) {
|
|
|
4057
4057
|
return e.length <= t ? e : `${e.slice(0, t)}...`;
|
|
4058
4058
|
}
|
|
4059
4059
|
const hl = /* @__PURE__ */ Symbol("OpenCodeWidgetContext");
|
|
4060
|
-
function
|
|
4061
|
-
|
|
4060
|
+
function cc(e) {
|
|
4061
|
+
Hr(hl, e);
|
|
4062
4062
|
}
|
|
4063
4063
|
function tn() {
|
|
4064
4064
|
const e = Fi(hl);
|
|
@@ -4066,18 +4066,18 @@ function tn() {
|
|
|
4066
4066
|
throw new Error("useOpenCodeWidgetContext must be used within OpenCodeWidget");
|
|
4067
4067
|
return e;
|
|
4068
4068
|
}
|
|
4069
|
-
var
|
|
4069
|
+
var uc = Object.defineProperty, Ws = Object.getOwnPropertySymbols, dc = Object.prototype.hasOwnProperty, fc = Object.prototype.propertyIsEnumerable, Hs = (e, t, n) => t in e ? uc(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, hc = (e, t) => {
|
|
4070
4070
|
for (var n in t || (t = {}))
|
|
4071
|
-
|
|
4071
|
+
dc.call(t, n) && Hs(e, n, t[n]);
|
|
4072
4072
|
if (Ws)
|
|
4073
4073
|
for (var n of Ws(t))
|
|
4074
|
-
|
|
4074
|
+
fc.call(t, n) && Hs(e, n, t[n]);
|
|
4075
4075
|
return e;
|
|
4076
4076
|
};
|
|
4077
4077
|
const pl = /* @__PURE__ */ qe({
|
|
4078
4078
|
__name: "Frame",
|
|
4079
4079
|
setup(e, { expose: t }) {
|
|
4080
|
-
const n = /* @__PURE__ */
|
|
4080
|
+
const n = /* @__PURE__ */ N(null), {
|
|
4081
4081
|
frameLoading: o,
|
|
4082
4082
|
showEmptyState: s,
|
|
4083
4083
|
showError: i,
|
|
@@ -4089,9 +4089,9 @@ const pl = /* @__PURE__ */ qe({
|
|
|
4089
4089
|
} = tn();
|
|
4090
4090
|
function f(g, b) {
|
|
4091
4091
|
var m;
|
|
4092
|
-
(m = n.value) != null && m.contentWindow && n.value.contentWindow.postMessage(
|
|
4092
|
+
(m = n.value) != null && m.contentWindow && n.value.contentWindow.postMessage(hc({ type: g }, b), "*");
|
|
4093
4093
|
}
|
|
4094
|
-
|
|
4094
|
+
Ue(() => {
|
|
4095
4095
|
n.value && n.value.addEventListener("load", () => {
|
|
4096
4096
|
c();
|
|
4097
4097
|
});
|
|
@@ -4101,9 +4101,9 @@ const pl = /* @__PURE__ */ qe({
|
|
|
4101
4101
|
const p = { iframeRef: n, frameLoading: o, showEmptyState: s, showError: i, iframeSrc: l, emptyStateText: r, emptyStateActionText: a, handleEmptyAction: u, handleFrameLoaded: c, sendMessageToIframe: f };
|
|
4102
4102
|
return Object.defineProperty(p, "__isScriptSetup", { enumerable: !1, value: !0 }), p;
|
|
4103
4103
|
}
|
|
4104
|
-
}),
|
|
4105
|
-
function
|
|
4106
|
-
return F(), W("div",
|
|
4104
|
+
}), pc = { class: "opencode-iframe-container" }, gc = { class: "opencode-empty-state-text" }, mc = ["src"];
|
|
4105
|
+
function vc(e, t, n, o, s, i) {
|
|
4106
|
+
return F(), W("div", pc, [
|
|
4107
4107
|
v(
|
|
4108
4108
|
"div",
|
|
4109
4109
|
{
|
|
@@ -4136,7 +4136,7 @@ function mc(e, t, n, o, s, i) {
|
|
|
4136
4136
|
)),
|
|
4137
4137
|
v(
|
|
4138
4138
|
"div",
|
|
4139
|
-
|
|
4139
|
+
gc,
|
|
4140
4140
|
_e(o.emptyStateText),
|
|
4141
4141
|
1
|
|
4142
4142
|
/* TEXT */
|
|
@@ -4201,12 +4201,12 @@ function mc(e, t, n, o, s, i) {
|
|
|
4201
4201
|
src: o.iframeSrc,
|
|
4202
4202
|
allow: "clipboard-write; clipboard-read",
|
|
4203
4203
|
referrerpolicy: "origin"
|
|
4204
|
-
}, null, 8,
|
|
4204
|
+
}, null, 8, mc)
|
|
4205
4205
|
])
|
|
4206
4206
|
]);
|
|
4207
4207
|
}
|
|
4208
|
-
pl.render =
|
|
4209
|
-
var
|
|
4208
|
+
pl.render = vc;
|
|
4209
|
+
var _c = pl;
|
|
4210
4210
|
const gl = /* @__PURE__ */ qe({
|
|
4211
4211
|
__name: "Header",
|
|
4212
4212
|
setup(e, { expose: t }) {
|
|
@@ -4232,32 +4232,32 @@ const gl = /* @__PURE__ */ qe({
|
|
|
4232
4232
|
handleClose: $,
|
|
4233
4233
|
handleToggleMinimize: y,
|
|
4234
4234
|
handleTogglePromptDock: j
|
|
4235
|
-
} = tn(),
|
|
4235
|
+
} = tn(), L = U(() => f.value === "split"), B = U(() => `主题: ${{
|
|
4236
4236
|
auto: "自动",
|
|
4237
4237
|
light: "亮色",
|
|
4238
4238
|
dark: "暗色"
|
|
4239
|
-
}[r.value]} (${a.value})`), q =
|
|
4239
|
+
}[r.value]} (${a.value})`), q = U(() => `切换主题 - 当前: ${{
|
|
4240
4240
|
auto: "自动跟随系统",
|
|
4241
4241
|
light: "亮色主题",
|
|
4242
4242
|
dark: "暗色主题"
|
|
4243
|
-
}[r.value]}`), Z =
|
|
4243
|
+
}[r.value]}`), Z = U(() => `展示模式: ${{
|
|
4244
4244
|
bubble: "气泡模式",
|
|
4245
4245
|
split: "分屏模式",
|
|
4246
4246
|
auto: "自动模式"
|
|
4247
|
-
}[p.value]}`), Q =
|
|
4247
|
+
}[p.value]}`), Q = U(() => {
|
|
4248
4248
|
const Y = {
|
|
4249
4249
|
bubble: "气泡模式",
|
|
4250
4250
|
split: "分屏模式",
|
|
4251
4251
|
auto: "自动模式"
|
|
4252
4252
|
}, oe = ["bubble", "split", "auto"], X = oe.indexOf(p.value), Oe = oe[(X + 1) % oe.length];
|
|
4253
4253
|
return `切换展示模式 - 下一个: ${Y[Oe]}`;
|
|
4254
|
-
}), me =
|
|
4254
|
+
}), me = U(() => `分栏位置: ${{
|
|
4255
4255
|
left: "左侧",
|
|
4256
4256
|
right: "右侧"
|
|
4257
|
-
}[g.value]}`), Ae =
|
|
4257
|
+
}[g.value]}`), Ae = U(() => `切换分栏位置 - 下一个: ${g.value === "right" ? "左侧" : "右侧"}`), I = { title: n, sessionListTitle: o, sessionListCollapsed: s, selectMode: i, selectEnabled: l, theme: r, resolvedTheme: a, minimized: u, promptDockVisible: c, mode: f, displayMode: p, splitPosition: g, handleToggleSessionList: b, handleToggleSelectMode: m, handleToggleTheme: x, handleToggleDisplayMode: R, handleToggleSplitPosition: M, handleClose: $, handleToggleMinimize: y, handleTogglePromptDock: j, isSplitMode: L, themeIconTitle: B, themeIconLabel: q, displayModeIconTitle: Z, displayModeIconLabel: Q, splitPositionIconTitle: me, splitPositionIconLabel: Ae };
|
|
4258
4258
|
return Object.defineProperty(I, "__isScriptSetup", { enumerable: !1, value: !0 }), I;
|
|
4259
4259
|
}
|
|
4260
|
-
}),
|
|
4260
|
+
}), yc = { class: "opencode-chat-header" }, bc = { class: "opencode-chat-header-left" }, Sc = ["title", "aria-label", "aria-expanded"], wc = ["aria-pressed", "disabled"], Ec = ["title", "aria-label"], Tc = {
|
|
4261
4261
|
key: 0,
|
|
4262
4262
|
viewBox: "0 0 24 24",
|
|
4263
4263
|
width: "16",
|
|
@@ -4266,7 +4266,7 @@ const gl = /* @__PURE__ */ qe({
|
|
|
4266
4266
|
stroke: "currentColor",
|
|
4267
4267
|
"stroke-width": "2",
|
|
4268
4268
|
"aria-hidden": "true"
|
|
4269
|
-
},
|
|
4269
|
+
}, xc = {
|
|
4270
4270
|
key: 1,
|
|
4271
4271
|
viewBox: "0 0 24 24",
|
|
4272
4272
|
width: "16",
|
|
@@ -4275,7 +4275,7 @@ const gl = /* @__PURE__ */ qe({
|
|
|
4275
4275
|
stroke: "currentColor",
|
|
4276
4276
|
"stroke-width": "2",
|
|
4277
4277
|
"aria-hidden": "true"
|
|
4278
|
-
},
|
|
4278
|
+
}, Cc = {
|
|
4279
4279
|
key: 2,
|
|
4280
4280
|
viewBox: "0 0 24 24",
|
|
4281
4281
|
width: "16",
|
|
@@ -4284,7 +4284,7 @@ const gl = /* @__PURE__ */ qe({
|
|
|
4284
4284
|
stroke: "currentColor",
|
|
4285
4285
|
"stroke-width": "2",
|
|
4286
4286
|
"aria-hidden": "true"
|
|
4287
|
-
},
|
|
4287
|
+
}, Ac = ["title", "aria-label"], Oc = {
|
|
4288
4288
|
key: 0,
|
|
4289
4289
|
viewBox: "0 0 24 24",
|
|
4290
4290
|
width: "16",
|
|
@@ -4293,7 +4293,7 @@ const gl = /* @__PURE__ */ qe({
|
|
|
4293
4293
|
stroke: "currentColor",
|
|
4294
4294
|
"stroke-width": "2",
|
|
4295
4295
|
"aria-hidden": "true"
|
|
4296
|
-
},
|
|
4296
|
+
}, Mc = {
|
|
4297
4297
|
key: 1,
|
|
4298
4298
|
viewBox: "0 0 24 24",
|
|
4299
4299
|
width: "16",
|
|
@@ -4302,7 +4302,7 @@ const gl = /* @__PURE__ */ qe({
|
|
|
4302
4302
|
stroke: "currentColor",
|
|
4303
4303
|
"stroke-width": "2",
|
|
4304
4304
|
"aria-hidden": "true"
|
|
4305
|
-
},
|
|
4305
|
+
}, Pc = {
|
|
4306
4306
|
key: 2,
|
|
4307
4307
|
viewBox: "0 0 24 24",
|
|
4308
4308
|
width: "16",
|
|
@@ -4311,7 +4311,7 @@ const gl = /* @__PURE__ */ qe({
|
|
|
4311
4311
|
stroke: "currentColor",
|
|
4312
4312
|
"stroke-width": "2",
|
|
4313
4313
|
"aria-hidden": "true"
|
|
4314
|
-
},
|
|
4314
|
+
}, kc = { class: "opencode-chat-header-title" }, Ic = { class: "opencode-chat-header-actions" }, Dc = ["title", "aria-label"], Rc = {
|
|
4315
4315
|
key: 0,
|
|
4316
4316
|
viewBox: "0 0 24 24",
|
|
4317
4317
|
width: "16",
|
|
@@ -4320,7 +4320,7 @@ const gl = /* @__PURE__ */ qe({
|
|
|
4320
4320
|
stroke: "currentColor",
|
|
4321
4321
|
"stroke-width": "2",
|
|
4322
4322
|
"aria-hidden": "true"
|
|
4323
|
-
},
|
|
4323
|
+
}, Lc = {
|
|
4324
4324
|
key: 1,
|
|
4325
4325
|
viewBox: "0 0 24 24",
|
|
4326
4326
|
width: "16",
|
|
@@ -4329,7 +4329,7 @@ const gl = /* @__PURE__ */ qe({
|
|
|
4329
4329
|
stroke: "currentColor",
|
|
4330
4330
|
"stroke-width": "2",
|
|
4331
4331
|
"aria-hidden": "true"
|
|
4332
|
-
}, Nc = ["title", "aria-label", "aria-pressed"],
|
|
4332
|
+
}, Nc = ["title", "aria-label", "aria-pressed"], Fc = ["title", "aria-label", "aria-pressed"], Bc = {
|
|
4333
4333
|
key: 0,
|
|
4334
4334
|
viewBox: "0 0 24 24",
|
|
4335
4335
|
width: "14",
|
|
@@ -4338,7 +4338,7 @@ const gl = /* @__PURE__ */ qe({
|
|
|
4338
4338
|
stroke: "currentColor",
|
|
4339
4339
|
"stroke-width": "2",
|
|
4340
4340
|
"aria-hidden": "true"
|
|
4341
|
-
},
|
|
4341
|
+
}, $c = {
|
|
4342
4342
|
key: 1,
|
|
4343
4343
|
viewBox: "0 0 24 24",
|
|
4344
4344
|
width: "14",
|
|
@@ -4348,9 +4348,9 @@ const gl = /* @__PURE__ */ qe({
|
|
|
4348
4348
|
"stroke-width": "2",
|
|
4349
4349
|
"aria-hidden": "true"
|
|
4350
4350
|
};
|
|
4351
|
-
function
|
|
4352
|
-
return F(), W("div",
|
|
4353
|
-
v("div",
|
|
4351
|
+
function jc(e, t, n, o, s, i) {
|
|
4352
|
+
return F(), W("div", yc, [
|
|
4353
|
+
v("div", bc, [
|
|
4354
4354
|
v("button", {
|
|
4355
4355
|
class: xe(["opencode-header-btn session-toggle", { active: !o.sessionListCollapsed }]),
|
|
4356
4356
|
type: "button",
|
|
@@ -4381,7 +4381,7 @@ function $c(e, t, n, o, s, i) {
|
|
|
4381
4381
|
/* CACHED */
|
|
4382
4382
|
))
|
|
4383
4383
|
])
|
|
4384
|
-
], 10,
|
|
4384
|
+
], 10, Sc),
|
|
4385
4385
|
v("button", {
|
|
4386
4386
|
class: xe(["opencode-header-btn select-btn", { active: o.selectMode }]),
|
|
4387
4387
|
type: "button",
|
|
@@ -4414,7 +4414,7 @@ function $c(e, t, n, o, s, i) {
|
|
|
4414
4414
|
/* CACHED */
|
|
4415
4415
|
))
|
|
4416
4416
|
])
|
|
4417
|
-
], 10,
|
|
4417
|
+
], 10, wc),
|
|
4418
4418
|
v("button", {
|
|
4419
4419
|
class: "opencode-header-btn theme-btn",
|
|
4420
4420
|
type: "button",
|
|
@@ -4423,9 +4423,9 @@ function $c(e, t, n, o, s, i) {
|
|
|
4423
4423
|
onClick: t[2] || (t[2] = (...l) => o.handleToggleTheme && o.handleToggleTheme(...l))
|
|
4424
4424
|
}, [
|
|
4425
4425
|
ee(e.$slots, "theme-icon", {}, () => [
|
|
4426
|
-
o.theme === "light" ? (F(), W("svg",
|
|
4426
|
+
o.theme === "light" ? (F(), W("svg", Tc, [...t[10] || (t[10] = [
|
|
4427
4427
|
Ts('<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)
|
|
4428
|
-
])])) : o.theme === "dark" ? (F(), W("svg",
|
|
4428
|
+
])])) : o.theme === "dark" ? (F(), W("svg", xc, [...t[11] || (t[11] = [
|
|
4429
4429
|
v(
|
|
4430
4430
|
"path",
|
|
4431
4431
|
{ d: "M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z" },
|
|
@@ -4433,11 +4433,11 @@ function $c(e, t, n, o, s, i) {
|
|
|
4433
4433
|
-1
|
|
4434
4434
|
/* CACHED */
|
|
4435
4435
|
)
|
|
4436
|
-
])])) : (F(), W("svg",
|
|
4436
|
+
])])) : (F(), W("svg", Cc, [...t[12] || (t[12] = [
|
|
4437
4437
|
Ts('<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)
|
|
4438
4438
|
])]))
|
|
4439
4439
|
])
|
|
4440
|
-
], 8,
|
|
4440
|
+
], 8, Ec),
|
|
4441
4441
|
v("button", {
|
|
4442
4442
|
class: "opencode-header-btn display-mode-btn",
|
|
4443
4443
|
type: "button",
|
|
@@ -4446,7 +4446,7 @@ function $c(e, t, n, o, s, i) {
|
|
|
4446
4446
|
onClick: t[3] || (t[3] = (...l) => o.handleToggleDisplayMode && o.handleToggleDisplayMode(...l))
|
|
4447
4447
|
}, [
|
|
4448
4448
|
ee(e.$slots, "display-mode-icon", {}, () => [
|
|
4449
|
-
o.displayMode === "bubble" ? (F(), W("svg",
|
|
4449
|
+
o.displayMode === "bubble" ? (F(), W("svg", Oc, [...t[13] || (t[13] = [
|
|
4450
4450
|
v(
|
|
4451
4451
|
"circle",
|
|
4452
4452
|
{
|
|
@@ -4494,7 +4494,7 @@ function $c(e, t, n, o, s, i) {
|
|
|
4494
4494
|
-1
|
|
4495
4495
|
/* CACHED */
|
|
4496
4496
|
)
|
|
4497
|
-
])])) : o.displayMode === "split" ? (F(), W("svg",
|
|
4497
|
+
])])) : o.displayMode === "split" ? (F(), W("svg", Mc, [...t[14] || (t[14] = [
|
|
4498
4498
|
v(
|
|
4499
4499
|
"rect",
|
|
4500
4500
|
{
|
|
@@ -4520,7 +4520,7 @@ function $c(e, t, n, o, s, i) {
|
|
|
4520
4520
|
-1
|
|
4521
4521
|
/* CACHED */
|
|
4522
4522
|
)
|
|
4523
|
-
])])) : (F(), W("svg",
|
|
4523
|
+
])])) : (F(), W("svg", Pc, [...t[15] || (t[15] = [
|
|
4524
4524
|
v(
|
|
4525
4525
|
"rect",
|
|
4526
4526
|
{
|
|
@@ -4573,16 +4573,16 @@ function $c(e, t, n, o, s, i) {
|
|
|
4573
4573
|
)
|
|
4574
4574
|
])]))
|
|
4575
4575
|
])
|
|
4576
|
-
], 8,
|
|
4576
|
+
], 8, Ac)
|
|
4577
4577
|
]),
|
|
4578
4578
|
v(
|
|
4579
4579
|
"span",
|
|
4580
|
-
|
|
4580
|
+
kc,
|
|
4581
4581
|
_e(o.title),
|
|
4582
4582
|
1
|
|
4583
4583
|
/* TEXT */
|
|
4584
4584
|
),
|
|
4585
|
-
v("div",
|
|
4585
|
+
v("div", Ic, [
|
|
4586
4586
|
o.isSplitMode ? (F(), W("button", {
|
|
4587
4587
|
key: 0,
|
|
4588
4588
|
class: "opencode-header-btn split-position-btn",
|
|
@@ -4592,7 +4592,7 @@ function $c(e, t, n, o, s, i) {
|
|
|
4592
4592
|
onClick: t[4] || (t[4] = (...l) => o.handleToggleSplitPosition && o.handleToggleSplitPosition(...l))
|
|
4593
4593
|
}, [
|
|
4594
4594
|
ee(e.$slots, "split-position-icon", {}, () => [
|
|
4595
|
-
o.splitPosition === "right" ? (F(), W("svg",
|
|
4595
|
+
o.splitPosition === "right" ? (F(), W("svg", Rc, [...t[16] || (t[16] = [
|
|
4596
4596
|
v(
|
|
4597
4597
|
"rect",
|
|
4598
4598
|
{
|
|
@@ -4618,7 +4618,7 @@ function $c(e, t, n, o, s, i) {
|
|
|
4618
4618
|
-1
|
|
4619
4619
|
/* CACHED */
|
|
4620
4620
|
)
|
|
4621
|
-
])])) : (F(), W("svg",
|
|
4621
|
+
])])) : (F(), W("svg", Lc, [...t[17] || (t[17] = [
|
|
4622
4622
|
v(
|
|
4623
4623
|
"rect",
|
|
4624
4624
|
{
|
|
@@ -4646,7 +4646,7 @@ function $c(e, t, n, o, s, i) {
|
|
|
4646
4646
|
)
|
|
4647
4647
|
])]))
|
|
4648
4648
|
])
|
|
4649
|
-
], 8,
|
|
4649
|
+
], 8, Dc)) : ae("v-if", !0),
|
|
4650
4650
|
o.isSplitMode ? ae("v-if", !0) : (F(), W("button", {
|
|
4651
4651
|
key: 1,
|
|
4652
4652
|
class: "opencode-header-btn prompt-dock",
|
|
@@ -4686,7 +4686,7 @@ function $c(e, t, n, o, s, i) {
|
|
|
4686
4686
|
onClick: t[6] || (t[6] = (...l) => o.handleToggleMinimize && o.handleToggleMinimize(...l))
|
|
4687
4687
|
}, [
|
|
4688
4688
|
ee(e.$slots, "minimize-icon", {}, () => [
|
|
4689
|
-
o.minimized ? (F(), W("svg",
|
|
4689
|
+
o.minimized ? (F(), W("svg", Bc, [...t[19] || (t[19] = [
|
|
4690
4690
|
v(
|
|
4691
4691
|
"path",
|
|
4692
4692
|
{ 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" },
|
|
@@ -4694,7 +4694,7 @@ function $c(e, t, n, o, s, i) {
|
|
|
4694
4694
|
-1
|
|
4695
4695
|
/* CACHED */
|
|
4696
4696
|
)
|
|
4697
|
-
])])) : (F(), W("svg",
|
|
4697
|
+
])])) : (F(), W("svg", $c, [...t[20] || (t[20] = [
|
|
4698
4698
|
v(
|
|
4699
4699
|
"path",
|
|
4700
4700
|
{ 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" },
|
|
@@ -4704,7 +4704,7 @@ function $c(e, t, n, o, s, i) {
|
|
|
4704
4704
|
)
|
|
4705
4705
|
])]))
|
|
4706
4706
|
])
|
|
4707
|
-
], 8,
|
|
4707
|
+
], 8, Fc)),
|
|
4708
4708
|
o.isSplitMode ? ae("v-if", !0) : (F(), W("button", {
|
|
4709
4709
|
key: 3,
|
|
4710
4710
|
class: "opencode-header-btn close",
|
|
@@ -4736,8 +4736,8 @@ function $c(e, t, n, o, s, i) {
|
|
|
4736
4736
|
])
|
|
4737
4737
|
]);
|
|
4738
4738
|
}
|
|
4739
|
-
gl.render =
|
|
4740
|
-
var
|
|
4739
|
+
gl.render = jc;
|
|
4740
|
+
var Wc = gl;
|
|
4741
4741
|
const ml = /* @__PURE__ */ qe({
|
|
4742
4742
|
__name: "SessionList",
|
|
4743
4743
|
setup(e, { expose: t }) {
|
|
@@ -4752,14 +4752,14 @@ const ml = /* @__PURE__ */ qe({
|
|
|
4752
4752
|
handleDeleteSession: a,
|
|
4753
4753
|
sessionKey: u,
|
|
4754
4754
|
sessionStates: c
|
|
4755
|
-
} = tn(), f = /* @__PURE__ */
|
|
4755
|
+
} = tn(), f = /* @__PURE__ */ N(!1);
|
|
4756
4756
|
let p = null;
|
|
4757
4757
|
Ce(n, () => {
|
|
4758
4758
|
f.value = !0, p && clearTimeout(p), p = setTimeout(() => {
|
|
4759
4759
|
f.value = !1;
|
|
4760
4760
|
}, 200);
|
|
4761
4761
|
});
|
|
4762
|
-
const g =
|
|
4762
|
+
const g = U(() => !!(f.value || i.value));
|
|
4763
4763
|
function b(x) {
|
|
4764
4764
|
var R, M;
|
|
4765
4765
|
return !c?.value || !x ? !1 : (M = (R = c.value[x]) == null ? void 0 : R.thinking) != null ? M : !1;
|
|
@@ -4771,24 +4771,24 @@ const ml = /* @__PURE__ */ qe({
|
|
|
4771
4771
|
}, showSkeleton: g, isSessionThinking: b };
|
|
4772
4772
|
return Object.defineProperty(m, "__isScriptSetup", { enumerable: !1, value: !0 }), m;
|
|
4773
4773
|
}
|
|
4774
|
-
}),
|
|
4774
|
+
}), Hc = {
|
|
4775
4775
|
key: 0,
|
|
4776
4776
|
class: "opencode-session-list-header"
|
|
4777
|
-
},
|
|
4777
|
+
}, Vc = {
|
|
4778
4778
|
key: 2,
|
|
4779
4779
|
class: "opencode-session-skeleton visible"
|
|
4780
|
-
},
|
|
4780
|
+
}, zc = {
|
|
4781
4781
|
class: "opencode-session-list-content",
|
|
4782
4782
|
role: "listbox",
|
|
4783
4783
|
"aria-labelledby": "opencode-session-list-title"
|
|
4784
|
-
},
|
|
4784
|
+
}, qc = {
|
|
4785
4785
|
key: 0,
|
|
4786
4786
|
class: "opencode-session-list-loading-overlay"
|
|
4787
|
-
},
|
|
4787
|
+
}, Kc = ["aria-selected", "onClick"], Uc = { class: "opencode-session-header" }, Yc = { class: "opencode-session-title" }, Gc = {
|
|
4788
4788
|
key: 0,
|
|
4789
4789
|
class: "opencode-thinking-loading"
|
|
4790
|
-
},
|
|
4791
|
-
function
|
|
4790
|
+
}, Xc = ["aria-label", "onClick"], Jc = { class: "opencode-session-meta" };
|
|
4791
|
+
function Zc(e, t, n, o, s, i) {
|
|
4792
4792
|
return F(), W(
|
|
4793
4793
|
"div",
|
|
4794
4794
|
{
|
|
@@ -4814,7 +4814,7 @@ function Jc(e, t, n, o, s, i) {
|
|
|
4814
4814
|
],
|
|
4815
4815
|
2112
|
|
4816
4816
|
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
4817
|
-
)) : (F(), W("div",
|
|
4817
|
+
)) : (F(), W("div", Hc, [
|
|
4818
4818
|
t[1] || (t[1] = v(
|
|
4819
4819
|
"span",
|
|
4820
4820
|
{ id: "opencode-session-list-title" },
|
|
@@ -4831,7 +4831,7 @@ function Jc(e, t, n, o, s, i) {
|
|
|
4831
4831
|
}, " + ")
|
|
4832
4832
|
])),
|
|
4833
4833
|
ae(" Content Skeleton "),
|
|
4834
|
-
o.showSkeleton ? (F(), W("div",
|
|
4834
|
+
o.showSkeleton ? (F(), W("div", Vc, [
|
|
4835
4835
|
(F(), W(
|
|
4836
4836
|
ce,
|
|
4837
4837
|
null,
|
|
@@ -4862,8 +4862,8 @@ function Jc(e, t, n, o, s, i) {
|
|
|
4862
4862
|
{ key: 3 },
|
|
4863
4863
|
[
|
|
4864
4864
|
ae(" Content "),
|
|
4865
|
-
v("div",
|
|
4866
|
-
o.loadingSessionList ? (F(), W("div",
|
|
4865
|
+
v("div", zc, [
|
|
4866
|
+
o.loadingSessionList ? (F(), W("div", qc, [...t[4] || (t[4] = [
|
|
4867
4867
|
v(
|
|
4868
4868
|
"div",
|
|
4869
4869
|
{ class: "opencode-loading-spinner small" },
|
|
@@ -4883,8 +4883,8 @@ function Jc(e, t, n, o, s, i) {
|
|
|
4883
4883
|
onClick: (r) => o.handleSelectSession(l)
|
|
4884
4884
|
}, [
|
|
4885
4885
|
v("div", Uc, [
|
|
4886
|
-
v("div",
|
|
4887
|
-
o.isSessionThinking(l.id) ? (F(), W("span",
|
|
4886
|
+
v("div", Yc, [
|
|
4887
|
+
o.isSessionThinking(l.id) ? (F(), W("span", Gc)) : ae("v-if", !0),
|
|
4888
4888
|
ts(
|
|
4889
4889
|
" " + _e(l.title),
|
|
4890
4890
|
1
|
|
@@ -4896,16 +4896,16 @@ function Jc(e, t, n, o, s, i) {
|
|
|
4896
4896
|
type: "button",
|
|
4897
4897
|
"aria-label": `删除会话: ${l.title}`,
|
|
4898
4898
|
onClick: ul((r) => o.handleDeleteSession(l), ["stop"])
|
|
4899
|
-
}, " × ", 8,
|
|
4899
|
+
}, " × ", 8, Xc)
|
|
4900
4900
|
]),
|
|
4901
4901
|
v(
|
|
4902
4902
|
"div",
|
|
4903
|
-
|
|
4903
|
+
Jc,
|
|
4904
4904
|
_e(l.meta),
|
|
4905
4905
|
1
|
|
4906
4906
|
/* TEXT */
|
|
4907
4907
|
)
|
|
4908
|
-
], 10,
|
|
4908
|
+
], 10, Kc))),
|
|
4909
4909
|
128
|
|
4910
4910
|
/* KEYED_FRAGMENT */
|
|
4911
4911
|
)) : (F(), W(
|
|
@@ -4928,8 +4928,8 @@ function Jc(e, t, n, o, s, i) {
|
|
|
4928
4928
|
/* CLASS */
|
|
4929
4929
|
);
|
|
4930
4930
|
}
|
|
4931
|
-
ml.render =
|
|
4932
|
-
var
|
|
4931
|
+
ml.render = Zc;
|
|
4932
|
+
var Qc = ml;
|
|
4933
4933
|
const vl = /* @__PURE__ */ qe({
|
|
4934
4934
|
__name: "SelectedNodes",
|
|
4935
4935
|
setup(e, { expose: t }) {
|
|
@@ -4943,12 +4943,12 @@ const vl = /* @__PURE__ */ qe({
|
|
|
4943
4943
|
} = tn(), r = { items: n, showClearAll: o, handleClickSelectedNode: s, handleRemoveSelectedNode: i, handleClearSelectedNodes: l };
|
|
4944
4944
|
return Object.defineProperty(r, "__isScriptSetup", { enumerable: !1, value: !0 }), r;
|
|
4945
4945
|
}
|
|
4946
|
-
}),
|
|
4946
|
+
}), eu = {
|
|
4947
4947
|
class: "opencode-selected-nodes",
|
|
4948
4948
|
role: "list",
|
|
4949
4949
|
"aria-label": "已选元素列表"
|
|
4950
|
-
},
|
|
4951
|
-
function
|
|
4950
|
+
}, tu = ["onClick"], nu = { class: "opencode-node-content" }, ou = { class: "opencode-node-text" }, su = { class: "opencode-node-file" }, iu = ["aria-label", "onClick"];
|
|
4951
|
+
function lu(e, t, n, o, s, i) {
|
|
4952
4952
|
return F(), W(
|
|
4953
4953
|
"div",
|
|
4954
4954
|
{
|
|
@@ -4965,7 +4965,7 @@ function iu(e, t, n, o, s, i) {
|
|
|
4965
4965
|
-1
|
|
4966
4966
|
/* CACHED */
|
|
4967
4967
|
)),
|
|
4968
|
-
v("div",
|
|
4968
|
+
v("div", eu, [
|
|
4969
4969
|
(F(!0), W(
|
|
4970
4970
|
ce,
|
|
4971
4971
|
null,
|
|
@@ -4975,17 +4975,17 @@ function iu(e, t, n, o, s, i) {
|
|
|
4975
4975
|
role: "listitem",
|
|
4976
4976
|
onClick: (a) => o.handleClickSelectedNode(l)
|
|
4977
4977
|
}, [
|
|
4978
|
-
v("div",
|
|
4978
|
+
v("div", nu, [
|
|
4979
4979
|
v(
|
|
4980
4980
|
"span",
|
|
4981
|
-
|
|
4981
|
+
ou,
|
|
4982
4982
|
_e(l.description),
|
|
4983
4983
|
1
|
|
4984
4984
|
/* TEXT */
|
|
4985
4985
|
),
|
|
4986
4986
|
v(
|
|
4987
4987
|
"span",
|
|
4988
|
-
|
|
4988
|
+
su,
|
|
4989
4989
|
_e(l.panelFileText),
|
|
4990
4990
|
1
|
|
4991
4991
|
/* TEXT */
|
|
@@ -4996,8 +4996,8 @@ function iu(e, t, n, o, s, i) {
|
|
|
4996
4996
|
type: "button",
|
|
4997
4997
|
"aria-label": `移除元素: ${l.description}`,
|
|
4998
4998
|
onClick: ul((a) => o.handleRemoveSelectedNode({ item: l, index: r, source: "panel" }), ["stop"])
|
|
4999
|
-
}, " × ", 8,
|
|
5000
|
-
], 8,
|
|
4999
|
+
}, " × ", 8, iu)
|
|
5000
|
+
], 8, tu))),
|
|
5001
5001
|
128
|
|
5002
5002
|
/* KEYED_FRAGMENT */
|
|
5003
5003
|
))
|
|
@@ -5014,16 +5014,16 @@ function iu(e, t, n, o, s, i) {
|
|
|
5014
5014
|
/* CLASS */
|
|
5015
5015
|
);
|
|
5016
5016
|
}
|
|
5017
|
-
vl.render =
|
|
5018
|
-
var
|
|
5017
|
+
vl.render = lu;
|
|
5018
|
+
var ru = vl, au = Object.defineProperty, cu = Object.defineProperties, uu = Object.getOwnPropertyDescriptors, Vs = Object.getOwnPropertySymbols, du = Object.prototype.hasOwnProperty, fu = Object.prototype.propertyIsEnumerable, zs = (e, t, n) => t in e ? au(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, hu = (e, t) => {
|
|
5019
5019
|
for (var n in t || (t = {}))
|
|
5020
|
-
|
|
5020
|
+
du.call(t, n) && zs(e, n, t[n]);
|
|
5021
5021
|
if (Vs)
|
|
5022
5022
|
for (var n of Vs(t))
|
|
5023
|
-
|
|
5023
|
+
fu.call(t, n) && zs(e, n, t[n]);
|
|
5024
5024
|
return e;
|
|
5025
|
-
},
|
|
5026
|
-
const _l = /* @__PURE__ */ qe(hu(
|
|
5025
|
+
}, pu = (e, t) => cu(e, uu(t));
|
|
5026
|
+
const _l = /* @__PURE__ */ qe(pu(hu({}, {
|
|
5027
5027
|
name: "ResizeHandle"
|
|
5028
5028
|
}), {
|
|
5029
5029
|
__name: "ResizeHandle",
|
|
@@ -5036,7 +5036,7 @@ const _l = /* @__PURE__ */ qe(hu(fu({}, {
|
|
|
5036
5036
|
emits: ["resize", "resize-start", "resize-end"],
|
|
5037
5037
|
setup(e, { expose: t, emit: n }) {
|
|
5038
5038
|
t();
|
|
5039
|
-
const o = e, s = n, i = /* @__PURE__ */
|
|
5039
|
+
const o = e, s = n, i = /* @__PURE__ */ N(!1), l = /* @__PURE__ */ N(0), r = /* @__PURE__ */ N(0), a = (g) => {
|
|
5040
5040
|
g.preventDefault(), i.value = !0, l.value = g.clientX, r.value = o.width, s("resize-start"), document.addEventListener("mousemove", u), document.addEventListener("mouseup", c);
|
|
5041
5041
|
}, u = (g) => {
|
|
5042
5042
|
if (!i.value) return;
|
|
@@ -5056,7 +5056,7 @@ const _l = /* @__PURE__ */ qe(hu(fu({}, {
|
|
|
5056
5056
|
return Object.defineProperty(p, "__isScriptSetup", { enumerable: !1, value: !0 }), p;
|
|
5057
5057
|
}
|
|
5058
5058
|
}));
|
|
5059
|
-
function
|
|
5059
|
+
function gu(e, t, n, o, s, i) {
|
|
5060
5060
|
return F(), W(
|
|
5061
5061
|
"div",
|
|
5062
5062
|
{
|
|
@@ -5069,16 +5069,16 @@ function pu(e, t, n, o, s, i) {
|
|
|
5069
5069
|
/* CLASS, NEED_HYDRATION */
|
|
5070
5070
|
);
|
|
5071
5071
|
}
|
|
5072
|
-
_l.render =
|
|
5073
|
-
var
|
|
5072
|
+
_l.render = gu;
|
|
5073
|
+
var mu = _l, vu = Object.defineProperty, _u = Object.defineProperties, yu = Object.getOwnPropertyDescriptors, qs = Object.getOwnPropertySymbols, bu = Object.prototype.hasOwnProperty, Su = Object.prototype.propertyIsEnumerable, Ks = (e, t, n) => t in e ? vu(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, wu = (e, t) => {
|
|
5074
5074
|
for (var n in t || (t = {}))
|
|
5075
|
-
|
|
5075
|
+
bu.call(t, n) && Ks(e, n, t[n]);
|
|
5076
5076
|
if (qs)
|
|
5077
5077
|
for (var n of qs(t))
|
|
5078
|
-
|
|
5078
|
+
Su.call(t, n) && Ks(e, n, t[n]);
|
|
5079
5079
|
return e;
|
|
5080
|
-
},
|
|
5081
|
-
const yl = /* @__PURE__ */ qe(wu(
|
|
5080
|
+
}, Eu = (e, t) => _u(e, yu(t));
|
|
5081
|
+
const yl = /* @__PURE__ */ qe(Eu(wu({}, {
|
|
5082
5082
|
name: "ChatPanel"
|
|
5083
5083
|
}), {
|
|
5084
5084
|
__name: "ChatPanel",
|
|
@@ -5107,7 +5107,7 @@ const yl = /* @__PURE__ */ qe(wu(Su({}, {
|
|
|
5107
5107
|
"-animationOrigin.x": m.animationOrigin.x,
|
|
5108
5108
|
"-animationOrigin.y": m.animationOrigin.y
|
|
5109
5109
|
}));
|
|
5110
|
-
const o = e, s = n, i = Wi(), l = /* @__PURE__ */
|
|
5110
|
+
const o = e, s = n, i = Wi(), l = /* @__PURE__ */ N(null), r = (m, x) => {
|
|
5111
5111
|
var R;
|
|
5112
5112
|
(R = l.value) == null || R.sendMessageToIframe(m, x);
|
|
5113
5113
|
};
|
|
@@ -5123,9 +5123,9 @@ const yl = /* @__PURE__ */ qe(wu(Su({}, {
|
|
|
5123
5123
|
s("resize-end");
|
|
5124
5124
|
}, f = () => {
|
|
5125
5125
|
s("toggle");
|
|
5126
|
-
}, p =
|
|
5126
|
+
}, p = U(() => o.mode === "split" ? {
|
|
5127
5127
|
width: `${o.panelWidth}px`
|
|
5128
|
-
} : o.positionStyle), g =
|
|
5128
|
+
} : o.positionStyle), g = U(() => [
|
|
5129
5129
|
"opencode-chat",
|
|
5130
5130
|
{
|
|
5131
5131
|
open: o.open,
|
|
@@ -5136,10 +5136,10 @@ const yl = /* @__PURE__ */ qe(wu(Su({}, {
|
|
|
5136
5136
|
"split-left": o.mode === "split" && o.splitPosition === "left",
|
|
5137
5137
|
"split-right": o.mode === "split" && o.splitPosition === "right"
|
|
5138
5138
|
}
|
|
5139
|
-
]), b = { props: o, emit: s, slots: i, frameRef: l, sendMessageToIframe: r, handleResizeStart: a, handleResize: u, handleResizeEnd: c, handleToggle: f, panelStyle: p, panelClasses: g, Frame:
|
|
5139
|
+
]), b = { props: o, emit: s, slots: i, frameRef: l, sendMessageToIframe: r, handleResizeStart: a, handleResize: u, handleResizeEnd: c, handleToggle: f, panelStyle: p, panelClasses: g, Frame: _c, Header: Wc, SessionList: Qc, SelectedNodes: ru, ResizeHandle: mu };
|
|
5140
5140
|
return Object.defineProperty(b, "__isScriptSetup", { enumerable: !1, value: !0 }), b;
|
|
5141
5141
|
}
|
|
5142
|
-
})),
|
|
5142
|
+
})), Tu = ["aria-expanded"], xu = { class: "opencode-split-toggle-icon" }, Cu = {
|
|
5143
5143
|
key: 0,
|
|
5144
5144
|
viewBox: "0 0 24 24",
|
|
5145
5145
|
width: "16",
|
|
@@ -5147,7 +5147,7 @@ const yl = /* @__PURE__ */ qe(wu(Su({}, {
|
|
|
5147
5147
|
fill: "none",
|
|
5148
5148
|
stroke: "currentColor",
|
|
5149
5149
|
"stroke-width": "2"
|
|
5150
|
-
},
|
|
5150
|
+
}, Au = {
|
|
5151
5151
|
key: 1,
|
|
5152
5152
|
viewBox: "0 0 24 24",
|
|
5153
5153
|
width: "16",
|
|
@@ -5155,7 +5155,7 @@ const yl = /* @__PURE__ */ qe(wu(Su({}, {
|
|
|
5155
5155
|
fill: "none",
|
|
5156
5156
|
stroke: "currentColor",
|
|
5157
5157
|
"stroke-width": "2"
|
|
5158
|
-
},
|
|
5158
|
+
}, Ou = {
|
|
5159
5159
|
key: 2,
|
|
5160
5160
|
viewBox: "0 0 24 24",
|
|
5161
5161
|
width: "16",
|
|
@@ -5163,7 +5163,7 @@ const yl = /* @__PURE__ */ qe(wu(Su({}, {
|
|
|
5163
5163
|
fill: "none",
|
|
5164
5164
|
stroke: "currentColor",
|
|
5165
5165
|
"stroke-width": "2"
|
|
5166
|
-
},
|
|
5166
|
+
}, Mu = {
|
|
5167
5167
|
key: 3,
|
|
5168
5168
|
viewBox: "0 0 24 24",
|
|
5169
5169
|
width: "16",
|
|
@@ -5171,12 +5171,12 @@ const yl = /* @__PURE__ */ qe(wu(Su({}, {
|
|
|
5171
5171
|
fill: "none",
|
|
5172
5172
|
stroke: "currentColor",
|
|
5173
5173
|
"stroke-width": "2"
|
|
5174
|
-
},
|
|
5174
|
+
}, Pu = {
|
|
5175
5175
|
key: 2,
|
|
5176
5176
|
class: "opencode-notification",
|
|
5177
5177
|
role: "alert"
|
|
5178
|
-
},
|
|
5179
|
-
function
|
|
5178
|
+
}, ku = { class: "opencode-chat-content" };
|
|
5179
|
+
function Iu(e, t, n, o, s, i) {
|
|
5180
5180
|
return F(), W(
|
|
5181
5181
|
"div",
|
|
5182
5182
|
{
|
|
@@ -5202,8 +5202,8 @@ function ku(e, t, n, o, s, i) {
|
|
|
5202
5202
|
"aria-label": "切换面板",
|
|
5203
5203
|
onClick: o.handleToggle
|
|
5204
5204
|
}, [
|
|
5205
|
-
v("span",
|
|
5206
|
-
n.open && n.splitPosition === "right" ? (F(), W("svg",
|
|
5205
|
+
v("span", xu, [
|
|
5206
|
+
n.open && n.splitPosition === "right" ? (F(), W("svg", Cu, [...t[0] || (t[0] = [
|
|
5207
5207
|
v(
|
|
5208
5208
|
"path",
|
|
5209
5209
|
{
|
|
@@ -5216,7 +5216,7 @@ function ku(e, t, n, o, s, i) {
|
|
|
5216
5216
|
/* CACHED */
|
|
5217
5217
|
)
|
|
5218
5218
|
])])) : ae("v-if", !0),
|
|
5219
|
-
!n.open && n.splitPosition === "right" ? (F(), W("svg",
|
|
5219
|
+
!n.open && n.splitPosition === "right" ? (F(), W("svg", Au, [...t[1] || (t[1] = [
|
|
5220
5220
|
v(
|
|
5221
5221
|
"path",
|
|
5222
5222
|
{
|
|
@@ -5229,7 +5229,7 @@ function ku(e, t, n, o, s, i) {
|
|
|
5229
5229
|
/* CACHED */
|
|
5230
5230
|
)
|
|
5231
5231
|
])])) : ae("v-if", !0),
|
|
5232
|
-
n.open && n.splitPosition === "left" ? (F(), W("svg",
|
|
5232
|
+
n.open && n.splitPosition === "left" ? (F(), W("svg", Ou, [...t[2] || (t[2] = [
|
|
5233
5233
|
v(
|
|
5234
5234
|
"path",
|
|
5235
5235
|
{
|
|
@@ -5242,7 +5242,7 @@ function ku(e, t, n, o, s, i) {
|
|
|
5242
5242
|
/* CACHED */
|
|
5243
5243
|
)
|
|
5244
5244
|
])])) : ae("v-if", !0),
|
|
5245
|
-
!n.open && n.splitPosition === "left" ? (F(), W("svg",
|
|
5245
|
+
!n.open && n.splitPosition === "left" ? (F(), W("svg", Mu, [...t[3] || (t[3] = [
|
|
5246
5246
|
v(
|
|
5247
5247
|
"path",
|
|
5248
5248
|
{
|
|
@@ -5256,7 +5256,7 @@ function ku(e, t, n, o, s, i) {
|
|
|
5256
5256
|
)
|
|
5257
5257
|
])])) : ae("v-if", !0)
|
|
5258
5258
|
])
|
|
5259
|
-
], 10,
|
|
5259
|
+
], 10, Tu)) : ae("v-if", !0),
|
|
5260
5260
|
Ee(
|
|
5261
5261
|
o.Header,
|
|
5262
5262
|
null,
|
|
@@ -5291,12 +5291,12 @@ function ku(e, t, n, o, s, i) {
|
|
|
5291
5291
|
),
|
|
5292
5292
|
n.notificationVisible && n.notificationMode === "widget" ? (F(), W(
|
|
5293
5293
|
"div",
|
|
5294
|
-
|
|
5294
|
+
Pu,
|
|
5295
5295
|
_e(n.notificationMessage),
|
|
5296
5296
|
1
|
|
5297
5297
|
/* TEXT */
|
|
5298
5298
|
)) : ae("v-if", !0),
|
|
5299
|
-
v("div",
|
|
5299
|
+
v("div", ku, [
|
|
5300
5300
|
Ee(o.SessionList, null, {
|
|
5301
5301
|
empty: pe(() => [
|
|
5302
5302
|
ee(e.$slots, "sessions-empty", {}, () => [
|
|
@@ -5358,8 +5358,8 @@ function ku(e, t, n, o, s, i) {
|
|
|
5358
5358
|
/* CLASS, STYLE */
|
|
5359
5359
|
);
|
|
5360
5360
|
}
|
|
5361
|
-
yl.render =
|
|
5362
|
-
var
|
|
5361
|
+
yl.render = Iu;
|
|
5362
|
+
var Du = yl;
|
|
5363
5363
|
const bl = /* @__PURE__ */ qe({
|
|
5364
5364
|
__name: "SelectHint",
|
|
5365
5365
|
setup(e, { expose: t }) {
|
|
@@ -5367,8 +5367,8 @@ const bl = /* @__PURE__ */ qe({
|
|
|
5367
5367
|
const { selectMode: n, selectShortcutLabel: o } = tn(), s = { visible: n, shortcutLabel: o };
|
|
5368
5368
|
return Object.defineProperty(s, "__isScriptSetup", { enumerable: !1, value: !0 }), s;
|
|
5369
5369
|
}
|
|
5370
|
-
}),
|
|
5371
|
-
function
|
|
5370
|
+
}), Ru = { class: "opencode-hint-shortcut" };
|
|
5371
|
+
function Lu(e, t, n, o, s, i) {
|
|
5372
5372
|
return F(), W(
|
|
5373
5373
|
"div",
|
|
5374
5374
|
{
|
|
@@ -5384,7 +5384,7 @@ function Ru(e, t, n, o, s, i) {
|
|
|
5384
5384
|
)),
|
|
5385
5385
|
v(
|
|
5386
5386
|
"span",
|
|
5387
|
-
|
|
5387
|
+
Ru,
|
|
5388
5388
|
_e(o.shortcutLabel),
|
|
5389
5389
|
1
|
|
5390
5390
|
/* TEXT */
|
|
@@ -5394,16 +5394,16 @@ function Ru(e, t, n, o, s, i) {
|
|
|
5394
5394
|
/* CLASS */
|
|
5395
5395
|
);
|
|
5396
5396
|
}
|
|
5397
|
-
bl.render =
|
|
5398
|
-
var Nu = bl,
|
|
5397
|
+
bl.render = Lu;
|
|
5398
|
+
var Nu = bl, Fu = Object.defineProperty, Bu = Object.defineProperties, $u = Object.getOwnPropertyDescriptors, Us = Object.getOwnPropertySymbols, ju = Object.prototype.hasOwnProperty, Wu = Object.prototype.propertyIsEnumerable, Ys = (e, t, n) => t in e ? Fu(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Hu = (e, t) => {
|
|
5399
5399
|
for (var n in t || (t = {}))
|
|
5400
|
-
|
|
5401
|
-
if (
|
|
5402
|
-
for (var n of
|
|
5403
|
-
|
|
5400
|
+
ju.call(t, n) && Ys(e, n, t[n]);
|
|
5401
|
+
if (Us)
|
|
5402
|
+
for (var n of Us(t))
|
|
5403
|
+
Wu.call(t, n) && Ys(e, n, t[n]);
|
|
5404
5404
|
return e;
|
|
5405
|
-
},
|
|
5406
|
-
const Sl = /* @__PURE__ */ qe(Hu(
|
|
5405
|
+
}, Vu = (e, t) => Bu(e, $u(t));
|
|
5406
|
+
const Sl = /* @__PURE__ */ qe(Vu(Hu({}, {
|
|
5407
5407
|
name: "FloatingBubble"
|
|
5408
5408
|
}), {
|
|
5409
5409
|
__name: "FloatingBubble",
|
|
@@ -5416,16 +5416,16 @@ const Sl = /* @__PURE__ */ qe(Hu(Wu({}, {
|
|
|
5416
5416
|
},
|
|
5417
5417
|
emits: ["update:offset", "click", "offset-change", "drag-start", "drag-end"],
|
|
5418
5418
|
setup(e, { expose: t, emit: n }) {
|
|
5419
|
-
const o = e, s = n, i = /* @__PURE__ */
|
|
5419
|
+
const o = e, s = n, i = /* @__PURE__ */ N(null), l = /* @__PURE__ */ N({
|
|
5420
5420
|
x: 0,
|
|
5421
5421
|
y: 0,
|
|
5422
5422
|
width: 0,
|
|
5423
5423
|
height: 0
|
|
5424
|
-
}), r = (I) => I !== null && typeof I == "object", a =
|
|
5424
|
+
}), r = (I) => I !== null && typeof I == "object", a = U(
|
|
5425
5425
|
() => r(o.gap) ? o.gap.x : o.gap
|
|
5426
|
-
), u =
|
|
5426
|
+
), u = U(
|
|
5427
5427
|
() => r(o.gap) ? o.gap.y : o.gap
|
|
5428
|
-
), c = /* @__PURE__ */
|
|
5428
|
+
), c = /* @__PURE__ */ N(typeof window < "u" ? window.innerWidth : 0), f = /* @__PURE__ */ N(typeof window < "u" ? window.innerHeight : 0), p = U(() => ({
|
|
5429
5429
|
top: u.value,
|
|
5430
5430
|
right: c.value - l.value.width - a.value,
|
|
5431
5431
|
bottom: f.value - l.value.height - u.value,
|
|
@@ -5452,7 +5452,7 @@ const Sl = /* @__PURE__ */ qe(Hu(Wu({}, {
|
|
|
5452
5452
|
);
|
|
5453
5453
|
l.value.y = I;
|
|
5454
5454
|
}
|
|
5455
|
-
}, m = /* @__PURE__ */
|
|
5455
|
+
}, m = /* @__PURE__ */ N(!1), x = /* @__PURE__ */ N(!1), R = /* @__PURE__ */ N(null), M = U(() => {
|
|
5456
5456
|
const I = {}, Y = `${l.value.x}px`, oe = `${l.value.y}px`;
|
|
5457
5457
|
return I.transform = `translate3d(${Y}, ${oe}, 0)`, m.value || !x.value ? I.transition = "none" : I.transition = "transform 0.3s ease", I;
|
|
5458
5458
|
}), $ = () => {
|
|
@@ -5472,13 +5472,13 @@ const Sl = /* @__PURE__ */ qe(Hu(Wu({}, {
|
|
|
5472
5472
|
s("update:offset", be), s("offset-change", be);
|
|
5473
5473
|
}
|
|
5474
5474
|
}, y = {
|
|
5475
|
-
startX: /* @__PURE__ */
|
|
5476
|
-
startY: /* @__PURE__ */
|
|
5477
|
-
deltaX: /* @__PURE__ */
|
|
5478
|
-
deltaY: /* @__PURE__ */
|
|
5479
|
-
offsetX: /* @__PURE__ */
|
|
5480
|
-
offsetY: /* @__PURE__ */
|
|
5481
|
-
isTap: /* @__PURE__ */
|
|
5475
|
+
startX: /* @__PURE__ */ N(0),
|
|
5476
|
+
startY: /* @__PURE__ */ N(0),
|
|
5477
|
+
deltaX: /* @__PURE__ */ N(0),
|
|
5478
|
+
deltaY: /* @__PURE__ */ N(0),
|
|
5479
|
+
offsetX: /* @__PURE__ */ N(0),
|
|
5480
|
+
offsetY: /* @__PURE__ */ N(0),
|
|
5481
|
+
isTap: /* @__PURE__ */ N(!0),
|
|
5482
5482
|
start(I) {
|
|
5483
5483
|
this.startX.value = "touches" in I ? I.touches[0].clientX : I.clientX, this.startY.value = "touches" in I ? I.touches[0].clientY : I.clientY, this.deltaX.value = 0, this.deltaY.value = 0, this.offsetX.value = 0, this.offsetY.value = 0, this.isTap.value = !0;
|
|
5484
5484
|
},
|
|
@@ -5489,9 +5489,9 @@ const Sl = /* @__PURE__ */ qe(Hu(Wu({}, {
|
|
|
5489
5489
|
this.isTap.value && (this.offsetX.value > X || this.offsetY.value > X) && (this.isTap.value = !1);
|
|
5490
5490
|
}
|
|
5491
5491
|
};
|
|
5492
|
-
let j = 0,
|
|
5492
|
+
let j = 0, L = 0;
|
|
5493
5493
|
const B = (I) => {
|
|
5494
|
-
y.start(I), m.value = !0, j = l.value.x,
|
|
5494
|
+
y.start(I), m.value = !0, j = l.value.x, L = l.value.y, document.body.classList.add("floating-bubble-dragging"), "touches" in I || (window.addEventListener("mousemove", q, { passive: !1 }), window.addEventListener("mouseup", Z));
|
|
5495
5495
|
}, q = (I) => {
|
|
5496
5496
|
I.cancelable && I.preventDefault();
|
|
5497
5497
|
const Y = y.isTap.value;
|
|
@@ -5501,7 +5501,7 @@ const Sl = /* @__PURE__ */ qe(Hu(Wu({}, {
|
|
|
5501
5501
|
X < p.value.left && (X = p.value.left), X > p.value.right && (X = p.value.right), l.value.x = X;
|
|
5502
5502
|
}
|
|
5503
5503
|
if (o.axis === "y" || o.axis === "xy") {
|
|
5504
|
-
let X =
|
|
5504
|
+
let X = L + y.deltaY.value;
|
|
5505
5505
|
X < p.value.top && (X = p.value.top), X > p.value.bottom && (X = p.value.bottom), l.value.y = X;
|
|
5506
5506
|
}
|
|
5507
5507
|
const oe = { x: l.value.x, y: l.value.y };
|
|
@@ -5516,7 +5516,7 @@ const Sl = /* @__PURE__ */ qe(Hu(Wu({}, {
|
|
|
5516
5516
|
if (b(), !y.isTap.value) {
|
|
5517
5517
|
s("drag-end");
|
|
5518
5518
|
const Y = { x: l.value.x, y: l.value.y };
|
|
5519
|
-
s("update:offset", Y), (j !== Y.x ||
|
|
5519
|
+
s("update:offset", Y), (j !== Y.x || L !== Y.y) && s("offset-change", Y);
|
|
5520
5520
|
}
|
|
5521
5521
|
});
|
|
5522
5522
|
}, Q = (I) => {
|
|
@@ -5524,7 +5524,7 @@ const Sl = /* @__PURE__ */ qe(Hu(Wu({}, {
|
|
|
5524
5524
|
}, me = () => {
|
|
5525
5525
|
typeof window < "u" && (c.value = window.innerWidth, f.value = window.innerHeight);
|
|
5526
5526
|
};
|
|
5527
|
-
|
|
5527
|
+
Ue(() => {
|
|
5528
5528
|
$(), requestAnimationFrame(() => {
|
|
5529
5529
|
x.value = !0;
|
|
5530
5530
|
}), typeof window < "u" && window.addEventListener("resize", me), i.value && i.value.addEventListener("touchmove", q, {
|
|
@@ -5537,21 +5537,21 @@ const Sl = /* @__PURE__ */ qe(Hu(Wu({}, {
|
|
|
5537
5537
|
$,
|
|
5538
5538
|
{ deep: !0 }
|
|
5539
5539
|
), t({
|
|
5540
|
-
offset:
|
|
5540
|
+
offset: U(() => ({ x: l.value.x, y: l.value.y }))
|
|
5541
5541
|
});
|
|
5542
5542
|
const Ae = { props: o, emit: s, rootRef: i, state: l, isObject: r, gapX: a, gapY: u, windowWidth: c, windowHeight: f, boundary: p, closest: g, applyMagnetic: b, dragging: m, initialized: x, magneticSide: R, rootStyle: M, updateState: $, touch: y, get prevX() {
|
|
5543
5543
|
return j;
|
|
5544
5544
|
}, set prevX(I) {
|
|
5545
5545
|
j = I;
|
|
5546
5546
|
}, get prevY() {
|
|
5547
|
-
return
|
|
5547
|
+
return L;
|
|
5548
5548
|
}, set prevY(I) {
|
|
5549
|
-
|
|
5549
|
+
L = I;
|
|
5550
5550
|
}, onTouchStart: B, onTouchMove: q, onTouchEnd: Z, onClick: Q, handleResize: me };
|
|
5551
5551
|
return Object.defineProperty(Ae, "__isScriptSetup", { enumerable: !1, value: !0 }), Ae;
|
|
5552
5552
|
}
|
|
5553
5553
|
}));
|
|
5554
|
-
function
|
|
5554
|
+
function zu(e, t, n, o, s, i) {
|
|
5555
5555
|
return F(), ft($i, { to: n.teleport }, [
|
|
5556
5556
|
v(
|
|
5557
5557
|
"div",
|
|
@@ -5573,8 +5573,8 @@ function Vu(e, t, n, o, s, i) {
|
|
|
5573
5573
|
)
|
|
5574
5574
|
], 8, ["to"]);
|
|
5575
5575
|
}
|
|
5576
|
-
Sl.render =
|
|
5577
|
-
var
|
|
5576
|
+
Sl.render = zu;
|
|
5577
|
+
var qu = Sl;
|
|
5578
5578
|
const wl = /* @__PURE__ */ qe({
|
|
5579
5579
|
__name: "Trigger",
|
|
5580
5580
|
emits: ["drag-start", "drag-end"],
|
|
@@ -5588,7 +5588,7 @@ const wl = /* @__PURE__ */ qe({
|
|
|
5588
5588
|
handleToggle: a,
|
|
5589
5589
|
bubbleOffset: u,
|
|
5590
5590
|
handleBubbleOffsetChange: c
|
|
5591
|
-
} = tn(), f = /* @__PURE__ */
|
|
5591
|
+
} = tn(), f = /* @__PURE__ */ N(u.value), p = n, g = (m) => {
|
|
5592
5592
|
f.value = m, c(m);
|
|
5593
5593
|
};
|
|
5594
5594
|
Ce(u, (m) => {
|
|
@@ -5596,10 +5596,10 @@ const wl = /* @__PURE__ */ qe({
|
|
|
5596
5596
|
}), t({
|
|
5597
5597
|
offset: f
|
|
5598
5598
|
});
|
|
5599
|
-
const b = { active: o, open: s, hotkeyLabel: i, thinking: l, resolvedTheme: r, handleToggle: a, bubbleOffset: u, handleBubbleOffsetChange: c, offset: f, emit: p, handleOffsetChange: g, FloatingBubble:
|
|
5599
|
+
const b = { active: o, open: s, hotkeyLabel: i, thinking: l, resolvedTheme: r, handleToggle: a, bubbleOffset: u, handleBubbleOffsetChange: c, offset: f, emit: p, handleOffsetChange: g, FloatingBubble: qu };
|
|
5600
5600
|
return Object.defineProperty(b, "__isScriptSetup", { enumerable: !1, value: !0 }), b;
|
|
5601
5601
|
}
|
|
5602
|
-
}),
|
|
5602
|
+
}), Ku = ["aria-expanded", "title"];
|
|
5603
5603
|
function Uu(e, t, n, o, s, i) {
|
|
5604
5604
|
return F(), ft(o.FloatingBubble, {
|
|
5605
5605
|
ref: "bubbleRef",
|
|
@@ -5674,14 +5674,14 @@ function Uu(e, t, n, o, s, i) {
|
|
|
5674
5674
|
/* CACHED */
|
|
5675
5675
|
))
|
|
5676
5676
|
])
|
|
5677
|
-
], 10,
|
|
5677
|
+
], 10, Ku)
|
|
5678
5678
|
]),
|
|
5679
5679
|
_: 3
|
|
5680
5680
|
/* FORWARDED */
|
|
5681
5681
|
}, 8, ["offset", "onClick"]);
|
|
5682
5682
|
}
|
|
5683
5683
|
wl.render = Uu;
|
|
5684
|
-
var
|
|
5684
|
+
var Yu = wl, Gu = (e, t, n) => new Promise((o, s) => {
|
|
5685
5685
|
var i = (a) => {
|
|
5686
5686
|
try {
|
|
5687
5687
|
r(n.next(a));
|
|
@@ -5697,32 +5697,32 @@ var Ku = wl, Yu = (e, t, n) => new Promise((o, s) => {
|
|
|
5697
5697
|
}, r = (a) => a.done ? o(a.value) : Promise.resolve(a.value).then(i, l);
|
|
5698
5698
|
r((n = n.apply(e, t)).next());
|
|
5699
5699
|
});
|
|
5700
|
-
function
|
|
5700
|
+
function Xu(e, t) {
|
|
5701
5701
|
var n;
|
|
5702
5702
|
return e.filePath && e.line ? `${e.filePath}:${e.line}:${(n = e.column) != null ? n : 0}` : `${e.description}-${t}`;
|
|
5703
5703
|
}
|
|
5704
|
-
function
|
|
5704
|
+
function Ju(e) {
|
|
5705
5705
|
var t;
|
|
5706
5706
|
const n = ((t = e.filePath) == null ? void 0 : t.split("/").pop()) || "", o = e.line ? `:${e.line}${e.column ? `:${e.column}` : ""}` : "";
|
|
5707
5707
|
return `${n}${o}`;
|
|
5708
5708
|
}
|
|
5709
|
-
function
|
|
5709
|
+
function Zu(e) {
|
|
5710
5710
|
var t, n;
|
|
5711
5711
|
const o = ((t = e.filePath) == null ? void 0 : t.split("/").pop()) || "未知文件", s = e.line ? `:${e.line}${e.column ? `:${e.column}` : ""}` : "";
|
|
5712
5712
|
return `${(n = e.innerText) != null && n.trim() ? `${fl(e.innerText.trim(), 30)} · ` : ""}${o}${s}`;
|
|
5713
5713
|
}
|
|
5714
|
-
function
|
|
5715
|
-
const t =
|
|
5714
|
+
function Qu(e) {
|
|
5715
|
+
const t = U(() => e.selectMode.value), n = U(
|
|
5716
5716
|
() => (e.selectedElements.value || []).map(
|
|
5717
5717
|
(a, u) => ({
|
|
5718
|
-
key:
|
|
5718
|
+
key: Xu(a, u),
|
|
5719
5719
|
description: a.description || "未知元素",
|
|
5720
|
-
bubbleFileText:
|
|
5721
|
-
panelFileText:
|
|
5720
|
+
bubbleFileText: Ju(a),
|
|
5721
|
+
panelFileText: Zu(a),
|
|
5722
5722
|
element: a
|
|
5723
5723
|
})
|
|
5724
5724
|
)
|
|
5725
|
-
), o =
|
|
5725
|
+
), o = U(() => n.value.length > 0);
|
|
5726
5726
|
function s() {
|
|
5727
5727
|
e.onToggleSelectMode(!e.selectMode.value);
|
|
5728
5728
|
}
|
|
@@ -5766,7 +5766,7 @@ function Zu(e) {
|
|
|
5766
5766
|
e.onRemoveSelectedNode({ element: a.element, index: u, source: c });
|
|
5767
5767
|
}
|
|
5768
5768
|
function r() {
|
|
5769
|
-
return
|
|
5769
|
+
return Gu(this, null, function* () {
|
|
5770
5770
|
if (!e.selectedElements.value || e.selectedElements.value.length === 0) return;
|
|
5771
5771
|
(yield e.showConfirmDialog(
|
|
5772
5772
|
`确定要清空所有 ${e.selectedElements.value.length} 个已选节点吗?`
|
|
@@ -5783,7 +5783,7 @@ function Zu(e) {
|
|
|
5783
5783
|
handleToggleSelectMode: s
|
|
5784
5784
|
};
|
|
5785
5785
|
}
|
|
5786
|
-
var
|
|
5786
|
+
var ed = (e, t, n) => new Promise((o, s) => {
|
|
5787
5787
|
var i = (a) => {
|
|
5788
5788
|
try {
|
|
5789
5789
|
r(n.next(a));
|
|
@@ -5799,7 +5799,7 @@ var Qu = (e, t, n) => new Promise((o, s) => {
|
|
|
5799
5799
|
}, r = (a) => a.done ? o(a.value) : Promise.resolve(a.value).then(i, l);
|
|
5800
5800
|
r((n = n.apply(e, t)).next());
|
|
5801
5801
|
});
|
|
5802
|
-
function
|
|
5802
|
+
function td(e) {
|
|
5803
5803
|
if (e.meta)
|
|
5804
5804
|
return e.meta;
|
|
5805
5805
|
if (!e.updatedAt)
|
|
@@ -5807,13 +5807,13 @@ function ed(e) {
|
|
|
5807
5807
|
const t = new Date(e.updatedAt);
|
|
5808
5808
|
return Number.isNaN(t.getTime()) ? "" : `${t.toLocaleDateString()} ${t.toLocaleTimeString()}`;
|
|
5809
5809
|
}
|
|
5810
|
-
function
|
|
5811
|
-
const t =
|
|
5810
|
+
function nd(e) {
|
|
5811
|
+
const t = U(
|
|
5812
5812
|
() => (e.sessions.value || []).map((i) => ({
|
|
5813
5813
|
key: i.id,
|
|
5814
5814
|
id: i.id,
|
|
5815
5815
|
title: i.title || "新会话",
|
|
5816
|
-
meta:
|
|
5816
|
+
meta: td(i),
|
|
5817
5817
|
active: i.id === e.currentSessionId.value,
|
|
5818
5818
|
session: i
|
|
5819
5819
|
}))
|
|
@@ -5825,7 +5825,7 @@ function td(e) {
|
|
|
5825
5825
|
e.onSelectSession(i.session);
|
|
5826
5826
|
}
|
|
5827
5827
|
function s(i) {
|
|
5828
|
-
return
|
|
5828
|
+
return ed(this, null, function* () {
|
|
5829
5829
|
(yield e.showConfirmDialog(`确定要删除会话 "${i.title}" 吗?`)) && e.onDeleteSession(i.session);
|
|
5830
5830
|
});
|
|
5831
5831
|
}
|
|
@@ -5837,23 +5837,23 @@ function td(e) {
|
|
|
5837
5837
|
};
|
|
5838
5838
|
}
|
|
5839
5839
|
const Eo = ["auto", "light", "dark"];
|
|
5840
|
-
function
|
|
5841
|
-
const t = /* @__PURE__ */
|
|
5840
|
+
function od(e) {
|
|
5841
|
+
const t = /* @__PURE__ */ N("light");
|
|
5842
5842
|
function n() {
|
|
5843
5843
|
return typeof window > "u" ? "light" : window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
5844
5844
|
}
|
|
5845
5845
|
let o = null, s = null;
|
|
5846
|
-
|
|
5846
|
+
Ue(() => {
|
|
5847
5847
|
typeof window > "u" || (t.value = n(), o = window.matchMedia("(prefers-color-scheme: dark)"), s = (m) => {
|
|
5848
5848
|
t.value = m.matches ? "dark" : "light";
|
|
5849
5849
|
}, o.addEventListener("change", s));
|
|
5850
5850
|
}), ot(() => {
|
|
5851
5851
|
o && s && o.removeEventListener("change", s);
|
|
5852
5852
|
});
|
|
5853
|
-
const i =
|
|
5853
|
+
const i = U(() => e.theme.value === "auto" ? t.value : e.theme.value), l = U(() => [
|
|
5854
5854
|
"opencode-widget",
|
|
5855
5855
|
`opencode-theme-${i.value}`
|
|
5856
|
-
]), r =
|
|
5856
|
+
]), r = U(() => !!(e.open.value || e.selectMode.value)), a = U(() => e.iframeSrc.value || "about:blank"), u = U(
|
|
5857
5857
|
() => e.sessionListCollapsed.value ? "展开会话列表" : "折叠会话列表"
|
|
5858
5858
|
);
|
|
5859
5859
|
function c() {
|
|
@@ -5907,14 +5907,14 @@ const An = {
|
|
|
5907
5907
|
nthchild: "nthchild",
|
|
5908
5908
|
nthoftype: "nthoftype"
|
|
5909
5909
|
};
|
|
5910
|
-
function
|
|
5910
|
+
function sd(e, t) {
|
|
5911
5911
|
return Object.values(e).includes(t);
|
|
5912
5912
|
}
|
|
5913
|
-
const
|
|
5913
|
+
const id = "CssSelectorGenerator";
|
|
5914
5914
|
function Xn(e = "unknown problem", ...t) {
|
|
5915
|
-
console.warn(`${
|
|
5915
|
+
console.warn(`${id}: ${e}`, ...t);
|
|
5916
5916
|
}
|
|
5917
|
-
const
|
|
5917
|
+
const ld = {
|
|
5918
5918
|
selectors: [
|
|
5919
5919
|
ge.id,
|
|
5920
5920
|
ge.class,
|
|
@@ -5936,19 +5936,19 @@ const id = {
|
|
|
5936
5936
|
function fn(e) {
|
|
5937
5937
|
return !!e;
|
|
5938
5938
|
}
|
|
5939
|
-
function
|
|
5940
|
-
return Array.isArray(e) ? e.filter((t) =>
|
|
5939
|
+
function rd(e) {
|
|
5940
|
+
return Array.isArray(e) ? e.filter((t) => sd(ge, t)) : [];
|
|
5941
5941
|
}
|
|
5942
5942
|
function Tl(e) {
|
|
5943
5943
|
return e instanceof RegExp;
|
|
5944
5944
|
}
|
|
5945
|
-
function
|
|
5945
|
+
function ad(e) {
|
|
5946
5946
|
return ["string", "function"].includes(typeof e) || Tl(e);
|
|
5947
5947
|
}
|
|
5948
5948
|
function Gs(e) {
|
|
5949
|
-
return Array.isArray(e) ? e.filter(
|
|
5949
|
+
return Array.isArray(e) ? e.filter(ad) : [];
|
|
5950
5950
|
}
|
|
5951
|
-
function
|
|
5951
|
+
function cd(e) {
|
|
5952
5952
|
return e != null && typeof e == "object" && "nodeType" in e && typeof e.nodeType == "number";
|
|
5953
5953
|
}
|
|
5954
5954
|
function Xs(e) {
|
|
@@ -5958,7 +5958,7 @@ function Xs(e) {
|
|
|
5958
5958
|
// this includes Shadow DOM root
|
|
5959
5959
|
Node.ELEMENT_NODE
|
|
5960
5960
|
];
|
|
5961
|
-
return
|
|
5961
|
+
return cd(e) && t.includes(e.nodeType);
|
|
5962
5962
|
}
|
|
5963
5963
|
function xl(e, t) {
|
|
5964
5964
|
if (Xs(e))
|
|
@@ -5969,10 +5969,10 @@ function xl(e, t) {
|
|
|
5969
5969
|
function To(e) {
|
|
5970
5970
|
return typeof e == "number" ? e : Number.POSITIVE_INFINITY;
|
|
5971
5971
|
}
|
|
5972
|
-
function
|
|
5973
|
-
const n = Object.assign(Object.assign({},
|
|
5972
|
+
function ud(e, t = {}) {
|
|
5973
|
+
const n = Object.assign(Object.assign({}, ld), t);
|
|
5974
5974
|
return {
|
|
5975
|
-
selectors:
|
|
5975
|
+
selectors: rd(n.selectors),
|
|
5976
5976
|
whitelist: Gs(n.whitelist),
|
|
5977
5977
|
blacklist: Gs(n.blacklist),
|
|
5978
5978
|
root: xl(n.root, e),
|
|
@@ -5990,10 +5990,10 @@ function kn(e = []) {
|
|
|
5990
5990
|
const [t = [], ...n] = e;
|
|
5991
5991
|
return n.length === 0 ? t : n.reduce((o, s) => o.filter((i) => s.includes(i)), t);
|
|
5992
5992
|
}
|
|
5993
|
-
function
|
|
5993
|
+
function dd(e) {
|
|
5994
5994
|
return [].concat(...e);
|
|
5995
5995
|
}
|
|
5996
|
-
function
|
|
5996
|
+
function fd(e) {
|
|
5997
5997
|
return e.replace(/[|\\{}()[\]^$+?.]/g, "\\$&").replace(/\*/g, ".+");
|
|
5998
5998
|
}
|
|
5999
5999
|
function Jn(e) {
|
|
@@ -6006,7 +6006,7 @@ function Jn(e) {
|
|
|
6006
6006
|
return typeof s != "boolean" ? (Xn("pattern matcher function invalid", "Provided pattern matching function does not return boolean. It's result will be ignored.", n), !1) : s;
|
|
6007
6007
|
};
|
|
6008
6008
|
if (typeof n == "string") {
|
|
6009
|
-
const o = new RegExp("^" +
|
|
6009
|
+
const o = new RegExp("^" + fd(n) + "$");
|
|
6010
6010
|
return (s) => o.test(s);
|
|
6011
6011
|
}
|
|
6012
6012
|
return Xn("pattern matcher invalid", "Pattern matching only accepts strings, regular expressions and/or functions. This item is invalid and will be ignored.", n), () => !1;
|
|
@@ -6025,18 +6025,18 @@ function Cl(e, t) {
|
|
|
6025
6025
|
El(o) && n.push(o), o = o.parentNode;
|
|
6026
6026
|
return n;
|
|
6027
6027
|
}
|
|
6028
|
-
function
|
|
6028
|
+
function hd(e, t) {
|
|
6029
6029
|
return kn(e.map((n) => Cl(n, t)));
|
|
6030
6030
|
}
|
|
6031
6031
|
function ls(e) {
|
|
6032
6032
|
return e.ownerDocument.querySelector(":root");
|
|
6033
6033
|
}
|
|
6034
|
-
const Al = ", ",
|
|
6034
|
+
const Al = ", ", pd = new RegExp([
|
|
6035
6035
|
"^$",
|
|
6036
6036
|
// empty or not set
|
|
6037
6037
|
"\\s"
|
|
6038
6038
|
// contains whitespace
|
|
6039
|
-
].join("|")),
|
|
6039
|
+
].join("|")), gd = new RegExp([
|
|
6040
6040
|
"^$"
|
|
6041
6041
|
// empty or not set
|
|
6042
6042
|
].join("|")), Ol = [
|
|
@@ -6046,74 +6046,74 @@ const Al = ", ", hd = new RegExp([
|
|
|
6046
6046
|
ge.class,
|
|
6047
6047
|
ge.attribute,
|
|
6048
6048
|
ge.nthchild
|
|
6049
|
-
],
|
|
6049
|
+
], md = Jn([
|
|
6050
6050
|
"class",
|
|
6051
6051
|
"id",
|
|
6052
6052
|
// Angular attributes
|
|
6053
6053
|
"ng-*"
|
|
6054
6054
|
]);
|
|
6055
|
-
function
|
|
6055
|
+
function vd({ name: e }) {
|
|
6056
6056
|
return `[${e}]`;
|
|
6057
6057
|
}
|
|
6058
|
-
function
|
|
6058
|
+
function _d({ name: e, value: t }) {
|
|
6059
6059
|
return `[${e}='${t}']`;
|
|
6060
6060
|
}
|
|
6061
|
-
function
|
|
6061
|
+
function yd({ nodeName: e, nodeValue: t }, n) {
|
|
6062
6062
|
const o = n.tagName.toLowerCase();
|
|
6063
|
-
return ["input", "option"].includes(o) && e === "value" || e === "src" && t?.startsWith("data:") ? !1 : !
|
|
6063
|
+
return ["input", "option"].includes(o) && e === "value" || e === "src" && t?.startsWith("data:") ? !1 : !md(e);
|
|
6064
6064
|
}
|
|
6065
|
-
function
|
|
6065
|
+
function bd({ nodeName: e, nodeValue: t }) {
|
|
6066
6066
|
return {
|
|
6067
6067
|
name: en(e),
|
|
6068
6068
|
value: en(t ?? void 0)
|
|
6069
6069
|
};
|
|
6070
6070
|
}
|
|
6071
6071
|
function Ml(e, t) {
|
|
6072
|
-
const n = Array.from(e.attributes).filter((o) =>
|
|
6072
|
+
const n = Array.from(e.attributes).filter((o) => yd(o, e)).map(bd);
|
|
6073
6073
|
return [
|
|
6074
|
-
...n.map(
|
|
6075
|
-
...n.map(
|
|
6074
|
+
...n.map(vd),
|
|
6075
|
+
...n.map(_d)
|
|
6076
6076
|
];
|
|
6077
6077
|
}
|
|
6078
|
-
function
|
|
6078
|
+
function Sd(e, t) {
|
|
6079
6079
|
const n = e.map((o) => Ml(o));
|
|
6080
6080
|
return kn(n);
|
|
6081
6081
|
}
|
|
6082
|
-
const
|
|
6083
|
-
function
|
|
6084
|
-
if (!
|
|
6082
|
+
const wd = /^[a-z_-]{3,}$/i, Ed = /[bcdfghjklmnpqrstvwxyz]{4,}/i;
|
|
6083
|
+
function Td(e) {
|
|
6084
|
+
if (!wd.test(e) || e.includes("_") && !e.includes("__") || /^(css|sc|jsx|emotion|makeStyles|MuiButton|MuiBox)-/i.test(e))
|
|
6085
6085
|
return !1;
|
|
6086
6086
|
const t = e.split(/--|__|[-]|(?<=[a-z])(?=[A-Z])/).filter((n) => n.length > 0);
|
|
6087
6087
|
if (t.length === 0 || t.length === 1 && t[0].length < 4)
|
|
6088
6088
|
return !1;
|
|
6089
6089
|
for (const n of t)
|
|
6090
|
-
if (n.length <= 2 ||
|
|
6090
|
+
if (n.length <= 2 || Ed.test(n))
|
|
6091
6091
|
return !1;
|
|
6092
6092
|
return !0;
|
|
6093
6093
|
}
|
|
6094
6094
|
function Pl(e, t) {
|
|
6095
6095
|
var n;
|
|
6096
|
-
const o = ((n = e.getAttribute("class")) !== null && n !== void 0 ? n : "").trim().split(/\s+/).filter((i) => !
|
|
6096
|
+
const o = ((n = e.getAttribute("class")) !== null && n !== void 0 ? n : "").trim().split(/\s+/).filter((i) => !gd.test(i));
|
|
6097
6097
|
let s = o;
|
|
6098
6098
|
if (t?.ignoreGeneratedClassNames) {
|
|
6099
6099
|
const i = Jn(t.whitelist);
|
|
6100
6100
|
s = o.filter((l) => {
|
|
6101
6101
|
const r = `.${en(l)}`;
|
|
6102
|
-
return i(r) ? !0 :
|
|
6102
|
+
return i(r) ? !0 : Td(l);
|
|
6103
6103
|
});
|
|
6104
6104
|
}
|
|
6105
6105
|
return s.map((i) => `.${en(i)}`);
|
|
6106
6106
|
}
|
|
6107
|
-
function
|
|
6107
|
+
function xd(e, t) {
|
|
6108
6108
|
const n = e.map((o) => Pl(o, t));
|
|
6109
6109
|
return kn(n);
|
|
6110
6110
|
}
|
|
6111
6111
|
function kl(e, t) {
|
|
6112
6112
|
var n;
|
|
6113
6113
|
const o = (n = e.getAttribute("id")) !== null && n !== void 0 ? n : "", s = `#${en(o)}`, i = e.getRootNode({ composed: !1 });
|
|
6114
|
-
return !
|
|
6114
|
+
return !pd.test(o) && is([e], s, i) ? [s] : [];
|
|
6115
6115
|
}
|
|
6116
|
-
function
|
|
6116
|
+
function Cd(e, t) {
|
|
6117
6117
|
return e.length === 0 || e.length > 1 ? [] : kl(e[0]);
|
|
6118
6118
|
}
|
|
6119
6119
|
function Il(e, t) {
|
|
@@ -6125,7 +6125,7 @@ function Il(e, t) {
|
|
|
6125
6125
|
}
|
|
6126
6126
|
return [];
|
|
6127
6127
|
}
|
|
6128
|
-
function
|
|
6128
|
+
function Ad(e, t) {
|
|
6129
6129
|
return kn(e.map((n) => Il(n)));
|
|
6130
6130
|
}
|
|
6131
6131
|
function Dl(e, t) {
|
|
@@ -6135,11 +6135,11 @@ function Dl(e, t) {
|
|
|
6135
6135
|
}
|
|
6136
6136
|
function Rl(e, t) {
|
|
6137
6137
|
const n = [
|
|
6138
|
-
...new Set(
|
|
6138
|
+
...new Set(dd(e.map((o) => Dl(o))))
|
|
6139
6139
|
];
|
|
6140
6140
|
return n.length === 0 || n.length > 1 ? [] : [n[0]];
|
|
6141
6141
|
}
|
|
6142
|
-
function
|
|
6142
|
+
function Ll(e, t) {
|
|
6143
6143
|
const n = Rl([e])[0], o = e.parentNode, s = o && "children" in o ? o : null;
|
|
6144
6144
|
if (s) {
|
|
6145
6145
|
const l = Array.from(s.children).filter((r) => r.tagName.toLowerCase() === n).indexOf(e);
|
|
@@ -6150,18 +6150,18 @@ function Nl(e, t) {
|
|
|
6150
6150
|
}
|
|
6151
6151
|
return [];
|
|
6152
6152
|
}
|
|
6153
|
-
function
|
|
6154
|
-
return kn(e.map((n) =>
|
|
6153
|
+
function Od(e, t) {
|
|
6154
|
+
return kn(e.map((n) => Ll(n)));
|
|
6155
6155
|
}
|
|
6156
|
-
function*
|
|
6156
|
+
function* Nl(e = [], { maxResults: t = Number.POSITIVE_INFINITY } = {}) {
|
|
6157
6157
|
let n = 0, o = $o(1);
|
|
6158
6158
|
for (; o.length <= e.length && n < t; )
|
|
6159
|
-
n += 1, yield o.map((i) => e[i]), o =
|
|
6159
|
+
n += 1, yield o.map((i) => e[i]), o = Pd(o, e.length - 1);
|
|
6160
6160
|
}
|
|
6161
|
-
function
|
|
6162
|
-
return Array.from(
|
|
6161
|
+
function Md(e = [], { maxResults: t = Number.POSITIVE_INFINITY } = {}) {
|
|
6162
|
+
return Array.from(Nl(e, { maxResults: t }));
|
|
6163
6163
|
}
|
|
6164
|
-
function
|
|
6164
|
+
function Pd(e = [], t = 0) {
|
|
6165
6165
|
const n = e.length;
|
|
6166
6166
|
if (n === 0)
|
|
6167
6167
|
return [];
|
|
@@ -6178,7 +6178,7 @@ function Md(e = [], t = 0) {
|
|
|
6178
6178
|
function $o(e = 1) {
|
|
6179
6179
|
return Array.from(Array(e).keys());
|
|
6180
6180
|
}
|
|
6181
|
-
function*
|
|
6181
|
+
function* kd(e = {}) {
|
|
6182
6182
|
const t = Object.entries(e);
|
|
6183
6183
|
if (t.length === 0)
|
|
6184
6184
|
return;
|
|
@@ -6202,69 +6202,69 @@ function* Pd(e = {}) {
|
|
|
6202
6202
|
});
|
|
6203
6203
|
}
|
|
6204
6204
|
}
|
|
6205
|
-
const
|
|
6205
|
+
const Id = "3a".toUpperCase(), Dd = /[ !"#$%&'()\[\]{|}<>*+,./;=?@^`~\\]/;
|
|
6206
6206
|
function en(e = "") {
|
|
6207
|
-
return CSS ? CSS.escape(e) :
|
|
6207
|
+
return CSS ? CSS.escape(e) : Rd(e);
|
|
6208
6208
|
}
|
|
6209
|
-
function
|
|
6210
|
-
return e.split("").map((t) => t === ":" ? `\\${
|
|
6209
|
+
function Rd(e = "") {
|
|
6210
|
+
return e.split("").map((t) => t === ":" ? `\\${Id} ` : Dd.test(t) ? `\\${t}` : escape(t).replace(/%/g, "\\")).join("");
|
|
6211
6211
|
}
|
|
6212
|
-
const
|
|
6212
|
+
const Ld = {
|
|
6213
6213
|
tag: Rl,
|
|
6214
|
-
id:
|
|
6215
|
-
class:
|
|
6216
|
-
attribute:
|
|
6217
|
-
nthchild:
|
|
6218
|
-
nthoftype:
|
|
6214
|
+
id: Cd,
|
|
6215
|
+
class: xd,
|
|
6216
|
+
attribute: Sd,
|
|
6217
|
+
nthchild: Ad,
|
|
6218
|
+
nthoftype: Od
|
|
6219
6219
|
}, Nd = {
|
|
6220
6220
|
tag: Dl,
|
|
6221
6221
|
id: kl,
|
|
6222
6222
|
class: Pl,
|
|
6223
6223
|
attribute: Ml,
|
|
6224
6224
|
nthchild: Il,
|
|
6225
|
-
nthoftype:
|
|
6225
|
+
nthoftype: Ll
|
|
6226
6226
|
};
|
|
6227
|
-
function
|
|
6227
|
+
function Fd(e, t, n) {
|
|
6228
6228
|
return Nd[t](e, n);
|
|
6229
6229
|
}
|
|
6230
|
-
function
|
|
6231
|
-
const o =
|
|
6230
|
+
function Bd(e, t, n) {
|
|
6231
|
+
const o = Ld[t];
|
|
6232
6232
|
return o(e, n);
|
|
6233
6233
|
}
|
|
6234
|
-
function
|
|
6234
|
+
function $d(e = [], t, n) {
|
|
6235
6235
|
return e.filter((o) => n(o) || !t(o));
|
|
6236
6236
|
}
|
|
6237
|
-
function
|
|
6237
|
+
function jd(e = [], t) {
|
|
6238
6238
|
return e.sort((n, o) => {
|
|
6239
6239
|
const s = t(n), i = t(o);
|
|
6240
6240
|
return s && !i ? -1 : !s && i ? 1 : 0;
|
|
6241
6241
|
});
|
|
6242
6242
|
}
|
|
6243
|
-
function*
|
|
6244
|
-
const n = /* @__PURE__ */ new Set(), o =
|
|
6245
|
-
for (const s of
|
|
6243
|
+
function* Wd(e, t) {
|
|
6244
|
+
const n = /* @__PURE__ */ new Set(), o = Hd(e, t);
|
|
6245
|
+
for (const s of Kd(o, t))
|
|
6246
6246
|
n.has(s) || (n.add(s), yield s);
|
|
6247
6247
|
}
|
|
6248
|
-
function
|
|
6248
|
+
function Hd(e, t) {
|
|
6249
6249
|
const { blacklist: n, whitelist: o, combineWithinSelector: s, maxCombinations: i } = t, l = Jn(n), r = Jn(o), a = (u, c) => {
|
|
6250
|
-
const f =
|
|
6251
|
-
return u[c] = s ? Array.from(
|
|
6250
|
+
const f = Bd(e, c, t), p = $d(f, l, r), g = jd(p, r);
|
|
6251
|
+
return u[c] = s ? Array.from(Nl(g, { maxResults: i })) : g.map((b) => [b]), u;
|
|
6252
6252
|
};
|
|
6253
|
-
return
|
|
6253
|
+
return Vd(t).reduce(a, {});
|
|
6254
6254
|
}
|
|
6255
|
-
function
|
|
6255
|
+
function Vd(e) {
|
|
6256
6256
|
const { selectors: t, includeTag: n } = e, o = [...t];
|
|
6257
6257
|
return n && !o.includes("tag") && o.push("tag"), o;
|
|
6258
6258
|
}
|
|
6259
|
-
function
|
|
6259
|
+
function zd(e) {
|
|
6260
6260
|
return e.includes(ge.tag) || e.includes(ge.nthoftype) ? [...e] : [...e, ge.tag];
|
|
6261
6261
|
}
|
|
6262
|
-
function
|
|
6263
|
-
const { selectors: t, combineBetweenSelectors: n, includeTag: o, maxCandidates: s } = e, i = n ?
|
|
6264
|
-
return o ? i.map(
|
|
6262
|
+
function qd(e) {
|
|
6263
|
+
const { selectors: t, combineBetweenSelectors: n, includeTag: o, maxCandidates: s } = e, i = n ? Md(t, { maxResults: s }) : t.map((l) => [l]);
|
|
6264
|
+
return o ? i.map(zd) : i;
|
|
6265
6265
|
}
|
|
6266
|
-
function*
|
|
6267
|
-
for (const n of
|
|
6266
|
+
function* Kd(e, t) {
|
|
6267
|
+
for (const n of qd(t))
|
|
6268
6268
|
yield* Ud(n, e);
|
|
6269
6269
|
}
|
|
6270
6270
|
function* Ud(e, t) {
|
|
@@ -6273,53 +6273,53 @@ function* Ud(e, t) {
|
|
|
6273
6273
|
const s = t[o];
|
|
6274
6274
|
s && s.length > 0 && (n[o] = s);
|
|
6275
6275
|
}
|
|
6276
|
-
for (const o of
|
|
6277
|
-
yield
|
|
6276
|
+
for (const o of kd(n))
|
|
6277
|
+
yield Gd(o);
|
|
6278
6278
|
}
|
|
6279
|
-
function
|
|
6279
|
+
function Yd(e, t) {
|
|
6280
6280
|
return t[e] ? t[e].join("") : "";
|
|
6281
6281
|
}
|
|
6282
|
-
function
|
|
6282
|
+
function Gd(e = {}) {
|
|
6283
6283
|
const t = [...Ol];
|
|
6284
|
-
return e[ge.tag] && e[ge.nthoftype] && t.splice(t.indexOf(ge.tag), 1), t.map((n) =>
|
|
6284
|
+
return e[ge.tag] && e[ge.nthoftype] && t.splice(t.indexOf(ge.tag), 1), t.map((n) => Yd(n, e)).join("");
|
|
6285
6285
|
}
|
|
6286
|
-
function
|
|
6286
|
+
function Xd(e, t) {
|
|
6287
6287
|
return [
|
|
6288
6288
|
...e.map((n) => t + An.DESCENDANT + n),
|
|
6289
6289
|
...e.map((n) => t + An.CHILD + n)
|
|
6290
6290
|
];
|
|
6291
6291
|
}
|
|
6292
|
-
function*
|
|
6292
|
+
function* Jd(e, t) {
|
|
6293
6293
|
if (t === "")
|
|
6294
6294
|
yield* e;
|
|
6295
6295
|
else
|
|
6296
6296
|
for (const n of e)
|
|
6297
|
-
yield*
|
|
6297
|
+
yield* Xd([n], t);
|
|
6298
6298
|
}
|
|
6299
|
-
function*
|
|
6300
|
-
const s =
|
|
6301
|
-
for (const i of
|
|
6299
|
+
function* Zd(e, t, n = "", o) {
|
|
6300
|
+
const s = Wd(e, o);
|
|
6301
|
+
for (const i of Jd(s, n))
|
|
6302
6302
|
is(e, i, t) && (yield i);
|
|
6303
6303
|
}
|
|
6304
|
-
function*
|
|
6304
|
+
function* Qd(e, t, n = "", o) {
|
|
6305
6305
|
if (e.length === 0)
|
|
6306
6306
|
return null;
|
|
6307
6307
|
const s = [
|
|
6308
6308
|
e.length > 1 ? e : [],
|
|
6309
|
-
...
|
|
6309
|
+
...hd(e, t).map((i) => [i])
|
|
6310
6310
|
];
|
|
6311
6311
|
for (const i of s)
|
|
6312
|
-
for (const l of
|
|
6312
|
+
for (const l of Zd(i, t, n, o))
|
|
6313
6313
|
yield {
|
|
6314
6314
|
foundElements: i,
|
|
6315
6315
|
selector: l
|
|
6316
6316
|
};
|
|
6317
6317
|
}
|
|
6318
|
-
function*
|
|
6318
|
+
function* ef({ elements: e, root: t, rootSelector: n = "", options: o }) {
|
|
6319
6319
|
let s = t, i = n, l = !0;
|
|
6320
6320
|
for (; l; ) {
|
|
6321
6321
|
let r = !1;
|
|
6322
|
-
for (const a of
|
|
6322
|
+
for (const a of Qd(e, s, i, o)) {
|
|
6323
6323
|
const { foundElements: u, selector: c } = a;
|
|
6324
6324
|
if (r = !0, is(e, c, t))
|
|
6325
6325
|
yield c;
|
|
@@ -6331,28 +6331,28 @@ function* Qd({ elements: e, root: t, rootSelector: n = "", options: o }) {
|
|
|
6331
6331
|
r || (l = !1);
|
|
6332
6332
|
}
|
|
6333
6333
|
}
|
|
6334
|
-
function
|
|
6334
|
+
function tf(e) {
|
|
6335
6335
|
(e instanceof NodeList || e instanceof HTMLCollection) && (e = Array.from(e));
|
|
6336
6336
|
const t = (Array.isArray(e) ? e : [e]).filter(El);
|
|
6337
6337
|
return [...new Set(t)];
|
|
6338
6338
|
}
|
|
6339
|
-
function
|
|
6339
|
+
function nf(e) {
|
|
6340
6340
|
return {
|
|
6341
6341
|
value: e,
|
|
6342
6342
|
include: !1
|
|
6343
6343
|
};
|
|
6344
6344
|
}
|
|
6345
|
-
function
|
|
6345
|
+
function of(e, t, n = An.NONE) {
|
|
6346
6346
|
const o = {};
|
|
6347
6347
|
return t.forEach((s) => {
|
|
6348
|
-
Reflect.set(o, s,
|
|
6348
|
+
Reflect.set(o, s, Fd(e, s).map(nf));
|
|
6349
6349
|
}), {
|
|
6350
6350
|
element: e,
|
|
6351
6351
|
operator: n,
|
|
6352
6352
|
selectors: o
|
|
6353
6353
|
};
|
|
6354
6354
|
}
|
|
6355
|
-
function
|
|
6355
|
+
function sf({ selectors: e, operator: t }) {
|
|
6356
6356
|
let n = [...Ol];
|
|
6357
6357
|
e[ge.tag] && e[ge.nthoftype] && (n = n.filter((s) => s !== ge.tag));
|
|
6358
6358
|
let o = "";
|
|
@@ -6363,10 +6363,10 @@ function of({ selectors: e, operator: t }) {
|
|
|
6363
6363
|
});
|
|
6364
6364
|
}), t + o;
|
|
6365
6365
|
}
|
|
6366
|
-
function
|
|
6366
|
+
function lf(e, t) {
|
|
6367
6367
|
const n = Cl(e, t).reverse(), o = t instanceof ShadowRoot, s = n.map((l, r) => {
|
|
6368
6368
|
var a;
|
|
6369
|
-
const u =
|
|
6369
|
+
const u = of(
|
|
6370
6370
|
l,
|
|
6371
6371
|
[ge.nthchild],
|
|
6372
6372
|
// do not use child combinator for the first element in ShadowRoot
|
|
@@ -6376,20 +6376,20 @@ function sf(e, t) {
|
|
|
6376
6376
|
c.include = !0;
|
|
6377
6377
|
}), u;
|
|
6378
6378
|
});
|
|
6379
|
-
return [o ? "" : t ? ":scope" : ":root", ...s.map(
|
|
6379
|
+
return [o ? "" : t ? ":scope" : ":root", ...s.map(sf)].join("");
|
|
6380
6380
|
}
|
|
6381
|
-
function
|
|
6382
|
-
return e.map((n) =>
|
|
6381
|
+
function rf(e, t) {
|
|
6382
|
+
return e.map((n) => lf(n, t)).join(Al);
|
|
6383
6383
|
}
|
|
6384
6384
|
function Fl(e, t = {}) {
|
|
6385
6385
|
const n = Object.assign(Object.assign({}, t), { maxResults: 1 });
|
|
6386
|
-
return
|
|
6386
|
+
return af(e, n).next().value;
|
|
6387
6387
|
}
|
|
6388
|
-
function*
|
|
6388
|
+
function* af(e, t = {}) {
|
|
6389
6389
|
var n;
|
|
6390
|
-
const o =
|
|
6390
|
+
const o = tf(e), s = ud(o[0], t), i = (n = s.root) !== null && n !== void 0 ? n : ls(o[0]);
|
|
6391
6391
|
let l = 0;
|
|
6392
|
-
for (const a of
|
|
6392
|
+
for (const a of ef({
|
|
6393
6393
|
elements: o,
|
|
6394
6394
|
options: s,
|
|
6395
6395
|
root: i,
|
|
@@ -6400,17 +6400,17 @@ function* rf(e, t = {}) {
|
|
|
6400
6400
|
if (o.length > 1 && (yield o.map((a) => Fl(a, s)).join(Al), l++, l >= s.maxResults))
|
|
6401
6401
|
return;
|
|
6402
6402
|
const r = t.root !== void 0;
|
|
6403
|
-
yield
|
|
6403
|
+
yield rf(o, s.useScope || r ? i : void 0);
|
|
6404
6404
|
}
|
|
6405
|
-
const
|
|
6405
|
+
const cf = [
|
|
6406
6406
|
"#vue-inspector-container",
|
|
6407
6407
|
".opencode-widget",
|
|
6408
6408
|
".opencode-element-highlight",
|
|
6409
6409
|
".opencode-element-tooltip",
|
|
6410
6410
|
".opencode-select-mode-hint",
|
|
6411
6411
|
".floating-bubble"
|
|
6412
|
-
],
|
|
6413
|
-
function
|
|
6412
|
+
], uf = "data-v-inspector-ignore", xo = "__v_inspector", df = "data-v-inspector";
|
|
6413
|
+
function ff(e) {
|
|
6414
6414
|
let t = "";
|
|
6415
6415
|
for (let n = 0; n < e.childNodes.length; n++) {
|
|
6416
6416
|
const o = e.childNodes[n];
|
|
@@ -6418,10 +6418,10 @@ function df(e) {
|
|
|
6418
6418
|
}
|
|
6419
6419
|
return t.trim();
|
|
6420
6420
|
}
|
|
6421
|
-
const
|
|
6422
|
-
function
|
|
6421
|
+
const hf = /^(?:el-|:r[0-9]+:|radix-|uid-|ts-|uuid-|id-[a-f0-9]{4,}|.*[0-9]{4,}.*|.*-[a-f0-9]{6,}$)/i, pf = /^(?:hover|active|focus|focus-visible|focus-within|disabled|enabled|checked|selected|open|closed|loading|error|success|warning|hidden|visible|show|hide|current|expanded|collapsed|pressed|dragging|droppable|sortable|placeholder|transition|enter|leave|appear|move)$/i, gf = /^(?:is-|has-|was-|are-|can-|should-|will-|did-|does-|on-|off-|in-|out-|at-|to-|from-)/i;
|
|
6422
|
+
function mf(e) {
|
|
6423
6423
|
if (!e) return !1;
|
|
6424
|
-
if (
|
|
6424
|
+
if (hf.test(e))
|
|
6425
6425
|
return !0;
|
|
6426
6426
|
const t = (e.match(/\d/g) || []).length, n = (e.match(/[a-zA-Z]/g) || []).length;
|
|
6427
6427
|
if (t > n && t >= 3)
|
|
@@ -6434,8 +6434,8 @@ function gf(e) {
|
|
|
6434
6434
|
}
|
|
6435
6435
|
return !1;
|
|
6436
6436
|
}
|
|
6437
|
-
function
|
|
6438
|
-
return e ? !!(
|
|
6437
|
+
function vf(e) {
|
|
6438
|
+
return e ? !!(pf.test(e) || gf.test(e) || e.includes("-active") || e.includes("-hover") || e.includes("-focus") || /^(?:router-link|nuxt-link)/.test(e)) : !1;
|
|
6439
6439
|
}
|
|
6440
6440
|
function Js(e) {
|
|
6441
6441
|
return Fl(e, {
|
|
@@ -6448,14 +6448,14 @@ function Js(e) {
|
|
|
6448
6448
|
(t) => {
|
|
6449
6449
|
const n = t.match(/^#(.+)$/);
|
|
6450
6450
|
if (n)
|
|
6451
|
-
return
|
|
6451
|
+
return mf(n[1]);
|
|
6452
6452
|
const o = t.match(/^\.([a-zA-Z_-][\w-]*)$/);
|
|
6453
|
-
return o ?
|
|
6453
|
+
return o ? vf(o[1]) : !1;
|
|
6454
6454
|
}
|
|
6455
6455
|
]
|
|
6456
6456
|
});
|
|
6457
6457
|
}
|
|
6458
|
-
function
|
|
6458
|
+
function _f(e) {
|
|
6459
6459
|
var t, n, o, s;
|
|
6460
6460
|
const i = e.__vueParentComponent;
|
|
6461
6461
|
if (i) {
|
|
@@ -6479,9 +6479,9 @@ function vf(e) {
|
|
|
6479
6479
|
}
|
|
6480
6480
|
return null;
|
|
6481
6481
|
}
|
|
6482
|
-
function
|
|
6483
|
-
if (e.hasAttribute(
|
|
6484
|
-
for (const t of
|
|
6482
|
+
function Bl(e) {
|
|
6483
|
+
if (e.hasAttribute(uf)) return !0;
|
|
6484
|
+
for (const t of cf)
|
|
6485
6485
|
if (e.closest(t)) return !0;
|
|
6486
6486
|
return !1;
|
|
6487
6487
|
}
|
|
@@ -6503,12 +6503,16 @@ function yf(e) {
|
|
|
6503
6503
|
}
|
|
6504
6504
|
f = f.parent;
|
|
6505
6505
|
}
|
|
6506
|
-
const p = e.getAttribute(
|
|
6506
|
+
const p = e.getAttribute(df);
|
|
6507
6507
|
return p ?? void 0;
|
|
6508
6508
|
}
|
|
6509
6509
|
function bf(e) {
|
|
6510
6510
|
let t = e;
|
|
6511
6511
|
for (; t; ) {
|
|
6512
|
+
if (Bl(t)) {
|
|
6513
|
+
t = t.parentElement;
|
|
6514
|
+
continue;
|
|
6515
|
+
}
|
|
6512
6516
|
const n = yf(t);
|
|
6513
6517
|
if (n) {
|
|
6514
6518
|
const o = /(.+):([\d]+):([\d]+)$/, s = n.match(o);
|
|
@@ -6532,31 +6536,21 @@ function Sf(e, t) {
|
|
|
6532
6536
|
function Zs(e) {
|
|
6533
6537
|
if (!e.target || !(e.target instanceof Element)) return null;
|
|
6534
6538
|
const t = e.target;
|
|
6535
|
-
return
|
|
6539
|
+
return Bl(t) ? null : t;
|
|
6536
6540
|
}
|
|
6537
6541
|
function Qs(e, t) {
|
|
6538
|
-
|
|
6539
|
-
|
|
6540
|
-
|
|
6541
|
-
|
|
6542
|
-
const { targetNode: r, params: a } = s.getTargetNode(e);
|
|
6543
|
-
r && a && a.file && (i = {
|
|
6544
|
-
file: a.file,
|
|
6545
|
-
line: (n = a.line) != null ? n : null,
|
|
6546
|
-
column: (o = a.column) != null ? o : null
|
|
6547
|
-
});
|
|
6548
|
-
}
|
|
6549
|
-
t && !i && (i = bf(t));
|
|
6550
|
-
const l = t ? vf(t) : null;
|
|
6551
|
-
return Sf(i, l);
|
|
6542
|
+
let n = null;
|
|
6543
|
+
t && (n = bf(t));
|
|
6544
|
+
const o = t ? _f(t) : null;
|
|
6545
|
+
return Sf(n, o);
|
|
6552
6546
|
}
|
|
6553
6547
|
function wf(e) {
|
|
6554
|
-
const t = /* @__PURE__ */
|
|
6548
|
+
const t = /* @__PURE__ */ N(!1), n = /* @__PURE__ */ N({
|
|
6555
6549
|
top: "0px",
|
|
6556
6550
|
left: "0px",
|
|
6557
6551
|
width: "0px",
|
|
6558
6552
|
height: "0px"
|
|
6559
|
-
}), o = /* @__PURE__ */
|
|
6553
|
+
}), o = /* @__PURE__ */ N(!1), s = /* @__PURE__ */ N({ top: "0px", left: "0px" }), i = /* @__PURE__ */ N({ description: "", fileInfo: "" }), l = 500;
|
|
6560
6554
|
let r = null, a = "#3b82f6", u = "rgba(59, 130, 246, 0.1)";
|
|
6561
6555
|
function c(x) {
|
|
6562
6556
|
x.forEach((R) => {
|
|
@@ -6572,14 +6566,14 @@ function wf(e) {
|
|
|
6572
6566
|
if (!e.selectMode.value) return;
|
|
6573
6567
|
const R = document.querySelector(".opencode-element-highlight"), M = document.querySelector(".opencode-element-tooltip"), $ = document.querySelector(".opencode-select-mode-hint"), y = document.querySelector(".floating-bubble"), j = [R, M, $, y];
|
|
6574
6568
|
c(j);
|
|
6575
|
-
const
|
|
6576
|
-
if (f(j),
|
|
6569
|
+
const L = Zs(x), B = Qs(x, L);
|
|
6570
|
+
if (f(j), L) {
|
|
6577
6571
|
const q = document.querySelector(".opencode-widget");
|
|
6578
6572
|
if (q) {
|
|
6579
6573
|
const pt = getComputedStyle(q);
|
|
6580
6574
|
a = pt.getPropertyValue("--oc-primary").trim() || a, u = pt.getPropertyValue("--oc-primary-bg").trim() || u;
|
|
6581
6575
|
}
|
|
6582
|
-
const Z = Js(
|
|
6576
|
+
const Z = Js(L), Q = B.file ? B.file.split("/").pop() : "";
|
|
6583
6577
|
let me = "";
|
|
6584
6578
|
B.line && (me = `:${B.line}`, B.column && (me += `:${B.column}`));
|
|
6585
6579
|
const Ae = Q ? `${Q}${me}` : "";
|
|
@@ -6587,7 +6581,7 @@ function wf(e) {
|
|
|
6587
6581
|
description: Z,
|
|
6588
6582
|
fileInfo: Ae
|
|
6589
6583
|
};
|
|
6590
|
-
const I =
|
|
6584
|
+
const I = L.getBoundingClientRect(), Y = `${I.top}px`, oe = `${I.left}px`, X = `${I.width}px`, Oe = `${I.height}px`;
|
|
6591
6585
|
(n.value.top !== Y || n.value.left !== oe || n.value.width !== X || n.value.height !== Oe) && (n.value = {
|
|
6592
6586
|
top: Y,
|
|
6593
6587
|
left: oe,
|
|
@@ -6620,11 +6614,11 @@ function wf(e) {
|
|
|
6620
6614
|
M.preventDefault(), M.stopPropagation();
|
|
6621
6615
|
const y = Zs(M), j = Qs(M, y);
|
|
6622
6616
|
if (y) {
|
|
6623
|
-
const
|
|
6617
|
+
const L = ff(y), B = Js(y), q = {
|
|
6624
6618
|
filePath: j.file,
|
|
6625
6619
|
line: j.line,
|
|
6626
6620
|
column: j.column,
|
|
6627
|
-
innerText: fl(
|
|
6621
|
+
innerText: fl(L, 200),
|
|
6628
6622
|
description: B
|
|
6629
6623
|
};
|
|
6630
6624
|
e.onAddSelectedNode(q);
|
|
@@ -6640,7 +6634,7 @@ function wf(e) {
|
|
|
6640
6634
|
return Ce(e.selectMode, (x) => {
|
|
6641
6635
|
const R = window.__VUE_INSPECTOR__;
|
|
6642
6636
|
x ? (R && R.enable(), document.addEventListener("mousemove", g), document.addEventListener("keydown", m, !0)) : (R && R.disable(), document.removeEventListener("mousemove", g), document.removeEventListener("keydown", m, !0), t.value = !1, o.value = !1);
|
|
6643
|
-
}),
|
|
6637
|
+
}), Ue(() => {
|
|
6644
6638
|
window.__VUE_INSPECTOR__ ? b() : r = window.setInterval(() => {
|
|
6645
6639
|
window.__VUE_INSPECTOR__ && (b(), r && (window.clearInterval(r), r = null));
|
|
6646
6640
|
}, l);
|
|
@@ -6654,11 +6648,11 @@ function wf(e) {
|
|
|
6654
6648
|
tooltipContent: i
|
|
6655
6649
|
};
|
|
6656
6650
|
}
|
|
6657
|
-
const
|
|
6651
|
+
const $l = "opencode-widget-state";
|
|
6658
6652
|
function Ef() {
|
|
6659
6653
|
if (typeof window > "u") return null;
|
|
6660
6654
|
try {
|
|
6661
|
-
const e = localStorage.getItem(
|
|
6655
|
+
const e = localStorage.getItem($l);
|
|
6662
6656
|
if (e)
|
|
6663
6657
|
return JSON.parse(e);
|
|
6664
6658
|
} catch (e) {
|
|
@@ -6669,7 +6663,7 @@ function Ef() {
|
|
|
6669
6663
|
function Tf(e) {
|
|
6670
6664
|
if (!(typeof window > "u"))
|
|
6671
6665
|
try {
|
|
6672
|
-
localStorage.setItem(
|
|
6666
|
+
localStorage.setItem($l, JSON.stringify(e));
|
|
6673
6667
|
} catch (t) {
|
|
6674
6668
|
console.warn("[OpenCodeWidget] Failed to save state:", t);
|
|
6675
6669
|
}
|
|
@@ -6701,7 +6695,7 @@ function xf(e) {
|
|
|
6701
6695
|
e.theme,
|
|
6702
6696
|
e.sessionListCollapsed
|
|
6703
6697
|
];
|
|
6704
|
-
return e.splitPanelWidth && s.push(e.splitPanelWidth), e.displayMode && s.push(e.displayMode), e.splitPosition && s.push(e.splitPosition),
|
|
6698
|
+
return e.splitPanelWidth && s.push(e.splitPanelWidth), e.displayMode && s.push(e.displayMode), e.splitPosition && s.push(e.splitPosition), Ue(() => {
|
|
6705
6699
|
t(), Ce(
|
|
6706
6700
|
s,
|
|
6707
6701
|
() => {
|
|
@@ -6717,19 +6711,19 @@ function xf(e) {
|
|
|
6717
6711
|
const Cf = 1440;
|
|
6718
6712
|
function Af(e) {
|
|
6719
6713
|
var t, n;
|
|
6720
|
-
const o = /* @__PURE__ */
|
|
6714
|
+
const o = /* @__PURE__ */ N(typeof window < "u" ? window.innerWidth : 0), s = /* @__PURE__ */ N((n = (t = e.splitPosition) == null ? void 0 : t.value) != null ? n : "right"), i = U(() => {
|
|
6721
6715
|
var m, x, R, M, $, y, j;
|
|
6722
|
-
const
|
|
6716
|
+
const L = e.splitMode.value || {};
|
|
6723
6717
|
return {
|
|
6724
|
-
width: (m =
|
|
6725
|
-
minWidth: (x =
|
|
6726
|
-
maxWidth: (R =
|
|
6727
|
-
resizable: (M =
|
|
6728
|
-
shrinkPage: ($ =
|
|
6729
|
-
defaultOpen: (y =
|
|
6730
|
-
position: (j =
|
|
6718
|
+
width: (m = L.width) != null ? m : 500,
|
|
6719
|
+
minWidth: (x = L.minWidth) != null ? x : 400,
|
|
6720
|
+
maxWidth: (R = L.maxWidth) != null ? R : 800,
|
|
6721
|
+
resizable: (M = L.resizable) != null ? M : !0,
|
|
6722
|
+
shrinkPage: ($ = L.shrinkPage) != null ? $ : !0,
|
|
6723
|
+
defaultOpen: (y = L.defaultOpen) != null ? y : !0,
|
|
6724
|
+
position: (j = L.position) != null ? j : s.value
|
|
6731
6725
|
};
|
|
6732
|
-
}), l = /* @__PURE__ */
|
|
6726
|
+
}), l = /* @__PURE__ */ N(i.value.width), r = U(() => e.displayMode.value === "bubble" ? "bubble" : e.displayMode.value === "split" || o.value >= Cf ? "split" : "bubble"), a = U(() => r.value === "split"), u = U(() => i.value.position), c = (m) => {
|
|
6733
6727
|
var x;
|
|
6734
6728
|
l.value = m, (x = e.onWidthChange) == null || x.call(e, m);
|
|
6735
6729
|
}, f = () => {
|
|
@@ -6756,7 +6750,7 @@ function Af(e) {
|
|
|
6756
6750
|
(m) => {
|
|
6757
6751
|
m && m !== s.value && (s.value = m);
|
|
6758
6752
|
}
|
|
6759
|
-
),
|
|
6753
|
+
), Ue(() => {
|
|
6760
6754
|
var m;
|
|
6761
6755
|
typeof window < "u" && (window.addEventListener("resize", g), a.value && i.value.defaultOpen && !e.open.value && ((m = e.onOpenChange) == null || m.call(e, !0)));
|
|
6762
6756
|
}), ot(() => {
|
|
@@ -6780,7 +6774,7 @@ var Of = Object.defineProperty, Mf = Object.defineProperties, Pf = Object.getOwn
|
|
|
6780
6774
|
If.call(t, n) && ti(e, n, t[n]);
|
|
6781
6775
|
return e;
|
|
6782
6776
|
}, Rf = (e, t) => Mf(e, Pf(t));
|
|
6783
|
-
const
|
|
6777
|
+
const jl = /* @__PURE__ */ qe(Rf(Df({}, {
|
|
6784
6778
|
name: "OpencodeWidget"
|
|
6785
6779
|
}), {
|
|
6786
6780
|
__name: "index",
|
|
@@ -6819,14 +6813,14 @@ const $l = /* @__PURE__ */ qe(Rf(Df({}, {
|
|
|
6819
6813
|
"-chatAnimationOrigin.x": uo.value.x,
|
|
6820
6814
|
"-chatAnimationOrigin.y": uo.value.y
|
|
6821
6815
|
}));
|
|
6822
|
-
const i = e, l = n, r = Wi(), a = /* @__PURE__ */
|
|
6816
|
+
const i = e, l = n, r = Wi(), a = /* @__PURE__ */ N(""), u = /* @__PURE__ */ N(!1), c = /* @__PURE__ */ N("widget");
|
|
6823
6817
|
let f = null;
|
|
6824
6818
|
const p = (T, Me) => {
|
|
6825
6819
|
const { duration: je = 3e3, mode: gt = "widget" } = Me || {};
|
|
6826
6820
|
a.value = T, u.value = !0, c.value = gt, f && clearTimeout(f), f = setTimeout(() => {
|
|
6827
6821
|
u.value = !1;
|
|
6828
6822
|
}, je);
|
|
6829
|
-
}, g = /* @__PURE__ */
|
|
6823
|
+
}, g = /* @__PURE__ */ N(!1), b = /* @__PURE__ */ N("");
|
|
6830
6824
|
let m = null;
|
|
6831
6825
|
const x = (T) => (b.value = T, g.value = !0, new Promise((Me) => {
|
|
6832
6826
|
m = Me;
|
|
@@ -6834,12 +6828,12 @@ const $l = /* @__PURE__ */ qe(Rf(Df({}, {
|
|
|
6834
6828
|
g.value = !1, m && m(!0);
|
|
6835
6829
|
}, M = () => {
|
|
6836
6830
|
g.value = !1, m && m(!1);
|
|
6837
|
-
}, $ = /* @__PURE__ */
|
|
6831
|
+
}, $ = /* @__PURE__ */ N(null), y = /* @__PURE__ */ N(null), j = (T, Me) => {
|
|
6838
6832
|
var je;
|
|
6839
6833
|
(je = $.value) == null || je.sendMessageToIframe(T, Me);
|
|
6840
|
-
},
|
|
6834
|
+
}, L = /* @__PURE__ */ N(i.sessionListCollapsed), B = /* @__PURE__ */ N(i.displayMode), q = /* @__PURE__ */ N(
|
|
6841
6835
|
(s = (o = i.splitMode) == null ? void 0 : o.position) != null ? s : "right"
|
|
6842
|
-
), Z = /* @__PURE__ */
|
|
6836
|
+
), Z = /* @__PURE__ */ N(!1), Q = /* @__PURE__ */ N(!0), me = /* @__PURE__ */ N(!0), Ae = /* @__PURE__ */ N(!1), I = /* @__PURE__ */ N(i.splitPanelWidth), Y = () => {
|
|
6843
6837
|
Ae.value && (j("prompt-dock-visibility-change", { visible: Q.value }), j("minimize-state-change", { minimized: Z.value }));
|
|
6844
6838
|
}, oe = () => {
|
|
6845
6839
|
l("frame-loaded"), Ae.value = !0, Y();
|
|
@@ -6847,7 +6841,7 @@ const $l = /* @__PURE__ */ qe(Rf(Df({}, {
|
|
|
6847
6841
|
Ce(
|
|
6848
6842
|
() => i.sessionListCollapsed,
|
|
6849
6843
|
(T) => {
|
|
6850
|
-
|
|
6844
|
+
L.value = T;
|
|
6851
6845
|
}
|
|
6852
6846
|
), Ce(
|
|
6853
6847
|
() => i.splitPanelWidth,
|
|
@@ -6873,13 +6867,13 @@ const $l = /* @__PURE__ */ qe(Rf(Df({}, {
|
|
|
6873
6867
|
handleEmptyAction: st,
|
|
6874
6868
|
handleToggle: ht,
|
|
6875
6869
|
handleToggleSessionList: pt,
|
|
6876
|
-
handleToggleTheme:
|
|
6877
|
-
} =
|
|
6870
|
+
handleToggleTheme: Le
|
|
6871
|
+
} = od({
|
|
6878
6872
|
theme: /* @__PURE__ */ se(i, "theme"),
|
|
6879
6873
|
open: /* @__PURE__ */ se(i, "open"),
|
|
6880
6874
|
selectMode: /* @__PURE__ */ se(i, "selectMode"),
|
|
6881
6875
|
iframeSrc: /* @__PURE__ */ se(i, "iframeSrc"),
|
|
6882
|
-
sessionListCollapsed:
|
|
6876
|
+
sessionListCollapsed: L,
|
|
6883
6877
|
onToggle: (T) => {
|
|
6884
6878
|
l("update:open", T), l("toggle", T);
|
|
6885
6879
|
},
|
|
@@ -6890,7 +6884,7 @@ const $l = /* @__PURE__ */ qe(Rf(Df({}, {
|
|
|
6890
6884
|
l("update:open", !1), l("close");
|
|
6891
6885
|
},
|
|
6892
6886
|
onToggleSessionList: (T) => {
|
|
6893
|
-
|
|
6887
|
+
L.value = T, l("update:sessionListCollapsed", T), l("toggle-session-list", T);
|
|
6894
6888
|
},
|
|
6895
6889
|
onEmptyAction: () => {
|
|
6896
6890
|
l("empty-action");
|
|
@@ -6898,7 +6892,7 @@ const $l = /* @__PURE__ */ qe(Rf(Df({}, {
|
|
|
6898
6892
|
onToggleTheme: (T) => {
|
|
6899
6893
|
l("update:theme", T), l("toggle-theme", T);
|
|
6900
6894
|
}
|
|
6901
|
-
}), { sessionItems: Ge, handleCreateSession: Xe, handleDeleteSession: kt, handleSelectSession: it } =
|
|
6895
|
+
}), { sessionItems: Ge, handleCreateSession: Xe, handleDeleteSession: kt, handleSelectSession: it } = nd({
|
|
6902
6896
|
sessions: /* @__PURE__ */ se(i, "sessions"),
|
|
6903
6897
|
currentSessionId: /* @__PURE__ */ se(i, "currentSessionId"),
|
|
6904
6898
|
onCreateSession: () => l("create-session"),
|
|
@@ -6915,7 +6909,7 @@ const $l = /* @__PURE__ */ qe(Rf(Df({}, {
|
|
|
6915
6909
|
handleClickSelectedNode: C,
|
|
6916
6910
|
handleRemoveSelectedNode: S,
|
|
6917
6911
|
handleToggleSelectMode: w
|
|
6918
|
-
} =
|
|
6912
|
+
} = Qu({
|
|
6919
6913
|
selectMode: /* @__PURE__ */ se(i, "selectMode"),
|
|
6920
6914
|
selectedElements: /* @__PURE__ */ se(i, "selectedElements"),
|
|
6921
6915
|
onToggleSelectMode: (T) => {
|
|
@@ -6938,9 +6932,9 @@ const $l = /* @__PURE__ */ qe(Rf(Df({}, {
|
|
|
6938
6932
|
onExitSelectMode: () => {
|
|
6939
6933
|
l("update:selectMode", !1), l("toggle-select-mode", !1);
|
|
6940
6934
|
}
|
|
6941
|
-
}), k = /* @__PURE__ */
|
|
6935
|
+
}), k = /* @__PURE__ */ N(void 0), {
|
|
6942
6936
|
effectiveMode: H,
|
|
6943
|
-
isSplitMode:
|
|
6937
|
+
isSplitMode: K,
|
|
6944
6938
|
panelWidth: J,
|
|
6945
6939
|
splitConfig: O,
|
|
6946
6940
|
splitPosition: V,
|
|
@@ -6968,7 +6962,7 @@ const $l = /* @__PURE__ */ qe(Rf(Df({}, {
|
|
|
6968
6962
|
promptDockVisible: Q,
|
|
6969
6963
|
bubbleOffset: k,
|
|
6970
6964
|
theme: /* @__PURE__ */ se(i, "theme"),
|
|
6971
|
-
sessionListCollapsed:
|
|
6965
|
+
sessionListCollapsed: L,
|
|
6972
6966
|
splitPanelWidth: I,
|
|
6973
6967
|
displayMode: B,
|
|
6974
6968
|
splitPosition: q,
|
|
@@ -6980,7 +6974,7 @@ const $l = /* @__PURE__ */ qe(Rf(Df({}, {
|
|
|
6980
6974
|
y: Math.max(10, Math.min(T.bubbleOffset.y, It))
|
|
6981
6975
|
};
|
|
6982
6976
|
}
|
|
6983
|
-
T.theme !== void 0 && T.theme !== i.theme && (l("update:theme", T.theme), l("toggle-theme", T.theme)), T.sessionListCollapsed !== void 0 && T.sessionListCollapsed !== i.sessionListCollapsed && (
|
|
6977
|
+
T.theme !== void 0 && T.theme !== i.theme && (l("update:theme", T.theme), l("toggle-theme", T.theme)), T.sessionListCollapsed !== void 0 && T.sessionListCollapsed !== i.sessionListCollapsed && (L.value = T.sessionListCollapsed, l("update:sessionListCollapsed", T.sessionListCollapsed)), T.promptDockVisible !== void 0 ? Q.value = T.promptDockVisible : Z.value && (Q.value = !1), T.splitPanelWidth !== void 0 && T.splitPanelWidth !== i.splitPanelWidth && te(T.splitPanelWidth), T.displayMode !== void 0 && T.displayMode !== i.displayMode && (B.value = T.displayMode), T.splitPosition !== void 0 && (q.value = T.splitPosition), Uo(() => {
|
|
6984
6978
|
Y(), setTimeout(() => {
|
|
6985
6979
|
me.value = !1;
|
|
6986
6980
|
}, 50);
|
|
@@ -6991,45 +6985,45 @@ const $l = /* @__PURE__ */ qe(Rf(Df({}, {
|
|
|
6991
6985
|
Z.value = !Z.value, Q.value = !Z.value, j("prompt-dock-visibility-change", { visible: Q.value }), j("minimize-state-change", { minimized: Z.value });
|
|
6992
6986
|
}, xt = () => {
|
|
6993
6987
|
Q.value = !Q.value, j("prompt-dock-visibility-change", { visible: Q.value });
|
|
6994
|
-
}, Je = /* @__PURE__ */
|
|
6988
|
+
}, Je = /* @__PURE__ */ N(typeof window < "u" ? window.innerWidth : 0), he = /* @__PURE__ */ N(typeof window < "u" ? window.innerHeight : 0), Ne = () => {
|
|
6995
6989
|
typeof window < "u" && (Je.value = window.innerWidth, he.value = window.innerHeight);
|
|
6996
6990
|
};
|
|
6997
|
-
|
|
6998
|
-
typeof window < "u" && window.addEventListener("resize",
|
|
6991
|
+
Ue(() => {
|
|
6992
|
+
typeof window < "u" && window.addEventListener("resize", Ne);
|
|
6999
6993
|
}), ot(() => {
|
|
7000
|
-
typeof window < "u" && window.removeEventListener("resize",
|
|
6994
|
+
typeof window < "u" && window.removeEventListener("resize", Ne);
|
|
7001
6995
|
});
|
|
7002
|
-
const zt =
|
|
6996
|
+
const zt = U(() => {
|
|
7003
6997
|
var T, Me, je, gt;
|
|
7004
6998
|
if (typeof window > "u") return "bottom-right";
|
|
7005
|
-
const It = Je.value / 2, Ct = he.value / 2, mt = 44,
|
|
6999
|
+
const It = Je.value / 2, Ct = he.value / 2, mt = 44, Ke = (Me = (T = y.value) == null ? void 0 : T.offset) != null ? Me : k.value, Dt = ((je = Ke?.x) != null ? je : Je.value - mt - 24) + mt / 2, lt = ((gt = Ke?.y) != null ? gt : he.value - mt - 24) + mt / 2;
|
|
7006
7000
|
return Dt >= It && lt >= Ct ? "bottom-right" : Dt < It && lt >= Ct ? "bottom-left" : Dt >= It && lt < Ct ? "top-right" : "top-left";
|
|
7007
|
-
}), on =
|
|
7001
|
+
}), on = U(() => {
|
|
7008
7002
|
const T = zt.value;
|
|
7009
7003
|
return T === "top-right" || T === "bottom-right";
|
|
7010
|
-
}),
|
|
7004
|
+
}), Vl = U(() => {
|
|
7011
7005
|
var T, Me, je;
|
|
7012
7006
|
if (typeof window > "u") return {};
|
|
7013
|
-
const gt = Z.value ? 300 : 700, It = Z.value ? 300 : Math.min(he.value * 0.86, he.value - 40), Ct = 24, mt = 44,
|
|
7007
|
+
const gt = Z.value ? 300 : 700, It = Z.value ? 300 : Math.min(he.value * 0.86, he.value - 40), Ct = 24, mt = 44, Ke = 20, Dt = (je = (Me = (T = y.value) == null ? void 0 : T.offset) != null ? Me : k.value) != null ? je : { x: Je.value - mt - Ct, y: he.value - mt - Ct }, lt = {};
|
|
7014
7008
|
if (on.value) {
|
|
7015
7009
|
let Ze = Je.value - Dt.x + Ct;
|
|
7016
|
-
const rn =
|
|
7010
|
+
const rn = Ke, an = Je.value - gt - Ke;
|
|
7017
7011
|
Ze > an && (Ze = an), Ze < rn && (Ze = rn), lt.right = `${Ze}px`, lt.left = "auto";
|
|
7018
7012
|
} else {
|
|
7019
7013
|
let Ze = Dt.x + mt + Ct;
|
|
7020
|
-
const rn =
|
|
7014
|
+
const rn = Ke, an = Je.value - gt - Ke;
|
|
7021
7015
|
Ze > an && (Ze = an), Ze < rn && (Ze = rn), lt.left = `${Ze}px`, lt.right = "auto";
|
|
7022
7016
|
}
|
|
7023
7017
|
let ln = he.value - Dt.y - mt;
|
|
7024
|
-
const cs = he.value - It -
|
|
7025
|
-
return ln > cs && (ln = cs), ln <
|
|
7018
|
+
const cs = he.value - It - Ke;
|
|
7019
|
+
return ln > cs && (ln = cs), ln < Ke && (ln = Ke), lt.bottom = `${ln}px`, lt;
|
|
7026
7020
|
}), rs = (T) => {
|
|
7027
7021
|
k.value = T;
|
|
7028
|
-
}, Vl = () => {
|
|
7029
|
-
sn.value = !0;
|
|
7030
7022
|
}, zl = () => {
|
|
7023
|
+
sn.value = !0;
|
|
7024
|
+
}, ql = () => {
|
|
7031
7025
|
sn.value = !1;
|
|
7032
|
-
}, uo =
|
|
7026
|
+
}, uo = U(() => {
|
|
7033
7027
|
switch (zt.value) {
|
|
7034
7028
|
case "top-left":
|
|
7035
7029
|
return { x: "-20px", y: "-20px" };
|
|
@@ -7041,14 +7035,14 @@ const $l = /* @__PURE__ */ qe(Rf(Df({}, {
|
|
|
7041
7035
|
default:
|
|
7042
7036
|
return { x: "20px", y: "20px" };
|
|
7043
7037
|
}
|
|
7044
|
-
}), sn = /* @__PURE__ */
|
|
7038
|
+
}), sn = /* @__PURE__ */ N(!1);
|
|
7045
7039
|
let In = !1;
|
|
7046
|
-
const
|
|
7040
|
+
const Kl = () => {
|
|
7047
7041
|
sn.value = !0, In = i.open, i.open && l("update:open", !1);
|
|
7048
7042
|
}, Ul = () => {
|
|
7049
7043
|
sn.value = !1, In && l("update:open", !0);
|
|
7050
7044
|
};
|
|
7051
|
-
|
|
7045
|
+
cc({
|
|
7052
7046
|
theme: /* @__PURE__ */ se(i, "theme"),
|
|
7053
7047
|
resolvedTheme: be,
|
|
7054
7048
|
title: /* @__PURE__ */ se(i, "title"),
|
|
@@ -7056,7 +7050,7 @@ const $l = /* @__PURE__ */ qe(Rf(Df({}, {
|
|
|
7056
7050
|
selectShortcutLabel: /* @__PURE__ */ se(i, "selectShortcutLabel"),
|
|
7057
7051
|
selectMode: /* @__PURE__ */ se(i, "selectMode"),
|
|
7058
7052
|
selectEnabled: /* @__PURE__ */ se(i, "selectEnabled"),
|
|
7059
|
-
sessionListCollapsed:
|
|
7053
|
+
sessionListCollapsed: L,
|
|
7060
7054
|
sessionKey: /* @__PURE__ */ se(i, "sessionKey"),
|
|
7061
7055
|
frameLoading: /* @__PURE__ */ se(i, "frameLoading"),
|
|
7062
7056
|
loadingSessionList: /* @__PURE__ */ se(i, "loadingSessionList"),
|
|
@@ -7074,7 +7068,7 @@ const $l = /* @__PURE__ */ qe(Rf(Df({}, {
|
|
|
7074
7068
|
mode: H,
|
|
7075
7069
|
displayMode: B,
|
|
7076
7070
|
splitPosition: V,
|
|
7077
|
-
sessionStates:
|
|
7071
|
+
sessionStates: U(() => {
|
|
7078
7072
|
var T;
|
|
7079
7073
|
return (T = i.sessionStates) != null ? T : {};
|
|
7080
7074
|
}),
|
|
@@ -7090,7 +7084,7 @@ const $l = /* @__PURE__ */ qe(Rf(Df({}, {
|
|
|
7090
7084
|
handleToggleMinimize: $e,
|
|
7091
7085
|
handleTogglePromptDock: xt,
|
|
7092
7086
|
handleToggleSessionList: pt,
|
|
7093
|
-
handleToggleTheme:
|
|
7087
|
+
handleToggleTheme: Le,
|
|
7094
7088
|
handleToggleDisplayMode: X,
|
|
7095
7089
|
handleToggleSplitPosition: Be,
|
|
7096
7090
|
handleEmptyAction: st,
|
|
@@ -7107,7 +7101,7 @@ const $l = /* @__PURE__ */ qe(Rf(Df({}, {
|
|
|
7107
7101
|
showNotification: p,
|
|
7108
7102
|
showConfirmDialog: x,
|
|
7109
7103
|
sendMessageToIframe: j,
|
|
7110
|
-
isSplitMode:
|
|
7104
|
+
isSplitMode: K
|
|
7111
7105
|
});
|
|
7112
7106
|
const as = { props: i, emit: l, slots: r, notificationMessage: a, notificationVisible: u, notificationMode: c, get notificationTimer() {
|
|
7113
7107
|
return f;
|
|
@@ -7117,14 +7111,14 @@ const $l = /* @__PURE__ */ qe(Rf(Df({}, {
|
|
|
7117
7111
|
return m;
|
|
7118
7112
|
}, set dialogResolve(T) {
|
|
7119
7113
|
m = T;
|
|
7120
|
-
}, showConfirmDialog: x, handleDialogConfirm: R, handleDialogCancel: M, frameRef: $, triggerRef: y, sendMessageToIframe: j, localSessionListCollapsed:
|
|
7114
|
+
}, showConfirmDialog: x, handleDialogConfirm: R, handleDialogCancel: M, frameRef: $, triggerRef: y, sendMessageToIframe: j, localSessionListCollapsed: L, localDisplayMode: B, localSplitPosition: q, minimized: Z, promptDockVisible: Q, isRestoring: me, iframeLoaded: Ae, splitPanelWidth: I, syncStateToIframe: Y, handleFrameLoaded: oe, handleToggleDisplayMode: X, buttonActive: Oe, containerClasses: Ie, iframeSource: Ye, sessionListTitle: ye, resolvedTheme: be, handleClose: ve, handleEmptyAction: st, handleToggle: ht, handleToggleSessionList: pt, handleToggleTheme: Le, sessionItems: Ge, handleCreateSession: Xe, handleDeleteSession: kt, handleSelectSession: it, bubbleVisible: nn, hasSelectedElements: d, selectedElementItems: h, handleClearSelectedNodes: _, handleClickSelectedNode: C, handleRemoveSelectedNode: S, handleToggleSelectMode: w, highlightVisible: D, highlightStyle: P, tooltipVisible: A, tooltipStyle: E, tooltipContent: z, bubbleOffset: k, effectiveMode: H, isSplitMode: K, panelWidth: J, splitConfig: O, splitPosition: V, handleResize: te, handleSplitToggle: Se, handleTogglePosition: Be, handleToggleMinimize: $e, handleTogglePromptDock: xt, windowWidth: Je, windowHeight: he, handleWindowResize: Ne, bubbleQuadrant: zt, isBubbleOnRightSide: on, chatPositionStyle: Vl, handleBubbleOffsetChange: rs, handleResizeStart: zl, handleResizeEnd: ql, chatAnimationOrigin: uo, isDragging: sn, get wasOpenBeforeDrag() {
|
|
7121
7115
|
return In;
|
|
7122
7116
|
}, set wasOpenBeforeDrag(T) {
|
|
7123
7117
|
In = T;
|
|
7124
|
-
}, handleDragStart:
|
|
7118
|
+
}, handleDragStart: Kl, handleDragEnd: Ul, ChatPanel: Du, SelectHint: Nu, Trigger: Yu };
|
|
7125
7119
|
return Object.defineProperty(as, "__isScriptSetup", { enumerable: !1, value: !0 }), as;
|
|
7126
7120
|
}
|
|
7127
|
-
})),
|
|
7121
|
+
})), Lf = { class: "opencode-tooltip-tag" }, Nf = { class: "opencode-tooltip-file" }, Ff = {
|
|
7128
7122
|
key: 1,
|
|
7129
7123
|
class: "opencode-dialog-overlay"
|
|
7130
7124
|
}, Bf = {
|
|
@@ -7276,14 +7270,14 @@ function Hf(e, t, n, o, s, i) {
|
|
|
7276
7270
|
[
|
|
7277
7271
|
v(
|
|
7278
7272
|
"div",
|
|
7279
|
-
|
|
7273
|
+
Lf,
|
|
7280
7274
|
_e(o.tooltipContent.description),
|
|
7281
7275
|
1
|
|
7282
7276
|
/* TEXT */
|
|
7283
7277
|
),
|
|
7284
7278
|
v(
|
|
7285
7279
|
"div",
|
|
7286
|
-
|
|
7280
|
+
Nf,
|
|
7287
7281
|
_e(o.tooltipContent.fileInfo),
|
|
7288
7282
|
1
|
|
7289
7283
|
/* TEXT */
|
|
@@ -7331,8 +7325,8 @@ function Hf(e, t, n, o, s, i) {
|
|
|
7331
7325
|
/* CLASS */
|
|
7332
7326
|
);
|
|
7333
7327
|
}
|
|
7334
|
-
|
|
7335
|
-
var Vf =
|
|
7328
|
+
jl.render = Hf;
|
|
7329
|
+
var Vf = jl, zf = Vf;
|
|
7336
7330
|
function qf(e) {
|
|
7337
7331
|
if (!e) return { ctrl: !0, shift: !1, alt: !1, key: "k" };
|
|
7338
7332
|
const t = e.toLowerCase().split("+"), n = t.pop();
|
|
@@ -7343,15 +7337,15 @@ function qf(e) {
|
|
|
7343
7337
|
key: n || "k"
|
|
7344
7338
|
};
|
|
7345
7339
|
}
|
|
7346
|
-
function
|
|
7340
|
+
function Kf(e, t) {
|
|
7347
7341
|
const n = t.ctrl ? e.ctrlKey || e.metaKey : !(e.ctrlKey || e.metaKey), o = t.shift ? e.shiftKey : !e.shiftKey, s = t.alt ? e.altKey : !e.altKey, i = e.key.toLowerCase() === t.key.toLowerCase();
|
|
7348
7342
|
return n && o && s && i;
|
|
7349
7343
|
}
|
|
7350
7344
|
function ni(e, t) {
|
|
7351
7345
|
const n = qf(e), o = (s) => {
|
|
7352
|
-
|
|
7346
|
+
Kf(s, n) && t(s);
|
|
7353
7347
|
};
|
|
7354
|
-
return
|
|
7348
|
+
return Ue(() => {
|
|
7355
7349
|
document.addEventListener("keydown", o);
|
|
7356
7350
|
}), ot(() => {
|
|
7357
7351
|
document.removeEventListener("keydown", o);
|
|
@@ -7359,19 +7353,19 @@ function ni(e, t) {
|
|
|
7359
7353
|
hotkeyConfig: n
|
|
7360
7354
|
};
|
|
7361
7355
|
}
|
|
7362
|
-
const
|
|
7363
|
-
function
|
|
7356
|
+
const Uf = 10, Yf = 1e3;
|
|
7357
|
+
function Wl(e) {
|
|
7364
7358
|
const {
|
|
7365
7359
|
endpoint: t,
|
|
7366
7360
|
autoConnect: n = !0,
|
|
7367
7361
|
enabled: o,
|
|
7368
|
-
maxRetries: s =
|
|
7362
|
+
maxRetries: s = Uf,
|
|
7369
7363
|
retryDelay: i = Yf,
|
|
7370
7364
|
onConnected: l,
|
|
7371
7365
|
onDisconnected: r,
|
|
7372
7366
|
onError: a,
|
|
7373
7367
|
onMessage: u
|
|
7374
|
-
} = e, c = /* @__PURE__ */
|
|
7368
|
+
} = e, c = /* @__PURE__ */ N(null), f = /* @__PURE__ */ N("idle"), p = /* @__PURE__ */ N(0);
|
|
7375
7369
|
function g(M) {
|
|
7376
7370
|
try {
|
|
7377
7371
|
const $ = JSON.parse(M.data);
|
|
@@ -7431,8 +7425,8 @@ function jl(e) {
|
|
|
7431
7425
|
connection: c,
|
|
7432
7426
|
status: f,
|
|
7433
7427
|
retryCount: p,
|
|
7434
|
-
isConnected:
|
|
7435
|
-
isConnecting:
|
|
7428
|
+
isConnected: U(() => f.value === "connected"),
|
|
7429
|
+
isConnecting: U(() => f.value === "connecting"),
|
|
7436
7430
|
// 方法
|
|
7437
7431
|
connect: b,
|
|
7438
7432
|
disconnect: m,
|
|
@@ -7441,7 +7435,7 @@ function jl(e) {
|
|
|
7441
7435
|
};
|
|
7442
7436
|
}
|
|
7443
7437
|
function Gf(e = {}) {
|
|
7444
|
-
const { onStatusSync: t, onTaskUpdate: n, onClearElements: o, onConnected: s } = e, { status: i, isConnected: l, connect: r, disconnect: a } =
|
|
7438
|
+
const { onStatusSync: t, onTaskUpdate: n, onClearElements: o, onConnected: s } = e, { status: i, isConnected: l, connect: r, disconnect: a } = Wl({
|
|
7445
7439
|
endpoint: "/__opencode_events__",
|
|
7446
7440
|
autoConnect: !1,
|
|
7447
7441
|
onMessage: (u) => {
|
|
@@ -7472,7 +7466,7 @@ function Gf(e = {}) {
|
|
|
7472
7466
|
};
|
|
7473
7467
|
}
|
|
7474
7468
|
function Xf(e) {
|
|
7475
|
-
const { proxyBaseUrl: t, enabled: n, onEvent: o, onConnected: s, onError: i } = e, l = `${t}/global/event`, { status: r, isConnected: a, connect: u, disconnect: c } =
|
|
7469
|
+
const { proxyBaseUrl: t, enabled: n, onEvent: o, onConnected: s, onError: i } = e, l = `${t}/global/event`, { status: r, isConnected: a, connect: u, disconnect: c } = Wl({
|
|
7476
7470
|
endpoint: l,
|
|
7477
7471
|
autoConnect: !1,
|
|
7478
7472
|
enabled: n,
|
|
@@ -7493,23 +7487,23 @@ function Xf(e) {
|
|
|
7493
7487
|
};
|
|
7494
7488
|
}
|
|
7495
7489
|
function Jf(e) {
|
|
7496
|
-
const { proxyBaseUrl: t, currentSessionId: n, enabled: o, onConnected: s, onSessionUpdate: i } = e, l = /* @__PURE__ */
|
|
7490
|
+
const { proxyBaseUrl: t, currentSessionId: n, enabled: o, onConnected: s, onSessionUpdate: i } = e, l = /* @__PURE__ */ N({});
|
|
7497
7491
|
function r(y) {
|
|
7498
7492
|
return y?.role === "assistant" && typeof y?.time?.completed != "number";
|
|
7499
7493
|
}
|
|
7500
7494
|
function a(y) {
|
|
7501
|
-
const j = l.value[y],
|
|
7495
|
+
const j = l.value[y], L = j?.hasPending || j?.statusType !== "idle";
|
|
7502
7496
|
l.value[y] = {
|
|
7503
|
-
thinking:
|
|
7497
|
+
thinking: L,
|
|
7504
7498
|
statusType: j?.statusType || "idle",
|
|
7505
7499
|
hasPending: j?.hasPending || !1
|
|
7506
7500
|
};
|
|
7507
7501
|
}
|
|
7508
7502
|
function u(y) {
|
|
7509
|
-
const j = y.type,
|
|
7503
|
+
const j = y.type, L = y.properties;
|
|
7510
7504
|
switch (j) {
|
|
7511
7505
|
case "session.updated": {
|
|
7512
|
-
const B =
|
|
7506
|
+
const B = L.info;
|
|
7513
7507
|
if (!B?.id) return;
|
|
7514
7508
|
i?.({
|
|
7515
7509
|
id: B.id,
|
|
@@ -7520,9 +7514,9 @@ function Jf(e) {
|
|
|
7520
7514
|
break;
|
|
7521
7515
|
}
|
|
7522
7516
|
case "session.status": {
|
|
7523
|
-
const B =
|
|
7517
|
+
const B = L.sessionID;
|
|
7524
7518
|
if (!B) return;
|
|
7525
|
-
const q =
|
|
7519
|
+
const q = L.status?.type || "idle";
|
|
7526
7520
|
l.value[B] = {
|
|
7527
7521
|
thinking: q !== "idle",
|
|
7528
7522
|
statusType: q,
|
|
@@ -7531,7 +7525,7 @@ function Jf(e) {
|
|
|
7531
7525
|
break;
|
|
7532
7526
|
}
|
|
7533
7527
|
case "message.updated": {
|
|
7534
|
-
const B =
|
|
7528
|
+
const B = L.info;
|
|
7535
7529
|
if (!B?.sessionID) return;
|
|
7536
7530
|
const q = B.sessionID;
|
|
7537
7531
|
if (B.role === "assistant") {
|
|
@@ -7548,7 +7542,7 @@ function Jf(e) {
|
|
|
7548
7542
|
break;
|
|
7549
7543
|
}
|
|
7550
7544
|
case "message.part.delta": {
|
|
7551
|
-
const B =
|
|
7545
|
+
const B = L.sessionID;
|
|
7552
7546
|
if (!B) return;
|
|
7553
7547
|
const q = l.value[B];
|
|
7554
7548
|
q?.hasPending || (l.value[B] = {
|
|
@@ -7565,13 +7559,13 @@ function Jf(e) {
|
|
|
7565
7559
|
enabled: o,
|
|
7566
7560
|
onEvent: u,
|
|
7567
7561
|
onConnected: s
|
|
7568
|
-
}), f =
|
|
7562
|
+
}), f = U(() => {
|
|
7569
7563
|
const y = n.value;
|
|
7570
7564
|
return y ? l.value[y]?.thinking ?? !1 : !1;
|
|
7571
|
-
}), p =
|
|
7565
|
+
}), p = U(() => {
|
|
7572
7566
|
const y = n.value;
|
|
7573
7567
|
return y && l.value[y] || null;
|
|
7574
|
-
}), g =
|
|
7568
|
+
}), g = U(() => Object.values(l.value).some((y) => y.thinking)), b = U(() => Object.values(l.value).filter((y) => y.thinking).length);
|
|
7575
7569
|
function m(y) {
|
|
7576
7570
|
delete l.value[y];
|
|
7577
7571
|
}
|
|
@@ -7586,7 +7580,7 @@ function Jf(e) {
|
|
|
7586
7580
|
}
|
|
7587
7581
|
function $(y) {
|
|
7588
7582
|
return y.reduce(
|
|
7589
|
-
(j,
|
|
7583
|
+
(j, L) => (j[L] = M(L), j),
|
|
7590
7584
|
{}
|
|
7591
7585
|
);
|
|
7592
7586
|
}
|
|
@@ -7611,7 +7605,7 @@ function Jf(e) {
|
|
|
7611
7605
|
};
|
|
7612
7606
|
}
|
|
7613
7607
|
function Zf(e) {
|
|
7614
|
-
const { showNotification: t } = e, n = /* @__PURE__ */
|
|
7608
|
+
const { showNotification: t } = e, n = /* @__PURE__ */ N([]), o = /* @__PURE__ */ N(void 0), s = /* @__PURE__ */ N(null), i = /* @__PURE__ */ N(!1), l = U(() => s.value && n.value.find((p) => p.id === s.value)?.url || ""), r = async () => {
|
|
7615
7609
|
o.value = !0;
|
|
7616
7610
|
try {
|
|
7617
7611
|
const g = await (await fetch(wo)).json();
|
|
@@ -7673,7 +7667,7 @@ function Zf(e) {
|
|
|
7673
7667
|
};
|
|
7674
7668
|
}
|
|
7675
7669
|
function Qf(e, t) {
|
|
7676
|
-
const n = /* @__PURE__ */
|
|
7670
|
+
const n = /* @__PURE__ */ N(e), o = U(() => n.value === "auto" ? window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : n.value), s = () => {
|
|
7677
7671
|
t.value?.sendMessageToIframe("OPENCODE_SET_THEME", {
|
|
7678
7672
|
theme: o.value
|
|
7679
7673
|
});
|
|
@@ -7682,7 +7676,7 @@ function Qf(e, t) {
|
|
|
7682
7676
|
const l = () => {
|
|
7683
7677
|
n.value === "auto" && s();
|
|
7684
7678
|
};
|
|
7685
|
-
return
|
|
7679
|
+
return Ue(() => {
|
|
7686
7680
|
i = window.matchMedia("(prefers-color-scheme: dark)"), i.addEventListener("change", l), Ce(o, () => {
|
|
7687
7681
|
s();
|
|
7688
7682
|
});
|
|
@@ -7695,7 +7689,7 @@ function Qf(e, t) {
|
|
|
7695
7689
|
};
|
|
7696
7690
|
}
|
|
7697
7691
|
function eh() {
|
|
7698
|
-
const e = /* @__PURE__ */
|
|
7692
|
+
const e = /* @__PURE__ */ N([]);
|
|
7699
7693
|
try {
|
|
7700
7694
|
const s = sessionStorage.getItem("__opencode_selected_elements__");
|
|
7701
7695
|
s && (e.value = JSON.parse(s));
|
|
@@ -7721,7 +7715,7 @@ function eh() {
|
|
|
7721
7715
|
};
|
|
7722
7716
|
}
|
|
7723
7717
|
function th() {
|
|
7724
|
-
const e = /* @__PURE__ */
|
|
7718
|
+
const e = /* @__PURE__ */ N(""), t = /* @__PURE__ */ N("idle"), n = /* @__PURE__ */ N(!1), o = /* @__PURE__ */ N(void 0), s = /* @__PURE__ */ N(void 0), i = U(() => e.value && ac[e.value] || "加载中...");
|
|
7725
7719
|
return {
|
|
7726
7720
|
currentTask: e,
|
|
7727
7721
|
serviceStatus: t,
|
|
@@ -7757,7 +7751,7 @@ function nh(e, t) {
|
|
|
7757
7751
|
};
|
|
7758
7752
|
let l = null;
|
|
7759
7753
|
const r = history.pushState, a = history.replaceState;
|
|
7760
|
-
return
|
|
7754
|
+
return Ue(() => {
|
|
7761
7755
|
history.pushState = function(...u) {
|
|
7762
7756
|
r.apply(this, u), i();
|
|
7763
7757
|
}, history.replaceState = function(...u) {
|
|
@@ -7807,7 +7801,7 @@ const oh = { class: "opencode-custom-loading" }, sh = { class: "opencode-loading
|
|
|
7807
7801
|
},
|
|
7808
7802
|
emits: ["retry"],
|
|
7809
7803
|
setup(e, { emit: t }) {
|
|
7810
|
-
const n = e, o = t, s = /* @__PURE__ */
|
|
7804
|
+
const n = e, o = t, s = /* @__PURE__ */ N("");
|
|
7811
7805
|
Ce(
|
|
7812
7806
|
() => n.models,
|
|
7813
7807
|
(p) => {
|
|
@@ -7815,13 +7809,13 @@ const oh = { class: "opencode-custom-loading" }, sh = { class: "opencode-loading
|
|
|
7815
7809
|
},
|
|
7816
7810
|
{ immediate: !0 }
|
|
7817
7811
|
);
|
|
7818
|
-
const i =
|
|
7812
|
+
const i = U(() => n.errorType === Bt.AI_TIMEOUT || n.errorType === Bt.AI_RESPONSE_ERROR || n.errorType === Bt.UNKNOWN), l = U(() => n.models && n.models.length > 0), r = U(() => {
|
|
7819
7813
|
if (!n.models) return {};
|
|
7820
7814
|
const p = {};
|
|
7821
7815
|
for (const g of n.models)
|
|
7822
7816
|
p[g.providerID] || (p[g.providerID] = []), p[g.providerID].push(g);
|
|
7823
7817
|
return p;
|
|
7824
|
-
}), a =
|
|
7818
|
+
}), a = U(() => {
|
|
7825
7819
|
if (!s.value || !n.models) return n.models?.[0] || null;
|
|
7826
7820
|
const [p, g] = s.value.split(":");
|
|
7827
7821
|
return n.models.find((b) => b.providerID === p && b.modelID === g) || null;
|
|
@@ -7912,7 +7906,7 @@ const oh = { class: "opencode-custom-loading" }, sh = { class: "opencode-loading
|
|
|
7912
7906
|
}, _e(x.name || x.modelID), 9, bh))), 128))
|
|
7913
7907
|
], 8, yh))), 128))
|
|
7914
7908
|
], 8, _h), [
|
|
7915
|
-
[
|
|
7909
|
+
[ec, s.value]
|
|
7916
7910
|
]),
|
|
7917
7911
|
g[10] || (g[10] = v("span", { class: "select-arrow" }, [
|
|
7918
7912
|
v("svg", {
|
|
@@ -7956,7 +7950,7 @@ const oh = { class: "opencode-custom-loading" }, sh = { class: "opencode-loading
|
|
|
7956
7950
|
config: {}
|
|
7957
7951
|
},
|
|
7958
7952
|
setup(e) {
|
|
7959
|
-
const t = e, n = /* @__PURE__ */
|
|
7953
|
+
const t = e, n = /* @__PURE__ */ N(!1), o = /* @__PURE__ */ N(!1), s = /* @__PURE__ */ N(!0), i = /* @__PURE__ */ N(!1), l = /* @__PURE__ */ N(null), r = /* @__PURE__ */ N(!1), a = /* @__PURE__ */ N([]), {
|
|
7960
7954
|
theme: u = "auto",
|
|
7961
7955
|
open: c = !1,
|
|
7962
7956
|
hotkey: f = "ctrl+k",
|
|
@@ -7964,12 +7958,12 @@ const oh = { class: "opencode-custom-loading" }, sh = { class: "opencode-loading
|
|
|
7964
7958
|
proxyHost: g = "localhost",
|
|
7965
7959
|
displayMode: b = "bubble",
|
|
7966
7960
|
splitMode: m
|
|
7967
|
-
} = t.config, x = u, R = /* @__PURE__ */
|
|
7961
|
+
} = t.config, x = u, R = /* @__PURE__ */ N(m?.width ?? 500), M = U(() => `http://${g}:${p}`), $ = (O, V) => {
|
|
7968
7962
|
l.value?.showNotification?.(O, V);
|
|
7969
7963
|
}, {
|
|
7970
7964
|
serviceStatus: y,
|
|
7971
7965
|
chromeMcpFailed: j,
|
|
7972
|
-
chromeMcpErrorType:
|
|
7966
|
+
chromeMcpErrorType: L,
|
|
7973
7967
|
chromeMcpErrorMessage: B,
|
|
7974
7968
|
loadingText: q,
|
|
7975
7969
|
updateStatusFromTask: Z,
|
|
@@ -7985,7 +7979,7 @@ const oh = { class: "opencode-custom-loading" }, sh = { class: "opencode-loading
|
|
|
7985
7979
|
deleteSession: st,
|
|
7986
7980
|
selectSession: ht,
|
|
7987
7981
|
updateSessionInfo: pt
|
|
7988
|
-
} = Zf({ showNotification: $ }), { updateContext:
|
|
7982
|
+
} = Zf({ showNotification: $ }), { updateContext: Le } = nh(y, me), Ge = Gf({
|
|
7989
7983
|
onStatusSync: (O) => {
|
|
7990
7984
|
O.isStarted !== void 0 && O.isStarted && y.value === "idle" && Q(), O.task && Z(O.task, O.errorType, O.errorMessage);
|
|
7991
7985
|
},
|
|
@@ -7993,7 +7987,7 @@ const oh = { class: "opencode-custom-loading" }, sh = { class: "opencode-loading
|
|
|
7993
7987
|
Z(O.task, O.errorType, O.errorMessage);
|
|
7994
7988
|
},
|
|
7995
7989
|
onClearElements: () => I(),
|
|
7996
|
-
onConnected: () =>
|
|
7990
|
+
onConnected: () => Le(!0)
|
|
7997
7991
|
}), Xe = Jf({
|
|
7998
7992
|
proxyBaseUrl: M.value,
|
|
7999
7993
|
currentSessionId: Ie,
|
|
@@ -8003,7 +7997,7 @@ const oh = { class: "opencode-custom-loading" }, sh = { class: "opencode-loading
|
|
|
8003
7997
|
onSessionUpdate: (O) => {
|
|
8004
7998
|
pt(O);
|
|
8005
7999
|
}
|
|
8006
|
-
}), kt = Xe.hasAnyThinking, it = Xe.sessionStates, nn =
|
|
8000
|
+
}), kt = Xe.hasAnyThinking, it = Xe.sessionStates, nn = U(() => y.value === "starting"), d = U(() => y.value === "starting" || ye.value), h = U(() => y.value === "starting" ? q.value : "加载会话..."), _ = async (O) => {
|
|
8007
8001
|
r.value = !0;
|
|
8008
8002
|
try {
|
|
8009
8003
|
const te = await (await fetch("/__opencode_warmup__", {
|
|
@@ -8011,7 +8005,7 @@ const oh = { class: "opencode-custom-loading" }, sh = { class: "opencode-loading
|
|
|
8011
8005
|
headers: { "Content-Type": "application/json" },
|
|
8012
8006
|
body: O ? JSON.stringify(O) : ""
|
|
8013
8007
|
})).json();
|
|
8014
|
-
te.success ? (j.value = !1,
|
|
8008
|
+
te.success ? (j.value = !1, L.value = void 0, B.value = void 0, y.value = "ready", $("Chrome DevTools MCP 连接成功")) : (L.value = te.errorType, B.value = te.error, te.errorType === "AI_TIMEOUT" ? $("AI 响应超时,请检查 OpenCode AI 模型配置") : te.errorType === "AI_RESPONSE_ERROR" ? $("AI 响应错误,请检查 OpenCode AI 模型配置") : te.errorType === "CHROME_NOT_CONNECTED" ? $("Chrome 远程调试未开启,请按照提示操作") : $(te.error || "重试失败,请确认 Chrome 远程调试已开启"));
|
|
8015
8009
|
} catch (V) {
|
|
8016
8010
|
console.error("[OpenCode] Retry warmup failed:", V), $("重试失败,请稍后再试");
|
|
8017
8011
|
} finally {
|
|
@@ -8045,8 +8039,8 @@ const oh = { class: "opencode-custom-loading" }, sh = { class: "opencode-loading
|
|
|
8045
8039
|
O !== "idle" && V === "idle" && (Ge.connect(), Xe.connect()), O === "ready" && V !== "ready" && be();
|
|
8046
8040
|
}), Ce(j, (O) => {
|
|
8047
8041
|
O && C();
|
|
8048
|
-
}),
|
|
8049
|
-
y.value === "ready" && (be(), Ge.connect(), Xe.connect(),
|
|
8042
|
+
}), Ue(() => {
|
|
8043
|
+
y.value === "ready" && (be(), Ge.connect(), Xe.connect(), Le(!0)), c && y.value === "ready" && setTimeout(() => {
|
|
8050
8044
|
n.value = !0;
|
|
8051
8045
|
}, 1e3);
|
|
8052
8046
|
const O = (V) => {
|
|
@@ -8063,7 +8057,7 @@ const oh = { class: "opencode-custom-loading" }, sh = { class: "opencode-loading
|
|
|
8063
8057
|
return;
|
|
8064
8058
|
}
|
|
8065
8059
|
}
|
|
8066
|
-
n.value = O, O &&
|
|
8060
|
+
n.value = O, O && Le(), O && (ye.value = !1);
|
|
8067
8061
|
}, P = (O) => {
|
|
8068
8062
|
const V = {
|
|
8069
8063
|
...O,
|
|
@@ -8074,7 +8068,7 @@ const oh = { class: "opencode-custom-loading" }, sh = { class: "opencode-loading
|
|
|
8074
8068
|
element: V
|
|
8075
8069
|
}), $("节点已添加到对话框", { mode: "page" });
|
|
8076
8070
|
}, A = () => {
|
|
8077
|
-
I(),
|
|
8071
|
+
I(), Le(!0), $("已清除所有选中元素");
|
|
8078
8072
|
}, E = (O) => {
|
|
8079
8073
|
o.value = O;
|
|
8080
8074
|
const V = l.value?.isSplitMode;
|
|
@@ -8085,8 +8079,8 @@ const oh = { class: "opencode-custom-loading" }, sh = { class: "opencode-loading
|
|
|
8085
8079
|
Y.value = O;
|
|
8086
8080
|
}, H = (O) => {
|
|
8087
8081
|
R.value = O;
|
|
8088
|
-
},
|
|
8089
|
-
Ae(O),
|
|
8082
|
+
}, K = ({ index: O }) => {
|
|
8083
|
+
Ae(O), Le(!0);
|
|
8090
8084
|
}, J = () => {
|
|
8091
8085
|
ye.value = !1;
|
|
8092
8086
|
};
|
|
@@ -8122,7 +8116,7 @@ const oh = { class: "opencode-custom-loading" }, sh = { class: "opencode-loading
|
|
|
8122
8116
|
onSelectSession: de(ht),
|
|
8123
8117
|
onClickSelectedNode: P,
|
|
8124
8118
|
onClearSelectedNodes: A,
|
|
8125
|
-
onRemoveSelectedNode:
|
|
8119
|
+
onRemoveSelectedNode: K,
|
|
8126
8120
|
onEmptyAction: de(ve),
|
|
8127
8121
|
onFrameLoaded: J
|
|
8128
8122
|
}, {
|
|
@@ -8133,7 +8127,7 @@ const oh = { class: "opencode-custom-loading" }, sh = { class: "opencode-loading
|
|
|
8133
8127
|
de(j) ? (F(), ft(Ch, {
|
|
8134
8128
|
key: 0,
|
|
8135
8129
|
retrying: r.value,
|
|
8136
|
-
"error-type": de(
|
|
8130
|
+
"error-type": de(L),
|
|
8137
8131
|
"error-message": de(B),
|
|
8138
8132
|
models: a.value,
|
|
8139
8133
|
onRetry: _
|
|
@@ -8143,7 +8137,7 @@ const oh = { class: "opencode-custom-loading" }, sh = { class: "opencode-loading
|
|
|
8143
8137
|
}, 8, ["theme", "open", "select-mode", "session-list-collapsed", "frame-loading", "loading-session-list", "show-session-list-skeleton", "show-error", "iframe-src", "current-session-id", "sessions", "session-states", "hotkey-label", "thinking", "display-mode", "split-mode", "split-panel-width", "onCreateSession", "onDeleteSession", "onSelectSession", "onEmptyAction"]));
|
|
8144
8138
|
}
|
|
8145
8139
|
});
|
|
8146
|
-
let
|
|
8140
|
+
let Hl = {};
|
|
8147
8141
|
const oi = document.querySelector(`script[${dl}]`);
|
|
8148
8142
|
if (oi) {
|
|
8149
8143
|
const e = oi.getAttribute(dl);
|
|
@@ -8152,7 +8146,7 @@ if (oi) {
|
|
|
8152
8146
|
const t = new TextDecoder().decode(
|
|
8153
8147
|
Uint8Array.from(atob(e), (n) => n.charCodeAt(0))
|
|
8154
8148
|
);
|
|
8155
|
-
|
|
8149
|
+
Hl = JSON.parse(t);
|
|
8156
8150
|
} catch (t) {
|
|
8157
8151
|
console.error("[OpenCode] Failed to parse config:", t);
|
|
8158
8152
|
}
|
|
@@ -8162,7 +8156,7 @@ if (!window[Co]) {
|
|
|
8162
8156
|
window[Co] = !0;
|
|
8163
8157
|
const e = document.createElement("div");
|
|
8164
8158
|
document.body.appendChild(e);
|
|
8165
|
-
const t =
|
|
8159
|
+
const t = ic(Ah, { config: Hl });
|
|
8166
8160
|
t.mount(e), window.__OPENCODE_CLEANUP__ = () => {
|
|
8167
8161
|
t.unmount(), e.remove(), window[Co] = !1;
|
|
8168
8162
|
};
|