@fecp/designer 5.6.6 → 5.6.8

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 (1641) hide show
  1. package/es/_virtual/advancedFormat.mjs +2 -2
  2. package/es/_virtual/constants.mjs +4 -0
  3. package/es/_virtual/cose-base.mjs +4 -0
  4. package/es/_virtual/cose-base2.mjs +4 -0
  5. package/es/_virtual/customParseFormat.mjs +2 -2
  6. package/es/_virtual/cytoscape-cose-bilkent.mjs +7 -0
  7. package/es/_virtual/cytoscape-cose-bilkent2.mjs +4 -0
  8. package/es/_virtual/cytoscape-fcose.mjs +7 -0
  9. package/es/_virtual/cytoscape-fcose2.mjs +4 -0
  10. package/es/_virtual/dayjs.min.mjs +2 -2
  11. package/es/_virtual/duration.mjs +7 -0
  12. package/es/_virtual/duration2.mjs +4 -0
  13. package/es/_virtual/index.mjs +4 -4
  14. package/es/_virtual/index2.mjs +3 -2
  15. package/es/_virtual/index3.mjs +7 -0
  16. package/es/_virtual/index4.mjs +4 -0
  17. package/es/_virtual/index5.mjs +4 -0
  18. package/es/_virtual/isoWeek.mjs +7 -0
  19. package/es/_virtual/isoWeek2.mjs +4 -0
  20. package/es/_virtual/layout-base.mjs +4 -0
  21. package/es/_virtual/layout-base2.mjs +4 -0
  22. package/es/designer/package.json.mjs +1 -1
  23. package/es/designer/src/components/DocumentParam.vue.mjs +1 -1
  24. package/es/designer/src/components/ParamsConfig.vue2.mjs +1 -1
  25. package/es/designer/src/components/ValueSelector.vue2.mjs +5 -7
  26. package/es/designer/src/layout/aside/HiddenFieldDialog.vue.mjs +1 -1
  27. package/es/designer/src/packages/advancedFilter/ValueInput.vue2.mjs +1 -1
  28. package/es/designer/src/packages/dataLinkage/index.vue.mjs +1 -1
  29. package/es/designer/src/packages/dialogGlobal/index.vue.mjs +1 -1
  30. package/es/designer/src/packages/eventFlow/dialog/action/RiskSch.vue.mjs +1 -1
  31. package/es/designer/src/packages/form/headerBtn.vue.mjs +47 -25
  32. package/es/designer/src/packages/form/property/approvalHistory.vue.mjs +1 -1
  33. package/es/designer/src/packages/form/property/contract.vue.mjs +1 -1
  34. package/es/designer/src/packages/form/property/subForm.vue.mjs +1 -1
  35. package/es/designer/src/packages/importantDataChange/index.vue.mjs +184 -0
  36. package/es/designer/src/packages/importantDataChange/useImportantDataChangeDialog.mjs +16 -0
  37. package/es/designer/src/packages/prod/index.vue.mjs +1 -1
  38. package/es/designer/src/packages/table/headerBtn.vue.mjs +1 -1
  39. package/es/designer.css +962 -106
  40. package/es/node_modules/@braintree/sanitize-url/dist/constants.mjs +20 -0
  41. package/es/node_modules/@braintree/sanitize-url/dist/index.mjs +75 -0
  42. package/es/node_modules/@element-plus/icons-vue/dist/index.mjs +32 -0
  43. package/es/node_modules/@iconify/utils/lib/customisations/defaults.mjs +13 -0
  44. package/es/node_modules/@iconify/utils/lib/icon/defaults.mjs +26 -0
  45. package/es/node_modules/@iconify/utils/lib/icon/merge.mjs +13 -0
  46. package/es/node_modules/@iconify/utils/lib/icon/name.mjs +45 -0
  47. package/es/node_modules/@iconify/utils/lib/icon/transformations.mjs +11 -0
  48. package/es/node_modules/@iconify/utils/lib/icon-set/get-icon.mjs +22 -0
  49. package/es/node_modules/@iconify/utils/lib/icon-set/tree.mjs +20 -0
  50. package/es/node_modules/@iconify/utils/lib/svg/build.mjs +103 -0
  51. package/es/node_modules/@iconify/utils/lib/svg/defs.mjs +29 -0
  52. package/es/node_modules/@iconify/utils/lib/svg/html.mjs +8 -0
  53. package/es/node_modules/@iconify/utils/lib/svg/id.mjs +25 -0
  54. package/es/node_modules/@iconify/utils/lib/svg/size.mjs +26 -0
  55. package/es/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/architecture-TIHT7OUA.mjs +6 -0
  56. package/es/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-5FCAYU7R.mjs +35 -0
  57. package/es/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-5HE753X5.mjs +49 -0
  58. package/es/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-5JV3BV7I.mjs +88 -0
  59. package/es/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-5TONJI2A.mjs +76 -0
  60. package/es/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-BIQX33UG.mjs +31 -0
  61. package/es/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-CQNSW5MT.mjs +57 -0
  62. package/es/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-CYSBUYHQ.mjs +31 -0
  63. package/es/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-EMLP6XTP.mjs +31 -0
  64. package/es/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-JG7HCLWE.mjs +76 -0
  65. package/es/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-KEIR6QF5.mjs +30695 -0
  66. package/es/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-MOZMSUNE.mjs +48 -0
  67. package/es/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-OSBZ3O6U.mjs +31 -0
  68. package/es/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-QBLGF6JB.mjs +31 -0
  69. package/es/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-R7FJI6CG.mjs +102 -0
  70. package/es/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-U6XO7XAA.mjs +79 -0
  71. package/es/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-YOTPTUD7.mjs +39 -0
  72. package/es/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/cynefin-VYW2F7L2.mjs +6 -0
  73. package/es/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/eventmodeling-45OFAUF4.mjs +6 -0
  74. package/es/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/gitGraph-TEB2WS4Q.mjs +6 -0
  75. package/es/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-DKCQHKI2.mjs +6 -0
  76. package/es/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-7NZHBO7P.mjs +6 -0
  77. package/es/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-RZYD4A2V.mjs +6 -0
  78. package/es/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-I7S5WNFK.mjs +6 -0
  79. package/es/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/railroad-3IZDKUUU.mjs +6 -0
  80. package/es/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/railroad-abnf-AHOZXSZD.mjs +6 -0
  81. package/es/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/railroad-ebnf-EBAXGLYW.mjs +6 -0
  82. package/es/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/railroad-peg-LSFZ7HO6.mjs +6 -0
  83. package/es/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treeView-QDETBFTQ.mjs +6 -0
  84. package/es/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-6X3UGDF4.mjs +6 -0
  85. package/es/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/wardley-OPB4EBWU.mjs +6 -0
  86. package/es/node_modules/@mermaid-js/parser/dist/mermaid-parser.core.mjs +276 -0
  87. package/es/node_modules/@upsetjs/venn.js/build/venn.esm.mjs +1465 -0
  88. package/es/node_modules/@vant/use/dist/index.esm.mjs +1 -1
  89. package/es/node_modules/cytoscape/dist/cytoscape.esm.mjs +30346 -0
  90. package/es/node_modules/cytoscape-cose-bilkent/cytoscape-cose-bilkent.mjs +374 -0
  91. package/es/node_modules/cytoscape-cose-bilkent/node_modules/cose-base/cose-base.mjs +1090 -0
  92. package/es/node_modules/cytoscape-cose-bilkent/node_modules/layout-base/layout-base.mjs +3197 -0
  93. package/es/node_modules/cytoscape-fcose/cytoscape-fcose.mjs +1278 -0
  94. package/es/node_modules/cytoscape-fcose/node_modules/cose-base/cose-base.mjs +2555 -0
  95. package/es/node_modules/cytoscape-fcose/node_modules/layout-base/layout-base.mjs +3745 -0
  96. package/es/node_modules/d3/node_modules/d3-shape/src/arc.mjs +133 -0
  97. package/es/node_modules/d3/node_modules/d3-shape/src/array.mjs +6 -0
  98. package/es/node_modules/d3/node_modules/d3-shape/src/constant.mjs +8 -0
  99. package/es/node_modules/d3/node_modules/d3-shape/src/curve/basis.mjs +66 -0
  100. package/es/node_modules/d3/node_modules/d3-shape/src/curve/basisClosed.mjs +63 -0
  101. package/es/node_modules/d3/node_modules/d3-shape/src/curve/basisOpen.mjs +50 -0
  102. package/es/node_modules/d3/node_modules/d3-shape/src/curve/bump.mjs +49 -0
  103. package/es/node_modules/d3/node_modules/d3-shape/src/curve/bundle.mjs +43 -0
  104. package/es/node_modules/d3/node_modules/d3-shape/src/curve/cardinal.mjs +73 -0
  105. package/es/node_modules/d3/node_modules/d3-shape/src/curve/cardinalClosed.mjs +69 -0
  106. package/es/node_modules/d3/node_modules/d3-shape/src/curve/cardinalOpen.mjs +57 -0
  107. package/es/node_modules/d3/node_modules/d3-shape/src/curve/catmullRom.mjs +83 -0
  108. package/es/node_modules/d3/node_modules/d3-shape/src/curve/catmullRomClosed.mjs +75 -0
  109. package/es/node_modules/d3/node_modules/d3-shape/src/curve/catmullRomOpen.mjs +63 -0
  110. package/es/node_modules/d3/node_modules/d3-shape/src/curve/linear.mjs +39 -0
  111. package/es/node_modules/d3/node_modules/d3-shape/src/curve/linearClosed.mjs +25 -0
  112. package/es/node_modules/d3/node_modules/d3-shape/src/curve/monotone.mjs +99 -0
  113. package/es/node_modules/d3/node_modules/d3-shape/src/curve/natural.mjs +54 -0
  114. package/es/node_modules/d3/node_modules/d3-shape/src/curve/step.mjs +59 -0
  115. package/es/node_modules/d3/node_modules/d3-shape/src/descending.mjs +6 -0
  116. package/es/node_modules/d3/node_modules/d3-shape/src/identity.mjs +6 -0
  117. package/es/node_modules/d3/node_modules/d3-shape/src/line.mjs +41 -0
  118. package/es/node_modules/d3/node_modules/d3-shape/src/math.mjs +32 -0
  119. package/es/node_modules/d3/node_modules/d3-shape/src/noop.mjs +5 -0
  120. package/es/node_modules/d3/node_modules/d3-shape/src/path.mjs +19 -0
  121. package/es/node_modules/d3/node_modules/d3-shape/src/pie.mjs +55 -0
  122. package/es/node_modules/d3/node_modules/d3-shape/src/point.mjs +10 -0
  123. package/es/node_modules/d3-array/node_modules/internmap/src/index.mjs +43 -0
  124. package/es/node_modules/d3-array/src/ascending.mjs +6 -0
  125. package/es/node_modules/d3-array/src/bisect.mjs +10 -0
  126. package/es/node_modules/d3-array/src/bisector.mjs +47 -0
  127. package/es/node_modules/d3-array/src/descending.mjs +6 -0
  128. package/es/node_modules/d3-array/src/max.mjs +21 -0
  129. package/es/node_modules/d3-array/src/min.mjs +21 -0
  130. package/es/node_modules/d3-array/src/number.mjs +6 -0
  131. package/es/node_modules/d3-array/src/range.mjs +11 -0
  132. package/es/node_modules/d3-array/src/ticks.mjs +51 -0
  133. package/es/node_modules/d3-axis/src/axis.mjs +94 -0
  134. package/es/node_modules/d3-axis/src/identity.mjs +6 -0
  135. package/es/node_modules/d3-color/src/color.mjs +338 -0
  136. package/es/node_modules/d3-color/src/define.mjs +13 -0
  137. package/es/node_modules/d3-color/src/lab.mjs +95 -0
  138. package/es/node_modules/d3-color/src/math.mjs +6 -0
  139. package/es/node_modules/d3-dispatch/src/dispatch.mjs +70 -0
  140. package/es/node_modules/d3-ease/src/cubic.mjs +6 -0
  141. package/es/node_modules/d3-format/src/defaultLocale.mjs +20 -0
  142. package/es/node_modules/d3-format/src/exponent.mjs +7 -0
  143. package/es/node_modules/d3-format/src/formatDecimal.mjs +15 -0
  144. package/es/node_modules/d3-format/src/formatGroup.mjs +15 -0
  145. package/es/node_modules/d3-format/src/formatNumerals.mjs +10 -0
  146. package/es/node_modules/d3-format/src/formatPrefixAuto.mjs +12 -0
  147. package/es/node_modules/d3-format/src/formatRounded.mjs +10 -0
  148. package/es/node_modules/d3-format/src/formatSpecifier.mjs +37 -0
  149. package/es/node_modules/d3-format/src/formatTrim.mjs +21 -0
  150. package/es/node_modules/d3-format/src/formatTypes.mjs +21 -0
  151. package/es/node_modules/d3-format/src/identity.mjs +6 -0
  152. package/es/node_modules/d3-format/src/locale.mjs +82 -0
  153. package/es/node_modules/d3-format/src/precisionFixed.mjs +7 -0
  154. package/es/node_modules/d3-format/src/precisionPrefix.mjs +7 -0
  155. package/es/node_modules/d3-format/src/precisionRound.mjs +8 -0
  156. package/es/node_modules/d3-hierarchy/src/accessors.mjs +7 -0
  157. package/es/node_modules/d3-hierarchy/src/constant.mjs +12 -0
  158. package/es/node_modules/d3-hierarchy/src/hierarchy/ancestors.mjs +10 -0
  159. package/es/node_modules/d3-hierarchy/src/hierarchy/count.mjs +12 -0
  160. package/es/node_modules/d3-hierarchy/src/hierarchy/descendants.mjs +6 -0
  161. package/es/node_modules/d3-hierarchy/src/hierarchy/each.mjs +10 -0
  162. package/es/node_modules/d3-hierarchy/src/hierarchy/eachAfter.mjs +18 -0
  163. package/es/node_modules/d3-hierarchy/src/hierarchy/eachBefore.mjs +15 -0
  164. package/es/node_modules/d3-hierarchy/src/hierarchy/find.mjs +11 -0
  165. package/es/node_modules/d3-hierarchy/src/hierarchy/index.mjs +79 -0
  166. package/es/node_modules/d3-hierarchy/src/hierarchy/iterator.mjs +17 -0
  167. package/es/node_modules/d3-hierarchy/src/hierarchy/leaves.mjs +12 -0
  168. package/es/node_modules/d3-hierarchy/src/hierarchy/links.mjs +12 -0
  169. package/es/node_modules/d3-hierarchy/src/hierarchy/path.mjs +28 -0
  170. package/es/node_modules/d3-hierarchy/src/hierarchy/sort.mjs +10 -0
  171. package/es/node_modules/d3-hierarchy/src/hierarchy/sum.mjs +10 -0
  172. package/es/node_modules/d3-hierarchy/src/treemap/dice.mjs +10 -0
  173. package/es/node_modules/d3-hierarchy/src/treemap/index.mjs +69 -0
  174. package/es/node_modules/d3-hierarchy/src/treemap/round.mjs +9 -0
  175. package/es/node_modules/d3-hierarchy/src/treemap/slice.mjs +10 -0
  176. package/es/node_modules/d3-hierarchy/src/treemap/squarify.mjs +47 -0
  177. package/es/node_modules/d3-interpolate/src/array.mjs +13 -0
  178. package/es/node_modules/d3-interpolate/src/color.mjs +29 -0
  179. package/es/node_modules/d3-interpolate/src/constant.mjs +4 -0
  180. package/es/node_modules/d3-interpolate/src/date.mjs +9 -0
  181. package/es/node_modules/d3-interpolate/src/hcl.mjs +18 -0
  182. package/es/node_modules/d3-interpolate/src/number.mjs +8 -0
  183. package/es/node_modules/d3-interpolate/src/numberArray.mjs +15 -0
  184. package/es/node_modules/d3-interpolate/src/object.mjs +20 -0
  185. package/es/node_modules/d3-interpolate/src/rgb.mjs +20 -0
  186. package/es/node_modules/d3-interpolate/src/round.mjs +8 -0
  187. package/es/node_modules/d3-interpolate/src/string.mjs +43 -0
  188. package/es/node_modules/d3-interpolate/src/transform/decompose.mjs +28 -0
  189. package/es/node_modules/d3-interpolate/src/transform/index.mjs +59 -0
  190. package/es/node_modules/d3-interpolate/src/transform/parse.mjs +18 -0
  191. package/es/node_modules/d3-interpolate/src/value.mjs +16 -0
  192. package/es/node_modules/d3-path/src/path.mjs +88 -0
  193. package/es/node_modules/d3-sankey/node_modules/d3-array/src/max.mjs +21 -0
  194. package/es/node_modules/d3-sankey/node_modules/d3-array/src/min.mjs +21 -0
  195. package/es/node_modules/d3-sankey/node_modules/d3-array/src/sum.mjs +21 -0
  196. package/es/node_modules/d3-sankey/src/align.mjs +22 -0
  197. package/es/node_modules/d3-sankey/src/constant.mjs +8 -0
  198. package/es/node_modules/d3-sankey/src/sankey.mjs +326 -0
  199. package/es/node_modules/d3-sankey/src/sankeyLinkHorizontal.mjs +13 -0
  200. package/es/node_modules/d3-scale/src/band.mjs +56 -0
  201. package/es/node_modules/d3-scale/src/constant.mjs +8 -0
  202. package/es/node_modules/d3-scale/src/continuous.mjs +95 -0
  203. package/es/node_modules/d3-scale/src/init.mjs +16 -0
  204. package/es/node_modules/d3-scale/src/linear.mjs +61 -0
  205. package/es/node_modules/d3-scale/src/nice.mjs +14 -0
  206. package/es/node_modules/d3-scale/src/number.mjs +6 -0
  207. package/es/node_modules/d3-scale/src/ordinal.mjs +38 -0
  208. package/es/node_modules/d3-scale/src/tickFormat.mjs +34 -0
  209. package/es/node_modules/d3-scale/src/time.mjs +54 -0
  210. package/es/node_modules/d3-scale-chromatic/src/categorical/Tableau10.mjs +5 -0
  211. package/es/node_modules/d3-scale-chromatic/src/colors.mjs +8 -0
  212. package/es/node_modules/d3-selection/src/array.mjs +6 -0
  213. package/es/node_modules/d3-selection/src/constant.mjs +8 -0
  214. package/es/node_modules/d3-selection/src/creator.mjs +20 -0
  215. package/es/node_modules/d3-selection/src/matcher.mjs +14 -0
  216. package/es/node_modules/d3-selection/src/namespace.mjs +9 -0
  217. package/es/node_modules/d3-selection/src/namespaces.mjs +12 -0
  218. package/es/node_modules/d3-selection/src/select.mjs +7 -0
  219. package/es/node_modules/d3-selection/src/selection/append.mjs +10 -0
  220. package/es/node_modules/d3-selection/src/selection/attr.mjs +46 -0
  221. package/es/node_modules/d3-selection/src/selection/call.mjs +9 -0
  222. package/es/node_modules/d3-selection/src/selection/classed.mjs +64 -0
  223. package/es/node_modules/d3-selection/src/selection/clone.mjs +14 -0
  224. package/es/node_modules/d3-selection/src/selection/data.mjs +76 -0
  225. package/es/node_modules/d3-selection/src/selection/datum.mjs +6 -0
  226. package/es/node_modules/d3-selection/src/selection/dispatch.mjs +28 -0
  227. package/es/node_modules/d3-selection/src/selection/each.mjs +11 -0
  228. package/es/node_modules/d3-selection/src/selection/empty.mjs +6 -0
  229. package/es/node_modules/d3-selection/src/selection/enter.mjs +31 -0
  230. package/es/node_modules/d3-selection/src/selection/exit.mjs +8 -0
  231. package/es/node_modules/d3-selection/src/selection/filter.mjs +16 -0
  232. package/es/node_modules/d3-selection/src/selection/html.mjs +20 -0
  233. package/es/node_modules/d3-selection/src/selection/index.mjs +88 -0
  234. package/es/node_modules/d3-selection/src/selection/insert.mjs +14 -0
  235. package/es/node_modules/d3-selection/src/selection/iterator.mjs +10 -0
  236. package/es/node_modules/d3-selection/src/selection/join.mjs +19 -0
  237. package/es/node_modules/d3-selection/src/selection/lower.mjs +9 -0
  238. package/es/node_modules/d3-selection/src/selection/merge.mjs +18 -0
  239. package/es/node_modules/d3-selection/src/selection/node.mjs +12 -0
  240. package/es/node_modules/d3-selection/src/selection/nodes.mjs +6 -0
  241. package/es/node_modules/d3-selection/src/selection/on.mjs +64 -0
  242. package/es/node_modules/d3-selection/src/selection/order.mjs +14 -0
  243. package/es/node_modules/d3-selection/src/selection/property.mjs +23 -0
  244. package/es/node_modules/d3-selection/src/selection/raise.mjs +9 -0
  245. package/es/node_modules/d3-selection/src/selection/remove.mjs +10 -0
  246. package/es/node_modules/d3-selection/src/selection/select.mjs +17 -0
  247. package/es/node_modules/d3-selection/src/selection/selectAll.mjs +24 -0
  248. package/es/node_modules/d3-selection/src/selection/selectChild.mjs +16 -0
  249. package/es/node_modules/d3-selection/src/selection/selectChildren.mjs +16 -0
  250. package/es/node_modules/d3-selection/src/selection/size.mjs +8 -0
  251. package/es/node_modules/d3-selection/src/selection/sort.mjs +22 -0
  252. package/es/node_modules/d3-selection/src/selection/sparse.mjs +6 -0
  253. package/es/node_modules/d3-selection/src/selection/style.mjs +28 -0
  254. package/es/node_modules/d3-selection/src/selection/text.mjs +20 -0
  255. package/es/node_modules/d3-selection/src/selector.mjs +10 -0
  256. package/es/node_modules/d3-selection/src/selectorAll.mjs +11 -0
  257. package/es/node_modules/d3-selection/src/window.mjs +6 -0
  258. package/es/node_modules/d3-shape/node_modules/d3-path/src/path.mjs +73 -0
  259. package/es/node_modules/d3-shape/src/array.mjs +4 -0
  260. package/es/node_modules/d3-shape/src/constant.mjs +8 -0
  261. package/es/node_modules/d3-shape/src/link/index.mjs +45 -0
  262. package/es/node_modules/d3-shape/src/point.mjs +10 -0
  263. package/es/node_modules/d3-time/src/day.mjs +34 -0
  264. package/es/node_modules/d3-time/src/duration.mjs +16 -0
  265. package/es/node_modules/d3-time/src/hour.mjs +26 -0
  266. package/es/node_modules/d3-time/src/interval.mjs +61 -0
  267. package/es/node_modules/d3-time/src/millisecond.mjs +23 -0
  268. package/es/node_modules/d3-time/src/minute.mjs +26 -0
  269. package/es/node_modules/d3-time/src/month.mjs +27 -0
  270. package/es/node_modules/d3-time/src/second.mjs +15 -0
  271. package/es/node_modules/d3-time/src/ticks.mjs +54 -0
  272. package/es/node_modules/d3-time/src/week.mjs +66 -0
  273. package/es/node_modules/d3-time/src/year.mjs +45 -0
  274. package/es/node_modules/d3-time-format/src/defaultLocale.mjs +25 -0
  275. package/es/node_modules/d3-time-format/src/locale.mjs +542 -0
  276. package/es/node_modules/d3-timer/src/timeout.mjs +13 -0
  277. package/es/node_modules/d3-timer/src/timer.mjs +96 -0
  278. package/es/node_modules/d3-transition/src/interrupt.mjs +21 -0
  279. package/es/node_modules/d3-transition/src/selection/index.mjs +5 -0
  280. package/es/node_modules/d3-transition/src/selection/interrupt.mjs +9 -0
  281. package/es/node_modules/d3-transition/src/selection/transition.mjs +39 -0
  282. package/es/node_modules/d3-transition/src/transition/attr.mjs +55 -0
  283. package/es/node_modules/d3-transition/src/transition/attrTween.mjs +42 -0
  284. package/es/node_modules/d3-transition/src/transition/delay.mjs +18 -0
  285. package/es/node_modules/d3-transition/src/transition/duration.mjs +18 -0
  286. package/es/node_modules/d3-transition/src/transition/ease.mjs +14 -0
  287. package/es/node_modules/d3-transition/src/transition/easeVarying.mjs +15 -0
  288. package/es/node_modules/d3-transition/src/transition/end.mjs +23 -0
  289. package/es/node_modules/d3-transition/src/transition/filter.mjs +16 -0
  290. package/es/node_modules/d3-transition/src/transition/index.mjs +68 -0
  291. package/es/node_modules/d3-transition/src/transition/interpolate.mjs +11 -0
  292. package/es/node_modules/d3-transition/src/transition/merge.mjs +18 -0
  293. package/es/node_modules/d3-transition/src/transition/on.mjs +23 -0
  294. package/es/node_modules/d3-transition/src/transition/remove.mjs +13 -0
  295. package/es/node_modules/d3-transition/src/transition/schedule.mjs +125 -0
  296. package/es/node_modules/d3-transition/src/transition/select.mjs +20 -0
  297. package/es/node_modules/d3-transition/src/transition/selectAll.mjs +24 -0
  298. package/es/node_modules/d3-transition/src/transition/selection.mjs +8 -0
  299. package/es/node_modules/d3-transition/src/transition/style.mjs +47 -0
  300. package/es/node_modules/d3-transition/src/transition/styleTween.mjs +25 -0
  301. package/es/node_modules/d3-transition/src/transition/text.mjs +18 -0
  302. package/es/node_modules/d3-transition/src/transition/textTween.mjs +25 -0
  303. package/es/node_modules/d3-transition/src/transition/transition.mjs +22 -0
  304. package/es/node_modules/d3-transition/src/transition/tween.mjs +64 -0
  305. package/es/node_modules/d3-zoom/src/transform.mjs +45 -0
  306. package/es/node_modules/dagre-d3-es/src/dagre/acyclic.mjs +56 -0
  307. package/es/node_modules/dagre-d3-es/src/dagre/add-border-segments.mjs +33 -0
  308. package/es/node_modules/dagre-d3-es/src/dagre/coordinate-system.mjs +66 -0
  309. package/es/node_modules/dagre-d3-es/src/dagre/data/list.mjs +49 -0
  310. package/es/node_modules/dagre-d3-es/src/dagre/greedy-fas.mjs +101 -0
  311. package/es/node_modules/dagre-d3-es/src/dagre/layout.mjs +350 -0
  312. package/es/node_modules/dagre-d3-es/src/dagre/nesting-graph.mjs +97 -0
  313. package/es/node_modules/dagre-d3-es/src/dagre/normalize.mjs +69 -0
  314. package/es/node_modules/dagre-d3-es/src/dagre/order/add-subgraph-constraints.mjs +25 -0
  315. package/es/node_modules/dagre-d3-es/src/dagre/order/barycenter.mjs +30 -0
  316. package/es/node_modules/dagre-d3-es/src/dagre/order/build-layer-graph.mjs +35 -0
  317. package/es/node_modules/dagre-d3-es/src/dagre/order/cross-count.mjs +58 -0
  318. package/es/node_modules/dagre-d3-es/src/dagre/order/index.mjs +54 -0
  319. package/es/node_modules/dagre-d3-es/src/dagre/order/init-order.mjs +36 -0
  320. package/es/node_modules/dagre-d3-es/src/dagre/order/resolve-conflicts.mjs +88 -0
  321. package/es/node_modules/dagre-d3-es/src/dagre/order/sort-subgraph.mjs +69 -0
  322. package/es/node_modules/dagre-d3-es/src/dagre/order/sort.mjs +50 -0
  323. package/es/node_modules/dagre-d3-es/src/dagre/parent-dummy-chains.mjs +66 -0
  324. package/es/node_modules/dagre-d3-es/src/dagre/position/bk.mjs +319 -0
  325. package/es/node_modules/dagre-d3-es/src/dagre/position/index.mjs +32 -0
  326. package/es/node_modules/dagre-d3-es/src/dagre/rank/feasible-tree.mjs +46 -0
  327. package/es/node_modules/dagre-d3-es/src/dagre/rank/index.mjs +29 -0
  328. package/es/node_modules/dagre-d3-es/src/dagre/rank/network-simplex.mjs +149 -0
  329. package/es/node_modules/dagre-d3-es/src/dagre/rank/util.mjs +32 -0
  330. package/es/node_modules/dagre-d3-es/src/dagre/util.mjs +171 -0
  331. package/es/node_modules/dagre-d3-es/src/graphlib/alg/dfs.mjs +34 -0
  332. package/es/node_modules/dagre-d3-es/src/graphlib/alg/postorder.mjs +7 -0
  333. package/es/node_modules/dagre-d3-es/src/graphlib/alg/preorder.mjs +7 -0
  334. package/es/node_modules/dagre-d3-es/src/graphlib/alg/topsort.mjs +6 -0
  335. package/es/node_modules/dagre-d3-es/src/graphlib/graph.mjs +786 -0
  336. package/es/node_modules/dagre-d3-es/src/graphlib/json.mjs +49 -0
  337. package/es/node_modules/dayjs/plugin/duration.mjs +140 -0
  338. package/es/node_modules/dayjs/plugin/isoWeek.mjs +37 -0
  339. package/es/node_modules/diagram-js/lib/model/index.mjs +1 -1
  340. package/es/node_modules/dompurify/dist/purify.es.mjs +1503 -0
  341. package/es/node_modules/element-plus/es/components/calendar/src/select-controller.vue_vue_type_script_setup_true_lang.mjs +3 -3
  342. package/es/node_modules/element-plus/es/components/calendar/src/use-calendar.mjs +4 -4
  343. package/es/node_modules/element-plus/es/components/calendar/src/use-date-table.mjs +4 -4
  344. package/es/node_modules/element-plus/es/components/date-picker-panel/src/composables/use-basic-date-table.mjs +3 -3
  345. package/es/node_modules/element-plus/es/components/date-picker-panel/src/composables/use-range-picker.mjs +3 -3
  346. package/es/node_modules/element-plus/es/components/date-picker-panel/src/composables/use-shortcut.mjs +2 -2
  347. package/es/node_modules/element-plus/es/components/date-picker-panel/src/date-picker-com/basic-month-table.vue_vue_type_script_setup_true_lang.mjs +4 -4
  348. package/es/node_modules/element-plus/es/components/date-picker-panel/src/date-picker-com/basic-year-table.vue_vue_type_script_setup_true_lang.mjs +7 -7
  349. package/es/node_modules/element-plus/es/components/date-picker-panel/src/date-picker-com/panel-date-pick.vue_vue_type_script_setup_true_lang.mjs +14 -14
  350. package/es/node_modules/element-plus/es/components/date-picker-panel/src/date-picker-com/panel-date-range.vue_vue_type_script_setup_true_lang.mjs +6 -6
  351. package/es/node_modules/element-plus/es/components/date-picker-panel/src/date-picker-com/panel-month-range.vue_vue_type_script_setup_true_lang.mjs +3 -3
  352. package/es/node_modules/element-plus/es/components/date-picker-panel/src/date-picker-com/panel-year-range.vue_vue_type_script_setup_true_lang.mjs +3 -3
  353. package/es/node_modules/element-plus/es/components/date-picker-panel/src/date-picker-panel.mjs +11 -11
  354. package/es/node_modules/element-plus/es/components/date-picker-panel/src/utils.mjs +10 -10
  355. package/es/node_modules/element-plus/es/components/time-picker/src/time-picker-com/panel-time-pick.vue_vue_type_script_setup_true_lang.mjs +4 -4
  356. package/es/node_modules/element-plus/es/components/time-picker/src/time-picker-com/panel-time-range.vue_vue_type_script_setup_true_lang.mjs +6 -6
  357. package/es/node_modules/element-plus/es/components/time-picker/src/time-picker.mjs +3 -3
  358. package/es/node_modules/element-plus/es/components/time-picker/src/utils.mjs +3 -3
  359. package/es/node_modules/element-plus/es/components/time-select/src/time-select.vue_vue_type_script_setup_true_lang.mjs +5 -5
  360. package/es/node_modules/entities/lib/esm/decode.mjs +383 -0
  361. package/es/node_modules/entities/lib/esm/decode_codepoint.mjs +56 -0
  362. package/es/node_modules/entities/lib/esm/generated/decode-data-html.mjs +7 -0
  363. package/es/node_modules/entities/lib/esm/generated/decode-data-xml.mjs +7 -0
  364. package/es/node_modules/es-toolkit/dist/_internal/globalThis.mjs +6 -0
  365. package/es/node_modules/es-toolkit/dist/_internal/isUnsafeProperty.mjs +6 -0
  366. package/es/node_modules/es-toolkit/dist/compat/_internal/getSymbols.mjs +6 -0
  367. package/es/node_modules/es-toolkit/dist/compat/_internal/getTag.mjs +7 -0
  368. package/es/node_modules/es-toolkit/dist/compat/_internal/isPrototype.mjs +7 -0
  369. package/es/node_modules/es-toolkit/dist/compat/_internal/tags.mjs +46 -0
  370. package/es/node_modules/es-toolkit/dist/compat/function/memoize.mjs +17 -0
  371. package/es/node_modules/es-toolkit/dist/compat/object/clone.mjs +130 -0
  372. package/es/node_modules/es-toolkit/dist/compat/object/cloneDeep.mjs +7 -0
  373. package/es/node_modules/es-toolkit/dist/compat/object/cloneDeepWith.mjs +35 -0
  374. package/es/node_modules/es-toolkit/dist/compat/object/merge.mjs +8 -0
  375. package/es/node_modules/es-toolkit/dist/compat/object/mergeWith.mjs +65 -0
  376. package/es/node_modules/es-toolkit/dist/compat/predicate/isArguments.mjs +7 -0
  377. package/es/node_modules/es-toolkit/dist/compat/predicate/isArray.mjs +6 -0
  378. package/es/node_modules/es-toolkit/dist/compat/predicate/isArrayLike.mjs +7 -0
  379. package/es/node_modules/es-toolkit/dist/compat/predicate/isArrayLikeObject.mjs +8 -0
  380. package/es/node_modules/es-toolkit/dist/compat/predicate/isEmpty.mjs +22 -0
  381. package/es/node_modules/es-toolkit/dist/compat/predicate/isObjectLike.mjs +6 -0
  382. package/es/node_modules/es-toolkit/dist/compat/predicate/isPlainObject.mjs +18 -0
  383. package/es/node_modules/es-toolkit/dist/compat/predicate/isTypedArray.mjs +7 -0
  384. package/es/node_modules/es-toolkit/dist/function/noop.mjs +5 -0
  385. package/es/node_modules/es-toolkit/dist/object/clone.mjs +33 -0
  386. package/es/node_modules/es-toolkit/dist/object/cloneDeepWith.mjs +145 -0
  387. package/es/node_modules/es-toolkit/dist/predicate/isBuffer.mjs +7 -0
  388. package/es/node_modules/es-toolkit/dist/predicate/isLength.mjs +6 -0
  389. package/es/node_modules/es-toolkit/dist/predicate/isPrimitive.mjs +6 -0
  390. package/es/node_modules/es-toolkit/dist/predicate/isTypedArray.mjs +6 -0
  391. package/es/node_modules/highlight.js/es/index.mjs +5 -0
  392. package/es/node_modules/highlight.js/lib/core.mjs +1542 -0
  393. package/es/node_modules/highlight.js/lib/index.mjs +399 -0
  394. package/es/node_modules/highlight.js/lib/languages/1c.mjs +157 -0
  395. package/es/node_modules/highlight.js/lib/languages/abnf.mjs +74 -0
  396. package/es/node_modules/highlight.js/lib/languages/accesslog.mjs +90 -0
  397. package/es/node_modules/highlight.js/lib/languages/actionscript.mjs +151 -0
  398. package/es/node_modules/highlight.js/lib/languages/ada.mjs +231 -0
  399. package/es/node_modules/highlight.js/lib/languages/angelscript.mjs +175 -0
  400. package/es/node_modules/highlight.js/lib/languages/apache.mjs +103 -0
  401. package/es/node_modules/highlight.js/lib/languages/applescript.mjs +130 -0
  402. package/es/node_modules/highlight.js/lib/languages/arcade.mjs +431 -0
  403. package/es/node_modules/highlight.js/lib/languages/arduino.mjs +942 -0
  404. package/es/node_modules/highlight.js/lib/languages/armasm.mjs +97 -0
  405. package/es/node_modules/highlight.js/lib/languages/asciidoc.mjs +257 -0
  406. package/es/node_modules/highlight.js/lib/languages/aspectj.mjs +229 -0
  407. package/es/node_modules/highlight.js/lib/languages/autohotkey.mjs +76 -0
  408. package/es/node_modules/highlight.js/lib/languages/autoit.mjs +163 -0
  409. package/es/node_modules/highlight.js/lib/languages/avrasm.mjs +67 -0
  410. package/es/node_modules/highlight.js/lib/languages/awk.mjs +68 -0
  411. package/es/node_modules/highlight.js/lib/languages/axapta.mjs +183 -0
  412. package/es/node_modules/highlight.js/lib/languages/bash.mjs +403 -0
  413. package/es/node_modules/highlight.js/lib/languages/basic.mjs +235 -0
  414. package/es/node_modules/highlight.js/lib/languages/bnf.mjs +40 -0
  415. package/es/node_modules/highlight.js/lib/languages/brainfuck.mjs +56 -0
  416. package/es/node_modules/highlight.js/lib/languages/c.mjs +303 -0
  417. package/es/node_modules/highlight.js/lib/languages/cal.mjs +157 -0
  418. package/es/node_modules/highlight.js/lib/languages/capnproto.mjs +99 -0
  419. package/es/node_modules/highlight.js/lib/languages/ceylon.mjs +137 -0
  420. package/es/node_modules/highlight.js/lib/languages/clean.mjs +68 -0
  421. package/es/node_modules/highlight.js/lib/languages/clojure-repl.mjs +26 -0
  422. package/es/node_modules/highlight.js/lib/languages/clojure.mjs +164 -0
  423. package/es/node_modules/highlight.js/lib/languages/cmake.mjs +33 -0
  424. package/es/node_modules/highlight.js/lib/languages/coffeescript.mjs +359 -0
  425. package/es/node_modules/highlight.js/lib/languages/coq.mjs +448 -0
  426. package/es/node_modules/highlight.js/lib/languages/cos.mjs +100 -0
  427. package/es/node_modules/highlight.js/lib/languages/cpp.mjs +552 -0
  428. package/es/node_modules/highlight.js/lib/languages/crmsh.mjs +95 -0
  429. package/es/node_modules/highlight.js/lib/languages/crystal.mjs +307 -0
  430. package/es/node_modules/highlight.js/lib/languages/csharp.mjs +409 -0
  431. package/es/node_modules/highlight.js/lib/languages/csp.mjs +56 -0
  432. package/es/node_modules/highlight.js/lib/languages/css.mjs +946 -0
  433. package/es/node_modules/highlight.js/lib/languages/d.mjs +121 -0
  434. package/es/node_modules/highlight.js/lib/languages/dart.mjs +263 -0
  435. package/es/node_modules/highlight.js/lib/languages/delphi.mjs +254 -0
  436. package/es/node_modules/highlight.js/lib/languages/diff.mjs +62 -0
  437. package/es/node_modules/highlight.js/lib/languages/django.mjs +55 -0
  438. package/es/node_modules/highlight.js/lib/languages/dns.mjs +79 -0
  439. package/es/node_modules/highlight.js/lib/languages/dockerfile.mjs +43 -0
  440. package/es/node_modules/highlight.js/lib/languages/dos.mjs +166 -0
  441. package/es/node_modules/highlight.js/lib/languages/dsconfig.mjs +66 -0
  442. package/es/node_modules/highlight.js/lib/languages/dts.mjs +144 -0
  443. package/es/node_modules/highlight.js/lib/languages/dust.mjs +46 -0
  444. package/es/node_modules/highlight.js/lib/languages/ebnf.mjs +51 -0
  445. package/es/node_modules/highlight.js/lib/languages/elixir.mjs +281 -0
  446. package/es/node_modules/highlight.js/lib/languages/elm.mjs +137 -0
  447. package/es/node_modules/highlight.js/lib/languages/erb.mjs +27 -0
  448. package/es/node_modules/highlight.js/lib/languages/erlang-repl.mjs +54 -0
  449. package/es/node_modules/highlight.js/lib/languages/erlang.mjs +226 -0
  450. package/es/node_modules/highlight.js/lib/languages/excel.mjs +583 -0
  451. package/es/node_modules/highlight.js/lib/languages/fix.mjs +42 -0
  452. package/es/node_modules/highlight.js/lib/languages/flix.mjs +76 -0
  453. package/es/node_modules/highlight.js/lib/languages/fortran.mjs +569 -0
  454. package/es/node_modules/highlight.js/lib/languages/fsharp.mjs +575 -0
  455. package/es/node_modules/highlight.js/lib/languages/gams.mjs +162 -0
  456. package/es/node_modules/highlight.js/lib/languages/gauss.mjs +196 -0
  457. package/es/node_modules/highlight.js/lib/languages/gcode.mjs +171 -0
  458. package/es/node_modules/highlight.js/lib/languages/gherkin.mjs +51 -0
  459. package/es/node_modules/highlight.js/lib/languages/glsl.mjs +39 -0
  460. package/es/node_modules/highlight.js/lib/languages/gml.mjs +3132 -0
  461. package/es/node_modules/highlight.js/lib/languages/go.mjs +163 -0
  462. package/es/node_modules/highlight.js/lib/languages/golo.mjs +81 -0
  463. package/es/node_modules/highlight.js/lib/languages/gradle.mjs +190 -0
  464. package/es/node_modules/highlight.js/lib/languages/graphql.mjs +79 -0
  465. package/es/node_modules/highlight.js/lib/languages/groovy.mjs +189 -0
  466. package/es/node_modules/highlight.js/lib/languages/haml.mjs +113 -0
  467. package/es/node_modules/highlight.js/lib/languages/handlebars.mjs +239 -0
  468. package/es/node_modules/highlight.js/lib/languages/haskell.mjs +199 -0
  469. package/es/node_modules/highlight.js/lib/languages/haxe.mjs +169 -0
  470. package/es/node_modules/highlight.js/lib/languages/hsp.mjs +56 -0
  471. package/es/node_modules/highlight.js/lib/languages/http.mjs +97 -0
  472. package/es/node_modules/highlight.js/lib/languages/hy.mjs +107 -0
  473. package/es/node_modules/highlight.js/lib/languages/inform7.mjs +66 -0
  474. package/es/node_modules/highlight.js/lib/languages/ini.mjs +125 -0
  475. package/es/node_modules/highlight.js/lib/languages/irpf90.mjs +63 -0
  476. package/es/node_modules/highlight.js/lib/languages/isbl.mjs +266 -0
  477. package/es/node_modules/highlight.js/lib/languages/java.mjs +263 -0
  478. package/es/node_modules/highlight.js/lib/languages/javascript.mjs +710 -0
  479. package/es/node_modules/highlight.js/lib/languages/jboss-cli.mjs +62 -0
  480. package/es/node_modules/highlight.js/lib/languages/json.mjs +49 -0
  481. package/es/node_modules/highlight.js/lib/languages/julia-repl.mjs +35 -0
  482. package/es/node_modules/highlight.js/lib/languages/julia.mjs +378 -0
  483. package/es/node_modules/highlight.js/lib/languages/kotlin.mjs +264 -0
  484. package/es/node_modules/highlight.js/lib/languages/lasso.mjs +154 -0
  485. package/es/node_modules/highlight.js/lib/languages/latex.mjs +280 -0
  486. package/es/node_modules/highlight.js/lib/languages/ldif.mjs +32 -0
  487. package/es/node_modules/highlight.js/lib/languages/leaf.mjs +99 -0
  488. package/es/node_modules/highlight.js/lib/languages/less.mjs +1027 -0
  489. package/es/node_modules/highlight.js/lib/languages/lisp.mjs +141 -0
  490. package/es/node_modules/highlight.js/lib/languages/livecodeserver.mjs +103 -0
  491. package/es/node_modules/highlight.js/lib/languages/livescript.mjs +370 -0
  492. package/es/node_modules/highlight.js/lib/languages/llvm.mjs +98 -0
  493. package/es/node_modules/highlight.js/lib/languages/lsl.mjs +72 -0
  494. package/es/node_modules/highlight.js/lib/languages/lua.mjs +70 -0
  495. package/es/node_modules/highlight.js/lib/languages/makefile.mjs +80 -0
  496. package/es/node_modules/highlight.js/lib/languages/markdown.mjs +241 -0
  497. package/es/node_modules/highlight.js/lib/languages/mathematica.mjs +7341 -0
  498. package/es/node_modules/highlight.js/lib/languages/matlab.mjs +85 -0
  499. package/es/node_modules/highlight.js/lib/languages/maxima.mjs +63 -0
  500. package/es/node_modules/highlight.js/lib/languages/mel.mjs +35 -0
  501. package/es/node_modules/highlight.js/lib/languages/mercury.mjs +87 -0
  502. package/es/node_modules/highlight.js/lib/languages/mipsasm.mjs +85 -0
  503. package/es/node_modules/highlight.js/lib/languages/mizar.mjs +18 -0
  504. package/es/node_modules/highlight.js/lib/languages/mojolicious.mjs +37 -0
  505. package/es/node_modules/highlight.js/lib/languages/monkey.mjs +184 -0
  506. package/es/node_modules/highlight.js/lib/languages/moonscript.mjs +144 -0
  507. package/es/node_modules/highlight.js/lib/languages/n1ql.mjs +360 -0
  508. package/es/node_modules/highlight.js/lib/languages/nestedtext.mjs +85 -0
  509. package/es/node_modules/highlight.js/lib/languages/nginx.mjs +152 -0
  510. package/es/node_modules/highlight.js/lib/languages/nim.mjs +190 -0
  511. package/es/node_modules/highlight.js/lib/languages/nix.mjs +356 -0
  512. package/es/node_modules/highlight.js/lib/languages/node-repl.mjs +34 -0
  513. package/es/node_modules/highlight.js/lib/languages/nsis.mjs +539 -0
  514. package/es/node_modules/highlight.js/lib/languages/objectivec.mjs +252 -0
  515. package/es/node_modules/highlight.js/lib/languages/ocaml.mjs +75 -0
  516. package/es/node_modules/highlight.js/lib/languages/openscad.mjs +78 -0
  517. package/es/node_modules/highlight.js/lib/languages/oxygene.mjs +78 -0
  518. package/es/node_modules/highlight.js/lib/languages/parser3.mjs +56 -0
  519. package/es/node_modules/highlight.js/lib/languages/perl.mjs +494 -0
  520. package/es/node_modules/highlight.js/lib/languages/pf.mjs +45 -0
  521. package/es/node_modules/highlight.js/lib/languages/pgsql.mjs +289 -0
  522. package/es/node_modules/highlight.js/lib/languages/php-template.mjs +55 -0
  523. package/es/node_modules/highlight.js/lib/languages/php.mjs +610 -0
  524. package/es/node_modules/highlight.js/lib/languages/plaintext.mjs +21 -0
  525. package/es/node_modules/highlight.js/lib/languages/pony.mjs +65 -0
  526. package/es/node_modules/highlight.js/lib/languages/powershell.mjs +265 -0
  527. package/es/node_modules/highlight.js/lib/languages/processing.mjs +435 -0
  528. package/es/node_modules/highlight.js/lib/languages/profile.mjs +46 -0
  529. package/es/node_modules/highlight.js/lib/languages/prolog.mjs +86 -0
  530. package/es/node_modules/highlight.js/lib/languages/properties.mjs +65 -0
  531. package/es/node_modules/highlight.js/lib/languages/protobuf.mjs +81 -0
  532. package/es/node_modules/highlight.js/lib/languages/puppet.mjs +120 -0
  533. package/es/node_modules/highlight.js/lib/languages/purebasic.mjs +68 -0
  534. package/es/node_modules/highlight.js/lib/languages/python-repl.mjs +34 -0
  535. package/es/node_modules/highlight.js/lib/languages/python.mjs +424 -0
  536. package/es/node_modules/highlight.js/lib/languages/q.mjs +33 -0
  537. package/es/node_modules/highlight.js/lib/languages/qml.mjs +157 -0
  538. package/es/node_modules/highlight.js/lib/languages/r.mjs +219 -0
  539. package/es/node_modules/highlight.js/lib/languages/reasonml.mjs +148 -0
  540. package/es/node_modules/highlight.js/lib/languages/rib.mjs +24 -0
  541. package/es/node_modules/highlight.js/lib/languages/roboconf.mjs +78 -0
  542. package/es/node_modules/highlight.js/lib/languages/routeros.mjs +155 -0
  543. package/es/node_modules/highlight.js/lib/languages/rsl.mjs +146 -0
  544. package/es/node_modules/highlight.js/lib/languages/ruby.mjs +422 -0
  545. package/es/node_modules/highlight.js/lib/languages/ruleslanguage.mjs +38 -0
  546. package/es/node_modules/highlight.js/lib/languages/rust.mjs +322 -0
  547. package/es/node_modules/highlight.js/lib/languages/sas.mjs +552 -0
  548. package/es/node_modules/highlight.js/lib/languages/scala.mjs +200 -0
  549. package/es/node_modules/highlight.js/lib/languages/scheme.mjs +148 -0
  550. package/es/node_modules/highlight.js/lib/languages/scilab.mjs +67 -0
  551. package/es/node_modules/highlight.js/lib/languages/scss.mjs +931 -0
  552. package/es/node_modules/highlight.js/lib/languages/shell.mjs +33 -0
  553. package/es/node_modules/highlight.js/lib/languages/smali.mjs +127 -0
  554. package/es/node_modules/highlight.js/lib/languages/smalltalk.mjs +70 -0
  555. package/es/node_modules/highlight.js/lib/languages/sml.mjs +77 -0
  556. package/es/node_modules/highlight.js/lib/languages/sqf.mjs +2619 -0
  557. package/es/node_modules/highlight.js/lib/languages/sql.mjs +652 -0
  558. package/es/node_modules/highlight.js/lib/languages/stan.mjs +504 -0
  559. package/es/node_modules/highlight.js/lib/languages/stata.mjs +47 -0
  560. package/es/node_modules/highlight.js/lib/languages/step21.mjs +68 -0
  561. package/es/node_modules/highlight.js/lib/languages/stylus.mjs +980 -0
  562. package/es/node_modules/highlight.js/lib/languages/subunit.mjs +46 -0
  563. package/es/node_modules/highlight.js/lib/languages/swift.mjs +884 -0
  564. package/es/node_modules/highlight.js/lib/languages/taggerscript.mjs +56 -0
  565. package/es/node_modules/highlight.js/lib/languages/tap.mjs +48 -0
  566. package/es/node_modules/highlight.js/lib/languages/tcl.mjs +189 -0
  567. package/es/node_modules/highlight.js/lib/languages/thrift.mjs +79 -0
  568. package/es/node_modules/highlight.js/lib/languages/tp.mjs +173 -0
  569. package/es/node_modules/highlight.js/lib/languages/twig.mjs +248 -0
  570. package/es/node_modules/highlight.js/lib/languages/typescript.mjs +823 -0
  571. package/es/node_modules/highlight.js/lib/languages/vala.mjs +50 -0
  572. package/es/node_modules/highlight.js/lib/languages/vbnet.mjs +142 -0
  573. package/es/node_modules/highlight.js/lib/languages/vbscript-html.mjs +24 -0
  574. package/es/node_modules/highlight.js/lib/languages/vbscript.mjs +215 -0
  575. package/es/node_modules/highlight.js/lib/languages/verilog.mjs +550 -0
  576. package/es/node_modules/highlight.js/lib/languages/vhdl.mjs +210 -0
  577. package/es/node_modules/highlight.js/lib/languages/vim.mjs +80 -0
  578. package/es/node_modules/highlight.js/lib/languages/wasm.mjs +130 -0
  579. package/es/node_modules/highlight.js/lib/languages/wren.mjs +288 -0
  580. package/es/node_modules/highlight.js/lib/languages/x86asm.mjs +96 -0
  581. package/es/node_modules/highlight.js/lib/languages/xl.mjs +206 -0
  582. package/es/node_modules/highlight.js/lib/languages/xml.mjs +235 -0
  583. package/es/node_modules/highlight.js/lib/languages/xquery.mjs +336 -0
  584. package/es/node_modules/highlight.js/lib/languages/yaml.mjs +210 -0
  585. package/es/node_modules/highlight.js/lib/languages/zephir.mjs +108 -0
  586. package/es/node_modules/katex/dist/katex.mjs +14499 -0
  587. package/es/node_modules/khroma/dist/channels/index.mjs +131 -0
  588. package/es/node_modules/khroma/dist/channels/reusable.mjs +5 -0
  589. package/es/node_modules/khroma/dist/channels/type.mjs +24 -0
  590. package/es/node_modules/khroma/dist/color/hex.mjs +40 -0
  591. package/es/node_modules/khroma/dist/color/hsl.mjs +50 -0
  592. package/es/node_modules/khroma/dist/color/index.mjs +39 -0
  593. package/es/node_modules/khroma/dist/color/keyword.mjs +172 -0
  594. package/es/node_modules/khroma/dist/color/rgb.mjs +33 -0
  595. package/es/node_modules/khroma/dist/constants.mjs +13 -0
  596. package/es/node_modules/khroma/dist/methods/adjust.mjs +15 -0
  597. package/es/node_modules/khroma/dist/methods/adjust_channel.mjs +13 -0
  598. package/es/node_modules/khroma/dist/methods/change.mjs +12 -0
  599. package/es/node_modules/khroma/dist/methods/channel.mjs +8 -0
  600. package/es/node_modules/khroma/dist/methods/darken.mjs +7 -0
  601. package/es/node_modules/khroma/dist/methods/invert.mjs +12 -0
  602. package/es/node_modules/khroma/dist/methods/is_dark.mjs +7 -0
  603. package/es/node_modules/khroma/dist/methods/is_light.mjs +7 -0
  604. package/es/node_modules/khroma/dist/methods/lighten.mjs +7 -0
  605. package/es/node_modules/khroma/dist/methods/luminance.mjs +10 -0
  606. package/es/node_modules/khroma/dist/methods/mix.mjs +20 -0
  607. package/es/node_modules/khroma/dist/methods/rgba.mjs +18 -0
  608. package/es/node_modules/khroma/dist/methods/transparentize.mjs +7 -0
  609. package/es/node_modules/khroma/dist/utils/channel.mjs +95 -0
  610. package/es/node_modules/khroma/dist/utils/index.mjs +11 -0
  611. package/es/node_modules/khroma/dist/utils/lang.mjs +14 -0
  612. package/es/node_modules/khroma/dist/utils/unit.mjs +10 -0
  613. package/es/node_modules/linkify-it/index.mjs +388 -0
  614. package/es/node_modules/linkify-it/lib/re.mjs +47 -0
  615. package/es/node_modules/lodash-es/_arrayReduce.mjs +13 -0
  616. package/es/node_modules/lodash-es/_baseExtremum.mjs +14 -0
  617. package/es/node_modules/lodash-es/_baseFilter.mjs +13 -0
  618. package/es/node_modules/lodash-es/_baseGt.mjs +6 -0
  619. package/es/node_modules/lodash-es/_baseHas.mjs +8 -0
  620. package/es/node_modules/lodash-es/_baseLt.mjs +6 -0
  621. package/es/node_modules/lodash-es/_baseOrderBy.mjs +37 -0
  622. package/es/node_modules/lodash-es/_baseRange.mjs +12 -0
  623. package/es/node_modules/lodash-es/_baseReduce.mjs +9 -0
  624. package/es/node_modules/lodash-es/_baseSortBy.mjs +11 -0
  625. package/es/node_modules/lodash-es/_baseValues.mjs +9 -0
  626. package/es/node_modules/lodash-es/_baseZipObject.mjs +11 -0
  627. package/es/node_modules/lodash-es/_castFunction.mjs +7 -0
  628. package/es/node_modules/lodash-es/_compareAscending.mjs +17 -0
  629. package/es/node_modules/lodash-es/_compareMultiple.mjs +18 -0
  630. package/es/node_modules/lodash-es/_createFind.mjs +20 -0
  631. package/es/node_modules/lodash-es/_createRange.mjs +22 -0
  632. package/es/node_modules/lodash-es/clone.mjs +8 -0
  633. package/es/node_modules/lodash-es/defaults.mjs +32 -0
  634. package/es/node_modules/lodash-es/filter.mjs +11 -0
  635. package/es/node_modules/lodash-es/find.mjs +6 -0
  636. package/es/node_modules/lodash-es/findIndex.mjs +18 -0
  637. package/es/node_modules/lodash-es/forEach.mjs +11 -0
  638. package/es/node_modules/lodash-es/forIn.mjs +9 -0
  639. package/es/node_modules/lodash-es/forOwn.mjs +8 -0
  640. package/es/node_modules/lodash-es/has.mjs +8 -0
  641. package/es/node_modules/lodash-es/isEmpty.mjs +35 -0
  642. package/es/node_modules/lodash-es/mapValues.mjs +14 -0
  643. package/es/node_modules/lodash-es/max.mjs +9 -0
  644. package/es/node_modules/lodash-es/min.mjs +9 -0
  645. package/es/node_modules/lodash-es/minBy.mjs +9 -0
  646. package/es/node_modules/lodash-es/range.mjs +5 -0
  647. package/es/node_modules/lodash-es/reduce.mjs +12 -0
  648. package/es/node_modules/lodash-es/sortBy.mjs +19 -0
  649. package/es/node_modules/lodash-es/toFinite.mjs +16 -0
  650. package/es/node_modules/lodash-es/toInteger.mjs +8 -0
  651. package/es/node_modules/lodash-es/uniqueId.mjs +9 -0
  652. package/es/node_modules/lodash-es/values.mjs +8 -0
  653. package/es/node_modules/lodash-es/zipObject.mjs +8 -0
  654. package/es/node_modules/markdown-it/lib/common/html_blocks.mjs +67 -0
  655. package/es/node_modules/markdown-it/lib/common/html_re.mjs +18 -0
  656. package/es/node_modules/markdown-it/lib/common/utils.mjs +249 -0
  657. package/es/node_modules/markdown-it/lib/helpers/index.mjs +8 -0
  658. package/es/node_modules/markdown-it/lib/helpers/parse_link_destination.mjs +77 -0
  659. package/es/node_modules/markdown-it/lib/helpers/parse_link_label.mjs +36 -0
  660. package/es/node_modules/markdown-it/lib/helpers/parse_link_title.mjs +55 -0
  661. package/es/node_modules/markdown-it/lib/index.mjs +173 -0
  662. package/es/node_modules/markdown-it/lib/parser_block.mjs +87 -0
  663. package/es/node_modules/markdown-it/lib/parser_core.mjs +36 -0
  664. package/es/node_modules/markdown-it/lib/parser_inline.mjs +123 -0
  665. package/es/node_modules/markdown-it/lib/presets/commonmark.mjs +78 -0
  666. package/es/node_modules/markdown-it/lib/presets/default.mjs +40 -0
  667. package/es/node_modules/markdown-it/lib/presets/zero.mjs +59 -0
  668. package/es/node_modules/markdown-it/lib/renderer.mjs +165 -0
  669. package/es/node_modules/markdown-it/lib/ruler.mjs +143 -0
  670. package/es/node_modules/markdown-it/lib/rules_block/blockquote.mjs +127 -0
  671. package/es/node_modules/markdown-it/lib/rules_block/code.mjs +27 -0
  672. package/es/node_modules/markdown-it/lib/rules_block/fence.mjs +70 -0
  673. package/es/node_modules/markdown-it/lib/rules_block/heading.mjs +43 -0
  674. package/es/node_modules/markdown-it/lib/rules_block/hr.mjs +36 -0
  675. package/es/node_modules/markdown-it/lib/rules_block/html_block.mjs +65 -0
  676. package/es/node_modules/markdown-it/lib/rules_block/lheading.mjs +65 -0
  677. package/es/node_modules/markdown-it/lib/rules_block/list.mjs +226 -0
  678. package/es/node_modules/markdown-it/lib/rules_block/paragraph.mjs +39 -0
  679. package/es/node_modules/markdown-it/lib/rules_block/reference.mjs +177 -0
  680. package/es/node_modules/markdown-it/lib/rules_block/state_block.mjs +159 -0
  681. package/es/node_modules/markdown-it/lib/rules_block/table.mjs +192 -0
  682. package/es/node_modules/markdown-it/lib/rules_core/block.mjs +15 -0
  683. package/es/node_modules/markdown-it/lib/rules_core/inline.mjs +12 -0
  684. package/es/node_modules/markdown-it/lib/rules_core/linkify.mjs +99 -0
  685. package/es/node_modules/markdown-it/lib/rules_core/normalize.mjs +11 -0
  686. package/es/node_modules/markdown-it/lib/rules_core/replacements.mjs +63 -0
  687. package/es/node_modules/markdown-it/lib/rules_core/smartquotes.mjs +160 -0
  688. package/es/node_modules/markdown-it/lib/rules_core/state_core.mjs +12 -0
  689. package/es/node_modules/markdown-it/lib/rules_core/text_join.mjs +31 -0
  690. package/es/node_modules/markdown-it/lib/rules_inline/autolink.mjs +59 -0
  691. package/es/node_modules/markdown-it/lib/rules_inline/backticks.mjs +46 -0
  692. package/es/node_modules/markdown-it/lib/rules_inline/balance_pairs.mjs +65 -0
  693. package/es/node_modules/markdown-it/lib/rules_inline/emphasis.mjs +88 -0
  694. package/es/node_modules/markdown-it/lib/rules_inline/entity.mjs +44 -0
  695. package/es/node_modules/markdown-it/lib/rules_inline/escape.mjs +63 -0
  696. package/es/node_modules/markdown-it/lib/rules_inline/fragments_join.mjs +25 -0
  697. package/es/node_modules/markdown-it/lib/rules_inline/html_inline.mjs +40 -0
  698. package/es/node_modules/markdown-it/lib/rules_inline/image.mjs +115 -0
  699. package/es/node_modules/markdown-it/lib/rules_inline/link.mjs +110 -0
  700. package/es/node_modules/markdown-it/lib/rules_inline/linkify.mjs +44 -0
  701. package/es/node_modules/markdown-it/lib/rules_inline/newline.mjs +33 -0
  702. package/es/node_modules/markdown-it/lib/rules_inline/state_inline.mjs +96 -0
  703. package/es/node_modules/markdown-it/lib/rules_inline/strikethrough.mjs +97 -0
  704. package/es/node_modules/markdown-it/lib/rules_inline/text.mjs +47 -0
  705. package/es/node_modules/markdown-it/lib/token.mjs +62 -0
  706. package/es/node_modules/marked/lib/marked.esm.mjs +1118 -0
  707. package/es/node_modules/mdurl/index.mjs +10 -0
  708. package/es/node_modules/mdurl/lib/decode.mjs +83 -0
  709. package/es/node_modules/mdurl/lib/encode.mjs +64 -0
  710. package/es/node_modules/mdurl/lib/format.mjs +19 -0
  711. package/es/node_modules/mdurl/lib/parse.mjs +182 -0
  712. package/es/node_modules/mermaid/dist/chunks/mermaid.core/abnfDiagram-VRR7QNED.mjs +123 -0
  713. package/es/node_modules/mermaid/dist/chunks/mermaid.core/architectureDiagram-ZJ3FMSHR.mjs +1261 -0
  714. package/es/node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-677ZJIJ3.mjs +3688 -0
  715. package/es/node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-LMCZKHZV.mjs +2485 -0
  716. package/es/node_modules/mermaid/dist/chunks/mermaid.core/chunk-2Q5K7J3B.mjs +17 -0
  717. package/es/node_modules/mermaid/dist/chunks/mermaid.core/chunk-32BRIVSS.mjs +121 -0
  718. package/es/node_modules/mermaid/dist/chunks/mermaid.core/chunk-52WLFC77.mjs +1050 -0
  719. package/es/node_modules/mermaid/dist/chunks/mermaid.core/chunk-5VM5RSS4.mjs +19 -0
  720. package/es/node_modules/mermaid/dist/chunks/mermaid.core/chunk-7BUUIJ7U.mjs +126 -0
  721. package/es/node_modules/mermaid/dist/chunks/mermaid.core/chunk-C7G6YPKG.mjs +105 -0
  722. package/es/node_modules/mermaid/dist/chunks/mermaid.core/chunk-EX3LRPZG.mjs +2004 -0
  723. package/es/node_modules/mermaid/dist/chunks/mermaid.core/chunk-FWX5IMBZ.mjs +91 -0
  724. package/es/node_modules/mermaid/dist/chunks/mermaid.core/chunk-HOUHSVGY.mjs +92 -0
  725. package/es/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ICXQ74PX.mjs +571 -0
  726. package/es/node_modules/mermaid/dist/chunks/mermaid.core/chunk-JWPE2WC7.mjs +17 -0
  727. package/es/node_modules/mermaid/dist/chunks/mermaid.core/chunk-MOJQB5TN.mjs +858 -0
  728. package/es/node_modules/mermaid/dist/chunks/mermaid.core/chunk-OGEWGWER.mjs +57 -0
  729. package/es/node_modules/mermaid/dist/chunks/mermaid.core/chunk-PUDLZKDR.mjs +2359 -0
  730. package/es/node_modules/mermaid/dist/chunks/mermaid.core/chunk-Q4XR5HBZ.mjs +399 -0
  731. package/es/node_modules/mermaid/dist/chunks/mermaid.core/chunk-RYQCIY6F.mjs +430 -0
  732. package/es/node_modules/mermaid/dist/chunks/mermaid.core/chunk-V7JOEXUC.mjs +2030 -0
  733. package/es/node_modules/mermaid/dist/chunks/mermaid.core/chunk-VAUOI2AC.mjs +20 -0
  734. package/es/node_modules/mermaid/dist/chunks/mermaid.core/chunk-VR4S4FIN.mjs +27 -0
  735. package/es/node_modules/mermaid/dist/chunks/mermaid.core/chunk-WYO6CB5R.mjs +5448 -0
  736. package/es/node_modules/mermaid/dist/chunks/mermaid.core/chunk-X3CZISLH.mjs +72 -0
  737. package/es/node_modules/mermaid/dist/chunks/mermaid.core/chunk-XXDRQBXY.mjs +16 -0
  738. package/es/node_modules/mermaid/dist/chunks/mermaid.core/chunk-Y2CYZVJY.mjs +10 -0
  739. package/es/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ZGVPDNZ5.mjs +5723 -0
  740. package/es/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ZIRB5QZD.mjs +2700 -0
  741. package/es/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-OUVF2IWQ.mjs +31 -0
  742. package/es/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-EOCWNBFH.mjs +31 -0
  743. package/es/node_modules/mermaid/dist/chunks/mermaid.core/cose-bilkent-JH36ORCC.mjs +295 -0
  744. package/es/node_modules/mermaid/dist/chunks/mermaid.core/cynefinDiagram-TSTJHNR4.mjs +457 -0
  745. package/es/node_modules/mermaid/dist/chunks/mermaid.core/dagre-VKFMJZFB.mjs +534 -0
  746. package/es/node_modules/mermaid/dist/chunks/mermaid.core/diagram-FQU43EPY.mjs +642 -0
  747. package/es/node_modules/mermaid/dist/chunks/mermaid.core/diagram-G47NLZAW.mjs +539 -0
  748. package/es/node_modules/mermaid/dist/chunks/mermaid.core/diagram-NH7WQ7WH.mjs +215 -0
  749. package/es/node_modules/mermaid/dist/chunks/mermaid.core/diagram-OA4YK3LP.mjs +496 -0
  750. package/es/node_modules/mermaid/dist/chunks/mermaid.core/diagram-WEI45ONY.mjs +312 -0
  751. package/es/node_modules/mermaid/dist/chunks/mermaid.core/ebnfDiagram-CCIWWBDH.mjs +143 -0
  752. package/es/node_modules/mermaid/dist/chunks/mermaid.core/erDiagram-Q63AITRT.mjs +1250 -0
  753. package/es/node_modules/mermaid/dist/chunks/mermaid.core/flowDiagram-23GEKE2U.mjs +18 -0
  754. package/es/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-NO4QXBWP.mjs +2247 -0
  755. package/es/node_modules/mermaid/dist/chunks/mermaid.core/gitGraphDiagram-IHSO6WYX.mjs +1390 -0
  756. package/es/node_modules/mermaid/dist/chunks/mermaid.core/infoDiagram-FWYZ7A6U.mjs +34 -0
  757. package/es/node_modules/mermaid/dist/chunks/mermaid.core/ishikawaDiagram-FXEZZL3T.mjs +971 -0
  758. package/es/node_modules/mermaid/dist/chunks/mermaid.core/journeyDiagram-5HDEW3XC.mjs +1260 -0
  759. package/es/node_modules/mermaid/dist/chunks/mermaid.core/kanban-definition-HUTT4EX6.mjs +1065 -0
  760. package/es/node_modules/mermaid/dist/chunks/mermaid.core/mindmap-definition-LN4V7U3C.mjs +1167 -0
  761. package/es/node_modules/mermaid/dist/chunks/mermaid.core/pegDiagram-2B236MQR.mjs +131 -0
  762. package/es/node_modules/mermaid/dist/chunks/mermaid.core/pieDiagram-ENE6RG2P.mjs +270 -0
  763. package/es/node_modules/mermaid/dist/chunks/mermaid.core/quadrantDiagram-ABIIQ3AL.mjs +1343 -0
  764. package/es/node_modules/mermaid/dist/chunks/mermaid.core/railroadDiagram-RFXS5EU6.mjs +97 -0
  765. package/es/node_modules/mermaid/dist/chunks/mermaid.core/requirementDiagram-TGXJPOKE.mjs +1213 -0
  766. package/es/node_modules/mermaid/dist/chunks/mermaid.core/sankeyDiagram-HTMAVEWB.mjs +744 -0
  767. package/es/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-DBY2YBRQ.mjs +4530 -0
  768. package/es/node_modules/mermaid/dist/chunks/mermaid.core/sizeCapture-X5ZJPWSS.mjs +63 -0
  769. package/es/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-2N3HPSRC.mjs +464 -0
  770. package/es/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-6OUMAXLB.mjs +31 -0
  771. package/es/node_modules/mermaid/dist/chunks/mermaid.core/swimlanes-5IMT3BWC.mjs +8577 -0
  772. package/es/node_modules/mermaid/dist/chunks/mermaid.core/swimlanesDiagram-G3AALYLV.mjs +28 -0
  773. package/es/node_modules/mermaid/dist/chunks/mermaid.core/timeline-definition-FHXFAJF6.mjs +1615 -0
  774. package/es/node_modules/mermaid/dist/chunks/mermaid.core/vennDiagram-L72KCM5P.mjs +1091 -0
  775. package/es/node_modules/mermaid/dist/chunks/mermaid.core/wardleyDiagram-EHGQE667.mjs +981 -0
  776. package/es/node_modules/mermaid/dist/chunks/mermaid.core/xychartDiagram-FW5EYKEG.mjs +1919 -0
  777. package/es/node_modules/mermaid/dist/mermaid.core.mjs +1468 -0
  778. package/es/node_modules/object-refs/index.mjs +1 -1
  779. package/es/node_modules/punycode.js/punycode.es6.mjs +240 -0
  780. package/es/node_modules/roughjs/bundled/rough.esm.mjs +1001 -0
  781. package/es/node_modules/stylis/src/Enum.mjs +22 -0
  782. package/es/node_modules/stylis/src/Middleware.mjs +13 -0
  783. package/es/node_modules/stylis/src/Parser.mjs +176 -0
  784. package/es/node_modules/stylis/src/Serializer.mjs +29 -0
  785. package/es/node_modules/stylis/src/Tokenizer.mjs +156 -0
  786. package/es/node_modules/stylis/src/Utility.mjs +34 -0
  787. package/es/node_modules/ts-dedent/esm/index.mjs +42 -0
  788. package/es/node_modules/uc.micro/categories/Cc/regex.mjs +4 -0
  789. package/es/node_modules/uc.micro/categories/Cf/regex.mjs +4 -0
  790. package/es/node_modules/uc.micro/categories/P/regex.mjs +4 -0
  791. package/es/node_modules/uc.micro/categories/S/regex.mjs +4 -0
  792. package/es/node_modules/uc.micro/categories/Z/regex.mjs +4 -0
  793. package/es/node_modules/uc.micro/index.mjs +14 -0
  794. package/es/node_modules/uc.micro/properties/Any/regex.mjs +4 -0
  795. package/es/node_modules/uuid/dist/native.mjs +5 -0
  796. package/es/node_modules/uuid/dist/rng.mjs +14 -0
  797. package/es/node_modules/uuid/dist/stringify.mjs +10 -0
  798. package/es/node_modules/uuid/dist/v4.mjs +23 -0
  799. package/es/node_modules/vant/es/action-bar-button/ActionBarButton.mjs +1 -1
  800. package/es/node_modules/vant/es/button/Button.mjs +2 -2
  801. package/es/node_modules/vant/es/dialog/Dialog.mjs +2 -2
  802. package/es/node_modules/vant/es/loading/Loading.mjs +1 -1
  803. package/es/node_modules/vant/es/swipe-cell/SwipeCell.mjs +1 -1
  804. package/es/packages/mobile/index.mjs +2 -0
  805. package/es/packages/mobile/src/components/ai/AiChat/AiChat.vue.mjs +218 -0
  806. package/es/packages/mobile/src/components/ai/AiChat/index.mjs +7 -0
  807. package/es/packages/mobile/src/components/ai/ChatInput/ChatInput.vue.mjs +211 -0
  808. package/es/packages/mobile/src/components/ai/ChatInput/index.mjs +7 -0
  809. package/es/packages/mobile/src/components/ai/ChatPanel/ChatPanel.vue.mjs +232 -0
  810. package/es/packages/mobile/src/components/ai/ChatPanel/index.mjs +7 -0
  811. package/es/packages/mobile/src/components/ai/MarkdownRenderer/MarkdownRenderer.vue.mjs +129 -0
  812. package/es/packages/mobile/src/components/ai/MarkdownRenderer/index.mjs +7 -0
  813. package/es/packages/mobile/src/components/ai/RecordOverlay/RecordOverlay.vue.mjs +98 -0
  814. package/es/packages/mobile/src/components/ai/RecordOverlay/index.mjs +7 -0
  815. package/es/packages/mobile/src/components/all.mjs +2 -0
  816. package/es/packages/mobile/src/components/dataDisplay/mine/Mine.vue.mjs +3 -5
  817. package/es/packages/mobile/src/composables/useAI/adapters/detector.mjs +77 -0
  818. package/es/packages/mobile/src/composables/useAI/adapters/index.mjs +34 -0
  819. package/es/packages/mobile/src/composables/useAI/adapters/miniprogram.mjs +163 -0
  820. package/es/packages/mobile/src/composables/useAI/adapters/mock.mjs +179 -0
  821. package/es/packages/mobile/src/composables/useAI/adapters/wecom.mjs +212 -0
  822. package/es/packages/mobile/src/composables/useAI/types.mjs +92 -0
  823. package/es/packages/mobile/src/composables/useAI/useChat.mjs +197 -0
  824. package/es/packages/mobile/src/composables/useAI/useVoice.mjs +168 -0
  825. package/es/packages/mobile/src/composables/useVoiceTouch.mjs +101 -0
  826. package/es/packages/mobile/src/index.vue.mjs +111 -27
  827. package/es/packages/vue/src/components/forms/form/Form.vue.mjs +30 -2
  828. package/es/packages/vue/src/components/forms/formItem/FormItem.vue.mjs +100 -3
  829. package/es/packages/vue/src/components/table/Table.vue.mjs +5 -111
  830. package/es/packages/vue/src/utils/formatCellValue.mjs +104 -0
  831. package/es/packages/vue/src/utils/importantDataChange.mjs +181 -0
  832. package/lib/_virtual/advancedFormat.js +4 -4
  833. package/lib/_virtual/constants.js +4 -0
  834. package/lib/_virtual/cose-base.js +4 -0
  835. package/lib/_virtual/cose-base2.js +4 -0
  836. package/lib/_virtual/customParseFormat.js +4 -4
  837. package/lib/_virtual/cytoscape-cose-bilkent.js +7 -0
  838. package/lib/_virtual/cytoscape-cose-bilkent2.js +4 -0
  839. package/lib/_virtual/cytoscape-fcose.js +7 -0
  840. package/lib/_virtual/cytoscape-fcose2.js +4 -0
  841. package/lib/_virtual/dayjs.min.js +2 -2
  842. package/lib/_virtual/duration.js +7 -0
  843. package/lib/_virtual/duration2.js +4 -0
  844. package/lib/_virtual/index.js +4 -4
  845. package/lib/_virtual/index2.js +3 -2
  846. package/lib/_virtual/index3.js +7 -0
  847. package/lib/_virtual/index4.js +4 -0
  848. package/lib/_virtual/index5.js +4 -0
  849. package/lib/_virtual/isoWeek.js +7 -0
  850. package/lib/_virtual/isoWeek2.js +4 -0
  851. package/lib/_virtual/layout-base.js +4 -0
  852. package/lib/_virtual/layout-base2.js +4 -0
  853. package/lib/designer/package.json.js +1 -1
  854. package/lib/designer/src/components/DocumentParam.vue.js +1 -1
  855. package/lib/designer/src/components/ParamsConfig.vue2.js +1 -1
  856. package/lib/designer/src/components/ValueSelector.vue2.js +5 -7
  857. package/lib/designer/src/layout/aside/HiddenFieldDialog.vue.js +1 -1
  858. package/lib/designer/src/packages/advancedFilter/ValueInput.vue2.js +1 -1
  859. package/lib/designer/src/packages/dataLinkage/index.vue.js +1 -1
  860. package/lib/designer/src/packages/dialogGlobal/index.vue.js +1 -1
  861. package/lib/designer/src/packages/eventFlow/dialog/action/RiskSch.vue.js +1 -1
  862. package/lib/designer/src/packages/form/headerBtn.vue.js +46 -24
  863. package/lib/designer/src/packages/form/property/approvalHistory.vue.js +1 -1
  864. package/lib/designer/src/packages/form/property/contract.vue.js +1 -1
  865. package/lib/designer/src/packages/form/property/subForm.vue.js +1 -1
  866. package/lib/designer/src/packages/importantDataChange/index.vue.js +184 -0
  867. package/lib/designer/src/packages/importantDataChange/useImportantDataChangeDialog.js +16 -0
  868. package/lib/designer/src/packages/prod/index.vue.js +1 -1
  869. package/lib/designer/src/packages/table/headerBtn.vue.js +1 -1
  870. package/lib/designer.css +962 -106
  871. package/lib/node_modules/@braintree/sanitize-url/dist/constants.js +20 -0
  872. package/lib/node_modules/@braintree/sanitize-url/dist/index.js +75 -0
  873. package/lib/node_modules/@element-plus/icons-vue/dist/index.js +32 -0
  874. package/lib/node_modules/@iconify/utils/lib/customisations/defaults.js +13 -0
  875. package/lib/node_modules/@iconify/utils/lib/icon/defaults.js +26 -0
  876. package/lib/node_modules/@iconify/utils/lib/icon/merge.js +13 -0
  877. package/lib/node_modules/@iconify/utils/lib/icon/name.js +45 -0
  878. package/lib/node_modules/@iconify/utils/lib/icon/transformations.js +11 -0
  879. package/lib/node_modules/@iconify/utils/lib/icon-set/get-icon.js +22 -0
  880. package/lib/node_modules/@iconify/utils/lib/icon-set/tree.js +20 -0
  881. package/lib/node_modules/@iconify/utils/lib/svg/build.js +103 -0
  882. package/lib/node_modules/@iconify/utils/lib/svg/defs.js +29 -0
  883. package/lib/node_modules/@iconify/utils/lib/svg/html.js +8 -0
  884. package/lib/node_modules/@iconify/utils/lib/svg/id.js +25 -0
  885. package/lib/node_modules/@iconify/utils/lib/svg/size.js +26 -0
  886. package/lib/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/architecture-TIHT7OUA.js +6 -0
  887. package/lib/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-5FCAYU7R.js +35 -0
  888. package/lib/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-5HE753X5.js +49 -0
  889. package/lib/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-5JV3BV7I.js +88 -0
  890. package/lib/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-5TONJI2A.js +76 -0
  891. package/lib/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-BIQX33UG.js +31 -0
  892. package/lib/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-CQNSW5MT.js +57 -0
  893. package/lib/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-CYSBUYHQ.js +31 -0
  894. package/lib/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-EMLP6XTP.js +31 -0
  895. package/lib/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-JG7HCLWE.js +76 -0
  896. package/lib/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-KEIR6QF5.js +30695 -0
  897. package/lib/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-MOZMSUNE.js +48 -0
  898. package/lib/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-OSBZ3O6U.js +31 -0
  899. package/lib/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-QBLGF6JB.js +31 -0
  900. package/lib/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-R7FJI6CG.js +102 -0
  901. package/lib/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-U6XO7XAA.js +79 -0
  902. package/lib/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-YOTPTUD7.js +39 -0
  903. package/lib/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/cynefin-VYW2F7L2.js +6 -0
  904. package/lib/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/eventmodeling-45OFAUF4.js +6 -0
  905. package/lib/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/gitGraph-TEB2WS4Q.js +6 -0
  906. package/lib/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-DKCQHKI2.js +6 -0
  907. package/lib/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-7NZHBO7P.js +6 -0
  908. package/lib/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-RZYD4A2V.js +6 -0
  909. package/lib/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-I7S5WNFK.js +6 -0
  910. package/lib/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/railroad-3IZDKUUU.js +6 -0
  911. package/lib/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/railroad-abnf-AHOZXSZD.js +6 -0
  912. package/lib/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/railroad-ebnf-EBAXGLYW.js +6 -0
  913. package/lib/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/railroad-peg-LSFZ7HO6.js +6 -0
  914. package/lib/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treeView-QDETBFTQ.js +6 -0
  915. package/lib/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-6X3UGDF4.js +6 -0
  916. package/lib/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/wardley-OPB4EBWU.js +6 -0
  917. package/lib/node_modules/@mermaid-js/parser/dist/mermaid-parser.core.js +275 -0
  918. package/lib/node_modules/@upsetjs/venn.js/build/venn.esm.js +1465 -0
  919. package/lib/node_modules/cytoscape/dist/cytoscape.esm.js +30346 -0
  920. package/lib/node_modules/cytoscape-cose-bilkent/cytoscape-cose-bilkent.js +374 -0
  921. package/lib/node_modules/cytoscape-cose-bilkent/node_modules/cose-base/cose-base.js +1090 -0
  922. package/lib/node_modules/cytoscape-cose-bilkent/node_modules/layout-base/layout-base.js +3197 -0
  923. package/lib/node_modules/cytoscape-fcose/cytoscape-fcose.js +1278 -0
  924. package/lib/node_modules/cytoscape-fcose/node_modules/cose-base/cose-base.js +2555 -0
  925. package/lib/node_modules/cytoscape-fcose/node_modules/layout-base/layout-base.js +3745 -0
  926. package/lib/node_modules/d3/node_modules/d3-shape/src/arc.js +133 -0
  927. package/lib/node_modules/d3/node_modules/d3-shape/src/array.js +6 -0
  928. package/lib/node_modules/d3/node_modules/d3-shape/src/constant.js +8 -0
  929. package/lib/node_modules/d3/node_modules/d3-shape/src/curve/basis.js +66 -0
  930. package/lib/node_modules/d3/node_modules/d3-shape/src/curve/basisClosed.js +63 -0
  931. package/lib/node_modules/d3/node_modules/d3-shape/src/curve/basisOpen.js +50 -0
  932. package/lib/node_modules/d3/node_modules/d3-shape/src/curve/bump.js +49 -0
  933. package/lib/node_modules/d3/node_modules/d3-shape/src/curve/bundle.js +43 -0
  934. package/lib/node_modules/d3/node_modules/d3-shape/src/curve/cardinal.js +73 -0
  935. package/lib/node_modules/d3/node_modules/d3-shape/src/curve/cardinalClosed.js +69 -0
  936. package/lib/node_modules/d3/node_modules/d3-shape/src/curve/cardinalOpen.js +57 -0
  937. package/lib/node_modules/d3/node_modules/d3-shape/src/curve/catmullRom.js +83 -0
  938. package/lib/node_modules/d3/node_modules/d3-shape/src/curve/catmullRomClosed.js +75 -0
  939. package/lib/node_modules/d3/node_modules/d3-shape/src/curve/catmullRomOpen.js +63 -0
  940. package/lib/node_modules/d3/node_modules/d3-shape/src/curve/linear.js +39 -0
  941. package/lib/node_modules/d3/node_modules/d3-shape/src/curve/linearClosed.js +25 -0
  942. package/lib/node_modules/d3/node_modules/d3-shape/src/curve/monotone.js +99 -0
  943. package/lib/node_modules/d3/node_modules/d3-shape/src/curve/natural.js +54 -0
  944. package/lib/node_modules/d3/node_modules/d3-shape/src/curve/step.js +59 -0
  945. package/lib/node_modules/d3/node_modules/d3-shape/src/descending.js +6 -0
  946. package/lib/node_modules/d3/node_modules/d3-shape/src/identity.js +6 -0
  947. package/lib/node_modules/d3/node_modules/d3-shape/src/line.js +41 -0
  948. package/lib/node_modules/d3/node_modules/d3-shape/src/math.js +32 -0
  949. package/lib/node_modules/d3/node_modules/d3-shape/src/noop.js +5 -0
  950. package/lib/node_modules/d3/node_modules/d3-shape/src/path.js +19 -0
  951. package/lib/node_modules/d3/node_modules/d3-shape/src/pie.js +55 -0
  952. package/lib/node_modules/d3/node_modules/d3-shape/src/point.js +10 -0
  953. package/lib/node_modules/d3-array/node_modules/internmap/src/index.js +43 -0
  954. package/lib/node_modules/d3-array/src/ascending.js +6 -0
  955. package/lib/node_modules/d3-array/src/bisect.js +10 -0
  956. package/lib/node_modules/d3-array/src/bisector.js +47 -0
  957. package/lib/node_modules/d3-array/src/descending.js +6 -0
  958. package/lib/node_modules/d3-array/src/max.js +21 -0
  959. package/lib/node_modules/d3-array/src/min.js +21 -0
  960. package/lib/node_modules/d3-array/src/number.js +6 -0
  961. package/lib/node_modules/d3-array/src/range.js +11 -0
  962. package/lib/node_modules/d3-array/src/ticks.js +51 -0
  963. package/lib/node_modules/d3-axis/src/axis.js +94 -0
  964. package/lib/node_modules/d3-axis/src/identity.js +6 -0
  965. package/lib/node_modules/d3-color/src/color.js +338 -0
  966. package/lib/node_modules/d3-color/src/define.js +13 -0
  967. package/lib/node_modules/d3-color/src/lab.js +95 -0
  968. package/lib/node_modules/d3-color/src/math.js +6 -0
  969. package/lib/node_modules/d3-dispatch/src/dispatch.js +70 -0
  970. package/lib/node_modules/d3-ease/src/cubic.js +6 -0
  971. package/lib/node_modules/d3-format/src/defaultLocale.js +18 -0
  972. package/lib/node_modules/d3-format/src/exponent.js +7 -0
  973. package/lib/node_modules/d3-format/src/formatDecimal.js +15 -0
  974. package/lib/node_modules/d3-format/src/formatGroup.js +15 -0
  975. package/lib/node_modules/d3-format/src/formatNumerals.js +10 -0
  976. package/lib/node_modules/d3-format/src/formatPrefixAuto.js +11 -0
  977. package/lib/node_modules/d3-format/src/formatRounded.js +10 -0
  978. package/lib/node_modules/d3-format/src/formatSpecifier.js +37 -0
  979. package/lib/node_modules/d3-format/src/formatTrim.js +21 -0
  980. package/lib/node_modules/d3-format/src/formatTypes.js +21 -0
  981. package/lib/node_modules/d3-format/src/identity.js +6 -0
  982. package/lib/node_modules/d3-format/src/locale.js +82 -0
  983. package/lib/node_modules/d3-format/src/precisionFixed.js +7 -0
  984. package/lib/node_modules/d3-format/src/precisionPrefix.js +7 -0
  985. package/lib/node_modules/d3-format/src/precisionRound.js +8 -0
  986. package/lib/node_modules/d3-hierarchy/src/accessors.js +7 -0
  987. package/lib/node_modules/d3-hierarchy/src/constant.js +12 -0
  988. package/lib/node_modules/d3-hierarchy/src/hierarchy/ancestors.js +10 -0
  989. package/lib/node_modules/d3-hierarchy/src/hierarchy/count.js +12 -0
  990. package/lib/node_modules/d3-hierarchy/src/hierarchy/descendants.js +6 -0
  991. package/lib/node_modules/d3-hierarchy/src/hierarchy/each.js +10 -0
  992. package/lib/node_modules/d3-hierarchy/src/hierarchy/eachAfter.js +18 -0
  993. package/lib/node_modules/d3-hierarchy/src/hierarchy/eachBefore.js +15 -0
  994. package/lib/node_modules/d3-hierarchy/src/hierarchy/find.js +11 -0
  995. package/lib/node_modules/d3-hierarchy/src/hierarchy/index.js +79 -0
  996. package/lib/node_modules/d3-hierarchy/src/hierarchy/iterator.js +17 -0
  997. package/lib/node_modules/d3-hierarchy/src/hierarchy/leaves.js +12 -0
  998. package/lib/node_modules/d3-hierarchy/src/hierarchy/links.js +12 -0
  999. package/lib/node_modules/d3-hierarchy/src/hierarchy/path.js +28 -0
  1000. package/lib/node_modules/d3-hierarchy/src/hierarchy/sort.js +10 -0
  1001. package/lib/node_modules/d3-hierarchy/src/hierarchy/sum.js +10 -0
  1002. package/lib/node_modules/d3-hierarchy/src/treemap/dice.js +10 -0
  1003. package/lib/node_modules/d3-hierarchy/src/treemap/index.js +69 -0
  1004. package/lib/node_modules/d3-hierarchy/src/treemap/round.js +9 -0
  1005. package/lib/node_modules/d3-hierarchy/src/treemap/slice.js +10 -0
  1006. package/lib/node_modules/d3-hierarchy/src/treemap/squarify.js +47 -0
  1007. package/lib/node_modules/d3-interpolate/src/array.js +13 -0
  1008. package/lib/node_modules/d3-interpolate/src/color.js +29 -0
  1009. package/lib/node_modules/d3-interpolate/src/constant.js +4 -0
  1010. package/lib/node_modules/d3-interpolate/src/date.js +9 -0
  1011. package/lib/node_modules/d3-interpolate/src/hcl.js +18 -0
  1012. package/lib/node_modules/d3-interpolate/src/number.js +8 -0
  1013. package/lib/node_modules/d3-interpolate/src/numberArray.js +15 -0
  1014. package/lib/node_modules/d3-interpolate/src/object.js +20 -0
  1015. package/lib/node_modules/d3-interpolate/src/rgb.js +20 -0
  1016. package/lib/node_modules/d3-interpolate/src/round.js +8 -0
  1017. package/lib/node_modules/d3-interpolate/src/string.js +43 -0
  1018. package/lib/node_modules/d3-interpolate/src/transform/decompose.js +28 -0
  1019. package/lib/node_modules/d3-interpolate/src/transform/index.js +59 -0
  1020. package/lib/node_modules/d3-interpolate/src/transform/parse.js +18 -0
  1021. package/lib/node_modules/d3-interpolate/src/value.js +16 -0
  1022. package/lib/node_modules/d3-path/src/path.js +88 -0
  1023. package/lib/node_modules/d3-sankey/node_modules/d3-array/src/max.js +21 -0
  1024. package/lib/node_modules/d3-sankey/node_modules/d3-array/src/min.js +21 -0
  1025. package/lib/node_modules/d3-sankey/node_modules/d3-array/src/sum.js +21 -0
  1026. package/lib/node_modules/d3-sankey/src/align.js +22 -0
  1027. package/lib/node_modules/d3-sankey/src/constant.js +8 -0
  1028. package/lib/node_modules/d3-sankey/src/sankey.js +326 -0
  1029. package/lib/node_modules/d3-sankey/src/sankeyLinkHorizontal.js +13 -0
  1030. package/lib/node_modules/d3-scale/src/band.js +56 -0
  1031. package/lib/node_modules/d3-scale/src/constant.js +8 -0
  1032. package/lib/node_modules/d3-scale/src/continuous.js +95 -0
  1033. package/lib/node_modules/d3-scale/src/init.js +16 -0
  1034. package/lib/node_modules/d3-scale/src/linear.js +61 -0
  1035. package/lib/node_modules/d3-scale/src/nice.js +14 -0
  1036. package/lib/node_modules/d3-scale/src/number.js +6 -0
  1037. package/lib/node_modules/d3-scale/src/ordinal.js +38 -0
  1038. package/lib/node_modules/d3-scale/src/tickFormat.js +34 -0
  1039. package/lib/node_modules/d3-scale/src/time.js +54 -0
  1040. package/lib/node_modules/d3-scale-chromatic/src/categorical/Tableau10.js +5 -0
  1041. package/lib/node_modules/d3-scale-chromatic/src/colors.js +8 -0
  1042. package/lib/node_modules/d3-selection/src/array.js +6 -0
  1043. package/lib/node_modules/d3-selection/src/constant.js +8 -0
  1044. package/lib/node_modules/d3-selection/src/creator.js +20 -0
  1045. package/lib/node_modules/d3-selection/src/matcher.js +14 -0
  1046. package/lib/node_modules/d3-selection/src/namespace.js +9 -0
  1047. package/lib/node_modules/d3-selection/src/namespaces.js +12 -0
  1048. package/lib/node_modules/d3-selection/src/select.js +7 -0
  1049. package/lib/node_modules/d3-selection/src/selection/append.js +10 -0
  1050. package/lib/node_modules/d3-selection/src/selection/attr.js +46 -0
  1051. package/lib/node_modules/d3-selection/src/selection/call.js +9 -0
  1052. package/lib/node_modules/d3-selection/src/selection/classed.js +64 -0
  1053. package/lib/node_modules/d3-selection/src/selection/clone.js +14 -0
  1054. package/lib/node_modules/d3-selection/src/selection/data.js +76 -0
  1055. package/lib/node_modules/d3-selection/src/selection/datum.js +6 -0
  1056. package/lib/node_modules/d3-selection/src/selection/dispatch.js +28 -0
  1057. package/lib/node_modules/d3-selection/src/selection/each.js +11 -0
  1058. package/lib/node_modules/d3-selection/src/selection/empty.js +6 -0
  1059. package/lib/node_modules/d3-selection/src/selection/enter.js +31 -0
  1060. package/lib/node_modules/d3-selection/src/selection/exit.js +8 -0
  1061. package/lib/node_modules/d3-selection/src/selection/filter.js +16 -0
  1062. package/lib/node_modules/d3-selection/src/selection/html.js +20 -0
  1063. package/lib/node_modules/d3-selection/src/selection/index.js +88 -0
  1064. package/lib/node_modules/d3-selection/src/selection/insert.js +14 -0
  1065. package/lib/node_modules/d3-selection/src/selection/iterator.js +10 -0
  1066. package/lib/node_modules/d3-selection/src/selection/join.js +19 -0
  1067. package/lib/node_modules/d3-selection/src/selection/lower.js +9 -0
  1068. package/lib/node_modules/d3-selection/src/selection/merge.js +18 -0
  1069. package/lib/node_modules/d3-selection/src/selection/node.js +12 -0
  1070. package/lib/node_modules/d3-selection/src/selection/nodes.js +6 -0
  1071. package/lib/node_modules/d3-selection/src/selection/on.js +64 -0
  1072. package/lib/node_modules/d3-selection/src/selection/order.js +14 -0
  1073. package/lib/node_modules/d3-selection/src/selection/property.js +23 -0
  1074. package/lib/node_modules/d3-selection/src/selection/raise.js +9 -0
  1075. package/lib/node_modules/d3-selection/src/selection/remove.js +10 -0
  1076. package/lib/node_modules/d3-selection/src/selection/select.js +17 -0
  1077. package/lib/node_modules/d3-selection/src/selection/selectAll.js +24 -0
  1078. package/lib/node_modules/d3-selection/src/selection/selectChild.js +16 -0
  1079. package/lib/node_modules/d3-selection/src/selection/selectChildren.js +16 -0
  1080. package/lib/node_modules/d3-selection/src/selection/size.js +8 -0
  1081. package/lib/node_modules/d3-selection/src/selection/sort.js +22 -0
  1082. package/lib/node_modules/d3-selection/src/selection/sparse.js +6 -0
  1083. package/lib/node_modules/d3-selection/src/selection/style.js +28 -0
  1084. package/lib/node_modules/d3-selection/src/selection/text.js +20 -0
  1085. package/lib/node_modules/d3-selection/src/selector.js +10 -0
  1086. package/lib/node_modules/d3-selection/src/selectorAll.js +11 -0
  1087. package/lib/node_modules/d3-selection/src/window.js +6 -0
  1088. package/lib/node_modules/d3-shape/node_modules/d3-path/src/path.js +73 -0
  1089. package/lib/node_modules/d3-shape/src/array.js +4 -0
  1090. package/lib/node_modules/d3-shape/src/constant.js +8 -0
  1091. package/lib/node_modules/d3-shape/src/link/index.js +45 -0
  1092. package/lib/node_modules/d3-shape/src/point.js +10 -0
  1093. package/lib/node_modules/d3-time/src/day.js +34 -0
  1094. package/lib/node_modules/d3-time/src/duration.js +16 -0
  1095. package/lib/node_modules/d3-time/src/hour.js +26 -0
  1096. package/lib/node_modules/d3-time/src/interval.js +61 -0
  1097. package/lib/node_modules/d3-time/src/millisecond.js +23 -0
  1098. package/lib/node_modules/d3-time/src/minute.js +26 -0
  1099. package/lib/node_modules/d3-time/src/month.js +27 -0
  1100. package/lib/node_modules/d3-time/src/second.js +15 -0
  1101. package/lib/node_modules/d3-time/src/ticks.js +54 -0
  1102. package/lib/node_modules/d3-time/src/week.js +66 -0
  1103. package/lib/node_modules/d3-time/src/year.js +45 -0
  1104. package/lib/node_modules/d3-time-format/src/defaultLocale.js +24 -0
  1105. package/lib/node_modules/d3-time-format/src/locale.js +542 -0
  1106. package/lib/node_modules/d3-timer/src/timeout.js +13 -0
  1107. package/lib/node_modules/d3-timer/src/timer.js +96 -0
  1108. package/lib/node_modules/d3-transition/src/interrupt.js +21 -0
  1109. package/lib/node_modules/d3-transition/src/selection/index.js +6 -0
  1110. package/lib/node_modules/d3-transition/src/selection/interrupt.js +9 -0
  1111. package/lib/node_modules/d3-transition/src/selection/transition.js +39 -0
  1112. package/lib/node_modules/d3-transition/src/transition/attr.js +55 -0
  1113. package/lib/node_modules/d3-transition/src/transition/attrTween.js +42 -0
  1114. package/lib/node_modules/d3-transition/src/transition/delay.js +18 -0
  1115. package/lib/node_modules/d3-transition/src/transition/duration.js +18 -0
  1116. package/lib/node_modules/d3-transition/src/transition/ease.js +14 -0
  1117. package/lib/node_modules/d3-transition/src/transition/easeVarying.js +15 -0
  1118. package/lib/node_modules/d3-transition/src/transition/end.js +23 -0
  1119. package/lib/node_modules/d3-transition/src/transition/filter.js +16 -0
  1120. package/lib/node_modules/d3-transition/src/transition/index.js +68 -0
  1121. package/lib/node_modules/d3-transition/src/transition/interpolate.js +11 -0
  1122. package/lib/node_modules/d3-transition/src/transition/merge.js +18 -0
  1123. package/lib/node_modules/d3-transition/src/transition/on.js +23 -0
  1124. package/lib/node_modules/d3-transition/src/transition/remove.js +13 -0
  1125. package/lib/node_modules/d3-transition/src/transition/schedule.js +125 -0
  1126. package/lib/node_modules/d3-transition/src/transition/select.js +20 -0
  1127. package/lib/node_modules/d3-transition/src/transition/selectAll.js +24 -0
  1128. package/lib/node_modules/d3-transition/src/transition/selection.js +8 -0
  1129. package/lib/node_modules/d3-transition/src/transition/style.js +47 -0
  1130. package/lib/node_modules/d3-transition/src/transition/styleTween.js +25 -0
  1131. package/lib/node_modules/d3-transition/src/transition/text.js +18 -0
  1132. package/lib/node_modules/d3-transition/src/transition/textTween.js +25 -0
  1133. package/lib/node_modules/d3-transition/src/transition/transition.js +22 -0
  1134. package/lib/node_modules/d3-transition/src/transition/tween.js +64 -0
  1135. package/lib/node_modules/d3-zoom/src/transform.js +45 -0
  1136. package/lib/node_modules/dagre-d3-es/src/dagre/acyclic.js +56 -0
  1137. package/lib/node_modules/dagre-d3-es/src/dagre/add-border-segments.js +33 -0
  1138. package/lib/node_modules/dagre-d3-es/src/dagre/coordinate-system.js +66 -0
  1139. package/lib/node_modules/dagre-d3-es/src/dagre/data/list.js +49 -0
  1140. package/lib/node_modules/dagre-d3-es/src/dagre/greedy-fas.js +101 -0
  1141. package/lib/node_modules/dagre-d3-es/src/dagre/layout.js +350 -0
  1142. package/lib/node_modules/dagre-d3-es/src/dagre/nesting-graph.js +97 -0
  1143. package/lib/node_modules/dagre-d3-es/src/dagre/normalize.js +69 -0
  1144. package/lib/node_modules/dagre-d3-es/src/dagre/order/add-subgraph-constraints.js +25 -0
  1145. package/lib/node_modules/dagre-d3-es/src/dagre/order/barycenter.js +30 -0
  1146. package/lib/node_modules/dagre-d3-es/src/dagre/order/build-layer-graph.js +35 -0
  1147. package/lib/node_modules/dagre-d3-es/src/dagre/order/cross-count.js +58 -0
  1148. package/lib/node_modules/dagre-d3-es/src/dagre/order/index.js +54 -0
  1149. package/lib/node_modules/dagre-d3-es/src/dagre/order/init-order.js +36 -0
  1150. package/lib/node_modules/dagre-d3-es/src/dagre/order/resolve-conflicts.js +88 -0
  1151. package/lib/node_modules/dagre-d3-es/src/dagre/order/sort-subgraph.js +69 -0
  1152. package/lib/node_modules/dagre-d3-es/src/dagre/order/sort.js +50 -0
  1153. package/lib/node_modules/dagre-d3-es/src/dagre/parent-dummy-chains.js +66 -0
  1154. package/lib/node_modules/dagre-d3-es/src/dagre/position/bk.js +319 -0
  1155. package/lib/node_modules/dagre-d3-es/src/dagre/position/index.js +32 -0
  1156. package/lib/node_modules/dagre-d3-es/src/dagre/rank/feasible-tree.js +46 -0
  1157. package/lib/node_modules/dagre-d3-es/src/dagre/rank/index.js +29 -0
  1158. package/lib/node_modules/dagre-d3-es/src/dagre/rank/network-simplex.js +149 -0
  1159. package/lib/node_modules/dagre-d3-es/src/dagre/rank/util.js +32 -0
  1160. package/lib/node_modules/dagre-d3-es/src/dagre/util.js +171 -0
  1161. package/lib/node_modules/dagre-d3-es/src/graphlib/alg/dfs.js +34 -0
  1162. package/lib/node_modules/dagre-d3-es/src/graphlib/alg/postorder.js +7 -0
  1163. package/lib/node_modules/dagre-d3-es/src/graphlib/alg/preorder.js +7 -0
  1164. package/lib/node_modules/dagre-d3-es/src/graphlib/alg/topsort.js +6 -0
  1165. package/lib/node_modules/dagre-d3-es/src/graphlib/graph.js +786 -0
  1166. package/lib/node_modules/dagre-d3-es/src/graphlib/json.js +49 -0
  1167. package/lib/node_modules/dayjs/plugin/duration.js +140 -0
  1168. package/lib/node_modules/dayjs/plugin/isoWeek.js +37 -0
  1169. package/lib/node_modules/diagram-js/lib/model/index.js +1 -1
  1170. package/lib/node_modules/dompurify/dist/purify.es.js +1503 -0
  1171. package/lib/node_modules/entities/lib/esm/decode.js +381 -0
  1172. package/lib/node_modules/entities/lib/esm/decode_codepoint.js +56 -0
  1173. package/lib/node_modules/entities/lib/esm/generated/decode-data-html.js +7 -0
  1174. package/lib/node_modules/entities/lib/esm/generated/decode-data-xml.js +7 -0
  1175. package/lib/node_modules/es-toolkit/dist/_internal/globalThis.js +6 -0
  1176. package/lib/node_modules/es-toolkit/dist/_internal/isUnsafeProperty.js +6 -0
  1177. package/lib/node_modules/es-toolkit/dist/compat/_internal/getSymbols.js +6 -0
  1178. package/lib/node_modules/es-toolkit/dist/compat/_internal/getTag.js +7 -0
  1179. package/lib/node_modules/es-toolkit/dist/compat/_internal/isPrototype.js +7 -0
  1180. package/lib/node_modules/es-toolkit/dist/compat/_internal/tags.js +46 -0
  1181. package/lib/node_modules/es-toolkit/dist/compat/function/memoize.js +17 -0
  1182. package/lib/node_modules/es-toolkit/dist/compat/object/clone.js +130 -0
  1183. package/lib/node_modules/es-toolkit/dist/compat/object/cloneDeep.js +7 -0
  1184. package/lib/node_modules/es-toolkit/dist/compat/object/cloneDeepWith.js +35 -0
  1185. package/lib/node_modules/es-toolkit/dist/compat/object/merge.js +8 -0
  1186. package/lib/node_modules/es-toolkit/dist/compat/object/mergeWith.js +65 -0
  1187. package/lib/node_modules/es-toolkit/dist/compat/predicate/isArguments.js +7 -0
  1188. package/lib/node_modules/es-toolkit/dist/compat/predicate/isArray.js +6 -0
  1189. package/lib/node_modules/es-toolkit/dist/compat/predicate/isArrayLike.js +7 -0
  1190. package/lib/node_modules/es-toolkit/dist/compat/predicate/isArrayLikeObject.js +8 -0
  1191. package/lib/node_modules/es-toolkit/dist/compat/predicate/isEmpty.js +22 -0
  1192. package/lib/node_modules/es-toolkit/dist/compat/predicate/isObjectLike.js +6 -0
  1193. package/lib/node_modules/es-toolkit/dist/compat/predicate/isPlainObject.js +18 -0
  1194. package/lib/node_modules/es-toolkit/dist/compat/predicate/isTypedArray.js +7 -0
  1195. package/lib/node_modules/es-toolkit/dist/function/noop.js +5 -0
  1196. package/lib/node_modules/es-toolkit/dist/object/clone.js +33 -0
  1197. package/lib/node_modules/es-toolkit/dist/object/cloneDeepWith.js +145 -0
  1198. package/lib/node_modules/es-toolkit/dist/predicate/isBuffer.js +7 -0
  1199. package/lib/node_modules/es-toolkit/dist/predicate/isLength.js +6 -0
  1200. package/lib/node_modules/es-toolkit/dist/predicate/isPrimitive.js +6 -0
  1201. package/lib/node_modules/es-toolkit/dist/predicate/isTypedArray.js +6 -0
  1202. package/lib/node_modules/highlight.js/es/index.js +5 -0
  1203. package/lib/node_modules/highlight.js/lib/core.js +1542 -0
  1204. package/lib/node_modules/highlight.js/lib/index.js +399 -0
  1205. package/lib/node_modules/highlight.js/lib/languages/1c.js +157 -0
  1206. package/lib/node_modules/highlight.js/lib/languages/abnf.js +74 -0
  1207. package/lib/node_modules/highlight.js/lib/languages/accesslog.js +90 -0
  1208. package/lib/node_modules/highlight.js/lib/languages/actionscript.js +151 -0
  1209. package/lib/node_modules/highlight.js/lib/languages/ada.js +231 -0
  1210. package/lib/node_modules/highlight.js/lib/languages/angelscript.js +175 -0
  1211. package/lib/node_modules/highlight.js/lib/languages/apache.js +103 -0
  1212. package/lib/node_modules/highlight.js/lib/languages/applescript.js +130 -0
  1213. package/lib/node_modules/highlight.js/lib/languages/arcade.js +431 -0
  1214. package/lib/node_modules/highlight.js/lib/languages/arduino.js +942 -0
  1215. package/lib/node_modules/highlight.js/lib/languages/armasm.js +97 -0
  1216. package/lib/node_modules/highlight.js/lib/languages/asciidoc.js +257 -0
  1217. package/lib/node_modules/highlight.js/lib/languages/aspectj.js +229 -0
  1218. package/lib/node_modules/highlight.js/lib/languages/autohotkey.js +76 -0
  1219. package/lib/node_modules/highlight.js/lib/languages/autoit.js +163 -0
  1220. package/lib/node_modules/highlight.js/lib/languages/avrasm.js +67 -0
  1221. package/lib/node_modules/highlight.js/lib/languages/awk.js +68 -0
  1222. package/lib/node_modules/highlight.js/lib/languages/axapta.js +183 -0
  1223. package/lib/node_modules/highlight.js/lib/languages/bash.js +403 -0
  1224. package/lib/node_modules/highlight.js/lib/languages/basic.js +235 -0
  1225. package/lib/node_modules/highlight.js/lib/languages/bnf.js +40 -0
  1226. package/lib/node_modules/highlight.js/lib/languages/brainfuck.js +56 -0
  1227. package/lib/node_modules/highlight.js/lib/languages/c.js +303 -0
  1228. package/lib/node_modules/highlight.js/lib/languages/cal.js +157 -0
  1229. package/lib/node_modules/highlight.js/lib/languages/capnproto.js +99 -0
  1230. package/lib/node_modules/highlight.js/lib/languages/ceylon.js +137 -0
  1231. package/lib/node_modules/highlight.js/lib/languages/clean.js +68 -0
  1232. package/lib/node_modules/highlight.js/lib/languages/clojure-repl.js +26 -0
  1233. package/lib/node_modules/highlight.js/lib/languages/clojure.js +164 -0
  1234. package/lib/node_modules/highlight.js/lib/languages/cmake.js +33 -0
  1235. package/lib/node_modules/highlight.js/lib/languages/coffeescript.js +359 -0
  1236. package/lib/node_modules/highlight.js/lib/languages/coq.js +448 -0
  1237. package/lib/node_modules/highlight.js/lib/languages/cos.js +100 -0
  1238. package/lib/node_modules/highlight.js/lib/languages/cpp.js +552 -0
  1239. package/lib/node_modules/highlight.js/lib/languages/crmsh.js +95 -0
  1240. package/lib/node_modules/highlight.js/lib/languages/crystal.js +307 -0
  1241. package/lib/node_modules/highlight.js/lib/languages/csharp.js +409 -0
  1242. package/lib/node_modules/highlight.js/lib/languages/csp.js +56 -0
  1243. package/lib/node_modules/highlight.js/lib/languages/css.js +946 -0
  1244. package/lib/node_modules/highlight.js/lib/languages/d.js +121 -0
  1245. package/lib/node_modules/highlight.js/lib/languages/dart.js +263 -0
  1246. package/lib/node_modules/highlight.js/lib/languages/delphi.js +254 -0
  1247. package/lib/node_modules/highlight.js/lib/languages/diff.js +62 -0
  1248. package/lib/node_modules/highlight.js/lib/languages/django.js +55 -0
  1249. package/lib/node_modules/highlight.js/lib/languages/dns.js +79 -0
  1250. package/lib/node_modules/highlight.js/lib/languages/dockerfile.js +43 -0
  1251. package/lib/node_modules/highlight.js/lib/languages/dos.js +166 -0
  1252. package/lib/node_modules/highlight.js/lib/languages/dsconfig.js +66 -0
  1253. package/lib/node_modules/highlight.js/lib/languages/dts.js +144 -0
  1254. package/lib/node_modules/highlight.js/lib/languages/dust.js +46 -0
  1255. package/lib/node_modules/highlight.js/lib/languages/ebnf.js +51 -0
  1256. package/lib/node_modules/highlight.js/lib/languages/elixir.js +281 -0
  1257. package/lib/node_modules/highlight.js/lib/languages/elm.js +137 -0
  1258. package/lib/node_modules/highlight.js/lib/languages/erb.js +27 -0
  1259. package/lib/node_modules/highlight.js/lib/languages/erlang-repl.js +54 -0
  1260. package/lib/node_modules/highlight.js/lib/languages/erlang.js +226 -0
  1261. package/lib/node_modules/highlight.js/lib/languages/excel.js +583 -0
  1262. package/lib/node_modules/highlight.js/lib/languages/fix.js +42 -0
  1263. package/lib/node_modules/highlight.js/lib/languages/flix.js +76 -0
  1264. package/lib/node_modules/highlight.js/lib/languages/fortran.js +569 -0
  1265. package/lib/node_modules/highlight.js/lib/languages/fsharp.js +575 -0
  1266. package/lib/node_modules/highlight.js/lib/languages/gams.js +162 -0
  1267. package/lib/node_modules/highlight.js/lib/languages/gauss.js +196 -0
  1268. package/lib/node_modules/highlight.js/lib/languages/gcode.js +171 -0
  1269. package/lib/node_modules/highlight.js/lib/languages/gherkin.js +51 -0
  1270. package/lib/node_modules/highlight.js/lib/languages/glsl.js +39 -0
  1271. package/lib/node_modules/highlight.js/lib/languages/gml.js +3132 -0
  1272. package/lib/node_modules/highlight.js/lib/languages/go.js +163 -0
  1273. package/lib/node_modules/highlight.js/lib/languages/golo.js +81 -0
  1274. package/lib/node_modules/highlight.js/lib/languages/gradle.js +190 -0
  1275. package/lib/node_modules/highlight.js/lib/languages/graphql.js +79 -0
  1276. package/lib/node_modules/highlight.js/lib/languages/groovy.js +189 -0
  1277. package/lib/node_modules/highlight.js/lib/languages/haml.js +113 -0
  1278. package/lib/node_modules/highlight.js/lib/languages/handlebars.js +239 -0
  1279. package/lib/node_modules/highlight.js/lib/languages/haskell.js +199 -0
  1280. package/lib/node_modules/highlight.js/lib/languages/haxe.js +169 -0
  1281. package/lib/node_modules/highlight.js/lib/languages/hsp.js +56 -0
  1282. package/lib/node_modules/highlight.js/lib/languages/http.js +97 -0
  1283. package/lib/node_modules/highlight.js/lib/languages/hy.js +107 -0
  1284. package/lib/node_modules/highlight.js/lib/languages/inform7.js +66 -0
  1285. package/lib/node_modules/highlight.js/lib/languages/ini.js +125 -0
  1286. package/lib/node_modules/highlight.js/lib/languages/irpf90.js +63 -0
  1287. package/lib/node_modules/highlight.js/lib/languages/isbl.js +266 -0
  1288. package/lib/node_modules/highlight.js/lib/languages/java.js +263 -0
  1289. package/lib/node_modules/highlight.js/lib/languages/javascript.js +710 -0
  1290. package/lib/node_modules/highlight.js/lib/languages/jboss-cli.js +62 -0
  1291. package/lib/node_modules/highlight.js/lib/languages/json.js +49 -0
  1292. package/lib/node_modules/highlight.js/lib/languages/julia-repl.js +35 -0
  1293. package/lib/node_modules/highlight.js/lib/languages/julia.js +378 -0
  1294. package/lib/node_modules/highlight.js/lib/languages/kotlin.js +264 -0
  1295. package/lib/node_modules/highlight.js/lib/languages/lasso.js +154 -0
  1296. package/lib/node_modules/highlight.js/lib/languages/latex.js +280 -0
  1297. package/lib/node_modules/highlight.js/lib/languages/ldif.js +32 -0
  1298. package/lib/node_modules/highlight.js/lib/languages/leaf.js +99 -0
  1299. package/lib/node_modules/highlight.js/lib/languages/less.js +1027 -0
  1300. package/lib/node_modules/highlight.js/lib/languages/lisp.js +141 -0
  1301. package/lib/node_modules/highlight.js/lib/languages/livecodeserver.js +103 -0
  1302. package/lib/node_modules/highlight.js/lib/languages/livescript.js +370 -0
  1303. package/lib/node_modules/highlight.js/lib/languages/llvm.js +98 -0
  1304. package/lib/node_modules/highlight.js/lib/languages/lsl.js +72 -0
  1305. package/lib/node_modules/highlight.js/lib/languages/lua.js +70 -0
  1306. package/lib/node_modules/highlight.js/lib/languages/makefile.js +80 -0
  1307. package/lib/node_modules/highlight.js/lib/languages/markdown.js +241 -0
  1308. package/lib/node_modules/highlight.js/lib/languages/mathematica.js +7341 -0
  1309. package/lib/node_modules/highlight.js/lib/languages/matlab.js +85 -0
  1310. package/lib/node_modules/highlight.js/lib/languages/maxima.js +63 -0
  1311. package/lib/node_modules/highlight.js/lib/languages/mel.js +35 -0
  1312. package/lib/node_modules/highlight.js/lib/languages/mercury.js +87 -0
  1313. package/lib/node_modules/highlight.js/lib/languages/mipsasm.js +85 -0
  1314. package/lib/node_modules/highlight.js/lib/languages/mizar.js +18 -0
  1315. package/lib/node_modules/highlight.js/lib/languages/mojolicious.js +37 -0
  1316. package/lib/node_modules/highlight.js/lib/languages/monkey.js +184 -0
  1317. package/lib/node_modules/highlight.js/lib/languages/moonscript.js +144 -0
  1318. package/lib/node_modules/highlight.js/lib/languages/n1ql.js +360 -0
  1319. package/lib/node_modules/highlight.js/lib/languages/nestedtext.js +85 -0
  1320. package/lib/node_modules/highlight.js/lib/languages/nginx.js +152 -0
  1321. package/lib/node_modules/highlight.js/lib/languages/nim.js +190 -0
  1322. package/lib/node_modules/highlight.js/lib/languages/nix.js +356 -0
  1323. package/lib/node_modules/highlight.js/lib/languages/node-repl.js +34 -0
  1324. package/lib/node_modules/highlight.js/lib/languages/nsis.js +539 -0
  1325. package/lib/node_modules/highlight.js/lib/languages/objectivec.js +252 -0
  1326. package/lib/node_modules/highlight.js/lib/languages/ocaml.js +75 -0
  1327. package/lib/node_modules/highlight.js/lib/languages/openscad.js +78 -0
  1328. package/lib/node_modules/highlight.js/lib/languages/oxygene.js +78 -0
  1329. package/lib/node_modules/highlight.js/lib/languages/parser3.js +56 -0
  1330. package/lib/node_modules/highlight.js/lib/languages/perl.js +494 -0
  1331. package/lib/node_modules/highlight.js/lib/languages/pf.js +45 -0
  1332. package/lib/node_modules/highlight.js/lib/languages/pgsql.js +289 -0
  1333. package/lib/node_modules/highlight.js/lib/languages/php-template.js +55 -0
  1334. package/lib/node_modules/highlight.js/lib/languages/php.js +610 -0
  1335. package/lib/node_modules/highlight.js/lib/languages/plaintext.js +21 -0
  1336. package/lib/node_modules/highlight.js/lib/languages/pony.js +65 -0
  1337. package/lib/node_modules/highlight.js/lib/languages/powershell.js +265 -0
  1338. package/lib/node_modules/highlight.js/lib/languages/processing.js +435 -0
  1339. package/lib/node_modules/highlight.js/lib/languages/profile.js +46 -0
  1340. package/lib/node_modules/highlight.js/lib/languages/prolog.js +86 -0
  1341. package/lib/node_modules/highlight.js/lib/languages/properties.js +65 -0
  1342. package/lib/node_modules/highlight.js/lib/languages/protobuf.js +81 -0
  1343. package/lib/node_modules/highlight.js/lib/languages/puppet.js +120 -0
  1344. package/lib/node_modules/highlight.js/lib/languages/purebasic.js +68 -0
  1345. package/lib/node_modules/highlight.js/lib/languages/python-repl.js +34 -0
  1346. package/lib/node_modules/highlight.js/lib/languages/python.js +424 -0
  1347. package/lib/node_modules/highlight.js/lib/languages/q.js +33 -0
  1348. package/lib/node_modules/highlight.js/lib/languages/qml.js +157 -0
  1349. package/lib/node_modules/highlight.js/lib/languages/r.js +219 -0
  1350. package/lib/node_modules/highlight.js/lib/languages/reasonml.js +148 -0
  1351. package/lib/node_modules/highlight.js/lib/languages/rib.js +24 -0
  1352. package/lib/node_modules/highlight.js/lib/languages/roboconf.js +78 -0
  1353. package/lib/node_modules/highlight.js/lib/languages/routeros.js +155 -0
  1354. package/lib/node_modules/highlight.js/lib/languages/rsl.js +146 -0
  1355. package/lib/node_modules/highlight.js/lib/languages/ruby.js +422 -0
  1356. package/lib/node_modules/highlight.js/lib/languages/ruleslanguage.js +38 -0
  1357. package/lib/node_modules/highlight.js/lib/languages/rust.js +322 -0
  1358. package/lib/node_modules/highlight.js/lib/languages/sas.js +552 -0
  1359. package/lib/node_modules/highlight.js/lib/languages/scala.js +200 -0
  1360. package/lib/node_modules/highlight.js/lib/languages/scheme.js +148 -0
  1361. package/lib/node_modules/highlight.js/lib/languages/scilab.js +67 -0
  1362. package/lib/node_modules/highlight.js/lib/languages/scss.js +931 -0
  1363. package/lib/node_modules/highlight.js/lib/languages/shell.js +33 -0
  1364. package/lib/node_modules/highlight.js/lib/languages/smali.js +127 -0
  1365. package/lib/node_modules/highlight.js/lib/languages/smalltalk.js +70 -0
  1366. package/lib/node_modules/highlight.js/lib/languages/sml.js +77 -0
  1367. package/lib/node_modules/highlight.js/lib/languages/sqf.js +2619 -0
  1368. package/lib/node_modules/highlight.js/lib/languages/sql.js +652 -0
  1369. package/lib/node_modules/highlight.js/lib/languages/stan.js +504 -0
  1370. package/lib/node_modules/highlight.js/lib/languages/stata.js +47 -0
  1371. package/lib/node_modules/highlight.js/lib/languages/step21.js +68 -0
  1372. package/lib/node_modules/highlight.js/lib/languages/stylus.js +980 -0
  1373. package/lib/node_modules/highlight.js/lib/languages/subunit.js +46 -0
  1374. package/lib/node_modules/highlight.js/lib/languages/swift.js +884 -0
  1375. package/lib/node_modules/highlight.js/lib/languages/taggerscript.js +56 -0
  1376. package/lib/node_modules/highlight.js/lib/languages/tap.js +48 -0
  1377. package/lib/node_modules/highlight.js/lib/languages/tcl.js +189 -0
  1378. package/lib/node_modules/highlight.js/lib/languages/thrift.js +79 -0
  1379. package/lib/node_modules/highlight.js/lib/languages/tp.js +173 -0
  1380. package/lib/node_modules/highlight.js/lib/languages/twig.js +248 -0
  1381. package/lib/node_modules/highlight.js/lib/languages/typescript.js +823 -0
  1382. package/lib/node_modules/highlight.js/lib/languages/vala.js +50 -0
  1383. package/lib/node_modules/highlight.js/lib/languages/vbnet.js +142 -0
  1384. package/lib/node_modules/highlight.js/lib/languages/vbscript-html.js +24 -0
  1385. package/lib/node_modules/highlight.js/lib/languages/vbscript.js +215 -0
  1386. package/lib/node_modules/highlight.js/lib/languages/verilog.js +550 -0
  1387. package/lib/node_modules/highlight.js/lib/languages/vhdl.js +210 -0
  1388. package/lib/node_modules/highlight.js/lib/languages/vim.js +80 -0
  1389. package/lib/node_modules/highlight.js/lib/languages/wasm.js +130 -0
  1390. package/lib/node_modules/highlight.js/lib/languages/wren.js +288 -0
  1391. package/lib/node_modules/highlight.js/lib/languages/x86asm.js +96 -0
  1392. package/lib/node_modules/highlight.js/lib/languages/xl.js +206 -0
  1393. package/lib/node_modules/highlight.js/lib/languages/xml.js +235 -0
  1394. package/lib/node_modules/highlight.js/lib/languages/xquery.js +336 -0
  1395. package/lib/node_modules/highlight.js/lib/languages/yaml.js +210 -0
  1396. package/lib/node_modules/highlight.js/lib/languages/zephir.js +108 -0
  1397. package/lib/node_modules/katex/dist/katex.js +14498 -0
  1398. package/lib/node_modules/khroma/dist/channels/index.js +131 -0
  1399. package/lib/node_modules/khroma/dist/channels/reusable.js +5 -0
  1400. package/lib/node_modules/khroma/dist/channels/type.js +24 -0
  1401. package/lib/node_modules/khroma/dist/color/hex.js +40 -0
  1402. package/lib/node_modules/khroma/dist/color/hsl.js +50 -0
  1403. package/lib/node_modules/khroma/dist/color/index.js +39 -0
  1404. package/lib/node_modules/khroma/dist/color/keyword.js +172 -0
  1405. package/lib/node_modules/khroma/dist/color/rgb.js +33 -0
  1406. package/lib/node_modules/khroma/dist/constants.js +13 -0
  1407. package/lib/node_modules/khroma/dist/methods/adjust.js +15 -0
  1408. package/lib/node_modules/khroma/dist/methods/adjust_channel.js +13 -0
  1409. package/lib/node_modules/khroma/dist/methods/change.js +12 -0
  1410. package/lib/node_modules/khroma/dist/methods/channel.js +8 -0
  1411. package/lib/node_modules/khroma/dist/methods/darken.js +7 -0
  1412. package/lib/node_modules/khroma/dist/methods/invert.js +12 -0
  1413. package/lib/node_modules/khroma/dist/methods/is_dark.js +7 -0
  1414. package/lib/node_modules/khroma/dist/methods/is_light.js +7 -0
  1415. package/lib/node_modules/khroma/dist/methods/lighten.js +7 -0
  1416. package/lib/node_modules/khroma/dist/methods/luminance.js +10 -0
  1417. package/lib/node_modules/khroma/dist/methods/mix.js +20 -0
  1418. package/lib/node_modules/khroma/dist/methods/rgba.js +18 -0
  1419. package/lib/node_modules/khroma/dist/methods/transparentize.js +7 -0
  1420. package/lib/node_modules/khroma/dist/utils/channel.js +95 -0
  1421. package/lib/node_modules/khroma/dist/utils/index.js +11 -0
  1422. package/lib/node_modules/khroma/dist/utils/lang.js +14 -0
  1423. package/lib/node_modules/khroma/dist/utils/unit.js +10 -0
  1424. package/lib/node_modules/linkify-it/index.js +388 -0
  1425. package/lib/node_modules/linkify-it/lib/re.js +47 -0
  1426. package/lib/node_modules/lodash-es/_arrayReduce.js +13 -0
  1427. package/lib/node_modules/lodash-es/_baseExtremum.js +14 -0
  1428. package/lib/node_modules/lodash-es/_baseFilter.js +13 -0
  1429. package/lib/node_modules/lodash-es/_baseGt.js +6 -0
  1430. package/lib/node_modules/lodash-es/_baseHas.js +8 -0
  1431. package/lib/node_modules/lodash-es/_baseLt.js +6 -0
  1432. package/lib/node_modules/lodash-es/_baseOrderBy.js +37 -0
  1433. package/lib/node_modules/lodash-es/_baseRange.js +12 -0
  1434. package/lib/node_modules/lodash-es/_baseReduce.js +9 -0
  1435. package/lib/node_modules/lodash-es/_baseSortBy.js +11 -0
  1436. package/lib/node_modules/lodash-es/_baseValues.js +9 -0
  1437. package/lib/node_modules/lodash-es/_baseZipObject.js +11 -0
  1438. package/lib/node_modules/lodash-es/_castFunction.js +7 -0
  1439. package/lib/node_modules/lodash-es/_compareAscending.js +17 -0
  1440. package/lib/node_modules/lodash-es/_compareMultiple.js +18 -0
  1441. package/lib/node_modules/lodash-es/_createFind.js +20 -0
  1442. package/lib/node_modules/lodash-es/_createRange.js +22 -0
  1443. package/lib/node_modules/lodash-es/clone.js +8 -0
  1444. package/lib/node_modules/lodash-es/defaults.js +32 -0
  1445. package/lib/node_modules/lodash-es/filter.js +11 -0
  1446. package/lib/node_modules/lodash-es/find.js +6 -0
  1447. package/lib/node_modules/lodash-es/findIndex.js +18 -0
  1448. package/lib/node_modules/lodash-es/forEach.js +11 -0
  1449. package/lib/node_modules/lodash-es/forIn.js +9 -0
  1450. package/lib/node_modules/lodash-es/forOwn.js +8 -0
  1451. package/lib/node_modules/lodash-es/has.js +8 -0
  1452. package/lib/node_modules/lodash-es/isEmpty.js +35 -0
  1453. package/lib/node_modules/lodash-es/mapValues.js +14 -0
  1454. package/lib/node_modules/lodash-es/max.js +9 -0
  1455. package/lib/node_modules/lodash-es/min.js +9 -0
  1456. package/lib/node_modules/lodash-es/minBy.js +9 -0
  1457. package/lib/node_modules/lodash-es/range.js +5 -0
  1458. package/lib/node_modules/lodash-es/reduce.js +12 -0
  1459. package/lib/node_modules/lodash-es/sortBy.js +19 -0
  1460. package/lib/node_modules/lodash-es/toFinite.js +16 -0
  1461. package/lib/node_modules/lodash-es/toInteger.js +8 -0
  1462. package/lib/node_modules/lodash-es/uniqueId.js +9 -0
  1463. package/lib/node_modules/lodash-es/values.js +8 -0
  1464. package/lib/node_modules/lodash-es/zipObject.js +8 -0
  1465. package/lib/node_modules/markdown-it/lib/common/html_blocks.js +67 -0
  1466. package/lib/node_modules/markdown-it/lib/common/html_re.js +18 -0
  1467. package/lib/node_modules/markdown-it/lib/common/utils.js +249 -0
  1468. package/lib/node_modules/markdown-it/lib/helpers/index.js +8 -0
  1469. package/lib/node_modules/markdown-it/lib/helpers/parse_link_destination.js +77 -0
  1470. package/lib/node_modules/markdown-it/lib/helpers/parse_link_label.js +36 -0
  1471. package/lib/node_modules/markdown-it/lib/helpers/parse_link_title.js +55 -0
  1472. package/lib/node_modules/markdown-it/lib/index.js +172 -0
  1473. package/lib/node_modules/markdown-it/lib/parser_block.js +87 -0
  1474. package/lib/node_modules/markdown-it/lib/parser_core.js +36 -0
  1475. package/lib/node_modules/markdown-it/lib/parser_inline.js +123 -0
  1476. package/lib/node_modules/markdown-it/lib/presets/commonmark.js +78 -0
  1477. package/lib/node_modules/markdown-it/lib/presets/default.js +40 -0
  1478. package/lib/node_modules/markdown-it/lib/presets/zero.js +59 -0
  1479. package/lib/node_modules/markdown-it/lib/renderer.js +165 -0
  1480. package/lib/node_modules/markdown-it/lib/ruler.js +143 -0
  1481. package/lib/node_modules/markdown-it/lib/rules_block/blockquote.js +127 -0
  1482. package/lib/node_modules/markdown-it/lib/rules_block/code.js +27 -0
  1483. package/lib/node_modules/markdown-it/lib/rules_block/fence.js +70 -0
  1484. package/lib/node_modules/markdown-it/lib/rules_block/heading.js +43 -0
  1485. package/lib/node_modules/markdown-it/lib/rules_block/hr.js +36 -0
  1486. package/lib/node_modules/markdown-it/lib/rules_block/html_block.js +65 -0
  1487. package/lib/node_modules/markdown-it/lib/rules_block/lheading.js +65 -0
  1488. package/lib/node_modules/markdown-it/lib/rules_block/list.js +226 -0
  1489. package/lib/node_modules/markdown-it/lib/rules_block/paragraph.js +39 -0
  1490. package/lib/node_modules/markdown-it/lib/rules_block/reference.js +177 -0
  1491. package/lib/node_modules/markdown-it/lib/rules_block/state_block.js +159 -0
  1492. package/lib/node_modules/markdown-it/lib/rules_block/table.js +192 -0
  1493. package/lib/node_modules/markdown-it/lib/rules_core/block.js +15 -0
  1494. package/lib/node_modules/markdown-it/lib/rules_core/inline.js +12 -0
  1495. package/lib/node_modules/markdown-it/lib/rules_core/linkify.js +99 -0
  1496. package/lib/node_modules/markdown-it/lib/rules_core/normalize.js +11 -0
  1497. package/lib/node_modules/markdown-it/lib/rules_core/replacements.js +63 -0
  1498. package/lib/node_modules/markdown-it/lib/rules_core/smartquotes.js +160 -0
  1499. package/lib/node_modules/markdown-it/lib/rules_core/state_core.js +12 -0
  1500. package/lib/node_modules/markdown-it/lib/rules_core/text_join.js +31 -0
  1501. package/lib/node_modules/markdown-it/lib/rules_inline/autolink.js +59 -0
  1502. package/lib/node_modules/markdown-it/lib/rules_inline/backticks.js +46 -0
  1503. package/lib/node_modules/markdown-it/lib/rules_inline/balance_pairs.js +65 -0
  1504. package/lib/node_modules/markdown-it/lib/rules_inline/emphasis.js +88 -0
  1505. package/lib/node_modules/markdown-it/lib/rules_inline/entity.js +44 -0
  1506. package/lib/node_modules/markdown-it/lib/rules_inline/escape.js +63 -0
  1507. package/lib/node_modules/markdown-it/lib/rules_inline/fragments_join.js +25 -0
  1508. package/lib/node_modules/markdown-it/lib/rules_inline/html_inline.js +40 -0
  1509. package/lib/node_modules/markdown-it/lib/rules_inline/image.js +115 -0
  1510. package/lib/node_modules/markdown-it/lib/rules_inline/link.js +110 -0
  1511. package/lib/node_modules/markdown-it/lib/rules_inline/linkify.js +44 -0
  1512. package/lib/node_modules/markdown-it/lib/rules_inline/newline.js +33 -0
  1513. package/lib/node_modules/markdown-it/lib/rules_inline/state_inline.js +96 -0
  1514. package/lib/node_modules/markdown-it/lib/rules_inline/strikethrough.js +97 -0
  1515. package/lib/node_modules/markdown-it/lib/rules_inline/text.js +47 -0
  1516. package/lib/node_modules/markdown-it/lib/token.js +62 -0
  1517. package/lib/node_modules/marked/lib/marked.esm.js +1117 -0
  1518. package/lib/node_modules/mdurl/index.js +10 -0
  1519. package/lib/node_modules/mdurl/lib/decode.js +83 -0
  1520. package/lib/node_modules/mdurl/lib/encode.js +64 -0
  1521. package/lib/node_modules/mdurl/lib/format.js +19 -0
  1522. package/lib/node_modules/mdurl/lib/parse.js +182 -0
  1523. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/abnfDiagram-VRR7QNED.js +123 -0
  1524. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/architectureDiagram-ZJ3FMSHR.js +1261 -0
  1525. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-677ZJIJ3.js +3688 -0
  1526. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-LMCZKHZV.js +2485 -0
  1527. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/chunk-2Q5K7J3B.js +17 -0
  1528. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/chunk-32BRIVSS.js +121 -0
  1529. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/chunk-52WLFC77.js +1050 -0
  1530. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/chunk-5VM5RSS4.js +19 -0
  1531. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/chunk-7BUUIJ7U.js +126 -0
  1532. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/chunk-C7G6YPKG.js +105 -0
  1533. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/chunk-EX3LRPZG.js +2004 -0
  1534. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/chunk-FWX5IMBZ.js +91 -0
  1535. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/chunk-HOUHSVGY.js +92 -0
  1536. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ICXQ74PX.js +571 -0
  1537. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/chunk-JWPE2WC7.js +17 -0
  1538. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/chunk-MOJQB5TN.js +858 -0
  1539. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/chunk-OGEWGWER.js +57 -0
  1540. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/chunk-PUDLZKDR.js +2359 -0
  1541. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/chunk-Q4XR5HBZ.js +399 -0
  1542. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/chunk-RYQCIY6F.js +430 -0
  1543. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/chunk-V7JOEXUC.js +2030 -0
  1544. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/chunk-VAUOI2AC.js +20 -0
  1545. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/chunk-VR4S4FIN.js +27 -0
  1546. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/chunk-WYO6CB5R.js +5448 -0
  1547. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/chunk-X3CZISLH.js +72 -0
  1548. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/chunk-XXDRQBXY.js +16 -0
  1549. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/chunk-Y2CYZVJY.js +10 -0
  1550. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ZGVPDNZ5.js +5723 -0
  1551. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ZIRB5QZD.js +2700 -0
  1552. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-OUVF2IWQ.js +31 -0
  1553. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-EOCWNBFH.js +31 -0
  1554. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/cose-bilkent-JH36ORCC.js +295 -0
  1555. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/cynefinDiagram-TSTJHNR4.js +457 -0
  1556. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/dagre-VKFMJZFB.js +534 -0
  1557. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/diagram-FQU43EPY.js +642 -0
  1558. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/diagram-G47NLZAW.js +539 -0
  1559. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/diagram-NH7WQ7WH.js +215 -0
  1560. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/diagram-OA4YK3LP.js +496 -0
  1561. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/diagram-WEI45ONY.js +312 -0
  1562. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/ebnfDiagram-CCIWWBDH.js +143 -0
  1563. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/erDiagram-Q63AITRT.js +1250 -0
  1564. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/flowDiagram-23GEKE2U.js +18 -0
  1565. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-NO4QXBWP.js +2247 -0
  1566. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/gitGraphDiagram-IHSO6WYX.js +1390 -0
  1567. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/infoDiagram-FWYZ7A6U.js +34 -0
  1568. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/ishikawaDiagram-FXEZZL3T.js +971 -0
  1569. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/journeyDiagram-5HDEW3XC.js +1260 -0
  1570. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/kanban-definition-HUTT4EX6.js +1065 -0
  1571. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/mindmap-definition-LN4V7U3C.js +1167 -0
  1572. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/pegDiagram-2B236MQR.js +131 -0
  1573. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/pieDiagram-ENE6RG2P.js +270 -0
  1574. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/quadrantDiagram-ABIIQ3AL.js +1343 -0
  1575. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/railroadDiagram-RFXS5EU6.js +97 -0
  1576. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/requirementDiagram-TGXJPOKE.js +1213 -0
  1577. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/sankeyDiagram-HTMAVEWB.js +744 -0
  1578. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-DBY2YBRQ.js +4530 -0
  1579. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/sizeCapture-X5ZJPWSS.js +63 -0
  1580. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-2N3HPSRC.js +464 -0
  1581. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-6OUMAXLB.js +31 -0
  1582. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/swimlanes-5IMT3BWC.js +8577 -0
  1583. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/swimlanesDiagram-G3AALYLV.js +28 -0
  1584. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/timeline-definition-FHXFAJF6.js +1615 -0
  1585. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/vennDiagram-L72KCM5P.js +1091 -0
  1586. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/wardleyDiagram-EHGQE667.js +981 -0
  1587. package/lib/node_modules/mermaid/dist/chunks/mermaid.core/xychartDiagram-FW5EYKEG.js +1919 -0
  1588. package/lib/node_modules/mermaid/dist/mermaid.core.js +1468 -0
  1589. package/lib/node_modules/object-refs/index.js +1 -1
  1590. package/lib/node_modules/punycode.js/punycode.es6.js +240 -0
  1591. package/lib/node_modules/roughjs/bundled/rough.esm.js +1001 -0
  1592. package/lib/node_modules/stylis/src/Enum.js +22 -0
  1593. package/lib/node_modules/stylis/src/Middleware.js +13 -0
  1594. package/lib/node_modules/stylis/src/Parser.js +176 -0
  1595. package/lib/node_modules/stylis/src/Serializer.js +29 -0
  1596. package/lib/node_modules/stylis/src/Tokenizer.js +150 -0
  1597. package/lib/node_modules/stylis/src/Utility.js +34 -0
  1598. package/lib/node_modules/ts-dedent/esm/index.js +42 -0
  1599. package/lib/node_modules/uc.micro/categories/Cc/regex.js +4 -0
  1600. package/lib/node_modules/uc.micro/categories/Cf/regex.js +4 -0
  1601. package/lib/node_modules/uc.micro/categories/P/regex.js +4 -0
  1602. package/lib/node_modules/uc.micro/categories/S/regex.js +4 -0
  1603. package/lib/node_modules/uc.micro/categories/Z/regex.js +4 -0
  1604. package/lib/node_modules/uc.micro/index.js +14 -0
  1605. package/lib/node_modules/uc.micro/properties/Any/regex.js +4 -0
  1606. package/lib/node_modules/uuid/dist/native.js +5 -0
  1607. package/lib/node_modules/uuid/dist/rng.js +14 -0
  1608. package/lib/node_modules/uuid/dist/stringify.js +10 -0
  1609. package/lib/node_modules/uuid/dist/v4.js +23 -0
  1610. package/lib/node_modules/vant/es/button/Button.js +1 -1
  1611. package/lib/node_modules/vant/es/dialog/Dialog.js +1 -1
  1612. package/lib/node_modules/vant/es/swipe-cell/SwipeCell.js +1 -1
  1613. package/lib/packages/mobile/index.js +158 -156
  1614. package/lib/packages/mobile/src/components/ai/AiChat/AiChat.vue.js +218 -0
  1615. package/lib/packages/mobile/src/components/ai/AiChat/index.js +7 -0
  1616. package/lib/packages/mobile/src/components/ai/ChatInput/ChatInput.vue.js +211 -0
  1617. package/lib/packages/mobile/src/components/ai/ChatInput/index.js +7 -0
  1618. package/lib/packages/mobile/src/components/ai/ChatPanel/ChatPanel.vue.js +232 -0
  1619. package/lib/packages/mobile/src/components/ai/ChatPanel/index.js +7 -0
  1620. package/lib/packages/mobile/src/components/ai/MarkdownRenderer/MarkdownRenderer.vue.js +129 -0
  1621. package/lib/packages/mobile/src/components/ai/MarkdownRenderer/index.js +7 -0
  1622. package/lib/packages/mobile/src/components/ai/RecordOverlay/RecordOverlay.vue.js +98 -0
  1623. package/lib/packages/mobile/src/components/ai/RecordOverlay/index.js +7 -0
  1624. package/lib/packages/mobile/src/components/all.js +156 -154
  1625. package/lib/packages/mobile/src/components/dataDisplay/mine/Mine.vue.js +3 -5
  1626. package/lib/packages/mobile/src/composables/useAI/adapters/detector.js +77 -0
  1627. package/lib/packages/mobile/src/composables/useAI/adapters/index.js +33 -0
  1628. package/lib/packages/mobile/src/composables/useAI/adapters/miniprogram.js +163 -0
  1629. package/lib/packages/mobile/src/composables/useAI/adapters/mock.js +179 -0
  1630. package/lib/packages/mobile/src/composables/useAI/adapters/wecom.js +212 -0
  1631. package/lib/packages/mobile/src/composables/useAI/types.js +92 -0
  1632. package/lib/packages/mobile/src/composables/useAI/useChat.js +197 -0
  1633. package/lib/packages/mobile/src/composables/useAI/useVoice.js +168 -0
  1634. package/lib/packages/mobile/src/composables/useVoiceTouch.js +101 -0
  1635. package/lib/packages/mobile/src/index.vue.js +114 -30
  1636. package/lib/packages/vue/src/components/forms/form/Form.vue.js +30 -2
  1637. package/lib/packages/vue/src/components/forms/formItem/FormItem.vue.js +99 -2
  1638. package/lib/packages/vue/src/components/table/Table.vue.js +5 -111
  1639. package/lib/packages/vue/src/utils/formatCellValue.js +104 -0
  1640. package/lib/packages/vue/src/utils/importantDataChange.js +181 -0
  1641. package/package.json +1 -1
@@ -0,0 +1,4530 @@
1
+ var _a;
2
+ import { ImperativeState } from "./chunk-2Q5K7J3B.mjs";
3
+ import { load, JSON_SCHEMA } from "./chunk-ZIRB5QZD.mjs";
4
+ import { drawBackgroundRect, getTextObj, getNoteRect, drawRect, drawEmbeddedImage, drawImage } from "./chunk-32BRIVSS.mjs";
5
+ import { utils_default, parseFontSize, ZERO_WIDTH_SPACE } from "./chunk-ICXQ74PX.mjs";
6
+ import { setConfig2, getConfig2, configureSvgSize, assignWithDepth_default, common_default, setAccTitle, setAccDescription, setDiagramTitle, getAccTitle, getAccDescription, getDiagramTitle, clear, sanitizeText, hasKatex, calculateMathMLDimensions, getConfig, getUrl, renderKatexSanitized } from "./chunk-WYO6CB5R.mjs";
7
+ import { log } from "./chunk-X3CZISLH.mjs";
8
+ import { __name } from "./chunk-Y2CYZVJY.mjs";
9
+ import "../../../../d3-transition/src/selection/index.mjs";
10
+ import "../../../../d3-zoom/src/transform.mjs";
11
+ import { d as distExports } from "../../../../../_virtual/index2.mjs";
12
+ import select from "../../../../d3-selection/src/select.mjs";
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, 12], $V7 = [1, 14], $V8 = [1, 15], $V9 = [1, 17], $Va = [1, 18], $Vb = [1, 19], $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, 40], $Vs = [1, 42], $Vt = [1, 43], $Vu = [1, 44], $Vv = [1, 45], $Vw = [1, 46], $Vx = [1, 47], $Vy = [1, 4, 5, 10, 14, 15, 17, 19, 22, 24, 30, 31, 32, 34, 36, 37, 38, 39, 40, 42, 44, 45, 47, 48, 49, 50, 51, 53, 54, 56, 61, 62, 63, 64, 73], $Vz = [1, 74], $VA = [1, 80], $VB = [1, 81], $VC = [1, 82], $VD = [1, 83], $VE = [1, 84], $VF = [1, 85], $VG = [1, 86], $VH = [1, 87], $VI = [1, 88], $VJ = [1, 89], $VK = [1, 90], $VL = [1, 91], $VM = [1, 92], $VN = [1, 93], $VO = [1, 94], $VP = [1, 95], $VQ = [1, 96], $VR = [1, 97], $VS = [1, 98], $VT = [1, 99], $VU = [1, 100], $VV = [1, 101], $VW = [1, 102], $VX = [1, 103], $VY = [1, 104], $VZ = [1, 105], $V_ = [2, 78], $V$ = [4, 5, 17, 51, 53, 54], $V01 = [4, 5, 10, 14, 15, 17, 19, 22, 24, 30, 31, 32, 34, 36, 37, 38, 39, 40, 42, 44, 45, 47, 51, 53, 54, 56, 61, 62, 63, 64, 73], $V11 = [4, 5, 10, 14, 15, 17, 19, 22, 24, 30, 31, 32, 34, 36, 37, 38, 39, 40, 42, 44, 45, 47, 50, 51, 53, 54, 56, 61, 62, 63, 64, 73], $V21 = [4, 5, 10, 14, 15, 17, 19, 22, 24, 30, 31, 32, 34, 36, 37, 38, 39, 40, 42, 44, 45, 47, 49, 51, 53, 54, 56, 61, 62, 63, 64, 73], $V31 = [4, 5, 10, 14, 15, 17, 19, 22, 24, 30, 31, 32, 34, 36, 37, 38, 39, 40, 42, 44, 45, 47, 48, 51, 53, 54, 56, 61, 62, 63, 64, 73], $V41 = [5, 52], $V51 = [70, 71, 72, 73], $V61 = [1, 151];
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, "INVALID": 10, "box_section": 11, "box_line": 12, "participant_statement": 13, "create": 14, "box": 15, "restOfLine": 16, "end": 17, "signal": 18, "autonumber": 19, "NUM": 20, "off": 21, "activate": 22, "actor": 23, "deactivate": 24, "note_statement": 25, "links_statement": 26, "link_statement": 27, "properties_statement": 28, "details_statement": 29, "title": 30, "legacy_title": 31, "acc_title": 32, "acc_title_value": 33, "acc_descr": 34, "acc_descr_value": 35, "acc_descr_multiline_value": 36, "loop": 37, "rect": 38, "opt": 39, "alt": 40, "else_sections": 41, "par": 42, "par_sections": 43, "par_over": 44, "critical": 45, "option_sections": 46, "break": 47, "option": 48, "and": 49, "else": 50, "participant": 51, "AS": 52, "participant_actor": 53, "destroy": 54, "actor_with_config": 55, "note": 56, "placement": 57, "text2": 58, "over": 59, "actor_pair": 60, "links": 61, "link": 62, "properties": 63, "details": 64, "spaceList": 65, ",": 66, "left_of": 67, "right_of": 68, "signaltype": 69, "+": 70, "-": 71, "()": 72, "ACTOR": 73, "config_object": 74, "CONFIG_START": 75, "CONFIG_CONTENT": 76, "CONFIG_END": 77, "SOLID_OPEN_ARROW": 78, "DOTTED_OPEN_ARROW": 79, "SOLID_ARROW": 80, "SOLID_ARROW_TOP": 81, "SOLID_ARROW_BOTTOM": 82, "STICK_ARROW_TOP": 83, "STICK_ARROW_BOTTOM": 84, "SOLID_ARROW_TOP_DOTTED": 85, "SOLID_ARROW_BOTTOM_DOTTED": 86, "STICK_ARROW_TOP_DOTTED": 87, "STICK_ARROW_BOTTOM_DOTTED": 88, "SOLID_ARROW_TOP_REVERSE": 89, "SOLID_ARROW_BOTTOM_REVERSE": 90, "STICK_ARROW_TOP_REVERSE": 91, "STICK_ARROW_BOTTOM_REVERSE": 92, "SOLID_ARROW_TOP_REVERSE_DOTTED": 93, "SOLID_ARROW_BOTTOM_REVERSE_DOTTED": 94, "STICK_ARROW_TOP_REVERSE_DOTTED": 95, "STICK_ARROW_BOTTOM_REVERSE_DOTTED": 96, "BIDIRECTIONAL_SOLID_ARROW": 97, "DOTTED_ARROW": 98, "BIDIRECTIONAL_DOTTED_ARROW": 99, "SOLID_CROSS": 100, "DOTTED_CROSS": 101, "SOLID_POINT": 102, "DOTTED_POINT": 103, "TXT": 104, "$accept": 0, "$end": 1 },
23
+ terminals_: { 2: "error", 4: "SPACE", 5: "NEWLINE", 6: "SD", 10: "INVALID", 14: "create", 15: "box", 16: "restOfLine", 17: "end", 19: "autonumber", 20: "NUM", 21: "off", 22: "activate", 24: "deactivate", 30: "title", 31: "legacy_title", 32: "acc_title", 33: "acc_title_value", 34: "acc_descr", 35: "acc_descr_value", 36: "acc_descr_multiline_value", 37: "loop", 38: "rect", 39: "opt", 40: "alt", 42: "par", 44: "par_over", 45: "critical", 47: "break", 48: "option", 49: "and", 50: "else", 51: "participant", 52: "AS", 53: "participant_actor", 54: "destroy", 56: "note", 59: "over", 61: "links", 62: "link", 63: "properties", 64: "details", 66: ",", 67: "left_of", 68: "right_of", 70: "+", 71: "-", 72: "()", 73: "ACTOR", 75: "CONFIG_START", 76: "CONFIG_CONTENT", 77: "CONFIG_END", 78: "SOLID_OPEN_ARROW", 79: "DOTTED_OPEN_ARROW", 80: "SOLID_ARROW", 81: "SOLID_ARROW_TOP", 82: "SOLID_ARROW_BOTTOM", 83: "STICK_ARROW_TOP", 84: "STICK_ARROW_BOTTOM", 85: "SOLID_ARROW_TOP_DOTTED", 86: "SOLID_ARROW_BOTTOM_DOTTED", 87: "STICK_ARROW_TOP_DOTTED", 88: "STICK_ARROW_BOTTOM_DOTTED", 89: "SOLID_ARROW_TOP_REVERSE", 90: "SOLID_ARROW_BOTTOM_REVERSE", 91: "STICK_ARROW_TOP_REVERSE", 92: "STICK_ARROW_BOTTOM_REVERSE", 93: "SOLID_ARROW_TOP_REVERSE_DOTTED", 94: "SOLID_ARROW_BOTTOM_REVERSE_DOTTED", 95: "STICK_ARROW_TOP_REVERSE_DOTTED", 96: "STICK_ARROW_BOTTOM_REVERSE_DOTTED", 97: "BIDIRECTIONAL_SOLID_ARROW", 98: "DOTTED_ARROW", 99: "BIDIRECTIONAL_DOTTED_ARROW", 100: "SOLID_CROSS", 101: "DOTTED_CROSS", 102: "SOLID_POINT", 103: "DOTTED_POINT", 104: "TXT" },
24
+ productions_: [0, [3, 2], [3, 2], [3, 2], [7, 0], [7, 2], [8, 2], [8, 1], [8, 1], [8, 1], [11, 0], [11, 2], [12, 2], [12, 1], [12, 1], [9, 1], [9, 2], [9, 4], [9, 2], [9, 4], [9, 3], [9, 3], [9, 2], [9, 3], [9, 3], [9, 2], [9, 2], [9, 2], [9, 2], [9, 2], [9, 1], [9, 1], [9, 2], [9, 2], [9, 1], [9, 4], [9, 4], [9, 4], [9, 4], [9, 4], [9, 4], [9, 4], [9, 4], [46, 1], [46, 4], [43, 1], [43, 4], [41, 1], [41, 4], [13, 5], [13, 3], [13, 5], [13, 3], [13, 3], [13, 5], [13, 3], [13, 5], [13, 3], [25, 4], [25, 4], [26, 3], [27, 3], [28, 3], [29, 3], [65, 2], [65, 1], [60, 3], [60, 1], [57, 1], [57, 1], [18, 5], [18, 5], [18, 5], [18, 5], [18, 6], [18, 4], [55, 2], [74, 3], [23, 1], [69, 1], [69, 1], [69, 1], [69, 1], [69, 1], [69, 1], [69, 1], [69, 1], [69, 1], [69, 1], [69, 1], [69, 1], [69, 1], [69, 1], [69, 1], [69, 1], [69, 1], [69, 1], [69, 1], [69, 1], [69, 1], [69, 1], [69, 1], [69, 1], [69, 1], [69, 1], [58, 1]],
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 10:
33
+ this.$ = [];
34
+ break;
35
+ case 5:
36
+ case 11:
37
+ $$[$0 - 1].push($$[$0]);
38
+ this.$ = $$[$0 - 1];
39
+ break;
40
+ case 6:
41
+ case 7:
42
+ case 12:
43
+ case 13:
44
+ this.$ = $$[$0];
45
+ break;
46
+ case 8:
47
+ case 9:
48
+ case 14:
49
+ this.$ = [];
50
+ break;
51
+ case 16:
52
+ $$[$0].type = "createParticipant";
53
+ this.$ = $$[$0];
54
+ break;
55
+ case 17:
56
+ $$[$0 - 1].unshift({ type: "boxStart", boxData: yy.parseBoxData($$[$0 - 2]) });
57
+ $$[$0 - 1].push({ type: "boxEnd", boxText: $$[$0 - 2] });
58
+ this.$ = $$[$0 - 1];
59
+ break;
60
+ case 19:
61
+ this.$ = { type: "sequenceIndex", sequenceIndex: Number($$[$0 - 2]), sequenceIndexStep: Number($$[$0 - 1]), sequenceVisible: true, signalType: yy.LINETYPE.AUTONUMBER };
62
+ break;
63
+ case 20:
64
+ this.$ = { type: "sequenceIndex", sequenceIndex: Number($$[$0 - 1]), sequenceIndexStep: 1, sequenceVisible: true, signalType: yy.LINETYPE.AUTONUMBER };
65
+ break;
66
+ case 21:
67
+ this.$ = { type: "sequenceIndex", sequenceVisible: false, signalType: yy.LINETYPE.AUTONUMBER };
68
+ break;
69
+ case 22:
70
+ this.$ = { type: "sequenceIndex", sequenceVisible: true, signalType: yy.LINETYPE.AUTONUMBER };
71
+ break;
72
+ case 23:
73
+ this.$ = { type: "activeStart", signalType: yy.LINETYPE.ACTIVE_START, actor: $$[$0 - 1].actor };
74
+ break;
75
+ case 24:
76
+ this.$ = { type: "activeEnd", signalType: yy.LINETYPE.ACTIVE_END, actor: $$[$0 - 1].actor };
77
+ break;
78
+ case 30:
79
+ yy.setDiagramTitle($$[$0].substring(6));
80
+ this.$ = $$[$0].substring(6);
81
+ break;
82
+ case 31:
83
+ yy.setDiagramTitle($$[$0].substring(7));
84
+ this.$ = $$[$0].substring(7);
85
+ break;
86
+ case 32:
87
+ this.$ = $$[$0].trim();
88
+ yy.setAccTitle(this.$);
89
+ break;
90
+ case 33:
91
+ case 34:
92
+ this.$ = $$[$0].trim();
93
+ yy.setAccDescription(this.$);
94
+ break;
95
+ case 35:
96
+ $$[$0 - 1].unshift({ type: "loopStart", loopText: yy.parseMessage($$[$0 - 2]), signalType: yy.LINETYPE.LOOP_START });
97
+ $$[$0 - 1].push({ type: "loopEnd", loopText: $$[$0 - 2], signalType: yy.LINETYPE.LOOP_END });
98
+ this.$ = $$[$0 - 1];
99
+ break;
100
+ case 36:
101
+ $$[$0 - 1].unshift({ type: "rectStart", color: yy.parseMessage($$[$0 - 2]), signalType: yy.LINETYPE.RECT_START });
102
+ $$[$0 - 1].push({ type: "rectEnd", color: yy.parseMessage($$[$0 - 2]), signalType: yy.LINETYPE.RECT_END });
103
+ this.$ = $$[$0 - 1];
104
+ break;
105
+ case 37:
106
+ $$[$0 - 1].unshift({ type: "optStart", optText: yy.parseMessage($$[$0 - 2]), signalType: yy.LINETYPE.OPT_START });
107
+ $$[$0 - 1].push({ type: "optEnd", optText: yy.parseMessage($$[$0 - 2]), signalType: yy.LINETYPE.OPT_END });
108
+ this.$ = $$[$0 - 1];
109
+ break;
110
+ case 38:
111
+ $$[$0 - 1].unshift({ type: "altStart", altText: yy.parseMessage($$[$0 - 2]), signalType: yy.LINETYPE.ALT_START });
112
+ $$[$0 - 1].push({ type: "altEnd", signalType: yy.LINETYPE.ALT_END });
113
+ this.$ = $$[$0 - 1];
114
+ break;
115
+ case 39:
116
+ $$[$0 - 1].unshift({ type: "parStart", parText: yy.parseMessage($$[$0 - 2]), signalType: yy.LINETYPE.PAR_START });
117
+ $$[$0 - 1].push({ type: "parEnd", signalType: yy.LINETYPE.PAR_END });
118
+ this.$ = $$[$0 - 1];
119
+ break;
120
+ case 40:
121
+ $$[$0 - 1].unshift({ type: "parStart", parText: yy.parseMessage($$[$0 - 2]), signalType: yy.LINETYPE.PAR_OVER_START });
122
+ $$[$0 - 1].push({ type: "parEnd", signalType: yy.LINETYPE.PAR_END });
123
+ this.$ = $$[$0 - 1];
124
+ break;
125
+ case 41:
126
+ $$[$0 - 1].unshift({ type: "criticalStart", criticalText: yy.parseMessage($$[$0 - 2]), signalType: yy.LINETYPE.CRITICAL_START });
127
+ $$[$0 - 1].push({ type: "criticalEnd", signalType: yy.LINETYPE.CRITICAL_END });
128
+ this.$ = $$[$0 - 1];
129
+ break;
130
+ case 42:
131
+ $$[$0 - 1].unshift({ type: "breakStart", breakText: yy.parseMessage($$[$0 - 2]), signalType: yy.LINETYPE.BREAK_START });
132
+ $$[$0 - 1].push({ type: "breakEnd", optText: yy.parseMessage($$[$0 - 2]), signalType: yy.LINETYPE.BREAK_END });
133
+ this.$ = $$[$0 - 1];
134
+ break;
135
+ case 44:
136
+ this.$ = $$[$0 - 3].concat([{ type: "option", optionText: yy.parseMessage($$[$0 - 1]), signalType: yy.LINETYPE.CRITICAL_OPTION }, $$[$0]]);
137
+ break;
138
+ case 46:
139
+ this.$ = $$[$0 - 3].concat([{ type: "and", parText: yy.parseMessage($$[$0 - 1]), signalType: yy.LINETYPE.PAR_AND }, $$[$0]]);
140
+ break;
141
+ case 48:
142
+ this.$ = $$[$0 - 3].concat([{ type: "else", altText: yy.parseMessage($$[$0 - 1]), signalType: yy.LINETYPE.ALT_ELSE }, $$[$0]]);
143
+ break;
144
+ case 49:
145
+ $$[$0 - 3].draw = "participant";
146
+ $$[$0 - 3].type = "addParticipant";
147
+ $$[$0 - 3].description = yy.parseMessage($$[$0 - 1]);
148
+ this.$ = $$[$0 - 3];
149
+ break;
150
+ case 50:
151
+ $$[$0 - 1].draw = "participant";
152
+ $$[$0 - 1].type = "addParticipant";
153
+ this.$ = $$[$0 - 1];
154
+ break;
155
+ case 51:
156
+ $$[$0 - 3].draw = "actor";
157
+ $$[$0 - 3].type = "addParticipant";
158
+ $$[$0 - 3].description = yy.parseMessage($$[$0 - 1]);
159
+ this.$ = $$[$0 - 3];
160
+ break;
161
+ case 52:
162
+ case 57:
163
+ $$[$0 - 1].draw = "actor";
164
+ $$[$0 - 1].type = "addParticipant";
165
+ this.$ = $$[$0 - 1];
166
+ break;
167
+ case 53:
168
+ $$[$0 - 1].type = "destroyParticipant";
169
+ this.$ = $$[$0 - 1];
170
+ break;
171
+ case 54:
172
+ $$[$0 - 3].draw = "participant";
173
+ $$[$0 - 3].type = "addParticipant";
174
+ $$[$0 - 3].description = yy.parseMessage($$[$0 - 1]);
175
+ this.$ = $$[$0 - 3];
176
+ break;
177
+ case 55:
178
+ $$[$0 - 1].draw = "participant";
179
+ $$[$0 - 1].type = "addParticipant";
180
+ this.$ = $$[$0 - 1];
181
+ break;
182
+ case 56:
183
+ $$[$0 - 3].draw = "actor";
184
+ $$[$0 - 3].type = "addParticipant";
185
+ $$[$0 - 3].description = yy.parseMessage($$[$0 - 1]);
186
+ this.$ = $$[$0 - 3];
187
+ break;
188
+ case 58:
189
+ this.$ = [$$[$0 - 1], { type: "addNote", placement: $$[$0 - 2], actor: $$[$0 - 1].actor, text: $$[$0] }];
190
+ break;
191
+ case 59:
192
+ $$[$0 - 2] = [].concat($$[$0 - 1], $$[$0 - 1]).slice(0, 2);
193
+ $$[$0 - 2][0] = $$[$0 - 2][0].actor;
194
+ $$[$0 - 2][1] = $$[$0 - 2][1].actor;
195
+ this.$ = [$$[$0 - 1], { type: "addNote", placement: yy.PLACEMENT.OVER, actor: $$[$0 - 2].slice(0, 2), text: $$[$0] }];
196
+ break;
197
+ case 60:
198
+ this.$ = [$$[$0 - 1], { type: "addLinks", actor: $$[$0 - 1].actor, text: $$[$0] }];
199
+ break;
200
+ case 61:
201
+ this.$ = [$$[$0 - 1], { type: "addALink", actor: $$[$0 - 1].actor, text: $$[$0] }];
202
+ break;
203
+ case 62:
204
+ this.$ = [$$[$0 - 1], { type: "addProperties", actor: $$[$0 - 1].actor, text: $$[$0] }];
205
+ break;
206
+ case 63:
207
+ this.$ = [$$[$0 - 1], { type: "addDetails", actor: $$[$0 - 1].actor, text: $$[$0] }];
208
+ break;
209
+ case 66:
210
+ this.$ = [$$[$0 - 2], $$[$0]];
211
+ break;
212
+ case 67:
213
+ this.$ = $$[$0];
214
+ break;
215
+ case 68:
216
+ this.$ = yy.PLACEMENT.LEFTOF;
217
+ break;
218
+ case 69:
219
+ this.$ = yy.PLACEMENT.RIGHTOF;
220
+ break;
221
+ case 70:
222
+ this.$ = [
223
+ $$[$0 - 4],
224
+ $$[$0 - 1],
225
+ { type: "addMessage", from: $$[$0 - 4].actor, to: $$[$0 - 1].actor, signalType: $$[$0 - 3], msg: $$[$0], activate: true },
226
+ { type: "activeStart", signalType: yy.LINETYPE.ACTIVE_START, actor: $$[$0 - 1].actor }
227
+ ];
228
+ break;
229
+ case 71:
230
+ this.$ = [
231
+ $$[$0 - 4],
232
+ $$[$0 - 1],
233
+ { type: "addMessage", from: $$[$0 - 4].actor, to: $$[$0 - 1].actor, signalType: $$[$0 - 3], msg: $$[$0] },
234
+ { type: "activeEnd", signalType: yy.LINETYPE.ACTIVE_END, actor: $$[$0 - 4].actor }
235
+ ];
236
+ break;
237
+ case 72:
238
+ this.$ = [
239
+ $$[$0 - 4],
240
+ $$[$0 - 1],
241
+ { type: "addMessage", from: $$[$0 - 4].actor, to: $$[$0 - 1].actor, signalType: $$[$0 - 3], msg: $$[$0], activate: true, centralConnection: yy.LINETYPE.CENTRAL_CONNECTION },
242
+ { type: "centralConnection", signalType: yy.LINETYPE.CENTRAL_CONNECTION, actor: $$[$0 - 1].actor }
243
+ ];
244
+ break;
245
+ case 73:
246
+ this.$ = [
247
+ $$[$0 - 4],
248
+ $$[$0 - 1],
249
+ { type: "addMessage", from: $$[$0 - 4].actor, to: $$[$0 - 1].actor, signalType: $$[$0 - 2], msg: $$[$0], activate: false, centralConnection: yy.LINETYPE.CENTRAL_CONNECTION_REVERSE },
250
+ { type: "centralConnectionReverse", signalType: yy.LINETYPE.CENTRAL_CONNECTION_REVERSE, actor: $$[$0 - 4].actor }
251
+ ];
252
+ break;
253
+ case 74:
254
+ this.$ = [
255
+ $$[$0 - 5],
256
+ $$[$0 - 1],
257
+ { type: "addMessage", from: $$[$0 - 5].actor, to: $$[$0 - 1].actor, signalType: $$[$0 - 3], msg: $$[$0], activate: true, centralConnection: yy.LINETYPE.CENTRAL_CONNECTION_DUAL },
258
+ { type: "centralConnection", signalType: yy.LINETYPE.CENTRAL_CONNECTION, actor: $$[$0 - 1].actor },
259
+ { type: "centralConnectionReverse", signalType: yy.LINETYPE.CENTRAL_CONNECTION_REVERSE, actor: $$[$0 - 5].actor }
260
+ ];
261
+ break;
262
+ case 75:
263
+ this.$ = [$$[$0 - 3], $$[$0 - 1], { type: "addMessage", from: $$[$0 - 3].actor, to: $$[$0 - 1].actor, signalType: $$[$0 - 2], msg: $$[$0] }];
264
+ break;
265
+ case 76:
266
+ this.$ = {
267
+ type: "addParticipant",
268
+ actor: $$[$0 - 1],
269
+ config: $$[$0]
270
+ };
271
+ break;
272
+ case 77:
273
+ this.$ = $$[$0 - 1].trim();
274
+ break;
275
+ case 78:
276
+ this.$ = { type: "addParticipant", actor: $$[$0] };
277
+ break;
278
+ case 79:
279
+ this.$ = yy.LINETYPE.SOLID_OPEN;
280
+ break;
281
+ case 80:
282
+ this.$ = yy.LINETYPE.DOTTED_OPEN;
283
+ break;
284
+ case 81:
285
+ this.$ = yy.LINETYPE.SOLID;
286
+ break;
287
+ case 82:
288
+ this.$ = yy.LINETYPE.SOLID_TOP;
289
+ break;
290
+ case 83:
291
+ this.$ = yy.LINETYPE.SOLID_BOTTOM;
292
+ break;
293
+ case 84:
294
+ this.$ = yy.LINETYPE.STICK_TOP;
295
+ break;
296
+ case 85:
297
+ this.$ = yy.LINETYPE.STICK_BOTTOM;
298
+ break;
299
+ case 86:
300
+ this.$ = yy.LINETYPE.SOLID_TOP_DOTTED;
301
+ break;
302
+ case 87:
303
+ this.$ = yy.LINETYPE.SOLID_BOTTOM_DOTTED;
304
+ break;
305
+ case 88:
306
+ this.$ = yy.LINETYPE.STICK_TOP_DOTTED;
307
+ break;
308
+ case 89:
309
+ this.$ = yy.LINETYPE.STICK_BOTTOM_DOTTED;
310
+ break;
311
+ case 90:
312
+ this.$ = yy.LINETYPE.SOLID_ARROW_TOP_REVERSE;
313
+ break;
314
+ case 91:
315
+ this.$ = yy.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;
316
+ break;
317
+ case 92:
318
+ this.$ = yy.LINETYPE.STICK_ARROW_TOP_REVERSE;
319
+ break;
320
+ case 93:
321
+ this.$ = yy.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;
322
+ break;
323
+ case 94:
324
+ this.$ = yy.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;
325
+ break;
326
+ case 95:
327
+ this.$ = yy.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;
328
+ break;
329
+ case 96:
330
+ this.$ = yy.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;
331
+ break;
332
+ case 97:
333
+ this.$ = yy.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;
334
+ break;
335
+ case 98:
336
+ this.$ = yy.LINETYPE.BIDIRECTIONAL_SOLID;
337
+ break;
338
+ case 99:
339
+ this.$ = yy.LINETYPE.DOTTED;
340
+ break;
341
+ case 100:
342
+ this.$ = yy.LINETYPE.BIDIRECTIONAL_DOTTED;
343
+ break;
344
+ case 101:
345
+ this.$ = yy.LINETYPE.SOLID_CROSS;
346
+ break;
347
+ case 102:
348
+ this.$ = yy.LINETYPE.DOTTED_CROSS;
349
+ break;
350
+ case 103:
351
+ this.$ = yy.LINETYPE.SOLID_POINT;
352
+ break;
353
+ case 104:
354
+ this.$ = yy.LINETYPE.DOTTED_POINT;
355
+ break;
356
+ case 105:
357
+ this.$ = yy.parseMessage($$[$0].trim().substring(1));
358
+ break;
359
+ }
360
+ }, "anonymous"),
361
+ 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, 10, 14, 15, 19, 22, 24, 30, 31, 32, 34, 36, 37, 38, 39, 40, 42, 44, 45, 47, 51, 53, 54, 56, 61, 62, 63, 64, 73], $V3, { 7: 7 }), { 1: [2, 1] }, { 1: [2, 2] }, { 1: [2, 3], 4: $V4, 5: $V5, 8: 8, 9: 10, 10: $V6, 13: 13, 14: $V7, 15: $V8, 18: 16, 19: $V9, 22: $Va, 23: 41, 24: $Vb, 25: 20, 26: 21, 27: 22, 28: 23, 29: 24, 30: $Vc, 31: $Vd, 32: $Ve, 34: $Vf, 36: $Vg, 37: $Vh, 38: $Vi, 39: $Vj, 40: $Vk, 42: $Vl, 44: $Vm, 45: $Vn, 47: $Vo, 51: $Vp, 53: $Vq, 54: $Vr, 56: $Vs, 61: $Vt, 62: $Vu, 63: $Vv, 64: $Vw, 73: $Vx }, o($Vy, [2, 5]), { 9: 48, 13: 13, 14: $V7, 15: $V8, 18: 16, 19: $V9, 22: $Va, 23: 41, 24: $Vb, 25: 20, 26: 21, 27: 22, 28: 23, 29: 24, 30: $Vc, 31: $Vd, 32: $Ve, 34: $Vf, 36: $Vg, 37: $Vh, 38: $Vi, 39: $Vj, 40: $Vk, 42: $Vl, 44: $Vm, 45: $Vn, 47: $Vo, 51: $Vp, 53: $Vq, 54: $Vr, 56: $Vs, 61: $Vt, 62: $Vu, 63: $Vv, 64: $Vw, 73: $Vx }, o($Vy, [2, 7]), o($Vy, [2, 8]), o($Vy, [2, 9]), o($Vy, [2, 15]), { 13: 49, 51: $Vp, 53: $Vq, 54: $Vr }, { 16: [1, 50] }, { 5: [1, 51] }, { 5: [1, 54], 20: [1, 52], 21: [1, 53] }, { 23: 55, 73: $Vx }, { 23: 56, 73: $Vx }, { 5: [1, 57] }, { 5: [1, 58] }, { 5: [1, 59] }, { 5: [1, 60] }, { 5: [1, 61] }, o($Vy, [2, 30]), o($Vy, [2, 31]), { 33: [1, 62] }, { 35: [1, 63] }, o($Vy, [2, 34]), { 16: [1, 64] }, { 16: [1, 65] }, { 16: [1, 66] }, { 16: [1, 67] }, { 16: [1, 68] }, { 16: [1, 69] }, { 16: [1, 70] }, { 16: [1, 71] }, { 23: 72, 55: 73, 73: $Vz }, { 23: 75, 55: 76, 73: $Vz }, { 23: 77, 73: $Vx }, { 69: 78, 72: [1, 79], 78: $VA, 79: $VB, 80: $VC, 81: $VD, 82: $VE, 83: $VF, 84: $VG, 85: $VH, 86: $VI, 87: $VJ, 88: $VK, 89: $VL, 90: $VM, 91: $VN, 92: $VO, 93: $VP, 94: $VQ, 95: $VR, 96: $VS, 97: $VT, 98: $VU, 99: $VV, 100: $VW, 101: $VX, 102: $VY, 103: $VZ }, { 57: 106, 59: [1, 107], 67: [1, 108], 68: [1, 109] }, { 23: 110, 73: $Vx }, { 23: 111, 73: $Vx }, { 23: 112, 73: $Vx }, { 23: 113, 73: $Vx }, o([5, 66, 72, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104], $V_), o($Vy, [2, 6]), o($Vy, [2, 16]), o($V$, [2, 10], { 11: 114 }), o($Vy, [2, 18]), { 5: [1, 116], 20: [1, 115] }, { 5: [1, 117] }, o($Vy, [2, 22]), { 5: [1, 118] }, { 5: [1, 119] }, o($Vy, [2, 25]), o($Vy, [2, 26]), o($Vy, [2, 27]), o($Vy, [2, 28]), o($Vy, [2, 29]), o($Vy, [2, 32]), o($Vy, [2, 33]), o($V01, $V3, { 7: 120 }), o($V01, $V3, { 7: 121 }), o($V01, $V3, { 7: 122 }), o($V11, $V3, { 41: 123, 7: 124 }), o($V21, $V3, { 43: 125, 7: 126 }), o($V21, $V3, { 7: 126, 43: 127 }), o($V31, $V3, { 46: 128, 7: 129 }), o($V01, $V3, { 7: 130 }), { 5: [1, 132], 52: [1, 131] }, { 5: [1, 134], 52: [1, 133] }, o($V41, $V_, { 74: 135, 75: [1, 136] }), { 5: [1, 138], 52: [1, 137] }, { 5: [1, 140], 52: [1, 139] }, { 5: [1, 141] }, { 23: 145, 70: [1, 142], 71: [1, 143], 72: [1, 144], 73: $Vx }, { 69: 146, 78: $VA, 79: $VB, 80: $VC, 81: $VD, 82: $VE, 83: $VF, 84: $VG, 85: $VH, 86: $VI, 87: $VJ, 88: $VK, 89: $VL, 90: $VM, 91: $VN, 92: $VO, 93: $VP, 94: $VQ, 95: $VR, 96: $VS, 97: $VT, 98: $VU, 99: $VV, 100: $VW, 101: $VX, 102: $VY, 103: $VZ }, o($V51, [2, 79]), o($V51, [2, 80]), o($V51, [2, 81]), o($V51, [2, 82]), o($V51, [2, 83]), o($V51, [2, 84]), o($V51, [2, 85]), o($V51, [2, 86]), o($V51, [2, 87]), o($V51, [2, 88]), o($V51, [2, 89]), o($V51, [2, 90]), o($V51, [2, 91]), o($V51, [2, 92]), o($V51, [2, 93]), o($V51, [2, 94]), o($V51, [2, 95]), o($V51, [2, 96]), o($V51, [2, 97]), o($V51, [2, 98]), o($V51, [2, 99]), o($V51, [2, 100]), o($V51, [2, 101]), o($V51, [2, 102]), o($V51, [2, 103]), o($V51, [2, 104]), { 23: 147, 73: $Vx }, { 23: 149, 60: 148, 73: $Vx }, { 73: [2, 68] }, { 73: [2, 69] }, { 58: 150, 104: $V61 }, { 58: 152, 104: $V61 }, { 58: 153, 104: $V61 }, { 58: 154, 104: $V61 }, { 4: [1, 157], 5: [1, 159], 12: 156, 13: 158, 17: [1, 155], 51: $Vp, 53: $Vq, 54: $Vr }, { 5: [1, 160] }, o($Vy, [2, 20]), o($Vy, [2, 21]), o($Vy, [2, 23]), o($Vy, [2, 24]), { 4: $V4, 5: $V5, 8: 8, 9: 10, 10: $V6, 13: 13, 14: $V7, 15: $V8, 17: [1, 161], 18: 16, 19: $V9, 22: $Va, 23: 41, 24: $Vb, 25: 20, 26: 21, 27: 22, 28: 23, 29: 24, 30: $Vc, 31: $Vd, 32: $Ve, 34: $Vf, 36: $Vg, 37: $Vh, 38: $Vi, 39: $Vj, 40: $Vk, 42: $Vl, 44: $Vm, 45: $Vn, 47: $Vo, 51: $Vp, 53: $Vq, 54: $Vr, 56: $Vs, 61: $Vt, 62: $Vu, 63: $Vv, 64: $Vw, 73: $Vx }, { 4: $V4, 5: $V5, 8: 8, 9: 10, 10: $V6, 13: 13, 14: $V7, 15: $V8, 17: [1, 162], 18: 16, 19: $V9, 22: $Va, 23: 41, 24: $Vb, 25: 20, 26: 21, 27: 22, 28: 23, 29: 24, 30: $Vc, 31: $Vd, 32: $Ve, 34: $Vf, 36: $Vg, 37: $Vh, 38: $Vi, 39: $Vj, 40: $Vk, 42: $Vl, 44: $Vm, 45: $Vn, 47: $Vo, 51: $Vp, 53: $Vq, 54: $Vr, 56: $Vs, 61: $Vt, 62: $Vu, 63: $Vv, 64: $Vw, 73: $Vx }, { 4: $V4, 5: $V5, 8: 8, 9: 10, 10: $V6, 13: 13, 14: $V7, 15: $V8, 17: [1, 163], 18: 16, 19: $V9, 22: $Va, 23: 41, 24: $Vb, 25: 20, 26: 21, 27: 22, 28: 23, 29: 24, 30: $Vc, 31: $Vd, 32: $Ve, 34: $Vf, 36: $Vg, 37: $Vh, 38: $Vi, 39: $Vj, 40: $Vk, 42: $Vl, 44: $Vm, 45: $Vn, 47: $Vo, 51: $Vp, 53: $Vq, 54: $Vr, 56: $Vs, 61: $Vt, 62: $Vu, 63: $Vv, 64: $Vw, 73: $Vx }, { 17: [1, 164] }, { 4: $V4, 5: $V5, 8: 8, 9: 10, 10: $V6, 13: 13, 14: $V7, 15: $V8, 17: [2, 47], 18: 16, 19: $V9, 22: $Va, 23: 41, 24: $Vb, 25: 20, 26: 21, 27: 22, 28: 23, 29: 24, 30: $Vc, 31: $Vd, 32: $Ve, 34: $Vf, 36: $Vg, 37: $Vh, 38: $Vi, 39: $Vj, 40: $Vk, 42: $Vl, 44: $Vm, 45: $Vn, 47: $Vo, 50: [1, 165], 51: $Vp, 53: $Vq, 54: $Vr, 56: $Vs, 61: $Vt, 62: $Vu, 63: $Vv, 64: $Vw, 73: $Vx }, { 17: [1, 166] }, { 4: $V4, 5: $V5, 8: 8, 9: 10, 10: $V6, 13: 13, 14: $V7, 15: $V8, 17: [2, 45], 18: 16, 19: $V9, 22: $Va, 23: 41, 24: $Vb, 25: 20, 26: 21, 27: 22, 28: 23, 29: 24, 30: $Vc, 31: $Vd, 32: $Ve, 34: $Vf, 36: $Vg, 37: $Vh, 38: $Vi, 39: $Vj, 40: $Vk, 42: $Vl, 44: $Vm, 45: $Vn, 47: $Vo, 49: [1, 167], 51: $Vp, 53: $Vq, 54: $Vr, 56: $Vs, 61: $Vt, 62: $Vu, 63: $Vv, 64: $Vw, 73: $Vx }, { 17: [1, 168] }, { 17: [1, 169] }, { 4: $V4, 5: $V5, 8: 8, 9: 10, 10: $V6, 13: 13, 14: $V7, 15: $V8, 17: [2, 43], 18: 16, 19: $V9, 22: $Va, 23: 41, 24: $Vb, 25: 20, 26: 21, 27: 22, 28: 23, 29: 24, 30: $Vc, 31: $Vd, 32: $Ve, 34: $Vf, 36: $Vg, 37: $Vh, 38: $Vi, 39: $Vj, 40: $Vk, 42: $Vl, 44: $Vm, 45: $Vn, 47: $Vo, 48: [1, 170], 51: $Vp, 53: $Vq, 54: $Vr, 56: $Vs, 61: $Vt, 62: $Vu, 63: $Vv, 64: $Vw, 73: $Vx }, { 4: $V4, 5: $V5, 8: 8, 9: 10, 10: $V6, 13: 13, 14: $V7, 15: $V8, 17: [1, 171], 18: 16, 19: $V9, 22: $Va, 23: 41, 24: $Vb, 25: 20, 26: 21, 27: 22, 28: 23, 29: 24, 30: $Vc, 31: $Vd, 32: $Ve, 34: $Vf, 36: $Vg, 37: $Vh, 38: $Vi, 39: $Vj, 40: $Vk, 42: $Vl, 44: $Vm, 45: $Vn, 47: $Vo, 51: $Vp, 53: $Vq, 54: $Vr, 56: $Vs, 61: $Vt, 62: $Vu, 63: $Vv, 64: $Vw, 73: $Vx }, { 16: [1, 172] }, o($Vy, [2, 50]), { 16: [1, 173] }, o($Vy, [2, 55]), o($V41, [2, 76]), { 76: [1, 174] }, { 16: [1, 175] }, o($Vy, [2, 52]), { 16: [1, 176] }, o($Vy, [2, 57]), o($Vy, [2, 53]), { 23: 177, 73: $Vx }, { 23: 178, 73: $Vx }, { 23: 179, 73: $Vx }, { 58: 180, 104: $V61 }, { 23: 181, 72: [1, 182], 73: $Vx }, { 58: 183, 104: $V61 }, { 58: 184, 104: $V61 }, { 66: [1, 185], 104: [2, 67] }, { 5: [2, 60] }, { 5: [2, 105] }, { 5: [2, 61] }, { 5: [2, 62] }, { 5: [2, 63] }, o($Vy, [2, 17]), o($V$, [2, 11]), { 13: 186, 51: $Vp, 53: $Vq, 54: $Vr }, o($V$, [2, 13]), o($V$, [2, 14]), o($Vy, [2, 19]), o($Vy, [2, 35]), o($Vy, [2, 36]), o($Vy, [2, 37]), o($Vy, [2, 38]), { 16: [1, 187] }, o($Vy, [2, 39]), { 16: [1, 188] }, o($Vy, [2, 40]), o($Vy, [2, 41]), { 16: [1, 189] }, o($Vy, [2, 42]), { 5: [1, 190] }, { 5: [1, 191] }, { 77: [1, 192] }, { 5: [1, 193] }, { 5: [1, 194] }, { 58: 195, 104: $V61 }, { 58: 196, 104: $V61 }, { 58: 197, 104: $V61 }, { 5: [2, 75] }, { 58: 198, 104: $V61 }, { 23: 199, 73: $Vx }, { 5: [2, 58] }, { 5: [2, 59] }, { 23: 200, 73: $Vx }, o($V$, [2, 12]), o($V11, $V3, { 7: 124, 41: 201 }), o($V21, $V3, { 7: 126, 43: 202 }), o($V31, $V3, { 7: 129, 46: 203 }), o($Vy, [2, 49]), o($Vy, [2, 54]), o($V41, [2, 77]), o($Vy, [2, 51]), o($Vy, [2, 56]), { 5: [2, 70] }, { 5: [2, 71] }, { 5: [2, 72] }, { 5: [2, 73] }, { 58: 204, 104: $V61 }, { 104: [2, 66] }, { 17: [2, 48] }, { 17: [2, 46] }, { 17: [2, 44] }, { 5: [2, 74] }],
362
+ defaultActions: { 5: [2, 1], 6: [2, 2], 108: [2, 68], 109: [2, 69], 150: [2, 60], 151: [2, 105], 152: [2, 61], 153: [2, 62], 154: [2, 63], 180: [2, 75], 183: [2, 58], 184: [2, 59], 195: [2, 70], 196: [2, 71], 197: [2, 72], 198: [2, 73], 200: [2, 66], 201: [2, 48], 202: [2, 46], 203: [2, 44], 204: [2, 74] },
363
+ parseError: /* @__PURE__ */ __name(function parseError(str, hash) {
364
+ if (hash.recoverable) {
365
+ this.trace(str);
366
+ } else {
367
+ var error = new Error(str);
368
+ error.hash = hash;
369
+ throw error;
370
+ }
371
+ }, "parseError"),
372
+ parse: /* @__PURE__ */ __name(function parse(input) {
373
+ var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = "", yylineno = 0, yyleng = 0, TERROR = 2, EOF = 1;
374
+ var args = lstack.slice.call(arguments, 1);
375
+ var lexer2 = Object.create(this.lexer);
376
+ var sharedState = { yy: {} };
377
+ for (var k in this.yy) {
378
+ if (Object.prototype.hasOwnProperty.call(this.yy, k)) {
379
+ sharedState.yy[k] = this.yy[k];
380
+ }
381
+ }
382
+ lexer2.setInput(input, sharedState.yy);
383
+ sharedState.yy.lexer = lexer2;
384
+ sharedState.yy.parser = this;
385
+ if (typeof lexer2.yylloc == "undefined") {
386
+ lexer2.yylloc = {};
387
+ }
388
+ var yyloc = lexer2.yylloc;
389
+ lstack.push(yyloc);
390
+ var ranges = lexer2.options && lexer2.options.ranges;
391
+ if (typeof sharedState.yy.parseError === "function") {
392
+ this.parseError = sharedState.yy.parseError;
393
+ } else {
394
+ this.parseError = Object.getPrototypeOf(this).parseError;
395
+ }
396
+ function popStack(n) {
397
+ stack.length = stack.length - 2 * n;
398
+ vstack.length = vstack.length - n;
399
+ lstack.length = lstack.length - n;
400
+ }
401
+ __name(popStack, "popStack");
402
+ function lex() {
403
+ var token;
404
+ token = tstack.pop() || lexer2.lex() || EOF;
405
+ if (typeof token !== "number") {
406
+ if (token instanceof Array) {
407
+ tstack = token;
408
+ token = tstack.pop();
409
+ }
410
+ token = self.symbols_[token] || token;
411
+ }
412
+ return token;
413
+ }
414
+ __name(lex, "lex");
415
+ var symbol, state, action, r, yyval = {}, p, len, newState, expected;
416
+ while (true) {
417
+ state = stack[stack.length - 1];
418
+ if (this.defaultActions[state]) {
419
+ action = this.defaultActions[state];
420
+ } else {
421
+ if (symbol === null || typeof symbol == "undefined") {
422
+ symbol = lex();
423
+ }
424
+ action = table[state] && table[state][symbol];
425
+ }
426
+ if (typeof action === "undefined" || !action.length || !action[0]) {
427
+ var errStr = "";
428
+ expected = [];
429
+ for (p in table[state]) {
430
+ if (this.terminals_[p] && p > TERROR) {
431
+ expected.push("'" + this.terminals_[p] + "'");
432
+ }
433
+ }
434
+ if (lexer2.showPosition) {
435
+ errStr = "Parse error on line " + (yylineno + 1) + ":\n" + lexer2.showPosition() + "\nExpecting " + expected.join(", ") + ", got '" + (this.terminals_[symbol] || symbol) + "'";
436
+ } else {
437
+ errStr = "Parse error on line " + (yylineno + 1) + ": Unexpected " + (symbol == EOF ? "end of input" : "'" + (this.terminals_[symbol] || symbol) + "'");
438
+ }
439
+ this.parseError(errStr, {
440
+ text: lexer2.match,
441
+ token: this.terminals_[symbol] || symbol,
442
+ line: lexer2.yylineno,
443
+ loc: yyloc,
444
+ expected
445
+ });
446
+ }
447
+ if (action[0] instanceof Array && action.length > 1) {
448
+ throw new Error("Parse Error: multiple actions possible at state: " + state + ", token: " + symbol);
449
+ }
450
+ switch (action[0]) {
451
+ case 1:
452
+ stack.push(symbol);
453
+ vstack.push(lexer2.yytext);
454
+ lstack.push(lexer2.yylloc);
455
+ stack.push(action[1]);
456
+ symbol = null;
457
+ {
458
+ yyleng = lexer2.yyleng;
459
+ yytext = lexer2.yytext;
460
+ yylineno = lexer2.yylineno;
461
+ yyloc = lexer2.yylloc;
462
+ }
463
+ break;
464
+ case 2:
465
+ len = this.productions_[action[1]][1];
466
+ yyval.$ = vstack[vstack.length - len];
467
+ yyval._$ = {
468
+ first_line: lstack[lstack.length - (len || 1)].first_line,
469
+ last_line: lstack[lstack.length - 1].last_line,
470
+ first_column: lstack[lstack.length - (len || 1)].first_column,
471
+ last_column: lstack[lstack.length - 1].last_column
472
+ };
473
+ if (ranges) {
474
+ yyval._$.range = [
475
+ lstack[lstack.length - (len || 1)].range[0],
476
+ lstack[lstack.length - 1].range[1]
477
+ ];
478
+ }
479
+ r = this.performAction.apply(yyval, [
480
+ yytext,
481
+ yyleng,
482
+ yylineno,
483
+ sharedState.yy,
484
+ action[1],
485
+ vstack,
486
+ lstack
487
+ ].concat(args));
488
+ if (typeof r !== "undefined") {
489
+ return r;
490
+ }
491
+ if (len) {
492
+ stack = stack.slice(0, -1 * len * 2);
493
+ vstack = vstack.slice(0, -1 * len);
494
+ lstack = lstack.slice(0, -1 * len);
495
+ }
496
+ stack.push(this.productions_[action[1]][0]);
497
+ vstack.push(yyval.$);
498
+ lstack.push(yyval._$);
499
+ newState = table[stack[stack.length - 2]][stack[stack.length - 1]];
500
+ stack.push(newState);
501
+ break;
502
+ case 3:
503
+ return true;
504
+ }
505
+ }
506
+ return true;
507
+ }, "parse")
508
+ };
509
+ var lexer = /* @__PURE__ */ function() {
510
+ var lexer2 = {
511
+ EOF: 1,
512
+ parseError: /* @__PURE__ */ __name(function parseError(str, hash) {
513
+ if (this.yy.parser) {
514
+ this.yy.parser.parseError(str, hash);
515
+ } else {
516
+ throw new Error(str);
517
+ }
518
+ }, "parseError"),
519
+ // resets the lexer, sets new input
520
+ setInput: /* @__PURE__ */ __name(function(input, yy) {
521
+ this.yy = yy || this.yy || {};
522
+ this._input = input;
523
+ this._more = this._backtrack = this.done = false;
524
+ this.yylineno = this.yyleng = 0;
525
+ this.yytext = this.matched = this.match = "";
526
+ this.conditionStack = ["INITIAL"];
527
+ this.yylloc = {
528
+ first_line: 1,
529
+ first_column: 0,
530
+ last_line: 1,
531
+ last_column: 0
532
+ };
533
+ if (this.options.ranges) {
534
+ this.yylloc.range = [0, 0];
535
+ }
536
+ this.offset = 0;
537
+ return this;
538
+ }, "setInput"),
539
+ // consumes and returns one char from the input
540
+ input: /* @__PURE__ */ __name(function() {
541
+ var ch = this._input[0];
542
+ this.yytext += ch;
543
+ this.yyleng++;
544
+ this.offset++;
545
+ this.match += ch;
546
+ this.matched += ch;
547
+ var lines = ch.match(/(?:\r\n?|\n).*/g);
548
+ if (lines) {
549
+ this.yylineno++;
550
+ this.yylloc.last_line++;
551
+ } else {
552
+ this.yylloc.last_column++;
553
+ }
554
+ if (this.options.ranges) {
555
+ this.yylloc.range[1]++;
556
+ }
557
+ this._input = this._input.slice(1);
558
+ return ch;
559
+ }, "input"),
560
+ // unshifts one char (or a string) into the input
561
+ unput: /* @__PURE__ */ __name(function(ch) {
562
+ var len = ch.length;
563
+ var lines = ch.split(/(?:\r\n?|\n)/g);
564
+ this._input = ch + this._input;
565
+ this.yytext = this.yytext.substr(0, this.yytext.length - len);
566
+ this.offset -= len;
567
+ var oldLines = this.match.split(/(?:\r\n?|\n)/g);
568
+ this.match = this.match.substr(0, this.match.length - 1);
569
+ this.matched = this.matched.substr(0, this.matched.length - 1);
570
+ if (lines.length - 1) {
571
+ this.yylineno -= lines.length - 1;
572
+ }
573
+ var r = this.yylloc.range;
574
+ this.yylloc = {
575
+ first_line: this.yylloc.first_line,
576
+ last_line: this.yylineno + 1,
577
+ first_column: this.yylloc.first_column,
578
+ 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
579
+ };
580
+ if (this.options.ranges) {
581
+ this.yylloc.range = [r[0], r[0] + this.yyleng - len];
582
+ }
583
+ this.yyleng = this.yytext.length;
584
+ return this;
585
+ }, "unput"),
586
+ // When called from action, caches matched text and appends it on next action
587
+ more: /* @__PURE__ */ __name(function() {
588
+ this._more = true;
589
+ return this;
590
+ }, "more"),
591
+ // 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.
592
+ reject: /* @__PURE__ */ __name(function() {
593
+ if (this.options.backtrack_lexer) {
594
+ this._backtrack = true;
595
+ } else {
596
+ 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(), {
597
+ text: "",
598
+ token: null,
599
+ line: this.yylineno
600
+ });
601
+ }
602
+ return this;
603
+ }, "reject"),
604
+ // retain first n characters of the match
605
+ less: /* @__PURE__ */ __name(function(n) {
606
+ this.unput(this.match.slice(n));
607
+ }, "less"),
608
+ // displays already matched input, i.e. for error messages
609
+ pastInput: /* @__PURE__ */ __name(function() {
610
+ var past = this.matched.substr(0, this.matched.length - this.match.length);
611
+ return (past.length > 20 ? "..." : "") + past.substr(-20).replace(/\n/g, "");
612
+ }, "pastInput"),
613
+ // displays upcoming input, i.e. for error messages
614
+ upcomingInput: /* @__PURE__ */ __name(function() {
615
+ var next = this.match;
616
+ if (next.length < 20) {
617
+ next += this._input.substr(0, 20 - next.length);
618
+ }
619
+ return (next.substr(0, 20) + (next.length > 20 ? "..." : "")).replace(/\n/g, "");
620
+ }, "upcomingInput"),
621
+ // displays the character position where the lexing error occurred, i.e. for error messages
622
+ showPosition: /* @__PURE__ */ __name(function() {
623
+ var pre = this.pastInput();
624
+ var c = new Array(pre.length + 1).join("-");
625
+ return pre + this.upcomingInput() + "\n" + c + "^";
626
+ }, "showPosition"),
627
+ // test the lexed token: return FALSE when not a match, otherwise return token
628
+ test_match: /* @__PURE__ */ __name(function(match, indexed_rule) {
629
+ var token, lines, backup;
630
+ if (this.options.backtrack_lexer) {
631
+ backup = {
632
+ yylineno: this.yylineno,
633
+ yylloc: {
634
+ first_line: this.yylloc.first_line,
635
+ last_line: this.last_line,
636
+ first_column: this.yylloc.first_column,
637
+ last_column: this.yylloc.last_column
638
+ },
639
+ yytext: this.yytext,
640
+ match: this.match,
641
+ matches: this.matches,
642
+ matched: this.matched,
643
+ yyleng: this.yyleng,
644
+ offset: this.offset,
645
+ _more: this._more,
646
+ _input: this._input,
647
+ yy: this.yy,
648
+ conditionStack: this.conditionStack.slice(0),
649
+ done: this.done
650
+ };
651
+ if (this.options.ranges) {
652
+ backup.yylloc.range = this.yylloc.range.slice(0);
653
+ }
654
+ }
655
+ lines = match[0].match(/(?:\r\n?|\n).*/g);
656
+ if (lines) {
657
+ this.yylineno += lines.length;
658
+ }
659
+ this.yylloc = {
660
+ first_line: this.yylloc.last_line,
661
+ last_line: this.yylineno + 1,
662
+ first_column: this.yylloc.last_column,
663
+ last_column: lines ? lines[lines.length - 1].length - lines[lines.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + match[0].length
664
+ };
665
+ this.yytext += match[0];
666
+ this.match += match[0];
667
+ this.matches = match;
668
+ this.yyleng = this.yytext.length;
669
+ if (this.options.ranges) {
670
+ this.yylloc.range = [this.offset, this.offset += this.yyleng];
671
+ }
672
+ this._more = false;
673
+ this._backtrack = false;
674
+ this._input = this._input.slice(match[0].length);
675
+ this.matched += match[0];
676
+ token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);
677
+ if (this.done && this._input) {
678
+ this.done = false;
679
+ }
680
+ if (token) {
681
+ return token;
682
+ } else if (this._backtrack) {
683
+ for (var k in backup) {
684
+ this[k] = backup[k];
685
+ }
686
+ return false;
687
+ }
688
+ return false;
689
+ }, "test_match"),
690
+ // return next match in input
691
+ next: /* @__PURE__ */ __name(function() {
692
+ if (this.done) {
693
+ return this.EOF;
694
+ }
695
+ if (!this._input) {
696
+ this.done = true;
697
+ }
698
+ var token, match, tempMatch, index;
699
+ if (!this._more) {
700
+ this.yytext = "";
701
+ this.match = "";
702
+ }
703
+ var rules = this._currentRules();
704
+ for (var i = 0; i < rules.length; i++) {
705
+ tempMatch = this._input.match(this.rules[rules[i]]);
706
+ if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {
707
+ match = tempMatch;
708
+ index = i;
709
+ if (this.options.backtrack_lexer) {
710
+ token = this.test_match(tempMatch, rules[i]);
711
+ if (token !== false) {
712
+ return token;
713
+ } else if (this._backtrack) {
714
+ match = false;
715
+ continue;
716
+ } else {
717
+ return false;
718
+ }
719
+ } else if (!this.options.flex) {
720
+ break;
721
+ }
722
+ }
723
+ }
724
+ if (match) {
725
+ token = this.test_match(match, rules[index]);
726
+ if (token !== false) {
727
+ return token;
728
+ }
729
+ return false;
730
+ }
731
+ if (this._input === "") {
732
+ return this.EOF;
733
+ } else {
734
+ return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
735
+ text: "",
736
+ token: null,
737
+ line: this.yylineno
738
+ });
739
+ }
740
+ }, "next"),
741
+ // return next match that has a token
742
+ lex: /* @__PURE__ */ __name(function lex() {
743
+ var r = this.next();
744
+ if (r) {
745
+ return r;
746
+ } else {
747
+ return this.lex();
748
+ }
749
+ }, "lex"),
750
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
751
+ begin: /* @__PURE__ */ __name(function begin(condition) {
752
+ this.conditionStack.push(condition);
753
+ }, "begin"),
754
+ // pop the previously active lexer condition state off the condition stack
755
+ popState: /* @__PURE__ */ __name(function popState() {
756
+ var n = this.conditionStack.length - 1;
757
+ if (n > 0) {
758
+ return this.conditionStack.pop();
759
+ } else {
760
+ return this.conditionStack[0];
761
+ }
762
+ }, "popState"),
763
+ // produce the lexer rule set which is active for the currently active lexer condition state
764
+ _currentRules: /* @__PURE__ */ __name(function _currentRules() {
765
+ if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {
766
+ return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;
767
+ } else {
768
+ return this.conditions["INITIAL"].rules;
769
+ }
770
+ }, "_currentRules"),
771
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
772
+ topState: /* @__PURE__ */ __name(function topState(n) {
773
+ n = this.conditionStack.length - 1 - Math.abs(n || 0);
774
+ if (n >= 0) {
775
+ return this.conditionStack[n];
776
+ } else {
777
+ return "INITIAL";
778
+ }
779
+ }, "topState"),
780
+ // alias for begin(condition)
781
+ pushState: /* @__PURE__ */ __name(function pushState(condition) {
782
+ this.begin(condition);
783
+ }, "pushState"),
784
+ // return the number of states currently on the stack
785
+ stateStackSize: /* @__PURE__ */ __name(function stateStackSize() {
786
+ return this.conditionStack.length;
787
+ }, "stateStackSize"),
788
+ options: { "case-insensitive": true },
789
+ performAction: /* @__PURE__ */ __name(function anonymous(yy, yy_, $avoiding_name_collisions, YY_START) {
790
+ switch ($avoiding_name_collisions) {
791
+ case 0:
792
+ return 5;
793
+ case 1:
794
+ break;
795
+ case 2:
796
+ break;
797
+ case 3:
798
+ break;
799
+ case 4:
800
+ break;
801
+ case 5:
802
+ break;
803
+ case 6:
804
+ return 20;
805
+ case 7:
806
+ this.begin("CONFIG");
807
+ return 75;
808
+ case 8:
809
+ return 76;
810
+ case 9:
811
+ this.popState();
812
+ this.begin("ALIAS");
813
+ return 77;
814
+ case 10:
815
+ this.popState();
816
+ this.popState();
817
+ return 77;
818
+ case 11:
819
+ yy_.yytext = yy_.yytext.trim();
820
+ return 73;
821
+ case 12:
822
+ yy_.yytext = yy_.yytext.trim();
823
+ this.begin("ALIAS");
824
+ return 73;
825
+ case 13:
826
+ yy_.yytext = yy_.yytext.trim();
827
+ this.popState();
828
+ return 73;
829
+ case 14:
830
+ this.popState();
831
+ return 10;
832
+ case 15:
833
+ yy_.yytext = yy_.yytext.trim();
834
+ this.popState();
835
+ return 10;
836
+ case 16:
837
+ this.begin("LINE");
838
+ return 15;
839
+ case 17:
840
+ this.begin("ID");
841
+ return 51;
842
+ case 18:
843
+ this.begin("ID");
844
+ return 53;
845
+ case 19:
846
+ return 14;
847
+ case 20:
848
+ this.begin("ID");
849
+ return 54;
850
+ case 21:
851
+ this.popState();
852
+ this.popState();
853
+ this.begin("LINE");
854
+ return 52;
855
+ case 22:
856
+ this.popState();
857
+ this.popState();
858
+ return 5;
859
+ case 23:
860
+ this.begin("LINE");
861
+ return 37;
862
+ case 24:
863
+ this.begin("LINE");
864
+ return 38;
865
+ case 25:
866
+ this.begin("LINE");
867
+ return 39;
868
+ case 26:
869
+ this.begin("LINE");
870
+ return 40;
871
+ case 27:
872
+ this.begin("LINE");
873
+ return 50;
874
+ case 28:
875
+ this.begin("LINE");
876
+ return 42;
877
+ case 29:
878
+ this.begin("LINE");
879
+ return 44;
880
+ case 30:
881
+ this.begin("LINE");
882
+ return 49;
883
+ case 31:
884
+ this.begin("LINE");
885
+ return 45;
886
+ case 32:
887
+ this.begin("LINE");
888
+ return 48;
889
+ case 33:
890
+ this.begin("LINE");
891
+ return 47;
892
+ case 34:
893
+ this.popState();
894
+ return 16;
895
+ case 35:
896
+ return 17;
897
+ case 36:
898
+ return 67;
899
+ case 37:
900
+ return 68;
901
+ case 38:
902
+ return 61;
903
+ case 39:
904
+ return 62;
905
+ case 40:
906
+ return 63;
907
+ case 41:
908
+ return 64;
909
+ case 42:
910
+ return 59;
911
+ case 43:
912
+ return 56;
913
+ case 44:
914
+ this.begin("ID");
915
+ return 22;
916
+ case 45:
917
+ this.begin("ID");
918
+ return 24;
919
+ case 46:
920
+ return 30;
921
+ case 47:
922
+ return 31;
923
+ case 48:
924
+ this.begin("acc_title");
925
+ return 32;
926
+ case 49:
927
+ this.popState();
928
+ return "acc_title_value";
929
+ case 50:
930
+ this.begin("acc_descr");
931
+ return 34;
932
+ case 51:
933
+ this.popState();
934
+ return "acc_descr_value";
935
+ case 52:
936
+ this.begin("acc_descr_multiline");
937
+ break;
938
+ case 53:
939
+ this.popState();
940
+ break;
941
+ case 54:
942
+ return "acc_descr_multiline_value";
943
+ case 55:
944
+ return 6;
945
+ case 56:
946
+ return 19;
947
+ case 57:
948
+ return 21;
949
+ case 58:
950
+ return 66;
951
+ case 59:
952
+ return 5;
953
+ case 60:
954
+ yy_.yytext = yy_.yytext.trim();
955
+ return 73;
956
+ case 61:
957
+ return 80;
958
+ case 62:
959
+ return 97;
960
+ case 63:
961
+ return 98;
962
+ case 64:
963
+ return 99;
964
+ case 65:
965
+ return 78;
966
+ case 66:
967
+ return 79;
968
+ case 67:
969
+ return 100;
970
+ case 68:
971
+ return 101;
972
+ case 69:
973
+ return 102;
974
+ case 70:
975
+ return 103;
976
+ case 71:
977
+ return 85;
978
+ case 72:
979
+ return 86;
980
+ case 73:
981
+ return 87;
982
+ case 74:
983
+ return 88;
984
+ case 75:
985
+ return 93;
986
+ case 76:
987
+ return 94;
988
+ case 77:
989
+ return 95;
990
+ case 78:
991
+ return 96;
992
+ case 79:
993
+ return 81;
994
+ case 80:
995
+ return 82;
996
+ case 81:
997
+ return 83;
998
+ case 82:
999
+ return 84;
1000
+ case 83:
1001
+ return 89;
1002
+ case 84:
1003
+ return 90;
1004
+ case 85:
1005
+ return 91;
1006
+ case 86:
1007
+ return 92;
1008
+ case 87:
1009
+ return 104;
1010
+ case 88:
1011
+ return 104;
1012
+ case 89:
1013
+ return 70;
1014
+ case 90:
1015
+ return 71;
1016
+ case 91:
1017
+ return 72;
1018
+ case 92:
1019
+ return 5;
1020
+ case 93:
1021
+ return 10;
1022
+ }
1023
+ }, "anonymous"),
1024
+ rules: [/^(?:[\n]+)/i, /^(?:\s+)/i, /^(?:((?!\n)\s)+)/i, /^(?:#[^\n]*)/i, /^(?:%(?!\{)[^\n]*)/i, /^(?:[^\}]%%[^\n]*)/i, /^(?:([0-9]+(\.[0-9]{1,2})?|\.[0-9]{1,2})(?=[ \n]+))/i, /^(?:@\{)/i, /^(?:[^\}]+)/i, /^(?:\}(?=\s+as\s))/i, /^(?:\})/i, /^(?:[^\<->\->:\n,;@\s]+(?=@\{))/i, /^(?:[^<>:\n,;@\s]+(?=\s+as\s))/i, /^(?:[^<>:\n,;@]+(?=\s*[\n;#]|$))/i, /^(?:[^<>:\n,;@]*<[^\n]*)/i, /^(?:[^\n]+)/i, /^(?:box\b)/i, /^(?:participant\b)/i, /^(?:actor\b)/i, /^(?:create\b)/i, /^(?:destroy\b)/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, /^(?:--\|\\)/i, /^(?:--\|\/)/i, /^(?:--\\\\)/i, /^(?:--\/\/)/i, /^(?:\/\|--)/i, /^(?:\\\|--)/i, /^(?:\/\/--)/i, /^(?:\\\\--)/i, /^(?:-\|\\)/i, /^(?:-\|\/)/i, /^(?:-\\\\)/i, /^(?:-\/\/)/i, /^(?:\/\|-)/i, /^(?:\\\|-)/i, /^(?:\/\/-)/i, /^(?:\\\\-)/i, /^(?::(?:(?:no)?wrap)?[^#\n;]*)/i, /^(?::)/i, /^(?:\+)/i, /^(?:-)/i, /^(?:\(\))/i, /^(?:$)/i, /^(?:.)/i],
1025
+ conditions: { "acc_descr_multiline": { "rules": [53, 54], "inclusive": false }, "acc_descr": { "rules": [51], "inclusive": false }, "acc_title": { "rules": [49], "inclusive": false }, "ID": { "rules": [2, 3, 7, 11, 12, 13, 14, 15], "inclusive": false }, "ALIAS": { "rules": [2, 3, 21, 22], "inclusive": false }, "LINE": { "rules": [2, 3, 34], "inclusive": false }, "CONFIG": { "rules": [8, 9, 10], "inclusive": false }, "CONFIG_DATA": { "rules": [], "inclusive": false }, "INITIAL": { "rules": [0, 1, 3, 4, 5, 6, 16, 17, 18, 19, 20, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 50, 52, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93], "inclusive": true } }
1026
+ };
1027
+ return lexer2;
1028
+ }();
1029
+ parser2.lexer = lexer;
1030
+ function Parser() {
1031
+ this.yy = {};
1032
+ }
1033
+ __name(Parser, "Parser");
1034
+ Parser.prototype = parser2;
1035
+ parser2.Parser = Parser;
1036
+ return new Parser();
1037
+ }();
1038
+ parser.parser = parser;
1039
+ var sequenceDiagram_default = parser;
1040
+ var LINETYPE = {
1041
+ SOLID: 0,
1042
+ DOTTED: 1,
1043
+ NOTE: 2,
1044
+ SOLID_CROSS: 3,
1045
+ DOTTED_CROSS: 4,
1046
+ SOLID_OPEN: 5,
1047
+ DOTTED_OPEN: 6,
1048
+ LOOP_START: 10,
1049
+ LOOP_END: 11,
1050
+ ALT_START: 12,
1051
+ ALT_ELSE: 13,
1052
+ ALT_END: 14,
1053
+ OPT_START: 15,
1054
+ OPT_END: 16,
1055
+ ACTIVE_START: 17,
1056
+ ACTIVE_END: 18,
1057
+ PAR_START: 19,
1058
+ PAR_AND: 20,
1059
+ PAR_END: 21,
1060
+ RECT_START: 22,
1061
+ RECT_END: 23,
1062
+ SOLID_POINT: 24,
1063
+ DOTTED_POINT: 25,
1064
+ AUTONUMBER: 26,
1065
+ CRITICAL_START: 27,
1066
+ CRITICAL_OPTION: 28,
1067
+ CRITICAL_END: 29,
1068
+ BREAK_START: 30,
1069
+ BREAK_END: 31,
1070
+ PAR_OVER_START: 32,
1071
+ BIDIRECTIONAL_SOLID: 33,
1072
+ BIDIRECTIONAL_DOTTED: 34,
1073
+ SOLID_TOP: 41,
1074
+ SOLID_BOTTOM: 42,
1075
+ STICK_TOP: 43,
1076
+ STICK_BOTTOM: 44,
1077
+ SOLID_ARROW_TOP_REVERSE: 45,
1078
+ SOLID_ARROW_BOTTOM_REVERSE: 46,
1079
+ STICK_ARROW_TOP_REVERSE: 47,
1080
+ STICK_ARROW_BOTTOM_REVERSE: 48,
1081
+ SOLID_TOP_DOTTED: 51,
1082
+ SOLID_BOTTOM_DOTTED: 52,
1083
+ STICK_TOP_DOTTED: 53,
1084
+ STICK_BOTTOM_DOTTED: 54,
1085
+ SOLID_ARROW_TOP_REVERSE_DOTTED: 55,
1086
+ SOLID_ARROW_BOTTOM_REVERSE_DOTTED: 56,
1087
+ STICK_ARROW_TOP_REVERSE_DOTTED: 57,
1088
+ STICK_ARROW_BOTTOM_REVERSE_DOTTED: 58,
1089
+ CENTRAL_CONNECTION: 59,
1090
+ CENTRAL_CONNECTION_REVERSE: 60,
1091
+ CENTRAL_CONNECTION_DUAL: 61
1092
+ };
1093
+ var ARROWTYPE = {
1094
+ FILLED: 0,
1095
+ OPEN: 1
1096
+ };
1097
+ var PLACEMENT = {
1098
+ LEFTOF: 0,
1099
+ RIGHTOF: 1,
1100
+ OVER: 2
1101
+ };
1102
+ var PARTICIPANT_TYPE = {
1103
+ ACTOR: "actor",
1104
+ CONTROL: "control",
1105
+ DATABASE: "database",
1106
+ ENTITY: "entity"
1107
+ };
1108
+ var SequenceDB = (_a = class {
1109
+ constructor() {
1110
+ this.state = new ImperativeState(() => ({
1111
+ prevActor: void 0,
1112
+ actors: /* @__PURE__ */ new Map(),
1113
+ createdActors: /* @__PURE__ */ new Map(),
1114
+ destroyedActors: /* @__PURE__ */ new Map(),
1115
+ boxes: [],
1116
+ messages: [],
1117
+ notes: [],
1118
+ sequenceNumbersEnabled: false,
1119
+ wrapEnabled: void 0,
1120
+ currentBox: void 0,
1121
+ lastCreated: void 0,
1122
+ lastDestroyed: void 0
1123
+ }));
1124
+ this.setAccTitle = setAccTitle;
1125
+ this.setAccDescription = setAccDescription;
1126
+ this.setDiagramTitle = setDiagramTitle;
1127
+ this.getAccTitle = getAccTitle;
1128
+ this.getAccDescription = getAccDescription;
1129
+ this.getDiagramTitle = getDiagramTitle;
1130
+ this.apply = this.apply.bind(this);
1131
+ this.parseBoxData = this.parseBoxData.bind(this);
1132
+ this.parseMessage = this.parseMessage.bind(this);
1133
+ this.clear();
1134
+ this.setWrap(getConfig2().wrap);
1135
+ this.LINETYPE = LINETYPE;
1136
+ this.ARROWTYPE = ARROWTYPE;
1137
+ this.PLACEMENT = PLACEMENT;
1138
+ }
1139
+ addBox(data) {
1140
+ this.state.records.boxes.push({
1141
+ name: data.text,
1142
+ wrap: data.wrap ?? this.autoWrap(),
1143
+ fill: data.color,
1144
+ actorKeys: []
1145
+ });
1146
+ this.state.records.currentBox = this.state.records.boxes.slice(-1)[0];
1147
+ }
1148
+ addActor(id, name, description, type, metadata) {
1149
+ let assignedBox = this.state.records.currentBox;
1150
+ let doc;
1151
+ if (metadata !== void 0) {
1152
+ let yamlData;
1153
+ if (!metadata.includes("\n")) {
1154
+ yamlData = "{\n" + metadata + "\n}";
1155
+ } else {
1156
+ yamlData = metadata + "\n";
1157
+ }
1158
+ doc = load(yamlData, { schema: JSON_SCHEMA });
1159
+ }
1160
+ type = (doc == null ? void 0 : doc.type) ?? type;
1161
+ if ((doc == null ? void 0 : doc.alias) && (!description || description.text === name)) {
1162
+ description = { text: doc.alias, wrap: description == null ? void 0 : description.wrap, type };
1163
+ }
1164
+ const old = this.state.records.actors.get(id);
1165
+ if (old) {
1166
+ if (this.state.records.currentBox && old.box && this.state.records.currentBox !== old.box) {
1167
+ throw new Error(
1168
+ `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.`
1169
+ );
1170
+ }
1171
+ assignedBox = old.box ? old.box : this.state.records.currentBox;
1172
+ old.box = assignedBox;
1173
+ if (old && name === old.name && description == null) {
1174
+ return;
1175
+ }
1176
+ }
1177
+ if ((description == null ? void 0 : description.text) == null) {
1178
+ description = { text: name, type };
1179
+ }
1180
+ if (type == null || description.text == null) {
1181
+ description = { text: name, type };
1182
+ }
1183
+ this.state.records.actors.set(id, {
1184
+ box: assignedBox,
1185
+ name,
1186
+ description: description.text,
1187
+ wrap: description.wrap ?? this.autoWrap(),
1188
+ prevActor: this.state.records.prevActor,
1189
+ links: {},
1190
+ properties: {},
1191
+ actorCnt: null,
1192
+ rectData: null,
1193
+ type: type ?? "participant"
1194
+ });
1195
+ if (this.state.records.prevActor) {
1196
+ const prevActorInRecords = this.state.records.actors.get(this.state.records.prevActor);
1197
+ if (prevActorInRecords) {
1198
+ prevActorInRecords.nextActor = id;
1199
+ }
1200
+ }
1201
+ if (this.state.records.currentBox) {
1202
+ this.state.records.currentBox.actorKeys.push(id);
1203
+ }
1204
+ this.state.records.prevActor = id;
1205
+ }
1206
+ activationCount(part) {
1207
+ let i;
1208
+ let count = 0;
1209
+ if (!part) {
1210
+ return 0;
1211
+ }
1212
+ for (i = 0; i < this.state.records.messages.length; i++) {
1213
+ if (this.state.records.messages[i].type === this.LINETYPE.ACTIVE_START && this.state.records.messages[i].from === part) {
1214
+ count++;
1215
+ }
1216
+ if (this.state.records.messages[i].type === this.LINETYPE.ACTIVE_END && this.state.records.messages[i].from === part) {
1217
+ count--;
1218
+ }
1219
+ }
1220
+ return count;
1221
+ }
1222
+ addMessage(idFrom, idTo, message, answer) {
1223
+ this.state.records.messages.push({
1224
+ id: this.state.records.messages.length.toString(),
1225
+ from: idFrom,
1226
+ to: idTo,
1227
+ message: message.text,
1228
+ wrap: message.wrap ?? this.autoWrap(),
1229
+ answer
1230
+ });
1231
+ }
1232
+ addSignal(idFrom, idTo, message, messageType, activate = false, centralConnection) {
1233
+ if (messageType === this.LINETYPE.ACTIVE_END) {
1234
+ const cnt = this.activationCount(idFrom ?? "");
1235
+ if (cnt < 1) {
1236
+ const error = new Error("Trying to inactivate an inactive participant (" + idFrom + ")");
1237
+ error.hash = {
1238
+ text: "->>-",
1239
+ token: "->>-",
1240
+ line: "1",
1241
+ loc: { first_line: 1, last_line: 1, first_column: 1, last_column: 1 },
1242
+ expected: ["'ACTIVE_PARTICIPANT'"]
1243
+ };
1244
+ throw error;
1245
+ }
1246
+ }
1247
+ this.state.records.messages.push({
1248
+ id: this.state.records.messages.length.toString(),
1249
+ from: idFrom,
1250
+ to: idTo,
1251
+ message: (message == null ? void 0 : message.text) ?? "",
1252
+ wrap: (message == null ? void 0 : message.wrap) ?? this.autoWrap(),
1253
+ type: messageType,
1254
+ activate,
1255
+ centralConnection: centralConnection ?? 0
1256
+ });
1257
+ return true;
1258
+ }
1259
+ hasAtLeastOneBox() {
1260
+ return this.state.records.boxes.length > 0;
1261
+ }
1262
+ hasAtLeastOneBoxWithTitle() {
1263
+ return this.state.records.boxes.some((b) => b.name);
1264
+ }
1265
+ getMessages() {
1266
+ return this.state.records.messages;
1267
+ }
1268
+ getBoxes() {
1269
+ return this.state.records.boxes;
1270
+ }
1271
+ getActors() {
1272
+ return this.state.records.actors;
1273
+ }
1274
+ getCreatedActors() {
1275
+ return this.state.records.createdActors;
1276
+ }
1277
+ getDestroyedActors() {
1278
+ return this.state.records.destroyedActors;
1279
+ }
1280
+ getActor(id) {
1281
+ return this.state.records.actors.get(id);
1282
+ }
1283
+ getActorKeys() {
1284
+ return [...this.state.records.actors.keys()];
1285
+ }
1286
+ enableSequenceNumbers() {
1287
+ this.state.records.sequenceNumbersEnabled = true;
1288
+ }
1289
+ disableSequenceNumbers() {
1290
+ this.state.records.sequenceNumbersEnabled = false;
1291
+ }
1292
+ showSequenceNumbers() {
1293
+ return this.state.records.sequenceNumbersEnabled;
1294
+ }
1295
+ setWrap(wrapSetting) {
1296
+ this.state.records.wrapEnabled = wrapSetting;
1297
+ }
1298
+ extractWrap(text) {
1299
+ if (text === void 0) {
1300
+ return {};
1301
+ }
1302
+ text = text.trim();
1303
+ const wrap = /^:?wrap:/.exec(text) !== null ? true : /^:?nowrap:/.exec(text) !== null ? false : void 0;
1304
+ const cleanedText = (wrap === void 0 ? text : text.replace(/^:?(?:no)?wrap:/, "")).trim();
1305
+ return { cleanedText, wrap };
1306
+ }
1307
+ autoWrap() {
1308
+ var _a2;
1309
+ if (this.state.records.wrapEnabled !== void 0) {
1310
+ return this.state.records.wrapEnabled;
1311
+ }
1312
+ return ((_a2 = getConfig2().sequence) == null ? void 0 : _a2.wrap) ?? false;
1313
+ }
1314
+ clear() {
1315
+ this.state.reset();
1316
+ clear();
1317
+ }
1318
+ parseMessage(str) {
1319
+ const trimmedStr = str.trim();
1320
+ const { wrap, cleanedText } = this.extractWrap(trimmedStr);
1321
+ const message = {
1322
+ text: cleanedText,
1323
+ wrap
1324
+ };
1325
+ log.debug(`parseMessage: ${JSON.stringify(message)}`);
1326
+ return message;
1327
+ }
1328
+ // We expect the box statement to be color first then description
1329
+ // 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
1330
+ // We extract first segment as color, the rest of the line is considered as text
1331
+ parseBoxData(str) {
1332
+ const match = /^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/.exec(str);
1333
+ let color = (match == null ? void 0 : match[1]) ? match[1].trim() : "transparent";
1334
+ let title = (match == null ? void 0 : match[2]) ? match[2].trim() : void 0;
1335
+ if (window == null ? void 0 : window.CSS) {
1336
+ if (!window.CSS.supports("color", color)) {
1337
+ color = "transparent";
1338
+ title = str.trim();
1339
+ }
1340
+ } else {
1341
+ const style = new Option().style;
1342
+ style.color = color;
1343
+ if (style.color !== color) {
1344
+ color = "transparent";
1345
+ title = str.trim();
1346
+ }
1347
+ }
1348
+ const { wrap, cleanedText } = this.extractWrap(title);
1349
+ return {
1350
+ text: cleanedText ? sanitizeText(cleanedText, getConfig2()) : void 0,
1351
+ color,
1352
+ wrap
1353
+ };
1354
+ }
1355
+ addNote(actor, placement, message) {
1356
+ const note = {
1357
+ actor,
1358
+ placement,
1359
+ message: message.text,
1360
+ wrap: message.wrap ?? this.autoWrap()
1361
+ };
1362
+ const actors = [].concat(actor, actor);
1363
+ this.state.records.notes.push(note);
1364
+ this.state.records.messages.push({
1365
+ id: this.state.records.messages.length.toString(),
1366
+ from: actors[0],
1367
+ to: actors[1],
1368
+ message: message.text,
1369
+ wrap: message.wrap ?? this.autoWrap(),
1370
+ type: this.LINETYPE.NOTE,
1371
+ placement
1372
+ });
1373
+ }
1374
+ addLinks(actorId, text) {
1375
+ const actor = this.getActor(actorId);
1376
+ try {
1377
+ let sanitizedText = sanitizeText(text.text, getConfig2());
1378
+ sanitizedText = sanitizedText.replace(/&equals;/g, "=");
1379
+ sanitizedText = sanitizedText.replace(/&amp;/g, "&");
1380
+ const links = JSON.parse(sanitizedText);
1381
+ this.insertLinks(actor, links);
1382
+ } catch (e) {
1383
+ log.error("error while parsing actor link text", e);
1384
+ }
1385
+ }
1386
+ addALink(actorId, text) {
1387
+ const actor = this.getActor(actorId);
1388
+ try {
1389
+ const links = {};
1390
+ let sanitizedText = sanitizeText(text.text, getConfig2());
1391
+ const sep = sanitizedText.indexOf("@");
1392
+ sanitizedText = sanitizedText.replace(/&equals;/g, "=");
1393
+ sanitizedText = sanitizedText.replace(/&amp;/g, "&");
1394
+ const label = sanitizedText.slice(0, sep - 1).trim();
1395
+ const link = sanitizedText.slice(sep + 1).trim();
1396
+ links[label] = link;
1397
+ this.insertLinks(actor, links);
1398
+ } catch (e) {
1399
+ log.error("error while parsing actor link text", e);
1400
+ }
1401
+ }
1402
+ insertLinks(actor, links) {
1403
+ if (actor.links == null) {
1404
+ actor.links = links;
1405
+ } else {
1406
+ for (const key in links) {
1407
+ actor.links[key] = links[key];
1408
+ }
1409
+ }
1410
+ }
1411
+ addProperties(actorId, text) {
1412
+ const actor = this.getActor(actorId);
1413
+ try {
1414
+ const sanitizedText = sanitizeText(text.text, getConfig2());
1415
+ const properties = JSON.parse(sanitizedText);
1416
+ this.insertProperties(actor, properties);
1417
+ } catch (e) {
1418
+ log.error("error while parsing actor properties text", e);
1419
+ }
1420
+ }
1421
+ insertProperties(actor, properties) {
1422
+ if (actor.properties == null) {
1423
+ actor.properties = properties;
1424
+ } else {
1425
+ for (const key in properties) {
1426
+ actor.properties[key] = properties[key];
1427
+ }
1428
+ }
1429
+ }
1430
+ boxEnd() {
1431
+ this.state.records.currentBox = void 0;
1432
+ }
1433
+ addDetails(actorId, text) {
1434
+ const actor = this.getActor(actorId);
1435
+ const elem = document.getElementById(text.text);
1436
+ try {
1437
+ const text2 = elem.innerHTML;
1438
+ const details = JSON.parse(text2);
1439
+ if (details.properties) {
1440
+ this.insertProperties(actor, details.properties);
1441
+ }
1442
+ if (details.links) {
1443
+ this.insertLinks(actor, details.links);
1444
+ }
1445
+ } catch (e) {
1446
+ log.error("error while parsing actor details text", e);
1447
+ }
1448
+ }
1449
+ getActorProperty(actor, key) {
1450
+ if ((actor == null ? void 0 : actor.properties) !== void 0) {
1451
+ return actor.properties[key];
1452
+ }
1453
+ return void 0;
1454
+ }
1455
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-redundant-type-constituents
1456
+ apply(param) {
1457
+ if (Array.isArray(param)) {
1458
+ param.forEach((item) => {
1459
+ this.apply(item);
1460
+ });
1461
+ } else {
1462
+ switch (param.type) {
1463
+ case "sequenceIndex":
1464
+ this.state.records.messages.push({
1465
+ id: this.state.records.messages.length.toString(),
1466
+ from: void 0,
1467
+ to: void 0,
1468
+ message: {
1469
+ start: param.sequenceIndex,
1470
+ step: param.sequenceIndexStep,
1471
+ visible: param.sequenceVisible
1472
+ },
1473
+ wrap: false,
1474
+ type: param.signalType
1475
+ });
1476
+ break;
1477
+ case "addParticipant":
1478
+ this.addActor(param.actor, param.actor, param.description, param.draw, param.config);
1479
+ break;
1480
+ case "createParticipant":
1481
+ if (this.state.records.actors.has(param.actor)) {
1482
+ throw new Error(
1483
+ "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"
1484
+ );
1485
+ }
1486
+ this.state.records.lastCreated = param.actor;
1487
+ this.addActor(param.actor, param.actor, param.description, param.draw, param.config);
1488
+ this.state.records.createdActors.set(param.actor, this.state.records.messages.length);
1489
+ break;
1490
+ case "destroyParticipant":
1491
+ this.state.records.lastDestroyed = param.actor;
1492
+ this.state.records.destroyedActors.set(param.actor, this.state.records.messages.length);
1493
+ break;
1494
+ case "activeStart":
1495
+ this.addSignal(param.actor, void 0, void 0, param.signalType);
1496
+ break;
1497
+ case "centralConnection":
1498
+ this.addSignal(param.actor, void 0, void 0, param.signalType);
1499
+ break;
1500
+ case "centralConnectionReverse":
1501
+ this.addSignal(param.actor, void 0, void 0, param.signalType);
1502
+ break;
1503
+ case "activeEnd":
1504
+ this.addSignal(param.actor, void 0, void 0, param.signalType);
1505
+ break;
1506
+ case "addNote":
1507
+ this.addNote(param.actor, param.placement, param.text);
1508
+ break;
1509
+ case "addLinks":
1510
+ this.addLinks(param.actor, param.text);
1511
+ break;
1512
+ case "addALink":
1513
+ this.addALink(param.actor, param.text);
1514
+ break;
1515
+ case "addProperties":
1516
+ this.addProperties(param.actor, param.text);
1517
+ break;
1518
+ case "addDetails":
1519
+ this.addDetails(param.actor, param.text);
1520
+ break;
1521
+ case "addMessage":
1522
+ if (this.state.records.lastCreated) {
1523
+ if (param.to !== this.state.records.lastCreated) {
1524
+ throw new Error(
1525
+ "The created participant " + this.state.records.lastCreated.name + " does not have an associated creating message after its declaration. Please check the sequence diagram."
1526
+ );
1527
+ } else {
1528
+ this.state.records.lastCreated = void 0;
1529
+ }
1530
+ } else if (this.state.records.lastDestroyed) {
1531
+ if (param.to !== this.state.records.lastDestroyed && param.from !== this.state.records.lastDestroyed) {
1532
+ throw new Error(
1533
+ "The destroyed participant " + this.state.records.lastDestroyed.name + " does not have an associated destroying message after its declaration. Please check the sequence diagram."
1534
+ );
1535
+ } else {
1536
+ this.state.records.lastDestroyed = void 0;
1537
+ }
1538
+ }
1539
+ this.addSignal(
1540
+ param.from,
1541
+ param.to,
1542
+ param.msg,
1543
+ param.signalType,
1544
+ param.activate,
1545
+ param.centralConnection
1546
+ );
1547
+ break;
1548
+ case "boxStart":
1549
+ this.addBox(param.boxData);
1550
+ break;
1551
+ case "boxEnd":
1552
+ this.boxEnd();
1553
+ break;
1554
+ case "loopStart":
1555
+ this.addSignal(void 0, void 0, param.loopText, param.signalType);
1556
+ break;
1557
+ case "loopEnd":
1558
+ this.addSignal(void 0, void 0, void 0, param.signalType);
1559
+ break;
1560
+ case "rectStart":
1561
+ this.addSignal(void 0, void 0, param.color, param.signalType);
1562
+ break;
1563
+ case "rectEnd":
1564
+ this.addSignal(void 0, void 0, void 0, param.signalType);
1565
+ break;
1566
+ case "optStart":
1567
+ this.addSignal(void 0, void 0, param.optText, param.signalType);
1568
+ break;
1569
+ case "optEnd":
1570
+ this.addSignal(void 0, void 0, void 0, param.signalType);
1571
+ break;
1572
+ case "altStart":
1573
+ this.addSignal(void 0, void 0, param.altText, param.signalType);
1574
+ break;
1575
+ case "else":
1576
+ this.addSignal(void 0, void 0, param.altText, param.signalType);
1577
+ break;
1578
+ case "altEnd":
1579
+ this.addSignal(void 0, void 0, void 0, param.signalType);
1580
+ break;
1581
+ case "setAccTitle":
1582
+ setAccTitle(param.text);
1583
+ break;
1584
+ case "parStart":
1585
+ this.addSignal(void 0, void 0, param.parText, param.signalType);
1586
+ break;
1587
+ case "and":
1588
+ this.addSignal(void 0, void 0, param.parText, param.signalType);
1589
+ break;
1590
+ case "parEnd":
1591
+ this.addSignal(void 0, void 0, void 0, param.signalType);
1592
+ break;
1593
+ case "criticalStart":
1594
+ this.addSignal(void 0, void 0, param.criticalText, param.signalType);
1595
+ break;
1596
+ case "option":
1597
+ this.addSignal(void 0, void 0, param.optionText, param.signalType);
1598
+ break;
1599
+ case "criticalEnd":
1600
+ this.addSignal(void 0, void 0, void 0, param.signalType);
1601
+ break;
1602
+ case "breakStart":
1603
+ this.addSignal(void 0, void 0, param.breakText, param.signalType);
1604
+ break;
1605
+ case "breakEnd":
1606
+ this.addSignal(void 0, void 0, void 0, param.signalType);
1607
+ break;
1608
+ }
1609
+ }
1610
+ }
1611
+ getConfig() {
1612
+ return getConfig2().sequence;
1613
+ }
1614
+ }, __name(_a, "SequenceDB"), _a);
1615
+ var getStyles = /* @__PURE__ */ __name((options) => {
1616
+ const dropShadow = options.dropShadow ?? "none";
1617
+ const { look } = getConfig2();
1618
+ return `.actor {
1619
+ stroke: ${options.actorBorder};
1620
+ fill: ${options.actorBkg};
1621
+ stroke-width: ${options.strokeWidth ?? 1};
1622
+ }
1623
+
1624
+ rect.actor.outer-path[data-look="neo"] {
1625
+ filter: ${dropShadow};
1626
+ }
1627
+
1628
+ rect.note[data-look="neo"] {
1629
+ stroke:${options.noteBorderColor};
1630
+ fill:${options.noteBkgColor};
1631
+ filter: ${dropShadow};
1632
+ }
1633
+
1634
+ text.actor > tspan {
1635
+ fill: ${options.actorTextColor};
1636
+ stroke: none;
1637
+ }
1638
+
1639
+ .actor-line {
1640
+ stroke: ${options.actorLineColor};
1641
+ }
1642
+
1643
+ .innerArc {
1644
+ stroke-width: 1.5;
1645
+ stroke-dasharray: none;
1646
+ }
1647
+
1648
+ .messageLine0 {
1649
+ stroke-width: 1.5;
1650
+ stroke-dasharray: none;
1651
+ stroke: ${options.signalColor};
1652
+ }
1653
+
1654
+ .messageLine1 {
1655
+ stroke-width: 1.5;
1656
+ stroke-dasharray: 2, 2;
1657
+ stroke: ${options.signalColor};
1658
+ }
1659
+
1660
+ [id$="-arrowhead"] path {
1661
+ fill: ${options.signalColor};
1662
+ stroke: ${options.signalColor};
1663
+ }
1664
+
1665
+ .sequenceNumber {
1666
+ fill: ${options.sequenceNumberColor};
1667
+ }
1668
+
1669
+ [id$="-sequencenumber"] {
1670
+ fill: ${options.signalColor};
1671
+ }
1672
+
1673
+ [id$="-crosshead"] path {
1674
+ fill: ${options.signalColor};
1675
+ stroke: ${options.signalColor};
1676
+ }
1677
+
1678
+ .messageText {
1679
+ fill: ${options.signalTextColor};
1680
+ stroke: none;
1681
+ }
1682
+
1683
+ .labelBox {
1684
+ stroke: ${options.labelBoxBorderColor};
1685
+ fill: ${options.labelBoxBkgColor};
1686
+ filter: ${look === "neo" ? dropShadow : "none"};
1687
+ }
1688
+
1689
+ .labelText, .labelText > tspan {
1690
+ fill: ${options.labelTextColor};
1691
+ stroke: none;
1692
+ }
1693
+
1694
+ .loopText, .loopText > tspan {
1695
+ fill: ${options.loopTextColor};
1696
+ stroke: none;
1697
+ }
1698
+
1699
+ .sectionTitle, .sectionTitle > tspan {
1700
+ fill: ${options.loopTextColor};
1701
+ stroke: none;
1702
+ }
1703
+
1704
+ .loopLine {
1705
+ stroke-width: 2px;
1706
+ stroke-dasharray: 2, 2;
1707
+ stroke: ${options.labelBoxBorderColor};
1708
+ fill: ${options.labelBoxBorderColor};
1709
+ }
1710
+
1711
+ .note {
1712
+ //stroke: #decc93;
1713
+ stroke: ${options.noteBorderColor};
1714
+ fill: ${options.noteBkgColor};
1715
+ }
1716
+
1717
+ .noteText, .noteText > tspan {
1718
+ fill: ${options.noteTextColor};
1719
+ stroke: none;
1720
+ ${options.noteFontWeight ? `font-weight: ${options.noteFontWeight};` : ""}
1721
+ }
1722
+
1723
+ .activation0 {
1724
+ fill: ${options.activationBkgColor};
1725
+ stroke: ${options.activationBorderColor};
1726
+ }
1727
+
1728
+ .activation1 {
1729
+ fill: ${options.activationBkgColor};
1730
+ stroke: ${options.activationBorderColor};
1731
+ }
1732
+
1733
+ .activation2 {
1734
+ fill: ${options.activationBkgColor};
1735
+ stroke: ${options.activationBorderColor};
1736
+ }
1737
+
1738
+ .actorPopupMenu {
1739
+ position: absolute;
1740
+ }
1741
+
1742
+ .actorPopupMenuPanel {
1743
+ position: absolute;
1744
+ fill: ${options.actorBkg};
1745
+ box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
1746
+ filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));
1747
+ }
1748
+ .actor-man circle, line {
1749
+ fill: ${options.actorBkg};
1750
+ stroke-width: 2px;
1751
+ }
1752
+
1753
+ g rect.rect {
1754
+ filter: ${dropShadow};
1755
+ stroke: ${options.nodeBorder};
1756
+ }
1757
+ `;
1758
+ }, "getStyles");
1759
+ var styles_default = getStyles;
1760
+ var ACTOR_TYPE_WIDTH = 18 * 2;
1761
+ var TOP_ACTOR_CLASS = "actor-top";
1762
+ var BOTTOM_ACTOR_CLASS = "actor-bottom";
1763
+ var ACTOR_BOX_CLASS = "actor-box";
1764
+ var ACTOR_MAN_FIGURE_CLASS = "actor-man";
1765
+ var COLOR_THEMES = /* @__PURE__ */ new Set(["redux-color", "redux-dark-color"]);
1766
+ var drawRect2 = /* @__PURE__ */ __name(function(elem, rectData) {
1767
+ const rectElement = drawRect(elem, rectData);
1768
+ if (getConfig().look === "neo") {
1769
+ rectElement.attr("data-look", "neo");
1770
+ }
1771
+ return rectElement;
1772
+ }, "drawRect");
1773
+ var drawPopup = /* @__PURE__ */ __name(function(elem, actor, minMenuWidth, textAttrs, forceMenus) {
1774
+ if (actor.links === void 0 || actor.links === null || Object.keys(actor.links).length === 0) {
1775
+ return { height: 0, width: 0 };
1776
+ }
1777
+ const links = actor.links;
1778
+ const actorCnt2 = actor.actorCnt;
1779
+ const rectData = actor.rectData;
1780
+ var displayValue = "none";
1781
+ if (forceMenus) {
1782
+ displayValue = "block !important";
1783
+ }
1784
+ const g = elem.append("g");
1785
+ g.attr("id", "actor" + actorCnt2 + "_popup");
1786
+ g.attr("class", "actorPopupMenu");
1787
+ g.attr("display", displayValue);
1788
+ var actorClass = "";
1789
+ if (rectData.class !== void 0) {
1790
+ actorClass = " " + rectData.class;
1791
+ }
1792
+ let menuWidth = rectData.width > minMenuWidth ? rectData.width : minMenuWidth;
1793
+ const rectElem = g.append("rect");
1794
+ rectElem.attr("class", "actorPopupMenuPanel" + actorClass);
1795
+ rectElem.attr("x", rectData.x);
1796
+ rectElem.attr("y", rectData.height);
1797
+ rectElem.attr("fill", rectData.fill);
1798
+ rectElem.attr("stroke", rectData.stroke);
1799
+ rectElem.attr("width", menuWidth);
1800
+ rectElem.attr("height", rectData.height);
1801
+ rectElem.attr("rx", rectData.rx);
1802
+ rectElem.attr("ry", rectData.ry);
1803
+ if (links != null) {
1804
+ var linkY = 20;
1805
+ for (let key in links) {
1806
+ var linkElem = g.append("a");
1807
+ var sanitizedLink = distExports.sanitizeUrl(links[key]);
1808
+ linkElem.attr("xlink:href", sanitizedLink);
1809
+ linkElem.attr("target", "_blank");
1810
+ _drawMenuItemTextCandidateFunc(textAttrs)(
1811
+ key,
1812
+ linkElem,
1813
+ rectData.x + 10,
1814
+ rectData.height + linkY,
1815
+ menuWidth,
1816
+ 20,
1817
+ { class: "actor" },
1818
+ textAttrs
1819
+ );
1820
+ linkY += 30;
1821
+ }
1822
+ }
1823
+ rectElem.attr("height", linkY);
1824
+ return { height: rectData.height + linkY, width: menuWidth };
1825
+ }, "drawPopup");
1826
+ var popupMenuToggle = /* @__PURE__ */ __name(function(popId) {
1827
+ return "var pu = document.getElementById('" + popId + "'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }";
1828
+ }, "popupMenuToggle");
1829
+ var drawKatex = /* @__PURE__ */ __name(async function(elem, textData, msgModel = null) {
1830
+ let textElem = elem.append("foreignObject");
1831
+ const linesSanitized = await renderKatexSanitized(textData.text, getConfig());
1832
+ const divElem = textElem.append("xhtml:div").attr("style", "width: fit-content;").attr("xmlns", "http://www.w3.org/1999/xhtml").html(linesSanitized);
1833
+ const dim = divElem.node().getBoundingClientRect();
1834
+ textElem.attr("height", Math.round(dim.height)).attr("width", Math.round(dim.width));
1835
+ if (textData.class === "noteText") {
1836
+ const rectElem = elem.node().firstChild;
1837
+ rectElem.setAttribute("height", dim.height + 2 * textData.textMargin);
1838
+ const rectDim = rectElem.getBBox();
1839
+ 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));
1840
+ } else if (msgModel) {
1841
+ let { startx, stopx, starty } = msgModel;
1842
+ if (startx > stopx) {
1843
+ const temp = startx;
1844
+ startx = stopx;
1845
+ stopx = temp;
1846
+ }
1847
+ textElem.attr("x", Math.round(startx + Math.abs(startx - stopx) / 2 - dim.width / 2));
1848
+ if (textData.class === "loopText") {
1849
+ textElem.attr("y", Math.round(starty));
1850
+ } else {
1851
+ textElem.attr("y", Math.round(starty - dim.height));
1852
+ }
1853
+ }
1854
+ return [textElem];
1855
+ }, "drawKatex");
1856
+ var drawText = /* @__PURE__ */ __name(function(elem, textData) {
1857
+ let prevTextHeight = 0;
1858
+ let textHeight = 0;
1859
+ const lines = textData.text.split(common_default.lineBreakRegex);
1860
+ const [_textFontSize, _textFontSizePx] = parseFontSize(textData.fontSize);
1861
+ let textElems = [];
1862
+ let dy = 0;
1863
+ let yfunc = /* @__PURE__ */ __name(() => textData.y, "yfunc");
1864
+ if (textData.valign !== void 0 && textData.textMargin !== void 0 && textData.textMargin > 0) {
1865
+ switch (textData.valign) {
1866
+ case "top":
1867
+ case "start":
1868
+ yfunc = /* @__PURE__ */ __name(() => Math.round(textData.y + textData.textMargin), "yfunc");
1869
+ break;
1870
+ case "middle":
1871
+ case "center":
1872
+ yfunc = /* @__PURE__ */ __name(() => Math.round(textData.y + (prevTextHeight + textHeight + textData.textMargin) / 2), "yfunc");
1873
+ break;
1874
+ case "bottom":
1875
+ case "end":
1876
+ yfunc = /* @__PURE__ */ __name(() => Math.round(
1877
+ textData.y + (prevTextHeight + textHeight + 2 * textData.textMargin) - textData.textMargin
1878
+ ), "yfunc");
1879
+ break;
1880
+ }
1881
+ }
1882
+ if (textData.anchor !== void 0 && textData.textMargin !== void 0 && textData.width !== void 0) {
1883
+ switch (textData.anchor) {
1884
+ case "left":
1885
+ case "start":
1886
+ textData.x = Math.round(textData.x + textData.textMargin);
1887
+ textData.anchor = "start";
1888
+ textData.dominantBaseline = "middle";
1889
+ textData.alignmentBaseline = "middle";
1890
+ break;
1891
+ case "middle":
1892
+ case "center":
1893
+ textData.x = Math.round(textData.x + textData.width / 2);
1894
+ textData.anchor = "middle";
1895
+ textData.dominantBaseline = "middle";
1896
+ textData.alignmentBaseline = "middle";
1897
+ break;
1898
+ case "right":
1899
+ case "end":
1900
+ textData.x = Math.round(textData.x + textData.width - textData.textMargin);
1901
+ textData.anchor = "end";
1902
+ textData.dominantBaseline = "middle";
1903
+ textData.alignmentBaseline = "middle";
1904
+ break;
1905
+ }
1906
+ }
1907
+ for (let [i, line] of lines.entries()) {
1908
+ if (textData.textMargin !== void 0 && textData.textMargin === 0 && _textFontSize !== void 0) {
1909
+ dy = i * _textFontSize;
1910
+ }
1911
+ const textElem = elem.append("text");
1912
+ textElem.attr("x", textData.x);
1913
+ textElem.attr("y", yfunc());
1914
+ if (textData.anchor !== void 0) {
1915
+ textElem.attr("text-anchor", textData.anchor).attr("dominant-baseline", textData.dominantBaseline).attr("alignment-baseline", textData.alignmentBaseline);
1916
+ }
1917
+ if (textData.fontFamily !== void 0) {
1918
+ textElem.style("font-family", textData.fontFamily);
1919
+ }
1920
+ if (_textFontSizePx !== void 0) {
1921
+ textElem.style("font-size", _textFontSizePx);
1922
+ }
1923
+ if (textData.fontWeight !== void 0) {
1924
+ textElem.style("font-weight", textData.fontWeight);
1925
+ }
1926
+ if (textData.fill !== void 0) {
1927
+ textElem.attr("fill", textData.fill);
1928
+ }
1929
+ if (textData.class !== void 0) {
1930
+ textElem.attr("class", textData.class);
1931
+ }
1932
+ if (textData.dy !== void 0) {
1933
+ textElem.attr("dy", textData.dy);
1934
+ } else if (dy !== 0) {
1935
+ textElem.attr("dy", dy);
1936
+ }
1937
+ const text = line || ZERO_WIDTH_SPACE;
1938
+ if (textData.tspan) {
1939
+ const span = textElem.append("tspan");
1940
+ span.attr("x", textData.x);
1941
+ if (textData.fill !== void 0) {
1942
+ span.attr("fill", textData.fill);
1943
+ }
1944
+ span.text(text);
1945
+ } else {
1946
+ textElem.text(text);
1947
+ }
1948
+ if (textData.valign !== void 0 && textData.textMargin !== void 0 && textData.textMargin > 0) {
1949
+ textHeight += (textElem._groups || textElem)[0][0].getBBox().height;
1950
+ prevTextHeight = textHeight;
1951
+ }
1952
+ textElems.push(textElem);
1953
+ }
1954
+ return textElems;
1955
+ }, "drawText");
1956
+ var drawLabel = /* @__PURE__ */ __name(function(elem, txtObject) {
1957
+ function genPoints(x, y, width, height, cut) {
1958
+ return x + "," + y + " " + (x + width) + "," + y + " " + (x + width) + "," + (y + height - cut) + " " + (x + width - cut * 1.2) + "," + (y + height) + " " + x + "," + (y + height);
1959
+ }
1960
+ __name(genPoints, "genPoints");
1961
+ const polygon = elem.append("polygon");
1962
+ polygon.attr("points", genPoints(txtObject.x, txtObject.y, txtObject.width, txtObject.height, 7));
1963
+ polygon.attr("class", "labelBox");
1964
+ txtObject.y = txtObject.y + txtObject.height / 2;
1965
+ drawText(elem, txtObject);
1966
+ return polygon;
1967
+ }, "drawLabel");
1968
+ var actorCnt = -1;
1969
+ var fixLifeLineHeights = /* @__PURE__ */ __name((diagram2, actors, actorKeys, conf2) => {
1970
+ if (!diagram2.select) {
1971
+ return;
1972
+ }
1973
+ actorKeys.forEach((actorKey) => {
1974
+ const actor = actors.get(actorKey);
1975
+ const actorDOM = diagram2.select("#actor" + actor.actorCnt);
1976
+ if (!conf2.mirrorActors && actor.stopy) {
1977
+ actorDOM.attr("y2", actor.stopy + actor.height / 2);
1978
+ } else if (conf2.mirrorActors) {
1979
+ actorDOM.attr("y2", actor.stopy);
1980
+ }
1981
+ });
1982
+ }, "fixLifeLineHeights");
1983
+ var drawActorTypeParticipant = /* @__PURE__ */ __name(function(elem, actor, conf2, isFooter, actorIndexMap) {
1984
+ var _a2, _b;
1985
+ const actorY = isFooter ? actor.stopy : actor.starty;
1986
+ const center = actor.x + actor.width / 2;
1987
+ const centerY = actorY + actor.height;
1988
+ const { look, theme, themeVariables } = conf2;
1989
+ const { bkgColorArray, borderColorArray } = themeVariables;
1990
+ const boxplusLineGroup = elem.append("g").lower();
1991
+ var g = boxplusLineGroup;
1992
+ if (!isFooter) {
1993
+ actorCnt++;
1994
+ if (Object.keys(actor.links || {}).length && !conf2.forceMenus) {
1995
+ g.attr("onclick", popupMenuToggle(`actor${actorCnt}_popup`)).attr("cursor", "pointer");
1996
+ }
1997
+ 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).attr("data-et", "life-line").attr("data-id", actor.name);
1998
+ g = boxplusLineGroup.append("g");
1999
+ actor.actorCnt = actorCnt;
2000
+ if (actor.links != null) {
2001
+ g.attr("id", "root-" + actorCnt);
2002
+ }
2003
+ if (look === "neo") {
2004
+ g.attr("data-look", "neo");
2005
+ }
2006
+ }
2007
+ const rect = getNoteRect();
2008
+ var cssclass = "actor";
2009
+ if ((_a2 = actor.properties) == null ? void 0 : _a2.class) {
2010
+ cssclass = actor.properties.class;
2011
+ } else {
2012
+ rect.fill = "#eaeaea";
2013
+ }
2014
+ if (isFooter) {
2015
+ cssclass += ` ${BOTTOM_ACTOR_CLASS}`;
2016
+ } else {
2017
+ cssclass += ` ${TOP_ACTOR_CLASS}`;
2018
+ }
2019
+ rect.x = actor.x;
2020
+ rect.y = actorY;
2021
+ rect.width = actor.width;
2022
+ rect.height = actor.height;
2023
+ rect.class = cssclass;
2024
+ rect.rx = 3;
2025
+ rect.ry = 3;
2026
+ rect.name = actor.name;
2027
+ if (look === "neo") {
2028
+ rect.rx = 6;
2029
+ rect.ry = 6;
2030
+ }
2031
+ const rectElem = drawRect2(g, rect);
2032
+ const actorCount = actorIndexMap.get(actor.name) ?? 0;
2033
+ if (COLOR_THEMES.has(theme)) {
2034
+ rectElem.style("stroke", borderColorArray[actorCount % borderColorArray.length]);
2035
+ rectElem.style("fill", bkgColorArray[actorCount % borderColorArray.length]);
2036
+ }
2037
+ if (look === "neo") {
2038
+ rectElem.attr("filter", "url(#drop-shadow)");
2039
+ }
2040
+ actor.rectData = rect;
2041
+ if ((_b = actor.properties) == null ? void 0 : _b.icon) {
2042
+ const iconSrc = actor.properties.icon.trim();
2043
+ if (iconSrc.charAt(0) === "@") {
2044
+ drawEmbeddedImage(g, rect.x + rect.width - 20, rect.y + 10, iconSrc.substr(1));
2045
+ } else {
2046
+ drawImage(g, rect.x + rect.width - 20, rect.y + 10, iconSrc);
2047
+ }
2048
+ }
2049
+ if (!isFooter) {
2050
+ g.attr("data-et", "participant");
2051
+ g.attr("data-type", "participant");
2052
+ g.attr("data-id", actor.name);
2053
+ }
2054
+ _drawTextCandidateFunc(conf2, hasKatex(actor.description))(
2055
+ actor.description,
2056
+ g,
2057
+ rect.x,
2058
+ rect.y,
2059
+ rect.width,
2060
+ rect.height,
2061
+ { class: `actor ${ACTOR_BOX_CLASS}` },
2062
+ conf2
2063
+ );
2064
+ let height = actor.height;
2065
+ if (rectElem.node) {
2066
+ const bounds2 = rectElem.node().getBBox();
2067
+ actor.height = bounds2.height;
2068
+ height = bounds2.height;
2069
+ }
2070
+ return height;
2071
+ }, "drawActorTypeParticipant");
2072
+ var drawActorTypeCollections = /* @__PURE__ */ __name(function(elem, actor, conf2, isFooter, actorIndexMap) {
2073
+ var _a2, _b;
2074
+ const actorY = isFooter ? actor.stopy : actor.starty;
2075
+ const center = actor.x + actor.width / 2;
2076
+ const centerY = actorY + actor.height;
2077
+ const { look, theme, themeVariables } = conf2;
2078
+ const { bkgColorArray, borderColorArray } = themeVariables;
2079
+ const boxplusLineGroup = elem.append("g").lower();
2080
+ var g = boxplusLineGroup;
2081
+ if (!isFooter) {
2082
+ actorCnt++;
2083
+ if (Object.keys(actor.links || {}).length && !conf2.forceMenus) {
2084
+ g.attr("onclick", popupMenuToggle(`actor${actorCnt}_popup`)).attr("cursor", "pointer");
2085
+ }
2086
+ 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).attr("data-et", "life-line").attr("data-id", actor.name);
2087
+ g = boxplusLineGroup.append("g");
2088
+ actor.actorCnt = actorCnt;
2089
+ if (actor.links != null) {
2090
+ g.attr("id", "root-" + actorCnt);
2091
+ }
2092
+ if (look === "neo") {
2093
+ g.attr("data-look", "neo");
2094
+ }
2095
+ }
2096
+ const rect = getNoteRect();
2097
+ var cssclass = "actor";
2098
+ if ((_a2 = actor.properties) == null ? void 0 : _a2.class) {
2099
+ cssclass = actor.properties.class;
2100
+ } else {
2101
+ rect.fill = "#eaeaea";
2102
+ }
2103
+ if (isFooter) {
2104
+ cssclass += ` ${BOTTOM_ACTOR_CLASS}`;
2105
+ } else {
2106
+ cssclass += ` ${TOP_ACTOR_CLASS}`;
2107
+ }
2108
+ rect.x = actor.x;
2109
+ rect.y = actorY;
2110
+ rect.width = actor.width;
2111
+ rect.height = actor.height;
2112
+ rect.class = cssclass;
2113
+ rect.name = actor.name;
2114
+ const offset = 6;
2115
+ const shadowRect = {
2116
+ ...rect,
2117
+ x: rect.x + (isFooter ? -6 : -6),
2118
+ y: rect.y + (isFooter ? 6 : 6),
2119
+ class: "actor"
2120
+ };
2121
+ const rectElem = drawRect2(g, rect);
2122
+ const stackedRect = drawRect2(g, shadowRect);
2123
+ actor.rectData = rect;
2124
+ if (look === "neo") {
2125
+ g.attr("filter", "url(#drop-shadow)");
2126
+ }
2127
+ const actorCount = actorIndexMap.get(actor.name) ?? 0;
2128
+ if (COLOR_THEMES.has(theme)) {
2129
+ rectElem.style("stroke", borderColorArray[actorCount % borderColorArray.length]);
2130
+ rectElem.style("fill", bkgColorArray[actorCount % borderColorArray.length]);
2131
+ stackedRect.style("stroke", borderColorArray[actorCount % borderColorArray.length]);
2132
+ stackedRect.style("fill", bkgColorArray[actorCount % borderColorArray.length]);
2133
+ }
2134
+ if ((_b = actor.properties) == null ? void 0 : _b.icon) {
2135
+ const iconSrc = actor.properties.icon.trim();
2136
+ if (iconSrc.charAt(0) === "@") {
2137
+ drawEmbeddedImage(g, rect.x + rect.width - 20, rect.y + 10, iconSrc.substr(1));
2138
+ } else {
2139
+ drawImage(g, rect.x + rect.width - 20, rect.y + 10, iconSrc);
2140
+ }
2141
+ }
2142
+ _drawTextCandidateFunc(conf2, hasKatex(actor.description))(
2143
+ actor.description,
2144
+ g,
2145
+ rect.x - offset,
2146
+ rect.y + offset,
2147
+ rect.width,
2148
+ rect.height,
2149
+ { class: `actor ${ACTOR_BOX_CLASS}` },
2150
+ conf2
2151
+ );
2152
+ let height = actor.height;
2153
+ if (rectElem.node) {
2154
+ const bounds2 = rectElem.node().getBBox();
2155
+ actor.height = bounds2.height;
2156
+ height = bounds2.height;
2157
+ }
2158
+ if (!isFooter) {
2159
+ g.attr("data-et", "participant");
2160
+ g.attr("data-type", "collections");
2161
+ g.attr("data-id", actor.name);
2162
+ }
2163
+ return height;
2164
+ }, "drawActorTypeCollections");
2165
+ var drawActorTypeQueue = /* @__PURE__ */ __name(function(elem, actor, conf2, isFooter, actorIndexMap) {
2166
+ var _a2, _b;
2167
+ const actorY = isFooter ? actor.stopy : actor.starty;
2168
+ const center = actor.x + actor.width / 2;
2169
+ const centerY = actorY + actor.height;
2170
+ const { look, theme, themeVariables } = conf2;
2171
+ const { bkgColorArray, borderColorArray } = themeVariables;
2172
+ const boxplusLineGroup = elem.append("g").lower();
2173
+ let g = boxplusLineGroup;
2174
+ if (!isFooter) {
2175
+ actorCnt++;
2176
+ if (Object.keys(actor.links || {}).length && !conf2.forceMenus) {
2177
+ g.attr("onclick", popupMenuToggle(`actor${actorCnt}_popup`)).attr("cursor", "pointer");
2178
+ }
2179
+ 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).attr("data-et", "life-line").attr("data-id", actor.name);
2180
+ g = boxplusLineGroup.append("g");
2181
+ actor.actorCnt = actorCnt;
2182
+ if (actor.links != null) {
2183
+ g.attr("id", "root-" + actorCnt);
2184
+ }
2185
+ if (look === "neo") {
2186
+ g.attr("data-look", "neo");
2187
+ }
2188
+ }
2189
+ const rect = getNoteRect();
2190
+ let cssclass = "actor";
2191
+ if ((_a2 = actor.properties) == null ? void 0 : _a2.class) {
2192
+ cssclass = actor.properties.class;
2193
+ } else {
2194
+ rect.fill = "#eaeaea";
2195
+ }
2196
+ if (isFooter) {
2197
+ cssclass += ` ${BOTTOM_ACTOR_CLASS}`;
2198
+ } else {
2199
+ cssclass += ` ${TOP_ACTOR_CLASS}`;
2200
+ }
2201
+ g.attr("class", cssclass);
2202
+ rect.x = actor.x;
2203
+ rect.y = actorY;
2204
+ rect.width = actor.width;
2205
+ rect.height = actor.height;
2206
+ rect.name = actor.name;
2207
+ const ry = rect.height / 2;
2208
+ const rx = ry / (2.5 + rect.height / 50);
2209
+ const cylinderGroup = g.append("g");
2210
+ const cylinderArc = g.append("g");
2211
+ const cylinderPath = `M ${rect.x},${rect.y + ry}
2212
+ a ${rx},${ry} 0 0 0 0,${rect.height}
2213
+ h ${rect.width - 2 * rx}
2214
+ a ${rx},${ry} 0 0 0 0,-${rect.height}
2215
+ Z
2216
+ `;
2217
+ cylinderGroup.append("path").attr("d", cylinderPath);
2218
+ cylinderArc.append("path").attr(
2219
+ "d",
2220
+ `M ${rect.x},${rect.y + ry}
2221
+ a ${rx},${ry} 0 0 0 0,${rect.height}`
2222
+ );
2223
+ cylinderGroup.attr("transform", `translate(${rx}, ${-(rect.height / 2)})`);
2224
+ cylinderArc.attr("transform", `translate(${rect.width - rx}, ${-rect.height / 2})`);
2225
+ actor.rectData = rect;
2226
+ if (look === "neo") {
2227
+ cylinderGroup.attr("filter", "url(#drop-shadow)");
2228
+ }
2229
+ const actorCount = actorIndexMap.get(actor.name) ?? 0;
2230
+ if (COLOR_THEMES.has(theme)) {
2231
+ cylinderGroup.style("stroke", borderColorArray[actorCount % borderColorArray.length]);
2232
+ cylinderGroup.style("fill", bkgColorArray[actorCount % borderColorArray.length]);
2233
+ cylinderArc.style("stroke", borderColorArray[actorCount % borderColorArray.length]);
2234
+ cylinderArc.style("fill", bkgColorArray[actorCount % borderColorArray.length]);
2235
+ }
2236
+ if ((_b = actor.properties) == null ? void 0 : _b.icon) {
2237
+ const iconSrc = actor.properties.icon.trim();
2238
+ const iconX = rect.x + rect.width - 20;
2239
+ const iconY = rect.y + 10;
2240
+ if (iconSrc.charAt(0) === "@") {
2241
+ drawEmbeddedImage(g, iconX, iconY, iconSrc.substr(1));
2242
+ } else {
2243
+ drawImage(g, iconX, iconY, iconSrc);
2244
+ }
2245
+ }
2246
+ _drawTextCandidateFunc(conf2, hasKatex(actor.description))(
2247
+ actor.description,
2248
+ g,
2249
+ rect.x,
2250
+ rect.y,
2251
+ rect.width,
2252
+ rect.height,
2253
+ { class: `actor ${ACTOR_BOX_CLASS}` },
2254
+ conf2
2255
+ );
2256
+ let height = actor.height;
2257
+ const lastPath = cylinderGroup.select("path:last-child");
2258
+ if (lastPath.node()) {
2259
+ const bounds2 = lastPath.node().getBBox();
2260
+ actor.height = bounds2.height;
2261
+ height = bounds2.height;
2262
+ }
2263
+ if (!isFooter) {
2264
+ g.attr("data-et", "participant");
2265
+ g.attr("data-type", "queue");
2266
+ g.attr("data-id", actor.name);
2267
+ }
2268
+ return height;
2269
+ }, "drawActorTypeQueue");
2270
+ var drawActorTypeControl = /* @__PURE__ */ __name(function(elem, actor, conf2, isFooter, diagramId, actorIndexMap) {
2271
+ var _a2;
2272
+ const actorY = isFooter ? actor.stopy : actor.starty;
2273
+ const center = actor.x + actor.width / 2;
2274
+ const centerY = actorY + 75;
2275
+ const { look, theme, themeVariables } = conf2;
2276
+ const { bkgColorArray, borderColorArray, actorBorder, actorBkg } = themeVariables;
2277
+ const line = elem.append("g").lower();
2278
+ if (!isFooter) {
2279
+ actorCnt++;
2280
+ 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).attr("data-et", "life-line").attr("data-id", actor.name);
2281
+ actor.actorCnt = actorCnt;
2282
+ }
2283
+ const actElem = elem.append("g");
2284
+ let cssClass = ACTOR_MAN_FIGURE_CLASS;
2285
+ if (isFooter) {
2286
+ cssClass += ` ${BOTTOM_ACTOR_CLASS}`;
2287
+ } else {
2288
+ cssClass += ` ${TOP_ACTOR_CLASS}`;
2289
+ }
2290
+ actElem.attr("class", cssClass);
2291
+ actElem.attr("name", actor.name);
2292
+ const rect = getNoteRect();
2293
+ rect.x = actor.x;
2294
+ rect.y = actorY;
2295
+ rect.fill = "#eaeaea";
2296
+ rect.width = actor.width;
2297
+ rect.height = actor.height;
2298
+ rect.class = "actor";
2299
+ const cx = actor.x + actor.width / 2;
2300
+ const cy = actorY + 32;
2301
+ const r = 22;
2302
+ actElem.append("defs").append("marker").attr("id", diagramId + "-filled-head-control").attr("refX", 11).attr("refY", 5.8).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "172.5").attr("stroke-width", 1.2).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");
2303
+ actElem.append("circle").attr("cx", cx).attr("cy", cy).attr("r", r).attr("filter", `${look === "neo" ? "url(#drop-shadow)" : ""}`);
2304
+ actElem.append("line").attr("marker-end", "url(#" + diagramId + "-filled-head-control)").attr("transform", `translate(${cx}, ${cy - r})`);
2305
+ const actorCount = actorIndexMap.get(actor.name) ?? 0;
2306
+ if (COLOR_THEMES.has(theme)) {
2307
+ actElem.style("stroke", borderColorArray[actorCount % borderColorArray.length]);
2308
+ actElem.style("fill", bkgColorArray[actorCount % borderColorArray.length]);
2309
+ } else {
2310
+ actElem.style("stroke", actorBorder);
2311
+ actElem.style("fill", actorBkg);
2312
+ }
2313
+ const bounds2 = actElem.node().getBBox();
2314
+ actor.height = bounds2.height + 2 * (((_a2 = conf2 == null ? void 0 : conf2.sequence) == null ? void 0 : _a2.labelBoxHeight) ?? 0);
2315
+ _drawTextCandidateFunc(conf2, hasKatex(actor.description))(
2316
+ actor.description,
2317
+ actElem,
2318
+ rect.x,
2319
+ rect.y + r + (!isFooter ? 12 : 5),
2320
+ rect.width,
2321
+ rect.height,
2322
+ { class: `actor ${ACTOR_MAN_FIGURE_CLASS}` },
2323
+ conf2
2324
+ );
2325
+ if (!isFooter) {
2326
+ actElem.attr("data-et", "participant");
2327
+ actElem.attr("data-type", "control");
2328
+ actElem.attr("data-id", actor.name);
2329
+ }
2330
+ return actor.height;
2331
+ }, "drawActorTypeControl");
2332
+ var drawActorTypeEntity = /* @__PURE__ */ __name(function(elem, actor, conf2, isFooter, actorIndexMap) {
2333
+ var _a2;
2334
+ const actorY = isFooter ? actor.stopy : actor.starty;
2335
+ const center = actor.x + actor.width / 2;
2336
+ const centerY = actorY + 75;
2337
+ const { look, theme, themeVariables } = conf2;
2338
+ const { bkgColorArray, borderColorArray } = themeVariables;
2339
+ const line = elem.append("g").lower();
2340
+ const actElem = elem.append("g");
2341
+ let cssClass = "actor";
2342
+ if (isFooter) {
2343
+ cssClass += ` ${BOTTOM_ACTOR_CLASS}`;
2344
+ } else {
2345
+ cssClass += ` ${TOP_ACTOR_CLASS}`;
2346
+ }
2347
+ actElem.attr("class", cssClass);
2348
+ actElem.attr("name", actor.name);
2349
+ const rect = getNoteRect();
2350
+ rect.x = actor.x;
2351
+ rect.y = actorY;
2352
+ rect.fill = "#eaeaea";
2353
+ rect.width = actor.width;
2354
+ rect.height = actor.height;
2355
+ rect.class = "actor";
2356
+ const cx = actor.x + actor.width / 2;
2357
+ const cy = actorY + (!isFooter ? 25 : 10);
2358
+ const r = 22;
2359
+ actElem.append("circle").attr("cx", cx).attr("cy", cy).attr("r", r).attr("width", actor.width).attr("height", actor.height);
2360
+ actElem.append("line").attr("x1", cx - r).attr("x2", cx + r).attr("y1", cy + r).attr("y2", cy + r).attr("stroke-width", 2);
2361
+ if (look === "neo") {
2362
+ actElem.attr("filter", "url(#drop-shadow)");
2363
+ }
2364
+ const actorCount = actorIndexMap.get(actor.name) ?? 0;
2365
+ if (COLOR_THEMES.has(theme)) {
2366
+ actElem.style("stroke", borderColorArray[actorCount % borderColorArray.length]);
2367
+ actElem.style("fill", bkgColorArray[actorCount % borderColorArray.length]);
2368
+ }
2369
+ const bounds2 = actElem.node().getBBox();
2370
+ actor.height = bounds2.height + (((_a2 = conf2 == null ? void 0 : conf2.sequence) == null ? void 0 : _a2.labelBoxHeight) ?? 0);
2371
+ if (!isFooter) {
2372
+ actorCnt++;
2373
+ 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).attr("data-et", "life-line").attr("data-id", actor.name);
2374
+ actor.actorCnt = actorCnt;
2375
+ }
2376
+ _drawTextCandidateFunc(conf2, hasKatex(actor.description))(
2377
+ actor.description,
2378
+ actElem,
2379
+ rect.x,
2380
+ rect.y + (!isFooter ? 30 : 15),
2381
+ rect.width,
2382
+ rect.height,
2383
+ { class: `actor ${ACTOR_MAN_FIGURE_CLASS}` },
2384
+ conf2
2385
+ );
2386
+ if (!isFooter) {
2387
+ actElem.attr("transform", `translate(${0}, ${r / 2 - 5})`);
2388
+ actElem.attr("data-et", "participant");
2389
+ actElem.attr("data-type", "entity");
2390
+ actElem.attr("data-id", actor.name);
2391
+ } else {
2392
+ actElem.attr("transform", `translate(${0}, ${r})`);
2393
+ }
2394
+ return actor.height;
2395
+ }, "drawActorTypeEntity");
2396
+ var drawActorTypeDatabase = /* @__PURE__ */ __name(function(elem, actor, conf2, isFooter, actorIndexMap) {
2397
+ var _a2;
2398
+ const actorY = isFooter ? actor.stopy : actor.starty;
2399
+ const center = actor.x + actor.width / 2;
2400
+ const centerY = actorY + actor.height + 2 * conf2.boxTextMargin;
2401
+ const { theme, themeVariables, look } = conf2;
2402
+ const { bkgColorArray, borderColorArray, actorBorder } = themeVariables;
2403
+ const boxplusLineGroup = elem.append("g").lower();
2404
+ let g = boxplusLineGroup;
2405
+ if (!isFooter) {
2406
+ actorCnt++;
2407
+ if (Object.keys(actor.links || {}).length && !conf2.forceMenus) {
2408
+ g.attr("onclick", popupMenuToggle(`actor${actorCnt}_popup`)).attr("cursor", "pointer");
2409
+ }
2410
+ 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).attr("data-et", "life-line").attr("data-id", actor.name);
2411
+ g = boxplusLineGroup.append("g");
2412
+ actor.actorCnt = actorCnt;
2413
+ if (actor.links != null) {
2414
+ g.attr("id", "root-" + actorCnt);
2415
+ }
2416
+ if (look === "neo") {
2417
+ g.attr("data-look", "neo");
2418
+ }
2419
+ }
2420
+ const rect = getNoteRect();
2421
+ let cssclass = "actor";
2422
+ if ((_a2 = actor.properties) == null ? void 0 : _a2.class) {
2423
+ cssclass = actor.properties.class;
2424
+ } else {
2425
+ rect.fill = "#eaeaea";
2426
+ }
2427
+ if (isFooter) {
2428
+ cssclass += ` ${BOTTOM_ACTOR_CLASS}`;
2429
+ } else {
2430
+ cssclass += ` ${TOP_ACTOR_CLASS}`;
2431
+ }
2432
+ rect.x = actor.x;
2433
+ rect.y = actorY;
2434
+ rect.width = actor.width;
2435
+ rect.height = actor.height;
2436
+ rect.class = cssclass;
2437
+ rect.name = actor.name;
2438
+ rect.x = actor.x;
2439
+ rect.y = actorY;
2440
+ const w = rect.width / 3;
2441
+ const h = rect.width / 3;
2442
+ const rx = w / 2;
2443
+ const ry = rx / (2.5 + w / 50);
2444
+ const cylinderGroup = g.append("g");
2445
+ cylinderGroup.attr("class", cssclass);
2446
+ const d = `
2447
+ M ${rect.x},${rect.y + ry}
2448
+ a ${rx},${ry} 0 0 0 ${w},0
2449
+ a ${rx},${ry} 0 0 0 -${w},0
2450
+ l 0,${h - 2 * ry}
2451
+ a ${rx},${ry} 0 0 0 ${w},0
2452
+ l 0,-${h - 2 * ry}
2453
+ `;
2454
+ cylinderGroup.append("path").attr("d", d);
2455
+ if (look === "neo") {
2456
+ cylinderGroup.attr("filter", "url(#drop-shadow)");
2457
+ }
2458
+ const actorCount = actorIndexMap.get(actor.name) ?? 0;
2459
+ if (COLOR_THEMES.has(theme)) {
2460
+ cylinderGroup.style("stroke", borderColorArray[actorCount % borderColorArray.length]);
2461
+ cylinderGroup.style("fill", bkgColorArray[actorCount % borderColorArray.length]);
2462
+ } else {
2463
+ cylinderGroup.style("stroke", actorBorder);
2464
+ }
2465
+ cylinderGroup.attr("transform", `translate(${w}, ${ry})`);
2466
+ actor.rectData = rect;
2467
+ _drawTextCandidateFunc(conf2, hasKatex(actor.description))(
2468
+ actor.description,
2469
+ g,
2470
+ rect.x,
2471
+ rect.y + 35,
2472
+ rect.width,
2473
+ rect.height,
2474
+ { class: `actor ${ACTOR_BOX_CLASS}` },
2475
+ conf2
2476
+ );
2477
+ const lastPath = cylinderGroup.select("path:last-child");
2478
+ if (lastPath.node()) {
2479
+ const bounds2 = lastPath.node().getBBox();
2480
+ actor.height = bounds2.height + (conf2.sequence.labelBoxHeight ?? 0);
2481
+ }
2482
+ if (!isFooter) {
2483
+ g.attr("data-et", "participant");
2484
+ g.attr("data-type", "database");
2485
+ g.attr("data-id", actor.name);
2486
+ }
2487
+ return actor.height;
2488
+ }, "drawActorTypeDatabase");
2489
+ var drawActorTypeBoundary = /* @__PURE__ */ __name(function(elem, actor, conf2, isFooter, actorIndexMap) {
2490
+ const actorY = isFooter ? actor.stopy : actor.starty;
2491
+ const center = actor.x + actor.width / 2;
2492
+ const centerY = actorY + 80;
2493
+ const radius = 22;
2494
+ const line = elem.append("g").lower();
2495
+ const { look, theme, themeVariables } = conf2;
2496
+ const { bkgColorArray, borderColorArray, actorBorder } = themeVariables;
2497
+ if (!isFooter) {
2498
+ actorCnt++;
2499
+ 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).attr("data-et", "life-line").attr("data-id", actor.name);
2500
+ actor.actorCnt = actorCnt;
2501
+ }
2502
+ const actElem = elem.append("g");
2503
+ let cssClass = ACTOR_MAN_FIGURE_CLASS;
2504
+ if (isFooter) {
2505
+ cssClass += ` ${BOTTOM_ACTOR_CLASS}`;
2506
+ } else {
2507
+ cssClass += ` ${TOP_ACTOR_CLASS}`;
2508
+ }
2509
+ actElem.attr("class", cssClass);
2510
+ actElem.attr("name", actor.name);
2511
+ const rect = getNoteRect();
2512
+ rect.x = actor.x;
2513
+ rect.y = actorY;
2514
+ rect.fill = "#eaeaea";
2515
+ rect.width = actor.width;
2516
+ rect.height = actor.height;
2517
+ rect.class = "actor";
2518
+ actElem.append("line").attr("id", "actor-man-torso" + actorCnt).attr("x1", actor.x + actor.width / 2 - radius * 2.5).attr("y1", actorY + 12).attr("x2", actor.x + actor.width / 2 - 15).attr("y2", actorY + 12);
2519
+ actElem.append("line").attr("id", "actor-man-arms" + actorCnt).attr("x1", actor.x + actor.width / 2 - radius * 2.5).attr("y1", actorY + 2).attr("x2", actor.x + actor.width / 2 - radius * 2.5).attr("y2", actorY + 22);
2520
+ actElem.append("circle").attr("cx", actor.x + actor.width / 2).attr("cy", actorY + 12).attr("r", radius);
2521
+ if (look === "neo") {
2522
+ actElem.attr("filter", "url(#drop-shadow)");
2523
+ }
2524
+ const actorCount = actorIndexMap.get(actor.name) ?? 0;
2525
+ if (COLOR_THEMES.has(theme)) {
2526
+ actElem.style("stroke", borderColorArray[actorCount % borderColorArray.length]);
2527
+ actElem.style("fill", bkgColorArray[actorCount % borderColorArray.length]);
2528
+ } else {
2529
+ actElem.style("stroke", actorBorder);
2530
+ }
2531
+ const bounds2 = actElem.node().getBBox();
2532
+ actor.height = bounds2.height + (conf2.sequence.labelBoxHeight ?? 0);
2533
+ _drawTextCandidateFunc(conf2, hasKatex(actor.description))(
2534
+ actor.description,
2535
+ actElem,
2536
+ rect.x,
2537
+ rect.y + 15,
2538
+ rect.width,
2539
+ rect.height,
2540
+ { class: `actor ${ACTOR_MAN_FIGURE_CLASS}` },
2541
+ conf2
2542
+ );
2543
+ actElem.attr("transform", `translate(0,${radius / 2 + 10})`);
2544
+ if (!isFooter) {
2545
+ actElem.attr("data-et", "participant");
2546
+ actElem.attr("data-type", "boundary");
2547
+ actElem.attr("data-id", actor.name);
2548
+ }
2549
+ return actor.height;
2550
+ }, "drawActorTypeBoundary");
2551
+ var drawActorTypeActor = /* @__PURE__ */ __name(function(elem, actor, conf2, isFooter, actorIndexMap) {
2552
+ const actorY = isFooter ? actor.stopy : actor.starty;
2553
+ const center = actor.x + actor.width / 2;
2554
+ const centerY = actorY + 80;
2555
+ const { look, theme, themeVariables } = conf2;
2556
+ const { bkgColorArray, borderColorArray, actorBorder } = themeVariables;
2557
+ const line = elem.append("g").lower();
2558
+ if (!isFooter) {
2559
+ actorCnt++;
2560
+ 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).attr("data-et", "life-line").attr("data-id", actor.name);
2561
+ actor.actorCnt = actorCnt;
2562
+ }
2563
+ const actElem = elem.append("g");
2564
+ let cssClass = ACTOR_MAN_FIGURE_CLASS;
2565
+ if (isFooter) {
2566
+ cssClass += ` ${BOTTOM_ACTOR_CLASS}`;
2567
+ } else {
2568
+ cssClass += ` ${TOP_ACTOR_CLASS}`;
2569
+ }
2570
+ actElem.attr("class", cssClass);
2571
+ actElem.attr("name", actor.name);
2572
+ if (!isFooter) {
2573
+ actElem.attr("data-et", "participant").attr("data-type", "actor").attr("data-id", actor.name);
2574
+ }
2575
+ const scale = look === "neo" ? 0.5 : 1;
2576
+ const adjustedActorY = look === "neo" ? actorY + (1 - scale) * 30 : actorY;
2577
+ actElem.append("line").attr("id", "actor-man-torso" + actorCnt).attr("x1", center).attr("y1", adjustedActorY + 25 * scale).attr("x2", center).attr("y2", adjustedActorY + 45 * scale);
2578
+ actElem.append("line").attr("id", "actor-man-arms" + actorCnt).attr("x1", center - ACTOR_TYPE_WIDTH / 2 * scale).attr("y1", adjustedActorY + 33 * scale).attr("x2", center + ACTOR_TYPE_WIDTH / 2 * scale).attr("y2", adjustedActorY + 33 * scale);
2579
+ actElem.append("line").attr("x1", center - ACTOR_TYPE_WIDTH / 2 * scale).attr("y1", adjustedActorY + 60 * scale).attr("x2", center).attr("y2", adjustedActorY + 45 * scale);
2580
+ actElem.append("line").attr("x1", center).attr("y1", adjustedActorY + 45 * scale).attr("x2", center + (ACTOR_TYPE_WIDTH / 2 - 2) * scale).attr("y2", adjustedActorY + 60 * scale);
2581
+ const circle = actElem.append("circle");
2582
+ circle.attr("cx", actor.x + actor.width / 2);
2583
+ circle.attr("cy", adjustedActorY + 10 * scale);
2584
+ circle.attr("r", 15 * scale);
2585
+ circle.attr("width", actor.width * scale);
2586
+ circle.attr("height", actor.height * scale);
2587
+ const bounds2 = actElem.node().getBBox();
2588
+ actor.height = bounds2.height;
2589
+ const rect = getNoteRect();
2590
+ rect.x = actor.x;
2591
+ rect.y = adjustedActorY;
2592
+ rect.fill = "#eaeaea";
2593
+ rect.width = actor.width;
2594
+ rect.height = actor.height / scale;
2595
+ rect.class = "actor";
2596
+ rect.rx = 3;
2597
+ rect.ry = 3;
2598
+ const actorCount = actorIndexMap.get(actor.name) ?? 0;
2599
+ if (COLOR_THEMES.has(theme)) {
2600
+ actElem.style("stroke", borderColorArray[actorCount % borderColorArray.length]);
2601
+ actElem.style("fill", bkgColorArray[actorCount % borderColorArray.length]);
2602
+ } else {
2603
+ actElem.style("stroke", actorBorder);
2604
+ }
2605
+ _drawTextCandidateFunc(conf2, hasKatex(actor.description))(
2606
+ actor.description,
2607
+ actElem,
2608
+ rect.x,
2609
+ adjustedActorY + 35 * scale - (look === "neo" ? 10 : 0),
2610
+ rect.width,
2611
+ rect.height,
2612
+ { class: `actor ${ACTOR_MAN_FIGURE_CLASS}` },
2613
+ conf2
2614
+ );
2615
+ return actor.height;
2616
+ }, "drawActorTypeActor");
2617
+ var drawActor = /* @__PURE__ */ __name(async function(elem, actor, conf2, isFooter, diagramId, diagObj, actorIndexMap) {
2618
+ const resolvedActorIndexMap = actorIndexMap ?? new Map(
2619
+ [...diagObj.db.getActors().values()].map((participant, index) => [participant.name, index])
2620
+ );
2621
+ switch (actor.type) {
2622
+ case "actor":
2623
+ return await drawActorTypeActor(elem, actor, conf2, isFooter, resolvedActorIndexMap);
2624
+ case "participant":
2625
+ return await drawActorTypeParticipant(elem, actor, conf2, isFooter, resolvedActorIndexMap);
2626
+ case "boundary":
2627
+ return await drawActorTypeBoundary(elem, actor, conf2, isFooter, resolvedActorIndexMap);
2628
+ case "control":
2629
+ return await drawActorTypeControl(
2630
+ elem,
2631
+ actor,
2632
+ conf2,
2633
+ isFooter,
2634
+ diagramId,
2635
+ resolvedActorIndexMap
2636
+ );
2637
+ case "entity":
2638
+ return await drawActorTypeEntity(elem, actor, conf2, isFooter, resolvedActorIndexMap);
2639
+ case "database":
2640
+ return await drawActorTypeDatabase(elem, actor, conf2, isFooter, resolvedActorIndexMap);
2641
+ case "collections":
2642
+ return await drawActorTypeCollections(elem, actor, conf2, isFooter, resolvedActorIndexMap);
2643
+ case "queue":
2644
+ return await drawActorTypeQueue(elem, actor, conf2, isFooter, resolvedActorIndexMap);
2645
+ }
2646
+ }, "drawActor");
2647
+ var drawBox = /* @__PURE__ */ __name(function(elem, box, conf2) {
2648
+ const boxplusTextGroup = elem.append("g");
2649
+ const g = boxplusTextGroup;
2650
+ drawBackgroundRect2(g, box);
2651
+ if (box.name) {
2652
+ _drawTextCandidateFunc(conf2)(
2653
+ box.name,
2654
+ g,
2655
+ box.x,
2656
+ box.y + conf2.boxTextMargin + (box.textMaxHeight || 0) / 2,
2657
+ box.width,
2658
+ 0,
2659
+ { class: "text" },
2660
+ conf2
2661
+ );
2662
+ }
2663
+ g.lower();
2664
+ }, "drawBox");
2665
+ var anchorElement = /* @__PURE__ */ __name(function(elem) {
2666
+ return elem.append("g");
2667
+ }, "anchorElement");
2668
+ var drawActivation = /* @__PURE__ */ __name(function(_elem, bounds2, verticalPos, conf2, actorActivations2, diagObj, actorIndexMap) {
2669
+ const { theme, themeVariables } = conf2;
2670
+ const { bkgColorArray, borderColorArray, mainBkg } = themeVariables;
2671
+ const rect = getNoteRect();
2672
+ const g = bounds2.anchored;
2673
+ const actor = bounds2.actor;
2674
+ rect.x = bounds2.startx;
2675
+ rect.y = bounds2.starty;
2676
+ rect.class = "activation" + actorActivations2 % 3;
2677
+ rect.width = bounds2.stopx - bounds2.startx;
2678
+ rect.height = verticalPos - bounds2.starty;
2679
+ const rectElem = drawRect2(g, rect);
2680
+ const resolvedActorIndexMap = actorIndexMap ?? new Map(
2681
+ [...diagObj.db.getActors().values()].map((participant, index) => [participant.name, index])
2682
+ );
2683
+ const actorCount = resolvedActorIndexMap.get(actor) ?? 0;
2684
+ if (COLOR_THEMES.has(theme)) {
2685
+ rectElem.style("stroke", borderColorArray[actorCount % borderColorArray.length]);
2686
+ rectElem.style("fill", bkgColorArray[actorCount % borderColorArray.length] ?? mainBkg);
2687
+ }
2688
+ }, "drawActivation");
2689
+ var drawLoop = /* @__PURE__ */ __name(async function(elem, loopModel, labelText, conf2, msg) {
2690
+ const {
2691
+ boxMargin,
2692
+ boxTextMargin,
2693
+ labelBoxHeight,
2694
+ labelBoxWidth,
2695
+ messageFontFamily: fontFamily,
2696
+ messageFontSize: fontSize,
2697
+ messageFontWeight: fontWeight
2698
+ } = conf2;
2699
+ const g = elem.append("g").attr("data-et", "control-structure").attr("data-id", "i" + msg.id);
2700
+ const drawLoopLine = /* @__PURE__ */ __name(function(startx, starty, stopx, stopy) {
2701
+ return g.append("line").attr("x1", startx).attr("y1", starty).attr("x2", stopx).attr("y2", stopy).attr("class", "loopLine");
2702
+ }, "drawLoopLine");
2703
+ drawLoopLine(loopModel.startx, loopModel.starty, loopModel.stopx, loopModel.starty);
2704
+ drawLoopLine(loopModel.stopx, loopModel.starty, loopModel.stopx, loopModel.stopy);
2705
+ drawLoopLine(loopModel.startx, loopModel.stopy, loopModel.stopx, loopModel.stopy);
2706
+ drawLoopLine(loopModel.startx, loopModel.starty, loopModel.startx, loopModel.stopy);
2707
+ if (loopModel.sections !== void 0) {
2708
+ loopModel.sections.forEach(function(item) {
2709
+ drawLoopLine(loopModel.startx, item.y, loopModel.stopx, item.y).style(
2710
+ "stroke-dasharray",
2711
+ "3, 3"
2712
+ );
2713
+ });
2714
+ }
2715
+ let txt = getTextObj();
2716
+ txt.text = labelText;
2717
+ txt.x = loopModel.startx;
2718
+ txt.y = loopModel.starty;
2719
+ txt.fontFamily = fontFamily;
2720
+ txt.fontSize = fontSize;
2721
+ txt.fontWeight = fontWeight;
2722
+ txt.anchor = "middle";
2723
+ txt.valign = "middle";
2724
+ txt.tspan = false;
2725
+ txt.width = Math.max(labelBoxWidth ?? 0, 50);
2726
+ txt.height = labelBoxHeight + (conf2.look === "neo" ? 15 : 0) || 20;
2727
+ txt.textMargin = boxTextMargin;
2728
+ txt.class = "labelText";
2729
+ drawLabel(g, txt);
2730
+ txt = getTextObj2();
2731
+ txt.text = loopModel.title;
2732
+ txt.x = loopModel.startx + labelBoxWidth / 2 + (loopModel.stopx - loopModel.startx) / 2;
2733
+ txt.y = loopModel.starty + boxMargin + boxTextMargin;
2734
+ txt.anchor = "middle";
2735
+ txt.valign = "middle";
2736
+ txt.textMargin = boxTextMargin;
2737
+ txt.class = "loopText";
2738
+ txt.fontFamily = fontFamily;
2739
+ txt.fontSize = fontSize;
2740
+ txt.fontWeight = fontWeight;
2741
+ txt.wrap = true;
2742
+ let textElem = hasKatex(txt.text) ? await drawKatex(g, txt, loopModel) : drawText(g, txt);
2743
+ if (loopModel.sectionTitles !== void 0) {
2744
+ for (const [idx, item] of Object.entries(loopModel.sectionTitles)) {
2745
+ if (item.message) {
2746
+ txt.text = item.message;
2747
+ txt.x = loopModel.startx + (loopModel.stopx - loopModel.startx) / 2;
2748
+ txt.y = loopModel.sections[idx].y + boxMargin + boxTextMargin;
2749
+ txt.class = "sectionTitle";
2750
+ txt.anchor = "middle";
2751
+ txt.valign = "middle";
2752
+ txt.tspan = false;
2753
+ txt.fontFamily = fontFamily;
2754
+ txt.fontSize = fontSize;
2755
+ txt.fontWeight = fontWeight;
2756
+ txt.wrap = loopModel.wrap;
2757
+ if (hasKatex(txt.text)) {
2758
+ loopModel.starty = loopModel.sections[idx].y;
2759
+ await drawKatex(g, txt, loopModel);
2760
+ } else {
2761
+ drawText(g, txt);
2762
+ }
2763
+ let sectionHeight = Math.round(
2764
+ textElem.map((te) => (te._groups || te)[0][0].getBBox().height).reduce((acc, curr) => acc + curr)
2765
+ );
2766
+ loopModel.sections[idx].height += sectionHeight - (boxMargin + boxTextMargin);
2767
+ }
2768
+ }
2769
+ }
2770
+ loopModel.height = Math.round(loopModel.stopy - loopModel.starty);
2771
+ return g;
2772
+ }, "drawLoop");
2773
+ var drawBackgroundRect2 = /* @__PURE__ */ __name(function(elem, bounds2) {
2774
+ drawBackgroundRect(elem, bounds2);
2775
+ }, "drawBackgroundRect");
2776
+ var insertDatabaseIcon = /* @__PURE__ */ __name(function(elem, id) {
2777
+ elem.append("defs").append("symbol").attr("id", id + "-database").attr("fill-rule", "evenodd").attr("clip-rule", "evenodd").append("path").attr("transform", "scale(.5)").attr(
2778
+ "d",
2779
+ "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"
2780
+ );
2781
+ }, "insertDatabaseIcon");
2782
+ var insertComputerIcon = /* @__PURE__ */ __name(function(elem, id) {
2783
+ elem.append("defs").append("symbol").attr("id", id + "-computer").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr(
2784
+ "d",
2785
+ "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"
2786
+ );
2787
+ }, "insertComputerIcon");
2788
+ var insertClockIcon = /* @__PURE__ */ __name(function(elem, id) {
2789
+ elem.append("defs").append("symbol").attr("id", id + "-clock").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr(
2790
+ "d",
2791
+ "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"
2792
+ );
2793
+ }, "insertClockIcon");
2794
+ var insertArrowHead = /* @__PURE__ */ __name(function(elem, id) {
2795
+ elem.append("defs").append("marker").attr("id", 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");
2796
+ }, "insertArrowHead");
2797
+ var insertArrowFilledHead = /* @__PURE__ */ __name(function(elem, id) {
2798
+ elem.append("defs").append("marker").attr("id", 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");
2799
+ }, "insertArrowFilledHead");
2800
+ var insertSequenceNumber = /* @__PURE__ */ __name(function(elem, id) {
2801
+ elem.append("defs").append("marker").attr("id", 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);
2802
+ }, "insertSequenceNumber");
2803
+ var insertArrowCrossHead = /* @__PURE__ */ __name(function(elem, id) {
2804
+ const defs = elem.append("defs");
2805
+ const marker = defs.append("marker").attr("id", id + "-crosshead").attr("markerWidth", 15).attr("markerHeight", 8).attr("orient", "auto").attr("refX", 4).attr("refY", 4.5);
2806
+ 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");
2807
+ }, "insertArrowCrossHead");
2808
+ var insertDropShadow = /* @__PURE__ */ __name(function(elem, conf2) {
2809
+ const { theme } = conf2;
2810
+ elem.append("defs").append("filter").attr("id", "drop-shadow").attr("height", "130%").attr("width", "130%").append("feDropShadow").attr("dx", "4").attr("dy", "4").attr("stdDeviation", 0).attr("flood-opacity", "0.06").attr("flood-color", `${theme === "redux" || theme === "redux-color" ? "#000000" : "#FFFFFF"}`);
2811
+ }, "insertDropShadow");
2812
+ var getTextObj2 = /* @__PURE__ */ __name(function() {
2813
+ return {
2814
+ x: 0,
2815
+ y: 0,
2816
+ fill: void 0,
2817
+ anchor: void 0,
2818
+ style: "#666",
2819
+ width: void 0,
2820
+ height: void 0,
2821
+ textMargin: 0,
2822
+ rx: 0,
2823
+ ry: 0,
2824
+ tspan: true,
2825
+ valign: void 0
2826
+ };
2827
+ }, "getTextObj");
2828
+ var getNoteRect2 = /* @__PURE__ */ __name(function() {
2829
+ return {
2830
+ x: 0,
2831
+ y: 0,
2832
+ fill: "#EDF2AE",
2833
+ stroke: "#666",
2834
+ width: 100,
2835
+ anchor: "start",
2836
+ height: 100,
2837
+ rx: 0,
2838
+ ry: 0
2839
+ };
2840
+ }, "getNoteRect");
2841
+ var _drawTextCandidateFunc = /* @__PURE__ */ function() {
2842
+ function byText(content, g, x, y, width, height, textAttrs) {
2843
+ const text = g.append("text").attr("x", x + width / 2).attr("y", y + height / 2 + 5).style("text-anchor", "middle").text(content);
2844
+ _setTextAttrs(text, textAttrs);
2845
+ }
2846
+ __name(byText, "byText");
2847
+ function byTspan(content, g, x, y, width, height, textAttrs, conf2) {
2848
+ const { actorFontSize, actorFontFamily, actorFontWeight } = conf2;
2849
+ const [_actorFontSize, _actorFontSizePx] = parseFontSize(actorFontSize);
2850
+ const lines = content.split(common_default.lineBreakRegex);
2851
+ for (let i = 0; i < lines.length; i++) {
2852
+ const dy = i * _actorFontSize - _actorFontSize * (lines.length - 1) / 2;
2853
+ 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);
2854
+ text.append("tspan").attr("x", x + width / 2).attr("dy", dy).text(lines[i]);
2855
+ text.attr("y", y + height / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central");
2856
+ _setTextAttrs(text, textAttrs);
2857
+ }
2858
+ }
2859
+ __name(byTspan, "byTspan");
2860
+ function byFo(content, g, x, y, width, height, textAttrs, conf2) {
2861
+ const s = g.append("switch");
2862
+ const f = s.append("foreignObject").attr("x", x).attr("y", y).attr("width", width).attr("height", height);
2863
+ const text = f.append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
2864
+ text.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(content);
2865
+ byTspan(content, s, x, y, width, height, textAttrs, conf2);
2866
+ _setTextAttrs(text, textAttrs);
2867
+ }
2868
+ __name(byFo, "byFo");
2869
+ async function byKatex(content, g, x, y, width, height, textAttrs, conf2) {
2870
+ const dim = await calculateMathMLDimensions(content, getConfig());
2871
+ const s = g.append("switch");
2872
+ 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);
2873
+ const text = f.append("xhtml:div").style("height", "100%").style("width", "100%");
2874
+ text.append("div").style("text-align", "center").style("vertical-align", "middle").html(await renderKatexSanitized(content, getConfig()));
2875
+ byTspan(content, s, x, y, width, height, textAttrs, conf2);
2876
+ _setTextAttrs(text, textAttrs);
2877
+ }
2878
+ __name(byKatex, "byKatex");
2879
+ function _setTextAttrs(toText, fromTextAttrsDict) {
2880
+ for (const key in fromTextAttrsDict) {
2881
+ if (fromTextAttrsDict.hasOwnProperty(key)) {
2882
+ toText.attr(key, fromTextAttrsDict[key]);
2883
+ }
2884
+ }
2885
+ }
2886
+ __name(_setTextAttrs, "_setTextAttrs");
2887
+ return function(conf2, hasKatex2 = false) {
2888
+ if (hasKatex2) {
2889
+ return byKatex;
2890
+ }
2891
+ return conf2.textPlacement === "fo" ? byFo : conf2.textPlacement === "old" ? byText : byTspan;
2892
+ };
2893
+ }();
2894
+ var _drawMenuItemTextCandidateFunc = /* @__PURE__ */ function() {
2895
+ function byText(content, g, x, y, width, height, textAttrs) {
2896
+ const text = g.append("text").attr("x", x).attr("y", y).style("text-anchor", "start").text(content);
2897
+ _setTextAttrs(text, textAttrs);
2898
+ }
2899
+ __name(byText, "byText");
2900
+ function byTspan(content, g, x, y, width, height, textAttrs, conf2) {
2901
+ const { actorFontSize, actorFontFamily, actorFontWeight } = conf2;
2902
+ const lines = content.split(common_default.lineBreakRegex);
2903
+ for (let i = 0; i < lines.length; i++) {
2904
+ const dy = i * actorFontSize - actorFontSize * (lines.length - 1) / 2;
2905
+ 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);
2906
+ text.append("tspan").attr("x", x).attr("dy", dy).text(lines[i]);
2907
+ text.attr("y", y + height / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central");
2908
+ _setTextAttrs(text, textAttrs);
2909
+ }
2910
+ }
2911
+ __name(byTspan, "byTspan");
2912
+ function byFo(content, g, x, y, width, height, textAttrs, conf2) {
2913
+ const s = g.append("switch");
2914
+ const f = s.append("foreignObject").attr("x", x).attr("y", y).attr("width", width).attr("height", height);
2915
+ const text = f.append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
2916
+ text.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(content);
2917
+ byTspan(content, s, x, y, width, height, textAttrs, conf2);
2918
+ _setTextAttrs(text, textAttrs);
2919
+ }
2920
+ __name(byFo, "byFo");
2921
+ function _setTextAttrs(toText, fromTextAttrsDict) {
2922
+ for (const key in fromTextAttrsDict) {
2923
+ if (fromTextAttrsDict.hasOwnProperty(key)) {
2924
+ toText.attr(key, fromTextAttrsDict[key]);
2925
+ }
2926
+ }
2927
+ }
2928
+ __name(_setTextAttrs, "_setTextAttrs");
2929
+ return function(conf2) {
2930
+ return conf2.textPlacement === "fo" ? byFo : conf2.textPlacement === "old" ? byText : byTspan;
2931
+ };
2932
+ }();
2933
+ var insertSolidTopArrowHead = /* @__PURE__ */ __name(function(elem, id) {
2934
+ elem.append("defs").append("marker").attr("id", id + "-solidTopArrowHead").attr("refX", 7.9).attr("refY", 7.25).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto-start-reverse").append("path").attr("d", "M 0 0 L 10 8 L 0 8 z");
2935
+ }, "insertSolidTopArrowHead");
2936
+ var insertSolidBottomArrowHead = /* @__PURE__ */ __name(function(elem, id) {
2937
+ elem.append("defs").append("marker").attr("id", id + "-solidBottomArrowHead").attr("refX", 7.9).attr("refY", 0.75).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto-start-reverse").append("path").attr("d", "M 0 0 L 10 0 L 0 8 z");
2938
+ }, "insertSolidBottomArrowHead");
2939
+ var insertStickTopArrowHead = /* @__PURE__ */ __name(function(elem, id) {
2940
+ elem.append("defs").append("marker").attr("id", id + "-stickTopArrowHead").attr("refX", 7.5).attr("refY", 7).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto-start-reverse").append("path").attr("d", "M 0 0 L 7 7").attr("stroke", "black").attr("stroke-width", 1.5).attr("fill", "none");
2941
+ }, "insertStickTopArrowHead");
2942
+ var insertStickBottomArrowHead = /* @__PURE__ */ __name(function(elem, id) {
2943
+ elem.append("defs").append("marker").attr("id", id + "-stickBottomArrowHead").attr("refX", 7.5).attr("refY", 0).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto-start-reverse").append("path").attr("d", "M 0 7 L 7 0").attr("stroke", "black").attr("stroke-width", 1.5).attr("fill", "none");
2944
+ }, "insertStickBottomArrowHead");
2945
+ var svgDraw_default = {
2946
+ drawRect: drawRect2,
2947
+ drawText,
2948
+ drawLabel,
2949
+ drawActor,
2950
+ drawBox,
2951
+ drawPopup,
2952
+ anchorElement,
2953
+ drawActivation,
2954
+ drawLoop,
2955
+ drawBackgroundRect: drawBackgroundRect2,
2956
+ insertArrowHead,
2957
+ insertArrowFilledHead,
2958
+ insertSequenceNumber,
2959
+ insertArrowCrossHead,
2960
+ insertDatabaseIcon,
2961
+ insertComputerIcon,
2962
+ insertClockIcon,
2963
+ getTextObj: getTextObj2,
2964
+ getNoteRect: getNoteRect2,
2965
+ fixLifeLineHeights,
2966
+ sanitizeUrl: distExports.sanitizeUrl,
2967
+ insertDropShadow,
2968
+ insertSolidTopArrowHead,
2969
+ insertSolidBottomArrowHead,
2970
+ insertStickTopArrowHead,
2971
+ insertStickBottomArrowHead
2972
+ };
2973
+ var conf = {};
2974
+ var bounds = {
2975
+ data: {
2976
+ startx: void 0,
2977
+ stopx: void 0,
2978
+ starty: void 0,
2979
+ stopy: void 0
2980
+ },
2981
+ verticalPos: 0,
2982
+ sequenceItems: [],
2983
+ activations: [],
2984
+ models: {
2985
+ getHeight: /* @__PURE__ */ __name(function() {
2986
+ return Math.max.apply(
2987
+ null,
2988
+ this.actors.length === 0 ? [0] : this.actors.map((actor) => actor.height || 0)
2989
+ ) + (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));
2990
+ }, "getHeight"),
2991
+ clear: /* @__PURE__ */ __name(function() {
2992
+ this.actors = [];
2993
+ this.boxes = [];
2994
+ this.loops = [];
2995
+ this.messages = [];
2996
+ this.notes = [];
2997
+ }, "clear"),
2998
+ addBox: /* @__PURE__ */ __name(function(boxModel) {
2999
+ this.boxes.push(boxModel);
3000
+ }, "addBox"),
3001
+ addActor: /* @__PURE__ */ __name(function(actorModel) {
3002
+ this.actors.push(actorModel);
3003
+ }, "addActor"),
3004
+ addLoop: /* @__PURE__ */ __name(function(loopModel) {
3005
+ this.loops.push(loopModel);
3006
+ }, "addLoop"),
3007
+ addMessage: /* @__PURE__ */ __name(function(msgModel) {
3008
+ this.messages.push(msgModel);
3009
+ }, "addMessage"),
3010
+ addNote: /* @__PURE__ */ __name(function(noteModel) {
3011
+ this.notes.push(noteModel);
3012
+ }, "addNote"),
3013
+ lastActor: /* @__PURE__ */ __name(function() {
3014
+ return this.actors[this.actors.length - 1];
3015
+ }, "lastActor"),
3016
+ lastLoop: /* @__PURE__ */ __name(function() {
3017
+ return this.loops[this.loops.length - 1];
3018
+ }, "lastLoop"),
3019
+ lastMessage: /* @__PURE__ */ __name(function() {
3020
+ return this.messages[this.messages.length - 1];
3021
+ }, "lastMessage"),
3022
+ lastNote: /* @__PURE__ */ __name(function() {
3023
+ return this.notes[this.notes.length - 1];
3024
+ }, "lastNote"),
3025
+ actors: [],
3026
+ boxes: [],
3027
+ loops: [],
3028
+ messages: [],
3029
+ notes: []
3030
+ },
3031
+ init: /* @__PURE__ */ __name(function() {
3032
+ this.sequenceItems = [];
3033
+ this.activations = [];
3034
+ this.models.clear();
3035
+ this.data = {
3036
+ startx: void 0,
3037
+ stopx: void 0,
3038
+ starty: void 0,
3039
+ stopy: void 0
3040
+ };
3041
+ this.verticalPos = 0;
3042
+ setConf(getConfig2());
3043
+ }, "init"),
3044
+ updateVal: /* @__PURE__ */ __name(function(obj, key, val, fun) {
3045
+ if (obj[key] === void 0) {
3046
+ obj[key] = val;
3047
+ } else {
3048
+ obj[key] = fun(val, obj[key]);
3049
+ }
3050
+ }, "updateVal"),
3051
+ updateBounds: /* @__PURE__ */ __name(function(startx, starty, stopx, stopy) {
3052
+ const _self = this;
3053
+ let cnt = 0;
3054
+ function updateFn(type) {
3055
+ return /* @__PURE__ */ __name(function updateItemBounds(item) {
3056
+ cnt++;
3057
+ const n = _self.sequenceItems.length - cnt + 1;
3058
+ _self.updateVal(item, "starty", starty - n * conf.boxMargin, Math.min);
3059
+ _self.updateVal(item, "stopy", stopy + n * conf.boxMargin, Math.max);
3060
+ _self.updateVal(bounds.data, "startx", startx - n * conf.boxMargin, Math.min);
3061
+ _self.updateVal(bounds.data, "stopx", stopx + n * conf.boxMargin, Math.max);
3062
+ if (!(type === "activation")) {
3063
+ _self.updateVal(item, "startx", startx - n * conf.boxMargin, Math.min);
3064
+ _self.updateVal(item, "stopx", stopx + n * conf.boxMargin, Math.max);
3065
+ _self.updateVal(bounds.data, "starty", starty - n * conf.boxMargin, Math.min);
3066
+ _self.updateVal(bounds.data, "stopy", stopy + n * conf.boxMargin, Math.max);
3067
+ }
3068
+ }, "updateItemBounds");
3069
+ }
3070
+ __name(updateFn, "updateFn");
3071
+ this.sequenceItems.forEach(updateFn());
3072
+ this.activations.forEach(updateFn("activation"));
3073
+ }, "updateBounds"),
3074
+ insert: /* @__PURE__ */ __name(function(startx, starty, stopx, stopy) {
3075
+ const _startx = common_default.getMin(startx, stopx);
3076
+ const _stopx = common_default.getMax(startx, stopx);
3077
+ const _starty = common_default.getMin(starty, stopy);
3078
+ const _stopy = common_default.getMax(starty, stopy);
3079
+ this.updateVal(bounds.data, "startx", _startx, Math.min);
3080
+ this.updateVal(bounds.data, "starty", _starty, Math.min);
3081
+ this.updateVal(bounds.data, "stopx", _stopx, Math.max);
3082
+ this.updateVal(bounds.data, "stopy", _stopy, Math.max);
3083
+ this.updateBounds(_startx, _starty, _stopx, _stopy);
3084
+ }, "insert"),
3085
+ newActivation: /* @__PURE__ */ __name(function(message, diagram2, actors) {
3086
+ const actorRect = actors.get(message.from);
3087
+ const stackedSize = actorActivations(message.from).length || 0;
3088
+ const x = actorRect.x + actorRect.width / 2 + (stackedSize - 1) * conf.activationWidth / 2;
3089
+ this.activations.push({
3090
+ startx: x,
3091
+ starty: this.verticalPos + 2,
3092
+ stopx: x + conf.activationWidth,
3093
+ stopy: void 0,
3094
+ actor: message.from,
3095
+ anchored: svgDraw_default.anchorElement(diagram2)
3096
+ });
3097
+ }, "newActivation"),
3098
+ endActivation: /* @__PURE__ */ __name(function(message) {
3099
+ const lastActorActivationIdx = this.activations.map(function(activation) {
3100
+ return activation.actor;
3101
+ }).lastIndexOf(message.from);
3102
+ return this.activations.splice(lastActorActivationIdx, 1)[0];
3103
+ }, "endActivation"),
3104
+ createLoop: /* @__PURE__ */ __name(function(title = { message: void 0, wrap: false, width: void 0 }, fill) {
3105
+ return {
3106
+ startx: void 0,
3107
+ starty: this.verticalPos,
3108
+ stopx: void 0,
3109
+ stopy: void 0,
3110
+ title: title.message,
3111
+ wrap: title.wrap,
3112
+ width: title.width,
3113
+ height: 0,
3114
+ fill
3115
+ };
3116
+ }, "createLoop"),
3117
+ newLoop: /* @__PURE__ */ __name(function(title = { message: void 0, wrap: false, width: void 0 }, fill) {
3118
+ this.sequenceItems.push(this.createLoop(title, fill));
3119
+ }, "newLoop"),
3120
+ endLoop: /* @__PURE__ */ __name(function() {
3121
+ return this.sequenceItems.pop();
3122
+ }, "endLoop"),
3123
+ isLoopOverlap: /* @__PURE__ */ __name(function() {
3124
+ return this.sequenceItems.length ? this.sequenceItems[this.sequenceItems.length - 1].overlap : false;
3125
+ }, "isLoopOverlap"),
3126
+ addSectionToLoop: /* @__PURE__ */ __name(function(message) {
3127
+ const loop = this.sequenceItems.pop();
3128
+ loop.sections = loop.sections || [];
3129
+ loop.sectionTitles = loop.sectionTitles || [];
3130
+ loop.sections.push({ y: bounds.getVerticalPos(), height: 0 });
3131
+ loop.sectionTitles.push(message);
3132
+ this.sequenceItems.push(loop);
3133
+ }, "addSectionToLoop"),
3134
+ saveVerticalPos: /* @__PURE__ */ __name(function() {
3135
+ if (this.isLoopOverlap()) {
3136
+ this.savedVerticalPos = this.verticalPos;
3137
+ }
3138
+ }, "saveVerticalPos"),
3139
+ resetVerticalPos: /* @__PURE__ */ __name(function() {
3140
+ if (this.isLoopOverlap()) {
3141
+ this.verticalPos = this.savedVerticalPos;
3142
+ }
3143
+ }, "resetVerticalPos"),
3144
+ bumpVerticalPos: /* @__PURE__ */ __name(function(bump) {
3145
+ this.verticalPos = this.verticalPos + bump;
3146
+ this.data.stopy = common_default.getMax(this.data.stopy, this.verticalPos);
3147
+ }, "bumpVerticalPos"),
3148
+ getVerticalPos: /* @__PURE__ */ __name(function() {
3149
+ return this.verticalPos;
3150
+ }, "getVerticalPos"),
3151
+ getBounds: /* @__PURE__ */ __name(function() {
3152
+ return { bounds: this.data, models: this.models };
3153
+ }, "getBounds")
3154
+ };
3155
+ var drawNote = /* @__PURE__ */ __name(async function(elem, noteModel, id) {
3156
+ bounds.bumpVerticalPos(conf.boxMargin);
3157
+ noteModel.height = conf.boxMargin;
3158
+ noteModel.starty = bounds.getVerticalPos();
3159
+ const rect = getNoteRect();
3160
+ rect.x = noteModel.startx;
3161
+ rect.y = noteModel.starty;
3162
+ rect.width = noteModel.width || conf.width;
3163
+ rect.class = "note";
3164
+ const g = elem.append("g");
3165
+ g.attr("data-et", "note");
3166
+ g.attr("data-id", "i" + id);
3167
+ const rectElem = svgDraw_default.drawRect(g, rect);
3168
+ const textObj = getTextObj();
3169
+ textObj.x = noteModel.startx;
3170
+ textObj.y = noteModel.starty;
3171
+ textObj.width = rect.width;
3172
+ textObj.dy = "1em";
3173
+ textObj.text = noteModel.message;
3174
+ textObj.class = "noteText";
3175
+ textObj.fontFamily = conf.noteFontFamily;
3176
+ textObj.fontSize = conf.noteFontSize;
3177
+ textObj.fontWeight = conf.noteFontWeight;
3178
+ textObj.anchor = conf.noteAlign;
3179
+ textObj.textMargin = conf.noteMargin;
3180
+ textObj.valign = "center";
3181
+ const textElem = hasKatex(textObj.text) ? await drawKatex(g, textObj) : drawText(g, textObj);
3182
+ const textHeight = Math.round(
3183
+ textElem.map((te) => (te._groups || te)[0][0].getBBox().height).reduce((acc, curr) => acc + curr)
3184
+ );
3185
+ rectElem.attr("height", textHeight + 2 * conf.noteMargin);
3186
+ noteModel.height += textHeight + 2 * conf.noteMargin;
3187
+ bounds.bumpVerticalPos(textHeight + 2 * conf.noteMargin);
3188
+ noteModel.stopy = noteModel.starty + textHeight + 2 * conf.noteMargin;
3189
+ noteModel.stopx = noteModel.startx + rect.width;
3190
+ bounds.insert(noteModel.startx, noteModel.starty, noteModel.stopx, noteModel.stopy);
3191
+ bounds.models.addNote(noteModel);
3192
+ }, "drawNote");
3193
+ var drawCentralConnection = /* @__PURE__ */ __name(function(elem, msg, msgModel, diagObj, startx, stopx, lineStartY) {
3194
+ const actors = diagObj.db.getActors();
3195
+ const fromActor = actors.get(msg.from);
3196
+ const toActor = actors.get(msg.to);
3197
+ const isAutoNumberOn = msgModel.sequenceVisible;
3198
+ let fromCenter = fromActor.x + fromActor.width / 2;
3199
+ let toCenter = toActor.x + toActor.width / 2;
3200
+ const isLeftToRight = fromCenter <= toCenter;
3201
+ const isReverse = isReverseArrowType(msg, diagObj);
3202
+ const g = elem.append("g");
3203
+ const CENTRAL_CONNECTION_CIRCLE_OFFSET = 16.5;
3204
+ const getCircleOffset = /* @__PURE__ */ __name((isLeftToRight2, isReverse2) => {
3205
+ const baseOffset = isLeftToRight2 ? CENTRAL_CONNECTION_CIRCLE_OFFSET : -16.5;
3206
+ return isReverse2 ? -baseOffset : baseOffset;
3207
+ }, "getCircleOffset");
3208
+ const drawCircle = /* @__PURE__ */ __name((cx) => {
3209
+ g.append("circle").attr("cx", cx).attr("cy", lineStartY).attr("r", 5).attr("width", 10).attr("height", 10);
3210
+ }, "drawCircle");
3211
+ const { CENTRAL_CONNECTION, CENTRAL_CONNECTION_REVERSE, CENTRAL_CONNECTION_DUAL } = diagObj.db.LINETYPE;
3212
+ if (isAutoNumberOn) {
3213
+ switch (msg.centralConnection) {
3214
+ case CENTRAL_CONNECTION:
3215
+ if (isReverse) {
3216
+ toCenter += getCircleOffset(isLeftToRight, true);
3217
+ }
3218
+ break;
3219
+ case CENTRAL_CONNECTION_REVERSE:
3220
+ if (!isReverse) {
3221
+ fromCenter += getCircleOffset(isLeftToRight, false);
3222
+ }
3223
+ break;
3224
+ case CENTRAL_CONNECTION_DUAL:
3225
+ if (isReverse) {
3226
+ toCenter += getCircleOffset(isLeftToRight, true);
3227
+ } else {
3228
+ fromCenter += getCircleOffset(isLeftToRight, false);
3229
+ }
3230
+ break;
3231
+ }
3232
+ }
3233
+ switch (msg.centralConnection) {
3234
+ case CENTRAL_CONNECTION:
3235
+ drawCircle(toCenter);
3236
+ break;
3237
+ case CENTRAL_CONNECTION_REVERSE:
3238
+ drawCircle(fromCenter);
3239
+ break;
3240
+ case CENTRAL_CONNECTION_DUAL:
3241
+ drawCircle(fromCenter);
3242
+ drawCircle(toCenter);
3243
+ break;
3244
+ }
3245
+ }, "drawCentralConnection");
3246
+ var messageFont = /* @__PURE__ */ __name((cnf) => {
3247
+ return {
3248
+ fontFamily: cnf.messageFontFamily,
3249
+ fontSize: cnf.messageFontSize,
3250
+ fontWeight: cnf.messageFontWeight
3251
+ };
3252
+ }, "messageFont");
3253
+ var noteFont = /* @__PURE__ */ __name((cnf) => {
3254
+ return {
3255
+ fontFamily: cnf.noteFontFamily,
3256
+ fontSize: cnf.noteFontSize,
3257
+ fontWeight: cnf.noteFontWeight
3258
+ };
3259
+ }, "noteFont");
3260
+ var actorFont = /* @__PURE__ */ __name((cnf) => {
3261
+ return {
3262
+ fontFamily: cnf.actorFontFamily,
3263
+ fontSize: cnf.actorFontSize,
3264
+ fontWeight: cnf.actorFontWeight
3265
+ };
3266
+ }, "actorFont");
3267
+ async function boundMessage(_diagram, msgModel) {
3268
+ bounds.bumpVerticalPos(10);
3269
+ const { startx, stopx, message } = msgModel;
3270
+ const lines = common_default.splitBreaks(message).length;
3271
+ const isKatexMsg = hasKatex(message);
3272
+ const textDims = isKatexMsg ? await calculateMathMLDimensions(message, getConfig2()) : utils_default.calculateTextDimensions(message, messageFont(conf));
3273
+ if (!isKatexMsg) {
3274
+ const lineHeight = textDims.height / lines;
3275
+ msgModel.height += lineHeight;
3276
+ bounds.bumpVerticalPos(lineHeight);
3277
+ }
3278
+ let lineStartY;
3279
+ let totalOffset = textDims.height - 10;
3280
+ const textWidth = textDims.width;
3281
+ if (startx === stopx) {
3282
+ lineStartY = bounds.getVerticalPos() + totalOffset;
3283
+ if (!conf.rightAngles) {
3284
+ totalOffset += conf.boxMargin;
3285
+ lineStartY = bounds.getVerticalPos() + totalOffset;
3286
+ }
3287
+ totalOffset += 30;
3288
+ const dx = common_default.getMax(textWidth / 2, conf.width / 2);
3289
+ bounds.insert(
3290
+ startx - dx,
3291
+ bounds.getVerticalPos() - 10 + totalOffset,
3292
+ stopx + dx,
3293
+ bounds.getVerticalPos() + 30 + totalOffset
3294
+ );
3295
+ } else {
3296
+ totalOffset += conf.boxMargin;
3297
+ lineStartY = bounds.getVerticalPos() + totalOffset;
3298
+ bounds.insert(startx, lineStartY - 10, stopx, lineStartY);
3299
+ }
3300
+ bounds.bumpVerticalPos(totalOffset);
3301
+ msgModel.height += totalOffset;
3302
+ msgModel.stopy = msgModel.starty + msgModel.height;
3303
+ bounds.insert(msgModel.fromBounds, msgModel.starty, msgModel.toBounds, msgModel.stopy);
3304
+ return lineStartY;
3305
+ }
3306
+ __name(boundMessage, "boundMessage");
3307
+ var drawMessage = /* @__PURE__ */ __name(async function(diagram2, msgModel, lineStartY, diagObj, msg, diagramId) {
3308
+ const { startx, stopx, starty, message, type, sequenceIndex, sequenceVisible } = msgModel;
3309
+ const textDims = utils_default.calculateTextDimensions(message, messageFont(conf));
3310
+ const textObj = getTextObj();
3311
+ textObj.x = Math.min(startx, stopx);
3312
+ textObj.y = starty + 10;
3313
+ textObj.width = Math.abs(stopx - startx);
3314
+ textObj.class = "messageText";
3315
+ textObj.dy = "1em";
3316
+ textObj.text = message;
3317
+ textObj.fontFamily = conf.messageFontFamily;
3318
+ textObj.fontSize = conf.messageFontSize;
3319
+ textObj.fontWeight = conf.messageFontWeight;
3320
+ textObj.anchor = conf.messageAlign;
3321
+ textObj.valign = "center";
3322
+ textObj.textMargin = conf.wrapPadding;
3323
+ textObj.tspan = false;
3324
+ if (hasKatex(textObj.text)) {
3325
+ await drawKatex(diagram2, textObj, { startx, stopx, starty: lineStartY });
3326
+ } else {
3327
+ drawText(diagram2, textObj);
3328
+ }
3329
+ const textWidth = textDims.width;
3330
+ let line;
3331
+ if (startx === stopx) {
3332
+ const isAutoNumberOn = sequenceVisible || conf.showSequenceNumbers;
3333
+ const isReverse = isReverseArrowType(msg, diagObj);
3334
+ const isBidirectional = isBidirectionalArrowType(msg, diagObj);
3335
+ const lineStartX = startx + (isAutoNumberOn && (isReverse || isBidirectional) ? 10 : 0);
3336
+ if (conf.rightAngles) {
3337
+ line = diagram2.append("path").attr(
3338
+ "d",
3339
+ `M ${lineStartX},${lineStartY} H ${startx + common_default.getMax(conf.width / 2, textWidth / 2)} V ${lineStartY + 25} H ${startx}`
3340
+ );
3341
+ } else {
3342
+ line = diagram2.append("path").attr(
3343
+ "d",
3344
+ "M " + lineStartX + "," + lineStartY + " C " + (lineStartX + 60) + "," + (lineStartY - 10) + " " + (startx + 60) + "," + (lineStartY + 30) + " " + startx + "," + (lineStartY + 20)
3345
+ );
3346
+ }
3347
+ if (hasCentralConnection(msg, diagObj)) {
3348
+ drawCentralConnection(diagram2, msg, msgModel, diagObj, startx, stopx, lineStartY);
3349
+ }
3350
+ } else {
3351
+ line = diagram2.append("line");
3352
+ line.attr("x1", startx);
3353
+ line.attr("y1", lineStartY);
3354
+ line.attr("x2", stopx);
3355
+ line.attr("y2", lineStartY);
3356
+ if (hasCentralConnection(msg, diagObj)) {
3357
+ drawCentralConnection(diagram2, msg, msgModel, diagObj, startx, stopx, lineStartY);
3358
+ }
3359
+ }
3360
+ 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 || type === diagObj.db.LINETYPE.SOLID_TOP_DOTTED || type === diagObj.db.LINETYPE.SOLID_BOTTOM_DOTTED || type === diagObj.db.LINETYPE.STICK_TOP_DOTTED || type === diagObj.db.LINETYPE.STICK_BOTTOM_DOTTED || type === diagObj.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED || type === diagObj.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED || type === diagObj.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED || type === diagObj.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED) {
3361
+ line.style("stroke-dasharray", "3, 3");
3362
+ line.attr("class", "messageLine1");
3363
+ } else {
3364
+ line.attr("class", "messageLine0");
3365
+ }
3366
+ line.attr("data-et", "message");
3367
+ line.attr("data-id", "i" + msgModel.id);
3368
+ line.attr("data-from", msgModel.from);
3369
+ line.attr("data-to", msgModel.to);
3370
+ let url = "";
3371
+ if (conf.arrowMarkerAbsolute) {
3372
+ url = getUrl(true);
3373
+ }
3374
+ line.attr("stroke-width", 2);
3375
+ line.attr("stroke", "none");
3376
+ line.style("fill", "none");
3377
+ if (type === diagObj.db.LINETYPE.SOLID_TOP || type === diagObj.db.LINETYPE.SOLID_TOP_DOTTED) {
3378
+ line.attr("marker-end", "url(" + url + "#" + diagramId + "-solidTopArrowHead)");
3379
+ }
3380
+ if (type === diagObj.db.LINETYPE.SOLID_BOTTOM || type === diagObj.db.LINETYPE.SOLID_BOTTOM_DOTTED) {
3381
+ line.attr("marker-end", "url(" + url + "#" + diagramId + "-solidBottomArrowHead)");
3382
+ }
3383
+ if (type === diagObj.db.LINETYPE.STICK_TOP || type === diagObj.db.LINETYPE.STICK_TOP_DOTTED) {
3384
+ line.attr("marker-end", "url(" + url + "#" + diagramId + "-stickTopArrowHead)");
3385
+ }
3386
+ if (type === diagObj.db.LINETYPE.STICK_BOTTOM || type === diagObj.db.LINETYPE.STICK_BOTTOM_DOTTED) {
3387
+ line.attr("marker-end", "url(" + url + "#" + diagramId + "-stickBottomArrowHead)");
3388
+ }
3389
+ if (type === diagObj.db.LINETYPE.SOLID_ARROW_TOP_REVERSE || type === diagObj.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED) {
3390
+ line.attr("marker-start", "url(" + url + "#" + diagramId + "-solidBottomArrowHead)");
3391
+ }
3392
+ if (type === diagObj.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE || type === diagObj.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED) {
3393
+ line.attr("marker-start", "url(" + url + "#" + diagramId + "-solidTopArrowHead)");
3394
+ }
3395
+ if (type === diagObj.db.LINETYPE.STICK_ARROW_TOP_REVERSE || type === diagObj.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED) {
3396
+ line.attr("marker-start", "url(" + url + "#" + diagramId + "-stickBottomArrowHead)");
3397
+ }
3398
+ if (type === diagObj.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE || type === diagObj.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED) {
3399
+ line.attr("marker-start", "url(" + url + "#" + diagramId + "-stickTopArrowHead)");
3400
+ }
3401
+ if (type === diagObj.db.LINETYPE.SOLID || type === diagObj.db.LINETYPE.DOTTED) {
3402
+ line.attr("marker-end", "url(" + url + "#" + diagramId + "-arrowhead)");
3403
+ }
3404
+ if (type === diagObj.db.LINETYPE.BIDIRECTIONAL_SOLID || type === diagObj.db.LINETYPE.BIDIRECTIONAL_DOTTED) {
3405
+ line.attr("marker-start", "url(" + url + "#" + diagramId + "-arrowhead)");
3406
+ line.attr("marker-end", "url(" + url + "#" + diagramId + "-arrowhead)");
3407
+ }
3408
+ if (type === diagObj.db.LINETYPE.SOLID_POINT || type === diagObj.db.LINETYPE.DOTTED_POINT) {
3409
+ line.attr("marker-end", "url(" + url + "#" + diagramId + "-filled-head)");
3410
+ }
3411
+ if (type === diagObj.db.LINETYPE.SOLID_CROSS || type === diagObj.db.LINETYPE.DOTTED_CROSS) {
3412
+ line.attr("marker-end", "url(" + url + "#" + diagramId + "-crosshead)");
3413
+ }
3414
+ if (sequenceVisible || conf.showSequenceNumbers) {
3415
+ const isBidirectional = type === diagObj.db.LINETYPE.BIDIRECTIONAL_SOLID || type === diagObj.db.LINETYPE.BIDIRECTIONAL_DOTTED;
3416
+ const isReverseArrowType2 = type === diagObj.db.LINETYPE.SOLID_ARROW_TOP_REVERSE || type === diagObj.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED || type === diagObj.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE || type === diagObj.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED || type === diagObj.db.LINETYPE.STICK_ARROW_TOP_REVERSE || type === diagObj.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED || type === diagObj.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE || type === diagObj.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;
3417
+ const SEQUENCE_NUMBER_RADIUS = 6;
3418
+ const hasCentralConn = hasCentralConnection(msg, diagObj);
3419
+ let lineStartX = startx;
3420
+ let lineStopX = stopx;
3421
+ if (isBidirectional) {
3422
+ if (startx < stopx) {
3423
+ lineStartX = startx + SEQUENCE_NUMBER_RADIUS * 2;
3424
+ } else {
3425
+ lineStartX = startx - SEQUENCE_NUMBER_RADIUS + (hasCentralConn ? -5 : 0);
3426
+ lineStartX += (msg == null ? void 0 : msg.centralConnection) === diagObj.db.LINETYPE.CENTRAL_CONNECTION_DUAL || (msg == null ? void 0 : msg.centralConnection) === diagObj.db.LINETYPE.CENTRAL_CONNECTION_REVERSE ? -7.5 : 0;
3427
+ }
3428
+ line.attr("x1", lineStartX);
3429
+ } else if (isReverseArrowType2) {
3430
+ if (stopx > startx) {
3431
+ lineStopX = stopx - 2 * SEQUENCE_NUMBER_RADIUS;
3432
+ } else {
3433
+ lineStopX = stopx - SEQUENCE_NUMBER_RADIUS;
3434
+ lineStartX += (msg == null ? void 0 : msg.centralConnection) === diagObj.db.LINETYPE.CENTRAL_CONNECTION_DUAL || (msg == null ? void 0 : msg.centralConnection) === diagObj.db.LINETYPE.CENTRAL_CONNECTION_REVERSE ? -7.5 : 0;
3435
+ }
3436
+ lineStopX += hasCentralConn ? 15 : 0;
3437
+ line.attr("x2", lineStopX);
3438
+ line.attr("x1", lineStartX);
3439
+ } else {
3440
+ line.attr("x1", startx + SEQUENCE_NUMBER_RADIUS);
3441
+ }
3442
+ let autonumberX = 0;
3443
+ const isSelfMessage = startx === stopx;
3444
+ const isLeftToRight = startx <= stopx;
3445
+ if (isSelfMessage) {
3446
+ autonumberX = msgModel.fromBounds + 1;
3447
+ } else if (isReverseArrowType2) {
3448
+ autonumberX = isLeftToRight ? msgModel.toBounds - 1 : msgModel.fromBounds + 1;
3449
+ } else {
3450
+ autonumberX = isLeftToRight ? msgModel.fromBounds + 1 : msgModel.toBounds - 1;
3451
+ }
3452
+ let fontSize = "12px";
3453
+ const sequenceIndexLength = sequenceIndex.toString().length;
3454
+ if (sequenceIndexLength > 5) {
3455
+ fontSize = "7px";
3456
+ } else if (sequenceIndexLength > 3) {
3457
+ fontSize = "9px";
3458
+ }
3459
+ diagram2.append("line").attr("x1", autonumberX).attr("y1", lineStartY).attr("x2", autonumberX).attr("y2", lineStartY).attr("stroke-width", 0).attr("marker-start", "url(" + url + "#" + diagramId + "-sequencenumber)");
3460
+ diagram2.append("text").attr("x", autonumberX).attr("y", lineStartY + 4).attr("font-family", "sans-serif").attr("font-size", fontSize).attr("text-anchor", "middle").attr("class", "sequenceNumber").text(sequenceIndex);
3461
+ }
3462
+ }, "drawMessage");
3463
+ var addActorRenderingData = /* @__PURE__ */ __name(function(diagram2, actors, createdActors, actorKeys, verticalPos, messages, isFooter) {
3464
+ let prevWidth = 0;
3465
+ let prevMargin = 0;
3466
+ let prevBox = void 0;
3467
+ let maxHeight = 0;
3468
+ for (const actorKey of actorKeys) {
3469
+ const actor = actors.get(actorKey);
3470
+ const box = actor.box;
3471
+ if (prevBox && prevBox != box) {
3472
+ if (!isFooter) {
3473
+ bounds.models.addBox(prevBox);
3474
+ }
3475
+ prevMargin += conf.boxMargin + prevBox.margin;
3476
+ }
3477
+ if (box && box != prevBox) {
3478
+ if (!isFooter) {
3479
+ box.x = prevWidth + prevMargin;
3480
+ box.y = verticalPos;
3481
+ }
3482
+ prevMargin += box.margin;
3483
+ }
3484
+ actor.width = common_default.getMax(actor.width || conf.width, conf.width);
3485
+ actor.height = common_default.getMax(actor.height || conf.height, conf.height);
3486
+ actor.margin = actor.margin || conf.actorMargin;
3487
+ maxHeight = common_default.getMax(maxHeight, actor.height);
3488
+ if (createdActors.get(actor.name)) {
3489
+ prevMargin += actor.width / 2;
3490
+ }
3491
+ actor.x = prevWidth + prevMargin;
3492
+ actor.starty = bounds.getVerticalPos();
3493
+ bounds.insert(actor.x, verticalPos, actor.x + actor.width, actor.height);
3494
+ prevWidth += actor.width + prevMargin;
3495
+ if (actor.box) {
3496
+ actor.box.width = prevWidth + box.margin - actor.box.x;
3497
+ }
3498
+ prevMargin = actor.margin;
3499
+ prevBox = actor.box;
3500
+ bounds.models.addActor(actor);
3501
+ }
3502
+ if (prevBox && !isFooter) {
3503
+ bounds.models.addBox(prevBox);
3504
+ }
3505
+ bounds.bumpVerticalPos(maxHeight);
3506
+ }, "addActorRenderingData");
3507
+ var drawActors = /* @__PURE__ */ __name(async function(diagram2, actors, actorKeys, isFooter, diagramId, diagObj, actorIndexMap) {
3508
+ if (!isFooter) {
3509
+ for (const actorKey of actorKeys) {
3510
+ const actor = actors.get(actorKey);
3511
+ await svgDraw_default.drawActor(diagram2, actor, conf, false, diagramId, diagObj, actorIndexMap);
3512
+ }
3513
+ } else {
3514
+ let maxHeight = 0;
3515
+ bounds.bumpVerticalPos(conf.boxMargin * 2);
3516
+ for (const actorKey of actorKeys) {
3517
+ const actor = actors.get(actorKey);
3518
+ if (!actor.stopy) {
3519
+ actor.stopy = bounds.getVerticalPos();
3520
+ }
3521
+ const height = await svgDraw_default.drawActor(
3522
+ diagram2,
3523
+ actor,
3524
+ conf,
3525
+ true,
3526
+ diagramId,
3527
+ diagObj,
3528
+ actorIndexMap
3529
+ );
3530
+ maxHeight = common_default.getMax(maxHeight, height);
3531
+ }
3532
+ bounds.bumpVerticalPos(maxHeight + conf.boxMargin);
3533
+ }
3534
+ }, "drawActors");
3535
+ var drawActorsPopup = /* @__PURE__ */ __name(function(diagram2, actors, actorKeys, doc) {
3536
+ let maxHeight = 0;
3537
+ let maxWidth = 0;
3538
+ for (const actorKey of actorKeys) {
3539
+ const actor = actors.get(actorKey);
3540
+ const minMenuWidth = getRequiredPopupWidth(actor);
3541
+ const menuDimensions = svgDraw_default.drawPopup(
3542
+ diagram2,
3543
+ actor,
3544
+ minMenuWidth,
3545
+ conf,
3546
+ conf.forceMenus,
3547
+ doc
3548
+ );
3549
+ if (menuDimensions.height > maxHeight) {
3550
+ maxHeight = menuDimensions.height;
3551
+ }
3552
+ if (menuDimensions.width + actor.x > maxWidth) {
3553
+ maxWidth = menuDimensions.width + actor.x;
3554
+ }
3555
+ }
3556
+ return { maxHeight, maxWidth };
3557
+ }, "drawActorsPopup");
3558
+ var setConf = /* @__PURE__ */ __name(function(cnf) {
3559
+ assignWithDepth_default(conf, cnf);
3560
+ if (cnf.fontFamily) {
3561
+ conf.actorFontFamily = conf.noteFontFamily = conf.messageFontFamily = cnf.fontFamily;
3562
+ }
3563
+ if (cnf.fontSize) {
3564
+ conf.actorFontSize = conf.noteFontSize = conf.messageFontSize = cnf.fontSize;
3565
+ }
3566
+ if (cnf.fontWeight) {
3567
+ conf.actorFontWeight = conf.noteFontWeight = conf.messageFontWeight = cnf.fontWeight;
3568
+ }
3569
+ }, "setConf");
3570
+ var actorActivations = /* @__PURE__ */ __name(function(actor) {
3571
+ return bounds.activations.filter(function(activation) {
3572
+ return activation.actor === actor;
3573
+ });
3574
+ }, "actorActivations");
3575
+ var activationBounds = /* @__PURE__ */ __name(function(actor, actors) {
3576
+ const actorObj = actors.get(actor);
3577
+ const activations = actorActivations(actor);
3578
+ const left = activations.reduce(
3579
+ function(acc, activation) {
3580
+ return common_default.getMin(acc, activation.startx);
3581
+ },
3582
+ actorObj.x + actorObj.width / 2 - 1
3583
+ );
3584
+ const right = activations.reduce(
3585
+ function(acc, activation) {
3586
+ return common_default.getMax(acc, activation.stopx);
3587
+ },
3588
+ actorObj.x + actorObj.width / 2 + 1
3589
+ );
3590
+ return [left, right];
3591
+ }, "activationBounds");
3592
+ function adjustLoopHeightForWrap(loopWidths, msg, preMargin, postMargin, addLoopFn) {
3593
+ bounds.bumpVerticalPos(preMargin);
3594
+ let heightAdjust = postMargin;
3595
+ if (msg.id && msg.message && loopWidths[msg.id]) {
3596
+ const loopWidth = loopWidths[msg.id].width;
3597
+ const textConf = messageFont(conf);
3598
+ msg.message = utils_default.wrapLabel(`[${msg.message}]`, loopWidth - 2 * conf.wrapPadding, textConf);
3599
+ msg.width = loopWidth;
3600
+ msg.wrap = true;
3601
+ const textDims = utils_default.calculateTextDimensions(msg.message, textConf);
3602
+ const totalOffset = common_default.getMax(textDims.height, conf.labelBoxHeight);
3603
+ heightAdjust = postMargin + totalOffset;
3604
+ log.debug(`${totalOffset} - ${msg.message}`);
3605
+ }
3606
+ addLoopFn(msg);
3607
+ bounds.bumpVerticalPos(heightAdjust);
3608
+ }
3609
+ __name(adjustLoopHeightForWrap, "adjustLoopHeightForWrap");
3610
+ function adjustCreatedDestroyedData(msg, msgModel, lineStartY, index, actors, createdActors, destroyedActors) {
3611
+ function receiverAdjustment(actor, adjustment) {
3612
+ if (actor.x < actors.get(msg.from).x) {
3613
+ bounds.insert(
3614
+ msgModel.stopx - adjustment,
3615
+ msgModel.starty,
3616
+ msgModel.startx,
3617
+ msgModel.stopy + actor.height / 2 + conf.noteMargin
3618
+ );
3619
+ msgModel.stopx = msgModel.stopx + adjustment;
3620
+ } else {
3621
+ bounds.insert(
3622
+ msgModel.startx,
3623
+ msgModel.starty,
3624
+ msgModel.stopx + adjustment,
3625
+ msgModel.stopy + actor.height / 2 + conf.noteMargin
3626
+ );
3627
+ msgModel.stopx = msgModel.stopx - adjustment;
3628
+ }
3629
+ }
3630
+ __name(receiverAdjustment, "receiverAdjustment");
3631
+ function senderAdjustment(actor, adjustment) {
3632
+ if (actor.x < actors.get(msg.to).x) {
3633
+ bounds.insert(
3634
+ msgModel.startx - adjustment,
3635
+ msgModel.starty,
3636
+ msgModel.stopx,
3637
+ msgModel.stopy + actor.height / 2 + conf.noteMargin
3638
+ );
3639
+ msgModel.startx = msgModel.startx + adjustment;
3640
+ } else {
3641
+ bounds.insert(
3642
+ msgModel.stopx,
3643
+ msgModel.starty,
3644
+ msgModel.startx + adjustment,
3645
+ msgModel.stopy + actor.height / 2 + conf.noteMargin
3646
+ );
3647
+ msgModel.startx = msgModel.startx - adjustment;
3648
+ }
3649
+ }
3650
+ __name(senderAdjustment, "senderAdjustment");
3651
+ const actorArray = [
3652
+ PARTICIPANT_TYPE.ACTOR,
3653
+ PARTICIPANT_TYPE.CONTROL,
3654
+ PARTICIPANT_TYPE.ENTITY,
3655
+ PARTICIPANT_TYPE.DATABASE
3656
+ ];
3657
+ if (createdActors.get(msg.to) == index) {
3658
+ const actor = actors.get(msg.to);
3659
+ const adjustment = actorArray.includes(actor.type) ? ACTOR_TYPE_WIDTH / 2 + 3 : actor.width / 2 + 3;
3660
+ receiverAdjustment(actor, adjustment);
3661
+ actor.starty = lineStartY - actor.height / 2;
3662
+ bounds.bumpVerticalPos(actor.height / 2);
3663
+ } else if (destroyedActors.get(msg.from) == index) {
3664
+ const actor = actors.get(msg.from);
3665
+ if (conf.mirrorActors) {
3666
+ const adjustment = actorArray.includes(actor.type) ? ACTOR_TYPE_WIDTH / 2 : actor.width / 2;
3667
+ senderAdjustment(actor, adjustment);
3668
+ }
3669
+ actor.stopy = lineStartY - actor.height / 2;
3670
+ bounds.bumpVerticalPos(actor.height / 2);
3671
+ } else if (destroyedActors.get(msg.to) == index) {
3672
+ const actor = actors.get(msg.to);
3673
+ if (conf.mirrorActors) {
3674
+ const adjustment = actorArray.includes(actor.type) ? ACTOR_TYPE_WIDTH / 2 + 3 : actor.width / 2 + 3;
3675
+ receiverAdjustment(actor, adjustment);
3676
+ }
3677
+ actor.stopy = lineStartY - actor.height / 2;
3678
+ bounds.bumpVerticalPos(actor.height / 2);
3679
+ }
3680
+ }
3681
+ __name(adjustCreatedDestroyedData, "adjustCreatedDestroyedData");
3682
+ var draw = /* @__PURE__ */ __name(async function(_text, id, _version, diagObj) {
3683
+ const { securityLevel, sequence, look, themeVariables } = getConfig2();
3684
+ conf = sequence;
3685
+ let sandboxElement;
3686
+ if (securityLevel === "sandbox") {
3687
+ sandboxElement = select("#i" + id);
3688
+ }
3689
+ const root = securityLevel === "sandbox" ? select(sandboxElement.nodes()[0].contentDocument.body) : select("body");
3690
+ const doc = securityLevel === "sandbox" ? sandboxElement.nodes()[0].contentDocument : document;
3691
+ bounds.init();
3692
+ log.debug(diagObj.db);
3693
+ const diagram2 = securityLevel === "sandbox" ? root.select(`[id="${id}"]`) : select(`[id="${id}"]`);
3694
+ const actors = diagObj.db.getActors();
3695
+ const createdActors = diagObj.db.getCreatedActors();
3696
+ const destroyedActors = diagObj.db.getDestroyedActors();
3697
+ const boxes = diagObj.db.getBoxes();
3698
+ let actorKeys = diagObj.db.getActorKeys();
3699
+ const messages = diagObj.db.getMessages();
3700
+ const title = diagObj.db.getDiagramTitle();
3701
+ const hasBoxes = diagObj.db.hasAtLeastOneBox();
3702
+ const hasBoxTitles = diagObj.db.hasAtLeastOneBoxWithTitle();
3703
+ const maxMessageWidthPerActor = await getMaxMessageWidthPerActor(actors, messages, diagObj);
3704
+ conf.height = await calculateActorMargins(actors, maxMessageWidthPerActor, boxes);
3705
+ svgDraw_default.insertComputerIcon(diagram2, id);
3706
+ svgDraw_default.insertDatabaseIcon(diagram2, id);
3707
+ svgDraw_default.insertClockIcon(diagram2, id);
3708
+ if (hasBoxes) {
3709
+ bounds.bumpVerticalPos(conf.boxMargin);
3710
+ if (hasBoxTitles) {
3711
+ bounds.bumpVerticalPos(boxes[0].textMaxHeight);
3712
+ }
3713
+ }
3714
+ if (conf.hideUnusedParticipants === true) {
3715
+ const newActors = /* @__PURE__ */ new Set();
3716
+ messages.forEach((message) => {
3717
+ newActors.add(message.from);
3718
+ newActors.add(message.to);
3719
+ });
3720
+ actorKeys = actorKeys.filter((actorKey) => newActors.has(actorKey));
3721
+ }
3722
+ const actorIndexMap = new Map(
3723
+ actorKeys.map((actorKey, index2) => {
3724
+ var _a2;
3725
+ return [((_a2 = actors.get(actorKey)) == null ? void 0 : _a2.name) ?? actorKey, index2];
3726
+ })
3727
+ );
3728
+ addActorRenderingData(diagram2, actors, createdActors, actorKeys, 0, messages, false);
3729
+ const loopWidths = await calculateLoopBounds(messages, actors, maxMessageWidthPerActor, diagObj);
3730
+ svgDraw_default.insertArrowHead(diagram2, id);
3731
+ svgDraw_default.insertArrowCrossHead(diagram2, id);
3732
+ svgDraw_default.insertArrowFilledHead(diagram2, id);
3733
+ svgDraw_default.insertSequenceNumber(diagram2, id);
3734
+ svgDraw_default.insertSolidTopArrowHead(diagram2, id);
3735
+ svgDraw_default.insertSolidBottomArrowHead(diagram2, id);
3736
+ svgDraw_default.insertStickTopArrowHead(diagram2, id);
3737
+ svgDraw_default.insertStickBottomArrowHead(diagram2, id);
3738
+ if (look === "neo") {
3739
+ svgDraw_default.insertDropShadow(diagram2, conf);
3740
+ }
3741
+ function activeEnd(msg, verticalPos) {
3742
+ const activationData = bounds.endActivation(msg);
3743
+ if (activationData.starty + 18 > verticalPos) {
3744
+ activationData.starty = verticalPos - 6;
3745
+ verticalPos += 12;
3746
+ }
3747
+ svgDraw_default.drawActivation(
3748
+ diagram2,
3749
+ activationData,
3750
+ verticalPos,
3751
+ conf,
3752
+ actorActivations(msg.from).length,
3753
+ diagObj,
3754
+ actorIndexMap
3755
+ );
3756
+ bounds.insert(activationData.startx, verticalPos - 10, activationData.stopx, verticalPos);
3757
+ }
3758
+ __name(activeEnd, "activeEnd");
3759
+ let sequenceIndex = 1;
3760
+ let sequenceIndexStep = 1;
3761
+ const messagesToDraw = [];
3762
+ const backgrounds = [];
3763
+ let index = 0;
3764
+ for (const msg of messages) {
3765
+ let loopModel, noteModel, msgModel;
3766
+ switch (msg.type) {
3767
+ case diagObj.db.LINETYPE.NOTE:
3768
+ bounds.resetVerticalPos();
3769
+ noteModel = msg.noteModel;
3770
+ await drawNote(diagram2, noteModel, msg.id);
3771
+ break;
3772
+ case diagObj.db.LINETYPE.ACTIVE_START:
3773
+ bounds.newActivation(msg, diagram2, actors);
3774
+ break;
3775
+ case diagObj.db.LINETYPE.CENTRAL_CONNECTION:
3776
+ bounds.newActivation(msg, diagram2, actors);
3777
+ break;
3778
+ case diagObj.db.LINETYPE.CENTRAL_CONNECTION_REVERSE:
3779
+ bounds.newActivation(msg, diagram2, actors);
3780
+ break;
3781
+ case diagObj.db.LINETYPE.ACTIVE_END:
3782
+ activeEnd(msg, bounds.getVerticalPos());
3783
+ break;
3784
+ case diagObj.db.LINETYPE.LOOP_START:
3785
+ adjustLoopHeightForWrap(
3786
+ loopWidths,
3787
+ msg,
3788
+ conf.boxMargin,
3789
+ conf.boxMargin + conf.boxTextMargin,
3790
+ (message) => bounds.newLoop(message)
3791
+ );
3792
+ break;
3793
+ case diagObj.db.LINETYPE.LOOP_END:
3794
+ loopModel = bounds.endLoop();
3795
+ await svgDraw_default.drawLoop(diagram2, loopModel, "loop", conf, msg);
3796
+ bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());
3797
+ bounds.models.addLoop(loopModel);
3798
+ break;
3799
+ case diagObj.db.LINETYPE.RECT_START:
3800
+ adjustLoopHeightForWrap(loopWidths, msg, conf.boxMargin, conf.boxMargin, (message) => {
3801
+ let fill = message.message;
3802
+ if (!fill) {
3803
+ fill = (themeVariables == null ? void 0 : themeVariables.rectBkgColor) || (themeVariables == null ? void 0 : themeVariables.actorBkg) || "rgba(128, 128, 128, 0.5)";
3804
+ }
3805
+ bounds.newLoop(void 0, fill);
3806
+ });
3807
+ break;
3808
+ case diagObj.db.LINETYPE.RECT_END:
3809
+ loopModel = bounds.endLoop();
3810
+ backgrounds.push(loopModel);
3811
+ bounds.models.addLoop(loopModel);
3812
+ bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());
3813
+ break;
3814
+ case diagObj.db.LINETYPE.OPT_START:
3815
+ adjustLoopHeightForWrap(
3816
+ loopWidths,
3817
+ msg,
3818
+ conf.boxMargin,
3819
+ conf.boxMargin + conf.boxTextMargin,
3820
+ (message) => bounds.newLoop(message)
3821
+ );
3822
+ break;
3823
+ case diagObj.db.LINETYPE.OPT_END:
3824
+ loopModel = bounds.endLoop();
3825
+ await svgDraw_default.drawLoop(diagram2, loopModel, "opt", conf, msg);
3826
+ bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());
3827
+ bounds.models.addLoop(loopModel);
3828
+ break;
3829
+ case diagObj.db.LINETYPE.ALT_START:
3830
+ adjustLoopHeightForWrap(
3831
+ loopWidths,
3832
+ msg,
3833
+ conf.boxMargin,
3834
+ conf.boxMargin + conf.boxTextMargin,
3835
+ (message) => bounds.newLoop(message)
3836
+ );
3837
+ break;
3838
+ case diagObj.db.LINETYPE.ALT_ELSE:
3839
+ adjustLoopHeightForWrap(
3840
+ loopWidths,
3841
+ msg,
3842
+ conf.boxMargin + conf.boxTextMargin,
3843
+ conf.boxMargin,
3844
+ (message) => bounds.addSectionToLoop(message)
3845
+ );
3846
+ break;
3847
+ case diagObj.db.LINETYPE.ALT_END:
3848
+ loopModel = bounds.endLoop();
3849
+ await svgDraw_default.drawLoop(diagram2, loopModel, "alt", conf, msg);
3850
+ bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());
3851
+ bounds.models.addLoop(loopModel);
3852
+ break;
3853
+ case diagObj.db.LINETYPE.PAR_START:
3854
+ case diagObj.db.LINETYPE.PAR_OVER_START:
3855
+ adjustLoopHeightForWrap(
3856
+ loopWidths,
3857
+ msg,
3858
+ conf.boxMargin,
3859
+ conf.boxMargin + conf.boxTextMargin,
3860
+ (message) => bounds.newLoop(message)
3861
+ );
3862
+ bounds.saveVerticalPos();
3863
+ break;
3864
+ case diagObj.db.LINETYPE.PAR_AND:
3865
+ adjustLoopHeightForWrap(
3866
+ loopWidths,
3867
+ msg,
3868
+ conf.boxMargin + conf.boxTextMargin,
3869
+ conf.boxMargin,
3870
+ (message) => bounds.addSectionToLoop(message)
3871
+ );
3872
+ break;
3873
+ case diagObj.db.LINETYPE.PAR_END:
3874
+ loopModel = bounds.endLoop();
3875
+ await svgDraw_default.drawLoop(diagram2, loopModel, "par", conf, msg);
3876
+ bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());
3877
+ bounds.models.addLoop(loopModel);
3878
+ break;
3879
+ case diagObj.db.LINETYPE.AUTONUMBER:
3880
+ sequenceIndex = msg.message.start || sequenceIndex;
3881
+ sequenceIndexStep = msg.message.step || sequenceIndexStep;
3882
+ if (msg.message.visible) {
3883
+ diagObj.db.enableSequenceNumbers();
3884
+ } else {
3885
+ diagObj.db.disableSequenceNumbers();
3886
+ }
3887
+ break;
3888
+ case diagObj.db.LINETYPE.CRITICAL_START:
3889
+ adjustLoopHeightForWrap(
3890
+ loopWidths,
3891
+ msg,
3892
+ conf.boxMargin,
3893
+ conf.boxMargin + conf.boxTextMargin,
3894
+ (message) => bounds.newLoop(message)
3895
+ );
3896
+ break;
3897
+ case diagObj.db.LINETYPE.CRITICAL_OPTION:
3898
+ adjustLoopHeightForWrap(
3899
+ loopWidths,
3900
+ msg,
3901
+ conf.boxMargin + conf.boxTextMargin,
3902
+ conf.boxMargin,
3903
+ (message) => bounds.addSectionToLoop(message)
3904
+ );
3905
+ break;
3906
+ case diagObj.db.LINETYPE.CRITICAL_END:
3907
+ loopModel = bounds.endLoop();
3908
+ await svgDraw_default.drawLoop(diagram2, loopModel, "critical", conf, msg);
3909
+ bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());
3910
+ bounds.models.addLoop(loopModel);
3911
+ break;
3912
+ case diagObj.db.LINETYPE.BREAK_START:
3913
+ adjustLoopHeightForWrap(
3914
+ loopWidths,
3915
+ msg,
3916
+ conf.boxMargin,
3917
+ conf.boxMargin + conf.boxTextMargin,
3918
+ (message) => bounds.newLoop(message)
3919
+ );
3920
+ break;
3921
+ case diagObj.db.LINETYPE.BREAK_END:
3922
+ loopModel = bounds.endLoop();
3923
+ await svgDraw_default.drawLoop(diagram2, loopModel, "break", conf, msg);
3924
+ bounds.bumpVerticalPos(loopModel.stopy - bounds.getVerticalPos());
3925
+ bounds.models.addLoop(loopModel);
3926
+ break;
3927
+ default:
3928
+ try {
3929
+ msgModel = msg.msgModel;
3930
+ msgModel.starty = bounds.getVerticalPos();
3931
+ msgModel.sequenceIndex = sequenceIndex;
3932
+ msgModel.sequenceVisible = diagObj.db.showSequenceNumbers();
3933
+ msgModel.id = msg.id;
3934
+ msgModel.from = msg.from;
3935
+ msgModel.to = msg.to;
3936
+ const lineStartY = await boundMessage(diagram2, msgModel);
3937
+ adjustCreatedDestroyedData(
3938
+ msg,
3939
+ msgModel,
3940
+ lineStartY,
3941
+ index,
3942
+ actors,
3943
+ createdActors,
3944
+ destroyedActors
3945
+ );
3946
+ messagesToDraw.push({ messageModel: msgModel, lineStartY, msg });
3947
+ bounds.models.addMessage(msgModel);
3948
+ } catch (e) {
3949
+ log.error("error while drawing message", e);
3950
+ }
3951
+ }
3952
+ if ([
3953
+ diagObj.db.LINETYPE.SOLID_OPEN,
3954
+ diagObj.db.LINETYPE.DOTTED_OPEN,
3955
+ diagObj.db.LINETYPE.SOLID,
3956
+ diagObj.db.LINETYPE.SOLID_TOP,
3957
+ diagObj.db.LINETYPE.SOLID_BOTTOM,
3958
+ diagObj.db.LINETYPE.STICK_TOP,
3959
+ diagObj.db.LINETYPE.STICK_BOTTOM,
3960
+ diagObj.db.LINETYPE.SOLID_TOP_DOTTED,
3961
+ diagObj.db.LINETYPE.SOLID_BOTTOM_DOTTED,
3962
+ diagObj.db.LINETYPE.STICK_TOP_DOTTED,
3963
+ diagObj.db.LINETYPE.STICK_BOTTOM_DOTTED,
3964
+ diagObj.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,
3965
+ diagObj.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE,
3966
+ diagObj.db.LINETYPE.STICK_ARROW_TOP_REVERSE,
3967
+ diagObj.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,
3968
+ diagObj.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,
3969
+ diagObj.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,
3970
+ diagObj.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,
3971
+ diagObj.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,
3972
+ diagObj.db.LINETYPE.DOTTED,
3973
+ diagObj.db.LINETYPE.SOLID_CROSS,
3974
+ diagObj.db.LINETYPE.DOTTED_CROSS,
3975
+ diagObj.db.LINETYPE.SOLID_POINT,
3976
+ diagObj.db.LINETYPE.DOTTED_POINT,
3977
+ diagObj.db.LINETYPE.BIDIRECTIONAL_SOLID,
3978
+ diagObj.db.LINETYPE.BIDIRECTIONAL_DOTTED
3979
+ ].includes(msg.type)) {
3980
+ sequenceIndex = Math.round((sequenceIndex + sequenceIndexStep) * 100) / 100;
3981
+ }
3982
+ index++;
3983
+ }
3984
+ log.debug("createdActors", createdActors);
3985
+ log.debug("destroyedActors", destroyedActors);
3986
+ await drawActors(diagram2, actors, actorKeys, false, id, diagObj, actorIndexMap);
3987
+ for (const e of messagesToDraw) {
3988
+ await drawMessage(diagram2, e.messageModel, e.lineStartY, diagObj, e.msg, id);
3989
+ }
3990
+ if (conf.mirrorActors) {
3991
+ await drawActors(diagram2, actors, actorKeys, true, id, diagObj, actorIndexMap);
3992
+ }
3993
+ backgrounds.forEach((e) => svgDraw_default.drawBackgroundRect(diagram2, e));
3994
+ fixLifeLineHeights(diagram2, actors, actorKeys, conf);
3995
+ for (const box2 of bounds.models.boxes) {
3996
+ box2.height = bounds.getVerticalPos() - box2.y;
3997
+ bounds.insert(box2.x, box2.y, box2.x + box2.width, box2.height);
3998
+ const boxPadding = conf.boxMargin * 2;
3999
+ box2.startx = box2.x - boxPadding;
4000
+ box2.starty = box2.y - boxPadding * 0.25;
4001
+ box2.stopx = box2.startx + box2.width + 2 * boxPadding;
4002
+ box2.stopy = box2.starty + box2.height + boxPadding * 0.75;
4003
+ box2.stroke = "rgb(0,0,0, 0.5)";
4004
+ svgDraw_default.drawBox(diagram2, box2, conf);
4005
+ }
4006
+ if (hasBoxes) {
4007
+ bounds.bumpVerticalPos(conf.boxMargin);
4008
+ }
4009
+ const requiredBoxSize = drawActorsPopup(diagram2, actors, actorKeys, doc);
4010
+ const { bounds: box } = bounds.getBounds();
4011
+ if (box.startx === void 0) {
4012
+ box.startx = 0;
4013
+ }
4014
+ if (box.starty === void 0) {
4015
+ box.starty = 0;
4016
+ }
4017
+ if (box.stopx === void 0) {
4018
+ box.stopx = 0;
4019
+ }
4020
+ if (box.stopy === void 0) {
4021
+ box.stopy = 0;
4022
+ }
4023
+ let boxHeight = box.stopy - box.starty;
4024
+ if (boxHeight < requiredBoxSize.maxHeight) {
4025
+ boxHeight = requiredBoxSize.maxHeight;
4026
+ }
4027
+ let height = boxHeight + 2 * conf.diagramMarginY;
4028
+ if (conf.mirrorActors) {
4029
+ height = height - conf.boxMargin + conf.bottomMarginAdj;
4030
+ }
4031
+ let boxWidth = box.stopx - box.startx;
4032
+ if (boxWidth < requiredBoxSize.maxWidth) {
4033
+ boxWidth = requiredBoxSize.maxWidth;
4034
+ }
4035
+ const width = boxWidth + 2 * conf.diagramMarginX;
4036
+ if (title) {
4037
+ diagram2.append("text").text(title).attr("x", (box.stopx - box.startx) / 2 - 2 * conf.diagramMarginX).attr("y", -25);
4038
+ }
4039
+ configureSvgSize(diagram2, height, width, conf.useMaxWidth);
4040
+ const extraVertForTitle = title ? 40 : 0;
4041
+ const extraHeightForNeoActors = actors.size && look === "neo" ? 30 : 0;
4042
+ diagram2.attr(
4043
+ "viewBox",
4044
+ box.startx - conf.diagramMarginX + " -" + (conf.diagramMarginY + extraVertForTitle) + " " + width + " " + (height + extraVertForTitle + extraHeightForNeoActors)
4045
+ );
4046
+ log.debug(`models:`, bounds.models);
4047
+ }, "draw");
4048
+ async function getMaxMessageWidthPerActor(actors, messages, diagObj) {
4049
+ const maxMessageWidthPerActor = {};
4050
+ for (const msg of messages) {
4051
+ if (actors.get(msg.to) && actors.get(msg.from)) {
4052
+ const actor = actors.get(msg.to);
4053
+ if (msg.placement === diagObj.db.PLACEMENT.LEFTOF && !actor.prevActor) {
4054
+ continue;
4055
+ }
4056
+ if (msg.placement === diagObj.db.PLACEMENT.RIGHTOF && !actor.nextActor) {
4057
+ continue;
4058
+ }
4059
+ const isNote = msg.placement !== void 0;
4060
+ const isMessage = !isNote;
4061
+ const textFont = isNote ? noteFont(conf) : messageFont(conf);
4062
+ const wrappedMessage = msg.wrap ? utils_default.wrapLabel(msg.message, conf.width - 2 * conf.wrapPadding, textFont) : msg.message;
4063
+ const messageDimensions = hasKatex(wrappedMessage) ? await calculateMathMLDimensions(msg.message, getConfig2()) : utils_default.calculateTextDimensions(wrappedMessage, textFont);
4064
+ const messageWidth = messageDimensions.width + 2 * conf.wrapPadding;
4065
+ if (isMessage && msg.from === actor.nextActor) {
4066
+ maxMessageWidthPerActor[msg.to] = common_default.getMax(
4067
+ maxMessageWidthPerActor[msg.to] || 0,
4068
+ messageWidth
4069
+ );
4070
+ } else if (isMessage && msg.from === actor.prevActor) {
4071
+ maxMessageWidthPerActor[msg.from] = common_default.getMax(
4072
+ maxMessageWidthPerActor[msg.from] || 0,
4073
+ messageWidth
4074
+ );
4075
+ } else if (isMessage && msg.from === msg.to) {
4076
+ maxMessageWidthPerActor[msg.from] = common_default.getMax(
4077
+ maxMessageWidthPerActor[msg.from] || 0,
4078
+ messageWidth / 2
4079
+ );
4080
+ maxMessageWidthPerActor[msg.to] = common_default.getMax(
4081
+ maxMessageWidthPerActor[msg.to] || 0,
4082
+ messageWidth / 2
4083
+ );
4084
+ } else if (msg.placement === diagObj.db.PLACEMENT.RIGHTOF) {
4085
+ maxMessageWidthPerActor[msg.from] = common_default.getMax(
4086
+ maxMessageWidthPerActor[msg.from] || 0,
4087
+ messageWidth
4088
+ );
4089
+ } else if (msg.placement === diagObj.db.PLACEMENT.LEFTOF) {
4090
+ maxMessageWidthPerActor[actor.prevActor] = common_default.getMax(
4091
+ maxMessageWidthPerActor[actor.prevActor] || 0,
4092
+ messageWidth
4093
+ );
4094
+ } else if (msg.placement === diagObj.db.PLACEMENT.OVER) {
4095
+ if (actor.prevActor) {
4096
+ maxMessageWidthPerActor[actor.prevActor] = common_default.getMax(
4097
+ maxMessageWidthPerActor[actor.prevActor] || 0,
4098
+ messageWidth / 2
4099
+ );
4100
+ }
4101
+ if (actor.nextActor) {
4102
+ maxMessageWidthPerActor[msg.from] = common_default.getMax(
4103
+ maxMessageWidthPerActor[msg.from] || 0,
4104
+ messageWidth / 2
4105
+ );
4106
+ }
4107
+ }
4108
+ }
4109
+ }
4110
+ log.debug("maxMessageWidthPerActor:", maxMessageWidthPerActor);
4111
+ return maxMessageWidthPerActor;
4112
+ }
4113
+ __name(getMaxMessageWidthPerActor, "getMaxMessageWidthPerActor");
4114
+ var getRequiredPopupWidth = /* @__PURE__ */ __name(function(actor) {
4115
+ let requiredPopupWidth = 0;
4116
+ const textFont = actorFont(conf);
4117
+ for (const key in actor.links) {
4118
+ const labelDimensions = utils_default.calculateTextDimensions(key, textFont);
4119
+ const labelWidth = labelDimensions.width + 2 * conf.wrapPadding + 2 * conf.boxMargin;
4120
+ if (requiredPopupWidth < labelWidth) {
4121
+ requiredPopupWidth = labelWidth;
4122
+ }
4123
+ }
4124
+ return requiredPopupWidth;
4125
+ }, "getRequiredPopupWidth");
4126
+ async function calculateActorMargins(actors, actorToMessageWidth, boxes) {
4127
+ let maxHeight = 0;
4128
+ for (const prop of actors.keys()) {
4129
+ const actor = actors.get(prop);
4130
+ if (actor.wrap) {
4131
+ actor.description = utils_default.wrapLabel(
4132
+ actor.description,
4133
+ conf.width - 2 * conf.wrapPadding,
4134
+ actorFont(conf)
4135
+ );
4136
+ }
4137
+ const actDims = hasKatex(actor.description) ? await calculateMathMLDimensions(actor.description, getConfig2()) : utils_default.calculateTextDimensions(actor.description, actorFont(conf));
4138
+ actor.width = actor.wrap ? conf.width : common_default.getMax(conf.width, actDims.width + 2 * conf.wrapPadding);
4139
+ actor.height = actor.wrap ? common_default.getMax(actDims.height, conf.height) : conf.height;
4140
+ maxHeight = common_default.getMax(maxHeight, actor.height);
4141
+ }
4142
+ for (const actorKey in actorToMessageWidth) {
4143
+ const actor = actors.get(actorKey);
4144
+ if (!actor) {
4145
+ continue;
4146
+ }
4147
+ const nextActor = actors.get(actor.nextActor);
4148
+ if (!nextActor) {
4149
+ const messageWidth2 = actorToMessageWidth[actorKey];
4150
+ const actorWidth2 = messageWidth2 + conf.actorMargin - actor.width / 2;
4151
+ actor.margin = common_default.getMax(actorWidth2, conf.actorMargin);
4152
+ continue;
4153
+ }
4154
+ const messageWidth = actorToMessageWidth[actorKey];
4155
+ const actorWidth = messageWidth + conf.actorMargin - actor.width / 2 - nextActor.width / 2;
4156
+ actor.margin = common_default.getMax(actorWidth, conf.actorMargin);
4157
+ }
4158
+ let maxBoxHeight = 0;
4159
+ boxes.forEach((box) => {
4160
+ const textFont = messageFont(conf);
4161
+ let totalWidth = box.actorKeys.reduce((total, aKey) => {
4162
+ return total += actors.get(aKey).width + (actors.get(aKey).margin || 0);
4163
+ }, 0);
4164
+ const standardBoxPadding = conf.boxMargin * 8;
4165
+ totalWidth += standardBoxPadding;
4166
+ totalWidth -= 2 * conf.boxTextMargin;
4167
+ if (box.wrap) {
4168
+ box.name = utils_default.wrapLabel(box.name, totalWidth - 2 * conf.wrapPadding, textFont);
4169
+ }
4170
+ const boxMsgDimensions = utils_default.calculateTextDimensions(box.name, textFont);
4171
+ maxBoxHeight = common_default.getMax(boxMsgDimensions.height, maxBoxHeight);
4172
+ const minWidth = common_default.getMax(totalWidth, boxMsgDimensions.width + 2 * conf.wrapPadding);
4173
+ box.margin = conf.boxTextMargin;
4174
+ if (totalWidth < minWidth) {
4175
+ const missing = (minWidth - totalWidth) / 2;
4176
+ box.margin += missing;
4177
+ }
4178
+ });
4179
+ boxes.forEach((box) => box.textMaxHeight = maxBoxHeight);
4180
+ return common_default.getMax(maxHeight, conf.height);
4181
+ }
4182
+ __name(calculateActorMargins, "calculateActorMargins");
4183
+ var buildNoteModel = /* @__PURE__ */ __name(async function(msg, actors, diagObj) {
4184
+ const fromActor = actors.get(msg.from);
4185
+ const toActor = actors.get(msg.to);
4186
+ const startx = fromActor.x;
4187
+ const stopx = toActor.x;
4188
+ const shouldWrap = msg.wrap && msg.message;
4189
+ let textDimensions = hasKatex(msg.message) ? await calculateMathMLDimensions(msg.message, getConfig2()) : utils_default.calculateTextDimensions(
4190
+ shouldWrap ? utils_default.wrapLabel(msg.message, conf.width, noteFont(conf)) : msg.message,
4191
+ noteFont(conf)
4192
+ );
4193
+ const noteModel = {
4194
+ width: shouldWrap ? conf.width : common_default.getMax(conf.width, textDimensions.width + 2 * conf.noteMargin),
4195
+ height: 0,
4196
+ startx: fromActor.x,
4197
+ stopx: 0,
4198
+ starty: 0,
4199
+ stopy: 0,
4200
+ message: msg.message
4201
+ };
4202
+ if (msg.placement === diagObj.db.PLACEMENT.RIGHTOF) {
4203
+ noteModel.width = shouldWrap ? common_default.getMax(conf.width, textDimensions.width) : common_default.getMax(
4204
+ fromActor.width / 2 + toActor.width / 2,
4205
+ textDimensions.width + 2 * conf.noteMargin
4206
+ );
4207
+ noteModel.startx = startx + (fromActor.width + conf.actorMargin) / 2;
4208
+ } else if (msg.placement === diagObj.db.PLACEMENT.LEFTOF) {
4209
+ noteModel.width = shouldWrap ? common_default.getMax(conf.width, textDimensions.width + 2 * conf.noteMargin) : common_default.getMax(
4210
+ fromActor.width / 2 + toActor.width / 2,
4211
+ textDimensions.width + 2 * conf.noteMargin
4212
+ );
4213
+ noteModel.startx = startx - noteModel.width + (fromActor.width - conf.actorMargin) / 2;
4214
+ } else if (msg.to === msg.from) {
4215
+ textDimensions = utils_default.calculateTextDimensions(
4216
+ shouldWrap ? utils_default.wrapLabel(msg.message, common_default.getMax(conf.width, fromActor.width), noteFont(conf)) : msg.message,
4217
+ noteFont(conf)
4218
+ );
4219
+ noteModel.width = shouldWrap ? common_default.getMax(conf.width, fromActor.width) : common_default.getMax(fromActor.width, conf.width, textDimensions.width + 2 * conf.noteMargin);
4220
+ noteModel.startx = startx + (fromActor.width - noteModel.width) / 2;
4221
+ } else {
4222
+ noteModel.width = Math.abs(startx + fromActor.width / 2 - (stopx + toActor.width / 2)) + conf.actorMargin;
4223
+ noteModel.startx = startx < stopx ? startx + fromActor.width / 2 - conf.actorMargin / 2 : stopx + toActor.width / 2 - conf.actorMargin / 2;
4224
+ }
4225
+ if (shouldWrap) {
4226
+ noteModel.message = utils_default.wrapLabel(
4227
+ msg.message,
4228
+ noteModel.width - 2 * conf.wrapPadding,
4229
+ noteFont(conf)
4230
+ );
4231
+ }
4232
+ log.debug(
4233
+ `NM:[${noteModel.startx},${noteModel.stopx},${noteModel.starty},${noteModel.stopy}:${noteModel.width},${noteModel.height}=${msg.message}]`
4234
+ );
4235
+ return noteModel;
4236
+ }, "buildNoteModel");
4237
+ var CENTRAL_CONNECTION_BASE_OFFSET = 4;
4238
+ var hasCentralConnection = /* @__PURE__ */ __name(function(msg, diagObj) {
4239
+ const { CENTRAL_CONNECTION, CENTRAL_CONNECTION_REVERSE, CENTRAL_CONNECTION_DUAL } = diagObj.db.LINETYPE;
4240
+ return [CENTRAL_CONNECTION, CENTRAL_CONNECTION_REVERSE, CENTRAL_CONNECTION_DUAL].includes(
4241
+ msg.centralConnection
4242
+ );
4243
+ }, "hasCentralConnection");
4244
+ var calculateCentralConnectionOffset = /* @__PURE__ */ __name(function(msg, diagObj, isArrowToRight) {
4245
+ const {
4246
+ CENTRAL_CONNECTION_REVERSE,
4247
+ CENTRAL_CONNECTION_DUAL,
4248
+ BIDIRECTIONAL_SOLID,
4249
+ BIDIRECTIONAL_DOTTED
4250
+ } = diagObj.db.LINETYPE;
4251
+ let offset = 0;
4252
+ if (msg.centralConnection === CENTRAL_CONNECTION_REVERSE || msg.centralConnection === CENTRAL_CONNECTION_DUAL) {
4253
+ offset += CENTRAL_CONNECTION_BASE_OFFSET;
4254
+ }
4255
+ if ((msg.centralConnection === CENTRAL_CONNECTION_REVERSE || msg.centralConnection === CENTRAL_CONNECTION_DUAL) && (msg.type === BIDIRECTIONAL_SOLID || msg.type === BIDIRECTIONAL_DOTTED)) {
4256
+ offset += isArrowToRight ? 0 : -6;
4257
+ }
4258
+ return offset;
4259
+ }, "calculateCentralConnectionOffset");
4260
+ var isReverseArrowType = /* @__PURE__ */ __name(function(msg, diagObj) {
4261
+ const {
4262
+ SOLID_ARROW_TOP_REVERSE,
4263
+ SOLID_ARROW_TOP_REVERSE_DOTTED,
4264
+ SOLID_ARROW_BOTTOM_REVERSE,
4265
+ SOLID_ARROW_BOTTOM_REVERSE_DOTTED,
4266
+ STICK_ARROW_TOP_REVERSE,
4267
+ STICK_ARROW_TOP_REVERSE_DOTTED,
4268
+ STICK_ARROW_BOTTOM_REVERSE,
4269
+ STICK_ARROW_BOTTOM_REVERSE_DOTTED
4270
+ } = diagObj.db.LINETYPE;
4271
+ return [
4272
+ SOLID_ARROW_TOP_REVERSE,
4273
+ SOLID_ARROW_TOP_REVERSE_DOTTED,
4274
+ SOLID_ARROW_BOTTOM_REVERSE,
4275
+ SOLID_ARROW_BOTTOM_REVERSE_DOTTED,
4276
+ STICK_ARROW_TOP_REVERSE,
4277
+ STICK_ARROW_TOP_REVERSE_DOTTED,
4278
+ STICK_ARROW_BOTTOM_REVERSE,
4279
+ STICK_ARROW_BOTTOM_REVERSE_DOTTED
4280
+ ].includes(msg.type);
4281
+ }, "isReverseArrowType");
4282
+ var isBidirectionalArrowType = /* @__PURE__ */ __name(function(msg, diagObj) {
4283
+ const { BIDIRECTIONAL_SOLID, BIDIRECTIONAL_DOTTED } = diagObj.db.LINETYPE;
4284
+ return [BIDIRECTIONAL_SOLID, BIDIRECTIONAL_DOTTED].includes(msg.type);
4285
+ }, "isBidirectionalArrowType");
4286
+ var buildMessageModel = /* @__PURE__ */ __name(function(msg, actors, diagObj) {
4287
+ const { look } = getConfig2();
4288
+ if (![
4289
+ diagObj.db.LINETYPE.SOLID_OPEN,
4290
+ diagObj.db.LINETYPE.DOTTED_OPEN,
4291
+ diagObj.db.LINETYPE.SOLID,
4292
+ diagObj.db.LINETYPE.SOLID_TOP,
4293
+ diagObj.db.LINETYPE.SOLID_BOTTOM,
4294
+ diagObj.db.LINETYPE.STICK_TOP,
4295
+ diagObj.db.LINETYPE.STICK_BOTTOM,
4296
+ diagObj.db.LINETYPE.SOLID_TOP_DOTTED,
4297
+ diagObj.db.LINETYPE.SOLID_BOTTOM_DOTTED,
4298
+ diagObj.db.LINETYPE.STICK_TOP_DOTTED,
4299
+ diagObj.db.LINETYPE.STICK_BOTTOM_DOTTED,
4300
+ diagObj.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,
4301
+ diagObj.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE,
4302
+ diagObj.db.LINETYPE.STICK_ARROW_TOP_REVERSE,
4303
+ diagObj.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,
4304
+ diagObj.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,
4305
+ diagObj.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,
4306
+ diagObj.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,
4307
+ diagObj.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,
4308
+ diagObj.db.LINETYPE.DOTTED,
4309
+ diagObj.db.LINETYPE.SOLID_CROSS,
4310
+ diagObj.db.LINETYPE.DOTTED_CROSS,
4311
+ diagObj.db.LINETYPE.SOLID_POINT,
4312
+ diagObj.db.LINETYPE.DOTTED_POINT,
4313
+ diagObj.db.LINETYPE.BIDIRECTIONAL_SOLID,
4314
+ diagObj.db.LINETYPE.BIDIRECTIONAL_DOTTED
4315
+ ].includes(msg.type)) {
4316
+ return {};
4317
+ }
4318
+ const [fromLeft, fromRight] = activationBounds(msg.from, actors);
4319
+ const [toLeft, toRight] = activationBounds(msg.to, actors);
4320
+ const isArrowToRight = fromLeft <= toLeft;
4321
+ let startx = isArrowToRight ? fromRight : fromLeft;
4322
+ let stopx = isArrowToRight ? toLeft : toRight;
4323
+ if (look === "neo") {
4324
+ const offset = 3;
4325
+ if (msg.type !== diagObj.db.LINETYPE.SOLID_OPEN) {
4326
+ stopx += isArrowToRight ? -3 : offset;
4327
+ }
4328
+ if (msg.type === diagObj.db.LINETYPE.BIDIRECTIONAL_SOLID || msg.type === diagObj.db.LINETYPE.BIDIRECTIONAL_DOTTED) {
4329
+ startx += isArrowToRight ? offset : -3;
4330
+ }
4331
+ }
4332
+ startx += calculateCentralConnectionOffset(msg, diagObj, isArrowToRight);
4333
+ const isArrowToActivation = Math.abs(toLeft - toRight) > 2;
4334
+ const adjustValue = /* @__PURE__ */ __name((value) => {
4335
+ return isArrowToRight ? -value : value;
4336
+ }, "adjustValue");
4337
+ if (msg.from === msg.to) {
4338
+ stopx = startx;
4339
+ } else {
4340
+ if (msg.activate && !isArrowToActivation) {
4341
+ stopx += adjustValue(conf.activationWidth / 2 - 1);
4342
+ }
4343
+ if (![
4344
+ diagObj.db.LINETYPE.SOLID_OPEN,
4345
+ diagObj.db.LINETYPE.DOTTED_OPEN,
4346
+ diagObj.db.LINETYPE.STICK_TOP,
4347
+ diagObj.db.LINETYPE.STICK_BOTTOM,
4348
+ diagObj.db.LINETYPE.STICK_TOP_DOTTED,
4349
+ diagObj.db.LINETYPE.STICK_BOTTOM_DOTTED,
4350
+ diagObj.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,
4351
+ diagObj.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,
4352
+ diagObj.db.LINETYPE.STICK_ARROW_TOP_REVERSE,
4353
+ diagObj.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,
4354
+ diagObj.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,
4355
+ diagObj.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,
4356
+ diagObj.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,
4357
+ diagObj.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE
4358
+ ].includes(msg.type)) {
4359
+ stopx += adjustValue(3);
4360
+ }
4361
+ if ([
4362
+ diagObj.db.LINETYPE.BIDIRECTIONAL_SOLID,
4363
+ diagObj.db.LINETYPE.BIDIRECTIONAL_DOTTED,
4364
+ diagObj.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,
4365
+ diagObj.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,
4366
+ diagObj.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,
4367
+ diagObj.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE
4368
+ ].includes(msg.type)) {
4369
+ startx -= adjustValue(3);
4370
+ }
4371
+ }
4372
+ const allBounds = [fromLeft, fromRight, toLeft, toRight];
4373
+ const boundedWidth = Math.abs(startx - stopx);
4374
+ if (msg.wrap && msg.message) {
4375
+ msg.message = utils_default.wrapLabel(
4376
+ msg.message,
4377
+ common_default.getMax(boundedWidth + 2 * conf.wrapPadding, conf.width),
4378
+ messageFont(conf)
4379
+ );
4380
+ }
4381
+ const msgDims = utils_default.calculateTextDimensions(msg.message, messageFont(conf));
4382
+ return {
4383
+ width: common_default.getMax(
4384
+ msg.wrap ? 0 : msgDims.width + 2 * conf.wrapPadding,
4385
+ boundedWidth + 2 * conf.wrapPadding,
4386
+ conf.width
4387
+ ),
4388
+ height: 0,
4389
+ startx,
4390
+ stopx,
4391
+ starty: 0,
4392
+ stopy: 0,
4393
+ message: msg.message,
4394
+ type: msg.type,
4395
+ wrap: msg.wrap,
4396
+ fromBounds: Math.min.apply(null, allBounds),
4397
+ toBounds: Math.max.apply(null, allBounds)
4398
+ };
4399
+ }, "buildMessageModel");
4400
+ var calculateLoopBounds = /* @__PURE__ */ __name(async function(messages, actors, _maxWidthPerActor, diagObj) {
4401
+ const loops = {};
4402
+ const stack = [];
4403
+ let current, noteModel, msgModel;
4404
+ for (const msg of messages) {
4405
+ switch (msg.type) {
4406
+ case diagObj.db.LINETYPE.LOOP_START:
4407
+ case diagObj.db.LINETYPE.ALT_START:
4408
+ case diagObj.db.LINETYPE.OPT_START:
4409
+ case diagObj.db.LINETYPE.PAR_START:
4410
+ case diagObj.db.LINETYPE.PAR_OVER_START:
4411
+ case diagObj.db.LINETYPE.CRITICAL_START:
4412
+ case diagObj.db.LINETYPE.BREAK_START:
4413
+ stack.push({
4414
+ id: msg.id,
4415
+ msg: msg.message,
4416
+ from: Number.MAX_SAFE_INTEGER,
4417
+ to: Number.MIN_SAFE_INTEGER,
4418
+ width: 0
4419
+ });
4420
+ break;
4421
+ case diagObj.db.LINETYPE.ALT_ELSE:
4422
+ case diagObj.db.LINETYPE.PAR_AND:
4423
+ case diagObj.db.LINETYPE.CRITICAL_OPTION:
4424
+ if (msg.message) {
4425
+ current = stack.pop();
4426
+ loops[current.id] = current;
4427
+ loops[msg.id] = current;
4428
+ stack.push(current);
4429
+ }
4430
+ break;
4431
+ case diagObj.db.LINETYPE.LOOP_END:
4432
+ case diagObj.db.LINETYPE.ALT_END:
4433
+ case diagObj.db.LINETYPE.OPT_END:
4434
+ case diagObj.db.LINETYPE.PAR_END:
4435
+ case diagObj.db.LINETYPE.CRITICAL_END:
4436
+ case diagObj.db.LINETYPE.BREAK_END:
4437
+ current = stack.pop();
4438
+ loops[current.id] = current;
4439
+ break;
4440
+ case diagObj.db.LINETYPE.ACTIVE_START:
4441
+ {
4442
+ const actorRect = actors.get(msg.from ? msg.from : msg.to.actor);
4443
+ const stackedSize = actorActivations(msg.from ? msg.from : msg.to.actor).length;
4444
+ const x = actorRect.x + actorRect.width / 2 + (stackedSize - 1) * conf.activationWidth / 2;
4445
+ const toAdd = {
4446
+ startx: x,
4447
+ stopx: x + conf.activationWidth,
4448
+ actor: msg.from,
4449
+ enabled: true
4450
+ };
4451
+ bounds.activations.push(toAdd);
4452
+ }
4453
+ break;
4454
+ case diagObj.db.LINETYPE.ACTIVE_END:
4455
+ {
4456
+ const lastActorActivationIdx = bounds.activations.map((a) => a.actor).lastIndexOf(msg.from);
4457
+ bounds.activations.splice(lastActorActivationIdx, 1).splice(0, 1);
4458
+ }
4459
+ break;
4460
+ }
4461
+ const isNote = msg.placement !== void 0;
4462
+ if (isNote) {
4463
+ noteModel = await buildNoteModel(msg, actors, diagObj);
4464
+ msg.noteModel = noteModel;
4465
+ stack.forEach((stk) => {
4466
+ current = stk;
4467
+ current.from = common_default.getMin(current.from, noteModel.startx);
4468
+ current.to = common_default.getMax(current.to, noteModel.startx + noteModel.width);
4469
+ current.width = common_default.getMax(current.width, Math.abs(current.from - current.to)) - conf.labelBoxWidth;
4470
+ });
4471
+ } else {
4472
+ msgModel = buildMessageModel(msg, actors, diagObj);
4473
+ msg.msgModel = msgModel;
4474
+ if (msgModel.startx && msgModel.stopx && stack.length > 0) {
4475
+ stack.forEach((stk) => {
4476
+ current = stk;
4477
+ if (msgModel.startx === msgModel.stopx) {
4478
+ const from = actors.get(msg.from);
4479
+ const to = actors.get(msg.to);
4480
+ current.from = common_default.getMin(
4481
+ from.x - msgModel.width / 2,
4482
+ from.x - from.width / 2,
4483
+ current.from
4484
+ );
4485
+ current.to = common_default.getMax(
4486
+ to.x + msgModel.width / 2,
4487
+ to.x + from.width / 2,
4488
+ current.to
4489
+ );
4490
+ current.width = common_default.getMax(current.width, Math.abs(current.to - current.from)) - conf.labelBoxWidth;
4491
+ } else {
4492
+ current.from = common_default.getMin(msgModel.startx, current.from);
4493
+ current.to = common_default.getMax(msgModel.stopx, current.to);
4494
+ current.width = common_default.getMax(current.width, msgModel.width) - conf.labelBoxWidth;
4495
+ }
4496
+ });
4497
+ }
4498
+ }
4499
+ }
4500
+ bounds.activations = [];
4501
+ log.debug("Loop type widths:", loops);
4502
+ return loops;
4503
+ }, "calculateLoopBounds");
4504
+ var sequenceRenderer_default = {
4505
+ bounds,
4506
+ drawActors,
4507
+ drawActorsPopup,
4508
+ setConf,
4509
+ draw
4510
+ };
4511
+ var diagram = {
4512
+ parser: sequenceDiagram_default,
4513
+ get db() {
4514
+ return new SequenceDB();
4515
+ },
4516
+ renderer: sequenceRenderer_default,
4517
+ styles: styles_default,
4518
+ init: /* @__PURE__ */ __name((cnf) => {
4519
+ if (!cnf.sequence) {
4520
+ cnf.sequence = {};
4521
+ }
4522
+ if (cnf.wrap) {
4523
+ cnf.sequence.wrap = cnf.wrap;
4524
+ setConfig2({ sequence: { wrap: cnf.wrap } });
4525
+ }
4526
+ }, "init")
4527
+ };
4528
+ export {
4529
+ diagram
4530
+ };