@aiquants/markdown 6.2.0 → 6.4.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.
Files changed (144) hide show
  1. package/README.md +61 -3
  2. package/dist/{abnfDiagram-VRR7QNED-DX6eyf4O.cjs → abnfDiagram-VRR7QNED-B4qwBPG8.cjs} +1 -1
  3. package/dist/{abnfDiagram-VRR7QNED-Csrzuwyl.js → abnfDiagram-VRR7QNED-DJQK-fno.js} +3 -3
  4. package/dist/{arc-Gw7Urszo.js → arc-B5-ynLRd.js} +1 -1
  5. package/dist/{arc-ZAQ3z7kr.cjs → arc-CXmyMsv9.cjs} +1 -1
  6. package/dist/{architectureDiagram-ZJ3FMSHR-Coy6_Fcg.js → architectureDiagram-ZJ3FMSHR-C_JEocx6.js} +2 -2
  7. package/dist/{architectureDiagram-ZJ3FMSHR-DxzMbkp1.cjs → architectureDiagram-ZJ3FMSHR-DyhTbYvV.cjs} +1 -1
  8. package/dist/{blockDiagram-677ZJIJ3-THmR4OyE.cjs → blockDiagram-677ZJIJ3-BsWnBpmo.cjs} +1 -1
  9. package/dist/{blockDiagram-677ZJIJ3-CbR-wn2x.js → blockDiagram-677ZJIJ3-COWsJwrz.js} +3 -3
  10. package/dist/{c4Diagram-LMCZKHZV-DHMqNO9p.js → c4Diagram-LMCZKHZV-BJGPyybb.js} +2 -2
  11. package/dist/{c4Diagram-LMCZKHZV-BcJpuXK1.cjs → c4Diagram-LMCZKHZV-C8SAoymj.cjs} +1 -1
  12. package/dist/{channel-Cryph4zI.cjs → channel-Catm-7_m.cjs} +1 -1
  13. package/dist/{channel-CfC4eqki.js → channel-gEEzHgMK.js} +1 -1
  14. package/dist/{chunk-2Q5K7J3B-C3BIc3MH.js → chunk-2Q5K7J3B-BrZPj48S.js} +1 -1
  15. package/dist/{chunk-2Q5K7J3B-CxWyY331.cjs → chunk-2Q5K7J3B-D2pUNN7e.cjs} +1 -1
  16. package/dist/{chunk-32BRIVSS-C3w_aYfI.cjs → chunk-32BRIVSS-BHwCDqTA.cjs} +1 -1
  17. package/dist/{chunk-32BRIVSS-C37ccuiX.js → chunk-32BRIVSS-Qjp2CRZG.js} +1 -1
  18. package/dist/{chunk-5VM5RSS4-Cbt79-V5.cjs → chunk-5VM5RSS4-C-2Xl1mK.cjs} +1 -1
  19. package/dist/{chunk-5VM5RSS4-DVLmkcyq.js → chunk-5VM5RSS4-Cz-1oXF8.js} +1 -1
  20. package/dist/{chunk-EX3LRPZG-BZOxrSRn.cjs → chunk-EX3LRPZG-CcWHrBHu.cjs} +1 -1
  21. package/dist/{chunk-EX3LRPZG-Co0Bql0-.js → chunk-EX3LRPZG-DOly63cQ.js} +4 -4
  22. package/dist/{chunk-JWPE2WC7-DUndc3Wb.js → chunk-JWPE2WC7-D8oKuUKk.js} +1 -1
  23. package/dist/{chunk-JWPE2WC7-Cvt_ToFU.cjs → chunk-JWPE2WC7-uLMzLWor.cjs} +1 -1
  24. package/dist/{chunk-MOJQB5TN-AAMW2q8N.cjs → chunk-MOJQB5TN-CFHULd2m.cjs} +1 -1
  25. package/dist/{chunk-MOJQB5TN-aTSDPliR.js → chunk-MOJQB5TN-DFfn4gwS.js} +1 -1
  26. package/dist/{chunk-PUDLZKDR-Q5QzbDtY.js → chunk-PUDLZKDR-BSXgzvcs.js} +6 -6
  27. package/dist/{chunk-PUDLZKDR-CzCdcyAN.cjs → chunk-PUDLZKDR-CdXVWW4P.cjs} +1 -1
  28. package/dist/{chunk-RYQCIY6F-DbjhsOnH.cjs → chunk-RYQCIY6F-CVamSMzr.cjs} +1 -1
  29. package/dist/{chunk-RYQCIY6F-O6wbIIFF.js → chunk-RYQCIY6F-D7rBCtF6.js} +1 -1
  30. package/dist/{chunk-V7JOEXUC-OTS1fN7j.js → chunk-V7JOEXUC-BEGUrMN0.js} +5 -5
  31. package/dist/{chunk-V7JOEXUC-B6Qc5ABc.cjs → chunk-V7JOEXUC-DJuvtTef.cjs} +1 -1
  32. package/dist/{chunk-VR4S4FIN-D4tY80kq.js → chunk-VR4S4FIN-DbzCqIxB.js} +1 -1
  33. package/dist/{chunk-VR4S4FIN-DlneMFEg.cjs → chunk-VR4S4FIN-Okfemb3d.cjs} +1 -1
  34. package/dist/{chunk-XXDRQBXY-CvhBfnFQ.cjs → chunk-XXDRQBXY-DQBgFSg2.cjs} +1 -1
  35. package/dist/{chunk-XXDRQBXY-58rTAwvh.js → chunk-XXDRQBXY-DzmhMVRC.js} +1 -1
  36. package/dist/{classDiagram-v2-EOCWNBFH-hcuKRiyp.js → classDiagram-OUVF2IWQ-BGn-HjT8.js} +2 -2
  37. package/dist/{classDiagram-OUVF2IWQ-C0S2HAJU.cjs → classDiagram-OUVF2IWQ-DR8DD7tr.cjs} +1 -1
  38. package/dist/{classDiagram-OUVF2IWQ-hcuKRiyp.js → classDiagram-v2-EOCWNBFH-BGn-HjT8.js} +2 -2
  39. package/dist/{classDiagram-v2-EOCWNBFH-C0S2HAJU.cjs → classDiagram-v2-EOCWNBFH-DR8DD7tr.cjs} +1 -1
  40. package/dist/components/MermaidDiagram.d.ts +1 -0
  41. package/dist/components/mathRendering.d.ts +1 -0
  42. package/dist/components/mdastNodes/CodeNode.d.ts +2 -1
  43. package/dist/conversion.d.ts +26 -0
  44. package/dist/converter/NOTICES.md +178 -0
  45. package/dist/converter/createMarkdownConverter.d.ts +12 -0
  46. package/dist/converter/protocol.d.ts +58 -0
  47. package/dist/converter/serve.d.ts +12 -0
  48. package/dist/converter/worker.d.ts +1 -0
  49. package/dist/converter/worker.js +76 -0
  50. package/dist/converter.cjs +1 -0
  51. package/dist/converter.d.ts +4 -0
  52. package/dist/converter.js +109 -0
  53. package/dist/converter.wasm +0 -0
  54. package/dist/{cose-bilkent-JH36ORCC-BwltbHKG.js → cose-bilkent-JH36ORCC-CXaSZTQh.js} +1 -1
  55. package/dist/{cose-bilkent-JH36ORCC-DVZVn03H.cjs → cose-bilkent-JH36ORCC-DKpnPAKO.cjs} +1 -1
  56. package/dist/{cynefinDiagram-TSTJHNR4-ogTeIoNY.js → cynefinDiagram-TSTJHNR4-BQSdT_2p.js} +2 -2
  57. package/dist/{cynefinDiagram-TSTJHNR4-DYCBxaEi.cjs → cynefinDiagram-TSTJHNR4-WzHtBOXU.cjs} +1 -1
  58. package/dist/{dagre-VKFMJZFB-DJW9o9XX.cjs → dagre-VKFMJZFB-BOlxvZO9.cjs} +1 -1
  59. package/dist/{dagre-VKFMJZFB-BfNdgMHQ.js → dagre-VKFMJZFB-DQ5e1PJD.js} +2 -2
  60. package/dist/{diagram-FQU43EPY-BRpNVpgn.cjs → diagram-FQU43EPY-DdDxGx-M.cjs} +1 -1
  61. package/dist/{diagram-FQU43EPY-CJf3yD8h.js → diagram-FQU43EPY-DlCF28sn.js} +2 -2
  62. package/dist/{diagram-G47NLZAW-5rZfUeWV.cjs → diagram-G47NLZAW-Cvts7_pn.cjs} +1 -1
  63. package/dist/{diagram-G47NLZAW-D0-6oupP.js → diagram-G47NLZAW-DVdw7HhH.js} +3 -3
  64. package/dist/{diagram-NH7WQ7WH-BwrWWWZJ.js → diagram-NH7WQ7WH-BkU3b82h.js} +2 -2
  65. package/dist/{diagram-NH7WQ7WH-g7m8p5fK.cjs → diagram-NH7WQ7WH-Cs_Dyb0p.cjs} +1 -1
  66. package/dist/{diagram-OA4YK3LP-BBqA1m8s.js → diagram-OA4YK3LP-D39RUkK3.js} +3 -3
  67. package/dist/{diagram-OA4YK3LP-BxP8KUna.cjs → diagram-OA4YK3LP-ONhluSWR.cjs} +1 -1
  68. package/dist/{diagram-WEI45ONY-CMexm2GN.js → diagram-WEI45ONY-CMD5pSfn.js} +2 -2
  69. package/dist/{diagram-WEI45ONY-DgJyq1w0.cjs → diagram-WEI45ONY-DyEvKt6H.cjs} +1 -1
  70. package/dist/{ebnfDiagram-CCIWWBDH-sfiWOXCW.cjs → ebnfDiagram-CCIWWBDH-Bi-wg1C0.cjs} +1 -1
  71. package/dist/{ebnfDiagram-CCIWWBDH-DvLr_8nV.js → ebnfDiagram-CCIWWBDH-Z3TtxdlL.js} +3 -3
  72. package/dist/{erDiagram-Q63AITRT-D6U6Ng3Y.js → erDiagram-Q63AITRT-C-O8hBWj.js} +4 -4
  73. package/dist/{erDiagram-Q63AITRT-B11THykZ.cjs → erDiagram-Q63AITRT-DQO3kH0H.cjs} +1 -1
  74. package/dist/errors-BW5JXRoX.cjs +1 -0
  75. package/dist/errors-Blk_XJ9C.js +55 -0
  76. package/dist/errors.d.ts +12 -0
  77. package/dist/extractHeadings-DSlyjlEb.cjs +311 -0
  78. package/dist/{extractHeadings-CdLPwHlC.js → extractHeadings-DkKFCMIW.js} +5195 -5149
  79. package/dist/flowDiagram-23GEKE2U-BHV7jjdl.js +7 -0
  80. package/dist/flowDiagram-23GEKE2U-Bn8nX3mJ.cjs +1 -0
  81. package/dist/{ganttDiagram-NO4QXBWP-CGCdgj0K.js → ganttDiagram-NO4QXBWP-BgxDDjW1.js} +2 -2
  82. package/dist/{ganttDiagram-NO4QXBWP-BLlXK3zo.cjs → ganttDiagram-NO4QXBWP-C6v1dyOv.cjs} +1 -1
  83. package/dist/gen/markdown/v1/markdown_pb.d.ts +1 -0
  84. package/dist/{gitGraphDiagram-IHSO6WYX-Bib3c0C6.js → gitGraphDiagram-IHSO6WYX-BSIaczat.js} +3 -3
  85. package/dist/{gitGraphDiagram-IHSO6WYX-BHOyibqH.cjs → gitGraphDiagram-IHSO6WYX-Dly6wuUW.cjs} +1 -1
  86. package/dist/index.cjs +1 -1
  87. package/dist/index.client.cjs +1 -1
  88. package/dist/index.client.js +1 -1
  89. package/dist/index.js +1 -1
  90. package/dist/index.server.cjs +1 -1
  91. package/dist/index.server.d.ts +3 -1
  92. package/dist/index.server.js +185 -178
  93. package/dist/{infoDiagram-FWYZ7A6U-BUqDBIaP.js → infoDiagram-FWYZ7A6U-BJpiPMD3.js} +1 -1
  94. package/dist/{infoDiagram-FWYZ7A6U-BcDp6g1Y.cjs → infoDiagram-FWYZ7A6U-CRxeian2.cjs} +1 -1
  95. package/dist/{ishikawaDiagram-FXEZZL3T-CcPh4nuP.js → ishikawaDiagram-FXEZZL3T-B3tCfTEo.js} +1 -1
  96. package/dist/{ishikawaDiagram-FXEZZL3T-C3QHQ1ia.cjs → ishikawaDiagram-FXEZZL3T-jEnTu6LN.cjs} +1 -1
  97. package/dist/{journeyDiagram-5HDEW3XC-B17v98Wb.cjs → journeyDiagram-5HDEW3XC-BXFW-Svx.cjs} +1 -1
  98. package/dist/{journeyDiagram-5HDEW3XC-MdxndgF1.js → journeyDiagram-5HDEW3XC-D7U-NNAM.js} +4 -4
  99. package/dist/{kanban-definition-HUTT4EX6-JhfZ6Qik.js → kanban-definition-HUTT4EX6-B14iIRCh.js} +2 -2
  100. package/dist/{kanban-definition-HUTT4EX6-BApVXeVQ.cjs → kanban-definition-HUTT4EX6-DSprt7D2.cjs} +1 -1
  101. package/dist/{linear-CIVwb13z.cjs → linear-B-_z7_Qw.cjs} +1 -1
  102. package/dist/{linear-dbOUbGpD.js → linear-DZOg62FH.js} +1 -1
  103. package/dist/{mindmap-definition-LN4V7U3C-BUbo0u-Y.cjs → mindmap-definition-LN4V7U3C-Bs_ccQ71.cjs} +1 -1
  104. package/dist/{mindmap-definition-LN4V7U3C-gNTBga2z.js → mindmap-definition-LN4V7U3C-Dh-Z6t4L.js} +3 -3
  105. package/dist/{pegDiagram-2B236MQR-BqjpbNkG.js → pegDiagram-2B236MQR-6OQwK0r-.js} +3 -3
  106. package/dist/{pegDiagram-2B236MQR-DZiQVxu1.cjs → pegDiagram-2B236MQR-BunF191h.cjs} +1 -1
  107. package/dist/{pieDiagram-ENE6RG2P-D2nxDVFV.cjs → pieDiagram-ENE6RG2P-BUdykoZb.cjs} +1 -1
  108. package/dist/{pieDiagram-ENE6RG2P-C1Gr48CK.js → pieDiagram-ENE6RG2P-DjvAa5zD.js} +3 -3
  109. package/dist/{quadrantDiagram-ABIIQ3AL-DuD9ZdUQ.js → quadrantDiagram-ABIIQ3AL-DfiOa0GN.js} +2 -2
  110. package/dist/{quadrantDiagram-ABIIQ3AL-C855tL3K.cjs → quadrantDiagram-ABIIQ3AL-ksoulitn.cjs} +1 -1
  111. package/dist/{railroadDiagram-RFXS5EU6-BZsnhaQd.cjs → railroadDiagram-RFXS5EU6-BWupYLwR.cjs} +1 -1
  112. package/dist/{railroadDiagram-RFXS5EU6-xx1d3Md8.js → railroadDiagram-RFXS5EU6-DxJ3t05t.js} +3 -3
  113. package/dist/remarkProcessor.server.d.ts +1 -27
  114. package/dist/{requirementDiagram-TGXJPOKE-CCu1UYFH.js → requirementDiagram-TGXJPOKE-CxplHHB8.js} +3 -3
  115. package/dist/{requirementDiagram-TGXJPOKE-D_NbFRkb.cjs → requirementDiagram-TGXJPOKE-D17FjoFO.cjs} +1 -1
  116. package/dist/{sankeyDiagram-HTMAVEWB-Dn2Ta-XX.cjs → sankeyDiagram-HTMAVEWB-CDXvEE-n.cjs} +1 -1
  117. package/dist/{sankeyDiagram-HTMAVEWB-QGzXzczJ.js → sankeyDiagram-HTMAVEWB-DFOQ2fD-.js} +1 -1
  118. package/dist/{sequenceDiagram-DBY2YBRQ-BA3Oc4pz.cjs → sequenceDiagram-DBY2YBRQ-D-aVI5Yt.cjs} +1 -1
  119. package/dist/{sequenceDiagram-DBY2YBRQ-CjnUnaw9.js → sequenceDiagram-DBY2YBRQ-Gf5VRPPO.js} +3 -3
  120. package/dist/{sizeCapture-X5ZJPWSS-BPQhVBe0.cjs → sizeCapture-X5ZJPWSS-BAB3SekL.cjs} +1 -1
  121. package/dist/{sizeCapture-X5ZJPWSS-nb9uU-BE.js → sizeCapture-X5ZJPWSS-DyErW1EK.js} +1 -1
  122. package/dist/source-lines.cjs +1 -0
  123. package/dist/source-lines.d.ts +6 -0
  124. package/dist/source-lines.js +11 -0
  125. package/dist/{stateDiagram-2N3HPSRC-DSqLqSY5.cjs → stateDiagram-2N3HPSRC-BrUDPgXu.cjs} +1 -1
  126. package/dist/{stateDiagram-2N3HPSRC-Byg3E1AA.js → stateDiagram-2N3HPSRC-lxQmuBDw.js} +2 -2
  127. package/dist/{stateDiagram-v2-6OUMAXLB-VRhXyf-C.cjs → stateDiagram-v2-6OUMAXLB-B67PZ7bz.cjs} +1 -1
  128. package/dist/{stateDiagram-v2-6OUMAXLB-hKcuYy9t.js → stateDiagram-v2-6OUMAXLB-l5VmN12f.js} +2 -2
  129. package/dist/{swimlanes-5IMT3BWC-DyIDdThc.js → swimlanes-5IMT3BWC-CMkiOd-R.js} +3 -3
  130. package/dist/{swimlanes-5IMT3BWC-CVnOKNcb.cjs → swimlanes-5IMT3BWC-DW61y4w7.cjs} +1 -1
  131. package/dist/{swimlanesDiagram-G3AALYLV-BF1ofRjP.js → swimlanesDiagram-G3AALYLV-CaDY11RK.js} +2 -2
  132. package/dist/{swimlanesDiagram-G3AALYLV-C3U5wLlX.cjs → swimlanesDiagram-G3AALYLV-DN1x1exB.cjs} +1 -1
  133. package/dist/{timeline-definition-FHXFAJF6-KUETCXLT.cjs → timeline-definition-FHXFAJF6-DCW8SrSN.cjs} +1 -1
  134. package/dist/{timeline-definition-FHXFAJF6-DBmE_qU3.js → timeline-definition-FHXFAJF6-GIvmYQNR.js} +2 -2
  135. package/dist/{vennDiagram-L72KCM5P-C6j4k5X-.js → vennDiagram-L72KCM5P-DtN1NFNM.js} +1 -1
  136. package/dist/{vennDiagram-L72KCM5P-DkSV3dIE.cjs → vennDiagram-L72KCM5P-wENEw3FH.cjs} +1 -1
  137. package/dist/{wardleyDiagram-EHGQE667-BaG6Cf_u.js → wardleyDiagram-EHGQE667-CPYTbfuJ.js} +2 -2
  138. package/dist/{wardleyDiagram-EHGQE667-uWMTMxL-.cjs → wardleyDiagram-EHGQE667-Daugt2NV.cjs} +1 -1
  139. package/dist/{xychartDiagram-FW5EYKEG-QAFE-xqg.cjs → xychartDiagram-FW5EYKEG-B3D8pi1c.cjs} +1 -1
  140. package/dist/{xychartDiagram-FW5EYKEG-BPl5BnMB.js → xychartDiagram-FW5EYKEG-C-NgU5xv.js} +2 -2
  141. package/package.json +23 -8
  142. package/dist/extractHeadings-DRUBnhbi.cjs +0 -311
  143. package/dist/flowDiagram-23GEKE2U-CDscoQ9F.cjs +0 -1
  144. package/dist/flowDiagram-23GEKE2U-CLibi_u4.js +0 -7
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./extractHeadings-DRUBnhbi.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-DSlyjlEb.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()+`
@@ -1,4 +1,4 @@
1
- import { a6 as xt, a7 as _t, z as vt, A as bt, J as St, G as wt, _ as y, K as lt, ad as Lt, O as X, aB as Et, ac as At, $ as Tt } from "./extractHeadings-CdLPwHlC.js";
1
+ import { a6 as xt, a7 as _t, z as vt, A as bt, J as St, G as wt, _ as y, K as lt, ad as Lt, O as X, aB as Et, ac as At, $ as Tt } from "./extractHeadings-DkKFCMIW.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);
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Ye=require("./chunk-2Q5K7J3B-CxWyY331.cjs"),r=require("./extractHeadings-DRUBnhbi.cjs"),G=require("./chunk-32BRIVSS-C3w_aYfI.cjs");var Ut=(function(){var e=r.__name(function(dt,A,D,w){for(D=D||{},w=dt.length;w--;D[dt[w]]=A);return D},"o"),t=[1,2],s=[1,3],a=[1,4],i=[2,4],o=[1,9],n=[1,11],l=[1,12],_=[1,14],h=[1,15],E=[1,17],g=[1,18],u=[1,19],R=[1,25],p=[1,26],m=[1,27],f=[1,28],x=[1,29],O=[1,30],L=[1,31],N=[1,32],S=[1,33],k=[1,34],v=[1,35],B=[1,36],Y=[1,37],z=[1,38],U=[1,39],X=[1,40],at=[1,42],Q=[1,43],q=[1,44],tt=[1,45],Z=[1,46],V=[1,47],C=[1,4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,49,50,51,53,54,56,61,62,63,64,73],Rt=[1,74],St=[1,80],b=[1,81],P=[1,82],nt=[1,83],$=[1,84],W=[1,85],gt=[1,86],Jt=[1,87],Qt=[1,88],Zt=[1,89],$t=[1,90],jt=[1,91],te=[1,92],ee=[1,93],ae=[1,94],re=[1,95],se=[1,96],ne=[1,97],ie=[1,98],oe=[1,99],ce=[1,100],le=[1,101],de=[1,102],he=[1,103],Te=[1,104],pe=[1,105],Ee=[2,78],Ot=[4,5,17,51,53,54],At=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],_e=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,50,51,53,54,56,61,62,63,64,73],Vt=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,49,51,53,54,56,61,62,63,64,73],ue=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,51,53,54,56,61,62,63,64,73],Yt=[5,52],K=[70,71,72,73],rt=[1,151],Wt={trace:r.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,INVALID:10,box_section:11,box_line:12,participant_statement:13,create:14,box:15,restOfLine:16,end:17,signal:18,autonumber:19,NUM:20,off:21,activate:22,actor:23,deactivate:24,note_statement:25,links_statement:26,link_statement:27,properties_statement:28,details_statement:29,title:30,legacy_title:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,loop:37,rect:38,opt:39,alt:40,else_sections:41,par:42,par_sections:43,par_over:44,critical:45,option_sections:46,break:47,option:48,and:49,else:50,participant:51,AS:52,participant_actor:53,destroy:54,actor_with_config:55,note:56,placement:57,text2:58,over:59,actor_pair:60,links:61,link:62,properties:63,details:64,spaceList:65,",":66,left_of:67,right_of:68,signaltype:69,"+":70,"-":71,"()":72,ACTOR:73,config_object:74,CONFIG_START:75,CONFIG_CONTENT:76,CONFIG_END:77,SOLID_OPEN_ARROW:78,DOTTED_OPEN_ARROW:79,SOLID_ARROW:80,SOLID_ARROW_TOP:81,SOLID_ARROW_BOTTOM:82,STICK_ARROW_TOP:83,STICK_ARROW_BOTTOM:84,SOLID_ARROW_TOP_DOTTED:85,SOLID_ARROW_BOTTOM_DOTTED:86,STICK_ARROW_TOP_DOTTED:87,STICK_ARROW_BOTTOM_DOTTED:88,SOLID_ARROW_TOP_REVERSE:89,SOLID_ARROW_BOTTOM_REVERSE:90,STICK_ARROW_TOP_REVERSE:91,STICK_ARROW_BOTTOM_REVERSE:92,SOLID_ARROW_TOP_REVERSE_DOTTED:93,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:94,STICK_ARROW_TOP_REVERSE_DOTTED:95,STICK_ARROW_BOTTOM_REVERSE_DOTTED:96,BIDIRECTIONAL_SOLID_ARROW:97,DOTTED_ARROW:98,BIDIRECTIONAL_DOTTED_ARROW:99,SOLID_CROSS:100,DOTTED_CROSS:101,SOLID_POINT:102,DOTTED_POINT:103,TXT:104,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",10:"INVALID",14:"create",15:"box",16:"restOfLine",17:"end",19:"autonumber",20:"NUM",21:"off",22:"activate",24:"deactivate",30:"title",31:"legacy_title",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"loop",38:"rect",39:"opt",40:"alt",42:"par",44:"par_over",45:"critical",47:"break",48:"option",49:"and",50:"else",51:"participant",52:"AS",53:"participant_actor",54:"destroy",56:"note",59:"over",61:"links",62:"link",63:"properties",64:"details",66:",",67:"left_of",68:"right_of",70:"+",71:"-",72:"()",73:"ACTOR",75:"CONFIG_START",76:"CONFIG_CONTENT",77:"CONFIG_END",78:"SOLID_OPEN_ARROW",79:"DOTTED_OPEN_ARROW",80:"SOLID_ARROW",81:"SOLID_ARROW_TOP",82:"SOLID_ARROW_BOTTOM",83:"STICK_ARROW_TOP",84:"STICK_ARROW_BOTTOM",85:"SOLID_ARROW_TOP_DOTTED",86:"SOLID_ARROW_BOTTOM_DOTTED",87:"STICK_ARROW_TOP_DOTTED",88:"STICK_ARROW_BOTTOM_DOTTED",89:"SOLID_ARROW_TOP_REVERSE",90:"SOLID_ARROW_BOTTOM_REVERSE",91:"STICK_ARROW_TOP_REVERSE",92:"STICK_ARROW_BOTTOM_REVERSE",93:"SOLID_ARROW_TOP_REVERSE_DOTTED",94:"SOLID_ARROW_BOTTOM_REVERSE_DOTTED",95:"STICK_ARROW_TOP_REVERSE_DOTTED",96:"STICK_ARROW_BOTTOM_REVERSE_DOTTED",97:"BIDIRECTIONAL_SOLID_ARROW",98:"DOTTED_ARROW",99:"BIDIRECTIONAL_DOTTED_ARROW",100:"SOLID_CROSS",101:"DOTTED_CROSS",102:"SOLID_POINT",103:"DOTTED_POINT",104:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[8,1],[11,0],[11,2],[12,2],[12,1],[12,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[46,1],[46,4],[43,1],[43,4],[41,1],[41,4],[13,5],[13,3],[13,5],[13,3],[13,3],[13,5],[13,3],[13,5],[13,3],[25,4],[25,4],[26,3],[27,3],[28,3],[29,3],[65,2],[65,1],[60,3],[60,1],[57,1],[57,1],[18,5],[18,5],[18,5],[18,5],[18,6],[18,4],[55,2],[74,3],[23,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[58,1]],performAction:r.__name(function(A,D,w,I,H,c,Lt){var T=c.length-1;switch(H){case 3:return I.apply(c[T]),c[T];case 4:case 10:this.$=[];break;case 5:case 11:c[T-1].push(c[T]),this.$=c[T-1];break;case 6:case 7:case 12:case 13:this.$=c[T];break;case 8:case 9:case 14:this.$=[];break;case 16:c[T].type="createParticipant",this.$=c[T];break;case 17:c[T-1].unshift({type:"boxStart",boxData:I.parseBoxData(c[T-2])}),c[T-1].push({type:"boxEnd",boxText:c[T-2]}),this.$=c[T-1];break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(c[T-2]),sequenceIndexStep:Number(c[T-1]),sequenceVisible:!0,signalType:I.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceIndex:Number(c[T-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:I.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:I.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:I.LINETYPE.AUTONUMBER};break;case 23:this.$={type:"activeStart",signalType:I.LINETYPE.ACTIVE_START,actor:c[T-1].actor};break;case 24:this.$={type:"activeEnd",signalType:I.LINETYPE.ACTIVE_END,actor:c[T-1].actor};break;case 30:I.setDiagramTitle(c[T].substring(6)),this.$=c[T].substring(6);break;case 31:I.setDiagramTitle(c[T].substring(7)),this.$=c[T].substring(7);break;case 32:this.$=c[T].trim(),I.setAccTitle(this.$);break;case 33:case 34:this.$=c[T].trim(),I.setAccDescription(this.$);break;case 35:c[T-1].unshift({type:"loopStart",loopText:I.parseMessage(c[T-2]),signalType:I.LINETYPE.LOOP_START}),c[T-1].push({type:"loopEnd",loopText:c[T-2],signalType:I.LINETYPE.LOOP_END}),this.$=c[T-1];break;case 36:c[T-1].unshift({type:"rectStart",color:I.parseMessage(c[T-2]),signalType:I.LINETYPE.RECT_START}),c[T-1].push({type:"rectEnd",color:I.parseMessage(c[T-2]),signalType:I.LINETYPE.RECT_END}),this.$=c[T-1];break;case 37:c[T-1].unshift({type:"optStart",optText:I.parseMessage(c[T-2]),signalType:I.LINETYPE.OPT_START}),c[T-1].push({type:"optEnd",optText:I.parseMessage(c[T-2]),signalType:I.LINETYPE.OPT_END}),this.$=c[T-1];break;case 38:c[T-1].unshift({type:"altStart",altText:I.parseMessage(c[T-2]),signalType:I.LINETYPE.ALT_START}),c[T-1].push({type:"altEnd",signalType:I.LINETYPE.ALT_END}),this.$=c[T-1];break;case 39:c[T-1].unshift({type:"parStart",parText:I.parseMessage(c[T-2]),signalType:I.LINETYPE.PAR_START}),c[T-1].push({type:"parEnd",signalType:I.LINETYPE.PAR_END}),this.$=c[T-1];break;case 40:c[T-1].unshift({type:"parStart",parText:I.parseMessage(c[T-2]),signalType:I.LINETYPE.PAR_OVER_START}),c[T-1].push({type:"parEnd",signalType:I.LINETYPE.PAR_END}),this.$=c[T-1];break;case 41:c[T-1].unshift({type:"criticalStart",criticalText:I.parseMessage(c[T-2]),signalType:I.LINETYPE.CRITICAL_START}),c[T-1].push({type:"criticalEnd",signalType:I.LINETYPE.CRITICAL_END}),this.$=c[T-1];break;case 42:c[T-1].unshift({type:"breakStart",breakText:I.parseMessage(c[T-2]),signalType:I.LINETYPE.BREAK_START}),c[T-1].push({type:"breakEnd",optText:I.parseMessage(c[T-2]),signalType:I.LINETYPE.BREAK_END}),this.$=c[T-1];break;case 44:this.$=c[T-3].concat([{type:"option",optionText:I.parseMessage(c[T-1]),signalType:I.LINETYPE.CRITICAL_OPTION},c[T]]);break;case 46:this.$=c[T-3].concat([{type:"and",parText:I.parseMessage(c[T-1]),signalType:I.LINETYPE.PAR_AND},c[T]]);break;case 48:this.$=c[T-3].concat([{type:"else",altText:I.parseMessage(c[T-1]),signalType:I.LINETYPE.ALT_ELSE},c[T]]);break;case 49:c[T-3].draw="participant",c[T-3].type="addParticipant",c[T-3].description=I.parseMessage(c[T-1]),this.$=c[T-3];break;case 50:c[T-1].draw="participant",c[T-1].type="addParticipant",this.$=c[T-1];break;case 51:c[T-3].draw="actor",c[T-3].type="addParticipant",c[T-3].description=I.parseMessage(c[T-1]),this.$=c[T-3];break;case 52:case 57:c[T-1].draw="actor",c[T-1].type="addParticipant",this.$=c[T-1];break;case 53:c[T-1].type="destroyParticipant",this.$=c[T-1];break;case 54:c[T-3].draw="participant",c[T-3].type="addParticipant",c[T-3].description=I.parseMessage(c[T-1]),this.$=c[T-3];break;case 55:c[T-1].draw="participant",c[T-1].type="addParticipant",this.$=c[T-1];break;case 56:c[T-3].draw="actor",c[T-3].type="addParticipant",c[T-3].description=I.parseMessage(c[T-1]),this.$=c[T-3];break;case 58:this.$=[c[T-1],{type:"addNote",placement:c[T-2],actor:c[T-1].actor,text:c[T]}];break;case 59:c[T-2]=[].concat(c[T-1],c[T-1]).slice(0,2),c[T-2][0]=c[T-2][0].actor,c[T-2][1]=c[T-2][1].actor,this.$=[c[T-1],{type:"addNote",placement:I.PLACEMENT.OVER,actor:c[T-2].slice(0,2),text:c[T]}];break;case 60:this.$=[c[T-1],{type:"addLinks",actor:c[T-1].actor,text:c[T]}];break;case 61:this.$=[c[T-1],{type:"addALink",actor:c[T-1].actor,text:c[T]}];break;case 62:this.$=[c[T-1],{type:"addProperties",actor:c[T-1].actor,text:c[T]}];break;case 63:this.$=[c[T-1],{type:"addDetails",actor:c[T-1].actor,text:c[T]}];break;case 66:this.$=[c[T-2],c[T]];break;case 67:this.$=c[T];break;case 68:this.$=I.PLACEMENT.LEFTOF;break;case 69:this.$=I.PLACEMENT.RIGHTOF;break;case 70:this.$=[c[T-4],c[T-1],{type:"addMessage",from:c[T-4].actor,to:c[T-1].actor,signalType:c[T-3],msg:c[T],activate:!0},{type:"activeStart",signalType:I.LINETYPE.ACTIVE_START,actor:c[T-1].actor}];break;case 71:this.$=[c[T-4],c[T-1],{type:"addMessage",from:c[T-4].actor,to:c[T-1].actor,signalType:c[T-3],msg:c[T]},{type:"activeEnd",signalType:I.LINETYPE.ACTIVE_END,actor:c[T-4].actor}];break;case 72:this.$=[c[T-4],c[T-1],{type:"addMessage",from:c[T-4].actor,to:c[T-1].actor,signalType:c[T-3],msg:c[T],activate:!0,centralConnection:I.LINETYPE.CENTRAL_CONNECTION},{type:"centralConnection",signalType:I.LINETYPE.CENTRAL_CONNECTION,actor:c[T-1].actor}];break;case 73:this.$=[c[T-4],c[T-1],{type:"addMessage",from:c[T-4].actor,to:c[T-1].actor,signalType:c[T-2],msg:c[T],activate:!1,centralConnection:I.LINETYPE.CENTRAL_CONNECTION_REVERSE},{type:"centralConnectionReverse",signalType:I.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:c[T-4].actor}];break;case 74:this.$=[c[T-5],c[T-1],{type:"addMessage",from:c[T-5].actor,to:c[T-1].actor,signalType:c[T-3],msg:c[T],activate:!0,centralConnection:I.LINETYPE.CENTRAL_CONNECTION_DUAL},{type:"centralConnection",signalType:I.LINETYPE.CENTRAL_CONNECTION,actor:c[T-1].actor},{type:"centralConnectionReverse",signalType:I.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:c[T-5].actor}];break;case 75:this.$=[c[T-3],c[T-1],{type:"addMessage",from:c[T-3].actor,to:c[T-1].actor,signalType:c[T-2],msg:c[T]}];break;case 76:this.$={type:"addParticipant",actor:c[T-1],config:c[T]};break;case 77:this.$=c[T-1].trim();break;case 78:this.$={type:"addParticipant",actor:c[T]};break;case 79:this.$=I.LINETYPE.SOLID_OPEN;break;case 80:this.$=I.LINETYPE.DOTTED_OPEN;break;case 81:this.$=I.LINETYPE.SOLID;break;case 82:this.$=I.LINETYPE.SOLID_TOP;break;case 83:this.$=I.LINETYPE.SOLID_BOTTOM;break;case 84:this.$=I.LINETYPE.STICK_TOP;break;case 85:this.$=I.LINETYPE.STICK_BOTTOM;break;case 86:this.$=I.LINETYPE.SOLID_TOP_DOTTED;break;case 87:this.$=I.LINETYPE.SOLID_BOTTOM_DOTTED;break;case 88:this.$=I.LINETYPE.STICK_TOP_DOTTED;break;case 89:this.$=I.LINETYPE.STICK_BOTTOM_DOTTED;break;case 90:this.$=I.LINETYPE.SOLID_ARROW_TOP_REVERSE;break;case 91:this.$=I.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;break;case 92:this.$=I.LINETYPE.STICK_ARROW_TOP_REVERSE;break;case 93:this.$=I.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;break;case 94:this.$=I.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;break;case 95:this.$=I.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;break;case 96:this.$=I.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;break;case 97:this.$=I.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;break;case 98:this.$=I.LINETYPE.BIDIRECTIONAL_SOLID;break;case 99:this.$=I.LINETYPE.DOTTED;break;case 100:this.$=I.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 101:this.$=I.LINETYPE.SOLID_CROSS;break;case 102:this.$=I.LINETYPE.DOTTED_CROSS;break;case 103:this.$=I.LINETYPE.SOLID_POINT;break;case 104:this.$=I.LINETYPE.DOTTED_POINT;break;case 105:this.$=I.parseMessage(c[T].trim().substring(1));break}},"anonymous"),table:[{3:1,4:t,5:s,6:a},{1:[3]},{3:5,4:t,5:s,6:a},{3:6,4:t,5:s,6:a},e([1,4,5,10,14,15,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:o,5:n,8:8,9:10,10:l,13:13,14:_,15:h,18:16,19:E,22:g,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:R,31:p,32:m,34:f,36:x,37:O,38:L,39:N,40:S,42:k,44:v,45:B,47:Y,51:z,53:U,54:X,56:at,61:Q,62:q,63:tt,64:Z,73:V},e(C,[2,5]),{9:48,13:13,14:_,15:h,18:16,19:E,22:g,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:R,31:p,32:m,34:f,36:x,37:O,38:L,39:N,40:S,42:k,44:v,45:B,47:Y,51:z,53:U,54:X,56:at,61:Q,62:q,63:tt,64:Z,73:V},e(C,[2,7]),e(C,[2,8]),e(C,[2,9]),e(C,[2,15]),{13:49,51:z,53:U,54:X},{16:[1,50]},{5:[1,51]},{5:[1,54],20:[1,52],21:[1,53]},{23:55,73:V},{23:56,73:V},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},{5:[1,61]},e(C,[2,30]),e(C,[2,31]),{33:[1,62]},{35:[1,63]},e(C,[2,34]),{16:[1,64]},{16:[1,65]},{16:[1,66]},{16:[1,67]},{16:[1,68]},{16:[1,69]},{16:[1,70]},{16:[1,71]},{23:72,55:73,73:Rt},{23:75,55:76,73:Rt},{23:77,73:V},{69:78,72:[1,79],78:St,79:b,80:P,81:nt,82:$,83:W,84:gt,85:Jt,86:Qt,87:Zt,88:$t,89:jt,90:te,91:ee,92:ae,93:re,94:se,95:ne,96:ie,97:oe,98:ce,99:le,100:de,101:he,102:Te,103:pe},{57:106,59:[1,107],67:[1,108],68:[1,109]},{23:110,73:V},{23:111,73:V},{23:112,73:V},{23:113,73:V},e([5,66,72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104],Ee),e(C,[2,6]),e(C,[2,16]),e(Ot,[2,10],{11:114}),e(C,[2,18]),{5:[1,116],20:[1,115]},{5:[1,117]},e(C,[2,22]),{5:[1,118]},{5:[1,119]},e(C,[2,25]),e(C,[2,26]),e(C,[2,27]),e(C,[2,28]),e(C,[2,29]),e(C,[2,32]),e(C,[2,33]),e(At,i,{7:120}),e(At,i,{7:121}),e(At,i,{7:122}),e(_e,i,{41:123,7:124}),e(Vt,i,{43:125,7:126}),e(Vt,i,{7:126,43:127}),e(ue,i,{46:128,7:129}),e(At,i,{7:130}),{5:[1,132],52:[1,131]},{5:[1,134],52:[1,133]},e(Yt,Ee,{74:135,75:[1,136]}),{5:[1,138],52:[1,137]},{5:[1,140],52:[1,139]},{5:[1,141]},{23:145,70:[1,142],71:[1,143],72:[1,144],73:V},{69:146,78:St,79:b,80:P,81:nt,82:$,83:W,84:gt,85:Jt,86:Qt,87:Zt,88:$t,89:jt,90:te,91:ee,92:ae,93:re,94:se,95:ne,96:ie,97:oe,98:ce,99:le,100:de,101:he,102:Te,103:pe},e(K,[2,79]),e(K,[2,80]),e(K,[2,81]),e(K,[2,82]),e(K,[2,83]),e(K,[2,84]),e(K,[2,85]),e(K,[2,86]),e(K,[2,87]),e(K,[2,88]),e(K,[2,89]),e(K,[2,90]),e(K,[2,91]),e(K,[2,92]),e(K,[2,93]),e(K,[2,94]),e(K,[2,95]),e(K,[2,96]),e(K,[2,97]),e(K,[2,98]),e(K,[2,99]),e(K,[2,100]),e(K,[2,101]),e(K,[2,102]),e(K,[2,103]),e(K,[2,104]),{23:147,73:V},{23:149,60:148,73:V},{73:[2,68]},{73:[2,69]},{58:150,104:rt},{58:152,104:rt},{58:153,104:rt},{58:154,104:rt},{4:[1,157],5:[1,159],12:156,13:158,17:[1,155],51:z,53:U,54:X},{5:[1,160]},e(C,[2,20]),e(C,[2,21]),e(C,[2,23]),e(C,[2,24]),{4:o,5:n,8:8,9:10,10:l,13:13,14:_,15:h,17:[1,161],18:16,19:E,22:g,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:R,31:p,32:m,34:f,36:x,37:O,38:L,39:N,40:S,42:k,44:v,45:B,47:Y,51:z,53:U,54:X,56:at,61:Q,62:q,63:tt,64:Z,73:V},{4:o,5:n,8:8,9:10,10:l,13:13,14:_,15:h,17:[1,162],18:16,19:E,22:g,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:R,31:p,32:m,34:f,36:x,37:O,38:L,39:N,40:S,42:k,44:v,45:B,47:Y,51:z,53:U,54:X,56:at,61:Q,62:q,63:tt,64:Z,73:V},{4:o,5:n,8:8,9:10,10:l,13:13,14:_,15:h,17:[1,163],18:16,19:E,22:g,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:R,31:p,32:m,34:f,36:x,37:O,38:L,39:N,40:S,42:k,44:v,45:B,47:Y,51:z,53:U,54:X,56:at,61:Q,62:q,63:tt,64:Z,73:V},{17:[1,164]},{4:o,5:n,8:8,9:10,10:l,13:13,14:_,15:h,17:[2,47],18:16,19:E,22:g,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:R,31:p,32:m,34:f,36:x,37:O,38:L,39:N,40:S,42:k,44:v,45:B,47:Y,50:[1,165],51:z,53:U,54:X,56:at,61:Q,62:q,63:tt,64:Z,73:V},{17:[1,166]},{4:o,5:n,8:8,9:10,10:l,13:13,14:_,15:h,17:[2,45],18:16,19:E,22:g,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:R,31:p,32:m,34:f,36:x,37:O,38:L,39:N,40:S,42:k,44:v,45:B,47:Y,49:[1,167],51:z,53:U,54:X,56:at,61:Q,62:q,63:tt,64:Z,73:V},{17:[1,168]},{17:[1,169]},{4:o,5:n,8:8,9:10,10:l,13:13,14:_,15:h,17:[2,43],18:16,19:E,22:g,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:R,31:p,32:m,34:f,36:x,37:O,38:L,39:N,40:S,42:k,44:v,45:B,47:Y,48:[1,170],51:z,53:U,54:X,56:at,61:Q,62:q,63:tt,64:Z,73:V},{4:o,5:n,8:8,9:10,10:l,13:13,14:_,15:h,17:[1,171],18:16,19:E,22:g,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:R,31:p,32:m,34:f,36:x,37:O,38:L,39:N,40:S,42:k,44:v,45:B,47:Y,51:z,53:U,54:X,56:at,61:Q,62:q,63:tt,64:Z,73:V},{16:[1,172]},e(C,[2,50]),{16:[1,173]},e(C,[2,55]),e(Yt,[2,76]),{76:[1,174]},{16:[1,175]},e(C,[2,52]),{16:[1,176]},e(C,[2,57]),e(C,[2,53]),{23:177,73:V},{23:178,73:V},{23:179,73:V},{58:180,104:rt},{23:181,72:[1,182],73:V},{58:183,104:rt},{58:184,104:rt},{66:[1,185],104:[2,67]},{5:[2,60]},{5:[2,105]},{5:[2,61]},{5:[2,62]},{5:[2,63]},e(C,[2,17]),e(Ot,[2,11]),{13:186,51:z,53:U,54:X},e(Ot,[2,13]),e(Ot,[2,14]),e(C,[2,19]),e(C,[2,35]),e(C,[2,36]),e(C,[2,37]),e(C,[2,38]),{16:[1,187]},e(C,[2,39]),{16:[1,188]},e(C,[2,40]),e(C,[2,41]),{16:[1,189]},e(C,[2,42]),{5:[1,190]},{5:[1,191]},{77:[1,192]},{5:[1,193]},{5:[1,194]},{58:195,104:rt},{58:196,104:rt},{58:197,104:rt},{5:[2,75]},{58:198,104:rt},{23:199,73:V},{5:[2,58]},{5:[2,59]},{23:200,73:V},e(Ot,[2,12]),e(_e,i,{7:124,41:201}),e(Vt,i,{7:126,43:202}),e(ue,i,{7:129,46:203}),e(C,[2,49]),e(C,[2,54]),e(Yt,[2,77]),e(C,[2,51]),e(C,[2,56]),{5:[2,70]},{5:[2,71]},{5:[2,72]},{5:[2,73]},{58:204,104:rt},{104:[2,66]},{17:[2,48]},{17:[2,46]},{17:[2,44]},{5:[2,74]}],defaultActions:{5:[2,1],6:[2,2],108:[2,68],109:[2,69],150:[2,60],151:[2,105],152:[2,61],153:[2,62],154:[2,63],180:[2,75],183:[2,58],184:[2,59],195:[2,70],196:[2,71],197:[2,72],198:[2,73],200:[2,66],201:[2,48],202:[2,46],203:[2,44],204:[2,74]},parseError:r.__name(function(A,D){if(D.recoverable)this.trace(A);else{var w=new Error(A);throw w.hash=D,w}},"parseError"),parse:r.__name(function(A){var D=this,w=[0],I=[],H=[null],c=[],Lt=this.table,T="",wt=0,fe=0,ve=2,ge=1,Me=c.slice.call(arguments,1),J=Object.create(this.lexer),pt={yy:{}};for(var Kt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Kt)&&(pt.yy[Kt]=this.yy[Kt]);J.setInput(A,pt.yy),pt.yy.lexer=J,pt.yy.parser=this,typeof J.yylloc>"u"&&(J.yylloc={});var Ft=J.yylloc;c.push(Ft);var Be=J.options&&J.options.ranges;typeof pt.yy.parseError=="function"?this.parseError=pt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ve(et){w.length=w.length-2*et,H.length=H.length-et,c.length=c.length-et}r.__name(Ve,"popStack");function me(){var et;return et=I.pop()||J.lex()||ge,typeof et!="number"&&(et instanceof Array&&(I=et,et=I.pop()),et=D.symbols_[et]||et),et}r.__name(me,"lex");for(var j,Et,st,qt,mt={},Pt,ot,xe,kt;;){if(Et=w[w.length-1],this.defaultActions[Et]?st=this.defaultActions[Et]:((j===null||typeof j>"u")&&(j=me()),st=Lt[Et]&&Lt[Et][j]),typeof st>"u"||!st.length||!st[0]){var Ht="";kt=[];for(Pt in Lt[Et])this.terminals_[Pt]&&Pt>ve&&kt.push("'"+this.terminals_[Pt]+"'");J.showPosition?Ht="Parse error on line "+(wt+1)+`:
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Ye=require("./chunk-2Q5K7J3B-D2pUNN7e.cjs"),r=require("./extractHeadings-DSlyjlEb.cjs"),G=require("./chunk-32BRIVSS-BHwCDqTA.cjs");var Ut=(function(){var e=r.__name(function(dt,A,D,w){for(D=D||{},w=dt.length;w--;D[dt[w]]=A);return D},"o"),t=[1,2],s=[1,3],a=[1,4],i=[2,4],o=[1,9],n=[1,11],l=[1,12],_=[1,14],h=[1,15],E=[1,17],g=[1,18],u=[1,19],R=[1,25],p=[1,26],m=[1,27],f=[1,28],x=[1,29],O=[1,30],L=[1,31],N=[1,32],S=[1,33],k=[1,34],v=[1,35],B=[1,36],Y=[1,37],z=[1,38],U=[1,39],X=[1,40],at=[1,42],Q=[1,43],q=[1,44],tt=[1,45],Z=[1,46],V=[1,47],C=[1,4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,49,50,51,53,54,56,61,62,63,64,73],Rt=[1,74],St=[1,80],b=[1,81],P=[1,82],nt=[1,83],$=[1,84],W=[1,85],gt=[1,86],Jt=[1,87],Qt=[1,88],Zt=[1,89],$t=[1,90],jt=[1,91],te=[1,92],ee=[1,93],ae=[1,94],re=[1,95],se=[1,96],ne=[1,97],ie=[1,98],oe=[1,99],ce=[1,100],le=[1,101],de=[1,102],he=[1,103],Te=[1,104],pe=[1,105],Ee=[2,78],Ot=[4,5,17,51,53,54],At=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],_e=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,50,51,53,54,56,61,62,63,64,73],Vt=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,49,51,53,54,56,61,62,63,64,73],ue=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,51,53,54,56,61,62,63,64,73],Yt=[5,52],K=[70,71,72,73],rt=[1,151],Wt={trace:r.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,INVALID:10,box_section:11,box_line:12,participant_statement:13,create:14,box:15,restOfLine:16,end:17,signal:18,autonumber:19,NUM:20,off:21,activate:22,actor:23,deactivate:24,note_statement:25,links_statement:26,link_statement:27,properties_statement:28,details_statement:29,title:30,legacy_title:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,loop:37,rect:38,opt:39,alt:40,else_sections:41,par:42,par_sections:43,par_over:44,critical:45,option_sections:46,break:47,option:48,and:49,else:50,participant:51,AS:52,participant_actor:53,destroy:54,actor_with_config:55,note:56,placement:57,text2:58,over:59,actor_pair:60,links:61,link:62,properties:63,details:64,spaceList:65,",":66,left_of:67,right_of:68,signaltype:69,"+":70,"-":71,"()":72,ACTOR:73,config_object:74,CONFIG_START:75,CONFIG_CONTENT:76,CONFIG_END:77,SOLID_OPEN_ARROW:78,DOTTED_OPEN_ARROW:79,SOLID_ARROW:80,SOLID_ARROW_TOP:81,SOLID_ARROW_BOTTOM:82,STICK_ARROW_TOP:83,STICK_ARROW_BOTTOM:84,SOLID_ARROW_TOP_DOTTED:85,SOLID_ARROW_BOTTOM_DOTTED:86,STICK_ARROW_TOP_DOTTED:87,STICK_ARROW_BOTTOM_DOTTED:88,SOLID_ARROW_TOP_REVERSE:89,SOLID_ARROW_BOTTOM_REVERSE:90,STICK_ARROW_TOP_REVERSE:91,STICK_ARROW_BOTTOM_REVERSE:92,SOLID_ARROW_TOP_REVERSE_DOTTED:93,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:94,STICK_ARROW_TOP_REVERSE_DOTTED:95,STICK_ARROW_BOTTOM_REVERSE_DOTTED:96,BIDIRECTIONAL_SOLID_ARROW:97,DOTTED_ARROW:98,BIDIRECTIONAL_DOTTED_ARROW:99,SOLID_CROSS:100,DOTTED_CROSS:101,SOLID_POINT:102,DOTTED_POINT:103,TXT:104,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",10:"INVALID",14:"create",15:"box",16:"restOfLine",17:"end",19:"autonumber",20:"NUM",21:"off",22:"activate",24:"deactivate",30:"title",31:"legacy_title",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"loop",38:"rect",39:"opt",40:"alt",42:"par",44:"par_over",45:"critical",47:"break",48:"option",49:"and",50:"else",51:"participant",52:"AS",53:"participant_actor",54:"destroy",56:"note",59:"over",61:"links",62:"link",63:"properties",64:"details",66:",",67:"left_of",68:"right_of",70:"+",71:"-",72:"()",73:"ACTOR",75:"CONFIG_START",76:"CONFIG_CONTENT",77:"CONFIG_END",78:"SOLID_OPEN_ARROW",79:"DOTTED_OPEN_ARROW",80:"SOLID_ARROW",81:"SOLID_ARROW_TOP",82:"SOLID_ARROW_BOTTOM",83:"STICK_ARROW_TOP",84:"STICK_ARROW_BOTTOM",85:"SOLID_ARROW_TOP_DOTTED",86:"SOLID_ARROW_BOTTOM_DOTTED",87:"STICK_ARROW_TOP_DOTTED",88:"STICK_ARROW_BOTTOM_DOTTED",89:"SOLID_ARROW_TOP_REVERSE",90:"SOLID_ARROW_BOTTOM_REVERSE",91:"STICK_ARROW_TOP_REVERSE",92:"STICK_ARROW_BOTTOM_REVERSE",93:"SOLID_ARROW_TOP_REVERSE_DOTTED",94:"SOLID_ARROW_BOTTOM_REVERSE_DOTTED",95:"STICK_ARROW_TOP_REVERSE_DOTTED",96:"STICK_ARROW_BOTTOM_REVERSE_DOTTED",97:"BIDIRECTIONAL_SOLID_ARROW",98:"DOTTED_ARROW",99:"BIDIRECTIONAL_DOTTED_ARROW",100:"SOLID_CROSS",101:"DOTTED_CROSS",102:"SOLID_POINT",103:"DOTTED_POINT",104:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[8,1],[11,0],[11,2],[12,2],[12,1],[12,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[46,1],[46,4],[43,1],[43,4],[41,1],[41,4],[13,5],[13,3],[13,5],[13,3],[13,3],[13,5],[13,3],[13,5],[13,3],[25,4],[25,4],[26,3],[27,3],[28,3],[29,3],[65,2],[65,1],[60,3],[60,1],[57,1],[57,1],[18,5],[18,5],[18,5],[18,5],[18,6],[18,4],[55,2],[74,3],[23,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[58,1]],performAction:r.__name(function(A,D,w,I,H,c,Lt){var T=c.length-1;switch(H){case 3:return I.apply(c[T]),c[T];case 4:case 10:this.$=[];break;case 5:case 11:c[T-1].push(c[T]),this.$=c[T-1];break;case 6:case 7:case 12:case 13:this.$=c[T];break;case 8:case 9:case 14:this.$=[];break;case 16:c[T].type="createParticipant",this.$=c[T];break;case 17:c[T-1].unshift({type:"boxStart",boxData:I.parseBoxData(c[T-2])}),c[T-1].push({type:"boxEnd",boxText:c[T-2]}),this.$=c[T-1];break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(c[T-2]),sequenceIndexStep:Number(c[T-1]),sequenceVisible:!0,signalType:I.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceIndex:Number(c[T-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:I.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:I.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:I.LINETYPE.AUTONUMBER};break;case 23:this.$={type:"activeStart",signalType:I.LINETYPE.ACTIVE_START,actor:c[T-1].actor};break;case 24:this.$={type:"activeEnd",signalType:I.LINETYPE.ACTIVE_END,actor:c[T-1].actor};break;case 30:I.setDiagramTitle(c[T].substring(6)),this.$=c[T].substring(6);break;case 31:I.setDiagramTitle(c[T].substring(7)),this.$=c[T].substring(7);break;case 32:this.$=c[T].trim(),I.setAccTitle(this.$);break;case 33:case 34:this.$=c[T].trim(),I.setAccDescription(this.$);break;case 35:c[T-1].unshift({type:"loopStart",loopText:I.parseMessage(c[T-2]),signalType:I.LINETYPE.LOOP_START}),c[T-1].push({type:"loopEnd",loopText:c[T-2],signalType:I.LINETYPE.LOOP_END}),this.$=c[T-1];break;case 36:c[T-1].unshift({type:"rectStart",color:I.parseMessage(c[T-2]),signalType:I.LINETYPE.RECT_START}),c[T-1].push({type:"rectEnd",color:I.parseMessage(c[T-2]),signalType:I.LINETYPE.RECT_END}),this.$=c[T-1];break;case 37:c[T-1].unshift({type:"optStart",optText:I.parseMessage(c[T-2]),signalType:I.LINETYPE.OPT_START}),c[T-1].push({type:"optEnd",optText:I.parseMessage(c[T-2]),signalType:I.LINETYPE.OPT_END}),this.$=c[T-1];break;case 38:c[T-1].unshift({type:"altStart",altText:I.parseMessage(c[T-2]),signalType:I.LINETYPE.ALT_START}),c[T-1].push({type:"altEnd",signalType:I.LINETYPE.ALT_END}),this.$=c[T-1];break;case 39:c[T-1].unshift({type:"parStart",parText:I.parseMessage(c[T-2]),signalType:I.LINETYPE.PAR_START}),c[T-1].push({type:"parEnd",signalType:I.LINETYPE.PAR_END}),this.$=c[T-1];break;case 40:c[T-1].unshift({type:"parStart",parText:I.parseMessage(c[T-2]),signalType:I.LINETYPE.PAR_OVER_START}),c[T-1].push({type:"parEnd",signalType:I.LINETYPE.PAR_END}),this.$=c[T-1];break;case 41:c[T-1].unshift({type:"criticalStart",criticalText:I.parseMessage(c[T-2]),signalType:I.LINETYPE.CRITICAL_START}),c[T-1].push({type:"criticalEnd",signalType:I.LINETYPE.CRITICAL_END}),this.$=c[T-1];break;case 42:c[T-1].unshift({type:"breakStart",breakText:I.parseMessage(c[T-2]),signalType:I.LINETYPE.BREAK_START}),c[T-1].push({type:"breakEnd",optText:I.parseMessage(c[T-2]),signalType:I.LINETYPE.BREAK_END}),this.$=c[T-1];break;case 44:this.$=c[T-3].concat([{type:"option",optionText:I.parseMessage(c[T-1]),signalType:I.LINETYPE.CRITICAL_OPTION},c[T]]);break;case 46:this.$=c[T-3].concat([{type:"and",parText:I.parseMessage(c[T-1]),signalType:I.LINETYPE.PAR_AND},c[T]]);break;case 48:this.$=c[T-3].concat([{type:"else",altText:I.parseMessage(c[T-1]),signalType:I.LINETYPE.ALT_ELSE},c[T]]);break;case 49:c[T-3].draw="participant",c[T-3].type="addParticipant",c[T-3].description=I.parseMessage(c[T-1]),this.$=c[T-3];break;case 50:c[T-1].draw="participant",c[T-1].type="addParticipant",this.$=c[T-1];break;case 51:c[T-3].draw="actor",c[T-3].type="addParticipant",c[T-3].description=I.parseMessage(c[T-1]),this.$=c[T-3];break;case 52:case 57:c[T-1].draw="actor",c[T-1].type="addParticipant",this.$=c[T-1];break;case 53:c[T-1].type="destroyParticipant",this.$=c[T-1];break;case 54:c[T-3].draw="participant",c[T-3].type="addParticipant",c[T-3].description=I.parseMessage(c[T-1]),this.$=c[T-3];break;case 55:c[T-1].draw="participant",c[T-1].type="addParticipant",this.$=c[T-1];break;case 56:c[T-3].draw="actor",c[T-3].type="addParticipant",c[T-3].description=I.parseMessage(c[T-1]),this.$=c[T-3];break;case 58:this.$=[c[T-1],{type:"addNote",placement:c[T-2],actor:c[T-1].actor,text:c[T]}];break;case 59:c[T-2]=[].concat(c[T-1],c[T-1]).slice(0,2),c[T-2][0]=c[T-2][0].actor,c[T-2][1]=c[T-2][1].actor,this.$=[c[T-1],{type:"addNote",placement:I.PLACEMENT.OVER,actor:c[T-2].slice(0,2),text:c[T]}];break;case 60:this.$=[c[T-1],{type:"addLinks",actor:c[T-1].actor,text:c[T]}];break;case 61:this.$=[c[T-1],{type:"addALink",actor:c[T-1].actor,text:c[T]}];break;case 62:this.$=[c[T-1],{type:"addProperties",actor:c[T-1].actor,text:c[T]}];break;case 63:this.$=[c[T-1],{type:"addDetails",actor:c[T-1].actor,text:c[T]}];break;case 66:this.$=[c[T-2],c[T]];break;case 67:this.$=c[T];break;case 68:this.$=I.PLACEMENT.LEFTOF;break;case 69:this.$=I.PLACEMENT.RIGHTOF;break;case 70:this.$=[c[T-4],c[T-1],{type:"addMessage",from:c[T-4].actor,to:c[T-1].actor,signalType:c[T-3],msg:c[T],activate:!0},{type:"activeStart",signalType:I.LINETYPE.ACTIVE_START,actor:c[T-1].actor}];break;case 71:this.$=[c[T-4],c[T-1],{type:"addMessage",from:c[T-4].actor,to:c[T-1].actor,signalType:c[T-3],msg:c[T]},{type:"activeEnd",signalType:I.LINETYPE.ACTIVE_END,actor:c[T-4].actor}];break;case 72:this.$=[c[T-4],c[T-1],{type:"addMessage",from:c[T-4].actor,to:c[T-1].actor,signalType:c[T-3],msg:c[T],activate:!0,centralConnection:I.LINETYPE.CENTRAL_CONNECTION},{type:"centralConnection",signalType:I.LINETYPE.CENTRAL_CONNECTION,actor:c[T-1].actor}];break;case 73:this.$=[c[T-4],c[T-1],{type:"addMessage",from:c[T-4].actor,to:c[T-1].actor,signalType:c[T-2],msg:c[T],activate:!1,centralConnection:I.LINETYPE.CENTRAL_CONNECTION_REVERSE},{type:"centralConnectionReverse",signalType:I.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:c[T-4].actor}];break;case 74:this.$=[c[T-5],c[T-1],{type:"addMessage",from:c[T-5].actor,to:c[T-1].actor,signalType:c[T-3],msg:c[T],activate:!0,centralConnection:I.LINETYPE.CENTRAL_CONNECTION_DUAL},{type:"centralConnection",signalType:I.LINETYPE.CENTRAL_CONNECTION,actor:c[T-1].actor},{type:"centralConnectionReverse",signalType:I.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:c[T-5].actor}];break;case 75:this.$=[c[T-3],c[T-1],{type:"addMessage",from:c[T-3].actor,to:c[T-1].actor,signalType:c[T-2],msg:c[T]}];break;case 76:this.$={type:"addParticipant",actor:c[T-1],config:c[T]};break;case 77:this.$=c[T-1].trim();break;case 78:this.$={type:"addParticipant",actor:c[T]};break;case 79:this.$=I.LINETYPE.SOLID_OPEN;break;case 80:this.$=I.LINETYPE.DOTTED_OPEN;break;case 81:this.$=I.LINETYPE.SOLID;break;case 82:this.$=I.LINETYPE.SOLID_TOP;break;case 83:this.$=I.LINETYPE.SOLID_BOTTOM;break;case 84:this.$=I.LINETYPE.STICK_TOP;break;case 85:this.$=I.LINETYPE.STICK_BOTTOM;break;case 86:this.$=I.LINETYPE.SOLID_TOP_DOTTED;break;case 87:this.$=I.LINETYPE.SOLID_BOTTOM_DOTTED;break;case 88:this.$=I.LINETYPE.STICK_TOP_DOTTED;break;case 89:this.$=I.LINETYPE.STICK_BOTTOM_DOTTED;break;case 90:this.$=I.LINETYPE.SOLID_ARROW_TOP_REVERSE;break;case 91:this.$=I.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;break;case 92:this.$=I.LINETYPE.STICK_ARROW_TOP_REVERSE;break;case 93:this.$=I.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;break;case 94:this.$=I.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;break;case 95:this.$=I.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;break;case 96:this.$=I.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;break;case 97:this.$=I.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;break;case 98:this.$=I.LINETYPE.BIDIRECTIONAL_SOLID;break;case 99:this.$=I.LINETYPE.DOTTED;break;case 100:this.$=I.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 101:this.$=I.LINETYPE.SOLID_CROSS;break;case 102:this.$=I.LINETYPE.DOTTED_CROSS;break;case 103:this.$=I.LINETYPE.SOLID_POINT;break;case 104:this.$=I.LINETYPE.DOTTED_POINT;break;case 105:this.$=I.parseMessage(c[T].trim().substring(1));break}},"anonymous"),table:[{3:1,4:t,5:s,6:a},{1:[3]},{3:5,4:t,5:s,6:a},{3:6,4:t,5:s,6:a},e([1,4,5,10,14,15,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:o,5:n,8:8,9:10,10:l,13:13,14:_,15:h,18:16,19:E,22:g,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:R,31:p,32:m,34:f,36:x,37:O,38:L,39:N,40:S,42:k,44:v,45:B,47:Y,51:z,53:U,54:X,56:at,61:Q,62:q,63:tt,64:Z,73:V},e(C,[2,5]),{9:48,13:13,14:_,15:h,18:16,19:E,22:g,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:R,31:p,32:m,34:f,36:x,37:O,38:L,39:N,40:S,42:k,44:v,45:B,47:Y,51:z,53:U,54:X,56:at,61:Q,62:q,63:tt,64:Z,73:V},e(C,[2,7]),e(C,[2,8]),e(C,[2,9]),e(C,[2,15]),{13:49,51:z,53:U,54:X},{16:[1,50]},{5:[1,51]},{5:[1,54],20:[1,52],21:[1,53]},{23:55,73:V},{23:56,73:V},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},{5:[1,61]},e(C,[2,30]),e(C,[2,31]),{33:[1,62]},{35:[1,63]},e(C,[2,34]),{16:[1,64]},{16:[1,65]},{16:[1,66]},{16:[1,67]},{16:[1,68]},{16:[1,69]},{16:[1,70]},{16:[1,71]},{23:72,55:73,73:Rt},{23:75,55:76,73:Rt},{23:77,73:V},{69:78,72:[1,79],78:St,79:b,80:P,81:nt,82:$,83:W,84:gt,85:Jt,86:Qt,87:Zt,88:$t,89:jt,90:te,91:ee,92:ae,93:re,94:se,95:ne,96:ie,97:oe,98:ce,99:le,100:de,101:he,102:Te,103:pe},{57:106,59:[1,107],67:[1,108],68:[1,109]},{23:110,73:V},{23:111,73:V},{23:112,73:V},{23:113,73:V},e([5,66,72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104],Ee),e(C,[2,6]),e(C,[2,16]),e(Ot,[2,10],{11:114}),e(C,[2,18]),{5:[1,116],20:[1,115]},{5:[1,117]},e(C,[2,22]),{5:[1,118]},{5:[1,119]},e(C,[2,25]),e(C,[2,26]),e(C,[2,27]),e(C,[2,28]),e(C,[2,29]),e(C,[2,32]),e(C,[2,33]),e(At,i,{7:120}),e(At,i,{7:121}),e(At,i,{7:122}),e(_e,i,{41:123,7:124}),e(Vt,i,{43:125,7:126}),e(Vt,i,{7:126,43:127}),e(ue,i,{46:128,7:129}),e(At,i,{7:130}),{5:[1,132],52:[1,131]},{5:[1,134],52:[1,133]},e(Yt,Ee,{74:135,75:[1,136]}),{5:[1,138],52:[1,137]},{5:[1,140],52:[1,139]},{5:[1,141]},{23:145,70:[1,142],71:[1,143],72:[1,144],73:V},{69:146,78:St,79:b,80:P,81:nt,82:$,83:W,84:gt,85:Jt,86:Qt,87:Zt,88:$t,89:jt,90:te,91:ee,92:ae,93:re,94:se,95:ne,96:ie,97:oe,98:ce,99:le,100:de,101:he,102:Te,103:pe},e(K,[2,79]),e(K,[2,80]),e(K,[2,81]),e(K,[2,82]),e(K,[2,83]),e(K,[2,84]),e(K,[2,85]),e(K,[2,86]),e(K,[2,87]),e(K,[2,88]),e(K,[2,89]),e(K,[2,90]),e(K,[2,91]),e(K,[2,92]),e(K,[2,93]),e(K,[2,94]),e(K,[2,95]),e(K,[2,96]),e(K,[2,97]),e(K,[2,98]),e(K,[2,99]),e(K,[2,100]),e(K,[2,101]),e(K,[2,102]),e(K,[2,103]),e(K,[2,104]),{23:147,73:V},{23:149,60:148,73:V},{73:[2,68]},{73:[2,69]},{58:150,104:rt},{58:152,104:rt},{58:153,104:rt},{58:154,104:rt},{4:[1,157],5:[1,159],12:156,13:158,17:[1,155],51:z,53:U,54:X},{5:[1,160]},e(C,[2,20]),e(C,[2,21]),e(C,[2,23]),e(C,[2,24]),{4:o,5:n,8:8,9:10,10:l,13:13,14:_,15:h,17:[1,161],18:16,19:E,22:g,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:R,31:p,32:m,34:f,36:x,37:O,38:L,39:N,40:S,42:k,44:v,45:B,47:Y,51:z,53:U,54:X,56:at,61:Q,62:q,63:tt,64:Z,73:V},{4:o,5:n,8:8,9:10,10:l,13:13,14:_,15:h,17:[1,162],18:16,19:E,22:g,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:R,31:p,32:m,34:f,36:x,37:O,38:L,39:N,40:S,42:k,44:v,45:B,47:Y,51:z,53:U,54:X,56:at,61:Q,62:q,63:tt,64:Z,73:V},{4:o,5:n,8:8,9:10,10:l,13:13,14:_,15:h,17:[1,163],18:16,19:E,22:g,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:R,31:p,32:m,34:f,36:x,37:O,38:L,39:N,40:S,42:k,44:v,45:B,47:Y,51:z,53:U,54:X,56:at,61:Q,62:q,63:tt,64:Z,73:V},{17:[1,164]},{4:o,5:n,8:8,9:10,10:l,13:13,14:_,15:h,17:[2,47],18:16,19:E,22:g,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:R,31:p,32:m,34:f,36:x,37:O,38:L,39:N,40:S,42:k,44:v,45:B,47:Y,50:[1,165],51:z,53:U,54:X,56:at,61:Q,62:q,63:tt,64:Z,73:V},{17:[1,166]},{4:o,5:n,8:8,9:10,10:l,13:13,14:_,15:h,17:[2,45],18:16,19:E,22:g,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:R,31:p,32:m,34:f,36:x,37:O,38:L,39:N,40:S,42:k,44:v,45:B,47:Y,49:[1,167],51:z,53:U,54:X,56:at,61:Q,62:q,63:tt,64:Z,73:V},{17:[1,168]},{17:[1,169]},{4:o,5:n,8:8,9:10,10:l,13:13,14:_,15:h,17:[2,43],18:16,19:E,22:g,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:R,31:p,32:m,34:f,36:x,37:O,38:L,39:N,40:S,42:k,44:v,45:B,47:Y,48:[1,170],51:z,53:U,54:X,56:at,61:Q,62:q,63:tt,64:Z,73:V},{4:o,5:n,8:8,9:10,10:l,13:13,14:_,15:h,17:[1,171],18:16,19:E,22:g,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:R,31:p,32:m,34:f,36:x,37:O,38:L,39:N,40:S,42:k,44:v,45:B,47:Y,51:z,53:U,54:X,56:at,61:Q,62:q,63:tt,64:Z,73:V},{16:[1,172]},e(C,[2,50]),{16:[1,173]},e(C,[2,55]),e(Yt,[2,76]),{76:[1,174]},{16:[1,175]},e(C,[2,52]),{16:[1,176]},e(C,[2,57]),e(C,[2,53]),{23:177,73:V},{23:178,73:V},{23:179,73:V},{58:180,104:rt},{23:181,72:[1,182],73:V},{58:183,104:rt},{58:184,104:rt},{66:[1,185],104:[2,67]},{5:[2,60]},{5:[2,105]},{5:[2,61]},{5:[2,62]},{5:[2,63]},e(C,[2,17]),e(Ot,[2,11]),{13:186,51:z,53:U,54:X},e(Ot,[2,13]),e(Ot,[2,14]),e(C,[2,19]),e(C,[2,35]),e(C,[2,36]),e(C,[2,37]),e(C,[2,38]),{16:[1,187]},e(C,[2,39]),{16:[1,188]},e(C,[2,40]),e(C,[2,41]),{16:[1,189]},e(C,[2,42]),{5:[1,190]},{5:[1,191]},{77:[1,192]},{5:[1,193]},{5:[1,194]},{58:195,104:rt},{58:196,104:rt},{58:197,104:rt},{5:[2,75]},{58:198,104:rt},{23:199,73:V},{5:[2,58]},{5:[2,59]},{23:200,73:V},e(Ot,[2,12]),e(_e,i,{7:124,41:201}),e(Vt,i,{7:126,43:202}),e(ue,i,{7:129,46:203}),e(C,[2,49]),e(C,[2,54]),e(Yt,[2,77]),e(C,[2,51]),e(C,[2,56]),{5:[2,70]},{5:[2,71]},{5:[2,72]},{5:[2,73]},{58:204,104:rt},{104:[2,66]},{17:[2,48]},{17:[2,46]},{17:[2,44]},{5:[2,74]}],defaultActions:{5:[2,1],6:[2,2],108:[2,68],109:[2,69],150:[2,60],151:[2,105],152:[2,61],153:[2,62],154:[2,63],180:[2,75],183:[2,58],184:[2,59],195:[2,70],196:[2,71],197:[2,72],198:[2,73],200:[2,66],201:[2,48],202:[2,46],203:[2,44],204:[2,74]},parseError:r.__name(function(A,D){if(D.recoverable)this.trace(A);else{var w=new Error(A);throw w.hash=D,w}},"parseError"),parse:r.__name(function(A){var D=this,w=[0],I=[],H=[null],c=[],Lt=this.table,T="",wt=0,fe=0,ve=2,ge=1,Me=c.slice.call(arguments,1),J=Object.create(this.lexer),pt={yy:{}};for(var Kt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Kt)&&(pt.yy[Kt]=this.yy[Kt]);J.setInput(A,pt.yy),pt.yy.lexer=J,pt.yy.parser=this,typeof J.yylloc>"u"&&(J.yylloc={});var Ft=J.yylloc;c.push(Ft);var Be=J.options&&J.options.ranges;typeof pt.yy.parseError=="function"?this.parseError=pt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ve(et){w.length=w.length-2*et,H.length=H.length-et,c.length=c.length-et}r.__name(Ve,"popStack");function me(){var et;return et=I.pop()||J.lex()||ge,typeof et!="number"&&(et instanceof Array&&(I=et,et=I.pop()),et=D.symbols_[et]||et),et}r.__name(me,"lex");for(var j,Et,st,qt,mt={},Pt,ot,xe,kt;;){if(Et=w[w.length-1],this.defaultActions[Et]?st=this.defaultActions[Et]:((j===null||typeof j>"u")&&(j=me()),st=Lt[Et]&&Lt[Et][j]),typeof st>"u"||!st.length||!st[0]){var Ht="";kt=[];for(Pt in Lt[Et])this.terminals_[Pt]&&Pt>ve&&kt.push("'"+this.terminals_[Pt]+"'");J.showPosition?Ht="Parse error on line "+(wt+1)+`:
2
2
  `+J.showPosition()+`
3
3
  Expecting `+kt.join(", ")+", got '"+(this.terminals_[j]||j)+"'":Ht="Parse error on line "+(wt+1)+": Unexpected "+(j==ge?"end of input":"'"+(this.terminals_[j]||j)+"'"),this.parseError(Ht,{text:J.match,token:this.terminals_[j]||j,line:J.yylineno,loc:Ft,expected:kt})}if(st[0]instanceof Array&&st.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Et+", token: "+j);switch(st[0]){case 1:w.push(j),H.push(J.yytext),c.push(J.yylloc),w.push(st[1]),j=null,fe=J.yyleng,T=J.yytext,wt=J.yylineno,Ft=J.yylloc;break;case 2:if(ot=this.productions_[st[1]][1],mt.$=H[H.length-ot],mt._$={first_line:c[c.length-(ot||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(ot||1)].first_column,last_column:c[c.length-1].last_column},Be&&(mt._$.range=[c[c.length-(ot||1)].range[0],c[c.length-1].range[1]]),qt=this.performAction.apply(mt,[T,fe,wt,pt.yy,st[1],H,c].concat(Me)),typeof qt<"u")return qt;ot&&(w=w.slice(0,-1*ot*2),H=H.slice(0,-1*ot),c=c.slice(0,-1*ot)),w.push(this.productions_[st[1]][0]),H.push(mt.$),c.push(mt._$),xe=Lt[w[w.length-2]][w[w.length-1]],w.push(xe);break;case 3:return!0}}return!0},"parse")},Ce=(function(){var dt={EOF:1,parseError:r.__name(function(D,w){if(this.yy.parser)this.yy.parser.parseError(D,w);else throw new Error(D)},"parseError"),setInput:r.__name(function(A,D){return this.yy=D||this.yy||{},this._input=A,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:r.__name(function(){var A=this._input[0];this.yytext+=A,this.yyleng++,this.offset++,this.match+=A,this.matched+=A;var D=A.match(/(?:\r\n?|\n).*/g);return D?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),A},"input"),unput:r.__name(function(A){var D=A.length,w=A.split(/(?:\r\n?|\n)/g);this._input=A+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-D),this.offset-=D;var I=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),w.length-1&&(this.yylineno-=w.length-1);var H=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:w?(w.length===I.length?this.yylloc.first_column:0)+I[I.length-w.length].length-w[0].length:this.yylloc.first_column-D},this.options.ranges&&(this.yylloc.range=[H[0],H[0]+this.yyleng-D]),this.yyleng=this.yytext.length,this},"unput"),more:r.__name(function(){return this._more=!0,this},"more"),reject:r.__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:r.__name(function(A){this.unput(this.match.slice(A))},"less"),pastInput:r.__name(function(){var A=this.matched.substr(0,this.matched.length-this.match.length);return(A.length>20?"...":"")+A.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:r.__name(function(){var A=this.match;return A.length<20&&(A+=this._input.substr(0,20-A.length)),(A.substr(0,20)+(A.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:r.__name(function(){var A=this.pastInput(),D=new Array(A.length+1).join("-");return A+this.upcomingInput()+`
@@ -1,6 +1,6 @@
1
- import { I as er } from "./chunk-2Q5K7J3B-C3BIc3MH.js";
2
- import { _ as x, a2 as rr, K as $, O as Yt, Q as at, X as Me, R as ar, U as sr, $ as N, J as De, z as ir, a6 as nr, G as or, A as cr, a7 as lr, a8 as hr, a9 as dr, ac as Tr, W as Wt, a5 as Q, an as Z, ao as kt, ap as Be, aq as pr, ag as Ft, ar as Er, as as Ve } from "./extractHeadings-CdLPwHlC.js";
3
- import { a as ur, b as se, g as dt, d as fr, e as ie, f as ne } from "./chunk-32BRIVSS-C37ccuiX.js";
1
+ import { I as er } from "./chunk-2Q5K7J3B-BrZPj48S.js";
2
+ import { _ as x, a2 as rr, K as $, O as Yt, Q as at, X as Me, R as ar, U as sr, $ as N, J as De, z as ir, a6 as nr, G as or, A as cr, a7 as lr, a8 as hr, a9 as dr, ac as Tr, W as Wt, a5 as Q, an as Z, ao as kt, ap as Be, aq as pr, ag as Ft, ar as Er, as as Ve } from "./extractHeadings-DkKFCMIW.js";
3
+ import { a as ur, b as se, g as dt, d as fr, e as ie, f as ne } from "./chunk-32BRIVSS-Qjp2CRZG.js";
4
4
  var ee = (function() {
5
5
  var e = /* @__PURE__ */ x(function(ut, S, v, P) {
6
6
  for (v = v || {}, P = ut.length; P--; v[ut[P]] = S) ;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./extractHeadings-DRUBnhbi.cjs");var m=1;function i(){if(!(typeof globalThis>"u"))return globalThis}n.__name(i,"getCaptureGlobal");function u(){return!!i()?.mermaidCaptureSizes}n.__name(u,"shouldCaptureSizes");function d(){return typeof location>"u"?"browser-dev":`${location.pathname}${location.search}`}n.__name(d,"capturedFromLocation");function s(o,r){const t=i();if(!t)return;const e=r.node(),p=((e&&"ownerSVGElement"in e?e.ownerSVGElement:null)??e)?.id??"(unknown)";t.mermaidCapturedSizes??=[];const a={svgId:p,sizes:o};t.mermaidCapturedSizes.push(a),t.mermaidLastCapturedSizes=a}n.__name(s,"emitCapturedSizes");function c(o,r){const t=[];for(const e of r.nodes)e.isGroup||t.push({id:e.id,width:e.width??0,height:e.height??0});t.length!==0&&s({metadata:{captureVersion:m,capturedAt:new Date().toISOString(),capturedFrom:d()},nodes:t},o)}n.__name(c,"captureNodeSizes");exports.captureNodeSizes=c;exports.shouldCaptureSizes=u;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./extractHeadings-DSlyjlEb.cjs");var m=1;function i(){if(!(typeof globalThis>"u"))return globalThis}n.__name(i,"getCaptureGlobal");function u(){return!!i()?.mermaidCaptureSizes}n.__name(u,"shouldCaptureSizes");function d(){return typeof location>"u"?"browser-dev":`${location.pathname}${location.search}`}n.__name(d,"capturedFromLocation");function s(o,r){const t=i();if(!t)return;const e=r.node(),p=((e&&"ownerSVGElement"in e?e.ownerSVGElement:null)??e)?.id??"(unknown)";t.mermaidCapturedSizes??=[];const a={svgId:p,sizes:o};t.mermaidCapturedSizes.push(a),t.mermaidLastCapturedSizes=a}n.__name(s,"emitCapturedSizes");function c(o,r){const t=[];for(const e of r.nodes)e.isGroup||t.push({id:e.id,width:e.width??0,height:e.height??0});t.length!==0&&s({metadata:{captureVersion:m,capturedAt:new Date().toISOString(),capturedFrom:d()},nodes:t},o)}n.__name(c,"captureNodeSizes");exports.captureNodeSizes=c;exports.shouldCaptureSizes=u;
@@ -1,4 +1,4 @@
1
- import { _ as o } from "./extractHeadings-CdLPwHlC.js";
1
+ import { _ as o } from "./extractHeadings-DkKFCMIW.js";
2
2
  var c = 1;
3
3
  function i() {
4
4
  if (!(typeof globalThis > "u"))
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s="data-source-lines",u=/^([1-9][0-9]{0,8})-([1-9][0-9]{0,8})$/u,o=t=>{if(typeof t!="string")return null;const e=u.exec(t);if(e===null)return null;const n=Number(e[1]),r=Number(e[2]);return r<n?null:{first:n,last:r}};exports.SOURCE_LINES_ATTRIBUTE=s;exports.parseSourceLines=o;
@@ -0,0 +1,6 @@
1
+ export declare const SOURCE_LINES_ATTRIBUTE = "data-source-lines";
2
+ export type SourceLines = {
3
+ readonly first: number;
4
+ readonly last: number;
5
+ };
6
+ export declare const parseSourceLines: (value: string | null | undefined) => SourceLines | null;
@@ -0,0 +1,11 @@
1
+ const u = "data-source-lines", s = /^([1-9][0-9]{0,8})-([1-9][0-9]{0,8})$/u, c = (t) => {
2
+ if (typeof t != "string") return null;
3
+ const n = s.exec(t);
4
+ if (n === null) return null;
5
+ const r = Number(n[1]), e = Number(n[2]);
6
+ return e < r ? null : { first: r, last: e };
7
+ };
8
+ export {
9
+ u as SOURCE_LINES_ATTRIBUTE,
10
+ c as parseSourceLines
11
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("./chunk-EX3LRPZG-BZOxrSRn.cjs"),t=require("./extractHeadings-DRUBnhbi.cjs"),H=require("./graph-BgRih2Qv.cjs"),T=require("./layout-OMlh6_XH.cjs");var z=t.__name(e=>e.append("circle").attr("class","start-state").attr("r",t.getConfig2().state.sizeUnit).attr("cx",t.getConfig2().state.padding+t.getConfig2().state.sizeUnit).attr("cy",t.getConfig2().state.padding+t.getConfig2().state.sizeUnit),"drawStartState"),L=t.__name(e=>e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",t.getConfig2().state.textHeight).attr("class","divider").attr("x2",t.getConfig2().state.textHeight*2).attr("y1",0).attr("y2",0),"drawDivider"),G=t.__name((e,n)=>{const d=e.append("text").attr("x",2*t.getConfig2().state.padding).attr("y",t.getConfig2().state.textHeight+2*t.getConfig2().state.padding).attr("font-size",t.getConfig2().state.fontSize).attr("class","state-title").text(n.id),g=d.node().getBBox();return e.insert("rect",":first-child").attr("x",t.getConfig2().state.padding).attr("y",t.getConfig2().state.padding).attr("width",g.width+2*t.getConfig2().state.padding).attr("height",g.height+2*t.getConfig2().state.padding).attr("rx",t.getConfig2().state.radius),d},"drawSimpleState"),P=t.__name((e,n)=>{const d=t.__name(function(s,m,u){const B=s.append("tspan").attr("x",2*t.getConfig2().state.padding).text(m);u||B.attr("dy",t.getConfig2().state.textHeight)},"addTspan"),o=e.append("text").attr("x",2*t.getConfig2().state.padding).attr("y",t.getConfig2().state.textHeight+1.3*t.getConfig2().state.padding).attr("font-size",t.getConfig2().state.fontSize).attr("class","state-title").text(n.descriptions[0]).node().getBBox(),l=o.height,h=e.append("text").attr("x",t.getConfig2().state.padding).attr("y",l+t.getConfig2().state.padding*.4+t.getConfig2().state.dividerMargin+t.getConfig2().state.textHeight).attr("class","state-description");let i=!0,r=!0;n.descriptions.forEach(function(s){i||(d(h,s,r),r=!1),i=!1});const y=e.append("line").attr("x1",t.getConfig2().state.padding).attr("y1",t.getConfig2().state.padding+l+t.getConfig2().state.dividerMargin/2).attr("y2",t.getConfig2().state.padding+l+t.getConfig2().state.dividerMargin/2).attr("class","descr-divider"),p=h.node().getBBox(),c=Math.max(p.width,o.width);return y.attr("x2",c+3*t.getConfig2().state.padding),e.insert("rect",":first-child").attr("x",t.getConfig2().state.padding).attr("y",t.getConfig2().state.padding).attr("width",c+2*t.getConfig2().state.padding).attr("height",p.height+l+2*t.getConfig2().state.padding).attr("rx",t.getConfig2().state.radius),e},"drawDescrState"),R=t.__name((e,n,d)=>{const g=t.getConfig2().state.padding,o=2*t.getConfig2().state.padding,l=e.node().getBBox(),h=l.width,i=l.x,r=e.append("text").attr("x",0).attr("y",t.getConfig2().state.titleShift).attr("font-size",t.getConfig2().state.fontSize).attr("class","state-title").text(n.id),p=r.node().getBBox().width+o;let c=Math.max(p,h);c===h&&(c=c+o);let s;const m=e.node().getBBox();n.doc,s=i-g,p>h&&(s=(h-c)/2+g),Math.abs(i-m.x)<g&&p>h&&(s=i-(p-h)/2);const u=1-t.getConfig2().state.textHeight;return e.insert("rect",":first-child").attr("x",s).attr("y",u).attr("class",d?"alt-composit":"composit").attr("width",c).attr("height",m.height+t.getConfig2().state.textHeight+t.getConfig2().state.titleShift+1).attr("rx","0"),r.attr("x",s+g),p<=h&&r.attr("x",i+(c-o)/2-p/2+g),e.insert("rect",":first-child").attr("x",s).attr("y",t.getConfig2().state.titleShift-t.getConfig2().state.textHeight-t.getConfig2().state.padding).attr("width",c).attr("height",t.getConfig2().state.textHeight*3).attr("rx",t.getConfig2().state.radius),e.insert("rect",":first-child").attr("x",s).attr("y",t.getConfig2().state.titleShift-t.getConfig2().state.textHeight-t.getConfig2().state.padding).attr("width",c).attr("height",m.height+3+2*t.getConfig2().state.textHeight).attr("rx",t.getConfig2().state.radius),e},"addTitleAndBox"),A=t.__name(e=>(e.append("circle").attr("class","end-state-outer").attr("r",t.getConfig2().state.sizeUnit+t.getConfig2().state.miniPadding).attr("cx",t.getConfig2().state.padding+t.getConfig2().state.sizeUnit+t.getConfig2().state.miniPadding).attr("cy",t.getConfig2().state.padding+t.getConfig2().state.sizeUnit+t.getConfig2().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",t.getConfig2().state.sizeUnit).attr("cx",t.getConfig2().state.padding+t.getConfig2().state.sizeUnit+2).attr("cy",t.getConfig2().state.padding+t.getConfig2().state.sizeUnit+2)),"drawEndState"),W=t.__name((e,n)=>{let d=t.getConfig2().state.forkWidth,g=t.getConfig2().state.forkHeight;if(n.parentId){let o=d;d=g,g=o}return e.append("rect").style("stroke","black").style("fill","black").attr("width",d).attr("height",g).attr("x",t.getConfig2().state.padding).attr("y",t.getConfig2().state.padding)},"drawForkJoinState"),U=t.__name((e,n,d,g)=>{let o=0;const l=g.append("text");l.style("text-anchor","start"),l.attr("class","noteText");let h=e.replace(/\r\n/g,"<br/>");h=h.replace(/\n/g,"<br/>");const i=h.split(t.common_default.lineBreakRegex);let r=1.25*t.getConfig2().state.noteMargin;for(const y of i){const p=y.trim();if(p.length>0){const c=l.append("tspan");if(c.text(p),r===0){const s=c.node().getBBox();r+=s.height}o+=r,c.attr("x",n+t.getConfig2().state.noteMargin),c.attr("y",d+o+1.25*t.getConfig2().state.noteMargin)}}return{textWidth:l.node().getBBox().width,textHeight:o}},"_drawLongText"),D=t.__name((e,n)=>{n.attr("class","state-note");const d=n.append("rect").attr("x",0).attr("y",t.getConfig2().state.padding),g=n.append("g"),{textWidth:o,textHeight:l}=U(e,0,0,g);return d.attr("height",l+2*t.getConfig2().state.noteMargin),d.attr("width",o+t.getConfig2().state.noteMargin*2),d},"drawNote"),k=t.__name(function(e,n){const d=n.id,g={id:d,label:n.id,width:0,height:0},o=e.append("g").attr("id",d).attr("class","stateGroup");n.type==="start"&&z(o),n.type==="end"&&A(o),(n.type==="fork"||n.type==="join")&&W(o,n),n.type==="note"&&D(n.note.text,o),n.type==="divider"&&L(o),n.type==="default"&&n.descriptions.length===0&&G(o,n),n.type==="default"&&n.descriptions.length>0&&P(o,n);const l=o.node().getBBox();return g.width=l.width+2*t.getConfig2().state.padding,g.height=l.height+2*t.getConfig2().state.padding,g},"drawState"),N=0,F=t.__name(function(e,n,d){const g=t.__name(function(r){switch(r){case _.StateDB.relationType.AGGREGATION:return"aggregation";case _.StateDB.relationType.EXTENSION:return"extension";case _.StateDB.relationType.COMPOSITION:return"composition";case _.StateDB.relationType.DEPENDENCY:return"dependency"}},"getRelationType");n.points=n.points.filter(r=>!Number.isNaN(r.y));const o=n.points,l=t.line().x(function(r){return r.x}).y(function(r){return r.y}).curve(t.curveBasis),h=e.append("path").attr("d",l(o)).attr("id","edge"+N).attr("class","transition");let i="";if(t.getConfig2().state.arrowMarkerAbsolute&&(i=t.getUrl(!0)),h.attr("marker-end","url("+i+"#"+g(_.StateDB.relationType.DEPENDENCY)+"End)"),d.title!==void 0){const r=e.append("g").attr("class","stateLabel"),{x:y,y:p}=t.utils_default.calcLabelPosition(n.points),c=t.common_default.getRows(d.title);let s=0;const m=[];let u=0,B=0;for(let x=0;x<=c.length;x++){const f=r.append("text").attr("text-anchor","middle").text(c[x]).attr("x",y).attr("y",p+s),C=f.node().getBBox();u=Math.max(u,C.width),B=Math.min(B,C.x),t.log.info(C.x,y,p+s),s===0&&(s=f.node().getBBox().height,t.log.info("Title height",s,p)),m.push(f)}let S=s*c.length;if(c.length>1){const x=(c.length-1)*s*.5;m.forEach((f,C)=>f.attr("y",p+C*s-x)),S=s*c.length}const a=r.node().getBBox();r.insert("rect",":first-child").attr("class","box").attr("x",y-u/2-t.getConfig2().state.padding/2).attr("y",p-S/2-t.getConfig2().state.padding/2-3.5).attr("width",u+t.getConfig2().state.padding).attr("height",S+t.getConfig2().state.padding),t.log.info(a)}N++},"drawEdge"),w,E={},O=t.__name(function(){},"setConf"),X=t.__name(function(e){e.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"insertMarkers"),q=t.__name(function(e,n,d,g){w=t.getConfig2().state;const o=t.getConfig2().securityLevel;let l;o==="sandbox"&&(l=t.select("#i"+n));const h=o==="sandbox"?t.select(l.nodes()[0].contentDocument.body):t.select("body"),i=o==="sandbox"?l.nodes()[0].contentDocument:document;t.log.debug("Rendering diagram "+e);const r=h.select(`[id='${n}']`);X(r);const y=g.db.getRootDoc(),p=r.append("g").attr("id",n+"-root");M(y,p,void 0,!1,h,i,g);const c=w.padding,s=r.node().getBBox(),m=s.width+c*2,u=s.height+c*2,B=m*1.75;t.configureSvgSize(r,u,B,w.useMaxWidth),r.attr("viewBox",`${s.x-w.padding} ${s.y-w.padding} `+m+" "+u)},"draw"),J=t.__name(e=>e?e.length*w.fontSizeFactor:1,"getLabelWidth"),M=t.__name((e,n,d,g,o,l,h)=>{const i=new H.Graph({compound:!0,multigraph:!0});let r,y=!0;for(r=0;r<e.length;r++)if(e[r].stmt==="relation"){y=!1;break}d?i.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:y?1:w.edgeLengthFactor,nodeSep:y?1:50,isMultiGraph:!0}):i.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:y?1:w.edgeLengthFactor,nodeSep:y?1:50,ranker:"tight-tree",isMultiGraph:!0}),i.setDefaultEdgeLabel(function(){return{}});const p=h.db.getStates(),c=h.db.getRelations(),s=Object.keys(p);for(const a of s){const x=p[a];d&&(x.parentId=d);let f;if(x.doc){let C=n.append("g").attr("id",x.id).attr("class","stateGroup");f=M(x.doc,C,x.id,!g,o,l,h);{C=R(C,x,g);let b=C.node().getBBox();f.width=b.width,f.height=b.height+w.padding/2,E[x.id]={y:w.compositTitleSize}}}else f=k(n,x,i);if(x.note){const C={descriptions:[],id:x.id+"-note",note:x.note,type:"note"},b=k(n,C,i);x.note.position==="left of"?(i.setNode(f.id+"-note",b),i.setNode(f.id,f)):(i.setNode(f.id,f),i.setNode(f.id+"-note",b)),i.setParent(f.id,f.id+"-group"),i.setParent(f.id+"-note",f.id+"-group")}else i.setNode(f.id,f)}t.log.debug("Count=",i.nodeCount(),i);let m=0;c.forEach(function(a){m++,t.log.debug("Setting edge",a),i.setEdge(a.id1,a.id2,{relation:a,width:J(a.title),height:w.labelHeight*t.common_default.getRows(a.title).length,labelpos:"c"},"id"+m)}),T.layout(i),t.log.debug("Graph after layout",i.nodes());const u=n.node();i.nodes().forEach(function(a){a!==void 0&&i.node(a)!==void 0?(t.log.warn("Node "+a+": "+JSON.stringify(i.node(a))),o.select("#"+u.id+" #"+a).attr("transform","translate("+(i.node(a).x-i.node(a).width/2)+","+(i.node(a).y+(E[a]?E[a].y:0)-i.node(a).height/2)+" )"),o.select("#"+u.id+" #"+a).attr("data-x-shift",i.node(a).x-i.node(a).width/2),l.querySelectorAll("#"+u.id+" #"+a+" .divider").forEach(f=>{const C=f.parentElement;let b=0,v=0;C&&(C.parentElement&&(b=C.parentElement.getBBox().width),v=parseInt(C.getAttribute("data-x-shift"),10),Number.isNaN(v)&&(v=0)),f.setAttribute("x1",0-v+8),f.setAttribute("x2",b-v-8)})):t.log.debug("No Node "+a+": "+JSON.stringify(i.node(a)))});let B=u.getBBox();i.edges().forEach(function(a){a!==void 0&&i.edge(a)!==void 0&&(t.log.debug("Edge "+a.v+" -> "+a.w+": "+JSON.stringify(i.edge(a))),F(n,i.edge(a),i.edge(a).relation))}),B=u.getBBox();const S={id:d||"root",label:d||"root",width:0,height:0};return S.width=B.width+2*w.padding,S.height=B.height+2*w.padding,t.log.debug("Doc rendered",S,i),S},"renderDoc"),Y={setConf:O,draw:q},$={parser:_.stateDiagram_default,get db(){return new _.StateDB(1)},renderer:Y,styles:_.styles_default,init:t.__name(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};exports.diagram=$;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("./chunk-EX3LRPZG-CcWHrBHu.cjs"),t=require("./extractHeadings-DSlyjlEb.cjs"),H=require("./graph-BgRih2Qv.cjs"),T=require("./layout-OMlh6_XH.cjs");var z=t.__name(e=>e.append("circle").attr("class","start-state").attr("r",t.getConfig2().state.sizeUnit).attr("cx",t.getConfig2().state.padding+t.getConfig2().state.sizeUnit).attr("cy",t.getConfig2().state.padding+t.getConfig2().state.sizeUnit),"drawStartState"),L=t.__name(e=>e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",t.getConfig2().state.textHeight).attr("class","divider").attr("x2",t.getConfig2().state.textHeight*2).attr("y1",0).attr("y2",0),"drawDivider"),G=t.__name((e,n)=>{const d=e.append("text").attr("x",2*t.getConfig2().state.padding).attr("y",t.getConfig2().state.textHeight+2*t.getConfig2().state.padding).attr("font-size",t.getConfig2().state.fontSize).attr("class","state-title").text(n.id),g=d.node().getBBox();return e.insert("rect",":first-child").attr("x",t.getConfig2().state.padding).attr("y",t.getConfig2().state.padding).attr("width",g.width+2*t.getConfig2().state.padding).attr("height",g.height+2*t.getConfig2().state.padding).attr("rx",t.getConfig2().state.radius),d},"drawSimpleState"),P=t.__name((e,n)=>{const d=t.__name(function(s,m,u){const B=s.append("tspan").attr("x",2*t.getConfig2().state.padding).text(m);u||B.attr("dy",t.getConfig2().state.textHeight)},"addTspan"),o=e.append("text").attr("x",2*t.getConfig2().state.padding).attr("y",t.getConfig2().state.textHeight+1.3*t.getConfig2().state.padding).attr("font-size",t.getConfig2().state.fontSize).attr("class","state-title").text(n.descriptions[0]).node().getBBox(),l=o.height,h=e.append("text").attr("x",t.getConfig2().state.padding).attr("y",l+t.getConfig2().state.padding*.4+t.getConfig2().state.dividerMargin+t.getConfig2().state.textHeight).attr("class","state-description");let i=!0,r=!0;n.descriptions.forEach(function(s){i||(d(h,s,r),r=!1),i=!1});const y=e.append("line").attr("x1",t.getConfig2().state.padding).attr("y1",t.getConfig2().state.padding+l+t.getConfig2().state.dividerMargin/2).attr("y2",t.getConfig2().state.padding+l+t.getConfig2().state.dividerMargin/2).attr("class","descr-divider"),p=h.node().getBBox(),c=Math.max(p.width,o.width);return y.attr("x2",c+3*t.getConfig2().state.padding),e.insert("rect",":first-child").attr("x",t.getConfig2().state.padding).attr("y",t.getConfig2().state.padding).attr("width",c+2*t.getConfig2().state.padding).attr("height",p.height+l+2*t.getConfig2().state.padding).attr("rx",t.getConfig2().state.radius),e},"drawDescrState"),R=t.__name((e,n,d)=>{const g=t.getConfig2().state.padding,o=2*t.getConfig2().state.padding,l=e.node().getBBox(),h=l.width,i=l.x,r=e.append("text").attr("x",0).attr("y",t.getConfig2().state.titleShift).attr("font-size",t.getConfig2().state.fontSize).attr("class","state-title").text(n.id),p=r.node().getBBox().width+o;let c=Math.max(p,h);c===h&&(c=c+o);let s;const m=e.node().getBBox();n.doc,s=i-g,p>h&&(s=(h-c)/2+g),Math.abs(i-m.x)<g&&p>h&&(s=i-(p-h)/2);const u=1-t.getConfig2().state.textHeight;return e.insert("rect",":first-child").attr("x",s).attr("y",u).attr("class",d?"alt-composit":"composit").attr("width",c).attr("height",m.height+t.getConfig2().state.textHeight+t.getConfig2().state.titleShift+1).attr("rx","0"),r.attr("x",s+g),p<=h&&r.attr("x",i+(c-o)/2-p/2+g),e.insert("rect",":first-child").attr("x",s).attr("y",t.getConfig2().state.titleShift-t.getConfig2().state.textHeight-t.getConfig2().state.padding).attr("width",c).attr("height",t.getConfig2().state.textHeight*3).attr("rx",t.getConfig2().state.radius),e.insert("rect",":first-child").attr("x",s).attr("y",t.getConfig2().state.titleShift-t.getConfig2().state.textHeight-t.getConfig2().state.padding).attr("width",c).attr("height",m.height+3+2*t.getConfig2().state.textHeight).attr("rx",t.getConfig2().state.radius),e},"addTitleAndBox"),A=t.__name(e=>(e.append("circle").attr("class","end-state-outer").attr("r",t.getConfig2().state.sizeUnit+t.getConfig2().state.miniPadding).attr("cx",t.getConfig2().state.padding+t.getConfig2().state.sizeUnit+t.getConfig2().state.miniPadding).attr("cy",t.getConfig2().state.padding+t.getConfig2().state.sizeUnit+t.getConfig2().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",t.getConfig2().state.sizeUnit).attr("cx",t.getConfig2().state.padding+t.getConfig2().state.sizeUnit+2).attr("cy",t.getConfig2().state.padding+t.getConfig2().state.sizeUnit+2)),"drawEndState"),W=t.__name((e,n)=>{let d=t.getConfig2().state.forkWidth,g=t.getConfig2().state.forkHeight;if(n.parentId){let o=d;d=g,g=o}return e.append("rect").style("stroke","black").style("fill","black").attr("width",d).attr("height",g).attr("x",t.getConfig2().state.padding).attr("y",t.getConfig2().state.padding)},"drawForkJoinState"),U=t.__name((e,n,d,g)=>{let o=0;const l=g.append("text");l.style("text-anchor","start"),l.attr("class","noteText");let h=e.replace(/\r\n/g,"<br/>");h=h.replace(/\n/g,"<br/>");const i=h.split(t.common_default.lineBreakRegex);let r=1.25*t.getConfig2().state.noteMargin;for(const y of i){const p=y.trim();if(p.length>0){const c=l.append("tspan");if(c.text(p),r===0){const s=c.node().getBBox();r+=s.height}o+=r,c.attr("x",n+t.getConfig2().state.noteMargin),c.attr("y",d+o+1.25*t.getConfig2().state.noteMargin)}}return{textWidth:l.node().getBBox().width,textHeight:o}},"_drawLongText"),D=t.__name((e,n)=>{n.attr("class","state-note");const d=n.append("rect").attr("x",0).attr("y",t.getConfig2().state.padding),g=n.append("g"),{textWidth:o,textHeight:l}=U(e,0,0,g);return d.attr("height",l+2*t.getConfig2().state.noteMargin),d.attr("width",o+t.getConfig2().state.noteMargin*2),d},"drawNote"),k=t.__name(function(e,n){const d=n.id,g={id:d,label:n.id,width:0,height:0},o=e.append("g").attr("id",d).attr("class","stateGroup");n.type==="start"&&z(o),n.type==="end"&&A(o),(n.type==="fork"||n.type==="join")&&W(o,n),n.type==="note"&&D(n.note.text,o),n.type==="divider"&&L(o),n.type==="default"&&n.descriptions.length===0&&G(o,n),n.type==="default"&&n.descriptions.length>0&&P(o,n);const l=o.node().getBBox();return g.width=l.width+2*t.getConfig2().state.padding,g.height=l.height+2*t.getConfig2().state.padding,g},"drawState"),N=0,F=t.__name(function(e,n,d){const g=t.__name(function(r){switch(r){case _.StateDB.relationType.AGGREGATION:return"aggregation";case _.StateDB.relationType.EXTENSION:return"extension";case _.StateDB.relationType.COMPOSITION:return"composition";case _.StateDB.relationType.DEPENDENCY:return"dependency"}},"getRelationType");n.points=n.points.filter(r=>!Number.isNaN(r.y));const o=n.points,l=t.line().x(function(r){return r.x}).y(function(r){return r.y}).curve(t.curveBasis),h=e.append("path").attr("d",l(o)).attr("id","edge"+N).attr("class","transition");let i="";if(t.getConfig2().state.arrowMarkerAbsolute&&(i=t.getUrl(!0)),h.attr("marker-end","url("+i+"#"+g(_.StateDB.relationType.DEPENDENCY)+"End)"),d.title!==void 0){const r=e.append("g").attr("class","stateLabel"),{x:y,y:p}=t.utils_default.calcLabelPosition(n.points),c=t.common_default.getRows(d.title);let s=0;const m=[];let u=0,B=0;for(let x=0;x<=c.length;x++){const f=r.append("text").attr("text-anchor","middle").text(c[x]).attr("x",y).attr("y",p+s),C=f.node().getBBox();u=Math.max(u,C.width),B=Math.min(B,C.x),t.log.info(C.x,y,p+s),s===0&&(s=f.node().getBBox().height,t.log.info("Title height",s,p)),m.push(f)}let S=s*c.length;if(c.length>1){const x=(c.length-1)*s*.5;m.forEach((f,C)=>f.attr("y",p+C*s-x)),S=s*c.length}const a=r.node().getBBox();r.insert("rect",":first-child").attr("class","box").attr("x",y-u/2-t.getConfig2().state.padding/2).attr("y",p-S/2-t.getConfig2().state.padding/2-3.5).attr("width",u+t.getConfig2().state.padding).attr("height",S+t.getConfig2().state.padding),t.log.info(a)}N++},"drawEdge"),w,E={},O=t.__name(function(){},"setConf"),X=t.__name(function(e){e.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"insertMarkers"),q=t.__name(function(e,n,d,g){w=t.getConfig2().state;const o=t.getConfig2().securityLevel;let l;o==="sandbox"&&(l=t.select("#i"+n));const h=o==="sandbox"?t.select(l.nodes()[0].contentDocument.body):t.select("body"),i=o==="sandbox"?l.nodes()[0].contentDocument:document;t.log.debug("Rendering diagram "+e);const r=h.select(`[id='${n}']`);X(r);const y=g.db.getRootDoc(),p=r.append("g").attr("id",n+"-root");M(y,p,void 0,!1,h,i,g);const c=w.padding,s=r.node().getBBox(),m=s.width+c*2,u=s.height+c*2,B=m*1.75;t.configureSvgSize(r,u,B,w.useMaxWidth),r.attr("viewBox",`${s.x-w.padding} ${s.y-w.padding} `+m+" "+u)},"draw"),J=t.__name(e=>e?e.length*w.fontSizeFactor:1,"getLabelWidth"),M=t.__name((e,n,d,g,o,l,h)=>{const i=new H.Graph({compound:!0,multigraph:!0});let r,y=!0;for(r=0;r<e.length;r++)if(e[r].stmt==="relation"){y=!1;break}d?i.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:y?1:w.edgeLengthFactor,nodeSep:y?1:50,isMultiGraph:!0}):i.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:y?1:w.edgeLengthFactor,nodeSep:y?1:50,ranker:"tight-tree",isMultiGraph:!0}),i.setDefaultEdgeLabel(function(){return{}});const p=h.db.getStates(),c=h.db.getRelations(),s=Object.keys(p);for(const a of s){const x=p[a];d&&(x.parentId=d);let f;if(x.doc){let C=n.append("g").attr("id",x.id).attr("class","stateGroup");f=M(x.doc,C,x.id,!g,o,l,h);{C=R(C,x,g);let b=C.node().getBBox();f.width=b.width,f.height=b.height+w.padding/2,E[x.id]={y:w.compositTitleSize}}}else f=k(n,x,i);if(x.note){const C={descriptions:[],id:x.id+"-note",note:x.note,type:"note"},b=k(n,C,i);x.note.position==="left of"?(i.setNode(f.id+"-note",b),i.setNode(f.id,f)):(i.setNode(f.id,f),i.setNode(f.id+"-note",b)),i.setParent(f.id,f.id+"-group"),i.setParent(f.id+"-note",f.id+"-group")}else i.setNode(f.id,f)}t.log.debug("Count=",i.nodeCount(),i);let m=0;c.forEach(function(a){m++,t.log.debug("Setting edge",a),i.setEdge(a.id1,a.id2,{relation:a,width:J(a.title),height:w.labelHeight*t.common_default.getRows(a.title).length,labelpos:"c"},"id"+m)}),T.layout(i),t.log.debug("Graph after layout",i.nodes());const u=n.node();i.nodes().forEach(function(a){a!==void 0&&i.node(a)!==void 0?(t.log.warn("Node "+a+": "+JSON.stringify(i.node(a))),o.select("#"+u.id+" #"+a).attr("transform","translate("+(i.node(a).x-i.node(a).width/2)+","+(i.node(a).y+(E[a]?E[a].y:0)-i.node(a).height/2)+" )"),o.select("#"+u.id+" #"+a).attr("data-x-shift",i.node(a).x-i.node(a).width/2),l.querySelectorAll("#"+u.id+" #"+a+" .divider").forEach(f=>{const C=f.parentElement;let b=0,v=0;C&&(C.parentElement&&(b=C.parentElement.getBBox().width),v=parseInt(C.getAttribute("data-x-shift"),10),Number.isNaN(v)&&(v=0)),f.setAttribute("x1",0-v+8),f.setAttribute("x2",b-v-8)})):t.log.debug("No Node "+a+": "+JSON.stringify(i.node(a)))});let B=u.getBBox();i.edges().forEach(function(a){a!==void 0&&i.edge(a)!==void 0&&(t.log.debug("Edge "+a.v+" -> "+a.w+": "+JSON.stringify(i.edge(a))),F(n,i.edge(a),i.edge(a).relation))}),B=u.getBBox();const S={id:d||"root",label:d||"root",width:0,height:0};return S.width=B.width+2*w.padding,S.height=B.height+2*w.padding,t.log.debug("Doc rendered",S,i),S},"renderDoc"),Y={setConf:O,draw:q},$={parser:_.stateDiagram_default,get db(){return new _.StateDB(1)},renderer:Y,styles:_.styles_default,init:t.__name(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};exports.diagram=$;
@@ -1,5 +1,5 @@
1
- import { s as A, a as W, S as N } from "./chunk-EX3LRPZG-Co0Bql0-.js";
2
- import { _ as f, K as t, O as H, Q as S, R as P, $ as z, au as _, av as U, ar as C, a5 as F } from "./extractHeadings-CdLPwHlC.js";
1
+ import { s as A, a as W, S as N } from "./chunk-EX3LRPZG-DOly63cQ.js";
2
+ import { _ as f, K as t, O as H, Q as S, R as P, $ as z, au as _, av as U, ar as C, a5 as F } from "./extractHeadings-DkKFCMIW.js";
3
3
  import { G as O } from "./graph-DAHC4kPm.js";
4
4
  import { l as J } from "./layout-DBbo_M5I.js";
5
5
  var X = /* @__PURE__ */ f((e) => e.append("circle").attr("class", "start-state").attr("r", t().state.sizeUnit).attr("cx", t().state.padding + t().state.sizeUnit).attr("cy", t().state.padding + t().state.sizeUnit), "drawStartState"), D = /* @__PURE__ */ f((e) => e.append("line").style("stroke", "grey").style("stroke-dasharray", "3").attr("x1", t().state.textHeight).attr("class", "divider").attr("x2", t().state.textHeight * 2).attr("y1", 0).attr("y2", 0), "drawDivider"), Y = /* @__PURE__ */ f((e, i) => {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./chunk-EX3LRPZG-BZOxrSRn.cjs"),r=require("./extractHeadings-DRUBnhbi.cjs");var a={parser:t.stateDiagram_default,get db(){return new t.StateDB(2)},renderer:t.stateRenderer_v3_unified_default,styles:t.styles_default,init:r.__name(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};exports.diagram=a;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./chunk-EX3LRPZG-CcWHrBHu.cjs"),r=require("./extractHeadings-DSlyjlEb.cjs");var a={parser:t.stateDiagram_default,get db(){return new t.StateDB(2)},renderer:t.stateRenderer_v3_unified_default,styles:t.styles_default,init:r.__name(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};exports.diagram=a;
@@ -1,5 +1,5 @@
1
- import { s as a, b as t, a as r, S as s } from "./chunk-EX3LRPZG-Co0Bql0-.js";
2
- import { _ as i } from "./extractHeadings-CdLPwHlC.js";
1
+ import { s as a, b as t, a as r, S as s } from "./chunk-EX3LRPZG-DOly63cQ.js";
2
+ import { _ as i } from "./extractHeadings-DkKFCMIW.js";
3
3
  var _ = {
4
4
  parser: r,
5
5
  get db() {
@@ -1,5 +1,5 @@
1
- import { c as Tr } from "./chunk-RYQCIY6F-O6wbIIFF.js";
2
- import { a$ as Er, b0 as wr, b1 as Ar, b2 as Rr, Q as Ke, K as Nr, aT as Or, aS as Pr, aU as Br, b6 as kr, b8 as Fr, ag as _r, b5 as Dr, b9 as Hr, a5 as Oe, ba as Ye, _ as d, bb as Ao } from "./extractHeadings-CdLPwHlC.js";
1
+ import { c as Tr } from "./chunk-RYQCIY6F-D7rBCtF6.js";
2
+ import { a$ as Er, b0 as wr, b1 as Ar, b2 as Rr, Q as Ke, K as Nr, aT as Or, aS as Pr, aU as Br, b6 as kr, b8 as Fr, ag as _r, b5 as Dr, b9 as Hr, a5 as Oe, ba as Ye, _ as d, bb as Ao } from "./extractHeadings-DkKFCMIW.js";
3
3
  import { G as Xr } from "./graph-DAHC4kPm.js";
4
4
  async function Fo(t, e) {
5
5
  const n = new Xr({
@@ -22,7 +22,7 @@ async function Fo(t, e) {
22
22
  for (const I of o)
23
23
  n.setEdge(I.start, I.end, { ...I }, I.id), e.edges.some((p) => p.id === I.id) || e.edges.push(I);
24
24
  if (globalThis.mermaidCaptureSizes) {
25
- const { captureNodeSizes: I } = await import("./sizeCapture-X5ZJPWSS-nb9uU-BE.js");
25
+ const { captureNodeSizes: I } = await import("./sizeCapture-X5ZJPWSS-DyErW1EK.js");
26
26
  I(t, e);
27
27
  }
28
28
  return {