@aiquants/markdown 6.2.0 → 6.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -0
- package/dist/{abnfDiagram-VRR7QNED-DX6eyf4O.cjs → abnfDiagram-VRR7QNED-BGUmgNQ4.cjs} +1 -1
- package/dist/{abnfDiagram-VRR7QNED-Csrzuwyl.js → abnfDiagram-VRR7QNED-D3L_2hCD.js} +3 -3
- package/dist/{arc-ZAQ3z7kr.cjs → arc-B48_ucR0.cjs} +1 -1
- package/dist/{arc-Gw7Urszo.js → arc-ChEpDr_9.js} +1 -1
- package/dist/{architectureDiagram-ZJ3FMSHR-DxzMbkp1.cjs → architectureDiagram-ZJ3FMSHR-Bg0dBVnf.cjs} +1 -1
- package/dist/{architectureDiagram-ZJ3FMSHR-Coy6_Fcg.js → architectureDiagram-ZJ3FMSHR-D4ta1ajC.js} +2 -2
- package/dist/{blockDiagram-677ZJIJ3-CbR-wn2x.js → blockDiagram-677ZJIJ3-CupyE7nK.js} +3 -3
- package/dist/{blockDiagram-677ZJIJ3-THmR4OyE.cjs → blockDiagram-677ZJIJ3-DkWMy8pP.cjs} +1 -1
- package/dist/{c4Diagram-LMCZKHZV-DHMqNO9p.js → c4Diagram-LMCZKHZV-Cy1lIde9.js} +2 -2
- package/dist/{c4Diagram-LMCZKHZV-BcJpuXK1.cjs → c4Diagram-LMCZKHZV-DxOKAkJI.cjs} +1 -1
- package/dist/{channel-CfC4eqki.js → channel-C9c0_XwC.js} +1 -1
- package/dist/{channel-Cryph4zI.cjs → channel-TOZvPft0.cjs} +1 -1
- package/dist/{chunk-2Q5K7J3B-CxWyY331.cjs → chunk-2Q5K7J3B-DaGwwho3.cjs} +1 -1
- package/dist/{chunk-2Q5K7J3B-C3BIc3MH.js → chunk-2Q5K7J3B-DahzXbiI.js} +1 -1
- package/dist/{chunk-32BRIVSS-C3w_aYfI.cjs → chunk-32BRIVSS-BddWRgx3.cjs} +1 -1
- package/dist/{chunk-32BRIVSS-C37ccuiX.js → chunk-32BRIVSS-DFLtYkrI.js} +1 -1
- package/dist/{chunk-5VM5RSS4-Cbt79-V5.cjs → chunk-5VM5RSS4-DSg2-2mp.cjs} +1 -1
- package/dist/{chunk-5VM5RSS4-DVLmkcyq.js → chunk-5VM5RSS4-DiwEVqol.js} +1 -1
- package/dist/{chunk-EX3LRPZG-Co0Bql0-.js → chunk-EX3LRPZG-Ca4uquaA.js} +4 -4
- package/dist/{chunk-EX3LRPZG-BZOxrSRn.cjs → chunk-EX3LRPZG-OD-kvRfM.cjs} +1 -1
- package/dist/{chunk-JWPE2WC7-Cvt_ToFU.cjs → chunk-JWPE2WC7-BGdnK7yg.cjs} +1 -1
- package/dist/{chunk-JWPE2WC7-DUndc3Wb.js → chunk-JWPE2WC7-njgGfGvE.js} +1 -1
- package/dist/{chunk-MOJQB5TN-aTSDPliR.js → chunk-MOJQB5TN-B-H_fDpi.js} +1 -1
- package/dist/{chunk-MOJQB5TN-AAMW2q8N.cjs → chunk-MOJQB5TN-DPs_chEk.cjs} +1 -1
- package/dist/{chunk-PUDLZKDR-Q5QzbDtY.js → chunk-PUDLZKDR-9xQzJ025.js} +6 -6
- package/dist/{chunk-PUDLZKDR-CzCdcyAN.cjs → chunk-PUDLZKDR-DZphdeDg.cjs} +1 -1
- package/dist/{chunk-RYQCIY6F-DbjhsOnH.cjs → chunk-RYQCIY6F-8Qpsw4iJ.cjs} +1 -1
- package/dist/{chunk-RYQCIY6F-O6wbIIFF.js → chunk-RYQCIY6F-BNzT71C4.js} +1 -1
- package/dist/{chunk-V7JOEXUC-B6Qc5ABc.cjs → chunk-V7JOEXUC-BPE4_Rfd.cjs} +1 -1
- package/dist/{chunk-V7JOEXUC-OTS1fN7j.js → chunk-V7JOEXUC-DG6RRlOY.js} +5 -5
- package/dist/{chunk-VR4S4FIN-DlneMFEg.cjs → chunk-VR4S4FIN-C-Pbv_Mm.cjs} +1 -1
- package/dist/{chunk-VR4S4FIN-D4tY80kq.js → chunk-VR4S4FIN-CLtgFgby.js} +1 -1
- package/dist/{chunk-XXDRQBXY-CvhBfnFQ.cjs → chunk-XXDRQBXY-B0bOz96Q.cjs} +1 -1
- package/dist/{chunk-XXDRQBXY-58rTAwvh.js → chunk-XXDRQBXY-DEXdwwNg.js} +1 -1
- package/dist/{classDiagram-v2-EOCWNBFH-hcuKRiyp.js → classDiagram-OUVF2IWQ-B9uAd2dg.js} +2 -2
- package/dist/{classDiagram-OUVF2IWQ-C0S2HAJU.cjs → classDiagram-OUVF2IWQ-DMqQXVMf.cjs} +1 -1
- package/dist/{classDiagram-OUVF2IWQ-hcuKRiyp.js → classDiagram-v2-EOCWNBFH-B9uAd2dg.js} +2 -2
- package/dist/{classDiagram-v2-EOCWNBFH-C0S2HAJU.cjs → classDiagram-v2-EOCWNBFH-DMqQXVMf.cjs} +1 -1
- package/dist/components/MermaidDiagram.d.ts +1 -0
- package/dist/components/mdastNodes/CodeNode.d.ts +2 -1
- package/dist/{cose-bilkent-JH36ORCC-BwltbHKG.js → cose-bilkent-JH36ORCC-DVB8IdFe.js} +1 -1
- package/dist/{cose-bilkent-JH36ORCC-DVZVn03H.cjs → cose-bilkent-JH36ORCC-DxpO_Qhk.cjs} +1 -1
- package/dist/{cynefinDiagram-TSTJHNR4-ogTeIoNY.js → cynefinDiagram-TSTJHNR4-C-iEKX8r.js} +2 -2
- package/dist/{cynefinDiagram-TSTJHNR4-DYCBxaEi.cjs → cynefinDiagram-TSTJHNR4-Dvc8nHOe.cjs} +1 -1
- package/dist/{dagre-VKFMJZFB-BfNdgMHQ.js → dagre-VKFMJZFB-CI1hyGqk.js} +2 -2
- package/dist/{dagre-VKFMJZFB-DJW9o9XX.cjs → dagre-VKFMJZFB-DqU8jG6A.cjs} +1 -1
- package/dist/{diagram-FQU43EPY-BRpNVpgn.cjs → diagram-FQU43EPY-DQHw46B-.cjs} +1 -1
- package/dist/{diagram-FQU43EPY-CJf3yD8h.js → diagram-FQU43EPY-iMIQEr1Q.js} +2 -2
- package/dist/{diagram-G47NLZAW-5rZfUeWV.cjs → diagram-G47NLZAW-Dxkn-83c.cjs} +1 -1
- package/dist/{diagram-G47NLZAW-D0-6oupP.js → diagram-G47NLZAW-L7A0K5es.js} +3 -3
- package/dist/{diagram-NH7WQ7WH-BwrWWWZJ.js → diagram-NH7WQ7WH-8BnG6h8J.js} +2 -2
- package/dist/{diagram-NH7WQ7WH-g7m8p5fK.cjs → diagram-NH7WQ7WH-CBMFD5SB.cjs} +1 -1
- package/dist/{diagram-OA4YK3LP-BBqA1m8s.js → diagram-OA4YK3LP-C24uGaef.js} +3 -3
- package/dist/{diagram-OA4YK3LP-BxP8KUna.cjs → diagram-OA4YK3LP-DrD1SsZM.cjs} +1 -1
- package/dist/{diagram-WEI45ONY-DgJyq1w0.cjs → diagram-WEI45ONY-BYN2qTiw.cjs} +1 -1
- package/dist/{diagram-WEI45ONY-CMexm2GN.js → diagram-WEI45ONY-kBWsy9sQ.js} +2 -2
- package/dist/{ebnfDiagram-CCIWWBDH-sfiWOXCW.cjs → ebnfDiagram-CCIWWBDH-C7whdHrV.cjs} +1 -1
- package/dist/{ebnfDiagram-CCIWWBDH-DvLr_8nV.js → ebnfDiagram-CCIWWBDH-DRfaz75o.js} +3 -3
- package/dist/{erDiagram-Q63AITRT-B11THykZ.cjs → erDiagram-Q63AITRT-Cbh7ns6U.cjs} +1 -1
- package/dist/{erDiagram-Q63AITRT-D6U6Ng3Y.js → erDiagram-Q63AITRT-CvcOag5w.js} +4 -4
- package/dist/extractHeadings-By3kC3b_.cjs +311 -0
- package/dist/{extractHeadings-CdLPwHlC.js → extractHeadings-Dz8gnhsx.js} +4632 -4620
- package/dist/flowDiagram-23GEKE2U-C5ygxVuP.js +7 -0
- package/dist/flowDiagram-23GEKE2U-DSpM0zzA.cjs +1 -0
- package/dist/{ganttDiagram-NO4QXBWP-CGCdgj0K.js → ganttDiagram-NO4QXBWP-Ccrw6Vga.js} +2 -2
- package/dist/{ganttDiagram-NO4QXBWP-BLlXK3zo.cjs → ganttDiagram-NO4QXBWP-YWoWQpTa.cjs} +1 -1
- package/dist/gen/markdown/v1/markdown_pb.d.ts +1 -0
- package/dist/{gitGraphDiagram-IHSO6WYX-Bib3c0C6.js → gitGraphDiagram-IHSO6WYX-C-mHT-ew.js} +3 -3
- package/dist/{gitGraphDiagram-IHSO6WYX-BHOyibqH.cjs → gitGraphDiagram-IHSO6WYX-nKm0aLrL.cjs} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.client.cjs +1 -1
- package/dist/index.client.js +1 -1
- package/dist/index.js +1 -1
- package/dist/index.server.cjs +1 -1
- package/dist/index.server.js +59 -38
- package/dist/{infoDiagram-FWYZ7A6U-BcDp6g1Y.cjs → infoDiagram-FWYZ7A6U-B6uUqDCC.cjs} +1 -1
- package/dist/{infoDiagram-FWYZ7A6U-BUqDBIaP.js → infoDiagram-FWYZ7A6U-HBcwdQ6Z.js} +1 -1
- package/dist/{ishikawaDiagram-FXEZZL3T-CcPh4nuP.js → ishikawaDiagram-FXEZZL3T-CcSYEsTJ.js} +1 -1
- package/dist/{ishikawaDiagram-FXEZZL3T-C3QHQ1ia.cjs → ishikawaDiagram-FXEZZL3T-D9WZm1OZ.cjs} +1 -1
- package/dist/{journeyDiagram-5HDEW3XC-B17v98Wb.cjs → journeyDiagram-5HDEW3XC-BC3ajweK.cjs} +1 -1
- package/dist/{journeyDiagram-5HDEW3XC-MdxndgF1.js → journeyDiagram-5HDEW3XC-PJm-8Gz8.js} +4 -4
- package/dist/{kanban-definition-HUTT4EX6-JhfZ6Qik.js → kanban-definition-HUTT4EX6-42_dEzBV.js} +2 -2
- package/dist/{kanban-definition-HUTT4EX6-BApVXeVQ.cjs → kanban-definition-HUTT4EX6-BR-C1joQ.cjs} +1 -1
- package/dist/{linear-dbOUbGpD.js → linear-B7J7VKh9.js} +1 -1
- package/dist/{linear-CIVwb13z.cjs → linear-CoCezkp4.cjs} +1 -1
- package/dist/{mindmap-definition-LN4V7U3C-BUbo0u-Y.cjs → mindmap-definition-LN4V7U3C-BO555Yeu.cjs} +1 -1
- package/dist/{mindmap-definition-LN4V7U3C-gNTBga2z.js → mindmap-definition-LN4V7U3C-e4fXdr28.js} +3 -3
- package/dist/{pegDiagram-2B236MQR-DZiQVxu1.cjs → pegDiagram-2B236MQR-CqN17IwE.cjs} +1 -1
- package/dist/{pegDiagram-2B236MQR-BqjpbNkG.js → pegDiagram-2B236MQR-nN-jUv5o.js} +3 -3
- package/dist/{pieDiagram-ENE6RG2P-D2nxDVFV.cjs → pieDiagram-ENE6RG2P-D_EIGKcE.cjs} +1 -1
- package/dist/{pieDiagram-ENE6RG2P-C1Gr48CK.js → pieDiagram-ENE6RG2P-EvhF_8o2.js} +3 -3
- package/dist/{quadrantDiagram-ABIIQ3AL-DuD9ZdUQ.js → quadrantDiagram-ABIIQ3AL-2gTiccyy.js} +2 -2
- package/dist/{quadrantDiagram-ABIIQ3AL-C855tL3K.cjs → quadrantDiagram-ABIIQ3AL-HNTFSQzi.cjs} +1 -1
- package/dist/{railroadDiagram-RFXS5EU6-BZsnhaQd.cjs → railroadDiagram-RFXS5EU6-CRuA7qqW.cjs} +1 -1
- package/dist/{railroadDiagram-RFXS5EU6-xx1d3Md8.js → railroadDiagram-RFXS5EU6-CYAI9-bK.js} +3 -3
- package/dist/remarkProcessor.server.d.ts +1 -0
- package/dist/{requirementDiagram-TGXJPOKE-CCu1UYFH.js → requirementDiagram-TGXJPOKE-BZc_cLKC.js} +3 -3
- package/dist/{requirementDiagram-TGXJPOKE-D_NbFRkb.cjs → requirementDiagram-TGXJPOKE-DesNyieJ.cjs} +1 -1
- package/dist/{sankeyDiagram-HTMAVEWB-QGzXzczJ.js → sankeyDiagram-HTMAVEWB-B1QsmzsN.js} +1 -1
- package/dist/{sankeyDiagram-HTMAVEWB-Dn2Ta-XX.cjs → sankeyDiagram-HTMAVEWB-wLwqusl2.cjs} +1 -1
- package/dist/{sequenceDiagram-DBY2YBRQ-BA3Oc4pz.cjs → sequenceDiagram-DBY2YBRQ-D3ciEWOE.cjs} +1 -1
- package/dist/{sequenceDiagram-DBY2YBRQ-CjnUnaw9.js → sequenceDiagram-DBY2YBRQ-OTeHr40Q.js} +3 -3
- package/dist/{sizeCapture-X5ZJPWSS-nb9uU-BE.js → sizeCapture-X5ZJPWSS-BhcQlLlw.js} +1 -1
- package/dist/{sizeCapture-X5ZJPWSS-BPQhVBe0.cjs → sizeCapture-X5ZJPWSS-LlzRMz8i.cjs} +1 -1
- package/dist/source-lines.cjs +1 -0
- package/dist/source-lines.d.ts +6 -0
- package/dist/source-lines.js +11 -0
- package/dist/{stateDiagram-2N3HPSRC-DSqLqSY5.cjs → stateDiagram-2N3HPSRC-D0q856z6.cjs} +1 -1
- package/dist/{stateDiagram-2N3HPSRC-Byg3E1AA.js → stateDiagram-2N3HPSRC-DjLE1--n.js} +2 -2
- package/dist/{stateDiagram-v2-6OUMAXLB-VRhXyf-C.cjs → stateDiagram-v2-6OUMAXLB-DJHUGWBX.cjs} +1 -1
- package/dist/{stateDiagram-v2-6OUMAXLB-hKcuYy9t.js → stateDiagram-v2-6OUMAXLB-DKU0HsD1.js} +2 -2
- package/dist/{swimlanes-5IMT3BWC-CVnOKNcb.cjs → swimlanes-5IMT3BWC-DC6qS8iI.cjs} +1 -1
- package/dist/{swimlanes-5IMT3BWC-DyIDdThc.js → swimlanes-5IMT3BWC-cxcj_GGS.js} +3 -3
- package/dist/{swimlanesDiagram-G3AALYLV-BF1ofRjP.js → swimlanesDiagram-G3AALYLV-B95OToWo.js} +2 -2
- package/dist/{swimlanesDiagram-G3AALYLV-C3U5wLlX.cjs → swimlanesDiagram-G3AALYLV-Dv76fKaH.cjs} +1 -1
- package/dist/{timeline-definition-FHXFAJF6-DBmE_qU3.js → timeline-definition-FHXFAJF6-P-5kO0xQ.js} +2 -2
- package/dist/{timeline-definition-FHXFAJF6-KUETCXLT.cjs → timeline-definition-FHXFAJF6-wD6O9DDR.cjs} +1 -1
- package/dist/{vennDiagram-L72KCM5P-DkSV3dIE.cjs → vennDiagram-L72KCM5P-BXHvaRtm.cjs} +1 -1
- package/dist/{vennDiagram-L72KCM5P-C6j4k5X-.js → vennDiagram-L72KCM5P-BwinGtNb.js} +1 -1
- package/dist/{wardleyDiagram-EHGQE667-uWMTMxL-.cjs → wardleyDiagram-EHGQE667-BDgwIQTf.cjs} +1 -1
- package/dist/{wardleyDiagram-EHGQE667-BaG6Cf_u.js → wardleyDiagram-EHGQE667-BeYbREE2.js} +2 -2
- package/dist/{xychartDiagram-FW5EYKEG-BPl5BnMB.js → xychartDiagram-FW5EYKEG-BXjx9Zgc.js} +2 -2
- package/dist/{xychartDiagram-FW5EYKEG-QAFE-xqg.cjs → xychartDiagram-FW5EYKEG-DLCCDPGO.cjs} +1 -1
- package/package.json +13 -7
- package/dist/extractHeadings-DRUBnhbi.cjs +0 -311
- package/dist/flowDiagram-23GEKE2U-CDscoQ9F.cjs +0 -1
- package/dist/flowDiagram-23GEKE2U-CLibi_u4.js +0 -7
package/dist/index.server.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { l as L, L as O, a as se, b as
|
|
1
|
+
import { l as L, L as O, a as se, b as Ee } from "./linkCards-1JxY8wdm.js";
|
|
2
2
|
import { l as h } from "./simple-logger-DwH1YQvq.js";
|
|
3
3
|
import { Resolver as be } from "node:dns/promises";
|
|
4
4
|
import * as ie from "node:net";
|
|
5
|
-
import { BlockList as ye, isIP as le, connect as
|
|
6
|
-
import { Agent as
|
|
5
|
+
import { BlockList as ye, isIP as le, connect as Se } from "node:net";
|
|
6
|
+
import { Agent as Te, buildConnector as Y, fetch as ve } from "undici";
|
|
7
7
|
import { Parser as Ae } from "htmlparser2";
|
|
8
8
|
import { spawn as _e } from "node:child_process";
|
|
9
9
|
import { existsSync as M, unlinkSync as Re } from "node:fs";
|
|
@@ -63,8 +63,8 @@ const U = (r) => {
|
|
|
63
63
|
if (i !== void 0) return Q(r, i);
|
|
64
64
|
const [l, ...c] = s;
|
|
65
65
|
if (l !== void 0) return { error: null, family: 4, addresses: [l, ...c] };
|
|
66
|
-
const [f, ...
|
|
67
|
-
return f !== void 0 ? { error: null, family: 6, addresses: [f, ...
|
|
66
|
+
const [f, ...T] = a;
|
|
67
|
+
return f !== void 0 ? { error: null, family: 6, addresses: [f, ...T] } : n.status === "rejected" ? { error: n.reason } : o.status === "rejected" ? { error: o.reason } : { error: Object.assign(new Error(`No address for ${r}`), { code: "ENOTFOUND" }) };
|
|
68
68
|
}, Ue = (r, t, e) => {
|
|
69
69
|
const n = t.family === 4 || t.family === "IPv4" ? 4 : t.family === 6 || t.family === "IPv6" ? 6 : 0;
|
|
70
70
|
He(r, n).then((o) => {
|
|
@@ -248,14 +248,14 @@ const U = (r) => {
|
|
|
248
248
|
e(o, s);
|
|
249
249
|
return;
|
|
250
250
|
}
|
|
251
|
-
const a =
|
|
251
|
+
const a = Se({ host: o.hostname, port: Number(o.port === "" ? 443 : o.port), lookup: r.lookup, blockList: r.blockList }), i = (l) => {
|
|
252
252
|
a.destroy(), s(l, null);
|
|
253
253
|
};
|
|
254
254
|
a.setTimeout(t, () => i(Object.assign(new Error(`Connect timeout: ${o.hostname}`), { code: "UND_ERR_CONNECT_TIMEOUT" }))), a.once("error", i), a.once("connect", () => {
|
|
255
255
|
a.setTimeout(0), a.removeListener("error", i), n({ ...o, httpSocket: a }, s);
|
|
256
256
|
});
|
|
257
257
|
};
|
|
258
|
-
}, ot = (r) => new
|
|
258
|
+
}, ot = (r) => new Te({
|
|
259
259
|
maxHeaderSize: qe,
|
|
260
260
|
connect: nt(rt, me.timeoutMs)
|
|
261
261
|
}), H = async (r) => {
|
|
@@ -333,7 +333,7 @@ const U = (r) => {
|
|
|
333
333
|
return ct(r, t, e, n.signal).finally(() => {
|
|
334
334
|
clearTimeout(o);
|
|
335
335
|
});
|
|
336
|
-
}, dt = 256, ft = 4096, mt = 64, pt = /* @__PURE__ */ new Set(["html", "head", "title", "meta", "link", "base", "basefont", "bgsound", "noframes", "script", "style", "template", "noscript"]), ht = /* @__PURE__ */ new Set(["title", "script", "style"]), wt = /* @__PURE__ */ new Set(["noscript", "template", "noframes"]), gt = (r) => r?.toLowerCase().split(/[\t\n\f\r ]+/u).includes("icon") === !0,
|
|
336
|
+
}, dt = 256, ft = 4096, mt = 64, pt = /* @__PURE__ */ new Set(["html", "head", "title", "meta", "link", "base", "basefont", "bgsound", "noframes", "script", "style", "template", "noscript"]), ht = /* @__PURE__ */ new Set(["title", "script", "style"]), wt = /* @__PURE__ */ new Set(["noscript", "template", "noframes"]), gt = (r) => r?.toLowerCase().split(/[\t\n\f\r ]+/u).includes("icon") === !0, kt = (r, t) => {
|
|
337
337
|
if (r === void 0) return t;
|
|
338
338
|
let e;
|
|
339
339
|
try {
|
|
@@ -352,8 +352,8 @@ const U = (r) => {
|
|
|
352
352
|
return;
|
|
353
353
|
}
|
|
354
354
|
return o.href.length <= se && j(o.href).ok ? o.href : void 0;
|
|
355
|
-
},
|
|
356
|
-
let e = !1, n = 0, o = 0, s = 0, a = null, i = null, l = null, c, f,
|
|
355
|
+
}, Et = (r, t) => {
|
|
356
|
+
let e = !1, n = 0, o = 0, s = 0, a = null, i = null, l = null, c, f, T, R, z, J, K = !1, F, G = !1;
|
|
357
357
|
const N = () => {
|
|
358
358
|
e = !0, D.pause();
|
|
359
359
|
}, D = new Ae(
|
|
@@ -372,7 +372,7 @@ const U = (r) => {
|
|
|
372
372
|
}
|
|
373
373
|
if (u === "meta") {
|
|
374
374
|
const p = m.content;
|
|
375
|
-
m.property === "og:site_name" && (R = p), m.property === "og:title" && (f = p), m.property === "og:description" && (
|
|
375
|
+
m.property === "og:site_name" && (R = p), m.property === "og:title" && (f = p), m.property === "og:description" && (T = p), m.property === "og:image" && (z = p), m.name === "description" && (T = p);
|
|
376
376
|
} else u === "link" && !K && gt(m.rel) ? (K = !0, J = m.href) : u === "base" && !G && Object.hasOwn(m, "href") && (G = !0, F = m.href);
|
|
377
377
|
ht.has(u) && (i = u, u === "title" && c === void 0 && (l = ""));
|
|
378
378
|
}
|
|
@@ -396,7 +396,7 @@ const U = (r) => {
|
|
|
396
396
|
write: (u) => (e || D.write(u), !e),
|
|
397
397
|
end: () => {
|
|
398
398
|
e || D.end();
|
|
399
|
-
const u = L(f, O.title) ?? L(c, O.title), m = L(
|
|
399
|
+
const u = L(f, O.title) ?? L(c, O.title), m = L(T, O.description), p = L(R, O.siteName), X = kt(F, r), V = ee(z, X), W = ee(J, X);
|
|
400
400
|
return {
|
|
401
401
|
...u === null ? {} : { title: u },
|
|
402
402
|
...m === null ? {} : { description: m },
|
|
@@ -406,12 +406,12 @@ const U = (r) => {
|
|
|
406
406
|
};
|
|
407
407
|
}
|
|
408
408
|
};
|
|
409
|
-
}, bt = /* @__PURE__ */ new Set(["authorize"]), yt = "private, max-age=1800",
|
|
409
|
+
}, bt = /* @__PURE__ */ new Set(["authorize"]), yt = "private, max-age=1800", St = 3600 * 1e3, he = Object.freeze({ "private-network": 1800, "forbidden-url": 1800, unreachable: 300, "not-html": 300 }), Tt = 1e3, P = "no-store", v = (r, t, e, n, o = {}) => new Response(r.method === "HEAD" ? null : JSON.stringify(e), {
|
|
410
410
|
status: t,
|
|
411
411
|
headers: { "Content-Type": "application/json; charset=utf-8", "Cache-Control": n, "X-Content-Type-Options": "nosniff", ...o }
|
|
412
412
|
}), te = (r) => new Response(null, {
|
|
413
413
|
status: 204,
|
|
414
|
-
headers: { "Cache-Control": `private, max-age=${he[r]}`, "X-Content-Type-Options": "nosniff", [
|
|
414
|
+
headers: { "Cache-Control": `private, max-age=${he[r]}`, "X-Content-Type-Options": "nosniff", [Ee]: r }
|
|
415
415
|
}), vt = (r) => {
|
|
416
416
|
if (typeof r != "object" || r === null)
|
|
417
417
|
throw new TypeError("createLinkCardHandler: options must be an object with an authorize function");
|
|
@@ -421,7 +421,7 @@ const U = (r) => {
|
|
|
421
421
|
if (t.length > 0)
|
|
422
422
|
throw new TypeError(`createLinkCardHandler: unknown option(s): ${t.join(", ")}`);
|
|
423
423
|
}, At = (r) => (t) => {
|
|
424
|
-
const e = Ye(t.contentType), n =
|
|
424
|
+
const e = Ye(t.contentType), n = Et(t.url);
|
|
425
425
|
return {
|
|
426
426
|
write: (o) => n.write(e.write(o)),
|
|
427
427
|
end: () => (n.write(e.end()), n.end())
|
|
@@ -430,7 +430,7 @@ const U = (r) => {
|
|
|
430
430
|
vt(r);
|
|
431
431
|
const { authorize: e } = r, n = ot(), o = Ze(
|
|
432
432
|
(s) => ut(s, { agent: n, scope: t, limits: me }, At()),
|
|
433
|
-
{ maxEntries:
|
|
433
|
+
{ maxEntries: Tt, ttlMsOf: (s) => s.ok ? St : he[s.reason] * 1e3 },
|
|
434
434
|
Date.now
|
|
435
435
|
);
|
|
436
436
|
return async (s) => {
|
|
@@ -453,7 +453,7 @@ const U = (r) => {
|
|
|
453
453
|
return l.ok ? v(s, 200, l.value, yt) : te(l.reason);
|
|
454
454
|
};
|
|
455
455
|
}, Yt = (r) => _t(r, "public");
|
|
456
|
-
class
|
|
456
|
+
class k extends x {
|
|
457
457
|
/**
|
|
458
458
|
* @generated from field: string markdown_text = 1;
|
|
459
459
|
*/
|
|
@@ -549,6 +549,19 @@ class E extends x {
|
|
|
549
549
|
* @generated from field: markdown.v1.DenyRules deny = 13;
|
|
550
550
|
*/
|
|
551
551
|
deny;
|
|
552
|
+
/**
|
|
553
|
+
* Annotates every rendered block with `data-source-lines="<first>-<last>"`:
|
|
554
|
+
* the 1-based lines of `markdown_text` it came from, both inclusive (with
|
|
555
|
+
* `resolve_imports`, the lines of the text with every import expanded). A
|
|
556
|
+
* block that spans no line of its own (a thematic break) and a raw HTML
|
|
557
|
+
* block carry none. False by default; either way, a `data-source-lines` an
|
|
558
|
+
* author wrote is removed, so the attribute in the HTML is always the
|
|
559
|
+
* converter's own. With it, the HTML is the HTML without it plus the
|
|
560
|
+
* attribute alone.
|
|
561
|
+
*
|
|
562
|
+
* @generated from field: bool include_source_lines = 14;
|
|
563
|
+
*/
|
|
564
|
+
includeSourceLines = !1;
|
|
552
565
|
constructor(t) {
|
|
553
566
|
super(), d.util.initPartial(t, this);
|
|
554
567
|
}
|
|
@@ -597,19 +610,26 @@ class E extends x {
|
|
|
597
610
|
/* ScalarType.BOOL */
|
|
598
611
|
},
|
|
599
612
|
{ no: 12, name: "max_html_bytes", kind: "scalar", T: 13, opt: !0 },
|
|
600
|
-
{ no: 13, name: "deny", kind: "message", T: g }
|
|
613
|
+
{ no: 13, name: "deny", kind: "message", T: g },
|
|
614
|
+
{
|
|
615
|
+
no: 14,
|
|
616
|
+
name: "include_source_lines",
|
|
617
|
+
kind: "scalar",
|
|
618
|
+
T: 8
|
|
619
|
+
/* ScalarType.BOOL */
|
|
620
|
+
}
|
|
601
621
|
]);
|
|
602
622
|
static fromBinary(t, e) {
|
|
603
|
-
return new
|
|
623
|
+
return new k().fromBinary(t, e);
|
|
604
624
|
}
|
|
605
625
|
static fromJson(t, e) {
|
|
606
|
-
return new
|
|
626
|
+
return new k().fromJson(t, e);
|
|
607
627
|
}
|
|
608
628
|
static fromJsonString(t, e) {
|
|
609
|
-
return new
|
|
629
|
+
return new k().fromJsonString(t, e);
|
|
610
630
|
}
|
|
611
631
|
static equals(t, e) {
|
|
612
|
-
return d.util.equals(
|
|
632
|
+
return d.util.equals(k, t, e);
|
|
613
633
|
}
|
|
614
634
|
}
|
|
615
635
|
class g extends x {
|
|
@@ -636,7 +656,7 @@ class g extends x {
|
|
|
636
656
|
return d.util.equals(g, t, e);
|
|
637
657
|
}
|
|
638
658
|
}
|
|
639
|
-
class
|
|
659
|
+
class E extends x {
|
|
640
660
|
/**
|
|
641
661
|
* @generated from field: string html_content = 1;
|
|
642
662
|
*/
|
|
@@ -661,16 +681,16 @@ class k extends x {
|
|
|
661
681
|
{ no: 2, name: "headings", kind: "message", T: b, repeated: !0 }
|
|
662
682
|
]);
|
|
663
683
|
static fromBinary(t, e) {
|
|
664
|
-
return new
|
|
684
|
+
return new E().fromBinary(t, e);
|
|
665
685
|
}
|
|
666
686
|
static fromJson(t, e) {
|
|
667
|
-
return new
|
|
687
|
+
return new E().fromJson(t, e);
|
|
668
688
|
}
|
|
669
689
|
static fromJsonString(t, e) {
|
|
670
|
-
return new
|
|
690
|
+
return new E().fromJsonString(t, e);
|
|
671
691
|
}
|
|
672
692
|
static equals(t, e) {
|
|
673
|
-
return d.util.equals(
|
|
693
|
+
return d.util.equals(E, t, e);
|
|
674
694
|
}
|
|
675
695
|
}
|
|
676
696
|
class b extends x {
|
|
@@ -735,13 +755,13 @@ const Rt = {
|
|
|
735
755
|
*/
|
|
736
756
|
convert: {
|
|
737
757
|
name: "Convert",
|
|
738
|
-
I:
|
|
739
|
-
O:
|
|
758
|
+
I: k,
|
|
759
|
+
O: E,
|
|
740
760
|
kind: Ne.Unary
|
|
741
761
|
}
|
|
742
762
|
}
|
|
743
|
-
},
|
|
744
|
-
createConnection: () => ie.connect(
|
|
763
|
+
}, S = process.env.MARKDOWN_SOCKET_PATH || "/tmp/markdown.sock", Lt = new Ie("http://localhost", void 0, {
|
|
764
|
+
createConnection: () => ie.connect(S)
|
|
745
765
|
}), we = 64 * 1024, Ot = 4294967295, re = Math.floor((Ot - we) / 2);
|
|
746
766
|
class Pt extends Error {
|
|
747
767
|
/**
|
|
@@ -778,15 +798,15 @@ const ne = () => {
|
|
|
778
798
|
"If your platform is unsupported, build the service yourself",
|
|
779
799
|
"(https://github.com/fehde-k/aiquants/tree/main/packages/go/markdown-api)",
|
|
780
800
|
"and point MARKDOWN_API_BINARY at it."
|
|
781
|
-
].join(" "),
|
|
782
|
-
const t = ie.connect(
|
|
801
|
+
].join(" "), ke = () => new Promise((r) => {
|
|
802
|
+
const t = ie.connect(S);
|
|
783
803
|
t.on("connect", () => {
|
|
784
804
|
t.destroy(), r(!0);
|
|
785
805
|
}), t.on("error", () => r(!1));
|
|
786
806
|
}), ae = async (r) => {
|
|
787
807
|
const t = Date.now();
|
|
788
808
|
for (; Date.now() - t < r; ) {
|
|
789
|
-
if (await
|
|
809
|
+
if (await ke()) return !0;
|
|
790
810
|
await new Promise((e) => setTimeout(e, 100));
|
|
791
811
|
}
|
|
792
812
|
return !1;
|
|
@@ -798,7 +818,7 @@ const It = 2e3, xt = () => {
|
|
|
798
818
|
};
|
|
799
819
|
let I = null;
|
|
800
820
|
const Nt = async () => {
|
|
801
|
-
if (await
|
|
821
|
+
if (await ke()) return !0;
|
|
802
822
|
if (_) return _;
|
|
803
823
|
_ = (async () => {
|
|
804
824
|
const t = Mt();
|
|
@@ -806,7 +826,7 @@ const Nt = async () => {
|
|
|
806
826
|
return await ae(It) ? !0 : (I = Ct(), !1);
|
|
807
827
|
I = null;
|
|
808
828
|
try {
|
|
809
|
-
M(
|
|
829
|
+
M(S) && Re(S);
|
|
810
830
|
} catch {
|
|
811
831
|
}
|
|
812
832
|
try {
|
|
@@ -820,7 +840,7 @@ const Nt = async () => {
|
|
|
820
840
|
A = null;
|
|
821
841
|
}
|
|
822
842
|
};
|
|
823
|
-
return process.once("exit", e), await ae(xt()) ? !0 : (console.error("markdown-api Go server did not become ready on socket:",
|
|
843
|
+
return process.once("exit", e), await ae(xt()) ? !0 : (console.error("markdown-api Go server did not become ready on socket:", S), e(), process.removeListener("exit", e), !1);
|
|
824
844
|
} catch (e) {
|
|
825
845
|
return console.error("Failed to spawn markdown-api Go server:", e), A = null, !1;
|
|
826
846
|
}
|
|
@@ -837,7 +857,7 @@ const Nt = async () => {
|
|
|
837
857
|
}, Zt = async (r, t, e, n, o) => {
|
|
838
858
|
if (Dt(o), !await Nt()) {
|
|
839
859
|
const i = I ? ` ${I}` : "";
|
|
840
|
-
throw new Error(`markdown service is not reachable on ${
|
|
860
|
+
throw new Error(`markdown service is not reachable on ${S}.${i}`);
|
|
841
861
|
}
|
|
842
862
|
const s = {};
|
|
843
863
|
n && (s.Authorization = `Bearer ${n}`);
|
|
@@ -856,6 +876,7 @@ const Nt = async () => {
|
|
|
856
876
|
enableEmbeds: o.enableEmbeds,
|
|
857
877
|
enableZennDirectives: o.enableZennDirectives,
|
|
858
878
|
resolveImports: o.resolveImports ?? !1,
|
|
879
|
+
includeSourceLines: o.includeSourceLines ?? !1,
|
|
859
880
|
maxHtmlBytes: o.maxHtmlBytes,
|
|
860
881
|
deny: new g({ segmentPatterns: [...o.deniedPathSegments] })
|
|
861
882
|
},
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./extractHeadings-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./extractHeadings-By3kC3b_.cjs"),s=require("./cynefin-VYW2F7L2-MpAliYy9.cjs");var i={parse:e.__name(async r=>{const a=await s.parse("info",r);e.log.debug(a)},"parse")},o={version:"11.16.0"},g=e.__name(()=>o.version,"getVersion"),d={getVersion:g},v=e.__name((r,a,n)=>{e.log.debug(`rendering info diagram
|
|
2
2
|
`+r);const t=e.selectSvgElement(a);e.configureSvgSize(t,100,400,!0),t.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${n}`)},"draw"),c={draw:v},p={parser:i,db:d,renderer:c};exports.diagram=p;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as e, Q as s, al as o, R as i } from "./extractHeadings-
|
|
1
|
+
import { _ as e, Q as s, al as o, R as i } from "./extractHeadings-Dz8gnhsx.js";
|
|
2
2
|
import { p as g } from "./cynefin-VYW2F7L2-Bkk-F_Js.js";
|
|
3
3
|
var p = {
|
|
4
4
|
parse: /* @__PURE__ */ e(async (r) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as o, K as ot, ap as ut, al as dt, a_ as yt, ac as ft, $ as pt, a6 as it, G as gt, J as kt, A as mt, z as wt, a7 as _t, R as bt } from "./extractHeadings-
|
|
1
|
+
import { _ as o, K as ot, ap as ut, al as dt, a_ as yt, ac as ft, $ as pt, a6 as it, G as gt, J as kt, A as mt, z as wt, a7 as _t, R as bt } from "./extractHeadings-Dz8gnhsx.js";
|
|
2
2
|
var Q = (function() {
|
|
3
3
|
var e = /* @__PURE__ */ o(function(T, t, s, i) {
|
|
4
4
|
for (s = s || {}, i = T.length; i--; s[T[i]] = t) ;
|
package/dist/{ishikawaDiagram-FXEZZL3T-C3QHQ1ia.cjs → ishikawaDiagram-FXEZZL3T-D9WZm1OZ.cjs}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./extractHeadings-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./extractHeadings-By3kC3b_.cjs");var J=(function(){var i=e.__name(function(T,t,s,n){for(s=s||{},n=T.length;n--;s[T[n]]=t);return s},"o"),h=[1,4],l=[1,14],r=[1,12],o=[1,13],y=[6,7,8],f=[1,20],d=[1,18],m=[1,19],u=[6,7,11],g=[1,6,13,14],_=[1,23],w=[1,24],x=[1,6,7,11,13,14],D={trace:e.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"ISHIKAWA",11:"EOF",13:"SPACELIST",14:"TEXT"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,1],[12,1],[12,1]],performAction:e.__name(function(t,s,n,c,p,a,v){var k=a.length-1;switch(p){case 6:case 7:return c;case 15:c.addNode(a[k-1].length,a[k].trim());break;case 16:c.addNode(0,a[k].trim());break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:h},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:h},{6:l,7:[1,10],9:9,12:11,13:r,14:o},i(y,[2,3]),{1:[2,2]},i(y,[2,4]),i(y,[2,5]),{1:[2,6],6:l,12:15,13:r,14:o},{6:l,9:16,12:11,13:r,14:o},{6:f,7:d,10:17,11:m},i(u,[2,18],{14:[1,21]}),i(u,[2,16]),i(u,[2,17]),{6:f,7:d,10:22,11:m},{1:[2,7],6:l,12:15,13:r,14:o},i(g,[2,14],{7:_,11:w}),i(x,[2,8]),i(x,[2,9]),i(x,[2,10]),i(u,[2,15]),i(g,[2,13],{7:_,11:w}),i(x,[2,11]),i(x,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:e.__name(function(t,s){if(s.recoverable)this.trace(t);else{var n=new Error(t);throw n.hash=s,n}},"parseError"),parse:e.__name(function(t){var s=this,n=[0],c=[],p=[null],a=[],v=this.table,k="",I=0,$=0,L=2,A=1,C=a.slice.call(arguments,1),b=Object.create(this.lexer),S={yy:{}};for(var P in this.yy)Object.prototype.hasOwnProperty.call(this.yy,P)&&(S.yy[P]=this.yy[P]);b.setInput(t,S.yy),S.yy.lexer=b,S.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var R=b.yylloc;a.push(R);var G=b.options&&b.options.ranges;typeof S.yy.parseError=="function"?this.parseError=S.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Y(B){n.length=n.length-2*B,p.length=p.length-B,a.length=a.length-B}e.__name(Y,"popStack");function tt(){var B;return B=c.pop()||b.lex()||A,typeof B!="number"&&(B instanceof Array&&(c=B,B=c.pop()),B=s.symbols_[B]||B),B}e.__name(tt,"lex");for(var M,W,N,q,j={},U,V,et,Z;;){if(W=n[n.length-1],this.defaultActions[W]?N=this.defaultActions[W]:((M===null||typeof M>"u")&&(M=tt()),N=v[W]&&v[W][M]),typeof N>"u"||!N.length||!N[0]){var K="";Z=[];for(U in v[W])this.terminals_[U]&&U>L&&Z.push("'"+this.terminals_[U]+"'");b.showPosition?K="Parse error on line "+(I+1)+`:
|
|
2
2
|
`+b.showPosition()+`
|
|
3
3
|
Expecting `+Z.join(", ")+", got '"+(this.terminals_[M]||M)+"'":K="Parse error on line "+(I+1)+": Unexpected "+(M==A?"end of input":"'"+(this.terminals_[M]||M)+"'"),this.parseError(K,{text:b.match,token:this.terminals_[M]||M,line:b.yylineno,loc:R,expected:Z})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+W+", token: "+M);switch(N[0]){case 1:n.push(M),p.push(b.yytext),a.push(b.yylloc),n.push(N[1]),M=null,$=b.yyleng,k=b.yytext,I=b.yylineno,R=b.yylloc;break;case 2:if(V=this.productions_[N[1]][1],j.$=p[p.length-V],j._$={first_line:a[a.length-(V||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(V||1)].first_column,last_column:a[a.length-1].last_column},G&&(j._$.range=[a[a.length-(V||1)].range[0],a[a.length-1].range[1]]),q=this.performAction.apply(j,[k,$,I,S.yy,N[1],p,a].concat(C)),typeof q<"u")return q;V&&(n=n.slice(0,-1*V*2),p=p.slice(0,-1*V),a=a.slice(0,-1*V)),n.push(this.productions_[N[1]][0]),p.push(j.$),a.push(j._$),et=v[n[n.length-2]][n[n.length-1]],n.push(et);break;case 3:return!0}}return!0},"parse")},O=(function(){var T={EOF:1,parseError:e.__name(function(s,n){if(this.yy.parser)this.yy.parser.parseError(s,n);else throw new Error(s)},"parseError"),setInput:e.__name(function(t,s){return this.yy=s||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:e.__name(function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var s=t.match(/(?:\r\n?|\n).*/g);return s?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:e.__name(function(t){var s=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s),this.offset-=s;var c=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var p=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===c.length?this.yylloc.first_column:0)+c[c.length-n.length].length-n[0].length:this.yylloc.first_column-s},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-s]),this.yyleng=this.yytext.length,this},"unput"),more:e.__name(function(){return this._more=!0,this},"more"),reject:e.__name(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:e.__name(function(t){this.unput(this.match.slice(t))},"less"),pastInput:e.__name(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:e.__name(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:e.__name(function(){var t=this.pastInput(),s=new Array(t.length+1).join("-");return t+this.upcomingInput()+`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ft=require("./chunk-5VM5RSS4-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ft=require("./chunk-5VM5RSS4-DSg2-2mp.cjs"),j=require("./chunk-32BRIVSS-BddWRgx3.cjs"),n=require("./extractHeadings-By3kC3b_.cjs"),et=require("./arc-B48_ucR0.cjs");var G=(function(){var t=n.__name(function(h,r,a,l){for(a=a||{},l=h.length;l--;a[h[l]]=r);return a},"o"),e=[6,8,10,11,12,14,16,17,18],s=[1,9],f=[1,10],i=[1,11],u=[1,12],p=[1,13],o=[1,14],_={trace:n.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:n.__name(function(r,a,l,y,d,c,v){var x=c.length-1;switch(d){case 1:return c[x-1];case 2:this.$=[];break;case 3:c[x-1].push(c[x]),this.$=c[x-1];break;case 4:case 5:this.$=c[x];break;case 6:case 7:this.$=[];break;case 8:y.setDiagramTitle(c[x].substr(6)),this.$=c[x].substr(6);break;case 9:this.$=c[x].trim(),y.setAccTitle(this.$);break;case 10:case 11:this.$=c[x].trim(),y.setAccDescription(this.$);break;case 12:y.addSection(c[x].substr(8)),this.$=c[x].substr(8);break;case 13:y.addTask(c[x-1],c[x]),this.$="task";break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:s,12:f,14:i,16:u,17:p,18:o},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:s,12:f,14:i,16:u,17:p,18:o},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:n.__name(function(r,a){if(a.recoverable)this.trace(r);else{var l=new Error(r);throw l.hash=a,l}},"parseError"),parse:n.__name(function(r){var a=this,l=[0],y=[],d=[null],c=[],v=this.table,x="",E=0,K=0,ht=2,Q=1,ut=c.slice.call(arguments,1),k=Object.create(this.lexer),A={yy:{}};for(var q in this.yy)Object.prototype.hasOwnProperty.call(this.yy,q)&&(A.yy[q]=this.yy[q]);k.setInput(r,A.yy),A.yy.lexer=k,A.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var O=k.yylloc;c.push(O);var yt=k.options&&k.options.ranges;typeof A.yy.parseError=="function"?this.parseError=A.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function dt(w){l.length=l.length-2*w,d.length=d.length-w,c.length=c.length-w}n.__name(dt,"popStack");function D(){var w;return w=y.pop()||k.lex()||Q,typeof w!="number"&&(w instanceof Array&&(y=w,w=y.pop()),w=a.symbols_[w]||w),w}n.__name(D,"lex");for(var b,I,T,Y,R={},N,M,tt,z;;){if(I=l[l.length-1],this.defaultActions[I]?T=this.defaultActions[I]:((b===null||typeof b>"u")&&(b=D()),T=v[I]&&v[I][b]),typeof T>"u"||!T.length||!T[0]){var H="";z=[];for(N in v[I])this.terminals_[N]&&N>ht&&z.push("'"+this.terminals_[N]+"'");k.showPosition?H="Parse error on line "+(E+1)+`:
|
|
2
2
|
`+k.showPosition()+`
|
|
3
3
|
Expecting `+z.join(", ")+", got '"+(this.terminals_[b]||b)+"'":H="Parse error on line "+(E+1)+": Unexpected "+(b==Q?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(H,{text:k.match,token:this.terminals_[b]||b,line:k.yylineno,loc:O,expected:z})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+I+", token: "+b);switch(T[0]){case 1:l.push(b),d.push(k.yytext),c.push(k.yylloc),l.push(T[1]),b=null,K=k.yyleng,x=k.yytext,E=k.yylineno,O=k.yylloc;break;case 2:if(M=this.productions_[T[1]][1],R.$=d[d.length-M],R._$={first_line:c[c.length-(M||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(M||1)].first_column,last_column:c[c.length-1].last_column},yt&&(R._$.range=[c[c.length-(M||1)].range[0],c[c.length-1].range[1]]),Y=this.performAction.apply(R,[x,K,E,A.yy,T[1],d,c].concat(ut)),typeof Y<"u")return Y;M&&(l=l.slice(0,-1*M*2),d=d.slice(0,-1*M),c=c.slice(0,-1*M)),l.push(this.productions_[T[1]][0]),d.push(R.$),c.push(R._$),tt=v[l[l.length-2]][l[l.length-1]],l.push(tt);break;case 3:return!0}}return!0},"parse")},g=(function(){var h={EOF:1,parseError:n.__name(function(a,l){if(this.yy.parser)this.yy.parser.parseError(a,l);else throw new Error(a)},"parseError"),setInput:n.__name(function(r,a){return this.yy=a||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:n.__name(function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var a=r.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},"input"),unput:n.__name(function(r){var a=r.length,l=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a),this.offset-=a;var y=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),l.length-1&&(this.yylineno-=l.length-1);var d=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:l?(l.length===y.length?this.yylloc.first_column:0)+y[y.length-l.length].length-l[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[d[0],d[0]+this.yyleng-a]),this.yyleng=this.yytext.length,this},"unput"),more:n.__name(function(){return this._more=!0,this},"more"),reject:n.__name(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:n.__name(function(r){this.unput(this.match.slice(r))},"less"),pastInput:n.__name(function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:n.__name(function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:n.__name(function(){var r=this.pastInput(),a=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { g as gt } from "./chunk-5VM5RSS4-
|
|
2
|
-
import { a as mt, g as lt, h as xt, d as kt } from "./chunk-32BRIVSS-
|
|
3
|
-
import { A as _t, z as vt, G as bt, J as wt, a7 as Tt, a6 as St, _ as s, K as V, O as H, R as $t, ac as Mt } from "./extractHeadings-
|
|
4
|
-
import { d as it } from "./arc-
|
|
1
|
+
import { g as gt } from "./chunk-5VM5RSS4-DiwEVqol.js";
|
|
2
|
+
import { a as mt, g as lt, h as xt, d as kt } from "./chunk-32BRIVSS-DFLtYkrI.js";
|
|
3
|
+
import { A as _t, z as vt, G as bt, J as wt, a7 as Tt, a6 as St, _ as s, K as V, O as H, R as $t, ac as Mt } from "./extractHeadings-Dz8gnhsx.js";
|
|
4
|
+
import { d as it } from "./arc-ChEpDr_9.js";
|
|
5
5
|
var U = (function() {
|
|
6
6
|
var t = /* @__PURE__ */ s(function(h, r, n, l) {
|
|
7
7
|
for (n = n || {}, l = h.length; l--; n[h[l]] = r) ;
|
package/dist/{kanban-definition-HUTT4EX6-JhfZ6Qik.js → kanban-definition-HUTT4EX6-42_dEzBV.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as o, Q as te, K as H, al as fe, aS as ye, aT as be, aU as me, aB as _e, aj as X, W as F, a8 as ke, a9 as Ee, ay as Se, az as ce, aA as le } from "./extractHeadings-
|
|
2
|
-
import { g as Ne } from "./chunk-5VM5RSS4-
|
|
1
|
+
import { _ as o, Q as te, K as H, al as fe, aS as ye, aT as be, aU as me, aB as _e, aj as X, W as F, a8 as ke, a9 as Ee, ay as Se, az as ce, aA as le } from "./extractHeadings-Dz8gnhsx.js";
|
|
2
|
+
import { g as Ne } from "./chunk-5VM5RSS4-DiwEVqol.js";
|
|
3
3
|
var $ = (function() {
|
|
4
4
|
var e = /* @__PURE__ */ o(function(O, s, n, r) {
|
|
5
5
|
for (n = n || {}, r = O.length; r--; n[O[r]] = s) ;
|
package/dist/{kanban-definition-HUTT4EX6-BApVXeVQ.cjs → kanban-definition-HUTT4EX6-BR-C1joQ.cjs}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./extractHeadings-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./extractHeadings-By3kC3b_.cjs"),le=require("./chunk-5VM5RSS4-DSg2-2mp.cjs");var J=(function(){var e=n.__name(function(O,s,i,a){for(i=i||{},a=O.length;a--;i[O[a]]=s);return i},"o"),h=[1,4],p=[1,13],r=[1,12],d=[1,15],b=[1,16],y=[1,20],l=[1,19],D=[6,7,8],C=[1,26],g=[1,24],T=[1,25],k=[6,7,11],M=[1,31],x=[6,7,11,24],V=[1,6,13,16,17,20,23],f=[1,35],w=[1,36],L=[1,6,7,11,13,16,17,20,23],F=[1,38],A={trace:n.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:n.__name(function(s,i,a,o,u,t,G){var c=t.length-1;switch(u){case 6:case 7:return o;case 8:o.getLogger().trace("Stop NL ");break;case 9:o.getLogger().trace("Stop EOF ");break;case 11:o.getLogger().trace("Stop NL2 ");break;case 12:o.getLogger().trace("Stop EOF2 ");break;case 15:o.getLogger().info("Node: ",t[c-1].id),o.addNode(t[c-2].length,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 16:o.getLogger().info("Node: ",t[c].id),o.addNode(t[c-1].length,t[c].id,t[c].descr,t[c].type);break;case 17:o.getLogger().trace("Icon: ",t[c]),o.decorateNode({icon:t[c]});break;case 18:case 23:o.decorateNode({class:t[c]});break;case 19:o.getLogger().trace("SPACELIST");break;case 20:o.getLogger().trace("Node: ",t[c-1].id),o.addNode(0,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 21:o.getLogger().trace("Node: ",t[c].id),o.addNode(0,t[c].id,t[c].descr,t[c].type);break;case 22:o.decorateNode({icon:t[c]});break;case 27:o.getLogger().trace("node found ..",t[c-2]),this.$={id:t[c-1],descr:t[c-1],type:o.getType(t[c-2],t[c])};break;case 28:this.$={id:t[c],descr:t[c],type:0};break;case 29:o.getLogger().trace("node found ..",t[c-3]),this.$={id:t[c-3],descr:t[c-1],type:o.getType(t[c-2],t[c])};break;case 30:this.$=t[c-1]+t[c];break;case 31:this.$=t[c];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:h},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:h},{6:p,7:[1,10],9:9,12:11,13:r,14:14,16:d,17:b,18:17,19:18,20:y,23:l},e(D,[2,3]),{1:[2,2]},e(D,[2,4]),e(D,[2,5]),{1:[2,6],6:p,12:21,13:r,14:14,16:d,17:b,18:17,19:18,20:y,23:l},{6:p,9:22,12:11,13:r,14:14,16:d,17:b,18:17,19:18,20:y,23:l},{6:C,7:g,10:23,11:T},e(k,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:y,23:l}),e(k,[2,19]),e(k,[2,21],{15:30,24:M}),e(k,[2,22]),e(k,[2,23]),e(x,[2,25]),e(x,[2,26]),e(x,[2,28],{20:[1,32]}),{21:[1,33]},{6:C,7:g,10:34,11:T},{1:[2,7],6:p,12:21,13:r,14:14,16:d,17:b,18:17,19:18,20:y,23:l},e(V,[2,14],{7:f,11:w}),e(L,[2,8]),e(L,[2,9]),e(L,[2,10]),e(k,[2,16],{15:37,24:M}),e(k,[2,17]),e(k,[2,18]),e(k,[2,20],{24:F}),e(x,[2,31]),{21:[1,39]},{22:[1,40]},e(V,[2,13],{7:f,11:w}),e(L,[2,11]),e(L,[2,12]),e(k,[2,15],{24:F}),e(x,[2,30]),{22:[1,41]},e(x,[2,27]),e(x,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:n.__name(function(s,i){if(i.recoverable)this.trace(s);else{var a=new Error(s);throw a.hash=i,a}},"parseError"),parse:n.__name(function(s){var i=this,a=[0],o=[],u=[null],t=[],G=this.table,c="",H=0,ee=0,re=2,te=1,ae=t.slice.call(arguments,1),m=Object.create(this.lexer),R={yy:{}};for(var X in this.yy)Object.prototype.hasOwnProperty.call(this.yy,X)&&(R.yy[X]=this.yy[X]);m.setInput(s,R.yy),R.yy.lexer=m,R.yy.parser=this,typeof m.yylloc>"u"&&(m.yylloc={});var K=m.yylloc;t.push(K);var oe=m.options&&m.options.ranges;typeof R.yy.parseError=="function"?this.parseError=R.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ce(S){a.length=a.length-2*S,u.length=u.length-S,t.length=t.length-S}n.__name(ce,"popStack");function ne(){var S;return S=o.pop()||m.lex()||te,typeof S!="number"&&(S instanceof Array&&(o=S,S=o.pop()),S=i.symbols_[S]||S),S}n.__name(ne,"lex");for(var E,P,N,Y,j={},U,I,ie,z;;){if(P=a[a.length-1],this.defaultActions[P]?N=this.defaultActions[P]:((E===null||typeof E>"u")&&(E=ne()),N=G[P]&&G[P][E]),typeof N>"u"||!N.length||!N[0]){var q="";z=[];for(U in G[P])this.terminals_[U]&&U>re&&z.push("'"+this.terminals_[U]+"'");m.showPosition?q="Parse error on line "+(H+1)+`:
|
|
2
2
|
`+m.showPosition()+`
|
|
3
3
|
Expecting `+z.join(", ")+", got '"+(this.terminals_[E]||E)+"'":q="Parse error on line "+(H+1)+": Unexpected "+(E==te?"end of input":"'"+(this.terminals_[E]||E)+"'"),this.parseError(q,{text:m.match,token:this.terminals_[E]||E,line:m.yylineno,loc:K,expected:z})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+P+", token: "+E);switch(N[0]){case 1:a.push(E),u.push(m.yytext),t.push(m.yylloc),a.push(N[1]),E=null,ee=m.yyleng,c=m.yytext,H=m.yylineno,K=m.yylloc;break;case 2:if(I=this.productions_[N[1]][1],j.$=u[u.length-I],j._$={first_line:t[t.length-(I||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(I||1)].first_column,last_column:t[t.length-1].last_column},oe&&(j._$.range=[t[t.length-(I||1)].range[0],t[t.length-1].range[1]]),Y=this.performAction.apply(j,[c,ee,H,R.yy,N[1],u,t].concat(ae)),typeof Y<"u")return Y;I&&(a=a.slice(0,-1*I*2),u=u.slice(0,-1*I),t=t.slice(0,-1*I)),a.push(this.productions_[N[1]][0]),u.push(j.$),t.push(j._$),ie=G[a[a.length-2]][a[a.length-1]],a.push(ie);break;case 3:return!0}}return!0},"parse")},W=(function(){var O={EOF:1,parseError:n.__name(function(i,a){if(this.yy.parser)this.yy.parser.parseError(i,a);else throw new Error(i)},"parseError"),setInput:n.__name(function(s,i){return this.yy=i||this.yy||{},this._input=s,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:n.__name(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var i=s.match(/(?:\r\n?|\n).*/g);return i?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:n.__name(function(s){var i=s.length,a=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-i),this.offset-=i;var o=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var u=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===o.length?this.yylloc.first_column:0)+o[o.length-a.length].length-a[0].length:this.yylloc.first_column-i},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-i]),this.yyleng=this.yytext.length,this},"unput"),more:n.__name(function(){return this._more=!0,this},"more"),reject:n.__name(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:n.__name(function(s){this.unput(this.match.slice(s))},"less"),pastInput:n.__name(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:n.__name(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:n.__name(function(){var s=this.pastInput(),i=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bN as j, bO as p, bP as w, bQ as k, bR as q } from "./extractHeadings-
|
|
1
|
+
import { bN as j, bO as p, bP as w, bQ as k, bR as q } from "./extractHeadings-Dz8gnhsx.js";
|
|
2
2
|
import { i as D } from "./init-DjUOC4st.js";
|
|
3
3
|
import { e as g, f as F, a as P, b as z } from "./defaultLocale-BgPVtth8.js";
|
|
4
4
|
function M(n, r) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const m=require("./extractHeadings-
|
|
1
|
+
"use strict";const m=require("./extractHeadings-By3kC3b_.cjs"),j=require("./init-CHZsXQcr.cjs"),g=require("./defaultLocale-C4wbwF1n.cjs");function p(n,r){return n==null||r==null?NaN:n<r?-1:n>r?1:n>=r?0:NaN}function D(n,r){return n==null||r==null?NaN:r<n?-1:r>n?1:r>=n?0:NaN}function d(n){let r,t,e;n.length!==2?(r=p,t=(a,f)=>p(n(a),f),e=(a,f)=>n(a)-f):(r=n===p||n===D?n:F,t=n,e=n);function u(a,f,i=0,s=a.length){if(i<s){if(r(f,f)!==0)return s;do{const l=i+s>>>1;t(a[l],f)<0?i=l+1:s=l}while(i<s)}return i}function c(a,f,i=0,s=a.length){if(i<s){if(r(f,f)!==0)return s;do{const l=i+s>>>1;t(a[l],f)<=0?i=l+1:s=l}while(i<s)}return i}function o(a,f,i=0,s=a.length){const l=u(a,f,i,s-1);return l>i&&e(a[l-1],f)>-e(a[l],f)?l-1:l}return{left:u,center:o,right:c}}function F(){return 0}function $(n){return n===null?NaN:+n}const z=d(p),B=z.right;d($).center;const I=Math.sqrt(50),P=Math.sqrt(10),V=Math.sqrt(2);function v(n,r,t){const e=(r-n)/Math.max(0,t),u=Math.floor(Math.log10(e)),c=e/Math.pow(10,u),o=c>=I?10:c>=P?5:c>=V?2:1;let a,f,i;return u<0?(i=Math.pow(10,-u)/o,a=Math.round(n*i),f=Math.round(r*i),a/i<n&&++a,f/i>r&&--f,i=-i):(i=Math.pow(10,u)*o,a=Math.round(n/i),f=Math.round(r/i),a*i<n&&++a,f*i>r&&--f),f<a&&.5<=t&&t<2?v(n,r,t*2):[a,f,i]}function H(n,r,t){if(r=+r,n=+n,t=+t,!(t>0))return[];if(n===r)return[n];const e=r<n,[u,c,o]=e?v(r,n,t):v(n,r,t);if(!(c>=u))return[];const a=c-u+1,f=new Array(a);if(e)if(o<0)for(let i=0;i<a;++i)f[i]=(c-i)/-o;else for(let i=0;i<a;++i)f[i]=(c-i)*o;else if(o<0)for(let i=0;i<a;++i)f[i]=(u+i)/-o;else for(let i=0;i<a;++i)f[i]=(u+i)*o;return f}function y(n,r,t){return r=+r,n=+n,t=+t,v(n,r,t)[2]}function A(n,r,t){r=+r,n=+n,t=+t;const e=r<n,u=e?y(r,n,t):y(n,r,t);return(e?-1:1)*(u<0?1/-u:u)}function L(n,r){r||(r=[]);var t=n?Math.min(r.length,n.length):0,e=r.slice(),u;return function(c){for(u=0;u<t;++u)e[u]=n[u]*(1-c)+r[u]*c;return e}}function O(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}function T(n,r){var t=r?r.length:0,e=n?Math.min(t,n.length):0,u=new Array(e),c=new Array(t),o;for(o=0;o<e;++o)u[o]=w(n[o],r[o]);for(;o<t;++o)c[o]=r[o];return function(a){for(o=0;o<e;++o)c[o]=u[o](a);return c}}function C(n,r){var t=new Date;return n=+n,r=+r,function(e){return t.setTime(n*(1-e)+r*e),t}}function E(n,r){var t={},e={},u;(n===null||typeof n!="object")&&(n={}),(r===null||typeof r!="object")&&(r={});for(u in r)u in n?t[u]=w(n[u],r[u]):e[u]=r[u];return function(c){for(u in t)e[u]=t[u](c);return e}}function w(n,r){var t=typeof r,e;return r==null||t==="boolean"?m.constant$1(r):(t==="number"?m.interpolateNumber:t==="string"?(e=m.color(r))?(r=e,m.interpolateRgb):m.interpolateString:r instanceof m.color?m.interpolateRgb:r instanceof Date?C:O(r)?L:Array.isArray(r)?T:typeof r.valueOf!="function"&&typeof r.toString!="function"||isNaN(r)?E:m.interpolateNumber)(n,r)}function G(n,r){return n=+n,r=+r,function(t){return Math.round(n*(1-t)+r*t)}}function J(n){return Math.max(0,-g.exponent(Math.abs(n)))}function K(n,r){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(g.exponent(r)/3)))*3-g.exponent(Math.abs(n)))}function Q(n,r){return n=Math.abs(n),r=Math.abs(r)-n,Math.max(0,g.exponent(r)-g.exponent(n))+1}function U(n){return function(){return n}}function W(n){return+n}var k=[0,1];function M(n){return n}function N(n,r){return(r-=n=+n)?function(t){return(t-n)/r}:U(isNaN(r)?NaN:.5)}function X(n,r){var t;return n>r&&(t=n,n=r,r=t),function(e){return Math.max(n,Math.min(r,e))}}function Y(n,r,t){var e=n[0],u=n[1],c=r[0],o=r[1];return u<e?(e=N(u,e),c=t(o,c)):(e=N(e,u),c=t(c,o)),function(a){return c(e(a))}}function Z(n,r,t){var e=Math.min(n.length,r.length)-1,u=new Array(e),c=new Array(e),o=-1;for(n[e]<n[0]&&(n=n.slice().reverse(),r=r.slice().reverse());++o<e;)u[o]=N(n[o],n[o+1]),c[o]=t(r[o],r[o+1]);return function(a){var f=B(n,a,1,e)-1;return c[f](u[f](a))}}function R(n,r){return r.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp()).unknown(n.unknown())}function _(){var n=k,r=k,t=w,e,u,c,o=M,a,f,i;function s(){var h=Math.min(n.length,r.length);return o!==M&&(o=X(n[0],n[h-1])),a=h>2?Z:Y,f=i=null,l}function l(h){return h==null||isNaN(h=+h)?c:(f||(f=a(n.map(e),r,t)))(e(o(h)))}return l.invert=function(h){return o(u((i||(i=a(r,n.map(e),m.interpolateNumber)))(h)))},l.domain=function(h){return arguments.length?(n=Array.from(h,W),s()):n.slice()},l.range=function(h){return arguments.length?(r=Array.from(h),s()):r.slice()},l.rangeRound=function(h){return r=Array.from(h),t=G,s()},l.clamp=function(h){return arguments.length?(o=h?!0:M,s()):o!==M},l.interpolate=function(h){return arguments.length?(t=h,s()):t},l.unknown=function(h){return arguments.length?(c=h,l):c},function(h,x){return e=h,u=x,s()}}function q(){return _()(M,M)}function b(n,r,t,e){var u=A(n,r,t),c;switch(e=g.formatSpecifier(e??",f"),e.type){case"s":{var o=Math.max(Math.abs(n),Math.abs(r));return e.precision==null&&!isNaN(c=K(u,o))&&(e.precision=c),g.formatPrefix(e,o)}case"":case"e":case"g":case"p":case"r":{e.precision==null&&!isNaN(c=Q(u,Math.max(Math.abs(n),Math.abs(r))))&&(e.precision=c-(e.type==="e"));break}case"f":case"%":{e.precision==null&&!isNaN(c=J(u))&&(e.precision=c-(e.type==="%")*2);break}}return g.format(e)}function nn(n){var r=n.domain;return n.ticks=function(t){var e=r();return H(e[0],e[e.length-1],t??10)},n.tickFormat=function(t,e){var u=r();return b(u[0],u[u.length-1],t??10,e)},n.nice=function(t){t==null&&(t=10);var e=r(),u=0,c=e.length-1,o=e[u],a=e[c],f,i,s=10;for(a<o&&(i=o,o=a,a=i,i=u,u=c,c=i);s-- >0;){if(i=y(o,a,t),i===f)return e[u]=o,e[c]=a,r(e);if(i>0)o=Math.floor(o/i)*i,a=Math.ceil(a/i)*i;else if(i<0)o=Math.ceil(o*i)/i,a=Math.floor(a*i)/i;else break;f=i}return n},n}function S(){var n=q();return n.copy=function(){return R(n,S())},j.initRange.apply(n,arguments),nn(n)}exports.bisector=d;exports.continuous=q;exports.copy=R;exports.linear=S;exports.tickStep=A;
|
package/dist/{mindmap-definition-LN4V7U3C-BUbo0u-Y.cjs → mindmap-definition-LN4V7U3C-BO555Yeu.cjs}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ie=require("./chunk-XXDRQBXY-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ie=require("./chunk-XXDRQBXY-B0bOz96Q.cjs"),se=require("./chunk-VR4S4FIN-C-Pbv_Mm.cjs"),s=require("./extractHeadings-By3kC3b_.cjs"),E=[];for(let t=0;t<256;++t)E.push((t+256).toString(16).slice(1));function re(t,e=0){return(E[t[e+0]]+E[t[e+1]]+E[t[e+2]]+E[t[e+3]]+"-"+E[t[e+4]]+E[t[e+5]]+"-"+E[t[e+6]]+E[t[e+7]]+"-"+E[t[e+8]]+E[t[e+9]]+"-"+E[t[e+10]]+E[t[e+11]]+E[t[e+12]]+E[t[e+13]]+E[t[e+14]]+E[t[e+15]]).toLowerCase()}const ae=new Uint8Array(16);function oe(){return crypto.getRandomValues(ae)}function ce(t,e,c){return crypto.randomUUID?crypto.randomUUID():le(t)}function le(t,e,c){t=t||{};const h=t.random??t.rng?.()??oe();if(h.length<16)throw new Error("Random bytes length must be >= 16");return h[6]=h[6]&15|64,h[8]=h[8]&63|128,re(h)}var z=(function(){var t=s.__name(function(L,r,i,o){for(i=i||{},o=L.length;o--;i[L[o]]=r);return i},"o"),e=[1,4],c=[1,13],h=[1,12],n=[1,15],d=[1,16],f=[1,20],y=[1,19],_=[6,7,8],k=[1,26],v=[1,24],w=[1,25],g=[6,7,11],R=[1,6,13,15,16,19,22],X=[1,33],W=[1,34],A=[1,6,7,11,13,15,16,19,22],V={trace:s.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:s.__name(function(r,i,o,l,p,a,$){var u=a.length-1;switch(p){case 6:case 7:return l;case 8:l.getLogger().trace("Stop NL ");break;case 9:l.getLogger().trace("Stop EOF ");break;case 11:l.getLogger().trace("Stop NL2 ");break;case 12:l.getLogger().trace("Stop EOF2 ");break;case 15:l.getLogger().info("Node: ",a[u].id),l.addNode(a[u-1].length,a[u].id,a[u].descr,a[u].type);break;case 16:l.getLogger().trace("Icon: ",a[u]),l.decorateNode({icon:a[u]});break;case 17:case 21:l.decorateNode({class:a[u]});break;case 18:l.getLogger().trace("SPACELIST");break;case 19:l.getLogger().trace("Node: ",a[u].id),l.addNode(0,a[u].id,a[u].descr,a[u].type);break;case 20:l.decorateNode({icon:a[u]});break;case 25:l.getLogger().trace("node found ..",a[u-2]),this.$={id:a[u-1],descr:a[u-1],type:l.getType(a[u-2],a[u])};break;case 26:this.$={id:a[u],descr:a[u],type:l.nodeType.DEFAULT};break;case 27:l.getLogger().trace("node found ..",a[u-3]),this.$={id:a[u-3],descr:a[u-1],type:l.getType(a[u-2],a[u])};break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:e},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:e},{6:c,7:[1,10],9:9,12:11,13:h,14:14,15:n,16:d,17:17,18:18,19:f,22:y},t(_,[2,3]),{1:[2,2]},t(_,[2,4]),t(_,[2,5]),{1:[2,6],6:c,12:21,13:h,14:14,15:n,16:d,17:17,18:18,19:f,22:y},{6:c,9:22,12:11,13:h,14:14,15:n,16:d,17:17,18:18,19:f,22:y},{6:k,7:v,10:23,11:w},t(g,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:f,22:y}),t(g,[2,18]),t(g,[2,19]),t(g,[2,20]),t(g,[2,21]),t(g,[2,23]),t(g,[2,24]),t(g,[2,26],{19:[1,30]}),{20:[1,31]},{6:k,7:v,10:32,11:w},{1:[2,7],6:c,12:21,13:h,14:14,15:n,16:d,17:17,18:18,19:f,22:y},t(R,[2,14],{7:X,11:W}),t(A,[2,8]),t(A,[2,9]),t(A,[2,10]),t(g,[2,15]),t(g,[2,16]),t(g,[2,17]),{20:[1,35]},{21:[1,36]},t(R,[2,13],{7:X,11:W}),t(A,[2,11]),t(A,[2,12]),{21:[1,37]},t(g,[2,25]),t(g,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:s.__name(function(r,i){if(i.recoverable)this.trace(r);else{var o=new Error(r);throw o.hash=i,o}},"parseError"),parse:s.__name(function(r){var i=this,o=[0],l=[],p=[null],a=[],$=this.table,u="",P=0,Y=0,Z=2,q=1,ee=a.slice.call(arguments,1),m=Object.create(this.lexer),T={yy:{}};for(var F in this.yy)Object.prototype.hasOwnProperty.call(this.yy,F)&&(T.yy[F]=this.yy[F]);m.setInput(r,T.yy),T.yy.lexer=m,T.yy.parser=this,typeof m.yylloc>"u"&&(m.yylloc={});var G=m.yylloc;a.push(G);var te=m.options&&m.options.ranges;typeof T.yy.parseError=="function"?this.parseError=T.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ne(S){o.length=o.length-2*S,p.length=p.length-S,a.length=a.length-S}s.__name(ne,"popStack");function Q(){var S;return S=l.pop()||m.lex()||q,typeof S!="number"&&(S instanceof Array&&(l=S,S=l.pop()),S=i.symbols_[S]||S),S}s.__name(Q,"lex");for(var b,C,x,j,O={},M,N,J,U;;){if(C=o[o.length-1],this.defaultActions[C]?x=this.defaultActions[C]:((b===null||typeof b>"u")&&(b=Q()),x=$[C]&&$[C][b]),typeof x>"u"||!x.length||!x[0]){var H="";U=[];for(M in $[C])this.terminals_[M]&&M>Z&&U.push("'"+this.terminals_[M]+"'");m.showPosition?H="Parse error on line "+(P+1)+`:
|
|
2
2
|
`+m.showPosition()+`
|
|
3
3
|
Expecting `+U.join(", ")+", got '"+(this.terminals_[b]||b)+"'":H="Parse error on line "+(P+1)+": Unexpected "+(b==q?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(H,{text:m.match,token:this.terminals_[b]||b,line:m.yylineno,loc:G,expected:U})}if(x[0]instanceof Array&&x.length>1)throw new Error("Parse Error: multiple actions possible at state: "+C+", token: "+b);switch(x[0]){case 1:o.push(b),p.push(m.yytext),a.push(m.yylloc),o.push(x[1]),b=null,Y=m.yyleng,u=m.yytext,P=m.yylineno,G=m.yylloc;break;case 2:if(N=this.productions_[x[1]][1],O.$=p[p.length-N],O._$={first_line:a[a.length-(N||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(N||1)].first_column,last_column:a[a.length-1].last_column},te&&(O._$.range=[a[a.length-(N||1)].range[0],a[a.length-1].range[1]]),j=this.performAction.apply(O,[u,Y,P,T.yy,x[1],p,a].concat(ee)),typeof j<"u")return j;N&&(o=o.slice(0,-1*N*2),p=p.slice(0,-1*N),a=a.slice(0,-1*N)),o.push(this.productions_[x[1]][0]),p.push(O.$),a.push(O._$),J=$[o[o.length-2]][o[o.length-1]],o.push(J);break;case 3:return!0}}return!0},"parse")},K=(function(){var L={EOF:1,parseError:s.__name(function(i,o){if(this.yy.parser)this.yy.parser.parseError(i,o);else throw new Error(i)},"parseError"),setInput:s.__name(function(r,i){return this.yy=i||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:s.__name(function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var i=r.match(/(?:\r\n?|\n).*/g);return i?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},"input"),unput:s.__name(function(r){var i=r.length,o=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-i),this.offset-=i;var l=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),o.length-1&&(this.yylineno-=o.length-1);var p=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:o?(o.length===l.length?this.yylloc.first_column:0)+l[l.length-o.length].length-o[0].length:this.yylloc.first_column-i},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-i]),this.yyleng=this.yytext.length,this},"unput"),more:s.__name(function(){return this._more=!0,this},"more"),reject:s.__name(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:s.__name(function(r){this.unput(this.match.slice(r))},"less"),pastInput:s.__name(function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s.__name(function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s.__name(function(){var r=this.pastInput(),i=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
|
package/dist/{mindmap-definition-LN4V7U3C-gNTBga2z.js → mindmap-definition-LN4V7U3C-e4fXdr28.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { g as oe } from "./chunk-XXDRQBXY-
|
|
2
|
-
import { s as ce } from "./chunk-VR4S4FIN-
|
|
3
|
-
import { _ as h, Q as I, a3 as le, a4 as he, ag as de, aj as j, K as P, W as G, a1 as ge, ay as ue, az as pe, aA as fe } from "./extractHeadings-
|
|
1
|
+
import { g as oe } from "./chunk-XXDRQBXY-DEXdwwNg.js";
|
|
2
|
+
import { s as ce } from "./chunk-VR4S4FIN-CLtgFgby.js";
|
|
3
|
+
import { _ as h, Q as I, a3 as le, a4 as he, ag as de, aj as j, K as P, W as G, a1 as ge, ay as ue, az as pe, aA as fe } from "./extractHeadings-Dz8gnhsx.js";
|
|
4
4
|
const _ = [];
|
|
5
5
|
for (let t = 0; t < 256; ++t)
|
|
6
6
|
_.push((t + 256).toString(16).slice(1));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./chunk-MOJQB5TN-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./chunk-MOJQB5TN-DPs_chEk.cjs"),l=require("./chunk-JWPE2WC7-BGdnK7yg.cjs"),t=require("./extractHeadings-By3kC3b_.cjs"),s=require("./cynefin-VYW2F7L2-MpAliYy9.cjs");var u=s.createRailroadPegServices().RailroadPeg.parser.LangiumParser,i=t.__name(e=>{const r=e.alternatives.map(m);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformOrderedChoice"),m=t.__name(e=>{const r=e.elements.map(c);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformSequence"),c=t.__name(e=>{const r=p(e.suffix);return e.operator?{type:"special",text:e.operator==="&"?`&${o(r)}`:`!${o(r)}`}:r},"transformPrefix"),o=t.__name(e=>{switch(e.type){case"terminal":return`"${e.value}"`;case"nonterminal":return e.name;case"special":return e.text;default:return"(...)"}},"nodeToLabel"),p=t.__name(e=>{const r=d(e.primary);if(!e.operator)return r;switch(e.operator){case"?":return{type:"optional",element:r};case"*":return{type:"repetition",element:r,min:0,max:1/0};case"+":return{type:"repetition",element:r,min:1,max:1/0};default:throw new Error(`Unsupported PEG suffix operator: ${e.operator}`)}},"transformSuffix"),d=t.__name(e=>{switch(e.$type){case"PegLiteral":return{type:"terminal",value:e.value};case"PegIdentifier":return{type:"nonterminal",name:e.name};case"PegGroup":return i(e.element);case"PegAny":return{type:"special",text:e.dot};default:throw new Error(`Unsupported PEG primary node: ${e.$type}`)}},"transformPrimary"),f=t.__name(e=>({name:e.name,definition:i(e.definition)}),"transformRule"),g=t.__name(e=>{l.populateCommonDb(e,a.db),e.title&&a.db.setTitle(e.title),e.rules.map(r=>a.db.addRule(f(r)))},"populateDb"),P={parse:t.__name(e=>{a.db.clear(),t.log.debug("[PEG Parser] Starting Langium parse");const r=u.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new s.MermaidParseError(r);const n=r.value;t.log.debug("[PEG Parser] Parsed rules:",n.rules.length),g(n),t.log.debug("[PEG Parser] Parse complete")},"parse"),parser:{yy:a.db}},y={parser:P,db:a.db,renderer:a.renderer,styles:a.getStyles};exports.diagram=y;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { g as l, r as m, d as a } from "./chunk-MOJQB5TN-
|
|
2
|
-
import { p } from "./chunk-JWPE2WC7-
|
|
3
|
-
import { _ as t, Q as o } from "./extractHeadings-
|
|
1
|
+
import { g as l, r as m, d as a } from "./chunk-MOJQB5TN-B-H_fDpi.js";
|
|
2
|
+
import { p } from "./chunk-JWPE2WC7-njgGfGvE.js";
|
|
3
|
+
import { _ as t, Q as o } from "./extractHeadings-Dz8gnhsx.js";
|
|
4
4
|
import { M as u, d as c } from "./cynefin-VYW2F7L2-Bkk-F_Js.js";
|
|
5
5
|
var f = c().RailroadPeg.parser.LangiumParser, i = /* @__PURE__ */ t((e) => {
|
|
6
6
|
const r = e.alternatives.map(d);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Q=require("./chunk-JWPE2WC7-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Q=require("./chunk-JWPE2WC7-BGdnK7yg.cjs"),e=require("./extractHeadings-By3kC3b_.cjs"),tt=require("./cynefin-VYW2F7L2-MpAliYy9.cjs"),j=require("./arc-B48_ucR0.cjs"),et=require("./ordinal-CagbB1m8.cjs");function nt(t,i){return i<t?-1:i>t?1:i>=t?0:NaN}function at(t){return t}function rt(){var t=at,i=nt,x=null,T=e.constant(0),c=e.constant(e.tau),h=e.constant(0);function o(n){var r,s=(n=e.array(n)).length,p,A,C=0,f=new Array(s),l=new Array(s),_=+T.apply(this,arguments),k=Math.min(e.tau,Math.max(-e.tau,c.apply(this,arguments)-_)),$,z=Math.min(Math.abs(k)/s,h.apply(this,arguments)),g=z*(k<0?-1:1),w;for(r=0;r<s;++r)(w=l[f[r]=r]=+t(n[r],r,n))>0&&(C+=w);for(i!=null?f.sort(function(E,m){return i(l[E],l[m])}):x!=null&&f.sort(function(E,m){return x(n[E],n[m])}),r=0,A=C?(k-s*g)/C:0;r<s;++r,_=$)p=f[r],w=l[p],$=_+(w>0?w*A:0)+g,l[p]={data:n[p],index:r,value:w,startAngle:_,endAngle:$,padAngle:z};return l}return o.value=function(n){return arguments.length?(t=typeof n=="function"?n:e.constant(+n),o):t},o.sortValues=function(n){return arguments.length?(i=n,x=null,o):i},o.sort=function(n){return arguments.length?(x=n,i=null,o):x},o.startAngle=function(n){return arguments.length?(T=typeof n=="function"?n:e.constant(+n),o):T},o.endAngle=function(n){return arguments.length?(c=typeof n=="function"?n:e.constant(+n),o):c},o.padAngle=function(n){return arguments.length?(h=typeof n=="function"?n:e.constant(+n),o):h},o}var it=e.defaultConfig_default.pie,N={sections:new Map,showData:!1},P=N.sections,G=N.showData,ot=structuredClone(it),lt=e.__name(()=>structuredClone(ot),"getConfig"),st=e.__name(()=>{P=new Map,G=N.showData,e.clear()},"clear"),ct=e.__name(({label:t,value:i})=>{if(i<0)throw new Error(`"${t}" has invalid value: ${i}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);P.has(t)||(P.set(t,i),e.log.debug(`added new section: ${t}, with value: ${i}`))},"addSection"),ut=e.__name(()=>P,"getSections"),gt=e.__name(t=>{G=t},"setShowData"),dt=e.__name(()=>G,"getShowData"),U={getConfig:lt,clear:st,setDiagramTitle:e.setDiagramTitle,getDiagramTitle:e.getDiagramTitle,setAccTitle:e.setAccTitle,getAccTitle:e.getAccTitle,setAccDescription:e.setAccDescription,getAccDescription:e.getAccDescription,addSection:ct,getSections:ut,setShowData:gt,getShowData:dt},ht=e.__name((t,i)=>{Q.populateCommonDb(t,i),i.setShowData(t.showData),t.sections.map(i.addSection)},"populateDb"),pt={parse:e.__name(async t=>{const i=await tt.parse("pie",t);e.log.debug(i),ht(i,U)},"parse")},ft=e.__name(t=>`
|
|
2
2
|
.pieCircle{
|
|
3
3
|
stroke: ${t.pieStrokeColor};
|
|
4
4
|
stroke-width : ${t.pieStrokeWidth};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { p as at } from "./chunk-JWPE2WC7-
|
|
2
|
-
import { aO as T, aG as P, bK as rt, A as nt, z as it, G as ot, J as st, a7 as lt, a6 as ct, _ as g, Q as B, K as ut, ai as dt, al as gt, ap as pt, R as ht, ac as ft, aj as mt } from "./extractHeadings-
|
|
1
|
+
import { p as at } from "./chunk-JWPE2WC7-njgGfGvE.js";
|
|
2
|
+
import { aO as T, aG as P, bK as rt, A as nt, z as it, G as ot, J as st, a7 as lt, a6 as ct, _ as g, Q as B, K as ut, ai as dt, al as gt, ap as pt, R as ht, ac as ft, aj as mt } from "./extractHeadings-Dz8gnhsx.js";
|
|
3
3
|
import { p as vt } from "./cynefin-VYW2F7L2-Bkk-F_Js.js";
|
|
4
|
-
import { d as Q } from "./arc-
|
|
4
|
+
import { d as Q } from "./arc-ChEpDr_9.js";
|
|
5
5
|
import { o as xt } from "./ordinal-B6-f3MAq.js";
|
|
6
6
|
function St(t, n) {
|
|
7
7
|
return n < t ? -1 : n > t ? 1 : n >= t ? 0 : NaN;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { z as Ae, A as ke, a7 as ae, a6 as Fe, G as Pe, J as ve, _ as o, K as zt, Q as bt, O as Lt, R as Ce, ac as Le, aj as z, W as Ee, am as De } from "./extractHeadings-
|
|
2
|
-
import { l as ie } from "./linear-
|
|
1
|
+
import { z as Ae, A as ke, a7 as ae, a6 as Fe, G as Pe, J as ve, _ as o, K as zt, Q as bt, O as Lt, R as Ce, ac as Le, aj as z, W as Ee, am as De } from "./extractHeadings-Dz8gnhsx.js";
|
|
2
|
+
import { l as ie } from "./linear-B7J7VKh9.js";
|
|
3
3
|
var Et = (function() {
|
|
4
4
|
var t = /* @__PURE__ */ o(function(Y, r, l, x) {
|
|
5
5
|
for (l = l || {}, x = Y.length; x--; l[Y[x]] = r) ;
|