@layers-app/editor 0.1.15 → 0.1.17
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/index.cjs +2 -2
- package/dist/index.d.ts +2 -0
- package/dist/index.js +7 -6
- package/dist/{layers.BOCWf8Rn.js → layers.09-oE2J6.js} +1 -1
- package/dist/layers.0GKOEfQX.js +132 -0
- package/dist/{layers.DZwhJmxs.js → layers.0QUpYe8U.js} +1 -1
- package/dist/{layers.CCdpo6Gj.js → layers.3Ou02qfO.js} +24 -24
- package/dist/{layers.SUgVUAw5.js → layers.3ncr24k-.js} +1 -1
- package/dist/{layers.C6sO_DnI.js → layers.4B2wOIR1.js} +1 -1
- package/dist/{layers.BJ_VA5-q.js → layers.7AsF2nNX.js} +1 -1
- package/dist/{layers.BzSqzDo_.js → layers.7H2WL17C.js} +1 -1
- package/dist/{layers.D9xr3Wns.js → layers.7PjUehxE.js} +1 -1
- package/dist/{layers.BxKVpEQe.js → layers.99biaYEX.js} +1 -1
- package/dist/{layers.B2twUwzc.js → layers.B1Se8OaH.js} +1 -1
- package/dist/{layers.WEKUJ2D3.js → layers.B26_Cpa_.js} +1 -1
- package/dist/{layers.yJE2jjt-.js → layers.B2Pkrdw1.js} +1 -1
- package/dist/{layers.BxEzVGXI.js → layers.B3BBy8oP.js} +3 -3
- package/dist/{layers.CnL_xiSE.js → layers.B5mng6BK.js} +1 -1
- package/dist/layers.B7HljEnE.js +1 -0
- package/dist/{layers.N87AdYyp.js → layers.B8vpQUjo.js} +1 -1
- package/dist/layers.BBlxht-2.js +319 -0
- package/dist/{layers.BrKJat4u.js → layers.BCkBAe54.js} +1 -1
- package/dist/{layers.iVQNSjA3.js → layers.BFTIBVaT.js} +1 -1
- package/dist/{layers.DymtGEzw.js → layers.BGu81HI5.js} +1 -1
- package/dist/{layers.DFzuLCOi.js → layers.BH9wqgDY.js} +1 -1
- package/dist/{layers.YOcL3lcm.js → layers.BKC37Rv9.js} +312 -307
- package/dist/{layers.Bo2JWekr.js → layers.BLDa5caG.js} +7 -7
- package/dist/{layers.BV-X-Lph.js → layers.BMC2kTTB.js} +1 -1
- package/dist/{layers.Bl7rFS_e.js → layers.BMwaDYYZ.js} +1 -1
- package/dist/{layers.BwSrpUwm.js → layers.BOuSIBai.js} +1 -1
- package/dist/{layers.COYlqxdC.js → layers.BQKuAwQB.js} +1 -1
- package/dist/{layers.CrIS3tzY.js → layers.BRDVz-vO.js} +1 -1
- package/dist/{layers.DnsUivPg.js → layers.BUmiV0yN.js} +1 -1
- package/dist/{layers.BGUjhAvl.js → layers.BV8IclsW.js} +4 -4
- package/dist/{layers.Ht7jFInT.js → layers.BVMj1jxT.js} +1 -1
- package/dist/layers.BW2Tio6y.js +8 -0
- package/dist/{layers.CBXJiKhy.js → layers.BWcGUFHK.js} +1 -1
- package/dist/{layers.B5h_TR5e.js → layers.BWnw9UAM.js} +1 -1
- package/dist/{layers.7-frWzQU.js → layers.BZ8rMF0E.js} +2 -2
- package/dist/layers.BZxcnuyH.js +1 -0
- package/dist/{layers.Co2vQeyt.js → layers.B_tG84JI.js} +1 -1
- package/dist/{layers.DidDYfAY.js → layers.BahDi8Jq.js} +1 -1
- package/dist/{layers.D1P2I4HJ.js → layers.BbArzt5V.js} +1 -1
- package/dist/{layers.nuwHWQYN.js → layers.BbLvjR2J.js} +1 -1
- package/dist/{layers.B6qGqFBr.js → layers.BeQ4Whpe.js} +1 -1
- package/dist/{layers.CJbgWBxK.js → layers.BeoJyn39.js} +1 -1
- package/dist/{layers.BnrCNcQ_.js → layers.BfiIrqIN.js} +1 -1
- package/dist/{layers.CLNxdP7L.js → layers.Bg-rk-IY.js} +3 -3
- package/dist/{layers.G-i7nlkr.js → layers.Bh3cQUDo.js} +1 -1
- package/dist/{layers.CJcvZV9s.js → layers.BhzBGGFh.js} +4 -4
- package/dist/{layers.TIYrMuUw.js → layers.BjijCp-F.js} +1 -1
- package/dist/{layers.DaJ0FbDu.js → layers.BmTC_qEU.js} +3 -3
- package/dist/{layers.DJOnwKhG.js → layers.Bp4GA39y.js} +243 -240
- package/dist/{layers.Ca584So-.js → layers.BrEysPok.js} +1 -1
- package/dist/{layers.D4M_WTZ8.js → layers.Bs1Yuja3.js} +1 -1
- package/dist/{layers.C1X6fOs1.js → layers.Bt2QXZPR.js} +2 -2
- package/dist/{layers.DFPmZAZO.js → layers.Bt8u_f-g.js} +1 -1
- package/dist/{layers.BqzK2sd0.js → layers.BtZHGQ6E.js} +1 -1
- package/dist/{layers.DELdSZjI.js → layers.BtsKbOpT.js} +1 -1
- package/dist/{layers.D0GDLGrJ.js → layers.Bu-x_OvJ.js} +1 -1
- package/dist/{layers.CBzdDrVb.js → layers.BulWAmk4.js} +1 -1
- package/dist/{layers.B6OYwP1G.js → layers.BvS5Wia8.js} +1 -1
- package/dist/layers.BvuDBP9J.js +4 -0
- package/dist/{layers.D7LaOXwG.js → layers.Bw0ntPL0.js} +1 -1
- package/dist/{layers.DLdIui9k.js → layers.BwoIBDJT.js} +10 -10
- package/dist/{layers.j27nDp6H.js → layers.BxGdSKRP.js} +2 -2
- package/dist/{layers.uP6VTSf0.js → layers.BxS3YGIg.js} +4 -4
- package/dist/{layers.CgNlYRHj.js → layers.C1IDSQaT.js} +1 -1
- package/dist/{layers.Bo9XS-Mm.js → layers.C1pkM2ng.js} +5 -5
- package/dist/{layers.Cj0wPgqa.js → layers.C22FTFEe.js} +1 -1
- package/dist/{layers.D1o-YbDj.js → layers.C4ls7ISP.js} +1 -1
- package/dist/{layers.BDRMaQtT.js → layers.C6FjBgZG.js} +1 -1
- package/dist/{layers.b3OTEvVQ.js → layers.C6qpUDWv.js} +1 -1
- package/dist/{layers.Dgb_3-kz.js → layers.C8ovo18Q.js} +1 -1
- package/dist/{layers.DDgbxel-.js → layers.C8qZUu8m.js} +1 -1
- package/dist/{layers.CDUC64GU.js → layers.C94fZyIE.js} +1 -1
- package/dist/{layers._AWjNGax.js → layers.CC5jTanD.js} +1 -1
- package/dist/{layers.DAZM3arV.js → layers.CEbG0GWT.js} +1 -1
- package/dist/{layers.BGO0z85y.js → layers.CFNz078z.js} +1 -1
- package/dist/{layers.1RSypM0w.js → layers.CGpLdUiP.js} +2 -2
- package/dist/{layers.C2gKXlf0.js → layers.CI18gAPx.js} +1 -1
- package/dist/{layers.Csz_rwi6.js → layers.CI9cIkVg.js} +1 -1
- package/dist/{layers.paUBnMnq.js → layers.CIPEXJ_Z.js} +2 -2
- package/dist/{layers.CiTofLMb.js → layers.CJDFmwM6.js} +1 -1
- package/dist/{layers.uSbOgqAH.js → layers.CJKF-1iy.js} +1 -1
- package/dist/{layers.ZtfoQp3K.js → layers.CLLE0XNM.js} +5 -5
- package/dist/{layers.m7pBb6aO.js → layers.CN8r250h.js} +1 -1
- package/dist/{layers.BAaeVk5t.js → layers.CNHqdpb5.js} +1 -1
- package/dist/{layers.CdD_HWQW.js → layers.CNLMZ-n8.js} +1 -1
- package/dist/{layers.IcZi2fNa.js → layers.COLyJ5LO.js} +1 -1
- package/dist/{layers.DVSrZ25S.js → layers.COPquQl9.js} +1 -1
- package/dist/{layers.3jSYUOHf.js → layers.CQuzRJqP.js} +1 -1
- package/dist/{layers.WndMYYab.js → layers.CR64bkIJ.js} +1 -1
- package/dist/{layers.Cej91L5l.js → layers.CRBfbmxk.js} +1 -1
- package/dist/{layers.DqdmUeab.js → layers.CRqgQB8J.js} +8 -8
- package/dist/{layers.D5ORRpkX.js → layers.CS2XhZuy.js} +1 -1
- package/dist/{layers.BSh8HJW_.js → layers.CSAG6lyD.js} +1 -1
- package/dist/{layers.DDfGzyqv.js → layers.CTcZFAZr.js} +1 -1
- package/dist/{layers.CcDZDAVB.js → layers.CTm23lwt.js} +1 -1
- package/dist/{layers.ds_l1uVc.js → layers.CTwL_3Cz.js} +2 -2
- package/dist/{layers.DcJg8pXl.js → layers.CU8oxKiy.js} +1 -1
- package/dist/{layers.JXxiXLZd.js → layers.CUS1mIbU.js} +1 -1
- package/dist/{layers.DNmJZZCn.js → layers.CV4vxTrW.js} +1 -1
- package/dist/{layers.BDnVqzKw.js → layers.CWT_90sw.js} +1 -1
- package/dist/{layers.CmwWDBOx.js → layers.CWpeLc0t.js} +1 -1
- package/dist/{layers.c4ZoD5dy.js → layers.CZ8VwlJ4.js} +1 -1
- package/dist/{layers.Bu9EAdLu.js → layers.C_TMBTwJ.js} +1 -1
- package/dist/{layers.CaleEzHY.js → layers.CbKsKQXR.js} +1 -1
- package/dist/{layers.CFmQ-pK_.js → layers.Cg7KtW25.js} +1 -1
- package/dist/{layers.CFN0iJmp.js → layers.ClRou2HW.js} +1 -1
- package/dist/{layers.hQKdR4iu.js → layers.CmawNzHJ.js} +1 -1
- package/dist/{layers.Bd1uCXKO.js → layers.Cq0Ch5Iv.js} +1 -1
- package/dist/{layers.enolh8q5.js → layers.CqF4H_mD.js} +1 -1
- package/dist/{layers.CCchVvvK.js → layers.CqMjEixm.js} +1 -1
- package/dist/{layers.ClkoR_5l.js → layers.Cs8AaSS3.js} +1 -1
- package/dist/{layers.B6Eze26J.js → layers.Ct4uwlVm.js} +1 -1
- package/dist/{layers.C-tOfOgV.js → layers.CvP8SKXD.js} +1 -1
- package/dist/{layers.DOHRqEJb.js → layers.Cw-Ru6_X.js} +1 -1
- package/dist/{layers.B7SQ2Dhf.js → layers.CwIlknpB.js} +1 -1
- package/dist/{layers.BJM8U2hA.js → layers.CwoIo7W8.js} +1 -1
- package/dist/{layers.B5-CJpUr.js → layers.CxfZ-PyC.js} +1 -1
- package/dist/{layers.Bw34lfHx.js → layers.CxtTQD6P.js} +1 -1
- package/dist/{layers.BxHZ8Vs9.js → layers.CyhLcp6y.js} +6 -6
- package/dist/{layers.CydjSaZt.js → layers.CyziF_SQ.js} +1 -1
- package/dist/{layers.DBfH_5Ri.js → layers.D-TocJgP.js} +2 -2
- package/dist/{layers.CloLyxLT.js → layers.D-kFJ8el.js} +1 -1
- package/dist/{layers.DxbtdzAs.js → layers.D0DwN9e2.js} +1 -1
- package/dist/{layers.CtIDRLkO.js → layers.D1ZA3f6W.js} +17 -14
- package/dist/{layers.DR_1TRgg.js → layers.D2U6dFrQ.js} +1 -1
- package/dist/{layers.CWto2BII.js → layers.D37Y-iXY.js} +1 -1
- package/dist/{layers.hZ9fi1Mf.js → layers.D3uU6aTA.js} +1 -1
- package/dist/{layers.CZrDvG4V.js → layers.D5zd0los.js} +1 -1
- package/dist/{layers.HGWQfGkP.js → layers.D8h1OdVA.js} +2 -2
- package/dist/{layers.CKxiSXNa.js → layers.D8x1H5iy.js} +1 -1
- package/dist/{layers.ysTsjqW2.js → layers.D909hx91.js} +5 -5
- package/dist/{layers.Dpf7wFUV.js → layers.DAdht3uC.js} +1 -1
- package/dist/{layers.OA9VEvpe.js → layers.DAjImaDP.js} +1 -1
- package/dist/{layers.C2a7gnK5.js → layers.DBc1SfKV.js} +1 -1
- package/dist/{layers.B8jnt0aY.js → layers.DCNkKcra.js} +4 -4
- package/dist/{layers.DDOjs9ON.js → layers.DCRFU33R.js} +1 -1
- package/dist/{layers.BG-TJ1pM.js → layers.DCtPhtVd.js} +1 -1
- package/dist/layers.DEzlOM_P.js +1 -0
- package/dist/{layers.CQgQ763N.js → layers.DHSCEHR8.js} +1 -1
- package/dist/{layers.DHcG-dba.js → layers.DIVgeM1q.js} +1 -1
- package/dist/{layers.jseNoAli.js → layers.DRho07Me.js} +1 -1
- package/dist/{layers.CFJzjpcM.js → layers.DStKHWvW.js} +1 -1
- package/dist/{layers.eHgNkFip.js → layers.DVOYRLqd.js} +1 -1
- package/dist/layers.DX3QVmN4.js +6 -0
- package/dist/{layers.C5e6nufF.js → layers.DXz6eUMI.js} +1 -1
- package/dist/{layers.BKheYAaY.js → layers.D_VA8g4H.js} +4 -4
- package/dist/{layers.BWThEiVT.js → layers.D_fROAHm.js} +1 -1
- package/dist/{layers.BB2vriCE.js → layers.DcfJoQ0g.js} +1 -1
- package/dist/{layers.B7fTH7zT.js → layers.Dd8DmCpU.js} +1 -1
- package/dist/{layers.Dc38UngG.js → layers.Ddk469Dh.js} +1 -1
- package/dist/{layers.DU1rSJhm.js → layers.Ddq-N8Yz.js} +1 -1
- package/dist/{layers.BF6ek8ta.js → layers.DeMtErmI.js} +1 -1
- package/dist/layers.DftUTp1O.js +122 -0
- package/dist/{layers.DrxtzzNQ.js → layers.DgWiivNQ.js} +4 -4
- package/dist/{layers.C9-MG84P.js → layers.DgZOLgtm.js} +1 -1
- package/dist/{layers.ohD0xdTw.js → layers.Dimd3uv_.js} +1 -1
- package/dist/{layers.BZD4X-Bj.js → layers.Dj1UIVrM.js} +1 -1
- package/dist/{layers.Dm3AcMCt.js → layers.DjLVRmof.js} +1 -1
- package/dist/{layers.DnHl9j3h.js → layers.Dk0kd6-B.js} +1 -1
- package/dist/{layers.CnOGy8Vv.js → layers.DpBckJG9.js} +1 -1
- package/dist/{layers.ren2dq7I.js → layers.DpoYMK1j.js} +1 -1
- package/dist/{layers.4cFdEo_W.js → layers.DrMkXfHK.js} +1 -1
- package/dist/{layers.DxUKEHzy.js → layers.DrqT2qdE.js} +1 -1
- package/dist/{layers.CvjN8FvZ.js → layers.DvkFfQRh.js} +1 -1
- package/dist/{layers.jpc5q22w.js → layers.DwIdSTnx.js} +1 -1
- package/dist/{layers.BqWg582l.js → layers.DxK9eunI.js} +1 -1
- package/dist/{layers.DTnqNska.js → layers.DxlYIAi2.js} +1 -1
- package/dist/{layers.DgEeIHAo.js → layers.DzuES31X.js} +744 -745
- package/dist/{layers.7KpVwovD.js → layers.GDyqPJjS.js} +1 -1
- package/dist/{layers.C_uq5GVl.js → layers.IVSRrFHN.js} +1 -1
- package/dist/{layers.H0GyC7UW.js → layers.JP-lzz5f.js} +1 -1
- package/dist/{layers.t4bJeLcu.js → layers.Ky-Kjdnk.js} +4 -4
- package/dist/{layers.BSJvwwTU.js → layers.OucwMvYb.js} +1 -1
- package/dist/{layers.85QA4SG7.js → layers.STzdH4sy.js} +1 -1
- package/dist/{layers.BzaS61PL.js → layers.SsYje0m0.js} +1 -1
- package/dist/{layers.BQyWFqZe.js → layers.TyARdHUj.js} +4 -4
- package/dist/{layers.DYyHtEPG.js → layers.U3puEHYK.js} +3 -3
- package/dist/{layers.CB-QuFrc.js → layers.VCVkMi6g.js} +1 -1
- package/dist/{layers.xJlDqMrO.js → layers.YCPGkQIi.js} +1 -1
- package/dist/{layers.DUNxKwL6.js → layers._9mQNYpC.js} +3 -3
- package/dist/{layers.CKibNkAN.js → layers.bGcD7F4_.js} +1 -1
- package/dist/{layers.C8yGOS1k.js → layers.dd9VpJ2j.js} +1 -1
- package/dist/{layers.CIdbeu6E.js → layers.eXGxDQC_.js} +1 -1
- package/dist/{layers.DJbP3r-p.js → layers.eyx0ycIx.js} +1 -1
- package/dist/{layers.DzYu7yR1.js → layers.f6YInEN9.js} +1 -1
- package/dist/{layers.BkbySHm-.js → layers.fDF0XXNl.js} +1 -1
- package/dist/{layers.DYynZs8T.js → layers.fwvLLyfC.js} +1 -1
- package/dist/{layers.CBQCGHtr.js → layers.gWRZSm_f.js} +1 -1
- package/dist/{layers.Dg3OYlOt.js → layers.iWHM-07P.js} +1 -1
- package/dist/{layers.CQyPL6wQ.js → layers.lqQ4_QwL.js} +1 -1
- package/dist/{layers.CCR8vV_4.js → layers.mp_9sP04.js} +1 -1
- package/dist/{layers.CnF0vV7Q.js → layers.oAr0GPvq.js} +1 -1
- package/dist/{layers.2VBH-ZW8.js → layers.rOgZc7GK.js} +1 -1
- package/dist/{layers.W4KqQjMv.js → layers.rze-LVSQ.js} +3 -3
- package/dist/{layers.zT8t-tap.js → layers.s5JSe8EA.js} +8433 -8220
- package/dist/{layers.BJ2iA-2Y.js → layers.tv97TVVq.js} +3 -3
- package/dist/{layers.H_AJP8yY.js → layers.umahO1ag.js} +1 -1
- package/dist/{layers.PjXJWQTE.js → layers.v61VCm7Q.js} +3 -3
- package/dist/{layers.DDRnJGS4.js → layers.vNQeOI7i.js} +1 -1
- package/dist/{layers.CxHKMPr8.js → layers.wt0qnNWd.js} +3 -3
- package/dist/{layers.CkJty7tA.js → layers.zq4AFjsy.js} +1 -1
- package/package.json +3 -2
- package/dist/layers.BgACilN5.js +0 -1
- package/dist/layers.BmE9vzvQ.js +0 -348
- package/dist/layers.C3EPkLZF.js +0 -132
- package/dist/layers.C9eeDvKo.js +0 -1
- package/dist/layers.CiqpUI57.js +0 -1
- package/dist/layers.DLF99hXP.js +0 -8
- package/dist/layers.OvX_t3_1.js +0 -4
- package/dist/layers.X4ivvNUX.js +0 -122
- package/dist/layers.XTSUJKcD.js +0 -6
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { O as te, K as Vc } from "./layers.
|
|
2
|
-
import { v as Kc } from "./layers.
|
|
1
|
+
import { O as te, K as Vc } from "./layers.CRqgQB8J.js";
|
|
2
|
+
import { v as Kc } from "./layers.s5JSe8EA.js";
|
|
3
3
|
const Ir = 20, Zc = {
|
|
4
4
|
rect: "rectangle",
|
|
5
5
|
circle: "ellipse"
|
|
@@ -33,10 +33,10 @@ var Me;
|
|
|
33
33
|
(function(t) {
|
|
34
34
|
t.FILL = "fill", t.STROKE = "stroke", t.STROKE_WIDTH = "stroke-width", t.STROKE_DASHARRAY = "stroke-dasharray";
|
|
35
35
|
})(Me || (Me = {}));
|
|
36
|
-
var
|
|
36
|
+
var ni = {}, Ko;
|
|
37
37
|
function Jc() {
|
|
38
|
-
if (Ko) return
|
|
39
|
-
Ko = 1, Object.defineProperty(
|
|
38
|
+
if (Ko) return ni;
|
|
39
|
+
Ko = 1, Object.defineProperty(ni, "__esModule", { value: !0 }), ni.removeMarkdown = void 0;
|
|
40
40
|
var t = function(e, i) {
|
|
41
41
|
i === void 0 && (i = {
|
|
42
42
|
listUnicodeChar: ""
|
|
@@ -55,7 +55,7 @@ function Jc() {
|
|
|
55
55
|
}
|
|
56
56
|
return r;
|
|
57
57
|
};
|
|
58
|
-
return
|
|
58
|
+
return ni.removeMarkdown = t, ni;
|
|
59
59
|
}
|
|
60
60
|
var Qc = Jc();
|
|
61
61
|
const th = {
|
|
@@ -282,7 +282,7 @@ const th = {
|
|
|
282
282
|
}, elements: [n] };
|
|
283
283
|
}
|
|
284
284
|
}), Gn = (t) => t.replace(/\\n/g, `
|
|
285
|
-
`),
|
|
285
|
+
`), yi = (t) => {
|
|
286
286
|
const e = {
|
|
287
287
|
type: "line",
|
|
288
288
|
x: t.startX,
|
|
@@ -310,7 +310,7 @@ const th = {
|
|
|
310
310
|
verticalAlign: "middle"
|
|
311
311
|
};
|
|
312
312
|
return t.groupId && Object.assign(e, { groupIds: [t.groupId] }), t.id && Object.assign(e, { id: t.id }), e;
|
|
313
|
-
},
|
|
313
|
+
}, di = (t) => {
|
|
314
314
|
var r, n, s, o;
|
|
315
315
|
let e = {};
|
|
316
316
|
t.type === "rectangle" && t.subtype === "activation" && (e = {
|
|
@@ -373,11 +373,11 @@ const th = {
|
|
|
373
373
|
let s;
|
|
374
374
|
switch (n.type) {
|
|
375
375
|
case "line":
|
|
376
|
-
s =
|
|
376
|
+
s = yi(n);
|
|
377
377
|
break;
|
|
378
378
|
case "rectangle":
|
|
379
379
|
case "ellipse":
|
|
380
|
-
s =
|
|
380
|
+
s = di(n);
|
|
381
381
|
break;
|
|
382
382
|
case "text":
|
|
383
383
|
s = hr(n);
|
|
@@ -388,17 +388,17 @@ const th = {
|
|
|
388
388
|
n.type === "rectangle" && (n == null ? void 0 : n.subtype) === "activation" ? i.push(s) : e.push(s);
|
|
389
389
|
});
|
|
390
390
|
}), Object.values(t.lines).forEach((r) => {
|
|
391
|
-
r && e.push(
|
|
391
|
+
r && e.push(yi(r));
|
|
392
392
|
}), Object.values(t.arrows).forEach((r) => {
|
|
393
|
-
r && (e.push(_a(r)), r.sequenceNumber && e.push(
|
|
393
|
+
r && (e.push(_a(r)), r.sequenceNumber && e.push(di(r.sequenceNumber)));
|
|
394
394
|
}), e.push(...i), t.loops) {
|
|
395
395
|
const { lines: r, texts: n, nodes: s } = t.loops;
|
|
396
396
|
r.forEach((o) => {
|
|
397
|
-
e.push(
|
|
397
|
+
e.push(yi(o));
|
|
398
398
|
}), n.forEach((o) => {
|
|
399
399
|
e.push(hr(o));
|
|
400
400
|
}), s.forEach((o) => {
|
|
401
|
-
e.push(
|
|
401
|
+
e.push(di(o));
|
|
402
402
|
});
|
|
403
403
|
}
|
|
404
404
|
return t.groups && t.groups.forEach((r) => {
|
|
@@ -416,7 +416,7 @@ const th = {
|
|
|
416
416
|
throw new Error(`Actor attributes missing ${v}`);
|
|
417
417
|
o = Math.min(o, v.x), a = Math.min(a, v.y), l = Math.max(l, v.x + v.width), c = Math.max(c, v.y + v.height);
|
|
418
418
|
});
|
|
419
|
-
const d = 10, u = o - d, f = a - d, m = l - o + d * 2, y = c - a + d * 2, _ = te(), E =
|
|
419
|
+
const d = 10, u = o - d, f = a - d, m = l - o + d * 2, y = c - a + d * 2, _ = te(), E = di({
|
|
420
420
|
type: "rectangle",
|
|
421
421
|
x: u,
|
|
422
422
|
y: f,
|
|
@@ -454,11 +454,11 @@ const th = {
|
|
|
454
454
|
let n;
|
|
455
455
|
switch (r.type) {
|
|
456
456
|
case "line":
|
|
457
|
-
n =
|
|
457
|
+
n = yi(r);
|
|
458
458
|
break;
|
|
459
459
|
case "rectangle":
|
|
460
460
|
case "ellipse":
|
|
461
|
-
n =
|
|
461
|
+
n = di(r);
|
|
462
462
|
break;
|
|
463
463
|
case "text":
|
|
464
464
|
n = hr(r);
|
|
@@ -469,7 +469,7 @@ const th = {
|
|
|
469
469
|
e.push(n);
|
|
470
470
|
});
|
|
471
471
|
}), Object.values(t.lines).forEach((i) => {
|
|
472
|
-
i && e.push(
|
|
472
|
+
i && e.push(yi(i));
|
|
473
473
|
}), Object.values(t.arrows).forEach((i) => {
|
|
474
474
|
if (!i)
|
|
475
475
|
return;
|
|
@@ -1464,7 +1464,7 @@ function Oa(t, e) {
|
|
|
1464
1464
|
}
|
|
1465
1465
|
function Mi() {
|
|
1466
1466
|
}
|
|
1467
|
-
var
|
|
1467
|
+
var vi = 0.7, dr = 1 / vi, Ne = "\\s*([+-]?\\d+)\\s*", ki = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", Rt = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", Zu = /^#([0-9a-f]{3,8})$/, Ju = new RegExp(`^rgb\\(${Ne},${Ne},${Ne}\\)$`), Qu = new RegExp(`^rgb\\(${Rt},${Rt},${Rt}\\)$`), td = new RegExp(`^rgba\\(${Ne},${Ne},${Ne},${ki}\\)$`), ed = new RegExp(`^rgba\\(${Rt},${Rt},${Rt},${ki}\\)$`), id = new RegExp(`^hsl\\(${ki},${Rt},${Rt}\\)$`), rd = new RegExp(`^hsla\\(${ki},${Rt},${Rt},${ki}\\)$`), ts = {
|
|
1468
1468
|
aliceblue: 15792383,
|
|
1469
1469
|
antiquewhite: 16444375,
|
|
1470
1470
|
aqua: 65535,
|
|
@@ -1614,7 +1614,7 @@ var Si = 0.7, dr = 1 / Si, Ne = "\\s*([+-]?\\d+)\\s*", vi = "\\s*([+-]?(?:\\d*\\
|
|
|
1614
1614
|
yellow: 16776960,
|
|
1615
1615
|
yellowgreen: 10145074
|
|
1616
1616
|
};
|
|
1617
|
-
Zn(Mi,
|
|
1617
|
+
Zn(Mi, wi, {
|
|
1618
1618
|
copy(t) {
|
|
1619
1619
|
return Object.assign(new this.constructor(), this, t);
|
|
1620
1620
|
},
|
|
@@ -1641,7 +1641,7 @@ function od() {
|
|
|
1641
1641
|
function is() {
|
|
1642
1642
|
return this.rgb().formatRgb();
|
|
1643
1643
|
}
|
|
1644
|
-
function
|
|
1644
|
+
function wi(t) {
|
|
1645
1645
|
var e, i;
|
|
1646
1646
|
return t = (t + "").trim().toLowerCase(), (e = Zu.exec(t)) ? (i = e[1].length, e = parseInt(e[1], 16), i === 6 ? rs(e) : i === 3 ? new _t(e >> 8 & 15 | e >> 4 & 240, e >> 4 & 15 | e & 240, (e & 15) << 4 | e & 15, 1) : i === 8 ? Ui(e >> 24 & 255, e >> 16 & 255, e >> 8 & 255, (e & 255) / 255) : i === 4 ? Ui(e >> 12 & 15 | e >> 8 & 240, e >> 8 & 15 | e >> 4 & 240, e >> 4 & 15 | e & 240, ((e & 15) << 4 | e & 15) / 255) : null) : (e = Ju.exec(t)) ? new _t(e[1], e[2], e[3], 1) : (e = Qu.exec(t)) ? new _t(e[1] * 255 / 100, e[2] * 255 / 100, e[3] * 255 / 100, 1) : (e = td.exec(t)) ? Ui(e[1], e[2], e[3], e[4]) : (e = ed.exec(t)) ? Ui(e[1] * 255 / 100, e[2] * 255 / 100, e[3] * 255 / 100, e[4]) : (e = id.exec(t)) ? ss(e[1], e[2] / 100, e[3] / 100, 1) : (e = rd.exec(t)) ? ss(e[1], e[2] / 100, e[3] / 100, e[4]) : ts.hasOwnProperty(t) ? rs(ts[t]) : t === "transparent" ? new _t(NaN, NaN, NaN, 0) : null;
|
|
1647
1647
|
}
|
|
@@ -1652,7 +1652,7 @@ function Ui(t, e, i, r) {
|
|
|
1652
1652
|
return r <= 0 && (t = e = i = NaN), new _t(t, e, i, r);
|
|
1653
1653
|
}
|
|
1654
1654
|
function sd(t) {
|
|
1655
|
-
return t instanceof Mi || (t =
|
|
1655
|
+
return t instanceof Mi || (t = wi(t)), t ? (t = t.rgb(), new _t(t.r, t.g, t.b, t.opacity)) : new _t();
|
|
1656
1656
|
}
|
|
1657
1657
|
function An(t, e, i, r) {
|
|
1658
1658
|
return arguments.length === 1 ? sd(t) : new _t(t, e, i, r ?? 1);
|
|
@@ -1665,7 +1665,7 @@ Zn(_t, An, Oa(Mi, {
|
|
|
1665
1665
|
return t = t == null ? dr : Math.pow(dr, t), new _t(this.r * t, this.g * t, this.b * t, this.opacity);
|
|
1666
1666
|
},
|
|
1667
1667
|
darker(t) {
|
|
1668
|
-
return t = t == null ?
|
|
1668
|
+
return t = t == null ? vi : Math.pow(vi, t), new _t(this.r * t, this.g * t, this.b * t, this.opacity);
|
|
1669
1669
|
},
|
|
1670
1670
|
rgb() {
|
|
1671
1671
|
return this;
|
|
@@ -1707,7 +1707,7 @@ function ss(t, e, i, r) {
|
|
|
1707
1707
|
}
|
|
1708
1708
|
function Ia(t) {
|
|
1709
1709
|
if (t instanceof Ot) return new Ot(t.h, t.s, t.l, t.opacity);
|
|
1710
|
-
if (t instanceof Mi || (t =
|
|
1710
|
+
if (t instanceof Mi || (t = wi(t)), !t) return new Ot();
|
|
1711
1711
|
if (t instanceof Ot) return t;
|
|
1712
1712
|
t = t.rgb();
|
|
1713
1713
|
var e = t.r / 255, i = t.g / 255, r = t.b / 255, n = Math.min(e, i, r), s = Math.max(e, i, r), o = NaN, a = s - n, l = (s + n) / 2;
|
|
@@ -1724,7 +1724,7 @@ Zn(Ot, ld, Oa(Mi, {
|
|
|
1724
1724
|
return t = t == null ? dr : Math.pow(dr, t), new Ot(this.h, this.s, this.l * t, this.opacity);
|
|
1725
1725
|
},
|
|
1726
1726
|
darker(t) {
|
|
1727
|
-
return t = t == null ?
|
|
1727
|
+
return t = t == null ? vi : Math.pow(vi, t), new Ot(this.h, this.s, this.l * t, this.opacity);
|
|
1728
1728
|
},
|
|
1729
1729
|
rgb() {
|
|
1730
1730
|
var t = this.h % 360 + (this.h < 0) * 360, e = isNaN(t) || isNaN(this.s) ? 0 : this.s, i = this.l, r = i + (i < 0.5 ? i : 1 - i) * e, n = 2 * i - r;
|
|
@@ -1766,7 +1766,7 @@ function cd(t, e, i) {
|
|
|
1766
1766
|
return Math.pow(t + r * e, i);
|
|
1767
1767
|
};
|
|
1768
1768
|
}
|
|
1769
|
-
function
|
|
1769
|
+
function H1(t, e) {
|
|
1770
1770
|
var i = e - t;
|
|
1771
1771
|
return i ? Ma(t, i > 180 || i < -180 ? i - 360 * Math.round(i / 360) : i) : Jn(isNaN(t) ? e : t);
|
|
1772
1772
|
}
|
|
@@ -1871,11 +1871,11 @@ function Na(t, e, i, r) {
|
|
|
1871
1871
|
};
|
|
1872
1872
|
};
|
|
1873
1873
|
}
|
|
1874
|
-
var md = Na(pd, "px, ", "px)", "deg)"), yd = Na(gd, ", ", ")", ")"), We = 0,
|
|
1874
|
+
var md = Na(pd, "px, ", "px)", "deg)"), yd = Na(gd, ", ", ")", ")"), We = 0, fi = 0, oi = 0, Ra = 1e3, pr, pi, gr = 0, be = 0, Dr = 0, Ai = typeof performance == "object" && performance.now ? performance : Date, Pa = typeof window == "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(t) {
|
|
1875
1875
|
setTimeout(t, 17);
|
|
1876
1876
|
};
|
|
1877
1877
|
function Qn() {
|
|
1878
|
-
return be || (Pa(_d), be =
|
|
1878
|
+
return be || (Pa(_d), be = Ai.now() + Dr);
|
|
1879
1879
|
}
|
|
1880
1880
|
function _d() {
|
|
1881
1881
|
be = 0;
|
|
@@ -1887,7 +1887,7 @@ mr.prototype = qa.prototype = {
|
|
|
1887
1887
|
constructor: mr,
|
|
1888
1888
|
restart: function(t, e, i) {
|
|
1889
1889
|
if (typeof t != "function") throw new TypeError("callback is not a function");
|
|
1890
|
-
i = (i == null ? Qn() : +i) + (e == null ? 0 : +e), !this._next &&
|
|
1890
|
+
i = (i == null ? Qn() : +i) + (e == null ? 0 : +e), !this._next && pi !== this && (pi ? pi._next = this : pr = this, pi = this), this._call = t, this._time = i, Ln();
|
|
1891
1891
|
},
|
|
1892
1892
|
stop: function() {
|
|
1893
1893
|
this._call && (this._call = null, this._time = 1 / 0, Ln());
|
|
@@ -1904,7 +1904,7 @@ function Cd() {
|
|
|
1904
1904
|
--We;
|
|
1905
1905
|
}
|
|
1906
1906
|
function hs() {
|
|
1907
|
-
be = (gr =
|
|
1907
|
+
be = (gr = Ai.now()) + Dr, We = fi = 0;
|
|
1908
1908
|
try {
|
|
1909
1909
|
Cd();
|
|
1910
1910
|
} finally {
|
|
@@ -1912,19 +1912,19 @@ function hs() {
|
|
|
1912
1912
|
}
|
|
1913
1913
|
}
|
|
1914
1914
|
function xd() {
|
|
1915
|
-
var t =
|
|
1915
|
+
var t = Ai.now(), e = t - gr;
|
|
1916
1916
|
e > Ra && (Dr -= e, gr = t);
|
|
1917
1917
|
}
|
|
1918
1918
|
function bd() {
|
|
1919
1919
|
for (var t, e = pr, i, r = 1 / 0; e; )
|
|
1920
1920
|
e._call ? (r > e._time && (r = e._time), t = e, e = e._next) : (i = e._next, e._next = null, e = t ? t._next = i : pr = i);
|
|
1921
|
-
|
|
1921
|
+
pi = t, Ln(r);
|
|
1922
1922
|
}
|
|
1923
1923
|
function Ln(t) {
|
|
1924
1924
|
if (!We) {
|
|
1925
|
-
|
|
1925
|
+
fi && (fi = clearTimeout(fi));
|
|
1926
1926
|
var e = t - be;
|
|
1927
|
-
e > 24 ? (t < 1 / 0 && (
|
|
1927
|
+
e > 24 ? (t < 1 / 0 && (fi = setTimeout(hs, t - Ai.now() - Dr)), oi && (oi = clearInterval(oi))) : (oi || (gr = Ai.now(), oi = setInterval(xd, Ra)), We = 1, Pa(hs));
|
|
1928
1928
|
}
|
|
1929
1929
|
}
|
|
1930
1930
|
function us(t, e, i) {
|
|
@@ -2074,7 +2074,7 @@ function eo(t, e, i) {
|
|
|
2074
2074
|
}
|
|
2075
2075
|
function Wa(t, e) {
|
|
2076
2076
|
var i;
|
|
2077
|
-
return (typeof e == "number" ? le : e instanceof
|
|
2077
|
+
return (typeof e == "number" ? le : e instanceof wi ? ls : (i = wi(e)) ? (e = i, ls) : fd)(t, e);
|
|
2078
2078
|
}
|
|
2079
2079
|
function Ld(t) {
|
|
2080
2080
|
return function() {
|
|
@@ -2451,11 +2451,11 @@ function Lf(t) {
|
|
|
2451
2451
|
}
|
|
2452
2452
|
Ii.prototype.interrupt = wd;
|
|
2453
2453
|
Ii.prototype.transition = Lf;
|
|
2454
|
-
const
|
|
2455
|
-
function
|
|
2454
|
+
const Y1 = Math.abs, j1 = Math.atan2, U1 = Math.cos, X1 = Math.max, G1 = Math.min, V1 = Math.sin, K1 = Math.sqrt, ps = 1e-12, io = Math.PI, gs = io / 2, Z1 = 2 * io;
|
|
2455
|
+
function J1(t) {
|
|
2456
2456
|
return t > 1 ? 0 : t < -1 ? io : Math.acos(t);
|
|
2457
2457
|
}
|
|
2458
|
-
function
|
|
2458
|
+
function Q1(t) {
|
|
2459
2459
|
return t >= 1 ? gs : t <= -1 ? -gs : Math.asin(t);
|
|
2460
2460
|
}
|
|
2461
2461
|
function ja(t) {
|
|
@@ -3222,16 +3222,16 @@ function Vf(t) {
|
|
|
3222
3222
|
function Kf(t) {
|
|
3223
3223
|
return new Pr(t, 1);
|
|
3224
3224
|
}
|
|
3225
|
-
function
|
|
3225
|
+
function gi(t, e, i) {
|
|
3226
3226
|
this.k = t, this.x = e, this.y = i;
|
|
3227
3227
|
}
|
|
3228
|
-
|
|
3229
|
-
constructor:
|
|
3228
|
+
gi.prototype = {
|
|
3229
|
+
constructor: gi,
|
|
3230
3230
|
scale: function(t) {
|
|
3231
|
-
return t === 1 ? this : new
|
|
3231
|
+
return t === 1 ? this : new gi(this.k * t, this.x, this.y);
|
|
3232
3232
|
},
|
|
3233
3233
|
translate: function(t, e) {
|
|
3234
|
-
return t === 0 & e === 0 ? this : new
|
|
3234
|
+
return t === 0 & e === 0 ? this : new gi(this.k, this.x + this.k * t, this.y + this.k * e);
|
|
3235
3235
|
},
|
|
3236
3236
|
apply: function(t) {
|
|
3237
3237
|
return [t[0] * this.k + this.x, t[1] * this.k + this.y];
|
|
@@ -3261,7 +3261,7 @@ pi.prototype = {
|
|
|
3261
3261
|
return "translate(" + this.x + "," + this.y + ") scale(" + this.k + ")";
|
|
3262
3262
|
}
|
|
3263
3263
|
};
|
|
3264
|
-
|
|
3264
|
+
gi.prototype;
|
|
3265
3265
|
/*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */
|
|
3266
3266
|
const {
|
|
3267
3267
|
entries: rl,
|
|
@@ -3290,7 +3290,7 @@ In || (In = function(e, i, r) {
|
|
|
3290
3290
|
Mn || (Mn = function(e, i) {
|
|
3291
3291
|
return new e(...i);
|
|
3292
3292
|
});
|
|
3293
|
-
const Vi = gt(Array.prototype.forEach), tp = gt(Array.prototype.lastIndexOf), bs = gt(Array.prototype.pop),
|
|
3293
|
+
const Vi = gt(Array.prototype.forEach), tp = gt(Array.prototype.lastIndexOf), bs = gt(Array.prototype.pop), si = gt(Array.prototype.push), ep = gt(Array.prototype.splice), nr = gt(String.prototype.toLowerCase), dn = gt(String.prototype.toString), Ts = gt(String.prototype.match), ai = gt(String.prototype.replace), ip = gt(String.prototype.indexOf), rp = gt(String.prototype.trim), Ft = gt(Object.prototype.hasOwnProperty), ut = gt(RegExp.prototype.test), li = np(TypeError);
|
|
3294
3294
|
function gt(t) {
|
|
3295
3295
|
return function(e) {
|
|
3296
3296
|
e instanceof RegExp && (e.lastIndex = 0);
|
|
@@ -3331,7 +3331,7 @@ function Jt(t) {
|
|
|
3331
3331
|
Ft(t, i) && (Array.isArray(r) ? e[i] = op(r) : r && typeof r == "object" && r.constructor === Object ? e[i] = Jt(r) : e[i] = r);
|
|
3332
3332
|
return e;
|
|
3333
3333
|
}
|
|
3334
|
-
function
|
|
3334
|
+
function ci(t, e) {
|
|
3335
3335
|
for (; t !== null; ) {
|
|
3336
3336
|
const r = Qf(t, e);
|
|
3337
3337
|
if (r) {
|
|
@@ -3367,7 +3367,7 @@ var As = /* @__PURE__ */ Object.freeze({
|
|
|
3367
3367
|
MUSTACHE_EXPR: lp,
|
|
3368
3368
|
TMPLIT_EXPR: hp
|
|
3369
3369
|
});
|
|
3370
|
-
const
|
|
3370
|
+
const hi = {
|
|
3371
3371
|
element: 1,
|
|
3372
3372
|
text: 3,
|
|
3373
3373
|
// Deprecated
|
|
@@ -3411,7 +3411,7 @@ const ci = {
|
|
|
3411
3411
|
function al() {
|
|
3412
3412
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : mp();
|
|
3413
3413
|
const e = (I) => al(I);
|
|
3414
|
-
if (e.version = "3.2.6", e.removed = [], !t || !t.document || t.document.nodeType !==
|
|
3414
|
+
if (e.version = "3.2.6", e.removed = [], !t || !t.document || t.document.nodeType !== hi.document || !t.Element)
|
|
3415
3415
|
return e.isSupported = !1, e;
|
|
3416
3416
|
let {
|
|
3417
3417
|
document: i
|
|
@@ -3426,7 +3426,7 @@ function al() {
|
|
|
3426
3426
|
HTMLFormElement: d,
|
|
3427
3427
|
DOMParser: u,
|
|
3428
3428
|
trustedTypes: f
|
|
3429
|
-
} = t, m = l.prototype, y =
|
|
3429
|
+
} = t, m = l.prototype, y = ci(m, "cloneNode"), _ = ci(m, "remove"), E = ci(m, "nextSibling"), b = ci(m, "childNodes"), R = ci(m, "parentNode");
|
|
3430
3430
|
if (typeof o == "function") {
|
|
3431
3431
|
const I = i.createElement("template");
|
|
3432
3432
|
I.content && I.content.ownerDocument && (i = I.content.ownerDocument);
|
|
@@ -3479,7 +3479,7 @@ function al() {
|
|
|
3479
3479
|
}
|
|
3480
3480
|
})), Tt = null, Bt = null, oe = !0, Et = !0, ot = !1, Lt = !0, St = !1, jt = !0, pe = !1, Qr = !1, tn = !1, Ae = !1, Pi = !1, qi = !1, Fo = !0, Oo = !1;
|
|
3481
3481
|
const zc = "user-content-";
|
|
3482
|
-
let en = !0,
|
|
3482
|
+
let en = !0, ei = !1, Be = {}, Ee = null;
|
|
3483
3483
|
const Io = Y({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
|
|
3484
3484
|
let Mo = null;
|
|
3485
3485
|
const $o = Y({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
@@ -3489,7 +3489,7 @@ function al() {
|
|
|
3489
3489
|
const Wc = Y({}, [zi, Wi, Ut], dn);
|
|
3490
3490
|
let Hi = Y({}, ["mi", "mo", "mn", "ms", "mtext"]), Yi = Y({}, ["annotation-xml"]);
|
|
3491
3491
|
const Hc = Y({}, ["title", "style", "font", "a", "script"]);
|
|
3492
|
-
let
|
|
3492
|
+
let ii = null;
|
|
3493
3493
|
const Yc = ["application/xhtml+xml", "text/html"], jc = "text/html";
|
|
3494
3494
|
let rt = null, Fe = null;
|
|
3495
3495
|
const Uc = i.createElement("form"), No = function(p) {
|
|
@@ -3497,12 +3497,12 @@ function al() {
|
|
|
3497
3497
|
}, sn = function() {
|
|
3498
3498
|
let p = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
3499
3499
|
if (!(Fe && Fe === p)) {
|
|
3500
|
-
if ((!p || typeof p != "object") && (p = {}), p = Jt(p),
|
|
3501
|
-
Yc.indexOf(p.PARSER_MEDIA_TYPE) === -1 ? jc : p.PARSER_MEDIA_TYPE, rt =
|
|
3500
|
+
if ((!p || typeof p != "object") && (p = {}), p = Jt(p), ii = // eslint-disable-next-line unicorn/prefer-includes
|
|
3501
|
+
Yc.indexOf(p.PARSER_MEDIA_TYPE) === -1 ? jc : p.PARSER_MEDIA_TYPE, rt = ii === "application/xhtml+xml" ? dn : nr, z = Ft(p, "ALLOWED_TAGS") ? Y({}, p.ALLOWED_TAGS, rt) : V, j = Ft(p, "ALLOWED_ATTR") ? Y({}, p.ALLOWED_ATTR, rt) : et, on = Ft(p, "ALLOWED_NAMESPACES") ? Y({}, p.ALLOWED_NAMESPACES, dn) : Wc, rn = Ft(p, "ADD_URI_SAFE_ATTR") ? Y(Jt(Do), p.ADD_URI_SAFE_ATTR, rt) : Do, Mo = Ft(p, "ADD_DATA_URI_TAGS") ? Y(Jt($o), p.ADD_DATA_URI_TAGS, rt) : $o, Ee = Ft(p, "FORBID_CONTENTS") ? Y({}, p.FORBID_CONTENTS, rt) : Io, Tt = Ft(p, "FORBID_TAGS") ? Y({}, p.FORBID_TAGS, rt) : Jt({}), Bt = Ft(p, "FORBID_ATTR") ? Y({}, p.FORBID_ATTR, rt) : Jt({}), Be = Ft(p, "USE_PROFILES") ? p.USE_PROFILES : !1, oe = p.ALLOW_ARIA_ATTR !== !1, Et = p.ALLOW_DATA_ATTR !== !1, ot = p.ALLOW_UNKNOWN_PROTOCOLS || !1, Lt = p.ALLOW_SELF_CLOSE_IN_ATTR !== !1, St = p.SAFE_FOR_TEMPLATES || !1, jt = p.SAFE_FOR_XML !== !1, pe = p.WHOLE_DOCUMENT || !1, Ae = p.RETURN_DOM || !1, Pi = p.RETURN_DOM_FRAGMENT || !1, qi = p.RETURN_TRUSTED_TYPE || !1, tn = p.FORCE_BODY || !1, Fo = p.SANITIZE_DOM !== !1, Oo = p.SANITIZE_NAMED_PROPS || !1, en = p.KEEP_CONTENT !== !1, ei = p.IN_PLACE || !1, W = p.ALLOWED_URI_REGEXP || ol, Le = p.NAMESPACE || Ut, Hi = p.MATHML_TEXT_INTEGRATION_POINTS || Hi, Yi = p.HTML_INTEGRATION_POINTS || Yi, X = p.CUSTOM_ELEMENT_HANDLING || {}, p.CUSTOM_ELEMENT_HANDLING && No(p.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (X.tagNameCheck = p.CUSTOM_ELEMENT_HANDLING.tagNameCheck), p.CUSTOM_ELEMENT_HANDLING && No(p.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (X.attributeNameCheck = p.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), p.CUSTOM_ELEMENT_HANDLING && typeof p.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (X.allowCustomizedBuiltInElements = p.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), St && (Et = !1), Pi && (Ae = !0), Be && (z = Y({}, vs), j = [], Be.html === !0 && (Y(z, Ss), Y(j, ks)), Be.svg === !0 && (Y(z, fn), Y(j, mn), Y(j, Ki)), Be.svgFilters === !0 && (Y(z, pn), Y(j, mn), Y(j, Ki)), Be.mathMl === !0 && (Y(z, gn), Y(j, ws), Y(j, Ki))), p.ADD_TAGS && (z === V && (z = Jt(z)), Y(z, p.ADD_TAGS, rt)), p.ADD_ATTR && (j === et && (j = Jt(j)), Y(j, p.ADD_ATTR, rt)), p.ADD_URI_SAFE_ATTR && Y(rn, p.ADD_URI_SAFE_ATTR, rt), p.FORBID_CONTENTS && (Ee === Io && (Ee = Jt(Ee)), Y(Ee, p.FORBID_CONTENTS, rt)), en && (z["#text"] = !0), pe && Y(z, ["html", "head", "body"]), z.table && (Y(z, ["tbody"]), delete Tt.tbody), p.TRUSTED_TYPES_POLICY) {
|
|
3502
3502
|
if (typeof p.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
3503
|
-
throw
|
|
3503
|
+
throw li('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
3504
3504
|
if (typeof p.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
3505
|
-
throw
|
|
3505
|
+
throw li('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
3506
3506
|
C = p.TRUSTED_TYPES_POLICY, v = C.createHTML("");
|
|
3507
3507
|
} else
|
|
3508
3508
|
C === void 0 && (C = yp(f, n)), C !== null && typeof v == "string" && (v = C.createHTML(""));
|
|
@@ -3515,9 +3515,9 @@ function al() {
|
|
|
3515
3515
|
tagName: "template"
|
|
3516
3516
|
});
|
|
3517
3517
|
const B = nr(p.tagName), K = nr(x.tagName);
|
|
3518
|
-
return on[p.namespaceURI] ? p.namespaceURI === Wi ? x.namespaceURI === Ut ? B === "svg" : x.namespaceURI === zi ? B === "svg" && (K === "annotation-xml" || Hi[K]) : !!Ro[B] : p.namespaceURI === zi ? x.namespaceURI === Ut ? B === "math" : x.namespaceURI === Wi ? B === "math" && Yi[K] : !!Po[B] : p.namespaceURI === Ut ? x.namespaceURI === Wi && !Yi[K] || x.namespaceURI === zi && !Hi[K] ? !1 : !Po[B] && (Hc[B] || !Ro[B]) : !!(
|
|
3518
|
+
return on[p.namespaceURI] ? p.namespaceURI === Wi ? x.namespaceURI === Ut ? B === "svg" : x.namespaceURI === zi ? B === "svg" && (K === "annotation-xml" || Hi[K]) : !!Ro[B] : p.namespaceURI === zi ? x.namespaceURI === Ut ? B === "math" : x.namespaceURI === Wi ? B === "math" && Yi[K] : !!Po[B] : p.namespaceURI === Ut ? x.namespaceURI === Wi && !Yi[K] || x.namespaceURI === zi && !Hi[K] ? !1 : !Po[B] && (Hc[B] || !Ro[B]) : !!(ii === "application/xhtml+xml" && on[p.namespaceURI]) : !1;
|
|
3519
3519
|
}, $t = function(p) {
|
|
3520
|
-
|
|
3520
|
+
si(e.removed, {
|
|
3521
3521
|
element: p
|
|
3522
3522
|
});
|
|
3523
3523
|
try {
|
|
@@ -3527,12 +3527,12 @@ function al() {
|
|
|
3527
3527
|
}
|
|
3528
3528
|
}, Oe = function(p, x) {
|
|
3529
3529
|
try {
|
|
3530
|
-
|
|
3530
|
+
si(e.removed, {
|
|
3531
3531
|
attribute: x.getAttributeNode(p),
|
|
3532
3532
|
from: x
|
|
3533
3533
|
});
|
|
3534
3534
|
} catch {
|
|
3535
|
-
|
|
3535
|
+
si(e.removed, {
|
|
3536
3536
|
attribute: null,
|
|
3537
3537
|
from: x
|
|
3538
3538
|
});
|
|
@@ -3556,11 +3556,11 @@ function al() {
|
|
|
3556
3556
|
const it = Ts(p, /^[\r\n\t ]+/);
|
|
3557
3557
|
B = it && it[0];
|
|
3558
3558
|
}
|
|
3559
|
-
|
|
3559
|
+
ii === "application/xhtml+xml" && Le === Ut && (p = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + p + "</body></html>");
|
|
3560
3560
|
const K = C ? C.createHTML(p) : p;
|
|
3561
3561
|
if (Le === Ut)
|
|
3562
3562
|
try {
|
|
3563
|
-
x = new u().parseFromString(K,
|
|
3563
|
+
x = new u().parseFromString(K, ii);
|
|
3564
3564
|
} catch {
|
|
3565
3565
|
}
|
|
3566
3566
|
if (!x || !x.documentElement) {
|
|
@@ -3598,7 +3598,7 @@ function al() {
|
|
|
3598
3598
|
if (Xt(A.uponSanitizeElement, p, {
|
|
3599
3599
|
tagName: B,
|
|
3600
3600
|
allowedTags: z
|
|
3601
|
-
}), jt && p.hasChildNodes() && !Wo(p.firstElementChild) && ut(/<[/\w!]/g, p.innerHTML) && ut(/<[/\w!]/g, p.textContent) || p.nodeType ===
|
|
3601
|
+
}), jt && p.hasChildNodes() && !Wo(p.firstElementChild) && ut(/<[/\w!]/g, p.innerHTML) && ut(/<[/\w!]/g, p.textContent) || p.nodeType === hi.progressingInstruction || jt && p.nodeType === hi.comment && ut(/<[/\w]/g, p.data))
|
|
3602
3602
|
return $t(p), !0;
|
|
3603
3603
|
if (!z[B] || Tt[B]) {
|
|
3604
3604
|
if (!Tt[B] && jo(B) && (X.tagNameCheck instanceof RegExp && ut(X.tagNameCheck, B) || X.tagNameCheck instanceof Function && X.tagNameCheck(B)))
|
|
@@ -3615,9 +3615,9 @@ function al() {
|
|
|
3615
3615
|
}
|
|
3616
3616
|
return $t(p), !0;
|
|
3617
3617
|
}
|
|
3618
|
-
return p instanceof l && !Xc(p) || (B === "noscript" || B === "noembed" || B === "noframes") && ut(/<\/no(script|embed|frames)/i, p.innerHTML) ? ($t(p), !0) : (St && p.nodeType ===
|
|
3619
|
-
x =
|
|
3620
|
-
}), p.textContent !== x && (
|
|
3618
|
+
return p instanceof l && !Xc(p) || (B === "noscript" || B === "noembed" || B === "noframes") && ut(/<\/no(script|embed|frames)/i, p.innerHTML) ? ($t(p), !0) : (St && p.nodeType === hi.text && (x = p.textContent, Vi([tt, ne, P], (K) => {
|
|
3619
|
+
x = ai(x, K, " ");
|
|
3620
|
+
}), p.textContent !== x && (si(e.removed, {
|
|
3621
3621
|
element: p.cloneNode()
|
|
3622
3622
|
}), p.textContent = x)), Xt(A.afterSanitizeElements, p, null), !1);
|
|
3623
3623
|
}, Yo = function(p, x, B) {
|
|
@@ -3635,9 +3635,9 @@ function al() {
|
|
|
3635
3635
|
x === "is" && X.allowCustomizedBuiltInElements && (X.tagNameCheck instanceof RegExp && ut(X.tagNameCheck, B) || X.tagNameCheck instanceof Function && X.tagNameCheck(B)))
|
|
3636
3636
|
) return !1;
|
|
3637
3637
|
} else if (!rn[x]) {
|
|
3638
|
-
if (!ut(W,
|
|
3638
|
+
if (!ut(W, ai(B, k, ""))) {
|
|
3639
3639
|
if (!((x === "src" || x === "xlink:href" || x === "href") && p !== "script" && ip(B, "data:") === 0 && Mo[p])) {
|
|
3640
|
-
if (!(ot && !ut(L,
|
|
3640
|
+
if (!(ot && !ut(L, ai(B, k, "")))) {
|
|
3641
3641
|
if (B)
|
|
3642
3642
|
return !1;
|
|
3643
3643
|
}
|
|
@@ -3669,9 +3669,9 @@ function al() {
|
|
|
3669
3669
|
name: it,
|
|
3670
3670
|
namespaceURI: mt,
|
|
3671
3671
|
value: Gt
|
|
3672
|
-
} = st,
|
|
3672
|
+
} = st, ri = rt(it), ln = Gt;
|
|
3673
3673
|
let at = it === "value" ? ln : rp(ln);
|
|
3674
|
-
if (B.attrName =
|
|
3674
|
+
if (B.attrName = ri, B.attrValue = at, B.keepAttr = !0, B.forceKeepAttr = void 0, Xt(A.uponSanitizeAttribute, p, B), at = B.attrValue, Oo && (ri === "id" || ri === "name") && (Oe(it, p), at = zc + at), jt && ut(/((--!?|])>)|<\/(style|title)/i, at)) {
|
|
3675
3675
|
Oe(it, p);
|
|
3676
3676
|
continue;
|
|
3677
3677
|
}
|
|
@@ -3686,15 +3686,15 @@ function al() {
|
|
|
3686
3686
|
continue;
|
|
3687
3687
|
}
|
|
3688
3688
|
St && Vi([tt, ne, P], (Go) => {
|
|
3689
|
-
at =
|
|
3689
|
+
at = ai(at, Go, " ");
|
|
3690
3690
|
});
|
|
3691
3691
|
const Xo = rt(p.nodeName);
|
|
3692
|
-
if (!Yo(Xo,
|
|
3692
|
+
if (!Yo(Xo, ri, at)) {
|
|
3693
3693
|
Oe(it, p);
|
|
3694
3694
|
continue;
|
|
3695
3695
|
}
|
|
3696
3696
|
if (C && typeof f == "object" && typeof f.getAttributeType == "function" && !mt)
|
|
3697
|
-
switch (f.getAttributeType(Xo,
|
|
3697
|
+
switch (f.getAttributeType(Xo, ri)) {
|
|
3698
3698
|
case "TrustedHTML": {
|
|
3699
3699
|
at = C.createHTML(at);
|
|
3700
3700
|
break;
|
|
@@ -3724,19 +3724,19 @@ function al() {
|
|
|
3724
3724
|
if (nn = !I, nn && (I = "<!-->"), typeof I != "string" && !Wo(I))
|
|
3725
3725
|
if (typeof I.toString == "function") {
|
|
3726
3726
|
if (I = I.toString(), typeof I != "string")
|
|
3727
|
-
throw
|
|
3727
|
+
throw li("dirty is not a string, aborting");
|
|
3728
3728
|
} else
|
|
3729
|
-
throw
|
|
3729
|
+
throw li("toString is not a function");
|
|
3730
3730
|
if (!e.isSupported)
|
|
3731
3731
|
return I;
|
|
3732
|
-
if (Qr || sn(p), e.removed = [], typeof I == "string" && (
|
|
3732
|
+
if (Qr || sn(p), e.removed = [], typeof I == "string" && (ei = !1), ei) {
|
|
3733
3733
|
if (I.nodeName) {
|
|
3734
3734
|
const Gt = rt(I.nodeName);
|
|
3735
3735
|
if (!z[Gt] || Tt[Gt])
|
|
3736
|
-
throw
|
|
3736
|
+
throw li("root node is forbidden and cannot be sanitized in-place");
|
|
3737
3737
|
}
|
|
3738
3738
|
} else if (I instanceof a)
|
|
3739
|
-
x = qo("<!---->"), B = x.ownerDocument.importNode(I, !0), B.nodeType ===
|
|
3739
|
+
x = qo("<!---->"), B = x.ownerDocument.importNode(I, !0), B.nodeType === hi.element && B.nodeName === "BODY" || B.nodeName === "HTML" ? x = B : x.appendChild(B);
|
|
3740
3740
|
else {
|
|
3741
3741
|
if (!Ae && !St && !pe && // eslint-disable-next-line unicorn/prefer-includes
|
|
3742
3742
|
I.indexOf("<") === -1)
|
|
@@ -3745,10 +3745,10 @@ function al() {
|
|
|
3745
3745
|
return Ae ? null : qi ? v : "";
|
|
3746
3746
|
}
|
|
3747
3747
|
x && tn && $t(x.firstChild);
|
|
3748
|
-
const it = zo(
|
|
3748
|
+
const it = zo(ei ? I : x);
|
|
3749
3749
|
for (; K = it.nextNode(); )
|
|
3750
3750
|
Ho(K), Uo(K), K.content instanceof s && Gc(K.content);
|
|
3751
|
-
if (
|
|
3751
|
+
if (ei)
|
|
3752
3752
|
return I;
|
|
3753
3753
|
if (Ae) {
|
|
3754
3754
|
if (Pi)
|
|
@@ -3761,7 +3761,7 @@ function al() {
|
|
|
3761
3761
|
let mt = pe ? x.outerHTML : x.innerHTML;
|
|
3762
3762
|
return pe && z["!doctype"] && x.ownerDocument && x.ownerDocument.doctype && x.ownerDocument.doctype.name && ut(sl, x.ownerDocument.doctype.name) && (mt = "<!DOCTYPE " + x.ownerDocument.doctype.name + `>
|
|
3763
3763
|
` + mt), St && Vi([tt, ne, P], (Gt) => {
|
|
3764
|
-
mt =
|
|
3764
|
+
mt = ai(mt, Gt, " ");
|
|
3765
3765
|
}), C && qi ? C.createHTML(mt) : mt;
|
|
3766
3766
|
}, e.setConfig = function() {
|
|
3767
3767
|
let I = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
@@ -3773,7 +3773,7 @@ function al() {
|
|
|
3773
3773
|
const B = rt(I), K = rt(p);
|
|
3774
3774
|
return Yo(B, K, x);
|
|
3775
3775
|
}, e.addHook = function(I, p) {
|
|
3776
|
-
typeof p == "function" &&
|
|
3776
|
+
typeof p == "function" && si(A[I], p);
|
|
3777
3777
|
}, e.removeHook = function(I, p) {
|
|
3778
3778
|
if (p !== void 0) {
|
|
3779
3779
|
const x = tp(A[I], p);
|
|
@@ -4031,7 +4031,7 @@ const qr = new bp({ r: 0, g: 0, b: 0, a: 0 }, "transparent"), Re = {
|
|
|
4031
4031
|
const { h: e, s: i, l: r, a: n } = t;
|
|
4032
4032
|
return n < 1 ? `hsla(${q.lang.round(e)}, ${q.lang.round(i)}%, ${q.lang.round(r)}%, ${n})` : `hsl(${q.lang.round(e)}, ${q.lang.round(i)}%, ${q.lang.round(r)}%)`;
|
|
4033
4033
|
}
|
|
4034
|
-
},
|
|
4034
|
+
}, _i = {
|
|
4035
4035
|
/* VARIABLES */
|
|
4036
4036
|
colors: {
|
|
4037
4037
|
aliceblue: "#f0f8ff",
|
|
@@ -4185,17 +4185,17 @@ const qr = new bp({ r: 0, g: 0, b: 0, a: 0 }, "transparent"), Re = {
|
|
|
4185
4185
|
/* API */
|
|
4186
4186
|
parse: (t) => {
|
|
4187
4187
|
t = t.toLowerCase();
|
|
4188
|
-
const e =
|
|
4188
|
+
const e = _i.colors[t];
|
|
4189
4189
|
if (e)
|
|
4190
4190
|
return Re.parse(e);
|
|
4191
4191
|
},
|
|
4192
4192
|
stringify: (t) => {
|
|
4193
4193
|
const e = Re.stringify(t);
|
|
4194
|
-
for (const i in
|
|
4195
|
-
if (
|
|
4194
|
+
for (const i in _i.colors)
|
|
4195
|
+
if (_i.colors[i] === e)
|
|
4196
4196
|
return i;
|
|
4197
4197
|
}
|
|
4198
|
-
},
|
|
4198
|
+
}, mi = {
|
|
4199
4199
|
/* VARIABLES */
|
|
4200
4200
|
re: /^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,
|
|
4201
4201
|
/* API */
|
|
@@ -4203,7 +4203,7 @@ const qr = new bp({ r: 0, g: 0, b: 0, a: 0 }, "transparent"), Re = {
|
|
|
4203
4203
|
const e = t.charCodeAt(0);
|
|
4204
4204
|
if (e !== 114 && e !== 82)
|
|
4205
4205
|
return;
|
|
4206
|
-
const i = t.match(
|
|
4206
|
+
const i = t.match(mi.re);
|
|
4207
4207
|
if (!i)
|
|
4208
4208
|
return;
|
|
4209
4209
|
const [, r, n, s, o, a, l, c, h] = i;
|
|
@@ -4221,10 +4221,10 @@ const qr = new bp({ r: 0, g: 0, b: 0, a: 0 }, "transparent"), Re = {
|
|
|
4221
4221
|
}, qt = {
|
|
4222
4222
|
/* VARIABLES */
|
|
4223
4223
|
format: {
|
|
4224
|
-
keyword:
|
|
4224
|
+
keyword: _i,
|
|
4225
4225
|
hex: Re,
|
|
4226
|
-
rgb:
|
|
4227
|
-
rgba:
|
|
4226
|
+
rgb: mi,
|
|
4227
|
+
rgba: mi,
|
|
4228
4228
|
hsl: _e,
|
|
4229
4229
|
hsla: _e
|
|
4230
4230
|
},
|
|
@@ -4232,18 +4232,18 @@ const qr = new bp({ r: 0, g: 0, b: 0, a: 0 }, "transparent"), Re = {
|
|
|
4232
4232
|
parse: (t) => {
|
|
4233
4233
|
if (typeof t != "string")
|
|
4234
4234
|
return t;
|
|
4235
|
-
const e = Re.parse(t) ||
|
|
4235
|
+
const e = Re.parse(t) || mi.parse(t) || _e.parse(t) || _i.parse(t);
|
|
4236
4236
|
if (e)
|
|
4237
4237
|
return e;
|
|
4238
4238
|
throw new Error(`Unsupported color format: "${t}"`);
|
|
4239
4239
|
},
|
|
4240
|
-
stringify: (t) => !t.changed && t.color ? t.color : t.type.is(lt.HSL) || t.data.r === void 0 ? _e.stringify(t) : t.a < 1 || !Number.isInteger(t.r) || !Number.isInteger(t.g) || !Number.isInteger(t.b) ?
|
|
4240
|
+
stringify: (t) => !t.changed && t.color ? t.color : t.type.is(lt.HSL) || t.data.r === void 0 ? _e.stringify(t) : t.a < 1 || !Number.isInteger(t.r) || !Number.isInteger(t.g) || !Number.isInteger(t.b) ? mi.stringify(t) : Re.stringify(t)
|
|
4241
4241
|
}, ll = (t, e) => {
|
|
4242
4242
|
const i = qt.parse(t);
|
|
4243
4243
|
for (const r in e)
|
|
4244
4244
|
i[r] = q.channel.clamp[r](e[r]);
|
|
4245
4245
|
return qt.stringify(i);
|
|
4246
|
-
},
|
|
4246
|
+
}, Ci = (t, e, i = 0, r = 1) => {
|
|
4247
4247
|
if (typeof t != "number")
|
|
4248
4248
|
return ll(t, { a: e });
|
|
4249
4249
|
const n = qr.set({
|
|
@@ -4266,28 +4266,28 @@ const qr = new bp({ r: 0, g: 0, b: 0, a: 0 }, "transparent"), Re = {
|
|
|
4266
4266
|
return ll(t, r);
|
|
4267
4267
|
}, vp = (t, e, i = 50) => {
|
|
4268
4268
|
const { r, g: n, b: s, a: o } = qt.parse(t), { r: a, g: l, b: c, a: h } = qt.parse(e), d = i / 100, u = d * 2 - 1, f = o - h, y = ((u * f === -1 ? u : (u + f) / (1 + u * f)) + 1) / 2, _ = 1 - y, E = r * y + a * _, b = n * y + l * _, R = s * y + c * _, C = o * d + h * (1 - d);
|
|
4269
|
-
return
|
|
4269
|
+
return Ci(E, b, R, C);
|
|
4270
4270
|
}, S = (t, e = 100) => {
|
|
4271
4271
|
const i = qt.parse(t);
|
|
4272
4272
|
return i.r = 255 - i.r, i.g = 255 - i.g, i.b = 255 - i.b, vp(i, t, e);
|
|
4273
4273
|
};
|
|
4274
|
-
var hl = typeof global == "object" && global && global.Object === Object && global, kp = typeof self == "object" && self && self.Object === Object && self, Yt = hl || kp || Function("return this")(), xr = Yt.Symbol, ul = Object.prototype, wp = ul.hasOwnProperty, Ap = ul.toString,
|
|
4274
|
+
var hl = typeof global == "object" && global && global.Object === Object && global, kp = typeof self == "object" && self && self.Object === Object && self, Yt = hl || kp || Function("return this")(), xr = Yt.Symbol, ul = Object.prototype, wp = ul.hasOwnProperty, Ap = ul.toString, ui = xr ? xr.toStringTag : void 0;
|
|
4275
4275
|
function Bp(t) {
|
|
4276
|
-
var e = wp.call(t,
|
|
4276
|
+
var e = wp.call(t, ui), i = t[ui];
|
|
4277
4277
|
try {
|
|
4278
|
-
t[
|
|
4278
|
+
t[ui] = void 0;
|
|
4279
4279
|
var r = !0;
|
|
4280
4280
|
} catch {
|
|
4281
4281
|
}
|
|
4282
4282
|
var n = Ap.call(t);
|
|
4283
|
-
return r && (e ? t[
|
|
4283
|
+
return r && (e ? t[ui] = i : delete t[ui]), n;
|
|
4284
4284
|
}
|
|
4285
4285
|
var Ep = Object.prototype, Lp = Ep.toString;
|
|
4286
4286
|
function Fp(t) {
|
|
4287
4287
|
return Lp.call(t);
|
|
4288
4288
|
}
|
|
4289
4289
|
var Op = "[object Null]", Ip = "[object Undefined]", Es = xr ? xr.toStringTag : void 0;
|
|
4290
|
-
function
|
|
4290
|
+
function Ze(t) {
|
|
4291
4291
|
return t == null ? t === void 0 ? Ip : Op : Es && Es in Object(t) ? Bp(t) : Fp(t);
|
|
4292
4292
|
}
|
|
4293
4293
|
function ve(t) {
|
|
@@ -4298,7 +4298,7 @@ var Mp = "[object AsyncFunction]", $p = "[object Function]", Dp = "[object Gener
|
|
|
4298
4298
|
function ao(t) {
|
|
4299
4299
|
if (!ve(t))
|
|
4300
4300
|
return !1;
|
|
4301
|
-
var e =
|
|
4301
|
+
var e = Ze(t);
|
|
4302
4302
|
return e == $p || e == Dp || e == Mp || e == Np;
|
|
4303
4303
|
}
|
|
4304
4304
|
var yn = Yt["__core-js_shared__"], Ls = function() {
|
|
@@ -4338,9 +4338,9 @@ function we(t, e) {
|
|
|
4338
4338
|
var i = Vp(t, e);
|
|
4339
4339
|
return Gp(i) ? i : void 0;
|
|
4340
4340
|
}
|
|
4341
|
-
var
|
|
4341
|
+
var Bi = we(Object, "create");
|
|
4342
4342
|
function Kp() {
|
|
4343
|
-
this.__data__ =
|
|
4343
|
+
this.__data__ = Bi ? Bi(null) : {}, this.size = 0;
|
|
4344
4344
|
}
|
|
4345
4345
|
function Zp(t) {
|
|
4346
4346
|
var e = this.has(t) && delete this.__data__[t];
|
|
@@ -4349,7 +4349,7 @@ function Zp(t) {
|
|
|
4349
4349
|
var Jp = "__lodash_hash_undefined__", Qp = Object.prototype, tg = Qp.hasOwnProperty;
|
|
4350
4350
|
function eg(t) {
|
|
4351
4351
|
var e = this.__data__;
|
|
4352
|
-
if (
|
|
4352
|
+
if (Bi) {
|
|
4353
4353
|
var i = e[t];
|
|
4354
4354
|
return i === Jp ? void 0 : i;
|
|
4355
4355
|
}
|
|
@@ -4358,12 +4358,12 @@ function eg(t) {
|
|
|
4358
4358
|
var ig = Object.prototype, rg = ig.hasOwnProperty;
|
|
4359
4359
|
function ng(t) {
|
|
4360
4360
|
var e = this.__data__;
|
|
4361
|
-
return
|
|
4361
|
+
return Bi ? e[t] !== void 0 : rg.call(e, t);
|
|
4362
4362
|
}
|
|
4363
4363
|
var og = "__lodash_hash_undefined__";
|
|
4364
4364
|
function sg(t, e) {
|
|
4365
4365
|
var i = this.__data__;
|
|
4366
|
-
return this.size += this.has(t) ? 0 : 1, i[t] =
|
|
4366
|
+
return this.size += this.has(t) ? 0 : 1, i[t] = Bi && e === void 0 ? og : e, this;
|
|
4367
4367
|
}
|
|
4368
4368
|
function Te(t) {
|
|
4369
4369
|
var e = -1, i = t == null ? 0 : t.length;
|
|
@@ -4420,11 +4420,11 @@ re.prototype.delete = hg;
|
|
|
4420
4420
|
re.prototype.get = ug;
|
|
4421
4421
|
re.prototype.has = dg;
|
|
4422
4422
|
re.prototype.set = fg;
|
|
4423
|
-
var
|
|
4423
|
+
var Ei = we(Yt, "Map");
|
|
4424
4424
|
function pg() {
|
|
4425
4425
|
this.size = 0, this.__data__ = {
|
|
4426
4426
|
hash: new Te(),
|
|
4427
|
-
map: new (
|
|
4427
|
+
map: new (Ei || re)(),
|
|
4428
4428
|
string: new Te()
|
|
4429
4429
|
};
|
|
4430
4430
|
}
|
|
@@ -4494,21 +4494,21 @@ function wg(t, e) {
|
|
|
4494
4494
|
var i = this.__data__;
|
|
4495
4495
|
if (i instanceof re) {
|
|
4496
4496
|
var r = i.__data__;
|
|
4497
|
-
if (!
|
|
4497
|
+
if (!Ei || r.length < kg - 1)
|
|
4498
4498
|
return r.push([t, e]), this.size = ++i.size, this;
|
|
4499
4499
|
i = this.__data__ = new fe(r);
|
|
4500
4500
|
}
|
|
4501
4501
|
return i.set(t, e), this.size = i.size, this;
|
|
4502
4502
|
}
|
|
4503
|
-
function
|
|
4503
|
+
function Je(t) {
|
|
4504
4504
|
var e = this.__data__ = new re(t);
|
|
4505
4505
|
this.size = e.size;
|
|
4506
4506
|
}
|
|
4507
|
-
|
|
4508
|
-
|
|
4509
|
-
|
|
4510
|
-
|
|
4511
|
-
|
|
4507
|
+
Je.prototype.clear = bg;
|
|
4508
|
+
Je.prototype.delete = Tg;
|
|
4509
|
+
Je.prototype.get = Sg;
|
|
4510
|
+
Je.prototype.has = vg;
|
|
4511
|
+
Je.prototype.set = wg;
|
|
4512
4512
|
var br = function() {
|
|
4513
4513
|
try {
|
|
4514
4514
|
var t = we(Object, "defineProperty");
|
|
@@ -4590,7 +4590,7 @@ function Ni(t) {
|
|
|
4590
4590
|
}
|
|
4591
4591
|
var Ng = "[object Arguments]";
|
|
4592
4592
|
function Ds(t) {
|
|
4593
|
-
return Ni(t) &&
|
|
4593
|
+
return Ni(t) && Ze(t) == Ng;
|
|
4594
4594
|
}
|
|
4595
4595
|
var gl = Object.prototype, Rg = gl.hasOwnProperty, Pg = gl.propertyIsEnumerable, Tr = Ds(/* @__PURE__ */ function() {
|
|
4596
4596
|
return arguments;
|
|
@@ -4611,7 +4611,7 @@ function Wg() {
|
|
|
4611
4611
|
}
|
|
4612
4612
|
var yl = typeof exports == "object" && exports && !exports.nodeType && exports, Ns = yl && typeof module == "object" && module && !module.nodeType && module, Hg = Ns && Ns.exports === yl, Rs = Hg ? Yt.Buffer : void 0, Yg = Rs ? Rs.isBuffer : void 0, co = Yg || Wg, jg = "[object Object]", Ug = Function.prototype, Xg = Object.prototype, _l = Ug.toString, Gg = Xg.hasOwnProperty, Vg = _l.call(Object);
|
|
4613
4613
|
function Kg(t) {
|
|
4614
|
-
if (!Ni(t) ||
|
|
4614
|
+
if (!Ni(t) || Ze(t) != jg)
|
|
4615
4615
|
return !1;
|
|
4616
4616
|
var e = pl(t);
|
|
4617
4617
|
if (e === null)
|
|
@@ -4623,16 +4623,16 @@ var Zg = "[object Arguments]", Jg = "[object Array]", Qg = "[object Boolean]", t
|
|
|
4623
4623
|
G[dm] = G[fm] = G[pm] = G[gm] = G[mm] = G[ym] = G[_m] = G[Cm] = G[xm] = !0;
|
|
4624
4624
|
G[Zg] = G[Jg] = G[hm] = G[Qg] = G[um] = G[tm] = G[em] = G[im] = G[rm] = G[nm] = G[om] = G[sm] = G[am] = G[lm] = G[cm] = !1;
|
|
4625
4625
|
function bm(t) {
|
|
4626
|
-
return Ni(t) && ml(t.length) && !!G[
|
|
4626
|
+
return Ni(t) && ml(t.length) && !!G[Ze(t)];
|
|
4627
4627
|
}
|
|
4628
4628
|
function Tm(t) {
|
|
4629
4629
|
return function(e) {
|
|
4630
4630
|
return t(e);
|
|
4631
4631
|
};
|
|
4632
4632
|
}
|
|
4633
|
-
var Cl = typeof exports == "object" && exports && !exports.nodeType && exports,
|
|
4633
|
+
var Cl = typeof exports == "object" && exports && !exports.nodeType && exports, xi = Cl && typeof module == "object" && module && !module.nodeType && module, Sm = xi && xi.exports === Cl, _n = Sm && hl.process, Ps = function() {
|
|
4634
4634
|
try {
|
|
4635
|
-
var t =
|
|
4635
|
+
var t = xi && xi.require && xi.require("util").types;
|
|
4636
4636
|
return t || _n && _n.binding && _n.binding("util");
|
|
4637
4637
|
} catch {
|
|
4638
4638
|
}
|
|
@@ -4713,7 +4713,7 @@ function Pm(t, e, i, r, n, s, o) {
|
|
|
4713
4713
|
}
|
|
4714
4714
|
function Tl(t, e, i, r, n) {
|
|
4715
4715
|
t !== e && Bg(e, function(s, o) {
|
|
4716
|
-
if (n || (n = new
|
|
4716
|
+
if (n || (n = new Je()), ve(s))
|
|
4717
4717
|
Pm(t, e, o, i, Tl, r, n);
|
|
4718
4718
|
else {
|
|
4719
4719
|
var a = r ? r(Dn(t, o), s, o + "", t, e, n) : void 0;
|
|
@@ -4820,7 +4820,7 @@ function n0(t) {
|
|
|
4820
4820
|
function Zi(t, e) {
|
|
4821
4821
|
return e.push(t), t;
|
|
4822
4822
|
}
|
|
4823
|
-
var Ur = 1, je = 1, El = 0, At = 0, Z = 0,
|
|
4823
|
+
var Ur = 1, je = 1, El = 0, At = 0, Z = 0, Qe = "";
|
|
4824
4824
|
function fo(t, e, i, r, n, s, o, a) {
|
|
4825
4825
|
return { value: t, root: e, parent: i, type: r, props: n, children: s, line: Ur, column: je, length: o, return: "", siblings: a };
|
|
4826
4826
|
}
|
|
@@ -4828,21 +4828,21 @@ function o0() {
|
|
|
4828
4828
|
return Z;
|
|
4829
4829
|
}
|
|
4830
4830
|
function s0() {
|
|
4831
|
-
return Z = At > 0 ? Pe(
|
|
4831
|
+
return Z = At > 0 ? Pe(Qe, --At) : 0, je--, Z === 10 && (je = 1, Ur--), Z;
|
|
4832
4832
|
}
|
|
4833
4833
|
function It() {
|
|
4834
|
-
return Z = At < El ? Pe(
|
|
4834
|
+
return Z = At < El ? Pe(Qe, At++) : 0, je++, Z === 10 && (je = 1, Ur++), Z;
|
|
4835
4835
|
}
|
|
4836
4836
|
function ce() {
|
|
4837
|
-
return Pe(
|
|
4837
|
+
return Pe(Qe, At);
|
|
4838
4838
|
}
|
|
4839
4839
|
function ar() {
|
|
4840
4840
|
return At;
|
|
4841
4841
|
}
|
|
4842
4842
|
function Xr(t, e) {
|
|
4843
|
-
return Ye(
|
|
4843
|
+
return Ye(Qe, t, e);
|
|
4844
4844
|
}
|
|
4845
|
-
function
|
|
4845
|
+
function Li(t) {
|
|
4846
4846
|
switch (t) {
|
|
4847
4847
|
// \0 \t \n \r \s whitespace token
|
|
4848
4848
|
case 0:
|
|
@@ -4881,10 +4881,10 @@ function Ei(t) {
|
|
|
4881
4881
|
return 0;
|
|
4882
4882
|
}
|
|
4883
4883
|
function a0(t) {
|
|
4884
|
-
return Ur = je = 1, El = Nt(
|
|
4884
|
+
return Ur = je = 1, El = Nt(Qe = t), At = 0, [];
|
|
4885
4885
|
}
|
|
4886
4886
|
function l0(t) {
|
|
4887
|
-
return
|
|
4887
|
+
return Qe = "", t;
|
|
4888
4888
|
}
|
|
4889
4889
|
function Cn(t) {
|
|
4890
4890
|
return Bl(Xr(At - 1, Nn(t === 91 ? t + 2 : t === 40 ? t + 1 : t)));
|
|
@@ -4892,7 +4892,7 @@ function Cn(t) {
|
|
|
4892
4892
|
function c0(t) {
|
|
4893
4893
|
for (; (Z = ce()) && Z < 33; )
|
|
4894
4894
|
It();
|
|
4895
|
-
return
|
|
4895
|
+
return Li(t) > 2 || Li(Z) > 3 ? "" : " ";
|
|
4896
4896
|
}
|
|
4897
4897
|
function h0(t, e) {
|
|
4898
4898
|
for (; --e && It() && !(Z < 48 || Z > 102 || Z > 57 && Z < 65 || Z > 70 && Z < 97); )
|
|
@@ -4928,7 +4928,7 @@ function u0(t, e) {
|
|
|
4928
4928
|
return "/*" + Xr(e, At - 1) + "*" + uo(t === 47 ? t : It());
|
|
4929
4929
|
}
|
|
4930
4930
|
function d0(t) {
|
|
4931
|
-
for (; !
|
|
4931
|
+
for (; !Li(ce()); )
|
|
4932
4932
|
It();
|
|
4933
4933
|
return Xr(t, At);
|
|
4934
4934
|
}
|
|
@@ -4966,7 +4966,7 @@ function lr(t, e, i, r, n, s, o, a, l) {
|
|
|
4966
4966
|
switch (ce()) {
|
|
4967
4967
|
case 42:
|
|
4968
4968
|
case 47:
|
|
4969
|
-
Zi(p0(u0(It(), ar()), e, i, l), l), (
|
|
4969
|
+
Zi(p0(u0(It(), ar()), e, i, l), l), (Li(m || 1) == 5 || Li(ce() || 1) == 5) && Nt(D) && Ye(D, -1, void 0) !== " " && (D += " ");
|
|
4970
4970
|
break;
|
|
4971
4971
|
default:
|
|
4972
4972
|
D += "/";
|
|
@@ -5089,9 +5089,9 @@ function C0(t) {
|
|
|
5089
5089
|
_0.call(t, i) && i != "constructor" && e.push(i);
|
|
5090
5090
|
return e;
|
|
5091
5091
|
}
|
|
5092
|
-
var Pn = we(Yt, "DataView"), qn = we(Yt, "Promise"), zn = we(Yt, "Set"), Wn = we(Yt, "WeakMap"), Ys = "[object Map]", x0 = "[object Object]", js = "[object Promise]", Us = "[object Set]", Xs = "[object WeakMap]", Gs = "[object DataView]", b0 = ke(Pn), T0 = ke(
|
|
5093
|
-
(Pn && ge(new Pn(new ArrayBuffer(1))) != Gs ||
|
|
5094
|
-
var e =
|
|
5092
|
+
var Pn = we(Yt, "DataView"), qn = we(Yt, "Promise"), zn = we(Yt, "Set"), Wn = we(Yt, "WeakMap"), Ys = "[object Map]", x0 = "[object Object]", js = "[object Promise]", Us = "[object Set]", Xs = "[object WeakMap]", Gs = "[object DataView]", b0 = ke(Pn), T0 = ke(Ei), S0 = ke(qn), v0 = ke(zn), k0 = ke(Wn), ge = Ze;
|
|
5093
|
+
(Pn && ge(new Pn(new ArrayBuffer(1))) != Gs || Ei && ge(new Ei()) != Ys || qn && ge(qn.resolve()) != js || zn && ge(new zn()) != Us || Wn && ge(new Wn()) != Xs) && (ge = function(t) {
|
|
5094
|
+
var e = Ze(t), i = e == x0 ? t.constructor : void 0, r = i ? ke(i) : "";
|
|
5095
5095
|
if (r)
|
|
5096
5096
|
switch (r) {
|
|
5097
5097
|
case b0:
|
|
@@ -5173,9 +5173,9 @@ const Ll = (t) => (F0(), He.sanitize(t)), Vs = (t, e) => {
|
|
|
5173
5173
|
r === "antiscript" || r === "strict" ? t = Ll(t) : r !== "loose" && (t = Fl(t), t = t.replace(/</g, "<").replace(/>/g, ">"), t = t.replace(/=/g, "="), t = D0(t));
|
|
5174
5174
|
}
|
|
5175
5175
|
return t;
|
|
5176
|
-
},
|
|
5176
|
+
}, Ue = (t, e) => t && (e.dompurifyConfig ? t = He.sanitize(Vs(t, e), e.dompurifyConfig).toString() : t = He.sanitize(Vs(t, e), {
|
|
5177
5177
|
FORBID_TAGS: ["style"]
|
|
5178
|
-
}).toString(), t), I0 = (t, e) => typeof t == "string" ?
|
|
5178
|
+
}).toString(), t), I0 = (t, e) => typeof t == "string" ? Ue(t, e) : t.flat().map((i) => Ue(i, e)), M0 = (t) => Ri.test(t), $0 = (t) => t.split(Ri), D0 = (t) => t.replace(/#br#/g, "<br/>"), Fl = (t) => t.replace(Ri, "#br#"), N0 = (t) => {
|
|
5179
5179
|
let e = "";
|
|
5180
5180
|
return t && (e = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, e = e.replaceAll(/\(/g, "\\("), e = e.replaceAll(/\)/g, "\\)")), e;
|
|
5181
5181
|
}, Ol = (t) => !(t === !1 || ["false", "null", "0"].includes(String(t).trim().toLowerCase())), R0 = function(...t) {
|
|
@@ -5184,7 +5184,7 @@ const Ll = (t) => (F0(), He.sanitize(t)), Vs = (t, e) => {
|
|
|
5184
5184
|
}, P0 = function(...t) {
|
|
5185
5185
|
const e = t.filter((i) => !isNaN(i));
|
|
5186
5186
|
return Math.min(...e);
|
|
5187
|
-
},
|
|
5187
|
+
}, tT = function(t) {
|
|
5188
5188
|
const e = t.split(/(,)/), i = [];
|
|
5189
5189
|
for (let r = 0; r < e.length; r++) {
|
|
5190
5190
|
let n = e[r];
|
|
@@ -5212,10 +5212,9 @@ const Ll = (t) => (F0(), He.sanitize(t)), Vs = (t, e) => {
|
|
|
5212
5212
|
}, Ks = () => window.MathMLElement !== void 0, Yn = /\$\$(.*)\$\$/g, Zs = (t) => {
|
|
5213
5213
|
var e;
|
|
5214
5214
|
return (((e = t.match(Yn)) == null ? void 0 : e.length) ?? 0) > 0;
|
|
5215
|
-
},
|
|
5216
|
-
t = await W0(t, e);
|
|
5215
|
+
}, eT = async (t, e) => {
|
|
5217
5216
|
const i = document.createElement("div");
|
|
5218
|
-
i.innerHTML = t, i.id = "katex-temp", i.style.visibility = "hidden", i.style.position = "absolute", i.style.top = "0";
|
|
5217
|
+
i.innerHTML = await H0(t, e), i.id = "katex-temp", i.style.visibility = "hidden", i.style.position = "absolute", i.style.top = "0";
|
|
5219
5218
|
const r = document.querySelector("body");
|
|
5220
5219
|
r == null || r.insertAdjacentElement("beforeend", i);
|
|
5221
5220
|
const n = { width: i.clientWidth, height: i.clientHeight };
|
|
@@ -5240,9 +5239,9 @@ const Ll = (t) => (F0(), He.sanitize(t)), Vs = (t, e) => {
|
|
|
5240
5239
|
output: Ks() ? "mathml" : "htmlAndMathml"
|
|
5241
5240
|
}).replace(/\n/g, " ").replace(/<annotation.*<\/annotation>/g, "")
|
|
5242
5241
|
);
|
|
5243
|
-
}, go = {
|
|
5242
|
+
}, H0 = async (t, e) => Ue(await W0(t, e), e), go = {
|
|
5244
5243
|
getRows: L0,
|
|
5245
|
-
sanitizeText:
|
|
5244
|
+
sanitizeText: Ue,
|
|
5246
5245
|
sanitizeTextOrArray: I0,
|
|
5247
5246
|
hasBreaks: M0,
|
|
5248
5247
|
splitBreaks: $0,
|
|
@@ -5253,7 +5252,7 @@ const Ll = (t) => (F0(), He.sanitize(t)), Vs = (t, e) => {
|
|
|
5253
5252
|
getMax: R0,
|
|
5254
5253
|
getMin: P0
|
|
5255
5254
|
}, ft = (t, e) => e ? g(t, { s: -40, l: 10 }) : g(t, { s: -40, l: -10 }), Gr = "#ffffff", Vr = "#f2f2f2";
|
|
5256
|
-
let
|
|
5255
|
+
let Y0 = class {
|
|
5257
5256
|
constructor() {
|
|
5258
5257
|
this.background = "#f4f4f4", this.primaryColor = "#fff4dd", this.noteBkgColor = "#fff5ad", this.noteTextColor = "#333", this.THEME_COLOR_LIMIT = 12, this.fontFamily = '"trebuchet ms", verdana, arial, sans-serif', this.fontSize = "16px";
|
|
5259
5258
|
}
|
|
@@ -5302,13 +5301,13 @@ let H0 = class {
|
|
|
5302
5301
|
});
|
|
5303
5302
|
}
|
|
5304
5303
|
};
|
|
5305
|
-
const
|
|
5306
|
-
const e = new
|
|
5304
|
+
const j0 = (t) => {
|
|
5305
|
+
const e = new Y0();
|
|
5307
5306
|
return e.calculate(t), e;
|
|
5308
5307
|
};
|
|
5309
|
-
let
|
|
5308
|
+
let U0 = class {
|
|
5310
5309
|
constructor() {
|
|
5311
|
-
this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = F(this.primaryColor, 16), this.tertiaryColor = g(this.primaryColor, { h: -160 }), this.primaryBorderColor = S(this.background), this.secondaryBorderColor = ft(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = ft(this.tertiaryColor, this.darkMode), this.primaryTextColor = S(this.primaryColor), this.secondaryTextColor = S(this.secondaryColor), this.tertiaryTextColor = S(this.tertiaryColor), this.lineColor = S(this.background), this.textColor = S(this.background), this.mainBkg = "#1f2020", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = F(S("#323D47"), 10), this.lineColor = "calculated", this.border1 = "#81B1DB", this.border2 =
|
|
5310
|
+
this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = F(this.primaryColor, 16), this.tertiaryColor = g(this.primaryColor, { h: -160 }), this.primaryBorderColor = S(this.background), this.secondaryBorderColor = ft(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = ft(this.tertiaryColor, this.darkMode), this.primaryTextColor = S(this.primaryColor), this.secondaryTextColor = S(this.secondaryColor), this.tertiaryTextColor = S(this.tertiaryColor), this.lineColor = S(this.background), this.textColor = S(this.background), this.mainBkg = "#1f2020", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = F(S("#323D47"), 10), this.lineColor = "calculated", this.border1 = "#81B1DB", this.border2 = Ci(255, 255, 255, 0.25), this.arrowheadColor = "calculated", this.fontFamily = '"trebuchet ms", verdana, arial, sans-serif', this.fontSize = "16px", this.labelBackground = "#181818", this.textColor = "#ccc", this.THEME_COLOR_LIMIT = 12, this.nodeBkg = "calculated", this.nodeBorder = "calculated", this.clusterBkg = "calculated", this.clusterBorder = "calculated", this.defaultLinkColor = "calculated", this.titleColor = "#F9FFFE", this.edgeLabelBackground = "calculated", this.actorBorder = "calculated", this.actorBkg = "calculated", this.actorTextColor = "calculated", this.actorLineColor = "calculated", this.signalColor = "calculated", this.signalTextColor = "calculated", this.labelBoxBkgColor = "calculated", this.labelBoxBorderColor = "calculated", this.labelTextColor = "calculated", this.loopTextColor = "calculated", this.noteBorderColor = "calculated", this.noteBkgColor = "#fff5ad", this.noteTextColor = "calculated", this.activationBorderColor = "calculated", this.activationBkgColor = "calculated", this.sequenceNumberColor = "black", this.sectionBkgColor = N("#EAE8D9", 30), this.altSectionBkgColor = "calculated", this.sectionBkgColor2 = "#EAE8D9", this.excludeBkgColor = N(this.sectionBkgColor, 10), this.taskBorderColor = Ci(255, 255, 255, 70), this.taskBkgColor = "calculated", this.taskTextColor = "calculated", this.taskTextLightColor = "calculated", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = Ci(255, 255, 255, 50), this.activeTaskBkgColor = "#81B1DB", this.gridColor = "calculated", this.doneTaskBkgColor = "calculated", this.doneTaskBorderColor = "grey", this.critBorderColor = "#E83737", this.critBkgColor = "#E83737", this.taskTextDarkColor = "calculated", this.todayLineColor = "#DB5757", this.personBorder = this.primaryBorderColor, this.personBkg = this.mainBkg, this.labelColor = "calculated", this.errorBkgColor = "#a44141", this.errorTextColor = "#ddd";
|
|
5312
5311
|
}
|
|
5313
5312
|
updateColors() {
|
|
5314
5313
|
var e, i, r, n, s, o, a, l, c, h, d;
|
|
@@ -5351,13 +5350,13 @@ let j0 = class {
|
|
|
5351
5350
|
});
|
|
5352
5351
|
}
|
|
5353
5352
|
};
|
|
5354
|
-
const
|
|
5355
|
-
const e = new
|
|
5353
|
+
const X0 = (t) => {
|
|
5354
|
+
const e = new U0();
|
|
5356
5355
|
return e.calculate(t), e;
|
|
5357
5356
|
};
|
|
5358
|
-
let
|
|
5357
|
+
let G0 = class {
|
|
5359
5358
|
constructor() {
|
|
5360
|
-
this.background = "#f4f4f4", this.primaryColor = "#ECECFF", this.secondaryColor = g(this.primaryColor, { h: 120 }), this.secondaryColor = "#ffffde", this.tertiaryColor = g(this.primaryColor, { h: -160 }), this.primaryBorderColor = ft(this.primaryColor, this.darkMode), this.secondaryBorderColor = ft(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = ft(this.tertiaryColor, this.darkMode), this.primaryTextColor = S(this.primaryColor), this.secondaryTextColor = S(this.secondaryColor), this.tertiaryTextColor = S(this.tertiaryColor), this.lineColor = S(this.background), this.textColor = S(this.background), this.background = "white", this.mainBkg = "#ECECFF", this.secondBkg = "#ffffde", this.lineColor = "#333333", this.border1 = "#9370DB", this.border2 = "#aaaa33", this.arrowheadColor = "#333333", this.fontFamily = '"trebuchet ms", verdana, arial, sans-serif', this.fontSize = "16px", this.labelBackground = "#e8e8e8", this.textColor = "#333", this.THEME_COLOR_LIMIT = 12, this.nodeBkg = "calculated", this.nodeBorder = "calculated", this.clusterBkg = "calculated", this.clusterBorder = "calculated", this.defaultLinkColor = "calculated", this.titleColor = "calculated", this.edgeLabelBackground = "calculated", this.actorBorder = "calculated", this.actorBkg = "calculated", this.actorTextColor = "black", this.actorLineColor = "grey", this.signalColor = "calculated", this.signalTextColor = "calculated", this.labelBoxBkgColor = "calculated", this.labelBoxBorderColor = "calculated", this.labelTextColor = "calculated", this.loopTextColor = "calculated", this.noteBorderColor = "calculated", this.noteBkgColor = "#fff5ad", this.noteTextColor = "calculated", this.activationBorderColor = "#666", this.activationBkgColor = "#f4f4f4", this.sequenceNumberColor = "white", this.sectionBkgColor = "calculated", this.altSectionBkgColor = "calculated", this.sectionBkgColor2 = "calculated", this.excludeBkgColor = "#eeeeee", this.taskBorderColor = "calculated", this.taskBkgColor = "calculated", this.taskTextLightColor = "calculated", this.taskTextColor = this.taskTextLightColor, this.taskTextDarkColor = "calculated", this.taskTextOutsideColor = this.taskTextDarkColor, this.taskTextClickableColor = "calculated", this.activeTaskBorderColor = "calculated", this.activeTaskBkgColor = "calculated", this.gridColor = "calculated", this.doneTaskBkgColor = "calculated", this.doneTaskBorderColor = "calculated", this.critBorderColor = "calculated", this.critBkgColor = "calculated", this.todayLineColor = "calculated", this.sectionBkgColor =
|
|
5359
|
+
this.background = "#f4f4f4", this.primaryColor = "#ECECFF", this.secondaryColor = g(this.primaryColor, { h: 120 }), this.secondaryColor = "#ffffde", this.tertiaryColor = g(this.primaryColor, { h: -160 }), this.primaryBorderColor = ft(this.primaryColor, this.darkMode), this.secondaryBorderColor = ft(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = ft(this.tertiaryColor, this.darkMode), this.primaryTextColor = S(this.primaryColor), this.secondaryTextColor = S(this.secondaryColor), this.tertiaryTextColor = S(this.tertiaryColor), this.lineColor = S(this.background), this.textColor = S(this.background), this.background = "white", this.mainBkg = "#ECECFF", this.secondBkg = "#ffffde", this.lineColor = "#333333", this.border1 = "#9370DB", this.border2 = "#aaaa33", this.arrowheadColor = "#333333", this.fontFamily = '"trebuchet ms", verdana, arial, sans-serif', this.fontSize = "16px", this.labelBackground = "#e8e8e8", this.textColor = "#333", this.THEME_COLOR_LIMIT = 12, this.nodeBkg = "calculated", this.nodeBorder = "calculated", this.clusterBkg = "calculated", this.clusterBorder = "calculated", this.defaultLinkColor = "calculated", this.titleColor = "calculated", this.edgeLabelBackground = "calculated", this.actorBorder = "calculated", this.actorBkg = "calculated", this.actorTextColor = "black", this.actorLineColor = "grey", this.signalColor = "calculated", this.signalTextColor = "calculated", this.labelBoxBkgColor = "calculated", this.labelBoxBorderColor = "calculated", this.labelTextColor = "calculated", this.loopTextColor = "calculated", this.noteBorderColor = "calculated", this.noteBkgColor = "#fff5ad", this.noteTextColor = "calculated", this.activationBorderColor = "#666", this.activationBkgColor = "#f4f4f4", this.sequenceNumberColor = "white", this.sectionBkgColor = "calculated", this.altSectionBkgColor = "calculated", this.sectionBkgColor2 = "calculated", this.excludeBkgColor = "#eeeeee", this.taskBorderColor = "calculated", this.taskBkgColor = "calculated", this.taskTextLightColor = "calculated", this.taskTextColor = this.taskTextLightColor, this.taskTextDarkColor = "calculated", this.taskTextOutsideColor = this.taskTextDarkColor, this.taskTextClickableColor = "calculated", this.activeTaskBorderColor = "calculated", this.activeTaskBkgColor = "calculated", this.gridColor = "calculated", this.doneTaskBkgColor = "calculated", this.doneTaskBorderColor = "calculated", this.critBorderColor = "calculated", this.critBkgColor = "calculated", this.todayLineColor = "calculated", this.sectionBkgColor = Ci(102, 102, 255, 0.49), this.altSectionBkgColor = "white", this.sectionBkgColor2 = "#fff400", this.taskBorderColor = "#534fbc", this.taskBkgColor = "#8a90dd", this.taskTextLightColor = "white", this.taskTextColor = "calculated", this.taskTextDarkColor = "black", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = "#534fbc", this.activeTaskBkgColor = "#bfc7ff", this.gridColor = "lightgrey", this.doneTaskBkgColor = "lightgrey", this.doneTaskBorderColor = "grey", this.critBorderColor = "#ff8888", this.critBkgColor = "red", this.todayLineColor = "red", this.personBorder = this.primaryBorderColor, this.personBkg = this.mainBkg, this.labelColor = "black", this.errorBkgColor = "#552222", this.errorTextColor = "#552222", this.updateColors();
|
|
5361
5360
|
}
|
|
5362
5361
|
updateColors() {
|
|
5363
5362
|
var e, i, r, n, s, o, a, l, c, h, d;
|
|
@@ -5400,11 +5399,11 @@ let X0 = class {
|
|
|
5400
5399
|
});
|
|
5401
5400
|
}
|
|
5402
5401
|
};
|
|
5403
|
-
const
|
|
5404
|
-
const e = new
|
|
5402
|
+
const V0 = (t) => {
|
|
5403
|
+
const e = new G0();
|
|
5405
5404
|
return e.calculate(t), e;
|
|
5406
5405
|
};
|
|
5407
|
-
let
|
|
5406
|
+
let K0 = class {
|
|
5408
5407
|
constructor() {
|
|
5409
5408
|
this.background = "#f4f4f4", this.primaryColor = "#cde498", this.secondaryColor = "#cdffb2", this.background = "white", this.mainBkg = "#cde498", this.secondBkg = "#cdffb2", this.lineColor = "green", this.border1 = "#13540c", this.border2 = "#6eaa49", this.arrowheadColor = "green", this.fontFamily = '"trebuchet ms", verdana, arial, sans-serif', this.fontSize = "16px", this.tertiaryColor = F("#cde498", 10), this.primaryBorderColor = ft(this.primaryColor, this.darkMode), this.secondaryBorderColor = ft(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = ft(this.tertiaryColor, this.darkMode), this.primaryTextColor = S(this.primaryColor), this.secondaryTextColor = S(this.secondaryColor), this.tertiaryTextColor = S(this.primaryColor), this.lineColor = S(this.background), this.textColor = S(this.background), this.THEME_COLOR_LIMIT = 12, this.nodeBkg = "calculated", this.nodeBorder = "calculated", this.clusterBkg = "calculated", this.clusterBorder = "calculated", this.defaultLinkColor = "calculated", this.titleColor = "#333", this.edgeLabelBackground = "#e8e8e8", this.actorBorder = "calculated", this.actorBkg = "calculated", this.actorTextColor = "black", this.actorLineColor = "grey", this.signalColor = "#333", this.signalTextColor = "#333", this.labelBoxBkgColor = "calculated", this.labelBoxBorderColor = "#326932", this.labelTextColor = "calculated", this.loopTextColor = "calculated", this.noteBorderColor = "calculated", this.noteBkgColor = "#fff5ad", this.noteTextColor = "calculated", this.activationBorderColor = "#666", this.activationBkgColor = "#f4f4f4", this.sequenceNumberColor = "white", this.sectionBkgColor = "#6eaa49", this.altSectionBkgColor = "white", this.sectionBkgColor2 = "#6eaa49", this.excludeBkgColor = "#eeeeee", this.taskBorderColor = "calculated", this.taskBkgColor = "#487e3a", this.taskTextLightColor = "white", this.taskTextColor = "calculated", this.taskTextDarkColor = "black", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = "calculated", this.activeTaskBkgColor = "calculated", this.gridColor = "lightgrey", this.doneTaskBkgColor = "lightgrey", this.doneTaskBorderColor = "grey", this.critBorderColor = "#ff8888", this.critBkgColor = "red", this.todayLineColor = "red", this.personBorder = this.primaryBorderColor, this.personBkg = this.mainBkg, this.labelColor = "black", this.errorBkgColor = "#552222", this.errorTextColor = "#552222";
|
|
5410
5409
|
}
|
|
@@ -5447,11 +5446,11 @@ let V0 = class {
|
|
|
5447
5446
|
});
|
|
5448
5447
|
}
|
|
5449
5448
|
};
|
|
5450
|
-
const
|
|
5451
|
-
const e = new
|
|
5449
|
+
const Z0 = (t) => {
|
|
5450
|
+
const e = new K0();
|
|
5452
5451
|
return e.calculate(t), e;
|
|
5453
5452
|
};
|
|
5454
|
-
class
|
|
5453
|
+
class J0 {
|
|
5455
5454
|
constructor() {
|
|
5456
5455
|
this.primaryColor = "#eee", this.contrast = "#707070", this.secondaryColor = F(this.contrast, 55), this.background = "#ffffff", this.tertiaryColor = g(this.primaryColor, { h: -160 }), this.primaryBorderColor = ft(this.primaryColor, this.darkMode), this.secondaryBorderColor = ft(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = ft(this.tertiaryColor, this.darkMode), this.primaryTextColor = S(this.primaryColor), this.secondaryTextColor = S(this.secondaryColor), this.tertiaryTextColor = S(this.tertiaryColor), this.lineColor = S(this.background), this.textColor = S(this.background), this.mainBkg = "#eee", this.secondBkg = "calculated", this.lineColor = "#666", this.border1 = "#999", this.border2 = "calculated", this.note = "#ffa", this.text = "#333", this.critical = "#d42", this.done = "#bbb", this.arrowheadColor = "#333333", this.fontFamily = '"trebuchet ms", verdana, arial, sans-serif', this.fontSize = "16px", this.THEME_COLOR_LIMIT = 12, this.nodeBkg = "calculated", this.nodeBorder = "calculated", this.clusterBkg = "calculated", this.clusterBorder = "calculated", this.defaultLinkColor = "calculated", this.titleColor = "calculated", this.edgeLabelBackground = "white", this.actorBorder = "calculated", this.actorBkg = "calculated", this.actorTextColor = "calculated", this.actorLineColor = "calculated", this.signalColor = "calculated", this.signalTextColor = "calculated", this.labelBoxBkgColor = "calculated", this.labelBoxBorderColor = "calculated", this.labelTextColor = "calculated", this.loopTextColor = "calculated", this.noteBorderColor = "calculated", this.noteBkgColor = "calculated", this.noteTextColor = "calculated", this.activationBorderColor = "#666", this.activationBkgColor = "#f4f4f4", this.sequenceNumberColor = "white", this.sectionBkgColor = "calculated", this.altSectionBkgColor = "white", this.sectionBkgColor2 = "calculated", this.excludeBkgColor = "#eeeeee", this.taskBorderColor = "calculated", this.taskBkgColor = "calculated", this.taskTextLightColor = "white", this.taskTextColor = "calculated", this.taskTextDarkColor = "calculated", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = "calculated", this.activeTaskBkgColor = "calculated", this.gridColor = "calculated", this.doneTaskBkgColor = "calculated", this.doneTaskBorderColor = "calculated", this.critBkgColor = "calculated", this.critBorderColor = "calculated", this.todayLineColor = "calculated", this.personBorder = this.primaryBorderColor, this.personBkg = this.mainBkg, this.labelColor = "black", this.errorBkgColor = "#552222", this.errorTextColor = "#552222";
|
|
5457
5456
|
}
|
|
@@ -5497,24 +5496,24 @@ class Z0 {
|
|
|
5497
5496
|
});
|
|
5498
5497
|
}
|
|
5499
5498
|
}
|
|
5500
|
-
const
|
|
5501
|
-
const e = new
|
|
5499
|
+
const Q0 = (t) => {
|
|
5500
|
+
const e = new J0();
|
|
5502
5501
|
return e.calculate(t), e;
|
|
5503
5502
|
}, ee = {
|
|
5504
5503
|
base: {
|
|
5505
|
-
getThemeVariables:
|
|
5504
|
+
getThemeVariables: j0
|
|
5506
5505
|
},
|
|
5507
5506
|
dark: {
|
|
5508
|
-
getThemeVariables:
|
|
5507
|
+
getThemeVariables: X0
|
|
5509
5508
|
},
|
|
5510
5509
|
default: {
|
|
5511
|
-
getThemeVariables:
|
|
5510
|
+
getThemeVariables: V0
|
|
5512
5511
|
},
|
|
5513
5512
|
forest: {
|
|
5514
|
-
getThemeVariables:
|
|
5513
|
+
getThemeVariables: Z0
|
|
5515
5514
|
},
|
|
5516
5515
|
neutral: {
|
|
5517
|
-
getThemeVariables:
|
|
5516
|
+
getThemeVariables: Q0
|
|
5518
5517
|
}
|
|
5519
5518
|
}, Zt = {
|
|
5520
5519
|
flowchart: {
|
|
@@ -6180,14 +6179,14 @@ const J0 = (t) => {
|
|
|
6180
6179
|
// TODO: can we make this default to `true` instead?
|
|
6181
6180
|
useMaxWidth: !1
|
|
6182
6181
|
}
|
|
6183
|
-
}, Ml = (t, e = "") => Object.keys(t).reduce((i, r) => Array.isArray(t[r]) ? i : typeof t[r] == "object" && t[r] !== null ? [...i, e + r, ...Ml(t[r], "")] : [...i, e + r], []),
|
|
6182
|
+
}, Ml = (t, e = "") => Object.keys(t).reduce((i, r) => Array.isArray(t[r]) ? i : typeof t[r] == "object" && t[r] !== null ? [...i, e + r, ...Ml(t[r], "")] : [...i, e + r], []), ty = new Set(Ml(Il, "")), ey = Il, vr = (t) => {
|
|
6184
6183
|
if ($.debug("sanitizeDirective called with", t), !(typeof t != "object" || t == null)) {
|
|
6185
6184
|
if (Array.isArray(t)) {
|
|
6186
6185
|
t.forEach((e) => vr(e));
|
|
6187
6186
|
return;
|
|
6188
6187
|
}
|
|
6189
6188
|
for (const e of Object.keys(t)) {
|
|
6190
|
-
if ($.debug("Checking key", e), e.startsWith("__") || e.includes("proto") || e.includes("constr") || !
|
|
6189
|
+
if ($.debug("Checking key", e), e.startsWith("__") || e.includes("proto") || e.includes("constr") || !ty.has(e) || t[e] == null) {
|
|
6191
6190
|
$.debug("sanitize deleting key: ", e), delete t[e];
|
|
6192
6191
|
continue;
|
|
6193
6192
|
}
|
|
@@ -6197,7 +6196,7 @@ const J0 = (t) => {
|
|
|
6197
6196
|
}
|
|
6198
6197
|
const i = ["themeCSS", "fontFamily", "altFontFamily"];
|
|
6199
6198
|
for (const r of i)
|
|
6200
|
-
e.includes(r) && ($.debug("sanitizing css option", e), t[e] =
|
|
6199
|
+
e.includes(r) && ($.debug("sanitizing css option", e), t[e] = iy(t[e]));
|
|
6201
6200
|
}
|
|
6202
6201
|
if (t.themeVariables)
|
|
6203
6202
|
for (const e of Object.keys(t.themeVariables)) {
|
|
@@ -6206,7 +6205,7 @@ const J0 = (t) => {
|
|
|
6206
6205
|
}
|
|
6207
6206
|
$.debug("After sanitization", t);
|
|
6208
6207
|
}
|
|
6209
|
-
},
|
|
6208
|
+
}, iy = (t) => {
|
|
6210
6209
|
let e = 0, i = 0;
|
|
6211
6210
|
for (const r of t) {
|
|
6212
6211
|
if (e < i)
|
|
@@ -6214,16 +6213,16 @@ const J0 = (t) => {
|
|
|
6214
6213
|
r === "{" ? e++ : r === "}" && i++;
|
|
6215
6214
|
}
|
|
6216
6215
|
return e !== i ? "{ /* ERROR: Unbalanced CSS */ }" : t;
|
|
6217
|
-
}, $l = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,
|
|
6216
|
+
}, $l = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, bi = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi, ry = /\s*%%.*\n/gm;
|
|
6218
6217
|
class Dl extends Error {
|
|
6219
6218
|
constructor(e) {
|
|
6220
6219
|
super(e), this.name = "UnknownDiagramError";
|
|
6221
6220
|
}
|
|
6222
6221
|
}
|
|
6223
|
-
const
|
|
6224
|
-
t = t.replace($l, "").replace(
|
|
6222
|
+
const Xe = {}, Kr = function(t, e) {
|
|
6223
|
+
t = t.replace($l, "").replace(bi, "").replace(ry, `
|
|
6225
6224
|
`);
|
|
6226
|
-
for (const [i, { detector: r }] of Object.entries(
|
|
6225
|
+
for (const [i, { detector: r }] of Object.entries(Xe))
|
|
6227
6226
|
if (r(t, e))
|
|
6228
6227
|
return i;
|
|
6229
6228
|
throw new Dl(
|
|
@@ -6233,15 +6232,15 @@ const Ue = {}, Kr = function(t, e) {
|
|
|
6233
6232
|
for (const { id: e, detector: i, loader: r } of t)
|
|
6234
6233
|
Rl(e, i, r);
|
|
6235
6234
|
}, Rl = (t, e, i) => {
|
|
6236
|
-
|
|
6237
|
-
},
|
|
6235
|
+
Xe[t] ? $.error(`Detector with key ${t} already exists`) : Xe[t] = { detector: e, loader: i }, $.debug(`Detector with key ${t} added${i ? " with loader" : ""}`);
|
|
6236
|
+
}, ny = (t) => Xe[t].loader, jn = (t, e, { depth: i = 2, clobber: r = !1 } = {}) => {
|
|
6238
6237
|
const n = { depth: i, clobber: r };
|
|
6239
6238
|
return Array.isArray(e) && !Array.isArray(t) ? (e.forEach((s) => jn(t, s, n)), t) : Array.isArray(e) && Array.isArray(t) ? (e.forEach((s) => {
|
|
6240
6239
|
t.includes(s) || t.push(s);
|
|
6241
6240
|
}), t) : t === void 0 || i <= 0 ? t != null && typeof t == "object" && typeof e == "object" ? Object.assign(t, e) : e : (e !== void 0 && typeof t == "object" && typeof e == "object" && Object.keys(e).forEach((s) => {
|
|
6242
6241
|
typeof e[s] == "object" && (t[s] === void 0 || typeof t[s] == "object") ? (t[s] === void 0 && (t[s] = Array.isArray(e[s]) ? [] : {}), t[s] = jn(t[s], e[s], { depth: i - 1, clobber: r })) : (r || typeof t[s] != "object" && typeof e[s] != "object") && (t[s] = e[s]);
|
|
6243
6242
|
}), t);
|
|
6244
|
-
}, ct = jn,
|
|
6243
|
+
}, ct = jn, oy = "", sy = {
|
|
6245
6244
|
curveBasis: Mf,
|
|
6246
6245
|
curveBasisClosed: $f,
|
|
6247
6246
|
curveBasisOpen: Df,
|
|
@@ -6262,7 +6261,7 @@ const Ue = {}, Kr = function(t, e) {
|
|
|
6262
6261
|
curveStep: Gf,
|
|
6263
6262
|
curveStepAfter: Kf,
|
|
6264
6263
|
curveStepBefore: Vf
|
|
6265
|
-
},
|
|
6264
|
+
}, ay = /\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi, ly = function(t, e) {
|
|
6266
6265
|
const i = Pl(t, /(?:init\b)|(?:initialize\b)/);
|
|
6267
6266
|
let r = {};
|
|
6268
6267
|
if (Array.isArray(i)) {
|
|
@@ -6278,7 +6277,7 @@ const Ue = {}, Kr = function(t, e) {
|
|
|
6278
6277
|
}, Pl = function(t, e = null) {
|
|
6279
6278
|
try {
|
|
6280
6279
|
const i = new RegExp(
|
|
6281
|
-
`[%]{2}(?![{]${
|
|
6280
|
+
`[%]{2}(?![{]${ay.source})(?=[}][%]{2}).*
|
|
6282
6281
|
`,
|
|
6283
6282
|
"ig"
|
|
6284
6283
|
);
|
|
@@ -6287,8 +6286,8 @@ const Ue = {}, Kr = function(t, e) {
|
|
|
6287
6286
|
);
|
|
6288
6287
|
let r;
|
|
6289
6288
|
const n = [];
|
|
6290
|
-
for (; (r =
|
|
6291
|
-
if (r.index ===
|
|
6289
|
+
for (; (r = bi.exec(t)) !== null; )
|
|
6290
|
+
if (r.index === bi.lastIndex && bi.lastIndex++, r && !e || e && r[1] && r[1].match(e) || e && r[2] && r[2].match(e)) {
|
|
6292
6291
|
const s = r[1] ? r[1] : r[2], o = r[3] ? r[3].trim() : r[4] ? JSON.parse(r[4].trim()) : null;
|
|
6293
6292
|
n.push({ type: s, args: o });
|
|
6294
6293
|
}
|
|
@@ -6298,26 +6297,26 @@ const Ue = {}, Kr = function(t, e) {
|
|
|
6298
6297
|
`ERROR: ${i.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`
|
|
6299
6298
|
), { type: void 0, args: null };
|
|
6300
6299
|
}
|
|
6301
|
-
},
|
|
6302
|
-
return t.replace(
|
|
6303
|
-
},
|
|
6300
|
+
}, cy = function(t) {
|
|
6301
|
+
return t.replace(bi, "");
|
|
6302
|
+
}, hy = function(t, e) {
|
|
6304
6303
|
for (const [i, r] of e.entries())
|
|
6305
6304
|
if (r.match(t))
|
|
6306
6305
|
return i;
|
|
6307
6306
|
return -1;
|
|
6308
6307
|
};
|
|
6309
|
-
function
|
|
6308
|
+
function uy(t, e) {
|
|
6310
6309
|
if (!t)
|
|
6311
6310
|
return e;
|
|
6312
6311
|
const i = `curve${t.charAt(0).toUpperCase() + t.slice(1)}`;
|
|
6313
|
-
return
|
|
6312
|
+
return sy[i] ?? e;
|
|
6314
6313
|
}
|
|
6315
|
-
function
|
|
6314
|
+
function dy(t, e) {
|
|
6316
6315
|
const i = t.trim();
|
|
6317
6316
|
if (i)
|
|
6318
6317
|
return e.securityLevel !== "loose" ? Vc.sanitizeUrl(i) : i;
|
|
6319
6318
|
}
|
|
6320
|
-
const
|
|
6319
|
+
const fy = (t, ...e) => {
|
|
6321
6320
|
const i = t.split("."), r = i.length - 1, n = i[r];
|
|
6322
6321
|
let s = window;
|
|
6323
6322
|
for (let o = 0; o < r; o++)
|
|
@@ -6330,7 +6329,7 @@ const dy = (t, ...e) => {
|
|
|
6330
6329
|
function ql(t, e) {
|
|
6331
6330
|
return !t || !e ? 0 : Math.sqrt(Math.pow(e.x - t.x, 2) + Math.pow(e.y - t.y, 2));
|
|
6332
6331
|
}
|
|
6333
|
-
function
|
|
6332
|
+
function py(t) {
|
|
6334
6333
|
let e, i = 0;
|
|
6335
6334
|
t.forEach((n) => {
|
|
6336
6335
|
i += ql(n, e), e = n;
|
|
@@ -6338,8 +6337,8 @@ function fy(t) {
|
|
|
6338
6337
|
const r = i / 2;
|
|
6339
6338
|
return mo(t, r);
|
|
6340
6339
|
}
|
|
6341
|
-
function
|
|
6342
|
-
return t.length === 1 ? t[0] :
|
|
6340
|
+
function gy(t) {
|
|
6341
|
+
return t.length === 1 ? t[0] : py(t);
|
|
6343
6342
|
}
|
|
6344
6343
|
const Js = (t, e = 2) => {
|
|
6345
6344
|
const i = Math.pow(10, e);
|
|
@@ -6367,33 +6366,33 @@ const Js = (t, e = 2) => {
|
|
|
6367
6366
|
i = n;
|
|
6368
6367
|
}
|
|
6369
6368
|
throw new Error("Could not find a suitable point for the given distance");
|
|
6370
|
-
},
|
|
6369
|
+
}, my = (t, e, i) => {
|
|
6371
6370
|
$.info(`our points ${JSON.stringify(e)}`), e[0] !== i && (e = e.reverse());
|
|
6372
6371
|
const n = mo(e, 25), s = t ? 10 : 5, o = Math.atan2(e[0].y - n.y, e[0].x - n.x), a = { x: 0, y: 0 };
|
|
6373
6372
|
return a.x = Math.sin(o) * s + (e[0].x + n.x) / 2, a.y = -Math.cos(o) * s + (e[0].y + n.y) / 2, a;
|
|
6374
6373
|
};
|
|
6375
|
-
function
|
|
6374
|
+
function yy(t, e, i) {
|
|
6376
6375
|
const r = structuredClone(i);
|
|
6377
6376
|
$.info("our points", r), e !== "start_left" && e !== "start_right" && r.reverse();
|
|
6378
6377
|
const n = 25 + t, s = mo(r, n), o = 10 + t * 0.5, a = Math.atan2(r[0].y - s.y, r[0].x - s.x), l = { x: 0, y: 0 };
|
|
6379
6378
|
return e === "start_left" ? (l.x = Math.sin(a + Math.PI) * o + (r[0].x + s.x) / 2, l.y = -Math.cos(a + Math.PI) * o + (r[0].y + s.y) / 2) : e === "end_right" ? (l.x = Math.sin(a - Math.PI) * o + (r[0].x + s.x) / 2 - 5, l.y = -Math.cos(a - Math.PI) * o + (r[0].y + s.y) / 2 - 5) : e === "end_left" ? (l.x = Math.sin(a) * o + (r[0].x + s.x) / 2 - 5, l.y = -Math.cos(a) * o + (r[0].y + s.y) / 2 - 5) : (l.x = Math.sin(a) * o + (r[0].x + s.x) / 2, l.y = -Math.cos(a) * o + (r[0].y + s.y) / 2), l;
|
|
6380
6379
|
}
|
|
6381
|
-
function
|
|
6380
|
+
function _y(t) {
|
|
6382
6381
|
let e = "", i = "";
|
|
6383
6382
|
for (const r of t)
|
|
6384
6383
|
r !== void 0 && (r.startsWith("color:") || r.startsWith("text-align:") ? i = i + r + ";" : e = e + r + ";");
|
|
6385
6384
|
return { style: e, labelStyle: i };
|
|
6386
6385
|
}
|
|
6387
6386
|
let Qs = 0;
|
|
6388
|
-
const
|
|
6389
|
-
function
|
|
6387
|
+
const Cy = () => (Qs++, "id-" + Math.random().toString(36).substr(2, 12) + "-" + Qs);
|
|
6388
|
+
function xy(t) {
|
|
6390
6389
|
let e = "";
|
|
6391
6390
|
const i = "0123456789abcdef", r = i.length;
|
|
6392
6391
|
for (let n = 0; n < t; n++)
|
|
6393
6392
|
e += i.charAt(Math.floor(Math.random() * r));
|
|
6394
6393
|
return e;
|
|
6395
6394
|
}
|
|
6396
|
-
const
|
|
6395
|
+
const by = (t) => xy(t.length), Ty = function() {
|
|
6397
6396
|
return {
|
|
6398
6397
|
x: 0,
|
|
6399
6398
|
y: 0,
|
|
@@ -6408,12 +6407,12 @@ const xy = (t) => Cy(t.length), by = function() {
|
|
|
6408
6407
|
valign: void 0,
|
|
6409
6408
|
text: ""
|
|
6410
6409
|
};
|
|
6411
|
-
},
|
|
6410
|
+
}, Sy = function(t, e) {
|
|
6412
6411
|
const i = e.text.replace(go.lineBreakRegex, " "), [, r] = _o(e.fontSize), n = t.append("text");
|
|
6413
6412
|
n.attr("x", e.x), n.attr("y", e.y), n.style("text-anchor", e.anchor), n.style("font-family", e.fontFamily), n.style("font-size", r), n.style("font-weight", e.fontWeight), n.attr("fill", e.fill), e.class !== void 0 && n.attr("class", e.class);
|
|
6414
6413
|
const s = n.append("tspan");
|
|
6415
6414
|
return s.attr("x", e.x + e.textMargin * 2), s.attr("fill", e.fill), s.text(i), n;
|
|
6416
|
-
},
|
|
6415
|
+
}, vy = Di(
|
|
6417
6416
|
(t, e, i) => {
|
|
6418
6417
|
if (!t || (i = Object.assign(
|
|
6419
6418
|
{ fontSize: 12, fontWeight: 400, fontFamily: "Arial", joinWith: "<br/>" },
|
|
@@ -6425,14 +6424,14 @@ const xy = (t) => Cy(t.length), by = function() {
|
|
|
6425
6424
|
return r.forEach((o, a) => {
|
|
6426
6425
|
const l = kr(`${o} `, i), c = kr(s, i);
|
|
6427
6426
|
if (l > e) {
|
|
6428
|
-
const { hyphenatedStrings: u, remainingWord: f } =
|
|
6427
|
+
const { hyphenatedStrings: u, remainingWord: f } = ky(o, e, "-", i);
|
|
6429
6428
|
n.push(s, ...u), s = f;
|
|
6430
6429
|
} else c + l >= e ? (n.push(s), s = o) : s = [s, o].filter(Boolean).join(" ");
|
|
6431
6430
|
a + 1 === r.length && n.push(s);
|
|
6432
6431
|
}), n.filter((o) => o !== "").join(i.joinWith);
|
|
6433
6432
|
},
|
|
6434
6433
|
(t, e, i) => `${t}${e}${i.fontSize}${i.fontWeight}${i.fontFamily}${i.joinWith}`
|
|
6435
|
-
),
|
|
6434
|
+
), ky = Di(
|
|
6436
6435
|
(t, e, i = "-", r) => {
|
|
6437
6436
|
r = Object.assign(
|
|
6438
6437
|
{ fontSize: 12, fontWeight: 400, fontFamily: "Arial", margin: 0 },
|
|
@@ -6451,7 +6450,7 @@ const xy = (t) => Cy(t.length), by = function() {
|
|
|
6451
6450
|
},
|
|
6452
6451
|
(t, e, i = "-", r) => `${t}${e}${i}${r.fontSize}${r.fontWeight}${r.fontFamily}`
|
|
6453
6452
|
);
|
|
6454
|
-
function
|
|
6453
|
+
function wy(t, e) {
|
|
6455
6454
|
return yo(t, e).height;
|
|
6456
6455
|
}
|
|
6457
6456
|
function kr(t, e) {
|
|
@@ -6470,9 +6469,9 @@ const yo = Di(
|
|
|
6470
6469
|
let f = 0;
|
|
6471
6470
|
const m = { width: 0, height: 0, lineHeight: 0 };
|
|
6472
6471
|
for (const y of a) {
|
|
6473
|
-
const _ =
|
|
6474
|
-
_.text = y ||
|
|
6475
|
-
const E =
|
|
6472
|
+
const _ = Ty();
|
|
6473
|
+
_.text = y || oy;
|
|
6474
|
+
const E = Sy(h, _).style("font-size", s).style("font-weight", n).style("font-family", u), b = (E._groups || E)[0][0].getBBox();
|
|
6476
6475
|
if (b.width === 0 && b.height === 0)
|
|
6477
6476
|
throw new Error("svg element not in render tree");
|
|
6478
6477
|
m.width = Math.round(Math.max(m.width, b.width)), f = Math.round(b.height), m.height += f, m.lineHeight = Math.round(Math.max(m.lineHeight, f));
|
|
@@ -6485,19 +6484,19 @@ const yo = Di(
|
|
|
6485
6484
|
},
|
|
6486
6485
|
(t, e) => `${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`
|
|
6487
6486
|
);
|
|
6488
|
-
class
|
|
6487
|
+
class Ay {
|
|
6489
6488
|
constructor(e = !1, i) {
|
|
6490
6489
|
this.count = 0, this.count = i ? i.length : 0, this.next = e ? () => this.count++ : () => Date.now();
|
|
6491
6490
|
}
|
|
6492
6491
|
}
|
|
6493
6492
|
let Ji;
|
|
6494
|
-
const
|
|
6493
|
+
const By = function(t) {
|
|
6495
6494
|
return Ji = Ji || document.createElement("div"), t = escape(t).replace(/%26/g, "&").replace(/%23/g, "#").replace(/%3B/g, ";"), Ji.innerHTML = t, unescape(Ji.textContent);
|
|
6496
6495
|
};
|
|
6497
6496
|
function zl(t) {
|
|
6498
6497
|
return "str" in t;
|
|
6499
6498
|
}
|
|
6500
|
-
const
|
|
6499
|
+
const Ey = (t, e, i, r) => {
|
|
6501
6500
|
var n;
|
|
6502
6501
|
if (!r)
|
|
6503
6502
|
return;
|
|
@@ -6512,30 +6511,30 @@ const By = (t, e, i, r) => {
|
|
|
6512
6511
|
function Wl(t, e) {
|
|
6513
6512
|
return Jm({}, t, e);
|
|
6514
6513
|
}
|
|
6515
|
-
const
|
|
6514
|
+
const Ti = {
|
|
6516
6515
|
assignWithDepth: ct,
|
|
6517
|
-
wrapLabel:
|
|
6518
|
-
calculateTextHeight:
|
|
6516
|
+
wrapLabel: vy,
|
|
6517
|
+
calculateTextHeight: wy,
|
|
6519
6518
|
calculateTextWidth: kr,
|
|
6520
6519
|
calculateTextDimensions: yo,
|
|
6521
6520
|
cleanAndMerge: Wl,
|
|
6522
|
-
detectInit:
|
|
6521
|
+
detectInit: ly,
|
|
6523
6522
|
detectDirective: Pl,
|
|
6524
|
-
isSubstringInArray:
|
|
6525
|
-
interpolateToCurve:
|
|
6526
|
-
calcLabelPosition:
|
|
6527
|
-
calcCardinalityPosition:
|
|
6528
|
-
calcTerminalLabelPosition:
|
|
6529
|
-
formatUrl:
|
|
6530
|
-
getStylesFromArray:
|
|
6531
|
-
generateId:
|
|
6532
|
-
random:
|
|
6533
|
-
runFunc:
|
|
6534
|
-
entityDecode:
|
|
6535
|
-
insertTitle:
|
|
6523
|
+
isSubstringInArray: hy,
|
|
6524
|
+
interpolateToCurve: uy,
|
|
6525
|
+
calcLabelPosition: gy,
|
|
6526
|
+
calcCardinalityPosition: my,
|
|
6527
|
+
calcTerminalLabelPosition: yy,
|
|
6528
|
+
formatUrl: dy,
|
|
6529
|
+
getStylesFromArray: _y,
|
|
6530
|
+
generateId: Cy,
|
|
6531
|
+
random: by,
|
|
6532
|
+
runFunc: fy,
|
|
6533
|
+
entityDecode: By,
|
|
6534
|
+
insertTitle: Ey,
|
|
6536
6535
|
parseFontSize: _o,
|
|
6537
|
-
InitIDGenerator:
|
|
6538
|
-
},
|
|
6536
|
+
InitIDGenerator: Ay
|
|
6537
|
+
}, Ly = function(t) {
|
|
6539
6538
|
let e = t;
|
|
6540
6539
|
return e = e.replace(/style.*:\S*#.*;/g, function(i) {
|
|
6541
6540
|
return i.substring(0, i.length - 1);
|
|
@@ -6545,10 +6544,10 @@ const bi = {
|
|
|
6545
6544
|
const r = i.substring(1, i.length - 1);
|
|
6546
6545
|
return /^\+?\d+$/.test(r) ? "fl°°" + r + "¶ß" : "fl°" + r + "¶ß";
|
|
6547
6546
|
}), e;
|
|
6548
|
-
},
|
|
6547
|
+
}, Fy = function(t) {
|
|
6549
6548
|
return t.replace(/fl°°/g, "&#").replace(/fl°/g, "&").replace(/¶ß/g, ";");
|
|
6550
|
-
}, ta = "10.9.
|
|
6551
|
-
let yt = ct({},
|
|
6549
|
+
}, ta = "10.9.4", Ge = Object.freeze(ey);
|
|
6550
|
+
let yt = ct({}, Ge), Hl, Ve = [], Si = ct({}, Ge);
|
|
6552
6551
|
const Zr = (t, e) => {
|
|
6553
6552
|
let i = ct({}, t), r = {};
|
|
6554
6553
|
for (const n of e)
|
|
@@ -6560,10 +6559,10 @@ const Zr = (t, e) => {
|
|
|
6560
6559
|
);
|
|
6561
6560
|
i.theme && i.theme in ee && (i.themeVariables = ee[i.theme].getThemeVariables(s));
|
|
6562
6561
|
}
|
|
6563
|
-
return
|
|
6564
|
-
},
|
|
6562
|
+
return Si = i, Xl(Si), Si;
|
|
6563
|
+
}, Oy = (t) => (yt = ct({}, Ge), yt = ct(yt, t), t.theme && ee[t.theme] && (yt.themeVariables = ee[t.theme].getThemeVariables(t.themeVariables)), Zr(yt, Ve), yt), Iy = (t) => {
|
|
6565
6564
|
Hl = ct({}, t);
|
|
6566
|
-
},
|
|
6565
|
+
}, My = (t) => (yt = ct(yt, t), Zr(yt, Ve), yt), Yl = () => ct({}, yt), jl = (t) => (Xl(t), ct(Si, t), zt()), zt = () => ct({}, Si), Ul = (t) => {
|
|
6567
6566
|
t && (["secure", ...yt.secure ?? []].forEach((e) => {
|
|
6568
6567
|
Object.hasOwn(t, e) && ($.debug(`Denied attempt to modify a secure key ${e}`, t[e]), delete t[e]);
|
|
6569
6568
|
}), Object.keys(t).forEach((e) => {
|
|
@@ -6571,170 +6570,170 @@ const Zr = (t, e) => {
|
|
|
6571
6570
|
}), Object.keys(t).forEach((e) => {
|
|
6572
6571
|
typeof t[e] == "string" && (t[e].includes("<") || t[e].includes(">") || t[e].includes("url(data:")) && delete t[e], typeof t[e] == "object" && Ul(t[e]);
|
|
6573
6572
|
}));
|
|
6574
|
-
},
|
|
6575
|
-
vr(t), t.fontFamily && (!t.themeVariables || !t.themeVariables.fontFamily) && (t.themeVariables = { fontFamily: t.fontFamily }),
|
|
6573
|
+
}, $y = (t) => {
|
|
6574
|
+
vr(t), t.fontFamily && (!t.themeVariables || !t.themeVariables.fontFamily) && (t.themeVariables = { fontFamily: t.fontFamily }), Ve.push(t), Zr(yt, Ve);
|
|
6576
6575
|
}, wr = (t = yt) => {
|
|
6577
|
-
|
|
6578
|
-
},
|
|
6576
|
+
Ve = [], Zr(t, Ve);
|
|
6577
|
+
}, Dy = {
|
|
6579
6578
|
LAZY_LOAD_DEPRECATED: "The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."
|
|
6580
|
-
}, ea = {},
|
|
6581
|
-
ea[t] || ($.warn(
|
|
6579
|
+
}, ea = {}, Ny = (t) => {
|
|
6580
|
+
ea[t] || ($.warn(Dy[t]), ea[t] = !0);
|
|
6582
6581
|
}, Xl = (t) => {
|
|
6583
|
-
t && (t.lazyLoadedDiagrams || t.loadExternalDiagramsAtStartup) &&
|
|
6584
|
-
}, Gl = "c4",
|
|
6585
|
-
const { diagram: t } = await import("./layers.
|
|
6582
|
+
t && (t.lazyLoadedDiagrams || t.loadExternalDiagramsAtStartup) && Ny("LAZY_LOAD_DEPRECATED");
|
|
6583
|
+
}, Gl = "c4", Ry = (t) => /^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t), Py = async () => {
|
|
6584
|
+
const { diagram: t } = await import("./layers.U3puEHYK.js");
|
|
6586
6585
|
return { id: Gl, diagram: t };
|
|
6587
|
-
},
|
|
6586
|
+
}, qy = {
|
|
6588
6587
|
id: Gl,
|
|
6589
|
-
detector:
|
|
6590
|
-
loader:
|
|
6591
|
-
},
|
|
6588
|
+
detector: Ry,
|
|
6589
|
+
loader: Py
|
|
6590
|
+
}, zy = qy, Vl = "flowchart", Wy = (t, e) => {
|
|
6592
6591
|
var i, r;
|
|
6593
6592
|
return ((i = e == null ? void 0 : e.flowchart) == null ? void 0 : i.defaultRenderer) === "dagre-wrapper" || ((r = e == null ? void 0 : e.flowchart) == null ? void 0 : r.defaultRenderer) === "elk" ? !1 : /^\s*graph/.test(t);
|
|
6594
|
-
},
|
|
6595
|
-
const { diagram: t } = await import("./layers.
|
|
6593
|
+
}, Hy = async () => {
|
|
6594
|
+
const { diagram: t } = await import("./layers.BwoIBDJT.js");
|
|
6596
6595
|
return { id: Vl, diagram: t };
|
|
6597
|
-
},
|
|
6596
|
+
}, Yy = {
|
|
6598
6597
|
id: Vl,
|
|
6599
|
-
detector:
|
|
6600
|
-
loader:
|
|
6601
|
-
},
|
|
6598
|
+
detector: Wy,
|
|
6599
|
+
loader: Hy
|
|
6600
|
+
}, jy = Yy, Kl = "flowchart-v2", Uy = (t, e) => {
|
|
6602
6601
|
var i, r, n;
|
|
6603
6602
|
return ((i = e == null ? void 0 : e.flowchart) == null ? void 0 : i.defaultRenderer) === "dagre-d3" || ((r = e == null ? void 0 : e.flowchart) == null ? void 0 : r.defaultRenderer) === "elk" ? !1 : /^\s*graph/.test(t) && ((n = e == null ? void 0 : e.flowchart) == null ? void 0 : n.defaultRenderer) === "dagre-wrapper" ? !0 : /^\s*flowchart/.test(t);
|
|
6604
|
-
},
|
|
6605
|
-
const { diagram: t } = await import("./layers.
|
|
6603
|
+
}, Xy = async () => {
|
|
6604
|
+
const { diagram: t } = await import("./layers.D909hx91.js");
|
|
6606
6605
|
return { id: Kl, diagram: t };
|
|
6607
|
-
},
|
|
6606
|
+
}, Gy = {
|
|
6608
6607
|
id: Kl,
|
|
6609
|
-
detector:
|
|
6610
|
-
loader:
|
|
6611
|
-
},
|
|
6612
|
-
const { diagram: t } = await import("./layers.
|
|
6608
|
+
detector: Uy,
|
|
6609
|
+
loader: Xy
|
|
6610
|
+
}, Vy = Gy, Zl = "er", Ky = (t) => /^\s*erDiagram/.test(t), Zy = async () => {
|
|
6611
|
+
const { diagram: t } = await import("./layers.tv97TVVq.js");
|
|
6613
6612
|
return { id: Zl, diagram: t };
|
|
6614
|
-
},
|
|
6613
|
+
}, Jy = {
|
|
6615
6614
|
id: Zl,
|
|
6616
|
-
detector:
|
|
6617
|
-
loader:
|
|
6618
|
-
},
|
|
6619
|
-
const { diagram: t } = await import("./layers.
|
|
6615
|
+
detector: Ky,
|
|
6616
|
+
loader: Zy
|
|
6617
|
+
}, Qy = Jy, Jl = "gitGraph", t_ = (t) => /^\s*gitGraph/.test(t), e_ = async () => {
|
|
6618
|
+
const { diagram: t } = await import("./layers.D8h1OdVA.js");
|
|
6620
6619
|
return { id: Jl, diagram: t };
|
|
6621
|
-
},
|
|
6620
|
+
}, i_ = {
|
|
6622
6621
|
id: Jl,
|
|
6623
|
-
detector:
|
|
6624
|
-
loader:
|
|
6625
|
-
},
|
|
6626
|
-
const { diagram: t } = await import("./layers.
|
|
6622
|
+
detector: t_,
|
|
6623
|
+
loader: e_
|
|
6624
|
+
}, r_ = i_, Ql = "gantt", n_ = (t) => /^\s*gantt/.test(t), o_ = async () => {
|
|
6625
|
+
const { diagram: t } = await import("./layers.DgWiivNQ.js");
|
|
6627
6626
|
return { id: Ql, diagram: t };
|
|
6628
|
-
},
|
|
6627
|
+
}, s_ = {
|
|
6629
6628
|
id: Ql,
|
|
6630
|
-
detector:
|
|
6631
|
-
loader:
|
|
6632
|
-
},
|
|
6633
|
-
const { diagram: t } = await import("./layers.
|
|
6629
|
+
detector: n_,
|
|
6630
|
+
loader: o_
|
|
6631
|
+
}, a_ = s_, tc = "info", l_ = (t) => /^\s*info/.test(t), c_ = async () => {
|
|
6632
|
+
const { diagram: t } = await import("./layers.CTwL_3Cz.js");
|
|
6634
6633
|
return { id: tc, diagram: t };
|
|
6635
|
-
},
|
|
6634
|
+
}, h_ = {
|
|
6636
6635
|
id: tc,
|
|
6637
|
-
detector:
|
|
6638
|
-
loader:
|
|
6639
|
-
}, ec = "pie",
|
|
6640
|
-
const { diagram: t } = await import("./layers.
|
|
6636
|
+
detector: l_,
|
|
6637
|
+
loader: c_
|
|
6638
|
+
}, ec = "pie", u_ = (t) => /^\s*pie/.test(t), d_ = async () => {
|
|
6639
|
+
const { diagram: t } = await import("./layers.BmTC_qEU.js");
|
|
6641
6640
|
return { id: ec, diagram: t };
|
|
6642
|
-
},
|
|
6641
|
+
}, f_ = {
|
|
6643
6642
|
id: ec,
|
|
6644
|
-
detector:
|
|
6645
|
-
loader:
|
|
6646
|
-
}, ic = "quadrantChart",
|
|
6647
|
-
const { diagram: t } = await import("./layers.
|
|
6643
|
+
detector: u_,
|
|
6644
|
+
loader: d_
|
|
6645
|
+
}, ic = "quadrantChart", p_ = (t) => /^\s*quadrantChart/.test(t), g_ = async () => {
|
|
6646
|
+
const { diagram: t } = await import("./layers.Bg-rk-IY.js");
|
|
6648
6647
|
return { id: ic, diagram: t };
|
|
6649
|
-
},
|
|
6648
|
+
}, m_ = {
|
|
6650
6649
|
id: ic,
|
|
6651
|
-
detector:
|
|
6652
|
-
loader:
|
|
6653
|
-
},
|
|
6654
|
-
const { diagram: t } = await import("./layers.
|
|
6650
|
+
detector: p_,
|
|
6651
|
+
loader: g_
|
|
6652
|
+
}, y_ = m_, rc = "xychart", __ = (t) => /^\s*xychart-beta/.test(t), C_ = async () => {
|
|
6653
|
+
const { diagram: t } = await import("./layers.CLLE0XNM.js");
|
|
6655
6654
|
return { id: rc, diagram: t };
|
|
6656
|
-
},
|
|
6655
|
+
}, x_ = {
|
|
6657
6656
|
id: rc,
|
|
6658
|
-
detector:
|
|
6659
|
-
loader:
|
|
6660
|
-
},
|
|
6661
|
-
const { diagram: t } = await import("./layers.
|
|
6657
|
+
detector: __,
|
|
6658
|
+
loader: C_
|
|
6659
|
+
}, b_ = x_, nc = "requirement", T_ = (t) => /^\s*requirement(Diagram)?/.test(t), S_ = async () => {
|
|
6660
|
+
const { diagram: t } = await import("./layers._9mQNYpC.js");
|
|
6662
6661
|
return { id: nc, diagram: t };
|
|
6663
|
-
},
|
|
6662
|
+
}, v_ = {
|
|
6664
6663
|
id: nc,
|
|
6665
|
-
detector:
|
|
6666
|
-
loader:
|
|
6667
|
-
},
|
|
6668
|
-
const { diagram: t } = await import("./layers.
|
|
6664
|
+
detector: T_,
|
|
6665
|
+
loader: S_
|
|
6666
|
+
}, k_ = v_, oc = "sequence", w_ = (t) => /^\s*sequenceDiagram/.test(t), A_ = async () => {
|
|
6667
|
+
const { diagram: t } = await import("./layers.v61VCm7Q.js");
|
|
6669
6668
|
return { id: oc, diagram: t };
|
|
6670
|
-
},
|
|
6669
|
+
}, B_ = {
|
|
6671
6670
|
id: oc,
|
|
6672
|
-
detector:
|
|
6673
|
-
loader:
|
|
6674
|
-
},
|
|
6671
|
+
detector: w_,
|
|
6672
|
+
loader: A_
|
|
6673
|
+
}, E_ = B_, sc = "class", L_ = (t, e) => {
|
|
6675
6674
|
var i;
|
|
6676
6675
|
return ((i = e == null ? void 0 : e.class) == null ? void 0 : i.defaultRenderer) === "dagre-wrapper" ? !1 : /^\s*classDiagram/.test(t);
|
|
6677
|
-
},
|
|
6678
|
-
const { diagram: t } = await import("./layers.
|
|
6676
|
+
}, F_ = async () => {
|
|
6677
|
+
const { diagram: t } = await import("./layers.TyARdHUj.js");
|
|
6679
6678
|
return { id: sc, diagram: t };
|
|
6680
|
-
},
|
|
6679
|
+
}, O_ = {
|
|
6681
6680
|
id: sc,
|
|
6682
|
-
detector:
|
|
6683
|
-
loader:
|
|
6684
|
-
},
|
|
6681
|
+
detector: L_,
|
|
6682
|
+
loader: F_
|
|
6683
|
+
}, I_ = O_, ac = "classDiagram", M_ = (t, e) => {
|
|
6685
6684
|
var i;
|
|
6686
6685
|
return /^\s*classDiagram/.test(t) && ((i = e == null ? void 0 : e.class) == null ? void 0 : i.defaultRenderer) === "dagre-wrapper" ? !0 : /^\s*classDiagram-v2/.test(t);
|
|
6687
|
-
},
|
|
6688
|
-
const { diagram: t } = await import("./layers.
|
|
6686
|
+
}, $_ = async () => {
|
|
6687
|
+
const { diagram: t } = await import("./layers.D_VA8g4H.js");
|
|
6689
6688
|
return { id: ac, diagram: t };
|
|
6690
|
-
},
|
|
6689
|
+
}, D_ = {
|
|
6691
6690
|
id: ac,
|
|
6692
|
-
detector:
|
|
6693
|
-
loader:
|
|
6694
|
-
},
|
|
6691
|
+
detector: M_,
|
|
6692
|
+
loader: $_
|
|
6693
|
+
}, N_ = D_, lc = "state", R_ = (t, e) => {
|
|
6695
6694
|
var i;
|
|
6696
6695
|
return ((i = e == null ? void 0 : e.state) == null ? void 0 : i.defaultRenderer) === "dagre-wrapper" ? !1 : /^\s*stateDiagram/.test(t);
|
|
6697
|
-
},
|
|
6698
|
-
const { diagram: t } = await import("./layers.
|
|
6696
|
+
}, P_ = async () => {
|
|
6697
|
+
const { diagram: t } = await import("./layers.BhzBGGFh.js");
|
|
6699
6698
|
return { id: lc, diagram: t };
|
|
6700
|
-
},
|
|
6699
|
+
}, q_ = {
|
|
6701
6700
|
id: lc,
|
|
6702
|
-
detector:
|
|
6703
|
-
loader:
|
|
6704
|
-
},
|
|
6701
|
+
detector: R_,
|
|
6702
|
+
loader: P_
|
|
6703
|
+
}, z_ = q_, cc = "stateDiagram", W_ = (t, e) => {
|
|
6705
6704
|
var i;
|
|
6706
6705
|
return !!(/^\s*stateDiagram-v2/.test(t) || /^\s*stateDiagram/.test(t) && ((i = e == null ? void 0 : e.state) == null ? void 0 : i.defaultRenderer) === "dagre-wrapper");
|
|
6707
|
-
},
|
|
6708
|
-
const { diagram: t } = await import("./layers.
|
|
6706
|
+
}, H_ = async () => {
|
|
6707
|
+
const { diagram: t } = await import("./layers.Ky-Kjdnk.js");
|
|
6709
6708
|
return { id: cc, diagram: t };
|
|
6710
|
-
},
|
|
6709
|
+
}, Y_ = {
|
|
6711
6710
|
id: cc,
|
|
6712
|
-
detector:
|
|
6713
|
-
loader:
|
|
6714
|
-
},
|
|
6715
|
-
const { diagram: t } = await import("./layers.
|
|
6711
|
+
detector: W_,
|
|
6712
|
+
loader: H_
|
|
6713
|
+
}, j_ = Y_, hc = "journey", U_ = (t) => /^\s*journey/.test(t), X_ = async () => {
|
|
6714
|
+
const { diagram: t } = await import("./layers.BV8IclsW.js");
|
|
6716
6715
|
return { id: hc, diagram: t };
|
|
6717
|
-
},
|
|
6716
|
+
}, G_ = {
|
|
6718
6717
|
id: hc,
|
|
6719
|
-
detector:
|
|
6720
|
-
loader:
|
|
6721
|
-
},
|
|
6718
|
+
detector: U_,
|
|
6719
|
+
loader: X_
|
|
6720
|
+
}, V_ = G_, K_ = function(t, e) {
|
|
6722
6721
|
for (let i of e)
|
|
6723
6722
|
t.attr(i[0], i[1]);
|
|
6724
|
-
},
|
|
6723
|
+
}, Z_ = function(t, e, i) {
|
|
6725
6724
|
let r = /* @__PURE__ */ new Map();
|
|
6726
6725
|
return i ? (r.set("width", "100%"), r.set("style", `max-width: ${e}px;`)) : (r.set("height", t), r.set("width", e)), r;
|
|
6727
6726
|
}, uc = function(t, e, i, r) {
|
|
6728
|
-
const n =
|
|
6729
|
-
|
|
6730
|
-
},
|
|
6727
|
+
const n = Z_(e, i, r);
|
|
6728
|
+
K_(t, n);
|
|
6729
|
+
}, J_ = function(t, e, i, r) {
|
|
6731
6730
|
const n = e.node().getBBox(), s = n.width, o = n.height;
|
|
6732
6731
|
$.info(`SVG bounds: ${s}x${o}`, n);
|
|
6733
6732
|
let a = 0, l = 0;
|
|
6734
6733
|
$.info(`Graph bounds: ${a}x${l}`, t), a = s + i * 2, l = o + i * 2, $.info(`Calculated bounds: ${a}x${l}`), uc(e, l, a, r);
|
|
6735
6734
|
const c = `${n.x - i} ${n.y - i} ${n.width + 2 * i} ${n.height + 2 * i}`;
|
|
6736
6735
|
e.attr("viewBox", c);
|
|
6737
|
-
}, cr = {},
|
|
6736
|
+
}, cr = {}, Q_ = (t, e, i) => {
|
|
6738
6737
|
let r = "";
|
|
6739
6738
|
return t in cr && cr[t] ? r = cr[t](i) : $.warn(`No theme found for ${t}`), ` & {
|
|
6740
6739
|
font-family: ${i.fontFamily};
|
|
@@ -6786,54 +6785,54 @@ const Zr = (t, e) => {
|
|
|
6786
6785
|
|
|
6787
6786
|
${e}
|
|
6788
6787
|
`;
|
|
6789
|
-
},
|
|
6788
|
+
}, tC = (t, e) => {
|
|
6790
6789
|
e !== void 0 && (cr[t] = e);
|
|
6791
|
-
},
|
|
6790
|
+
}, eC = Q_;
|
|
6792
6791
|
let Co = "", xo = "", bo = "";
|
|
6793
|
-
const To = (t) =>
|
|
6792
|
+
const To = (t) => Ue(t, zt()), iC = () => {
|
|
6794
6793
|
Co = "", bo = "", xo = "";
|
|
6795
|
-
},
|
|
6794
|
+
}, rC = (t) => {
|
|
6796
6795
|
Co = To(t).replace(/^\s+/g, "");
|
|
6797
|
-
},
|
|
6796
|
+
}, nC = () => Co, oC = (t) => {
|
|
6798
6797
|
bo = To(t).replace(/\n\s+/g, `
|
|
6799
6798
|
`);
|
|
6800
|
-
},
|
|
6799
|
+
}, sC = () => bo, aC = (t) => {
|
|
6801
6800
|
xo = To(t);
|
|
6802
|
-
},
|
|
6801
|
+
}, lC = () => xo, cC = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6803
6802
|
__proto__: null,
|
|
6804
|
-
clear:
|
|
6805
|
-
getAccDescription:
|
|
6806
|
-
getAccTitle:
|
|
6807
|
-
getDiagramTitle:
|
|
6808
|
-
setAccDescription:
|
|
6809
|
-
setAccTitle:
|
|
6810
|
-
setDiagramTitle:
|
|
6811
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
6803
|
+
clear: iC,
|
|
6804
|
+
getAccDescription: sC,
|
|
6805
|
+
getAccTitle: nC,
|
|
6806
|
+
getDiagramTitle: lC,
|
|
6807
|
+
setAccDescription: oC,
|
|
6808
|
+
setAccTitle: rC,
|
|
6809
|
+
setDiagramTitle: aC
|
|
6810
|
+
}, Symbol.toStringTag, { value: "Module" })), hC = $, uC = po, So = zt, sT = jl, aT = Ge, dC = (t) => Ue(t, So()), fC = J_, pC = () => cC, Ar = {}, Br = (t, e, i) => {
|
|
6812
6811
|
var r;
|
|
6813
6812
|
if (Ar[t])
|
|
6814
6813
|
throw new Error(`Diagram ${t} already registered.`);
|
|
6815
|
-
Ar[t] = e, i && Rl(t, i),
|
|
6814
|
+
Ar[t] = e, i && Rl(t, i), tC(t, e.styles), (r = e.injectUtils) == null || r.call(
|
|
6816
6815
|
e,
|
|
6817
|
-
cC,
|
|
6818
6816
|
hC,
|
|
6819
|
-
So,
|
|
6820
6817
|
uC,
|
|
6818
|
+
So,
|
|
6821
6819
|
dC,
|
|
6822
|
-
fC
|
|
6820
|
+
fC,
|
|
6821
|
+
pC(),
|
|
6823
6822
|
() => {
|
|
6824
6823
|
}
|
|
6825
6824
|
);
|
|
6826
6825
|
}, vo = (t) => {
|
|
6827
6826
|
if (t in Ar)
|
|
6828
6827
|
return Ar[t];
|
|
6829
|
-
throw new
|
|
6828
|
+
throw new gC(t);
|
|
6830
6829
|
};
|
|
6831
|
-
class
|
|
6830
|
+
class gC extends Error {
|
|
6832
6831
|
constructor(e) {
|
|
6833
6832
|
super(`Diagram ${e} not found.`);
|
|
6834
6833
|
}
|
|
6835
6834
|
}
|
|
6836
|
-
const
|
|
6835
|
+
const mC = (t) => {
|
|
6837
6836
|
var e;
|
|
6838
6837
|
const { securityLevel: i } = So();
|
|
6839
6838
|
let r = kt("body");
|
|
@@ -6842,10 +6841,10 @@ const gC = (t) => {
|
|
|
6842
6841
|
r = kt(o.body);
|
|
6843
6842
|
}
|
|
6844
6843
|
return r.select(`#${t}`);
|
|
6845
|
-
},
|
|
6844
|
+
}, yC = (t, e, i) => {
|
|
6846
6845
|
$.debug(`rendering svg for syntax error
|
|
6847
6846
|
`);
|
|
6848
|
-
const r =
|
|
6847
|
+
const r = mC(e), n = r.append("g");
|
|
6849
6848
|
r.attr("viewBox", "0 0 2412 512"), uc(r, 100, 512, !0), n.append("path").attr("class", "error-icon").attr(
|
|
6850
6849
|
"d",
|
|
6851
6850
|
"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"
|
|
@@ -6865,7 +6864,7 @@ const gC = (t) => {
|
|
|
6865
6864
|
"d",
|
|
6866
6865
|
"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"
|
|
6867
6866
|
), n.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"), n.append("text").attr("class", "error-text").attr("x", 1250).attr("y", 400).attr("font-size", "100px").style("text-anchor", "middle").text(`mermaid version ${i}`);
|
|
6868
|
-
}, dc = { draw:
|
|
6867
|
+
}, dc = { draw: yC }, _C = dc, CC = {
|
|
6869
6868
|
db: {},
|
|
6870
6869
|
renderer: dc,
|
|
6871
6870
|
parser: {
|
|
@@ -6873,52 +6872,52 @@ const gC = (t) => {
|
|
|
6873
6872
|
parse: () => {
|
|
6874
6873
|
}
|
|
6875
6874
|
}
|
|
6876
|
-
},
|
|
6875
|
+
}, xC = CC, fc = "flowchart-elk", bC = (t, e) => {
|
|
6877
6876
|
var i;
|
|
6878
6877
|
return (
|
|
6879
6878
|
// If diagram explicitly states flowchart-elk
|
|
6880
6879
|
!!(/^\s*flowchart-elk/.test(t) || // If a flowchart/graph diagram has their default renderer set to elk
|
|
6881
6880
|
/^\s*flowchart|graph/.test(t) && ((i = e == null ? void 0 : e.flowchart) == null ? void 0 : i.defaultRenderer) === "elk")
|
|
6882
6881
|
);
|
|
6883
|
-
},
|
|
6884
|
-
const { diagram: t } = await import("./layers.
|
|
6882
|
+
}, TC = async () => {
|
|
6883
|
+
const { diagram: t } = await import("./layers.CyhLcp6y.js");
|
|
6885
6884
|
return { id: fc, diagram: t };
|
|
6886
|
-
},
|
|
6885
|
+
}, SC = {
|
|
6887
6886
|
id: fc,
|
|
6888
|
-
detector:
|
|
6889
|
-
loader:
|
|
6890
|
-
},
|
|
6891
|
-
const { diagram: t } = await import("./layers.
|
|
6887
|
+
detector: bC,
|
|
6888
|
+
loader: TC
|
|
6889
|
+
}, vC = SC, pc = "timeline", kC = (t) => /^\s*timeline/.test(t), wC = async () => {
|
|
6890
|
+
const { diagram: t } = await import("./layers.wt0qnNWd.js");
|
|
6892
6891
|
return { id: pc, diagram: t };
|
|
6893
|
-
},
|
|
6892
|
+
}, AC = {
|
|
6894
6893
|
id: pc,
|
|
6895
|
-
detector:
|
|
6896
|
-
loader:
|
|
6897
|
-
},
|
|
6898
|
-
const { diagram: t } = await import("./layers.
|
|
6894
|
+
detector: kC,
|
|
6895
|
+
loader: wC
|
|
6896
|
+
}, BC = AC, gc = "mindmap", EC = (t) => /^\s*mindmap/.test(t), LC = async () => {
|
|
6897
|
+
const { diagram: t } = await import("./layers.DCNkKcra.js");
|
|
6899
6898
|
return { id: gc, diagram: t };
|
|
6900
|
-
},
|
|
6899
|
+
}, FC = {
|
|
6901
6900
|
id: gc,
|
|
6902
|
-
detector:
|
|
6903
|
-
loader:
|
|
6904
|
-
},
|
|
6905
|
-
const { diagram: t } = await import("./layers.
|
|
6901
|
+
detector: EC,
|
|
6902
|
+
loader: LC
|
|
6903
|
+
}, OC = FC, mc = "sankey", IC = (t) => /^\s*sankey-beta/.test(t), MC = async () => {
|
|
6904
|
+
const { diagram: t } = await import("./layers.Bt2QXZPR.js");
|
|
6906
6905
|
return { id: mc, diagram: t };
|
|
6907
|
-
},
|
|
6906
|
+
}, $C = {
|
|
6908
6907
|
id: mc,
|
|
6909
|
-
detector:
|
|
6910
|
-
loader:
|
|
6911
|
-
},
|
|
6912
|
-
const { diagram: t } = await import("./layers.
|
|
6908
|
+
detector: IC,
|
|
6909
|
+
loader: MC
|
|
6910
|
+
}, DC = $C, yc = "block", NC = (t) => /^\s*block-beta/.test(t), RC = async () => {
|
|
6911
|
+
const { diagram: t } = await import("./layers.BxS3YGIg.js");
|
|
6913
6912
|
return { id: yc, diagram: t };
|
|
6914
|
-
},
|
|
6913
|
+
}, PC = {
|
|
6915
6914
|
id: yc,
|
|
6916
|
-
detector:
|
|
6917
|
-
loader:
|
|
6918
|
-
},
|
|
6915
|
+
detector: NC,
|
|
6916
|
+
loader: RC
|
|
6917
|
+
}, qC = PC;
|
|
6919
6918
|
let ia = !1;
|
|
6920
6919
|
const ko = () => {
|
|
6921
|
-
ia || (ia = !0, Br("error",
|
|
6920
|
+
ia || (ia = !0, Br("error", xC, (t) => t.toLowerCase().trim() === "error"), Br(
|
|
6922
6921
|
"---",
|
|
6923
6922
|
// --- diagram type may appear if YAML front-matter is not parsed correctly
|
|
6924
6923
|
{
|
|
@@ -6945,33 +6944,33 @@ const ko = () => {
|
|
|
6945
6944
|
},
|
|
6946
6945
|
(t) => t.toLowerCase().trimStart().startsWith("---")
|
|
6947
6946
|
), Nl(
|
|
6948
|
-
|
|
6949
|
-
|
|
6950
|
-
|
|
6951
|
-
|
|
6952
|
-
|
|
6953
|
-
|
|
6954
|
-
|
|
6955
|
-
|
|
6956
|
-
|
|
6957
|
-
|
|
6958
|
-
|
|
6959
|
-
|
|
6960
|
-
|
|
6961
|
-
|
|
6962
|
-
|
|
6963
|
-
|
|
6964
|
-
|
|
6965
|
-
|
|
6966
|
-
|
|
6967
|
-
|
|
6968
|
-
|
|
6969
|
-
|
|
6947
|
+
zy,
|
|
6948
|
+
N_,
|
|
6949
|
+
I_,
|
|
6950
|
+
Qy,
|
|
6951
|
+
a_,
|
|
6952
|
+
h_,
|
|
6953
|
+
f_,
|
|
6954
|
+
k_,
|
|
6955
|
+
E_,
|
|
6956
|
+
vC,
|
|
6957
|
+
Vy,
|
|
6958
|
+
jy,
|
|
6959
|
+
OC,
|
|
6960
|
+
BC,
|
|
6961
|
+
r_,
|
|
6962
|
+
j_,
|
|
6963
|
+
z_,
|
|
6964
|
+
V_,
|
|
6965
|
+
y_,
|
|
6966
|
+
DC,
|
|
6967
|
+
b_,
|
|
6968
|
+
qC
|
|
6970
6969
|
));
|
|
6971
6970
|
};
|
|
6972
6971
|
class _c {
|
|
6973
6972
|
constructor(e, i = {}) {
|
|
6974
|
-
this.text = e, this.metadata = i, this.type = "graph", this.text =
|
|
6973
|
+
this.text = e, this.metadata = i, this.type = "graph", this.text = Ly(e), this.text += `
|
|
6975
6974
|
`;
|
|
6976
6975
|
const r = zt();
|
|
6977
6976
|
try {
|
|
@@ -7000,12 +6999,12 @@ class _c {
|
|
|
7000
6999
|
return this.type;
|
|
7001
7000
|
}
|
|
7002
7001
|
}
|
|
7003
|
-
const
|
|
7002
|
+
const zC = async (t, e = {}) => {
|
|
7004
7003
|
const i = Kr(t, zt());
|
|
7005
7004
|
try {
|
|
7006
7005
|
vo(i);
|
|
7007
7006
|
} catch {
|
|
7008
|
-
const n =
|
|
7007
|
+
const n = ny(i);
|
|
7009
7008
|
if (!n)
|
|
7010
7009
|
throw new Dl(`Diagram ${i} not found.`);
|
|
7011
7010
|
const { id: s, diagram: o } = await n();
|
|
@@ -7014,15 +7013,15 @@ const qC = async (t, e = {}) => {
|
|
|
7014
7013
|
return new _c(t, e);
|
|
7015
7014
|
};
|
|
7016
7015
|
let ra = [];
|
|
7017
|
-
const
|
|
7016
|
+
const WC = () => {
|
|
7018
7017
|
ra.forEach((t) => {
|
|
7019
7018
|
t();
|
|
7020
7019
|
}), ra = [];
|
|
7021
|
-
},
|
|
7022
|
-
function
|
|
7023
|
-
t.attr("role",
|
|
7020
|
+
}, HC = "graphics-document document";
|
|
7021
|
+
function YC(t, e) {
|
|
7022
|
+
t.attr("role", HC), e !== "" && t.attr("aria-roledescription", e);
|
|
7024
7023
|
}
|
|
7025
|
-
function
|
|
7024
|
+
function jC(t, e, i, r) {
|
|
7026
7025
|
if (t.insert !== void 0) {
|
|
7027
7026
|
if (i) {
|
|
7028
7027
|
const n = `chart-desc-${r}`;
|
|
@@ -7034,40 +7033,40 @@ function YC(t, e, i, r) {
|
|
|
7034
7033
|
}
|
|
7035
7034
|
}
|
|
7036
7035
|
}
|
|
7037
|
-
const
|
|
7036
|
+
const UC = (t) => t.replace(/^\s*%%(?!{)[^\n]+\n?/gm, "").trimStart();
|
|
7038
7037
|
/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
|
|
7039
7038
|
function Cc(t) {
|
|
7040
7039
|
return typeof t > "u" || t === null;
|
|
7041
7040
|
}
|
|
7042
|
-
function
|
|
7041
|
+
function XC(t) {
|
|
7043
7042
|
return typeof t == "object" && t !== null;
|
|
7044
7043
|
}
|
|
7045
|
-
function
|
|
7044
|
+
function GC(t) {
|
|
7046
7045
|
return Array.isArray(t) ? t : Cc(t) ? [] : [t];
|
|
7047
7046
|
}
|
|
7048
|
-
function
|
|
7047
|
+
function VC(t, e) {
|
|
7049
7048
|
var i, r, n, s;
|
|
7050
7049
|
if (e)
|
|
7051
7050
|
for (s = Object.keys(e), i = 0, r = s.length; i < r; i += 1)
|
|
7052
7051
|
n = s[i], t[n] = e[n];
|
|
7053
7052
|
return t;
|
|
7054
7053
|
}
|
|
7055
|
-
function
|
|
7054
|
+
function KC(t, e) {
|
|
7056
7055
|
var i = "", r;
|
|
7057
7056
|
for (r = 0; r < e; r += 1)
|
|
7058
7057
|
i += t;
|
|
7059
7058
|
return i;
|
|
7060
7059
|
}
|
|
7061
|
-
function
|
|
7060
|
+
function ZC(t) {
|
|
7062
7061
|
return t === 0 && Number.NEGATIVE_INFINITY === 1 / t;
|
|
7063
7062
|
}
|
|
7064
|
-
var
|
|
7065
|
-
isNothing:
|
|
7066
|
-
isObject:
|
|
7067
|
-
toArray:
|
|
7068
|
-
repeat:
|
|
7069
|
-
isNegativeZero:
|
|
7070
|
-
extend:
|
|
7063
|
+
var JC = Cc, QC = XC, tx = GC, ex = KC, ix = ZC, rx = VC, dt = {
|
|
7064
|
+
isNothing: JC,
|
|
7065
|
+
isObject: QC,
|
|
7066
|
+
toArray: tx,
|
|
7067
|
+
repeat: ex,
|
|
7068
|
+
isNegativeZero: ix,
|
|
7069
|
+
extend: rx
|
|
7071
7070
|
};
|
|
7072
7071
|
function xc(t, e) {
|
|
7073
7072
|
var i = "", r = t.reason || "(unknown reason)";
|
|
@@ -7095,7 +7094,7 @@ function bn(t, e, i, r, n) {
|
|
|
7095
7094
|
function Tn(t, e) {
|
|
7096
7095
|
return dt.repeat(" ", e - t.length) + t;
|
|
7097
7096
|
}
|
|
7098
|
-
function
|
|
7097
|
+
function nx(t, e) {
|
|
7099
7098
|
if (e = Object.create(e || null), !t.buffer)
|
|
7100
7099
|
return null;
|
|
7101
7100
|
e.maxLength || (e.maxLength = 79), typeof e.indent != "number" && (e.indent = 1), typeof e.linesBefore != "number" && (e.linesBefore = 3), typeof e.linesAfter != "number" && (e.linesAfter = 2);
|
|
@@ -7125,7 +7124,7 @@ function rx(t, e) {
|
|
|
7125
7124
|
`;
|
|
7126
7125
|
return a.replace(/\n$/, "");
|
|
7127
7126
|
}
|
|
7128
|
-
var
|
|
7127
|
+
var ox = nx, sx = [
|
|
7129
7128
|
"kind",
|
|
7130
7129
|
"multi",
|
|
7131
7130
|
"resolve",
|
|
@@ -7136,12 +7135,12 @@ var nx = rx, ox = [
|
|
|
7136
7135
|
"representName",
|
|
7137
7136
|
"defaultStyle",
|
|
7138
7137
|
"styleAliases"
|
|
7139
|
-
],
|
|
7138
|
+
], ax = [
|
|
7140
7139
|
"scalar",
|
|
7141
7140
|
"sequence",
|
|
7142
7141
|
"mapping"
|
|
7143
7142
|
];
|
|
7144
|
-
function
|
|
7143
|
+
function lx(t) {
|
|
7145
7144
|
var e = {};
|
|
7146
7145
|
return t !== null && Object.keys(t).forEach(function(i) {
|
|
7147
7146
|
t[i].forEach(function(r) {
|
|
@@ -7149,18 +7148,18 @@ function ax(t) {
|
|
|
7149
7148
|
});
|
|
7150
7149
|
}), e;
|
|
7151
7150
|
}
|
|
7152
|
-
function
|
|
7151
|
+
function cx(t, e) {
|
|
7153
7152
|
if (e = e || {}, Object.keys(e).forEach(function(i) {
|
|
7154
|
-
if (
|
|
7153
|
+
if (sx.indexOf(i) === -1)
|
|
7155
7154
|
throw new Qt('Unknown option "' + i + '" is met in definition of "' + t + '" YAML type.');
|
|
7156
7155
|
}), this.options = e, this.tag = t, this.kind = e.kind || null, this.resolve = e.resolve || function() {
|
|
7157
7156
|
return !0;
|
|
7158
7157
|
}, this.construct = e.construct || function(i) {
|
|
7159
7158
|
return i;
|
|
7160
|
-
}, this.instanceOf = e.instanceOf || null, this.predicate = e.predicate || null, this.represent = e.represent || null, this.representName = e.representName || null, this.defaultStyle = e.defaultStyle || null, this.multi = e.multi || !1, this.styleAliases =
|
|
7159
|
+
}, this.instanceOf = e.instanceOf || null, this.predicate = e.predicate || null, this.represent = e.represent || null, this.representName = e.representName || null, this.defaultStyle = e.defaultStyle || null, this.multi = e.multi || !1, this.styleAliases = lx(e.styleAliases || null), ax.indexOf(this.kind) === -1)
|
|
7161
7160
|
throw new Qt('Unknown kind "' + this.kind + '" is specified for "' + t + '" YAML type.');
|
|
7162
7161
|
}
|
|
7163
|
-
var ht =
|
|
7162
|
+
var ht = cx;
|
|
7164
7163
|
function na(t, e) {
|
|
7165
7164
|
var i = [];
|
|
7166
7165
|
return t[e].forEach(function(r) {
|
|
@@ -7170,7 +7169,7 @@ function na(t, e) {
|
|
|
7170
7169
|
}), i[n] = r;
|
|
7171
7170
|
}), i;
|
|
7172
7171
|
}
|
|
7173
|
-
function
|
|
7172
|
+
function hx() {
|
|
7174
7173
|
var t = {
|
|
7175
7174
|
scalar: {},
|
|
7176
7175
|
sequence: {},
|
|
@@ -7215,47 +7214,47 @@ Un.prototype.extend = function(e) {
|
|
|
7215
7214
|
throw new Qt("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
7216
7215
|
});
|
|
7217
7216
|
var n = Object.create(Un.prototype);
|
|
7218
|
-
return n.implicit = (this.implicit || []).concat(i), n.explicit = (this.explicit || []).concat(r), n.compiledImplicit = na(n, "implicit"), n.compiledExplicit = na(n, "explicit"), n.compiledTypeMap =
|
|
7217
|
+
return n.implicit = (this.implicit || []).concat(i), n.explicit = (this.explicit || []).concat(r), n.compiledImplicit = na(n, "implicit"), n.compiledExplicit = na(n, "explicit"), n.compiledTypeMap = hx(n.compiledImplicit, n.compiledExplicit), n;
|
|
7219
7218
|
};
|
|
7220
|
-
var
|
|
7219
|
+
var ux = Un, dx = new ht("tag:yaml.org,2002:str", {
|
|
7221
7220
|
kind: "scalar",
|
|
7222
7221
|
construct: function(t) {
|
|
7223
7222
|
return t !== null ? t : "";
|
|
7224
7223
|
}
|
|
7225
|
-
}),
|
|
7224
|
+
}), fx = new ht("tag:yaml.org,2002:seq", {
|
|
7226
7225
|
kind: "sequence",
|
|
7227
7226
|
construct: function(t) {
|
|
7228
7227
|
return t !== null ? t : [];
|
|
7229
7228
|
}
|
|
7230
|
-
}),
|
|
7229
|
+
}), px = new ht("tag:yaml.org,2002:map", {
|
|
7231
7230
|
kind: "mapping",
|
|
7232
7231
|
construct: function(t) {
|
|
7233
7232
|
return t !== null ? t : {};
|
|
7234
7233
|
}
|
|
7235
|
-
}),
|
|
7234
|
+
}), gx = new ux({
|
|
7236
7235
|
explicit: [
|
|
7237
|
-
ux,
|
|
7238
7236
|
dx,
|
|
7239
|
-
fx
|
|
7237
|
+
fx,
|
|
7238
|
+
px
|
|
7240
7239
|
]
|
|
7241
7240
|
});
|
|
7242
|
-
function
|
|
7241
|
+
function mx(t) {
|
|
7243
7242
|
if (t === null)
|
|
7244
7243
|
return !0;
|
|
7245
7244
|
var e = t.length;
|
|
7246
7245
|
return e === 1 && t === "~" || e === 4 && (t === "null" || t === "Null" || t === "NULL");
|
|
7247
7246
|
}
|
|
7248
|
-
function
|
|
7247
|
+
function yx() {
|
|
7249
7248
|
return null;
|
|
7250
7249
|
}
|
|
7251
|
-
function
|
|
7250
|
+
function _x(t) {
|
|
7252
7251
|
return t === null;
|
|
7253
7252
|
}
|
|
7254
|
-
var
|
|
7253
|
+
var Cx = new ht("tag:yaml.org,2002:null", {
|
|
7255
7254
|
kind: "scalar",
|
|
7256
|
-
resolve:
|
|
7257
|
-
construct:
|
|
7258
|
-
predicate:
|
|
7255
|
+
resolve: mx,
|
|
7256
|
+
construct: yx,
|
|
7257
|
+
predicate: _x,
|
|
7259
7258
|
represent: {
|
|
7260
7259
|
canonical: function() {
|
|
7261
7260
|
return "~";
|
|
@@ -7275,23 +7274,23 @@ var _x = new ht("tag:yaml.org,2002:null", {
|
|
|
7275
7274
|
},
|
|
7276
7275
|
defaultStyle: "lowercase"
|
|
7277
7276
|
});
|
|
7278
|
-
function
|
|
7277
|
+
function xx(t) {
|
|
7279
7278
|
if (t === null)
|
|
7280
7279
|
return !1;
|
|
7281
7280
|
var e = t.length;
|
|
7282
7281
|
return e === 4 && (t === "true" || t === "True" || t === "TRUE") || e === 5 && (t === "false" || t === "False" || t === "FALSE");
|
|
7283
7282
|
}
|
|
7284
|
-
function
|
|
7283
|
+
function bx(t) {
|
|
7285
7284
|
return t === "true" || t === "True" || t === "TRUE";
|
|
7286
7285
|
}
|
|
7287
|
-
function
|
|
7286
|
+
function Tx(t) {
|
|
7288
7287
|
return Object.prototype.toString.call(t) === "[object Boolean]";
|
|
7289
7288
|
}
|
|
7290
|
-
var
|
|
7289
|
+
var Sx = new ht("tag:yaml.org,2002:bool", {
|
|
7291
7290
|
kind: "scalar",
|
|
7292
|
-
resolve:
|
|
7293
|
-
construct:
|
|
7294
|
-
predicate:
|
|
7291
|
+
resolve: xx,
|
|
7292
|
+
construct: bx,
|
|
7293
|
+
predicate: Tx,
|
|
7295
7294
|
represent: {
|
|
7296
7295
|
lowercase: function(t) {
|
|
7297
7296
|
return t ? "true" : "false";
|
|
@@ -7305,16 +7304,16 @@ var Tx = new ht("tag:yaml.org,2002:bool", {
|
|
|
7305
7304
|
},
|
|
7306
7305
|
defaultStyle: "lowercase"
|
|
7307
7306
|
});
|
|
7308
|
-
function
|
|
7307
|
+
function vx(t) {
|
|
7309
7308
|
return 48 <= t && t <= 57 || 65 <= t && t <= 70 || 97 <= t && t <= 102;
|
|
7310
7309
|
}
|
|
7311
|
-
function
|
|
7310
|
+
function kx(t) {
|
|
7312
7311
|
return 48 <= t && t <= 55;
|
|
7313
7312
|
}
|
|
7314
|
-
function
|
|
7313
|
+
function wx(t) {
|
|
7315
7314
|
return 48 <= t && t <= 57;
|
|
7316
7315
|
}
|
|
7317
|
-
function
|
|
7316
|
+
function Ax(t) {
|
|
7318
7317
|
if (t === null)
|
|
7319
7318
|
return !1;
|
|
7320
7319
|
var e = t.length, i = 0, r = !1, n;
|
|
@@ -7335,7 +7334,7 @@ function wx(t) {
|
|
|
7335
7334
|
if (n === "x") {
|
|
7336
7335
|
for (i++; i < e; i++)
|
|
7337
7336
|
if (n = t[i], n !== "_") {
|
|
7338
|
-
if (!
|
|
7337
|
+
if (!vx(t.charCodeAt(i)))
|
|
7339
7338
|
return !1;
|
|
7340
7339
|
r = !0;
|
|
7341
7340
|
}
|
|
@@ -7344,7 +7343,7 @@ function wx(t) {
|
|
|
7344
7343
|
if (n === "o") {
|
|
7345
7344
|
for (i++; i < e; i++)
|
|
7346
7345
|
if (n = t[i], n !== "_") {
|
|
7347
|
-
if (!
|
|
7346
|
+
if (!kx(t.charCodeAt(i)))
|
|
7348
7347
|
return !1;
|
|
7349
7348
|
r = !0;
|
|
7350
7349
|
}
|
|
@@ -7355,13 +7354,13 @@ function wx(t) {
|
|
|
7355
7354
|
return !1;
|
|
7356
7355
|
for (; i < e; i++)
|
|
7357
7356
|
if (n = t[i], n !== "_") {
|
|
7358
|
-
if (!
|
|
7357
|
+
if (!wx(t.charCodeAt(i)))
|
|
7359
7358
|
return !1;
|
|
7360
7359
|
r = !0;
|
|
7361
7360
|
}
|
|
7362
7361
|
return !(!r || n === "_");
|
|
7363
7362
|
}
|
|
7364
|
-
function
|
|
7363
|
+
function Bx(t) {
|
|
7365
7364
|
var e = t, i = 1, r;
|
|
7366
7365
|
if (e.indexOf("_") !== -1 && (e = e.replace(/_/g, "")), r = e[0], (r === "-" || r === "+") && (r === "-" && (i = -1), e = e.slice(1), r = e[0]), e === "0")
|
|
7367
7366
|
return 0;
|
|
@@ -7375,14 +7374,14 @@ function Ax(t) {
|
|
|
7375
7374
|
}
|
|
7376
7375
|
return i * parseInt(e, 10);
|
|
7377
7376
|
}
|
|
7378
|
-
function
|
|
7377
|
+
function Ex(t) {
|
|
7379
7378
|
return Object.prototype.toString.call(t) === "[object Number]" && t % 1 === 0 && !dt.isNegativeZero(t);
|
|
7380
7379
|
}
|
|
7381
|
-
var
|
|
7380
|
+
var Lx = new ht("tag:yaml.org,2002:int", {
|
|
7382
7381
|
kind: "scalar",
|
|
7383
|
-
resolve:
|
|
7384
|
-
construct:
|
|
7385
|
-
predicate:
|
|
7382
|
+
resolve: Ax,
|
|
7383
|
+
construct: Bx,
|
|
7384
|
+
predicate: Ex,
|
|
7386
7385
|
represent: {
|
|
7387
7386
|
binary: function(t) {
|
|
7388
7387
|
return t >= 0 ? "0b" + t.toString(2) : "-0b" + t.toString(2).slice(1);
|
|
@@ -7405,21 +7404,21 @@ var Ex = new ht("tag:yaml.org,2002:int", {
|
|
|
7405
7404
|
decimal: [10, "dec"],
|
|
7406
7405
|
hexadecimal: [16, "hex"]
|
|
7407
7406
|
}
|
|
7408
|
-
}),
|
|
7407
|
+
}), Fx = new RegExp(
|
|
7409
7408
|
// 2.5e4, 2.5 and integers
|
|
7410
7409
|
"^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"
|
|
7411
7410
|
);
|
|
7412
|
-
function
|
|
7413
|
-
return !(t === null || !
|
|
7411
|
+
function Ox(t) {
|
|
7412
|
+
return !(t === null || !Fx.test(t) || // Quick hack to not allow integers end with `_`
|
|
7414
7413
|
// Probably should update regexp & check speed
|
|
7415
7414
|
t[t.length - 1] === "_");
|
|
7416
7415
|
}
|
|
7417
|
-
function
|
|
7416
|
+
function Ix(t) {
|
|
7418
7417
|
var e, i;
|
|
7419
7418
|
return e = t.replace(/_/g, "").toLowerCase(), i = e[0] === "-" ? -1 : 1, "+-".indexOf(e[0]) >= 0 && (e = e.slice(1)), e === ".inf" ? i === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY : e === ".nan" ? NaN : i * parseFloat(e, 10);
|
|
7420
7419
|
}
|
|
7421
|
-
var
|
|
7422
|
-
function
|
|
7420
|
+
var Mx = /^[-+]?[0-9]+e/;
|
|
7421
|
+
function $x(t, e) {
|
|
7423
7422
|
var i;
|
|
7424
7423
|
if (isNaN(t))
|
|
7425
7424
|
switch (e) {
|
|
@@ -7450,34 +7449,34 @@ function Mx(t, e) {
|
|
|
7450
7449
|
}
|
|
7451
7450
|
else if (dt.isNegativeZero(t))
|
|
7452
7451
|
return "-0.0";
|
|
7453
|
-
return i = t.toString(10),
|
|
7452
|
+
return i = t.toString(10), Mx.test(i) ? i.replace("e", ".e") : i;
|
|
7454
7453
|
}
|
|
7455
|
-
function
|
|
7454
|
+
function Dx(t) {
|
|
7456
7455
|
return Object.prototype.toString.call(t) === "[object Number]" && (t % 1 !== 0 || dt.isNegativeZero(t));
|
|
7457
7456
|
}
|
|
7458
|
-
var
|
|
7457
|
+
var Nx = new ht("tag:yaml.org,2002:float", {
|
|
7459
7458
|
kind: "scalar",
|
|
7460
|
-
resolve:
|
|
7461
|
-
construct:
|
|
7462
|
-
predicate:
|
|
7463
|
-
represent:
|
|
7459
|
+
resolve: Ox,
|
|
7460
|
+
construct: Ix,
|
|
7461
|
+
predicate: Dx,
|
|
7462
|
+
represent: $x,
|
|
7464
7463
|
defaultStyle: "lowercase"
|
|
7465
|
-
}), bc =
|
|
7464
|
+
}), bc = gx.extend({
|
|
7466
7465
|
implicit: [
|
|
7467
|
-
|
|
7468
|
-
|
|
7469
|
-
|
|
7470
|
-
|
|
7466
|
+
Cx,
|
|
7467
|
+
Sx,
|
|
7468
|
+
Lx,
|
|
7469
|
+
Nx
|
|
7471
7470
|
]
|
|
7472
|
-
}),
|
|
7471
|
+
}), Rx = bc, Tc = new RegExp(
|
|
7473
7472
|
"^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"
|
|
7474
7473
|
), Sc = new RegExp(
|
|
7475
7474
|
"^([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]))?))?$"
|
|
7476
7475
|
);
|
|
7477
|
-
function
|
|
7476
|
+
function Px(t) {
|
|
7478
7477
|
return t === null ? !1 : Tc.exec(t) !== null || Sc.exec(t) !== null;
|
|
7479
7478
|
}
|
|
7480
|
-
function
|
|
7479
|
+
function qx(t) {
|
|
7481
7480
|
var e, i, r, n, s, o, a, l = 0, c = null, h, d, u;
|
|
7482
7481
|
if (e = Tc.exec(t), e === null && (e = Sc.exec(t)), e === null)
|
|
7483
7482
|
throw new Error("Date resolve error");
|
|
@@ -7490,25 +7489,25 @@ function Px(t) {
|
|
|
7490
7489
|
}
|
|
7491
7490
|
return e[9] && (h = +e[10], d = +(e[11] || 0), c = (h * 60 + d) * 6e4, e[9] === "-" && (c = -c)), u = new Date(Date.UTC(i, r, n, s, o, a, l)), c && u.setTime(u.getTime() - c), u;
|
|
7492
7491
|
}
|
|
7493
|
-
function
|
|
7492
|
+
function zx(t) {
|
|
7494
7493
|
return t.toISOString();
|
|
7495
7494
|
}
|
|
7496
|
-
var
|
|
7495
|
+
var Wx = new ht("tag:yaml.org,2002:timestamp", {
|
|
7497
7496
|
kind: "scalar",
|
|
7498
|
-
resolve:
|
|
7499
|
-
construct:
|
|
7497
|
+
resolve: Px,
|
|
7498
|
+
construct: qx,
|
|
7500
7499
|
instanceOf: Date,
|
|
7501
|
-
represent:
|
|
7500
|
+
represent: zx
|
|
7502
7501
|
});
|
|
7503
|
-
function
|
|
7502
|
+
function Hx(t) {
|
|
7504
7503
|
return t === "<<" || t === null;
|
|
7505
7504
|
}
|
|
7506
|
-
var
|
|
7505
|
+
var Yx = new ht("tag:yaml.org,2002:merge", {
|
|
7507
7506
|
kind: "scalar",
|
|
7508
|
-
resolve:
|
|
7507
|
+
resolve: Hx
|
|
7509
7508
|
}), wo = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
7510
7509
|
\r`;
|
|
7511
|
-
function
|
|
7510
|
+
function jx(t) {
|
|
7512
7511
|
if (t === null)
|
|
7513
7512
|
return !1;
|
|
7514
7513
|
var e, i, r = 0, n = t.length, s = wo;
|
|
@@ -7520,37 +7519,37 @@ function Yx(t) {
|
|
|
7520
7519
|
}
|
|
7521
7520
|
return r % 8 === 0;
|
|
7522
7521
|
}
|
|
7523
|
-
function
|
|
7522
|
+
function Ux(t) {
|
|
7524
7523
|
var e, i, r = t.replace(/[\r\n=]/g, ""), n = r.length, s = wo, o = 0, a = [];
|
|
7525
7524
|
for (e = 0; e < n; e++)
|
|
7526
7525
|
e % 4 === 0 && e && (a.push(o >> 16 & 255), a.push(o >> 8 & 255), a.push(o & 255)), o = o << 6 | s.indexOf(r.charAt(e));
|
|
7527
7526
|
return i = n % 4 * 6, i === 0 ? (a.push(o >> 16 & 255), a.push(o >> 8 & 255), a.push(o & 255)) : i === 18 ? (a.push(o >> 10 & 255), a.push(o >> 2 & 255)) : i === 12 && a.push(o >> 4 & 255), new Uint8Array(a);
|
|
7528
7527
|
}
|
|
7529
|
-
function
|
|
7528
|
+
function Xx(t) {
|
|
7530
7529
|
var e = "", i = 0, r, n, s = t.length, o = wo;
|
|
7531
7530
|
for (r = 0; r < s; r++)
|
|
7532
7531
|
r % 3 === 0 && r && (e += o[i >> 18 & 63], e += o[i >> 12 & 63], e += o[i >> 6 & 63], e += o[i & 63]), i = (i << 8) + t[r];
|
|
7533
7532
|
return n = s % 3, n === 0 ? (e += o[i >> 18 & 63], e += o[i >> 12 & 63], e += o[i >> 6 & 63], e += o[i & 63]) : n === 2 ? (e += o[i >> 10 & 63], e += o[i >> 4 & 63], e += o[i << 2 & 63], e += o[64]) : n === 1 && (e += o[i >> 2 & 63], e += o[i << 4 & 63], e += o[64], e += o[64]), e;
|
|
7534
7533
|
}
|
|
7535
|
-
function
|
|
7534
|
+
function Gx(t) {
|
|
7536
7535
|
return Object.prototype.toString.call(t) === "[object Uint8Array]";
|
|
7537
7536
|
}
|
|
7538
|
-
var
|
|
7537
|
+
var Vx = new ht("tag:yaml.org,2002:binary", {
|
|
7539
7538
|
kind: "scalar",
|
|
7540
|
-
resolve:
|
|
7541
|
-
construct:
|
|
7542
|
-
predicate:
|
|
7543
|
-
represent:
|
|
7544
|
-
}),
|
|
7545
|
-
function
|
|
7539
|
+
resolve: jx,
|
|
7540
|
+
construct: Ux,
|
|
7541
|
+
predicate: Gx,
|
|
7542
|
+
represent: Xx
|
|
7543
|
+
}), Kx = Object.prototype.hasOwnProperty, Zx = Object.prototype.toString;
|
|
7544
|
+
function Jx(t) {
|
|
7546
7545
|
if (t === null)
|
|
7547
7546
|
return !0;
|
|
7548
7547
|
var e = [], i, r, n, s, o, a = t;
|
|
7549
7548
|
for (i = 0, r = a.length; i < r; i += 1) {
|
|
7550
|
-
if (n = a[i], o = !1,
|
|
7549
|
+
if (n = a[i], o = !1, Zx.call(n) !== "[object Object]")
|
|
7551
7550
|
return !1;
|
|
7552
7551
|
for (s in n)
|
|
7553
|
-
if (
|
|
7552
|
+
if (Kx.call(n, s))
|
|
7554
7553
|
if (!o)
|
|
7555
7554
|
o = !0;
|
|
7556
7555
|
else
|
|
@@ -7564,26 +7563,26 @@ function Zx(t) {
|
|
|
7564
7563
|
}
|
|
7565
7564
|
return !0;
|
|
7566
7565
|
}
|
|
7567
|
-
function
|
|
7566
|
+
function Qx(t) {
|
|
7568
7567
|
return t !== null ? t : [];
|
|
7569
7568
|
}
|
|
7570
|
-
var
|
|
7569
|
+
var tb = new ht("tag:yaml.org,2002:omap", {
|
|
7571
7570
|
kind: "sequence",
|
|
7572
|
-
resolve:
|
|
7573
|
-
construct:
|
|
7574
|
-
}),
|
|
7575
|
-
function
|
|
7571
|
+
resolve: Jx,
|
|
7572
|
+
construct: Qx
|
|
7573
|
+
}), eb = Object.prototype.toString;
|
|
7574
|
+
function ib(t) {
|
|
7576
7575
|
if (t === null)
|
|
7577
7576
|
return !0;
|
|
7578
7577
|
var e, i, r, n, s, o = t;
|
|
7579
7578
|
for (s = new Array(o.length), e = 0, i = o.length; e < i; e += 1) {
|
|
7580
|
-
if (r = o[e],
|
|
7579
|
+
if (r = o[e], eb.call(r) !== "[object Object]" || (n = Object.keys(r), n.length !== 1))
|
|
7581
7580
|
return !1;
|
|
7582
7581
|
s[e] = [n[0], r[n[0]]];
|
|
7583
7582
|
}
|
|
7584
7583
|
return !0;
|
|
7585
7584
|
}
|
|
7586
|
-
function
|
|
7585
|
+
function rb(t) {
|
|
7587
7586
|
if (t === null)
|
|
7588
7587
|
return [];
|
|
7589
7588
|
var e, i, r, n, s, o = t;
|
|
@@ -7591,39 +7590,39 @@ function ib(t) {
|
|
|
7591
7590
|
r = o[e], n = Object.keys(r), s[e] = [n[0], r[n[0]]];
|
|
7592
7591
|
return s;
|
|
7593
7592
|
}
|
|
7594
|
-
var
|
|
7593
|
+
var nb = new ht("tag:yaml.org,2002:pairs", {
|
|
7595
7594
|
kind: "sequence",
|
|
7596
|
-
resolve:
|
|
7597
|
-
construct:
|
|
7598
|
-
}),
|
|
7599
|
-
function
|
|
7595
|
+
resolve: ib,
|
|
7596
|
+
construct: rb
|
|
7597
|
+
}), ob = Object.prototype.hasOwnProperty;
|
|
7598
|
+
function sb(t) {
|
|
7600
7599
|
if (t === null)
|
|
7601
7600
|
return !0;
|
|
7602
7601
|
var e, i = t;
|
|
7603
7602
|
for (e in i)
|
|
7604
|
-
if (
|
|
7603
|
+
if (ob.call(i, e) && i[e] !== null)
|
|
7605
7604
|
return !1;
|
|
7606
7605
|
return !0;
|
|
7607
7606
|
}
|
|
7608
|
-
function
|
|
7607
|
+
function ab(t) {
|
|
7609
7608
|
return t !== null ? t : {};
|
|
7610
7609
|
}
|
|
7611
|
-
var
|
|
7610
|
+
var lb = new ht("tag:yaml.org,2002:set", {
|
|
7612
7611
|
kind: "mapping",
|
|
7613
|
-
resolve:
|
|
7614
|
-
construct:
|
|
7615
|
-
}),
|
|
7612
|
+
resolve: sb,
|
|
7613
|
+
construct: ab
|
|
7614
|
+
}), cb = Rx.extend({
|
|
7616
7615
|
implicit: [
|
|
7617
|
-
|
|
7618
|
-
|
|
7616
|
+
Wx,
|
|
7617
|
+
Yx
|
|
7619
7618
|
],
|
|
7620
7619
|
explicit: [
|
|
7621
|
-
|
|
7622
|
-
|
|
7623
|
-
|
|
7624
|
-
|
|
7620
|
+
Vx,
|
|
7621
|
+
tb,
|
|
7622
|
+
nb,
|
|
7623
|
+
lb
|
|
7625
7624
|
]
|
|
7626
|
-
}), de = Object.prototype.hasOwnProperty, Er = 1, vc = 2, kc = 3, Lr = 4, Sn = 1,
|
|
7625
|
+
}), de = Object.prototype.hasOwnProperty, Er = 1, vc = 2, kc = 3, Lr = 4, Sn = 1, hb = 2, oa = 3, ub = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, db = /[\x85\u2028\u2029]/, fb = /[,\[\]\{\}]/, wc = /^(?:!|!!|![a-z\-]+!)$/i, Ac = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
|
|
7627
7626
|
function sa(t) {
|
|
7628
7627
|
return Object.prototype.toString.call(t);
|
|
7629
7628
|
}
|
|
@@ -7639,21 +7638,21 @@ function Ct(t) {
|
|
|
7639
7638
|
function $e(t) {
|
|
7640
7639
|
return t === 44 || t === 91 || t === 93 || t === 123 || t === 125;
|
|
7641
7640
|
}
|
|
7642
|
-
function
|
|
7641
|
+
function pb(t) {
|
|
7643
7642
|
var e;
|
|
7644
7643
|
return 48 <= t && t <= 57 ? t - 48 : (e = t | 32, 97 <= e && e <= 102 ? e - 97 + 10 : -1);
|
|
7645
7644
|
}
|
|
7646
|
-
function
|
|
7645
|
+
function gb(t) {
|
|
7647
7646
|
return t === 120 ? 2 : t === 117 ? 4 : t === 85 ? 8 : 0;
|
|
7648
7647
|
}
|
|
7649
|
-
function
|
|
7648
|
+
function mb(t) {
|
|
7650
7649
|
return 48 <= t && t <= 57 ? t - 48 : -1;
|
|
7651
7650
|
}
|
|
7652
7651
|
function aa(t) {
|
|
7653
7652
|
return t === 48 ? "\0" : t === 97 ? "\x07" : t === 98 ? "\b" : t === 116 || t === 9 ? " " : t === 110 ? `
|
|
7654
7653
|
` : t === 118 ? "\v" : t === 102 ? "\f" : t === 114 ? "\r" : t === 101 ? "\x1B" : t === 32 ? " " : t === 34 ? '"' : t === 47 ? "/" : t === 92 ? "\\" : t === 78 ? "
" : t === 95 ? " " : t === 76 ? "\u2028" : t === 80 ? "\u2029" : "";
|
|
7655
7654
|
}
|
|
7656
|
-
function
|
|
7655
|
+
function yb(t) {
|
|
7657
7656
|
return t <= 65535 ? String.fromCharCode(t) : String.fromCharCode(
|
|
7658
7657
|
(t - 65536 >> 10) + 55296,
|
|
7659
7658
|
(t - 65536 & 1023) + 56320
|
|
@@ -7662,8 +7661,8 @@ function mb(t) {
|
|
|
7662
7661
|
var Bc = new Array(256), Ec = new Array(256);
|
|
7663
7662
|
for (var Ie = 0; Ie < 256; Ie++)
|
|
7664
7663
|
Bc[Ie] = aa(Ie) ? 1 : 0, Ec[Ie] = aa(Ie);
|
|
7665
|
-
function
|
|
7666
|
-
this.input = t, this.filename = e.filename || null, this.schema = e.schema ||
|
|
7664
|
+
function _b(t, e) {
|
|
7665
|
+
this.input = t, this.filename = e.filename || null, this.schema = e.schema || cb, this.onWarning = e.onWarning || null, this.legacy = e.legacy || !1, this.json = e.json || !1, this.listener = e.listener || null, this.implicitTypes = this.schema.compiledImplicit, this.typeMap = this.schema.compiledTypeMap, this.length = t.length, this.position = 0, this.line = 0, this.lineStart = 0, this.lineIndent = 0, this.firstTabInLine = -1, this.documents = [];
|
|
7667
7666
|
}
|
|
7668
7667
|
function Lc(t, e) {
|
|
7669
7668
|
var i = {
|
|
@@ -7674,7 +7673,7 @@ function Lc(t, e) {
|
|
|
7674
7673
|
line: t.line,
|
|
7675
7674
|
column: t.position - t.lineStart
|
|
7676
7675
|
};
|
|
7677
|
-
return i.snippet =
|
|
7676
|
+
return i.snippet = ox(i), new Qt(e, i);
|
|
7678
7677
|
}
|
|
7679
7678
|
function O(t, e) {
|
|
7680
7679
|
throw Lc(t, e);
|
|
@@ -7704,7 +7703,7 @@ function he(t, e, i, r) {
|
|
|
7704
7703
|
if (a = t.input.slice(e, i), r)
|
|
7705
7704
|
for (n = 0, s = a.length; n < s; n += 1)
|
|
7706
7705
|
o = a.charCodeAt(n), o === 9 || 32 <= o && o <= 1114111 || O(t, "expected valid JSON character");
|
|
7707
|
-
else
|
|
7706
|
+
else ub.test(a) && O(t, "the stream contains non-printable characters");
|
|
7708
7707
|
t.result += a;
|
|
7709
7708
|
}
|
|
7710
7709
|
}
|
|
@@ -7761,7 +7760,7 @@ function Bo(t, e) {
|
|
|
7761
7760
|
e === 1 ? t.result += " " : e > 1 && (t.result += dt.repeat(`
|
|
7762
7761
|
`, e - 1));
|
|
7763
7762
|
}
|
|
7764
|
-
function
|
|
7763
|
+
function Cb(t, e, i) {
|
|
7765
7764
|
var r, n, s, o, a, l, c, h, d = t.kind, u = t.result, f;
|
|
7766
7765
|
if (f = t.input.charCodeAt(t.position), Ct(f) || $e(f) || f === 35 || f === 38 || f === 42 || f === 33 || f === 124 || f === 62 || f === 39 || f === 34 || f === 37 || f === 64 || f === 96 || (f === 63 || f === 45) && (n = t.input.charCodeAt(t.position + 1), Ct(n) || i && $e(n)))
|
|
7767
7766
|
return !1;
|
|
@@ -7788,7 +7787,7 @@ function _b(t, e, i) {
|
|
|
7788
7787
|
}
|
|
7789
7788
|
return he(t, s, o, !1), t.result ? !0 : (t.kind = d, t.result = u, !1);
|
|
7790
7789
|
}
|
|
7791
|
-
function
|
|
7790
|
+
function xb(t, e) {
|
|
7792
7791
|
var i, r, n;
|
|
7793
7792
|
if (i = t.input.charCodeAt(t.position), i !== 39)
|
|
7794
7793
|
return !1;
|
|
@@ -7801,7 +7800,7 @@ function Cb(t, e) {
|
|
|
7801
7800
|
else Pt(i) ? (he(t, r, n, !0), Bo(t, J(t, !1, e)), r = n = t.position) : t.position === t.lineStart && Jr(t) ? O(t, "unexpected end of the document within a single quoted scalar") : (t.position++, n = t.position);
|
|
7802
7801
|
O(t, "unexpected end of the stream within a single quoted scalar");
|
|
7803
7802
|
}
|
|
7804
|
-
function
|
|
7803
|
+
function bb(t, e) {
|
|
7805
7804
|
var i, r, n, s, o, a;
|
|
7806
7805
|
if (a = t.input.charCodeAt(t.position), a !== 34)
|
|
7807
7806
|
return !1;
|
|
@@ -7813,10 +7812,10 @@ function xb(t, e) {
|
|
|
7813
7812
|
J(t, !1, e);
|
|
7814
7813
|
else if (a < 256 && Bc[a])
|
|
7815
7814
|
t.result += Ec[a], t.position++;
|
|
7816
|
-
else if ((o =
|
|
7815
|
+
else if ((o = gb(a)) > 0) {
|
|
7817
7816
|
for (n = o, s = 0; n > 0; n--)
|
|
7818
|
-
a = t.input.charCodeAt(++t.position), (o =
|
|
7819
|
-
t.result +=
|
|
7817
|
+
a = t.input.charCodeAt(++t.position), (o = pb(a)) >= 0 ? s = (s << 4) + o : O(t, "expected hexadecimal character");
|
|
7818
|
+
t.result += yb(s), t.position++;
|
|
7820
7819
|
} else
|
|
7821
7820
|
O(t, "unknown escape sequence");
|
|
7822
7821
|
i = r = t.position;
|
|
@@ -7824,7 +7823,7 @@ function xb(t, e) {
|
|
|
7824
7823
|
}
|
|
7825
7824
|
O(t, "unexpected end of the stream within a double quoted scalar");
|
|
7826
7825
|
}
|
|
7827
|
-
function
|
|
7826
|
+
function Tb(t, e) {
|
|
7828
7827
|
var i = !0, r, n, s, o = t.tag, a, l = t.anchor, c, h, d, u, f, m = /* @__PURE__ */ Object.create(null), y, _, E, b;
|
|
7829
7828
|
if (b = t.input.charCodeAt(t.position), b === 91)
|
|
7830
7829
|
h = 93, f = !1, a = [];
|
|
@@ -7835,11 +7834,11 @@ function bb(t, e) {
|
|
|
7835
7834
|
for (t.anchor !== null && (t.anchorMap[t.anchor] = a), b = t.input.charCodeAt(++t.position); b !== 0; ) {
|
|
7836
7835
|
if (J(t, !0, e), b = t.input.charCodeAt(t.position), b === h)
|
|
7837
7836
|
return t.position++, t.tag = o, t.anchor = l, t.kind = f ? "mapping" : "sequence", t.result = a, !0;
|
|
7838
|
-
i ? b === 44 && O(t, "expected the node content, but found ','") : O(t, "missed comma between flow collection entries"), _ = y = E = null, d = u = !1, b === 63 && (c = t.input.charCodeAt(t.position + 1), Ct(c) && (d = u = !0, t.position++, J(t, !0, e))), r = t.line, n = t.lineStart, s = t.position,
|
|
7837
|
+
i ? b === 44 && O(t, "expected the node content, but found ','") : O(t, "missed comma between flow collection entries"), _ = y = E = null, d = u = !1, b === 63 && (c = t.input.charCodeAt(t.position + 1), Ct(c) && (d = u = !0, t.position++, J(t, !0, e))), r = t.line, n = t.lineStart, s = t.position, Ke(t, e, Er, !1, !0), _ = t.tag, y = t.result, J(t, !0, e), b = t.input.charCodeAt(t.position), (u || t.line === r) && b === 58 && (d = !0, b = t.input.charCodeAt(++t.position), J(t, !0, e), Ke(t, e, Er, !1, !0), E = t.result), f ? De(t, a, m, _, y, E, r, n, s) : d ? a.push(De(t, null, m, _, y, E, r, n, s)) : a.push(y), J(t, !0, e), b = t.input.charCodeAt(t.position), b === 44 ? (i = !0, b = t.input.charCodeAt(++t.position)) : i = !1;
|
|
7839
7838
|
}
|
|
7840
7839
|
O(t, "unexpected end of the stream within a flow collection");
|
|
7841
7840
|
}
|
|
7842
|
-
function
|
|
7841
|
+
function Sb(t, e) {
|
|
7843
7842
|
var i, r, n = Sn, s = !1, o = !1, a = e, l = 0, c = !1, h, d;
|
|
7844
7843
|
if (d = t.input.charCodeAt(t.position), d === 124)
|
|
7845
7844
|
r = !1;
|
|
@@ -7849,8 +7848,8 @@ function Tb(t, e) {
|
|
|
7849
7848
|
return !1;
|
|
7850
7849
|
for (t.kind = "scalar", t.result = ""; d !== 0; )
|
|
7851
7850
|
if (d = t.input.charCodeAt(++t.position), d === 43 || d === 45)
|
|
7852
|
-
Sn === n ? n = d === 43 ? oa :
|
|
7853
|
-
else if ((h =
|
|
7851
|
+
Sn === n ? n = d === 43 ? oa : hb : O(t, "repeat of a chomping mode identifier");
|
|
7852
|
+
else if ((h = mb(d)) >= 0)
|
|
7854
7853
|
h === 0 ? O(t, "bad explicit indentation width of a block scalar; it cannot be less than one") : o ? O(t, "repeat of an indentation width identifier") : (a = e + h - 1, o = !0);
|
|
7855
7854
|
else
|
|
7856
7855
|
break;
|
|
@@ -7895,14 +7894,14 @@ function ha(t, e) {
|
|
|
7895
7894
|
s.push(null), l = t.input.charCodeAt(t.position);
|
|
7896
7895
|
continue;
|
|
7897
7896
|
}
|
|
7898
|
-
if (i = t.line,
|
|
7897
|
+
if (i = t.line, Ke(t, e, kc, !1, !0), s.push(t.result), J(t, !0, -1), l = t.input.charCodeAt(t.position), (t.line === i || t.lineIndent > e) && l !== 0)
|
|
7899
7898
|
O(t, "bad indentation of a sequence entry");
|
|
7900
7899
|
else if (t.lineIndent < e)
|
|
7901
7900
|
break;
|
|
7902
7901
|
}
|
|
7903
7902
|
return a ? (t.tag = r, t.anchor = n, t.kind = "sequence", t.result = s, !0) : !1;
|
|
7904
7903
|
}
|
|
7905
|
-
function
|
|
7904
|
+
function vb(t, e, i) {
|
|
7906
7905
|
var r, n, s, o, a, l, c = t.tag, h = t.anchor, d = {}, u = /* @__PURE__ */ Object.create(null), f = null, m = null, y = null, _ = !1, E = !1, b;
|
|
7907
7906
|
if (t.firstTabInLine !== -1)
|
|
7908
7907
|
return !1;
|
|
@@ -7910,7 +7909,7 @@ function Sb(t, e, i) {
|
|
|
7910
7909
|
if (!_ && t.firstTabInLine !== -1 && (t.position = t.firstTabInLine, O(t, "tab characters must not be used in indentation")), r = t.input.charCodeAt(t.position + 1), s = t.line, (b === 63 || b === 58) && Ct(r))
|
|
7911
7910
|
b === 63 ? (_ && (De(t, d, u, f, m, null, o, a, l), f = m = y = null), E = !0, _ = !0, n = !0) : _ ? (_ = !1, n = !0) : O(t, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), t.position += 1, b = r;
|
|
7912
7911
|
else {
|
|
7913
|
-
if (o = t.line, a = t.lineStart, l = t.position, !
|
|
7912
|
+
if (o = t.line, a = t.lineStart, l = t.position, !Ke(t, i, vc, !1, !0))
|
|
7914
7913
|
break;
|
|
7915
7914
|
if (t.line === s) {
|
|
7916
7915
|
for (b = t.input.charCodeAt(t.position); xe(b); )
|
|
@@ -7926,14 +7925,14 @@ function Sb(t, e, i) {
|
|
|
7926
7925
|
else
|
|
7927
7926
|
return t.tag = c, t.anchor = h, !0;
|
|
7928
7927
|
}
|
|
7929
|
-
if ((t.line === s || t.lineIndent > e) && (_ && (o = t.line, a = t.lineStart, l = t.position),
|
|
7928
|
+
if ((t.line === s || t.lineIndent > e) && (_ && (o = t.line, a = t.lineStart, l = t.position), Ke(t, e, Lr, !0, n) && (_ ? m = t.result : y = t.result), _ || (De(t, d, u, f, m, y, o, a, l), f = m = y = null), J(t, !0, -1), b = t.input.charCodeAt(t.position)), (t.line === s || t.lineIndent > e) && b !== 0)
|
|
7930
7929
|
O(t, "bad indentation of a mapping entry");
|
|
7931
7930
|
else if (t.lineIndent < e)
|
|
7932
7931
|
break;
|
|
7933
7932
|
}
|
|
7934
7933
|
return _ && De(t, d, u, f, m, null, o, a, l), E && (t.tag = c, t.anchor = h, t.kind = "mapping", t.result = d), E;
|
|
7935
7934
|
}
|
|
7936
|
-
function
|
|
7935
|
+
function kb(t) {
|
|
7937
7936
|
var e, i = !1, r = !1, n, s, o;
|
|
7938
7937
|
if (o = t.input.charCodeAt(t.position), o !== 33)
|
|
7939
7938
|
return !1;
|
|
@@ -7945,7 +7944,7 @@ function vb(t) {
|
|
|
7945
7944
|
} else {
|
|
7946
7945
|
for (; o !== 0 && !Ct(o); )
|
|
7947
7946
|
o === 33 && (r ? O(t, "tag suffix cannot contain exclamation marks") : (n = t.input.slice(e - 1, t.position + 1), wc.test(n) || O(t, "named tag handle cannot contain such characters"), r = !0, e = t.position + 1)), o = t.input.charCodeAt(++t.position);
|
|
7948
|
-
s = t.input.slice(e, t.position),
|
|
7947
|
+
s = t.input.slice(e, t.position), fb.test(s) && O(t, "tag suffix cannot contain flow indicator characters");
|
|
7949
7948
|
}
|
|
7950
7949
|
s && !Ac.test(s) && O(t, "tag name cannot contain such characters: " + s);
|
|
7951
7950
|
try {
|
|
@@ -7955,7 +7954,7 @@ function vb(t) {
|
|
|
7955
7954
|
}
|
|
7956
7955
|
return i ? t.tag = s : de.call(t.tagMap, n) ? t.tag = t.tagMap[n] + s : n === "!" ? t.tag = "!" + s : n === "!!" ? t.tag = "tag:yaml.org,2002:" + s : O(t, 'undeclared tag handle "' + n + '"'), !0;
|
|
7957
7956
|
}
|
|
7958
|
-
function
|
|
7957
|
+
function wb(t) {
|
|
7959
7958
|
var e, i;
|
|
7960
7959
|
if (i = t.input.charCodeAt(t.position), i !== 38)
|
|
7961
7960
|
return !1;
|
|
@@ -7963,7 +7962,7 @@ function kb(t) {
|
|
|
7963
7962
|
i = t.input.charCodeAt(++t.position);
|
|
7964
7963
|
return t.position === e && O(t, "name of an anchor node must contain at least one character"), t.anchor = t.input.slice(e, t.position), !0;
|
|
7965
7964
|
}
|
|
7966
|
-
function
|
|
7965
|
+
function Ab(t) {
|
|
7967
7966
|
var e, i, r;
|
|
7968
7967
|
if (r = t.input.charCodeAt(t.position), r !== 42)
|
|
7969
7968
|
return !1;
|
|
@@ -7971,12 +7970,12 @@ function wb(t) {
|
|
|
7971
7970
|
r = t.input.charCodeAt(++t.position);
|
|
7972
7971
|
return t.position === e && O(t, "name of an alias node must contain at least one character"), i = t.input.slice(e, t.position), de.call(t.anchorMap, i) || O(t, 'unidentified alias "' + i + '"'), t.result = t.anchorMap[i], J(t, !0, -1), !0;
|
|
7973
7972
|
}
|
|
7974
|
-
function
|
|
7973
|
+
function Ke(t, e, i, r, n) {
|
|
7975
7974
|
var s, o, a, l = 1, c = !1, h = !1, d, u, f, m, y, _;
|
|
7976
7975
|
if (t.listener !== null && t.listener("open", t), t.tag = null, t.anchor = null, t.kind = null, t.result = null, s = o = a = Lr === i || kc === i, r && J(t, !0, -1) && (c = !0, t.lineIndent > e ? l = 1 : t.lineIndent === e ? l = 0 : t.lineIndent < e && (l = -1)), l === 1)
|
|
7977
|
-
for (;
|
|
7976
|
+
for (; kb(t) || wb(t); )
|
|
7978
7977
|
J(t, !0, -1) ? (c = !0, a = s, t.lineIndent > e ? l = 1 : t.lineIndent === e ? l = 0 : t.lineIndent < e && (l = -1)) : a = !1;
|
|
7979
|
-
if (a && (a = c || n), (l === 1 || Lr === i) && (Er === i || vc === i ? y = e : y = e + 1, _ = t.position - t.lineStart, l === 1 ? a && (ha(t, _) ||
|
|
7978
|
+
if (a && (a = c || n), (l === 1 || Lr === i) && (Er === i || vc === i ? y = e : y = e + 1, _ = t.position - t.lineStart, l === 1 ? a && (ha(t, _) || vb(t, _, y)) || Tb(t, y) ? h = !0 : (o && Sb(t, y) || xb(t, y) || bb(t, y) ? h = !0 : Ab(t) ? (h = !0, (t.tag !== null || t.anchor !== null) && O(t, "alias node should not have any properties")) : Cb(t, y, Er === i) && (h = !0, t.tag === null && (t.tag = "?")), t.anchor !== null && (t.anchorMap[t.anchor] = t.result)) : l === 0 && (h = a && ha(t, _))), t.tag === null)
|
|
7980
7979
|
t.anchor !== null && (t.anchorMap[t.anchor] = t.result);
|
|
7981
7980
|
else if (t.tag === "?") {
|
|
7982
7981
|
for (t.result !== null && t.kind !== "scalar" && O(t, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + t.kind + '"'), d = 0, u = t.implicitTypes.length; d < u; d += 1)
|
|
@@ -7997,7 +7996,7 @@ function Ve(t, e, i, r, n) {
|
|
|
7997
7996
|
}
|
|
7998
7997
|
return t.listener !== null && t.listener("close", t), t.tag !== null || t.anchor !== null || h;
|
|
7999
7998
|
}
|
|
8000
|
-
function
|
|
7999
|
+
function Bb(t) {
|
|
8001
8000
|
var e = t.position, i, r, n, s = !1, o;
|
|
8002
8001
|
for (t.version = null, t.checkLineBreaks = t.legacy, t.tagMap = /* @__PURE__ */ Object.create(null), t.anchorMap = /* @__PURE__ */ Object.create(null); (o = t.input.charCodeAt(t.position)) !== 0 && (J(t, !0, -1), o = t.input.charCodeAt(t.position), !(t.lineIndent > 0 || o !== 37)); ) {
|
|
8003
8002
|
for (s = !0, o = t.input.charCodeAt(++t.position), i = t.position; o !== 0 && !Ct(o); )
|
|
@@ -8019,7 +8018,7 @@ function Ab(t) {
|
|
|
8019
8018
|
}
|
|
8020
8019
|
o !== 0 && Ao(t), de.call(la, r) ? la[r](t, r, n) : Fr(t, 'unknown document directive "' + r + '"');
|
|
8021
8020
|
}
|
|
8022
|
-
if (J(t, !0, -1), t.lineIndent === 0 && t.input.charCodeAt(t.position) === 45 && t.input.charCodeAt(t.position + 1) === 45 && t.input.charCodeAt(t.position + 2) === 45 ? (t.position += 3, J(t, !0, -1)) : s && O(t, "directives end mark is expected"),
|
|
8021
|
+
if (J(t, !0, -1), t.lineIndent === 0 && t.input.charCodeAt(t.position) === 45 && t.input.charCodeAt(t.position + 1) === 45 && t.input.charCodeAt(t.position + 2) === 45 ? (t.position += 3, J(t, !0, -1)) : s && O(t, "directives end mark is expected"), Ke(t, t.lineIndent - 1, Lr, !1, !0), J(t, !0, -1), t.checkLineBreaks && db.test(t.input.slice(e, t.position)) && Fr(t, "non-ASCII line breaks are interpreted as content"), t.documents.push(t.result), t.position === t.lineStart && Jr(t)) {
|
|
8023
8022
|
t.input.charCodeAt(t.position) === 46 && (t.position += 3, J(t, !0, -1));
|
|
8024
8023
|
return;
|
|
8025
8024
|
}
|
|
@@ -8028,38 +8027,38 @@ function Ab(t) {
|
|
|
8028
8027
|
else
|
|
8029
8028
|
return;
|
|
8030
8029
|
}
|
|
8031
|
-
function
|
|
8030
|
+
function Eb(t, e) {
|
|
8032
8031
|
t = String(t), e = e || {}, t.length !== 0 && (t.charCodeAt(t.length - 1) !== 10 && t.charCodeAt(t.length - 1) !== 13 && (t += `
|
|
8033
8032
|
`), t.charCodeAt(0) === 65279 && (t = t.slice(1)));
|
|
8034
|
-
var i = new
|
|
8033
|
+
var i = new _b(t, e), r = t.indexOf("\0");
|
|
8035
8034
|
for (r !== -1 && (i.position = r, O(i, "null byte is not allowed in input")), i.input += "\0"; i.input.charCodeAt(i.position) === 32; )
|
|
8036
8035
|
i.lineIndent += 1, i.position += 1;
|
|
8037
8036
|
for (; i.position < i.length - 1; )
|
|
8038
|
-
|
|
8037
|
+
Bb(i);
|
|
8039
8038
|
return i.documents;
|
|
8040
8039
|
}
|
|
8041
|
-
function
|
|
8042
|
-
var i =
|
|
8040
|
+
function Lb(t, e) {
|
|
8041
|
+
var i = Eb(t, e);
|
|
8043
8042
|
if (i.length !== 0) {
|
|
8044
8043
|
if (i.length === 1)
|
|
8045
8044
|
return i[0];
|
|
8046
8045
|
throw new Qt("expected a single document in the stream, but found more");
|
|
8047
8046
|
}
|
|
8048
8047
|
}
|
|
8049
|
-
var
|
|
8050
|
-
load:
|
|
8051
|
-
},
|
|
8052
|
-
function
|
|
8048
|
+
var Fb = Lb, Ob = {
|
|
8049
|
+
load: Fb
|
|
8050
|
+
}, Ib = bc, Mb = Ob.load;
|
|
8051
|
+
function $b(t) {
|
|
8053
8052
|
const e = t.match($l);
|
|
8054
8053
|
if (!e)
|
|
8055
8054
|
return {
|
|
8056
8055
|
text: t,
|
|
8057
8056
|
metadata: {}
|
|
8058
8057
|
};
|
|
8059
|
-
let i =
|
|
8058
|
+
let i = Mb(e[1], {
|
|
8060
8059
|
// To support config, we need JSON schema.
|
|
8061
8060
|
// https://www.yaml.org/spec/1.2/spec.html#id2803231
|
|
8062
|
-
schema:
|
|
8061
|
+
schema: Ib
|
|
8063
8062
|
}) ?? {};
|
|
8064
8063
|
i = typeof i == "object" && !Array.isArray(i) ? i : {};
|
|
8065
8064
|
const r = {};
|
|
@@ -8068,35 +8067,35 @@ function Mb(t) {
|
|
|
8068
8067
|
metadata: r
|
|
8069
8068
|
};
|
|
8070
8069
|
}
|
|
8071
|
-
const
|
|
8070
|
+
const Db = (t) => t.replace(/\r\n?/g, `
|
|
8072
8071
|
`).replace(
|
|
8073
8072
|
/<(\w+)([^>]*)>/g,
|
|
8074
8073
|
(e, i, r) => "<" + i + r.replace(/="([^"]*)"/g, "='$1'") + ">"
|
|
8075
|
-
),
|
|
8076
|
-
const { text: e, metadata: i } =
|
|
8074
|
+
), Nb = (t) => {
|
|
8075
|
+
const { text: e, metadata: i } = $b(t), { displayMode: r, title: n, config: s = {} } = i;
|
|
8077
8076
|
return r && (s.gantt || (s.gantt = {}), s.gantt.displayMode = r), { title: n, config: s, text: e };
|
|
8078
|
-
},
|
|
8079
|
-
const e =
|
|
8077
|
+
}, Rb = (t) => {
|
|
8078
|
+
const e = Ti.detectInit(t) ?? {}, i = Ti.detectDirective(t, "wrap");
|
|
8080
8079
|
return Array.isArray(i) ? e.wrap = i.some(({ type: r }) => {
|
|
8081
8080
|
}) : (i == null ? void 0 : i.type) === "wrap" && (e.wrap = !0), {
|
|
8082
|
-
text:
|
|
8081
|
+
text: cy(t),
|
|
8083
8082
|
directive: e
|
|
8084
8083
|
};
|
|
8085
8084
|
};
|
|
8086
8085
|
function Fc(t) {
|
|
8087
|
-
const e =
|
|
8088
|
-
return t =
|
|
8086
|
+
const e = Db(t), i = Nb(e), r = Rb(i.text), n = Wl(i.config, r.directive);
|
|
8087
|
+
return t = UC(r.text), {
|
|
8089
8088
|
code: t,
|
|
8090
8089
|
title: i.title,
|
|
8091
8090
|
config: n
|
|
8092
8091
|
};
|
|
8093
8092
|
}
|
|
8094
|
-
const
|
|
8093
|
+
const Pb = 5e4, qb = "graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa", zb = "sandbox", Wb = "loose", Hb = "http://www.w3.org/2000/svg", Yb = "http://www.w3.org/1999/xlink", jb = "http://www.w3.org/1999/xhtml", Ub = "100%", Xb = "100%", Gb = "border:0;margin:0;", Vb = "margin:0", Kb = "allow-top-navigation-by-user-activation allow-popups", Zb = 'The "iframe" tag is not supported by your browser.', Jb = ["foreignobject"], Qb = ["dominant-baseline"];
|
|
8095
8094
|
function Oc(t) {
|
|
8096
8095
|
const e = Fc(t);
|
|
8097
|
-
return wr(),
|
|
8096
|
+
return wr(), $y(e.config ?? {}), e;
|
|
8098
8097
|
}
|
|
8099
|
-
async function
|
|
8098
|
+
async function t1(t, e) {
|
|
8100
8099
|
ko(), t = Oc(t).code;
|
|
8101
8100
|
try {
|
|
8102
8101
|
await Eo(t);
|
|
@@ -8108,7 +8107,7 @@ async function Qb(t, e) {
|
|
|
8108
8107
|
return !0;
|
|
8109
8108
|
}
|
|
8110
8109
|
const ua = (t, e, i = []) => `
|
|
8111
|
-
.${t} ${e} { ${i.join(" !important; ")} !important; }`,
|
|
8110
|
+
.${t} ${e} { ${i.join(" !important; ")} !important; }`, e1 = (t, e = {}) => {
|
|
8112
8111
|
var i;
|
|
8113
8112
|
let r = "";
|
|
8114
8113
|
if (t.themeCSS !== void 0 && (r += `
|
|
@@ -8124,52 +8123,52 @@ ${t.themeCSS}`), t.fontFamily !== void 0 && (r += `
|
|
|
8124
8123
|
}
|
|
8125
8124
|
}
|
|
8126
8125
|
return r;
|
|
8127
|
-
},
|
|
8128
|
-
const n =
|
|
8126
|
+
}, i1 = (t, e, i, r) => {
|
|
8127
|
+
const n = e1(t, i), s = eC(e, n, t.themeVariables);
|
|
8129
8128
|
return Rn(f0(`${r}{${s}}`), g0);
|
|
8130
|
-
},
|
|
8129
|
+
}, r1 = (t = "", e, i) => {
|
|
8131
8130
|
let r = t;
|
|
8132
8131
|
return !i && !e && (r = r.replace(
|
|
8133
8132
|
/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,
|
|
8134
8133
|
'marker-end="url(#'
|
|
8135
|
-
)), r =
|
|
8136
|
-
},
|
|
8134
|
+
)), r = Fy(r), r = r.replace(/<br>/g, "<br/>"), r;
|
|
8135
|
+
}, n1 = (t = "", e) => {
|
|
8137
8136
|
var i, r;
|
|
8138
|
-
const n = (r = (i = e == null ? void 0 : e.viewBox) == null ? void 0 : i.baseVal) != null && r.height ? e.viewBox.baseVal.height + "px" :
|
|
8139
|
-
return `<iframe style="width:${
|
|
8140
|
-
${
|
|
8137
|
+
const n = (r = (i = e == null ? void 0 : e.viewBox) == null ? void 0 : i.baseVal) != null && r.height ? e.viewBox.baseVal.height + "px" : Xb, s = btoa('<body style="' + Vb + '">' + t + "</body>");
|
|
8138
|
+
return `<iframe style="width:${Ub};height:${n};${Gb}" src="data:text/html;base64,${s}" sandbox="${Kb}">
|
|
8139
|
+
${Zb}
|
|
8141
8140
|
</iframe>`;
|
|
8142
8141
|
}, da = (t, e, i, r, n) => {
|
|
8143
8142
|
const s = t.append("div");
|
|
8144
8143
|
s.attr("id", i), r && s.attr("style", r);
|
|
8145
|
-
const o = s.append("svg").attr("id", e).attr("width", "100%").attr("xmlns",
|
|
8144
|
+
const o = s.append("svg").attr("id", e).attr("width", "100%").attr("xmlns", Hb);
|
|
8146
8145
|
return n && o.attr("xmlns:xlink", n), o.append("g"), t;
|
|
8147
8146
|
};
|
|
8148
8147
|
function fa(t, e) {
|
|
8149
8148
|
return t.append("iframe").attr("id", e).attr("style", "width: 100%; height: 100%;").attr("sandbox", "");
|
|
8150
8149
|
}
|
|
8151
|
-
const
|
|
8150
|
+
const o1 = (t, e, i, r) => {
|
|
8152
8151
|
var n, s, o;
|
|
8153
8152
|
(n = t.getElementById(e)) == null || n.remove(), (s = t.getElementById(i)) == null || s.remove(), (o = t.getElementById(r)) == null || o.remove();
|
|
8154
|
-
},
|
|
8153
|
+
}, s1 = async function(t, e, i) {
|
|
8155
8154
|
var r, n, s, o, a, l;
|
|
8156
8155
|
ko();
|
|
8157
8156
|
const c = Oc(e);
|
|
8158
8157
|
e = c.code;
|
|
8159
8158
|
const h = zt();
|
|
8160
|
-
$.debug(h), e.length > ((h == null ? void 0 : h.maxTextSize) ??
|
|
8159
|
+
$.debug(h), e.length > ((h == null ? void 0 : h.maxTextSize) ?? Pb) && (e = qb);
|
|
8161
8160
|
const d = "#" + t, u = "i" + t, f = "#" + u, m = "d" + t, y = "#" + m;
|
|
8162
8161
|
let _ = kt("body");
|
|
8163
|
-
const E = h.securityLevel ===
|
|
8162
|
+
const E = h.securityLevel === zb, b = h.securityLevel === Wb, R = h.fontFamily;
|
|
8164
8163
|
if (i !== void 0) {
|
|
8165
8164
|
if (i && (i.innerHTML = ""), E) {
|
|
8166
8165
|
const M = fa(kt(i), u);
|
|
8167
8166
|
_ = kt(M.nodes()[0].contentDocument.body), _.node().style.margin = 0;
|
|
8168
8167
|
} else
|
|
8169
8168
|
_ = kt(i);
|
|
8170
|
-
da(_, t, m, `font-family: ${R}`,
|
|
8169
|
+
da(_, t, m, `font-family: ${R}`, Yb);
|
|
8171
8170
|
} else {
|
|
8172
|
-
if (
|
|
8171
|
+
if (o1(document, t, m, u), E) {
|
|
8173
8172
|
const M = fa(kt("body"), u);
|
|
8174
8173
|
_ = kt(M.nodes()[0].contentDocument.body), _.node().style.margin = 0;
|
|
8175
8174
|
} else
|
|
@@ -8182,24 +8181,24 @@ const n1 = (t, e, i, r) => {
|
|
|
8182
8181
|
} catch (M) {
|
|
8183
8182
|
C = new _c("error"), v = M;
|
|
8184
8183
|
}
|
|
8185
|
-
const U = _.select(y).node(), D = C.type, Q = U.firstChild, nt = Q.firstChild, H = (n = (r = C.renderer).getClasses) == null ? void 0 : n.call(r, e, C), A =
|
|
8184
|
+
const U = _.select(y).node(), D = C.type, Q = U.firstChild, nt = Q.firstChild, H = (n = (r = C.renderer).getClasses) == null ? void 0 : n.call(r, e, C), A = i1(h, D, H, d), tt = document.createElement("style");
|
|
8186
8185
|
tt.innerHTML = A, Q.insertBefore(tt, nt);
|
|
8187
8186
|
try {
|
|
8188
8187
|
await C.renderer.draw(e, t, ta, C);
|
|
8189
8188
|
} catch (M) {
|
|
8190
|
-
throw
|
|
8189
|
+
throw _C.draw(e, t, ta), M;
|
|
8191
8190
|
}
|
|
8192
8191
|
const ne = _.select(`${y} svg`), P = (o = (s = C.db).getAccTitle) == null ? void 0 : o.call(s), w = (l = (a = C.db).getAccDescription) == null ? void 0 : l.call(a);
|
|
8193
|
-
|
|
8192
|
+
l1(D, ne, P, w), _.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns", jb);
|
|
8194
8193
|
let T = _.select(y).node().innerHTML;
|
|
8195
|
-
if ($.debug("config.arrowMarkerAbsolute", h.arrowMarkerAbsolute), T =
|
|
8194
|
+
if ($.debug("config.arrowMarkerAbsolute", h.arrowMarkerAbsolute), T = r1(T, E, Ol(h.arrowMarkerAbsolute)), E) {
|
|
8196
8195
|
const M = _.select(y + " svg").node();
|
|
8197
|
-
T =
|
|
8196
|
+
T = n1(T, M);
|
|
8198
8197
|
} else b || (T = He.sanitize(T, {
|
|
8199
|
-
ADD_TAGS:
|
|
8200
|
-
ADD_ATTR:
|
|
8198
|
+
ADD_TAGS: Jb,
|
|
8199
|
+
ADD_ATTR: Qb
|
|
8201
8200
|
}));
|
|
8202
|
-
if (
|
|
8201
|
+
if (WC(), v)
|
|
8203
8202
|
throw v;
|
|
8204
8203
|
const k = kt(E ? f : y).node();
|
|
8205
8204
|
return k && "remove" in k && k.remove(), {
|
|
@@ -8207,44 +8206,44 @@ const n1 = (t, e, i, r) => {
|
|
|
8207
8206
|
bindFunctions: C.db.bindFunctions
|
|
8208
8207
|
};
|
|
8209
8208
|
};
|
|
8210
|
-
function
|
|
8209
|
+
function a1(t = {}) {
|
|
8211
8210
|
var e;
|
|
8212
|
-
t != null && t.fontFamily && !((e = t.themeVariables) != null && e.fontFamily) && (t.themeVariables || (t.themeVariables = {}), t.themeVariables.fontFamily = t.fontFamily),
|
|
8211
|
+
t != null && t.fontFamily && !((e = t.themeVariables) != null && e.fontFamily) && (t.themeVariables || (t.themeVariables = {}), t.themeVariables.fontFamily = t.fontFamily), Iy(t), t != null && t.theme && t.theme in ee ? t.themeVariables = ee[t.theme].getThemeVariables(
|
|
8213
8212
|
t.themeVariables
|
|
8214
8213
|
) : t && (t.themeVariables = ee.default.getThemeVariables(t.themeVariables));
|
|
8215
|
-
const i = typeof t == "object" ?
|
|
8214
|
+
const i = typeof t == "object" ? Oy(t) : Yl();
|
|
8216
8215
|
po(i.logLevel), ko();
|
|
8217
8216
|
}
|
|
8218
8217
|
const Eo = (t, e = {}) => {
|
|
8219
8218
|
const { code: i } = Fc(t);
|
|
8220
|
-
return
|
|
8219
|
+
return zC(i, e);
|
|
8221
8220
|
};
|
|
8222
|
-
function
|
|
8223
|
-
|
|
8221
|
+
function l1(t, e, i, r) {
|
|
8222
|
+
YC(e, t), jC(e, i, r, e.attr("id"));
|
|
8224
8223
|
}
|
|
8225
8224
|
const Se = Object.freeze({
|
|
8226
|
-
render:
|
|
8227
|
-
parse:
|
|
8225
|
+
render: s1,
|
|
8226
|
+
parse: t1,
|
|
8228
8227
|
getDiagramFromText: Eo,
|
|
8229
|
-
initialize:
|
|
8228
|
+
initialize: a1,
|
|
8230
8229
|
getConfig: zt,
|
|
8231
8230
|
setConfig: jl,
|
|
8232
8231
|
getSiteConfig: Yl,
|
|
8233
|
-
updateSiteConfig:
|
|
8232
|
+
updateSiteConfig: My,
|
|
8234
8233
|
reset: () => {
|
|
8235
8234
|
wr();
|
|
8236
8235
|
},
|
|
8237
8236
|
globalReset: () => {
|
|
8238
|
-
wr(
|
|
8237
|
+
wr(Ge);
|
|
8239
8238
|
},
|
|
8240
|
-
defaultConfig:
|
|
8239
|
+
defaultConfig: Ge
|
|
8241
8240
|
});
|
|
8242
8241
|
po(zt().logLevel);
|
|
8243
8242
|
wr(zt());
|
|
8244
|
-
const
|
|
8243
|
+
const c1 = async () => {
|
|
8245
8244
|
$.debug("Loading registered diagrams");
|
|
8246
8245
|
const e = (await Promise.allSettled(
|
|
8247
|
-
Object.entries(
|
|
8246
|
+
Object.entries(Xe).map(async ([i, { detector: r, loader: n }]) => {
|
|
8248
8247
|
if (n)
|
|
8249
8248
|
try {
|
|
8250
8249
|
vo(i);
|
|
@@ -8253,7 +8252,7 @@ const l1 = async () => {
|
|
|
8253
8252
|
const { diagram: o, id: a } = await n();
|
|
8254
8253
|
Br(a, o, r);
|
|
8255
8254
|
} catch (o) {
|
|
8256
|
-
throw $.error(`Failed to load external diagram with key ${i}. Removing from detectors.`), delete
|
|
8255
|
+
throw $.error(`Failed to load external diagram with key ${i}. Removing from detectors.`), delete Xe[i], o;
|
|
8257
8256
|
}
|
|
8258
8257
|
}
|
|
8259
8258
|
})
|
|
@@ -8264,7 +8263,7 @@ const l1 = async () => {
|
|
|
8264
8263
|
$.error(i);
|
|
8265
8264
|
throw new Error(`Failed to load ${e.length} external diagrams`);
|
|
8266
8265
|
}
|
|
8267
|
-
},
|
|
8266
|
+
}, h1 = (t, e, i) => {
|
|
8268
8267
|
$.warn(t), zl(t) ? (i && i(t.str, t.hash), e.push({ ...t, message: t.str, error: t })) : (i && i(t), t instanceof Error && e.push({
|
|
8269
8268
|
str: t.message,
|
|
8270
8269
|
message: t.message,
|
|
@@ -8275,12 +8274,12 @@ const l1 = async () => {
|
|
|
8275
8274
|
querySelector: ".mermaid"
|
|
8276
8275
|
}) {
|
|
8277
8276
|
try {
|
|
8278
|
-
await
|
|
8277
|
+
await u1(t);
|
|
8279
8278
|
} catch (e) {
|
|
8280
8279
|
if (zl(e) && $.error(e.str), xt.parseError && xt.parseError(e), !t.suppressErrors)
|
|
8281
8280
|
throw $.error("Use the suppressErrors option to suppress these errors"), e;
|
|
8282
8281
|
}
|
|
8283
|
-
},
|
|
8282
|
+
}, u1 = async function({ postRenderCallback: t, querySelector: e, nodes: i } = {
|
|
8284
8283
|
querySelector: ".mermaid"
|
|
8285
8284
|
}) {
|
|
8286
8285
|
const r = Se.getConfig();
|
|
@@ -8293,7 +8292,7 @@ const l1 = async () => {
|
|
|
8293
8292
|
else
|
|
8294
8293
|
throw new Error("Nodes and querySelector are both undefined");
|
|
8295
8294
|
$.debug(`Found ${n.length} diagrams`), (r == null ? void 0 : r.startOnLoad) !== void 0 && ($.debug("Start On Load: " + (r == null ? void 0 : r.startOnLoad)), Se.updateSiteConfig({ startOnLoad: r == null ? void 0 : r.startOnLoad }));
|
|
8296
|
-
const s = new
|
|
8295
|
+
const s = new Ti.InitIDGenerator(r.deterministicIds, r.deterministicIDSeed);
|
|
8297
8296
|
let o;
|
|
8298
8297
|
const a = [];
|
|
8299
8298
|
for (const l of Array.from(n)) {
|
|
@@ -8303,28 +8302,28 @@ const l1 = async () => {
|
|
|
8303
8302
|
continue;
|
|
8304
8303
|
l.setAttribute("data-processed", "true");
|
|
8305
8304
|
const c = `mermaid-${s.next()}`;
|
|
8306
|
-
o = l.innerHTML, o = uh(
|
|
8307
|
-
const h =
|
|
8305
|
+
o = l.innerHTML, o = uh(Ti.entityDecode(o)).trim().replace(/<br\s*\/?>/gi, "<br/>");
|
|
8306
|
+
const h = Ti.detectInit(o);
|
|
8308
8307
|
h && $.debug("Detected early reinit: ", h);
|
|
8309
8308
|
try {
|
|
8310
8309
|
const { svg: d, bindFunctions: u } = await Nc(c, o, l);
|
|
8311
8310
|
l.innerHTML = d, t && await t(c), u && u(l);
|
|
8312
8311
|
} catch (d) {
|
|
8313
|
-
|
|
8312
|
+
h1(d, a, xt.parseError);
|
|
8314
8313
|
}
|
|
8315
8314
|
}
|
|
8316
8315
|
if (a.length > 0)
|
|
8317
8316
|
throw a[0];
|
|
8318
8317
|
}, Mc = function(t) {
|
|
8319
8318
|
Se.initialize(t);
|
|
8320
|
-
},
|
|
8319
|
+
}, d1 = async function(t, e, i) {
|
|
8321
8320
|
$.warn("mermaid.init is deprecated. Please use run instead."), t && Mc(t);
|
|
8322
8321
|
const r = { postRenderCallback: i, querySelector: ".mermaid" };
|
|
8323
8322
|
typeof e == "string" ? r.querySelector = e : e && (e instanceof HTMLElement ? r.nodes = [e] : r.nodes = e), await Ic(r);
|
|
8324
|
-
},
|
|
8323
|
+
}, f1 = async (t, {
|
|
8325
8324
|
lazyLoad: e = !0
|
|
8326
8325
|
} = {}) => {
|
|
8327
|
-
Nl(...t), e === !1 && await
|
|
8326
|
+
Nl(...t), e === !1 && await c1();
|
|
8328
8327
|
}, $c = function() {
|
|
8329
8328
|
if (xt.startOnLoad) {
|
|
8330
8329
|
const { startOnLoad: t } = Se.getConfig();
|
|
@@ -8337,7 +8336,7 @@ if (typeof document < "u") {
|
|
|
8337
8336
|
*/
|
|
8338
8337
|
window.addEventListener("load", $c, !1);
|
|
8339
8338
|
}
|
|
8340
|
-
const
|
|
8339
|
+
const p1 = function(t) {
|
|
8341
8340
|
xt.parseError = t;
|
|
8342
8341
|
}, Or = [];
|
|
8343
8342
|
let vn = !1;
|
|
@@ -8354,7 +8353,7 @@ const Dc = async () => {
|
|
|
8354
8353
|
}
|
|
8355
8354
|
vn = !1;
|
|
8356
8355
|
}
|
|
8357
|
-
},
|
|
8356
|
+
}, g1 = async (t, e) => new Promise((i, r) => {
|
|
8358
8357
|
const n = () => new Promise((s, o) => {
|
|
8359
8358
|
Se.parse(t, e).then(
|
|
8360
8359
|
(a) => {
|
|
@@ -8383,31 +8382,31 @@ const Dc = async () => {
|
|
|
8383
8382
|
}), xt = {
|
|
8384
8383
|
startOnLoad: !0,
|
|
8385
8384
|
mermaidAPI: Se,
|
|
8386
|
-
parse:
|
|
8385
|
+
parse: g1,
|
|
8387
8386
|
render: Nc,
|
|
8388
|
-
init:
|
|
8387
|
+
init: d1,
|
|
8389
8388
|
run: Ic,
|
|
8390
|
-
registerExternalDiagrams:
|
|
8389
|
+
registerExternalDiagrams: f1,
|
|
8391
8390
|
initialize: Mc,
|
|
8392
8391
|
parseError: void 0,
|
|
8393
8392
|
contentLoaded: $c,
|
|
8394
|
-
setParseErrorHandler:
|
|
8393
|
+
setParseErrorHandler: p1,
|
|
8395
8394
|
detectType: Kr
|
|
8396
|
-
},
|
|
8397
|
-
t =
|
|
8395
|
+
}, ti = (t) => {
|
|
8396
|
+
t = y1(t);
|
|
8398
8397
|
const e = t.replace(/#(\d+);/g, "&#$1;").replace(/#([a-z]+);/g, "&$1;"), i = document.createElement("textarea");
|
|
8399
8398
|
return i.innerHTML = e, i.value;
|
|
8400
8399
|
}, qe = (t) => {
|
|
8401
8400
|
const e = t.getAttribute("transform"), i = e == null ? void 0 : e.match(/translate\(([ \d.-]+),\s*([\d.-]+)\)/);
|
|
8402
8401
|
let r = 0, n = 0;
|
|
8403
8402
|
return i && (r = Number(i[1]), n = Number(i[2])), { transformX: r, transformY: n };
|
|
8404
|
-
},
|
|
8403
|
+
}, m1 = (t) => {
|
|
8405
8404
|
let e = t;
|
|
8406
8405
|
return e = e.replace(/style.*:\S*#.*;/g, (i) => i.substring(0, i.length - 1)), e = e.replace(/classDef.*:\S*#.*;/g, (i) => i.substring(0, i.length - 1)), e = e.replace(/#\w+;/g, (i) => {
|
|
8407
8406
|
const r = i.substring(1, i.length - 1);
|
|
8408
8407
|
return /^\+?\d+$/.test(r) ? `fl°°${r}¶ß` : `fl°${r}¶ß`;
|
|
8409
8408
|
}), e;
|
|
8410
|
-
},
|
|
8409
|
+
}, y1 = function(t) {
|
|
8411
8410
|
return t.replace(/fl°°/g, "#").replace(/fl°/g, "&").replace(/¶ß/g, ";");
|
|
8412
8411
|
}, Rc = (t, e = { x: 0, y: 0 }) => {
|
|
8413
8412
|
if (t.tagName.toLowerCase() !== "path")
|
|
@@ -8439,7 +8438,7 @@ const Dc = async () => {
|
|
|
8439
8438
|
endY: s[1] + e.y,
|
|
8440
8439
|
reflectionPoints: o
|
|
8441
8440
|
};
|
|
8442
|
-
},
|
|
8441
|
+
}, _1 = (t, e) => {
|
|
8443
8442
|
const i = t.nodes.map((a) => a.startsWith("flowchart-") ? a.split("-")[1] : a), r = e.querySelector(`[id='${t.id}']`);
|
|
8444
8443
|
if (!r)
|
|
8445
8444
|
throw new Error("SubGraph element not found");
|
|
@@ -8452,9 +8451,9 @@ const Dc = async () => {
|
|
|
8452
8451
|
nodeIds: i,
|
|
8453
8452
|
...n,
|
|
8454
8453
|
...o,
|
|
8455
|
-
text:
|
|
8454
|
+
text: ti(t.title)
|
|
8456
8455
|
};
|
|
8457
|
-
},
|
|
8456
|
+
}, C1 = (t, e) => {
|
|
8458
8457
|
var d, u, f;
|
|
8459
8458
|
const i = e.querySelector(`[id*="flowchart-${t.id}-"]`);
|
|
8460
8459
|
if (!i)
|
|
@@ -8480,7 +8479,7 @@ const Dc = async () => {
|
|
|
8480
8479
|
}), {
|
|
8481
8480
|
id: t.id,
|
|
8482
8481
|
labelType: t.labelType,
|
|
8483
|
-
text:
|
|
8482
|
+
text: ti(t.text),
|
|
8484
8483
|
type: t.type,
|
|
8485
8484
|
link: r || void 0,
|
|
8486
8485
|
...n,
|
|
@@ -8488,7 +8487,7 @@ const Dc = async () => {
|
|
|
8488
8487
|
containerStyle: c,
|
|
8489
8488
|
labelStyle: h
|
|
8490
8489
|
};
|
|
8491
|
-
},
|
|
8490
|
+
}, x1 = (t, e, i) => {
|
|
8492
8491
|
const r = i.querySelector(`[id*="L-${t.start}-${t.end}-${e}"]`);
|
|
8493
8492
|
if (!r)
|
|
8494
8493
|
throw new Error("Edge element not found");
|
|
@@ -8496,7 +8495,7 @@ const Dc = async () => {
|
|
|
8496
8495
|
return t.length = void 0, {
|
|
8497
8496
|
...t,
|
|
8498
8497
|
...s,
|
|
8499
|
-
text:
|
|
8498
|
+
text: ti(t.text)
|
|
8500
8499
|
};
|
|
8501
8500
|
}, Lo = (t, e) => {
|
|
8502
8501
|
var l;
|
|
@@ -8524,25 +8523,25 @@ const Dc = async () => {
|
|
|
8524
8523
|
i = i.parentElement;
|
|
8525
8524
|
}
|
|
8526
8525
|
return a;
|
|
8527
|
-
},
|
|
8526
|
+
}, b1 = (t, e) => {
|
|
8528
8527
|
t.parse();
|
|
8529
8528
|
const i = t.parser.yy, r = i.getVertices();
|
|
8530
8529
|
Object.keys(r).forEach((a) => {
|
|
8531
|
-
r[a] =
|
|
8530
|
+
r[a] = C1(r[a], e);
|
|
8532
8531
|
});
|
|
8533
8532
|
const n = /* @__PURE__ */ new Map(), s = i.getEdges().filter((a) => e.querySelector(`[id*="L-${a.start}-${a.end}"]`)).map((a) => {
|
|
8534
8533
|
const l = `${a.start}-${a.end}`, c = n.get(l) || 0;
|
|
8535
|
-
return n.set(l, c + 1),
|
|
8534
|
+
return n.set(l, c + 1), x1(a, c, e);
|
|
8536
8535
|
});
|
|
8537
8536
|
return {
|
|
8538
8537
|
type: "flowchart",
|
|
8539
|
-
subGraphs: i.getSubGraphs().map((a) =>
|
|
8538
|
+
subGraphs: i.getSubGraphs().map((a) => _1(a, e)),
|
|
8540
8539
|
vertices: r,
|
|
8541
8540
|
edges: s
|
|
8542
8541
|
};
|
|
8543
|
-
},
|
|
8542
|
+
}, T1 = (t, e) => {
|
|
8544
8543
|
const i = {};
|
|
8545
|
-
e != null && e.label && (i.label = { text:
|
|
8544
|
+
e != null && e.label && (i.label = { text: ti(e.label), fontSize: 16 });
|
|
8546
8545
|
const r = t.tagName;
|
|
8547
8546
|
if (r === "line")
|
|
8548
8547
|
i.startX = Number(t.getAttribute("x1")), i.startY = Number(t.getAttribute("y1")), i.endX = Number(t.getAttribute("x2")), i.endY = Number(t.getAttribute("y2"));
|
|
@@ -8581,7 +8580,7 @@ const Dc = async () => {
|
|
|
8581
8580
|
metadata: r == null ? void 0 : r.metadata
|
|
8582
8581
|
}), qc = (t, e, i) => {
|
|
8583
8582
|
const r = {}, n = Number(t.getAttribute("x")), s = Number(t.getAttribute("y"));
|
|
8584
|
-
r.type = "text", r.text =
|
|
8583
|
+
r.type = "text", r.text = ti(e), i != null && i.id && (r.id = i.id), i != null && i.groupId && (r.groupId = i.groupId);
|
|
8585
8584
|
const o = t.getBBox();
|
|
8586
8585
|
r.width = o.width, r.height = o.height, r.x = n - o.width / 2, r.y = s;
|
|
8587
8586
|
const a = parseInt(getComputedStyle(t).fontSize);
|
|
@@ -8591,7 +8590,7 @@ const Dc = async () => {
|
|
|
8591
8590
|
r.type = e;
|
|
8592
8591
|
const { label: n, subtype: s, id: o, groupId: a } = i;
|
|
8593
8592
|
r.id = o, a && (r.groupId = a), n && (r.label = {
|
|
8594
|
-
text:
|
|
8593
|
+
text: ti(n.text),
|
|
8595
8594
|
fontSize: 16,
|
|
8596
8595
|
verticalAlign: n == null ? void 0 : n.verticalAlign
|
|
8597
8596
|
});
|
|
@@ -8629,7 +8628,7 @@ const Dc = async () => {
|
|
|
8629
8628
|
SOLID_POINT: 24,
|
|
8630
8629
|
DOTTED_POINT: 25,
|
|
8631
8630
|
CRITICAL_START: 27
|
|
8632
|
-
},
|
|
8631
|
+
}, S1 = (t) => {
|
|
8633
8632
|
let e;
|
|
8634
8633
|
switch (t) {
|
|
8635
8634
|
case Dt.SOLID:
|
|
@@ -8649,7 +8648,7 @@ const Dc = async () => {
|
|
|
8649
8648
|
break;
|
|
8650
8649
|
}
|
|
8651
8650
|
return e;
|
|
8652
|
-
},
|
|
8651
|
+
}, v1 = (t, e) => {
|
|
8653
8652
|
var r, n;
|
|
8654
8653
|
if (!!((r = t.nextElementSibling) != null && r.classList.contains("sequenceNumber"))) {
|
|
8655
8654
|
const s = (n = t.nextElementSibling) == null ? void 0 : n.textContent;
|
|
@@ -8699,7 +8698,7 @@ const Dc = async () => {
|
|
|
8699
8698
|
}
|
|
8700
8699
|
s.push(c);
|
|
8701
8700
|
}), s;
|
|
8702
|
-
},
|
|
8701
|
+
}, k1 = (t, e) => {
|
|
8703
8702
|
const i = Array.from(e.querySelectorAll(".actor-top")), r = Array.from(e.querySelectorAll(".actor-bottom")), n = [], s = [];
|
|
8704
8703
|
return Object.values(t).forEach((o, a) => {
|
|
8705
8704
|
var d;
|
|
@@ -8741,17 +8740,17 @@ const Dc = async () => {
|
|
|
8741
8740
|
}
|
|
8742
8741
|
}
|
|
8743
8742
|
}), { nodes: n, lines: s };
|
|
8744
|
-
},
|
|
8743
|
+
}, w1 = (t, e) => {
|
|
8745
8744
|
const i = [], r = Array.from(e.querySelectorAll('[class*="messageLine"]')), n = Object.keys(pa), s = t.filter((o) => n.includes(o.type.toString()));
|
|
8746
8745
|
return r.forEach((o, a) => {
|
|
8747
|
-
const l = s[a], c = pa[l.type], h =
|
|
8746
|
+
const l = s[a], c = pa[l.type], h = T1(o, {
|
|
8748
8747
|
label: l == null ? void 0 : l.message,
|
|
8749
|
-
strokeStyle:
|
|
8748
|
+
strokeStyle: S1(l.type),
|
|
8750
8749
|
endArrowhead: c === "SOLID_OPEN" || c === "DOTTED_OPEN" ? null : "arrow"
|
|
8751
8750
|
});
|
|
8752
|
-
|
|
8751
|
+
v1(o, h), i.push(h);
|
|
8753
8752
|
}), i;
|
|
8754
|
-
},
|
|
8753
|
+
}, A1 = (t, e) => {
|
|
8755
8754
|
const i = Array.from(e.querySelectorAll(".note")).map((s) => s.parentElement), r = t.filter((s) => s.type === Dt.NOTE), n = [];
|
|
8756
8755
|
return i.forEach((s, o) => {
|
|
8757
8756
|
if (!s)
|
|
@@ -8762,7 +8761,7 @@ const Dc = async () => {
|
|
|
8762
8761
|
});
|
|
8763
8762
|
n.push(c);
|
|
8764
8763
|
}), n;
|
|
8765
|
-
},
|
|
8764
|
+
}, B1 = (t) => {
|
|
8766
8765
|
const e = Array.from(t.querySelectorAll("[class*=activation]")), i = [];
|
|
8767
8766
|
return e.forEach((r) => {
|
|
8768
8767
|
const n = Wt(r, "rectangle", {
|
|
@@ -8771,7 +8770,7 @@ const Dc = async () => {
|
|
|
8771
8770
|
});
|
|
8772
8771
|
i.push(n);
|
|
8773
8772
|
}), i;
|
|
8774
|
-
},
|
|
8773
|
+
}, E1 = (t, e) => {
|
|
8775
8774
|
const i = Array.from(e.querySelectorAll(".loopLine")), r = [], n = [], s = [];
|
|
8776
8775
|
i.forEach((h) => {
|
|
8777
8776
|
const d = Number(h.getAttribute("x1")), u = Number(h.getAttribute("y1")), f = Number(h.getAttribute("x2")), m = Number(h.getAttribute("y2")), y = Oi(h, d, u, f, m);
|
|
@@ -8791,7 +8790,7 @@ const Dc = async () => {
|
|
|
8791
8790
|
});
|
|
8792
8791
|
f.strokeColor = "#adb5bd", f.bgColor = "#e9ecef", f.width = void 0, s.push(f);
|
|
8793
8792
|
}), { lines: r, texts: n, nodes: s };
|
|
8794
|
-
},
|
|
8793
|
+
}, L1 = (t) => {
|
|
8795
8794
|
const e = Array.from(t.querySelectorAll(".rect")).filter((r) => {
|
|
8796
8795
|
var n;
|
|
8797
8796
|
return ((n = r.parentElement) == null ? void 0 : n.tagName) !== "g";
|
|
@@ -8803,9 +8802,9 @@ const Dc = async () => {
|
|
|
8803
8802
|
});
|
|
8804
8803
|
i.push(n);
|
|
8805
8804
|
}), i;
|
|
8806
|
-
},
|
|
8805
|
+
}, F1 = (t, e) => {
|
|
8807
8806
|
t.parse();
|
|
8808
|
-
const i = t.parser.yy, r = [], n = i.getBoxes(), s =
|
|
8807
|
+
const i = t.parser.yy, r = [], n = i.getBoxes(), s = L1(e), o = i.getActors(), { nodes: a, lines: l } = k1(o, e), c = i.getMessages(), h = w1(c, e), d = A1(c, e), u = B1(e), f = E1(c, e);
|
|
8809
8808
|
return r.push(s), r.push(...a), r.push(d), r.push(u), { type: "sequence", lines: l, arrows: h, nodes: r, loops: f, groups: n };
|
|
8810
8809
|
}, Qi = {
|
|
8811
8810
|
AGGREGATION: 0,
|
|
@@ -8815,7 +8814,7 @@ const Dc = async () => {
|
|
|
8815
8814
|
}, ma = {
|
|
8816
8815
|
LINE: 0,
|
|
8817
8816
|
DOTTED_LINE: 1
|
|
8818
|
-
}, se = 16,
|
|
8817
|
+
}, se = 16, O1 = (t) => {
|
|
8819
8818
|
let e;
|
|
8820
8819
|
switch (t) {
|
|
8821
8820
|
case ma.LINE:
|
|
@@ -8849,7 +8848,7 @@ const Dc = async () => {
|
|
|
8849
8848
|
break;
|
|
8850
8849
|
}
|
|
8851
8850
|
return e;
|
|
8852
|
-
},
|
|
8851
|
+
}, I1 = (t, e) => {
|
|
8853
8852
|
const i = [], r = [], n = [];
|
|
8854
8853
|
return Object.values(t).forEach((s) => {
|
|
8855
8854
|
var y;
|
|
@@ -8881,24 +8880,24 @@ const Dc = async () => {
|
|
|
8881
8880
|
n.push(D);
|
|
8882
8881
|
});
|
|
8883
8882
|
}), { nodes: i, lines: r, text: n };
|
|
8884
|
-
},
|
|
8883
|
+
}, M1 = (t, e) => {
|
|
8885
8884
|
const i = ["triangle_outline", "diamond", "diamond_outline"], r = e.startArrowhead && i.includes(e.startArrowhead), n = e.endArrowhead && i.includes(e.endArrowhead);
|
|
8886
8885
|
return !n && !r || (r && (t === "LR" ? e.startX -= se : t === "RL" ? e.startX += se : t === "TB" ? e.startY -= se : t === "BT" && (e.startY += se)), n && (t === "LR" ? e.endX += se : t === "RL" ? e.endX -= se : t === "TB" ? e.endY += se : t === "BT" && (e.endY -= se))), e;
|
|
8887
|
-
},
|
|
8886
|
+
}, $1 = (t, e, i, r) => {
|
|
8888
8887
|
var a;
|
|
8889
8888
|
const n = (a = i.querySelector(".edgePaths")) == null ? void 0 : a.children;
|
|
8890
8889
|
if (!n)
|
|
8891
8890
|
throw new Error("No Edges found!");
|
|
8892
8891
|
const s = [], o = [];
|
|
8893
8892
|
return t.forEach((l, c) => {
|
|
8894
|
-
const { id1: h, id2: d, relation: u } = l, f = e.find((tt) => tt.id === h), m = e.find((tt) => tt.id === d), y =
|
|
8893
|
+
const { id1: h, id2: d, relation: u } = l, f = e.find((tt) => tt.id === h), m = e.find((tt) => tt.id === d), y = O1(u.lineType), _ = ya(u.type1), E = ya(u.type2), b = Rc(n[c]), R = Pc(b.startX, b.startY, b.endX, b.endY, {
|
|
8895
8894
|
strokeStyle: y,
|
|
8896
8895
|
startArrowhead: _,
|
|
8897
8896
|
endArrowhead: E,
|
|
8898
8897
|
label: l.title ? { text: l.title } : void 0,
|
|
8899
8898
|
start: { type: "rectangle", id: f.id },
|
|
8900
8899
|
end: { type: "rectangle", id: m.id }
|
|
8901
|
-
}), C =
|
|
8900
|
+
}), C = M1(r, R);
|
|
8902
8901
|
s.push(C);
|
|
8903
8902
|
const { relationTitle1: v, relationTitle2: U } = l, D = 20, Q = 15, nt = 15;
|
|
8904
8903
|
let H, A;
|
|
@@ -8947,7 +8946,7 @@ const Dc = async () => {
|
|
|
8947
8946
|
o.push(tt);
|
|
8948
8947
|
}
|
|
8949
8948
|
}), { arrows: s, text: o };
|
|
8950
|
-
},
|
|
8949
|
+
}, D1 = (t, e, i) => {
|
|
8951
8950
|
const r = [], n = [];
|
|
8952
8951
|
return t.forEach((s) => {
|
|
8953
8952
|
const { id: o, text: a, class: l } = s, c = e.querySelector(`#${o}`);
|
|
@@ -8975,16 +8974,16 @@ const Dc = async () => {
|
|
|
8975
8974
|
n.push(R);
|
|
8976
8975
|
}
|
|
8977
8976
|
}), { notes: r, connectors: n };
|
|
8978
|
-
},
|
|
8977
|
+
}, N1 = (t, e) => {
|
|
8979
8978
|
t.parse();
|
|
8980
8979
|
const i = t.parser.yy, r = i.getDirection(), n = [], s = [], o = [], a = [], l = i.getNamespaces(), c = i.getClasses();
|
|
8981
8980
|
if (Object.keys(c).length) {
|
|
8982
|
-
const y =
|
|
8981
|
+
const y = I1(c, e);
|
|
8983
8982
|
n.push(y.nodes), s.push(...y.lines), o.push(...y.text), a.push(...y.nodes);
|
|
8984
8983
|
}
|
|
8985
|
-
const h = i.getRelations(), { arrows: d, text: u } =
|
|
8984
|
+
const h = i.getRelations(), { arrows: d, text: u } = $1(h, a, e, r), { notes: f, connectors: m } = D1(i.getNotes(), e, a);
|
|
8986
8985
|
return n.push(f), d.push(...m), o.push(...u), { type: "class", nodes: n, lines: s, arrows: d, text: o, namespaces: l };
|
|
8987
|
-
},
|
|
8986
|
+
}, R1 = (t) => {
|
|
8988
8987
|
const e = t.querySelector("svg");
|
|
8989
8988
|
if (!e)
|
|
8990
8989
|
throw new Error("SVG element not found");
|
|
@@ -8998,32 +8997,32 @@ const Dc = async () => {
|
|
|
8998
8997
|
width: r,
|
|
8999
8998
|
height: n
|
|
9000
8999
|
};
|
|
9001
|
-
},
|
|
9000
|
+
}, P1 = async (t, e = Vo) => {
|
|
9002
9001
|
xt.initialize({ ...Vo, ...e });
|
|
9003
|
-
const i = await xt.mermaidAPI.getDiagramFromText(
|
|
9002
|
+
const i = await xt.mermaidAPI.getDiagramFromText(m1(t)), { svg: r } = await xt.render("mermaid-to-excalidraw", t), n = document.createElement("div");
|
|
9004
9003
|
n.setAttribute("style", "opacity: 0; position: relative; z-index: -1;"), n.innerHTML = r, n.id = "mermaid-diagram", document.body.appendChild(n);
|
|
9005
9004
|
let s;
|
|
9006
9005
|
switch (i.type) {
|
|
9007
9006
|
case "flowchart-v2": {
|
|
9008
|
-
s =
|
|
9007
|
+
s = b1(i, n);
|
|
9009
9008
|
break;
|
|
9010
9009
|
}
|
|
9011
9010
|
case "sequence": {
|
|
9012
|
-
s =
|
|
9011
|
+
s = F1(i, n);
|
|
9013
9012
|
break;
|
|
9014
9013
|
}
|
|
9015
9014
|
case "classDiagram": {
|
|
9016
|
-
s =
|
|
9015
|
+
s = N1(i, n);
|
|
9017
9016
|
break;
|
|
9018
9017
|
}
|
|
9019
9018
|
// fallback to image if diagram type not-supported
|
|
9020
9019
|
default:
|
|
9021
|
-
s =
|
|
9020
|
+
s = R1(n);
|
|
9022
9021
|
}
|
|
9023
9022
|
return n.remove(), s;
|
|
9024
|
-
},
|
|
9023
|
+
}, q1 = async (t, e) => {
|
|
9025
9024
|
var o;
|
|
9026
|
-
const i = e || {}, r = parseInt(((o = i.themeVariables) == null ? void 0 : o.fontSize) ?? "") || Ir, n = await
|
|
9025
|
+
const i = e || {}, r = parseInt(((o = i.themeVariables) == null ? void 0 : o.fontSize) ?? "") || Ir, n = await P1(t, {
|
|
9027
9026
|
...i,
|
|
9028
9027
|
themeVariables: {
|
|
9029
9028
|
...i.themeVariables,
|
|
@@ -9034,60 +9033,60 @@ const Dc = async () => {
|
|
|
9034
9033
|
return hh(n, {
|
|
9035
9034
|
fontSize: r
|
|
9036
9035
|
});
|
|
9037
|
-
},
|
|
9036
|
+
}, lT = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9038
9037
|
__proto__: null,
|
|
9039
|
-
parseMermaidToExcalidraw:
|
|
9038
|
+
parseMermaidToExcalidraw: q1
|
|
9040
9039
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
9041
9040
|
export {
|
|
9042
|
-
|
|
9043
|
-
|
|
9041
|
+
uy as $,
|
|
9042
|
+
mC as A,
|
|
9044
9043
|
io as B,
|
|
9045
9044
|
qt as C,
|
|
9046
|
-
|
|
9047
|
-
|
|
9045
|
+
U1 as D,
|
|
9046
|
+
V1 as E,
|
|
9048
9047
|
gs as F,
|
|
9049
9048
|
ps as G,
|
|
9050
|
-
|
|
9051
|
-
|
|
9052
|
-
|
|
9053
|
-
|
|
9054
|
-
|
|
9055
|
-
|
|
9056
|
-
|
|
9057
|
-
|
|
9058
|
-
|
|
9059
|
-
|
|
9049
|
+
Z1 as H,
|
|
9050
|
+
K1 as I,
|
|
9051
|
+
G1 as J,
|
|
9052
|
+
Y1 as K,
|
|
9053
|
+
j1 as L,
|
|
9054
|
+
Q1 as M,
|
|
9055
|
+
X1 as N,
|
|
9056
|
+
J1 as O,
|
|
9057
|
+
ey as P,
|
|
9058
|
+
V0 as Q,
|
|
9060
9059
|
Zs as R,
|
|
9061
|
-
|
|
9060
|
+
eT as S,
|
|
9062
9061
|
_o as T,
|
|
9063
9062
|
q as U,
|
|
9064
|
-
|
|
9063
|
+
H0 as V,
|
|
9065
9064
|
zt as W,
|
|
9066
|
-
|
|
9067
|
-
|
|
9068
|
-
|
|
9069
|
-
|
|
9070
|
-
|
|
9065
|
+
tT as X,
|
|
9066
|
+
J_ as Y,
|
|
9067
|
+
oy as Z,
|
|
9068
|
+
_y as _,
|
|
9069
|
+
sC as a,
|
|
9071
9070
|
Ff as a0,
|
|
9072
|
-
|
|
9071
|
+
Cy as a1,
|
|
9073
9072
|
$i as a2,
|
|
9074
9073
|
F as a3,
|
|
9075
9074
|
N as a4,
|
|
9076
|
-
|
|
9075
|
+
cC as a5,
|
|
9077
9076
|
Wl as a6,
|
|
9078
9077
|
bt as a7,
|
|
9079
9078
|
Fa as a8,
|
|
9080
9079
|
Sh as a9,
|
|
9081
|
-
|
|
9080
|
+
H1 as aA,
|
|
9082
9081
|
gh as aB,
|
|
9083
9082
|
Jn as aC,
|
|
9084
9083
|
le as aD,
|
|
9085
9084
|
ls as aE,
|
|
9086
9085
|
fd as aF,
|
|
9087
|
-
|
|
9086
|
+
wi as aG,
|
|
9088
9087
|
uh as aH,
|
|
9089
|
-
|
|
9090
|
-
|
|
9088
|
+
lT as aI,
|
|
9089
|
+
Ci as aa,
|
|
9091
9090
|
Im as ab,
|
|
9092
9091
|
C0 as ac,
|
|
9093
9092
|
jr as ad,
|
|
@@ -9105,7 +9104,7 @@ export {
|
|
|
9105
9104
|
co as ap,
|
|
9106
9105
|
Lg as aq,
|
|
9107
9106
|
Dg as ar,
|
|
9108
|
-
|
|
9107
|
+
Je as as,
|
|
9109
9108
|
wm as at,
|
|
9110
9109
|
_t as au,
|
|
9111
9110
|
sd as av,
|
|
@@ -9113,29 +9112,29 @@ export {
|
|
|
9113
9112
|
Oa as ax,
|
|
9114
9113
|
Mi as ay,
|
|
9115
9114
|
$a as az,
|
|
9116
|
-
|
|
9117
|
-
|
|
9115
|
+
nC as b,
|
|
9116
|
+
rC as c,
|
|
9118
9117
|
kt as d,
|
|
9119
9118
|
uc as e,
|
|
9120
9119
|
ct as f,
|
|
9121
9120
|
So as g,
|
|
9122
9121
|
kr as h,
|
|
9123
|
-
|
|
9122
|
+
Ue as i,
|
|
9124
9123
|
go as j,
|
|
9125
|
-
|
|
9124
|
+
wy as k,
|
|
9126
9125
|
$ as l,
|
|
9127
9126
|
Ri as m,
|
|
9128
|
-
|
|
9129
|
-
|
|
9130
|
-
|
|
9131
|
-
|
|
9127
|
+
lC as n,
|
|
9128
|
+
aC as o,
|
|
9129
|
+
aT as p,
|
|
9130
|
+
iC as q,
|
|
9132
9131
|
Mf as r,
|
|
9133
|
-
|
|
9132
|
+
oC as s,
|
|
9134
9133
|
Ol as t,
|
|
9135
|
-
|
|
9136
|
-
|
|
9137
|
-
|
|
9138
|
-
|
|
9139
|
-
|
|
9140
|
-
|
|
9134
|
+
Ti as u,
|
|
9135
|
+
Fy as v,
|
|
9136
|
+
vy as w,
|
|
9137
|
+
sT as x,
|
|
9138
|
+
fC as y,
|
|
9139
|
+
by as z
|
|
9141
9140
|
};
|