@kernelift/ai-chat 1.0.7 → 1.0.9
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/CHANGELOG.md +12 -0
- package/README.md +3 -1
- package/dist/ai-chat.css +1 -1
- package/dist/index.d.ts +35 -1
- package/dist/index.js +243 -219
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createElementBlock as ve, openBlock as ge, createStaticVNode as Tn, defineComponent as wt, mergeModels as mt, useModel as dt, createElementVNode as ne, withDirectives as tt, renderSlot as
|
|
1
|
+
import { createElementBlock as ve, openBlock as ge, createStaticVNode as Tn, defineComponent as wt, mergeModels as mt, useModel as dt, createElementVNode as ne, withDirectives as tt, renderSlot as pe, createVNode as Bt, createTextVNode as Kt, unref as nt, normalizeClass as _e, vShow as st, createCommentVNode as Ze, withCtx as Ye, toDisplayString as Nt, normalizeStyle as Xt, onMounted as jr, nextTick as Ha, toValue as We, readonly as xa, watch as Vt, getCurrentScope as kn, onScopeDispose as Rn, getCurrentInstance as Un, toRef as Nn, ref as vt, customRef as wn, shallowRef as Dn, computed as it, onUnmounted as za, Fragment as Mr, renderList as Qr, useCssVars as Fa, vModelText as On, withModifiers as Pn, createBlock as $t, isRef as Yr } from "vue";
|
|
2
2
|
import { MdRender as qa } from "@kernelift/markdown";
|
|
3
3
|
const bt = (t, e) => {
|
|
4
4
|
const r = t.__vccOpts || t;
|
|
@@ -58,7 +58,7 @@ const Ya = /* @__PURE__ */ bt(Ln, [["render", Vn]]), Mn = { class: "kernelift-th
|
|
|
58
58
|
ne("div", Gn, [
|
|
59
59
|
e.value ? (ge(), ve("i", Hn)) : (ge(), ve("i", xn))
|
|
60
60
|
]),
|
|
61
|
-
|
|
61
|
+
pe(d.$slots, "header", {}, void 0, !0)
|
|
62
62
|
]),
|
|
63
63
|
tt(ne("main", zn, [
|
|
64
64
|
Bt(nt(qa), {
|
|
@@ -100,7 +100,7 @@ const Ya = /* @__PURE__ */ bt(Ln, [["render", Vn]]), Mn = { class: "kernelift-th
|
|
|
100
100
|
const r = dt(t, "modelValue"), d = e;
|
|
101
101
|
return (S, C) => (ge(), ve("div", Yn, [
|
|
102
102
|
ne("main", Xn, [
|
|
103
|
-
|
|
103
|
+
pe(S.$slots, "header", {}, void 0, !0),
|
|
104
104
|
r.value.thoughtProcess ? (ge(), ve("div", Jn, [
|
|
105
105
|
Bt(qn, {
|
|
106
106
|
collapse: r.value.thoughtCollapse,
|
|
@@ -110,26 +110,26 @@ const Ya = /* @__PURE__ */ bt(Ln, [["render", Vn]]), Mn = { class: "kernelift-th
|
|
|
110
110
|
"markdown-class": t.markdownClass,
|
|
111
111
|
messager: t.messager
|
|
112
112
|
}, {
|
|
113
|
-
header:
|
|
114
|
-
|
|
113
|
+
header: Ye(() => [
|
|
114
|
+
pe(S.$slots, "thinking-header", {}, void 0, !0)
|
|
115
115
|
]),
|
|
116
116
|
_: 3
|
|
117
117
|
}, 8, ["collapse", "loading", "data", "markdown-class", "messager"])
|
|
118
118
|
])) : Ze("", !0),
|
|
119
119
|
(r.value.role === "assistant" || r.value.role === "system") && !r.value.isThinking ? (ge(), ve("div", Zn, [
|
|
120
|
-
|
|
121
|
-
|
|
120
|
+
pe(S.$slots, "content-header", {}, void 0, !0),
|
|
121
|
+
pe(S.$slots, "content", {}, () => [
|
|
122
122
|
Bt(nt(qa), {
|
|
123
123
|
"model-value": r.value.content,
|
|
124
124
|
messager: t.messager,
|
|
125
125
|
class: _e(t.markdownClass || "")
|
|
126
126
|
}, null, 8, ["model-value", "messager", "class"])
|
|
127
127
|
], !0),
|
|
128
|
-
|
|
128
|
+
pe(S.$slots, "content-footer", {}, void 0, !0)
|
|
129
129
|
])) : r.value.role === "user" ? (ge(), ve("div", Wn, [
|
|
130
130
|
ne("div", _n, Nt(r.value.content), 1)
|
|
131
131
|
])) : Ze("", !0),
|
|
132
|
-
|
|
132
|
+
pe(S.$slots, "footer", {}, () => [
|
|
133
133
|
(r.value.role === "assistant" || r.value.role === "system") && !r.value.loading && !r.value.hideFooterTools ? (ge(), ve("footer", $n, [
|
|
134
134
|
ne("section", {
|
|
135
135
|
class: _e(["kernelift-chat-bubble__actions", {
|
|
@@ -176,7 +176,7 @@ const Ya = /* @__PURE__ */ bt(Ln, [["render", Vn]]), Mn = { class: "kernelift-th
|
|
|
176
176
|
})
|
|
177
177
|
}, null, 6)
|
|
178
178
|
]),
|
|
179
|
-
|
|
179
|
+
pe(S.$slots, "bubble-event", {}, void 0, !0)
|
|
180
180
|
], 2)
|
|
181
181
|
])) : Ze("", !0)
|
|
182
182
|
], !0)
|
|
@@ -515,7 +515,7 @@ const Bi = { class: "kernelift-chat-sidebar" }, bi = { class: "kernelift-chat-si
|
|
|
515
515
|
class: "kernelift-chat-sidebar__logo",
|
|
516
516
|
onClick: g[0] || (g[0] = (u) => d("click-logo"))
|
|
517
517
|
}, [
|
|
518
|
-
|
|
518
|
+
pe(a.$slots, "logo", {}, () => [
|
|
519
519
|
g[3] || (g[3] = ne("img", {
|
|
520
520
|
src: Xa,
|
|
521
521
|
class: "kernelift-chat-sidebar__logo-img"
|
|
@@ -523,7 +523,7 @@ const Bi = { class: "kernelift-chat-sidebar" }, bi = { class: "kernelift-chat-si
|
|
|
523
523
|
], !0)
|
|
524
524
|
]),
|
|
525
525
|
ne("div", Ti, [
|
|
526
|
-
|
|
526
|
+
pe(a.$slots, "new-chat-button", { execute: S }, () => [
|
|
527
527
|
ne("button", {
|
|
528
528
|
class: "kernelift-chat-sidebar__new-chat-btn",
|
|
529
529
|
onClick: S
|
|
@@ -566,7 +566,7 @@ const Bi = { class: "kernelift-chat-sidebar" }, bi = { class: "kernelift-chat-si
|
|
|
566
566
|
}]),
|
|
567
567
|
onClick: (I) => d("change", u)
|
|
568
568
|
}, [
|
|
569
|
-
|
|
569
|
+
pe(a.$slots, "record-dropdown", {
|
|
570
570
|
record: u,
|
|
571
571
|
actions: t.actions
|
|
572
572
|
}, () => [
|
|
@@ -584,7 +584,7 @@ const Bi = { class: "kernelift-chat-sidebar" }, bi = { class: "kernelift-chat-si
|
|
|
584
584
|
ref: f
|
|
585
585
|
}, null, 512)
|
|
586
586
|
]),
|
|
587
|
-
|
|
587
|
+
pe(a.$slots, "footer", {}, void 0, !0)
|
|
588
588
|
]));
|
|
589
589
|
}
|
|
590
590
|
}), Qi = /* @__PURE__ */ bt(Mi, [["__scopeId", "data-v-c6fa0232"]]), ji = { class: "kernelift-chat-sender" }, Gi = { class: "kernelift-chat-sender__container" }, Hi = { class: "kernelift-chat-sender__toolbar" }, xi = { class: "kernelift-chat-sender__tools" }, zi = {
|
|
@@ -619,8 +619,8 @@ const Bi = { class: "kernelift-chat-sidebar" }, bi = { class: "kernelift-chat-si
|
|
|
619
619
|
emits: /* @__PURE__ */ mt(["send", "cancel"], ["update:modelValue", "update:enableThink", "update:enableNet"]),
|
|
620
620
|
setup(t, { emit: e }) {
|
|
621
621
|
Fa((E) => ({
|
|
622
|
-
|
|
623
|
-
|
|
622
|
+
cea14b64: f.value,
|
|
623
|
+
e299f9da: a.value
|
|
624
624
|
}));
|
|
625
625
|
const r = t, d = dt(t, "modelValue"), S = dt(t, "enableThink"), C = dt(t, "enableNet"), f = it(() => r.inputHeight + 52 + "px"), a = it(() => r.inputHeight + "px"), g = e;
|
|
626
626
|
function u() {
|
|
@@ -634,7 +634,7 @@ const Bi = { class: "kernelift-chat-sidebar" }, bi = { class: "kernelift-chat-si
|
|
|
634
634
|
}
|
|
635
635
|
return (E, l) => (ge(), ve("div", ji, [
|
|
636
636
|
ne("div", Gi, [
|
|
637
|
-
|
|
637
|
+
pe(E.$slots, "textarea", {
|
|
638
638
|
height: t.inputHeight,
|
|
639
639
|
execute: u,
|
|
640
640
|
state: {
|
|
@@ -654,36 +654,46 @@ const Bi = { class: "kernelift-chat-sidebar" }, bi = { class: "kernelift-chat-si
|
|
|
654
654
|
], !0),
|
|
655
655
|
ne("div", Hi, [
|
|
656
656
|
ne("div", xi, [
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
657
|
+
pe(E.$slots, "think-button", {
|
|
658
|
+
state: { hasThinking: t.hasThinking, enableThink: S.value },
|
|
659
|
+
execute: I
|
|
660
|
+
}, () => [
|
|
661
|
+
t.hasThinking ? (ge(), ve("button", {
|
|
662
|
+
key: 0,
|
|
663
|
+
class: _e(["kernelift-chat-sender__tool-btn", {
|
|
664
|
+
active: S.value
|
|
665
|
+
}]),
|
|
666
|
+
onClick: I
|
|
667
|
+
}, [
|
|
668
|
+
tt(ne("span", zi, null, 512), [
|
|
669
|
+
[st, t.loading]
|
|
670
|
+
]),
|
|
671
|
+
l[1] || (l[1] = Kt(" 深度思考 ", -1))
|
|
672
|
+
], 2)) : Ze("", !0)
|
|
673
|
+
], !0),
|
|
674
|
+
pe(E.$slots, "net-button", {
|
|
675
|
+
state: { hasNetSearch: t.hasNetSearch, enableNet: C.value },
|
|
676
|
+
execute: O
|
|
677
|
+
}, () => [
|
|
678
|
+
t.hasNetSearch ? (ge(), ve("button", {
|
|
679
|
+
key: 0,
|
|
680
|
+
class: _e(["kernelift-chat-sender__tool-btn", {
|
|
681
|
+
active: C.value
|
|
682
|
+
}]),
|
|
683
|
+
onClick: O
|
|
684
|
+
}, [
|
|
685
|
+
tt(ne("span", Fi, null, 512), [
|
|
686
|
+
[st, t.loading]
|
|
687
|
+
]),
|
|
688
|
+
l[2] || (l[2] = Kt(" 联网搜索 ", -1))
|
|
689
|
+
], 2)) : Ze("", !0)
|
|
690
|
+
], !0),
|
|
691
|
+
pe(E.$slots, "tools", {
|
|
682
692
|
value: d.value,
|
|
683
693
|
loading: t.loading
|
|
684
694
|
}, void 0, !0)
|
|
685
695
|
]),
|
|
686
|
-
|
|
696
|
+
pe(E.$slots, "send-button", {
|
|
687
697
|
execute: u,
|
|
688
698
|
state: {
|
|
689
699
|
loading: t.loading,
|
|
@@ -708,7 +718,7 @@ const Bi = { class: "kernelift-chat-sidebar" }, bi = { class: "kernelift-chat-si
|
|
|
708
718
|
])
|
|
709
719
|
]));
|
|
710
720
|
}
|
|
711
|
-
}), Zi = /* @__PURE__ */ bt(Ji, [["__scopeId", "data-v-
|
|
721
|
+
}), Zi = /* @__PURE__ */ bt(Ji, [["__scopeId", "data-v-83456fa1"]]), Wi = { class: "kernelift-chat-header" }, _i = /* @__PURE__ */ wt({
|
|
712
722
|
__name: "chat-header",
|
|
713
723
|
props: {
|
|
714
724
|
record: {}
|
|
@@ -783,7 +793,7 @@ function as(t) {
|
|
|
783
793
|
}), r;
|
|
784
794
|
}
|
|
785
795
|
var Wr, _r;
|
|
786
|
-
function
|
|
796
|
+
function de() {
|
|
787
797
|
return _r || (_r = 1, Wr = {
|
|
788
798
|
// default options
|
|
789
799
|
options: {
|
|
@@ -871,7 +881,7 @@ var ea;
|
|
|
871
881
|
function me() {
|
|
872
882
|
if (ea) return rr.exports;
|
|
873
883
|
ea = 1;
|
|
874
|
-
var t =
|
|
884
|
+
var t = de(), e = ns(), r = rr.exports = t.util = t.util || {};
|
|
875
885
|
(function() {
|
|
876
886
|
if (typeof process < "u" && process.nextTick && !process.browser) {
|
|
877
887
|
r.nextTick = process.nextTick, typeof setImmediate == "function" ? r.setImmediate = setImmediate : r.setImmediate = r.nextTick;
|
|
@@ -1634,7 +1644,7 @@ var nr, ta;
|
|
|
1634
1644
|
function Gr() {
|
|
1635
1645
|
if (ta) return nr;
|
|
1636
1646
|
ta = 1;
|
|
1637
|
-
var t =
|
|
1647
|
+
var t = de();
|
|
1638
1648
|
me(), nr = t.cipher = t.cipher || {}, t.cipher.algorithms = t.cipher.algorithms || {}, t.cipher.createCipher = function(r, d) {
|
|
1639
1649
|
var S = r;
|
|
1640
1650
|
if (typeof S == "string" && (S = t.cipher.getAlgorithm(S), S && (S = S())), !S)
|
|
@@ -1685,7 +1695,7 @@ var ir = { exports: {} }, ra;
|
|
|
1685
1695
|
function Za() {
|
|
1686
1696
|
if (ra) return ir.exports;
|
|
1687
1697
|
ra = 1;
|
|
1688
|
-
var t =
|
|
1698
|
+
var t = de();
|
|
1689
1699
|
me(), t.cipher = t.cipher || {};
|
|
1690
1700
|
var e = ir.exports = t.cipher.modes = t.cipher.modes || {};
|
|
1691
1701
|
e.ecb = function(C) {
|
|
@@ -2029,7 +2039,7 @@ var sr, aa;
|
|
|
2029
2039
|
function Tt() {
|
|
2030
2040
|
if (aa) return sr;
|
|
2031
2041
|
aa = 1;
|
|
2032
|
-
var t =
|
|
2042
|
+
var t = de();
|
|
2033
2043
|
Gr(), Za(), me(), sr = t.aes = t.aes || {}, t.aes.startEncrypting = function(l, y, A, m) {
|
|
2034
2044
|
var s = E({
|
|
2035
2045
|
key: l,
|
|
@@ -2169,7 +2179,7 @@ var or = { exports: {} }, ur = { exports: {} }, lr = { exports: {} }, na;
|
|
|
2169
2179
|
function kt() {
|
|
2170
2180
|
if (na) return lr.exports;
|
|
2171
2181
|
na = 1;
|
|
2172
|
-
var t =
|
|
2182
|
+
var t = de();
|
|
2173
2183
|
t.pki = t.pki || {};
|
|
2174
2184
|
var e = lr.exports = t.pki.oids = t.oids = t.oids || {};
|
|
2175
2185
|
function r(S, C) {
|
|
@@ -2184,7 +2194,7 @@ var ia;
|
|
|
2184
2194
|
function ht() {
|
|
2185
2195
|
if (ia) return ur.exports;
|
|
2186
2196
|
ia = 1;
|
|
2187
|
-
var t =
|
|
2197
|
+
var t = de();
|
|
2188
2198
|
me(), kt();
|
|
2189
2199
|
var e = ur.exports = t.asn1 = t.asn1 || {};
|
|
2190
2200
|
e.Class = {
|
|
@@ -2631,14 +2641,14 @@ var cr = { exports: {} }, fr, sa;
|
|
|
2631
2641
|
function At() {
|
|
2632
2642
|
if (sa) return fr;
|
|
2633
2643
|
sa = 1;
|
|
2634
|
-
var t =
|
|
2644
|
+
var t = de();
|
|
2635
2645
|
return fr = t.md = t.md || {}, t.md.algorithms = t.md.algorithms || {}, fr;
|
|
2636
2646
|
}
|
|
2637
2647
|
var oa;
|
|
2638
2648
|
function Mt() {
|
|
2639
2649
|
if (oa) return cr.exports;
|
|
2640
2650
|
oa = 1;
|
|
2641
|
-
var t =
|
|
2651
|
+
var t = de();
|
|
2642
2652
|
At(), me();
|
|
2643
2653
|
var e = cr.exports = t.hmac = t.hmac || {};
|
|
2644
2654
|
return e.create = function() {
|
|
@@ -2687,7 +2697,7 @@ var pr = { exports: {} }, ua;
|
|
|
2687
2697
|
function Hr() {
|
|
2688
2698
|
if (ua) return pr.exports;
|
|
2689
2699
|
ua = 1;
|
|
2690
|
-
var t =
|
|
2700
|
+
var t = de();
|
|
2691
2701
|
At(), me();
|
|
2692
2702
|
var e = pr.exports = t.md5 = t.md5 || {};
|
|
2693
2703
|
t.md.md5 = t.md.algorithms.md5 = e, e.create = function() {
|
|
@@ -2894,7 +2904,7 @@ var dr = { exports: {} }, la;
|
|
|
2894
2904
|
function Dt() {
|
|
2895
2905
|
if (la) return dr.exports;
|
|
2896
2906
|
la = 1;
|
|
2897
|
-
var t =
|
|
2907
|
+
var t = de();
|
|
2898
2908
|
me();
|
|
2899
2909
|
var e = dr.exports = t.pem = t.pem || {};
|
|
2900
2910
|
e.encode = function(S, C) {
|
|
@@ -2986,7 +2996,7 @@ var hr = { exports: {} }, gr, ca;
|
|
|
2986
2996
|
function Jt() {
|
|
2987
2997
|
if (ca) return gr;
|
|
2988
2998
|
ca = 1;
|
|
2989
|
-
var t =
|
|
2999
|
+
var t = de();
|
|
2990
3000
|
Gr(), Za(), me(), gr = t.des = t.des || {}, t.des.startEncrypting = function(l, y, A, m) {
|
|
2991
3001
|
var s = E({
|
|
2992
3002
|
key: l,
|
|
@@ -3047,11 +3057,11 @@ function Jt() {
|
|
|
3047
3057
|
var r = [16843776, 0, 65536, 16843780, 16842756, 66564, 4, 65536, 1024, 16843776, 16843780, 1024, 16778244, 16842756, 16777216, 4, 1028, 16778240, 16778240, 66560, 66560, 16842752, 16842752, 16778244, 65540, 16777220, 16777220, 65540, 0, 1028, 66564, 16777216, 65536, 16843780, 4, 16842752, 16843776, 16777216, 16777216, 1024, 16842756, 65536, 66560, 16777220, 1024, 4, 16778244, 66564, 16843780, 65540, 16842752, 16778244, 16777220, 1028, 66564, 16843776, 1028, 16778240, 16778240, 0, 65540, 66560, 0, 16842756], d = [-2146402272, -2147450880, 32768, 1081376, 1048576, 32, -2146435040, -2147450848, -2147483616, -2146402272, -2146402304, -2147483648, -2147450880, 1048576, 32, -2146435040, 1081344, 1048608, -2147450848, 0, -2147483648, 32768, 1081376, -2146435072, 1048608, -2147483616, 0, 1081344, 32800, -2146402304, -2146435072, 32800, 0, 1081376, -2146435040, 1048576, -2147450848, -2146435072, -2146402304, 32768, -2146435072, -2147450880, 32, -2146402272, 1081376, 32, 32768, -2147483648, 32800, -2146402304, 1048576, -2147483616, 1048608, -2147450848, -2147483616, 1048608, 1081344, 0, -2147450880, 32800, -2147483648, -2146435040, -2146402272, 1081344], S = [520, 134349312, 0, 134348808, 134218240, 0, 131592, 134218240, 131080, 134217736, 134217736, 131072, 134349320, 131080, 134348800, 520, 134217728, 8, 134349312, 512, 131584, 134348800, 134348808, 131592, 134218248, 131584, 131072, 134218248, 8, 134349320, 512, 134217728, 134349312, 134217728, 131080, 520, 131072, 134349312, 134218240, 0, 512, 131080, 134349320, 134218240, 134217736, 512, 0, 134348808, 134218248, 131072, 134217728, 134349320, 8, 131592, 131584, 134217736, 134348800, 134218248, 520, 134348800, 131592, 8, 134348808, 131584], C = [8396801, 8321, 8321, 128, 8396928, 8388737, 8388609, 8193, 0, 8396800, 8396800, 8396929, 129, 0, 8388736, 8388609, 1, 8192, 8388608, 8396801, 128, 8388608, 8193, 8320, 8388737, 1, 8320, 8388736, 8192, 8396928, 8396929, 129, 8388736, 8388609, 8396800, 8396929, 129, 0, 0, 8396800, 8320, 8388736, 8388737, 1, 8396801, 8321, 8321, 128, 8396929, 129, 1, 8192, 8388609, 8193, 8396928, 8388737, 8193, 8320, 8388608, 8396801, 128, 8388608, 8192, 8396928], f = [256, 34078976, 34078720, 1107296512, 524288, 256, 1073741824, 34078720, 1074266368, 524288, 33554688, 1074266368, 1107296512, 1107820544, 524544, 1073741824, 33554432, 1074266112, 1074266112, 0, 1073742080, 1107820800, 1107820800, 33554688, 1107820544, 1073742080, 0, 1107296256, 34078976, 33554432, 1107296256, 524544, 524288, 1107296512, 256, 33554432, 1073741824, 34078720, 1107296512, 1074266368, 33554688, 1073741824, 1107820544, 34078976, 1074266368, 256, 33554432, 1107820544, 1107820800, 524544, 1107296256, 1107820800, 34078720, 0, 1074266112, 1107296256, 524544, 33554688, 1073742080, 524288, 0, 1074266112, 34078976, 1073742080], a = [536870928, 541065216, 16384, 541081616, 541065216, 16, 541081616, 4194304, 536887296, 4210704, 4194304, 536870928, 4194320, 536887296, 536870912, 16400, 0, 4194320, 536887312, 16384, 4210688, 536887312, 16, 541065232, 541065232, 0, 4210704, 541081600, 16400, 4210688, 541081600, 536870912, 536887296, 16, 541065232, 4210688, 541081616, 4194304, 16400, 536870928, 4194304, 536887296, 536870912, 16400, 536870928, 541081616, 4210688, 541065216, 4210704, 541081600, 0, 541065232, 16, 16384, 541065216, 4210704, 16384, 4194320, 536887312, 0, 541081600, 536870912, 4194320, 536887312], g = [2097152, 69206018, 67110914, 0, 2048, 67110914, 2099202, 69208064, 69208066, 2097152, 0, 67108866, 2, 67108864, 69206018, 2050, 67110912, 2099202, 2097154, 67110912, 67108866, 69206016, 69208064, 2097154, 69206016, 2048, 2050, 69208066, 2099200, 2, 67108864, 2099200, 67108864, 2099200, 2097152, 67110914, 67110914, 69206018, 69206018, 2, 2097154, 67108864, 67110912, 2097152, 69208064, 2050, 2099202, 69208064, 2050, 67108866, 69208066, 69206016, 2099200, 0, 2, 69208066, 0, 2099202, 69206016, 2048, 67108866, 67110912, 2048, 2097154], u = [268439616, 4096, 262144, 268701760, 268435456, 268439616, 64, 268435456, 262208, 268697600, 268701760, 266240, 268701696, 266304, 4096, 64, 268697600, 268435520, 268439552, 4160, 266240, 262208, 268697664, 268701696, 4160, 0, 0, 268697664, 268435520, 268439552, 266304, 262144, 266304, 262144, 268701696, 4096, 64, 268697664, 4096, 266304, 268439552, 64, 268435520, 268697600, 268697664, 268435456, 262144, 268439616, 0, 268701760, 262208, 268435520, 268697600, 268439552, 268439616, 0, 268701760, 266240, 266240, 4160, 4160, 262208, 268435456, 268701696];
|
|
3048
3058
|
function I(l) {
|
|
3049
3059
|
for (var y = [0, 4, 536870912, 536870916, 65536, 65540, 536936448, 536936452, 512, 516, 536871424, 536871428, 66048, 66052, 536936960, 536936964], A = [0, 1, 1048576, 1048577, 67108864, 67108865, 68157440, 68157441, 256, 257, 1048832, 1048833, 67109120, 67109121, 68157696, 68157697], m = [0, 8, 2048, 2056, 16777216, 16777224, 16779264, 16779272, 0, 8, 2048, 2056, 16777216, 16777224, 16779264, 16779272], s = [0, 2097152, 134217728, 136314880, 8192, 2105344, 134225920, 136323072, 131072, 2228224, 134348800, 136445952, 139264, 2236416, 134356992, 136454144], h = [0, 262144, 16, 262160, 0, 262144, 16, 262160, 4096, 266240, 4112, 266256, 4096, 266240, 4112, 266256], v = [0, 1024, 32, 1056, 0, 1024, 32, 1056, 33554432, 33555456, 33554464, 33555488, 33554432, 33555456, 33554464, 33555488], b = [0, 268435456, 524288, 268959744, 2, 268435458, 524290, 268959746, 0, 268435456, 524288, 268959744, 2, 268435458, 524290, 268959746], N = [0, 65536, 2048, 67584, 536870912, 536936448, 536872960, 536938496, 131072, 196608, 133120, 198656, 537001984, 537067520, 537004032, 537069568], p = [0, 262144, 0, 262144, 2, 262146, 2, 262146, 33554432, 33816576, 33554432, 33816576, 33554434, 33816578, 33554434, 33816578], i = [0, 268435456, 8, 268435464, 0, 268435456, 8, 268435464, 1024, 268436480, 1032, 268436488, 1024, 268436480, 1032, 268436488], n = [0, 32, 0, 32, 1048576, 1048608, 1048576, 1048608, 8192, 8224, 8192, 8224, 1056768, 1056800, 1056768, 1056800], k = [0, 16777216, 512, 16777728, 2097152, 18874368, 2097664, 18874880, 67108864, 83886080, 67109376, 83886592, 69206016, 85983232, 69206528, 85983744], P = [0, 4096, 134217728, 134221824, 524288, 528384, 134742016, 134746112, 16, 4112, 134217744, 134221840, 524304, 528400, 134742032, 134746128], K = [0, 4, 256, 260, 0, 4, 256, 260, 1, 5, 257, 261, 1, 5, 257, 261], D = l.length() > 8 ? 3 : 1, M = [], Q = [0, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0], G = 0, x, X = 0; X < D; X++) {
|
|
3050
|
-
var Z = l.getInt32(),
|
|
3051
|
-
x = (Z >>> 4 ^
|
|
3060
|
+
var Z = l.getInt32(), $ = l.getInt32();
|
|
3061
|
+
x = (Z >>> 4 ^ $) & 252645135, $ ^= x, Z ^= x << 4, x = ($ >>> -16 ^ Z) & 65535, Z ^= x, $ ^= x << -16, x = (Z >>> 2 ^ $) & 858993459, $ ^= x, Z ^= x << 2, x = ($ >>> -16 ^ Z) & 65535, Z ^= x, $ ^= x << -16, x = (Z >>> 1 ^ $) & 1431655765, $ ^= x, Z ^= x << 1, x = ($ >>> 8 ^ Z) & 16711935, Z ^= x, $ ^= x << 8, x = (Z >>> 1 ^ $) & 1431655765, $ ^= x, Z ^= x << 1, x = Z << 8 | $ >>> 20 & 240, Z = $ << 24 | $ << 8 & 16711680 | $ >>> 8 & 65280 | $ >>> 24 & 240, $ = x;
|
|
3052
3062
|
for (var se = 0; se < Q.length; ++se) {
|
|
3053
|
-
Q[se] ? (Z = Z << 2 | Z >>> 26,
|
|
3054
|
-
var le = y[Z >>> 28] | A[Z >>> 24 & 15] | m[Z >>> 20 & 15] | s[Z >>> 16 & 15] | h[Z >>> 12 & 15] | v[Z >>> 8 & 15] | b[Z >>> 4 & 15], he = N[
|
|
3063
|
+
Q[se] ? (Z = Z << 2 | Z >>> 26, $ = $ << 2 | $ >>> 26) : (Z = Z << 1 | Z >>> 27, $ = $ << 1 | $ >>> 27), Z &= -15, $ &= -15;
|
|
3064
|
+
var le = y[Z >>> 28] | A[Z >>> 24 & 15] | m[Z >>> 20 & 15] | s[Z >>> 16 & 15] | h[Z >>> 12 & 15] | v[Z >>> 8 & 15] | b[Z >>> 4 & 15], he = N[$ >>> 28] | p[$ >>> 24 & 15] | i[$ >>> 20 & 15] | n[$ >>> 16 & 15] | k[$ >>> 12 & 15] | P[$ >>> 8 & 15] | K[$ >>> 4 & 15];
|
|
3055
3065
|
x = (he >>> 16 ^ le) & 65535, M[G++] = le ^ x, M[G++] = he ^ x << 16;
|
|
3056
3066
|
}
|
|
3057
3067
|
}
|
|
@@ -3091,7 +3101,7 @@ var yr, fa;
|
|
|
3091
3101
|
function zr() {
|
|
3092
3102
|
if (fa) return yr;
|
|
3093
3103
|
fa = 1;
|
|
3094
|
-
var t =
|
|
3104
|
+
var t = de();
|
|
3095
3105
|
Mt(), At(), me();
|
|
3096
3106
|
var e = t.pkcs5 = t.pkcs5 || {}, r;
|
|
3097
3107
|
return t.util.isNodejs && !t.options.usePureJavaScript && (r = xr), yr = t.pbkdf2 = e.pbkdf2 = function(d, S, C, f, a, g) {
|
|
@@ -3147,7 +3157,7 @@ var Ft = { exports: {} }, vr = { exports: {} }, pa;
|
|
|
3147
3157
|
function Wa() {
|
|
3148
3158
|
if (pa) return vr.exports;
|
|
3149
3159
|
pa = 1;
|
|
3150
|
-
var t =
|
|
3160
|
+
var t = de();
|
|
3151
3161
|
At(), me();
|
|
3152
3162
|
var e = vr.exports = t.sha256 = t.sha256 || {};
|
|
3153
3163
|
t.md.sha256 = t.md.algorithms.sha256 = e, e.create = function() {
|
|
@@ -3293,7 +3303,7 @@ var mr = { exports: {} }, da;
|
|
|
3293
3303
|
function _a() {
|
|
3294
3304
|
if (da) return mr.exports;
|
|
3295
3305
|
da = 1;
|
|
3296
|
-
var t =
|
|
3306
|
+
var t = de();
|
|
3297
3307
|
me();
|
|
3298
3308
|
var e = null;
|
|
3299
3309
|
t.util.isNodejs && !t.options.usePureJavaScript && !process.versions["node-webkit"] && (e = xr);
|
|
@@ -3437,7 +3447,7 @@ var ha;
|
|
|
3437
3447
|
function ft() {
|
|
3438
3448
|
if (ha) return Ft.exports;
|
|
3439
3449
|
ha = 1;
|
|
3440
|
-
var t =
|
|
3450
|
+
var t = de();
|
|
3441
3451
|
return Tt(), Wa(), _a(), me(), (function() {
|
|
3442
3452
|
if (t.random && t.random.getBytes) {
|
|
3443
3453
|
Ft.exports = t.random;
|
|
@@ -3496,7 +3506,7 @@ var Ar, ga;
|
|
|
3496
3506
|
function $a() {
|
|
3497
3507
|
if (ga) return Ar;
|
|
3498
3508
|
ga = 1;
|
|
3499
|
-
var t =
|
|
3509
|
+
var t = de();
|
|
3500
3510
|
me();
|
|
3501
3511
|
var e = [
|
|
3502
3512
|
217,
|
|
@@ -3872,7 +3882,7 @@ var Cr, ya;
|
|
|
3872
3882
|
function Zt() {
|
|
3873
3883
|
if (ya) return Cr;
|
|
3874
3884
|
ya = 1;
|
|
3875
|
-
var t =
|
|
3885
|
+
var t = de();
|
|
3876
3886
|
Cr = t.jsbn = t.jsbn || {};
|
|
3877
3887
|
var e;
|
|
3878
3888
|
function r(B, R, L) {
|
|
@@ -4080,7 +4090,7 @@ function Zt() {
|
|
|
4080
4090
|
function Z(B) {
|
|
4081
4091
|
this.m = B;
|
|
4082
4092
|
}
|
|
4083
|
-
function
|
|
4093
|
+
function $(B) {
|
|
4084
4094
|
return B.s < 0 || B.compareTo(this.m) >= 0 ? B.mod(this.m) : B;
|
|
4085
4095
|
}
|
|
4086
4096
|
function se(B) {
|
|
@@ -4095,7 +4105,7 @@ function Zt() {
|
|
|
4095
4105
|
function Ce(B, R) {
|
|
4096
4106
|
B.squareTo(R), this.reduce(R);
|
|
4097
4107
|
}
|
|
4098
|
-
Z.prototype.convert =
|
|
4108
|
+
Z.prototype.convert = $, Z.prototype.revert = se, Z.prototype.reduce = le, Z.prototype.mulTo = he, Z.prototype.sqrTo = Ce;
|
|
4099
4109
|
function W() {
|
|
4100
4110
|
if (this.t < 1) return 0;
|
|
4101
4111
|
var B = this.data[0];
|
|
@@ -4114,7 +4124,7 @@ function Zt() {
|
|
|
4114
4124
|
var R = d();
|
|
4115
4125
|
return B.copyTo(R), this.reduce(R), R;
|
|
4116
4126
|
}
|
|
4117
|
-
function
|
|
4127
|
+
function _(B) {
|
|
4118
4128
|
for (; B.t <= this.mt2; )
|
|
4119
4129
|
B.data[B.t++] = 0;
|
|
4120
4130
|
for (var R = 0; R < this.m.t; ++R) {
|
|
@@ -4130,7 +4140,7 @@ function Zt() {
|
|
|
4130
4140
|
function w(B, R, L) {
|
|
4131
4141
|
B.multiplyTo(R, L), this.reduce(L);
|
|
4132
4142
|
}
|
|
4133
|
-
ce.prototype.convert = z, ce.prototype.revert = oe, ce.prototype.reduce =
|
|
4143
|
+
ce.prototype.convert = z, ce.prototype.revert = oe, ce.prototype.reduce = _, ce.prototype.mulTo = w, ce.prototype.sqrTo = c;
|
|
4134
4144
|
function U() {
|
|
4135
4145
|
return (this.t > 0 ? this.data[0] & 1 : this.s) == 0;
|
|
4136
4146
|
}
|
|
@@ -4253,16 +4263,16 @@ function Zt() {
|
|
|
4253
4263
|
function qe(B, R) {
|
|
4254
4264
|
return B ^ R;
|
|
4255
4265
|
}
|
|
4256
|
-
function
|
|
4266
|
+
function Xe(B) {
|
|
4257
4267
|
var R = d();
|
|
4258
4268
|
return this.bitwiseTo(B, qe, R), R;
|
|
4259
4269
|
}
|
|
4260
|
-
function
|
|
4270
|
+
function Je(B, R) {
|
|
4261
4271
|
return B & ~R;
|
|
4262
4272
|
}
|
|
4263
4273
|
function $e(B) {
|
|
4264
4274
|
var R = d();
|
|
4265
|
-
return this.bitwiseTo(B,
|
|
4275
|
+
return this.bitwiseTo(B, Je, R), R;
|
|
4266
4276
|
}
|
|
4267
4277
|
function rt() {
|
|
4268
4278
|
for (var B = d(), R = 0; R < this.t; ++R) B.data[R] = this.DM & ~this.data[R];
|
|
@@ -4307,7 +4317,7 @@ function Zt() {
|
|
|
4307
4317
|
return this.changeBit(B, Re);
|
|
4308
4318
|
}
|
|
4309
4319
|
function we(B) {
|
|
4310
|
-
return this.changeBit(B,
|
|
4320
|
+
return this.changeBit(B, Je);
|
|
4311
4321
|
}
|
|
4312
4322
|
function De(B) {
|
|
4313
4323
|
return this.changeBit(B, qe);
|
|
@@ -4516,13 +4526,13 @@ function Zt() {
|
|
|
4516
4526
|
}
|
|
4517
4527
|
};
|
|
4518
4528
|
}
|
|
4519
|
-
return r.prototype.chunkSize = ie, r.prototype.toRadix = te, r.prototype.fromRadix = ue, r.prototype.fromNumber = ye, r.prototype.bitwiseTo = Be, r.prototype.changeBit = jt, r.prototype.addTo = Oe, r.prototype.dMultiply = je, r.prototype.dAddOffset = Ge, r.prototype.multiplyLowerTo = fn, r.prototype.multiplyUpperTo = pn, r.prototype.modInt = Cn, r.prototype.millerRabin = Bn, r.prototype.clone = j, r.prototype.intValue = V, r.prototype.byteValue = Y, r.prototype.shortValue = ae, r.prototype.signum = F, r.prototype.toByteArray = fe, r.prototype.equals = Se, r.prototype.min = ke, r.prototype.max = Te, r.prototype.and = Ie, r.prototype.or = Fe, r.prototype.xor =
|
|
4529
|
+
return r.prototype.chunkSize = ie, r.prototype.toRadix = te, r.prototype.fromRadix = ue, r.prototype.fromNumber = ye, r.prototype.bitwiseTo = Be, r.prototype.changeBit = jt, r.prototype.addTo = Oe, r.prototype.dMultiply = je, r.prototype.dAddOffset = Ge, r.prototype.multiplyLowerTo = fn, r.prototype.multiplyUpperTo = pn, r.prototype.modInt = Cn, r.prototype.millerRabin = Bn, r.prototype.clone = j, r.prototype.intValue = V, r.prototype.byteValue = Y, r.prototype.shortValue = ae, r.prototype.signum = F, r.prototype.toByteArray = fe, r.prototype.equals = Se, r.prototype.min = ke, r.prototype.max = Te, r.prototype.and = Ie, r.prototype.or = Fe, r.prototype.xor = Xe, r.prototype.andNot = $e, r.prototype.not = rt, r.prototype.shiftLeft = ot, r.prototype.shiftRight = pt, r.prototype.getLowestSetBit = Ct, r.prototype.bitCount = Rt, r.prototype.testBit = Ot, r.prototype.setBit = Ne, r.prototype.clearBit = we, r.prototype.flipBit = De, r.prototype.add = Pe, r.prototype.subtract = Le, r.prototype.multiply = Ke, r.prototype.divide = Ve, r.prototype.remainder = Me, r.prototype.divideAndRemainder = Qe, r.prototype.modPow = mn, r.prototype.modInverse = En, r.prototype.pow = cn, r.prototype.gcd = An, r.prototype.isProbablePrime = Sn, Cr;
|
|
4520
4530
|
}
|
|
4521
4531
|
var Er = { exports: {} }, Ir = { exports: {} }, va;
|
|
4522
4532
|
function Qt() {
|
|
4523
4533
|
if (va) return Ir.exports;
|
|
4524
4534
|
va = 1;
|
|
4525
|
-
var t =
|
|
4535
|
+
var t = de();
|
|
4526
4536
|
At(), me();
|
|
4527
4537
|
var e = Ir.exports = t.sha1 = t.sha1 || {};
|
|
4528
4538
|
t.md.sha1 = t.md.algorithms.sha1 = e, e.create = function() {
|
|
@@ -4603,7 +4613,7 @@ var ma;
|
|
|
4603
4613
|
function en() {
|
|
4604
4614
|
if (ma) return Er.exports;
|
|
4605
4615
|
ma = 1;
|
|
4606
|
-
var t =
|
|
4616
|
+
var t = de();
|
|
4607
4617
|
me(), ft(), Qt();
|
|
4608
4618
|
var e = Er.exports = t.pkcs1 = t.pkcs1 || {};
|
|
4609
4619
|
e.encode_rsa_oaep = function(d, S, C) {
|
|
@@ -4666,7 +4676,7 @@ var qt = { exports: {} }, Aa;
|
|
|
4666
4676
|
function tn() {
|
|
4667
4677
|
if (Aa) return qt.exports;
|
|
4668
4678
|
Aa = 1;
|
|
4669
|
-
var t =
|
|
4679
|
+
var t = de();
|
|
4670
4680
|
return me(), Zt(), ft(), (function() {
|
|
4671
4681
|
if (t.prime) {
|
|
4672
4682
|
qt.exports = t.prime;
|
|
@@ -4759,7 +4769,7 @@ var Sr, Ca;
|
|
|
4759
4769
|
function Wt() {
|
|
4760
4770
|
if (Ca) return Sr;
|
|
4761
4771
|
Ca = 1;
|
|
4762
|
-
var t =
|
|
4772
|
+
var t = de();
|
|
4763
4773
|
if (ht(), Zt(), kt(), en(), tn(), ft(), me(), typeof e > "u")
|
|
4764
4774
|
var e = t.jsbn.BigInteger;
|
|
4765
4775
|
var r = t.util.isNodejs ? xr : null, d = t.asn1, S = t.util;
|
|
@@ -5063,8 +5073,8 @@ function Wt() {
|
|
|
5063
5073
|
"algorithm" in i || (i.algorithm = "PRIMEINC");
|
|
5064
5074
|
var k = new e(null);
|
|
5065
5075
|
k.fromInt(30);
|
|
5066
|
-
for (var P = 0, K = function(Z,
|
|
5067
|
-
return Z |
|
|
5076
|
+
for (var P = 0, K = function(Z, $) {
|
|
5077
|
+
return Z | $;
|
|
5068
5078
|
}, D = +/* @__PURE__ */ new Date(), M, Q = 0; i.keys === null && (n <= 0 || Q < n); ) {
|
|
5069
5079
|
if (i.state === 0) {
|
|
5070
5080
|
var G = i.p === null ? i.pBits : i.qBits, x = G - 1;
|
|
@@ -5162,12 +5172,12 @@ function Wt() {
|
|
|
5162
5172
|
G.privateKey
|
|
5163
5173
|
);
|
|
5164
5174
|
x.oncomplete = function(X) {
|
|
5165
|
-
var Z = X.target.result,
|
|
5175
|
+
var Z = X.target.result, $ = C.privateKeyFromAsn1(
|
|
5166
5176
|
d.fromDer(t.util.createBuffer(Z))
|
|
5167
5177
|
);
|
|
5168
5178
|
P(null, {
|
|
5169
|
-
privateKey:
|
|
5170
|
-
publicKey: C.setRsaPublicKey(
|
|
5179
|
+
privateKey: $,
|
|
5180
|
+
publicKey: C.setRsaPublicKey($.n, $.e)
|
|
5171
5181
|
});
|
|
5172
5182
|
}, x.onerror = function(X) {
|
|
5173
5183
|
P(X);
|
|
@@ -5234,12 +5244,12 @@ function Wt() {
|
|
|
5234
5244
|
x = A(x, k, !0);
|
|
5235
5245
|
var X = d.fromDer(x, {
|
|
5236
5246
|
parseAllBytes: M._parseAllDigestBytes
|
|
5237
|
-
}), Z = {},
|
|
5238
|
-
if (!d.validate(X, O, Z,
|
|
5247
|
+
}), Z = {}, $ = [];
|
|
5248
|
+
if (!d.validate(X, O, Z, $)) {
|
|
5239
5249
|
var se = new Error(
|
|
5240
5250
|
"ASN.1 object does not contain a valid RSASSA-PKCS1-v1_5 DigestInfo value."
|
|
5241
5251
|
);
|
|
5242
|
-
throw se.errors =
|
|
5252
|
+
throw se.errors = $, se;
|
|
5243
5253
|
}
|
|
5244
5254
|
var le = d.derToOid(Z.algorithmIdentifier);
|
|
5245
5255
|
if (!(le === t.oids.md2 || le === t.oids.md5 || le === t.oids.sha1 || le === t.oids.sha224 || le === t.oids.sha256 || le === t.oids.sha384 || le === t.oids.sha512 || le === t.oids["sha512-224"] || le === t.oids["sha512-256"])) {
|
|
@@ -5275,7 +5285,7 @@ function Wt() {
|
|
|
5275
5285
|
};
|
|
5276
5286
|
return G.decrypt = function(x, X, Z) {
|
|
5277
5287
|
typeof X == "string" ? X = X.toUpperCase() : X === void 0 && (X = "RSAES-PKCS1-V1_5");
|
|
5278
|
-
var
|
|
5288
|
+
var $ = C.rsa.decrypt(x, G, !1, !1);
|
|
5279
5289
|
if (X === "RSAES-PKCS1-V1_5")
|
|
5280
5290
|
X = { decode: A };
|
|
5281
5291
|
else if (X === "RSA-OAEP" || X === "RSAES-OAEP")
|
|
@@ -5290,14 +5300,14 @@ function Wt() {
|
|
|
5290
5300
|
} };
|
|
5291
5301
|
else
|
|
5292
5302
|
throw new Error('Unsupported encryption scheme: "' + X + '".');
|
|
5293
|
-
return X.decode(
|
|
5303
|
+
return X.decode($, G, !1);
|
|
5294
5304
|
}, G.sign = function(x, X) {
|
|
5295
5305
|
var Z = !1;
|
|
5296
5306
|
typeof X == "string" && (X = X.toUpperCase()), X === void 0 || X === "RSASSA-PKCS1-V1_5" ? (X = { encode: E }, Z = 1) : (X === "NONE" || X === "NULL" || X === null) && (X = { encode: function() {
|
|
5297
5307
|
return x;
|
|
5298
5308
|
} }, Z = 1);
|
|
5299
|
-
var
|
|
5300
|
-
return C.rsa.encrypt(
|
|
5309
|
+
var $ = X.encode(x, G.n.bitLength());
|
|
5310
|
+
return C.rsa.encrypt($, G, Z);
|
|
5301
5311
|
}, G;
|
|
5302
5312
|
}, C.wrapRsaPrivateKey = function(i) {
|
|
5303
5313
|
return d.create(d.Class.UNIVERSAL, d.Type.SEQUENCE, !0, [
|
|
@@ -5611,7 +5621,7 @@ var Br, Ea;
|
|
|
5611
5621
|
function rn() {
|
|
5612
5622
|
if (Ea) return Br;
|
|
5613
5623
|
Ea = 1;
|
|
5614
|
-
var t =
|
|
5624
|
+
var t = de();
|
|
5615
5625
|
if (Tt(), ht(), Jt(), At(), kt(), zr(), Dt(), ft(), $a(), Wt(), me(), typeof e > "u")
|
|
5616
5626
|
var e = t.jsbn.BigInteger;
|
|
5617
5627
|
var r = t.asn1, d = t.pki = t.pki || {};
|
|
@@ -5993,7 +6003,7 @@ function rn() {
|
|
|
5993
6003
|
for (var x = Math.ceil(m / b), X = 1; X <= x; X++) {
|
|
5994
6004
|
var Z = new t.util.ByteBuffer();
|
|
5995
6005
|
Z.putBytes(P.bytes()), Z.putBytes(G.bytes());
|
|
5996
|
-
for (var
|
|
6006
|
+
for (var $ = 0; $ < A; $++)
|
|
5997
6007
|
s.start(), s.update(Z.getBytes()), Z = s.digest();
|
|
5998
6008
|
var se = new t.util.ByteBuffer();
|
|
5999
6009
|
for (v = 0; v < N; v++)
|
|
@@ -6192,7 +6202,7 @@ var br = { exports: {} }, Tr = { exports: {} }, Ia;
|
|
|
6192
6202
|
function an() {
|
|
6193
6203
|
if (Ia) return Tr.exports;
|
|
6194
6204
|
Ia = 1;
|
|
6195
|
-
var t =
|
|
6205
|
+
var t = de();
|
|
6196
6206
|
ht(), me();
|
|
6197
6207
|
var e = t.asn1, r = Tr.exports = t.pkcs7asn1 = t.pkcs7asn1 || {};
|
|
6198
6208
|
t.pkcs7 = t.pkcs7 || {}, t.pkcs7.asn1 = r;
|
|
@@ -6487,7 +6497,7 @@ var kr = { exports: {} }, Rr = { exports: {} }, Sa;
|
|
|
6487
6497
|
function nn() {
|
|
6488
6498
|
if (Sa) return Rr.exports;
|
|
6489
6499
|
Sa = 1;
|
|
6490
|
-
var t =
|
|
6500
|
+
var t = de();
|
|
6491
6501
|
me(), t.mgf = t.mgf || {};
|
|
6492
6502
|
var e = Rr.exports = t.mgf.mgf1 = t.mgf1 = t.mgf1 || {};
|
|
6493
6503
|
return e.create = function(r) {
|
|
@@ -6514,14 +6524,14 @@ var Ur, Ba;
|
|
|
6514
6524
|
function os() {
|
|
6515
6525
|
if (Ba) return Ur;
|
|
6516
6526
|
Ba = 1;
|
|
6517
|
-
var t =
|
|
6527
|
+
var t = de();
|
|
6518
6528
|
return nn(), Ur = t.mgf = t.mgf || {}, t.mgf.mgf1 = t.mgf1, Ur;
|
|
6519
6529
|
}
|
|
6520
6530
|
var Nr = { exports: {} }, ba;
|
|
6521
6531
|
function Fr() {
|
|
6522
6532
|
if (ba) return Nr.exports;
|
|
6523
6533
|
ba = 1;
|
|
6524
|
-
var t =
|
|
6534
|
+
var t = de();
|
|
6525
6535
|
ft(), me();
|
|
6526
6536
|
var e = Nr.exports = t.pss = t.pss || {};
|
|
6527
6537
|
return e.create = function(r) {
|
|
@@ -6587,7 +6597,7 @@ var Ta;
|
|
|
6587
6597
|
function qr() {
|
|
6588
6598
|
if (Ta) return kr.exports;
|
|
6589
6599
|
Ta = 1;
|
|
6590
|
-
var t =
|
|
6600
|
+
var t = de();
|
|
6591
6601
|
Tt(), ht(), Jt(), At(), os(), kt(), Dt(), Fr(), Wt(), me();
|
|
6592
6602
|
var e = t.asn1, r = kr.exports = t.pki = t.pki || {}, d = r.oids, S = {};
|
|
6593
6603
|
S.CN = d.commonName, S.commonName = "CN", S.C = d.countryName, S.countryName = "C", S.L = d.localityName, S.localityName = "L", S.ST = d.stateOrProvinceName, S.stateOrProvinceName = "ST", S.O = d.organizationName, S.organizationName = "O", S.OU = d.organizationalUnitName, S.organizationalUnitName = "OU", S.E = d.emailAddress, S.emailAddress = "E";
|
|
@@ -7251,8 +7261,8 @@ function qr() {
|
|
|
7251
7261
|
}, D.issuer.addField = function(se) {
|
|
7252
7262
|
A([se]), D.issuer.attributes.push(se);
|
|
7253
7263
|
}, D.issuer.attributes = r.RDNAttributesAsArray(n.certIssuer), n.certIssuerUniqueId && (D.issuer.uniqueId = n.certIssuerUniqueId), D.issuer.hash = x.digest().toHex();
|
|
7254
|
-
var Z = t.md.sha1.create(),
|
|
7255
|
-
return Z.update(
|
|
7264
|
+
var Z = t.md.sha1.create(), $ = e.toDer(n.certSubject);
|
|
7265
|
+
return Z.update($.getBytes()), D.subject.getField = function(se) {
|
|
7256
7266
|
return I(D.subject, se);
|
|
7257
7267
|
}, D.subject.addField = function(se) {
|
|
7258
7268
|
A([se]), D.subject.attributes.push(se);
|
|
@@ -7556,13 +7566,13 @@ function qr() {
|
|
|
7556
7566
|
);
|
|
7557
7567
|
}
|
|
7558
7568
|
if (p.authorityCertIssuer) {
|
|
7559
|
-
var
|
|
7569
|
+
var $ = [
|
|
7560
7570
|
e.create(e.Class.CONTEXT_SPECIFIC, 4, !0, [
|
|
7561
7571
|
y(p.authorityCertIssuer === !0 ? i.cert.issuer : p.authorityCertIssuer)
|
|
7562
7572
|
])
|
|
7563
7573
|
];
|
|
7564
7574
|
M.push(
|
|
7565
|
-
e.create(e.Class.CONTEXT_SPECIFIC, 1, !0,
|
|
7575
|
+
e.create(e.Class.CONTEXT_SPECIFIC, 1, !0, $)
|
|
7566
7576
|
);
|
|
7567
7577
|
}
|
|
7568
7578
|
if (p.serialNumber) {
|
|
@@ -7979,12 +7989,12 @@ function qr() {
|
|
|
7979
7989
|
message: "Certificate issuer is invalid.",
|
|
7980
7990
|
error: r.certificateError.bad_certificate
|
|
7981
7991
|
}), D === null)
|
|
7982
|
-
for (var
|
|
7992
|
+
for (var $ = {
|
|
7983
7993
|
keyUsage: !0,
|
|
7984
7994
|
basicConstraints: !0
|
|
7985
7995
|
}, se = 0; D === null && se < Q.extensions.length; ++se) {
|
|
7986
7996
|
var le = Q.extensions[se];
|
|
7987
|
-
le.critical && !(le.name in
|
|
7997
|
+
le.critical && !(le.name in $) && (D = {
|
|
7988
7998
|
message: "Certificate has an unsupported critical extension.",
|
|
7989
7999
|
error: r.certificateError.unsupported_certificate
|
|
7990
8000
|
});
|
|
@@ -8022,7 +8032,7 @@ var ka;
|
|
|
8022
8032
|
function sn() {
|
|
8023
8033
|
if (ka) return br.exports;
|
|
8024
8034
|
ka = 1;
|
|
8025
|
-
var t =
|
|
8035
|
+
var t = de();
|
|
8026
8036
|
ht(), Mt(), kt(), an(), rn(), ft(), Wt(), Qt(), me(), qr();
|
|
8027
8037
|
var e = t.asn1, r = t.pki, d = br.exports = t.pkcs12 = t.pkcs12 || {}, S = {
|
|
8028
8038
|
name: "ContentInfo",
|
|
@@ -8615,7 +8625,7 @@ function sn() {
|
|
|
8615
8625
|
// bagAttributes (OPTIONAL)
|
|
8616
8626
|
b
|
|
8617
8627
|
]);
|
|
8618
|
-
var
|
|
8628
|
+
var $ = e.create(e.Class.UNIVERSAL, e.Type.SEQUENCE, !0, [X]), se = (
|
|
8619
8629
|
// PKCS#7 ContentInfo
|
|
8620
8630
|
e.create(e.Class.UNIVERSAL, e.Type.SEQUENCE, !0, [
|
|
8621
8631
|
// contentType
|
|
@@ -8632,7 +8642,7 @@ function sn() {
|
|
|
8632
8642
|
e.Class.UNIVERSAL,
|
|
8633
8643
|
e.Type.OCTETSTRING,
|
|
8634
8644
|
!1,
|
|
8635
|
-
e.toDer(
|
|
8645
|
+
e.toDer($).getBytes()
|
|
8636
8646
|
)
|
|
8637
8647
|
])
|
|
8638
8648
|
])
|
|
@@ -8726,7 +8736,7 @@ var Ra;
|
|
|
8726
8736
|
function on() {
|
|
8727
8737
|
if (Ra) return hr.exports;
|
|
8728
8738
|
Ra = 1;
|
|
8729
|
-
var t =
|
|
8739
|
+
var t = de();
|
|
8730
8740
|
ht(), kt(), rn(), Dt(), zr(), sn(), Fr(), Wt(), me(), qr();
|
|
8731
8741
|
var e = t.asn1, r = hr.exports = t.pki = t.pki || {};
|
|
8732
8742
|
return r.pemToDer = function(d) {
|
|
@@ -8762,7 +8772,7 @@ var wr, Ua;
|
|
|
8762
8772
|
function un() {
|
|
8763
8773
|
if (Ua) return wr;
|
|
8764
8774
|
Ua = 1;
|
|
8765
|
-
var t =
|
|
8775
|
+
var t = de();
|
|
8766
8776
|
ht(), Mt(), Hr(), Dt(), on(), ft(), Qt(), me();
|
|
8767
8777
|
var e = function(c, w, U, o) {
|
|
8768
8778
|
var T = t.util.createBuffer(), j = c.length >> 1, V = j + (c.length & 1), Y = c.substr(0, V), ae = c.substr(j, V), ie = t.util.createBuffer(), F = t.hmac.create();
|
|
@@ -9458,17 +9468,17 @@ function un() {
|
|
|
9458
9468
|
/*CER*/
|
|
9459
9469
|
[n, P, K, n, M]
|
|
9460
9470
|
];
|
|
9461
|
-
var G = a.handleHelloRequest, x = a.handleServerHello, X = a.handleCertificate, Z = a.handleServerKeyExchange,
|
|
9471
|
+
var G = a.handleHelloRequest, x = a.handleServerHello, X = a.handleCertificate, Z = a.handleServerKeyExchange, $ = a.handleCertificateRequest, se = a.handleServerHelloDone, le = a.handleFinished, he = [];
|
|
9462
9472
|
he[a.ConnectionEnd.client] = [
|
|
9463
9473
|
// HR,01,SH,03,04,05,06,07,08,09,10,SC,SK,CR,HD,15,CK,17,18,19,FI
|
|
9464
9474
|
/*SHE*/
|
|
9465
9475
|
[n, n, x, n, n, n, n, n, n, n, n, n, n, n, n, n, n, n, n, n, n],
|
|
9466
9476
|
/*SCE*/
|
|
9467
|
-
[G, n, n, n, n, n, n, n, n, n, n, X, Z,
|
|
9477
|
+
[G, n, n, n, n, n, n, n, n, n, n, X, Z, $, se, n, n, n, n, n, n],
|
|
9468
9478
|
/*SKE*/
|
|
9469
|
-
[G, n, n, n, n, n, n, n, n, n, n, n, Z,
|
|
9479
|
+
[G, n, n, n, n, n, n, n, n, n, n, n, Z, $, se, n, n, n, n, n, n],
|
|
9470
9480
|
/*SCR*/
|
|
9471
|
-
[G, n, n, n, n, n, n, n, n, n, n, n, n,
|
|
9481
|
+
[G, n, n, n, n, n, n, n, n, n, n, n, n, $, se, n, n, n, n, n, n],
|
|
9472
9482
|
/*SHD*/
|
|
9473
9483
|
[G, n, n, n, n, n, n, n, n, n, n, n, n, n, se, n, n, n, n, n, n],
|
|
9474
9484
|
/*SCC*/
|
|
@@ -10045,15 +10055,15 @@ function un() {
|
|
|
10045
10055
|
})), a.flush(V)), V.closed(V)), V.reset(F);
|
|
10046
10056
|
}, V;
|
|
10047
10057
|
}, wr = t.tls = t.tls || {};
|
|
10048
|
-
for (var
|
|
10049
|
-
typeof a[
|
|
10058
|
+
for (var _ in a)
|
|
10059
|
+
typeof a[_] != "function" && (t.tls[_] = a[_]);
|
|
10050
10060
|
return t.tls.prf_tls1 = e, t.tls.hmac_sha1 = r, t.tls.createSessionCache = a.createSessionCache, t.tls.createConnection = a.createConnection, wr;
|
|
10051
10061
|
}
|
|
10052
10062
|
var Na;
|
|
10053
10063
|
function us() {
|
|
10054
10064
|
if (Na) return or.exports;
|
|
10055
10065
|
Na = 1;
|
|
10056
|
-
var t =
|
|
10066
|
+
var t = de();
|
|
10057
10067
|
Tt(), un();
|
|
10058
10068
|
var e = or.exports = t.tls;
|
|
10059
10069
|
e.CipherSuites.TLS_RSA_WITH_AES_128_CBC_SHA = {
|
|
@@ -10127,7 +10137,7 @@ var Dr = { exports: {} }, wa;
|
|
|
10127
10137
|
function ln() {
|
|
10128
10138
|
if (wa) return Dr.exports;
|
|
10129
10139
|
wa = 1;
|
|
10130
|
-
var t =
|
|
10140
|
+
var t = de();
|
|
10131
10141
|
At(), me();
|
|
10132
10142
|
var e = Dr.exports = t.sha512 = t.sha512 || {};
|
|
10133
10143
|
t.md.sha512 = t.md.algorithms.sha512 = e;
|
|
@@ -10326,7 +10336,7 @@ function ln() {
|
|
|
10326
10336
|
], S = !0;
|
|
10327
10337
|
}
|
|
10328
10338
|
function g(u, I, O) {
|
|
10329
|
-
for (var E, l, y, A, m, s, h, v, b, N, p, i, n, k, P, K, D, M, Q, G, x, X, Z,
|
|
10339
|
+
for (var E, l, y, A, m, s, h, v, b, N, p, i, n, k, P, K, D, M, Q, G, x, X, Z, $, se, le, he, Ce, W, ce, z, oe, _, c, w, U = O.length(); U >= 128; ) {
|
|
10330
10340
|
for (W = 0; W < 16; ++W)
|
|
10331
10341
|
I[W][0] = O.getInt32() >>> 0, I[W][1] = O.getInt32() >>> 0;
|
|
10332
10342
|
for (; W < 80; ++W)
|
|
@@ -10338,18 +10348,18 @@ function ln() {
|
|
|
10338
10348
|
(ce >>> 8 | z << 24) ^ // ROTR 8
|
|
10339
10349
|
ce >>> 7) >>> 0, A = ((ce << 31 | z >>> 1) ^ // ROTR 1
|
|
10340
10350
|
(ce << 24 | z >>> 8) ^ // ROTR 8
|
|
10341
|
-
(ce << 25 | z >>> 7)) >>> 0,
|
|
10342
|
-
for (n = u[0][0], k = u[0][1], P = u[1][0], K = u[1][1], D = u[2][0], M = u[2][1], Q = u[3][0], G = u[3][1], x = u[4][0], X = u[4][1], Z = u[5][0],
|
|
10351
|
+
(ce << 25 | z >>> 7)) >>> 0, _ = I[W - 7], w = I[W - 16], z = l + _[1] + A + w[1], I[W][0] = E + _[0] + y + w[0] + (z / 4294967296 >>> 0) >>> 0, I[W][1] = z >>> 0;
|
|
10352
|
+
for (n = u[0][0], k = u[0][1], P = u[1][0], K = u[1][1], D = u[2][0], M = u[2][1], Q = u[3][0], G = u[3][1], x = u[4][0], X = u[4][1], Z = u[5][0], $ = u[5][1], se = u[6][0], le = u[6][1], he = u[7][0], Ce = u[7][1], W = 0; W < 80; ++W)
|
|
10343
10353
|
h = ((x >>> 14 | X << 18) ^ // ROTR 14
|
|
10344
10354
|
(x >>> 18 | X << 14) ^ // ROTR 18
|
|
10345
10355
|
(X >>> 9 | x << 23)) >>> 0, v = ((x << 18 | X >>> 14) ^ // ROTR 14
|
|
10346
10356
|
(x << 14 | X >>> 18) ^ // ROTR 18
|
|
10347
|
-
(X << 23 | x >>> 9)) >>> 0, b = (se ^ x & (Z ^ se)) >>> 0, N = (le ^ X & (
|
|
10357
|
+
(X << 23 | x >>> 9)) >>> 0, b = (se ^ x & (Z ^ se)) >>> 0, N = (le ^ X & ($ ^ le)) >>> 0, m = ((n >>> 28 | k << 4) ^ // ROTR 28
|
|
10348
10358
|
(k >>> 2 | n << 30) ^ // ROTR 34/(swap + ROTR 2)
|
|
10349
10359
|
(k >>> 7 | n << 25)) >>> 0, s = ((n << 4 | k >>> 28) ^ // ROTR 28
|
|
10350
10360
|
(k << 30 | n >>> 2) ^ // ROTR 34/(swap + ROTR 2)
|
|
10351
|
-
(k << 25 | n >>> 7)) >>> 0, p = (n & P | D & (n ^ P)) >>> 0, i = (k & K | M & (k ^ K)) >>> 0, z = Ce + v + N + C[W][1] + I[W][1], E = he + h + b + C[W][0] + I[W][0] + (z / 4294967296 >>> 0) >>> 0, l = z >>> 0, z = s + i, y = m + p + (z / 4294967296 >>> 0) >>> 0, A = z >>> 0, he = se, Ce = le, se = Z, le =
|
|
10352
|
-
z = u[0][1] + k, u[0][0] = u[0][0] + n + (z / 4294967296 >>> 0) >>> 0, u[0][1] = z >>> 0, z = u[1][1] + K, u[1][0] = u[1][0] + P + (z / 4294967296 >>> 0) >>> 0, u[1][1] = z >>> 0, z = u[2][1] + M, u[2][0] = u[2][0] + D + (z / 4294967296 >>> 0) >>> 0, u[2][1] = z >>> 0, z = u[3][1] + G, u[3][0] = u[3][0] + Q + (z / 4294967296 >>> 0) >>> 0, u[3][1] = z >>> 0, z = u[4][1] + X, u[4][0] = u[4][0] + x + (z / 4294967296 >>> 0) >>> 0, u[4][1] = z >>> 0, z = u[5][1] +
|
|
10361
|
+
(k << 25 | n >>> 7)) >>> 0, p = (n & P | D & (n ^ P)) >>> 0, i = (k & K | M & (k ^ K)) >>> 0, z = Ce + v + N + C[W][1] + I[W][1], E = he + h + b + C[W][0] + I[W][0] + (z / 4294967296 >>> 0) >>> 0, l = z >>> 0, z = s + i, y = m + p + (z / 4294967296 >>> 0) >>> 0, A = z >>> 0, he = se, Ce = le, se = Z, le = $, Z = x, $ = X, z = G + l, x = Q + E + (z / 4294967296 >>> 0) >>> 0, X = z >>> 0, Q = D, G = M, D = P, M = K, P = n, K = k, z = l + A, n = E + y + (z / 4294967296 >>> 0) >>> 0, k = z >>> 0;
|
|
10362
|
+
z = u[0][1] + k, u[0][0] = u[0][0] + n + (z / 4294967296 >>> 0) >>> 0, u[0][1] = z >>> 0, z = u[1][1] + K, u[1][0] = u[1][0] + P + (z / 4294967296 >>> 0) >>> 0, u[1][1] = z >>> 0, z = u[2][1] + M, u[2][0] = u[2][0] + D + (z / 4294967296 >>> 0) >>> 0, u[2][1] = z >>> 0, z = u[3][1] + G, u[3][0] = u[3][0] + Q + (z / 4294967296 >>> 0) >>> 0, u[3][1] = z >>> 0, z = u[4][1] + X, u[4][0] = u[4][0] + x + (z / 4294967296 >>> 0) >>> 0, u[4][1] = z >>> 0, z = u[5][1] + $, u[5][0] = u[5][0] + Z + (z / 4294967296 >>> 0) >>> 0, u[5][1] = z >>> 0, z = u[6][1] + le, u[6][0] = u[6][0] + se + (z / 4294967296 >>> 0) >>> 0, u[6][1] = z >>> 0, z = u[7][1] + Ce, u[7][0] = u[7][0] + he + (z / 4294967296 >>> 0) >>> 0, u[7][1] = z >>> 0, U -= 128;
|
|
10353
10363
|
}
|
|
10354
10364
|
}
|
|
10355
10365
|
return Dr.exports;
|
|
@@ -10358,7 +10368,7 @@ var Yt = {}, Da;
|
|
|
10358
10368
|
function ls() {
|
|
10359
10369
|
if (Da) return Yt;
|
|
10360
10370
|
Da = 1;
|
|
10361
|
-
var t =
|
|
10371
|
+
var t = de();
|
|
10362
10372
|
ht();
|
|
10363
10373
|
var e = t.asn1;
|
|
10364
10374
|
return Yt.privateKeyValidator = {
|
|
@@ -10448,7 +10458,7 @@ var Or, Oa;
|
|
|
10448
10458
|
function cs() {
|
|
10449
10459
|
if (Oa) return Or;
|
|
10450
10460
|
Oa = 1;
|
|
10451
|
-
var t =
|
|
10461
|
+
var t = de();
|
|
10452
10462
|
Zt(), ft(), ln(), me();
|
|
10453
10463
|
var e = ls(), r = e.publicKeyValidator, d = e.privateKeyValidator;
|
|
10454
10464
|
if (typeof S > "u")
|
|
@@ -10722,7 +10732,7 @@ function cs() {
|
|
|
10722
10732
|
}
|
|
10723
10733
|
function h(c, w) {
|
|
10724
10734
|
var U = [W(), W(), W(), W()], o, T = s(w, 32);
|
|
10725
|
-
for (T[0] &= 248, T[31] &= 127, T[31] |= 64,
|
|
10735
|
+
for (T[0] &= 248, T[31] &= 127, T[31] |= 64, $(U, T), k(c, U), o = 0; o < 32; ++o)
|
|
10726
10736
|
w[o + 32] = c[o];
|
|
10727
10737
|
return 0;
|
|
10728
10738
|
}
|
|
@@ -10735,7 +10745,7 @@ function cs() {
|
|
|
10735
10745
|
for (T = 0; T < 32; ++T)
|
|
10736
10746
|
c[32 + T] = ae[32 + T];
|
|
10737
10747
|
var F = s(c.subarray(32), U + 32);
|
|
10738
|
-
for (p(F),
|
|
10748
|
+
for (p(F), $(Y, F), k(c, Y), T = 32; T < 64; ++T)
|
|
10739
10749
|
c[T] = o[T];
|
|
10740
10750
|
var te = s(c, U + 64);
|
|
10741
10751
|
for (p(te), T = 32; T < 64; ++T)
|
|
@@ -10756,7 +10766,7 @@ function cs() {
|
|
|
10756
10766
|
for (T = 0; T < 32; ++T)
|
|
10757
10767
|
c[T + 32] = o[T];
|
|
10758
10768
|
var ie = s(c, U);
|
|
10759
|
-
if (p(ie), Z(Y, ae, ie),
|
|
10769
|
+
if (p(ie), Z(Y, ae, ie), $(ae, w.subarray(32)), i(Y, ae), k(V, Y), U -= 64, G(w, 0, V, 0)) {
|
|
10760
10770
|
for (T = 0; T < U; ++T)
|
|
10761
10771
|
c[T] = 0;
|
|
10762
10772
|
return -1;
|
|
@@ -10786,7 +10796,7 @@ function cs() {
|
|
|
10786
10796
|
}
|
|
10787
10797
|
function i(c, w) {
|
|
10788
10798
|
var U = W(), o = W(), T = W(), j = W(), V = W(), Y = W(), ae = W(), ie = W(), F = W();
|
|
10789
|
-
z(U, c[1], c[0]), z(F, w[1], w[0]),
|
|
10799
|
+
z(U, c[1], c[0]), z(F, w[1], w[0]), _(U, U, F), ce(o, c[0], c[1]), ce(F, w[0], w[1]), _(o, o, F), _(T, c[3], w[3]), _(T, T, E), _(j, c[2], w[2]), ce(j, j, j), z(V, o, U), z(Y, j, T), ce(ae, j, T), ce(ie, o, U), _(c[0], V, Y), _(c[1], ie, ae), _(c[2], ae, Y), _(c[3], V, ie);
|
|
10790
10800
|
}
|
|
10791
10801
|
function n(c, w, U) {
|
|
10792
10802
|
for (var o = 0; o < 4; ++o)
|
|
@@ -10794,7 +10804,7 @@ function cs() {
|
|
|
10794
10804
|
}
|
|
10795
10805
|
function k(c, w) {
|
|
10796
10806
|
var U = W(), o = W(), T = W();
|
|
10797
|
-
le(T, w[2]),
|
|
10807
|
+
le(T, w[2]), _(U, w[0], T), _(o, w[1], T), P(c, o), c[31] ^= X(U) << 7;
|
|
10798
10808
|
}
|
|
10799
10809
|
function P(c, w) {
|
|
10800
10810
|
var U, o, T, j = W(), V = W();
|
|
@@ -10810,7 +10820,7 @@ function cs() {
|
|
|
10810
10820
|
}
|
|
10811
10821
|
function K(c, w) {
|
|
10812
10822
|
var U = W(), o = W(), T = W(), j = W(), V = W(), Y = W(), ae = W();
|
|
10813
|
-
return se(c[2], I), D(c[1], w), oe(T, c[1]),
|
|
10823
|
+
return se(c[2], I), D(c[1], w), oe(T, c[1]), _(j, T, O), z(T, T, c[2]), ce(j, c[2], j), oe(V, j), oe(Y, V), _(ae, Y, V), _(U, ae, T), _(U, U, j), M(U, U), _(U, U, T), _(U, U, j), _(U, U, j), _(c[0], U, j), oe(o, c[0]), _(o, o, j), Q(o, T) && _(c[0], c[0], m), oe(o, c[0]), _(o, o, j), Q(o, T) ? -1 : (X(c[0]) === w[31] >> 7 && z(c[0], u, c[0]), _(c[3], c[0], c[1]), 0);
|
|
10814
10824
|
}
|
|
10815
10825
|
function D(c, w) {
|
|
10816
10826
|
var U;
|
|
@@ -10823,7 +10833,7 @@ function cs() {
|
|
|
10823
10833
|
for (o = 0; o < 16; ++o)
|
|
10824
10834
|
U[o] = w[o];
|
|
10825
10835
|
for (o = 250; o >= 0; --o)
|
|
10826
|
-
oe(U, U), o !== 1 &&
|
|
10836
|
+
oe(U, U), o !== 1 && _(U, U, w);
|
|
10827
10837
|
for (o = 0; o < 16; ++o)
|
|
10828
10838
|
c[o] = U[o];
|
|
10829
10839
|
}
|
|
@@ -10849,9 +10859,9 @@ function cs() {
|
|
|
10849
10859
|
for (se(c[0], u), se(c[1], I), se(c[2], I), se(c[3], u), T = 255; T >= 0; --T)
|
|
10850
10860
|
o = U[T / 8 | 0] >> (T & 7) & 1, n(c, w, o), i(w, c), i(c, c), n(c, w, o);
|
|
10851
10861
|
}
|
|
10852
|
-
function
|
|
10862
|
+
function $(c, w) {
|
|
10853
10863
|
var U = [W(), W(), W(), W()];
|
|
10854
|
-
se(U[0], l), se(U[1], y), se(U[2], I),
|
|
10864
|
+
se(U[0], l), se(U[1], y), se(U[2], I), _(U[3], l, y), Z(c, U, w);
|
|
10855
10865
|
}
|
|
10856
10866
|
function se(c, w) {
|
|
10857
10867
|
var U;
|
|
@@ -10863,7 +10873,7 @@ function cs() {
|
|
|
10863
10873
|
for (o = 0; o < 16; ++o)
|
|
10864
10874
|
U[o] = w[o];
|
|
10865
10875
|
for (o = 253; o >= 0; --o)
|
|
10866
|
-
oe(U, U), o !== 2 && o !== 4 &&
|
|
10876
|
+
oe(U, U), o !== 2 && o !== 4 && _(U, U, w);
|
|
10867
10877
|
for (o = 0; o < 16; ++o)
|
|
10868
10878
|
c[o] = U[o];
|
|
10869
10879
|
}
|
|
@@ -10893,11 +10903,11 @@ function cs() {
|
|
|
10893
10903
|
c[o] = w[o] - U[o];
|
|
10894
10904
|
}
|
|
10895
10905
|
function oe(c, w) {
|
|
10896
|
-
|
|
10906
|
+
_(c, w, w);
|
|
10897
10907
|
}
|
|
10898
|
-
function
|
|
10899
|
-
var o, T, j = 0, V = 0, Y = 0, ae = 0, ie = 0, F = 0, te = 0, ue = 0, ye = 0, fe = 0, Se = 0, ke = 0, Te = 0, Be = 0, Ee = 0, Ie = 0, Re = 0, Fe = 0, qe = 0,
|
|
10900
|
-
o = w[0], j += o * Ne, V += o * we, Y += o * De, ae += o * Oe, ie += o * Pe, F += o * Le, te += o * Ke, ue += o * Ve, ye += o * Me, fe += o * Qe, Se += o * je, ke += o * Ge, Te += o * be, Be += o * Ue, Ee += o * He, Ie += o * xe, o = w[1], V += o * Ne, Y += o * we, ae += o * De, ie += o * Oe, F += o * Pe, te += o * Le, ue += o * Ke, ye += o * Ve, fe += o * Me, Se += o * Qe, ke += o * je, Te += o * Ge, Be += o * be, Ee += o * Ue, Ie += o * He, Re += o * xe, o = w[2], Y += o * Ne, ae += o * we, ie += o * De, F += o * Oe, te += o * Pe, ue += o * Le, ye += o * Ke, fe += o * Ve, Se += o * Me, ke += o * Qe, Te += o * je, Be += o * Ge, Ee += o * be, Ie += o * Ue, Re += o * He, Fe += o * xe, o = w[3], ae += o * Ne, ie += o * we, F += o * De, te += o * Oe, ue += o * Pe, ye += o * Le, fe += o * Ke, Se += o * Ve, ke += o * Me, Te += o * Qe, Be += o * je, Ee += o * Ge, Ie += o * be, Re += o * Ue, Fe += o * He, qe += o * xe, o = w[4], ie += o * Ne, F += o * we, te += o * De, ue += o * Oe, ye += o * Pe, fe += o * Le, Se += o * Ke, ke += o * Ve, Te += o * Me, Be += o * Qe, Ee += o * je, Ie += o * Ge, Re += o * be, Fe += o * Ue, qe += o * He,
|
|
10908
|
+
function _(c, w, U) {
|
|
10909
|
+
var o, T, j = 0, V = 0, Y = 0, ae = 0, ie = 0, F = 0, te = 0, ue = 0, ye = 0, fe = 0, Se = 0, ke = 0, Te = 0, Be = 0, Ee = 0, Ie = 0, Re = 0, Fe = 0, qe = 0, Xe = 0, Je = 0, $e = 0, rt = 0, ot = 0, pt = 0, gt = 0, Ct = 0, It = 0, Rt = 0, Ot = 0, jt = 0, Ne = U[0], we = U[1], De = U[2], Oe = U[3], Pe = U[4], Le = U[5], Ke = U[6], Ve = U[7], Me = U[8], Qe = U[9], je = U[10], Ge = U[11], be = U[12], Ue = U[13], He = U[14], xe = U[15];
|
|
10910
|
+
o = w[0], j += o * Ne, V += o * we, Y += o * De, ae += o * Oe, ie += o * Pe, F += o * Le, te += o * Ke, ue += o * Ve, ye += o * Me, fe += o * Qe, Se += o * je, ke += o * Ge, Te += o * be, Be += o * Ue, Ee += o * He, Ie += o * xe, o = w[1], V += o * Ne, Y += o * we, ae += o * De, ie += o * Oe, F += o * Pe, te += o * Le, ue += o * Ke, ye += o * Ve, fe += o * Me, Se += o * Qe, ke += o * je, Te += o * Ge, Be += o * be, Ee += o * Ue, Ie += o * He, Re += o * xe, o = w[2], Y += o * Ne, ae += o * we, ie += o * De, F += o * Oe, te += o * Pe, ue += o * Le, ye += o * Ke, fe += o * Ve, Se += o * Me, ke += o * Qe, Te += o * je, Be += o * Ge, Ee += o * be, Ie += o * Ue, Re += o * He, Fe += o * xe, o = w[3], ae += o * Ne, ie += o * we, F += o * De, te += o * Oe, ue += o * Pe, ye += o * Le, fe += o * Ke, Se += o * Ve, ke += o * Me, Te += o * Qe, Be += o * je, Ee += o * Ge, Ie += o * be, Re += o * Ue, Fe += o * He, qe += o * xe, o = w[4], ie += o * Ne, F += o * we, te += o * De, ue += o * Oe, ye += o * Pe, fe += o * Le, Se += o * Ke, ke += o * Ve, Te += o * Me, Be += o * Qe, Ee += o * je, Ie += o * Ge, Re += o * be, Fe += o * Ue, qe += o * He, Xe += o * xe, o = w[5], F += o * Ne, te += o * we, ue += o * De, ye += o * Oe, fe += o * Pe, Se += o * Le, ke += o * Ke, Te += o * Ve, Be += o * Me, Ee += o * Qe, Ie += o * je, Re += o * Ge, Fe += o * be, qe += o * Ue, Xe += o * He, Je += o * xe, o = w[6], te += o * Ne, ue += o * we, ye += o * De, fe += o * Oe, Se += o * Pe, ke += o * Le, Te += o * Ke, Be += o * Ve, Ee += o * Me, Ie += o * Qe, Re += o * je, Fe += o * Ge, qe += o * be, Xe += o * Ue, Je += o * He, $e += o * xe, o = w[7], ue += o * Ne, ye += o * we, fe += o * De, Se += o * Oe, ke += o * Pe, Te += o * Le, Be += o * Ke, Ee += o * Ve, Ie += o * Me, Re += o * Qe, Fe += o * je, qe += o * Ge, Xe += o * be, Je += o * Ue, $e += o * He, rt += o * xe, o = w[8], ye += o * Ne, fe += o * we, Se += o * De, ke += o * Oe, Te += o * Pe, Be += o * Le, Ee += o * Ke, Ie += o * Ve, Re += o * Me, Fe += o * Qe, qe += o * je, Xe += o * Ge, Je += o * be, $e += o * Ue, rt += o * He, ot += o * xe, o = w[9], fe += o * Ne, Se += o * we, ke += o * De, Te += o * Oe, Be += o * Pe, Ee += o * Le, Ie += o * Ke, Re += o * Ve, Fe += o * Me, qe += o * Qe, Xe += o * je, Je += o * Ge, $e += o * be, rt += o * Ue, ot += o * He, pt += o * xe, o = w[10], Se += o * Ne, ke += o * we, Te += o * De, Be += o * Oe, Ee += o * Pe, Ie += o * Le, Re += o * Ke, Fe += o * Ve, qe += o * Me, Xe += o * Qe, Je += o * je, $e += o * Ge, rt += o * be, ot += o * Ue, pt += o * He, gt += o * xe, o = w[11], ke += o * Ne, Te += o * we, Be += o * De, Ee += o * Oe, Ie += o * Pe, Re += o * Le, Fe += o * Ke, qe += o * Ve, Xe += o * Me, Je += o * Qe, $e += o * je, rt += o * Ge, ot += o * be, pt += o * Ue, gt += o * He, Ct += o * xe, o = w[12], Te += o * Ne, Be += o * we, Ee += o * De, Ie += o * Oe, Re += o * Pe, Fe += o * Le, qe += o * Ke, Xe += o * Ve, Je += o * Me, $e += o * Qe, rt += o * je, ot += o * Ge, pt += o * be, gt += o * Ue, Ct += o * He, It += o * xe, o = w[13], Be += o * Ne, Ee += o * we, Ie += o * De, Re += o * Oe, Fe += o * Pe, qe += o * Le, Xe += o * Ke, Je += o * Ve, $e += o * Me, rt += o * Qe, ot += o * je, pt += o * Ge, gt += o * be, Ct += o * Ue, It += o * He, Rt += o * xe, o = w[14], Ee += o * Ne, Ie += o * we, Re += o * De, Fe += o * Oe, qe += o * Pe, Xe += o * Le, Je += o * Ke, $e += o * Ve, rt += o * Me, ot += o * Qe, pt += o * je, gt += o * Ge, Ct += o * be, It += o * Ue, Rt += o * He, Ot += o * xe, o = w[15], Ie += o * Ne, Re += o * we, Fe += o * De, qe += o * Oe, Xe += o * Pe, Je += o * Le, $e += o * Ke, rt += o * Ve, ot += o * Me, pt += o * Qe, gt += o * je, Ct += o * Ge, It += o * be, Rt += o * Ue, Ot += o * He, jt += o * xe, j += 38 * Re, V += 38 * Fe, Y += 38 * qe, ae += 38 * Xe, ie += 38 * Je, F += 38 * $e, te += 38 * rt, ue += 38 * ot, ye += 38 * pt, fe += 38 * gt, Se += 38 * Ct, ke += 38 * It, Te += 38 * Rt, Be += 38 * Ot, Ee += 38 * jt, T = 1, o = j + T + 65535, T = Math.floor(o / 65536), j = o - T * 65536, o = V + T + 65535, T = Math.floor(o / 65536), V = o - T * 65536, o = Y + T + 65535, T = Math.floor(o / 65536), Y = o - T * 65536, o = ae + T + 65535, T = Math.floor(o / 65536), ae = o - T * 65536, o = ie + T + 65535, T = Math.floor(o / 65536), ie = o - T * 65536, o = F + T + 65535, T = Math.floor(o / 65536), F = o - T * 65536, o = te + T + 65535, T = Math.floor(o / 65536), te = o - T * 65536, o = ue + T + 65535, T = Math.floor(o / 65536), ue = o - T * 65536, o = ye + T + 65535, T = Math.floor(o / 65536), ye = o - T * 65536, o = fe + T + 65535, T = Math.floor(o / 65536), fe = o - T * 65536, o = Se + T + 65535, T = Math.floor(o / 65536), Se = o - T * 65536, o = ke + T + 65535, T = Math.floor(o / 65536), ke = o - T * 65536, o = Te + T + 65535, T = Math.floor(o / 65536), Te = o - T * 65536, o = Be + T + 65535, T = Math.floor(o / 65536), Be = o - T * 65536, o = Ee + T + 65535, T = Math.floor(o / 65536), Ee = o - T * 65536, o = Ie + T + 65535, T = Math.floor(o / 65536), Ie = o - T * 65536, j += T - 1 + 37 * (T - 1), T = 1, o = j + T + 65535, T = Math.floor(o / 65536), j = o - T * 65536, o = V + T + 65535, T = Math.floor(o / 65536), V = o - T * 65536, o = Y + T + 65535, T = Math.floor(o / 65536), Y = o - T * 65536, o = ae + T + 65535, T = Math.floor(o / 65536), ae = o - T * 65536, o = ie + T + 65535, T = Math.floor(o / 65536), ie = o - T * 65536, o = F + T + 65535, T = Math.floor(o / 65536), F = o - T * 65536, o = te + T + 65535, T = Math.floor(o / 65536), te = o - T * 65536, o = ue + T + 65535, T = Math.floor(o / 65536), ue = o - T * 65536, o = ye + T + 65535, T = Math.floor(o / 65536), ye = o - T * 65536, o = fe + T + 65535, T = Math.floor(o / 65536), fe = o - T * 65536, o = Se + T + 65535, T = Math.floor(o / 65536), Se = o - T * 65536, o = ke + T + 65535, T = Math.floor(o / 65536), ke = o - T * 65536, o = Te + T + 65535, T = Math.floor(o / 65536), Te = o - T * 65536, o = Be + T + 65535, T = Math.floor(o / 65536), Be = o - T * 65536, o = Ee + T + 65535, T = Math.floor(o / 65536), Ee = o - T * 65536, o = Ie + T + 65535, T = Math.floor(o / 65536), Ie = o - T * 65536, j += T - 1 + 37 * (T - 1), c[0] = j, c[1] = V, c[2] = Y, c[3] = ae, c[4] = ie, c[5] = F, c[6] = te, c[7] = ue, c[8] = ye, c[9] = fe, c[10] = Se, c[11] = ke, c[12] = Te, c[13] = Be, c[14] = Ee, c[15] = Ie;
|
|
10901
10911
|
}
|
|
10902
10912
|
return Or;
|
|
10903
10913
|
}
|
|
@@ -10905,7 +10915,7 @@ var Pr, Pa;
|
|
|
10905
10915
|
function fs() {
|
|
10906
10916
|
if (Pa) return Pr;
|
|
10907
10917
|
Pa = 1;
|
|
10908
|
-
var t =
|
|
10918
|
+
var t = de();
|
|
10909
10919
|
me(), ft(), Zt(), Pr = t.kem = t.kem || {};
|
|
10910
10920
|
var e = t.jsbn.BigInteger;
|
|
10911
10921
|
t.kem.rsa = {}, t.kem.rsa.create = function(d, S) {
|
|
@@ -10949,7 +10959,7 @@ var Lr, La;
|
|
|
10949
10959
|
function ps() {
|
|
10950
10960
|
if (La) return Lr;
|
|
10951
10961
|
La = 1;
|
|
10952
|
-
var t =
|
|
10962
|
+
var t = de();
|
|
10953
10963
|
me(), Lr = t.log = t.log || {}, t.log.levels = [
|
|
10954
10964
|
"none",
|
|
10955
10965
|
"error",
|
|
@@ -11073,7 +11083,7 @@ var Kr = { exports: {} }, Ma;
|
|
|
11073
11083
|
function hs() {
|
|
11074
11084
|
if (Ma) return Kr.exports;
|
|
11075
11085
|
Ma = 1;
|
|
11076
|
-
var t =
|
|
11086
|
+
var t = de();
|
|
11077
11087
|
Tt(), ht(), Jt(), kt(), Dt(), an(), ft(), me(), qr();
|
|
11078
11088
|
var e = t.asn1, r = Kr.exports = t.pkcs7 = t.pkcs7 || {};
|
|
11079
11089
|
r.messageFromPem = function(l) {
|
|
@@ -11884,7 +11894,7 @@ var Vr = { exports: {} }, Qa;
|
|
|
11884
11894
|
function gs() {
|
|
11885
11895
|
if (Qa) return Vr.exports;
|
|
11886
11896
|
Qa = 1;
|
|
11887
|
-
var t =
|
|
11897
|
+
var t = de();
|
|
11888
11898
|
Tt(), Mt(), Hr(), Qt(), me();
|
|
11889
11899
|
var e = Vr.exports = t.ssh = t.ssh || {};
|
|
11890
11900
|
e.privateKeyToPutty = function(C, f, a) {
|
|
@@ -11970,7 +11980,7 @@ Private-MAC: ` + i.digest().toHex() + `\r
|
|
|
11970
11980
|
}
|
|
11971
11981
|
var ja, Ga;
|
|
11972
11982
|
function ys() {
|
|
11973
|
-
return Ga || (Ga = 1, ja =
|
|
11983
|
+
return Ga || (Ga = 1, ja = de(), Tt(), us(), ht(), Gr(), Jt(), cs(), Mt(), fs(), ps(), ds(), nn(), zr(), Dt(), en(), sn(), hs(), on(), tn(), _a(), Fr(), ft(), $a(), gs(), un(), me()), ja;
|
|
11974
11984
|
}
|
|
11975
11985
|
ys();
|
|
11976
11986
|
const vs = { class: "kernelift-chat-container__box" }, ms = {
|
|
@@ -12031,16 +12041,16 @@ const vs = { class: "kernelift-chat-container__box" }, ms = {
|
|
|
12031
12041
|
emits: /* @__PURE__ */ mt(["send", "cancel", "clear", "create-record", "change-record", "change-collapse", "change-theme", "change-aside-width", "click-logo", "bubble-event", "close-workspace", "scroll-bottom"], ["update:messages", "update:modelValue", "update:loading", "update:record-id"]),
|
|
12032
12042
|
setup(t, { emit: e }) {
|
|
12033
12043
|
Fa((z) => ({
|
|
12034
|
-
|
|
12035
|
-
|
|
12036
|
-
|
|
12037
|
-
|
|
12038
|
-
|
|
12039
|
-
|
|
12040
|
-
|
|
12041
|
-
|
|
12044
|
+
d24f3a88: z.primaryColor,
|
|
12045
|
+
eb2c2334: C.value,
|
|
12046
|
+
v98ab6d46: d.value[0],
|
|
12047
|
+
v98ab6d08: d.value[1],
|
|
12048
|
+
v98ab6cca: d.value[2],
|
|
12049
|
+
v98ab6c8c: d.value[3],
|
|
12050
|
+
v98ab6c4e: d.value[4],
|
|
12051
|
+
v7606f30e: ce.value
|
|
12042
12052
|
}));
|
|
12043
|
-
const r = t, d = it(() => ts(r.primaryColor));
|
|
12053
|
+
const r = t, d = it(() => ts(r.primaryColor, 5, 0.8, 5));
|
|
12044
12054
|
function S(z) {
|
|
12045
12055
|
if (!z || !z.startsWith("#")) return "0, 0, 0";
|
|
12046
12056
|
const oe = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(z);
|
|
@@ -12078,8 +12088,8 @@ const vs = { class: "kernelift-chat-container__box" }, ms = {
|
|
|
12078
12088
|
}, n = (z) => {
|
|
12079
12089
|
if (!b.value) return;
|
|
12080
12090
|
const oe = z.clientX - N.value;
|
|
12081
|
-
let
|
|
12082
|
-
|
|
12091
|
+
let _ = p.value + oe;
|
|
12092
|
+
_ = Math.max(250, Math.min(700, window.innerWidth - 250, _)), v.value = _;
|
|
12083
12093
|
}, k = () => {
|
|
12084
12094
|
b.value = !1, document.body.style.userSelect = "";
|
|
12085
12095
|
};
|
|
@@ -12111,7 +12121,7 @@ const vs = { class: "kernelift-chat-container__box" }, ms = {
|
|
|
12111
12121
|
function Z() {
|
|
12112
12122
|
y("close-workspace");
|
|
12113
12123
|
}
|
|
12114
|
-
function
|
|
12124
|
+
function $(z) {
|
|
12115
12125
|
g.value = z;
|
|
12116
12126
|
}
|
|
12117
12127
|
function se() {
|
|
@@ -12144,20 +12154,20 @@ const vs = { class: "kernelift-chat-container__box" }, ms = {
|
|
|
12144
12154
|
dark: t.themeMode === "dark"
|
|
12145
12155
|
}])
|
|
12146
12156
|
}, [
|
|
12147
|
-
|
|
12157
|
+
pe(z.$slots, "left-aside", { mobile: K.value }, void 0, !0),
|
|
12148
12158
|
ne("div", vs, [
|
|
12149
12159
|
ne("aside", {
|
|
12150
12160
|
class: _e(["kernelift-chat-container__aside", he.value]),
|
|
12151
12161
|
style: Xt(Ce.value),
|
|
12152
12162
|
onClick: Pn(le, ["self"])
|
|
12153
12163
|
}, [
|
|
12154
|
-
|
|
12164
|
+
pe(z.$slots, "aside", {
|
|
12155
12165
|
record: I.value,
|
|
12156
12166
|
mobile: K.value
|
|
12157
12167
|
}, () => [
|
|
12158
12168
|
Bt(Qi, {
|
|
12159
12169
|
modelValue: I.value,
|
|
12160
|
-
"onUpdate:modelValue": oe[0] || (oe[0] = (
|
|
12170
|
+
"onUpdate:modelValue": oe[0] || (oe[0] = (_) => I.value = _),
|
|
12161
12171
|
style: Xt(W.value),
|
|
12162
12172
|
data: t.records,
|
|
12163
12173
|
"theme-mode": t.themeMode,
|
|
@@ -12166,28 +12176,28 @@ const vs = { class: "kernelift-chat-container__box" }, ms = {
|
|
|
12166
12176
|
"has-theme-mode": t.hasThemeMode,
|
|
12167
12177
|
onClear: se,
|
|
12168
12178
|
onChange: s,
|
|
12169
|
-
onClickLogo: oe[1] || (oe[1] = (
|
|
12170
|
-
onScrollBottom: oe[2] || (oe[2] = (
|
|
12179
|
+
onClickLogo: oe[1] || (oe[1] = (_) => y("click-logo")),
|
|
12180
|
+
onScrollBottom: oe[2] || (oe[2] = (_) => y("scroll-bottom")),
|
|
12171
12181
|
onChangeCollapse: G,
|
|
12172
12182
|
onChangeTheme: x
|
|
12173
12183
|
}, {
|
|
12174
|
-
logo:
|
|
12175
|
-
|
|
12184
|
+
logo: Ye(() => [
|
|
12185
|
+
pe(z.$slots, "logo", { mobile: K.value }, void 0, !0)
|
|
12176
12186
|
]),
|
|
12177
|
-
footer:
|
|
12178
|
-
|
|
12187
|
+
footer: Ye(() => [
|
|
12188
|
+
pe(z.$slots, "record-footer", {
|
|
12179
12189
|
record: I.value,
|
|
12180
12190
|
mobile: K.value
|
|
12181
12191
|
}, void 0, !0)
|
|
12182
12192
|
]),
|
|
12183
|
-
"new-chat-button":
|
|
12184
|
-
|
|
12193
|
+
"new-chat-button": Ye(({ execute: _ }) => [
|
|
12194
|
+
pe(z.$slots, "new-chat-button", {
|
|
12185
12195
|
mobile: K.value,
|
|
12186
|
-
execute:
|
|
12196
|
+
execute: _
|
|
12187
12197
|
}, void 0, !0)
|
|
12188
12198
|
]),
|
|
12189
|
-
"record-dropdown":
|
|
12190
|
-
|
|
12199
|
+
"record-dropdown": Ye(() => [
|
|
12200
|
+
pe(z.$slots, "record-dropdown", { mobile: K.value }, void 0, !0)
|
|
12191
12201
|
]),
|
|
12192
12202
|
_: 3
|
|
12193
12203
|
}, 8, ["modelValue", "style", "data", "theme-mode", "collapse", "actions", "has-theme-mode"])
|
|
@@ -12210,7 +12220,7 @@ const vs = { class: "kernelift-chat-container__box" }, ms = {
|
|
|
12210
12220
|
}])
|
|
12211
12221
|
}, [
|
|
12212
12222
|
t.hasHeader ? (ge(), ve("header", ms, [
|
|
12213
|
-
|
|
12223
|
+
pe(z.$slots, "header", {
|
|
12214
12224
|
record: I.value,
|
|
12215
12225
|
mobile: K.value
|
|
12216
12226
|
}, () => [
|
|
@@ -12221,9 +12231,9 @@ const vs = { class: "kernelift-chat-container__box" }, ms = {
|
|
|
12221
12231
|
nt(D) ? (ge(), ve("div", As, [
|
|
12222
12232
|
ne("div", {
|
|
12223
12233
|
class: "kernelift-chat-container__logo",
|
|
12224
|
-
onClick: oe[3] || (oe[3] = (
|
|
12234
|
+
onClick: oe[3] || (oe[3] = (_) => y("click-logo"))
|
|
12225
12235
|
}, [
|
|
12226
|
-
|
|
12236
|
+
pe(z.$slots, "header-logo", { mobile: K.value }, () => [
|
|
12227
12237
|
oe[10] || (oe[10] = ne("img", {
|
|
12228
12238
|
src: Xa,
|
|
12229
12239
|
class: "kernelift-chat-container__logo-img"
|
|
@@ -12234,7 +12244,7 @@ const vs = { class: "kernelift-chat-container__box" }, ms = {
|
|
|
12234
12244
|
t.hasThemeMode ? (ge(), ve("div", {
|
|
12235
12245
|
key: 0,
|
|
12236
12246
|
class: "kernelift-chat-container__header-action",
|
|
12237
|
-
onClick: oe[4] || (oe[4] = (
|
|
12247
|
+
onClick: oe[4] || (oe[4] = (_) => x(t.themeMode === "light" ? "dark" : "light"))
|
|
12238
12248
|
}, [
|
|
12239
12249
|
tt(ne("i", Es, null, 512), [
|
|
12240
12250
|
[st, t.themeMode === "light"]
|
|
@@ -12245,7 +12255,7 @@ const vs = { class: "kernelift-chat-container__box" }, ms = {
|
|
|
12245
12255
|
])) : Ze("", !0),
|
|
12246
12256
|
tt(ne("div", {
|
|
12247
12257
|
class: "kernelift-chat-container__header-action",
|
|
12248
|
-
onClick: oe[5] || (oe[5] = (
|
|
12258
|
+
onClick: oe[5] || (oe[5] = (_) => G(!1))
|
|
12249
12259
|
}, [...oe[11] || (oe[11] = [
|
|
12250
12260
|
ne("i", { class: "material-symbols--left-panel-open-outline" }, null, -1)
|
|
12251
12261
|
])], 512), [
|
|
@@ -12258,48 +12268,48 @@ const vs = { class: "kernelift-chat-container__box" }, ms = {
|
|
|
12258
12268
|
ne("div", Bs, [
|
|
12259
12269
|
a.value && a.value.length ? (ge(), ve("div", bs, [
|
|
12260
12270
|
ne("div", Ts, [
|
|
12261
|
-
(ge(!0), ve(Mr, null, Qr(a.value, (
|
|
12271
|
+
(ge(!0), ve(Mr, null, Qr(a.value, (_, c) => (ge(), $t(Xr, {
|
|
12262
12272
|
modelValue: a.value[c],
|
|
12263
12273
|
"onUpdate:modelValue": (w) => a.value[c] = w,
|
|
12264
|
-
key:
|
|
12274
|
+
key: _.id,
|
|
12265
12275
|
"markdown-class": t.markdownClassName,
|
|
12266
12276
|
"is-last": c === a.value.length - 1,
|
|
12267
12277
|
messager: t.messager,
|
|
12268
12278
|
onBubbleEvent: X
|
|
12269
12279
|
}, {
|
|
12270
|
-
header:
|
|
12271
|
-
|
|
12272
|
-
data:
|
|
12280
|
+
header: Ye(() => [
|
|
12281
|
+
pe(z.$slots, "bubble-header", {
|
|
12282
|
+
data: _,
|
|
12273
12283
|
mobile: K.value
|
|
12274
12284
|
}, void 0, !0)
|
|
12275
12285
|
]),
|
|
12276
|
-
footer:
|
|
12277
|
-
|
|
12278
|
-
data:
|
|
12286
|
+
footer: Ye(() => [
|
|
12287
|
+
pe(z.$slots, "bubble-footer", {
|
|
12288
|
+
data: _,
|
|
12279
12289
|
mobile: K.value
|
|
12280
12290
|
}, void 0, !0)
|
|
12281
12291
|
]),
|
|
12282
|
-
"bubble-event":
|
|
12283
|
-
|
|
12284
|
-
data:
|
|
12292
|
+
"bubble-event": Ye(() => [
|
|
12293
|
+
pe(z.$slots, "bubble-event", {
|
|
12294
|
+
data: _,
|
|
12285
12295
|
mobile: K.value
|
|
12286
12296
|
}, void 0, !0)
|
|
12287
12297
|
]),
|
|
12288
|
-
"content-header":
|
|
12289
|
-
|
|
12290
|
-
data:
|
|
12298
|
+
"content-header": Ye(() => [
|
|
12299
|
+
pe(z.$slots, "bubble-content-header", {
|
|
12300
|
+
data: _,
|
|
12291
12301
|
mobile: K.value
|
|
12292
12302
|
}, void 0, !0)
|
|
12293
12303
|
]),
|
|
12294
|
-
"content-footer":
|
|
12295
|
-
|
|
12296
|
-
data:
|
|
12304
|
+
"content-footer": Ye(() => [
|
|
12305
|
+
pe(z.$slots, "bubble-content-footer", {
|
|
12306
|
+
data: _,
|
|
12297
12307
|
mobile: K.value
|
|
12298
12308
|
}, void 0, !0)
|
|
12299
12309
|
]),
|
|
12300
|
-
"thinking-header":
|
|
12301
|
-
|
|
12302
|
-
data:
|
|
12310
|
+
"thinking-header": Ye(() => [
|
|
12311
|
+
pe(z.$slots, "bubble-thinking-header", {
|
|
12312
|
+
data: _,
|
|
12303
12313
|
mobile: K.value
|
|
12304
12314
|
}, void 0, !0)
|
|
12305
12315
|
]),
|
|
@@ -12316,8 +12326,8 @@ const vs = { class: "kernelift-chat-container__box" }, ms = {
|
|
|
12316
12326
|
messager: t.messager,
|
|
12317
12327
|
"markdown-class": t.markdownClassName
|
|
12318
12328
|
}, {
|
|
12319
|
-
content:
|
|
12320
|
-
|
|
12329
|
+
content: Ye(() => [
|
|
12330
|
+
pe(z.$slots, "bubble-loading-content", { mobile: K.value }, () => [
|
|
12321
12331
|
ne("div", {
|
|
12322
12332
|
class: _e(["kernelift-chat-container__loading-text", t.markdownClassName])
|
|
12323
12333
|
}, [
|
|
@@ -12330,16 +12340,16 @@ const vs = { class: "kernelift-chat-container__box" }, ms = {
|
|
|
12330
12340
|
}, 8, ["messager", "markdown-class"])) : Ze("", !0)
|
|
12331
12341
|
])
|
|
12332
12342
|
])) : (ge(), ve("div", ks, [
|
|
12333
|
-
|
|
12343
|
+
pe(z.$slots, "empty", { mobile: K.value }, () => [
|
|
12334
12344
|
oe[13] || (oe[13] = ne("div", { class: "kernelift-chat-container__empty-text" }, "请开始你的对话", -1))
|
|
12335
12345
|
], !0)
|
|
12336
12346
|
])),
|
|
12337
12347
|
h.value?.length && !K.value && !g.value ? (ge(), ve("div", Rs, [
|
|
12338
|
-
(ge(!0), ve(Mr, null, Qr(h.value, (
|
|
12339
|
-
key:
|
|
12348
|
+
(ge(!0), ve(Mr, null, Qr(h.value, (_) => (ge(), ve("div", {
|
|
12349
|
+
key: _,
|
|
12340
12350
|
class: "kernelift-chat-container__next-tip",
|
|
12341
|
-
onClick: () => _
|
|
12342
|
-
}, Nt(
|
|
12351
|
+
onClick: () => $(_)
|
|
12352
|
+
}, Nt(_), 9, Us))), 128))
|
|
12343
12353
|
])) : Ze("", !0)
|
|
12344
12354
|
])
|
|
12345
12355
|
]),
|
|
@@ -12351,16 +12361,16 @@ const vs = { class: "kernelift-chat-container__box" }, ms = {
|
|
|
12351
12361
|
}, [
|
|
12352
12362
|
ne("div", Ns, [
|
|
12353
12363
|
t.hasSenderTools && t.showSender ? (ge(), ve("div", ws, [
|
|
12354
|
-
|
|
12364
|
+
pe(z.$slots, "sender-tools", { mobile: K.value }, void 0, !0)
|
|
12355
12365
|
])) : Ze("", !0),
|
|
12356
12366
|
t.showSender ? (ge(), $t(Zi, {
|
|
12357
12367
|
key: 1,
|
|
12358
12368
|
modelValue: g.value,
|
|
12359
|
-
"onUpdate:modelValue": oe[6] || (oe[6] = (
|
|
12369
|
+
"onUpdate:modelValue": oe[6] || (oe[6] = (_) => g.value = _),
|
|
12360
12370
|
"enable-net": nt(E),
|
|
12361
|
-
"onUpdate:enableNet": oe[7] || (oe[7] = (
|
|
12371
|
+
"onUpdate:enableNet": oe[7] || (oe[7] = (_) => Yr(E) ? E.value = _ : null),
|
|
12362
12372
|
"enable-think": nt(l),
|
|
12363
|
-
"onUpdate:enableThink": oe[8] || (oe[8] = (
|
|
12373
|
+
"onUpdate:enableThink": oe[8] || (oe[8] = (_) => Yr(l) ? l.value = _ : null),
|
|
12364
12374
|
"has-net-search": t.hasNetSearch,
|
|
12365
12375
|
"has-thinking": t.hasThinking,
|
|
12366
12376
|
"input-height": t.inputHeight,
|
|
@@ -12368,25 +12378,39 @@ const vs = { class: "kernelift-chat-container__box" }, ms = {
|
|
|
12368
12378
|
onSend: A,
|
|
12369
12379
|
onCancel: m
|
|
12370
12380
|
}, {
|
|
12371
|
-
tools:
|
|
12372
|
-
|
|
12373
|
-
value:
|
|
12381
|
+
tools: Ye(({ value: _, loading: c }) => [
|
|
12382
|
+
pe(z.$slots, "sender-footer-tools", {
|
|
12383
|
+
value: _,
|
|
12374
12384
|
loading: c,
|
|
12375
12385
|
enableNet: nt(E),
|
|
12376
12386
|
enableThink: nt(l),
|
|
12377
12387
|
mobile: K.value
|
|
12378
12388
|
}, void 0, !0)
|
|
12379
12389
|
]),
|
|
12380
|
-
"send-button":
|
|
12381
|
-
|
|
12382
|
-
execute:
|
|
12390
|
+
"send-button": Ye(({ execute: _, state: c }) => [
|
|
12391
|
+
pe(z.$slots, "send-button", {
|
|
12392
|
+
execute: _,
|
|
12393
|
+
state: c,
|
|
12394
|
+
mobile: K.value
|
|
12395
|
+
}, void 0, !0)
|
|
12396
|
+
]),
|
|
12397
|
+
"think-button": Ye(({ execute: _, state: c }) => [
|
|
12398
|
+
pe(z.$slots, "think-button", {
|
|
12399
|
+
state: c,
|
|
12400
|
+
execute: _,
|
|
12401
|
+
mobile: K.value
|
|
12402
|
+
}, void 0, !0)
|
|
12403
|
+
]),
|
|
12404
|
+
"net-button": Ye(({ execute: _, state: c }) => [
|
|
12405
|
+
pe(z.$slots, "net-button", {
|
|
12383
12406
|
state: c,
|
|
12407
|
+
execute: _,
|
|
12384
12408
|
mobile: K.value
|
|
12385
12409
|
}, void 0, !0)
|
|
12386
12410
|
]),
|
|
12387
|
-
textarea:
|
|
12388
|
-
|
|
12389
|
-
execute:
|
|
12411
|
+
textarea: Ye(({ execute: _, state: c, height: w }) => [
|
|
12412
|
+
pe(z.$slots, "sender-textarea", {
|
|
12413
|
+
execute: _,
|
|
12390
12414
|
state: c,
|
|
12391
12415
|
height: w,
|
|
12392
12416
|
mobile: K.value
|
|
@@ -12395,7 +12419,7 @@ const vs = { class: "kernelift-chat-container__box" }, ms = {
|
|
|
12395
12419
|
_: 3
|
|
12396
12420
|
}, 8, ["modelValue", "enable-net", "enable-think", "has-net-search", "has-thinking", "input-height", "loading"])) : Ze("", !0),
|
|
12397
12421
|
ne("div", Ds, [
|
|
12398
|
-
|
|
12422
|
+
pe(z.$slots, "footer", { mobile: K.value }, () => [
|
|
12399
12423
|
oe[14] || (oe[14] = Kt(" 内容由AI生成,无法确保准确性和完整性,仅供参考 ", -1))
|
|
12400
12424
|
], !0)
|
|
12401
12425
|
])
|
|
@@ -12411,10 +12435,10 @@ const vs = { class: "kernelift-chat-container__box" }, ms = {
|
|
|
12411
12435
|
ne("div", Os, [
|
|
12412
12436
|
ne("i", {
|
|
12413
12437
|
class: "material-symbols--close",
|
|
12414
|
-
onClick: oe[9] || (oe[9] = (
|
|
12438
|
+
onClick: oe[9] || (oe[9] = (_) => Z())
|
|
12415
12439
|
})
|
|
12416
12440
|
]),
|
|
12417
|
-
|
|
12441
|
+
pe(z.$slots, "workspace", {
|
|
12418
12442
|
record: I.value,
|
|
12419
12443
|
mobile: K.value
|
|
12420
12444
|
}, void 0, !0)
|
|
@@ -12423,7 +12447,7 @@ const vs = { class: "kernelift-chat-container__box" }, ms = {
|
|
|
12423
12447
|
])
|
|
12424
12448
|
], 2));
|
|
12425
12449
|
}
|
|
12426
|
-
}), Vs = /* @__PURE__ */ bt(Ps, [["__scopeId", "data-v-
|
|
12450
|
+
}), Vs = /* @__PURE__ */ bt(Ps, [["__scopeId", "data-v-fd1e121c"]]);
|
|
12427
12451
|
class Ms {
|
|
12428
12452
|
controller;
|
|
12429
12453
|
buffer;
|