@das-fed/ui 7.1.0-dev.24 → 7.1.0-dev.25
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/package.json +5 -5
- package/packages/business-components/ai-panel/i18n/index.d.ts +62 -0
- package/packages/business-components/ai-panel/{index-C2MGj67k.js → index-C04Wttd4.js} +1 -1
- package/packages/business-components/ai-panel/index-C04Wttd4.js.gz +0 -0
- package/packages/business-components/ai-panel/{index-BdJrICEt.js → index-CKFBXTtX.js} +684 -676
- package/packages/business-components/ai-panel/index-CKFBXTtX.js.gz +0 -0
- package/packages/business-components/ai-panel/index.js +1 -1
- package/packages/business-components/area-phone-select/i18n/index.d.ts +1 -0
- package/packages/business-components/area-phone-select/index.js +1 -1
- package/packages/business-components/area-phone-select/index.js.gz +0 -0
- package/packages/business-components/change-enterprises/i18n/index.d.ts +3 -0
- package/packages/business-components/change-enterprises/index.js +3 -3
- package/packages/business-components/change-enterprises/index.js.gz +0 -0
- package/packages/business-components/change-pwd/i18n/index.d.ts +18 -0
- package/packages/business-components/change-pwd/index.js +53 -50
- package/packages/business-components/change-pwd/index.js.gz +0 -0
- package/packages/business-components/currency-page/i18n/index.d.ts +4 -0
- package/packages/business-components/currency-page/index.js +7 -5
- package/packages/business-components/currency-page/index.js.gz +0 -0
- package/packages/business-components/device-panel/i18n/index.d.ts +254 -0
- package/packages/business-components/device-panel/index.js +1802 -1768
- package/packages/business-components/device-panel/index.js.gz +0 -0
- package/packages/business-components/export-button/i18n/index.d.ts +11 -0
- package/packages/business-components/export-button/index.js +21 -19
- package/packages/business-components/export-button/index.js.gz +0 -0
- package/packages/business-components/import-button/i18n/index.d.ts +30 -0
- package/packages/business-components/import-button/index.js +131 -127
- package/packages/business-components/import-button/index.js.gz +0 -0
- package/packages/business-components/model-table-dialog/i18n/index.d.ts +6 -0
- package/packages/business-components/model-table-dialog/index.js +6 -6
- package/packages/business-components/model-table-dialog/index.js.gz +0 -0
- package/packages/business-components/payment/i18n/index.d.ts +13 -0
- package/packages/business-components/payment/index.js +53 -53
- package/packages/business-components/payment/index.js.gz +0 -0
- package/packages/business-components/process-configuration/i18n/index.d.ts +30 -0
- package/packages/business-components/process-configuration/index.js +75 -73
- package/packages/business-components/process-configuration/index.js.gz +0 -0
- package/packages/business-components/process-form/i18n/index.d.ts +84 -0
- package/packages/business-components/process-form/index.js +84 -75
- package/packages/business-components/process-form/index.js.gz +0 -0
- package/packages/business-components/process-log/i18n/index.d.ts +9 -0
- package/packages/business-components/process-log/index.js +99 -99
- package/packages/business-components/process-log/index.js.gz +0 -0
- package/packages/business-components/process-search-form/i18n/index.d.ts +9 -0
- package/packages/business-components/process-search-form/index.js +9 -9
- package/packages/business-components/process-search-form/index.js.gz +0 -0
- package/packages/business-components/process-table/i18n/index.d.ts +8 -0
- package/packages/business-components/process-table/index.js +8 -8
- package/packages/business-components/process-table/index.js.gz +0 -0
- package/packages/business-components/update-confirm-dialog/i18n/index.d.ts +5 -0
- package/packages/business-components/update-confirm-dialog/index.js +7 -5
- package/packages/business-components/update-confirm-dialog/index.js.gz +0 -0
- package/packages/business-components/upload-file/i18n/index.d.ts +1 -0
- package/packages/business-components/upload-file/index.js +25 -24
- package/packages/business-components/upload-file/index.js.gz +0 -0
- package/packages/business-components/urgent-panel/i18n/index.d.ts +104 -0
- package/packages/business-components/urgent-panel/index.js +104 -96
- package/packages/business-components/urgent-panel/index.js.gz +0 -0
- package/packages/business-components/user-org-dialog/i18n/index.d.ts +18 -0
- package/packages/business-components/user-org-dialog/index.js +118 -117
- package/packages/business-components/user-org-dialog/index.js.gz +0 -0
- package/packages/business-components/video-dialog/i18n/index.d.ts +20 -0
- package/packages/business-components/video-dialog/index.js +20 -20
- package/packages/business-components/video-dialog/index.js.gz +0 -0
- package/packages/components/calendar/i18n/index.d.ts +46 -0
- package/packages/components/calendar/index.js +99 -99
- package/packages/components/calendar/index.js.gz +0 -0
- package/packages/components/cascader/i18n/index.d.ts +1 -0
- package/packages/components/cascader/index.js +1 -1
- package/packages/components/cascader/index.js.gz +0 -0
- package/packages/components/color-picker/i18n/index.d.ts +1 -0
- package/packages/components/color-picker/index.js +1 -1
- package/packages/components/color-picker/index.js.gz +0 -0
- package/packages/components/custom-search-item/i18n/index.d.ts +1 -0
- package/packages/components/custom-search-item/index.js +1 -1
- package/packages/components/custom-search-item/index.js.gz +0 -0
- package/packages/components/date-picker/i18n/index.d.ts +6 -0
- package/packages/components/date-picker/index.js +6 -6
- package/packages/components/date-picker/index.js.gz +0 -0
- package/packages/components/dialog/i18n/index.d.ts +6 -0
- package/packages/components/dialog/index.js +27 -27
- package/packages/components/dialog/index.js.gz +0 -0
- package/packages/components/dimple-layout/i18n/index.d.ts +10 -0
- package/packages/components/dimple-layout/index.js +10 -9
- package/packages/components/dimple-layout/index.js.gz +0 -0
- package/packages/components/dropdown/i18n/index.d.ts +1 -0
- package/packages/components/dropdown/index.js +9 -9
- package/packages/components/dropdown/index.js.gz +0 -0
- package/packages/components/empty/i18n/index.d.ts +1 -0
- package/packages/components/empty/index.js +1 -1
- package/packages/components/empty/index.js.gz +0 -0
- package/packages/components/hls-player/i18n/index.d.ts +2 -0
- package/packages/components/hls-player/index.js +2 -1
- package/packages/components/hls-player/index.js.gz +0 -0
- package/packages/components/image-upload/i18n/index.d.ts +7 -0
- package/packages/components/image-upload/index.js +19 -15
- package/packages/components/image-upload/index.js.gz +0 -0
- package/packages/components/input/i18n/index.d.ts +3 -0
- package/packages/components/input/index.js +3 -3
- package/packages/components/input/index.js.gz +0 -0
- package/packages/components/input-dialog-select/i18n/index.d.ts +2 -0
- package/packages/components/input-dialog-select/index.js +10 -10
- package/packages/components/input-dialog-select/index.js.gz +0 -0
- package/packages/components/live-player/i18n/index.d.ts +2 -0
- package/packages/components/live-player/index.js +2 -1
- package/packages/components/live-player/index.js.gz +0 -0
- package/packages/components/loading/i18n/index.d.ts +1 -0
- package/packages/components/loading/index.js +1 -1
- package/packages/components/loading/index.js.gz +0 -0
- package/packages/components/map/i18n/index.d.ts +6 -0
- package/packages/components/map/index.js +6 -2
- package/packages/components/map/index.js.gz +0 -0
- package/packages/components/menu-aside/i18n/index.d.ts +1 -0
- package/packages/components/menu-aside/index.js +1 -1
- package/packages/components/menu-aside/index.js.gz +0 -0
- package/packages/components/message/i18n/index.d.ts +1 -0
- package/packages/components/message/index.js +1 -1
- package/packages/components/message/index.js.gz +0 -0
- package/packages/components/notification/i18n/index.d.ts +1 -0
- package/packages/components/notification/index.js +4 -4
- package/packages/components/notification/index.js.gz +0 -0
- package/packages/components/pagination/i18n/index.d.ts +4 -0
- package/packages/components/pagination/index.js +17 -17
- package/packages/components/pagination/index.js.gz +0 -0
- package/packages/components/popover/i18n/index.d.ts +2 -0
- package/packages/components/popover/index.js +2 -2
- package/packages/components/popover/index.js.gz +0 -0
- package/packages/components/preview/i18n/index.d.ts +1 -0
- package/packages/components/preview/index.js +3 -1
- package/packages/components/preview/index.js.gz +0 -0
- package/packages/components/rich-editor/i18n/index.d.ts +4 -0
- package/packages/components/rich-editor/index.js +4 -0
- package/packages/components/rich-editor/index.js.gz +0 -0
- package/packages/components/search-form/i18n/index.d.ts +7 -0
- package/packages/components/search-form/index.js +7 -7
- package/packages/components/search-form/index.js.gz +0 -0
- package/packages/components/select/i18n/index.d.ts +4 -0
- package/packages/components/select/index.js +4 -3
- package/packages/components/select/index.js.gz +0 -0
- package/packages/components/select-list/i18n/index.d.ts +4 -0
- package/packages/components/select-list/index.js +4 -4
- package/packages/components/select-list/index.js.gz +0 -0
- package/packages/components/special-range-picker-month/i18n/index.d.ts +4 -0
- package/packages/components/special-range-picker-month/index.js +4 -4
- package/packages/components/special-range-picker-month/index.js.gz +0 -0
- package/packages/components/special-range-picker-year/i18n/index.d.ts +3 -0
- package/packages/components/special-range-picker-year/index.js +3 -3
- package/packages/components/special-range-picker-year/index.js.gz +0 -0
- package/packages/components/spin/i18n/index.d.ts +1 -0
- package/packages/components/spin/index.js +1 -1
- package/packages/components/spin/index.js.gz +0 -0
- package/packages/components/table/i18n/index.d.ts +20 -0
- package/packages/components/table/index.js +20 -18
- package/packages/components/table/index.js.gz +0 -0
- package/packages/components/tabs/i18n/index.d.ts +3 -0
- package/packages/components/tabs/index.js +31 -31
- package/packages/components/tabs/index.js.gz +0 -0
- package/packages/components/tooltip/i18n/index.d.ts +1 -0
- package/packages/components/tooltip/index.js +1 -1
- package/packages/components/tooltip/index.js.gz +0 -0
- package/packages/components/tree/i18n/index.d.ts +1 -40
- package/packages/components/tree/index.js +290 -304
- package/packages/components/tree/index.js.gz +0 -0
- package/packages/components/tree-v2/i18n/index.d.ts +21 -0
- package/packages/components/tree-v2/index.js +11 -8
- package/packages/components/tree-v2/index.js.gz +0 -0
- package/packages/components/upload/i18n/index.d.ts +6 -0
- package/packages/components/upload/index.js +25 -24
- package/packages/components/upload/index.js.gz +0 -0
- package/packages/components/virtual-tree/i18n/index.d.ts +37 -1
- package/packages/components/virtual-tree/index.js +62 -49
- package/packages/components/virtual-tree/index.js.gz +0 -0
- package/packages/business-components/ai-panel/index-BdJrICEt.js.gz +0 -0
- package/packages/business-components/ai-panel/index-C2MGj67k.js.gz +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineAsyncComponent as lt, ref as N, watch as bu, h as dt, reactive as ft, defineComponent as
|
|
1
|
+
import { defineAsyncComponent as lt, ref as N, watch as bu, h as dt, reactive as ft, defineComponent as au, onMounted as Ou, createElementBlock as P, openBlock as F, createElementVNode as v, toDisplayString as U, computed as lu, createCommentVNode as z, createVNode as j, unref as y, normalizeClass as Mu, createBlock as Y, withCtx as W, Fragment as Lu, renderList as Wu, withDirectives as Cu, withKeys as Xt, vModelText as Yt, withModifiers as Se, vShow as $u, onBeforeUnmount as ht, resolveDirective as u0, nextTick as Ce, Transition as e0, normalizeStyle as t0 } from "vue";
|
|
2
2
|
import { withInstall as n0 } from "@das-fed/utils/with-install/index";
|
|
3
3
|
import { useRoute as r0 } from "vue-router";
|
|
4
4
|
import { DasIconClose2 as o0 } from "@das-fed/ui/packages/icons/close-2/index";
|
|
5
5
|
import { t as I, setI18nRule as i0 } from "@das-fed/web/packages/i18n/index";
|
|
6
|
-
import { DasIconAudioing as
|
|
7
|
-
import { DasIconCloseaudio as
|
|
6
|
+
import { DasIconAudioing as a0 } from "@das-fed/ui/packages/icons/audioing/index";
|
|
7
|
+
import { DasIconCloseaudio as c0 } from "@das-fed/ui/packages/icons/closeaudio/index";
|
|
8
8
|
import { DasIconLishihuihua as s0 } from "@das-fed/ui/packages/icons/lishihuihua/index";
|
|
9
9
|
import { DasScrollbar as Ie } from "@das-fed/ui/packages/components/scrollbar/index";
|
|
10
10
|
import { DasTooltip as gu } from "@das-fed/ui/packages/components/tooltip/index";
|
|
@@ -48,18 +48,18 @@ let Vu = (u = 21) => {
|
|
|
48
48
|
}
|
|
49
49
|
return e;
|
|
50
50
|
};
|
|
51
|
-
const T0 = lt(() => import("./index-
|
|
51
|
+
const T0 = lt(() => import("./index-C04Wttd4.js")), z0 = () => {
|
|
52
52
|
const u = N(), e = N(!1);
|
|
53
53
|
let t = !1;
|
|
54
|
-
const n = (
|
|
55
|
-
e.value && (t =
|
|
54
|
+
const n = (a) => {
|
|
55
|
+
e.value && (t = a, e.value = !1);
|
|
56
56
|
};
|
|
57
57
|
return {
|
|
58
58
|
folderDialogVue: () => dt(T0, {
|
|
59
59
|
dialogShow: e.value,
|
|
60
60
|
content: u.value,
|
|
61
|
-
onSubmit: (
|
|
62
|
-
n(
|
|
61
|
+
onSubmit: (a) => {
|
|
62
|
+
n(a || !0);
|
|
63
63
|
},
|
|
64
64
|
onCancel: () => {
|
|
65
65
|
n(!1);
|
|
@@ -68,9 +68,9 @@ const T0 = lt(() => import("./index-C2MGj67k.js")), z0 = () => {
|
|
|
68
68
|
n(!1);
|
|
69
69
|
}
|
|
70
70
|
}),
|
|
71
|
-
showFolderDialog: async (
|
|
72
|
-
const
|
|
73
|
-
i(t),
|
|
71
|
+
showFolderDialog: async (a) => (u.value = a, e.value = !0, new Promise((i) => {
|
|
72
|
+
const c = bu(() => e.value, (s) => {
|
|
73
|
+
i(t), c();
|
|
74
74
|
});
|
|
75
75
|
}))
|
|
76
76
|
};
|
|
@@ -154,8 +154,8 @@ var nu = function(u, e) {
|
|
|
154
154
|
const n = this.xhr.responseText.substring(this.progress);
|
|
155
155
|
this.progress += n.length;
|
|
156
156
|
const r = (this.chunk + n).split(/(\r\n\r\n|\r\r|\n\n)/g), o = r.pop();
|
|
157
|
-
r.forEach((function(
|
|
158
|
-
|
|
157
|
+
r.forEach((function(a) {
|
|
158
|
+
a.trim().length > 0 && this.dispatchEvent(this._parseEventChunk(a));
|
|
159
159
|
}).bind(this)), this.chunk = o;
|
|
160
160
|
}, this._onStreamLoaded = function(t) {
|
|
161
161
|
this._onStreamProgress(t), this.dispatchEvent(this._parseEventChunk(this.chunk)), this.chunk = "", this._markClosed();
|
|
@@ -165,17 +165,17 @@ var nu = function(u, e) {
|
|
|
165
165
|
this.debug;
|
|
166
166
|
const n = { id: null, retry: null, data: null, event: null };
|
|
167
167
|
t.split(/\n|\r\n|\r/).forEach((function(o) {
|
|
168
|
-
const
|
|
169
|
-
let i,
|
|
170
|
-
if (
|
|
171
|
-
const s = o[
|
|
172
|
-
i = o.substring(0,
|
|
173
|
-
} else if (
|
|
174
|
-
i = o,
|
|
168
|
+
const a = o.indexOf(this.FIELD_SEPARATOR);
|
|
169
|
+
let i, c;
|
|
170
|
+
if (a > 0) {
|
|
171
|
+
const s = o[a + 1] === " " ? 2 : 1;
|
|
172
|
+
i = o.substring(0, a), c = o.substring(a + s);
|
|
173
|
+
} else if (a < 0)
|
|
174
|
+
i = o, c = "";
|
|
175
175
|
else
|
|
176
176
|
return;
|
|
177
177
|
i in n && (i === "data" && n[i] !== null ? n.data += `
|
|
178
|
-
` +
|
|
178
|
+
` + c : n[i] = c);
|
|
179
179
|
}).bind(this)), n.id !== null && (this.lastEventId = n.id);
|
|
180
180
|
const r = new CustomEvent(n.event || "message");
|
|
181
181
|
return r.id = n.id, r.data = n.data || "", r.lastEventId = this.lastEventId, r;
|
|
@@ -184,8 +184,8 @@ var nu = function(u, e) {
|
|
|
184
184
|
const t = {}, n = this.xhr.getAllResponseHeaders().trim().split(`\r
|
|
185
185
|
`);
|
|
186
186
|
for (const o of n) {
|
|
187
|
-
const [
|
|
188
|
-
t[
|
|
187
|
+
const [a, ...i] = o.split(":"), c = i.join(":").trim();
|
|
188
|
+
t[a.trim().toLowerCase()] = t[a.trim().toLowerCase()] || [], t[a.trim().toLowerCase()].push(c);
|
|
189
189
|
}
|
|
190
190
|
const r = new CustomEvent("open");
|
|
191
191
|
r.responseCode = this.xhr.status, r.headers = t, this.dispatchEvent(r), this._setReadyState(nu.OPEN);
|
|
@@ -208,7 +208,7 @@ nu.CLOSED = 2;
|
|
|
208
208
|
typeof exports < "u" && (exports.SSE = nu);
|
|
209
209
|
const L0 = { class: "das-ai-use-chat-content" }, B0 = {
|
|
210
210
|
name: "useChat"
|
|
211
|
-
}, q0 = /* @__PURE__ */
|
|
211
|
+
}, q0 = /* @__PURE__ */ au({
|
|
212
212
|
...B0,
|
|
213
213
|
props: {
|
|
214
214
|
item: { default: {} }
|
|
@@ -240,12 +240,12 @@ const L0 = { class: "das-ai-use-chat-content" }, B0 = {
|
|
|
240
240
|
);
|
|
241
241
|
};
|
|
242
242
|
}
|
|
243
|
-
}),
|
|
243
|
+
}), cu = (u, e) => {
|
|
244
244
|
const t = u.__vccOpts || u;
|
|
245
245
|
for (const [n, r] of e)
|
|
246
246
|
t[n] = r;
|
|
247
247
|
return t;
|
|
248
|
-
}, O0 = /* @__PURE__ */
|
|
248
|
+
}, O0 = /* @__PURE__ */ cu(q0, [["__scopeId", "data-v-e444807d"]]);
|
|
249
249
|
var M0 = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
250
250
|
function R0(u) {
|
|
251
251
|
return u && u.__esModule && Object.prototype.hasOwnProperty.call(u, "default") ? u.default : u;
|
|
@@ -268,8 +268,8 @@ var At = { exports: {} };
|
|
|
268
268
|
/***/
|
|
269
269
|
686: (
|
|
270
270
|
/***/
|
|
271
|
-
function(o,
|
|
272
|
-
i.d(
|
|
271
|
+
function(o, a, i) {
|
|
272
|
+
i.d(a, {
|
|
273
273
|
default: function() {
|
|
274
274
|
return (
|
|
275
275
|
/* binding */
|
|
@@ -277,7 +277,7 @@ var At = { exports: {} };
|
|
|
277
277
|
);
|
|
278
278
|
}
|
|
279
279
|
});
|
|
280
|
-
var
|
|
280
|
+
var c = i(279), s = /* @__PURE__ */ i.n(c), l = i(370), d = /* @__PURE__ */ i.n(l), _ = i(817), h = /* @__PURE__ */ i.n(_);
|
|
281
281
|
function f(q) {
|
|
282
282
|
try {
|
|
283
283
|
return document.execCommand(q);
|
|
@@ -535,26 +535,26 @@ var At = { exports: {} };
|
|
|
535
535
|
828: (
|
|
536
536
|
/***/
|
|
537
537
|
function(o) {
|
|
538
|
-
var
|
|
538
|
+
var a = 9;
|
|
539
539
|
if (typeof Element < "u" && !Element.prototype.matches) {
|
|
540
540
|
var i = Element.prototype;
|
|
541
541
|
i.matches = i.matchesSelector || i.mozMatchesSelector || i.msMatchesSelector || i.oMatchesSelector || i.webkitMatchesSelector;
|
|
542
542
|
}
|
|
543
|
-
function
|
|
544
|
-
for (; s && s.nodeType !==
|
|
543
|
+
function c(s, l) {
|
|
544
|
+
for (; s && s.nodeType !== a; ) {
|
|
545
545
|
if (typeof s.matches == "function" && s.matches(l))
|
|
546
546
|
return s;
|
|
547
547
|
s = s.parentNode;
|
|
548
548
|
}
|
|
549
549
|
}
|
|
550
|
-
o.exports =
|
|
550
|
+
o.exports = c;
|
|
551
551
|
}
|
|
552
552
|
),
|
|
553
553
|
/***/
|
|
554
554
|
438: (
|
|
555
555
|
/***/
|
|
556
|
-
function(o,
|
|
557
|
-
var
|
|
556
|
+
function(o, a, i) {
|
|
557
|
+
var c = i(828);
|
|
558
558
|
function s(_, h, f, g, A) {
|
|
559
559
|
var C = d.apply(this, arguments);
|
|
560
560
|
return _.addEventListener(f, C, A), {
|
|
@@ -570,7 +570,7 @@ var At = { exports: {} };
|
|
|
570
570
|
}
|
|
571
571
|
function d(_, h, f, g) {
|
|
572
572
|
return function(A) {
|
|
573
|
-
A.delegateTarget =
|
|
573
|
+
A.delegateTarget = c(A.target, h), A.delegateTarget && g.call(_, A);
|
|
574
574
|
};
|
|
575
575
|
}
|
|
576
576
|
o.exports = l;
|
|
@@ -579,37 +579,37 @@ var At = { exports: {} };
|
|
|
579
579
|
/***/
|
|
580
580
|
879: (
|
|
581
581
|
/***/
|
|
582
|
-
function(o,
|
|
583
|
-
|
|
582
|
+
function(o, a) {
|
|
583
|
+
a.node = function(i) {
|
|
584
584
|
return i !== void 0 && i instanceof HTMLElement && i.nodeType === 1;
|
|
585
|
-
},
|
|
586
|
-
var
|
|
587
|
-
return i !== void 0 && (
|
|
588
|
-
},
|
|
585
|
+
}, a.nodeList = function(i) {
|
|
586
|
+
var c = Object.prototype.toString.call(i);
|
|
587
|
+
return i !== void 0 && (c === "[object NodeList]" || c === "[object HTMLCollection]") && "length" in i && (i.length === 0 || a.node(i[0]));
|
|
588
|
+
}, a.string = function(i) {
|
|
589
589
|
return typeof i == "string" || i instanceof String;
|
|
590
|
-
},
|
|
591
|
-
var
|
|
592
|
-
return
|
|
590
|
+
}, a.fn = function(i) {
|
|
591
|
+
var c = Object.prototype.toString.call(i);
|
|
592
|
+
return c === "[object Function]";
|
|
593
593
|
};
|
|
594
594
|
}
|
|
595
595
|
),
|
|
596
596
|
/***/
|
|
597
597
|
370: (
|
|
598
598
|
/***/
|
|
599
|
-
function(o,
|
|
600
|
-
var
|
|
599
|
+
function(o, a, i) {
|
|
600
|
+
var c = i(879), s = i(438);
|
|
601
601
|
function l(f, g, A) {
|
|
602
602
|
if (!f && !g && !A)
|
|
603
603
|
throw new Error("Missing required arguments");
|
|
604
|
-
if (!
|
|
604
|
+
if (!c.string(g))
|
|
605
605
|
throw new TypeError("Second argument must be a String");
|
|
606
|
-
if (!
|
|
606
|
+
if (!c.fn(A))
|
|
607
607
|
throw new TypeError("Third argument must be a Function");
|
|
608
|
-
if (
|
|
608
|
+
if (c.node(f))
|
|
609
609
|
return d(f, g, A);
|
|
610
|
-
if (
|
|
610
|
+
if (c.nodeList(f))
|
|
611
611
|
return _(f, g, A);
|
|
612
|
-
if (
|
|
612
|
+
if (c.string(f))
|
|
613
613
|
return h(f, g, A);
|
|
614
614
|
throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList");
|
|
615
615
|
}
|
|
@@ -641,58 +641,58 @@ var At = { exports: {} };
|
|
|
641
641
|
817: (
|
|
642
642
|
/***/
|
|
643
643
|
function(o) {
|
|
644
|
-
function
|
|
645
|
-
var
|
|
644
|
+
function a(i) {
|
|
645
|
+
var c;
|
|
646
646
|
if (i.nodeName === "SELECT")
|
|
647
|
-
i.focus(),
|
|
647
|
+
i.focus(), c = i.value;
|
|
648
648
|
else if (i.nodeName === "INPUT" || i.nodeName === "TEXTAREA") {
|
|
649
649
|
var s = i.hasAttribute("readonly");
|
|
650
|
-
s || i.setAttribute("readonly", ""), i.select(), i.setSelectionRange(0, i.value.length), s || i.removeAttribute("readonly"),
|
|
650
|
+
s || i.setAttribute("readonly", ""), i.select(), i.setSelectionRange(0, i.value.length), s || i.removeAttribute("readonly"), c = i.value;
|
|
651
651
|
} else {
|
|
652
652
|
i.hasAttribute("contenteditable") && i.focus();
|
|
653
653
|
var l = window.getSelection(), d = document.createRange();
|
|
654
|
-
d.selectNodeContents(i), l.removeAllRanges(), l.addRange(d),
|
|
654
|
+
d.selectNodeContents(i), l.removeAllRanges(), l.addRange(d), c = l.toString();
|
|
655
655
|
}
|
|
656
|
-
return
|
|
656
|
+
return c;
|
|
657
657
|
}
|
|
658
|
-
o.exports =
|
|
658
|
+
o.exports = a;
|
|
659
659
|
}
|
|
660
660
|
),
|
|
661
661
|
/***/
|
|
662
662
|
279: (
|
|
663
663
|
/***/
|
|
664
664
|
function(o) {
|
|
665
|
-
function
|
|
665
|
+
function a() {
|
|
666
666
|
}
|
|
667
|
-
|
|
668
|
-
on: function(i,
|
|
667
|
+
a.prototype = {
|
|
668
|
+
on: function(i, c, s) {
|
|
669
669
|
var l = this.e || (this.e = {});
|
|
670
670
|
return (l[i] || (l[i] = [])).push({
|
|
671
|
-
fn:
|
|
671
|
+
fn: c,
|
|
672
672
|
ctx: s
|
|
673
673
|
}), this;
|
|
674
674
|
},
|
|
675
|
-
once: function(i,
|
|
675
|
+
once: function(i, c, s) {
|
|
676
676
|
var l = this;
|
|
677
677
|
function d() {
|
|
678
|
-
l.off(i, d),
|
|
678
|
+
l.off(i, d), c.apply(s, arguments);
|
|
679
679
|
}
|
|
680
|
-
return d._ =
|
|
680
|
+
return d._ = c, this.on(i, d, s);
|
|
681
681
|
},
|
|
682
682
|
emit: function(i) {
|
|
683
|
-
var
|
|
683
|
+
var c = [].slice.call(arguments, 1), s = ((this.e || (this.e = {}))[i] || []).slice(), l = 0, d = s.length;
|
|
684
684
|
for (l; l < d; l++)
|
|
685
|
-
s[l].fn.apply(s[l].ctx,
|
|
685
|
+
s[l].fn.apply(s[l].ctx, c);
|
|
686
686
|
return this;
|
|
687
687
|
},
|
|
688
|
-
off: function(i,
|
|
688
|
+
off: function(i, c) {
|
|
689
689
|
var s = this.e || (this.e = {}), l = s[i], d = [];
|
|
690
|
-
if (l &&
|
|
690
|
+
if (l && c)
|
|
691
691
|
for (var _ = 0, h = l.length; _ < h; _++)
|
|
692
|
-
l[_].fn !==
|
|
692
|
+
l[_].fn !== c && l[_].fn._ !== c && d.push(l[_]);
|
|
693
693
|
return d.length ? s[i] = d : delete s[i], this;
|
|
694
694
|
}
|
|
695
|
-
}, o.exports =
|
|
695
|
+
}, o.exports = a, o.exports.TinyEmitter = a;
|
|
696
696
|
}
|
|
697
697
|
)
|
|
698
698
|
/******/
|
|
@@ -700,7 +700,7 @@ var At = { exports: {} };
|
|
|
700
700
|
function r(o) {
|
|
701
701
|
if (n[o])
|
|
702
702
|
return n[o].exports;
|
|
703
|
-
var
|
|
703
|
+
var a = n[o] = {
|
|
704
704
|
/******/
|
|
705
705
|
// no module.id needed
|
|
706
706
|
/******/
|
|
@@ -709,11 +709,11 @@ var At = { exports: {} };
|
|
|
709
709
|
exports: {}
|
|
710
710
|
/******/
|
|
711
711
|
};
|
|
712
|
-
return t[o](
|
|
712
|
+
return t[o](a, a.exports, r), a.exports;
|
|
713
713
|
}
|
|
714
714
|
return function() {
|
|
715
715
|
r.n = function(o) {
|
|
716
|
-
var
|
|
716
|
+
var a = o && o.__esModule ? (
|
|
717
717
|
/******/
|
|
718
718
|
function() {
|
|
719
719
|
return o.default;
|
|
@@ -724,16 +724,16 @@ var At = { exports: {} };
|
|
|
724
724
|
return o;
|
|
725
725
|
}
|
|
726
726
|
);
|
|
727
|
-
return r.d(
|
|
727
|
+
return r.d(a, { a }), a;
|
|
728
728
|
};
|
|
729
729
|
}(), function() {
|
|
730
|
-
r.d = function(o,
|
|
731
|
-
for (var i in
|
|
732
|
-
r.o(
|
|
730
|
+
r.d = function(o, a) {
|
|
731
|
+
for (var i in a)
|
|
732
|
+
r.o(a, i) && !r.o(o, i) && Object.defineProperty(o, i, { enumerable: !0, get: a[i] });
|
|
733
733
|
};
|
|
734
734
|
}(), function() {
|
|
735
|
-
r.o = function(o,
|
|
736
|
-
return Object.prototype.hasOwnProperty.call(o,
|
|
735
|
+
r.o = function(o, a) {
|
|
736
|
+
return Object.prototype.hasOwnProperty.call(o, a);
|
|
737
737
|
};
|
|
738
738
|
}(), r(686);
|
|
739
739
|
}().default
|
|
@@ -744,15 +744,15 @@ var P0 = At.exports;
|
|
|
744
744
|
const j0 = /* @__PURE__ */ R0(P0), H0 = (u) => ({
|
|
745
745
|
toClipboard(e, t) {
|
|
746
746
|
return new Promise((n, r) => {
|
|
747
|
-
const o = document.createElement("button"),
|
|
747
|
+
const o = document.createElement("button"), a = new j0(o, {
|
|
748
748
|
text: () => e,
|
|
749
749
|
action: () => "copy",
|
|
750
750
|
container: t !== void 0 ? t : document.body
|
|
751
751
|
});
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
}),
|
|
755
|
-
|
|
752
|
+
a.on("success", (i) => {
|
|
753
|
+
a.destroy(), n(i);
|
|
754
|
+
}), a.on("error", (i) => {
|
|
755
|
+
a.destroy(), r(i);
|
|
756
756
|
}), document.body.appendChild(o), o.click(), document.body.removeChild(o);
|
|
757
757
|
});
|
|
758
758
|
}
|
|
@@ -777,32 +777,32 @@ function Bu(u, e) {
|
|
|
777
777
|
const t = $0(e);
|
|
778
778
|
return u.replace(/(%[a-f0-9]{2})+/gi, function(n) {
|
|
779
779
|
let r = "";
|
|
780
|
-
for (let o = 0,
|
|
780
|
+
for (let o = 0, a = n.length; o < a; o += 3) {
|
|
781
781
|
const i = parseInt(n.slice(o + 1, o + 3), 16);
|
|
782
782
|
if (i < 128) {
|
|
783
783
|
r += t[i];
|
|
784
784
|
continue;
|
|
785
785
|
}
|
|
786
|
-
if ((i & 224) === 192 && o + 3 <
|
|
787
|
-
const
|
|
788
|
-
if ((
|
|
789
|
-
const s = i << 6 & 1984 |
|
|
786
|
+
if ((i & 224) === 192 && o + 3 < a) {
|
|
787
|
+
const c = parseInt(n.slice(o + 4, o + 6), 16);
|
|
788
|
+
if ((c & 192) === 128) {
|
|
789
|
+
const s = i << 6 & 1984 | c & 63;
|
|
790
790
|
s < 128 ? r += "��" : r += String.fromCharCode(s), o += 3;
|
|
791
791
|
continue;
|
|
792
792
|
}
|
|
793
793
|
}
|
|
794
|
-
if ((i & 240) === 224 && o + 6 <
|
|
795
|
-
const
|
|
796
|
-
if ((
|
|
797
|
-
const l = i << 12 & 61440 |
|
|
794
|
+
if ((i & 240) === 224 && o + 6 < a) {
|
|
795
|
+
const c = parseInt(n.slice(o + 4, o + 6), 16), s = parseInt(n.slice(o + 7, o + 9), 16);
|
|
796
|
+
if ((c & 192) === 128 && (s & 192) === 128) {
|
|
797
|
+
const l = i << 12 & 61440 | c << 6 & 4032 | s & 63;
|
|
798
798
|
l < 2048 || l >= 55296 && l <= 57343 ? r += "���" : r += String.fromCharCode(l), o += 6;
|
|
799
799
|
continue;
|
|
800
800
|
}
|
|
801
801
|
}
|
|
802
|
-
if ((i & 248) === 240 && o + 9 <
|
|
803
|
-
const
|
|
804
|
-
if ((
|
|
805
|
-
let d = i << 18 & 1835008 |
|
|
802
|
+
if ((i & 248) === 240 && o + 9 < a) {
|
|
803
|
+
const c = parseInt(n.slice(o + 4, o + 6), 16), s = parseInt(n.slice(o + 7, o + 9), 16), l = parseInt(n.slice(o + 10, o + 12), 16);
|
|
804
|
+
if ((c & 192) === 128 && (s & 192) === 128 && (l & 192) === 128) {
|
|
805
|
+
let d = i << 18 & 1835008 | c << 12 & 258048 | s << 6 & 4032 | l & 63;
|
|
806
806
|
d < 65536 || d > 1114111 ? r += "����" : (d -= 65536, r += String.fromCharCode(55296 + (d >> 10), 56320 + (d & 1023))), o += 9;
|
|
807
807
|
continue;
|
|
808
808
|
}
|
|
@@ -832,9 +832,9 @@ function Qu(u, e, t) {
|
|
|
832
832
|
typeof e != "string" && (t = e, e = Qu.defaultChars), typeof t > "u" && (t = !0);
|
|
833
833
|
const n = V0(e);
|
|
834
834
|
let r = "";
|
|
835
|
-
for (let o = 0,
|
|
835
|
+
for (let o = 0, a = u.length; o < a; o++) {
|
|
836
836
|
const i = u.charCodeAt(o);
|
|
837
|
-
if (t && i === 37 && o + 2 <
|
|
837
|
+
if (t && i === 37 && o + 2 < a && /^[0-9a-f]{2}$/i.test(u.slice(o + 1, o + 3))) {
|
|
838
838
|
r += u.slice(o, o + 3), o += 2;
|
|
839
839
|
continue;
|
|
840
840
|
}
|
|
@@ -843,9 +843,9 @@ function Qu(u, e, t) {
|
|
|
843
843
|
continue;
|
|
844
844
|
}
|
|
845
845
|
if (i >= 55296 && i <= 57343) {
|
|
846
|
-
if (i >= 55296 && i <= 56319 && o + 1 <
|
|
847
|
-
const
|
|
848
|
-
if (
|
|
846
|
+
if (i >= 55296 && i <= 56319 && o + 1 < a) {
|
|
847
|
+
const c = u.charCodeAt(o + 1);
|
|
848
|
+
if (c >= 56320 && c <= 57343) {
|
|
849
849
|
r += encodeURIComponent(u[o] + u[o + 1]), o++;
|
|
850
850
|
continue;
|
|
851
851
|
}
|
|
@@ -894,8 +894,8 @@ oe.prototype.parse = function(u, e) {
|
|
|
894
894
|
if (s)
|
|
895
895
|
return this.pathname = s[1], s[2] && (this.search = s[2]), this;
|
|
896
896
|
}
|
|
897
|
-
let
|
|
898
|
-
if (
|
|
897
|
+
let a = U0.exec(o);
|
|
898
|
+
if (a && (a = a[0], t = a.toLowerCase(), this.protocol = a, o = o.substr(a.length)), (e || a || o.match(/^\/\/[^@\/]+@[^@\/]+/)) && (r = o.substr(0, 2) === "//", r && !(a && Qe[a]) && (o = o.substr(2), this.slashes = !0)), !Qe[a] && (r || a && !Xe[a])) {
|
|
899
899
|
let s = -1;
|
|
900
900
|
for (let f = 0; f < Je.length; f++)
|
|
901
901
|
n = o.indexOf(Je[f]), n !== -1 && (s === -1 || n < s) && (s = n);
|
|
@@ -927,8 +927,8 @@ oe.prototype.parse = function(u, e) {
|
|
|
927
927
|
}
|
|
928
928
|
const i = o.indexOf("#");
|
|
929
929
|
i !== -1 && (this.hash = o.substr(i), o = o.slice(0, i));
|
|
930
|
-
const
|
|
931
|
-
return
|
|
930
|
+
const c = o.indexOf("?");
|
|
931
|
+
return c !== -1 && (this.search = o.substr(c), o = o.slice(0, c)), o && (this.pathname = o), Xe[t] && this.hostname && !this.pathname && (this.pathname = ""), this;
|
|
932
932
|
};
|
|
933
933
|
oe.prototype.parseHost = function(u) {
|
|
934
934
|
let e = Z0.exec(u);
|
|
@@ -993,7 +993,7 @@ const rn = /* @__PURE__ */ new Map([
|
|
|
993
993
|
return u > 65535 && (u -= 65536, e += String.fromCharCode(u >>> 10 & 1023 | 55296), u = 56320 | u & 1023), e += String.fromCharCode(u), e;
|
|
994
994
|
}
|
|
995
995
|
);
|
|
996
|
-
function
|
|
996
|
+
function an(u) {
|
|
997
997
|
var e;
|
|
998
998
|
return u >= 55296 && u <= 57343 || u > 1114111 ? 65533 : (e = rn.get(u)) !== null && e !== void 0 ? e : u;
|
|
999
999
|
}
|
|
@@ -1001,7 +1001,7 @@ var X;
|
|
|
1001
1001
|
(function(u) {
|
|
1002
1002
|
u[u.NUM = 35] = "NUM", u[u.SEMI = 59] = "SEMI", u[u.EQUALS = 61] = "EQUALS", u[u.ZERO = 48] = "ZERO", u[u.NINE = 57] = "NINE", u[u.LOWER_A = 97] = "LOWER_A", u[u.LOWER_F = 102] = "LOWER_F", u[u.LOWER_X = 120] = "LOWER_X", u[u.LOWER_Z = 122] = "LOWER_Z", u[u.UPPER_A = 65] = "UPPER_A", u[u.UPPER_F = 70] = "UPPER_F", u[u.UPPER_Z = 90] = "UPPER_Z";
|
|
1003
1003
|
})(X || (X = {}));
|
|
1004
|
-
const
|
|
1004
|
+
const cn = 32;
|
|
1005
1005
|
var Du;
|
|
1006
1006
|
(function(u) {
|
|
1007
1007
|
u[u.VALUE_LENGTH = 49152] = "VALUE_LENGTH", u[u.BRANCH_LENGTH = 16256] = "BRANCH_LENGTH", u[u.JUMP_TABLE = 127] = "JUMP_TABLE";
|
|
@@ -1069,7 +1069,7 @@ class fn {
|
|
|
1069
1069
|
* @returns The number of characters that were consumed, or -1 if the entity is incomplete.
|
|
1070
1070
|
*/
|
|
1071
1071
|
stateNumericStart(e, t) {
|
|
1072
|
-
return t >= e.length ? -1 : (e.charCodeAt(t) |
|
|
1072
|
+
return t >= e.length ? -1 : (e.charCodeAt(t) | cn) === X.LOWER_X ? (this.state = Q.NumericHex, this.consumed += 1, this.stateNumericHex(e, t + 1)) : (this.state = Q.NumericDecimal, this.stateNumericDecimal(e, t));
|
|
1073
1073
|
}
|
|
1074
1074
|
addToNumericResult(e, t, n, r) {
|
|
1075
1075
|
if (t !== n) {
|
|
@@ -1138,7 +1138,7 @@ class fn {
|
|
|
1138
1138
|
this.consumed += 1;
|
|
1139
1139
|
else if (this.decodeMode === Au.Strict)
|
|
1140
1140
|
return 0;
|
|
1141
|
-
return this.emitCodePoint(
|
|
1141
|
+
return this.emitCodePoint(an(this.result), this.consumed), this.errors && (e !== X.SEMI && this.errors.missingSemicolonAfterCharacterReference(), this.errors.validateNumericCharacterReference(this.result)), this.consumed;
|
|
1142
1142
|
}
|
|
1143
1143
|
/**
|
|
1144
1144
|
* Parses a named entity.
|
|
@@ -1153,14 +1153,14 @@ class fn {
|
|
|
1153
1153
|
const { decodeTree: n } = this;
|
|
1154
1154
|
let r = n[this.treeIndex], o = (r & Du.VALUE_LENGTH) >> 14;
|
|
1155
1155
|
for (; t < e.length; t++, this.excess++) {
|
|
1156
|
-
const
|
|
1157
|
-
if (this.treeIndex = hn(n, r, this.treeIndex + Math.max(1, o),
|
|
1156
|
+
const a = e.charCodeAt(t);
|
|
1157
|
+
if (this.treeIndex = hn(n, r, this.treeIndex + Math.max(1, o), a), this.treeIndex < 0)
|
|
1158
1158
|
return this.result === 0 || // If we are parsing an attribute
|
|
1159
1159
|
this.decodeMode === Au.Attribute && // We shouldn't have consumed any characters after the entity,
|
|
1160
1160
|
(o === 0 || // And there should be no invalid characters.
|
|
1161
|
-
dn(
|
|
1161
|
+
dn(a)) ? 0 : this.emitNotTerminatedNamedEntity();
|
|
1162
1162
|
if (r = n[this.treeIndex], o = (r & Du.VALUE_LENGTH) >> 14, o !== 0) {
|
|
1163
|
-
if (
|
|
1163
|
+
if (a === X.SEMI)
|
|
1164
1164
|
return this.emitNamedEntityData(this.treeIndex, o, this.consumed + this.excess);
|
|
1165
1165
|
this.decodeMode !== Au.Strict && (this.result = this.treeIndex, this.consumed += this.excess, this.excess = 0);
|
|
1166
1166
|
}
|
|
@@ -1217,22 +1217,22 @@ function wt(u) {
|
|
|
1217
1217
|
let e = "";
|
|
1218
1218
|
const t = new fn(u, (n) => e += on(n));
|
|
1219
1219
|
return function(r, o) {
|
|
1220
|
-
let
|
|
1220
|
+
let a = 0, i = 0;
|
|
1221
1221
|
for (; (i = r.indexOf("&", i)) >= 0; ) {
|
|
1222
|
-
e += r.slice(
|
|
1222
|
+
e += r.slice(a, i), t.startEntity(o);
|
|
1223
1223
|
const s = t.write(
|
|
1224
1224
|
r,
|
|
1225
1225
|
// Skip the "&"
|
|
1226
1226
|
i + 1
|
|
1227
1227
|
);
|
|
1228
1228
|
if (s < 0) {
|
|
1229
|
-
|
|
1229
|
+
a = i + t.end();
|
|
1230
1230
|
break;
|
|
1231
1231
|
}
|
|
1232
|
-
|
|
1232
|
+
a = i + s, i = s === 0 ? a + 1 : a;
|
|
1233
1233
|
}
|
|
1234
|
-
const
|
|
1235
|
-
return e = "",
|
|
1234
|
+
const c = e + r.slice(a);
|
|
1235
|
+
return e = "", c;
|
|
1236
1236
|
};
|
|
1237
1237
|
}
|
|
1238
1238
|
function hn(u, e, t, n) {
|
|
@@ -1240,18 +1240,18 @@ function hn(u, e, t, n) {
|
|
|
1240
1240
|
if (r === 0)
|
|
1241
1241
|
return o !== 0 && n === o ? t : -1;
|
|
1242
1242
|
if (o) {
|
|
1243
|
-
const
|
|
1244
|
-
return
|
|
1243
|
+
const c = n - o;
|
|
1244
|
+
return c < 0 || c >= r ? -1 : u[t + c] - 1;
|
|
1245
1245
|
}
|
|
1246
|
-
let
|
|
1247
|
-
for (;
|
|
1248
|
-
const
|
|
1246
|
+
let a = t, i = a + r - 1;
|
|
1247
|
+
for (; a <= i; ) {
|
|
1248
|
+
const c = a + i >>> 1, s = u[c];
|
|
1249
1249
|
if (s < n)
|
|
1250
|
-
|
|
1250
|
+
a = c + 1;
|
|
1251
1251
|
else if (s > n)
|
|
1252
|
-
i =
|
|
1252
|
+
i = c - 1;
|
|
1253
1253
|
else
|
|
1254
|
-
return u[
|
|
1254
|
+
return u[c + r];
|
|
1255
1255
|
}
|
|
1256
1256
|
return -1;
|
|
1257
1257
|
}
|
|
@@ -1270,7 +1270,7 @@ const mn = Object.prototype.hasOwnProperty;
|
|
|
1270
1270
|
function xn(u, e) {
|
|
1271
1271
|
return mn.call(u, e);
|
|
1272
1272
|
}
|
|
1273
|
-
function
|
|
1273
|
+
function ce(u) {
|
|
1274
1274
|
return Array.prototype.slice.call(arguments, 1).forEach(function(t) {
|
|
1275
1275
|
if (t) {
|
|
1276
1276
|
if (typeof t != "object")
|
|
@@ -1403,7 +1403,7 @@ function se(u) {
|
|
|
1403
1403
|
const Sn = { mdurl: Y0, ucmicro: en }, In = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1404
1404
|
__proto__: null,
|
|
1405
1405
|
arrayReplaceAt: It,
|
|
1406
|
-
assign:
|
|
1406
|
+
assign: ce,
|
|
1407
1407
|
escapeHtml: Eu,
|
|
1408
1408
|
escapeRE: wn,
|
|
1409
1409
|
fromCodePoint: ie,
|
|
@@ -1420,22 +1420,22 @@ const Sn = { mdurl: Y0, ucmicro: en }, In = /* @__PURE__ */ Object.freeze(/* @__
|
|
|
1420
1420
|
unescapeMd: yn
|
|
1421
1421
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1422
1422
|
function Tn(u, e, t) {
|
|
1423
|
-
let n, r, o,
|
|
1424
|
-
const i = u.posMax,
|
|
1423
|
+
let n, r, o, a;
|
|
1424
|
+
const i = u.posMax, c = u.pos;
|
|
1425
1425
|
for (u.pos = e + 1, n = 1; u.pos < i; ) {
|
|
1426
1426
|
if (o = u.src.charCodeAt(u.pos), o === 93 && (n--, n === 0)) {
|
|
1427
1427
|
r = !0;
|
|
1428
1428
|
break;
|
|
1429
1429
|
}
|
|
1430
|
-
if (
|
|
1431
|
-
if (
|
|
1430
|
+
if (a = u.pos, u.md.inline.skipToken(u), o === 91) {
|
|
1431
|
+
if (a === u.pos - 1)
|
|
1432
1432
|
n++;
|
|
1433
1433
|
else if (t)
|
|
1434
|
-
return u.pos =
|
|
1434
|
+
return u.pos = c, -1;
|
|
1435
1435
|
}
|
|
1436
1436
|
}
|
|
1437
1437
|
let s = -1;
|
|
1438
|
-
return r && (s = u.pos), u.pos =
|
|
1438
|
+
return r && (s = u.pos), u.pos = c, s;
|
|
1439
1439
|
}
|
|
1440
1440
|
function zn(u, e, t) {
|
|
1441
1441
|
let n, r = e;
|
|
@@ -1458,7 +1458,7 @@ function zn(u, e, t) {
|
|
|
1458
1458
|
}
|
|
1459
1459
|
return o;
|
|
1460
1460
|
}
|
|
1461
|
-
let
|
|
1461
|
+
let a = 0;
|
|
1462
1462
|
for (; r < t && (n = u.charCodeAt(r), !(n === 32 || n < 32 || n === 127)); ) {
|
|
1463
1463
|
if (n === 92 && r + 1 < t) {
|
|
1464
1464
|
if (u.charCodeAt(r + 1) === 32)
|
|
@@ -1466,20 +1466,20 @@ function zn(u, e, t) {
|
|
|
1466
1466
|
r += 2;
|
|
1467
1467
|
continue;
|
|
1468
1468
|
}
|
|
1469
|
-
if (n === 40 && (
|
|
1469
|
+
if (n === 40 && (a++, a > 32))
|
|
1470
1470
|
return o;
|
|
1471
1471
|
if (n === 41) {
|
|
1472
|
-
if (
|
|
1472
|
+
if (a === 0)
|
|
1473
1473
|
break;
|
|
1474
|
-
|
|
1474
|
+
a--;
|
|
1475
1475
|
}
|
|
1476
1476
|
r++;
|
|
1477
1477
|
}
|
|
1478
|
-
return e === r ||
|
|
1478
|
+
return e === r || a !== 0 || (o.str = qu(u.slice(e, r)), o.pos = r, o.ok = !0), o;
|
|
1479
1479
|
}
|
|
1480
1480
|
function Nn(u, e, t, n) {
|
|
1481
1481
|
let r, o = e;
|
|
1482
|
-
const
|
|
1482
|
+
const a = {
|
|
1483
1483
|
// if `true`, this is a valid link title
|
|
1484
1484
|
ok: !1,
|
|
1485
1485
|
// if `true`, this link can be continued on the next line
|
|
@@ -1492,23 +1492,23 @@ function Nn(u, e, t, n) {
|
|
|
1492
1492
|
marker: 0
|
|
1493
1493
|
};
|
|
1494
1494
|
if (n)
|
|
1495
|
-
|
|
1495
|
+
a.str = n.str, a.marker = n.marker;
|
|
1496
1496
|
else {
|
|
1497
1497
|
if (o >= t)
|
|
1498
|
-
return
|
|
1498
|
+
return a;
|
|
1499
1499
|
let i = u.charCodeAt(o);
|
|
1500
1500
|
if (i !== 34 && i !== 39 && i !== 40)
|
|
1501
|
-
return
|
|
1502
|
-
e++, o++, i === 40 && (i = 41),
|
|
1501
|
+
return a;
|
|
1502
|
+
e++, o++, i === 40 && (i = 41), a.marker = i;
|
|
1503
1503
|
}
|
|
1504
1504
|
for (; o < t; ) {
|
|
1505
|
-
if (r = u.charCodeAt(o), r ===
|
|
1506
|
-
return
|
|
1507
|
-
if (r === 40 &&
|
|
1508
|
-
return
|
|
1505
|
+
if (r = u.charCodeAt(o), r === a.marker)
|
|
1506
|
+
return a.pos = o + 1, a.str += qu(u.slice(e, o)), a.ok = !0, a;
|
|
1507
|
+
if (r === 40 && a.marker === 41)
|
|
1508
|
+
return a;
|
|
1509
1509
|
r === 92 && o + 1 < t && o++, o++;
|
|
1510
1510
|
}
|
|
1511
|
-
return
|
|
1511
|
+
return a.can_continue = !0, a.str += qu(u.slice(e, o)), a;
|
|
1512
1512
|
}
|
|
1513
1513
|
const Ln = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1514
1514
|
__proto__: null,
|
|
@@ -1526,17 +1526,17 @@ mu.code_block = function(u, e, t, n, r) {
|
|
|
1526
1526
|
`;
|
|
1527
1527
|
};
|
|
1528
1528
|
mu.fence = function(u, e, t, n, r) {
|
|
1529
|
-
const o = u[e],
|
|
1530
|
-
let i = "",
|
|
1531
|
-
if (
|
|
1532
|
-
const l =
|
|
1533
|
-
i = l[0],
|
|
1529
|
+
const o = u[e], a = o.info ? qu(o.info).trim() : "";
|
|
1530
|
+
let i = "", c = "";
|
|
1531
|
+
if (a) {
|
|
1532
|
+
const l = a.split(/(\s+)/g);
|
|
1533
|
+
i = l[0], c = l.slice(2).join("");
|
|
1534
1534
|
}
|
|
1535
1535
|
let s;
|
|
1536
|
-
if (t.highlight ? s = t.highlight(o.content, i,
|
|
1536
|
+
if (t.highlight ? s = t.highlight(o.content, i, c) || Eu(o.content) : s = Eu(o.content), s.indexOf("<pre") === 0)
|
|
1537
1537
|
return s + `
|
|
1538
1538
|
`;
|
|
1539
|
-
if (
|
|
1539
|
+
if (a) {
|
|
1540
1540
|
const l = o.attrIndex("class"), d = o.attrs ? o.attrs.slice() : [];
|
|
1541
1541
|
l < 0 ? d.push(["class", t.langPrefix + i]) : (d[l] = d[l].slice(), d[l][1] += " " + t.langPrefix + i);
|
|
1542
1542
|
const _ = {
|
|
@@ -1573,7 +1573,7 @@ mu.html_inline = function(u, e) {
|
|
|
1573
1573
|
return u[e].content;
|
|
1574
1574
|
};
|
|
1575
1575
|
function Pu() {
|
|
1576
|
-
this.rules =
|
|
1576
|
+
this.rules = ce({}, mu);
|
|
1577
1577
|
}
|
|
1578
1578
|
Pu.prototype.renderAttrs = function(e) {
|
|
1579
1579
|
let t, n, r;
|
|
@@ -1590,18 +1590,18 @@ Pu.prototype.renderToken = function(e, t, n) {
|
|
|
1590
1590
|
return "";
|
|
1591
1591
|
r.block && r.nesting !== -1 && t && e[t - 1].hidden && (o += `
|
|
1592
1592
|
`), o += (r.nesting === -1 ? "</" : "<") + r.tag, o += this.renderAttrs(r), r.nesting === 0 && n.xhtmlOut && (o += " /");
|
|
1593
|
-
let
|
|
1594
|
-
if (r.block && (
|
|
1593
|
+
let a = !1;
|
|
1594
|
+
if (r.block && (a = !0, r.nesting === 1 && t + 1 < e.length)) {
|
|
1595
1595
|
const i = e[t + 1];
|
|
1596
|
-
(i.type === "inline" || i.hidden || i.nesting === -1 && i.tag === r.tag) && (
|
|
1596
|
+
(i.type === "inline" || i.hidden || i.nesting === -1 && i.tag === r.tag) && (a = !1);
|
|
1597
1597
|
}
|
|
1598
|
-
return o +=
|
|
1598
|
+
return o += a ? `>
|
|
1599
1599
|
` : ">", o;
|
|
1600
1600
|
};
|
|
1601
1601
|
Pu.prototype.renderInline = function(u, e, t) {
|
|
1602
1602
|
let n = "";
|
|
1603
1603
|
const r = this.rules;
|
|
1604
|
-
for (let o = 0,
|
|
1604
|
+
for (let o = 0, a = u.length; o < a; o++) {
|
|
1605
1605
|
const i = u[o].type;
|
|
1606
1606
|
typeof r[i] < "u" ? n += r[i](u, o, e, t, this) : n += this.renderToken(u, o, e);
|
|
1607
1607
|
}
|
|
@@ -1632,7 +1632,7 @@ Pu.prototype.renderInlineAsText = function(u, e, t) {
|
|
|
1632
1632
|
Pu.prototype.render = function(u, e, t) {
|
|
1633
1633
|
let n = "";
|
|
1634
1634
|
const r = this.rules;
|
|
1635
|
-
for (let o = 0,
|
|
1635
|
+
for (let o = 0, a = u.length; o < a; o++) {
|
|
1636
1636
|
const i = u[o].type;
|
|
1637
1637
|
i === "inline" ? n += this.renderInline(u[o].children, e, t) : typeof r[i] < "u" ? n += r[i](u, o, e, t, this) : n += this.renderToken(u, o, e, t);
|
|
1638
1638
|
}
|
|
@@ -1792,19 +1792,19 @@ function Hn(u) {
|
|
|
1792
1792
|
if (e[t].type !== "inline" || !u.md.linkify.pretest(e[t].content))
|
|
1793
1793
|
continue;
|
|
1794
1794
|
let r = e[t].children, o = 0;
|
|
1795
|
-
for (let
|
|
1796
|
-
const i = r[
|
|
1795
|
+
for (let a = r.length - 1; a >= 0; a--) {
|
|
1796
|
+
const i = r[a];
|
|
1797
1797
|
if (i.type === "link_close") {
|
|
1798
|
-
for (
|
|
1799
|
-
|
|
1798
|
+
for (a--; r[a].level !== i.level && r[a].type !== "link_open"; )
|
|
1799
|
+
a--;
|
|
1800
1800
|
continue;
|
|
1801
1801
|
}
|
|
1802
1802
|
if (i.type === "html_inline" && (Pn(i.content) && o > 0 && o--, jn(i.content) && o++), !(o > 0) && i.type === "text" && u.md.linkify.test(i.content)) {
|
|
1803
|
-
const
|
|
1804
|
-
let s = u.md.linkify.match(
|
|
1803
|
+
const c = i.content;
|
|
1804
|
+
let s = u.md.linkify.match(c);
|
|
1805
1805
|
const l = [];
|
|
1806
1806
|
let d = i.level, _ = 0;
|
|
1807
|
-
s.length > 0 && s[0].index === 0 &&
|
|
1807
|
+
s.length > 0 && s[0].index === 0 && a > 0 && r[a - 1].type === "text_special" && (s = s.slice(1));
|
|
1808
1808
|
for (let h = 0; h < s.length; h++) {
|
|
1809
1809
|
const f = s[h].url, g = u.md.normalizeLink(f);
|
|
1810
1810
|
if (!u.md.validateLink(g))
|
|
@@ -1814,7 +1814,7 @@ function Hn(u) {
|
|
|
1814
1814
|
const C = s[h].index;
|
|
1815
1815
|
if (C > _) {
|
|
1816
1816
|
const m = new u.Token("text", "", 0);
|
|
1817
|
-
m.content =
|
|
1817
|
+
m.content = c.slice(_, C), m.level = d, l.push(m);
|
|
1818
1818
|
}
|
|
1819
1819
|
const k = new u.Token("link_open", "a", 1);
|
|
1820
1820
|
k.attrs = [["href", g]], k.level = d++, k.markup = "linkify", k.info = "auto", l.push(k);
|
|
@@ -1823,11 +1823,11 @@ function Hn(u) {
|
|
|
1823
1823
|
const p = new u.Token("link_close", "a", -1);
|
|
1824
1824
|
p.level = --d, p.markup = "linkify", p.info = "auto", l.push(p), _ = s[h].lastIndex;
|
|
1825
1825
|
}
|
|
1826
|
-
if (_ <
|
|
1826
|
+
if (_ < c.length) {
|
|
1827
1827
|
const h = new u.Token("text", "", 0);
|
|
1828
|
-
h.content =
|
|
1828
|
+
h.content = c.slice(_), h.level = d, l.push(h);
|
|
1829
1829
|
}
|
|
1830
|
-
e[t].children = r = It(r,
|
|
1830
|
+
e[t].children = r = It(r, a, l);
|
|
1831
1831
|
}
|
|
1832
1832
|
}
|
|
1833
1833
|
}
|
|
@@ -1868,20 +1868,20 @@ function Qn(u, e) {
|
|
|
1868
1868
|
let t;
|
|
1869
1869
|
const n = [];
|
|
1870
1870
|
for (let r = 0; r < u.length; r++) {
|
|
1871
|
-
const o = u[r],
|
|
1872
|
-
for (t = n.length - 1; t >= 0 && !(n[t].level <=
|
|
1871
|
+
const o = u[r], a = u[r].level;
|
|
1872
|
+
for (t = n.length - 1; t >= 0 && !(n[t].level <= a); t--)
|
|
1873
1873
|
;
|
|
1874
1874
|
if (n.length = t + 1, o.type !== "text")
|
|
1875
1875
|
continue;
|
|
1876
|
-
let i = o.content,
|
|
1876
|
+
let i = o.content, c = 0, s = i.length;
|
|
1877
1877
|
u:
|
|
1878
|
-
for (;
|
|
1879
|
-
Ye.lastIndex =
|
|
1878
|
+
for (; c < s; ) {
|
|
1879
|
+
Ye.lastIndex = c;
|
|
1880
1880
|
const l = Ye.exec(i);
|
|
1881
1881
|
if (!l)
|
|
1882
1882
|
break;
|
|
1883
1883
|
let d = !0, _ = !0;
|
|
1884
|
-
|
|
1884
|
+
c = l.index + 1;
|
|
1885
1885
|
const h = l[0] === "'";
|
|
1886
1886
|
let f = 32;
|
|
1887
1887
|
if (l.index - 1 >= 0)
|
|
@@ -1893,8 +1893,8 @@ function Qn(u, e) {
|
|
|
1893
1893
|
break;
|
|
1894
1894
|
}
|
|
1895
1895
|
let g = 32;
|
|
1896
|
-
if (
|
|
1897
|
-
g = i.charCodeAt(
|
|
1896
|
+
if (c < s)
|
|
1897
|
+
g = i.charCodeAt(c);
|
|
1898
1898
|
else
|
|
1899
1899
|
for (t = r + 1; t < u.length && !(u[t].type === "softbreak" || u[t].type === "hardbreak"); t++)
|
|
1900
1900
|
if (u[t].content) {
|
|
@@ -1909,16 +1909,16 @@ function Qn(u, e) {
|
|
|
1909
1909
|
if (_)
|
|
1910
1910
|
for (t = n.length - 1; t >= 0; t--) {
|
|
1911
1911
|
let p = n[t];
|
|
1912
|
-
if (n[t].level <
|
|
1912
|
+
if (n[t].level < a)
|
|
1913
1913
|
break;
|
|
1914
|
-
if (p.single === h && n[t].level ===
|
|
1914
|
+
if (p.single === h && n[t].level === a) {
|
|
1915
1915
|
p = n[t];
|
|
1916
1916
|
let m, L;
|
|
1917
1917
|
h ? (m = e.md.options.quotes[2], L = e.md.options.quotes[3]) : (m = e.md.options.quotes[0], L = e.md.options.quotes[1]), o.content = ue(o.content, l.index, L), u[p.token].content = ue(
|
|
1918
1918
|
u[p.token].content,
|
|
1919
1919
|
p.pos,
|
|
1920
1920
|
m
|
|
1921
|
-
),
|
|
1921
|
+
), c += L.length - 1, p.token === r && (c += m.length - 1), i = o.content, s = i.length, n.length = t;
|
|
1922
1922
|
continue u;
|
|
1923
1923
|
}
|
|
1924
1924
|
}
|
|
@@ -1926,7 +1926,7 @@ function Qn(u, e) {
|
|
|
1926
1926
|
token: r,
|
|
1927
1927
|
pos: l.index,
|
|
1928
1928
|
single: h,
|
|
1929
|
-
level:
|
|
1929
|
+
level: a
|
|
1930
1930
|
}) : _ && h && (o.content = ue(o.content, l.index, ut));
|
|
1931
1931
|
}
|
|
1932
1932
|
}
|
|
@@ -1941,12 +1941,12 @@ function Yn(u) {
|
|
|
1941
1941
|
const n = u.tokens, r = n.length;
|
|
1942
1942
|
for (let o = 0; o < r; o++) {
|
|
1943
1943
|
if (n[o].type !== "inline") continue;
|
|
1944
|
-
const
|
|
1944
|
+
const a = n[o].children, i = a.length;
|
|
1945
1945
|
for (e = 0; e < i; e++)
|
|
1946
|
-
|
|
1946
|
+
a[e].type === "text_special" && (a[e].type = "text");
|
|
1947
1947
|
for (e = t = 0; e < i; e++)
|
|
1948
|
-
|
|
1949
|
-
e !== t && (
|
|
1948
|
+
a[e].type === "text" && e + 1 < i && a[e + 1].type === "text" ? a[e + 1].content = a[e].content + a[e + 1].content : (e !== t && (a[t] = a[e]), t++);
|
|
1949
|
+
e !== t && (a.length = t);
|
|
1950
1950
|
}
|
|
1951
1951
|
}
|
|
1952
1952
|
const _e = [
|
|
@@ -1974,15 +1974,15 @@ Me.prototype.State = zt;
|
|
|
1974
1974
|
function xu(u, e, t, n) {
|
|
1975
1975
|
this.src = u, this.md = e, this.env = t, this.tokens = n, this.bMarks = [], this.eMarks = [], this.tShift = [], this.sCount = [], this.bsCount = [], this.blkIndent = 0, this.line = 0, this.lineMax = 0, this.tight = !1, this.ddIndent = -1, this.listIndent = -1, this.parentType = "root", this.level = 0;
|
|
1976
1976
|
const r = this.src;
|
|
1977
|
-
for (let o = 0,
|
|
1978
|
-
const d = r.charCodeAt(
|
|
1977
|
+
for (let o = 0, a = 0, i = 0, c = 0, s = r.length, l = !1; a < s; a++) {
|
|
1978
|
+
const d = r.charCodeAt(a);
|
|
1979
1979
|
if (!l)
|
|
1980
1980
|
if (G(d)) {
|
|
1981
|
-
i++, d === 9 ?
|
|
1981
|
+
i++, d === 9 ? c += 4 - c % 4 : c++;
|
|
1982
1982
|
continue;
|
|
1983
1983
|
} else
|
|
1984
1984
|
l = !0;
|
|
1985
|
-
(d === 10 ||
|
|
1985
|
+
(d === 10 || a === s - 1) && (d !== 10 && a++, this.bMarks.push(o), this.eMarks.push(a), this.tShift.push(i), this.sCount.push(c), this.bsCount.push(0), l = !1, i = 0, c = 0, o = a + 1);
|
|
1986
1986
|
}
|
|
1987
1987
|
this.bMarks.push(r.length), this.eMarks.push(r.length), this.tShift.push(0), this.sCount.push(0), this.bsCount.push(0), this.lineMax = this.bMarks.length - 1;
|
|
1988
1988
|
}
|
|
@@ -2031,21 +2031,21 @@ xu.prototype.getLines = function(e, t, n, r) {
|
|
|
2031
2031
|
if (e >= t)
|
|
2032
2032
|
return "";
|
|
2033
2033
|
const o = new Array(t - e);
|
|
2034
|
-
for (let
|
|
2035
|
-
let
|
|
2034
|
+
for (let a = 0, i = e; i < t; i++, a++) {
|
|
2035
|
+
let c = 0;
|
|
2036
2036
|
const s = this.bMarks[i];
|
|
2037
2037
|
let l = s, d;
|
|
2038
|
-
for (i + 1 < t || r ? d = this.eMarks[i] + 1 : d = this.eMarks[i]; l < d &&
|
|
2038
|
+
for (i + 1 < t || r ? d = this.eMarks[i] + 1 : d = this.eMarks[i]; l < d && c < n; ) {
|
|
2039
2039
|
const _ = this.src.charCodeAt(l);
|
|
2040
2040
|
if (G(_))
|
|
2041
|
-
_ === 9 ?
|
|
2041
|
+
_ === 9 ? c += 4 - (c + this.bsCount[i]) % 4 : c++;
|
|
2042
2042
|
else if (l - s < this.tShift[i])
|
|
2043
|
-
|
|
2043
|
+
c++;
|
|
2044
2044
|
else
|
|
2045
2045
|
break;
|
|
2046
2046
|
l++;
|
|
2047
2047
|
}
|
|
2048
|
-
|
|
2048
|
+
c > n ? o[a] = new Array(c - n + 1).join(" ") + this.src.slice(l, d) : o[a] = this.src.slice(l, d);
|
|
2049
2049
|
}
|
|
2050
2050
|
return o.join("");
|
|
2051
2051
|
};
|
|
@@ -2057,10 +2057,10 @@ function ge(u, e) {
|
|
|
2057
2057
|
}
|
|
2058
2058
|
function et(u) {
|
|
2059
2059
|
const e = [], t = u.length;
|
|
2060
|
-
let n = 0, r = u.charCodeAt(n), o = !1,
|
|
2060
|
+
let n = 0, r = u.charCodeAt(n), o = !1, a = 0, i = "";
|
|
2061
2061
|
for (; n < t; )
|
|
2062
|
-
r === 124 && (o ? (i += u.substring(
|
|
2063
|
-
return e.push(i + u.substring(
|
|
2062
|
+
r === 124 && (o ? (i += u.substring(a, n - 1), a = n) : (e.push(i + u.substring(a, n)), i = "", a = n + 1)), o = r === 92, n++, r = u.charCodeAt(n);
|
|
2063
|
+
return e.push(i + u.substring(a)), e;
|
|
2064
2064
|
}
|
|
2065
2065
|
function er(u, e, t, n) {
|
|
2066
2066
|
if (e + 2 > t)
|
|
@@ -2071,11 +2071,11 @@ function er(u, e, t, n) {
|
|
|
2071
2071
|
let o = u.bMarks[r] + u.tShift[r];
|
|
2072
2072
|
if (o >= u.eMarks[r])
|
|
2073
2073
|
return !1;
|
|
2074
|
-
const
|
|
2075
|
-
if (
|
|
2074
|
+
const a = u.src.charCodeAt(o++);
|
|
2075
|
+
if (a !== 124 && a !== 45 && a !== 58 || o >= u.eMarks[r])
|
|
2076
2076
|
return !1;
|
|
2077
2077
|
const i = u.src.charCodeAt(o++);
|
|
2078
|
-
if (i !== 124 && i !== 45 && i !== 58 && !G(i) ||
|
|
2078
|
+
if (i !== 124 && i !== 45 && i !== 58 && !G(i) || a === 45 && G(i))
|
|
2079
2079
|
return !1;
|
|
2080
2080
|
for (; o < u.eMarks[r]; ) {
|
|
2081
2081
|
const p = u.src.charCodeAt(o);
|
|
@@ -2083,7 +2083,7 @@ function er(u, e, t, n) {
|
|
|
2083
2083
|
return !1;
|
|
2084
2084
|
o++;
|
|
2085
2085
|
}
|
|
2086
|
-
let
|
|
2086
|
+
let c = ge(u, e + 1), s = c.split("|");
|
|
2087
2087
|
const l = [];
|
|
2088
2088
|
for (let p = 0; p < s.length; p++) {
|
|
2089
2089
|
const m = s[p].trim();
|
|
@@ -2096,9 +2096,9 @@ function er(u, e, t, n) {
|
|
|
2096
2096
|
return !1;
|
|
2097
2097
|
m.charCodeAt(m.length - 1) === 58 ? l.push(m.charCodeAt(0) === 58 ? "center" : "right") : m.charCodeAt(0) === 58 ? l.push("left") : l.push("");
|
|
2098
2098
|
}
|
|
2099
|
-
if (
|
|
2099
|
+
if (c = ge(u, e).trim(), c.indexOf("|") === -1 || u.sCount[e] - u.blkIndent >= 4)
|
|
2100
2100
|
return !1;
|
|
2101
|
-
s = et(
|
|
2101
|
+
s = et(c), s.length && s[0] === "" && s.shift(), s.length && s[s.length - 1] === "" && s.pop();
|
|
2102
2102
|
const d = s.length;
|
|
2103
2103
|
if (d === 0 || d !== l.length)
|
|
2104
2104
|
return !1;
|
|
@@ -2127,7 +2127,7 @@ function er(u, e, t, n) {
|
|
|
2127
2127
|
p = !0;
|
|
2128
2128
|
break;
|
|
2129
2129
|
}
|
|
2130
|
-
if (p || (
|
|
2130
|
+
if (p || (c = ge(u, r).trim(), !c) || u.sCount[r] - u.blkIndent >= 4 || (s = et(c), s.length && s[0] === "" && s.shift(), s.length && s[s.length - 1] === "" && s.pop(), x += d - s.length, x > ur))
|
|
2131
2131
|
break;
|
|
2132
2132
|
if (r === e + 2) {
|
|
2133
2133
|
const L = u.push("tbody_open", "tbody", 1);
|
|
@@ -2169,37 +2169,37 @@ function nr(u, e, t, n) {
|
|
|
2169
2169
|
let r = u.bMarks[e] + u.tShift[e], o = u.eMarks[e];
|
|
2170
2170
|
if (u.sCount[e] - u.blkIndent >= 4 || r + 3 > o)
|
|
2171
2171
|
return !1;
|
|
2172
|
-
const
|
|
2173
|
-
if (
|
|
2172
|
+
const a = u.src.charCodeAt(r);
|
|
2173
|
+
if (a !== 126 && a !== 96)
|
|
2174
2174
|
return !1;
|
|
2175
2175
|
let i = r;
|
|
2176
|
-
r = u.skipChars(r,
|
|
2177
|
-
let
|
|
2178
|
-
if (
|
|
2176
|
+
r = u.skipChars(r, a);
|
|
2177
|
+
let c = r - i;
|
|
2178
|
+
if (c < 3)
|
|
2179
2179
|
return !1;
|
|
2180
2180
|
const s = u.src.slice(i, r), l = u.src.slice(r, o);
|
|
2181
|
-
if (
|
|
2181
|
+
if (a === 96 && l.indexOf(String.fromCharCode(a)) >= 0)
|
|
2182
2182
|
return !1;
|
|
2183
2183
|
if (n)
|
|
2184
2184
|
return !0;
|
|
2185
2185
|
let d = e, _ = !1;
|
|
2186
2186
|
for (; d++, !(d >= t || (r = i = u.bMarks[d] + u.tShift[d], o = u.eMarks[d], r < o && u.sCount[d] < u.blkIndent)); )
|
|
2187
|
-
if (u.src.charCodeAt(r) ===
|
|
2187
|
+
if (u.src.charCodeAt(r) === a && !(u.sCount[d] - u.blkIndent >= 4) && (r = u.skipChars(r, a), !(r - i < c) && (r = u.skipSpaces(r), !(r < o)))) {
|
|
2188
2188
|
_ = !0;
|
|
2189
2189
|
break;
|
|
2190
2190
|
}
|
|
2191
|
-
|
|
2191
|
+
c = u.sCount[e], u.line = d + (_ ? 1 : 0);
|
|
2192
2192
|
const h = u.push("fence", "code", 0);
|
|
2193
|
-
return h.info = l, h.content = u.getLines(e + 1, d,
|
|
2193
|
+
return h.info = l, h.content = u.getLines(e + 1, d, c, !0), h.markup = s, h.map = [e, u.line], !0;
|
|
2194
2194
|
}
|
|
2195
2195
|
function rr(u, e, t, n) {
|
|
2196
2196
|
let r = u.bMarks[e] + u.tShift[e], o = u.eMarks[e];
|
|
2197
|
-
const
|
|
2197
|
+
const a = u.lineMax;
|
|
2198
2198
|
if (u.sCount[e] - u.blkIndent >= 4 || u.src.charCodeAt(r) !== 62)
|
|
2199
2199
|
return !1;
|
|
2200
2200
|
if (n)
|
|
2201
2201
|
return !0;
|
|
2202
|
-
const i = [],
|
|
2202
|
+
const i = [], c = [], s = [], l = [], d = u.md.block.ruler.getRules("blockquote"), _ = u.parentType;
|
|
2203
2203
|
u.parentType = "blockquote";
|
|
2204
2204
|
let h = !1, f;
|
|
2205
2205
|
for (f = e; f < t; f++) {
|
|
@@ -2218,7 +2218,7 @@ function rr(u, e, t, n) {
|
|
|
2218
2218
|
break;
|
|
2219
2219
|
r++;
|
|
2220
2220
|
}
|
|
2221
|
-
h = r >= o,
|
|
2221
|
+
h = r >= o, c.push(u.bsCount[f]), u.bsCount[f] = u.sCount[f] + 1 + (L ? 1 : 0), s.push(u.sCount[f]), u.sCount[f] = H - m, l.push(u.tShift[f]), u.tShift[f] = r - u.bMarks[f];
|
|
2222
2222
|
continue;
|
|
2223
2223
|
}
|
|
2224
2224
|
if (h)
|
|
@@ -2230,10 +2230,10 @@ function rr(u, e, t, n) {
|
|
|
2230
2230
|
break;
|
|
2231
2231
|
}
|
|
2232
2232
|
if (p) {
|
|
2233
|
-
u.lineMax = f, u.blkIndent !== 0 && (i.push(u.bMarks[f]),
|
|
2233
|
+
u.lineMax = f, u.blkIndent !== 0 && (i.push(u.bMarks[f]), c.push(u.bsCount[f]), l.push(u.tShift[f]), s.push(u.sCount[f]), u.sCount[f] -= u.blkIndent);
|
|
2234
2234
|
break;
|
|
2235
2235
|
}
|
|
2236
|
-
i.push(u.bMarks[f]),
|
|
2236
|
+
i.push(u.bMarks[f]), c.push(u.bsCount[f]), l.push(u.tShift[f]), s.push(u.sCount[f]), u.sCount[f] = -1;
|
|
2237
2237
|
}
|
|
2238
2238
|
const g = u.blkIndent;
|
|
2239
2239
|
u.blkIndent = 0;
|
|
@@ -2242,9 +2242,9 @@ function rr(u, e, t, n) {
|
|
|
2242
2242
|
const C = [e, 0];
|
|
2243
2243
|
A.map = C, u.md.block.tokenize(u, e, f);
|
|
2244
2244
|
const k = u.push("blockquote_close", "blockquote", -1);
|
|
2245
|
-
k.markup = ">", u.lineMax =
|
|
2245
|
+
k.markup = ">", u.lineMax = a, u.parentType = _, C[1] = u.line;
|
|
2246
2246
|
for (let x = 0; x < l.length; x++)
|
|
2247
|
-
u.bMarks[x + e] = i[x], u.tShift[x + e] = l[x], u.sCount[x + e] = s[x], u.bsCount[x + e] =
|
|
2247
|
+
u.bMarks[x + e] = i[x], u.tShift[x + e] = l[x], u.sCount[x + e] = s[x], u.bsCount[x + e] = c[x];
|
|
2248
2248
|
return u.blkIndent = g, !0;
|
|
2249
2249
|
}
|
|
2250
2250
|
function or(u, e, t, n) {
|
|
@@ -2252,23 +2252,23 @@ function or(u, e, t, n) {
|
|
|
2252
2252
|
if (u.sCount[e] - u.blkIndent >= 4)
|
|
2253
2253
|
return !1;
|
|
2254
2254
|
let o = u.bMarks[e] + u.tShift[e];
|
|
2255
|
-
const
|
|
2256
|
-
if (
|
|
2255
|
+
const a = u.src.charCodeAt(o++);
|
|
2256
|
+
if (a !== 42 && a !== 45 && a !== 95)
|
|
2257
2257
|
return !1;
|
|
2258
2258
|
let i = 1;
|
|
2259
2259
|
for (; o < r; ) {
|
|
2260
2260
|
const s = u.src.charCodeAt(o++);
|
|
2261
|
-
if (s !==
|
|
2261
|
+
if (s !== a && !G(s))
|
|
2262
2262
|
return !1;
|
|
2263
|
-
s ===
|
|
2263
|
+
s === a && i++;
|
|
2264
2264
|
}
|
|
2265
2265
|
if (i < 3)
|
|
2266
2266
|
return !1;
|
|
2267
2267
|
if (n)
|
|
2268
2268
|
return !0;
|
|
2269
2269
|
u.line = e + 1;
|
|
2270
|
-
const
|
|
2271
|
-
return
|
|
2270
|
+
const c = u.push("hr", "hr", 0);
|
|
2271
|
+
return c.map = [e, u.line], c.markup = Array(i + 1).join(String.fromCharCode(a)), !0;
|
|
2272
2272
|
}
|
|
2273
2273
|
function tt(u, e) {
|
|
2274
2274
|
const t = u.eMarks[e];
|
|
@@ -2310,37 +2310,37 @@ function ir(u, e) {
|
|
|
2310
2310
|
for (let n = e + 2, r = u.tokens.length - 2; n < r; n++)
|
|
2311
2311
|
u.tokens[n].level === t && u.tokens[n].type === "paragraph_open" && (u.tokens[n + 2].hidden = !0, u.tokens[n].hidden = !0, n += 2);
|
|
2312
2312
|
}
|
|
2313
|
-
function
|
|
2314
|
-
let r, o,
|
|
2315
|
-
if (u.sCount[
|
|
2313
|
+
function ar(u, e, t, n) {
|
|
2314
|
+
let r, o, a, i, c = e, s = !0;
|
|
2315
|
+
if (u.sCount[c] - u.blkIndent >= 4 || u.listIndent >= 0 && u.sCount[c] - u.listIndent >= 4 && u.sCount[c] < u.blkIndent)
|
|
2316
2316
|
return !1;
|
|
2317
2317
|
let l = !1;
|
|
2318
|
-
n && u.parentType === "paragraph" && u.sCount[
|
|
2318
|
+
n && u.parentType === "paragraph" && u.sCount[c] >= u.blkIndent && (l = !0);
|
|
2319
2319
|
let d, _, h;
|
|
2320
|
-
if ((h = nt(u,
|
|
2321
|
-
if (d = !0,
|
|
2322
|
-
} else if ((h = tt(u,
|
|
2320
|
+
if ((h = nt(u, c)) >= 0) {
|
|
2321
|
+
if (d = !0, a = u.bMarks[c] + u.tShift[c], _ = Number(u.src.slice(a, h - 1)), l && _ !== 1) return !1;
|
|
2322
|
+
} else if ((h = tt(u, c)) >= 0)
|
|
2323
2323
|
d = !1;
|
|
2324
2324
|
else
|
|
2325
2325
|
return !1;
|
|
2326
|
-
if (l && u.skipSpaces(h) >= u.eMarks[
|
|
2326
|
+
if (l && u.skipSpaces(h) >= u.eMarks[c])
|
|
2327
2327
|
return !1;
|
|
2328
2328
|
if (n)
|
|
2329
2329
|
return !0;
|
|
2330
2330
|
const f = u.src.charCodeAt(h - 1), g = u.tokens.length;
|
|
2331
2331
|
d ? (i = u.push("ordered_list_open", "ol", 1), _ !== 1 && (i.attrs = [["start", _]])) : i = u.push("bullet_list_open", "ul", 1);
|
|
2332
|
-
const A = [
|
|
2332
|
+
const A = [c, 0];
|
|
2333
2333
|
i.map = A, i.markup = String.fromCharCode(f);
|
|
2334
2334
|
let C = !1;
|
|
2335
2335
|
const k = u.md.block.ruler.getRules("list"), x = u.parentType;
|
|
2336
|
-
for (u.parentType = "list";
|
|
2337
|
-
o = h, r = u.eMarks[
|
|
2338
|
-
const p = u.sCount[
|
|
2336
|
+
for (u.parentType = "list"; c < t; ) {
|
|
2337
|
+
o = h, r = u.eMarks[c];
|
|
2338
|
+
const p = u.sCount[c] + h - (u.bMarks[c] + u.tShift[c]);
|
|
2339
2339
|
let m = p;
|
|
2340
2340
|
for (; o < r; ) {
|
|
2341
2341
|
const ou = u.src.charCodeAt(o);
|
|
2342
2342
|
if (ou === 9)
|
|
2343
|
-
m += 4 - (m + u.bsCount[
|
|
2343
|
+
m += 4 - (m + u.bsCount[c]) % 4;
|
|
2344
2344
|
else if (ou === 32)
|
|
2345
2345
|
m++;
|
|
2346
2346
|
else
|
|
@@ -2352,32 +2352,32 @@ function cr(u, e, t, n) {
|
|
|
2352
2352
|
L >= r ? T = 1 : T = m - p, T > 4 && (T = 1);
|
|
2353
2353
|
const H = p + T;
|
|
2354
2354
|
i = u.push("list_item_open", "li", 1), i.markup = String.fromCharCode(f);
|
|
2355
|
-
const R = [
|
|
2356
|
-
i.map = R, d && (i.info = u.src.slice(
|
|
2357
|
-
const K = u.tight, _u = u.tShift[
|
|
2358
|
-
if (u.listIndent = u.blkIndent, u.blkIndent = H, u.tight = !0, u.tShift[
|
|
2355
|
+
const R = [c, 0];
|
|
2356
|
+
i.map = R, d && (i.info = u.src.slice(a, h - 1));
|
|
2357
|
+
const K = u.tight, _u = u.tShift[c], ju = u.sCount[c], ku = u.listIndent;
|
|
2358
|
+
if (u.listIndent = u.blkIndent, u.blkIndent = H, u.tight = !0, u.tShift[c] = L - u.bMarks[c], u.sCount[c] = m, L >= r && u.isEmpty(c + 1) ? u.line = Math.min(u.line + 2, t) : u.md.block.tokenize(u, c, t, !0), (!u.tight || C) && (s = !1), C = u.line - c > 1 && u.isEmpty(u.line - 1), u.blkIndent = u.listIndent, u.listIndent = ku, u.tShift[c] = _u, u.sCount[c] = ju, u.tight = K, i = u.push("list_item_close", "li", -1), i.markup = String.fromCharCode(f), c = u.line, R[1] = c, c >= t || u.sCount[c] < u.blkIndent || u.sCount[c] - u.blkIndent >= 4)
|
|
2359
2359
|
break;
|
|
2360
2360
|
let fu = !1;
|
|
2361
2361
|
for (let ou = 0, Hu = k.length; ou < Hu; ou++)
|
|
2362
|
-
if (k[ou](u,
|
|
2362
|
+
if (k[ou](u, c, t, !0)) {
|
|
2363
2363
|
fu = !0;
|
|
2364
2364
|
break;
|
|
2365
2365
|
}
|
|
2366
2366
|
if (fu)
|
|
2367
2367
|
break;
|
|
2368
2368
|
if (d) {
|
|
2369
|
-
if (h = nt(u,
|
|
2369
|
+
if (h = nt(u, c), h < 0)
|
|
2370
2370
|
break;
|
|
2371
|
-
|
|
2372
|
-
} else if (h = tt(u,
|
|
2371
|
+
a = u.bMarks[c] + u.tShift[c];
|
|
2372
|
+
} else if (h = tt(u, c), h < 0)
|
|
2373
2373
|
break;
|
|
2374
2374
|
if (f !== u.src.charCodeAt(h - 1))
|
|
2375
2375
|
break;
|
|
2376
2376
|
}
|
|
2377
|
-
return d ? i = u.push("ordered_list_close", "ol", -1) : i = u.push("bullet_list_close", "ul", -1), i.markup = String.fromCharCode(f), A[1] =
|
|
2377
|
+
return d ? i = u.push("ordered_list_close", "ol", -1) : i = u.push("bullet_list_close", "ul", -1), i.markup = String.fromCharCode(f), A[1] = c, u.line = c, u.parentType = x, s && ir(u, g), !0;
|
|
2378
2378
|
}
|
|
2379
|
-
function
|
|
2380
|
-
let r = u.bMarks[e] + u.tShift[e], o = u.eMarks[e],
|
|
2379
|
+
function cr(u, e, t, n) {
|
|
2380
|
+
let r = u.bMarks[e] + u.tShift[e], o = u.eMarks[e], a = e + 1;
|
|
2381
2381
|
if (u.sCount[e] - u.blkIndent >= 4 || u.src.charCodeAt(r) !== 91)
|
|
2382
2382
|
return !1;
|
|
2383
2383
|
function i(k) {
|
|
@@ -2400,72 +2400,72 @@ function ar(u, e, t, n) {
|
|
|
2400
2400
|
const m = u.bMarks[k] + u.tShift[k], L = u.eMarks[k];
|
|
2401
2401
|
return u.src.slice(m, L + 1);
|
|
2402
2402
|
}
|
|
2403
|
-
let
|
|
2404
|
-
o =
|
|
2403
|
+
let c = u.src.slice(r, o + 1);
|
|
2404
|
+
o = c.length;
|
|
2405
2405
|
let s = -1;
|
|
2406
2406
|
for (r = 1; r < o; r++) {
|
|
2407
|
-
const k =
|
|
2407
|
+
const k = c.charCodeAt(r);
|
|
2408
2408
|
if (k === 91)
|
|
2409
2409
|
return !1;
|
|
2410
2410
|
if (k === 93) {
|
|
2411
2411
|
s = r;
|
|
2412
2412
|
break;
|
|
2413
2413
|
} else if (k === 10) {
|
|
2414
|
-
const x = i(
|
|
2415
|
-
x !== null && (
|
|
2416
|
-
} else if (k === 92 && (r++, r < o &&
|
|
2417
|
-
const x = i(
|
|
2418
|
-
x !== null && (
|
|
2414
|
+
const x = i(a);
|
|
2415
|
+
x !== null && (c += x, o = c.length, a++);
|
|
2416
|
+
} else if (k === 92 && (r++, r < o && c.charCodeAt(r) === 10)) {
|
|
2417
|
+
const x = i(a);
|
|
2418
|
+
x !== null && (c += x, o = c.length, a++);
|
|
2419
2419
|
}
|
|
2420
2420
|
}
|
|
2421
|
-
if (s < 0 ||
|
|
2421
|
+
if (s < 0 || c.charCodeAt(s + 1) !== 58)
|
|
2422
2422
|
return !1;
|
|
2423
2423
|
for (r = s + 2; r < o; r++) {
|
|
2424
|
-
const k =
|
|
2424
|
+
const k = c.charCodeAt(r);
|
|
2425
2425
|
if (k === 10) {
|
|
2426
|
-
const x = i(
|
|
2427
|
-
x !== null && (
|
|
2426
|
+
const x = i(a);
|
|
2427
|
+
x !== null && (c += x, o = c.length, a++);
|
|
2428
2428
|
} else if (!G(k)) break;
|
|
2429
2429
|
}
|
|
2430
|
-
const l = u.md.helpers.parseLinkDestination(
|
|
2430
|
+
const l = u.md.helpers.parseLinkDestination(c, r, o);
|
|
2431
2431
|
if (!l.ok)
|
|
2432
2432
|
return !1;
|
|
2433
2433
|
const d = u.md.normalizeLink(l.str);
|
|
2434
2434
|
if (!u.md.validateLink(d))
|
|
2435
2435
|
return !1;
|
|
2436
2436
|
r = l.pos;
|
|
2437
|
-
const _ = r, h =
|
|
2437
|
+
const _ = r, h = a, f = r;
|
|
2438
2438
|
for (; r < o; r++) {
|
|
2439
|
-
const k =
|
|
2439
|
+
const k = c.charCodeAt(r);
|
|
2440
2440
|
if (k === 10) {
|
|
2441
|
-
const x = i(
|
|
2442
|
-
x !== null && (
|
|
2441
|
+
const x = i(a);
|
|
2442
|
+
x !== null && (c += x, o = c.length, a++);
|
|
2443
2443
|
} else if (!G(k)) break;
|
|
2444
2444
|
}
|
|
2445
|
-
let g = u.md.helpers.parseLinkTitle(
|
|
2445
|
+
let g = u.md.helpers.parseLinkTitle(c, r, o);
|
|
2446
2446
|
for (; g.can_continue; ) {
|
|
2447
|
-
const k = i(
|
|
2447
|
+
const k = i(a);
|
|
2448
2448
|
if (k === null) break;
|
|
2449
|
-
|
|
2449
|
+
c += k, r = o, o = c.length, a++, g = u.md.helpers.parseLinkTitle(c, r, o, g);
|
|
2450
2450
|
}
|
|
2451
2451
|
let A;
|
|
2452
|
-
for (r < o && f !== r && g.ok ? (A = g.str, r = g.pos) : (A = "", r = _,
|
|
2453
|
-
const k =
|
|
2452
|
+
for (r < o && f !== r && g.ok ? (A = g.str, r = g.pos) : (A = "", r = _, a = h); r < o; ) {
|
|
2453
|
+
const k = c.charCodeAt(r);
|
|
2454
2454
|
if (!G(k))
|
|
2455
2455
|
break;
|
|
2456
2456
|
r++;
|
|
2457
2457
|
}
|
|
2458
|
-
if (r < o &&
|
|
2459
|
-
for (A = "", r = _,
|
|
2460
|
-
const k =
|
|
2458
|
+
if (r < o && c.charCodeAt(r) !== 10 && A)
|
|
2459
|
+
for (A = "", r = _, a = h; r < o; ) {
|
|
2460
|
+
const k = c.charCodeAt(r);
|
|
2461
2461
|
if (!G(k))
|
|
2462
2462
|
break;
|
|
2463
2463
|
r++;
|
|
2464
2464
|
}
|
|
2465
|
-
if (r < o &&
|
|
2465
|
+
if (r < o && c.charCodeAt(r) !== 10)
|
|
2466
2466
|
return !1;
|
|
2467
|
-
const C = se(
|
|
2468
|
-
return C ? (n || (typeof u.env.references > "u" && (u.env.references = {}), typeof u.env.references[C] > "u" && (u.env.references[C] = { title: A, href: d }), u.line =
|
|
2467
|
+
const C = se(c.slice(1, s));
|
|
2468
|
+
return C ? (n || (typeof u.env.references > "u" && (u.env.references = {}), typeof u.env.references[C] > "u" && (u.env.references[C] = { title: A, href: d }), u.line = a), !0) : !1;
|
|
2469
2469
|
}
|
|
2470
2470
|
const sr = [
|
|
2471
2471
|
"address",
|
|
@@ -2543,42 +2543,42 @@ function yr(u, e, t, n) {
|
|
|
2543
2543
|
let r = u.bMarks[e] + u.tShift[e], o = u.eMarks[e];
|
|
2544
2544
|
if (u.sCount[e] - u.blkIndent >= 4 || !u.md.options.html || u.src.charCodeAt(r) !== 60)
|
|
2545
2545
|
return !1;
|
|
2546
|
-
let
|
|
2547
|
-
for (; i < zu.length && !zu[i][0].test(
|
|
2546
|
+
let a = u.src.slice(r, o), i = 0;
|
|
2547
|
+
for (; i < zu.length && !zu[i][0].test(a); i++)
|
|
2548
2548
|
;
|
|
2549
2549
|
if (i === zu.length)
|
|
2550
2550
|
return !1;
|
|
2551
2551
|
if (n)
|
|
2552
2552
|
return zu[i][2];
|
|
2553
|
-
let
|
|
2554
|
-
if (!zu[i][1].test(
|
|
2555
|
-
for (;
|
|
2556
|
-
if (r = u.bMarks[
|
|
2557
|
-
|
|
2553
|
+
let c = e + 1;
|
|
2554
|
+
if (!zu[i][1].test(a)) {
|
|
2555
|
+
for (; c < t && !(u.sCount[c] < u.blkIndent); c++)
|
|
2556
|
+
if (r = u.bMarks[c] + u.tShift[c], o = u.eMarks[c], a = u.src.slice(r, o), zu[i][1].test(a)) {
|
|
2557
|
+
a.length !== 0 && c++;
|
|
2558
2558
|
break;
|
|
2559
2559
|
}
|
|
2560
2560
|
}
|
|
2561
|
-
u.line =
|
|
2561
|
+
u.line = c;
|
|
2562
2562
|
const s = u.push("html_block", "", 0);
|
|
2563
|
-
return s.map = [e,
|
|
2563
|
+
return s.map = [e, c], s.content = u.getLines(e, c, u.blkIndent, !0), !0;
|
|
2564
2564
|
}
|
|
2565
2565
|
function Ar(u, e, t, n) {
|
|
2566
2566
|
let r = u.bMarks[e] + u.tShift[e], o = u.eMarks[e];
|
|
2567
2567
|
if (u.sCount[e] - u.blkIndent >= 4)
|
|
2568
2568
|
return !1;
|
|
2569
|
-
let
|
|
2570
|
-
if (
|
|
2569
|
+
let a = u.src.charCodeAt(r);
|
|
2570
|
+
if (a !== 35 || r >= o)
|
|
2571
2571
|
return !1;
|
|
2572
2572
|
let i = 1;
|
|
2573
|
-
for (
|
|
2574
|
-
i++,
|
|
2575
|
-
if (i > 6 || r < o && !G(
|
|
2573
|
+
for (a = u.src.charCodeAt(++r); a === 35 && r < o && i <= 6; )
|
|
2574
|
+
i++, a = u.src.charCodeAt(++r);
|
|
2575
|
+
if (i > 6 || r < o && !G(a))
|
|
2576
2576
|
return !1;
|
|
2577
2577
|
if (n)
|
|
2578
2578
|
return !0;
|
|
2579
2579
|
o = u.skipSpacesBack(o, r);
|
|
2580
|
-
const
|
|
2581
|
-
|
|
2580
|
+
const c = u.skipCharsBack(o, 35, r);
|
|
2581
|
+
c > r && G(u.src.charCodeAt(c - 1)) && (o = c), u.line = e + 1;
|
|
2582
2582
|
const s = u.push("heading_open", "h" + String(i), 1);
|
|
2583
2583
|
s.markup = "########".slice(0, i), s.map = [e, u.line];
|
|
2584
2584
|
const l = u.push("inline", "", 0);
|
|
@@ -2592,15 +2592,15 @@ function Cr(u, e, t) {
|
|
|
2592
2592
|
return !1;
|
|
2593
2593
|
const r = u.parentType;
|
|
2594
2594
|
u.parentType = "paragraph";
|
|
2595
|
-
let o = 0,
|
|
2595
|
+
let o = 0, a, i = e + 1;
|
|
2596
2596
|
for (; i < t && !u.isEmpty(i); i++) {
|
|
2597
2597
|
if (u.sCount[i] - u.blkIndent > 3)
|
|
2598
2598
|
continue;
|
|
2599
2599
|
if (u.sCount[i] >= u.blkIndent) {
|
|
2600
2600
|
let h = u.bMarks[i] + u.tShift[i];
|
|
2601
2601
|
const f = u.eMarks[i];
|
|
2602
|
-
if (h < f && (
|
|
2603
|
-
o =
|
|
2602
|
+
if (h < f && (a = u.src.charCodeAt(h), (a === 45 || a === 61) && (h = u.skipChars(h, a), h = u.skipSpaces(h), h >= f))) {
|
|
2603
|
+
o = a === 61 ? 1 : 2;
|
|
2604
2604
|
break;
|
|
2605
2605
|
}
|
|
2606
2606
|
}
|
|
@@ -2617,14 +2617,14 @@ function Cr(u, e, t) {
|
|
|
2617
2617
|
}
|
|
2618
2618
|
if (!o)
|
|
2619
2619
|
return !1;
|
|
2620
|
-
const
|
|
2620
|
+
const c = u.getLines(e, i, u.blkIndent, !1).trim();
|
|
2621
2621
|
u.line = i + 1;
|
|
2622
2622
|
const s = u.push("heading_open", "h" + String(o), 1);
|
|
2623
|
-
s.markup = String.fromCharCode(
|
|
2623
|
+
s.markup = String.fromCharCode(a), s.map = [e, u.line];
|
|
2624
2624
|
const l = u.push("inline", "", 0);
|
|
2625
|
-
l.content =
|
|
2625
|
+
l.content = c, l.map = [e, u.line - 1], l.children = [];
|
|
2626
2626
|
const d = u.push("heading_close", "h" + String(o), -1);
|
|
2627
|
-
return d.markup = String.fromCharCode(
|
|
2627
|
+
return d.markup = String.fromCharCode(a), u.parentType = r, !0;
|
|
2628
2628
|
}
|
|
2629
2629
|
function Dr(u, e, t) {
|
|
2630
2630
|
const n = u.md.block.ruler.getRules("paragraph"), r = u.parentType;
|
|
@@ -2641,12 +2641,12 @@ function Dr(u, e, t) {
|
|
|
2641
2641
|
if (s)
|
|
2642
2642
|
break;
|
|
2643
2643
|
}
|
|
2644
|
-
const
|
|
2644
|
+
const a = u.getLines(e, o, u.blkIndent, !1).trim();
|
|
2645
2645
|
u.line = o;
|
|
2646
2646
|
const i = u.push("paragraph_open", "p", 1);
|
|
2647
2647
|
i.map = [e, u.line];
|
|
2648
|
-
const
|
|
2649
|
-
return
|
|
2648
|
+
const c = u.push("inline", "", 0);
|
|
2649
|
+
return c.content = a, c.map = [e, u.line], c.children = [], u.push("paragraph_close", "p", -1), u.parentType = r, !0;
|
|
2650
2650
|
}
|
|
2651
2651
|
const ee = [
|
|
2652
2652
|
// First 2 params - rule name & source. Secondary array - list of rules,
|
|
@@ -2656,8 +2656,8 @@ const ee = [
|
|
|
2656
2656
|
["fence", nr, ["paragraph", "reference", "blockquote", "list"]],
|
|
2657
2657
|
["blockquote", rr, ["paragraph", "reference", "blockquote", "list"]],
|
|
2658
2658
|
["hr", or, ["paragraph", "reference", "blockquote", "list"]],
|
|
2659
|
-
["list",
|
|
2660
|
-
["reference",
|
|
2659
|
+
["list", ar, ["paragraph", "reference", "blockquote"]],
|
|
2660
|
+
["reference", cr],
|
|
2661
2661
|
["html_block", yr, ["paragraph", "reference", "blockquote"]],
|
|
2662
2662
|
["heading", Ar, ["paragraph", "reference", "blockquote"]],
|
|
2663
2663
|
["lheading", Cr],
|
|
@@ -2670,22 +2670,22 @@ function le() {
|
|
|
2670
2670
|
}
|
|
2671
2671
|
le.prototype.tokenize = function(u, e, t) {
|
|
2672
2672
|
const n = this.ruler.getRules(""), r = n.length, o = u.md.options.maxNesting;
|
|
2673
|
-
let
|
|
2674
|
-
for (;
|
|
2673
|
+
let a = e, i = !1;
|
|
2674
|
+
for (; a < t && (u.line = a = u.skipEmptyLines(a), !(a >= t || u.sCount[a] < u.blkIndent)); ) {
|
|
2675
2675
|
if (u.level >= o) {
|
|
2676
2676
|
u.line = t;
|
|
2677
2677
|
break;
|
|
2678
2678
|
}
|
|
2679
|
-
const
|
|
2679
|
+
const c = u.line;
|
|
2680
2680
|
let s = !1;
|
|
2681
2681
|
for (let l = 0; l < r; l++)
|
|
2682
|
-
if (s = n[l](u,
|
|
2683
|
-
if (
|
|
2682
|
+
if (s = n[l](u, a, t, !1), s) {
|
|
2683
|
+
if (c >= u.line)
|
|
2684
2684
|
throw new Error("block rule didn't increment state.line");
|
|
2685
2685
|
break;
|
|
2686
2686
|
}
|
|
2687
2687
|
if (!s) throw new Error("none of the block rules matched");
|
|
2688
|
-
u.tight = !i, u.isEmpty(u.line - 1) && (i = !0),
|
|
2688
|
+
u.tight = !i, u.isEmpty(u.line - 1) && (i = !0), a = u.line, a < t && u.isEmpty(a) && (i = !0, a++, u.line = a);
|
|
2689
2689
|
}
|
|
2690
2690
|
};
|
|
2691
2691
|
le.prototype.parse = function(u, e, t, n) {
|
|
@@ -2713,8 +2713,8 @@ Xu.prototype.scanDelims = function(u, e) {
|
|
|
2713
2713
|
let o = u;
|
|
2714
2714
|
for (; o < t && this.src.charCodeAt(o) === n; )
|
|
2715
2715
|
o++;
|
|
2716
|
-
const
|
|
2717
|
-
return { can_open: _ && (e || !h ||
|
|
2716
|
+
const a = o - u, i = o < t ? this.src.charCodeAt(o) : 32, c = Ku(r) || Gu(String.fromCharCode(r)), s = Ku(i) || Gu(String.fromCharCode(i)), l = Zu(r), d = Zu(i), _ = !d && (!s || l || c), h = !l && (!c || d || s);
|
|
2717
|
+
return { can_open: _ && (e || !h || c), can_close: h && (e || !_ || s), length: a };
|
|
2718
2718
|
};
|
|
2719
2719
|
Xu.prototype.Token = du;
|
|
2720
2720
|
function Er(u) {
|
|
@@ -2760,17 +2760,17 @@ function Sr(u, e) {
|
|
|
2760
2760
|
if (t + 3 > n || u.src.charCodeAt(t) !== 58 || u.src.charCodeAt(t + 1) !== 47 || u.src.charCodeAt(t + 2) !== 47) return !1;
|
|
2761
2761
|
const r = u.pending.match(wr);
|
|
2762
2762
|
if (!r) return !1;
|
|
2763
|
-
const o = r[1],
|
|
2764
|
-
if (!
|
|
2765
|
-
let i =
|
|
2763
|
+
const o = r[1], a = u.md.linkify.matchAtStart(u.src.slice(t - o.length));
|
|
2764
|
+
if (!a) return !1;
|
|
2765
|
+
let i = a.url;
|
|
2766
2766
|
if (i.length <= o.length) return !1;
|
|
2767
2767
|
i = i.replace(/\*+$/, "");
|
|
2768
|
-
const
|
|
2769
|
-
if (!u.md.validateLink(
|
|
2768
|
+
const c = u.md.normalizeLink(i);
|
|
2769
|
+
if (!u.md.validateLink(c)) return !1;
|
|
2770
2770
|
if (!e) {
|
|
2771
2771
|
u.pending = u.pending.slice(0, -o.length);
|
|
2772
2772
|
const s = u.push("link_open", "a", 1);
|
|
2773
|
-
s.attrs = [["href",
|
|
2773
|
+
s.attrs = [["href", c]], s.markup = "linkify", s.info = "auto";
|
|
2774
2774
|
const l = u.push("text", "", 0);
|
|
2775
2775
|
l.content = u.md.normalizeLinkText(i);
|
|
2776
2776
|
const d = u.push("link_close", "a", -1);
|
|
@@ -2818,10 +2818,10 @@ function Tr(u, e) {
|
|
|
2818
2818
|
const i = u.src.charCodeAt(t + 1);
|
|
2819
2819
|
i >= 56320 && i <= 57343 && (o += u.src[t + 1], t++);
|
|
2820
2820
|
}
|
|
2821
|
-
const
|
|
2821
|
+
const a = "\\" + o;
|
|
2822
2822
|
if (!e) {
|
|
2823
2823
|
const i = u.push("text_special", "", 0);
|
|
2824
|
-
r < 256 && Re[r] !== 0 ? i.content = o : i.content =
|
|
2824
|
+
r < 256 && Re[r] !== 0 ? i.content = o : i.content = a, i.markup = a, i.info = "escape";
|
|
2825
2825
|
}
|
|
2826
2826
|
return u.pos = t + 1, !0;
|
|
2827
2827
|
}
|
|
@@ -2834,24 +2834,24 @@ function zr(u, e) {
|
|
|
2834
2834
|
const o = u.posMax;
|
|
2835
2835
|
for (; t < o && u.src.charCodeAt(t) === 96; )
|
|
2836
2836
|
t++;
|
|
2837
|
-
const
|
|
2837
|
+
const a = u.src.slice(r, t), i = a.length;
|
|
2838
2838
|
if (u.backticksScanned && (u.backticks[i] || 0) <= r)
|
|
2839
|
-
return e || (u.pending +=
|
|
2840
|
-
let
|
|
2841
|
-
for (; (s = u.src.indexOf("`",
|
|
2842
|
-
for (
|
|
2843
|
-
|
|
2844
|
-
const l =
|
|
2839
|
+
return e || (u.pending += a), u.pos += i, !0;
|
|
2840
|
+
let c = t, s;
|
|
2841
|
+
for (; (s = u.src.indexOf("`", c)) !== -1; ) {
|
|
2842
|
+
for (c = s + 1; c < o && u.src.charCodeAt(c) === 96; )
|
|
2843
|
+
c++;
|
|
2844
|
+
const l = c - s;
|
|
2845
2845
|
if (l === i) {
|
|
2846
2846
|
if (!e) {
|
|
2847
2847
|
const d = u.push("code_inline", "code", 0);
|
|
2848
|
-
d.markup =
|
|
2848
|
+
d.markup = a, d.content = u.src.slice(t, s).replace(/\n/g, " ").replace(/^ (.+) $/, "$1");
|
|
2849
2849
|
}
|
|
2850
|
-
return u.pos =
|
|
2850
|
+
return u.pos = c, !0;
|
|
2851
2851
|
}
|
|
2852
2852
|
u.backticks[l] = s;
|
|
2853
2853
|
}
|
|
2854
|
-
return u.backticksScanned = !0, e || (u.pending +=
|
|
2854
|
+
return u.backticksScanned = !0, e || (u.pending += a), u.pos += i, !0;
|
|
2855
2855
|
}
|
|
2856
2856
|
function Nr(u, e) {
|
|
2857
2857
|
const t = u.pos, n = u.src.charCodeAt(t);
|
|
@@ -2859,13 +2859,13 @@ function Nr(u, e) {
|
|
|
2859
2859
|
return !1;
|
|
2860
2860
|
const r = u.scanDelims(u.pos, !0);
|
|
2861
2861
|
let o = r.length;
|
|
2862
|
-
const
|
|
2862
|
+
const a = String.fromCharCode(n);
|
|
2863
2863
|
if (o < 2)
|
|
2864
2864
|
return !1;
|
|
2865
2865
|
let i;
|
|
2866
|
-
o % 2 && (i = u.push("text", "", 0), i.content =
|
|
2867
|
-
for (let
|
|
2868
|
-
i = u.push("text", "", 0), i.content =
|
|
2866
|
+
o % 2 && (i = u.push("text", "", 0), i.content = a, o--);
|
|
2867
|
+
for (let c = 0; c < o; c += 2)
|
|
2868
|
+
i = u.push("text", "", 0), i.content = a + a, u.delimiters.push({
|
|
2869
2869
|
marker: n,
|
|
2870
2870
|
length: 0,
|
|
2871
2871
|
// disable "rule of 3" length checks meant for emphasis
|
|
@@ -2880,18 +2880,18 @@ function rt(u, e) {
|
|
|
2880
2880
|
let t;
|
|
2881
2881
|
const n = [], r = e.length;
|
|
2882
2882
|
for (let o = 0; o < r; o++) {
|
|
2883
|
-
const
|
|
2884
|
-
if (
|
|
2883
|
+
const a = e[o];
|
|
2884
|
+
if (a.marker !== 126 || a.end === -1)
|
|
2885
2885
|
continue;
|
|
2886
|
-
const i = e[
|
|
2887
|
-
t = u.tokens[
|
|
2886
|
+
const i = e[a.end];
|
|
2887
|
+
t = u.tokens[a.token], t.type = "s_open", t.tag = "s", t.nesting = 1, t.markup = "~~", t.content = "", t = u.tokens[i.token], t.type = "s_close", t.tag = "s", t.nesting = -1, t.markup = "~~", t.content = "", u.tokens[i.token - 1].type === "text" && u.tokens[i.token - 1].content === "~" && n.push(i.token - 1);
|
|
2888
2888
|
}
|
|
2889
2889
|
for (; n.length; ) {
|
|
2890
2890
|
const o = n.pop();
|
|
2891
|
-
let
|
|
2892
|
-
for (;
|
|
2893
|
-
|
|
2894
|
-
|
|
2891
|
+
let a = o + 1;
|
|
2892
|
+
for (; a < u.tokens.length && u.tokens[a].type === "s_close"; )
|
|
2893
|
+
a++;
|
|
2894
|
+
a--, o !== a && (t = u.tokens[a], u.tokens[a] = u.tokens[o], u.tokens[o] = t);
|
|
2895
2895
|
}
|
|
2896
2896
|
}
|
|
2897
2897
|
function Lr(u) {
|
|
@@ -2910,8 +2910,8 @@ function Br(u, e) {
|
|
|
2910
2910
|
return !1;
|
|
2911
2911
|
const r = u.scanDelims(u.pos, n === 42);
|
|
2912
2912
|
for (let o = 0; o < r.length; o++) {
|
|
2913
|
-
const
|
|
2914
|
-
|
|
2913
|
+
const a = u.push("text", "", 0);
|
|
2914
|
+
a.content = String.fromCharCode(n), u.delimiters.push({
|
|
2915
2915
|
// Char code of the starting marker (number).
|
|
2916
2916
|
//
|
|
2917
2917
|
marker: n,
|
|
@@ -2940,12 +2940,12 @@ function ot(u, e) {
|
|
|
2940
2940
|
const r = e[n];
|
|
2941
2941
|
if (r.marker !== 95 && r.marker !== 42 || r.end === -1)
|
|
2942
2942
|
continue;
|
|
2943
|
-
const o = e[r.end],
|
|
2943
|
+
const o = e[r.end], a = n > 0 && e[n - 1].end === r.end + 1 && // check that first two markers match and adjacent
|
|
2944
2944
|
e[n - 1].marker === r.marker && e[n - 1].token === r.token - 1 && // check that last two markers are adjacent (we can safely assume they match)
|
|
2945
|
-
e[r.end + 1].token === o.token + 1, i = String.fromCharCode(r.marker),
|
|
2946
|
-
|
|
2945
|
+
e[r.end + 1].token === o.token + 1, i = String.fromCharCode(r.marker), c = u.tokens[r.token];
|
|
2946
|
+
c.type = a ? "strong_open" : "em_open", c.tag = a ? "strong" : "em", c.nesting = 1, c.markup = a ? i + i : i, c.content = "";
|
|
2947
2947
|
const s = u.tokens[o.token];
|
|
2948
|
-
s.type =
|
|
2948
|
+
s.type = a ? "strong_close" : "em_close", s.tag = a ? "strong" : "em", s.nesting = -1, s.markup = a ? i + i : i, s.content = "", a && (u.tokens[e[n - 1].token].content = "", u.tokens[e[r.end + 1].token].content = "", n--);
|
|
2949
2949
|
}
|
|
2950
2950
|
}
|
|
2951
2951
|
function qr(u) {
|
|
@@ -2959,7 +2959,7 @@ const Ot = {
|
|
|
2959
2959
|
postProcess: qr
|
|
2960
2960
|
};
|
|
2961
2961
|
function Or(u, e) {
|
|
2962
|
-
let t, n, r, o,
|
|
2962
|
+
let t, n, r, o, a = "", i = "", c = u.pos, s = !0;
|
|
2963
2963
|
if (u.src.charCodeAt(u.pos) !== 91)
|
|
2964
2964
|
return !1;
|
|
2965
2965
|
const l = u.pos, d = u.posMax, _ = u.pos + 1, h = u.md.helpers.parseLinkLabel(u, u.pos, !0);
|
|
@@ -2971,10 +2971,10 @@ function Or(u, e) {
|
|
|
2971
2971
|
;
|
|
2972
2972
|
if (f >= d)
|
|
2973
2973
|
return !1;
|
|
2974
|
-
if (
|
|
2975
|
-
for (
|
|
2974
|
+
if (c = f, r = u.md.helpers.parseLinkDestination(u.src, f, u.posMax), r.ok) {
|
|
2975
|
+
for (a = u.md.normalizeLink(r.str), u.md.validateLink(a) ? f = r.pos : a = "", c = f; f < d && (t = u.src.charCodeAt(f), !(!G(t) && t !== 10)); f++)
|
|
2976
2976
|
;
|
|
2977
|
-
if (r = u.md.helpers.parseLinkTitle(u.src, f, u.posMax), f < d &&
|
|
2977
|
+
if (r = u.md.helpers.parseLinkTitle(u.src, f, u.posMax), f < d && c !== f && r.ok)
|
|
2978
2978
|
for (i = r.str, f = r.pos; f < d && (t = u.src.charCodeAt(f), !(!G(t) && t !== 10)); f++)
|
|
2979
2979
|
;
|
|
2980
2980
|
}
|
|
@@ -2983,19 +2983,19 @@ function Or(u, e) {
|
|
|
2983
2983
|
if (s) {
|
|
2984
2984
|
if (typeof u.env.references > "u")
|
|
2985
2985
|
return !1;
|
|
2986
|
-
if (f < d && u.src.charCodeAt(f) === 91 ? (
|
|
2986
|
+
if (f < d && u.src.charCodeAt(f) === 91 ? (c = f + 1, f = u.md.helpers.parseLinkLabel(u, f), f >= 0 ? n = u.src.slice(c, f++) : f = h + 1) : f = h + 1, n || (n = u.src.slice(_, h)), o = u.env.references[se(n)], !o)
|
|
2987
2987
|
return u.pos = l, !1;
|
|
2988
|
-
|
|
2988
|
+
a = o.href, i = o.title;
|
|
2989
2989
|
}
|
|
2990
2990
|
if (!e) {
|
|
2991
2991
|
u.pos = _, u.posMax = h;
|
|
2992
|
-
const g = u.push("link_open", "a", 1), A = [["href",
|
|
2992
|
+
const g = u.push("link_open", "a", 1), A = [["href", a]];
|
|
2993
2993
|
g.attrs = A, i && A.push(["title", i]), u.linkLevel++, u.md.inline.tokenize(u), u.linkLevel--, u.push("link_close", "a", -1);
|
|
2994
2994
|
}
|
|
2995
2995
|
return u.pos = f, u.posMax = d, !0;
|
|
2996
2996
|
}
|
|
2997
2997
|
function Mr(u, e) {
|
|
2998
|
-
let t, n, r, o,
|
|
2998
|
+
let t, n, r, o, a, i, c, s, l = "";
|
|
2999
2999
|
const d = u.pos, _ = u.posMax;
|
|
3000
3000
|
if (u.src.charCodeAt(u.pos) !== 33 || u.src.charCodeAt(u.pos + 1) !== 91)
|
|
3001
3001
|
return !1;
|
|
@@ -3010,19 +3010,19 @@ function Mr(u, e) {
|
|
|
3010
3010
|
for (s = o, i = u.md.helpers.parseLinkDestination(u.src, o, u.posMax), i.ok && (l = u.md.normalizeLink(i.str), u.md.validateLink(l) ? o = i.pos : l = ""), s = o; o < _ && (t = u.src.charCodeAt(o), !(!G(t) && t !== 10)); o++)
|
|
3011
3011
|
;
|
|
3012
3012
|
if (i = u.md.helpers.parseLinkTitle(u.src, o, u.posMax), o < _ && s !== o && i.ok)
|
|
3013
|
-
for (
|
|
3013
|
+
for (c = i.str, o = i.pos; o < _ && (t = u.src.charCodeAt(o), !(!G(t) && t !== 10)); o++)
|
|
3014
3014
|
;
|
|
3015
3015
|
else
|
|
3016
|
-
|
|
3016
|
+
c = "";
|
|
3017
3017
|
if (o >= _ || u.src.charCodeAt(o) !== 41)
|
|
3018
3018
|
return u.pos = d, !1;
|
|
3019
3019
|
o++;
|
|
3020
3020
|
} else {
|
|
3021
3021
|
if (typeof u.env.references > "u")
|
|
3022
3022
|
return !1;
|
|
3023
|
-
if (o < _ && u.src.charCodeAt(o) === 91 ? (s = o + 1, o = u.md.helpers.parseLinkLabel(u, o), o >= 0 ? r = u.src.slice(s, o++) : o = f + 1) : o = f + 1, r || (r = u.src.slice(h, f)),
|
|
3023
|
+
if (o < _ && u.src.charCodeAt(o) === 91 ? (s = o + 1, o = u.md.helpers.parseLinkLabel(u, o), o >= 0 ? r = u.src.slice(s, o++) : o = f + 1) : o = f + 1, r || (r = u.src.slice(h, f)), a = u.env.references[se(r)], !a)
|
|
3024
3024
|
return u.pos = d, !1;
|
|
3025
|
-
l =
|
|
3025
|
+
l = a.href, c = a.title;
|
|
3026
3026
|
}
|
|
3027
3027
|
if (!e) {
|
|
3028
3028
|
n = u.src.slice(h, f);
|
|
@@ -3034,7 +3034,7 @@ function Mr(u, e) {
|
|
|
3034
3034
|
g
|
|
3035
3035
|
);
|
|
3036
3036
|
const A = u.push("image", "img", 0), C = [["src", l], ["alt", ""]];
|
|
3037
|
-
A.attrs = C, A.children = g, A.content = n,
|
|
3037
|
+
A.attrs = C, A.children = g, A.content = n, c && C.push(["title", c]);
|
|
3038
3038
|
}
|
|
3039
3039
|
return u.pos = o, u.posMax = _, !0;
|
|
3040
3040
|
}
|
|
@@ -3046,34 +3046,34 @@ function jr(u, e) {
|
|
|
3046
3046
|
const n = u.pos, r = u.posMax;
|
|
3047
3047
|
for (; ; ) {
|
|
3048
3048
|
if (++t >= r) return !1;
|
|
3049
|
-
const
|
|
3050
|
-
if (
|
|
3051
|
-
if (
|
|
3049
|
+
const a = u.src.charCodeAt(t);
|
|
3050
|
+
if (a === 60) return !1;
|
|
3051
|
+
if (a === 62) break;
|
|
3052
3052
|
}
|
|
3053
3053
|
const o = u.src.slice(n + 1, t);
|
|
3054
3054
|
if (Pr.test(o)) {
|
|
3055
|
-
const
|
|
3056
|
-
if (!u.md.validateLink(
|
|
3055
|
+
const a = u.md.normalizeLink(o);
|
|
3056
|
+
if (!u.md.validateLink(a))
|
|
3057
3057
|
return !1;
|
|
3058
3058
|
if (!e) {
|
|
3059
3059
|
const i = u.push("link_open", "a", 1);
|
|
3060
|
-
i.attrs = [["href",
|
|
3061
|
-
const
|
|
3062
|
-
|
|
3060
|
+
i.attrs = [["href", a]], i.markup = "autolink", i.info = "auto";
|
|
3061
|
+
const c = u.push("text", "", 0);
|
|
3062
|
+
c.content = u.md.normalizeLinkText(o);
|
|
3063
3063
|
const s = u.push("link_close", "a", -1);
|
|
3064
3064
|
s.markup = "autolink", s.info = "auto";
|
|
3065
3065
|
}
|
|
3066
3066
|
return u.pos += o.length + 2, !0;
|
|
3067
3067
|
}
|
|
3068
3068
|
if (Rr.test(o)) {
|
|
3069
|
-
const
|
|
3070
|
-
if (!u.md.validateLink(
|
|
3069
|
+
const a = u.md.normalizeLink("mailto:" + o);
|
|
3070
|
+
if (!u.md.validateLink(a))
|
|
3071
3071
|
return !1;
|
|
3072
3072
|
if (!e) {
|
|
3073
3073
|
const i = u.push("link_open", "a", 1);
|
|
3074
|
-
i.attrs = [["href",
|
|
3075
|
-
const
|
|
3076
|
-
|
|
3074
|
+
i.attrs = [["href", a]], i.markup = "autolink", i.info = "auto";
|
|
3075
|
+
const c = u.push("text", "", 0);
|
|
3076
|
+
c.content = u.md.normalizeLinkText(o);
|
|
3077
3077
|
const s = u.push("link_close", "a", -1);
|
|
3078
3078
|
s.markup = "autolink", s.info = "auto";
|
|
3079
3079
|
}
|
|
@@ -3104,8 +3104,8 @@ function Ur(u, e) {
|
|
|
3104
3104
|
if (!o)
|
|
3105
3105
|
return !1;
|
|
3106
3106
|
if (!e) {
|
|
3107
|
-
const
|
|
3108
|
-
|
|
3107
|
+
const a = u.push("html_inline", "", 0);
|
|
3108
|
+
a.content = o[0], Hr(a.content) && u.linkLevel++, $r(a.content) && u.linkLevel--;
|
|
3109
3109
|
}
|
|
3110
3110
|
return u.pos += o[0].length, !0;
|
|
3111
3111
|
}
|
|
@@ -3117,19 +3117,19 @@ function Kr(u, e) {
|
|
|
3117
3117
|
const o = u.src.slice(t).match(Zr);
|
|
3118
3118
|
if (o) {
|
|
3119
3119
|
if (!e) {
|
|
3120
|
-
const
|
|
3121
|
-
i.content = Oe(
|
|
3120
|
+
const a = o[1][0].toLowerCase() === "x" ? parseInt(o[1].slice(1), 16) : parseInt(o[1], 10), i = u.push("text_special", "", 0);
|
|
3121
|
+
i.content = Oe(a) ? ie(a) : ie(65533), i.markup = o[0], i.info = "entity";
|
|
3122
3122
|
}
|
|
3123
3123
|
return u.pos += o[0].length, !0;
|
|
3124
3124
|
}
|
|
3125
3125
|
} else {
|
|
3126
3126
|
const o = u.src.slice(t).match(Gr);
|
|
3127
3127
|
if (o) {
|
|
3128
|
-
const
|
|
3129
|
-
if (
|
|
3128
|
+
const a = St(o[0]);
|
|
3129
|
+
if (a !== o[0]) {
|
|
3130
3130
|
if (!e) {
|
|
3131
3131
|
const i = u.push("text_special", "", 0);
|
|
3132
|
-
i.content =
|
|
3132
|
+
i.content = a, i.markup = o[0], i.info = "entity";
|
|
3133
3133
|
}
|
|
3134
3134
|
return u.pos += o[0].length, !0;
|
|
3135
3135
|
}
|
|
@@ -3142,19 +3142,19 @@ function it(u) {
|
|
|
3142
3142
|
if (!t) return;
|
|
3143
3143
|
let n = 0, r = -2;
|
|
3144
3144
|
const o = [];
|
|
3145
|
-
for (let
|
|
3146
|
-
const i = u[
|
|
3147
|
-
if (o.push(0), (u[n].marker !== i.marker || r !== i.token - 1) && (n =
|
|
3145
|
+
for (let a = 0; a < t; a++) {
|
|
3146
|
+
const i = u[a];
|
|
3147
|
+
if (o.push(0), (u[n].marker !== i.marker || r !== i.token - 1) && (n = a), r = i.token, i.length = i.length || 0, !i.close) continue;
|
|
3148
3148
|
e.hasOwnProperty(i.marker) || (e[i.marker] = [-1, -1, -1, -1, -1, -1]);
|
|
3149
|
-
const
|
|
3149
|
+
const c = e[i.marker][(i.open ? 3 : 0) + i.length % 3];
|
|
3150
3150
|
let s = n - o[n] - 1, l = s;
|
|
3151
|
-
for (; s >
|
|
3151
|
+
for (; s > c; s -= o[s] + 1) {
|
|
3152
3152
|
const d = u[s];
|
|
3153
3153
|
if (d.marker === i.marker && d.open && d.end < 0) {
|
|
3154
3154
|
let _ = !1;
|
|
3155
3155
|
if ((d.close || i.open) && (d.length + i.length) % 3 === 0 && (d.length % 3 !== 0 || i.length % 3 !== 0) && (_ = !0), !_) {
|
|
3156
3156
|
const h = s > 0 && !u[s - 1].open ? o[s - 1] + 1 : 0;
|
|
3157
|
-
o[
|
|
3157
|
+
o[a] = a - s + h, o[s] = h, i.open = !1, d.end = a, d.close = !1, l = -1, r = -2;
|
|
3158
3158
|
break;
|
|
3159
3159
|
}
|
|
3160
3160
|
}
|
|
@@ -3210,32 +3210,32 @@ Yu.prototype.skipToken = function(u) {
|
|
|
3210
3210
|
u.pos = o[e];
|
|
3211
3211
|
return;
|
|
3212
3212
|
}
|
|
3213
|
-
let
|
|
3213
|
+
let a = !1;
|
|
3214
3214
|
if (u.level < r) {
|
|
3215
3215
|
for (let i = 0; i < n; i++)
|
|
3216
|
-
if (u.level++,
|
|
3216
|
+
if (u.level++, a = t[i](u, !0), u.level--, a) {
|
|
3217
3217
|
if (e >= u.pos)
|
|
3218
3218
|
throw new Error("inline rule didn't increment state.pos");
|
|
3219
3219
|
break;
|
|
3220
3220
|
}
|
|
3221
3221
|
} else
|
|
3222
3222
|
u.pos = u.posMax;
|
|
3223
|
-
|
|
3223
|
+
a || u.pos++, o[e] = u.pos;
|
|
3224
3224
|
};
|
|
3225
3225
|
Yu.prototype.tokenize = function(u) {
|
|
3226
3226
|
const e = this.ruler.getRules(""), t = e.length, n = u.posMax, r = u.md.options.maxNesting;
|
|
3227
3227
|
for (; u.pos < n; ) {
|
|
3228
3228
|
const o = u.pos;
|
|
3229
|
-
let
|
|
3229
|
+
let a = !1;
|
|
3230
3230
|
if (u.level < r) {
|
|
3231
3231
|
for (let i = 0; i < t; i++)
|
|
3232
|
-
if (
|
|
3232
|
+
if (a = e[i](u, !1), a) {
|
|
3233
3233
|
if (o >= u.pos)
|
|
3234
3234
|
throw new Error("inline rule didn't increment state.pos");
|
|
3235
3235
|
break;
|
|
3236
3236
|
}
|
|
3237
3237
|
}
|
|
3238
|
-
if (
|
|
3238
|
+
if (a) {
|
|
3239
3239
|
if (u.pos >= n)
|
|
3240
3240
|
break;
|
|
3241
3241
|
continue;
|
|
@@ -3247,8 +3247,8 @@ Yu.prototype.tokenize = function(u) {
|
|
|
3247
3247
|
Yu.prototype.parse = function(u, e, t, n) {
|
|
3248
3248
|
const r = new this.State(u, e, t, n);
|
|
3249
3249
|
this.tokenize(r);
|
|
3250
|
-
const o = this.ruler2.getRules(""),
|
|
3251
|
-
for (let i = 0; i <
|
|
3250
|
+
const o = this.ruler2.getRules(""), a = o.length;
|
|
3251
|
+
for (let i = 0; i < a; i++)
|
|
3252
3252
|
o[i](r);
|
|
3253
3253
|
};
|
|
3254
3254
|
Yu.prototype.State = Xu;
|
|
@@ -3283,7 +3283,7 @@ function Yr(u) {
|
|
|
3283
3283
|
function uo(u) {
|
|
3284
3284
|
return de(u) === "[object RegExp]";
|
|
3285
3285
|
}
|
|
3286
|
-
function
|
|
3286
|
+
function at(u) {
|
|
3287
3287
|
return de(u) === "[object Function]";
|
|
3288
3288
|
}
|
|
3289
3289
|
function eo(u) {
|
|
@@ -3335,18 +3335,18 @@ const no = {
|
|
|
3335
3335
|
function io(u) {
|
|
3336
3336
|
u.__index__ = -1, u.__text_cache__ = "";
|
|
3337
3337
|
}
|
|
3338
|
-
function
|
|
3338
|
+
function ao(u) {
|
|
3339
3339
|
return function(e, t) {
|
|
3340
3340
|
const n = e.slice(t);
|
|
3341
3341
|
return u.test(n) ? n.match(u)[0].length : 0;
|
|
3342
3342
|
};
|
|
3343
3343
|
}
|
|
3344
|
-
function
|
|
3344
|
+
function ct() {
|
|
3345
3345
|
return function(u, e) {
|
|
3346
3346
|
e.normalize(u);
|
|
3347
3347
|
};
|
|
3348
3348
|
}
|
|
3349
|
-
function
|
|
3349
|
+
function ae(u) {
|
|
3350
3350
|
const e = u.re = Qr(u.__opts__), t = u.__tlds__.slice();
|
|
3351
3351
|
u.onCompile(), u.__tlds_replaced__ || t.push(ro), t.push(e.src_xn), e.src_tlds = t.join("|");
|
|
3352
3352
|
function n(i) {
|
|
@@ -3355,49 +3355,49 @@ function ce(u) {
|
|
|
3355
3355
|
e.email_fuzzy = RegExp(n(e.tpl_email_fuzzy), "i"), e.link_fuzzy = RegExp(n(e.tpl_link_fuzzy), "i"), e.link_no_ip_fuzzy = RegExp(n(e.tpl_link_no_ip_fuzzy), "i"), e.host_fuzzy_test = RegExp(n(e.tpl_host_fuzzy_test), "i");
|
|
3356
3356
|
const r = [];
|
|
3357
3357
|
u.__compiled__ = {};
|
|
3358
|
-
function o(i,
|
|
3359
|
-
throw new Error('(LinkifyIt) Invalid schema "' + i + '": ' +
|
|
3358
|
+
function o(i, c) {
|
|
3359
|
+
throw new Error('(LinkifyIt) Invalid schema "' + i + '": ' + c);
|
|
3360
3360
|
}
|
|
3361
3361
|
Object.keys(u.__schemas__).forEach(function(i) {
|
|
3362
|
-
const
|
|
3363
|
-
if (
|
|
3362
|
+
const c = u.__schemas__[i];
|
|
3363
|
+
if (c === null)
|
|
3364
3364
|
return;
|
|
3365
3365
|
const s = { validate: null, link: null };
|
|
3366
|
-
if (u.__compiled__[i] = s, Yr(
|
|
3367
|
-
uo(
|
|
3366
|
+
if (u.__compiled__[i] = s, Yr(c)) {
|
|
3367
|
+
uo(c.validate) ? s.validate = ao(c.validate) : at(c.validate) ? s.validate = c.validate : o(i, c), at(c.normalize) ? s.normalize = c.normalize : c.normalize ? o(i, c) : s.normalize = ct();
|
|
3368
3368
|
return;
|
|
3369
3369
|
}
|
|
3370
|
-
if (Xr(
|
|
3370
|
+
if (Xr(c)) {
|
|
3371
3371
|
r.push(i);
|
|
3372
3372
|
return;
|
|
3373
3373
|
}
|
|
3374
|
-
o(i,
|
|
3374
|
+
o(i, c);
|
|
3375
3375
|
}), r.forEach(function(i) {
|
|
3376
3376
|
u.__compiled__[u.__schemas__[i]] && (u.__compiled__[i].validate = u.__compiled__[u.__schemas__[i]].validate, u.__compiled__[i].normalize = u.__compiled__[u.__schemas__[i]].normalize);
|
|
3377
|
-
}), u.__compiled__[""] = { validate: null, normalize:
|
|
3378
|
-
const
|
|
3377
|
+
}), u.__compiled__[""] = { validate: null, normalize: ct() };
|
|
3378
|
+
const a = Object.keys(u.__compiled__).filter(function(i) {
|
|
3379
3379
|
return i.length > 0 && u.__compiled__[i];
|
|
3380
3380
|
}).map(eo).join("|");
|
|
3381
|
-
u.re.schema_test = RegExp("(^|(?!_)(?:[><|]|" + e.src_ZPCc + "))(" +
|
|
3381
|
+
u.re.schema_test = RegExp("(^|(?!_)(?:[><|]|" + e.src_ZPCc + "))(" + a + ")", "i"), u.re.schema_search = RegExp("(^|(?!_)(?:[><|]|" + e.src_ZPCc + "))(" + a + ")", "ig"), u.re.schema_at_start = RegExp("^" + u.re.schema_search.source, "i"), u.re.pretest = RegExp(
|
|
3382
3382
|
"(" + u.re.schema_test.source + ")|(" + u.re.host_fuzzy_test.source + ")|@",
|
|
3383
3383
|
"i"
|
|
3384
3384
|
), io(u);
|
|
3385
3385
|
}
|
|
3386
|
-
function
|
|
3386
|
+
function co(u, e) {
|
|
3387
3387
|
const t = u.__index__, n = u.__last_index__, r = u.__text_cache__.slice(t, n);
|
|
3388
3388
|
this.schema = u.__schema__.toLowerCase(), this.index = t + e, this.lastIndex = n + e, this.raw = r, this.text = r, this.url = r;
|
|
3389
3389
|
}
|
|
3390
3390
|
function Fe(u, e) {
|
|
3391
|
-
const t = new
|
|
3391
|
+
const t = new co(u, e);
|
|
3392
3392
|
return u.__compiled__[t.schema].normalize(t, u), t;
|
|
3393
3393
|
}
|
|
3394
3394
|
function ru(u, e) {
|
|
3395
3395
|
if (!(this instanceof ru))
|
|
3396
3396
|
return new ru(u, e);
|
|
3397
|
-
e || to(u) && (e = u, u = {}), this.__opts__ = Ee({}, Mt, e), this.__index__ = -1, this.__last_index__ = -1, this.__schema__ = "", this.__text_cache__ = "", this.__schemas__ = Ee({}, no, u), this.__compiled__ = {}, this.__tlds__ = oo, this.__tlds_replaced__ = !1, this.re = {},
|
|
3397
|
+
e || to(u) && (e = u, u = {}), this.__opts__ = Ee({}, Mt, e), this.__index__ = -1, this.__last_index__ = -1, this.__schema__ = "", this.__text_cache__ = "", this.__schemas__ = Ee({}, no, u), this.__compiled__ = {}, this.__tlds__ = oo, this.__tlds_replaced__ = !1, this.re = {}, ae(this);
|
|
3398
3398
|
}
|
|
3399
3399
|
ru.prototype.add = function(e, t) {
|
|
3400
|
-
return this.__schemas__[e] = t,
|
|
3400
|
+
return this.__schemas__[e] = t, ae(this), this;
|
|
3401
3401
|
};
|
|
3402
3402
|
ru.prototype.set = function(e) {
|
|
3403
3403
|
return this.__opts__ = Ee(this.__opts__, e), this;
|
|
@@ -3405,15 +3405,15 @@ ru.prototype.set = function(e) {
|
|
|
3405
3405
|
ru.prototype.test = function(e) {
|
|
3406
3406
|
if (this.__text_cache__ = e, this.__index__ = -1, !e.length)
|
|
3407
3407
|
return !1;
|
|
3408
|
-
let t, n, r, o,
|
|
3408
|
+
let t, n, r, o, a, i, c, s, l;
|
|
3409
3409
|
if (this.re.schema_test.test(e)) {
|
|
3410
|
-
for (
|
|
3411
|
-
if (o = this.testSchemaAt(e, t[2],
|
|
3410
|
+
for (c = this.re.schema_search, c.lastIndex = 0; (t = c.exec(e)) !== null; )
|
|
3411
|
+
if (o = this.testSchemaAt(e, t[2], c.lastIndex), o) {
|
|
3412
3412
|
this.__schema__ = t[2], this.__index__ = t.index + t[1].length, this.__last_index__ = t.index + t[0].length + o;
|
|
3413
3413
|
break;
|
|
3414
3414
|
}
|
|
3415
3415
|
}
|
|
3416
|
-
return this.__opts__.fuzzyLink && this.__compiled__["http:"] && (s = e.search(this.re.host_fuzzy_test), s >= 0 && (this.__index__ < 0 || s < this.__index__) && (n = e.match(this.__opts__.fuzzyIP ? this.re.link_fuzzy : this.re.link_no_ip_fuzzy)) !== null && (
|
|
3416
|
+
return this.__opts__.fuzzyLink && this.__compiled__["http:"] && (s = e.search(this.re.host_fuzzy_test), s >= 0 && (this.__index__ < 0 || s < this.__index__) && (n = e.match(this.__opts__.fuzzyIP ? this.re.link_fuzzy : this.re.link_no_ip_fuzzy)) !== null && (a = n.index + n[1].length, (this.__index__ < 0 || a < this.__index__) && (this.__schema__ = "", this.__index__ = a, this.__last_index__ = n.index + n[0].length))), this.__opts__.fuzzyEmail && this.__compiled__["mailto:"] && (l = e.indexOf("@"), l >= 0 && (r = e.match(this.re.email_fuzzy)) !== null && (a = r.index + r[1].length, i = r.index + r[0].length, (this.__index__ < 0 || a < this.__index__ || a === this.__index__ && i > this.__last_index__) && (this.__schema__ = "mailto:", this.__index__ = a, this.__last_index__ = i))), this.__index__ >= 0;
|
|
3417
3417
|
};
|
|
3418
3418
|
ru.prototype.pretest = function(e) {
|
|
3419
3419
|
return this.re.pretest.test(e);
|
|
@@ -3440,7 +3440,7 @@ ru.prototype.matchAtStart = function(e) {
|
|
|
3440
3440
|
ru.prototype.tlds = function(e, t) {
|
|
3441
3441
|
return e = Array.isArray(e) ? e : [e], t ? (this.__tlds__ = this.__tlds__.concat(e).sort().filter(function(n, r, o) {
|
|
3442
3442
|
return n !== o[r - 1];
|
|
3443
|
-
}).reverse(),
|
|
3443
|
+
}).reverse(), ae(this), this) : (this.__tlds__ = e.slice(), this.__tlds_replaced__ = !0, ae(this), this);
|
|
3444
3444
|
};
|
|
3445
3445
|
ru.prototype.normalize = function(e) {
|
|
3446
3446
|
e.schema || (e.url = "http://" + e.url), e.schema === "mailto:" && !/^mailto:/i.test(e.url) && (e.url = "mailto:" + e.url);
|
|
@@ -3494,12 +3494,12 @@ const xo = (u) => String.fromCodePoint(...u), _o = function(u) {
|
|
|
3494
3494
|
return pu(n + (ye + 1) * u / (u + so));
|
|
3495
3495
|
}, Ut = function(u) {
|
|
3496
3496
|
const e = [], t = u.length;
|
|
3497
|
-
let n = 0, r = Pt, o = Rt,
|
|
3498
|
-
|
|
3499
|
-
for (let i = 0; i <
|
|
3497
|
+
let n = 0, r = Pt, o = Rt, a = u.lastIndexOf(jt);
|
|
3498
|
+
a < 0 && (a = 0);
|
|
3499
|
+
for (let i = 0; i < a; ++i)
|
|
3500
3500
|
u.charCodeAt(i) >= 128 && yu("not-basic"), e.push(u.charCodeAt(i));
|
|
3501
|
-
for (let i =
|
|
3502
|
-
const
|
|
3501
|
+
for (let i = a > 0 ? a + 1 : 0; i < t; ) {
|
|
3502
|
+
const c = n;
|
|
3503
3503
|
for (let l = 1, d = hu; ; d += hu) {
|
|
3504
3504
|
i >= t && yu("invalid-input");
|
|
3505
3505
|
const _ = _o(u.charCodeAt(i++));
|
|
@@ -3511,7 +3511,7 @@ const xo = (u) => String.fromCodePoint(...u), _o = function(u) {
|
|
|
3511
3511
|
l > pu(Nu / f) && yu("overflow"), l *= f;
|
|
3512
3512
|
}
|
|
3513
3513
|
const s = e.length + 1;
|
|
3514
|
-
o = Vt(n -
|
|
3514
|
+
o = Vt(n - c, s, c == 0), pu(n / s) > Nu - r && yu("overflow"), r += pu(n / s), n %= s, e.splice(n++, 0, r);
|
|
3515
3515
|
}
|
|
3516
3516
|
return String.fromCodePoint(...e);
|
|
3517
3517
|
}, Zt = function(u) {
|
|
@@ -3519,16 +3519,16 @@ const xo = (u) => String.fromCodePoint(...u), _o = function(u) {
|
|
|
3519
3519
|
u = $t(u);
|
|
3520
3520
|
const t = u.length;
|
|
3521
3521
|
let n = Pt, r = 0, o = Rt;
|
|
3522
|
-
for (const
|
|
3523
|
-
|
|
3524
|
-
const
|
|
3525
|
-
let i =
|
|
3526
|
-
for (
|
|
3527
|
-
let
|
|
3522
|
+
for (const c of u)
|
|
3523
|
+
c < 128 && e.push(Ae(c));
|
|
3524
|
+
const a = e.length;
|
|
3525
|
+
let i = a;
|
|
3526
|
+
for (a && e.push(jt); i < t; ) {
|
|
3527
|
+
let c = Nu;
|
|
3528
3528
|
for (const l of u)
|
|
3529
|
-
l >= n && l <
|
|
3529
|
+
l >= n && l < c && (c = l);
|
|
3530
3530
|
const s = i + 1;
|
|
3531
|
-
|
|
3531
|
+
c - n > pu((Nu - r) / s) && yu("overflow"), r += (c - n) * s, n = c;
|
|
3532
3532
|
for (const l of u)
|
|
3533
3533
|
if (l < n && ++r > Nu && yu("overflow"), l === n) {
|
|
3534
3534
|
let d = r;
|
|
@@ -3541,7 +3541,7 @@ const xo = (u) => String.fromCodePoint(...u), _o = function(u) {
|
|
|
3541
3541
|
Ae(st(h + f % g, 0))
|
|
3542
3542
|
), d = pu(f / g);
|
|
3543
3543
|
}
|
|
3544
|
-
e.push(Ae(st(d, 0))), o = Vt(r, s, i ===
|
|
3544
|
+
e.push(Ae(st(d, 0))), o = Vt(r, s, i === a), r = 0, ++i;
|
|
3545
3545
|
}
|
|
3546
3546
|
++r, ++n;
|
|
3547
3547
|
}
|
|
@@ -3772,10 +3772,10 @@ function So(u) {
|
|
|
3772
3772
|
function iu(u, e) {
|
|
3773
3773
|
if (!(this instanceof iu))
|
|
3774
3774
|
return new iu(u, e);
|
|
3775
|
-
e || qe(u) || (e = u || {}, u = "default"), this.inline = new Yu(), this.block = new le(), this.core = new Me(), this.renderer = new Pu(), this.linkify = new ru(), this.validateLink = Fo, this.normalizeLink = wo, this.normalizeLinkText = So, this.utils = In, this.helpers =
|
|
3775
|
+
e || qe(u) || (e = u || {}, u = "default"), this.inline = new Yu(), this.block = new le(), this.core = new Me(), this.renderer = new Pu(), this.linkify = new ru(), this.validateLink = Fo, this.normalizeLink = wo, this.normalizeLinkText = So, this.utils = In, this.helpers = ce({}, Ln), this.options = {}, this.configure(u), e && this.set(e);
|
|
3776
3776
|
}
|
|
3777
3777
|
iu.prototype.set = function(u) {
|
|
3778
|
-
return
|
|
3778
|
+
return ce(this.options, u), this;
|
|
3779
3779
|
};
|
|
3780
3780
|
iu.prototype.configure = function(u) {
|
|
3781
3781
|
const e = this;
|
|
@@ -3851,7 +3851,7 @@ const Io = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
|
|
|
3851
3851
|
class: "das-ai-chat-loading"
|
|
3852
3852
|
}, Uo = {
|
|
3853
3853
|
name: "aiChat"
|
|
3854
|
-
}, Zo = /* @__PURE__ */
|
|
3854
|
+
}, Zo = /* @__PURE__ */ au({
|
|
3855
3855
|
...Uo,
|
|
3856
3856
|
props: {
|
|
3857
3857
|
item: { default: {} },
|
|
@@ -3859,15 +3859,15 @@ const Io = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
|
|
|
3859
3859
|
},
|
|
3860
3860
|
emits: ["aiChatEmit"],
|
|
3861
3861
|
setup(u, { emit: e }) {
|
|
3862
|
-
const t = u, n = N(""), r = N(""), o = e,
|
|
3862
|
+
const t = u, n = N(""), r = N(""), o = e, a = new iu(), i = N(), c = lu(() => t.item.content), s = lu(() => t.item.think), { toClipboard: l } = H0();
|
|
3863
3863
|
bu(
|
|
3864
|
-
() =>
|
|
3864
|
+
() => c.value,
|
|
3865
3865
|
(x, p) => {
|
|
3866
3866
|
if (!x) {
|
|
3867
3867
|
n.value = "";
|
|
3868
3868
|
return;
|
|
3869
3869
|
}
|
|
3870
|
-
n.value =
|
|
3870
|
+
n.value = a.render(x);
|
|
3871
3871
|
},
|
|
3872
3872
|
{ immediate: !0 }
|
|
3873
3873
|
), bu(
|
|
@@ -3877,7 +3877,7 @@ const Io = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
|
|
|
3877
3877
|
r.value = "";
|
|
3878
3878
|
return;
|
|
3879
3879
|
}
|
|
3880
|
-
r.value =
|
|
3880
|
+
r.value = a.render(x);
|
|
3881
3881
|
},
|
|
3882
3882
|
{ immediate: !0 }
|
|
3883
3883
|
);
|
|
@@ -4223,9 +4223,9 @@ const Io = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
|
|
|
4223
4223
|
])
|
|
4224
4224
|
]));
|
|
4225
4225
|
}
|
|
4226
|
-
}), Go = /* @__PURE__ */
|
|
4226
|
+
}), Go = /* @__PURE__ */ cu(Zo, [["__scopeId", "data-v-aae83d57"]]), Ko = { class: "das-ai-chat-container" }, Jo = {
|
|
4227
4227
|
name: "chat"
|
|
4228
|
-
}, Wo = /* @__PURE__ */
|
|
4228
|
+
}, Wo = /* @__PURE__ */ au({
|
|
4229
4229
|
...Jo,
|
|
4230
4230
|
props: {
|
|
4231
4231
|
chartList: { default: [] }
|
|
@@ -4233,12 +4233,12 @@ const Io = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
|
|
|
4233
4233
|
emits: ["chatEmit"],
|
|
4234
4234
|
setup(u, { emit: e }) {
|
|
4235
4235
|
const t = u, n = lu(() => t.chartList.filter((i) => i.role == "ai")), r = (i) => {
|
|
4236
|
-
let
|
|
4237
|
-
return n.value.length > 1 && (
|
|
4238
|
-
}, o = e,
|
|
4239
|
-
o("chatEmit", i,
|
|
4236
|
+
let c = !0;
|
|
4237
|
+
return n.value.length > 1 && (c = n.value[n.value.length - 1].id == i.id), c;
|
|
4238
|
+
}, o = e, a = (i, c) => {
|
|
4239
|
+
o("chatEmit", i, c);
|
|
4240
4240
|
};
|
|
4241
|
-
return (i,
|
|
4241
|
+
return (i, c) => (F(), P("div", Ko, [
|
|
4242
4242
|
(F(!0), P(
|
|
4243
4243
|
Lu,
|
|
4244
4244
|
null,
|
|
@@ -4254,7 +4254,7 @@ const Io = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
|
|
|
4254
4254
|
}, null, 8, ["item"])) : z("v-if", !0),
|
|
4255
4255
|
s.role == "ai" ? (F(), Y(Go, {
|
|
4256
4256
|
key: 1,
|
|
4257
|
-
onAiChatEmit:
|
|
4257
|
+
onAiChatEmit: a,
|
|
4258
4258
|
isNew: r(s),
|
|
4259
4259
|
item: s
|
|
4260
4260
|
}, null, 8, ["isNew", "item"])) : z("v-if", !0)
|
|
@@ -4267,9 +4267,9 @@ const Io = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
|
|
|
4267
4267
|
))
|
|
4268
4268
|
]));
|
|
4269
4269
|
}
|
|
4270
|
-
}), Qo = /* @__PURE__ */
|
|
4270
|
+
}), Qo = /* @__PURE__ */ cu(Wo, [["__scopeId", "data-v-5db94ade"]]), Xo = { class: "das-ai-senderopt" }, Yo = { class: "int-opt-box-text" }, ui = {
|
|
4271
4271
|
name: "senderOpt"
|
|
4272
|
-
}, ei = /* @__PURE__ */
|
|
4272
|
+
}, ei = /* @__PURE__ */ au({
|
|
4273
4273
|
...ui,
|
|
4274
4274
|
setup(u) {
|
|
4275
4275
|
const e = () => {
|
|
@@ -4300,16 +4300,16 @@ const Io = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
|
|
|
4300
4300
|
)
|
|
4301
4301
|
]));
|
|
4302
4302
|
}
|
|
4303
|
-
}), ti = /* @__PURE__ */
|
|
4303
|
+
}), ti = /* @__PURE__ */ cu(ei, [["__scopeId", "data-v-5243adf9"]]), ni = { class: "das-ai-sender-container" }, ri = { class: "das-ai-sender-content" }, oi = { class: "das-ai-sender-box" }, ii = { class: "das-ai-int-scoll-box" }, ai = { class: "das-ai-int-box" }, ci = ["placeholder", "disabled"], si = { class: "das-ai-textarea-mask" }, li = { class: "das-ai-int-opt-box" }, di = { class: "int-opt-right" }, fi = {
|
|
4304
4304
|
name: "sender"
|
|
4305
|
-
}, hi = /* @__PURE__ */
|
|
4305
|
+
}, hi = /* @__PURE__ */ au({
|
|
4306
4306
|
...fi,
|
|
4307
4307
|
props: {
|
|
4308
4308
|
isNew: { type: Boolean, default: !0 }
|
|
4309
4309
|
},
|
|
4310
4310
|
emits: ["senderEmit"],
|
|
4311
4311
|
setup(u, { emit: e }) {
|
|
4312
|
-
const t = u, n = e, r = N(null), o = lu(() => !b.senderValue),
|
|
4312
|
+
const t = u, n = e, r = N(null), o = lu(() => !b.senderValue), a = lu(() => {
|
|
4313
4313
|
if (b.loading)
|
|
4314
4314
|
return I("回答中...");
|
|
4315
4315
|
if (t.isNew) {
|
|
@@ -4321,7 +4321,7 @@ const Io = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
|
|
|
4321
4321
|
}), i = () => {
|
|
4322
4322
|
var h;
|
|
4323
4323
|
(h = r.value) == null || h.focus();
|
|
4324
|
-
},
|
|
4324
|
+
}, c = (h) => {
|
|
4325
4325
|
};
|
|
4326
4326
|
bu(
|
|
4327
4327
|
() => b.senderValue,
|
|
@@ -4346,21 +4346,21 @@ const Io = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
|
|
|
4346
4346
|
}),
|
|
4347
4347
|
v("div", oi, [
|
|
4348
4348
|
v("div", ii, [
|
|
4349
|
-
v("div",
|
|
4349
|
+
v("div", ai, [
|
|
4350
4350
|
Cu(v("textarea", {
|
|
4351
4351
|
class: "das-ai-textarea",
|
|
4352
4352
|
onKeydown: Xt(d, ["enter"]),
|
|
4353
4353
|
"onUpdate:modelValue": f[0] || (f[0] = (g) => y(b).senderValue = g),
|
|
4354
|
-
placeholder:
|
|
4354
|
+
placeholder: a.value,
|
|
4355
4355
|
rows: "8",
|
|
4356
4356
|
maxlength: "512",
|
|
4357
4357
|
ref_key: "textareaRef",
|
|
4358
4358
|
ref: r,
|
|
4359
4359
|
onFocus: l,
|
|
4360
4360
|
onInput: s,
|
|
4361
|
-
onChange:
|
|
4361
|
+
onChange: c,
|
|
4362
4362
|
disabled: y(b).loading
|
|
4363
|
-
}, null, 40,
|
|
4363
|
+
}, null, 40, ci), [
|
|
4364
4364
|
[Yt, y(b).senderValue]
|
|
4365
4365
|
]),
|
|
4366
4366
|
v(
|
|
@@ -4415,12 +4415,12 @@ const Io = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
|
|
|
4415
4415
|
])
|
|
4416
4416
|
]));
|
|
4417
4417
|
}
|
|
4418
|
-
}), pi = /* @__PURE__ */
|
|
4418
|
+
}), pi = /* @__PURE__ */ cu(hi, [["__scopeId", "data-v-af950ea0"]]), bi = { class: "das-ai-addtbn-box" }, mi = {
|
|
4419
4419
|
style: { "margin-left": "4px" },
|
|
4420
4420
|
class: "add-text"
|
|
4421
4421
|
}, xi = {
|
|
4422
4422
|
name: "addNew"
|
|
4423
|
-
}, _i = /* @__PURE__ */
|
|
4423
|
+
}, _i = /* @__PURE__ */ au({
|
|
4424
4424
|
...xi,
|
|
4425
4425
|
emits: ["addNewEmit"],
|
|
4426
4426
|
setup(u, { emit: e }) {
|
|
@@ -4430,7 +4430,7 @@ const Io = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
|
|
|
4430
4430
|
return (r, o) => (F(), P("div", bi, [
|
|
4431
4431
|
v("div", {
|
|
4432
4432
|
class: "add-box",
|
|
4433
|
-
onClick: o[0] || (o[0] = (
|
|
4433
|
+
onClick: o[0] || (o[0] = (a) => n("addNew"))
|
|
4434
4434
|
}, [
|
|
4435
4435
|
j(y(v0), {
|
|
4436
4436
|
size: "medium",
|
|
@@ -4447,7 +4447,7 @@ const Io = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
|
|
|
4447
4447
|
y(b).showScrollBom ? (F(), P("div", {
|
|
4448
4448
|
key: 0,
|
|
4449
4449
|
class: "scroll-opt-box",
|
|
4450
|
-
onClick: o[1] || (o[1] = (
|
|
4450
|
+
onClick: o[1] || (o[1] = (a) => n("scrollBom"))
|
|
4451
4451
|
}, [
|
|
4452
4452
|
j(y(k0), {
|
|
4453
4453
|
size: "large",
|
|
@@ -4456,12 +4456,12 @@ const Io = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
|
|
|
4456
4456
|
])) : z("v-if", !0)
|
|
4457
4457
|
]));
|
|
4458
4458
|
}
|
|
4459
|
-
}), gi = /* @__PURE__ */
|
|
4459
|
+
}), gi = /* @__PURE__ */ cu(_i, [["__scopeId", "data-v-a2879a5e"]]), ki = { class: "das-ai-prompt" }, vi = { class: "das-ai-prompt-title" }, yi = { class: "das-ai-prompt-tip" }, Ai = {
|
|
4460
4460
|
key: 0,
|
|
4461
4461
|
class: "das-ai-prompt-small"
|
|
4462
4462
|
}, Ci = ["onClick"], Di = {
|
|
4463
4463
|
name: "useChat"
|
|
4464
|
-
}, Ei = /* @__PURE__ */
|
|
4464
|
+
}, Ei = /* @__PURE__ */ au({
|
|
4465
4465
|
...Di,
|
|
4466
4466
|
props: {
|
|
4467
4467
|
list: { default: [] }
|
|
@@ -4497,34 +4497,34 @@ const Io = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
|
|
|
4497
4497
|
(F(!0), P(
|
|
4498
4498
|
Lu,
|
|
4499
4499
|
null,
|
|
4500
|
-
Wu(r.list, (
|
|
4500
|
+
Wu(r.list, (a) => {
|
|
4501
4501
|
var i;
|
|
4502
4502
|
return F(), P("div", {
|
|
4503
|
-
onClick: (
|
|
4504
|
-
class: Mu(["das-ai-prompt-item", { "long-text": ((i =
|
|
4505
|
-
}, U(
|
|
4503
|
+
onClick: (c) => n(a),
|
|
4504
|
+
class: Mu(["das-ai-prompt-item", { "long-text": ((i = a.text) == null ? void 0 : i.length) > 25 }])
|
|
4505
|
+
}, U(a.text || (a == null ? void 0 : a.questionWord)), 11, Ci);
|
|
4506
4506
|
}),
|
|
4507
4507
|
256
|
|
4508
4508
|
/* UNKEYED_FRAGMENT */
|
|
4509
4509
|
))
|
|
4510
4510
|
]));
|
|
4511
4511
|
}
|
|
4512
|
-
}), Fi = /* @__PURE__ */
|
|
4512
|
+
}), Fi = /* @__PURE__ */ cu(Ei, [["__scopeId", "data-v-d8cdc1d4"]]), je = "v1", Fu = ze(`/api/llm/knowledge/${je}`), wi = ze(`/api/llm/vector/${je}`), Si = ze(`/api/system-config/${je}`);
|
|
4513
4513
|
kt.get("token");
|
|
4514
4514
|
kt.post("putObject");
|
|
4515
4515
|
wi.get("/large-model/general-question");
|
|
4516
4516
|
const Ii = Si.get("/platform/qa-config/enabled-list"), Ti = Fu.post("/chat/stop"), zi = Fu.post("/chat/save-knowledge"), Ni = Fu.get("/chat"), Li = Fu.get("/chat/chat-details"), Bi = Fu.delete("/chat/delete-by-user"), qi = Fu.delete("/chat"), Oi = Fu.get("/chat/delete-by-query-id");
|
|
4517
4517
|
Ru.post("/file");
|
|
4518
|
-
const
|
|
4518
|
+
const Zc = Ru.post("/file/save-file"), Mi = Ru.get("/folder"), Ri = Ru.post("/folder/listAllByCondition");
|
|
4519
4519
|
Ru.post("/folder/lazy-tree");
|
|
4520
4520
|
Ru.post("/folder/tree-search");
|
|
4521
4521
|
const Pi = Fu.post("/chat/chat-feedback"), ji = { class: "das-ai-select-container" }, Hi = { class: "das-ai-select-text-box" }, $i = { class: "das-ai-select-text" }, Vi = { class: "das-ai-select-box" }, Ui = {
|
|
4522
4522
|
key: 0,
|
|
4523
4523
|
class: "das-ai-select-text"
|
|
4524
|
-
}, Zi = { class: "das-ai-type-list" }, Gi = ["onClick"], Ki = { class: "das-ai-type-icon" }, Ji = { class: "das-ai-type-box" }, Wi = { class: "das-ai-type-name" }, Qi = { class: "das-ai-type-desc" }, Xi = ["onClick"], Yi = { class: "das-ai-type-tree" },
|
|
4524
|
+
}, Zi = { class: "das-ai-type-list" }, Gi = ["onClick"], Ki = { class: "das-ai-type-icon" }, Ji = { class: "das-ai-type-box" }, Wi = { class: "das-ai-type-name" }, Qi = { class: "das-ai-type-desc" }, Xi = ["onClick"], Yi = { class: "das-ai-type-tree" }, ua = {
|
|
4525
4525
|
name: "selectType"
|
|
4526
|
-
},
|
|
4527
|
-
...
|
|
4526
|
+
}, ea = /* @__PURE__ */ au({
|
|
4527
|
+
...ua,
|
|
4528
4528
|
props: {
|
|
4529
4529
|
listLength: { default: 0 }
|
|
4530
4530
|
},
|
|
@@ -4539,13 +4539,13 @@ const Pi = Fu.post("/chat/chat-feedback"), ji = { class: "das-ai-select-containe
|
|
|
4539
4539
|
}
|
|
4540
4540
|
}
|
|
4541
4541
|
]
|
|
4542
|
-
}),
|
|
4542
|
+
}), a = N([
|
|
4543
4543
|
{ id: "1", name: I("知识库"), desc: I("选择在某个知识库中搜索"), icon: "knowOpen" },
|
|
4544
4544
|
{ id: "0", name: I("物联应用"), desc: I("在权限范围内的应用中搜索"), icon: "yingyong" },
|
|
4545
4545
|
{ id: "2", name: I("全网"), desc: I("在整个大模型中搜索"), icon: "intnet" }
|
|
4546
|
-
]), i = N(!1),
|
|
4546
|
+
]), i = N(!1), c = N([]), s = N(""), l = N(""), d = e, _ = () => {
|
|
4547
4547
|
d("back");
|
|
4548
|
-
}, h = lu(() =>
|
|
4548
|
+
}, h = lu(() => a.value.find((T) => T.id === b.searchType)), f = lu(() => b.searchType == "1" ? I("基于知识库") : b.searchType == "0" ? I("基于物联应用") : b.searchType == "2" ? I("基于全网") : I("基于全部")), g = lu(() => b.folderId && b.folderName ? b.folderName : I("选择在某个知识库中搜索")), A = (T) => {
|
|
4549
4549
|
}, C = (T) => {
|
|
4550
4550
|
r.value = !1;
|
|
4551
4551
|
}, k = (T) => {
|
|
@@ -4579,7 +4579,7 @@ const Pi = Fu.post("/chat/chat-feedback"), ji = { class: "das-ai-select-containe
|
|
|
4579
4579
|
}
|
|
4580
4580
|
], K.forEach((_u) => {
|
|
4581
4581
|
L(_u);
|
|
4582
|
-
})) : (l.value = "", b.folderId = "", b.folderName = ""),
|
|
4582
|
+
})) : (l.value = "", b.folderId = "", b.folderName = ""), c.value = K;
|
|
4583
4583
|
}, L = (T, H, R) => {
|
|
4584
4584
|
T.disabled = !T.authority, T.path = H ? H + `/${T.id}` : T.id, T.pathName = R ? R + `/${T.folderName}` : T.folderName, b.folderId && b.folderId == T.id && !T.authority && (b.folderId = "", b.folderName = "", l.value = ""), T.childFolderList && T.childFolderList.length && T.childFolderList.forEach((K) => {
|
|
4585
4585
|
L(K, T.path, T.pathName);
|
|
@@ -4658,7 +4658,7 @@ const Pi = Fu.post("/chat/chat-feedback"), ji = { class: "das-ai-select-containe
|
|
|
4658
4658
|
(F(!0), P(
|
|
4659
4659
|
Lu,
|
|
4660
4660
|
null,
|
|
4661
|
-
Wu(
|
|
4661
|
+
Wu(a.value, (R) => (F(), P("div", {
|
|
4662
4662
|
onClick: (K) => p(R),
|
|
4663
4663
|
class: Mu(["das-ai-type-item", { selected: y(b).searchType == R.id }])
|
|
4664
4664
|
}, [
|
|
@@ -4708,7 +4708,7 @@ const Pi = Fu.post("/chat/chat-feedback"), ji = { class: "das-ai-select-containe
|
|
|
4708
4708
|
Cu((F(), P("div", Yi, [
|
|
4709
4709
|
j(y(C0), {
|
|
4710
4710
|
ref: "folderTreeRef",
|
|
4711
|
-
data:
|
|
4711
|
+
data: c.value,
|
|
4712
4712
|
isFilter: "",
|
|
4713
4713
|
"node-key": "id",
|
|
4714
4714
|
isEllipsis: "",
|
|
@@ -4730,13 +4730,13 @@ const Pi = Fu.post("/chat/chat-feedback"), ji = { class: "das-ai-select-containe
|
|
|
4730
4730
|
}, 8, ["popper-options", "visible", "disabled"])
|
|
4731
4731
|
]));
|
|
4732
4732
|
}
|
|
4733
|
-
}),
|
|
4733
|
+
}), ta = /* @__PURE__ */ cu(ea, [["__scopeId", "data-v-fc505048"]]), na = { class: "das-ai-reference-content-page" }, ra = { class: "reference-header" }, oa = { style: { "margin-left": "16px" } }, ia = { class: "reference-list" }, aa = { class: "reference-file-scroll" }, ca = ["onClick"], sa = { class: "reference-file-title" }, la = { style: { "margin-right": "4px" } }, da = {
|
|
4734
4734
|
class: "reference-file-title-text",
|
|
4735
4735
|
style: { "margin-left": "4px" }
|
|
4736
|
-
},
|
|
4736
|
+
}, fa = { class: "reference-file-summary" }, ha = {
|
|
4737
4737
|
name: "referenceContent"
|
|
4738
|
-
},
|
|
4739
|
-
...
|
|
4738
|
+
}, pa = /* @__PURE__ */ au({
|
|
4739
|
+
...ha,
|
|
4740
4740
|
props: {
|
|
4741
4741
|
item: { default: {} }
|
|
4742
4742
|
},
|
|
@@ -4749,18 +4749,18 @@ const Pi = Fu.post("/chat/chat-feedback"), ji = { class: "das-ai-select-containe
|
|
|
4749
4749
|
};
|
|
4750
4750
|
Ou(() => {
|
|
4751
4751
|
});
|
|
4752
|
-
const
|
|
4752
|
+
const a = (c) => {
|
|
4753
4753
|
const s = `${pt().baseURL}/oss/`;
|
|
4754
|
-
return
|
|
4755
|
-
}, i = (
|
|
4756
|
-
if (n.value = s, r.value.includes(s) || r.value.push(s),
|
|
4757
|
-
|
|
4754
|
+
return c.includes(s);
|
|
4755
|
+
}, i = (c, s) => {
|
|
4756
|
+
if (n.value = s, r.value.includes(s) || r.value.push(s), c.type == "url") {
|
|
4757
|
+
c.webUrl && t("toApp", c.webUrl);
|
|
4758
4758
|
return;
|
|
4759
4759
|
}
|
|
4760
|
-
c
|
|
4760
|
+
a(c.url) ? t("preview", c.url) : window.open(c.url, "_blank");
|
|
4761
4761
|
};
|
|
4762
|
-
return (
|
|
4763
|
-
v("div",
|
|
4762
|
+
return (c, s) => (F(), P("div", na, [
|
|
4763
|
+
v("div", ra, [
|
|
4764
4764
|
j(y(Te), {
|
|
4765
4765
|
onClick: o,
|
|
4766
4766
|
size: "large",
|
|
@@ -4768,28 +4768,28 @@ const Pi = Fu.post("/chat/chat-feedback"), ji = { class: "das-ai-select-containe
|
|
|
4768
4768
|
}),
|
|
4769
4769
|
v(
|
|
4770
4770
|
"span",
|
|
4771
|
-
|
|
4772
|
-
U(y(I)("参考内容(共$0条)",
|
|
4771
|
+
oa,
|
|
4772
|
+
U(y(I)("参考内容(共$0条)", c.item.file.length)),
|
|
4773
4773
|
1
|
|
4774
4774
|
/* TEXT */
|
|
4775
4775
|
)
|
|
4776
4776
|
]),
|
|
4777
|
-
v("div",
|
|
4777
|
+
v("div", ia, [
|
|
4778
4778
|
j(y(Ie), null, {
|
|
4779
4779
|
default: W(() => [
|
|
4780
|
-
v("div",
|
|
4780
|
+
v("div", aa, [
|
|
4781
4781
|
(F(!0), P(
|
|
4782
4782
|
Lu,
|
|
4783
4783
|
null,
|
|
4784
|
-
Wu(
|
|
4784
|
+
Wu(c.item.file, (l, d) => (F(), P("div", {
|
|
4785
4785
|
onClick: (_) => i(l, d),
|
|
4786
4786
|
class: Mu(["reference-file-item", { current: n.value == d, selected: r.value.includes(d) }])
|
|
4787
4787
|
}, [
|
|
4788
4788
|
z(" v-das-tooltip "),
|
|
4789
|
-
v("div",
|
|
4789
|
+
v("div", sa, [
|
|
4790
4790
|
v(
|
|
4791
4791
|
"span",
|
|
4792
|
-
|
|
4792
|
+
la,
|
|
4793
4793
|
U(d + 1) + ".",
|
|
4794
4794
|
1
|
|
4795
4795
|
/* TEXT */
|
|
@@ -4800,7 +4800,7 @@ const Pi = Fu.post("/chat/chat-feedback"), ji = { class: "das-ai-select-containe
|
|
|
4800
4800
|
}),
|
|
4801
4801
|
v(
|
|
4802
4802
|
"span",
|
|
4803
|
-
|
|
4803
|
+
da,
|
|
4804
4804
|
U(l.name),
|
|
4805
4805
|
1
|
|
4806
4806
|
/* TEXT */
|
|
@@ -4809,12 +4809,12 @@ const Pi = Fu.post("/chat/chat-feedback"), ji = { class: "das-ai-select-containe
|
|
|
4809
4809
|
z(" v-das-tooltip "),
|
|
4810
4810
|
v(
|
|
4811
4811
|
"div",
|
|
4812
|
-
|
|
4812
|
+
fa,
|
|
4813
4813
|
U(l.summary),
|
|
4814
4814
|
1
|
|
4815
4815
|
/* TEXT */
|
|
4816
4816
|
)
|
|
4817
|
-
], 10,
|
|
4817
|
+
], 10, ca))),
|
|
4818
4818
|
256
|
|
4819
4819
|
/* UNKEYED_FRAGMENT */
|
|
4820
4820
|
))
|
|
@@ -4826,13 +4826,13 @@ const Pi = Fu.post("/chat/chat-feedback"), ji = { class: "das-ai-select-containe
|
|
|
4826
4826
|
])
|
|
4827
4827
|
]));
|
|
4828
4828
|
}
|
|
4829
|
-
}),
|
|
4829
|
+
}), ba = /* @__PURE__ */ cu(pa, [["__scopeId", "data-v-2e2cf904"]]), ma = lt(() => import("./index-IzGl26KU.js")), xa = () => {
|
|
4830
4830
|
const u = N(null), e = N(!1);
|
|
4831
4831
|
let t = "", n = "";
|
|
4832
4832
|
return {
|
|
4833
|
-
deletaDialogVue: () => dt(
|
|
4833
|
+
deletaDialogVue: () => dt(ma, {
|
|
4834
4834
|
ref: u,
|
|
4835
|
-
onConfirm: (
|
|
4835
|
+
onConfirm: (a) => {
|
|
4836
4836
|
n = !0, e.value = !1;
|
|
4837
4837
|
},
|
|
4838
4838
|
onCancel: () => {
|
|
@@ -4842,34 +4842,34 @@ const Pi = Fu.post("/chat/chat-feedback"), ji = { class: "das-ai-select-containe
|
|
|
4842
4842
|
n = !1, e.value = !1;
|
|
4843
4843
|
}
|
|
4844
4844
|
}),
|
|
4845
|
-
showDeleteDialog: async (
|
|
4845
|
+
showDeleteDialog: async (a) => {
|
|
4846
4846
|
var i;
|
|
4847
|
-
return t =
|
|
4847
|
+
return t = a || I("删除后将无法恢复"), (i = u.value) == null || i.open(t), e.value = !0, new Promise((c, s) => {
|
|
4848
4848
|
const l = bu(() => e.value, (d) => {
|
|
4849
|
-
n ?
|
|
4849
|
+
n ? c(n) : s(n), l();
|
|
4850
4850
|
});
|
|
4851
4851
|
});
|
|
4852
4852
|
},
|
|
4853
4853
|
deleteDialogRef: u
|
|
4854
4854
|
};
|
|
4855
|
-
},
|
|
4855
|
+
}, _a = { class: "das-ai-history-dialogue" }, ga = { class: "history-dialogue-header" }, ka = { class: "history-dialogue-header-left" }, va = { style: { "margin-left": "16px" } }, ya = {
|
|
4856
4856
|
class: "history-dialogue-list",
|
|
4857
4857
|
id: "history-dialogue-scrollbox"
|
|
4858
|
-
},
|
|
4858
|
+
}, Aa = {
|
|
4859
4859
|
key: 1,
|
|
4860
4860
|
class: "history-dialogue-scroll"
|
|
4861
|
-
},
|
|
4861
|
+
}, Ca = ["onClick"], Da = { class: "item-title" }, Ea = { class: "item-bottom" }, Fa = { class: "item-bottom-left" }, wa = { class: "item-type" }, Sa = {
|
|
4862
4862
|
name: "history"
|
|
4863
|
-
},
|
|
4864
|
-
...
|
|
4863
|
+
}, Ia = /* @__PURE__ */ au({
|
|
4864
|
+
...Sa,
|
|
4865
4865
|
props: {
|
|
4866
4866
|
chatId: { default: "" }
|
|
4867
4867
|
},
|
|
4868
4868
|
emits: ["back", "record"],
|
|
4869
4869
|
setup(u, { emit: e }) {
|
|
4870
|
-
const t = N(!1), { deletaDialogVue: n, showDeleteDialog: r } =
|
|
4871
|
-
|
|
4872
|
-
},
|
|
4870
|
+
const t = N(!1), { deletaDialogVue: n, showDeleteDialog: r } = xa(), o = N([]), a = e, i = () => {
|
|
4871
|
+
a("back");
|
|
4872
|
+
}, c = (k) => {
|
|
4873
4873
|
let x = k.replace(/^(#+)\s/gm, "");
|
|
4874
4874
|
return x = x.replace(/^([-*+]|\d+\.)\s/gm, ""), x = x.replace(/([*_]{1,2})(.*?)\1/g, "$2"), x = x.replace(/```[\s\S]*?```/g, ""), x = x.replace(/`(.*?)`/g, "$1"), x = x.replace(/\[([^\]]+)\]\([^)]+\)/g, "$1"), x = x.replace(/!\[([^\]]+)\]\([^)]+\)/g, "$1"), x = x.replace(/<[^>]*>/g, ""), x;
|
|
4875
4875
|
}, s = (k) => {
|
|
@@ -4882,10 +4882,10 @@ const Pi = Fu.post("/chat/chat-feedback"), ji = { class: "das-ai-select-containe
|
|
|
4882
4882
|
pageSize: _.value
|
|
4883
4883
|
}, [x, p] = await Ni(k).run();
|
|
4884
4884
|
t.value = !1, !x && (p.data && p.data.length && p.data.forEach((m) => {
|
|
4885
|
-
m.time = m.createdAt ? ne(m.createdAt).format("YYYY-MM-DD HH:mm:ss") : "", m.answerText = m.answer ?
|
|
4885
|
+
m.time = m.createdAt ? ne(m.createdAt).format("YYYY-MM-DD HH:mm:ss") : "", m.answerText = m.answer ? c(m.answer) : "";
|
|
4886
4886
|
}), l.value == 1 ? o.value = p.data : o.value = o.value.concat(p.data), d.value = p.totalPage);
|
|
4887
4887
|
}, f = (k) => k.searchType == 0 ? I("物联应用") : k.searchType == 1 ? I("知识库") : k.searchType == 2 ? I("全网") : I("全部"), g = async (k) => {
|
|
4888
|
-
|
|
4888
|
+
a("record", k);
|
|
4889
4889
|
}, A = async (k) => {
|
|
4890
4890
|
await r(I("删除后,该会话将不可恢复,")), k.id, t.value = !0;
|
|
4891
4891
|
const [x, p] = await qi({ id: k.id }).run();
|
|
@@ -4906,9 +4906,9 @@ const Pi = Fu.post("/chat/chat-feedback"), ji = { class: "das-ai-select-containe
|
|
|
4906
4906
|
};
|
|
4907
4907
|
return Ou(() => {
|
|
4908
4908
|
h();
|
|
4909
|
-
}), (k, x) => Cu((F(), P("div",
|
|
4910
|
-
v("div",
|
|
4911
|
-
v("div",
|
|
4909
|
+
}), (k, x) => Cu((F(), P("div", _a, [
|
|
4910
|
+
v("div", ga, [
|
|
4911
|
+
v("div", ka, [
|
|
4912
4912
|
j(y(Te), {
|
|
4913
4913
|
onClick: i,
|
|
4914
4914
|
size: "large",
|
|
@@ -4916,7 +4916,7 @@ const Pi = Fu.post("/chat/chat-feedback"), ji = { class: "das-ai-select-containe
|
|
|
4916
4916
|
}),
|
|
4917
4917
|
v(
|
|
4918
4918
|
"span",
|
|
4919
|
-
|
|
4919
|
+
va,
|
|
4920
4920
|
U(y(I)("历史会话")),
|
|
4921
4921
|
1
|
|
4922
4922
|
/* TEXT */
|
|
@@ -4946,13 +4946,13 @@ const Pi = Fu.post("/chat/chat-feedback"), ji = { class: "das-ai-select-containe
|
|
|
4946
4946
|
/* STABLE */
|
|
4947
4947
|
})
|
|
4948
4948
|
]),
|
|
4949
|
-
v("div",
|
|
4949
|
+
v("div", ya, [
|
|
4950
4950
|
j(y(Ie), {
|
|
4951
4951
|
"wrap-class": "das-ai-wrap-class",
|
|
4952
4952
|
onScroll: s
|
|
4953
4953
|
}, {
|
|
4954
4954
|
default: W(() => [
|
|
4955
|
-
o.value.length ? (F(), P("div",
|
|
4955
|
+
o.value.length ? (F(), P("div", Aa, [
|
|
4956
4956
|
(F(!0), P(
|
|
4957
4957
|
Lu,
|
|
4958
4958
|
null,
|
|
@@ -4962,7 +4962,7 @@ const Pi = Fu.post("/chat/chat-feedback"), ji = { class: "das-ai-select-containe
|
|
|
4962
4962
|
}, [
|
|
4963
4963
|
v(
|
|
4964
4964
|
"div",
|
|
4965
|
-
|
|
4965
|
+
Da,
|
|
4966
4966
|
U((p == null ? void 0 : p.queryTitle) || p.title),
|
|
4967
4967
|
1
|
|
4968
4968
|
/* TEXT */
|
|
@@ -4976,11 +4976,11 @@ const Pi = Fu.post("/chat/chat-feedback"), ji = { class: "das-ai-select-containe
|
|
|
4976
4976
|
text: p.answerText,
|
|
4977
4977
|
row: "2"
|
|
4978
4978
|
}, null, 8, ["text"]),
|
|
4979
|
-
v("div",
|
|
4980
|
-
v("div",
|
|
4979
|
+
v("div", Ea, [
|
|
4980
|
+
v("div", Fa, [
|
|
4981
4981
|
v(
|
|
4982
4982
|
"div",
|
|
4983
|
-
|
|
4983
|
+
wa,
|
|
4984
4984
|
U(f(p)),
|
|
4985
4985
|
1
|
|
4986
4986
|
/* TEXT */
|
|
@@ -5023,7 +5023,7 @@ const Pi = Fu.post("/chat/chat-feedback"), ji = { class: "das-ai-select-containe
|
|
|
5023
5023
|
/* DYNAMIC_SLOTS */
|
|
5024
5024
|
)
|
|
5025
5025
|
])
|
|
5026
|
-
], 8,
|
|
5026
|
+
], 8, Ca))),
|
|
5027
5027
|
256
|
|
5028
5028
|
/* UNKEYED_FRAGMENT */
|
|
5029
5029
|
))
|
|
@@ -5038,7 +5038,7 @@ const Pi = Fu.post("/chat/chat-feedback"), ji = { class: "das-ai-select-containe
|
|
|
5038
5038
|
[y(gt), t.value]
|
|
5039
5039
|
]);
|
|
5040
5040
|
}
|
|
5041
|
-
}),
|
|
5041
|
+
}), Ta = /* @__PURE__ */ cu(Ia, [["__scopeId", "data-v-8c5ac496"]]);
|
|
5042
5042
|
/*! js-cookie v3.0.5 | MIT */
|
|
5043
5043
|
function te(u) {
|
|
5044
5044
|
for (var e = 1; e < arguments.length; e++) {
|
|
@@ -5048,7 +5048,7 @@ function te(u) {
|
|
|
5048
5048
|
}
|
|
5049
5049
|
return u;
|
|
5050
5050
|
}
|
|
5051
|
-
var
|
|
5051
|
+
var za = {
|
|
5052
5052
|
read: function(u) {
|
|
5053
5053
|
return u[0] === '"' && (u = u.slice(1, -1)), u.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
|
|
5054
5054
|
},
|
|
@@ -5060,27 +5060,27 @@ var zc = {
|
|
|
5060
5060
|
}
|
|
5061
5061
|
};
|
|
5062
5062
|
function we(u, e) {
|
|
5063
|
-
function t(r, o,
|
|
5063
|
+
function t(r, o, a) {
|
|
5064
5064
|
if (!(typeof document > "u")) {
|
|
5065
|
-
|
|
5065
|
+
a = te({}, e, a), typeof a.expires == "number" && (a.expires = new Date(Date.now() + a.expires * 864e5)), a.expires && (a.expires = a.expires.toUTCString()), r = encodeURIComponent(r).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
|
|
5066
5066
|
var i = "";
|
|
5067
|
-
for (var
|
|
5068
|
-
c
|
|
5067
|
+
for (var c in a)
|
|
5068
|
+
a[c] && (i += "; " + c, a[c] !== !0 && (i += "=" + a[c].split(";")[0]));
|
|
5069
5069
|
return document.cookie = r + "=" + u.write(o, r) + i;
|
|
5070
5070
|
}
|
|
5071
5071
|
}
|
|
5072
5072
|
function n(r) {
|
|
5073
5073
|
if (!(typeof document > "u" || arguments.length && !r)) {
|
|
5074
|
-
for (var o = document.cookie ? document.cookie.split("; ") : [],
|
|
5075
|
-
var
|
|
5074
|
+
for (var o = document.cookie ? document.cookie.split("; ") : [], a = {}, i = 0; i < o.length; i++) {
|
|
5075
|
+
var c = o[i].split("="), s = c.slice(1).join("=");
|
|
5076
5076
|
try {
|
|
5077
|
-
var l = decodeURIComponent(
|
|
5078
|
-
if (
|
|
5077
|
+
var l = decodeURIComponent(c[0]);
|
|
5078
|
+
if (a[l] = u.read(s, l), r === l)
|
|
5079
5079
|
break;
|
|
5080
5080
|
} catch {
|
|
5081
5081
|
}
|
|
5082
5082
|
}
|
|
5083
|
-
return r ?
|
|
5083
|
+
return r ? a[r] : a;
|
|
5084
5084
|
}
|
|
5085
5085
|
}
|
|
5086
5086
|
return Object.create(
|
|
@@ -5109,27 +5109,27 @@ function we(u, e) {
|
|
|
5109
5109
|
}
|
|
5110
5110
|
);
|
|
5111
5111
|
}
|
|
5112
|
-
var
|
|
5113
|
-
const
|
|
5114
|
-
let u = 0, e = -1, t = [], n = "", r = -1, o = !1,
|
|
5115
|
-
const
|
|
5116
|
-
const C = re() ? re() :
|
|
5112
|
+
var Na = we(za, { path: "/" });
|
|
5113
|
+
const La = () => {
|
|
5114
|
+
let u = 0, e = -1, t = [], n = "", r = -1, o = !1, a = "", i = "";
|
|
5115
|
+
const c = N(!1), s = N(), l = N(!1), d = N(""), _ = () => {
|
|
5116
|
+
const C = re() ? re() : Na.get("accessToken"), k = bt().id, x = {};
|
|
5117
5117
|
return C && (x.token = C), k && (x.project = k), x;
|
|
5118
5118
|
}, h = (C = 0, k, x) => {
|
|
5119
5119
|
if (n = k, r == 1 && C == 1 && i) {
|
|
5120
|
-
i.send(JSON.stringify({ text: x, taskId:
|
|
5120
|
+
i.send(JSON.stringify({ text: x, taskId: a, taskType: C, overFlag: !n.loading, ..._() }));
|
|
5121
5121
|
return;
|
|
5122
5122
|
}
|
|
5123
5123
|
n.audioStatus = "generated", i = new S0({
|
|
5124
5124
|
url: "/socket/api/speech/v1/tts",
|
|
5125
5125
|
reconnectWhenClose: !0,
|
|
5126
5126
|
opened: () => {
|
|
5127
|
-
|
|
5127
|
+
a = Vu(), C == 0 && i.send(JSON.stringify({ text: n.content, taskId: a, taskType: C, ..._() })), C == 1 && i.send(JSON.stringify({ text: n.content, taskId: a, taskType: C, overFlag: !n.loading, ..._() })), r = C;
|
|
5128
5128
|
},
|
|
5129
5129
|
message: async (p) => {
|
|
5130
|
-
if ((p == null ? void 0 : p.taskId) ==
|
|
5130
|
+
if ((p == null ? void 0 : p.taskId) == a) {
|
|
5131
5131
|
if (!(p != null && p.baseData)) return;
|
|
5132
|
-
p != null && p.baseData && t.push(p == null ? void 0 : p.baseData), r == 1 && (o = p.overFlag), e < 0 && (r == 0 && (u = p.totalCount, e = 0, n.audioStatus = "loading", d.value = `data:audio/mpeg;base64,${p == null ? void 0 : p.baseData}`, l.value = !0, A()), r == 1 && b.autoAudio && (e = 0, n.audioStatus = "loading", d.value = `data:audio/mpeg;base64,${p == null ? void 0 : p.baseData}`, l.value = !0, n.havePlayAutoAudio = !0, A())),
|
|
5132
|
+
p != null && p.baseData && t.push(p == null ? void 0 : p.baseData), r == 1 && (o = p.overFlag), e < 0 && (r == 0 && (u = p.totalCount, e = 0, n.audioStatus = "loading", d.value = `data:audio/mpeg;base64,${p == null ? void 0 : p.baseData}`, l.value = !0, A()), r == 1 && b.autoAudio && (e = 0, n.audioStatus = "loading", d.value = `data:audio/mpeg;base64,${p == null ? void 0 : p.baseData}`, l.value = !0, n.havePlayAutoAudio = !0, A())), c.value && (c.value = !1);
|
|
5133
5133
|
}
|
|
5134
5134
|
},
|
|
5135
5135
|
error: (p) => {
|
|
@@ -5140,7 +5140,7 @@ const Lc = () => {
|
|
|
5140
5140
|
});
|
|
5141
5141
|
}, f = () => {
|
|
5142
5142
|
var C;
|
|
5143
|
-
r = -1, e = -1, u = 0, o = !1, t = [], i && i.disconnect(), i = "", (C = s.value) == null || C.pause(), d.value = "",
|
|
5143
|
+
r = -1, e = -1, u = 0, o = !1, t = [], i && i.disconnect(), i = "", (C = s.value) == null || C.pause(), d.value = "", c.value = !1, l.value = !1, n && (n.audioStatus = "normal", n = "");
|
|
5144
5144
|
}, g = () => {
|
|
5145
5145
|
if (r == 0) {
|
|
5146
5146
|
const C = e + 1;
|
|
@@ -5149,7 +5149,7 @@ const Lc = () => {
|
|
|
5149
5149
|
e++, d.value = `data:audio/mpeg;base64,${t[e]}`;
|
|
5150
5150
|
return;
|
|
5151
5151
|
} else {
|
|
5152
|
-
|
|
5152
|
+
c.value = !0, bu(c, (k) => {
|
|
5153
5153
|
g();
|
|
5154
5154
|
});
|
|
5155
5155
|
return;
|
|
@@ -5168,7 +5168,7 @@ const Lc = () => {
|
|
|
5168
5168
|
e++, d.value = `data:audio/mpeg;base64,${t[e]}`;
|
|
5169
5169
|
return;
|
|
5170
5170
|
} else {
|
|
5171
|
-
|
|
5171
|
+
c.value = !0, bu(c, (k) => {
|
|
5172
5172
|
g();
|
|
5173
5173
|
});
|
|
5174
5174
|
return;
|
|
@@ -5188,17 +5188,17 @@ const Lc = () => {
|
|
|
5188
5188
|
playAudio: h,
|
|
5189
5189
|
pauseAudio: f
|
|
5190
5190
|
};
|
|
5191
|
-
},
|
|
5191
|
+
}, Ba = { class: "das-ai-container" }, qa = {
|
|
5192
5192
|
key: 0,
|
|
5193
5193
|
class: "das-ai-index-mask"
|
|
5194
|
-
},
|
|
5194
|
+
}, Oa = { class: "ai-top" }, Ma = { class: "ai-top-left" }, Ra = { class: "ai-top-right" }, Pa = {
|
|
5195
5195
|
key: 1,
|
|
5196
5196
|
class: "das-ai-current-box",
|
|
5197
5197
|
id: "das-ai-chat-scrollbox"
|
|
5198
|
-
},
|
|
5198
|
+
}, ja = {
|
|
5199
5199
|
key: 3,
|
|
5200
5200
|
class: "das-ai-chat-new"
|
|
5201
|
-
},
|
|
5201
|
+
}, Ha = { class: "das-ai-chat-input-box" }, $a = { class: "sendervue-box" }, Va = ["src", "muted"], Ua = "/api/llm/vector/v1/large-model/chat", Za = /* @__PURE__ */ au({
|
|
5202
5202
|
__name: "index",
|
|
5203
5203
|
props: {
|
|
5204
5204
|
platformInitNextTick: {}
|
|
@@ -5207,11 +5207,11 @@ const Lc = () => {
|
|
|
5207
5207
|
setup(u, { expose: e, emit: t }) {
|
|
5208
5208
|
const n = u, r = t;
|
|
5209
5209
|
ne.extend(d0), ne.extend(f0);
|
|
5210
|
-
const o = N(0),
|
|
5210
|
+
const o = N(0), a = N(0), i = N(""), c = N(), s = N(""), l = N(null), d = N(!1), _ = N(null), h = N([
|
|
5211
5211
|
{ id: "1", text: I("介绍达实公司及核心产品") },
|
|
5212
5212
|
{ id: "2", text: I("介绍达实公司行业案例") },
|
|
5213
5213
|
{ id: "3", text: I("预订上午9:00的会议室") }
|
|
5214
|
-
]), f = N({}), g = N([]), A = N(["A100", "A002", "A003", "A005"]), C = N(!1), k = N(!1), { folderDialogVue: x, showFolderDialog: p } = z0(), { aiAudioRef: m, isAudioplay: L, audioSrc: T, playAudio: H, pauseAudio: R } =
|
|
5214
|
+
]), f = N({}), g = N([]), A = N(["A100", "A002", "A003", "A005"]), C = N(!1), k = N(!1), { folderDialogVue: x, showFolderDialog: p } = z0(), { aiAudioRef: m, isAudioplay: L, audioSrc: T, playAudio: H, pauseAudio: R } = La();
|
|
5215
5215
|
let K = 0;
|
|
5216
5216
|
Ou(async () => {
|
|
5217
5217
|
n != null && n.platformInitNextTick && await (n == null ? void 0 : n.platformInitNextTick()), yt(!0), Uu();
|
|
@@ -5311,7 +5311,7 @@ const Lc = () => {
|
|
|
5311
5311
|
intention: Z.intention,
|
|
5312
5312
|
showSave: !A.value.includes(Z.intention)
|
|
5313
5313
|
}));
|
|
5314
|
-
}), vu = B == null ? void 0 : B.some((Z) => Z.feedback == 1)), q(), g.value = su,
|
|
5314
|
+
}), vu = B == null ? void 0 : B.some((Z) => Z.feedback == 1)), q(), g.value = su, a.value = J, b.searchType = V || "1", V == "1" && (b.folderId = tu, tu ? pe(tu) : b.folderName = ""), Uu(), fu(), d.value = !1, b.isSplitOut = vu;
|
|
5315
5315
|
} else
|
|
5316
5316
|
d.value = !1;
|
|
5317
5317
|
}, pe = async (D) => {
|
|
@@ -5319,7 +5319,7 @@ const Lc = () => {
|
|
|
5319
5319
|
const [E, B] = await Mi({ id: D }).run();
|
|
5320
5320
|
E || B && (b.folderName = B.folderName);
|
|
5321
5321
|
}, q = () => {
|
|
5322
|
-
_.value = null, b.loading = !1, R(), o.value = 0, g.value = [], l.value = null, C.value = !1, k.value = !1,
|
|
5322
|
+
_.value = null, b.loading = !1, R(), o.value = 0, g.value = [], l.value = null, C.value = !1, k.value = !1, a.value = null, N0();
|
|
5323
5323
|
}, S = (D) => {
|
|
5324
5324
|
D == "addNew" && q(), D == "scrollBom" && (k.value = !1, fu());
|
|
5325
5325
|
}, w = () => {
|
|
@@ -5364,7 +5364,7 @@ const Lc = () => {
|
|
|
5364
5364
|
if (D == "reference" && (l.value = E, s.value = "reference"), D == "play" && (E.data.audioStatus == "normal" ? (R(), H(0, E.data)) : (l.value && (l.value.audioStatus = "normal"), R())), D == "preview" && Su(E), D == "splitout") {
|
|
5365
5365
|
b.isSplitOut = !b.isSplitOut;
|
|
5366
5366
|
const V = {
|
|
5367
|
-
chatId:
|
|
5367
|
+
chatId: a.value + "",
|
|
5368
5368
|
queryId: ((J = l.value) == null ? void 0 : J.queryId) || (E == null ? void 0 : E.queryId),
|
|
5369
5369
|
feedback: Number(b.isSplitOut)
|
|
5370
5370
|
}, [tu] = await Pi(V).run();
|
|
@@ -5378,7 +5378,7 @@ const Lc = () => {
|
|
|
5378
5378
|
}, Su = (D) => {
|
|
5379
5379
|
i.value = D, Ce(() => {
|
|
5380
5380
|
var E;
|
|
5381
|
-
(E =
|
|
5381
|
+
(E = c.value) == null || E.preview();
|
|
5382
5382
|
});
|
|
5383
5383
|
}, He = (D) => {
|
|
5384
5384
|
R(), s.value = "history";
|
|
@@ -5397,7 +5397,7 @@ const Lc = () => {
|
|
|
5397
5397
|
isGlobalSearch: "0"
|
|
5398
5398
|
//是否搜索全网(0否1是)
|
|
5399
5399
|
};
|
|
5400
|
-
return
|
|
5400
|
+
return a.value || (a.value = (/* @__PURE__ */ new Date()).getTime()), B.chatId = a.value, b.searchType == "0" && (B.isInnerSearch = "1"), b.searchType == "1" && (B.isKnowledgeSearch = "1", B.foldId = b.folderId == b.allKnowId ? "" : b.folderId), b.searchType == "2" && (B.isGlobalSearch = "1"), JSON.stringify(B);
|
|
5401
5401
|
}, Wt = () => {
|
|
5402
5402
|
const D = {
|
|
5403
5403
|
// Authorization: `Bearer ${getToken()}`,
|
|
@@ -5409,7 +5409,7 @@ const Lc = () => {
|
|
|
5409
5409
|
let be = "";
|
|
5410
5410
|
const Ve = (D, E = "") => {
|
|
5411
5411
|
b.loading = !0, fu();
|
|
5412
|
-
const B = new nu(`${pt().baseURL}${
|
|
5412
|
+
const B = new nu(`${pt().baseURL}${Ua}?project=${bt().id}`, {
|
|
5413
5413
|
method: "POST",
|
|
5414
5414
|
// 使用 POST 请求
|
|
5415
5415
|
headers: Wt(),
|
|
@@ -5448,7 +5448,7 @@ const Lc = () => {
|
|
|
5448
5448
|
if (l.value && l.value.loading && l.value.queryId && l.value.content) {
|
|
5449
5449
|
let D = l.value.file ? l.value.file.filter((J) => J.type != "url") : [];
|
|
5450
5450
|
const E = {
|
|
5451
|
-
chat_id:
|
|
5451
|
+
chat_id: a.value,
|
|
5452
5452
|
//会话id
|
|
5453
5453
|
content: l.value.content,
|
|
5454
5454
|
//对话内容
|
|
@@ -5499,30 +5499,30 @@ const Lc = () => {
|
|
|
5499
5499
|
openNewChat: q
|
|
5500
5500
|
}), (D, E) => {
|
|
5501
5501
|
const B = u0("dasLoading");
|
|
5502
|
-
return Cu((F(), P("div",
|
|
5503
|
-
s.value ? (F(), P("div",
|
|
5504
|
-
s.value == "reference" ? (F(), Y(
|
|
5502
|
+
return Cu((F(), P("div", Ba, [
|
|
5503
|
+
s.value ? (F(), P("div", qa, [
|
|
5504
|
+
s.value == "reference" ? (F(), Y(ba, {
|
|
5505
5505
|
key: 0,
|
|
5506
5506
|
item: l.value,
|
|
5507
5507
|
onPreview: Su,
|
|
5508
5508
|
onBack: $e,
|
|
5509
5509
|
onToApp: eu
|
|
5510
5510
|
}, null, 8, ["item"])) : z("v-if", !0),
|
|
5511
|
-
s.value == "history" ? (F(), Y(
|
|
5511
|
+
s.value == "history" ? (F(), Y(Ta, {
|
|
5512
5512
|
key: 1,
|
|
5513
|
-
chatId:
|
|
5513
|
+
chatId: a.value,
|
|
5514
5514
|
onRecord: he,
|
|
5515
5515
|
onBack: $e
|
|
5516
5516
|
}, null, 8, ["chatId"])) : z("v-if", !0)
|
|
5517
5517
|
])) : z("v-if", !0),
|
|
5518
|
-
v("div",
|
|
5519
|
-
v("div",
|
|
5520
|
-
j(
|
|
5518
|
+
v("div", Oa, [
|
|
5519
|
+
v("div", Ma, [
|
|
5520
|
+
j(ta, {
|
|
5521
5521
|
onBack: q,
|
|
5522
5522
|
listLength: g.value.length
|
|
5523
5523
|
}, null, 8, ["listLength"])
|
|
5524
5524
|
]),
|
|
5525
|
-
v("div",
|
|
5525
|
+
v("div", Ra, [
|
|
5526
5526
|
j(y(gu), {
|
|
5527
5527
|
placement: "top",
|
|
5528
5528
|
type: "button"
|
|
@@ -5542,12 +5542,12 @@ const Lc = () => {
|
|
|
5542
5542
|
style: { "margin-right": "16px" },
|
|
5543
5543
|
class: "ai-top-right-icon"
|
|
5544
5544
|
}, [
|
|
5545
|
-
y(b).autoAudio ? (F(), Y(y(
|
|
5545
|
+
y(b).autoAudio ? (F(), Y(y(a0), {
|
|
5546
5546
|
key: 0,
|
|
5547
5547
|
customSize: "20",
|
|
5548
5548
|
iconColor: "#006DF1"
|
|
5549
5549
|
})) : z("v-if", !0),
|
|
5550
|
-
y(b).autoAudio ? z("v-if", !0) : (F(), Y(y(
|
|
5550
|
+
y(b).autoAudio ? z("v-if", !0) : (F(), Y(y(c0), {
|
|
5551
5551
|
key: 1,
|
|
5552
5552
|
customSize: "20",
|
|
5553
5553
|
iconColor: "#333333"
|
|
@@ -5586,7 +5586,7 @@ const Lc = () => {
|
|
|
5586
5586
|
})
|
|
5587
5587
|
])
|
|
5588
5588
|
]),
|
|
5589
|
-
g.value.length ? (F(), P("div",
|
|
5589
|
+
g.value.length ? (F(), P("div", Pa, [
|
|
5590
5590
|
j(y(Ie), {
|
|
5591
5591
|
"wrap-class": "das-ai-wrap-class",
|
|
5592
5592
|
onScroll: fe
|
|
@@ -5607,7 +5607,7 @@ const Lc = () => {
|
|
|
5607
5607
|
onClick: O
|
|
5608
5608
|
}, null, 8, ["list"])),
|
|
5609
5609
|
z(' v-if="currentList.length && !dasAiData.loading" '),
|
|
5610
|
-
g.value.length ? (F(), P("div",
|
|
5610
|
+
g.value.length ? (F(), P("div", ja, [
|
|
5611
5611
|
E[0] || (E[0] = v(
|
|
5612
5612
|
"div",
|
|
5613
5613
|
{ class: "chat-new-top-mask" },
|
|
@@ -5618,7 +5618,7 @@ const Lc = () => {
|
|
|
5618
5618
|
j(gi, { onAddNewEmit: S })
|
|
5619
5619
|
])) : z("v-if", !0),
|
|
5620
5620
|
z(' :class="{ full: !currentList.length }" '),
|
|
5621
|
-
v("div",
|
|
5621
|
+
v("div", Ha, [
|
|
5622
5622
|
z(` <div v-if="!currentList.length" class="new-content">\r
|
|
5623
5623
|
<div class="new-content-top">\r
|
|
5624
5624
|
<div class="new-content-img"><img :src="dasImg" /></div>\r
|
|
@@ -5630,7 +5630,7 @@ const Lc = () => {
|
|
|
5630
5630
|
</div>\r
|
|
5631
5631
|
</div> `),
|
|
5632
5632
|
z(' v-show="!dasAiData.loading" '),
|
|
5633
|
-
v("div", $
|
|
5633
|
+
v("div", $a, [
|
|
5634
5634
|
j(pi, {
|
|
5635
5635
|
isNew: !g.value.length,
|
|
5636
5636
|
onSenderEmit: M
|
|
@@ -5652,7 +5652,7 @@ const Lc = () => {
|
|
|
5652
5652
|
j(y(x)),
|
|
5653
5653
|
j(y(l0), {
|
|
5654
5654
|
ref_key: "dasPreviewRef",
|
|
5655
|
-
ref:
|
|
5655
|
+
ref: c,
|
|
5656
5656
|
"file-url": i.value
|
|
5657
5657
|
}, null, 8, ["file-url"]),
|
|
5658
5658
|
v("audio", {
|
|
@@ -5662,20 +5662,20 @@ const Lc = () => {
|
|
|
5662
5662
|
ref: m,
|
|
5663
5663
|
muted: !y(L),
|
|
5664
5664
|
autoplay: ""
|
|
5665
|
-
}, null, 8,
|
|
5665
|
+
}, null, 8, Va)
|
|
5666
5666
|
])), [
|
|
5667
5667
|
[B, d.value]
|
|
5668
5668
|
]);
|
|
5669
5669
|
};
|
|
5670
5670
|
}
|
|
5671
|
-
}),
|
|
5671
|
+
}), Ga = /* @__PURE__ */ cu(Za, [["__scopeId", "data-v-25e52ed7"]]), Ka = { class: "das-ai-panel-div 2" }, Ja = { class: "das-ai-panel-coantainer-header" }, Wa = { class: "das-ai-panel-header-title" }, Qa = { class: "das-ai-panel-coantainer-body" }, Xa = /* @__PURE__ */ au({
|
|
5672
5672
|
__name: "index",
|
|
5673
5673
|
props: {
|
|
5674
5674
|
platformInitNextTick: {}
|
|
5675
5675
|
},
|
|
5676
5676
|
emits: ["confirm", "toApp", "getStatus"],
|
|
5677
5677
|
setup(u, { expose: e, emit: t }) {
|
|
5678
|
-
const n = t, r = r0(), o = N(),
|
|
5678
|
+
const n = t, r = r0(), o = N(), a = N(0), i = N(), c = N(!1);
|
|
5679
5679
|
bu(
|
|
5680
5680
|
() => r == null ? void 0 : r.path,
|
|
5681
5681
|
(m, L) => {
|
|
@@ -5685,8 +5685,8 @@ const Lc = () => {
|
|
|
5685
5685
|
setTimeout(() => {
|
|
5686
5686
|
Ce(() => {
|
|
5687
5687
|
let m = document.getElementsByClassName("das-web-app-header")[0];
|
|
5688
|
-
m && (
|
|
5689
|
-
|
|
5688
|
+
m && (a.value = m.clientHeight), m && !i.value && (i.value = I0((L) => {
|
|
5689
|
+
a.value = L.height;
|
|
5690
5690
|
}, m));
|
|
5691
5691
|
});
|
|
5692
5692
|
}, 1e3);
|
|
@@ -5698,10 +5698,10 @@ const Lc = () => {
|
|
|
5698
5698
|
n("toApp", m);
|
|
5699
5699
|
}, l = () => {
|
|
5700
5700
|
var m;
|
|
5701
|
-
|
|
5701
|
+
c.value || (c.value = !0, (m = o.value) == null || m.showFn(), n("getStatus", !0));
|
|
5702
5702
|
}, d = () => {
|
|
5703
5703
|
var m;
|
|
5704
|
-
|
|
5704
|
+
c.value = !1, (m = o.value) == null || m.hideFn(), n("getStatus", !1);
|
|
5705
5705
|
};
|
|
5706
5706
|
return e({
|
|
5707
5707
|
setAutoAudio: (m) => {
|
|
@@ -5739,7 +5739,7 @@ const Lc = () => {
|
|
|
5739
5739
|
},
|
|
5740
5740
|
openPanel: l,
|
|
5741
5741
|
closePanel: d
|
|
5742
|
-
}), (m, L) => (F(), P("div",
|
|
5742
|
+
}), (m, L) => (F(), P("div", Ka, [
|
|
5743
5743
|
j(e0, {
|
|
5744
5744
|
name: "das-ai-panel",
|
|
5745
5745
|
persisted: ""
|
|
@@ -5749,13 +5749,13 @@ const Lc = () => {
|
|
|
5749
5749
|
"div",
|
|
5750
5750
|
{
|
|
5751
5751
|
class: "das-ai-panel-coantainer",
|
|
5752
|
-
style: t0({ top: `${
|
|
5752
|
+
style: t0({ top: `${a.value}px` })
|
|
5753
5753
|
},
|
|
5754
5754
|
[
|
|
5755
|
-
v("div",
|
|
5755
|
+
v("div", Ja, [
|
|
5756
5756
|
v(
|
|
5757
5757
|
"div",
|
|
5758
|
-
|
|
5758
|
+
Wa,
|
|
5759
5759
|
U(y(I)("AI助手")),
|
|
5760
5760
|
1
|
|
5761
5761
|
/* TEXT */
|
|
@@ -5770,8 +5770,8 @@ const Lc = () => {
|
|
|
5770
5770
|
})
|
|
5771
5771
|
])
|
|
5772
5772
|
]),
|
|
5773
|
-
v("div",
|
|
5774
|
-
j(
|
|
5773
|
+
v("div", Qa, [
|
|
5774
|
+
j(Ga, {
|
|
5775
5775
|
platformInitNextTick: m.platformInitNextTick,
|
|
5776
5776
|
ref_key: "dasAiVueRef",
|
|
5777
5777
|
ref: o,
|
|
@@ -5782,7 +5782,7 @@ const Lc = () => {
|
|
|
5782
5782
|
4
|
|
5783
5783
|
/* STYLE */
|
|
5784
5784
|
), [
|
|
5785
|
-
[$u,
|
|
5785
|
+
[$u, c.value]
|
|
5786
5786
|
])
|
|
5787
5787
|
]),
|
|
5788
5788
|
_: 1
|
|
@@ -5809,100 +5809,108 @@ const Lc = () => {
|
|
|
5809
5809
|
</das-drawer>`)
|
|
5810
5810
|
]));
|
|
5811
5811
|
}
|
|
5812
|
-
}),
|
|
5813
|
-
AI助手: { "zh-CN": "AI助手", en: "AI Assistant", _appCode: "framework" },
|
|
5814
|
-
自动播报: { "zh-CN": "自动播报", en: "Auto Broadcast" },
|
|
5815
|
-
历史会话: { "zh-CN": "历史会话", en: "History Sessions" },
|
|
5816
|
-
"嗨!我是小达AI助手": { "zh-CN": "嗨!我是小达AI助手", en: "hi! i am the xiaoda AI assistant" },
|
|
5812
|
+
}), Ya = /* @__PURE__ */ cu(Xa, [["__scopeId", "data-v-694b3ee4"]]), uc = {
|
|
5813
|
+
AI助手: { "zh-CN": "AI助手", en: "AI Assistant", ar: "مساعد الذكاء الاصطناعي", _appCode: "framework" },
|
|
5814
|
+
自动播报: { "zh-CN": "自动播报", en: "Auto Broadcast", ar: "إذاعة تلقائية" },
|
|
5815
|
+
历史会话: { "zh-CN": "历史会话", en: "History Sessions", ar: "جلسات سابقة" },
|
|
5816
|
+
"嗨!我是小达AI助手": { "zh-CN": "嗨!我是小达AI助手", en: "hi! i am the xiaoda AI assistant", ar: "!مرحباً! أنا مساعد شياودا الذكي" },
|
|
5817
5817
|
"我可以帮你分析,写报告,调节设备,预订会议室,请把你的任务交给我吧~": {
|
|
5818
5818
|
"zh-CN": "我可以帮你分析,写报告,调节设备,预订会议室,请把你的任务交给我吧~",
|
|
5819
|
-
en: "I can help you analyze, write reports, adjust devices, book meeting rooms, please hand over your tasks to me~"
|
|
5819
|
+
en: "I can help you analyze, write reports, adjust devices, book meeting rooms, please hand over your tasks to me~",
|
|
5820
|
+
ar: "أستطيع مساعدتك في التحليل وكتابة التقارير وضبط الأجهزة وحجز قاعات الاجتماعات، يرجى تسليم مهامك لي~"
|
|
5820
5821
|
},
|
|
5821
|
-
"回答中…": { "zh-CN": "回答中…", en: "Responding…" },
|
|
5822
|
+
"回答中…": { "zh-CN": "回答中…", en: "Responding…", ar: "جارٍ الرد…" },
|
|
5822
5823
|
"内容由AI生成,无法完全保证真实,仅供参考": {
|
|
5823
5824
|
"zh-CN": "内容由AI生成,无法完全保证真实,仅供参考",
|
|
5824
|
-
en: "Content generated by AI, accuracy not guaranteed, for reference only"
|
|
5825
|
+
en: "Content generated by AI, accuracy not guaranteed, for reference only",
|
|
5826
|
+
ar: "المحتوى من إنشاء الذكاء الاصطناعي، لا يمكن ضمان صحته بالكامل، للرجوع فقط"
|
|
5825
5827
|
},
|
|
5826
|
-
介绍达实公司及核心产品: { "zh-CN": "介绍达实公司及核心产品", en: "Introduce das company and core products" },
|
|
5827
|
-
介绍达实公司行业案例: { "zh-CN": "介绍达实公司行业案例", en: "Introduce das company industry cases" },
|
|
5828
|
-
"预订上午9:00的会议室": { "zh-CN": "预订上午9:00的会议室", en: "Book a meeting room at 9:00 am" },
|
|
5829
|
-
连接错误: { "zh-CN": "连接错误", en: "Connection Failed" },
|
|
5830
|
-
保存成功: { "zh-CN": "保存成功", en: "Saved Successfully" },
|
|
5831
|
-
开启新对话: { "zh-CN": "开启新对话", en: "Start New Conversation" },
|
|
5832
|
-
更多: { "zh-CN": "更多", en: "More" },
|
|
5833
|
-
回答: { "zh-CN": "回答", en: "Response" },
|
|
5834
|
-
已暂停生成: { "zh-CN": "已暂停生成", en: "Generation Paused" },
|
|
5835
|
-
重新生成: { "zh-CN": "重新生成", en: "Regenerate" },
|
|
5836
|
-
复制: { "zh-CN": "复制", en: "Copy" },
|
|
5837
|
-
已保存: { "zh-CN": "已保存", en: "Saved" },
|
|
5838
|
-
保存为知识库: { "zh-CN": "保存为知识库", en: "Save to Knowledge Base" },
|
|
5839
|
-
参考内容: { "zh-CN": "参考内容", en: "Reference Content" },
|
|
5840
|
-
"思考中…": { "zh-CN": "思考中…", en: "Thinking…" },
|
|
5841
|
-
已深度思考: { "zh-CN": "已深度思考", en: "Deep Thought Completed" },
|
|
5842
|
-
语音朗读: { "zh-CN": "语音朗读", en: "Voice Read" },
|
|
5843
|
-
停止朗读: { "zh-CN": "停止朗读", en: "Stop Reading" },
|
|
5844
|
-
复制成功: { "zh-CN": "复制成功", en: "Copied Successfully" },
|
|
5845
|
-
复制失败: { "zh-CN": "复制失败", en: "Copied Failed" },
|
|
5846
|
-
搜索文件夹名称: { "zh-CN": "搜索文件夹名称", en: "Search folder name" },
|
|
5847
|
-
取消: { "zh-CN": "取消", en: "Cancel" },
|
|
5848
|
-
确定: { "zh-CN": "确定", en: "Ok" },
|
|
5849
|
-
选择文件夹: { "zh-CN": "选择文件夹", en: "Select Folder" },
|
|
5850
|
-
请选择文件夹: { "zh-CN": "请选择文件夹", en: "Please select a folder" },
|
|
5851
|
-
删除后将无法恢复: { "zh-CN": "删除后将无法恢复", en: "Cannot be recovered after deletion" },
|
|
5852
|
-
"确定要删除吗?": { "zh-CN": "确定要删除吗?", en: "Are you sure you want to delete it?" },
|
|
5853
|
-
清空: { "zh-CN": "清空", en: "Clear" },
|
|
5854
|
-
删除: { "zh-CN": "删除", en: "Delete" },
|
|
5855
|
-
物联应用: { "zh-CN": "物联应用", en: "IoT Application" },
|
|
5856
|
-
知识库: { "zh-CN": "知识库", en: "Knowledge Base" },
|
|
5857
|
-
全网: { "zh-CN": "全网", en: "Entire Network" },
|
|
5858
|
-
全部: { "zh-CN": "全部", en: "All" },
|
|
5828
|
+
介绍达实公司及核心产品: { "zh-CN": "介绍达实公司及核心产品", en: "Introduce das company and core products", ar: "تعريف بشركة داس والمنتجات الأساسية" },
|
|
5829
|
+
介绍达实公司行业案例: { "zh-CN": "介绍达实公司行业案例", en: "Introduce das company industry cases", ar: "تعريف بحالات قطاع شركة داس" },
|
|
5830
|
+
"预订上午9:00的会议室": { "zh-CN": "预订上午9:00的会议室", en: "Book a meeting room at 9:00 am", ar: "حجز قاعة اجتماعات الساعة 9:00 صباحاً" },
|
|
5831
|
+
连接错误: { "zh-CN": "连接错误", en: "Connection Failed", ar: "فشل الاتصال" },
|
|
5832
|
+
保存成功: { "zh-CN": "保存成功", en: "Saved Successfully", ar: "تم الحفظ بنجاح" },
|
|
5833
|
+
开启新对话: { "zh-CN": "开启新对话", en: "Start New Conversation", ar: "بدء محادثة جديدة" },
|
|
5834
|
+
更多: { "zh-CN": "更多", en: "More", ar: "المزيد" },
|
|
5835
|
+
回答: { "zh-CN": "回答", en: "Response", ar: "الرد" },
|
|
5836
|
+
已暂停生成: { "zh-CN": "已暂停生成", en: "Generation Paused", ar: "تم إيقاف إنشاء المحتوى" },
|
|
5837
|
+
重新生成: { "zh-CN": "重新生成", en: "Regenerate", ar: "إعادة الإنشاء" },
|
|
5838
|
+
复制: { "zh-CN": "复制", en: "Copy", ar: "نسخ" },
|
|
5839
|
+
已保存: { "zh-CN": "已保存", en: "Saved", ar: "تم الحفظ" },
|
|
5840
|
+
保存为知识库: { "zh-CN": "保存为知识库", en: "Save to Knowledge Base", ar: "حفظ في قاعدة المعرفة" },
|
|
5841
|
+
参考内容: { "zh-CN": "参考内容", en: "Reference Content", ar: "محتوى مرجعي" },
|
|
5842
|
+
"思考中…": { "zh-CN": "思考中…", en: "Thinking…", ar: "جارٍ التفكير…" },
|
|
5843
|
+
已深度思考: { "zh-CN": "已深度思考", en: "Deep Thought Completed", ar: "اكتمل التفكير العميق" },
|
|
5844
|
+
语音朗读: { "zh-CN": "语音朗读", en: "Voice Read", ar: "قراءة صوتية" },
|
|
5845
|
+
停止朗读: { "zh-CN": "停止朗读", en: "Stop Reading", ar: "إيقاف القراءة" },
|
|
5846
|
+
复制成功: { "zh-CN": "复制成功", en: "Copied Successfully", ar: "تم النسخ بنجاح" },
|
|
5847
|
+
复制失败: { "zh-CN": "复制失败", en: "Copied Failed", ar: "فشل النسخ" },
|
|
5848
|
+
搜索文件夹名称: { "zh-CN": "搜索文件夹名称", en: "Search folder name", ar: "البحث عن اسم المجلد" },
|
|
5849
|
+
取消: { "zh-CN": "取消", en: "Cancel", ar: "إلغاء" },
|
|
5850
|
+
确定: { "zh-CN": "确定", en: "Ok", ar: "موافق" },
|
|
5851
|
+
选择文件夹: { "zh-CN": "选择文件夹", en: "Select Folder", ar: "اختيار مجلد" },
|
|
5852
|
+
请选择文件夹: { "zh-CN": "请选择文件夹", en: "Please select a folder", ar: "يرجى اختيار مجلد" },
|
|
5853
|
+
删除后将无法恢复: { "zh-CN": "删除后将无法恢复", en: "Cannot be recovered after deletion", ar: "لا يمكن الاسترداد بعد الحذف" },
|
|
5854
|
+
"确定要删除吗?": { "zh-CN": "确定要删除吗?", en: "Are you sure you want to delete it?", ar: "هل أنت متأكد أنك تريد حذفه؟" },
|
|
5855
|
+
清空: { "zh-CN": "清空", en: "Clear", ar: "مسح" },
|
|
5856
|
+
删除: { "zh-CN": "删除", en: "Delete", ar: "حذف" },
|
|
5857
|
+
物联应用: { "zh-CN": "物联应用", en: "IoT Application", ar: "تطبيق إنترنت الأشياء" },
|
|
5858
|
+
知识库: { "zh-CN": "知识库", en: "Knowledge Base", ar: "قاعدة المعرفة" },
|
|
5859
|
+
全网: { "zh-CN": "全网", en: "Entire Network", ar: "الشبكة الكاملة" },
|
|
5860
|
+
全部: { "zh-CN": "全部", en: "All", ar: "الكل" },
|
|
5859
5861
|
"删除后,该会话将不可恢复,": {
|
|
5860
5862
|
"zh-CN": "删除后,该会话将不可恢复,",
|
|
5861
|
-
en: "After deletion, the session cannot be recovered,"
|
|
5863
|
+
en: "After deletion, the session cannot be recovered,",
|
|
5864
|
+
ar: "بعد الحذف، لا يمكن استرداد هذه المحادثة،"
|
|
5862
5865
|
},
|
|
5863
5866
|
"清空后,所有历史将无法找回,": {
|
|
5864
5867
|
"zh-CN": "清空后,所有历史将无法找回,",
|
|
5865
|
-
en: "After clearing, all history will be irretrievable,"
|
|
5868
|
+
en: "After clearing, all history will be irretrievable,",
|
|
5869
|
+
ar: "بعد المسح، لا يمكن استعادة كل السجلات،"
|
|
5866
5870
|
},
|
|
5867
|
-
"嗨!我是AI助手": { "zh-CN": "嗨!我是AI助手", en: "Hi! i am the AI assistant" },
|
|
5868
|
-
你可以这样说: { "zh-CN": "你可以这样说", en: "You can say like this" },
|
|
5869
|
-
选择在某个知识库中搜索: { "zh-CN": "选择在某个知识库中搜索", en: "Choose to search in a knowledge base" },
|
|
5871
|
+
"嗨!我是AI助手": { "zh-CN": "嗨!我是AI助手", en: "Hi! i am the AI assistant", ar: "!مرحباً! أنا المساعد الذكي" },
|
|
5872
|
+
你可以这样说: { "zh-CN": "你可以这样说", en: "You can say like this", ar: "يمكنك القول هكذا" },
|
|
5873
|
+
选择在某个知识库中搜索: { "zh-CN": "选择在某个知识库中搜索", en: "Choose to search in a knowledge base", ar: "اختيار البحث في قاعدة معرفة معينة" },
|
|
5870
5874
|
在权限范围内的应用中搜索: {
|
|
5871
5875
|
"zh-CN": "在权限范围内的应用中搜索",
|
|
5872
|
-
en: "Search in applications within permission range"
|
|
5876
|
+
en: "Search in applications within permission range",
|
|
5877
|
+
ar: "البحث في التطبيقات ضمن نطاق الصلاحيات"
|
|
5873
5878
|
},
|
|
5874
|
-
在整个大模型中搜索: { "zh-CN": "在整个大模型中搜索", en: "Search in the entire large model" },
|
|
5875
|
-
基于知识库: { "zh-CN": "基于知识库", en: "Based on Knowledge Base" },
|
|
5876
|
-
基于物联应用: { "zh-CN": "基于物联应用", en: "Based on IoT Application" },
|
|
5877
|
-
基于全网: { "zh-CN": "基于全网", en: "Based on Entire Network" },
|
|
5878
|
-
基于全部: { "zh-CN": "基于全部", en: "Based on All" },
|
|
5879
|
-
"回答中...": { "zh-CN": "回答中...", en: "responding..." },
|
|
5880
|
-
基于物联应用提问: { "zh-CN": "基于物联应用提问", en: "Ask based on iot application" },
|
|
5881
|
-
基于知识库提问: { "zh-CN": "基于知识库提问", en: "Ask based on knowledge base" },
|
|
5882
|
-
基于全网提问: { "zh-CN": "基于全网提问", en: "Ask based on entire network" },
|
|
5883
|
-
继续提问: { "zh-CN": "继续提问", en: "Continue asking" },
|
|
5884
|
-
深度思考: { "zh-CN": "深度思考", en: "Deep Thinking" },
|
|
5879
|
+
在整个大模型中搜索: { "zh-CN": "在整个大模型中搜索", en: "Search in the entire large model", ar: "البحث في النموذج الكبير بالكامل" },
|
|
5880
|
+
基于知识库: { "zh-CN": "基于知识库", en: "Based on Knowledge Base", ar: "بناءً على قاعدة المعرفة" },
|
|
5881
|
+
基于物联应用: { "zh-CN": "基于物联应用", en: "Based on IoT Application", ar: "بناءً على تطبيق إنترنت الأشياء" },
|
|
5882
|
+
基于全网: { "zh-CN": "基于全网", en: "Based on Entire Network", ar: "بناءً على الشبكة الكاملة" },
|
|
5883
|
+
基于全部: { "zh-CN": "基于全部", en: "Based on All", ar: "بناءً على الكل" },
|
|
5884
|
+
"回答中...": { "zh-CN": "回答中...", en: "responding...", ar: "جارٍ الرد..." },
|
|
5885
|
+
基于物联应用提问: { "zh-CN": "基于物联应用提问", en: "Ask based on iot application", ar: "طرح سؤال بناءً على تطبيق إنترنت الأشياء" },
|
|
5886
|
+
基于知识库提问: { "zh-CN": "基于知识库提问", en: "Ask based on knowledge base", ar: "طرح سؤال بناءً على قاعدة المعرفة" },
|
|
5887
|
+
基于全网提问: { "zh-CN": "基于全网提问", en: "Ask based on entire network", ar: "طرح سؤال بناءً على الشبكة الكاملة" },
|
|
5888
|
+
继续提问: { "zh-CN": "继续提问", en: "Continue asking", ar: "متابعة السؤال" },
|
|
5889
|
+
深度思考: { "zh-CN": "深度思考", en: "Deep Thinking", ar: "التفكير العميق" },
|
|
5885
5890
|
"已深度思考(用时$0秒)": {
|
|
5886
5891
|
"zh-CN": "已深度思考(用时$0秒)",
|
|
5887
|
-
en: "Deep thought completed (took $0 seconds)"
|
|
5892
|
+
en: "Deep thought completed (took $0 seconds)",
|
|
5893
|
+
ar: "اكتمل التفكير العميق (استغرق $0 ثانية)"
|
|
5888
5894
|
},
|
|
5889
5895
|
引用$0篇资料作为参考: {
|
|
5890
5896
|
"zh-CN": "引用$0篇资料作为参考",
|
|
5891
|
-
en: "Cite $0 documents as references"
|
|
5897
|
+
en: "Cite $0 documents as references",
|
|
5898
|
+
ar: "اقتباس $0 مستندات كمراجع"
|
|
5892
5899
|
},
|
|
5893
5900
|
"参考内容(共$0条)": {
|
|
5894
5901
|
"zh-CN": "参考内容(共$0条)",
|
|
5895
|
-
en: "Reference Content (total $0 entries)"
|
|
5902
|
+
en: "Reference Content (total $0 entries)",
|
|
5903
|
+
ar: "محتوى مرجعي (إجمالي $0 إدخالات)"
|
|
5896
5904
|
},
|
|
5897
|
-
吐槽: { "zh-CN": "吐槽", en: "Spit out" },
|
|
5898
|
-
取消吐槽: { "zh-CN": "取消吐槽", en: "Cancel the Spitting" }
|
|
5905
|
+
吐槽: { "zh-CN": "吐槽", en: "Spit out", ar: "تعليق" },
|
|
5906
|
+
取消吐槽: { "zh-CN": "取消吐槽", en: "Cancel the Spitting", ar: "إلغاء التعليق" }
|
|
5899
5907
|
};
|
|
5900
|
-
i0(
|
|
5901
|
-
const
|
|
5908
|
+
i0(uc);
|
|
5909
|
+
const Gc = () => N(null), Kc = n0(Ya);
|
|
5902
5910
|
export {
|
|
5903
|
-
|
|
5904
|
-
|
|
5905
|
-
|
|
5911
|
+
Kc as D,
|
|
5912
|
+
cu as _,
|
|
5913
|
+
Gc as a,
|
|
5906
5914
|
Ri as g,
|
|
5907
|
-
|
|
5915
|
+
Zc as s
|
|
5908
5916
|
};
|