@n8n/chat 0.0.7 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -9
- package/chat.js +234 -237
- package/chat.umd.js +2 -2
- package/package.json +1 -1
- package/types/types/options.d.ts +0 -1
package/chat.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { effectScope as Br, ref as ve, markRaw as
|
|
1
|
+
import { effectScope as Br, ref as ve, markRaw as Ce, hasInjectionContext as rs, inject as $r, getCurrentInstance as os, toRaw as st, isRef as Ve, isReactive as Tt, toRef as bt, watch as zr, reactive as ss, nextTick as Re, computed as Le, unref as G, getCurrentScope as cs, onScopeDispose as is, toRefs as xt, openBlock as P, createElementBlock as W, renderSlot as Ye, defineComponent as ae, onMounted as gn, onBeforeUnmount as as, createCommentVNode as Qe, createVNode as De, withCtx as Te, createTextVNode as Ur, toDisplayString as Et, createElementVNode as ee, h as ls, normalizeClass as Vr, createBlock as ne, Fragment as Pn, renderList as Bn, withDirectives as jr, withKeys as us, vModelText as fs, createSlots as ps, Transition as $n, vShow as hs, createApp as ds } from "vue";
|
|
2
2
|
var Hr = !1;
|
|
3
3
|
function pt(t, e, n) {
|
|
4
4
|
return Array.isArray(t) ? (t.length = Math.max(t.length, e), t.splice(e, 1, n), n) : (t[e] = n, n);
|
|
@@ -17,10 +17,10 @@ function Gr() {
|
|
|
17
17
|
return typeof navigator < "u" && typeof window < "u" ? window : typeof global < "u" ? global : {};
|
|
18
18
|
}
|
|
19
19
|
const ms = typeof Proxy == "function", _s = "devtools-plugin:setup", bs = "plugin:settings:set";
|
|
20
|
-
let
|
|
20
|
+
let Fe, ln;
|
|
21
21
|
function vs() {
|
|
22
22
|
var t;
|
|
23
|
-
return
|
|
23
|
+
return Fe !== void 0 || (typeof window < "u" && window.performance ? (Fe = !0, ln = window.performance) : typeof global < "u" && (!((t = global.perf_hooks) === null || t === void 0) && t.performance) ? (Fe = !0, ln = global.perf_hooks.performance) : Fe = !1), Fe;
|
|
24
24
|
}
|
|
25
25
|
function ks() {
|
|
26
26
|
return vs() ? ln.now() : Date.now();
|
|
@@ -105,8 +105,8 @@ function Zr(t, e) {
|
|
|
105
105
|
* (c) 2023 Eduardo San Martin Morote
|
|
106
106
|
* @license MIT
|
|
107
107
|
*/
|
|
108
|
-
let
|
|
109
|
-
const tt = (t) =>
|
|
108
|
+
let Ke;
|
|
109
|
+
const tt = (t) => Ke = t, Wr = process.env.NODE_ENV !== "production" ? Symbol("pinia") : (
|
|
110
110
|
/* istanbul ignore next */
|
|
111
111
|
Symbol()
|
|
112
112
|
);
|
|
@@ -351,8 +351,8 @@ function Is(t) {
|
|
|
351
351
|
return "unknown";
|
|
352
352
|
}
|
|
353
353
|
}
|
|
354
|
-
let
|
|
355
|
-
const yt = [],
|
|
354
|
+
let ze = !0;
|
|
355
|
+
const yt = [], we = "pinia:mutations", Q = "pinia", { assign: Ls } = Object, wt = (t) => "🍍 " + t;
|
|
356
356
|
function Ms(t, e) {
|
|
357
357
|
Zr({
|
|
358
358
|
id: "dev.esm.pinia",
|
|
@@ -364,7 +364,7 @@ function Ms(t, e) {
|
|
|
364
364
|
app: t
|
|
365
365
|
}, (n) => {
|
|
366
366
|
typeof n.now != "function" && Z("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."), n.addTimelineLayer({
|
|
367
|
-
id:
|
|
367
|
+
id: we,
|
|
368
368
|
label: "Pinia 🍍",
|
|
369
369
|
color: 15064968
|
|
370
370
|
}), n.addInspector({
|
|
@@ -469,7 +469,7 @@ function Ms(t, e) {
|
|
|
469
469
|
if (!s)
|
|
470
470
|
return Z(`store "${r.nodeId}" not found`, "error");
|
|
471
471
|
const { path: c } = r;
|
|
472
|
-
_n(s) ? c.unshift("state") : (c.length !== 1 || !s._customProperties.has(c[0]) || c[0] in s.$state) && c.unshift("$state"),
|
|
472
|
+
_n(s) ? c.unshift("state") : (c.length !== 1 || !s._customProperties.has(c[0]) || c[0] in s.$state) && c.unshift("$state"), ze = !1, r.set(s, c, r.state.value), ze = !0;
|
|
473
473
|
}
|
|
474
474
|
}), n.on.editComponentState((r) => {
|
|
475
475
|
if (r.type.startsWith("🍍")) {
|
|
@@ -481,7 +481,7 @@ function Ms(t, e) {
|
|
|
481
481
|
return Z(`Invalid path for store "${o}":
|
|
482
482
|
${c}
|
|
483
483
|
Only state can be modified.`);
|
|
484
|
-
c[0] = "$state",
|
|
484
|
+
c[0] = "$state", ze = !1, r.set(s, c, r.state.value), ze = !0;
|
|
485
485
|
}
|
|
486
486
|
});
|
|
487
487
|
});
|
|
@@ -512,7 +512,7 @@ function Fs(t, e) {
|
|
|
512
512
|
e.$onAction(({ after: c, onError: i, name: a, args: l }) => {
|
|
513
513
|
const u = no++;
|
|
514
514
|
n.addTimelineEvent({
|
|
515
|
-
layerId:
|
|
515
|
+
layerId: we,
|
|
516
516
|
event: {
|
|
517
517
|
time: r(),
|
|
518
518
|
title: "🛫 " + a,
|
|
@@ -526,7 +526,7 @@ function Fs(t, e) {
|
|
|
526
526
|
}
|
|
527
527
|
}), c((f) => {
|
|
528
528
|
ke = void 0, n.addTimelineEvent({
|
|
529
|
-
layerId:
|
|
529
|
+
layerId: we,
|
|
530
530
|
event: {
|
|
531
531
|
time: r(),
|
|
532
532
|
title: "🛬 " + a,
|
|
@@ -542,7 +542,7 @@ function Fs(t, e) {
|
|
|
542
542
|
});
|
|
543
543
|
}), i((f) => {
|
|
544
544
|
ke = void 0, n.addTimelineEvent({
|
|
545
|
-
layerId:
|
|
545
|
+
layerId: we,
|
|
546
546
|
event: {
|
|
547
547
|
time: r(),
|
|
548
548
|
logType: "error",
|
|
@@ -560,8 +560,8 @@ function Fs(t, e) {
|
|
|
560
560
|
});
|
|
561
561
|
}, !0), e._customProperties.forEach((c) => {
|
|
562
562
|
zr(() => G(e[c]), (i, a) => {
|
|
563
|
-
n.notifyComponentUpdate(), n.sendInspectorState(Q),
|
|
564
|
-
layerId:
|
|
563
|
+
n.notifyComponentUpdate(), n.sendInspectorState(Q), ze && n.addTimelineEvent({
|
|
564
|
+
layerId: we,
|
|
565
565
|
event: {
|
|
566
566
|
time: r(),
|
|
567
567
|
title: "Change",
|
|
@@ -575,7 +575,7 @@ function Fs(t, e) {
|
|
|
575
575
|
});
|
|
576
576
|
}, { deep: !0 });
|
|
577
577
|
}), e.$subscribe(({ events: c, type: i }, a) => {
|
|
578
|
-
if (n.notifyComponentUpdate(), n.sendInspectorState(Q),
|
|
578
|
+
if (n.notifyComponentUpdate(), n.sendInspectorState(Q), !ze)
|
|
579
579
|
return;
|
|
580
580
|
const l = {
|
|
581
581
|
time: r(),
|
|
@@ -591,14 +591,14 @@ function Fs(t, e) {
|
|
|
591
591
|
value: c
|
|
592
592
|
}
|
|
593
593
|
}), n.addTimelineEvent({
|
|
594
|
-
layerId:
|
|
594
|
+
layerId: we,
|
|
595
595
|
event: l
|
|
596
596
|
});
|
|
597
597
|
}, { detached: !0, flush: "sync" });
|
|
598
598
|
const o = e._hotUpdate;
|
|
599
|
-
e._hotUpdate =
|
|
599
|
+
e._hotUpdate = Ce((c) => {
|
|
600
600
|
o(c), n.addTimelineEvent({
|
|
601
|
-
layerId:
|
|
601
|
+
layerId: we,
|
|
602
602
|
event: {
|
|
603
603
|
time: r(),
|
|
604
604
|
title: "🔥 " + e.$id,
|
|
@@ -650,7 +650,7 @@ function Ps({ app: t, store: e, options: n }) {
|
|
|
650
650
|
function Bs() {
|
|
651
651
|
const t = Br(!0), e = t.run(() => ve({}));
|
|
652
652
|
let n = [], r = [];
|
|
653
|
-
const o =
|
|
653
|
+
const o = Ce({
|
|
654
654
|
install(s) {
|
|
655
655
|
tt(o), o._a = s, s.provide(Wr, o), s.config.globalProperties.$pinia = o, Xe && Ms(s, o), r.forEach((c) => n.push(c)), r = [];
|
|
656
656
|
},
|
|
@@ -673,7 +673,7 @@ function ro(t, e) {
|
|
|
673
673
|
if (!(n in t))
|
|
674
674
|
continue;
|
|
675
675
|
const o = t[n];
|
|
676
|
-
Ne(o) && Ne(r) && !
|
|
676
|
+
Ne(o) && Ne(r) && !Ve(r) && !Tt(r) ? t[n] = ro(o, r) : t[n] = r;
|
|
677
677
|
}
|
|
678
678
|
return t;
|
|
679
679
|
}
|
|
@@ -687,7 +687,7 @@ function Vn(t, e, n, r = oo) {
|
|
|
687
687
|
};
|
|
688
688
|
return !n && cs() && is(o), o;
|
|
689
689
|
}
|
|
690
|
-
function
|
|
690
|
+
function Pe(t, ...e) {
|
|
691
691
|
t.slice().forEach((n) => {
|
|
692
692
|
n(...e);
|
|
693
693
|
});
|
|
@@ -699,7 +699,7 @@ function fn(t, e) {
|
|
|
699
699
|
if (!e.hasOwnProperty(n))
|
|
700
700
|
continue;
|
|
701
701
|
const r = e[n], o = t[n];
|
|
702
|
-
Ne(o) && Ne(r) && t.hasOwnProperty(n) && !
|
|
702
|
+
Ne(o) && Ne(r) && t.hasOwnProperty(n) && !Ve(r) && !Tt(r) ? t[n] = fn(o, r) : t[n] = r;
|
|
703
703
|
}
|
|
704
704
|
return t;
|
|
705
705
|
}
|
|
@@ -712,7 +712,7 @@ function Us(t) {
|
|
|
712
712
|
}
|
|
713
713
|
const { assign: re } = Object;
|
|
714
714
|
function jn(t) {
|
|
715
|
-
return !!(
|
|
715
|
+
return !!(Ve(t) && t.effect);
|
|
716
716
|
}
|
|
717
717
|
function Hn(t, e, n, r) {
|
|
718
718
|
const { state: o, actions: s, getters: c } = e, i = n.state.value[t];
|
|
@@ -723,7 +723,7 @@ function Hn(t, e, n, r) {
|
|
|
723
723
|
// use ref() to unwrap refs inside state TODO: check if this is still necessary
|
|
724
724
|
xt(ve(o ? o() : {}).value)
|
|
725
725
|
) : xt(n.state.value[t]);
|
|
726
|
-
return re(u, s, Object.keys(c || {}).reduce((f, p) => (process.env.NODE_ENV !== "production" && p in u && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${p}" in store "${t}".`), f[p] =
|
|
726
|
+
return re(u, s, Object.keys(c || {}).reduce((f, p) => (process.env.NODE_ENV !== "production" && p in u && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${p}" in store "${t}".`), f[p] = Ce(Le(() => {
|
|
727
727
|
tt(n);
|
|
728
728
|
const h = n._s.get(t);
|
|
729
729
|
return c[p].call(h, h);
|
|
@@ -763,7 +763,7 @@ function pn(t, e, n = {}, r, o, s) {
|
|
|
763
763
|
const L = S = Symbol();
|
|
764
764
|
Re().then(() => {
|
|
765
765
|
S === L && (l = !0);
|
|
766
|
-
}), u = !0,
|
|
766
|
+
}), u = !0, Pe(f, m, r.state.value[t]);
|
|
767
767
|
}
|
|
768
768
|
const k = s ? function() {
|
|
769
769
|
const { state: m } = n, L = m ? m() : {};
|
|
@@ -783,29 +783,29 @@ function pn(t, e, n = {}, r, o, s) {
|
|
|
783
783
|
return function() {
|
|
784
784
|
tt(r);
|
|
785
785
|
const L = Array.from(arguments), j = [], _ = [];
|
|
786
|
-
function
|
|
786
|
+
function F(b) {
|
|
787
787
|
j.push(b);
|
|
788
788
|
}
|
|
789
789
|
function I(b) {
|
|
790
790
|
_.push(b);
|
|
791
791
|
}
|
|
792
|
-
|
|
792
|
+
Pe(p, {
|
|
793
793
|
args: L,
|
|
794
794
|
name: g,
|
|
795
795
|
store: E,
|
|
796
|
-
after:
|
|
796
|
+
after: F,
|
|
797
797
|
onError: I
|
|
798
798
|
});
|
|
799
799
|
let d;
|
|
800
800
|
try {
|
|
801
801
|
d = m.apply(this && this.$id === t ? this : E, L);
|
|
802
802
|
} catch (b) {
|
|
803
|
-
throw
|
|
803
|
+
throw Pe(_, b), b;
|
|
804
804
|
}
|
|
805
|
-
return d instanceof Promise ? d.then((b) => (
|
|
805
|
+
return d instanceof Promise ? d.then((b) => (Pe(j, b), b)).catch((b) => (Pe(_, b), Promise.reject(b))) : (Pe(j, d), d);
|
|
806
806
|
};
|
|
807
807
|
}
|
|
808
|
-
const q = /* @__PURE__ */
|
|
808
|
+
const q = /* @__PURE__ */ Ce({
|
|
809
809
|
actions: {},
|
|
810
810
|
getters: {},
|
|
811
811
|
state: [],
|
|
@@ -831,7 +831,7 @@ function pn(t, e, n = {}, r, o, s) {
|
|
|
831
831
|
}, E = ss(process.env.NODE_ENV !== "production" || Xe ? re(
|
|
832
832
|
{
|
|
833
833
|
_hmrPayload: q,
|
|
834
|
-
_customProperties:
|
|
834
|
+
_customProperties: Ce(/* @__PURE__ */ new Set())
|
|
835
835
|
// devtools custom properties
|
|
836
836
|
},
|
|
837
837
|
y
|
|
@@ -842,8 +842,8 @@ function pn(t, e, n = {}, r, o, s) {
|
|
|
842
842
|
const z = r._a && r._a.runWithContext || $s, U = r._e.run(() => (c = Br(), z(() => c.run(e))));
|
|
843
843
|
for (const g in U) {
|
|
844
844
|
const m = U[g];
|
|
845
|
-
if (
|
|
846
|
-
process.env.NODE_ENV !== "production" && o ? pt(x.value, g, bt(U, g)) : s || (v && Us(m) && (
|
|
845
|
+
if (Ve(m) && !jn(m) || Tt(m))
|
|
846
|
+
process.env.NODE_ENV !== "production" && o ? pt(x.value, g, bt(U, g)) : s || (v && Us(m) && (Ve(m) ? m.value = v[g] : fn(m, v[g])), r.state.value[t][g] = m), process.env.NODE_ENV !== "production" && q.state.push(g);
|
|
847
847
|
else if (typeof m == "function") {
|
|
848
848
|
const L = process.env.NODE_ENV !== "production" && o ? m : T(g, m);
|
|
849
849
|
U[g] = L, process.env.NODE_ENV !== "production" && (q.actions[g] = m), i.actions[g] = m;
|
|
@@ -852,7 +852,7 @@ function pn(t, e, n = {}, r, o, s) {
|
|
|
852
852
|
// @ts-expect-error
|
|
853
853
|
n.getters[g]
|
|
854
854
|
) : m, qt && (U._getters || // @ts-expect-error: same
|
|
855
|
-
(U._getters =
|
|
855
|
+
(U._getters = Ce([]))).push(g));
|
|
856
856
|
}
|
|
857
857
|
if (re(E, U), re(st(E), U), Object.defineProperty(E, "$state", {
|
|
858
858
|
get: () => process.env.NODE_ENV !== "production" && o ? x.value : r.state.value[t],
|
|
@@ -863,7 +863,7 @@ function pn(t, e, n = {}, r, o, s) {
|
|
|
863
863
|
re(m, g);
|
|
864
864
|
});
|
|
865
865
|
}
|
|
866
|
-
}), process.env.NODE_ENV !== "production" && (E._hotUpdate =
|
|
866
|
+
}), process.env.NODE_ENV !== "production" && (E._hotUpdate = Ce((g) => {
|
|
867
867
|
E._hotUpdating = !0, g._hmrPayload.state.forEach((m) => {
|
|
868
868
|
if (m in E.$state) {
|
|
869
869
|
const L = g.$state[m], j = E.$state[m];
|
|
@@ -882,7 +882,7 @@ function pn(t, e, n = {}, r, o, s) {
|
|
|
882
882
|
for (const m in g._hmrPayload.getters) {
|
|
883
883
|
const L = g._hmrPayload.getters[m], j = s ? (
|
|
884
884
|
// special handling of options api
|
|
885
|
-
|
|
885
|
+
Le(() => (tt(r), L.call(E, E)))
|
|
886
886
|
) : L;
|
|
887
887
|
pt(E, m, j);
|
|
888
888
|
}
|
|
@@ -933,12 +933,12 @@ function Vs(t, e, n) {
|
|
|
933
933
|
const l = rs();
|
|
934
934
|
if (i = // in test mode, ignore the argument provided as we can always retrieve a
|
|
935
935
|
// pinia instance with getActivePinia()
|
|
936
|
-
(process.env.NODE_ENV === "test" &&
|
|
936
|
+
(process.env.NODE_ENV === "test" && Ke && Ke._testing ? null : i) || (l ? $r(Wr, null) : null), i && tt(i), process.env.NODE_ENV !== "production" && !Ke)
|
|
937
937
|
throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Did you forget to install pinia?
|
|
938
938
|
const pinia = createPinia()
|
|
939
939
|
app.use(pinia)
|
|
940
940
|
This will fail in production.`);
|
|
941
|
-
i =
|
|
941
|
+
i = Ke, i._s.has(r) || (s ? pn(r, e, o, i) : Hn(r, o, i), process.env.NODE_ENV !== "production" && (c._pinia = i));
|
|
942
942
|
const u = i._s.get(r);
|
|
943
943
|
if (process.env.NODE_ENV !== "production" && a) {
|
|
944
944
|
const f = "__hot:" + r, p = s ? pn(f, e, o, i, !0) : Hn(f, re({}, o), i, !0);
|
|
@@ -962,7 +962,7 @@ function so(t) {
|
|
|
962
962
|
const e = {};
|
|
963
963
|
for (const n in t) {
|
|
964
964
|
const r = t[n];
|
|
965
|
-
(
|
|
965
|
+
(Ve(r) || Tt(r)) && (e[n] = // ---
|
|
966
966
|
bt(t, n));
|
|
967
967
|
}
|
|
968
968
|
return e;
|
|
@@ -975,8 +975,8 @@ const co = (t, e) => {
|
|
|
975
975
|
return n;
|
|
976
976
|
}, js = {}, Hs = { class: "chat-button" };
|
|
977
977
|
function Gs(t, e) {
|
|
978
|
-
return
|
|
979
|
-
|
|
978
|
+
return P(), W("button", Hs, [
|
|
979
|
+
Ye(t.$slots, "default")
|
|
980
980
|
]);
|
|
981
981
|
}
|
|
982
982
|
const Zs = /* @__PURE__ */ co(js, [["render", Gs]]);
|
|
@@ -1026,28 +1026,28 @@ const Oe = Ws(), Ks = { class: "chat-layout" }, Ys = {
|
|
|
1026
1026
|
Oe.on("scrollToBottom", n), window.addEventListener("resize", n);
|
|
1027
1027
|
}), as(() => {
|
|
1028
1028
|
Oe.off("scrollToBottom", n), window.removeEventListener("resize", n);
|
|
1029
|
-
}), (r, o) => (
|
|
1030
|
-
r.$slots.header ? (
|
|
1031
|
-
|
|
1032
|
-
])) :
|
|
1033
|
-
r.$slots.default ? (
|
|
1029
|
+
}), (r, o) => (P(), W("main", Ks, [
|
|
1030
|
+
r.$slots.header ? (P(), W("div", Ys, [
|
|
1031
|
+
Ye(r.$slots, "header")
|
|
1032
|
+
])) : Qe("", !0),
|
|
1033
|
+
r.$slots.default ? (P(), W("div", {
|
|
1034
1034
|
key: 1,
|
|
1035
1035
|
class: "chat-body",
|
|
1036
1036
|
ref_key: "chatBodyRef",
|
|
1037
1037
|
ref: e
|
|
1038
1038
|
}, [
|
|
1039
|
-
|
|
1040
|
-
], 512)) :
|
|
1041
|
-
r.$slots.footer ? (
|
|
1042
|
-
|
|
1043
|
-
])) :
|
|
1039
|
+
Ye(r.$slots, "default")
|
|
1040
|
+
], 512)) : Qe("", !0),
|
|
1041
|
+
r.$slots.footer ? (P(), W("div", Qs, [
|
|
1042
|
+
Ye(r.$slots, "footer")
|
|
1043
|
+
])) : Qe("", !0)
|
|
1044
1044
|
]));
|
|
1045
1045
|
}
|
|
1046
1046
|
});
|
|
1047
|
-
const
|
|
1047
|
+
const We = {
|
|
1048
1048
|
webhookUrl: "http://localhost:5678",
|
|
1049
1049
|
webhookConfig: {
|
|
1050
|
-
method: "
|
|
1050
|
+
method: "POST",
|
|
1051
1051
|
headers: {}
|
|
1052
1052
|
},
|
|
1053
1053
|
target: "#n8n-chat",
|
|
@@ -1063,8 +1063,7 @@ const Je = {
|
|
|
1063
1063
|
inputPlaceholder: "Type your question.."
|
|
1064
1064
|
}
|
|
1065
1065
|
},
|
|
1066
|
-
theme: {}
|
|
1067
|
-
poweredBy: !0
|
|
1066
|
+
theme: {}
|
|
1068
1067
|
}, ec = "#n8n-chat", tc = "n8n-chat", Gn = `${tc}/sessionId`, io = Symbol("ChatOptions");
|
|
1069
1068
|
function ct() {
|
|
1070
1069
|
return {
|
|
@@ -1087,8 +1086,8 @@ const nc = { class: "chat-get-started" }, rc = /* @__PURE__ */ ae({
|
|
|
1087
1086
|
__name: "GetStarted",
|
|
1088
1087
|
setup(t) {
|
|
1089
1088
|
const { t: e } = Rt();
|
|
1090
|
-
return (n, r) => (
|
|
1091
|
-
|
|
1089
|
+
return (n, r) => (P(), W("div", nc, [
|
|
1090
|
+
De(Zs, {
|
|
1092
1091
|
onClick: r[0] || (r[0] = (o) => n.$emit("click:button"))
|
|
1093
1092
|
}, {
|
|
1094
1093
|
default: Te(() => [
|
|
@@ -1099,9 +1098,9 @@ const nc = { class: "chat-get-started" }, rc = /* @__PURE__ */ ae({
|
|
|
1099
1098
|
]));
|
|
1100
1099
|
}
|
|
1101
1100
|
});
|
|
1102
|
-
const oc = {}, sc = { class: "chat-powered-by" }, cc = /* @__PURE__ */
|
|
1101
|
+
const oc = {}, sc = { class: "chat-powered-by" }, cc = /* @__PURE__ */ ee("a", { href: "https://n8n.io?utm_source=n8n-external&utm_medium=widget-powered-by" }, "n8n", -1);
|
|
1103
1102
|
function ic(t, e) {
|
|
1104
|
-
return
|
|
1103
|
+
return P(), W("div", sc, [
|
|
1105
1104
|
Ur(" Powered by "),
|
|
1106
1105
|
cc
|
|
1107
1106
|
]);
|
|
@@ -1109,10 +1108,11 @@ function ic(t, e) {
|
|
|
1109
1108
|
const ac = /* @__PURE__ */ co(oc, [["render", ic]]), lc = { class: "chat-get-started-footer" }, uc = { key: 0 }, fc = /* @__PURE__ */ ae({
|
|
1110
1109
|
__name: "GetStartedFooter",
|
|
1111
1110
|
setup(t) {
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
G(
|
|
1111
|
+
ct();
|
|
1112
|
+
const { t: e, te: n } = Rt();
|
|
1113
|
+
return (r, o) => (P(), W("div", lc, [
|
|
1114
|
+
G(n)("footer") ? (P(), W("div", uc, Et(G(e)("footer")), 1)) : Qe("", !0),
|
|
1115
|
+
De(ac)
|
|
1116
1116
|
]));
|
|
1117
1117
|
}
|
|
1118
1118
|
});
|
|
@@ -3269,7 +3269,7 @@ const hc = "Á", dc = "á", gc = "Ă", mc = "ă", _c = "∾", bc = "∿", vc = "
|
|
|
3269
3269
|
zwj: TU,
|
|
3270
3270
|
zwnj: qU
|
|
3271
3271
|
};
|
|
3272
|
-
var lo = RU, bn = /[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,
|
|
3272
|
+
var lo = RU, bn = /[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/, He = {}, Zn = {};
|
|
3273
3273
|
function NU(t) {
|
|
3274
3274
|
var e, n, r = Zn[t];
|
|
3275
3275
|
if (r)
|
|
@@ -3419,11 +3419,11 @@ At.prototype.parseHost = function(t) {
|
|
|
3419
3419
|
e && (e = e[0], e !== ":" && (this.port = e.substr(1)), t = t.substr(0, t.length - e.length)), t && (this.hostname = t);
|
|
3420
3420
|
};
|
|
3421
3421
|
var GU = HU;
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
var
|
|
3422
|
+
He.encode = OU;
|
|
3423
|
+
He.decode = LU;
|
|
3424
|
+
He.format = MU;
|
|
3425
|
+
He.parse = GU;
|
|
3426
|
+
var Ee = {}, Gt, er;
|
|
3427
3427
|
function uo() {
|
|
3428
3428
|
return er || (er = 1, Gt = /[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/), Gt;
|
|
3429
3429
|
}
|
|
@@ -3441,7 +3441,7 @@ function po() {
|
|
|
3441
3441
|
}
|
|
3442
3442
|
var or;
|
|
3443
3443
|
function WU() {
|
|
3444
|
-
return or || (or = 1,
|
|
3444
|
+
return or || (or = 1, Ee.Any = uo(), Ee.Cc = fo(), Ee.Cf = ZU(), Ee.P = bn, Ee.Z = po()), Ee;
|
|
3445
3445
|
}
|
|
3446
3446
|
(function(t) {
|
|
3447
3447
|
function e(_) {
|
|
@@ -3451,12 +3451,12 @@ function WU() {
|
|
|
3451
3451
|
return e(_) === "[object String]";
|
|
3452
3452
|
}
|
|
3453
3453
|
var r = Object.prototype.hasOwnProperty;
|
|
3454
|
-
function o(_,
|
|
3455
|
-
return r.call(_,
|
|
3454
|
+
function o(_, F) {
|
|
3455
|
+
return r.call(_, F);
|
|
3456
3456
|
}
|
|
3457
3457
|
function s(_) {
|
|
3458
|
-
var
|
|
3459
|
-
return
|
|
3458
|
+
var F = Array.prototype.slice.call(arguments, 1);
|
|
3459
|
+
return F.forEach(function(I) {
|
|
3460
3460
|
if (I) {
|
|
3461
3461
|
if (typeof I != "object")
|
|
3462
3462
|
throw new TypeError(I + "must be object");
|
|
@@ -3466,8 +3466,8 @@ function WU() {
|
|
|
3466
3466
|
}
|
|
3467
3467
|
}), _;
|
|
3468
3468
|
}
|
|
3469
|
-
function c(_,
|
|
3470
|
-
return [].concat(_.slice(0,
|
|
3469
|
+
function c(_, F, I) {
|
|
3470
|
+
return [].concat(_.slice(0, F), I, _.slice(F + 1));
|
|
3471
3471
|
}
|
|
3472
3472
|
function i(_) {
|
|
3473
3473
|
return !(_ >= 55296 && _ <= 57343 || _ >= 64976 && _ <= 65007 || (_ & 65535) === 65535 || (_ & 65535) === 65534 || _ >= 0 && _ <= 8 || _ === 11 || _ >= 14 && _ <= 31 || _ >= 127 && _ <= 159 || _ > 1114111);
|
|
@@ -3475,22 +3475,22 @@ function WU() {
|
|
|
3475
3475
|
function a(_) {
|
|
3476
3476
|
if (_ > 65535) {
|
|
3477
3477
|
_ -= 65536;
|
|
3478
|
-
var
|
|
3479
|
-
return String.fromCharCode(
|
|
3478
|
+
var F = 55296 + (_ >> 10), I = 56320 + (_ & 1023);
|
|
3479
|
+
return String.fromCharCode(F, I);
|
|
3480
3480
|
}
|
|
3481
3481
|
return String.fromCharCode(_);
|
|
3482
3482
|
}
|
|
3483
3483
|
var l = /\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g, u = /&([a-z#][a-z0-9]{1,31});/gi, f = new RegExp(l.source + "|" + u.source, "gi"), p = /^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i, h = lo;
|
|
3484
|
-
function v(_,
|
|
3484
|
+
function v(_, F) {
|
|
3485
3485
|
var I = 0;
|
|
3486
|
-
return o(h,
|
|
3486
|
+
return o(h, F) ? h[F] : F.charCodeAt(0) === 35 && p.test(F) && (I = F[1].toLowerCase() === "x" ? parseInt(F.slice(2), 16) : parseInt(F.slice(1), 10), i(I)) ? a(I) : _;
|
|
3487
3487
|
}
|
|
3488
3488
|
function x(_) {
|
|
3489
3489
|
return _.indexOf("\\") < 0 ? _ : _.replace(l, "$1");
|
|
3490
3490
|
}
|
|
3491
3491
|
function S(_) {
|
|
3492
|
-
return _.indexOf("\\") < 0 && _.indexOf("&") < 0 ? _ : _.replace(f, function(
|
|
3493
|
-
return I || v(
|
|
3492
|
+
return _.indexOf("\\") < 0 && _.indexOf("&") < 0 ? _ : _.replace(f, function(F, I, d) {
|
|
3493
|
+
return I || v(F, d);
|
|
3494
3494
|
});
|
|
3495
3495
|
}
|
|
3496
3496
|
var A = /[&<>"]/, k = /[&<>"]/g, C = {
|
|
@@ -3582,7 +3582,7 @@ function WU() {
|
|
|
3582
3582
|
function j(_) {
|
|
3583
3583
|
return _ = _.trim().replace(/\s+/g, " "), "ẞ".toLowerCase() === "Ṿ" && (_ = _.replace(/ẞ/g, "ß")), _.toLowerCase().toUpperCase();
|
|
3584
3584
|
}
|
|
3585
|
-
t.lib = {}, t.lib.mdurl =
|
|
3585
|
+
t.lib = {}, t.lib.mdurl = He, t.lib.ucmicro = WU(), t.assign = s, t.isString = n, t.has = o, t.unescapeMd = x, t.unescapeAll = S, t.isValidEntityCode = i, t.fromCodePoint = a, t.escapeHtml = q, t.arrayReplaceAt = c, t.isSpace = z, t.isWhiteSpace = U, t.isMdAsciiPunct = L, t.isPunctChar = m, t.escapeRE = E, t.normalizeReference = j;
|
|
3586
3586
|
})(B);
|
|
3587
3587
|
var It = {}, JU = function(e, n, r) {
|
|
3588
3588
|
var o, s, c, i, a = -1, l = e.posMax, u = e.pos;
|
|
@@ -3701,10 +3701,10 @@ ge.html_block = function(t, e) {
|
|
|
3701
3701
|
ge.html_inline = function(t, e) {
|
|
3702
3702
|
return t[e].content;
|
|
3703
3703
|
};
|
|
3704
|
-
function
|
|
3704
|
+
function Ge() {
|
|
3705
3705
|
this.rules = XU({}, ge);
|
|
3706
3706
|
}
|
|
3707
|
-
|
|
3707
|
+
Ge.prototype.renderAttrs = function(e) {
|
|
3708
3708
|
var n, r, o;
|
|
3709
3709
|
if (!e.attrs)
|
|
3710
3710
|
return "";
|
|
@@ -3712,30 +3712,30 @@ Ze.prototype.renderAttrs = function(e) {
|
|
|
3712
3712
|
o += " " + Ie(e.attrs[n][0]) + '="' + Ie(e.attrs[n][1]) + '"';
|
|
3713
3713
|
return o;
|
|
3714
3714
|
};
|
|
3715
|
-
|
|
3715
|
+
Ge.prototype.renderToken = function(e, n, r) {
|
|
3716
3716
|
var o, s = "", c = !1, i = e[n];
|
|
3717
3717
|
return i.hidden ? "" : (i.block && i.nesting !== -1 && n && e[n - 1].hidden && (s += `
|
|
3718
3718
|
`), s += (i.nesting === -1 ? "</" : "<") + i.tag, s += this.renderAttrs(i), i.nesting === 0 && r.xhtmlOut && (s += " /"), i.block && (c = !0, i.nesting === 1 && n + 1 < e.length && (o = e[n + 1], (o.type === "inline" || o.hidden || o.nesting === -1 && o.tag === i.tag) && (c = !1))), s += c ? `>
|
|
3719
3719
|
` : ">", s);
|
|
3720
3720
|
};
|
|
3721
|
-
|
|
3721
|
+
Ge.prototype.renderInline = function(t, e, n) {
|
|
3722
3722
|
for (var r, o = "", s = this.rules, c = 0, i = t.length; c < i; c++)
|
|
3723
3723
|
r = t[c].type, typeof s[r] < "u" ? o += s[r](t, c, e, n, this) : o += this.renderToken(t, c, e);
|
|
3724
3724
|
return o;
|
|
3725
3725
|
};
|
|
3726
|
-
|
|
3726
|
+
Ge.prototype.renderInlineAsText = function(t, e, n) {
|
|
3727
3727
|
for (var r = "", o = 0, s = t.length; o < s; o++)
|
|
3728
3728
|
t[o].type === "text" ? r += t[o].content : t[o].type === "image" ? r += this.renderInlineAsText(t[o].children, e, n) : t[o].type === "softbreak" && (r += `
|
|
3729
3729
|
`);
|
|
3730
3730
|
return r;
|
|
3731
3731
|
};
|
|
3732
|
-
|
|
3732
|
+
Ge.prototype.render = function(t, e, n) {
|
|
3733
3733
|
var r, o, s, c = "", i = this.rules;
|
|
3734
3734
|
for (r = 0, o = t.length; r < o; r++)
|
|
3735
3735
|
s = t[r].type, s === "inline" ? c += this.renderInline(t[r].children, e, n) : typeof i[s] < "u" ? c += i[t[r].type](t, r, e, n, this) : c += this.renderToken(t, r, e, n);
|
|
3736
3736
|
return c;
|
|
3737
3737
|
};
|
|
3738
|
-
var t3 =
|
|
3738
|
+
var t3 = Ge;
|
|
3739
3739
|
function le() {
|
|
3740
3740
|
this.__rules__ = [], this.__cache__ = null;
|
|
3741
3741
|
}
|
|
@@ -3948,10 +3948,10 @@ var k3 = function(e) {
|
|
|
3948
3948
|
for (n = e.tokens.length - 1; n >= 0; n--)
|
|
3949
3949
|
e.tokens[n].type !== "inline" || !b3.test(e.tokens[n].content) || v3(e.tokens[n].children, e);
|
|
3950
3950
|
};
|
|
3951
|
-
function
|
|
3951
|
+
function Ze(t, e, n) {
|
|
3952
3952
|
this.type = t, this.tag = e, this.attrs = null, this.map = null, this.nesting = n, this.level = 0, this.children = null, this.content = "", this.markup = "", this.info = "", this.meta = null, this.block = !1, this.hidden = !1;
|
|
3953
3953
|
}
|
|
3954
|
-
|
|
3954
|
+
Ze.prototype.attrIndex = function(e) {
|
|
3955
3955
|
var n, r, o;
|
|
3956
3956
|
if (!this.attrs)
|
|
3957
3957
|
return -1;
|
|
@@ -3960,22 +3960,22 @@ We.prototype.attrIndex = function(e) {
|
|
|
3960
3960
|
return r;
|
|
3961
3961
|
return -1;
|
|
3962
3962
|
};
|
|
3963
|
-
|
|
3963
|
+
Ze.prototype.attrPush = function(e) {
|
|
3964
3964
|
this.attrs ? this.attrs.push(e) : this.attrs = [e];
|
|
3965
3965
|
};
|
|
3966
|
-
|
|
3966
|
+
Ze.prototype.attrSet = function(e, n) {
|
|
3967
3967
|
var r = this.attrIndex(e), o = [e, n];
|
|
3968
3968
|
r < 0 ? this.attrPush(o) : this.attrs[r] = o;
|
|
3969
3969
|
};
|
|
3970
|
-
|
|
3970
|
+
Ze.prototype.attrGet = function(e) {
|
|
3971
3971
|
var n = this.attrIndex(e), r = null;
|
|
3972
3972
|
return n >= 0 && (r = this.attrs[n][1]), r;
|
|
3973
3973
|
};
|
|
3974
|
-
|
|
3974
|
+
Ze.prototype.attrJoin = function(e, n) {
|
|
3975
3975
|
var r = this.attrIndex(e);
|
|
3976
3976
|
r < 0 ? this.attrPush([e, n]) : this.attrs[r][1] = this.attrs[r][1] + " " + n;
|
|
3977
3977
|
};
|
|
3978
|
-
var kn =
|
|
3978
|
+
var kn = Ze, y3 = kn;
|
|
3979
3979
|
function go(t, e, n) {
|
|
3980
3980
|
this.src = t, this.env = n, this.tokens = [], this.inlineMode = !1, this.md = e;
|
|
3981
3981
|
}
|
|
@@ -4151,7 +4151,7 @@ function R3(t, e) {
|
|
|
4151
4151
|
t.tokens[n].level === o && t.tokens[n].type === "paragraph_open" && (t.tokens[n + 2].hidden = !0, t.tokens[n].hidden = !0, n += 2);
|
|
4152
4152
|
}
|
|
4153
4153
|
var N3 = function(e, n, r, o) {
|
|
4154
|
-
var s, c, i, a, l, u, f, p, h, v, x, S, A, k, C, T, q, y, E, z, U, g, m, L, j, _,
|
|
4154
|
+
var s, c, i, a, l, u, f, p, h, v, x, S, A, k, C, T, q, y, E, z, U, g, m, L, j, _, F, I, d = !1, b = !0;
|
|
4155
4155
|
if (e.sCount[n] - e.blkIndent >= 4 || e.listIndent >= 0 && e.sCount[n] - e.listIndent >= 4 && e.sCount[n] < e.blkIndent)
|
|
4156
4156
|
return !1;
|
|
4157
4157
|
if (o && e.parentType === "paragraph" && e.sCount[n] >= e.blkIndent && (d = !0), (m = dr(e, n)) >= 0) {
|
|
@@ -4165,7 +4165,7 @@ var N3 = function(e, n, r, o) {
|
|
|
4165
4165
|
return !1;
|
|
4166
4166
|
if (S = e.src.charCodeAt(m - 1), o)
|
|
4167
4167
|
return !0;
|
|
4168
|
-
for (x = e.tokens.length, f ? (I = e.push("ordered_list_open", "ol", 1), A !== 1 && (I.attrs = [["start", A]])) : I = e.push("bullet_list_open", "ul", 1), I.map = v = [n, 0], I.markup = String.fromCharCode(S), C = n, L = !1,
|
|
4168
|
+
for (x = e.tokens.length, f ? (I = e.push("ordered_list_open", "ol", 1), A !== 1 && (I.attrs = [["start", A]])) : I = e.push("bullet_list_open", "ul", 1), I.map = v = [n, 0], I.markup = String.fromCharCode(S), C = n, L = !1, F = e.md.block.ruler.getRules("list"), y = e.parentType, e.parentType = "list"; C < r; ) {
|
|
4169
4169
|
for (g = m, k = e.eMarks[C], u = T = e.sCount[C] + m - (e.bMarks[n] + e.tShift[n]); g < k; ) {
|
|
4170
4170
|
if (s = e.src.charCodeAt(g), s === 9)
|
|
4171
4171
|
T += 4 - (T + e.bsCount[C]) % 4;
|
|
@@ -4177,8 +4177,8 @@ var N3 = function(e, n, r, o) {
|
|
|
4177
4177
|
}
|
|
4178
4178
|
if (c = g, c >= k ? l = 1 : l = T - u, l > 4 && (l = 1), a = u + l, I = e.push("list_item_open", "li", 1), I.markup = String.fromCharCode(S), I.map = p = [n, 0], f && (I.info = e.src.slice(j, m - 1)), U = e.tight, z = e.tShift[n], E = e.sCount[n], q = e.listIndent, e.listIndent = e.blkIndent, e.blkIndent = a, e.tight = !0, e.tShift[n] = c - e.bMarks[n], e.sCount[n] = T, c >= k && e.isEmpty(n + 1) ? e.line = Math.min(e.line + 2, r) : e.md.block.tokenize(e, n, r, !0), (!e.tight || L) && (b = !1), L = e.line - n > 1 && e.isEmpty(e.line - 1), e.blkIndent = e.listIndent, e.listIndent = q, e.tShift[n] = z, e.sCount[n] = E, e.tight = U, I = e.push("list_item_close", "li", -1), I.markup = String.fromCharCode(S), C = n = e.line, p[1] = C, c = e.bMarks[n], C >= r || e.sCount[C] < e.blkIndent || e.sCount[n] - e.blkIndent >= 4)
|
|
4179
4179
|
break;
|
|
4180
|
-
for (_ = !1, i = 0, h =
|
|
4181
|
-
if (
|
|
4180
|
+
for (_ = !1, i = 0, h = F.length; i < h; i++)
|
|
4181
|
+
if (F[i](e, C, r, !0)) {
|
|
4182
4182
|
_ = !0;
|
|
4183
4183
|
break;
|
|
4184
4184
|
}
|
|
@@ -4309,7 +4309,7 @@ var N3 = function(e, n, r, o) {
|
|
|
4309
4309
|
], Lt = {}, M3 = "[a-zA-Z_:][a-zA-Z0-9:._-]*", F3 = "[^\"'=<>`\\x00-\\x20]+", P3 = "'[^']*'", B3 = '"[^"]*"', $3 = "(?:" + F3 + "|" + P3 + "|" + B3 + ")", z3 = "(?:\\s+" + M3 + "(?:\\s*=\\s*" + $3 + ")?)", _o = "<[A-Za-z][A-Za-z0-9\\-]*" + z3 + "*\\s*\\/?>", bo = "<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>", U3 = "<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->", V3 = "<[?][\\s\\S]*?[?]>", j3 = "<![A-Z]+\\s+[^>]*>", H3 = "<!\\[CDATA\\[[\\s\\S]*?\\]\\]>", G3 = new RegExp("^(?:" + _o + "|" + bo + "|" + U3 + "|" + V3 + "|" + j3 + "|" + H3 + ")"), Z3 = new RegExp("^(?:" + _o + "|" + bo + ")");
|
|
4310
4310
|
Lt.HTML_TAG_RE = G3;
|
|
4311
4311
|
Lt.HTML_OPEN_CLOSE_TAG_RE = Z3;
|
|
4312
|
-
var W3 = L3, J3 = Lt.HTML_OPEN_CLOSE_TAG_RE,
|
|
4312
|
+
var W3 = L3, J3 = Lt.HTML_OPEN_CLOSE_TAG_RE, Be = [
|
|
4313
4313
|
[/^<(script|pre|style|textarea)(?=(\s|>|$))/i, /<\/(script|pre|style|textarea)>/i, !0],
|
|
4314
4314
|
[/^<!--/, /-->/, !0],
|
|
4315
4315
|
[/^<\?/, /\?>/, !0],
|
|
@@ -4321,15 +4321,15 @@ var W3 = L3, J3 = Lt.HTML_OPEN_CLOSE_TAG_RE, Pe = [
|
|
|
4321
4321
|
var s, c, i, a, l = e.bMarks[n] + e.tShift[n], u = e.eMarks[n];
|
|
4322
4322
|
if (e.sCount[n] - e.blkIndent >= 4 || !e.md.options.html || e.src.charCodeAt(l) !== 60)
|
|
4323
4323
|
return !1;
|
|
4324
|
-
for (a = e.src.slice(l, u), s = 0; s <
|
|
4324
|
+
for (a = e.src.slice(l, u), s = 0; s < Be.length && !Be[s][0].test(a); s++)
|
|
4325
4325
|
;
|
|
4326
|
-
if (s ===
|
|
4326
|
+
if (s === Be.length)
|
|
4327
4327
|
return !1;
|
|
4328
4328
|
if (o)
|
|
4329
|
-
return
|
|
4330
|
-
if (c = n + 1, !
|
|
4329
|
+
return Be[s][2];
|
|
4330
|
+
if (c = n + 1, !Be[s][1].test(a)) {
|
|
4331
4331
|
for (; c < r && !(e.sCount[c] < e.blkIndent); c++)
|
|
4332
|
-
if (l = e.bMarks[c] + e.tShift[c], u = e.eMarks[c], a = e.src.slice(l, u),
|
|
4332
|
+
if (l = e.bMarks[c] + e.tShift[c], u = e.eMarks[c], a = e.src.slice(l, u), Be[s][1].test(a)) {
|
|
4333
4333
|
a.length !== 0 && c++;
|
|
4334
4334
|
break;
|
|
4335
4335
|
}
|
|
@@ -5029,12 +5029,12 @@ oe.prototype.normalize = function(e) {
|
|
|
5029
5029
|
oe.prototype.onCompile = function() {
|
|
5030
5030
|
};
|
|
5031
5031
|
var zV = oe;
|
|
5032
|
-
const
|
|
5032
|
+
const Ue = 2147483647, pe = 36, wn = 1, nt = 26, UV = 38, VV = 700, yo = 72, xo = 128, Eo = "-", jV = /^xn--/, HV = /[^\0-\x7E]/, GV = /[\x2E\u3002\uFF0E\uFF61]/g, ZV = {
|
|
5033
5033
|
overflow: "Overflow: input needs wider integers to process",
|
|
5034
5034
|
"not-basic": "Illegal input >= 0x80 (not a basic code point)",
|
|
5035
5035
|
"invalid-input": "Invalid input"
|
|
5036
5036
|
}, on = pe - wn, he = Math.floor, sn = String.fromCharCode;
|
|
5037
|
-
function
|
|
5037
|
+
function Ae(t) {
|
|
5038
5038
|
throw new RangeError(ZV[t]);
|
|
5039
5039
|
}
|
|
5040
5040
|
function WV(t, e) {
|
|
@@ -5079,21 +5079,21 @@ const Ao = (t) => String.fromCodePoint(...t), JV = function(t) {
|
|
|
5079
5079
|
let r = 0, o = xo, s = yo, c = t.lastIndexOf(Eo);
|
|
5080
5080
|
c < 0 && (c = 0);
|
|
5081
5081
|
for (let i = 0; i < c; ++i)
|
|
5082
|
-
t.charCodeAt(i) >= 128 &&
|
|
5082
|
+
t.charCodeAt(i) >= 128 && Ae("not-basic"), e.push(t.charCodeAt(i));
|
|
5083
5083
|
for (let i = c > 0 ? c + 1 : 0; i < n; ) {
|
|
5084
5084
|
let a = r;
|
|
5085
5085
|
for (let u = 1, f = pe; ; f += pe) {
|
|
5086
|
-
i >= n &&
|
|
5086
|
+
i >= n && Ae("invalid-input");
|
|
5087
5087
|
const p = JV(t.charCodeAt(i++));
|
|
5088
|
-
(p >= pe || p > he((
|
|
5088
|
+
(p >= pe || p > he((Ue - r) / u)) && Ae("overflow"), r += p * u;
|
|
5089
5089
|
const h = f <= s ? wn : f >= s + nt ? nt : f - s;
|
|
5090
5090
|
if (p < h)
|
|
5091
5091
|
break;
|
|
5092
5092
|
const v = pe - h;
|
|
5093
|
-
u > he(
|
|
5093
|
+
u > he(Ue / v) && Ae("overflow"), u *= v;
|
|
5094
5094
|
}
|
|
5095
5095
|
const l = e.length + 1;
|
|
5096
|
-
s = Co(r - a, l, a == 0), he(r / l) >
|
|
5096
|
+
s = Co(r - a, l, a == 0), he(r / l) > Ue - o && Ae("overflow"), o += he(r / l), r %= l, e.splice(r++, 0, o);
|
|
5097
5097
|
}
|
|
5098
5098
|
return String.fromCodePoint(...e);
|
|
5099
5099
|
}, Sn = function(t) {
|
|
@@ -5104,13 +5104,13 @@ const Ao = (t) => String.fromCodePoint(...t), JV = function(t) {
|
|
|
5104
5104
|
a < 128 && e.push(sn(a));
|
|
5105
5105
|
let c = e.length, i = c;
|
|
5106
5106
|
for (c && e.push(Eo); i < n; ) {
|
|
5107
|
-
let a =
|
|
5107
|
+
let a = Ue;
|
|
5108
5108
|
for (const u of t)
|
|
5109
5109
|
u >= r && u < a && (a = u);
|
|
5110
5110
|
const l = i + 1;
|
|
5111
|
-
a - r > he((
|
|
5111
|
+
a - r > he((Ue - o) / l) && Ae("overflow"), o += (a - r) * l, r = a;
|
|
5112
5112
|
for (const u of t)
|
|
5113
|
-
if (u < r && ++o >
|
|
5113
|
+
if (u < r && ++o > Ue && Ae("overflow"), u === r) {
|
|
5114
5114
|
let f = o;
|
|
5115
5115
|
for (let p = pe; ; p += pe) {
|
|
5116
5116
|
const h = p <= s ? wn : p >= s + nt ? nt : p - s;
|
|
@@ -5329,7 +5329,7 @@ var XV = {
|
|
|
5329
5329
|
]
|
|
5330
5330
|
}
|
|
5331
5331
|
}
|
|
5332
|
-
}, et = B, nj = It, rj = t3, oj = w3, sj = nV, cj = DV, ij = zV,
|
|
5332
|
+
}, et = B, nj = It, rj = t3, oj = w3, sj = nV, cj = DV, ij = zV, Se = He, To = QV, aj = {
|
|
5333
5333
|
default: XV,
|
|
5334
5334
|
zero: ej,
|
|
5335
5335
|
commonmark: tj
|
|
@@ -5340,22 +5340,22 @@ function fj(t) {
|
|
|
5340
5340
|
}
|
|
5341
5341
|
var qo = ["http:", "https:", "mailto:"];
|
|
5342
5342
|
function pj(t) {
|
|
5343
|
-
var e =
|
|
5343
|
+
var e = Se.parse(t, !0);
|
|
5344
5344
|
if (e.hostname && (!e.protocol || qo.indexOf(e.protocol) >= 0))
|
|
5345
5345
|
try {
|
|
5346
5346
|
e.hostname = To.toASCII(e.hostname);
|
|
5347
5347
|
} catch {
|
|
5348
5348
|
}
|
|
5349
|
-
return
|
|
5349
|
+
return Se.encode(Se.format(e));
|
|
5350
5350
|
}
|
|
5351
5351
|
function hj(t) {
|
|
5352
|
-
var e =
|
|
5352
|
+
var e = Se.parse(t, !0);
|
|
5353
5353
|
if (e.hostname && (!e.protocol || qo.indexOf(e.protocol) >= 0))
|
|
5354
5354
|
try {
|
|
5355
5355
|
e.hostname = To.toUnicode(e.hostname);
|
|
5356
5356
|
} catch {
|
|
5357
5357
|
}
|
|
5358
|
-
return
|
|
5358
|
+
return Se.decode(Se.format(e), Se.decode.defaultChars + "%");
|
|
5359
5359
|
}
|
|
5360
5360
|
function se(t, e) {
|
|
5361
5361
|
if (!(this instanceof se))
|
|
@@ -5647,15 +5647,15 @@ function rt(t) {
|
|
|
5647
5647
|
return t ? typeof t == "string" ? t : t.source : null;
|
|
5648
5648
|
}
|
|
5649
5649
|
function Oo(t) {
|
|
5650
|
-
return
|
|
5650
|
+
return Me("(?=", t, ")");
|
|
5651
5651
|
}
|
|
5652
5652
|
function Ej(t) {
|
|
5653
|
-
return
|
|
5653
|
+
return Me("(?:", t, ")*");
|
|
5654
5654
|
}
|
|
5655
5655
|
function wj(t) {
|
|
5656
|
-
return
|
|
5656
|
+
return Me("(?:", t, ")?");
|
|
5657
5657
|
}
|
|
5658
|
-
function
|
|
5658
|
+
function Me(...t) {
|
|
5659
5659
|
return t.map((n) => rt(n)).join("");
|
|
5660
5660
|
}
|
|
5661
5661
|
function Aj(t) {
|
|
@@ -5692,7 +5692,7 @@ function qn(t, { joinWith: e }) {
|
|
|
5692
5692
|
}
|
|
5693
5693
|
const Dj = /\b\B/, Lo = "[a-zA-Z]\\w*", Rn = "[a-zA-Z_]\\w*", Mo = "\\b\\d+(\\.\\d+)?", Fo = "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)", Po = "\\b(0b[01]+)", Tj = "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", qj = (t = {}) => {
|
|
5694
5694
|
const e = /^#![ ]*\//;
|
|
5695
|
-
return t.binary && (t.begin =
|
|
5695
|
+
return t.binary && (t.begin = Me(
|
|
5696
5696
|
e,
|
|
5697
5697
|
/.*\b/,
|
|
5698
5698
|
t.binary,
|
|
@@ -5779,7 +5779,7 @@ const Dj = /\b\B/, Lo = "[a-zA-Z]\\w*", Rn = "[a-zA-Z_]\\w*", Mo = "\\b\\d+(\\.\
|
|
|
5779
5779
|
//
|
|
5780
5780
|
// for a visual example please see:
|
|
5781
5781
|
// https://github.com/highlightjs/highlight.js/issues/2827
|
|
5782
|
-
begin:
|
|
5782
|
+
begin: Me(
|
|
5783
5783
|
/[ ]+/,
|
|
5784
5784
|
// necessary to prevent us gobbling up doctags like /* @author Bob Mcgill */
|
|
5785
5785
|
"(",
|
|
@@ -5909,7 +5909,7 @@ const Yj = (t, e) => {
|
|
|
5909
5909
|
const n = Object.assign({}, t);
|
|
5910
5910
|
Object.keys(t).forEach((r) => {
|
|
5911
5911
|
delete t[r];
|
|
5912
|
-
}), t.keywords = n.keywords, t.begin =
|
|
5912
|
+
}), t.keywords = n.keywords, t.begin = Me(n.beforeMatch, Oo(n.begin)), t.starts = {
|
|
5913
5913
|
relevance: 0,
|
|
5914
5914
|
contains: [
|
|
5915
5915
|
Object.assign(n, { endsParent: !0 })
|
|
@@ -5956,7 +5956,7 @@ const Ir = {}, qe = (t) => {
|
|
|
5956
5956
|
console.error(t);
|
|
5957
5957
|
}, Lr = (t, ...e) => {
|
|
5958
5958
|
console.log(`WARN: ${t}`, ...e);
|
|
5959
|
-
},
|
|
5959
|
+
}, $e = (t, e) => {
|
|
5960
5960
|
Ir[`${t}/${e}`] || (console.log(`Deprecated as of ${t}. ${e}`), Ir[`${t}/${e}`] = !0);
|
|
5961
5961
|
}, St = new Error();
|
|
5962
5962
|
function $o(t, e, { key: n }) {
|
|
@@ -6145,15 +6145,15 @@ const cn = No, Mr = ye, Fr = Symbol("nomatch"), u8 = 7, Uo = function(t) {
|
|
|
6145
6145
|
}
|
|
6146
6146
|
function u(d, b, N) {
|
|
6147
6147
|
let M = "", H = "";
|
|
6148
|
-
typeof b == "object" ? (M = d, N = b.ignoreIllegals, H = b.language) : (
|
|
6148
|
+
typeof b == "object" ? (M = d, N = b.ignoreIllegals, H = b.language) : ($e("10.7.0", "highlight(lang, code, ...args) has been deprecated."), $e("10.7.0", `Please use highlight(code, options) instead.
|
|
6149
6149
|
https://github.com/highlightjs/highlight.js/issues/2277`), H = d, M = b), N === void 0 && (N = !0);
|
|
6150
6150
|
const X = {
|
|
6151
6151
|
code: M,
|
|
6152
6152
|
language: H
|
|
6153
6153
|
};
|
|
6154
|
-
|
|
6154
|
+
F("before:highlight", X);
|
|
6155
6155
|
const ce = X.result ? X.result : f(X.language, X.code, N);
|
|
6156
|
-
return ce.code = X.code,
|
|
6156
|
+
return ce.code = X.code, F("after:highlight", ce), ce;
|
|
6157
6157
|
}
|
|
6158
6158
|
function f(d, b, N, M) {
|
|
6159
6159
|
const H = /* @__PURE__ */ Object.create(null);
|
|
@@ -6200,7 +6200,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), H = d, M = b), N ===
|
|
|
6200
6200
|
w = h(V, R.subLanguage.length ? R.subLanguage : null);
|
|
6201
6201
|
R.relevance > 0 && (ft += w.relevance), J.__addSublanguage(w._emitter, w.language);
|
|
6202
6202
|
}
|
|
6203
|
-
function
|
|
6203
|
+
function te() {
|
|
6204
6204
|
R.subLanguage != null ? lt() : ce(), V = "";
|
|
6205
6205
|
}
|
|
6206
6206
|
function ue(w, D) {
|
|
@@ -6245,14 +6245,14 @@ https://github.com/highlightjs/highlight.js/issues/2277`), H = d, M = b), N ===
|
|
|
6245
6245
|
for (const _e of Y)
|
|
6246
6246
|
if (_e && (_e(w, $), $.isMatchIgnored))
|
|
6247
6247
|
return Ko(D);
|
|
6248
|
-
return O.skip ? V += D : (O.excludeBegin && (V += D),
|
|
6248
|
+
return O.skip ? V += D : (O.excludeBegin && (V += D), te(), !O.returnBegin && !O.excludeBegin && (V = D)), In(O, w), O.returnBegin ? 0 : D.length;
|
|
6249
6249
|
}
|
|
6250
6250
|
function Qo(w) {
|
|
6251
6251
|
const D = w[0], O = b.substring(w.index), $ = Ln(R, w, O);
|
|
6252
6252
|
if (!$)
|
|
6253
6253
|
return Fr;
|
|
6254
6254
|
const Y = R;
|
|
6255
|
-
R.endScope && R.endScope._wrap ? (
|
|
6255
|
+
R.endScope && R.endScope._wrap ? (te(), ue(D, R.endScope._wrap)) : R.endScope && R.endScope._multi ? (te(), On(R.endScope, w)) : Y.skip ? V += D : (Y.returnEnd || Y.excludeEnd || (V += D), te(), Y.excludeEnd && (V = D));
|
|
6256
6256
|
do
|
|
6257
6257
|
R.scope && J.closeNode(), !R.skip && !R.subLanguage && (ft += R.relevance), R = R.parent;
|
|
6258
6258
|
while (R !== $.parent);
|
|
@@ -6268,7 +6268,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), H = d, M = b), N ===
|
|
|
6268
6268
|
function Mn(w, D) {
|
|
6269
6269
|
const O = D && D[0];
|
|
6270
6270
|
if (V += w, O == null)
|
|
6271
|
-
return
|
|
6271
|
+
return te(), 0;
|
|
6272
6272
|
if (ut.type === "begin" && D.type === "end" && ut.index === D.index && O === "") {
|
|
6273
6273
|
if (V += b.slice(D.index, D.index + 1), !o) {
|
|
6274
6274
|
const $ = new Error(`0 width match regex (${d})`);
|
|
@@ -6299,20 +6299,20 @@ https://github.com/highlightjs/highlight.js/issues/2277`), H = d, M = b), N ===
|
|
|
6299
6299
|
let Ut = "", R = M || es;
|
|
6300
6300
|
const Fn = {}, J = new i.__emitter(i);
|
|
6301
6301
|
Xo();
|
|
6302
|
-
let V = "", ft = 0,
|
|
6302
|
+
let V = "", ft = 0, xe = 0, Vt = 0, jt = !1;
|
|
6303
6303
|
try {
|
|
6304
6304
|
if (fe.__emitTokens)
|
|
6305
6305
|
fe.__emitTokens(b, J);
|
|
6306
6306
|
else {
|
|
6307
6307
|
for (R.matcher.considerAll(); ; ) {
|
|
6308
|
-
Vt++, jt ? jt = !1 : R.matcher.considerAll(), R.matcher.lastIndex =
|
|
6308
|
+
Vt++, jt ? jt = !1 : R.matcher.considerAll(), R.matcher.lastIndex = xe;
|
|
6309
6309
|
const w = R.matcher.exec(b);
|
|
6310
6310
|
if (!w)
|
|
6311
6311
|
break;
|
|
6312
|
-
const D = b.substring(
|
|
6313
|
-
|
|
6312
|
+
const D = b.substring(xe, w.index), O = Mn(D, w);
|
|
6313
|
+
xe = w.index + O;
|
|
6314
6314
|
}
|
|
6315
|
-
Mn(b.substring(
|
|
6315
|
+
Mn(b.substring(xe));
|
|
6316
6316
|
}
|
|
6317
6317
|
return J.finalize(), Ut = J.toHTML(), {
|
|
6318
6318
|
language: d,
|
|
@@ -6331,8 +6331,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), H = d, M = b), N ===
|
|
|
6331
6331
|
relevance: 0,
|
|
6332
6332
|
_illegalBy: {
|
|
6333
6333
|
message: w.message,
|
|
6334
|
-
index:
|
|
6335
|
-
context: b.slice(
|
|
6334
|
+
index: xe,
|
|
6335
|
+
context: b.slice(xe - 100, xe + 100),
|
|
6336
6336
|
mode: w.mode,
|
|
6337
6337
|
resultSoFar: Ut
|
|
6338
6338
|
},
|
|
@@ -6364,16 +6364,16 @@ https://github.com/highlightjs/highlight.js/issues/2277`), H = d, M = b), N ===
|
|
|
6364
6364
|
function h(d, b) {
|
|
6365
6365
|
b = b || i.languages || Object.keys(e);
|
|
6366
6366
|
const N = p(d), M = b.filter(U).filter(m).map(
|
|
6367
|
-
(
|
|
6367
|
+
(te) => f(te, d, !1)
|
|
6368
6368
|
);
|
|
6369
6369
|
M.unshift(N);
|
|
6370
|
-
const H = M.sort((
|
|
6371
|
-
if (
|
|
6372
|
-
return ue.relevance -
|
|
6373
|
-
if (
|
|
6374
|
-
if (U(
|
|
6370
|
+
const H = M.sort((te, ue) => {
|
|
6371
|
+
if (te.relevance !== ue.relevance)
|
|
6372
|
+
return ue.relevance - te.relevance;
|
|
6373
|
+
if (te.language && ue.language) {
|
|
6374
|
+
if (U(te.language).supersetOf === ue.language)
|
|
6375
6375
|
return 1;
|
|
6376
|
-
if (U(ue.language).supersetOf ===
|
|
6376
|
+
if (U(ue.language).supersetOf === te.language)
|
|
6377
6377
|
return -1;
|
|
6378
6378
|
}
|
|
6379
6379
|
return 0;
|
|
@@ -6389,7 +6389,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), H = d, M = b), N ===
|
|
|
6389
6389
|
const N = l(d);
|
|
6390
6390
|
if (a(N))
|
|
6391
6391
|
return;
|
|
6392
|
-
if (
|
|
6392
|
+
if (F(
|
|
6393
6393
|
"before:highlightElement",
|
|
6394
6394
|
{ el: d, language: N }
|
|
6395
6395
|
), d.children.length > 0 && (i.ignoreUnescapedHTML || (console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."), console.warn("https://github.com/highlightjs/highlight.js/wiki/security"), console.warn("The element with unescaped HTML:"), console.warn(d)), i.throwUnescapedHTML))
|
|
@@ -6407,16 +6407,16 @@ https://github.com/highlightjs/highlight.js/issues/2277`), H = d, M = b), N ===
|
|
|
6407
6407
|
}, H.secondBest && (d.secondBest = {
|
|
6408
6408
|
language: H.secondBest.language,
|
|
6409
6409
|
relevance: H.secondBest.relevance
|
|
6410
|
-
}),
|
|
6410
|
+
}), F("after:highlightElement", { el: d, result: H, text: M });
|
|
6411
6411
|
}
|
|
6412
6412
|
function S(d) {
|
|
6413
6413
|
i = Mr(i, d);
|
|
6414
6414
|
}
|
|
6415
6415
|
const A = () => {
|
|
6416
|
-
T(),
|
|
6416
|
+
T(), $e("10.6.0", "initHighlighting() deprecated. Use highlightAll() now.");
|
|
6417
6417
|
};
|
|
6418
6418
|
function k() {
|
|
6419
|
-
T(),
|
|
6419
|
+
T(), $e("10.6.0", "initHighlightingOnLoad() deprecated. Use highlightAll() now.");
|
|
6420
6420
|
}
|
|
6421
6421
|
let C = !1;
|
|
6422
6422
|
function T() {
|
|
@@ -6481,14 +6481,14 @@ https://github.com/highlightjs/highlight.js/issues/2277`), H = d, M = b), N ===
|
|
|
6481
6481
|
const b = r.indexOf(d);
|
|
6482
6482
|
b !== -1 && r.splice(b, 1);
|
|
6483
6483
|
}
|
|
6484
|
-
function
|
|
6484
|
+
function F(d, b) {
|
|
6485
6485
|
const N = d;
|
|
6486
6486
|
r.forEach(function(M) {
|
|
6487
6487
|
M[N] && M[N](b);
|
|
6488
6488
|
});
|
|
6489
6489
|
}
|
|
6490
6490
|
function I(d) {
|
|
6491
|
-
return
|
|
6491
|
+
return $e("10.7.0", "highlightBlock will be removed entirely in v12.0"), $e("10.7.0", "Please use highlightElement now."), x(d);
|
|
6492
6492
|
}
|
|
6493
6493
|
Object.assign(t, {
|
|
6494
6494
|
highlight: u,
|
|
@@ -6514,7 +6514,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), H = d, M = b), N ===
|
|
|
6514
6514
|
}, t.safeMode = function() {
|
|
6515
6515
|
o = !0;
|
|
6516
6516
|
}, t.versionString = a8, t.regex = {
|
|
6517
|
-
concat:
|
|
6517
|
+
concat: Me,
|
|
6518
6518
|
lookahead: Oo,
|
|
6519
6519
|
either: Tn,
|
|
6520
6520
|
optional: wj,
|
|
@@ -6523,11 +6523,11 @@ https://github.com/highlightjs/highlight.js/issues/2277`), H = d, M = b), N ===
|
|
|
6523
6523
|
for (const d in mt)
|
|
6524
6524
|
typeof mt[d] == "object" && Ro(mt[d]);
|
|
6525
6525
|
return Object.assign(t, mt), t;
|
|
6526
|
-
},
|
|
6527
|
-
|
|
6528
|
-
var f8 =
|
|
6529
|
-
|
|
6530
|
-
|
|
6526
|
+
}, je = Uo({});
|
|
6527
|
+
je.newInstance = () => Uo({});
|
|
6528
|
+
var f8 = je;
|
|
6529
|
+
je.HighlightJS = je;
|
|
6530
|
+
je.default = je;
|
|
6531
6531
|
const Dt = /* @__PURE__ */ ao(f8), dn = /* @__PURE__ */ ae({
|
|
6532
6532
|
__name: "Message",
|
|
6533
6533
|
props: {
|
|
@@ -6537,7 +6537,7 @@ const Dt = /* @__PURE__ */ ao(f8), dn = /* @__PURE__ */ ae({
|
|
|
6537
6537
|
}
|
|
6538
6538
|
},
|
|
6539
6539
|
setup(t) {
|
|
6540
|
-
const e = t, { message: n } = xt(e), r =
|
|
6540
|
+
const e = t, { message: n } = xt(e), r = Le(() => ({
|
|
6541
6541
|
"chat-message-from-user": n.value.sender === "user",
|
|
6542
6542
|
"chat-message-from-bot": n.value.sender === "bot"
|
|
6543
6543
|
})), o = {
|
|
@@ -6550,11 +6550,11 @@ const Dt = /* @__PURE__ */ ao(f8), dn = /* @__PURE__ */ ae({
|
|
|
6550
6550
|
return "";
|
|
6551
6551
|
}
|
|
6552
6552
|
};
|
|
6553
|
-
return (s, c) => (
|
|
6553
|
+
return (s, c) => (P(), W("div", {
|
|
6554
6554
|
class: Vr(["chat-message", r.value])
|
|
6555
6555
|
}, [
|
|
6556
|
-
|
|
6557
|
-
|
|
6556
|
+
Ye(s.$slots, "default", {}, () => [
|
|
6557
|
+
De(G(bj), {
|
|
6558
6558
|
class: "chat-message-markdown",
|
|
6559
6559
|
source: G(n).text,
|
|
6560
6560
|
options: o
|
|
@@ -6563,10 +6563,10 @@ const Dt = /* @__PURE__ */ ao(f8), dn = /* @__PURE__ */ ae({
|
|
|
6563
6563
|
], 2));
|
|
6564
6564
|
}
|
|
6565
6565
|
});
|
|
6566
|
-
const p8 = /* @__PURE__ */
|
|
6567
|
-
/* @__PURE__ */
|
|
6568
|
-
/* @__PURE__ */
|
|
6569
|
-
/* @__PURE__ */
|
|
6566
|
+
const p8 = /* @__PURE__ */ ee("div", { class: "chat-message-typing-body" }, [
|
|
6567
|
+
/* @__PURE__ */ ee("span", { class: "chat-message-typing-circle" }),
|
|
6568
|
+
/* @__PURE__ */ ee("span", { class: "chat-message-typing-circle" }),
|
|
6569
|
+
/* @__PURE__ */ ee("span", { class: "chat-message-typing-circle" })
|
|
6570
6570
|
], -1), h8 = /* @__PURE__ */ ae({
|
|
6571
6571
|
__name: "MessageTyping",
|
|
6572
6572
|
props: {
|
|
@@ -6581,12 +6581,12 @@ const p8 = /* @__PURE__ */ te("div", { class: "chat-message-typing-body" }, [
|
|
|
6581
6581
|
text: "",
|
|
6582
6582
|
sender: "bot",
|
|
6583
6583
|
createdAt: ""
|
|
6584
|
-
}, r =
|
|
6584
|
+
}, r = Le(() => ({
|
|
6585
6585
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
6586
6586
|
"chat-message-typing": !0,
|
|
6587
6587
|
[`chat-message-typing-animation-${e.animation}`]: !0
|
|
6588
6588
|
}));
|
|
6589
|
-
return (o, s) => (
|
|
6589
|
+
return (o, s) => (P(), ne(G(dn), {
|
|
6590
6590
|
class: Vr(r.value),
|
|
6591
6591
|
message: n
|
|
6592
6592
|
}, {
|
|
@@ -6616,7 +6616,7 @@ function b8(t) {
|
|
|
6616
6616
|
throw TypeError("Stringified UUID is invalid");
|
|
6617
6617
|
return n;
|
|
6618
6618
|
}
|
|
6619
|
-
function
|
|
6619
|
+
function Je(t, e, n) {
|
|
6620
6620
|
t = t || {};
|
|
6621
6621
|
var r = t.random || (t.rng || g8)();
|
|
6622
6622
|
if (r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, e) {
|
|
@@ -6682,9 +6682,9 @@ async function y8(t, e, n) {
|
|
|
6682
6682
|
);
|
|
6683
6683
|
}
|
|
6684
6684
|
const Nn = Vs("chat", () => {
|
|
6685
|
-
const { options: t } = ct(), e = ve([]), n = ve(null), r = ve(!1), o =
|
|
6685
|
+
const { options: t } = ct(), e = ve([]), n = ve(null), r = ve(!1), o = Le(
|
|
6686
6686
|
() => (t.initialMessages ?? []).map((a) => ({
|
|
6687
|
-
id:
|
|
6687
|
+
id: Je(),
|
|
6688
6688
|
text: a,
|
|
6689
6689
|
sender: "bot",
|
|
6690
6690
|
createdAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
@@ -6692,7 +6692,7 @@ const Nn = Vs("chat", () => {
|
|
|
6692
6692
|
);
|
|
6693
6693
|
async function s(a) {
|
|
6694
6694
|
const l = {
|
|
6695
|
-
id:
|
|
6695
|
+
id: Je(),
|
|
6696
6696
|
text: a,
|
|
6697
6697
|
sender: "user",
|
|
6698
6698
|
createdAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
@@ -6705,7 +6705,7 @@ const Nn = Vs("chat", () => {
|
|
|
6705
6705
|
n.value,
|
|
6706
6706
|
t
|
|
6707
6707
|
), f = {
|
|
6708
|
-
id:
|
|
6708
|
+
id: Je(),
|
|
6709
6709
|
text: u.output,
|
|
6710
6710
|
sender: "bot",
|
|
6711
6711
|
createdAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
@@ -6715,7 +6715,7 @@ const Nn = Vs("chat", () => {
|
|
|
6715
6715
|
});
|
|
6716
6716
|
}
|
|
6717
6717
|
async function c() {
|
|
6718
|
-
const a = localStorage.getItem(Gn) ??
|
|
6718
|
+
const a = localStorage.getItem(Gn) ?? Je(), l = await k8(a, t), u = (/* @__PURE__ */ new Date()).toISOString();
|
|
6719
6719
|
return e.value = ((l == null ? void 0 : l.data) || []).map((f, p) => ({
|
|
6720
6720
|
id: `${p}`,
|
|
6721
6721
|
text: f.kwargs.content,
|
|
@@ -6724,7 +6724,7 @@ const Nn = Vs("chat", () => {
|
|
|
6724
6724
|
})), e.value.length && (n.value = a), a;
|
|
6725
6725
|
}
|
|
6726
6726
|
async function i() {
|
|
6727
|
-
n.value =
|
|
6727
|
+
n.value = Je(), localStorage.setItem(Gn, n.value);
|
|
6728
6728
|
}
|
|
6729
6729
|
return {
|
|
6730
6730
|
initialMessages: o,
|
|
@@ -6745,16 +6745,16 @@ const Nn = Vs("chat", () => {
|
|
|
6745
6745
|
},
|
|
6746
6746
|
setup(t) {
|
|
6747
6747
|
const e = Nn(), { initialMessages: n, waitingForResponse: r } = so(e);
|
|
6748
|
-
return (o, s) => (
|
|
6749
|
-
(
|
|
6748
|
+
return (o, s) => (P(), W("div", x8, [
|
|
6749
|
+
(P(!0), W(Pn, null, Bn(G(n), (c) => (P(), ne(dn, {
|
|
6750
6750
|
key: c.id,
|
|
6751
6751
|
message: c
|
|
6752
6752
|
}, null, 8, ["message"]))), 128)),
|
|
6753
|
-
(
|
|
6753
|
+
(P(!0), W(Pn, null, Bn(t.messages, (c) => (P(), ne(dn, {
|
|
6754
6754
|
key: c.id,
|
|
6755
6755
|
message: c
|
|
6756
6756
|
}, null, 8, ["message"]))), 128)),
|
|
6757
|
-
G(r) ? (
|
|
6757
|
+
G(r) ? (P(), ne(h8, { key: 0 })) : Qe("", !0)
|
|
6758
6758
|
]));
|
|
6759
6759
|
}
|
|
6760
6760
|
});
|
|
@@ -6762,19 +6762,19 @@ const w8 = {
|
|
|
6762
6762
|
viewBox: "0 0 24 24",
|
|
6763
6763
|
width: "1.2em",
|
|
6764
6764
|
height: "1.2em"
|
|
6765
|
-
}, A8 = /* @__PURE__ */
|
|
6765
|
+
}, A8 = /* @__PURE__ */ ee("path", {
|
|
6766
6766
|
fill: "currentColor",
|
|
6767
6767
|
d: "m2 21l21-9L2 3v7l15 2l-15 2v7Z"
|
|
6768
6768
|
}, null, -1), C8 = [
|
|
6769
6769
|
A8
|
|
6770
6770
|
];
|
|
6771
6771
|
function S8(t, e) {
|
|
6772
|
-
return
|
|
6772
|
+
return P(), W("svg", w8, C8);
|
|
6773
6773
|
}
|
|
6774
6774
|
const D8 = { name: "mdi-send", render: S8 }, T8 = { class: "chat-input" }, q8 = ["placeholder", "onKeydown"], R8 = ["disabled"], N8 = /* @__PURE__ */ ae({
|
|
6775
6775
|
__name: "Input",
|
|
6776
6776
|
setup(t) {
|
|
6777
|
-
const e = Nn(), { waitingForResponse: n } = so(e), { t: r } = Rt(), o = ve(""), s =
|
|
6777
|
+
const e = Nn(), { waitingForResponse: n } = so(e), { t: r } = Rt(), o = ve(""), s = Le(() => o.value === "" || n.value);
|
|
6778
6778
|
async function c(a) {
|
|
6779
6779
|
if (a.preventDefault(), s.value)
|
|
6780
6780
|
return;
|
|
@@ -6784,8 +6784,8 @@ const D8 = { name: "mdi-send", render: S8 }, T8 = { class: "chat-input" }, q8 =
|
|
|
6784
6784
|
async function i(a) {
|
|
6785
6785
|
a.shiftKey || await c(a);
|
|
6786
6786
|
}
|
|
6787
|
-
return (a, l) => (
|
|
6788
|
-
jr(
|
|
6787
|
+
return (a, l) => (P(), W("div", T8, [
|
|
6788
|
+
jr(ee("textarea", {
|
|
6789
6789
|
"onUpdate:modelValue": l[0] || (l[0] = (u) => o.value = u),
|
|
6790
6790
|
rows: "1",
|
|
6791
6791
|
placeholder: G(r)("inputPlaceholder"),
|
|
@@ -6793,12 +6793,12 @@ const D8 = { name: "mdi-send", render: S8 }, T8 = { class: "chat-input" }, q8 =
|
|
|
6793
6793
|
}, null, 40, q8), [
|
|
6794
6794
|
[fs, o.value]
|
|
6795
6795
|
]),
|
|
6796
|
-
|
|
6796
|
+
ee("button", {
|
|
6797
6797
|
disabled: s.value,
|
|
6798
6798
|
class: "chat-input-send-button",
|
|
6799
6799
|
onClick: c
|
|
6800
6800
|
}, [
|
|
6801
|
-
|
|
6801
|
+
De(G(D8), {
|
|
6802
6802
|
height: "32",
|
|
6803
6803
|
width: "32"
|
|
6804
6804
|
})
|
|
@@ -6809,73 +6809,70 @@ const D8 = { name: "mdi-send", render: S8 }, T8 = { class: "chat-input" }, q8 =
|
|
|
6809
6809
|
const Go = /* @__PURE__ */ ae({
|
|
6810
6810
|
__name: "Chat",
|
|
6811
6811
|
setup(t) {
|
|
6812
|
-
|
|
6813
|
-
|
|
6814
|
-
|
|
6812
|
+
ct();
|
|
6813
|
+
const { t: e, te: n } = Rt(), r = Nn(), { messages: o, currentSessionId: s } = xt(r);
|
|
6814
|
+
async function c() {
|
|
6815
|
+
await r.loadPreviousSession(), Re(() => {
|
|
6815
6816
|
Oe.emit("scrollToBottom");
|
|
6816
6817
|
});
|
|
6817
6818
|
}
|
|
6818
|
-
async function
|
|
6819
|
-
|
|
6819
|
+
async function i() {
|
|
6820
|
+
r.startNewSession(), Re(() => {
|
|
6820
6821
|
Oe.emit("scrollToBottom");
|
|
6821
6822
|
});
|
|
6822
6823
|
}
|
|
6823
6824
|
return gn(() => {
|
|
6824
|
-
|
|
6825
|
-
}), (
|
|
6825
|
+
c();
|
|
6826
|
+
}), (a, l) => (P(), ne(Xs, { class: "chat-wrapper" }, ps({
|
|
6827
|
+
footer: Te(() => [
|
|
6828
|
+
G(s) ? (P(), ne(N8, { key: 0 })) : (P(), ne(fc, { key: 1 }))
|
|
6829
|
+
]),
|
|
6826
6830
|
default: Te(() => [
|
|
6827
|
-
G(
|
|
6831
|
+
G(s) ? (P(), ne(E8, {
|
|
6828
6832
|
key: 1,
|
|
6829
|
-
messages: G(
|
|
6830
|
-
}, null, 8, ["messages"])) : (
|
|
6833
|
+
messages: G(o)
|
|
6834
|
+
}, null, 8, ["messages"])) : (P(), ne(rc, {
|
|
6831
6835
|
key: 0,
|
|
6832
|
-
"onClick:button":
|
|
6836
|
+
"onClick:button": i
|
|
6833
6837
|
}))
|
|
6834
6838
|
]),
|
|
6835
6839
|
_: 2
|
|
6836
6840
|
}, [
|
|
6837
|
-
G(
|
|
6841
|
+
G(s) ? void 0 : {
|
|
6838
6842
|
name: "header",
|
|
6839
6843
|
fn: Te(() => [
|
|
6840
|
-
|
|
6841
|
-
|
|
6844
|
+
ee("h1", null, Et(G(e)("title")), 1),
|
|
6845
|
+
ee("p", null, Et(G(e)("subtitle")), 1)
|
|
6842
6846
|
]),
|
|
6843
6847
|
key: "0"
|
|
6844
|
-
}
|
|
6845
|
-
i.value ? {
|
|
6846
|
-
name: "footer",
|
|
6847
|
-
fn: Te(() => [
|
|
6848
|
-
G(c) ? (F(), ee(N8, { key: 0 })) : (F(), ee(fc, { key: 1 }))
|
|
6849
|
-
]),
|
|
6850
|
-
key: "1"
|
|
6851
|
-
} : void 0
|
|
6848
|
+
}
|
|
6852
6849
|
]), 1024));
|
|
6853
6850
|
}
|
|
6854
6851
|
}), O8 = {
|
|
6855
6852
|
viewBox: "0 0 24 24",
|
|
6856
6853
|
width: "1.2em",
|
|
6857
6854
|
height: "1.2em"
|
|
6858
|
-
}, I8 = /* @__PURE__ */
|
|
6855
|
+
}, I8 = /* @__PURE__ */ ee("path", {
|
|
6859
6856
|
fill: "currentColor",
|
|
6860
6857
|
d: "M12 3c5.5 0 10 3.58 10 8s-4.5 8-10 8c-1.24 0-2.43-.18-3.53-.5C5.55 21 2 21 2 21c2.33-2.33 2.7-3.9 2.75-4.5C3.05 15.07 2 13.13 2 11c0-4.42 4.5-8 10-8Z"
|
|
6861
6858
|
}, null, -1), L8 = [
|
|
6862
6859
|
I8
|
|
6863
6860
|
];
|
|
6864
6861
|
function M8(t, e) {
|
|
6865
|
-
return
|
|
6862
|
+
return P(), W("svg", O8, L8);
|
|
6866
6863
|
}
|
|
6867
6864
|
const F8 = { name: "mdi-chat", render: M8 }, P8 = {
|
|
6868
6865
|
viewBox: "0 0 24 24",
|
|
6869
6866
|
width: "1.2em",
|
|
6870
6867
|
height: "1.2em"
|
|
6871
|
-
}, B8 = /* @__PURE__ */
|
|
6868
|
+
}, B8 = /* @__PURE__ */ ee("path", {
|
|
6872
6869
|
fill: "currentColor",
|
|
6873
6870
|
d: "M7.41 8.58L12 13.17l4.59-4.59L18 10l-6 6l-6-6l1.41-1.42Z"
|
|
6874
6871
|
}, null, -1), $8 = [
|
|
6875
6872
|
B8
|
|
6876
6873
|
];
|
|
6877
6874
|
function z8(t, e) {
|
|
6878
|
-
return
|
|
6875
|
+
return P(), W("svg", P8, $8);
|
|
6879
6876
|
}
|
|
6880
6877
|
const U8 = { name: "mdi-chevron-down", render: z8 }, V8 = { class: "chat-window-wrapper" }, j8 = { class: "chat-window" }, H8 = /* @__PURE__ */ ae({
|
|
6881
6878
|
__name: "ChatWindow",
|
|
@@ -6886,31 +6883,31 @@ const U8 = { name: "mdi-chevron-down", render: z8 }, V8 = { class: "chat-window-
|
|
|
6886
6883
|
Oe.emit("scrollToBottom");
|
|
6887
6884
|
});
|
|
6888
6885
|
}
|
|
6889
|
-
return (r, o) => (
|
|
6890
|
-
|
|
6886
|
+
return (r, o) => (P(), W("div", V8, [
|
|
6887
|
+
De($n, { name: "chat-window-transition" }, {
|
|
6891
6888
|
default: Te(() => [
|
|
6892
|
-
jr(
|
|
6893
|
-
|
|
6889
|
+
jr(ee("div", j8, [
|
|
6890
|
+
De(Go)
|
|
6894
6891
|
], 512), [
|
|
6895
6892
|
[hs, e.value]
|
|
6896
6893
|
])
|
|
6897
6894
|
]),
|
|
6898
6895
|
_: 1
|
|
6899
6896
|
}),
|
|
6900
|
-
|
|
6897
|
+
ee("div", {
|
|
6901
6898
|
class: "chat-window-toggle",
|
|
6902
6899
|
onClick: n
|
|
6903
6900
|
}, [
|
|
6904
|
-
|
|
6901
|
+
De($n, {
|
|
6905
6902
|
name: "chat-window-toggle-transition",
|
|
6906
6903
|
mode: "out-in"
|
|
6907
6904
|
}, {
|
|
6908
6905
|
default: Te(() => [
|
|
6909
|
-
e.value ? (
|
|
6906
|
+
e.value ? (P(), ne(G(U8), {
|
|
6910
6907
|
key: 1,
|
|
6911
6908
|
height: "32",
|
|
6912
6909
|
width: "32"
|
|
6913
|
-
})) : (
|
|
6910
|
+
})) : (P(), ne(G(F8), {
|
|
6914
6911
|
key: 0,
|
|
6915
6912
|
height: "32",
|
|
6916
6913
|
width: "32"
|
|
@@ -7597,7 +7594,7 @@ function Y8(t) {
|
|
|
7597
7594
|
keywords: "prototype",
|
|
7598
7595
|
className: "property",
|
|
7599
7596
|
relevance: 0
|
|
7600
|
-
},
|
|
7597
|
+
}, F = {
|
|
7601
7598
|
match: [
|
|
7602
7599
|
/get|set/,
|
|
7603
7600
|
/\s+/,
|
|
@@ -7781,7 +7778,7 @@ function Y8(t) {
|
|
|
7781
7778
|
j,
|
|
7782
7779
|
m,
|
|
7783
7780
|
E,
|
|
7784
|
-
|
|
7781
|
+
F,
|
|
7785
7782
|
{
|
|
7786
7783
|
match: /\$[(.]/
|
|
7787
7784
|
// relevance booster for a pattern common to JS libs: `$(something)` and `$.something`
|
|
@@ -7793,13 +7790,13 @@ const Q8 = /* @__PURE__ */ ae({
|
|
|
7793
7790
|
__name: "App",
|
|
7794
7791
|
props: {},
|
|
7795
7792
|
setup(t) {
|
|
7796
|
-
const { options: e } = ct(), n =
|
|
7793
|
+
const { options: e } = ct(), n = Le(() => e.mode === "fullscreen");
|
|
7797
7794
|
return gn(() => {
|
|
7798
7795
|
Dt.registerLanguage("xml", G8), Dt.registerLanguage("javascript", Y8);
|
|
7799
|
-
}), (r, o) => n.value ? (
|
|
7796
|
+
}), (r, o) => n.value ? (P(), ne(G(Go), {
|
|
7800
7797
|
key: 0,
|
|
7801
7798
|
class: "n8n-chat"
|
|
7802
|
-
})) : (
|
|
7799
|
+
})) : (P(), ne(G(H8), {
|
|
7803
7800
|
key: 1,
|
|
7804
7801
|
class: "n8n-chat"
|
|
7805
7802
|
}));
|
|
@@ -7808,22 +7805,22 @@ const Q8 = /* @__PURE__ */ ae({
|
|
|
7808
7805
|
function eH(t) {
|
|
7809
7806
|
var o, s;
|
|
7810
7807
|
const e = {
|
|
7811
|
-
...
|
|
7808
|
+
...We,
|
|
7812
7809
|
...t,
|
|
7813
7810
|
webhookConfig: {
|
|
7814
|
-
...
|
|
7811
|
+
...We.webhookConfig,
|
|
7815
7812
|
...t == null ? void 0 : t.webhookConfig
|
|
7816
7813
|
},
|
|
7817
7814
|
i18n: {
|
|
7818
|
-
...
|
|
7815
|
+
...We.i18n,
|
|
7819
7816
|
...t == null ? void 0 : t.i18n,
|
|
7820
7817
|
en: {
|
|
7821
|
-
...(o =
|
|
7818
|
+
...(o = We.i18n) == null ? void 0 : o.en,
|
|
7822
7819
|
...(s = t == null ? void 0 : t.i18n) == null ? void 0 : s.en
|
|
7823
7820
|
}
|
|
7824
7821
|
},
|
|
7825
7822
|
theme: {
|
|
7826
|
-
...
|
|
7823
|
+
...We.theme,
|
|
7827
7824
|
...t == null ? void 0 : t.theme
|
|
7828
7825
|
}
|
|
7829
7826
|
}, n = e.target ?? ec;
|