mio-previewer 0.2.78 → 0.2.80
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/dist/{_basePickBy-CXmXW7jd.js → _basePickBy-BXMb2AOE.js} +1 -1
- package/dist/{_basePickBy-CtuVwROD.cjs → _basePickBy-Gq2Cas5q.cjs} +1 -1
- package/dist/{_baseUniq-CGoiOkSa.js → _baseUniq-BIMcH3IS.js} +1 -1
- package/dist/{_baseUniq-CYtOXxfV.cjs → _baseUniq-BcGAt4_a.cjs} +1 -1
- package/dist/architecture-O4VJ6CD3-BlRTlotU.cjs +1 -0
- package/dist/architecture-O4VJ6CD3-DDwx_haK.js +2 -0
- package/dist/{architectureDiagram-VXUJARFQ-CYbuyVAs.js → architectureDiagram-VXUJARFQ-DUj6ijII.js} +2 -2
- package/dist/{architectureDiagram-VXUJARFQ-DEGYSl1f.cjs → architectureDiagram-VXUJARFQ-Dkh3T9yi.cjs} +1 -1
- package/dist/{blockDiagram-VD42YOAC-DeX0dq72.cjs → blockDiagram-VD42YOAC-Bbgkwzvr.cjs} +1 -1
- package/dist/{blockDiagram-VD42YOAC-DaH3L5Ng.js → blockDiagram-VD42YOAC-BkKbQDWm.js} +2 -2
- package/dist/{chunk-B4BG7PRW-C67vroOS.cjs → chunk-B4BG7PRW-CfoSZDaK.cjs} +1 -1
- package/dist/{chunk-B4BG7PRW-DSYuK8dI.js → chunk-B4BG7PRW-DHe5kHom.js} +1 -1
- package/dist/{chunk-DI55MBZ5-Clru0TyG.js → chunk-DI55MBZ5-DcgwFHpQ.js} +1 -1
- package/dist/{chunk-DI55MBZ5-BCvBgHrp.cjs → chunk-DI55MBZ5-MddxpbIU.cjs} +1 -1
- package/dist/{classDiagram-2ON5EDUG-Bv1XCvDZ.js → classDiagram-2ON5EDUG-BHTa7ohd.js} +2 -2
- package/dist/{classDiagram-2ON5EDUG-BzMV1CJW.cjs → classDiagram-2ON5EDUG-BOnqRxi3.cjs} +1 -1
- package/dist/{classDiagram-v2-WZHVMYZB-BzMV1CJW.cjs → classDiagram-v2-WZHVMYZB-BOnqRxi3.cjs} +1 -1
- package/dist/{classDiagram-v2-WZHVMYZB-Bqxv5U7u.js → classDiagram-v2-WZHVMYZB-C6TyNDuv.js} +2 -2
- package/dist/clone-CsjVCovA.cjs +1 -0
- package/dist/{clone-B0KDIkSS.js → clone-uXYuzGF_.js} +1 -1
- package/dist/{custom-D-TzPpWT.js → custom-B3nZBz6o.js} +1089 -1044
- package/dist/custom-DxcMopGY.cjs +84 -0
- package/dist/{dagre-6UL2VRFP-B3NqmIxs.cjs → dagre-6UL2VRFP-CaeF4Gmj.cjs} +1 -1
- package/dist/{dagre-6UL2VRFP-3bgUxzqG.js → dagre-6UL2VRFP-CdXuGT6Y.js} +5 -5
- package/dist/{dagre-Buvkww-e.cjs → dagre-DA2mYucy.cjs} +1 -1
- package/dist/{dagre-BfAHSwtP.js → dagre-wnP4thpl.js} +4 -4
- package/dist/{diagram-PSM6KHXK-CF8TkgzX.js → diagram-PSM6KHXK-Cziuk6iM.js} +2 -2
- package/dist/{diagram-PSM6KHXK-C4FjxUHt.cjs → diagram-PSM6KHXK-Dwi9eFmG.cjs} +1 -1
- package/dist/{diagram-QEK2KX5R-Z9DYjr44.cjs → diagram-QEK2KX5R-BIXuOx_Z.cjs} +1 -1
- package/dist/{diagram-QEK2KX5R-Dl3IHeA5.js → diagram-QEK2KX5R-CcH7JZwE.js} +2 -2
- package/dist/{diagram-S2PKOQOG-ZKvn7IEe.js → diagram-S2PKOQOG-CvwN9CX0.js} +2 -2
- package/dist/{diagram-S2PKOQOG-Bib-zL2S.cjs → diagram-S2PKOQOG-DAegXU5o.cjs} +1 -1
- package/dist/{erDiagram-Q2GNP2WA-DFMV9OUT.cjs → erDiagram-Q2GNP2WA-BdhaU2qd.cjs} +1 -1
- package/dist/{erDiagram-Q2GNP2WA-DJYJEzEB.js → erDiagram-Q2GNP2WA-IK20i1UF.js} +1 -1
- package/dist/{flowDiagram-NV44I4VS-7TxeawHS.cjs → flowDiagram-NV44I4VS-B6CmXs2l.cjs} +1 -1
- package/dist/{flowDiagram-NV44I4VS-CXa6ycqs.js → flowDiagram-NV44I4VS-CNGhNzPd.js} +1 -1
- package/dist/gitGraph-ZV4HHKMB-DDd_3n4H.js +2 -0
- package/dist/gitGraph-ZV4HHKMB-spd7n2NJ.cjs +1 -0
- package/dist/{gitGraphDiagram-NY62KEGX-Tphu_MeC.js → gitGraphDiagram-NY62KEGX-5XzjpXsZ.js} +1 -1
- package/dist/{gitGraphDiagram-NY62KEGX-k5xzXg7C.cjs → gitGraphDiagram-NY62KEGX-DybaIjh-.cjs} +1 -1
- package/dist/{graphlib-Cdg0u3TT.cjs → graphlib-Je6oSko6.cjs} +1 -1
- package/dist/{graphlib-C3tPLMbC.js → graphlib-LQ0BZO1X.js} +2 -2
- package/dist/info-63CPKGFF-DBQSyWyM.cjs +1 -0
- package/dist/info-63CPKGFF-TOCj3flR.js +2 -0
- package/dist/{infoDiagram-F6ZHWCRC-3Jwo4J0f.cjs → infoDiagram-F6ZHWCRC-Cmv8yCOu.cjs} +1 -1
- package/dist/{infoDiagram-F6ZHWCRC-BUoruN76.js → infoDiagram-F6ZHWCRC-DkQHT7U-.js} +2 -2
- package/dist/{kanban-definition-3W4ZIXB7-txUXjKzB.cjs → kanban-definition-3W4ZIXB7-B3SIFUS3.cjs} +1 -1
- package/dist/{kanban-definition-3W4ZIXB7-AVLIBuMF.js → kanban-definition-3W4ZIXB7-DRLSBhnr.js} +1 -1
- package/dist/{mermaid-parser.core-C9EbhVVg.cjs → mermaid-parser.core-CAp9cbpI.cjs} +2 -2
- package/dist/{mermaid-parser.core-B84fnaGG.js → mermaid-parser.core-DlUTFxbw.js} +11 -11
- package/dist/{mindmap-definition-VGOIOE7T-VIt9sDN3.js → mindmap-definition-VGOIOE7T-BC0rpEfX.js} +1 -1
- package/dist/{mindmap-definition-VGOIOE7T-CXlyYsc6.cjs → mindmap-definition-VGOIOE7T-BT2qtCps.cjs} +1 -1
- package/dist/mio-previewer.cjs.js +2 -2
- package/dist/mio-previewer.css +1 -1
- package/dist/mio-previewer.es.js +788 -804
- package/dist/packet-HUATNLJX-CMsD0pzs.cjs +1 -0
- package/dist/packet-HUATNLJX-CfxT0hJZ.js +2 -0
- package/dist/pie-WTHONI2E-BKPMrJ7v.js +2 -0
- package/dist/pie-WTHONI2E-D4bgmciw.cjs +1 -0
- package/dist/{pieDiagram-ADFJNKIX-CTT1YMsk.cjs → pieDiagram-ADFJNKIX-Bbz9H7bW.cjs} +1 -1
- package/dist/{pieDiagram-ADFJNKIX-BysReYfx.js → pieDiagram-ADFJNKIX-BeFtJtu7.js} +2 -2
- package/dist/plugins/custom.cjs.js +1 -1
- package/dist/plugins/custom.es.js +1 -1
- package/dist/radar-NJJJXTRR-BTXHFtwN.cjs +1 -0
- package/dist/radar-NJJJXTRR-CBlDLN9e.js +2 -0
- package/dist/{requirementDiagram-UZGBJVZJ-DNYoJyhG.js → requirementDiagram-UZGBJVZJ-BBaCEEM9.js} +1 -1
- package/dist/{requirementDiagram-UZGBJVZJ-DFRpWnfW.cjs → requirementDiagram-UZGBJVZJ-BHQZXuDe.cjs} +1 -1
- package/dist/{sequenceDiagram-WL72ISMW-Bmptok1c.js → sequenceDiagram-WL72ISMW-Dkuew2iC.js} +1 -1
- package/dist/{sequenceDiagram-WL72ISMW-D9sXtgAn.cjs → sequenceDiagram-WL72ISMW-vCalZjVA.cjs} +1 -1
- package/dist/{stateDiagram-FKZM4ZOC-DiD1WJPM.cjs → stateDiagram-FKZM4ZOC-5SpEu1Tp.cjs} +1 -1
- package/dist/{stateDiagram-FKZM4ZOC-Bmiw8fnW.js → stateDiagram-FKZM4ZOC-DDcYFsZV.js} +4 -4
- package/dist/{stateDiagram-v2-4FDKWEC3-5ADhn1IF.js → stateDiagram-v2-4FDKWEC3-BFC2m0Ox.js} +2 -2
- package/dist/{stateDiagram-v2-4FDKWEC3-BjhmCPL1.cjs → stateDiagram-v2-4FDKWEC3-DodG2XCe.cjs} +1 -1
- package/dist/treemap-75Q7IDZK-C1w6jAgA.js +2 -0
- package/dist/treemap-75Q7IDZK-Dc8KXfrN.cjs +1 -0
- package/dist/types/plugins/custom/codeBlockPlugin.d.ts +4 -0
- package/dist/types/types.d.ts +8 -0
- package/dist/types/utils/cors.d.ts +4 -0
- package/dist/{xychartDiagram-PRI3JC2R-BI6KuGZ2.cjs → xychartDiagram-PRI3JC2R-C6k6v-_d.cjs} +1 -1
- package/dist/{xychartDiagram-PRI3JC2R-BWabDL1u.js → xychartDiagram-PRI3JC2R-fFFl9vIl.js} +1 -1
- package/package.json +4 -3
- package/dist/architecture-O4VJ6CD3-B9qzjtV8.cjs +0 -1
- package/dist/architecture-O4VJ6CD3-wqAP4onK.js +0 -2
- package/dist/clone-wvtBTB6v.cjs +0 -1
- package/dist/custom-Bl_fVJZ0.cjs +0 -84
- package/dist/gitGraph-ZV4HHKMB-BjaEVcYh.cjs +0 -1
- package/dist/gitGraph-ZV4HHKMB-Cl2I6-l3.js +0 -2
- package/dist/info-63CPKGFF-D2A5GDFo.js +0 -2
- package/dist/info-63CPKGFF-MRaucWlf.cjs +0 -1
- package/dist/packet-HUATNLJX-CGNko_oS.cjs +0 -1
- package/dist/packet-HUATNLJX-CVx40lqO.js +0 -2
- package/dist/pie-WTHONI2E-BdPx0Cfg.cjs +0 -1
- package/dist/pie-WTHONI2E-DX5V8x0L.js +0 -2
- package/dist/radar-NJJJXTRR-CTD6M8nl.js +0 -2
- package/dist/radar-NJJJXTRR-wJoTnQbj.cjs +0 -1
- package/dist/treemap-75Q7IDZK-9TPMYr3R.cjs +0 -1
- package/dist/treemap-75Q7IDZK-u3p-cHDL.js +0 -2
|
@@ -6,14 +6,32 @@ import { a as ee, d as M, h as N, i as te, m as ne, r as re, u as ie } from "./c
|
|
|
6
6
|
import "./chunk-HN2XXSSU-CJL8wAZ2.js";
|
|
7
7
|
import "./chunk-CVBHYZKI-CiCGetln.js";
|
|
8
8
|
import "./chunk-ATLVNIR6-DHlCNWnJ.js";
|
|
9
|
-
import { B as
|
|
10
|
-
import { i as
|
|
11
|
-
import { a as
|
|
12
|
-
import { a as
|
|
13
|
-
import { Teleport as
|
|
9
|
+
import { B as ae, E as oe, G as se, L as ce, U as le, b as ue, g as de, p as fe, v as pe, w as me, x as he, z as ge } from "./_createAssigner-IEX8lwxm.js";
|
|
10
|
+
import { i as _e, s as ve } from "./chunk-JA3XYJ7Z-CpKHrbOX.js";
|
|
11
|
+
import { a as ye, i as be, s as xe } from "./chunk-JZLCHNYA-CYo7ykJf.js";
|
|
12
|
+
import { a as Se, i as Ce, n as we, r as Te } from "./chunk-QXUST7PY-CxCAwQqP.js";
|
|
13
|
+
import { Fragment as Ee, Teleport as De, computed as Oe, createBlock as ke, createCommentVNode as P, createElementBlock as F, createElementVNode as I, defineComponent as Ae, h as je, inject as Me, normalizeClass as Ne, normalizeStyle as Pe, onMounted as Fe, onUnmounted as Ie, openBlock as L, ref as R, renderList as Le, toDisplayString as Re, vShow as ze, watch as Be, withDirectives as Ve, withModifiers as He } from "vue";
|
|
14
|
+
//#region src/utils/cors.ts
|
|
15
|
+
function Ue(e, t) {
|
|
16
|
+
if (!t || !e || e.startsWith("data:") || e.startsWith("blob:")) return !1;
|
|
17
|
+
let n = e.startsWith("http://") || e.startsWith("https://") || e.startsWith("//");
|
|
18
|
+
if (Array.isArray(t)) return t.some((t) => {
|
|
19
|
+
try {
|
|
20
|
+
return (n ? new URL(e, window.location.origin) : new URL(e, "http://dummy.com")).hostname.includes(t);
|
|
21
|
+
} catch {
|
|
22
|
+
return e.includes(t);
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
if (t === !0 && n) try {
|
|
26
|
+
return new URL(e, window.location.origin).hostname !== window.location.hostname;
|
|
27
|
+
} catch {
|
|
28
|
+
return !1;
|
|
29
|
+
}
|
|
30
|
+
return !1;
|
|
31
|
+
}
|
|
14
32
|
//#endregion
|
|
15
33
|
//#region node_modules/.pnpm/prismjs@1.30.0/node_modules/prismjs/themes/prism-tomorrow.css
|
|
16
|
-
var
|
|
34
|
+
var We = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
|
|
17
35
|
var n = function(e) {
|
|
18
36
|
var t = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i, n = 0, r = {}, i = {
|
|
19
37
|
manual: e.Prism && e.Prism.manual,
|
|
@@ -2381,7 +2399,11 @@ var Be = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
|
|
|
2381
2399
|
})(Prism);
|
|
2382
2400
|
//#endregion
|
|
2383
2401
|
//#region src/components/CodeBlock.vue?vue&type=script&setup=true&lang.ts
|
|
2384
|
-
var
|
|
2402
|
+
var Ge = ["data-lang"], Ke = { class: "code-block-header" }, qe = { class: "lang-label" }, Je = { class: "op-btn-group" }, Ye = ["disabled", "title"], Xe = ["title", "innerHTML"], Ze = { class: "pre-container" }, Qe = {
|
|
2403
|
+
key: 0,
|
|
2404
|
+
class: "line-numbers-rows",
|
|
2405
|
+
"aria-hidden": "true"
|
|
2406
|
+
}, $e = ["innerHTML"], et = ["srcdoc"], tt = "<svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\"><path fill=\"currentColor\" d=\"M4 2a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V2zm2 0v10h6V2H6zm-1 2V2a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1v-8zm-2 2H2V14a2 2 0 0 0 2 2h6v-2a2 2 0 0 0-2-2H4V4zm0 0v10a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V4H4z\"/></svg>", nt = "<svg width=\"17\" height=\"17\" viewBox=\"0 0 20 20\"><path fill=\"currentColor\" d=\"M2 5a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5zm2 0v10h12V5H4zm3.6 3.55l1.4 1.45l-1.4 1.45L7 11.38l2-2l-2-2zm5.4.83l-1.4-1.45L13 6.62l2 2l-2 2z\"/></svg>", rt = "<svg width=\"17\" height=\"17\" viewBox=\"0 0 20 20\"><path fill=\"currentColor\" d=\"M6.23 4.81a1 1 0 0 1 1.41 0L10 7.17l2.36-2.36a1 1 0 0 1 1.41 1.41L11.41 8.59l2.36 2.36a1 1 0 1 1-1.41 1.41L10 10l-2.36 2.36a1 1 0 0 1-1.41-1.41L8.59 8.59 6.23 6.23a1 1 0 0 1 0-1.41z\"/></svg>", it = "<svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\"><path fill=\"currentColor\" d=\"M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z\"/></svg>", at = "<svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\"><path fill=\"currentColor\" d=\"M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z\"/></svg>", ot = "<svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\"><path fill=\"currentColor\" d=\"M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z\"/></svg>", st = "<svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\"><path fill=\"currentColor\" d=\"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z\"/></svg>", ct = "<svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\"><path fill=\"currentColor\" d=\"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z\"/></svg>", lt = /* @__PURE__ */ Ae({
|
|
2385
2407
|
__name: "CodeBlock",
|
|
2386
2408
|
props: {
|
|
2387
2409
|
code: {},
|
|
@@ -2392,102 +2414,110 @@ var Ve = ["data-lang"], He = { class: "code-block-header" }, Ue = { class: "lang
|
|
|
2392
2414
|
type: Boolean,
|
|
2393
2415
|
default: !0
|
|
2394
2416
|
},
|
|
2395
|
-
collapseMaxHeight: { default: 300 }
|
|
2417
|
+
collapseMaxHeight: { default: 300 },
|
|
2418
|
+
showLineNumbers: {
|
|
2419
|
+
type: Boolean,
|
|
2420
|
+
default: !0
|
|
2421
|
+
}
|
|
2396
2422
|
},
|
|
2397
2423
|
setup(e) {
|
|
2398
|
-
let t = e, n =
|
|
2399
|
-
|
|
2424
|
+
let t = e, n = R(!1), r = R(!1), i = R(null), a = R("300px"), o = R(!1), s = R(!1), c = R(!1), l = R(null), u = R(!0), d = R(!1), f = R(!1), p = R(null), m = Oe(() => {
|
|
2425
|
+
if (!t.code) return 0;
|
|
2426
|
+
let e = t.code.match(/\n(?!$)/g);
|
|
2427
|
+
return e ? e.length + 1 : 1;
|
|
2428
|
+
}), h = R(""), g = R(!1), _ = R("0px"), v = R("0px"), y = Oe(() => o.value ? "正在发布..." : s.value ? "已发布成功" : "发布 HTML"), b = `iframe-${Math.random().toString(36).substr(2, 9)}-${Date.now()}`;
|
|
2429
|
+
function x() {
|
|
2400
2430
|
return t.language.toLowerCase() === "html" || t.language.toLowerCase() === "markup";
|
|
2401
2431
|
}
|
|
2402
|
-
function
|
|
2432
|
+
function S() {
|
|
2403
2433
|
let e = t.language || "plaintext";
|
|
2404
|
-
return
|
|
2434
|
+
return We.default.languages[e] ? We.default.highlight(t.code, We.default.languages[e], e) : We.default.util.encode(t.code);
|
|
2405
2435
|
}
|
|
2406
|
-
let
|
|
2407
|
-
|
|
2408
|
-
},
|
|
2436
|
+
let C = R(""), w = () => {
|
|
2437
|
+
C.value = S();
|
|
2438
|
+
}, T = () => {
|
|
2409
2439
|
if (!t.enableCollapse) {
|
|
2410
2440
|
d.value = !1;
|
|
2411
2441
|
return;
|
|
2412
2442
|
}
|
|
2413
2443
|
p.value && (d.value = p.value.scrollHeight > t.collapseMaxHeight);
|
|
2414
|
-
},
|
|
2444
|
+
}, E = () => {
|
|
2415
2445
|
u.value = !u.value, p.value && (p.value.scrollTop = 0, f.value = !1);
|
|
2416
|
-
},
|
|
2446
|
+
}, D = Oe(() => t.enableCollapse && u.value && d.value && !c.value ? {
|
|
2417
2447
|
maxHeight: `${t.collapseMaxHeight}px`,
|
|
2418
2448
|
overflowY: "auto"
|
|
2419
|
-
} : {}),
|
|
2449
|
+
} : {}), O = () => {
|
|
2420
2450
|
if (p.value) {
|
|
2421
2451
|
let { scrollTop: e, scrollHeight: t, clientHeight: n } = p.value;
|
|
2422
2452
|
f.value = t - e <= n + 15;
|
|
2423
2453
|
}
|
|
2424
2454
|
};
|
|
2425
|
-
|
|
2455
|
+
w(), Be(() => [t.code, t.language], () => {
|
|
2426
2456
|
let e = !0;
|
|
2427
2457
|
if (p.value) {
|
|
2428
2458
|
let { scrollTop: t, scrollHeight: n, clientHeight: r } = p.value;
|
|
2429
2459
|
e = n <= r || n - t <= r + 30;
|
|
2430
2460
|
}
|
|
2431
|
-
|
|
2432
|
-
|
|
2461
|
+
w(), setTimeout(() => {
|
|
2462
|
+
T(), p.value && (e && (p.value.scrollTop = p.value.scrollHeight), O());
|
|
2433
2463
|
}, 50);
|
|
2434
2464
|
});
|
|
2435
|
-
let
|
|
2465
|
+
let k = () => {
|
|
2436
2466
|
r.value = !0;
|
|
2437
|
-
},
|
|
2467
|
+
}, A = () => {
|
|
2438
2468
|
r.value = !1, a.value = "300px";
|
|
2439
|
-
},
|
|
2469
|
+
}, j = (e, t, n = 2e3) => {
|
|
2440
2470
|
if (!t) {
|
|
2441
2471
|
console.warn("showTooltip: button is null");
|
|
2442
2472
|
return;
|
|
2443
2473
|
}
|
|
2444
|
-
|
|
2474
|
+
h.value = e;
|
|
2445
2475
|
let r = t.getBoundingClientRect(), i = r.left + r.width / 2, a = r.top;
|
|
2446
|
-
|
|
2476
|
+
_.value = `${i}px`, v.value = `${a}px`, console.log("Tooltip:", {
|
|
2447
2477
|
message: e,
|
|
2448
2478
|
left: i,
|
|
2449
2479
|
top: a,
|
|
2450
2480
|
visible: !0
|
|
2451
|
-
}),
|
|
2452
|
-
|
|
2481
|
+
}), g.value = !0, setTimeout(() => {
|
|
2482
|
+
g.value = !1;
|
|
2453
2483
|
}, n);
|
|
2454
|
-
},
|
|
2484
|
+
}, ee = async (e) => {
|
|
2455
2485
|
let r = e.currentTarget;
|
|
2456
2486
|
try {
|
|
2457
2487
|
let e = t.code.replace(/\u00A0/g, " ");
|
|
2458
|
-
await navigator.clipboard.writeText(e), n.value = !0,
|
|
2488
|
+
await navigator.clipboard.writeText(e), n.value = !0, j("已复制", r), setTimeout(() => {
|
|
2459
2489
|
n.value = !1;
|
|
2460
2490
|
}, 1700);
|
|
2461
2491
|
} catch (e) {
|
|
2462
|
-
console.error("复制失败:", e),
|
|
2492
|
+
console.error("复制失败:", e), j("复制失败", r);
|
|
2463
2493
|
}
|
|
2464
|
-
},
|
|
2494
|
+
}, M = async (e) => {
|
|
2465
2495
|
if (!t.publishUrl || o.value) return;
|
|
2466
2496
|
let n = e.currentTarget;
|
|
2467
|
-
o.value = !0, s.value = !1,
|
|
2497
|
+
o.value = !0, s.value = !1, j("正在发布...", n, 1e4);
|
|
2468
2498
|
try {
|
|
2469
2499
|
let e = await (await fetch(t.publishUrl, {
|
|
2470
2500
|
method: "POST",
|
|
2471
2501
|
headers: { "Content-Type": "application/json" },
|
|
2472
2502
|
body: JSON.stringify({ html: t.code })
|
|
2473
2503
|
})).json();
|
|
2474
|
-
e.code === 0 ? (s.value = !0, t.onPublished && e.url ? (t.onPublished(e.url),
|
|
2504
|
+
e.code === 0 ? (s.value = !0, t.onPublished && e.url ? (t.onPublished(e.url), j("已发布成功", n)) : e.url ? (await navigator.clipboard.writeText(e.url), j("已发布,URL 已复制", n)) : j("已发布成功", n), setTimeout(() => {
|
|
2475
2505
|
s.value = !1;
|
|
2476
|
-
}, 2e3)) : (
|
|
2506
|
+
}, 2e3)) : (j(`发布失败: ${e.msg || "未知错误"}`, n), console.error("发布失败:", e.msg || "未知错误"));
|
|
2477
2507
|
} catch (e) {
|
|
2478
|
-
|
|
2508
|
+
j("发布失败,请检查网络", n), console.error("发布失败:", e);
|
|
2479
2509
|
} finally {
|
|
2480
2510
|
o.value = !1;
|
|
2481
2511
|
}
|
|
2482
|
-
}, M = () => {
|
|
2483
|
-
c.value = !0, document.body.style.overflow = "hidden";
|
|
2484
2512
|
}, N = () => {
|
|
2513
|
+
c.value = !0, document.body.style.overflow = "hidden";
|
|
2514
|
+
}, te = () => {
|
|
2485
2515
|
c.value = !1, document.body.style.overflow = "";
|
|
2486
|
-
},
|
|
2516
|
+
}, ne = Oe(() => {
|
|
2487
2517
|
let e = `
|
|
2488
2518
|
<script>
|
|
2489
2519
|
(function() {
|
|
2490
|
-
const iframeId = '${
|
|
2520
|
+
const iframeId = '${b}';
|
|
2491
2521
|
|
|
2492
2522
|
function sendHeight() {
|
|
2493
2523
|
const height = Math.max(
|
|
@@ -2528,161 +2558,176 @@ var Ve = ["data-lang"], He = { class: "code-block-header" }, Ue = { class: "lang
|
|
|
2528
2558
|
<\/script>
|
|
2529
2559
|
`;
|
|
2530
2560
|
return t.code.toLowerCase().includes("</body>") ? t.code.replace("</body>", `${e}</body>`) : t.code + e;
|
|
2531
|
-
}),
|
|
2532
|
-
if (e.data && e.data.type === "iframe-height" && e.data.iframeId ===
|
|
2561
|
+
}), re = () => {}, ie = (e) => {
|
|
2562
|
+
if (e.data && e.data.type === "iframe-height" && e.data.iframeId === b) {
|
|
2533
2563
|
let t = e.data.height;
|
|
2534
2564
|
a.value = `${Math.max(100, Math.min(1e3, t))}px`;
|
|
2535
2565
|
}
|
|
2536
|
-
},
|
|
2537
|
-
e.key === "Escape" && c.value &&
|
|
2538
|
-
},
|
|
2539
|
-
return
|
|
2540
|
-
window.addEventListener("message",
|
|
2541
|
-
|
|
2542
|
-
}, 50), typeof ResizeObserver < "u" && p.value && (
|
|
2543
|
-
|
|
2544
|
-
}),
|
|
2545
|
-
}),
|
|
2546
|
-
window.removeEventListener("message",
|
|
2547
|
-
}), (t, n) => (
|
|
2566
|
+
}, ae = (e) => {
|
|
2567
|
+
e.key === "Escape" && c.value && te();
|
|
2568
|
+
}, oe = null;
|
|
2569
|
+
return Fe(() => {
|
|
2570
|
+
window.addEventListener("message", ie), window.addEventListener("keydown", ae), setTimeout(() => {
|
|
2571
|
+
T(), O();
|
|
2572
|
+
}, 50), typeof ResizeObserver < "u" && p.value && (oe = new ResizeObserver(() => {
|
|
2573
|
+
T();
|
|
2574
|
+
}), oe.observe(p.value));
|
|
2575
|
+
}), Ie(() => {
|
|
2576
|
+
window.removeEventListener("message", ie), window.removeEventListener("keydown", ae), document.body.style.overflow = "", oe && oe.disconnect();
|
|
2577
|
+
}), (t, n) => (L(), ke(De, {
|
|
2548
2578
|
to: "body",
|
|
2549
2579
|
disabled: !c.value
|
|
2550
|
-
}, [
|
|
2580
|
+
}, [I("div", { class: Ne({ "markdown-body": c.value }) }, [I("div", {
|
|
2551
2581
|
ref_key: "wrapperRef",
|
|
2552
2582
|
ref: l,
|
|
2553
|
-
class:
|
|
2583
|
+
class: Ne(["code-block-wrapper", { fullscreen: c.value }]),
|
|
2554
2584
|
"data-lang": e.language
|
|
2555
2585
|
}, [
|
|
2556
|
-
(
|
|
2586
|
+
(L(), ke(De, { to: "body" }, [g.value ? (L(), F("div", {
|
|
2557
2587
|
key: 0,
|
|
2558
2588
|
class: "code-block-tooltip",
|
|
2559
|
-
style:
|
|
2560
|
-
left:
|
|
2561
|
-
top:
|
|
2589
|
+
style: Pe({
|
|
2590
|
+
left: _.value,
|
|
2591
|
+
top: v.value
|
|
2562
2592
|
})
|
|
2563
|
-
},
|
|
2564
|
-
|
|
2565
|
-
|
|
2593
|
+
}, Re(h.value), 5)) : P("", !0)])),
|
|
2594
|
+
I("div", Ke, [I("span", qe, Re(e.language.toUpperCase()), 1), I("div", Je, [
|
|
2595
|
+
I("button", {
|
|
2566
2596
|
class: "copy-code-button",
|
|
2567
2597
|
type: "button",
|
|
2568
2598
|
title: "复制代码",
|
|
2569
|
-
onClick:
|
|
2570
|
-
innerHTML:
|
|
2599
|
+
onClick: ee,
|
|
2600
|
+
innerHTML: tt
|
|
2571
2601
|
}),
|
|
2572
|
-
|
|
2602
|
+
x() && !r.value ? (L(), F("button", {
|
|
2573
2603
|
key: 0,
|
|
2574
2604
|
class: "preview-html-button",
|
|
2575
2605
|
type: "button",
|
|
2576
2606
|
title: "预览 HTML",
|
|
2577
|
-
onClick:
|
|
2578
|
-
innerHTML:
|
|
2579
|
-
})) :
|
|
2580
|
-
|
|
2607
|
+
onClick: k,
|
|
2608
|
+
innerHTML: nt
|
|
2609
|
+
})) : P("", !0),
|
|
2610
|
+
x() && e.publishUrl ? (L(), F("button", {
|
|
2581
2611
|
key: 1,
|
|
2582
2612
|
class: "publish-html-button",
|
|
2583
2613
|
disabled: o.value,
|
|
2584
2614
|
type: "button",
|
|
2585
|
-
title:
|
|
2586
|
-
onClick:
|
|
2587
|
-
innerHTML:
|
|
2588
|
-
}, null, 8,
|
|
2589
|
-
e.enableCollapse && d.value && !c.value ? (
|
|
2615
|
+
title: y.value,
|
|
2616
|
+
onClick: M,
|
|
2617
|
+
innerHTML: it
|
|
2618
|
+
}, null, 8, Ye)) : P("", !0),
|
|
2619
|
+
e.enableCollapse && d.value && !c.value ? (L(), F("button", {
|
|
2590
2620
|
key: 2,
|
|
2591
2621
|
class: "collapse-toggle-button",
|
|
2592
2622
|
type: "button",
|
|
2593
2623
|
title: u.value ? "展开代码" : "折叠代码",
|
|
2594
|
-
onClick:
|
|
2595
|
-
innerHTML: u.value ?
|
|
2596
|
-
}, null, 8,
|
|
2597
|
-
c.value ?
|
|
2624
|
+
onClick: E,
|
|
2625
|
+
innerHTML: u.value ? st : ct
|
|
2626
|
+
}, null, 8, Xe)) : P("", !0),
|
|
2627
|
+
c.value ? P("", !0) : (L(), F("button", {
|
|
2598
2628
|
key: 3,
|
|
2599
2629
|
class: "fullscreen-button",
|
|
2600
2630
|
type: "button",
|
|
2601
2631
|
title: "全屏",
|
|
2602
|
-
onClick:
|
|
2603
|
-
innerHTML:
|
|
2632
|
+
onClick: N,
|
|
2633
|
+
innerHTML: at
|
|
2604
2634
|
})),
|
|
2605
|
-
c.value ? (
|
|
2635
|
+
c.value ? (L(), F("button", {
|
|
2606
2636
|
key: 4,
|
|
2607
2637
|
class: "exit-fullscreen-button",
|
|
2608
2638
|
type: "button",
|
|
2609
2639
|
title: "退出全屏",
|
|
2610
|
-
onClick:
|
|
2611
|
-
innerHTML:
|
|
2612
|
-
})) :
|
|
2613
|
-
r.value ? (
|
|
2640
|
+
onClick: te,
|
|
2641
|
+
innerHTML: ot
|
|
2642
|
+
})) : P("", !0),
|
|
2643
|
+
r.value ? (L(), F("button", {
|
|
2614
2644
|
key: 5,
|
|
2615
2645
|
class: "close-preview-button",
|
|
2616
2646
|
type: "button",
|
|
2617
2647
|
title: "关闭预览",
|
|
2618
|
-
onClick:
|
|
2619
|
-
innerHTML:
|
|
2620
|
-
})) :
|
|
2648
|
+
onClick: A,
|
|
2649
|
+
innerHTML: rt
|
|
2650
|
+
})) : P("", !0)
|
|
2621
2651
|
])]),
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
key: 0,
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2652
|
+
Ve(I("div", Ze, [
|
|
2653
|
+
I("pre", {
|
|
2654
|
+
ref_key: "preRef",
|
|
2655
|
+
ref: p,
|
|
2656
|
+
class: Ne([`language-${e.language}`, {
|
|
2657
|
+
"is-collapsed": e.enableCollapse && u.value && d.value && !c.value,
|
|
2658
|
+
"line-numbers": e.showLineNumbers
|
|
2659
|
+
}]),
|
|
2660
|
+
style: Pe(D.value),
|
|
2661
|
+
onScroll: O
|
|
2662
|
+
}, [e.showLineNumbers ? (L(), F("span", Qe, [(L(!0), F(Ee, null, Le(m.value, (e) => (L(), F("span", { key: e }))), 128))])) : P("", !0), I("code", {
|
|
2663
|
+
class: Ne(`language-${e.language}`),
|
|
2664
|
+
innerHTML: C.value
|
|
2665
|
+
}, null, 10, $e)], 38),
|
|
2666
|
+
e.enableCollapse && d.value && u.value && !c.value ? (L(), F("div", {
|
|
2667
|
+
key: 0,
|
|
2668
|
+
class: "collapse-expand-bar",
|
|
2669
|
+
onClick: E
|
|
2670
|
+
}, [n[0] ||= I("span", { class: "expand-prompt-text" }, "展开全部代码", -1), I("span", {
|
|
2671
|
+
class: "expand-prompt-icon",
|
|
2672
|
+
innerHTML: st
|
|
2673
|
+
})])) : P("", !0),
|
|
2674
|
+
e.enableCollapse && d.value && !u.value && !c.value ? (L(), F("div", {
|
|
2675
|
+
key: 1,
|
|
2676
|
+
class: "collapse-expand-bar collapse-bar",
|
|
2677
|
+
onClick: E
|
|
2678
|
+
}, [n[1] ||= I("span", { class: "expand-prompt-text" }, "收起全部代码", -1), I("span", {
|
|
2679
|
+
class: "expand-prompt-icon",
|
|
2680
|
+
innerHTML: ct
|
|
2681
|
+
})])) : P("", !0)
|
|
2682
|
+
], 512), [[ze, !r.value]]),
|
|
2683
|
+
r.value ? (L(), F("div", {
|
|
2640
2684
|
key: 0,
|
|
2641
2685
|
class: "iframe-wrapper",
|
|
2642
|
-
style:
|
|
2643
|
-
}, [
|
|
2686
|
+
style: Pe({ height: a.value })
|
|
2687
|
+
}, [I("iframe", {
|
|
2644
2688
|
ref_key: "previewIframe",
|
|
2645
2689
|
ref: i,
|
|
2646
2690
|
class: "html-preview-iframe",
|
|
2647
|
-
srcdoc:
|
|
2691
|
+
srcdoc: ne.value,
|
|
2648
2692
|
sandbox: "allow-scripts allow-forms allow-popups allow-modals allow-same-origin",
|
|
2649
|
-
onLoad:
|
|
2650
|
-
}, null, 40,
|
|
2651
|
-
], 10,
|
|
2693
|
+
onLoad: re
|
|
2694
|
+
}, null, 40, et)], 4)) : P("", !0)
|
|
2695
|
+
], 10, Ge)], 2)], 8, ["disabled"]));
|
|
2652
2696
|
}
|
|
2653
|
-
}),
|
|
2697
|
+
}), ut = (e, t) => {
|
|
2654
2698
|
let n = e.__vccOpts || e;
|
|
2655
2699
|
for (let [e, r] of t) n[e] = r;
|
|
2656
2700
|
return n;
|
|
2657
|
-
},
|
|
2701
|
+
}, dt = /* @__PURE__ */ ut(lt, [["__scopeId", "data-v-b5bf2ea2"]]);
|
|
2658
2702
|
//#endregion
|
|
2659
2703
|
//#region src/plugins/custom/codeBlockPlugin.ts
|
|
2660
|
-
function
|
|
2661
|
-
let { priority: t = 70, languageAliases: r = {}, publishUrl: i, onPublished: a, cssUrl: o, enableCollapse: s = !0, collapseMaxHeight: c = 300 } = e || {};
|
|
2704
|
+
function ft(e) {
|
|
2705
|
+
let { priority: t = 70, languageAliases: r = {}, publishUrl: i, onPublished: a, cssUrl: o, enableCollapse: s = !0, collapseMaxHeight: c = 300, showLineNumbers: l = !0 } = e || {};
|
|
2662
2706
|
return o && typeof window < "u" && n(o), {
|
|
2663
2707
|
name: "codeblock",
|
|
2664
2708
|
priority: t,
|
|
2665
2709
|
test: (e) => e.type !== "tag" || e.name !== "pre" ? !1 : !!e.children?.some((e) => e.type === "tag" && e.name === "code"),
|
|
2666
2710
|
render: (e, t, n, o) => {
|
|
2667
|
-
let
|
|
2668
|
-
if (!
|
|
2669
|
-
let
|
|
2670
|
-
r[
|
|
2671
|
-
let
|
|
2672
|
-
return
|
|
2673
|
-
code:
|
|
2674
|
-
language:
|
|
2711
|
+
let u = e.children?.find((e) => e.type === "tag" && e.name === "code");
|
|
2712
|
+
if (!u) return je("pre", {}, "");
|
|
2713
|
+
let d = (u.attribs?.class || "").match(/language-(\w+)/), f = d ? d[1] : "plaintext";
|
|
2714
|
+
r[f] && (f = r[f]);
|
|
2715
|
+
let p = (e) => e.type === "text" ? e.data || "" : e.children ? e.children.map(p).join("") : "";
|
|
2716
|
+
return je(dt, {
|
|
2717
|
+
code: p(u),
|
|
2718
|
+
language: f,
|
|
2675
2719
|
publishUrl: i,
|
|
2676
2720
|
onPublished: a,
|
|
2677
2721
|
enableCollapse: s,
|
|
2678
|
-
collapseMaxHeight: c
|
|
2722
|
+
collapseMaxHeight: c,
|
|
2723
|
+
showLineNumbers: l
|
|
2679
2724
|
});
|
|
2680
2725
|
}
|
|
2681
2726
|
};
|
|
2682
2727
|
}
|
|
2683
2728
|
//#endregion
|
|
2684
2729
|
//#region src/plugins/custom/emojiPlugin.ts
|
|
2685
|
-
function
|
|
2730
|
+
function pt(e) {
|
|
2686
2731
|
let { priority: t = 10, customEmojis: n = {} } = e || {}, r = {
|
|
2687
2732
|
":smile:": "😊",
|
|
2688
2733
|
":heart:": "❤️",
|
|
@@ -2712,7 +2757,7 @@ function ct(e) {
|
|
|
2712
2757
|
}
|
|
2713
2758
|
//#endregion
|
|
2714
2759
|
//#region node_modules/.pnpm/mermaid@11.12.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-KS23V3DP.mjs
|
|
2715
|
-
var
|
|
2760
|
+
var mt = {
|
|
2716
2761
|
name: "mermaid",
|
|
2717
2762
|
version: "11.12.0",
|
|
2718
2763
|
description: "Markdown-ish syntax for generating flowcharts, mindmaps, sequence diagrams, class diagrams, gantt charts, git graphs and more.",
|
|
@@ -2845,84 +2890,84 @@ var lt = {
|
|
|
2845
2890
|
},
|
|
2846
2891
|
files: ["dist/", "README.md"],
|
|
2847
2892
|
publishConfig: { access: "public" }
|
|
2848
|
-
},
|
|
2893
|
+
}, ht = /* @__PURE__ */ a((e) => {
|
|
2849
2894
|
let { securityLevel: t } = g(), n = o("body");
|
|
2850
2895
|
return t === "sandbox" && (n = o((o(`#i${e}`).node()?.contentDocument ?? document).body)), n.select(`#${e}`);
|
|
2851
2896
|
}, "selectSvgElement");
|
|
2852
2897
|
//#endregion
|
|
2853
2898
|
//#region node_modules/.pnpm/mermaid@11.12.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-MI3HLSF2.mjs
|
|
2854
|
-
function
|
|
2899
|
+
function gt(e) {
|
|
2855
2900
|
return e == null;
|
|
2856
2901
|
}
|
|
2857
|
-
a(
|
|
2858
|
-
function
|
|
2902
|
+
a(gt, "isNothing");
|
|
2903
|
+
function _t(e) {
|
|
2859
2904
|
return typeof e == "object" && !!e;
|
|
2860
2905
|
}
|
|
2861
|
-
a(
|
|
2862
|
-
function
|
|
2863
|
-
return Array.isArray(e) ? e :
|
|
2906
|
+
a(_t, "isObject");
|
|
2907
|
+
function vt(e) {
|
|
2908
|
+
return Array.isArray(e) ? e : gt(e) ? [] : [e];
|
|
2864
2909
|
}
|
|
2865
|
-
a(
|
|
2866
|
-
function
|
|
2910
|
+
a(vt, "toArray");
|
|
2911
|
+
function yt(e, t) {
|
|
2867
2912
|
var n, r, i, a;
|
|
2868
2913
|
if (t) for (a = Object.keys(t), n = 0, r = a.length; n < r; n += 1) i = a[n], e[i] = t[i];
|
|
2869
2914
|
return e;
|
|
2870
2915
|
}
|
|
2871
|
-
a(
|
|
2872
|
-
function
|
|
2916
|
+
a(yt, "extend");
|
|
2917
|
+
function bt(e, t) {
|
|
2873
2918
|
var n = "", r;
|
|
2874
2919
|
for (r = 0; r < t; r += 1) n += e;
|
|
2875
2920
|
return n;
|
|
2876
2921
|
}
|
|
2877
|
-
a(
|
|
2878
|
-
function
|
|
2922
|
+
a(bt, "repeat");
|
|
2923
|
+
function xt(e) {
|
|
2879
2924
|
return e === 0 && 1 / e == -Infinity;
|
|
2880
2925
|
}
|
|
2881
|
-
a(
|
|
2882
|
-
var
|
|
2883
|
-
isNothing:
|
|
2884
|
-
isObject:
|
|
2885
|
-
toArray:
|
|
2886
|
-
repeat:
|
|
2887
|
-
isNegativeZero:
|
|
2888
|
-
extend:
|
|
2926
|
+
a(xt, "isNegativeZero");
|
|
2927
|
+
var z = {
|
|
2928
|
+
isNothing: gt,
|
|
2929
|
+
isObject: _t,
|
|
2930
|
+
toArray: vt,
|
|
2931
|
+
repeat: bt,
|
|
2932
|
+
isNegativeZero: xt,
|
|
2933
|
+
extend: yt
|
|
2889
2934
|
};
|
|
2890
|
-
function
|
|
2935
|
+
function St(e, t) {
|
|
2891
2936
|
var n = "", r = e.reason || "(unknown reason)";
|
|
2892
2937
|
return e.mark ? (e.mark.name && (n += "in \"" + e.mark.name + "\" "), n += "(" + (e.mark.line + 1) + ":" + (e.mark.column + 1) + ")", !t && e.mark.snippet && (n += "\n\n" + e.mark.snippet), r + " " + n) : r;
|
|
2893
2938
|
}
|
|
2894
|
-
a(
|
|
2895
|
-
function
|
|
2896
|
-
Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = t, this.message =
|
|
2939
|
+
a(St, "formatError");
|
|
2940
|
+
function Ct(e, t) {
|
|
2941
|
+
Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = t, this.message = St(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = (/* @__PURE__ */ Error()).stack || "";
|
|
2897
2942
|
}
|
|
2898
|
-
a(
|
|
2899
|
-
return this.name + ": " +
|
|
2943
|
+
a(Ct, "YAMLException$1"), Ct.prototype = Object.create(Error.prototype), Ct.prototype.constructor = Ct, Ct.prototype.toString = /* @__PURE__ */ a(function(e) {
|
|
2944
|
+
return this.name + ": " + St(this, e);
|
|
2900
2945
|
}, "toString");
|
|
2901
|
-
var
|
|
2902
|
-
function
|
|
2946
|
+
var B = Ct;
|
|
2947
|
+
function wt(e, t, n, r, i) {
|
|
2903
2948
|
var a = "", o = "", s = Math.floor(i / 2) - 1;
|
|
2904
2949
|
return r - t > s && (a = " ... ", t = r - s + a.length), n - r > s && (o = " ...", n = r + s - o.length), {
|
|
2905
2950
|
str: a + e.slice(t, n).replace(/\t/g, "→") + o,
|
|
2906
2951
|
pos: r - t + a.length
|
|
2907
2952
|
};
|
|
2908
2953
|
}
|
|
2909
|
-
a(
|
|
2910
|
-
function
|
|
2911
|
-
return
|
|
2954
|
+
a(wt, "getLine");
|
|
2955
|
+
function Tt(e, t) {
|
|
2956
|
+
return z.repeat(" ", t - e.length) + e;
|
|
2912
2957
|
}
|
|
2913
|
-
a(
|
|
2914
|
-
function
|
|
2958
|
+
a(Tt, "padStart");
|
|
2959
|
+
function Et(e, t) {
|
|
2915
2960
|
if (t = Object.create(t || null), !e.buffer) return null;
|
|
2916
2961
|
t.maxLength ||= 79, typeof t.indent != "number" && (t.indent = 1), typeof t.linesBefore != "number" && (t.linesBefore = 3), typeof t.linesAfter != "number" && (t.linesAfter = 2);
|
|
2917
2962
|
for (var n = /\r?\n|\r|\0/g, r = [0], i = [], a, o = -1; a = n.exec(e.buffer);) i.push(a.index), r.push(a.index + a[0].length), e.position <= a.index && o < 0 && (o = r.length - 2);
|
|
2918
2963
|
o < 0 && (o = r.length - 1);
|
|
2919
2964
|
var s = "", c, l, u = Math.min(e.line + t.linesAfter, i.length).toString().length, d = t.maxLength - (t.indent + u + 3);
|
|
2920
|
-
for (c = 1; c <= t.linesBefore && !(o - c < 0); c++) l =
|
|
2921
|
-
for (l =
|
|
2965
|
+
for (c = 1; c <= t.linesBefore && !(o - c < 0); c++) l = wt(e.buffer, r[o - c], i[o - c], e.position - (r[o] - r[o - c]), d), s = z.repeat(" ", t.indent) + Tt((e.line - c + 1).toString(), u) + " | " + l.str + "\n" + s;
|
|
2966
|
+
for (l = wt(e.buffer, r[o], i[o], e.position, d), s += z.repeat(" ", t.indent) + Tt((e.line + 1).toString(), u) + " | " + l.str + "\n", s += z.repeat("-", t.indent + u + 3 + l.pos) + "^\n", c = 1; c <= t.linesAfter && !(o + c >= i.length); c++) l = wt(e.buffer, r[o + c], i[o + c], e.position - (r[o] - r[o + c]), d), s += z.repeat(" ", t.indent) + Tt((e.line + c + 1).toString(), u) + " | " + l.str + "\n";
|
|
2922
2967
|
return s.replace(/\n$/, "");
|
|
2923
2968
|
}
|
|
2924
|
-
a(
|
|
2925
|
-
var
|
|
2969
|
+
a(Et, "makeSnippet");
|
|
2970
|
+
var Dt = Et, Ot = [
|
|
2926
2971
|
"kind",
|
|
2927
2972
|
"multi",
|
|
2928
2973
|
"resolve",
|
|
@@ -2933,12 +2978,12 @@ var St = xt, Ct = [
|
|
|
2933
2978
|
"representName",
|
|
2934
2979
|
"defaultStyle",
|
|
2935
2980
|
"styleAliases"
|
|
2936
|
-
],
|
|
2981
|
+
], kt = [
|
|
2937
2982
|
"scalar",
|
|
2938
2983
|
"sequence",
|
|
2939
2984
|
"mapping"
|
|
2940
2985
|
];
|
|
2941
|
-
function
|
|
2986
|
+
function At(e) {
|
|
2942
2987
|
var t = {};
|
|
2943
2988
|
return e !== null && Object.keys(e).forEach(function(n) {
|
|
2944
2989
|
e[n].forEach(function(e) {
|
|
@@ -2946,19 +2991,19 @@ function Tt(e) {
|
|
|
2946
2991
|
});
|
|
2947
2992
|
}), t;
|
|
2948
2993
|
}
|
|
2949
|
-
a(
|
|
2950
|
-
function
|
|
2994
|
+
a(At, "compileStyleAliases");
|
|
2995
|
+
function jt(e, t) {
|
|
2951
2996
|
if (t ||= {}, Object.keys(t).forEach(function(t) {
|
|
2952
|
-
if (
|
|
2997
|
+
if (Ot.indexOf(t) === -1) throw new B("Unknown option \"" + t + "\" is met in definition of \"" + e + "\" YAML type.");
|
|
2953
2998
|
}), this.options = t, this.tag = e, this.kind = t.kind || null, this.resolve = t.resolve || function() {
|
|
2954
2999
|
return !0;
|
|
2955
3000
|
}, this.construct = t.construct || function(e) {
|
|
2956
3001
|
return e;
|
|
2957
|
-
}, this.instanceOf = t.instanceOf || null, this.predicate = t.predicate || null, this.represent = t.represent || null, this.representName = t.representName || null, this.defaultStyle = t.defaultStyle || null, this.multi = t.multi || !1, this.styleAliases =
|
|
3002
|
+
}, this.instanceOf = t.instanceOf || null, this.predicate = t.predicate || null, this.represent = t.represent || null, this.representName = t.representName || null, this.defaultStyle = t.defaultStyle || null, this.multi = t.multi || !1, this.styleAliases = At(t.styleAliases || null), kt.indexOf(this.kind) === -1) throw new B("Unknown kind \"" + this.kind + "\" is specified for \"" + e + "\" YAML type.");
|
|
2958
3003
|
}
|
|
2959
|
-
a(
|
|
2960
|
-
var
|
|
2961
|
-
function
|
|
3004
|
+
a(jt, "Type$1");
|
|
3005
|
+
var V = jt;
|
|
3006
|
+
function Mt(e, t) {
|
|
2962
3007
|
var n = [];
|
|
2963
3008
|
return e[t].forEach(function(e) {
|
|
2964
3009
|
var t = n.length;
|
|
@@ -2967,8 +3012,8 @@ function Dt(e, t) {
|
|
|
2967
3012
|
}), n[t] = e;
|
|
2968
3013
|
}), n;
|
|
2969
3014
|
}
|
|
2970
|
-
a(
|
|
2971
|
-
function
|
|
3015
|
+
a(Mt, "compileList");
|
|
3016
|
+
function Nt() {
|
|
2972
3017
|
var e = {
|
|
2973
3018
|
scalar: {},
|
|
2974
3019
|
sequence: {},
|
|
@@ -2987,65 +3032,65 @@ function Ot() {
|
|
|
2987
3032
|
for (a(r, "collectType"), t = 0, n = arguments.length; t < n; t += 1) arguments[t].forEach(r);
|
|
2988
3033
|
return e;
|
|
2989
3034
|
}
|
|
2990
|
-
a(
|
|
2991
|
-
function
|
|
3035
|
+
a(Nt, "compileMap");
|
|
3036
|
+
function Pt(e) {
|
|
2992
3037
|
return this.extend(e);
|
|
2993
3038
|
}
|
|
2994
|
-
a(
|
|
3039
|
+
a(Pt, "Schema$1"), Pt.prototype.extend = /* @__PURE__ */ a(function(e) {
|
|
2995
3040
|
var t = [], n = [];
|
|
2996
|
-
if (e instanceof
|
|
3041
|
+
if (e instanceof V) n.push(e);
|
|
2997
3042
|
else if (Array.isArray(e)) n = n.concat(e);
|
|
2998
3043
|
else if (e && (Array.isArray(e.implicit) || Array.isArray(e.explicit))) e.implicit && (t = t.concat(e.implicit)), e.explicit && (n = n.concat(e.explicit));
|
|
2999
|
-
else throw new
|
|
3044
|
+
else throw new B("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
|
|
3000
3045
|
t.forEach(function(e) {
|
|
3001
|
-
if (!(e instanceof
|
|
3002
|
-
if (e.loadKind && e.loadKind !== "scalar") throw new
|
|
3003
|
-
if (e.multi) throw new
|
|
3046
|
+
if (!(e instanceof V)) throw new B("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
3047
|
+
if (e.loadKind && e.loadKind !== "scalar") throw new B("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
|
|
3048
|
+
if (e.multi) throw new B("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
|
|
3004
3049
|
}), n.forEach(function(e) {
|
|
3005
|
-
if (!(e instanceof
|
|
3050
|
+
if (!(e instanceof V)) throw new B("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
3006
3051
|
});
|
|
3007
|
-
var r = Object.create(
|
|
3008
|
-
return r.implicit = (this.implicit || []).concat(t), r.explicit = (this.explicit || []).concat(n), r.compiledImplicit =
|
|
3052
|
+
var r = Object.create(Pt.prototype);
|
|
3053
|
+
return r.implicit = (this.implicit || []).concat(t), r.explicit = (this.explicit || []).concat(n), r.compiledImplicit = Mt(r, "implicit"), r.compiledExplicit = Mt(r, "explicit"), r.compiledTypeMap = Nt(r.compiledImplicit, r.compiledExplicit), r;
|
|
3009
3054
|
}, "extend");
|
|
3010
|
-
var
|
|
3011
|
-
new
|
|
3055
|
+
var Ft = new Pt({ explicit: [
|
|
3056
|
+
new V("tag:yaml.org,2002:str", {
|
|
3012
3057
|
kind: "scalar",
|
|
3013
3058
|
construct: /* @__PURE__ */ a(function(e) {
|
|
3014
3059
|
return e === null ? "" : e;
|
|
3015
3060
|
}, "construct")
|
|
3016
3061
|
}),
|
|
3017
|
-
new
|
|
3062
|
+
new V("tag:yaml.org,2002:seq", {
|
|
3018
3063
|
kind: "sequence",
|
|
3019
3064
|
construct: /* @__PURE__ */ a(function(e) {
|
|
3020
3065
|
return e === null ? [] : e;
|
|
3021
3066
|
}, "construct")
|
|
3022
3067
|
}),
|
|
3023
|
-
new
|
|
3068
|
+
new V("tag:yaml.org,2002:map", {
|
|
3024
3069
|
kind: "mapping",
|
|
3025
3070
|
construct: /* @__PURE__ */ a(function(e) {
|
|
3026
3071
|
return e === null ? {} : e;
|
|
3027
3072
|
}, "construct")
|
|
3028
3073
|
})
|
|
3029
3074
|
] });
|
|
3030
|
-
function
|
|
3075
|
+
function It(e) {
|
|
3031
3076
|
if (e === null) return !0;
|
|
3032
3077
|
var t = e.length;
|
|
3033
3078
|
return t === 1 && e === "~" || t === 4 && (e === "null" || e === "Null" || e === "NULL");
|
|
3034
3079
|
}
|
|
3035
|
-
a(
|
|
3036
|
-
function
|
|
3080
|
+
a(It, "resolveYamlNull");
|
|
3081
|
+
function Lt() {
|
|
3037
3082
|
return null;
|
|
3038
3083
|
}
|
|
3039
|
-
a(
|
|
3040
|
-
function
|
|
3084
|
+
a(Lt, "constructYamlNull");
|
|
3085
|
+
function Rt(e) {
|
|
3041
3086
|
return e === null;
|
|
3042
3087
|
}
|
|
3043
|
-
a(
|
|
3044
|
-
var
|
|
3088
|
+
a(Rt, "isNull");
|
|
3089
|
+
var zt = new V("tag:yaml.org,2002:null", {
|
|
3045
3090
|
kind: "scalar",
|
|
3046
|
-
resolve:
|
|
3047
|
-
construct:
|
|
3048
|
-
predicate:
|
|
3091
|
+
resolve: It,
|
|
3092
|
+
construct: Lt,
|
|
3093
|
+
predicate: Rt,
|
|
3049
3094
|
represent: {
|
|
3050
3095
|
canonical: /* @__PURE__ */ a(function() {
|
|
3051
3096
|
return "~";
|
|
@@ -3065,25 +3110,25 @@ var Pt = new H("tag:yaml.org,2002:null", {
|
|
|
3065
3110
|
},
|
|
3066
3111
|
defaultStyle: "lowercase"
|
|
3067
3112
|
});
|
|
3068
|
-
function
|
|
3113
|
+
function Bt(e) {
|
|
3069
3114
|
if (e === null) return !1;
|
|
3070
3115
|
var t = e.length;
|
|
3071
3116
|
return t === 4 && (e === "true" || e === "True" || e === "TRUE") || t === 5 && (e === "false" || e === "False" || e === "FALSE");
|
|
3072
3117
|
}
|
|
3073
|
-
a(
|
|
3074
|
-
function
|
|
3118
|
+
a(Bt, "resolveYamlBoolean");
|
|
3119
|
+
function Vt(e) {
|
|
3075
3120
|
return e === "true" || e === "True" || e === "TRUE";
|
|
3076
3121
|
}
|
|
3077
|
-
a(
|
|
3078
|
-
function
|
|
3122
|
+
a(Vt, "constructYamlBoolean");
|
|
3123
|
+
function Ht(e) {
|
|
3079
3124
|
return Object.prototype.toString.call(e) === "[object Boolean]";
|
|
3080
3125
|
}
|
|
3081
|
-
a(
|
|
3082
|
-
var
|
|
3126
|
+
a(Ht, "isBoolean");
|
|
3127
|
+
var Ut = new V("tag:yaml.org,2002:bool", {
|
|
3083
3128
|
kind: "scalar",
|
|
3084
|
-
resolve:
|
|
3085
|
-
construct:
|
|
3086
|
-
predicate:
|
|
3129
|
+
resolve: Bt,
|
|
3130
|
+
construct: Vt,
|
|
3131
|
+
predicate: Ht,
|
|
3087
3132
|
represent: {
|
|
3088
3133
|
lowercase: /* @__PURE__ */ a(function(e) {
|
|
3089
3134
|
return e ? "true" : "false";
|
|
@@ -3097,19 +3142,19 @@ var Rt = new H("tag:yaml.org,2002:bool", {
|
|
|
3097
3142
|
},
|
|
3098
3143
|
defaultStyle: "lowercase"
|
|
3099
3144
|
});
|
|
3100
|
-
function
|
|
3145
|
+
function Wt(e) {
|
|
3101
3146
|
return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
|
|
3102
3147
|
}
|
|
3103
|
-
a(
|
|
3104
|
-
function
|
|
3148
|
+
a(Wt, "isHexCode");
|
|
3149
|
+
function Gt(e) {
|
|
3105
3150
|
return 48 <= e && e <= 55;
|
|
3106
3151
|
}
|
|
3107
|
-
a(
|
|
3108
|
-
function
|
|
3152
|
+
a(Gt, "isOctCode");
|
|
3153
|
+
function Kt(e) {
|
|
3109
3154
|
return 48 <= e && e <= 57;
|
|
3110
3155
|
}
|
|
3111
|
-
a(
|
|
3112
|
-
function
|
|
3156
|
+
a(Kt, "isDecCode");
|
|
3157
|
+
function qt(e) {
|
|
3113
3158
|
if (e === null) return !1;
|
|
3114
3159
|
var t = e.length, n = 0, r = !1, i;
|
|
3115
3160
|
if (!t) return !1;
|
|
@@ -3124,14 +3169,14 @@ function Ht(e) {
|
|
|
3124
3169
|
}
|
|
3125
3170
|
if (i === "x") {
|
|
3126
3171
|
for (n++; n < t; n++) if (i = e[n], i !== "_") {
|
|
3127
|
-
if (!
|
|
3172
|
+
if (!Wt(e.charCodeAt(n))) return !1;
|
|
3128
3173
|
r = !0;
|
|
3129
3174
|
}
|
|
3130
3175
|
return r && i !== "_";
|
|
3131
3176
|
}
|
|
3132
3177
|
if (i === "o") {
|
|
3133
3178
|
for (n++; n < t; n++) if (i = e[n], i !== "_") {
|
|
3134
|
-
if (!
|
|
3179
|
+
if (!Gt(e.charCodeAt(n))) return !1;
|
|
3135
3180
|
r = !0;
|
|
3136
3181
|
}
|
|
3137
3182
|
return r && i !== "_";
|
|
@@ -3139,13 +3184,13 @@ function Ht(e) {
|
|
|
3139
3184
|
}
|
|
3140
3185
|
if (i === "_") return !1;
|
|
3141
3186
|
for (; n < t; n++) if (i = e[n], i !== "_") {
|
|
3142
|
-
if (!
|
|
3187
|
+
if (!Kt(e.charCodeAt(n))) return !1;
|
|
3143
3188
|
r = !0;
|
|
3144
3189
|
}
|
|
3145
3190
|
return !(!r || i === "_");
|
|
3146
3191
|
}
|
|
3147
|
-
a(
|
|
3148
|
-
function
|
|
3192
|
+
a(qt, "resolveYamlInteger");
|
|
3193
|
+
function Jt(e) {
|
|
3149
3194
|
var t = e, n = 1, r;
|
|
3150
3195
|
if (t.indexOf("_") !== -1 && (t = t.replace(/_/g, "")), r = t[0], (r === "-" || r === "+") && (r === "-" && (n = -1), t = t.slice(1), r = t[0]), t === "0") return 0;
|
|
3151
3196
|
if (r === "0") {
|
|
@@ -3155,16 +3200,16 @@ function Ut(e) {
|
|
|
3155
3200
|
}
|
|
3156
3201
|
return n * parseInt(t, 10);
|
|
3157
3202
|
}
|
|
3158
|
-
a(
|
|
3159
|
-
function
|
|
3160
|
-
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 == 0 && !
|
|
3203
|
+
a(Jt, "constructYamlInteger");
|
|
3204
|
+
function Yt(e) {
|
|
3205
|
+
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 == 0 && !z.isNegativeZero(e);
|
|
3161
3206
|
}
|
|
3162
|
-
a(
|
|
3163
|
-
var
|
|
3207
|
+
a(Yt, "isInteger");
|
|
3208
|
+
var Xt = new V("tag:yaml.org,2002:int", {
|
|
3164
3209
|
kind: "scalar",
|
|
3165
|
-
resolve:
|
|
3166
|
-
construct:
|
|
3167
|
-
predicate:
|
|
3210
|
+
resolve: qt,
|
|
3211
|
+
construct: Jt,
|
|
3212
|
+
predicate: Yt,
|
|
3168
3213
|
represent: {
|
|
3169
3214
|
binary: /* @__PURE__ */ a(function(e) {
|
|
3170
3215
|
return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
|
|
@@ -3186,18 +3231,18 @@ var Gt = new H("tag:yaml.org,2002:int", {
|
|
|
3186
3231
|
decimal: [10, "dec"],
|
|
3187
3232
|
hexadecimal: [16, "hex"]
|
|
3188
3233
|
}
|
|
3189
|
-
}),
|
|
3190
|
-
function
|
|
3191
|
-
return !(e === null || !
|
|
3234
|
+
}), Zt = /* @__PURE__ */ RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
|
|
3235
|
+
function Qt(e) {
|
|
3236
|
+
return !(e === null || !Zt.test(e) || e[e.length - 1] === "_");
|
|
3192
3237
|
}
|
|
3193
|
-
a(
|
|
3194
|
-
function
|
|
3238
|
+
a(Qt, "resolveYamlFloat");
|
|
3239
|
+
function $t(e) {
|
|
3195
3240
|
var t = e.replace(/_/g, "").toLowerCase(), n = t[0] === "-" ? -1 : 1;
|
|
3196
3241
|
return "+-".indexOf(t[0]) >= 0 && (t = t.slice(1)), t === ".inf" ? n === 1 ? Infinity : -Infinity : t === ".nan" ? NaN : n * parseFloat(t, 10);
|
|
3197
3242
|
}
|
|
3198
|
-
a(
|
|
3199
|
-
var
|
|
3200
|
-
function
|
|
3243
|
+
a($t, "constructYamlFloat");
|
|
3244
|
+
var en = /^[-+]?[0-9]+e/;
|
|
3245
|
+
function tn(e, t) {
|
|
3201
3246
|
var n;
|
|
3202
3247
|
if (isNaN(e)) switch (t) {
|
|
3203
3248
|
case "lowercase": return ".nan";
|
|
@@ -3214,34 +3259,34 @@ function Xt(e, t) {
|
|
|
3214
3259
|
case "uppercase": return "-.INF";
|
|
3215
3260
|
case "camelcase": return "-.Inf";
|
|
3216
3261
|
}
|
|
3217
|
-
else if (
|
|
3218
|
-
return n = e.toString(10),
|
|
3262
|
+
else if (z.isNegativeZero(e)) return "-0.0";
|
|
3263
|
+
return n = e.toString(10), en.test(n) ? n.replace("e", ".e") : n;
|
|
3219
3264
|
}
|
|
3220
|
-
a(
|
|
3221
|
-
function
|
|
3222
|
-
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 != 0 ||
|
|
3265
|
+
a(tn, "representYamlFloat");
|
|
3266
|
+
function nn(e) {
|
|
3267
|
+
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 != 0 || z.isNegativeZero(e));
|
|
3223
3268
|
}
|
|
3224
|
-
a(
|
|
3225
|
-
var
|
|
3269
|
+
a(nn, "isFloat");
|
|
3270
|
+
var rn = new V("tag:yaml.org,2002:float", {
|
|
3226
3271
|
kind: "scalar",
|
|
3227
|
-
resolve:
|
|
3228
|
-
construct:
|
|
3229
|
-
predicate:
|
|
3230
|
-
represent:
|
|
3272
|
+
resolve: Qt,
|
|
3273
|
+
construct: $t,
|
|
3274
|
+
predicate: nn,
|
|
3275
|
+
represent: tn,
|
|
3231
3276
|
defaultStyle: "lowercase"
|
|
3232
|
-
}),
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
] }),
|
|
3238
|
-
function
|
|
3239
|
-
return e === null ? !1 :
|
|
3240
|
-
}
|
|
3241
|
-
a(
|
|
3242
|
-
function
|
|
3277
|
+
}), an = Ft.extend({ implicit: [
|
|
3278
|
+
zt,
|
|
3279
|
+
Ut,
|
|
3280
|
+
Xt,
|
|
3281
|
+
rn
|
|
3282
|
+
] }), on = an, sn = /* @__PURE__ */ RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"), cn = /* @__PURE__ */ RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");
|
|
3283
|
+
function ln(e) {
|
|
3284
|
+
return e === null ? !1 : sn.exec(e) !== null || cn.exec(e) !== null;
|
|
3285
|
+
}
|
|
3286
|
+
a(ln, "resolveYamlTimestamp");
|
|
3287
|
+
function un(e) {
|
|
3243
3288
|
var t, n, r, i, a, o, s, c = 0, l = null, u, d, f;
|
|
3244
|
-
if (t =
|
|
3289
|
+
if (t = sn.exec(e), t === null && (t = cn.exec(e)), t === null) throw Error("Date resolve error");
|
|
3245
3290
|
if (n = +t[1], r = t[2] - 1, i = +t[3], !t[4]) return new Date(Date.UTC(n, r, i));
|
|
3246
3291
|
if (a = +t[4], o = +t[5], s = +t[6], t[7]) {
|
|
3247
3292
|
for (c = t[7].slice(0, 3); c.length < 3;) c += "0";
|
|
@@ -3249,65 +3294,65 @@ function an(e) {
|
|
|
3249
3294
|
}
|
|
3250
3295
|
return t[9] && (u = +t[10], d = +(t[11] || 0), l = (u * 60 + d) * 6e4, t[9] === "-" && (l = -l)), f = new Date(Date.UTC(n, r, i, a, o, s, c)), l && f.setTime(f.getTime() - l), f;
|
|
3251
3296
|
}
|
|
3252
|
-
a(
|
|
3253
|
-
function
|
|
3297
|
+
a(un, "constructYamlTimestamp");
|
|
3298
|
+
function dn(e) {
|
|
3254
3299
|
return e.toISOString();
|
|
3255
3300
|
}
|
|
3256
|
-
a(
|
|
3257
|
-
var
|
|
3301
|
+
a(dn, "representYamlTimestamp");
|
|
3302
|
+
var fn = new V("tag:yaml.org,2002:timestamp", {
|
|
3258
3303
|
kind: "scalar",
|
|
3259
|
-
resolve:
|
|
3260
|
-
construct:
|
|
3304
|
+
resolve: ln,
|
|
3305
|
+
construct: un,
|
|
3261
3306
|
instanceOf: Date,
|
|
3262
|
-
represent:
|
|
3307
|
+
represent: dn
|
|
3263
3308
|
});
|
|
3264
|
-
function
|
|
3309
|
+
function pn(e) {
|
|
3265
3310
|
return e === "<<" || e === null;
|
|
3266
3311
|
}
|
|
3267
|
-
a(
|
|
3268
|
-
var
|
|
3312
|
+
a(pn, "resolveYamlMerge");
|
|
3313
|
+
var mn = new V("tag:yaml.org,2002:merge", {
|
|
3269
3314
|
kind: "scalar",
|
|
3270
|
-
resolve:
|
|
3271
|
-
}),
|
|
3272
|
-
function
|
|
3315
|
+
resolve: pn
|
|
3316
|
+
}), hn = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";
|
|
3317
|
+
function gn(e) {
|
|
3273
3318
|
if (e === null) return !1;
|
|
3274
|
-
var t, n, r = 0, i = e.length, a =
|
|
3319
|
+
var t, n, r = 0, i = e.length, a = hn;
|
|
3275
3320
|
for (n = 0; n < i; n++) if (t = a.indexOf(e.charAt(n)), !(t > 64)) {
|
|
3276
3321
|
if (t < 0) return !1;
|
|
3277
3322
|
r += 6;
|
|
3278
3323
|
}
|
|
3279
3324
|
return r % 8 == 0;
|
|
3280
3325
|
}
|
|
3281
|
-
a(
|
|
3282
|
-
function
|
|
3283
|
-
var t, n, r = e.replace(/[\r\n=]/g, ""), i = r.length, a =
|
|
3326
|
+
a(gn, "resolveYamlBinary");
|
|
3327
|
+
function _n(e) {
|
|
3328
|
+
var t, n, r = e.replace(/[\r\n=]/g, ""), i = r.length, a = hn, o = 0, s = [];
|
|
3284
3329
|
for (t = 0; t < i; t++) t % 4 == 0 && t && (s.push(o >> 16 & 255), s.push(o >> 8 & 255), s.push(o & 255)), o = o << 6 | a.indexOf(r.charAt(t));
|
|
3285
3330
|
return n = i % 4 * 6, n === 0 ? (s.push(o >> 16 & 255), s.push(o >> 8 & 255), s.push(o & 255)) : n === 18 ? (s.push(o >> 10 & 255), s.push(o >> 2 & 255)) : n === 12 && s.push(o >> 4 & 255), new Uint8Array(s);
|
|
3286
3331
|
}
|
|
3287
|
-
a(
|
|
3288
|
-
function
|
|
3289
|
-
var t = "", n = 0, r, i, a = e.length, o =
|
|
3332
|
+
a(_n, "constructYamlBinary");
|
|
3333
|
+
function vn(e) {
|
|
3334
|
+
var t = "", n = 0, r, i, a = e.length, o = hn;
|
|
3290
3335
|
for (r = 0; r < a; r++) r % 3 == 0 && r && (t += o[n >> 18 & 63], t += o[n >> 12 & 63], t += o[n >> 6 & 63], t += o[n & 63]), n = (n << 8) + e[r];
|
|
3291
3336
|
return i = a % 3, i === 0 ? (t += o[n >> 18 & 63], t += o[n >> 12 & 63], t += o[n >> 6 & 63], t += o[n & 63]) : i === 2 ? (t += o[n >> 10 & 63], t += o[n >> 4 & 63], t += o[n << 2 & 63], t += o[64]) : i === 1 && (t += o[n >> 2 & 63], t += o[n << 4 & 63], t += o[64], t += o[64]), t;
|
|
3292
3337
|
}
|
|
3293
|
-
a(
|
|
3294
|
-
function
|
|
3338
|
+
a(vn, "representYamlBinary");
|
|
3339
|
+
function yn(e) {
|
|
3295
3340
|
return Object.prototype.toString.call(e) === "[object Uint8Array]";
|
|
3296
3341
|
}
|
|
3297
|
-
a(
|
|
3298
|
-
var
|
|
3342
|
+
a(yn, "isBinary");
|
|
3343
|
+
var bn = new V("tag:yaml.org,2002:binary", {
|
|
3299
3344
|
kind: "scalar",
|
|
3300
|
-
resolve:
|
|
3301
|
-
construct:
|
|
3302
|
-
predicate:
|
|
3303
|
-
represent:
|
|
3304
|
-
}),
|
|
3305
|
-
function
|
|
3345
|
+
resolve: gn,
|
|
3346
|
+
construct: _n,
|
|
3347
|
+
predicate: yn,
|
|
3348
|
+
represent: vn
|
|
3349
|
+
}), xn = Object.prototype.hasOwnProperty, Sn = Object.prototype.toString;
|
|
3350
|
+
function Cn(e) {
|
|
3306
3351
|
if (e === null) return !0;
|
|
3307
3352
|
var t = [], n, r, i, a, o, s = e;
|
|
3308
3353
|
for (n = 0, r = s.length; n < r; n += 1) {
|
|
3309
|
-
if (i = s[n], o = !1,
|
|
3310
|
-
for (a in i) if (
|
|
3354
|
+
if (i = s[n], o = !1, Sn.call(i) !== "[object Object]") return !1;
|
|
3355
|
+
for (a in i) if (xn.call(i, a)) if (!o) o = !0;
|
|
3311
3356
|
else return !1;
|
|
3312
3357
|
if (!o) return !1;
|
|
3313
3358
|
if (t.indexOf(a) === -1) t.push(a);
|
|
@@ -3315,111 +3360,111 @@ function vn(e) {
|
|
|
3315
3360
|
}
|
|
3316
3361
|
return !0;
|
|
3317
3362
|
}
|
|
3318
|
-
a(
|
|
3319
|
-
function
|
|
3363
|
+
a(Cn, "resolveYamlOmap");
|
|
3364
|
+
function wn(e) {
|
|
3320
3365
|
return e === null ? [] : e;
|
|
3321
3366
|
}
|
|
3322
|
-
a(
|
|
3323
|
-
var
|
|
3367
|
+
a(wn, "constructYamlOmap");
|
|
3368
|
+
var Tn = new V("tag:yaml.org,2002:omap", {
|
|
3324
3369
|
kind: "sequence",
|
|
3325
|
-
resolve:
|
|
3326
|
-
construct:
|
|
3327
|
-
}),
|
|
3328
|
-
function
|
|
3370
|
+
resolve: Cn,
|
|
3371
|
+
construct: wn
|
|
3372
|
+
}), En = Object.prototype.toString;
|
|
3373
|
+
function Dn(e) {
|
|
3329
3374
|
if (e === null) return !0;
|
|
3330
3375
|
var t, n, r, i, a, o = e;
|
|
3331
3376
|
for (a = Array(o.length), t = 0, n = o.length; t < n; t += 1) {
|
|
3332
|
-
if (r = o[t],
|
|
3377
|
+
if (r = o[t], En.call(r) !== "[object Object]" || (i = Object.keys(r), i.length !== 1)) return !1;
|
|
3333
3378
|
a[t] = [i[0], r[i[0]]];
|
|
3334
3379
|
}
|
|
3335
3380
|
return !0;
|
|
3336
3381
|
}
|
|
3337
|
-
a(
|
|
3338
|
-
function
|
|
3382
|
+
a(Dn, "resolveYamlPairs");
|
|
3383
|
+
function On(e) {
|
|
3339
3384
|
if (e === null) return [];
|
|
3340
3385
|
var t, n, r, i, a, o = e;
|
|
3341
3386
|
for (a = Array(o.length), t = 0, n = o.length; t < n; t += 1) r = o[t], i = Object.keys(r), a[t] = [i[0], r[i[0]]];
|
|
3342
3387
|
return a;
|
|
3343
3388
|
}
|
|
3344
|
-
a(
|
|
3345
|
-
var
|
|
3389
|
+
a(On, "constructYamlPairs");
|
|
3390
|
+
var kn = new V("tag:yaml.org,2002:pairs", {
|
|
3346
3391
|
kind: "sequence",
|
|
3347
|
-
resolve:
|
|
3348
|
-
construct:
|
|
3349
|
-
}),
|
|
3350
|
-
function
|
|
3392
|
+
resolve: Dn,
|
|
3393
|
+
construct: On
|
|
3394
|
+
}), An = Object.prototype.hasOwnProperty;
|
|
3395
|
+
function jn(e) {
|
|
3351
3396
|
if (e === null) return !0;
|
|
3352
3397
|
var t, n = e;
|
|
3353
|
-
for (t in n) if (
|
|
3398
|
+
for (t in n) if (An.call(n, t) && n[t] !== null) return !1;
|
|
3354
3399
|
return !0;
|
|
3355
3400
|
}
|
|
3356
|
-
a(
|
|
3357
|
-
function
|
|
3401
|
+
a(jn, "resolveYamlSet");
|
|
3402
|
+
function Mn(e) {
|
|
3358
3403
|
return e === null ? {} : e;
|
|
3359
3404
|
}
|
|
3360
|
-
a(
|
|
3361
|
-
var
|
|
3405
|
+
a(Mn, "constructYamlSet");
|
|
3406
|
+
var Nn = new V("tag:yaml.org,2002:set", {
|
|
3362
3407
|
kind: "mapping",
|
|
3363
|
-
resolve:
|
|
3364
|
-
construct:
|
|
3365
|
-
}),
|
|
3366
|
-
implicit: [
|
|
3408
|
+
resolve: jn,
|
|
3409
|
+
construct: Mn
|
|
3410
|
+
}), Pn = on.extend({
|
|
3411
|
+
implicit: [fn, mn],
|
|
3367
3412
|
explicit: [
|
|
3368
|
-
hn,
|
|
3369
3413
|
bn,
|
|
3370
|
-
|
|
3371
|
-
|
|
3414
|
+
Tn,
|
|
3415
|
+
kn,
|
|
3416
|
+
Nn
|
|
3372
3417
|
]
|
|
3373
|
-
}),
|
|
3374
|
-
function
|
|
3418
|
+
}), Fn = Object.prototype.hasOwnProperty, In = 1, Ln = 2, Rn = 3, zn = 4, Bn = 1, Vn = 2, Hn = 3, Un = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Wn = /[\x85\u2028\u2029]/, Gn = /[,\[\]\{\}]/, Kn = /^(?:!|!!|![a-z\-]+!)$/i, qn = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
|
|
3419
|
+
function Jn(e) {
|
|
3375
3420
|
return Object.prototype.toString.call(e);
|
|
3376
3421
|
}
|
|
3377
|
-
a(
|
|
3378
|
-
function
|
|
3422
|
+
a(Jn, "_class");
|
|
3423
|
+
function H(e) {
|
|
3379
3424
|
return e === 10 || e === 13;
|
|
3380
3425
|
}
|
|
3381
|
-
a(
|
|
3382
|
-
function
|
|
3426
|
+
a(H, "is_EOL");
|
|
3427
|
+
function Yn(e) {
|
|
3383
3428
|
return e === 9 || e === 32;
|
|
3384
3429
|
}
|
|
3385
|
-
a(
|
|
3386
|
-
function
|
|
3430
|
+
a(Yn, "is_WHITE_SPACE");
|
|
3431
|
+
function U(e) {
|
|
3387
3432
|
return e === 9 || e === 32 || e === 10 || e === 13;
|
|
3388
3433
|
}
|
|
3389
|
-
a(
|
|
3390
|
-
function
|
|
3434
|
+
a(U, "is_WS_OR_EOL");
|
|
3435
|
+
function Xn(e) {
|
|
3391
3436
|
return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
|
|
3392
3437
|
}
|
|
3393
|
-
a(
|
|
3394
|
-
function
|
|
3438
|
+
a(Xn, "is_FLOW_INDICATOR");
|
|
3439
|
+
function Zn(e) {
|
|
3395
3440
|
var t;
|
|
3396
3441
|
return 48 <= e && e <= 57 ? e - 48 : (t = e | 32, 97 <= t && t <= 102 ? t - 97 + 10 : -1);
|
|
3397
3442
|
}
|
|
3398
|
-
a(
|
|
3399
|
-
function
|
|
3443
|
+
a(Zn, "fromHexCode");
|
|
3444
|
+
function Qn(e) {
|
|
3400
3445
|
return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
|
|
3401
3446
|
}
|
|
3402
|
-
a(
|
|
3403
|
-
function
|
|
3447
|
+
a(Qn, "escapedHexLen");
|
|
3448
|
+
function $n(e) {
|
|
3404
3449
|
return 48 <= e && e <= 57 ? e - 48 : -1;
|
|
3405
3450
|
}
|
|
3406
|
-
a(
|
|
3407
|
-
function
|
|
3451
|
+
a($n, "fromDecimalCode");
|
|
3452
|
+
function er(e) {
|
|
3408
3453
|
return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? "\n" : e === 118 ? "\v" : e === 102 ? "\f" : e === 114 ? "\r" : e === 101 ? "\x1B" : e === 32 ? " " : e === 34 ? "\"" : e === 47 ? "/" : e === 92 ? "\\" : e === 78 ? "
" : e === 95 ? "\xA0" : e === 76 ? "\u2028" : e === 80 ? "\u2029" : "";
|
|
3409
3454
|
}
|
|
3410
|
-
a(
|
|
3411
|
-
function
|
|
3455
|
+
a(er, "simpleEscapeSequence");
|
|
3456
|
+
function tr(e) {
|
|
3412
3457
|
return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode((e - 65536 >> 10) + 55296, (e - 65536 & 1023) + 56320);
|
|
3413
3458
|
}
|
|
3414
|
-
a(
|
|
3415
|
-
var
|
|
3416
|
-
for (
|
|
3417
|
-
var
|
|
3418
|
-
function
|
|
3419
|
-
this.input = e, this.filename = t.filename || null, this.schema = t.schema ||
|
|
3459
|
+
a(tr, "charFromCodepoint");
|
|
3460
|
+
var nr = Array(256), rr = Array(256);
|
|
3461
|
+
for (ir = 0; ir < 256; ir++) nr[ir] = +!!er(ir), rr[ir] = er(ir);
|
|
3462
|
+
var ir;
|
|
3463
|
+
function ar(e, t) {
|
|
3464
|
+
this.input = e, this.filename = t.filename || null, this.schema = t.schema || Pn, this.onWarning = t.onWarning || null, this.legacy = t.legacy || !1, this.json = t.json || !1, this.listener = t.listener || null, this.implicitTypes = this.schema.compiledImplicit, this.typeMap = this.schema.compiledTypeMap, this.length = e.length, this.position = 0, this.line = 0, this.lineStart = 0, this.lineIndent = 0, this.firstTabInLine = -1, this.documents = [];
|
|
3420
3465
|
}
|
|
3421
|
-
a(
|
|
3422
|
-
function
|
|
3466
|
+
a(ar, "State$1");
|
|
3467
|
+
function or(e, t) {
|
|
3423
3468
|
var n = {
|
|
3424
3469
|
name: e.filename,
|
|
3425
3470
|
buffer: e.input.slice(0, -1),
|
|
@@ -3427,53 +3472,53 @@ function tr(e, t) {
|
|
|
3427
3472
|
line: e.line,
|
|
3428
3473
|
column: e.position - e.lineStart
|
|
3429
3474
|
};
|
|
3430
|
-
return n.snippet =
|
|
3475
|
+
return n.snippet = Dt(n), new B(t, n);
|
|
3431
3476
|
}
|
|
3432
|
-
a(
|
|
3433
|
-
function
|
|
3434
|
-
throw
|
|
3477
|
+
a(or, "generateError");
|
|
3478
|
+
function W(e, t) {
|
|
3479
|
+
throw or(e, t);
|
|
3435
3480
|
}
|
|
3436
|
-
a(
|
|
3437
|
-
function
|
|
3438
|
-
e.onWarning && e.onWarning.call(null,
|
|
3481
|
+
a(W, "throwError");
|
|
3482
|
+
function sr(e, t) {
|
|
3483
|
+
e.onWarning && e.onWarning.call(null, or(e, t));
|
|
3439
3484
|
}
|
|
3440
|
-
a(
|
|
3441
|
-
var
|
|
3485
|
+
a(sr, "throwWarning");
|
|
3486
|
+
var cr = {
|
|
3442
3487
|
YAML: /* @__PURE__ */ a(function(e, t, n) {
|
|
3443
3488
|
var r, i, a;
|
|
3444
|
-
e.version !== null &&
|
|
3489
|
+
e.version !== null && W(e, "duplication of %YAML directive"), n.length !== 1 && W(e, "YAML directive accepts exactly one argument"), r = /^([0-9]+)\.([0-9]+)$/.exec(n[0]), r === null && W(e, "ill-formed argument of the YAML directive"), i = parseInt(r[1], 10), a = parseInt(r[2], 10), i !== 1 && W(e, "unacceptable YAML version of the document"), e.version = n[0], e.checkLineBreaks = a < 2, a !== 1 && a !== 2 && sr(e, "unsupported YAML version of the document");
|
|
3445
3490
|
}, "handleYamlDirective"),
|
|
3446
3491
|
TAG: /* @__PURE__ */ a(function(e, t, n) {
|
|
3447
3492
|
var r, i;
|
|
3448
|
-
n.length !== 2 &&
|
|
3493
|
+
n.length !== 2 && W(e, "TAG directive accepts exactly two arguments"), r = n[0], i = n[1], Kn.test(r) || W(e, "ill-formed tag handle (first argument) of the TAG directive"), Fn.call(e.tagMap, r) && W(e, "there is a previously declared suffix for \"" + r + "\" tag handle"), qn.test(i) || W(e, "ill-formed tag prefix (second argument) of the TAG directive");
|
|
3449
3494
|
try {
|
|
3450
3495
|
i = decodeURIComponent(i);
|
|
3451
3496
|
} catch {
|
|
3452
|
-
|
|
3497
|
+
W(e, "tag prefix is malformed: " + i);
|
|
3453
3498
|
}
|
|
3454
3499
|
e.tagMap[r] = i;
|
|
3455
3500
|
}, "handleTagDirective")
|
|
3456
3501
|
};
|
|
3457
|
-
function
|
|
3502
|
+
function G(e, t, n, r) {
|
|
3458
3503
|
var i, a, o, s;
|
|
3459
3504
|
if (t < n) {
|
|
3460
|
-
if (s = e.input.slice(t, n), r) for (i = 0, a = s.length; i < a; i += 1) o = s.charCodeAt(i), o === 9 || 32 <= o && o <= 1114111 ||
|
|
3461
|
-
else
|
|
3505
|
+
if (s = e.input.slice(t, n), r) for (i = 0, a = s.length; i < a; i += 1) o = s.charCodeAt(i), o === 9 || 32 <= o && o <= 1114111 || W(e, "expected valid JSON character");
|
|
3506
|
+
else Un.test(s) && W(e, "the stream contains non-printable characters");
|
|
3462
3507
|
e.result += s;
|
|
3463
3508
|
}
|
|
3464
3509
|
}
|
|
3465
|
-
a(
|
|
3466
|
-
function
|
|
3510
|
+
a(G, "captureSegment");
|
|
3511
|
+
function lr(e, t, n, r) {
|
|
3467
3512
|
var i, a, o, s;
|
|
3468
|
-
for (
|
|
3513
|
+
for (z.isObject(n) || W(e, "cannot merge mappings; the provided source object is unacceptable"), i = Object.keys(n), o = 0, s = i.length; o < s; o += 1) a = i[o], Fn.call(t, a) || (t[a] = n[a], r[a] = !0);
|
|
3469
3514
|
}
|
|
3470
|
-
a(
|
|
3471
|
-
function
|
|
3515
|
+
a(lr, "mergeMappings");
|
|
3516
|
+
function ur(e, t, n, r, i, a, o, s, c) {
|
|
3472
3517
|
var l, u;
|
|
3473
|
-
if (Array.isArray(i)) for (i = Array.prototype.slice.call(i), l = 0, u = i.length; l < u; l += 1) Array.isArray(i[l]) &&
|
|
3474
|
-
if (typeof i == "object" &&
|
|
3475
|
-
else
|
|
3476
|
-
else !e.json && !
|
|
3518
|
+
if (Array.isArray(i)) for (i = Array.prototype.slice.call(i), l = 0, u = i.length; l < u; l += 1) Array.isArray(i[l]) && W(e, "nested arrays are not supported inside keys"), typeof i == "object" && Jn(i[l]) === "[object Object]" && (i[l] = "[object Object]");
|
|
3519
|
+
if (typeof i == "object" && Jn(i) === "[object Object]" && (i = "[object Object]"), i = String(i), t === null && (t = {}), r === "tag:yaml.org,2002:merge") if (Array.isArray(a)) for (l = 0, u = a.length; l < u; l += 1) lr(e, t, a[l], n);
|
|
3520
|
+
else lr(e, t, a, n);
|
|
3521
|
+
else !e.json && !Fn.call(n, i) && Fn.call(t, i) && (e.line = o || e.line, e.lineStart = s || e.lineStart, e.position = c || e.position, W(e, "duplicated mapping key")), i === "__proto__" ? Object.defineProperty(t, i, {
|
|
3477
3522
|
configurable: !0,
|
|
3478
3523
|
enumerable: !0,
|
|
3479
3524
|
writable: !0,
|
|
@@ -3481,268 +3526,268 @@ function ar(e, t, n, r, i, a, o, s, c) {
|
|
|
3481
3526
|
}) : t[i] = a, delete n[i];
|
|
3482
3527
|
return t;
|
|
3483
3528
|
}
|
|
3484
|
-
a(
|
|
3485
|
-
function
|
|
3529
|
+
a(ur, "storeMappingPair");
|
|
3530
|
+
function dr(e) {
|
|
3486
3531
|
var t = e.input.charCodeAt(e.position);
|
|
3487
|
-
t === 10 ? e.position++ : t === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) :
|
|
3532
|
+
t === 10 ? e.position++ : t === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : W(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
|
|
3488
3533
|
}
|
|
3489
|
-
a(
|
|
3490
|
-
function
|
|
3534
|
+
a(dr, "readLineBreak");
|
|
3535
|
+
function K(e, t, n) {
|
|
3491
3536
|
for (var r = 0, i = e.input.charCodeAt(e.position); i !== 0;) {
|
|
3492
|
-
for (;
|
|
3537
|
+
for (; Yn(i);) i === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), i = e.input.charCodeAt(++e.position);
|
|
3493
3538
|
if (t && i === 35) do
|
|
3494
3539
|
i = e.input.charCodeAt(++e.position);
|
|
3495
3540
|
while (i !== 10 && i !== 13 && i !== 0);
|
|
3496
|
-
if (
|
|
3541
|
+
if (H(i)) for (dr(e), i = e.input.charCodeAt(e.position), r++, e.lineIndent = 0; i === 32;) e.lineIndent++, i = e.input.charCodeAt(++e.position);
|
|
3497
3542
|
else break;
|
|
3498
3543
|
}
|
|
3499
|
-
return n !== -1 && r !== 0 && e.lineIndent < n &&
|
|
3544
|
+
return n !== -1 && r !== 0 && e.lineIndent < n && sr(e, "deficient indentation"), r;
|
|
3500
3545
|
}
|
|
3501
|
-
a(
|
|
3502
|
-
function
|
|
3546
|
+
a(K, "skipSeparationSpace");
|
|
3547
|
+
function fr(e) {
|
|
3503
3548
|
var t = e.position, n = e.input.charCodeAt(t);
|
|
3504
|
-
return !!((n === 45 || n === 46) && n === e.input.charCodeAt(t + 1) && n === e.input.charCodeAt(t + 2) && (t += 3, n = e.input.charCodeAt(t), n === 0 ||
|
|
3549
|
+
return !!((n === 45 || n === 46) && n === e.input.charCodeAt(t + 1) && n === e.input.charCodeAt(t + 2) && (t += 3, n = e.input.charCodeAt(t), n === 0 || U(n)));
|
|
3505
3550
|
}
|
|
3506
|
-
a(
|
|
3507
|
-
function
|
|
3508
|
-
t === 1 ? e.result += " " : t > 1 && (e.result +=
|
|
3551
|
+
a(fr, "testDocumentSeparator");
|
|
3552
|
+
function pr(e, t) {
|
|
3553
|
+
t === 1 ? e.result += " " : t > 1 && (e.result += z.repeat("\n", t - 1));
|
|
3509
3554
|
}
|
|
3510
|
-
a(
|
|
3511
|
-
function
|
|
3555
|
+
a(pr, "writeFoldedLines");
|
|
3556
|
+
function mr(e, t, n) {
|
|
3512
3557
|
var r, i, a, o, s, c, l, u, d = e.kind, f = e.result, p = e.input.charCodeAt(e.position);
|
|
3513
|
-
if (
|
|
3558
|
+
if (U(p) || Xn(p) || p === 35 || p === 38 || p === 42 || p === 33 || p === 124 || p === 62 || p === 39 || p === 34 || p === 37 || p === 64 || p === 96 || (p === 63 || p === 45) && (i = e.input.charCodeAt(e.position + 1), U(i) || n && Xn(i))) return !1;
|
|
3514
3559
|
for (e.kind = "scalar", e.result = "", a = o = e.position, s = !1; p !== 0;) {
|
|
3515
3560
|
if (p === 58) {
|
|
3516
|
-
if (i = e.input.charCodeAt(e.position + 1),
|
|
3561
|
+
if (i = e.input.charCodeAt(e.position + 1), U(i) || n && Xn(i)) break;
|
|
3517
3562
|
} else if (p === 35) {
|
|
3518
|
-
if (r = e.input.charCodeAt(e.position - 1),
|
|
3519
|
-
} else if (e.position === e.lineStart &&
|
|
3520
|
-
else if (
|
|
3563
|
+
if (r = e.input.charCodeAt(e.position - 1), U(r)) break;
|
|
3564
|
+
} else if (e.position === e.lineStart && fr(e) || n && Xn(p)) break;
|
|
3565
|
+
else if (H(p)) if (c = e.line, l = e.lineStart, u = e.lineIndent, K(e, !1, -1), e.lineIndent >= t) {
|
|
3521
3566
|
s = !0, p = e.input.charCodeAt(e.position);
|
|
3522
3567
|
continue;
|
|
3523
3568
|
} else {
|
|
3524
3569
|
e.position = o, e.line = c, e.lineStart = l, e.lineIndent = u;
|
|
3525
3570
|
break;
|
|
3526
3571
|
}
|
|
3527
|
-
s &&= (
|
|
3572
|
+
s &&= (G(e, a, o, !1), pr(e, e.line - c), a = o = e.position, !1), Yn(p) || (o = e.position + 1), p = e.input.charCodeAt(++e.position);
|
|
3528
3573
|
}
|
|
3529
|
-
return
|
|
3574
|
+
return G(e, a, o, !1), e.result ? !0 : (e.kind = d, e.result = f, !1);
|
|
3530
3575
|
}
|
|
3531
|
-
a(
|
|
3532
|
-
function
|
|
3576
|
+
a(mr, "readPlainScalar");
|
|
3577
|
+
function hr(e, t) {
|
|
3533
3578
|
var n = e.input.charCodeAt(e.position), r, i;
|
|
3534
3579
|
if (n !== 39) return !1;
|
|
3535
|
-
for (e.kind = "scalar", e.result = "", e.position++, r = i = e.position; (n = e.input.charCodeAt(e.position)) !== 0;) if (n === 39) if (
|
|
3580
|
+
for (e.kind = "scalar", e.result = "", e.position++, r = i = e.position; (n = e.input.charCodeAt(e.position)) !== 0;) if (n === 39) if (G(e, r, e.position, !0), n = e.input.charCodeAt(++e.position), n === 39) r = e.position, e.position++, i = e.position;
|
|
3536
3581
|
else return !0;
|
|
3537
|
-
else
|
|
3538
|
-
|
|
3582
|
+
else H(n) ? (G(e, r, i, !0), pr(e, K(e, !1, t)), r = i = e.position) : e.position === e.lineStart && fr(e) ? W(e, "unexpected end of the document within a single quoted scalar") : (e.position++, i = e.position);
|
|
3583
|
+
W(e, "unexpected end of the stream within a single quoted scalar");
|
|
3539
3584
|
}
|
|
3540
|
-
a(
|
|
3541
|
-
function
|
|
3585
|
+
a(hr, "readSingleQuotedScalar");
|
|
3586
|
+
function gr(e, t) {
|
|
3542
3587
|
var n, r, i, a, o, s = e.input.charCodeAt(e.position);
|
|
3543
3588
|
if (s !== 34) return !1;
|
|
3544
|
-
for (e.kind = "scalar", e.result = "", e.position++, n = r = e.position; (s = e.input.charCodeAt(e.position)) !== 0;) if (s === 34) return
|
|
3589
|
+
for (e.kind = "scalar", e.result = "", e.position++, n = r = e.position; (s = e.input.charCodeAt(e.position)) !== 0;) if (s === 34) return G(e, n, e.position, !0), e.position++, !0;
|
|
3545
3590
|
else if (s === 92) {
|
|
3546
|
-
if (
|
|
3547
|
-
else if (s < 256 &&
|
|
3548
|
-
else if ((o =
|
|
3549
|
-
for (i = o, a = 0; i > 0; i--) s = e.input.charCodeAt(++e.position), (o =
|
|
3550
|
-
e.result +=
|
|
3551
|
-
} else
|
|
3591
|
+
if (G(e, n, e.position, !0), s = e.input.charCodeAt(++e.position), H(s)) K(e, !1, t);
|
|
3592
|
+
else if (s < 256 && nr[s]) e.result += rr[s], e.position++;
|
|
3593
|
+
else if ((o = Qn(s)) > 0) {
|
|
3594
|
+
for (i = o, a = 0; i > 0; i--) s = e.input.charCodeAt(++e.position), (o = Zn(s)) >= 0 ? a = (a << 4) + o : W(e, "expected hexadecimal character");
|
|
3595
|
+
e.result += tr(a), e.position++;
|
|
3596
|
+
} else W(e, "unknown escape sequence");
|
|
3552
3597
|
n = r = e.position;
|
|
3553
|
-
} else
|
|
3554
|
-
|
|
3598
|
+
} else H(s) ? (G(e, n, r, !0), pr(e, K(e, !1, t)), n = r = e.position) : e.position === e.lineStart && fr(e) ? W(e, "unexpected end of the document within a double quoted scalar") : (e.position++, r = e.position);
|
|
3599
|
+
W(e, "unexpected end of the stream within a double quoted scalar");
|
|
3555
3600
|
}
|
|
3556
|
-
a(
|
|
3557
|
-
function
|
|
3601
|
+
a(gr, "readDoubleQuotedScalar");
|
|
3602
|
+
function _r(e, t) {
|
|
3558
3603
|
var n = !0, r, i, a, o = e.tag, s, c = e.anchor, l, u, d, f, p, m = /* @__PURE__ */ Object.create(null), h, g, _, v = e.input.charCodeAt(e.position);
|
|
3559
3604
|
if (v === 91) u = 93, p = !1, s = [];
|
|
3560
3605
|
else if (v === 123) u = 125, p = !0, s = {};
|
|
3561
3606
|
else return !1;
|
|
3562
3607
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = s), v = e.input.charCodeAt(++e.position); v !== 0;) {
|
|
3563
|
-
if (
|
|
3564
|
-
n ? v === 44 &&
|
|
3608
|
+
if (K(e, !0, t), v = e.input.charCodeAt(e.position), v === u) return e.position++, e.tag = o, e.anchor = c, e.kind = p ? "mapping" : "sequence", e.result = s, !0;
|
|
3609
|
+
n ? v === 44 && W(e, "expected the node content, but found ','") : W(e, "missed comma between flow collection entries"), g = h = _ = null, d = f = !1, v === 63 && (l = e.input.charCodeAt(e.position + 1), U(l) && (d = f = !0, e.position++, K(e, !0, t))), r = e.line, i = e.lineStart, a = e.position, wr(e, t, In, !1, !0), g = e.tag, h = e.result, K(e, !0, t), v = e.input.charCodeAt(e.position), (f || e.line === r) && v === 58 && (d = !0, v = e.input.charCodeAt(++e.position), K(e, !0, t), wr(e, t, In, !1, !0), _ = e.result), p ? ur(e, s, m, g, h, _, r, i, a) : d ? s.push(ur(e, null, m, g, h, _, r, i, a)) : s.push(h), K(e, !0, t), v = e.input.charCodeAt(e.position), v === 44 ? (n = !0, v = e.input.charCodeAt(++e.position)) : n = !1;
|
|
3565
3610
|
}
|
|
3566
|
-
|
|
3611
|
+
W(e, "unexpected end of the stream within a flow collection");
|
|
3567
3612
|
}
|
|
3568
|
-
a(
|
|
3569
|
-
function
|
|
3570
|
-
var n, r, i =
|
|
3613
|
+
a(_r, "readFlowCollection");
|
|
3614
|
+
function vr(e, t) {
|
|
3615
|
+
var n, r, i = Bn, a = !1, o = !1, s = t, c = 0, l = !1, u, d = e.input.charCodeAt(e.position);
|
|
3571
3616
|
if (d === 124) r = !1;
|
|
3572
3617
|
else if (d === 62) r = !0;
|
|
3573
3618
|
else return !1;
|
|
3574
|
-
for (e.kind = "scalar", e.result = ""; d !== 0;) if (d = e.input.charCodeAt(++e.position), d === 43 || d === 45)
|
|
3575
|
-
else if ((u =
|
|
3619
|
+
for (e.kind = "scalar", e.result = ""; d !== 0;) if (d = e.input.charCodeAt(++e.position), d === 43 || d === 45) Bn === i ? i = d === 43 ? Hn : Vn : W(e, "repeat of a chomping mode identifier");
|
|
3620
|
+
else if ((u = $n(d)) >= 0) u === 0 ? W(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : o ? W(e, "repeat of an indentation width identifier") : (s = t + u - 1, o = !0);
|
|
3576
3621
|
else break;
|
|
3577
|
-
if (
|
|
3622
|
+
if (Yn(d)) {
|
|
3578
3623
|
do
|
|
3579
3624
|
d = e.input.charCodeAt(++e.position);
|
|
3580
|
-
while (
|
|
3625
|
+
while (Yn(d));
|
|
3581
3626
|
if (d === 35) do
|
|
3582
3627
|
d = e.input.charCodeAt(++e.position);
|
|
3583
|
-
while (!
|
|
3628
|
+
while (!H(d) && d !== 0);
|
|
3584
3629
|
}
|
|
3585
3630
|
for (; d !== 0;) {
|
|
3586
|
-
for (
|
|
3587
|
-
if (!o && e.lineIndent > s && (s = e.lineIndent),
|
|
3631
|
+
for (dr(e), e.lineIndent = 0, d = e.input.charCodeAt(e.position); (!o || e.lineIndent < s) && d === 32;) e.lineIndent++, d = e.input.charCodeAt(++e.position);
|
|
3632
|
+
if (!o && e.lineIndent > s && (s = e.lineIndent), H(d)) {
|
|
3588
3633
|
c++;
|
|
3589
3634
|
continue;
|
|
3590
3635
|
}
|
|
3591
3636
|
if (e.lineIndent < s) {
|
|
3592
|
-
i ===
|
|
3637
|
+
i === Hn ? e.result += z.repeat("\n", a ? 1 + c : c) : i === Bn && a && (e.result += "\n");
|
|
3593
3638
|
break;
|
|
3594
3639
|
}
|
|
3595
|
-
for (r ?
|
|
3596
|
-
|
|
3640
|
+
for (r ? Yn(d) ? (l = !0, e.result += z.repeat("\n", a ? 1 + c : c)) : l ? (l = !1, e.result += z.repeat("\n", c + 1)) : c === 0 ? a && (e.result += " ") : e.result += z.repeat("\n", c) : e.result += z.repeat("\n", a ? 1 + c : c), a = !0, o = !0, c = 0, n = e.position; !H(d) && d !== 0;) d = e.input.charCodeAt(++e.position);
|
|
3641
|
+
G(e, n, e.position, !1);
|
|
3597
3642
|
}
|
|
3598
3643
|
return !0;
|
|
3599
3644
|
}
|
|
3600
|
-
a(
|
|
3601
|
-
function
|
|
3645
|
+
a(vr, "readBlockScalar");
|
|
3646
|
+
function yr(e, t) {
|
|
3602
3647
|
var n, r = e.tag, i = e.anchor, a = [], o, s = !1, c;
|
|
3603
3648
|
if (e.firstTabInLine !== -1) return !1;
|
|
3604
|
-
for (e.anchor !== null && (e.anchorMap[e.anchor] = a), c = e.input.charCodeAt(e.position); c !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine,
|
|
3605
|
-
if (s = !0, e.position++,
|
|
3649
|
+
for (e.anchor !== null && (e.anchorMap[e.anchor] = a), c = e.input.charCodeAt(e.position); c !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, W(e, "tab characters must not be used in indentation")), !(c !== 45 || (o = e.input.charCodeAt(e.position + 1), !U(o))));) {
|
|
3650
|
+
if (s = !0, e.position++, K(e, !0, -1) && e.lineIndent <= t) {
|
|
3606
3651
|
a.push(null), c = e.input.charCodeAt(e.position);
|
|
3607
3652
|
continue;
|
|
3608
3653
|
}
|
|
3609
|
-
if (n = e.line,
|
|
3654
|
+
if (n = e.line, wr(e, t, Rn, !1, !0), a.push(e.result), K(e, !0, -1), c = e.input.charCodeAt(e.position), (e.line === n || e.lineIndent > t) && c !== 0) W(e, "bad indentation of a sequence entry");
|
|
3610
3655
|
else if (e.lineIndent < t) break;
|
|
3611
3656
|
}
|
|
3612
3657
|
return s ? (e.tag = r, e.anchor = i, e.kind = "sequence", e.result = a, !0) : !1;
|
|
3613
3658
|
}
|
|
3614
|
-
a(
|
|
3615
|
-
function
|
|
3659
|
+
a(yr, "readBlockSequence");
|
|
3660
|
+
function br(e, t, n) {
|
|
3616
3661
|
var r, i, a, o, s, c, l = e.tag, u = e.anchor, d = {}, f = /* @__PURE__ */ Object.create(null), p = null, m = null, h = null, g = !1, _ = !1, v;
|
|
3617
3662
|
if (e.firstTabInLine !== -1) return !1;
|
|
3618
3663
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = d), v = e.input.charCodeAt(e.position); v !== 0;) {
|
|
3619
|
-
if (!g && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine,
|
|
3664
|
+
if (!g && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, W(e, "tab characters must not be used in indentation")), r = e.input.charCodeAt(e.position + 1), a = e.line, (v === 63 || v === 58) && U(r)) v === 63 ? (g && (ur(e, d, f, p, m, null, o, s, c), p = m = h = null), _ = !0, g = !0, i = !0) : g ? (g = !1, i = !0) : W(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, v = r;
|
|
3620
3665
|
else {
|
|
3621
|
-
if (o = e.line, s = e.lineStart, c = e.position, !
|
|
3666
|
+
if (o = e.line, s = e.lineStart, c = e.position, !wr(e, n, Ln, !1, !0)) break;
|
|
3622
3667
|
if (e.line === a) {
|
|
3623
|
-
for (v = e.input.charCodeAt(e.position);
|
|
3624
|
-
if (v === 58) v = e.input.charCodeAt(++e.position),
|
|
3625
|
-
else if (_)
|
|
3668
|
+
for (v = e.input.charCodeAt(e.position); Yn(v);) v = e.input.charCodeAt(++e.position);
|
|
3669
|
+
if (v === 58) v = e.input.charCodeAt(++e.position), U(v) || W(e, "a whitespace character is expected after the key-value separator within a block mapping"), g && (ur(e, d, f, p, m, null, o, s, c), p = m = h = null), _ = !0, g = !1, i = !1, p = e.tag, m = e.result;
|
|
3670
|
+
else if (_) W(e, "can not read an implicit mapping pair; a colon is missed");
|
|
3626
3671
|
else return e.tag = l, e.anchor = u, !0;
|
|
3627
|
-
} else if (_)
|
|
3672
|
+
} else if (_) W(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
|
|
3628
3673
|
else return e.tag = l, e.anchor = u, !0;
|
|
3629
3674
|
}
|
|
3630
|
-
if ((e.line === a || e.lineIndent > t) && (g && (o = e.line, s = e.lineStart, c = e.position),
|
|
3675
|
+
if ((e.line === a || e.lineIndent > t) && (g && (o = e.line, s = e.lineStart, c = e.position), wr(e, t, zn, !0, i) && (g ? m = e.result : h = e.result), g || (ur(e, d, f, p, m, h, o, s, c), p = m = h = null), K(e, !0, -1), v = e.input.charCodeAt(e.position)), (e.line === a || e.lineIndent > t) && v !== 0) W(e, "bad indentation of a mapping entry");
|
|
3631
3676
|
else if (e.lineIndent < t) break;
|
|
3632
3677
|
}
|
|
3633
|
-
return g &&
|
|
3678
|
+
return g && ur(e, d, f, p, m, null, o, s, c), _ && (e.tag = l, e.anchor = u, e.kind = "mapping", e.result = d), _;
|
|
3634
3679
|
}
|
|
3635
|
-
a(
|
|
3636
|
-
function
|
|
3680
|
+
a(br, "readBlockMapping");
|
|
3681
|
+
function xr(e) {
|
|
3637
3682
|
var t, n = !1, r = !1, i, a, o = e.input.charCodeAt(e.position);
|
|
3638
3683
|
if (o !== 33) return !1;
|
|
3639
|
-
if (e.tag !== null &&
|
|
3684
|
+
if (e.tag !== null && W(e, "duplication of a tag property"), o = e.input.charCodeAt(++e.position), o === 60 ? (n = !0, o = e.input.charCodeAt(++e.position)) : o === 33 ? (r = !0, i = "!!", o = e.input.charCodeAt(++e.position)) : i = "!", t = e.position, n) {
|
|
3640
3685
|
do
|
|
3641
3686
|
o = e.input.charCodeAt(++e.position);
|
|
3642
3687
|
while (o !== 0 && o !== 62);
|
|
3643
|
-
e.position < e.length ? (a = e.input.slice(t, e.position), o = e.input.charCodeAt(++e.position)) :
|
|
3688
|
+
e.position < e.length ? (a = e.input.slice(t, e.position), o = e.input.charCodeAt(++e.position)) : W(e, "unexpected end of the stream within a verbatim tag");
|
|
3644
3689
|
} else {
|
|
3645
|
-
for (; o !== 0 && !
|
|
3646
|
-
a = e.input.slice(t, e.position),
|
|
3690
|
+
for (; o !== 0 && !U(o);) o === 33 && (r ? W(e, "tag suffix cannot contain exclamation marks") : (i = e.input.slice(t - 1, e.position + 1), Kn.test(i) || W(e, "named tag handle cannot contain such characters"), r = !0, t = e.position + 1)), o = e.input.charCodeAt(++e.position);
|
|
3691
|
+
a = e.input.slice(t, e.position), Gn.test(a) && W(e, "tag suffix cannot contain flow indicator characters");
|
|
3647
3692
|
}
|
|
3648
|
-
a && !
|
|
3693
|
+
a && !qn.test(a) && W(e, "tag name cannot contain such characters: " + a);
|
|
3649
3694
|
try {
|
|
3650
3695
|
a = decodeURIComponent(a);
|
|
3651
3696
|
} catch {
|
|
3652
|
-
|
|
3697
|
+
W(e, "tag name is malformed: " + a);
|
|
3653
3698
|
}
|
|
3654
|
-
return n ? e.tag = a :
|
|
3699
|
+
return n ? e.tag = a : Fn.call(e.tagMap, i) ? e.tag = e.tagMap[i] + a : i === "!" ? e.tag = "!" + a : i === "!!" ? e.tag = "tag:yaml.org,2002:" + a : W(e, "undeclared tag handle \"" + i + "\""), !0;
|
|
3655
3700
|
}
|
|
3656
|
-
a(
|
|
3657
|
-
function
|
|
3701
|
+
a(xr, "readTagProperty");
|
|
3702
|
+
function Sr(e) {
|
|
3658
3703
|
var t, n = e.input.charCodeAt(e.position);
|
|
3659
3704
|
if (n !== 38) return !1;
|
|
3660
|
-
for (e.anchor !== null &&
|
|
3661
|
-
return e.position === t &&
|
|
3705
|
+
for (e.anchor !== null && W(e, "duplication of an anchor property"), n = e.input.charCodeAt(++e.position), t = e.position; n !== 0 && !U(n) && !Xn(n);) n = e.input.charCodeAt(++e.position);
|
|
3706
|
+
return e.position === t && W(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(t, e.position), !0;
|
|
3662
3707
|
}
|
|
3663
|
-
a(
|
|
3664
|
-
function
|
|
3708
|
+
a(Sr, "readAnchorProperty");
|
|
3709
|
+
function Cr(e) {
|
|
3665
3710
|
var t, n, r = e.input.charCodeAt(e.position);
|
|
3666
3711
|
if (r !== 42) return !1;
|
|
3667
|
-
for (r = e.input.charCodeAt(++e.position), t = e.position; r !== 0 && !
|
|
3668
|
-
return e.position === t &&
|
|
3712
|
+
for (r = e.input.charCodeAt(++e.position), t = e.position; r !== 0 && !U(r) && !Xn(r);) r = e.input.charCodeAt(++e.position);
|
|
3713
|
+
return e.position === t && W(e, "name of an alias node must contain at least one character"), n = e.input.slice(t, e.position), Fn.call(e.anchorMap, n) || W(e, "unidentified alias \"" + n + "\""), e.result = e.anchorMap[n], K(e, !0, -1), !0;
|
|
3669
3714
|
}
|
|
3670
|
-
a(
|
|
3671
|
-
function
|
|
3715
|
+
a(Cr, "readAlias");
|
|
3716
|
+
function wr(e, t, n, r, i) {
|
|
3672
3717
|
var a, o, s, c = 1, l = !1, u = !1, d, f, p, m, h, g;
|
|
3673
|
-
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, a = o = s =
|
|
3674
|
-
if (s &&= l || i, (c === 1 ||
|
|
3718
|
+
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, a = o = s = zn === n || Rn === n, r && K(e, !0, -1) && (l = !0, e.lineIndent > t ? c = 1 : e.lineIndent === t ? c = 0 : e.lineIndent < t && (c = -1)), c === 1) for (; xr(e) || Sr(e);) K(e, !0, -1) ? (l = !0, s = a, e.lineIndent > t ? c = 1 : e.lineIndent === t ? c = 0 : e.lineIndent < t && (c = -1)) : s = !1;
|
|
3719
|
+
if (s &&= l || i, (c === 1 || zn === n) && (h = In === n || Ln === n ? t : t + 1, g = e.position - e.lineStart, c === 1 ? s && (yr(e, g) || br(e, g, h)) || _r(e, h) ? u = !0 : (o && vr(e, h) || hr(e, h) || gr(e, h) ? u = !0 : Cr(e) ? (u = !0, (e.tag !== null || e.anchor !== null) && W(e, "alias node should not have any properties")) : mr(e, h, In === n) && (u = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : c === 0 && (u = s && yr(e, g))), e.tag === null) e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
3675
3720
|
else if (e.tag === "?") {
|
|
3676
|
-
for (e.result !== null && e.kind !== "scalar" &&
|
|
3721
|
+
for (e.result !== null && e.kind !== "scalar" && W(e, "unacceptable node kind for !<?> tag; it should be \"scalar\", not \"" + e.kind + "\""), d = 0, f = e.implicitTypes.length; d < f; d += 1) if (m = e.implicitTypes[d], m.resolve(e.result)) {
|
|
3677
3722
|
e.result = m.construct(e.result), e.tag = m.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
3678
3723
|
break;
|
|
3679
3724
|
}
|
|
3680
3725
|
} else if (e.tag !== "!") {
|
|
3681
|
-
if (
|
|
3726
|
+
if (Fn.call(e.typeMap[e.kind || "fallback"], e.tag)) m = e.typeMap[e.kind || "fallback"][e.tag];
|
|
3682
3727
|
else for (m = null, p = e.typeMap.multi[e.kind || "fallback"], d = 0, f = p.length; d < f; d += 1) if (e.tag.slice(0, p[d].tag.length) === p[d].tag) {
|
|
3683
3728
|
m = p[d];
|
|
3684
3729
|
break;
|
|
3685
3730
|
}
|
|
3686
|
-
m ||
|
|
3731
|
+
m || W(e, "unknown tag !<" + e.tag + ">"), e.result !== null && m.kind !== e.kind && W(e, "unacceptable node kind for !<" + e.tag + "> tag; it should be \"" + m.kind + "\", not \"" + e.kind + "\""), m.resolve(e.result, e.tag) ? (e.result = m.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : W(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
|
|
3687
3732
|
}
|
|
3688
3733
|
return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || u;
|
|
3689
3734
|
}
|
|
3690
|
-
a(
|
|
3691
|
-
function
|
|
3735
|
+
a(wr, "composeNode");
|
|
3736
|
+
function Tr(e) {
|
|
3692
3737
|
var t = e.position, n, r, i, a = !1, o;
|
|
3693
|
-
for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (o = e.input.charCodeAt(e.position)) !== 0 && (
|
|
3694
|
-
for (a = !0, o = e.input.charCodeAt(++e.position), n = e.position; o !== 0 && !
|
|
3695
|
-
for (r = e.input.slice(n, e.position), i = [], r.length < 1 &&
|
|
3696
|
-
for (;
|
|
3738
|
+
for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (o = e.input.charCodeAt(e.position)) !== 0 && (K(e, !0, -1), o = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || o !== 37));) {
|
|
3739
|
+
for (a = !0, o = e.input.charCodeAt(++e.position), n = e.position; o !== 0 && !U(o);) o = e.input.charCodeAt(++e.position);
|
|
3740
|
+
for (r = e.input.slice(n, e.position), i = [], r.length < 1 && W(e, "directive name must not be less than one character in length"); o !== 0;) {
|
|
3741
|
+
for (; Yn(o);) o = e.input.charCodeAt(++e.position);
|
|
3697
3742
|
if (o === 35) {
|
|
3698
3743
|
do
|
|
3699
3744
|
o = e.input.charCodeAt(++e.position);
|
|
3700
|
-
while (o !== 0 && !
|
|
3745
|
+
while (o !== 0 && !H(o));
|
|
3701
3746
|
break;
|
|
3702
3747
|
}
|
|
3703
|
-
if (
|
|
3704
|
-
for (n = e.position; o !== 0 && !
|
|
3748
|
+
if (H(o)) break;
|
|
3749
|
+
for (n = e.position; o !== 0 && !U(o);) o = e.input.charCodeAt(++e.position);
|
|
3705
3750
|
i.push(e.input.slice(n, e.position));
|
|
3706
3751
|
}
|
|
3707
|
-
o !== 0 &&
|
|
3752
|
+
o !== 0 && dr(e), Fn.call(cr, r) ? cr[r](e, r, i) : sr(e, "unknown document directive \"" + r + "\"");
|
|
3708
3753
|
}
|
|
3709
|
-
if (
|
|
3710
|
-
e.input.charCodeAt(e.position) === 46 && (e.position += 3,
|
|
3754
|
+
if (K(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, K(e, !0, -1)) : a && W(e, "directives end mark is expected"), wr(e, e.lineIndent - 1, zn, !1, !0), K(e, !0, -1), e.checkLineBreaks && Wn.test(e.input.slice(t, e.position)) && sr(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && fr(e)) {
|
|
3755
|
+
e.input.charCodeAt(e.position) === 46 && (e.position += 3, K(e, !0, -1));
|
|
3711
3756
|
return;
|
|
3712
3757
|
}
|
|
3713
|
-
if (e.position < e.length - 1)
|
|
3758
|
+
if (e.position < e.length - 1) W(e, "end of the stream or a document separator is expected");
|
|
3714
3759
|
else return;
|
|
3715
3760
|
}
|
|
3716
|
-
a(
|
|
3717
|
-
function
|
|
3761
|
+
a(Tr, "readDocument");
|
|
3762
|
+
function Er(e, t) {
|
|
3718
3763
|
e = String(e), t ||= {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += "\n"), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
|
|
3719
|
-
var n = new
|
|
3720
|
-
for (r !== -1 && (n.position = r,
|
|
3721
|
-
for (; n.position < n.length - 1;)
|
|
3764
|
+
var n = new ar(e, t), r = e.indexOf("\0");
|
|
3765
|
+
for (r !== -1 && (n.position = r, W(n, "null byte is not allowed in input")), n.input += "\0"; n.input.charCodeAt(n.position) === 32;) n.lineIndent += 1, n.position += 1;
|
|
3766
|
+
for (; n.position < n.length - 1;) Tr(n);
|
|
3722
3767
|
return n.documents;
|
|
3723
3768
|
}
|
|
3724
|
-
a(
|
|
3725
|
-
function
|
|
3769
|
+
a(Er, "loadDocuments");
|
|
3770
|
+
function Dr(e, t, n) {
|
|
3726
3771
|
typeof t == "object" && t && n === void 0 && (n = t, t = null);
|
|
3727
|
-
var r =
|
|
3772
|
+
var r = Er(e, n);
|
|
3728
3773
|
if (typeof t != "function") return r;
|
|
3729
3774
|
for (var i = 0, a = r.length; i < a; i += 1) t(r[i]);
|
|
3730
3775
|
}
|
|
3731
|
-
a(
|
|
3732
|
-
function
|
|
3733
|
-
var n =
|
|
3776
|
+
a(Dr, "loadAll$1");
|
|
3777
|
+
function Or(e, t) {
|
|
3778
|
+
var n = Er(e, t);
|
|
3734
3779
|
if (n.length !== 0) {
|
|
3735
3780
|
if (n.length === 1) return n[0];
|
|
3736
|
-
throw new
|
|
3781
|
+
throw new B("expected a single document in the stream, but found more");
|
|
3737
3782
|
}
|
|
3738
3783
|
}
|
|
3739
|
-
a(
|
|
3740
|
-
var
|
|
3741
|
-
loadAll:
|
|
3742
|
-
load:
|
|
3743
|
-
},
|
|
3744
|
-
|
|
3745
|
-
var
|
|
3784
|
+
a(Or, "load$1");
|
|
3785
|
+
var kr = {
|
|
3786
|
+
loadAll: Dr,
|
|
3787
|
+
load: Or
|
|
3788
|
+
}, Ar = Object.prototype.toString, jr = Object.prototype.hasOwnProperty, Mr = 65279, Nr = 9, Pr = 10, Fr = 13, Ir = 32, Lr = 33, Rr = 34, zr = 35, Br = 37, Vr = 38, Hr = 39, Ur = 42, Wr = 44, Gr = 45, Kr = 58, qr = 61, Jr = 62, Yr = 63, Xr = 64, Zr = 91, Qr = 93, $r = 96, ei = 123, ti = 124, ni = 125, q = {};
|
|
3789
|
+
q[0] = "\\0", q[7] = "\\a", q[8] = "\\b", q[9] = "\\t", q[10] = "\\n", q[11] = "\\v", q[12] = "\\f", q[13] = "\\r", q[27] = "\\e", q[34] = "\\\"", q[92] = "\\\\", q[133] = "\\N", q[160] = "\\_", q[8232] = "\\L", q[8233] = "\\P";
|
|
3790
|
+
var ri = [
|
|
3746
3791
|
"y",
|
|
3747
3792
|
"Y",
|
|
3748
3793
|
"yes",
|
|
@@ -3759,299 +3804,299 @@ var Qr = [
|
|
|
3759
3804
|
"off",
|
|
3760
3805
|
"Off",
|
|
3761
3806
|
"OFF"
|
|
3762
|
-
],
|
|
3763
|
-
function
|
|
3807
|
+
], ii = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
|
|
3808
|
+
function ai(e, t) {
|
|
3764
3809
|
var n, r, i, a, o, s, c;
|
|
3765
3810
|
if (t === null) return {};
|
|
3766
|
-
for (n = {}, r = Object.keys(t), i = 0, a = r.length; i < a; i += 1) o = r[i], s = String(t[o]), o.slice(0, 2) === "!!" && (o = "tag:yaml.org,2002:" + o.slice(2)), c = e.compiledTypeMap.fallback[o], c &&
|
|
3811
|
+
for (n = {}, r = Object.keys(t), i = 0, a = r.length; i < a; i += 1) o = r[i], s = String(t[o]), o.slice(0, 2) === "!!" && (o = "tag:yaml.org,2002:" + o.slice(2)), c = e.compiledTypeMap.fallback[o], c && jr.call(c.styleAliases, s) && (s = c.styleAliases[s]), n[o] = s;
|
|
3767
3812
|
return n;
|
|
3768
3813
|
}
|
|
3769
|
-
a(
|
|
3770
|
-
function
|
|
3814
|
+
a(ai, "compileStyleMap");
|
|
3815
|
+
function oi(e) {
|
|
3771
3816
|
var t = e.toString(16).toUpperCase(), n, r;
|
|
3772
3817
|
if (e <= 255) n = "x", r = 2;
|
|
3773
3818
|
else if (e <= 65535) n = "u", r = 4;
|
|
3774
3819
|
else if (e <= 4294967295) n = "U", r = 8;
|
|
3775
|
-
else throw new
|
|
3776
|
-
return "\\" + n +
|
|
3820
|
+
else throw new B("code point within a string may not be greater than 0xFFFFFFFF");
|
|
3821
|
+
return "\\" + n + z.repeat("0", r - t.length) + t;
|
|
3777
3822
|
}
|
|
3778
|
-
a(
|
|
3779
|
-
var
|
|
3780
|
-
function
|
|
3781
|
-
this.schema = e.schema ||
|
|
3823
|
+
a(oi, "encodeHex");
|
|
3824
|
+
var si = 1, ci = 2;
|
|
3825
|
+
function li(e) {
|
|
3826
|
+
this.schema = e.schema || Pn, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = z.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = ai(this.schema, e.styles || null), this.sortKeys = e.sortKeys || !1, this.lineWidth = e.lineWidth || 80, this.noRefs = e.noRefs || !1, this.noCompatMode = e.noCompatMode || !1, this.condenseFlow = e.condenseFlow || !1, this.quotingType = e.quotingType === "\"" ? ci : si, this.forceQuotes = e.forceQuotes || !1, this.replacer = typeof e.replacer == "function" ? e.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null;
|
|
3782
3827
|
}
|
|
3783
|
-
a(
|
|
3784
|
-
function
|
|
3785
|
-
for (var n =
|
|
3828
|
+
a(li, "State");
|
|
3829
|
+
function ui(e, t) {
|
|
3830
|
+
for (var n = z.repeat(" ", t), r = 0, i = -1, a = "", o, s = e.length; r < s;) i = e.indexOf("\n", r), i === -1 ? (o = e.slice(r), r = s) : (o = e.slice(r, i + 1), r = i + 1), o.length && o !== "\n" && (a += n), a += o;
|
|
3786
3831
|
return a;
|
|
3787
3832
|
}
|
|
3788
|
-
a(
|
|
3789
|
-
function
|
|
3790
|
-
return "\n" +
|
|
3833
|
+
a(ui, "indentString");
|
|
3834
|
+
function di(e, t) {
|
|
3835
|
+
return "\n" + z.repeat(" ", e.indent * t);
|
|
3791
3836
|
}
|
|
3792
|
-
a(
|
|
3793
|
-
function
|
|
3837
|
+
a(di, "generateNextLine");
|
|
3838
|
+
function fi(e, t) {
|
|
3794
3839
|
var n, r, i;
|
|
3795
3840
|
for (n = 0, r = e.implicitTypes.length; n < r; n += 1) if (i = e.implicitTypes[n], i.resolve(t)) return !0;
|
|
3796
3841
|
return !1;
|
|
3797
3842
|
}
|
|
3798
|
-
a(
|
|
3799
|
-
function
|
|
3800
|
-
return e ===
|
|
3843
|
+
a(fi, "testImplicitResolving");
|
|
3844
|
+
function pi(e) {
|
|
3845
|
+
return e === Ir || e === Nr;
|
|
3801
3846
|
}
|
|
3802
|
-
a(
|
|
3803
|
-
function
|
|
3804
|
-
return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !==
|
|
3847
|
+
a(pi, "isWhitespace");
|
|
3848
|
+
function mi(e) {
|
|
3849
|
+
return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== Mr || 65536 <= e && e <= 1114111;
|
|
3805
3850
|
}
|
|
3806
|
-
a(
|
|
3807
|
-
function
|
|
3808
|
-
return
|
|
3851
|
+
a(mi, "isPrintable");
|
|
3852
|
+
function hi(e) {
|
|
3853
|
+
return mi(e) && e !== Mr && e !== Fr && e !== Pr;
|
|
3809
3854
|
}
|
|
3810
|
-
a(
|
|
3811
|
-
function
|
|
3812
|
-
var r =
|
|
3813
|
-
return (n ? r : r && e !==
|
|
3855
|
+
a(hi, "isNsCharOrWhitespace");
|
|
3856
|
+
function gi(e, t, n) {
|
|
3857
|
+
var r = hi(e), i = r && !pi(e);
|
|
3858
|
+
return (n ? r : r && e !== Wr && e !== Zr && e !== Qr && e !== ei && e !== ni) && e !== zr && !(t === Kr && !i) || hi(t) && !pi(t) && e === zr || t === Kr && i;
|
|
3814
3859
|
}
|
|
3815
|
-
a(
|
|
3816
|
-
function
|
|
3817
|
-
return
|
|
3860
|
+
a(gi, "isPlainSafe");
|
|
3861
|
+
function _i(e) {
|
|
3862
|
+
return mi(e) && e !== Mr && !pi(e) && e !== Gr && e !== Yr && e !== Kr && e !== Wr && e !== Zr && e !== Qr && e !== ei && e !== ni && e !== zr && e !== Vr && e !== Ur && e !== Lr && e !== ti && e !== qr && e !== Jr && e !== Hr && e !== Rr && e !== Br && e !== Xr && e !== $r;
|
|
3818
3863
|
}
|
|
3819
|
-
a(
|
|
3820
|
-
function
|
|
3821
|
-
return !
|
|
3864
|
+
a(_i, "isPlainSafeFirst");
|
|
3865
|
+
function vi(e) {
|
|
3866
|
+
return !pi(e) && e !== Kr;
|
|
3822
3867
|
}
|
|
3823
|
-
a(
|
|
3824
|
-
function
|
|
3868
|
+
a(vi, "isPlainSafeLast");
|
|
3869
|
+
function yi(e, t) {
|
|
3825
3870
|
var n = e.charCodeAt(t), r;
|
|
3826
3871
|
return n >= 55296 && n <= 56319 && t + 1 < e.length && (r = e.charCodeAt(t + 1), r >= 56320 && r <= 57343) ? (n - 55296) * 1024 + r - 56320 + 65536 : n;
|
|
3827
3872
|
}
|
|
3828
|
-
a(
|
|
3829
|
-
function
|
|
3873
|
+
a(yi, "codePointAt");
|
|
3874
|
+
function bi(e) {
|
|
3830
3875
|
return /^\n* /.test(e);
|
|
3831
3876
|
}
|
|
3832
|
-
a(
|
|
3833
|
-
var
|
|
3834
|
-
function
|
|
3835
|
-
var c, l = 0, u = null, d = !1, f = !1, p = r !== -1, m = -1, h =
|
|
3877
|
+
a(bi, "needIndentIndicator");
|
|
3878
|
+
var xi = 1, Si = 2, Ci = 3, wi = 4, Ti = 5;
|
|
3879
|
+
function Ei(e, t, n, r, i, a, o, s) {
|
|
3880
|
+
var c, l = 0, u = null, d = !1, f = !1, p = r !== -1, m = -1, h = _i(yi(e, 0)) && vi(yi(e, e.length - 1));
|
|
3836
3881
|
if (t || o) for (c = 0; c < e.length; l >= 65536 ? c += 2 : c++) {
|
|
3837
|
-
if (l =
|
|
3838
|
-
h &&=
|
|
3882
|
+
if (l = yi(e, c), !mi(l)) return Ti;
|
|
3883
|
+
h &&= gi(l, u, s), u = l;
|
|
3839
3884
|
}
|
|
3840
3885
|
else {
|
|
3841
3886
|
for (c = 0; c < e.length; l >= 65536 ? c += 2 : c++) {
|
|
3842
|
-
if (l =
|
|
3843
|
-
else if (!
|
|
3844
|
-
h &&=
|
|
3887
|
+
if (l = yi(e, c), l === Pr) d = !0, p && (f ||= c - m - 1 > r && e[m + 1] !== " ", m = c);
|
|
3888
|
+
else if (!mi(l)) return Ti;
|
|
3889
|
+
h &&= gi(l, u, s), u = l;
|
|
3845
3890
|
}
|
|
3846
3891
|
f ||= p && c - m - 1 > r && e[m + 1] !== " ";
|
|
3847
3892
|
}
|
|
3848
|
-
return !d && !f ? h && !o && !i(e) ?
|
|
3893
|
+
return !d && !f ? h && !o && !i(e) ? xi : a === ci ? Ti : Si : n > 9 && bi(e) ? Ti : o ? a === ci ? Ti : Si : f ? wi : Ci;
|
|
3849
3894
|
}
|
|
3850
|
-
a(
|
|
3851
|
-
function
|
|
3895
|
+
a(Ei, "chooseScalarStyle");
|
|
3896
|
+
function Di(e, t, n, r, i) {
|
|
3852
3897
|
e.dump = (function() {
|
|
3853
|
-
if (t.length === 0) return e.quotingType ===
|
|
3854
|
-
if (!e.noCompatMode && (
|
|
3898
|
+
if (t.length === 0) return e.quotingType === ci ? "\"\"" : "''";
|
|
3899
|
+
if (!e.noCompatMode && (ri.indexOf(t) !== -1 || ii.test(t))) return e.quotingType === ci ? "\"" + t + "\"" : "'" + t + "'";
|
|
3855
3900
|
var o = e.indent * Math.max(1, n), s = e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - o), c = r || e.flowLevel > -1 && n >= e.flowLevel;
|
|
3856
3901
|
function l(t) {
|
|
3857
|
-
return
|
|
3902
|
+
return fi(e, t);
|
|
3858
3903
|
}
|
|
3859
|
-
switch (a(l, "testAmbiguity"),
|
|
3860
|
-
case
|
|
3861
|
-
case
|
|
3862
|
-
case
|
|
3863
|
-
case
|
|
3864
|
-
case
|
|
3865
|
-
default: throw new
|
|
3904
|
+
switch (a(l, "testAmbiguity"), Ei(t, c, e.indent, s, l, e.quotingType, e.forceQuotes && !r, i)) {
|
|
3905
|
+
case xi: return t;
|
|
3906
|
+
case Si: return "'" + t.replace(/'/g, "''") + "'";
|
|
3907
|
+
case Ci: return "|" + Oi(t, e.indent) + ki(ui(t, o));
|
|
3908
|
+
case wi: return ">" + Oi(t, e.indent) + ki(ui(Ai(t, s), o));
|
|
3909
|
+
case Ti: return "\"" + Mi(t) + "\"";
|
|
3910
|
+
default: throw new B("impossible error: invalid scalar style");
|
|
3866
3911
|
}
|
|
3867
3912
|
})();
|
|
3868
3913
|
}
|
|
3869
|
-
a(
|
|
3870
|
-
function
|
|
3871
|
-
var n =
|
|
3914
|
+
a(Di, "writeScalar");
|
|
3915
|
+
function Oi(e, t) {
|
|
3916
|
+
var n = bi(e) ? String(t) : "", r = e[e.length - 1] === "\n";
|
|
3872
3917
|
return n + (r && (e[e.length - 2] === "\n" || e === "\n") ? "+" : r ? "" : "-") + "\n";
|
|
3873
3918
|
}
|
|
3874
|
-
a(
|
|
3875
|
-
function
|
|
3919
|
+
a(Oi, "blockHeader");
|
|
3920
|
+
function ki(e) {
|
|
3876
3921
|
return e[e.length - 1] === "\n" ? e.slice(0, -1) : e;
|
|
3877
3922
|
}
|
|
3878
|
-
a(
|
|
3879
|
-
function
|
|
3923
|
+
a(ki, "dropEndingNewline");
|
|
3924
|
+
function Ai(e, t) {
|
|
3880
3925
|
for (var n = /(\n+)([^\n]*)/g, r = (function() {
|
|
3881
3926
|
var r = e.indexOf("\n");
|
|
3882
|
-
return r = r === -1 ? e.length : r, n.lastIndex = r,
|
|
3927
|
+
return r = r === -1 ? e.length : r, n.lastIndex = r, ji(e.slice(0, r), t);
|
|
3883
3928
|
})(), i = e[0] === "\n" || e[0] === " ", a, o; o = n.exec(e);) {
|
|
3884
3929
|
var s = o[1], c = o[2];
|
|
3885
|
-
a = c[0] === " ", r += s + (!i && !a && c !== "" ? "\n" : "") +
|
|
3930
|
+
a = c[0] === " ", r += s + (!i && !a && c !== "" ? "\n" : "") + ji(c, t), i = a;
|
|
3886
3931
|
}
|
|
3887
3932
|
return r;
|
|
3888
3933
|
}
|
|
3889
|
-
a(
|
|
3890
|
-
function
|
|
3934
|
+
a(Ai, "foldString");
|
|
3935
|
+
function ji(e, t) {
|
|
3891
3936
|
if (e === "" || e[0] === " ") return e;
|
|
3892
3937
|
for (var n = / [^ ]/g, r, i = 0, a, o = 0, s = 0, c = ""; r = n.exec(e);) s = r.index, s - i > t && (a = o > i ? o : s, c += "\n" + e.slice(i, a), i = a + 1), o = s;
|
|
3893
3938
|
return c += "\n", e.length - i > t && o > i ? c += e.slice(i, o) + "\n" + e.slice(o + 1) : c += e.slice(i), c.slice(1);
|
|
3894
3939
|
}
|
|
3895
|
-
a(
|
|
3896
|
-
function
|
|
3897
|
-
for (var t = "", n = 0, r, i = 0; i < e.length; n >= 65536 ? i += 2 : i++) n =
|
|
3940
|
+
a(ji, "foldLine");
|
|
3941
|
+
function Mi(e) {
|
|
3942
|
+
for (var t = "", n = 0, r, i = 0; i < e.length; n >= 65536 ? i += 2 : i++) n = yi(e, i), r = q[n], !r && mi(n) ? (t += e[i], n >= 65536 && (t += e[i + 1])) : t += r || oi(n);
|
|
3898
3943
|
return t;
|
|
3899
3944
|
}
|
|
3900
|
-
a(
|
|
3901
|
-
function
|
|
3945
|
+
a(Mi, "escapeString");
|
|
3946
|
+
function Ni(e, t, n) {
|
|
3902
3947
|
var r = "", i = e.tag, a, o, s;
|
|
3903
|
-
for (a = 0, o = n.length; a < o; a += 1) s = n[a], e.replacer && (s = e.replacer.call(n, String(a), s)), (
|
|
3948
|
+
for (a = 0, o = n.length; a < o; a += 1) s = n[a], e.replacer && (s = e.replacer.call(n, String(a), s)), (J(e, t, s, !1, !1) || s === void 0 && J(e, t, null, !1, !1)) && (r !== "" && (r += "," + (e.condenseFlow ? "" : " ")), r += e.dump);
|
|
3904
3949
|
e.tag = i, e.dump = "[" + r + "]";
|
|
3905
3950
|
}
|
|
3906
|
-
a(
|
|
3907
|
-
function
|
|
3951
|
+
a(Ni, "writeFlowSequence");
|
|
3952
|
+
function Pi(e, t, n, r) {
|
|
3908
3953
|
var i = "", a = e.tag, o, s, c;
|
|
3909
|
-
for (o = 0, s = n.length; o < s; o += 1) c = n[o], e.replacer && (c = e.replacer.call(n, String(o), c)), (
|
|
3954
|
+
for (o = 0, s = n.length; o < s; o += 1) c = n[o], e.replacer && (c = e.replacer.call(n, String(o), c)), (J(e, t + 1, c, !0, !0, !1, !0) || c === void 0 && J(e, t + 1, null, !0, !0, !1, !0)) && ((!r || i !== "") && (i += di(e, t)), e.dump && Pr === e.dump.charCodeAt(0) ? i += "-" : i += "- ", i += e.dump);
|
|
3910
3955
|
e.tag = a, e.dump = i || "[]";
|
|
3911
3956
|
}
|
|
3912
|
-
a(
|
|
3913
|
-
function
|
|
3957
|
+
a(Pi, "writeBlockSequence");
|
|
3958
|
+
function Fi(e, t, n) {
|
|
3914
3959
|
var r = "", i = e.tag, a = Object.keys(n), o, s, c, l, u;
|
|
3915
|
-
for (o = 0, s = a.length; o < s; o += 1) u = "", r !== "" && (u += ", "), e.condenseFlow && (u += "\""), c = a[o], l = n[c], e.replacer && (l = e.replacer.call(n, c, l)),
|
|
3960
|
+
for (o = 0, s = a.length; o < s; o += 1) u = "", r !== "" && (u += ", "), e.condenseFlow && (u += "\""), c = a[o], l = n[c], e.replacer && (l = e.replacer.call(n, c, l)), J(e, t, c, !1, !1) && (e.dump.length > 1024 && (u += "? "), u += e.dump + (e.condenseFlow ? "\"" : "") + ":" + (e.condenseFlow ? "" : " "), J(e, t, l, !1, !1) && (u += e.dump, r += u));
|
|
3916
3961
|
e.tag = i, e.dump = "{" + r + "}";
|
|
3917
3962
|
}
|
|
3918
|
-
a(
|
|
3919
|
-
function
|
|
3963
|
+
a(Fi, "writeFlowMapping");
|
|
3964
|
+
function Ii(e, t, n, r) {
|
|
3920
3965
|
var i = "", a = e.tag, o = Object.keys(n), s, c, l, u, d, f;
|
|
3921
3966
|
if (e.sortKeys === !0) o.sort();
|
|
3922
3967
|
else if (typeof e.sortKeys == "function") o.sort(e.sortKeys);
|
|
3923
|
-
else if (e.sortKeys) throw new
|
|
3924
|
-
for (s = 0, c = o.length; s < c; s += 1) f = "", (!r || i !== "") && (f +=
|
|
3968
|
+
else if (e.sortKeys) throw new B("sortKeys must be a boolean or a function");
|
|
3969
|
+
for (s = 0, c = o.length; s < c; s += 1) f = "", (!r || i !== "") && (f += di(e, t)), l = o[s], u = n[l], e.replacer && (u = e.replacer.call(n, l, u)), J(e, t + 1, l, !0, !0, !0) && (d = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, d && (e.dump && Pr === e.dump.charCodeAt(0) ? f += "?" : f += "? "), f += e.dump, d && (f += di(e, t)), J(e, t + 1, u, !0, d) && (e.dump && Pr === e.dump.charCodeAt(0) ? f += ":" : f += ": ", f += e.dump, i += f));
|
|
3925
3970
|
e.tag = a, e.dump = i || "{}";
|
|
3926
3971
|
}
|
|
3927
|
-
a(
|
|
3928
|
-
function
|
|
3972
|
+
a(Ii, "writeBlockMapping");
|
|
3973
|
+
function Li(e, t, n) {
|
|
3929
3974
|
var r, i = n ? e.explicitTypes : e.implicitTypes, a, o, s, c;
|
|
3930
3975
|
for (a = 0, o = i.length; a < o; a += 1) if (s = i[a], (s.instanceOf || s.predicate) && (!s.instanceOf || typeof t == "object" && t instanceof s.instanceOf) && (!s.predicate || s.predicate(t))) {
|
|
3931
3976
|
if (n ? s.multi && s.representName ? e.tag = s.representName(t) : e.tag = s.tag : e.tag = "?", s.represent) {
|
|
3932
|
-
if (c = e.styleMap[s.tag] || s.defaultStyle,
|
|
3933
|
-
else if (
|
|
3934
|
-
else throw new
|
|
3977
|
+
if (c = e.styleMap[s.tag] || s.defaultStyle, Ar.call(s.represent) === "[object Function]") r = s.represent(t, c);
|
|
3978
|
+
else if (jr.call(s.represent, c)) r = s.represent[c](t, c);
|
|
3979
|
+
else throw new B("!<" + s.tag + "> tag resolver accepts not \"" + c + "\" style");
|
|
3935
3980
|
e.dump = r;
|
|
3936
3981
|
}
|
|
3937
3982
|
return !0;
|
|
3938
3983
|
}
|
|
3939
3984
|
return !1;
|
|
3940
3985
|
}
|
|
3941
|
-
a(
|
|
3942
|
-
function
|
|
3943
|
-
e.tag = null, e.dump = n,
|
|
3944
|
-
var s =
|
|
3986
|
+
a(Li, "detectType");
|
|
3987
|
+
function J(e, t, n, r, i, a, o) {
|
|
3988
|
+
e.tag = null, e.dump = n, Li(e, n, !1) || Li(e, n, !0);
|
|
3989
|
+
var s = Ar.call(e.dump), c = r, l;
|
|
3945
3990
|
r &&= e.flowLevel < 0 || e.flowLevel > t;
|
|
3946
3991
|
var u = s === "[object Object]" || s === "[object Array]", d, f;
|
|
3947
3992
|
if (u && (d = e.duplicates.indexOf(n), f = d !== -1), (e.tag !== null && e.tag !== "?" || f || e.indent !== 2 && t > 0) && (i = !1), f && e.usedDuplicates[d]) e.dump = "*ref_" + d;
|
|
3948
3993
|
else {
|
|
3949
|
-
if (u && f && !e.usedDuplicates[d] && (e.usedDuplicates[d] = !0), s === "[object Object]") r && Object.keys(e.dump).length !== 0 ? (
|
|
3950
|
-
else if (s === "[object Array]") r && e.dump.length !== 0 ? (e.noArrayIndent && !o && t > 0 ?
|
|
3951
|
-
else if (s === "[object String]") e.tag !== "?" &&
|
|
3994
|
+
if (u && f && !e.usedDuplicates[d] && (e.usedDuplicates[d] = !0), s === "[object Object]") r && Object.keys(e.dump).length !== 0 ? (Ii(e, t, e.dump, i), f && (e.dump = "&ref_" + d + e.dump)) : (Fi(e, t, e.dump), f && (e.dump = "&ref_" + d + " " + e.dump));
|
|
3995
|
+
else if (s === "[object Array]") r && e.dump.length !== 0 ? (e.noArrayIndent && !o && t > 0 ? Pi(e, t - 1, e.dump, i) : Pi(e, t, e.dump, i), f && (e.dump = "&ref_" + d + e.dump)) : (Ni(e, t, e.dump), f && (e.dump = "&ref_" + d + " " + e.dump));
|
|
3996
|
+
else if (s === "[object String]") e.tag !== "?" && Di(e, e.dump, t, a, c);
|
|
3952
3997
|
else if (s === "[object Undefined]") return !1;
|
|
3953
3998
|
else {
|
|
3954
3999
|
if (e.skipInvalid) return !1;
|
|
3955
|
-
throw new
|
|
4000
|
+
throw new B("unacceptable kind of an object to dump " + s);
|
|
3956
4001
|
}
|
|
3957
4002
|
e.tag !== null && e.tag !== "?" && (l = encodeURI(e.tag[0] === "!" ? e.tag.slice(1) : e.tag).replace(/!/g, "%21"), l = e.tag[0] === "!" ? "!" + l : l.slice(0, 18) === "tag:yaml.org,2002:" ? "!!" + l.slice(18) : "!<" + l + ">", e.dump = l + " " + e.dump);
|
|
3958
4003
|
}
|
|
3959
4004
|
return !0;
|
|
3960
4005
|
}
|
|
3961
|
-
a(
|
|
3962
|
-
function
|
|
4006
|
+
a(J, "writeNode");
|
|
4007
|
+
function Ri(e, t) {
|
|
3963
4008
|
var n = [], r = [], i, a;
|
|
3964
|
-
for (
|
|
4009
|
+
for (zi(e, n, r), i = 0, a = r.length; i < a; i += 1) t.duplicates.push(n[r[i]]);
|
|
3965
4010
|
t.usedDuplicates = Array(a);
|
|
3966
4011
|
}
|
|
3967
|
-
a(
|
|
3968
|
-
function
|
|
4012
|
+
a(Ri, "getDuplicateReferences");
|
|
4013
|
+
function zi(e, t, n) {
|
|
3969
4014
|
var r, i, a;
|
|
3970
4015
|
if (typeof e == "object" && e) if (i = t.indexOf(e), i !== -1) n.indexOf(i) === -1 && n.push(i);
|
|
3971
|
-
else if (t.push(e), Array.isArray(e)) for (i = 0, a = e.length; i < a; i += 1)
|
|
3972
|
-
else for (r = Object.keys(e), i = 0, a = r.length; i < a; i += 1)
|
|
4016
|
+
else if (t.push(e), Array.isArray(e)) for (i = 0, a = e.length; i < a; i += 1) zi(e[i], t, n);
|
|
4017
|
+
else for (r = Object.keys(e), i = 0, a = r.length; i < a; i += 1) zi(e[r[i]], t, n);
|
|
3973
4018
|
}
|
|
3974
|
-
a(
|
|
3975
|
-
function
|
|
4019
|
+
a(zi, "inspectNode");
|
|
4020
|
+
function Bi(e, t) {
|
|
3976
4021
|
t ||= {};
|
|
3977
|
-
var n = new
|
|
3978
|
-
n.noRefs ||
|
|
4022
|
+
var n = new li(t);
|
|
4023
|
+
n.noRefs || Ri(e, n);
|
|
3979
4024
|
var r = e;
|
|
3980
|
-
return n.replacer && (r = n.replacer.call({ "": r }, "", r)),
|
|
4025
|
+
return n.replacer && (r = n.replacer.call({ "": r }, "", r)), J(n, 0, r, !0, !0) ? n.dump + "\n" : "";
|
|
3981
4026
|
}
|
|
3982
|
-
a(
|
|
3983
|
-
var
|
|
3984
|
-
function
|
|
4027
|
+
a(Bi, "dump$1");
|
|
4028
|
+
var Vi = { dump: Bi };
|
|
4029
|
+
function Hi(e, t) {
|
|
3985
4030
|
return function() {
|
|
3986
4031
|
throw Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + t + " instead, which is now safe by default.");
|
|
3987
4032
|
};
|
|
3988
4033
|
}
|
|
3989
|
-
a(
|
|
3990
|
-
var
|
|
3991
|
-
|
|
4034
|
+
a(Hi, "renamed");
|
|
4035
|
+
var Ui = an, Wi = kr.load;
|
|
4036
|
+
kr.loadAll, Vi.dump;
|
|
3992
4037
|
//#endregion
|
|
3993
4038
|
//#region node_modules/.pnpm/mermaid@11.12.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-N4CR4FBY.mjs
|
|
3994
|
-
var
|
|
4039
|
+
var Gi = {
|
|
3995
4040
|
common: D,
|
|
3996
4041
|
getConfig: j,
|
|
3997
|
-
insertCluster:
|
|
3998
|
-
insertEdge:
|
|
3999
|
-
insertEdgeLabel:
|
|
4000
|
-
insertMarkers:
|
|
4001
|
-
insertNode:
|
|
4042
|
+
insertCluster: be,
|
|
4043
|
+
insertEdge: we,
|
|
4044
|
+
insertEdgeLabel: Te,
|
|
4045
|
+
insertMarkers: Ce,
|
|
4046
|
+
insertNode: ye,
|
|
4002
4047
|
interpolateToCurve: ie,
|
|
4003
|
-
labelHelper:
|
|
4048
|
+
labelHelper: xe,
|
|
4004
4049
|
log: i,
|
|
4005
|
-
positionEdgeLabel:
|
|
4006
|
-
},
|
|
4007
|
-
for (let t of e)
|
|
4050
|
+
positionEdgeLabel: Se
|
|
4051
|
+
}, Ki = {}, qi = /* @__PURE__ */ a((e) => {
|
|
4052
|
+
for (let t of e) Ki[t.name] = t;
|
|
4008
4053
|
}, "registerLayoutLoaders");
|
|
4009
4054
|
(/* @__PURE__ */ a(() => {
|
|
4010
|
-
|
|
4055
|
+
qi([{
|
|
4011
4056
|
name: "dagre",
|
|
4012
|
-
loader: /* @__PURE__ */ a(async () => await import("./dagre-6UL2VRFP-
|
|
4057
|
+
loader: /* @__PURE__ */ a(async () => await import("./dagre-6UL2VRFP-CdXuGT6Y.js"), "loader")
|
|
4013
4058
|
}, {
|
|
4014
4059
|
name: "cose-bilkent",
|
|
4015
4060
|
loader: /* @__PURE__ */ a(async () => await import("./cose-bilkent-S5V4N54A-bGPAcpg6.js"), "loader")
|
|
4016
4061
|
}]);
|
|
4017
4062
|
}, "registerDefaultLayoutLoaders"))();
|
|
4018
|
-
var
|
|
4019
|
-
if (!(e.layoutAlgorithm in
|
|
4020
|
-
let n =
|
|
4021
|
-
return (await n.loader()).render(e, t,
|
|
4022
|
-
}, "render"),
|
|
4023
|
-
if (e in
|
|
4024
|
-
if (t in
|
|
4063
|
+
var Ji = /* @__PURE__ */ a(async (e, t) => {
|
|
4064
|
+
if (!(e.layoutAlgorithm in Ki)) throw Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);
|
|
4065
|
+
let n = Ki[e.layoutAlgorithm];
|
|
4066
|
+
return (await n.loader()).render(e, t, Gi, { algorithm: n.algorithm });
|
|
4067
|
+
}, "render"), Yi = /* @__PURE__ */ a((e = "", { fallback: t = "dagre" } = {}) => {
|
|
4068
|
+
if (e in Ki) return e;
|
|
4069
|
+
if (t in Ki) return i.warn(`Layout algorithm ${e} is not registered. Using ${t} as fallback.`), t;
|
|
4025
4070
|
throw Error(`Both layout algorithms ${e} and ${t} are not registered.`);
|
|
4026
|
-
}, "getRegisteredLayoutAlgorithm"),
|
|
4027
|
-
function
|
|
4071
|
+
}, "getRegisteredLayoutAlgorithm"), Xi = "comm", Zi = "rule", Qi = "decl", $i = "@import", ea = "@namespace", ta = "@keyframes", na = "@layer", ra = Math.abs, ia = String.fromCharCode;
|
|
4072
|
+
function aa(e) {
|
|
4028
4073
|
return e.trim();
|
|
4029
4074
|
}
|
|
4030
|
-
function
|
|
4075
|
+
function oa(e, t, n) {
|
|
4031
4076
|
return e.replace(t, n);
|
|
4032
4077
|
}
|
|
4033
|
-
function
|
|
4078
|
+
function sa(e, t, n) {
|
|
4034
4079
|
return e.indexOf(t, n);
|
|
4035
4080
|
}
|
|
4036
|
-
function
|
|
4081
|
+
function ca(e, t) {
|
|
4037
4082
|
return e.charCodeAt(t) | 0;
|
|
4038
4083
|
}
|
|
4039
|
-
function
|
|
4084
|
+
function la(e, t, n) {
|
|
4040
4085
|
return e.slice(t, n);
|
|
4041
4086
|
}
|
|
4042
|
-
function
|
|
4087
|
+
function Y(e) {
|
|
4043
4088
|
return e.length;
|
|
4044
4089
|
}
|
|
4045
|
-
function
|
|
4090
|
+
function ua(e) {
|
|
4046
4091
|
return e.length;
|
|
4047
4092
|
}
|
|
4048
|
-
function
|
|
4093
|
+
function da(e, t) {
|
|
4049
4094
|
return t.push(e), e;
|
|
4050
4095
|
}
|
|
4051
4096
|
//#endregion
|
|
4052
4097
|
//#region node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Tokenizer.js
|
|
4053
|
-
var
|
|
4054
|
-
function
|
|
4098
|
+
var fa = 1, pa = 1, ma = 0, X = 0, Z = 0, ha = "";
|
|
4099
|
+
function ga(e, t, n, r, i, a, o, s) {
|
|
4055
4100
|
return {
|
|
4056
4101
|
value: e,
|
|
4057
4102
|
root: t,
|
|
@@ -4059,32 +4104,32 @@ function da(e, t, n, r, i, a, o, s) {
|
|
|
4059
4104
|
type: r,
|
|
4060
4105
|
props: i,
|
|
4061
4106
|
children: a,
|
|
4062
|
-
line:
|
|
4063
|
-
column:
|
|
4107
|
+
line: fa,
|
|
4108
|
+
column: pa,
|
|
4064
4109
|
length: o,
|
|
4065
4110
|
return: "",
|
|
4066
4111
|
siblings: s
|
|
4067
4112
|
};
|
|
4068
4113
|
}
|
|
4069
|
-
function
|
|
4070
|
-
return
|
|
4114
|
+
function _a() {
|
|
4115
|
+
return Z;
|
|
4071
4116
|
}
|
|
4072
|
-
function
|
|
4073
|
-
return
|
|
4117
|
+
function va() {
|
|
4118
|
+
return Z = X > 0 ? ca(ha, --X) : 0, pa--, Z === 10 && (pa = 1, fa--), Z;
|
|
4074
4119
|
}
|
|
4075
|
-
function
|
|
4076
|
-
return
|
|
4120
|
+
function Q() {
|
|
4121
|
+
return Z = X < ma ? ca(ha, X++) : 0, pa++, Z === 10 && (pa = 1, fa++), Z;
|
|
4077
4122
|
}
|
|
4078
|
-
function
|
|
4079
|
-
return
|
|
4123
|
+
function ya() {
|
|
4124
|
+
return ca(ha, X);
|
|
4080
4125
|
}
|
|
4081
|
-
function
|
|
4082
|
-
return
|
|
4126
|
+
function ba() {
|
|
4127
|
+
return X;
|
|
4083
4128
|
}
|
|
4084
|
-
function
|
|
4085
|
-
return
|
|
4129
|
+
function xa(e, t) {
|
|
4130
|
+
return la(ha, e, t);
|
|
4086
4131
|
}
|
|
4087
|
-
function
|
|
4132
|
+
function Sa(e) {
|
|
4088
4133
|
switch (e) {
|
|
4089
4134
|
case 0:
|
|
4090
4135
|
case 9:
|
|
@@ -4111,82 +4156,82 @@ function _a(e) {
|
|
|
4111
4156
|
}
|
|
4112
4157
|
return 0;
|
|
4113
4158
|
}
|
|
4114
|
-
function
|
|
4115
|
-
return
|
|
4159
|
+
function Ca(e) {
|
|
4160
|
+
return fa = pa = 1, ma = Y(ha = e), X = 0, [];
|
|
4116
4161
|
}
|
|
4117
|
-
function
|
|
4118
|
-
return
|
|
4162
|
+
function wa(e) {
|
|
4163
|
+
return ha = "", e;
|
|
4119
4164
|
}
|
|
4120
|
-
function
|
|
4121
|
-
return
|
|
4165
|
+
function Ta(e) {
|
|
4166
|
+
return aa(xa(X - 1, Oa(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
4122
4167
|
}
|
|
4123
|
-
function
|
|
4124
|
-
for (; (
|
|
4125
|
-
return
|
|
4168
|
+
function Ea(e) {
|
|
4169
|
+
for (; (Z = ya()) && Z < 33;) Q();
|
|
4170
|
+
return Sa(e) > 2 || Sa(Z) > 3 ? "" : " ";
|
|
4126
4171
|
}
|
|
4127
|
-
function
|
|
4128
|
-
for (; --t &&
|
|
4129
|
-
return
|
|
4172
|
+
function Da(e, t) {
|
|
4173
|
+
for (; --t && Q() && !(Z < 48 || Z > 102 || Z > 57 && Z < 65 || Z > 70 && Z < 97););
|
|
4174
|
+
return xa(e, ba() + (t < 6 && ya() == 32 && Q() == 32));
|
|
4130
4175
|
}
|
|
4131
|
-
function
|
|
4132
|
-
for (;
|
|
4133
|
-
case e: return
|
|
4176
|
+
function Oa(e) {
|
|
4177
|
+
for (; Q();) switch (Z) {
|
|
4178
|
+
case e: return X;
|
|
4134
4179
|
case 34:
|
|
4135
4180
|
case 39:
|
|
4136
|
-
e !== 34 && e !== 39 &&
|
|
4181
|
+
e !== 34 && e !== 39 && Oa(Z);
|
|
4137
4182
|
break;
|
|
4138
4183
|
case 40:
|
|
4139
|
-
e === 41 &&
|
|
4184
|
+
e === 41 && Oa(e);
|
|
4140
4185
|
break;
|
|
4141
4186
|
case 92:
|
|
4142
|
-
|
|
4187
|
+
Q();
|
|
4143
4188
|
break;
|
|
4144
4189
|
}
|
|
4145
|
-
return
|
|
4190
|
+
return X;
|
|
4146
4191
|
}
|
|
4147
|
-
function
|
|
4148
|
-
for (;
|
|
4149
|
-
return "/*" +
|
|
4192
|
+
function ka(e, t) {
|
|
4193
|
+
for (; Q() && e + Z !== 57 && !(e + Z === 84 && ya() === 47););
|
|
4194
|
+
return "/*" + xa(t, X - 1) + "*" + ia(e === 47 ? e : Q());
|
|
4150
4195
|
}
|
|
4151
|
-
function
|
|
4152
|
-
for (; !
|
|
4153
|
-
return
|
|
4196
|
+
function Aa(e) {
|
|
4197
|
+
for (; !Sa(ya());) Q();
|
|
4198
|
+
return xa(e, X);
|
|
4154
4199
|
}
|
|
4155
4200
|
//#endregion
|
|
4156
4201
|
//#region node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Parser.js
|
|
4157
|
-
function
|
|
4158
|
-
return
|
|
4202
|
+
function ja(e) {
|
|
4203
|
+
return wa(Ma("", null, null, null, [""], e = Ca(e), 0, [0], e));
|
|
4159
4204
|
}
|
|
4160
|
-
function
|
|
4161
|
-
for (var l = 0, u = 0, d = o, f = 0, p = 0, m = 0, h = 1, g = 1, _ = 1, v = 0, y = "", b = i, x = a, S = r, C = y; g;) switch (m = v, v =
|
|
4162
|
-
case 40: if (m != 108 &&
|
|
4163
|
-
|
|
4205
|
+
function Ma(e, t, n, r, i, a, o, s, c) {
|
|
4206
|
+
for (var l = 0, u = 0, d = o, f = 0, p = 0, m = 0, h = 1, g = 1, _ = 1, v = 0, y = "", b = i, x = a, S = r, C = y; g;) switch (m = v, v = Q()) {
|
|
4207
|
+
case 40: if (m != 108 && ca(C, d - 1) == 58) {
|
|
4208
|
+
sa(C += oa(Ta(v), "&", "&\f"), "&\f", ra(l ? s[l - 1] : 0)) != -1 && (_ = -1);
|
|
4164
4209
|
break;
|
|
4165
4210
|
}
|
|
4166
4211
|
case 34:
|
|
4167
4212
|
case 39:
|
|
4168
4213
|
case 91:
|
|
4169
|
-
C +=
|
|
4214
|
+
C += Ta(v);
|
|
4170
4215
|
break;
|
|
4171
4216
|
case 9:
|
|
4172
4217
|
case 10:
|
|
4173
4218
|
case 13:
|
|
4174
4219
|
case 32:
|
|
4175
|
-
C +=
|
|
4220
|
+
C += Ea(m);
|
|
4176
4221
|
break;
|
|
4177
4222
|
case 92:
|
|
4178
|
-
C +=
|
|
4223
|
+
C += Da(ba() - 1, 7);
|
|
4179
4224
|
continue;
|
|
4180
4225
|
case 47:
|
|
4181
|
-
switch (
|
|
4226
|
+
switch (ya()) {
|
|
4182
4227
|
case 42:
|
|
4183
4228
|
case 47:
|
|
4184
|
-
|
|
4229
|
+
da(Pa(ka(Q(), ba()), t, n, c), c), (Sa(m || 1) == 5 || Sa(ya() || 1) == 5) && Y(C) && la(C, -1, void 0) !== " " && (C += " ");
|
|
4185
4230
|
break;
|
|
4186
4231
|
default: C += "/";
|
|
4187
4232
|
}
|
|
4188
4233
|
break;
|
|
4189
|
-
case 123 * h: s[l++] =
|
|
4234
|
+
case 123 * h: s[l++] = Y(C) * _;
|
|
4190
4235
|
case 125 * h:
|
|
4191
4236
|
case 59:
|
|
4192
4237
|
case 0:
|
|
@@ -4194,388 +4239,388 @@ function Da(e, t, n, r, i, a, o, s, c) {
|
|
|
4194
4239
|
case 0:
|
|
4195
4240
|
case 125: g = 0;
|
|
4196
4241
|
case 59 + u:
|
|
4197
|
-
_ == -1 && (C =
|
|
4242
|
+
_ == -1 && (C = oa(C, /\f/g, "")), p > 0 && (Y(C) - d || h === 0 && m === 47) && da(p > 32 ? Fa(C + ";", r, n, d - 1, c) : Fa(oa(C, " ", "") + ";", r, n, d - 2, c), c);
|
|
4198
4243
|
break;
|
|
4199
4244
|
case 59: C += ";";
|
|
4200
|
-
default: if (
|
|
4245
|
+
default: if (da(S = Na(C, t, n, l, u, i, s, y, b = [], x = [], d, a), a), v === 123) if (u === 0) Ma(C, t, S, S, b, a, d, s, x);
|
|
4201
4246
|
else {
|
|
4202
4247
|
switch (f) {
|
|
4203
|
-
case 99: if (
|
|
4204
|
-
case 108: if (
|
|
4248
|
+
case 99: if (ca(C, 3) === 110) break;
|
|
4249
|
+
case 108: if (ca(C, 2) === 97) break;
|
|
4205
4250
|
default: u = 0;
|
|
4206
4251
|
case 100:
|
|
4207
4252
|
case 109:
|
|
4208
4253
|
case 115:
|
|
4209
4254
|
}
|
|
4210
|
-
u ?
|
|
4255
|
+
u ? Ma(e, S, S, r && da(Na(e, S, S, 0, 0, i, s, y, i, b = [], d, x), x), i, x, d, s, r ? b : x) : Ma(C, S, S, S, [""], x, 0, s, x);
|
|
4211
4256
|
}
|
|
4212
4257
|
}
|
|
4213
4258
|
l = u = p = 0, h = _ = 1, y = C = "", d = o;
|
|
4214
4259
|
break;
|
|
4215
|
-
case 58: d = 1 +
|
|
4260
|
+
case 58: d = 1 + Y(C), p = m;
|
|
4216
4261
|
default:
|
|
4217
4262
|
if (h < 1) {
|
|
4218
4263
|
if (v == 123) --h;
|
|
4219
|
-
else if (v == 125 && h++ == 0 &&
|
|
4264
|
+
else if (v == 125 && h++ == 0 && va() == 125) continue;
|
|
4220
4265
|
}
|
|
4221
|
-
switch (C +=
|
|
4266
|
+
switch (C += ia(v), v * h) {
|
|
4222
4267
|
case 38:
|
|
4223
4268
|
_ = u > 0 ? 1 : (C += "\f", -1);
|
|
4224
4269
|
break;
|
|
4225
4270
|
case 44:
|
|
4226
|
-
s[l++] = (
|
|
4271
|
+
s[l++] = (Y(C) - 1) * _, _ = 1;
|
|
4227
4272
|
break;
|
|
4228
4273
|
case 64:
|
|
4229
|
-
|
|
4274
|
+
ya() === 45 && (C += Ta(Q())), f = ya(), u = d = Y(y = C += Aa(ba())), v++;
|
|
4230
4275
|
break;
|
|
4231
|
-
case 45: m === 45 &&
|
|
4276
|
+
case 45: m === 45 && Y(C) == 2 && (h = 0);
|
|
4232
4277
|
}
|
|
4233
4278
|
}
|
|
4234
4279
|
return a;
|
|
4235
4280
|
}
|
|
4236
|
-
function
|
|
4237
|
-
for (var f = i - 1, p = i === 0 ? a : [""], m =
|
|
4238
|
-
return
|
|
4281
|
+
function Na(e, t, n, r, i, a, o, s, c, l, u, d) {
|
|
4282
|
+
for (var f = i - 1, p = i === 0 ? a : [""], m = ua(p), h = 0, g = 0, _ = 0; h < r; ++h) for (var v = 0, y = la(e, f + 1, f = ra(g = o[h])), b = e; v < m; ++v) (b = aa(g > 0 ? p[v] + " " + y : oa(y, /&\f/g, p[v]))) && (c[_++] = b);
|
|
4283
|
+
return ga(e, t, n, i === 0 ? Zi : s, c, l, u, d);
|
|
4239
4284
|
}
|
|
4240
|
-
function
|
|
4241
|
-
return
|
|
4285
|
+
function Pa(e, t, n, r) {
|
|
4286
|
+
return ga(e, t, n, Xi, ia(_a()), la(e, 2, -2), 0, r);
|
|
4242
4287
|
}
|
|
4243
|
-
function
|
|
4244
|
-
return
|
|
4288
|
+
function Fa(e, t, n, r, i) {
|
|
4289
|
+
return ga(e, t, n, Qi, la(e, 0, r), la(e, r + 1, -1), r, i);
|
|
4245
4290
|
}
|
|
4246
4291
|
//#endregion
|
|
4247
4292
|
//#region node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Serializer.js
|
|
4248
|
-
function
|
|
4293
|
+
function Ia(e, t) {
|
|
4249
4294
|
for (var n = "", r = 0; r < e.length; r++) n += t(e[r], r, e, t) || "";
|
|
4250
4295
|
return n;
|
|
4251
4296
|
}
|
|
4252
|
-
function
|
|
4297
|
+
function La(e, t, n, r) {
|
|
4253
4298
|
switch (e.type) {
|
|
4254
|
-
case
|
|
4255
|
-
case
|
|
4256
|
-
case
|
|
4257
|
-
case
|
|
4258
|
-
case
|
|
4259
|
-
case
|
|
4260
|
-
case
|
|
4299
|
+
case na: if (e.children.length) break;
|
|
4300
|
+
case $i:
|
|
4301
|
+
case ea:
|
|
4302
|
+
case Qi: return e.return = e.return || e.value;
|
|
4303
|
+
case Xi: return "";
|
|
4304
|
+
case ta: return e.return = e.value + "{" + Ia(e.children, r) + "}";
|
|
4305
|
+
case Zi: if (!Y(e.value = e.props.join(","))) return "";
|
|
4261
4306
|
}
|
|
4262
|
-
return
|
|
4307
|
+
return Y(n = Ia(e.children, r)) ? e.return = e.value + "{" + n + "}" : "";
|
|
4263
4308
|
}
|
|
4264
4309
|
//#endregion
|
|
4265
4310
|
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeKeys.js
|
|
4266
|
-
var
|
|
4267
|
-
function
|
|
4268
|
-
if (!
|
|
4311
|
+
var Ra = oe(Object.keys, Object), za = Object.prototype.hasOwnProperty;
|
|
4312
|
+
function Ba(e) {
|
|
4313
|
+
if (!me(e)) return Ra(e);
|
|
4269
4314
|
var t = [];
|
|
4270
|
-
for (var n in Object(e))
|
|
4315
|
+
for (var n in Object(e)) za.call(e, n) && n != "constructor" && t.push(n);
|
|
4271
4316
|
return t;
|
|
4272
4317
|
}
|
|
4273
4318
|
//#endregion
|
|
4274
4319
|
//#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_DataView.js
|
|
4275
|
-
var
|
|
4276
|
-
(
|
|
4277
|
-
var t =
|
|
4320
|
+
var Va = ge(se, "DataView"), Ha = ge(se, "Promise"), Ua = ge(se, "Set"), Wa = ge(se, "WeakMap"), Ga = "[object Map]", Ka = "[object Object]", qa = "[object Promise]", Ja = "[object Set]", Ya = "[object WeakMap]", Xa = "[object DataView]", Za = ae(Va), Qa = ae(ce), $a = ae(Ha), eo = ae(Ua), to = ae(Wa), no = le;
|
|
4321
|
+
(Va && no(new Va(/* @__PURE__ */ new ArrayBuffer(1))) != Xa || ce && no(new ce()) != Ga || Ha && no(Ha.resolve()) != qa || Ua && no(new Ua()) != Ja || Wa && no(new Wa()) != Ya) && (no = function(e) {
|
|
4322
|
+
var t = le(e), n = t == Ka ? e.constructor : void 0, r = n ? ae(n) : "";
|
|
4278
4323
|
if (r) switch (r) {
|
|
4279
|
-
case
|
|
4280
|
-
case
|
|
4281
|
-
case
|
|
4282
|
-
case
|
|
4283
|
-
case
|
|
4324
|
+
case Za: return Xa;
|
|
4325
|
+
case Qa: return Ga;
|
|
4326
|
+
case $a: return qa;
|
|
4327
|
+
case eo: return Ja;
|
|
4328
|
+
case to: return Ya;
|
|
4284
4329
|
}
|
|
4285
4330
|
return t;
|
|
4286
4331
|
});
|
|
4287
|
-
var
|
|
4288
|
-
function
|
|
4332
|
+
var ro = no, io = "[object Map]", ao = "[object Set]", oo = Object.prototype.hasOwnProperty;
|
|
4333
|
+
function so(e) {
|
|
4289
4334
|
if (e == null) return !0;
|
|
4290
|
-
if (
|
|
4291
|
-
var t =
|
|
4292
|
-
if (t ==
|
|
4293
|
-
if (
|
|
4294
|
-
for (var n in e) if (
|
|
4335
|
+
if (pe(e) && (ue(e) || typeof e == "string" || typeof e.splice == "function" || de(e) || fe(e) || he(e))) return !e.length;
|
|
4336
|
+
var t = ro(e);
|
|
4337
|
+
if (t == io || t == ao) return !e.size;
|
|
4338
|
+
if (me(e)) return !Ba(e).length;
|
|
4339
|
+
for (var n in e) if (oo.call(e, n)) return !1;
|
|
4295
4340
|
return !0;
|
|
4296
4341
|
}
|
|
4297
4342
|
//#endregion
|
|
4298
4343
|
//#region node_modules/.pnpm/mermaid@11.12.0/node_modules/mermaid/dist/mermaid.core.mjs
|
|
4299
|
-
var
|
|
4300
|
-
id:
|
|
4344
|
+
var co = "c4", lo = {
|
|
4345
|
+
id: co,
|
|
4301
4346
|
detector: /* @__PURE__ */ a((e) => /^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e), "detector"),
|
|
4302
4347
|
loader: /* @__PURE__ */ a(async () => {
|
|
4303
4348
|
let { diagram: e } = await import("./c4Diagram-YG6GDRKO-CIThIYo6.js");
|
|
4304
4349
|
return {
|
|
4305
|
-
id:
|
|
4350
|
+
id: co,
|
|
4306
4351
|
diagram: e
|
|
4307
4352
|
};
|
|
4308
4353
|
}, "loader")
|
|
4309
|
-
},
|
|
4310
|
-
id:
|
|
4354
|
+
}, uo = "flowchart", fo = {
|
|
4355
|
+
id: uo,
|
|
4311
4356
|
detector: /* @__PURE__ */ a((e, t) => t?.flowchart?.defaultRenderer === "dagre-wrapper" || t?.flowchart?.defaultRenderer === "elk" ? !1 : /^\s*graph/.test(e), "detector"),
|
|
4312
4357
|
loader: /* @__PURE__ */ a(async () => {
|
|
4313
|
-
let { diagram: e } = await import("./flowDiagram-NV44I4VS-
|
|
4358
|
+
let { diagram: e } = await import("./flowDiagram-NV44I4VS-CNGhNzPd.js");
|
|
4314
4359
|
return {
|
|
4315
|
-
id:
|
|
4360
|
+
id: uo,
|
|
4316
4361
|
diagram: e
|
|
4317
4362
|
};
|
|
4318
4363
|
}, "loader")
|
|
4319
|
-
},
|
|
4320
|
-
id:
|
|
4364
|
+
}, po = "flowchart-v2", mo = {
|
|
4365
|
+
id: po,
|
|
4321
4366
|
detector: /* @__PURE__ */ a((e, t) => t?.flowchart?.defaultRenderer === "dagre-d3" ? !1 : (t?.flowchart?.defaultRenderer === "elk" && (t.layout = "elk"), /^\s*graph/.test(e) && t?.flowchart?.defaultRenderer === "dagre-wrapper" ? !0 : /^\s*flowchart/.test(e)), "detector"),
|
|
4322
4367
|
loader: /* @__PURE__ */ a(async () => {
|
|
4323
|
-
let { diagram: e } = await import("./flowDiagram-NV44I4VS-
|
|
4368
|
+
let { diagram: e } = await import("./flowDiagram-NV44I4VS-CNGhNzPd.js");
|
|
4324
4369
|
return {
|
|
4325
|
-
id:
|
|
4370
|
+
id: po,
|
|
4326
4371
|
diagram: e
|
|
4327
4372
|
};
|
|
4328
4373
|
}, "loader")
|
|
4329
|
-
},
|
|
4330
|
-
id:
|
|
4374
|
+
}, ho = "er", go = {
|
|
4375
|
+
id: ho,
|
|
4331
4376
|
detector: /* @__PURE__ */ a((e) => /^\s*erDiagram/.test(e), "detector"),
|
|
4332
4377
|
loader: /* @__PURE__ */ a(async () => {
|
|
4333
|
-
let { diagram: e } = await import("./erDiagram-Q2GNP2WA-
|
|
4378
|
+
let { diagram: e } = await import("./erDiagram-Q2GNP2WA-IK20i1UF.js");
|
|
4334
4379
|
return {
|
|
4335
|
-
id:
|
|
4380
|
+
id: ho,
|
|
4336
4381
|
diagram: e
|
|
4337
4382
|
};
|
|
4338
4383
|
}, "loader")
|
|
4339
|
-
},
|
|
4340
|
-
id:
|
|
4384
|
+
}, _o = "gitGraph", vo = {
|
|
4385
|
+
id: _o,
|
|
4341
4386
|
detector: /* @__PURE__ */ a((e) => /^\s*gitGraph/.test(e), "detector"),
|
|
4342
4387
|
loader: /* @__PURE__ */ a(async () => {
|
|
4343
|
-
let { diagram: e } = await import("./gitGraphDiagram-NY62KEGX-
|
|
4388
|
+
let { diagram: e } = await import("./gitGraphDiagram-NY62KEGX-5XzjpXsZ.js");
|
|
4344
4389
|
return {
|
|
4345
|
-
id:
|
|
4390
|
+
id: _o,
|
|
4346
4391
|
diagram: e
|
|
4347
4392
|
};
|
|
4348
4393
|
}, "loader")
|
|
4349
|
-
},
|
|
4350
|
-
id:
|
|
4394
|
+
}, yo = "gantt", bo = {
|
|
4395
|
+
id: yo,
|
|
4351
4396
|
detector: /* @__PURE__ */ a((e) => /^\s*gantt/.test(e), "detector"),
|
|
4352
4397
|
loader: /* @__PURE__ */ a(async () => {
|
|
4353
4398
|
let { diagram: e } = await import("./ganttDiagram-LVOFAZNH-DqT7pu4m.js");
|
|
4354
4399
|
return {
|
|
4355
|
-
id:
|
|
4400
|
+
id: yo,
|
|
4356
4401
|
diagram: e
|
|
4357
4402
|
};
|
|
4358
4403
|
}, "loader")
|
|
4359
|
-
},
|
|
4360
|
-
id:
|
|
4404
|
+
}, xo = "info", So = {
|
|
4405
|
+
id: xo,
|
|
4361
4406
|
detector: /* @__PURE__ */ a((e) => /^\s*info/.test(e), "detector"),
|
|
4362
4407
|
loader: /* @__PURE__ */ a(async () => {
|
|
4363
|
-
let { diagram: e } = await import("./infoDiagram-F6ZHWCRC-
|
|
4408
|
+
let { diagram: e } = await import("./infoDiagram-F6ZHWCRC-DkQHT7U-.js");
|
|
4364
4409
|
return {
|
|
4365
|
-
id:
|
|
4410
|
+
id: xo,
|
|
4366
4411
|
diagram: e
|
|
4367
4412
|
};
|
|
4368
4413
|
}, "loader")
|
|
4369
|
-
},
|
|
4370
|
-
id:
|
|
4414
|
+
}, Co = "pie", wo = {
|
|
4415
|
+
id: Co,
|
|
4371
4416
|
detector: /* @__PURE__ */ a((e) => /^\s*pie/.test(e), "detector"),
|
|
4372
4417
|
loader: /* @__PURE__ */ a(async () => {
|
|
4373
|
-
let { diagram: e } = await import("./pieDiagram-ADFJNKIX-
|
|
4418
|
+
let { diagram: e } = await import("./pieDiagram-ADFJNKIX-BeFtJtu7.js");
|
|
4374
4419
|
return {
|
|
4375
|
-
id:
|
|
4420
|
+
id: Co,
|
|
4376
4421
|
diagram: e
|
|
4377
4422
|
};
|
|
4378
4423
|
}, "loader")
|
|
4379
|
-
},
|
|
4380
|
-
id:
|
|
4424
|
+
}, To = "quadrantChart", Eo = {
|
|
4425
|
+
id: To,
|
|
4381
4426
|
detector: /* @__PURE__ */ a((e) => /^\s*quadrantChart/.test(e), "detector"),
|
|
4382
4427
|
loader: /* @__PURE__ */ a(async () => {
|
|
4383
4428
|
let { diagram: e } = await import("./quadrantDiagram-AYHSOK5B-DRutDK03.js");
|
|
4384
4429
|
return {
|
|
4385
|
-
id:
|
|
4430
|
+
id: To,
|
|
4386
4431
|
diagram: e
|
|
4387
4432
|
};
|
|
4388
4433
|
}, "loader")
|
|
4389
|
-
},
|
|
4390
|
-
id:
|
|
4434
|
+
}, Do = "xychart", Oo = {
|
|
4435
|
+
id: Do,
|
|
4391
4436
|
detector: /* @__PURE__ */ a((e) => /^\s*xychart(-beta)?/.test(e), "detector"),
|
|
4392
4437
|
loader: /* @__PURE__ */ a(async () => {
|
|
4393
|
-
let { diagram: e } = await import("./xychartDiagram-PRI3JC2R-
|
|
4438
|
+
let { diagram: e } = await import("./xychartDiagram-PRI3JC2R-fFFl9vIl.js");
|
|
4394
4439
|
return {
|
|
4395
|
-
id:
|
|
4440
|
+
id: Do,
|
|
4396
4441
|
diagram: e
|
|
4397
4442
|
};
|
|
4398
4443
|
}, "loader")
|
|
4399
|
-
},
|
|
4400
|
-
id:
|
|
4444
|
+
}, ko = "requirement", Ao = {
|
|
4445
|
+
id: ko,
|
|
4401
4446
|
detector: /* @__PURE__ */ a((e) => /^\s*requirement(Diagram)?/.test(e), "detector"),
|
|
4402
4447
|
loader: /* @__PURE__ */ a(async () => {
|
|
4403
|
-
let { diagram: e } = await import("./requirementDiagram-UZGBJVZJ-
|
|
4448
|
+
let { diagram: e } = await import("./requirementDiagram-UZGBJVZJ-BBaCEEM9.js");
|
|
4404
4449
|
return {
|
|
4405
|
-
id:
|
|
4450
|
+
id: ko,
|
|
4406
4451
|
diagram: e
|
|
4407
4452
|
};
|
|
4408
4453
|
}, "loader")
|
|
4409
|
-
},
|
|
4410
|
-
id:
|
|
4454
|
+
}, jo = "sequence", Mo = {
|
|
4455
|
+
id: jo,
|
|
4411
4456
|
detector: /* @__PURE__ */ a((e) => /^\s*sequenceDiagram/.test(e), "detector"),
|
|
4412
4457
|
loader: /* @__PURE__ */ a(async () => {
|
|
4413
|
-
let { diagram: e } = await import("./sequenceDiagram-WL72ISMW-
|
|
4458
|
+
let { diagram: e } = await import("./sequenceDiagram-WL72ISMW-Dkuew2iC.js");
|
|
4414
4459
|
return {
|
|
4415
|
-
id:
|
|
4460
|
+
id: jo,
|
|
4416
4461
|
diagram: e
|
|
4417
4462
|
};
|
|
4418
4463
|
}, "loader")
|
|
4419
|
-
},
|
|
4420
|
-
id:
|
|
4464
|
+
}, No = "class", Po = {
|
|
4465
|
+
id: No,
|
|
4421
4466
|
detector: /* @__PURE__ */ a((e, t) => t?.class?.defaultRenderer === "dagre-wrapper" ? !1 : /^\s*classDiagram/.test(e), "detector"),
|
|
4422
4467
|
loader: /* @__PURE__ */ a(async () => {
|
|
4423
|
-
let { diagram: e } = await import("./classDiagram-2ON5EDUG-
|
|
4468
|
+
let { diagram: e } = await import("./classDiagram-2ON5EDUG-BHTa7ohd.js");
|
|
4424
4469
|
return {
|
|
4425
|
-
id:
|
|
4470
|
+
id: No,
|
|
4426
4471
|
diagram: e
|
|
4427
4472
|
};
|
|
4428
4473
|
}, "loader")
|
|
4429
|
-
},
|
|
4430
|
-
id:
|
|
4474
|
+
}, Fo = "classDiagram", Io = {
|
|
4475
|
+
id: Fo,
|
|
4431
4476
|
detector: /* @__PURE__ */ a((e, t) => /^\s*classDiagram/.test(e) && t?.class?.defaultRenderer === "dagre-wrapper" ? !0 : /^\s*classDiagram-v2/.test(e), "detector"),
|
|
4432
4477
|
loader: /* @__PURE__ */ a(async () => {
|
|
4433
|
-
let { diagram: e } = await import("./classDiagram-v2-WZHVMYZB-
|
|
4478
|
+
let { diagram: e } = await import("./classDiagram-v2-WZHVMYZB-C6TyNDuv.js");
|
|
4434
4479
|
return {
|
|
4435
|
-
id:
|
|
4480
|
+
id: Fo,
|
|
4436
4481
|
diagram: e
|
|
4437
4482
|
};
|
|
4438
4483
|
}, "loader")
|
|
4439
|
-
},
|
|
4440
|
-
id:
|
|
4484
|
+
}, Lo = "state", Ro = {
|
|
4485
|
+
id: Lo,
|
|
4441
4486
|
detector: /* @__PURE__ */ a((e, t) => t?.state?.defaultRenderer === "dagre-wrapper" ? !1 : /^\s*stateDiagram/.test(e), "detector"),
|
|
4442
4487
|
loader: /* @__PURE__ */ a(async () => {
|
|
4443
|
-
let { diagram: e } = await import("./stateDiagram-FKZM4ZOC-
|
|
4488
|
+
let { diagram: e } = await import("./stateDiagram-FKZM4ZOC-DDcYFsZV.js");
|
|
4444
4489
|
return {
|
|
4445
|
-
id:
|
|
4490
|
+
id: Lo,
|
|
4446
4491
|
diagram: e
|
|
4447
4492
|
};
|
|
4448
4493
|
}, "loader")
|
|
4449
|
-
},
|
|
4450
|
-
id:
|
|
4494
|
+
}, zo = "stateDiagram", Bo = {
|
|
4495
|
+
id: zo,
|
|
4451
4496
|
detector: /* @__PURE__ */ a((e, t) => !!(/^\s*stateDiagram-v2/.test(e) || /^\s*stateDiagram/.test(e) && t?.state?.defaultRenderer === "dagre-wrapper"), "detector"),
|
|
4452
4497
|
loader: /* @__PURE__ */ a(async () => {
|
|
4453
|
-
let { diagram: e } = await import("./stateDiagram-v2-4FDKWEC3-
|
|
4498
|
+
let { diagram: e } = await import("./stateDiagram-v2-4FDKWEC3-BFC2m0Ox.js");
|
|
4454
4499
|
return {
|
|
4455
|
-
id:
|
|
4500
|
+
id: zo,
|
|
4456
4501
|
diagram: e
|
|
4457
4502
|
};
|
|
4458
4503
|
}, "loader")
|
|
4459
|
-
},
|
|
4460
|
-
id:
|
|
4504
|
+
}, Vo = "journey", Ho = {
|
|
4505
|
+
id: Vo,
|
|
4461
4506
|
detector: /* @__PURE__ */ a((e) => /^\s*journey/.test(e), "detector"),
|
|
4462
4507
|
loader: /* @__PURE__ */ a(async () => {
|
|
4463
4508
|
let { diagram: e } = await import("./journeyDiagram-XKPGCS4Q-DB7INfrf.js");
|
|
4464
4509
|
return {
|
|
4465
|
-
id:
|
|
4510
|
+
id: Vo,
|
|
4466
4511
|
diagram: e
|
|
4467
4512
|
};
|
|
4468
4513
|
}, "loader")
|
|
4469
|
-
},
|
|
4514
|
+
}, Uo = { draw: /* @__PURE__ */ a((e, t, n) => {
|
|
4470
4515
|
i.debug("rendering svg for syntax error\n");
|
|
4471
|
-
let r =
|
|
4516
|
+
let r = ht(t), a = r.append("g");
|
|
4472
4517
|
r.attr("viewBox", "0 0 2412 512"), _(r, 100, 512, !0), a.append("path").attr("class", "error-icon").attr("d", "m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"), a.append("path").attr("class", "error-icon").attr("d", "m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"), a.append("path").attr("class", "error-icon").attr("d", "m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"), a.append("path").attr("class", "error-icon").attr("d", "m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"), a.append("path").attr("class", "error-icon").attr("d", "m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"), a.append("path").attr("class", "error-icon").attr("d", "m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"), a.append("text").attr("class", "error-text").attr("x", 1440).attr("y", 250).attr("font-size", "150px").style("text-anchor", "middle").text("Syntax error in text"), a.append("text").attr("class", "error-text").attr("x", 1250).attr("y", 400).attr("font-size", "100px").style("text-anchor", "middle").text(`mermaid version ${n}`);
|
|
4473
|
-
}, "draw") },
|
|
4518
|
+
}, "draw") }, Wo = Uo, Go = {
|
|
4474
4519
|
db: {},
|
|
4475
|
-
renderer:
|
|
4520
|
+
renderer: Uo,
|
|
4476
4521
|
parser: { parse: /* @__PURE__ */ a(() => {}, "parse") }
|
|
4477
|
-
},
|
|
4478
|
-
id:
|
|
4522
|
+
}, Ko = "flowchart-elk", qo = {
|
|
4523
|
+
id: Ko,
|
|
4479
4524
|
detector: /* @__PURE__ */ a((e, t = {}) => /^\s*flowchart-elk/.test(e) || /^\s*(flowchart|graph)/.test(e) && t?.flowchart?.defaultRenderer === "elk" ? (t.layout = "elk", !0) : !1, "detector"),
|
|
4480
4525
|
loader: /* @__PURE__ */ a(async () => {
|
|
4481
|
-
let { diagram: e } = await import("./flowDiagram-NV44I4VS-
|
|
4526
|
+
let { diagram: e } = await import("./flowDiagram-NV44I4VS-CNGhNzPd.js");
|
|
4482
4527
|
return {
|
|
4483
|
-
id:
|
|
4528
|
+
id: Ko,
|
|
4484
4529
|
diagram: e
|
|
4485
4530
|
};
|
|
4486
4531
|
}, "loader")
|
|
4487
|
-
},
|
|
4488
|
-
id:
|
|
4532
|
+
}, Jo = "timeline", Yo = {
|
|
4533
|
+
id: Jo,
|
|
4489
4534
|
detector: /* @__PURE__ */ a((e) => /^\s*timeline/.test(e), "detector"),
|
|
4490
4535
|
loader: /* @__PURE__ */ a(async () => {
|
|
4491
4536
|
let { diagram: e } = await import("./timeline-definition-IT6M3QCI-C9VMls3W.js");
|
|
4492
4537
|
return {
|
|
4493
|
-
id:
|
|
4538
|
+
id: Jo,
|
|
4494
4539
|
diagram: e
|
|
4495
4540
|
};
|
|
4496
4541
|
}, "loader")
|
|
4497
|
-
},
|
|
4498
|
-
id:
|
|
4542
|
+
}, Xo = "mindmap", Zo = {
|
|
4543
|
+
id: Xo,
|
|
4499
4544
|
detector: /* @__PURE__ */ a((e) => /^\s*mindmap/.test(e), "detector"),
|
|
4500
4545
|
loader: /* @__PURE__ */ a(async () => {
|
|
4501
|
-
let { diagram: e } = await import("./mindmap-definition-VGOIOE7T-
|
|
4546
|
+
let { diagram: e } = await import("./mindmap-definition-VGOIOE7T-BC0rpEfX.js");
|
|
4502
4547
|
return {
|
|
4503
|
-
id:
|
|
4548
|
+
id: Xo,
|
|
4504
4549
|
diagram: e
|
|
4505
4550
|
};
|
|
4506
4551
|
}, "loader")
|
|
4507
|
-
},
|
|
4508
|
-
id:
|
|
4552
|
+
}, Qo = "kanban", $o = {
|
|
4553
|
+
id: Qo,
|
|
4509
4554
|
detector: /* @__PURE__ */ a((e) => /^\s*kanban/.test(e), "detector"),
|
|
4510
4555
|
loader: /* @__PURE__ */ a(async () => {
|
|
4511
|
-
let { diagram: e } = await import("./kanban-definition-3W4ZIXB7-
|
|
4556
|
+
let { diagram: e } = await import("./kanban-definition-3W4ZIXB7-DRLSBhnr.js");
|
|
4512
4557
|
return {
|
|
4513
|
-
id:
|
|
4558
|
+
id: Qo,
|
|
4514
4559
|
diagram: e
|
|
4515
4560
|
};
|
|
4516
4561
|
}, "loader")
|
|
4517
|
-
},
|
|
4518
|
-
id:
|
|
4562
|
+
}, es = "sankey", ts = {
|
|
4563
|
+
id: es,
|
|
4519
4564
|
detector: /* @__PURE__ */ a((e) => /^\s*sankey(-beta)?/.test(e), "detector"),
|
|
4520
4565
|
loader: /* @__PURE__ */ a(async () => {
|
|
4521
4566
|
let { diagram: e } = await import("./sankeyDiagram-TZEHDZUN-DD6bkI4Z.js");
|
|
4522
4567
|
return {
|
|
4523
|
-
id:
|
|
4568
|
+
id: es,
|
|
4524
4569
|
diagram: e
|
|
4525
4570
|
};
|
|
4526
4571
|
}, "loader")
|
|
4527
|
-
},
|
|
4528
|
-
id:
|
|
4572
|
+
}, ns = "packet", rs = {
|
|
4573
|
+
id: ns,
|
|
4529
4574
|
detector: /* @__PURE__ */ a((e) => /^\s*packet(-beta)?/.test(e), "detector"),
|
|
4530
4575
|
loader: /* @__PURE__ */ a(async () => {
|
|
4531
|
-
let { diagram: e } = await import("./diagram-S2PKOQOG-
|
|
4576
|
+
let { diagram: e } = await import("./diagram-S2PKOQOG-CvwN9CX0.js");
|
|
4532
4577
|
return {
|
|
4533
|
-
id:
|
|
4578
|
+
id: ns,
|
|
4534
4579
|
diagram: e
|
|
4535
4580
|
};
|
|
4536
4581
|
}, "loader")
|
|
4537
|
-
},
|
|
4538
|
-
id:
|
|
4582
|
+
}, is = "radar", as = {
|
|
4583
|
+
id: is,
|
|
4539
4584
|
detector: /* @__PURE__ */ a((e) => /^\s*radar-beta/.test(e), "detector"),
|
|
4540
4585
|
loader: /* @__PURE__ */ a(async () => {
|
|
4541
|
-
let { diagram: e } = await import("./diagram-QEK2KX5R-
|
|
4586
|
+
let { diagram: e } = await import("./diagram-QEK2KX5R-CcH7JZwE.js");
|
|
4542
4587
|
return {
|
|
4543
|
-
id:
|
|
4588
|
+
id: is,
|
|
4544
4589
|
diagram: e
|
|
4545
4590
|
};
|
|
4546
4591
|
}, "loader")
|
|
4547
|
-
},
|
|
4548
|
-
id:
|
|
4592
|
+
}, os = "block", ss = {
|
|
4593
|
+
id: os,
|
|
4549
4594
|
detector: /* @__PURE__ */ a((e) => /^\s*block(-beta)?/.test(e), "detector"),
|
|
4550
4595
|
loader: /* @__PURE__ */ a(async () => {
|
|
4551
|
-
let { diagram: e } = await import("./blockDiagram-VD42YOAC-
|
|
4596
|
+
let { diagram: e } = await import("./blockDiagram-VD42YOAC-BkKbQDWm.js");
|
|
4552
4597
|
return {
|
|
4553
|
-
id:
|
|
4598
|
+
id: os,
|
|
4554
4599
|
diagram: e
|
|
4555
4600
|
};
|
|
4556
4601
|
}, "loader")
|
|
4557
|
-
},
|
|
4558
|
-
id:
|
|
4602
|
+
}, cs = "architecture", ls = {
|
|
4603
|
+
id: cs,
|
|
4559
4604
|
detector: /* @__PURE__ */ a((e) => /^\s*architecture/.test(e), "detector"),
|
|
4560
4605
|
loader: /* @__PURE__ */ a(async () => {
|
|
4561
|
-
let { diagram: e } = await import("./architectureDiagram-VXUJARFQ-
|
|
4606
|
+
let { diagram: e } = await import("./architectureDiagram-VXUJARFQ-DUj6ijII.js");
|
|
4562
4607
|
return {
|
|
4563
|
-
id:
|
|
4608
|
+
id: cs,
|
|
4564
4609
|
diagram: e
|
|
4565
4610
|
};
|
|
4566
4611
|
}, "loader")
|
|
4567
|
-
},
|
|
4568
|
-
id:
|
|
4612
|
+
}, us = "treemap", ds = {
|
|
4613
|
+
id: us,
|
|
4569
4614
|
detector: /* @__PURE__ */ a((e) => /^\s*treemap/.test(e), "detector"),
|
|
4570
4615
|
loader: /* @__PURE__ */ a(async () => {
|
|
4571
|
-
let { diagram: e } = await import("./diagram-PSM6KHXK-
|
|
4616
|
+
let { diagram: e } = await import("./diagram-PSM6KHXK-Cziuk6iM.js");
|
|
4572
4617
|
return {
|
|
4573
|
-
id:
|
|
4618
|
+
id: us,
|
|
4574
4619
|
diagram: e
|
|
4575
4620
|
};
|
|
4576
4621
|
}, "loader")
|
|
4577
|
-
},
|
|
4578
|
-
|
|
4622
|
+
}, fs = !1, ps = /* @__PURE__ */ a(() => {
|
|
4623
|
+
fs || (fs = !0, x("error", Go, (e) => e.toLowerCase().trim() === "error"), x("---", {
|
|
4579
4624
|
db: { clear: /* @__PURE__ */ a(() => {}, "clear") },
|
|
4580
4625
|
styles: {},
|
|
4581
4626
|
renderer: { draw: /* @__PURE__ */ a(() => {}, "draw") },
|
|
@@ -4583,8 +4628,8 @@ var ro = "c4", io = {
|
|
|
4583
4628
|
throw Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks");
|
|
4584
4629
|
}, "parse") },
|
|
4585
4630
|
init: /* @__PURE__ */ a(() => null, "init")
|
|
4586
|
-
}, (e) => e.toLowerCase().trimStart().startsWith("---")), c(
|
|
4587
|
-
}, "addDiagrams"),
|
|
4631
|
+
}, (e) => e.toLowerCase().trimStart().startsWith("---")), c(qo, Zo, ls), c(lo, $o, Io, Po, go, bo, So, wo, Ao, Mo, mo, fo, Yo, vo, Bo, Ro, Ho, Eo, ts, rs, Oo, ss, as, ds));
|
|
4632
|
+
}, "addDiagrams"), ms = /* @__PURE__ */ a(async () => {
|
|
4588
4633
|
i.debug("Loading registered diagrams");
|
|
4589
4634
|
let e = (await Promise.allSettled(Object.entries(w).map(async ([e, { detector: t, loader: n }]) => {
|
|
4590
4635
|
if (n) try {
|
|
@@ -4603,12 +4648,12 @@ var ro = "c4", io = {
|
|
|
4603
4648
|
for (let t of e) i.error(t);
|
|
4604
4649
|
throw Error(`Failed to load ${e.length} external diagrams`);
|
|
4605
4650
|
}
|
|
4606
|
-
}, "loadRegisteredDiagrams"),
|
|
4607
|
-
function
|
|
4608
|
-
e.attr("role",
|
|
4651
|
+
}, "loadRegisteredDiagrams"), hs = "graphics-document document";
|
|
4652
|
+
function gs(e, t) {
|
|
4653
|
+
e.attr("role", hs), t !== "" && e.attr("aria-roledescription", t);
|
|
4609
4654
|
}
|
|
4610
|
-
a(
|
|
4611
|
-
function
|
|
4655
|
+
a(gs, "setA11yDiagramInfo");
|
|
4656
|
+
function _s(e, t, n, r) {
|
|
4612
4657
|
if (e.insert !== void 0) {
|
|
4613
4658
|
if (n) {
|
|
4614
4659
|
let t = `chart-desc-${r}`;
|
|
@@ -4620,8 +4665,8 @@ function fs(e, t, n, r) {
|
|
|
4620
4665
|
}
|
|
4621
4666
|
}
|
|
4622
4667
|
}
|
|
4623
|
-
a(
|
|
4624
|
-
var
|
|
4668
|
+
a(_s, "addSVGa11yTitleDescription");
|
|
4669
|
+
var vs = class e {
|
|
4625
4670
|
constructor(e, t, n, r, i) {
|
|
4626
4671
|
this.type = e, this.text = t, this.db = n, this.parser = r, this.renderer = i;
|
|
4627
4672
|
}
|
|
@@ -4651,18 +4696,18 @@ var ps = class e {
|
|
|
4651
4696
|
getType() {
|
|
4652
4697
|
return this.type;
|
|
4653
4698
|
}
|
|
4654
|
-
},
|
|
4655
|
-
|
|
4699
|
+
}, ys = [], bs = /* @__PURE__ */ a(() => {
|
|
4700
|
+
ys.forEach((e) => {
|
|
4656
4701
|
e();
|
|
4657
|
-
}),
|
|
4658
|
-
}, "attachFunctions"),
|
|
4659
|
-
function
|
|
4702
|
+
}), ys = [];
|
|
4703
|
+
}, "attachFunctions"), xs = /* @__PURE__ */ a((e) => e.replace(/^\s*%%(?!{)[^\n]+\n?/gm, "").trimStart(), "cleanupComments");
|
|
4704
|
+
function Ss(e) {
|
|
4660
4705
|
let t = e.match(y);
|
|
4661
4706
|
if (!t) return {
|
|
4662
4707
|
text: e,
|
|
4663
4708
|
metadata: {}
|
|
4664
4709
|
};
|
|
4665
|
-
let n =
|
|
4710
|
+
let n = Wi(t[1], { schema: Ui }) ?? {};
|
|
4666
4711
|
n = typeof n == "object" && !Array.isArray(n) ? n : {};
|
|
4667
4712
|
let r = {};
|
|
4668
4713
|
return n.displayMode && (r.displayMode = n.displayMode.toString()), n.title && (r.title = n.title.toString()), n.config && (r.config = n.config), {
|
|
@@ -4670,47 +4715,47 @@ function _s(e) {
|
|
|
4670
4715
|
metadata: r
|
|
4671
4716
|
};
|
|
4672
4717
|
}
|
|
4673
|
-
a(
|
|
4674
|
-
var
|
|
4675
|
-
let { text: t, metadata: n } =
|
|
4718
|
+
a(Ss, "extractFrontMatter");
|
|
4719
|
+
var Cs = /* @__PURE__ */ a((e) => e.replace(/\r\n?/g, "\n").replace(/<(\w+)([^>]*)>/g, (e, t, n) => "<" + t + n.replace(/="([^"]*)"/g, "='$1'") + ">"), "cleanupText"), ws = /* @__PURE__ */ a((e) => {
|
|
4720
|
+
let { text: t, metadata: n } = Ss(e), { displayMode: r, title: i, config: a = {} } = n;
|
|
4676
4721
|
return r && (a.gantt ||= {}, a.gantt.displayMode = r), {
|
|
4677
4722
|
title: i,
|
|
4678
4723
|
config: a,
|
|
4679
4724
|
text: t
|
|
4680
4725
|
};
|
|
4681
|
-
}, "processFrontmatter"),
|
|
4726
|
+
}, "processFrontmatter"), Ts = /* @__PURE__ */ a((e) => {
|
|
4682
4727
|
let t = N.detectInit(e) ?? {}, n = N.detectDirective(e, "wrap");
|
|
4683
4728
|
return Array.isArray(n) ? t.wrap = n.some(({ type: e }) => e === "wrap") : n?.type === "wrap" && (t.wrap = !0), {
|
|
4684
4729
|
text: ne(e),
|
|
4685
4730
|
directive: t
|
|
4686
4731
|
};
|
|
4687
4732
|
}, "processDirectives");
|
|
4688
|
-
function
|
|
4689
|
-
let t =
|
|
4690
|
-
return e =
|
|
4733
|
+
function Es(e) {
|
|
4734
|
+
let t = ws(Cs(e)), n = Ts(t.text), r = re(t.config, n.directive);
|
|
4735
|
+
return e = xs(n.text), {
|
|
4691
4736
|
code: e,
|
|
4692
4737
|
title: t.title,
|
|
4693
4738
|
config: r
|
|
4694
4739
|
};
|
|
4695
4740
|
}
|
|
4696
|
-
a(
|
|
4697
|
-
function
|
|
4741
|
+
a(Es, "preprocessDiagram");
|
|
4742
|
+
function Ds(e) {
|
|
4698
4743
|
let t = new TextEncoder().encode(e), n = Array.from(t, (e) => String.fromCodePoint(e)).join("");
|
|
4699
4744
|
return btoa(n);
|
|
4700
4745
|
}
|
|
4701
|
-
a(
|
|
4702
|
-
var
|
|
4703
|
-
function
|
|
4704
|
-
let t =
|
|
4746
|
+
a(Ds, "toBase64");
|
|
4747
|
+
var Os = 5e4, ks = "graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa", As = "sandbox", js = "loose", Ms = "http://www.w3.org/2000/svg", Ns = "http://www.w3.org/1999/xlink", Ps = "http://www.w3.org/1999/xhtml", Fs = "100%", Is = "100%", Ls = "border:0;margin:0;", Rs = "margin:0", zs = "allow-top-navigation-by-user-activation allow-popups", Bs = "The \"iframe\" tag is not supported by your browser.", Vs = ["foreignobject"], Hs = ["dominant-baseline"];
|
|
4748
|
+
function Us(e) {
|
|
4749
|
+
let t = Es(e);
|
|
4705
4750
|
return l(), C(t.config ?? {}), t;
|
|
4706
4751
|
}
|
|
4707
|
-
a(
|
|
4708
|
-
async function
|
|
4709
|
-
|
|
4752
|
+
a(Us, "processAndSetConfigs");
|
|
4753
|
+
async function Ws(e, t) {
|
|
4754
|
+
ps();
|
|
4710
4755
|
try {
|
|
4711
|
-
let { code: t, config: n } =
|
|
4756
|
+
let { code: t, config: n } = Us(e);
|
|
4712
4757
|
return {
|
|
4713
|
-
diagramType: (await
|
|
4758
|
+
diagramType: (await tc(t)).type,
|
|
4714
4759
|
config: n
|
|
4715
4760
|
};
|
|
4716
4761
|
} catch (e) {
|
|
@@ -4718,9 +4763,9 @@ async function zs(e, t) {
|
|
|
4718
4763
|
throw e;
|
|
4719
4764
|
}
|
|
4720
4765
|
}
|
|
4721
|
-
a(
|
|
4722
|
-
var
|
|
4723
|
-
.${e} ${t} { ${n.join(" !important; ")} !important; }`, "cssImportantStyles"),
|
|
4766
|
+
a(Ws, "parse");
|
|
4767
|
+
var Gs = /* @__PURE__ */ a((e, t, n = []) => `
|
|
4768
|
+
.${e} ${t} { ${n.join(" !important; ")} !important; }`, "cssImportantStyles"), Ks = /* @__PURE__ */ a((e, t = /* @__PURE__ */ new Map()) => {
|
|
4724
4769
|
let n = "";
|
|
4725
4770
|
if (e.themeCSS !== void 0 && (n += `
|
|
4726
4771
|
${e.themeCSS}`), e.fontFamily !== void 0 && (n += `
|
|
@@ -4734,90 +4779,90 @@ ${e.themeCSS}`), e.fontFamily !== void 0 && (n += `
|
|
|
4734
4779
|
"path"
|
|
4735
4780
|
];
|
|
4736
4781
|
t.forEach((e) => {
|
|
4737
|
-
|
|
4738
|
-
n +=
|
|
4739
|
-
}),
|
|
4782
|
+
so(e.styles) || r.forEach((t) => {
|
|
4783
|
+
n += Gs(e.id, t, e.styles);
|
|
4784
|
+
}), so(e.textStyles) || (n += Gs(e.id, "tspan", (e?.textStyles || []).map((e) => e.replace("color", "fill"))));
|
|
4740
4785
|
});
|
|
4741
4786
|
}
|
|
4742
4787
|
return n;
|
|
4743
|
-
}, "createCssStyles"),
|
|
4788
|
+
}, "createCssStyles"), qs = /* @__PURE__ */ a((e, t, n, r) => Ia(ja(`${r}{${T(t, Ks(e, n), e.themeVariables)}}`), La), "createUserStyles"), Js = /* @__PURE__ */ a((e = "", t, n) => {
|
|
4744
4789
|
let r = e;
|
|
4745
4790
|
return !n && !t && (r = r.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g, "marker-end=\"url(#")), r = te(r), r = r.replace(/<br>/g, "<br/>"), r;
|
|
4746
|
-
}, "cleanUpSvgCode"),
|
|
4747
|
-
${
|
|
4748
|
-
</iframe>`, "putIntoIFrame"),
|
|
4791
|
+
}, "cleanUpSvgCode"), Ys = /* @__PURE__ */ a((e = "", t) => `<iframe style="width:${Fs};height:${t?.viewBox?.baseVal?.height ? t.viewBox.baseVal.height + "px" : Is};${Ls}" src="data:text/html;charset=UTF-8;base64,${Ds(`<body style="${Rs}">${e}</body>`)}" sandbox="${zs}">
|
|
4792
|
+
${Bs}
|
|
4793
|
+
</iframe>`, "putIntoIFrame"), Xs = /* @__PURE__ */ a((e, t, n, r, i) => {
|
|
4749
4794
|
let a = e.append("div");
|
|
4750
4795
|
a.attr("id", n), r && a.attr("style", r);
|
|
4751
|
-
let o = a.append("svg").attr("id", t).attr("width", "100%").attr("xmlns",
|
|
4796
|
+
let o = a.append("svg").attr("id", t).attr("width", "100%").attr("xmlns", Ms);
|
|
4752
4797
|
return i && o.attr("xmlns:xlink", i), o.append("g"), e;
|
|
4753
4798
|
}, "appendDivSvgG");
|
|
4754
|
-
function
|
|
4799
|
+
function Zs(e, t) {
|
|
4755
4800
|
return e.append("iframe").attr("id", t).attr("style", "width: 100%; height: 100%;").attr("sandbox", "");
|
|
4756
4801
|
}
|
|
4757
|
-
a(
|
|
4758
|
-
var
|
|
4802
|
+
a(Zs, "sandboxedIframe");
|
|
4803
|
+
var Qs = /* @__PURE__ */ a((e, t, n, r) => {
|
|
4759
4804
|
e.getElementById(t)?.remove(), e.getElementById(n)?.remove(), e.getElementById(r)?.remove();
|
|
4760
|
-
}, "removeExistingElements"),
|
|
4761
|
-
|
|
4762
|
-
let r =
|
|
4805
|
+
}, "removeExistingElements"), $s = /* @__PURE__ */ a(async function(e, t, n) {
|
|
4806
|
+
ps();
|
|
4807
|
+
let r = Us(t);
|
|
4763
4808
|
t = r.code;
|
|
4764
4809
|
let s = j();
|
|
4765
|
-
i.debug(s), t.length > (s?.maxTextSize ??
|
|
4810
|
+
i.debug(s), t.length > (s?.maxTextSize ?? Os) && (t = ks);
|
|
4766
4811
|
let c = "#" + e, l = "i" + e, u = "#" + l, d = "d" + e, f = "#" + d, p = /* @__PURE__ */ a(() => {
|
|
4767
4812
|
let e = o(g ? u : f).node();
|
|
4768
4813
|
e && "remove" in e && e.remove();
|
|
4769
|
-
}, "removeTempElements"), h = o("body"), g = s.securityLevel ===
|
|
4770
|
-
n === void 0 ? (
|
|
4814
|
+
}, "removeTempElements"), h = o("body"), g = s.securityLevel === As, _ = s.securityLevel === js, v = s.fontFamily;
|
|
4815
|
+
n === void 0 ? (Qs(document, e, d, l), g ? (h = o(Zs(o("body"), l).nodes()[0].contentDocument.body), h.node().style.margin = 0) : h = o("body"), Xs(h, e, d)) : (n && (n.innerHTML = ""), g ? (h = o(Zs(o(n), l).nodes()[0].contentDocument.body), h.node().style.margin = 0) : h = o(n), Xs(h, e, d, `font-family: ${v}`, Ns));
|
|
4771
4816
|
let y, x;
|
|
4772
4817
|
try {
|
|
4773
|
-
y = await
|
|
4818
|
+
y = await vs.fromText(t, { title: r.title });
|
|
4774
4819
|
} catch (e) {
|
|
4775
4820
|
if (s.suppressErrorRendering) throw p(), e;
|
|
4776
|
-
y = await
|
|
4821
|
+
y = await vs.fromText("error"), x = e;
|
|
4777
4822
|
}
|
|
4778
|
-
let S = h.select(f).node(), C = y.type, w = S.firstChild, T = w.firstChild, E = y.renderer.getClasses?.(t, y), D =
|
|
4823
|
+
let S = h.select(f).node(), C = y.type, w = S.firstChild, T = w.firstChild, E = y.renderer.getClasses?.(t, y), D = qs(s, C, E, c), O = document.createElement("style");
|
|
4779
4824
|
O.innerHTML = D, w.insertBefore(O, T);
|
|
4780
4825
|
try {
|
|
4781
|
-
await y.renderer.draw(t, e,
|
|
4826
|
+
await y.renderer.draw(t, e, mt.version, y);
|
|
4782
4827
|
} catch (n) {
|
|
4783
|
-
throw s.suppressErrorRendering ? p() :
|
|
4828
|
+
throw s.suppressErrorRendering ? p() : Wo.draw(t, e, mt.version), n;
|
|
4784
4829
|
}
|
|
4785
4830
|
let k = h.select(`${f} svg`), A = y.db.getAccTitle?.(), ee = y.db.getAccDescription?.();
|
|
4786
|
-
|
|
4831
|
+
nc(C, k, A, ee), h.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns", Ps);
|
|
4787
4832
|
let M = h.select(f).node().innerHTML;
|
|
4788
|
-
if (i.debug("config.arrowMarkerAbsolute", s.arrowMarkerAbsolute), M =
|
|
4833
|
+
if (i.debug("config.arrowMarkerAbsolute", s.arrowMarkerAbsolute), M = Js(M, g, b(s.arrowMarkerAbsolute)), g) {
|
|
4789
4834
|
let e = h.select(f + " svg").node();
|
|
4790
|
-
M =
|
|
4835
|
+
M = Ys(M, e);
|
|
4791
4836
|
} else _ || (M = m.sanitize(M, {
|
|
4792
|
-
ADD_TAGS:
|
|
4793
|
-
ADD_ATTR:
|
|
4837
|
+
ADD_TAGS: Vs,
|
|
4838
|
+
ADD_ATTR: Hs,
|
|
4794
4839
|
HTML_INTEGRATION_POINTS: { foreignobject: !0 }
|
|
4795
4840
|
}));
|
|
4796
|
-
if (
|
|
4841
|
+
if (bs(), x) throw x;
|
|
4797
4842
|
return p(), {
|
|
4798
4843
|
diagramType: C,
|
|
4799
4844
|
svg: M,
|
|
4800
4845
|
bindFunctions: y.db.bindFunctions
|
|
4801
4846
|
};
|
|
4802
4847
|
}, "render");
|
|
4803
|
-
function
|
|
4848
|
+
function ec(e = {}) {
|
|
4804
4849
|
let t = E({}, e);
|
|
4805
|
-
t?.fontFamily && !t.themeVariables?.fontFamily && (t.themeVariables ||= {}, t.themeVariables.fontFamily = t.fontFamily), u(t), t?.theme && t.theme in s ? t.themeVariables = s[t.theme].getThemeVariables(t.themeVariables) : t && (t.themeVariables = s.default.getThemeVariables(t.themeVariables)), r((typeof t == "object" ? p(t) : k()).logLevel),
|
|
4850
|
+
t?.fontFamily && !t.themeVariables?.fontFamily && (t.themeVariables ||= {}, t.themeVariables.fontFamily = t.fontFamily), u(t), t?.theme && t.theme in s ? t.themeVariables = s[t.theme].getThemeVariables(t.themeVariables) : t && (t.themeVariables = s.default.getThemeVariables(t.themeVariables)), r((typeof t == "object" ? p(t) : k()).logLevel), ps();
|
|
4806
4851
|
}
|
|
4807
|
-
a(
|
|
4808
|
-
var
|
|
4809
|
-
let { code: n } =
|
|
4810
|
-
return
|
|
4852
|
+
a(ec, "initialize");
|
|
4853
|
+
var tc = /* @__PURE__ */ a((e, t = {}) => {
|
|
4854
|
+
let { code: n } = Es(e);
|
|
4855
|
+
return vs.fromText(n, t);
|
|
4811
4856
|
}, "getDiagramFromText");
|
|
4812
|
-
function
|
|
4813
|
-
|
|
4814
|
-
}
|
|
4815
|
-
a(
|
|
4816
|
-
var
|
|
4817
|
-
render:
|
|
4818
|
-
parse:
|
|
4819
|
-
getDiagramFromText:
|
|
4820
|
-
initialize:
|
|
4857
|
+
function nc(e, t, n, r) {
|
|
4858
|
+
gs(t, e), _s(t, n, r, t.attr("id"));
|
|
4859
|
+
}
|
|
4860
|
+
a(nc, "addA11yInfo");
|
|
4861
|
+
var rc = Object.freeze({
|
|
4862
|
+
render: $s,
|
|
4863
|
+
parse: Ws,
|
|
4864
|
+
getDiagramFromText: tc,
|
|
4865
|
+
initialize: ec,
|
|
4821
4866
|
getConfig: j,
|
|
4822
4867
|
setConfig: f,
|
|
4823
4868
|
getSiteConfig: k,
|
|
@@ -4831,7 +4876,7 @@ var Qs = Object.freeze({
|
|
|
4831
4876
|
defaultConfig: S
|
|
4832
4877
|
});
|
|
4833
4878
|
r(j().logLevel), l(j());
|
|
4834
|
-
var
|
|
4879
|
+
var ic = /* @__PURE__ */ a((e, t, n) => {
|
|
4835
4880
|
i.warn(e), M(e) ? (n && n(e.str, e.hash), t.push({
|
|
4836
4881
|
...e,
|
|
4837
4882
|
message: e.str,
|
|
@@ -4842,118 +4887,118 @@ var $s = /* @__PURE__ */ a((e, t, n) => {
|
|
|
4842
4887
|
hash: e.name,
|
|
4843
4888
|
error: e
|
|
4844
4889
|
}));
|
|
4845
|
-
}, "handleError"),
|
|
4890
|
+
}, "handleError"), ac = /* @__PURE__ */ a(async function(e = { querySelector: ".mermaid" }) {
|
|
4846
4891
|
try {
|
|
4847
|
-
await
|
|
4892
|
+
await oc(e);
|
|
4848
4893
|
} catch (t) {
|
|
4849
|
-
if (M(t) && i.error(t.str),
|
|
4894
|
+
if (M(t) && i.error(t.str), $.parseError && $.parseError(t), !e.suppressErrors) throw i.error("Use the suppressErrors option to suppress these errors"), t;
|
|
4850
4895
|
}
|
|
4851
|
-
}, "run"),
|
|
4852
|
-
let r =
|
|
4896
|
+
}, "run"), oc = /* @__PURE__ */ a(async function({ postRenderCallback: e, querySelector: t, nodes: n } = { querySelector: ".mermaid" }) {
|
|
4897
|
+
let r = rc.getConfig();
|
|
4853
4898
|
i.debug(`${e ? "" : "No "}Callback function found`);
|
|
4854
4899
|
let a;
|
|
4855
4900
|
if (n) a = n;
|
|
4856
4901
|
else if (t) a = document.querySelectorAll(t);
|
|
4857
4902
|
else throw Error("Nodes and querySelector are both undefined");
|
|
4858
|
-
i.debug(`Found ${a.length} diagrams`), r?.startOnLoad !== void 0 && (i.debug("Start On Load: " + r?.startOnLoad),
|
|
4903
|
+
i.debug(`Found ${a.length} diagrams`), r?.startOnLoad !== void 0 && (i.debug("Start On Load: " + r?.startOnLoad), rc.updateSiteConfig({ startOnLoad: r?.startOnLoad }));
|
|
4859
4904
|
let o = new N.InitIDGenerator(r.deterministicIds, r.deterministicIDSeed), s, c = [];
|
|
4860
4905
|
for (let t of Array.from(a)) {
|
|
4861
4906
|
if (i.info("Rendering diagram: " + t.id), t.getAttribute("data-processed")) continue;
|
|
4862
4907
|
t.setAttribute("data-processed", "true");
|
|
4863
4908
|
let n = `mermaid-${o.next()}`;
|
|
4864
|
-
s = t.innerHTML, s =
|
|
4909
|
+
s = t.innerHTML, s = ve(N.entityDecode(s)).trim().replace(/<br\s*\/?>/gi, "<br/>");
|
|
4865
4910
|
let r = N.detectInit(s);
|
|
4866
4911
|
r && i.debug("Detected early reinit: ", r);
|
|
4867
4912
|
try {
|
|
4868
|
-
let { svg: r, bindFunctions: i } = await
|
|
4913
|
+
let { svg: r, bindFunctions: i } = await gc(n, s, t);
|
|
4869
4914
|
t.innerHTML = r, e && await e(n), i && i(t);
|
|
4870
4915
|
} catch (e) {
|
|
4871
|
-
|
|
4916
|
+
ic(e, c, $.parseError);
|
|
4872
4917
|
}
|
|
4873
4918
|
}
|
|
4874
4919
|
if (c.length > 0) throw c[0];
|
|
4875
|
-
}, "runThrowsErrors"),
|
|
4876
|
-
|
|
4877
|
-
}, "initialize"),
|
|
4878
|
-
i.warn("mermaid.init is deprecated. Please use run instead."), e &&
|
|
4920
|
+
}, "runThrowsErrors"), sc = /* @__PURE__ */ a(function(e) {
|
|
4921
|
+
rc.initialize(e);
|
|
4922
|
+
}, "initialize"), cc = /* @__PURE__ */ a(async function(e, t, n) {
|
|
4923
|
+
i.warn("mermaid.init is deprecated. Please use run instead."), e && sc(e);
|
|
4879
4924
|
let r = {
|
|
4880
4925
|
postRenderCallback: n,
|
|
4881
4926
|
querySelector: ".mermaid"
|
|
4882
4927
|
};
|
|
4883
|
-
typeof t == "string" ? r.querySelector = t : t && (t instanceof HTMLElement ? r.nodes = [t] : r.nodes = t), await
|
|
4884
|
-
}, "init"),
|
|
4885
|
-
|
|
4886
|
-
}, "registerExternalDiagrams"),
|
|
4887
|
-
if (
|
|
4888
|
-
let { startOnLoad: e } =
|
|
4889
|
-
e &&
|
|
4928
|
+
typeof t == "string" ? r.querySelector = t : t && (t instanceof HTMLElement ? r.nodes = [t] : r.nodes = t), await ac(r);
|
|
4929
|
+
}, "init"), lc = /* @__PURE__ */ a(async (e, { lazyLoad: t = !0 } = {}) => {
|
|
4930
|
+
ps(), c(...e), t === !1 && await ms();
|
|
4931
|
+
}, "registerExternalDiagrams"), uc = /* @__PURE__ */ a(function() {
|
|
4932
|
+
if ($.startOnLoad) {
|
|
4933
|
+
let { startOnLoad: e } = rc.getConfig();
|
|
4934
|
+
e && $.run().catch((e) => i.error("Mermaid failed to initialize", e));
|
|
4890
4935
|
}
|
|
4891
4936
|
}, "contentLoaded");
|
|
4892
|
-
typeof document < "u" && window.addEventListener("load",
|
|
4893
|
-
var
|
|
4894
|
-
|
|
4895
|
-
}, "setParseErrorHandler"),
|
|
4896
|
-
if (!
|
|
4897
|
-
for (
|
|
4898
|
-
let e =
|
|
4937
|
+
typeof document < "u" && window.addEventListener("load", uc, !1);
|
|
4938
|
+
var dc = /* @__PURE__ */ a(function(e) {
|
|
4939
|
+
$.parseError = e;
|
|
4940
|
+
}, "setParseErrorHandler"), fc = [], pc = !1, mc = /* @__PURE__ */ a(async () => {
|
|
4941
|
+
if (!pc) {
|
|
4942
|
+
for (pc = !0; fc.length > 0;) {
|
|
4943
|
+
let e = fc.shift();
|
|
4899
4944
|
if (e) try {
|
|
4900
4945
|
await e();
|
|
4901
4946
|
} catch (e) {
|
|
4902
4947
|
i.error("Error executing queue", e);
|
|
4903
4948
|
}
|
|
4904
4949
|
}
|
|
4905
|
-
|
|
4950
|
+
pc = !1;
|
|
4906
4951
|
}
|
|
4907
|
-
}, "executeQueue"),
|
|
4952
|
+
}, "executeQueue"), hc = /* @__PURE__ */ a(async (e, t) => new Promise((n, r) => {
|
|
4908
4953
|
let o = /* @__PURE__ */ a(() => new Promise((a, o) => {
|
|
4909
|
-
|
|
4954
|
+
rc.parse(e, t).then((e) => {
|
|
4910
4955
|
a(e), n(e);
|
|
4911
4956
|
}, (e) => {
|
|
4912
|
-
i.error("Error parsing", e),
|
|
4957
|
+
i.error("Error parsing", e), $.parseError?.(e), o(e), r(e);
|
|
4913
4958
|
});
|
|
4914
4959
|
}), "performCall");
|
|
4915
|
-
|
|
4916
|
-
}), "parse"),
|
|
4960
|
+
fc.push(o), mc().catch(r);
|
|
4961
|
+
}), "parse"), gc = /* @__PURE__ */ a((e, t, n) => new Promise((r, o) => {
|
|
4917
4962
|
let s = /* @__PURE__ */ a(() => new Promise((a, s) => {
|
|
4918
|
-
|
|
4963
|
+
rc.render(e, t, n).then((e) => {
|
|
4919
4964
|
a(e), r(e);
|
|
4920
4965
|
}, (e) => {
|
|
4921
|
-
i.error("Error parsing", e),
|
|
4966
|
+
i.error("Error parsing", e), $.parseError?.(e), s(e), o(e);
|
|
4922
4967
|
});
|
|
4923
4968
|
}), "performCall");
|
|
4924
|
-
|
|
4925
|
-
}), "render"),
|
|
4969
|
+
fc.push(s), mc().catch(o);
|
|
4970
|
+
}), "render"), $ = {
|
|
4926
4971
|
startOnLoad: !0,
|
|
4927
|
-
mermaidAPI:
|
|
4928
|
-
parse:
|
|
4929
|
-
render:
|
|
4930
|
-
init:
|
|
4931
|
-
run:
|
|
4932
|
-
registerExternalDiagrams:
|
|
4933
|
-
registerLayoutLoaders:
|
|
4934
|
-
initialize:
|
|
4972
|
+
mermaidAPI: rc,
|
|
4973
|
+
parse: hc,
|
|
4974
|
+
render: gc,
|
|
4975
|
+
init: cc,
|
|
4976
|
+
run: ac,
|
|
4977
|
+
registerExternalDiagrams: lc,
|
|
4978
|
+
registerLayoutLoaders: qi,
|
|
4979
|
+
initialize: sc,
|
|
4935
4980
|
parseError: void 0,
|
|
4936
|
-
contentLoaded:
|
|
4937
|
-
setParseErrorHandler:
|
|
4981
|
+
contentLoaded: uc,
|
|
4982
|
+
setParseErrorHandler: dc,
|
|
4938
4983
|
detectType: v,
|
|
4939
|
-
registerIconPacks:
|
|
4984
|
+
registerIconPacks: _e,
|
|
4940
4985
|
getRegisteredDiagramsMetadata: /* @__PURE__ */ a(() => Object.keys(w).map((e) => ({ id: e })), "getRegisteredDiagramsMetadata")
|
|
4941
|
-
},
|
|
4986
|
+
}, _c = $, vc = { class: "mermaid-controls" }, yc = ["title"], bc = {
|
|
4942
4987
|
key: 0,
|
|
4943
4988
|
width: "16",
|
|
4944
4989
|
height: "16",
|
|
4945
4990
|
viewBox: "0 0 16 16",
|
|
4946
4991
|
fill: "currentColor"
|
|
4947
|
-
},
|
|
4992
|
+
}, xc = {
|
|
4948
4993
|
key: 1,
|
|
4949
4994
|
width: "16",
|
|
4950
4995
|
height: "16",
|
|
4951
4996
|
viewBox: "0 0 16 16",
|
|
4952
4997
|
fill: "currentColor"
|
|
4953
|
-
},
|
|
4998
|
+
}, Sc = { class: "zoom-indicator" }, Cc = {
|
|
4954
4999
|
key: 0,
|
|
4955
5000
|
class: "mermaid-error"
|
|
4956
|
-
},
|
|
5001
|
+
}, wc = /* @__PURE__ */ ut(/* @__PURE__ */ Ae({
|
|
4957
5002
|
__name: "MermaidDiagram",
|
|
4958
5003
|
props: {
|
|
4959
5004
|
code: {},
|
|
@@ -4961,11 +5006,11 @@ var oc = /* @__PURE__ */ a(function(e) {
|
|
|
4961
5006
|
onError: { type: Function }
|
|
4962
5007
|
},
|
|
4963
5008
|
setup(e) {
|
|
4964
|
-
let t = e, n =
|
|
5009
|
+
let t = e, n = R(null), r = R(null), i = R(null), a = R("default"), o = R(1), s = R(0), c = R(0), l = R(!1), u = R(0), d = R(0), f = R(0), p = R(0), m = R(!1), h = R(null), g = R(null), _ = () => {
|
|
4965
5010
|
let e = document.documentElement.classList.contains("theme-dark") || document.body.classList.contains("theme-dark"), t = document.documentElement.classList.contains("theme-light") || document.body.classList.contains("theme-light");
|
|
4966
5011
|
return e ? "dark" : t ? "default" : window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "default";
|
|
4967
5012
|
}, v = (e) => {
|
|
4968
|
-
|
|
5013
|
+
_c.initialize({
|
|
4969
5014
|
suppressErrorRendering: !0,
|
|
4970
5015
|
startOnLoad: !1,
|
|
4971
5016
|
theme: e,
|
|
@@ -5029,7 +5074,7 @@ var oc = /* @__PURE__ */ a(function(e) {
|
|
|
5029
5074
|
}, D = (e) => {
|
|
5030
5075
|
e.key === "Escape" && m.value && E();
|
|
5031
5076
|
};
|
|
5032
|
-
|
|
5077
|
+
Be(m, (e) => {
|
|
5033
5078
|
e ? document.body.style.overflow = "hidden" : (document.body.style.overflow = "", T()), h.value && (e ? h.value.style.maxHeight = "100vh" : h.value.style.maxHeight = "600px");
|
|
5034
5079
|
});
|
|
5035
5080
|
let O = async () => {
|
|
@@ -5038,7 +5083,7 @@ var oc = /* @__PURE__ */ a(function(e) {
|
|
|
5038
5083
|
try {
|
|
5039
5084
|
let e = _();
|
|
5040
5085
|
e !== a.value && (a.value = e, v(e));
|
|
5041
|
-
let r = `mermaid-${Math.random().toString(36).substr(2, 9)}`, { svg: i } = await
|
|
5086
|
+
let r = `mermaid-${Math.random().toString(36).substr(2, 9)}`, { svg: i } = await _c.render(r, t.code);
|
|
5042
5087
|
if (n.value.innerHTML = i, h.value = n.value.querySelector("svg"), h.value) {
|
|
5043
5088
|
let e = h.value.getAttribute("viewBox");
|
|
5044
5089
|
if (e) {
|
|
@@ -5073,7 +5118,7 @@ var oc = /* @__PURE__ */ a(function(e) {
|
|
|
5073
5118
|
}, k = null, A = () => {
|
|
5074
5119
|
O();
|
|
5075
5120
|
};
|
|
5076
|
-
return
|
|
5121
|
+
return Fe(() => {
|
|
5077
5122
|
a.value = _(), v(a.value), O(), window.matchMedia && (k = window.matchMedia("(prefers-color-scheme: dark)"), k.addEventListener("change", A));
|
|
5078
5123
|
let e = new MutationObserver(() => {
|
|
5079
5124
|
O();
|
|
@@ -5085,61 +5130,61 @@ var oc = /* @__PURE__ */ a(function(e) {
|
|
|
5085
5130
|
attributes: !0,
|
|
5086
5131
|
attributeFilter: ["class"]
|
|
5087
5132
|
}), n.value.__observer = e, window.addEventListener("keydown", D);
|
|
5088
|
-
}),
|
|
5133
|
+
}), Ie(() => {
|
|
5089
5134
|
k && k.removeEventListener("change", A), n.value && n.value.__observer && n.value.__observer.disconnect(), window.removeEventListener("keydown", D), document.body.style.overflow = "";
|
|
5090
|
-
}),
|
|
5135
|
+
}), Be(() => [t.code, t.isStreaming], () => {
|
|
5091
5136
|
O();
|
|
5092
|
-
}), (t, a) => (
|
|
5137
|
+
}), (t, a) => (L(), ke(De, {
|
|
5093
5138
|
to: "body",
|
|
5094
5139
|
disabled: !m.value
|
|
5095
|
-
}, [
|
|
5096
|
-
|
|
5097
|
-
|
|
5140
|
+
}, [I("div", { class: Ne(["mermaid-diagram-wrapper", { fullscreen: m.value }]) }, [
|
|
5141
|
+
I("div", vc, [
|
|
5142
|
+
I("button", {
|
|
5098
5143
|
onClick: T,
|
|
5099
5144
|
class: "control-btn",
|
|
5100
5145
|
title: "重置缩放"
|
|
5101
|
-
}, [...a[0] ||= [
|
|
5146
|
+
}, [...a[0] ||= [I("svg", {
|
|
5102
5147
|
width: "16",
|
|
5103
5148
|
height: "16",
|
|
5104
5149
|
viewBox: "0 0 16 16",
|
|
5105
5150
|
fill: "currentColor"
|
|
5106
|
-
}, [
|
|
5107
|
-
|
|
5151
|
+
}, [I("path", { d: "M8 3a5 5 0 1 0 0 10A5 5 0 0 0 8 3zM1 8a7 7 0 1 1 14 0A7 7 0 0 1 1 8z" }), I("path", { d: "M8 4.5a.5.5 0 0 1 .5.5v2h2a.5.5 0 0 1 0 1h-2v2a.5.5 0 0 1-1 0v-2h-2a.5.5 0 0 1 0-1h2v-2A.5.5 0 0 1 8 4.5z" })], -1)]]),
|
|
5152
|
+
I("button", {
|
|
5108
5153
|
onClick: E,
|
|
5109
5154
|
class: "control-btn",
|
|
5110
5155
|
title: m.value ? "退出全屏" : "全屏预览"
|
|
5111
|
-
}, [m.value ? (
|
|
5112
|
-
|
|
5156
|
+
}, [m.value ? (L(), F("svg", xc, [...a[2] ||= [I("path", { d: "M5.5 0a.5.5 0 0 1 .5.5v4A1.5 1.5 0 0 1 4.5 6h-4a.5.5 0 0 1 0-1h4a.5.5 0 0 0 .5-.5v-4a.5.5 0 0 1 .5-.5zm5 0a.5.5 0 0 1 .5.5v4a.5.5 0 0 0 .5.5h4a.5.5 0 0 1 0 1h-4A1.5 1.5 0 0 1 10 4.5v-4a.5.5 0 0 1 .5-.5zM0 10.5a.5.5 0 0 1 .5-.5h4A1.5 1.5 0 0 1 6 11.5v4a.5.5 0 0 1-1 0v-4a.5.5 0 0 0-.5-.5h-4a.5.5 0 0 1-.5-.5zm10 1a1.5 1.5 0 0 1 1.5-1.5h4a.5.5 0 0 1 0 1h-4a.5.5 0 0 0-.5.5v4a.5.5 0 0 1-1 0v-4z" }, null, -1)]])) : (L(), F("svg", bc, [...a[1] ||= [I("path", { d: "M1.5 1a.5.5 0 0 0-.5.5v4a.5.5 0 0 1-1 0v-4A1.5 1.5 0 0 1 1.5 0h4a.5.5 0 0 1 0 1h-4zM10 .5a.5.5 0 0 1 .5-.5h4A1.5 1.5 0 0 1 16 1.5v4a.5.5 0 0 1-1 0v-4a.5.5 0 0 0-.5-.5h-4a.5.5 0 0 1-.5-.5zM.5 10a.5.5 0 0 1 .5.5v4a.5.5 0 0 0 .5.5h4a.5.5 0 0 1 0 1h-4A1.5 1.5 0 0 1 0 14.5v-4a.5.5 0 0 1 .5-.5zm15 0a.5.5 0 0 1 .5.5v4a1.5 1.5 0 0 1-1.5 1.5h-4a.5.5 0 0 1 0-1h4a.5.5 0 0 0 .5-.5v-4a.5.5 0 0 1 .5-.5z" }, null, -1)]]))], 8, yc),
|
|
5157
|
+
I("span", Sc, Re(Math.round(o.value * 100)) + "%", 1)
|
|
5113
5158
|
]),
|
|
5114
|
-
|
|
5159
|
+
I("div", {
|
|
5115
5160
|
ref_key: "containerRef",
|
|
5116
5161
|
ref: r,
|
|
5117
|
-
class:
|
|
5118
|
-
onWheel:
|
|
5162
|
+
class: Ne(["mermaid-diagram", { "is-dragging": l.value }]),
|
|
5163
|
+
onWheel: He(b, ["prevent"]),
|
|
5119
5164
|
onMousedown: x,
|
|
5120
5165
|
onMousemove: S,
|
|
5121
5166
|
onMouseup: C,
|
|
5122
5167
|
onMouseleave: w
|
|
5123
|
-
}, [
|
|
5168
|
+
}, [I("div", {
|
|
5124
5169
|
ref_key: "diagramRef",
|
|
5125
5170
|
ref: n,
|
|
5126
5171
|
class: "mermaid-diagram-content"
|
|
5127
5172
|
}, null, 512)], 34),
|
|
5128
|
-
i.value && !e.isStreaming ? (
|
|
5173
|
+
i.value && !e.isStreaming ? (L(), F("div", Cc, [a[3] ||= I("strong", null, "Mermaid 渲染错误:", -1), I("pre", null, Re(i.value), 1)])) : P("", !0)
|
|
5129
5174
|
], 2)], 8, ["disabled"]));
|
|
5130
5175
|
}
|
|
5131
5176
|
}), [["__scopeId", "data-v-abde2fe6"]]);
|
|
5132
5177
|
//#endregion
|
|
5133
5178
|
//#region src/plugins/custom/mermaidPlugin.ts
|
|
5134
|
-
function
|
|
5179
|
+
function Tc(e) {
|
|
5135
5180
|
if (e.type !== "tag" || e.name !== "code") return null;
|
|
5136
5181
|
let t = (e.attribs?.class || "").match(/language-(\w+)/);
|
|
5137
5182
|
return t ? t[1] : null;
|
|
5138
5183
|
}
|
|
5139
|
-
function
|
|
5140
|
-
return !e.children || e.children.length === 0 ? "" : e.children.map((e) => e.type === "text" ? e.data : e.children ?
|
|
5184
|
+
function Ec(e) {
|
|
5185
|
+
return !e.children || e.children.length === 0 ? "" : e.children.map((e) => e.type === "text" ? e.data : e.children ? Ec(e) : "").join("");
|
|
5141
5186
|
}
|
|
5142
|
-
function
|
|
5187
|
+
function Dc(e) {
|
|
5143
5188
|
let { priority: t = 80, theme: r, cssUrl: i, onError: a } = e || {};
|
|
5144
5189
|
return i && typeof window < "u" && n(i), {
|
|
5145
5190
|
name: "mermaid",
|
|
@@ -5147,46 +5192,46 @@ function Cc(e) {
|
|
|
5147
5192
|
test: (e) => {
|
|
5148
5193
|
if (e.type === "tag" && e.name === "pre") {
|
|
5149
5194
|
let t = e.children?.find((e) => e.type === "tag" && e.name === "code");
|
|
5150
|
-
if (t) return
|
|
5195
|
+
if (t) return Tc(t) === "mermaid";
|
|
5151
5196
|
}
|
|
5152
5197
|
return !1;
|
|
5153
5198
|
},
|
|
5154
5199
|
render: (e, t, n, i) => {
|
|
5155
5200
|
let o = e.children?.find((e) => e.type === "tag" && e.name === "code");
|
|
5156
|
-
if (!o) return
|
|
5201
|
+
if (!o) return je("div", { class: "mermaid-error" }, "No code content found");
|
|
5157
5202
|
let s = {
|
|
5158
|
-
code:
|
|
5203
|
+
code: Ec(o),
|
|
5159
5204
|
isStreaming: i?.isStreaming || !1
|
|
5160
5205
|
};
|
|
5161
|
-
return r && (s.theme = r), a && (s.onError = a),
|
|
5206
|
+
return r && (s.theme = r), a && (s.onError = a), je(wc, s);
|
|
5162
5207
|
}
|
|
5163
5208
|
};
|
|
5164
5209
|
}
|
|
5165
5210
|
//#endregion
|
|
5166
5211
|
//#region src/components/BlinkingCursor.vue
|
|
5167
|
-
var
|
|
5212
|
+
var Oc = /* @__PURE__ */ ut(/* @__PURE__ */ Ae({
|
|
5168
5213
|
__name: "BlinkingCursor",
|
|
5169
5214
|
props: {
|
|
5170
5215
|
shape: { default: "square" },
|
|
5171
5216
|
color: { default: "#333" }
|
|
5172
5217
|
},
|
|
5173
5218
|
setup(e) {
|
|
5174
|
-
let t = e, n =
|
|
5175
|
-
return (t, r) => (
|
|
5176
|
-
class:
|
|
5177
|
-
style:
|
|
5219
|
+
let t = e, n = Oe(() => ({ backgroundColor: t.color }));
|
|
5220
|
+
return (t, r) => (L(), F("span", {
|
|
5221
|
+
class: Ne(["blinking-cursor", `cursor-${e.shape}`]),
|
|
5222
|
+
style: Pe(n.value)
|
|
5178
5223
|
}, null, 6));
|
|
5179
5224
|
}
|
|
5180
5225
|
}), [["__scopeId", "data-v-0d4d5123"]]);
|
|
5181
5226
|
//#endregion
|
|
5182
5227
|
//#region src/plugins/custom/cursorPlugin.ts
|
|
5183
|
-
function
|
|
5228
|
+
function kc(e = {}) {
|
|
5184
5229
|
let { shape: t = "square", color: n, priority: r = 100 } = e;
|
|
5185
5230
|
return {
|
|
5186
5231
|
name: "cursor",
|
|
5187
5232
|
priority: r,
|
|
5188
5233
|
test: (e) => e.type === "component" && e.name === "cursor",
|
|
5189
|
-
render: (e, r, i, a) =>
|
|
5234
|
+
render: (e, r, i, a) => je(Oc, {
|
|
5190
5235
|
...e.attribs,
|
|
5191
5236
|
shape: t,
|
|
5192
5237
|
...n && { color: n }
|
|
@@ -5195,14 +5240,14 @@ function Tc(e = {}) {
|
|
|
5195
5240
|
}
|
|
5196
5241
|
//#endregion
|
|
5197
5242
|
//#region src/components/ImageViewer.vue?vue&type=script&setup=true&lang.ts
|
|
5198
|
-
var
|
|
5243
|
+
var Ac = [
|
|
5199
5244
|
"src",
|
|
5200
5245
|
"alt",
|
|
5201
5246
|
"title",
|
|
5202
5247
|
"data-original",
|
|
5203
5248
|
"data-index",
|
|
5204
5249
|
"crossorigin"
|
|
5205
|
-
],
|
|
5250
|
+
], jc = /* @__PURE__ */ ut(/* @__PURE__ */ Ae({
|
|
5206
5251
|
__name: "ImageViewer",
|
|
5207
5252
|
props: {
|
|
5208
5253
|
src: {},
|
|
@@ -5216,27 +5261,27 @@ var Ec = [
|
|
|
5216
5261
|
context: {}
|
|
5217
5262
|
},
|
|
5218
5263
|
setup(e) {
|
|
5219
|
-
let t = e, n =
|
|
5264
|
+
let t = e, n = R(null), r = Me("imageViewerManager", null), i = {
|
|
5220
5265
|
cursor: "pointer",
|
|
5221
5266
|
maxWidth: "100%",
|
|
5222
5267
|
height: "auto"
|
|
5223
|
-
}, a =
|
|
5268
|
+
}, a = Oe(() => {
|
|
5224
5269
|
let e = t.context?.images || [];
|
|
5225
5270
|
if (t.src && e.length > 0) {
|
|
5226
5271
|
let n = e.findIndex((e) => e.src === t.src);
|
|
5227
5272
|
return n === -1 ? 0 : n;
|
|
5228
5273
|
}
|
|
5229
5274
|
return 0;
|
|
5230
|
-
}), o =
|
|
5231
|
-
|
|
5275
|
+
}), o = Oe(() => t.crossOrigin ? t.src.startsWith("http") && !t.src.includes(window.location.host) : Ue(t.src, t.context?.autoCors));
|
|
5276
|
+
Fe(() => {
|
|
5232
5277
|
r && n.value && r.registerImage(n.value);
|
|
5233
|
-
}),
|
|
5278
|
+
}), Ie(() => {
|
|
5234
5279
|
r && n.value && r.unregisterImage(n.value);
|
|
5235
5280
|
});
|
|
5236
5281
|
function s() {
|
|
5237
5282
|
r && r.show(a.value);
|
|
5238
5283
|
}
|
|
5239
|
-
return (t, r) => (
|
|
5284
|
+
return (t, r) => (L(), F("img", {
|
|
5240
5285
|
ref_key: "imgRef",
|
|
5241
5286
|
ref: n,
|
|
5242
5287
|
src: e.src,
|
|
@@ -5248,12 +5293,12 @@ var Ec = [
|
|
|
5248
5293
|
crossorigin: o.value ? "anonymous" : void 0,
|
|
5249
5294
|
style: i,
|
|
5250
5295
|
onClick: s
|
|
5251
|
-
}, null, 8,
|
|
5296
|
+
}, null, 8, Ac));
|
|
5252
5297
|
}
|
|
5253
|
-
}), [["__scopeId", "data-v-
|
|
5298
|
+
}), [["__scopeId", "data-v-f6b36068"]]);
|
|
5254
5299
|
//#endregion
|
|
5255
5300
|
//#region src/plugins/custom/imageViewerPlugin.ts
|
|
5256
|
-
function
|
|
5301
|
+
function Mc(e) {
|
|
5257
5302
|
let { priority: t = 50, viewerOptions: n = {}, crossOrigin: r = !1 } = e || {};
|
|
5258
5303
|
return {
|
|
5259
5304
|
name: "imageViewer",
|
|
@@ -5265,7 +5310,7 @@ function Oc(e) {
|
|
|
5265
5310
|
let t = o.findIndex((t) => t.src === e.attribs?.src);
|
|
5266
5311
|
t !== -1 && (s = t);
|
|
5267
5312
|
}
|
|
5268
|
-
return
|
|
5313
|
+
return je(jc, {
|
|
5269
5314
|
src: e.attribs?.src || "",
|
|
5270
5315
|
alt: e.attribs?.alt || "",
|
|
5271
5316
|
title: e.attribs?.title || "",
|
|
@@ -5278,4 +5323,4 @@ function Oc(e) {
|
|
|
5278
5323
|
};
|
|
5279
5324
|
}
|
|
5280
5325
|
//#endregion
|
|
5281
|
-
export {
|
|
5326
|
+
export { ro as a, Yi as c, Wi as d, ht as f, Ue as g, ft as h, so as i, Ji as l, pt as m, kc as n, Ua as o, mt as p, Dc as r, Ba as s, Mc as t, Ui as u };
|