@aiquants/markdown 5.0.0 → 6.1.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 +176 -14
- package/dist/{abnfDiagram-VRR7QNED-DeHJ63Vu.js → abnfDiagram-VRR7QNED-0ow9i3L-.js} +3 -3
- package/dist/{abnfDiagram-VRR7QNED-CfVjEUzG.cjs → abnfDiagram-VRR7QNED-DRNsVB-u.cjs} +1 -1
- package/dist/{arc-XFFLkHkK.cjs → arc-BWR9_qMf.cjs} +1 -1
- package/dist/arc-Bh12k776.js +83 -0
- package/dist/{architectureDiagram-ZJ3FMSHR-CQ1m3MUB.js → architectureDiagram-ZJ3FMSHR-CsFXQcxx.js} +123 -123
- package/dist/{architectureDiagram-ZJ3FMSHR-7xJ6YYGu.cjs → architectureDiagram-ZJ3FMSHR-DtrqDlxV.cjs} +1 -1
- package/dist/{blockDiagram-677ZJIJ3-CJOFqwiW.cjs → blockDiagram-677ZJIJ3-CoZEeE0C.cjs} +1 -1
- package/dist/{blockDiagram-677ZJIJ3-BPC3se0e.js → blockDiagram-677ZJIJ3-CqQ43viF.js} +166 -166
- package/dist/{c4Diagram-LMCZKHZV-D8ytYGhR.cjs → c4Diagram-LMCZKHZV-DGA2gxp-.cjs} +1 -1
- package/dist/{c4Diagram-LMCZKHZV-BEIrp4t6.js → c4Diagram-LMCZKHZV-QPgNg4El.js} +2 -2
- package/dist/{channel-CJQcZr8o.cjs → channel-Jkgg7NV4.cjs} +1 -1
- package/dist/channel-PnA15jK3.js +5 -0
- package/dist/{chunk-2Q5K7J3B-BbMQR3Sm.cjs → chunk-2Q5K7J3B-1iQ5h7FK.cjs} +1 -1
- package/dist/{chunk-2Q5K7J3B-l8ly7Yjr.js → chunk-2Q5K7J3B-DOWfHP5s.js} +1 -1
- package/dist/{chunk-32BRIVSS-BhQJBlVw.js → chunk-32BRIVSS-94iTIA-u.js} +1 -1
- package/dist/{chunk-32BRIVSS-BwDfmprN.cjs → chunk-32BRIVSS-XUAL4SUU.cjs} +1 -1
- package/dist/{chunk-5VM5RSS4-CqDQlS7v.cjs → chunk-5VM5RSS4-CKgpuXOS.cjs} +1 -1
- package/dist/{chunk-5VM5RSS4-Bfis-x7E.js → chunk-5VM5RSS4-OANQKmQE.js} +1 -1
- package/dist/{chunk-EX3LRPZG-DUTbzwDM.js → chunk-EX3LRPZG-BQDQ1MdS.js} +50 -50
- package/dist/{chunk-EX3LRPZG-9aDULZwJ.cjs → chunk-EX3LRPZG-BrRRbskW.cjs} +1 -1
- package/dist/{chunk-JWPE2WC7-5cM5nFf6.cjs → chunk-JWPE2WC7-Bz9dXsLZ.cjs} +1 -1
- package/dist/{chunk-JWPE2WC7-DpcSSOP5.js → chunk-JWPE2WC7-Djg6Qi23.js} +1 -1
- package/dist/{chunk-MOJQB5TN-D_h6bolU.js → chunk-MOJQB5TN-1pZNp2Wl.js} +9 -9
- package/dist/{chunk-MOJQB5TN-Cw864mUL.cjs → chunk-MOJQB5TN-DUk2Jy4_.cjs} +1 -1
- package/dist/{chunk-PUDLZKDR-yLvT3c9x.cjs → chunk-PUDLZKDR-CVedetzB.cjs} +1 -1
- package/dist/{chunk-PUDLZKDR-B0wZjmzv.js → chunk-PUDLZKDR-G5JYyEiR.js} +22 -22
- package/dist/{chunk-RYQCIY6F-DTKYsCgk.js → chunk-RYQCIY6F-Crmt36sO.js} +6 -6
- package/dist/{chunk-RYQCIY6F-hj9dRWMT.cjs → chunk-RYQCIY6F-D0y50t5B.cjs} +1 -1
- package/dist/{chunk-V7JOEXUC-COa9uddv.js → chunk-V7JOEXUC-BNo-X7NC.js} +5 -5
- package/dist/{chunk-V7JOEXUC-DIQ8n1AN.cjs → chunk-V7JOEXUC-DXSQM1ea.cjs} +1 -1
- package/dist/{chunk-VR4S4FIN-B72PxPVm.js → chunk-VR4S4FIN-BGGITgpQ.js} +3 -3
- package/dist/{chunk-VR4S4FIN-Cy-2mZJB.cjs → chunk-VR4S4FIN-Bc567umS.cjs} +1 -1
- package/dist/{chunk-XXDRQBXY-DmoUE7-y.cjs → chunk-XXDRQBXY-DOuLpiJ4.cjs} +1 -1
- package/dist/{chunk-XXDRQBXY-D2Sgptl-.js → chunk-XXDRQBXY-Drnpl-KK.js} +1 -1
- package/dist/{classDiagram-v2-EOCWNBFH-Dah4_VL7.js → classDiagram-OUVF2IWQ-Cneye7qT.js} +2 -2
- package/dist/{classDiagram-OUVF2IWQ-GjsCEuKI.cjs → classDiagram-OUVF2IWQ-mmjBEYmN.cjs} +1 -1
- package/dist/{classDiagram-OUVF2IWQ-Dah4_VL7.js → classDiagram-v2-EOCWNBFH-Cneye7qT.js} +2 -2
- package/dist/{classDiagram-v2-EOCWNBFH-GjsCEuKI.cjs → classDiagram-v2-EOCWNBFH-mmjBEYmN.cjs} +1 -1
- package/dist/components/MarkdownRenderer.d.ts +5 -2
- package/dist/components/MarkdownViewer.d.ts +3 -2
- package/dist/components/NodesRenderer.d.ts +1 -5
- package/dist/components/embeds/ClientFrame.d.ts +13 -0
- package/dist/components/embeds/LinkCard.d.ts +20 -0
- package/dist/components/embeds/ProviderEmbed.d.ts +11 -0
- package/dist/components/embeds/embedLabels.d.ts +12 -0
- package/dist/components/embeds/frameMessages.d.ts +7 -0
- package/dist/components/embeds/markdownEmbeds.d.ts +2 -0
- package/dist/components/embeds/requestQueue.d.ts +16 -0
- package/dist/components/embeds.d.ts +0 -8
- package/dist/components/htmlSanitizer.d.ts +4 -0
- package/dist/components/mdastNodes/HTMLBlockContainerNode.d.ts +1 -2
- package/dist/components/rawHtml.d.ts +6 -3
- package/dist/components/viewerLabels.d.ts +3 -1
- package/dist/{cose-bilkent-JH36ORCC-Pi0l3C5o.js → cose-bilkent-JH36ORCC-BQWfGE1G.js} +1 -1
- package/dist/{cose-bilkent-JH36ORCC-Vi9pHFwc.cjs → cose-bilkent-JH36ORCC-BaEdcRlX.cjs} +1 -1
- package/dist/css/zenn-content.css +0 -40
- package/dist/{cynefinDiagram-TSTJHNR4-CIh03JTU.js → cynefinDiagram-TSTJHNR4-CTDDSUz7.js} +47 -47
- package/dist/{cynefinDiagram-TSTJHNR4-BQ2k9Z6b.cjs → cynefinDiagram-TSTJHNR4-DPQl09kC.cjs} +1 -1
- package/dist/{dagre-VKFMJZFB-cINcPwV3.js → dagre-VKFMJZFB-BMRdJgZy.js} +27 -27
- package/dist/{dagre-VKFMJZFB-DI2wSrAy.cjs → dagre-VKFMJZFB-DZ4E-Szs.cjs} +1 -1
- package/dist/{diagram-FQU43EPY-BonrBTG_.js → diagram-FQU43EPY-CmEpNw5i.js} +42 -42
- package/dist/{diagram-FQU43EPY-B6iUH2l5.cjs → diagram-FQU43EPY-mK9YHIy1.cjs} +1 -1
- package/dist/{diagram-G47NLZAW-CY6mWS2R.cjs → diagram-G47NLZAW-BX8Lj_uD.cjs} +1 -1
- package/dist/{diagram-G47NLZAW-5N876QQA.js → diagram-G47NLZAW-eJRQFjAg.js} +83 -83
- package/dist/{diagram-NH7WQ7WH-x3SaRfd6.cjs → diagram-NH7WQ7WH-3r1_3TrC.cjs} +1 -1
- package/dist/{diagram-NH7WQ7WH-LFuTbHxY.js → diagram-NH7WQ7WH-BOOj_4-N.js} +18 -18
- package/dist/{diagram-OA4YK3LP-B9mVw8cB.cjs → diagram-OA4YK3LP-CkDJzLOy.cjs} +1 -1
- package/dist/{diagram-OA4YK3LP-Cinpbl0B.js → diagram-OA4YK3LP-DnDIHtcW.js} +61 -61
- package/dist/{diagram-WEI45ONY-HPCHpafe.js → diagram-WEI45ONY-BHpuPTt-.js} +21 -21
- package/dist/{diagram-WEI45ONY-BRYVUhRr.cjs → diagram-WEI45ONY-BpCCo_Ty.cjs} +1 -1
- package/dist/{ebnfDiagram-CCIWWBDH-oLOdtH39.js → ebnfDiagram-CCIWWBDH-BDLB-AVF.js} +5 -5
- package/dist/{ebnfDiagram-CCIWWBDH-DhFlIi0a.cjs → ebnfDiagram-CCIWWBDH-CfdalXdM.cjs} +1 -1
- package/dist/embeds/frames.d.ts +4 -0
- package/dist/embeds/linkCards.d.ts +48 -0
- package/dist/embeds/placeholder.d.ts +15 -0
- package/dist/embeds/providers.d.ts +73 -0
- package/dist/embeds/testing.cjs +1 -0
- package/dist/embeds/testing.d.ts +7 -0
- package/dist/embeds/testing.js +67 -0
- package/dist/embeds.cjs +1 -0
- package/dist/embeds.d.ts +4 -0
- package/dist/embeds.js +73 -0
- package/dist/{erDiagram-Q63AITRT-DCCFR1Ai.cjs → erDiagram-Q63AITRT-CviOyQsx.cjs} +1 -1
- package/dist/{erDiagram-Q63AITRT-CCtzpK78.js → erDiagram-Q63AITRT-DZlcgZfp.js} +9 -9
- package/dist/{extractHeadings-CGJexznE.js → extractHeadings-CtiYkq2z.js} +5482 -5431
- package/dist/extractHeadings-D1A8WzVy.cjs +311 -0
- package/dist/flowDiagram-23GEKE2U-C_FW0q38.js +7 -0
- package/dist/flowDiagram-23GEKE2U-Cb0U58EU.cjs +1 -0
- package/dist/{ganttDiagram-NO4QXBWP-C9RPyo4r.cjs → ganttDiagram-NO4QXBWP-CJa-hKPU.cjs} +1 -1
- package/dist/{ganttDiagram-NO4QXBWP-Dfi3nINO.js → ganttDiagram-NO4QXBWP-DO0HAbYg.js} +69 -69
- package/dist/{gitGraphDiagram-IHSO6WYX-CjAqPhww.js → gitGraphDiagram-IHSO6WYX-CXStgPQs.js} +38 -38
- package/dist/{gitGraphDiagram-IHSO6WYX-mT3NNT7T.cjs → gitGraphDiagram-IHSO6WYX-CXcPHbkt.cjs} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.client.cjs +1 -1
- package/dist/index.client.d.ts +1 -10
- package/dist/index.client.js +41 -49
- package/dist/index.js +41 -49
- package/dist/index.server.cjs +1 -1
- package/dist/index.server.d.ts +1 -2
- package/dist/index.server.js +593 -191
- package/dist/{infoDiagram-FWYZ7A6U-0Co9BitR.cjs → infoDiagram-FWYZ7A6U-BByoHihL.cjs} +1 -1
- package/dist/{infoDiagram-FWYZ7A6U-BXWQ9Vy4.js → infoDiagram-FWYZ7A6U-K0__ySEG.js} +1 -1
- package/dist/{ishikawaDiagram-FXEZZL3T-CZp5P1WE.js → ishikawaDiagram-FXEZZL3T-C8QlwQP1.js} +35 -35
- package/dist/{ishikawaDiagram-FXEZZL3T-BKqUBw1i.cjs → ishikawaDiagram-FXEZZL3T-DZOMdeTI.cjs} +1 -1
- package/dist/{journeyDiagram-5HDEW3XC-DYVTgOOE.js → journeyDiagram-5HDEW3XC-CZ9PFNNN.js} +39 -39
- package/dist/{journeyDiagram-5HDEW3XC-CeumPQ1I.cjs → journeyDiagram-5HDEW3XC-RvC77rKo.cjs} +1 -1
- package/dist/{kanban-definition-HUTT4EX6-Cg5KnsE9.cjs → kanban-definition-HUTT4EX6-BL1jihGl.cjs} +1 -1
- package/dist/{kanban-definition-HUTT4EX6-CnleRy80.js → kanban-definition-HUTT4EX6-Q12F4vHx.js} +123 -123
- package/dist/{linear-Cf8i6Rsk.js → linear-LWjATjog.js} +32 -32
- package/dist/{linear-qqwu6T0F.cjs → linear-lDvPoqlB.cjs} +1 -1
- package/dist/linkCardServer/addressGuard.server.d.ts +25 -0
- package/dist/linkCardServer/htmlEncoding.server.d.ts +6 -0
- package/dist/linkCardServer/linkCardHandler.server.d.ts +7 -0
- package/dist/linkCardServer/metadataCache.server.d.ts +5 -0
- package/dist/linkCardServer/pageFetch.server.d.ts +37 -0
- package/dist/linkCardServer/pageMetadata.server.d.ts +11 -0
- package/dist/linkCards-1JxY8wdm.js +48 -0
- package/dist/linkCards-Bjd_vW39.cjs +1 -0
- package/dist/markdown.css +1 -1
- package/dist/{mindmap-definition-LN4V7U3C-lBin9VOm.js → mindmap-definition-LN4V7U3C-CM1XvwJX.js} +33 -33
- package/dist/{mindmap-definition-LN4V7U3C-DfFWeFph.cjs → mindmap-definition-LN4V7U3C-TVYKONRm.cjs} +1 -1
- package/dist/{pegDiagram-2B236MQR-BiD21lOj.js → pegDiagram-2B236MQR-Dlrnikqd.js} +5 -5
- package/dist/{pegDiagram-2B236MQR-Cf1f-3yi.cjs → pegDiagram-2B236MQR-a9Up0ERY.cjs} +1 -1
- package/dist/{pieDiagram-ENE6RG2P-jwhVsZgX.cjs → pieDiagram-ENE6RG2P-ClakmSma.cjs} +1 -1
- package/dist/{pieDiagram-ENE6RG2P-BqZb6gaV.js → pieDiagram-ENE6RG2P-WYrEJp8U.js} +58 -58
- package/dist/providers-Bxr2Wb-j.cjs +1 -0
- package/dist/providers-Drq7MT_K.js +209 -0
- package/dist/{quadrantDiagram-ABIIQ3AL-CNe9fRLO.js → quadrantDiagram-ABIIQ3AL-BkgMVDaX.js} +48 -48
- package/dist/{quadrantDiagram-ABIIQ3AL-sO_sIA7b.cjs → quadrantDiagram-ABIIQ3AL-Cb01YcqR.cjs} +1 -1
- package/dist/{railroadDiagram-RFXS5EU6-Dkc8k3e9.cjs → railroadDiagram-RFXS5EU6-Bob4WSMz.cjs} +1 -1
- package/dist/{railroadDiagram-RFXS5EU6-53YTkJrs.js → railroadDiagram-RFXS5EU6-RfCtZGUR.js} +3 -3
- package/dist/{requirementDiagram-TGXJPOKE-C0GMlJO4.cjs → requirementDiagram-TGXJPOKE-BP5h9mCj.cjs} +1 -1
- package/dist/{requirementDiagram-TGXJPOKE-D8Gz7jzA.js → requirementDiagram-TGXJPOKE-C1yJPMp1.js} +3 -3
- package/dist/{sankeyDiagram-HTMAVEWB-CEC0GaCg.js → sankeyDiagram-HTMAVEWB-D5G9Dcmr.js} +67 -67
- package/dist/{sankeyDiagram-HTMAVEWB-Bw9J2Ay2.cjs → sankeyDiagram-HTMAVEWB-shq9WK4t.cjs} +1 -1
- package/dist/{sequenceDiagram-DBY2YBRQ-CKb4m3I0.js → sequenceDiagram-DBY2YBRQ-8EJMQxiB.js} +47 -47
- package/dist/{sequenceDiagram-DBY2YBRQ-BuqPCreB.cjs → sequenceDiagram-DBY2YBRQ-BRxcK5-5.cjs} +1 -1
- package/dist/{simple-logger-DZxBpX7v.cjs → simple-logger-9yf7ypyB.cjs} +1 -1
- package/dist/{simple-logger-i94ikRyH.js → simple-logger-DwH1YQvq.js} +3 -1
- package/dist/{sizeCapture-X5ZJPWSS-Dm3rsxXw.cjs → sizeCapture-X5ZJPWSS-BtBRJO2R.cjs} +1 -1
- package/dist/{sizeCapture-X5ZJPWSS-CotnTNAA.js → sizeCapture-X5ZJPWSS-DJG85IuR.js} +1 -1
- package/dist/{stateDiagram-2N3HPSRC-GWEIP-C9.js → stateDiagram-2N3HPSRC-CAd-NU-f.js} +22 -22
- package/dist/{stateDiagram-2N3HPSRC-5Y-OlePe.cjs → stateDiagram-2N3HPSRC-Czgkv_ey.cjs} +1 -1
- package/dist/{stateDiagram-v2-6OUMAXLB-v77D3Qyf.cjs → stateDiagram-v2-6OUMAXLB-BNP5Lx0Y.cjs} +1 -1
- package/dist/{stateDiagram-v2-6OUMAXLB-BZFV8swJ.js → stateDiagram-v2-6OUMAXLB-x_Zps-d5.js} +2 -2
- package/dist/styles/markdown.css +1 -1
- package/dist/{swimlanes-5IMT3BWC-B1hLl8Ph.cjs → swimlanes-5IMT3BWC-CfdkDd3q.cjs} +1 -1
- package/dist/{swimlanes-5IMT3BWC-DujAOwAt.js → swimlanes-5IMT3BWC-D8brzzxb.js} +313 -313
- package/dist/{swimlanesDiagram-G3AALYLV-B-5z3jDg.js → swimlanesDiagram-G3AALYLV-Bc9-lR2e.js} +2 -2
- package/dist/{swimlanesDiagram-G3AALYLV-Cklgsxbg.cjs → swimlanesDiagram-G3AALYLV-dvJpSdGV.cjs} +1 -1
- package/dist/{timeline-definition-FHXFAJF6-B2m-aQLI.cjs → timeline-definition-FHXFAJF6-BSqACati.cjs} +1 -1
- package/dist/{timeline-definition-FHXFAJF6-Fmzt_lvR.js → timeline-definition-FHXFAJF6-CKW3NJOF.js} +34 -34
- package/dist/utils/simple-logger.d.ts +1 -0
- package/dist/{vennDiagram-L72KCM5P-rL7UDYbl.cjs → vennDiagram-L72KCM5P-ChKxsFyJ.cjs} +1 -1
- package/dist/{vennDiagram-L72KCM5P-zIXK42Cx.js → vennDiagram-L72KCM5P-vPmq984y.js} +92 -92
- package/dist/{wardleyDiagram-EHGQE667-pTeeZ0uM.js → wardleyDiagram-EHGQE667-CwN9zwBX.js} +11 -11
- package/dist/{wardleyDiagram-EHGQE667-CNLieFen.cjs → wardleyDiagram-EHGQE667-CxzlR7km.cjs} +1 -1
- package/dist/{xychartDiagram-FW5EYKEG-B6UdSSVZ.js → xychartDiagram-FW5EYKEG-DBSKTLuc.js} +37 -37
- package/dist/{xychartDiagram-FW5EYKEG-CD5ik4HK.cjs → xychartDiagram-FW5EYKEG-wJqYRInm.cjs} +1 -1
- package/package.json +25 -9
- package/dist/arc-DH6k2JIR.js +0 -83
- package/dist/channel-DoH_tsOQ.js +0 -5
- package/dist/components/mdastNodes/BlockLinkNode.d.ts +0 -5
- package/dist/components/mdastNodes/RichLinkCard.d.ts +0 -8
- package/dist/components/mdastNodes/TwitterEmbedNode.d.ts +0 -25
- package/dist/components/mdastNodes/YouTubeEmbedNode.d.ts +0 -6
- package/dist/extractHeadings-lDHB2sBb.cjs +0 -310
- package/dist/flowDiagram-23GEKE2U-ORytlvmX.js +0 -7
- package/dist/flowDiagram-23GEKE2U-h2WZTCCn.cjs +0 -1
- package/dist/plugins/createIntentTweetLink.d.ts +0 -10
- package/dist/plugins/extractYouTubeVideoId.d.ts +0 -5
- package/dist/plugins/fetchSiteMetadata.d.ts +0 -9
- package/dist/plugins/remark-auto-heading-id.d.ts +0 -2
- package/dist/plugins/remark-block-link-metadata.d.ts +0 -23
- package/dist/plugins/remark-block-link.d.ts +0 -12
- package/dist/plugins/remark-twitter-embed.d.ts +0 -20
- package/dist/plugins/remark-youtube-embed.d.ts +0 -14
- package/dist/utils/getFaviconUrl.d.ts +0 -1
package/dist/{requirementDiagram-TGXJPOKE-D8Gz7jzA.js → requirementDiagram-TGXJPOKE-C1yJPMp1.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { g as ze } from "./chunk-XXDRQBXY-
|
|
2
|
-
import { s as Xe } from "./chunk-VR4S4FIN-
|
|
3
|
-
import { _ as f,
|
|
1
|
+
import { g as ze } from "./chunk-XXDRQBXY-Drnpl-KK.js";
|
|
2
|
+
import { s as Xe } from "./chunk-VR4S4FIN-BGGITgpQ.js";
|
|
3
|
+
import { _ as f, af as Be, G as Je, A as Ze, y as et, z as tt, a5 as st, a6 as it, J as Ne, O as qe, ab as rt, ae as nt, a2 as at, a3 as lt, a4 as ct } from "./extractHeadings-CtiYkq2z.js";
|
|
4
4
|
var Ce = (function() {
|
|
5
5
|
var e = /* @__PURE__ */ f(function($, i, l, o) {
|
|
6
6
|
for (l = l || {}, o = $.length; o--; l[$[o]] = i) ;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a5 as xt, a6 as _t, y as vt, z as bt, G as St, A as wt, _ as y, J as lt, ac as Lt, K as X, aA as Et, ab as At, Y as Tt } from "./extractHeadings-CtiYkq2z.js";
|
|
2
2
|
import { o as Mt } from "./ordinal-B6-f3MAq.js";
|
|
3
3
|
function Nt(t) {
|
|
4
4
|
for (var n = t.length / 6 | 0, s = new Array(n), a = 0; a < n; ) s[a] = "#" + t.slice(a * 6, ++a * 6);
|
|
@@ -56,30 +56,30 @@ function kt(t, n) {
|
|
|
56
56
|
function $t(t) {
|
|
57
57
|
return t.targetLinks.length ? t.depth : t.sourceLinks.length ? pt(t.sourceLinks, Pt) - 1 : 0;
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function q(t) {
|
|
60
60
|
return function() {
|
|
61
61
|
return t;
|
|
62
62
|
};
|
|
63
63
|
}
|
|
64
64
|
function ut(t, n) {
|
|
65
|
-
return
|
|
65
|
+
return K(t.source, n.source) || t.index - n.index;
|
|
66
66
|
}
|
|
67
67
|
function ht(t, n) {
|
|
68
|
-
return
|
|
68
|
+
return K(t.target, n.target) || t.index - n.index;
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function K(t, n) {
|
|
71
71
|
return t.y0 - n.y0;
|
|
72
72
|
}
|
|
73
73
|
function it(t) {
|
|
74
74
|
return t.value;
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function zt(t) {
|
|
77
77
|
return t.index;
|
|
78
78
|
}
|
|
79
79
|
function Dt(t) {
|
|
80
80
|
return t.nodes;
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function jt(t) {
|
|
83
83
|
return t.links;
|
|
84
84
|
}
|
|
85
85
|
function ft(t, n) {
|
|
@@ -97,7 +97,7 @@ function yt({ nodes: t }) {
|
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
function Bt() {
|
|
100
|
-
let t = 0, n = 0, s = 1, a = 1, u = 24, x = 8, g, k =
|
|
100
|
+
let t = 0, n = 0, s = 1, a = 1, u = 24, x = 8, g, k = zt, o = kt, l, h, m = Dt, _ = jt, d = 6;
|
|
101
101
|
function v() {
|
|
102
102
|
const i = { nodes: m.apply(null, arguments), links: _.apply(null, arguments) };
|
|
103
103
|
return T(i), A(i), M(i), I(i), S(i), yt(i), i;
|
|
@@ -105,9 +105,9 @@ function Bt() {
|
|
|
105
105
|
v.update = function(i) {
|
|
106
106
|
return yt(i), i;
|
|
107
107
|
}, v.nodeId = function(i) {
|
|
108
|
-
return arguments.length ? (k = typeof i == "function" ? i :
|
|
108
|
+
return arguments.length ? (k = typeof i == "function" ? i : q(i), v) : k;
|
|
109
109
|
}, v.nodeAlign = function(i) {
|
|
110
|
-
return arguments.length ? (o = typeof i == "function" ? i :
|
|
110
|
+
return arguments.length ? (o = typeof i == "function" ? i : q(i), v) : o;
|
|
111
111
|
}, v.nodeSort = function(i) {
|
|
112
112
|
return arguments.length ? (l = i, v) : l;
|
|
113
113
|
}, v.nodeWidth = function(i) {
|
|
@@ -115,9 +115,9 @@ function Bt() {
|
|
|
115
115
|
}, v.nodePadding = function(i) {
|
|
116
116
|
return arguments.length ? (x = g = +i, v) : x;
|
|
117
117
|
}, v.nodes = function(i) {
|
|
118
|
-
return arguments.length ? (m = typeof i == "function" ? i :
|
|
118
|
+
return arguments.length ? (m = typeof i == "function" ? i : q(i), v) : m;
|
|
119
119
|
}, v.links = function(i) {
|
|
120
|
-
return arguments.length ? (_ = typeof i == "function" ? i :
|
|
120
|
+
return arguments.length ? (_ = typeof i == "function" ? i : q(i), v) : _;
|
|
121
121
|
}, v.linkSort = function(i) {
|
|
122
122
|
return arguments.length ? (h = i, v) : h;
|
|
123
123
|
}, v.size = function(i) {
|
|
@@ -180,7 +180,7 @@ function Bt() {
|
|
|
180
180
|
r.sort(l);
|
|
181
181
|
return e;
|
|
182
182
|
}
|
|
183
|
-
function
|
|
183
|
+
function z(i) {
|
|
184
184
|
const f = pt(i, (c) => (a - n - (c.length - 1) * g) / nt(c, it));
|
|
185
185
|
for (const c of i) {
|
|
186
186
|
let e = n;
|
|
@@ -199,10 +199,10 @@ function Bt() {
|
|
|
199
199
|
}
|
|
200
200
|
function S(i) {
|
|
201
201
|
const f = N(i);
|
|
202
|
-
g = Math.min(x, (a - n) / (ct(f, (c) => c.length) - 1)),
|
|
202
|
+
g = Math.min(x, (a - n) / (ct(f, (c) => c.length) - 1)), z(f);
|
|
203
203
|
for (let c = 0; c < d; ++c) {
|
|
204
204
|
const e = Math.pow(0.99, c), r = Math.max(1 - e, (c + 1) / d);
|
|
205
|
-
|
|
205
|
+
R(f, e, r), C(f, e, r);
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
208
|
function C(i, f, c) {
|
|
@@ -210,38 +210,38 @@ function Bt() {
|
|
|
210
210
|
const p = i[e];
|
|
211
211
|
for (const b of p) {
|
|
212
212
|
let L = 0, B = 0;
|
|
213
|
-
for (const { source:
|
|
214
|
-
let
|
|
215
|
-
L += P(
|
|
213
|
+
for (const { source: Y, value: et } of b.targetLinks) {
|
|
214
|
+
let H = et * (b.layer - Y.layer);
|
|
215
|
+
L += P(Y, b) * H, B += H;
|
|
216
216
|
}
|
|
217
217
|
if (!(B > 0)) continue;
|
|
218
|
-
let
|
|
219
|
-
b.y0 +=
|
|
218
|
+
let U = (L / B - b.y0) * f;
|
|
219
|
+
b.y0 += U, b.y1 += U, j(b);
|
|
220
220
|
}
|
|
221
|
-
l === void 0 && p.sort(
|
|
221
|
+
l === void 0 && p.sort(K), D(p, c);
|
|
222
222
|
}
|
|
223
223
|
}
|
|
224
|
-
function
|
|
224
|
+
function R(i, f, c) {
|
|
225
225
|
for (let e = i.length, r = e - 2; r >= 0; --r) {
|
|
226
226
|
const p = i[r];
|
|
227
227
|
for (const b of p) {
|
|
228
228
|
let L = 0, B = 0;
|
|
229
|
-
for (const { target:
|
|
230
|
-
let
|
|
231
|
-
L += E(b,
|
|
229
|
+
for (const { target: Y, value: et } of b.sourceLinks) {
|
|
230
|
+
let H = et * (Y.layer - b.layer);
|
|
231
|
+
L += E(b, Y) * H, B += H;
|
|
232
232
|
}
|
|
233
233
|
if (!(B > 0)) continue;
|
|
234
|
-
let
|
|
235
|
-
b.y0 +=
|
|
234
|
+
let U = (L / B - b.y0) * f;
|
|
235
|
+
b.y0 += U, b.y1 += U, j(b);
|
|
236
236
|
}
|
|
237
|
-
l === void 0 && p.sort(
|
|
237
|
+
l === void 0 && p.sort(K), D(p, c);
|
|
238
238
|
}
|
|
239
239
|
}
|
|
240
240
|
function D(i, f) {
|
|
241
241
|
const c = i.length >> 1, e = i[c];
|
|
242
|
-
O(i, e.y0 - g, c - 1, f),
|
|
242
|
+
O(i, e.y0 - g, c - 1, f), V(i, e.y1 + g, c + 1, f), O(i, a, i.length - 1, f), V(i, n, 0, f);
|
|
243
243
|
}
|
|
244
|
-
function
|
|
244
|
+
function V(i, f, c, e) {
|
|
245
245
|
for (; c < i.length; ++c) {
|
|
246
246
|
const r = i[c], p = (f - r.y0) * e;
|
|
247
247
|
p > 1e-6 && (r.y0 += p, r.y1 += p), f = r.y1 + g;
|
|
@@ -253,7 +253,7 @@ function Bt() {
|
|
|
253
253
|
p > 1e-6 && (r.y0 -= p, r.y1 -= p), f = r.y0 - g;
|
|
254
254
|
}
|
|
255
255
|
}
|
|
256
|
-
function
|
|
256
|
+
function j({ sourceLinks: i, targetLinks: f }) {
|
|
257
257
|
if (h === void 0) {
|
|
258
258
|
for (const { source: { sourceLinks: c } } of f)
|
|
259
259
|
c.sort(ht);
|
|
@@ -326,8 +326,8 @@ ot.prototype = mt.prototype = {
|
|
|
326
326
|
else if (m > F) if (!(Math.abs(h * k - o * l) > F) || !u)
|
|
327
327
|
this._ += "L" + (this._x1 = t) + "," + (this._y1 = n);
|
|
328
328
|
else {
|
|
329
|
-
var _ = s - x, d = a - g, v = k * k + o * o, T = _ * _ + d * d, A = Math.sqrt(v), M = Math.sqrt(m), I = u * Math.tan((rt - Math.acos((v + m - T) / (2 * A * M))) / 2), N = I / M,
|
|
330
|
-
Math.abs(N - 1) > F && (this._ += "L" + (t + N * l) + "," + (n + N * h)), this._ += "A" + u + "," + u + ",0,0," + +(h * _ > l * d) + "," + (this._x1 = t +
|
|
329
|
+
var _ = s - x, d = a - g, v = k * k + o * o, T = _ * _ + d * d, A = Math.sqrt(v), M = Math.sqrt(m), I = u * Math.tan((rt - Math.acos((v + m - T) / (2 * A * M))) / 2), N = I / M, z = I / A;
|
|
330
|
+
Math.abs(N - 1) > F && (this._ += "L" + (t + N * l) + "," + (n + N * h)), this._ += "A" + u + "," + u + ",0,0," + +(h * _ > l * d) + "," + (this._x1 = t + z * k) + "," + (this._y1 = n + z * o);
|
|
331
331
|
}
|
|
332
332
|
},
|
|
333
333
|
arc: function(t, n, s, a, u, x) {
|
|
@@ -348,21 +348,21 @@ function dt(t) {
|
|
|
348
348
|
return t;
|
|
349
349
|
};
|
|
350
350
|
}
|
|
351
|
-
function
|
|
351
|
+
function Rt(t) {
|
|
352
352
|
return t[0];
|
|
353
353
|
}
|
|
354
|
-
function
|
|
354
|
+
function Vt(t) {
|
|
355
355
|
return t[1];
|
|
356
356
|
}
|
|
357
357
|
var Wt = Array.prototype.slice;
|
|
358
|
-
function
|
|
358
|
+
function Gt(t) {
|
|
359
359
|
return t.source;
|
|
360
360
|
}
|
|
361
|
-
function
|
|
361
|
+
function Ut(t) {
|
|
362
362
|
return t.target;
|
|
363
363
|
}
|
|
364
|
-
function
|
|
365
|
-
var n =
|
|
364
|
+
function Yt(t) {
|
|
365
|
+
var n = Gt, s = Ut, a = Rt, u = Vt, x = null;
|
|
366
366
|
function g() {
|
|
367
367
|
var k, o = Wt.call(arguments), l = n.apply(this, o), h = s.apply(this, o);
|
|
368
368
|
if (x || (x = k = mt()), t(x, +a.apply(this, (o[0] = l, o)), +u.apply(this, o), +a.apply(this, (o[0] = h, o)), +u.apply(this, o)), k) return x = null, k + "" || null;
|
|
@@ -379,20 +379,20 @@ function Xt(t) {
|
|
|
379
379
|
return arguments.length ? (x = k ?? null, g) : x;
|
|
380
380
|
}, g;
|
|
381
381
|
}
|
|
382
|
-
function
|
|
382
|
+
function Ht(t, n, s, a, u) {
|
|
383
383
|
t.moveTo(n, s), t.bezierCurveTo(n = (n + a) / 2, s, n, u, a, u);
|
|
384
384
|
}
|
|
385
|
-
function
|
|
386
|
-
return
|
|
385
|
+
function Xt() {
|
|
386
|
+
return Yt(Ht);
|
|
387
387
|
}
|
|
388
|
-
function
|
|
388
|
+
function qt(t) {
|
|
389
389
|
return [t.source.x1, t.y0];
|
|
390
390
|
}
|
|
391
|
-
function
|
|
391
|
+
function Kt(t) {
|
|
392
392
|
return [t.target.x0, t.y1];
|
|
393
393
|
}
|
|
394
|
-
function
|
|
395
|
-
return
|
|
394
|
+
function Qt() {
|
|
395
|
+
return Xt().source(qt).target(Kt);
|
|
396
396
|
}
|
|
397
397
|
var at = (function() {
|
|
398
398
|
var t = /* @__PURE__ */ y(function(k, o, l, h) {
|
|
@@ -433,25 +433,25 @@ var at = (function() {
|
|
|
433
433
|
}
|
|
434
434
|
}, "parseError"),
|
|
435
435
|
parse: /* @__PURE__ */ y(function(o) {
|
|
436
|
-
var l = this, h = [0], m = [], _ = [null], d = [], v = this.table, T = "", A = 0, M = 0, I = 2, N = 1,
|
|
437
|
-
for (var
|
|
438
|
-
Object.prototype.hasOwnProperty.call(this.yy,
|
|
436
|
+
var l = this, h = [0], m = [], _ = [null], d = [], v = this.table, T = "", A = 0, M = 0, I = 2, N = 1, z = d.slice.call(arguments, 1), S = Object.create(this.lexer), C = { yy: {} };
|
|
437
|
+
for (var R in this.yy)
|
|
438
|
+
Object.prototype.hasOwnProperty.call(this.yy, R) && (C.yy[R] = this.yy[R]);
|
|
439
439
|
S.setInput(o, C.yy), C.yy.lexer = S, C.yy.parser = this, typeof S.yylloc > "u" && (S.yylloc = {});
|
|
440
440
|
var D = S.yylloc;
|
|
441
441
|
d.push(D);
|
|
442
|
-
var
|
|
442
|
+
var V = S.options && S.options.ranges;
|
|
443
443
|
typeof C.yy.parseError == "function" ? this.parseError = C.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
444
444
|
function O(L) {
|
|
445
445
|
h.length = h.length - 2 * L, _.length = _.length - L, d.length = d.length - L;
|
|
446
446
|
}
|
|
447
447
|
y(O, "popStack");
|
|
448
|
-
function
|
|
448
|
+
function j() {
|
|
449
449
|
var L;
|
|
450
450
|
return L = m.pop() || S.lex() || N, typeof L != "number" && (L instanceof Array && (m = L, L = m.pop()), L = l.symbols_[L] || L), L;
|
|
451
451
|
}
|
|
452
|
-
y(
|
|
452
|
+
y(j, "lex");
|
|
453
453
|
for (var w, P, E, i, f = {}, c, e, r, p; ; ) {
|
|
454
|
-
if (P = h[h.length - 1], this.defaultActions[P] ? E = this.defaultActions[P] : ((w === null || typeof w > "u") && (w =
|
|
454
|
+
if (P = h[h.length - 1], this.defaultActions[P] ? E = this.defaultActions[P] : ((w === null || typeof w > "u") && (w = j()), E = v[P] && v[P][w]), typeof E > "u" || !E.length || !E[0]) {
|
|
455
455
|
var b = "";
|
|
456
456
|
p = [];
|
|
457
457
|
for (c in v[P])
|
|
@@ -478,7 +478,7 @@ Expecting ` + p.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" : b = "
|
|
|
478
478
|
last_line: d[d.length - 1].last_line,
|
|
479
479
|
first_column: d[d.length - (e || 1)].first_column,
|
|
480
480
|
last_column: d[d.length - 1].last_column
|
|
481
|
-
},
|
|
481
|
+
}, V && (f._$.range = [
|
|
482
482
|
d[d.length - (e || 1)].range[0],
|
|
483
483
|
d[d.length - 1].range[1]
|
|
484
484
|
]), i = this.performAction.apply(f, [
|
|
@@ -489,7 +489,7 @@ Expecting ` + p.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" : b = "
|
|
|
489
489
|
E[1],
|
|
490
490
|
_,
|
|
491
491
|
d
|
|
492
|
-
].concat(
|
|
492
|
+
].concat(z)), typeof i < "u")
|
|
493
493
|
return i;
|
|
494
494
|
e && (h = h.slice(0, -1 * e * 2), _ = _.slice(0, -1 * e), d = d.slice(0, -1 * e)), h.push(this.productions_[E[1]][0]), _.push(f.$), d.push(f._$), r = v[h[h.length - 2]][h[h.length - 1]], h.push(r);
|
|
495
495
|
break;
|
|
@@ -703,7 +703,7 @@ Expecting ` + p.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" : b = "
|
|
|
703
703
|
return y(g, "Parser"), g.prototype = u, u.Parser = g, new g();
|
|
704
704
|
})();
|
|
705
705
|
at.parser = at;
|
|
706
|
-
var
|
|
706
|
+
var Q = at, J = [], tt = [], Z = /* @__PURE__ */ new Map(), Zt = /* @__PURE__ */ y(() => {
|
|
707
707
|
J = [], tt = [], Z = /* @__PURE__ */ new Map(), At();
|
|
708
708
|
}, "clear"), W, Jt = (W = class {
|
|
709
709
|
constructor(n, s, a = 0) {
|
|
@@ -711,11 +711,11 @@ var K = at, J = [], tt = [], Z = /* @__PURE__ */ new Map(), Zt = /* @__PURE__ */
|
|
|
711
711
|
}
|
|
712
712
|
}, y(W, "SankeyLink"), W), te = /* @__PURE__ */ y((t, n, s) => {
|
|
713
713
|
J.push(new Jt(t, n, s));
|
|
714
|
-
}, "addLink"),
|
|
714
|
+
}, "addLink"), G, ee = (G = class {
|
|
715
715
|
constructor(n) {
|
|
716
716
|
this.ID = n;
|
|
717
717
|
}
|
|
718
|
-
}, y(
|
|
718
|
+
}, y(G, "SankeyNode"), G), ne = /* @__PURE__ */ y((t) => {
|
|
719
719
|
t = Tt.sanitizeText(t, lt());
|
|
720
720
|
let n = Z.get(t);
|
|
721
721
|
return n === void 0 && (n = new ee(t), Z.set(t, n), tt.push(n)), n;
|
|
@@ -766,18 +766,18 @@ var K = at, J = [], tt = [], Z = /* @__PURE__ */ new Map(), Zt = /* @__PURE__ */
|
|
|
766
766
|
}, "findCentralNodeLayer"), ce = /* @__PURE__ */ y(function(t, n, s, a) {
|
|
767
767
|
const { securityLevel: u, sankey: x } = lt(), g = Lt.sankey;
|
|
768
768
|
let k;
|
|
769
|
-
u === "sandbox" && (k =
|
|
770
|
-
const o = u === "sandbox" ?
|
|
769
|
+
u === "sandbox" && (k = X("#i" + n));
|
|
770
|
+
const o = u === "sandbox" ? X(k.nodes()[0].contentDocument.body) : X("body"), l = u === "sandbox" ? o.select(`[id="${n}"]`) : X(`[id="${n}"]`), h = x?.width ?? g.width, m = x?.height ?? g.width, _ = x?.useMaxWidth ?? g.useMaxWidth, d = x?.nodeAlignment ?? g.nodeAlignment, v = x?.prefix ?? g.prefix, T = x?.suffix ?? g.suffix, A = x?.showValues ?? g.showValues, M = x?.nodeWidth ?? g.nodeWidth ?? 10, I = x?.nodePadding ?? g.nodePadding ?? 12, N = x?.labelStyle ?? g.labelStyle ?? "legacy", z = x?.nodeColors ?? {}, S = a.db.getGraph(), C = ae[d];
|
|
771
771
|
Bt().nodeId((e) => e.id).nodeWidth(M).nodePadding(I + (A ? 15 : 0)).nodeAlign(C).extent([
|
|
772
772
|
[0, 0],
|
|
773
773
|
[h, m]
|
|
774
774
|
])(S);
|
|
775
|
-
const D = le(S.nodes),
|
|
775
|
+
const D = le(S.nodes), V = Mt(Ct), O = /* @__PURE__ */ y((e) => z[e] ?? V(e), "getNodeColor");
|
|
776
776
|
l.append("g").attr("class", "nodes").selectAll(".node").data(S.nodes).join("g").attr("class", "node").attr("id", (e) => (e.uid = gt.next("node-")).id).attr("transform", function(e) {
|
|
777
777
|
return "translate(" + e.x0 + "," + e.y0 + ")";
|
|
778
778
|
}).attr("x", (e) => e.x0).attr("y", (e) => e.y0).append("rect").attr("height", (e) => e.y1 - e.y0).attr("width", (e) => e.x1 - e.x0).attr("fill", (e) => O(e.id));
|
|
779
|
-
const
|
|
780
|
-
${v}${Math.round(r * 100) / 100}${T}` : e, "getText"), w = /* @__PURE__ */ y((e) => N === "outlined" ? (e.layer ?? 0) < D ? { x: e.x0 - 6, anchor: "end" } : { x: e.x1 + 6, anchor: "start" } : e.x0 < h / 2 ? { x: e.x1 + 6, anchor: "start" } : { x: e.x0 - 6, anchor: "end" }, "getLabelPosition"), P = l.append("g").attr("class", "node-labels").attr("font-size", 14), E = /* @__PURE__ */ y((e) => P.selectAll(e ? `.${e}` : "text").data(S.nodes).join("text").attr("class", e ?? null).attr("x", (r) => w(r).x).attr("y", (r) => (r.y1 + r.y0) / 2).attr("dy", `${A ? "0" : "0.35"}em`).attr("text-anchor", (r) => w(r).anchor).text(
|
|
779
|
+
const j = /* @__PURE__ */ y(({ id: e, value: r }) => A ? `${e}
|
|
780
|
+
${v}${Math.round(r * 100) / 100}${T}` : e, "getText"), w = /* @__PURE__ */ y((e) => N === "outlined" ? (e.layer ?? 0) < D ? { x: e.x0 - 6, anchor: "end" } : { x: e.x1 + 6, anchor: "start" } : e.x0 < h / 2 ? { x: e.x1 + 6, anchor: "start" } : { x: e.x0 - 6, anchor: "end" }, "getLabelPosition"), P = l.append("g").attr("class", "node-labels").attr("font-size", 14), E = /* @__PURE__ */ y((e) => P.selectAll(e ? `.${e}` : "text").data(S.nodes).join("text").attr("class", e ?? null).attr("x", (r) => w(r).x).attr("y", (r) => (r.y1 + r.y0) / 2).attr("dy", `${A ? "0" : "0.35"}em`).attr("text-anchor", (r) => w(r).anchor).text(j), "appendLabel");
|
|
781
781
|
N === "outlined" ? (E("sankey-label-bg"), E("sankey-label-fg")) : E();
|
|
782
782
|
const i = l.append("g").attr("class", "links").attr("fill", "none").attr("stroke-opacity", 0.5).selectAll(".link").data(S.links).join("g").attr("class", "link").style("mix-blend-mode", "multiply"), f = x?.linkColor ?? "gradient";
|
|
783
783
|
if (f === "gradient") {
|
|
@@ -798,7 +798,7 @@ ${v}${Math.round(r * 100) / 100}${T}` : e, "getText"), w = /* @__PURE__ */ y((e)
|
|
|
798
798
|
default:
|
|
799
799
|
c = f;
|
|
800
800
|
}
|
|
801
|
-
i.append("path").attr("d",
|
|
801
|
+
i.append("path").attr("d", Qt()).attr("stroke", c).attr("stroke-width", (e) => Math.max(1, e.width)), Et(void 0, l, 0, _);
|
|
802
802
|
}, "draw"), ue = {
|
|
803
803
|
draw: ce
|
|
804
804
|
}, he = /* @__PURE__ */ y((t) => t.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g, "").replaceAll(/([\n\r])+/g, `
|
|
@@ -834,11 +834,11 @@ ${v}${Math.round(r * 100) / 100}${T}` : e, "getText"), w = /* @__PURE__ */ y((e)
|
|
|
834
834
|
stroke-opacity: 0.5;
|
|
835
835
|
mix-blend-mode: multiply;
|
|
836
836
|
}
|
|
837
|
-
`, "getStyles"), ye = fe, de =
|
|
838
|
-
|
|
837
|
+
`, "getStyles"), ye = fe, de = Q.parse.bind(Q);
|
|
838
|
+
Q.parse = (t) => de(he(t));
|
|
839
839
|
var ke = {
|
|
840
840
|
styles: ye,
|
|
841
|
-
parser:
|
|
841
|
+
parser: Q,
|
|
842
842
|
db: oe,
|
|
843
843
|
renderer: ue
|
|
844
844
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./extractHeadings-lDHB2sBb.cjs"),_t=require("./ordinal-CagbB1m8.cjs");function mt(t){for(var n=t.length/6|0,s=new Array(n),a=0;a<n;)s[a]="#"+t.slice(a*6,++a*6);return s}const kt=mt("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function at(t,n){let s;if(n===void 0)for(const a of t)a!=null&&(s<a||s===void 0&&a>=a)&&(s=a);else{let a=-1;for(let h of t)(h=n(h,++a,t))!=null&&(s<h||s===void 0&&h>=h)&&(s=h)}return s}function dt(t,n){let s;if(n===void 0)for(const a of t)a!=null&&(s>a||s===void 0&&a>=a)&&(s=a);else{let a=-1;for(let h of t)(h=n(h,++a,t))!=null&&(s>h||s===void 0&&h>=h)&&(s=h)}return s}function et(t,n){let s=0;if(n===void 0)for(let a of t)(a=+a)&&(s+=a);else{let a=-1;for(let h of t)(h=+n(h,++a,t))&&(s+=h)}return s}function xt(t){return t.target.depth}function vt(t){return t.depth}function bt(t,n){return n-1-t.height}function gt(t,n){return t.sourceLinks.length?t.depth:n-1}function St(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?dt(t.sourceLinks,xt)-1:0}function Y(t){return function(){return t}}function lt(t,n){return X(t.source,n.source)||t.index-n.index}function ct(t,n){return X(t.target,n.target)||t.index-n.index}function X(t,n){return t.y0-n.y0}function nt(t){return t.value}function wt(t){return t.index}function Lt(t){return t.nodes}function Et(t){return t.links}function ut(t,n){const s=t.get(n);if(!s)throw new Error("missing: "+n);return s}function ht({nodes:t}){for(const n of t){let s=n.y0,a=s;for(const h of n.sourceLinks)h.y0=s+h.width/2,s+=h.width;for(const h of n.targetLinks)h.y1=a+h.width/2,a+=h.width}}function At(){let t=0,n=0,s=1,a=1,h=24,k=8,g,_=wt,o=gt,l,f,m=Lt,x=Et,d=6;function v(){const i={nodes:m.apply(null,arguments),links:x.apply(null,arguments)};return T(i),A(i),M(i),I(i),S(i),ht(i),i}v.update=function(i){return ht(i),i},v.nodeId=function(i){return arguments.length?(_=typeof i=="function"?i:Y(i),v):_},v.nodeAlign=function(i){return arguments.length?(o=typeof i=="function"?i:Y(i),v):o},v.nodeSort=function(i){return arguments.length?(l=i,v):l},v.nodeWidth=function(i){return arguments.length?(h=+i,v):h},v.nodePadding=function(i){return arguments.length?(k=g=+i,v):k},v.nodes=function(i){return arguments.length?(m=typeof i=="function"?i:Y(i),v):m},v.links=function(i){return arguments.length?(x=typeof i=="function"?i:Y(i),v):x},v.linkSort=function(i){return arguments.length?(f=i,v):f},v.size=function(i){return arguments.length?(t=n=0,s=+i[0],a=+i[1],v):[s-t,a-n]},v.extent=function(i){return arguments.length?(t=+i[0][0],s=+i[1][0],n=+i[0][1],a=+i[1][1],v):[[t,n],[s,a]]},v.iterations=function(i){return arguments.length?(d=+i,v):d};function T({nodes:i,links:y}){for(const[e,r]of i.entries())r.index=e,r.sourceLinks=[],r.targetLinks=[];const c=new Map(i.map((e,r)=>[_(e,r,i),e]));for(const[e,r]of y.entries()){r.index=e;let{source:p,target:b}=r;typeof p!="object"&&(p=r.source=ut(c,p)),typeof b!="object"&&(b=r.target=ut(c,b)),p.sourceLinks.push(r),b.targetLinks.push(r)}if(f!=null)for(const{sourceLinks:e,targetLinks:r}of i)e.sort(f),r.sort(f)}function A({nodes:i}){for(const y of i)y.value=y.fixedValue===void 0?Math.max(et(y.sourceLinks,nt),et(y.targetLinks,nt)):y.fixedValue}function M({nodes:i}){const y=i.length;let c=new Set(i),e=new Set,r=0;for(;c.size;){for(const p of c){p.depth=r;for(const{target:b}of p.sourceLinks)e.add(b)}if(++r>y)throw new Error("circular link");c=e,e=new Set}}function I({nodes:i}){const y=i.length;let c=new Set(i),e=new Set,r=0;for(;c.size;){for(const p of c){p.height=r;for(const{source:b}of p.targetLinks)e.add(b)}if(++r>y)throw new Error("circular link");c=e,e=new Set}}function C({nodes:i}){const y=at(i,r=>r.depth)+1,c=(s-t-h)/(y-1),e=new Array(y);for(const r of i){const p=Math.max(0,Math.min(y-1,Math.floor(o.call(null,r,y))));r.layer=p,r.x0=t+p*c,r.x1=r.x0+h,e[p]?e[p].push(r):e[p]=[r]}if(l)for(const r of e)r.sort(l);return e}function $(i){const y=dt(i,c=>(a-n-(c.length-1)*g)/et(c,nt));for(const c of i){let e=n;for(const r of c){r.y0=e,r.y1=e+r.value*y,e=r.y1+g;for(const p of r.sourceLinks)p.width=p.value*y}e=(a-e+g)/(c.length+1);for(let r=0;r<c.length;++r){const p=c[r];p.y0+=e*(r+1),p.y1+=e*(r+1)}w(c)}}function S(i){const y=C(i);g=Math.min(k,(a-n)/(at(y,c=>c.length)-1)),$(y);for(let c=0;c<d;++c){const e=Math.pow(.99,c),r=Math.max(1-e,(c+1)/d);R(y,e,r),N(y,e,r)}}function N(i,y,c){for(let e=1,r=i.length;e<r;++e){const p=i[e];for(const b of p){let L=0,B=0;for(const{source:q,value:tt}of b.targetLinks){let H=tt*(b.layer-q.layer);L+=P(q,b)*H,B+=H}if(!(B>0))continue;let U=(L/B-b.y0)*y;b.y0+=U,b.y1+=U,z(b)}l===void 0&&p.sort(X),j(p,c)}}function R(i,y,c){for(let e=i.length,r=e-2;r>=0;--r){const p=i[r];for(const b of p){let L=0,B=0;for(const{target:q,value:tt}of b.sourceLinks){let H=tt*(q.layer-b.layer);L+=E(b,q)*H,B+=H}if(!(B>0))continue;let U=(L/B-b.y0)*y;b.y0+=U,b.y1+=U,z(b)}l===void 0&&p.sort(X),j(p,c)}}function j(i,y){const c=i.length>>1,e=i[c];O(i,e.y0-g,c-1,y),V(i,e.y1+g,c+1,y),O(i,a,i.length-1,y),V(i,n,0,y)}function V(i,y,c,e){for(;c<i.length;++c){const r=i[c],p=(y-r.y0)*e;p>1e-6&&(r.y0+=p,r.y1+=p),y=r.y1+g}}function O(i,y,c,e){for(;c>=0;--c){const r=i[c],p=(r.y1-y)*e;p>1e-6&&(r.y0-=p,r.y1-=p),y=r.y0-g}}function z({sourceLinks:i,targetLinks:y}){if(f===void 0){for(const{source:{sourceLinks:c}}of y)c.sort(ct);for(const{target:{targetLinks:c}}of i)c.sort(lt)}}function w(i){if(f===void 0)for(const{sourceLinks:y,targetLinks:c}of i)y.sort(ct),c.sort(lt)}function P(i,y){let c=i.y0-(i.sourceLinks.length-1)*g/2;for(const{target:e,width:r}of i.sourceLinks){if(e===y)break;c+=r+g}for(const{source:e,width:r}of y.targetLinks){if(e===i)break;c-=r}return c}function E(i,y){let c=y.y0-(y.targetLinks.length-1)*g/2;for(const{source:e,width:r}of y.targetLinks){if(e===i)break;c+=r+g}for(const{target:e,width:r}of i.sourceLinks){if(e===y)break;c-=r}return c}return v}var it=Math.PI,rt=2*it,F=1e-6,Tt=rt-F;function st(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function pt(){return new st}st.prototype=pt.prototype={constructor:st,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,s,a){this._+="Q"+ +t+","+ +n+","+(this._x1=+s)+","+(this._y1=+a)},bezierCurveTo:function(t,n,s,a,h,k){this._+="C"+ +t+","+ +n+","+ +s+","+ +a+","+(this._x1=+h)+","+(this._y1=+k)},arcTo:function(t,n,s,a,h){t=+t,n=+n,s=+s,a=+a,h=+h;var k=this._x1,g=this._y1,_=s-t,o=a-n,l=k-t,f=g-n,m=l*l+f*f;if(h<0)throw new Error("negative radius: "+h);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(m>F)if(!(Math.abs(f*_-o*l)>F)||!h)this._+="L"+(this._x1=t)+","+(this._y1=n);else{var x=s-k,d=a-g,v=_*_+o*o,T=x*x+d*d,A=Math.sqrt(v),M=Math.sqrt(m),I=h*Math.tan((it-Math.acos((v+m-T)/(2*A*M)))/2),C=I/M,$=I/A;Math.abs(C-1)>F&&(this._+="L"+(t+C*l)+","+(n+C*f)),this._+="A"+h+","+h+",0,0,"+ +(f*x>l*d)+","+(this._x1=t+$*_)+","+(this._y1=n+$*o)}},arc:function(t,n,s,a,h,k){t=+t,n=+n,s=+s,k=!!k;var g=s*Math.cos(a),_=s*Math.sin(a),o=t+g,l=n+_,f=1^k,m=k?a-h:h-a;if(s<0)throw new Error("negative radius: "+s);this._x1===null?this._+="M"+o+","+l:(Math.abs(this._x1-o)>F||Math.abs(this._y1-l)>F)&&(this._+="L"+o+","+l),s&&(m<0&&(m=m%rt+rt),m>Tt?this._+="A"+s+","+s+",0,1,"+f+","+(t-g)+","+(n-_)+"A"+s+","+s+",0,1,"+f+","+(this._x1=o)+","+(this._y1=l):m>F&&(this._+="A"+s+","+s+",0,"+ +(m>=it)+","+f+","+(this._x1=t+s*Math.cos(h))+","+(this._y1=n+s*Math.sin(h))))},rect:function(t,n,s,a){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +s+"v"+ +a+"h"+-s+"Z"},toString:function(){return this._}};function ft(t){return function(){return t}}function Mt(t){return t[0]}function Ct(t){return t[1]}var Nt=Array.prototype.slice;function Pt(t){return t.source}function It(t){return t.target}function Ot(t){var n=Pt,s=It,a=Mt,h=Ct,k=null;function g(){var _,o=Nt.call(arguments),l=n.apply(this,o),f=s.apply(this,o);if(k||(k=_=pt()),t(k,+a.apply(this,(o[0]=l,o)),+h.apply(this,o),+a.apply(this,(o[0]=f,o)),+h.apply(this,o)),_)return k=null,_+""||null}return g.source=function(_){return arguments.length?(n=_,g):n},g.target=function(_){return arguments.length?(s=_,g):s},g.x=function(_){return arguments.length?(a=typeof _=="function"?_:ft(+_),g):a},g.y=function(_){return arguments.length?(h=typeof _=="function"?_:ft(+_),g):h},g.context=function(_){return arguments.length?(k=_??null,g):k},g}function Dt(t,n,s,a,h){t.moveTo(n,s),t.bezierCurveTo(n=(n+a)/2,s,n,h,a,h)}function $t(){return Ot(Dt)}function jt(t){return[t.source.x1,t.y0]}function zt(t){return[t.target.x0,t.y1]}function Bt(){return $t().source(jt).target(zt)}var ot=(function(){var t=u.__name(function(_,o,l,f){for(l=l||{},f=_.length;f--;l[_[f]]=o);return l},"o"),n=[1,9],s=[1,10],a=[1,5,10,12],h={trace:u.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:u.__name(function(o,l,f,m,x,d,v){var T=d.length-1;switch(x){case 7:const A=m.findOrCreateNode(d[T-4].trim().replaceAll('""','"')),M=m.findOrCreateNode(d[T-2].trim().replaceAll('""','"')),I=parseFloat(d[T].trim());m.addLink(A,M,I);break;case 8:case 9:case 11:this.$=d[T];break;case 10:this.$=d[T-1];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:n,20:s},{1:[2,6],7:11,10:[1,12]},t(s,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(a,[2,8]),t(a,[2,9]),{19:[1,16]},t(a,[2,11]),{1:[2,1]},{1:[2,5]},t(s,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:n,20:s},{15:18,16:7,17:8,18:n,20:s},{18:[1,19]},t(s,[2,3]),{12:[1,20]},t(a,[2,10]),{15:21,16:7,17:8,18:n,20:s},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:u.__name(function(o,l){if(l.recoverable)this.trace(o);else{var f=new Error(o);throw f.hash=l,f}},"parseError"),parse:u.__name(function(o){var l=this,f=[0],m=[],x=[null],d=[],v=this.table,T="",A=0,M=0,I=2,C=1,$=d.slice.call(arguments,1),S=Object.create(this.lexer),N={yy:{}};for(var R in this.yy)Object.prototype.hasOwnProperty.call(this.yy,R)&&(N.yy[R]=this.yy[R]);S.setInput(o,N.yy),N.yy.lexer=S,N.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var j=S.yylloc;d.push(j);var V=S.options&&S.options.ranges;typeof N.yy.parseError=="function"?this.parseError=N.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function O(L){f.length=f.length-2*L,x.length=x.length-L,d.length=d.length-L}u.__name(O,"popStack");function z(){var L;return L=m.pop()||S.lex()||C,typeof L!="number"&&(L instanceof Array&&(m=L,L=m.pop()),L=l.symbols_[L]||L),L}u.__name(z,"lex");for(var w,P,E,i,y={},c,e,r,p;;){if(P=f[f.length-1],this.defaultActions[P]?E=this.defaultActions[P]:((w===null||typeof w>"u")&&(w=z()),E=v[P]&&v[P][w]),typeof E>"u"||!E.length||!E[0]){var b="";p=[];for(c in v[P])this.terminals_[c]&&c>I&&p.push("'"+this.terminals_[c]+"'");S.showPosition?b="Parse error on line "+(A+1)+`:
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./extractHeadings-D1A8WzVy.cjs"),_t=require("./ordinal-CagbB1m8.cjs");function mt(t){for(var n=t.length/6|0,s=new Array(n),a=0;a<n;)s[a]="#"+t.slice(a*6,++a*6);return s}const kt=mt("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function at(t,n){let s;if(n===void 0)for(const a of t)a!=null&&(s<a||s===void 0&&a>=a)&&(s=a);else{let a=-1;for(let h of t)(h=n(h,++a,t))!=null&&(s<h||s===void 0&&h>=h)&&(s=h)}return s}function dt(t,n){let s;if(n===void 0)for(const a of t)a!=null&&(s>a||s===void 0&&a>=a)&&(s=a);else{let a=-1;for(let h of t)(h=n(h,++a,t))!=null&&(s>h||s===void 0&&h>=h)&&(s=h)}return s}function et(t,n){let s=0;if(n===void 0)for(let a of t)(a=+a)&&(s+=a);else{let a=-1;for(let h of t)(h=+n(h,++a,t))&&(s+=h)}return s}function xt(t){return t.target.depth}function vt(t){return t.depth}function bt(t,n){return n-1-t.height}function gt(t,n){return t.sourceLinks.length?t.depth:n-1}function St(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?dt(t.sourceLinks,xt)-1:0}function Y(t){return function(){return t}}function lt(t,n){return X(t.source,n.source)||t.index-n.index}function ct(t,n){return X(t.target,n.target)||t.index-n.index}function X(t,n){return t.y0-n.y0}function nt(t){return t.value}function wt(t){return t.index}function Lt(t){return t.nodes}function Et(t){return t.links}function ut(t,n){const s=t.get(n);if(!s)throw new Error("missing: "+n);return s}function ht({nodes:t}){for(const n of t){let s=n.y0,a=s;for(const h of n.sourceLinks)h.y0=s+h.width/2,s+=h.width;for(const h of n.targetLinks)h.y1=a+h.width/2,a+=h.width}}function At(){let t=0,n=0,s=1,a=1,h=24,k=8,g,_=wt,o=gt,l,f,m=Lt,x=Et,d=6;function v(){const i={nodes:m.apply(null,arguments),links:x.apply(null,arguments)};return T(i),A(i),M(i),I(i),S(i),ht(i),i}v.update=function(i){return ht(i),i},v.nodeId=function(i){return arguments.length?(_=typeof i=="function"?i:Y(i),v):_},v.nodeAlign=function(i){return arguments.length?(o=typeof i=="function"?i:Y(i),v):o},v.nodeSort=function(i){return arguments.length?(l=i,v):l},v.nodeWidth=function(i){return arguments.length?(h=+i,v):h},v.nodePadding=function(i){return arguments.length?(k=g=+i,v):k},v.nodes=function(i){return arguments.length?(m=typeof i=="function"?i:Y(i),v):m},v.links=function(i){return arguments.length?(x=typeof i=="function"?i:Y(i),v):x},v.linkSort=function(i){return arguments.length?(f=i,v):f},v.size=function(i){return arguments.length?(t=n=0,s=+i[0],a=+i[1],v):[s-t,a-n]},v.extent=function(i){return arguments.length?(t=+i[0][0],s=+i[1][0],n=+i[0][1],a=+i[1][1],v):[[t,n],[s,a]]},v.iterations=function(i){return arguments.length?(d=+i,v):d};function T({nodes:i,links:y}){for(const[e,r]of i.entries())r.index=e,r.sourceLinks=[],r.targetLinks=[];const c=new Map(i.map((e,r)=>[_(e,r,i),e]));for(const[e,r]of y.entries()){r.index=e;let{source:p,target:b}=r;typeof p!="object"&&(p=r.source=ut(c,p)),typeof b!="object"&&(b=r.target=ut(c,b)),p.sourceLinks.push(r),b.targetLinks.push(r)}if(f!=null)for(const{sourceLinks:e,targetLinks:r}of i)e.sort(f),r.sort(f)}function A({nodes:i}){for(const y of i)y.value=y.fixedValue===void 0?Math.max(et(y.sourceLinks,nt),et(y.targetLinks,nt)):y.fixedValue}function M({nodes:i}){const y=i.length;let c=new Set(i),e=new Set,r=0;for(;c.size;){for(const p of c){p.depth=r;for(const{target:b}of p.sourceLinks)e.add(b)}if(++r>y)throw new Error("circular link");c=e,e=new Set}}function I({nodes:i}){const y=i.length;let c=new Set(i),e=new Set,r=0;for(;c.size;){for(const p of c){p.height=r;for(const{source:b}of p.targetLinks)e.add(b)}if(++r>y)throw new Error("circular link");c=e,e=new Set}}function C({nodes:i}){const y=at(i,r=>r.depth)+1,c=(s-t-h)/(y-1),e=new Array(y);for(const r of i){const p=Math.max(0,Math.min(y-1,Math.floor(o.call(null,r,y))));r.layer=p,r.x0=t+p*c,r.x1=r.x0+h,e[p]?e[p].push(r):e[p]=[r]}if(l)for(const r of e)r.sort(l);return e}function $(i){const y=dt(i,c=>(a-n-(c.length-1)*g)/et(c,nt));for(const c of i){let e=n;for(const r of c){r.y0=e,r.y1=e+r.value*y,e=r.y1+g;for(const p of r.sourceLinks)p.width=p.value*y}e=(a-e+g)/(c.length+1);for(let r=0;r<c.length;++r){const p=c[r];p.y0+=e*(r+1),p.y1+=e*(r+1)}w(c)}}function S(i){const y=C(i);g=Math.min(k,(a-n)/(at(y,c=>c.length)-1)),$(y);for(let c=0;c<d;++c){const e=Math.pow(.99,c),r=Math.max(1-e,(c+1)/d);R(y,e,r),N(y,e,r)}}function N(i,y,c){for(let e=1,r=i.length;e<r;++e){const p=i[e];for(const b of p){let L=0,B=0;for(const{source:q,value:tt}of b.targetLinks){let H=tt*(b.layer-q.layer);L+=P(q,b)*H,B+=H}if(!(B>0))continue;let U=(L/B-b.y0)*y;b.y0+=U,b.y1+=U,z(b)}l===void 0&&p.sort(X),j(p,c)}}function R(i,y,c){for(let e=i.length,r=e-2;r>=0;--r){const p=i[r];for(const b of p){let L=0,B=0;for(const{target:q,value:tt}of b.sourceLinks){let H=tt*(q.layer-b.layer);L+=E(b,q)*H,B+=H}if(!(B>0))continue;let U=(L/B-b.y0)*y;b.y0+=U,b.y1+=U,z(b)}l===void 0&&p.sort(X),j(p,c)}}function j(i,y){const c=i.length>>1,e=i[c];O(i,e.y0-g,c-1,y),V(i,e.y1+g,c+1,y),O(i,a,i.length-1,y),V(i,n,0,y)}function V(i,y,c,e){for(;c<i.length;++c){const r=i[c],p=(y-r.y0)*e;p>1e-6&&(r.y0+=p,r.y1+=p),y=r.y1+g}}function O(i,y,c,e){for(;c>=0;--c){const r=i[c],p=(r.y1-y)*e;p>1e-6&&(r.y0-=p,r.y1-=p),y=r.y0-g}}function z({sourceLinks:i,targetLinks:y}){if(f===void 0){for(const{source:{sourceLinks:c}}of y)c.sort(ct);for(const{target:{targetLinks:c}}of i)c.sort(lt)}}function w(i){if(f===void 0)for(const{sourceLinks:y,targetLinks:c}of i)y.sort(ct),c.sort(lt)}function P(i,y){let c=i.y0-(i.sourceLinks.length-1)*g/2;for(const{target:e,width:r}of i.sourceLinks){if(e===y)break;c+=r+g}for(const{source:e,width:r}of y.targetLinks){if(e===i)break;c-=r}return c}function E(i,y){let c=y.y0-(y.targetLinks.length-1)*g/2;for(const{source:e,width:r}of y.targetLinks){if(e===i)break;c+=r+g}for(const{target:e,width:r}of i.sourceLinks){if(e===y)break;c-=r}return c}return v}var it=Math.PI,rt=2*it,F=1e-6,Tt=rt-F;function st(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function pt(){return new st}st.prototype=pt.prototype={constructor:st,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,s,a){this._+="Q"+ +t+","+ +n+","+(this._x1=+s)+","+(this._y1=+a)},bezierCurveTo:function(t,n,s,a,h,k){this._+="C"+ +t+","+ +n+","+ +s+","+ +a+","+(this._x1=+h)+","+(this._y1=+k)},arcTo:function(t,n,s,a,h){t=+t,n=+n,s=+s,a=+a,h=+h;var k=this._x1,g=this._y1,_=s-t,o=a-n,l=k-t,f=g-n,m=l*l+f*f;if(h<0)throw new Error("negative radius: "+h);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(m>F)if(!(Math.abs(f*_-o*l)>F)||!h)this._+="L"+(this._x1=t)+","+(this._y1=n);else{var x=s-k,d=a-g,v=_*_+o*o,T=x*x+d*d,A=Math.sqrt(v),M=Math.sqrt(m),I=h*Math.tan((it-Math.acos((v+m-T)/(2*A*M)))/2),C=I/M,$=I/A;Math.abs(C-1)>F&&(this._+="L"+(t+C*l)+","+(n+C*f)),this._+="A"+h+","+h+",0,0,"+ +(f*x>l*d)+","+(this._x1=t+$*_)+","+(this._y1=n+$*o)}},arc:function(t,n,s,a,h,k){t=+t,n=+n,s=+s,k=!!k;var g=s*Math.cos(a),_=s*Math.sin(a),o=t+g,l=n+_,f=1^k,m=k?a-h:h-a;if(s<0)throw new Error("negative radius: "+s);this._x1===null?this._+="M"+o+","+l:(Math.abs(this._x1-o)>F||Math.abs(this._y1-l)>F)&&(this._+="L"+o+","+l),s&&(m<0&&(m=m%rt+rt),m>Tt?this._+="A"+s+","+s+",0,1,"+f+","+(t-g)+","+(n-_)+"A"+s+","+s+",0,1,"+f+","+(this._x1=o)+","+(this._y1=l):m>F&&(this._+="A"+s+","+s+",0,"+ +(m>=it)+","+f+","+(this._x1=t+s*Math.cos(h))+","+(this._y1=n+s*Math.sin(h))))},rect:function(t,n,s,a){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +s+"v"+ +a+"h"+-s+"Z"},toString:function(){return this._}};function ft(t){return function(){return t}}function Mt(t){return t[0]}function Ct(t){return t[1]}var Nt=Array.prototype.slice;function Pt(t){return t.source}function It(t){return t.target}function Ot(t){var n=Pt,s=It,a=Mt,h=Ct,k=null;function g(){var _,o=Nt.call(arguments),l=n.apply(this,o),f=s.apply(this,o);if(k||(k=_=pt()),t(k,+a.apply(this,(o[0]=l,o)),+h.apply(this,o),+a.apply(this,(o[0]=f,o)),+h.apply(this,o)),_)return k=null,_+""||null}return g.source=function(_){return arguments.length?(n=_,g):n},g.target=function(_){return arguments.length?(s=_,g):s},g.x=function(_){return arguments.length?(a=typeof _=="function"?_:ft(+_),g):a},g.y=function(_){return arguments.length?(h=typeof _=="function"?_:ft(+_),g):h},g.context=function(_){return arguments.length?(k=_??null,g):k},g}function Dt(t,n,s,a,h){t.moveTo(n,s),t.bezierCurveTo(n=(n+a)/2,s,n,h,a,h)}function $t(){return Ot(Dt)}function jt(t){return[t.source.x1,t.y0]}function zt(t){return[t.target.x0,t.y1]}function Bt(){return $t().source(jt).target(zt)}var ot=(function(){var t=u.__name(function(_,o,l,f){for(l=l||{},f=_.length;f--;l[_[f]]=o);return l},"o"),n=[1,9],s=[1,10],a=[1,5,10,12],h={trace:u.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:u.__name(function(o,l,f,m,x,d,v){var T=d.length-1;switch(x){case 7:const A=m.findOrCreateNode(d[T-4].trim().replaceAll('""','"')),M=m.findOrCreateNode(d[T-2].trim().replaceAll('""','"')),I=parseFloat(d[T].trim());m.addLink(A,M,I);break;case 8:case 9:case 11:this.$=d[T];break;case 10:this.$=d[T-1];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:n,20:s},{1:[2,6],7:11,10:[1,12]},t(s,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(a,[2,8]),t(a,[2,9]),{19:[1,16]},t(a,[2,11]),{1:[2,1]},{1:[2,5]},t(s,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:n,20:s},{15:18,16:7,17:8,18:n,20:s},{18:[1,19]},t(s,[2,3]),{12:[1,20]},t(a,[2,10]),{15:21,16:7,17:8,18:n,20:s},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:u.__name(function(o,l){if(l.recoverable)this.trace(o);else{var f=new Error(o);throw f.hash=l,f}},"parseError"),parse:u.__name(function(o){var l=this,f=[0],m=[],x=[null],d=[],v=this.table,T="",A=0,M=0,I=2,C=1,$=d.slice.call(arguments,1),S=Object.create(this.lexer),N={yy:{}};for(var R in this.yy)Object.prototype.hasOwnProperty.call(this.yy,R)&&(N.yy[R]=this.yy[R]);S.setInput(o,N.yy),N.yy.lexer=S,N.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var j=S.yylloc;d.push(j);var V=S.options&&S.options.ranges;typeof N.yy.parseError=="function"?this.parseError=N.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function O(L){f.length=f.length-2*L,x.length=x.length-L,d.length=d.length-L}u.__name(O,"popStack");function z(){var L;return L=m.pop()||S.lex()||C,typeof L!="number"&&(L instanceof Array&&(m=L,L=m.pop()),L=l.symbols_[L]||L),L}u.__name(z,"lex");for(var w,P,E,i,y={},c,e,r,p;;){if(P=f[f.length-1],this.defaultActions[P]?E=this.defaultActions[P]:((w===null||typeof w>"u")&&(w=z()),E=v[P]&&v[P][w]),typeof E>"u"||!E.length||!E[0]){var b="";p=[];for(c in v[P])this.terminals_[c]&&c>I&&p.push("'"+this.terminals_[c]+"'");S.showPosition?b="Parse error on line "+(A+1)+`:
|
|
2
2
|
`+S.showPosition()+`
|
|
3
3
|
Expecting `+p.join(", ")+", got '"+(this.terminals_[w]||w)+"'":b="Parse error on line "+(A+1)+": Unexpected "+(w==C?"end of input":"'"+(this.terminals_[w]||w)+"'"),this.parseError(b,{text:S.match,token:this.terminals_[w]||w,line:S.yylineno,loc:j,expected:p})}if(E[0]instanceof Array&&E.length>1)throw new Error("Parse Error: multiple actions possible at state: "+P+", token: "+w);switch(E[0]){case 1:f.push(w),x.push(S.yytext),d.push(S.yylloc),f.push(E[1]),w=null,M=S.yyleng,T=S.yytext,A=S.yylineno,j=S.yylloc;break;case 2:if(e=this.productions_[E[1]][1],y.$=x[x.length-e],y._$={first_line:d[d.length-(e||1)].first_line,last_line:d[d.length-1].last_line,first_column:d[d.length-(e||1)].first_column,last_column:d[d.length-1].last_column},V&&(y._$.range=[d[d.length-(e||1)].range[0],d[d.length-1].range[1]]),i=this.performAction.apply(y,[T,M,A,N.yy,E[1],x,d].concat($)),typeof i<"u")return i;e&&(f=f.slice(0,-1*e*2),x=x.slice(0,-1*e),d=d.slice(0,-1*e)),f.push(this.productions_[E[1]][0]),x.push(y.$),d.push(y._$),r=v[f[f.length-2]][f[f.length-1]],f.push(r);break;case 3:return!0}}return!0},"parse")},k=(function(){var _={EOF:1,parseError:u.__name(function(l,f){if(this.yy.parser)this.yy.parser.parseError(l,f);else throw new Error(l)},"parseError"),setInput:u.__name(function(o,l){return this.yy=l||this.yy||{},this._input=o,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:u.__name(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var l=o.match(/(?:\r\n?|\n).*/g);return l?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},"input"),unput:u.__name(function(o){var l=o.length,f=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;var m=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),f.length-1&&(this.yylineno-=f.length-1);var x=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:f?(f.length===m.length?this.yylloc.first_column:0)+m[m.length-f.length].length-f[0].length:this.yylloc.first_column-l},this.options.ranges&&(this.yylloc.range=[x[0],x[0]+this.yyleng-l]),this.yyleng=this.yytext.length,this},"unput"),more:u.__name(function(){return this._more=!0,this},"more"),reject:u.__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:u.__name(function(o){this.unput(this.match.slice(o))},"less"),pastInput:u.__name(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:u.__name(function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:u.__name(function(){var o=this.pastInput(),l=new Array(o.length+1).join("-");return o+this.upcomingInput()+`
|