@windrun-huaiin/third-ui 12.1.0 → 13.0.1

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 (1179) hide show
  1. package/dist/_virtual/_commonjs-dynamic-modules.js +7 -0
  2. package/dist/_virtual/_commonjs-dynamic-modules.mjs +5 -0
  3. package/dist/_virtual/api.js +5 -0
  4. package/dist/_virtual/api.mjs +3 -0
  5. package/dist/_virtual/api2.js +5 -0
  6. package/dist/_virtual/api2.mjs +3 -0
  7. package/dist/_virtual/connection.js +5 -0
  8. package/dist/_virtual/connection.mjs +3 -0
  9. package/dist/_virtual/connection2.js +5 -0
  10. package/dist/_virtual/connection2.mjs +3 -0
  11. package/dist/_virtual/disposable.js +5 -0
  12. package/dist/_virtual/disposable.mjs +3 -0
  13. package/dist/_virtual/duration.js +9 -0
  14. package/dist/_virtual/duration.mjs +7 -0
  15. package/dist/_virtual/duration2.js +5 -0
  16. package/dist/_virtual/duration2.mjs +3 -0
  17. package/dist/_virtual/is2.js +5 -0
  18. package/dist/_virtual/is2.mjs +3 -0
  19. package/dist/_virtual/linkedMap.js +5 -0
  20. package/dist/_virtual/linkedMap.mjs +3 -0
  21. package/dist/_virtual/main.js +7 -0
  22. package/dist/_virtual/main.mjs +5 -0
  23. package/dist/_virtual/main2.js +5 -0
  24. package/dist/_virtual/main2.mjs +3 -0
  25. package/dist/_virtual/main3.js +5 -0
  26. package/dist/_virtual/main3.mjs +3 -0
  27. package/dist/_virtual/main4.js +5 -0
  28. package/dist/_virtual/main4.mjs +3 -0
  29. package/dist/_virtual/messageBuffer.js +5 -0
  30. package/dist/_virtual/messageBuffer.mjs +3 -0
  31. package/dist/_virtual/messageReader.js +5 -0
  32. package/dist/_virtual/messageReader.mjs +3 -0
  33. package/dist/_virtual/messageWriter.js +5 -0
  34. package/dist/_virtual/messageWriter.mjs +3 -0
  35. package/dist/_virtual/messages.js +5 -0
  36. package/dist/_virtual/messages.mjs +3 -0
  37. package/dist/_virtual/messages2.js +5 -0
  38. package/dist/_virtual/messages2.mjs +3 -0
  39. package/dist/_virtual/protocol.callHierarchy.js +5 -0
  40. package/dist/_virtual/protocol.callHierarchy.mjs +3 -0
  41. package/dist/_virtual/protocol.colorProvider.js +5 -0
  42. package/dist/_virtual/protocol.colorProvider.mjs +3 -0
  43. package/dist/_virtual/protocol.configuration.js +5 -0
  44. package/dist/_virtual/protocol.configuration.mjs +3 -0
  45. package/dist/_virtual/protocol.declaration.js +5 -0
  46. package/dist/_virtual/protocol.declaration.mjs +3 -0
  47. package/dist/_virtual/protocol.diagnostic.js +5 -0
  48. package/dist/_virtual/protocol.diagnostic.mjs +3 -0
  49. package/dist/_virtual/protocol.fileOperations.js +5 -0
  50. package/dist/_virtual/protocol.fileOperations.mjs +3 -0
  51. package/dist/_virtual/protocol.foldingRange.js +5 -0
  52. package/dist/_virtual/protocol.foldingRange.mjs +3 -0
  53. package/dist/_virtual/protocol.implementation.js +5 -0
  54. package/dist/_virtual/protocol.implementation.mjs +3 -0
  55. package/dist/_virtual/protocol.inlayHint.js +5 -0
  56. package/dist/_virtual/protocol.inlayHint.mjs +3 -0
  57. package/dist/_virtual/protocol.inlineCompletion.js +5 -0
  58. package/dist/_virtual/protocol.inlineCompletion.mjs +3 -0
  59. package/dist/_virtual/protocol.inlineValue.js +5 -0
  60. package/dist/_virtual/protocol.inlineValue.mjs +3 -0
  61. package/dist/_virtual/protocol.js +5 -0
  62. package/dist/_virtual/protocol.linkedEditingRange.js +5 -0
  63. package/dist/_virtual/protocol.linkedEditingRange.mjs +3 -0
  64. package/dist/_virtual/protocol.mjs +3 -0
  65. package/dist/_virtual/protocol.moniker.js +5 -0
  66. package/dist/_virtual/protocol.moniker.mjs +3 -0
  67. package/dist/_virtual/protocol.notebook.js +5 -0
  68. package/dist/_virtual/protocol.notebook.mjs +3 -0
  69. package/dist/_virtual/protocol.progress.js +5 -0
  70. package/dist/_virtual/protocol.progress.mjs +3 -0
  71. package/dist/_virtual/protocol.selectionRange.js +5 -0
  72. package/dist/_virtual/protocol.selectionRange.mjs +3 -0
  73. package/dist/_virtual/protocol.semanticTokens.js +5 -0
  74. package/dist/_virtual/protocol.semanticTokens.mjs +3 -0
  75. package/dist/_virtual/protocol.showDocument.js +5 -0
  76. package/dist/_virtual/protocol.showDocument.mjs +3 -0
  77. package/dist/_virtual/protocol.typeDefinition.js +5 -0
  78. package/dist/_virtual/protocol.typeDefinition.mjs +3 -0
  79. package/dist/_virtual/protocol.typeHierarchy.js +5 -0
  80. package/dist/_virtual/protocol.typeHierarchy.mjs +3 -0
  81. package/dist/_virtual/protocol.workspaceFolder.js +5 -0
  82. package/dist/_virtual/protocol.workspaceFolder.mjs +3 -0
  83. package/dist/_virtual/ril.js +5 -0
  84. package/dist/_virtual/ril.mjs +3 -0
  85. package/dist/_virtual/semaphore.js +5 -0
  86. package/dist/_virtual/semaphore.mjs +3 -0
  87. package/dist/_virtual/sharedArrayCancellation.js +5 -0
  88. package/dist/_virtual/sharedArrayCancellation.mjs +3 -0
  89. package/dist/clerk/fingerprint/fingerprint-client.js +1 -1
  90. package/dist/clerk/fingerprint/fingerprint-client.mjs +1 -1
  91. package/dist/fuma/mdx/image-zoom.js +2 -2
  92. package/dist/fuma/mdx/image-zoom.mjs +1 -1
  93. package/dist/lib/fuma-schema-check-util.js +1 -1
  94. package/dist/lib/fuma-schema-check-util.mjs +1 -1
  95. package/dist/main/gallery/gallery-mobile-swiper.js +2 -2
  96. package/dist/main/gallery/gallery-mobile-swiper.mjs +2 -2
  97. package/dist/node_modules/.pnpm/@chevrotain_gast@11.1.2/node_modules/@chevrotain/gast/lib/src/helpers.js +88 -0
  98. package/dist/node_modules/.pnpm/@chevrotain_gast@11.1.2/node_modules/@chevrotain/gast/lib/src/helpers.mjs +83 -0
  99. package/dist/node_modules/.pnpm/@chevrotain_gast@11.1.2/node_modules/@chevrotain/gast/lib/src/model.js +246 -0
  100. package/dist/node_modules/.pnpm/@chevrotain_gast@11.1.2/node_modules/@chevrotain/gast/lib/src/model.mjs +232 -0
  101. package/dist/node_modules/.pnpm/@chevrotain_gast@11.1.2/node_modules/@chevrotain/gast/lib/src/visitor.js +56 -0
  102. package/dist/node_modules/.pnpm/@chevrotain_gast@11.1.2/node_modules/@chevrotain/gast/lib/src/visitor.mjs +54 -0
  103. package/dist/node_modules/.pnpm/@chevrotain_regexp-to-ast@11.1.2/node_modules/@chevrotain/regexp-to-ast/lib/src/base-regexp-visitor.js +97 -0
  104. package/dist/node_modules/.pnpm/@chevrotain_regexp-to-ast@11.1.2/node_modules/@chevrotain/regexp-to-ast/lib/src/base-regexp-visitor.mjs +95 -0
  105. package/dist/node_modules/.pnpm/@chevrotain_regexp-to-ast@11.1.2/node_modules/@chevrotain/regexp-to-ast/lib/src/character-classes.js +48 -0
  106. package/dist/node_modules/.pnpm/@chevrotain_regexp-to-ast@11.1.2/node_modules/@chevrotain/regexp-to-ast/lib/src/character-classes.mjs +44 -0
  107. package/dist/node_modules/.pnpm/@chevrotain_regexp-to-ast@11.1.2/node_modules/@chevrotain/regexp-to-ast/lib/src/regexp-parser.js +742 -0
  108. package/dist/node_modules/.pnpm/@chevrotain_regexp-to-ast@11.1.2/node_modules/@chevrotain/regexp-to-ast/lib/src/regexp-parser.mjs +740 -0
  109. package/dist/node_modules/.pnpm/@chevrotain_regexp-to-ast@11.1.2/node_modules/@chevrotain/regexp-to-ast/lib/src/utils.js +43 -0
  110. package/dist/node_modules/.pnpm/@chevrotain_regexp-to-ast@11.1.2/node_modules/@chevrotain/regexp-to-ast/lib/src/utils.mjs +36 -0
  111. package/dist/node_modules/.pnpm/@chevrotain_utils@11.1.2/node_modules/@chevrotain/utils/lib/src/print.js +18 -0
  112. package/dist/node_modules/.pnpm/@chevrotain_utils@11.1.2/node_modules/@chevrotain/utils/lib/src/print.mjs +15 -0
  113. package/dist/node_modules/.pnpm/@chevrotain_utils@11.1.2/node_modules/@chevrotain/utils/lib/src/timer.js +11 -0
  114. package/dist/node_modules/.pnpm/@chevrotain_utils@11.1.2/node_modules/@chevrotain/utils/lib/src/timer.mjs +9 -0
  115. package/dist/node_modules/.pnpm/@chevrotain_utils@11.1.2/node_modules/@chevrotain/utils/lib/src/to-fast-properties.js +21 -0
  116. package/dist/node_modules/.pnpm/@chevrotain_utils@11.1.2/node_modules/@chevrotain/utils/lib/src/to-fast-properties.mjs +19 -0
  117. package/dist/node_modules/.pnpm/@fingerprintjs_fingerprintjs@5.1.0/node_modules/@fingerprintjs/fingerprintjs/dist/fp.esm.js +3166 -0
  118. package/dist/node_modules/.pnpm/@fingerprintjs_fingerprintjs@5.1.0/node_modules/@fingerprintjs/fingerprintjs/dist/fp.esm.mjs +3140 -0
  119. package/dist/node_modules/.pnpm/@mermaid-js_parser@1.0.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/architecture-7HQA4BMR.js +9 -0
  120. package/dist/node_modules/.pnpm/@mermaid-js_parser@1.0.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/architecture-7HQA4BMR.mjs +2 -0
  121. package/dist/node_modules/.pnpm/@mermaid-js_parser@1.0.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-4F5CHEZ2.js +41 -0
  122. package/dist/node_modules/.pnpm/@mermaid-js_parser@1.0.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-4F5CHEZ2.mjs +38 -0
  123. package/dist/node_modules/.pnpm/@mermaid-js_parser@1.0.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-B2363JML.js +122 -0
  124. package/dist/node_modules/.pnpm/@mermaid-js_parser@1.0.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-B2363JML.mjs +119 -0
  125. package/dist/node_modules/.pnpm/@mermaid-js_parser@1.0.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-FRFDVMJY.js +41 -0
  126. package/dist/node_modules/.pnpm/@mermaid-js_parser@1.0.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-FRFDVMJY.mjs +38 -0
  127. package/dist/node_modules/.pnpm/@mermaid-js_parser@1.0.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-PL6DKKU2.js +54 -0
  128. package/dist/node_modules/.pnpm/@mermaid-js_parser@1.0.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-PL6DKKU2.mjs +51 -0
  129. package/dist/node_modules/.pnpm/@mermaid-js_parser@1.0.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-SJTYNZTY.js +41 -0
  130. package/dist/node_modules/.pnpm/@mermaid-js_parser@1.0.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-SJTYNZTY.mjs +38 -0
  131. package/dist/node_modules/.pnpm/@mermaid-js_parser@1.0.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-TCCFYFTB.js +1073 -0
  132. package/dist/node_modules/.pnpm/@mermaid-js_parser@1.0.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-TCCFYFTB.mjs +1036 -0
  133. package/dist/node_modules/.pnpm/@mermaid-js_parser@1.0.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-TQ3KTPDO.js +41 -0
  134. package/dist/node_modules/.pnpm/@mermaid-js_parser@1.0.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-TQ3KTPDO.mjs +38 -0
  135. package/dist/node_modules/.pnpm/@mermaid-js_parser@1.0.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-UMXZTB3W.js +58 -0
  136. package/dist/node_modules/.pnpm/@mermaid-js_parser@1.0.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-UMXZTB3W.mjs +55 -0
  137. package/dist/node_modules/.pnpm/@mermaid-js_parser@1.0.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/gitGraph-G5XIXVHT.js +9 -0
  138. package/dist/node_modules/.pnpm/@mermaid-js_parser@1.0.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/gitGraph-G5XIXVHT.mjs +2 -0
  139. package/dist/node_modules/.pnpm/@mermaid-js_parser@1.0.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-VBDWY6EO.js +9 -0
  140. package/dist/node_modules/.pnpm/@mermaid-js_parser@1.0.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-VBDWY6EO.mjs +2 -0
  141. package/dist/node_modules/.pnpm/@mermaid-js_parser@1.0.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-DYOGHKS2.js +9 -0
  142. package/dist/node_modules/.pnpm/@mermaid-js_parser@1.0.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-DYOGHKS2.mjs +2 -0
  143. package/dist/node_modules/.pnpm/@mermaid-js_parser@1.0.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-VRWISCQL.js +9 -0
  144. package/dist/node_modules/.pnpm/@mermaid-js_parser@1.0.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-VRWISCQL.mjs +2 -0
  145. package/dist/node_modules/.pnpm/@mermaid-js_parser@1.0.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-ZZBFDIW7.js +9 -0
  146. package/dist/node_modules/.pnpm/@mermaid-js_parser@1.0.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-ZZBFDIW7.mjs +2 -0
  147. package/dist/node_modules/.pnpm/@mermaid-js_parser@1.0.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-GDKQZRPO.js +9 -0
  148. package/dist/node_modules/.pnpm/@mermaid-js_parser@1.0.0/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-GDKQZRPO.mjs +2 -0
  149. package/dist/node_modules/.pnpm/@mermaid-js_parser@1.0.0/node_modules/@mermaid-js/parser/dist/mermaid-parser.core.js +129 -0
  150. package/dist/node_modules/.pnpm/@mermaid-js_parser@1.0.0/node_modules/@mermaid-js/parser/dist/mermaid-parser.core.mjs +78 -0
  151. package/dist/node_modules/.pnpm/@rollup_plugin-typescript@12.1.4_rollup@4.46.2_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js +0 -51
  152. package/dist/node_modules/.pnpm/@rollup_plugin-typescript@12.1.4_rollup@4.46.2_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.mjs +1 -50
  153. package/dist/node_modules/.pnpm/chevrotain-allstar@0.3.1_chevrotain@11.0.3/node_modules/chevrotain-allstar/lib/all-star-lookahead.js +8 -8
  154. package/dist/node_modules/.pnpm/chevrotain-allstar@0.3.1_chevrotain@11.0.3/node_modules/chevrotain-allstar/lib/all-star-lookahead.mjs +8 -8
  155. package/dist/node_modules/.pnpm/chevrotain-allstar@0.3.1_chevrotain@11.0.3/node_modules/chevrotain-allstar/lib/atn.js +2 -2
  156. package/dist/node_modules/.pnpm/chevrotain-allstar@0.3.1_chevrotain@11.0.3/node_modules/chevrotain-allstar/lib/atn.mjs +2 -2
  157. package/dist/node_modules/.pnpm/chevrotain-allstar@0.3.1_chevrotain@11.0.3/node_modules/chevrotain-allstar/lib/dfa.js +1 -1
  158. package/dist/node_modules/.pnpm/chevrotain-allstar@0.3.1_chevrotain@11.0.3/node_modules/chevrotain-allstar/lib/dfa.mjs +1 -1
  159. package/dist/node_modules/.pnpm/chevrotain-allstar@0.3.1_chevrotain@11.1.2/node_modules/chevrotain-allstar/lib/all-star-lookahead.js +567 -0
  160. package/dist/node_modules/.pnpm/chevrotain-allstar@0.3.1_chevrotain@11.1.2/node_modules/chevrotain-allstar/lib/all-star-lookahead.mjs +565 -0
  161. package/dist/node_modules/.pnpm/chevrotain-allstar@0.3.1_chevrotain@11.1.2/node_modules/chevrotain-allstar/lib/atn.js +426 -0
  162. package/dist/node_modules/.pnpm/chevrotain-allstar@0.3.1_chevrotain@11.1.2/node_modules/chevrotain-allstar/lib/atn.mjs +409 -0
  163. package/dist/node_modules/.pnpm/chevrotain-allstar@0.3.1_chevrotain@11.1.2/node_modules/chevrotain-allstar/lib/dfa.js +52 -0
  164. package/dist/node_modules/.pnpm/chevrotain-allstar@0.3.1_chevrotain@11.1.2/node_modules/chevrotain-allstar/lib/dfa.mjs +48 -0
  165. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/errors_public.mjs +1 -1
  166. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/grammar/checks.js +3 -3
  167. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/grammar/checks.mjs +3 -3
  168. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/grammar/interpreter.js +1 -1
  169. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/grammar/interpreter.mjs +1 -1
  170. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/grammar/lookahead.js +1 -1
  171. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/grammar/lookahead.mjs +1 -1
  172. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/parse/grammar/rest.mjs +1 -1
  173. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/scan/lexer.js +6 -6
  174. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/scan/lexer.mjs +6 -6
  175. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/scan/lexer_public.js +1 -1
  176. package/dist/node_modules/.pnpm/chevrotain@11.0.3/node_modules/chevrotain/lib/src/scan/lexer_public.mjs +2 -2
  177. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/lang/lang_extensions.js +13 -0
  178. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/lang/lang_extensions.mjs +11 -0
  179. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/constants.js +6 -0
  180. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/constants.mjs +4 -0
  181. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/cst/cst.js +77 -0
  182. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/cst/cst.mjs +72 -0
  183. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/cst/cst_visitor.js +106 -0
  184. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/cst/cst_visitor.mjs +100 -0
  185. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/errors_public.js +191 -0
  186. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/errors_public.mjs +187 -0
  187. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/exceptions_public.js +66 -0
  188. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/exceptions_public.mjs +60 -0
  189. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/grammar/checks.js +469 -0
  190. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/grammar/checks.mjs +454 -0
  191. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/grammar/first.js +66 -0
  192. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/grammar/first.mjs +61 -0
  193. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/grammar/follow.js +48 -0
  194. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/grammar/follow.mjs +44 -0
  195. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_resolver_public.js +27 -0
  196. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_resolver_public.mjs +24 -0
  197. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/grammar/interpreter.js +510 -0
  198. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/grammar/interpreter.mjs +500 -0
  199. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/grammar/keys.js +33 -0
  200. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/grammar/keys.mjs +23 -0
  201. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/grammar/llk_lookahead.js +52 -0
  202. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/grammar/llk_lookahead.mjs +50 -0
  203. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/grammar/lookahead.js +493 -0
  204. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/grammar/lookahead.mjs +480 -0
  205. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/grammar/resolver.js +44 -0
  206. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/grammar/resolver.mjs +41 -0
  207. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/grammar/rest.js +108 -0
  208. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/grammar/rest.mjs +106 -0
  209. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/parser/parser.js +208 -0
  210. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/parser/parser.mjs +201 -0
  211. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/parser/traits/context_assist.js +27 -0
  212. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/parser/traits/context_assist.mjs +25 -0
  213. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/parser/traits/error_handler.js +79 -0
  214. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/parser/traits/error_handler.mjs +77 -0
  215. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/parser/traits/gast_recorder.js +304 -0
  216. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/parser/traits/gast_recorder.mjs +302 -0
  217. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/parser/traits/lexer_adapter.js +74 -0
  218. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/parser/traits/lexer_adapter.mjs +72 -0
  219. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/parser/traits/looksahead.js +141 -0
  220. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/parser/traits/looksahead.mjs +138 -0
  221. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/parser/traits/perf_tracer.js +52 -0
  222. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/parser/traits/perf_tracer.mjs +50 -0
  223. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_api.js +339 -0
  224. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_api.mjs +337 -0
  225. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_engine.js +555 -0
  226. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_engine.mjs +553 -0
  227. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/parser/traits/recoverable.js +305 -0
  228. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/parser/traits/recoverable.mjs +299 -0
  229. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/parser/traits/tree_builder.js +198 -0
  230. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/parser/traits/tree_builder.mjs +196 -0
  231. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/parser/utils/apply_mixins.js +23 -0
  232. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/parse/parser/utils/apply_mixins.mjs +21 -0
  233. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/scan/lexer.js +913 -0
  234. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/scan/lexer.mjs +888 -0
  235. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/scan/lexer_errors_public.js +12 -0
  236. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/scan/lexer_errors_public.mjs +10 -0
  237. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/scan/lexer_public.js +659 -0
  238. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/scan/lexer_public.mjs +657 -0
  239. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/scan/reg_exp.js +261 -0
  240. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/scan/reg_exp.mjs +256 -0
  241. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/scan/reg_exp_parser.js +23 -0
  242. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/scan/reg_exp_parser.mjs +20 -0
  243. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/scan/tokens.js +140 -0
  244. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/scan/tokens.mjs +125 -0
  245. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/scan/tokens_public.js +95 -0
  246. package/dist/node_modules/.pnpm/chevrotain@11.1.2/node_modules/chevrotain/lib/src/scan/tokens_public.mjs +88 -0
  247. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.13/node_modules/dagre-d3-es/src/dagre/acyclic.js +2 -2
  248. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.13/node_modules/dagre-d3-es/src/dagre/acyclic.mjs +2 -2
  249. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.13/node_modules/dagre-d3-es/src/dagre/add-border-segments.js +1 -1
  250. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.13/node_modules/dagre-d3-es/src/dagre/add-border-segments.mjs +1 -1
  251. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.13/node_modules/dagre-d3-es/src/dagre/coordinate-system.js +1 -1
  252. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.13/node_modules/dagre-d3-es/src/dagre/coordinate-system.mjs +1 -1
  253. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.13/node_modules/dagre-d3-es/src/dagre/greedy-fas.js +5 -5
  254. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.13/node_modules/dagre-d3-es/src/dagre/greedy-fas.mjs +5 -5
  255. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.13/node_modules/dagre-d3-es/src/dagre/layout.js +7 -7
  256. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.13/node_modules/dagre-d3-es/src/dagre/layout.mjs +7 -7
  257. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.13/node_modules/dagre-d3-es/src/dagre/nesting-graph.js +4 -4
  258. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.13/node_modules/dagre-d3-es/src/dagre/nesting-graph.mjs +4 -4
  259. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.13/node_modules/dagre-d3-es/src/dagre/normalize.js +1 -1
  260. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.13/node_modules/dagre-d3-es/src/dagre/normalize.mjs +1 -1
  261. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.13/node_modules/dagre-d3-es/src/dagre/order/add-subgraph-constraints.js +1 -1
  262. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.13/node_modules/dagre-d3-es/src/dagre/order/add-subgraph-constraints.mjs +1 -1
  263. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.13/node_modules/dagre-d3-es/src/dagre/order/barycenter.js +2 -2
  264. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.13/node_modules/dagre-d3-es/src/dagre/order/barycenter.mjs +2 -2
  265. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.13/node_modules/dagre-d3-es/src/dagre/order/build-layer-graph.js +3 -3
  266. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.13/node_modules/dagre-d3-es/src/dagre/order/build-layer-graph.mjs +3 -3
  267. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.13/node_modules/dagre-d3-es/src/dagre/order/cross-count.js +5 -5
  268. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.13/node_modules/dagre-d3-es/src/dagre/order/cross-count.mjs +5 -5
  269. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.13/node_modules/dagre-d3-es/src/dagre/order/index.js +4 -4
  270. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.13/node_modules/dagre-d3-es/src/dagre/order/index.mjs +4 -4
  271. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.13/node_modules/dagre-d3-es/src/dagre/order/init-order.js +7 -7
  272. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.13/node_modules/dagre-d3-es/src/dagre/order/init-order.mjs +7 -7
  273. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.13/node_modules/dagre-d3-es/src/dagre/order/resolve-conflicts.js +5 -5
  274. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.13/node_modules/dagre-d3-es/src/dagre/order/resolve-conflicts.mjs +5 -5
  275. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.13/node_modules/dagre-d3-es/src/dagre/order/sort-subgraph.js +4 -4
  276. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.13/node_modules/dagre-d3-es/src/dagre/order/sort-subgraph.mjs +4 -4
  277. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.13/node_modules/dagre-d3-es/src/dagre/order/sort.js +4 -4
  278. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.13/node_modules/dagre-d3-es/src/dagre/order/sort.mjs +4 -4
  279. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.13/node_modules/dagre-d3-es/src/dagre/parent-dummy-chains.js +1 -1
  280. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.13/node_modules/dagre-d3-es/src/dagre/parent-dummy-chains.mjs +1 -1
  281. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.13/node_modules/dagre-d3-es/src/dagre/position/bk.js +14 -14
  282. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.13/node_modules/dagre-d3-es/src/dagre/position/bk.mjs +14 -14
  283. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.13/node_modules/dagre-d3-es/src/dagre/position/index.js +4 -4
  284. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.13/node_modules/dagre-d3-es/src/dagre/position/index.mjs +4 -4
  285. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.13/node_modules/dagre-d3-es/src/dagre/rank/feasible-tree.js +2 -2
  286. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.13/node_modules/dagre-d3-es/src/dagre/rank/feasible-tree.mjs +2 -2
  287. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.13/node_modules/dagre-d3-es/src/dagre/rank/network-simplex.js +4 -4
  288. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.13/node_modules/dagre-d3-es/src/dagre/rank/network-simplex.mjs +4 -4
  289. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.13/node_modules/dagre-d3-es/src/dagre/rank/util.js +3 -3
  290. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.13/node_modules/dagre-d3-es/src/dagre/rank/util.mjs +3 -3
  291. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.13/node_modules/dagre-d3-es/src/dagre/util.js +8 -8
  292. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.13/node_modules/dagre-d3-es/src/dagre/util.mjs +8 -8
  293. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.13/node_modules/dagre-d3-es/src/graphlib/alg/dfs.js +2 -2
  294. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.13/node_modules/dagre-d3-es/src/graphlib/alg/dfs.mjs +2 -2
  295. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.13/node_modules/dagre-d3-es/src/graphlib/graph.js +10 -10
  296. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.13/node_modules/dagre-d3-es/src/graphlib/graph.mjs +10 -10
  297. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.13/node_modules/dagre-d3-es/src/graphlib/json.js +3 -3
  298. package/dist/node_modules/.pnpm/dagre-d3-es@7.0.13/node_modules/dagre-d3-es/src/graphlib/json.mjs +3 -3
  299. package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/duration.js +18 -0
  300. package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/duration.mjs +16 -0
  301. package/dist/node_modules/.pnpm/katex@0.16.33/node_modules/katex/dist/katex.js +18419 -0
  302. package/dist/node_modules/.pnpm/katex@0.16.33/node_modules/katex/dist/katex.mjs +18403 -0
  303. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/default-module.js +103 -0
  304. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/default-module.mjs +100 -0
  305. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/dependency-injection.js +155 -0
  306. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/dependency-injection.mjs +153 -0
  307. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/documentation/comment-provider.js +23 -0
  308. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/documentation/comment-provider.mjs +21 -0
  309. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/documentation/documentation-provider.js +70 -0
  310. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/documentation/documentation-provider.mjs +68 -0
  311. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/documentation/jsdoc.js +510 -0
  312. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/documentation/jsdoc.mjs +507 -0
  313. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/languages/generated/ast.js +1216 -0
  314. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/languages/generated/ast.mjs +1130 -0
  315. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/languages/grammar-config.js +31 -0
  316. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/languages/grammar-config.mjs +29 -0
  317. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/parser/async-parser.js +23 -0
  318. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/parser/async-parser.mjs +21 -0
  319. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/parser/completion-parser-builder.js +20 -0
  320. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/parser/completion-parser-builder.mjs +18 -0
  321. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/parser/cst-node-builder.js +231 -0
  322. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/parser/cst-node-builder.mjs +225 -0
  323. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/parser/langium-parser-builder.js +32 -0
  324. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/parser/langium-parser-builder.mjs +29 -0
  325. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/parser/langium-parser.js +678 -0
  326. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/parser/langium-parser.mjs +671 -0
  327. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/parser/lexer.js +86 -0
  328. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/parser/lexer.mjs +79 -0
  329. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/parser/parser-builder-base.js +483 -0
  330. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/parser/parser-builder-base.mjs +481 -0
  331. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/parser/token-builder.js +123 -0
  332. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/parser/token-builder.mjs +121 -0
  333. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/parser/value-converter.js +102 -0
  334. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/parser/value-converter.mjs +100 -0
  335. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/references/linker.js +290 -0
  336. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/references/linker.mjs +287 -0
  337. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/references/name-provider.js +26 -0
  338. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/references/name-provider.mjs +23 -0
  339. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/references/references.js +136 -0
  340. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/references/references.mjs +134 -0
  341. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/references/scope-computation.js +91 -0
  342. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/references/scope-computation.mjs +89 -0
  343. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/references/scope-provider.js +68 -0
  344. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/references/scope-provider.mjs +66 -0
  345. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/references/scope.js +101 -0
  346. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/references/scope.mjs +98 -0
  347. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/serializer/hydrator.js +279 -0
  348. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/serializer/hydrator.mjs +277 -0
  349. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/serializer/json-serializer.js +271 -0
  350. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/serializer/json-serializer.mjs +268 -0
  351. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/service-registry.js +82 -0
  352. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/service-registry.mjs +80 -0
  353. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/syntax-tree.js +120 -0
  354. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/syntax-tree.mjs +110 -0
  355. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/utils/ast-utils.js +229 -0
  356. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/utils/ast-utils.mjs +218 -0
  357. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/utils/caching.js +153 -0
  358. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/utils/caching.mjs +148 -0
  359. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/utils/collections.js +200 -0
  360. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/utils/collections.mjs +197 -0
  361. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/utils/cst-utils.js +149 -0
  362. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/utils/cst-utils.mjs +138 -0
  363. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/utils/disposable.js +16 -0
  364. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/utils/disposable.mjs +16 -0
  365. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/utils/errors.js +18 -0
  366. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/utils/errors.mjs +15 -0
  367. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/utils/grammar-loader.js +43 -0
  368. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/utils/grammar-loader.mjs +41 -0
  369. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/utils/grammar-utils.js +501 -0
  370. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/utils/grammar-utils.mjs +483 -0
  371. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/utils/promise-utils.js +101 -0
  372. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/utils/promise-utils.mjs +94 -0
  373. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/utils/regexp-utils.js +283 -0
  374. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/utils/regexp-utils.mjs +275 -0
  375. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/utils/stream.js +517 -0
  376. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/utils/stream.mjs +511 -0
  377. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/utils/uri-utils.js +192 -0
  378. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/utils/uri-utils.mjs +189 -0
  379. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/validation/document-validator.js +296 -0
  380. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/validation/document-validator.mjs +290 -0
  381. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/validation/validation-registry.js +168 -0
  382. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/validation/validation-registry.mjs +165 -0
  383. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/workspace/ast-descriptions.js +90 -0
  384. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/workspace/ast-descriptions.mjs +87 -0
  385. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/workspace/ast-node-locator.js +49 -0
  386. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/workspace/ast-node-locator.mjs +47 -0
  387. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/workspace/configuration.js +94 -0
  388. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/workspace/configuration.mjs +92 -0
  389. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/workspace/document-builder.js +500 -0
  390. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/workspace/document-builder.mjs +498 -0
  391. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/workspace/documents.js +287 -0
  392. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/workspace/documents.mjs +280 -0
  393. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/workspace/file-system-provider.js +45 -0
  394. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/workspace/file-system-provider.mjs +42 -0
  395. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/workspace/index-manager.js +101 -0
  396. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/workspace/index-manager.mjs +99 -0
  397. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/workspace/workspace-lock.js +79 -0
  398. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/workspace/workspace-lock.mjs +77 -0
  399. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/workspace/workspace-manager.js +140 -0
  400. package/dist/node_modules/.pnpm/langium@4.2.1/node_modules/langium/lib/workspace/workspace-manager.mjs +138 -0
  401. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseClone.js +9 -17
  402. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseClone.mjs +9 -17
  403. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseUniq.js +3 -6
  404. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseUniq.mjs +3 -6
  405. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneBuffer.js +0 -3
  406. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneBuffer.mjs +0 -3
  407. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneDataView.js +1 -3
  408. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneDataView.mjs +1 -3
  409. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneTypedArray.js +1 -3
  410. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_cloneTypedArray.mjs +1 -3
  411. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_initCloneByTag.js +2 -2
  412. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_initCloneByTag.mjs +2 -2
  413. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_DataView.js +9 -0
  414. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_DataView.mjs +7 -0
  415. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_Hash.js +34 -0
  416. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_Hash.mjs +32 -0
  417. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_ListCache.js +34 -0
  418. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_ListCache.mjs +32 -0
  419. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_Map.js +9 -0
  420. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_Map.mjs +7 -0
  421. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_MapCache.js +34 -0
  422. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_MapCache.mjs +32 -0
  423. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_Promise.js +9 -0
  424. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_Promise.mjs +7 -0
  425. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_Set.js +9 -0
  426. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_Set.mjs +7 -0
  427. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_SetCache.js +29 -0
  428. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_SetCache.mjs +27 -0
  429. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_Stack.js +29 -0
  430. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_Stack.mjs +27 -0
  431. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_Symbol.js +8 -0
  432. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_Symbol.mjs +6 -0
  433. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_Uint8Array.js +8 -0
  434. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_Uint8Array.mjs +6 -0
  435. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_WeakMap.js +9 -0
  436. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_WeakMap.mjs +7 -0
  437. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_apply.js +23 -0
  438. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_apply.mjs +21 -0
  439. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_arrayAggregator.js +24 -0
  440. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_arrayAggregator.mjs +22 -0
  441. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_arrayEach.js +24 -0
  442. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_arrayEach.mjs +22 -0
  443. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_arrayEvery.js +25 -0
  444. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_arrayEvery.mjs +23 -0
  445. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_arrayFilter.js +27 -0
  446. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_arrayFilter.mjs +25 -0
  447. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_arrayIncludes.js +19 -0
  448. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_arrayIncludes.mjs +17 -0
  449. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_arrayLikeKeys.js +51 -0
  450. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_arrayLikeKeys.mjs +49 -0
  451. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_arrayMap.js +23 -0
  452. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_arrayMap.mjs +21 -0
  453. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_arrayPush.js +22 -0
  454. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_arrayPush.mjs +20 -0
  455. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_arrayReduce.js +28 -0
  456. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_arrayReduce.mjs +26 -0
  457. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_arraySome.js +25 -0
  458. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_arraySome.mjs +23 -0
  459. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_assignMergeValue.js +22 -0
  460. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_assignMergeValue.mjs +20 -0
  461. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_assignValue.js +30 -0
  462. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_assignValue.mjs +28 -0
  463. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_assocIndexOf.js +23 -0
  464. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_assocIndexOf.mjs +21 -0
  465. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseAggregator.js +23 -0
  466. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseAggregator.mjs +21 -0
  467. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseAssign.js +19 -0
  468. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseAssign.mjs +17 -0
  469. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseAssignIn.js +19 -0
  470. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseAssignIn.mjs +17 -0
  471. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseAssignValue.js +27 -0
  472. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseAssignValue.mjs +25 -0
  473. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseClone.js +164 -0
  474. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseClone.mjs +162 -0
  475. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseCreate.js +32 -0
  476. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseCreate.mjs +30 -0
  477. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseDifference.js +59 -0
  478. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseDifference.mjs +57 -0
  479. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseEach.js +16 -0
  480. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseEach.mjs +14 -0
  481. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseEvery.js +23 -0
  482. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseEvery.mjs +21 -0
  483. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseExtremum.js +34 -0
  484. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseExtremum.mjs +32 -0
  485. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseFilter.js +23 -0
  486. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseFilter.mjs +21 -0
  487. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseFindIndex.js +26 -0
  488. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseFindIndex.mjs +24 -0
  489. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseFlatten.js +37 -0
  490. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseFlatten.mjs +35 -0
  491. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseFor.js +18 -0
  492. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseFor.mjs +16 -0
  493. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseForOwn.js +18 -0
  494. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseForOwn.mjs +16 -0
  495. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseGet.js +26 -0
  496. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseGet.mjs +24 -0
  497. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseGetAllKeys.js +22 -0
  498. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseGetAllKeys.mjs +20 -0
  499. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseGetTag.js +30 -0
  500. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseGetTag.mjs +28 -0
  501. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseGt.js +16 -0
  502. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseGt.mjs +14 -0
  503. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseHas.js +21 -0
  504. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseHas.mjs +19 -0
  505. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseHasIn.js +15 -0
  506. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseHasIn.mjs +13 -0
  507. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseIndexOf.js +22 -0
  508. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseIndexOf.mjs +20 -0
  509. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseIsArguments.js +20 -0
  510. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseIsArguments.mjs +18 -0
  511. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseIsEqual.js +30 -0
  512. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseIsEqual.mjs +28 -0
  513. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseIsEqualDeep.js +85 -0
  514. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseIsEqualDeep.mjs +83 -0
  515. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseIsMap.js +20 -0
  516. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseIsMap.mjs +18 -0
  517. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseIsMatch.js +61 -0
  518. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseIsMatch.mjs +59 -0
  519. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseIsNaN.js +14 -0
  520. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseIsNaN.mjs +12 -0
  521. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseIsNative.js +49 -0
  522. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseIsNative.mjs +47 -0
  523. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseIsRegExp.js +20 -0
  524. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseIsRegExp.mjs +18 -0
  525. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseIsSet.js +20 -0
  526. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseIsSet.mjs +18 -0
  527. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseIsTypedArray.js +62 -0
  528. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseIsTypedArray.mjs +60 -0
  529. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseIteratee.js +33 -0
  530. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseIteratee.mjs +31 -0
  531. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseKeys.js +32 -0
  532. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseKeys.mjs +30 -0
  533. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseKeysIn.js +35 -0
  534. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseKeysIn.mjs +33 -0
  535. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseLt.js +16 -0
  536. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseLt.mjs +14 -0
  537. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseMap.js +24 -0
  538. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseMap.mjs +22 -0
  539. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseMatches.js +24 -0
  540. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseMatches.mjs +22 -0
  541. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseMatchesProperty.js +35 -0
  542. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseMatchesProperty.mjs +33 -0
  543. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseMerge.js +44 -0
  544. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseMerge.mjs +42 -0
  545. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseMergeDeep.js +96 -0
  546. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseMergeDeep.mjs +94 -0
  547. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseOrderBy.js +51 -0
  548. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseOrderBy.mjs +49 -0
  549. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_basePick.js +21 -0
  550. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_basePick.mjs +19 -0
  551. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_basePickBy.js +32 -0
  552. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_basePickBy.mjs +30 -0
  553. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseProperty.js +16 -0
  554. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseProperty.mjs +14 -0
  555. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_basePropertyDeep.js +18 -0
  556. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_basePropertyDeep.mjs +16 -0
  557. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseRange.js +30 -0
  558. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseRange.mjs +28 -0
  559. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseReduce.js +25 -0
  560. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseReduce.mjs +23 -0
  561. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseRest.js +19 -0
  562. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseRest.mjs +17 -0
  563. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseSet.js +53 -0
  564. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseSet.mjs +51 -0
  565. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseSetToString.js +24 -0
  566. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseSetToString.mjs +22 -0
  567. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseSlice.js +33 -0
  568. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseSlice.mjs +31 -0
  569. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseSome.js +24 -0
  570. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseSome.mjs +22 -0
  571. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseSortBy.js +23 -0
  572. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseSortBy.mjs +21 -0
  573. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseTimes.js +22 -0
  574. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseTimes.mjs +20 -0
  575. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseToString.js +36 -0
  576. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseToString.mjs +34 -0
  577. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseTrim.js +21 -0
  578. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseTrim.mjs +19 -0
  579. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseUnary.js +16 -0
  580. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseUnary.mjs +14 -0
  581. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseUniq.js +69 -0
  582. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseUniq.mjs +67 -0
  583. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseValues.js +21 -0
  584. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseValues.mjs +19 -0
  585. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseZipObject.js +25 -0
  586. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseZipObject.mjs +23 -0
  587. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_cacheHas.js +15 -0
  588. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_cacheHas.mjs +13 -0
  589. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_castFunction.js +16 -0
  590. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_castFunction.mjs +14 -0
  591. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_castPath.js +23 -0
  592. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_castPath.mjs +21 -0
  593. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_cloneArrayBuffer.js +18 -0
  594. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_cloneArrayBuffer.mjs +16 -0
  595. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_cloneBuffer.js +37 -0
  596. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_cloneBuffer.mjs +35 -0
  597. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_cloneDataView.js +18 -0
  598. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_cloneDataView.mjs +16 -0
  599. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_cloneRegExp.js +19 -0
  600. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_cloneRegExp.mjs +17 -0
  601. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_cloneSymbol.js +20 -0
  602. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_cloneSymbol.mjs +18 -0
  603. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_cloneTypedArray.js +18 -0
  604. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_cloneTypedArray.mjs +16 -0
  605. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_compareAscending.js +43 -0
  606. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_compareAscending.mjs +41 -0
  607. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_compareMultiple.js +46 -0
  608. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_compareMultiple.mjs +44 -0
  609. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_copyArray.js +22 -0
  610. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_copyArray.mjs +20 -0
  611. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_copyObject.js +40 -0
  612. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_copyObject.mjs +38 -0
  613. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_copySymbols.js +18 -0
  614. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_copySymbols.mjs +16 -0
  615. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_copySymbolsIn.js +18 -0
  616. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_copySymbolsIn.mjs +16 -0
  617. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_coreJsData.js +8 -0
  618. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_coreJsData.mjs +6 -0
  619. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_createAggregator.js +25 -0
  620. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_createAggregator.mjs +23 -0
  621. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_createAssigner.js +39 -0
  622. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_createAssigner.mjs +37 -0
  623. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_createBaseEach.js +34 -0
  624. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_createBaseEach.mjs +32 -0
  625. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_createBaseFor.js +27 -0
  626. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_createBaseFor.mjs +25 -0
  627. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_createFind.js +27 -0
  628. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_createFind.mjs +25 -0
  629. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_createRange.js +32 -0
  630. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_createRange.mjs +30 -0
  631. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_createSet.js +21 -0
  632. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_createSet.mjs +19 -0
  633. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_defineProperty.js +13 -0
  634. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_defineProperty.mjs +11 -0
  635. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_equalArrays.js +86 -0
  636. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_equalArrays.mjs +84 -0
  637. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_equalByTag.js +114 -0
  638. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_equalByTag.mjs +112 -0
  639. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_equalObjects.js +92 -0
  640. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_equalObjects.mjs +90 -0
  641. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_flatRest.js +18 -0
  642. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_flatRest.mjs +16 -0
  643. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_freeGlobal.js +6 -0
  644. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_freeGlobal.mjs +4 -0
  645. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getAllKeys.js +18 -0
  646. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getAllKeys.mjs +16 -0
  647. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getAllKeysIn.js +19 -0
  648. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getAllKeysIn.mjs +17 -0
  649. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getMapData.js +20 -0
  650. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getMapData.mjs +18 -0
  651. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getMatchData.js +26 -0
  652. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getMatchData.mjs +24 -0
  653. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getNative.js +19 -0
  654. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getNative.mjs +17 -0
  655. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getPrototype.js +8 -0
  656. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getPrototype.mjs +6 -0
  657. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getRawTag.js +48 -0
  658. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getRawTag.mjs +46 -0
  659. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getSymbols.js +32 -0
  660. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getSymbols.mjs +30 -0
  661. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getSymbolsIn.js +27 -0
  662. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getSymbolsIn.mjs +25 -0
  663. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getTag.js +60 -0
  664. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getTag.mjs +58 -0
  665. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getValue.js +15 -0
  666. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_getValue.mjs +13 -0
  667. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_hasPath.js +41 -0
  668. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_hasPath.mjs +39 -0
  669. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_hashClear.js +17 -0
  670. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_hashClear.mjs +15 -0
  671. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_hashDelete.js +19 -0
  672. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_hashDelete.mjs +17 -0
  673. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_hashGet.js +32 -0
  674. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_hashGet.mjs +30 -0
  675. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_hashHas.js +25 -0
  676. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_hashHas.mjs +23 -0
  677. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_hashSet.js +25 -0
  678. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_hashSet.mjs +23 -0
  679. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_initCloneArray.js +28 -0
  680. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_initCloneArray.mjs +26 -0
  681. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_initCloneByTag.js +79 -0
  682. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_initCloneByTag.mjs +77 -0
  683. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_initCloneObject.js +20 -0
  684. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_initCloneObject.mjs +18 -0
  685. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_isFlattenable.js +22 -0
  686. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_isFlattenable.mjs +20 -0
  687. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_isIndex.js +27 -0
  688. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_isIndex.mjs +25 -0
  689. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_isIterateeCall.js +32 -0
  690. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_isIterateeCall.mjs +30 -0
  691. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_isKey.js +31 -0
  692. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_isKey.mjs +29 -0
  693. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_isKeyable.js +17 -0
  694. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_isKeyable.mjs +15 -0
  695. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_isMasked.js +22 -0
  696. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_isMasked.mjs +20 -0
  697. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_isPrototype.js +20 -0
  698. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_isPrototype.mjs +18 -0
  699. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_isStrictComparable.js +17 -0
  700. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_isStrictComparable.mjs +15 -0
  701. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_listCacheClear.js +15 -0
  702. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_listCacheClear.mjs +13 -0
  703. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_listCacheDelete.js +37 -0
  704. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_listCacheDelete.mjs +35 -0
  705. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_listCacheGet.js +21 -0
  706. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_listCacheGet.mjs +19 -0
  707. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_listCacheHas.js +18 -0
  708. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_listCacheHas.mjs +16 -0
  709. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_listCacheSet.js +28 -0
  710. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_listCacheSet.mjs +26 -0
  711. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheClear.js +23 -0
  712. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheClear.mjs +21 -0
  713. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheDelete.js +20 -0
  714. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheDelete.mjs +18 -0
  715. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheGet.js +18 -0
  716. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheGet.mjs +16 -0
  717. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheHas.js +18 -0
  718. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheHas.mjs +16 -0
  719. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheSet.js +24 -0
  720. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheSet.mjs +22 -0
  721. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_mapToArray.js +20 -0
  722. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_mapToArray.mjs +18 -0
  723. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_matchesStrictComparable.js +22 -0
  724. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_matchesStrictComparable.mjs +20 -0
  725. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_memoizeCapped.js +28 -0
  726. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_memoizeCapped.mjs +26 -0
  727. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_nativeCreate.js +8 -0
  728. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_nativeCreate.mjs +6 -0
  729. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_nativeKeys.js +8 -0
  730. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_nativeKeys.mjs +6 -0
  731. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_nativeKeysIn.js +22 -0
  732. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_nativeKeysIn.mjs +20 -0
  733. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_nodeUtil.js +32 -0
  734. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_nodeUtil.mjs +30 -0
  735. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_objectToString.js +24 -0
  736. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_objectToString.mjs +22 -0
  737. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_overArg.js +17 -0
  738. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_overArg.mjs +15 -0
  739. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_overRest.js +38 -0
  740. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_overRest.mjs +36 -0
  741. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_root.js +11 -0
  742. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_root.mjs +9 -0
  743. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_safeGet.js +23 -0
  744. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_safeGet.mjs +21 -0
  745. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_setCacheAdd.js +21 -0
  746. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_setCacheAdd.mjs +19 -0
  747. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_setCacheHas.js +16 -0
  748. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_setCacheHas.mjs +14 -0
  749. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_setToArray.js +20 -0
  750. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_setToArray.mjs +18 -0
  751. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_setToString.js +16 -0
  752. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_setToString.mjs +14 -0
  753. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_shortOut.js +39 -0
  754. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_shortOut.mjs +37 -0
  755. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_stackClear.js +17 -0
  756. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_stackClear.mjs +15 -0
  757. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_stackDelete.js +20 -0
  758. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_stackDelete.mjs +18 -0
  759. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_stackGet.js +16 -0
  760. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_stackGet.mjs +14 -0
  761. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_stackHas.js +16 -0
  762. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_stackHas.mjs +14 -0
  763. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_stackSet.js +36 -0
  764. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_stackSet.mjs +34 -0
  765. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_strictIndexOf.js +25 -0
  766. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_strictIndexOf.mjs +23 -0
  767. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_stringToPath.js +29 -0
  768. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_stringToPath.mjs +27 -0
  769. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_toKey.js +20 -0
  770. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_toKey.mjs +18 -0
  771. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_toSource.js +28 -0
  772. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_toSource.mjs +26 -0
  773. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_trimmedEndIndex.js +21 -0
  774. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_trimmedEndIndex.mjs +19 -0
  775. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/assign.js +60 -0
  776. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/assign.mjs +58 -0
  777. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/clone.js +38 -0
  778. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/clone.mjs +36 -0
  779. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/cloneDeep.js +31 -0
  780. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/cloneDeep.mjs +29 -0
  781. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/compact.js +33 -0
  782. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/compact.mjs +31 -0
  783. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/constant.js +28 -0
  784. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/constant.mjs +26 -0
  785. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/defaults.js +66 -0
  786. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/defaults.mjs +64 -0
  787. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/difference.js +35 -0
  788. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/difference.mjs +33 -0
  789. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/drop.js +40 -0
  790. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/drop.mjs +38 -0
  791. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/dropRight.js +41 -0
  792. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/dropRight.mjs +39 -0
  793. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/eq.js +39 -0
  794. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/eq.mjs +37 -0
  795. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/every.js +54 -0
  796. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/every.mjs +52 -0
  797. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/filter.js +54 -0
  798. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/filter.mjs +52 -0
  799. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/find.js +44 -0
  800. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/find.mjs +42 -0
  801. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/findIndex.js +57 -0
  802. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/findIndex.mjs +55 -0
  803. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/flatMap.js +31 -0
  804. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/flatMap.mjs +29 -0
  805. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/flatten.js +24 -0
  806. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/flatten.mjs +22 -0
  807. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/forEach.js +43 -0
  808. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/forEach.mjs +41 -0
  809. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/forIn.js +41 -0
  810. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/forIn.mjs +39 -0
  811. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/forOwn.js +38 -0
  812. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/forOwn.mjs +36 -0
  813. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/get.js +35 -0
  814. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/get.mjs +33 -0
  815. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/groupBy.js +43 -0
  816. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/groupBy.mjs +41 -0
  817. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/has.js +37 -0
  818. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/has.mjs +35 -0
  819. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/hasIn.js +36 -0
  820. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/hasIn.mjs +34 -0
  821. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/head.js +25 -0
  822. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/head.mjs +23 -0
  823. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/identity.js +23 -0
  824. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/identity.mjs +21 -0
  825. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/includes.js +55 -0
  826. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/includes.mjs +53 -0
  827. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/indexOf.js +37 -0
  828. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/indexOf.mjs +35 -0
  829. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isArguments.js +38 -0
  830. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isArguments.mjs +36 -0
  831. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isArray.js +28 -0
  832. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isArray.mjs +26 -0
  833. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isArrayLike.js +35 -0
  834. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isArrayLike.mjs +33 -0
  835. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isArrayLikeObject.js +35 -0
  836. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isArrayLikeObject.mjs +33 -0
  837. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isBuffer.js +40 -0
  838. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isBuffer.mjs +38 -0
  839. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isEmpty.js +79 -0
  840. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isEmpty.mjs +77 -0
  841. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isFunction.js +39 -0
  842. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isFunction.mjs +37 -0
  843. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isLength.js +37 -0
  844. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isLength.mjs +35 -0
  845. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isMap.js +29 -0
  846. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isMap.mjs +27 -0
  847. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isObject.js +33 -0
  848. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isObject.mjs +31 -0
  849. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isObjectLike.js +31 -0
  850. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isObjectLike.mjs +29 -0
  851. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isPlainObject.js +64 -0
  852. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isPlainObject.mjs +62 -0
  853. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isRegExp.js +29 -0
  854. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isRegExp.mjs +27 -0
  855. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isSet.js +29 -0
  856. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isSet.mjs +27 -0
  857. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isString.js +32 -0
  858. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isString.mjs +30 -0
  859. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isSymbol.js +31 -0
  860. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isSymbol.mjs +29 -0
  861. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isTypedArray.js +29 -0
  862. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isTypedArray.mjs +27 -0
  863. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isUndefined.js +24 -0
  864. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isUndefined.mjs +22 -0
  865. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/keys.js +39 -0
  866. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/keys.mjs +37 -0
  867. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/keysIn.js +34 -0
  868. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/keysIn.mjs +32 -0
  869. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/last.js +22 -0
  870. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/last.mjs +20 -0
  871. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/map.js +55 -0
  872. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/map.mjs +53 -0
  873. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/mapValues.js +45 -0
  874. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/mapValues.mjs +43 -0
  875. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/max.js +31 -0
  876. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/max.mjs +29 -0
  877. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/memoize.js +75 -0
  878. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/memoize.mjs +73 -0
  879. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/merge.js +41 -0
  880. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/merge.mjs +39 -0
  881. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/min.js +31 -0
  882. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/min.mjs +29 -0
  883. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/minBy.js +36 -0
  884. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/minBy.mjs +34 -0
  885. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/negate.js +42 -0
  886. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/negate.mjs +40 -0
  887. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/noop.js +19 -0
  888. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/noop.mjs +17 -0
  889. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/pick.js +27 -0
  890. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/pick.mjs +25 -0
  891. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/pickBy.js +39 -0
  892. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/pickBy.mjs +37 -0
  893. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/property.js +34 -0
  894. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/property.mjs +32 -0
  895. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/range.js +48 -0
  896. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/range.mjs +46 -0
  897. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/reduce.js +53 -0
  898. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/reduce.mjs +51 -0
  899. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/reject.js +48 -0
  900. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/reject.mjs +46 -0
  901. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/some.js +49 -0
  902. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/some.mjs +47 -0
  903. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/sortBy.js +50 -0
  904. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/sortBy.mjs +48 -0
  905. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/stubArray.js +25 -0
  906. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/stubArray.mjs +23 -0
  907. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/stubFalse.js +20 -0
  908. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/stubFalse.mjs +18 -0
  909. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/toFinite.js +44 -0
  910. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/toFinite.mjs +42 -0
  911. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/toInteger.js +38 -0
  912. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/toInteger.mjs +36 -0
  913. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/toNumber.js +66 -0
  914. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/toNumber.mjs +64 -0
  915. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/toPlainObject.js +34 -0
  916. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/toPlainObject.mjs +32 -0
  917. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/toString.js +30 -0
  918. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/toString.mjs +28 -0
  919. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/union.js +28 -0
  920. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/union.mjs +26 -0
  921. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/uniq.js +27 -0
  922. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/uniq.mjs +25 -0
  923. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/uniqBy.js +33 -0
  924. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/uniqBy.mjs +31 -0
  925. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/uniqueId.js +30 -0
  926. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/uniqueId.mjs +28 -0
  927. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/values.js +36 -0
  928. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/values.mjs +34 -0
  929. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/zipObject.js +26 -0
  930. package/dist/node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/zipObject.mjs +24 -0
  931. package/dist/node_modules/.pnpm/mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-VD42YOAC.js +1 -1
  932. package/dist/node_modules/.pnpm/mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-VD42YOAC.mjs +1 -1
  933. package/dist/node_modules/.pnpm/mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ABZYJK2D.js +1 -1
  934. package/dist/node_modules/.pnpm/mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ABZYJK2D.mjs +1 -1
  935. package/dist/node_modules/.pnpm/mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/chunk-S3R3BYOJ.js +2 -2
  936. package/dist/node_modules/.pnpm/mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/chunk-S3R3BYOJ.mjs +2 -2
  937. package/dist/node_modules/.pnpm/mermaid@11.12.1/node_modules/mermaid/dist/mermaid.core.js +1 -1
  938. package/dist/node_modules/.pnpm/mermaid@11.12.1/node_modules/mermaid/dist/mermaid.core.mjs +1 -1
  939. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/architectureDiagram-VXUJARFQ.js +1139 -0
  940. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/architectureDiagram-VXUJARFQ.mjs +1137 -0
  941. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-VD42YOAC.js +3654 -0
  942. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-VD42YOAC.mjs +3652 -0
  943. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-YG6GDRKO.js +2503 -0
  944. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-YG6GDRKO.mjs +2501 -0
  945. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/chunk-4BX2VUAB.js +19 -0
  946. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/chunk-4BX2VUAB.mjs +17 -0
  947. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/chunk-55IACEB6.js +18 -0
  948. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/chunk-55IACEB6.mjs +16 -0
  949. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ABZYJK2D.js +3063 -0
  950. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ABZYJK2D.mjs +3013 -0
  951. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/chunk-AGHRB4JF.js +81 -0
  952. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/chunk-AGHRB4JF.mjs +76 -0
  953. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ATLVNIR6.js +107 -0
  954. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ATLVNIR6.mjs +101 -0
  955. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/chunk-B4BG7PRW.js +1849 -0
  956. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/chunk-B4BG7PRW.mjs +1844 -0
  957. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/chunk-CVBHYZKI.js +19 -0
  958. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/chunk-CVBHYZKI.mjs +17 -0
  959. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/chunk-DI55MBZ5.js +1936 -0
  960. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/chunk-DI55MBZ5.mjs +1931 -0
  961. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/chunk-DR5Q36YT.js +146 -0
  962. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/chunk-DR5Q36YT.mjs +144 -0
  963. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/chunk-EXTU4WIE.js +21 -0
  964. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/chunk-EXTU4WIE.mjs +19 -0
  965. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/chunk-FMBD7UC4.js +22 -0
  966. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/chunk-FMBD7UC4.mjs +20 -0
  967. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/chunk-HN2XXSSU.js +118 -0
  968. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/chunk-HN2XXSSU.mjs +114 -0
  969. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/chunk-JA3XYJ7Z.js +433 -0
  970. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/chunk-JA3XYJ7Z.mjs +426 -0
  971. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/chunk-JZLCHNYA.js +5271 -0
  972. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/chunk-JZLCHNYA.mjs +5260 -0
  973. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/chunk-MI3HLSF2.js +2699 -0
  974. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/chunk-MI3HLSF2.mjs +2696 -0
  975. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/chunk-N4CR4FBY.js +69 -0
  976. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/chunk-N4CR4FBY.mjs +65 -0
  977. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/chunk-QN33PNHL.js +28 -0
  978. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/chunk-QN33PNHL.mjs +26 -0
  979. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/chunk-QXUST7PY.js +827 -0
  980. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/chunk-QXUST7PY.mjs +821 -0
  981. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/chunk-QZHKN3VN.js +22 -0
  982. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/chunk-QZHKN3VN.mjs +20 -0
  983. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/chunk-S3R3BYOJ.js +571 -0
  984. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/chunk-S3R3BYOJ.mjs +553 -0
  985. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/chunk-TZMSLE5B.js +112 -0
  986. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/chunk-TZMSLE5B.mjs +104 -0
  987. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-2ON5EDUG.js +31 -0
  988. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-2ON5EDUG.mjs +29 -0
  989. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-WZHVMYZB.js +31 -0
  990. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-WZHVMYZB.mjs +29 -0
  991. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/cose-bilkent-S5V4N54A.js +302 -0
  992. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/cose-bilkent-S5V4N54A.mjs +300 -0
  993. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/dagre-6UL2VRFP.js +662 -0
  994. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/dagre-6UL2VRFP.mjs +660 -0
  995. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/diagram-PSM6KHXK.js +540 -0
  996. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/diagram-PSM6KHXK.mjs +538 -0
  997. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/diagram-QEK2KX5R.js +312 -0
  998. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/diagram-QEK2KX5R.mjs +310 -0
  999. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/diagram-S2PKOQOG.js +224 -0
  1000. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/diagram-S2PKOQOG.mjs +222 -0
  1001. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/erDiagram-Q2GNP2WA.js +1180 -0
  1002. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/erDiagram-Q2GNP2WA.mjs +1178 -0
  1003. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/flowDiagram-NV44I4VS.js +2355 -0
  1004. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/flowDiagram-NV44I4VS.mjs +2353 -0
  1005. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-JELNMOA3.js +2201 -0
  1006. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-JELNMOA3.mjs +2199 -0
  1007. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/gitGraphDiagram-V2S2FVAM.js +1219 -0
  1008. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/gitGraphDiagram-V2S2FVAM.mjs +1217 -0
  1009. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/infoDiagram-HS3SLOUP.js +42 -0
  1010. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/infoDiagram-HS3SLOUP.mjs +40 -0
  1011. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/journeyDiagram-XKPGCS4Q.js +1269 -0
  1012. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/journeyDiagram-XKPGCS4Q.mjs +1267 -0
  1013. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/kanban-definition-3W4ZIXB7.js +1065 -0
  1014. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/kanban-definition-3W4ZIXB7.mjs +1063 -0
  1015. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/mindmap-definition-VGOIOE7T.js +1113 -0
  1016. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/mindmap-definition-VGOIOE7T.mjs +1111 -0
  1017. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/pieDiagram-ADFJNKIX.js +198 -0
  1018. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/pieDiagram-ADFJNKIX.mjs +196 -0
  1019. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/quadrantDiagram-AYHSOK5B.js +1353 -0
  1020. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/quadrantDiagram-AYHSOK5B.mjs +1351 -0
  1021. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/requirementDiagram-UZGBJVZJ.js +1181 -0
  1022. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/requirementDiagram-UZGBJVZJ.mjs +1179 -0
  1023. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/sankeyDiagram-TZEHDZUN.js +700 -0
  1024. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/sankeyDiagram-TZEHDZUN.mjs +698 -0
  1025. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-WL72ISMW.js +3893 -0
  1026. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-WL72ISMW.mjs +3891 -0
  1027. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-FKZM4ZOC.js +466 -0
  1028. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-FKZM4ZOC.mjs +464 -0
  1029. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-4FDKWEC3.js +31 -0
  1030. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-4FDKWEC3.mjs +29 -0
  1031. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/timeline-definition-IT6M3QCI.js +1238 -0
  1032. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/timeline-definition-IT6M3QCI.mjs +1236 -0
  1033. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/xychartDiagram-PRI3JC2R.js +1892 -0
  1034. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/chunks/mermaid.core/xychartDiagram-PRI3JC2R.mjs +1890 -0
  1035. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/mermaid.core.js +1311 -0
  1036. package/dist/node_modules/.pnpm/mermaid@11.12.3/node_modules/mermaid/dist/mermaid.core.mjs +1309 -0
  1037. package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/react-medium-image-zoom/dist/Controlled.js +437 -0
  1038. package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/react-medium-image-zoom/dist/Controlled.mjs +435 -0
  1039. package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/react-medium-image-zoom/dist/Uncontrolled.js +15 -0
  1040. package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/react-medium-image-zoom/dist/Uncontrolled.mjs +13 -0
  1041. package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/react-medium-image-zoom/dist/icons.js +15 -0
  1042. package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/react-medium-image-zoom/dist/icons.mjs +12 -0
  1043. package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/react-medium-image-zoom/dist/utils.js +423 -0
  1044. package/dist/node_modules/.pnpm/react-medium-image-zoom@5.4.1_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/react-medium-image-zoom/dist/utils.mjs +413 -0
  1045. package/dist/node_modules/.pnpm/swiper@12.1.2/node_modules/swiper/modules/pagination.js +461 -0
  1046. package/dist/node_modules/.pnpm/swiper@12.1.2/node_modules/swiper/modules/pagination.mjs +459 -0
  1047. package/dist/node_modules/.pnpm/swiper@12.1.2/node_modules/swiper/shared/classes-to-selector.js +9 -0
  1048. package/dist/node_modules/.pnpm/swiper@12.1.2/node_modules/swiper/shared/classes-to-selector.mjs +7 -0
  1049. package/dist/node_modules/.pnpm/swiper@12.1.2/node_modules/swiper/shared/create-element-if-not-defined.js +23 -0
  1050. package/dist/node_modules/.pnpm/swiper@12.1.2/node_modules/swiper/shared/create-element-if-not-defined.mjs +21 -0
  1051. package/dist/node_modules/.pnpm/swiper@12.1.2/node_modules/swiper/shared/ssr-window.esm.js +143 -0
  1052. package/dist/node_modules/.pnpm/swiper@12.1.2/node_modules/swiper/shared/ssr-window.esm.mjs +140 -0
  1053. package/dist/node_modules/.pnpm/swiper@12.1.2/node_modules/swiper/shared/swiper-core.js +3924 -0
  1054. package/dist/node_modules/.pnpm/swiper@12.1.2/node_modules/swiper/shared/swiper-core.mjs +3921 -0
  1055. package/dist/node_modules/.pnpm/swiper@12.1.2/node_modules/swiper/shared/update-on-virtual-data.js +129 -0
  1056. package/dist/node_modules/.pnpm/swiper@12.1.2/node_modules/swiper/shared/update-on-virtual-data.mjs +124 -0
  1057. package/dist/node_modules/.pnpm/swiper@12.1.2/node_modules/swiper/shared/update-swiper.js +226 -0
  1058. package/dist/node_modules/.pnpm/swiper@12.1.2/node_modules/swiper/shared/update-swiper.mjs +216 -0
  1059. package/dist/node_modules/.pnpm/swiper@12.1.2/node_modules/swiper/shared/utils.js +309 -0
  1060. package/dist/node_modules/.pnpm/swiper@12.1.2/node_modules/swiper/shared/utils.mjs +287 -0
  1061. package/dist/node_modules/.pnpm/swiper@12.1.2/node_modules/swiper/swiper-react.js +396 -0
  1062. package/dist/node_modules/.pnpm/swiper@12.1.2/node_modules/swiper/swiper-react.mjs +393 -0
  1063. package/dist/node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/api.js +106 -0
  1064. package/dist/node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/api.mjs +104 -0
  1065. package/dist/node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/connection.js +1232 -0
  1066. package/dist/node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/connection.mjs +1230 -0
  1067. package/dist/node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/disposable.js +28 -0
  1068. package/dist/node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/disposable.mjs +26 -0
  1069. package/dist/node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/linkedMap.js +410 -0
  1070. package/dist/node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/linkedMap.mjs +408 -0
  1071. package/dist/node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js +164 -0
  1072. package/dist/node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/messageBuffer.mjs +162 -0
  1073. package/dist/node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/messageReader.js +212 -0
  1074. package/dist/node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/messageReader.mjs +210 -0
  1075. package/dist/node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/messageWriter.js +131 -0
  1076. package/dist/node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/messageWriter.mjs +129 -0
  1077. package/dist/node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/messages.js +319 -0
  1078. package/dist/node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/messages.mjs +317 -0
  1079. package/dist/node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/semaphore.js +81 -0
  1080. package/dist/node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/semaphore.mjs +79 -0
  1081. package/dist/node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js +89 -0
  1082. package/dist/node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.mjs +87 -0
  1083. package/dist/node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/node/main.js +277 -0
  1084. package/dist/node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/node/main.mjs +275 -0
  1085. package/dist/node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/node/ril.js +175 -0
  1086. package/dist/node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/lib/node/ril.mjs +173 -0
  1087. package/dist/node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/node.js +21 -0
  1088. package/dist/node_modules/.pnpm/vscode-jsonrpc@8.2.0/node_modules/vscode-jsonrpc/node.mjs +19 -0
  1089. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/api.js +96 -0
  1090. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/api.mjs +94 -0
  1091. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/connection.js +28 -0
  1092. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/connection.mjs +26 -0
  1093. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/messages.js +57 -0
  1094. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/messages.mjs +55 -0
  1095. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js +55 -0
  1096. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.mjs +53 -0
  1097. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js +45 -0
  1098. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.mjs +43 -0
  1099. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js +37 -0
  1100. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.mjs +35 -0
  1101. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js +33 -0
  1102. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.mjs +31 -0
  1103. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.js +89 -0
  1104. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.mjs +87 -0
  1105. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js +114 -0
  1106. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.mjs +112 -0
  1107. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js +43 -0
  1108. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.mjs +41 -0
  1109. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js +32 -0
  1110. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.mjs +30 -0
  1111. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.js +56 -0
  1112. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.mjs +54 -0
  1113. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineCompletion.js +35 -0
  1114. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineCompletion.mjs +33 -0
  1115. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.js +43 -0
  1116. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.mjs +41 -0
  1117. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.js +979 -0
  1118. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js +32 -0
  1119. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.mjs +30 -0
  1120. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.mjs +977 -0
  1121. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js +81 -0
  1122. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.mjs +79 -0
  1123. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.js +229 -0
  1124. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.mjs +227 -0
  1125. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js +51 -0
  1126. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.mjs +49 -0
  1127. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js +33 -0
  1128. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.mjs +31 -0
  1129. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js +70 -0
  1130. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.mjs +68 -0
  1131. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js +35 -0
  1132. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.mjs +33 -0
  1133. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js +32 -0
  1134. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.mjs +30 -0
  1135. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.js +55 -0
  1136. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.mjs +53 -0
  1137. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.js +40 -0
  1138. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.mjs +38 -0
  1139. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/utils/is.js +59 -0
  1140. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/common/utils/is.mjs +57 -0
  1141. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/node/main.js +44 -0
  1142. package/dist/node_modules/.pnpm/vscode-languageserver-protocol@3.17.5/node_modules/vscode-languageserver-protocol/lib/node/main.mjs +42 -0
  1143. package/dist/node_modules/.pnpm/vscode-languageserver-types@3.17.5/node_modules/vscode-languageserver-types/lib/umd/main.js +2280 -0
  1144. package/dist/node_modules/.pnpm/vscode-languageserver-types@3.17.5/node_modules/vscode-languageserver-types/lib/umd/main.mjs +2278 -0
  1145. package/dist/node_modules/.pnpm/vscode-uri@3.1.0/node_modules/vscode-uri/lib/esm/index.js +6 -0
  1146. package/dist/node_modules/.pnpm/vscode-uri@3.1.0/node_modules/vscode-uri/lib/esm/index.mjs +3 -0
  1147. package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/errors.js +53 -0
  1148. package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/errors.mjs +51 -0
  1149. package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/iso.js +45 -0
  1150. package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/iso.mjs +36 -0
  1151. package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/parse.js +32 -0
  1152. package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/parse.mjs +19 -0
  1153. package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/schemas.js +535 -0
  1154. package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/schemas.mjs +480 -0
  1155. package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/api.js +486 -0
  1156. package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/api.mjs +439 -0
  1157. package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/checks.js +245 -0
  1158. package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/checks.mjs +232 -0
  1159. package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/core.js +77 -0
  1160. package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/core.mjs +71 -0
  1161. package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/errors.js +80 -0
  1162. package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/errors.mjs +75 -0
  1163. package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/json-schema-processors.js +187 -0
  1164. package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/json-schema-processors.mjs +172 -0
  1165. package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/parse.js +101 -0
  1166. package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/parse.mjs +86 -0
  1167. package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/regexes.js +99 -0
  1168. package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/regexes.mjs +74 -0
  1169. package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/registries.js +55 -0
  1170. package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/registries.mjs +51 -0
  1171. package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/schemas.js +972 -0
  1172. package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/schemas.mjs +928 -0
  1173. package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/to-json-schema.js +442 -0
  1174. package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/to-json-schema.mjs +435 -0
  1175. package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/util.js +193 -0
  1176. package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/util.mjs +173 -0
  1177. package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/versions.js +9 -0
  1178. package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/versions.mjs +7 -0
  1179. package/package.json +22 -22
@@ -0,0 +1,3891 @@
1
+ import { drawBackgroundRect, getTextObj, getNoteRect, drawRect, drawEmbeddedImage, drawImage } from './chunk-TZMSLE5B.mjs';
2
+ import { load, JSON_SCHEMA } from './chunk-MI3HLSF2.mjs';
3
+ import { ImperativeState } from './chunk-QZHKN3VN.mjs';
4
+ import { utils_default, parseFontSize, ZERO_WIDTH_SPACE } from './chunk-S3R3BYOJ.mjs';
5
+ import { setConfig2, getConfig2, configureSvgSize, assignWithDepth_default, common_default, setAccTitle, setAccDescription, setDiagramTitle, getAccTitle, getAccDescription, getDiagramTitle, clear, sanitizeText, hasKatex, calculateMathMLDimensions, getUrl, renderKatexSanitized, getConfig } from './chunk-ABZYJK2D.mjs';
6
+ import { __name, log } from './chunk-AGHRB4JF.mjs';
7
+ import '../../../../../../d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/selection/index.mjs';
8
+ import '../../../../../../d3-zoom@3.0.0/node_modules/d3-zoom/src/transform.mjs';
9
+ import { d as distExports } from '../../../../../../../../_virtual/index.mjs';
10
+ import select from '../../../../../../d3-selection@3.0.0/node_modules/d3-selection/src/select.mjs';
11
+
12
+ // src/diagrams/sequence/parser/sequenceDiagram.jison
13
+ var parser = (function() {
14
+ var o = /* @__PURE__ */ __name(function(k, v, o2, l) {
15
+ for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v) ;
16
+ return o2;
17
+ }, "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, 55, 60, 61, 62, 63, 71], $Vy = [2, 71], $Vz = [4, 5, 16, 50, 52, 53], $VA = [4, 5, 13, 14, 16, 18, 21, 23, 29, 30, 31, 33, 35, 36, 37, 38, 39, 41, 43, 44, 46, 50, 52, 53, 55, 60, 61, 62, 63, 71], $VB = [4, 5, 13, 14, 16, 18, 21, 23, 29, 30, 31, 33, 35, 36, 37, 38, 39, 41, 43, 44, 46, 49, 50, 52, 53, 55, 60, 61, 62, 63, 71], $VC = [4, 5, 13, 14, 16, 18, 21, 23, 29, 30, 31, 33, 35, 36, 37, 38, 39, 41, 43, 44, 46, 48, 50, 52, 53, 55, 60, 61, 62, 63, 71], $VD = [4, 5, 13, 14, 16, 18, 21, 23, 29, 30, 31, 33, 35, 36, 37, 38, 39, 41, 43, 44, 46, 47, 50, 52, 53, 55, 60, 61, 62, 63, 71], $VE = [69, 70, 71], $VF = [1, 127];
18
+ var parser2 = {
19
+ trace: /* @__PURE__ */ __name(function trace() {
20
+ }, "trace"),
21
+ yy: {},
22
+ symbols_: { "error": 2, "start": 3, "SPACE": 4, "NEWLINE": 5, "SD": 6, "document": 7, "line": 8, "statement": 9, "box_section": 10, "box_line": 11, "participant_statement": 12, "create": 13, "box": 14, "restOfLine": 15, "end": 16, "signal": 17, "autonumber": 18, "NUM": 19, "off": 20, "activate": 21, "actor": 22, "deactivate": 23, "note_statement": 24, "links_statement": 25, "link_statement": 26, "properties_statement": 27, "details_statement": 28, "title": 29, "legacy_title": 30, "acc_title": 31, "acc_title_value": 32, "acc_descr": 33, "acc_descr_value": 34, "acc_descr_multiline_value": 35, "loop": 36, "rect": 37, "opt": 38, "alt": 39, "else_sections": 40, "par": 41, "par_sections": 42, "par_over": 43, "critical": 44, "option_sections": 45, "break": 46, "option": 47, "and": 48, "else": 49, "participant": 50, "AS": 51, "participant_actor": 52, "destroy": 53, "actor_with_config": 54, "note": 55, "placement": 56, "text2": 57, "over": 58, "actor_pair": 59, "links": 60, "link": 61, "properties": 62, "details": 63, "spaceList": 64, ",": 65, "left_of": 66, "right_of": 67, "signaltype": 68, "+": 69, "-": 70, "ACTOR": 71, "config_object": 72, "CONFIG_START": 73, "CONFIG_CONTENT": 74, "CONFIG_END": 75, "SOLID_OPEN_ARROW": 76, "DOTTED_OPEN_ARROW": 77, "SOLID_ARROW": 78, "BIDIRECTIONAL_SOLID_ARROW": 79, "DOTTED_ARROW": 80, "BIDIRECTIONAL_DOTTED_ARROW": 81, "SOLID_CROSS": 82, "DOTTED_CROSS": 83, "SOLID_POINT": 84, "DOTTED_POINT": 85, "TXT": 86, "$accept": 0, "$end": 1 },
23
+ terminals_: { 2: "error", 4: "SPACE", 5: "NEWLINE", 6: "SD", 13: "create", 14: "box", 15: "restOfLine", 16: "end", 18: "autonumber", 19: "NUM", 20: "off", 21: "activate", 23: "deactivate", 29: "title", 30: "legacy_title", 31: "acc_title", 32: "acc_title_value", 33: "acc_descr", 34: "acc_descr_value", 35: "acc_descr_multiline_value", 36: "loop", 37: "rect", 38: "opt", 39: "alt", 41: "par", 43: "par_over", 44: "critical", 46: "break", 47: "option", 48: "and", 49: "else", 50: "participant", 51: "AS", 52: "participant_actor", 53: "destroy", 55: "note", 58: "over", 60: "links", 61: "link", 62: "properties", 63: "details", 65: ",", 66: "left_of", 67: "right_of", 69: "+", 70: "-", 71: "ACTOR", 73: "CONFIG_START", 74: "CONFIG_CONTENT", 75: "CONFIG_END", 76: "SOLID_OPEN_ARROW", 77: "DOTTED_OPEN_ARROW", 78: "SOLID_ARROW", 79: "BIDIRECTIONAL_SOLID_ARROW", 80: "DOTTED_ARROW", 81: "BIDIRECTIONAL_DOTTED_ARROW", 82: "SOLID_CROSS", 83: "DOTTED_CROSS", 84: "SOLID_POINT", 85: "DOTTED_POINT", 86: "TXT" },
24
+ productions_: [0, [3, 2], [3, 2], [3, 2], [7, 0], [7, 2], [8, 2], [8, 1], [8, 1], [10, 0], [10, 2], [11, 2], [11, 1], [11, 1], [9, 1], [9, 2], [9, 4], [9, 2], [9, 4], [9, 3], [9, 3], [9, 2], [9, 3], [9, 3], [9, 2], [9, 2], [9, 2], [9, 2], [9, 2], [9, 1], [9, 1], [9, 2], [9, 2], [9, 1], [9, 4], [9, 4], [9, 4], [9, 4], [9, 4], [9, 4], [9, 4], [9, 4], [45, 1], [45, 4], [42, 1], [42, 4], [40, 1], [40, 4], [12, 5], [12, 3], [12, 5], [12, 3], [12, 3], [12, 3], [24, 4], [24, 4], [25, 3], [26, 3], [27, 3], [28, 3], [64, 2], [64, 1], [59, 3], [59, 1], [56, 1], [56, 1], [17, 5], [17, 5], [17, 4], [54, 2], [72, 3], [22, 1], [68, 1], [68, 1], [68, 1], [68, 1], [68, 1], [68, 1], [68, 1], [68, 1], [68, 1], [68, 1], [57, 1]],
25
+ performAction: /* @__PURE__ */ __name(function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$) {
26
+ var $0 = $$.length - 1;
27
+ switch (yystate) {
28
+ case 3:
29
+ yy.apply($$[$0]);
30
+ return $$[$0];
31
+ case 4:
32
+ case 9:
33
+ this.$ = [];
34
+ break;
35
+ case 5:
36
+ case 10:
37
+ $$[$0 - 1].push($$[$0]);
38
+ this.$ = $$[$0 - 1];
39
+ break;
40
+ case 6:
41
+ case 7:
42
+ case 11:
43
+ case 12:
44
+ this.$ = $$[$0];
45
+ break;
46
+ case 8:
47
+ case 13:
48
+ this.$ = [];
49
+ break;
50
+ case 15:
51
+ $$[$0].type = "createParticipant";
52
+ this.$ = $$[$0];
53
+ break;
54
+ case 16:
55
+ $$[$0 - 1].unshift({ type: "boxStart", boxData: yy.parseBoxData($$[$0 - 2]) });
56
+ $$[$0 - 1].push({ type: "boxEnd", boxText: $$[$0 - 2] });
57
+ this.$ = $$[$0 - 1];
58
+ break;
59
+ case 18:
60
+ this.$ = { type: "sequenceIndex", sequenceIndex: Number($$[$0 - 2]), sequenceIndexStep: Number($$[$0 - 1]), sequenceVisible: true, signalType: yy.LINETYPE.AUTONUMBER };
61
+ break;
62
+ case 19:
63
+ this.$ = { type: "sequenceIndex", sequenceIndex: Number($$[$0 - 1]), sequenceIndexStep: 1, sequenceVisible: true, signalType: yy.LINETYPE.AUTONUMBER };
64
+ break;
65
+ case 20:
66
+ this.$ = { type: "sequenceIndex", sequenceVisible: false, signalType: yy.LINETYPE.AUTONUMBER };
67
+ break;
68
+ case 21:
69
+ this.$ = { type: "sequenceIndex", sequenceVisible: true, signalType: yy.LINETYPE.AUTONUMBER };
70
+ break;
71
+ case 22:
72
+ this.$ = { type: "activeStart", signalType: yy.LINETYPE.ACTIVE_START, actor: $$[$0 - 1].actor };
73
+ break;
74
+ case 23:
75
+ this.$ = { type: "activeEnd", signalType: yy.LINETYPE.ACTIVE_END, actor: $$[$0 - 1].actor };
76
+ break;
77
+ case 29:
78
+ yy.setDiagramTitle($$[$0].substring(6));
79
+ this.$ = $$[$0].substring(6);
80
+ break;
81
+ case 30:
82
+ yy.setDiagramTitle($$[$0].substring(7));
83
+ this.$ = $$[$0].substring(7);
84
+ break;
85
+ case 31:
86
+ this.$ = $$[$0].trim();
87
+ yy.setAccTitle(this.$);
88
+ break;
89
+ case 32:
90
+ case 33:
91
+ this.$ = $$[$0].trim();
92
+ yy.setAccDescription(this.$);
93
+ break;
94
+ case 34:
95
+ $$[$0 - 1].unshift({ type: "loopStart", loopText: yy.parseMessage($$[$0 - 2]), signalType: yy.LINETYPE.LOOP_START });
96
+ $$[$0 - 1].push({ type: "loopEnd", loopText: $$[$0 - 2], signalType: yy.LINETYPE.LOOP_END });
97
+ this.$ = $$[$0 - 1];
98
+ break;
99
+ case 35:
100
+ $$[$0 - 1].unshift({ type: "rectStart", color: yy.parseMessage($$[$0 - 2]), signalType: yy.LINETYPE.RECT_START });
101
+ $$[$0 - 1].push({ type: "rectEnd", color: yy.parseMessage($$[$0 - 2]), signalType: yy.LINETYPE.RECT_END });
102
+ this.$ = $$[$0 - 1];
103
+ break;
104
+ case 36:
105
+ $$[$0 - 1].unshift({ type: "optStart", optText: yy.parseMessage($$[$0 - 2]), signalType: yy.LINETYPE.OPT_START });
106
+ $$[$0 - 1].push({ type: "optEnd", optText: yy.parseMessage($$[$0 - 2]), signalType: yy.LINETYPE.OPT_END });
107
+ this.$ = $$[$0 - 1];
108
+ break;
109
+ case 37:
110
+ $$[$0 - 1].unshift({ type: "altStart", altText: yy.parseMessage($$[$0 - 2]), signalType: yy.LINETYPE.ALT_START });
111
+ $$[$0 - 1].push({ type: "altEnd", signalType: yy.LINETYPE.ALT_END });
112
+ this.$ = $$[$0 - 1];
113
+ break;
114
+ case 38:
115
+ $$[$0 - 1].unshift({ type: "parStart", parText: yy.parseMessage($$[$0 - 2]), signalType: yy.LINETYPE.PAR_START });
116
+ $$[$0 - 1].push({ type: "parEnd", signalType: yy.LINETYPE.PAR_END });
117
+ this.$ = $$[$0 - 1];
118
+ break;
119
+ case 39:
120
+ $$[$0 - 1].unshift({ type: "parStart", parText: yy.parseMessage($$[$0 - 2]), signalType: yy.LINETYPE.PAR_OVER_START });
121
+ $$[$0 - 1].push({ type: "parEnd", signalType: yy.LINETYPE.PAR_END });
122
+ this.$ = $$[$0 - 1];
123
+ break;
124
+ case 40:
125
+ $$[$0 - 1].unshift({ type: "criticalStart", criticalText: yy.parseMessage($$[$0 - 2]), signalType: yy.LINETYPE.CRITICAL_START });
126
+ $$[$0 - 1].push({ type: "criticalEnd", signalType: yy.LINETYPE.CRITICAL_END });
127
+ this.$ = $$[$0 - 1];
128
+ break;
129
+ case 41:
130
+ $$[$0 - 1].unshift({ type: "breakStart", breakText: yy.parseMessage($$[$0 - 2]), signalType: yy.LINETYPE.BREAK_START });
131
+ $$[$0 - 1].push({ type: "breakEnd", optText: yy.parseMessage($$[$0 - 2]), signalType: yy.LINETYPE.BREAK_END });
132
+ this.$ = $$[$0 - 1];
133
+ break;
134
+ case 43:
135
+ this.$ = $$[$0 - 3].concat([{ type: "option", optionText: yy.parseMessage($$[$0 - 1]), signalType: yy.LINETYPE.CRITICAL_OPTION }, $$[$0]]);
136
+ break;
137
+ case 45:
138
+ this.$ = $$[$0 - 3].concat([{ type: "and", parText: yy.parseMessage($$[$0 - 1]), signalType: yy.LINETYPE.PAR_AND }, $$[$0]]);
139
+ break;
140
+ case 47:
141
+ this.$ = $$[$0 - 3].concat([{ type: "else", altText: yy.parseMessage($$[$0 - 1]), signalType: yy.LINETYPE.ALT_ELSE }, $$[$0]]);
142
+ break;
143
+ case 48:
144
+ $$[$0 - 3].draw = "participant";
145
+ $$[$0 - 3].type = "addParticipant";
146
+ $$[$0 - 3].description = yy.parseMessage($$[$0 - 1]);
147
+ this.$ = $$[$0 - 3];
148
+ break;
149
+ case 49:
150
+ $$[$0 - 1].draw = "participant";
151
+ $$[$0 - 1].type = "addParticipant";
152
+ this.$ = $$[$0 - 1];
153
+ break;
154
+ case 50:
155
+ $$[$0 - 3].draw = "actor";
156
+ $$[$0 - 3].type = "addParticipant";
157
+ $$[$0 - 3].description = yy.parseMessage($$[$0 - 1]);
158
+ this.$ = $$[$0 - 3];
159
+ break;
160
+ case 51:
161
+ $$[$0 - 1].draw = "actor";
162
+ $$[$0 - 1].type = "addParticipant";
163
+ this.$ = $$[$0 - 1];
164
+ break;
165
+ case 52:
166
+ $$[$0 - 1].type = "destroyParticipant";
167
+ this.$ = $$[$0 - 1];
168
+ break;
169
+ case 53:
170
+ $$[$0 - 1].draw = "participant";
171
+ $$[$0 - 1].type = "addParticipant";
172
+ this.$ = $$[$0 - 1];
173
+ break;
174
+ case 54:
175
+ this.$ = [$$[$0 - 1], { type: "addNote", placement: $$[$0 - 2], actor: $$[$0 - 1].actor, text: $$[$0] }];
176
+ break;
177
+ case 55:
178
+ $$[$0 - 2] = [].concat($$[$0 - 1], $$[$0 - 1]).slice(0, 2);
179
+ $$[$0 - 2][0] = $$[$0 - 2][0].actor;
180
+ $$[$0 - 2][1] = $$[$0 - 2][1].actor;
181
+ this.$ = [$$[$0 - 1], { type: "addNote", placement: yy.PLACEMENT.OVER, actor: $$[$0 - 2].slice(0, 2), text: $$[$0] }];
182
+ break;
183
+ case 56:
184
+ this.$ = [$$[$0 - 1], { type: "addLinks", actor: $$[$0 - 1].actor, text: $$[$0] }];
185
+ break;
186
+ case 57:
187
+ this.$ = [$$[$0 - 1], { type: "addALink", actor: $$[$0 - 1].actor, text: $$[$0] }];
188
+ break;
189
+ case 58:
190
+ this.$ = [$$[$0 - 1], { type: "addProperties", actor: $$[$0 - 1].actor, text: $$[$0] }];
191
+ break;
192
+ case 59:
193
+ this.$ = [$$[$0 - 1], { type: "addDetails", actor: $$[$0 - 1].actor, text: $$[$0] }];
194
+ break;
195
+ case 62:
196
+ this.$ = [$$[$0 - 2], $$[$0]];
197
+ break;
198
+ case 63:
199
+ this.$ = $$[$0];
200
+ break;
201
+ case 64:
202
+ this.$ = yy.PLACEMENT.LEFTOF;
203
+ break;
204
+ case 65:
205
+ this.$ = yy.PLACEMENT.RIGHTOF;
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], activate: true },
212
+ { type: "activeStart", signalType: yy.LINETYPE.ACTIVE_START, actor: $$[$0 - 1].actor }
213
+ ];
214
+ break;
215
+ case 67:
216
+ this.$ = [
217
+ $$[$0 - 4],
218
+ $$[$0 - 1],
219
+ { type: "addMessage", from: $$[$0 - 4].actor, to: $$[$0 - 1].actor, signalType: $$[$0 - 3], msg: $$[$0] },
220
+ { type: "activeEnd", signalType: yy.LINETYPE.ACTIVE_END, actor: $$[$0 - 4].actor }
221
+ ];
222
+ break;
223
+ case 68:
224
+ this.$ = [$$[$0 - 3], $$[$0 - 1], { type: "addMessage", from: $$[$0 - 3].actor, to: $$[$0 - 1].actor, signalType: $$[$0 - 2], msg: $$[$0] }];
225
+ break;
226
+ case 69:
227
+ this.$ = {
228
+ type: "addParticipant",
229
+ actor: $$[$0 - 1],
230
+ config: $$[$0]
231
+ };
232
+ break;
233
+ case 70:
234
+ this.$ = $$[$0 - 1].trim();
235
+ break;
236
+ case 71:
237
+ this.$ = { type: "addParticipant", actor: $$[$0] };
238
+ break;
239
+ case 72:
240
+ this.$ = yy.LINETYPE.SOLID_OPEN;
241
+ break;
242
+ case 73:
243
+ this.$ = yy.LINETYPE.DOTTED_OPEN;
244
+ break;
245
+ case 74:
246
+ this.$ = yy.LINETYPE.SOLID;
247
+ break;
248
+ case 75:
249
+ this.$ = yy.LINETYPE.BIDIRECTIONAL_SOLID;
250
+ break;
251
+ case 76:
252
+ this.$ = yy.LINETYPE.DOTTED;
253
+ break;
254
+ case 77:
255
+ this.$ = yy.LINETYPE.BIDIRECTIONAL_DOTTED;
256
+ break;
257
+ case 78:
258
+ this.$ = yy.LINETYPE.SOLID_CROSS;
259
+ break;
260
+ case 79:
261
+ this.$ = yy.LINETYPE.DOTTED_CROSS;
262
+ break;
263
+ case 80:
264
+ this.$ = yy.LINETYPE.SOLID_POINT;
265
+ break;
266
+ case 81:
267
+ this.$ = yy.LINETYPE.DOTTED_POINT;
268
+ break;
269
+ case 82:
270
+ this.$ = yy.parseMessage($$[$0].trim().substring(1));
271
+ break;
272
+ }
273
+ }, "anonymous"),
274
+ 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, 55, 60, 61, 62, 63, 71], $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, 55: $Vr, 60: $Vs, 61: $Vt, 62: $Vu, 63: $Vv, 71: $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, 55: $Vr, 60: $Vs, 61: $Vt, 62: $Vu, 63: $Vv, 71: $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, 71: $Vw }, { 22: 55, 71: $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, 54: 72, 71: [1, 73] }, { 22: 74, 71: $Vw }, { 22: 75, 71: $Vw }, { 68: 76, 76: [1, 77], 77: [1, 78], 78: [1, 79], 79: [1, 80], 80: [1, 81], 81: [1, 82], 82: [1, 83], 83: [1, 84], 84: [1, 85], 85: [1, 86] }, { 56: 87, 58: [1, 88], 66: [1, 89], 67: [1, 90] }, { 22: 91, 71: $Vw }, { 22: 92, 71: $Vw }, { 22: 93, 71: $Vw }, { 22: 94, 71: $Vw }, o([5, 51, 65, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86], $Vy), o($Vx, [2, 6]), o($Vx, [2, 15]), o($Vz, [2, 9], { 10: 95 }), o($Vx, [2, 17]), { 5: [1, 97], 19: [1, 96] }, { 5: [1, 98] }, o($Vx, [2, 21]), { 5: [1, 99] }, { 5: [1, 100] }, 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($VA, $V3, { 7: 101 }), o($VA, $V3, { 7: 102 }), o($VA, $V3, { 7: 103 }), o($VB, $V3, { 40: 104, 7: 105 }), o($VC, $V3, { 42: 106, 7: 107 }), o($VC, $V3, { 7: 107, 42: 108 }), o($VD, $V3, { 45: 109, 7: 110 }), o($VA, $V3, { 7: 111 }), { 5: [1, 113], 51: [1, 112] }, { 5: [1, 114] }, o([5, 51], $Vy, { 72: 115, 73: [1, 116] }), { 5: [1, 118], 51: [1, 117] }, { 5: [1, 119] }, { 22: 122, 69: [1, 120], 70: [1, 121], 71: $Vw }, o($VE, [2, 72]), o($VE, [2, 73]), o($VE, [2, 74]), o($VE, [2, 75]), o($VE, [2, 76]), o($VE, [2, 77]), o($VE, [2, 78]), o($VE, [2, 79]), o($VE, [2, 80]), o($VE, [2, 81]), { 22: 123, 71: $Vw }, { 22: 125, 59: 124, 71: $Vw }, { 71: [2, 64] }, { 71: [2, 65] }, { 57: 126, 86: $VF }, { 57: 128, 86: $VF }, { 57: 129, 86: $VF }, { 57: 130, 86: $VF }, { 4: [1, 133], 5: [1, 135], 11: 132, 12: 134, 16: [1, 131], 50: $Vo, 52: $Vp, 53: $Vq }, { 5: [1, 136] }, 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, 137], 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, 55: $Vr, 60: $Vs, 61: $Vt, 62: $Vu, 63: $Vv, 71: $Vw }, { 4: $V4, 5: $V5, 8: 8, 9: 10, 12: 12, 13: $V6, 14: $V7, 16: [1, 138], 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, 55: $Vr, 60: $Vs, 61: $Vt, 62: $Vu, 63: $Vv, 71: $Vw }, { 4: $V4, 5: $V5, 8: 8, 9: 10, 12: 12, 13: $V6, 14: $V7, 16: [1, 139], 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, 55: $Vr, 60: $Vs, 61: $Vt, 62: $Vu, 63: $Vv, 71: $Vw }, { 16: [1, 140] }, { 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, 141], 50: $Vo, 52: $Vp, 53: $Vq, 55: $Vr, 60: $Vs, 61: $Vt, 62: $Vu, 63: $Vv, 71: $Vw }, { 16: [1, 142] }, { 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, 143], 50: $Vo, 52: $Vp, 53: $Vq, 55: $Vr, 60: $Vs, 61: $Vt, 62: $Vu, 63: $Vv, 71: $Vw }, { 16: [1, 144] }, { 16: [1, 145] }, { 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, 146], 50: $Vo, 52: $Vp, 53: $Vq, 55: $Vr, 60: $Vs, 61: $Vt, 62: $Vu, 63: $Vv, 71: $Vw }, { 4: $V4, 5: $V5, 8: 8, 9: 10, 12: 12, 13: $V6, 14: $V7, 16: [1, 147], 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, 55: $Vr, 60: $Vs, 61: $Vt, 62: $Vu, 63: $Vv, 71: $Vw }, { 15: [1, 148] }, o($Vx, [2, 49]), o($Vx, [2, 53]), { 5: [2, 69] }, { 74: [1, 149] }, { 15: [1, 150] }, o($Vx, [2, 51]), o($Vx, [2, 52]), { 22: 151, 71: $Vw }, { 22: 152, 71: $Vw }, { 57: 153, 86: $VF }, { 57: 154, 86: $VF }, { 57: 155, 86: $VF }, { 65: [1, 156], 86: [2, 63] }, { 5: [2, 56] }, { 5: [2, 82] }, { 5: [2, 57] }, { 5: [2, 58] }, { 5: [2, 59] }, o($Vx, [2, 16]), o($Vz, [2, 10]), { 12: 157, 50: $Vo, 52: $Vp, 53: $Vq }, o($Vz, [2, 12]), o($Vz, [2, 13]), o($Vx, [2, 18]), o($Vx, [2, 34]), o($Vx, [2, 35]), o($Vx, [2, 36]), o($Vx, [2, 37]), { 15: [1, 158] }, o($Vx, [2, 38]), { 15: [1, 159] }, o($Vx, [2, 39]), o($Vx, [2, 40]), { 15: [1, 160] }, o($Vx, [2, 41]), { 5: [1, 161] }, { 75: [1, 162] }, { 5: [1, 163] }, { 57: 164, 86: $VF }, { 57: 165, 86: $VF }, { 5: [2, 68] }, { 5: [2, 54] }, { 5: [2, 55] }, { 22: 166, 71: $Vw }, o($Vz, [2, 11]), o($VB, $V3, { 7: 105, 40: 167 }), o($VC, $V3, { 7: 107, 42: 168 }), o($VD, $V3, { 7: 110, 45: 169 }), o($Vx, [2, 48]), { 5: [2, 70] }, o($Vx, [2, 50]), { 5: [2, 66] }, { 5: [2, 67] }, { 86: [2, 62] }, { 16: [2, 47] }, { 16: [2, 45] }, { 16: [2, 43] }],
275
+ defaultActions: { 5: [2, 1], 6: [2, 2], 89: [2, 64], 90: [2, 65], 115: [2, 69], 126: [2, 56], 127: [2, 82], 128: [2, 57], 129: [2, 58], 130: [2, 59], 153: [2, 68], 154: [2, 54], 155: [2, 55], 162: [2, 70], 164: [2, 66], 165: [2, 67], 166: [2, 62], 167: [2, 47], 168: [2, 45], 169: [2, 43] },
276
+ parseError: /* @__PURE__ */ __name(function parseError(str, hash) {
277
+ if (hash.recoverable) {
278
+ this.trace(str);
279
+ } else {
280
+ var error = new Error(str);
281
+ error.hash = hash;
282
+ throw error;
283
+ }
284
+ }, "parseError"),
285
+ parse: /* @__PURE__ */ __name(function parse(input) {
286
+ var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = "", yylineno = 0, yyleng = 0, TERROR = 2, EOF = 1;
287
+ var args = lstack.slice.call(arguments, 1);
288
+ var lexer2 = Object.create(this.lexer);
289
+ var sharedState = { yy: {} };
290
+ for (var k in this.yy) {
291
+ if (Object.prototype.hasOwnProperty.call(this.yy, k)) {
292
+ sharedState.yy[k] = this.yy[k];
293
+ }
294
+ }
295
+ lexer2.setInput(input, sharedState.yy);
296
+ sharedState.yy.lexer = lexer2;
297
+ sharedState.yy.parser = this;
298
+ if (typeof lexer2.yylloc == "undefined") {
299
+ lexer2.yylloc = {};
300
+ }
301
+ var yyloc = lexer2.yylloc;
302
+ lstack.push(yyloc);
303
+ var ranges = lexer2.options && lexer2.options.ranges;
304
+ if (typeof sharedState.yy.parseError === "function") {
305
+ this.parseError = sharedState.yy.parseError;
306
+ } else {
307
+ this.parseError = Object.getPrototypeOf(this).parseError;
308
+ }
309
+ function popStack(n) {
310
+ stack.length = stack.length - 2 * n;
311
+ vstack.length = vstack.length - n;
312
+ lstack.length = lstack.length - n;
313
+ }
314
+ __name(popStack, "popStack");
315
+ function lex() {
316
+ var token;
317
+ token = tstack.pop() || lexer2.lex() || EOF;
318
+ if (typeof token !== "number") {
319
+ if (token instanceof Array) {
320
+ tstack = token;
321
+ token = tstack.pop();
322
+ }
323
+ token = self.symbols_[token] || token;
324
+ }
325
+ return token;
326
+ }
327
+ __name(lex, "lex");
328
+ var symbol, state, action, r, yyval = {}, p, len, newState, expected;
329
+ while (true) {
330
+ state = stack[stack.length - 1];
331
+ if (this.defaultActions[state]) {
332
+ action = this.defaultActions[state];
333
+ } else {
334
+ if (symbol === null || typeof symbol == "undefined") {
335
+ symbol = lex();
336
+ }
337
+ action = table[state] && table[state][symbol];
338
+ }
339
+ if (typeof action === "undefined" || !action.length || !action[0]) {
340
+ var errStr = "";
341
+ expected = [];
342
+ for (p in table[state]) {
343
+ if (this.terminals_[p] && p > TERROR) {
344
+ expected.push("'" + this.terminals_[p] + "'");
345
+ }
346
+ }
347
+ if (lexer2.showPosition) {
348
+ errStr = "Parse error on line " + (yylineno + 1) + ":\n" + lexer2.showPosition() + "\nExpecting " + expected.join(", ") + ", got '" + (this.terminals_[symbol] || symbol) + "'";
349
+ } else {
350
+ errStr = "Parse error on line " + (yylineno + 1) + ": Unexpected " + (symbol == EOF ? "end of input" : "'" + (this.terminals_[symbol] || symbol) + "'");
351
+ }
352
+ this.parseError(errStr, {
353
+ text: lexer2.match,
354
+ token: this.terminals_[symbol] || symbol,
355
+ line: lexer2.yylineno,
356
+ loc: yyloc,
357
+ expected
358
+ });
359
+ }
360
+ if (action[0] instanceof Array && action.length > 1) {
361
+ throw new Error("Parse Error: multiple actions possible at state: " + state + ", token: " + symbol);
362
+ }
363
+ switch (action[0]) {
364
+ case 1:
365
+ stack.push(symbol);
366
+ vstack.push(lexer2.yytext);
367
+ lstack.push(lexer2.yylloc);
368
+ stack.push(action[1]);
369
+ symbol = null;
370
+ {
371
+ yyleng = lexer2.yyleng;
372
+ yytext = lexer2.yytext;
373
+ yylineno = lexer2.yylineno;
374
+ yyloc = lexer2.yylloc;
375
+ }
376
+ break;
377
+ case 2:
378
+ len = this.productions_[action[1]][1];
379
+ yyval.$ = vstack[vstack.length - len];
380
+ yyval._$ = {
381
+ first_line: lstack[lstack.length - (len || 1)].first_line,
382
+ last_line: lstack[lstack.length - 1].last_line,
383
+ first_column: lstack[lstack.length - (len || 1)].first_column,
384
+ last_column: lstack[lstack.length - 1].last_column
385
+ };
386
+ if (ranges) {
387
+ yyval._$.range = [
388
+ lstack[lstack.length - (len || 1)].range[0],
389
+ lstack[lstack.length - 1].range[1]
390
+ ];
391
+ }
392
+ r = this.performAction.apply(yyval, [
393
+ yytext,
394
+ yyleng,
395
+ yylineno,
396
+ sharedState.yy,
397
+ action[1],
398
+ vstack,
399
+ lstack
400
+ ].concat(args));
401
+ if (typeof r !== "undefined") {
402
+ return r;
403
+ }
404
+ if (len) {
405
+ stack = stack.slice(0, -1 * len * 2);
406
+ vstack = vstack.slice(0, -1 * len);
407
+ lstack = lstack.slice(0, -1 * len);
408
+ }
409
+ stack.push(this.productions_[action[1]][0]);
410
+ vstack.push(yyval.$);
411
+ lstack.push(yyval._$);
412
+ newState = table[stack[stack.length - 2]][stack[stack.length - 1]];
413
+ stack.push(newState);
414
+ break;
415
+ case 3:
416
+ return true;
417
+ }
418
+ }
419
+ return true;
420
+ }, "parse")
421
+ };
422
+ var lexer = /* @__PURE__ */ (function() {
423
+ var lexer2 = {
424
+ EOF: 1,
425
+ parseError: /* @__PURE__ */ __name(function parseError(str, hash) {
426
+ if (this.yy.parser) {
427
+ this.yy.parser.parseError(str, hash);
428
+ } else {
429
+ throw new Error(str);
430
+ }
431
+ }, "parseError"),
432
+ // resets the lexer, sets new input
433
+ setInput: /* @__PURE__ */ __name(function(input, yy) {
434
+ this.yy = yy || this.yy || {};
435
+ this._input = input;
436
+ this._more = this._backtrack = this.done = false;
437
+ this.yylineno = this.yyleng = 0;
438
+ this.yytext = this.matched = this.match = "";
439
+ this.conditionStack = ["INITIAL"];
440
+ this.yylloc = {
441
+ first_line: 1,
442
+ first_column: 0,
443
+ last_line: 1,
444
+ last_column: 0
445
+ };
446
+ if (this.options.ranges) {
447
+ this.yylloc.range = [0, 0];
448
+ }
449
+ this.offset = 0;
450
+ return this;
451
+ }, "setInput"),
452
+ // consumes and returns one char from the input
453
+ input: /* @__PURE__ */ __name(function() {
454
+ var ch = this._input[0];
455
+ this.yytext += ch;
456
+ this.yyleng++;
457
+ this.offset++;
458
+ this.match += ch;
459
+ this.matched += ch;
460
+ var lines = ch.match(/(?:\r\n?|\n).*/g);
461
+ if (lines) {
462
+ this.yylineno++;
463
+ this.yylloc.last_line++;
464
+ } else {
465
+ this.yylloc.last_column++;
466
+ }
467
+ if (this.options.ranges) {
468
+ this.yylloc.range[1]++;
469
+ }
470
+ this._input = this._input.slice(1);
471
+ return ch;
472
+ }, "input"),
473
+ // unshifts one char (or a string) into the input
474
+ unput: /* @__PURE__ */ __name(function(ch) {
475
+ var len = ch.length;
476
+ var lines = ch.split(/(?:\r\n?|\n)/g);
477
+ this._input = ch + this._input;
478
+ this.yytext = this.yytext.substr(0, this.yytext.length - len);
479
+ this.offset -= len;
480
+ var oldLines = this.match.split(/(?:\r\n?|\n)/g);
481
+ this.match = this.match.substr(0, this.match.length - 1);
482
+ this.matched = this.matched.substr(0, this.matched.length - 1);
483
+ if (lines.length - 1) {
484
+ this.yylineno -= lines.length - 1;
485
+ }
486
+ var r = this.yylloc.range;
487
+ this.yylloc = {
488
+ first_line: this.yylloc.first_line,
489
+ last_line: this.yylineno + 1,
490
+ first_column: this.yylloc.first_column,
491
+ 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
492
+ };
493
+ if (this.options.ranges) {
494
+ this.yylloc.range = [r[0], r[0] + this.yyleng - len];
495
+ }
496
+ this.yyleng = this.yytext.length;
497
+ return this;
498
+ }, "unput"),
499
+ // When called from action, caches matched text and appends it on next action
500
+ more: /* @__PURE__ */ __name(function() {
501
+ this._more = true;
502
+ return this;
503
+ }, "more"),
504
+ // 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.
505
+ reject: /* @__PURE__ */ __name(function() {
506
+ if (this.options.backtrack_lexer) {
507
+ this._backtrack = true;
508
+ } else {
509
+ 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(), {
510
+ text: "",
511
+ token: null,
512
+ line: this.yylineno
513
+ });
514
+ }
515
+ return this;
516
+ }, "reject"),
517
+ // retain first n characters of the match
518
+ less: /* @__PURE__ */ __name(function(n) {
519
+ this.unput(this.match.slice(n));
520
+ }, "less"),
521
+ // displays already matched input, i.e. for error messages
522
+ pastInput: /* @__PURE__ */ __name(function() {
523
+ var past = this.matched.substr(0, this.matched.length - this.match.length);
524
+ return (past.length > 20 ? "..." : "") + past.substr(-20).replace(/\n/g, "");
525
+ }, "pastInput"),
526
+ // displays upcoming input, i.e. for error messages
527
+ upcomingInput: /* @__PURE__ */ __name(function() {
528
+ var next = this.match;
529
+ if (next.length < 20) {
530
+ next += this._input.substr(0, 20 - next.length);
531
+ }
532
+ return (next.substr(0, 20) + (next.length > 20 ? "..." : "")).replace(/\n/g, "");
533
+ }, "upcomingInput"),
534
+ // displays the character position where the lexing error occurred, i.e. for error messages
535
+ showPosition: /* @__PURE__ */ __name(function() {
536
+ var pre = this.pastInput();
537
+ var c = new Array(pre.length + 1).join("-");
538
+ return pre + this.upcomingInput() + "\n" + c + "^";
539
+ }, "showPosition"),
540
+ // test the lexed token: return FALSE when not a match, otherwise return token
541
+ test_match: /* @__PURE__ */ __name(function(match, indexed_rule) {
542
+ var token, lines, backup;
543
+ if (this.options.backtrack_lexer) {
544
+ backup = {
545
+ yylineno: this.yylineno,
546
+ yylloc: {
547
+ first_line: this.yylloc.first_line,
548
+ last_line: this.last_line,
549
+ first_column: this.yylloc.first_column,
550
+ last_column: this.yylloc.last_column
551
+ },
552
+ yytext: this.yytext,
553
+ match: this.match,
554
+ matches: this.matches,
555
+ matched: this.matched,
556
+ yyleng: this.yyleng,
557
+ offset: this.offset,
558
+ _more: this._more,
559
+ _input: this._input,
560
+ yy: this.yy,
561
+ conditionStack: this.conditionStack.slice(0),
562
+ done: this.done
563
+ };
564
+ if (this.options.ranges) {
565
+ backup.yylloc.range = this.yylloc.range.slice(0);
566
+ }
567
+ }
568
+ lines = match[0].match(/(?:\r\n?|\n).*/g);
569
+ if (lines) {
570
+ this.yylineno += lines.length;
571
+ }
572
+ this.yylloc = {
573
+ first_line: this.yylloc.last_line,
574
+ last_line: this.yylineno + 1,
575
+ first_column: this.yylloc.last_column,
576
+ last_column: lines ? lines[lines.length - 1].length - lines[lines.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + match[0].length
577
+ };
578
+ this.yytext += match[0];
579
+ this.match += match[0];
580
+ this.matches = match;
581
+ this.yyleng = this.yytext.length;
582
+ if (this.options.ranges) {
583
+ this.yylloc.range = [this.offset, this.offset += this.yyleng];
584
+ }
585
+ this._more = false;
586
+ this._backtrack = false;
587
+ this._input = this._input.slice(match[0].length);
588
+ this.matched += match[0];
589
+ token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);
590
+ if (this.done && this._input) {
591
+ this.done = false;
592
+ }
593
+ if (token) {
594
+ return token;
595
+ } else if (this._backtrack) {
596
+ for (var k in backup) {
597
+ this[k] = backup[k];
598
+ }
599
+ return false;
600
+ }
601
+ return false;
602
+ }, "test_match"),
603
+ // return next match in input
604
+ next: /* @__PURE__ */ __name(function() {
605
+ if (this.done) {
606
+ return this.EOF;
607
+ }
608
+ if (!this._input) {
609
+ this.done = true;
610
+ }
611
+ var token, match, tempMatch, index;
612
+ if (!this._more) {
613
+ this.yytext = "";
614
+ this.match = "";
615
+ }
616
+ var rules = this._currentRules();
617
+ for (var i = 0; i < rules.length; i++) {
618
+ tempMatch = this._input.match(this.rules[rules[i]]);
619
+ if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {
620
+ match = tempMatch;
621
+ index = i;
622
+ if (this.options.backtrack_lexer) {
623
+ token = this.test_match(tempMatch, rules[i]);
624
+ if (token !== false) {
625
+ return token;
626
+ } else if (this._backtrack) {
627
+ match = false;
628
+ continue;
629
+ } else {
630
+ return false;
631
+ }
632
+ } else if (!this.options.flex) {
633
+ break;
634
+ }
635
+ }
636
+ }
637
+ if (match) {
638
+ token = this.test_match(match, rules[index]);
639
+ if (token !== false) {
640
+ return token;
641
+ }
642
+ return false;
643
+ }
644
+ if (this._input === "") {
645
+ return this.EOF;
646
+ } else {
647
+ return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
648
+ text: "",
649
+ token: null,
650
+ line: this.yylineno
651
+ });
652
+ }
653
+ }, "next"),
654
+ // return next match that has a token
655
+ lex: /* @__PURE__ */ __name(function lex() {
656
+ var r = this.next();
657
+ if (r) {
658
+ return r;
659
+ } else {
660
+ return this.lex();
661
+ }
662
+ }, "lex"),
663
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
664
+ begin: /* @__PURE__ */ __name(function begin(condition) {
665
+ this.conditionStack.push(condition);
666
+ }, "begin"),
667
+ // pop the previously active lexer condition state off the condition stack
668
+ popState: /* @__PURE__ */ __name(function popState() {
669
+ var n = this.conditionStack.length - 1;
670
+ if (n > 0) {
671
+ return this.conditionStack.pop();
672
+ } else {
673
+ return this.conditionStack[0];
674
+ }
675
+ }, "popState"),
676
+ // produce the lexer rule set which is active for the currently active lexer condition state
677
+ _currentRules: /* @__PURE__ */ __name(function _currentRules() {
678
+ if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {
679
+ return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;
680
+ } else {
681
+ return this.conditions["INITIAL"].rules;
682
+ }
683
+ }, "_currentRules"),
684
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
685
+ topState: /* @__PURE__ */ __name(function topState(n) {
686
+ n = this.conditionStack.length - 1 - Math.abs(n || 0);
687
+ if (n >= 0) {
688
+ return this.conditionStack[n];
689
+ } else {
690
+ return "INITIAL";
691
+ }
692
+ }, "topState"),
693
+ // alias for begin(condition)
694
+ pushState: /* @__PURE__ */ __name(function pushState(condition) {
695
+ this.begin(condition);
696
+ }, "pushState"),
697
+ // return the number of states currently on the stack
698
+ stateStackSize: /* @__PURE__ */ __name(function stateStackSize() {
699
+ return this.conditionStack.length;
700
+ }, "stateStackSize"),
701
+ options: { "case-insensitive": true },
702
+ performAction: /* @__PURE__ */ __name(function anonymous(yy, yy_, $avoiding_name_collisions, YY_START) {
703
+ switch ($avoiding_name_collisions) {
704
+ case 0:
705
+ return 5;
706
+ case 1:
707
+ break;
708
+ case 2:
709
+ break;
710
+ case 3:
711
+ break;
712
+ case 4:
713
+ break;
714
+ case 5:
715
+ break;
716
+ case 6:
717
+ return 19;
718
+ case 7:
719
+ this.begin("CONFIG");
720
+ return 73;
721
+ case 8:
722
+ return 74;
723
+ case 9:
724
+ this.popState();
725
+ this.popState();
726
+ return 75;
727
+ case 10:
728
+ yy_.yytext = yy_.yytext.trim();
729
+ return 71;
730
+ case 11:
731
+ yy_.yytext = yy_.yytext.trim();
732
+ this.begin("ALIAS");
733
+ return 71;
734
+ case 12:
735
+ this.begin("LINE");
736
+ return 14;
737
+ case 13:
738
+ this.begin("ID");
739
+ return 50;
740
+ case 14:
741
+ this.begin("ID");
742
+ return 52;
743
+ case 15:
744
+ return 13;
745
+ case 16:
746
+ this.begin("ID");
747
+ return 53;
748
+ case 17:
749
+ yy_.yytext = yy_.yytext.trim();
750
+ this.begin("ALIAS");
751
+ return 71;
752
+ case 18:
753
+ this.popState();
754
+ this.popState();
755
+ this.begin("LINE");
756
+ return 51;
757
+ case 19:
758
+ this.popState();
759
+ this.popState();
760
+ return 5;
761
+ case 20:
762
+ this.begin("LINE");
763
+ return 36;
764
+ case 21:
765
+ this.begin("LINE");
766
+ return 37;
767
+ case 22:
768
+ this.begin("LINE");
769
+ return 38;
770
+ case 23:
771
+ this.begin("LINE");
772
+ return 39;
773
+ case 24:
774
+ this.begin("LINE");
775
+ return 49;
776
+ case 25:
777
+ this.begin("LINE");
778
+ return 41;
779
+ case 26:
780
+ this.begin("LINE");
781
+ return 43;
782
+ case 27:
783
+ this.begin("LINE");
784
+ return 48;
785
+ case 28:
786
+ this.begin("LINE");
787
+ return 44;
788
+ case 29:
789
+ this.begin("LINE");
790
+ return 47;
791
+ case 30:
792
+ this.begin("LINE");
793
+ return 46;
794
+ case 31:
795
+ this.popState();
796
+ return 15;
797
+ case 32:
798
+ return 16;
799
+ case 33:
800
+ return 66;
801
+ case 34:
802
+ return 67;
803
+ case 35:
804
+ return 60;
805
+ case 36:
806
+ return 61;
807
+ case 37:
808
+ return 62;
809
+ case 38:
810
+ return 63;
811
+ case 39:
812
+ return 58;
813
+ case 40:
814
+ return 55;
815
+ case 41:
816
+ this.begin("ID");
817
+ return 21;
818
+ case 42:
819
+ this.begin("ID");
820
+ return 23;
821
+ case 43:
822
+ return 29;
823
+ case 44:
824
+ return 30;
825
+ case 45:
826
+ this.begin("acc_title");
827
+ return 31;
828
+ case 46:
829
+ this.popState();
830
+ return "acc_title_value";
831
+ case 47:
832
+ this.begin("acc_descr");
833
+ return 33;
834
+ case 48:
835
+ this.popState();
836
+ return "acc_descr_value";
837
+ case 49:
838
+ this.begin("acc_descr_multiline");
839
+ break;
840
+ case 50:
841
+ this.popState();
842
+ break;
843
+ case 51:
844
+ return "acc_descr_multiline_value";
845
+ case 52:
846
+ return 6;
847
+ case 53:
848
+ return 18;
849
+ case 54:
850
+ return 20;
851
+ case 55:
852
+ return 65;
853
+ case 56:
854
+ return 5;
855
+ case 57:
856
+ yy_.yytext = yy_.yytext.trim();
857
+ return 71;
858
+ case 58:
859
+ return 78;
860
+ case 59:
861
+ return 79;
862
+ case 60:
863
+ return 80;
864
+ case 61:
865
+ return 81;
866
+ case 62:
867
+ return 76;
868
+ case 63:
869
+ return 77;
870
+ case 64:
871
+ return 82;
872
+ case 65:
873
+ return 83;
874
+ case 66:
875
+ return 84;
876
+ case 67:
877
+ return 85;
878
+ case 68:
879
+ return 86;
880
+ case 69:
881
+ return 86;
882
+ case 70:
883
+ return 69;
884
+ case 71:
885
+ return 70;
886
+ case 72:
887
+ return 5;
888
+ case 73:
889
+ return "INVALID";
890
+ }
891
+ }, "anonymous"),
892
+ rules: [/^(?:[\n]+)/i, /^(?:\s+)/i, /^(?:((?!\n)\s)+)/i, /^(?:#[^\n]*)/i, /^(?:%(?!\{)[^\n]*)/i, /^(?:[^\}]%%[^\n]*)/i, /^(?:[0-9]+(?=[ \n]+))/i, /^(?:@\{)/i, /^(?:[^\}]+)/i, /^(?:\})/i, /^(?:[^\<->\->:\n,;@\s]+(?=@\{))/i, /^(?:[^\<->\->:\n,;@]+?([\-]*[^\<->\->:\n,;@]+?)*?(?=((?!\n)\s)+as(?!\n)\s|[#\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, /^(?:.)/i],
893
+ conditions: { "acc_descr_multiline": { "rules": [50, 51], "inclusive": false }, "acc_descr": { "rules": [48], "inclusive": false }, "acc_title": { "rules": [46], "inclusive": false }, "ID": { "rules": [2, 3, 7, 10, 11, 17], "inclusive": false }, "ALIAS": { "rules": [2, 3, 18, 19], "inclusive": false }, "LINE": { "rules": [2, 3, 31], "inclusive": false }, "CONFIG": { "rules": [8, 9], "inclusive": false }, "CONFIG_DATA": { "rules": [], "inclusive": false }, "INITIAL": { "rules": [0, 1, 3, 4, 5, 6, 12, 13, 14, 15, 16, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 47, 49, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73], "inclusive": true } }
894
+ };
895
+ return lexer2;
896
+ })();
897
+ parser2.lexer = lexer;
898
+ function Parser() {
899
+ this.yy = {};
900
+ }
901
+ __name(Parser, "Parser");
902
+ Parser.prototype = parser2;
903
+ parser2.Parser = Parser;
904
+ return new Parser();
905
+ })();
906
+ parser.parser = parser;
907
+ var sequenceDiagram_default = parser;
908
+
909
+ // src/diagrams/sequence/sequenceDb.ts
910
+ var LINETYPE = {
911
+ SOLID: 0,
912
+ DOTTED: 1,
913
+ NOTE: 2,
914
+ SOLID_CROSS: 3,
915
+ DOTTED_CROSS: 4,
916
+ SOLID_OPEN: 5,
917
+ DOTTED_OPEN: 6,
918
+ LOOP_START: 10,
919
+ LOOP_END: 11,
920
+ ALT_START: 12,
921
+ ALT_ELSE: 13,
922
+ ALT_END: 14,
923
+ OPT_START: 15,
924
+ OPT_END: 16,
925
+ ACTIVE_START: 17,
926
+ ACTIVE_END: 18,
927
+ PAR_START: 19,
928
+ PAR_AND: 20,
929
+ PAR_END: 21,
930
+ RECT_START: 22,
931
+ RECT_END: 23,
932
+ SOLID_POINT: 24,
933
+ DOTTED_POINT: 25,
934
+ AUTONUMBER: 26,
935
+ CRITICAL_START: 27,
936
+ CRITICAL_OPTION: 28,
937
+ CRITICAL_END: 29,
938
+ BREAK_START: 30,
939
+ BREAK_END: 31,
940
+ PAR_OVER_START: 32,
941
+ BIDIRECTIONAL_SOLID: 33,
942
+ BIDIRECTIONAL_DOTTED: 34
943
+ };
944
+ var ARROWTYPE = {
945
+ FILLED: 0,
946
+ OPEN: 1
947
+ };
948
+ var PLACEMENT = {
949
+ LEFTOF: 0,
950
+ RIGHTOF: 1,
951
+ OVER: 2
952
+ };
953
+ var PARTICIPANT_TYPE = {
954
+ ACTOR: "actor",
955
+ CONTROL: "control",
956
+ DATABASE: "database",
957
+ ENTITY: "entity"};
958
+ var SequenceDB = class {
959
+ constructor() {
960
+ this.state = new ImperativeState(() => ({
961
+ prevActor: void 0,
962
+ actors: /* @__PURE__ */ new Map(),
963
+ createdActors: /* @__PURE__ */ new Map(),
964
+ destroyedActors: /* @__PURE__ */ new Map(),
965
+ boxes: [],
966
+ messages: [],
967
+ notes: [],
968
+ sequenceNumbersEnabled: false,
969
+ wrapEnabled: void 0,
970
+ currentBox: void 0,
971
+ lastCreated: void 0,
972
+ lastDestroyed: void 0
973
+ }));
974
+ this.setAccTitle = setAccTitle;
975
+ this.setAccDescription = setAccDescription;
976
+ this.setDiagramTitle = setDiagramTitle;
977
+ this.getAccTitle = getAccTitle;
978
+ this.getAccDescription = getAccDescription;
979
+ this.getDiagramTitle = getDiagramTitle;
980
+ this.apply = this.apply.bind(this);
981
+ this.parseBoxData = this.parseBoxData.bind(this);
982
+ this.parseMessage = this.parseMessage.bind(this);
983
+ this.clear();
984
+ this.setWrap(getConfig2().wrap);
985
+ this.LINETYPE = LINETYPE;
986
+ this.ARROWTYPE = ARROWTYPE;
987
+ this.PLACEMENT = PLACEMENT;
988
+ }
989
+ static {
990
+ __name(this, "SequenceDB");
991
+ }
992
+ addBox(data) {
993
+ this.state.records.boxes.push({
994
+ name: data.text,
995
+ wrap: data.wrap ?? this.autoWrap(),
996
+ fill: data.color,
997
+ actorKeys: []
998
+ });
999
+ this.state.records.currentBox = this.state.records.boxes.slice(-1)[0];
1000
+ }
1001
+ addActor(id, name, description, type, metadata) {
1002
+ let assignedBox = this.state.records.currentBox;
1003
+ let doc;
1004
+ if (metadata !== void 0) {
1005
+ let yamlData;
1006
+ if (!metadata.includes("\n")) {
1007
+ yamlData = "{\n" + metadata + "\n}";
1008
+ } else {
1009
+ yamlData = metadata + "\n";
1010
+ }
1011
+ doc = load(yamlData, { schema: JSON_SCHEMA });
1012
+ }
1013
+ type = doc?.type ?? type;
1014
+ const old = this.state.records.actors.get(id);
1015
+ if (old) {
1016
+ if (this.state.records.currentBox && old.box && this.state.records.currentBox !== old.box) {
1017
+ throw new Error(
1018
+ `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.`
1019
+ );
1020
+ }
1021
+ assignedBox = old.box ? old.box : this.state.records.currentBox;
1022
+ old.box = assignedBox;
1023
+ if (old && name === old.name && description == null) {
1024
+ return;
1025
+ }
1026
+ }
1027
+ if (description?.text == null) {
1028
+ description = { text: name, type };
1029
+ }
1030
+ if (type == null || description.text == null) {
1031
+ description = { text: name, type };
1032
+ }
1033
+ this.state.records.actors.set(id, {
1034
+ box: assignedBox,
1035
+ name,
1036
+ description: description.text,
1037
+ wrap: description.wrap ?? this.autoWrap(),
1038
+ prevActor: this.state.records.prevActor,
1039
+ links: {},
1040
+ properties: {},
1041
+ actorCnt: null,
1042
+ rectData: null,
1043
+ type: type ?? "participant"
1044
+ });
1045
+ if (this.state.records.prevActor) {
1046
+ const prevActorInRecords = this.state.records.actors.get(this.state.records.prevActor);
1047
+ if (prevActorInRecords) {
1048
+ prevActorInRecords.nextActor = id;
1049
+ }
1050
+ }
1051
+ if (this.state.records.currentBox) {
1052
+ this.state.records.currentBox.actorKeys.push(id);
1053
+ }
1054
+ this.state.records.prevActor = id;
1055
+ }
1056
+ activationCount(part) {
1057
+ let i;
1058
+ let count = 0;
1059
+ if (!part) {
1060
+ return 0;
1061
+ }
1062
+ for (i = 0; i < this.state.records.messages.length; i++) {
1063
+ if (this.state.records.messages[i].type === this.LINETYPE.ACTIVE_START && this.state.records.messages[i].from === part) {
1064
+ count++;
1065
+ }
1066
+ if (this.state.records.messages[i].type === this.LINETYPE.ACTIVE_END && this.state.records.messages[i].from === part) {
1067
+ count--;
1068
+ }
1069
+ }
1070
+ return count;
1071
+ }
1072
+ addMessage(idFrom, idTo, message, answer) {
1073
+ this.state.records.messages.push({
1074
+ id: this.state.records.messages.length.toString(),
1075
+ from: idFrom,
1076
+ to: idTo,
1077
+ message: message.text,
1078
+ wrap: message.wrap ?? this.autoWrap(),
1079
+ answer
1080
+ });
1081
+ }
1082
+ addSignal(idFrom, idTo, message, messageType, activate = false) {
1083
+ if (messageType === this.LINETYPE.ACTIVE_END) {
1084
+ const cnt = this.activationCount(idFrom ?? "");
1085
+ if (cnt < 1) {
1086
+ const error = new Error("Trying to inactivate an inactive participant (" + idFrom + ")");
1087
+ error.hash = {
1088
+ text: "->>-",
1089
+ token: "->>-",
1090
+ line: "1",
1091
+ loc: { first_line: 1, last_line: 1, first_column: 1, last_column: 1 },
1092
+ expected: ["'ACTIVE_PARTICIPANT'"]
1093
+ };
1094
+ throw error;
1095
+ }
1096
+ }
1097
+ this.state.records.messages.push({
1098
+ id: this.state.records.messages.length.toString(),
1099
+ from: idFrom,
1100
+ to: idTo,
1101
+ message: message?.text ?? "",
1102
+ wrap: message?.wrap ?? this.autoWrap(),
1103
+ type: messageType,
1104
+ activate
1105
+ });
1106
+ return true;
1107
+ }
1108
+ hasAtLeastOneBox() {
1109
+ return this.state.records.boxes.length > 0;
1110
+ }
1111
+ hasAtLeastOneBoxWithTitle() {
1112
+ return this.state.records.boxes.some((b) => b.name);
1113
+ }
1114
+ getMessages() {
1115
+ return this.state.records.messages;
1116
+ }
1117
+ getBoxes() {
1118
+ return this.state.records.boxes;
1119
+ }
1120
+ getActors() {
1121
+ return this.state.records.actors;
1122
+ }
1123
+ getCreatedActors() {
1124
+ return this.state.records.createdActors;
1125
+ }
1126
+ getDestroyedActors() {
1127
+ return this.state.records.destroyedActors;
1128
+ }
1129
+ getActor(id) {
1130
+ return this.state.records.actors.get(id);
1131
+ }
1132
+ getActorKeys() {
1133
+ return [...this.state.records.actors.keys()];
1134
+ }
1135
+ enableSequenceNumbers() {
1136
+ this.state.records.sequenceNumbersEnabled = true;
1137
+ }
1138
+ disableSequenceNumbers() {
1139
+ this.state.records.sequenceNumbersEnabled = false;
1140
+ }
1141
+ showSequenceNumbers() {
1142
+ return this.state.records.sequenceNumbersEnabled;
1143
+ }
1144
+ setWrap(wrapSetting) {
1145
+ this.state.records.wrapEnabled = wrapSetting;
1146
+ }
1147
+ extractWrap(text) {
1148
+ if (text === void 0) {
1149
+ return {};
1150
+ }
1151
+ text = text.trim();
1152
+ const wrap = /^:?wrap:/.exec(text) !== null ? true : /^:?nowrap:/.exec(text) !== null ? false : void 0;
1153
+ const cleanedText = (wrap === void 0 ? text : text.replace(/^:?(?:no)?wrap:/, "")).trim();
1154
+ return { cleanedText, wrap };
1155
+ }
1156
+ autoWrap() {
1157
+ if (this.state.records.wrapEnabled !== void 0) {
1158
+ return this.state.records.wrapEnabled;
1159
+ }
1160
+ return getConfig2().sequence?.wrap ?? false;
1161
+ }
1162
+ clear() {
1163
+ this.state.reset();
1164
+ clear();
1165
+ }
1166
+ parseMessage(str) {
1167
+ const trimmedStr = str.trim();
1168
+ const { wrap, cleanedText } = this.extractWrap(trimmedStr);
1169
+ const message = {
1170
+ text: cleanedText,
1171
+ wrap
1172
+ };
1173
+ log.debug(`parseMessage: ${JSON.stringify(message)}`);
1174
+ return message;
1175
+ }
1176
+ // We expect the box statement to be color first then description
1177
+ // 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
1178
+ // We extract first segment as color, the rest of the line is considered as text
1179
+ parseBoxData(str) {
1180
+ const match = /^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/.exec(str);
1181
+ let color = match?.[1] ? match[1].trim() : "transparent";
1182
+ let title = match?.[2] ? match[2].trim() : void 0;
1183
+ if (window?.CSS) {
1184
+ if (!window.CSS.supports("color", color)) {
1185
+ color = "transparent";
1186
+ title = str.trim();
1187
+ }
1188
+ } else {
1189
+ const style = new Option().style;
1190
+ style.color = color;
1191
+ if (style.color !== color) {
1192
+ color = "transparent";
1193
+ title = str.trim();
1194
+ }
1195
+ }
1196
+ const { wrap, cleanedText } = this.extractWrap(title);
1197
+ return {
1198
+ text: cleanedText ? sanitizeText(cleanedText, getConfig2()) : void 0,
1199
+ color,
1200
+ wrap
1201
+ };
1202
+ }
1203
+ addNote(actor, placement, message) {
1204
+ const note = {
1205
+ actor,
1206
+ placement,
1207
+ message: message.text,
1208
+ wrap: message.wrap ?? this.autoWrap()
1209
+ };
1210
+ const actors = [].concat(actor, actor);
1211
+ this.state.records.notes.push(note);
1212
+ this.state.records.messages.push({
1213
+ id: this.state.records.messages.length.toString(),
1214
+ from: actors[0],
1215
+ to: actors[1],
1216
+ message: message.text,
1217
+ wrap: message.wrap ?? this.autoWrap(),
1218
+ type: this.LINETYPE.NOTE,
1219
+ placement
1220
+ });
1221
+ }
1222
+ addLinks(actorId, text) {
1223
+ const actor = this.getActor(actorId);
1224
+ try {
1225
+ let sanitizedText = sanitizeText(text.text, getConfig2());
1226
+ sanitizedText = sanitizedText.replace(/&equals;/g, "=");
1227
+ sanitizedText = sanitizedText.replace(/&amp;/g, "&");
1228
+ const links = JSON.parse(sanitizedText);
1229
+ this.insertLinks(actor, links);
1230
+ } catch (e) {
1231
+ log.error("error while parsing actor link text", e);
1232
+ }
1233
+ }
1234
+ addALink(actorId, text) {
1235
+ const actor = this.getActor(actorId);
1236
+ try {
1237
+ const links = {};
1238
+ let sanitizedText = sanitizeText(text.text, getConfig2());
1239
+ const sep = sanitizedText.indexOf("@");
1240
+ sanitizedText = sanitizedText.replace(/&equals;/g, "=");
1241
+ sanitizedText = sanitizedText.replace(/&amp;/g, "&");
1242
+ const label = sanitizedText.slice(0, sep - 1).trim();
1243
+ const link = sanitizedText.slice(sep + 1).trim();
1244
+ links[label] = link;
1245
+ this.insertLinks(actor, links);
1246
+ } catch (e) {
1247
+ log.error("error while parsing actor link text", e);
1248
+ }
1249
+ }
1250
+ insertLinks(actor, links) {
1251
+ if (actor.links == null) {
1252
+ actor.links = links;
1253
+ } else {
1254
+ for (const key in links) {
1255
+ actor.links[key] = links[key];
1256
+ }
1257
+ }
1258
+ }
1259
+ addProperties(actorId, text) {
1260
+ const actor = this.getActor(actorId);
1261
+ try {
1262
+ const sanitizedText = sanitizeText(text.text, getConfig2());
1263
+ const properties = JSON.parse(sanitizedText);
1264
+ this.insertProperties(actor, properties);
1265
+ } catch (e) {
1266
+ log.error("error while parsing actor properties text", e);
1267
+ }
1268
+ }
1269
+ insertProperties(actor, properties) {
1270
+ if (actor.properties == null) {
1271
+ actor.properties = properties;
1272
+ } else {
1273
+ for (const key in properties) {
1274
+ actor.properties[key] = properties[key];
1275
+ }
1276
+ }
1277
+ }
1278
+ boxEnd() {
1279
+ this.state.records.currentBox = void 0;
1280
+ }
1281
+ addDetails(actorId, text) {
1282
+ const actor = this.getActor(actorId);
1283
+ const elem = document.getElementById(text.text);
1284
+ try {
1285
+ const text2 = elem.innerHTML;
1286
+ const details = JSON.parse(text2);
1287
+ if (details.properties) {
1288
+ this.insertProperties(actor, details.properties);
1289
+ }
1290
+ if (details.links) {
1291
+ this.insertLinks(actor, details.links);
1292
+ }
1293
+ } catch (e) {
1294
+ log.error("error while parsing actor details text", e);
1295
+ }
1296
+ }
1297
+ getActorProperty(actor, key) {
1298
+ if (actor?.properties !== void 0) {
1299
+ return actor.properties[key];
1300
+ }
1301
+ return void 0;
1302
+ }
1303
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-redundant-type-constituents
1304
+ apply(param) {
1305
+ if (Array.isArray(param)) {
1306
+ param.forEach((item) => {
1307
+ this.apply(item);
1308
+ });
1309
+ } else {
1310
+ switch (param.type) {
1311
+ case "sequenceIndex":
1312
+ this.state.records.messages.push({
1313
+ id: this.state.records.messages.length.toString(),
1314
+ from: void 0,
1315
+ to: void 0,
1316
+ message: {
1317
+ start: param.sequenceIndex,
1318
+ step: param.sequenceIndexStep,
1319
+ visible: param.sequenceVisible
1320
+ },
1321
+ wrap: false,
1322
+ type: param.signalType
1323
+ });
1324
+ break;
1325
+ case "addParticipant":
1326
+ this.addActor(param.actor, param.actor, param.description, param.draw, param.config);
1327
+ break;
1328
+ case "createParticipant":
1329
+ if (this.state.records.actors.has(param.actor)) {
1330
+ throw new Error(
1331
+ "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"
1332
+ );
1333
+ }
1334
+ this.state.records.lastCreated = param.actor;
1335
+ this.addActor(param.actor, param.actor, param.description, param.draw, param.config);
1336
+ this.state.records.createdActors.set(param.actor, this.state.records.messages.length);
1337
+ break;
1338
+ case "destroyParticipant":
1339
+ this.state.records.lastDestroyed = param.actor;
1340
+ this.state.records.destroyedActors.set(param.actor, this.state.records.messages.length);
1341
+ break;
1342
+ case "activeStart":
1343
+ this.addSignal(param.actor, void 0, void 0, param.signalType);
1344
+ break;
1345
+ case "activeEnd":
1346
+ this.addSignal(param.actor, void 0, void 0, param.signalType);
1347
+ break;
1348
+ case "addNote":
1349
+ this.addNote(param.actor, param.placement, param.text);
1350
+ break;
1351
+ case "addLinks":
1352
+ this.addLinks(param.actor, param.text);
1353
+ break;
1354
+ case "addALink":
1355
+ this.addALink(param.actor, param.text);
1356
+ break;
1357
+ case "addProperties":
1358
+ this.addProperties(param.actor, param.text);
1359
+ break;
1360
+ case "addDetails":
1361
+ this.addDetails(param.actor, param.text);
1362
+ break;
1363
+ case "addMessage":
1364
+ if (this.state.records.lastCreated) {
1365
+ if (param.to !== this.state.records.lastCreated) {
1366
+ throw new Error(
1367
+ "The created participant " + this.state.records.lastCreated.name + " does not have an associated creating message after its declaration. Please check the sequence diagram."
1368
+ );
1369
+ } else {
1370
+ this.state.records.lastCreated = void 0;
1371
+ }
1372
+ } else if (this.state.records.lastDestroyed) {
1373
+ if (param.to !== this.state.records.lastDestroyed && param.from !== this.state.records.lastDestroyed) {
1374
+ throw new Error(
1375
+ "The destroyed participant " + this.state.records.lastDestroyed.name + " does not have an associated destroying message after its declaration. Please check the sequence diagram."
1376
+ );
1377
+ } else {
1378
+ this.state.records.lastDestroyed = void 0;
1379
+ }
1380
+ }
1381
+ this.addSignal(param.from, param.to, param.msg, param.signalType, param.activate);
1382
+ break;
1383
+ case "boxStart":
1384
+ this.addBox(param.boxData);
1385
+ break;
1386
+ case "boxEnd":
1387
+ this.boxEnd();
1388
+ break;
1389
+ case "loopStart":
1390
+ this.addSignal(void 0, void 0, param.loopText, param.signalType);
1391
+ break;
1392
+ case "loopEnd":
1393
+ this.addSignal(void 0, void 0, void 0, param.signalType);
1394
+ break;
1395
+ case "rectStart":
1396
+ this.addSignal(void 0, void 0, param.color, param.signalType);
1397
+ break;
1398
+ case "rectEnd":
1399
+ this.addSignal(void 0, void 0, void 0, param.signalType);
1400
+ break;
1401
+ case "optStart":
1402
+ this.addSignal(void 0, void 0, param.optText, param.signalType);
1403
+ break;
1404
+ case "optEnd":
1405
+ this.addSignal(void 0, void 0, void 0, param.signalType);
1406
+ break;
1407
+ case "altStart":
1408
+ this.addSignal(void 0, void 0, param.altText, param.signalType);
1409
+ break;
1410
+ case "else":
1411
+ this.addSignal(void 0, void 0, param.altText, param.signalType);
1412
+ break;
1413
+ case "altEnd":
1414
+ this.addSignal(void 0, void 0, void 0, param.signalType);
1415
+ break;
1416
+ case "setAccTitle":
1417
+ setAccTitle(param.text);
1418
+ break;
1419
+ case "parStart":
1420
+ this.addSignal(void 0, void 0, param.parText, param.signalType);
1421
+ break;
1422
+ case "and":
1423
+ this.addSignal(void 0, void 0, param.parText, param.signalType);
1424
+ break;
1425
+ case "parEnd":
1426
+ this.addSignal(void 0, void 0, void 0, param.signalType);
1427
+ break;
1428
+ case "criticalStart":
1429
+ this.addSignal(void 0, void 0, param.criticalText, param.signalType);
1430
+ break;
1431
+ case "option":
1432
+ this.addSignal(void 0, void 0, param.optionText, param.signalType);
1433
+ break;
1434
+ case "criticalEnd":
1435
+ this.addSignal(void 0, void 0, void 0, param.signalType);
1436
+ break;
1437
+ case "breakStart":
1438
+ this.addSignal(void 0, void 0, param.breakText, param.signalType);
1439
+ break;
1440
+ case "breakEnd":
1441
+ this.addSignal(void 0, void 0, void 0, param.signalType);
1442
+ break;
1443
+ }
1444
+ }
1445
+ }
1446
+ getConfig() {
1447
+ return getConfig2().sequence;
1448
+ }
1449
+ };
1450
+
1451
+ // src/diagrams/sequence/styles.js
1452
+ var getStyles = /* @__PURE__ */ __name((options) => `.actor {
1453
+ stroke: ${options.actorBorder};
1454
+ fill: ${options.actorBkg};
1455
+ }
1456
+
1457
+ text.actor > tspan {
1458
+ fill: ${options.actorTextColor};
1459
+ stroke: none;
1460
+ }
1461
+
1462
+ .actor-line {
1463
+ stroke: ${options.actorLineColor};
1464
+ }
1465
+
1466
+ .innerArc {
1467
+ stroke-width: 1.5;
1468
+ stroke-dasharray: none;
1469
+ }
1470
+
1471
+ .messageLine0 {
1472
+ stroke-width: 1.5;
1473
+ stroke-dasharray: none;
1474
+ stroke: ${options.signalColor};
1475
+ }
1476
+
1477
+ .messageLine1 {
1478
+ stroke-width: 1.5;
1479
+ stroke-dasharray: 2, 2;
1480
+ stroke: ${options.signalColor};
1481
+ }
1482
+
1483
+ #arrowhead path {
1484
+ fill: ${options.signalColor};
1485
+ stroke: ${options.signalColor};
1486
+ }
1487
+
1488
+ .sequenceNumber {
1489
+ fill: ${options.sequenceNumberColor};
1490
+ }
1491
+
1492
+ #sequencenumber {
1493
+ fill: ${options.signalColor};
1494
+ }
1495
+
1496
+ #crosshead path {
1497
+ fill: ${options.signalColor};
1498
+ stroke: ${options.signalColor};
1499
+ }
1500
+
1501
+ .messageText {
1502
+ fill: ${options.signalTextColor};
1503
+ stroke: none;
1504
+ }
1505
+
1506
+ .labelBox {
1507
+ stroke: ${options.labelBoxBorderColor};
1508
+ fill: ${options.labelBoxBkgColor};
1509
+ }
1510
+
1511
+ .labelText, .labelText > tspan {
1512
+ fill: ${options.labelTextColor};
1513
+ stroke: none;
1514
+ }
1515
+
1516
+ .loopText, .loopText > tspan {
1517
+ fill: ${options.loopTextColor};
1518
+ stroke: none;
1519
+ }
1520
+
1521
+ .loopLine {
1522
+ stroke-width: 2px;
1523
+ stroke-dasharray: 2, 2;
1524
+ stroke: ${options.labelBoxBorderColor};
1525
+ fill: ${options.labelBoxBorderColor};
1526
+ }
1527
+
1528
+ .note {
1529
+ //stroke: #decc93;
1530
+ stroke: ${options.noteBorderColor};
1531
+ fill: ${options.noteBkgColor};
1532
+ }
1533
+
1534
+ .noteText, .noteText > tspan {
1535
+ fill: ${options.noteTextColor};
1536
+ stroke: none;
1537
+ }
1538
+
1539
+ .activation0 {
1540
+ fill: ${options.activationBkgColor};
1541
+ stroke: ${options.activationBorderColor};
1542
+ }
1543
+
1544
+ .activation1 {
1545
+ fill: ${options.activationBkgColor};
1546
+ stroke: ${options.activationBorderColor};
1547
+ }
1548
+
1549
+ .activation2 {
1550
+ fill: ${options.activationBkgColor};
1551
+ stroke: ${options.activationBorderColor};
1552
+ }
1553
+
1554
+ .actorPopupMenu {
1555
+ position: absolute;
1556
+ }
1557
+
1558
+ .actorPopupMenuPanel {
1559
+ position: absolute;
1560
+ fill: ${options.actorBkg};
1561
+ box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
1562
+ filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));
1563
+ }
1564
+ .actor-man line {
1565
+ stroke: ${options.actorBorder};
1566
+ fill: ${options.actorBkg};
1567
+ }
1568
+ .actor-man circle, line {
1569
+ stroke: ${options.actorBorder};
1570
+ fill: ${options.actorBkg};
1571
+ stroke-width: 2px;
1572
+ }
1573
+
1574
+ `, "getStyles");
1575
+ var styles_default = getStyles;
1576
+ var ACTOR_TYPE_WIDTH = 18 * 2;
1577
+ var TOP_ACTOR_CLASS = "actor-top";
1578
+ var BOTTOM_ACTOR_CLASS = "actor-bottom";
1579
+ var ACTOR_BOX_CLASS = "actor-box";
1580
+ var ACTOR_MAN_FIGURE_CLASS = "actor-man";
1581
+ var drawRect2 = /* @__PURE__ */ __name(function(elem, rectData) {
1582
+ return drawRect(elem, rectData);
1583
+ }, "drawRect");
1584
+ var drawPopup = /* @__PURE__ */ __name(function(elem, actor, minMenuWidth, textAttrs, forceMenus) {
1585
+ if (actor.links === void 0 || actor.links === null || Object.keys(actor.links).length === 0) {
1586
+ return { height: 0, width: 0 };
1587
+ }
1588
+ const links = actor.links;
1589
+ const actorCnt2 = actor.actorCnt;
1590
+ const rectData = actor.rectData;
1591
+ var displayValue = "none";
1592
+ if (forceMenus) {
1593
+ displayValue = "block !important";
1594
+ }
1595
+ const g = elem.append("g");
1596
+ g.attr("id", "actor" + actorCnt2 + "_popup");
1597
+ g.attr("class", "actorPopupMenu");
1598
+ g.attr("display", displayValue);
1599
+ var actorClass = "";
1600
+ if (rectData.class !== void 0) {
1601
+ actorClass = " " + rectData.class;
1602
+ }
1603
+ let menuWidth = rectData.width > minMenuWidth ? rectData.width : minMenuWidth;
1604
+ const rectElem = g.append("rect");
1605
+ rectElem.attr("class", "actorPopupMenuPanel" + actorClass);
1606
+ rectElem.attr("x", rectData.x);
1607
+ rectElem.attr("y", rectData.height);
1608
+ rectElem.attr("fill", rectData.fill);
1609
+ rectElem.attr("stroke", rectData.stroke);
1610
+ rectElem.attr("width", menuWidth);
1611
+ rectElem.attr("height", rectData.height);
1612
+ rectElem.attr("rx", rectData.rx);
1613
+ rectElem.attr("ry", rectData.ry);
1614
+ if (links != null) {
1615
+ var linkY = 20;
1616
+ for (let key in links) {
1617
+ var linkElem = g.append("a");
1618
+ var sanitizedLink = distExports.sanitizeUrl(links[key]);
1619
+ linkElem.attr("xlink:href", sanitizedLink);
1620
+ linkElem.attr("target", "_blank");
1621
+ _drawMenuItemTextCandidateFunc(textAttrs)(
1622
+ key,
1623
+ linkElem,
1624
+ rectData.x + 10,
1625
+ rectData.height + linkY,
1626
+ menuWidth,
1627
+ 20,
1628
+ { class: "actor" },
1629
+ textAttrs
1630
+ );
1631
+ linkY += 30;
1632
+ }
1633
+ }
1634
+ rectElem.attr("height", linkY);
1635
+ return { height: rectData.height + linkY, width: menuWidth };
1636
+ }, "drawPopup");
1637
+ var popupMenuToggle = /* @__PURE__ */ __name(function(popId) {
1638
+ return "var pu = document.getElementById('" + popId + "'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }";
1639
+ }, "popupMenuToggle");
1640
+ var drawKatex = /* @__PURE__ */ __name(async function(elem, textData, msgModel = null) {
1641
+ let textElem = elem.append("foreignObject");
1642
+ const linesSanitized = await renderKatexSanitized(textData.text, getConfig());
1643
+ const divElem = textElem.append("xhtml:div").attr("style", "width: fit-content;").attr("xmlns", "http://www.w3.org/1999/xhtml").html(linesSanitized);
1644
+ const dim = divElem.node().getBoundingClientRect();
1645
+ textElem.attr("height", Math.round(dim.height)).attr("width", Math.round(dim.width));
1646
+ if (textData.class === "noteText") {
1647
+ const rectElem = elem.node().firstChild;
1648
+ rectElem.setAttribute("height", dim.height + 2 * textData.textMargin);
1649
+ const rectDim = rectElem.getBBox();
1650
+ 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));
1651
+ } else if (msgModel) {
1652
+ let { startx, stopx, starty } = msgModel;
1653
+ if (startx > stopx) {
1654
+ const temp = startx;
1655
+ startx = stopx;
1656
+ stopx = temp;
1657
+ }
1658
+ textElem.attr("x", Math.round(startx + Math.abs(startx - stopx) / 2 - dim.width / 2));
1659
+ if (textData.class === "loopText") {
1660
+ textElem.attr("y", Math.round(starty));
1661
+ } else {
1662
+ textElem.attr("y", Math.round(starty - dim.height));
1663
+ }
1664
+ }
1665
+ return [textElem];
1666
+ }, "drawKatex");
1667
+ var drawText = /* @__PURE__ */ __name(function(elem, textData) {
1668
+ let prevTextHeight = 0;
1669
+ let textHeight = 0;
1670
+ const lines = textData.text.split(common_default.lineBreakRegex);
1671
+ const [_textFontSize, _textFontSizePx] = parseFontSize(textData.fontSize);
1672
+ let textElems = [];
1673
+ let dy = 0;
1674
+ let yfunc = /* @__PURE__ */ __name(() => textData.y, "yfunc");
1675
+ if (textData.valign !== void 0 && textData.textMargin !== void 0 && textData.textMargin > 0) {
1676
+ switch (textData.valign) {
1677
+ case "top":
1678
+ case "start":
1679
+ yfunc = /* @__PURE__ */ __name(() => Math.round(textData.y + textData.textMargin), "yfunc");
1680
+ break;
1681
+ case "middle":
1682
+ case "center":
1683
+ yfunc = /* @__PURE__ */ __name(() => Math.round(textData.y + (prevTextHeight + textHeight + textData.textMargin) / 2), "yfunc");
1684
+ break;
1685
+ case "bottom":
1686
+ case "end":
1687
+ yfunc = /* @__PURE__ */ __name(() => Math.round(
1688
+ textData.y + (prevTextHeight + textHeight + 2 * textData.textMargin) - textData.textMargin
1689
+ ), "yfunc");
1690
+ break;
1691
+ }
1692
+ }
1693
+ if (textData.anchor !== void 0 && textData.textMargin !== void 0 && textData.width !== void 0) {
1694
+ switch (textData.anchor) {
1695
+ case "left":
1696
+ case "start":
1697
+ textData.x = Math.round(textData.x + textData.textMargin);
1698
+ textData.anchor = "start";
1699
+ textData.dominantBaseline = "middle";
1700
+ textData.alignmentBaseline = "middle";
1701
+ break;
1702
+ case "middle":
1703
+ case "center":
1704
+ textData.x = Math.round(textData.x + textData.width / 2);
1705
+ textData.anchor = "middle";
1706
+ textData.dominantBaseline = "middle";
1707
+ textData.alignmentBaseline = "middle";
1708
+ break;
1709
+ case "right":
1710
+ case "end":
1711
+ textData.x = Math.round(textData.x + textData.width - textData.textMargin);
1712
+ textData.anchor = "end";
1713
+ textData.dominantBaseline = "middle";
1714
+ textData.alignmentBaseline = "middle";
1715
+ break;
1716
+ }
1717
+ }
1718
+ for (let [i, line] of lines.entries()) {
1719
+ if (textData.textMargin !== void 0 && textData.textMargin === 0 && _textFontSize !== void 0) {
1720
+ dy = i * _textFontSize;
1721
+ }
1722
+ const textElem = elem.append("text");
1723
+ textElem.attr("x", textData.x);
1724
+ textElem.attr("y", yfunc());
1725
+ if (textData.anchor !== void 0) {
1726
+ textElem.attr("text-anchor", textData.anchor).attr("dominant-baseline", textData.dominantBaseline).attr("alignment-baseline", textData.alignmentBaseline);
1727
+ }
1728
+ if (textData.fontFamily !== void 0) {
1729
+ textElem.style("font-family", textData.fontFamily);
1730
+ }
1731
+ if (_textFontSizePx !== void 0) {
1732
+ textElem.style("font-size", _textFontSizePx);
1733
+ }
1734
+ if (textData.fontWeight !== void 0) {
1735
+ textElem.style("font-weight", textData.fontWeight);
1736
+ }
1737
+ if (textData.fill !== void 0) {
1738
+ textElem.attr("fill", textData.fill);
1739
+ }
1740
+ if (textData.class !== void 0) {
1741
+ textElem.attr("class", textData.class);
1742
+ }
1743
+ if (textData.dy !== void 0) {
1744
+ textElem.attr("dy", textData.dy);
1745
+ } else if (dy !== 0) {
1746
+ textElem.attr("dy", dy);
1747
+ }
1748
+ const text = line || ZERO_WIDTH_SPACE;
1749
+ if (textData.tspan) {
1750
+ const span = textElem.append("tspan");
1751
+ span.attr("x", textData.x);
1752
+ if (textData.fill !== void 0) {
1753
+ span.attr("fill", textData.fill);
1754
+ }
1755
+ span.text(text);
1756
+ } else {
1757
+ textElem.text(text);
1758
+ }
1759
+ if (textData.valign !== void 0 && textData.textMargin !== void 0 && textData.textMargin > 0) {
1760
+ textHeight += (textElem._groups || textElem)[0][0].getBBox().height;
1761
+ prevTextHeight = textHeight;
1762
+ }
1763
+ textElems.push(textElem);
1764
+ }
1765
+ return textElems;
1766
+ }, "drawText");
1767
+ var drawLabel = /* @__PURE__ */ __name(function(elem, txtObject) {
1768
+ function genPoints(x, y, width, height, cut) {
1769
+ return x + "," + y + " " + (x + width) + "," + y + " " + (x + width) + "," + (y + height - cut) + " " + (x + width - cut * 1.2) + "," + (y + height) + " " + x + "," + (y + height);
1770
+ }
1771
+ __name(genPoints, "genPoints");
1772
+ const polygon = elem.append("polygon");
1773
+ polygon.attr("points", genPoints(txtObject.x, txtObject.y, txtObject.width, txtObject.height, 7));
1774
+ polygon.attr("class", "labelBox");
1775
+ txtObject.y = txtObject.y + txtObject.height / 2;
1776
+ drawText(elem, txtObject);
1777
+ return polygon;
1778
+ }, "drawLabel");
1779
+ var actorCnt = -1;
1780
+ var fixLifeLineHeights = /* @__PURE__ */ __name((diagram2, actors, actorKeys, conf2) => {
1781
+ if (!diagram2.select) {
1782
+ return;
1783
+ }
1784
+ actorKeys.forEach((actorKey) => {
1785
+ const actor = actors.get(actorKey);
1786
+ const actorDOM = diagram2.select("#actor" + actor.actorCnt);
1787
+ if (!conf2.mirrorActors && actor.stopy) {
1788
+ actorDOM.attr("y2", actor.stopy + actor.height / 2);
1789
+ } else if (conf2.mirrorActors) {
1790
+ actorDOM.attr("y2", actor.stopy);
1791
+ }
1792
+ });
1793
+ }, "fixLifeLineHeights");
1794
+ var drawActorTypeParticipant = /* @__PURE__ */ __name(function(elem, actor, conf2, isFooter) {
1795
+ const actorY = isFooter ? actor.stopy : actor.starty;
1796
+ const center = actor.x + actor.width / 2;
1797
+ const centerY = actorY + actor.height;
1798
+ const boxplusLineGroup = elem.append("g").lower();
1799
+ var g = boxplusLineGroup;
1800
+ if (!isFooter) {
1801
+ actorCnt++;
1802
+ if (Object.keys(actor.links || {}).length && !conf2.forceMenus) {
1803
+ g.attr("onclick", popupMenuToggle(`actor${actorCnt}_popup`)).attr("cursor", "pointer");
1804
+ }
1805
+ 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);
1806
+ g = boxplusLineGroup.append("g");
1807
+ actor.actorCnt = actorCnt;
1808
+ if (actor.links != null) {
1809
+ g.attr("id", "root-" + actorCnt);
1810
+ }
1811
+ }
1812
+ const rect = getNoteRect();
1813
+ var cssclass = "actor";
1814
+ if (actor.properties?.class) {
1815
+ cssclass = actor.properties.class;
1816
+ } else {
1817
+ rect.fill = "#eaeaea";
1818
+ }
1819
+ if (isFooter) {
1820
+ cssclass += ` ${BOTTOM_ACTOR_CLASS}`;
1821
+ } else {
1822
+ cssclass += ` ${TOP_ACTOR_CLASS}`;
1823
+ }
1824
+ rect.x = actor.x;
1825
+ rect.y = actorY;
1826
+ rect.width = actor.width;
1827
+ rect.height = actor.height;
1828
+ rect.class = cssclass;
1829
+ rect.rx = 3;
1830
+ rect.ry = 3;
1831
+ rect.name = actor.name;
1832
+ const rectElem = drawRect2(g, rect);
1833
+ actor.rectData = rect;
1834
+ if (actor.properties?.icon) {
1835
+ const iconSrc = actor.properties.icon.trim();
1836
+ if (iconSrc.charAt(0) === "@") {
1837
+ drawEmbeddedImage(g, rect.x + rect.width - 20, rect.y + 10, iconSrc.substr(1));
1838
+ } else {
1839
+ drawImage(g, rect.x + rect.width - 20, rect.y + 10, iconSrc);
1840
+ }
1841
+ }
1842
+ _drawTextCandidateFunc(conf2, hasKatex(actor.description))(
1843
+ actor.description,
1844
+ g,
1845
+ rect.x,
1846
+ rect.y,
1847
+ rect.width,
1848
+ rect.height,
1849
+ { class: `actor ${ACTOR_BOX_CLASS}` },
1850
+ conf2
1851
+ );
1852
+ let height = actor.height;
1853
+ if (rectElem.node) {
1854
+ const bounds2 = rectElem.node().getBBox();
1855
+ actor.height = bounds2.height;
1856
+ height = bounds2.height;
1857
+ }
1858
+ return height;
1859
+ }, "drawActorTypeParticipant");
1860
+ var drawActorTypeCollections = /* @__PURE__ */ __name(function(elem, actor, conf2, isFooter) {
1861
+ const actorY = isFooter ? actor.stopy : actor.starty;
1862
+ const center = actor.x + actor.width / 2;
1863
+ const centerY = actorY + actor.height;
1864
+ const boxplusLineGroup = elem.append("g").lower();
1865
+ var g = boxplusLineGroup;
1866
+ if (!isFooter) {
1867
+ actorCnt++;
1868
+ if (Object.keys(actor.links || {}).length && !conf2.forceMenus) {
1869
+ g.attr("onclick", popupMenuToggle(`actor${actorCnt}_popup`)).attr("cursor", "pointer");
1870
+ }
1871
+ 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);
1872
+ g = boxplusLineGroup.append("g");
1873
+ actor.actorCnt = actorCnt;
1874
+ if (actor.links != null) {
1875
+ g.attr("id", "root-" + actorCnt);
1876
+ }
1877
+ }
1878
+ const rect = getNoteRect();
1879
+ var cssclass = "actor";
1880
+ if (actor.properties?.class) {
1881
+ cssclass = actor.properties.class;
1882
+ } else {
1883
+ rect.fill = "#eaeaea";
1884
+ }
1885
+ if (isFooter) {
1886
+ cssclass += ` ${BOTTOM_ACTOR_CLASS}`;
1887
+ } else {
1888
+ cssclass += ` ${TOP_ACTOR_CLASS}`;
1889
+ }
1890
+ rect.x = actor.x;
1891
+ rect.y = actorY;
1892
+ rect.width = actor.width;
1893
+ rect.height = actor.height;
1894
+ rect.class = cssclass;
1895
+ rect.name = actor.name;
1896
+ const offset = 6;
1897
+ const shadowRect = {
1898
+ ...rect,
1899
+ x: rect.x + (isFooter ? -offset : -offset),
1900
+ y: rect.y + (isFooter ? +offset : +offset),
1901
+ class: "actor"
1902
+ };
1903
+ const rectElem = drawRect2(g, rect);
1904
+ drawRect2(g, shadowRect);
1905
+ actor.rectData = rect;
1906
+ if (actor.properties?.icon) {
1907
+ const iconSrc = actor.properties.icon.trim();
1908
+ if (iconSrc.charAt(0) === "@") {
1909
+ drawEmbeddedImage(g, rect.x + rect.width - 20, rect.y + 10, iconSrc.substr(1));
1910
+ } else {
1911
+ drawImage(g, rect.x + rect.width - 20, rect.y + 10, iconSrc);
1912
+ }
1913
+ }
1914
+ _drawTextCandidateFunc(conf2, hasKatex(actor.description))(
1915
+ actor.description,
1916
+ g,
1917
+ rect.x - offset,
1918
+ rect.y + offset,
1919
+ rect.width,
1920
+ rect.height,
1921
+ { class: `actor ${ACTOR_BOX_CLASS}` },
1922
+ conf2
1923
+ );
1924
+ let height = actor.height;
1925
+ if (rectElem.node) {
1926
+ const bounds2 = rectElem.node().getBBox();
1927
+ actor.height = bounds2.height;
1928
+ height = bounds2.height;
1929
+ }
1930
+ return height;
1931
+ }, "drawActorTypeCollections");
1932
+ var drawActorTypeQueue = /* @__PURE__ */ __name(function(elem, actor, conf2, isFooter) {
1933
+ const actorY = isFooter ? actor.stopy : actor.starty;
1934
+ const center = actor.x + actor.width / 2;
1935
+ const centerY = actorY + actor.height;
1936
+ const boxplusLineGroup = elem.append("g").lower();
1937
+ let g = boxplusLineGroup;
1938
+ if (!isFooter) {
1939
+ actorCnt++;
1940
+ if (Object.keys(actor.links || {}).length && !conf2.forceMenus) {
1941
+ g.attr("onclick", popupMenuToggle(`actor${actorCnt}_popup`)).attr("cursor", "pointer");
1942
+ }
1943
+ 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);
1944
+ g = boxplusLineGroup.append("g");
1945
+ actor.actorCnt = actorCnt;
1946
+ if (actor.links != null) {
1947
+ g.attr("id", "root-" + actorCnt);
1948
+ }
1949
+ }
1950
+ const rect = getNoteRect();
1951
+ let cssclass = "actor";
1952
+ if (actor.properties?.class) {
1953
+ cssclass = actor.properties.class;
1954
+ } else {
1955
+ rect.fill = "#eaeaea";
1956
+ }
1957
+ if (isFooter) {
1958
+ cssclass += ` ${BOTTOM_ACTOR_CLASS}`;
1959
+ } else {
1960
+ cssclass += ` ${TOP_ACTOR_CLASS}`;
1961
+ }
1962
+ rect.x = actor.x;
1963
+ rect.y = actorY;
1964
+ rect.width = actor.width;
1965
+ rect.height = actor.height;
1966
+ rect.class = cssclass;
1967
+ rect.name = actor.name;
1968
+ const ry = rect.height / 2;
1969
+ const rx = ry / (2.5 + rect.height / 50);
1970
+ const cylinderGroup = g.append("g");
1971
+ const cylinderArc = g.append("g");
1972
+ cylinderGroup.append("path").attr(
1973
+ "d",
1974
+ `M ${rect.x},${rect.y + ry}
1975
+ a ${rx},${ry} 0 0 0 0,${rect.height}
1976
+ h ${rect.width - 2 * rx}
1977
+ a ${rx},${ry} 0 0 0 0,-${rect.height}
1978
+ Z
1979
+ `
1980
+ ).attr("class", cssclass);
1981
+ cylinderArc.append("path").attr(
1982
+ "d",
1983
+ `M ${rect.x},${rect.y + ry}
1984
+ a ${rx},${ry} 0 0 0 0,${rect.height}`
1985
+ ).attr("stroke", "#666").attr("stroke-width", "1px").attr("class", cssclass);
1986
+ cylinderGroup.attr("transform", `translate(${rx}, ${-(rect.height / 2)})`);
1987
+ cylinderArc.attr("transform", `translate(${rect.width - rx}, ${-rect.height / 2})`);
1988
+ actor.rectData = rect;
1989
+ if (actor.properties?.icon) {
1990
+ const iconSrc = actor.properties.icon.trim();
1991
+ const iconX = rect.x + rect.width - 20;
1992
+ const iconY = rect.y + 10;
1993
+ if (iconSrc.charAt(0) === "@") {
1994
+ drawEmbeddedImage(g, iconX, iconY, iconSrc.substr(1));
1995
+ } else {
1996
+ drawImage(g, iconX, iconY, iconSrc);
1997
+ }
1998
+ }
1999
+ _drawTextCandidateFunc(conf2, hasKatex(actor.description))(
2000
+ actor.description,
2001
+ g,
2002
+ rect.x,
2003
+ rect.y,
2004
+ rect.width,
2005
+ rect.height,
2006
+ { class: `actor ${ACTOR_BOX_CLASS}` },
2007
+ conf2
2008
+ );
2009
+ let height = actor.height;
2010
+ const lastPath = cylinderGroup.select("path:last-child");
2011
+ if (lastPath.node()) {
2012
+ const bounds2 = lastPath.node().getBBox();
2013
+ actor.height = bounds2.height;
2014
+ height = bounds2.height;
2015
+ }
2016
+ return height;
2017
+ }, "drawActorTypeQueue");
2018
+ var drawActorTypeControl = /* @__PURE__ */ __name(function(elem, actor, conf2, isFooter) {
2019
+ const actorY = isFooter ? actor.stopy : actor.starty;
2020
+ const center = actor.x + actor.width / 2;
2021
+ const centerY = actorY + 75;
2022
+ const line = elem.append("g").lower();
2023
+ if (!isFooter) {
2024
+ actorCnt++;
2025
+ 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);
2026
+ actor.actorCnt = actorCnt;
2027
+ }
2028
+ const actElem = elem.append("g");
2029
+ let cssClass = ACTOR_MAN_FIGURE_CLASS;
2030
+ if (isFooter) {
2031
+ cssClass += ` ${BOTTOM_ACTOR_CLASS}`;
2032
+ } else {
2033
+ cssClass += ` ${TOP_ACTOR_CLASS}`;
2034
+ }
2035
+ actElem.attr("class", cssClass);
2036
+ actElem.attr("name", actor.name);
2037
+ const rect = getNoteRect();
2038
+ rect.x = actor.x;
2039
+ rect.y = actorY;
2040
+ rect.fill = "#eaeaea";
2041
+ rect.width = actor.width;
2042
+ rect.height = actor.height;
2043
+ rect.class = "actor";
2044
+ const cx = actor.x + actor.width / 2;
2045
+ const cy = actorY + 30;
2046
+ const r = 18;
2047
+ actElem.append("defs").append("marker").attr("id", "filled-head-control").attr("refX", 11).attr("refY", 5.8).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "172.5").append("path").attr("d", "M 14.4 5.6 L 7.2 10.4 L 8.8 5.6 L 7.2 0.8 Z");
2048
+ actElem.append("circle").attr("cx", cx).attr("cy", cy).attr("r", r).attr("fill", "#eaeaf7").attr("stroke", "#666").attr("stroke-width", 1.2);
2049
+ actElem.append("line").attr("marker-end", "url(#filled-head-control)").attr("transform", `translate(${cx}, ${cy - r})`);
2050
+ const bounds2 = actElem.node().getBBox();
2051
+ actor.height = bounds2.height + 2 * (conf2?.sequence?.labelBoxHeight ?? 0);
2052
+ _drawTextCandidateFunc(conf2, hasKatex(actor.description))(
2053
+ actor.description,
2054
+ actElem,
2055
+ rect.x,
2056
+ rect.y + r + (isFooter ? 5 : 10),
2057
+ rect.width,
2058
+ rect.height,
2059
+ { class: `actor ${ACTOR_MAN_FIGURE_CLASS}` },
2060
+ conf2
2061
+ );
2062
+ return actor.height;
2063
+ }, "drawActorTypeControl");
2064
+ var drawActorTypeEntity = /* @__PURE__ */ __name(function(elem, actor, conf2, isFooter) {
2065
+ const actorY = isFooter ? actor.stopy : actor.starty;
2066
+ const center = actor.x + actor.width / 2;
2067
+ const centerY = actorY + 75;
2068
+ const line = elem.append("g").lower();
2069
+ const actElem = elem.append("g");
2070
+ let cssClass = ACTOR_MAN_FIGURE_CLASS;
2071
+ if (isFooter) {
2072
+ cssClass += ` ${BOTTOM_ACTOR_CLASS}`;
2073
+ } else {
2074
+ cssClass += ` ${TOP_ACTOR_CLASS}`;
2075
+ }
2076
+ actElem.attr("class", cssClass);
2077
+ actElem.attr("name", actor.name);
2078
+ const rect = getNoteRect();
2079
+ rect.x = actor.x;
2080
+ rect.y = actorY;
2081
+ rect.fill = "#eaeaea";
2082
+ rect.width = actor.width;
2083
+ rect.height = actor.height;
2084
+ rect.class = "actor";
2085
+ const cx = actor.x + actor.width / 2;
2086
+ const cy = actorY + (!isFooter ? 25 : 10);
2087
+ const r = 18;
2088
+ actElem.append("circle").attr("cx", cx).attr("cy", cy).attr("r", r).attr("width", actor.width).attr("height", actor.height);
2089
+ actElem.append("line").attr("x1", cx - r).attr("x2", cx + r).attr("y1", cy + r).attr("y2", cy + r).attr("stroke", "#333").attr("stroke-width", 2);
2090
+ const bounds2 = actElem.node().getBBox();
2091
+ actor.height = bounds2.height + (conf2?.sequence?.labelBoxHeight ?? 0);
2092
+ if (!isFooter) {
2093
+ actorCnt++;
2094
+ 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);
2095
+ actor.actorCnt = actorCnt;
2096
+ }
2097
+ _drawTextCandidateFunc(conf2, hasKatex(actor.description))(
2098
+ actor.description,
2099
+ actElem,
2100
+ rect.x,
2101
+ rect.y + (!isFooter ? (cy + r - actorY) / 2 : (cy - actorY + r - 5) / 2),
2102
+ rect.width,
2103
+ rect.height,
2104
+ { class: `actor ${ACTOR_MAN_FIGURE_CLASS}` },
2105
+ conf2
2106
+ );
2107
+ if (!isFooter) {
2108
+ actElem.attr("transform", `translate(${0}, ${r / 2})`);
2109
+ } else {
2110
+ actElem.attr("transform", `translate(${0}, ${r / 2})`);
2111
+ }
2112
+ return actor.height;
2113
+ }, "drawActorTypeEntity");
2114
+ var drawActorTypeDatabase = /* @__PURE__ */ __name(function(elem, actor, conf2, isFooter) {
2115
+ const actorY = isFooter ? actor.stopy : actor.starty;
2116
+ const center = actor.x + actor.width / 2;
2117
+ const centerY = actorY + actor.height + 2 * conf2.boxTextMargin;
2118
+ const boxplusLineGroup = elem.append("g").lower();
2119
+ let g = boxplusLineGroup;
2120
+ if (!isFooter) {
2121
+ actorCnt++;
2122
+ if (Object.keys(actor.links || {}).length && !conf2.forceMenus) {
2123
+ g.attr("onclick", popupMenuToggle(`actor${actorCnt}_popup`)).attr("cursor", "pointer");
2124
+ }
2125
+ 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);
2126
+ g = boxplusLineGroup.append("g");
2127
+ actor.actorCnt = actorCnt;
2128
+ if (actor.links != null) {
2129
+ g.attr("id", "root-" + actorCnt);
2130
+ }
2131
+ }
2132
+ const rect = getNoteRect();
2133
+ let cssclass = "actor";
2134
+ if (actor.properties?.class) {
2135
+ cssclass = actor.properties.class;
2136
+ } else {
2137
+ rect.fill = "#eaeaea";
2138
+ }
2139
+ if (isFooter) {
2140
+ cssclass += ` ${BOTTOM_ACTOR_CLASS}`;
2141
+ } else {
2142
+ cssclass += ` ${TOP_ACTOR_CLASS}`;
2143
+ }
2144
+ rect.x = actor.x;
2145
+ rect.y = actorY;
2146
+ rect.width = actor.width;
2147
+ rect.height = actor.height;
2148
+ rect.class = cssclass;
2149
+ rect.name = actor.name;
2150
+ rect.x = actor.x;
2151
+ rect.y = actorY;
2152
+ const w = rect.width / 4;
2153
+ const h = rect.width / 4;
2154
+ const rx = w / 2;
2155
+ const ry = rx / (2.5 + w / 50);
2156
+ const cylinderGroup = g.append("g");
2157
+ const d = `
2158
+ M ${rect.x},${rect.y + ry}
2159
+ a ${rx},${ry} 0 0 0 ${w},0
2160
+ a ${rx},${ry} 0 0 0 -${w},0
2161
+ l 0,${h - 2 * ry}
2162
+ a ${rx},${ry} 0 0 0 ${w},0
2163
+ l 0,-${h - 2 * ry}
2164
+ `;
2165
+ cylinderGroup.append("path").attr("d", d).attr("fill", "#eaeaea").attr("stroke", "#000").attr("stroke-width", 1).attr("class", cssclass);
2166
+ if (!isFooter) {
2167
+ cylinderGroup.attr("transform", `translate(${w * 1.5}, ${(rect.height + ry) / 4})`);
2168
+ } else {
2169
+ cylinderGroup.attr("transform", `translate(${w * 1.5}, ${rect.height / 4 - 2 * ry})`);
2170
+ }
2171
+ actor.rectData = rect;
2172
+ _drawTextCandidateFunc(conf2, hasKatex(actor.description))(
2173
+ actor.description,
2174
+ g,
2175
+ rect.x,
2176
+ rect.y + (!isFooter ? (rect.height + ry) / 2 : (rect.height + h) / 4),
2177
+ rect.width,
2178
+ rect.height,
2179
+ { class: `actor ${ACTOR_BOX_CLASS}` },
2180
+ conf2
2181
+ );
2182
+ const lastPath = cylinderGroup.select("path:last-child");
2183
+ if (lastPath.node()) {
2184
+ const bounds2 = lastPath.node().getBBox();
2185
+ actor.height = bounds2.height + (conf2.sequence.labelBoxHeight ?? 0);
2186
+ }
2187
+ return actor.height;
2188
+ }, "drawActorTypeDatabase");
2189
+ var drawActorTypeBoundary = /* @__PURE__ */ __name(function(elem, actor, conf2, isFooter) {
2190
+ const actorY = isFooter ? actor.stopy : actor.starty;
2191
+ const center = actor.x + actor.width / 2;
2192
+ const centerY = actorY + 80;
2193
+ const radius = 30;
2194
+ const line = elem.append("g").lower();
2195
+ if (!isFooter) {
2196
+ actorCnt++;
2197
+ 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);
2198
+ actor.actorCnt = actorCnt;
2199
+ }
2200
+ const actElem = elem.append("g");
2201
+ let cssClass = ACTOR_MAN_FIGURE_CLASS;
2202
+ if (isFooter) {
2203
+ cssClass += ` ${BOTTOM_ACTOR_CLASS}`;
2204
+ } else {
2205
+ cssClass += ` ${TOP_ACTOR_CLASS}`;
2206
+ }
2207
+ actElem.attr("class", cssClass);
2208
+ actElem.attr("name", actor.name);
2209
+ const rect = getNoteRect();
2210
+ rect.x = actor.x;
2211
+ rect.y = actorY;
2212
+ rect.fill = "#eaeaea";
2213
+ rect.width = actor.width;
2214
+ rect.height = actor.height;
2215
+ rect.class = "actor";
2216
+ actElem.append("line").attr("id", "actor-man-torso" + actorCnt).attr("x1", actor.x + actor.width / 2 - radius * 2.5).attr("y1", actorY + 10).attr("x2", actor.x + actor.width / 2 - 15).attr("y2", actorY + 10);
2217
+ actElem.append("line").attr("id", "actor-man-arms" + actorCnt).attr("x1", actor.x + actor.width / 2 - radius * 2.5).attr("y1", actorY + 0).attr("x2", actor.x + actor.width / 2 - radius * 2.5).attr("y2", actorY + 20);
2218
+ actElem.append("circle").attr("cx", actor.x + actor.width / 2).attr("cy", actorY + 10).attr("r", radius);
2219
+ const bounds2 = actElem.node().getBBox();
2220
+ actor.height = bounds2.height + (conf2.sequence.labelBoxHeight ?? 0);
2221
+ _drawTextCandidateFunc(conf2, hasKatex(actor.description))(
2222
+ actor.description,
2223
+ actElem,
2224
+ rect.x,
2225
+ rect.y + (!isFooter ? radius / 2 + 3 : radius / 2 - 4),
2226
+ rect.width,
2227
+ rect.height,
2228
+ { class: `actor ${ACTOR_MAN_FIGURE_CLASS}` },
2229
+ conf2
2230
+ );
2231
+ if (!isFooter) {
2232
+ actElem.attr("transform", `translate(0,${radius / 2 + 7})`);
2233
+ } else {
2234
+ actElem.attr("transform", `translate(0,${radius / 2 + 7})`);
2235
+ }
2236
+ return actor.height;
2237
+ }, "drawActorTypeBoundary");
2238
+ var drawActorTypeActor = /* @__PURE__ */ __name(function(elem, actor, conf2, isFooter) {
2239
+ const actorY = isFooter ? actor.stopy : actor.starty;
2240
+ const center = actor.x + actor.width / 2;
2241
+ const centerY = actorY + 80;
2242
+ const line = elem.append("g").lower();
2243
+ if (!isFooter) {
2244
+ actorCnt++;
2245
+ 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);
2246
+ actor.actorCnt = actorCnt;
2247
+ }
2248
+ const actElem = elem.append("g");
2249
+ let cssClass = ACTOR_MAN_FIGURE_CLASS;
2250
+ if (isFooter) {
2251
+ cssClass += ` ${BOTTOM_ACTOR_CLASS}`;
2252
+ } else {
2253
+ cssClass += ` ${TOP_ACTOR_CLASS}`;
2254
+ }
2255
+ actElem.attr("class", cssClass);
2256
+ actElem.attr("name", actor.name);
2257
+ const rect = getNoteRect();
2258
+ rect.x = actor.x;
2259
+ rect.y = actorY;
2260
+ rect.fill = "#eaeaea";
2261
+ rect.width = actor.width;
2262
+ rect.height = actor.height;
2263
+ rect.class = "actor";
2264
+ rect.rx = 3;
2265
+ rect.ry = 3;
2266
+ actElem.append("line").attr("id", "actor-man-torso" + actorCnt).attr("x1", center).attr("y1", actorY + 25).attr("x2", center).attr("y2", actorY + 45);
2267
+ 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);
2268
+ actElem.append("line").attr("x1", center - ACTOR_TYPE_WIDTH / 2).attr("y1", actorY + 60).attr("x2", center).attr("y2", actorY + 45);
2269
+ actElem.append("line").attr("x1", center).attr("y1", actorY + 45).attr("x2", center + ACTOR_TYPE_WIDTH / 2 - 2).attr("y2", actorY + 60);
2270
+ const circle = actElem.append("circle");
2271
+ circle.attr("cx", actor.x + actor.width / 2);
2272
+ circle.attr("cy", actorY + 10);
2273
+ circle.attr("r", 15);
2274
+ circle.attr("width", actor.width);
2275
+ circle.attr("height", actor.height);
2276
+ const bounds2 = actElem.node().getBBox();
2277
+ actor.height = bounds2.height;
2278
+ _drawTextCandidateFunc(conf2, hasKatex(actor.description))(
2279
+ actor.description,
2280
+ actElem,
2281
+ rect.x,
2282
+ rect.y + 35,
2283
+ rect.width,
2284
+ rect.height,
2285
+ { class: `actor ${ACTOR_MAN_FIGURE_CLASS}` },
2286
+ conf2
2287
+ );
2288
+ return actor.height;
2289
+ }, "drawActorTypeActor");
2290
+ var drawActor = /* @__PURE__ */ __name(async function(elem, actor, conf2, isFooter) {
2291
+ switch (actor.type) {
2292
+ case "actor":
2293
+ return await drawActorTypeActor(elem, actor, conf2, isFooter);
2294
+ case "participant":
2295
+ return await drawActorTypeParticipant(elem, actor, conf2, isFooter);
2296
+ case "boundary":
2297
+ return await drawActorTypeBoundary(elem, actor, conf2, isFooter);
2298
+ case "control":
2299
+ return await drawActorTypeControl(elem, actor, conf2, isFooter);
2300
+ case "entity":
2301
+ return await drawActorTypeEntity(elem, actor, conf2, isFooter);
2302
+ case "database":
2303
+ return await drawActorTypeDatabase(elem, actor, conf2, isFooter);
2304
+ case "collections":
2305
+ return await drawActorTypeCollections(elem, actor, conf2, isFooter);
2306
+ case "queue":
2307
+ return await drawActorTypeQueue(elem, actor, conf2, isFooter);
2308
+ }
2309
+ }, "drawActor");
2310
+ var drawBox = /* @__PURE__ */ __name(function(elem, box, conf2) {
2311
+ const boxplusTextGroup = elem.append("g");
2312
+ const g = boxplusTextGroup;
2313
+ drawBackgroundRect2(g, box);
2314
+ if (box.name) {
2315
+ _drawTextCandidateFunc(conf2)(
2316
+ box.name,
2317
+ g,
2318
+ box.x,
2319
+ box.y + conf2.boxTextMargin + (box.textMaxHeight || 0) / 2,
2320
+ box.width,
2321
+ 0,
2322
+ { class: "text" },
2323
+ conf2
2324
+ );
2325
+ }
2326
+ g.lower();
2327
+ }, "drawBox");
2328
+ var anchorElement = /* @__PURE__ */ __name(function(elem) {
2329
+ return elem.append("g");
2330
+ }, "anchorElement");
2331
+ var drawActivation = /* @__PURE__ */ __name(function(elem, bounds2, verticalPos, conf2, actorActivations2) {
2332
+ const rect = getNoteRect();
2333
+ const g = bounds2.anchored;
2334
+ rect.x = bounds2.startx;
2335
+ rect.y = bounds2.starty;
2336
+ rect.class = "activation" + actorActivations2 % 3;
2337
+ rect.width = bounds2.stopx - bounds2.startx;
2338
+ rect.height = verticalPos - bounds2.starty;
2339
+ drawRect2(g, rect);
2340
+ }, "drawActivation");
2341
+ var drawLoop = /* @__PURE__ */ __name(async function(elem, loopModel, labelText, conf2) {
2342
+ const {
2343
+ boxMargin,
2344
+ boxTextMargin,
2345
+ labelBoxHeight,
2346
+ labelBoxWidth,
2347
+ messageFontFamily: fontFamily,
2348
+ messageFontSize: fontSize,
2349
+ messageFontWeight: fontWeight
2350
+ } = conf2;
2351
+ const g = elem.append("g");
2352
+ const drawLoopLine = /* @__PURE__ */ __name(function(startx, starty, stopx, stopy) {
2353
+ return g.append("line").attr("x1", startx).attr("y1", starty).attr("x2", stopx).attr("y2", stopy).attr("class", "loopLine");
2354
+ }, "drawLoopLine");
2355
+ drawLoopLine(loopModel.startx, loopModel.starty, loopModel.stopx, loopModel.starty);
2356
+ drawLoopLine(loopModel.stopx, loopModel.starty, loopModel.stopx, loopModel.stopy);
2357
+ drawLoopLine(loopModel.startx, loopModel.stopy, loopModel.stopx, loopModel.stopy);
2358
+ drawLoopLine(loopModel.startx, loopModel.starty, loopModel.startx, loopModel.stopy);
2359
+ if (loopModel.sections !== void 0) {
2360
+ loopModel.sections.forEach(function(item) {
2361
+ drawLoopLine(loopModel.startx, item.y, loopModel.stopx, item.y).style(
2362
+ "stroke-dasharray",
2363
+ "3, 3"
2364
+ );
2365
+ });
2366
+ }
2367
+ let txt = getTextObj();
2368
+ txt.text = labelText;
2369
+ txt.x = loopModel.startx;
2370
+ txt.y = loopModel.starty;
2371
+ txt.fontFamily = fontFamily;
2372
+ txt.fontSize = fontSize;
2373
+ txt.fontWeight = fontWeight;
2374
+ txt.anchor = "middle";
2375
+ txt.valign = "middle";
2376
+ txt.tspan = false;
2377
+ txt.width = labelBoxWidth || 50;
2378
+ txt.height = labelBoxHeight || 20;
2379
+ txt.textMargin = boxTextMargin;
2380
+ txt.class = "labelText";
2381
+ drawLabel(g, txt);
2382
+ txt = getTextObj2();
2383
+ txt.text = loopModel.title;
2384
+ txt.x = loopModel.startx + labelBoxWidth / 2 + (loopModel.stopx - loopModel.startx) / 2;
2385
+ txt.y = loopModel.starty + boxMargin + boxTextMargin;
2386
+ txt.anchor = "middle";
2387
+ txt.valign = "middle";
2388
+ txt.textMargin = boxTextMargin;
2389
+ txt.class = "loopText";
2390
+ txt.fontFamily = fontFamily;
2391
+ txt.fontSize = fontSize;
2392
+ txt.fontWeight = fontWeight;
2393
+ txt.wrap = true;
2394
+ let textElem = hasKatex(txt.text) ? await drawKatex(g, txt, loopModel) : drawText(g, txt);
2395
+ if (loopModel.sectionTitles !== void 0) {
2396
+ for (const [idx, item] of Object.entries(loopModel.sectionTitles)) {
2397
+ if (item.message) {
2398
+ txt.text = item.message;
2399
+ txt.x = loopModel.startx + (loopModel.stopx - loopModel.startx) / 2;
2400
+ txt.y = loopModel.sections[idx].y + boxMargin + boxTextMargin;
2401
+ txt.class = "loopText";
2402
+ txt.anchor = "middle";
2403
+ txt.valign = "middle";
2404
+ txt.tspan = false;
2405
+ txt.fontFamily = fontFamily;
2406
+ txt.fontSize = fontSize;
2407
+ txt.fontWeight = fontWeight;
2408
+ txt.wrap = loopModel.wrap;
2409
+ if (hasKatex(txt.text)) {
2410
+ loopModel.starty = loopModel.sections[idx].y;
2411
+ await drawKatex(g, txt, loopModel);
2412
+ } else {
2413
+ drawText(g, txt);
2414
+ }
2415
+ let sectionHeight = Math.round(
2416
+ textElem.map((te) => (te._groups || te)[0][0].getBBox().height).reduce((acc, curr) => acc + curr)
2417
+ );
2418
+ loopModel.sections[idx].height += sectionHeight - (boxMargin + boxTextMargin);
2419
+ }
2420
+ }
2421
+ }
2422
+ loopModel.height = Math.round(loopModel.stopy - loopModel.starty);
2423
+ return g;
2424
+ }, "drawLoop");
2425
+ var drawBackgroundRect2 = /* @__PURE__ */ __name(function(elem, bounds2) {
2426
+ drawBackgroundRect(elem, bounds2);
2427
+ }, "drawBackgroundRect");
2428
+ var insertDatabaseIcon = /* @__PURE__ */ __name(function(elem) {
2429
+ elem.append("defs").append("symbol").attr("id", "database").attr("fill-rule", "evenodd").attr("clip-rule", "evenodd").append("path").attr("transform", "scale(.5)").attr(
2430
+ "d",
2431
+ "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"
2432
+ );
2433
+ }, "insertDatabaseIcon");
2434
+ var insertComputerIcon = /* @__PURE__ */ __name(function(elem) {
2435
+ elem.append("defs").append("symbol").attr("id", "computer").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr(
2436
+ "d",
2437
+ "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"
2438
+ );
2439
+ }, "insertComputerIcon");
2440
+ var insertClockIcon = /* @__PURE__ */ __name(function(elem) {
2441
+ elem.append("defs").append("symbol").attr("id", "clock").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr(
2442
+ "d",
2443
+ "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"
2444
+ );
2445
+ }, "insertClockIcon");
2446
+ var insertArrowHead = /* @__PURE__ */ __name(function(elem) {
2447
+ 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");
2448
+ }, "insertArrowHead");
2449
+ var insertArrowFilledHead = /* @__PURE__ */ __name(function(elem) {
2450
+ 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");
2451
+ }, "insertArrowFilledHead");
2452
+ var insertSequenceNumber = /* @__PURE__ */ __name(function(elem) {
2453
+ 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);
2454
+ }, "insertSequenceNumber");
2455
+ var insertArrowCrossHead = /* @__PURE__ */ __name(function(elem) {
2456
+ const defs = elem.append("defs");
2457
+ const marker = defs.append("marker").attr("id", "crosshead").attr("markerWidth", 15).attr("markerHeight", 8).attr("orient", "auto").attr("refX", 4).attr("refY", 4.5);
2458
+ 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");
2459
+ }, "insertArrowCrossHead");
2460
+ var getTextObj2 = /* @__PURE__ */ __name(function() {
2461
+ return {
2462
+ x: 0,
2463
+ y: 0,
2464
+ fill: void 0,
2465
+ anchor: void 0,
2466
+ style: "#666",
2467
+ width: void 0,
2468
+ height: void 0,
2469
+ textMargin: 0,
2470
+ rx: 0,
2471
+ ry: 0,
2472
+ tspan: true,
2473
+ valign: void 0
2474
+ };
2475
+ }, "getTextObj");
2476
+ var getNoteRect2 = /* @__PURE__ */ __name(function() {
2477
+ return {
2478
+ x: 0,
2479
+ y: 0,
2480
+ fill: "#EDF2AE",
2481
+ stroke: "#666",
2482
+ width: 100,
2483
+ anchor: "start",
2484
+ height: 100,
2485
+ rx: 0,
2486
+ ry: 0
2487
+ };
2488
+ }, "getNoteRect");
2489
+ var _drawTextCandidateFunc = /* @__PURE__ */ (function() {
2490
+ function byText(content, g, x, y, width, height, textAttrs) {
2491
+ const text = g.append("text").attr("x", x + width / 2).attr("y", y + height / 2 + 5).style("text-anchor", "middle").text(content);
2492
+ _setTextAttrs(text, textAttrs);
2493
+ }
2494
+ __name(byText, "byText");
2495
+ function byTspan(content, g, x, y, width, height, textAttrs, conf2) {
2496
+ const { actorFontSize, actorFontFamily, actorFontWeight } = conf2;
2497
+ const [_actorFontSize, _actorFontSizePx] = parseFontSize(actorFontSize);
2498
+ const lines = content.split(common_default.lineBreakRegex);
2499
+ for (let i = 0; i < lines.length; i++) {
2500
+ const dy = i * _actorFontSize - _actorFontSize * (lines.length - 1) / 2;
2501
+ 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);
2502
+ text.append("tspan").attr("x", x + width / 2).attr("dy", dy).text(lines[i]);
2503
+ text.attr("y", y + height / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central");
2504
+ _setTextAttrs(text, textAttrs);
2505
+ }
2506
+ }
2507
+ __name(byTspan, "byTspan");
2508
+ function byFo(content, g, x, y, width, height, textAttrs, conf2) {
2509
+ const s = g.append("switch");
2510
+ const f = s.append("foreignObject").attr("x", x).attr("y", y).attr("width", width).attr("height", height);
2511
+ const text = f.append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
2512
+ text.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(content);
2513
+ byTspan(content, s, x, y, width, height, textAttrs, conf2);
2514
+ _setTextAttrs(text, textAttrs);
2515
+ }
2516
+ __name(byFo, "byFo");
2517
+ async function byKatex(content, g, x, y, width, height, textAttrs, conf2) {
2518
+ const dim = await calculateMathMLDimensions(content, getConfig());
2519
+ const s = g.append("switch");
2520
+ 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);
2521
+ const text = f.append("xhtml:div").style("height", "100%").style("width", "100%");
2522
+ text.append("div").style("text-align", "center").style("vertical-align", "middle").html(await renderKatexSanitized(content, getConfig()));
2523
+ byTspan(content, s, x, y, width, height, textAttrs, conf2);
2524
+ _setTextAttrs(text, textAttrs);
2525
+ }
2526
+ __name(byKatex, "byKatex");
2527
+ function _setTextAttrs(toText, fromTextAttrsDict) {
2528
+ for (const key in fromTextAttrsDict) {
2529
+ if (fromTextAttrsDict.hasOwnProperty(key)) {
2530
+ toText.attr(key, fromTextAttrsDict[key]);
2531
+ }
2532
+ }
2533
+ }
2534
+ __name(_setTextAttrs, "_setTextAttrs");
2535
+ return function(conf2, hasKatex2 = false) {
2536
+ if (hasKatex2) {
2537
+ return byKatex;
2538
+ }
2539
+ return conf2.textPlacement === "fo" ? byFo : conf2.textPlacement === "old" ? byText : byTspan;
2540
+ };
2541
+ })();
2542
+ var _drawMenuItemTextCandidateFunc = /* @__PURE__ */ (function() {
2543
+ function byText(content, g, x, y, width, height, textAttrs) {
2544
+ const text = g.append("text").attr("x", x).attr("y", y).style("text-anchor", "start").text(content);
2545
+ _setTextAttrs(text, textAttrs);
2546
+ }
2547
+ __name(byText, "byText");
2548
+ function byTspan(content, g, x, y, width, height, textAttrs, conf2) {
2549
+ const { actorFontSize, actorFontFamily, actorFontWeight } = conf2;
2550
+ const lines = content.split(common_default.lineBreakRegex);
2551
+ for (let i = 0; i < lines.length; i++) {
2552
+ const dy = i * actorFontSize - actorFontSize * (lines.length - 1) / 2;
2553
+ 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);
2554
+ text.append("tspan").attr("x", x).attr("dy", dy).text(lines[i]);
2555
+ text.attr("y", y + height / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central");
2556
+ _setTextAttrs(text, textAttrs);
2557
+ }
2558
+ }
2559
+ __name(byTspan, "byTspan");
2560
+ function byFo(content, g, x, y, width, height, textAttrs, conf2) {
2561
+ const s = g.append("switch");
2562
+ const f = s.append("foreignObject").attr("x", x).attr("y", y).attr("width", width).attr("height", height);
2563
+ const text = f.append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
2564
+ text.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(content);
2565
+ byTspan(content, s, x, y, width, height, textAttrs, conf2);
2566
+ _setTextAttrs(text, textAttrs);
2567
+ }
2568
+ __name(byFo, "byFo");
2569
+ function _setTextAttrs(toText, fromTextAttrsDict) {
2570
+ for (const key in fromTextAttrsDict) {
2571
+ if (fromTextAttrsDict.hasOwnProperty(key)) {
2572
+ toText.attr(key, fromTextAttrsDict[key]);
2573
+ }
2574
+ }
2575
+ }
2576
+ __name(_setTextAttrs, "_setTextAttrs");
2577
+ return function(conf2) {
2578
+ return conf2.textPlacement === "fo" ? byFo : conf2.textPlacement === "old" ? byText : byTspan;
2579
+ };
2580
+ })();
2581
+ var svgDraw_default = {
2582
+ drawRect: drawRect2,
2583
+ drawText,
2584
+ drawLabel,
2585
+ drawActor,
2586
+ drawBox,
2587
+ drawPopup,
2588
+ anchorElement,
2589
+ drawActivation,
2590
+ drawLoop,
2591
+ drawBackgroundRect: drawBackgroundRect2,
2592
+ insertArrowHead,
2593
+ insertArrowFilledHead,
2594
+ insertSequenceNumber,
2595
+ insertArrowCrossHead,
2596
+ insertDatabaseIcon,
2597
+ insertComputerIcon,
2598
+ insertClockIcon,
2599
+ getTextObj: getTextObj2,
2600
+ getNoteRect: getNoteRect2,
2601
+ fixLifeLineHeights,
2602
+ sanitizeUrl: distExports.sanitizeUrl
2603
+ };
2604
+
2605
+ // src/diagrams/sequence/sequenceRenderer.ts
2606
+ var conf = {};
2607
+ var bounds = {
2608
+ data: {
2609
+ startx: void 0,
2610
+ stopx: void 0,
2611
+ starty: void 0,
2612
+ stopy: void 0
2613
+ },
2614
+ verticalPos: 0,
2615
+ sequenceItems: [],
2616
+ activations: [],
2617
+ models: {
2618
+ getHeight: /* @__PURE__ */ __name(function() {
2619
+ return Math.max.apply(
2620
+ null,
2621
+ this.actors.length === 0 ? [0] : this.actors.map((actor) => actor.height || 0)
2622
+ ) + (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));
2623
+ }, "getHeight"),
2624
+ clear: /* @__PURE__ */ __name(function() {
2625
+ this.actors = [];
2626
+ this.boxes = [];
2627
+ this.loops = [];
2628
+ this.messages = [];
2629
+ this.notes = [];
2630
+ }, "clear"),
2631
+ addBox: /* @__PURE__ */ __name(function(boxModel) {
2632
+ this.boxes.push(boxModel);
2633
+ }, "addBox"),
2634
+ addActor: /* @__PURE__ */ __name(function(actorModel) {
2635
+ this.actors.push(actorModel);
2636
+ }, "addActor"),
2637
+ addLoop: /* @__PURE__ */ __name(function(loopModel) {
2638
+ this.loops.push(loopModel);
2639
+ }, "addLoop"),
2640
+ addMessage: /* @__PURE__ */ __name(function(msgModel) {
2641
+ this.messages.push(msgModel);
2642
+ }, "addMessage"),
2643
+ addNote: /* @__PURE__ */ __name(function(noteModel) {
2644
+ this.notes.push(noteModel);
2645
+ }, "addNote"),
2646
+ lastActor: /* @__PURE__ */ __name(function() {
2647
+ return this.actors[this.actors.length - 1];
2648
+ }, "lastActor"),
2649
+ lastLoop: /* @__PURE__ */ __name(function() {
2650
+ return this.loops[this.loops.length - 1];
2651
+ }, "lastLoop"),
2652
+ lastMessage: /* @__PURE__ */ __name(function() {
2653
+ return this.messages[this.messages.length - 1];
2654
+ }, "lastMessage"),
2655
+ lastNote: /* @__PURE__ */ __name(function() {
2656
+ return this.notes[this.notes.length - 1];
2657
+ }, "lastNote"),
2658
+ actors: [],
2659
+ boxes: [],
2660
+ loops: [],
2661
+ messages: [],
2662
+ notes: []
2663
+ },
2664
+ init: /* @__PURE__ */ __name(function() {
2665
+ this.sequenceItems = [];
2666
+ this.activations = [];
2667
+ this.models.clear();
2668
+ this.data = {
2669
+ startx: void 0,
2670
+ stopx: void 0,
2671
+ starty: void 0,
2672
+ stopy: void 0
2673
+ };
2674
+ this.verticalPos = 0;
2675
+ setConf(getConfig2());
2676
+ }, "init"),
2677
+ updateVal: /* @__PURE__ */ __name(function(obj, key, val, fun) {
2678
+ if (obj[key] === void 0) {
2679
+ obj[key] = val;
2680
+ } else {
2681
+ obj[key] = fun(val, obj[key]);
2682
+ }
2683
+ }, "updateVal"),
2684
+ updateBounds: /* @__PURE__ */ __name(function(startx, starty, stopx, stopy) {
2685
+ const _self = this;
2686
+ let cnt = 0;
2687
+ function updateFn(type) {
2688
+ return /* @__PURE__ */ __name(function updateItemBounds(item) {
2689
+ cnt++;
2690
+ const n = _self.sequenceItems.length - cnt + 1;
2691
+ _self.updateVal(item, "starty", starty - n * conf.boxMargin, Math.min);
2692
+ _self.updateVal(item, "stopy", stopy + n * conf.boxMargin, Math.max);
2693
+ _self.updateVal(bounds.data, "startx", startx - n * conf.boxMargin, Math.min);
2694
+ _self.updateVal(bounds.data, "stopx", stopx + n * conf.boxMargin, Math.max);
2695
+ if (!(type === "activation")) {
2696
+ _self.updateVal(item, "startx", startx - n * conf.boxMargin, Math.min);
2697
+ _self.updateVal(item, "stopx", stopx + n * conf.boxMargin, Math.max);
2698
+ _self.updateVal(bounds.data, "starty", starty - n * conf.boxMargin, Math.min);
2699
+ _self.updateVal(bounds.data, "stopy", stopy + n * conf.boxMargin, Math.max);
2700
+ }
2701
+ }, "updateItemBounds");
2702
+ }
2703
+ __name(updateFn, "updateFn");
2704
+ this.sequenceItems.forEach(updateFn());
2705
+ this.activations.forEach(updateFn("activation"));
2706
+ }, "updateBounds"),
2707
+ insert: /* @__PURE__ */ __name(function(startx, starty, stopx, stopy) {
2708
+ const _startx = common_default.getMin(startx, stopx);
2709
+ const _stopx = common_default.getMax(startx, stopx);
2710
+ const _starty = common_default.getMin(starty, stopy);
2711
+ const _stopy = common_default.getMax(starty, stopy);
2712
+ this.updateVal(bounds.data, "startx", _startx, Math.min);
2713
+ this.updateVal(bounds.data, "starty", _starty, Math.min);
2714
+ this.updateVal(bounds.data, "stopx", _stopx, Math.max);
2715
+ this.updateVal(bounds.data, "stopy", _stopy, Math.max);
2716
+ this.updateBounds(_startx, _starty, _stopx, _stopy);
2717
+ }, "insert"),
2718
+ newActivation: /* @__PURE__ */ __name(function(message, diagram2, actors) {
2719
+ const actorRect = actors.get(message.from);
2720
+ const stackedSize = actorActivations(message.from).length || 0;
2721
+ const x = actorRect.x + actorRect.width / 2 + (stackedSize - 1) * conf.activationWidth / 2;
2722
+ this.activations.push({
2723
+ startx: x,
2724
+ starty: this.verticalPos + 2,
2725
+ stopx: x + conf.activationWidth,
2726
+ stopy: void 0,
2727
+ actor: message.from,
2728
+ anchored: svgDraw_default.anchorElement(diagram2)
2729
+ });
2730
+ }, "newActivation"),
2731
+ endActivation: /* @__PURE__ */ __name(function(message) {
2732
+ const lastActorActivationIdx = this.activations.map(function(activation) {
2733
+ return activation.actor;
2734
+ }).lastIndexOf(message.from);
2735
+ return this.activations.splice(lastActorActivationIdx, 1)[0];
2736
+ }, "endActivation"),
2737
+ createLoop: /* @__PURE__ */ __name(function(title = { message: void 0, wrap: false, width: void 0 }, fill) {
2738
+ return {
2739
+ startx: void 0,
2740
+ starty: this.verticalPos,
2741
+ stopx: void 0,
2742
+ stopy: void 0,
2743
+ title: title.message,
2744
+ wrap: title.wrap,
2745
+ width: title.width,
2746
+ height: 0,
2747
+ fill
2748
+ };
2749
+ }, "createLoop"),
2750
+ newLoop: /* @__PURE__ */ __name(function(title = { message: void 0, wrap: false, width: void 0 }, fill) {
2751
+ this.sequenceItems.push(this.createLoop(title, fill));
2752
+ }, "newLoop"),
2753
+ endLoop: /* @__PURE__ */ __name(function() {
2754
+ return this.sequenceItems.pop();
2755
+ }, "endLoop"),
2756
+ isLoopOverlap: /* @__PURE__ */ __name(function() {
2757
+ return this.sequenceItems.length ? this.sequenceItems[this.sequenceItems.length - 1].overlap : false;
2758
+ }, "isLoopOverlap"),
2759
+ addSectionToLoop: /* @__PURE__ */ __name(function(message) {
2760
+ const loop = this.sequenceItems.pop();
2761
+ loop.sections = loop.sections || [];
2762
+ loop.sectionTitles = loop.sectionTitles || [];
2763
+ loop.sections.push({ y: bounds.getVerticalPos(), height: 0 });
2764
+ loop.sectionTitles.push(message);
2765
+ this.sequenceItems.push(loop);
2766
+ }, "addSectionToLoop"),
2767
+ saveVerticalPos: /* @__PURE__ */ __name(function() {
2768
+ if (this.isLoopOverlap()) {
2769
+ this.savedVerticalPos = this.verticalPos;
2770
+ }
2771
+ }, "saveVerticalPos"),
2772
+ resetVerticalPos: /* @__PURE__ */ __name(function() {
2773
+ if (this.isLoopOverlap()) {
2774
+ this.verticalPos = this.savedVerticalPos;
2775
+ }
2776
+ }, "resetVerticalPos"),
2777
+ bumpVerticalPos: /* @__PURE__ */ __name(function(bump) {
2778
+ this.verticalPos = this.verticalPos + bump;
2779
+ this.data.stopy = common_default.getMax(this.data.stopy, this.verticalPos);
2780
+ }, "bumpVerticalPos"),
2781
+ getVerticalPos: /* @__PURE__ */ __name(function() {
2782
+ return this.verticalPos;
2783
+ }, "getVerticalPos"),
2784
+ getBounds: /* @__PURE__ */ __name(function() {
2785
+ return { bounds: this.data, models: this.models };
2786
+ }, "getBounds")
2787
+ };
2788
+ var drawNote = /* @__PURE__ */ __name(async function(elem, noteModel) {
2789
+ bounds.bumpVerticalPos(conf.boxMargin);
2790
+ noteModel.height = conf.boxMargin;
2791
+ noteModel.starty = bounds.getVerticalPos();
2792
+ const rect = getNoteRect();
2793
+ rect.x = noteModel.startx;
2794
+ rect.y = noteModel.starty;
2795
+ rect.width = noteModel.width || conf.width;
2796
+ rect.class = "note";
2797
+ const g = elem.append("g");
2798
+ const rectElem = svgDraw_default.drawRect(g, rect);
2799
+ const textObj = getTextObj();
2800
+ textObj.x = noteModel.startx;
2801
+ textObj.y = noteModel.starty;
2802
+ textObj.width = rect.width;
2803
+ textObj.dy = "1em";
2804
+ textObj.text = noteModel.message;
2805
+ textObj.class = "noteText";
2806
+ textObj.fontFamily = conf.noteFontFamily;
2807
+ textObj.fontSize = conf.noteFontSize;
2808
+ textObj.fontWeight = conf.noteFontWeight;
2809
+ textObj.anchor = conf.noteAlign;
2810
+ textObj.textMargin = conf.noteMargin;
2811
+ textObj.valign = "center";
2812
+ const textElem = hasKatex(textObj.text) ? await drawKatex(g, textObj) : drawText(g, textObj);
2813
+ const textHeight = Math.round(
2814
+ textElem.map((te) => (te._groups || te)[0][0].getBBox().height).reduce((acc, curr) => acc + curr)
2815
+ );
2816
+ rectElem.attr("height", textHeight + 2 * conf.noteMargin);
2817
+ noteModel.height += textHeight + 2 * conf.noteMargin;
2818
+ bounds.bumpVerticalPos(textHeight + 2 * conf.noteMargin);
2819
+ noteModel.stopy = noteModel.starty + textHeight + 2 * conf.noteMargin;
2820
+ noteModel.stopx = noteModel.startx + rect.width;
2821
+ bounds.insert(noteModel.startx, noteModel.starty, noteModel.stopx, noteModel.stopy);
2822
+ bounds.models.addNote(noteModel);
2823
+ }, "drawNote");
2824
+ var messageFont = /* @__PURE__ */ __name((cnf) => {
2825
+ return {
2826
+ fontFamily: cnf.messageFontFamily,
2827
+ fontSize: cnf.messageFontSize,
2828
+ fontWeight: cnf.messageFontWeight
2829
+ };
2830
+ }, "messageFont");
2831
+ var noteFont = /* @__PURE__ */ __name((cnf) => {
2832
+ return {
2833
+ fontFamily: cnf.noteFontFamily,
2834
+ fontSize: cnf.noteFontSize,
2835
+ fontWeight: cnf.noteFontWeight
2836
+ };
2837
+ }, "noteFont");
2838
+ var actorFont = /* @__PURE__ */ __name((cnf) => {
2839
+ return {
2840
+ fontFamily: cnf.actorFontFamily,
2841
+ fontSize: cnf.actorFontSize,
2842
+ fontWeight: cnf.actorFontWeight
2843
+ };
2844
+ }, "actorFont");
2845
+ async function boundMessage(_diagram, msgModel) {
2846
+ bounds.bumpVerticalPos(10);
2847
+ const { startx, stopx, message } = msgModel;
2848
+ const lines = common_default.splitBreaks(message).length;
2849
+ const isKatexMsg = hasKatex(message);
2850
+ const textDims = isKatexMsg ? await calculateMathMLDimensions(message, getConfig2()) : utils_default.calculateTextDimensions(message, messageFont(conf));
2851
+ if (!isKatexMsg) {
2852
+ const lineHeight = textDims.height / lines;
2853
+ msgModel.height += lineHeight;
2854
+ bounds.bumpVerticalPos(lineHeight);
2855
+ }
2856
+ let lineStartY;
2857
+ let totalOffset = textDims.height - 10;
2858
+ const textWidth = textDims.width;
2859
+ if (startx === stopx) {
2860
+ lineStartY = bounds.getVerticalPos() + totalOffset;
2861
+ if (!conf.rightAngles) {
2862
+ totalOffset += conf.boxMargin;
2863
+ lineStartY = bounds.getVerticalPos() + totalOffset;
2864
+ }
2865
+ totalOffset += 30;
2866
+ const dx = common_default.getMax(textWidth / 2, conf.width / 2);
2867
+ bounds.insert(
2868
+ startx - dx,
2869
+ bounds.getVerticalPos() - 10 + totalOffset,
2870
+ stopx + dx,
2871
+ bounds.getVerticalPos() + 30 + totalOffset
2872
+ );
2873
+ } else {
2874
+ totalOffset += conf.boxMargin;
2875
+ lineStartY = bounds.getVerticalPos() + totalOffset;
2876
+ bounds.insert(startx, lineStartY - 10, stopx, lineStartY);
2877
+ }
2878
+ bounds.bumpVerticalPos(totalOffset);
2879
+ msgModel.height += totalOffset;
2880
+ msgModel.stopy = msgModel.starty + msgModel.height;
2881
+ bounds.insert(msgModel.fromBounds, msgModel.starty, msgModel.toBounds, msgModel.stopy);
2882
+ return lineStartY;
2883
+ }
2884
+ __name(boundMessage, "boundMessage");
2885
+ var drawMessage = /* @__PURE__ */ __name(async function(diagram2, msgModel, lineStartY, diagObj) {
2886
+ const { startx, stopx, starty, message, type, sequenceIndex, sequenceVisible } = msgModel;
2887
+ const textDims = utils_default.calculateTextDimensions(message, messageFont(conf));
2888
+ const textObj = getTextObj();
2889
+ textObj.x = startx;
2890
+ textObj.y = starty + 10;
2891
+ textObj.width = stopx - startx;
2892
+ textObj.class = "messageText";
2893
+ textObj.dy = "1em";
2894
+ textObj.text = message;
2895
+ textObj.fontFamily = conf.messageFontFamily;
2896
+ textObj.fontSize = conf.messageFontSize;
2897
+ textObj.fontWeight = conf.messageFontWeight;
2898
+ textObj.anchor = conf.messageAlign;
2899
+ textObj.valign = "center";
2900
+ textObj.textMargin = conf.wrapPadding;
2901
+ textObj.tspan = false;
2902
+ if (hasKatex(textObj.text)) {
2903
+ await drawKatex(diagram2, textObj, { startx, stopx, starty: lineStartY });
2904
+ } else {
2905
+ drawText(diagram2, textObj);
2906
+ }
2907
+ const textWidth = textDims.width;
2908
+ let line;
2909
+ if (startx === stopx) {
2910
+ if (conf.rightAngles) {
2911
+ line = diagram2.append("path").attr(
2912
+ "d",
2913
+ `M ${startx},${lineStartY} H ${startx + common_default.getMax(conf.width / 2, textWidth / 2)} V ${lineStartY + 25} H ${startx}`
2914
+ );
2915
+ } else {
2916
+ line = diagram2.append("path").attr(
2917
+ "d",
2918
+ "M " + startx + "," + lineStartY + " C " + (startx + 60) + "," + (lineStartY - 10) + " " + (startx + 60) + "," + (lineStartY + 30) + " " + startx + "," + (lineStartY + 20)
2919
+ );
2920
+ }
2921
+ } else {
2922
+ line = diagram2.append("line");
2923
+ line.attr("x1", startx);
2924
+ line.attr("y1", lineStartY);
2925
+ line.attr("x2", stopx);
2926
+ line.attr("y2", lineStartY);
2927
+ }
2928
+ 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) {
2929
+ line.style("stroke-dasharray", "3, 3");
2930
+ line.attr("class", "messageLine1");
2931
+ } else {
2932
+ line.attr("class", "messageLine0");
2933
+ }
2934
+ let url = "";
2935
+ if (conf.arrowMarkerAbsolute) {
2936
+ url = getUrl(true);
2937
+ }
2938
+ line.attr("stroke-width", 2);
2939
+ line.attr("stroke", "none");
2940
+ line.style("fill", "none");
2941
+ if (type === diagObj.db.LINETYPE.SOLID || type === diagObj.db.LINETYPE.DOTTED) {
2942
+ line.attr("marker-end", "url(" + url + "#arrowhead)");
2943
+ }
2944
+ if (type === diagObj.db.LINETYPE.BIDIRECTIONAL_SOLID || type === diagObj.db.LINETYPE.BIDIRECTIONAL_DOTTED) {
2945
+ line.attr("marker-start", "url(" + url + "#arrowhead)");
2946
+ line.attr("marker-end", "url(" + url + "#arrowhead)");
2947
+ }
2948
+ if (type === diagObj.db.LINETYPE.SOLID_POINT || type === diagObj.db.LINETYPE.DOTTED_POINT) {
2949
+ line.attr("marker-end", "url(" + url + "#filled-head)");
2950
+ }
2951
+ if (type === diagObj.db.LINETYPE.SOLID_CROSS || type === diagObj.db.LINETYPE.DOTTED_CROSS) {
2952
+ line.attr("marker-end", "url(" + url + "#crosshead)");
2953
+ }
2954
+ if (sequenceVisible || conf.showSequenceNumbers) {
2955
+ const isBidirectional = type === diagObj.db.LINETYPE.BIDIRECTIONAL_SOLID || type === diagObj.db.LINETYPE.BIDIRECTIONAL_DOTTED;
2956
+ if (isBidirectional) {
2957
+ const SEQUENCE_NUMBER_RADIUS = 6;
2958
+ if (startx < stopx) {
2959
+ line.attr("x1", startx + 2 * SEQUENCE_NUMBER_RADIUS);
2960
+ } else {
2961
+ line.attr("x1", startx + SEQUENCE_NUMBER_RADIUS);
2962
+ }
2963
+ }
2964
+ diagram2.append("line").attr("x1", startx).attr("y1", lineStartY).attr("x2", startx).attr("y2", lineStartY).attr("stroke-width", 0).attr("marker-start", "url(" + url + "#sequencenumber)");
2965
+ 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);
2966
+ }
2967
+ }, "drawMessage");
2968
+ var addActorRenderingData = /* @__PURE__ */ __name(function(diagram2, actors, createdActors, actorKeys, verticalPos, messages, isFooter) {
2969
+ let prevWidth = 0;
2970
+ let prevMargin = 0;
2971
+ let prevBox = void 0;
2972
+ let maxHeight = 0;
2973
+ for (const actorKey of actorKeys) {
2974
+ const actor = actors.get(actorKey);
2975
+ const box = actor.box;
2976
+ if (prevBox && prevBox != box) {
2977
+ if (!isFooter) {
2978
+ bounds.models.addBox(prevBox);
2979
+ }
2980
+ prevMargin += conf.boxMargin + prevBox.margin;
2981
+ }
2982
+ if (box && box != prevBox) {
2983
+ if (!isFooter) {
2984
+ box.x = prevWidth + prevMargin;
2985
+ box.y = verticalPos;
2986
+ }
2987
+ prevMargin += box.margin;
2988
+ }
2989
+ actor.width = actor.width || conf.width;
2990
+ actor.height = common_default.getMax(actor.height || conf.height, conf.height);
2991
+ actor.margin = actor.margin || conf.actorMargin;
2992
+ maxHeight = common_default.getMax(maxHeight, actor.height);
2993
+ if (createdActors.get(actor.name)) {
2994
+ prevMargin += actor.width / 2;
2995
+ }
2996
+ actor.x = prevWidth + prevMargin;
2997
+ actor.starty = bounds.getVerticalPos();
2998
+ bounds.insert(actor.x, verticalPos, actor.x + actor.width, actor.height);
2999
+ prevWidth += actor.width + prevMargin;
3000
+ if (actor.box) {
3001
+ actor.box.width = prevWidth + box.margin - actor.box.x;
3002
+ }
3003
+ prevMargin = actor.margin;
3004
+ prevBox = actor.box;
3005
+ bounds.models.addActor(actor);
3006
+ }
3007
+ if (prevBox && !isFooter) {
3008
+ bounds.models.addBox(prevBox);
3009
+ }
3010
+ bounds.bumpVerticalPos(maxHeight);
3011
+ }, "addActorRenderingData");
3012
+ var drawActors = /* @__PURE__ */ __name(async function(diagram2, actors, actorKeys, isFooter) {
3013
+ if (!isFooter) {
3014
+ for (const actorKey of actorKeys) {
3015
+ const actor = actors.get(actorKey);
3016
+ await svgDraw_default.drawActor(diagram2, actor, conf, false);
3017
+ }
3018
+ } else {
3019
+ let maxHeight = 0;
3020
+ bounds.bumpVerticalPos(conf.boxMargin * 2);
3021
+ for (const actorKey of actorKeys) {
3022
+ const actor = actors.get(actorKey);
3023
+ if (!actor.stopy) {
3024
+ actor.stopy = bounds.getVerticalPos();
3025
+ }
3026
+ const height = await svgDraw_default.drawActor(diagram2, actor, conf, true);
3027
+ maxHeight = common_default.getMax(maxHeight, height);
3028
+ }
3029
+ bounds.bumpVerticalPos(maxHeight + conf.boxMargin);
3030
+ }
3031
+ }, "drawActors");
3032
+ var drawActorsPopup = /* @__PURE__ */ __name(function(diagram2, actors, actorKeys, doc) {
3033
+ let maxHeight = 0;
3034
+ let maxWidth = 0;
3035
+ for (const actorKey of actorKeys) {
3036
+ const actor = actors.get(actorKey);
3037
+ const minMenuWidth = getRequiredPopupWidth(actor);
3038
+ const menuDimensions = svgDraw_default.drawPopup(
3039
+ diagram2,
3040
+ actor,
3041
+ minMenuWidth,
3042
+ conf,
3043
+ conf.forceMenus,
3044
+ doc
3045
+ );
3046
+ if (menuDimensions.height > maxHeight) {
3047
+ maxHeight = menuDimensions.height;
3048
+ }
3049
+ if (menuDimensions.width + actor.x > maxWidth) {
3050
+ maxWidth = menuDimensions.width + actor.x;
3051
+ }
3052
+ }
3053
+ return { maxHeight, maxWidth };
3054
+ }, "drawActorsPopup");
3055
+ var setConf = /* @__PURE__ */ __name(function(cnf) {
3056
+ assignWithDepth_default(conf, cnf);
3057
+ if (cnf.fontFamily) {
3058
+ conf.actorFontFamily = conf.noteFontFamily = conf.messageFontFamily = cnf.fontFamily;
3059
+ }
3060
+ if (cnf.fontSize) {
3061
+ conf.actorFontSize = conf.noteFontSize = conf.messageFontSize = cnf.fontSize;
3062
+ }
3063
+ if (cnf.fontWeight) {
3064
+ conf.actorFontWeight = conf.noteFontWeight = conf.messageFontWeight = cnf.fontWeight;
3065
+ }
3066
+ }, "setConf");
3067
+ var actorActivations = /* @__PURE__ */ __name(function(actor) {
3068
+ return bounds.activations.filter(function(activation) {
3069
+ return activation.actor === actor;
3070
+ });
3071
+ }, "actorActivations");
3072
+ var activationBounds = /* @__PURE__ */ __name(function(actor, actors) {
3073
+ const actorObj = actors.get(actor);
3074
+ const activations = actorActivations(actor);
3075
+ const left = activations.reduce(
3076
+ function(acc, activation) {
3077
+ return common_default.getMin(acc, activation.startx);
3078
+ },
3079
+ actorObj.x + actorObj.width / 2 - 1
3080
+ );
3081
+ const right = activations.reduce(
3082
+ function(acc, activation) {
3083
+ return common_default.getMax(acc, activation.stopx);
3084
+ },
3085
+ actorObj.x + actorObj.width / 2 + 1
3086
+ );
3087
+ return [left, right];
3088
+ }, "activationBounds");
3089
+ function adjustLoopHeightForWrap(loopWidths, msg, preMargin, postMargin, addLoopFn) {
3090
+ bounds.bumpVerticalPos(preMargin);
3091
+ let heightAdjust = postMargin;
3092
+ if (msg.id && msg.message && loopWidths[msg.id]) {
3093
+ const loopWidth = loopWidths[msg.id].width;
3094
+ const textConf = messageFont(conf);
3095
+ msg.message = utils_default.wrapLabel(`[${msg.message}]`, loopWidth - 2 * conf.wrapPadding, textConf);
3096
+ msg.width = loopWidth;
3097
+ msg.wrap = true;
3098
+ const textDims = utils_default.calculateTextDimensions(msg.message, textConf);
3099
+ const totalOffset = common_default.getMax(textDims.height, conf.labelBoxHeight);
3100
+ heightAdjust = postMargin + totalOffset;
3101
+ log.debug(`${totalOffset} - ${msg.message}`);
3102
+ }
3103
+ addLoopFn(msg);
3104
+ bounds.bumpVerticalPos(heightAdjust);
3105
+ }
3106
+ __name(adjustLoopHeightForWrap, "adjustLoopHeightForWrap");
3107
+ function adjustCreatedDestroyedData(msg, msgModel, lineStartY, index, actors, createdActors, destroyedActors) {
3108
+ function receiverAdjustment(actor, adjustment) {
3109
+ if (actor.x < actors.get(msg.from).x) {
3110
+ bounds.insert(
3111
+ msgModel.stopx - adjustment,
3112
+ msgModel.starty,
3113
+ msgModel.startx,
3114
+ msgModel.stopy + actor.height / 2 + conf.noteMargin
3115
+ );
3116
+ msgModel.stopx = msgModel.stopx + adjustment;
3117
+ } else {
3118
+ bounds.insert(
3119
+ msgModel.startx,
3120
+ msgModel.starty,
3121
+ msgModel.stopx + adjustment,
3122
+ msgModel.stopy + actor.height / 2 + conf.noteMargin
3123
+ );
3124
+ msgModel.stopx = msgModel.stopx - adjustment;
3125
+ }
3126
+ }
3127
+ __name(receiverAdjustment, "receiverAdjustment");
3128
+ function senderAdjustment(actor, adjustment) {
3129
+ if (actor.x < actors.get(msg.to).x) {
3130
+ bounds.insert(
3131
+ msgModel.startx - adjustment,
3132
+ msgModel.starty,
3133
+ msgModel.stopx,
3134
+ msgModel.stopy + actor.height / 2 + conf.noteMargin
3135
+ );
3136
+ msgModel.startx = msgModel.startx + adjustment;
3137
+ } else {
3138
+ bounds.insert(
3139
+ msgModel.stopx,
3140
+ msgModel.starty,
3141
+ msgModel.startx + adjustment,
3142
+ msgModel.stopy + actor.height / 2 + conf.noteMargin
3143
+ );
3144
+ msgModel.startx = msgModel.startx - adjustment;
3145
+ }
3146
+ }
3147
+ __name(senderAdjustment, "senderAdjustment");
3148
+ const actorArray = [
3149
+ PARTICIPANT_TYPE.ACTOR,
3150
+ PARTICIPANT_TYPE.CONTROL,
3151
+ PARTICIPANT_TYPE.ENTITY,
3152
+ PARTICIPANT_TYPE.DATABASE
3153
+ ];
3154
+ if (createdActors.get(msg.to) == index) {
3155
+ const actor = actors.get(msg.to);
3156
+ const adjustment = actorArray.includes(actor.type) ? ACTOR_TYPE_WIDTH / 2 + 3 : actor.width / 2 + 3;
3157
+ receiverAdjustment(actor, adjustment);
3158
+ actor.starty = lineStartY - actor.height / 2;
3159
+ bounds.bumpVerticalPos(actor.height / 2);
3160
+ } else if (destroyedActors.get(msg.from) == index) {
3161
+ const actor = actors.get(msg.from);
3162
+ if (conf.mirrorActors) {
3163
+ const adjustment = actorArray.includes(actor.type) ? ACTOR_TYPE_WIDTH / 2 : actor.width / 2;
3164
+ senderAdjustment(actor, adjustment);
3165
+ }
3166
+ actor.stopy = lineStartY - actor.height / 2;
3167
+ bounds.bumpVerticalPos(actor.height / 2);
3168
+ } else if (destroyedActors.get(msg.to) == index) {
3169
+ const actor = actors.get(msg.to);
3170
+ if (conf.mirrorActors) {
3171
+ const adjustment = actorArray.includes(actor.type) ? ACTOR_TYPE_WIDTH / 2 + 3 : actor.width / 2 + 3;
3172
+ receiverAdjustment(actor, adjustment);
3173
+ }
3174
+ actor.stopy = lineStartY - actor.height / 2;
3175
+ bounds.bumpVerticalPos(actor.height / 2);
3176
+ }
3177
+ }
3178
+ __name(adjustCreatedDestroyedData, "adjustCreatedDestroyedData");
3179
+ var draw = /* @__PURE__ */ __name(async function(_text, id, _version, diagObj) {
3180
+ const { securityLevel, sequence } = getConfig2();
3181
+ conf = sequence;
3182
+ let sandboxElement;
3183
+ if (securityLevel === "sandbox") {
3184
+ sandboxElement = select("#i" + id);
3185
+ }
3186
+ const root = securityLevel === "sandbox" ? select(sandboxElement.nodes()[0].contentDocument.body) : select("body");
3187
+ const doc = securityLevel === "sandbox" ? sandboxElement.nodes()[0].contentDocument : document;
3188
+ bounds.init();
3189
+ log.debug(diagObj.db);
3190
+ const diagram2 = securityLevel === "sandbox" ? root.select(`[id="${id}"]`) : select(`[id="${id}"]`);
3191
+ const actors = diagObj.db.getActors();
3192
+ const createdActors = diagObj.db.getCreatedActors();
3193
+ const destroyedActors = diagObj.db.getDestroyedActors();
3194
+ const boxes = diagObj.db.getBoxes();
3195
+ let actorKeys = diagObj.db.getActorKeys();
3196
+ const messages = diagObj.db.getMessages();
3197
+ const title = diagObj.db.getDiagramTitle();
3198
+ const hasBoxes = diagObj.db.hasAtLeastOneBox();
3199
+ const hasBoxTitles = diagObj.db.hasAtLeastOneBoxWithTitle();
3200
+ const maxMessageWidthPerActor = await getMaxMessageWidthPerActor(actors, messages, diagObj);
3201
+ conf.height = await calculateActorMargins(actors, maxMessageWidthPerActor, boxes);
3202
+ svgDraw_default.insertComputerIcon(diagram2);
3203
+ svgDraw_default.insertDatabaseIcon(diagram2);
3204
+ svgDraw_default.insertClockIcon(diagram2);
3205
+ if (hasBoxes) {
3206
+ bounds.bumpVerticalPos(conf.boxMargin);
3207
+ if (hasBoxTitles) {
3208
+ bounds.bumpVerticalPos(boxes[0].textMaxHeight);
3209
+ }
3210
+ }
3211
+ if (conf.hideUnusedParticipants === true) {
3212
+ const newActors = /* @__PURE__ */ new Set();
3213
+ messages.forEach((message) => {
3214
+ newActors.add(message.from);
3215
+ newActors.add(message.to);
3216
+ });
3217
+ actorKeys = actorKeys.filter((actorKey) => newActors.has(actorKey));
3218
+ }
3219
+ addActorRenderingData(diagram2, actors, createdActors, actorKeys, 0, messages, false);
3220
+ const loopWidths = await calculateLoopBounds(messages, actors, maxMessageWidthPerActor, diagObj);
3221
+ svgDraw_default.insertArrowHead(diagram2);
3222
+ svgDraw_default.insertArrowCrossHead(diagram2);
3223
+ svgDraw_default.insertArrowFilledHead(diagram2);
3224
+ svgDraw_default.insertSequenceNumber(diagram2);
3225
+ function activeEnd(msg, verticalPos) {
3226
+ const activationData = bounds.endActivation(msg);
3227
+ if (activationData.starty + 18 > verticalPos) {
3228
+ activationData.starty = verticalPos - 6;
3229
+ verticalPos += 12;
3230
+ }
3231
+ svgDraw_default.drawActivation(
3232
+ diagram2,
3233
+ activationData,
3234
+ verticalPos,
3235
+ conf,
3236
+ actorActivations(msg.from).length
3237
+ );
3238
+ bounds.insert(activationData.startx, verticalPos - 10, activationData.stopx, verticalPos);
3239
+ }
3240
+ __name(activeEnd, "activeEnd");
3241
+ let sequenceIndex = 1;
3242
+ let sequenceIndexStep = 1;
3243
+ const messagesToDraw = [];
3244
+ const backgrounds = [];
3245
+ let index = 0;
3246
+ for (const msg of messages) {
3247
+ let loopModel, noteModel, msgModel;
3248
+ switch (msg.type) {
3249
+ case diagObj.db.LINETYPE.NOTE:
3250
+ bounds.resetVerticalPos();
3251
+ noteModel = msg.noteModel;
3252
+ await drawNote(diagram2, noteModel);
3253
+ break;
3254
+ case diagObj.db.LINETYPE.ACTIVE_START:
3255
+ bounds.newActivation(msg, diagram2, actors);
3256
+ break;
3257
+ case diagObj.db.LINETYPE.ACTIVE_END:
3258
+ activeEnd(msg, bounds.getVerticalPos());
3259
+ break;
3260
+ case diagObj.db.LINETYPE.LOOP_START:
3261
+ adjustLoopHeightForWrap(
3262
+ loopWidths,
3263
+ msg,
3264
+ conf.boxMargin,
3265
+ conf.boxMargin + conf.boxTextMargin,
3266
+ (message) => bounds.newLoop(message)
3267
+ );
3268
+ break;
3269
+ case diagObj.db.LINETYPE.LOOP_END:
3270
+ loopModel = bounds.endLoop();
3271
+ await svgDraw_default.drawLoop(diagram2, loopModel, "loop", conf);
3272
+ bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());
3273
+ bounds.models.addLoop(loopModel);
3274
+ break;
3275
+ case diagObj.db.LINETYPE.RECT_START:
3276
+ adjustLoopHeightForWrap(
3277
+ loopWidths,
3278
+ msg,
3279
+ conf.boxMargin,
3280
+ conf.boxMargin,
3281
+ (message) => bounds.newLoop(void 0, message.message)
3282
+ );
3283
+ break;
3284
+ case diagObj.db.LINETYPE.RECT_END:
3285
+ loopModel = bounds.endLoop();
3286
+ backgrounds.push(loopModel);
3287
+ bounds.models.addLoop(loopModel);
3288
+ bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());
3289
+ break;
3290
+ case diagObj.db.LINETYPE.OPT_START:
3291
+ adjustLoopHeightForWrap(
3292
+ loopWidths,
3293
+ msg,
3294
+ conf.boxMargin,
3295
+ conf.boxMargin + conf.boxTextMargin,
3296
+ (message) => bounds.newLoop(message)
3297
+ );
3298
+ break;
3299
+ case diagObj.db.LINETYPE.OPT_END:
3300
+ loopModel = bounds.endLoop();
3301
+ await svgDraw_default.drawLoop(diagram2, loopModel, "opt", conf);
3302
+ bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());
3303
+ bounds.models.addLoop(loopModel);
3304
+ break;
3305
+ case diagObj.db.LINETYPE.ALT_START:
3306
+ adjustLoopHeightForWrap(
3307
+ loopWidths,
3308
+ msg,
3309
+ conf.boxMargin,
3310
+ conf.boxMargin + conf.boxTextMargin,
3311
+ (message) => bounds.newLoop(message)
3312
+ );
3313
+ break;
3314
+ case diagObj.db.LINETYPE.ALT_ELSE:
3315
+ adjustLoopHeightForWrap(
3316
+ loopWidths,
3317
+ msg,
3318
+ conf.boxMargin + conf.boxTextMargin,
3319
+ conf.boxMargin,
3320
+ (message) => bounds.addSectionToLoop(message)
3321
+ );
3322
+ break;
3323
+ case diagObj.db.LINETYPE.ALT_END:
3324
+ loopModel = bounds.endLoop();
3325
+ await svgDraw_default.drawLoop(diagram2, loopModel, "alt", conf);
3326
+ bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());
3327
+ bounds.models.addLoop(loopModel);
3328
+ break;
3329
+ case diagObj.db.LINETYPE.PAR_START:
3330
+ case diagObj.db.LINETYPE.PAR_OVER_START:
3331
+ adjustLoopHeightForWrap(
3332
+ loopWidths,
3333
+ msg,
3334
+ conf.boxMargin,
3335
+ conf.boxMargin + conf.boxTextMargin,
3336
+ (message) => bounds.newLoop(message)
3337
+ );
3338
+ bounds.saveVerticalPos();
3339
+ break;
3340
+ case diagObj.db.LINETYPE.PAR_AND:
3341
+ adjustLoopHeightForWrap(
3342
+ loopWidths,
3343
+ msg,
3344
+ conf.boxMargin + conf.boxTextMargin,
3345
+ conf.boxMargin,
3346
+ (message) => bounds.addSectionToLoop(message)
3347
+ );
3348
+ break;
3349
+ case diagObj.db.LINETYPE.PAR_END:
3350
+ loopModel = bounds.endLoop();
3351
+ await svgDraw_default.drawLoop(diagram2, loopModel, "par", conf);
3352
+ bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());
3353
+ bounds.models.addLoop(loopModel);
3354
+ break;
3355
+ case diagObj.db.LINETYPE.AUTONUMBER:
3356
+ sequenceIndex = msg.message.start || sequenceIndex;
3357
+ sequenceIndexStep = msg.message.step || sequenceIndexStep;
3358
+ if (msg.message.visible) {
3359
+ diagObj.db.enableSequenceNumbers();
3360
+ } else {
3361
+ diagObj.db.disableSequenceNumbers();
3362
+ }
3363
+ break;
3364
+ case diagObj.db.LINETYPE.CRITICAL_START:
3365
+ adjustLoopHeightForWrap(
3366
+ loopWidths,
3367
+ msg,
3368
+ conf.boxMargin,
3369
+ conf.boxMargin + conf.boxTextMargin,
3370
+ (message) => bounds.newLoop(message)
3371
+ );
3372
+ break;
3373
+ case diagObj.db.LINETYPE.CRITICAL_OPTION:
3374
+ adjustLoopHeightForWrap(
3375
+ loopWidths,
3376
+ msg,
3377
+ conf.boxMargin + conf.boxTextMargin,
3378
+ conf.boxMargin,
3379
+ (message) => bounds.addSectionToLoop(message)
3380
+ );
3381
+ break;
3382
+ case diagObj.db.LINETYPE.CRITICAL_END:
3383
+ loopModel = bounds.endLoop();
3384
+ await svgDraw_default.drawLoop(diagram2, loopModel, "critical", conf);
3385
+ bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());
3386
+ bounds.models.addLoop(loopModel);
3387
+ break;
3388
+ case diagObj.db.LINETYPE.BREAK_START:
3389
+ adjustLoopHeightForWrap(
3390
+ loopWidths,
3391
+ msg,
3392
+ conf.boxMargin,
3393
+ conf.boxMargin + conf.boxTextMargin,
3394
+ (message) => bounds.newLoop(message)
3395
+ );
3396
+ break;
3397
+ case diagObj.db.LINETYPE.BREAK_END:
3398
+ loopModel = bounds.endLoop();
3399
+ await svgDraw_default.drawLoop(diagram2, loopModel, "break", conf);
3400
+ bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());
3401
+ bounds.models.addLoop(loopModel);
3402
+ break;
3403
+ default:
3404
+ try {
3405
+ msgModel = msg.msgModel;
3406
+ msgModel.starty = bounds.getVerticalPos();
3407
+ msgModel.sequenceIndex = sequenceIndex;
3408
+ msgModel.sequenceVisible = diagObj.db.showSequenceNumbers();
3409
+ const lineStartY = await boundMessage(diagram2, msgModel);
3410
+ adjustCreatedDestroyedData(
3411
+ msg,
3412
+ msgModel,
3413
+ lineStartY,
3414
+ index,
3415
+ actors,
3416
+ createdActors,
3417
+ destroyedActors
3418
+ );
3419
+ messagesToDraw.push({ messageModel: msgModel, lineStartY });
3420
+ bounds.models.addMessage(msgModel);
3421
+ } catch (e) {
3422
+ log.error("error while drawing message", e);
3423
+ }
3424
+ }
3425
+ if ([
3426
+ diagObj.db.LINETYPE.SOLID_OPEN,
3427
+ diagObj.db.LINETYPE.DOTTED_OPEN,
3428
+ diagObj.db.LINETYPE.SOLID,
3429
+ diagObj.db.LINETYPE.DOTTED,
3430
+ diagObj.db.LINETYPE.SOLID_CROSS,
3431
+ diagObj.db.LINETYPE.DOTTED_CROSS,
3432
+ diagObj.db.LINETYPE.SOLID_POINT,
3433
+ diagObj.db.LINETYPE.DOTTED_POINT,
3434
+ diagObj.db.LINETYPE.BIDIRECTIONAL_SOLID,
3435
+ diagObj.db.LINETYPE.BIDIRECTIONAL_DOTTED
3436
+ ].includes(msg.type)) {
3437
+ sequenceIndex = sequenceIndex + sequenceIndexStep;
3438
+ }
3439
+ index++;
3440
+ }
3441
+ log.debug("createdActors", createdActors);
3442
+ log.debug("destroyedActors", destroyedActors);
3443
+ await drawActors(diagram2, actors, actorKeys, false);
3444
+ for (const e of messagesToDraw) {
3445
+ await drawMessage(diagram2, e.messageModel, e.lineStartY, diagObj);
3446
+ }
3447
+ if (conf.mirrorActors) {
3448
+ await drawActors(diagram2, actors, actorKeys, true);
3449
+ }
3450
+ backgrounds.forEach((e) => svgDraw_default.drawBackgroundRect(diagram2, e));
3451
+ fixLifeLineHeights(diagram2, actors, actorKeys, conf);
3452
+ for (const box2 of bounds.models.boxes) {
3453
+ box2.height = bounds.getVerticalPos() - box2.y;
3454
+ bounds.insert(box2.x, box2.y, box2.x + box2.width, box2.height);
3455
+ const boxPadding = conf.boxMargin * 2;
3456
+ box2.startx = box2.x - boxPadding;
3457
+ box2.starty = box2.y - boxPadding * 0.25;
3458
+ box2.stopx = box2.startx + box2.width + 2 * boxPadding;
3459
+ box2.stopy = box2.starty + box2.height + boxPadding * 0.75;
3460
+ box2.stroke = "rgb(0,0,0, 0.5)";
3461
+ svgDraw_default.drawBox(diagram2, box2, conf);
3462
+ }
3463
+ if (hasBoxes) {
3464
+ bounds.bumpVerticalPos(conf.boxMargin);
3465
+ }
3466
+ const requiredBoxSize = drawActorsPopup(diagram2, actors, actorKeys, doc);
3467
+ const { bounds: box } = bounds.getBounds();
3468
+ if (box.startx === void 0) {
3469
+ box.startx = 0;
3470
+ }
3471
+ if (box.starty === void 0) {
3472
+ box.starty = 0;
3473
+ }
3474
+ if (box.stopx === void 0) {
3475
+ box.stopx = 0;
3476
+ }
3477
+ if (box.stopy === void 0) {
3478
+ box.stopy = 0;
3479
+ }
3480
+ let boxHeight = box.stopy - box.starty;
3481
+ if (boxHeight < requiredBoxSize.maxHeight) {
3482
+ boxHeight = requiredBoxSize.maxHeight;
3483
+ }
3484
+ let height = boxHeight + 2 * conf.diagramMarginY;
3485
+ if (conf.mirrorActors) {
3486
+ height = height - conf.boxMargin + conf.bottomMarginAdj;
3487
+ }
3488
+ let boxWidth = box.stopx - box.startx;
3489
+ if (boxWidth < requiredBoxSize.maxWidth) {
3490
+ boxWidth = requiredBoxSize.maxWidth;
3491
+ }
3492
+ const width = boxWidth + 2 * conf.diagramMarginX;
3493
+ if (title) {
3494
+ diagram2.append("text").text(title).attr("x", (box.stopx - box.startx) / 2 - 2 * conf.diagramMarginX).attr("y", -25);
3495
+ }
3496
+ configureSvgSize(diagram2, height, width, conf.useMaxWidth);
3497
+ const extraVertForTitle = title ? 40 : 0;
3498
+ diagram2.attr(
3499
+ "viewBox",
3500
+ box.startx - conf.diagramMarginX + " -" + (conf.diagramMarginY + extraVertForTitle) + " " + width + " " + (height + extraVertForTitle)
3501
+ );
3502
+ log.debug(`models:`, bounds.models);
3503
+ }, "draw");
3504
+ async function getMaxMessageWidthPerActor(actors, messages, diagObj) {
3505
+ const maxMessageWidthPerActor = {};
3506
+ for (const msg of messages) {
3507
+ if (actors.get(msg.to) && actors.get(msg.from)) {
3508
+ const actor = actors.get(msg.to);
3509
+ if (msg.placement === diagObj.db.PLACEMENT.LEFTOF && !actor.prevActor) {
3510
+ continue;
3511
+ }
3512
+ if (msg.placement === diagObj.db.PLACEMENT.RIGHTOF && !actor.nextActor) {
3513
+ continue;
3514
+ }
3515
+ const isNote = msg.placement !== void 0;
3516
+ const isMessage = !isNote;
3517
+ const textFont = isNote ? noteFont(conf) : messageFont(conf);
3518
+ const wrappedMessage = msg.wrap ? utils_default.wrapLabel(msg.message, conf.width - 2 * conf.wrapPadding, textFont) : msg.message;
3519
+ const messageDimensions = hasKatex(wrappedMessage) ? await calculateMathMLDimensions(msg.message, getConfig2()) : utils_default.calculateTextDimensions(wrappedMessage, textFont);
3520
+ const messageWidth = messageDimensions.width + 2 * conf.wrapPadding;
3521
+ if (isMessage && msg.from === actor.nextActor) {
3522
+ maxMessageWidthPerActor[msg.to] = common_default.getMax(
3523
+ maxMessageWidthPerActor[msg.to] || 0,
3524
+ messageWidth
3525
+ );
3526
+ } else if (isMessage && msg.from === actor.prevActor) {
3527
+ maxMessageWidthPerActor[msg.from] = common_default.getMax(
3528
+ maxMessageWidthPerActor[msg.from] || 0,
3529
+ messageWidth
3530
+ );
3531
+ } else if (isMessage && msg.from === msg.to) {
3532
+ maxMessageWidthPerActor[msg.from] = common_default.getMax(
3533
+ maxMessageWidthPerActor[msg.from] || 0,
3534
+ messageWidth / 2
3535
+ );
3536
+ maxMessageWidthPerActor[msg.to] = common_default.getMax(
3537
+ maxMessageWidthPerActor[msg.to] || 0,
3538
+ messageWidth / 2
3539
+ );
3540
+ } else if (msg.placement === diagObj.db.PLACEMENT.RIGHTOF) {
3541
+ maxMessageWidthPerActor[msg.from] = common_default.getMax(
3542
+ maxMessageWidthPerActor[msg.from] || 0,
3543
+ messageWidth
3544
+ );
3545
+ } else if (msg.placement === diagObj.db.PLACEMENT.LEFTOF) {
3546
+ maxMessageWidthPerActor[actor.prevActor] = common_default.getMax(
3547
+ maxMessageWidthPerActor[actor.prevActor] || 0,
3548
+ messageWidth
3549
+ );
3550
+ } else if (msg.placement === diagObj.db.PLACEMENT.OVER) {
3551
+ if (actor.prevActor) {
3552
+ maxMessageWidthPerActor[actor.prevActor] = common_default.getMax(
3553
+ maxMessageWidthPerActor[actor.prevActor] || 0,
3554
+ messageWidth / 2
3555
+ );
3556
+ }
3557
+ if (actor.nextActor) {
3558
+ maxMessageWidthPerActor[msg.from] = common_default.getMax(
3559
+ maxMessageWidthPerActor[msg.from] || 0,
3560
+ messageWidth / 2
3561
+ );
3562
+ }
3563
+ }
3564
+ }
3565
+ }
3566
+ log.debug("maxMessageWidthPerActor:", maxMessageWidthPerActor);
3567
+ return maxMessageWidthPerActor;
3568
+ }
3569
+ __name(getMaxMessageWidthPerActor, "getMaxMessageWidthPerActor");
3570
+ var getRequiredPopupWidth = /* @__PURE__ */ __name(function(actor) {
3571
+ let requiredPopupWidth = 0;
3572
+ const textFont = actorFont(conf);
3573
+ for (const key in actor.links) {
3574
+ const labelDimensions = utils_default.calculateTextDimensions(key, textFont);
3575
+ const labelWidth = labelDimensions.width + 2 * conf.wrapPadding + 2 * conf.boxMargin;
3576
+ if (requiredPopupWidth < labelWidth) {
3577
+ requiredPopupWidth = labelWidth;
3578
+ }
3579
+ }
3580
+ return requiredPopupWidth;
3581
+ }, "getRequiredPopupWidth");
3582
+ async function calculateActorMargins(actors, actorToMessageWidth, boxes) {
3583
+ let maxHeight = 0;
3584
+ for (const prop of actors.keys()) {
3585
+ const actor = actors.get(prop);
3586
+ if (actor.wrap) {
3587
+ actor.description = utils_default.wrapLabel(
3588
+ actor.description,
3589
+ conf.width - 2 * conf.wrapPadding,
3590
+ actorFont(conf)
3591
+ );
3592
+ }
3593
+ const actDims = hasKatex(actor.description) ? await calculateMathMLDimensions(actor.description, getConfig2()) : utils_default.calculateTextDimensions(actor.description, actorFont(conf));
3594
+ actor.width = actor.wrap ? conf.width : common_default.getMax(conf.width, actDims.width + 2 * conf.wrapPadding);
3595
+ actor.height = actor.wrap ? common_default.getMax(actDims.height, conf.height) : conf.height;
3596
+ maxHeight = common_default.getMax(maxHeight, actor.height);
3597
+ }
3598
+ for (const actorKey in actorToMessageWidth) {
3599
+ const actor = actors.get(actorKey);
3600
+ if (!actor) {
3601
+ continue;
3602
+ }
3603
+ const nextActor = actors.get(actor.nextActor);
3604
+ if (!nextActor) {
3605
+ const messageWidth2 = actorToMessageWidth[actorKey];
3606
+ const actorWidth2 = messageWidth2 + conf.actorMargin - actor.width / 2;
3607
+ actor.margin = common_default.getMax(actorWidth2, conf.actorMargin);
3608
+ continue;
3609
+ }
3610
+ const messageWidth = actorToMessageWidth[actorKey];
3611
+ const actorWidth = messageWidth + conf.actorMargin - actor.width / 2 - nextActor.width / 2;
3612
+ actor.margin = common_default.getMax(actorWidth, conf.actorMargin);
3613
+ }
3614
+ let maxBoxHeight = 0;
3615
+ boxes.forEach((box) => {
3616
+ const textFont = messageFont(conf);
3617
+ let totalWidth = box.actorKeys.reduce((total, aKey) => {
3618
+ return total += actors.get(aKey).width + (actors.get(aKey).margin || 0);
3619
+ }, 0);
3620
+ const standardBoxPadding = conf.boxMargin * 8;
3621
+ totalWidth += standardBoxPadding;
3622
+ totalWidth -= 2 * conf.boxTextMargin;
3623
+ if (box.wrap) {
3624
+ box.name = utils_default.wrapLabel(box.name, totalWidth - 2 * conf.wrapPadding, textFont);
3625
+ }
3626
+ const boxMsgDimensions = utils_default.calculateTextDimensions(box.name, textFont);
3627
+ maxBoxHeight = common_default.getMax(boxMsgDimensions.height, maxBoxHeight);
3628
+ const minWidth = common_default.getMax(totalWidth, boxMsgDimensions.width + 2 * conf.wrapPadding);
3629
+ box.margin = conf.boxTextMargin;
3630
+ if (totalWidth < minWidth) {
3631
+ const missing = (minWidth - totalWidth) / 2;
3632
+ box.margin += missing;
3633
+ }
3634
+ });
3635
+ boxes.forEach((box) => box.textMaxHeight = maxBoxHeight);
3636
+ return common_default.getMax(maxHeight, conf.height);
3637
+ }
3638
+ __name(calculateActorMargins, "calculateActorMargins");
3639
+ var buildNoteModel = /* @__PURE__ */ __name(async function(msg, actors, diagObj) {
3640
+ const fromActor = actors.get(msg.from);
3641
+ const toActor = actors.get(msg.to);
3642
+ const startx = fromActor.x;
3643
+ const stopx = toActor.x;
3644
+ const shouldWrap = msg.wrap && msg.message;
3645
+ let textDimensions = hasKatex(msg.message) ? await calculateMathMLDimensions(msg.message, getConfig2()) : utils_default.calculateTextDimensions(
3646
+ shouldWrap ? utils_default.wrapLabel(msg.message, conf.width, noteFont(conf)) : msg.message,
3647
+ noteFont(conf)
3648
+ );
3649
+ const noteModel = {
3650
+ width: shouldWrap ? conf.width : common_default.getMax(conf.width, textDimensions.width + 2 * conf.noteMargin),
3651
+ height: 0,
3652
+ startx: fromActor.x,
3653
+ stopx: 0,
3654
+ starty: 0,
3655
+ stopy: 0,
3656
+ message: msg.message
3657
+ };
3658
+ if (msg.placement === diagObj.db.PLACEMENT.RIGHTOF) {
3659
+ noteModel.width = shouldWrap ? common_default.getMax(conf.width, textDimensions.width) : common_default.getMax(
3660
+ fromActor.width / 2 + toActor.width / 2,
3661
+ textDimensions.width + 2 * conf.noteMargin
3662
+ );
3663
+ noteModel.startx = startx + (fromActor.width + conf.actorMargin) / 2;
3664
+ } else if (msg.placement === diagObj.db.PLACEMENT.LEFTOF) {
3665
+ noteModel.width = shouldWrap ? common_default.getMax(conf.width, textDimensions.width + 2 * conf.noteMargin) : common_default.getMax(
3666
+ fromActor.width / 2 + toActor.width / 2,
3667
+ textDimensions.width + 2 * conf.noteMargin
3668
+ );
3669
+ noteModel.startx = startx - noteModel.width + (fromActor.width - conf.actorMargin) / 2;
3670
+ } else if (msg.to === msg.from) {
3671
+ textDimensions = utils_default.calculateTextDimensions(
3672
+ shouldWrap ? utils_default.wrapLabel(msg.message, common_default.getMax(conf.width, fromActor.width), noteFont(conf)) : msg.message,
3673
+ noteFont(conf)
3674
+ );
3675
+ noteModel.width = shouldWrap ? common_default.getMax(conf.width, fromActor.width) : common_default.getMax(fromActor.width, conf.width, textDimensions.width + 2 * conf.noteMargin);
3676
+ noteModel.startx = startx + (fromActor.width - noteModel.width) / 2;
3677
+ } else {
3678
+ noteModel.width = Math.abs(startx + fromActor.width / 2 - (stopx + toActor.width / 2)) + conf.actorMargin;
3679
+ noteModel.startx = startx < stopx ? startx + fromActor.width / 2 - conf.actorMargin / 2 : stopx + toActor.width / 2 - conf.actorMargin / 2;
3680
+ }
3681
+ if (shouldWrap) {
3682
+ noteModel.message = utils_default.wrapLabel(
3683
+ msg.message,
3684
+ noteModel.width - 2 * conf.wrapPadding,
3685
+ noteFont(conf)
3686
+ );
3687
+ }
3688
+ log.debug(
3689
+ `NM:[${noteModel.startx},${noteModel.stopx},${noteModel.starty},${noteModel.stopy}:${noteModel.width},${noteModel.height}=${msg.message}]`
3690
+ );
3691
+ return noteModel;
3692
+ }, "buildNoteModel");
3693
+ var buildMessageModel = /* @__PURE__ */ __name(function(msg, actors, diagObj) {
3694
+ if (![
3695
+ diagObj.db.LINETYPE.SOLID_OPEN,
3696
+ diagObj.db.LINETYPE.DOTTED_OPEN,
3697
+ diagObj.db.LINETYPE.SOLID,
3698
+ diagObj.db.LINETYPE.DOTTED,
3699
+ diagObj.db.LINETYPE.SOLID_CROSS,
3700
+ diagObj.db.LINETYPE.DOTTED_CROSS,
3701
+ diagObj.db.LINETYPE.SOLID_POINT,
3702
+ diagObj.db.LINETYPE.DOTTED_POINT,
3703
+ diagObj.db.LINETYPE.BIDIRECTIONAL_SOLID,
3704
+ diagObj.db.LINETYPE.BIDIRECTIONAL_DOTTED
3705
+ ].includes(msg.type)) {
3706
+ return {};
3707
+ }
3708
+ const [fromLeft, fromRight] = activationBounds(msg.from, actors);
3709
+ const [toLeft, toRight] = activationBounds(msg.to, actors);
3710
+ const isArrowToRight = fromLeft <= toLeft;
3711
+ let startx = isArrowToRight ? fromRight : fromLeft;
3712
+ let stopx = isArrowToRight ? toLeft : toRight;
3713
+ const isArrowToActivation = Math.abs(toLeft - toRight) > 2;
3714
+ const adjustValue = /* @__PURE__ */ __name((value) => {
3715
+ return isArrowToRight ? -value : value;
3716
+ }, "adjustValue");
3717
+ if (msg.from === msg.to) {
3718
+ stopx = startx;
3719
+ } else {
3720
+ if (msg.activate && !isArrowToActivation) {
3721
+ stopx += adjustValue(conf.activationWidth / 2 - 1);
3722
+ }
3723
+ if (![diagObj.db.LINETYPE.SOLID_OPEN, diagObj.db.LINETYPE.DOTTED_OPEN].includes(msg.type)) {
3724
+ stopx += adjustValue(3);
3725
+ }
3726
+ if ([diagObj.db.LINETYPE.BIDIRECTIONAL_SOLID, diagObj.db.LINETYPE.BIDIRECTIONAL_DOTTED].includes(
3727
+ msg.type
3728
+ )) {
3729
+ startx -= adjustValue(3);
3730
+ }
3731
+ }
3732
+ const allBounds = [fromLeft, fromRight, toLeft, toRight];
3733
+ const boundedWidth = Math.abs(startx - stopx);
3734
+ if (msg.wrap && msg.message) {
3735
+ msg.message = utils_default.wrapLabel(
3736
+ msg.message,
3737
+ common_default.getMax(boundedWidth + 2 * conf.wrapPadding, conf.width),
3738
+ messageFont(conf)
3739
+ );
3740
+ }
3741
+ const msgDims = utils_default.calculateTextDimensions(msg.message, messageFont(conf));
3742
+ return {
3743
+ width: common_default.getMax(
3744
+ msg.wrap ? 0 : msgDims.width + 2 * conf.wrapPadding,
3745
+ boundedWidth + 2 * conf.wrapPadding,
3746
+ conf.width
3747
+ ),
3748
+ height: 0,
3749
+ startx,
3750
+ stopx,
3751
+ starty: 0,
3752
+ stopy: 0,
3753
+ message: msg.message,
3754
+ type: msg.type,
3755
+ wrap: msg.wrap,
3756
+ fromBounds: Math.min.apply(null, allBounds),
3757
+ toBounds: Math.max.apply(null, allBounds)
3758
+ };
3759
+ }, "buildMessageModel");
3760
+ var calculateLoopBounds = /* @__PURE__ */ __name(async function(messages, actors, _maxWidthPerActor, diagObj) {
3761
+ const loops = {};
3762
+ const stack = [];
3763
+ let current, noteModel, msgModel;
3764
+ for (const msg of messages) {
3765
+ switch (msg.type) {
3766
+ case diagObj.db.LINETYPE.LOOP_START:
3767
+ case diagObj.db.LINETYPE.ALT_START:
3768
+ case diagObj.db.LINETYPE.OPT_START:
3769
+ case diagObj.db.LINETYPE.PAR_START:
3770
+ case diagObj.db.LINETYPE.PAR_OVER_START:
3771
+ case diagObj.db.LINETYPE.CRITICAL_START:
3772
+ case diagObj.db.LINETYPE.BREAK_START:
3773
+ stack.push({
3774
+ id: msg.id,
3775
+ msg: msg.message,
3776
+ from: Number.MAX_SAFE_INTEGER,
3777
+ to: Number.MIN_SAFE_INTEGER,
3778
+ width: 0
3779
+ });
3780
+ break;
3781
+ case diagObj.db.LINETYPE.ALT_ELSE:
3782
+ case diagObj.db.LINETYPE.PAR_AND:
3783
+ case diagObj.db.LINETYPE.CRITICAL_OPTION:
3784
+ if (msg.message) {
3785
+ current = stack.pop();
3786
+ loops[current.id] = current;
3787
+ loops[msg.id] = current;
3788
+ stack.push(current);
3789
+ }
3790
+ break;
3791
+ case diagObj.db.LINETYPE.LOOP_END:
3792
+ case diagObj.db.LINETYPE.ALT_END:
3793
+ case diagObj.db.LINETYPE.OPT_END:
3794
+ case diagObj.db.LINETYPE.PAR_END:
3795
+ case diagObj.db.LINETYPE.CRITICAL_END:
3796
+ case diagObj.db.LINETYPE.BREAK_END:
3797
+ current = stack.pop();
3798
+ loops[current.id] = current;
3799
+ break;
3800
+ case diagObj.db.LINETYPE.ACTIVE_START:
3801
+ {
3802
+ const actorRect = actors.get(msg.from ? msg.from : msg.to.actor);
3803
+ const stackedSize = actorActivations(msg.from ? msg.from : msg.to.actor).length;
3804
+ const x = actorRect.x + actorRect.width / 2 + (stackedSize - 1) * conf.activationWidth / 2;
3805
+ const toAdd = {
3806
+ startx: x,
3807
+ stopx: x + conf.activationWidth,
3808
+ actor: msg.from,
3809
+ enabled: true
3810
+ };
3811
+ bounds.activations.push(toAdd);
3812
+ }
3813
+ break;
3814
+ case diagObj.db.LINETYPE.ACTIVE_END:
3815
+ {
3816
+ const lastActorActivationIdx = bounds.activations.map((a) => a.actor).lastIndexOf(msg.from);
3817
+ bounds.activations.splice(lastActorActivationIdx, 1).splice(0, 1);
3818
+ }
3819
+ break;
3820
+ }
3821
+ const isNote = msg.placement !== void 0;
3822
+ if (isNote) {
3823
+ noteModel = await buildNoteModel(msg, actors, diagObj);
3824
+ msg.noteModel = noteModel;
3825
+ stack.forEach((stk) => {
3826
+ current = stk;
3827
+ current.from = common_default.getMin(current.from, noteModel.startx);
3828
+ current.to = common_default.getMax(current.to, noteModel.startx + noteModel.width);
3829
+ current.width = common_default.getMax(current.width, Math.abs(current.from - current.to)) - conf.labelBoxWidth;
3830
+ });
3831
+ } else {
3832
+ msgModel = buildMessageModel(msg, actors, diagObj);
3833
+ msg.msgModel = msgModel;
3834
+ if (msgModel.startx && msgModel.stopx && stack.length > 0) {
3835
+ stack.forEach((stk) => {
3836
+ current = stk;
3837
+ if (msgModel.startx === msgModel.stopx) {
3838
+ const from = actors.get(msg.from);
3839
+ const to = actors.get(msg.to);
3840
+ current.from = common_default.getMin(
3841
+ from.x - msgModel.width / 2,
3842
+ from.x - from.width / 2,
3843
+ current.from
3844
+ );
3845
+ current.to = common_default.getMax(
3846
+ to.x + msgModel.width / 2,
3847
+ to.x + from.width / 2,
3848
+ current.to
3849
+ );
3850
+ current.width = common_default.getMax(current.width, Math.abs(current.to - current.from)) - conf.labelBoxWidth;
3851
+ } else {
3852
+ current.from = common_default.getMin(msgModel.startx, current.from);
3853
+ current.to = common_default.getMax(msgModel.stopx, current.to);
3854
+ current.width = common_default.getMax(current.width, msgModel.width) - conf.labelBoxWidth;
3855
+ }
3856
+ });
3857
+ }
3858
+ }
3859
+ }
3860
+ bounds.activations = [];
3861
+ log.debug("Loop type widths:", loops);
3862
+ return loops;
3863
+ }, "calculateLoopBounds");
3864
+ var sequenceRenderer_default = {
3865
+ bounds,
3866
+ drawActors,
3867
+ drawActorsPopup,
3868
+ setConf,
3869
+ draw
3870
+ };
3871
+
3872
+ // src/diagrams/sequence/sequenceDiagram.ts
3873
+ var diagram = {
3874
+ parser: sequenceDiagram_default,
3875
+ get db() {
3876
+ return new SequenceDB();
3877
+ },
3878
+ renderer: sequenceRenderer_default,
3879
+ styles: styles_default,
3880
+ init: /* @__PURE__ */ __name((cnf) => {
3881
+ if (!cnf.sequence) {
3882
+ cnf.sequence = {};
3883
+ }
3884
+ if (cnf.wrap) {
3885
+ cnf.sequence.wrap = cnf.wrap;
3886
+ setConfig2({ sequence: { wrap: cnf.wrap } });
3887
+ }
3888
+ }, "init")
3889
+ };
3890
+
3891
+ export { diagram };