@das-fed/ui 7.0.0 → 7.0.1-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +5 -5
- package/packages/business-components/ai-panel/{index-BUVM9wHT.js → index-ClgczXAD.js} +1 -1
- package/packages/business-components/ai-panel/index-ClgczXAD.js.gz +0 -0
- package/packages/business-components/ai-panel/{index-BXukDT-W.js → index-SfzdqhGf.js} +1113 -1109
- package/packages/business-components/ai-panel/index-SfzdqhGf.js.gz +0 -0
- package/packages/business-components/ai-panel/index.js +1 -1
- package/packages/business-components/ai-panel/src/dasAI/index.vue.d.ts +1 -0
- package/packages/business-components/ai-panel/style.css +1 -1
- package/packages/business-components/ai-panel/style.css.gz +0 -0
- package/packages/business-components/device-panel/index.js +10 -10
- package/packages/business-components/device-panel/index.js.gz +0 -0
- package/packages/business-components/device-panel/style.css +1 -1
- package/packages/business-components/device-panel/style.css.gz +0 -0
- package/packages/business-components/layout-breadcrumb/index.js +60 -57
- package/packages/business-components/layout-breadcrumb/index.js.gz +0 -0
- package/packages/business-components/video-dialog/index.js +53 -58
- package/packages/business-components/video-dialog/index.js.gz +0 -0
- package/packages/business-components/ai-panel/index-BUVM9wHT.js.gz +0 -0
- package/packages/business-components/ai-panel/index-BXukDT-W.js.gz +0 -0
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { withInstall as
|
|
3
|
-
import { useRoute as
|
|
4
|
-
import { DasIconClose2 as
|
|
5
|
-
import { t as T, setI18nRule as
|
|
6
|
-
import { DasIconAudioing as
|
|
7
|
-
import { DasIconCloseaudio as
|
|
8
|
-
import { DasIconLishihuihua as
|
|
9
|
-
import { DasScrollbar as
|
|
1
|
+
import { defineAsyncComponent as ct, ref as N, watch as bu, h as at, reactive as st, defineComponent as iu, onMounted as qu, createElementBlock as P, openBlock as w, createElementVNode as v, toDisplayString as V, computed as lu, createCommentVNode as z, createVNode as j, unref as A, normalizeClass as Ku, createBlock as X, withCtx as J, Fragment as Nu, renderList as Ju, withDirectives as yu, withKeys as Wt, vModelText as Xt, withModifiers as we, vShow as ju, onBeforeUnmount as lt, resolveDirective as Yt, nextTick as Ae, Transition as u0, normalizeStyle as e0 } from "vue";
|
|
2
|
+
import { withInstall as t0 } from "@das-fed/utils/with-install/index";
|
|
3
|
+
import { useRoute as n0 } from "vue-router";
|
|
4
|
+
import { DasIconClose2 as r0 } from "@das-fed/ui/packages/icons/close-2/index";
|
|
5
|
+
import { t as T, setI18nRule as o0 } from "@das-fed/web/packages/i18n/index";
|
|
6
|
+
import { DasIconAudioing as i0 } from "@das-fed/ui/packages/icons/audioing/index";
|
|
7
|
+
import { DasIconCloseaudio as c0 } from "@das-fed/ui/packages/icons/closeaudio/index";
|
|
8
|
+
import { DasIconLishihuihua as a0 } from "@das-fed/ui/packages/icons/lishihuihua/index";
|
|
9
|
+
import { DasScrollbar as Se } from "@das-fed/ui/packages/components/scrollbar/index";
|
|
10
10
|
import { DasTooltip as Cu } from "@das-fed/ui/packages/components/tooltip/index";
|
|
11
|
-
import { DasPreview as
|
|
12
|
-
import { getToken as
|
|
13
|
-
import { getConfig as
|
|
14
|
-
import { getProjectInfo as
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import { DasIconEntry as
|
|
19
|
-
import { DasIconFold as
|
|
20
|
-
import { DasIconUnflod as
|
|
21
|
-
import { DasIconZhongxinshengcheng as
|
|
22
|
-
import { DasIconFuzhineirong as
|
|
23
|
-
import { DasIconYuyin as
|
|
24
|
-
import { DasMessage as
|
|
25
|
-
import { DasIconFasong as
|
|
26
|
-
import { DasIconShendusikao as
|
|
27
|
-
import { DasIconHuidaodibu as
|
|
28
|
-
import { DasIconTianjiaxinhuati as
|
|
29
|
-
import { DasIconLeft as
|
|
30
|
-
import { DasIconSelect2 as
|
|
31
|
-
import { DasPopover as
|
|
32
|
-
import { DasTree as
|
|
33
|
-
import { vDasLoading as
|
|
34
|
-
import { knowledgeBase as
|
|
35
|
-
import { DasIconLianjie as
|
|
36
|
-
import { DasIconQingkong as
|
|
37
|
-
import { DasIconDelete as
|
|
38
|
-
import { DasEmpty as
|
|
39
|
-
import { socketService as
|
|
40
|
-
import { SizeWatcher as
|
|
41
|
-
let
|
|
11
|
+
import { DasPreview as s0 } from "@das-fed/ui/packages/components/preview/index";
|
|
12
|
+
import { getToken as ne } from "@das-fed/utils/common-info/index";
|
|
13
|
+
import { getConfig as dt } from "@das-fed/utils/config";
|
|
14
|
+
import { getProjectInfo as ft } from "@das-fed/utils/common-info";
|
|
15
|
+
import te from "dayjs";
|
|
16
|
+
import l0 from "dayjs/plugin/utc";
|
|
17
|
+
import d0 from "dayjs/plugin/timezone";
|
|
18
|
+
import { DasIconEntry as ht } from "@das-fed/ui/packages/icons/entry/index";
|
|
19
|
+
import { DasIconFold as pt } from "@das-fed/ui/packages/icons/fold/index";
|
|
20
|
+
import { DasIconUnflod as bt } from "@das-fed/ui/packages/icons/unflod/index";
|
|
21
|
+
import { DasIconZhongxinshengcheng as f0 } from "@das-fed/ui/packages/icons/zhongxinshengcheng/index";
|
|
22
|
+
import { DasIconFuzhineirong as h0 } from "@das-fed/ui/packages/icons/fuzhineirong/index";
|
|
23
|
+
import { DasIconYuyin as p0 } from "@das-fed/ui/packages/icons/yuyin/index";
|
|
24
|
+
import { DasMessage as He } from "@das-fed/ui/packages/components/message/index";
|
|
25
|
+
import { DasIconFasong as b0 } from "@das-fed/ui/packages/icons/fasong/index";
|
|
26
|
+
import { DasIconShendusikao as m0 } from "@das-fed/ui/packages/icons/shendusikao/index";
|
|
27
|
+
import { DasIconHuidaodibu as x0 } from "@das-fed/ui/packages/icons/huidaodibu/index";
|
|
28
|
+
import { DasIconTianjiaxinhuati as _0 } from "@das-fed/ui/packages/icons/tianjiaxinhuati/index";
|
|
29
|
+
import { DasIconLeft as Ie } from "@das-fed/ui/packages/icons/left/index";
|
|
30
|
+
import { DasIconSelect2 as g0 } from "@das-fed/ui/packages/icons/select2/index";
|
|
31
|
+
import { DasPopover as k0 } from "@das-fed/ui/packages/components/popover/index";
|
|
32
|
+
import { DasTree as v0 } from "@das-fed/ui/packages/components/tree/index";
|
|
33
|
+
import { vDasLoading as mt } from "@das-fed/ui/packages/components/loading/index";
|
|
34
|
+
import { knowledgeBase as Mu, createService as xt, iotMinio as _t } from "@das-fed/utils/api-services";
|
|
35
|
+
import { DasIconLianjie as y0 } from "@das-fed/ui/packages/icons/lianjie/index";
|
|
36
|
+
import { DasIconQingkong as A0 } from "@das-fed/ui/packages/icons/qingkong/index";
|
|
37
|
+
import { DasIconDelete as C0 } from "@das-fed/ui/packages/icons/delete/index";
|
|
38
|
+
import { DasEmpty as D0 } from "@das-fed/ui/packages/components/empty/index";
|
|
39
|
+
import { socketService as E0 } from "@das-fed/utils/webSocket-service";
|
|
40
|
+
import { SizeWatcher as F0 } from "@das-fed/utils/size-watcher";
|
|
41
|
+
let Hu = (u = 21) => {
|
|
42
42
|
let e = "", t = crypto.getRandomValues(new Uint8Array(u));
|
|
43
43
|
for (; u--; ) {
|
|
44
44
|
let n = t[u] & 63;
|
|
@@ -46,14 +46,14 @@ let $u = (u = 21) => {
|
|
|
46
46
|
}
|
|
47
47
|
return e;
|
|
48
48
|
};
|
|
49
|
-
const
|
|
49
|
+
const w0 = ct(() => import("./index-ClgczXAD.js")), S0 = () => {
|
|
50
50
|
const u = N(), e = N(!1);
|
|
51
51
|
let t = !1;
|
|
52
52
|
const n = (c) => {
|
|
53
53
|
e.value && (t = c, e.value = !1);
|
|
54
54
|
};
|
|
55
55
|
return {
|
|
56
|
-
folderDialogVue: () =>
|
|
56
|
+
folderDialogVue: () => at(w0, {
|
|
57
57
|
dialogShow: e.value,
|
|
58
58
|
content: u.value,
|
|
59
59
|
onSubmit: (c) => {
|
|
@@ -72,7 +72,7 @@ const F0 = it(() => import("./index-BUVM9wHT.js")), w0 = () => {
|
|
|
72
72
|
});
|
|
73
73
|
}))
|
|
74
74
|
};
|
|
75
|
-
}, x =
|
|
75
|
+
}, x = st({
|
|
76
76
|
deepseek: !1,
|
|
77
77
|
// 是否深度思考
|
|
78
78
|
loading: !1,
|
|
@@ -87,27 +87,27 @@ const F0 = it(() => import("./index-BUVM9wHT.js")), w0 = () => {
|
|
|
87
87
|
// 默认选择知识库-全部
|
|
88
88
|
folderName: ""
|
|
89
89
|
// 默认选择知识库-全部
|
|
90
|
-
}),
|
|
90
|
+
}), I0 = () => {
|
|
91
91
|
x.loading = !1, x.isplay = !1, x.showScrollBom = !1, x.senderValue = "";
|
|
92
92
|
};
|
|
93
|
-
|
|
93
|
+
st({
|
|
94
94
|
knowDeepseek: !1,
|
|
95
95
|
appDeepseek: !1,
|
|
96
96
|
networkDeepseek: !0
|
|
97
97
|
});
|
|
98
|
-
const
|
|
98
|
+
const gt = () => sessionStorage.getItem("deepseekConfig") ? JSON.parse(sessionStorage.getItem("deepseekConfig")) : {
|
|
99
99
|
knowDeepseek: !1,
|
|
100
100
|
appDeepseek: !1,
|
|
101
101
|
networkDeepseek: !0
|
|
102
|
-
},
|
|
103
|
-
const e =
|
|
102
|
+
}, kt = (u) => {
|
|
103
|
+
const e = gt();
|
|
104
104
|
if (u) {
|
|
105
105
|
sessionStorage.setItem("deepseekConfig", JSON.stringify(e));
|
|
106
106
|
return;
|
|
107
107
|
}
|
|
108
108
|
x.searchType == "0" && (e.appDeepseek = x.deepseek), x.searchType == "1" && (e.knowDeepseek = x.deepseek), x.searchType == "2" && (e.networkDeepseek = x.deepseek), sessionStorage.setItem("deepseekConfig", JSON.stringify(e));
|
|
109
|
-
},
|
|
110
|
-
const u =
|
|
109
|
+
}, $u = () => {
|
|
110
|
+
const u = gt();
|
|
111
111
|
x.searchType == "0" && (x.deepseek = u.appDeepseek), x.searchType == "1" && (x.deepseek = u.knowDeepseek), x.searchType == "2" && (x.deepseek = u.networkDeepseek);
|
|
112
112
|
};
|
|
113
113
|
var tu = function(u, e) {
|
|
@@ -202,17 +202,17 @@ tu.CONNECTING = 0;
|
|
|
202
202
|
tu.OPEN = 1;
|
|
203
203
|
tu.CLOSED = 2;
|
|
204
204
|
typeof exports < "u" && (exports.SSE = tu);
|
|
205
|
-
const
|
|
205
|
+
const T0 = { class: "das-ai-use-chat-content" }, z0 = {
|
|
206
206
|
name: "useChat"
|
|
207
|
-
},
|
|
208
|
-
...
|
|
207
|
+
}, N0 = /* @__PURE__ */ iu({
|
|
208
|
+
...z0,
|
|
209
209
|
props: {
|
|
210
210
|
item: { default: {} }
|
|
211
211
|
},
|
|
212
212
|
emits: ["click"],
|
|
213
213
|
setup(u, { emit: e }) {
|
|
214
214
|
const t = N();
|
|
215
|
-
return
|
|
215
|
+
return qu(() => {
|
|
216
216
|
}), (n, r) => (w(), P(
|
|
217
217
|
"div",
|
|
218
218
|
{
|
|
@@ -223,7 +223,7 @@ const I0 = { class: "das-ai-use-chat-content" }, T0 = {
|
|
|
223
223
|
[
|
|
224
224
|
v(
|
|
225
225
|
"div",
|
|
226
|
-
|
|
226
|
+
T0,
|
|
227
227
|
V(n.item.content),
|
|
228
228
|
1
|
|
229
229
|
/* TEXT */
|
|
@@ -233,17 +233,17 @@ const I0 = { class: "das-ai-use-chat-content" }, T0 = {
|
|
|
233
233
|
/* NEED_PATCH */
|
|
234
234
|
));
|
|
235
235
|
}
|
|
236
|
-
}),
|
|
236
|
+
}), cu = (u, e) => {
|
|
237
237
|
const t = u.__vccOpts || u;
|
|
238
238
|
for (const [n, r] of e)
|
|
239
239
|
t[n] = r;
|
|
240
240
|
return t;
|
|
241
|
-
},
|
|
242
|
-
var
|
|
243
|
-
function
|
|
241
|
+
}, L0 = /* @__PURE__ */ cu(N0, [["__scopeId", "data-v-fbf6f49a"]]);
|
|
242
|
+
var B0 = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
243
|
+
function q0(u) {
|
|
244
244
|
return u && u.__esModule && Object.prototype.hasOwnProperty.call(u, "default") ? u.default : u;
|
|
245
245
|
}
|
|
246
|
-
var
|
|
246
|
+
var vt = { exports: {} };
|
|
247
247
|
/*!
|
|
248
248
|
* clipboard.js v2.0.11
|
|
249
249
|
* https://clipboardjs.com/
|
|
@@ -253,7 +253,7 @@ var kt = { exports: {} };
|
|
|
253
253
|
(function(u, e) {
|
|
254
254
|
(function(n, r) {
|
|
255
255
|
u.exports = r();
|
|
256
|
-
})(
|
|
256
|
+
})(B0, function() {
|
|
257
257
|
return (
|
|
258
258
|
/******/
|
|
259
259
|
function() {
|
|
@@ -266,14 +266,14 @@ var kt = { exports: {} };
|
|
|
266
266
|
default: function() {
|
|
267
267
|
return (
|
|
268
268
|
/* binding */
|
|
269
|
-
|
|
269
|
+
he
|
|
270
270
|
);
|
|
271
271
|
}
|
|
272
272
|
});
|
|
273
273
|
var a = i(279), s = /* @__PURE__ */ i.n(a), l = i(370), d = /* @__PURE__ */ i.n(l), _ = i(817), h = /* @__PURE__ */ i.n(_);
|
|
274
|
-
function f(
|
|
274
|
+
function f(B) {
|
|
275
275
|
try {
|
|
276
|
-
return document.execCommand(
|
|
276
|
+
return document.execCommand(B);
|
|
277
277
|
} catch {
|
|
278
278
|
return !1;
|
|
279
279
|
}
|
|
@@ -282,104 +282,104 @@ var kt = { exports: {} };
|
|
|
282
282
|
var E = h()(F);
|
|
283
283
|
return f("cut"), E;
|
|
284
284
|
}, y = g;
|
|
285
|
-
function C(
|
|
285
|
+
function C(B) {
|
|
286
286
|
var F = document.documentElement.getAttribute("dir") === "rtl", E = document.createElement("textarea");
|
|
287
287
|
E.style.fontSize = "12pt", E.style.border = "0", E.style.padding = "0", E.style.margin = "0", E.style.position = "absolute", E.style[F ? "right" : "left"] = "-9999px";
|
|
288
|
-
var
|
|
289
|
-
return E.style.top = "".concat(
|
|
288
|
+
var q = window.pageYOffset || document.documentElement.scrollTop;
|
|
289
|
+
return E.style.top = "".concat(q, "px"), E.setAttribute("readonly", ""), E.value = B, E;
|
|
290
290
|
}
|
|
291
291
|
var k = function(F, E) {
|
|
292
|
-
var
|
|
293
|
-
E.container.appendChild(
|
|
294
|
-
var M = h()(
|
|
295
|
-
return f("copy"),
|
|
296
|
-
},
|
|
292
|
+
var q = C(F);
|
|
293
|
+
E.container.appendChild(q);
|
|
294
|
+
var M = h()(q);
|
|
295
|
+
return f("copy"), q.remove(), M;
|
|
296
|
+
}, m = function(F) {
|
|
297
297
|
var E = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
298
298
|
container: document.body
|
|
299
|
-
},
|
|
300
|
-
return typeof F == "string" ?
|
|
301
|
-
}, p =
|
|
302
|
-
function
|
|
299
|
+
}, q = "";
|
|
300
|
+
return typeof F == "string" ? q = k(F, E) : F instanceof HTMLInputElement && !["text", "search", "url", "tel", "password"].includes(F == null ? void 0 : F.type) ? q = k(F.value, E) : (q = h()(F), f("copy")), q;
|
|
301
|
+
}, p = m;
|
|
302
|
+
function b(B) {
|
|
303
303
|
"@babel/helpers - typeof";
|
|
304
|
-
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ?
|
|
304
|
+
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? b = function(E) {
|
|
305
305
|
return typeof E;
|
|
306
|
-
} :
|
|
306
|
+
} : b = function(E) {
|
|
307
307
|
return E && typeof Symbol == "function" && E.constructor === Symbol && E !== Symbol.prototype ? "symbol" : typeof E;
|
|
308
|
-
},
|
|
308
|
+
}, b(B);
|
|
309
309
|
}
|
|
310
310
|
var L = function() {
|
|
311
|
-
var F = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, E = F.action,
|
|
312
|
-
if (
|
|
311
|
+
var F = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, E = F.action, q = E === void 0 ? "copy" : E, M = F.container, $ = F.target, eu = F.text;
|
|
312
|
+
if (q !== "copy" && q !== "cut")
|
|
313
313
|
throw new Error('Invalid "action" value, use either "copy" or "cut"');
|
|
314
314
|
if ($ !== void 0)
|
|
315
|
-
if ($ &&
|
|
316
|
-
if (
|
|
315
|
+
if ($ && b($) === "object" && $.nodeType === 1) {
|
|
316
|
+
if (q === "copy" && $.hasAttribute("disabled"))
|
|
317
317
|
throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');
|
|
318
|
-
if (
|
|
318
|
+
if (q === "cut" && ($.hasAttribute("readonly") || $.hasAttribute("disabled")))
|
|
319
319
|
throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`);
|
|
320
320
|
} else
|
|
321
321
|
throw new Error('Invalid "target" value, use a valid Element');
|
|
322
|
-
if (
|
|
323
|
-
return p(
|
|
322
|
+
if (eu)
|
|
323
|
+
return p(eu, {
|
|
324
324
|
container: M
|
|
325
325
|
});
|
|
326
326
|
if ($)
|
|
327
|
-
return
|
|
327
|
+
return q === "cut" ? y($) : p($, {
|
|
328
328
|
container: M
|
|
329
329
|
});
|
|
330
330
|
}, S = L;
|
|
331
|
-
function H(
|
|
331
|
+
function H(B) {
|
|
332
332
|
"@babel/helpers - typeof";
|
|
333
333
|
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? H = function(E) {
|
|
334
334
|
return typeof E;
|
|
335
335
|
} : H = function(E) {
|
|
336
336
|
return E && typeof Symbol == "function" && E.constructor === Symbol && E !== Symbol.prototype ? "symbol" : typeof E;
|
|
337
|
-
}, H(
|
|
337
|
+
}, H(B);
|
|
338
338
|
}
|
|
339
|
-
function
|
|
340
|
-
if (!(
|
|
339
|
+
function O(B, F) {
|
|
340
|
+
if (!(B instanceof F))
|
|
341
341
|
throw new TypeError("Cannot call a class as a function");
|
|
342
342
|
}
|
|
343
|
-
function G(
|
|
343
|
+
function G(B, F) {
|
|
344
344
|
for (var E = 0; E < F.length; E++) {
|
|
345
|
-
var
|
|
346
|
-
|
|
345
|
+
var q = F[E];
|
|
346
|
+
q.enumerable = q.enumerable || !1, q.configurable = !0, "value" in q && (q.writable = !0), Object.defineProperty(B, q.key, q);
|
|
347
347
|
}
|
|
348
348
|
}
|
|
349
|
-
function _u(
|
|
350
|
-
return F && G(
|
|
349
|
+
function _u(B, F, E) {
|
|
350
|
+
return F && G(B.prototype, F), E && G(B, E), B;
|
|
351
351
|
}
|
|
352
|
-
function
|
|
352
|
+
function Ru(B, F) {
|
|
353
353
|
if (typeof F != "function" && F !== null)
|
|
354
354
|
throw new TypeError("Super expression must either be null or a function");
|
|
355
|
-
|
|
355
|
+
B.prototype = Object.create(F && F.prototype, { constructor: { value: B, writable: !0, configurable: !0 } }), F && gu(B, F);
|
|
356
356
|
}
|
|
357
|
-
function
|
|
358
|
-
return
|
|
359
|
-
return
|
|
360
|
-
},
|
|
357
|
+
function gu(B, F) {
|
|
358
|
+
return gu = Object.setPrototypeOf || function(q, M) {
|
|
359
|
+
return q.__proto__ = M, q;
|
|
360
|
+
}, gu(B, F);
|
|
361
361
|
}
|
|
362
|
-
function
|
|
363
|
-
var F =
|
|
362
|
+
function fu(B) {
|
|
363
|
+
var F = de();
|
|
364
364
|
return function() {
|
|
365
|
-
var
|
|
365
|
+
var q = Eu(B), M;
|
|
366
366
|
if (F) {
|
|
367
367
|
var $ = Eu(this).constructor;
|
|
368
|
-
M = Reflect.construct(
|
|
368
|
+
M = Reflect.construct(q, arguments, $);
|
|
369
369
|
} else
|
|
370
|
-
M =
|
|
371
|
-
return
|
|
370
|
+
M = q.apply(this, arguments);
|
|
371
|
+
return ru(this, M);
|
|
372
372
|
};
|
|
373
373
|
}
|
|
374
|
-
function
|
|
375
|
-
return F && (H(F) === "object" || typeof F == "function") ? F : Pu(
|
|
374
|
+
function ru(B, F) {
|
|
375
|
+
return F && (H(F) === "object" || typeof F == "function") ? F : Pu(B);
|
|
376
376
|
}
|
|
377
|
-
function Pu(
|
|
378
|
-
if (
|
|
377
|
+
function Pu(B) {
|
|
378
|
+
if (B === void 0)
|
|
379
379
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
380
|
-
return
|
|
380
|
+
return B;
|
|
381
381
|
}
|
|
382
|
-
function
|
|
382
|
+
function de() {
|
|
383
383
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
|
|
384
384
|
if (typeof Proxy == "function") return !0;
|
|
385
385
|
try {
|
|
@@ -389,22 +389,22 @@ var kt = { exports: {} };
|
|
|
389
389
|
return !1;
|
|
390
390
|
}
|
|
391
391
|
}
|
|
392
|
-
function Eu(
|
|
392
|
+
function Eu(B) {
|
|
393
393
|
return Eu = Object.setPrototypeOf ? Object.getPrototypeOf : function(E) {
|
|
394
394
|
return E.__proto__ || Object.getPrototypeOf(E);
|
|
395
|
-
}, Eu(
|
|
395
|
+
}, Eu(B);
|
|
396
396
|
}
|
|
397
|
-
function
|
|
398
|
-
var E = "data-clipboard-".concat(
|
|
397
|
+
function Su(B, F) {
|
|
398
|
+
var E = "data-clipboard-".concat(B);
|
|
399
399
|
if (F.hasAttribute(E))
|
|
400
400
|
return F.getAttribute(E);
|
|
401
401
|
}
|
|
402
|
-
var
|
|
403
|
-
|
|
404
|
-
var F =
|
|
405
|
-
function E(
|
|
402
|
+
var fe = /* @__PURE__ */ function(B) {
|
|
403
|
+
Ru(E, B);
|
|
404
|
+
var F = fu(E);
|
|
405
|
+
function E(q, M) {
|
|
406
406
|
var $;
|
|
407
|
-
return
|
|
407
|
+
return O(this, E), $ = F.call(this), $.resolveOptions(M), $.listenClick(q), $;
|
|
408
408
|
}
|
|
409
409
|
return _u(E, [{
|
|
410
410
|
key: "resolveOptions",
|
|
@@ -420,8 +420,8 @@ var kt = { exports: {} };
|
|
|
420
420
|
key: "listenClick",
|
|
421
421
|
value: function(M) {
|
|
422
422
|
var $ = this;
|
|
423
|
-
this.listener = d()(M, "click", function(
|
|
424
|
-
return $.onClick(
|
|
423
|
+
this.listener = d()(M, "click", function(eu) {
|
|
424
|
+
return $.onClick(eu);
|
|
425
425
|
});
|
|
426
426
|
}
|
|
427
427
|
/**
|
|
@@ -431,15 +431,15 @@ var kt = { exports: {} };
|
|
|
431
431
|
}, {
|
|
432
432
|
key: "onClick",
|
|
433
433
|
value: function(M) {
|
|
434
|
-
var $ = M.delegateTarget || M.currentTarget,
|
|
435
|
-
action:
|
|
434
|
+
var $ = M.delegateTarget || M.currentTarget, eu = this.action($) || "copy", Fu = S({
|
|
435
|
+
action: eu,
|
|
436
436
|
container: this.container,
|
|
437
437
|
target: this.target($),
|
|
438
438
|
text: this.text($)
|
|
439
439
|
});
|
|
440
|
-
this.emit(
|
|
441
|
-
action:
|
|
442
|
-
text:
|
|
440
|
+
this.emit(Fu ? "success" : "error", {
|
|
441
|
+
action: eu,
|
|
442
|
+
text: Fu,
|
|
443
443
|
trigger: $,
|
|
444
444
|
clearSelection: function() {
|
|
445
445
|
$ && $.focus(), window.getSelection().removeAllRanges();
|
|
@@ -453,7 +453,7 @@ var kt = { exports: {} };
|
|
|
453
453
|
}, {
|
|
454
454
|
key: "defaultAction",
|
|
455
455
|
value: function(M) {
|
|
456
|
-
return
|
|
456
|
+
return Su("action", M);
|
|
457
457
|
}
|
|
458
458
|
/**
|
|
459
459
|
* Default `target` lookup function.
|
|
@@ -462,7 +462,7 @@ var kt = { exports: {} };
|
|
|
462
462
|
}, {
|
|
463
463
|
key: "defaultTarget",
|
|
464
464
|
value: function(M) {
|
|
465
|
-
var $ =
|
|
465
|
+
var $ = Su("target", M);
|
|
466
466
|
if ($)
|
|
467
467
|
return document.querySelector($);
|
|
468
468
|
}
|
|
@@ -479,7 +479,7 @@ var kt = { exports: {} };
|
|
|
479
479
|
* @param {Element} trigger
|
|
480
480
|
*/
|
|
481
481
|
value: function(M) {
|
|
482
|
-
return
|
|
482
|
+
return Su("text", M);
|
|
483
483
|
}
|
|
484
484
|
/**
|
|
485
485
|
* Destroy lifecycle.
|
|
@@ -515,13 +515,13 @@ var kt = { exports: {} };
|
|
|
515
515
|
}, {
|
|
516
516
|
key: "isSupported",
|
|
517
517
|
value: function() {
|
|
518
|
-
var M = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ["copy", "cut"], $ = typeof M == "string" ? [M] : M,
|
|
519
|
-
return $.forEach(function(
|
|
520
|
-
|
|
521
|
-
}),
|
|
518
|
+
var M = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ["copy", "cut"], $ = typeof M == "string" ? [M] : M, eu = !!document.queryCommandSupported;
|
|
519
|
+
return $.forEach(function(Fu) {
|
|
520
|
+
eu = eu && !!document.queryCommandSupported(Fu);
|
|
521
|
+
}), eu;
|
|
522
522
|
}
|
|
523
523
|
}]), E;
|
|
524
|
-
}(s()),
|
|
524
|
+
}(s()), he = fe;
|
|
525
525
|
}
|
|
526
526
|
),
|
|
527
527
|
/***/
|
|
@@ -732,12 +732,12 @@ var kt = { exports: {} };
|
|
|
732
732
|
}().default
|
|
733
733
|
);
|
|
734
734
|
});
|
|
735
|
-
})(
|
|
736
|
-
var
|
|
737
|
-
const
|
|
735
|
+
})(vt);
|
|
736
|
+
var M0 = vt.exports;
|
|
737
|
+
const O0 = /* @__PURE__ */ q0(M0), R0 = (u) => ({
|
|
738
738
|
toClipboard(e, t) {
|
|
739
739
|
return new Promise((n, r) => {
|
|
740
|
-
const o = document.createElement("button"), c = new
|
|
740
|
+
const o = document.createElement("button"), c = new O0(o, {
|
|
741
741
|
text: () => e,
|
|
742
742
|
action: () => "copy",
|
|
743
743
|
container: t !== void 0 ? t : document.body
|
|
@@ -749,12 +749,12 @@ const M0 = /* @__PURE__ */ B0(q0), O0 = (u) => ({
|
|
|
749
749
|
}), document.body.appendChild(o), o.click(), document.body.removeChild(o);
|
|
750
750
|
});
|
|
751
751
|
}
|
|
752
|
-
}),
|
|
753
|
-
function
|
|
754
|
-
let e =
|
|
752
|
+
}), $e = {};
|
|
753
|
+
function P0(u) {
|
|
754
|
+
let e = $e[u];
|
|
755
755
|
if (e)
|
|
756
756
|
return e;
|
|
757
|
-
e =
|
|
757
|
+
e = $e[u] = [];
|
|
758
758
|
for (let t = 0; t < 128; t++) {
|
|
759
759
|
const n = String.fromCharCode(t);
|
|
760
760
|
e.push(n);
|
|
@@ -765,9 +765,9 @@ function R0(u) {
|
|
|
765
765
|
}
|
|
766
766
|
return e;
|
|
767
767
|
}
|
|
768
|
-
function
|
|
769
|
-
typeof e != "string" && (e =
|
|
770
|
-
const t =
|
|
768
|
+
function Lu(u, e) {
|
|
769
|
+
typeof e != "string" && (e = Lu.defaultChars);
|
|
770
|
+
const t = P0(e);
|
|
771
771
|
return u.replace(/(%[a-f0-9]{2})+/gi, function(n) {
|
|
772
772
|
let r = "";
|
|
773
773
|
for (let o = 0, c = n.length; o < c; o += 3) {
|
|
@@ -805,14 +805,14 @@ function Bu(u, e) {
|
|
|
805
805
|
return r;
|
|
806
806
|
});
|
|
807
807
|
}
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
const
|
|
811
|
-
function
|
|
812
|
-
let e =
|
|
808
|
+
Lu.defaultChars = ";/?:@&=+$,#";
|
|
809
|
+
Lu.componentChars = "";
|
|
810
|
+
const Ve = {};
|
|
811
|
+
function j0(u) {
|
|
812
|
+
let e = Ve[u];
|
|
813
813
|
if (e)
|
|
814
814
|
return e;
|
|
815
|
-
e =
|
|
815
|
+
e = Ve[u] = [];
|
|
816
816
|
for (let t = 0; t < 128; t++) {
|
|
817
817
|
const n = String.fromCharCode(t);
|
|
818
818
|
/^[0-9a-z]$/i.test(n) ? e.push(n) : e.push("%" + ("0" + t.toString(16).toUpperCase()).slice(-2));
|
|
@@ -821,9 +821,9 @@ function P0(u) {
|
|
|
821
821
|
e[u.charCodeAt(t)] = u[t];
|
|
822
822
|
return e;
|
|
823
823
|
}
|
|
824
|
-
function
|
|
825
|
-
typeof e != "string" && (t = e, e =
|
|
826
|
-
const n =
|
|
824
|
+
function Qu(u, e, t) {
|
|
825
|
+
typeof e != "string" && (t = e, e = Qu.defaultChars), typeof t > "u" && (t = !0);
|
|
826
|
+
const n = j0(e);
|
|
827
827
|
let r = "";
|
|
828
828
|
for (let o = 0, c = u.length; o < c; o++) {
|
|
829
829
|
const i = u.charCodeAt(o);
|
|
@@ -850,20 +850,20 @@ function Wu(u, e, t) {
|
|
|
850
850
|
}
|
|
851
851
|
return r;
|
|
852
852
|
}
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
function
|
|
853
|
+
Qu.defaultChars = ";/?:@&=+$,-_.!~*'()#";
|
|
854
|
+
Qu.componentChars = "-_.!~*'()";
|
|
855
|
+
function Te(u) {
|
|
856
856
|
let e = "";
|
|
857
857
|
return e += u.protocol || "", e += u.slashes ? "//" : "", e += u.auth ? u.auth + "@" : "", u.hostname && u.hostname.indexOf(":") !== -1 ? e += "[" + u.hostname + "]" : e += u.hostname || "", e += u.port ? ":" + u.port : "", e += u.pathname || "", e += u.search || "", e += u.hash || "", e;
|
|
858
858
|
}
|
|
859
|
-
function
|
|
859
|
+
function re() {
|
|
860
860
|
this.protocol = null, this.slashes = null, this.auth = null, this.port = null, this.hostname = null, this.hash = null, this.search = null, this.pathname = null;
|
|
861
861
|
}
|
|
862
|
-
const
|
|
863
|
-
`, " "],
|
|
862
|
+
const H0 = /^([a-z0-9.+-]+:)/i, $0 = /:[0-9]*$/, V0 = /^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/, U0 = ["<", ">", '"', "`", " ", "\r", `
|
|
863
|
+
`, " "], Z0 = ["{", "}", "|", "\\", "^", "`"].concat(U0), G0 = ["'"].concat(Z0), Ue = ["%", "/", "?", ";", "#"].concat(G0), Ze = ["/", "?", "#"], K0 = 255, Ge = /^[+a-z0-9A-Z_-]{0,63}$/, J0 = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, Ke = {
|
|
864
864
|
javascript: !0,
|
|
865
865
|
"javascript:": !0
|
|
866
|
-
},
|
|
866
|
+
}, Je = {
|
|
867
867
|
http: !0,
|
|
868
868
|
https: !0,
|
|
869
869
|
ftp: !0,
|
|
@@ -875,27 +875,27 @@ const j0 = /^([a-z0-9.+-]+:)/i, H0 = /:[0-9]*$/, $0 = /^(\/\/?(?!\/)[^\?\s]*)(\?
|
|
|
875
875
|
"gopher:": !0,
|
|
876
876
|
"file:": !0
|
|
877
877
|
};
|
|
878
|
-
function
|
|
879
|
-
if (u && u instanceof
|
|
880
|
-
const t = new
|
|
878
|
+
function ze(u, e) {
|
|
879
|
+
if (u && u instanceof re) return u;
|
|
880
|
+
const t = new re();
|
|
881
881
|
return t.parse(u, e), t;
|
|
882
882
|
}
|
|
883
|
-
|
|
883
|
+
re.prototype.parse = function(u, e) {
|
|
884
884
|
let t, n, r, o = u;
|
|
885
885
|
if (o = o.trim(), !e && u.split("#").length === 1) {
|
|
886
|
-
const s =
|
|
886
|
+
const s = V0.exec(o);
|
|
887
887
|
if (s)
|
|
888
888
|
return this.pathname = s[1], s[2] && (this.search = s[2]), this;
|
|
889
889
|
}
|
|
890
|
-
let c =
|
|
891
|
-
if (c && (c = c[0], t = c.toLowerCase(), this.protocol = c, o = o.substr(c.length)), (e || c || o.match(/^\/\/[^@\/]+@[^@\/]+/)) && (r = o.substr(0, 2) === "//", r && !(c &&
|
|
890
|
+
let c = H0.exec(o);
|
|
891
|
+
if (c && (c = c[0], t = c.toLowerCase(), this.protocol = c, o = o.substr(c.length)), (e || c || o.match(/^\/\/[^@\/]+@[^@\/]+/)) && (r = o.substr(0, 2) === "//", r && !(c && Ke[c]) && (o = o.substr(2), this.slashes = !0)), !Ke[c] && (r || c && !Je[c])) {
|
|
892
892
|
let s = -1;
|
|
893
|
-
for (let f = 0; f <
|
|
894
|
-
n = o.indexOf(
|
|
893
|
+
for (let f = 0; f < Ze.length; f++)
|
|
894
|
+
n = o.indexOf(Ze[f]), n !== -1 && (s === -1 || n < s) && (s = n);
|
|
895
895
|
let l, d;
|
|
896
896
|
s === -1 ? d = o.lastIndexOf("@") : d = o.lastIndexOf("@", s), d !== -1 && (l = o.slice(0, d), o = o.slice(d + 1), this.auth = l), s = -1;
|
|
897
|
-
for (let f = 0; f <
|
|
898
|
-
n = o.indexOf(
|
|
897
|
+
for (let f = 0; f < Ue.length; f++)
|
|
898
|
+
n = o.indexOf(Ue[f]), n !== -1 && (s === -1 || n < s) && (s = n);
|
|
899
899
|
s === -1 && (s = o.length), o[s - 1] === ":" && s--;
|
|
900
900
|
const _ = o.slice(0, s);
|
|
901
901
|
o = o.slice(s), this.parseHost(_), this.hostname = this.hostname || "";
|
|
@@ -904,52 +904,52 @@ ie.prototype.parse = function(u, e) {
|
|
|
904
904
|
const f = this.hostname.split(/\./);
|
|
905
905
|
for (let g = 0, y = f.length; g < y; g++) {
|
|
906
906
|
const C = f[g];
|
|
907
|
-
if (C && !C.match(
|
|
907
|
+
if (C && !C.match(Ge)) {
|
|
908
908
|
let k = "";
|
|
909
|
-
for (let
|
|
910
|
-
C.charCodeAt(
|
|
911
|
-
if (!k.match(
|
|
912
|
-
const
|
|
913
|
-
|
|
909
|
+
for (let m = 0, p = C.length; m < p; m++)
|
|
910
|
+
C.charCodeAt(m) > 127 ? k += "x" : k += C[m];
|
|
911
|
+
if (!k.match(Ge)) {
|
|
912
|
+
const m = f.slice(0, g), p = f.slice(g + 1), b = C.match(J0);
|
|
913
|
+
b && (m.push(b[1]), p.unshift(b[2])), p.length && (o = p.join(".") + o), this.hostname = m.join(".");
|
|
914
914
|
break;
|
|
915
915
|
}
|
|
916
916
|
}
|
|
917
917
|
}
|
|
918
918
|
}
|
|
919
|
-
this.hostname.length >
|
|
919
|
+
this.hostname.length > K0 && (this.hostname = ""), h && (this.hostname = this.hostname.substr(1, this.hostname.length - 2));
|
|
920
920
|
}
|
|
921
921
|
const i = o.indexOf("#");
|
|
922
922
|
i !== -1 && (this.hash = o.substr(i), o = o.slice(0, i));
|
|
923
923
|
const a = o.indexOf("?");
|
|
924
|
-
return a !== -1 && (this.search = o.substr(a), o = o.slice(0, a)), o && (this.pathname = o),
|
|
924
|
+
return a !== -1 && (this.search = o.substr(a), o = o.slice(0, a)), o && (this.pathname = o), Je[t] && this.hostname && !this.pathname && (this.pathname = ""), this;
|
|
925
925
|
};
|
|
926
|
-
|
|
927
|
-
let e =
|
|
926
|
+
re.prototype.parseHost = function(u) {
|
|
927
|
+
let e = $0.exec(u);
|
|
928
928
|
e && (e = e[0], e !== ":" && (this.port = e.substr(1)), u = u.substr(0, u.length - e.length)), u && (this.hostname = u);
|
|
929
929
|
};
|
|
930
|
-
const
|
|
930
|
+
const Q0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
931
931
|
__proto__: null,
|
|
932
|
-
decode:
|
|
933
|
-
encode:
|
|
934
|
-
format:
|
|
935
|
-
parse:
|
|
936
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
932
|
+
decode: Lu,
|
|
933
|
+
encode: Qu,
|
|
934
|
+
format: Te,
|
|
935
|
+
parse: ze
|
|
936
|
+
}, Symbol.toStringTag, { value: "Module" })), yt = /[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, At = /[\0-\x1F\x7F-\x9F]/, W0 = /[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/, Ne = /[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/, Ct = /[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/, Dt = /[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/, X0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
937
937
|
__proto__: null,
|
|
938
|
-
Any:
|
|
939
|
-
Cc:
|
|
940
|
-
Cf:
|
|
941
|
-
P:
|
|
942
|
-
S:
|
|
943
|
-
Z:
|
|
944
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
938
|
+
Any: yt,
|
|
939
|
+
Cc: At,
|
|
940
|
+
Cf: W0,
|
|
941
|
+
P: Ne,
|
|
942
|
+
S: Ct,
|
|
943
|
+
Z: Dt
|
|
944
|
+
}, Symbol.toStringTag, { value: "Module" })), Y0 = new Uint16Array(
|
|
945
945
|
// prettier-ignore
|
|
946
946
|
'ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map((u) => u.charCodeAt(0))
|
|
947
|
-
),
|
|
947
|
+
), un = new Uint16Array(
|
|
948
948
|
// prettier-ignore
|
|
949
949
|
"Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((u) => u.charCodeAt(0))
|
|
950
950
|
);
|
|
951
|
-
var
|
|
952
|
-
const
|
|
951
|
+
var me;
|
|
952
|
+
const en = /* @__PURE__ */ new Map([
|
|
953
953
|
[0, 65533],
|
|
954
954
|
// C1 Unicode control character reference replacements
|
|
955
955
|
[128, 8364],
|
|
@@ -979,37 +979,37 @@ const un = /* @__PURE__ */ new Map([
|
|
|
979
979
|
[156, 339],
|
|
980
980
|
[158, 382],
|
|
981
981
|
[159, 376]
|
|
982
|
-
]),
|
|
982
|
+
]), tn = (
|
|
983
983
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition, node/no-unsupported-features/es-builtins
|
|
984
|
-
(
|
|
984
|
+
(me = String.fromCodePoint) !== null && me !== void 0 ? me : function(u) {
|
|
985
985
|
let e = "";
|
|
986
986
|
return u > 65535 && (u -= 65536, e += String.fromCharCode(u >>> 10 & 1023 | 55296), u = 56320 | u & 1023), e += String.fromCharCode(u), e;
|
|
987
987
|
}
|
|
988
988
|
);
|
|
989
|
-
function
|
|
989
|
+
function nn(u) {
|
|
990
990
|
var e;
|
|
991
|
-
return u >= 55296 && u <= 57343 || u > 1114111 ? 65533 : (e =
|
|
991
|
+
return u >= 55296 && u <= 57343 || u > 1114111 ? 65533 : (e = en.get(u)) !== null && e !== void 0 ? e : u;
|
|
992
992
|
}
|
|
993
993
|
var W;
|
|
994
994
|
(function(u) {
|
|
995
995
|
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";
|
|
996
996
|
})(W || (W = {}));
|
|
997
|
-
const
|
|
997
|
+
const rn = 32;
|
|
998
998
|
var Au;
|
|
999
999
|
(function(u) {
|
|
1000
1000
|
u[u.VALUE_LENGTH = 49152] = "VALUE_LENGTH", u[u.BRANCH_LENGTH = 16256] = "BRANCH_LENGTH", u[u.JUMP_TABLE = 127] = "JUMP_TABLE";
|
|
1001
1001
|
})(Au || (Au = {}));
|
|
1002
|
-
function
|
|
1002
|
+
function Ce(u) {
|
|
1003
1003
|
return u >= W.ZERO && u <= W.NINE;
|
|
1004
1004
|
}
|
|
1005
|
-
function rn(u) {
|
|
1006
|
-
return u >= W.UPPER_A && u <= W.UPPER_F || u >= W.LOWER_A && u <= W.LOWER_F;
|
|
1007
|
-
}
|
|
1008
1005
|
function on(u) {
|
|
1009
|
-
return u >= W.UPPER_A && u <= W.
|
|
1006
|
+
return u >= W.UPPER_A && u <= W.UPPER_F || u >= W.LOWER_A && u <= W.LOWER_F;
|
|
1010
1007
|
}
|
|
1011
1008
|
function cn(u) {
|
|
1012
|
-
return u
|
|
1009
|
+
return u >= W.UPPER_A && u <= W.UPPER_Z || u >= W.LOWER_A && u <= W.LOWER_Z || Ce(u);
|
|
1010
|
+
}
|
|
1011
|
+
function an(u) {
|
|
1012
|
+
return u === W.EQUALS || cn(u);
|
|
1013
1013
|
}
|
|
1014
1014
|
var Q;
|
|
1015
1015
|
(function(u) {
|
|
@@ -1019,7 +1019,7 @@ var vu;
|
|
|
1019
1019
|
(function(u) {
|
|
1020
1020
|
u[u.Legacy = 0] = "Legacy", u[u.Strict = 1] = "Strict", u[u.Attribute = 2] = "Attribute";
|
|
1021
1021
|
})(vu || (vu = {}));
|
|
1022
|
-
class
|
|
1022
|
+
class sn {
|
|
1023
1023
|
constructor(e, t, n) {
|
|
1024
1024
|
this.decodeTree = e, this.emitCodePoint = t, this.errors = n, this.state = Q.EntityStart, this.consumed = 1, this.result = 0, this.treeIndex = 0, this.excess = 1, this.decodeMode = vu.Strict;
|
|
1025
1025
|
}
|
|
@@ -1062,7 +1062,7 @@ class an {
|
|
|
1062
1062
|
* @returns The number of characters that were consumed, or -1 if the entity is incomplete.
|
|
1063
1063
|
*/
|
|
1064
1064
|
stateNumericStart(e, t) {
|
|
1065
|
-
return t >= e.length ? -1 : (e.charCodeAt(t) |
|
|
1065
|
+
return t >= e.length ? -1 : (e.charCodeAt(t) | rn) === W.LOWER_X ? (this.state = Q.NumericHex, this.consumed += 1, this.stateNumericHex(e, t + 1)) : (this.state = Q.NumericDecimal, this.stateNumericDecimal(e, t));
|
|
1066
1066
|
}
|
|
1067
1067
|
addToNumericResult(e, t, n, r) {
|
|
1068
1068
|
if (t !== n) {
|
|
@@ -1083,7 +1083,7 @@ class an {
|
|
|
1083
1083
|
const n = t;
|
|
1084
1084
|
for (; t < e.length; ) {
|
|
1085
1085
|
const r = e.charCodeAt(t);
|
|
1086
|
-
if (
|
|
1086
|
+
if (Ce(r) || on(r))
|
|
1087
1087
|
t += 1;
|
|
1088
1088
|
else
|
|
1089
1089
|
return this.addToNumericResult(e, n, t, 16), this.emitNumericEntity(r, 3);
|
|
@@ -1103,7 +1103,7 @@ class an {
|
|
|
1103
1103
|
const n = t;
|
|
1104
1104
|
for (; t < e.length; ) {
|
|
1105
1105
|
const r = e.charCodeAt(t);
|
|
1106
|
-
if (
|
|
1106
|
+
if (Ce(r))
|
|
1107
1107
|
t += 1;
|
|
1108
1108
|
else
|
|
1109
1109
|
return this.addToNumericResult(e, n, t, 10), this.emitNumericEntity(r, 2);
|
|
@@ -1131,7 +1131,7 @@ class an {
|
|
|
1131
1131
|
this.consumed += 1;
|
|
1132
1132
|
else if (this.decodeMode === vu.Strict)
|
|
1133
1133
|
return 0;
|
|
1134
|
-
return this.emitCodePoint(
|
|
1134
|
+
return this.emitCodePoint(nn(this.result), this.consumed), this.errors && (e !== W.SEMI && this.errors.missingSemicolonAfterCharacterReference(), this.errors.validateNumericCharacterReference(this.result)), this.consumed;
|
|
1135
1135
|
}
|
|
1136
1136
|
/**
|
|
1137
1137
|
* Parses a named entity.
|
|
@@ -1147,11 +1147,11 @@ class an {
|
|
|
1147
1147
|
let r = n[this.treeIndex], o = (r & Au.VALUE_LENGTH) >> 14;
|
|
1148
1148
|
for (; t < e.length; t++, this.excess++) {
|
|
1149
1149
|
const c = e.charCodeAt(t);
|
|
1150
|
-
if (this.treeIndex =
|
|
1150
|
+
if (this.treeIndex = ln(n, r, this.treeIndex + Math.max(1, o), c), this.treeIndex < 0)
|
|
1151
1151
|
return this.result === 0 || // If we are parsing an attribute
|
|
1152
1152
|
this.decodeMode === vu.Attribute && // We shouldn't have consumed any characters after the entity,
|
|
1153
1153
|
(o === 0 || // And there should be no invalid characters.
|
|
1154
|
-
|
|
1154
|
+
an(c)) ? 0 : this.emitNotTerminatedNamedEntity();
|
|
1155
1155
|
if (r = n[this.treeIndex], o = (r & Au.VALUE_LENGTH) >> 14, o !== 0) {
|
|
1156
1156
|
if (c === W.SEMI)
|
|
1157
1157
|
return this.emitNamedEntityData(this.treeIndex, o, this.consumed + this.excess);
|
|
@@ -1206,9 +1206,9 @@ class an {
|
|
|
1206
1206
|
}
|
|
1207
1207
|
}
|
|
1208
1208
|
}
|
|
1209
|
-
function
|
|
1209
|
+
function Et(u) {
|
|
1210
1210
|
let e = "";
|
|
1211
|
-
const t = new
|
|
1211
|
+
const t = new sn(u, (n) => e += tn(n));
|
|
1212
1212
|
return function(r, o) {
|
|
1213
1213
|
let c = 0, i = 0;
|
|
1214
1214
|
for (; (i = r.indexOf("&", i)) >= 0; ) {
|
|
@@ -1228,7 +1228,7 @@ function Dt(u) {
|
|
|
1228
1228
|
return e = "", a;
|
|
1229
1229
|
};
|
|
1230
1230
|
}
|
|
1231
|
-
function
|
|
1231
|
+
function ln(u, e, t, n) {
|
|
1232
1232
|
const r = (e & Au.BRANCH_LENGTH) >> 7, o = e & Au.JUMP_TABLE;
|
|
1233
1233
|
if (r === 0)
|
|
1234
1234
|
return o !== 0 && n === o ? t : -1;
|
|
@@ -1248,22 +1248,22 @@ function sn(u, e, t, n) {
|
|
|
1248
1248
|
}
|
|
1249
1249
|
return -1;
|
|
1250
1250
|
}
|
|
1251
|
-
const
|
|
1252
|
-
|
|
1253
|
-
function
|
|
1254
|
-
return
|
|
1251
|
+
const dn = Et(Y0);
|
|
1252
|
+
Et(un);
|
|
1253
|
+
function Ft(u, e = vu.Legacy) {
|
|
1254
|
+
return dn(u, e);
|
|
1255
1255
|
}
|
|
1256
|
-
function
|
|
1256
|
+
function fn(u) {
|
|
1257
1257
|
return Object.prototype.toString.call(u);
|
|
1258
1258
|
}
|
|
1259
|
-
function
|
|
1260
|
-
return
|
|
1259
|
+
function Le(u) {
|
|
1260
|
+
return fn(u) === "[object String]";
|
|
1261
1261
|
}
|
|
1262
|
-
const
|
|
1263
|
-
function
|
|
1264
|
-
return
|
|
1262
|
+
const hn = Object.prototype.hasOwnProperty;
|
|
1263
|
+
function pn(u, e) {
|
|
1264
|
+
return hn.call(u, e);
|
|
1265
1265
|
}
|
|
1266
|
-
function
|
|
1266
|
+
function ce(u) {
|
|
1267
1267
|
return Array.prototype.slice.call(arguments, 1).forEach(function(t) {
|
|
1268
1268
|
if (t) {
|
|
1269
1269
|
if (typeof t != "object")
|
|
@@ -1274,13 +1274,13 @@ function se(u) {
|
|
|
1274
1274
|
}
|
|
1275
1275
|
}), u;
|
|
1276
1276
|
}
|
|
1277
|
-
function
|
|
1277
|
+
function wt(u, e, t) {
|
|
1278
1278
|
return [].concat(u.slice(0, e), t, u.slice(e + 1));
|
|
1279
1279
|
}
|
|
1280
|
-
function
|
|
1280
|
+
function Be(u) {
|
|
1281
1281
|
return !(u >= 55296 && u <= 57343 || u >= 64976 && u <= 65007 || (u & 65535) === 65535 || (u & 65535) === 65534 || u >= 0 && u <= 8 || u === 11 || u >= 14 && u <= 31 || u >= 127 && u <= 159 || u > 1114111);
|
|
1282
1282
|
}
|
|
1283
|
-
function
|
|
1283
|
+
function oe(u) {
|
|
1284
1284
|
if (u > 65535) {
|
|
1285
1285
|
u -= 65536;
|
|
1286
1286
|
const e = 55296 + (u >> 10), t = 56320 + (u & 1023);
|
|
@@ -1288,38 +1288,38 @@ function ce(u) {
|
|
|
1288
1288
|
}
|
|
1289
1289
|
return String.fromCharCode(u);
|
|
1290
1290
|
}
|
|
1291
|
-
const
|
|
1292
|
-
function
|
|
1293
|
-
if (e.charCodeAt(0) === 35 &&
|
|
1291
|
+
const St = /\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g, bn = /&([a-z#][a-z0-9]{1,31});/gi, mn = new RegExp(St.source + "|" + bn.source, "gi"), xn = /^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;
|
|
1292
|
+
function _n(u, e) {
|
|
1293
|
+
if (e.charCodeAt(0) === 35 && xn.test(e)) {
|
|
1294
1294
|
const n = e[1].toLowerCase() === "x" ? parseInt(e.slice(2), 16) : parseInt(e.slice(1), 10);
|
|
1295
|
-
return
|
|
1295
|
+
return Be(n) ? oe(n) : u;
|
|
1296
1296
|
}
|
|
1297
|
-
const t =
|
|
1297
|
+
const t = Ft(u);
|
|
1298
1298
|
return t !== u ? t : u;
|
|
1299
1299
|
}
|
|
1300
|
-
function
|
|
1301
|
-
return u.indexOf("\\") < 0 ? u : u.replace(
|
|
1300
|
+
function gn(u) {
|
|
1301
|
+
return u.indexOf("\\") < 0 ? u : u.replace(St, "$1");
|
|
1302
1302
|
}
|
|
1303
|
-
function
|
|
1304
|
-
return u.indexOf("\\") < 0 && u.indexOf("&") < 0 ? u : u.replace(
|
|
1305
|
-
return t ||
|
|
1303
|
+
function Bu(u) {
|
|
1304
|
+
return u.indexOf("\\") < 0 && u.indexOf("&") < 0 ? u : u.replace(mn, function(e, t, n) {
|
|
1305
|
+
return t || _n(e, n);
|
|
1306
1306
|
});
|
|
1307
1307
|
}
|
|
1308
|
-
const
|
|
1308
|
+
const kn = /[&<>"]/, vn = /[&<>"]/g, yn = {
|
|
1309
1309
|
"&": "&",
|
|
1310
1310
|
"<": "<",
|
|
1311
1311
|
">": ">",
|
|
1312
1312
|
'"': """
|
|
1313
1313
|
};
|
|
1314
|
-
function
|
|
1315
|
-
return
|
|
1314
|
+
function An(u) {
|
|
1315
|
+
return yn[u];
|
|
1316
1316
|
}
|
|
1317
1317
|
function Du(u) {
|
|
1318
|
-
return
|
|
1318
|
+
return kn.test(u) ? u.replace(vn, An) : u;
|
|
1319
1319
|
}
|
|
1320
|
-
const
|
|
1321
|
-
function
|
|
1322
|
-
return u.replace(
|
|
1320
|
+
const Cn = /[.?*+^$[\]\\(){}|-]/g;
|
|
1321
|
+
function Dn(u) {
|
|
1322
|
+
return u.replace(Cn, "\\$&");
|
|
1323
1323
|
}
|
|
1324
1324
|
function Z(u) {
|
|
1325
1325
|
switch (u) {
|
|
@@ -1329,7 +1329,7 @@ function Z(u) {
|
|
|
1329
1329
|
}
|
|
1330
1330
|
return !1;
|
|
1331
1331
|
}
|
|
1332
|
-
function
|
|
1332
|
+
function Vu(u) {
|
|
1333
1333
|
if (u >= 8192 && u <= 8202)
|
|
1334
1334
|
return !0;
|
|
1335
1335
|
switch (u) {
|
|
@@ -1348,10 +1348,10 @@ function Uu(u) {
|
|
|
1348
1348
|
}
|
|
1349
1349
|
return !1;
|
|
1350
1350
|
}
|
|
1351
|
-
function
|
|
1352
|
-
return
|
|
1351
|
+
function Uu(u) {
|
|
1352
|
+
return Ne.test(u) || Ct.test(u);
|
|
1353
1353
|
}
|
|
1354
|
-
function
|
|
1354
|
+
function Zu(u) {
|
|
1355
1355
|
switch (u) {
|
|
1356
1356
|
case 33:
|
|
1357
1357
|
case 34:
|
|
@@ -1390,29 +1390,29 @@ function Gu(u) {
|
|
|
1390
1390
|
return !1;
|
|
1391
1391
|
}
|
|
1392
1392
|
}
|
|
1393
|
-
function
|
|
1393
|
+
function ae(u) {
|
|
1394
1394
|
return u = u.trim().replace(/\s+/g, " "), "ẞ".toLowerCase() === "Ṿ" && (u = u.replace(/ẞ/g, "ß")), u.toLowerCase().toUpperCase();
|
|
1395
1395
|
}
|
|
1396
|
-
const
|
|
1396
|
+
const En = { mdurl: Q0, ucmicro: X0 }, Fn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1397
1397
|
__proto__: null,
|
|
1398
|
-
arrayReplaceAt:
|
|
1399
|
-
assign:
|
|
1398
|
+
arrayReplaceAt: wt,
|
|
1399
|
+
assign: ce,
|
|
1400
1400
|
escapeHtml: Du,
|
|
1401
|
-
escapeRE:
|
|
1402
|
-
fromCodePoint:
|
|
1403
|
-
has:
|
|
1404
|
-
isMdAsciiPunct:
|
|
1405
|
-
isPunctChar:
|
|
1401
|
+
escapeRE: Dn,
|
|
1402
|
+
fromCodePoint: oe,
|
|
1403
|
+
has: pn,
|
|
1404
|
+
isMdAsciiPunct: Zu,
|
|
1405
|
+
isPunctChar: Uu,
|
|
1406
1406
|
isSpace: Z,
|
|
1407
|
-
isString:
|
|
1408
|
-
isValidEntityCode:
|
|
1409
|
-
isWhiteSpace:
|
|
1410
|
-
lib:
|
|
1411
|
-
normalizeReference:
|
|
1412
|
-
unescapeAll:
|
|
1413
|
-
unescapeMd:
|
|
1407
|
+
isString: Le,
|
|
1408
|
+
isValidEntityCode: Be,
|
|
1409
|
+
isWhiteSpace: Vu,
|
|
1410
|
+
lib: En,
|
|
1411
|
+
normalizeReference: ae,
|
|
1412
|
+
unescapeAll: Bu,
|
|
1413
|
+
unescapeMd: gn
|
|
1414
1414
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1415
|
-
function
|
|
1415
|
+
function wn(u, e, t) {
|
|
1416
1416
|
let n, r, o, c;
|
|
1417
1417
|
const i = u.posMax, a = u.pos;
|
|
1418
1418
|
for (u.pos = e + 1, n = 1; u.pos < i; ) {
|
|
@@ -1430,7 +1430,7 @@ function Fn(u, e, t) {
|
|
|
1430
1430
|
let s = -1;
|
|
1431
1431
|
return r && (s = u.pos), u.pos = a, s;
|
|
1432
1432
|
}
|
|
1433
|
-
function
|
|
1433
|
+
function Sn(u, e, t) {
|
|
1434
1434
|
let n, r = e;
|
|
1435
1435
|
const o = {
|
|
1436
1436
|
ok: !1,
|
|
@@ -1442,7 +1442,7 @@ function wn(u, e, t) {
|
|
|
1442
1442
|
if (n = u.charCodeAt(r), n === 10 || n === 60)
|
|
1443
1443
|
return o;
|
|
1444
1444
|
if (n === 62)
|
|
1445
|
-
return o.pos = r + 1, o.str =
|
|
1445
|
+
return o.pos = r + 1, o.str = Bu(u.slice(e + 1, r)), o.ok = !0, o;
|
|
1446
1446
|
if (n === 92 && r + 1 < t) {
|
|
1447
1447
|
r += 2;
|
|
1448
1448
|
continue;
|
|
@@ -1468,9 +1468,9 @@ function wn(u, e, t) {
|
|
|
1468
1468
|
}
|
|
1469
1469
|
r++;
|
|
1470
1470
|
}
|
|
1471
|
-
return e === r || c !== 0 || (o.str =
|
|
1471
|
+
return e === r || c !== 0 || (o.str = Bu(u.slice(e, r)), o.pos = r, o.ok = !0), o;
|
|
1472
1472
|
}
|
|
1473
|
-
function
|
|
1473
|
+
function In(u, e, t, n) {
|
|
1474
1474
|
let r, o = e;
|
|
1475
1475
|
const c = {
|
|
1476
1476
|
// if `true`, this is a valid link title
|
|
@@ -1496,18 +1496,18 @@ function Sn(u, e, t, n) {
|
|
|
1496
1496
|
}
|
|
1497
1497
|
for (; o < t; ) {
|
|
1498
1498
|
if (r = u.charCodeAt(o), r === c.marker)
|
|
1499
|
-
return c.pos = o + 1, c.str +=
|
|
1499
|
+
return c.pos = o + 1, c.str += Bu(u.slice(e, o)), c.ok = !0, c;
|
|
1500
1500
|
if (r === 40 && c.marker === 41)
|
|
1501
1501
|
return c;
|
|
1502
1502
|
r === 92 && o + 1 < t && o++, o++;
|
|
1503
1503
|
}
|
|
1504
|
-
return c.can_continue = !0, c.str +=
|
|
1504
|
+
return c.can_continue = !0, c.str += Bu(u.slice(e, o)), c;
|
|
1505
1505
|
}
|
|
1506
|
-
const
|
|
1506
|
+
const Tn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1507
1507
|
__proto__: null,
|
|
1508
|
-
parseLinkDestination:
|
|
1509
|
-
parseLinkLabel:
|
|
1510
|
-
parseLinkTitle:
|
|
1508
|
+
parseLinkDestination: Sn,
|
|
1509
|
+
parseLinkLabel: wn,
|
|
1510
|
+
parseLinkTitle: In
|
|
1511
1511
|
}, Symbol.toStringTag, { value: "Module" })), mu = {};
|
|
1512
1512
|
mu.code_inline = function(u, e, t, n, r) {
|
|
1513
1513
|
const o = u[e];
|
|
@@ -1519,7 +1519,7 @@ mu.code_block = function(u, e, t, n, r) {
|
|
|
1519
1519
|
`;
|
|
1520
1520
|
};
|
|
1521
1521
|
mu.fence = function(u, e, t, n, r) {
|
|
1522
|
-
const o = u[e], c = o.info ?
|
|
1522
|
+
const o = u[e], c = o.info ? Bu(o.info).trim() : "";
|
|
1523
1523
|
let i = "", a = "";
|
|
1524
1524
|
if (c) {
|
|
1525
1525
|
const l = c.split(/(\s+)/g);
|
|
@@ -1565,10 +1565,10 @@ mu.html_block = function(u, e) {
|
|
|
1565
1565
|
mu.html_inline = function(u, e) {
|
|
1566
1566
|
return u[e].content;
|
|
1567
1567
|
};
|
|
1568
|
-
function
|
|
1569
|
-
this.rules =
|
|
1568
|
+
function Ou() {
|
|
1569
|
+
this.rules = ce({}, mu);
|
|
1570
1570
|
}
|
|
1571
|
-
|
|
1571
|
+
Ou.prototype.renderAttrs = function(e) {
|
|
1572
1572
|
let t, n, r;
|
|
1573
1573
|
if (!e.attrs)
|
|
1574
1574
|
return "";
|
|
@@ -1576,7 +1576,7 @@ Ru.prototype.renderAttrs = function(e) {
|
|
|
1576
1576
|
r += " " + Du(e.attrs[t][0]) + '="' + Du(e.attrs[t][1]) + '"';
|
|
1577
1577
|
return r;
|
|
1578
1578
|
};
|
|
1579
|
-
|
|
1579
|
+
Ou.prototype.renderToken = function(e, t, n) {
|
|
1580
1580
|
const r = e[t];
|
|
1581
1581
|
let o = "";
|
|
1582
1582
|
if (r.hidden)
|
|
@@ -1591,7 +1591,7 @@ Ru.prototype.renderToken = function(e, t, n) {
|
|
|
1591
1591
|
return o += c ? `>
|
|
1592
1592
|
` : ">", o;
|
|
1593
1593
|
};
|
|
1594
|
-
|
|
1594
|
+
Ou.prototype.renderInline = function(u, e, t) {
|
|
1595
1595
|
let n = "";
|
|
1596
1596
|
const r = this.rules;
|
|
1597
1597
|
for (let o = 0, c = u.length; o < c; o++) {
|
|
@@ -1600,7 +1600,7 @@ Ru.prototype.renderInline = function(u, e, t) {
|
|
|
1600
1600
|
}
|
|
1601
1601
|
return n;
|
|
1602
1602
|
};
|
|
1603
|
-
|
|
1603
|
+
Ou.prototype.renderInlineAsText = function(u, e, t) {
|
|
1604
1604
|
let n = "";
|
|
1605
1605
|
for (let r = 0, o = u.length; r < o; r++)
|
|
1606
1606
|
switch (u[r].type) {
|
|
@@ -1622,7 +1622,7 @@ Ru.prototype.renderInlineAsText = function(u, e, t) {
|
|
|
1622
1622
|
}
|
|
1623
1623
|
return n;
|
|
1624
1624
|
};
|
|
1625
|
-
|
|
1625
|
+
Ou.prototype.render = function(u, e, t) {
|
|
1626
1626
|
let n = "";
|
|
1627
1627
|
const r = this.rules;
|
|
1628
1628
|
for (let o = 0, c = u.length; o < c; o++) {
|
|
@@ -1631,16 +1631,16 @@ Ru.prototype.render = function(u, e, t) {
|
|
|
1631
1631
|
}
|
|
1632
1632
|
return n;
|
|
1633
1633
|
};
|
|
1634
|
-
function
|
|
1634
|
+
function uu() {
|
|
1635
1635
|
this.__rules__ = [], this.__cache__ = null;
|
|
1636
1636
|
}
|
|
1637
|
-
|
|
1637
|
+
uu.prototype.__find__ = function(u) {
|
|
1638
1638
|
for (let e = 0; e < this.__rules__.length; e++)
|
|
1639
1639
|
if (this.__rules__[e].name === u)
|
|
1640
1640
|
return e;
|
|
1641
1641
|
return -1;
|
|
1642
1642
|
};
|
|
1643
|
-
|
|
1643
|
+
uu.prototype.__compile__ = function() {
|
|
1644
1644
|
const u = this, e = [""];
|
|
1645
1645
|
u.__rules__.forEach(function(t) {
|
|
1646
1646
|
t.enabled && t.alt.forEach(function(n) {
|
|
@@ -1652,13 +1652,13 @@ eu.prototype.__compile__ = function() {
|
|
|
1652
1652
|
});
|
|
1653
1653
|
});
|
|
1654
1654
|
};
|
|
1655
|
-
|
|
1655
|
+
uu.prototype.at = function(u, e, t) {
|
|
1656
1656
|
const n = this.__find__(u), r = t || {};
|
|
1657
1657
|
if (n === -1)
|
|
1658
1658
|
throw new Error("Parser rule not found: " + u);
|
|
1659
1659
|
this.__rules__[n].fn = e, this.__rules__[n].alt = r.alt || [], this.__cache__ = null;
|
|
1660
1660
|
};
|
|
1661
|
-
|
|
1661
|
+
uu.prototype.before = function(u, e, t, n) {
|
|
1662
1662
|
const r = this.__find__(u), o = n || {};
|
|
1663
1663
|
if (r === -1)
|
|
1664
1664
|
throw new Error("Parser rule not found: " + u);
|
|
@@ -1669,7 +1669,7 @@ eu.prototype.before = function(u, e, t, n) {
|
|
|
1669
1669
|
alt: o.alt || []
|
|
1670
1670
|
}), this.__cache__ = null;
|
|
1671
1671
|
};
|
|
1672
|
-
|
|
1672
|
+
uu.prototype.after = function(u, e, t, n) {
|
|
1673
1673
|
const r = this.__find__(u), o = n || {};
|
|
1674
1674
|
if (r === -1)
|
|
1675
1675
|
throw new Error("Parser rule not found: " + u);
|
|
@@ -1680,7 +1680,7 @@ eu.prototype.after = function(u, e, t, n) {
|
|
|
1680
1680
|
alt: o.alt || []
|
|
1681
1681
|
}), this.__cache__ = null;
|
|
1682
1682
|
};
|
|
1683
|
-
|
|
1683
|
+
uu.prototype.push = function(u, e, t) {
|
|
1684
1684
|
const n = t || {};
|
|
1685
1685
|
this.__rules__.push({
|
|
1686
1686
|
name: u,
|
|
@@ -1689,7 +1689,7 @@ eu.prototype.push = function(u, e, t) {
|
|
|
1689
1689
|
alt: n.alt || []
|
|
1690
1690
|
}), this.__cache__ = null;
|
|
1691
1691
|
};
|
|
1692
|
-
|
|
1692
|
+
uu.prototype.enable = function(u, e) {
|
|
1693
1693
|
Array.isArray(u) || (u = [u]);
|
|
1694
1694
|
const t = [];
|
|
1695
1695
|
return u.forEach(function(n) {
|
|
@@ -1702,12 +1702,12 @@ eu.prototype.enable = function(u, e) {
|
|
|
1702
1702
|
this.__rules__[r].enabled = !0, t.push(n);
|
|
1703
1703
|
}, this), this.__cache__ = null, t;
|
|
1704
1704
|
};
|
|
1705
|
-
|
|
1705
|
+
uu.prototype.enableOnly = function(u, e) {
|
|
1706
1706
|
Array.isArray(u) || (u = [u]), this.__rules__.forEach(function(t) {
|
|
1707
1707
|
t.enabled = !1;
|
|
1708
1708
|
}), this.enable(u, e);
|
|
1709
1709
|
};
|
|
1710
|
-
|
|
1710
|
+
uu.prototype.disable = function(u, e) {
|
|
1711
1711
|
Array.isArray(u) || (u = [u]);
|
|
1712
1712
|
const t = [];
|
|
1713
1713
|
return u.forEach(function(n) {
|
|
@@ -1720,7 +1720,7 @@ eu.prototype.disable = function(u, e) {
|
|
|
1720
1720
|
this.__rules__[r].enabled = !1, t.push(n);
|
|
1721
1721
|
}, this), this.__cache__ = null, t;
|
|
1722
1722
|
};
|
|
1723
|
-
|
|
1723
|
+
uu.prototype.getRules = function(u) {
|
|
1724
1724
|
return this.__cache__ === null && this.__compile__(), this.__cache__[u] || [];
|
|
1725
1725
|
};
|
|
1726
1726
|
function du(u, e, t) {
|
|
@@ -1751,34 +1751,34 @@ du.prototype.attrJoin = function(e, t) {
|
|
|
1751
1751
|
const n = this.attrIndex(e);
|
|
1752
1752
|
n < 0 ? this.attrPush([e, t]) : this.attrs[n][1] = this.attrs[n][1] + " " + t;
|
|
1753
1753
|
};
|
|
1754
|
-
function
|
|
1754
|
+
function It(u, e, t) {
|
|
1755
1755
|
this.src = u, this.env = t, this.tokens = [], this.inlineMode = !1, this.md = e;
|
|
1756
1756
|
}
|
|
1757
|
-
|
|
1758
|
-
const
|
|
1759
|
-
function
|
|
1757
|
+
It.prototype.Token = du;
|
|
1758
|
+
const zn = /\r\n?|\n/g, Nn = /\0/g;
|
|
1759
|
+
function Ln(u) {
|
|
1760
1760
|
let e;
|
|
1761
|
-
e = u.src.replace(
|
|
1762
|
-
`), e = e.replace(
|
|
1761
|
+
e = u.src.replace(zn, `
|
|
1762
|
+
`), e = e.replace(Nn, "�"), u.src = e;
|
|
1763
1763
|
}
|
|
1764
|
-
function
|
|
1764
|
+
function Bn(u) {
|
|
1765
1765
|
let e;
|
|
1766
1766
|
u.inlineMode ? (e = new u.Token("inline", "", 0), e.content = u.src, e.map = [0, 1], e.children = [], u.tokens.push(e)) : u.md.block.parse(u.src, u.md, u.env, u.tokens);
|
|
1767
1767
|
}
|
|
1768
|
-
function
|
|
1768
|
+
function qn(u) {
|
|
1769
1769
|
const e = u.tokens;
|
|
1770
1770
|
for (let t = 0, n = e.length; t < n; t++) {
|
|
1771
1771
|
const r = e[t];
|
|
1772
1772
|
r.type === "inline" && u.md.inline.parse(r.content, u.md, u.env, r.children);
|
|
1773
1773
|
}
|
|
1774
1774
|
}
|
|
1775
|
-
function
|
|
1775
|
+
function Mn(u) {
|
|
1776
1776
|
return /^<a[>\s]/i.test(u);
|
|
1777
1777
|
}
|
|
1778
|
-
function
|
|
1778
|
+
function On(u) {
|
|
1779
1779
|
return /^<\/a\s*>/i.test(u);
|
|
1780
1780
|
}
|
|
1781
|
-
function
|
|
1781
|
+
function Rn(u) {
|
|
1782
1782
|
const e = u.tokens;
|
|
1783
1783
|
if (u.md.options.linkify)
|
|
1784
1784
|
for (let t = 0, n = e.length; t < n; t++) {
|
|
@@ -1792,7 +1792,7 @@ function On(u) {
|
|
|
1792
1792
|
c--;
|
|
1793
1793
|
continue;
|
|
1794
1794
|
}
|
|
1795
|
-
if (i.type === "html_inline" && (
|
|
1795
|
+
if (i.type === "html_inline" && (Mn(i.content) && o > 0 && o--, On(i.content) && o++), !(o > 0) && i.type === "text" && u.md.linkify.test(i.content)) {
|
|
1796
1796
|
const a = i.content;
|
|
1797
1797
|
let s = u.md.linkify.match(a);
|
|
1798
1798
|
const l = [];
|
|
@@ -1806,13 +1806,13 @@ function On(u) {
|
|
|
1806
1806
|
s[h].schema ? s[h].schema === "mailto:" && !/^mailto:/i.test(y) ? y = u.md.normalizeLinkText("mailto:" + y).replace(/^mailto:/, "") : y = u.md.normalizeLinkText(y) : y = u.md.normalizeLinkText("http://" + y).replace(/^http:\/\//, "");
|
|
1807
1807
|
const C = s[h].index;
|
|
1808
1808
|
if (C > _) {
|
|
1809
|
-
const
|
|
1810
|
-
|
|
1809
|
+
const b = new u.Token("text", "", 0);
|
|
1810
|
+
b.content = a.slice(_, C), b.level = d, l.push(b);
|
|
1811
1811
|
}
|
|
1812
1812
|
const k = new u.Token("link_open", "a", 1);
|
|
1813
1813
|
k.attrs = [["href", g]], k.level = d++, k.markup = "linkify", k.info = "auto", l.push(k);
|
|
1814
|
-
const
|
|
1815
|
-
|
|
1814
|
+
const m = new u.Token("text", "", 0);
|
|
1815
|
+
m.content = y, m.level = d, l.push(m);
|
|
1816
1816
|
const p = new u.Token("link_close", "a", -1);
|
|
1817
1817
|
p.level = --d, p.markup = "linkify", p.info = "auto", l.push(p), _ = s[h].lastIndex;
|
|
1818
1818
|
}
|
|
@@ -1820,44 +1820,44 @@ function On(u) {
|
|
|
1820
1820
|
const h = new u.Token("text", "", 0);
|
|
1821
1821
|
h.content = a.slice(_), h.level = d, l.push(h);
|
|
1822
1822
|
}
|
|
1823
|
-
e[t].children = r =
|
|
1823
|
+
e[t].children = r = wt(r, c, l);
|
|
1824
1824
|
}
|
|
1825
1825
|
}
|
|
1826
1826
|
}
|
|
1827
1827
|
}
|
|
1828
|
-
const
|
|
1828
|
+
const Tt = /\+-|\.\.|\?\?\?\?|!!!!|,,|--/, Pn = /\((c|tm|r)\)/i, jn = /\((c|tm|r)\)/ig, Hn = {
|
|
1829
1829
|
c: "©",
|
|
1830
1830
|
r: "®",
|
|
1831
1831
|
tm: "™"
|
|
1832
1832
|
};
|
|
1833
|
-
function
|
|
1834
|
-
return
|
|
1833
|
+
function $n(u, e) {
|
|
1834
|
+
return Hn[e.toLowerCase()];
|
|
1835
1835
|
}
|
|
1836
|
-
function
|
|
1836
|
+
function Vn(u) {
|
|
1837
1837
|
let e = 0;
|
|
1838
1838
|
for (let t = u.length - 1; t >= 0; t--) {
|
|
1839
1839
|
const n = u[t];
|
|
1840
|
-
n.type === "text" && !e && (n.content = n.content.replace(
|
|
1840
|
+
n.type === "text" && !e && (n.content = n.content.replace(jn, $n)), n.type === "link_open" && n.info === "auto" && e--, n.type === "link_close" && n.info === "auto" && e++;
|
|
1841
1841
|
}
|
|
1842
1842
|
}
|
|
1843
|
-
function
|
|
1843
|
+
function Un(u) {
|
|
1844
1844
|
let e = 0;
|
|
1845
1845
|
for (let t = u.length - 1; t >= 0; t--) {
|
|
1846
1846
|
const n = u[t];
|
|
1847
|
-
n.type === "text" && !e &&
|
|
1847
|
+
n.type === "text" && !e && Tt.test(n.content) && (n.content = n.content.replace(/\+-/g, "±").replace(/\.{2,}/g, "…").replace(/([?!])…/g, "$1..").replace(/([?!]){4,}/g, "$1$1$1").replace(/,{2,}/g, ",").replace(/(^|[^-])---(?=[^-]|$)/mg, "$1—").replace(/(^|\s)--(?=\s|$)/mg, "$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg, "$1–")), n.type === "link_open" && n.info === "auto" && e--, n.type === "link_close" && n.info === "auto" && e++;
|
|
1848
1848
|
}
|
|
1849
1849
|
}
|
|
1850
|
-
function
|
|
1850
|
+
function Zn(u) {
|
|
1851
1851
|
let e;
|
|
1852
1852
|
if (u.md.options.typographer)
|
|
1853
1853
|
for (e = u.tokens.length - 1; e >= 0; e--)
|
|
1854
|
-
u.tokens[e].type === "inline" && (
|
|
1854
|
+
u.tokens[e].type === "inline" && (Pn.test(u.tokens[e].content) && Vn(u.tokens[e].children), Tt.test(u.tokens[e].content) && Un(u.tokens[e].children));
|
|
1855
1855
|
}
|
|
1856
|
-
const
|
|
1857
|
-
function
|
|
1856
|
+
const Gn = /['"]/, Qe = /['"]/g, We = "’";
|
|
1857
|
+
function Yu(u, e, t) {
|
|
1858
1858
|
return u.slice(0, e) + t + u.slice(e + 1);
|
|
1859
1859
|
}
|
|
1860
|
-
function
|
|
1860
|
+
function Kn(u, e) {
|
|
1861
1861
|
let t;
|
|
1862
1862
|
const n = [];
|
|
1863
1863
|
for (let r = 0; r < u.length; r++) {
|
|
@@ -1869,8 +1869,8 @@ function Gn(u, e) {
|
|
|
1869
1869
|
let i = o.content, a = 0, s = i.length;
|
|
1870
1870
|
u:
|
|
1871
1871
|
for (; a < s; ) {
|
|
1872
|
-
|
|
1873
|
-
const l =
|
|
1872
|
+
Qe.lastIndex = a;
|
|
1873
|
+
const l = Qe.exec(i);
|
|
1874
1874
|
if (!l)
|
|
1875
1875
|
break;
|
|
1876
1876
|
let d = !0, _ = !0;
|
|
@@ -1894,9 +1894,9 @@ function Gn(u, e) {
|
|
|
1894
1894
|
g = u[t].content.charCodeAt(0);
|
|
1895
1895
|
break;
|
|
1896
1896
|
}
|
|
1897
|
-
const y =
|
|
1898
|
-
if (
|
|
1899
|
-
h && (o.content =
|
|
1897
|
+
const y = Zu(f) || Uu(String.fromCharCode(f)), C = Zu(g) || Uu(String.fromCharCode(g)), k = Vu(f), m = Vu(g);
|
|
1898
|
+
if (m ? d = !1 : C && (k || y || (d = !1)), k ? _ = !1 : y && (m || C || (_ = !1)), g === 34 && l[0] === '"' && f >= 48 && f <= 57 && (_ = d = !1), d && _ && (d = y, _ = C), !d && !_) {
|
|
1899
|
+
h && (o.content = Yu(o.content, l.index, We));
|
|
1900
1900
|
continue;
|
|
1901
1901
|
}
|
|
1902
1902
|
if (_)
|
|
@@ -1906,12 +1906,12 @@ function Gn(u, e) {
|
|
|
1906
1906
|
break;
|
|
1907
1907
|
if (p.single === h && n[t].level === c) {
|
|
1908
1908
|
p = n[t];
|
|
1909
|
-
let
|
|
1910
|
-
h ? (
|
|
1909
|
+
let b, L;
|
|
1910
|
+
h ? (b = e.md.options.quotes[2], L = e.md.options.quotes[3]) : (b = e.md.options.quotes[0], L = e.md.options.quotes[1]), o.content = Yu(o.content, l.index, L), u[p.token].content = Yu(
|
|
1911
1911
|
u[p.token].content,
|
|
1912
1912
|
p.pos,
|
|
1913
|
-
|
|
1914
|
-
), a += L.length - 1, p.token === r && (a +=
|
|
1913
|
+
b
|
|
1914
|
+
), a += L.length - 1, p.token === r && (a += b.length - 1), i = o.content, s = i.length, n.length = t;
|
|
1915
1915
|
continue u;
|
|
1916
1916
|
}
|
|
1917
1917
|
}
|
|
@@ -1920,16 +1920,16 @@ function Gn(u, e) {
|
|
|
1920
1920
|
pos: l.index,
|
|
1921
1921
|
single: h,
|
|
1922
1922
|
level: c
|
|
1923
|
-
}) : _ && h && (o.content =
|
|
1923
|
+
}) : _ && h && (o.content = Yu(o.content, l.index, We));
|
|
1924
1924
|
}
|
|
1925
1925
|
}
|
|
1926
1926
|
}
|
|
1927
|
-
function
|
|
1927
|
+
function Jn(u) {
|
|
1928
1928
|
if (u.md.options.typographer)
|
|
1929
1929
|
for (let e = u.tokens.length - 1; e >= 0; e--)
|
|
1930
|
-
u.tokens[e].type !== "inline" || !
|
|
1930
|
+
u.tokens[e].type !== "inline" || !Gn.test(u.tokens[e].content) || Kn(u.tokens[e].children, u);
|
|
1931
1931
|
}
|
|
1932
|
-
function
|
|
1932
|
+
function Qn(u) {
|
|
1933
1933
|
let e, t;
|
|
1934
1934
|
const n = u.tokens, r = n.length;
|
|
1935
1935
|
for (let o = 0; o < r; o++) {
|
|
@@ -1942,28 +1942,28 @@ function Jn(u) {
|
|
|
1942
1942
|
e !== t && (c.length = t);
|
|
1943
1943
|
}
|
|
1944
1944
|
}
|
|
1945
|
-
const
|
|
1946
|
-
["normalize",
|
|
1947
|
-
["block",
|
|
1948
|
-
["inline",
|
|
1949
|
-
["linkify",
|
|
1950
|
-
["replacements",
|
|
1951
|
-
["smartquotes",
|
|
1945
|
+
const xe = [
|
|
1946
|
+
["normalize", Ln],
|
|
1947
|
+
["block", Bn],
|
|
1948
|
+
["inline", qn],
|
|
1949
|
+
["linkify", Rn],
|
|
1950
|
+
["replacements", Zn],
|
|
1951
|
+
["smartquotes", Jn],
|
|
1952
1952
|
// `text_join` finds `text_special` tokens (for escape sequences)
|
|
1953
1953
|
// and joins them with the rest of the text
|
|
1954
|
-
["text_join",
|
|
1954
|
+
["text_join", Qn]
|
|
1955
1955
|
];
|
|
1956
|
-
function
|
|
1957
|
-
this.ruler = new
|
|
1958
|
-
for (let u = 0; u <
|
|
1959
|
-
this.ruler.push(
|
|
1956
|
+
function qe() {
|
|
1957
|
+
this.ruler = new uu();
|
|
1958
|
+
for (let u = 0; u < xe.length; u++)
|
|
1959
|
+
this.ruler.push(xe[u][0], xe[u][1]);
|
|
1960
1960
|
}
|
|
1961
|
-
|
|
1961
|
+
qe.prototype.process = function(u) {
|
|
1962
1962
|
const e = this.ruler.getRules("");
|
|
1963
1963
|
for (let t = 0, n = e.length; t < n; t++)
|
|
1964
1964
|
e[t](u);
|
|
1965
1965
|
};
|
|
1966
|
-
|
|
1966
|
+
qe.prototype.State = It;
|
|
1967
1967
|
function xu(u, e, t, n) {
|
|
1968
1968
|
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;
|
|
1969
1969
|
const r = this.src;
|
|
@@ -2043,19 +2043,19 @@ xu.prototype.getLines = function(e, t, n, r) {
|
|
|
2043
2043
|
return o.join("");
|
|
2044
2044
|
};
|
|
2045
2045
|
xu.prototype.Token = du;
|
|
2046
|
-
const
|
|
2047
|
-
function
|
|
2046
|
+
const Wn = 65536;
|
|
2047
|
+
function _e(u, e) {
|
|
2048
2048
|
const t = u.bMarks[e] + u.tShift[e], n = u.eMarks[e];
|
|
2049
2049
|
return u.src.slice(t, n);
|
|
2050
2050
|
}
|
|
2051
|
-
function
|
|
2051
|
+
function Xe(u) {
|
|
2052
2052
|
const e = [], t = u.length;
|
|
2053
2053
|
let n = 0, r = u.charCodeAt(n), o = !1, c = 0, i = "";
|
|
2054
2054
|
for (; n < t; )
|
|
2055
2055
|
r === 124 && (o ? (i += u.substring(c, n - 1), c = n) : (e.push(i + u.substring(c, n)), i = "", c = n + 1)), o = r === 92, n++, r = u.charCodeAt(n);
|
|
2056
2056
|
return e.push(i + u.substring(c)), e;
|
|
2057
2057
|
}
|
|
2058
|
-
function
|
|
2058
|
+
function Xn(u, e, t, n) {
|
|
2059
2059
|
if (e + 2 > t)
|
|
2060
2060
|
return !1;
|
|
2061
2061
|
let r = e + 1;
|
|
@@ -2076,22 +2076,22 @@ function Wn(u, e, t, n) {
|
|
|
2076
2076
|
return !1;
|
|
2077
2077
|
o++;
|
|
2078
2078
|
}
|
|
2079
|
-
let a =
|
|
2079
|
+
let a = _e(u, e + 1), s = a.split("|");
|
|
2080
2080
|
const l = [];
|
|
2081
2081
|
for (let p = 0; p < s.length; p++) {
|
|
2082
|
-
const
|
|
2083
|
-
if (!
|
|
2082
|
+
const b = s[p].trim();
|
|
2083
|
+
if (!b) {
|
|
2084
2084
|
if (p === 0 || p === s.length - 1)
|
|
2085
2085
|
continue;
|
|
2086
2086
|
return !1;
|
|
2087
2087
|
}
|
|
2088
|
-
if (!/^:?-+:?$/.test(
|
|
2088
|
+
if (!/^:?-+:?$/.test(b))
|
|
2089
2089
|
return !1;
|
|
2090
|
-
|
|
2090
|
+
b.charCodeAt(b.length - 1) === 58 ? l.push(b.charCodeAt(0) === 58 ? "center" : "right") : b.charCodeAt(0) === 58 ? l.push("left") : l.push("");
|
|
2091
2091
|
}
|
|
2092
|
-
if (a =
|
|
2092
|
+
if (a = _e(u, e).trim(), a.indexOf("|") === -1 || u.sCount[e] - u.blkIndent >= 4)
|
|
2093
2093
|
return !1;
|
|
2094
|
-
s =
|
|
2094
|
+
s = Xe(a), s.length && s[0] === "" && s.shift(), s.length && s[s.length - 1] === "" && s.pop();
|
|
2095
2095
|
const d = s.length;
|
|
2096
2096
|
if (d === 0 || d !== l.length)
|
|
2097
2097
|
return !1;
|
|
@@ -2106,13 +2106,13 @@ function Wn(u, e, t, n) {
|
|
|
2106
2106
|
const C = u.push("tr_open", "tr", 1);
|
|
2107
2107
|
C.map = [e, e + 1];
|
|
2108
2108
|
for (let p = 0; p < s.length; p++) {
|
|
2109
|
-
const
|
|
2110
|
-
l[p] && (
|
|
2109
|
+
const b = u.push("th_open", "th", 1);
|
|
2110
|
+
l[p] && (b.attrs = [["style", "text-align:" + l[p]]]);
|
|
2111
2111
|
const L = u.push("inline", "", 0);
|
|
2112
2112
|
L.content = s[p].trim(), L.children = [], u.push("th_close", "th", -1);
|
|
2113
2113
|
}
|
|
2114
2114
|
u.push("tr_close", "tr", -1), u.push("thead_close", "thead", -1);
|
|
2115
|
-
let k,
|
|
2115
|
+
let k, m = 0;
|
|
2116
2116
|
for (r = e + 2; r < t && !(u.sCount[r] < u.blkIndent); r++) {
|
|
2117
2117
|
let p = !1;
|
|
2118
2118
|
for (let L = 0, S = h.length; L < S; L++)
|
|
@@ -2120,14 +2120,14 @@ function Wn(u, e, t, n) {
|
|
|
2120
2120
|
p = !0;
|
|
2121
2121
|
break;
|
|
2122
2122
|
}
|
|
2123
|
-
if (p || (a =
|
|
2123
|
+
if (p || (a = _e(u, r).trim(), !a) || u.sCount[r] - u.blkIndent >= 4 || (s = Xe(a), s.length && s[0] === "" && s.shift(), s.length && s[s.length - 1] === "" && s.pop(), m += d - s.length, m > Wn))
|
|
2124
2124
|
break;
|
|
2125
2125
|
if (r === e + 2) {
|
|
2126
2126
|
const L = u.push("tbody_open", "tbody", 1);
|
|
2127
2127
|
L.map = k = [e + 2, 0];
|
|
2128
2128
|
}
|
|
2129
|
-
const
|
|
2130
|
-
|
|
2129
|
+
const b = u.push("tr_open", "tr", 1);
|
|
2130
|
+
b.map = [r, r + 1];
|
|
2131
2131
|
for (let L = 0; L < d; L++) {
|
|
2132
2132
|
const S = u.push("td_open", "td", 1);
|
|
2133
2133
|
l[L] && (S.attrs = [["style", "text-align:" + l[L]]]);
|
|
@@ -2138,7 +2138,7 @@ function Wn(u, e, t, n) {
|
|
|
2138
2138
|
}
|
|
2139
2139
|
return k && (u.push("tbody_close", "tbody", -1), k[1] = r), u.push("table_close", "table", -1), g[1] = r, u.parentType = _, u.line = r, !0;
|
|
2140
2140
|
}
|
|
2141
|
-
function
|
|
2141
|
+
function Yn(u, e, t) {
|
|
2142
2142
|
if (u.sCount[e] - u.blkIndent < 4)
|
|
2143
2143
|
return !1;
|
|
2144
2144
|
let n = e + 1, r = n;
|
|
@@ -2158,7 +2158,7 @@ function Xn(u, e, t) {
|
|
|
2158
2158
|
return o.content = u.getLines(e, r, 4 + u.blkIndent, !1) + `
|
|
2159
2159
|
`, o.map = [e, u.line], !0;
|
|
2160
2160
|
}
|
|
2161
|
-
function
|
|
2161
|
+
function ur(u, e, t, n) {
|
|
2162
2162
|
let r = u.bMarks[e] + u.tShift[e], o = u.eMarks[e];
|
|
2163
2163
|
if (u.sCount[e] - u.blkIndent >= 4 || r + 3 > o)
|
|
2164
2164
|
return !1;
|
|
@@ -2185,7 +2185,7 @@ function Yn(u, e, t, n) {
|
|
|
2185
2185
|
const h = u.push("fence", "code", 0);
|
|
2186
2186
|
return h.info = l, h.content = u.getLines(e + 1, d, a, !0), h.markup = s, h.map = [e, u.line], !0;
|
|
2187
2187
|
}
|
|
2188
|
-
function
|
|
2188
|
+
function er(u, e, t, n) {
|
|
2189
2189
|
let r = u.bMarks[e] + u.tShift[e], o = u.eMarks[e];
|
|
2190
2190
|
const c = u.lineMax;
|
|
2191
2191
|
if (u.sCount[e] - u.blkIndent >= 4 || u.src.charCodeAt(r) !== 62)
|
|
@@ -2196,29 +2196,29 @@ function ur(u, e, t, n) {
|
|
|
2196
2196
|
u.parentType = "blockquote";
|
|
2197
2197
|
let h = !1, f;
|
|
2198
2198
|
for (f = e; f < t; f++) {
|
|
2199
|
-
const
|
|
2199
|
+
const m = u.sCount[f] < u.blkIndent;
|
|
2200
2200
|
if (r = u.bMarks[f] + u.tShift[f], o = u.eMarks[f], r >= o)
|
|
2201
2201
|
break;
|
|
2202
|
-
if (u.src.charCodeAt(r++) === 62 && !
|
|
2203
|
-
let
|
|
2204
|
-
u.src.charCodeAt(r) === 32 ? (r++,
|
|
2205
|
-
let H =
|
|
2202
|
+
if (u.src.charCodeAt(r++) === 62 && !m) {
|
|
2203
|
+
let b = u.sCount[f] + 1, L, S;
|
|
2204
|
+
u.src.charCodeAt(r) === 32 ? (r++, b++, S = !1, L = !0) : u.src.charCodeAt(r) === 9 ? (L = !0, (u.bsCount[f] + b) % 4 === 3 ? (r++, b++, S = !1) : S = !0) : L = !1;
|
|
2205
|
+
let H = b;
|
|
2206
2206
|
for (i.push(u.bMarks[f]), u.bMarks[f] = r; r < o; ) {
|
|
2207
|
-
const
|
|
2208
|
-
if (Z(
|
|
2209
|
-
|
|
2207
|
+
const O = u.src.charCodeAt(r);
|
|
2208
|
+
if (Z(O))
|
|
2209
|
+
O === 9 ? H += 4 - (H + u.bsCount[f] + (S ? 1 : 0)) % 4 : H++;
|
|
2210
2210
|
else
|
|
2211
2211
|
break;
|
|
2212
2212
|
r++;
|
|
2213
2213
|
}
|
|
2214
|
-
h = r >= o, a.push(u.bsCount[f]), u.bsCount[f] = u.sCount[f] + 1 + (L ? 1 : 0), s.push(u.sCount[f]), u.sCount[f] = H -
|
|
2214
|
+
h = r >= o, a.push(u.bsCount[f]), u.bsCount[f] = u.sCount[f] + 1 + (L ? 1 : 0), s.push(u.sCount[f]), u.sCount[f] = H - b, l.push(u.tShift[f]), u.tShift[f] = r - u.bMarks[f];
|
|
2215
2215
|
continue;
|
|
2216
2216
|
}
|
|
2217
2217
|
if (h)
|
|
2218
2218
|
break;
|
|
2219
2219
|
let p = !1;
|
|
2220
|
-
for (let
|
|
2221
|
-
if (d[
|
|
2220
|
+
for (let b = 0, L = d.length; b < L; b++)
|
|
2221
|
+
if (d[b](u, f, t, !0)) {
|
|
2222
2222
|
p = !0;
|
|
2223
2223
|
break;
|
|
2224
2224
|
}
|
|
@@ -2236,11 +2236,11 @@ function ur(u, e, t, n) {
|
|
|
2236
2236
|
y.map = C, u.md.block.tokenize(u, e, f);
|
|
2237
2237
|
const k = u.push("blockquote_close", "blockquote", -1);
|
|
2238
2238
|
k.markup = ">", u.lineMax = c, u.parentType = _, C[1] = u.line;
|
|
2239
|
-
for (let
|
|
2240
|
-
u.bMarks[
|
|
2239
|
+
for (let m = 0; m < l.length; m++)
|
|
2240
|
+
u.bMarks[m + e] = i[m], u.tShift[m + e] = l[m], u.sCount[m + e] = s[m], u.bsCount[m + e] = a[m];
|
|
2241
2241
|
return u.blkIndent = g, !0;
|
|
2242
2242
|
}
|
|
2243
|
-
function
|
|
2243
|
+
function tr(u, e, t, n) {
|
|
2244
2244
|
const r = u.eMarks[e];
|
|
2245
2245
|
if (u.sCount[e] - u.blkIndent >= 4)
|
|
2246
2246
|
return !1;
|
|
@@ -2263,7 +2263,7 @@ function er(u, e, t, n) {
|
|
|
2263
2263
|
const a = u.push("hr", "hr", 0);
|
|
2264
2264
|
return a.map = [e, u.line], a.markup = Array(i + 1).join(String.fromCharCode(c)), !0;
|
|
2265
2265
|
}
|
|
2266
|
-
function
|
|
2266
|
+
function Ye(u, e) {
|
|
2267
2267
|
const t = u.eMarks[e];
|
|
2268
2268
|
let n = u.bMarks[e] + u.tShift[e];
|
|
2269
2269
|
const r = u.src.charCodeAt(n++);
|
|
@@ -2276,7 +2276,7 @@ function Xe(u, e) {
|
|
|
2276
2276
|
}
|
|
2277
2277
|
return n;
|
|
2278
2278
|
}
|
|
2279
|
-
function
|
|
2279
|
+
function ut(u, e) {
|
|
2280
2280
|
const t = u.bMarks[e] + u.tShift[e], n = u.eMarks[e];
|
|
2281
2281
|
let r = t;
|
|
2282
2282
|
if (r + 1 >= n)
|
|
@@ -2298,21 +2298,21 @@ function Ye(u, e) {
|
|
|
2298
2298
|
}
|
|
2299
2299
|
return r < n && (o = u.src.charCodeAt(r), !Z(o)) ? -1 : r;
|
|
2300
2300
|
}
|
|
2301
|
-
function
|
|
2301
|
+
function nr(u, e) {
|
|
2302
2302
|
const t = u.level + 2;
|
|
2303
2303
|
for (let n = e + 2, r = u.tokens.length - 2; n < r; n++)
|
|
2304
2304
|
u.tokens[n].level === t && u.tokens[n].type === "paragraph_open" && (u.tokens[n + 2].hidden = !0, u.tokens[n].hidden = !0, n += 2);
|
|
2305
2305
|
}
|
|
2306
|
-
function
|
|
2306
|
+
function rr(u, e, t, n) {
|
|
2307
2307
|
let r, o, c, i, a = e, s = !0;
|
|
2308
2308
|
if (u.sCount[a] - u.blkIndent >= 4 || u.listIndent >= 0 && u.sCount[a] - u.listIndent >= 4 && u.sCount[a] < u.blkIndent)
|
|
2309
2309
|
return !1;
|
|
2310
2310
|
let l = !1;
|
|
2311
2311
|
n && u.parentType === "paragraph" && u.sCount[a] >= u.blkIndent && (l = !0);
|
|
2312
2312
|
let d, _, h;
|
|
2313
|
-
if ((h =
|
|
2313
|
+
if ((h = ut(u, a)) >= 0) {
|
|
2314
2314
|
if (d = !0, c = u.bMarks[a] + u.tShift[a], _ = Number(u.src.slice(c, h - 1)), l && _ !== 1) return !1;
|
|
2315
|
-
} else if ((h =
|
|
2315
|
+
} else if ((h = Ye(u, a)) >= 0)
|
|
2316
2316
|
d = !1;
|
|
2317
2317
|
else
|
|
2318
2318
|
return !1;
|
|
@@ -2325,73 +2325,73 @@ function nr(u, e, t, n) {
|
|
|
2325
2325
|
const y = [a, 0];
|
|
2326
2326
|
i.map = y, i.markup = String.fromCharCode(f);
|
|
2327
2327
|
let C = !1;
|
|
2328
|
-
const k = u.md.block.ruler.getRules("list"),
|
|
2328
|
+
const k = u.md.block.ruler.getRules("list"), m = u.parentType;
|
|
2329
2329
|
for (u.parentType = "list"; a < t; ) {
|
|
2330
2330
|
o = h, r = u.eMarks[a];
|
|
2331
2331
|
const p = u.sCount[a] + h - (u.bMarks[a] + u.tShift[a]);
|
|
2332
|
-
let
|
|
2332
|
+
let b = p;
|
|
2333
2333
|
for (; o < r; ) {
|
|
2334
|
-
const
|
|
2335
|
-
if (
|
|
2336
|
-
|
|
2337
|
-
else if (
|
|
2338
|
-
|
|
2334
|
+
const ru = u.src.charCodeAt(o);
|
|
2335
|
+
if (ru === 9)
|
|
2336
|
+
b += 4 - (b + u.bsCount[a]) % 4;
|
|
2337
|
+
else if (ru === 32)
|
|
2338
|
+
b++;
|
|
2339
2339
|
else
|
|
2340
2340
|
break;
|
|
2341
2341
|
o++;
|
|
2342
2342
|
}
|
|
2343
2343
|
const L = o;
|
|
2344
2344
|
let S;
|
|
2345
|
-
L >= r ? S = 1 : S =
|
|
2345
|
+
L >= r ? S = 1 : S = b - p, S > 4 && (S = 1);
|
|
2346
2346
|
const H = p + S;
|
|
2347
2347
|
i = u.push("list_item_open", "li", 1), i.markup = String.fromCharCode(f);
|
|
2348
|
-
const
|
|
2349
|
-
i.map =
|
|
2350
|
-
const G = u.tight, _u = u.tShift[a],
|
|
2351
|
-
if (u.listIndent = u.blkIndent, u.blkIndent = H, u.tight = !0, u.tShift[a] = L - u.bMarks[a], u.sCount[a] =
|
|
2348
|
+
const O = [a, 0];
|
|
2349
|
+
i.map = O, d && (i.info = u.src.slice(c, h - 1));
|
|
2350
|
+
const G = u.tight, _u = u.tShift[a], Ru = u.sCount[a], gu = u.listIndent;
|
|
2351
|
+
if (u.listIndent = u.blkIndent, u.blkIndent = H, u.tight = !0, u.tShift[a] = L - u.bMarks[a], u.sCount[a] = b, L >= r && u.isEmpty(a + 1) ? u.line = Math.min(u.line + 2, t) : u.md.block.tokenize(u, a, t, !0), (!u.tight || C) && (s = !1), C = u.line - a > 1 && u.isEmpty(u.line - 1), u.blkIndent = u.listIndent, u.listIndent = gu, u.tShift[a] = _u, u.sCount[a] = Ru, u.tight = G, i = u.push("list_item_close", "li", -1), i.markup = String.fromCharCode(f), a = u.line, O[1] = a, a >= t || u.sCount[a] < u.blkIndent || u.sCount[a] - u.blkIndent >= 4)
|
|
2352
2352
|
break;
|
|
2353
|
-
let
|
|
2354
|
-
for (let
|
|
2355
|
-
if (k[
|
|
2356
|
-
|
|
2353
|
+
let fu = !1;
|
|
2354
|
+
for (let ru = 0, Pu = k.length; ru < Pu; ru++)
|
|
2355
|
+
if (k[ru](u, a, t, !0)) {
|
|
2356
|
+
fu = !0;
|
|
2357
2357
|
break;
|
|
2358
2358
|
}
|
|
2359
|
-
if (
|
|
2359
|
+
if (fu)
|
|
2360
2360
|
break;
|
|
2361
2361
|
if (d) {
|
|
2362
|
-
if (h =
|
|
2362
|
+
if (h = ut(u, a), h < 0)
|
|
2363
2363
|
break;
|
|
2364
2364
|
c = u.bMarks[a] + u.tShift[a];
|
|
2365
|
-
} else if (h =
|
|
2365
|
+
} else if (h = Ye(u, a), h < 0)
|
|
2366
2366
|
break;
|
|
2367
2367
|
if (f !== u.src.charCodeAt(h - 1))
|
|
2368
2368
|
break;
|
|
2369
2369
|
}
|
|
2370
|
-
return d ? i = u.push("ordered_list_close", "ol", -1) : i = u.push("bullet_list_close", "ul", -1), i.markup = String.fromCharCode(f), y[1] = a, u.line = a, u.parentType =
|
|
2370
|
+
return d ? i = u.push("ordered_list_close", "ol", -1) : i = u.push("bullet_list_close", "ul", -1), i.markup = String.fromCharCode(f), y[1] = a, u.line = a, u.parentType = m, s && nr(u, g), !0;
|
|
2371
2371
|
}
|
|
2372
|
-
function
|
|
2372
|
+
function or(u, e, t, n) {
|
|
2373
2373
|
let r = u.bMarks[e] + u.tShift[e], o = u.eMarks[e], c = e + 1;
|
|
2374
2374
|
if (u.sCount[e] - u.blkIndent >= 4 || u.src.charCodeAt(r) !== 91)
|
|
2375
2375
|
return !1;
|
|
2376
2376
|
function i(k) {
|
|
2377
|
-
const
|
|
2378
|
-
if (k >=
|
|
2377
|
+
const m = u.lineMax;
|
|
2378
|
+
if (k >= m || u.isEmpty(k))
|
|
2379
2379
|
return null;
|
|
2380
2380
|
let p = !1;
|
|
2381
2381
|
if (u.sCount[k] - u.blkIndent > 3 && (p = !0), u.sCount[k] < 0 && (p = !0), !p) {
|
|
2382
2382
|
const S = u.md.block.ruler.getRules("reference"), H = u.parentType;
|
|
2383
2383
|
u.parentType = "reference";
|
|
2384
|
-
let
|
|
2384
|
+
let O = !1;
|
|
2385
2385
|
for (let G = 0, _u = S.length; G < _u; G++)
|
|
2386
|
-
if (S[G](u, k,
|
|
2387
|
-
|
|
2386
|
+
if (S[G](u, k, m, !0)) {
|
|
2387
|
+
O = !0;
|
|
2388
2388
|
break;
|
|
2389
2389
|
}
|
|
2390
|
-
if (u.parentType = H,
|
|
2390
|
+
if (u.parentType = H, O)
|
|
2391
2391
|
return null;
|
|
2392
2392
|
}
|
|
2393
|
-
const
|
|
2394
|
-
return u.src.slice(
|
|
2393
|
+
const b = u.bMarks[k] + u.tShift[k], L = u.eMarks[k];
|
|
2394
|
+
return u.src.slice(b, L + 1);
|
|
2395
2395
|
}
|
|
2396
2396
|
let a = u.src.slice(r, o + 1);
|
|
2397
2397
|
o = a.length;
|
|
@@ -2404,11 +2404,11 @@ function rr(u, e, t, n) {
|
|
|
2404
2404
|
s = r;
|
|
2405
2405
|
break;
|
|
2406
2406
|
} else if (k === 10) {
|
|
2407
|
-
const
|
|
2408
|
-
|
|
2407
|
+
const m = i(c);
|
|
2408
|
+
m !== null && (a += m, o = a.length, c++);
|
|
2409
2409
|
} else if (k === 92 && (r++, r < o && a.charCodeAt(r) === 10)) {
|
|
2410
|
-
const
|
|
2411
|
-
|
|
2410
|
+
const m = i(c);
|
|
2411
|
+
m !== null && (a += m, o = a.length, c++);
|
|
2412
2412
|
}
|
|
2413
2413
|
}
|
|
2414
2414
|
if (s < 0 || a.charCodeAt(s + 1) !== 58)
|
|
@@ -2416,8 +2416,8 @@ function rr(u, e, t, n) {
|
|
|
2416
2416
|
for (r = s + 2; r < o; r++) {
|
|
2417
2417
|
const k = a.charCodeAt(r);
|
|
2418
2418
|
if (k === 10) {
|
|
2419
|
-
const
|
|
2420
|
-
|
|
2419
|
+
const m = i(c);
|
|
2420
|
+
m !== null && (a += m, o = a.length, c++);
|
|
2421
2421
|
} else if (!Z(k)) break;
|
|
2422
2422
|
}
|
|
2423
2423
|
const l = u.md.helpers.parseLinkDestination(a, r, o);
|
|
@@ -2431,8 +2431,8 @@ function rr(u, e, t, n) {
|
|
|
2431
2431
|
for (; r < o; r++) {
|
|
2432
2432
|
const k = a.charCodeAt(r);
|
|
2433
2433
|
if (k === 10) {
|
|
2434
|
-
const
|
|
2435
|
-
|
|
2434
|
+
const m = i(c);
|
|
2435
|
+
m !== null && (a += m, o = a.length, c++);
|
|
2436
2436
|
} else if (!Z(k)) break;
|
|
2437
2437
|
}
|
|
2438
2438
|
let g = u.md.helpers.parseLinkTitle(a, r, o);
|
|
@@ -2457,10 +2457,10 @@ function rr(u, e, t, n) {
|
|
|
2457
2457
|
}
|
|
2458
2458
|
if (r < o && a.charCodeAt(r) !== 10)
|
|
2459
2459
|
return !1;
|
|
2460
|
-
const C =
|
|
2460
|
+
const C = ae(a.slice(1, s));
|
|
2461
2461
|
return C ? (n || (typeof u.env.references > "u" && (u.env.references = {}), typeof u.env.references[C] > "u" && (u.env.references[C] = { title: y, href: d }), u.line = c), !0) : !1;
|
|
2462
2462
|
}
|
|
2463
|
-
const
|
|
2463
|
+
const ir = [
|
|
2464
2464
|
"address",
|
|
2465
2465
|
"article",
|
|
2466
2466
|
"aside",
|
|
@@ -2523,30 +2523,30 @@ const or = [
|
|
|
2523
2523
|
"tr",
|
|
2524
2524
|
"track",
|
|
2525
2525
|
"ul"
|
|
2526
|
-
],
|
|
2526
|
+
], cr = "[a-zA-Z_:][a-zA-Z0-9:._-]*", ar = "[^\"'=<>`\\x00-\\x20]+", sr = "'[^']*'", lr = '"[^"]*"', dr = "(?:" + ar + "|" + sr + "|" + lr + ")", fr = "(?:\\s+" + cr + "(?:\\s*=\\s*" + dr + ")?)", zt = "<[A-Za-z][A-Za-z0-9\\-]*" + fr + "*\\s*\\/?>", Nt = "<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>", hr = "<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->", pr = "<[?][\\s\\S]*?[?]>", br = "<![A-Za-z][^>]*>", mr = "<!\\[CDATA\\[[\\s\\S]*?\\]\\]>", xr = new RegExp("^(?:" + zt + "|" + Nt + "|" + hr + "|" + pr + "|" + br + "|" + mr + ")"), _r = new RegExp("^(?:" + zt + "|" + Nt + ")"), Tu = [
|
|
2527
2527
|
[/^<(script|pre|style|textarea)(?=(\s|>|$))/i, /<\/(script|pre|style|textarea)>/i, !0],
|
|
2528
2528
|
[/^<!--/, /-->/, !0],
|
|
2529
2529
|
[/^<\?/, /\?>/, !0],
|
|
2530
2530
|
[/^<![A-Z]/, />/, !0],
|
|
2531
2531
|
[/^<!\[CDATA\[/, /\]\]>/, !0],
|
|
2532
|
-
[new RegExp("^</?(" +
|
|
2533
|
-
[new RegExp(
|
|
2532
|
+
[new RegExp("^</?(" + ir.join("|") + ")(?=(\\s|/?>|$))", "i"), /^$/, !0],
|
|
2533
|
+
[new RegExp(_r.source + "\\s*$"), /^$/, !1]
|
|
2534
2534
|
];
|
|
2535
|
-
function
|
|
2535
|
+
function gr(u, e, t, n) {
|
|
2536
2536
|
let r = u.bMarks[e] + u.tShift[e], o = u.eMarks[e];
|
|
2537
2537
|
if (u.sCount[e] - u.blkIndent >= 4 || !u.md.options.html || u.src.charCodeAt(r) !== 60)
|
|
2538
2538
|
return !1;
|
|
2539
2539
|
let c = u.src.slice(r, o), i = 0;
|
|
2540
|
-
for (; i <
|
|
2540
|
+
for (; i < Tu.length && !Tu[i][0].test(c); i++)
|
|
2541
2541
|
;
|
|
2542
|
-
if (i ===
|
|
2542
|
+
if (i === Tu.length)
|
|
2543
2543
|
return !1;
|
|
2544
2544
|
if (n)
|
|
2545
|
-
return
|
|
2545
|
+
return Tu[i][2];
|
|
2546
2546
|
let a = e + 1;
|
|
2547
|
-
if (!
|
|
2547
|
+
if (!Tu[i][1].test(c)) {
|
|
2548
2548
|
for (; a < t && !(u.sCount[a] < u.blkIndent); a++)
|
|
2549
|
-
if (r = u.bMarks[a] + u.tShift[a], o = u.eMarks[a], c = u.src.slice(r, o),
|
|
2549
|
+
if (r = u.bMarks[a] + u.tShift[a], o = u.eMarks[a], c = u.src.slice(r, o), Tu[i][1].test(c)) {
|
|
2550
2550
|
c.length !== 0 && a++;
|
|
2551
2551
|
break;
|
|
2552
2552
|
}
|
|
@@ -2555,7 +2555,7 @@ function _r(u, e, t, n) {
|
|
|
2555
2555
|
const s = u.push("html_block", "", 0);
|
|
2556
2556
|
return s.map = [e, a], s.content = u.getLines(e, a, u.blkIndent, !0), !0;
|
|
2557
2557
|
}
|
|
2558
|
-
function
|
|
2558
|
+
function kr(u, e, t, n) {
|
|
2559
2559
|
let r = u.bMarks[e] + u.tShift[e], o = u.eMarks[e];
|
|
2560
2560
|
if (u.sCount[e] - u.blkIndent >= 4)
|
|
2561
2561
|
return !1;
|
|
@@ -2579,7 +2579,7 @@ function gr(u, e, t, n) {
|
|
|
2579
2579
|
const d = u.push("heading_close", "h" + String(i), -1);
|
|
2580
2580
|
return d.markup = "########".slice(0, i), !0;
|
|
2581
2581
|
}
|
|
2582
|
-
function
|
|
2582
|
+
function vr(u, e, t) {
|
|
2583
2583
|
const n = u.md.block.ruler.getRules("paragraph");
|
|
2584
2584
|
if (u.sCount[e] - u.blkIndent >= 4)
|
|
2585
2585
|
return !1;
|
|
@@ -2619,7 +2619,7 @@ function kr(u, e, t) {
|
|
|
2619
2619
|
const d = u.push("heading_close", "h" + String(o), -1);
|
|
2620
2620
|
return d.markup = String.fromCharCode(c), u.parentType = r, !0;
|
|
2621
2621
|
}
|
|
2622
|
-
function
|
|
2622
|
+
function yr(u, e, t) {
|
|
2623
2623
|
const n = u.md.block.ruler.getRules("paragraph"), r = u.parentType;
|
|
2624
2624
|
let o = e + 1;
|
|
2625
2625
|
for (u.parentType = "paragraph"; o < t && !u.isEmpty(o); o++) {
|
|
@@ -2641,27 +2641,27 @@ function vr(u, e, t) {
|
|
|
2641
2641
|
const a = u.push("inline", "", 0);
|
|
2642
2642
|
return a.content = c, a.map = [e, u.line], a.children = [], u.push("paragraph_close", "p", -1), u.parentType = r, !0;
|
|
2643
2643
|
}
|
|
2644
|
-
const
|
|
2644
|
+
const ue = [
|
|
2645
2645
|
// First 2 params - rule name & source. Secondary array - list of rules,
|
|
2646
2646
|
// which can be terminated by this one.
|
|
2647
|
-
["table",
|
|
2648
|
-
["code",
|
|
2649
|
-
["fence",
|
|
2650
|
-
["blockquote",
|
|
2651
|
-
["hr",
|
|
2652
|
-
["list",
|
|
2653
|
-
["reference",
|
|
2654
|
-
["html_block",
|
|
2655
|
-
["heading",
|
|
2656
|
-
["lheading",
|
|
2657
|
-
["paragraph",
|
|
2647
|
+
["table", Xn, ["paragraph", "reference"]],
|
|
2648
|
+
["code", Yn],
|
|
2649
|
+
["fence", ur, ["paragraph", "reference", "blockquote", "list"]],
|
|
2650
|
+
["blockquote", er, ["paragraph", "reference", "blockquote", "list"]],
|
|
2651
|
+
["hr", tr, ["paragraph", "reference", "blockquote", "list"]],
|
|
2652
|
+
["list", rr, ["paragraph", "reference", "blockquote"]],
|
|
2653
|
+
["reference", or],
|
|
2654
|
+
["html_block", gr, ["paragraph", "reference", "blockquote"]],
|
|
2655
|
+
["heading", kr, ["paragraph", "reference", "blockquote"]],
|
|
2656
|
+
["lheading", vr],
|
|
2657
|
+
["paragraph", yr]
|
|
2658
2658
|
];
|
|
2659
|
-
function
|
|
2660
|
-
this.ruler = new
|
|
2661
|
-
for (let u = 0; u <
|
|
2662
|
-
this.ruler.push(
|
|
2659
|
+
function se() {
|
|
2660
|
+
this.ruler = new uu();
|
|
2661
|
+
for (let u = 0; u < ue.length; u++)
|
|
2662
|
+
this.ruler.push(ue[u][0], ue[u][1], { alt: (ue[u][2] || []).slice() });
|
|
2663
2663
|
}
|
|
2664
|
-
|
|
2664
|
+
se.prototype.tokenize = function(u, e, t) {
|
|
2665
2665
|
const n = this.ruler.getRules(""), r = n.length, o = u.md.options.maxNesting;
|
|
2666
2666
|
let c = e, i = !1;
|
|
2667
2667
|
for (; c < t && (u.line = c = u.skipEmptyLines(c), !(c >= t || u.sCount[c] < u.blkIndent)); ) {
|
|
@@ -2681,36 +2681,36 @@ de.prototype.tokenize = function(u, e, t) {
|
|
|
2681
2681
|
u.tight = !i, u.isEmpty(u.line - 1) && (i = !0), c = u.line, c < t && u.isEmpty(c) && (i = !0, c++, u.line = c);
|
|
2682
2682
|
}
|
|
2683
2683
|
};
|
|
2684
|
-
|
|
2684
|
+
se.prototype.parse = function(u, e, t, n) {
|
|
2685
2685
|
if (!u)
|
|
2686
2686
|
return;
|
|
2687
2687
|
const r = new this.State(u, e, t, n);
|
|
2688
2688
|
this.tokenize(r, r.line, r.lineMax);
|
|
2689
2689
|
};
|
|
2690
|
-
|
|
2691
|
-
function
|
|
2690
|
+
se.prototype.State = xu;
|
|
2691
|
+
function Wu(u, e, t, n) {
|
|
2692
2692
|
this.src = u, this.env = t, this.md = e, this.tokens = n, this.tokens_meta = Array(n.length), this.pos = 0, this.posMax = this.src.length, this.level = 0, this.pending = "", this.pendingLevel = 0, this.cache = {}, this.delimiters = [], this._prev_delimiters = [], this.backticks = {}, this.backticksScanned = !1, this.linkLevel = 0;
|
|
2693
2693
|
}
|
|
2694
|
-
|
|
2694
|
+
Wu.prototype.pushPending = function() {
|
|
2695
2695
|
const u = new du("text", "", 0);
|
|
2696
2696
|
return u.content = this.pending, u.level = this.pendingLevel, this.tokens.push(u), this.pending = "", u;
|
|
2697
2697
|
};
|
|
2698
|
-
|
|
2698
|
+
Wu.prototype.push = function(u, e, t) {
|
|
2699
2699
|
this.pending && this.pushPending();
|
|
2700
2700
|
const n = new du(u, e, t);
|
|
2701
2701
|
let r = null;
|
|
2702
2702
|
return t < 0 && (this.level--, this.delimiters = this._prev_delimiters.pop()), n.level = this.level, t > 0 && (this.level++, this._prev_delimiters.push(this.delimiters), this.delimiters = [], r = { delimiters: this.delimiters }), this.pendingLevel = this.level, this.tokens.push(n), this.tokens_meta.push(r), n;
|
|
2703
2703
|
};
|
|
2704
|
-
|
|
2704
|
+
Wu.prototype.scanDelims = function(u, e) {
|
|
2705
2705
|
const t = this.posMax, n = this.src.charCodeAt(u), r = u > 0 ? this.src.charCodeAt(u - 1) : 32;
|
|
2706
2706
|
let o = u;
|
|
2707
2707
|
for (; o < t && this.src.charCodeAt(o) === n; )
|
|
2708
2708
|
o++;
|
|
2709
|
-
const c = o - u, i = o < t ? this.src.charCodeAt(o) : 32, a =
|
|
2709
|
+
const c = o - u, i = o < t ? this.src.charCodeAt(o) : 32, a = Zu(r) || Uu(String.fromCharCode(r)), s = Zu(i) || Uu(String.fromCharCode(i)), l = Vu(r), d = Vu(i), _ = !d && (!s || l || a), h = !l && (!a || d || s);
|
|
2710
2710
|
return { can_open: _ && (e || !h || a), can_close: h && (e || !_ || s), length: c };
|
|
2711
2711
|
};
|
|
2712
|
-
|
|
2713
|
-
function
|
|
2712
|
+
Wu.prototype.Token = du;
|
|
2713
|
+
function Ar(u) {
|
|
2714
2714
|
switch (u) {
|
|
2715
2715
|
case 10:
|
|
2716
2716
|
case 33:
|
|
@@ -2740,18 +2740,18 @@ function yr(u) {
|
|
|
2740
2740
|
return !1;
|
|
2741
2741
|
}
|
|
2742
2742
|
}
|
|
2743
|
-
function
|
|
2743
|
+
function Cr(u, e) {
|
|
2744
2744
|
let t = u.pos;
|
|
2745
|
-
for (; t < u.posMax && !
|
|
2745
|
+
for (; t < u.posMax && !Ar(u.src.charCodeAt(t)); )
|
|
2746
2746
|
t++;
|
|
2747
2747
|
return t === u.pos ? !1 : (e || (u.pending += u.src.slice(u.pos, t)), u.pos = t, !0);
|
|
2748
2748
|
}
|
|
2749
|
-
const
|
|
2750
|
-
function
|
|
2749
|
+
const Dr = /(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;
|
|
2750
|
+
function Er(u, e) {
|
|
2751
2751
|
if (!u.md.options.linkify || u.linkLevel > 0) return !1;
|
|
2752
2752
|
const t = u.pos, n = u.posMax;
|
|
2753
2753
|
if (t + 3 > n || u.src.charCodeAt(t) !== 58 || u.src.charCodeAt(t + 1) !== 47 || u.src.charCodeAt(t + 2) !== 47) return !1;
|
|
2754
|
-
const r = u.pending.match(
|
|
2754
|
+
const r = u.pending.match(Dr);
|
|
2755
2755
|
if (!r) return !1;
|
|
2756
2756
|
const o = r[1], c = u.md.linkify.matchAtStart(u.src.slice(t - o.length));
|
|
2757
2757
|
if (!c) return !1;
|
|
@@ -2771,7 +2771,7 @@ function Dr(u, e) {
|
|
|
2771
2771
|
}
|
|
2772
2772
|
return u.pos += i.length - o.length, !0;
|
|
2773
2773
|
}
|
|
2774
|
-
function
|
|
2774
|
+
function Fr(u, e) {
|
|
2775
2775
|
let t = u.pos;
|
|
2776
2776
|
if (u.src.charCodeAt(t) !== 10)
|
|
2777
2777
|
return !1;
|
|
@@ -2790,13 +2790,13 @@ function Er(u, e) {
|
|
|
2790
2790
|
t++;
|
|
2791
2791
|
return u.pos = t, !0;
|
|
2792
2792
|
}
|
|
2793
|
-
const
|
|
2793
|
+
const Me = [];
|
|
2794
2794
|
for (let u = 0; u < 256; u++)
|
|
2795
|
-
|
|
2795
|
+
Me.push(0);
|
|
2796
2796
|
"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(u) {
|
|
2797
|
-
|
|
2797
|
+
Me[u.charCodeAt(0)] = 1;
|
|
2798
2798
|
});
|
|
2799
|
-
function
|
|
2799
|
+
function wr(u, e) {
|
|
2800
2800
|
let t = u.pos;
|
|
2801
2801
|
const n = u.posMax;
|
|
2802
2802
|
if (u.src.charCodeAt(t) !== 92 || (t++, t >= n)) return !1;
|
|
@@ -2814,11 +2814,11 @@ function Fr(u, e) {
|
|
|
2814
2814
|
const c = "\\" + o;
|
|
2815
2815
|
if (!e) {
|
|
2816
2816
|
const i = u.push("text_special", "", 0);
|
|
2817
|
-
r < 256 &&
|
|
2817
|
+
r < 256 && Me[r] !== 0 ? i.content = o : i.content = c, i.markup = c, i.info = "escape";
|
|
2818
2818
|
}
|
|
2819
2819
|
return u.pos = t + 1, !0;
|
|
2820
2820
|
}
|
|
2821
|
-
function
|
|
2821
|
+
function Sr(u, e) {
|
|
2822
2822
|
let t = u.pos;
|
|
2823
2823
|
if (u.src.charCodeAt(t) !== 96)
|
|
2824
2824
|
return !1;
|
|
@@ -2846,7 +2846,7 @@ function wr(u, e) {
|
|
|
2846
2846
|
}
|
|
2847
2847
|
return u.backticksScanned = !0, e || (u.pending += c), u.pos += i, !0;
|
|
2848
2848
|
}
|
|
2849
|
-
function
|
|
2849
|
+
function Ir(u, e) {
|
|
2850
2850
|
const t = u.pos, n = u.src.charCodeAt(t);
|
|
2851
2851
|
if (e || n !== 126)
|
|
2852
2852
|
return !1;
|
|
@@ -2869,7 +2869,7 @@ function Sr(u, e) {
|
|
|
2869
2869
|
});
|
|
2870
2870
|
return u.pos += r.length, !0;
|
|
2871
2871
|
}
|
|
2872
|
-
function
|
|
2872
|
+
function et(u, e) {
|
|
2873
2873
|
let t;
|
|
2874
2874
|
const n = [], r = e.length;
|
|
2875
2875
|
for (let o = 0; o < r; o++) {
|
|
@@ -2887,17 +2887,17 @@ function ut(u, e) {
|
|
|
2887
2887
|
c--, o !== c && (t = u.tokens[c], u.tokens[c] = u.tokens[o], u.tokens[o] = t);
|
|
2888
2888
|
}
|
|
2889
2889
|
}
|
|
2890
|
-
function
|
|
2890
|
+
function Tr(u) {
|
|
2891
2891
|
const e = u.tokens_meta, t = u.tokens_meta.length;
|
|
2892
|
-
|
|
2892
|
+
et(u, u.delimiters);
|
|
2893
2893
|
for (let n = 0; n < t; n++)
|
|
2894
|
-
e[n] && e[n].delimiters &&
|
|
2894
|
+
e[n] && e[n].delimiters && et(u, e[n].delimiters);
|
|
2895
2895
|
}
|
|
2896
|
-
const
|
|
2897
|
-
tokenize:
|
|
2898
|
-
postProcess:
|
|
2896
|
+
const Lt = {
|
|
2897
|
+
tokenize: Ir,
|
|
2898
|
+
postProcess: Tr
|
|
2899
2899
|
};
|
|
2900
|
-
function
|
|
2900
|
+
function zr(u, e) {
|
|
2901
2901
|
const t = u.pos, n = u.src.charCodeAt(t);
|
|
2902
2902
|
if (e || n !== 95 && n !== 42)
|
|
2903
2903
|
return !1;
|
|
@@ -2927,7 +2927,7 @@ function Tr(u, e) {
|
|
|
2927
2927
|
}
|
|
2928
2928
|
return u.pos += r.length, !0;
|
|
2929
2929
|
}
|
|
2930
|
-
function
|
|
2930
|
+
function tt(u, e) {
|
|
2931
2931
|
const t = e.length;
|
|
2932
2932
|
for (let n = t - 1; n >= 0; n--) {
|
|
2933
2933
|
const r = e[n];
|
|
@@ -2941,17 +2941,17 @@ function et(u, e) {
|
|
|
2941
2941
|
s.type = c ? "strong_close" : "em_close", s.tag = c ? "strong" : "em", s.nesting = -1, s.markup = c ? i + i : i, s.content = "", c && (u.tokens[e[n - 1].token].content = "", u.tokens[e[r.end + 1].token].content = "", n--);
|
|
2942
2942
|
}
|
|
2943
2943
|
}
|
|
2944
|
-
function
|
|
2944
|
+
function Nr(u) {
|
|
2945
2945
|
const e = u.tokens_meta, t = u.tokens_meta.length;
|
|
2946
|
-
|
|
2946
|
+
tt(u, u.delimiters);
|
|
2947
2947
|
for (let n = 0; n < t; n++)
|
|
2948
|
-
e[n] && e[n].delimiters &&
|
|
2948
|
+
e[n] && e[n].delimiters && tt(u, e[n].delimiters);
|
|
2949
2949
|
}
|
|
2950
|
-
const
|
|
2951
|
-
tokenize:
|
|
2952
|
-
postProcess:
|
|
2950
|
+
const Bt = {
|
|
2951
|
+
tokenize: zr,
|
|
2952
|
+
postProcess: Nr
|
|
2953
2953
|
};
|
|
2954
|
-
function
|
|
2954
|
+
function Lr(u, e) {
|
|
2955
2955
|
let t, n, r, o, c = "", i = "", a = u.pos, s = !0;
|
|
2956
2956
|
if (u.src.charCodeAt(u.pos) !== 91)
|
|
2957
2957
|
return !1;
|
|
@@ -2976,7 +2976,7 @@ function Nr(u, e) {
|
|
|
2976
2976
|
if (s) {
|
|
2977
2977
|
if (typeof u.env.references > "u")
|
|
2978
2978
|
return !1;
|
|
2979
|
-
if (f < d && u.src.charCodeAt(f) === 91 ? (a = f + 1, f = u.md.helpers.parseLinkLabel(u, f), f >= 0 ? n = u.src.slice(a, f++) : f = h + 1) : f = h + 1, n || (n = u.src.slice(_, h)), o = u.env.references[
|
|
2979
|
+
if (f < d && u.src.charCodeAt(f) === 91 ? (a = f + 1, f = u.md.helpers.parseLinkLabel(u, f), f >= 0 ? n = u.src.slice(a, f++) : f = h + 1) : f = h + 1, n || (n = u.src.slice(_, h)), o = u.env.references[ae(n)], !o)
|
|
2980
2980
|
return u.pos = l, !1;
|
|
2981
2981
|
c = o.href, i = o.title;
|
|
2982
2982
|
}
|
|
@@ -2987,7 +2987,7 @@ function Nr(u, e) {
|
|
|
2987
2987
|
}
|
|
2988
2988
|
return u.pos = f, u.posMax = d, !0;
|
|
2989
2989
|
}
|
|
2990
|
-
function
|
|
2990
|
+
function Br(u, e) {
|
|
2991
2991
|
let t, n, r, o, c, i, a, s, l = "";
|
|
2992
2992
|
const d = u.pos, _ = u.posMax;
|
|
2993
2993
|
if (u.src.charCodeAt(u.pos) !== 33 || u.src.charCodeAt(u.pos + 1) !== 91)
|
|
@@ -3013,7 +3013,7 @@ function Lr(u, e) {
|
|
|
3013
3013
|
} else {
|
|
3014
3014
|
if (typeof u.env.references > "u")
|
|
3015
3015
|
return !1;
|
|
3016
|
-
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)), c = u.env.references[
|
|
3016
|
+
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)), c = u.env.references[ae(r)], !c)
|
|
3017
3017
|
return u.pos = d, !1;
|
|
3018
3018
|
l = c.href, a = c.title;
|
|
3019
3019
|
}
|
|
@@ -3031,8 +3031,8 @@ function Lr(u, e) {
|
|
|
3031
3031
|
}
|
|
3032
3032
|
return u.pos = o, u.posMax = _, !0;
|
|
3033
3033
|
}
|
|
3034
|
-
const
|
|
3035
|
-
function
|
|
3034
|
+
const qr = /^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/, Mr = /^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;
|
|
3035
|
+
function Or(u, e) {
|
|
3036
3036
|
let t = u.pos;
|
|
3037
3037
|
if (u.src.charCodeAt(t) !== 60)
|
|
3038
3038
|
return !1;
|
|
@@ -3044,7 +3044,7 @@ function Mr(u, e) {
|
|
|
3044
3044
|
if (c === 62) break;
|
|
3045
3045
|
}
|
|
3046
3046
|
const o = u.src.slice(n + 1, t);
|
|
3047
|
-
if (
|
|
3047
|
+
if (Mr.test(o)) {
|
|
3048
3048
|
const c = u.md.normalizeLink(o);
|
|
3049
3049
|
if (!u.md.validateLink(c))
|
|
3050
3050
|
return !1;
|
|
@@ -3058,7 +3058,7 @@ function Mr(u, e) {
|
|
|
3058
3058
|
}
|
|
3059
3059
|
return u.pos += o.length + 2, !0;
|
|
3060
3060
|
}
|
|
3061
|
-
if (
|
|
3061
|
+
if (qr.test(o)) {
|
|
3062
3062
|
const c = u.md.normalizeLink("mailto:" + o);
|
|
3063
3063
|
if (!u.md.validateLink(c))
|
|
3064
3064
|
return !1;
|
|
@@ -3074,51 +3074,51 @@ function Mr(u, e) {
|
|
|
3074
3074
|
}
|
|
3075
3075
|
return !1;
|
|
3076
3076
|
}
|
|
3077
|
-
function
|
|
3077
|
+
function Rr(u) {
|
|
3078
3078
|
return /^<a[>\s]/i.test(u);
|
|
3079
3079
|
}
|
|
3080
|
-
function
|
|
3080
|
+
function Pr(u) {
|
|
3081
3081
|
return /^<\/a\s*>/i.test(u);
|
|
3082
3082
|
}
|
|
3083
|
-
function
|
|
3083
|
+
function jr(u) {
|
|
3084
3084
|
const e = u | 32;
|
|
3085
3085
|
return e >= 97 && e <= 122;
|
|
3086
3086
|
}
|
|
3087
|
-
function
|
|
3087
|
+
function Hr(u, e) {
|
|
3088
3088
|
if (!u.md.options.html)
|
|
3089
3089
|
return !1;
|
|
3090
3090
|
const t = u.posMax, n = u.pos;
|
|
3091
3091
|
if (u.src.charCodeAt(n) !== 60 || n + 2 >= t)
|
|
3092
3092
|
return !1;
|
|
3093
3093
|
const r = u.src.charCodeAt(n + 1);
|
|
3094
|
-
if (r !== 33 && r !== 63 && r !== 47 && !
|
|
3094
|
+
if (r !== 33 && r !== 63 && r !== 47 && !jr(r))
|
|
3095
3095
|
return !1;
|
|
3096
|
-
const o = u.src.slice(n).match(
|
|
3096
|
+
const o = u.src.slice(n).match(xr);
|
|
3097
3097
|
if (!o)
|
|
3098
3098
|
return !1;
|
|
3099
3099
|
if (!e) {
|
|
3100
3100
|
const c = u.push("html_inline", "", 0);
|
|
3101
|
-
c.content = o[0],
|
|
3101
|
+
c.content = o[0], Rr(c.content) && u.linkLevel++, Pr(c.content) && u.linkLevel--;
|
|
3102
3102
|
}
|
|
3103
3103
|
return u.pos += o[0].length, !0;
|
|
3104
3104
|
}
|
|
3105
|
-
const
|
|
3106
|
-
function
|
|
3105
|
+
const $r = /^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i, Vr = /^&([a-z][a-z0-9]{1,31});/i;
|
|
3106
|
+
function Ur(u, e) {
|
|
3107
3107
|
const t = u.pos, n = u.posMax;
|
|
3108
3108
|
if (u.src.charCodeAt(t) !== 38 || t + 1 >= n) return !1;
|
|
3109
3109
|
if (u.src.charCodeAt(t + 1) === 35) {
|
|
3110
|
-
const o = u.src.slice(t).match(
|
|
3110
|
+
const o = u.src.slice(t).match($r);
|
|
3111
3111
|
if (o) {
|
|
3112
3112
|
if (!e) {
|
|
3113
3113
|
const c = o[1][0].toLowerCase() === "x" ? parseInt(o[1].slice(1), 16) : parseInt(o[1], 10), i = u.push("text_special", "", 0);
|
|
3114
|
-
i.content =
|
|
3114
|
+
i.content = Be(c) ? oe(c) : oe(65533), i.markup = o[0], i.info = "entity";
|
|
3115
3115
|
}
|
|
3116
3116
|
return u.pos += o[0].length, !0;
|
|
3117
3117
|
}
|
|
3118
3118
|
} else {
|
|
3119
|
-
const o = u.src.slice(t).match(
|
|
3119
|
+
const o = u.src.slice(t).match(Vr);
|
|
3120
3120
|
if (o) {
|
|
3121
|
-
const c =
|
|
3121
|
+
const c = Ft(o[0]);
|
|
3122
3122
|
if (c !== o[0]) {
|
|
3123
3123
|
if (!e) {
|
|
3124
3124
|
const i = u.push("text_special", "", 0);
|
|
@@ -3130,7 +3130,7 @@ function Vr(u, e) {
|
|
|
3130
3130
|
}
|
|
3131
3131
|
return !1;
|
|
3132
3132
|
}
|
|
3133
|
-
function
|
|
3133
|
+
function nt(u) {
|
|
3134
3134
|
const e = {}, t = u.length;
|
|
3135
3135
|
if (!t) return;
|
|
3136
3136
|
let n = 0, r = -2;
|
|
@@ -3155,49 +3155,49 @@ function tt(u) {
|
|
|
3155
3155
|
l !== -1 && (e[i.marker][(i.open ? 3 : 0) + (i.length || 0) % 3] = l);
|
|
3156
3156
|
}
|
|
3157
3157
|
}
|
|
3158
|
-
function
|
|
3158
|
+
function Zr(u) {
|
|
3159
3159
|
const e = u.tokens_meta, t = u.tokens_meta.length;
|
|
3160
|
-
|
|
3160
|
+
nt(u.delimiters);
|
|
3161
3161
|
for (let n = 0; n < t; n++)
|
|
3162
|
-
e[n] && e[n].delimiters &&
|
|
3162
|
+
e[n] && e[n].delimiters && nt(e[n].delimiters);
|
|
3163
3163
|
}
|
|
3164
|
-
function
|
|
3164
|
+
function Gr(u) {
|
|
3165
3165
|
let e, t, n = 0;
|
|
3166
3166
|
const r = u.tokens, o = u.tokens.length;
|
|
3167
3167
|
for (e = t = 0; e < o; e++)
|
|
3168
3168
|
r[e].nesting < 0 && n--, r[e].level = n, r[e].nesting > 0 && n++, r[e].type === "text" && e + 1 < o && r[e + 1].type === "text" ? r[e + 1].content = r[e].content + r[e + 1].content : (e !== t && (r[t] = r[e]), t++);
|
|
3169
3169
|
e !== t && (r.length = t);
|
|
3170
3170
|
}
|
|
3171
|
-
const
|
|
3172
|
-
["text",
|
|
3173
|
-
["linkify",
|
|
3174
|
-
["newline",
|
|
3175
|
-
["escape",
|
|
3176
|
-
["backticks",
|
|
3177
|
-
["strikethrough",
|
|
3178
|
-
["emphasis",
|
|
3179
|
-
["link",
|
|
3180
|
-
["image",
|
|
3181
|
-
["autolink",
|
|
3182
|
-
["html_inline",
|
|
3183
|
-
["entity",
|
|
3184
|
-
],
|
|
3185
|
-
["balance_pairs",
|
|
3186
|
-
["strikethrough",
|
|
3187
|
-
["emphasis",
|
|
3171
|
+
const ge = [
|
|
3172
|
+
["text", Cr],
|
|
3173
|
+
["linkify", Er],
|
|
3174
|
+
["newline", Fr],
|
|
3175
|
+
["escape", wr],
|
|
3176
|
+
["backticks", Sr],
|
|
3177
|
+
["strikethrough", Lt.tokenize],
|
|
3178
|
+
["emphasis", Bt.tokenize],
|
|
3179
|
+
["link", Lr],
|
|
3180
|
+
["image", Br],
|
|
3181
|
+
["autolink", Or],
|
|
3182
|
+
["html_inline", Hr],
|
|
3183
|
+
["entity", Ur]
|
|
3184
|
+
], ke = [
|
|
3185
|
+
["balance_pairs", Zr],
|
|
3186
|
+
["strikethrough", Lt.postProcess],
|
|
3187
|
+
["emphasis", Bt.postProcess],
|
|
3188
3188
|
// rules for pairs separate '**' into its own text tokens, which may be left unused,
|
|
3189
3189
|
// rule below merges unused segments back with the rest of the text
|
|
3190
|
-
["fragments_join",
|
|
3190
|
+
["fragments_join", Gr]
|
|
3191
3191
|
];
|
|
3192
|
-
function
|
|
3193
|
-
this.ruler = new
|
|
3192
|
+
function Xu() {
|
|
3193
|
+
this.ruler = new uu();
|
|
3194
|
+
for (let u = 0; u < ge.length; u++)
|
|
3195
|
+
this.ruler.push(ge[u][0], ge[u][1]);
|
|
3196
|
+
this.ruler2 = new uu();
|
|
3194
3197
|
for (let u = 0; u < ke.length; u++)
|
|
3195
|
-
this.
|
|
3196
|
-
this.ruler2 = new eu();
|
|
3197
|
-
for (let u = 0; u < ve.length; u++)
|
|
3198
|
-
this.ruler2.push(ve[u][0], ve[u][1]);
|
|
3198
|
+
this.ruler2.push(ke[u][0], ke[u][1]);
|
|
3199
3199
|
}
|
|
3200
|
-
|
|
3200
|
+
Xu.prototype.skipToken = function(u) {
|
|
3201
3201
|
const e = u.pos, t = this.ruler.getRules(""), n = t.length, r = u.md.options.maxNesting, o = u.cache;
|
|
3202
3202
|
if (typeof o[e] < "u") {
|
|
3203
3203
|
u.pos = o[e];
|
|
@@ -3215,7 +3215,7 @@ Yu.prototype.skipToken = function(u) {
|
|
|
3215
3215
|
u.pos = u.posMax;
|
|
3216
3216
|
c || u.pos++, o[e] = u.pos;
|
|
3217
3217
|
};
|
|
3218
|
-
|
|
3218
|
+
Xu.prototype.tokenize = function(u) {
|
|
3219
3219
|
const e = this.ruler.getRules(""), t = e.length, n = u.posMax, r = u.md.options.maxNesting;
|
|
3220
3220
|
for (; u.pos < n; ) {
|
|
3221
3221
|
const o = u.pos;
|
|
@@ -3237,17 +3237,17 @@ Yu.prototype.tokenize = function(u) {
|
|
|
3237
3237
|
}
|
|
3238
3238
|
u.pending && u.pushPending();
|
|
3239
3239
|
};
|
|
3240
|
-
|
|
3240
|
+
Xu.prototype.parse = function(u, e, t, n) {
|
|
3241
3241
|
const r = new this.State(u, e, t, n);
|
|
3242
3242
|
this.tokenize(r);
|
|
3243
3243
|
const o = this.ruler2.getRules(""), c = o.length;
|
|
3244
3244
|
for (let i = 0; i < c; i++)
|
|
3245
3245
|
o[i](r);
|
|
3246
3246
|
};
|
|
3247
|
-
|
|
3248
|
-
function
|
|
3247
|
+
Xu.prototype.State = Wu;
|
|
3248
|
+
function Kr(u) {
|
|
3249
3249
|
const e = {};
|
|
3250
|
-
u = u || {}, e.src_Any =
|
|
3250
|
+
u = u || {}, e.src_Any = yt.source, e.src_Cc = At.source, e.src_Z = Dt.source, e.src_P = Ne.source, e.src_ZPCc = [e.src_Z, e.src_P, e.src_Cc].join("|"), e.src_ZCc = [e.src_Z, e.src_Cc].join("|");
|
|
3251
3251
|
const t = "[><|]";
|
|
3252
3252
|
return e.src_pseudo_letter = "(?:(?!" + t + "|" + e.src_ZPCc + ")" + e.src_Any + ")", e.src_ip4 = "(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)", e.src_auth = "(?:(?:(?!" + e.src_ZCc + "|[@/\\[\\]()]).)+@)?", e.src_port = "(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?", e.src_host_terminator = "(?=$|" + t + "|" + e.src_ZPCc + ")(?!" + (u["---"] ? "-(?!--)|" : "-|") + "_|:\\d|\\.-|\\.(?!$|" + e.src_ZPCc + "))", e.src_path = "(?:[/?#](?:(?!" + e.src_ZCc + "|" + t + `|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!` + e.src_ZCc + "|\\]).)*\\]|\\((?:(?!" + e.src_ZCc + "|[)]).)*\\)|\\{(?:(?!" + e.src_ZCc + '|[}]).)*\\}|\\"(?:(?!' + e.src_ZCc + `|["]).)+\\"|\\'(?:(?!` + e.src_ZCc + "|[']).)+\\'|\\'(?=" + e.src_pseudo_letter + "|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!" + e.src_ZCc + "|[.]|$)|" + (u["---"] ? "\\-(?!--(?:[^-]|$))(?:-*)|" : "\\-+|") + // allow `,,,` in paths
|
|
3253
3253
|
",(?!" + e.src_ZCc + "|$)|;(?!" + e.src_ZCc + "|$)|\\!+(?!" + e.src_ZCc + "|[!]|$)|\\?(?!" + e.src_ZCc + "|[?]|$))+|\\/)?", e.src_email_name = '[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*', e.src_xn = "xn--[a-z0-9\\-]{1,59}", e.src_domain_root = // Allow letters & digits (http://test1)
|
|
@@ -3257,42 +3257,42 @@ function Gr(u) {
|
|
|
3257
3257
|
// but can start with > (markdown blockquote)
|
|
3258
3258
|
"(^|(?![.:/\\-_@])(?:[$+<=>^`||]|" + e.src_ZPCc + "))((?![$+<=>^`||])" + e.tpl_host_port_no_ip_fuzzy_strict + e.src_path + ")", e;
|
|
3259
3259
|
}
|
|
3260
|
-
function
|
|
3260
|
+
function De(u) {
|
|
3261
3261
|
return Array.prototype.slice.call(arguments, 1).forEach(function(t) {
|
|
3262
3262
|
t && Object.keys(t).forEach(function(n) {
|
|
3263
3263
|
u[n] = t[n];
|
|
3264
3264
|
});
|
|
3265
3265
|
}), u;
|
|
3266
3266
|
}
|
|
3267
|
-
function
|
|
3267
|
+
function le(u) {
|
|
3268
3268
|
return Object.prototype.toString.call(u);
|
|
3269
3269
|
}
|
|
3270
|
-
function Kr(u) {
|
|
3271
|
-
return fe(u) === "[object String]";
|
|
3272
|
-
}
|
|
3273
3270
|
function Jr(u) {
|
|
3274
|
-
return
|
|
3271
|
+
return le(u) === "[object String]";
|
|
3275
3272
|
}
|
|
3276
3273
|
function Qr(u) {
|
|
3277
|
-
return
|
|
3278
|
-
}
|
|
3279
|
-
function nt(u) {
|
|
3280
|
-
return fe(u) === "[object Function]";
|
|
3274
|
+
return le(u) === "[object Object]";
|
|
3281
3275
|
}
|
|
3282
3276
|
function Wr(u) {
|
|
3277
|
+
return le(u) === "[object RegExp]";
|
|
3278
|
+
}
|
|
3279
|
+
function rt(u) {
|
|
3280
|
+
return le(u) === "[object Function]";
|
|
3281
|
+
}
|
|
3282
|
+
function Xr(u) {
|
|
3283
3283
|
return u.replace(/[.?*+^$[\]\\(){}|-]/g, "\\$&");
|
|
3284
3284
|
}
|
|
3285
|
-
const
|
|
3285
|
+
const qt = {
|
|
3286
3286
|
fuzzyLink: !0,
|
|
3287
3287
|
fuzzyEmail: !0,
|
|
3288
3288
|
fuzzyIP: !1
|
|
3289
3289
|
};
|
|
3290
|
-
function
|
|
3290
|
+
function Yr(u) {
|
|
3291
3291
|
return Object.keys(u || {}).reduce(function(e, t) {
|
|
3292
|
-
return e ||
|
|
3292
|
+
return e || qt.hasOwnProperty(t);
|
|
3293
3293
|
}, !1);
|
|
3294
3294
|
}
|
|
3295
|
-
const
|
|
3295
|
+
const uo = {
|
|
3296
3296
|
"http:": {
|
|
3297
3297
|
validate: function(u, e, t) {
|
|
3298
3298
|
const n = u.slice(e);
|
|
@@ -3324,24 +3324,24 @@ const Yr = {
|
|
|
3324
3324
|
)), t.re.mailto.test(n) ? n.match(t.re.mailto)[0].length : 0;
|
|
3325
3325
|
}
|
|
3326
3326
|
}
|
|
3327
|
-
},
|
|
3328
|
-
function
|
|
3327
|
+
}, eo = "a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]", to = "biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");
|
|
3328
|
+
function no(u) {
|
|
3329
3329
|
u.__index__ = -1, u.__text_cache__ = "";
|
|
3330
3330
|
}
|
|
3331
|
-
function
|
|
3331
|
+
function ro(u) {
|
|
3332
3332
|
return function(e, t) {
|
|
3333
3333
|
const n = e.slice(t);
|
|
3334
3334
|
return u.test(n) ? n.match(u)[0].length : 0;
|
|
3335
3335
|
};
|
|
3336
3336
|
}
|
|
3337
|
-
function
|
|
3337
|
+
function ot() {
|
|
3338
3338
|
return function(u, e) {
|
|
3339
3339
|
e.normalize(u);
|
|
3340
3340
|
};
|
|
3341
3341
|
}
|
|
3342
|
-
function
|
|
3343
|
-
const e = u.re =
|
|
3344
|
-
u.onCompile(), u.__tlds_replaced__ || t.push(
|
|
3342
|
+
function ie(u) {
|
|
3343
|
+
const e = u.re = Kr(u.__opts__), t = u.__tlds__.slice();
|
|
3344
|
+
u.onCompile(), u.__tlds_replaced__ || t.push(eo), t.push(e.src_xn), e.src_tlds = t.join("|");
|
|
3345
3345
|
function n(i) {
|
|
3346
3346
|
return i.replace("%TLDS%", e.src_tlds);
|
|
3347
3347
|
}
|
|
@@ -3356,44 +3356,44 @@ function ae(u) {
|
|
|
3356
3356
|
if (a === null)
|
|
3357
3357
|
return;
|
|
3358
3358
|
const s = { validate: null, link: null };
|
|
3359
|
-
if (u.__compiled__[i] = s,
|
|
3360
|
-
|
|
3359
|
+
if (u.__compiled__[i] = s, Qr(a)) {
|
|
3360
|
+
Wr(a.validate) ? s.validate = ro(a.validate) : rt(a.validate) ? s.validate = a.validate : o(i, a), rt(a.normalize) ? s.normalize = a.normalize : a.normalize ? o(i, a) : s.normalize = ot();
|
|
3361
3361
|
return;
|
|
3362
3362
|
}
|
|
3363
|
-
if (
|
|
3363
|
+
if (Jr(a)) {
|
|
3364
3364
|
r.push(i);
|
|
3365
3365
|
return;
|
|
3366
3366
|
}
|
|
3367
3367
|
o(i, a);
|
|
3368
3368
|
}), r.forEach(function(i) {
|
|
3369
3369
|
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);
|
|
3370
|
-
}), u.__compiled__[""] = { validate: null, normalize:
|
|
3370
|
+
}), u.__compiled__[""] = { validate: null, normalize: ot() };
|
|
3371
3371
|
const c = Object.keys(u.__compiled__).filter(function(i) {
|
|
3372
3372
|
return i.length > 0 && u.__compiled__[i];
|
|
3373
|
-
}).map(
|
|
3373
|
+
}).map(Xr).join("|");
|
|
3374
3374
|
u.re.schema_test = RegExp("(^|(?!_)(?:[><|]|" + e.src_ZPCc + "))(" + c + ")", "i"), u.re.schema_search = RegExp("(^|(?!_)(?:[><|]|" + e.src_ZPCc + "))(" + c + ")", "ig"), u.re.schema_at_start = RegExp("^" + u.re.schema_search.source, "i"), u.re.pretest = RegExp(
|
|
3375
3375
|
"(" + u.re.schema_test.source + ")|(" + u.re.host_fuzzy_test.source + ")|@",
|
|
3376
3376
|
"i"
|
|
3377
|
-
),
|
|
3377
|
+
), no(u);
|
|
3378
3378
|
}
|
|
3379
|
-
function
|
|
3379
|
+
function oo(u, e) {
|
|
3380
3380
|
const t = u.__index__, n = u.__last_index__, r = u.__text_cache__.slice(t, n);
|
|
3381
3381
|
this.schema = u.__schema__.toLowerCase(), this.index = t + e, this.lastIndex = n + e, this.raw = r, this.text = r, this.url = r;
|
|
3382
3382
|
}
|
|
3383
|
-
function
|
|
3384
|
-
const t = new
|
|
3383
|
+
function Ee(u, e) {
|
|
3384
|
+
const t = new oo(u, e);
|
|
3385
3385
|
return u.__compiled__[t.schema].normalize(t, u), t;
|
|
3386
3386
|
}
|
|
3387
3387
|
function nu(u, e) {
|
|
3388
3388
|
if (!(this instanceof nu))
|
|
3389
3389
|
return new nu(u, e);
|
|
3390
|
-
e ||
|
|
3390
|
+
e || Yr(u) && (e = u, u = {}), this.__opts__ = De({}, qt, e), this.__index__ = -1, this.__last_index__ = -1, this.__schema__ = "", this.__text_cache__ = "", this.__schemas__ = De({}, uo, u), this.__compiled__ = {}, this.__tlds__ = to, this.__tlds_replaced__ = !1, this.re = {}, ie(this);
|
|
3391
3391
|
}
|
|
3392
3392
|
nu.prototype.add = function(e, t) {
|
|
3393
|
-
return this.__schemas__[e] = t,
|
|
3393
|
+
return this.__schemas__[e] = t, ie(this), this;
|
|
3394
3394
|
};
|
|
3395
3395
|
nu.prototype.set = function(e) {
|
|
3396
|
-
return this.__opts__ =
|
|
3396
|
+
return this.__opts__ = De(this.__opts__, e), this;
|
|
3397
3397
|
};
|
|
3398
3398
|
nu.prototype.test = function(e) {
|
|
3399
3399
|
if (this.__text_cache__ = e, this.__index__ = -1, !e.length)
|
|
@@ -3417,10 +3417,10 @@ nu.prototype.testSchemaAt = function(e, t, n) {
|
|
|
3417
3417
|
nu.prototype.match = function(e) {
|
|
3418
3418
|
const t = [];
|
|
3419
3419
|
let n = 0;
|
|
3420
|
-
this.__index__ >= 0 && this.__text_cache__ === e && (t.push(
|
|
3420
|
+
this.__index__ >= 0 && this.__text_cache__ === e && (t.push(Ee(this, n)), n = this.__last_index__);
|
|
3421
3421
|
let r = n ? e.slice(n) : e;
|
|
3422
3422
|
for (; this.test(r); )
|
|
3423
|
-
t.push(
|
|
3423
|
+
t.push(Ee(this, n)), r = r.slice(this.__last_index__), n += this.__last_index__;
|
|
3424
3424
|
return t.length ? t : null;
|
|
3425
3425
|
};
|
|
3426
3426
|
nu.prototype.matchAtStart = function(e) {
|
|
@@ -3428,41 +3428,41 @@ nu.prototype.matchAtStart = function(e) {
|
|
|
3428
3428
|
const t = this.re.schema_at_start.exec(e);
|
|
3429
3429
|
if (!t) return null;
|
|
3430
3430
|
const n = this.testSchemaAt(e, t[2], t[0].length);
|
|
3431
|
-
return n ? (this.__schema__ = t[2], this.__index__ = t.index + t[1].length, this.__last_index__ = t.index + t[0].length + n,
|
|
3431
|
+
return n ? (this.__schema__ = t[2], this.__index__ = t.index + t[1].length, this.__last_index__ = t.index + t[0].length + n, Ee(this, 0)) : null;
|
|
3432
3432
|
};
|
|
3433
3433
|
nu.prototype.tlds = function(e, t) {
|
|
3434
3434
|
return e = Array.isArray(e) ? e : [e], t ? (this.__tlds__ = this.__tlds__.concat(e).sort().filter(function(n, r, o) {
|
|
3435
3435
|
return n !== o[r - 1];
|
|
3436
|
-
}).reverse(),
|
|
3436
|
+
}).reverse(), ie(this), this) : (this.__tlds__ = e.slice(), this.__tlds_replaced__ = !0, ie(this), this);
|
|
3437
3437
|
};
|
|
3438
3438
|
nu.prototype.normalize = function(e) {
|
|
3439
3439
|
e.schema || (e.url = "http://" + e.url), e.schema === "mailto:" && !/^mailto:/i.test(e.url) && (e.url = "mailto:" + e.url);
|
|
3440
3440
|
};
|
|
3441
3441
|
nu.prototype.onCompile = function() {
|
|
3442
3442
|
};
|
|
3443
|
-
const
|
|
3443
|
+
const zu = 2147483647, hu = 36, Oe = 1, Gu = 26, io = 38, co = 700, Mt = 72, Ot = 128, Rt = "-", ao = /^xn--/, so = /[^\0-\x7F]/, lo = /[\x2E\u3002\uFF0E\uFF61]/g, fo = {
|
|
3444
3444
|
overflow: "Overflow: input needs wider integers to process",
|
|
3445
3445
|
"not-basic": "Illegal input >= 0x80 (not a basic code point)",
|
|
3446
3446
|
"invalid-input": "Invalid input"
|
|
3447
|
-
},
|
|
3447
|
+
}, ve = hu - Oe, pu = Math.floor, ye = String.fromCharCode;
|
|
3448
3448
|
function ku(u) {
|
|
3449
|
-
throw new RangeError(
|
|
3449
|
+
throw new RangeError(fo[u]);
|
|
3450
3450
|
}
|
|
3451
|
-
function
|
|
3451
|
+
function ho(u, e) {
|
|
3452
3452
|
const t = [];
|
|
3453
3453
|
let n = u.length;
|
|
3454
3454
|
for (; n--; )
|
|
3455
3455
|
t[n] = e(u[n]);
|
|
3456
3456
|
return t;
|
|
3457
3457
|
}
|
|
3458
|
-
function
|
|
3458
|
+
function Pt(u, e) {
|
|
3459
3459
|
const t = u.split("@");
|
|
3460
3460
|
let n = "";
|
|
3461
|
-
t.length > 1 && (n = t[0] + "@", u = t[1]), u = u.replace(
|
|
3462
|
-
const r = u.split("."), o =
|
|
3461
|
+
t.length > 1 && (n = t[0] + "@", u = t[1]), u = u.replace(lo, ".");
|
|
3462
|
+
const r = u.split("."), o = ho(r, e).join(".");
|
|
3463
3463
|
return n + o;
|
|
3464
3464
|
}
|
|
3465
|
-
function
|
|
3465
|
+
function jt(u) {
|
|
3466
3466
|
const e = [];
|
|
3467
3467
|
let t = 0;
|
|
3468
3468
|
const n = u.length;
|
|
@@ -3476,18 +3476,18 @@ function Pt(u) {
|
|
|
3476
3476
|
}
|
|
3477
3477
|
return e;
|
|
3478
3478
|
}
|
|
3479
|
-
const
|
|
3479
|
+
const po = (u) => String.fromCodePoint(...u), bo = function(u) {
|
|
3480
3480
|
return u >= 48 && u < 58 ? 26 + (u - 48) : u >= 65 && u < 91 ? u - 65 : u >= 97 && u < 123 ? u - 97 : hu;
|
|
3481
|
-
},
|
|
3481
|
+
}, it = function(u, e) {
|
|
3482
3482
|
return u + 22 + 75 * (u < 26) - ((e != 0) << 5);
|
|
3483
|
-
},
|
|
3483
|
+
}, Ht = function(u, e, t) {
|
|
3484
3484
|
let n = 0;
|
|
3485
|
-
for (u = t ? pu(u /
|
|
3486
|
-
u = pu(u /
|
|
3487
|
-
return pu(n + (
|
|
3488
|
-
},
|
|
3485
|
+
for (u = t ? pu(u / co) : u >> 1, u += pu(u / e); u > ve * Gu >> 1; n += hu)
|
|
3486
|
+
u = pu(u / ve);
|
|
3487
|
+
return pu(n + (ve + 1) * u / (u + io));
|
|
3488
|
+
}, $t = function(u) {
|
|
3489
3489
|
const e = [], t = u.length;
|
|
3490
|
-
let n = 0, r =
|
|
3490
|
+
let n = 0, r = Ot, o = Mt, c = u.lastIndexOf(Rt);
|
|
3491
3491
|
c < 0 && (c = 0);
|
|
3492
3492
|
for (let i = 0; i < c; ++i)
|
|
3493
3493
|
u.charCodeAt(i) >= 128 && ku("not-basic"), e.push(u.charCodeAt(i));
|
|
@@ -3495,59 +3495,59 @@ const ho = (u) => String.fromCodePoint(...u), po = function(u) {
|
|
|
3495
3495
|
const a = n;
|
|
3496
3496
|
for (let l = 1, d = hu; ; d += hu) {
|
|
3497
3497
|
i >= t && ku("invalid-input");
|
|
3498
|
-
const _ =
|
|
3499
|
-
_ >= hu && ku("invalid-input"), _ > pu((
|
|
3500
|
-
const h = d <= o ?
|
|
3498
|
+
const _ = bo(u.charCodeAt(i++));
|
|
3499
|
+
_ >= hu && ku("invalid-input"), _ > pu((zu - n) / l) && ku("overflow"), n += _ * l;
|
|
3500
|
+
const h = d <= o ? Oe : d >= o + Gu ? Gu : d - o;
|
|
3501
3501
|
if (_ < h)
|
|
3502
3502
|
break;
|
|
3503
3503
|
const f = hu - h;
|
|
3504
|
-
l > pu(
|
|
3504
|
+
l > pu(zu / f) && ku("overflow"), l *= f;
|
|
3505
3505
|
}
|
|
3506
3506
|
const s = e.length + 1;
|
|
3507
|
-
o =
|
|
3507
|
+
o = Ht(n - a, s, a == 0), pu(n / s) > zu - r && ku("overflow"), r += pu(n / s), n %= s, e.splice(n++, 0, r);
|
|
3508
3508
|
}
|
|
3509
3509
|
return String.fromCodePoint(...e);
|
|
3510
|
-
},
|
|
3510
|
+
}, Vt = function(u) {
|
|
3511
3511
|
const e = [];
|
|
3512
|
-
u =
|
|
3512
|
+
u = jt(u);
|
|
3513
3513
|
const t = u.length;
|
|
3514
|
-
let n =
|
|
3514
|
+
let n = Ot, r = 0, o = Mt;
|
|
3515
3515
|
for (const a of u)
|
|
3516
|
-
a < 128 && e.push(
|
|
3516
|
+
a < 128 && e.push(ye(a));
|
|
3517
3517
|
const c = e.length;
|
|
3518
3518
|
let i = c;
|
|
3519
|
-
for (c && e.push(
|
|
3520
|
-
let a =
|
|
3519
|
+
for (c && e.push(Rt); i < t; ) {
|
|
3520
|
+
let a = zu;
|
|
3521
3521
|
for (const l of u)
|
|
3522
3522
|
l >= n && l < a && (a = l);
|
|
3523
3523
|
const s = i + 1;
|
|
3524
|
-
a - n > pu((
|
|
3524
|
+
a - n > pu((zu - r) / s) && ku("overflow"), r += (a - n) * s, n = a;
|
|
3525
3525
|
for (const l of u)
|
|
3526
|
-
if (l < n && ++r >
|
|
3526
|
+
if (l < n && ++r > zu && ku("overflow"), l === n) {
|
|
3527
3527
|
let d = r;
|
|
3528
3528
|
for (let _ = hu; ; _ += hu) {
|
|
3529
|
-
const h = _ <= o ?
|
|
3529
|
+
const h = _ <= o ? Oe : _ >= o + Gu ? Gu : _ - o;
|
|
3530
3530
|
if (d < h)
|
|
3531
3531
|
break;
|
|
3532
3532
|
const f = d - h, g = hu - h;
|
|
3533
3533
|
e.push(
|
|
3534
|
-
|
|
3534
|
+
ye(it(h + f % g, 0))
|
|
3535
3535
|
), d = pu(f / g);
|
|
3536
3536
|
}
|
|
3537
|
-
e.push(
|
|
3537
|
+
e.push(ye(it(d, 0))), o = Ht(r, s, i === c), r = 0, ++i;
|
|
3538
3538
|
}
|
|
3539
3539
|
++r, ++n;
|
|
3540
3540
|
}
|
|
3541
3541
|
return e.join("");
|
|
3542
|
-
}, bo = function(u) {
|
|
3543
|
-
return Rt(u, function(e) {
|
|
3544
|
-
return co.test(e) ? Ht(e.slice(4).toLowerCase()) : e;
|
|
3545
|
-
});
|
|
3546
3542
|
}, mo = function(u) {
|
|
3547
|
-
return
|
|
3548
|
-
return ao.test(e) ?
|
|
3543
|
+
return Pt(u, function(e) {
|
|
3544
|
+
return ao.test(e) ? $t(e.slice(4).toLowerCase()) : e;
|
|
3549
3545
|
});
|
|
3550
|
-
},
|
|
3546
|
+
}, xo = function(u) {
|
|
3547
|
+
return Pt(u, function(e) {
|
|
3548
|
+
return so.test(e) ? "xn--" + Vt(e) : e;
|
|
3549
|
+
});
|
|
3550
|
+
}, Ut = {
|
|
3551
3551
|
/**
|
|
3552
3552
|
* A string representing the current Punycode.js version number.
|
|
3553
3553
|
* @memberOf punycode
|
|
@@ -3562,14 +3562,14 @@ const ho = (u) => String.fromCodePoint(...u), po = function(u) {
|
|
|
3562
3562
|
* @type Object
|
|
3563
3563
|
*/
|
|
3564
3564
|
ucs2: {
|
|
3565
|
-
decode:
|
|
3566
|
-
encode:
|
|
3565
|
+
decode: jt,
|
|
3566
|
+
encode: po
|
|
3567
3567
|
},
|
|
3568
|
-
decode:
|
|
3569
|
-
encode:
|
|
3570
|
-
toASCII:
|
|
3571
|
-
toUnicode:
|
|
3572
|
-
},
|
|
3568
|
+
decode: $t,
|
|
3569
|
+
encode: Vt,
|
|
3570
|
+
toASCII: xo,
|
|
3571
|
+
toUnicode: mo
|
|
3572
|
+
}, _o = {
|
|
3573
3573
|
options: {
|
|
3574
3574
|
// Enable HTML tags in source
|
|
3575
3575
|
html: !1,
|
|
@@ -3605,7 +3605,7 @@ const ho = (u) => String.fromCodePoint(...u), po = function(u) {
|
|
|
3605
3605
|
block: {},
|
|
3606
3606
|
inline: {}
|
|
3607
3607
|
}
|
|
3608
|
-
},
|
|
3608
|
+
}, go = {
|
|
3609
3609
|
options: {
|
|
3610
3610
|
// Enable HTML tags in source
|
|
3611
3611
|
html: !1,
|
|
@@ -3660,7 +3660,7 @@ const ho = (u) => String.fromCodePoint(...u), po = function(u) {
|
|
|
3660
3660
|
]
|
|
3661
3661
|
}
|
|
3662
3662
|
}
|
|
3663
|
-
},
|
|
3663
|
+
}, ko = {
|
|
3664
3664
|
options: {
|
|
3665
3665
|
// Enable HTML tags in source
|
|
3666
3666
|
html: !0,
|
|
@@ -3734,47 +3734,47 @@ const ho = (u) => String.fromCodePoint(...u), po = function(u) {
|
|
|
3734
3734
|
]
|
|
3735
3735
|
}
|
|
3736
3736
|
}
|
|
3737
|
-
},
|
|
3738
|
-
default:
|
|
3739
|
-
zero:
|
|
3740
|
-
commonmark:
|
|
3741
|
-
},
|
|
3742
|
-
function
|
|
3737
|
+
}, vo = {
|
|
3738
|
+
default: _o,
|
|
3739
|
+
zero: go,
|
|
3740
|
+
commonmark: ko
|
|
3741
|
+
}, yo = /^(vbscript|javascript|file|data):/, Ao = /^data:image\/(gif|png|jpeg|webp);/;
|
|
3742
|
+
function Co(u) {
|
|
3743
3743
|
const e = u.trim().toLowerCase();
|
|
3744
|
-
return
|
|
3744
|
+
return yo.test(e) ? Ao.test(e) : !0;
|
|
3745
3745
|
}
|
|
3746
|
-
const
|
|
3747
|
-
function
|
|
3748
|
-
const e =
|
|
3749
|
-
if (e.hostname && (!e.protocol ||
|
|
3746
|
+
const Zt = ["http:", "https:", "mailto:"];
|
|
3747
|
+
function Do(u) {
|
|
3748
|
+
const e = ze(u, !0);
|
|
3749
|
+
if (e.hostname && (!e.protocol || Zt.indexOf(e.protocol) >= 0))
|
|
3750
3750
|
try {
|
|
3751
|
-
e.hostname =
|
|
3751
|
+
e.hostname = Ut.toASCII(e.hostname);
|
|
3752
3752
|
} catch {
|
|
3753
3753
|
}
|
|
3754
|
-
return
|
|
3754
|
+
return Qu(Te(e));
|
|
3755
3755
|
}
|
|
3756
|
-
function
|
|
3757
|
-
const e =
|
|
3758
|
-
if (e.hostname && (!e.protocol ||
|
|
3756
|
+
function Eo(u) {
|
|
3757
|
+
const e = ze(u, !0);
|
|
3758
|
+
if (e.hostname && (!e.protocol || Zt.indexOf(e.protocol) >= 0))
|
|
3759
3759
|
try {
|
|
3760
|
-
e.hostname =
|
|
3760
|
+
e.hostname = Ut.toUnicode(e.hostname);
|
|
3761
3761
|
} catch {
|
|
3762
3762
|
}
|
|
3763
|
-
return
|
|
3763
|
+
return Lu(Te(e), Lu.defaultChars + "%");
|
|
3764
3764
|
}
|
|
3765
|
-
function
|
|
3766
|
-
if (!(this instanceof
|
|
3767
|
-
return new
|
|
3768
|
-
e ||
|
|
3765
|
+
function ou(u, e) {
|
|
3766
|
+
if (!(this instanceof ou))
|
|
3767
|
+
return new ou(u, e);
|
|
3768
|
+
e || Le(u) || (e = u || {}, u = "default"), this.inline = new Xu(), this.block = new se(), this.core = new qe(), this.renderer = new Ou(), this.linkify = new nu(), this.validateLink = Co, this.normalizeLink = Do, this.normalizeLinkText = Eo, this.utils = Fn, this.helpers = ce({}, Tn), this.options = {}, this.configure(u), e && this.set(e);
|
|
3769
3769
|
}
|
|
3770
|
-
|
|
3771
|
-
return
|
|
3770
|
+
ou.prototype.set = function(u) {
|
|
3771
|
+
return ce(this.options, u), this;
|
|
3772
3772
|
};
|
|
3773
|
-
|
|
3773
|
+
ou.prototype.configure = function(u) {
|
|
3774
3774
|
const e = this;
|
|
3775
|
-
if (
|
|
3775
|
+
if (Le(u)) {
|
|
3776
3776
|
const t = u;
|
|
3777
|
-
if (u =
|
|
3777
|
+
if (u = vo[t], !u)
|
|
3778
3778
|
throw new Error('Wrong `markdown-it` preset "' + t + '", check name');
|
|
3779
3779
|
}
|
|
3780
3780
|
if (!u)
|
|
@@ -3783,7 +3783,7 @@ ru.prototype.configure = function(u) {
|
|
|
3783
3783
|
u.components[t].rules && e[t].ruler.enableOnly(u.components[t].rules), u.components[t].rules2 && e[t].ruler2.enableOnly(u.components[t].rules2);
|
|
3784
3784
|
}), this;
|
|
3785
3785
|
};
|
|
3786
|
-
|
|
3786
|
+
ou.prototype.enable = function(u, e) {
|
|
3787
3787
|
let t = [];
|
|
3788
3788
|
Array.isArray(u) || (u = [u]), ["core", "block", "inline"].forEach(function(r) {
|
|
3789
3789
|
t = t.concat(this[r].ruler.enable(u, !0));
|
|
@@ -3795,7 +3795,7 @@ ru.prototype.enable = function(u, e) {
|
|
|
3795
3795
|
throw new Error("MarkdownIt. Failed to enable unknown rule(s): " + n);
|
|
3796
3796
|
return this;
|
|
3797
3797
|
};
|
|
3798
|
-
|
|
3798
|
+
ou.prototype.disable = function(u, e) {
|
|
3799
3799
|
let t = [];
|
|
3800
3800
|
Array.isArray(u) || (u = [u]), ["core", "block", "inline"].forEach(function(r) {
|
|
3801
3801
|
t = t.concat(this[r].ruler.disable(u, !0));
|
|
@@ -3807,111 +3807,111 @@ ru.prototype.disable = function(u, e) {
|
|
|
3807
3807
|
throw new Error("MarkdownIt. Failed to disable unknown rule(s): " + n);
|
|
3808
3808
|
return this;
|
|
3809
3809
|
};
|
|
3810
|
-
|
|
3810
|
+
ou.prototype.use = function(u) {
|
|
3811
3811
|
const e = [this].concat(Array.prototype.slice.call(arguments, 1));
|
|
3812
3812
|
return u.apply(u, e), this;
|
|
3813
3813
|
};
|
|
3814
|
-
|
|
3814
|
+
ou.prototype.parse = function(u, e) {
|
|
3815
3815
|
if (typeof u != "string")
|
|
3816
3816
|
throw new Error("Input data should be a String");
|
|
3817
3817
|
const t = new this.core.State(u, this, e);
|
|
3818
3818
|
return this.core.process(t), t.tokens;
|
|
3819
3819
|
};
|
|
3820
|
-
|
|
3820
|
+
ou.prototype.render = function(u, e) {
|
|
3821
3821
|
return e = e || {}, this.renderer.render(this.parse(u, e), this.options, e);
|
|
3822
3822
|
};
|
|
3823
|
-
|
|
3823
|
+
ou.prototype.parseInline = function(u, e) {
|
|
3824
3824
|
const t = new this.core.State(u, this, e);
|
|
3825
3825
|
return t.inlineMode = !0, this.core.process(t), t.tokens;
|
|
3826
3826
|
};
|
|
3827
|
-
|
|
3827
|
+
ou.prototype.renderInline = function(u, e) {
|
|
3828
3828
|
return e = e || {}, this.renderer.render(this.parseInline(u, e), this.options, e);
|
|
3829
3829
|
};
|
|
3830
|
-
const
|
|
3830
|
+
const Fo = "data:image/gif;base64,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", wo = { class: "das-ai-chat" }, So = { class: "das-ai-reference-content-content" }, Io = { style: { "margin-right": "8px" } }, To = { class: "das-ai-answer-content" }, zo = {
|
|
3831
3831
|
key: 0,
|
|
3832
3832
|
class: "das-ai-chat-stop"
|
|
3833
|
-
},
|
|
3833
|
+
}, No = { class: "think-line-text" }, Lo = { class: "think-line-icon" }, Bo = ["innerHTML"], qo = ["innerHTML"], Mo = {
|
|
3834
3834
|
key: 3,
|
|
3835
3835
|
class: "das-ai-chat-opt"
|
|
3836
|
-
},
|
|
3836
|
+
}, Oo = {
|
|
3837
3837
|
key: 1,
|
|
3838
3838
|
class: "audio-generated"
|
|
3839
|
-
},
|
|
3839
|
+
}, Ro = {
|
|
3840
3840
|
key: 2,
|
|
3841
3841
|
class: "audio-loading-img"
|
|
3842
|
-
},
|
|
3842
|
+
}, Po = ["src"], jo = {
|
|
3843
3843
|
key: 4,
|
|
3844
3844
|
class: "das-ai-chat-loading"
|
|
3845
|
-
},
|
|
3845
|
+
}, Ho = {
|
|
3846
3846
|
name: "aiChat"
|
|
3847
|
-
},
|
|
3848
|
-
...
|
|
3847
|
+
}, $o = /* @__PURE__ */ iu({
|
|
3848
|
+
...Ho,
|
|
3849
3849
|
props: {
|
|
3850
3850
|
item: { default: {} },
|
|
3851
3851
|
isNew: { type: Boolean, default: !0 }
|
|
3852
3852
|
},
|
|
3853
3853
|
emits: ["aiChatEmit"],
|
|
3854
3854
|
setup(u, { emit: e }) {
|
|
3855
|
-
const t = u, n = N(""), r = N(""), o = e, c = new
|
|
3855
|
+
const t = u, n = N(""), r = N(""), o = e, c = new ou(), i = N(), a = lu(() => t.item.content), s = lu(() => t.item.think), { toClipboard: l } = R0();
|
|
3856
3856
|
bu(
|
|
3857
3857
|
() => a.value,
|
|
3858
|
-
(
|
|
3859
|
-
if (!
|
|
3858
|
+
(m, p) => {
|
|
3859
|
+
if (!m) {
|
|
3860
3860
|
n.value = "";
|
|
3861
3861
|
return;
|
|
3862
3862
|
}
|
|
3863
|
-
n.value = c.render(
|
|
3863
|
+
n.value = c.render(m);
|
|
3864
3864
|
},
|
|
3865
3865
|
{ immediate: !0 }
|
|
3866
3866
|
), bu(
|
|
3867
3867
|
() => s.value,
|
|
3868
|
-
(
|
|
3869
|
-
if (!
|
|
3868
|
+
(m, p) => {
|
|
3869
|
+
if (!m) {
|
|
3870
3870
|
r.value = "";
|
|
3871
3871
|
return;
|
|
3872
3872
|
}
|
|
3873
|
-
r.value = c.render(
|
|
3873
|
+
r.value = c.render(m);
|
|
3874
3874
|
},
|
|
3875
3875
|
{ immediate: !0 }
|
|
3876
3876
|
);
|
|
3877
3877
|
const d = N(!0), _ = lu(() => t.item.file && t.item.file.length ? T("引用$0篇资料作为参考", t.item.file.length) : ""), h = lu(() => t.item.loading && !n.value ? T("思考中…") : t.item.thinkTime ? T("已深度思考(用时$0秒)", t.item.thinkTime) : T("已深度思考")), f = lu(() => !n.value && !r.value), g = () => {
|
|
3878
|
-
var
|
|
3879
|
-
return ((
|
|
3878
|
+
var m, p, b;
|
|
3879
|
+
return ((m = t.item) == null ? void 0 : m.audioStatus) == "normal" ? T("语音朗读") : ((p = t.item) == null ? void 0 : p.audioStatus) == "generated" || ((b = t.item) == null ? void 0 : b.audioStatus) == "loading" ? T("停止朗读") : T("语音朗读");
|
|
3880
3880
|
}, y = () => {
|
|
3881
|
-
var
|
|
3881
|
+
var m;
|
|
3882
3882
|
try {
|
|
3883
3883
|
if (!n.value) return;
|
|
3884
|
-
const p = (
|
|
3885
|
-
l(p),
|
|
3884
|
+
const p = (m = i.value.textContent) == null ? void 0 : m.replace(/^\s*[\r\n]/gm, "");
|
|
3885
|
+
l(p), He.success(T("复制成功"));
|
|
3886
3886
|
} catch {
|
|
3887
|
-
|
|
3887
|
+
He.error(T("复制失败"));
|
|
3888
3888
|
}
|
|
3889
|
-
}, C = (
|
|
3890
|
-
if (
|
|
3889
|
+
}, C = (m) => {
|
|
3890
|
+
if (m == "copy") {
|
|
3891
3891
|
y();
|
|
3892
3892
|
return;
|
|
3893
3893
|
}
|
|
3894
|
-
if (
|
|
3894
|
+
if (m == "saveKnowledgebase") {
|
|
3895
3895
|
if (t.item.saved || !n.value) return;
|
|
3896
|
-
o("aiChatEmit",
|
|
3896
|
+
o("aiChatEmit", m, { dom: i.value, item: t.item });
|
|
3897
3897
|
return;
|
|
3898
3898
|
}
|
|
3899
|
-
if (
|
|
3899
|
+
if (m == "play") {
|
|
3900
3900
|
if (t.item.audioStatus == "normal") {
|
|
3901
3901
|
if (!i.value) return;
|
|
3902
|
-
o("aiChatEmit",
|
|
3902
|
+
o("aiChatEmit", m, { text: i.value.textContent, data: t.item });
|
|
3903
3903
|
return;
|
|
3904
3904
|
}
|
|
3905
|
-
o("aiChatEmit",
|
|
3905
|
+
o("aiChatEmit", m, { data: t.item });
|
|
3906
3906
|
return;
|
|
3907
3907
|
}
|
|
3908
|
-
o("aiChatEmit",
|
|
3908
|
+
o("aiChatEmit", m, t.item);
|
|
3909
3909
|
}, k = () => {
|
|
3910
3910
|
o("aiChatEmit", "reference", t.item);
|
|
3911
3911
|
};
|
|
3912
|
-
return (
|
|
3912
|
+
return (m, p) => (w(), P("div", wo, [
|
|
3913
3913
|
z(" 参考内容 "),
|
|
3914
|
-
v("div",
|
|
3914
|
+
v("div", So, [
|
|
3915
3915
|
_.value ? (w(), P("div", {
|
|
3916
3916
|
key: 0,
|
|
3917
3917
|
onClick: k,
|
|
@@ -3919,12 +3919,12 @@ const Eo = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
|
|
|
3919
3919
|
}, [
|
|
3920
3920
|
v(
|
|
3921
3921
|
"span",
|
|
3922
|
-
|
|
3922
|
+
Io,
|
|
3923
3923
|
V(_.value),
|
|
3924
3924
|
1
|
|
3925
3925
|
/* TEXT */
|
|
3926
3926
|
),
|
|
3927
|
-
j(A(
|
|
3927
|
+
j(A(ht), {
|
|
3928
3928
|
size: "medium",
|
|
3929
3929
|
iconColor: "#999999"
|
|
3930
3930
|
})
|
|
@@ -3958,7 +3958,7 @@ const Eo = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
|
|
|
3958
3958
|
</div> `)
|
|
3959
3959
|
]),
|
|
3960
3960
|
z(" 回答 "),
|
|
3961
|
-
v("div",
|
|
3961
|
+
v("div", To, [
|
|
3962
3962
|
z(` <div class="ai-answer-top">\r
|
|
3963
3963
|
<DasIcon icon="huida" size="large" iconColor="#212121"></DasIcon>\r
|
|
3964
3964
|
<span style="margin-left: 8px">{{ t('回答') }}</span>\r
|
|
@@ -3968,9 +3968,9 @@ const Eo = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
|
|
|
3968
3968
|
<div class="ai-answer-skeleton-item"></div>\r
|
|
3969
3969
|
<div class="ai-answer-skeleton-item" style="width: 50%"></div>\r
|
|
3970
3970
|
</div> `),
|
|
3971
|
-
!
|
|
3971
|
+
!m.item.loading && f.value && !m.item.file.length ? (w(), P(
|
|
3972
3972
|
"div",
|
|
3973
|
-
|
|
3973
|
+
zo,
|
|
3974
3974
|
V(A(T)("已暂停生成")),
|
|
3975
3975
|
1
|
|
3976
3976
|
/* TEXT */
|
|
@@ -3979,27 +3979,27 @@ const Eo = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
|
|
|
3979
3979
|
"div",
|
|
3980
3980
|
{
|
|
3981
3981
|
key: 1,
|
|
3982
|
-
class:
|
|
3982
|
+
class: Ku(["das-ai-think-markdown-box", { "hide-think": !d.value }])
|
|
3983
3983
|
},
|
|
3984
3984
|
[
|
|
3985
3985
|
v("div", {
|
|
3986
|
-
onClick: p[0] || (p[0] = (
|
|
3986
|
+
onClick: p[0] || (p[0] = (b) => d.value = !d.value),
|
|
3987
3987
|
class: "think-line"
|
|
3988
3988
|
}, [
|
|
3989
3989
|
v(
|
|
3990
3990
|
"div",
|
|
3991
|
-
|
|
3991
|
+
No,
|
|
3992
3992
|
V(h.value),
|
|
3993
3993
|
1
|
|
3994
3994
|
/* TEXT */
|
|
3995
3995
|
),
|
|
3996
|
-
v("div",
|
|
3997
|
-
d.value ? z("v-if", !0) : (w(), X(A(
|
|
3996
|
+
v("div", Lo, [
|
|
3997
|
+
d.value ? z("v-if", !0) : (w(), X(A(pt), {
|
|
3998
3998
|
key: 0,
|
|
3999
3999
|
size: "medium",
|
|
4000
4000
|
iconColor: "#999999"
|
|
4001
4001
|
})),
|
|
4002
|
-
d.value ? (w(), X(A(
|
|
4002
|
+
d.value ? (w(), X(A(bt), {
|
|
4003
4003
|
key: 1,
|
|
4004
4004
|
size: "medium",
|
|
4005
4005
|
iconColor: "#999999"
|
|
@@ -4009,7 +4009,7 @@ const Eo = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
|
|
|
4009
4009
|
v("div", {
|
|
4010
4010
|
class: "das-ai-think-markdown",
|
|
4011
4011
|
innerHTML: r.value
|
|
4012
|
-
}, null, 8,
|
|
4012
|
+
}, null, 8, Bo)
|
|
4013
4013
|
],
|
|
4014
4014
|
2
|
|
4015
4015
|
/* CLASS */
|
|
@@ -4020,9 +4020,9 @@ const Eo = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
|
|
|
4020
4020
|
ref: i,
|
|
4021
4021
|
class: "das-ai-chat-markdown",
|
|
4022
4022
|
innerHTML: n.value
|
|
4023
|
-
}, null, 8,
|
|
4024
|
-
|
|
4025
|
-
|
|
4023
|
+
}, null, 8, qo)) : z("v-if", !0),
|
|
4024
|
+
m.isNew && !m.item.loading ? (w(), P("div", Mo, [
|
|
4025
|
+
m.isNew ? (w(), X(A(Cu), {
|
|
4026
4026
|
key: 0,
|
|
4027
4027
|
placement: "top",
|
|
4028
4028
|
type: "button"
|
|
@@ -4038,10 +4038,10 @@ const Eo = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
|
|
|
4038
4038
|
]),
|
|
4039
4039
|
default: J(() => [
|
|
4040
4040
|
v("div", {
|
|
4041
|
-
onClick: p[1] || (p[1] = (
|
|
4041
|
+
onClick: p[1] || (p[1] = (b) => C("regenerate")),
|
|
4042
4042
|
class: "chat-opt-box"
|
|
4043
4043
|
}, [
|
|
4044
|
-
j(A(
|
|
4044
|
+
j(A(f0), {
|
|
4045
4045
|
size: "medium",
|
|
4046
4046
|
iconColor: "#666666"
|
|
4047
4047
|
})
|
|
@@ -4065,10 +4065,10 @@ const Eo = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
|
|
|
4065
4065
|
]),
|
|
4066
4066
|
default: J(() => [
|
|
4067
4067
|
v("div", {
|
|
4068
|
-
onClick: p[2] || (p[2] = (
|
|
4068
|
+
onClick: p[2] || (p[2] = (b) => C("copy")),
|
|
4069
4069
|
class: "chat-opt-box"
|
|
4070
4070
|
}, [
|
|
4071
|
-
j(A(
|
|
4071
|
+
j(A(h0), {
|
|
4072
4072
|
size: "medium",
|
|
4073
4073
|
iconColor: "#666666"
|
|
4074
4074
|
})
|
|
@@ -4092,15 +4092,15 @@ const Eo = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
|
|
|
4092
4092
|
]),
|
|
4093
4093
|
default: J(() => [
|
|
4094
4094
|
v("div", {
|
|
4095
|
-
onClick: p[3] || (p[3] = (
|
|
4095
|
+
onClick: p[3] || (p[3] = (b) => C("play")),
|
|
4096
4096
|
class: "chat-opt-box"
|
|
4097
4097
|
}, [
|
|
4098
|
-
|
|
4098
|
+
m.item.audioStatus == "normal" ? (w(), X(A(p0), {
|
|
4099
4099
|
key: 0,
|
|
4100
4100
|
size: "medium",
|
|
4101
4101
|
iconColor: "#666666"
|
|
4102
4102
|
})) : z("v-if", !0),
|
|
4103
|
-
|
|
4103
|
+
m.item.audioStatus == "generated" ? (w(), P("div", Oo, p[4] || (p[4] = [
|
|
4104
4104
|
v(
|
|
4105
4105
|
"span",
|
|
4106
4106
|
null,
|
|
@@ -4137,8 +4137,8 @@ const Eo = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
|
|
|
4137
4137
|
<span style="width: 1.5px"></span>\r
|
|
4138
4138
|
<span style="width: 1.5px"></span>\r
|
|
4139
4139
|
</div> `),
|
|
4140
|
-
|
|
4141
|
-
v("img", { src: A(
|
|
4140
|
+
m.item.audioStatus == "loading" ? (w(), P("div", Ro, [
|
|
4141
|
+
v("img", { src: A(Fo) }, null, 8, Po)
|
|
4142
4142
|
])) : z("v-if", !0)
|
|
4143
4143
|
])
|
|
4144
4144
|
]),
|
|
@@ -4158,7 +4158,7 @@ const Eo = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
|
|
|
4158
4158
|
</div>\r
|
|
4159
4159
|
</das-tooltip> `)
|
|
4160
4160
|
])) : z("v-if", !0),
|
|
4161
|
-
|
|
4161
|
+
m.item.loading && f.value && !m.item.file.length ? (w(), P("div", jo, p[5] || (p[5] = [
|
|
4162
4162
|
v(
|
|
4163
4163
|
"span",
|
|
4164
4164
|
null,
|
|
@@ -4184,10 +4184,10 @@ const Eo = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
|
|
|
4184
4184
|
])
|
|
4185
4185
|
]));
|
|
4186
4186
|
}
|
|
4187
|
-
}),
|
|
4187
|
+
}), Vo = /* @__PURE__ */ cu($o, [["__scopeId", "data-v-267323fc"]]), Uo = { class: "das-ai-chat-container" }, Zo = {
|
|
4188
4188
|
name: "chat"
|
|
4189
|
-
},
|
|
4190
|
-
...
|
|
4189
|
+
}, Go = /* @__PURE__ */ iu({
|
|
4190
|
+
...Zo,
|
|
4191
4191
|
props: {
|
|
4192
4192
|
chartList: { default: [] }
|
|
4193
4193
|
},
|
|
@@ -4199,21 +4199,21 @@ const Eo = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
|
|
|
4199
4199
|
}, o = e, c = (i, a) => {
|
|
4200
4200
|
o("chatEmit", i, a);
|
|
4201
4201
|
};
|
|
4202
|
-
return (i, a) => (w(), P("div",
|
|
4202
|
+
return (i, a) => (w(), P("div", Uo, [
|
|
4203
4203
|
(w(!0), P(
|
|
4204
|
-
|
|
4204
|
+
Nu,
|
|
4205
4205
|
null,
|
|
4206
|
-
|
|
4207
|
-
|
|
4206
|
+
Ju(i.chartList, (s) => (w(), P(
|
|
4207
|
+
Nu,
|
|
4208
4208
|
{
|
|
4209
4209
|
key: s.id
|
|
4210
4210
|
},
|
|
4211
4211
|
[
|
|
4212
|
-
s.role == "user" ? (w(), X(
|
|
4212
|
+
s.role == "user" ? (w(), X(L0, {
|
|
4213
4213
|
key: 0,
|
|
4214
4214
|
item: s
|
|
4215
4215
|
}, null, 8, ["item"])) : z("v-if", !0),
|
|
4216
|
-
s.role == "ai" ? (w(), X(
|
|
4216
|
+
s.role == "ai" ? (w(), X(Vo, {
|
|
4217
4217
|
key: 1,
|
|
4218
4218
|
onAiChatEmit: c,
|
|
4219
4219
|
isNew: r(s),
|
|
@@ -4228,29 +4228,29 @@ const Eo = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
|
|
|
4228
4228
|
))
|
|
4229
4229
|
]));
|
|
4230
4230
|
}
|
|
4231
|
-
}),
|
|
4231
|
+
}), Ko = /* @__PURE__ */ cu(Go, [["__scopeId", "data-v-5db94ade"]]), Jo = { class: "das-ai-senderopt" }, Qo = { class: "int-opt-box-text" }, Wo = {
|
|
4232
4232
|
name: "senderOpt"
|
|
4233
|
-
},
|
|
4234
|
-
...
|
|
4233
|
+
}, Xo = /* @__PURE__ */ iu({
|
|
4234
|
+
...Wo,
|
|
4235
4235
|
setup(u) {
|
|
4236
4236
|
const e = () => {
|
|
4237
|
-
x.deepseek = !x.deepseek,
|
|
4237
|
+
x.deepseek = !x.deepseek, kt();
|
|
4238
4238
|
};
|
|
4239
|
-
return (t, n) => (w(), P("div",
|
|
4239
|
+
return (t, n) => (w(), P("div", Jo, [
|
|
4240
4240
|
v(
|
|
4241
4241
|
"div",
|
|
4242
4242
|
{
|
|
4243
|
-
class:
|
|
4243
|
+
class: Ku(["int-opt-box", { actived: A(x).deepseek }]),
|
|
4244
4244
|
onClick: e
|
|
4245
4245
|
},
|
|
4246
4246
|
[
|
|
4247
|
-
j(A(
|
|
4247
|
+
j(A(m0), {
|
|
4248
4248
|
size: "medium",
|
|
4249
4249
|
iconColor: A(x).deepseek ? "#5582F3" : "#212121"
|
|
4250
4250
|
}, null, 8, ["iconColor"]),
|
|
4251
4251
|
v(
|
|
4252
4252
|
"span",
|
|
4253
|
-
|
|
4253
|
+
Qo,
|
|
4254
4254
|
V(A(T)("深度思考")),
|
|
4255
4255
|
1
|
|
4256
4256
|
/* TEXT */
|
|
@@ -4261,10 +4261,10 @@ const Eo = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
|
|
|
4261
4261
|
)
|
|
4262
4262
|
]));
|
|
4263
4263
|
}
|
|
4264
|
-
}),
|
|
4264
|
+
}), Yo = /* @__PURE__ */ cu(Xo, [["__scopeId", "data-v-5243adf9"]]), ui = { class: "das-ai-sender-container" }, ei = { class: "das-ai-sender-content" }, ti = { class: "das-ai-sender-box" }, ni = { class: "das-ai-int-scoll-box" }, ri = { class: "das-ai-int-box" }, oi = ["placeholder", "disabled"], ii = { class: "das-ai-textarea-mask" }, ci = { class: "das-ai-int-opt-box" }, ai = { class: "int-opt-right" }, si = {
|
|
4265
4265
|
name: "sender"
|
|
4266
|
-
},
|
|
4267
|
-
...
|
|
4266
|
+
}, li = /* @__PURE__ */ iu({
|
|
4267
|
+
...si,
|
|
4268
4268
|
props: {
|
|
4269
4269
|
isNew: { type: Boolean, default: !0 }
|
|
4270
4270
|
},
|
|
@@ -4299,18 +4299,18 @@ const Eo = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
|
|
|
4299
4299
|
}, _ = () => {
|
|
4300
4300
|
n("senderEmit", "stopMsg");
|
|
4301
4301
|
};
|
|
4302
|
-
return (h, f) => (w(), P("div",
|
|
4303
|
-
v("div",
|
|
4302
|
+
return (h, f) => (w(), P("div", ui, [
|
|
4303
|
+
v("div", ei, [
|
|
4304
4304
|
v("div", {
|
|
4305
4305
|
onClick: i,
|
|
4306
4306
|
class: "focus-mask-top"
|
|
4307
4307
|
}),
|
|
4308
|
-
v("div",
|
|
4309
|
-
v("div",
|
|
4310
|
-
v("div",
|
|
4308
|
+
v("div", ti, [
|
|
4309
|
+
v("div", ni, [
|
|
4310
|
+
v("div", ri, [
|
|
4311
4311
|
yu(v("textarea", {
|
|
4312
4312
|
class: "das-ai-textarea",
|
|
4313
|
-
onKeydown:
|
|
4313
|
+
onKeydown: Wt(d, ["enter"]),
|
|
4314
4314
|
"onUpdate:modelValue": f[0] || (f[0] = (g) => A(x).senderValue = g),
|
|
4315
4315
|
placeholder: c.value,
|
|
4316
4316
|
rows: "8",
|
|
@@ -4321,34 +4321,34 @@ const Eo = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
|
|
|
4321
4321
|
onInput: s,
|
|
4322
4322
|
onChange: a,
|
|
4323
4323
|
disabled: A(x).loading
|
|
4324
|
-
}, null, 40,
|
|
4325
|
-
[
|
|
4324
|
+
}, null, 40, oi), [
|
|
4325
|
+
[Xt, A(x).senderValue]
|
|
4326
4326
|
]),
|
|
4327
4327
|
v(
|
|
4328
4328
|
"div",
|
|
4329
|
-
|
|
4329
|
+
ii,
|
|
4330
4330
|
V(A(x).senderValue),
|
|
4331
4331
|
1
|
|
4332
4332
|
/* TEXT */
|
|
4333
4333
|
)
|
|
4334
4334
|
])
|
|
4335
4335
|
]),
|
|
4336
|
-
v("div",
|
|
4336
|
+
v("div", ci, [
|
|
4337
4337
|
v("div", {
|
|
4338
4338
|
onClick: i,
|
|
4339
4339
|
class: "focus-mask-bottom"
|
|
4340
4340
|
}),
|
|
4341
|
-
j(
|
|
4342
|
-
v("div",
|
|
4341
|
+
j(Yo),
|
|
4342
|
+
v("div", ai, [
|
|
4343
4343
|
A(x).loading ? z("v-if", !0) : (w(), P(
|
|
4344
4344
|
"div",
|
|
4345
4345
|
{
|
|
4346
4346
|
key: 0,
|
|
4347
4347
|
onClick: d,
|
|
4348
|
-
class:
|
|
4348
|
+
class: Ku(["int-opt-right-icon", { disabled: o.value }])
|
|
4349
4349
|
},
|
|
4350
4350
|
[
|
|
4351
|
-
j(A(
|
|
4351
|
+
j(A(b0), {
|
|
4352
4352
|
customSize: "12px",
|
|
4353
4353
|
iconColor: o.value ? "#fafafa" : "#fff"
|
|
4354
4354
|
}, null, 8, ["iconColor"])
|
|
@@ -4358,7 +4358,7 @@ const Eo = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
|
|
|
4358
4358
|
)),
|
|
4359
4359
|
A(x).loading ? (w(), P("div", {
|
|
4360
4360
|
key: 1,
|
|
4361
|
-
onClick:
|
|
4361
|
+
onClick: we(_, ["stop"]),
|
|
4362
4362
|
class: "loading-btn"
|
|
4363
4363
|
}, [
|
|
4364
4364
|
z(' <das-spin type="component"> </das-spin> '),
|
|
@@ -4376,30 +4376,30 @@ const Eo = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
|
|
|
4376
4376
|
])
|
|
4377
4377
|
]));
|
|
4378
4378
|
}
|
|
4379
|
-
}),
|
|
4379
|
+
}), di = /* @__PURE__ */ cu(li, [["__scopeId", "data-v-b1b455cb"]]), fi = { class: "das-ai-addtbn-box" }, hi = {
|
|
4380
4380
|
style: { "margin-left": "4px" },
|
|
4381
4381
|
class: "add-text"
|
|
4382
|
-
},
|
|
4382
|
+
}, pi = {
|
|
4383
4383
|
name: "addNew"
|
|
4384
|
-
},
|
|
4385
|
-
...
|
|
4384
|
+
}, bi = /* @__PURE__ */ iu({
|
|
4385
|
+
...pi,
|
|
4386
4386
|
emits: ["addNewEmit"],
|
|
4387
4387
|
setup(u, { emit: e }) {
|
|
4388
4388
|
const t = e, n = (r) => {
|
|
4389
4389
|
t("addNewEmit", r);
|
|
4390
4390
|
};
|
|
4391
|
-
return (r, o) => (w(), P("div",
|
|
4391
|
+
return (r, o) => (w(), P("div", fi, [
|
|
4392
4392
|
v("div", {
|
|
4393
4393
|
class: "add-box",
|
|
4394
4394
|
onClick: o[0] || (o[0] = (c) => n("addNew"))
|
|
4395
4395
|
}, [
|
|
4396
|
-
j(A(
|
|
4396
|
+
j(A(_0), {
|
|
4397
4397
|
size: "medium",
|
|
4398
4398
|
iconColor: "#333333"
|
|
4399
4399
|
}),
|
|
4400
4400
|
v(
|
|
4401
4401
|
"span",
|
|
4402
|
-
|
|
4402
|
+
hi,
|
|
4403
4403
|
V(A(T)("开启新对话")),
|
|
4404
4404
|
1
|
|
4405
4405
|
/* TEXT */
|
|
@@ -4410,20 +4410,20 @@ const Eo = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
|
|
|
4410
4410
|
class: "scroll-opt-box",
|
|
4411
4411
|
onClick: o[1] || (o[1] = (c) => n("scrollBom"))
|
|
4412
4412
|
}, [
|
|
4413
|
-
j(A(
|
|
4413
|
+
j(A(x0), {
|
|
4414
4414
|
size: "large",
|
|
4415
4415
|
iconColor: "#333333"
|
|
4416
4416
|
})
|
|
4417
4417
|
])) : z("v-if", !0)
|
|
4418
4418
|
]));
|
|
4419
4419
|
}
|
|
4420
|
-
}),
|
|
4420
|
+
}), mi = /* @__PURE__ */ cu(bi, [["__scopeId", "data-v-a2879a5e"]]), xi = { class: "das-ai-prompt" }, _i = { class: "das-ai-prompt-title" }, gi = { class: "das-ai-prompt-tip" }, ki = {
|
|
4421
4421
|
key: 0,
|
|
4422
4422
|
class: "das-ai-prompt-small"
|
|
4423
|
-
},
|
|
4423
|
+
}, vi = ["onClick"], yi = {
|
|
4424
4424
|
name: "useChat"
|
|
4425
|
-
},
|
|
4426
|
-
...
|
|
4425
|
+
}, Ai = /* @__PURE__ */ iu({
|
|
4426
|
+
...yi,
|
|
4427
4427
|
props: {
|
|
4428
4428
|
list: { default: [] }
|
|
4429
4429
|
},
|
|
@@ -4432,56 +4432,56 @@ const Eo = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
|
|
|
4432
4432
|
const t = e, n = (r) => {
|
|
4433
4433
|
t("click", r);
|
|
4434
4434
|
};
|
|
4435
|
-
return
|
|
4436
|
-
}), (r, o) => (w(), P("div",
|
|
4435
|
+
return qu(() => {
|
|
4436
|
+
}), (r, o) => (w(), P("div", xi, [
|
|
4437
4437
|
v(
|
|
4438
4438
|
"div",
|
|
4439
|
-
|
|
4439
|
+
_i,
|
|
4440
4440
|
V(A(T)("嗨!我是AI助手")),
|
|
4441
4441
|
1
|
|
4442
4442
|
/* TEXT */
|
|
4443
4443
|
),
|
|
4444
4444
|
v(
|
|
4445
4445
|
"div",
|
|
4446
|
-
|
|
4446
|
+
gi,
|
|
4447
4447
|
V(A(T)("我可以帮你分析,写报告,调节设备,预订会议室,请把你的任务交给我吧~")),
|
|
4448
4448
|
1
|
|
4449
4449
|
/* TEXT */
|
|
4450
4450
|
),
|
|
4451
4451
|
r.list.length ? (w(), P(
|
|
4452
4452
|
"div",
|
|
4453
|
-
|
|
4453
|
+
ki,
|
|
4454
4454
|
V(A(T)("你可以这样说")),
|
|
4455
4455
|
1
|
|
4456
4456
|
/* TEXT */
|
|
4457
4457
|
)) : z("v-if", !0),
|
|
4458
4458
|
(w(!0), P(
|
|
4459
|
-
|
|
4459
|
+
Nu,
|
|
4460
4460
|
null,
|
|
4461
|
-
|
|
4461
|
+
Ju(r.list, (c) => (w(), P("div", {
|
|
4462
4462
|
onClick: (i) => n(c),
|
|
4463
4463
|
class: "das-ai-prompt-item"
|
|
4464
|
-
}, V(c.text), 9,
|
|
4464
|
+
}, V(c.text), 9, vi))),
|
|
4465
4465
|
256
|
|
4466
4466
|
/* UNKEYED_FRAGMENT */
|
|
4467
4467
|
))
|
|
4468
4468
|
]));
|
|
4469
4469
|
}
|
|
4470
|
-
}),
|
|
4471
|
-
|
|
4472
|
-
|
|
4473
|
-
const
|
|
4474
|
-
|
|
4475
|
-
const
|
|
4476
|
-
|
|
4477
|
-
|
|
4478
|
-
const
|
|
4470
|
+
}), Ci = /* @__PURE__ */ cu(Ai, [["__scopeId", "data-v-5dd892b3"]]), Gt = "v1", wu = xt(`/api/llm/knowledge/${Gt}`), Di = xt(`/api/llm/vector/${Gt}`);
|
|
4471
|
+
_t.get("token");
|
|
4472
|
+
_t.post("putObject");
|
|
4473
|
+
const Ei = Di.get("/large-model/general-question"), Fi = wu.post("/chat/stop"), wi = wu.post("/chat/save-knowledge"), Si = wu.get("/chat"), Ii = wu.get("/chat/chat-details"), Ti = wu.delete("/chat/delete-by-user"), zi = wu.delete("/chat"), Ni = wu.get("/chat/delete-by-query-id");
|
|
4474
|
+
Mu.post("/file");
|
|
4475
|
+
const Ra = Mu.post("/file/save-file"), Li = Mu.get("/folder"), Bi = Mu.post("/folder/listAllByCondition");
|
|
4476
|
+
Mu.post("/folder/lazy-tree");
|
|
4477
|
+
Mu.post("/folder/tree-search");
|
|
4478
|
+
const qi = { class: "das-ai-select-container" }, Mi = { class: "das-ai-select-text-box" }, Oi = { class: "das-ai-select-text" }, Ri = { class: "das-ai-select-box" }, Pi = {
|
|
4479
4479
|
key: 0,
|
|
4480
4480
|
class: "das-ai-select-text"
|
|
4481
|
-
},
|
|
4481
|
+
}, ji = { class: "das-ai-type-list" }, Hi = ["onClick"], $i = { class: "das-ai-type-icon" }, Vi = { class: "das-ai-type-box" }, Ui = { class: "das-ai-type-name" }, Zi = { class: "das-ai-type-desc" }, Gi = ["onClick"], Ki = { class: "das-ai-type-tree" }, Ji = {
|
|
4482
4482
|
name: "selectType"
|
|
4483
|
-
},
|
|
4484
|
-
...
|
|
4483
|
+
}, Qi = /* @__PURE__ */ iu({
|
|
4484
|
+
...Ji,
|
|
4485
4485
|
props: {
|
|
4486
4486
|
listLength: { default: 0 }
|
|
4487
4487
|
},
|
|
@@ -4507,11 +4507,11 @@ const Bi = { class: "das-ai-select-container" }, qi = { class: "das-ai-select-te
|
|
|
4507
4507
|
r.value = !1;
|
|
4508
4508
|
}, k = (S) => {
|
|
4509
4509
|
l.value = S.id, x.folderId = S.id == x.allKnowId ? "" : S.id, x.folderName = x.folderId ? S.folderName : "", r.value = !1, n.value = !1;
|
|
4510
|
-
},
|
|
4511
|
-
x.searchType = S.id,
|
|
4510
|
+
}, m = (S) => {
|
|
4511
|
+
x.searchType = S.id, $u(), l.value = x.folderId ? x.folderId : x.allKnowId, r.value = !0, b();
|
|
4512
4512
|
}, p = async (S) => {
|
|
4513
|
-
x.searchType = S.id, n.value = !1,
|
|
4514
|
-
},
|
|
4513
|
+
x.searchType = S.id, n.value = !1, $u();
|
|
4514
|
+
}, b = async () => {
|
|
4515
4515
|
const S = {
|
|
4516
4516
|
folderName: "",
|
|
4517
4517
|
// 文件夹名称
|
|
@@ -4520,41 +4520,41 @@ const Bi = { class: "das-ai-select-container" }, qi = { class: "das-ai-select-te
|
|
|
4520
4520
|
// 是否排除内置文件夹 默认不排除
|
|
4521
4521
|
};
|
|
4522
4522
|
i.value = !0;
|
|
4523
|
-
const [H,
|
|
4523
|
+
const [H, O] = await Bi(S).run();
|
|
4524
4524
|
if (i.value = !1, H)
|
|
4525
4525
|
return;
|
|
4526
|
-
let G =
|
|
4526
|
+
let G = O;
|
|
4527
4527
|
G && G.length ? (G = [
|
|
4528
4528
|
{
|
|
4529
4529
|
disabled: !1,
|
|
4530
4530
|
authority: !0,
|
|
4531
4531
|
id: x.allKnowId,
|
|
4532
4532
|
folderName: T("全部"),
|
|
4533
|
-
childFolderList:
|
|
4533
|
+
childFolderList: O,
|
|
4534
4534
|
folderPath: x.allKnowId,
|
|
4535
4535
|
pathName: T("全部")
|
|
4536
4536
|
}
|
|
4537
4537
|
], G.forEach((_u) => {
|
|
4538
4538
|
L(_u);
|
|
4539
4539
|
})) : (l.value = "", x.folderId = "", x.folderName = ""), a.value = G;
|
|
4540
|
-
}, L = (S, H,
|
|
4541
|
-
S.disabled = !S.authority, S.path = H ? H + `/${S.id}` : S.id, S.pathName =
|
|
4540
|
+
}, L = (S, H, O) => {
|
|
4541
|
+
S.disabled = !S.authority, S.path = H ? H + `/${S.id}` : S.id, S.pathName = O ? O + `/${S.folderName}` : S.folderName, x.folderId && x.folderId == S.id && !S.authority && (x.folderId = "", x.folderName = "", l.value = ""), S.childFolderList && S.childFolderList.length && S.childFolderList.forEach((G) => {
|
|
4542
4542
|
L(G, S.path, S.pathName);
|
|
4543
4543
|
});
|
|
4544
4544
|
};
|
|
4545
|
-
return (S, H) => (w(), P("div",
|
|
4545
|
+
return (S, H) => (w(), P("div", qi, [
|
|
4546
4546
|
yu(v(
|
|
4547
4547
|
"div",
|
|
4548
|
-
|
|
4548
|
+
Mi,
|
|
4549
4549
|
[
|
|
4550
|
-
j(A(
|
|
4550
|
+
j(A(Ie), {
|
|
4551
4551
|
onClick: _,
|
|
4552
4552
|
size: "large",
|
|
4553
4553
|
iconColor: "#666666"
|
|
4554
4554
|
}),
|
|
4555
4555
|
v(
|
|
4556
4556
|
"div",
|
|
4557
|
-
|
|
4557
|
+
Oi,
|
|
4558
4558
|
V(f.value),
|
|
4559
4559
|
1
|
|
4560
4560
|
/* TEXT */
|
|
@@ -4563,16 +4563,16 @@ const Bi = { class: "das-ai-select-container" }, qi = { class: "das-ai-select-te
|
|
|
4563
4563
|
512
|
|
4564
4564
|
/* NEED_PATCH */
|
|
4565
4565
|
), [
|
|
4566
|
-
[
|
|
4566
|
+
[ju, S.listLength]
|
|
4567
4567
|
]),
|
|
4568
|
-
j(A(
|
|
4568
|
+
j(A(k0), {
|
|
4569
4569
|
popperClass: "das-ai-select-popover",
|
|
4570
4570
|
"popper-options": o.value,
|
|
4571
4571
|
"show-arrow": !1,
|
|
4572
4572
|
width: 428,
|
|
4573
4573
|
trigger: "click",
|
|
4574
4574
|
visible: n.value,
|
|
4575
|
-
"onUpdate:visible": H[2] || (H[2] = (
|
|
4575
|
+
"onUpdate:visible": H[2] || (H[2] = (O) => n.value = O),
|
|
4576
4576
|
disabled: t.value,
|
|
4577
4577
|
onShow: y,
|
|
4578
4578
|
onHide: C
|
|
@@ -4580,22 +4580,22 @@ const Bi = { class: "das-ai-select-container" }, qi = { class: "das-ai-select-te
|
|
|
4580
4580
|
reference: J(() => [
|
|
4581
4581
|
yu(v(
|
|
4582
4582
|
"div",
|
|
4583
|
-
|
|
4583
|
+
Ri,
|
|
4584
4584
|
[
|
|
4585
4585
|
z(' <DasIcon v-if="currentItem" :icon="currentItem.icon" size="medium" iconColor="inherit"></DasIcon> '),
|
|
4586
4586
|
h.value ? (w(), P(
|
|
4587
4587
|
"span",
|
|
4588
|
-
|
|
4588
|
+
Pi,
|
|
4589
4589
|
V(h.value.name),
|
|
4590
4590
|
1
|
|
4591
4591
|
/* TEXT */
|
|
4592
4592
|
)) : z("v-if", !0),
|
|
4593
|
-
n.value ? (w(), X(A(
|
|
4593
|
+
n.value ? (w(), X(A(bt), {
|
|
4594
4594
|
key: 1,
|
|
4595
4595
|
size: "mini",
|
|
4596
4596
|
iconColor: "#666666"
|
|
4597
4597
|
})) : z("v-if", !0),
|
|
4598
|
-
n.value ? z("v-if", !0) : (w(), X(A(
|
|
4598
|
+
n.value ? z("v-if", !0) : (w(), X(A(pt), {
|
|
4599
4599
|
key: 2,
|
|
4600
4600
|
size: "mini",
|
|
4601
4601
|
iconColor: "#666666"
|
|
@@ -4604,55 +4604,55 @@ const Bi = { class: "das-ai-select-container" }, qi = { class: "das-ai-select-te
|
|
|
4604
4604
|
512
|
|
4605
4605
|
/* NEED_PATCH */
|
|
4606
4606
|
), [
|
|
4607
|
-
[
|
|
4607
|
+
[ju, !S.listLength]
|
|
4608
4608
|
])
|
|
4609
4609
|
]),
|
|
4610
4610
|
default: J(() => [
|
|
4611
4611
|
yu(v(
|
|
4612
4612
|
"div",
|
|
4613
|
-
|
|
4613
|
+
ji,
|
|
4614
4614
|
[
|
|
4615
4615
|
(w(!0), P(
|
|
4616
|
-
|
|
4616
|
+
Nu,
|
|
4617
4617
|
null,
|
|
4618
|
-
|
|
4619
|
-
onClick: (G) => p(
|
|
4620
|
-
class:
|
|
4618
|
+
Ju(c.value, (O) => (w(), P("div", {
|
|
4619
|
+
onClick: (G) => p(O),
|
|
4620
|
+
class: Ku(["das-ai-type-item", { selected: A(x).searchType == O.id }])
|
|
4621
4621
|
}, [
|
|
4622
|
-
v("div",
|
|
4623
|
-
A(x).searchType ==
|
|
4622
|
+
v("div", $i, [
|
|
4623
|
+
A(x).searchType == O.id ? (w(), X(A(g0), {
|
|
4624
4624
|
key: 0,
|
|
4625
4625
|
customSize: "18px",
|
|
4626
4626
|
iconColor: "#FFFFFF"
|
|
4627
4627
|
})) : z("v-if", !0)
|
|
4628
4628
|
]),
|
|
4629
|
-
v("div",
|
|
4629
|
+
v("div", Vi, [
|
|
4630
4630
|
v(
|
|
4631
4631
|
"div",
|
|
4632
|
-
|
|
4633
|
-
V(
|
|
4632
|
+
Ui,
|
|
4633
|
+
V(O.name),
|
|
4634
4634
|
1
|
|
4635
4635
|
/* TEXT */
|
|
4636
4636
|
),
|
|
4637
4637
|
v(
|
|
4638
4638
|
"div",
|
|
4639
|
-
|
|
4640
|
-
V(
|
|
4639
|
+
Zi,
|
|
4640
|
+
V(O.id == 1 ? g.value : O.desc),
|
|
4641
4641
|
1
|
|
4642
4642
|
/* TEXT */
|
|
4643
4643
|
)
|
|
4644
4644
|
]),
|
|
4645
|
-
|
|
4645
|
+
O.id == "1" ? (w(), P("div", {
|
|
4646
4646
|
key: 0,
|
|
4647
|
-
onClick:
|
|
4647
|
+
onClick: we((G) => m(O), ["stop"]),
|
|
4648
4648
|
class: "know-entry"
|
|
4649
4649
|
}, [
|
|
4650
|
-
j(A(
|
|
4650
|
+
j(A(ht), {
|
|
4651
4651
|
customSize: "18px",
|
|
4652
4652
|
iconColor: "#666666"
|
|
4653
4653
|
})
|
|
4654
|
-
], 8,
|
|
4655
|
-
], 10,
|
|
4654
|
+
], 8, Gi)) : z("v-if", !0)
|
|
4655
|
+
], 10, Hi))),
|
|
4656
4656
|
256
|
|
4657
4657
|
/* UNKEYED_FRAGMENT */
|
|
4658
4658
|
))
|
|
@@ -4660,10 +4660,10 @@ const Bi = { class: "das-ai-select-container" }, qi = { class: "das-ai-select-te
|
|
|
4660
4660
|
512
|
|
4661
4661
|
/* NEED_PATCH */
|
|
4662
4662
|
), [
|
|
4663
|
-
[
|
|
4663
|
+
[ju, !r.value]
|
|
4664
4664
|
]),
|
|
4665
|
-
yu((w(), P("div",
|
|
4666
|
-
j(A(
|
|
4665
|
+
yu((w(), P("div", Ki, [
|
|
4666
|
+
j(A(v0), {
|
|
4667
4667
|
ref: "folderTreeRef",
|
|
4668
4668
|
data: a.value,
|
|
4669
4669
|
isFilter: "",
|
|
@@ -4672,14 +4672,14 @@ const Bi = { class: "das-ai-select-container" }, qi = { class: "das-ai-select-te
|
|
|
4672
4672
|
props: { label: "folderName", children: "childFolderList" },
|
|
4673
4673
|
inputOptions: { placeholder: A(T)("搜索文件夹名称") },
|
|
4674
4674
|
modelValue: l.value,
|
|
4675
|
-
"onUpdate:modelValue": H[0] || (H[0] = (
|
|
4675
|
+
"onUpdate:modelValue": H[0] || (H[0] = (O) => l.value = O),
|
|
4676
4676
|
"filter-value": s.value,
|
|
4677
|
-
"onUpdate:filterValue": H[1] || (H[1] = (
|
|
4677
|
+
"onUpdate:filterValue": H[1] || (H[1] = (O) => s.value = O),
|
|
4678
4678
|
onNodeClick: k
|
|
4679
4679
|
}, null, 8, ["data", "inputOptions", "modelValue", "filter-value"])
|
|
4680
4680
|
])), [
|
|
4681
|
-
[A(
|
|
4682
|
-
[
|
|
4681
|
+
[A(mt), i.value],
|
|
4682
|
+
[ju, r.value]
|
|
4683
4683
|
])
|
|
4684
4684
|
]),
|
|
4685
4685
|
_: 1
|
|
@@ -4687,13 +4687,13 @@ const Bi = { class: "das-ai-select-container" }, qi = { class: "das-ai-select-te
|
|
|
4687
4687
|
}, 8, ["popper-options", "visible", "disabled"])
|
|
4688
4688
|
]));
|
|
4689
4689
|
}
|
|
4690
|
-
}),
|
|
4690
|
+
}), Wi = /* @__PURE__ */ cu(Qi, [["__scopeId", "data-v-fc505048"]]), Xi = { class: "das-ai-reference-content-page" }, Yi = { class: "reference-header" }, uc = { style: { "margin-left": "16px" } }, ec = { class: "reference-list" }, tc = { class: "reference-file-scroll" }, nc = ["onClick"], rc = { class: "reference-file-title" }, oc = { style: { "margin-right": "4px" } }, ic = {
|
|
4691
4691
|
class: "reference-file-title-text",
|
|
4692
4692
|
style: { "margin-left": "4px" }
|
|
4693
|
-
},
|
|
4693
|
+
}, cc = { class: "reference-file-summary" }, ac = {
|
|
4694
4694
|
name: "referenceContent"
|
|
4695
|
-
},
|
|
4696
|
-
...
|
|
4695
|
+
}, sc = /* @__PURE__ */ iu({
|
|
4696
|
+
...ac,
|
|
4697
4697
|
props: {
|
|
4698
4698
|
item: { default: {} }
|
|
4699
4699
|
},
|
|
@@ -4704,10 +4704,10 @@ const Bi = { class: "das-ai-select-container" }, qi = { class: "das-ai-select-te
|
|
|
4704
4704
|
const n = N(-1), r = N([]), o = () => {
|
|
4705
4705
|
t("back");
|
|
4706
4706
|
};
|
|
4707
|
-
|
|
4707
|
+
qu(() => {
|
|
4708
4708
|
});
|
|
4709
4709
|
const c = (a) => {
|
|
4710
|
-
const s = `${
|
|
4710
|
+
const s = `${dt().baseURL}/oss/`;
|
|
4711
4711
|
return a.includes(s);
|
|
4712
4712
|
}, i = (a, s) => {
|
|
4713
4713
|
if (n.value = s, r.value.includes(s) || r.value.push(s), a.type == "url") {
|
|
@@ -4716,48 +4716,48 @@ const Bi = { class: "das-ai-select-container" }, qi = { class: "das-ai-select-te
|
|
|
4716
4716
|
}
|
|
4717
4717
|
c(a.url) ? t("preview", a.url) : window.open(a.url, "_blank");
|
|
4718
4718
|
};
|
|
4719
|
-
return (a, s) => (w(), P("div",
|
|
4720
|
-
v("div",
|
|
4721
|
-
j(A(
|
|
4719
|
+
return (a, s) => (w(), P("div", Xi, [
|
|
4720
|
+
v("div", Yi, [
|
|
4721
|
+
j(A(Ie), {
|
|
4722
4722
|
onClick: o,
|
|
4723
4723
|
size: "large",
|
|
4724
4724
|
iconColor: "#666666"
|
|
4725
4725
|
}),
|
|
4726
4726
|
v(
|
|
4727
4727
|
"span",
|
|
4728
|
-
|
|
4728
|
+
uc,
|
|
4729
4729
|
V(A(T)("参考内容(共$0条)", a.item.file.length)),
|
|
4730
4730
|
1
|
|
4731
4731
|
/* TEXT */
|
|
4732
4732
|
)
|
|
4733
4733
|
]),
|
|
4734
|
-
v("div",
|
|
4735
|
-
j(A(
|
|
4734
|
+
v("div", ec, [
|
|
4735
|
+
j(A(Se), null, {
|
|
4736
4736
|
default: J(() => [
|
|
4737
|
-
v("div",
|
|
4737
|
+
v("div", tc, [
|
|
4738
4738
|
(w(!0), P(
|
|
4739
|
-
|
|
4739
|
+
Nu,
|
|
4740
4740
|
null,
|
|
4741
|
-
|
|
4741
|
+
Ju(a.item.file, (l, d) => (w(), P("div", {
|
|
4742
4742
|
onClick: (_) => i(l, d),
|
|
4743
|
-
class:
|
|
4743
|
+
class: Ku(["reference-file-item", { current: n.value == d, selected: r.value.includes(d) }])
|
|
4744
4744
|
}, [
|
|
4745
4745
|
z(" v-das-tooltip "),
|
|
4746
|
-
v("div",
|
|
4746
|
+
v("div", rc, [
|
|
4747
4747
|
v(
|
|
4748
4748
|
"span",
|
|
4749
|
-
|
|
4749
|
+
oc,
|
|
4750
4750
|
V(d + 1) + ".",
|
|
4751
4751
|
1
|
|
4752
4752
|
/* TEXT */
|
|
4753
4753
|
),
|
|
4754
|
-
j(A(
|
|
4754
|
+
j(A(y0), {
|
|
4755
4755
|
size: "mini",
|
|
4756
4756
|
iconColor: "inherit"
|
|
4757
4757
|
}),
|
|
4758
4758
|
v(
|
|
4759
4759
|
"span",
|
|
4760
|
-
|
|
4760
|
+
ic,
|
|
4761
4761
|
V(l.name),
|
|
4762
4762
|
1
|
|
4763
4763
|
/* TEXT */
|
|
@@ -4766,12 +4766,12 @@ const Bi = { class: "das-ai-select-container" }, qi = { class: "das-ai-select-te
|
|
|
4766
4766
|
z(" v-das-tooltip "),
|
|
4767
4767
|
v(
|
|
4768
4768
|
"div",
|
|
4769
|
-
|
|
4769
|
+
cc,
|
|
4770
4770
|
V(l.summary),
|
|
4771
4771
|
1
|
|
4772
4772
|
/* TEXT */
|
|
4773
4773
|
)
|
|
4774
|
-
], 10,
|
|
4774
|
+
], 10, nc))),
|
|
4775
4775
|
256
|
|
4776
4776
|
/* UNKEYED_FRAGMENT */
|
|
4777
4777
|
))
|
|
@@ -4783,11 +4783,11 @@ const Bi = { class: "das-ai-select-container" }, qi = { class: "das-ai-select-te
|
|
|
4783
4783
|
])
|
|
4784
4784
|
]));
|
|
4785
4785
|
}
|
|
4786
|
-
}),
|
|
4786
|
+
}), lc = /* @__PURE__ */ cu(sc, [["__scopeId", "data-v-2e2cf904"]]), dc = ct(() => import("./index-CJeKTaAS.js")), fc = () => {
|
|
4787
4787
|
const u = N(null), e = N(!1);
|
|
4788
4788
|
let t = "", n = "";
|
|
4789
4789
|
return {
|
|
4790
|
-
deletaDialogVue: () =>
|
|
4790
|
+
deletaDialogVue: () => at(dc, {
|
|
4791
4791
|
ref: u,
|
|
4792
4792
|
onConfirm: (c) => {
|
|
4793
4793
|
n = !0, e.value = !1;
|
|
@@ -4809,44 +4809,44 @@ const Bi = { class: "das-ai-select-container" }, qi = { class: "das-ai-select-te
|
|
|
4809
4809
|
},
|
|
4810
4810
|
deleteDialogRef: u
|
|
4811
4811
|
};
|
|
4812
|
-
},
|
|
4812
|
+
}, hc = { class: "das-ai-history-dialogue" }, pc = { class: "history-dialogue-header" }, bc = { class: "history-dialogue-header-left" }, mc = { style: { "margin-left": "16px" } }, xc = {
|
|
4813
4813
|
class: "history-dialogue-list",
|
|
4814
4814
|
id: "history-dialogue-scrollbox"
|
|
4815
|
-
},
|
|
4815
|
+
}, _c = {
|
|
4816
4816
|
key: 1,
|
|
4817
4817
|
class: "history-dialogue-scroll"
|
|
4818
|
-
},
|
|
4818
|
+
}, gc = ["onClick"], kc = { class: "item-title" }, vc = { class: "item-bottom" }, yc = { class: "item-bottom-left" }, Ac = { class: "item-type" }, Cc = {
|
|
4819
4819
|
name: "history"
|
|
4820
|
-
},
|
|
4821
|
-
...
|
|
4820
|
+
}, Dc = /* @__PURE__ */ iu({
|
|
4821
|
+
...Cc,
|
|
4822
4822
|
props: {
|
|
4823
4823
|
chatId: { default: "" }
|
|
4824
4824
|
},
|
|
4825
4825
|
emits: ["back", "record"],
|
|
4826
4826
|
setup(u, { emit: e }) {
|
|
4827
|
-
const t = N(!1), { deletaDialogVue: n, showDeleteDialog: r } =
|
|
4827
|
+
const t = N(!1), { deletaDialogVue: n, showDeleteDialog: r } = fc(), o = N([]), c = e, i = () => {
|
|
4828
4828
|
c("back");
|
|
4829
4829
|
}, a = (k) => {
|
|
4830
|
-
let
|
|
4831
|
-
return
|
|
4830
|
+
let m = k.replace(/^(#+)\s/gm, "");
|
|
4831
|
+
return m = m.replace(/^([-*+]|\d+\.)\s/gm, ""), m = m.replace(/([*_]{1,2})(.*?)\1/g, "$2"), m = m.replace(/```[\s\S]*?```/g, ""), m = m.replace(/`(.*?)`/g, "$1"), m = m.replace(/\[([^\]]+)\]\([^)]+\)/g, "$1"), m = m.replace(/!\[([^\]]+)\]\([^)]+\)/g, "$1"), m = m.replace(/<[^>]*>/g, ""), m;
|
|
4832
4832
|
}, s = (k) => {
|
|
4833
|
-
const
|
|
4834
|
-
|
|
4833
|
+
const m = document.querySelector("#history-dialogue-scrollbox .das-ai-wrap-class");
|
|
4834
|
+
m.scrollHeight - m.clientHeight - k.scrollTop <= 20 && !t.value && l.value < d.value && (l.value = l.value + 1, h());
|
|
4835
4835
|
}, l = N(1), d = N(1), _ = N(20), h = async () => {
|
|
4836
4836
|
t.value = !0;
|
|
4837
4837
|
const k = {
|
|
4838
4838
|
pageIndex: l.value,
|
|
4839
4839
|
pageSize: _.value
|
|
4840
|
-
}, [
|
|
4841
|
-
t.value = !1, !
|
|
4842
|
-
|
|
4840
|
+
}, [m, p] = await Si(k).run();
|
|
4841
|
+
t.value = !1, !m && (p.data && p.data.length && p.data.forEach((b) => {
|
|
4842
|
+
b.time = b.createdAt ? te(b.createdAt).format("YYYY-MM-DD HH:mm:ss") : "", b.answerText = b.answer ? a(b.answer) : "";
|
|
4843
4843
|
}), l.value == 1 ? o.value = p.data : o.value = o.value.concat(p.data), d.value = p.totalPage);
|
|
4844
4844
|
}, f = (k) => k.searchType == 0 ? T("物联应用") : k.searchType == 1 ? T("知识库") : k.searchType == 2 ? T("全网") : T("全部"), g = async (k) => {
|
|
4845
4845
|
c("record", k);
|
|
4846
4846
|
}, y = async (k) => {
|
|
4847
4847
|
await r(T("删除后,该会话将不可恢复,")), k.id, t.value = !0;
|
|
4848
|
-
const [
|
|
4849
|
-
if (
|
|
4848
|
+
const [m, p] = await zi({ id: k.id }).run();
|
|
4849
|
+
if (m) {
|
|
4850
4850
|
t.value = !1;
|
|
4851
4851
|
return;
|
|
4852
4852
|
}
|
|
@@ -4854,26 +4854,26 @@ const Bi = { class: "das-ai-select-container" }, qi = { class: "das-ai-select-te
|
|
|
4854
4854
|
}, C = async (k) => {
|
|
4855
4855
|
if (!o.value.length) return;
|
|
4856
4856
|
await r(T("清空后,所有历史将无法找回,")), t.value = !0;
|
|
4857
|
-
const [
|
|
4858
|
-
if (
|
|
4857
|
+
const [m, p] = await Ti().run();
|
|
4858
|
+
if (m) {
|
|
4859
4859
|
t.value = !1;
|
|
4860
4860
|
return;
|
|
4861
4861
|
}
|
|
4862
4862
|
h();
|
|
4863
4863
|
};
|
|
4864
|
-
return
|
|
4864
|
+
return qu(() => {
|
|
4865
4865
|
h();
|
|
4866
|
-
}), (k,
|
|
4867
|
-
v("div",
|
|
4868
|
-
v("div",
|
|
4869
|
-
j(A(
|
|
4866
|
+
}), (k, m) => yu((w(), P("div", hc, [
|
|
4867
|
+
v("div", pc, [
|
|
4868
|
+
v("div", bc, [
|
|
4869
|
+
j(A(Ie), {
|
|
4870
4870
|
onClick: i,
|
|
4871
4871
|
size: "large",
|
|
4872
4872
|
iconColor: "#666666"
|
|
4873
4873
|
}),
|
|
4874
4874
|
v(
|
|
4875
4875
|
"span",
|
|
4876
|
-
|
|
4876
|
+
mc,
|
|
4877
4877
|
V(A(T)("历史会话")),
|
|
4878
4878
|
1
|
|
4879
4879
|
/* TEXT */
|
|
@@ -4893,7 +4893,7 @@ const Bi = { class: "das-ai-select-container" }, qi = { class: "das-ai-select-te
|
|
|
4893
4893
|
)
|
|
4894
4894
|
]),
|
|
4895
4895
|
default: J(() => [
|
|
4896
|
-
j(A(
|
|
4896
|
+
j(A(A0), {
|
|
4897
4897
|
onClick: C,
|
|
4898
4898
|
size: "large",
|
|
4899
4899
|
iconColor: "#666666"
|
|
@@ -4903,23 +4903,23 @@ const Bi = { class: "das-ai-select-container" }, qi = { class: "das-ai-select-te
|
|
|
4903
4903
|
/* STABLE */
|
|
4904
4904
|
})
|
|
4905
4905
|
]),
|
|
4906
|
-
v("div",
|
|
4907
|
-
j(A(
|
|
4906
|
+
v("div", xc, [
|
|
4907
|
+
j(A(Se), {
|
|
4908
4908
|
"wrap-class": "das-ai-wrap-class",
|
|
4909
4909
|
onScroll: s
|
|
4910
4910
|
}, {
|
|
4911
4911
|
default: J(() => [
|
|
4912
|
-
o.value.length ? (w(), P("div",
|
|
4912
|
+
o.value.length ? (w(), P("div", _c, [
|
|
4913
4913
|
(w(!0), P(
|
|
4914
|
-
|
|
4914
|
+
Nu,
|
|
4915
4915
|
null,
|
|
4916
|
-
|
|
4916
|
+
Ju(o.value, (p, b) => (w(), P("div", {
|
|
4917
4917
|
class: "history-dialogue-item",
|
|
4918
4918
|
onClick: (L) => g(p)
|
|
4919
4919
|
}, [
|
|
4920
4920
|
v(
|
|
4921
4921
|
"div",
|
|
4922
|
-
|
|
4922
|
+
kc,
|
|
4923
4923
|
V(p.title),
|
|
4924
4924
|
1
|
|
4925
4925
|
/* TEXT */
|
|
@@ -4933,11 +4933,11 @@ const Bi = { class: "das-ai-select-container" }, qi = { class: "das-ai-select-te
|
|
|
4933
4933
|
text: p.answerText,
|
|
4934
4934
|
row: "2"
|
|
4935
4935
|
}, null, 8, ["text"]),
|
|
4936
|
-
v("div",
|
|
4937
|
-
v("div",
|
|
4936
|
+
v("div", vc, [
|
|
4937
|
+
v("div", yc, [
|
|
4938
4938
|
v(
|
|
4939
4939
|
"div",
|
|
4940
|
-
|
|
4940
|
+
Ac,
|
|
4941
4941
|
V(f(p)),
|
|
4942
4942
|
1
|
|
4943
4943
|
/* TEXT */
|
|
@@ -4967,8 +4967,8 @@ const Bi = { class: "das-ai-select-container" }, qi = { class: "das-ai-select-te
|
|
|
4967
4967
|
)
|
|
4968
4968
|
]),
|
|
4969
4969
|
default: J(() => [
|
|
4970
|
-
j(A(
|
|
4971
|
-
onClick:
|
|
4970
|
+
j(A(C0), {
|
|
4971
|
+
onClick: we((L) => y(p), ["stop"]),
|
|
4972
4972
|
size: "medium",
|
|
4973
4973
|
iconColor: "#666666"
|
|
4974
4974
|
}, null, 8, ["onClick"])
|
|
@@ -4980,11 +4980,11 @@ const Bi = { class: "das-ai-select-container" }, qi = { class: "das-ai-select-te
|
|
|
4980
4980
|
/* DYNAMIC_SLOTS */
|
|
4981
4981
|
)
|
|
4982
4982
|
])
|
|
4983
|
-
], 8,
|
|
4983
|
+
], 8, gc))),
|
|
4984
4984
|
256
|
|
4985
4985
|
/* UNKEYED_FRAGMENT */
|
|
4986
4986
|
))
|
|
4987
|
-
])) : (w(), X(A(
|
|
4987
|
+
])) : (w(), X(A(D0), { key: 0 }))
|
|
4988
4988
|
]),
|
|
4989
4989
|
_: 1
|
|
4990
4990
|
/* STABLE */
|
|
@@ -4992,12 +4992,12 @@ const Bi = { class: "das-ai-select-container" }, qi = { class: "das-ai-select-te
|
|
|
4992
4992
|
]),
|
|
4993
4993
|
j(A(n))
|
|
4994
4994
|
])), [
|
|
4995
|
-
[A(
|
|
4995
|
+
[A(mt), t.value]
|
|
4996
4996
|
]);
|
|
4997
4997
|
}
|
|
4998
|
-
}),
|
|
4998
|
+
}), Ec = /* @__PURE__ */ cu(Dc, [["__scopeId", "data-v-83518c07"]]);
|
|
4999
4999
|
/*! js-cookie v3.0.5 | MIT */
|
|
5000
|
-
function
|
|
5000
|
+
function ee(u) {
|
|
5001
5001
|
for (var e = 1; e < arguments.length; e++) {
|
|
5002
5002
|
var t = arguments[e];
|
|
5003
5003
|
for (var n in t)
|
|
@@ -5005,7 +5005,7 @@ function ne(u) {
|
|
|
5005
5005
|
}
|
|
5006
5006
|
return u;
|
|
5007
5007
|
}
|
|
5008
|
-
var
|
|
5008
|
+
var Fc = {
|
|
5009
5009
|
read: function(u) {
|
|
5010
5010
|
return u[0] === '"' && (u = u.slice(1, -1)), u.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
|
|
5011
5011
|
},
|
|
@@ -5016,10 +5016,10 @@ var Ec = {
|
|
|
5016
5016
|
);
|
|
5017
5017
|
}
|
|
5018
5018
|
};
|
|
5019
|
-
function
|
|
5019
|
+
function Fe(u, e) {
|
|
5020
5020
|
function t(r, o, c) {
|
|
5021
5021
|
if (!(typeof document > "u")) {
|
|
5022
|
-
c =
|
|
5022
|
+
c = ee({}, e, c), typeof c.expires == "number" && (c.expires = new Date(Date.now() + c.expires * 864e5)), c.expires && (c.expires = c.expires.toUTCString()), r = encodeURIComponent(r).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
|
|
5023
5023
|
var i = "";
|
|
5024
5024
|
for (var a in c)
|
|
5025
5025
|
c[a] && (i += "; " + a, c[a] !== !0 && (i += "=" + c[a].split(";")[0]));
|
|
@@ -5048,16 +5048,16 @@ function we(u, e) {
|
|
|
5048
5048
|
t(
|
|
5049
5049
|
r,
|
|
5050
5050
|
"",
|
|
5051
|
-
|
|
5051
|
+
ee({}, o, {
|
|
5052
5052
|
expires: -1
|
|
5053
5053
|
})
|
|
5054
5054
|
);
|
|
5055
5055
|
},
|
|
5056
5056
|
withAttributes: function(r) {
|
|
5057
|
-
return
|
|
5057
|
+
return Fe(this.converter, ee({}, this.attributes, r));
|
|
5058
5058
|
},
|
|
5059
5059
|
withConverter: function(r) {
|
|
5060
|
-
return
|
|
5060
|
+
return Fe(ee({}, this.converter, r), this.attributes);
|
|
5061
5061
|
}
|
|
5062
5062
|
},
|
|
5063
5063
|
{
|
|
@@ -5066,22 +5066,22 @@ function we(u, e) {
|
|
|
5066
5066
|
}
|
|
5067
5067
|
);
|
|
5068
5068
|
}
|
|
5069
|
-
var
|
|
5070
|
-
const
|
|
5069
|
+
var wc = Fe(Fc, { path: "/" });
|
|
5070
|
+
const Sc = () => {
|
|
5071
5071
|
let u = 0, e = -1, t = [], n = "", r = -1, o = !1, c = "", i = "";
|
|
5072
5072
|
const a = N(!1), s = N(), l = N(!1), d = N(""), _ = () => {
|
|
5073
|
-
const C =
|
|
5074
|
-
return C && (
|
|
5075
|
-
}, h = (C = 0, k,
|
|
5073
|
+
const C = ne() ? ne() : wc.get("accessToken"), k = ft().id, m = {};
|
|
5074
|
+
return C && (m.token = C), k && (m.project = k), m;
|
|
5075
|
+
}, h = (C = 0, k, m) => {
|
|
5076
5076
|
if (n = k, r == 1 && C == 1 && i) {
|
|
5077
|
-
i.send(JSON.stringify({ text:
|
|
5077
|
+
i.send(JSON.stringify({ text: m, taskId: c, taskType: C, overFlag: !n.loading, ..._() }));
|
|
5078
5078
|
return;
|
|
5079
5079
|
}
|
|
5080
|
-
n.audioStatus = "generated", i = new
|
|
5080
|
+
n.audioStatus = "generated", i = new E0({
|
|
5081
5081
|
url: "/socket/api/speech/v1/tts",
|
|
5082
5082
|
reconnectWhenClose: !0,
|
|
5083
5083
|
opened: () => {
|
|
5084
|
-
c =
|
|
5084
|
+
c = Hu(), C == 0 && i.send(JSON.stringify({ text: n.content, taskId: c, taskType: C, ..._() })), C == 1 && i.send(JSON.stringify({ text: n.content, taskId: c, taskType: C, overFlag: !n.loading, ..._() })), r = C;
|
|
5085
5085
|
},
|
|
5086
5086
|
message: async (p) => {
|
|
5087
5087
|
if ((p == null ? void 0 : p.taskId) == c) {
|
|
@@ -5145,17 +5145,17 @@ const wc = () => {
|
|
|
5145
5145
|
playAudio: h,
|
|
5146
5146
|
pauseAudio: f
|
|
5147
5147
|
};
|
|
5148
|
-
},
|
|
5148
|
+
}, Ic = { class: "das-ai-container" }, Tc = {
|
|
5149
5149
|
key: 0,
|
|
5150
5150
|
class: "das-ai-index-mask"
|
|
5151
|
-
},
|
|
5151
|
+
}, zc = { class: "ai-top" }, Nc = { class: "ai-top-left" }, Lc = { class: "ai-top-right" }, Bc = {
|
|
5152
5152
|
key: 1,
|
|
5153
5153
|
class: "das-ai-current-box",
|
|
5154
5154
|
id: "das-ai-chat-scrollbox"
|
|
5155
|
-
},
|
|
5155
|
+
}, qc = {
|
|
5156
5156
|
key: 3,
|
|
5157
5157
|
class: "das-ai-chat-new"
|
|
5158
|
-
},
|
|
5158
|
+
}, Mc = { class: "das-ai-chat-input-box" }, Oc = { class: "sendervue-box" }, Rc = ["src", "muted"], Pc = "/api/llm/vector/v1/large-model/chat", jc = /* @__PURE__ */ iu({
|
|
5159
5159
|
__name: "index",
|
|
5160
5160
|
props: {
|
|
5161
5161
|
platformInitNextTick: {}
|
|
@@ -5163,20 +5163,22 @@ const wc = () => {
|
|
|
5163
5163
|
emits: ["toApp"],
|
|
5164
5164
|
setup(u, { expose: e, emit: t }) {
|
|
5165
5165
|
const n = u, r = t;
|
|
5166
|
-
|
|
5166
|
+
te.extend(l0), te.extend(d0);
|
|
5167
5167
|
const o = N(0), c = N(0), i = N(""), a = N(), s = N(""), l = N(null), d = N(!1), _ = N(null), h = N([
|
|
5168
5168
|
{ id: "1", text: T("介绍达实公司及核心产品") },
|
|
5169
5169
|
{ id: "2", text: T("介绍达实公司行业案例") },
|
|
5170
5170
|
{ id: "3", text: T("预订上午9:00的会议室") }
|
|
5171
|
-
]), f = N({}), g = N([]), y = N(["A100", "A002", "A003", "A005"]), C = N(!1), k = N(!1), { folderDialogVue:
|
|
5171
|
+
]), f = N({}), g = N([]), y = N(["A100", "A002", "A003", "A005"]), C = N(!1), k = N(!1), { folderDialogVue: m, showFolderDialog: p } = S0(), { aiAudioRef: b, isAudioplay: L, audioSrc: S, playAudio: H, pauseAudio: O } = Sc();
|
|
5172
5172
|
let G = 0;
|
|
5173
|
-
|
|
5174
|
-
n != null && n.platformInitNextTick && await (n == null ? void 0 : n.platformInitNextTick()),
|
|
5175
|
-
}),
|
|
5176
|
-
|
|
5173
|
+
qu(async () => {
|
|
5174
|
+
n != null && n.platformInitNextTick && await (n == null ? void 0 : n.platformInitNextTick()), kt(!0), $u();
|
|
5175
|
+
}), lt(() => {
|
|
5176
|
+
be(), O();
|
|
5177
5177
|
});
|
|
5178
5178
|
const _u = () => {
|
|
5179
|
-
|
|
5179
|
+
gu();
|
|
5180
|
+
}, Ru = () => {
|
|
5181
|
+
O();
|
|
5180
5182
|
};
|
|
5181
5183
|
bu(
|
|
5182
5184
|
() => x.loading,
|
|
@@ -5186,44 +5188,44 @@ const wc = () => {
|
|
|
5186
5188
|
), bu(
|
|
5187
5189
|
() => x.searchType,
|
|
5188
5190
|
(I) => {
|
|
5189
|
-
|
|
5191
|
+
gu();
|
|
5190
5192
|
}
|
|
5191
5193
|
);
|
|
5192
|
-
const
|
|
5194
|
+
const gu = async () => {
|
|
5193
5195
|
if (!x.searchType) return;
|
|
5194
5196
|
if (f[`${x.searchType}`]) {
|
|
5195
5197
|
h.value = f[`${x.searchType}`];
|
|
5196
5198
|
return;
|
|
5197
5199
|
}
|
|
5198
|
-
const [I, D] = await
|
|
5200
|
+
const [I, D] = await Ei({ type: x.searchType }, { ignoreErrorMessage: !0 }).run();
|
|
5199
5201
|
I || D && (f[`${x.searchType}`] = D.map((K) => ({
|
|
5200
|
-
id:
|
|
5202
|
+
id: Hu(),
|
|
5201
5203
|
text: K
|
|
5202
5204
|
})), h.value = f[`${x.searchType}`]);
|
|
5203
|
-
},
|
|
5204
|
-
|
|
5205
|
+
}, fu = () => {
|
|
5206
|
+
Ae(() => {
|
|
5205
5207
|
if (k.value) return;
|
|
5206
5208
|
const I = document.querySelector("#das-ai-chat-scrollbox .das-ai-wrap-class");
|
|
5207
5209
|
I && (C.value = !0, I.scrollTop = I.scrollHeight, o.value = I.scrollHeight - I.clientHeight);
|
|
5208
5210
|
});
|
|
5209
5211
|
};
|
|
5210
|
-
let
|
|
5211
|
-
const
|
|
5212
|
-
|
|
5212
|
+
let ru = "";
|
|
5213
|
+
const Pu = () => {
|
|
5214
|
+
ru && clearTimeout(ru), ru = setTimeout(() => {
|
|
5213
5215
|
k.value = !1;
|
|
5214
5216
|
}, 2e3);
|
|
5215
|
-
},
|
|
5217
|
+
}, de = (I) => {
|
|
5216
5218
|
if (o.value <= 0) {
|
|
5217
5219
|
const D = document.querySelector("#das-ai-chat-scrollbox .das-ai-wrap-class");
|
|
5218
5220
|
o.value = D.scrollHeight - D.clientHeight;
|
|
5219
5221
|
}
|
|
5220
|
-
x.showScrollBom = o.value - I.scrollTop > 50, C.value || (k.value = !0,
|
|
5221
|
-
},
|
|
5222
|
-
id:
|
|
5222
|
+
x.showScrollBom = o.value - I.scrollTop > 50, C.value || (k.value = !0, Pu()), C.value = !1;
|
|
5223
|
+
}, Eu = () => ({
|
|
5224
|
+
id: Hu(),
|
|
5223
5225
|
role: "user",
|
|
5224
5226
|
content: ""
|
|
5225
|
-
}),
|
|
5226
|
-
id:
|
|
5227
|
+
}), Su = () => ({
|
|
5228
|
+
id: Hu(),
|
|
5227
5229
|
role: "ai",
|
|
5228
5230
|
audioStatus: "normal",
|
|
5229
5231
|
intention: "",
|
|
@@ -5238,24 +5240,24 @@ const wc = () => {
|
|
|
5238
5240
|
thinkTime: 0,
|
|
5239
5241
|
file: [],
|
|
5240
5242
|
urls: []
|
|
5241
|
-
}),
|
|
5243
|
+
}), fe = async (I) => {
|
|
5242
5244
|
s.value = "", d.value = !0;
|
|
5243
|
-
const [D, K] = await
|
|
5245
|
+
const [D, K] = await Ii({ chatId: I.id }).run();
|
|
5244
5246
|
if (!D)
|
|
5245
5247
|
if (K) {
|
|
5246
|
-
const
|
|
5248
|
+
const Y = [];
|
|
5247
5249
|
let R = "", au = "", su = "";
|
|
5248
5250
|
K && !K.status && K.forEach((U) => {
|
|
5249
|
-
R || (R = U.chat_id), au || (au = U.searchType), su || (su = U.fold_id), U.fromType == 0 &&
|
|
5250
|
-
...
|
|
5251
|
+
R || (R = U.chat_id), au || (au = U.searchType), su || (su = U.fold_id), U.fromType == 0 && Y.push({
|
|
5252
|
+
...Eu(),
|
|
5251
5253
|
content: U.content
|
|
5252
|
-
}), U.fromType == 1 && (U.files || (U.files = []), U.urls || (U.urls = []), U.urls.length && (U.urls = U.urls.map((
|
|
5253
|
-
name:
|
|
5254
|
-
appUrl:
|
|
5255
|
-
webUrl:
|
|
5254
|
+
}), U.fromType == 1 && (U.files || (U.files = []), U.urls || (U.urls = []), U.urls.length && (U.urls = U.urls.map((Iu) => ({
|
|
5255
|
+
name: Iu.name,
|
|
5256
|
+
appUrl: Iu.app_url,
|
|
5257
|
+
webUrl: Iu.web_url,
|
|
5256
5258
|
type: "url"
|
|
5257
|
-
})), U.files.unshift(...U.urls)),
|
|
5258
|
-
...
|
|
5259
|
+
})), U.files.unshift(...U.urls)), Y.push({
|
|
5260
|
+
...Su(),
|
|
5259
5261
|
content: U.content,
|
|
5260
5262
|
think: U.think,
|
|
5261
5263
|
urls: U.urls,
|
|
@@ -5265,69 +5267,69 @@ const wc = () => {
|
|
|
5265
5267
|
intention: U.intention,
|
|
5266
5268
|
showSave: !y.value.includes(U.intention)
|
|
5267
5269
|
}));
|
|
5268
|
-
}),
|
|
5270
|
+
}), B(), g.value = Y, c.value = R, x.searchType = au || "1", au == "1" && (x.folderId = su, su ? he(su) : x.folderName = ""), $u(), fu(), d.value = !1;
|
|
5269
5271
|
} else
|
|
5270
5272
|
d.value = !1;
|
|
5271
5273
|
}, he = async (I) => {
|
|
5272
5274
|
if (!I) return;
|
|
5273
|
-
const [D, K] = await
|
|
5275
|
+
const [D, K] = await Li({ id: I }).run();
|
|
5274
5276
|
D || K && (x.folderName = K.folderName);
|
|
5275
|
-
},
|
|
5276
|
-
_.value = null, x.loading = !1,
|
|
5277
|
-
},
|
|
5278
|
-
I == "addNew" &&
|
|
5279
|
-
},
|
|
5280
|
-
x.autoAudio = !x.autoAudio, x.autoAudio ||
|
|
5281
|
-
},
|
|
5282
|
-
|
|
5283
|
-
},
|
|
5277
|
+
}, B = () => {
|
|
5278
|
+
_.value = null, x.loading = !1, O(), o.value = 0, g.value = [], l.value = null, C.value = !1, k.value = !1, c.value = null, I0();
|
|
5279
|
+
}, F = (I) => {
|
|
5280
|
+
I == "addNew" && B(), I == "scrollBom" && (k.value = !1, fu());
|
|
5281
|
+
}, E = () => {
|
|
5282
|
+
x.autoAudio = !x.autoAudio, x.autoAudio || O();
|
|
5283
|
+
}, q = (I) => {
|
|
5284
|
+
M("sender", I.text);
|
|
5285
|
+
}, M = async (I, D) => {
|
|
5284
5286
|
if (I == "sender") {
|
|
5285
5287
|
if (x.loading) return;
|
|
5286
|
-
|
|
5288
|
+
O(), k.value = !1;
|
|
5287
5289
|
const K = {
|
|
5288
|
-
...ue(),
|
|
5289
|
-
content: D
|
|
5290
|
-
}, uu = {
|
|
5291
5290
|
...Eu(),
|
|
5291
|
+
content: D
|
|
5292
|
+
}, Y = {
|
|
5293
|
+
...Su(),
|
|
5292
5294
|
loading: !0
|
|
5293
5295
|
};
|
|
5294
|
-
g.value.push(K), g.value.push(
|
|
5296
|
+
g.value.push(K), g.value.push(Y), l.value = Y, je(D);
|
|
5295
5297
|
}
|
|
5296
|
-
I == "stopMsg" &&
|
|
5297
|
-
},
|
|
5298
|
-
var K,
|
|
5298
|
+
I == "stopMsg" && be(), I == "upload" && await p();
|
|
5299
|
+
}, $ = async (I, D) => {
|
|
5300
|
+
var K, Y;
|
|
5299
5301
|
if (I == "regenerate" && D) {
|
|
5300
5302
|
if (x.loading) return;
|
|
5301
|
-
if (
|
|
5302
|
-
const su = { queryId: D.queryId }, [U,
|
|
5303
|
+
if (O(), D.queryId) {
|
|
5304
|
+
const su = { queryId: D.queryId }, [U, Iu] = await Ni(su).run();
|
|
5303
5305
|
if (U) return;
|
|
5304
5306
|
}
|
|
5305
5307
|
D.queryId = "", D.think = "", D.thinkTime = 0, D.intention = "", D.content = "", D.audioStatus = "normal", D.file = [], D.urls = [], D.havePlayAutoAudio = !1, D.saved = !1, D.loading = !0, l.value = D;
|
|
5306
5308
|
const R = g.value.findIndex((su) => su.id == D.id), au = (K = g.value[R - 1]) == null ? void 0 : K.content;
|
|
5307
|
-
|
|
5309
|
+
je(au);
|
|
5308
5310
|
}
|
|
5309
5311
|
if (I == "saveKnowledgebase") {
|
|
5310
|
-
const R = D.item, au = g.value.findIndex((
|
|
5312
|
+
const R = D.item, au = g.value.findIndex((Iu) => Iu.id == R.id), su = (Y = g.value[au - 1]) == null ? void 0 : Y.content;
|
|
5311
5313
|
await p({
|
|
5312
5314
|
currentItem: R,
|
|
5313
5315
|
sendVal: su.slice(0, 20),
|
|
5314
5316
|
// 知识库标题限制长度
|
|
5315
5317
|
dom: D.dom
|
|
5316
|
-
}) && (R.saved = !0, R.queryId &&
|
|
5318
|
+
}) && (R.saved = !0, R.queryId && wi({ QueryId: R.queryId }).run());
|
|
5317
5319
|
}
|
|
5318
|
-
I == "reference" && (l.value = D, s.value = "reference"), I == "play" && (D.data.audioStatus == "normal" ? (
|
|
5319
|
-
},
|
|
5320
|
+
I == "reference" && (l.value = D, s.value = "reference"), I == "play" && (D.data.audioStatus == "normal" ? (O(), H(0, D.data)) : (l.value && (l.value.audioStatus = "normal"), O())), I == "preview" && Fu(D);
|
|
5321
|
+
}, eu = (I) => {
|
|
5320
5322
|
r("toApp", I);
|
|
5321
|
-
},
|
|
5322
|
-
i.value = I,
|
|
5323
|
+
}, Fu = (I) => {
|
|
5324
|
+
i.value = I, Ae(() => {
|
|
5323
5325
|
var D;
|
|
5324
5326
|
(D = a.value) == null || D.preview();
|
|
5325
5327
|
});
|
|
5326
|
-
},
|
|
5327
|
-
|
|
5328
|
-
},
|
|
5328
|
+
}, Re = (I) => {
|
|
5329
|
+
O(), s.value = "history";
|
|
5330
|
+
}, Pe = () => {
|
|
5329
5331
|
s.value = "";
|
|
5330
|
-
},
|
|
5332
|
+
}, Kt = (I) => {
|
|
5331
5333
|
const D = {
|
|
5332
5334
|
query: I,
|
|
5333
5335
|
deepThinkFlag: x.deepseek ? "1" : "0",
|
|
@@ -5340,35 +5342,35 @@ const wc = () => {
|
|
|
5340
5342
|
//是否搜索全网(0否1是)
|
|
5341
5343
|
};
|
|
5342
5344
|
return c.value || (c.value = (/* @__PURE__ */ new Date()).getTime()), D.chatId = c.value, x.searchType == "0" && (D.isInnerSearch = "1"), x.searchType == "1" && (D.isKnowledgeSearch = "1", D.foldId = x.folderId == x.allKnowId ? "" : x.folderId), x.searchType == "2" && (D.isGlobalSearch = "1"), JSON.stringify(D);
|
|
5343
|
-
},
|
|
5345
|
+
}, Jt = () => {
|
|
5344
5346
|
const I = {
|
|
5345
5347
|
// Authorization: `Bearer ${getToken()}`,
|
|
5346
5348
|
"Content-Type": "application/json",
|
|
5347
|
-
Timezone:
|
|
5349
|
+
Timezone: te.tz.guess()
|
|
5348
5350
|
};
|
|
5349
|
-
return
|
|
5351
|
+
return ne() && (I.Authorization = `Bearer ${ne()}`), I;
|
|
5350
5352
|
};
|
|
5351
|
-
let
|
|
5352
|
-
const
|
|
5353
|
-
x.loading = !0,
|
|
5354
|
-
const D = new tu(`${
|
|
5353
|
+
let pe = "";
|
|
5354
|
+
const je = (I) => {
|
|
5355
|
+
x.loading = !0, fu();
|
|
5356
|
+
const D = new tu(`${dt().baseURL}${Pc}?project=${ft().id}`, {
|
|
5355
5357
|
method: "POST",
|
|
5356
5358
|
// 使用 POST 请求
|
|
5357
|
-
headers:
|
|
5358
|
-
payload:
|
|
5359
|
+
headers: Jt(),
|
|
5360
|
+
payload: Kt(I),
|
|
5359
5361
|
// POST 请求体
|
|
5360
5362
|
//重连时间间隔,单位:毫秒,默认45000毫秒,这里设置为10分钟
|
|
5361
5363
|
heartbeatTimeout: 10 * 60 * 1e3
|
|
5362
5364
|
});
|
|
5363
|
-
|
|
5364
|
-
const K =
|
|
5365
|
-
D.onmessage = (
|
|
5366
|
-
if (K !=
|
|
5367
|
-
if (
|
|
5368
|
-
D.close(), x.loading = !1, l.value.loading = !1, x.autoAudio && l.value.content && l.value.audioStatus != "normal" && H(1, l.value, ""),
|
|
5365
|
+
pe = Hu();
|
|
5366
|
+
const K = pe;
|
|
5367
|
+
D.onmessage = (Y) => {
|
|
5368
|
+
if (K != pe) return;
|
|
5369
|
+
if (Y.data == "[DONE]") {
|
|
5370
|
+
D.close(), x.loading = !1, l.value.loading = !1, x.autoAudio && l.value.content && l.value.audioStatus != "normal" && H(1, l.value, ""), fu();
|
|
5369
5371
|
return;
|
|
5370
5372
|
}
|
|
5371
|
-
const R = JSON.parse(
|
|
5373
|
+
const R = JSON.parse(Y.data);
|
|
5372
5374
|
if (l.value.intention || (l.value.intention = R.intention, l.value.showSave = !y.value.includes(R.intention)), R.type == "queryId" && (l.value.queryId || (l.value.queryId = R.content)), R.type == "think" && (l.value.think || (G = (/* @__PURE__ */ new Date()).getTime()), l.value.think = l.value.think + R.content), R.type == "text") {
|
|
5373
5375
|
if (G && l.value.think && !l.value.content) {
|
|
5374
5376
|
const au = (/* @__PURE__ */ new Date()).getTime() - G;
|
|
@@ -5376,17 +5378,17 @@ const wc = () => {
|
|
|
5376
5378
|
}
|
|
5377
5379
|
l.value.content = l.value.content + R.content, l.value.showSave, x.autoAudio && (l.value.audioStatus == "normal" ? H(1, l.value, l.value.content) : H(1, l.value, R.content));
|
|
5378
5380
|
}
|
|
5379
|
-
R.type == "file" && l.value.file.push(R), R.type == "url" && (R.webUrl && (R.webUrl = decodeURIComponent(R.webUrl)), R.name = R.content, l.value.file.push(R), l.value.urls.push(R)),
|
|
5380
|
-
}, D.onerror = (
|
|
5381
|
+
R.type == "file" && l.value.file.push(R), R.type == "url" && (R.webUrl && (R.webUrl = decodeURIComponent(R.webUrl)), R.name = R.content, l.value.file.push(R), l.value.urls.push(R)), fu();
|
|
5382
|
+
}, D.onerror = (Y) => {
|
|
5381
5383
|
D.close(), x.loading = !1, l.value.content = T("连接错误");
|
|
5382
5384
|
}, _.value = D;
|
|
5383
|
-
},
|
|
5385
|
+
}, be = () => {
|
|
5384
5386
|
var I;
|
|
5385
|
-
if ((I = _.value) == null || I.close(), x.loading = !1,
|
|
5387
|
+
if ((I = _.value) == null || I.close(), x.loading = !1, Qt(), l.value && (l.value.loading = !1, l.value.think && !l.value.thinkTime)) {
|
|
5386
5388
|
const D = (/* @__PURE__ */ new Date()).getTime() - G;
|
|
5387
5389
|
G = 0, l.value.thinkTime = parseInt(`${D / 1e3}`);
|
|
5388
5390
|
}
|
|
5389
|
-
},
|
|
5391
|
+
}, Qt = async () => {
|
|
5390
5392
|
if (l.value && l.value.loading && l.value.queryId && l.value.content) {
|
|
5391
5393
|
let I = l.value.file ? l.value.file.filter((R) => R.type != "url") : [];
|
|
5392
5394
|
const D = {
|
|
@@ -5419,7 +5421,7 @@ const wc = () => {
|
|
|
5419
5421
|
//
|
|
5420
5422
|
};
|
|
5421
5423
|
D.searchType == "1" && (D.fold_id = x.folderId == x.allKnowId ? "" : x.folderId);
|
|
5422
|
-
const [K,
|
|
5424
|
+
const [K, Y] = await Fi(D).run();
|
|
5423
5425
|
if (K) return;
|
|
5424
5426
|
}
|
|
5425
5427
|
};
|
|
@@ -5428,42 +5430,43 @@ const wc = () => {
|
|
|
5428
5430
|
x.senderValue = `${x.senderValue}${I}`;
|
|
5429
5431
|
},
|
|
5430
5432
|
outSendMsg: () => {
|
|
5431
|
-
x.senderValue &&
|
|
5433
|
+
x.senderValue && M("sender", x.senderValue);
|
|
5432
5434
|
},
|
|
5433
|
-
|
|
5435
|
+
showFn: _u,
|
|
5436
|
+
hideFn: Ru,
|
|
5434
5437
|
playAudioFn: () => {
|
|
5435
5438
|
const I = g.value.findLastIndex((K) => K.role == "ai"), D = g.value[I] ? g.value[I] : null;
|
|
5436
5439
|
D && H(0, D);
|
|
5437
5440
|
},
|
|
5438
|
-
pauseAudio:
|
|
5439
|
-
stopMsg:
|
|
5440
|
-
openNewChat:
|
|
5441
|
+
pauseAudio: O,
|
|
5442
|
+
stopMsg: be,
|
|
5443
|
+
openNewChat: B
|
|
5441
5444
|
}), (I, D) => {
|
|
5442
|
-
const K =
|
|
5443
|
-
return yu((w(), P("div",
|
|
5444
|
-
s.value ? (w(), P("div",
|
|
5445
|
-
s.value == "reference" ? (w(), X(
|
|
5445
|
+
const K = Yt("dasLoading");
|
|
5446
|
+
return yu((w(), P("div", Ic, [
|
|
5447
|
+
s.value ? (w(), P("div", Tc, [
|
|
5448
|
+
s.value == "reference" ? (w(), X(lc, {
|
|
5446
5449
|
key: 0,
|
|
5447
5450
|
item: l.value,
|
|
5448
|
-
onPreview:
|
|
5449
|
-
onBack:
|
|
5450
|
-
onToApp:
|
|
5451
|
+
onPreview: Fu,
|
|
5452
|
+
onBack: Pe,
|
|
5453
|
+
onToApp: eu
|
|
5451
5454
|
}, null, 8, ["item"])) : z("v-if", !0),
|
|
5452
|
-
s.value == "history" ? (w(), X(
|
|
5455
|
+
s.value == "history" ? (w(), X(Ec, {
|
|
5453
5456
|
key: 1,
|
|
5454
5457
|
chatId: c.value,
|
|
5455
|
-
onRecord:
|
|
5456
|
-
onBack:
|
|
5458
|
+
onRecord: fe,
|
|
5459
|
+
onBack: Pe
|
|
5457
5460
|
}, null, 8, ["chatId"])) : z("v-if", !0)
|
|
5458
5461
|
])) : z("v-if", !0),
|
|
5459
|
-
v("div",
|
|
5460
|
-
v("div",
|
|
5461
|
-
j(
|
|
5462
|
-
onBack:
|
|
5462
|
+
v("div", zc, [
|
|
5463
|
+
v("div", Nc, [
|
|
5464
|
+
j(Wi, {
|
|
5465
|
+
onBack: B,
|
|
5463
5466
|
listLength: g.value.length
|
|
5464
5467
|
}, null, 8, ["listLength"])
|
|
5465
5468
|
]),
|
|
5466
|
-
v("div",
|
|
5469
|
+
v("div", Lc, [
|
|
5467
5470
|
j(A(Cu), {
|
|
5468
5471
|
placement: "top",
|
|
5469
5472
|
type: "button"
|
|
@@ -5479,16 +5482,16 @@ const wc = () => {
|
|
|
5479
5482
|
]),
|
|
5480
5483
|
default: J(() => [
|
|
5481
5484
|
v("div", {
|
|
5482
|
-
onClick:
|
|
5485
|
+
onClick: E,
|
|
5483
5486
|
style: { "margin-right": "16px" },
|
|
5484
5487
|
class: "ai-top-right-icon"
|
|
5485
5488
|
}, [
|
|
5486
|
-
A(x).autoAudio ? (w(), X(A(
|
|
5489
|
+
A(x).autoAudio ? (w(), X(A(i0), {
|
|
5487
5490
|
key: 0,
|
|
5488
5491
|
customSize: "20",
|
|
5489
5492
|
iconColor: "#006DF1"
|
|
5490
5493
|
})) : z("v-if", !0),
|
|
5491
|
-
A(x).autoAudio ? z("v-if", !0) : (w(), X(A(
|
|
5494
|
+
A(x).autoAudio ? z("v-if", !0) : (w(), X(A(c0), {
|
|
5492
5495
|
key: 1,
|
|
5493
5496
|
customSize: "20",
|
|
5494
5497
|
iconColor: "#333333"
|
|
@@ -5513,10 +5516,10 @@ const wc = () => {
|
|
|
5513
5516
|
]),
|
|
5514
5517
|
default: J(() => [
|
|
5515
5518
|
v("div", {
|
|
5516
|
-
onClick:
|
|
5519
|
+
onClick: Re,
|
|
5517
5520
|
class: "ai-top-right-icon"
|
|
5518
5521
|
}, [
|
|
5519
|
-
j(A(
|
|
5522
|
+
j(A(a0), {
|
|
5520
5523
|
customSize: "20",
|
|
5521
5524
|
iconColor: "#666666"
|
|
5522
5525
|
})
|
|
@@ -5527,14 +5530,14 @@ const wc = () => {
|
|
|
5527
5530
|
})
|
|
5528
5531
|
])
|
|
5529
5532
|
]),
|
|
5530
|
-
g.value.length ? (w(), P("div",
|
|
5531
|
-
j(A(
|
|
5533
|
+
g.value.length ? (w(), P("div", Bc, [
|
|
5534
|
+
j(A(Se), {
|
|
5532
5535
|
"wrap-class": "das-ai-wrap-class",
|
|
5533
|
-
onScroll:
|
|
5536
|
+
onScroll: de
|
|
5534
5537
|
}, {
|
|
5535
5538
|
default: J(() => [
|
|
5536
|
-
j(
|
|
5537
|
-
onChatEmit:
|
|
5539
|
+
j(Ko, {
|
|
5540
|
+
onChatEmit: $,
|
|
5538
5541
|
chartList: g.value
|
|
5539
5542
|
}, null, 8, ["chartList"])
|
|
5540
5543
|
]),
|
|
@@ -5542,13 +5545,13 @@ const wc = () => {
|
|
|
5542
5545
|
/* STABLE */
|
|
5543
5546
|
})
|
|
5544
5547
|
])) : z("v-if", !0),
|
|
5545
|
-
g.value.length ? z("v-if", !0) : (w(), X(
|
|
5548
|
+
g.value.length ? z("v-if", !0) : (w(), X(Ci, {
|
|
5546
5549
|
key: 2,
|
|
5547
5550
|
list: h.value,
|
|
5548
|
-
onClick:
|
|
5551
|
+
onClick: q
|
|
5549
5552
|
}, null, 8, ["list"])),
|
|
5550
5553
|
z(' v-if="currentList.length && !dasAiData.loading" '),
|
|
5551
|
-
g.value.length ? (w(), P("div",
|
|
5554
|
+
g.value.length ? (w(), P("div", qc, [
|
|
5552
5555
|
D[0] || (D[0] = v(
|
|
5553
5556
|
"div",
|
|
5554
5557
|
{ class: "chat-new-top-mask" },
|
|
@@ -5556,10 +5559,10 @@ const wc = () => {
|
|
|
5556
5559
|
-1
|
|
5557
5560
|
/* HOISTED */
|
|
5558
5561
|
)),
|
|
5559
|
-
j(
|
|
5562
|
+
j(mi, { onAddNewEmit: F })
|
|
5560
5563
|
])) : z("v-if", !0),
|
|
5561
5564
|
z(' :class="{ full: !currentList.length }" '),
|
|
5562
|
-
v("div",
|
|
5565
|
+
v("div", Mc, [
|
|
5563
5566
|
z(` <div v-if="!currentList.length" class="new-content">\r
|
|
5564
5567
|
<div class="new-content-top">\r
|
|
5565
5568
|
<div class="new-content-img"><img :src="dasImg" /></div>\r
|
|
@@ -5571,10 +5574,10 @@ const wc = () => {
|
|
|
5571
5574
|
</div>\r
|
|
5572
5575
|
</div> `),
|
|
5573
5576
|
z(' v-show="!dasAiData.loading" '),
|
|
5574
|
-
v("div",
|
|
5575
|
-
j(
|
|
5577
|
+
v("div", Oc, [
|
|
5578
|
+
j(di, {
|
|
5576
5579
|
isNew: !g.value.length,
|
|
5577
|
-
onSenderEmit:
|
|
5580
|
+
onSenderEmit: M
|
|
5578
5581
|
}, null, 8, ["isNew"])
|
|
5579
5582
|
]),
|
|
5580
5583
|
z(` <div v-show="dasAiData.loading" class="loading-content">\r
|
|
@@ -5590,8 +5593,8 @@ const wc = () => {
|
|
|
5590
5593
|
/* HOISTED */
|
|
5591
5594
|
))
|
|
5592
5595
|
]),
|
|
5593
|
-
j(A(
|
|
5594
|
-
j(A(
|
|
5596
|
+
j(A(m)),
|
|
5597
|
+
j(A(s0), {
|
|
5595
5598
|
ref_key: "dasPreviewRef",
|
|
5596
5599
|
ref: a,
|
|
5597
5600
|
"file-url": i.value
|
|
@@ -5600,87 +5603,88 @@ const wc = () => {
|
|
|
5600
5603
|
src: A(S),
|
|
5601
5604
|
class: "ai-audio-class",
|
|
5602
5605
|
ref_key: "aiAudioRef",
|
|
5603
|
-
ref:
|
|
5606
|
+
ref: b,
|
|
5604
5607
|
muted: !A(L),
|
|
5605
5608
|
autoplay: ""
|
|
5606
|
-
}, null, 8,
|
|
5609
|
+
}, null, 8, Rc)
|
|
5607
5610
|
])), [
|
|
5608
5611
|
[K, d.value]
|
|
5609
5612
|
]);
|
|
5610
5613
|
};
|
|
5611
5614
|
}
|
|
5612
|
-
}),
|
|
5615
|
+
}), Hc = /* @__PURE__ */ cu(jc, [["__scopeId", "data-v-40a41338"]]), $c = { class: "das-ai-panel-div 2" }, Vc = { class: "das-ai-panel-coantainer-header" }, Uc = { class: "das-ai-panel-header-title" }, Zc = { class: "das-ai-panel-coantainer-body" }, Gc = /* @__PURE__ */ iu({
|
|
5613
5616
|
__name: "index",
|
|
5614
5617
|
props: {
|
|
5615
5618
|
platformInitNextTick: {}
|
|
5616
5619
|
},
|
|
5617
5620
|
emits: ["confirm", "toApp", "getStatus"],
|
|
5618
5621
|
setup(u, { expose: e, emit: t }) {
|
|
5619
|
-
const n = t, r =
|
|
5622
|
+
const n = t, r = n0(), o = N(), c = N(0), i = N(), a = N(!1);
|
|
5620
5623
|
bu(
|
|
5621
5624
|
() => r == null ? void 0 : r.path,
|
|
5622
|
-
(
|
|
5625
|
+
(b, L) => {
|
|
5623
5626
|
d();
|
|
5624
5627
|
}
|
|
5625
|
-
),
|
|
5628
|
+
), qu(() => {
|
|
5626
5629
|
setTimeout(() => {
|
|
5627
|
-
|
|
5628
|
-
let
|
|
5629
|
-
|
|
5630
|
+
Ae(() => {
|
|
5631
|
+
let b = document.getElementsByClassName("das-web-app-header")[0];
|
|
5632
|
+
b && (c.value = b.clientHeight), b && !i.value && (i.value = F0((L) => {
|
|
5630
5633
|
c.value = L.height;
|
|
5631
|
-
},
|
|
5634
|
+
}, b));
|
|
5632
5635
|
});
|
|
5633
5636
|
}, 1e3);
|
|
5634
|
-
}),
|
|
5635
|
-
var
|
|
5636
|
-
(
|
|
5637
|
+
}), lt(() => {
|
|
5638
|
+
var b;
|
|
5639
|
+
(b = i.value) == null || b.disconnect(), i.value = null;
|
|
5637
5640
|
});
|
|
5638
|
-
const s = (
|
|
5639
|
-
n("toApp",
|
|
5641
|
+
const s = (b) => {
|
|
5642
|
+
n("toApp", b);
|
|
5640
5643
|
}, l = () => {
|
|
5641
|
-
|
|
5644
|
+
var b;
|
|
5645
|
+
a.value || (a.value = !0, (b = o.value) == null || b.showFn(), n("getStatus", !0));
|
|
5642
5646
|
}, d = () => {
|
|
5643
|
-
var
|
|
5644
|
-
a.value = !1, (
|
|
5647
|
+
var b;
|
|
5648
|
+
a.value = !1, (b = o.value) == null || b.hideFn(), n("getStatus", !1);
|
|
5645
5649
|
};
|
|
5646
5650
|
return e({
|
|
5647
|
-
setAutoAudio: (
|
|
5648
|
-
x.autoAudio =
|
|
5651
|
+
setAutoAudio: (b) => {
|
|
5652
|
+
x.autoAudio = b;
|
|
5649
5653
|
},
|
|
5650
|
-
setConfig: (
|
|
5651
|
-
|
|
5654
|
+
setConfig: (b) => {
|
|
5655
|
+
b != null && b.searchType && (x.searchType = b == null ? void 0 : b.searchType), (b == null ? void 0 : b.searchType) == "1" && (x.folderId = b.folderId ? b.folderId : "", x.folderName = b.folderName ? b.folderName : ""), $u();
|
|
5652
5656
|
},
|
|
5653
5657
|
stopMsg: () => {
|
|
5654
|
-
var
|
|
5655
|
-
(
|
|
5658
|
+
var b;
|
|
5659
|
+
(b = o.value) == null || b.stopMsg();
|
|
5656
5660
|
},
|
|
5657
5661
|
playAudio: () => {
|
|
5658
|
-
var
|
|
5659
|
-
(
|
|
5662
|
+
var b;
|
|
5663
|
+
(b = o.value) == null || b.playAudioFn();
|
|
5660
5664
|
},
|
|
5661
5665
|
pauseAudio: () => {
|
|
5662
|
-
var
|
|
5663
|
-
(
|
|
5666
|
+
var b;
|
|
5667
|
+
(b = o.value) == null || b.pauseAudio();
|
|
5664
5668
|
},
|
|
5665
5669
|
openNewChat: () => {
|
|
5666
|
-
var
|
|
5667
|
-
(
|
|
5670
|
+
var b;
|
|
5671
|
+
(b = o.value) == null || b.openNewChat();
|
|
5668
5672
|
},
|
|
5669
5673
|
send: () => {
|
|
5670
|
-
var
|
|
5671
|
-
(
|
|
5674
|
+
var b;
|
|
5675
|
+
(b = o.value) == null || b.outSendMsg();
|
|
5672
5676
|
},
|
|
5673
|
-
senderVal: (
|
|
5677
|
+
senderVal: (b) => {
|
|
5674
5678
|
var L;
|
|
5675
|
-
(L = o.value) == null || L.senderVal(
|
|
5679
|
+
(L = o.value) == null || L.senderVal(b);
|
|
5676
5680
|
},
|
|
5677
5681
|
clearSenderVal: () => {
|
|
5678
5682
|
x.senderValue = "";
|
|
5679
5683
|
},
|
|
5680
5684
|
openPanel: l,
|
|
5681
5685
|
closePanel: d
|
|
5682
|
-
}), (
|
|
5683
|
-
j(
|
|
5686
|
+
}), (b, L) => (w(), P("div", $c, [
|
|
5687
|
+
j(u0, {
|
|
5684
5688
|
name: "das-ai-panel",
|
|
5685
5689
|
persisted: ""
|
|
5686
5690
|
}, {
|
|
@@ -5689,13 +5693,13 @@ const wc = () => {
|
|
|
5689
5693
|
"div",
|
|
5690
5694
|
{
|
|
5691
5695
|
class: "das-ai-panel-coantainer",
|
|
5692
|
-
style:
|
|
5696
|
+
style: e0({ top: `${c.value}px` })
|
|
5693
5697
|
},
|
|
5694
5698
|
[
|
|
5695
|
-
v("div",
|
|
5699
|
+
v("div", Vc, [
|
|
5696
5700
|
v(
|
|
5697
5701
|
"div",
|
|
5698
|
-
|
|
5702
|
+
Uc,
|
|
5699
5703
|
V(A(T)("AI助手")),
|
|
5700
5704
|
1
|
|
5701
5705
|
/* TEXT */
|
|
@@ -5704,15 +5708,15 @@ const wc = () => {
|
|
|
5704
5708
|
onClick: d,
|
|
5705
5709
|
class: "das-ai-panel-header-close"
|
|
5706
5710
|
}, [
|
|
5707
|
-
j(A(
|
|
5711
|
+
j(A(r0), {
|
|
5708
5712
|
size: "medium",
|
|
5709
5713
|
iconColor: "#666666"
|
|
5710
5714
|
})
|
|
5711
5715
|
])
|
|
5712
5716
|
]),
|
|
5713
|
-
v("div",
|
|
5714
|
-
j(
|
|
5715
|
-
platformInitNextTick:
|
|
5717
|
+
v("div", Zc, [
|
|
5718
|
+
j(Hc, {
|
|
5719
|
+
platformInitNextTick: b.platformInitNextTick,
|
|
5716
5720
|
ref_key: "dasAiVueRef",
|
|
5717
5721
|
ref: o,
|
|
5718
5722
|
onToApp: s
|
|
@@ -5722,7 +5726,7 @@ const wc = () => {
|
|
|
5722
5726
|
4
|
|
5723
5727
|
/* STYLE */
|
|
5724
5728
|
), [
|
|
5725
|
-
[
|
|
5729
|
+
[ju, a.value]
|
|
5726
5730
|
])
|
|
5727
5731
|
]),
|
|
5728
5732
|
_: 1
|
|
@@ -5749,7 +5753,7 @@ const wc = () => {
|
|
|
5749
5753
|
</das-drawer>`)
|
|
5750
5754
|
]));
|
|
5751
5755
|
}
|
|
5752
|
-
}),
|
|
5756
|
+
}), Kc = /* @__PURE__ */ cu(Gc, [["__scopeId", "data-v-694b3ee4"]]), Jc = {
|
|
5753
5757
|
AI助手: { "zh-CN": "AI助手", en: "AI Assistant", _appCode: "framework" },
|
|
5754
5758
|
自动播报: { "zh-CN": "自动播报", en: "Auto Broadcast" },
|
|
5755
5759
|
历史会话: { "zh-CN": "历史会话", en: "History Sessions" },
|
|
@@ -5835,12 +5839,12 @@ const wc = () => {
|
|
|
5835
5839
|
en: "Reference Content (total $0 entries)"
|
|
5836
5840
|
}
|
|
5837
5841
|
};
|
|
5838
|
-
|
|
5839
|
-
const
|
|
5842
|
+
o0(Jc);
|
|
5843
|
+
const Pa = () => N(null), ja = t0(Kc);
|
|
5840
5844
|
export {
|
|
5841
|
-
|
|
5842
|
-
|
|
5843
|
-
|
|
5844
|
-
|
|
5845
|
-
|
|
5845
|
+
ja as D,
|
|
5846
|
+
cu as _,
|
|
5847
|
+
Pa as a,
|
|
5848
|
+
Bi as g,
|
|
5849
|
+
Ra as s
|
|
5846
5850
|
};
|