@juki-team/base-ui 1.5.13 → 1.5.15

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 (258) hide show
  1. package/dist/esm/ArrowForwardIcon-Bd0B_Kwe.js +1 -0
  2. package/dist/esm/BarChart-B6teyAwl.js +1 -0
  3. package/dist/esm/{CartesianChart-DYpkf6Ou.js → CartesianChart-BZZYJ31q.js} +1 -1
  4. package/dist/esm/ChangePasswordModal-wjB2d2a0.js +1 -0
  5. package/dist/esm/CodeEditor--mRrq7Xc.js +1 -0
  6. package/dist/esm/CodeViewer-C2keyN4-.js +1 -0
  7. package/dist/esm/Collapse-C_rZY9aE.js +1 -0
  8. package/dist/esm/{DataGrid-BdFgb8IP.js → DataGrid-DbFP5mTw.js} +1 -1
  9. package/dist/esm/DataViewer-lFoDNwIZ.js +1 -0
  10. package/dist/esm/DrawerView-BLwtJxwY.js +1 -0
  11. package/dist/esm/ExcalidrawButton-CrNTOZTX.js +1 -0
  12. package/dist/esm/GraphvizViewer-beaBRsJd.js +1 -0
  13. package/dist/esm/ImageLoaderCropper-_ZIo2zEm.js +1 -0
  14. package/dist/esm/InputCellPhoneNumber-CusvoWas.js +1 -0
  15. package/dist/esm/{InputColor-CHgGjI3f.js → InputColor-ADhkNitB.js} +1 -1
  16. package/dist/esm/LineChart-DUg6yaTg.js +1 -0
  17. package/dist/esm/{LoaderLayer-ECtsj85k.js → LoaderLayer-Csc8unUJ.js} +1 -1
  18. package/dist/esm/MdMath-Dstso3EJ.js +1 -0
  19. package/dist/esm/{MdMathEditor-Dvq5oODw.js → MdMathEditor-BMYIOhto.js} +1 -1
  20. package/dist/esm/{Popover-CX8YffOd.js → Popover-DRm9Iqcj.js} +1 -1
  21. package/dist/esm/ReplyIcon-BAIEk00m.js +1 -0
  22. package/dist/esm/{SettingsIcon-B9nmP4lD.js → SettingsIcon-Cd0qgB0A.js} +1 -1
  23. package/dist/esm/SlideDeck-C0Py_6HO.js +1 -0
  24. package/dist/esm/{TableEyeIcon-Mb5aFvN0.js → TableEyeIcon-CYXh-eSU.js} +1 -1
  25. package/dist/esm/{TableOfContents-BBAEZx6Z.js → TableOfContents-GPaHLa0x.js} +1 -1
  26. package/dist/esm/Tooltip-DZbA_43G.js +1 -0
  27. package/dist/esm/UserCodeEditor-D_rQzIU2.js +61 -0
  28. package/dist/esm/VirtualizedRowsFixed-BgL_awYQ.js +1 -0
  29. package/dist/esm/WorksheetAsSlides-B8zp1Rak.js +1 -0
  30. package/dist/esm/{WorksheetBodies-CO67-rEz.js → WorksheetBodies-Cr9jJtnr.js} +1 -1
  31. package/dist/esm/WorksheetContents-Y4b_IwYP.js +1 -0
  32. package/dist/esm/WorksheetEditor-BoecibGe.js +1 -0
  33. package/dist/esm/{WorksheetNode-BgNNzY8I.js → WorksheetNode-DTyHDssN.js} +1 -1
  34. package/dist/esm/WorksheetViewer-BkyLzOi4.js +1 -0
  35. package/dist/esm/abnfDiagram-WEYOIA3C-C_CVppQA.js +1 -0
  36. package/dist/esm/{arc-COK0VEkT.js → arc-vEmnBEcc.js} +1 -1
  37. package/dist/esm/architectureDiagram-ZHVYKT53-CCcP7rrg.js +1 -0
  38. package/dist/esm/blockDiagram-RJAE7QA3-DU8sn8Km.js +1 -0
  39. package/dist/esm/c4Diagram-XDPPPE54-DQFPX695.js +1 -0
  40. package/dist/esm/channel-5x2nMoMO.js +1 -0
  41. package/dist/esm/{chunk-2E7WHVMD-CVBqw5fR.js → chunk-2E7WHVMD-p2GM0eBD.js} +1 -1
  42. package/dist/esm/{chunk-2Q5K7J3B-CyZYeWxE.js → chunk-2Q5K7J3B-Cy8SGmP2.js} +1 -1
  43. package/dist/esm/{chunk-4EMNKR2T-D1yHHif8.js → chunk-4EMNKR2T-CyLGLodZ.js} +1 -1
  44. package/dist/esm/{chunk-55XCU76K-CvYWAV_o.js → chunk-55XCU76K-BN8xVJCh.js} +1 -1
  45. package/dist/esm/{chunk-5VM5RSS4-CS0kZLYA.js → chunk-5VM5RSS4-D3PGx3gp.js} +1 -1
  46. package/dist/esm/{chunk-JWPE2WC7-Ct5OBLCL.js → chunk-JWPE2WC7-BJAR6xMq.js} +1 -1
  47. package/dist/esm/{chunk-NQOKRVIF-D0-2mmH4.js → chunk-NQOKRVIF-fUehRCXZ.js} +1 -1
  48. package/dist/esm/{chunk-VQ5W62QI-CsGo0PTx.js → chunk-VQ5W62QI-mHHsR0s0.js} +1 -1
  49. package/dist/esm/{chunk-XXDRQBXY-DPPGTM3w.js → chunk-XXDRQBXY-DLLBlZjr.js} +1 -1
  50. package/dist/esm/{chunk-ZCHMQSOR-Bvjutmxm.js → chunk-ZCHMQSOR-t517tTkb.js} +1 -1
  51. package/dist/esm/classDiagram-v2-4MYWR3UA-CrNA_w1s.js +1 -0
  52. package/dist/esm/{commons-iref2pEJ.js → commons-BLDufAOm.js} +1 -1
  53. package/dist/esm/constants.js +1 -1
  54. package/dist/esm/cose-bilkent-JH36ORCC-DTawllqu.js +1 -0
  55. package/dist/esm/cynefinDiagram-WF24UDRP-DWwhOkSi.js +1 -0
  56. package/dist/esm/dagre-NK4GIZVX-Jm0gIaFX.js +1 -0
  57. package/dist/esm/diagram-CBK3MWTC-CcOs3Ceh.js +1 -0
  58. package/dist/esm/diagram-I5XIIV2D-BBh0FWXm.js +1 -0
  59. package/dist/esm/diagram-ODIL2UCW-BlztNr6r.js +1 -0
  60. package/dist/esm/diagram-PFBEJUXE-DtRoe0ng.js +1 -0
  61. package/dist/esm/diagram-RJA3I4VV-LdjGFjBw.js +1 -0
  62. package/dist/esm/diagram-TYUNFSNR-D8WXXh7g.js +1 -0
  63. package/dist/esm/ebnfDiagram-V4P3TTPT-DESDKr7D.js +1 -0
  64. package/dist/esm/elk-QONTBCTQ-DDBz4veG.js +1 -0
  65. package/dist/esm/enums.js +1 -1
  66. package/dist/esm/erDiagram-KYQIGQAA-CBg-NMBs.js +1 -0
  67. package/dist/esm/flowDiagram-IUGLLWBU-BytjhPBX.js +1 -0
  68. package/dist/esm/ganttDiagram-R7GPNTJY-BKQtPa2l.js +1 -0
  69. package/dist/esm/gitGraphDiagram-PDYL7XHY-SgW1IIil.js +1 -0
  70. package/dist/esm/helpers.js +1 -1
  71. package/dist/esm/index-38k9tHSo.js +1 -0
  72. package/dist/esm/index-3QSNRp1k.js +1 -0
  73. package/dist/esm/{index-B5Soolr4.js → index-CEgC-P3H.js} +1 -1
  74. package/dist/esm/{index-70SVfF-m.js → index-D954khxt.js} +1 -1
  75. package/dist/esm/{index-DkZReaeM.js → index-yFCV1i1-.js} +1 -1
  76. package/dist/esm/infoDiagram-MVDRKAX5-DfklDIw_.js +1 -0
  77. package/dist/esm/ishikawaDiagram-HPEHV2GE-BgFDqFFr.js +1 -0
  78. package/dist/esm/journeyDiagram-BOSHW7O7-DMgZlI3B.js +1 -0
  79. package/dist/esm/kanban-definition-FNSA4HC5-6nGtZdla.js +1 -0
  80. package/dist/esm/main.js +1 -1
  81. package/dist/esm/{mermaid.core-DRk6tt5W.js → mermaid.core-VF3HuzPL.js} +2 -2
  82. package/dist/esm/mindmap-definition-6OY57UG3-CldUD6qU.js +1 -0
  83. package/dist/esm/pegDiagram-ECIUJNBX-CxOzmAR6.js +1 -0
  84. package/dist/esm/pieDiagram-GNMPY74T-CVzFNxbL.js +1 -0
  85. package/dist/esm/quadrantDiagram-D57K4MC3-zu8PK3sn.js +1 -0
  86. package/dist/esm/railroadDiagram-Y72NRBL7-32O5vSNO.js +1 -0
  87. package/dist/esm/requirementDiagram-EQYSW5RA-y8y1LAQQ.js +1 -0
  88. package/dist/esm/sankeyDiagram-SY24JHO5-B6RN54HY.js +1 -0
  89. package/dist/esm/sequenceDiagram-BLEHNHQU-x0406cvr.js +1 -0
  90. package/dist/esm/server.js +1 -1
  91. package/dist/esm/settings-6x4qNkNZ.js +1 -0
  92. package/dist/esm/settings.js +1 -1
  93. package/dist/esm/sizeCapture-INFHLROL--wG_Awhp.js +1 -0
  94. package/dist/esm/stateDiagram-v2-A6IESKWZ-BO6rHKAj.js +1 -0
  95. package/dist/esm/swimlanes-B3ENRKFQ-Bn5D5Wx7.js +1 -0
  96. package/dist/esm/swimlanesDiagram-AYQRV4AK-Ba9zNATm.js +1 -0
  97. package/dist/esm/timeline-definition-JXYKGLGB-BEJjWLZB.js +1 -0
  98. package/dist/esm/{types-DsZvEANP.js → types-B-kh3Oeb.js} +1 -1
  99. package/dist/esm/usecaseDiagram-WPOLBNNX-RyH7DcwX.js +1 -0
  100. package/dist/esm/vennDiagram-Q3Y3IDCW-CxTrhG-i.js +1 -0
  101. package/dist/esm/wardleyDiagram-IVAIDKWA-pBsrgWov.js +1 -0
  102. package/dist/esm/websocket-D79arGLt.js +1 -0
  103. package/dist/esm/xychartDiagram-4URNHDU4-CA9STbh6.js +1 -0
  104. package/dist/module-types/src/components/helpers/problem.d.ts +1 -1
  105. package/dist/module-types/src/components/helpers/websocket.d.ts +3 -11
  106. package/dist/module-types/src/components/hooks/useInjectOrganizationStyles.d.ts +1 -0
  107. package/dist/module-types/src/components/hooks/useJudge.d.ts +2 -2
  108. package/dist/module-types/src/components/hooks/useJukiUser.d.ts +17 -17
  109. package/dist/module-types/src/components/hooks/useOrganizationPresence.d.ts +18 -0
  110. package/dist/module-types/src/components/hooks/useOwnPresence.d.ts +5 -0
  111. package/dist/module-types/src/components/hooks/useSubscribe.d.ts +2 -2
  112. package/dist/module-types/src/components/molecules/LinkLastPath/types.d.ts +1 -1
  113. package/dist/module-types/src/components/organisms/HorizontalMenu/MenuParts.d.ts +19 -0
  114. package/dist/module-types/src/components/organisms/LoginUser/LoginUser.d.ts +3 -1
  115. package/dist/module-types/src/components/organisms/ProblemSelector/ProblemSelector.d.ts +1 -1
  116. package/dist/module-types/src/components/organisms/ProblemSelector/types.d.ts +4 -4
  117. package/dist/module-types/src/components/organisms/SubmitView/commons/SubmissionListenerVerdict.d.ts +2 -2
  118. package/dist/module-types/src/components/organisms/SubmitView/commons/SubmissionVerdict.d.ts +3 -3
  119. package/dist/module-types/src/components/organisms/SubmitView/commons/SubmitViewContent.d.ts +2 -2
  120. package/dist/module-types/src/components/organisms/UserChip/types.d.ts +2 -2
  121. package/dist/module-types/src/components/organisms/UserNicknameLink/UserNicknameLink.d.ts +1 -1
  122. package/dist/module-types/src/components/organisms/UsersSelector/types.d.ts +3 -3
  123. package/dist/module-types/src/components/organisms/_layz_/DataViewer/JkContestTableTest/MockJkContestTable.d.ts +2 -2
  124. package/dist/module-types/src/components/organisms/_layz_/DataViewer/JkProblemTableTest/MockJkProblemTable.d.ts +2 -2
  125. package/dist/module-types/src/components/organisms/_layz_/DataViewer/JkSubmissionsTableTest/MockJkSubmissionTable.d.ts +2 -2
  126. package/dist/module-types/src/components/organisms/_layz_/WorksheetAsSlides/types.d.ts +2 -2
  127. package/dist/module-types/src/components/organisms/_layz_/WorksheetEditor/sheets/ResultHeader.d.ts +2 -2
  128. package/dist/module-types/src/components/organisms/_layz_/WorksheetViewer/types.d.ts +2 -2
  129. package/dist/module-types/src/components/organisms/modals/ImageUploaderModal/PublicImagesTab/PublicImages.d.ts +2 -2
  130. package/dist/module-types/src/components/organisms/modals/LoginModal/LoginModal.d.ts +1 -1
  131. package/dist/module-types/src/components/organisms/modals/LoginModal/LoginModalTemplate/types.d.ts +2 -2
  132. package/dist/module-types/src/components/organisms/modals/LoginModal/types.d.ts +1 -1
  133. package/dist/module-types/src/components/organisms/modals/UserPreviewModal/UserPreviewContentModal.d.ts +4 -4
  134. package/dist/module-types/src/components/providers/JukiAblyInitializer/JukiAblyInitializer.d.ts +1 -1
  135. package/dist/module-types/src/components/providers/JukiUIProvider/JukiUIProvider.d.ts +1 -1
  136. package/dist/module-types/src/components/providers/JukiUIProvider/types.d.ts +2 -2
  137. package/dist/module-types/src/components/providers/JukiUserProvider/types.d.ts +4 -4
  138. package/dist/module-types/src/components/templates/ContestNameLinkField/types.d.ts +3 -3
  139. package/dist/module-types/src/components/templates/EditProfileModal/ImageProfileModal.d.ts +1 -1
  140. package/dist/module-types/src/components/templates/EditProfileModal/types.d.ts +5 -5
  141. package/dist/module-types/src/components/templates/MainMenu/SettingsSection/index.d.ts +1 -1
  142. package/dist/module-types/src/components/templates/MainMenu/types.d.ts +1 -1
  143. package/dist/module-types/src/components/templates/ProblemView/commons/ProblemCodeEditor.d.ts +2 -2
  144. package/dist/module-types/src/components/templates/ProblemView/types.d.ts +3 -3
  145. package/dist/module-types/src/components/templates/ResetPasswordModal/ResetPasswordModal.d.ts +1 -1
  146. package/dist/module-types/src/components/templates/ResetPasswordModal/types.d.ts +1 -1
  147. package/dist/module-types/src/components/templates/UserProfile/types.d.ts +3 -3
  148. package/dist/module-types/src/components/templates/UserProfileSettings/types.d.ts +2 -2
  149. package/dist/module-types/src/components/templates/UserViewLayout/types.d.ts +2 -2
  150. package/dist/module-types/src/components/templates/columns/contest-columns/getContestContestantsHeader.d.ts +2 -2
  151. package/dist/module-types/src/components/templates/columns/contest-columns/getContestDateHeader.d.ts +2 -2
  152. package/dist/module-types/src/components/templates/columns/contest-columns/getContestNameHeader.d.ts +2 -2
  153. package/dist/module-types/src/components/templates/columns/contest-columns/getContestStatusHeader.d.ts +2 -2
  154. package/dist/module-types/src/components/templates/columns/contest-columns/getContestTagsHeader.d.ts +2 -2
  155. package/dist/module-types/src/components/templates/columns/problem-columns/getProblemAdminActionsHeader.d.ts +2 -2
  156. package/dist/module-types/src/components/templates/columns/problem-columns/getProblemKeyHeader.d.ts +2 -2
  157. package/dist/module-types/src/components/templates/columns/problem-columns/getProblemModeHeader.d.ts +2 -2
  158. package/dist/module-types/src/components/templates/columns/problem-columns/getProblemNameHeader.d.ts +2 -2
  159. package/dist/module-types/src/components/templates/columns/problem-columns/getProblemOwnerHeader.d.ts +2 -2
  160. package/dist/module-types/src/components/templates/columns/problem-columns/getProblemTagsHeader.d.ts +2 -2
  161. package/dist/module-types/src/components/templates/columns/problem-columns/getProblemTypeHeader.d.ts +2 -2
  162. package/dist/module-types/src/components/templates/columns/submission-columns/getSubmissionContestHeader.d.ts +2 -2
  163. package/dist/module-types/src/components/templates/columns/submission-columns/getSubmissionContestProblemHeader.d.ts +3 -3
  164. package/dist/module-types/src/components/templates/columns/submission-columns/getSubmissionDateHeader.d.ts +2 -2
  165. package/dist/module-types/src/components/templates/columns/submission-columns/getSubmissionLanguageHeader.d.ts +2 -2
  166. package/dist/module-types/src/components/templates/columns/submission-columns/getSubmissionMemoryHeader.d.ts +2 -2
  167. package/dist/module-types/src/components/templates/columns/submission-columns/getSubmissionNicknameHeader.d.ts +2 -2
  168. package/dist/module-types/src/components/templates/columns/submission-columns/getSubmissionProblemHeader.d.ts +3 -3
  169. package/dist/module-types/src/components/templates/columns/submission-columns/getSubmissionRejudgeHeader.d.ts +2 -2
  170. package/dist/module-types/src/components/templates/columns/submission-columns/getSubmissionTimeHeader.d.ts +2 -2
  171. package/dist/module-types/src/components/templates/columns/submission-columns/getSubmissionVerdictHeader.d.ts +2 -2
  172. package/dist/module-types/src/components/templates/members/DocumentMembersModal/DocumentMembersModal.d.ts +2 -2
  173. package/dist/module-types/src/components/templates/members/types.d.ts +6 -6
  174. package/dist/module-types/src/components/templates/problem/ProblemCrawlerField.d.ts +1 -1
  175. package/dist/module-types/src/components/templates/problem/ProblemOwnerField.d.ts +1 -1
  176. package/dist/module-types/src/components/templates/problem/types.d.ts +10 -10
  177. package/dist/module-types/src/components/templates/submission/SubmissionNicknameField.d.ts +1 -1
  178. package/dist/module-types/src/components/templates/submission/types.d.ts +9 -9
  179. package/dist/module-types/src/components/types/index.d.ts +6 -6
  180. package/dist/module-types/src/constants/index.d.ts +2 -2
  181. package/dist/module-types/src/enums/index.d.ts +1 -1
  182. package/dist/module-types/src/hooks/index.d.ts +2 -1
  183. package/dist/module-types/src/settings/ApiManager.d.ts +77 -101
  184. package/dist/module-types/src/settings/AppRoutes.d.ts +2 -2
  185. package/dist/module-types/src/stores/websocket/topicChannels.d.ts +17 -5
  186. package/dist/module-types/src/stores/websocket/types.d.ts +4 -8
  187. package/package.json +5 -5
  188. package/dist/esm/ArrowForwardIcon-DelUFdaJ.js +0 -1
  189. package/dist/esm/BarChart-D2X8Qu4u.js +0 -1
  190. package/dist/esm/ChangePasswordModal-yc4D7RMs.js +0 -1
  191. package/dist/esm/CodeEditor-Dxp5QnTB.js +0 -1
  192. package/dist/esm/CodeViewer-BSZXIngC.js +0 -1
  193. package/dist/esm/Collapse-D-w5SKss.js +0 -1
  194. package/dist/esm/DataViewer-DVVGkDSK.js +0 -1
  195. package/dist/esm/DrawerView-DCRvckZd.js +0 -1
  196. package/dist/esm/ExcalidrawButton-_a-eNbyb.js +0 -1
  197. package/dist/esm/GraphvizViewer-B2-JVx0t.js +0 -1
  198. package/dist/esm/ImageLoaderCropper-wV-hPOjq.js +0 -1
  199. package/dist/esm/InputCellPhoneNumber-Bcl22QsC.js +0 -1
  200. package/dist/esm/LineChart-ByKPkVhP.js +0 -1
  201. package/dist/esm/MdMath-DljkRDxR.js +0 -1
  202. package/dist/esm/ReplyIcon-BNYBKbgb.js +0 -1
  203. package/dist/esm/SlideDeck-C0n93gz0.js +0 -1
  204. package/dist/esm/Tooltip-DB0S1ErV.js +0 -1
  205. package/dist/esm/UserCodeEditor-B1d5gyVE.js +0 -61
  206. package/dist/esm/VirtualizedRowsFixed-ChX4ON0l.js +0 -1
  207. package/dist/esm/WorksheetAsSlides-CpiXbUML.js +0 -1
  208. package/dist/esm/WorksheetContents-ClZpiXB-.js +0 -1
  209. package/dist/esm/WorksheetEditor-CjAvgOx6.js +0 -1
  210. package/dist/esm/WorksheetViewer-DVQitUzi.js +0 -1
  211. package/dist/esm/abnfDiagram-WEYOIA3C-CwJ1V2U1.js +0 -1
  212. package/dist/esm/architectureDiagram-ZHVYKT53-CM6AQFKG.js +0 -1
  213. package/dist/esm/blockDiagram-RJAE7QA3-CdSNo9Pe.js +0 -1
  214. package/dist/esm/c4Diagram-XDPPPE54-BhfYKASq.js +0 -1
  215. package/dist/esm/channel-DWjyymG_.js +0 -1
  216. package/dist/esm/classDiagram-v2-4MYWR3UA-J_cOAAHS.js +0 -1
  217. package/dist/esm/cose-bilkent-JH36ORCC-BHzp2aV0.js +0 -1
  218. package/dist/esm/cynefinDiagram-WF24UDRP-B3Y9mCh3.js +0 -1
  219. package/dist/esm/dagre-NK4GIZVX-BSfh-C_i.js +0 -1
  220. package/dist/esm/diagram-CBK3MWTC-w-BT1S7I.js +0 -1
  221. package/dist/esm/diagram-I5XIIV2D-wMqo87b_.js +0 -1
  222. package/dist/esm/diagram-ODIL2UCW-DQhUXqDu.js +0 -1
  223. package/dist/esm/diagram-PFBEJUXE-BlCntZMJ.js +0 -1
  224. package/dist/esm/diagram-RJA3I4VV-Cev21A9i.js +0 -1
  225. package/dist/esm/diagram-TYUNFSNR-BiiLNoPs.js +0 -1
  226. package/dist/esm/ebnfDiagram-V4P3TTPT-BWNnHl88.js +0 -1
  227. package/dist/esm/elk-QONTBCTQ-DhvgoeNg.js +0 -1
  228. package/dist/esm/erDiagram-KYQIGQAA-DkFGw08p.js +0 -1
  229. package/dist/esm/flowDiagram-IUGLLWBU-B-Bxdnen.js +0 -1
  230. package/dist/esm/ganttDiagram-R7GPNTJY-Bvr90Acy.js +0 -1
  231. package/dist/esm/gitGraphDiagram-PDYL7XHY-DHszoB7b.js +0 -1
  232. package/dist/esm/index-2PTQqTnK.js +0 -1
  233. package/dist/esm/index-BpcqEzEG.js +0 -1
  234. package/dist/esm/infoDiagram-MVDRKAX5-D05SjyVf.js +0 -1
  235. package/dist/esm/ishikawaDiagram-HPEHV2GE-50RQ8Owd.js +0 -1
  236. package/dist/esm/journeyDiagram-BOSHW7O7-DnHu8DYt.js +0 -1
  237. package/dist/esm/kanban-definition-FNSA4HC5-BF3y0Q5O.js +0 -1
  238. package/dist/esm/mindmap-definition-6OY57UG3-D2VvQCn5.js +0 -1
  239. package/dist/esm/pegDiagram-ECIUJNBX-LCa_e2vp.js +0 -1
  240. package/dist/esm/pieDiagram-GNMPY74T-BFxRc695.js +0 -1
  241. package/dist/esm/quadrantDiagram-D57K4MC3-m-v5Oved.js +0 -1
  242. package/dist/esm/railroadDiagram-Y72NRBL7-CGhQNkt2.js +0 -1
  243. package/dist/esm/requirementDiagram-EQYSW5RA-D4TUJX2j.js +0 -1
  244. package/dist/esm/sankeyDiagram-SY24JHO5-qeunG13D.js +0 -1
  245. package/dist/esm/sequenceDiagram-BLEHNHQU-Bf8dSGiP.js +0 -1
  246. package/dist/esm/settings-CBGV-lz3.js +0 -1
  247. package/dist/esm/sizeCapture-INFHLROL-B0tQoQkY.js +0 -1
  248. package/dist/esm/stateDiagram-v2-A6IESKWZ-D-bM5qVN.js +0 -1
  249. package/dist/esm/swimlanes-B3ENRKFQ-DR9euVhL.js +0 -1
  250. package/dist/esm/swimlanesDiagram-AYQRV4AK-D0-BBYnj.js +0 -1
  251. package/dist/esm/timeline-definition-JXYKGLGB-ChsOD2es.js +0 -1
  252. package/dist/esm/usecaseDiagram-WPOLBNNX-DZFg1Zof.js +0 -1
  253. package/dist/esm/vennDiagram-Q3Y3IDCW-DAW-dDy7.js +0 -1
  254. package/dist/esm/wardleyDiagram-IVAIDKWA-B-gsebc8.js +0 -1
  255. package/dist/esm/websocket-CdeP8N_S.js +0 -1
  256. package/dist/esm/xychartDiagram-4URNHDU4-DS3Qm0VA.js +0 -1
  257. package/dist/module-types/src/components/hooks/useClientTrackLocation.d.ts +0 -1
  258. package/dist/module-types/src/components/hooks/useInjectCompanyStyles.d.ts +0 -1
@@ -1 +1 @@
1
- import{g as t}from"./chunk-5VM5RSS4-CS0kZLYA.js";import{g as e}from"./chunk-XXDRQBXY-DPPGTM3w.js";import{s}from"./chunk-VQ5W62QI-CsGo0PTx.js";import{_ as i,q as n,l as r,c as a,r as u,t as o,u as l,b as c,s as h,v as d,a as p,g,x as A,m as y,y as k,J as f,z as b,A as m,k as E,B as C,C as D,D as T,E as x,F as S,G as F,H as _,I as B}from"./mermaid.core-DRk6tt5W.js";import{c as v}from"./chunk-55XCU76K-CvYWAV_o.js";import{c as $}from"./channel-DWjyymG_.js";var w=class{constructor(){this.vertexCounter=0,this.config=a(),this.diagramId="",this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=c,this.setAccDescription=h,this.setDiagramTitle=d,this.getAccTitle=p,this.getAccDescription=g,this.getDiagramTitle=A,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}static{i(this,"FlowDB")}sanitizeText(t){return y.sanitizeText(t,this.config)}sanitizeNodeLabelType(t){switch(t){case"markdown":case"string":case"text":return t;default:return"markdown"}}setDiagramId(t){this.diagramId=t}lookUpDomId(t){for(const e of this.vertices.values())if(e.id===t)return this.diagramId?`${this.diagramId}-${e.domId}`:e.domId;return this.diagramId?`${this.diagramId}-${t}`:t}addVertex(t,e,s,i,n,u,o={},l){if(!t||0===t.trim().length)return;let c;if(void 0!==l){let t;t=l.includes("\n")?l+"\n":"{\n"+l+"\n}",c=k(t,{schema:f})}const h=this.subGraphLookup.get(t);if(h&&c)return void(h.metadata={...h.metadata,...c});const d=this.edges.find(e=>e.id===t);if(d){const t=c;return void 0!==t?.animate&&(d.animate=t.animate),void 0!==t?.animation&&(d.animation=t.animation),void(void 0!==t?.curve&&(d.interpolate=t.curve))}let p,g=this.vertices.get(t);if(void 0===g&&(void 0===e&&void 0===s&&null!=i&&r.warn(`Style applied to unknown node "${t}". This may indicate a typo. The node will be created automatically.`),g={id:t,labelType:"text",domId:"flowchart-"+t+"-"+this.vertexCounter,styles:[],classes:[]},this.vertices.set(t,g)),this.vertexCounter++,void 0!==e?(this.config=a(),p=this.sanitizeText(e.text.trim()),g.labelType=e.type,p.startsWith('"')&&p.endsWith('"')&&(p=p.substring(1,p.length-1)),g.text=p):void 0===g.text&&(g.text=t),void 0!==s&&(g.type=s),null!=i&&i.forEach(t=>{g.styles.push(t)}),null!=n&&n.forEach(t=>{g.classes.push(t)}),void 0!==u&&(g.dir=u),void 0===g.props?g.props=o:void 0!==o&&Object.assign(g.props,o),void 0!==c){if(c.shape){if(c.shape!==c.shape.toLowerCase()||c.shape.includes("_"))throw new Error(`No such shape: ${c.shape}. Shape names should be lowercase.`);if(!b(c.shape))throw new Error(`No such shape: ${c.shape}.`);g.type=c?.shape}c?.label&&(g.text=c?.label,g.labelType=this.sanitizeNodeLabelType(c?.labelType)),c?.icon&&(g.icon=c?.icon,c.label?.trim()||g.text!==t||(g.text="")),c?.form&&(g.form=c?.form),c?.pos&&(g.pos=c?.pos),c?.img&&(g.img=c?.img,c.label?.trim()||g.text!==t||(g.text="")),c?.constraint&&(g.constraint=c.constraint),c.w&&(g.assetWidth=Number(c.w)),c.h&&(g.assetHeight=Number(c.h))}}addSingleLink(t,e,s,i){const n={start:t,end:e,type:void 0,text:"",labelType:"text",classes:[],isUserDefinedId:!1,interpolate:this.edges.defaultInterpolate};r.info("abc78 Got edge...",n);const a=s.text;if(void 0!==a&&(n.text=this.sanitizeText(a.text.trim()),n.text.startsWith('"')&&n.text.endsWith('"')&&(n.text=n.text.substring(1,n.text.length-1)),n.labelType=this.sanitizeNodeLabelType(a.type)),void 0!==s&&(n.type=s.type,n.stroke=s.stroke,n.length=s.length>10?10:s.length),i&&!this.edges.some(t=>t.id===i))n.id=i,n.isUserDefinedId=!0;else{const t=this.edges.filter(t=>t.start===n.start&&t.end===n.end);0===t.length?n.id=m(n.start,n.end,{counter:0,prefix:"L"}):n.id=m(n.start,n.end,{counter:t.length+1,prefix:"L"})}if(!(this.edges.length<(this.config.maxEdges??500)))throw new Error(`Edge limit exceeded. ${this.edges.length} edges found, but the limit is ${this.config.maxEdges}.\n\nInitialize mermaid with maxEdges set to a higher number to allow more edges.\nYou cannot set this config via configuration inside the diagram as it is a secure config.\nYou have to call mermaid.initialize.`);r.info("Pushing edge..."),this.edges.push(n)}isLinkData(t){return null!==t&&"object"==typeof t&&"id"in t&&"string"==typeof t.id}addLink(t,e,s){const i=this.isLinkData(s)?s.id.replace("@",""):void 0;r.info("addLink",t,e,i);for(const n of t)for(const r of e){const a=n===t[t.length-1],u=r===e[0];a&&u?this.addSingleLink(n,r,s,i):this.addSingleLink(n,r,s,void 0)}}updateLinkInterpolate(t,e){t.forEach(t=>{"default"===t?this.edges.defaultInterpolate=e:this.edges[t].interpolate=e})}updateLink(t,e){t.forEach(t=>{if("number"==typeof t&&t>=this.edges.length)throw new Error(`The index ${t} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);"default"===t?this.edges.defaultStyle=e:(this.edges[t].style=e,(this.edges[t]?.style?.length??0)>0&&!this.edges[t]?.style?.some(t=>t?.startsWith("fill"))&&this.edges[t]?.style?.push("fill:none"))})}addClass(t,e){const s=e.join().replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");t.split(",").forEach(t=>{let e=this.classes.get(t);void 0===e&&(e={id:t,styles:[],textStyles:[]},this.classes.set(t,e)),null!=s&&s.forEach(t=>{if(/color/.exec(t)){const s=t.replace("fill","bgFill");e.textStyles.push(s)}e.styles.push(t)})})}setDirection(t){this.direction=t.trim(),/.*</.exec(this.direction)&&(this.direction="RL"),/.*\^/.exec(this.direction)&&(this.direction="BT"),/.*>/.exec(this.direction)&&(this.direction="LR"),/.*v/.exec(this.direction)&&(this.direction="TB"),"TD"===this.direction&&(this.direction="TB")}setClass(t,e){for(const s of t.split(",")){const t=this.vertices.get(s);t&&t.classes.push(e);const i=this.edges.find(t=>t.id===s);i&&i.classes.push(e);const n=this.subGraphLookup.get(s);n&&n.classes.push(e)}}setTooltip(t,e){if(void 0!==e){e=this.sanitizeText(e);for(const s of t.split(","))this.tooltips.set("gen-1"===this.version?this.lookUpDomId(s):s,e)}}setClickFun(t,e,s){if("loose"!==a().securityLevel)return;if(void 0===e)return;let i=[];if("string"==typeof s){i=s.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let t=0;t<i.length;t++){let e=i[t].trim();e.startsWith('"')&&e.endsWith('"')&&(e=e.substr(1,e.length-2)),i[t]=e}}0===i.length&&i.push(t);const n=this.vertices.get(t);n&&(n.haveCallback=!0,this.funs.push(()=>{const s=this.lookUpDomId(t),n=document.querySelector(`[id="${s}"]`);null!==n&&n.addEventListener("click",()=>{l.runFunc(e,...i)},!1)}))}setLink(t,e,s){t.split(",").forEach(t=>{const i=this.vertices.get(t);void 0!==i&&(i.link=l.formatUrl(e,this.config),i.linkTarget=s)}),this.setClass(t,"clickable")}getTooltip(t){return this.tooltips.get(t)}setClickEvent(t,e,s){t.split(",").forEach(t=>{this.setClickFun(t,e,s)}),this.setClass(t,"clickable")}bindFunctions(t){this.funs.forEach(e=>{e(t)})}getDirection(){return this.direction?.trim()}getVertices(){return this.vertices}getEdges(){return this.edges}getClasses(){return this.classes}setupToolTips(t){const e=v();E(t).select("svg").selectAll("g.node").on("mouseover",t=>{const s=E(t.currentTarget),i=s.attr("title");if(null===i)return;const n=t.currentTarget?.getBoundingClientRect();e.transition().duration(200).style("opacity",".9"),e.text(s.attr("title")).style("left",window.scrollX+n.left+(n.right-n.left)/2+"px").style("top",window.scrollY+n.bottom+"px"),e.html(C.sanitize(i)),s.classed("hover",!0)}).on("mouseout",t=>{e.transition().duration(500).style("opacity",0);E(t.currentTarget).classed("hover",!1)})}clear(t="gen-2"){this.vertices=new Map,this.classes=new Map,this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.diagramId="",this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.tooltips=new Map,this.firstGraphFlag=!0,this.version=t,this.config=a(),D()}setGen(t){this.version=t||"gen-2"}defaultStyle(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"}addSubGraph(t,e,s){let n=t.text.trim(),u=s.text;t===s&&/\s/.exec(s.text)&&(n=void 0);const o=i(t=>{const e={boolean:{},number:{},string:{}},s=[];let i;return{nodeList:t.filter(function(t){const n=typeof t;return t.stmt&&"dir"===t.stmt?(i=t.value,!1):""!==t.trim()&&(n in e?!e[n].hasOwnProperty(t)&&(e[n][t]=!0):!s.includes(t)&&s.push(t))}),dir:i}},"uniq")(e.flat()),l=o.nodeList;let c=o.dir;const h=a().flowchart??{};if(c=c??(h.inheritDir?this.getDirection()??a().direction??void 0:void 0),"gen-1"===this.version)for(let t=0;t<l.length;t++)l[t]=this.lookUpDomId(l[t]);n=n??"subGraph"+this.subCount,u=u||"",u=this.sanitizeText(u),this.subCount=this.subCount+1;const d={id:n,nodes:l,title:u.trim(),classes:[],dir:c,labelType:this.sanitizeNodeLabelType(s?.type)};r.info("Adding",d.id,d.nodes,d.dir),d.nodes=this.makeUniq(d,this.subGraphs).nodes.filter(t=>t!==n);const p=this.subGraphs.find(t=>t.id===n);return p?p.nodes.push(...d.nodes):this.subGraphs.push(d),this.subGraphLookup.set(n,p??d),n}getPosForId(t){for(const[e,s]of this.subGraphs.entries())if(s.id===t)return e;return-1}indexNodes2(t,e){const s=this.subGraphs[e].nodes;if(this.secCount=this.secCount+1,this.secCount>2e3)return{result:!1,count:0};if(this.posCrossRef[this.secCount]=e,this.subGraphs[e].id===t)return{result:!0,count:0};let i=0,n=1;for(;i<s.length;){const e=this.getPosForId(s[i]);if(e>=0){const s=this.indexNodes2(t,e);if(s.result)return{result:!0,count:n+s.count};n+=s.count}i+=1}return{result:!1,count:n}}getDepthFirstPos(t){return this.posCrossRef[t]}indexNodes(){this.secCount=-1,this.subGraphs.length>0&&this.indexNodes2("none",this.subGraphs.length-1)}getSubGraphs(){return this.subGraphs}firstGraph(){return!!this.firstGraphFlag&&(this.firstGraphFlag=!1,!0)}destructStartLink(t){let e=t.trim(),s="arrow_open";switch(e[0]){case"<":s="arrow_point",e=e.slice(1);break;case"x":s="arrow_cross",e=e.slice(1);break;case"o":s="arrow_circle",e=e.slice(1)}let i="normal";return e.includes("=")&&(i="thick"),e.includes(".")&&(i="dotted"),{type:s,stroke:i}}countChar(t,e){const s=e.length;let i=0;for(let n=0;n<s;++n)e[n]===t&&++i;return i}destructEndLink(t){const e=t.trim();let s=e.slice(0,-1),i="arrow_open";switch(e.slice(-1)){case"x":i="arrow_cross",e.startsWith("x")&&(i="double_"+i,s=s.slice(1));break;case">":i="arrow_point",e.startsWith("<")&&(i="double_"+i,s=s.slice(1));break;case"o":i="arrow_circle",e.startsWith("o")&&(i="double_"+i,s=s.slice(1))}let n="normal",r=s.length-1;s.startsWith("=")&&(n="thick"),s.startsWith("~")&&(n="invisible");const a=this.countChar(".",s);return a&&(n="dotted",r=a),{type:i,stroke:n,length:r}}destructLink(t,e){const s=this.destructEndLink(t);let i;if(e){if(i=this.destructStartLink(e),i.stroke!==s.stroke)return{type:"INVALID",stroke:"INVALID"};if("arrow_open"===i.type)i.type=s.type;else{if(i.type!==s.type)return{type:"INVALID",stroke:"INVALID"};i.type="double_"+i.type}return"double_arrow"===i.type&&(i.type="double_arrow_point"),i.length=s.length,i}return s}exists(t,e){for(const s of t)if(s.nodes.includes(e))return!0;return!1}makeUniq(t,e){const s=[];return t.nodes.forEach((i,n)=>{this.exists(e,i)||s.push(t.nodes[n])}),{nodes:s}}getTypeFromVertex(t){if(t.img)return"imageSquare";if(t.icon)return"circle"===t.form?"iconCircle":"square"===t.form?"iconSquare":"rounded"===t.form?"iconRounded":"icon";switch(t.type){case"square":case void 0:return"squareRect";case"round":return"roundedRect";case"ellipse":return"ellipse";default:return t.type}}findNode(t,e){return t.find(t=>t.id===e)}destructEdgeType(t){let e="none",s="arrow_point";switch(t){case"arrow_point":case"arrow_circle":case"arrow_cross":s=t;break;case"double_arrow_point":case"double_arrow_circle":case"double_arrow_cross":e=t.replace("double_",""),s=e}return{arrowTypeStart:e,arrowTypeEnd:s}}addNodeFromVertex(t,e,s,i,n,r){const a=s.get(t.id),u=i.get(t.id)??!1,o=this.findNode(e,t.id);if(o)o.cssStyles=t.styles,o.cssCompiledStyles=this.getCompiledStyles(t.classes),o.cssClasses=t.classes.join(" ");else{const s={id:t.id,label:t.text,labelType:t.labelType,labelStyle:"",parentId:a,padding:n.flowchart?.padding||8,cssStyles:t.styles,cssCompiledStyles:this.getCompiledStyles(["default","node",...t.classes]),cssClasses:"default "+t.classes.join(" "),dir:t.dir,domId:t.domId,look:r,link:t.link,linkTarget:t.linkTarget,tooltip:this.getTooltip(t.id),icon:t.icon,pos:t.pos,img:t.img,assetWidth:t.assetWidth,assetHeight:t.assetHeight,constraint:t.constraint};u?e.push({...s,isGroup:!0,shape:"rect"}):e.push({...s,isGroup:!1,shape:this.getTypeFromVertex(t),minWidth:n.flowchart?.minNodeWidth})}}getCompiledStyles(t){let e=[];for(const s of t){const t=this.classes.get(s);t?.styles&&(e=[...e,...t.styles??[]].map(t=>t.trim())),t?.textStyles&&(e=[...e,...t.textStyles??[]].map(t=>t.trim()))}return e}getData(){const t=a(),e=[],s=[],n=this.getSubGraphs(),r=new Map,u=new Map,o=new Map;for(const t of n)for(const e of t.nodes)this.subGraphLookup.has(e)&&o.set(e,t.id);const l=new Map,c=new Map;for(const t of n){const e=o.get(t.id);void 0!==e&&c.set(e,[...c.get(e)??[],t.id])}let h=0;const d=i(t=>{l.set(t,h++);for(const e of c.get(t)??[])d(e)},"walk");for(const t of n)o.has(t.id)||d(t.id);const p=i(t=>"collapsed"===this.subGraphLookup.get(t)?.metadata?.view,"isCollapsed"),g=i(t=>{let e;const s=new Set;let i=t;for(;void 0!==i&&!s.has(i);)s.add(i),p(i)&&(e=i),i=o.get(i);return e},"outermostCollapsed"),A=new Set,y=new Map;for(const t of n){const e=g(t.id);if(void 0!==e){t.id!==e&&(A.add(t.id),y.set(t.id,e));for(const s of t.nodes)s!==e&&(A.add(s),y.set(s,e))}}for(let t=n.length-1;t>=0;t--){const e=n[t];if(!A.has(e.id)){e.nodes.length>0&&u.set(e.id,!0);for(const t of e.nodes)r.set(t,e.id)}}for(let s=n.length-1;s>=0;s--){const i=n[s];A.has(i.id)||("collapsed"===i.metadata?.view?e.push({id:i.id,label:i.title,labelStyle:"",labelType:i.labelType,parentId:r.get(i.id),padding:8,cssCompiledStyles:this.getCompiledStyles(i.classes),cssClasses:i.classes.join(" "),shape:"collapsedGroup",dir:i.dir,isGroup:!1,look:t.look,colorIndex:l.get(i.id)}):e.push({id:i.id,label:i.title,labelStyle:"",labelType:i.labelType,parentId:r.get(i.id),padding:8,cssCompiledStyles:this.getCompiledStyles(i.classes),cssClasses:i.classes.join(" "),shape:"rect",dir:i.dir,isGroup:!0,look:t.look,colorIndex:l.get(i.id),metadata:i.metadata}))}this.getVertices().forEach(s=>{A.has(s.id)||this.addNodeFromVertex(s,e,r,u,t,t.look||"classic")});const k=this.getEdges();return k.forEach((e,i)=>{const{arrowTypeStart:n,arrowTypeEnd:r}=this.destructEdgeType(e.type),a=[...k.defaultStyle??[]],u=y.get(e.start)??e.start,o=y.get(e.end)??e.end;if(u===o&&(y.has(e.start)||y.has(e.end)))return;e.style&&a.push(...e.style);const l={id:m(u,o,{counter:i,prefix:"L"},e.id),isUserDefinedId:e.isUserDefinedId,start:u,end:o,type:e.type??"normal",label:e.text,labelType:e.labelType,labelpos:"c",thickness:e.stroke,minlen:e.length,classes:"invisible"===e?.stroke?"":"edge-thickness-normal edge-pattern-solid flowchart-link",arrowTypeStart:"invisible"===e?.stroke||"arrow_open"===e?.type?"none":n,arrowTypeEnd:"invisible"===e?.stroke||"arrow_open"===e?.type?"none":r,arrowheadStyle:"fill: #333",cssCompiledStyles:this.getCompiledStyles(e.classes),labelStyle:a,style:a,pattern:e.stroke,look:t.look,animate:e.animate,animation:e.animation,curve:e.interpolate||this.edges.defaultInterpolate||t.flowchart?.curve};s.push(l)}),{nodes:e,edges:s,other:{},config:t}}defaultConfig(){return T.flowchart}},L={getClasses:i(function(t,e){return e.db.getClasses()},"getClasses"),draw:i(async function(t,i,n,c){r.info("REF0:"),r.info("Drawing state diagram (v2)",i);const{securityLevel:h,flowchart:d,layout:p}=a();c.db.setDiagramId(i),r.debug("Before getData: ");const g=c.db.getData();r.debug("Data: ",g);const A=e(i,h),y=c.db.getDirection();g.type=c.type,g.layoutAlgorithm=u(p),g.direction=y,g.nodeSpacing=d?.nodeSpacing||50,g.rankSpacing=d?.rankSpacing||50,g.markers=["point","circle","cross"],g.diagramId=i,r.debug("REF1:",g),await o(g,A);const k=g.config.flowchart?.diagramPadding??8;l.insertTitle(A,"flowchartTitleText",d?.titleTopMargin||0,c.db.getDiagramTitle()),s(A,k,"flowchart",d?.useMaxWidth||!1)},"draw")},I=function(){var t=i(function(t,e,s,i){for(s=s||{},i=t.length;i--;s[t[i]]=e);return s},"o"),e=[1,4],s=[1,3],n=[1,5],r=[1,8,9,10,11,27,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],a=[2,2],u=[1,13],o=[1,14],l=[1,15],c=[1,16],h=[1,23],d=[1,25],p=[1,26],g=[1,27],A=[1,50],y=[1,49],k=[1,29],f=[1,30],b=[1,31],m=[1,32],E=[1,33],C=[1,45],D=[1,47],T=[1,43],x=[1,48],S=[1,44],F=[1,51],_=[1,46],B=[1,52],v=[1,53],$=[1,34],w=[1,35],L=[1,36],I=[1,37],R=[1,38],N=[1,58],G=[1,8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],P=[1,62],O=[1,61],M=[1,63],U=[8,9,11,75,77,78],V=[1,79],W=[1,92],j=[1,97],z=[1,96],K=[1,93],Y=[1,89],H=[1,95],X=[1,91],q=[1,98],Q=[1,94],J=[1,99],Z=[1,90],tt=[8,9,10,11,40,75,77,78],et=[8,9,10,11,40,46,75,77,78],st=[8,9,10,11,29,40,44,46,48,50,52,54,56,58,60,63,65,67,68,70,75,77,78,89,102,105,106,109,111,114,115,116],it=[8,9,11,44,60,75,77,78,89,102,105,106,109,111,114,115,116],nt=[44,60,89,102,105,106,109,111,114,115,116],rt=[1,122],at=[1,123],ut=[1,125],ot=[1,124],lt=[44,60,62,74,89,102,105,106,109,111,114,115,116],ct=[1,134],ht=[1,148],dt=[1,149],pt=[1,150],gt=[1,151],At=[1,136],yt=[1,138],kt=[1,142],ft=[1,143],bt=[1,144],mt=[1,145],Et=[1,146],Ct=[1,147],Dt=[1,152],Tt=[1,153],xt=[1,132],St=[1,133],Ft=[1,140],_t=[1,135],Bt=[1,139],vt=[1,137],$t=[8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],wt=[1,155],Lt=[1,157],It=[8,9,11],Rt=[8,9,10,11,14,44,60,89,105,106,109,111,114,115,116],Nt=[1,177],Gt=[1,173],Pt=[1,174],Ot=[1,178],Mt=[1,175],Ut=[1,176],Vt=[77,116,119],Wt=[8,9,10,11,12,14,27,29,32,44,60,75,84,85,86,87,88,89,90,105,109,111,114,115,116],jt=[10,106],zt=[31,49,51,53,55,57,62,64,66,67,69,71,116,117,118],Kt=[1,248],Yt=[1,246],Ht=[1,250],Xt=[1,244],qt=[1,245],Qt=[1,247],Jt=[1,249],Zt=[1,251],te=[1,269],ee=[8,9,11,106],se=[8,9,10,11,60,84,105,106,109,110,111,112],ie={trace:i(function(){},"trace"),yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,shapeData:39,SHAPE_DATA:40,link:41,node:42,styledVertex:43,AMP:44,vertex:45,STYLE_SEPARATOR:46,idString:47,DOUBLECIRCLESTART:48,DOUBLECIRCLEEND:49,PS:50,PE:51,"(-":52,"-)":53,STADIUMSTART:54,STADIUMEND:55,SUBROUTINESTART:56,SUBROUTINEEND:57,VERTEX_WITH_PROPS_START:58,"NODE_STRING[field]":59,COLON:60,"NODE_STRING[value]":61,PIPE:62,CYLINDERSTART:63,CYLINDEREND:64,DIAMOND_START:65,DIAMOND_STOP:66,TAGEND:67,TRAPSTART:68,TRAPEND:69,INVTRAPSTART:70,INVTRAPEND:71,linkStatement:72,arrowText:73,TESTSTR:74,START_LINK:75,edgeText:76,LINK:77,LINK_ID:78,edgeTextToken:79,STR:80,MD_STR:81,textToken:82,keywords:83,STYLE:84,LINKSTYLE:85,CLASSDEF:86,CLASS:87,CLICK:88,DOWN:89,UP:90,textNoTagsToken:91,stylesOpt:92,"idString[vertex]":93,"idString[class]":94,CALLBACKNAME:95,CALLBACKARGS:96,HREF:97,LINK_TARGET:98,"STR[link]":99,"STR[tooltip]":100,alphaNum:101,DEFAULT:102,numList:103,INTERPOLATE:104,NUM:105,COMMA:106,style:107,styleComponent:108,NODE_STRING:109,UNIT:110,BRKT:111,PCT:112,idStringToken:113,MINUS:114,MULT:115,UNICODE_TEXT:116,TEXT:117,TAGSTART:118,EDGE_TEXT:119,alphaNumToken:120,direction_tb:121,direction_bt:122,direction_rl:123,direction_lr:124,direction_td:125,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",40:"SHAPE_DATA",44:"AMP",46:"STYLE_SEPARATOR",48:"DOUBLECIRCLESTART",49:"DOUBLECIRCLEEND",50:"PS",51:"PE",52:"(-",53:"-)",54:"STADIUMSTART",55:"STADIUMEND",56:"SUBROUTINESTART",57:"SUBROUTINEEND",58:"VERTEX_WITH_PROPS_START",59:"NODE_STRING[field]",60:"COLON",61:"NODE_STRING[value]",62:"PIPE",63:"CYLINDERSTART",64:"CYLINDEREND",65:"DIAMOND_START",66:"DIAMOND_STOP",67:"TAGEND",68:"TRAPSTART",69:"TRAPEND",70:"INVTRAPSTART",71:"INVTRAPEND",74:"TESTSTR",75:"START_LINK",77:"LINK",78:"LINK_ID",80:"STR",81:"MD_STR",84:"STYLE",85:"LINKSTYLE",86:"CLASSDEF",87:"CLASS",88:"CLICK",89:"DOWN",90:"UP",93:"idString[vertex]",94:"idString[class]",95:"CALLBACKNAME",96:"CALLBACKARGS",97:"HREF",98:"LINK_TARGET",99:"STR[link]",100:"STR[tooltip]",102:"DEFAULT",104:"INTERPOLATE",105:"NUM",106:"COMMA",109:"NODE_STRING",110:"UNIT",111:"BRKT",112:"PCT",114:"MINUS",115:"MULT",116:"UNICODE_TEXT",117:"TEXT",118:"TAGSTART",119:"EDGE_TEXT",121:"direction_tb",122:"direction_bt",123:"direction_rl",124:"direction_lr",125:"direction_td"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[39,2],[39,1],[20,4],[20,3],[20,4],[20,2],[20,2],[20,1],[42,1],[42,6],[42,5],[43,1],[43,3],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,8],[45,4],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,4],[45,4],[45,1],[41,2],[41,3],[41,3],[41,1],[41,3],[41,4],[76,1],[76,2],[76,1],[76,1],[72,1],[72,2],[73,3],[30,1],[30,2],[30,1],[30,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[103,1],[103,3],[92,1],[92,3],[107,1],[107,2],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[82,1],[82,1],[82,1],[82,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[79,1],[79,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[47,1],[47,2],[101,1],[101,2],[33,1],[33,1],[33,1],[33,1],[33,1]],performAction:i(function(t,e,s,i,n,r,a){var u=r.length-1;switch(n){case 2:case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 3:(!Array.isArray(r[u])||r[u].length>0)&&r[u-1].push(r[u]),this.$=r[u-1];break;case 4:case 183:case 44:case 54:case 76:case 181:this.$=r[u];break;case 11:i.setDirection("TB"),this.$="TB";break;case 12:i.setDirection(r[u-1]),this.$=r[u-1];break;case 27:this.$=r[u-1].nodes;break;case 33:this.$=i.addSubGraph(r[u-6],r[u-1],r[u-4]);break;case 34:this.$=i.addSubGraph(r[u-3],r[u-1],r[u-3]);break;case 35:this.$=i.addSubGraph(void 0,r[u-1],void 0);break;case 37:this.$=r[u].trim(),i.setAccTitle(this.$);break;case 38:case 39:this.$=r[u].trim(),i.setAccDescription(this.$);break;case 43:case 133:this.$=r[u-1]+r[u];break;case 45:i.addVertex(r[u-1][r[u-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,r[u]),i.addLink(r[u-3].stmt,r[u-1],r[u-2]),this.$={stmt:r[u-1],nodes:r[u-1].concat(r[u-3].nodes)};break;case 46:i.addLink(r[u-2].stmt,r[u],r[u-1]),this.$={stmt:r[u],nodes:r[u].concat(r[u-2].nodes)};break;case 47:i.addLink(r[u-3].stmt,r[u-1],r[u-2]),this.$={stmt:r[u-1],nodes:r[u-1].concat(r[u-3].nodes)};break;case 48:this.$={stmt:r[u-1],nodes:r[u-1]};break;case 49:i.addVertex(r[u-1][r[u-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,r[u]),this.$={stmt:r[u-1],nodes:r[u-1],shapeData:r[u]};break;case 50:this.$={stmt:r[u],nodes:r[u]};break;case 51:case 128:case 130:this.$=[r[u]];break;case 52:i.addVertex(r[u-5][r[u-5].length-1],void 0,void 0,void 0,void 0,void 0,void 0,r[u-4]),this.$=r[u-5].concat(r[u]);break;case 53:this.$=r[u-4].concat(r[u]);break;case 55:this.$=r[u-2],i.setClass(r[u-2],r[u]);break;case 56:this.$=r[u-3],i.addVertex(r[u-3],r[u-1],"square");break;case 57:this.$=r[u-3],i.addVertex(r[u-3],r[u-1],"doublecircle");break;case 58:this.$=r[u-5],i.addVertex(r[u-5],r[u-2],"circle");break;case 59:this.$=r[u-3],i.addVertex(r[u-3],r[u-1],"ellipse");break;case 60:this.$=r[u-3],i.addVertex(r[u-3],r[u-1],"stadium");break;case 61:this.$=r[u-3],i.addVertex(r[u-3],r[u-1],"subroutine");break;case 62:this.$=r[u-7],i.addVertex(r[u-7],r[u-1],"rect",void 0,void 0,void 0,Object.fromEntries([[r[u-5],r[u-3]]]));break;case 63:this.$=r[u-3],i.addVertex(r[u-3],r[u-1],"cylinder");break;case 64:this.$=r[u-3],i.addVertex(r[u-3],r[u-1],"round");break;case 65:this.$=r[u-3],i.addVertex(r[u-3],r[u-1],"diamond");break;case 66:this.$=r[u-5],i.addVertex(r[u-5],r[u-2],"hexagon");break;case 67:this.$=r[u-3],i.addVertex(r[u-3],r[u-1],"odd");break;case 68:this.$=r[u-3],i.addVertex(r[u-3],r[u-1],"trapezoid");break;case 69:this.$=r[u-3],i.addVertex(r[u-3],r[u-1],"inv_trapezoid");break;case 70:this.$=r[u-3],i.addVertex(r[u-3],r[u-1],"lean_right");break;case 71:this.$=r[u-3],i.addVertex(r[u-3],r[u-1],"lean_left");break;case 72:this.$=r[u],i.addVertex(r[u]);break;case 73:r[u-1].text=r[u],this.$=r[u-1];break;case 74:case 75:r[u-2].text=r[u-1],this.$=r[u-2];break;case 77:var o=i.destructLink(r[u],r[u-2]);this.$={type:o.type,stroke:o.stroke,length:o.length,text:r[u-1]};break;case 78:o=i.destructLink(r[u],r[u-2]);this.$={type:o.type,stroke:o.stroke,length:o.length,text:r[u-1],id:r[u-3]};break;case 79:case 86:case 101:case 103:this.$={text:r[u],type:"text"};break;case 80:case 87:case 102:this.$={text:r[u-1].text+""+r[u],type:r[u-1].type};break;case 81:case 88:this.$={text:r[u],type:"string"};break;case 82:case 89:case 104:this.$={text:r[u],type:"markdown"};break;case 83:o=i.destructLink(r[u]);this.$={type:o.type,stroke:o.stroke,length:o.length};break;case 84:o=i.destructLink(r[u]);this.$={type:o.type,stroke:o.stroke,length:o.length,id:r[u-1]};break;case 85:this.$=r[u-1];break;case 105:this.$=r[u-4],i.addClass(r[u-2],r[u]);break;case 106:this.$=r[u-4],i.setClass(r[u-2],r[u]);break;case 107:case 115:this.$=r[u-1],i.setClickEvent(r[u-1],r[u]);break;case 108:case 116:this.$=r[u-3],i.setClickEvent(r[u-3],r[u-2]),i.setTooltip(r[u-3],r[u]);break;case 109:this.$=r[u-2],i.setClickEvent(r[u-2],r[u-1],r[u]);break;case 110:this.$=r[u-4],i.setClickEvent(r[u-4],r[u-3],r[u-2]),i.setTooltip(r[u-4],r[u]);break;case 111:this.$=r[u-2],i.setLink(r[u-2],r[u]);break;case 112:this.$=r[u-4],i.setLink(r[u-4],r[u-2]),i.setTooltip(r[u-4],r[u]);break;case 113:this.$=r[u-4],i.setLink(r[u-4],r[u-2],r[u]);break;case 114:this.$=r[u-6],i.setLink(r[u-6],r[u-4],r[u]),i.setTooltip(r[u-6],r[u-2]);break;case 117:this.$=r[u-1],i.setLink(r[u-1],r[u]);break;case 118:this.$=r[u-3],i.setLink(r[u-3],r[u-2]),i.setTooltip(r[u-3],r[u]);break;case 119:this.$=r[u-3],i.setLink(r[u-3],r[u-2],r[u]);break;case 120:this.$=r[u-5],i.setLink(r[u-5],r[u-4],r[u]),i.setTooltip(r[u-5],r[u-2]);break;case 121:this.$=r[u-4],i.addVertex(r[u-2],void 0,void 0,r[u]);break;case 122:this.$=r[u-4],i.updateLink([r[u-2]],r[u]);break;case 123:this.$=r[u-4],i.updateLink(r[u-2],r[u]);break;case 124:this.$=r[u-8],i.updateLinkInterpolate([r[u-6]],r[u-2]),i.updateLink([r[u-6]],r[u]);break;case 125:this.$=r[u-8],i.updateLinkInterpolate(r[u-6],r[u-2]),i.updateLink(r[u-6],r[u]);break;case 126:this.$=r[u-6],i.updateLinkInterpolate([r[u-4]],r[u]);break;case 127:this.$=r[u-6],i.updateLinkInterpolate(r[u-4],r[u]);break;case 129:case 131:r[u-2].push(r[u]),this.$=r[u-2];break;case 182:case 184:this.$=r[u-1]+""+r[u];break;case 185:this.$={stmt:"dir",value:"TB"};break;case 186:this.$={stmt:"dir",value:"BT"};break;case 187:this.$={stmt:"dir",value:"RL"};break;case 188:this.$={stmt:"dir",value:"LR"};break;case 189:this.$={stmt:"dir",value:"TD"}}},"anonymous"),table:[{3:1,4:2,9:e,10:s,12:n},{1:[3]},t(r,a,{5:6}),{4:7,9:e,10:s,12:n},{4:8,9:e,10:s,12:n},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:u,9:o,10:l,11:c,20:17,22:18,23:19,24:20,25:21,26:22,27:h,33:24,34:d,36:p,38:g,42:28,43:39,44:A,45:40,47:41,60:y,84:k,85:f,86:b,87:m,88:E,89:C,102:D,105:T,106:x,109:S,111:F,113:42,114:_,115:B,116:v,121:$,122:w,123:L,124:I,125:R},t(r,[2,9]),t(r,[2,10]),t(r,[2,11]),{8:[1,55],9:[1,56],10:N,15:54,18:57},t(G,[2,3]),t(G,[2,4]),t(G,[2,5]),t(G,[2,6]),t(G,[2,7]),t(G,[2,8]),{8:P,9:O,11:M,21:59,41:60,72:64,75:[1,65],77:[1,67],78:[1,66]},{8:P,9:O,11:M,21:68},{8:P,9:O,11:M,21:69},{8:P,9:O,11:M,21:70},{8:P,9:O,11:M,21:71},{8:P,9:O,11:M,21:72},{8:P,9:O,10:[1,73],11:M,21:74},t(G,[2,36]),{35:[1,75]},{37:[1,76]},t(G,[2,39]),t(U,[2,50],{18:77,39:78,10:N,40:V}),{10:[1,80]},{10:[1,81]},{10:[1,82]},{10:[1,83]},{14:W,44:j,60:z,80:[1,87],89:K,95:[1,84],97:[1,85],101:86,105:Y,106:H,109:X,111:q,114:Q,115:J,116:Z,120:88},t(G,[2,185]),t(G,[2,186]),t(G,[2,187]),t(G,[2,188]),t(G,[2,189]),t(tt,[2,51]),t(tt,[2,54],{46:[1,100]}),t(et,[2,72],{113:113,29:[1,101],44:A,48:[1,102],50:[1,103],52:[1,104],54:[1,105],56:[1,106],58:[1,107],60:y,63:[1,108],65:[1,109],67:[1,110],68:[1,111],70:[1,112],89:C,102:D,105:T,106:x,109:S,111:F,114:_,115:B,116:v}),t(st,[2,181]),t(st,[2,142]),t(st,[2,143]),t(st,[2,144]),t(st,[2,145]),t(st,[2,146]),t(st,[2,147]),t(st,[2,148]),t(st,[2,149]),t(st,[2,150]),t(st,[2,151]),t(st,[2,152]),t(r,[2,12]),t(r,[2,18]),t(r,[2,19]),{9:[1,114]},t(it,[2,26],{18:115,10:N}),t(G,[2,27]),{42:116,43:39,44:A,45:40,47:41,60:y,89:C,102:D,105:T,106:x,109:S,111:F,113:42,114:_,115:B,116:v},t(G,[2,40]),t(G,[2,41]),t(G,[2,42]),t(nt,[2,76],{73:117,62:[1,119],74:[1,118]}),{76:120,79:121,80:rt,81:at,116:ut,119:ot},{75:[1,126],77:[1,127]},t(lt,[2,83]),t(G,[2,28]),t(G,[2,29]),t(G,[2,30]),t(G,[2,31]),t(G,[2,32]),{10:ct,12:ht,14:dt,27:pt,28:128,32:gt,44:At,60:yt,75:kt,80:[1,130],81:[1,131],83:141,84:ft,85:bt,86:mt,87:Et,88:Ct,89:Dt,90:Tt,91:129,105:xt,109:St,111:Ft,114:_t,115:Bt,116:vt},t($t,a,{5:154}),t(G,[2,37]),t(G,[2,38]),t(U,[2,48],{44:wt}),t(U,[2,49],{18:156,10:N,40:Lt}),t(tt,[2,44]),{44:A,47:158,60:y,89:C,102:D,105:T,106:x,109:S,111:F,113:42,114:_,115:B,116:v},{102:[1,159],103:160,105:[1,161]},{44:A,47:162,60:y,89:C,102:D,105:T,106:x,109:S,111:F,113:42,114:_,115:B,116:v},{44:A,47:163,60:y,89:C,102:D,105:T,106:x,109:S,111:F,113:42,114:_,115:B,116:v},t(It,[2,107],{10:[1,164],96:[1,165]}),{80:[1,166]},t(It,[2,115],{120:168,10:[1,167],14:W,44:j,60:z,89:K,105:Y,106:H,109:X,111:q,114:Q,115:J,116:Z}),t(It,[2,117],{10:[1,169]}),t(Rt,[2,183]),t(Rt,[2,170]),t(Rt,[2,171]),t(Rt,[2,172]),t(Rt,[2,173]),t(Rt,[2,174]),t(Rt,[2,175]),t(Rt,[2,176]),t(Rt,[2,177]),t(Rt,[2,178]),t(Rt,[2,179]),t(Rt,[2,180]),{44:A,47:170,60:y,89:C,102:D,105:T,106:x,109:S,111:F,113:42,114:_,115:B,116:v},{30:171,67:Nt,80:Gt,81:Pt,82:172,116:Ot,117:Mt,118:Ut},{30:179,67:Nt,80:Gt,81:Pt,82:172,116:Ot,117:Mt,118:Ut},{30:181,50:[1,180],67:Nt,80:Gt,81:Pt,82:172,116:Ot,117:Mt,118:Ut},{30:182,67:Nt,80:Gt,81:Pt,82:172,116:Ot,117:Mt,118:Ut},{30:183,67:Nt,80:Gt,81:Pt,82:172,116:Ot,117:Mt,118:Ut},{30:184,67:Nt,80:Gt,81:Pt,82:172,116:Ot,117:Mt,118:Ut},{109:[1,185]},{30:186,67:Nt,80:Gt,81:Pt,82:172,116:Ot,117:Mt,118:Ut},{30:187,65:[1,188],67:Nt,80:Gt,81:Pt,82:172,116:Ot,117:Mt,118:Ut},{30:189,67:Nt,80:Gt,81:Pt,82:172,116:Ot,117:Mt,118:Ut},{30:190,67:Nt,80:Gt,81:Pt,82:172,116:Ot,117:Mt,118:Ut},{30:191,67:Nt,80:Gt,81:Pt,82:172,116:Ot,117:Mt,118:Ut},t(st,[2,182]),t(r,[2,20]),t(it,[2,25]),t(U,[2,46],{39:192,18:193,10:N,40:V}),t(nt,[2,73],{10:[1,194]}),{10:[1,195]},{30:196,67:Nt,80:Gt,81:Pt,82:172,116:Ot,117:Mt,118:Ut},{77:[1,197],79:198,116:ut,119:ot},t(Vt,[2,79]),t(Vt,[2,81]),t(Vt,[2,82]),t(Vt,[2,168]),t(Vt,[2,169]),{76:199,79:121,80:rt,81:at,116:ut,119:ot},t(lt,[2,84]),{8:P,9:O,10:ct,11:M,12:ht,14:dt,21:201,27:pt,29:[1,200],32:gt,44:At,60:yt,75:kt,83:141,84:ft,85:bt,86:mt,87:Et,88:Ct,89:Dt,90:Tt,91:202,105:xt,109:St,111:Ft,114:_t,115:Bt,116:vt},t(Wt,[2,101]),t(Wt,[2,103]),t(Wt,[2,104]),t(Wt,[2,157]),t(Wt,[2,158]),t(Wt,[2,159]),t(Wt,[2,160]),t(Wt,[2,161]),t(Wt,[2,162]),t(Wt,[2,163]),t(Wt,[2,164]),t(Wt,[2,165]),t(Wt,[2,166]),t(Wt,[2,167]),t(Wt,[2,90]),t(Wt,[2,91]),t(Wt,[2,92]),t(Wt,[2,93]),t(Wt,[2,94]),t(Wt,[2,95]),t(Wt,[2,96]),t(Wt,[2,97]),t(Wt,[2,98]),t(Wt,[2,99]),t(Wt,[2,100]),{6:11,7:12,8:u,9:o,10:l,11:c,20:17,22:18,23:19,24:20,25:21,26:22,27:h,32:[1,203],33:24,34:d,36:p,38:g,42:28,43:39,44:A,45:40,47:41,60:y,84:k,85:f,86:b,87:m,88:E,89:C,102:D,105:T,106:x,109:S,111:F,113:42,114:_,115:B,116:v,121:$,122:w,123:L,124:I,125:R},{10:N,18:204},{44:[1,205]},t(tt,[2,43]),{10:[1,206],44:A,60:y,89:C,102:D,105:T,106:x,109:S,111:F,113:113,114:_,115:B,116:v},{10:[1,207]},{10:[1,208],106:[1,209]},t(jt,[2,128]),{10:[1,210],44:A,60:y,89:C,102:D,105:T,106:x,109:S,111:F,113:113,114:_,115:B,116:v},{10:[1,211],44:A,60:y,89:C,102:D,105:T,106:x,109:S,111:F,113:113,114:_,115:B,116:v},{80:[1,212]},t(It,[2,109],{10:[1,213]}),t(It,[2,111],{10:[1,214]}),{80:[1,215]},t(Rt,[2,184]),{80:[1,216],98:[1,217]},t(tt,[2,55],{113:113,44:A,60:y,89:C,102:D,105:T,106:x,109:S,111:F,114:_,115:B,116:v}),{31:[1,218],67:Nt,82:219,116:Ot,117:Mt,118:Ut},t(zt,[2,86]),t(zt,[2,88]),t(zt,[2,89]),t(zt,[2,153]),t(zt,[2,154]),t(zt,[2,155]),t(zt,[2,156]),{49:[1,220],67:Nt,82:219,116:Ot,117:Mt,118:Ut},{30:221,67:Nt,80:Gt,81:Pt,82:172,116:Ot,117:Mt,118:Ut},{51:[1,222],67:Nt,82:219,116:Ot,117:Mt,118:Ut},{53:[1,223],67:Nt,82:219,116:Ot,117:Mt,118:Ut},{55:[1,224],67:Nt,82:219,116:Ot,117:Mt,118:Ut},{57:[1,225],67:Nt,82:219,116:Ot,117:Mt,118:Ut},{60:[1,226]},{64:[1,227],67:Nt,82:219,116:Ot,117:Mt,118:Ut},{66:[1,228],67:Nt,82:219,116:Ot,117:Mt,118:Ut},{30:229,67:Nt,80:Gt,81:Pt,82:172,116:Ot,117:Mt,118:Ut},{31:[1,230],67:Nt,82:219,116:Ot,117:Mt,118:Ut},{67:Nt,69:[1,231],71:[1,232],82:219,116:Ot,117:Mt,118:Ut},{67:Nt,69:[1,234],71:[1,233],82:219,116:Ot,117:Mt,118:Ut},t(U,[2,45],{18:156,10:N,40:Lt}),t(U,[2,47],{44:wt}),t(nt,[2,75]),t(nt,[2,74]),{62:[1,235],67:Nt,82:219,116:Ot,117:Mt,118:Ut},t(nt,[2,77]),t(Vt,[2,80]),{77:[1,236],79:198,116:ut,119:ot},{30:237,67:Nt,80:Gt,81:Pt,82:172,116:Ot,117:Mt,118:Ut},t($t,a,{5:238}),t(Wt,[2,102]),t(G,[2,35]),{43:239,44:A,45:40,47:41,60:y,89:C,102:D,105:T,106:x,109:S,111:F,113:42,114:_,115:B,116:v},{10:N,18:240},{10:Kt,60:Yt,84:Ht,92:241,105:Xt,107:242,108:243,109:qt,110:Qt,111:Jt,112:Zt},{10:Kt,60:Yt,84:Ht,92:252,104:[1,253],105:Xt,107:242,108:243,109:qt,110:Qt,111:Jt,112:Zt},{10:Kt,60:Yt,84:Ht,92:254,104:[1,255],105:Xt,107:242,108:243,109:qt,110:Qt,111:Jt,112:Zt},{105:[1,256]},{10:Kt,60:Yt,84:Ht,92:257,105:Xt,107:242,108:243,109:qt,110:Qt,111:Jt,112:Zt},{44:A,47:258,60:y,89:C,102:D,105:T,106:x,109:S,111:F,113:42,114:_,115:B,116:v},t(It,[2,108]),{80:[1,259]},{80:[1,260],98:[1,261]},t(It,[2,116]),t(It,[2,118],{10:[1,262]}),t(It,[2,119]),t(et,[2,56]),t(zt,[2,87]),t(et,[2,57]),{51:[1,263],67:Nt,82:219,116:Ot,117:Mt,118:Ut},t(et,[2,64]),t(et,[2,59]),t(et,[2,60]),t(et,[2,61]),{109:[1,264]},t(et,[2,63]),t(et,[2,65]),{66:[1,265],67:Nt,82:219,116:Ot,117:Mt,118:Ut},t(et,[2,67]),t(et,[2,68]),t(et,[2,70]),t(et,[2,69]),t(et,[2,71]),t([10,44,60,89,102,105,106,109,111,114,115,116],[2,85]),t(nt,[2,78]),{31:[1,266],67:Nt,82:219,116:Ot,117:Mt,118:Ut},{6:11,7:12,8:u,9:o,10:l,11:c,20:17,22:18,23:19,24:20,25:21,26:22,27:h,32:[1,267],33:24,34:d,36:p,38:g,42:28,43:39,44:A,45:40,47:41,60:y,84:k,85:f,86:b,87:m,88:E,89:C,102:D,105:T,106:x,109:S,111:F,113:42,114:_,115:B,116:v,121:$,122:w,123:L,124:I,125:R},t(tt,[2,53]),{43:268,44:A,45:40,47:41,60:y,89:C,102:D,105:T,106:x,109:S,111:F,113:42,114:_,115:B,116:v},t(It,[2,121],{106:te}),t(ee,[2,130],{108:270,10:Kt,60:Yt,84:Ht,105:Xt,109:qt,110:Qt,111:Jt,112:Zt}),t(se,[2,132]),t(se,[2,134]),t(se,[2,135]),t(se,[2,136]),t(se,[2,137]),t(se,[2,138]),t(se,[2,139]),t(se,[2,140]),t(se,[2,141]),t(It,[2,122],{106:te}),{10:[1,271]},t(It,[2,123],{106:te}),{10:[1,272]},t(jt,[2,129]),t(It,[2,105],{106:te}),t(It,[2,106],{113:113,44:A,60:y,89:C,102:D,105:T,106:x,109:S,111:F,114:_,115:B,116:v}),t(It,[2,110]),t(It,[2,112],{10:[1,273]}),t(It,[2,113]),{98:[1,274]},{51:[1,275]},{62:[1,276]},{66:[1,277]},{8:P,9:O,11:M,21:278},t(G,[2,34]),t(tt,[2,52]),{10:Kt,60:Yt,84:Ht,105:Xt,107:279,108:243,109:qt,110:Qt,111:Jt,112:Zt},t(se,[2,133]),{14:W,44:j,60:z,89:K,101:280,105:Y,106:H,109:X,111:q,114:Q,115:J,116:Z,120:88},{14:W,44:j,60:z,89:K,101:281,105:Y,106:H,109:X,111:q,114:Q,115:J,116:Z,120:88},{98:[1,282]},t(It,[2,120]),t(et,[2,58]),{30:283,67:Nt,80:Gt,81:Pt,82:172,116:Ot,117:Mt,118:Ut},t(et,[2,66]),t($t,a,{5:284}),t(ee,[2,131],{108:270,10:Kt,60:Yt,84:Ht,105:Xt,109:qt,110:Qt,111:Jt,112:Zt}),t(It,[2,126],{120:168,10:[1,285],14:W,44:j,60:z,89:K,105:Y,106:H,109:X,111:q,114:Q,115:J,116:Z}),t(It,[2,127],{120:168,10:[1,286],14:W,44:j,60:z,89:K,105:Y,106:H,109:X,111:q,114:Q,115:J,116:Z}),t(It,[2,114]),{31:[1,287],67:Nt,82:219,116:Ot,117:Mt,118:Ut},{6:11,7:12,8:u,9:o,10:l,11:c,20:17,22:18,23:19,24:20,25:21,26:22,27:h,32:[1,288],33:24,34:d,36:p,38:g,42:28,43:39,44:A,45:40,47:41,60:y,84:k,85:f,86:b,87:m,88:E,89:C,102:D,105:T,106:x,109:S,111:F,113:42,114:_,115:B,116:v,121:$,122:w,123:L,124:I,125:R},{10:Kt,60:Yt,84:Ht,92:289,105:Xt,107:242,108:243,109:qt,110:Qt,111:Jt,112:Zt},{10:Kt,60:Yt,84:Ht,92:290,105:Xt,107:242,108:243,109:qt,110:Qt,111:Jt,112:Zt},t(et,[2,62]),t(G,[2,33]),t(It,[2,124],{106:te}),t(It,[2,125],{106:te})],defaultActions:{},parseError:i(function(t,e){if(!e.recoverable){var s=new Error(t);throw s.hash=e,s}this.trace(t)},"parseError"),parse:i(function(t){var e=this,s=[0],n=[],r=[null],a=[],u=this.table,o="",l=0,c=0,h=a.slice.call(arguments,1),d=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);d.setInput(t,p.yy),p.yy.lexer=d,p.yy.parser=this,void 0===d.yylloc&&(d.yylloc={});var A=d.yylloc;a.push(A);var y=d.options&&d.options.ranges;function k(){var t;return"number"!=typeof(t=n.pop()||d.lex()||1)&&(t instanceof Array&&(t=(n=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,i(function(t){s.length=s.length-2*t,r.length=r.length-t,a.length=a.length-t},"popStack"),i(k,"lex");for(var f,b,m,E,C,D,T,x,S={};;){if(b=s[s.length-1],this.defaultActions[b]?m=this.defaultActions[b]:(null==f&&(f=k()),m=u[b]&&u[b][f]),void 0===m||!m.length||!m[0]){var F="";for(C in x=[],u[b])this.terminals_[C]&&C>2&&x.push("'"+this.terminals_[C]+"'");F=d.showPosition?"Parse error on line "+(l+1)+":\n"+d.showPosition()+"\nExpecting "+x.join(", ")+", got '"+(this.terminals_[f]||f)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==f?"end of input":"'"+(this.terminals_[f]||f)+"'"),this.parseError(F,{text:d.match,token:this.terminals_[f]||f,line:d.yylineno,loc:A,expected:x})}if(m[0]instanceof Array&&m.length>1)throw new Error("Parse Error: multiple actions possible at state: "+b+", token: "+f);switch(m[0]){case 1:s.push(f),r.push(d.yytext),a.push(d.yylloc),s.push(m[1]),f=null,c=d.yyleng,o=d.yytext,l=d.yylineno,A=d.yylloc;break;case 2:if(D=this.productions_[m[1]][1],S.$=r[r.length-D],S._$={first_line:a[a.length-(D||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(D||1)].first_column,last_column:a[a.length-1].last_column},y&&(S._$.range=[a[a.length-(D||1)].range[0],a[a.length-1].range[1]]),void 0!==(E=this.performAction.apply(S,[o,c,l,p.yy,m[1],r,a].concat(h))))return E;D&&(s=s.slice(0,-1*D*2),r=r.slice(0,-1*D),a=a.slice(0,-1*D)),s.push(this.productions_[m[1]][0]),r.push(S.$),a.push(S._$),T=u[s[s.length-2]][s[s.length-1]],s.push(T);break;case 3:return!0}}return!0},"parse")},ne=function(){return{EOF:1,parseError:i(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:i(function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:i(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:i(function(t){var e=t.length,s=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;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),s.length-1&&(this.yylineno-=s.length-1);var n=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:s?(s.length===i.length?this.yylloc.first_column:0)+i[i.length-s.length].length-s[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:i(function(){return this._more=!0,this},"more"),reject:i(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:i(function(t){this.unput(this.match.slice(t))},"less"),pastInput:i(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:i(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:i(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:i(function(t,e){var s,i,n;if(this.options.backtrack_lexer&&(n={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(n.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],s=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s)return s;if(this._backtrack){for(var r in n)this[r]=n[r];return!1}return!1},"test_match"),next:i(function(){if(this.done)return this.EOF;var t,e,s,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var n=this._currentRules(),r=0;r<n.length;r++)if((s=this._input.match(this.rules[n[r]]))&&(!e||s[0].length>e[0].length)){if(e=s,i=r,this.options.backtrack_lexer){if(!1!==(t=this.test_match(s,n[r])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,n[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:i(function(){var t=this.next();return t||this.lex()},"lex"),begin:i(function(t){this.conditionStack.push(t)},"begin"),popState:i(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:i(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:i(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:i(function(t){this.begin(t)},"pushState"),stateStackSize:i(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:i(function(t,e,s,i){switch(s){case 0:return this.begin("acc_title"),34;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),36;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:case 12:case 14:case 17:case 20:case 23:case 33:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return this.pushState("shapeData"),e.yytext="",40;case 8:return this.pushState("shapeDataStr"),40;case 9:return this.popState(),40;case 10:const s=/\n\s*/g;return e.yytext=e.yytext.replace(s,"<br/>"),40;case 11:return 40;case 13:this.begin("callbackname");break;case 15:this.popState(),this.begin("callbackargs");break;case 16:return 95;case 18:return 96;case 19:return"MD_STR";case 21:this.begin("md_string");break;case 22:return"STR";case 24:this.pushState("string");break;case 25:return 84;case 26:return 102;case 27:return 85;case 28:return 104;case 29:return 86;case 30:return 87;case 31:return 97;case 32:this.begin("click");break;case 34:return 88;case 35:case 36:case 37:case 38:return t.lex.firstGraph()&&this.begin("dir"),12;case 39:return 27;case 40:return 32;case 41:case 42:case 43:case 44:return 98;case 45:return this.popState(),13;case 46:case 47:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:return this.popState(),14;case 56:return 121;case 57:return 122;case 58:return 123;case 59:return 124;case 60:return 125;case 61:return 78;case 62:return 105;case 63:case 104:return 111;case 64:return 46;case 65:return 60;case 66:case 105:return 44;case 67:return 8;case 68:return 106;case 69:case 103:return 115;case 70:case 73:case 76:return this.popState(),77;case 71:return this.pushState("edgeText"),75;case 72:case 75:case 78:return 119;case 74:return this.pushState("thickEdgeText"),75;case 77:return this.pushState("dottedEdgeText"),75;case 79:return 77;case 80:return this.popState(),53;case 81:case 117:return"TEXT";case 82:return this.pushState("ellipseText"),52;case 83:return this.popState(),55;case 84:return this.pushState("text"),54;case 85:return this.popState(),57;case 86:return this.pushState("text"),56;case 87:return 58;case 88:return this.pushState("text"),67;case 89:return this.popState(),64;case 90:return this.pushState("text"),63;case 91:return this.popState(),49;case 92:return this.pushState("text"),48;case 93:return this.popState(),69;case 94:return this.popState(),71;case 95:return 117;case 96:return this.pushState("trapText"),68;case 97:return this.pushState("trapText"),70;case 98:return 118;case 99:return 67;case 100:return 90;case 101:return"SEP";case 102:return 89;case 106:return 109;case 107:return 114;case 108:return 116;case 109:return this.popState(),62;case 110:return this.pushState("text"),62;case 111:return this.popState(),51;case 112:return this.pushState("text"),50;case 113:return this.popState(),31;case 114:return this.pushState("text"),29;case 115:return this.popState(),66;case 116:return this.pushState("text"),65;case 118:return"QUOTE";case 119:return 9;case 120:return 10;case 121:return 11}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:@\{)/,/^(?:["])/,/^(?:["])/,/^(?:[^\"]+)/,/^(?:[^}^"]+)/,/^(?:\})/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["][`])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:["])/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s])/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:flowchart-elk\b)/,/^(?:swimlane-beta\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:.*direction\s+TD[^\n]*)/,/^(?:[^\s\"]+@(?=[^\{\"]))/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:[^-]|-(?!-)+)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:[^=]|=(?!))/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:[^\.]|\.(?!))/,/^(?:\s*~~[\~]+\s*)/,/^(?:[-/\)][\)])/,/^(?:[^\(\)\[\]\{\}]|!\)+)/,/^(?:\(-)/,/^(?:\]\))/,/^(?:\(\[)/,/^(?:\]\])/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:>)/,/^(?:\)\])/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\(\(\()/,/^(?:[\\(?=\])][\]])/,/^(?:\/(?=\])\])/,/^(?:\/(?!\])|\\(?!\])|[^\\\[\]\(\)\{\}\/]+)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:\*)/,/^(?:#)/,/^(?:&)/,/^(?:([A-Za-z0-9!"\#$%&'*+\.`?\\_\/]|-(?=[^\>\-\.])|(?!))+)/,/^(?:-)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\|)/,/^(?:\))/,/^(?:\()/,/^(?:\])/,/^(?:\[)/,/^(?:(\}))/,/^(?:\{)/,/^(?:[^\[\]\(\)\{\}\|\"]+)/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:[^\S\n\r]+)/,/^(?:$)/],conditions:{shapeDataEndBracket:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},shapeDataStr:{rules:[9,10,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},shapeData:{rules:[8,11,12,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},callbackargs:{rules:[17,18,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},callbackname:{rules:[14,15,16,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},href:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},click:{rules:[21,24,33,34,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},dottedEdgeText:{rules:[21,24,76,78,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},thickEdgeText:{rules:[21,24,73,75,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},edgeText:{rules:[21,24,70,72,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},trapText:{rules:[21,24,79,82,84,86,90,92,93,94,95,96,97,110,112,114,116],inclusive:!1},ellipseText:{rules:[21,24,79,80,81,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},text:{rules:[21,24,79,82,83,84,85,86,89,90,91,92,96,97,109,110,111,112,113,114,115,116,117],inclusive:!1},vertex:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},dir:{rules:[21,24,45,46,47,48,49,50,51,52,53,54,55,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_descr_multiline:{rules:[5,6,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_descr:{rules:[3,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_title:{rules:[1,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},md_string:{rules:[19,20,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},string:{rules:[21,22,23,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},INITIAL:{rules:[0,2,4,7,13,21,24,25,26,27,28,29,30,31,32,35,36,37,38,39,40,41,42,43,44,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,73,74,76,77,79,82,84,86,87,88,90,92,96,97,98,99,100,101,102,103,104,105,106,107,108,110,112,114,116,118,119,120,121],inclusive:!0}}}}();function re(){this.yy={}}return ie.lexer=ne,i(re,"Parser"),re.prototype=ie,ie.Parser=re,new re}();I.parser=I;var R=I,N=Object.assign({},R);N.parse=t=>{const e=t.replace(/}\s*\n/g,"}\n");return R.parse(e)};var G=N,P=i(t=>{const{theme:e,bkgColorArray:s,borderColorArray:n}=t;if(!x(e,n))return"";const r=S(t.look),a=F(s);let u="";for(let e=0;e<_(t.THEME_COLOR_LIMIT,n);e++){const t=n[e%n.length],o=a?`fill: ${s[e%s.length]};`:"",l=`[data-look="${r}"][data-color-id="color-${e}"]`,c=i(t=>`${l}.node ${t}, ${l}.rough-node ${t}`,"collapsedRule"),h=i(t=>`${l}.swimlane.cluster .swimlane-title${t}, ${l}.swimlane.cluster .swimlane-body${t}`,"laneRule");u+=`\n\n ${l}.cluster:not(.swimlane) rect {\n stroke: ${t};\n ${o}\n }\n\n ${l}.cluster:not(.swimlane) path {\n stroke: ${t};\n ${o}\n }\n\n /* Lane, classic and neo. */\n ${l}.swimlane.cluster rect.swimlane-title,\n ${l}.swimlane.cluster rect.swimlane-body {\n stroke: ${t};\n ${o}\n }\n\n /* Lane, handDrawn: roughjs emits the hachure fill first, then the outline. */\n ${h(" path:nth-of-type(2)")} {\n stroke: ${t};\n }\n${a?`\n /* A roughjs fill is drawn as lines, so the lane fill is a stroke here. */\n ${h(" path:first-of-type")} {\n stroke: ${s[e%s.length]};\n }\n`:""}\n ${c(".collapsed-group")},\n ${c(".collapsed-group path")} {\n stroke: ${t};\n ${o}\n }\n\n /* The ellipsis dots and the separator take clusterBorder further down, so without\n these the container is palette-coloured while its own markers are not. */\n ${c(".collapsed-indicator")} {\n fill: ${t};\n }\n\n ${c(".collapsed-separator")} {\n stroke: ${t};\n }\n `}return u},"genColor"),O=i((t,e)=>{const s=$,i=s(t,"r"),n=s(t,"g"),r=s(t,"b");return B(i,n,r,e)},"fade"),M=i(e=>`${P(e)}\n .label {\n font-family: ${e.fontFamily};\n color: ${e.nodeTextColor||e.textColor};\n }\n .cluster-label text {\n fill: ${e.titleColor};\n }\n .cluster-label span {\n color: ${e.titleColor};\n }\n .cluster-label span p {\n background-color: transparent;\n }\n\n .label text,span {\n fill: ${e.nodeTextColor||e.textColor};\n color: ${e.nodeTextColor||e.textColor};\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${e.mainBkg};\n stroke: ${e.nodeBorder};\n stroke-width: ${e.strokeWidth??1}px;\n }\n .rough-node .label text , .node .label text, .image-shape .label, .icon-shape .label {\n text-anchor: middle;\n }\n\n .node .katex path {\n fill: #000;\n stroke: #000;\n stroke-width: 1px;\n }\n\n .rough-node .label,.node .label, .image-shape .label, .icon-shape .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n\n .root .anchor path {\n fill: ${e.lineColor} !important;\n stroke-width: 0;\n stroke: ${e.lineColor};\n }\n\n .arrowheadPath {\n fill: ${e.arrowheadColor};\n }\n\n .edgePaths .path {\n stroke: ${e.lineColor};\n stroke-width: ${e.strokeWidth??2}px;\n }\n\n .flowchart-link {\n stroke: ${e.lineColor};\n fill: none;\n }\n\n .edgeLabel {\n background-color: ${e.edgeLabelBackground};\n p {\n background-color: ${e.edgeLabelBackground};\n }\n rect {\n opacity: 0.5;\n background-color: ${e.edgeLabelBackground};\n fill: ${e.edgeLabelBackground};\n }\n text-align: center;\n }\n\n /* For html labels only */\n .labelBkg {\n background-color: ${O(e.edgeLabelBackground,.5)};\n // background-color:\n }\n\n .cluster rect {\n fill: ${e.clusterBkg};\n stroke: ${e.clusterBorder};\n stroke-width: 1px;\n }\n\n .cluster text {\n fill: ${e.titleColor};\n }\n\n .cluster span {\n color: ${e.titleColor};\n }\n /* .cluster div {\n color: ${e.titleColor};\n } */\n\n /* Collapsed subgraph node (@{ view: collapsed }) */\n .node .collapsed-indicator {\n fill: ${e.clusterBorder};\n stroke: none;\n opacity: 0.6;\n }\n\n .node .collapsed-separator {\n stroke: ${e.clusterBorder};\n stroke-width: 0.75px;\n }\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: ${e.fontFamily};\n font-size: 12px;\n background: ${e.tertiaryColor};\n border: 1px solid ${e.border2};\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n\n .flowchartTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${e.textColor};\n }\n\n rect.text {\n fill: none;\n stroke-width: 0;\n }\n\n .icon-shape, .image-shape {\n background-color: ${e.edgeLabelBackground};\n p {\n background-color: ${e.edgeLabelBackground};\n padding: 2px;\n }\n .label rect {\n opacity: 0.5;\n background-color: ${e.edgeLabelBackground};\n fill: ${e.edgeLabelBackground};\n }\n text-align: center;\n }\n ${t()}\n`,"getStyles"),U=i(({styles:t=M}={})=>({parser:G,get db(){return new w},renderer:L,styles:t,init:i(t=>{t.flowchart||(t.flowchart={}),t.flowchart.arrowMarkerAbsolute=t.arrowMarkerAbsolute,n({flowchart:{arrowMarkerAbsolute:t.arrowMarkerAbsolute}})},"init")}),"createFlowDiagram"),V=U();export{U as c,V as d,M as s};
1
+ import{g as t}from"./chunk-5VM5RSS4-D3PGx3gp.js";import{g as e}from"./chunk-XXDRQBXY-DLLBlZjr.js";import{s}from"./chunk-VQ5W62QI-mHHsR0s0.js";import{_ as i,q as n,l as r,c as a,r as u,t as o,u as l,b as c,s as h,v as d,a as p,g,x as A,m as y,y as k,J as f,z as b,A as m,k as E,B as C,C as D,D as T,E as x,F as S,G as F,H as _,I as B}from"./mermaid.core-VF3HuzPL.js";import{c as v}from"./chunk-55XCU76K-BN8xVJCh.js";import{c as $}from"./channel-5x2nMoMO.js";var w=class{constructor(){this.vertexCounter=0,this.config=a(),this.diagramId="",this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=c,this.setAccDescription=h,this.setDiagramTitle=d,this.getAccTitle=p,this.getAccDescription=g,this.getDiagramTitle=A,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}static{i(this,"FlowDB")}sanitizeText(t){return y.sanitizeText(t,this.config)}sanitizeNodeLabelType(t){switch(t){case"markdown":case"string":case"text":return t;default:return"markdown"}}setDiagramId(t){this.diagramId=t}lookUpDomId(t){for(const e of this.vertices.values())if(e.id===t)return this.diagramId?`${this.diagramId}-${e.domId}`:e.domId;return this.diagramId?`${this.diagramId}-${t}`:t}addVertex(t,e,s,i,n,u,o={},l){if(!t||0===t.trim().length)return;let c;if(void 0!==l){let t;t=l.includes("\n")?l+"\n":"{\n"+l+"\n}",c=k(t,{schema:f})}const h=this.subGraphLookup.get(t);if(h&&c)return void(h.metadata={...h.metadata,...c});const d=this.edges.find(e=>e.id===t);if(d){const t=c;return void 0!==t?.animate&&(d.animate=t.animate),void 0!==t?.animation&&(d.animation=t.animation),void(void 0!==t?.curve&&(d.interpolate=t.curve))}let p,g=this.vertices.get(t);if(void 0===g&&(void 0===e&&void 0===s&&null!=i&&r.warn(`Style applied to unknown node "${t}". This may indicate a typo. The node will be created automatically.`),g={id:t,labelType:"text",domId:"flowchart-"+t+"-"+this.vertexCounter,styles:[],classes:[]},this.vertices.set(t,g)),this.vertexCounter++,void 0!==e?(this.config=a(),p=this.sanitizeText(e.text.trim()),g.labelType=e.type,p.startsWith('"')&&p.endsWith('"')&&(p=p.substring(1,p.length-1)),g.text=p):void 0===g.text&&(g.text=t),void 0!==s&&(g.type=s),null!=i&&i.forEach(t=>{g.styles.push(t)}),null!=n&&n.forEach(t=>{g.classes.push(t)}),void 0!==u&&(g.dir=u),void 0===g.props?g.props=o:void 0!==o&&Object.assign(g.props,o),void 0!==c){if(c.shape){if(c.shape!==c.shape.toLowerCase()||c.shape.includes("_"))throw new Error(`No such shape: ${c.shape}. Shape names should be lowercase.`);if(!b(c.shape))throw new Error(`No such shape: ${c.shape}.`);g.type=c?.shape}c?.label&&(g.text=c?.label,g.labelType=this.sanitizeNodeLabelType(c?.labelType)),c?.icon&&(g.icon=c?.icon,c.label?.trim()||g.text!==t||(g.text="")),c?.form&&(g.form=c?.form),c?.pos&&(g.pos=c?.pos),c?.img&&(g.img=c?.img,c.label?.trim()||g.text!==t||(g.text="")),c?.constraint&&(g.constraint=c.constraint),c.w&&(g.assetWidth=Number(c.w)),c.h&&(g.assetHeight=Number(c.h))}}addSingleLink(t,e,s,i){const n={start:t,end:e,type:void 0,text:"",labelType:"text",classes:[],isUserDefinedId:!1,interpolate:this.edges.defaultInterpolate};r.info("abc78 Got edge...",n);const a=s.text;if(void 0!==a&&(n.text=this.sanitizeText(a.text.trim()),n.text.startsWith('"')&&n.text.endsWith('"')&&(n.text=n.text.substring(1,n.text.length-1)),n.labelType=this.sanitizeNodeLabelType(a.type)),void 0!==s&&(n.type=s.type,n.stroke=s.stroke,n.length=s.length>10?10:s.length),i&&!this.edges.some(t=>t.id===i))n.id=i,n.isUserDefinedId=!0;else{const t=this.edges.filter(t=>t.start===n.start&&t.end===n.end);0===t.length?n.id=m(n.start,n.end,{counter:0,prefix:"L"}):n.id=m(n.start,n.end,{counter:t.length+1,prefix:"L"})}if(!(this.edges.length<(this.config.maxEdges??500)))throw new Error(`Edge limit exceeded. ${this.edges.length} edges found, but the limit is ${this.config.maxEdges}.\n\nInitialize mermaid with maxEdges set to a higher number to allow more edges.\nYou cannot set this config via configuration inside the diagram as it is a secure config.\nYou have to call mermaid.initialize.`);r.info("Pushing edge..."),this.edges.push(n)}isLinkData(t){return null!==t&&"object"==typeof t&&"id"in t&&"string"==typeof t.id}addLink(t,e,s){const i=this.isLinkData(s)?s.id.replace("@",""):void 0;r.info("addLink",t,e,i);for(const n of t)for(const r of e){const a=n===t[t.length-1],u=r===e[0];a&&u?this.addSingleLink(n,r,s,i):this.addSingleLink(n,r,s,void 0)}}updateLinkInterpolate(t,e){t.forEach(t=>{"default"===t?this.edges.defaultInterpolate=e:this.edges[t].interpolate=e})}updateLink(t,e){t.forEach(t=>{if("number"==typeof t&&t>=this.edges.length)throw new Error(`The index ${t} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);"default"===t?this.edges.defaultStyle=e:(this.edges[t].style=e,(this.edges[t]?.style?.length??0)>0&&!this.edges[t]?.style?.some(t=>t?.startsWith("fill"))&&this.edges[t]?.style?.push("fill:none"))})}addClass(t,e){const s=e.join().replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");t.split(",").forEach(t=>{let e=this.classes.get(t);void 0===e&&(e={id:t,styles:[],textStyles:[]},this.classes.set(t,e)),null!=s&&s.forEach(t=>{if(/color/.exec(t)){const s=t.replace("fill","bgFill");e.textStyles.push(s)}e.styles.push(t)})})}setDirection(t){this.direction=t.trim(),/.*</.exec(this.direction)&&(this.direction="RL"),/.*\^/.exec(this.direction)&&(this.direction="BT"),/.*>/.exec(this.direction)&&(this.direction="LR"),/.*v/.exec(this.direction)&&(this.direction="TB"),"TD"===this.direction&&(this.direction="TB")}setClass(t,e){for(const s of t.split(",")){const t=this.vertices.get(s);t&&t.classes.push(e);const i=this.edges.find(t=>t.id===s);i&&i.classes.push(e);const n=this.subGraphLookup.get(s);n&&n.classes.push(e)}}setTooltip(t,e){if(void 0!==e){e=this.sanitizeText(e);for(const s of t.split(","))this.tooltips.set("gen-1"===this.version?this.lookUpDomId(s):s,e)}}setClickFun(t,e,s){if("loose"!==a().securityLevel)return;if(void 0===e)return;let i=[];if("string"==typeof s){i=s.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let t=0;t<i.length;t++){let e=i[t].trim();e.startsWith('"')&&e.endsWith('"')&&(e=e.substr(1,e.length-2)),i[t]=e}}0===i.length&&i.push(t);const n=this.vertices.get(t);n&&(n.haveCallback=!0,this.funs.push(()=>{const s=this.lookUpDomId(t),n=document.querySelector(`[id="${s}"]`);null!==n&&n.addEventListener("click",()=>{l.runFunc(e,...i)},!1)}))}setLink(t,e,s){t.split(",").forEach(t=>{const i=this.vertices.get(t);void 0!==i&&(i.link=l.formatUrl(e,this.config),i.linkTarget=s)}),this.setClass(t,"clickable")}getTooltip(t){return this.tooltips.get(t)}setClickEvent(t,e,s){t.split(",").forEach(t=>{this.setClickFun(t,e,s)}),this.setClass(t,"clickable")}bindFunctions(t){this.funs.forEach(e=>{e(t)})}getDirection(){return this.direction?.trim()}getVertices(){return this.vertices}getEdges(){return this.edges}getClasses(){return this.classes}setupToolTips(t){const e=v();E(t).select("svg").selectAll("g.node").on("mouseover",t=>{const s=E(t.currentTarget),i=s.attr("title");if(null===i)return;const n=t.currentTarget?.getBoundingClientRect();e.transition().duration(200).style("opacity",".9"),e.text(s.attr("title")).style("left",window.scrollX+n.left+(n.right-n.left)/2+"px").style("top",window.scrollY+n.bottom+"px"),e.html(C.sanitize(i)),s.classed("hover",!0)}).on("mouseout",t=>{e.transition().duration(500).style("opacity",0);E(t.currentTarget).classed("hover",!1)})}clear(t="gen-2"){this.vertices=new Map,this.classes=new Map,this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.diagramId="",this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.tooltips=new Map,this.firstGraphFlag=!0,this.version=t,this.config=a(),D()}setGen(t){this.version=t||"gen-2"}defaultStyle(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"}addSubGraph(t,e,s){let n=t.text.trim(),u=s.text;t===s&&/\s/.exec(s.text)&&(n=void 0);const o=i(t=>{const e={boolean:{},number:{},string:{}},s=[];let i;return{nodeList:t.filter(function(t){const n=typeof t;return t.stmt&&"dir"===t.stmt?(i=t.value,!1):""!==t.trim()&&(n in e?!e[n].hasOwnProperty(t)&&(e[n][t]=!0):!s.includes(t)&&s.push(t))}),dir:i}},"uniq")(e.flat()),l=o.nodeList;let c=o.dir;const h=a().flowchart??{};if(c=c??(h.inheritDir?this.getDirection()??a().direction??void 0:void 0),"gen-1"===this.version)for(let t=0;t<l.length;t++)l[t]=this.lookUpDomId(l[t]);n=n??"subGraph"+this.subCount,u=u||"",u=this.sanitizeText(u),this.subCount=this.subCount+1;const d={id:n,nodes:l,title:u.trim(),classes:[],dir:c,labelType:this.sanitizeNodeLabelType(s?.type)};r.info("Adding",d.id,d.nodes,d.dir),d.nodes=this.makeUniq(d,this.subGraphs).nodes.filter(t=>t!==n);const p=this.subGraphs.find(t=>t.id===n);return p?p.nodes.push(...d.nodes):this.subGraphs.push(d),this.subGraphLookup.set(n,p??d),n}getPosForId(t){for(const[e,s]of this.subGraphs.entries())if(s.id===t)return e;return-1}indexNodes2(t,e){const s=this.subGraphs[e].nodes;if(this.secCount=this.secCount+1,this.secCount>2e3)return{result:!1,count:0};if(this.posCrossRef[this.secCount]=e,this.subGraphs[e].id===t)return{result:!0,count:0};let i=0,n=1;for(;i<s.length;){const e=this.getPosForId(s[i]);if(e>=0){const s=this.indexNodes2(t,e);if(s.result)return{result:!0,count:n+s.count};n+=s.count}i+=1}return{result:!1,count:n}}getDepthFirstPos(t){return this.posCrossRef[t]}indexNodes(){this.secCount=-1,this.subGraphs.length>0&&this.indexNodes2("none",this.subGraphs.length-1)}getSubGraphs(){return this.subGraphs}firstGraph(){return!!this.firstGraphFlag&&(this.firstGraphFlag=!1,!0)}destructStartLink(t){let e=t.trim(),s="arrow_open";switch(e[0]){case"<":s="arrow_point",e=e.slice(1);break;case"x":s="arrow_cross",e=e.slice(1);break;case"o":s="arrow_circle",e=e.slice(1)}let i="normal";return e.includes("=")&&(i="thick"),e.includes(".")&&(i="dotted"),{type:s,stroke:i}}countChar(t,e){const s=e.length;let i=0;for(let n=0;n<s;++n)e[n]===t&&++i;return i}destructEndLink(t){const e=t.trim();let s=e.slice(0,-1),i="arrow_open";switch(e.slice(-1)){case"x":i="arrow_cross",e.startsWith("x")&&(i="double_"+i,s=s.slice(1));break;case">":i="arrow_point",e.startsWith("<")&&(i="double_"+i,s=s.slice(1));break;case"o":i="arrow_circle",e.startsWith("o")&&(i="double_"+i,s=s.slice(1))}let n="normal",r=s.length-1;s.startsWith("=")&&(n="thick"),s.startsWith("~")&&(n="invisible");const a=this.countChar(".",s);return a&&(n="dotted",r=a),{type:i,stroke:n,length:r}}destructLink(t,e){const s=this.destructEndLink(t);let i;if(e){if(i=this.destructStartLink(e),i.stroke!==s.stroke)return{type:"INVALID",stroke:"INVALID"};if("arrow_open"===i.type)i.type=s.type;else{if(i.type!==s.type)return{type:"INVALID",stroke:"INVALID"};i.type="double_"+i.type}return"double_arrow"===i.type&&(i.type="double_arrow_point"),i.length=s.length,i}return s}exists(t,e){for(const s of t)if(s.nodes.includes(e))return!0;return!1}makeUniq(t,e){const s=[];return t.nodes.forEach((i,n)=>{this.exists(e,i)||s.push(t.nodes[n])}),{nodes:s}}getTypeFromVertex(t){if(t.img)return"imageSquare";if(t.icon)return"circle"===t.form?"iconCircle":"square"===t.form?"iconSquare":"rounded"===t.form?"iconRounded":"icon";switch(t.type){case"square":case void 0:return"squareRect";case"round":return"roundedRect";case"ellipse":return"ellipse";default:return t.type}}findNode(t,e){return t.find(t=>t.id===e)}destructEdgeType(t){let e="none",s="arrow_point";switch(t){case"arrow_point":case"arrow_circle":case"arrow_cross":s=t;break;case"double_arrow_point":case"double_arrow_circle":case"double_arrow_cross":e=t.replace("double_",""),s=e}return{arrowTypeStart:e,arrowTypeEnd:s}}addNodeFromVertex(t,e,s,i,n,r){const a=s.get(t.id),u=i.get(t.id)??!1,o=this.findNode(e,t.id);if(o)o.cssStyles=t.styles,o.cssCompiledStyles=this.getCompiledStyles(t.classes),o.cssClasses=t.classes.join(" ");else{const s={id:t.id,label:t.text,labelType:t.labelType,labelStyle:"",parentId:a,padding:n.flowchart?.padding||8,cssStyles:t.styles,cssCompiledStyles:this.getCompiledStyles(["default","node",...t.classes]),cssClasses:"default "+t.classes.join(" "),dir:t.dir,domId:t.domId,look:r,link:t.link,linkTarget:t.linkTarget,tooltip:this.getTooltip(t.id),icon:t.icon,pos:t.pos,img:t.img,assetWidth:t.assetWidth,assetHeight:t.assetHeight,constraint:t.constraint};u?e.push({...s,isGroup:!0,shape:"rect"}):e.push({...s,isGroup:!1,shape:this.getTypeFromVertex(t),minWidth:n.flowchart?.minNodeWidth})}}getCompiledStyles(t){let e=[];for(const s of t){const t=this.classes.get(s);t?.styles&&(e=[...e,...t.styles??[]].map(t=>t.trim())),t?.textStyles&&(e=[...e,...t.textStyles??[]].map(t=>t.trim()))}return e}getData(){const t=a(),e=[],s=[],n=this.getSubGraphs(),r=new Map,u=new Map,o=new Map;for(const t of n)for(const e of t.nodes)this.subGraphLookup.has(e)&&o.set(e,t.id);const l=new Map,c=new Map;for(const t of n){const e=o.get(t.id);void 0!==e&&c.set(e,[...c.get(e)??[],t.id])}let h=0;const d=i(t=>{l.set(t,h++);for(const e of c.get(t)??[])d(e)},"walk");for(const t of n)o.has(t.id)||d(t.id);const p=i(t=>"collapsed"===this.subGraphLookup.get(t)?.metadata?.view,"isCollapsed"),g=i(t=>{let e;const s=new Set;let i=t;for(;void 0!==i&&!s.has(i);)s.add(i),p(i)&&(e=i),i=o.get(i);return e},"outermostCollapsed"),A=new Set,y=new Map;for(const t of n){const e=g(t.id);if(void 0!==e){t.id!==e&&(A.add(t.id),y.set(t.id,e));for(const s of t.nodes)s!==e&&(A.add(s),y.set(s,e))}}for(let t=n.length-1;t>=0;t--){const e=n[t];if(!A.has(e.id)){e.nodes.length>0&&u.set(e.id,!0);for(const t of e.nodes)r.set(t,e.id)}}for(let s=n.length-1;s>=0;s--){const i=n[s];A.has(i.id)||("collapsed"===i.metadata?.view?e.push({id:i.id,label:i.title,labelStyle:"",labelType:i.labelType,parentId:r.get(i.id),padding:8,cssCompiledStyles:this.getCompiledStyles(i.classes),cssClasses:i.classes.join(" "),shape:"collapsedGroup",dir:i.dir,isGroup:!1,look:t.look,colorIndex:l.get(i.id)}):e.push({id:i.id,label:i.title,labelStyle:"",labelType:i.labelType,parentId:r.get(i.id),padding:8,cssCompiledStyles:this.getCompiledStyles(i.classes),cssClasses:i.classes.join(" "),shape:"rect",dir:i.dir,isGroup:!0,look:t.look,colorIndex:l.get(i.id),metadata:i.metadata}))}this.getVertices().forEach(s=>{A.has(s.id)||this.addNodeFromVertex(s,e,r,u,t,t.look||"classic")});const k=this.getEdges();return k.forEach((e,i)=>{const{arrowTypeStart:n,arrowTypeEnd:r}=this.destructEdgeType(e.type),a=[...k.defaultStyle??[]],u=y.get(e.start)??e.start,o=y.get(e.end)??e.end;if(u===o&&(y.has(e.start)||y.has(e.end)))return;e.style&&a.push(...e.style);const l={id:m(u,o,{counter:i,prefix:"L"},e.id),isUserDefinedId:e.isUserDefinedId,start:u,end:o,type:e.type??"normal",label:e.text,labelType:e.labelType,labelpos:"c",thickness:e.stroke,minlen:e.length,classes:"invisible"===e?.stroke?"":"edge-thickness-normal edge-pattern-solid flowchart-link",arrowTypeStart:"invisible"===e?.stroke||"arrow_open"===e?.type?"none":n,arrowTypeEnd:"invisible"===e?.stroke||"arrow_open"===e?.type?"none":r,arrowheadStyle:"fill: #333",cssCompiledStyles:this.getCompiledStyles(e.classes),labelStyle:a,style:a,pattern:e.stroke,look:t.look,animate:e.animate,animation:e.animation,curve:e.interpolate||this.edges.defaultInterpolate||t.flowchart?.curve};s.push(l)}),{nodes:e,edges:s,other:{},config:t}}defaultConfig(){return T.flowchart}},L={getClasses:i(function(t,e){return e.db.getClasses()},"getClasses"),draw:i(async function(t,i,n,c){r.info("REF0:"),r.info("Drawing state diagram (v2)",i);const{securityLevel:h,flowchart:d,layout:p}=a();c.db.setDiagramId(i),r.debug("Before getData: ");const g=c.db.getData();r.debug("Data: ",g);const A=e(i,h),y=c.db.getDirection();g.type=c.type,g.layoutAlgorithm=u(p),g.direction=y,g.nodeSpacing=d?.nodeSpacing||50,g.rankSpacing=d?.rankSpacing||50,g.markers=["point","circle","cross"],g.diagramId=i,r.debug("REF1:",g),await o(g,A);const k=g.config.flowchart?.diagramPadding??8;l.insertTitle(A,"flowchartTitleText",d?.titleTopMargin||0,c.db.getDiagramTitle()),s(A,k,"flowchart",d?.useMaxWidth||!1)},"draw")},I=function(){var t=i(function(t,e,s,i){for(s=s||{},i=t.length;i--;s[t[i]]=e);return s},"o"),e=[1,4],s=[1,3],n=[1,5],r=[1,8,9,10,11,27,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],a=[2,2],u=[1,13],o=[1,14],l=[1,15],c=[1,16],h=[1,23],d=[1,25],p=[1,26],g=[1,27],A=[1,50],y=[1,49],k=[1,29],f=[1,30],b=[1,31],m=[1,32],E=[1,33],C=[1,45],D=[1,47],T=[1,43],x=[1,48],S=[1,44],F=[1,51],_=[1,46],B=[1,52],v=[1,53],$=[1,34],w=[1,35],L=[1,36],I=[1,37],R=[1,38],N=[1,58],G=[1,8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],P=[1,62],O=[1,61],M=[1,63],U=[8,9,11,75,77,78],V=[1,79],W=[1,92],j=[1,97],z=[1,96],K=[1,93],Y=[1,89],H=[1,95],X=[1,91],q=[1,98],Q=[1,94],J=[1,99],Z=[1,90],tt=[8,9,10,11,40,75,77,78],et=[8,9,10,11,40,46,75,77,78],st=[8,9,10,11,29,40,44,46,48,50,52,54,56,58,60,63,65,67,68,70,75,77,78,89,102,105,106,109,111,114,115,116],it=[8,9,11,44,60,75,77,78,89,102,105,106,109,111,114,115,116],nt=[44,60,89,102,105,106,109,111,114,115,116],rt=[1,122],at=[1,123],ut=[1,125],ot=[1,124],lt=[44,60,62,74,89,102,105,106,109,111,114,115,116],ct=[1,134],ht=[1,148],dt=[1,149],pt=[1,150],gt=[1,151],At=[1,136],yt=[1,138],kt=[1,142],ft=[1,143],bt=[1,144],mt=[1,145],Et=[1,146],Ct=[1,147],Dt=[1,152],Tt=[1,153],xt=[1,132],St=[1,133],Ft=[1,140],_t=[1,135],Bt=[1,139],vt=[1,137],$t=[8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],wt=[1,155],Lt=[1,157],It=[8,9,11],Rt=[8,9,10,11,14,44,60,89,105,106,109,111,114,115,116],Nt=[1,177],Gt=[1,173],Pt=[1,174],Ot=[1,178],Mt=[1,175],Ut=[1,176],Vt=[77,116,119],Wt=[8,9,10,11,12,14,27,29,32,44,60,75,84,85,86,87,88,89,90,105,109,111,114,115,116],jt=[10,106],zt=[31,49,51,53,55,57,62,64,66,67,69,71,116,117,118],Kt=[1,248],Yt=[1,246],Ht=[1,250],Xt=[1,244],qt=[1,245],Qt=[1,247],Jt=[1,249],Zt=[1,251],te=[1,269],ee=[8,9,11,106],se=[8,9,10,11,60,84,105,106,109,110,111,112],ie={trace:i(function(){},"trace"),yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,shapeData:39,SHAPE_DATA:40,link:41,node:42,styledVertex:43,AMP:44,vertex:45,STYLE_SEPARATOR:46,idString:47,DOUBLECIRCLESTART:48,DOUBLECIRCLEEND:49,PS:50,PE:51,"(-":52,"-)":53,STADIUMSTART:54,STADIUMEND:55,SUBROUTINESTART:56,SUBROUTINEEND:57,VERTEX_WITH_PROPS_START:58,"NODE_STRING[field]":59,COLON:60,"NODE_STRING[value]":61,PIPE:62,CYLINDERSTART:63,CYLINDEREND:64,DIAMOND_START:65,DIAMOND_STOP:66,TAGEND:67,TRAPSTART:68,TRAPEND:69,INVTRAPSTART:70,INVTRAPEND:71,linkStatement:72,arrowText:73,TESTSTR:74,START_LINK:75,edgeText:76,LINK:77,LINK_ID:78,edgeTextToken:79,STR:80,MD_STR:81,textToken:82,keywords:83,STYLE:84,LINKSTYLE:85,CLASSDEF:86,CLASS:87,CLICK:88,DOWN:89,UP:90,textNoTagsToken:91,stylesOpt:92,"idString[vertex]":93,"idString[class]":94,CALLBACKNAME:95,CALLBACKARGS:96,HREF:97,LINK_TARGET:98,"STR[link]":99,"STR[tooltip]":100,alphaNum:101,DEFAULT:102,numList:103,INTERPOLATE:104,NUM:105,COMMA:106,style:107,styleComponent:108,NODE_STRING:109,UNIT:110,BRKT:111,PCT:112,idStringToken:113,MINUS:114,MULT:115,UNICODE_TEXT:116,TEXT:117,TAGSTART:118,EDGE_TEXT:119,alphaNumToken:120,direction_tb:121,direction_bt:122,direction_rl:123,direction_lr:124,direction_td:125,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",40:"SHAPE_DATA",44:"AMP",46:"STYLE_SEPARATOR",48:"DOUBLECIRCLESTART",49:"DOUBLECIRCLEEND",50:"PS",51:"PE",52:"(-",53:"-)",54:"STADIUMSTART",55:"STADIUMEND",56:"SUBROUTINESTART",57:"SUBROUTINEEND",58:"VERTEX_WITH_PROPS_START",59:"NODE_STRING[field]",60:"COLON",61:"NODE_STRING[value]",62:"PIPE",63:"CYLINDERSTART",64:"CYLINDEREND",65:"DIAMOND_START",66:"DIAMOND_STOP",67:"TAGEND",68:"TRAPSTART",69:"TRAPEND",70:"INVTRAPSTART",71:"INVTRAPEND",74:"TESTSTR",75:"START_LINK",77:"LINK",78:"LINK_ID",80:"STR",81:"MD_STR",84:"STYLE",85:"LINKSTYLE",86:"CLASSDEF",87:"CLASS",88:"CLICK",89:"DOWN",90:"UP",93:"idString[vertex]",94:"idString[class]",95:"CALLBACKNAME",96:"CALLBACKARGS",97:"HREF",98:"LINK_TARGET",99:"STR[link]",100:"STR[tooltip]",102:"DEFAULT",104:"INTERPOLATE",105:"NUM",106:"COMMA",109:"NODE_STRING",110:"UNIT",111:"BRKT",112:"PCT",114:"MINUS",115:"MULT",116:"UNICODE_TEXT",117:"TEXT",118:"TAGSTART",119:"EDGE_TEXT",121:"direction_tb",122:"direction_bt",123:"direction_rl",124:"direction_lr",125:"direction_td"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[39,2],[39,1],[20,4],[20,3],[20,4],[20,2],[20,2],[20,1],[42,1],[42,6],[42,5],[43,1],[43,3],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,8],[45,4],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,4],[45,4],[45,1],[41,2],[41,3],[41,3],[41,1],[41,3],[41,4],[76,1],[76,2],[76,1],[76,1],[72,1],[72,2],[73,3],[30,1],[30,2],[30,1],[30,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[103,1],[103,3],[92,1],[92,3],[107,1],[107,2],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[82,1],[82,1],[82,1],[82,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[79,1],[79,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[47,1],[47,2],[101,1],[101,2],[33,1],[33,1],[33,1],[33,1],[33,1]],performAction:i(function(t,e,s,i,n,r,a){var u=r.length-1;switch(n){case 2:case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 3:(!Array.isArray(r[u])||r[u].length>0)&&r[u-1].push(r[u]),this.$=r[u-1];break;case 4:case 183:case 44:case 54:case 76:case 181:this.$=r[u];break;case 11:i.setDirection("TB"),this.$="TB";break;case 12:i.setDirection(r[u-1]),this.$=r[u-1];break;case 27:this.$=r[u-1].nodes;break;case 33:this.$=i.addSubGraph(r[u-6],r[u-1],r[u-4]);break;case 34:this.$=i.addSubGraph(r[u-3],r[u-1],r[u-3]);break;case 35:this.$=i.addSubGraph(void 0,r[u-1],void 0);break;case 37:this.$=r[u].trim(),i.setAccTitle(this.$);break;case 38:case 39:this.$=r[u].trim(),i.setAccDescription(this.$);break;case 43:case 133:this.$=r[u-1]+r[u];break;case 45:i.addVertex(r[u-1][r[u-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,r[u]),i.addLink(r[u-3].stmt,r[u-1],r[u-2]),this.$={stmt:r[u-1],nodes:r[u-1].concat(r[u-3].nodes)};break;case 46:i.addLink(r[u-2].stmt,r[u],r[u-1]),this.$={stmt:r[u],nodes:r[u].concat(r[u-2].nodes)};break;case 47:i.addLink(r[u-3].stmt,r[u-1],r[u-2]),this.$={stmt:r[u-1],nodes:r[u-1].concat(r[u-3].nodes)};break;case 48:this.$={stmt:r[u-1],nodes:r[u-1]};break;case 49:i.addVertex(r[u-1][r[u-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,r[u]),this.$={stmt:r[u-1],nodes:r[u-1],shapeData:r[u]};break;case 50:this.$={stmt:r[u],nodes:r[u]};break;case 51:case 128:case 130:this.$=[r[u]];break;case 52:i.addVertex(r[u-5][r[u-5].length-1],void 0,void 0,void 0,void 0,void 0,void 0,r[u-4]),this.$=r[u-5].concat(r[u]);break;case 53:this.$=r[u-4].concat(r[u]);break;case 55:this.$=r[u-2],i.setClass(r[u-2],r[u]);break;case 56:this.$=r[u-3],i.addVertex(r[u-3],r[u-1],"square");break;case 57:this.$=r[u-3],i.addVertex(r[u-3],r[u-1],"doublecircle");break;case 58:this.$=r[u-5],i.addVertex(r[u-5],r[u-2],"circle");break;case 59:this.$=r[u-3],i.addVertex(r[u-3],r[u-1],"ellipse");break;case 60:this.$=r[u-3],i.addVertex(r[u-3],r[u-1],"stadium");break;case 61:this.$=r[u-3],i.addVertex(r[u-3],r[u-1],"subroutine");break;case 62:this.$=r[u-7],i.addVertex(r[u-7],r[u-1],"rect",void 0,void 0,void 0,Object.fromEntries([[r[u-5],r[u-3]]]));break;case 63:this.$=r[u-3],i.addVertex(r[u-3],r[u-1],"cylinder");break;case 64:this.$=r[u-3],i.addVertex(r[u-3],r[u-1],"round");break;case 65:this.$=r[u-3],i.addVertex(r[u-3],r[u-1],"diamond");break;case 66:this.$=r[u-5],i.addVertex(r[u-5],r[u-2],"hexagon");break;case 67:this.$=r[u-3],i.addVertex(r[u-3],r[u-1],"odd");break;case 68:this.$=r[u-3],i.addVertex(r[u-3],r[u-1],"trapezoid");break;case 69:this.$=r[u-3],i.addVertex(r[u-3],r[u-1],"inv_trapezoid");break;case 70:this.$=r[u-3],i.addVertex(r[u-3],r[u-1],"lean_right");break;case 71:this.$=r[u-3],i.addVertex(r[u-3],r[u-1],"lean_left");break;case 72:this.$=r[u],i.addVertex(r[u]);break;case 73:r[u-1].text=r[u],this.$=r[u-1];break;case 74:case 75:r[u-2].text=r[u-1],this.$=r[u-2];break;case 77:var o=i.destructLink(r[u],r[u-2]);this.$={type:o.type,stroke:o.stroke,length:o.length,text:r[u-1]};break;case 78:o=i.destructLink(r[u],r[u-2]);this.$={type:o.type,stroke:o.stroke,length:o.length,text:r[u-1],id:r[u-3]};break;case 79:case 86:case 101:case 103:this.$={text:r[u],type:"text"};break;case 80:case 87:case 102:this.$={text:r[u-1].text+""+r[u],type:r[u-1].type};break;case 81:case 88:this.$={text:r[u],type:"string"};break;case 82:case 89:case 104:this.$={text:r[u],type:"markdown"};break;case 83:o=i.destructLink(r[u]);this.$={type:o.type,stroke:o.stroke,length:o.length};break;case 84:o=i.destructLink(r[u]);this.$={type:o.type,stroke:o.stroke,length:o.length,id:r[u-1]};break;case 85:this.$=r[u-1];break;case 105:this.$=r[u-4],i.addClass(r[u-2],r[u]);break;case 106:this.$=r[u-4],i.setClass(r[u-2],r[u]);break;case 107:case 115:this.$=r[u-1],i.setClickEvent(r[u-1],r[u]);break;case 108:case 116:this.$=r[u-3],i.setClickEvent(r[u-3],r[u-2]),i.setTooltip(r[u-3],r[u]);break;case 109:this.$=r[u-2],i.setClickEvent(r[u-2],r[u-1],r[u]);break;case 110:this.$=r[u-4],i.setClickEvent(r[u-4],r[u-3],r[u-2]),i.setTooltip(r[u-4],r[u]);break;case 111:this.$=r[u-2],i.setLink(r[u-2],r[u]);break;case 112:this.$=r[u-4],i.setLink(r[u-4],r[u-2]),i.setTooltip(r[u-4],r[u]);break;case 113:this.$=r[u-4],i.setLink(r[u-4],r[u-2],r[u]);break;case 114:this.$=r[u-6],i.setLink(r[u-6],r[u-4],r[u]),i.setTooltip(r[u-6],r[u-2]);break;case 117:this.$=r[u-1],i.setLink(r[u-1],r[u]);break;case 118:this.$=r[u-3],i.setLink(r[u-3],r[u-2]),i.setTooltip(r[u-3],r[u]);break;case 119:this.$=r[u-3],i.setLink(r[u-3],r[u-2],r[u]);break;case 120:this.$=r[u-5],i.setLink(r[u-5],r[u-4],r[u]),i.setTooltip(r[u-5],r[u-2]);break;case 121:this.$=r[u-4],i.addVertex(r[u-2],void 0,void 0,r[u]);break;case 122:this.$=r[u-4],i.updateLink([r[u-2]],r[u]);break;case 123:this.$=r[u-4],i.updateLink(r[u-2],r[u]);break;case 124:this.$=r[u-8],i.updateLinkInterpolate([r[u-6]],r[u-2]),i.updateLink([r[u-6]],r[u]);break;case 125:this.$=r[u-8],i.updateLinkInterpolate(r[u-6],r[u-2]),i.updateLink(r[u-6],r[u]);break;case 126:this.$=r[u-6],i.updateLinkInterpolate([r[u-4]],r[u]);break;case 127:this.$=r[u-6],i.updateLinkInterpolate(r[u-4],r[u]);break;case 129:case 131:r[u-2].push(r[u]),this.$=r[u-2];break;case 182:case 184:this.$=r[u-1]+""+r[u];break;case 185:this.$={stmt:"dir",value:"TB"};break;case 186:this.$={stmt:"dir",value:"BT"};break;case 187:this.$={stmt:"dir",value:"RL"};break;case 188:this.$={stmt:"dir",value:"LR"};break;case 189:this.$={stmt:"dir",value:"TD"}}},"anonymous"),table:[{3:1,4:2,9:e,10:s,12:n},{1:[3]},t(r,a,{5:6}),{4:7,9:e,10:s,12:n},{4:8,9:e,10:s,12:n},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:u,9:o,10:l,11:c,20:17,22:18,23:19,24:20,25:21,26:22,27:h,33:24,34:d,36:p,38:g,42:28,43:39,44:A,45:40,47:41,60:y,84:k,85:f,86:b,87:m,88:E,89:C,102:D,105:T,106:x,109:S,111:F,113:42,114:_,115:B,116:v,121:$,122:w,123:L,124:I,125:R},t(r,[2,9]),t(r,[2,10]),t(r,[2,11]),{8:[1,55],9:[1,56],10:N,15:54,18:57},t(G,[2,3]),t(G,[2,4]),t(G,[2,5]),t(G,[2,6]),t(G,[2,7]),t(G,[2,8]),{8:P,9:O,11:M,21:59,41:60,72:64,75:[1,65],77:[1,67],78:[1,66]},{8:P,9:O,11:M,21:68},{8:P,9:O,11:M,21:69},{8:P,9:O,11:M,21:70},{8:P,9:O,11:M,21:71},{8:P,9:O,11:M,21:72},{8:P,9:O,10:[1,73],11:M,21:74},t(G,[2,36]),{35:[1,75]},{37:[1,76]},t(G,[2,39]),t(U,[2,50],{18:77,39:78,10:N,40:V}),{10:[1,80]},{10:[1,81]},{10:[1,82]},{10:[1,83]},{14:W,44:j,60:z,80:[1,87],89:K,95:[1,84],97:[1,85],101:86,105:Y,106:H,109:X,111:q,114:Q,115:J,116:Z,120:88},t(G,[2,185]),t(G,[2,186]),t(G,[2,187]),t(G,[2,188]),t(G,[2,189]),t(tt,[2,51]),t(tt,[2,54],{46:[1,100]}),t(et,[2,72],{113:113,29:[1,101],44:A,48:[1,102],50:[1,103],52:[1,104],54:[1,105],56:[1,106],58:[1,107],60:y,63:[1,108],65:[1,109],67:[1,110],68:[1,111],70:[1,112],89:C,102:D,105:T,106:x,109:S,111:F,114:_,115:B,116:v}),t(st,[2,181]),t(st,[2,142]),t(st,[2,143]),t(st,[2,144]),t(st,[2,145]),t(st,[2,146]),t(st,[2,147]),t(st,[2,148]),t(st,[2,149]),t(st,[2,150]),t(st,[2,151]),t(st,[2,152]),t(r,[2,12]),t(r,[2,18]),t(r,[2,19]),{9:[1,114]},t(it,[2,26],{18:115,10:N}),t(G,[2,27]),{42:116,43:39,44:A,45:40,47:41,60:y,89:C,102:D,105:T,106:x,109:S,111:F,113:42,114:_,115:B,116:v},t(G,[2,40]),t(G,[2,41]),t(G,[2,42]),t(nt,[2,76],{73:117,62:[1,119],74:[1,118]}),{76:120,79:121,80:rt,81:at,116:ut,119:ot},{75:[1,126],77:[1,127]},t(lt,[2,83]),t(G,[2,28]),t(G,[2,29]),t(G,[2,30]),t(G,[2,31]),t(G,[2,32]),{10:ct,12:ht,14:dt,27:pt,28:128,32:gt,44:At,60:yt,75:kt,80:[1,130],81:[1,131],83:141,84:ft,85:bt,86:mt,87:Et,88:Ct,89:Dt,90:Tt,91:129,105:xt,109:St,111:Ft,114:_t,115:Bt,116:vt},t($t,a,{5:154}),t(G,[2,37]),t(G,[2,38]),t(U,[2,48],{44:wt}),t(U,[2,49],{18:156,10:N,40:Lt}),t(tt,[2,44]),{44:A,47:158,60:y,89:C,102:D,105:T,106:x,109:S,111:F,113:42,114:_,115:B,116:v},{102:[1,159],103:160,105:[1,161]},{44:A,47:162,60:y,89:C,102:D,105:T,106:x,109:S,111:F,113:42,114:_,115:B,116:v},{44:A,47:163,60:y,89:C,102:D,105:T,106:x,109:S,111:F,113:42,114:_,115:B,116:v},t(It,[2,107],{10:[1,164],96:[1,165]}),{80:[1,166]},t(It,[2,115],{120:168,10:[1,167],14:W,44:j,60:z,89:K,105:Y,106:H,109:X,111:q,114:Q,115:J,116:Z}),t(It,[2,117],{10:[1,169]}),t(Rt,[2,183]),t(Rt,[2,170]),t(Rt,[2,171]),t(Rt,[2,172]),t(Rt,[2,173]),t(Rt,[2,174]),t(Rt,[2,175]),t(Rt,[2,176]),t(Rt,[2,177]),t(Rt,[2,178]),t(Rt,[2,179]),t(Rt,[2,180]),{44:A,47:170,60:y,89:C,102:D,105:T,106:x,109:S,111:F,113:42,114:_,115:B,116:v},{30:171,67:Nt,80:Gt,81:Pt,82:172,116:Ot,117:Mt,118:Ut},{30:179,67:Nt,80:Gt,81:Pt,82:172,116:Ot,117:Mt,118:Ut},{30:181,50:[1,180],67:Nt,80:Gt,81:Pt,82:172,116:Ot,117:Mt,118:Ut},{30:182,67:Nt,80:Gt,81:Pt,82:172,116:Ot,117:Mt,118:Ut},{30:183,67:Nt,80:Gt,81:Pt,82:172,116:Ot,117:Mt,118:Ut},{30:184,67:Nt,80:Gt,81:Pt,82:172,116:Ot,117:Mt,118:Ut},{109:[1,185]},{30:186,67:Nt,80:Gt,81:Pt,82:172,116:Ot,117:Mt,118:Ut},{30:187,65:[1,188],67:Nt,80:Gt,81:Pt,82:172,116:Ot,117:Mt,118:Ut},{30:189,67:Nt,80:Gt,81:Pt,82:172,116:Ot,117:Mt,118:Ut},{30:190,67:Nt,80:Gt,81:Pt,82:172,116:Ot,117:Mt,118:Ut},{30:191,67:Nt,80:Gt,81:Pt,82:172,116:Ot,117:Mt,118:Ut},t(st,[2,182]),t(r,[2,20]),t(it,[2,25]),t(U,[2,46],{39:192,18:193,10:N,40:V}),t(nt,[2,73],{10:[1,194]}),{10:[1,195]},{30:196,67:Nt,80:Gt,81:Pt,82:172,116:Ot,117:Mt,118:Ut},{77:[1,197],79:198,116:ut,119:ot},t(Vt,[2,79]),t(Vt,[2,81]),t(Vt,[2,82]),t(Vt,[2,168]),t(Vt,[2,169]),{76:199,79:121,80:rt,81:at,116:ut,119:ot},t(lt,[2,84]),{8:P,9:O,10:ct,11:M,12:ht,14:dt,21:201,27:pt,29:[1,200],32:gt,44:At,60:yt,75:kt,83:141,84:ft,85:bt,86:mt,87:Et,88:Ct,89:Dt,90:Tt,91:202,105:xt,109:St,111:Ft,114:_t,115:Bt,116:vt},t(Wt,[2,101]),t(Wt,[2,103]),t(Wt,[2,104]),t(Wt,[2,157]),t(Wt,[2,158]),t(Wt,[2,159]),t(Wt,[2,160]),t(Wt,[2,161]),t(Wt,[2,162]),t(Wt,[2,163]),t(Wt,[2,164]),t(Wt,[2,165]),t(Wt,[2,166]),t(Wt,[2,167]),t(Wt,[2,90]),t(Wt,[2,91]),t(Wt,[2,92]),t(Wt,[2,93]),t(Wt,[2,94]),t(Wt,[2,95]),t(Wt,[2,96]),t(Wt,[2,97]),t(Wt,[2,98]),t(Wt,[2,99]),t(Wt,[2,100]),{6:11,7:12,8:u,9:o,10:l,11:c,20:17,22:18,23:19,24:20,25:21,26:22,27:h,32:[1,203],33:24,34:d,36:p,38:g,42:28,43:39,44:A,45:40,47:41,60:y,84:k,85:f,86:b,87:m,88:E,89:C,102:D,105:T,106:x,109:S,111:F,113:42,114:_,115:B,116:v,121:$,122:w,123:L,124:I,125:R},{10:N,18:204},{44:[1,205]},t(tt,[2,43]),{10:[1,206],44:A,60:y,89:C,102:D,105:T,106:x,109:S,111:F,113:113,114:_,115:B,116:v},{10:[1,207]},{10:[1,208],106:[1,209]},t(jt,[2,128]),{10:[1,210],44:A,60:y,89:C,102:D,105:T,106:x,109:S,111:F,113:113,114:_,115:B,116:v},{10:[1,211],44:A,60:y,89:C,102:D,105:T,106:x,109:S,111:F,113:113,114:_,115:B,116:v},{80:[1,212]},t(It,[2,109],{10:[1,213]}),t(It,[2,111],{10:[1,214]}),{80:[1,215]},t(Rt,[2,184]),{80:[1,216],98:[1,217]},t(tt,[2,55],{113:113,44:A,60:y,89:C,102:D,105:T,106:x,109:S,111:F,114:_,115:B,116:v}),{31:[1,218],67:Nt,82:219,116:Ot,117:Mt,118:Ut},t(zt,[2,86]),t(zt,[2,88]),t(zt,[2,89]),t(zt,[2,153]),t(zt,[2,154]),t(zt,[2,155]),t(zt,[2,156]),{49:[1,220],67:Nt,82:219,116:Ot,117:Mt,118:Ut},{30:221,67:Nt,80:Gt,81:Pt,82:172,116:Ot,117:Mt,118:Ut},{51:[1,222],67:Nt,82:219,116:Ot,117:Mt,118:Ut},{53:[1,223],67:Nt,82:219,116:Ot,117:Mt,118:Ut},{55:[1,224],67:Nt,82:219,116:Ot,117:Mt,118:Ut},{57:[1,225],67:Nt,82:219,116:Ot,117:Mt,118:Ut},{60:[1,226]},{64:[1,227],67:Nt,82:219,116:Ot,117:Mt,118:Ut},{66:[1,228],67:Nt,82:219,116:Ot,117:Mt,118:Ut},{30:229,67:Nt,80:Gt,81:Pt,82:172,116:Ot,117:Mt,118:Ut},{31:[1,230],67:Nt,82:219,116:Ot,117:Mt,118:Ut},{67:Nt,69:[1,231],71:[1,232],82:219,116:Ot,117:Mt,118:Ut},{67:Nt,69:[1,234],71:[1,233],82:219,116:Ot,117:Mt,118:Ut},t(U,[2,45],{18:156,10:N,40:Lt}),t(U,[2,47],{44:wt}),t(nt,[2,75]),t(nt,[2,74]),{62:[1,235],67:Nt,82:219,116:Ot,117:Mt,118:Ut},t(nt,[2,77]),t(Vt,[2,80]),{77:[1,236],79:198,116:ut,119:ot},{30:237,67:Nt,80:Gt,81:Pt,82:172,116:Ot,117:Mt,118:Ut},t($t,a,{5:238}),t(Wt,[2,102]),t(G,[2,35]),{43:239,44:A,45:40,47:41,60:y,89:C,102:D,105:T,106:x,109:S,111:F,113:42,114:_,115:B,116:v},{10:N,18:240},{10:Kt,60:Yt,84:Ht,92:241,105:Xt,107:242,108:243,109:qt,110:Qt,111:Jt,112:Zt},{10:Kt,60:Yt,84:Ht,92:252,104:[1,253],105:Xt,107:242,108:243,109:qt,110:Qt,111:Jt,112:Zt},{10:Kt,60:Yt,84:Ht,92:254,104:[1,255],105:Xt,107:242,108:243,109:qt,110:Qt,111:Jt,112:Zt},{105:[1,256]},{10:Kt,60:Yt,84:Ht,92:257,105:Xt,107:242,108:243,109:qt,110:Qt,111:Jt,112:Zt},{44:A,47:258,60:y,89:C,102:D,105:T,106:x,109:S,111:F,113:42,114:_,115:B,116:v},t(It,[2,108]),{80:[1,259]},{80:[1,260],98:[1,261]},t(It,[2,116]),t(It,[2,118],{10:[1,262]}),t(It,[2,119]),t(et,[2,56]),t(zt,[2,87]),t(et,[2,57]),{51:[1,263],67:Nt,82:219,116:Ot,117:Mt,118:Ut},t(et,[2,64]),t(et,[2,59]),t(et,[2,60]),t(et,[2,61]),{109:[1,264]},t(et,[2,63]),t(et,[2,65]),{66:[1,265],67:Nt,82:219,116:Ot,117:Mt,118:Ut},t(et,[2,67]),t(et,[2,68]),t(et,[2,70]),t(et,[2,69]),t(et,[2,71]),t([10,44,60,89,102,105,106,109,111,114,115,116],[2,85]),t(nt,[2,78]),{31:[1,266],67:Nt,82:219,116:Ot,117:Mt,118:Ut},{6:11,7:12,8:u,9:o,10:l,11:c,20:17,22:18,23:19,24:20,25:21,26:22,27:h,32:[1,267],33:24,34:d,36:p,38:g,42:28,43:39,44:A,45:40,47:41,60:y,84:k,85:f,86:b,87:m,88:E,89:C,102:D,105:T,106:x,109:S,111:F,113:42,114:_,115:B,116:v,121:$,122:w,123:L,124:I,125:R},t(tt,[2,53]),{43:268,44:A,45:40,47:41,60:y,89:C,102:D,105:T,106:x,109:S,111:F,113:42,114:_,115:B,116:v},t(It,[2,121],{106:te}),t(ee,[2,130],{108:270,10:Kt,60:Yt,84:Ht,105:Xt,109:qt,110:Qt,111:Jt,112:Zt}),t(se,[2,132]),t(se,[2,134]),t(se,[2,135]),t(se,[2,136]),t(se,[2,137]),t(se,[2,138]),t(se,[2,139]),t(se,[2,140]),t(se,[2,141]),t(It,[2,122],{106:te}),{10:[1,271]},t(It,[2,123],{106:te}),{10:[1,272]},t(jt,[2,129]),t(It,[2,105],{106:te}),t(It,[2,106],{113:113,44:A,60:y,89:C,102:D,105:T,106:x,109:S,111:F,114:_,115:B,116:v}),t(It,[2,110]),t(It,[2,112],{10:[1,273]}),t(It,[2,113]),{98:[1,274]},{51:[1,275]},{62:[1,276]},{66:[1,277]},{8:P,9:O,11:M,21:278},t(G,[2,34]),t(tt,[2,52]),{10:Kt,60:Yt,84:Ht,105:Xt,107:279,108:243,109:qt,110:Qt,111:Jt,112:Zt},t(se,[2,133]),{14:W,44:j,60:z,89:K,101:280,105:Y,106:H,109:X,111:q,114:Q,115:J,116:Z,120:88},{14:W,44:j,60:z,89:K,101:281,105:Y,106:H,109:X,111:q,114:Q,115:J,116:Z,120:88},{98:[1,282]},t(It,[2,120]),t(et,[2,58]),{30:283,67:Nt,80:Gt,81:Pt,82:172,116:Ot,117:Mt,118:Ut},t(et,[2,66]),t($t,a,{5:284}),t(ee,[2,131],{108:270,10:Kt,60:Yt,84:Ht,105:Xt,109:qt,110:Qt,111:Jt,112:Zt}),t(It,[2,126],{120:168,10:[1,285],14:W,44:j,60:z,89:K,105:Y,106:H,109:X,111:q,114:Q,115:J,116:Z}),t(It,[2,127],{120:168,10:[1,286],14:W,44:j,60:z,89:K,105:Y,106:H,109:X,111:q,114:Q,115:J,116:Z}),t(It,[2,114]),{31:[1,287],67:Nt,82:219,116:Ot,117:Mt,118:Ut},{6:11,7:12,8:u,9:o,10:l,11:c,20:17,22:18,23:19,24:20,25:21,26:22,27:h,32:[1,288],33:24,34:d,36:p,38:g,42:28,43:39,44:A,45:40,47:41,60:y,84:k,85:f,86:b,87:m,88:E,89:C,102:D,105:T,106:x,109:S,111:F,113:42,114:_,115:B,116:v,121:$,122:w,123:L,124:I,125:R},{10:Kt,60:Yt,84:Ht,92:289,105:Xt,107:242,108:243,109:qt,110:Qt,111:Jt,112:Zt},{10:Kt,60:Yt,84:Ht,92:290,105:Xt,107:242,108:243,109:qt,110:Qt,111:Jt,112:Zt},t(et,[2,62]),t(G,[2,33]),t(It,[2,124],{106:te}),t(It,[2,125],{106:te})],defaultActions:{},parseError:i(function(t,e){if(!e.recoverable){var s=new Error(t);throw s.hash=e,s}this.trace(t)},"parseError"),parse:i(function(t){var e=this,s=[0],n=[],r=[null],a=[],u=this.table,o="",l=0,c=0,h=a.slice.call(arguments,1),d=Object.create(this.lexer),p={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(p.yy[g]=this.yy[g]);d.setInput(t,p.yy),p.yy.lexer=d,p.yy.parser=this,void 0===d.yylloc&&(d.yylloc={});var A=d.yylloc;a.push(A);var y=d.options&&d.options.ranges;function k(){var t;return"number"!=typeof(t=n.pop()||d.lex()||1)&&(t instanceof Array&&(t=(n=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,i(function(t){s.length=s.length-2*t,r.length=r.length-t,a.length=a.length-t},"popStack"),i(k,"lex");for(var f,b,m,E,C,D,T,x,S={};;){if(b=s[s.length-1],this.defaultActions[b]?m=this.defaultActions[b]:(null==f&&(f=k()),m=u[b]&&u[b][f]),void 0===m||!m.length||!m[0]){var F="";for(C in x=[],u[b])this.terminals_[C]&&C>2&&x.push("'"+this.terminals_[C]+"'");F=d.showPosition?"Parse error on line "+(l+1)+":\n"+d.showPosition()+"\nExpecting "+x.join(", ")+", got '"+(this.terminals_[f]||f)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==f?"end of input":"'"+(this.terminals_[f]||f)+"'"),this.parseError(F,{text:d.match,token:this.terminals_[f]||f,line:d.yylineno,loc:A,expected:x})}if(m[0]instanceof Array&&m.length>1)throw new Error("Parse Error: multiple actions possible at state: "+b+", token: "+f);switch(m[0]){case 1:s.push(f),r.push(d.yytext),a.push(d.yylloc),s.push(m[1]),f=null,c=d.yyleng,o=d.yytext,l=d.yylineno,A=d.yylloc;break;case 2:if(D=this.productions_[m[1]][1],S.$=r[r.length-D],S._$={first_line:a[a.length-(D||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(D||1)].first_column,last_column:a[a.length-1].last_column},y&&(S._$.range=[a[a.length-(D||1)].range[0],a[a.length-1].range[1]]),void 0!==(E=this.performAction.apply(S,[o,c,l,p.yy,m[1],r,a].concat(h))))return E;D&&(s=s.slice(0,-1*D*2),r=r.slice(0,-1*D),a=a.slice(0,-1*D)),s.push(this.productions_[m[1]][0]),r.push(S.$),a.push(S._$),T=u[s[s.length-2]][s[s.length-1]],s.push(T);break;case 3:return!0}}return!0},"parse")},ne=function(){return{EOF:1,parseError:i(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:i(function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:i(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:i(function(t){var e=t.length,s=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;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),s.length-1&&(this.yylineno-=s.length-1);var n=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:s?(s.length===i.length?this.yylloc.first_column:0)+i[i.length-s.length].length-s[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:i(function(){return this._more=!0,this},"more"),reject:i(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:i(function(t){this.unput(this.match.slice(t))},"less"),pastInput:i(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:i(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:i(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:i(function(t,e){var s,i,n;if(this.options.backtrack_lexer&&(n={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(n.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],s=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s)return s;if(this._backtrack){for(var r in n)this[r]=n[r];return!1}return!1},"test_match"),next:i(function(){if(this.done)return this.EOF;var t,e,s,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var n=this._currentRules(),r=0;r<n.length;r++)if((s=this._input.match(this.rules[n[r]]))&&(!e||s[0].length>e[0].length)){if(e=s,i=r,this.options.backtrack_lexer){if(!1!==(t=this.test_match(s,n[r])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,n[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:i(function(){var t=this.next();return t||this.lex()},"lex"),begin:i(function(t){this.conditionStack.push(t)},"begin"),popState:i(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:i(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:i(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:i(function(t){this.begin(t)},"pushState"),stateStackSize:i(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:i(function(t,e,s,i){switch(s){case 0:return this.begin("acc_title"),34;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),36;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:case 12:case 14:case 17:case 20:case 23:case 33:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return this.pushState("shapeData"),e.yytext="",40;case 8:return this.pushState("shapeDataStr"),40;case 9:return this.popState(),40;case 10:const s=/\n\s*/g;return e.yytext=e.yytext.replace(s,"<br/>"),40;case 11:return 40;case 13:this.begin("callbackname");break;case 15:this.popState(),this.begin("callbackargs");break;case 16:return 95;case 18:return 96;case 19:return"MD_STR";case 21:this.begin("md_string");break;case 22:return"STR";case 24:this.pushState("string");break;case 25:return 84;case 26:return 102;case 27:return 85;case 28:return 104;case 29:return 86;case 30:return 87;case 31:return 97;case 32:this.begin("click");break;case 34:return 88;case 35:case 36:case 37:case 38:return t.lex.firstGraph()&&this.begin("dir"),12;case 39:return 27;case 40:return 32;case 41:case 42:case 43:case 44:return 98;case 45:return this.popState(),13;case 46:case 47:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:return this.popState(),14;case 56:return 121;case 57:return 122;case 58:return 123;case 59:return 124;case 60:return 125;case 61:return 78;case 62:return 105;case 63:case 104:return 111;case 64:return 46;case 65:return 60;case 66:case 105:return 44;case 67:return 8;case 68:return 106;case 69:case 103:return 115;case 70:case 73:case 76:return this.popState(),77;case 71:return this.pushState("edgeText"),75;case 72:case 75:case 78:return 119;case 74:return this.pushState("thickEdgeText"),75;case 77:return this.pushState("dottedEdgeText"),75;case 79:return 77;case 80:return this.popState(),53;case 81:case 117:return"TEXT";case 82:return this.pushState("ellipseText"),52;case 83:return this.popState(),55;case 84:return this.pushState("text"),54;case 85:return this.popState(),57;case 86:return this.pushState("text"),56;case 87:return 58;case 88:return this.pushState("text"),67;case 89:return this.popState(),64;case 90:return this.pushState("text"),63;case 91:return this.popState(),49;case 92:return this.pushState("text"),48;case 93:return this.popState(),69;case 94:return this.popState(),71;case 95:return 117;case 96:return this.pushState("trapText"),68;case 97:return this.pushState("trapText"),70;case 98:return 118;case 99:return 67;case 100:return 90;case 101:return"SEP";case 102:return 89;case 106:return 109;case 107:return 114;case 108:return 116;case 109:return this.popState(),62;case 110:return this.pushState("text"),62;case 111:return this.popState(),51;case 112:return this.pushState("text"),50;case 113:return this.popState(),31;case 114:return this.pushState("text"),29;case 115:return this.popState(),66;case 116:return this.pushState("text"),65;case 118:return"QUOTE";case 119:return 9;case 120:return 10;case 121:return 11}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:@\{)/,/^(?:["])/,/^(?:["])/,/^(?:[^\"]+)/,/^(?:[^}^"]+)/,/^(?:\})/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["][`])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:["])/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s])/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:flowchart-elk\b)/,/^(?:swimlane-beta\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:.*direction\s+TD[^\n]*)/,/^(?:[^\s\"]+@(?=[^\{\"]))/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:[^-]|-(?!-)+)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:[^=]|=(?!))/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:[^\.]|\.(?!))/,/^(?:\s*~~[\~]+\s*)/,/^(?:[-/\)][\)])/,/^(?:[^\(\)\[\]\{\}]|!\)+)/,/^(?:\(-)/,/^(?:\]\))/,/^(?:\(\[)/,/^(?:\]\])/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:>)/,/^(?:\)\])/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\(\(\()/,/^(?:[\\(?=\])][\]])/,/^(?:\/(?=\])\])/,/^(?:\/(?!\])|\\(?!\])|[^\\\[\]\(\)\{\}\/]+)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:\*)/,/^(?:#)/,/^(?:&)/,/^(?:([A-Za-z0-9!"\#$%&'*+\.`?\\_\/]|-(?=[^\>\-\.])|(?!))+)/,/^(?:-)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\|)/,/^(?:\))/,/^(?:\()/,/^(?:\])/,/^(?:\[)/,/^(?:(\}))/,/^(?:\{)/,/^(?:[^\[\]\(\)\{\}\|\"]+)/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:[^\S\n\r]+)/,/^(?:$)/],conditions:{shapeDataEndBracket:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},shapeDataStr:{rules:[9,10,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},shapeData:{rules:[8,11,12,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},callbackargs:{rules:[17,18,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},callbackname:{rules:[14,15,16,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},href:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},click:{rules:[21,24,33,34,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},dottedEdgeText:{rules:[21,24,76,78,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},thickEdgeText:{rules:[21,24,73,75,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},edgeText:{rules:[21,24,70,72,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},trapText:{rules:[21,24,79,82,84,86,90,92,93,94,95,96,97,110,112,114,116],inclusive:!1},ellipseText:{rules:[21,24,79,80,81,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},text:{rules:[21,24,79,82,83,84,85,86,89,90,91,92,96,97,109,110,111,112,113,114,115,116,117],inclusive:!1},vertex:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},dir:{rules:[21,24,45,46,47,48,49,50,51,52,53,54,55,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_descr_multiline:{rules:[5,6,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_descr:{rules:[3,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_title:{rules:[1,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},md_string:{rules:[19,20,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},string:{rules:[21,22,23,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},INITIAL:{rules:[0,2,4,7,13,21,24,25,26,27,28,29,30,31,32,35,36,37,38,39,40,41,42,43,44,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,73,74,76,77,79,82,84,86,87,88,90,92,96,97,98,99,100,101,102,103,104,105,106,107,108,110,112,114,116,118,119,120,121],inclusive:!0}}}}();function re(){this.yy={}}return ie.lexer=ne,i(re,"Parser"),re.prototype=ie,ie.Parser=re,new re}();I.parser=I;var R=I,N=Object.assign({},R);N.parse=t=>{const e=t.replace(/}\s*\n/g,"}\n");return R.parse(e)};var G=N,P=i(t=>{const{theme:e,bkgColorArray:s,borderColorArray:n}=t;if(!x(e,n))return"";const r=S(t.look),a=F(s);let u="";for(let e=0;e<_(t.THEME_COLOR_LIMIT,n);e++){const t=n[e%n.length],o=a?`fill: ${s[e%s.length]};`:"",l=`[data-look="${r}"][data-color-id="color-${e}"]`,c=i(t=>`${l}.node ${t}, ${l}.rough-node ${t}`,"collapsedRule"),h=i(t=>`${l}.swimlane.cluster .swimlane-title${t}, ${l}.swimlane.cluster .swimlane-body${t}`,"laneRule");u+=`\n\n ${l}.cluster:not(.swimlane) rect {\n stroke: ${t};\n ${o}\n }\n\n ${l}.cluster:not(.swimlane) path {\n stroke: ${t};\n ${o}\n }\n\n /* Lane, classic and neo. */\n ${l}.swimlane.cluster rect.swimlane-title,\n ${l}.swimlane.cluster rect.swimlane-body {\n stroke: ${t};\n ${o}\n }\n\n /* Lane, handDrawn: roughjs emits the hachure fill first, then the outline. */\n ${h(" path:nth-of-type(2)")} {\n stroke: ${t};\n }\n${a?`\n /* A roughjs fill is drawn as lines, so the lane fill is a stroke here. */\n ${h(" path:first-of-type")} {\n stroke: ${s[e%s.length]};\n }\n`:""}\n ${c(".collapsed-group")},\n ${c(".collapsed-group path")} {\n stroke: ${t};\n ${o}\n }\n\n /* The ellipsis dots and the separator take clusterBorder further down, so without\n these the container is palette-coloured while its own markers are not. */\n ${c(".collapsed-indicator")} {\n fill: ${t};\n }\n\n ${c(".collapsed-separator")} {\n stroke: ${t};\n }\n `}return u},"genColor"),O=i((t,e)=>{const s=$,i=s(t,"r"),n=s(t,"g"),r=s(t,"b");return B(i,n,r,e)},"fade"),M=i(e=>`${P(e)}\n .label {\n font-family: ${e.fontFamily};\n color: ${e.nodeTextColor||e.textColor};\n }\n .cluster-label text {\n fill: ${e.titleColor};\n }\n .cluster-label span {\n color: ${e.titleColor};\n }\n .cluster-label span p {\n background-color: transparent;\n }\n\n .label text,span {\n fill: ${e.nodeTextColor||e.textColor};\n color: ${e.nodeTextColor||e.textColor};\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${e.mainBkg};\n stroke: ${e.nodeBorder};\n stroke-width: ${e.strokeWidth??1}px;\n }\n .rough-node .label text , .node .label text, .image-shape .label, .icon-shape .label {\n text-anchor: middle;\n }\n\n .node .katex path {\n fill: #000;\n stroke: #000;\n stroke-width: 1px;\n }\n\n .rough-node .label,.node .label, .image-shape .label, .icon-shape .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n\n .root .anchor path {\n fill: ${e.lineColor} !important;\n stroke-width: 0;\n stroke: ${e.lineColor};\n }\n\n .arrowheadPath {\n fill: ${e.arrowheadColor};\n }\n\n .edgePaths .path {\n stroke: ${e.lineColor};\n stroke-width: ${e.strokeWidth??2}px;\n }\n\n .flowchart-link {\n stroke: ${e.lineColor};\n fill: none;\n }\n\n .edgeLabel {\n background-color: ${e.edgeLabelBackground};\n p {\n background-color: ${e.edgeLabelBackground};\n }\n rect {\n opacity: 0.5;\n background-color: ${e.edgeLabelBackground};\n fill: ${e.edgeLabelBackground};\n }\n text-align: center;\n }\n\n /* For html labels only */\n .labelBkg {\n background-color: ${O(e.edgeLabelBackground,.5)};\n // background-color:\n }\n\n .cluster rect {\n fill: ${e.clusterBkg};\n stroke: ${e.clusterBorder};\n stroke-width: 1px;\n }\n\n .cluster text {\n fill: ${e.titleColor};\n }\n\n .cluster span {\n color: ${e.titleColor};\n }\n /* .cluster div {\n color: ${e.titleColor};\n } */\n\n /* Collapsed subgraph node (@{ view: collapsed }) */\n .node .collapsed-indicator {\n fill: ${e.clusterBorder};\n stroke: none;\n opacity: 0.6;\n }\n\n .node .collapsed-separator {\n stroke: ${e.clusterBorder};\n stroke-width: 0.75px;\n }\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: ${e.fontFamily};\n font-size: 12px;\n background: ${e.tertiaryColor};\n border: 1px solid ${e.border2};\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n\n .flowchartTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${e.textColor};\n }\n\n rect.text {\n fill: none;\n stroke-width: 0;\n }\n\n .icon-shape, .image-shape {\n background-color: ${e.edgeLabelBackground};\n p {\n background-color: ${e.edgeLabelBackground};\n padding: 2px;\n }\n .label rect {\n opacity: 0.5;\n background-color: ${e.edgeLabelBackground};\n fill: ${e.edgeLabelBackground};\n }\n text-align: center;\n }\n ${t()}\n`,"getStyles"),U=i(({styles:t=M}={})=>({parser:G,get db(){return new w},renderer:L,styles:t,init:i(t=>{t.flowchart||(t.flowchart={}),t.flowchart.arrowMarkerAbsolute=t.arrowMarkerAbsolute,n({flowchart:{arrowMarkerAbsolute:t.arrowMarkerAbsolute}})},"init")}),"createFlowDiagram"),V=U();export{U as c,V as d,M as s};
@@ -1 +1 @@
1
- import{_ as t,d as e,l as i}from"./mermaid.core-DRk6tt5W.js";var o=t((t,o,r,s)=>{t.attr("class",r);const{width:d,height:n,x:c,y:g}=a(t,o);e(t,n,d,s);const w=h(c,g,d,n,o);t.attr("viewBox",w),i.debug(`viewBox configured: ${w} with padding: ${o}`)},"setupViewPortForSVG"),a=t((t,e)=>{const i=t.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:i.width+2*e,height:i.height+2*e,x:i.x,y:i.y}},"calculateDimensionsWithPadding"),h=t((t,e,i,o,a)=>`${t-a} ${e-a} ${i} ${o}`,"createViewBox");export{o as s};
1
+ import{_ as t,d as e,l as i}from"./mermaid.core-VF3HuzPL.js";var o=t((t,o,r,s)=>{t.attr("class",r);const{width:d,height:n,x:c,y:g}=a(t,o);e(t,n,d,s);const w=h(c,g,d,n,o);t.attr("viewBox",w),i.debug(`viewBox configured: ${w} with padding: ${o}`)},"setupViewPortForSVG"),a=t((t,e)=>{const i=t.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:i.width+2*e,height:i.height+2*e,x:i.x,y:i.y}},"calculateDimensionsWithPadding"),h=t((t,e,i,o,a)=>`${t-a} ${e-a} ${i} ${o}`,"createViewBox");export{o as s};
@@ -1 +1 @@
1
- import{_ as e,k as o}from"./mermaid.core-DRk6tt5W.js";var t=e((e,t)=>{let a;"sandbox"===t&&(a=o("#i"+e));return o("sandbox"===t?a.nodes()[0].contentDocument.body:"body").select(`[id="${e}"]`)},"getDiagramElement");export{t as g};
1
+ import{_ as e,k as o}from"./mermaid.core-VF3HuzPL.js";var t=e((e,t)=>{let a;"sandbox"===t&&(a=o("#i"+e));return o("sandbox"===t?a.nodes()[0].contentDocument.body:"body").select(`[id="${e}"]`)},"getDiagramElement");export{t as g};
@@ -1 +1 @@
1
- import{_ as e,l as t,av as n,ao as a,aw as r,ax as s,ay as o,ap as i,an as d,az as c,aA as l,aB as g,aC as u,c as f,O as h,aD as p,aE as w,aF as b,aG as m,u as y}from"./mermaid.core-DRk6tt5W.js";import{G as v}from"./graph-rGqC_56m.js";function L(e,{edgePathsClass:t="edges edgePaths"}={}){const n=e.insert("g").attr("class","root");return{clusters:n.insert("g").attr("class","clusters"),edgePaths:n.insert("g").attr("class",t),edgeLabels:n.insert("g").attr("class","edgeLabels"),nodes:n.insert("g").attr("class","nodes"),rootGroups:n}}async function C(e,t,n){if(t.label){const{shapeSvg:a,bbox:r}=await m(e,void 0===n?t:{...t,width:n});t.labelBBox={width:r.width,height:r.height},a.remove()}else t.labelBBox={width:0,height:0}}async function E(e,t,n){const r=await a(e,t,n),s=r.node()?.getBBox()??{width:0,height:0};return t.width=s.width,t.height=s.height,r}function x(e,t,n){let a=e;const r=new Set;for(;a;){if(a.dir)return a.dir;if(!a.parentId||r.has(a.parentId))break;r.add(a.parentId),a=t.get(a.parentId)}return n}async function N(e,t,n={}){const a=new v({multigraph:!0,compound:!0}),r=[...t.edges],s=f(),o=L(e),{edgeLabels:i,nodes:d}=o,c=new Map,g=new Map(t.nodes.map(e=>[e.id,e])),h=t.direction,p=null!=e.node();await Promise.all(t.nodes.map(async e=>{if(e.isGroup){if(p){const t=n.unwrapGroupLabels&&"markdown"!==e.labelType;await C(d,e,t?Number.POSITIVE_INFINITY:void 0)}a.setNode(e.id,{...e})}else{if(p){const t=await E(d,e,{config:s,dir:x(e,g,h)});c.set(e.id,t)}a.setNode(e.id,{...e})}}));for(const e of r){p&&l(e)&&await u(i,e),a.setEdge(e.start,e.end,{...e},e.id);t.edges.some(t=>t.id===e.id)||t.edges.push(e)}if(globalThis.mermaidCaptureSizes){const{captureNodeSizes:n}=await(import("./sizeCapture-INFHLROL-B0tQoQkY.js"));n(e,t)}return{graph:a,groups:o,nodeElements:c}}e(L,"createLayoutElementGroups"),e(C,"measureGroupLabel"),e(E,"insertMeasuredNode"),e(x,"resolveNodeDir"),e(N,"createGraphWithElements");var I=new Map,D=new Map,k=new Map,S=e(()=>{D.clear(),k.clear(),I.clear()},"clear"),R=e((e,n)=>{const a=D.get(n)||[];return t.trace("In isDescendant",n," ",e," = ",a.includes(e)),a.includes(e)},"isDescendant"),P=e((e,n)=>{const a=D.get(n)||[];return t.info("Descendants of ",n," is ",a),t.info("Edge is ",e),e.v!==n&&e.w!==n&&(a?a.includes(e.v)||R(e.v,n)||R(e.w,n)||a.includes(e.w):(t.debug("Tilt, ",n,",not in descendants"),!1))},"edgeInCluster"),T=e((e,n,a,r)=>{t.debug("Copying children of ",e,"root",r,"data",n.node(e),r);const s=n.children(e)||[];e!==r&&s.push(e),t.debug("Copying (nodes) clusterId",e,"nodes",s),s.forEach(s=>{if(n.children(s).length>0)T(s,n,a,r);else{const o=n.node(s);t.info("cp ",s," to ",r," with parent ",e),a.setNode(s,o),r!==n.parent(s)&&(t.debug("Setting parent",s,n.parent(s)),a.setParent(s,n.parent(s))),e!==r&&s!==e?(t.debug("Setting parent",s,e),a.setParent(s,e)):(t.info("In copy ",e,"root",r,"data",n.node(e),r),t.debug("Not Setting parent for node=",s,"cluster!==rootId",e!==r,"node!==clusterId",s!==e));const i=n.edges(s);t.debug("Copying Edges",i),i.forEach(s=>{t.info("Edge",s);const o=n.edge(s.v,s.w,s.name);t.info("Edge data",o,r);try{P(s,r)?(t.info("Copying as ",s.v,s.w,o,s.name),a.setEdge(s.v,s.w,o,s.name),t.info("newGraph edges ",a.edges(),a.edge(a.edges()[0]))):t.info("Skipping copy of edge ",s.v,"--\x3e",s.w," rootId: ",r," clusterId:",e)}catch(e){t.error(e)}})}t.debug("Removing node",s),n.removeNode(s)})},"copy"),B=e((e,t)=>{const n=t.children(e);let a=[...n];for(const r of n)k.set(r,e),a=[...a,...B(r,t)];return a},"extractDescendants"),G=e((e,t,n)=>{const a=e.edges().filter(e=>e.v===t||e.w===t),r=e.edges().filter(e=>e.v===n||e.w===n),s=a.map(e=>({v:e.v===t?n:e.v,w:e.w===t?t:e.w})),o=r.map(e=>({v:e.v,w:e.w}));return s.filter(e=>o.some(t=>e.v===t.v&&e.w===t.w))},"findCommonEdges"),X=e((e,n,a)=>{const r=n.children(e);if(t.trace("Searching children of id ",e,r),r.length<1)return e;let s;for(const e of r){const t=X(e,n,a),r=G(n,a,t);if(t){if(!(r.length>0))return t;s=t}}return s},"findNonClusterChild"),M=e(e=>I.has(e)&&I.get(e).externalConnections&&I.has(e)?I.get(e).id:e,"getAnchorId"),O=e((e,n)=>{if(!e||n>10)t.debug("Opting out, no graph ");else{t.debug("Opting in, graph "),e.nodes().forEach(function(n){e.children(n).length>0&&(t.debug("Cluster identified",n," Replacement id in edges: ",X(n,e,n)),D.set(n,B(n,e)),I.set(n,{id:X(n,e,n),clusterData:e.node(n)}))}),e.nodes().forEach(function(n){const a=e.children(n),r=e.edges();a.length>0?(t.debug("Cluster identified",n,D),r.forEach(e=>{R(e.v,n)^R(e.w,n)&&(t.debug("Edge: ",e," leaves cluster ",n),t.debug("Descendants of XXX ",n,": ",D.get(n)),I.get(n).externalConnections=!0)})):t.debug("Not a cluster ",n,D)});for(let t of I.keys()){const n=I.get(t).id,a=e.parent(n);a!==t&&I.has(a)&&!I.get(a).externalConnections&&(I.get(t).id=a);const r=e.edges().some(e=>e.v===t);if(n&&I.get(t)?.externalConnections&&r&&j(e,n,t)){const a=z(e,t,e.parent(n));a&&(I.get(t).id=a)}}e.edges().forEach(function(n){const a=e.edge(n);t.debug("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(n)),t.debug("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(e.edge(n)));let r=n.v,s=n.w;if(t.debug("Fix XXX",I,"ids:",n.v,n.w,"Translating: ",I.get(n.v)," --- ",I.get(n.w)),I.get(n.v)||I.get(n.w)){if(t.debug("Fixing and trying - removing XXX",n.v,n.w,n.name),r=M(n.v),s=M(n.w),e.removeEdge(n.v,n.w,n.name),r!==n.v){const t=e.parent(r);I.get(t).externalConnections=!0,a.fromCluster=n.v}if(s!==n.w){const t=e.parent(s);I.get(t).externalConnections=!0,a.toCluster=n.w}t.debug("Fix Replacing with XXX",r,s,n.name),e.setEdge(r,s,a,n.name)}}),F(e,0),t.trace(I)}},"adjustClustersAndEdges"),F=e((e,n)=>{if(n>10)return void t.error("Bailing out");let a=e.nodes(),r=!1;for(const t of a){const n=e.children(t);r=r||n.length>0}if(r){t.debug("Nodes = ",a,n);for(const r of a)if(t.debug("Extracting node",r,I,I.has(r)&&!I.get(r).externalConnections,!e.parent(r),e.node(r),e.children("D")," Depth ",n),I.has(r))if(!I.get(r).externalConnections&&e.children(r)&&e.children(r).length>0){t.debug("Cluster without external connections, without a parent and with children",r,n);let a="TB"===e.graph().rankdir?"LR":"TB";I.get(r)?.clusterData?.dir&&(a=I.get(r).clusterData.dir,t.debug("Fixing dir",I.get(r).clusterData.dir,a));const s=new v({multigraph:!0,compound:!0}).setGraph({rankdir:a,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});T(r,e,s,r),e.setNode(r,{clusterNode:!0,id:r,clusterData:I.get(r).clusterData,label:I.get(r).label,graph:s})}else t.debug("Cluster ** ",r," **not meeting the criteria !externalConnections:",!I.get(r).externalConnections," no parent: ",!e.parent(r)," children ",e.children(r)&&e.children(r).length>0,e.children("D"),n),t.debug(I);else t.debug("Not a cluster",r,n);a=e.nodes(),t.debug("New list of nodes",a);for(const r of a){const a=e.node(r);t.debug(" Now next level",r,a),a?.clusterNode&&F(a.graph,n+1)}}else t.debug("Done, no node has children",e.nodes())},"extractor"),_=e((e,t)=>{if(0===t.length)return[];let n=Object.assign([],t);return t.forEach(t=>{const a=e.children(t),r=_(e,a);n=[...n,...r]}),n},"sorter"),A=e(e=>_(e,e.children()),"sortNodesByHierarchy"),j=e((e,t,n)=>{let a=e.parent(t);for(;a&&a!==n;){const t=I.get(a);if(t&&!t.externalConnections)return!0;a=e.parent(a)}return!1},"isNodeInExtractableCluster"),z=e((e,t,n)=>{const a=e.children(t)??[];for(const r of a){if(r===n||R(r,n))continue;const a=X(r,e,t);if(a&&!j(e,a,t))return a}return null},"findSafeAnchorNode");function $({prepareLayout:t,measureLayout:a,runLayoutCore:r,paintLayout:s,afterPaint:o,paintOptions:i}){const d=a??J;return e(async function(e,a,c,l){const g=a.select("g");(c?.insertMarkers??n)(g,e.markers,e.type,e.diagramId),H();const u={element:g,helpers:c,options:l};u.preparedLayout=await(t?.(e,u));const f=await d(e,u),h=await r(e,u),p={...u,measure:f};s?await s(e,p,h):await W(e,p,i),await(o?.(e,p,h))},"render")}function H(){r(),s(),o(),S()}async function J(e,{element:t},n){return await N(t,e,n)}async function W(e,t,n={}){const{measure:a}=t,{groups:r}=a;for(const a of n.getNodes?.(e,t)??e.nodes)n.skipNode?.(a,t)||await V(r,a,t,n);const s=Z(e.nodes);for(const a of e.edges)q(a,n)||await K(r,a,s,e,n,t)}async function V(e,t,n,a){t.clusterNode?i(t):Y(t,n,a)?await d(e.clusters,t):i(t)}function Y(e,t,n){return!0===e.isGroup&&(n.isCluster?.(e,t)??!0)}function Z(e){const t=new Map;for(const n of e)n?.id&&t.set(n.id,n);return t}function q(e,t){return e.isLayoutOnly||Boolean(t.skipEdge?.(e))}async function K(e,t,n,a,r,s){const o=c(e.edgePaths,{...t},r.clusterDb??new Map,a.type,Q(t.start,t,n,s,r),Q(t.end,t,n,s,r),a.diagramId,U(t,r),a.layoutAlgorithm);l(t)&&(g.has(t.id)||await u(e.edgeLabels,t),ee(t,o))}function Q(e,t,n,a,r){return r.getEdgeNode?.(e,t,a)??(e?n.get(e)??{}:{})}function U(e,t){return"function"==typeof t.skipIntersect?t.skipIntersect(e):t.skipIntersect??!1}function ee(e,t){const n=t?.updatedPath??t?.originalPath,a=h(),{subGraphTitleTotalMargin:r}=p({flowchart:a.flowchart??{}});if(e.label){const n=g.get(e.id),{x:a,y:s}=w(e,t);n.attr("transform",`translate(${a}, ${s+r/2})`)}for(const[t,a]of[["startLeft",e.startLabelLeft],["startRight",e.startLabelRight],["endLeft",e.endLabelLeft],["endRight",e.endLabelRight]])if(a){const{x:a,y:r}=ne(e,t,n);b.get(e.id)[t].attr("transform",`translate(${a}, ${r})`)}}e($,"createCommonLayoutRenderer"),e(H,"clearLayoutRenderState"),e(J,"defaultMeasureLayout"),e(W,"paintLayoutData"),e(V,"paintLayoutNode"),e(Y,"shouldPaintAsCluster"),e(Z,"buildNodeLookup"),e(q,"shouldSkipPaintEdge"),e(K,"paintLayoutEdge"),e(Q,"getRenderedNode"),e(U,"shouldSkipIntersect"),e(ee,"positionRenderedEdgeLabel");var te={startLeft:"start_left",startRight:"start_right",endLeft:"end_left",endRight:"end_right"};function ne(e,t,n){const a=e.terminalLabelCenters?.[t];if(a)return{...a};if(!n)return{x:e.x,y:e.y};const r=t.startsWith("start")?e.arrowTypeStart:e.arrowTypeEnd;return y.calcTerminalLabelPosition(r?10:0,te[t],n)}e(ne,"terminalLabelTranslate");export{O as a,L as b,$ as c,J as d,I as e,X as f,E as i,A as s};
1
+ import{_ as e,l as t,av as n,ao as a,aw as r,ax as s,ay as o,ap as i,an as d,az as c,aA as l,aB as g,aC as u,c as f,O as h,aD as p,aE as w,aF as b,aG as m,u as y}from"./mermaid.core-VF3HuzPL.js";import{G as v}from"./graph-rGqC_56m.js";function L(e,{edgePathsClass:t="edges edgePaths"}={}){const n=e.insert("g").attr("class","root");return{clusters:n.insert("g").attr("class","clusters"),edgePaths:n.insert("g").attr("class",t),edgeLabels:n.insert("g").attr("class","edgeLabels"),nodes:n.insert("g").attr("class","nodes"),rootGroups:n}}async function C(e,t,n){if(t.label){const{shapeSvg:a,bbox:r}=await m(e,void 0===n?t:{...t,width:n});t.labelBBox={width:r.width,height:r.height},a.remove()}else t.labelBBox={width:0,height:0}}async function E(e,t,n){const r=await a(e,t,n),s=r.node()?.getBBox()??{width:0,height:0};return t.width=s.width,t.height=s.height,r}function x(e,t,n){let a=e;const r=new Set;for(;a;){if(a.dir)return a.dir;if(!a.parentId||r.has(a.parentId))break;r.add(a.parentId),a=t.get(a.parentId)}return n}async function N(e,t,n={}){const a=new v({multigraph:!0,compound:!0}),r=[...t.edges],s=f(),o=L(e),{edgeLabels:i,nodes:d}=o,c=new Map,g=new Map(t.nodes.map(e=>[e.id,e])),h=t.direction,p=null!=e.node();await Promise.all(t.nodes.map(async e=>{if(e.isGroup){if(p){const t=n.unwrapGroupLabels&&"markdown"!==e.labelType;await C(d,e,t?Number.POSITIVE_INFINITY:void 0)}a.setNode(e.id,{...e})}else{if(p){const t=await E(d,e,{config:s,dir:x(e,g,h)});c.set(e.id,t)}a.setNode(e.id,{...e})}}));for(const e of r){p&&l(e)&&await u(i,e),a.setEdge(e.start,e.end,{...e},e.id);t.edges.some(t=>t.id===e.id)||t.edges.push(e)}if(globalThis.mermaidCaptureSizes){const{captureNodeSizes:n}=await(import("./sizeCapture-INFHLROL--wG_Awhp.js"));n(e,t)}return{graph:a,groups:o,nodeElements:c}}e(L,"createLayoutElementGroups"),e(C,"measureGroupLabel"),e(E,"insertMeasuredNode"),e(x,"resolveNodeDir"),e(N,"createGraphWithElements");var I=new Map,D=new Map,k=new Map,S=e(()=>{D.clear(),k.clear(),I.clear()},"clear"),R=e((e,n)=>{const a=D.get(n)||[];return t.trace("In isDescendant",n," ",e," = ",a.includes(e)),a.includes(e)},"isDescendant"),P=e((e,n)=>{const a=D.get(n)||[];return t.info("Descendants of ",n," is ",a),t.info("Edge is ",e),e.v!==n&&e.w!==n&&(a?a.includes(e.v)||R(e.v,n)||R(e.w,n)||a.includes(e.w):(t.debug("Tilt, ",n,",not in descendants"),!1))},"edgeInCluster"),T=e((e,n,a,r)=>{t.debug("Copying children of ",e,"root",r,"data",n.node(e),r);const s=n.children(e)||[];e!==r&&s.push(e),t.debug("Copying (nodes) clusterId",e,"nodes",s),s.forEach(s=>{if(n.children(s).length>0)T(s,n,a,r);else{const o=n.node(s);t.info("cp ",s," to ",r," with parent ",e),a.setNode(s,o),r!==n.parent(s)&&(t.debug("Setting parent",s,n.parent(s)),a.setParent(s,n.parent(s))),e!==r&&s!==e?(t.debug("Setting parent",s,e),a.setParent(s,e)):(t.info("In copy ",e,"root",r,"data",n.node(e),r),t.debug("Not Setting parent for node=",s,"cluster!==rootId",e!==r,"node!==clusterId",s!==e));const i=n.edges(s);t.debug("Copying Edges",i),i.forEach(s=>{t.info("Edge",s);const o=n.edge(s.v,s.w,s.name);t.info("Edge data",o,r);try{P(s,r)?(t.info("Copying as ",s.v,s.w,o,s.name),a.setEdge(s.v,s.w,o,s.name),t.info("newGraph edges ",a.edges(),a.edge(a.edges()[0]))):t.info("Skipping copy of edge ",s.v,"--\x3e",s.w," rootId: ",r," clusterId:",e)}catch(e){t.error(e)}})}t.debug("Removing node",s),n.removeNode(s)})},"copy"),B=e((e,t)=>{const n=t.children(e);let a=[...n];for(const r of n)k.set(r,e),a=[...a,...B(r,t)];return a},"extractDescendants"),G=e((e,t,n)=>{const a=e.edges().filter(e=>e.v===t||e.w===t),r=e.edges().filter(e=>e.v===n||e.w===n),s=a.map(e=>({v:e.v===t?n:e.v,w:e.w===t?t:e.w})),o=r.map(e=>({v:e.v,w:e.w}));return s.filter(e=>o.some(t=>e.v===t.v&&e.w===t.w))},"findCommonEdges"),X=e((e,n,a)=>{const r=n.children(e);if(t.trace("Searching children of id ",e,r),r.length<1)return e;let s;for(const e of r){const t=X(e,n,a),r=G(n,a,t);if(t){if(!(r.length>0))return t;s=t}}return s},"findNonClusterChild"),M=e(e=>I.has(e)&&I.get(e).externalConnections&&I.has(e)?I.get(e).id:e,"getAnchorId"),O=e((e,n)=>{if(!e||n>10)t.debug("Opting out, no graph ");else{t.debug("Opting in, graph "),e.nodes().forEach(function(n){e.children(n).length>0&&(t.debug("Cluster identified",n," Replacement id in edges: ",X(n,e,n)),D.set(n,B(n,e)),I.set(n,{id:X(n,e,n),clusterData:e.node(n)}))}),e.nodes().forEach(function(n){const a=e.children(n),r=e.edges();a.length>0?(t.debug("Cluster identified",n,D),r.forEach(e=>{R(e.v,n)^R(e.w,n)&&(t.debug("Edge: ",e," leaves cluster ",n),t.debug("Descendants of XXX ",n,": ",D.get(n)),I.get(n).externalConnections=!0)})):t.debug("Not a cluster ",n,D)});for(let t of I.keys()){const n=I.get(t).id,a=e.parent(n);a!==t&&I.has(a)&&!I.get(a).externalConnections&&(I.get(t).id=a);const r=e.edges().some(e=>e.v===t);if(n&&I.get(t)?.externalConnections&&r&&j(e,n,t)){const a=z(e,t,e.parent(n));a&&(I.get(t).id=a)}}e.edges().forEach(function(n){const a=e.edge(n);t.debug("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(n)),t.debug("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(e.edge(n)));let r=n.v,s=n.w;if(t.debug("Fix XXX",I,"ids:",n.v,n.w,"Translating: ",I.get(n.v)," --- ",I.get(n.w)),I.get(n.v)||I.get(n.w)){if(t.debug("Fixing and trying - removing XXX",n.v,n.w,n.name),r=M(n.v),s=M(n.w),e.removeEdge(n.v,n.w,n.name),r!==n.v){const t=e.parent(r);I.get(t).externalConnections=!0,a.fromCluster=n.v}if(s!==n.w){const t=e.parent(s);I.get(t).externalConnections=!0,a.toCluster=n.w}t.debug("Fix Replacing with XXX",r,s,n.name),e.setEdge(r,s,a,n.name)}}),F(e,0),t.trace(I)}},"adjustClustersAndEdges"),F=e((e,n)=>{if(n>10)return void t.error("Bailing out");let a=e.nodes(),r=!1;for(const t of a){const n=e.children(t);r=r||n.length>0}if(r){t.debug("Nodes = ",a,n);for(const r of a)if(t.debug("Extracting node",r,I,I.has(r)&&!I.get(r).externalConnections,!e.parent(r),e.node(r),e.children("D")," Depth ",n),I.has(r))if(!I.get(r).externalConnections&&e.children(r)&&e.children(r).length>0){t.debug("Cluster without external connections, without a parent and with children",r,n);let a="TB"===e.graph().rankdir?"LR":"TB";I.get(r)?.clusterData?.dir&&(a=I.get(r).clusterData.dir,t.debug("Fixing dir",I.get(r).clusterData.dir,a));const s=new v({multigraph:!0,compound:!0}).setGraph({rankdir:a,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});T(r,e,s,r),e.setNode(r,{clusterNode:!0,id:r,clusterData:I.get(r).clusterData,label:I.get(r).label,graph:s})}else t.debug("Cluster ** ",r," **not meeting the criteria !externalConnections:",!I.get(r).externalConnections," no parent: ",!e.parent(r)," children ",e.children(r)&&e.children(r).length>0,e.children("D"),n),t.debug(I);else t.debug("Not a cluster",r,n);a=e.nodes(),t.debug("New list of nodes",a);for(const r of a){const a=e.node(r);t.debug(" Now next level",r,a),a?.clusterNode&&F(a.graph,n+1)}}else t.debug("Done, no node has children",e.nodes())},"extractor"),_=e((e,t)=>{if(0===t.length)return[];let n=Object.assign([],t);return t.forEach(t=>{const a=e.children(t),r=_(e,a);n=[...n,...r]}),n},"sorter"),A=e(e=>_(e,e.children()),"sortNodesByHierarchy"),j=e((e,t,n)=>{let a=e.parent(t);for(;a&&a!==n;){const t=I.get(a);if(t&&!t.externalConnections)return!0;a=e.parent(a)}return!1},"isNodeInExtractableCluster"),z=e((e,t,n)=>{const a=e.children(t)??[];for(const r of a){if(r===n||R(r,n))continue;const a=X(r,e,t);if(a&&!j(e,a,t))return a}return null},"findSafeAnchorNode");function $({prepareLayout:t,measureLayout:a,runLayoutCore:r,paintLayout:s,afterPaint:o,paintOptions:i}){const d=a??J;return e(async function(e,a,c,l){const g=a.select("g");(c?.insertMarkers??n)(g,e.markers,e.type,e.diagramId),H();const u={element:g,helpers:c,options:l};u.preparedLayout=await(t?.(e,u));const f=await d(e,u),h=await r(e,u),p={...u,measure:f};s?await s(e,p,h):await W(e,p,i),await(o?.(e,p,h))},"render")}function H(){r(),s(),o(),S()}async function J(e,{element:t},n){return await N(t,e,n)}async function W(e,t,n={}){const{measure:a}=t,{groups:r}=a;for(const a of n.getNodes?.(e,t)??e.nodes)n.skipNode?.(a,t)||await V(r,a,t,n);const s=Z(e.nodes);for(const a of e.edges)q(a,n)||await K(r,a,s,e,n,t)}async function V(e,t,n,a){t.clusterNode?i(t):Y(t,n,a)?await d(e.clusters,t):i(t)}function Y(e,t,n){return!0===e.isGroup&&(n.isCluster?.(e,t)??!0)}function Z(e){const t=new Map;for(const n of e)n?.id&&t.set(n.id,n);return t}function q(e,t){return e.isLayoutOnly||Boolean(t.skipEdge?.(e))}async function K(e,t,n,a,r,s){const o=c(e.edgePaths,{...t},r.clusterDb??new Map,a.type,Q(t.start,t,n,s,r),Q(t.end,t,n,s,r),a.diagramId,U(t,r),a.layoutAlgorithm);l(t)&&(g.has(t.id)||await u(e.edgeLabels,t),ee(t,o))}function Q(e,t,n,a,r){return r.getEdgeNode?.(e,t,a)??(e?n.get(e)??{}:{})}function U(e,t){return"function"==typeof t.skipIntersect?t.skipIntersect(e):t.skipIntersect??!1}function ee(e,t){const n=t?.updatedPath??t?.originalPath,a=h(),{subGraphTitleTotalMargin:r}=p({flowchart:a.flowchart??{}});if(e.label){const n=g.get(e.id),{x:a,y:s}=w(e,t);n.attr("transform",`translate(${a}, ${s+r/2})`)}for(const[t,a]of[["startLeft",e.startLabelLeft],["startRight",e.startLabelRight],["endLeft",e.endLabelLeft],["endRight",e.endLabelRight]])if(a){const{x:a,y:r}=ne(e,t,n);b.get(e.id)[t].attr("transform",`translate(${a}, ${r})`)}}e($,"createCommonLayoutRenderer"),e(H,"clearLayoutRenderState"),e(J,"defaultMeasureLayout"),e(W,"paintLayoutData"),e(V,"paintLayoutNode"),e(Y,"shouldPaintAsCluster"),e(Z,"buildNodeLookup"),e(q,"shouldSkipPaintEdge"),e(K,"paintLayoutEdge"),e(Q,"getRenderedNode"),e(U,"shouldSkipIntersect"),e(ee,"positionRenderedEdgeLabel");var te={startLeft:"start_left",startRight:"start_right",endLeft:"end_left",endRight:"end_right"};function ne(e,t,n){const a=e.terminalLabelCenters?.[t];if(a)return{...a};if(!n)return{x:e.x,y:e.y};const r=t.startsWith("start")?e.arrowTypeStart:e.arrowTypeEnd;return y.calcTerminalLabelPosition(r?10:0,te[t],n)}e(ne,"terminalLabelTranslate");export{O as a,L as b,$ as c,J as d,I as e,X as f,E as i,A as s};
@@ -0,0 +1 @@
1
+ import{g as t}from"./chunk-5VM5RSS4-D3PGx3gp.js";import{g as e}from"./chunk-XXDRQBXY-DLLBlZjr.js";import{s}from"./chunk-VQ5W62QI-mHHsR0s0.js";import{_ as i,l as n,c as a,r,t as u,u as l,k as o,B as c,b as h,a as p,s as d,g as A,v as m,x as y,m as g,C as b,A as C,E as k,F as E,G as f,H as T,j as F,af as D}from"./mermaid.core-VF3HuzPL.js";import{c as B}from"./chunk-55XCU76K-BN8xVJCh.js";import"./index-38k9tHSo.js";import"react/jsx-runtime";import"react";import"./enums.js";import"./commons-BLDufAOm.js";import"./settings-6x4qNkNZ.js";import"./constants.js";import"./LoaderLayer-Csc8unUJ.js";import"./websocket-D79arGLt.js";import"./index-3QSNRp1k.js";import"motion/react";import"react-dom";import"swr";import"@ably/spaces";import"@ably/spaces/react";import"ably";import"ably/liveobjects";import"@ably/spaces/dist/mjs/react";import"./string-DPJhNSkw.js";var _=function(){var t=i(function(t,e,s,i){for(s=s||{},i=t.length;i--;s[t[i]]=e);return s},"o"),e=[1,18],s=[1,19],n=[1,20],a=[1,41],r=[1,26],u=[1,42],l=[1,24],o=[1,25],c=[1,32],h=[1,33],p=[1,34],d=[1,45],A=[1,35],m=[1,36],y=[1,37],g=[1,38],b=[1,27],C=[1,28],k=[1,29],E=[1,30],f=[1,31],T=[1,44],F=[1,46],D=[1,43],B=[1,47],_=[1,9],$=[1,8,9],S=[1,58],N=[1,59],L=[1,60],x=[1,61],I=[1,62],v=[1,63],O=[1,64],w=[1,8,9,41],R=[1,77],M=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],P=[1,8,9,12,13,18,20,22,39,41,44,46,47,60,68,69,70,71,72,73,74,79,81,86,100,102,103],G=[13,60,86,100,102,103],U=[13,60,73,74,86,100,102,103],j=[13,60,68,69,70,71,72,86,100,102,103],z=[1,103],K=[1,121],Y=[1,117],Q=[1,113],W=[1,119],X=[1,114],H=[1,115],q=[1,116],V=[1,118],J=[1,120],Z=[22,50,60,61,82,86,87,88,89,90],tt=[1,128],et=[12,39],st=[1,8,9,39,41,44,46],it=[1,8,9,22],nt=[1,153],at=[1,8,9,61],rt=[1,8,9,22,50,60,61,82,86,87,88,89,90],ut={trace:i(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,ANNOTATION_START:46,ANNOTATION_END:47,CLASS:48,emptyBody:49,SPACE:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"ANNOTATION_START",47:"ANNOTATION_END",48:"CLASS",50:"SPACE",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[38,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[24,4],[24,7],[24,6],[43,2],[43,3],[49,0],[49,2],[49,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:i(function(t,e,s,i,n,a,r){var u=a.length-1;switch(n){case 8:this.$=a[u-1];break;case 9:case 10:case 13:case 15:case 46:this.$=a[u];break;case 11:case 14:this.$=a[u-2]+"."+a[u];break;case 12:case 16:case 110:this.$=a[u-1]+a[u];break;case 17:case 18:this.$=a[u-1]+"~"+a[u]+"~";break;case 19:i.addRelation(a[u]);break;case 20:a[u-1].title=i.cleanupLabel(a[u]),i.addRelation(a[u-1]);break;case 31:this.$=a[u].trim(),i.setAccTitle(this.$);break;case 32:case 33:this.$=a[u].trim(),i.setAccDescription(this.$);break;case 34:i.addClassesToNamespace(a[u-3],a[u-1][0],a[u-1][1]),i.popNamespace();break;case 35:i.addClassesToNamespace(a[u-4],a[u-1][0],a[u-1][1]),i.popNamespace();break;case 36:this.$=i.addNamespace(a[u]);break;case 37:this.$=i.addNamespace(a[u-1],a[u]);break;case 38:this.$=[[a[u]],[]];break;case 39:this.$=[[a[u-1]],[]];break;case 40:a[u][0].unshift(a[u-2]),this.$=a[u];break;case 41:this.$=[[],[a[u]]];break;case 42:this.$=[[],[a[u-1]]];break;case 43:a[u][1].unshift(a[u-2]),this.$=a[u];break;case 44:case 45:this.$=[[],[]];break;case 48:i.setCssClass(a[u-2],a[u]);break;case 49:i.addMembers(a[u-3],a[u-1]);break;case 51:i.setCssClass(a[u-5],a[u-3]),i.addMembers(a[u-5],a[u-1]);break;case 52:i.addAnnotation(a[u-3],a[u-1]);break;case 53:i.addAnnotation(a[u-6],a[u-4]),i.addMembers(a[u-6],a[u-1]);break;case 54:i.addAnnotation(a[u-5],a[u-3]);break;case 55:this.$=a[u],i.addClass(a[u]);break;case 56:this.$=a[u-1],i.addClass(a[u-1]),i.setClassLabel(a[u-1],a[u]);break;case 60:i.addAnnotation(a[u],a[u-2]);break;case 61:case 74:case 107:this.$=[a[u]];break;case 62:a[u].push(a[u-1]),this.$=a[u];break;case 63:case 65:case 66:break;case 64:i.addMember(a[u-1],i.cleanupLabel(a[u]));break;case 67:this.$={id1:a[u-2],id2:a[u],relation:a[u-1],relationTitle1:"none",relationTitle2:"none"};break;case 68:this.$={id1:a[u-3],id2:a[u],relation:a[u-1],relationTitle1:a[u-2],relationTitle2:"none"};break;case 69:this.$={id1:a[u-3],id2:a[u],relation:a[u-2],relationTitle1:"none",relationTitle2:a[u-1]};break;case 70:this.$={id1:a[u-4],id2:a[u],relation:a[u-2],relationTitle1:a[u-3],relationTitle2:a[u-1]};break;case 71:this.$=i.addNote(a[u],a[u-1]);break;case 72:this.$=i.addNote(a[u]);break;case 73:this.$=a[u-2],i.defineClass(a[u-1],a[u]);break;case 75:this.$=a[u-2].concat([a[u]]);break;case 76:i.setDirection("TB");break;case 77:i.setDirection("BT");break;case 78:i.setDirection("RL");break;case 79:i.setDirection("LR");break;case 80:this.$={type1:a[u-2],type2:a[u],lineType:a[u-1]};break;case 81:this.$={type1:"none",type2:a[u],lineType:a[u-1]};break;case 82:this.$={type1:a[u-1],type2:"none",lineType:a[u]};break;case 83:this.$={type1:"none",type2:"none",lineType:a[u]};break;case 84:this.$=i.relationType.AGGREGATION;break;case 85:this.$=i.relationType.EXTENSION;break;case 86:this.$=i.relationType.COMPOSITION;break;case 87:this.$=i.relationType.DEPENDENCY;break;case 88:this.$=i.relationType.LOLLIPOP;break;case 89:this.$=i.lineType.LINE;break;case 90:this.$=i.lineType.DOTTED_LINE;break;case 91:case 97:this.$=a[u-2],i.setClickEvent(a[u-1],a[u]);break;case 92:case 98:this.$=a[u-3],i.setClickEvent(a[u-2],a[u-1]),i.setTooltip(a[u-2],a[u]);break;case 93:this.$=a[u-2],i.setLink(a[u-1],a[u]);break;case 94:this.$=a[u-3],i.setLink(a[u-2],a[u-1],a[u]);break;case 95:this.$=a[u-3],i.setLink(a[u-2],a[u-1]),i.setTooltip(a[u-2],a[u]);break;case 96:this.$=a[u-4],i.setLink(a[u-3],a[u-2],a[u]),i.setTooltip(a[u-3],a[u-1]);break;case 99:this.$=a[u-3],i.setClickEvent(a[u-2],a[u-1],a[u]);break;case 100:this.$=a[u-4],i.setClickEvent(a[u-3],a[u-2],a[u-1]),i.setTooltip(a[u-3],a[u]);break;case 101:this.$=a[u-3],i.setLink(a[u-2],a[u]);break;case 102:this.$=a[u-4],i.setLink(a[u-3],a[u-1],a[u]);break;case 103:this.$=a[u-4],i.setLink(a[u-3],a[u-1]),i.setTooltip(a[u-3],a[u]);break;case 104:this.$=a[u-5],i.setLink(a[u-4],a[u-2],a[u]),i.setTooltip(a[u-4],a[u-1]);break;case 105:this.$=a[u-2],i.setCssStyle(a[u-1],a[u]);break;case 106:i.setCssClass(a[u-1],a[u]);break;case 108:a[u-2].push(a[u]),this.$=a[u-2]}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:e,35:s,37:n,38:22,42:a,43:23,46:r,48:u,51:l,52:o,54:c,56:h,57:p,60:d,62:A,63:m,64:y,65:g,75:b,76:C,78:k,82:E,83:f,86:T,100:F,102:D,103:B},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},t(_,[2,5],{8:[1,48]}),{8:[1,49]},t($,[2,19],{22:[1,50]}),t($,[2,21]),t($,[2,22]),t($,[2,23]),t($,[2,24]),t($,[2,25]),t($,[2,26]),t($,[2,27]),t($,[2,28]),t($,[2,29]),t($,[2,30]),{34:[1,51]},{36:[1,52]},t($,[2,33]),t($,[2,63],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:S,69:N,70:L,71:x,72:I,73:v,74:O}),{39:[1,65]},t(w,[2,47],{39:[1,67],44:[1,66],46:[1,68]}),t($,[2,65]),t($,[2,66]),{16:69,60:d,86:T,100:F,102:D},{16:39,17:40,19:70,60:d,86:T,100:F,102:D,103:B},{16:39,17:40,19:71,60:d,86:T,100:F,102:D,103:B},{16:39,17:40,19:72,60:d,86:T,100:F,102:D,103:B},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:d,86:T,100:F,102:D,103:B},{13:R,55:76},{58:78,60:[1,79]},t($,[2,76]),t($,[2,77]),t($,[2,78]),t($,[2,79]),t(M,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:d,86:T,100:F,102:D,103:B}),t(M,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:d,86:T,100:F,102:D,103:B},{16:39,17:40,19:87,60:d,86:T,100:F,102:D,103:B},t(P,[2,133]),t(P,[2,134]),t(P,[2,135]),t(P,[2,136]),t([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,137]),t(_,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:88,33:e,35:s,37:n,42:a,46:r,48:u,51:l,52:o,54:c,56:h,57:p,60:d,62:A,63:m,64:y,65:g,75:b,76:C,78:k,82:E,83:f,86:T,100:F,102:D,103:B}),{5:89,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:e,35:s,37:n,38:22,42:a,43:23,46:r,48:u,51:l,52:o,54:c,56:h,57:p,60:d,62:A,63:m,64:y,65:g,75:b,76:C,78:k,82:E,83:f,86:T,100:F,102:D,103:B},t($,[2,20]),t($,[2,31]),t($,[2,32]),{13:[1,91],16:39,17:40,19:90,60:d,86:T,100:F,102:D,103:B},{53:92,66:56,67:57,68:S,69:N,70:L,71:x,72:I,73:v,74:O},t($,[2,64]),{67:93,73:v,74:O},t(G,[2,83],{66:94,68:S,69:N,70:L,71:x,72:I}),t(U,[2,84]),t(U,[2,85]),t(U,[2,86]),t(U,[2,87]),t(U,[2,88]),t(j,[2,89]),t(j,[2,90]),{8:[1,96],23:99,24:97,30:98,38:22,40:95,42:a,43:23,48:u,54:c,56:h},{16:100,60:d,86:T,100:F,102:D},{41:[1,102],45:101,51:z},{16:104,60:d,86:T,100:F,102:D},{47:[1,105]},{13:[1,106]},{13:[1,107]},{79:[1,108],81:[1,109]},{22:K,50:Y,59:110,60:Q,82:W,84:111,85:112,86:X,87:H,88:q,89:V,90:J},{60:[1,122]},{13:R,55:123},t(w,[2,72]),t(w,[2,138]),{22:K,50:Y,59:124,60:Q,61:[1,125],82:W,84:111,85:112,86:X,87:H,88:q,89:V,90:J},t(Z,[2,74]),{16:39,17:40,19:126,60:d,86:T,100:F,102:D,103:B},t(M,[2,16]),t(M,[2,17]),t(M,[2,18]),{11:127,12:tt,39:[2,36]},t(et,[2,9],{16:85,17:86,15:130,18:[1,129],60:d,86:T,100:F,102:D,103:B}),t(et,[2,10]),t(st,[2,55],{11:131,12:tt}),t(_,[2,7]),{9:[1,132]},t(it,[2,67]),{16:39,17:40,19:133,60:d,86:T,100:F,102:D,103:B},{13:[1,135],16:39,17:40,19:134,60:d,86:T,100:F,102:D,103:B},t(G,[2,82],{66:136,68:S,69:N,70:L,71:x,72:I}),t(G,[2,81]),{41:[1,137]},{23:99,24:97,30:98,38:22,40:138,42:a,43:23,48:u,54:c,56:h},{8:[1,139],41:[2,38]},{8:[1,140],41:[2,41]},{8:[1,141],41:[2,44]},t(w,[2,48],{39:[1,142]}),{41:[1,143]},t(w,[2,50]),{41:[2,61],45:144,51:z},{47:[1,145]},{16:39,17:40,19:146,60:d,86:T,100:F,102:D,103:B},t($,[2,91],{13:[1,147]}),t($,[2,93],{13:[1,149],77:[1,148]}),t($,[2,97],{13:[1,150],80:[1,151]}),{13:[1,152]},t($,[2,105],{61:nt}),t(at,[2,107],{85:154,22:K,50:Y,60:Q,82:W,86:X,87:H,88:q,89:V,90:J}),t(rt,[2,109]),t(rt,[2,111]),t(rt,[2,112]),t(rt,[2,113]),t(rt,[2,114]),t(rt,[2,115]),t(rt,[2,116]),t(rt,[2,117]),t(rt,[2,118]),t(rt,[2,119]),t($,[2,106]),t(w,[2,71]),t($,[2,73],{61:nt}),{60:[1,155]},t(M,[2,14]),{39:[2,37]},{13:[1,156]},{15:157,16:85,17:86,60:d,86:T,100:F,102:D,103:B},t(et,[2,12]),t(st,[2,56]),{1:[2,4]},t(it,[2,69]),t(it,[2,68]),{16:39,17:40,19:158,60:d,86:T,100:F,102:D,103:B},t(G,[2,80]),t(w,[2,34]),{41:[1,159]},{23:99,24:97,30:98,38:22,40:160,41:[2,39],42:a,43:23,48:u,54:c,56:h},{23:99,24:97,30:98,38:22,40:161,41:[2,42],42:a,43:23,48:u,54:c,56:h},{23:99,24:97,30:98,38:22,40:162,41:[2,45],42:a,43:23,48:u,54:c,56:h},{45:163,51:z},t(w,[2,49]),{41:[2,62]},t(w,[2,52],{39:[1,164]}),t($,[2,60]),t($,[2,92]),t($,[2,94]),t($,[2,95],{77:[1,165]}),t($,[2,98]),t($,[2,99],{13:[1,166]}),t($,[2,101],{13:[1,168],77:[1,167]}),{22:K,50:Y,60:Q,82:W,84:169,85:112,86:X,87:H,88:q,89:V,90:J},t(rt,[2,110]),t(Z,[2,75]),{14:[1,170]},t(et,[2,11]),t(it,[2,70]),t(w,[2,35]),{41:[2,40]},{41:[2,43]},{41:[2,46]},{41:[1,171]},{41:[1,173],45:172,51:z},t($,[2,96]),t($,[2,100]),t($,[2,102]),t($,[2,103],{77:[1,174]}),t(at,[2,108],{85:154,22:K,50:Y,60:Q,82:W,86:X,87:H,88:q,89:V,90:J}),t(st,[2,8]),t(w,[2,51]),{41:[1,175]},t(w,[2,54]),t($,[2,104]),t(w,[2,53])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],127:[2,37],132:[2,4],144:[2,62],160:[2,40],161:[2,43],162:[2,46]},parseError:i(function(t,e){if(!e.recoverable){var s=new Error(t);throw s.hash=e,s}this.trace(t)},"parseError"),parse:i(function(t){var e=this,s=[0],n=[],a=[null],r=[],u=this.table,l="",o=0,c=0,h=r.slice.call(arguments,1),p=Object.create(this.lexer),d={yy:{}};for(var A in this.yy)Object.prototype.hasOwnProperty.call(this.yy,A)&&(d.yy[A]=this.yy[A]);p.setInput(t,d.yy),d.yy.lexer=p,d.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var m=p.yylloc;r.push(m);var y=p.options&&p.options.ranges;function g(){var t;return"number"!=typeof(t=n.pop()||p.lex()||1)&&(t instanceof Array&&(t=(n=t).pop()),t=e.symbols_[t]||t),t}"function"==typeof d.yy.parseError?this.parseError=d.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,i(function(t){s.length=s.length-2*t,a.length=a.length-t,r.length=r.length-t},"popStack"),i(g,"lex");for(var b,C,k,E,f,T,F,D,B={};;){if(C=s[s.length-1],this.defaultActions[C]?k=this.defaultActions[C]:(null==b&&(b=g()),k=u[C]&&u[C][b]),void 0===k||!k.length||!k[0]){var _="";for(f in D=[],u[C])this.terminals_[f]&&f>2&&D.push("'"+this.terminals_[f]+"'");_=p.showPosition?"Parse error on line "+(o+1)+":\n"+p.showPosition()+"\nExpecting "+D.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(o+1)+": Unexpected "+(1==b?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(_,{text:p.match,token:this.terminals_[b]||b,line:p.yylineno,loc:m,expected:D})}if(k[0]instanceof Array&&k.length>1)throw new Error("Parse Error: multiple actions possible at state: "+C+", token: "+b);switch(k[0]){case 1:s.push(b),a.push(p.yytext),r.push(p.yylloc),s.push(k[1]),b=null,c=p.yyleng,l=p.yytext,o=p.yylineno,m=p.yylloc;break;case 2:if(T=this.productions_[k[1]][1],B.$=a[a.length-T],B._$={first_line:r[r.length-(T||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(T||1)].first_column,last_column:r[r.length-1].last_column},y&&(B._$.range=[r[r.length-(T||1)].range[0],r[r.length-1].range[1]]),void 0!==(E=this.performAction.apply(B,[l,c,o,d.yy,k[1],a,r].concat(h))))return E;T&&(s=s.slice(0,-1*T*2),a=a.slice(0,-1*T),r=r.slice(0,-1*T)),s.push(this.productions_[k[1]][0]),a.push(B.$),r.push(B._$),F=u[s[s.length-2]][s[s.length-1]],s.push(F);break;case 3:return!0}}return!0},"parse")},lt=function(){return{EOF:1,parseError:i(function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},"parseError"),setInput:i(function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:i(function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:i(function(t){var e=t.length,s=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;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),s.length-1&&(this.yylineno-=s.length-1);var n=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:s?(s.length===i.length?this.yylloc.first_column:0)+i[i.length-s.length].length-s[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},"unput"),more:i(function(){return this._more=!0,this},"more"),reject:i(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):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).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:i(function(t){this.unput(this.match.slice(t))},"less"),pastInput:i(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:i(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:i(function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"},"showPosition"),test_match:i(function(t,e){var s,i,n;if(this.options.backtrack_lexer&&(n={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(n.yylloc.range=this.yylloc.range.slice(0))),(i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],s=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s)return s;if(this._backtrack){for(var a in n)this[a]=n[a];return!1}return!1},"test_match"),next:i(function(){if(this.done)return this.EOF;var t,e,s,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var n=this._currentRules(),a=0;a<n.length;a++)if((s=this._input.match(this.rules[n[a]]))&&(!e||s[0].length>e[0].length)){if(e=s,i=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(s,n[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,n[i]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:i(function(){var t=this.next();return t||this.lex()},"lex"),begin:i(function(t){this.conditionStack.push(t)},"begin"),popState:i(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:i(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:i(function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},"topState"),pushState:i(function(t){this.begin(t)},"pushState"),stateStackSize:i(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:i(function(t,e,s,i){switch(s){case 0:return 62;case 1:return 63;case 2:return 64;case 3:return 65;case 4:case 5:case 14:case 31:case 37:case 41:case 48:break;case 6:return this.begin("acc_title"),33;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),35;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:case 19:case 22:case 24:case 59:case 62:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:case 36:return 8;case 15:case 16:return 7;case 17:case 38:case 46:return"EDGE_STATE";case 18:this.begin("callback_name");break;case 20:this.popState(),this.begin("callback_args");break;case 21:return 79;case 23:return 80;case 25:return"STR";case 26:this.begin("string");break;case 27:return 82;case 28:return 57;case 29:return this.begin("namespace"),42;case 30:case 40:return this.popState(),8;case 32:return this.begin("namespace-body"),39;case 33:this.popState(),this.less(0);break;case 34:case 44:return this.popState(),41;case 35:case 45:return"EOF_IN_STRUCT";case 39:return this.begin("class"),48;case 42:return this.popState(),this.popState(),41;case 43:return this.begin("class-body"),39;case 47:return"OPEN_IN_STRUCT";case 49:return"MEMBER";case 50:return 83;case 51:return 75;case 52:return 76;case 53:return 78;case 54:return 54;case 55:return 56;case 56:return 46;case 57:return 47;case 58:return 81;case 60:return"GENERICTYPE";case 61:this.begin("generic");break;case 63:return"BQUOTE_STR";case 64:this.begin("bqstring");break;case 65:case 66:case 67:case 68:return 77;case 69:case 70:return 69;case 71:case 72:return 71;case 73:return 70;case 74:return 68;case 75:return 72;case 76:return 73;case 77:return 74;case 78:return 22;case 79:return 44;case 80:return 100;case 81:return 18;case 82:return"PLUS";case 83:return 87;case 84:return 61;case 85:case 86:return 89;case 87:return 90;case 88:case 89:return"EQUALS";case 90:return 60;case 91:return 12;case 92:return 14;case 93:return"PUNCTUATION";case 94:return 86;case 95:return 102;case 96:case 97:return 50;case 98:return 9}},"anonymous"),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:\[\*\])/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:["])/,/^(?:[^"]*)/,/^(?:["])/,/^(?:style\b)/,/^(?:classDef\b)/,/^(?:namespace\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[{])/,/^(?:[}])/,/^(?:[}])/,/^(?:$)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:\[\*\])/,/^(?:class\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[}])/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\[\*\])/,/^(?:[{])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:note for\b)/,/^(?:note\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:href\b)/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:~)/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:[`])/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:\s*\(\))/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?::)/,/^(?:,)/,/^(?:#)/,/^(?:#)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:\[)/,/^(?:\])/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\s)/,/^(?:\s)/,/^(?:$)/],conditions:{"namespace-body":{rules:[26,29,34,35,36,37,38,39,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},namespace:{rules:[26,29,30,31,32,33,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},"class-body":{rules:[26,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},class:{rules:[26,40,41,42,43,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_descr_multiline:{rules:[11,12,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_descr:{rules:[9,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_title:{rules:[7,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},callback_args:{rules:[22,23,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},callback_name:{rules:[19,20,21,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},href:{rules:[26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},struct:{rules:[26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},generic:{rules:[26,50,51,52,53,54,55,56,57,58,59,60,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},bqstring:{rules:[26,50,51,52,53,54,55,56,57,58,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},string:{rules:[24,25,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,26,27,28,29,39,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98],inclusive:!0}}}}();function ot(){this.yy={}}return ut.lexer=lt,i(ot,"Parser"),ot.prototype=ut,ut.Parser=ot,new ot}();_.parser=_;var $=_,S=["#","+","~","-",""],N=class{static{i(this,"ClassMember")}constructor(t,e){this.memberType=e,this.visibility="",this.classifier="",this.text="";const s=F(t,a());this.parseMember(s)}getDisplayDetails(){let t=this.visibility+D(this.id);"method"===this.memberType&&(t+=`(${D(this.parameters.trim())})`,this.returnType&&(t+=" : "+D(this.returnType))),t=t.trim();return{displayText:t,cssStyle:this.parseClassifier()}}parseMember(t){let e="";if("method"===this.memberType){const s=/([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/.exec(t);if(s){const t=s[1]?s[1].trim():"";if(S.includes(t)&&(this.visibility=t),this.id=s[2],this.parameters=s[3]?s[3].trim():"",e=s[4]?s[4].trim():"",this.returnType=s[5]?s[5].trim():"",""===e){const t=this.returnType.substring(this.returnType.length-1);/[$*]/.exec(t)&&(e=t,this.returnType=this.returnType.substring(0,this.returnType.length-1))}}}else{const s=t.length,i=t.substring(0,1),n=t.substring(s-1);S.includes(i)&&(this.visibility=i),/[$*]/.exec(n)&&(e=n),this.id=t.substring(""===this.visibility?0:1,""===e?s:s-1)}this.classifier=e,this.id=this.id.startsWith(" ")?" "+this.id.trim():this.id.trim();const s=`${this.visibility?"\\"+this.visibility:""}${D(this.id)}${"method"===this.memberType?`(${D(this.parameters)})${this.returnType?" : "+D(this.returnType):""}`:""}`;this.text=s.replaceAll("<","&lt;").replaceAll(">","&gt;"),this.text.startsWith("\\&lt;")&&(this.text=this.text.replace("\\&lt;","~"))}parseClassifier(){switch(this.classifier){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}}},L="classId-",x=0,I=i(t=>g.sanitizeText(t,a()),"sanitizeText"),v=class t{constructor(){this.relations=[],this.classes=new Map,this.styleClasses=new Map,this.notes=new Map,this.interfaces=[],this.namespaces=new Map,this.namespaceCounter=0,this.namespaceStack=[],this.diagramId="",this.functions=[],this.lineType={LINE:0,DOTTED_LINE:1},this.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3,LOLLIPOP:4},this.setupToolTips=i(t=>{const e=B();o(t).select("svg").selectAll("g").filter(function(){return null!==o(this).attr("title")}).on("mouseover",t=>{const s=o(t.currentTarget),i=s.attr("title");if(!i)return;const n=t.currentTarget.getBoundingClientRect();e.transition().duration(200).style("opacity",".9"),e.html(c.sanitize(i)).style("left",`${window.scrollX+n.left+n.width/2}px`).style("top",`${window.scrollY+n.bottom+4}px`),s.classed("hover",!0)}).on("mouseout",t=>{e.transition().duration(500).style("opacity",0),o(t.currentTarget).classed("hover",!1)})},"setupToolTips"),this.direction="TB",this.setAccTitle=h,this.getAccTitle=p,this.setAccDescription=d,this.getAccDescription=A,this.setDiagramTitle=m,this.getDiagramTitle=y,this.getConfig=i(()=>a().class,"getConfig"),this.functions.push(this.setupToolTips.bind(this)),this.clear(),this.addRelation=this.addRelation.bind(this),this.addClassesToNamespace=this.addClassesToNamespace.bind(this),this.addNamespace=this.addNamespace.bind(this),this.popNamespace=this.popNamespace.bind(this),this.setCssClass=this.setCssClass.bind(this),this.addMembers=this.addMembers.bind(this),this.addClass=this.addClass.bind(this),this.setClassLabel=this.setClassLabel.bind(this),this.addAnnotation=this.addAnnotation.bind(this),this.addMember=this.addMember.bind(this),this.cleanupLabel=this.cleanupLabel.bind(this),this.addNote=this.addNote.bind(this),this.defineClass=this.defineClass.bind(this),this.setDirection=this.setDirection.bind(this),this.setLink=this.setLink.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.clear=this.clear.bind(this),this.setTooltip=this.setTooltip.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setCssStyle=this.setCssStyle.bind(this)}static{i(this,"ClassDB")}splitClassNameAndType(t){const e=g.sanitizeText(t,a());let s="",i=e;if(e.indexOf("~")>0){const t=e.split("~");i=I(t[0]),s=I(t[1])}return{className:i,type:s}}setClassLabel(t,e){const s=g.sanitizeText(t,a());e&&(e=I(e));const{className:i}=this.splitClassNameAndType(s);this.classes.get(i).label=e,this.classes.get(i).text=`${e}${this.classes.get(i).type?`<${this.classes.get(i).type}>`:""}`}addClass(t){const e=g.sanitizeText(t,a()),{className:s,type:i}=this.splitClassNameAndType(e);if(this.classes.has(s))return;const n=g.sanitizeText(s,a());this.classes.set(n,{id:n,type:i,label:n,text:`${n}${i?`&lt;${i}&gt;`:""}`,shape:"classBox",cssClasses:"default",methods:[],members:[],annotations:[],styles:[],domId:L+n+"-"+x}),x++}addInterface(t,e){const s={id:`interface${this.interfaces.length}`,label:t,classId:e};this.interfaces.push(s)}setDiagramId(t){this.diagramId=t}lookUpDomId(t){const e=g.sanitizeText(t,a());if(this.classes.has(e)){const t=this.classes.get(e).domId;return this.diagramId?`${this.diagramId}-${t}`:t}throw new Error("Class not found: "+e)}clear(){this.relations=[],this.classes=new Map,this.notes=new Map,this.interfaces=[],this.functions=[],this.functions.push(this.setupToolTips.bind(this)),this.namespaces=new Map,this.namespaceCounter=0,this.namespaceStack=[],this.diagramId="",this.direction="TB",b()}getClass(t){return this.classes.get(t)}getClasses(){return this.classes}getRelations(){return this.relations}getNote(t){const e="number"==typeof t?`note${t}`:t;return this.notes.get(e)}getNotes(){return this.notes}addRelation(t){n.debug("Adding relation: "+JSON.stringify(t));const e=[this.relationType.LOLLIPOP,this.relationType.AGGREGATION,this.relationType.COMPOSITION,this.relationType.DEPENDENCY,this.relationType.EXTENSION];t.relation.type1!==this.relationType.LOLLIPOP||e.includes(t.relation.type2)?t.relation.type2!==this.relationType.LOLLIPOP||e.includes(t.relation.type1)?(this.addClass(t.id1),this.addClass(t.id2)):(this.addClass(t.id1),this.addInterface(t.id2,t.id1),t.id2="interface"+(this.interfaces.length-1)):(this.addClass(t.id2),this.addInterface(t.id1,t.id2),t.id1="interface"+(this.interfaces.length-1)),t.id1=this.splitClassNameAndType(t.id1).className,t.id2=this.splitClassNameAndType(t.id2).className,t.relationTitle1=g.sanitizeText(t.relationTitle1.trim(),a()),t.relationTitle2=g.sanitizeText(t.relationTitle2.trim(),a()),this.relations.push(t)}addAnnotation(t,e){const s=this.splitClassNameAndType(t).className;this.classes.get(s).annotations.push(e)}addMember(t,e){this.addClass(t);const s=this.splitClassNameAndType(t).className,i=this.classes.get(s);if("string"==typeof e){const t=e.trim();t.startsWith("<<")&&t.endsWith(">>")?i.annotations.push(I(t.substring(2,t.length-2))):t.indexOf(")")>0?i.methods.push(new N(t,"method")):t&&i.members.push(new N(t,"attribute"))}}addMembers(t,e){Array.isArray(e)&&(e.reverse(),e.forEach(e=>this.addMember(t,e)))}addNote(t,e){const s=this.notes.size,i={id:`note${s}`,class:e,text:t,index:s};return this.notes.set(i.id,i),i.id}cleanupLabel(t){return t.startsWith(":")&&(t=t.substring(1)),I(t.trim())}setCssClass(t,e){t.split(",").forEach(t=>{let s=t;/\d/.exec(t[0])&&(s=L+s),s=this.splitClassNameAndType(s).className;const i=this.classes.get(s);i&&(i.cssClasses+=" "+e)})}defineClass(t,e){for(const s of t){let t=this.styleClasses.get(s);void 0===t&&(t={id:s,styles:[],textStyles:[]},this.styleClasses.set(s,t)),e&&e.forEach(e=>{if(/color/.exec(e)){const s=e.replace("fill","bgFill");t.textStyles.push(s)}t.styles.push(e)}),this.classes.forEach(t=>{t.cssClasses.includes(s)&&t.styles.push(...e.flatMap(t=>t.split(",")))})}}setTooltip(t,e){t.split(",").forEach(t=>{if(void 0!==e){const s=this.splitClassNameAndType(t).className,i=this.classes.get(s);i&&(i.tooltip=I(e))}})}getTooltip(t,e){return e&&this.namespaces.has(e)?this.namespaces.get(e).classes.get(t).tooltip:this.classes.get(t).tooltip}setLink(t,e,s){const i=a();t.split(",").forEach(t=>{let n=t;/\d/.exec(t[0])&&(n=L+n),n=this.splitClassNameAndType(n).className;const a=this.classes.get(n);a&&(a.link=l.formatUrl(e,i),"sandbox"===i.securityLevel?a.linkTarget="_top":a.linkTarget="string"==typeof s?I(s):"_blank")}),this.setCssClass(t,"clickable")}setClickEvent(t,e,s){t.split(",").forEach(t=>{this.setClickFunc(t,e,s);const i=this.splitClassNameAndType(t).className,n=this.classes.get(i);n&&(n.haveCallback=!0)}),this.setCssClass(t,"clickable")}setClickFunc(t,e,s){const i=g.sanitizeText(t,a());if("loose"!==a().securityLevel)return;if(void 0===e)return;const n=this.splitClassNameAndType(i).className;if(this.classes.has(n)){let t=[];if("string"==typeof s){t=s.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let e=0;e<t.length;e++){let s=t[e].trim();s.startsWith('"')&&s.endsWith('"')&&(s=s.substr(1,s.length-2)),t[e]=s}}0===t.length&&t.push(n),this.functions.push(()=>{const s=this.lookUpDomId(n),i=document.querySelector(`[id="${s}"]`);null!==i&&i.addEventListener("click",()=>{l.runFunc(e,...t)},!1)})}}bindFunctions(t){this.functions.forEach(e=>{e(t)})}escapeHtml(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}getDirection(){return this.direction}setDirection(t){this.direction=t}static resolveQualifiedId(t,e){const s=e.at(-1);return s?`${s}.${t}`:t}static getAncestorIds(t){const e=t.split("."),s=new Array(e.length);s[0]=e[0];for(let t=1;t<e.length;t++)s[t]=`${s[t-1]}.${e[t]}`;return s}createNamespaceNode(t,e,s,i=!1){return{id:t,label:e,classes:new Map,notes:new Map,children:new Map,domId:L+t+"-"+this.namespaceCounter++,parent:s,explicit:i}}linkParentChild(t,e){const s=this.namespaces.get(t),i=this.namespaces.get(e);s&&i&&(s.children.has(e)||s.children.set(e,i),i.parent??=t)}addNamespace(e,s){const i=t.resolveQualifiedId(e,this.namespaceStack);if(this.namespaceStack.push(i),this.namespaces.has(i)){const t=this.namespaces.get(i);return t.explicit=!0,s&&(t.label=s),i}const n=i.split("."),a=t.getAncestorIds(i);for(let t=0;t<a.length;t++){const e=a[t],i=t>0?a[t-1]:void 0,r=t===a.length-1,u=r&&s?s:n[t];this.namespaces.has(e)?r&&(this.namespaces.get(e).explicit=!0):this.namespaces.set(e,this.createNamespaceNode(e,u,i,r)),i&&this.linkParentChild(i,e)}return i}popNamespace(){this.namespaceStack.pop()}getNamespace(t){return this.namespaces.get(t)}getNamespaces(){return this.namespaces}addClassesToNamespace(t,e,s){if(this.namespaces.has(t)){for(const s of e){const{className:e}=this.splitClassNameAndType(s),i=this.getClass(e);i.parent=t,this.namespaces.get(t).classes.set(e,i)}for(const e of s){const s=this.getNote(e);s.parent=t,this.namespaces.get(t).notes.set(e,s)}}}setCssStyle(t,e){const s=this.classes.get(t);if(e&&s)for(const t of e)t.includes(",")?s.styles.push(...t.split(",")):s.styles.push(t)}getArrowMarker(t){let e;switch(t){case 0:e="aggregation";break;case 1:e="extension";break;case 2:e="composition";break;case 3:e="dependency";break;case 4:e="lollipop";break;default:e="none"}return e}resolveExplicitAncestor(t){let e=t;for(;e;){const t=this.namespaces.get(e);if(!t)return;if(t.explicit)return e;e=t.parent}}getData(){const t=[],e=[],s=a(),i=s.class?.hierarchicalNamespaces??!0;for(const e of this.namespaces.values()){if(!i&&!e.explicit)continue;const n={id:e.id,label:i?e.label:e.id,isGroup:!0,padding:s.class.padding??16,shape:"rect",cssStyles:[],look:s.look,parentId:i?e.parent:void 0};t.push(n)}let n=0;for(const e of this.classes.values()){const a=i?e.parent:this.resolveExplicitAncestor(e.parent),r={...e,type:void 0,isGroup:!1,parentId:a,look:s.look,colorIndex:n++};t.push(r)}for(const n of this.notes.values()){const a=i?n.parent:this.resolveExplicitAncestor(n.parent),r={id:n.id,label:n.text,isGroup:!1,shape:"note",padding:s.class.padding??6,cssStyles:["text-align: left","white-space: nowrap",`fill: ${s.themeVariables.noteBkgColor}`,`stroke: ${s.themeVariables.noteBorderColor}`],look:s.look,parentId:a,labelType:"markdown"};t.push(r);const u=this.classes.get(n.class)?.id;if(u){const t={id:`edgeNote${n.index}`,start:n.id,end:u,type:"normal",thickness:"normal",classes:"relation",arrowTypeStart:"none",arrowTypeEnd:"none",arrowheadStyle:"",labelStyle:[""],style:["fill: none"],pattern:"dotted",look:s.look};e.push(t)}}for(const e of this.interfaces){const i={id:e.id,label:e.label,isGroup:!1,shape:"rect",cssStyles:["opacity: 0;"],look:s.look};t.push(i)}let r=0;for(const t of this.relations){r++;const i={id:C(t.id1,t.id2,{prefix:"id",counter:r}),start:t.id1,end:t.id2,type:"normal",label:t.title,labelpos:"c",thickness:"normal",classes:"relation",arrowTypeStart:this.getArrowMarker(t.relation.type1),arrowTypeEnd:this.getArrowMarker(t.relation.type2),startLabelRight:"none"===t.relationTitle1?"":t.relationTitle1,endLabelLeft:"none"===t.relationTitle2?"":t.relationTitle2,arrowheadStyle:"",labelStyle:["display: inline-block"],style:t.style||"",pattern:1==t.relation.lineType?"dashed":"solid",look:s.look,labelType:"markdown"};e.push(i)}return{nodes:t,edges:e,other:{},config:s,direction:this.getDirection()}}},O=i(t=>{const{theme:e,bkgColorArray:s,borderColorArray:i}=t;if(!k(e,i))return"";const n=E(t.look),a=f(s);let r="";for(let e=0;e<T(t.THEME_COLOR_LIMIT,i);e++){const t=i[e%i.length];r+=`\n\n [data-look="${n}"][data-color-id="color-${e}"].node .outer-path path {\n stroke: ${t};\n ${a?`fill: ${s[e%s.length]};`:""}\n }\n\n [data-look="${n}"][data-color-id="color-${e}"].node .divider path {\n stroke: ${t};\n }\n `}return r},"genColor"),w=i(e=>`${O(e)}\n g.classGroup text {\n fill: ${e.nodeBorder||e.classText};\n stroke: none;\n font-family: ${e.fontFamily};\n font-size: 10px;\n\n .title {\n font-weight: bolder;\n }\n\n}\n\n .cluster-label text {\n fill: ${e.titleColor};\n }\n .cluster-label span {\n color: ${e.titleColor};\n }\n .cluster-label span p {\n background-color: transparent;\n }\n\n .cluster rect {\n fill: ${e.clusterBkg};\n stroke: ${e.clusterBorder};\n stroke-width: 1px;\n }\n\n .cluster text {\n fill: ${e.titleColor};\n }\n\n .cluster span {\n color: ${e.titleColor};\n }\n\n.nodeLabel, .edgeLabel {\n color: ${e.classText};\n}\n\n.noteLabel .nodeLabel, .noteLabel .edgeLabel {\n color: ${e.noteTextColor};\n}\n.edgeLabel .label rect {\n fill: ${e.mainBkg};\n}\n.label text {\n fill: ${e.classText};\n}\n\n.labelBkg {\n background: ${e.mainBkg};\n}\n.edgeLabel .label span {\n background: ${e.mainBkg};\n}\n\n.classTitle {\n font-weight: bolder;\n}\n.node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${e.mainBkg};\n stroke: ${e.nodeBorder};\n stroke-width: ${e.strokeWidth};\n }\n\n\n.divider {\n stroke: ${e.nodeBorder};\n stroke-width: 1;\n}\n\ng.clickable {\n cursor: pointer;\n}\n\ng.classGroup rect {\n fill: ${e.mainBkg};\n stroke: ${e.nodeBorder};\n}\n\ng.classGroup line {\n stroke: ${e.nodeBorder};\n stroke-width: 1;\n}\n\n.classLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: ${e.mainBkg};\n opacity: 0.5;\n}\n\n.classLabel .label {\n fill: ${e.nodeBorder};\n font-size: 10px;\n}\n\n.relation {\n stroke: ${e.lineColor};\n stroke-width: ${e.strokeWidth};\n fill: none;\n}\n\n.dashed-line{\n stroke-dasharray: 3;\n}\n\n.dotted-line{\n stroke-dasharray: 1 2;\n}\n\n[id$="-compositionStart"], .composition {\n fill: ${e.lineColor} !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n[id$="-compositionEnd"], .composition {\n fill: ${e.lineColor} !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n[id$="-dependencyStart"], .dependency {\n fill: ${e.lineColor} !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n[id$="-dependencyEnd"], .dependency {\n fill: ${e.lineColor} !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n[id$="-extensionStart"], .extension {\n fill: transparent !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n[id$="-extensionEnd"], .extension {\n fill: transparent !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n[id$="-aggregationStart"], .aggregation {\n fill: transparent !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n[id$="-aggregationEnd"], .aggregation {\n fill: transparent !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n[id$="-lollipopStart"], .lollipop {\n fill: ${e.mainBkg} !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n[id$="-lollipopEnd"], .lollipop {\n fill: ${e.mainBkg} !important;\n stroke: ${e.lineColor} !important;\n stroke-width: 1;\n}\n\n.edgeTerminals {\n font-size: 11px;\n line-height: initial;\n}\n\n.classTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${e.textColor};\n}\n\n.edgeLabel[data-look="neo"] {\n background-color: ${e.edgeLabelBackground};\n p {\n background-color: ${e.edgeLabelBackground};\n }\n rect {\n opacity: 0.5;\n background-color: ${e.edgeLabelBackground};\n fill: ${e.edgeLabelBackground};\n }\n text-align: center;\n}\n ${t()}\n`,"getStyles"),R=i((t,e="TB")=>{if(!t.doc)return e;let s=e;for(const e of t.doc)"dir"===e.stmt&&(s=e.value);return s},"getDir"),M={getClasses:i(function(t,e){return e.db.getClasses()},"getClasses"),draw:i(async function(t,i,o,c){n.info("REF0:"),n.info("Drawing class diagram (v3)",i);const{securityLevel:h,state:p,layout:d}=a();c.db.setDiagramId(i);const A=c.db.getData(),m=e(i,h);A.type=c.type,A.layoutAlgorithm=r(d),A.nodeSpacing=p?.nodeSpacing||50,A.rankSpacing=p?.rankSpacing||50,A.markers=["aggregation","extension","composition","dependency","lollipop"],A.diagramId=i,await u(A,m);l.insertTitle(m,"classDiagramTitleText",p?.titleTopMargin??25,c.db.getDiagramTitle()),s(m,8,"classDiagram",p?.useMaxWidth??!0)},"draw"),getDir:R},P={parser:$,get db(){return new v},renderer:M,styles:w,init:i(t=>{t.class||(t.class={}),t.class.arrowMarkerAbsolute=t.arrowMarkerAbsolute},"init")};export{P as diagram};
@@ -1 +1 @@
1
- import{f as e,s as t,N as n}from"./settings-CBGV-lz3.js";import{isValidElement as o,Children as s,cloneElement as r}from"react";let c=null;const i=async()=>(c||(e("loading XLSX..."),c=await(import("./xlsx-BVrgZ1Ou.js"))),c),a=e=>{if(!e)return"";if("string"==typeof e||"number"==typeof e)return e+"";if(Array.isArray(e))return e.map(a).join("");if(o(e)&&e.props.children){const t=e.props.children;return Array.isArray(t)?t.map(a).join(""):a(t)}return""};function l(){return"undefined"!=typeof window}const f=(e,t)=>{if("undefined"!=typeof document&&l()){const n=document.createElement("a");n.style.display="none",n.setAttribute("href",e),n.setAttribute("download",t),n.setAttribute("target","_blank"),document.body.appendChild(n),n.click(),document.body.removeChild(n),setTimeout(()=>{l()&&window.URL.revokeObjectURL(e)},100)}};function p(e,t="file"){if(l()){const n=new Blob([e],{type:e.type||"application/octet-stream"}),o=window.URL.createObjectURL(n);f(o,t)}}async function u(e,t){if("undefined"!=typeof document){const n=await fetch(e);if(!n.ok)throw new Error(`HTTP error! Status: ${n.status}`);const o=await n.blob(),s=URL.createObjectURL(o),r=document.createElement("a");r.href=s,r.download=t,r.dispatchEvent(new MouseEvent("click")),URL.revokeObjectURL(s)}}const y=(e,t="file.csv")=>{p(new Blob([e.map(e=>e.join(",")).join("\n")],{type:"text/csv"}),t)},d=async(e,t="file.xlsx")=>{const{utils:n}=await i(),o=n.book_new();o.Props={Title:t,Subject:t,Author:"Juki",CreatedDate:new Date};for(const{name:t,autofilter:s,cols:r,rows:c,styles:i}of e){const e={s:{c:1e7,r:1e7},e:{c:0,r:0}};o.SheetNames.push(t),o.Sheets[t]={},o.Sheets[t]["!rows"]=[],Object.entries(c).forEach(([s,r])=>{const c=+s;r.height&&(o.Sheets[t]["!rows"][c]={hpx:r.height}),Object.entries(r.cells).forEach(([s,r])=>{const a=+s;e.s.r>c&&(e.s.r=c),e.s.c>a&&(e.s.c=a),e.e.r<c&&(e.e.r=c),e.e.c<a&&(e.e.c=a);const l={v:r.text,t:"s"};if(null==l.v)return;const f=n.encode_cell({c:a,r:c});if("number"==typeof l.v?l.t="n":"boolean"==typeof l.v?l.t="b":(l.v,Date),l.s={},"string"==typeof l.v&&l.v.includes("\n")&&(l.s.alignment={wrapText:!0}),"number"==typeof r.style&&i?.[r.style]){const e=i[r.style].bgcolor;"string"==typeof e&&(l.s.fill={fgColor:{rgb:e.replace("#","")}});const t=i[r.style].color;"string"==typeof t&&(l.s.font||(l.s.font={}),l.s.font.color={rgb:t.replace("#","")}),i[r.style].font?.bold&&(l.s.font||(l.s.font={}),l.s.font.bold=!0);const n=i[r.style].align;"string"==typeof n&&(l.s.alignment||(l.s.alignment={}),l.s.alignment.horizontal=n);const o=i[r.style].valign;"string"==typeof o&&(l.s.alignment||(l.s.alignment={}),l.s.alignment.vertical=o)}o.Sheets[t][f]=l})}),e.s.c<1e7&&(o.Sheets[t]["!ref"]=n.encode_range(e)),s?.ref&&(o.Sheets[t]["!autofilter"]={ref:s?.ref}),o.Sheets[t]["!cols"]||(o.Sheets[t]["!cols"]=[]),Object.entries(r||{}).forEach(([e,n])=>{const s=+e;o.Sheets[t]["!cols"][s]||(o.Sheets[t]["!cols"][s]={}),n.width&&(o.Sheets[t]["!cols"][s].wpx=n.width)})}return o},h=async(e,n="file.xlsx")=>{const o=await d(e,n),{write:s}=await i(),r=s(o,{bookType:"xlsx",type:"binary"});p(new Blob([t(r)],{type:"application/octet-stream"}),n)},b=(e,t)=>"function"==typeof e?e(t):s.map(e,e=>e?r(e,t):e),m=(e,t,n,o,s,r,c,i,a,l,f,p,u,y,d)=>{let h="";return[e,t,n,o,s,r,c,i,a,l,f,p,u,y,d].forEach(e=>{if(e)if("string"==typeof e)h+=(h?" ":"")+e;else for(const t in e)e[t]&&(h+=(h?" ":"")+t)}),h},w=(e,t)=>e===t||Array.isArray(e)&&e.includes(t);function g(e){return new Promise(t=>{e.toBlob(t)})}const j=e=>e.current?.scrollWidth>e.current?.clientWidth;function v(){return"production"!==n}const S=e=>{if(l()){const t=window.open(e,"_blank","noopener,noreferrer");t&&(t.opener=null)}},x=e=>e.trim().replace(/\/+/g,"/").replace(/^\/+/,"").replace(/\/+$/,"");export{y as a,f as b,m as c,p as d,h as e,u as f,a as g,i as h,l as i,v as j,j as k,w as l,x as n,S as o,b as r,d as s,g as t};
1
+ import{f as e,s as t,N as n}from"./settings-6x4qNkNZ.js";import{isValidElement as o,Children as s,cloneElement as r}from"react";let c=null;const i=async()=>(c||(e("loading XLSX..."),c=await(import("./xlsx-BVrgZ1Ou.js"))),c),a=e=>{if(!e)return"";if("string"==typeof e||"number"==typeof e)return e+"";if(Array.isArray(e))return e.map(a).join("");if(o(e)&&e.props.children){const t=e.props.children;return Array.isArray(t)?t.map(a).join(""):a(t)}return""};function l(){return"undefined"!=typeof window}const f=(e,t)=>{if("undefined"!=typeof document&&l()){const n=document.createElement("a");n.style.display="none",n.setAttribute("href",e),n.setAttribute("download",t),n.setAttribute("target","_blank"),document.body.appendChild(n),n.click(),document.body.removeChild(n),setTimeout(()=>{l()&&window.URL.revokeObjectURL(e)},100)}};function p(e,t="file"){if(l()){const n=new Blob([e],{type:e.type||"application/octet-stream"}),o=window.URL.createObjectURL(n);f(o,t)}}async function u(e,t){if("undefined"!=typeof document){const n=await fetch(e);if(!n.ok)throw new Error(`HTTP error! Status: ${n.status}`);const o=await n.blob(),s=URL.createObjectURL(o),r=document.createElement("a");r.href=s,r.download=t,r.dispatchEvent(new MouseEvent("click")),URL.revokeObjectURL(s)}}const y=(e,t="file.csv")=>{p(new Blob([e.map(e=>e.join(",")).join("\n")],{type:"text/csv"}),t)},d=async(e,t="file.xlsx")=>{const{utils:n}=await i(),o=n.book_new();o.Props={Title:t,Subject:t,Author:"Juki",CreatedDate:new Date};for(const{name:t,autofilter:s,cols:r,rows:c,styles:i}of e){const e={s:{c:1e7,r:1e7},e:{c:0,r:0}};o.SheetNames.push(t),o.Sheets[t]={},o.Sheets[t]["!rows"]=[],Object.entries(c).forEach(([s,r])=>{const c=+s;r.height&&(o.Sheets[t]["!rows"][c]={hpx:r.height}),Object.entries(r.cells).forEach(([s,r])=>{const a=+s;e.s.r>c&&(e.s.r=c),e.s.c>a&&(e.s.c=a),e.e.r<c&&(e.e.r=c),e.e.c<a&&(e.e.c=a);const l={v:r.text,t:"s"};if(null==l.v)return;const f=n.encode_cell({c:a,r:c});if("number"==typeof l.v?l.t="n":"boolean"==typeof l.v?l.t="b":(l.v,Date),l.s={},"string"==typeof l.v&&l.v.includes("\n")&&(l.s.alignment={wrapText:!0}),"number"==typeof r.style&&i?.[r.style]){const e=i[r.style].bgcolor;"string"==typeof e&&(l.s.fill={fgColor:{rgb:e.replace("#","")}});const t=i[r.style].color;"string"==typeof t&&(l.s.font||(l.s.font={}),l.s.font.color={rgb:t.replace("#","")}),i[r.style].font?.bold&&(l.s.font||(l.s.font={}),l.s.font.bold=!0);const n=i[r.style].align;"string"==typeof n&&(l.s.alignment||(l.s.alignment={}),l.s.alignment.horizontal=n);const o=i[r.style].valign;"string"==typeof o&&(l.s.alignment||(l.s.alignment={}),l.s.alignment.vertical=o)}o.Sheets[t][f]=l})}),e.s.c<1e7&&(o.Sheets[t]["!ref"]=n.encode_range(e)),s?.ref&&(o.Sheets[t]["!autofilter"]={ref:s?.ref}),o.Sheets[t]["!cols"]||(o.Sheets[t]["!cols"]=[]),Object.entries(r||{}).forEach(([e,n])=>{const s=+e;o.Sheets[t]["!cols"][s]||(o.Sheets[t]["!cols"][s]={}),n.width&&(o.Sheets[t]["!cols"][s].wpx=n.width)})}return o},h=async(e,n="file.xlsx")=>{const o=await d(e,n),{write:s}=await i(),r=s(o,{bookType:"xlsx",type:"binary"});p(new Blob([t(r)],{type:"application/octet-stream"}),n)},b=(e,t)=>"function"==typeof e?e(t):s.map(e,e=>e?r(e,t):e),m=(e,t,n,o,s,r,c,i,a,l,f,p,u,y,d)=>{let h="";return[e,t,n,o,s,r,c,i,a,l,f,p,u,y,d].forEach(e=>{if(e)if("string"==typeof e)h+=(h?" ":"")+e;else for(const t in e)e[t]&&(h+=(h?" ":"")+t)}),h},w=(e,t)=>e===t||Array.isArray(e)&&e.includes(t);function g(e){return new Promise(t=>{e.toBlob(t)})}const j=e=>e.current?.scrollWidth>e.current?.clientWidth;function v(){return"production"!==n}const S=e=>{if(l()){const t=window.open(e,"_blank","noopener,noreferrer");t&&(t.opener=null)}},x=e=>e.trim().replace(/\/+/g,"/").replace(/^\/+/,"").replace(/\/+$/,"");export{y as a,f as b,m as c,p as d,h as e,u as f,a as g,i as h,l as i,v as j,j as k,w as l,x as n,S as o,b as r,d as s,g as t};
@@ -1 +1 @@
1
- import{W as t,v as o,R as a,Q as r,D as s,P as i,M as n,b as l,T as g,L as c,C as E,E as p}from"./settings-CBGV-lz3.js";export{A as ABLY_LOG_LEVEL,J as JUKI_SERVICE_V2_URL,d as JUKI_TOKEN_NAME,N as NODE_ENV,e as SWR_CONFIG}from"./settings-CBGV-lz3.js";import{QueryParamKey as _}from"./enums.js";const m=320,I=()=>({id:o(),type:t.JK_MD,title:"",points:0,content:""}),h=()=>({id:o(),type:t.CODE_EDITOR,title:"",points:0,files:{},testCases:{},languages:a,height:0}),T=()=>({id:o(),type:t.GRAPH,title:"",points:0,dots:[b]}),C=()=>({id:o(),type:t.QUIZ_PROBLEM,title:"",points:0,problemKey:"",height:0,languages:a}),u=()=>({id:o(),type:t.QUIZ_OPTIONS,title:"",points:0,description:"",options:[],multiple:!1,scoringMode:r.TOTAL}),L=()=>({id:o(),type:t.LIST,title:"",points:0,header:"# header of list",content:[{id:o(),type:t.JK_MD,title:"",points:0,content:"First content of list"}],children:[]}),b='digraph graph_name {\n bgcolor="transparent"\n a -> b;\n b -> c;\n a -> d;\n d -> c;\n a -> c;\n}',y=s.map(e=>e.substring(0,2)),O=8,R=[],P={},S=/^[a-z0-9\-_]+$/i,D=/^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])[\w~@#$%^&*+=`|{}:;!.?"()-_]{8,}$/,M={name:"",imageUrl:"",contactEmail:"contact@juki.app",contactCellPhoneNumber:"+519 79153358",contactTelegram:"https://t.me/OscarGauss",key:"",codeEditorRunEnabled:!0,styles:{[g.LIGHT]:{body:{backgroundColor:"",backgroundColorHighlight:"",textColor:"",textColorHighlight:"",textColorHighlightInset:"",accentColor:"",accentColorInset:""},navbar:{textColor:"",backgroundColor:"",accentColor:"",logoTheme:g.LIGHT}},[g.DARK]:{body:{backgroundColor:"",backgroundColorHighlight:"",textColor:"",textColorHighlight:"",textColorHighlightInset:"",accentColor:"",accentColorInset:""},navbar:{textColor:"",backgroundColor:"",accentColor:"",logoTheme:g.DARK}}}},k={refreshRate:200,refreshMode:"debounce"},H="America/La_Paz",G={nickname:"",imageUrl:"https://images.juki.pub/c/juki-image-profile.svg",settings:{[i.LANGUAGE]:c.ES,[i.THEME]:g.LIGHT,[i.DATA_VIEW_MODE]:l.ROWS,[i.MENU_VIEW_MODE]:n.VERTICAL,[i.NEWSLETTER_SUBSCRIPTION]:!0,[i.TIME_ZONE]:H,[i.FONT_SIZE]:16},permissions:{...p},isLogged:!1,sessionId:"",company:{key:""}},V=[25,50,100],x={getPageQueryParam:e=>(e?e+".":e)+_.PAGE_TABLE,getPageSizeQueryParam:e=>(e?e+".":e)+_.PAGE_SIZE_TABLE,getSortQueryParam:e=>(e?e+".":e)+_.SORT_TABLE,getFilterQueryParam:e=>(e?e+".":e)+_.FILTER_TABLE,getViewModeQueryParam:e=>(e?e+".":e)+_.VIEW_MODE_TABLE,getShowFilterDrawerQueryParam:e=>(e?e+".":e)+_.SHOW_FILTER_DRAWER,getVisiblesQueryParam:e=>(e?e+".":e)+_.VISIBLES},Q=[1,2,3,4,8],U=[8,10,12,14,16,18,20,22,24,28,30,32,34,36,38,40,42],f=Object.values(E);export{S as ALPHANUMERIC_DASH_UNDERSCORE_REGEX,U as CODE_EDIT0R_FONT_SIZES,Q as CODE_EDIT0R_TAB_SIZES,f as CODE_EDITOR_PROGRAMMING_LANGUAGES,y as DAYS_2,x as DEFAULT_DATA_VIEWER_PROPS,b as DEFAULT_GRAPH,H as DEFAULT_TIME_ZONE,R as EMPTY_ARRAY,h as EMPTY_CODE_EDITOR_SHEET,M as EMPTY_COMPANY,T as EMPTY_GRAPH_SHEET,I as EMPTY_JK_MD_SHEET,L as EMPTY_LIST_SHEET,P as EMPTY_OBJECT,u as EMPTY_QUIZ_OPTIONS_SHEET,C as EMPTY_QUIZ_PROBLEM_SHEET,G as EMPTY_USER,D as LEAST_ONE_UPPERCASE_LOWERCASE_NUMBER_REGEX,V as PAGE_SIZE_OPTIONS,k as RESIZE_DETECTOR_PROPS,O as SCROLL_WIDTH,m as WORKSHEET_CODE_EDITOR_MIN_HEIGHT};
1
+ import{W as t,v as o,R as a,Q as r,D as i,P as s,M as n,b as l,T as g,L as c,C as E,E as _}from"./settings-6x4qNkNZ.js";export{A as ABLY_LOG_LEVEL,J as JUKI_SERVICE_V2_URL,d as JUKI_TOKEN_NAME,N as NODE_ENV,e as SWR_CONFIG}from"./settings-6x4qNkNZ.js";import{QueryParamKey as p}from"./enums.js";const m=320,I=()=>({id:o(),type:t.JK_MD,title:"",points:0,content:""}),h=()=>({id:o(),type:t.CODE_EDITOR,title:"",points:0,files:{},testCases:{},languages:a,height:0}),T=()=>({id:o(),type:t.GRAPH,title:"",points:0,dots:[b]}),C=()=>({id:o(),type:t.QUIZ_PROBLEM,title:"",points:0,problemKey:"",height:0,languages:a}),u=()=>({id:o(),type:t.QUIZ_OPTIONS,title:"",points:0,description:"",options:[],multiple:!1,scoringMode:r.TOTAL}),L=()=>({id:o(),type:t.LIST,title:"",points:0,header:"# header of list",content:[{id:o(),type:t.JK_MD,title:"",points:0,content:"First content of list"}],children:[]}),b='digraph graph_name {\n bgcolor="transparent"\n a -> b;\n b -> c;\n a -> d;\n d -> c;\n a -> c;\n}',O=i.map(e=>e.substring(0,2)),y=8,R=[],P={},S=/^[a-z0-9\-_]+$/i,D=/^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])[\w~@#$%^&*+=`|{}:;!.?"()-_]{8,}$/,M={name:"",imageUrl:"",contactEmail:"contact@juki.app",contactCellPhoneNumber:"+519 79153358",contactTelegram:"https://t.me/OscarGauss",key:"",codeEditorRunEnabled:!0,styles:{[g.LIGHT]:{body:{backgroundColor:"",backgroundColorHighlight:"",textColor:"",textColorHighlight:"",textColorHighlightInset:"",accentColor:"",accentColorInset:""},navbar:{textColor:"",backgroundColor:"",accentColor:"",logoTheme:g.LIGHT}},[g.DARK]:{body:{backgroundColor:"",backgroundColorHighlight:"",textColor:"",textColorHighlight:"",textColorHighlightInset:"",accentColor:"",accentColorInset:""},navbar:{textColor:"",backgroundColor:"",accentColor:"",logoTheme:g.DARK}}}},k={refreshRate:200,refreshMode:"debounce"},H="America/La_Paz",G={nickname:"",imageUrl:"https://images.juki.pub/c/juki-image-profile.svg",settings:{[s.LANGUAGE]:c.ES,[s.THEME]:g.LIGHT,[s.DATA_VIEW_MODE]:l.ROWS,[s.MENU_VIEW_MODE]:n.VERTICAL,[s.NEWSLETTER_SUBSCRIPTION]:!0,[s.TIME_ZONE]:H,[s.FONT_SIZE]:16},permissions:{..._},isLogged:!1,sessionId:"",organization:{key:""}},V=[25,50,100],x={getPageQueryParam:e=>(e?e+".":e)+p.PAGE_TABLE,getPageSizeQueryParam:e=>(e?e+".":e)+p.PAGE_SIZE_TABLE,getSortQueryParam:e=>(e?e+".":e)+p.SORT_TABLE,getFilterQueryParam:e=>(e?e+".":e)+p.FILTER_TABLE,getViewModeQueryParam:e=>(e?e+".":e)+p.VIEW_MODE_TABLE,getShowFilterDrawerQueryParam:e=>(e?e+".":e)+p.SHOW_FILTER_DRAWER,getVisiblesQueryParam:e=>(e?e+".":e)+p.VISIBLES},Q=[1,2,3,4,8],U=[8,10,12,14,16,18,20,22,24,28,30,32,34,36,38,40,42],f=Object.values(E);export{S as ALPHANUMERIC_DASH_UNDERSCORE_REGEX,U as CODE_EDIT0R_FONT_SIZES,Q as CODE_EDIT0R_TAB_SIZES,f as CODE_EDITOR_PROGRAMMING_LANGUAGES,O as DAYS_2,x as DEFAULT_DATA_VIEWER_PROPS,b as DEFAULT_GRAPH,H as DEFAULT_TIME_ZONE,R as EMPTY_ARRAY,h as EMPTY_CODE_EDITOR_SHEET,T as EMPTY_GRAPH_SHEET,I as EMPTY_JK_MD_SHEET,L as EMPTY_LIST_SHEET,P as EMPTY_OBJECT,M as EMPTY_ORGANIZATION,u as EMPTY_QUIZ_OPTIONS_SHEET,C as EMPTY_QUIZ_PROBLEM_SHEET,G as EMPTY_USER,D as LEAST_ONE_UPPERCASE_LOWERCASE_NUMBER_REGEX,V as PAGE_SIZE_OPTIONS,k as RESIZE_DETECTOR_PROPS,y as SCROLL_WIDTH,m as WORKSHEET_CODE_EDITOR_MIN_HEIGHT};