mio-previewer 0.2.4 → 0.2.6

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 (126) hide show
  1. package/README.md +21 -0
  2. package/dist/{_basePickBy-Ds916b4A.js → _basePickBy-Cvu7Iu4t.js} +2 -2
  3. package/dist/{_basePickBy-CchxaBwE.cjs → _basePickBy-knwkNz9F.cjs} +1 -1
  4. package/dist/{_baseUniq-whBxDDgs.cjs → _baseUniq-BKEAlJrZ.cjs} +1 -1
  5. package/dist/{_baseUniq-BxZhoo7H.js → _baseUniq-CoKmXiIw.js} +1 -1
  6. package/dist/{arc-RvMqCw5K.cjs → arc-BfjXrLnR.cjs} +1 -1
  7. package/dist/{arc-w_hCIKN-.js → arc-BsRKvhqb.js} +1 -1
  8. package/dist/{architecture-O4VJ6CD3-Hbx8rp1l.cjs → architecture-O4VJ6CD3-DKKcPWid.cjs} +1 -1
  9. package/dist/{architecture-O4VJ6CD3-BtQXTxm0.js → architecture-O4VJ6CD3-DlitxIel.js} +1 -1
  10. package/dist/{architectureDiagram-VXUJARFQ-BNuD9gh0.js → architectureDiagram-VXUJARFQ-8GIkEy9U.js} +3 -3
  11. package/dist/{architectureDiagram-VXUJARFQ-T_lx5B0h.cjs → architectureDiagram-VXUJARFQ-DwTvTWFB.cjs} +1 -1
  12. package/dist/{blockDiagram-VD42YOAC-wo2IS6do.js → blockDiagram-VD42YOAC-DtIfTXmw.js} +5 -5
  13. package/dist/{blockDiagram-VD42YOAC-C6q1K50p.cjs → blockDiagram-VD42YOAC-tZpHwF_P.cjs} +1 -1
  14. package/dist/{c4Diagram-YG6GDRKO-BYVjZbLc.cjs → c4Diagram-YG6GDRKO-Cz3j8MTC.cjs} +1 -1
  15. package/dist/{c4Diagram-YG6GDRKO-BARgaZ6j.js → c4Diagram-YG6GDRKO-DZf99xT5.js} +2 -2
  16. package/dist/channel-Bbqi9ugt.cjs +1 -0
  17. package/dist/{channel-C81-sVNx.js → channel-DZBn438o.js} +1 -1
  18. package/dist/{chunk-4BX2VUAB-CKu8ehi_.js → chunk-4BX2VUAB-Dvc-GoPz.js} +1 -1
  19. package/dist/{chunk-4BX2VUAB-BoUcWquB.cjs → chunk-4BX2VUAB-_eF8ggdb.cjs} +1 -1
  20. package/dist/{chunk-55IACEB6-CqqSwg0o.js → chunk-55IACEB6-6yjykpr1.js} +1 -1
  21. package/dist/{chunk-55IACEB6-CYlo1Pby.cjs → chunk-55IACEB6-DmO5L9Gv.cjs} +1 -1
  22. package/dist/{chunk-B4BG7PRW-BvbLJPGX.cjs → chunk-B4BG7PRW-BYhHW-T1.cjs} +1 -1
  23. package/dist/{chunk-B4BG7PRW-BAxW-xMm.js → chunk-B4BG7PRW-Ct08Bj-m.js} +4 -4
  24. package/dist/{chunk-DI55MBZ5-DfANuNAw.js → chunk-DI55MBZ5-C3g3BX3L.js} +3 -3
  25. package/dist/{chunk-DI55MBZ5-BrdhY3HM.cjs → chunk-DI55MBZ5-CGUTXZFz.cjs} +1 -1
  26. package/dist/{chunk-FMBD7UC4-DI61pMYI.js → chunk-FMBD7UC4-B9snbeN7.js} +1 -1
  27. package/dist/{chunk-FMBD7UC4-Cy53k0uE.cjs → chunk-FMBD7UC4-u8JkSV8g.cjs} +1 -1
  28. package/dist/{chunk-QN33PNHL-DQojHaHz.js → chunk-QN33PNHL-CFMCEb4D.js} +1 -1
  29. package/dist/{chunk-QN33PNHL-CbA0TFT5.cjs → chunk-QN33PNHL-U6fNQFd3.cjs} +1 -1
  30. package/dist/{chunk-QZHKN3VN-BGoIJuaN.cjs → chunk-QZHKN3VN-CL8OjJgP.cjs} +1 -1
  31. package/dist/{chunk-QZHKN3VN-CQp-UwBA.js → chunk-QZHKN3VN-DAAMblgK.js} +1 -1
  32. package/dist/{chunk-TZMSLE5B-BMuysxv2.js → chunk-TZMSLE5B-DEcy899f.js} +1 -1
  33. package/dist/{chunk-TZMSLE5B-nafE0KGh.cjs → chunk-TZMSLE5B-DjIJI2Y-.cjs} +1 -1
  34. package/dist/{classDiagram-2ON5EDUG-BCC_pUko.cjs → classDiagram-2ON5EDUG-BOhHIGzd.cjs} +1 -1
  35. package/dist/{classDiagram-v2-WZHVMYZB-DguGS0Ee.js → classDiagram-2ON5EDUG-CpNYkLpu.js} +2 -2
  36. package/dist/{classDiagram-v2-WZHVMYZB-BCC_pUko.cjs → classDiagram-v2-WZHVMYZB-BOhHIGzd.cjs} +1 -1
  37. package/dist/{classDiagram-2ON5EDUG-DguGS0Ee.js → classDiagram-v2-WZHVMYZB-CpNYkLpu.js} +2 -2
  38. package/dist/{clone-CnPc6rbc.js → clone-0YTYNqyj.js} +1 -1
  39. package/dist/clone-BWf1bMJ2.cjs +1 -0
  40. package/dist/{cose-bilkent-S5V4N54A-1QsVgIrW.js → cose-bilkent-S5V4N54A-CBkmKAir.js} +1 -1
  41. package/dist/{cose-bilkent-S5V4N54A-C7BvuPwg.cjs → cose-bilkent-S5V4N54A-CXsWxbYE.cjs} +1 -1
  42. package/dist/{dagre-6UL2VRFP-BDO_6Xym.cjs → dagre-6UL2VRFP-BMc1dXqz.cjs} +1 -1
  43. package/dist/{dagre-6UL2VRFP-kHTRcvwc.js → dagre-6UL2VRFP-Drl27WRd.js} +6 -6
  44. package/dist/{diagram-PSM6KHXK-BC7MSdmh.cjs → diagram-PSM6KHXK-Czzv2tRq.cjs} +1 -1
  45. package/dist/{diagram-PSM6KHXK-DauewiNq.js → diagram-PSM6KHXK-hk7S3HaO.js} +4 -4
  46. package/dist/{diagram-QEK2KX5R-BGfUPO54.js → diagram-QEK2KX5R-CFisa_mz.js} +3 -3
  47. package/dist/{diagram-QEK2KX5R-DcJVSNI1.cjs → diagram-QEK2KX5R-X7uU2_mf.cjs} +1 -1
  48. package/dist/{diagram-S2PKOQOG-DO-Y8dIg.cjs → diagram-S2PKOQOG-CahM5LoL.cjs} +1 -1
  49. package/dist/{diagram-S2PKOQOG-D3SrMu20.js → diagram-S2PKOQOG-Dj25VCdV.js} +3 -3
  50. package/dist/{erDiagram-Q2GNP2WA-B3zHr6EH.js → erDiagram-Q2GNP2WA-BAJYThgQ.js} +4 -4
  51. package/dist/{erDiagram-Q2GNP2WA-DMI3tmxl.cjs → erDiagram-Q2GNP2WA-BcN7es5w.cjs} +1 -1
  52. package/dist/{flowDiagram-NV44I4VS-5A4_sBNY.cjs → flowDiagram-NV44I4VS-DSH4zSz8.cjs} +1 -1
  53. package/dist/{flowDiagram-NV44I4VS-DV2Tm_SV.js → flowDiagram-NV44I4VS-sDLidiZI.js} +5 -5
  54. package/dist/{ganttDiagram-LVOFAZNH-DNy0-tSg.js → ganttDiagram-LVOFAZNH-BOqH3ODt.js} +2 -2
  55. package/dist/{ganttDiagram-LVOFAZNH-Di_mSpM4.cjs → ganttDiagram-LVOFAZNH-DB-rPLnm.cjs} +1 -1
  56. package/dist/{gitGraph-ZV4HHKMB-BXmCVlzv.js → gitGraph-ZV4HHKMB-CztmV0rG.js} +1 -1
  57. package/dist/{gitGraph-ZV4HHKMB-ClUpLCLy.cjs → gitGraph-ZV4HHKMB-gB1ESpsj.cjs} +1 -1
  58. package/dist/{gitGraphDiagram-NY62KEGX-D3eFVYzT.js → gitGraphDiagram-NY62KEGX-BAQ8jnrA.js} +4 -4
  59. package/dist/{gitGraphDiagram-NY62KEGX-Zo3VoU22.cjs → gitGraphDiagram-NY62KEGX-BBZujICZ.cjs} +1 -1
  60. package/dist/{graph-m7uOc_-F.cjs → graph-CQASZLoy.cjs} +1 -1
  61. package/dist/{graph-BppjhE7S.js → graph-OxVrrvxE.js} +2 -2
  62. package/dist/{info-63CPKGFF-leGTSLBn.cjs → info-63CPKGFF-BKVcTirE.cjs} +1 -1
  63. package/dist/info-63CPKGFF-DlFBOu7s.js +5 -0
  64. package/dist/{infoDiagram-F6ZHWCRC-CuWLV5GJ.js → infoDiagram-F6ZHWCRC-BoNJWkl-.js} +2 -2
  65. package/dist/{infoDiagram-F6ZHWCRC-Bo0BEUXt.cjs → infoDiagram-F6ZHWCRC-CCl9mvNx.cjs} +1 -1
  66. package/dist/{journeyDiagram-XKPGCS4Q-WqQqmIZQ.js → journeyDiagram-XKPGCS4Q-Jte0d65j.js} +4 -4
  67. package/dist/{journeyDiagram-XKPGCS4Q-DheOFUdb.cjs → journeyDiagram-XKPGCS4Q-Kbhog3Rq.cjs} +1 -1
  68. package/dist/{kanban-definition-3W4ZIXB7-q_cWMP1i.js → kanban-definition-3W4ZIXB7-WRSFo9Dq.js} +2 -2
  69. package/dist/{kanban-definition-3W4ZIXB7-a3IAMecl.cjs → kanban-definition-3W4ZIXB7-j6dPKa6V.cjs} +1 -1
  70. package/dist/{layout-DV16dSUq.cjs → layout-CUCO1yPf.cjs} +1 -1
  71. package/dist/{layout-DhMhVr5t.js → layout-DvLWn8fk.js} +4 -4
  72. package/dist/{linear-C5E6OAPI.cjs → linear-BUfiCrOq.cjs} +1 -1
  73. package/dist/{linear-8gMkkacL.js → linear-BxS2YLGD.js} +1 -1
  74. package/dist/loadCss-BbD6mdv-.cjs +1 -0
  75. package/dist/loadCss-DS0Fuaxe.js +8 -0
  76. package/dist/{mermaid-parser.core-9iy8B9V0.js → mermaid-parser.core-1I1w3Zgm.js} +11 -11
  77. package/dist/{mermaid-parser.core-DXuaRCas.cjs → mermaid-parser.core-4NX9G4IH.cjs} +2 -2
  78. package/dist/{mindmap-definition-VGOIOE7T-CjEd2rXr.cjs → mindmap-definition-VGOIOE7T-C8xxgKhK.cjs} +1 -1
  79. package/dist/{mindmap-definition-VGOIOE7T-B6t4cUlP.js → mindmap-definition-VGOIOE7T-DgzaZCK3.js} +3 -3
  80. package/dist/mio-previewer.cjs.js +2 -2
  81. package/dist/mio-previewer.css +1 -1
  82. package/dist/mio-previewer.es.js +327 -324
  83. package/dist/{packet-HUATNLJX-CYtkz2HS.cjs → packet-HUATNLJX-CfnSJe9e.cjs} +1 -1
  84. package/dist/{packet-HUATNLJX-CecbH2cP.js → packet-HUATNLJX-oxj0w6Sn.js} +1 -1
  85. package/dist/pie-WTHONI2E-ChPJLMIJ.js +5 -0
  86. package/dist/{pie-WTHONI2E-BVzJHGWL.cjs → pie-WTHONI2E-Ke2d-cd5.cjs} +1 -1
  87. package/dist/{pieDiagram-ADFJNKIX-CM-wBUyg.cjs → pieDiagram-ADFJNKIX-BXLT29rs.cjs} +1 -1
  88. package/dist/{pieDiagram-ADFJNKIX-DYzGKzSp.js → pieDiagram-ADFJNKIX-CjKZybqs.js} +4 -4
  89. package/dist/plugins/custom.cjs.js +1 -1
  90. package/dist/plugins/custom.es.js +2 -2
  91. package/dist/plugins/markdown-it.cjs.js +2 -2
  92. package/dist/plugins/markdown-it.es.js +71 -65
  93. package/dist/{quadrantDiagram-AYHSOK5B-Clw2nM_F.cjs → quadrantDiagram-AYHSOK5B-Bofh6KQl.cjs} +1 -1
  94. package/dist/{quadrantDiagram-AYHSOK5B-DkYY9pfA.js → quadrantDiagram-AYHSOK5B-gQcJ1QWD.js} +2 -2
  95. package/dist/{radar-NJJJXTRR-B8I5-yID.cjs → radar-NJJJXTRR-EmqSi7YJ.cjs} +1 -1
  96. package/dist/radar-NJJJXTRR-W7CAyBug.js +5 -0
  97. package/dist/{requirementDiagram-UZGBJVZJ-1-1thDpH.cjs → requirementDiagram-UZGBJVZJ-CiEGzFpl.cjs} +1 -1
  98. package/dist/{requirementDiagram-UZGBJVZJ-D4pp4uE_.js → requirementDiagram-UZGBJVZJ-CpDnEwpX.js} +3 -3
  99. package/dist/{sankeyDiagram-TZEHDZUN-D0u5zYJv.js → sankeyDiagram-TZEHDZUN-BS9xQbTO.js} +1 -1
  100. package/dist/{sankeyDiagram-TZEHDZUN-Bq9aHWZK.cjs → sankeyDiagram-TZEHDZUN-C78i3iVS.cjs} +1 -1
  101. package/dist/{sequenceDiagram-WL72ISMW--pd3fceR.js → sequenceDiagram-WL72ISMW-C7lWiaCu.js} +3 -3
  102. package/dist/{sequenceDiagram-WL72ISMW-BrHzXdLN.cjs → sequenceDiagram-WL72ISMW-gVgKh8qv.cjs} +1 -1
  103. package/dist/{stateDiagram-FKZM4ZOC-DWwZaiBT.cjs → stateDiagram-FKZM4ZOC-DffdRxr_.cjs} +1 -1
  104. package/dist/{stateDiagram-FKZM4ZOC-DfHT3KVT.js → stateDiagram-FKZM4ZOC-U0f1-N-V.js} +4 -4
  105. package/dist/{stateDiagram-v2-4FDKWEC3-1pP7FlNK.cjs → stateDiagram-v2-4FDKWEC3-1xCdWqps.cjs} +1 -1
  106. package/dist/{stateDiagram-v2-4FDKWEC3-C1fPJITj.js → stateDiagram-v2-4FDKWEC3-CZdj0Qdf.js} +2 -2
  107. package/dist/{timeline-definition-IT6M3QCI-BB_6kHnb.js → timeline-definition-IT6M3QCI-BvOTgc1D.js} +2 -2
  108. package/dist/{timeline-definition-IT6M3QCI-B0tadNst.cjs → timeline-definition-IT6M3QCI-jtIb5KKf.cjs} +1 -1
  109. package/dist/{treemap-75Q7IDZK-CgLssXEg.js → treemap-75Q7IDZK-CnpUZ5Rr.js} +1 -1
  110. package/dist/{treemap-75Q7IDZK-D90M2J-n.cjs → treemap-75Q7IDZK-Ct1uQXSD.cjs} +1 -1
  111. package/dist/types/plugins/custom/codeBlockPlugin.d.ts +2 -0
  112. package/dist/types/plugins/custom/mermaidPlugin.d.ts +2 -0
  113. package/dist/types/plugins/markdown-it/index.d.ts +2 -1
  114. package/dist/types/plugins/markdown-it/katexPlugin.d.ts +5 -0
  115. package/dist/types/types.d.ts +8 -0
  116. package/dist/types/utils/loadCss.d.ts +1 -0
  117. package/dist/{viewer-Dx2UknAc.cjs → viewer-D_fHatZf.cjs} +49 -49
  118. package/dist/{viewer-B5_Hr-DQ.js → viewer-dmRgjht5.js} +2361 -2357
  119. package/dist/{xychartDiagram-PRI3JC2R-Dd_ozcYK.cjs → xychartDiagram-PRI3JC2R-CNg-5JJ5.cjs} +1 -1
  120. package/dist/{xychartDiagram-PRI3JC2R-B13oZeiR.js → xychartDiagram-PRI3JC2R-D43m_ZWr.js} +2 -2
  121. package/package.json +1 -1
  122. package/dist/channel-CAzdqsw9.cjs +0 -1
  123. package/dist/clone-CYnFnmYN.cjs +0 -1
  124. package/dist/info-63CPKGFF-DRrY45Pb.js +0 -5
  125. package/dist/pie-WTHONI2E-BzR8py1z.js +0 -5
  126. package/dist/radar-NJJJXTRR-CpMwqsqo.js +0 -5
@@ -1,6 +1,6 @@
1
- import { a as we, b as Xt, g as ct, d as ve, c as Jt, e as Qt } from "./chunk-TZMSLE5B-BMuysxv2.js";
2
- import { _ as f, n as Ie, c as st, d as St, l as Q, j as re, e as Le, f as _e, k as I, b as se, s as Ae, p as ke, a as Pe, g as Ne, q as Se, t as Me, J as Re, y as De, i as Mt, u as W, L as z, M as _t, N as ie, Z as Ce, O as Oe, P as ne, E as Ht } from "./viewer-B5_Hr-DQ.js";
3
- import { I as Be } from "./chunk-QZHKN3VN-CQp-UwBA.js";
1
+ import { a as we, b as Xt, g as ct, d as ve, c as Jt, e as Qt } from "./chunk-TZMSLE5B-DEcy899f.js";
2
+ import { _ as f, n as Ie, c as st, d as St, l as Q, j as re, e as Le, f as _e, k as I, b as se, s as Ae, p as ke, a as Pe, g as Ne, q as Se, t as Me, J as Re, y as De, i as Mt, u as W, L as z, M as _t, N as ie, Z as Ce, O as Oe, P as ne, E as Ht } from "./viewer-dmRgjht5.js";
3
+ import { I as Be } from "./chunk-QZHKN3VN-DAAMblgK.js";
4
4
  var Ut = (function() {
5
5
  var e = /* @__PURE__ */ f(function(pt, v, A, L) {
6
6
  for (A = A || {}, L = pt.length; L--; A[pt[L]] = v) ;
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const V=require("./chunk-TZMSLE5B-nafE0KGh.cjs"),i=require("./viewer-Dx2UknAc.cjs"),ne=require("./chunk-QZHKN3VN-BGoIJuaN.cjs");var Ot=(function(){var e=i.__name(function(ot,w,L,v){for(L=L||{},v=ot.length;v--;L[ot[v]]=w);return L},"o"),t=[1,2],o=[1,3],a=[1,4],r=[2,4],n=[1,9],l=[1,11],d=[1,13],c=[1,14],s=[1,16],u=[1,17],f=[1,18],x=[1,24],m=[1,25],E=[1,26],b=[1,27],A=[1,28],P=[1,29],N=[1,30],C=[1,31],O=[1,32],F=[1,33],q=[1,34],X=[1,35],j=[1,36],z=[1,37],H=[1,38],W=[1,39],R=[1,41],Q=[1,42],K=[1,43],Z=[1,44],tt=[1,45],M=[1,46],T=[1,4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,48,49,50,52,53,55,60,61,62,63,71],I=[2,71],U=[4,5,16,50,52,53],J=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,55,60,61,62,63,71],S=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,49,50,52,53,55,60,61,62,63,71],Nt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,48,50,52,53,55,60,61,62,63,71],Yt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,50,52,53,55,60,61,62,63,71],st=[69,70,71],it=[1,127],St={trace:i.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,box_section:10,box_line:11,participant_statement:12,create:13,box:14,restOfLine:15,end:16,signal:17,autonumber:18,NUM:19,off:20,activate:21,actor:22,deactivate:23,note_statement:24,links_statement:25,link_statement:26,properties_statement:27,details_statement:28,title:29,legacy_title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,loop:36,rect:37,opt:38,alt:39,else_sections:40,par:41,par_sections:42,par_over:43,critical:44,option_sections:45,break:46,option:47,and:48,else:49,participant:50,AS:51,participant_actor:52,destroy:53,actor_with_config:54,note:55,placement:56,text2:57,over:58,actor_pair:59,links:60,link:61,properties:62,details:63,spaceList:64,",":65,left_of:66,right_of:67,signaltype:68,"+":69,"-":70,ACTOR:71,config_object:72,CONFIG_START:73,CONFIG_CONTENT:74,CONFIG_END:75,SOLID_OPEN_ARROW:76,DOTTED_OPEN_ARROW:77,SOLID_ARROW:78,BIDIRECTIONAL_SOLID_ARROW:79,DOTTED_ARROW:80,BIDIRECTIONAL_DOTTED_ARROW:81,SOLID_CROSS:82,DOTTED_CROSS:83,SOLID_POINT:84,DOTTED_POINT:85,TXT:86,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",13:"create",14:"box",15:"restOfLine",16:"end",18:"autonumber",19:"NUM",20:"off",21:"activate",23:"deactivate",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",41:"par",43:"par_over",44:"critical",46:"break",47:"option",48:"and",49:"else",50:"participant",51:"AS",52:"participant_actor",53:"destroy",55:"note",58:"over",60:"links",61:"link",62:"properties",63:"details",65:",",66:"left_of",67:"right_of",69:"+",70:"-",71:"ACTOR",73:"CONFIG_START",74:"CONFIG_CONTENT",75:"CONFIG_END",76:"SOLID_OPEN_ARROW",77:"DOTTED_OPEN_ARROW",78:"SOLID_ARROW",79:"BIDIRECTIONAL_SOLID_ARROW",80:"DOTTED_ARROW",81:"BIDIRECTIONAL_DOTTED_ARROW",82:"SOLID_CROSS",83:"DOTTED_CROSS",84:"SOLID_POINT",85:"DOTTED_POINT",86:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[10,0],[10,2],[11,2],[11,1],[11,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],[45,1],[45,4],[42,1],[42,4],[40,1],[40,4],[12,5],[12,3],[12,5],[12,3],[12,3],[12,3],[24,4],[24,4],[25,3],[26,3],[27,3],[28,3],[64,2],[64,1],[59,3],[59,1],[56,1],[56,1],[17,5],[17,5],[17,4],[54,2],[72,3],[22,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[57,1]],performAction:i.__name(function(w,L,v,y,D,p,Tt){var g=p.length-1;switch(D){case 3:return y.apply(p[g]),p[g];case 4:case 9:this.$=[];break;case 5:case 10:p[g-1].push(p[g]),this.$=p[g-1];break;case 6:case 7:case 11:case 12:this.$=p[g];break;case 8:case 13:this.$=[];break;case 15:p[g].type="createParticipant",this.$=p[g];break;case 16:p[g-1].unshift({type:"boxStart",boxData:y.parseBoxData(p[g-2])}),p[g-1].push({type:"boxEnd",boxText:p[g-2]}),this.$=p[g-1];break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(p[g-2]),sequenceIndexStep:Number(p[g-1]),sequenceVisible:!0,signalType:y.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(p[g-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:y.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:y.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:y.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"activeStart",signalType:y.LINETYPE.ACTIVE_START,actor:p[g-1].actor};break;case 23:this.$={type:"activeEnd",signalType:y.LINETYPE.ACTIVE_END,actor:p[g-1].actor};break;case 29:y.setDiagramTitle(p[g].substring(6)),this.$=p[g].substring(6);break;case 30:y.setDiagramTitle(p[g].substring(7)),this.$=p[g].substring(7);break;case 31:this.$=p[g].trim(),y.setAccTitle(this.$);break;case 32:case 33:this.$=p[g].trim(),y.setAccDescription(this.$);break;case 34:p[g-1].unshift({type:"loopStart",loopText:y.parseMessage(p[g-2]),signalType:y.LINETYPE.LOOP_START}),p[g-1].push({type:"loopEnd",loopText:p[g-2],signalType:y.LINETYPE.LOOP_END}),this.$=p[g-1];break;case 35:p[g-1].unshift({type:"rectStart",color:y.parseMessage(p[g-2]),signalType:y.LINETYPE.RECT_START}),p[g-1].push({type:"rectEnd",color:y.parseMessage(p[g-2]),signalType:y.LINETYPE.RECT_END}),this.$=p[g-1];break;case 36:p[g-1].unshift({type:"optStart",optText:y.parseMessage(p[g-2]),signalType:y.LINETYPE.OPT_START}),p[g-1].push({type:"optEnd",optText:y.parseMessage(p[g-2]),signalType:y.LINETYPE.OPT_END}),this.$=p[g-1];break;case 37:p[g-1].unshift({type:"altStart",altText:y.parseMessage(p[g-2]),signalType:y.LINETYPE.ALT_START}),p[g-1].push({type:"altEnd",signalType:y.LINETYPE.ALT_END}),this.$=p[g-1];break;case 38:p[g-1].unshift({type:"parStart",parText:y.parseMessage(p[g-2]),signalType:y.LINETYPE.PAR_START}),p[g-1].push({type:"parEnd",signalType:y.LINETYPE.PAR_END}),this.$=p[g-1];break;case 39:p[g-1].unshift({type:"parStart",parText:y.parseMessage(p[g-2]),signalType:y.LINETYPE.PAR_OVER_START}),p[g-1].push({type:"parEnd",signalType:y.LINETYPE.PAR_END}),this.$=p[g-1];break;case 40:p[g-1].unshift({type:"criticalStart",criticalText:y.parseMessage(p[g-2]),signalType:y.LINETYPE.CRITICAL_START}),p[g-1].push({type:"criticalEnd",signalType:y.LINETYPE.CRITICAL_END}),this.$=p[g-1];break;case 41:p[g-1].unshift({type:"breakStart",breakText:y.parseMessage(p[g-2]),signalType:y.LINETYPE.BREAK_START}),p[g-1].push({type:"breakEnd",optText:y.parseMessage(p[g-2]),signalType:y.LINETYPE.BREAK_END}),this.$=p[g-1];break;case 43:this.$=p[g-3].concat([{type:"option",optionText:y.parseMessage(p[g-1]),signalType:y.LINETYPE.CRITICAL_OPTION},p[g]]);break;case 45:this.$=p[g-3].concat([{type:"and",parText:y.parseMessage(p[g-1]),signalType:y.LINETYPE.PAR_AND},p[g]]);break;case 47:this.$=p[g-3].concat([{type:"else",altText:y.parseMessage(p[g-1]),signalType:y.LINETYPE.ALT_ELSE},p[g]]);break;case 48:p[g-3].draw="participant",p[g-3].type="addParticipant",p[g-3].description=y.parseMessage(p[g-1]),this.$=p[g-3];break;case 49:p[g-1].draw="participant",p[g-1].type="addParticipant",this.$=p[g-1];break;case 50:p[g-3].draw="actor",p[g-3].type="addParticipant",p[g-3].description=y.parseMessage(p[g-1]),this.$=p[g-3];break;case 51:p[g-1].draw="actor",p[g-1].type="addParticipant",this.$=p[g-1];break;case 52:p[g-1].type="destroyParticipant",this.$=p[g-1];break;case 53:p[g-1].draw="participant",p[g-1].type="addParticipant",this.$=p[g-1];break;case 54:this.$=[p[g-1],{type:"addNote",placement:p[g-2],actor:p[g-1].actor,text:p[g]}];break;case 55:p[g-2]=[].concat(p[g-1],p[g-1]).slice(0,2),p[g-2][0]=p[g-2][0].actor,p[g-2][1]=p[g-2][1].actor,this.$=[p[g-1],{type:"addNote",placement:y.PLACEMENT.OVER,actor:p[g-2].slice(0,2),text:p[g]}];break;case 56:this.$=[p[g-1],{type:"addLinks",actor:p[g-1].actor,text:p[g]}];break;case 57:this.$=[p[g-1],{type:"addALink",actor:p[g-1].actor,text:p[g]}];break;case 58:this.$=[p[g-1],{type:"addProperties",actor:p[g-1].actor,text:p[g]}];break;case 59:this.$=[p[g-1],{type:"addDetails",actor:p[g-1].actor,text:p[g]}];break;case 62:this.$=[p[g-2],p[g]];break;case 63:this.$=p[g];break;case 64:this.$=y.PLACEMENT.LEFTOF;break;case 65:this.$=y.PLACEMENT.RIGHTOF;break;case 66:this.$=[p[g-4],p[g-1],{type:"addMessage",from:p[g-4].actor,to:p[g-1].actor,signalType:p[g-3],msg:p[g],activate:!0},{type:"activeStart",signalType:y.LINETYPE.ACTIVE_START,actor:p[g-1].actor}];break;case 67:this.$=[p[g-4],p[g-1],{type:"addMessage",from:p[g-4].actor,to:p[g-1].actor,signalType:p[g-3],msg:p[g]},{type:"activeEnd",signalType:y.LINETYPE.ACTIVE_END,actor:p[g-4].actor}];break;case 68:this.$=[p[g-3],p[g-1],{type:"addMessage",from:p[g-3].actor,to:p[g-1].actor,signalType:p[g-2],msg:p[g]}];break;case 69:this.$={type:"addParticipant",actor:p[g-1],config:p[g]};break;case 70:this.$=p[g-1].trim();break;case 71:this.$={type:"addParticipant",actor:p[g]};break;case 72:this.$=y.LINETYPE.SOLID_OPEN;break;case 73:this.$=y.LINETYPE.DOTTED_OPEN;break;case 74:this.$=y.LINETYPE.SOLID;break;case 75:this.$=y.LINETYPE.BIDIRECTIONAL_SOLID;break;case 76:this.$=y.LINETYPE.DOTTED;break;case 77:this.$=y.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 78:this.$=y.LINETYPE.SOLID_CROSS;break;case 79:this.$=y.LINETYPE.DOTTED_CROSS;break;case 80:this.$=y.LINETYPE.SOLID_POINT;break;case 81:this.$=y.LINETYPE.DOTTED_POINT;break;case 82:this.$=y.parseMessage(p[g].trim().substring(1));break}},"anonymous"),table:[{3:1,4:t,5:o,6:a},{1:[3]},{3:5,4:t,5:o,6:a},{3:6,4:t,5:o,6:a},e([1,4,5,13,14,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,55,60,61,62,63,71],r,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:n,5:l,8:8,9:10,12:12,13:d,14:c,17:15,18:s,21:u,22:40,23:f,24:19,25:20,26:21,27:22,28:23,29:x,30:m,31:E,33:b,35:A,36:P,37:N,38:C,39:O,41:F,43:q,44:X,46:j,50:z,52:H,53:W,55:R,60:Q,61:K,62:Z,63:tt,71:M},e(T,[2,5]),{9:47,12:12,13:d,14:c,17:15,18:s,21:u,22:40,23:f,24:19,25:20,26:21,27:22,28:23,29:x,30:m,31:E,33:b,35:A,36:P,37:N,38:C,39:O,41:F,43:q,44:X,46:j,50:z,52:H,53:W,55:R,60:Q,61:K,62:Z,63:tt,71:M},e(T,[2,7]),e(T,[2,8]),e(T,[2,14]),{12:48,50:z,52:H,53:W},{15:[1,49]},{5:[1,50]},{5:[1,53],19:[1,51],20:[1,52]},{22:54,71:M},{22:55,71:M},{5:[1,56]},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},e(T,[2,29]),e(T,[2,30]),{32:[1,61]},{34:[1,62]},e(T,[2,33]),{15:[1,63]},{15:[1,64]},{15:[1,65]},{15:[1,66]},{15:[1,67]},{15:[1,68]},{15:[1,69]},{15:[1,70]},{22:71,54:72,71:[1,73]},{22:74,71:M},{22:75,71:M},{68:76,76:[1,77],77:[1,78],78:[1,79],79:[1,80],80:[1,81],81:[1,82],82:[1,83],83:[1,84],84:[1,85],85:[1,86]},{56:87,58:[1,88],66:[1,89],67:[1,90]},{22:91,71:M},{22:92,71:M},{22:93,71:M},{22:94,71:M},e([5,51,65,76,77,78,79,80,81,82,83,84,85,86],I),e(T,[2,6]),e(T,[2,15]),e(U,[2,9],{10:95}),e(T,[2,17]),{5:[1,97],19:[1,96]},{5:[1,98]},e(T,[2,21]),{5:[1,99]},{5:[1,100]},e(T,[2,24]),e(T,[2,25]),e(T,[2,26]),e(T,[2,27]),e(T,[2,28]),e(T,[2,31]),e(T,[2,32]),e(J,r,{7:101}),e(J,r,{7:102}),e(J,r,{7:103}),e(S,r,{40:104,7:105}),e(Nt,r,{42:106,7:107}),e(Nt,r,{7:107,42:108}),e(Yt,r,{45:109,7:110}),e(J,r,{7:111}),{5:[1,113],51:[1,112]},{5:[1,114]},e([5,51],I,{72:115,73:[1,116]}),{5:[1,118],51:[1,117]},{5:[1,119]},{22:122,69:[1,120],70:[1,121],71:M},e(st,[2,72]),e(st,[2,73]),e(st,[2,74]),e(st,[2,75]),e(st,[2,76]),e(st,[2,77]),e(st,[2,78]),e(st,[2,79]),e(st,[2,80]),e(st,[2,81]),{22:123,71:M},{22:125,59:124,71:M},{71:[2,64]},{71:[2,65]},{57:126,86:it},{57:128,86:it},{57:129,86:it},{57:130,86:it},{4:[1,133],5:[1,135],11:132,12:134,16:[1,131],50:z,52:H,53:W},{5:[1,136]},e(T,[2,19]),e(T,[2,20]),e(T,[2,22]),e(T,[2,23]),{4:n,5:l,8:8,9:10,12:12,13:d,14:c,16:[1,137],17:15,18:s,21:u,22:40,23:f,24:19,25:20,26:21,27:22,28:23,29:x,30:m,31:E,33:b,35:A,36:P,37:N,38:C,39:O,41:F,43:q,44:X,46:j,50:z,52:H,53:W,55:R,60:Q,61:K,62:Z,63:tt,71:M},{4:n,5:l,8:8,9:10,12:12,13:d,14:c,16:[1,138],17:15,18:s,21:u,22:40,23:f,24:19,25:20,26:21,27:22,28:23,29:x,30:m,31:E,33:b,35:A,36:P,37:N,38:C,39:O,41:F,43:q,44:X,46:j,50:z,52:H,53:W,55:R,60:Q,61:K,62:Z,63:tt,71:M},{4:n,5:l,8:8,9:10,12:12,13:d,14:c,16:[1,139],17:15,18:s,21:u,22:40,23:f,24:19,25:20,26:21,27:22,28:23,29:x,30:m,31:E,33:b,35:A,36:P,37:N,38:C,39:O,41:F,43:q,44:X,46:j,50:z,52:H,53:W,55:R,60:Q,61:K,62:Z,63:tt,71:M},{16:[1,140]},{4:n,5:l,8:8,9:10,12:12,13:d,14:c,16:[2,46],17:15,18:s,21:u,22:40,23:f,24:19,25:20,26:21,27:22,28:23,29:x,30:m,31:E,33:b,35:A,36:P,37:N,38:C,39:O,41:F,43:q,44:X,46:j,49:[1,141],50:z,52:H,53:W,55:R,60:Q,61:K,62:Z,63:tt,71:M},{16:[1,142]},{4:n,5:l,8:8,9:10,12:12,13:d,14:c,16:[2,44],17:15,18:s,21:u,22:40,23:f,24:19,25:20,26:21,27:22,28:23,29:x,30:m,31:E,33:b,35:A,36:P,37:N,38:C,39:O,41:F,43:q,44:X,46:j,48:[1,143],50:z,52:H,53:W,55:R,60:Q,61:K,62:Z,63:tt,71:M},{16:[1,144]},{16:[1,145]},{4:n,5:l,8:8,9:10,12:12,13:d,14:c,16:[2,42],17:15,18:s,21:u,22:40,23:f,24:19,25:20,26:21,27:22,28:23,29:x,30:m,31:E,33:b,35:A,36:P,37:N,38:C,39:O,41:F,43:q,44:X,46:j,47:[1,146],50:z,52:H,53:W,55:R,60:Q,61:K,62:Z,63:tt,71:M},{4:n,5:l,8:8,9:10,12:12,13:d,14:c,16:[1,147],17:15,18:s,21:u,22:40,23:f,24:19,25:20,26:21,27:22,28:23,29:x,30:m,31:E,33:b,35:A,36:P,37:N,38:C,39:O,41:F,43:q,44:X,46:j,50:z,52:H,53:W,55:R,60:Q,61:K,62:Z,63:tt,71:M},{15:[1,148]},e(T,[2,49]),e(T,[2,53]),{5:[2,69]},{74:[1,149]},{15:[1,150]},e(T,[2,51]),e(T,[2,52]),{22:151,71:M},{22:152,71:M},{57:153,86:it},{57:154,86:it},{57:155,86:it},{65:[1,156],86:[2,63]},{5:[2,56]},{5:[2,82]},{5:[2,57]},{5:[2,58]},{5:[2,59]},e(T,[2,16]),e(U,[2,10]),{12:157,50:z,52:H,53:W},e(U,[2,12]),e(U,[2,13]),e(T,[2,18]),e(T,[2,34]),e(T,[2,35]),e(T,[2,36]),e(T,[2,37]),{15:[1,158]},e(T,[2,38]),{15:[1,159]},e(T,[2,39]),e(T,[2,40]),{15:[1,160]},e(T,[2,41]),{5:[1,161]},{75:[1,162]},{5:[1,163]},{57:164,86:it},{57:165,86:it},{5:[2,68]},{5:[2,54]},{5:[2,55]},{22:166,71:M},e(U,[2,11]),e(S,r,{7:105,40:167}),e(Nt,r,{7:107,42:168}),e(Yt,r,{7:110,45:169}),e(T,[2,48]),{5:[2,70]},e(T,[2,50]),{5:[2,66]},{5:[2,67]},{86:[2,62]},{16:[2,47]},{16:[2,45]},{16:[2,43]}],defaultActions:{5:[2,1],6:[2,2],89:[2,64],90:[2,65],115:[2,69],126:[2,56],127:[2,82],128:[2,57],129:[2,58],130:[2,59],153:[2,68],154:[2,54],155:[2,55],162:[2,70],164:[2,66],165:[2,67],166:[2,62],167:[2,47],168:[2,45],169:[2,43]},parseError:i.__name(function(w,L){if(L.recoverable)this.trace(w);else{var v=new Error(w);throw v.hash=L,v}},"parseError"),parse:i.__name(function(w){var L=this,v=[0],y=[],D=[null],p=[],Tt=this.table,g="",bt=0,Wt=0,ae=2,Ft=1,se=p.slice.call(arguments,1),Y=Object.create(this.lexer),dt={yy:{}};for(var Mt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Mt)&&(dt.yy[Mt]=this.yy[Mt]);Y.setInput(w,dt.yy),dt.yy.lexer=Y,dt.yy.parser=this,typeof Y.yylloc>"u"&&(Y.yylloc={});var Rt=Y.yylloc;p.push(Rt);var ie=Y.options&&Y.options.ranges;typeof dt.yy.parseError=="function"?this.parseError=dt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function re($){v.length=v.length-2*$,D.length=D.length-$,p.length=p.length-$}i.__name(re,"popStack");function qt(){var $;return $=y.pop()||Y.lex()||Ft,typeof $!="number"&&($ instanceof Array&&(y=$,$=y.pop()),$=L.symbols_[$]||$),$}i.__name(qt,"lex");for(var G,pt,et,Dt,ft={},wt,rt,zt,vt;;){if(pt=v[v.length-1],this.defaultActions[pt]?et=this.defaultActions[pt]:((G===null||typeof G>"u")&&(G=qt()),et=Tt[pt]&&Tt[pt][G]),typeof et>"u"||!et.length||!et[0]){var Ct="";vt=[];for(wt in Tt[pt])this.terminals_[wt]&&wt>ae&&vt.push("'"+this.terminals_[wt]+"'");Y.showPosition?Ct="Parse error on line "+(bt+1)+`:
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const V=require("./chunk-TZMSLE5B-DjIJI2Y-.cjs"),i=require("./viewer-D_fHatZf.cjs"),ne=require("./chunk-QZHKN3VN-CL8OjJgP.cjs");var Ot=(function(){var e=i.__name(function(ot,w,L,v){for(L=L||{},v=ot.length;v--;L[ot[v]]=w);return L},"o"),t=[1,2],o=[1,3],a=[1,4],r=[2,4],n=[1,9],l=[1,11],d=[1,13],c=[1,14],s=[1,16],u=[1,17],f=[1,18],x=[1,24],m=[1,25],E=[1,26],b=[1,27],A=[1,28],P=[1,29],N=[1,30],C=[1,31],O=[1,32],F=[1,33],q=[1,34],X=[1,35],j=[1,36],z=[1,37],H=[1,38],W=[1,39],R=[1,41],Q=[1,42],K=[1,43],Z=[1,44],tt=[1,45],M=[1,46],T=[1,4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,48,49,50,52,53,55,60,61,62,63,71],I=[2,71],U=[4,5,16,50,52,53],J=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,55,60,61,62,63,71],S=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,49,50,52,53,55,60,61,62,63,71],Nt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,48,50,52,53,55,60,61,62,63,71],Yt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,50,52,53,55,60,61,62,63,71],st=[69,70,71],it=[1,127],St={trace:i.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,box_section:10,box_line:11,participant_statement:12,create:13,box:14,restOfLine:15,end:16,signal:17,autonumber:18,NUM:19,off:20,activate:21,actor:22,deactivate:23,note_statement:24,links_statement:25,link_statement:26,properties_statement:27,details_statement:28,title:29,legacy_title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,loop:36,rect:37,opt:38,alt:39,else_sections:40,par:41,par_sections:42,par_over:43,critical:44,option_sections:45,break:46,option:47,and:48,else:49,participant:50,AS:51,participant_actor:52,destroy:53,actor_with_config:54,note:55,placement:56,text2:57,over:58,actor_pair:59,links:60,link:61,properties:62,details:63,spaceList:64,",":65,left_of:66,right_of:67,signaltype:68,"+":69,"-":70,ACTOR:71,config_object:72,CONFIG_START:73,CONFIG_CONTENT:74,CONFIG_END:75,SOLID_OPEN_ARROW:76,DOTTED_OPEN_ARROW:77,SOLID_ARROW:78,BIDIRECTIONAL_SOLID_ARROW:79,DOTTED_ARROW:80,BIDIRECTIONAL_DOTTED_ARROW:81,SOLID_CROSS:82,DOTTED_CROSS:83,SOLID_POINT:84,DOTTED_POINT:85,TXT:86,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",13:"create",14:"box",15:"restOfLine",16:"end",18:"autonumber",19:"NUM",20:"off",21:"activate",23:"deactivate",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",41:"par",43:"par_over",44:"critical",46:"break",47:"option",48:"and",49:"else",50:"participant",51:"AS",52:"participant_actor",53:"destroy",55:"note",58:"over",60:"links",61:"link",62:"properties",63:"details",65:",",66:"left_of",67:"right_of",69:"+",70:"-",71:"ACTOR",73:"CONFIG_START",74:"CONFIG_CONTENT",75:"CONFIG_END",76:"SOLID_OPEN_ARROW",77:"DOTTED_OPEN_ARROW",78:"SOLID_ARROW",79:"BIDIRECTIONAL_SOLID_ARROW",80:"DOTTED_ARROW",81:"BIDIRECTIONAL_DOTTED_ARROW",82:"SOLID_CROSS",83:"DOTTED_CROSS",84:"SOLID_POINT",85:"DOTTED_POINT",86:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[10,0],[10,2],[11,2],[11,1],[11,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],[45,1],[45,4],[42,1],[42,4],[40,1],[40,4],[12,5],[12,3],[12,5],[12,3],[12,3],[12,3],[24,4],[24,4],[25,3],[26,3],[27,3],[28,3],[64,2],[64,1],[59,3],[59,1],[56,1],[56,1],[17,5],[17,5],[17,4],[54,2],[72,3],[22,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[57,1]],performAction:i.__name(function(w,L,v,y,D,p,Tt){var g=p.length-1;switch(D){case 3:return y.apply(p[g]),p[g];case 4:case 9:this.$=[];break;case 5:case 10:p[g-1].push(p[g]),this.$=p[g-1];break;case 6:case 7:case 11:case 12:this.$=p[g];break;case 8:case 13:this.$=[];break;case 15:p[g].type="createParticipant",this.$=p[g];break;case 16:p[g-1].unshift({type:"boxStart",boxData:y.parseBoxData(p[g-2])}),p[g-1].push({type:"boxEnd",boxText:p[g-2]}),this.$=p[g-1];break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(p[g-2]),sequenceIndexStep:Number(p[g-1]),sequenceVisible:!0,signalType:y.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(p[g-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:y.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:y.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:y.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"activeStart",signalType:y.LINETYPE.ACTIVE_START,actor:p[g-1].actor};break;case 23:this.$={type:"activeEnd",signalType:y.LINETYPE.ACTIVE_END,actor:p[g-1].actor};break;case 29:y.setDiagramTitle(p[g].substring(6)),this.$=p[g].substring(6);break;case 30:y.setDiagramTitle(p[g].substring(7)),this.$=p[g].substring(7);break;case 31:this.$=p[g].trim(),y.setAccTitle(this.$);break;case 32:case 33:this.$=p[g].trim(),y.setAccDescription(this.$);break;case 34:p[g-1].unshift({type:"loopStart",loopText:y.parseMessage(p[g-2]),signalType:y.LINETYPE.LOOP_START}),p[g-1].push({type:"loopEnd",loopText:p[g-2],signalType:y.LINETYPE.LOOP_END}),this.$=p[g-1];break;case 35:p[g-1].unshift({type:"rectStart",color:y.parseMessage(p[g-2]),signalType:y.LINETYPE.RECT_START}),p[g-1].push({type:"rectEnd",color:y.parseMessage(p[g-2]),signalType:y.LINETYPE.RECT_END}),this.$=p[g-1];break;case 36:p[g-1].unshift({type:"optStart",optText:y.parseMessage(p[g-2]),signalType:y.LINETYPE.OPT_START}),p[g-1].push({type:"optEnd",optText:y.parseMessage(p[g-2]),signalType:y.LINETYPE.OPT_END}),this.$=p[g-1];break;case 37:p[g-1].unshift({type:"altStart",altText:y.parseMessage(p[g-2]),signalType:y.LINETYPE.ALT_START}),p[g-1].push({type:"altEnd",signalType:y.LINETYPE.ALT_END}),this.$=p[g-1];break;case 38:p[g-1].unshift({type:"parStart",parText:y.parseMessage(p[g-2]),signalType:y.LINETYPE.PAR_START}),p[g-1].push({type:"parEnd",signalType:y.LINETYPE.PAR_END}),this.$=p[g-1];break;case 39:p[g-1].unshift({type:"parStart",parText:y.parseMessage(p[g-2]),signalType:y.LINETYPE.PAR_OVER_START}),p[g-1].push({type:"parEnd",signalType:y.LINETYPE.PAR_END}),this.$=p[g-1];break;case 40:p[g-1].unshift({type:"criticalStart",criticalText:y.parseMessage(p[g-2]),signalType:y.LINETYPE.CRITICAL_START}),p[g-1].push({type:"criticalEnd",signalType:y.LINETYPE.CRITICAL_END}),this.$=p[g-1];break;case 41:p[g-1].unshift({type:"breakStart",breakText:y.parseMessage(p[g-2]),signalType:y.LINETYPE.BREAK_START}),p[g-1].push({type:"breakEnd",optText:y.parseMessage(p[g-2]),signalType:y.LINETYPE.BREAK_END}),this.$=p[g-1];break;case 43:this.$=p[g-3].concat([{type:"option",optionText:y.parseMessage(p[g-1]),signalType:y.LINETYPE.CRITICAL_OPTION},p[g]]);break;case 45:this.$=p[g-3].concat([{type:"and",parText:y.parseMessage(p[g-1]),signalType:y.LINETYPE.PAR_AND},p[g]]);break;case 47:this.$=p[g-3].concat([{type:"else",altText:y.parseMessage(p[g-1]),signalType:y.LINETYPE.ALT_ELSE},p[g]]);break;case 48:p[g-3].draw="participant",p[g-3].type="addParticipant",p[g-3].description=y.parseMessage(p[g-1]),this.$=p[g-3];break;case 49:p[g-1].draw="participant",p[g-1].type="addParticipant",this.$=p[g-1];break;case 50:p[g-3].draw="actor",p[g-3].type="addParticipant",p[g-3].description=y.parseMessage(p[g-1]),this.$=p[g-3];break;case 51:p[g-1].draw="actor",p[g-1].type="addParticipant",this.$=p[g-1];break;case 52:p[g-1].type="destroyParticipant",this.$=p[g-1];break;case 53:p[g-1].draw="participant",p[g-1].type="addParticipant",this.$=p[g-1];break;case 54:this.$=[p[g-1],{type:"addNote",placement:p[g-2],actor:p[g-1].actor,text:p[g]}];break;case 55:p[g-2]=[].concat(p[g-1],p[g-1]).slice(0,2),p[g-2][0]=p[g-2][0].actor,p[g-2][1]=p[g-2][1].actor,this.$=[p[g-1],{type:"addNote",placement:y.PLACEMENT.OVER,actor:p[g-2].slice(0,2),text:p[g]}];break;case 56:this.$=[p[g-1],{type:"addLinks",actor:p[g-1].actor,text:p[g]}];break;case 57:this.$=[p[g-1],{type:"addALink",actor:p[g-1].actor,text:p[g]}];break;case 58:this.$=[p[g-1],{type:"addProperties",actor:p[g-1].actor,text:p[g]}];break;case 59:this.$=[p[g-1],{type:"addDetails",actor:p[g-1].actor,text:p[g]}];break;case 62:this.$=[p[g-2],p[g]];break;case 63:this.$=p[g];break;case 64:this.$=y.PLACEMENT.LEFTOF;break;case 65:this.$=y.PLACEMENT.RIGHTOF;break;case 66:this.$=[p[g-4],p[g-1],{type:"addMessage",from:p[g-4].actor,to:p[g-1].actor,signalType:p[g-3],msg:p[g],activate:!0},{type:"activeStart",signalType:y.LINETYPE.ACTIVE_START,actor:p[g-1].actor}];break;case 67:this.$=[p[g-4],p[g-1],{type:"addMessage",from:p[g-4].actor,to:p[g-1].actor,signalType:p[g-3],msg:p[g]},{type:"activeEnd",signalType:y.LINETYPE.ACTIVE_END,actor:p[g-4].actor}];break;case 68:this.$=[p[g-3],p[g-1],{type:"addMessage",from:p[g-3].actor,to:p[g-1].actor,signalType:p[g-2],msg:p[g]}];break;case 69:this.$={type:"addParticipant",actor:p[g-1],config:p[g]};break;case 70:this.$=p[g-1].trim();break;case 71:this.$={type:"addParticipant",actor:p[g]};break;case 72:this.$=y.LINETYPE.SOLID_OPEN;break;case 73:this.$=y.LINETYPE.DOTTED_OPEN;break;case 74:this.$=y.LINETYPE.SOLID;break;case 75:this.$=y.LINETYPE.BIDIRECTIONAL_SOLID;break;case 76:this.$=y.LINETYPE.DOTTED;break;case 77:this.$=y.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 78:this.$=y.LINETYPE.SOLID_CROSS;break;case 79:this.$=y.LINETYPE.DOTTED_CROSS;break;case 80:this.$=y.LINETYPE.SOLID_POINT;break;case 81:this.$=y.LINETYPE.DOTTED_POINT;break;case 82:this.$=y.parseMessage(p[g].trim().substring(1));break}},"anonymous"),table:[{3:1,4:t,5:o,6:a},{1:[3]},{3:5,4:t,5:o,6:a},{3:6,4:t,5:o,6:a},e([1,4,5,13,14,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,55,60,61,62,63,71],r,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:n,5:l,8:8,9:10,12:12,13:d,14:c,17:15,18:s,21:u,22:40,23:f,24:19,25:20,26:21,27:22,28:23,29:x,30:m,31:E,33:b,35:A,36:P,37:N,38:C,39:O,41:F,43:q,44:X,46:j,50:z,52:H,53:W,55:R,60:Q,61:K,62:Z,63:tt,71:M},e(T,[2,5]),{9:47,12:12,13:d,14:c,17:15,18:s,21:u,22:40,23:f,24:19,25:20,26:21,27:22,28:23,29:x,30:m,31:E,33:b,35:A,36:P,37:N,38:C,39:O,41:F,43:q,44:X,46:j,50:z,52:H,53:W,55:R,60:Q,61:K,62:Z,63:tt,71:M},e(T,[2,7]),e(T,[2,8]),e(T,[2,14]),{12:48,50:z,52:H,53:W},{15:[1,49]},{5:[1,50]},{5:[1,53],19:[1,51],20:[1,52]},{22:54,71:M},{22:55,71:M},{5:[1,56]},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},e(T,[2,29]),e(T,[2,30]),{32:[1,61]},{34:[1,62]},e(T,[2,33]),{15:[1,63]},{15:[1,64]},{15:[1,65]},{15:[1,66]},{15:[1,67]},{15:[1,68]},{15:[1,69]},{15:[1,70]},{22:71,54:72,71:[1,73]},{22:74,71:M},{22:75,71:M},{68:76,76:[1,77],77:[1,78],78:[1,79],79:[1,80],80:[1,81],81:[1,82],82:[1,83],83:[1,84],84:[1,85],85:[1,86]},{56:87,58:[1,88],66:[1,89],67:[1,90]},{22:91,71:M},{22:92,71:M},{22:93,71:M},{22:94,71:M},e([5,51,65,76,77,78,79,80,81,82,83,84,85,86],I),e(T,[2,6]),e(T,[2,15]),e(U,[2,9],{10:95}),e(T,[2,17]),{5:[1,97],19:[1,96]},{5:[1,98]},e(T,[2,21]),{5:[1,99]},{5:[1,100]},e(T,[2,24]),e(T,[2,25]),e(T,[2,26]),e(T,[2,27]),e(T,[2,28]),e(T,[2,31]),e(T,[2,32]),e(J,r,{7:101}),e(J,r,{7:102}),e(J,r,{7:103}),e(S,r,{40:104,7:105}),e(Nt,r,{42:106,7:107}),e(Nt,r,{7:107,42:108}),e(Yt,r,{45:109,7:110}),e(J,r,{7:111}),{5:[1,113],51:[1,112]},{5:[1,114]},e([5,51],I,{72:115,73:[1,116]}),{5:[1,118],51:[1,117]},{5:[1,119]},{22:122,69:[1,120],70:[1,121],71:M},e(st,[2,72]),e(st,[2,73]),e(st,[2,74]),e(st,[2,75]),e(st,[2,76]),e(st,[2,77]),e(st,[2,78]),e(st,[2,79]),e(st,[2,80]),e(st,[2,81]),{22:123,71:M},{22:125,59:124,71:M},{71:[2,64]},{71:[2,65]},{57:126,86:it},{57:128,86:it},{57:129,86:it},{57:130,86:it},{4:[1,133],5:[1,135],11:132,12:134,16:[1,131],50:z,52:H,53:W},{5:[1,136]},e(T,[2,19]),e(T,[2,20]),e(T,[2,22]),e(T,[2,23]),{4:n,5:l,8:8,9:10,12:12,13:d,14:c,16:[1,137],17:15,18:s,21:u,22:40,23:f,24:19,25:20,26:21,27:22,28:23,29:x,30:m,31:E,33:b,35:A,36:P,37:N,38:C,39:O,41:F,43:q,44:X,46:j,50:z,52:H,53:W,55:R,60:Q,61:K,62:Z,63:tt,71:M},{4:n,5:l,8:8,9:10,12:12,13:d,14:c,16:[1,138],17:15,18:s,21:u,22:40,23:f,24:19,25:20,26:21,27:22,28:23,29:x,30:m,31:E,33:b,35:A,36:P,37:N,38:C,39:O,41:F,43:q,44:X,46:j,50:z,52:H,53:W,55:R,60:Q,61:K,62:Z,63:tt,71:M},{4:n,5:l,8:8,9:10,12:12,13:d,14:c,16:[1,139],17:15,18:s,21:u,22:40,23:f,24:19,25:20,26:21,27:22,28:23,29:x,30:m,31:E,33:b,35:A,36:P,37:N,38:C,39:O,41:F,43:q,44:X,46:j,50:z,52:H,53:W,55:R,60:Q,61:K,62:Z,63:tt,71:M},{16:[1,140]},{4:n,5:l,8:8,9:10,12:12,13:d,14:c,16:[2,46],17:15,18:s,21:u,22:40,23:f,24:19,25:20,26:21,27:22,28:23,29:x,30:m,31:E,33:b,35:A,36:P,37:N,38:C,39:O,41:F,43:q,44:X,46:j,49:[1,141],50:z,52:H,53:W,55:R,60:Q,61:K,62:Z,63:tt,71:M},{16:[1,142]},{4:n,5:l,8:8,9:10,12:12,13:d,14:c,16:[2,44],17:15,18:s,21:u,22:40,23:f,24:19,25:20,26:21,27:22,28:23,29:x,30:m,31:E,33:b,35:A,36:P,37:N,38:C,39:O,41:F,43:q,44:X,46:j,48:[1,143],50:z,52:H,53:W,55:R,60:Q,61:K,62:Z,63:tt,71:M},{16:[1,144]},{16:[1,145]},{4:n,5:l,8:8,9:10,12:12,13:d,14:c,16:[2,42],17:15,18:s,21:u,22:40,23:f,24:19,25:20,26:21,27:22,28:23,29:x,30:m,31:E,33:b,35:A,36:P,37:N,38:C,39:O,41:F,43:q,44:X,46:j,47:[1,146],50:z,52:H,53:W,55:R,60:Q,61:K,62:Z,63:tt,71:M},{4:n,5:l,8:8,9:10,12:12,13:d,14:c,16:[1,147],17:15,18:s,21:u,22:40,23:f,24:19,25:20,26:21,27:22,28:23,29:x,30:m,31:E,33:b,35:A,36:P,37:N,38:C,39:O,41:F,43:q,44:X,46:j,50:z,52:H,53:W,55:R,60:Q,61:K,62:Z,63:tt,71:M},{15:[1,148]},e(T,[2,49]),e(T,[2,53]),{5:[2,69]},{74:[1,149]},{15:[1,150]},e(T,[2,51]),e(T,[2,52]),{22:151,71:M},{22:152,71:M},{57:153,86:it},{57:154,86:it},{57:155,86:it},{65:[1,156],86:[2,63]},{5:[2,56]},{5:[2,82]},{5:[2,57]},{5:[2,58]},{5:[2,59]},e(T,[2,16]),e(U,[2,10]),{12:157,50:z,52:H,53:W},e(U,[2,12]),e(U,[2,13]),e(T,[2,18]),e(T,[2,34]),e(T,[2,35]),e(T,[2,36]),e(T,[2,37]),{15:[1,158]},e(T,[2,38]),{15:[1,159]},e(T,[2,39]),e(T,[2,40]),{15:[1,160]},e(T,[2,41]),{5:[1,161]},{75:[1,162]},{5:[1,163]},{57:164,86:it},{57:165,86:it},{5:[2,68]},{5:[2,54]},{5:[2,55]},{22:166,71:M},e(U,[2,11]),e(S,r,{7:105,40:167}),e(Nt,r,{7:107,42:168}),e(Yt,r,{7:110,45:169}),e(T,[2,48]),{5:[2,70]},e(T,[2,50]),{5:[2,66]},{5:[2,67]},{86:[2,62]},{16:[2,47]},{16:[2,45]},{16:[2,43]}],defaultActions:{5:[2,1],6:[2,2],89:[2,64],90:[2,65],115:[2,69],126:[2,56],127:[2,82],128:[2,57],129:[2,58],130:[2,59],153:[2,68],154:[2,54],155:[2,55],162:[2,70],164:[2,66],165:[2,67],166:[2,62],167:[2,47],168:[2,45],169:[2,43]},parseError:i.__name(function(w,L){if(L.recoverable)this.trace(w);else{var v=new Error(w);throw v.hash=L,v}},"parseError"),parse:i.__name(function(w){var L=this,v=[0],y=[],D=[null],p=[],Tt=this.table,g="",bt=0,Wt=0,ae=2,Ft=1,se=p.slice.call(arguments,1),Y=Object.create(this.lexer),dt={yy:{}};for(var Mt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Mt)&&(dt.yy[Mt]=this.yy[Mt]);Y.setInput(w,dt.yy),dt.yy.lexer=Y,dt.yy.parser=this,typeof Y.yylloc>"u"&&(Y.yylloc={});var Rt=Y.yylloc;p.push(Rt);var ie=Y.options&&Y.options.ranges;typeof dt.yy.parseError=="function"?this.parseError=dt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function re($){v.length=v.length-2*$,D.length=D.length-$,p.length=p.length-$}i.__name(re,"popStack");function qt(){var $;return $=y.pop()||Y.lex()||Ft,typeof $!="number"&&($ instanceof Array&&(y=$,$=y.pop()),$=L.symbols_[$]||$),$}i.__name(qt,"lex");for(var G,pt,et,Dt,ft={},wt,rt,zt,vt;;){if(pt=v[v.length-1],this.defaultActions[pt]?et=this.defaultActions[pt]:((G===null||typeof G>"u")&&(G=qt()),et=Tt[pt]&&Tt[pt][G]),typeof et>"u"||!et.length||!et[0]){var Ct="";vt=[];for(wt in Tt[pt])this.terminals_[wt]&&wt>ae&&vt.push("'"+this.terminals_[wt]+"'");Y.showPosition?Ct="Parse error on line "+(bt+1)+`:
2
2
  `+Y.showPosition()+`
3
3
  Expecting `+vt.join(", ")+", got '"+(this.terminals_[G]||G)+"'":Ct="Parse error on line "+(bt+1)+": Unexpected "+(G==Ft?"end of input":"'"+(this.terminals_[G]||G)+"'"),this.parseError(Ct,{text:Y.match,token:this.terminals_[G]||G,line:Y.yylineno,loc:Rt,expected:vt})}if(et[0]instanceof Array&&et.length>1)throw new Error("Parse Error: multiple actions possible at state: "+pt+", token: "+G);switch(et[0]){case 1:v.push(G),D.push(Y.yytext),p.push(Y.yylloc),v.push(et[1]),G=null,Wt=Y.yyleng,g=Y.yytext,bt=Y.yylineno,Rt=Y.yylloc;break;case 2:if(rt=this.productions_[et[1]][1],ft.$=D[D.length-rt],ft._$={first_line:p[p.length-(rt||1)].first_line,last_line:p[p.length-1].last_line,first_column:p[p.length-(rt||1)].first_column,last_column:p[p.length-1].last_column},ie&&(ft._$.range=[p[p.length-(rt||1)].range[0],p[p.length-1].range[1]]),Dt=this.performAction.apply(ft,[g,Wt,bt,dt.yy,et[1],D,p].concat(se)),typeof Dt<"u")return Dt;rt&&(v=v.slice(0,-1*rt*2),D=D.slice(0,-1*rt),p=p.slice(0,-1*rt)),v.push(this.productions_[et[1]][0]),D.push(ft.$),p.push(ft._$),zt=Tt[v[v.length-2]][v[v.length-1]],v.push(zt);break;case 3:return!0}}return!0},"parse")},ee=(function(){var ot={EOF:1,parseError:i.__name(function(L,v){if(this.yy.parser)this.yy.parser.parseError(L,v);else throw new Error(L)},"parseError"),setInput:i.__name(function(w,L){return this.yy=L||this.yy||{},this._input=w,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:i.__name(function(){var w=this._input[0];this.yytext+=w,this.yyleng++,this.offset++,this.match+=w,this.matched+=w;var L=w.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),w},"input"),unput:i.__name(function(w){var L=w.length,v=w.split(/(?:\r\n?|\n)/g);this._input=w+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-L),this.offset-=L;var y=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),v.length-1&&(this.yylineno-=v.length-1);var D=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:v?(v.length===y.length?this.yylloc.first_column:0)+y[y.length-v.length].length-v[0].length:this.yylloc.first_column-L},this.options.ranges&&(this.yylloc.range=[D[0],D[0]+this.yyleng-L]),this.yyleng=this.yytext.length,this},"unput"),more:i.__name(function(){return this._more=!0,this},"more"),reject:i.__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:i.__name(function(w){this.unput(this.match.slice(w))},"less"),pastInput:i.__name(function(){var w=this.matched.substr(0,this.matched.length-this.match.length);return(w.length>20?"...":"")+w.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:i.__name(function(){var w=this.match;return w.length<20&&(w+=this._input.substr(0,20-w.length)),(w.substr(0,20)+(w.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:i.__name(function(){var w=this.pastInput(),L=new Array(w.length+1).join("-");return w+this.upcomingInput()+`
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("./chunk-DI55MBZ5-BrdhY3HM.cjs"),t=require("./viewer-Dx2UknAc.cjs"),T=require("./graph-m7uOc_-F.cjs"),H=require("./layout-DV16dSUq.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"),A=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(c,m,y){const b=c.append("tspan").attr("x",2*t.getConfig2().state.padding).text(m);y||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,p=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(c){i||(d(p,c,r),r=!1),i=!1});const C=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"),h=p.node().getBBox(),s=Math.max(h.width,o.width);return C.attr("x2",s+3*t.getConfig2().state.padding),e.insert("rect",":first-child").attr("x",t.getConfig2().state.padding).attr("y",t.getConfig2().state.padding).attr("width",s+2*t.getConfig2().state.padding).attr("height",h.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(),p=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),h=r.node().getBBox().width+o;let s=Math.max(h,p);s===p&&(s=s+o);let c;const m=e.node().getBBox();n.doc,c=i-g,h>p&&(c=(p-s)/2+g),Math.abs(i-m.x)<g&&h>p&&(c=i-(h-p)/2);const y=1-t.getConfig2().state.textHeight;return e.insert("rect",":first-child").attr("x",c).attr("y",y).attr("class",d?"alt-composit":"composit").attr("width",s).attr("height",m.height+t.getConfig2().state.textHeight+t.getConfig2().state.titleShift+1).attr("rx","0"),r.attr("x",c+g),h<=p&&r.attr("x",i+(s-o)/2-h/2+g),e.insert("rect",":first-child").attr("x",c).attr("y",t.getConfig2().state.titleShift-t.getConfig2().state.textHeight-t.getConfig2().state.padding).attr("width",s).attr("height",t.getConfig2().state.textHeight*3).attr("rx",t.getConfig2().state.radius),e.insert("rect",":first-child").attr("x",c).attr("y",t.getConfig2().state.titleShift-t.getConfig2().state.textHeight-t.getConfig2().state.padding).attr("width",s).attr("height",m.height+3+2*t.getConfig2().state.textHeight).attr("rx",t.getConfig2().state.radius),e},"addTitleAndBox"),W=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"),G=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"),D=t.__name((e,n,d,g)=>{let o=0;const l=g.append("text");l.style("text-anchor","start"),l.attr("class","noteText");let p=e.replace(/\r\n/g,"<br/>");p=p.replace(/\n/g,"<br/>");const i=p.split(t.common_default.lineBreakRegex);let r=1.25*t.getConfig2().state.noteMargin;for(const C of i){const h=C.trim();if(h.length>0){const s=l.append("tspan");if(s.text(h),r===0){const c=s.node().getBBox();r+=c.height}o+=r,s.attr("x",n+t.getConfig2().state.noteMargin),s.attr("y",d+o+1.25*t.getConfig2().state.noteMargin)}}return{textWidth:l.node().getBBox().width,textHeight:o}},"_drawLongText"),U=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}=D(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"&&W(o),(n.type==="fork"||n.type==="join")&&G(o,n),n.type==="note"&&U(n.note.text,o),n.type==="divider"&&L(o),n.type==="default"&&n.descriptions.length===0&&A(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),p=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)),p.attr("marker-end","url("+i+"#"+g(_.StateDB.relationType.DEPENDENCY)+"End)"),d.title!==void 0){const r=e.append("g").attr("class","stateLabel"),{x:C,y:h}=t.utils_default.calcLabelPosition(n.points),s=t.common_default.getRows(d.title);let c=0;const m=[];let y=0,b=0;for(let x=0;x<=s.length;x++){const f=r.append("text").attr("text-anchor","middle").text(s[x]).attr("x",C).attr("y",h+c),u=f.node().getBBox();y=Math.max(y,u.width),b=Math.min(b,u.x),t.log.info(u.x,C,h+c),c===0&&(c=f.node().getBBox().height,t.log.info("Title height",c,h)),m.push(f)}let S=c*s.length;if(s.length>1){const x=(s.length-1)*c*.5;m.forEach((f,u)=>f.attr("y",h+u*c-x)),S=c*s.length}const a=r.node().getBBox();r.insert("rect",":first-child").attr("class","box").attr("x",C-y/2-t.getConfig2().state.padding/2).attr("y",h-S/2-t.getConfig2().state.padding/2-3.5).attr("width",y+t.getConfig2().state.padding).attr("height",S+t.getConfig2().state.padding),t.log.info(a)}N++},"drawEdge"),w,E={},O=t.__name(function(){},"setConf"),q=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"),J=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 p=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=p.select(`[id='${n}']`);q(r);const C=g.db.getRootDoc();M(C,r,void 0,!1,p,i,g);const h=w.padding,s=r.node().getBBox(),c=s.width+h*2,m=s.height+h*2,y=c*1.75;t.configureSvgSize(r,m,y,w.useMaxWidth),r.attr("viewBox",`${s.x-w.padding} ${s.y-w.padding} `+c+" "+m)},"draw"),X=t.__name(e=>e?e.length*w.fontSizeFactor:1,"getLabelWidth"),M=t.__name((e,n,d,g,o,l,p)=>{const i=new T.Graph({compound:!0,multigraph:!0});let r,C=!0;for(r=0;r<e.length;r++)if(e[r].stmt==="relation"){C=!1;break}d?i.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:C?1:w.edgeLengthFactor,nodeSep:C?1:50,isMultiGraph:!0}):i.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:C?1:w.edgeLengthFactor,nodeSep:C?1:50,ranker:"tight-tree",isMultiGraph:!0}),i.setDefaultEdgeLabel(function(){return{}});const h=p.db.getStates(),s=p.db.getRelations(),c=Object.keys(h);for(const a of c){const x=h[a];d&&(x.parentId=d);let f;if(x.doc){let u=n.append("g").attr("id",x.id).attr("class","stateGroup");f=M(x.doc,u,x.id,!g,o,l,p);{u=R(u,x,g);let B=u.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 u={descriptions:[],id:x.id+"-note",note:x.note,type:"note"},B=k(n,u,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;s.forEach(function(a){m++,t.log.debug("Setting edge",a),i.setEdge(a.id1,a.id2,{relation:a,width:X(a.title),height:w.labelHeight*t.common_default.getRows(a.title).length,labelpos:"c"},"id"+m)}),H.layout(i),t.log.debug("Graph after layout",i.nodes());const y=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("#"+y.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("#"+y.id+" #"+a).attr("data-x-shift",i.node(a).x-i.node(a).width/2),l.querySelectorAll("#"+y.id+" #"+a+" .divider").forEach(f=>{const u=f.parentElement;let B=0,v=0;u&&(u.parentElement&&(B=u.parentElement.getBBox().width),v=parseInt(u.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=y.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=y.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"),I={setConf:O,draw:J},Y={parser:_.stateDiagram_default,get db(){return new _.StateDB(1)},renderer:I,styles:_.styles_default,init:t.__name(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};exports.diagram=Y;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("./chunk-DI55MBZ5-CGUTXZFz.cjs"),t=require("./viewer-D_fHatZf.cjs"),T=require("./graph-CQASZLoy.cjs"),H=require("./layout-CUCO1yPf.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"),A=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(c,m,y){const b=c.append("tspan").attr("x",2*t.getConfig2().state.padding).text(m);y||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,p=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(c){i||(d(p,c,r),r=!1),i=!1});const C=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"),h=p.node().getBBox(),s=Math.max(h.width,o.width);return C.attr("x2",s+3*t.getConfig2().state.padding),e.insert("rect",":first-child").attr("x",t.getConfig2().state.padding).attr("y",t.getConfig2().state.padding).attr("width",s+2*t.getConfig2().state.padding).attr("height",h.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(),p=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),h=r.node().getBBox().width+o;let s=Math.max(h,p);s===p&&(s=s+o);let c;const m=e.node().getBBox();n.doc,c=i-g,h>p&&(c=(p-s)/2+g),Math.abs(i-m.x)<g&&h>p&&(c=i-(h-p)/2);const y=1-t.getConfig2().state.textHeight;return e.insert("rect",":first-child").attr("x",c).attr("y",y).attr("class",d?"alt-composit":"composit").attr("width",s).attr("height",m.height+t.getConfig2().state.textHeight+t.getConfig2().state.titleShift+1).attr("rx","0"),r.attr("x",c+g),h<=p&&r.attr("x",i+(s-o)/2-h/2+g),e.insert("rect",":first-child").attr("x",c).attr("y",t.getConfig2().state.titleShift-t.getConfig2().state.textHeight-t.getConfig2().state.padding).attr("width",s).attr("height",t.getConfig2().state.textHeight*3).attr("rx",t.getConfig2().state.radius),e.insert("rect",":first-child").attr("x",c).attr("y",t.getConfig2().state.titleShift-t.getConfig2().state.textHeight-t.getConfig2().state.padding).attr("width",s).attr("height",m.height+3+2*t.getConfig2().state.textHeight).attr("rx",t.getConfig2().state.radius),e},"addTitleAndBox"),W=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"),G=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"),D=t.__name((e,n,d,g)=>{let o=0;const l=g.append("text");l.style("text-anchor","start"),l.attr("class","noteText");let p=e.replace(/\r\n/g,"<br/>");p=p.replace(/\n/g,"<br/>");const i=p.split(t.common_default.lineBreakRegex);let r=1.25*t.getConfig2().state.noteMargin;for(const C of i){const h=C.trim();if(h.length>0){const s=l.append("tspan");if(s.text(h),r===0){const c=s.node().getBBox();r+=c.height}o+=r,s.attr("x",n+t.getConfig2().state.noteMargin),s.attr("y",d+o+1.25*t.getConfig2().state.noteMargin)}}return{textWidth:l.node().getBBox().width,textHeight:o}},"_drawLongText"),U=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}=D(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"&&W(o),(n.type==="fork"||n.type==="join")&&G(o,n),n.type==="note"&&U(n.note.text,o),n.type==="divider"&&L(o),n.type==="default"&&n.descriptions.length===0&&A(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),p=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)),p.attr("marker-end","url("+i+"#"+g(_.StateDB.relationType.DEPENDENCY)+"End)"),d.title!==void 0){const r=e.append("g").attr("class","stateLabel"),{x:C,y:h}=t.utils_default.calcLabelPosition(n.points),s=t.common_default.getRows(d.title);let c=0;const m=[];let y=0,b=0;for(let x=0;x<=s.length;x++){const f=r.append("text").attr("text-anchor","middle").text(s[x]).attr("x",C).attr("y",h+c),u=f.node().getBBox();y=Math.max(y,u.width),b=Math.min(b,u.x),t.log.info(u.x,C,h+c),c===0&&(c=f.node().getBBox().height,t.log.info("Title height",c,h)),m.push(f)}let S=c*s.length;if(s.length>1){const x=(s.length-1)*c*.5;m.forEach((f,u)=>f.attr("y",h+u*c-x)),S=c*s.length}const a=r.node().getBBox();r.insert("rect",":first-child").attr("class","box").attr("x",C-y/2-t.getConfig2().state.padding/2).attr("y",h-S/2-t.getConfig2().state.padding/2-3.5).attr("width",y+t.getConfig2().state.padding).attr("height",S+t.getConfig2().state.padding),t.log.info(a)}N++},"drawEdge"),w,E={},O=t.__name(function(){},"setConf"),q=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"),J=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 p=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=p.select(`[id='${n}']`);q(r);const C=g.db.getRootDoc();M(C,r,void 0,!1,p,i,g);const h=w.padding,s=r.node().getBBox(),c=s.width+h*2,m=s.height+h*2,y=c*1.75;t.configureSvgSize(r,m,y,w.useMaxWidth),r.attr("viewBox",`${s.x-w.padding} ${s.y-w.padding} `+c+" "+m)},"draw"),X=t.__name(e=>e?e.length*w.fontSizeFactor:1,"getLabelWidth"),M=t.__name((e,n,d,g,o,l,p)=>{const i=new T.Graph({compound:!0,multigraph:!0});let r,C=!0;for(r=0;r<e.length;r++)if(e[r].stmt==="relation"){C=!1;break}d?i.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:C?1:w.edgeLengthFactor,nodeSep:C?1:50,isMultiGraph:!0}):i.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:C?1:w.edgeLengthFactor,nodeSep:C?1:50,ranker:"tight-tree",isMultiGraph:!0}),i.setDefaultEdgeLabel(function(){return{}});const h=p.db.getStates(),s=p.db.getRelations(),c=Object.keys(h);for(const a of c){const x=h[a];d&&(x.parentId=d);let f;if(x.doc){let u=n.append("g").attr("id",x.id).attr("class","stateGroup");f=M(x.doc,u,x.id,!g,o,l,p);{u=R(u,x,g);let B=u.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 u={descriptions:[],id:x.id+"-note",note:x.note,type:"note"},B=k(n,u,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;s.forEach(function(a){m++,t.log.debug("Setting edge",a),i.setEdge(a.id1,a.id2,{relation:a,width:X(a.title),height:w.labelHeight*t.common_default.getRows(a.title).length,labelpos:"c"},"id"+m)}),H.layout(i),t.log.debug("Graph after layout",i.nodes());const y=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("#"+y.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("#"+y.id+" #"+a).attr("data-x-shift",i.node(a).x-i.node(a).width/2),l.querySelectorAll("#"+y.id+" #"+a+" .divider").forEach(f=>{const u=f.parentElement;let B=0,v=0;u&&(u.parentElement&&(B=u.parentElement.getBBox().width),v=parseInt(u.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=y.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=y.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"),I={setConf:O,draw:J},Y={parser:_.stateDiagram_default,get db(){return new _.StateDB(1)},renderer:I,styles:_.styles_default,init:t.__name(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")};exports.diagram=Y;
@@ -1,7 +1,7 @@
1
- import { s as G, a as W, S as N } from "./chunk-DI55MBZ5-DfANuNAw.js";
2
- import { _ as f, c as t, d as H, l as S, e as P, k as z, R as _, S as U, O as C, u as F } from "./viewer-B5_Hr-DQ.js";
3
- import { G as O } from "./graph-BppjhE7S.js";
4
- import { l as J } from "./layout-DhMhVr5t.js";
1
+ import { s as G, a as W, S as N } from "./chunk-DI55MBZ5-C3g3BX3L.js";
2
+ import { _ as f, c as t, d as H, l as S, e as P, k as z, R as _, S as U, O as C, u as F } from "./viewer-dmRgjht5.js";
3
+ import { G as O } from "./graph-OxVrrvxE.js";
4
+ import { l as J } from "./layout-DvLWn8fk.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) => {
6
6
  const d = e.append("text").attr("x", 2 * t().state.padding).attr("y", t().state.textHeight + 2 * t().state.padding).attr("font-size", t().state.fontSize).attr("class", "state-title").text(i.id), c = d.node().getBBox();
7
7
  return e.insert("rect", ":first-child").attr("x", t().state.padding).attr("y", t().state.padding).attr("width", c.width + 2 * t().state.padding).attr("height", c.height + 2 * t().state.padding).attr("rx", t().state.radius), d;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./chunk-DI55MBZ5-BrdhY3HM.cjs"),r=require("./viewer-Dx2UknAc.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-DI55MBZ5-CGUTXZFz.cjs"),r=require("./viewer-D_fHatZf.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-DI55MBZ5-DfANuNAw.js";
2
- import { _ as i } from "./viewer-B5_Hr-DQ.js";
1
+ import { s as a, b as t, a as r, S as s } from "./chunk-DI55MBZ5-C3g3BX3L.js";
2
+ import { _ as i } from "./viewer-dmRgjht5.js";
3
3
  var _ = {
4
4
  parser: r,
5
5
  get db() {
@@ -1,5 +1,5 @@
1
- import { _ as s, c as xt, l as E, d as j, V as kt, W as vt, X as _t, Y as bt, B as wt, $ as St, y as Et } from "./viewer-B5_Hr-DQ.js";
2
- import { d as nt } from "./arc-w_hCIKN-.js";
1
+ import { _ as s, c as xt, l as E, d as j, V as kt, W as vt, X as _t, Y as bt, B as wt, $ as St, y as Et } from "./viewer-dmRgjht5.js";
2
+ import { d as nt } from "./arc-BsRKvhqb.js";
3
3
  var Q = (function() {
4
4
  var n = /* @__PURE__ */ s(function(x, r, a, c) {
5
5
  for (a = a || {}, c = x.length; c--; a[x[c]] = r) ;
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./viewer-Dx2UknAc.cjs"),tt=require("./arc-RvMqCw5K.cjs");var J=(function(){var r=n.__name(function(m,s,a,c){for(a=a||{},c=m.length;c--;a[m[c]]=s);return a},"o"),t=[6,8,10,11,12,14,16,17,20,21],e=[1,9],l=[1,10],i=[1,11],d=[1,12],h=[1,13],_=[1,16],f=[1,17],p={trace:n.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,period_statement:18,event_statement:19,period:20,event:21,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",20:"period",21:"event"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[18,1],[19,1]],performAction:n.__name(function(s,a,c,u,g,o,w){var k=o.length-1;switch(g){case 1:return o[k-1];case 2:this.$=[];break;case 3:o[k-1].push(o[k]),this.$=o[k-1];break;case 4:case 5:this.$=o[k];break;case 6:case 7:this.$=[];break;case 8:u.getCommonDb().setDiagramTitle(o[k].substr(6)),this.$=o[k].substr(6);break;case 9:this.$=o[k].trim(),u.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=o[k].trim(),u.getCommonDb().setAccDescription(this.$);break;case 12:u.addSection(o[k].substr(8)),this.$=o[k].substr(8);break;case 15:u.addTask(o[k],0,""),this.$=o[k];break;case 16:u.addEvent(o[k].substr(2)),this.$=o[k];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},r(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:e,12:l,14:i,16:d,17:h,18:14,19:15,20:_,21:f},r(t,[2,7],{1:[2,1]}),r(t,[2,3]),{9:18,11:e,12:l,14:i,16:d,17:h,18:14,19:15,20:_,21:f},r(t,[2,5]),r(t,[2,6]),r(t,[2,8]),{13:[1,19]},{15:[1,20]},r(t,[2,11]),r(t,[2,12]),r(t,[2,13]),r(t,[2,14]),r(t,[2,15]),r(t,[2,16]),r(t,[2,4]),r(t,[2,9]),r(t,[2,10])],defaultActions:{},parseError:n.__name(function(s,a){if(a.recoverable)this.trace(s);else{var c=new Error(s);throw c.hash=a,c}},"parseError"),parse:n.__name(function(s){var a=this,c=[0],u=[],g=[null],o=[],w=this.table,k="",I=0,H=0,z=2,G=1,M=o.slice.call(arguments,1),y=Object.create(this.lexer),b={yy:{}};for(var N in this.yy)Object.prototype.hasOwnProperty.call(this.yy,N)&&(b.yy[N]=this.yy[N]);y.setInput(s,b.yy),b.yy.lexer=y,b.yy.parser=this,typeof y.yylloc>"u"&&(y.yylloc={});var $=y.yylloc;o.push($);var V=y.options&&y.options.ranges;typeof b.yy.parseError=="function"?this.parseError=b.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function q(E){c.length=c.length-2*E,g.length=g.length-E,o.length=o.length-E}n.__name(q,"popStack");function Y(){var E;return E=u.pop()||y.lex()||G,typeof E!="number"&&(E instanceof Array&&(u=E,E=u.pop()),E=a.symbols_[E]||E),E}n.__name(Y,"lex");for(var S,P,T,U,C={},W,L,D,B;;){if(P=c[c.length-1],this.defaultActions[P]?T=this.defaultActions[P]:((S===null||typeof S>"u")&&(S=Y()),T=w[P]&&w[P][S]),typeof T>"u"||!T.length||!T[0]){var Z="";B=[];for(W in w[P])this.terminals_[W]&&W>z&&B.push("'"+this.terminals_[W]+"'");y.showPosition?Z="Parse error on line "+(I+1)+`:
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./viewer-D_fHatZf.cjs"),tt=require("./arc-BfjXrLnR.cjs");var J=(function(){var r=n.__name(function(m,s,a,c){for(a=a||{},c=m.length;c--;a[m[c]]=s);return a},"o"),t=[6,8,10,11,12,14,16,17,20,21],e=[1,9],l=[1,10],i=[1,11],d=[1,12],h=[1,13],_=[1,16],f=[1,17],p={trace:n.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,period_statement:18,event_statement:19,period:20,event:21,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",20:"period",21:"event"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[18,1],[19,1]],performAction:n.__name(function(s,a,c,u,g,o,w){var k=o.length-1;switch(g){case 1:return o[k-1];case 2:this.$=[];break;case 3:o[k-1].push(o[k]),this.$=o[k-1];break;case 4:case 5:this.$=o[k];break;case 6:case 7:this.$=[];break;case 8:u.getCommonDb().setDiagramTitle(o[k].substr(6)),this.$=o[k].substr(6);break;case 9:this.$=o[k].trim(),u.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=o[k].trim(),u.getCommonDb().setAccDescription(this.$);break;case 12:u.addSection(o[k].substr(8)),this.$=o[k].substr(8);break;case 15:u.addTask(o[k],0,""),this.$=o[k];break;case 16:u.addEvent(o[k].substr(2)),this.$=o[k];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},r(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:e,12:l,14:i,16:d,17:h,18:14,19:15,20:_,21:f},r(t,[2,7],{1:[2,1]}),r(t,[2,3]),{9:18,11:e,12:l,14:i,16:d,17:h,18:14,19:15,20:_,21:f},r(t,[2,5]),r(t,[2,6]),r(t,[2,8]),{13:[1,19]},{15:[1,20]},r(t,[2,11]),r(t,[2,12]),r(t,[2,13]),r(t,[2,14]),r(t,[2,15]),r(t,[2,16]),r(t,[2,4]),r(t,[2,9]),r(t,[2,10])],defaultActions:{},parseError:n.__name(function(s,a){if(a.recoverable)this.trace(s);else{var c=new Error(s);throw c.hash=a,c}},"parseError"),parse:n.__name(function(s){var a=this,c=[0],u=[],g=[null],o=[],w=this.table,k="",I=0,H=0,z=2,G=1,M=o.slice.call(arguments,1),y=Object.create(this.lexer),b={yy:{}};for(var N in this.yy)Object.prototype.hasOwnProperty.call(this.yy,N)&&(b.yy[N]=this.yy[N]);y.setInput(s,b.yy),b.yy.lexer=y,b.yy.parser=this,typeof y.yylloc>"u"&&(y.yylloc={});var $=y.yylloc;o.push($);var V=y.options&&y.options.ranges;typeof b.yy.parseError=="function"?this.parseError=b.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function q(E){c.length=c.length-2*E,g.length=g.length-E,o.length=o.length-E}n.__name(q,"popStack");function Y(){var E;return E=u.pop()||y.lex()||G,typeof E!="number"&&(E instanceof Array&&(u=E,E=u.pop()),E=a.symbols_[E]||E),E}n.__name(Y,"lex");for(var S,P,T,U,C={},W,L,D,B;;){if(P=c[c.length-1],this.defaultActions[P]?T=this.defaultActions[P]:((S===null||typeof S>"u")&&(S=Y()),T=w[P]&&w[P][S]),typeof T>"u"||!T.length||!T[0]){var Z="";B=[];for(W in w[P])this.terminals_[W]&&W>z&&B.push("'"+this.terminals_[W]+"'");y.showPosition?Z="Parse error on line "+(I+1)+`:
2
2
  `+y.showPosition()+`
3
3
  Expecting `+B.join(", ")+", got '"+(this.terminals_[S]||S)+"'":Z="Parse error on line "+(I+1)+": Unexpected "+(S==G?"end of input":"'"+(this.terminals_[S]||S)+"'"),this.parseError(Z,{text:y.match,token:this.terminals_[S]||S,line:y.yylineno,loc:$,expected:B})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+P+", token: "+S);switch(T[0]){case 1:c.push(S),g.push(y.yytext),o.push(y.yylloc),c.push(T[1]),S=null,H=y.yyleng,k=y.yytext,I=y.yylineno,$=y.yylloc;break;case 2:if(L=this.productions_[T[1]][1],C.$=g[g.length-L],C._$={first_line:o[o.length-(L||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(L||1)].first_column,last_column:o[o.length-1].last_column},V&&(C._$.range=[o[o.length-(L||1)].range[0],o[o.length-1].range[1]]),U=this.performAction.apply(C,[k,H,I,b.yy,T[1],g,o].concat(M)),typeof U<"u")return U;L&&(c=c.slice(0,-1*L*2),g=g.slice(0,-1*L),o=o.slice(0,-1*L)),c.push(this.productions_[T[1]][0]),g.push(C.$),o.push(C._$),D=w[c[c.length-2]][c[c.length-1]],c.push(D);break;case 3:return!0}}return!0},"parse")},x=(function(){var m={EOF:1,parseError:n.__name(function(a,c){if(this.yy.parser)this.yy.parser.parseError(a,c);else throw new Error(a)},"parseError"),setInput:n.__name(function(s,a){return this.yy=a||this.yy||{},this._input=s,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:n.__name(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var a=s.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:n.__name(function(s){var a=s.length,c=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a),this.offset-=a;var u=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),c.length-1&&(this.yylineno-=c.length-1);var g=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:c?(c.length===u.length?this.yylloc.first_column:0)+u[u.length-c.length].length-c[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[g[0],g[0]+this.yyleng-a]),this.yyleng=this.yytext.length,this},"unput"),more:n.__name(function(){return this._more=!0,this},"more"),reject:n.__name(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:n.__name(function(s){this.unput(this.match.slice(s))},"less"),pastInput:n.__name(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:n.__name(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:n.__name(function(){var s=this.pastInput(),a=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
@@ -1,4 +1,4 @@
1
- import { T as a, h as m } from "./mermaid-parser.core-9iy8B9V0.js";
1
+ import { T as a, h as m } from "./mermaid-parser.core-1I1w3Zgm.js";
2
2
  export {
3
3
  a as TreemapModule,
4
4
  m as createTreemapServices
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./mermaid-parser.core-DXuaRCas.cjs");exports.TreemapModule=e.TreemapModule;exports.createTreemapServices=e.createTreemapServices;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./mermaid-parser.core-4NX9G4IH.cjs");exports.TreemapModule=e.TreemapModule;exports.createTreemapServices=e.createTreemapServices;
@@ -23,6 +23,8 @@ export interface CodeBlockPluginOptions {
23
23
  * @example (url) => console.log('Published:', url)
24
24
  */
25
25
  onPublished?: (url: string) => void;
26
+ /** Optional CSS URL to load for Prism (consumers can provide local file path) */
27
+ cssUrl?: string;
26
28
  }
27
29
  /**
28
30
  * codeBlockPlugin - 代码块渲染插件
@@ -29,6 +29,8 @@ export interface MermaidPluginOptions {
29
29
  * Mermaid 主题配置
30
30
  */
31
31
  theme?: 'default' | 'dark' | 'forest' | 'neutral';
32
+ /** Optional CSS URL to load for Mermaid (consumers can provide local file path) */
33
+ cssUrl?: string;
32
34
  }
33
35
  /**
34
36
  * Mermaid Plugin
@@ -1,2 +1,3 @@
1
1
  export { alertPlugin } from './alertPlugin';
2
- export { katexPlugin } from './katexPlugin';
2
+ export { katexPlugin, createKatexPlugin } from './katexPlugin';
3
+ export type { KatexPluginOptions } from './katexPlugin';
@@ -5,4 +5,9 @@
5
5
  * - Block math: $$...$$, \[...\]
6
6
  * - Inline math: \(...\), $...$
7
7
  */
8
+ export interface KatexPluginOptions {
9
+ /** Optional CSS URL to load for KaTeX (consumers can provide local file path) */
10
+ cssUrl?: string;
11
+ }
8
12
  export declare function katexPlugin(md: any): void;
13
+ export declare function createKatexPlugin(options?: KatexPluginOptions): (md: any) => any;
@@ -9,6 +9,10 @@ export type ASTNode = {
9
9
  children?: ASTNode[];
10
10
  data?: string;
11
11
  };
12
+ /**
13
+ * 主题类型(用于控制是否应用 github-markdown-css)
14
+ */
15
+ export type Theme = 'github' | string;
12
16
  /**
13
17
  * 渲染上下文(传递给插件的共享状态)
14
18
  */
@@ -117,4 +121,8 @@ export type MdRendererProps = {
117
121
  * Custom 渲染插件配置
118
122
  */
119
123
  customPlugins?: CustomPluginConfig[];
124
+ /**
125
+ * UI 主题。传入 'github' 时会启用 github-markdown-css 样式
126
+ */
127
+ theme?: Theme;
120
128
  };
@@ -0,0 +1 @@
1
+ export declare function loadCss(url: string, id?: string): void;