@elmethis/core 1.0.0-alpha.149 → 1.0.0-alpha.150

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 (666) hide show
  1. package/dist/index.d.ts +2 -3
  2. package/dist/index.mjs +119 -121
  3. package/package.json +1 -1
  4. package/dist/_virtual/_commonjsHelpers.mjs +0 -6
  5. package/dist/_virtual/advancedFormat.mjs +0 -7
  6. package/dist/_virtual/advancedFormat2.mjs +0 -4
  7. package/dist/_virtual/cancellation.mjs +0 -5
  8. package/dist/_virtual/cancellation2.mjs +0 -4
  9. package/dist/_virtual/constants.mjs +0 -4
  10. package/dist/_virtual/cose-base.mjs +0 -4
  11. package/dist/_virtual/cose-base2.mjs +0 -4
  12. package/dist/_virtual/customParseFormat.mjs +0 -7
  13. package/dist/_virtual/customParseFormat2.mjs +0 -4
  14. package/dist/_virtual/cytoscape-cose-bilkent.mjs +0 -7
  15. package/dist/_virtual/cytoscape-cose-bilkent2.mjs +0 -4
  16. package/dist/_virtual/cytoscape-fcose.mjs +0 -7
  17. package/dist/_virtual/cytoscape-fcose2.mjs +0 -4
  18. package/dist/_virtual/dayjs.min.mjs +0 -7
  19. package/dist/_virtual/dayjs.min2.mjs +0 -4
  20. package/dist/_virtual/events.mjs +0 -5
  21. package/dist/_virtual/events2.mjs +0 -4
  22. package/dist/_virtual/index.mjs +0 -5
  23. package/dist/_virtual/index2.mjs +0 -4
  24. package/dist/_virtual/is.mjs +0 -4
  25. package/dist/_virtual/isoWeek.mjs +0 -7
  26. package/dist/_virtual/isoWeek2.mjs +0 -4
  27. package/dist/_virtual/layout-base.mjs +0 -4
  28. package/dist/_virtual/layout-base2.mjs +0 -4
  29. package/dist/_virtual/ral.mjs +0 -4
  30. package/dist/components/code/ElmMermaid.stories.d.ts +0 -7
  31. package/dist/components/code/ElmMermaid.vue.d.ts +0 -8
  32. package/dist/components/code/ElmMermaid.vue.mjs +0 -6
  33. package/dist/components/code/ElmMermaid.vue2.mjs +0 -56
  34. package/dist/node_modules/.pnpm/@braintree_sanitize-url@7.1.1/node_modules/@braintree/sanitize-url/dist/constants.mjs +0 -20
  35. package/dist/node_modules/.pnpm/@braintree_sanitize-url@7.1.1/node_modules/@braintree/sanitize-url/dist/index.mjs +0 -76
  36. package/dist/node_modules/.pnpm/@chevrotain_gast@11.0.3/node_modules/@chevrotain/gast/lib/src/helpers.mjs +0 -57
  37. package/dist/node_modules/.pnpm/@chevrotain_gast@11.0.3/node_modules/@chevrotain/gast/lib/src/model.mjs +0 -220
  38. package/dist/node_modules/.pnpm/@chevrotain_gast@11.0.3/node_modules/@chevrotain/gast/lib/src/visitor.mjs +0 -64
  39. package/dist/node_modules/.pnpm/@chevrotain_regexp-to-ast@11.0.3/node_modules/@chevrotain/regexp-to-ast/lib/src/base-regexp-visitor.mjs +0 -101
  40. package/dist/node_modules/.pnpm/@chevrotain_regexp-to-ast@11.0.3/node_modules/@chevrotain/regexp-to-ast/lib/src/character-classes.mjs +0 -45
  41. package/dist/node_modules/.pnpm/@chevrotain_regexp-to-ast@11.0.3/node_modules/@chevrotain/regexp-to-ast/lib/src/regexp-parser.mjs +0 -693
  42. package/dist/node_modules/.pnpm/@chevrotain_regexp-to-ast@11.0.3/node_modules/@chevrotain/regexp-to-ast/lib/src/utils.mjs +0 -39
  43. package/dist/node_modules/.pnpm/@chevrotain_utils@11.0.3/node_modules/@chevrotain/utils/lib/src/print.mjs +0 -14
  44. package/dist/node_modules/.pnpm/@chevrotain_utils@11.0.3/node_modules/@chevrotain/utils/lib/src/timer.mjs +0 -10
  45. package/dist/node_modules/.pnpm/@chevrotain_utils@11.0.3/node_modules/@chevrotain/utils/lib/src/to-fast-properties.mjs +0 -15
  46. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/customisations/defaults.mjs +0 -15
  47. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon/defaults.mjs +0 -28
  48. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon/merge.mjs +0 -20
  49. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon/name.mjs +0 -54
  50. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon/transformations.mjs +0 -17
  51. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon-set/get-icon.mjs +0 -27
  52. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/icon-set/tree.mjs +0 -24
  53. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/build.mjs +0 -120
  54. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/defs.mjs +0 -33
  55. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/html.mjs +0 -10
  56. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/id.mjs +0 -29
  57. package/dist/node_modules/.pnpm/@iconify_utils@2.3.0/node_modules/@iconify/utils/lib/svg/size.mjs +0 -41
  58. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.4.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/architecture-4AB2E3PP.mjs +0 -6
  59. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.4.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-2NYFTIL2.mjs +0 -34
  60. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.4.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-2O5ZK7RR.mjs +0 -34
  61. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.4.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-7PKI6E2E.mjs +0 -541
  62. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.4.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-C4OEIS7N.mjs +0 -46
  63. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.4.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-EXZZNE6F.mjs +0 -34
  64. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.4.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-ROXG7S4E.mjs +0 -42
  65. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.4.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-V4Q32G6S.mjs +0 -34
  66. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.4.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/gitGraph-O2Q2CXLX.mjs +0 -6
  67. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.4.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-4N47QTOZ.mjs +0 -6
  68. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.4.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-KVYON367.mjs +0 -6
  69. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.4.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-R6RNRRYF.mjs +0 -6
  70. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.4.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-MK3ICKWK.mjs +0 -6
  71. package/dist/node_modules/.pnpm/@mermaid-js_parser@0.4.0/node_modules/@mermaid-js/parser/dist/mermaid-parser.core.mjs +0 -115
  72. package/dist/node_modules/.pnpm/chevrotain-allstar@0.3.1_chevrotain@11.0.3/node_modules/chevrotain-allstar/lib/all-star-lookahead.mjs +0 -531
  73. package/dist/node_modules/.pnpm/chevrotain-allstar@0.3.1_chevrotain@11.0.3/node_modules/chevrotain-allstar/lib/atn.mjs +0 -393
  74. package/dist/node_modules/.pnpm/chevrotain-allstar@0.3.1_chevrotain@11.0.3/node_modules/chevrotain-allstar/lib/dfa.mjs +0 -42
  75. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/lang/lang_extensions.mjs +0 -12
  76. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/constants.mjs +0 -4
  77. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/cst/cst.mjs +0 -42
  78. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/cst/cst_visitor.mjs +0 -87
  79. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/errors_public.mjs +0 -161
  80. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/exceptions_public.mjs +0 -60
  81. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/grammar/checks.mjs +0 -416
  82. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/grammar/first.mjs +0 -47
  83. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/grammar/follow.mjs +0 -41
  84. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_resolver_public.mjs +0 -24
  85. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/grammar/interpreter.mjs +0 -424
  86. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/grammar/keys.mjs +0 -22
  87. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/grammar/llk_lookahead.mjs +0 -48
  88. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/grammar/lookahead.mjs +0 -387
  89. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/grammar/resolver.mjs +0 -40
  90. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/grammar/rest.mjs +0 -83
  91. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/parser/parser.mjs +0 -181
  92. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/parser/traits/context_assist.mjs +0 -25
  93. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/parser/traits/error_handler.mjs +0 -69
  94. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/parser/traits/gast_recorder.mjs +0 -270
  95. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/parser/traits/lexer_adapter.mjs +0 -59
  96. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/parser/traits/looksahead.mjs +0 -128
  97. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/parser/traits/perf_tracer.mjs +0 -38
  98. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_api.mjs +0 -323
  99. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_engine.mjs +0 -434
  100. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/parser/traits/recoverable.mjs +0 -251
  101. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/parser/traits/tree_builder.mjs +0 -167
  102. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/parser/utils/apply_mixins.mjs +0 -19
  103. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/scan/lexer.mjs +0 -720
  104. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/scan/lexer_errors_public.mjs +0 -11
  105. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/scan/lexer_public.mjs +0 -552
  106. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/scan/reg_exp.mjs +0 -214
  107. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/scan/reg_exp_parser.mjs +0 -20
  108. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/scan/tokens.mjs +0 -115
  109. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/scan/tokens_public.mjs +0 -88
  110. package/dist/node_modules/.pnpm/cose-base@1.0.3/node_modules/cose-base/cose-base.mjs +0 -1090
  111. package/dist/node_modules/.pnpm/cose-base@2.2.0/node_modules/cose-base/cose-base.mjs +0 -2555
  112. package/dist/node_modules/.pnpm/cytoscape-cose-bilkent@4.1.0_cytoscape@3.31.1/node_modules/cytoscape-cose-bilkent/cytoscape-cose-bilkent.mjs +0 -374
  113. package/dist/node_modules/.pnpm/cytoscape-fcose@2.2.0_cytoscape@3.31.1/node_modules/cytoscape-fcose/cytoscape-fcose.mjs +0 -1278
  114. package/dist/node_modules/.pnpm/cytoscape@3.31.1/node_modules/cytoscape/dist/cytoscape.esm.mjs +0 -29469
  115. package/dist/node_modules/.pnpm/d3-array@2.12.1/node_modules/d3-array/src/max.mjs +0 -21
  116. package/dist/node_modules/.pnpm/d3-array@2.12.1/node_modules/d3-array/src/min.mjs +0 -21
  117. package/dist/node_modules/.pnpm/d3-array@2.12.1/node_modules/d3-array/src/sum.mjs +0 -21
  118. package/dist/node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/ascending.mjs +0 -6
  119. package/dist/node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/bisect.mjs +0 -10
  120. package/dist/node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/bisector.mjs +0 -47
  121. package/dist/node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/descending.mjs +0 -6
  122. package/dist/node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/max.mjs +0 -21
  123. package/dist/node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/min.mjs +0 -21
  124. package/dist/node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/number.mjs +0 -6
  125. package/dist/node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/range.mjs +0 -11
  126. package/dist/node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/ticks.mjs +0 -51
  127. package/dist/node_modules/.pnpm/d3-axis@3.0.0/node_modules/d3-axis/src/axis.mjs +0 -94
  128. package/dist/node_modules/.pnpm/d3-axis@3.0.0/node_modules/d3-axis/src/identity.mjs +0 -6
  129. package/dist/node_modules/.pnpm/d3-color@3.1.0/node_modules/d3-color/src/color.mjs +0 -338
  130. package/dist/node_modules/.pnpm/d3-color@3.1.0/node_modules/d3-color/src/define.mjs +0 -13
  131. package/dist/node_modules/.pnpm/d3-color@3.1.0/node_modules/d3-color/src/lab.mjs +0 -95
  132. package/dist/node_modules/.pnpm/d3-color@3.1.0/node_modules/d3-color/src/math.mjs +0 -6
  133. package/dist/node_modules/.pnpm/d3-dispatch@3.0.1/node_modules/d3-dispatch/src/dispatch.mjs +0 -70
  134. package/dist/node_modules/.pnpm/d3-ease@3.0.1/node_modules/d3-ease/src/cubic.mjs +0 -6
  135. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/defaultLocale.mjs +0 -20
  136. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/exponent.mjs +0 -7
  137. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/formatDecimal.mjs +0 -15
  138. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/formatGroup.mjs +0 -15
  139. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/formatNumerals.mjs +0 -10
  140. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/formatPrefixAuto.mjs +0 -12
  141. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/formatRounded.mjs +0 -10
  142. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/formatSpecifier.mjs +0 -37
  143. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/formatTrim.mjs +0 -21
  144. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/formatTypes.mjs +0 -21
  145. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/identity.mjs +0 -6
  146. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/locale.mjs +0 -82
  147. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/precisionFixed.mjs +0 -7
  148. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/precisionPrefix.mjs +0 -7
  149. package/dist/node_modules/.pnpm/d3-format@3.1.0/node_modules/d3-format/src/precisionRound.mjs +0 -8
  150. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/array.mjs +0 -13
  151. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/color.mjs +0 -29
  152. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/constant.mjs +0 -4
  153. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/date.mjs +0 -9
  154. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/hcl.mjs +0 -18
  155. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/number.mjs +0 -8
  156. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/numberArray.mjs +0 -15
  157. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/object.mjs +0 -20
  158. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/rgb.mjs +0 -20
  159. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/round.mjs +0 -8
  160. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/string.mjs +0 -43
  161. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/transform/decompose.mjs +0 -28
  162. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/transform/index.mjs +0 -59
  163. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/transform/parse.mjs +0 -18
  164. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/value.mjs +0 -16
  165. package/dist/node_modules/.pnpm/d3-path@1.0.9/node_modules/d3-path/src/path.mjs +0 -73
  166. package/dist/node_modules/.pnpm/d3-path@3.1.0/node_modules/d3-path/src/path.mjs +0 -88
  167. package/dist/node_modules/.pnpm/d3-sankey@0.12.3/node_modules/d3-sankey/src/align.mjs +0 -22
  168. package/dist/node_modules/.pnpm/d3-sankey@0.12.3/node_modules/d3-sankey/src/constant.mjs +0 -8
  169. package/dist/node_modules/.pnpm/d3-sankey@0.12.3/node_modules/d3-sankey/src/sankey.mjs +0 -326
  170. package/dist/node_modules/.pnpm/d3-sankey@0.12.3/node_modules/d3-sankey/src/sankeyLinkHorizontal.mjs +0 -13
  171. package/dist/node_modules/.pnpm/d3-scale-chromatic@3.1.0/node_modules/d3-scale-chromatic/src/categorical/Tableau10.mjs +0 -5
  172. package/dist/node_modules/.pnpm/d3-scale-chromatic@3.1.0/node_modules/d3-scale-chromatic/src/colors.mjs +0 -8
  173. package/dist/node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/band.mjs +0 -56
  174. package/dist/node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/constant.mjs +0 -8
  175. package/dist/node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/continuous.mjs +0 -95
  176. package/dist/node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/init.mjs +0 -16
  177. package/dist/node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/linear.mjs +0 -61
  178. package/dist/node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/nice.mjs +0 -14
  179. package/dist/node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/number.mjs +0 -6
  180. package/dist/node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/ordinal.mjs +0 -38
  181. package/dist/node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/tickFormat.mjs +0 -34
  182. package/dist/node_modules/.pnpm/d3-scale@4.0.2/node_modules/d3-scale/src/time.mjs +0 -54
  183. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/array.mjs +0 -6
  184. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/constant.mjs +0 -8
  185. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/creator.mjs +0 -20
  186. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/matcher.mjs +0 -14
  187. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/namespace.mjs +0 -9
  188. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/namespaces.mjs +0 -12
  189. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/select.mjs +0 -7
  190. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/append.mjs +0 -10
  191. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/attr.mjs +0 -46
  192. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/call.mjs +0 -9
  193. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/classed.mjs +0 -64
  194. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/clone.mjs +0 -14
  195. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/data.mjs +0 -76
  196. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/datum.mjs +0 -6
  197. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/dispatch.mjs +0 -28
  198. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/each.mjs +0 -11
  199. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/empty.mjs +0 -6
  200. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/enter.mjs +0 -31
  201. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/exit.mjs +0 -8
  202. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/filter.mjs +0 -16
  203. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/html.mjs +0 -20
  204. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/index.mjs +0 -88
  205. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/insert.mjs +0 -14
  206. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/iterator.mjs +0 -10
  207. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/join.mjs +0 -19
  208. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/lower.mjs +0 -9
  209. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/merge.mjs +0 -18
  210. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/node.mjs +0 -12
  211. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/nodes.mjs +0 -6
  212. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/on.mjs +0 -64
  213. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/order.mjs +0 -14
  214. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/property.mjs +0 -23
  215. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/raise.mjs +0 -9
  216. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/remove.mjs +0 -10
  217. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/select.mjs +0 -17
  218. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/selectAll.mjs +0 -24
  219. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/selectChild.mjs +0 -16
  220. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/selectChildren.mjs +0 -16
  221. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/size.mjs +0 -8
  222. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/sort.mjs +0 -22
  223. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/sparse.mjs +0 -6
  224. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/style.mjs +0 -28
  225. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selection/text.mjs +0 -20
  226. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selector.mjs +0 -10
  227. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/selectorAll.mjs +0 -11
  228. package/dist/node_modules/.pnpm/d3-selection@3.0.0/node_modules/d3-selection/src/window.mjs +0 -6
  229. package/dist/node_modules/.pnpm/d3-shape@1.3.7/node_modules/d3-shape/src/array.mjs +0 -4
  230. package/dist/node_modules/.pnpm/d3-shape@1.3.7/node_modules/d3-shape/src/constant.mjs +0 -8
  231. package/dist/node_modules/.pnpm/d3-shape@1.3.7/node_modules/d3-shape/src/link/index.mjs +0 -45
  232. package/dist/node_modules/.pnpm/d3-shape@1.3.7/node_modules/d3-shape/src/point.mjs +0 -10
  233. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/arc.mjs +0 -133
  234. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/array.mjs +0 -6
  235. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/constant.mjs +0 -8
  236. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/basis.mjs +0 -66
  237. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/basisClosed.mjs +0 -63
  238. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/basisOpen.mjs +0 -50
  239. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/bump.mjs +0 -49
  240. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/bundle.mjs +0 -43
  241. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/cardinal.mjs +0 -73
  242. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/cardinalClosed.mjs +0 -69
  243. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/cardinalOpen.mjs +0 -57
  244. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/catmullRom.mjs +0 -83
  245. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/catmullRomClosed.mjs +0 -75
  246. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/catmullRomOpen.mjs +0 -63
  247. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/linear.mjs +0 -39
  248. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/linearClosed.mjs +0 -25
  249. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/monotone.mjs +0 -99
  250. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/natural.mjs +0 -54
  251. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/curve/step.mjs +0 -59
  252. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/descending.mjs +0 -6
  253. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/identity.mjs +0 -6
  254. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/line.mjs +0 -41
  255. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/math.mjs +0 -32
  256. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/noop.mjs +0 -5
  257. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/path.mjs +0 -19
  258. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/pie.mjs +0 -55
  259. package/dist/node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/point.mjs +0 -10
  260. package/dist/node_modules/.pnpm/d3-time-format@4.1.0/node_modules/d3-time-format/src/defaultLocale.mjs +0 -25
  261. package/dist/node_modules/.pnpm/d3-time-format@4.1.0/node_modules/d3-time-format/src/locale.mjs +0 -542
  262. package/dist/node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/day.mjs +0 -34
  263. package/dist/node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/duration.mjs +0 -16
  264. package/dist/node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/hour.mjs +0 -26
  265. package/dist/node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/interval.mjs +0 -61
  266. package/dist/node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/millisecond.mjs +0 -23
  267. package/dist/node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/minute.mjs +0 -26
  268. package/dist/node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/month.mjs +0 -27
  269. package/dist/node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/second.mjs +0 -15
  270. package/dist/node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/ticks.mjs +0 -54
  271. package/dist/node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/week.mjs +0 -66
  272. package/dist/node_modules/.pnpm/d3-time@3.1.0/node_modules/d3-time/src/year.mjs +0 -45
  273. package/dist/node_modules/.pnpm/d3-timer@3.0.1/node_modules/d3-timer/src/timeout.mjs +0 -13
  274. package/dist/node_modules/.pnpm/d3-timer@3.0.1/node_modules/d3-timer/src/timer.mjs +0 -96
  275. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/interrupt.mjs +0 -21
  276. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/selection/index.mjs +0 -5
  277. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/selection/interrupt.mjs +0 -9
  278. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/selection/transition.mjs +0 -39
  279. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/attr.mjs +0 -55
  280. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/attrTween.mjs +0 -42
  281. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/delay.mjs +0 -18
  282. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/duration.mjs +0 -18
  283. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/ease.mjs +0 -14
  284. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/easeVarying.mjs +0 -15
  285. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/end.mjs +0 -23
  286. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/filter.mjs +0 -16
  287. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/index.mjs +0 -68
  288. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/interpolate.mjs +0 -11
  289. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/merge.mjs +0 -18
  290. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/on.mjs +0 -23
  291. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/remove.mjs +0 -13
  292. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/schedule.mjs +0 -125
  293. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/select.mjs +0 -20
  294. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/selectAll.mjs +0 -24
  295. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/selection.mjs +0 -8
  296. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/style.mjs +0 -47
  297. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/styleTween.mjs +0 -25
  298. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/text.mjs +0 -18
  299. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/textTween.mjs +0 -25
  300. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/transition.mjs +0 -22
  301. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/tween.mjs +0 -64
  302. package/dist/node_modules/.pnpm/d3-zoom@3.0.0/node_modules/d3-zoom/src/transform.mjs +0 -45
  303. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/acyclic.mjs +0 -55
  304. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/add-border-segments.mjs +0 -33
  305. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/coordinate-system.mjs +0 -66
  306. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/data/list.mjs +0 -49
  307. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/greedy-fas.mjs +0 -97
  308. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/layout.mjs +0 -344
  309. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/nesting-graph.mjs +0 -94
  310. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/normalize.mjs +0 -69
  311. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/order/add-subgraph-constraints.mjs +0 -25
  312. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/order/barycenter.mjs +0 -29
  313. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/order/build-layer-graph.mjs +0 -33
  314. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/order/cross-count.mjs +0 -54
  315. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/order/index.mjs +0 -51
  316. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/order/init-order.mjs +0 -30
  317. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/order/resolve-conflicts.mjs +0 -84
  318. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/order/sort-subgraph.mjs +0 -66
  319. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/order/sort.mjs +0 -47
  320. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/parent-dummy-chains.mjs +0 -66
  321. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/position/bk.mjs +0 -296
  322. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/position/index.mjs +0 -29
  323. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/rank/feasible-tree.mjs +0 -45
  324. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/rank/index.mjs +0 -29
  325. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/rank/network-simplex.mjs +0 -148
  326. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/rank/util.mjs +0 -30
  327. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/dagre/util.mjs +0 -164
  328. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/graphlib/alg/dfs.mjs +0 -33
  329. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/graphlib/alg/dijkstra.mjs +0 -2
  330. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/graphlib/alg/floyd-warshall.mjs +0 -2
  331. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/graphlib/alg/postorder.mjs +0 -7
  332. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/graphlib/alg/preorder.mjs +0 -7
  333. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/graphlib/alg/topsort.mjs +0 -7
  334. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/graphlib/graph.mjs +0 -420
  335. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.11/node_modules/dagre-d3-es/src/graphlib/json.mjs +0 -47
  336. package/dist/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/dayjs.min.mjs +0 -286
  337. package/dist/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/advancedFormat.mjs +0 -58
  338. package/dist/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/customParseFormat.mjs +0 -133
  339. package/dist/node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/plugin/isoWeek.mjs +0 -37
  340. package/dist/node_modules/.pnpm/dompurify@3.2.4/node_modules/dompurify/dist/purify.es.mjs +0 -965
  341. package/dist/node_modules/.pnpm/internmap@2.0.3/node_modules/internmap/src/index.mjs +0 -43
  342. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/channels/index.mjs +0 -131
  343. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/channels/reusable.mjs +0 -5
  344. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/channels/type.mjs +0 -24
  345. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/color/hex.mjs +0 -40
  346. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/color/hsl.mjs +0 -50
  347. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/color/index.mjs +0 -39
  348. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/color/keyword.mjs +0 -172
  349. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/color/rgb.mjs +0 -33
  350. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/constants.mjs +0 -13
  351. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/methods/adjust.mjs +0 -15
  352. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/methods/adjust_channel.mjs +0 -13
  353. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/methods/change.mjs +0 -12
  354. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/methods/channel.mjs +0 -8
  355. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/methods/darken.mjs +0 -7
  356. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/methods/invert.mjs +0 -12
  357. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/methods/is_dark.mjs +0 -7
  358. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/methods/is_light.mjs +0 -7
  359. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/methods/lighten.mjs +0 -7
  360. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/methods/luminance.mjs +0 -10
  361. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/methods/mix.mjs +0 -20
  362. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/methods/rgba.mjs +0 -18
  363. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/utils/channel.mjs +0 -95
  364. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/utils/index.mjs +0 -11
  365. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/utils/lang.mjs +0 -14
  366. package/dist/node_modules/.pnpm/khroma@2.1.0/node_modules/khroma/dist/utils/unit.mjs +0 -10
  367. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/default-module.mjs +0 -87
  368. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/dependency-injection.mjs +0 -74
  369. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/documentation/comment-provider.mjs +0 -17
  370. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/documentation/documentation-provider.mjs +0 -62
  371. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/documentation/jsdoc.mjs +0 -478
  372. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/languages/generated/ast.mjs +0 -725
  373. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/languages/grammar-config.mjs +0 -20
  374. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/parser/async-parser.mjs +0 -11
  375. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/parser/completion-parser-builder.mjs +0 -13
  376. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/parser/cst-node-builder.mjs +0 -233
  377. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/parser/langium-parser-builder.mjs +0 -17
  378. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/parser/langium-parser.mjs +0 -453
  379. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/parser/lexer.mjs +0 -72
  380. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/parser/parser-builder-base.mjs +0 -336
  381. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/parser/token-builder.mjs +0 -105
  382. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/parser/value-converter.mjs +0 -111
  383. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/references/linker.mjs +0 -139
  384. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/references/name-provider.mjs +0 -19
  385. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/references/references.mjs +0 -80
  386. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/references/scope-computation.mjs +0 -70
  387. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/references/scope-provider.mjs +0 -62
  388. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/references/scope.mjs +0 -60
  389. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/serializer/hydrator.mjs +0 -256
  390. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/serializer/json-serializer.mjs +0 -202
  391. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/service-registry.mjs +0 -69
  392. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/syntax-tree.mjs +0 -73
  393. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/utils/ast-utils.mjs +0 -159
  394. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/utils/caching.mjs +0 -137
  395. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/utils/collections.mjs +0 -177
  396. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/utils/cst-utils.mjs +0 -126
  397. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/utils/disposable.mjs +0 -12
  398. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/utils/errors.mjs +0 -12
  399. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/utils/grammar-loader.mjs +0 -33
  400. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/utils/grammar-utils.mjs +0 -377
  401. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/utils/promise-utils.mjs +0 -56
  402. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/utils/regexp-utils.mjs +0 -239
  403. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/utils/stream.mjs +0 -466
  404. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/utils/uri-utils.mjs +0 -37
  405. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/validation/document-validator.mjs +0 -236
  406. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/validation/validation-registry.mjs +0 -142
  407. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/workspace/ast-descriptions.mjs +0 -75
  408. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/workspace/ast-node-locator.mjs +0 -43
  409. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/workspace/configuration.mjs +0 -81
  410. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/workspace/document-builder.mjs +0 -328
  411. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/workspace/documents.mjs +0 -210
  412. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/workspace/file-system-provider.mjs +0 -15
  413. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/workspace/index-manager.mjs +0 -74
  414. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/workspace/workspace-lock.mjs +0 -64
  415. package/dist/node_modules/.pnpm/langium@3.3.1/node_modules/langium/lib/workspace/workspace-manager.mjs +0 -106
  416. package/dist/node_modules/.pnpm/layout-base@1.0.2/node_modules/layout-base/layout-base.mjs +0 -3197
  417. package/dist/node_modules/.pnpm/layout-base@2.0.1/node_modules/layout-base/layout-base.mjs +0 -3745
  418. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_DataView.mjs +0 -6
  419. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Hash.mjs +0 -21
  420. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_ListCache.mjs +0 -21
  421. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Map.mjs +0 -6
  422. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_MapCache.mjs +0 -21
  423. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Promise.mjs +0 -6
  424. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Set.mjs +0 -6
  425. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_SetCache.mjs +0 -15
  426. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Stack.mjs +0 -18
  427. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Symbol.mjs +0 -5
  428. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Uint8Array.mjs +0 -5
  429. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_WeakMap.mjs +0 -6
  430. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_apply.mjs +0 -16
  431. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayEach.mjs +0 -12
  432. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayFilter.mjs +0 -13
  433. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayIncludes.mjs +0 -8
  434. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayLikeKeys.mjs +0 -24
  435. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayMap.mjs +0 -10
  436. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayPush.mjs +0 -10
  437. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arrayReduce.mjs +0 -13
  438. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_arraySome.mjs +0 -12
  439. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assignMergeValue.mjs +0 -10
  440. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assignValue.mjs +0 -13
  441. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_assocIndexOf.mjs +0 -13
  442. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseAssign.mjs +0 -8
  443. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseAssignValue.mjs +0 -16
  444. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseClone.mjs +0 -83
  445. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseCreate.mjs +0 -21
  446. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseEach.mjs +0 -6
  447. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseExtremum.mjs +0 -14
  448. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseFilter.mjs +0 -13
  449. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseFindIndex.mjs +0 -12
  450. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseFlatten.mjs +0 -21
  451. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseFor.mjs +0 -5
  452. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseForOwn.mjs +0 -8
  453. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGet.mjs +0 -13
  454. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetAllKeys.mjs +0 -9
  455. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetTag.mjs +0 -14
  456. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseHasIn.mjs +0 -6
  457. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIndexOf.mjs +0 -9
  458. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsArguments.mjs +0 -9
  459. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsEqual.mjs +0 -14
  460. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsEqualDeep.mjs +0 -45
  461. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsMap.mjs +0 -9
  462. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsMatch.mjs +0 -35
  463. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsNaN.mjs +0 -6
  464. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsNative.mjs +0 -22
  465. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsSet.mjs +0 -9
  466. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIsTypedArray.mjs +0 -14
  467. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseIteratee.mjs +0 -20
  468. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseKeys.mjs +0 -19
  469. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseKeysIn.mjs +0 -20
  470. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseLt.mjs +0 -6
  471. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseMap.mjs +0 -12
  472. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseMatches.mjs +0 -15
  473. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseMatchesProperty.mjs +0 -20
  474. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseMerge.mjs +0 -27
  475. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseMergeDeep.mjs +0 -61
  476. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseProperty.mjs +0 -8
  477. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_basePropertyDeep.mjs +0 -9
  478. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseReduce.mjs +0 -9
  479. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseRest.mjs +0 -9
  480. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseSetToString.mjs +0 -14
  481. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseTimes.mjs +0 -10
  482. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseToString.mjs +0 -21
  483. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseUnary.mjs +0 -8
  484. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseUniq.mjs +0 -46
  485. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cacheHas.mjs +0 -6
  486. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_castFunction.mjs +0 -7
  487. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_castPath.mjs +0 -13
  488. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneArrayBuffer.mjs +0 -9
  489. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneBuffer.mjs +0 -16
  490. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneDataView.mjs +0 -7
  491. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneRegExp.mjs +0 -9
  492. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneSymbol.mjs +0 -8
  493. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneTypedArray.mjs +0 -8
  494. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_copyArray.mjs +0 -11
  495. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_copyObject.mjs +0 -23
  496. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_copySymbols.mjs +0 -8
  497. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_coreJsData.mjs +0 -5
  498. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createAssigner.mjs +0 -23
  499. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createBaseEach.mjs +0 -21
  500. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createBaseFor.mjs +0 -15
  501. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_createSet.mjs +0 -10
  502. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_defineProperty.mjs +0 -12
  503. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_equalArrays.mjs +0 -50
  504. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_equalByTag.mjs +0 -59
  505. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_equalObjects.mjs +0 -50
  506. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.mjs +0 -4
  507. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getAllKeys.mjs +0 -9
  508. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getMapData.mjs +0 -8
  509. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getMatchData.mjs +0 -13
  510. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getNative.mjs +0 -9
  511. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getPrototype.mjs +0 -5
  512. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getRawTag.mjs +0 -25
  513. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getSymbols.mjs +0 -17
  514. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getTag.mjs +0 -34
  515. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getValue.mjs +0 -6
  516. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hasPath.mjs +0 -25
  517. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashClear.mjs +0 -8
  518. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashDelete.mjs +0 -8
  519. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashGet.mjs +0 -15
  520. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashHas.mjs +0 -10
  521. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_hashSet.mjs +0 -11
  522. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_initCloneArray.mjs +0 -13
  523. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_initCloneByTag.mjs +0 -43
  524. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_initCloneObject.mjs +0 -9
  525. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isFlattenable.mjs +0 -10
  526. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isIndex.mjs +0 -10
  527. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isIterateeCall.mjs +0 -17
  528. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isKey.mjs +0 -16
  529. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isKeyable.mjs +0 -7
  530. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isMasked.mjs +0 -11
  531. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isPrototype.mjs +0 -8
  532. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_isStrictComparable.mjs +0 -7
  533. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheClear.mjs +0 -7
  534. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheDelete.mjs +0 -20
  535. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheGet.mjs +0 -8
  536. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheHas.mjs +0 -7
  537. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_listCacheSet.mjs +0 -14
  538. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheClear.mjs +0 -14
  539. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheDelete.mjs +0 -9
  540. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheGet.mjs +0 -7
  541. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheHas.mjs +0 -7
  542. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapCacheSet.mjs +0 -10
  543. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_mapToArray.mjs +0 -10
  544. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_matchesStrictComparable.mjs +0 -11
  545. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_memoizeCapped.mjs +0 -15
  546. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeCreate.mjs +0 -5
  547. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeKeys.mjs +0 -5
  548. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nativeKeysIn.mjs +0 -12
  549. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_nodeUtil.mjs +0 -18
  550. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_objectToString.mjs +0 -8
  551. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_overArg.mjs +0 -8
  552. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_overRest.mjs +0 -21
  553. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_root.mjs +0 -6
  554. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_safeGet.mjs +0 -12
  555. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setCacheAdd.mjs +0 -8
  556. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setCacheHas.mjs +0 -6
  557. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setToArray.mjs +0 -10
  558. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_setToString.mjs +0 -6
  559. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_shortOut.mjs +0 -20
  560. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackClear.mjs +0 -8
  561. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackDelete.mjs +0 -8
  562. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackGet.mjs +0 -6
  563. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackHas.mjs +0 -6
  564. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stackSet.mjs +0 -22
  565. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_strictIndexOf.mjs +0 -12
  566. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_stringToPath.mjs +0 -16
  567. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_toKey.mjs +0 -11
  568. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_toSource.mjs +0 -18
  569. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/clone.mjs +0 -8
  570. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/constant.mjs +0 -8
  571. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/eq.mjs +0 -6
  572. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/filter.mjs +0 -11
  573. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/flatMap.mjs +0 -8
  574. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/flatten.mjs +0 -8
  575. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/forEach.mjs +0 -11
  576. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/get.mjs +0 -8
  577. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/hasIn.mjs +0 -8
  578. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/identity.mjs +0 -6
  579. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArguments.mjs +0 -13
  580. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArray.mjs +0 -4
  581. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArrayLike.mjs +0 -8
  582. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArrayLikeObject.mjs +0 -8
  583. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isBuffer.mjs +0 -11
  584. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isEmpty.mjs +0 -35
  585. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isFunction.mjs +0 -13
  586. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isLength.mjs +0 -7
  587. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isMap.mjs +0 -8
  588. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObject.mjs +0 -7
  589. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObjectLike.mjs +0 -6
  590. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isPlainObject.mjs +0 -22
  591. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isSet.mjs +0 -8
  592. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isSymbol.mjs +0 -9
  593. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isTypedArray.mjs +0 -8
  594. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/keys.mjs +0 -9
  595. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/keysIn.mjs +0 -9
  596. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/map.mjs +0 -11
  597. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/memoize.mjs +0 -22
  598. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/merge.mjs +0 -8
  599. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/min.mjs +0 -9
  600. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/noop.mjs +0 -5
  601. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/property.mjs +0 -10
  602. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/reduce.mjs +0 -12
  603. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/stubArray.mjs +0 -6
  604. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/stubFalse.mjs +0 -6
  605. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toPlainObject.mjs +0 -8
  606. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toString.mjs +0 -7
  607. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/uniqBy.mjs +0 -8
  608. package/dist/node_modules/.pnpm/marked@15.0.7/node_modules/marked/lib/marked.esm.mjs +0 -2152
  609. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/architectureDiagram-IEHRJDOE.mjs +0 -1093
  610. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-JOT3LUYC.mjs +0 -3598
  611. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-VJAJSXHY.mjs +0 -2487
  612. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-4BMEZGHF.mjs +0 -17
  613. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-5NNNAHNI.mjs +0 -143
  614. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-6JRP7KZX.mjs +0 -2696
  615. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-7B677QYD.mjs +0 -19
  616. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-A2AXSNBT.mjs +0 -1828
  617. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-AEK57VVT.mjs +0 -1961
  618. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-C3MQ5ANM.mjs +0 -332
  619. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-D6G4REZN.mjs +0 -109
  620. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-H2D2JQ3I.mjs +0 -78
  621. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-HRU6DDCH.mjs +0 -5018
  622. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-IIMUDSI4.mjs +0 -696
  623. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-K557N5IZ.mjs +0 -17
  624. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-O4NI6UNU.mjs +0 -557
  625. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-RZ5BOZE2.mjs +0 -38
  626. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-TYCBKAJE.mjs +0 -57
  627. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-VV3M67IP.mjs +0 -107
  628. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-XZIHB7SX.mjs +0 -17
  629. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/chunk-YTJNT7DU.mjs +0 -3052
  630. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-GIVACNV2.mjs +0 -27
  631. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-COTLJTTW.mjs +0 -27
  632. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/dagre-OKDRZEBW.mjs +0 -662
  633. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/diagram-SSKATNLV.mjs +0 -306
  634. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/diagram-VNBRO52H.mjs +0 -191
  635. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/erDiagram-Q7BY3M3F.mjs +0 -1168
  636. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/flowDiagram-4HSFHLVR.mjs +0 -2339
  637. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-APWFNJXF.mjs +0 -2104
  638. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/gitGraphDiagram-7IBYFJ6S.mjs +0 -1215
  639. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/infoDiagram-PH2N3AL5.mjs +0 -31
  640. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/journeyDiagram-U35MCT3I.mjs +0 -1201
  641. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/kanban-definition-NDS4AKOZ.mjs +0 -1055
  642. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/mindmap-definition-ALO5MXBD.mjs +0 -1195
  643. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/pieDiagram-IB7DONF6.mjs +0 -188
  644. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/quadrantDiagram-7GDLP6J5.mjs +0 -1340
  645. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/requirementDiagram-KVF5MWMF.mjs +0 -1168
  646. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/sankeyDiagram-QLVOVGJD.mjs +0 -670
  647. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-X6HHIX6F.mjs +0 -3419
  648. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-DGXRK772.mjs +0 -477
  649. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-YXO3MK2T.mjs +0 -27
  650. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/timeline-definition-BDJGKUSR.mjs +0 -1232
  651. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/chunks/mermaid.core/xychartDiagram-VJFVF3MP.mjs +0 -1778
  652. package/dist/node_modules/.pnpm/mermaid@11.6.0/node_modules/mermaid/dist/mermaid.core.mjs +0 -1222
  653. package/dist/node_modules/.pnpm/roughjs@4.6.6/node_modules/roughjs/bundled/rough.esm.mjs +0 -1001
  654. package/dist/node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Enum.mjs +0 -16
  655. package/dist/node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Parser.mjs +0 -164
  656. package/dist/node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Serializer.mjs +0 -29
  657. package/dist/node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Tokenizer.mjs +0 -156
  658. package/dist/node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Utility.mjs +0 -38
  659. package/dist/node_modules/.pnpm/ts-dedent@2.2.0/node_modules/ts-dedent/esm/index.mjs +0 -42
  660. package/dist/node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/cancellation.mjs +0 -95
  661. package/dist/node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/events.mjs +0 -133
  662. package/dist/node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/is.mjs +0 -40
  663. package/dist/node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/ral.mjs +0 -28
  664. package/dist/node_modules/.pnpm/vscode-languageserver-textdocument@1.0.12/node_modules/vscode-languageserver-textdocument/lib/esm/main.mjs +0 -225
  665. package/dist/node_modules/.pnpm/vscode-languageserver-types@3.17.5/node_modules/vscode-languageserver-types/lib/esm/main.mjs +0 -1262
  666. package/dist/node_modules/.pnpm/vscode-uri@3.0.8/node_modules/vscode-uri/lib/esm/index.mjs +0 -344
@@ -1,3419 +0,0 @@
1
- var _a;
2
- import { drawBackgroundRect, getTextObj, getNoteRect, drawRect, drawEmbeddedImage, drawImage } from "./chunk-D6G4REZN.mjs";
3
- import { ImperativeState } from "./chunk-XZIHB7SX.mjs";
4
- import { utils_default, parseFontSize, ZERO_WIDTH_SPACE } from "./chunk-O4NI6UNU.mjs";
5
- import { __name, setConfig2, getConfig2, log, configureSvgSize, assignWithDepth_default, common_default, setAccTitle, setAccDescription, setDiagramTitle, getAccTitle, getAccDescription, getDiagramTitle, clear, sanitizeText, hasKatex, calculateMathMLDimensions, renderKatex, getConfig } from "./chunk-YTJNT7DU.mjs";
6
- import "../../../../../../d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/selection/index.mjs";
7
- import "../../../../../../d3-zoom@3.0.0/node_modules/d3-zoom/src/transform.mjs";
8
- import { d as distExports } from "../../../../../../../../_virtual/index.mjs";
9
- import select from "../../../../../../d3-selection@3.0.0/node_modules/d3-selection/src/select.mjs";
10
- var parser = function() {
11
- var o = /* @__PURE__ */ __name(function(k, v, o2, l) {
12
- for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v) ;
13
- return o2;
14
- }, "o"), $V0 = [1, 2], $V1 = [1, 3], $V2 = [1, 4], $V3 = [2, 4], $V4 = [1, 9], $V5 = [1, 11], $V6 = [1, 13], $V7 = [1, 14], $V8 = [1, 16], $V9 = [1, 17], $Va = [1, 18], $Vb = [1, 24], $Vc = [1, 25], $Vd = [1, 26], $Ve = [1, 27], $Vf = [1, 28], $Vg = [1, 29], $Vh = [1, 30], $Vi = [1, 31], $Vj = [1, 32], $Vk = [1, 33], $Vl = [1, 34], $Vm = [1, 35], $Vn = [1, 36], $Vo = [1, 37], $Vp = [1, 38], $Vq = [1, 39], $Vr = [1, 41], $Vs = [1, 42], $Vt = [1, 43], $Vu = [1, 44], $Vv = [1, 45], $Vw = [1, 46], $Vx = [1, 4, 5, 13, 14, 16, 18, 21, 23, 29, 30, 31, 33, 35, 36, 37, 38, 39, 41, 43, 44, 46, 47, 48, 49, 50, 52, 53, 54, 59, 60, 61, 62, 70], $Vy = [4, 5, 16, 50, 52, 53], $Vz = [4, 5, 13, 14, 16, 18, 21, 23, 29, 30, 31, 33, 35, 36, 37, 38, 39, 41, 43, 44, 46, 50, 52, 53, 54, 59, 60, 61, 62, 70], $VA = [4, 5, 13, 14, 16, 18, 21, 23, 29, 30, 31, 33, 35, 36, 37, 38, 39, 41, 43, 44, 46, 49, 50, 52, 53, 54, 59, 60, 61, 62, 70], $VB = [4, 5, 13, 14, 16, 18, 21, 23, 29, 30, 31, 33, 35, 36, 37, 38, 39, 41, 43, 44, 46, 48, 50, 52, 53, 54, 59, 60, 61, 62, 70], $VC = [4, 5, 13, 14, 16, 18, 21, 23, 29, 30, 31, 33, 35, 36, 37, 38, 39, 41, 43, 44, 46, 47, 50, 52, 53, 54, 59, 60, 61, 62, 70], $VD = [68, 69, 70], $VE = [1, 122];
15
- var parser2 = {
16
- trace: /* @__PURE__ */ __name(function trace() {
17
- }, "trace"),
18
- yy: {},
19
- symbols_: { "error": 2, "start": 3, "SPACE": 4, "NEWLINE": 5, "SD": 6, "document": 7, "line": 8, "statement": 9, "box_section": 10, "box_line": 11, "participant_statement": 12, "create": 13, "box": 14, "restOfLine": 15, "end": 16, "signal": 17, "autonumber": 18, "NUM": 19, "off": 20, "activate": 21, "actor": 22, "deactivate": 23, "note_statement": 24, "links_statement": 25, "link_statement": 26, "properties_statement": 27, "details_statement": 28, "title": 29, "legacy_title": 30, "acc_title": 31, "acc_title_value": 32, "acc_descr": 33, "acc_descr_value": 34, "acc_descr_multiline_value": 35, "loop": 36, "rect": 37, "opt": 38, "alt": 39, "else_sections": 40, "par": 41, "par_sections": 42, "par_over": 43, "critical": 44, "option_sections": 45, "break": 46, "option": 47, "and": 48, "else": 49, "participant": 50, "AS": 51, "participant_actor": 52, "destroy": 53, "note": 54, "placement": 55, "text2": 56, "over": 57, "actor_pair": 58, "links": 59, "link": 60, "properties": 61, "details": 62, "spaceList": 63, ",": 64, "left_of": 65, "right_of": 66, "signaltype": 67, "+": 68, "-": 69, "ACTOR": 70, "SOLID_OPEN_ARROW": 71, "DOTTED_OPEN_ARROW": 72, "SOLID_ARROW": 73, "BIDIRECTIONAL_SOLID_ARROW": 74, "DOTTED_ARROW": 75, "BIDIRECTIONAL_DOTTED_ARROW": 76, "SOLID_CROSS": 77, "DOTTED_CROSS": 78, "SOLID_POINT": 79, "DOTTED_POINT": 80, "TXT": 81, "$accept": 0, "$end": 1 },
20
- terminals_: { 2: "error", 4: "SPACE", 5: "NEWLINE", 6: "SD", 13: "create", 14: "box", 15: "restOfLine", 16: "end", 18: "autonumber", 19: "NUM", 20: "off", 21: "activate", 23: "deactivate", 29: "title", 30: "legacy_title", 31: "acc_title", 32: "acc_title_value", 33: "acc_descr", 34: "acc_descr_value", 35: "acc_descr_multiline_value", 36: "loop", 37: "rect", 38: "opt", 39: "alt", 41: "par", 43: "par_over", 44: "critical", 46: "break", 47: "option", 48: "and", 49: "else", 50: "participant", 51: "AS", 52: "participant_actor", 53: "destroy", 54: "note", 57: "over", 59: "links", 60: "link", 61: "properties", 62: "details", 64: ",", 65: "left_of", 66: "right_of", 68: "+", 69: "-", 70: "ACTOR", 71: "SOLID_OPEN_ARROW", 72: "DOTTED_OPEN_ARROW", 73: "SOLID_ARROW", 74: "BIDIRECTIONAL_SOLID_ARROW", 75: "DOTTED_ARROW", 76: "BIDIRECTIONAL_DOTTED_ARROW", 77: "SOLID_CROSS", 78: "DOTTED_CROSS", 79: "SOLID_POINT", 80: "DOTTED_POINT", 81: "TXT" },
21
- productions_: [0, [3, 2], [3, 2], [3, 2], [7, 0], [7, 2], [8, 2], [8, 1], [8, 1], [10, 0], [10, 2], [11, 2], [11, 1], [11, 1], [9, 1], [9, 2], [9, 4], [9, 2], [9, 4], [9, 3], [9, 3], [9, 2], [9, 3], [9, 3], [9, 2], [9, 2], [9, 2], [9, 2], [9, 2], [9, 1], [9, 1], [9, 2], [9, 2], [9, 1], [9, 4], [9, 4], [9, 4], [9, 4], [9, 4], [9, 4], [9, 4], [9, 4], [45, 1], [45, 4], [42, 1], [42, 4], [40, 1], [40, 4], [12, 5], [12, 3], [12, 5], [12, 3], [12, 3], [24, 4], [24, 4], [25, 3], [26, 3], [27, 3], [28, 3], [63, 2], [63, 1], [58, 3], [58, 1], [55, 1], [55, 1], [17, 5], [17, 5], [17, 4], [22, 1], [67, 1], [67, 1], [67, 1], [67, 1], [67, 1], [67, 1], [67, 1], [67, 1], [67, 1], [67, 1], [56, 1]],
22
- performAction: /* @__PURE__ */ __name(function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$) {
23
- var $0 = $$.length - 1;
24
- switch (yystate) {
25
- case 3:
26
- yy.apply($$[$0]);
27
- return $$[$0];
28
- case 4:
29
- case 9:
30
- this.$ = [];
31
- break;
32
- case 5:
33
- case 10:
34
- $$[$0 - 1].push($$[$0]);
35
- this.$ = $$[$0 - 1];
36
- break;
37
- case 6:
38
- case 7:
39
- case 11:
40
- case 12:
41
- this.$ = $$[$0];
42
- break;
43
- case 8:
44
- case 13:
45
- this.$ = [];
46
- break;
47
- case 15:
48
- $$[$0].type = "createParticipant";
49
- this.$ = $$[$0];
50
- break;
51
- case 16:
52
- $$[$0 - 1].unshift({ type: "boxStart", boxData: yy.parseBoxData($$[$0 - 2]) });
53
- $$[$0 - 1].push({ type: "boxEnd", boxText: $$[$0 - 2] });
54
- this.$ = $$[$0 - 1];
55
- break;
56
- case 18:
57
- this.$ = { type: "sequenceIndex", sequenceIndex: Number($$[$0 - 2]), sequenceIndexStep: Number($$[$0 - 1]), sequenceVisible: true, signalType: yy.LINETYPE.AUTONUMBER };
58
- break;
59
- case 19:
60
- this.$ = { type: "sequenceIndex", sequenceIndex: Number($$[$0 - 1]), sequenceIndexStep: 1, sequenceVisible: true, signalType: yy.LINETYPE.AUTONUMBER };
61
- break;
62
- case 20:
63
- this.$ = { type: "sequenceIndex", sequenceVisible: false, signalType: yy.LINETYPE.AUTONUMBER };
64
- break;
65
- case 21:
66
- this.$ = { type: "sequenceIndex", sequenceVisible: true, signalType: yy.LINETYPE.AUTONUMBER };
67
- break;
68
- case 22:
69
- this.$ = { type: "activeStart", signalType: yy.LINETYPE.ACTIVE_START, actor: $$[$0 - 1].actor };
70
- break;
71
- case 23:
72
- this.$ = { type: "activeEnd", signalType: yy.LINETYPE.ACTIVE_END, actor: $$[$0 - 1].actor };
73
- break;
74
- case 29:
75
- yy.setDiagramTitle($$[$0].substring(6));
76
- this.$ = $$[$0].substring(6);
77
- break;
78
- case 30:
79
- yy.setDiagramTitle($$[$0].substring(7));
80
- this.$ = $$[$0].substring(7);
81
- break;
82
- case 31:
83
- this.$ = $$[$0].trim();
84
- yy.setAccTitle(this.$);
85
- break;
86
- case 32:
87
- case 33:
88
- this.$ = $$[$0].trim();
89
- yy.setAccDescription(this.$);
90
- break;
91
- case 34:
92
- $$[$0 - 1].unshift({ type: "loopStart", loopText: yy.parseMessage($$[$0 - 2]), signalType: yy.LINETYPE.LOOP_START });
93
- $$[$0 - 1].push({ type: "loopEnd", loopText: $$[$0 - 2], signalType: yy.LINETYPE.LOOP_END });
94
- this.$ = $$[$0 - 1];
95
- break;
96
- case 35:
97
- $$[$0 - 1].unshift({ type: "rectStart", color: yy.parseMessage($$[$0 - 2]), signalType: yy.LINETYPE.RECT_START });
98
- $$[$0 - 1].push({ type: "rectEnd", color: yy.parseMessage($$[$0 - 2]), signalType: yy.LINETYPE.RECT_END });
99
- this.$ = $$[$0 - 1];
100
- break;
101
- case 36:
102
- $$[$0 - 1].unshift({ type: "optStart", optText: yy.parseMessage($$[$0 - 2]), signalType: yy.LINETYPE.OPT_START });
103
- $$[$0 - 1].push({ type: "optEnd", optText: yy.parseMessage($$[$0 - 2]), signalType: yy.LINETYPE.OPT_END });
104
- this.$ = $$[$0 - 1];
105
- break;
106
- case 37:
107
- $$[$0 - 1].unshift({ type: "altStart", altText: yy.parseMessage($$[$0 - 2]), signalType: yy.LINETYPE.ALT_START });
108
- $$[$0 - 1].push({ type: "altEnd", signalType: yy.LINETYPE.ALT_END });
109
- this.$ = $$[$0 - 1];
110
- break;
111
- case 38:
112
- $$[$0 - 1].unshift({ type: "parStart", parText: yy.parseMessage($$[$0 - 2]), signalType: yy.LINETYPE.PAR_START });
113
- $$[$0 - 1].push({ type: "parEnd", signalType: yy.LINETYPE.PAR_END });
114
- this.$ = $$[$0 - 1];
115
- break;
116
- case 39:
117
- $$[$0 - 1].unshift({ type: "parStart", parText: yy.parseMessage($$[$0 - 2]), signalType: yy.LINETYPE.PAR_OVER_START });
118
- $$[$0 - 1].push({ type: "parEnd", signalType: yy.LINETYPE.PAR_END });
119
- this.$ = $$[$0 - 1];
120
- break;
121
- case 40:
122
- $$[$0 - 1].unshift({ type: "criticalStart", criticalText: yy.parseMessage($$[$0 - 2]), signalType: yy.LINETYPE.CRITICAL_START });
123
- $$[$0 - 1].push({ type: "criticalEnd", signalType: yy.LINETYPE.CRITICAL_END });
124
- this.$ = $$[$0 - 1];
125
- break;
126
- case 41:
127
- $$[$0 - 1].unshift({ type: "breakStart", breakText: yy.parseMessage($$[$0 - 2]), signalType: yy.LINETYPE.BREAK_START });
128
- $$[$0 - 1].push({ type: "breakEnd", optText: yy.parseMessage($$[$0 - 2]), signalType: yy.LINETYPE.BREAK_END });
129
- this.$ = $$[$0 - 1];
130
- break;
131
- case 43:
132
- this.$ = $$[$0 - 3].concat([{ type: "option", optionText: yy.parseMessage($$[$0 - 1]), signalType: yy.LINETYPE.CRITICAL_OPTION }, $$[$0]]);
133
- break;
134
- case 45:
135
- this.$ = $$[$0 - 3].concat([{ type: "and", parText: yy.parseMessage($$[$0 - 1]), signalType: yy.LINETYPE.PAR_AND }, $$[$0]]);
136
- break;
137
- case 47:
138
- this.$ = $$[$0 - 3].concat([{ type: "else", altText: yy.parseMessage($$[$0 - 1]), signalType: yy.LINETYPE.ALT_ELSE }, $$[$0]]);
139
- break;
140
- case 48:
141
- $$[$0 - 3].draw = "participant";
142
- $$[$0 - 3].type = "addParticipant";
143
- $$[$0 - 3].description = yy.parseMessage($$[$0 - 1]);
144
- this.$ = $$[$0 - 3];
145
- break;
146
- case 49:
147
- $$[$0 - 1].draw = "participant";
148
- $$[$0 - 1].type = "addParticipant";
149
- this.$ = $$[$0 - 1];
150
- break;
151
- case 50:
152
- $$[$0 - 3].draw = "actor";
153
- $$[$0 - 3].type = "addParticipant";
154
- $$[$0 - 3].description = yy.parseMessage($$[$0 - 1]);
155
- this.$ = $$[$0 - 3];
156
- break;
157
- case 51:
158
- $$[$0 - 1].draw = "actor";
159
- $$[$0 - 1].type = "addParticipant";
160
- this.$ = $$[$0 - 1];
161
- break;
162
- case 52:
163
- $$[$0 - 1].type = "destroyParticipant";
164
- this.$ = $$[$0 - 1];
165
- break;
166
- case 53:
167
- this.$ = [$$[$0 - 1], { type: "addNote", placement: $$[$0 - 2], actor: $$[$0 - 1].actor, text: $$[$0] }];
168
- break;
169
- case 54:
170
- $$[$0 - 2] = [].concat($$[$0 - 1], $$[$0 - 1]).slice(0, 2);
171
- $$[$0 - 2][0] = $$[$0 - 2][0].actor;
172
- $$[$0 - 2][1] = $$[$0 - 2][1].actor;
173
- this.$ = [$$[$0 - 1], { type: "addNote", placement: yy.PLACEMENT.OVER, actor: $$[$0 - 2].slice(0, 2), text: $$[$0] }];
174
- break;
175
- case 55:
176
- this.$ = [$$[$0 - 1], { type: "addLinks", actor: $$[$0 - 1].actor, text: $$[$0] }];
177
- break;
178
- case 56:
179
- this.$ = [$$[$0 - 1], { type: "addALink", actor: $$[$0 - 1].actor, text: $$[$0] }];
180
- break;
181
- case 57:
182
- this.$ = [$$[$0 - 1], { type: "addProperties", actor: $$[$0 - 1].actor, text: $$[$0] }];
183
- break;
184
- case 58:
185
- this.$ = [$$[$0 - 1], { type: "addDetails", actor: $$[$0 - 1].actor, text: $$[$0] }];
186
- break;
187
- case 61:
188
- this.$ = [$$[$0 - 2], $$[$0]];
189
- break;
190
- case 62:
191
- this.$ = $$[$0];
192
- break;
193
- case 63:
194
- this.$ = yy.PLACEMENT.LEFTOF;
195
- break;
196
- case 64:
197
- this.$ = yy.PLACEMENT.RIGHTOF;
198
- break;
199
- case 65:
200
- this.$ = [
201
- $$[$0 - 4],
202
- $$[$0 - 1],
203
- { type: "addMessage", from: $$[$0 - 4].actor, to: $$[$0 - 1].actor, signalType: $$[$0 - 3], msg: $$[$0], activate: true },
204
- { type: "activeStart", signalType: yy.LINETYPE.ACTIVE_START, actor: $$[$0 - 1].actor }
205
- ];
206
- break;
207
- case 66:
208
- this.$ = [
209
- $$[$0 - 4],
210
- $$[$0 - 1],
211
- { type: "addMessage", from: $$[$0 - 4].actor, to: $$[$0 - 1].actor, signalType: $$[$0 - 3], msg: $$[$0] },
212
- { type: "activeEnd", signalType: yy.LINETYPE.ACTIVE_END, actor: $$[$0 - 4].actor }
213
- ];
214
- break;
215
- case 67:
216
- this.$ = [$$[$0 - 3], $$[$0 - 1], { type: "addMessage", from: $$[$0 - 3].actor, to: $$[$0 - 1].actor, signalType: $$[$0 - 2], msg: $$[$0] }];
217
- break;
218
- case 68:
219
- this.$ = { type: "addParticipant", actor: $$[$0] };
220
- break;
221
- case 69:
222
- this.$ = yy.LINETYPE.SOLID_OPEN;
223
- break;
224
- case 70:
225
- this.$ = yy.LINETYPE.DOTTED_OPEN;
226
- break;
227
- case 71:
228
- this.$ = yy.LINETYPE.SOLID;
229
- break;
230
- case 72:
231
- this.$ = yy.LINETYPE.BIDIRECTIONAL_SOLID;
232
- break;
233
- case 73:
234
- this.$ = yy.LINETYPE.DOTTED;
235
- break;
236
- case 74:
237
- this.$ = yy.LINETYPE.BIDIRECTIONAL_DOTTED;
238
- break;
239
- case 75:
240
- this.$ = yy.LINETYPE.SOLID_CROSS;
241
- break;
242
- case 76:
243
- this.$ = yy.LINETYPE.DOTTED_CROSS;
244
- break;
245
- case 77:
246
- this.$ = yy.LINETYPE.SOLID_POINT;
247
- break;
248
- case 78:
249
- this.$ = yy.LINETYPE.DOTTED_POINT;
250
- break;
251
- case 79:
252
- this.$ = yy.parseMessage($$[$0].trim().substring(1));
253
- break;
254
- }
255
- }, "anonymous"),
256
- table: [{ 3: 1, 4: $V0, 5: $V1, 6: $V2 }, { 1: [3] }, { 3: 5, 4: $V0, 5: $V1, 6: $V2 }, { 3: 6, 4: $V0, 5: $V1, 6: $V2 }, o([1, 4, 5, 13, 14, 18, 21, 23, 29, 30, 31, 33, 35, 36, 37, 38, 39, 41, 43, 44, 46, 50, 52, 53, 54, 59, 60, 61, 62, 70], $V3, { 7: 7 }), { 1: [2, 1] }, { 1: [2, 2] }, { 1: [2, 3], 4: $V4, 5: $V5, 8: 8, 9: 10, 12: 12, 13: $V6, 14: $V7, 17: 15, 18: $V8, 21: $V9, 22: 40, 23: $Va, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: $Vb, 30: $Vc, 31: $Vd, 33: $Ve, 35: $Vf, 36: $Vg, 37: $Vh, 38: $Vi, 39: $Vj, 41: $Vk, 43: $Vl, 44: $Vm, 46: $Vn, 50: $Vo, 52: $Vp, 53: $Vq, 54: $Vr, 59: $Vs, 60: $Vt, 61: $Vu, 62: $Vv, 70: $Vw }, o($Vx, [2, 5]), { 9: 47, 12: 12, 13: $V6, 14: $V7, 17: 15, 18: $V8, 21: $V9, 22: 40, 23: $Va, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: $Vb, 30: $Vc, 31: $Vd, 33: $Ve, 35: $Vf, 36: $Vg, 37: $Vh, 38: $Vi, 39: $Vj, 41: $Vk, 43: $Vl, 44: $Vm, 46: $Vn, 50: $Vo, 52: $Vp, 53: $Vq, 54: $Vr, 59: $Vs, 60: $Vt, 61: $Vu, 62: $Vv, 70: $Vw }, o($Vx, [2, 7]), o($Vx, [2, 8]), o($Vx, [2, 14]), { 12: 48, 50: $Vo, 52: $Vp, 53: $Vq }, { 15: [1, 49] }, { 5: [1, 50] }, { 5: [1, 53], 19: [1, 51], 20: [1, 52] }, { 22: 54, 70: $Vw }, { 22: 55, 70: $Vw }, { 5: [1, 56] }, { 5: [1, 57] }, { 5: [1, 58] }, { 5: [1, 59] }, { 5: [1, 60] }, o($Vx, [2, 29]), o($Vx, [2, 30]), { 32: [1, 61] }, { 34: [1, 62] }, o($Vx, [2, 33]), { 15: [1, 63] }, { 15: [1, 64] }, { 15: [1, 65] }, { 15: [1, 66] }, { 15: [1, 67] }, { 15: [1, 68] }, { 15: [1, 69] }, { 15: [1, 70] }, { 22: 71, 70: $Vw }, { 22: 72, 70: $Vw }, { 22: 73, 70: $Vw }, { 67: 74, 71: [1, 75], 72: [1, 76], 73: [1, 77], 74: [1, 78], 75: [1, 79], 76: [1, 80], 77: [1, 81], 78: [1, 82], 79: [1, 83], 80: [1, 84] }, { 55: 85, 57: [1, 86], 65: [1, 87], 66: [1, 88] }, { 22: 89, 70: $Vw }, { 22: 90, 70: $Vw }, { 22: 91, 70: $Vw }, { 22: 92, 70: $Vw }, o([5, 51, 64, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81], [2, 68]), o($Vx, [2, 6]), o($Vx, [2, 15]), o($Vy, [2, 9], { 10: 93 }), o($Vx, [2, 17]), { 5: [1, 95], 19: [1, 94] }, { 5: [1, 96] }, o($Vx, [2, 21]), { 5: [1, 97] }, { 5: [1, 98] }, o($Vx, [2, 24]), o($Vx, [2, 25]), o($Vx, [2, 26]), o($Vx, [2, 27]), o($Vx, [2, 28]), o($Vx, [2, 31]), o($Vx, [2, 32]), o($Vz, $V3, { 7: 99 }), o($Vz, $V3, { 7: 100 }), o($Vz, $V3, { 7: 101 }), o($VA, $V3, { 40: 102, 7: 103 }), o($VB, $V3, { 42: 104, 7: 105 }), o($VB, $V3, { 7: 105, 42: 106 }), o($VC, $V3, { 45: 107, 7: 108 }), o($Vz, $V3, { 7: 109 }), { 5: [1, 111], 51: [1, 110] }, { 5: [1, 113], 51: [1, 112] }, { 5: [1, 114] }, { 22: 117, 68: [1, 115], 69: [1, 116], 70: $Vw }, o($VD, [2, 69]), o($VD, [2, 70]), o($VD, [2, 71]), o($VD, [2, 72]), o($VD, [2, 73]), o($VD, [2, 74]), o($VD, [2, 75]), o($VD, [2, 76]), o($VD, [2, 77]), o($VD, [2, 78]), { 22: 118, 70: $Vw }, { 22: 120, 58: 119, 70: $Vw }, { 70: [2, 63] }, { 70: [2, 64] }, { 56: 121, 81: $VE }, { 56: 123, 81: $VE }, { 56: 124, 81: $VE }, { 56: 125, 81: $VE }, { 4: [1, 128], 5: [1, 130], 11: 127, 12: 129, 16: [1, 126], 50: $Vo, 52: $Vp, 53: $Vq }, { 5: [1, 131] }, o($Vx, [2, 19]), o($Vx, [2, 20]), o($Vx, [2, 22]), o($Vx, [2, 23]), { 4: $V4, 5: $V5, 8: 8, 9: 10, 12: 12, 13: $V6, 14: $V7, 16: [1, 132], 17: 15, 18: $V8, 21: $V9, 22: 40, 23: $Va, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: $Vb, 30: $Vc, 31: $Vd, 33: $Ve, 35: $Vf, 36: $Vg, 37: $Vh, 38: $Vi, 39: $Vj, 41: $Vk, 43: $Vl, 44: $Vm, 46: $Vn, 50: $Vo, 52: $Vp, 53: $Vq, 54: $Vr, 59: $Vs, 60: $Vt, 61: $Vu, 62: $Vv, 70: $Vw }, { 4: $V4, 5: $V5, 8: 8, 9: 10, 12: 12, 13: $V6, 14: $V7, 16: [1, 133], 17: 15, 18: $V8, 21: $V9, 22: 40, 23: $Va, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: $Vb, 30: $Vc, 31: $Vd, 33: $Ve, 35: $Vf, 36: $Vg, 37: $Vh, 38: $Vi, 39: $Vj, 41: $Vk, 43: $Vl, 44: $Vm, 46: $Vn, 50: $Vo, 52: $Vp, 53: $Vq, 54: $Vr, 59: $Vs, 60: $Vt, 61: $Vu, 62: $Vv, 70: $Vw }, { 4: $V4, 5: $V5, 8: 8, 9: 10, 12: 12, 13: $V6, 14: $V7, 16: [1, 134], 17: 15, 18: $V8, 21: $V9, 22: 40, 23: $Va, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: $Vb, 30: $Vc, 31: $Vd, 33: $Ve, 35: $Vf, 36: $Vg, 37: $Vh, 38: $Vi, 39: $Vj, 41: $Vk, 43: $Vl, 44: $Vm, 46: $Vn, 50: $Vo, 52: $Vp, 53: $Vq, 54: $Vr, 59: $Vs, 60: $Vt, 61: $Vu, 62: $Vv, 70: $Vw }, { 16: [1, 135] }, { 4: $V4, 5: $V5, 8: 8, 9: 10, 12: 12, 13: $V6, 14: $V7, 16: [2, 46], 17: 15, 18: $V8, 21: $V9, 22: 40, 23: $Va, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: $Vb, 30: $Vc, 31: $Vd, 33: $Ve, 35: $Vf, 36: $Vg, 37: $Vh, 38: $Vi, 39: $Vj, 41: $Vk, 43: $Vl, 44: $Vm, 46: $Vn, 49: [1, 136], 50: $Vo, 52: $Vp, 53: $Vq, 54: $Vr, 59: $Vs, 60: $Vt, 61: $Vu, 62: $Vv, 70: $Vw }, { 16: [1, 137] }, { 4: $V4, 5: $V5, 8: 8, 9: 10, 12: 12, 13: $V6, 14: $V7, 16: [2, 44], 17: 15, 18: $V8, 21: $V9, 22: 40, 23: $Va, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: $Vb, 30: $Vc, 31: $Vd, 33: $Ve, 35: $Vf, 36: $Vg, 37: $Vh, 38: $Vi, 39: $Vj, 41: $Vk, 43: $Vl, 44: $Vm, 46: $Vn, 48: [1, 138], 50: $Vo, 52: $Vp, 53: $Vq, 54: $Vr, 59: $Vs, 60: $Vt, 61: $Vu, 62: $Vv, 70: $Vw }, { 16: [1, 139] }, { 16: [1, 140] }, { 4: $V4, 5: $V5, 8: 8, 9: 10, 12: 12, 13: $V6, 14: $V7, 16: [2, 42], 17: 15, 18: $V8, 21: $V9, 22: 40, 23: $Va, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: $Vb, 30: $Vc, 31: $Vd, 33: $Ve, 35: $Vf, 36: $Vg, 37: $Vh, 38: $Vi, 39: $Vj, 41: $Vk, 43: $Vl, 44: $Vm, 46: $Vn, 47: [1, 141], 50: $Vo, 52: $Vp, 53: $Vq, 54: $Vr, 59: $Vs, 60: $Vt, 61: $Vu, 62: $Vv, 70: $Vw }, { 4: $V4, 5: $V5, 8: 8, 9: 10, 12: 12, 13: $V6, 14: $V7, 16: [1, 142], 17: 15, 18: $V8, 21: $V9, 22: 40, 23: $Va, 24: 19, 25: 20, 26: 21, 27: 22, 28: 23, 29: $Vb, 30: $Vc, 31: $Vd, 33: $Ve, 35: $Vf, 36: $Vg, 37: $Vh, 38: $Vi, 39: $Vj, 41: $Vk, 43: $Vl, 44: $Vm, 46: $Vn, 50: $Vo, 52: $Vp, 53: $Vq, 54: $Vr, 59: $Vs, 60: $Vt, 61: $Vu, 62: $Vv, 70: $Vw }, { 15: [1, 143] }, o($Vx, [2, 49]), { 15: [1, 144] }, o($Vx, [2, 51]), o($Vx, [2, 52]), { 22: 145, 70: $Vw }, { 22: 146, 70: $Vw }, { 56: 147, 81: $VE }, { 56: 148, 81: $VE }, { 56: 149, 81: $VE }, { 64: [1, 150], 81: [2, 62] }, { 5: [2, 55] }, { 5: [2, 79] }, { 5: [2, 56] }, { 5: [2, 57] }, { 5: [2, 58] }, o($Vx, [2, 16]), o($Vy, [2, 10]), { 12: 151, 50: $Vo, 52: $Vp, 53: $Vq }, o($Vy, [2, 12]), o($Vy, [2, 13]), o($Vx, [2, 18]), o($Vx, [2, 34]), o($Vx, [2, 35]), o($Vx, [2, 36]), o($Vx, [2, 37]), { 15: [1, 152] }, o($Vx, [2, 38]), { 15: [1, 153] }, o($Vx, [2, 39]), o($Vx, [2, 40]), { 15: [1, 154] }, o($Vx, [2, 41]), { 5: [1, 155] }, { 5: [1, 156] }, { 56: 157, 81: $VE }, { 56: 158, 81: $VE }, { 5: [2, 67] }, { 5: [2, 53] }, { 5: [2, 54] }, { 22: 159, 70: $Vw }, o($Vy, [2, 11]), o($VA, $V3, { 7: 103, 40: 160 }), o($VB, $V3, { 7: 105, 42: 161 }), o($VC, $V3, { 7: 108, 45: 162 }), o($Vx, [2, 48]), o($Vx, [2, 50]), { 5: [2, 65] }, { 5: [2, 66] }, { 81: [2, 61] }, { 16: [2, 47] }, { 16: [2, 45] }, { 16: [2, 43] }],
257
- defaultActions: { 5: [2, 1], 6: [2, 2], 87: [2, 63], 88: [2, 64], 121: [2, 55], 122: [2, 79], 123: [2, 56], 124: [2, 57], 125: [2, 58], 147: [2, 67], 148: [2, 53], 149: [2, 54], 157: [2, 65], 158: [2, 66], 159: [2, 61], 160: [2, 47], 161: [2, 45], 162: [2, 43] },
258
- parseError: /* @__PURE__ */ __name(function parseError(str, hash) {
259
- if (hash.recoverable) {
260
- this.trace(str);
261
- } else {
262
- var error = new Error(str);
263
- error.hash = hash;
264
- throw error;
265
- }
266
- }, "parseError"),
267
- parse: /* @__PURE__ */ __name(function parse(input) {
268
- var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = "", yylineno = 0, yyleng = 0, TERROR = 2, EOF = 1;
269
- var args = lstack.slice.call(arguments, 1);
270
- var lexer2 = Object.create(this.lexer);
271
- var sharedState = { yy: {} };
272
- for (var k in this.yy) {
273
- if (Object.prototype.hasOwnProperty.call(this.yy, k)) {
274
- sharedState.yy[k] = this.yy[k];
275
- }
276
- }
277
- lexer2.setInput(input, sharedState.yy);
278
- sharedState.yy.lexer = lexer2;
279
- sharedState.yy.parser = this;
280
- if (typeof lexer2.yylloc == "undefined") {
281
- lexer2.yylloc = {};
282
- }
283
- var yyloc = lexer2.yylloc;
284
- lstack.push(yyloc);
285
- var ranges = lexer2.options && lexer2.options.ranges;
286
- if (typeof sharedState.yy.parseError === "function") {
287
- this.parseError = sharedState.yy.parseError;
288
- } else {
289
- this.parseError = Object.getPrototypeOf(this).parseError;
290
- }
291
- function popStack(n) {
292
- stack.length = stack.length - 2 * n;
293
- vstack.length = vstack.length - n;
294
- lstack.length = lstack.length - n;
295
- }
296
- __name(popStack, "popStack");
297
- function lex() {
298
- var token;
299
- token = tstack.pop() || lexer2.lex() || EOF;
300
- if (typeof token !== "number") {
301
- if (token instanceof Array) {
302
- tstack = token;
303
- token = tstack.pop();
304
- }
305
- token = self.symbols_[token] || token;
306
- }
307
- return token;
308
- }
309
- __name(lex, "lex");
310
- var symbol, state, action, r, yyval = {}, p, len, newState, expected;
311
- while (true) {
312
- state = stack[stack.length - 1];
313
- if (this.defaultActions[state]) {
314
- action = this.defaultActions[state];
315
- } else {
316
- if (symbol === null || typeof symbol == "undefined") {
317
- symbol = lex();
318
- }
319
- action = table[state] && table[state][symbol];
320
- }
321
- if (typeof action === "undefined" || !action.length || !action[0]) {
322
- var errStr = "";
323
- expected = [];
324
- for (p in table[state]) {
325
- if (this.terminals_[p] && p > TERROR) {
326
- expected.push("'" + this.terminals_[p] + "'");
327
- }
328
- }
329
- if (lexer2.showPosition) {
330
- errStr = "Parse error on line " + (yylineno + 1) + ":\n" + lexer2.showPosition() + "\nExpecting " + expected.join(", ") + ", got '" + (this.terminals_[symbol] || symbol) + "'";
331
- } else {
332
- errStr = "Parse error on line " + (yylineno + 1) + ": Unexpected " + (symbol == EOF ? "end of input" : "'" + (this.terminals_[symbol] || symbol) + "'");
333
- }
334
- this.parseError(errStr, {
335
- text: lexer2.match,
336
- token: this.terminals_[symbol] || symbol,
337
- line: lexer2.yylineno,
338
- loc: yyloc,
339
- expected
340
- });
341
- }
342
- if (action[0] instanceof Array && action.length > 1) {
343
- throw new Error("Parse Error: multiple actions possible at state: " + state + ", token: " + symbol);
344
- }
345
- switch (action[0]) {
346
- case 1:
347
- stack.push(symbol);
348
- vstack.push(lexer2.yytext);
349
- lstack.push(lexer2.yylloc);
350
- stack.push(action[1]);
351
- symbol = null;
352
- {
353
- yyleng = lexer2.yyleng;
354
- yytext = lexer2.yytext;
355
- yylineno = lexer2.yylineno;
356
- yyloc = lexer2.yylloc;
357
- }
358
- break;
359
- case 2:
360
- len = this.productions_[action[1]][1];
361
- yyval.$ = vstack[vstack.length - len];
362
- yyval._$ = {
363
- first_line: lstack[lstack.length - (len || 1)].first_line,
364
- last_line: lstack[lstack.length - 1].last_line,
365
- first_column: lstack[lstack.length - (len || 1)].first_column,
366
- last_column: lstack[lstack.length - 1].last_column
367
- };
368
- if (ranges) {
369
- yyval._$.range = [
370
- lstack[lstack.length - (len || 1)].range[0],
371
- lstack[lstack.length - 1].range[1]
372
- ];
373
- }
374
- r = this.performAction.apply(yyval, [
375
- yytext,
376
- yyleng,
377
- yylineno,
378
- sharedState.yy,
379
- action[1],
380
- vstack,
381
- lstack
382
- ].concat(args));
383
- if (typeof r !== "undefined") {
384
- return r;
385
- }
386
- if (len) {
387
- stack = stack.slice(0, -1 * len * 2);
388
- vstack = vstack.slice(0, -1 * len);
389
- lstack = lstack.slice(0, -1 * len);
390
- }
391
- stack.push(this.productions_[action[1]][0]);
392
- vstack.push(yyval.$);
393
- lstack.push(yyval._$);
394
- newState = table[stack[stack.length - 2]][stack[stack.length - 1]];
395
- stack.push(newState);
396
- break;
397
- case 3:
398
- return true;
399
- }
400
- }
401
- return true;
402
- }, "parse")
403
- };
404
- var lexer = /* @__PURE__ */ function() {
405
- var lexer2 = {
406
- EOF: 1,
407
- parseError: /* @__PURE__ */ __name(function parseError(str, hash) {
408
- if (this.yy.parser) {
409
- this.yy.parser.parseError(str, hash);
410
- } else {
411
- throw new Error(str);
412
- }
413
- }, "parseError"),
414
- // resets the lexer, sets new input
415
- setInput: /* @__PURE__ */ __name(function(input, yy) {
416
- this.yy = yy || this.yy || {};
417
- this._input = input;
418
- this._more = this._backtrack = this.done = false;
419
- this.yylineno = this.yyleng = 0;
420
- this.yytext = this.matched = this.match = "";
421
- this.conditionStack = ["INITIAL"];
422
- this.yylloc = {
423
- first_line: 1,
424
- first_column: 0,
425
- last_line: 1,
426
- last_column: 0
427
- };
428
- if (this.options.ranges) {
429
- this.yylloc.range = [0, 0];
430
- }
431
- this.offset = 0;
432
- return this;
433
- }, "setInput"),
434
- // consumes and returns one char from the input
435
- input: /* @__PURE__ */ __name(function() {
436
- var ch = this._input[0];
437
- this.yytext += ch;
438
- this.yyleng++;
439
- this.offset++;
440
- this.match += ch;
441
- this.matched += ch;
442
- var lines = ch.match(/(?:\r\n?|\n).*/g);
443
- if (lines) {
444
- this.yylineno++;
445
- this.yylloc.last_line++;
446
- } else {
447
- this.yylloc.last_column++;
448
- }
449
- if (this.options.ranges) {
450
- this.yylloc.range[1]++;
451
- }
452
- this._input = this._input.slice(1);
453
- return ch;
454
- }, "input"),
455
- // unshifts one char (or a string) into the input
456
- unput: /* @__PURE__ */ __name(function(ch) {
457
- var len = ch.length;
458
- var lines = ch.split(/(?:\r\n?|\n)/g);
459
- this._input = ch + this._input;
460
- this.yytext = this.yytext.substr(0, this.yytext.length - len);
461
- this.offset -= len;
462
- var oldLines = this.match.split(/(?:\r\n?|\n)/g);
463
- this.match = this.match.substr(0, this.match.length - 1);
464
- this.matched = this.matched.substr(0, this.matched.length - 1);
465
- if (lines.length - 1) {
466
- this.yylineno -= lines.length - 1;
467
- }
468
- var r = this.yylloc.range;
469
- this.yylloc = {
470
- first_line: this.yylloc.first_line,
471
- last_line: this.yylineno + 1,
472
- first_column: this.yylloc.first_column,
473
- last_column: lines ? (lines.length === oldLines.length ? this.yylloc.first_column : 0) + oldLines[oldLines.length - lines.length].length - lines[0].length : this.yylloc.first_column - len
474
- };
475
- if (this.options.ranges) {
476
- this.yylloc.range = [r[0], r[0] + this.yyleng - len];
477
- }
478
- this.yyleng = this.yytext.length;
479
- return this;
480
- }, "unput"),
481
- // When called from action, caches matched text and appends it on next action
482
- more: /* @__PURE__ */ __name(function() {
483
- this._more = true;
484
- return this;
485
- }, "more"),
486
- // When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
487
- reject: /* @__PURE__ */ __name(function() {
488
- if (this.options.backtrack_lexer) {
489
- this._backtrack = true;
490
- } else {
491
- return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n" + this.showPosition(), {
492
- text: "",
493
- token: null,
494
- line: this.yylineno
495
- });
496
- }
497
- return this;
498
- }, "reject"),
499
- // retain first n characters of the match
500
- less: /* @__PURE__ */ __name(function(n) {
501
- this.unput(this.match.slice(n));
502
- }, "less"),
503
- // displays already matched input, i.e. for error messages
504
- pastInput: /* @__PURE__ */ __name(function() {
505
- var past = this.matched.substr(0, this.matched.length - this.match.length);
506
- return (past.length > 20 ? "..." : "") + past.substr(-20).replace(/\n/g, "");
507
- }, "pastInput"),
508
- // displays upcoming input, i.e. for error messages
509
- upcomingInput: /* @__PURE__ */ __name(function() {
510
- var next = this.match;
511
- if (next.length < 20) {
512
- next += this._input.substr(0, 20 - next.length);
513
- }
514
- return (next.substr(0, 20) + (next.length > 20 ? "..." : "")).replace(/\n/g, "");
515
- }, "upcomingInput"),
516
- // displays the character position where the lexing error occurred, i.e. for error messages
517
- showPosition: /* @__PURE__ */ __name(function() {
518
- var pre = this.pastInput();
519
- var c = new Array(pre.length + 1).join("-");
520
- return pre + this.upcomingInput() + "\n" + c + "^";
521
- }, "showPosition"),
522
- // test the lexed token: return FALSE when not a match, otherwise return token
523
- test_match: /* @__PURE__ */ __name(function(match, indexed_rule) {
524
- var token, lines, backup;
525
- if (this.options.backtrack_lexer) {
526
- backup = {
527
- yylineno: this.yylineno,
528
- yylloc: {
529
- first_line: this.yylloc.first_line,
530
- last_line: this.last_line,
531
- first_column: this.yylloc.first_column,
532
- last_column: this.yylloc.last_column
533
- },
534
- yytext: this.yytext,
535
- match: this.match,
536
- matches: this.matches,
537
- matched: this.matched,
538
- yyleng: this.yyleng,
539
- offset: this.offset,
540
- _more: this._more,
541
- _input: this._input,
542
- yy: this.yy,
543
- conditionStack: this.conditionStack.slice(0),
544
- done: this.done
545
- };
546
- if (this.options.ranges) {
547
- backup.yylloc.range = this.yylloc.range.slice(0);
548
- }
549
- }
550
- lines = match[0].match(/(?:\r\n?|\n).*/g);
551
- if (lines) {
552
- this.yylineno += lines.length;
553
- }
554
- this.yylloc = {
555
- first_line: this.yylloc.last_line,
556
- last_line: this.yylineno + 1,
557
- first_column: this.yylloc.last_column,
558
- last_column: lines ? lines[lines.length - 1].length - lines[lines.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + match[0].length
559
- };
560
- this.yytext += match[0];
561
- this.match += match[0];
562
- this.matches = match;
563
- this.yyleng = this.yytext.length;
564
- if (this.options.ranges) {
565
- this.yylloc.range = [this.offset, this.offset += this.yyleng];
566
- }
567
- this._more = false;
568
- this._backtrack = false;
569
- this._input = this._input.slice(match[0].length);
570
- this.matched += match[0];
571
- token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);
572
- if (this.done && this._input) {
573
- this.done = false;
574
- }
575
- if (token) {
576
- return token;
577
- } else if (this._backtrack) {
578
- for (var k in backup) {
579
- this[k] = backup[k];
580
- }
581
- return false;
582
- }
583
- return false;
584
- }, "test_match"),
585
- // return next match in input
586
- next: /* @__PURE__ */ __name(function() {
587
- if (this.done) {
588
- return this.EOF;
589
- }
590
- if (!this._input) {
591
- this.done = true;
592
- }
593
- var token, match, tempMatch, index;
594
- if (!this._more) {
595
- this.yytext = "";
596
- this.match = "";
597
- }
598
- var rules = this._currentRules();
599
- for (var i = 0; i < rules.length; i++) {
600
- tempMatch = this._input.match(this.rules[rules[i]]);
601
- if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {
602
- match = tempMatch;
603
- index = i;
604
- if (this.options.backtrack_lexer) {
605
- token = this.test_match(tempMatch, rules[i]);
606
- if (token !== false) {
607
- return token;
608
- } else if (this._backtrack) {
609
- match = false;
610
- continue;
611
- } else {
612
- return false;
613
- }
614
- } else if (!this.options.flex) {
615
- break;
616
- }
617
- }
618
- }
619
- if (match) {
620
- token = this.test_match(match, rules[index]);
621
- if (token !== false) {
622
- return token;
623
- }
624
- return false;
625
- }
626
- if (this._input === "") {
627
- return this.EOF;
628
- } else {
629
- return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
630
- text: "",
631
- token: null,
632
- line: this.yylineno
633
- });
634
- }
635
- }, "next"),
636
- // return next match that has a token
637
- lex: /* @__PURE__ */ __name(function lex() {
638
- var r = this.next();
639
- if (r) {
640
- return r;
641
- } else {
642
- return this.lex();
643
- }
644
- }, "lex"),
645
- // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
646
- begin: /* @__PURE__ */ __name(function begin(condition) {
647
- this.conditionStack.push(condition);
648
- }, "begin"),
649
- // pop the previously active lexer condition state off the condition stack
650
- popState: /* @__PURE__ */ __name(function popState() {
651
- var n = this.conditionStack.length - 1;
652
- if (n > 0) {
653
- return this.conditionStack.pop();
654
- } else {
655
- return this.conditionStack[0];
656
- }
657
- }, "popState"),
658
- // produce the lexer rule set which is active for the currently active lexer condition state
659
- _currentRules: /* @__PURE__ */ __name(function _currentRules() {
660
- if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {
661
- return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;
662
- } else {
663
- return this.conditions["INITIAL"].rules;
664
- }
665
- }, "_currentRules"),
666
- // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
667
- topState: /* @__PURE__ */ __name(function topState(n) {
668
- n = this.conditionStack.length - 1 - Math.abs(n || 0);
669
- if (n >= 0) {
670
- return this.conditionStack[n];
671
- } else {
672
- return "INITIAL";
673
- }
674
- }, "topState"),
675
- // alias for begin(condition)
676
- pushState: /* @__PURE__ */ __name(function pushState(condition) {
677
- this.begin(condition);
678
- }, "pushState"),
679
- // return the number of states currently on the stack
680
- stateStackSize: /* @__PURE__ */ __name(function stateStackSize() {
681
- return this.conditionStack.length;
682
- }, "stateStackSize"),
683
- options: { "case-insensitive": true },
684
- performAction: /* @__PURE__ */ __name(function anonymous(yy, yy_, $avoiding_name_collisions, YY_START) {
685
- switch ($avoiding_name_collisions) {
686
- case 0:
687
- return 5;
688
- case 1:
689
- break;
690
- case 2:
691
- break;
692
- case 3:
693
- break;
694
- case 4:
695
- break;
696
- case 5:
697
- break;
698
- case 6:
699
- return 19;
700
- case 7:
701
- this.begin("LINE");
702
- return 14;
703
- case 8:
704
- this.begin("ID");
705
- return 50;
706
- case 9:
707
- this.begin("ID");
708
- return 52;
709
- case 10:
710
- return 13;
711
- case 11:
712
- this.begin("ID");
713
- return 53;
714
- case 12:
715
- yy_.yytext = yy_.yytext.trim();
716
- this.begin("ALIAS");
717
- return 70;
718
- case 13:
719
- this.popState();
720
- this.popState();
721
- this.begin("LINE");
722
- return 51;
723
- case 14:
724
- this.popState();
725
- this.popState();
726
- return 5;
727
- case 15:
728
- this.begin("LINE");
729
- return 36;
730
- case 16:
731
- this.begin("LINE");
732
- return 37;
733
- case 17:
734
- this.begin("LINE");
735
- return 38;
736
- case 18:
737
- this.begin("LINE");
738
- return 39;
739
- case 19:
740
- this.begin("LINE");
741
- return 49;
742
- case 20:
743
- this.begin("LINE");
744
- return 41;
745
- case 21:
746
- this.begin("LINE");
747
- return 43;
748
- case 22:
749
- this.begin("LINE");
750
- return 48;
751
- case 23:
752
- this.begin("LINE");
753
- return 44;
754
- case 24:
755
- this.begin("LINE");
756
- return 47;
757
- case 25:
758
- this.begin("LINE");
759
- return 46;
760
- case 26:
761
- this.popState();
762
- return 15;
763
- case 27:
764
- return 16;
765
- case 28:
766
- return 65;
767
- case 29:
768
- return 66;
769
- case 30:
770
- return 59;
771
- case 31:
772
- return 60;
773
- case 32:
774
- return 61;
775
- case 33:
776
- return 62;
777
- case 34:
778
- return 57;
779
- case 35:
780
- return 54;
781
- case 36:
782
- this.begin("ID");
783
- return 21;
784
- case 37:
785
- this.begin("ID");
786
- return 23;
787
- case 38:
788
- return 29;
789
- case 39:
790
- return 30;
791
- case 40:
792
- this.begin("acc_title");
793
- return 31;
794
- case 41:
795
- this.popState();
796
- return "acc_title_value";
797
- case 42:
798
- this.begin("acc_descr");
799
- return 33;
800
- case 43:
801
- this.popState();
802
- return "acc_descr_value";
803
- case 44:
804
- this.begin("acc_descr_multiline");
805
- break;
806
- case 45:
807
- this.popState();
808
- break;
809
- case 46:
810
- return "acc_descr_multiline_value";
811
- case 47:
812
- return 6;
813
- case 48:
814
- return 18;
815
- case 49:
816
- return 20;
817
- case 50:
818
- return 64;
819
- case 51:
820
- return 5;
821
- case 52:
822
- yy_.yytext = yy_.yytext.trim();
823
- return 70;
824
- case 53:
825
- return 73;
826
- case 54:
827
- return 74;
828
- case 55:
829
- return 75;
830
- case 56:
831
- return 76;
832
- case 57:
833
- return 71;
834
- case 58:
835
- return 72;
836
- case 59:
837
- return 77;
838
- case 60:
839
- return 78;
840
- case 61:
841
- return 79;
842
- case 62:
843
- return 80;
844
- case 63:
845
- return 81;
846
- case 64:
847
- return 68;
848
- case 65:
849
- return 69;
850
- case 66:
851
- return 5;
852
- case 67:
853
- return "INVALID";
854
- }
855
- }, "anonymous"),
856
- rules: [/^(?:[\n]+)/i, /^(?:\s+)/i, /^(?:((?!\n)\s)+)/i, /^(?:#[^\n]*)/i, /^(?:%(?!\{)[^\n]*)/i, /^(?:[^\}]%%[^\n]*)/i, /^(?:[0-9]+(?=[ \n]+))/i, /^(?:box\b)/i, /^(?:participant\b)/i, /^(?:actor\b)/i, /^(?:create\b)/i, /^(?:destroy\b)/i, /^(?:[^\<->\->:\n,;]+?([\-]*[^\<->\->:\n,;]+?)*?(?=((?!\n)\s)+as(?!\n)\s|[#\n;]|$))/i, /^(?:as\b)/i, /^(?:(?:))/i, /^(?:loop\b)/i, /^(?:rect\b)/i, /^(?:opt\b)/i, /^(?:alt\b)/i, /^(?:else\b)/i, /^(?:par\b)/i, /^(?:par_over\b)/i, /^(?:and\b)/i, /^(?:critical\b)/i, /^(?:option\b)/i, /^(?:break\b)/i, /^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i, /^(?:end\b)/i, /^(?:left of\b)/i, /^(?:right of\b)/i, /^(?:links\b)/i, /^(?:link\b)/i, /^(?:properties\b)/i, /^(?:details\b)/i, /^(?:over\b)/i, /^(?:note\b)/i, /^(?:activate\b)/i, /^(?:deactivate\b)/i, /^(?:title\s[^#\n;]+)/i, /^(?:title:\s[^#\n;]+)/i, /^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:[\}])/i, /^(?:[^\}]*)/i, /^(?:sequenceDiagram\b)/i, /^(?:autonumber\b)/i, /^(?:off\b)/i, /^(?:,)/i, /^(?:;)/i, /^(?:[^\+\<->\->:\n,;]+((?!(-x|--x|-\)|--\)))[\-]*[^\+\<->\->:\n,;]+)*)/i, /^(?:->>)/i, /^(?:<<->>)/i, /^(?:-->>)/i, /^(?:<<-->>)/i, /^(?:->)/i, /^(?:-->)/i, /^(?:-[x])/i, /^(?:--[x])/i, /^(?:-[\)])/i, /^(?:--[\)])/i, /^(?::(?:(?:no)?wrap)?[^#\n;]+)/i, /^(?:\+)/i, /^(?:-)/i, /^(?:$)/i, /^(?:.)/i],
857
- conditions: { "acc_descr_multiline": { "rules": [45, 46], "inclusive": false }, "acc_descr": { "rules": [43], "inclusive": false }, "acc_title": { "rules": [41], "inclusive": false }, "ID": { "rules": [2, 3, 12], "inclusive": false }, "ALIAS": { "rules": [2, 3, 13, 14], "inclusive": false }, "LINE": { "rules": [2, 3, 26], "inclusive": false }, "INITIAL": { "rules": [0, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 42, 44, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67], "inclusive": true } }
858
- };
859
- return lexer2;
860
- }();
861
- parser2.lexer = lexer;
862
- function Parser() {
863
- this.yy = {};
864
- }
865
- __name(Parser, "Parser");
866
- Parser.prototype = parser2;
867
- parser2.Parser = Parser;
868
- return new Parser();
869
- }();
870
- parser.parser = parser;
871
- var sequenceDiagram_default = parser;
872
- var LINETYPE = {
873
- SOLID: 0,
874
- DOTTED: 1,
875
- NOTE: 2,
876
- SOLID_CROSS: 3,
877
- DOTTED_CROSS: 4,
878
- SOLID_OPEN: 5,
879
- DOTTED_OPEN: 6,
880
- LOOP_START: 10,
881
- LOOP_END: 11,
882
- ALT_START: 12,
883
- ALT_ELSE: 13,
884
- ALT_END: 14,
885
- OPT_START: 15,
886
- OPT_END: 16,
887
- ACTIVE_START: 17,
888
- ACTIVE_END: 18,
889
- PAR_START: 19,
890
- PAR_AND: 20,
891
- PAR_END: 21,
892
- RECT_START: 22,
893
- RECT_END: 23,
894
- SOLID_POINT: 24,
895
- DOTTED_POINT: 25,
896
- AUTONUMBER: 26,
897
- CRITICAL_START: 27,
898
- CRITICAL_OPTION: 28,
899
- CRITICAL_END: 29,
900
- BREAK_START: 30,
901
- BREAK_END: 31,
902
- PAR_OVER_START: 32,
903
- BIDIRECTIONAL_SOLID: 33,
904
- BIDIRECTIONAL_DOTTED: 34
905
- };
906
- var ARROWTYPE = {
907
- FILLED: 0,
908
- OPEN: 1
909
- };
910
- var PLACEMENT = {
911
- LEFTOF: 0,
912
- RIGHTOF: 1,
913
- OVER: 2
914
- };
915
- var SequenceDB = (_a = class {
916
- constructor() {
917
- this.state = new ImperativeState(() => ({
918
- prevActor: void 0,
919
- actors: /* @__PURE__ */ new Map(),
920
- createdActors: /* @__PURE__ */ new Map(),
921
- destroyedActors: /* @__PURE__ */ new Map(),
922
- boxes: [],
923
- messages: [],
924
- notes: [],
925
- sequenceNumbersEnabled: false,
926
- wrapEnabled: void 0,
927
- currentBox: void 0,
928
- lastCreated: void 0,
929
- lastDestroyed: void 0
930
- }));
931
- this.setAccTitle = setAccTitle;
932
- this.setAccDescription = setAccDescription;
933
- this.setDiagramTitle = setDiagramTitle;
934
- this.getAccTitle = getAccTitle;
935
- this.getAccDescription = getAccDescription;
936
- this.getDiagramTitle = getDiagramTitle;
937
- this.apply = this.apply.bind(this);
938
- this.parseBoxData = this.parseBoxData.bind(this);
939
- this.parseMessage = this.parseMessage.bind(this);
940
- this.clear();
941
- this.setWrap(getConfig2().wrap);
942
- this.LINETYPE = LINETYPE;
943
- this.ARROWTYPE = ARROWTYPE;
944
- this.PLACEMENT = PLACEMENT;
945
- }
946
- addBox(data) {
947
- this.state.records.boxes.push({
948
- name: data.text,
949
- wrap: data.wrap ?? this.autoWrap(),
950
- fill: data.color,
951
- actorKeys: []
952
- });
953
- this.state.records.currentBox = this.state.records.boxes.slice(-1)[0];
954
- }
955
- addActor(id, name, description, type) {
956
- let assignedBox = this.state.records.currentBox;
957
- const old = this.state.records.actors.get(id);
958
- if (old) {
959
- if (this.state.records.currentBox && old.box && this.state.records.currentBox !== old.box) {
960
- throw new Error(
961
- `A same participant should only be defined in one Box: ${old.name} can't be in '${old.box.name}' and in '${this.state.records.currentBox.name}' at the same time.`
962
- );
963
- }
964
- assignedBox = old.box ? old.box : this.state.records.currentBox;
965
- old.box = assignedBox;
966
- if (old && name === old.name && description == null) {
967
- return;
968
- }
969
- }
970
- if ((description == null ? void 0 : description.text) == null) {
971
- description = { text: name, type };
972
- }
973
- if (type == null || description.text == null) {
974
- description = { text: name, type };
975
- }
976
- this.state.records.actors.set(id, {
977
- box: assignedBox,
978
- name,
979
- description: description.text,
980
- wrap: description.wrap ?? this.autoWrap(),
981
- prevActor: this.state.records.prevActor,
982
- links: {},
983
- properties: {},
984
- actorCnt: null,
985
- rectData: null,
986
- type: type ?? "participant"
987
- });
988
- if (this.state.records.prevActor) {
989
- const prevActorInRecords = this.state.records.actors.get(this.state.records.prevActor);
990
- if (prevActorInRecords) {
991
- prevActorInRecords.nextActor = id;
992
- }
993
- }
994
- if (this.state.records.currentBox) {
995
- this.state.records.currentBox.actorKeys.push(id);
996
- }
997
- this.state.records.prevActor = id;
998
- }
999
- activationCount(part) {
1000
- let i;
1001
- let count = 0;
1002
- if (!part) {
1003
- return 0;
1004
- }
1005
- for (i = 0; i < this.state.records.messages.length; i++) {
1006
- if (this.state.records.messages[i].type === this.LINETYPE.ACTIVE_START && this.state.records.messages[i].from === part) {
1007
- count++;
1008
- }
1009
- if (this.state.records.messages[i].type === this.LINETYPE.ACTIVE_END && this.state.records.messages[i].from === part) {
1010
- count--;
1011
- }
1012
- }
1013
- return count;
1014
- }
1015
- addMessage(idFrom, idTo, message, answer) {
1016
- this.state.records.messages.push({
1017
- id: this.state.records.messages.length.toString(),
1018
- from: idFrom,
1019
- to: idTo,
1020
- message: message.text,
1021
- wrap: message.wrap ?? this.autoWrap(),
1022
- answer
1023
- });
1024
- }
1025
- addSignal(idFrom, idTo, message, messageType, activate = false) {
1026
- if (messageType === this.LINETYPE.ACTIVE_END) {
1027
- const cnt = this.activationCount(idFrom ?? "");
1028
- if (cnt < 1) {
1029
- const error = new Error("Trying to inactivate an inactive participant (" + idFrom + ")");
1030
- error.hash = {
1031
- text: "->>-",
1032
- token: "->>-",
1033
- line: "1",
1034
- loc: { first_line: 1, last_line: 1, first_column: 1, last_column: 1 },
1035
- expected: ["'ACTIVE_PARTICIPANT'"]
1036
- };
1037
- throw error;
1038
- }
1039
- }
1040
- this.state.records.messages.push({
1041
- id: this.state.records.messages.length.toString(),
1042
- from: idFrom,
1043
- to: idTo,
1044
- message: (message == null ? void 0 : message.text) ?? "",
1045
- wrap: (message == null ? void 0 : message.wrap) ?? this.autoWrap(),
1046
- type: messageType,
1047
- activate
1048
- });
1049
- return true;
1050
- }
1051
- hasAtLeastOneBox() {
1052
- return this.state.records.boxes.length > 0;
1053
- }
1054
- hasAtLeastOneBoxWithTitle() {
1055
- return this.state.records.boxes.some((b) => b.name);
1056
- }
1057
- getMessages() {
1058
- return this.state.records.messages;
1059
- }
1060
- getBoxes() {
1061
- return this.state.records.boxes;
1062
- }
1063
- getActors() {
1064
- return this.state.records.actors;
1065
- }
1066
- getCreatedActors() {
1067
- return this.state.records.createdActors;
1068
- }
1069
- getDestroyedActors() {
1070
- return this.state.records.destroyedActors;
1071
- }
1072
- getActor(id) {
1073
- return this.state.records.actors.get(id);
1074
- }
1075
- getActorKeys() {
1076
- return [...this.state.records.actors.keys()];
1077
- }
1078
- enableSequenceNumbers() {
1079
- this.state.records.sequenceNumbersEnabled = true;
1080
- }
1081
- disableSequenceNumbers() {
1082
- this.state.records.sequenceNumbersEnabled = false;
1083
- }
1084
- showSequenceNumbers() {
1085
- return this.state.records.sequenceNumbersEnabled;
1086
- }
1087
- setWrap(wrapSetting) {
1088
- this.state.records.wrapEnabled = wrapSetting;
1089
- }
1090
- extractWrap(text) {
1091
- if (text === void 0) {
1092
- return {};
1093
- }
1094
- text = text.trim();
1095
- const wrap = /^:?wrap:/.exec(text) !== null ? true : /^:?nowrap:/.exec(text) !== null ? false : void 0;
1096
- const cleanedText = (wrap === void 0 ? text : text.replace(/^:?(?:no)?wrap:/, "")).trim();
1097
- return { cleanedText, wrap };
1098
- }
1099
- autoWrap() {
1100
- var _a2;
1101
- if (this.state.records.wrapEnabled !== void 0) {
1102
- return this.state.records.wrapEnabled;
1103
- }
1104
- return ((_a2 = getConfig2().sequence) == null ? void 0 : _a2.wrap) ?? false;
1105
- }
1106
- clear() {
1107
- this.state.reset();
1108
- clear();
1109
- }
1110
- parseMessage(str) {
1111
- const trimmedStr = str.trim();
1112
- const { wrap, cleanedText } = this.extractWrap(trimmedStr);
1113
- const message = {
1114
- text: cleanedText,
1115
- wrap
1116
- };
1117
- log.debug(`parseMessage: ${JSON.stringify(message)}`);
1118
- return message;
1119
- }
1120
- // We expect the box statement to be color first then description
1121
- // The color can be rgb,rgba,hsl,hsla, or css code names #hex codes are not supported for now because of the way the char # is handled
1122
- // We extract first segment as color, the rest of the line is considered as text
1123
- parseBoxData(str) {
1124
- const match = /^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/.exec(str);
1125
- let color = (match == null ? void 0 : match[1]) ? match[1].trim() : "transparent";
1126
- let title = (match == null ? void 0 : match[2]) ? match[2].trim() : void 0;
1127
- if (window == null ? void 0 : window.CSS) {
1128
- if (!window.CSS.supports("color", color)) {
1129
- color = "transparent";
1130
- title = str.trim();
1131
- }
1132
- } else {
1133
- const style = new Option().style;
1134
- style.color = color;
1135
- if (style.color !== color) {
1136
- color = "transparent";
1137
- title = str.trim();
1138
- }
1139
- }
1140
- const { wrap, cleanedText } = this.extractWrap(title);
1141
- return {
1142
- text: cleanedText ? sanitizeText(cleanedText, getConfig2()) : void 0,
1143
- color,
1144
- wrap
1145
- };
1146
- }
1147
- addNote(actor, placement, message) {
1148
- const note = {
1149
- actor,
1150
- placement,
1151
- message: message.text,
1152
- wrap: message.wrap ?? this.autoWrap()
1153
- };
1154
- const actors = [].concat(actor, actor);
1155
- this.state.records.notes.push(note);
1156
- this.state.records.messages.push({
1157
- id: this.state.records.messages.length.toString(),
1158
- from: actors[0],
1159
- to: actors[1],
1160
- message: message.text,
1161
- wrap: message.wrap ?? this.autoWrap(),
1162
- type: this.LINETYPE.NOTE,
1163
- placement
1164
- });
1165
- }
1166
- addLinks(actorId, text) {
1167
- const actor = this.getActor(actorId);
1168
- try {
1169
- let sanitizedText = sanitizeText(text.text, getConfig2());
1170
- sanitizedText = sanitizedText.replace(/&equals;/g, "=");
1171
- sanitizedText = sanitizedText.replace(/&amp;/g, "&");
1172
- const links = JSON.parse(sanitizedText);
1173
- this.insertLinks(actor, links);
1174
- } catch (e) {
1175
- log.error("error while parsing actor link text", e);
1176
- }
1177
- }
1178
- addALink(actorId, text) {
1179
- const actor = this.getActor(actorId);
1180
- try {
1181
- const links = {};
1182
- let sanitizedText = sanitizeText(text.text, getConfig2());
1183
- const sep = sanitizedText.indexOf("@");
1184
- sanitizedText = sanitizedText.replace(/&equals;/g, "=");
1185
- sanitizedText = sanitizedText.replace(/&amp;/g, "&");
1186
- const label = sanitizedText.slice(0, sep - 1).trim();
1187
- const link = sanitizedText.slice(sep + 1).trim();
1188
- links[label] = link;
1189
- this.insertLinks(actor, links);
1190
- } catch (e) {
1191
- log.error("error while parsing actor link text", e);
1192
- }
1193
- }
1194
- insertLinks(actor, links) {
1195
- if (actor.links == null) {
1196
- actor.links = links;
1197
- } else {
1198
- for (const key in links) {
1199
- actor.links[key] = links[key];
1200
- }
1201
- }
1202
- }
1203
- addProperties(actorId, text) {
1204
- const actor = this.getActor(actorId);
1205
- try {
1206
- const sanitizedText = sanitizeText(text.text, getConfig2());
1207
- const properties = JSON.parse(sanitizedText);
1208
- this.insertProperties(actor, properties);
1209
- } catch (e) {
1210
- log.error("error while parsing actor properties text", e);
1211
- }
1212
- }
1213
- insertProperties(actor, properties) {
1214
- if (actor.properties == null) {
1215
- actor.properties = properties;
1216
- } else {
1217
- for (const key in properties) {
1218
- actor.properties[key] = properties[key];
1219
- }
1220
- }
1221
- }
1222
- boxEnd() {
1223
- this.state.records.currentBox = void 0;
1224
- }
1225
- addDetails(actorId, text) {
1226
- const actor = this.getActor(actorId);
1227
- const elem = document.getElementById(text.text);
1228
- try {
1229
- const text2 = elem.innerHTML;
1230
- const details = JSON.parse(text2);
1231
- if (details.properties) {
1232
- this.insertProperties(actor, details.properties);
1233
- }
1234
- if (details.links) {
1235
- this.insertLinks(actor, details.links);
1236
- }
1237
- } catch (e) {
1238
- log.error("error while parsing actor details text", e);
1239
- }
1240
- }
1241
- getActorProperty(actor, key) {
1242
- if ((actor == null ? void 0 : actor.properties) !== void 0) {
1243
- return actor.properties[key];
1244
- }
1245
- return void 0;
1246
- }
1247
- // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-redundant-type-constituents
1248
- apply(param) {
1249
- if (Array.isArray(param)) {
1250
- param.forEach((item) => {
1251
- this.apply(item);
1252
- });
1253
- } else {
1254
- switch (param.type) {
1255
- case "sequenceIndex":
1256
- this.state.records.messages.push({
1257
- id: this.state.records.messages.length.toString(),
1258
- from: void 0,
1259
- to: void 0,
1260
- message: {
1261
- start: param.sequenceIndex,
1262
- step: param.sequenceIndexStep,
1263
- visible: param.sequenceVisible
1264
- },
1265
- wrap: false,
1266
- type: param.signalType
1267
- });
1268
- break;
1269
- case "addParticipant":
1270
- this.addActor(param.actor, param.actor, param.description, param.draw);
1271
- break;
1272
- case "createParticipant":
1273
- if (this.state.records.actors.has(param.actor)) {
1274
- throw new Error(
1275
- "It is not possible to have actors with the same id, even if one is destroyed before the next is created. Use 'AS' aliases to simulate the behavior"
1276
- );
1277
- }
1278
- this.state.records.lastCreated = param.actor;
1279
- this.addActor(param.actor, param.actor, param.description, param.draw);
1280
- this.state.records.createdActors.set(param.actor, this.state.records.messages.length);
1281
- break;
1282
- case "destroyParticipant":
1283
- this.state.records.lastDestroyed = param.actor;
1284
- this.state.records.destroyedActors.set(param.actor, this.state.records.messages.length);
1285
- break;
1286
- case "activeStart":
1287
- this.addSignal(param.actor, void 0, void 0, param.signalType);
1288
- break;
1289
- case "activeEnd":
1290
- this.addSignal(param.actor, void 0, void 0, param.signalType);
1291
- break;
1292
- case "addNote":
1293
- this.addNote(param.actor, param.placement, param.text);
1294
- break;
1295
- case "addLinks":
1296
- this.addLinks(param.actor, param.text);
1297
- break;
1298
- case "addALink":
1299
- this.addALink(param.actor, param.text);
1300
- break;
1301
- case "addProperties":
1302
- this.addProperties(param.actor, param.text);
1303
- break;
1304
- case "addDetails":
1305
- this.addDetails(param.actor, param.text);
1306
- break;
1307
- case "addMessage":
1308
- if (this.state.records.lastCreated) {
1309
- if (param.to !== this.state.records.lastCreated) {
1310
- throw new Error(
1311
- "The created participant " + this.state.records.lastCreated.name + " does not have an associated creating message after its declaration. Please check the sequence diagram."
1312
- );
1313
- } else {
1314
- this.state.records.lastCreated = void 0;
1315
- }
1316
- } else if (this.state.records.lastDestroyed) {
1317
- if (param.to !== this.state.records.lastDestroyed && param.from !== this.state.records.lastDestroyed) {
1318
- throw new Error(
1319
- "The destroyed participant " + this.state.records.lastDestroyed.name + " does not have an associated destroying message after its declaration. Please check the sequence diagram."
1320
- );
1321
- } else {
1322
- this.state.records.lastDestroyed = void 0;
1323
- }
1324
- }
1325
- this.addSignal(param.from, param.to, param.msg, param.signalType, param.activate);
1326
- break;
1327
- case "boxStart":
1328
- this.addBox(param.boxData);
1329
- break;
1330
- case "boxEnd":
1331
- this.boxEnd();
1332
- break;
1333
- case "loopStart":
1334
- this.addSignal(void 0, void 0, param.loopText, param.signalType);
1335
- break;
1336
- case "loopEnd":
1337
- this.addSignal(void 0, void 0, void 0, param.signalType);
1338
- break;
1339
- case "rectStart":
1340
- this.addSignal(void 0, void 0, param.color, param.signalType);
1341
- break;
1342
- case "rectEnd":
1343
- this.addSignal(void 0, void 0, void 0, param.signalType);
1344
- break;
1345
- case "optStart":
1346
- this.addSignal(void 0, void 0, param.optText, param.signalType);
1347
- break;
1348
- case "optEnd":
1349
- this.addSignal(void 0, void 0, void 0, param.signalType);
1350
- break;
1351
- case "altStart":
1352
- this.addSignal(void 0, void 0, param.altText, param.signalType);
1353
- break;
1354
- case "else":
1355
- this.addSignal(void 0, void 0, param.altText, param.signalType);
1356
- break;
1357
- case "altEnd":
1358
- this.addSignal(void 0, void 0, void 0, param.signalType);
1359
- break;
1360
- case "setAccTitle":
1361
- setAccTitle(param.text);
1362
- break;
1363
- case "parStart":
1364
- this.addSignal(void 0, void 0, param.parText, param.signalType);
1365
- break;
1366
- case "and":
1367
- this.addSignal(void 0, void 0, param.parText, param.signalType);
1368
- break;
1369
- case "parEnd":
1370
- this.addSignal(void 0, void 0, void 0, param.signalType);
1371
- break;
1372
- case "criticalStart":
1373
- this.addSignal(void 0, void 0, param.criticalText, param.signalType);
1374
- break;
1375
- case "option":
1376
- this.addSignal(void 0, void 0, param.optionText, param.signalType);
1377
- break;
1378
- case "criticalEnd":
1379
- this.addSignal(void 0, void 0, void 0, param.signalType);
1380
- break;
1381
- case "breakStart":
1382
- this.addSignal(void 0, void 0, param.breakText, param.signalType);
1383
- break;
1384
- case "breakEnd":
1385
- this.addSignal(void 0, void 0, void 0, param.signalType);
1386
- break;
1387
- }
1388
- }
1389
- }
1390
- getConfig() {
1391
- return getConfig2().sequence;
1392
- }
1393
- }, __name(_a, "SequenceDB"), _a);
1394
- var getStyles = /* @__PURE__ */ __name((options) => `.actor {
1395
- stroke: ${options.actorBorder};
1396
- fill: ${options.actorBkg};
1397
- }
1398
-
1399
- text.actor > tspan {
1400
- fill: ${options.actorTextColor};
1401
- stroke: none;
1402
- }
1403
-
1404
- .actor-line {
1405
- stroke: ${options.actorLineColor};
1406
- }
1407
-
1408
- .messageLine0 {
1409
- stroke-width: 1.5;
1410
- stroke-dasharray: none;
1411
- stroke: ${options.signalColor};
1412
- }
1413
-
1414
- .messageLine1 {
1415
- stroke-width: 1.5;
1416
- stroke-dasharray: 2, 2;
1417
- stroke: ${options.signalColor};
1418
- }
1419
-
1420
- #arrowhead path {
1421
- fill: ${options.signalColor};
1422
- stroke: ${options.signalColor};
1423
- }
1424
-
1425
- .sequenceNumber {
1426
- fill: ${options.sequenceNumberColor};
1427
- }
1428
-
1429
- #sequencenumber {
1430
- fill: ${options.signalColor};
1431
- }
1432
-
1433
- #crosshead path {
1434
- fill: ${options.signalColor};
1435
- stroke: ${options.signalColor};
1436
- }
1437
-
1438
- .messageText {
1439
- fill: ${options.signalTextColor};
1440
- stroke: none;
1441
- }
1442
-
1443
- .labelBox {
1444
- stroke: ${options.labelBoxBorderColor};
1445
- fill: ${options.labelBoxBkgColor};
1446
- }
1447
-
1448
- .labelText, .labelText > tspan {
1449
- fill: ${options.labelTextColor};
1450
- stroke: none;
1451
- }
1452
-
1453
- .loopText, .loopText > tspan {
1454
- fill: ${options.loopTextColor};
1455
- stroke: none;
1456
- }
1457
-
1458
- .loopLine {
1459
- stroke-width: 2px;
1460
- stroke-dasharray: 2, 2;
1461
- stroke: ${options.labelBoxBorderColor};
1462
- fill: ${options.labelBoxBorderColor};
1463
- }
1464
-
1465
- .note {
1466
- //stroke: #decc93;
1467
- stroke: ${options.noteBorderColor};
1468
- fill: ${options.noteBkgColor};
1469
- }
1470
-
1471
- .noteText, .noteText > tspan {
1472
- fill: ${options.noteTextColor};
1473
- stroke: none;
1474
- }
1475
-
1476
- .activation0 {
1477
- fill: ${options.activationBkgColor};
1478
- stroke: ${options.activationBorderColor};
1479
- }
1480
-
1481
- .activation1 {
1482
- fill: ${options.activationBkgColor};
1483
- stroke: ${options.activationBorderColor};
1484
- }
1485
-
1486
- .activation2 {
1487
- fill: ${options.activationBkgColor};
1488
- stroke: ${options.activationBorderColor};
1489
- }
1490
-
1491
- .actorPopupMenu {
1492
- position: absolute;
1493
- }
1494
-
1495
- .actorPopupMenuPanel {
1496
- position: absolute;
1497
- fill: ${options.actorBkg};
1498
- box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
1499
- filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));
1500
- }
1501
- .actor-man line {
1502
- stroke: ${options.actorBorder};
1503
- fill: ${options.actorBkg};
1504
- }
1505
- .actor-man circle, line {
1506
- stroke: ${options.actorBorder};
1507
- fill: ${options.actorBkg};
1508
- stroke-width: 2px;
1509
- }
1510
- `, "getStyles");
1511
- var styles_default = getStyles;
1512
- var ACTOR_TYPE_WIDTH = 18 * 2;
1513
- var TOP_ACTOR_CLASS = "actor-top";
1514
- var BOTTOM_ACTOR_CLASS = "actor-bottom";
1515
- var ACTOR_BOX_CLASS = "actor-box";
1516
- var ACTOR_MAN_FIGURE_CLASS = "actor-man";
1517
- var drawRect2 = /* @__PURE__ */ __name(function(elem, rectData) {
1518
- return drawRect(elem, rectData);
1519
- }, "drawRect");
1520
- var drawPopup = /* @__PURE__ */ __name(function(elem, actor, minMenuWidth, textAttrs, forceMenus) {
1521
- if (actor.links === void 0 || actor.links === null || Object.keys(actor.links).length === 0) {
1522
- return { height: 0, width: 0 };
1523
- }
1524
- const links = actor.links;
1525
- const actorCnt2 = actor.actorCnt;
1526
- const rectData = actor.rectData;
1527
- var displayValue = "none";
1528
- if (forceMenus) {
1529
- displayValue = "block !important";
1530
- }
1531
- const g = elem.append("g");
1532
- g.attr("id", "actor" + actorCnt2 + "_popup");
1533
- g.attr("class", "actorPopupMenu");
1534
- g.attr("display", displayValue);
1535
- var actorClass = "";
1536
- if (rectData.class !== void 0) {
1537
- actorClass = " " + rectData.class;
1538
- }
1539
- let menuWidth = rectData.width > minMenuWidth ? rectData.width : minMenuWidth;
1540
- const rectElem = g.append("rect");
1541
- rectElem.attr("class", "actorPopupMenuPanel" + actorClass);
1542
- rectElem.attr("x", rectData.x);
1543
- rectElem.attr("y", rectData.height);
1544
- rectElem.attr("fill", rectData.fill);
1545
- rectElem.attr("stroke", rectData.stroke);
1546
- rectElem.attr("width", menuWidth);
1547
- rectElem.attr("height", rectData.height);
1548
- rectElem.attr("rx", rectData.rx);
1549
- rectElem.attr("ry", rectData.ry);
1550
- if (links != null) {
1551
- var linkY = 20;
1552
- for (let key in links) {
1553
- var linkElem = g.append("a");
1554
- var sanitizedLink = distExports.sanitizeUrl(links[key]);
1555
- linkElem.attr("xlink:href", sanitizedLink);
1556
- linkElem.attr("target", "_blank");
1557
- _drawMenuItemTextCandidateFunc(textAttrs)(
1558
- key,
1559
- linkElem,
1560
- rectData.x + 10,
1561
- rectData.height + linkY,
1562
- menuWidth,
1563
- 20,
1564
- { class: "actor" },
1565
- textAttrs
1566
- );
1567
- linkY += 30;
1568
- }
1569
- }
1570
- rectElem.attr("height", linkY);
1571
- return { height: rectData.height + linkY, width: menuWidth };
1572
- }, "drawPopup");
1573
- var popupMenuToggle = /* @__PURE__ */ __name(function(popId) {
1574
- return "var pu = document.getElementById('" + popId + "'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }";
1575
- }, "popupMenuToggle");
1576
- var drawKatex = /* @__PURE__ */ __name(async function(elem, textData, msgModel = null) {
1577
- let textElem = elem.append("foreignObject");
1578
- const lines = await renderKatex(textData.text, getConfig());
1579
- const divElem = textElem.append("xhtml:div").attr("style", "width: fit-content;").attr("xmlns", "http://www.w3.org/1999/xhtml").html(lines);
1580
- const dim = divElem.node().getBoundingClientRect();
1581
- textElem.attr("height", Math.round(dim.height)).attr("width", Math.round(dim.width));
1582
- if (textData.class === "noteText") {
1583
- const rectElem = elem.node().firstChild;
1584
- rectElem.setAttribute("height", dim.height + 2 * textData.textMargin);
1585
- const rectDim = rectElem.getBBox();
1586
- textElem.attr("x", Math.round(rectDim.x + rectDim.width / 2 - dim.width / 2)).attr("y", Math.round(rectDim.y + rectDim.height / 2 - dim.height / 2));
1587
- } else if (msgModel) {
1588
- let { startx, stopx, starty } = msgModel;
1589
- if (startx > stopx) {
1590
- const temp = startx;
1591
- startx = stopx;
1592
- stopx = temp;
1593
- }
1594
- textElem.attr("x", Math.round(startx + Math.abs(startx - stopx) / 2 - dim.width / 2));
1595
- if (textData.class === "loopText") {
1596
- textElem.attr("y", Math.round(starty));
1597
- } else {
1598
- textElem.attr("y", Math.round(starty - dim.height));
1599
- }
1600
- }
1601
- return [textElem];
1602
- }, "drawKatex");
1603
- var drawText = /* @__PURE__ */ __name(function(elem, textData) {
1604
- let prevTextHeight = 0;
1605
- let textHeight = 0;
1606
- const lines = textData.text.split(common_default.lineBreakRegex);
1607
- const [_textFontSize, _textFontSizePx] = parseFontSize(textData.fontSize);
1608
- let textElems = [];
1609
- let dy = 0;
1610
- let yfunc = /* @__PURE__ */ __name(() => textData.y, "yfunc");
1611
- if (textData.valign !== void 0 && textData.textMargin !== void 0 && textData.textMargin > 0) {
1612
- switch (textData.valign) {
1613
- case "top":
1614
- case "start":
1615
- yfunc = /* @__PURE__ */ __name(() => Math.round(textData.y + textData.textMargin), "yfunc");
1616
- break;
1617
- case "middle":
1618
- case "center":
1619
- yfunc = /* @__PURE__ */ __name(() => Math.round(textData.y + (prevTextHeight + textHeight + textData.textMargin) / 2), "yfunc");
1620
- break;
1621
- case "bottom":
1622
- case "end":
1623
- yfunc = /* @__PURE__ */ __name(() => Math.round(
1624
- textData.y + (prevTextHeight + textHeight + 2 * textData.textMargin) - textData.textMargin
1625
- ), "yfunc");
1626
- break;
1627
- }
1628
- }
1629
- if (textData.anchor !== void 0 && textData.textMargin !== void 0 && textData.width !== void 0) {
1630
- switch (textData.anchor) {
1631
- case "left":
1632
- case "start":
1633
- textData.x = Math.round(textData.x + textData.textMargin);
1634
- textData.anchor = "start";
1635
- textData.dominantBaseline = "middle";
1636
- textData.alignmentBaseline = "middle";
1637
- break;
1638
- case "middle":
1639
- case "center":
1640
- textData.x = Math.round(textData.x + textData.width / 2);
1641
- textData.anchor = "middle";
1642
- textData.dominantBaseline = "middle";
1643
- textData.alignmentBaseline = "middle";
1644
- break;
1645
- case "right":
1646
- case "end":
1647
- textData.x = Math.round(textData.x + textData.width - textData.textMargin);
1648
- textData.anchor = "end";
1649
- textData.dominantBaseline = "middle";
1650
- textData.alignmentBaseline = "middle";
1651
- break;
1652
- }
1653
- }
1654
- for (let [i, line] of lines.entries()) {
1655
- if (textData.textMargin !== void 0 && textData.textMargin === 0 && _textFontSize !== void 0) {
1656
- dy = i * _textFontSize;
1657
- }
1658
- const textElem = elem.append("text");
1659
- textElem.attr("x", textData.x);
1660
- textElem.attr("y", yfunc());
1661
- if (textData.anchor !== void 0) {
1662
- textElem.attr("text-anchor", textData.anchor).attr("dominant-baseline", textData.dominantBaseline).attr("alignment-baseline", textData.alignmentBaseline);
1663
- }
1664
- if (textData.fontFamily !== void 0) {
1665
- textElem.style("font-family", textData.fontFamily);
1666
- }
1667
- if (_textFontSizePx !== void 0) {
1668
- textElem.style("font-size", _textFontSizePx);
1669
- }
1670
- if (textData.fontWeight !== void 0) {
1671
- textElem.style("font-weight", textData.fontWeight);
1672
- }
1673
- if (textData.fill !== void 0) {
1674
- textElem.attr("fill", textData.fill);
1675
- }
1676
- if (textData.class !== void 0) {
1677
- textElem.attr("class", textData.class);
1678
- }
1679
- if (textData.dy !== void 0) {
1680
- textElem.attr("dy", textData.dy);
1681
- } else if (dy !== 0) {
1682
- textElem.attr("dy", dy);
1683
- }
1684
- const text = line || ZERO_WIDTH_SPACE;
1685
- if (textData.tspan) {
1686
- const span = textElem.append("tspan");
1687
- span.attr("x", textData.x);
1688
- if (textData.fill !== void 0) {
1689
- span.attr("fill", textData.fill);
1690
- }
1691
- span.text(text);
1692
- } else {
1693
- textElem.text(text);
1694
- }
1695
- if (textData.valign !== void 0 && textData.textMargin !== void 0 && textData.textMargin > 0) {
1696
- textHeight += (textElem._groups || textElem)[0][0].getBBox().height;
1697
- prevTextHeight = textHeight;
1698
- }
1699
- textElems.push(textElem);
1700
- }
1701
- return textElems;
1702
- }, "drawText");
1703
- var drawLabel = /* @__PURE__ */ __name(function(elem, txtObject) {
1704
- function genPoints(x, y, width, height, cut) {
1705
- return x + "," + y + " " + (x + width) + "," + y + " " + (x + width) + "," + (y + height - cut) + " " + (x + width - cut * 1.2) + "," + (y + height) + " " + x + "," + (y + height);
1706
- }
1707
- __name(genPoints, "genPoints");
1708
- const polygon = elem.append("polygon");
1709
- polygon.attr("points", genPoints(txtObject.x, txtObject.y, txtObject.width, txtObject.height, 7));
1710
- polygon.attr("class", "labelBox");
1711
- txtObject.y = txtObject.y + txtObject.height / 2;
1712
- drawText(elem, txtObject);
1713
- return polygon;
1714
- }, "drawLabel");
1715
- var actorCnt = -1;
1716
- var fixLifeLineHeights = /* @__PURE__ */ __name((diagram2, actors, actorKeys, conf2) => {
1717
- if (!diagram2.select) {
1718
- return;
1719
- }
1720
- actorKeys.forEach((actorKey) => {
1721
- const actor = actors.get(actorKey);
1722
- const actorDOM = diagram2.select("#actor" + actor.actorCnt);
1723
- if (!conf2.mirrorActors && actor.stopy) {
1724
- actorDOM.attr("y2", actor.stopy + actor.height / 2);
1725
- } else if (conf2.mirrorActors) {
1726
- actorDOM.attr("y2", actor.stopy);
1727
- }
1728
- });
1729
- }, "fixLifeLineHeights");
1730
- var drawActorTypeParticipant = /* @__PURE__ */ __name(function(elem, actor, conf2, isFooter) {
1731
- var _a2, _b;
1732
- const actorY = isFooter ? actor.stopy : actor.starty;
1733
- const center = actor.x + actor.width / 2;
1734
- const centerY = actorY + actor.height;
1735
- const boxplusLineGroup = elem.append("g").lower();
1736
- var g = boxplusLineGroup;
1737
- if (!isFooter) {
1738
- actorCnt++;
1739
- if (Object.keys(actor.links || {}).length && !conf2.forceMenus) {
1740
- g.attr("onclick", popupMenuToggle(`actor${actorCnt}_popup`)).attr("cursor", "pointer");
1741
- }
1742
- g.append("line").attr("id", "actor" + actorCnt).attr("x1", center).attr("y1", centerY).attr("x2", center).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", actor.name);
1743
- g = boxplusLineGroup.append("g");
1744
- actor.actorCnt = actorCnt;
1745
- if (actor.links != null) {
1746
- g.attr("id", "root-" + actorCnt);
1747
- }
1748
- }
1749
- const rect = getNoteRect();
1750
- var cssclass = "actor";
1751
- if ((_a2 = actor.properties) == null ? void 0 : _a2.class) {
1752
- cssclass = actor.properties.class;
1753
- } else {
1754
- rect.fill = "#eaeaea";
1755
- }
1756
- if (isFooter) {
1757
- cssclass += ` ${BOTTOM_ACTOR_CLASS}`;
1758
- } else {
1759
- cssclass += ` ${TOP_ACTOR_CLASS}`;
1760
- }
1761
- rect.x = actor.x;
1762
- rect.y = actorY;
1763
- rect.width = actor.width;
1764
- rect.height = actor.height;
1765
- rect.class = cssclass;
1766
- rect.rx = 3;
1767
- rect.ry = 3;
1768
- rect.name = actor.name;
1769
- const rectElem = drawRect2(g, rect);
1770
- actor.rectData = rect;
1771
- if ((_b = actor.properties) == null ? void 0 : _b.icon) {
1772
- const iconSrc = actor.properties.icon.trim();
1773
- if (iconSrc.charAt(0) === "@") {
1774
- drawEmbeddedImage(g, rect.x + rect.width - 20, rect.y + 10, iconSrc.substr(1));
1775
- } else {
1776
- drawImage(g, rect.x + rect.width - 20, rect.y + 10, iconSrc);
1777
- }
1778
- }
1779
- _drawTextCandidateFunc(conf2, hasKatex(actor.description))(
1780
- actor.description,
1781
- g,
1782
- rect.x,
1783
- rect.y,
1784
- rect.width,
1785
- rect.height,
1786
- { class: `actor ${ACTOR_BOX_CLASS}` },
1787
- conf2
1788
- );
1789
- let height = actor.height;
1790
- if (rectElem.node) {
1791
- const bounds2 = rectElem.node().getBBox();
1792
- actor.height = bounds2.height;
1793
- height = bounds2.height;
1794
- }
1795
- return height;
1796
- }, "drawActorTypeParticipant");
1797
- var drawActorTypeActor = /* @__PURE__ */ __name(function(elem, actor, conf2, isFooter) {
1798
- const actorY = isFooter ? actor.stopy : actor.starty;
1799
- const center = actor.x + actor.width / 2;
1800
- const centerY = actorY + 80;
1801
- const line = elem.append("g").lower();
1802
- if (!isFooter) {
1803
- actorCnt++;
1804
- line.append("line").attr("id", "actor" + actorCnt).attr("x1", center).attr("y1", centerY).attr("x2", center).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", actor.name);
1805
- actor.actorCnt = actorCnt;
1806
- }
1807
- const actElem = elem.append("g");
1808
- let cssClass = ACTOR_MAN_FIGURE_CLASS;
1809
- if (isFooter) {
1810
- cssClass += ` ${BOTTOM_ACTOR_CLASS}`;
1811
- } else {
1812
- cssClass += ` ${TOP_ACTOR_CLASS}`;
1813
- }
1814
- actElem.attr("class", cssClass);
1815
- actElem.attr("name", actor.name);
1816
- const rect = getNoteRect();
1817
- rect.x = actor.x;
1818
- rect.y = actorY;
1819
- rect.fill = "#eaeaea";
1820
- rect.width = actor.width;
1821
- rect.height = actor.height;
1822
- rect.class = "actor";
1823
- rect.rx = 3;
1824
- rect.ry = 3;
1825
- actElem.append("line").attr("id", "actor-man-torso" + actorCnt).attr("x1", center).attr("y1", actorY + 25).attr("x2", center).attr("y2", actorY + 45);
1826
- actElem.append("line").attr("id", "actor-man-arms" + actorCnt).attr("x1", center - ACTOR_TYPE_WIDTH / 2).attr("y1", actorY + 33).attr("x2", center + ACTOR_TYPE_WIDTH / 2).attr("y2", actorY + 33);
1827
- actElem.append("line").attr("x1", center - ACTOR_TYPE_WIDTH / 2).attr("y1", actorY + 60).attr("x2", center).attr("y2", actorY + 45);
1828
- actElem.append("line").attr("x1", center).attr("y1", actorY + 45).attr("x2", center + ACTOR_TYPE_WIDTH / 2 - 2).attr("y2", actorY + 60);
1829
- const circle = actElem.append("circle");
1830
- circle.attr("cx", actor.x + actor.width / 2);
1831
- circle.attr("cy", actorY + 10);
1832
- circle.attr("r", 15);
1833
- circle.attr("width", actor.width);
1834
- circle.attr("height", actor.height);
1835
- const bounds2 = actElem.node().getBBox();
1836
- actor.height = bounds2.height;
1837
- _drawTextCandidateFunc(conf2, hasKatex(actor.description))(
1838
- actor.description,
1839
- actElem,
1840
- rect.x,
1841
- rect.y + 35,
1842
- rect.width,
1843
- rect.height,
1844
- { class: `actor ${ACTOR_MAN_FIGURE_CLASS}` },
1845
- conf2
1846
- );
1847
- return actor.height;
1848
- }, "drawActorTypeActor");
1849
- var drawActor = /* @__PURE__ */ __name(async function(elem, actor, conf2, isFooter) {
1850
- switch (actor.type) {
1851
- case "actor":
1852
- return await drawActorTypeActor(elem, actor, conf2, isFooter);
1853
- case "participant":
1854
- return await drawActorTypeParticipant(elem, actor, conf2, isFooter);
1855
- }
1856
- }, "drawActor");
1857
- var drawBox = /* @__PURE__ */ __name(function(elem, box, conf2) {
1858
- const boxplusTextGroup = elem.append("g");
1859
- const g = boxplusTextGroup;
1860
- drawBackgroundRect2(g, box);
1861
- if (box.name) {
1862
- _drawTextCandidateFunc(conf2)(
1863
- box.name,
1864
- g,
1865
- box.x,
1866
- box.y + (box.textMaxHeight || 0) / 2,
1867
- box.width,
1868
- 0,
1869
- { class: "text" },
1870
- conf2
1871
- );
1872
- }
1873
- g.lower();
1874
- }, "drawBox");
1875
- var anchorElement = /* @__PURE__ */ __name(function(elem) {
1876
- return elem.append("g");
1877
- }, "anchorElement");
1878
- var drawActivation = /* @__PURE__ */ __name(function(elem, bounds2, verticalPos, conf2, actorActivations2) {
1879
- const rect = getNoteRect();
1880
- const g = bounds2.anchored;
1881
- rect.x = bounds2.startx;
1882
- rect.y = bounds2.starty;
1883
- rect.class = "activation" + actorActivations2 % 3;
1884
- rect.width = bounds2.stopx - bounds2.startx;
1885
- rect.height = verticalPos - bounds2.starty;
1886
- drawRect2(g, rect);
1887
- }, "drawActivation");
1888
- var drawLoop = /* @__PURE__ */ __name(async function(elem, loopModel, labelText, conf2) {
1889
- const {
1890
- boxMargin,
1891
- boxTextMargin,
1892
- labelBoxHeight,
1893
- labelBoxWidth,
1894
- messageFontFamily: fontFamily,
1895
- messageFontSize: fontSize,
1896
- messageFontWeight: fontWeight
1897
- } = conf2;
1898
- const g = elem.append("g");
1899
- const drawLoopLine = /* @__PURE__ */ __name(function(startx, starty, stopx, stopy) {
1900
- return g.append("line").attr("x1", startx).attr("y1", starty).attr("x2", stopx).attr("y2", stopy).attr("class", "loopLine");
1901
- }, "drawLoopLine");
1902
- drawLoopLine(loopModel.startx, loopModel.starty, loopModel.stopx, loopModel.starty);
1903
- drawLoopLine(loopModel.stopx, loopModel.starty, loopModel.stopx, loopModel.stopy);
1904
- drawLoopLine(loopModel.startx, loopModel.stopy, loopModel.stopx, loopModel.stopy);
1905
- drawLoopLine(loopModel.startx, loopModel.starty, loopModel.startx, loopModel.stopy);
1906
- if (loopModel.sections !== void 0) {
1907
- loopModel.sections.forEach(function(item) {
1908
- drawLoopLine(loopModel.startx, item.y, loopModel.stopx, item.y).style(
1909
- "stroke-dasharray",
1910
- "3, 3"
1911
- );
1912
- });
1913
- }
1914
- let txt = getTextObj();
1915
- txt.text = labelText;
1916
- txt.x = loopModel.startx;
1917
- txt.y = loopModel.starty;
1918
- txt.fontFamily = fontFamily;
1919
- txt.fontSize = fontSize;
1920
- txt.fontWeight = fontWeight;
1921
- txt.anchor = "middle";
1922
- txt.valign = "middle";
1923
- txt.tspan = false;
1924
- txt.width = labelBoxWidth || 50;
1925
- txt.height = labelBoxHeight || 20;
1926
- txt.textMargin = boxTextMargin;
1927
- txt.class = "labelText";
1928
- drawLabel(g, txt);
1929
- txt = getTextObj2();
1930
- txt.text = loopModel.title;
1931
- txt.x = loopModel.startx + labelBoxWidth / 2 + (loopModel.stopx - loopModel.startx) / 2;
1932
- txt.y = loopModel.starty + boxMargin + boxTextMargin;
1933
- txt.anchor = "middle";
1934
- txt.valign = "middle";
1935
- txt.textMargin = boxTextMargin;
1936
- txt.class = "loopText";
1937
- txt.fontFamily = fontFamily;
1938
- txt.fontSize = fontSize;
1939
- txt.fontWeight = fontWeight;
1940
- txt.wrap = true;
1941
- let textElem = hasKatex(txt.text) ? await drawKatex(g, txt, loopModel) : drawText(g, txt);
1942
- if (loopModel.sectionTitles !== void 0) {
1943
- for (const [idx, item] of Object.entries(loopModel.sectionTitles)) {
1944
- if (item.message) {
1945
- txt.text = item.message;
1946
- txt.x = loopModel.startx + (loopModel.stopx - loopModel.startx) / 2;
1947
- txt.y = loopModel.sections[idx].y + boxMargin + boxTextMargin;
1948
- txt.class = "loopText";
1949
- txt.anchor = "middle";
1950
- txt.valign = "middle";
1951
- txt.tspan = false;
1952
- txt.fontFamily = fontFamily;
1953
- txt.fontSize = fontSize;
1954
- txt.fontWeight = fontWeight;
1955
- txt.wrap = loopModel.wrap;
1956
- if (hasKatex(txt.text)) {
1957
- loopModel.starty = loopModel.sections[idx].y;
1958
- await drawKatex(g, txt, loopModel);
1959
- } else {
1960
- drawText(g, txt);
1961
- }
1962
- let sectionHeight = Math.round(
1963
- textElem.map((te) => (te._groups || te)[0][0].getBBox().height).reduce((acc, curr) => acc + curr)
1964
- );
1965
- loopModel.sections[idx].height += sectionHeight - (boxMargin + boxTextMargin);
1966
- }
1967
- }
1968
- }
1969
- loopModel.height = Math.round(loopModel.stopy - loopModel.starty);
1970
- return g;
1971
- }, "drawLoop");
1972
- var drawBackgroundRect2 = /* @__PURE__ */ __name(function(elem, bounds2) {
1973
- drawBackgroundRect(elem, bounds2);
1974
- }, "drawBackgroundRect");
1975
- var insertDatabaseIcon = /* @__PURE__ */ __name(function(elem) {
1976
- elem.append("defs").append("symbol").attr("id", "database").attr("fill-rule", "evenodd").attr("clip-rule", "evenodd").append("path").attr("transform", "scale(.5)").attr(
1977
- "d",
1978
- "M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z"
1979
- );
1980
- }, "insertDatabaseIcon");
1981
- var insertComputerIcon = /* @__PURE__ */ __name(function(elem) {
1982
- elem.append("defs").append("symbol").attr("id", "computer").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr(
1983
- "d",
1984
- "M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z"
1985
- );
1986
- }, "insertComputerIcon");
1987
- var insertClockIcon = /* @__PURE__ */ __name(function(elem) {
1988
- elem.append("defs").append("symbol").attr("id", "clock").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr(
1989
- "d",
1990
- "M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z"
1991
- );
1992
- }, "insertClockIcon");
1993
- var insertArrowHead = /* @__PURE__ */ __name(function(elem) {
1994
- elem.append("defs").append("marker").attr("id", "arrowhead").attr("refX", 7.9).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto-start-reverse").append("path").attr("d", "M -1 0 L 10 5 L 0 10 z");
1995
- }, "insertArrowHead");
1996
- var insertArrowFilledHead = /* @__PURE__ */ __name(function(elem) {
1997
- elem.append("defs").append("marker").attr("id", "filled-head").attr("refX", 15.5).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L14,7 L9,1 Z");
1998
- }, "insertArrowFilledHead");
1999
- var insertSequenceNumber = /* @__PURE__ */ __name(function(elem) {
2000
- elem.append("defs").append("marker").attr("id", "sequencenumber").attr("refX", 15).attr("refY", 15).attr("markerWidth", 60).attr("markerHeight", 40).attr("orient", "auto").append("circle").attr("cx", 15).attr("cy", 15).attr("r", 6);
2001
- }, "insertSequenceNumber");
2002
- var insertArrowCrossHead = /* @__PURE__ */ __name(function(elem) {
2003
- const defs = elem.append("defs");
2004
- const marker = defs.append("marker").attr("id", "crosshead").attr("markerWidth", 15).attr("markerHeight", 8).attr("orient", "auto").attr("refX", 4).attr("refY", 4.5);
2005
- marker.append("path").attr("fill", "none").attr("stroke", "#000000").style("stroke-dasharray", "0, 0").attr("stroke-width", "1pt").attr("d", "M 1,2 L 6,7 M 6,2 L 1,7");
2006
- }, "insertArrowCrossHead");
2007
- var getTextObj2 = /* @__PURE__ */ __name(function() {
2008
- return {
2009
- x: 0,
2010
- y: 0,
2011
- fill: void 0,
2012
- anchor: void 0,
2013
- style: "#666",
2014
- width: void 0,
2015
- height: void 0,
2016
- textMargin: 0,
2017
- rx: 0,
2018
- ry: 0,
2019
- tspan: true,
2020
- valign: void 0
2021
- };
2022
- }, "getTextObj");
2023
- var getNoteRect2 = /* @__PURE__ */ __name(function() {
2024
- return {
2025
- x: 0,
2026
- y: 0,
2027
- fill: "#EDF2AE",
2028
- stroke: "#666",
2029
- width: 100,
2030
- anchor: "start",
2031
- height: 100,
2032
- rx: 0,
2033
- ry: 0
2034
- };
2035
- }, "getNoteRect");
2036
- var _drawTextCandidateFunc = /* @__PURE__ */ function() {
2037
- function byText(content, g, x, y, width, height, textAttrs) {
2038
- const text = g.append("text").attr("x", x + width / 2).attr("y", y + height / 2 + 5).style("text-anchor", "middle").text(content);
2039
- _setTextAttrs(text, textAttrs);
2040
- }
2041
- __name(byText, "byText");
2042
- function byTspan(content, g, x, y, width, height, textAttrs, conf2) {
2043
- const { actorFontSize, actorFontFamily, actorFontWeight } = conf2;
2044
- const [_actorFontSize, _actorFontSizePx] = parseFontSize(actorFontSize);
2045
- const lines = content.split(common_default.lineBreakRegex);
2046
- for (let i = 0; i < lines.length; i++) {
2047
- const dy = i * _actorFontSize - _actorFontSize * (lines.length - 1) / 2;
2048
- const text = g.append("text").attr("x", x + width / 2).attr("y", y).style("text-anchor", "middle").style("font-size", _actorFontSizePx).style("font-weight", actorFontWeight).style("font-family", actorFontFamily);
2049
- text.append("tspan").attr("x", x + width / 2).attr("dy", dy).text(lines[i]);
2050
- text.attr("y", y + height / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central");
2051
- _setTextAttrs(text, textAttrs);
2052
- }
2053
- }
2054
- __name(byTspan, "byTspan");
2055
- function byFo(content, g, x, y, width, height, textAttrs, conf2) {
2056
- const s = g.append("switch");
2057
- const f = s.append("foreignObject").attr("x", x).attr("y", y).attr("width", width).attr("height", height);
2058
- const text = f.append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
2059
- text.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(content);
2060
- byTspan(content, s, x, y, width, height, textAttrs, conf2);
2061
- _setTextAttrs(text, textAttrs);
2062
- }
2063
- __name(byFo, "byFo");
2064
- async function byKatex(content, g, x, y, width, height, textAttrs, conf2) {
2065
- const dim = await calculateMathMLDimensions(content, getConfig());
2066
- const s = g.append("switch");
2067
- const f = s.append("foreignObject").attr("x", x + width / 2 - dim.width / 2).attr("y", y + height / 2 - dim.height / 2).attr("width", dim.width).attr("height", dim.height);
2068
- const text = f.append("xhtml:div").style("height", "100%").style("width", "100%");
2069
- text.append("div").style("text-align", "center").style("vertical-align", "middle").html(await renderKatex(content, getConfig()));
2070
- byTspan(content, s, x, y, width, height, textAttrs, conf2);
2071
- _setTextAttrs(text, textAttrs);
2072
- }
2073
- __name(byKatex, "byKatex");
2074
- function _setTextAttrs(toText, fromTextAttrsDict) {
2075
- for (const key in fromTextAttrsDict) {
2076
- if (fromTextAttrsDict.hasOwnProperty(key)) {
2077
- toText.attr(key, fromTextAttrsDict[key]);
2078
- }
2079
- }
2080
- }
2081
- __name(_setTextAttrs, "_setTextAttrs");
2082
- return function(conf2, hasKatex2 = false) {
2083
- if (hasKatex2) {
2084
- return byKatex;
2085
- }
2086
- return conf2.textPlacement === "fo" ? byFo : conf2.textPlacement === "old" ? byText : byTspan;
2087
- };
2088
- }();
2089
- var _drawMenuItemTextCandidateFunc = /* @__PURE__ */ function() {
2090
- function byText(content, g, x, y, width, height, textAttrs) {
2091
- const text = g.append("text").attr("x", x).attr("y", y).style("text-anchor", "start").text(content);
2092
- _setTextAttrs(text, textAttrs);
2093
- }
2094
- __name(byText, "byText");
2095
- function byTspan(content, g, x, y, width, height, textAttrs, conf2) {
2096
- const { actorFontSize, actorFontFamily, actorFontWeight } = conf2;
2097
- const lines = content.split(common_default.lineBreakRegex);
2098
- for (let i = 0; i < lines.length; i++) {
2099
- const dy = i * actorFontSize - actorFontSize * (lines.length - 1) / 2;
2100
- const text = g.append("text").attr("x", x).attr("y", y).style("text-anchor", "start").style("font-size", actorFontSize).style("font-weight", actorFontWeight).style("font-family", actorFontFamily);
2101
- text.append("tspan").attr("x", x).attr("dy", dy).text(lines[i]);
2102
- text.attr("y", y + height / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central");
2103
- _setTextAttrs(text, textAttrs);
2104
- }
2105
- }
2106
- __name(byTspan, "byTspan");
2107
- function byFo(content, g, x, y, width, height, textAttrs, conf2) {
2108
- const s = g.append("switch");
2109
- const f = s.append("foreignObject").attr("x", x).attr("y", y).attr("width", width).attr("height", height);
2110
- const text = f.append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
2111
- text.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(content);
2112
- byTspan(content, s, x, y, width, height, textAttrs, conf2);
2113
- _setTextAttrs(text, textAttrs);
2114
- }
2115
- __name(byFo, "byFo");
2116
- function _setTextAttrs(toText, fromTextAttrsDict) {
2117
- for (const key in fromTextAttrsDict) {
2118
- if (fromTextAttrsDict.hasOwnProperty(key)) {
2119
- toText.attr(key, fromTextAttrsDict[key]);
2120
- }
2121
- }
2122
- }
2123
- __name(_setTextAttrs, "_setTextAttrs");
2124
- return function(conf2) {
2125
- return conf2.textPlacement === "fo" ? byFo : conf2.textPlacement === "old" ? byText : byTspan;
2126
- };
2127
- }();
2128
- var svgDraw_default = {
2129
- drawRect: drawRect2,
2130
- drawText,
2131
- drawLabel,
2132
- drawActor,
2133
- drawBox,
2134
- drawPopup,
2135
- anchorElement,
2136
- drawActivation,
2137
- drawLoop,
2138
- drawBackgroundRect: drawBackgroundRect2,
2139
- insertArrowHead,
2140
- insertArrowFilledHead,
2141
- insertSequenceNumber,
2142
- insertArrowCrossHead,
2143
- insertDatabaseIcon,
2144
- insertComputerIcon,
2145
- insertClockIcon,
2146
- getTextObj: getTextObj2,
2147
- getNoteRect: getNoteRect2,
2148
- fixLifeLineHeights,
2149
- sanitizeUrl: distExports.sanitizeUrl
2150
- };
2151
- var conf = {};
2152
- var bounds = {
2153
- data: {
2154
- startx: void 0,
2155
- stopx: void 0,
2156
- starty: void 0,
2157
- stopy: void 0
2158
- },
2159
- verticalPos: 0,
2160
- sequenceItems: [],
2161
- activations: [],
2162
- models: {
2163
- getHeight: /* @__PURE__ */ __name(function() {
2164
- return Math.max.apply(
2165
- null,
2166
- this.actors.length === 0 ? [0] : this.actors.map((actor) => actor.height || 0)
2167
- ) + (this.loops.length === 0 ? 0 : this.loops.map((it) => it.height || 0).reduce((acc, h) => acc + h)) + (this.messages.length === 0 ? 0 : this.messages.map((it) => it.height || 0).reduce((acc, h) => acc + h)) + (this.notes.length === 0 ? 0 : this.notes.map((it) => it.height || 0).reduce((acc, h) => acc + h));
2168
- }, "getHeight"),
2169
- clear: /* @__PURE__ */ __name(function() {
2170
- this.actors = [];
2171
- this.boxes = [];
2172
- this.loops = [];
2173
- this.messages = [];
2174
- this.notes = [];
2175
- }, "clear"),
2176
- addBox: /* @__PURE__ */ __name(function(boxModel) {
2177
- this.boxes.push(boxModel);
2178
- }, "addBox"),
2179
- addActor: /* @__PURE__ */ __name(function(actorModel) {
2180
- this.actors.push(actorModel);
2181
- }, "addActor"),
2182
- addLoop: /* @__PURE__ */ __name(function(loopModel) {
2183
- this.loops.push(loopModel);
2184
- }, "addLoop"),
2185
- addMessage: /* @__PURE__ */ __name(function(msgModel) {
2186
- this.messages.push(msgModel);
2187
- }, "addMessage"),
2188
- addNote: /* @__PURE__ */ __name(function(noteModel) {
2189
- this.notes.push(noteModel);
2190
- }, "addNote"),
2191
- lastActor: /* @__PURE__ */ __name(function() {
2192
- return this.actors[this.actors.length - 1];
2193
- }, "lastActor"),
2194
- lastLoop: /* @__PURE__ */ __name(function() {
2195
- return this.loops[this.loops.length - 1];
2196
- }, "lastLoop"),
2197
- lastMessage: /* @__PURE__ */ __name(function() {
2198
- return this.messages[this.messages.length - 1];
2199
- }, "lastMessage"),
2200
- lastNote: /* @__PURE__ */ __name(function() {
2201
- return this.notes[this.notes.length - 1];
2202
- }, "lastNote"),
2203
- actors: [],
2204
- boxes: [],
2205
- loops: [],
2206
- messages: [],
2207
- notes: []
2208
- },
2209
- init: /* @__PURE__ */ __name(function() {
2210
- this.sequenceItems = [];
2211
- this.activations = [];
2212
- this.models.clear();
2213
- this.data = {
2214
- startx: void 0,
2215
- stopx: void 0,
2216
- starty: void 0,
2217
- stopy: void 0
2218
- };
2219
- this.verticalPos = 0;
2220
- setConf(getConfig2());
2221
- }, "init"),
2222
- updateVal: /* @__PURE__ */ __name(function(obj, key, val, fun) {
2223
- if (obj[key] === void 0) {
2224
- obj[key] = val;
2225
- } else {
2226
- obj[key] = fun(val, obj[key]);
2227
- }
2228
- }, "updateVal"),
2229
- updateBounds: /* @__PURE__ */ __name(function(startx, starty, stopx, stopy) {
2230
- const _self = this;
2231
- let cnt = 0;
2232
- function updateFn(type) {
2233
- return /* @__PURE__ */ __name(function updateItemBounds(item) {
2234
- cnt++;
2235
- const n = _self.sequenceItems.length - cnt + 1;
2236
- _self.updateVal(item, "starty", starty - n * conf.boxMargin, Math.min);
2237
- _self.updateVal(item, "stopy", stopy + n * conf.boxMargin, Math.max);
2238
- _self.updateVal(bounds.data, "startx", startx - n * conf.boxMargin, Math.min);
2239
- _self.updateVal(bounds.data, "stopx", stopx + n * conf.boxMargin, Math.max);
2240
- if (!(type === "activation")) {
2241
- _self.updateVal(item, "startx", startx - n * conf.boxMargin, Math.min);
2242
- _self.updateVal(item, "stopx", stopx + n * conf.boxMargin, Math.max);
2243
- _self.updateVal(bounds.data, "starty", starty - n * conf.boxMargin, Math.min);
2244
- _self.updateVal(bounds.data, "stopy", stopy + n * conf.boxMargin, Math.max);
2245
- }
2246
- }, "updateItemBounds");
2247
- }
2248
- __name(updateFn, "updateFn");
2249
- this.sequenceItems.forEach(updateFn());
2250
- this.activations.forEach(updateFn("activation"));
2251
- }, "updateBounds"),
2252
- insert: /* @__PURE__ */ __name(function(startx, starty, stopx, stopy) {
2253
- const _startx = common_default.getMin(startx, stopx);
2254
- const _stopx = common_default.getMax(startx, stopx);
2255
- const _starty = common_default.getMin(starty, stopy);
2256
- const _stopy = common_default.getMax(starty, stopy);
2257
- this.updateVal(bounds.data, "startx", _startx, Math.min);
2258
- this.updateVal(bounds.data, "starty", _starty, Math.min);
2259
- this.updateVal(bounds.data, "stopx", _stopx, Math.max);
2260
- this.updateVal(bounds.data, "stopy", _stopy, Math.max);
2261
- this.updateBounds(_startx, _starty, _stopx, _stopy);
2262
- }, "insert"),
2263
- newActivation: /* @__PURE__ */ __name(function(message, diagram2, actors) {
2264
- const actorRect = actors.get(message.from);
2265
- const stackedSize = actorActivations(message.from).length || 0;
2266
- const x = actorRect.x + actorRect.width / 2 + (stackedSize - 1) * conf.activationWidth / 2;
2267
- this.activations.push({
2268
- startx: x,
2269
- starty: this.verticalPos + 2,
2270
- stopx: x + conf.activationWidth,
2271
- stopy: void 0,
2272
- actor: message.from,
2273
- anchored: svgDraw_default.anchorElement(diagram2)
2274
- });
2275
- }, "newActivation"),
2276
- endActivation: /* @__PURE__ */ __name(function(message) {
2277
- const lastActorActivationIdx = this.activations.map(function(activation) {
2278
- return activation.actor;
2279
- }).lastIndexOf(message.from);
2280
- return this.activations.splice(lastActorActivationIdx, 1)[0];
2281
- }, "endActivation"),
2282
- createLoop: /* @__PURE__ */ __name(function(title = { message: void 0, wrap: false, width: void 0 }, fill) {
2283
- return {
2284
- startx: void 0,
2285
- starty: this.verticalPos,
2286
- stopx: void 0,
2287
- stopy: void 0,
2288
- title: title.message,
2289
- wrap: title.wrap,
2290
- width: title.width,
2291
- height: 0,
2292
- fill
2293
- };
2294
- }, "createLoop"),
2295
- newLoop: /* @__PURE__ */ __name(function(title = { message: void 0, wrap: false, width: void 0 }, fill) {
2296
- this.sequenceItems.push(this.createLoop(title, fill));
2297
- }, "newLoop"),
2298
- endLoop: /* @__PURE__ */ __name(function() {
2299
- return this.sequenceItems.pop();
2300
- }, "endLoop"),
2301
- isLoopOverlap: /* @__PURE__ */ __name(function() {
2302
- return this.sequenceItems.length ? this.sequenceItems[this.sequenceItems.length - 1].overlap : false;
2303
- }, "isLoopOverlap"),
2304
- addSectionToLoop: /* @__PURE__ */ __name(function(message) {
2305
- const loop = this.sequenceItems.pop();
2306
- loop.sections = loop.sections || [];
2307
- loop.sectionTitles = loop.sectionTitles || [];
2308
- loop.sections.push({ y: bounds.getVerticalPos(), height: 0 });
2309
- loop.sectionTitles.push(message);
2310
- this.sequenceItems.push(loop);
2311
- }, "addSectionToLoop"),
2312
- saveVerticalPos: /* @__PURE__ */ __name(function() {
2313
- if (this.isLoopOverlap()) {
2314
- this.savedVerticalPos = this.verticalPos;
2315
- }
2316
- }, "saveVerticalPos"),
2317
- resetVerticalPos: /* @__PURE__ */ __name(function() {
2318
- if (this.isLoopOverlap()) {
2319
- this.verticalPos = this.savedVerticalPos;
2320
- }
2321
- }, "resetVerticalPos"),
2322
- bumpVerticalPos: /* @__PURE__ */ __name(function(bump) {
2323
- this.verticalPos = this.verticalPos + bump;
2324
- this.data.stopy = common_default.getMax(this.data.stopy, this.verticalPos);
2325
- }, "bumpVerticalPos"),
2326
- getVerticalPos: /* @__PURE__ */ __name(function() {
2327
- return this.verticalPos;
2328
- }, "getVerticalPos"),
2329
- getBounds: /* @__PURE__ */ __name(function() {
2330
- return { bounds: this.data, models: this.models };
2331
- }, "getBounds")
2332
- };
2333
- var drawNote = /* @__PURE__ */ __name(async function(elem, noteModel) {
2334
- bounds.bumpVerticalPos(conf.boxMargin);
2335
- noteModel.height = conf.boxMargin;
2336
- noteModel.starty = bounds.getVerticalPos();
2337
- const rect = getNoteRect();
2338
- rect.x = noteModel.startx;
2339
- rect.y = noteModel.starty;
2340
- rect.width = noteModel.width || conf.width;
2341
- rect.class = "note";
2342
- const g = elem.append("g");
2343
- const rectElem = svgDraw_default.drawRect(g, rect);
2344
- const textObj = getTextObj();
2345
- textObj.x = noteModel.startx;
2346
- textObj.y = noteModel.starty;
2347
- textObj.width = rect.width;
2348
- textObj.dy = "1em";
2349
- textObj.text = noteModel.message;
2350
- textObj.class = "noteText";
2351
- textObj.fontFamily = conf.noteFontFamily;
2352
- textObj.fontSize = conf.noteFontSize;
2353
- textObj.fontWeight = conf.noteFontWeight;
2354
- textObj.anchor = conf.noteAlign;
2355
- textObj.textMargin = conf.noteMargin;
2356
- textObj.valign = "center";
2357
- const textElem = hasKatex(textObj.text) ? await drawKatex(g, textObj) : drawText(g, textObj);
2358
- const textHeight = Math.round(
2359
- textElem.map((te) => (te._groups || te)[0][0].getBBox().height).reduce((acc, curr) => acc + curr)
2360
- );
2361
- rectElem.attr("height", textHeight + 2 * conf.noteMargin);
2362
- noteModel.height += textHeight + 2 * conf.noteMargin;
2363
- bounds.bumpVerticalPos(textHeight + 2 * conf.noteMargin);
2364
- noteModel.stopy = noteModel.starty + textHeight + 2 * conf.noteMargin;
2365
- noteModel.stopx = noteModel.startx + rect.width;
2366
- bounds.insert(noteModel.startx, noteModel.starty, noteModel.stopx, noteModel.stopy);
2367
- bounds.models.addNote(noteModel);
2368
- }, "drawNote");
2369
- var messageFont = /* @__PURE__ */ __name((cnf) => {
2370
- return {
2371
- fontFamily: cnf.messageFontFamily,
2372
- fontSize: cnf.messageFontSize,
2373
- fontWeight: cnf.messageFontWeight
2374
- };
2375
- }, "messageFont");
2376
- var noteFont = /* @__PURE__ */ __name((cnf) => {
2377
- return {
2378
- fontFamily: cnf.noteFontFamily,
2379
- fontSize: cnf.noteFontSize,
2380
- fontWeight: cnf.noteFontWeight
2381
- };
2382
- }, "noteFont");
2383
- var actorFont = /* @__PURE__ */ __name((cnf) => {
2384
- return {
2385
- fontFamily: cnf.actorFontFamily,
2386
- fontSize: cnf.actorFontSize,
2387
- fontWeight: cnf.actorFontWeight
2388
- };
2389
- }, "actorFont");
2390
- async function boundMessage(_diagram, msgModel) {
2391
- bounds.bumpVerticalPos(10);
2392
- const { startx, stopx, message } = msgModel;
2393
- const lines = common_default.splitBreaks(message).length;
2394
- const isKatexMsg = hasKatex(message);
2395
- const textDims = isKatexMsg ? await calculateMathMLDimensions(message, getConfig2()) : utils_default.calculateTextDimensions(message, messageFont(conf));
2396
- if (!isKatexMsg) {
2397
- const lineHeight = textDims.height / lines;
2398
- msgModel.height += lineHeight;
2399
- bounds.bumpVerticalPos(lineHeight);
2400
- }
2401
- let lineStartY;
2402
- let totalOffset = textDims.height - 10;
2403
- const textWidth = textDims.width;
2404
- if (startx === stopx) {
2405
- lineStartY = bounds.getVerticalPos() + totalOffset;
2406
- if (!conf.rightAngles) {
2407
- totalOffset += conf.boxMargin;
2408
- lineStartY = bounds.getVerticalPos() + totalOffset;
2409
- }
2410
- totalOffset += 30;
2411
- const dx = common_default.getMax(textWidth / 2, conf.width / 2);
2412
- bounds.insert(
2413
- startx - dx,
2414
- bounds.getVerticalPos() - 10 + totalOffset,
2415
- stopx + dx,
2416
- bounds.getVerticalPos() + 30 + totalOffset
2417
- );
2418
- } else {
2419
- totalOffset += conf.boxMargin;
2420
- lineStartY = bounds.getVerticalPos() + totalOffset;
2421
- bounds.insert(startx, lineStartY - 10, stopx, lineStartY);
2422
- }
2423
- bounds.bumpVerticalPos(totalOffset);
2424
- msgModel.height += totalOffset;
2425
- msgModel.stopy = msgModel.starty + msgModel.height;
2426
- bounds.insert(msgModel.fromBounds, msgModel.starty, msgModel.toBounds, msgModel.stopy);
2427
- return lineStartY;
2428
- }
2429
- __name(boundMessage, "boundMessage");
2430
- var drawMessage = /* @__PURE__ */ __name(async function(diagram2, msgModel, lineStartY, diagObj) {
2431
- const { startx, stopx, starty, message, type, sequenceIndex, sequenceVisible } = msgModel;
2432
- const textDims = utils_default.calculateTextDimensions(message, messageFont(conf));
2433
- const textObj = getTextObj();
2434
- textObj.x = startx;
2435
- textObj.y = starty + 10;
2436
- textObj.width = stopx - startx;
2437
- textObj.class = "messageText";
2438
- textObj.dy = "1em";
2439
- textObj.text = message;
2440
- textObj.fontFamily = conf.messageFontFamily;
2441
- textObj.fontSize = conf.messageFontSize;
2442
- textObj.fontWeight = conf.messageFontWeight;
2443
- textObj.anchor = conf.messageAlign;
2444
- textObj.valign = "center";
2445
- textObj.textMargin = conf.wrapPadding;
2446
- textObj.tspan = false;
2447
- if (hasKatex(textObj.text)) {
2448
- await drawKatex(diagram2, textObj, { startx, stopx, starty: lineStartY });
2449
- } else {
2450
- drawText(diagram2, textObj);
2451
- }
2452
- const textWidth = textDims.width;
2453
- let line;
2454
- if (startx === stopx) {
2455
- if (conf.rightAngles) {
2456
- line = diagram2.append("path").attr(
2457
- "d",
2458
- `M ${startx},${lineStartY} H ${startx + common_default.getMax(conf.width / 2, textWidth / 2)} V ${lineStartY + 25} H ${startx}`
2459
- );
2460
- } else {
2461
- line = diagram2.append("path").attr(
2462
- "d",
2463
- "M " + startx + "," + lineStartY + " C " + (startx + 60) + "," + (lineStartY - 10) + " " + (startx + 60) + "," + (lineStartY + 30) + " " + startx + "," + (lineStartY + 20)
2464
- );
2465
- }
2466
- } else {
2467
- line = diagram2.append("line");
2468
- line.attr("x1", startx);
2469
- line.attr("y1", lineStartY);
2470
- line.attr("x2", stopx);
2471
- line.attr("y2", lineStartY);
2472
- }
2473
- if (type === diagObj.db.LINETYPE.DOTTED || type === diagObj.db.LINETYPE.DOTTED_CROSS || type === diagObj.db.LINETYPE.DOTTED_POINT || type === diagObj.db.LINETYPE.DOTTED_OPEN || type === diagObj.db.LINETYPE.BIDIRECTIONAL_DOTTED) {
2474
- line.style("stroke-dasharray", "3, 3");
2475
- line.attr("class", "messageLine1");
2476
- } else {
2477
- line.attr("class", "messageLine0");
2478
- }
2479
- let url = "";
2480
- if (conf.arrowMarkerAbsolute) {
2481
- url = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search;
2482
- url = url.replace(/\(/g, "\\(");
2483
- url = url.replace(/\)/g, "\\)");
2484
- }
2485
- line.attr("stroke-width", 2);
2486
- line.attr("stroke", "none");
2487
- line.style("fill", "none");
2488
- if (type === diagObj.db.LINETYPE.SOLID || type === diagObj.db.LINETYPE.DOTTED) {
2489
- line.attr("marker-end", "url(" + url + "#arrowhead)");
2490
- }
2491
- if (type === diagObj.db.LINETYPE.BIDIRECTIONAL_SOLID || type === diagObj.db.LINETYPE.BIDIRECTIONAL_DOTTED) {
2492
- line.attr("marker-start", "url(" + url + "#arrowhead)");
2493
- line.attr("marker-end", "url(" + url + "#arrowhead)");
2494
- }
2495
- if (type === diagObj.db.LINETYPE.SOLID_POINT || type === diagObj.db.LINETYPE.DOTTED_POINT) {
2496
- line.attr("marker-end", "url(" + url + "#filled-head)");
2497
- }
2498
- if (type === diagObj.db.LINETYPE.SOLID_CROSS || type === diagObj.db.LINETYPE.DOTTED_CROSS) {
2499
- line.attr("marker-end", "url(" + url + "#crosshead)");
2500
- }
2501
- if (sequenceVisible || conf.showSequenceNumbers) {
2502
- line.attr("marker-start", "url(" + url + "#sequencenumber)");
2503
- diagram2.append("text").attr("x", startx).attr("y", lineStartY + 4).attr("font-family", "sans-serif").attr("font-size", "12px").attr("text-anchor", "middle").attr("class", "sequenceNumber").text(sequenceIndex);
2504
- }
2505
- }, "drawMessage");
2506
- var addActorRenderingData = /* @__PURE__ */ __name(function(diagram2, actors, createdActors, actorKeys, verticalPos, messages, isFooter) {
2507
- let prevWidth = 0;
2508
- let prevMargin = 0;
2509
- let prevBox = void 0;
2510
- let maxHeight = 0;
2511
- for (const actorKey of actorKeys) {
2512
- const actor = actors.get(actorKey);
2513
- const box = actor.box;
2514
- if (prevBox && prevBox != box) {
2515
- if (!isFooter) {
2516
- bounds.models.addBox(prevBox);
2517
- }
2518
- prevMargin += conf.boxMargin + prevBox.margin;
2519
- }
2520
- if (box && box != prevBox) {
2521
- if (!isFooter) {
2522
- box.x = prevWidth + prevMargin;
2523
- box.y = verticalPos;
2524
- }
2525
- prevMargin += box.margin;
2526
- }
2527
- actor.width = actor.width || conf.width;
2528
- actor.height = common_default.getMax(actor.height || conf.height, conf.height);
2529
- actor.margin = actor.margin || conf.actorMargin;
2530
- maxHeight = common_default.getMax(maxHeight, actor.height);
2531
- if (createdActors.get(actor.name)) {
2532
- prevMargin += actor.width / 2;
2533
- }
2534
- actor.x = prevWidth + prevMargin;
2535
- actor.starty = bounds.getVerticalPos();
2536
- bounds.insert(actor.x, verticalPos, actor.x + actor.width, actor.height);
2537
- prevWidth += actor.width + prevMargin;
2538
- if (actor.box) {
2539
- actor.box.width = prevWidth + box.margin - actor.box.x;
2540
- }
2541
- prevMargin = actor.margin;
2542
- prevBox = actor.box;
2543
- bounds.models.addActor(actor);
2544
- }
2545
- if (prevBox && !isFooter) {
2546
- bounds.models.addBox(prevBox);
2547
- }
2548
- bounds.bumpVerticalPos(maxHeight);
2549
- }, "addActorRenderingData");
2550
- var drawActors = /* @__PURE__ */ __name(async function(diagram2, actors, actorKeys, isFooter) {
2551
- if (!isFooter) {
2552
- for (const actorKey of actorKeys) {
2553
- const actor = actors.get(actorKey);
2554
- await svgDraw_default.drawActor(diagram2, actor, conf, false);
2555
- }
2556
- } else {
2557
- let maxHeight = 0;
2558
- bounds.bumpVerticalPos(conf.boxMargin * 2);
2559
- for (const actorKey of actorKeys) {
2560
- const actor = actors.get(actorKey);
2561
- if (!actor.stopy) {
2562
- actor.stopy = bounds.getVerticalPos();
2563
- }
2564
- const height = await svgDraw_default.drawActor(diagram2, actor, conf, true);
2565
- maxHeight = common_default.getMax(maxHeight, height);
2566
- }
2567
- bounds.bumpVerticalPos(maxHeight + conf.boxMargin);
2568
- }
2569
- }, "drawActors");
2570
- var drawActorsPopup = /* @__PURE__ */ __name(function(diagram2, actors, actorKeys, doc) {
2571
- let maxHeight = 0;
2572
- let maxWidth = 0;
2573
- for (const actorKey of actorKeys) {
2574
- const actor = actors.get(actorKey);
2575
- const minMenuWidth = getRequiredPopupWidth(actor);
2576
- const menuDimensions = svgDraw_default.drawPopup(
2577
- diagram2,
2578
- actor,
2579
- minMenuWidth,
2580
- conf,
2581
- conf.forceMenus,
2582
- doc
2583
- );
2584
- if (menuDimensions.height > maxHeight) {
2585
- maxHeight = menuDimensions.height;
2586
- }
2587
- if (menuDimensions.width + actor.x > maxWidth) {
2588
- maxWidth = menuDimensions.width + actor.x;
2589
- }
2590
- }
2591
- return { maxHeight, maxWidth };
2592
- }, "drawActorsPopup");
2593
- var setConf = /* @__PURE__ */ __name(function(cnf) {
2594
- assignWithDepth_default(conf, cnf);
2595
- if (cnf.fontFamily) {
2596
- conf.actorFontFamily = conf.noteFontFamily = conf.messageFontFamily = cnf.fontFamily;
2597
- }
2598
- if (cnf.fontSize) {
2599
- conf.actorFontSize = conf.noteFontSize = conf.messageFontSize = cnf.fontSize;
2600
- }
2601
- if (cnf.fontWeight) {
2602
- conf.actorFontWeight = conf.noteFontWeight = conf.messageFontWeight = cnf.fontWeight;
2603
- }
2604
- }, "setConf");
2605
- var actorActivations = /* @__PURE__ */ __name(function(actor) {
2606
- return bounds.activations.filter(function(activation) {
2607
- return activation.actor === actor;
2608
- });
2609
- }, "actorActivations");
2610
- var activationBounds = /* @__PURE__ */ __name(function(actor, actors) {
2611
- const actorObj = actors.get(actor);
2612
- const activations = actorActivations(actor);
2613
- const left = activations.reduce(
2614
- function(acc, activation) {
2615
- return common_default.getMin(acc, activation.startx);
2616
- },
2617
- actorObj.x + actorObj.width / 2 - 1
2618
- );
2619
- const right = activations.reduce(
2620
- function(acc, activation) {
2621
- return common_default.getMax(acc, activation.stopx);
2622
- },
2623
- actorObj.x + actorObj.width / 2 + 1
2624
- );
2625
- return [left, right];
2626
- }, "activationBounds");
2627
- function adjustLoopHeightForWrap(loopWidths, msg, preMargin, postMargin, addLoopFn) {
2628
- bounds.bumpVerticalPos(preMargin);
2629
- let heightAdjust = postMargin;
2630
- if (msg.id && msg.message && loopWidths[msg.id]) {
2631
- const loopWidth = loopWidths[msg.id].width;
2632
- const textConf = messageFont(conf);
2633
- msg.message = utils_default.wrapLabel(`[${msg.message}]`, loopWidth - 2 * conf.wrapPadding, textConf);
2634
- msg.width = loopWidth;
2635
- msg.wrap = true;
2636
- const textDims = utils_default.calculateTextDimensions(msg.message, textConf);
2637
- const totalOffset = common_default.getMax(textDims.height, conf.labelBoxHeight);
2638
- heightAdjust = postMargin + totalOffset;
2639
- log.debug(`${totalOffset} - ${msg.message}`);
2640
- }
2641
- addLoopFn(msg);
2642
- bounds.bumpVerticalPos(heightAdjust);
2643
- }
2644
- __name(adjustLoopHeightForWrap, "adjustLoopHeightForWrap");
2645
- function adjustCreatedDestroyedData(msg, msgModel, lineStartY, index, actors, createdActors, destroyedActors) {
2646
- function receiverAdjustment(actor, adjustment) {
2647
- if (actor.x < actors.get(msg.from).x) {
2648
- bounds.insert(
2649
- msgModel.stopx - adjustment,
2650
- msgModel.starty,
2651
- msgModel.startx,
2652
- msgModel.stopy + actor.height / 2 + conf.noteMargin
2653
- );
2654
- msgModel.stopx = msgModel.stopx + adjustment;
2655
- } else {
2656
- bounds.insert(
2657
- msgModel.startx,
2658
- msgModel.starty,
2659
- msgModel.stopx + adjustment,
2660
- msgModel.stopy + actor.height / 2 + conf.noteMargin
2661
- );
2662
- msgModel.stopx = msgModel.stopx - adjustment;
2663
- }
2664
- }
2665
- __name(receiverAdjustment, "receiverAdjustment");
2666
- function senderAdjustment(actor, adjustment) {
2667
- if (actor.x < actors.get(msg.to).x) {
2668
- bounds.insert(
2669
- msgModel.startx - adjustment,
2670
- msgModel.starty,
2671
- msgModel.stopx,
2672
- msgModel.stopy + actor.height / 2 + conf.noteMargin
2673
- );
2674
- msgModel.startx = msgModel.startx + adjustment;
2675
- } else {
2676
- bounds.insert(
2677
- msgModel.stopx,
2678
- msgModel.starty,
2679
- msgModel.startx + adjustment,
2680
- msgModel.stopy + actor.height / 2 + conf.noteMargin
2681
- );
2682
- msgModel.startx = msgModel.startx - adjustment;
2683
- }
2684
- }
2685
- __name(senderAdjustment, "senderAdjustment");
2686
- if (createdActors.get(msg.to) == index) {
2687
- const actor = actors.get(msg.to);
2688
- const adjustment = actor.type == "actor" ? ACTOR_TYPE_WIDTH / 2 + 3 : actor.width / 2 + 3;
2689
- receiverAdjustment(actor, adjustment);
2690
- actor.starty = lineStartY - actor.height / 2;
2691
- bounds.bumpVerticalPos(actor.height / 2);
2692
- } else if (destroyedActors.get(msg.from) == index) {
2693
- const actor = actors.get(msg.from);
2694
- if (conf.mirrorActors) {
2695
- const adjustment = actor.type == "actor" ? ACTOR_TYPE_WIDTH / 2 : actor.width / 2;
2696
- senderAdjustment(actor, adjustment);
2697
- }
2698
- actor.stopy = lineStartY - actor.height / 2;
2699
- bounds.bumpVerticalPos(actor.height / 2);
2700
- } else if (destroyedActors.get(msg.to) == index) {
2701
- const actor = actors.get(msg.to);
2702
- if (conf.mirrorActors) {
2703
- const adjustment = actor.type == "actor" ? ACTOR_TYPE_WIDTH / 2 + 3 : actor.width / 2 + 3;
2704
- receiverAdjustment(actor, adjustment);
2705
- }
2706
- actor.stopy = lineStartY - actor.height / 2;
2707
- bounds.bumpVerticalPos(actor.height / 2);
2708
- }
2709
- }
2710
- __name(adjustCreatedDestroyedData, "adjustCreatedDestroyedData");
2711
- var draw = /* @__PURE__ */ __name(async function(_text, id, _version, diagObj) {
2712
- const { securityLevel, sequence } = getConfig2();
2713
- conf = sequence;
2714
- let sandboxElement;
2715
- if (securityLevel === "sandbox") {
2716
- sandboxElement = select("#i" + id);
2717
- }
2718
- const root = securityLevel === "sandbox" ? select(sandboxElement.nodes()[0].contentDocument.body) : select("body");
2719
- const doc = securityLevel === "sandbox" ? sandboxElement.nodes()[0].contentDocument : document;
2720
- bounds.init();
2721
- log.debug(diagObj.db);
2722
- const diagram2 = securityLevel === "sandbox" ? root.select(`[id="${id}"]`) : select(`[id="${id}"]`);
2723
- const actors = diagObj.db.getActors();
2724
- const createdActors = diagObj.db.getCreatedActors();
2725
- const destroyedActors = diagObj.db.getDestroyedActors();
2726
- const boxes = diagObj.db.getBoxes();
2727
- let actorKeys = diagObj.db.getActorKeys();
2728
- const messages = diagObj.db.getMessages();
2729
- const title = diagObj.db.getDiagramTitle();
2730
- const hasBoxes = diagObj.db.hasAtLeastOneBox();
2731
- const hasBoxTitles = diagObj.db.hasAtLeastOneBoxWithTitle();
2732
- const maxMessageWidthPerActor = await getMaxMessageWidthPerActor(actors, messages, diagObj);
2733
- conf.height = await calculateActorMargins(actors, maxMessageWidthPerActor, boxes);
2734
- svgDraw_default.insertComputerIcon(diagram2);
2735
- svgDraw_default.insertDatabaseIcon(diagram2);
2736
- svgDraw_default.insertClockIcon(diagram2);
2737
- if (hasBoxes) {
2738
- bounds.bumpVerticalPos(conf.boxMargin);
2739
- if (hasBoxTitles) {
2740
- bounds.bumpVerticalPos(boxes[0].textMaxHeight);
2741
- }
2742
- }
2743
- if (conf.hideUnusedParticipants === true) {
2744
- const newActors = /* @__PURE__ */ new Set();
2745
- messages.forEach((message) => {
2746
- newActors.add(message.from);
2747
- newActors.add(message.to);
2748
- });
2749
- actorKeys = actorKeys.filter((actorKey) => newActors.has(actorKey));
2750
- }
2751
- addActorRenderingData(diagram2, actors, createdActors, actorKeys, 0, messages, false);
2752
- const loopWidths = await calculateLoopBounds(messages, actors, maxMessageWidthPerActor, diagObj);
2753
- svgDraw_default.insertArrowHead(diagram2);
2754
- svgDraw_default.insertArrowCrossHead(diagram2);
2755
- svgDraw_default.insertArrowFilledHead(diagram2);
2756
- svgDraw_default.insertSequenceNumber(diagram2);
2757
- function activeEnd(msg, verticalPos) {
2758
- const activationData = bounds.endActivation(msg);
2759
- if (activationData.starty + 18 > verticalPos) {
2760
- activationData.starty = verticalPos - 6;
2761
- verticalPos += 12;
2762
- }
2763
- svgDraw_default.drawActivation(
2764
- diagram2,
2765
- activationData,
2766
- verticalPos,
2767
- conf,
2768
- actorActivations(msg.from).length
2769
- );
2770
- bounds.insert(activationData.startx, verticalPos - 10, activationData.stopx, verticalPos);
2771
- }
2772
- __name(activeEnd, "activeEnd");
2773
- let sequenceIndex = 1;
2774
- let sequenceIndexStep = 1;
2775
- const messagesToDraw = [];
2776
- const backgrounds = [];
2777
- let index = 0;
2778
- for (const msg of messages) {
2779
- let loopModel, noteModel, msgModel;
2780
- switch (msg.type) {
2781
- case diagObj.db.LINETYPE.NOTE:
2782
- bounds.resetVerticalPos();
2783
- noteModel = msg.noteModel;
2784
- await drawNote(diagram2, noteModel);
2785
- break;
2786
- case diagObj.db.LINETYPE.ACTIVE_START:
2787
- bounds.newActivation(msg, diagram2, actors);
2788
- break;
2789
- case diagObj.db.LINETYPE.ACTIVE_END:
2790
- activeEnd(msg, bounds.getVerticalPos());
2791
- break;
2792
- case diagObj.db.LINETYPE.LOOP_START:
2793
- adjustLoopHeightForWrap(
2794
- loopWidths,
2795
- msg,
2796
- conf.boxMargin,
2797
- conf.boxMargin + conf.boxTextMargin,
2798
- (message) => bounds.newLoop(message)
2799
- );
2800
- break;
2801
- case diagObj.db.LINETYPE.LOOP_END:
2802
- loopModel = bounds.endLoop();
2803
- await svgDraw_default.drawLoop(diagram2, loopModel, "loop", conf);
2804
- bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());
2805
- bounds.models.addLoop(loopModel);
2806
- break;
2807
- case diagObj.db.LINETYPE.RECT_START:
2808
- adjustLoopHeightForWrap(
2809
- loopWidths,
2810
- msg,
2811
- conf.boxMargin,
2812
- conf.boxMargin,
2813
- (message) => bounds.newLoop(void 0, message.message)
2814
- );
2815
- break;
2816
- case diagObj.db.LINETYPE.RECT_END:
2817
- loopModel = bounds.endLoop();
2818
- backgrounds.push(loopModel);
2819
- bounds.models.addLoop(loopModel);
2820
- bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());
2821
- break;
2822
- case diagObj.db.LINETYPE.OPT_START:
2823
- adjustLoopHeightForWrap(
2824
- loopWidths,
2825
- msg,
2826
- conf.boxMargin,
2827
- conf.boxMargin + conf.boxTextMargin,
2828
- (message) => bounds.newLoop(message)
2829
- );
2830
- break;
2831
- case diagObj.db.LINETYPE.OPT_END:
2832
- loopModel = bounds.endLoop();
2833
- await svgDraw_default.drawLoop(diagram2, loopModel, "opt", conf);
2834
- bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());
2835
- bounds.models.addLoop(loopModel);
2836
- break;
2837
- case diagObj.db.LINETYPE.ALT_START:
2838
- adjustLoopHeightForWrap(
2839
- loopWidths,
2840
- msg,
2841
- conf.boxMargin,
2842
- conf.boxMargin + conf.boxTextMargin,
2843
- (message) => bounds.newLoop(message)
2844
- );
2845
- break;
2846
- case diagObj.db.LINETYPE.ALT_ELSE:
2847
- adjustLoopHeightForWrap(
2848
- loopWidths,
2849
- msg,
2850
- conf.boxMargin + conf.boxTextMargin,
2851
- conf.boxMargin,
2852
- (message) => bounds.addSectionToLoop(message)
2853
- );
2854
- break;
2855
- case diagObj.db.LINETYPE.ALT_END:
2856
- loopModel = bounds.endLoop();
2857
- await svgDraw_default.drawLoop(diagram2, loopModel, "alt", conf);
2858
- bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());
2859
- bounds.models.addLoop(loopModel);
2860
- break;
2861
- case diagObj.db.LINETYPE.PAR_START:
2862
- case diagObj.db.LINETYPE.PAR_OVER_START:
2863
- adjustLoopHeightForWrap(
2864
- loopWidths,
2865
- msg,
2866
- conf.boxMargin,
2867
- conf.boxMargin + conf.boxTextMargin,
2868
- (message) => bounds.newLoop(message)
2869
- );
2870
- bounds.saveVerticalPos();
2871
- break;
2872
- case diagObj.db.LINETYPE.PAR_AND:
2873
- adjustLoopHeightForWrap(
2874
- loopWidths,
2875
- msg,
2876
- conf.boxMargin + conf.boxTextMargin,
2877
- conf.boxMargin,
2878
- (message) => bounds.addSectionToLoop(message)
2879
- );
2880
- break;
2881
- case diagObj.db.LINETYPE.PAR_END:
2882
- loopModel = bounds.endLoop();
2883
- await svgDraw_default.drawLoop(diagram2, loopModel, "par", conf);
2884
- bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());
2885
- bounds.models.addLoop(loopModel);
2886
- break;
2887
- case diagObj.db.LINETYPE.AUTONUMBER:
2888
- sequenceIndex = msg.message.start || sequenceIndex;
2889
- sequenceIndexStep = msg.message.step || sequenceIndexStep;
2890
- if (msg.message.visible) {
2891
- diagObj.db.enableSequenceNumbers();
2892
- } else {
2893
- diagObj.db.disableSequenceNumbers();
2894
- }
2895
- break;
2896
- case diagObj.db.LINETYPE.CRITICAL_START:
2897
- adjustLoopHeightForWrap(
2898
- loopWidths,
2899
- msg,
2900
- conf.boxMargin,
2901
- conf.boxMargin + conf.boxTextMargin,
2902
- (message) => bounds.newLoop(message)
2903
- );
2904
- break;
2905
- case diagObj.db.LINETYPE.CRITICAL_OPTION:
2906
- adjustLoopHeightForWrap(
2907
- loopWidths,
2908
- msg,
2909
- conf.boxMargin + conf.boxTextMargin,
2910
- conf.boxMargin,
2911
- (message) => bounds.addSectionToLoop(message)
2912
- );
2913
- break;
2914
- case diagObj.db.LINETYPE.CRITICAL_END:
2915
- loopModel = bounds.endLoop();
2916
- await svgDraw_default.drawLoop(diagram2, loopModel, "critical", conf);
2917
- bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());
2918
- bounds.models.addLoop(loopModel);
2919
- break;
2920
- case diagObj.db.LINETYPE.BREAK_START:
2921
- adjustLoopHeightForWrap(
2922
- loopWidths,
2923
- msg,
2924
- conf.boxMargin,
2925
- conf.boxMargin + conf.boxTextMargin,
2926
- (message) => bounds.newLoop(message)
2927
- );
2928
- break;
2929
- case diagObj.db.LINETYPE.BREAK_END:
2930
- loopModel = bounds.endLoop();
2931
- await svgDraw_default.drawLoop(diagram2, loopModel, "break", conf);
2932
- bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());
2933
- bounds.models.addLoop(loopModel);
2934
- break;
2935
- default:
2936
- try {
2937
- msgModel = msg.msgModel;
2938
- msgModel.starty = bounds.getVerticalPos();
2939
- msgModel.sequenceIndex = sequenceIndex;
2940
- msgModel.sequenceVisible = diagObj.db.showSequenceNumbers();
2941
- const lineStartY = await boundMessage(diagram2, msgModel);
2942
- adjustCreatedDestroyedData(
2943
- msg,
2944
- msgModel,
2945
- lineStartY,
2946
- index,
2947
- actors,
2948
- createdActors,
2949
- destroyedActors
2950
- );
2951
- messagesToDraw.push({ messageModel: msgModel, lineStartY });
2952
- bounds.models.addMessage(msgModel);
2953
- } catch (e) {
2954
- log.error("error while drawing message", e);
2955
- }
2956
- }
2957
- if ([
2958
- diagObj.db.LINETYPE.SOLID_OPEN,
2959
- diagObj.db.LINETYPE.DOTTED_OPEN,
2960
- diagObj.db.LINETYPE.SOLID,
2961
- diagObj.db.LINETYPE.DOTTED,
2962
- diagObj.db.LINETYPE.SOLID_CROSS,
2963
- diagObj.db.LINETYPE.DOTTED_CROSS,
2964
- diagObj.db.LINETYPE.SOLID_POINT,
2965
- diagObj.db.LINETYPE.DOTTED_POINT,
2966
- diagObj.db.LINETYPE.BIDIRECTIONAL_SOLID,
2967
- diagObj.db.LINETYPE.BIDIRECTIONAL_DOTTED
2968
- ].includes(msg.type)) {
2969
- sequenceIndex = sequenceIndex + sequenceIndexStep;
2970
- }
2971
- index++;
2972
- }
2973
- log.debug("createdActors", createdActors);
2974
- log.debug("destroyedActors", destroyedActors);
2975
- await drawActors(diagram2, actors, actorKeys, false);
2976
- for (const e of messagesToDraw) {
2977
- await drawMessage(diagram2, e.messageModel, e.lineStartY, diagObj);
2978
- }
2979
- if (conf.mirrorActors) {
2980
- await drawActors(diagram2, actors, actorKeys, true);
2981
- }
2982
- backgrounds.forEach((e) => svgDraw_default.drawBackgroundRect(diagram2, e));
2983
- fixLifeLineHeights(diagram2, actors, actorKeys, conf);
2984
- for (const box2 of bounds.models.boxes) {
2985
- box2.height = bounds.getVerticalPos() - box2.y;
2986
- bounds.insert(box2.x, box2.y, box2.x + box2.width, box2.height);
2987
- box2.startx = box2.x;
2988
- box2.starty = box2.y;
2989
- box2.stopx = box2.startx + box2.width;
2990
- box2.stopy = box2.starty + box2.height;
2991
- box2.stroke = "rgb(0,0,0, 0.5)";
2992
- svgDraw_default.drawBox(diagram2, box2, conf);
2993
- }
2994
- if (hasBoxes) {
2995
- bounds.bumpVerticalPos(conf.boxMargin);
2996
- }
2997
- const requiredBoxSize = drawActorsPopup(diagram2, actors, actorKeys, doc);
2998
- const { bounds: box } = bounds.getBounds();
2999
- if (box.startx === void 0) {
3000
- box.startx = 0;
3001
- }
3002
- if (box.starty === void 0) {
3003
- box.starty = 0;
3004
- }
3005
- if (box.stopx === void 0) {
3006
- box.stopx = 0;
3007
- }
3008
- if (box.stopy === void 0) {
3009
- box.stopy = 0;
3010
- }
3011
- let boxHeight = box.stopy - box.starty;
3012
- if (boxHeight < requiredBoxSize.maxHeight) {
3013
- boxHeight = requiredBoxSize.maxHeight;
3014
- }
3015
- let height = boxHeight + 2 * conf.diagramMarginY;
3016
- if (conf.mirrorActors) {
3017
- height = height - conf.boxMargin + conf.bottomMarginAdj;
3018
- }
3019
- let boxWidth = box.stopx - box.startx;
3020
- if (boxWidth < requiredBoxSize.maxWidth) {
3021
- boxWidth = requiredBoxSize.maxWidth;
3022
- }
3023
- const width = boxWidth + 2 * conf.diagramMarginX;
3024
- if (title) {
3025
- diagram2.append("text").text(title).attr("x", (box.stopx - box.startx) / 2 - 2 * conf.diagramMarginX).attr("y", -25);
3026
- }
3027
- configureSvgSize(diagram2, height, width, conf.useMaxWidth);
3028
- const extraVertForTitle = title ? 40 : 0;
3029
- diagram2.attr(
3030
- "viewBox",
3031
- box.startx - conf.diagramMarginX + " -" + (conf.diagramMarginY + extraVertForTitle) + " " + width + " " + (height + extraVertForTitle)
3032
- );
3033
- log.debug(`models:`, bounds.models);
3034
- }, "draw");
3035
- async function getMaxMessageWidthPerActor(actors, messages, diagObj) {
3036
- const maxMessageWidthPerActor = {};
3037
- for (const msg of messages) {
3038
- if (actors.get(msg.to) && actors.get(msg.from)) {
3039
- const actor = actors.get(msg.to);
3040
- if (msg.placement === diagObj.db.PLACEMENT.LEFTOF && !actor.prevActor) {
3041
- continue;
3042
- }
3043
- if (msg.placement === diagObj.db.PLACEMENT.RIGHTOF && !actor.nextActor) {
3044
- continue;
3045
- }
3046
- const isNote = msg.placement !== void 0;
3047
- const isMessage = !isNote;
3048
- const textFont = isNote ? noteFont(conf) : messageFont(conf);
3049
- const wrappedMessage = msg.wrap ? utils_default.wrapLabel(msg.message, conf.width - 2 * conf.wrapPadding, textFont) : msg.message;
3050
- const messageDimensions = hasKatex(wrappedMessage) ? await calculateMathMLDimensions(msg.message, getConfig2()) : utils_default.calculateTextDimensions(wrappedMessage, textFont);
3051
- const messageWidth = messageDimensions.width + 2 * conf.wrapPadding;
3052
- if (isMessage && msg.from === actor.nextActor) {
3053
- maxMessageWidthPerActor[msg.to] = common_default.getMax(
3054
- maxMessageWidthPerActor[msg.to] || 0,
3055
- messageWidth
3056
- );
3057
- } else if (isMessage && msg.from === actor.prevActor) {
3058
- maxMessageWidthPerActor[msg.from] = common_default.getMax(
3059
- maxMessageWidthPerActor[msg.from] || 0,
3060
- messageWidth
3061
- );
3062
- } else if (isMessage && msg.from === msg.to) {
3063
- maxMessageWidthPerActor[msg.from] = common_default.getMax(
3064
- maxMessageWidthPerActor[msg.from] || 0,
3065
- messageWidth / 2
3066
- );
3067
- maxMessageWidthPerActor[msg.to] = common_default.getMax(
3068
- maxMessageWidthPerActor[msg.to] || 0,
3069
- messageWidth / 2
3070
- );
3071
- } else if (msg.placement === diagObj.db.PLACEMENT.RIGHTOF) {
3072
- maxMessageWidthPerActor[msg.from] = common_default.getMax(
3073
- maxMessageWidthPerActor[msg.from] || 0,
3074
- messageWidth
3075
- );
3076
- } else if (msg.placement === diagObj.db.PLACEMENT.LEFTOF) {
3077
- maxMessageWidthPerActor[actor.prevActor] = common_default.getMax(
3078
- maxMessageWidthPerActor[actor.prevActor] || 0,
3079
- messageWidth
3080
- );
3081
- } else if (msg.placement === diagObj.db.PLACEMENT.OVER) {
3082
- if (actor.prevActor) {
3083
- maxMessageWidthPerActor[actor.prevActor] = common_default.getMax(
3084
- maxMessageWidthPerActor[actor.prevActor] || 0,
3085
- messageWidth / 2
3086
- );
3087
- }
3088
- if (actor.nextActor) {
3089
- maxMessageWidthPerActor[msg.from] = common_default.getMax(
3090
- maxMessageWidthPerActor[msg.from] || 0,
3091
- messageWidth / 2
3092
- );
3093
- }
3094
- }
3095
- }
3096
- }
3097
- log.debug("maxMessageWidthPerActor:", maxMessageWidthPerActor);
3098
- return maxMessageWidthPerActor;
3099
- }
3100
- __name(getMaxMessageWidthPerActor, "getMaxMessageWidthPerActor");
3101
- var getRequiredPopupWidth = /* @__PURE__ */ __name(function(actor) {
3102
- let requiredPopupWidth = 0;
3103
- const textFont = actorFont(conf);
3104
- for (const key in actor.links) {
3105
- const labelDimensions = utils_default.calculateTextDimensions(key, textFont);
3106
- const labelWidth = labelDimensions.width + 2 * conf.wrapPadding + 2 * conf.boxMargin;
3107
- if (requiredPopupWidth < labelWidth) {
3108
- requiredPopupWidth = labelWidth;
3109
- }
3110
- }
3111
- return requiredPopupWidth;
3112
- }, "getRequiredPopupWidth");
3113
- async function calculateActorMargins(actors, actorToMessageWidth, boxes) {
3114
- let maxHeight = 0;
3115
- for (const prop of actors.keys()) {
3116
- const actor = actors.get(prop);
3117
- if (actor.wrap) {
3118
- actor.description = utils_default.wrapLabel(
3119
- actor.description,
3120
- conf.width - 2 * conf.wrapPadding,
3121
- actorFont(conf)
3122
- );
3123
- }
3124
- const actDims = hasKatex(actor.description) ? await calculateMathMLDimensions(actor.description, getConfig2()) : utils_default.calculateTextDimensions(actor.description, actorFont(conf));
3125
- actor.width = actor.wrap ? conf.width : common_default.getMax(conf.width, actDims.width + 2 * conf.wrapPadding);
3126
- actor.height = actor.wrap ? common_default.getMax(actDims.height, conf.height) : conf.height;
3127
- maxHeight = common_default.getMax(maxHeight, actor.height);
3128
- }
3129
- for (const actorKey in actorToMessageWidth) {
3130
- const actor = actors.get(actorKey);
3131
- if (!actor) {
3132
- continue;
3133
- }
3134
- const nextActor = actors.get(actor.nextActor);
3135
- if (!nextActor) {
3136
- const messageWidth2 = actorToMessageWidth[actorKey];
3137
- const actorWidth2 = messageWidth2 + conf.actorMargin - actor.width / 2;
3138
- actor.margin = common_default.getMax(actorWidth2, conf.actorMargin);
3139
- continue;
3140
- }
3141
- const messageWidth = actorToMessageWidth[actorKey];
3142
- const actorWidth = messageWidth + conf.actorMargin - actor.width / 2 - nextActor.width / 2;
3143
- actor.margin = common_default.getMax(actorWidth, conf.actorMargin);
3144
- }
3145
- let maxBoxHeight = 0;
3146
- boxes.forEach((box) => {
3147
- const textFont = messageFont(conf);
3148
- let totalWidth = box.actorKeys.reduce((total, aKey) => {
3149
- return total += actors.get(aKey).width + (actors.get(aKey).margin || 0);
3150
- }, 0);
3151
- totalWidth -= 2 * conf.boxTextMargin;
3152
- if (box.wrap) {
3153
- box.name = utils_default.wrapLabel(box.name, totalWidth - 2 * conf.wrapPadding, textFont);
3154
- }
3155
- const boxMsgDimensions = utils_default.calculateTextDimensions(box.name, textFont);
3156
- maxBoxHeight = common_default.getMax(boxMsgDimensions.height, maxBoxHeight);
3157
- const minWidth = common_default.getMax(totalWidth, boxMsgDimensions.width + 2 * conf.wrapPadding);
3158
- box.margin = conf.boxTextMargin;
3159
- if (totalWidth < minWidth) {
3160
- const missing = (minWidth - totalWidth) / 2;
3161
- box.margin += missing;
3162
- }
3163
- });
3164
- boxes.forEach((box) => box.textMaxHeight = maxBoxHeight);
3165
- return common_default.getMax(maxHeight, conf.height);
3166
- }
3167
- __name(calculateActorMargins, "calculateActorMargins");
3168
- var buildNoteModel = /* @__PURE__ */ __name(async function(msg, actors, diagObj) {
3169
- const fromActor = actors.get(msg.from);
3170
- const toActor = actors.get(msg.to);
3171
- const startx = fromActor.x;
3172
- const stopx = toActor.x;
3173
- const shouldWrap = msg.wrap && msg.message;
3174
- let textDimensions = hasKatex(msg.message) ? await calculateMathMLDimensions(msg.message, getConfig2()) : utils_default.calculateTextDimensions(
3175
- shouldWrap ? utils_default.wrapLabel(msg.message, conf.width, noteFont(conf)) : msg.message,
3176
- noteFont(conf)
3177
- );
3178
- const noteModel = {
3179
- width: shouldWrap ? conf.width : common_default.getMax(conf.width, textDimensions.width + 2 * conf.noteMargin),
3180
- height: 0,
3181
- startx: fromActor.x,
3182
- stopx: 0,
3183
- starty: 0,
3184
- stopy: 0,
3185
- message: msg.message
3186
- };
3187
- if (msg.placement === diagObj.db.PLACEMENT.RIGHTOF) {
3188
- noteModel.width = shouldWrap ? common_default.getMax(conf.width, textDimensions.width) : common_default.getMax(
3189
- fromActor.width / 2 + toActor.width / 2,
3190
- textDimensions.width + 2 * conf.noteMargin
3191
- );
3192
- noteModel.startx = startx + (fromActor.width + conf.actorMargin) / 2;
3193
- } else if (msg.placement === diagObj.db.PLACEMENT.LEFTOF) {
3194
- noteModel.width = shouldWrap ? common_default.getMax(conf.width, textDimensions.width + 2 * conf.noteMargin) : common_default.getMax(
3195
- fromActor.width / 2 + toActor.width / 2,
3196
- textDimensions.width + 2 * conf.noteMargin
3197
- );
3198
- noteModel.startx = startx - noteModel.width + (fromActor.width - conf.actorMargin) / 2;
3199
- } else if (msg.to === msg.from) {
3200
- textDimensions = utils_default.calculateTextDimensions(
3201
- shouldWrap ? utils_default.wrapLabel(msg.message, common_default.getMax(conf.width, fromActor.width), noteFont(conf)) : msg.message,
3202
- noteFont(conf)
3203
- );
3204
- noteModel.width = shouldWrap ? common_default.getMax(conf.width, fromActor.width) : common_default.getMax(fromActor.width, conf.width, textDimensions.width + 2 * conf.noteMargin);
3205
- noteModel.startx = startx + (fromActor.width - noteModel.width) / 2;
3206
- } else {
3207
- noteModel.width = Math.abs(startx + fromActor.width / 2 - (stopx + toActor.width / 2)) + conf.actorMargin;
3208
- noteModel.startx = startx < stopx ? startx + fromActor.width / 2 - conf.actorMargin / 2 : stopx + toActor.width / 2 - conf.actorMargin / 2;
3209
- }
3210
- if (shouldWrap) {
3211
- noteModel.message = utils_default.wrapLabel(
3212
- msg.message,
3213
- noteModel.width - 2 * conf.wrapPadding,
3214
- noteFont(conf)
3215
- );
3216
- }
3217
- log.debug(
3218
- `NM:[${noteModel.startx},${noteModel.stopx},${noteModel.starty},${noteModel.stopy}:${noteModel.width},${noteModel.height}=${msg.message}]`
3219
- );
3220
- return noteModel;
3221
- }, "buildNoteModel");
3222
- var buildMessageModel = /* @__PURE__ */ __name(function(msg, actors, diagObj) {
3223
- if (![
3224
- diagObj.db.LINETYPE.SOLID_OPEN,
3225
- diagObj.db.LINETYPE.DOTTED_OPEN,
3226
- diagObj.db.LINETYPE.SOLID,
3227
- diagObj.db.LINETYPE.DOTTED,
3228
- diagObj.db.LINETYPE.SOLID_CROSS,
3229
- diagObj.db.LINETYPE.DOTTED_CROSS,
3230
- diagObj.db.LINETYPE.SOLID_POINT,
3231
- diagObj.db.LINETYPE.DOTTED_POINT,
3232
- diagObj.db.LINETYPE.BIDIRECTIONAL_SOLID,
3233
- diagObj.db.LINETYPE.BIDIRECTIONAL_DOTTED
3234
- ].includes(msg.type)) {
3235
- return {};
3236
- }
3237
- const [fromLeft, fromRight] = activationBounds(msg.from, actors);
3238
- const [toLeft, toRight] = activationBounds(msg.to, actors);
3239
- const isArrowToRight = fromLeft <= toLeft;
3240
- let startx = isArrowToRight ? fromRight : fromLeft;
3241
- let stopx = isArrowToRight ? toLeft : toRight;
3242
- const isArrowToActivation = Math.abs(toLeft - toRight) > 2;
3243
- const adjustValue = /* @__PURE__ */ __name((value) => {
3244
- return isArrowToRight ? -value : value;
3245
- }, "adjustValue");
3246
- if (msg.from === msg.to) {
3247
- stopx = startx;
3248
- } else {
3249
- if (msg.activate && !isArrowToActivation) {
3250
- stopx += adjustValue(conf.activationWidth / 2 - 1);
3251
- }
3252
- if (![diagObj.db.LINETYPE.SOLID_OPEN, diagObj.db.LINETYPE.DOTTED_OPEN].includes(msg.type)) {
3253
- stopx += adjustValue(3);
3254
- }
3255
- if ([diagObj.db.LINETYPE.BIDIRECTIONAL_SOLID, diagObj.db.LINETYPE.BIDIRECTIONAL_DOTTED].includes(
3256
- msg.type
3257
- )) {
3258
- startx -= adjustValue(3);
3259
- }
3260
- }
3261
- const allBounds = [fromLeft, fromRight, toLeft, toRight];
3262
- const boundedWidth = Math.abs(startx - stopx);
3263
- if (msg.wrap && msg.message) {
3264
- msg.message = utils_default.wrapLabel(
3265
- msg.message,
3266
- common_default.getMax(boundedWidth + 2 * conf.wrapPadding, conf.width),
3267
- messageFont(conf)
3268
- );
3269
- }
3270
- const msgDims = utils_default.calculateTextDimensions(msg.message, messageFont(conf));
3271
- return {
3272
- width: common_default.getMax(
3273
- msg.wrap ? 0 : msgDims.width + 2 * conf.wrapPadding,
3274
- boundedWidth + 2 * conf.wrapPadding,
3275
- conf.width
3276
- ),
3277
- height: 0,
3278
- startx,
3279
- stopx,
3280
- starty: 0,
3281
- stopy: 0,
3282
- message: msg.message,
3283
- type: msg.type,
3284
- wrap: msg.wrap,
3285
- fromBounds: Math.min.apply(null, allBounds),
3286
- toBounds: Math.max.apply(null, allBounds)
3287
- };
3288
- }, "buildMessageModel");
3289
- var calculateLoopBounds = /* @__PURE__ */ __name(async function(messages, actors, _maxWidthPerActor, diagObj) {
3290
- const loops = {};
3291
- const stack = [];
3292
- let current, noteModel, msgModel;
3293
- for (const msg of messages) {
3294
- switch (msg.type) {
3295
- case diagObj.db.LINETYPE.LOOP_START:
3296
- case diagObj.db.LINETYPE.ALT_START:
3297
- case diagObj.db.LINETYPE.OPT_START:
3298
- case diagObj.db.LINETYPE.PAR_START:
3299
- case diagObj.db.LINETYPE.PAR_OVER_START:
3300
- case diagObj.db.LINETYPE.CRITICAL_START:
3301
- case diagObj.db.LINETYPE.BREAK_START:
3302
- stack.push({
3303
- id: msg.id,
3304
- msg: msg.message,
3305
- from: Number.MAX_SAFE_INTEGER,
3306
- to: Number.MIN_SAFE_INTEGER,
3307
- width: 0
3308
- });
3309
- break;
3310
- case diagObj.db.LINETYPE.ALT_ELSE:
3311
- case diagObj.db.LINETYPE.PAR_AND:
3312
- case diagObj.db.LINETYPE.CRITICAL_OPTION:
3313
- if (msg.message) {
3314
- current = stack.pop();
3315
- loops[current.id] = current;
3316
- loops[msg.id] = current;
3317
- stack.push(current);
3318
- }
3319
- break;
3320
- case diagObj.db.LINETYPE.LOOP_END:
3321
- case diagObj.db.LINETYPE.ALT_END:
3322
- case diagObj.db.LINETYPE.OPT_END:
3323
- case diagObj.db.LINETYPE.PAR_END:
3324
- case diagObj.db.LINETYPE.CRITICAL_END:
3325
- case diagObj.db.LINETYPE.BREAK_END:
3326
- current = stack.pop();
3327
- loops[current.id] = current;
3328
- break;
3329
- case diagObj.db.LINETYPE.ACTIVE_START:
3330
- {
3331
- const actorRect = actors.get(msg.from ? msg.from : msg.to.actor);
3332
- const stackedSize = actorActivations(msg.from ? msg.from : msg.to.actor).length;
3333
- const x = actorRect.x + actorRect.width / 2 + (stackedSize - 1) * conf.activationWidth / 2;
3334
- const toAdd = {
3335
- startx: x,
3336
- stopx: x + conf.activationWidth,
3337
- actor: msg.from,
3338
- enabled: true
3339
- };
3340
- bounds.activations.push(toAdd);
3341
- }
3342
- break;
3343
- case diagObj.db.LINETYPE.ACTIVE_END:
3344
- {
3345
- const lastActorActivationIdx = bounds.activations.map((a) => a.actor).lastIndexOf(msg.from);
3346
- bounds.activations.splice(lastActorActivationIdx, 1).splice(0, 1);
3347
- }
3348
- break;
3349
- }
3350
- const isNote = msg.placement !== void 0;
3351
- if (isNote) {
3352
- noteModel = await buildNoteModel(msg, actors, diagObj);
3353
- msg.noteModel = noteModel;
3354
- stack.forEach((stk) => {
3355
- current = stk;
3356
- current.from = common_default.getMin(current.from, noteModel.startx);
3357
- current.to = common_default.getMax(current.to, noteModel.startx + noteModel.width);
3358
- current.width = common_default.getMax(current.width, Math.abs(current.from - current.to)) - conf.labelBoxWidth;
3359
- });
3360
- } else {
3361
- msgModel = buildMessageModel(msg, actors, diagObj);
3362
- msg.msgModel = msgModel;
3363
- if (msgModel.startx && msgModel.stopx && stack.length > 0) {
3364
- stack.forEach((stk) => {
3365
- current = stk;
3366
- if (msgModel.startx === msgModel.stopx) {
3367
- const from = actors.get(msg.from);
3368
- const to = actors.get(msg.to);
3369
- current.from = common_default.getMin(
3370
- from.x - msgModel.width / 2,
3371
- from.x - from.width / 2,
3372
- current.from
3373
- );
3374
- current.to = common_default.getMax(
3375
- to.x + msgModel.width / 2,
3376
- to.x + from.width / 2,
3377
- current.to
3378
- );
3379
- current.width = common_default.getMax(current.width, Math.abs(current.to - current.from)) - conf.labelBoxWidth;
3380
- } else {
3381
- current.from = common_default.getMin(msgModel.startx, current.from);
3382
- current.to = common_default.getMax(msgModel.stopx, current.to);
3383
- current.width = common_default.getMax(current.width, msgModel.width) - conf.labelBoxWidth;
3384
- }
3385
- });
3386
- }
3387
- }
3388
- }
3389
- bounds.activations = [];
3390
- log.debug("Loop type widths:", loops);
3391
- return loops;
3392
- }, "calculateLoopBounds");
3393
- var sequenceRenderer_default = {
3394
- bounds,
3395
- drawActors,
3396
- drawActorsPopup,
3397
- setConf,
3398
- draw
3399
- };
3400
- var diagram = {
3401
- parser: sequenceDiagram_default,
3402
- get db() {
3403
- return new SequenceDB();
3404
- },
3405
- renderer: sequenceRenderer_default,
3406
- styles: styles_default,
3407
- init: /* @__PURE__ */ __name((cnf) => {
3408
- if (!cnf.sequence) {
3409
- cnf.sequence = {};
3410
- }
3411
- if (cnf.wrap) {
3412
- cnf.sequence.wrap = cnf.wrap;
3413
- setConfig2({ sequence: { wrap: cnf.wrap } });
3414
- }
3415
- }, "init")
3416
- };
3417
- export {
3418
- diagram
3419
- };