@celljs/ta 4.5.1 → 4.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (510) hide show
  1. package/README.md +27 -23
  2. package/dist/cli.mjs +1634 -50
  3. package/dist/pi/CHANGELOG.md +28 -0
  4. package/dist/pi/dist/bundle/chunks/chunk-44DLKSKE.js +16 -16
  5. package/dist/pi/dist/bundle/chunks/openai-chatgpt.js +1 -1
  6. package/dist/pi/package.json +1 -1
  7. package/dist/pi/packages/ta-channels/README.md +48 -0
  8. package/dist/pi/packages/ta-channels/extension/index.mjs +651 -0
  9. package/dist/pi/packages/ta-channels/host/index.mjs +921 -0
  10. package/dist/pi/packages/ta-channels/lib/agent-menu.d.ts +13 -0
  11. package/dist/pi/packages/ta-channels/lib/agent-menu.d.ts.map +1 -0
  12. package/dist/pi/packages/ta-channels/lib/agent-menu.js +177 -0
  13. package/dist/pi/packages/ta-channels/lib/agent-menu.js.map +1 -0
  14. package/dist/pi/packages/ta-channels/lib/channel-menu.d.ts +12 -0
  15. package/dist/pi/packages/ta-channels/lib/channel-menu.d.ts.map +1 -0
  16. package/dist/pi/packages/ta-channels/lib/channel-menu.js +93 -0
  17. package/dist/pi/packages/ta-channels/lib/channel-menu.js.map +1 -0
  18. package/dist/pi/packages/ta-channels/lib/channels-model.d.ts +192 -0
  19. package/dist/pi/packages/ta-channels/lib/channels-model.d.ts.map +1 -0
  20. package/dist/pi/packages/ta-channels/lib/channels-model.js +49 -0
  21. package/dist/pi/packages/ta-channels/lib/channels-model.js.map +1 -0
  22. package/dist/pi/packages/ta-channels/lib/channels-util.d.ts +149 -0
  23. package/dist/pi/packages/ta-channels/lib/channels-util.d.ts.map +1 -0
  24. package/dist/pi/packages/ta-channels/lib/channels-util.js +544 -0
  25. package/dist/pi/packages/ta-channels/lib/channels-util.js.map +1 -0
  26. package/dist/pi/packages/ta-channels/lib/channels.d.ts +81 -0
  27. package/dist/pi/packages/ta-channels/lib/channels.d.ts.map +1 -0
  28. package/dist/pi/packages/ta-channels/lib/channels.js +181 -0
  29. package/dist/pi/packages/ta-channels/lib/channels.js.map +1 -0
  30. package/dist/pi/packages/ta-channels/lib/create.d.ts +19 -0
  31. package/dist/pi/packages/ta-channels/lib/create.d.ts.map +1 -0
  32. package/dist/pi/packages/ta-channels/lib/create.js +182 -0
  33. package/dist/pi/packages/ta-channels/lib/create.js.map +1 -0
  34. package/dist/pi/packages/ta-channels/lib/extension.d.ts +19 -0
  35. package/dist/pi/packages/ta-channels/lib/extension.d.ts.map +1 -0
  36. package/dist/pi/packages/ta-channels/lib/extension.js +77 -0
  37. package/dist/pi/packages/ta-channels/lib/extension.js.map +1 -0
  38. package/dist/pi/packages/ta-channels/lib/faces.d.ts +17 -0
  39. package/dist/pi/packages/ta-channels/lib/faces.d.ts.map +1 -0
  40. package/dist/pi/packages/ta-channels/lib/faces.js +169 -0
  41. package/dist/pi/packages/ta-channels/lib/faces.js.map +1 -0
  42. package/dist/pi/packages/ta-channels/lib/host.d.ts +7 -0
  43. package/dist/pi/packages/ta-channels/lib/host.d.ts.map +1 -0
  44. package/dist/pi/packages/ta-channels/lib/host.js +14 -0
  45. package/dist/pi/packages/ta-channels/lib/host.js.map +1 -0
  46. package/dist/pi/packages/ta-channels/lib/i18n.d.ts +113 -0
  47. package/dist/pi/packages/ta-channels/lib/i18n.d.ts.map +1 -0
  48. package/dist/pi/packages/ta-channels/lib/i18n.js +223 -0
  49. package/dist/pi/packages/ta-channels/lib/i18n.js.map +1 -0
  50. package/dist/pi/packages/ta-channels/lib/index.d.ts +8 -0
  51. package/dist/pi/packages/ta-channels/lib/index.d.ts.map +1 -0
  52. package/dist/pi/packages/ta-channels/lib/index.js +84 -0
  53. package/dist/pi/packages/ta-channels/lib/index.js.map +1 -0
  54. package/dist/pi/packages/ta-channels/lib/members.d.ts +9 -0
  55. package/dist/pi/packages/ta-channels/lib/members.d.ts.map +1 -0
  56. package/dist/pi/packages/ta-channels/lib/members.js +150 -0
  57. package/dist/pi/packages/ta-channels/lib/members.js.map +1 -0
  58. package/dist/pi/packages/ta-channels/lib/more-menu.d.ts +19 -0
  59. package/dist/pi/packages/ta-channels/lib/more-menu.d.ts.map +1 -0
  60. package/dist/pi/packages/ta-channels/lib/more-menu.js +79 -0
  61. package/dist/pi/packages/ta-channels/lib/more-menu.js.map +1 -0
  62. package/dist/pi/packages/ta-channels/lib/react.d.ts +8 -0
  63. package/dist/pi/packages/ta-channels/lib/react.d.ts.map +1 -0
  64. package/dist/pi/packages/ta-channels/lib/react.js +8 -0
  65. package/dist/pi/packages/ta-channels/lib/react.js.map +1 -0
  66. package/dist/pi/packages/ta-channels/lib/room.d.ts +22 -0
  67. package/dist/pi/packages/ta-channels/lib/room.d.ts.map +1 -0
  68. package/dist/pi/packages/ta-channels/lib/room.js +133 -0
  69. package/dist/pi/packages/ta-channels/lib/room.js.map +1 -0
  70. package/dist/pi/packages/ta-channels/lib/sidebar.d.ts +10 -0
  71. package/dist/pi/packages/ta-channels/lib/sidebar.d.ts.map +1 -0
  72. package/dist/pi/packages/ta-channels/lib/sidebar.js +162 -0
  73. package/dist/pi/packages/ta-channels/lib/sidebar.js.map +1 -0
  74. package/dist/pi/packages/ta-channels/lib/style.d.ts +5 -0
  75. package/dist/pi/packages/ta-channels/lib/style.d.ts.map +1 -0
  76. package/dist/pi/packages/ta-channels/lib/style.js +252 -0
  77. package/dist/pi/packages/ta-channels/lib/style.js.map +1 -0
  78. package/dist/pi/packages/ta-channels/lib/team-tools.d.ts +15 -0
  79. package/dist/pi/packages/ta-channels/lib/team-tools.d.ts.map +1 -0
  80. package/dist/pi/packages/ta-channels/lib/team-tools.js +92 -0
  81. package/dist/pi/packages/ta-channels/lib/team-tools.js.map +1 -0
  82. package/dist/pi/packages/ta-channels/lib/team.d.ts +134 -0
  83. package/dist/pi/packages/ta-channels/lib/team.d.ts.map +1 -0
  84. package/dist/pi/packages/ta-channels/lib/team.js +469 -0
  85. package/dist/pi/packages/ta-channels/lib/team.js.map +1 -0
  86. package/dist/pi/packages/ta-channels/lib/views.d.ts +93 -0
  87. package/dist/pi/packages/ta-channels/lib/views.d.ts.map +1 -0
  88. package/dist/pi/packages/ta-channels/lib/views.js +188 -0
  89. package/dist/pi/packages/ta-channels/lib/views.js.map +1 -0
  90. package/dist/pi/packages/ta-channels/package.json +46 -0
  91. package/dist/pi/packages/ta-channels/web/index.js +3144 -0
  92. package/dist/pi/packages/ta-extensions/README.md +20 -0
  93. package/dist/pi/packages/ta-extensions/host/index.mjs +271 -0
  94. package/dist/pi/packages/ta-extensions/lib/actions.d.ts +42 -0
  95. package/dist/pi/packages/ta-extensions/lib/actions.d.ts.map +1 -0
  96. package/dist/pi/packages/ta-extensions/lib/actions.js +168 -0
  97. package/dist/pi/packages/ta-extensions/lib/actions.js.map +1 -0
  98. package/dist/pi/packages/ta-extensions/lib/archive.d.ts +30 -0
  99. package/dist/pi/packages/ta-extensions/lib/archive.d.ts.map +1 -0
  100. package/dist/pi/packages/ta-extensions/lib/archive.js +213 -0
  101. package/dist/pi/packages/ta-extensions/lib/archive.js.map +1 -0
  102. package/dist/pi/packages/ta-extensions/lib/extensions-util.d.ts +14 -0
  103. package/dist/pi/packages/ta-extensions/lib/extensions-util.d.ts.map +1 -0
  104. package/dist/pi/packages/ta-extensions/lib/extensions-util.js +38 -0
  105. package/dist/pi/packages/ta-extensions/lib/extensions-util.js.map +1 -0
  106. package/dist/pi/packages/ta-extensions/lib/host.d.ts +36 -0
  107. package/dist/pi/packages/ta-extensions/lib/host.d.ts.map +1 -0
  108. package/dist/pi/packages/ta-extensions/lib/host.js +94 -0
  109. package/dist/pi/packages/ta-extensions/lib/host.js.map +1 -0
  110. package/dist/pi/packages/ta-extensions/lib/i18n.d.ts +64 -0
  111. package/dist/pi/packages/ta-extensions/lib/i18n.d.ts.map +1 -0
  112. package/dist/pi/packages/ta-extensions/lib/i18n.js +148 -0
  113. package/dist/pi/packages/ta-extensions/lib/i18n.js.map +1 -0
  114. package/dist/pi/packages/ta-extensions/lib/import-dialog.d.ts +10 -0
  115. package/dist/pi/packages/ta-extensions/lib/import-dialog.d.ts.map +1 -0
  116. package/dist/pi/packages/ta-extensions/lib/import-dialog.js +56 -0
  117. package/dist/pi/packages/ta-extensions/lib/import-dialog.js.map +1 -0
  118. package/dist/pi/packages/ta-extensions/lib/index.d.ts +7 -0
  119. package/dist/pi/packages/ta-extensions/lib/index.d.ts.map +1 -0
  120. package/dist/pi/packages/ta-extensions/lib/index.js +49 -0
  121. package/dist/pi/packages/ta-extensions/lib/index.js.map +1 -0
  122. package/dist/pi/packages/ta-extensions/lib/page.d.ts +22 -0
  123. package/dist/pi/packages/ta-extensions/lib/page.d.ts.map +1 -0
  124. package/dist/pi/packages/ta-extensions/lib/page.js +143 -0
  125. package/dist/pi/packages/ta-extensions/lib/page.js.map +1 -0
  126. package/dist/pi/packages/ta-extensions/lib/pictures.d.ts +6 -0
  127. package/dist/pi/packages/ta-extensions/lib/pictures.d.ts.map +1 -0
  128. package/dist/pi/packages/ta-extensions/lib/pictures.js +62 -0
  129. package/dist/pi/packages/ta-extensions/lib/pictures.js.map +1 -0
  130. package/dist/pi/packages/ta-extensions/lib/react.d.ts +8 -0
  131. package/dist/pi/packages/ta-extensions/lib/react.d.ts.map +1 -0
  132. package/dist/pi/packages/ta-extensions/lib/react.js +8 -0
  133. package/dist/pi/packages/ta-extensions/lib/react.js.map +1 -0
  134. package/dist/pi/packages/ta-extensions/lib/style.d.ts +4 -0
  135. package/dist/pi/packages/ta-extensions/lib/style.d.ts.map +1 -0
  136. package/dist/pi/packages/ta-extensions/lib/style.js +94 -0
  137. package/dist/pi/packages/ta-extensions/lib/style.js.map +1 -0
  138. package/dist/pi/packages/ta-extensions/package.json +46 -0
  139. package/dist/pi/packages/ta-extensions/skills/ta-package/SKILL.md +90 -0
  140. package/dist/pi/packages/ta-extensions/web/index.js +941 -0
  141. package/dist/pi/packages/ta-workspace/README.md +29 -0
  142. package/dist/pi/packages/ta-workspace/lib/browser.d.ts +9 -0
  143. package/dist/pi/packages/ta-workspace/lib/browser.d.ts.map +1 -0
  144. package/dist/pi/packages/ta-workspace/lib/browser.js +162 -0
  145. package/dist/pi/packages/ta-workspace/lib/browser.js.map +1 -0
  146. package/dist/pi/packages/ta-workspace/lib/common.d.ts +63 -0
  147. package/dist/pi/packages/ta-workspace/lib/common.d.ts.map +1 -0
  148. package/dist/pi/packages/ta-workspace/lib/common.js +180 -0
  149. package/dist/pi/packages/ta-workspace/lib/common.js.map +1 -0
  150. package/dist/pi/packages/ta-workspace/lib/editors.d.ts +47 -0
  151. package/dist/pi/packages/ta-workspace/lib/editors.d.ts.map +1 -0
  152. package/dist/pi/packages/ta-workspace/lib/editors.js +353 -0
  153. package/dist/pi/packages/ta-workspace/lib/editors.js.map +1 -0
  154. package/dist/pi/packages/ta-workspace/lib/explorer.d.ts +11 -0
  155. package/dist/pi/packages/ta-workspace/lib/explorer.d.ts.map +1 -0
  156. package/dist/pi/packages/ta-workspace/lib/explorer.js +388 -0
  157. package/dist/pi/packages/ta-workspace/lib/explorer.js.map +1 -0
  158. package/dist/pi/packages/ta-workspace/lib/file-icon.d.ts +9 -0
  159. package/dist/pi/packages/ta-workspace/lib/file-icon.d.ts.map +1 -0
  160. package/dist/pi/packages/ta-workspace/lib/file-icon.js +19 -0
  161. package/dist/pi/packages/ta-workspace/lib/file-icon.js.map +1 -0
  162. package/dist/pi/packages/ta-workspace/lib/host.d.ts +41 -0
  163. package/dist/pi/packages/ta-workspace/lib/host.d.ts.map +1 -0
  164. package/dist/pi/packages/ta-workspace/lib/host.js +117 -0
  165. package/dist/pi/packages/ta-workspace/lib/host.js.map +1 -0
  166. package/dist/pi/packages/ta-workspace/lib/i18n.d.ts +158 -0
  167. package/dist/pi/packages/ta-workspace/lib/i18n.d.ts.map +1 -0
  168. package/dist/pi/packages/ta-workspace/lib/i18n.js +319 -0
  169. package/dist/pi/packages/ta-workspace/lib/i18n.js.map +1 -0
  170. package/dist/pi/packages/ta-workspace/lib/index.d.ts +8 -0
  171. package/dist/pi/packages/ta-workspace/lib/index.d.ts.map +1 -0
  172. package/dist/pi/packages/ta-workspace/lib/index.js +64 -0
  173. package/dist/pi/packages/ta-workspace/lib/index.js.map +1 -0
  174. package/dist/pi/packages/ta-workspace/lib/open-files.d.ts +3 -0
  175. package/dist/pi/packages/ta-workspace/lib/open-files.d.ts.map +1 -0
  176. package/dist/pi/packages/ta-workspace/lib/open-files.js +59 -0
  177. package/dist/pi/packages/ta-workspace/lib/open-files.js.map +1 -0
  178. package/dist/pi/packages/ta-workspace/lib/preview.d.ts +16 -0
  179. package/dist/pi/packages/ta-workspace/lib/preview.d.ts.map +1 -0
  180. package/dist/pi/packages/ta-workspace/lib/preview.js +116 -0
  181. package/dist/pi/packages/ta-workspace/lib/preview.js.map +1 -0
  182. package/dist/pi/packages/ta-workspace/lib/react.d.ts +5 -0
  183. package/dist/pi/packages/ta-workspace/lib/react.d.ts.map +1 -0
  184. package/dist/pi/packages/ta-workspace/lib/react.js +8 -0
  185. package/dist/pi/packages/ta-workspace/lib/react.js.map +1 -0
  186. package/dist/pi/packages/ta-workspace/lib/scm.d.ts +3 -0
  187. package/dist/pi/packages/ta-workspace/lib/scm.d.ts.map +1 -0
  188. package/dist/pi/packages/ta-workspace/lib/scm.js +262 -0
  189. package/dist/pi/packages/ta-workspace/lib/scm.js.map +1 -0
  190. package/dist/pi/packages/ta-workspace/lib/search.d.ts +9 -0
  191. package/dist/pi/packages/ta-workspace/lib/search.d.ts.map +1 -0
  192. package/dist/pi/packages/ta-workspace/lib/search.js +286 -0
  193. package/dist/pi/packages/ta-workspace/lib/search.js.map +1 -0
  194. package/dist/pi/packages/ta-workspace/lib/style.d.ts +5 -0
  195. package/dist/pi/packages/ta-workspace/lib/style.d.ts.map +1 -0
  196. package/dist/pi/packages/ta-workspace/lib/style.js +228 -0
  197. package/dist/pi/packages/ta-workspace/lib/style.js.map +1 -0
  198. package/dist/pi/packages/ta-workspace/lib/terminal.d.ts +24 -0
  199. package/dist/pi/packages/ta-workspace/lib/terminal.d.ts.map +1 -0
  200. package/dist/pi/packages/ta-workspace/lib/terminal.js +283 -0
  201. package/dist/pi/packages/ta-workspace/lib/terminal.js.map +1 -0
  202. package/dist/pi/packages/ta-workspace/lib/util/ansi.d.ts +72 -0
  203. package/dist/pi/packages/ta-workspace/lib/util/ansi.d.ts.map +1 -0
  204. package/dist/pi/packages/ta-workspace/lib/util/ansi.js +434 -0
  205. package/dist/pi/packages/ta-workspace/lib/util/ansi.js.map +1 -0
  206. package/dist/pi/packages/ta-workspace/lib/util/file-icon.d.ts +10 -0
  207. package/dist/pi/packages/ta-workspace/lib/util/file-icon.d.ts.map +1 -0
  208. package/dist/pi/packages/ta-workspace/lib/util/file-icon.js +28 -0
  209. package/dist/pi/packages/ta-workspace/lib/util/file-icon.js.map +1 -0
  210. package/dist/pi/packages/ta-workspace/lib/util/git.d.ts +69 -0
  211. package/dist/pi/packages/ta-workspace/lib/util/git.d.ts.map +1 -0
  212. package/dist/pi/packages/ta-workspace/lib/util/git.js +173 -0
  213. package/dist/pi/packages/ta-workspace/lib/util/git.js.map +1 -0
  214. package/dist/pi/packages/ta-workspace/lib/util/keys.d.ts +14 -0
  215. package/dist/pi/packages/ta-workspace/lib/util/keys.d.ts.map +1 -0
  216. package/dist/pi/packages/ta-workspace/lib/util/keys.js +52 -0
  217. package/dist/pi/packages/ta-workspace/lib/util/keys.js.map +1 -0
  218. package/dist/pi/packages/ta-workspace/lib/util/preview.d.ts +18 -0
  219. package/dist/pi/packages/ta-workspace/lib/util/preview.d.ts.map +1 -0
  220. package/dist/pi/packages/ta-workspace/lib/util/preview.js +92 -0
  221. package/dist/pi/packages/ta-workspace/lib/util/preview.js.map +1 -0
  222. package/dist/pi/packages/ta-workspace/lib/util/search.d.ts +86 -0
  223. package/dist/pi/packages/ta-workspace/lib/util/search.d.ts.map +1 -0
  224. package/dist/pi/packages/ta-workspace/lib/util/search.js +243 -0
  225. package/dist/pi/packages/ta-workspace/lib/util/search.js.map +1 -0
  226. package/dist/pi/packages/ta-workspace/lib/util/seti-font.d.ts +3 -0
  227. package/dist/pi/packages/ta-workspace/lib/util/seti-font.d.ts.map +1 -0
  228. package/dist/pi/packages/ta-workspace/lib/util/seti-font.js +8 -0
  229. package/dist/pi/packages/ta-workspace/lib/util/seti-font.js.map +1 -0
  230. package/dist/pi/packages/ta-workspace/lib/util/seti.d.ts +10 -0
  231. package/dist/pi/packages/ta-workspace/lib/util/seti.d.ts.map +1 -0
  232. package/dist/pi/packages/ta-workspace/lib/util/seti.js +758 -0
  233. package/dist/pi/packages/ta-workspace/lib/util/seti.js.map +1 -0
  234. package/dist/pi/packages/ta-workspace/lib/util/workspace.d.ts +109 -0
  235. package/dist/pi/packages/ta-workspace/lib/util/workspace.d.ts.map +1 -0
  236. package/dist/pi/packages/ta-workspace/lib/util/workspace.js +294 -0
  237. package/dist/pi/packages/ta-workspace/lib/util/workspace.js.map +1 -0
  238. package/dist/pi/packages/ta-workspace/lib/workspace-client.d.ts +22 -0
  239. package/dist/pi/packages/ta-workspace/lib/workspace-client.d.ts.map +1 -0
  240. package/dist/pi/packages/ta-workspace/lib/workspace-client.js +118 -0
  241. package/dist/pi/packages/ta-workspace/lib/workspace-client.js.map +1 -0
  242. package/dist/pi/packages/ta-workspace/package.json +41 -0
  243. package/dist/pi/packages/ta-workspace/scripts/seti.ts +173 -0
  244. package/dist/pi/packages/ta-workspace/web/index.js +7289 -0
  245. package/dist/public/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
  246. package/dist/public/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
  247. package/dist/public/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
  248. package/dist/public/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
  249. package/dist/public/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
  250. package/dist/public/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
  251. package/dist/public/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
  252. package/dist/public/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
  253. package/dist/public/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
  254. package/dist/public/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
  255. package/dist/public/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
  256. package/dist/public/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
  257. package/dist/public/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
  258. package/dist/public/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
  259. package/dist/public/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
  260. package/dist/public/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
  261. package/dist/public/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
  262. package/dist/public/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
  263. package/dist/public/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
  264. package/dist/public/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
  265. package/dist/public/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
  266. package/dist/public/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
  267. package/dist/public/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
  268. package/dist/public/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
  269. package/dist/public/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
  270. package/dist/public/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
  271. package/dist/public/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
  272. package/dist/public/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
  273. package/dist/public/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
  274. package/dist/public/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
  275. package/dist/public/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
  276. package/dist/public/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
  277. package/dist/public/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
  278. package/dist/public/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
  279. package/dist/public/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
  280. package/dist/public/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
  281. package/dist/public/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
  282. package/dist/public/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
  283. package/dist/public/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
  284. package/dist/public/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
  285. package/dist/public/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
  286. package/dist/public/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
  287. package/dist/public/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
  288. package/dist/public/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
  289. package/dist/public/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
  290. package/dist/public/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
  291. package/dist/public/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
  292. package/dist/public/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
  293. package/dist/public/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
  294. package/dist/public/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
  295. package/dist/public/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
  296. package/dist/public/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
  297. package/dist/public/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
  298. package/dist/public/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
  299. package/dist/public/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
  300. package/dist/public/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
  301. package/dist/public/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
  302. package/dist/public/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
  303. package/dist/public/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
  304. package/dist/public/assets/abap-08VXUWAP.js +1 -0
  305. package/dist/public/assets/abnfDiagram-S7VZAUFO-3_0FZVeo.js +1 -0
  306. package/dist/public/assets/apex-BWPQTe0t.js +1 -0
  307. package/dist/public/assets/architecture-WOLXFQ4H-BX-N-_gd.js +1 -0
  308. package/dist/public/assets/architectureDiagram-YGSQEFNW-Daeu1xjI.js +36 -0
  309. package/dist/public/assets/azcli-Bc_sGQ0U.js +1 -0
  310. package/dist/public/assets/bat-i0X4ZdIN.js +1 -0
  311. package/dist/public/assets/bicep-B5-_aFwp.js +2 -0
  312. package/dist/public/assets/blockDiagram-APKKGZFW-DjJS8902.js +140 -0
  313. package/dist/public/assets/bpmnIcons-APHXDYXF-C0jbCElo.js +1 -0
  314. package/dist/public/assets/browser-D2CY3Lfb.js +1 -0
  315. package/dist/public/assets/browser-DZ1aJcgd.js +12 -0
  316. package/dist/public/assets/c4Diagram-KJ2TOQU5-mKfHFqh9.js +38 -0
  317. package/dist/public/assets/cameligo-DMUM7wLl.js +1 -0
  318. package/dist/public/assets/chunk-2Q5K7J3B-C1jixKkw.js +1 -0
  319. package/dist/public/assets/chunk-5VM5RSS4-ZNzvKenW.js +15 -0
  320. package/dist/public/assets/chunk-6MUBBAK2-Cnx7dsB1.js +2 -0
  321. package/dist/public/assets/chunk-AXFCVDMN-g4Y7Pg2t.js +62 -0
  322. package/dist/public/assets/chunk-BG4553SI-QNE6A_Vg.js +129 -0
  323. package/dist/public/assets/chunk-DQASFODM-DPHr08r0.js +10 -0
  324. package/dist/public/assets/chunk-DUW6YSOI-Dgx8z5s3.js +1 -0
  325. package/dist/public/assets/chunk-HFQBQIA3-CenkxHlV.js +1 -0
  326. package/dist/public/assets/chunk-J5ZVWO5B-oDCd-gWO.js +1 -0
  327. package/dist/public/assets/chunk-JWPE2WC7-DVXcaiue.js +1 -0
  328. package/dist/public/assets/chunk-KQLB2F66-C3Z8V8R_.js +2 -0
  329. package/dist/public/assets/chunk-KS47KZWR-BbUyxMWY.js +1 -0
  330. package/dist/public/assets/chunk-LEVMRMFU-CKECy4cp.js +1 -0
  331. package/dist/public/assets/chunk-M57EVK23-DuZd8RGI.js +1 -0
  332. package/dist/public/assets/chunk-NGNAAXSQ-Bxuf9Ivc.js +136 -0
  333. package/dist/public/assets/chunk-OY52VR5R-DatO2fu-.js +88 -0
  334. package/dist/public/assets/chunk-QB3YPZ4I-11782Ox2.js +213 -0
  335. package/dist/public/assets/chunk-R3KSYZAL-CCTi2rHV.js +1 -0
  336. package/dist/public/assets/chunk-STOXU5M4-DU6EHCIH.js +72 -0
  337. package/dist/public/assets/chunk-TU62E6Q5-BtgGljqq.js +1 -0
  338. package/dist/public/assets/chunk-X4PVCEUW-Dd_Qy0Gx.js +1 -0
  339. package/dist/public/assets/chunk-XXDRQBXY-DjOrWHxV.js +1 -0
  340. package/dist/public/assets/chunk-Y2CYZVJY-DsF7k-Jl.js +1 -0
  341. package/dist/public/assets/classDiagram-v2-L25IHNXF-KfN1--CA.js +217 -0
  342. package/dist/public/assets/client-sUFoEC5s.js +1 -0
  343. package/dist/public/assets/clojure-Cm7r79vr.js +1 -0
  344. package/dist/public/assets/codicon-DF1abBS2.ttf +0 -0
  345. package/dist/public/assets/coffee-Ba7i2nA0.js +1 -0
  346. package/dist/public/assets/common-CGQN5htF.js +4 -0
  347. package/dist/public/assets/cose-bilkent-JH36ORCC-BuWVQ5UC.js +1 -0
  348. package/dist/public/assets/cpp-C7h46wYY.js +1 -0
  349. package/dist/public/assets/csharp-BKxtCVv1.js +1 -0
  350. package/dist/public/assets/csp-bTuwJoIa.js +1 -0
  351. package/dist/public/assets/css-DIMkf-bt.js +3 -0
  352. package/dist/public/assets/cynefin-EF2NZ3EQ-D_GZWaFs.js +1 -0
  353. package/dist/public/assets/cynefinDiagram-L36ESFBY-BKljxAVP.js +62 -0
  354. package/dist/public/assets/cypher-CVaqCwHa.js +1 -0
  355. package/dist/public/assets/cytoscape.esm-DpEiRCgp.js +321 -0
  356. package/dist/public/assets/d3-scale-CElPUUud.js +1 -0
  357. package/dist/public/assets/d3-selection-CtCbiJ-r.js +1 -0
  358. package/dist/public/assets/dagre-SPEB5RXH-nD3f86OL.js +4 -0
  359. package/dist/public/assets/dart-onAF5SnQ.js +1 -0
  360. package/dist/public/assets/diagram-3B7GL73J-wSVpHF4f.js +200 -0
  361. package/dist/public/assets/diagram-DNEMPZML-BOkeaSpr.js +24 -0
  362. package/dist/public/assets/diagram-L3MUGCDN-CRCErdiz.js +41 -0
  363. package/dist/public/assets/diagram-LA4NIPWU-y5kaOsii.js +24 -0
  364. package/dist/public/assets/diagram-MHCOC4E2-D7l7ybij.js +3 -0
  365. package/dist/public/assets/diagram-XPFHEONP-kHzV_Ibv.js +30 -0
  366. package/dist/public/assets/dist-B-aKVhGg.js +1 -0
  367. package/dist/public/assets/dockerfile-DZFCIeNp.js +1 -0
  368. package/dist/public/assets/ebnfDiagram-UZSYDL2S-BX_-WdHG.js +1 -0
  369. package/dist/public/assets/ecl-94qehhXe.js +1 -0
  370. package/dist/public/assets/editor-DjpsE8to.css +1 -0
  371. package/dist/public/assets/editor.api-Dwz0wCaW.js +908 -0
  372. package/dist/public/assets/editor.worker-CRz__AKW.js +33 -0
  373. package/dist/public/assets/elixir-6RTg0lbw.js +1 -0
  374. package/dist/public/assets/elk-XV6XMXQE-YaOVo5bZ.js +27 -0
  375. package/dist/public/assets/erDiagram-EYBAPDEH-BXQPjKDV.js +99 -0
  376. package/dist/public/assets/eventmodeling-K75KTNOO-SiGVyftr.js +1 -0
  377. package/dist/public/assets/flow9-C5_-GSwl.js +1 -0
  378. package/dist/public/assets/flowDiagram-MALGAFMO-BHpEyQnS.js +1 -0
  379. package/dist/public/assets/freemarker2-DmbpSxx5.js +3 -0
  380. package/dist/public/assets/fsharp-C8Ef5oNN.js +1 -0
  381. package/dist/public/assets/ganttDiagram-23REXITY-B_i7AN7O.js +292 -0
  382. package/dist/public/assets/gitGraph-VSP46ZUC-CSv9x0vY.js +1 -0
  383. package/dist/public/assets/gitGraphDiagram-STJD7YCW-BMA1YavS.js +106 -0
  384. package/dist/public/assets/go-C-y9NEjX.js +1 -0
  385. package/dist/public/assets/graphlib-DoDw2DoG.js +1 -0
  386. package/dist/public/assets/graphql-fmXr3nnJ.js +1 -0
  387. package/dist/public/assets/handlebars-BVNKBeJT.js +1 -0
  388. package/dist/public/assets/hcl-CpzslTdj.js +1 -0
  389. package/dist/public/assets/html-BHaxuuAl.js +1 -0
  390. package/dist/public/assets/index-DtU34jhH.js +2 -0
  391. package/dist/public/assets/info-OHQRW6UA-Bx2U6fFU.js +1 -0
  392. package/dist/public/assets/infoDiagram-KBXO4MBG-BkNpfsDm.js +2 -0
  393. package/dist/public/assets/ini-sBoK_t0W.js +1 -0
  394. package/dist/public/assets/ishikawaDiagram-M35NCXHK-xTM6C-Kn.js +70 -0
  395. package/dist/public/assets/java-BEtHBSE6.js +1 -0
  396. package/dist/public/assets/javascript-C5dXKvxq.js +1 -0
  397. package/dist/public/assets/journeyDiagram-OPLOXDXO-C6iaT7vL.js +139 -0
  398. package/dist/public/assets/json.worker-CV9fqkUp.js +65 -0
  399. package/dist/public/assets/jsonMode-BD64T5vA.css +1 -0
  400. package/dist/public/assets/jsonMode-Ia_aRv-z.js +29 -0
  401. package/dist/public/assets/julia-Bri6UV-V.js +1 -0
  402. package/dist/public/assets/kanban-definition-BZKZHSQY-MobAdBhz.js +89 -0
  403. package/dist/public/assets/katex-B9z73Mgk.js +257 -0
  404. package/dist/public/assets/katex-BydxR-ky.css +1 -0
  405. package/dist/public/assets/kotlin-BOotOW0E.js +1 -0
  406. package/dist/public/assets/less-B9JPFI3C.js +2 -0
  407. package/dist/public/assets/lexon-CfSJPG6W.js +1 -0
  408. package/dist/public/assets/liquid-CIbIBxiN.js +1 -0
  409. package/dist/public/assets/lua-CsQS60Ue.js +1 -0
  410. package/dist/public/assets/m3-D-oSqn_W.js +1 -0
  411. package/dist/public/assets/markdown-Cimd5fb3.js +1 -0
  412. package/dist/public/assets/mdx-BqruHcEe.js +1 -0
  413. package/dist/public/assets/mermaid-parser.core-kBQmxOUn.js +7 -0
  414. package/dist/public/assets/mermaid.core-BFkQwIYu.js +44 -0
  415. package/dist/public/assets/mindmap-definition-I2QAS2VK-DxpTmvUG.js +98 -0
  416. package/dist/public/assets/mips-CIPQ_RoX.js +1 -0
  417. package/dist/public/assets/module-B8jze-Tx.js +5 -0
  418. package/dist/public/assets/module-Blc8dqbf.js +1 -0
  419. package/dist/public/assets/module-C1y_4M09.js +1061 -0
  420. package/dist/public/assets/module-C9WFrzAc.js +1 -0
  421. package/dist/public/assets/module-CouMtASh.js +1 -0
  422. package/dist/public/assets/module-DYWqfyIP.js +1 -0
  423. package/dist/public/assets/module-EGdAhoOx.js +1 -0
  424. package/dist/public/assets/module-EeaigZHL.js +1 -0
  425. package/dist/public/assets/module-ZhkaqrNe.js +1 -0
  426. package/dist/public/assets/monaco-BRwac88s.js +35 -0
  427. package/dist/public/assets/monaco-BlFvoJcU.css +1 -0
  428. package/dist/public/assets/msdax-DauUninz.js +1 -0
  429. package/dist/public/assets/mysql-SOo6toE5.js +1 -0
  430. package/dist/public/assets/objective-c-FvmIjYaQ.js +1 -0
  431. package/dist/public/assets/packet-JDAUHWVQ-Dy7GyfNz.js +1 -0
  432. package/dist/public/assets/pascal-DrH0SRf2.js +1 -0
  433. package/dist/public/assets/pascaligo-D-ptJ9y-.js +1 -0
  434. package/dist/public/assets/pegDiagram-FD4XPPHP-B3bIVo4u.js +1 -0
  435. package/dist/public/assets/perl-oz_6vUea.js +1 -0
  436. package/dist/public/assets/pgsql-DTj74zXo.js +1 -0
  437. package/dist/public/assets/php-nr791fC2.js +1 -0
  438. package/dist/public/assets/pie-XZMESJXO-B4D2CjUH.js +1 -0
  439. package/dist/public/assets/pieDiagram-J4AKIIQI-CgnbwU0I.js +39 -0
  440. package/dist/public/assets/pla-CopQ2nXW.js +1 -0
  441. package/dist/public/assets/postiats-43DmfD33.js +1 -0
  442. package/dist/public/assets/powerquery-D3hlyOfw.js +1 -0
  443. package/dist/public/assets/powershell-DmHpPYUd.js +1 -0
  444. package/dist/public/assets/protobuf-C531GsRP.js +2 -0
  445. package/dist/public/assets/pug-Z5eAx3Zn.js +1 -0
  446. package/dist/public/assets/python-Cwjb3hEe.js +1 -0
  447. package/dist/public/assets/qsharp-DkqhCAOL.js +1 -0
  448. package/dist/public/assets/quadrantDiagram-XTYBLID2-DWx4wRau.js +7 -0
  449. package/dist/public/assets/r-BwWrilGY.js +1 -0
  450. package/dist/public/assets/radar-ABXABTNO-Dtf3tObc.js +1 -0
  451. package/dist/public/assets/railroad-I3PHUGI6-DKGa9xBx.js +1 -0
  452. package/dist/public/assets/railroad-abnf-LNEFI6M7-CyjF4cc_.js +1 -0
  453. package/dist/public/assets/railroad-ebnf-DWYD2UWJ-D2ypsr5c.js +1 -0
  454. package/dist/public/assets/railroad-peg-JR7BVNR7-Cy6Mde1c.js +1 -0
  455. package/dist/public/assets/railroadDiagram-MRQ6NCDL-B6ya_k_l.js +1 -0
  456. package/dist/public/assets/razor-D_ClW9Lh.js +1 -0
  457. package/dist/public/assets/redis-ClamHrr6.js +1 -0
  458. package/dist/public/assets/redshift-DT7zqm-g.js +1 -0
  459. package/dist/public/assets/requirementDiagram-Y7LWUY3S-Brg8B8VS.js +84 -0
  460. package/dist/public/assets/resolver-B7c_-amj.js +1 -0
  461. package/dist/public/assets/restructuredtext-BYgofb2h.js +1 -0
  462. package/dist/public/assets/rough.esm-Dy-Kn_BL.js +1 -0
  463. package/dist/public/assets/ruby-DezsRK8O.js +1 -0
  464. package/dist/public/assets/rust-DdL9SqIa.js +1 -0
  465. package/dist/public/assets/sankeyDiagram-WGJFYUXA-DbzPDfky.js +40 -0
  466. package/dist/public/assets/sb-CcwsVR0C.js +1 -0
  467. package/dist/public/assets/scala-DHpiXF5c.js +1 -0
  468. package/dist/public/assets/scheme-BeGwcela.js +1 -0
  469. package/dist/public/assets/scss-gp-XZpBa.js +3 -0
  470. package/dist/public/assets/sequenceDiagram-5NDRBG5M-BuN84drT.js +169 -0
  471. package/dist/public/assets/shell-CC2rA5mh.js +1 -0
  472. package/dist/public/assets/sizeCapture-INFHLROL-3uHXrFqA.js +1 -0
  473. package/dist/public/assets/solidity-BEEn4gHE.js +1 -0
  474. package/dist/public/assets/sophia-CRfGWb83.js +1 -0
  475. package/dist/public/assets/sparql-D_Lu-MrJ.js +1 -0
  476. package/dist/public/assets/sql-NEE52Syq.js +1 -0
  477. package/dist/public/assets/st-DbInun42.js +1 -0
  478. package/dist/public/assets/stateDiagram-v2-FJ4FJNEA-C_CTpHMj.js +291 -0
  479. package/dist/public/assets/swift-Bxkupp3x.js +1 -0
  480. package/dist/public/assets/swimlanes-UMQ2AFYF-BvD4v9jw.js +1 -0
  481. package/dist/public/assets/swimlanesDiagram-OMPLPG4O-CMvLg13v.js +8 -0
  482. package/dist/public/assets/systemverilog-Bz4Y3fRF.js +1 -0
  483. package/dist/public/assets/tcl-DISqw1ZD.js +1 -0
  484. package/dist/public/assets/timeline-definition-SEUHKTQE-VE2xWGk8.js +120 -0
  485. package/dist/public/assets/treeView-D4JQ5SDB-ETecwv1j.js +1 -0
  486. package/dist/public/assets/treemap-SAJKECNS-er6ceAYK.js +1 -0
  487. package/dist/public/assets/twig-De2hgUGE.js +1 -0
  488. package/dist/public/assets/typescript-upeNz2VW.js +1 -0
  489. package/dist/public/assets/typespec-B8J7ngcE.js +1 -0
  490. package/dist/public/assets/usecaseDiagram-AFA6YXN4-ZtyyvKye.js +328 -0
  491. package/dist/public/assets/vb-DV3o63ZY.js +1 -0
  492. package/dist/public/assets/vennDiagram-NNMJR3RB-BTEvzrNd.js +34 -0
  493. package/dist/public/assets/wardley-7MLQ67FV-CzrxsjBc.js +1 -0
  494. package/dist/public/assets/wardleyDiagram-S7YFUSEH-CF8wIUhx.js +78 -0
  495. package/dist/public/assets/wgsl-DpFanUEy.js +298 -0
  496. package/dist/public/assets/xml-Cki0HxGb.js +1 -0
  497. package/dist/public/assets/xychartDiagram-GGNKY7IX-DcDpoJ4n.js +7 -0
  498. package/dist/public/assets/yaml-YIY66l1U.js +1 -0
  499. package/dist/public/assets/zh-cn-Bhwk8qWJ.js +12 -0
  500. package/dist/public/favicon.ico +0 -0
  501. package/dist/public/icons/apple-touch-icon.png +0 -0
  502. package/dist/public/icons/icon-192.png +0 -0
  503. package/dist/public/icons/icon-512.png +0 -0
  504. package/dist/public/icons/icon.svg +1 -0
  505. package/dist/public/icons/maskable-512.png +0 -0
  506. package/dist/public/index.html +18 -0
  507. package/dist/public/manifest.webmanifest +40 -0
  508. package/dist/public/sw.js +78 -0
  509. package/dist/serve/index.mjs +8234 -2690
  510. package/package.json +20 -14
@@ -0,0 +1,169 @@
1
+ import{t as e}from"./chunk-2Q5K7J3B-C1jixKkw.js";import{n as t,t as n}from"./mermaid.core-BFkQwIYu.js";import{a as r,c as i,i as a,n as o,r as s,s as c}from"./chunk-HFQBQIA3-CenkxHlV.js";import{_ as l,m as u}from"./chunk-6MUBBAK2-Cnx7dsB1.js";import{C as d,D as f,F as p,G as m,H as h,U as g,_,a as v,b as y,c as b,i as x,k as S,q as C,r as w,s as T,v as E,y as D,z as O}from"./chunk-BG4553SI-QNE6A_Vg.js";import{n as k,t as A}from"./d3-selection-CtCbiJ-r.js";import{n as j}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{t as M}from"./dist-B-aKVhGg.js";var N=M(),P=(function(){var e=j(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,2],n=[1,3],r=[1,4],i=[2,4],a=[1,9],o=[1,11],s=[1,12],c=[1,14],l=[1,15],u=[1,17],d=[1,18],f=[1,19],p=[1,25],m=[1,26],h=[1,27],g=[1,28],_=[1,29],v=[1,30],y=[1,31],b=[1,32],x=[1,33],S=[1,34],C=[1,35],w=[1,36],T=[1,37],E=[1,38],D=[1,39],O=[1,40],k=[1,42],A=[1,43],M=[1,44],N=[1,45],P=[1,46],F=[1,47],I=[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],L=[1,56],ee=[1,75],R=[1,81],te=[1,82],ne=[1,83],re=[1,84],ie=[1,85],ae=[1,86],oe=[1,87],se=[1,88],ce=[1,89],le=[1,90],z=[1,91],ue=[1,92],de=[1,93],fe=[1,94],pe=[1,95],B=[1,96],V=[1,97],me=[1,98],H=[1,99],U=[1,100],W=[1,101],he=[1,102],ge=[1,103],_e=[1,104],ve=[1,105],G=[1,106],ye=[2,79],K=[2,78],be=[4,5,17,51,53,54],xe=[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],Se=[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],Ce=[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],we=[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],Te=[5,52],q=[62,70,71,72,73],Ee=[62,73],J=[1,152],De={trace:j(function(){},`trace`),yy:{},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},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`},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],[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]],performAction:j(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 3:return r.apply(a[s]),a[s];case 4:case 10:this.$=[];break;case 5:case 11:a[s-1].push(a[s]),this.$=a[s-1];break;case 6:case 7:case 12:case 13:this.$=a[s];break;case 8:case 9:case 14:this.$=[];break;case 16:a[s].type=`createParticipant`,this.$=a[s];break;case 17:a[s-1].unshift({type:`boxStart`,boxData:r.parseBoxData(a[s-2])}),a[s-1].push({type:`boxEnd`,boxText:a[s-2]}),this.$=a[s-1];break;case 19:this.$={type:`sequenceIndex`,sequenceIndex:Number(a[s-2]),sequenceIndexStep:Number(a[s-1]),sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 20:this.$={type:`sequenceIndex`,sequenceIndex:Number(a[s-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 21:this.$={type:`sequenceIndex`,sequenceVisible:!1,signalType:r.LINETYPE.AUTONUMBER};break;case 22:this.$={type:`sequenceIndex`,sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 23:this.$={type:`activeStart`,signalType:r.LINETYPE.ACTIVE_START,actor:a[s-1].actor};break;case 24:this.$={type:`activeEnd`,signalType:r.LINETYPE.ACTIVE_END,actor:a[s-1].actor};break;case 30:r.setDiagramTitle(a[s].substring(6)),this.$=a[s].substring(6);break;case 31:r.setDiagramTitle(a[s].substring(7)),this.$=a[s].substring(7);break;case 32:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 33:case 34:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 35:a[s-1].unshift({type:`loopStart`,loopText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.LOOP_START}),a[s-1].push({type:`loopEnd`,loopText:a[s-2],signalType:r.LINETYPE.LOOP_END}),this.$=a[s-1];break;case 36:a[s-1].unshift({type:`rectStart`,color:r.parseMessage(a[s-2]),signalType:r.LINETYPE.RECT_START}),a[s-1].push({type:`rectEnd`,color:r.parseMessage(a[s-2]),signalType:r.LINETYPE.RECT_END}),this.$=a[s-1];break;case 37:a[s-1].unshift({type:`optStart`,optText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.OPT_START}),a[s-1].push({type:`optEnd`,optText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.OPT_END}),this.$=a[s-1];break;case 38:a[s-1].unshift({type:`altStart`,altText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.ALT_START}),a[s-1].push({type:`altEnd`,signalType:r.LINETYPE.ALT_END}),this.$=a[s-1];break;case 39:a[s-1].unshift({type:`parStart`,parText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.PAR_START}),a[s-1].push({type:`parEnd`,signalType:r.LINETYPE.PAR_END}),this.$=a[s-1];break;case 40:a[s-1].unshift({type:`parStart`,parText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.PAR_OVER_START}),a[s-1].push({type:`parEnd`,signalType:r.LINETYPE.PAR_END}),this.$=a[s-1];break;case 41:a[s-1].unshift({type:`criticalStart`,criticalText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.CRITICAL_START}),a[s-1].push({type:`criticalEnd`,signalType:r.LINETYPE.CRITICAL_END}),this.$=a[s-1];break;case 42:a[s-1].unshift({type:`breakStart`,breakText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.BREAK_START}),a[s-1].push({type:`breakEnd`,optText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.BREAK_END}),this.$=a[s-1];break;case 44:this.$=a[s-3].concat([{type:`option`,optionText:r.parseMessage(a[s-1]),signalType:r.LINETYPE.CRITICAL_OPTION},a[s]]);break;case 46:this.$=a[s-3].concat([{type:`and`,parText:r.parseMessage(a[s-1]),signalType:r.LINETYPE.PAR_AND},a[s]]);break;case 48:this.$=a[s-3].concat([{type:`else`,altText:r.parseMessage(a[s-1]),signalType:r.LINETYPE.ALT_ELSE},a[s]]);break;case 49:a[s-3].draw=`participant`,a[s-3].type=`addParticipant`,a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 50:a[s-1].draw=`participant`,a[s-1].type=`addParticipant`,this.$=a[s-1];break;case 51:a[s-3].draw=`actor`,a[s-3].type=`addParticipant`,a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 52:case 57:a[s-1].draw=`actor`,a[s-1].type=`addParticipant`,this.$=a[s-1];break;case 53:a[s-1].type=`destroyParticipant`,this.$=a[s-1];break;case 54:a[s-3].draw=`participant`,a[s-3].type=`addParticipant`,a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 55:a[s-1].draw=`participant`,a[s-1].type=`addParticipant`,this.$=a[s-1];break;case 56:a[s-3].draw=`actor`,a[s-3].type=`addParticipant`,a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 58:this.$=[a[s-1],{type:`addNote`,placement:a[s-2],actor:a[s-1].actor,text:a[s]}];break;case 59:a[s-2]=[].concat(a[s-1],a[s-1]).slice(0,2),a[s-2][0]=a[s-2][0].actor,a[s-2][1]=a[s-2][1].actor,this.$=[a[s-1],{type:`addNote`,placement:r.PLACEMENT.OVER,actor:a[s-2].slice(0,2),text:a[s]}];break;case 60:this.$=[a[s-1],{type:`addLinks`,actor:a[s-1].actor,text:a[s]}];break;case 61:this.$=[a[s-1],{type:`addALink`,actor:a[s-1].actor,text:a[s]}];break;case 62:this.$=[a[s-1],{type:`addProperties`,actor:a[s-1].actor,text:a[s]}];break;case 63:this.$=[a[s-1],{type:`addDetails`,actor:a[s-1].actor,text:a[s]}];break;case 66:this.$=[a[s-2],a[s]];break;case 67:this.$=a[s];break;case 68:this.$=r.PLACEMENT.LEFTOF;break;case 69:this.$=r.PLACEMENT.RIGHTOF;break;case 70:this.$=[a[s-4],a[s-1],{type:`addMessage`,from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s],activate:!0},{type:`activeStart`,signalType:r.LINETYPE.ACTIVE_START,actor:a[s-1].actor}];break;case 71:this.$=[a[s-4],a[s-1],{type:`addMessage`,from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s]},{type:`activeEnd`,signalType:r.LINETYPE.ACTIVE_END,actor:a[s-4].actor}];break;case 72:this.$=[a[s-4],a[s-1],{type:`addMessage`,from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s],activate:!0,centralConnection:r.LINETYPE.CENTRAL_CONNECTION},{type:`centralConnection`,signalType:r.LINETYPE.CENTRAL_CONNECTION,actor:a[s-1].actor}];break;case 73:this.$=[a[s-4],a[s-1],{type:`addMessage`,from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-2],msg:a[s],activate:!1,centralConnection:r.LINETYPE.CENTRAL_CONNECTION_REVERSE},{type:`centralConnectionReverse`,signalType:r.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:a[s-4].actor}];break;case 74:this.$=[a[s-5],a[s-1],{type:`addMessage`,from:a[s-5].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s],activate:!0,centralConnection:r.LINETYPE.CENTRAL_CONNECTION_DUAL},{type:`centralConnection`,signalType:r.LINETYPE.CENTRAL_CONNECTION,actor:a[s-1].actor},{type:`centralConnectionReverse`,signalType:r.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:a[s-5].actor}];break;case 75:this.$=[a[s-3],a[s-1],{type:`addMessage`,from:a[s-3].actor,to:a[s-1].actor,signalType:a[s-2],msg:a[s]}];break;case 76:this.$={type:`addParticipant`,actor:a[s-1],config:a[s]};break;case 77:this.$=a[s-1].trim();break;case 78:case 79:this.$={type:`addParticipant`,actor:a[s]};break;case 80:this.$=r.LINETYPE.SOLID_OPEN;break;case 81:this.$=r.LINETYPE.DOTTED_OPEN;break;case 82:this.$=r.LINETYPE.SOLID;break;case 83:this.$=r.LINETYPE.SOLID_TOP;break;case 84:this.$=r.LINETYPE.SOLID_BOTTOM;break;case 85:this.$=r.LINETYPE.STICK_TOP;break;case 86:this.$=r.LINETYPE.STICK_BOTTOM;break;case 87:this.$=r.LINETYPE.SOLID_TOP_DOTTED;break;case 88:this.$=r.LINETYPE.SOLID_BOTTOM_DOTTED;break;case 89:this.$=r.LINETYPE.STICK_TOP_DOTTED;break;case 90:this.$=r.LINETYPE.STICK_BOTTOM_DOTTED;break;case 91:this.$=r.LINETYPE.SOLID_ARROW_TOP_REVERSE;break;case 92:this.$=r.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;break;case 93:this.$=r.LINETYPE.STICK_ARROW_TOP_REVERSE;break;case 94:this.$=r.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;break;case 95:this.$=r.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;break;case 96:this.$=r.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;break;case 97:this.$=r.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;break;case 98:this.$=r.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;break;case 99:this.$=r.LINETYPE.BIDIRECTIONAL_SOLID;break;case 100:this.$=r.LINETYPE.DOTTED;break;case 101:this.$=r.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 102:this.$=r.LINETYPE.SOLID_CROSS;break;case 103:this.$=r.LINETYPE.DOTTED_CROSS;break;case 104:this.$=r.LINETYPE.SOLID_POINT;break;case 105:this.$=r.LINETYPE.DOTTED_POINT;break;case 106:this.$=r.parseMessage(a[s].trim().substring(1))}},`anonymous`),table:[{3:1,4:t,5:n,6:r},{1:[3]},{3:5,4:t,5:n,6:r},{3:6,4:t,5:n,6:r},e([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],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:a,5:o,8:8,9:10,10:s,13:13,14:c,15:l,18:16,19:u,22:d,23:41,24:f,25:20,26:21,27:22,28:23,29:24,30:p,31:m,32:h,34:g,36:_,37:v,38:y,39:b,40:x,42:S,44:C,45:w,47:T,51:E,53:D,54:O,56:k,61:A,62:M,63:N,64:P,73:F},e(I,[2,5]),{9:48,13:13,14:c,15:l,18:16,19:u,22:d,23:41,24:f,25:20,26:21,27:22,28:23,29:24,30:p,31:m,32:h,34:g,36:_,37:v,38:y,39:b,40:x,42:S,44:C,45:w,47:T,51:E,53:D,54:O,56:k,61:A,62:M,63:N,64:P,73:F},e(I,[2,7]),e(I,[2,8]),e(I,[2,9]),e(I,[2,15]),{13:49,51:E,53:D,54:O},{16:[1,50]},{5:[1,51]},{5:[1,54],20:[1,52],21:[1,53]},{23:55,62:L,73:F},{23:57,62:L,73:F},{5:[1,58]},{5:[1,59]},{5:[1,60]},{5:[1,61]},{5:[1,62]},e(I,[2,30]),e(I,[2,31]),{33:[1,63]},{35:[1,64]},e(I,[2,34]),{16:[1,65]},{16:[1,66]},{16:[1,67]},{16:[1,68]},{16:[1,69]},{16:[1,70]},{16:[1,71]},{16:[1,72]},{23:73,55:74,62:L,73:ee},{23:76,55:77,62:L,73:ee},{23:78,62:L,73:F},{69:79,72:[1,80],78:R,79:te,80:ne,81:re,82:ie,83:ae,84:oe,85:se,86:ce,87:le,88:z,89:ue,90:de,91:fe,92:pe,93:B,94:V,95:me,96:H,97:U,98:W,99:he,100:ge,101:_e,102:ve,103:G},{57:107,59:[1,108],67:[1,109],68:[1,110]},{23:111,62:L,73:F},e([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],ye,{23:112,62:L,73:F}),{23:113,62:L,73:F},{23:114,62:L,73:F},e([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],K),e(I,[2,6]),e(I,[2,16]),e(be,[2,10],{11:115}),e(I,[2,18]),{5:[1,117],20:[1,116]},{5:[1,118]},e(I,[2,22]),{5:[1,119]},e([5,52,66,104],ye),{5:[1,120]},e(I,[2,25]),e(I,[2,26]),e(I,[2,27]),e(I,[2,28]),e(I,[2,29]),e(I,[2,32]),e(I,[2,33]),e(xe,i,{7:121}),e(xe,i,{7:122}),e(xe,i,{7:123}),e(Se,i,{41:124,7:125}),e(Ce,i,{43:126,7:127}),e(Ce,i,{7:127,43:128}),e(we,i,{46:129,7:130}),e(xe,i,{7:131}),{5:[1,133],52:[1,132]},{5:[1,135],52:[1,134]},e(Te,K,{74:136,75:[1,137]}),{5:[1,139],52:[1,138]},{5:[1,141],52:[1,140]},{5:[1,142]},{23:146,62:L,70:[1,143],71:[1,144],72:[1,145],73:F},{69:147,78:R,79:te,80:ne,81:re,82:ie,83:ae,84:oe,85:se,86:ce,87:le,88:z,89:ue,90:de,91:fe,92:pe,93:B,94:V,95:me,96:H,97:U,98:W,99:he,100:ge,101:_e,102:ve,103:G},e(q,[2,80]),e(q,[2,81]),e(q,[2,82]),e(q,[2,83]),e(q,[2,84]),e(q,[2,85]),e(q,[2,86]),e(q,[2,87]),e(q,[2,88]),e(q,[2,89]),e(q,[2,90]),e(q,[2,91]),e(q,[2,92]),e(q,[2,93]),e(q,[2,94]),e(q,[2,95]),e(q,[2,96]),e(q,[2,97]),e(q,[2,98]),e(q,[2,99]),e(q,[2,100]),e(q,[2,101]),e(q,[2,102]),e(q,[2,103]),e(q,[2,104]),e(q,[2,105]),{23:148,62:L,73:F},{23:150,60:149,62:L,73:F},e(Ee,[2,68]),e(Ee,[2,69]),{58:151,104:J},{58:153,104:J},{58:154,104:J},{58:155,104:J},{4:[1,158],5:[1,160],12:157,13:159,17:[1,156],51:E,53:D,54:O},{5:[1,161]},e(I,[2,20]),e(I,[2,21]),e(I,[2,23]),e(I,[2,24]),{4:a,5:o,8:8,9:10,10:s,13:13,14:c,15:l,17:[1,162],18:16,19:u,22:d,23:41,24:f,25:20,26:21,27:22,28:23,29:24,30:p,31:m,32:h,34:g,36:_,37:v,38:y,39:b,40:x,42:S,44:C,45:w,47:T,51:E,53:D,54:O,56:k,61:A,62:M,63:N,64:P,73:F},{4:a,5:o,8:8,9:10,10:s,13:13,14:c,15:l,17:[1,163],18:16,19:u,22:d,23:41,24:f,25:20,26:21,27:22,28:23,29:24,30:p,31:m,32:h,34:g,36:_,37:v,38:y,39:b,40:x,42:S,44:C,45:w,47:T,51:E,53:D,54:O,56:k,61:A,62:M,63:N,64:P,73:F},{4:a,5:o,8:8,9:10,10:s,13:13,14:c,15:l,17:[1,164],18:16,19:u,22:d,23:41,24:f,25:20,26:21,27:22,28:23,29:24,30:p,31:m,32:h,34:g,36:_,37:v,38:y,39:b,40:x,42:S,44:C,45:w,47:T,51:E,53:D,54:O,56:k,61:A,62:M,63:N,64:P,73:F},{17:[1,165]},{4:a,5:o,8:8,9:10,10:s,13:13,14:c,15:l,17:[2,47],18:16,19:u,22:d,23:41,24:f,25:20,26:21,27:22,28:23,29:24,30:p,31:m,32:h,34:g,36:_,37:v,38:y,39:b,40:x,42:S,44:C,45:w,47:T,50:[1,166],51:E,53:D,54:O,56:k,61:A,62:M,63:N,64:P,73:F},{17:[1,167]},{4:a,5:o,8:8,9:10,10:s,13:13,14:c,15:l,17:[2,45],18:16,19:u,22:d,23:41,24:f,25:20,26:21,27:22,28:23,29:24,30:p,31:m,32:h,34:g,36:_,37:v,38:y,39:b,40:x,42:S,44:C,45:w,47:T,49:[1,168],51:E,53:D,54:O,56:k,61:A,62:M,63:N,64:P,73:F},{17:[1,169]},{17:[1,170]},{4:a,5:o,8:8,9:10,10:s,13:13,14:c,15:l,17:[2,43],18:16,19:u,22:d,23:41,24:f,25:20,26:21,27:22,28:23,29:24,30:p,31:m,32:h,34:g,36:_,37:v,38:y,39:b,40:x,42:S,44:C,45:w,47:T,48:[1,171],51:E,53:D,54:O,56:k,61:A,62:M,63:N,64:P,73:F},{4:a,5:o,8:8,9:10,10:s,13:13,14:c,15:l,17:[1,172],18:16,19:u,22:d,23:41,24:f,25:20,26:21,27:22,28:23,29:24,30:p,31:m,32:h,34:g,36:_,37:v,38:y,39:b,40:x,42:S,44:C,45:w,47:T,51:E,53:D,54:O,56:k,61:A,62:M,63:N,64:P,73:F},{16:[1,173]},e(I,[2,50]),{16:[1,174]},e(I,[2,55]),e(Te,[2,76]),{76:[1,175]},{16:[1,176]},e(I,[2,52]),{16:[1,177]},e(I,[2,57]),e(I,[2,53]),{23:178,62:L,73:F},{23:179,62:L,73:F},{23:180,62:L,73:F},{58:181,104:J},{23:182,62:L,72:[1,183],73:F},{58:184,104:J},{58:185,104:J},{66:[1,186],104:[2,67]},{5:[2,60]},{5:[2,106]},{5:[2,61]},{5:[2,62]},{5:[2,63]},e(I,[2,17]),e(be,[2,11]),{13:187,51:E,53:D,54:O},e(be,[2,13]),e(be,[2,14]),e(I,[2,19]),e(I,[2,35]),e(I,[2,36]),e(I,[2,37]),e(I,[2,38]),{16:[1,188]},e(I,[2,39]),{16:[1,189]},e(I,[2,40]),e(I,[2,41]),{16:[1,190]},e(I,[2,42]),{5:[1,191]},{5:[1,192]},{77:[1,193]},{5:[1,194]},{5:[1,195]},{58:196,104:J},{58:197,104:J},{58:198,104:J},{5:[2,75]},{58:199,104:J},{23:200,62:L,73:F},{5:[2,58]},{5:[2,59]},{23:201,62:L,73:F},e(be,[2,12]),e(Se,i,{7:125,41:202}),e(Ce,i,{7:127,43:203}),e(we,i,{7:130,46:204}),e(I,[2,49]),e(I,[2,54]),e(Te,[2,77]),e(I,[2,51]),e(I,[2,56]),{5:[2,70]},{5:[2,71]},{5:[2,72]},{5:[2,73]},{58:205,104:J},{104:[2,66]},{17:[2,48]},{17:[2,46]},{17:[2,44]},{5:[2,74]}],defaultActions:{5:[2,1],6:[2,2],151:[2,60],152:[2,106],153:[2,61],154:[2,62],155:[2,63],181:[2,75],184:[2,58],185:[2,59],196:[2,70],197:[2,71],198:[2,72],199:[2,73],201:[2,66],202:[2,48],203:[2,46],204:[2,44],205:[2,74]},parseError:j(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:j(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,c=0,l=0,u=0,d=2,f=1,p=a.slice.call(arguments,1),m=Object.create(this.lexer),h={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(h.yy[g]=this.yy[g]);m.setInput(e,h.yy),h.yy.lexer=m,h.yy.parser=this,m.yylloc===void 0&&(m.yylloc={});var _=m.yylloc;a.push(_);var v=m.options&&m.options.ranges;this.parseError=typeof h.yy.parseError==`function`?h.yy.parseError:Object.getPrototypeOf(this).parseError;function y(e){n.length-=2*e,i.length-=e,a.length-=e}j(y,`popStack`);function b(){var e=r.pop()||m.lex()||f;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}j(b,`lex`);for(var x,S,C,w,T,E={},D,O,k,A;;){if(C=n[n.length-1],this.defaultActions[C]?w=this.defaultActions[C]:(x??=b(),w=o[C]&&o[C][x]),w===void 0||!w.length||!w[0]){var M=``;for(D in A=[],o[C])this.terminals_[D]&&D>d&&A.push(`'`+this.terminals_[D]+`'`);M=m.showPosition?`Parse error on line `+(c+1)+`:
2
+ `+m.showPosition()+`
3
+ Expecting `+A.join(`, `)+`, got '`+(this.terminals_[x]||x)+`'`:`Parse error on line `+(c+1)+`: Unexpected `+(x==f?`end of input`:`'`+(this.terminals_[x]||x)+`'`),this.parseError(M,{text:m.match,token:this.terminals_[x]||x,line:m.yylineno,loc:_,expected:A})}if(w[0]instanceof Array&&w.length>1)throw Error(`Parse Error: multiple actions possible at state: `+C+`, token: `+x);switch(w[0]){case 1:n.push(x),i.push(m.yytext),a.push(m.yylloc),n.push(w[1]),x=null,S?(x=S,S=null):(l=m.yyleng,s=m.yytext,c=m.yylineno,_=m.yylloc,u>0&&u--);break;case 2:if(O=this.productions_[w[1]][1],E.$=i[i.length-O],E._$={first_line:a[a.length-(O||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(O||1)].first_column,last_column:a[a.length-1].last_column},v&&(E._$.range=[a[a.length-(O||1)].range[0],a[a.length-1].range[1]]),T=this.performAction.apply(E,[s,l,c,h.yy,w[1],i,a].concat(p)),T!==void 0)return T;O&&(n=n.slice(0,-1*O*2),i=i.slice(0,-1*O),a=a.slice(0,-1*O)),n.push(this.productions_[w[1]][0]),i.push(E.$),a.push(E._$),k=o[n[n.length-2]][n[n.length-1]],n.push(k);break;case 3:return!0}}return!0},`parse`)};De.lexer=(function(){return{EOF:1,parseError:j(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:j(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:j(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:j(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:j(function(){return this._more=!0,this},`more`),reject:j(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
+ `+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:j(function(e){this.unput(this.match.slice(e))},`less`),pastInput:j(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:j(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:j(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
5
+ `+t+`^`},`showPosition`),test_match:j(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:j(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;a<i.length;a++)if(n=this._input.match(this.rules[i[a]]),n&&(!t||n[0].length>t[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e!==!1&&e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text.
6
+ `+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:j(function(){return this.next()||this.lex()},`lex`),begin:j(function(e){this.conditionStack.push(e)},`begin`),popState:j(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:j(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:j(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:j(function(e){this.begin(e)},`pushState`),stateStackSize:j(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:j(function(e,t,n,r){switch(n){case 0:return 5;case 1:break;case 2:break;case 3:break;case 4:break;case 5:break;case 6:return 20;case 7:return this.begin(`CONFIG`),75;case 8:return 76;case 9:return this.popState(),this.begin(`ALIAS`),77;case 10:return this.popState(),this.popState(),77;case 11:return t.yytext=t.yytext.trim(),73;case 12:return t.yytext=t.yytext.trim(),this.begin(`ALIAS`),73;case 13:return t.yytext=t.yytext.trim(),this.popState(),73;case 14:return this.popState(),10;case 15:return t.yytext=t.yytext.trim(),this.popState(),10;case 16:return this.begin(`LINE`),15;case 17:return this.begin(`ID`),51;case 18:return this.begin(`ID`),53;case 19:return 14;case 20:return this.begin(`ID`),54;case 21:return this.popState(),this.popState(),this.begin(`LINE`),52;case 22:return this.popState(),this.popState(),5;case 23:return this.begin(`LINE`),37;case 24:return this.begin(`LINE`),38;case 25:return this.begin(`LINE`),39;case 26:return this.begin(`LINE`),40;case 27:return this.begin(`LINE`),50;case 28:return this.begin(`LINE`),42;case 29:return this.begin(`LINE`),44;case 30:return this.begin(`LINE`),49;case 31:return this.begin(`LINE`),45;case 32:return this.begin(`LINE`),48;case 33:return this.begin(`LINE`),47;case 34:return this.popState(),16;case 35:return 17;case 36:return 67;case 37:return 68;case 38:return 61;case 39:return 62;case 40:return 63;case 41:return 64;case 42:return 59;case 43:return 56;case 44:return this.begin(`ID`),22;case 45:return this.begin(`ID`),24;case 46:return 30;case 47:return 31;case 48:return this.begin(`acc_title`),32;case 49:return this.popState(),`acc_title_value`;case 50:return this.begin(`acc_descr`),34;case 51:return this.popState(),`acc_descr_value`;case 52:this.begin(`acc_descr_multiline`);break;case 53:this.popState();break;case 54:return`acc_descr_multiline_value`;case 55:return 6;case 56:return 19;case 57:return 21;case 58:return 66;case 59:return 5;case 60:return t.yytext=t.yytext.trim(),73;case 61:return 80;case 62:return 97;case 63:return 98;case 64:return 99;case 65:return 78;case 66:return 79;case 67:return 100;case 68:return 101;case 69:return 102;case 70:return 103;case 71:return 85;case 72:return 86;case 73:return 87;case 74:return 88;case 75:return 93;case 76:return 94;case 77:return 95;case 78:return 96;case 79:return 81;case 80:return 82;case 81:return 83;case 82:return 84;case 83:return 89;case 84:return 90;case 85:return 91;case 86:return 92;case 87:return 104;case 88:return 104;case 89:return 70;case 90:return 71;case 91:return 72;case 92:return 5;case 93:return 10}},`anonymous`),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]+(?=\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(?=[ \t]+[^\/\\\+\(\)<>:\n,;\s\-]))/i,/^(?:link(?=[ \t]+[^\/\\\+\(\)<>:\n,;\s\-]))/i,/^(?:properties(?=[ \t]+[^\/\\\+\(\)<>:\n,;\s\-]))/i,/^(?:details(?=[ \t]+[^\/\\\+\(\)<>:\n,;\s\-]))/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],conditions:{acc_descr_multiline:{rules:[53,54],inclusive:!1},acc_descr:{rules:[51],inclusive:!1},acc_title:{rules:[49],inclusive:!1},ID:{rules:[2,3,7,11,12,13,14,15],inclusive:!1},ALIAS:{rules:[2,3,21,22],inclusive:!1},LINE:{rules:[2,3,34],inclusive:!1},CONFIG:{rules:[8,9,10],inclusive:!1},CONFIG_DATA:{rules:[],inclusive:!1},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:!0}}}})();function Oe(){this.yy={}}return j(Oe,`Parser`),Oe.prototype=De,De.Parser=Oe,new Oe})();P.parser=P;var F=P,I={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25,AUTONUMBER:26,CRITICAL_START:27,CRITICAL_OPTION:28,CRITICAL_END:29,BREAK_START:30,BREAK_END:31,PAR_OVER_START:32,BIDIRECTIONAL_SOLID:33,BIDIRECTIONAL_DOTTED:34,SOLID_TOP:41,SOLID_BOTTOM:42,STICK_TOP:43,STICK_BOTTOM:44,SOLID_ARROW_TOP_REVERSE:45,SOLID_ARROW_BOTTOM_REVERSE:46,STICK_ARROW_TOP_REVERSE:47,STICK_ARROW_BOTTOM_REVERSE:48,SOLID_TOP_DOTTED:51,SOLID_BOTTOM_DOTTED:52,STICK_TOP_DOTTED:53,STICK_BOTTOM_DOTTED:54,SOLID_ARROW_TOP_REVERSE_DOTTED:55,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:56,STICK_ARROW_TOP_REVERSE_DOTTED:57,STICK_ARROW_BOTTOM_REVERSE_DOTTED:58,CENTRAL_CONNECTION:59,CENTRAL_CONNECTION_REVERSE:60,CENTRAL_CONNECTION_DUAL:61},L={FILLED:0,OPEN:1},ee={LEFTOF:0,RIGHTOF:1,OVER:2},R={ACTOR:`actor`,BOUNDARY:`boundary`,COLLECTIONS:`collections`,CONTROL:`control`,DATABASE:`database`,ENTITY:`entity`,PARTICIPANT:`participant`,QUEUE:`queue`},te=class{constructor(){this.state=new e(()=>({prevActor:void 0,actors:new Map,createdActors:new Map,destroyedActors:new Map,boxes:[],messages:[],notes:[],sequenceNumbersEnabled:!1,wrapEnabled:void 0,currentBox:void 0,lastCreated:void 0,lastDestroyed:void 0})),this.setAccTitle=g,this.setAccDescription=h,this.setDiagramTitle=C,this.getAccTitle=E,this.getAccDescription=_,this.getDiagramTitle=d,this.apply=this.apply.bind(this),this.parseBoxData=this.parseBoxData.bind(this),this.parseMessage=this.parseMessage.bind(this),this.clear(),this.setWrap(y().wrap),this.LINETYPE=I,this.ARROWTYPE=L,this.PLACEMENT=ee}static{j(this,`SequenceDB`)}addBox(e){this.state.records.boxes.push({name:e.text,wrap:e.wrap??this.autoWrap(),fill:e.color,actorKeys:[]}),this.state.records.currentBox=this.state.records.boxes.slice(-1)[0]}addActor(e,r,i,a,o){let s=this.state.records.currentBox,c;if(o!==void 0){let e;e=o.includes(`
7
+ `)?o+`
8
+ `:`{
9
+ `+o+`
10
+ }`,c=t(e,{schema:n})}a=c?.type??a,c?.alias&&(!i||i.text===r)&&(i={text:c.alias,wrap:i?.wrap,type:a});let l=this.state.records.actors.get(e);if(l){if(this.state.records.currentBox&&l.box&&this.state.records.currentBox!==l.box)throw Error(`A same participant should only be defined in one Box: ${l.name} can't be in '${l.box.name}' and in '${this.state.records.currentBox.name}' at the same time.`);if(s=l.box?l.box:this.state.records.currentBox,l.box=s,l&&r===l.name&&i==null)return}if(i?.text??(i={text:r,type:a}),(a==null||i.text==null)&&(i={text:r,type:a}),this.state.records.actors.set(e,{box:s,name:r,description:i.text,wrap:i.wrap??this.autoWrap(),prevActor:this.state.records.prevActor,links:{},properties:{},actorCnt:null,rectData:null,type:a??`participant`}),this.state.records.prevActor){let t=this.state.records.actors.get(this.state.records.prevActor);t&&(t.nextActor=e)}this.state.records.currentBox&&this.state.records.currentBox.actorKeys.push(e),this.state.records.prevActor=e}activationCount(e){let t,n=0;if(!e)return 0;for(t=0;t<this.state.records.messages.length;t++)this.state.records.messages[t].type===this.LINETYPE.ACTIVE_START&&this.state.records.messages[t].from===e&&n++,this.state.records.messages[t].type===this.LINETYPE.ACTIVE_END&&this.state.records.messages[t].from===e&&n--;return n}addMessage(e,t,n,r){this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:e,to:t,message:n.text,wrap:n.wrap??this.autoWrap(),answer:r})}addSignal(e,t,n,r,i=!1,a){if(r===this.LINETYPE.ACTIVE_END&&this.activationCount(e??``)<1){let t=Error(`Trying to inactivate an inactive participant (`+e+`)`);throw t.hash={text:`->>-`,token:`->>-`,line:`1`,loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:[`'ACTIVE_PARTICIPANT'`]},t}return this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:e,to:t,message:n?.text??``,wrap:n?.wrap??this.autoWrap(),type:r,activate:i,centralConnection:a??0}),!0}hasAtLeastOneBox(){return this.state.records.boxes.length>0}hasAtLeastOneBoxWithTitle(){return this.state.records.boxes.some(e=>e.name)}getMessages(){return this.state.records.messages}getBoxes(){return this.state.records.boxes}getActors(){return this.state.records.actors}getCreatedActors(){return this.state.records.createdActors}getDestroyedActors(){return this.state.records.destroyedActors}getActor(e){return this.state.records.actors.get(e)}getActorKeys(){return[...this.state.records.actors.keys()]}enableSequenceNumbers(){this.state.records.sequenceNumbersEnabled=!0}disableSequenceNumbers(){this.state.records.sequenceNumbersEnabled=!1}showSequenceNumbers(){return this.state.records.sequenceNumbersEnabled}setWrap(e){this.state.records.wrapEnabled=e}extractWrap(e){if(e===void 0)return{};e=e.trim();let t=/^:?wrap:/.exec(e)!==null||/^:?nowrap:/.exec(e)===null&&void 0;return{cleanedText:(t===void 0?e:e.replace(/^:?(?:no)?wrap:/,``)).trim(),wrap:t}}autoWrap(){return this.state.records.wrapEnabled===void 0?y().sequence?.wrap??!1:this.state.records.wrapEnabled}clear(){this.state.reset(),v()}parseMessage(e){let t=e.trim(),{wrap:n,cleanedText:r}=this.extractWrap(t),i={text:r,wrap:n};return k.debug(`parseMessage: ${JSON.stringify(i)}`),i}parseBoxData(e){let t=/^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/.exec(e),n=t?.[1]?t[1].trim():`transparent`,r=t?.[2]?t[2].trim():void 0;if(window?.CSS)window.CSS.supports(`color`,n)||(n=`transparent`,r=e.trim());else{let t=new Option().style;t.color=n,t.color!==n&&(n=`transparent`,r=e.trim())}let{wrap:i,cleanedText:a}=this.extractWrap(r);return{text:a?O(a,y()):void 0,color:n,wrap:i}}addNote(e,t,n){let r={actor:e,placement:t,message:n.text,wrap:n.wrap??this.autoWrap()},i=[].concat(e,e);this.state.records.notes.push(r),this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:i[0],to:i[1],message:n.text,wrap:n.wrap??this.autoWrap(),type:this.LINETYPE.NOTE,placement:t})}addLinks(e,t){let n=this.getActor(e);try{let e=O(t.text,y());e=e.replace(/&equals;/g,`=`),e=e.replace(/&amp;/g,`&`);let r=JSON.parse(e);this.insertLinks(n,r)}catch(e){k.error(`error while parsing actor link text`,e)}}addALink(e,t){let n=this.getActor(e);try{let e={},r=O(t.text,y()),i=r.indexOf(`@`);r=r.replace(/&equals;/g,`=`),r=r.replace(/&amp;/g,`&`);let a=r.slice(0,i-1).trim();e[a]=r.slice(i+1).trim(),this.insertLinks(n,e)}catch(e){k.error(`error while parsing actor link text`,e)}}insertLinks(e,t){if(e.links==null)e.links=t;else for(let n in t)e.links[n]=t[n]}addProperties(e,t){let n=this.getActor(e);try{let e=O(t.text,y()),r=JSON.parse(e);this.insertProperties(n,r)}catch(e){k.error(`error while parsing actor properties text`,e)}}insertProperties(e,t){if(e.properties==null)e.properties=t;else for(let n in t)e.properties[n]=t[n]}boxEnd(){this.state.records.currentBox=void 0}addDetails(e,t){let n=this.getActor(e),r=document.getElementById(t.text);try{let e=r.innerHTML,t=JSON.parse(e);t.properties&&this.insertProperties(n,t.properties),t.links&&this.insertLinks(n,t.links)}catch(e){k.error(`error while parsing actor details text`,e)}}getActorProperty(e,t){if(e?.properties!==void 0)return e.properties[t]}apply(e){if(Array.isArray(e))e.forEach(e=>{this.apply(e)});else switch(e.type){case`sequenceIndex`:this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:void 0,to:void 0,message:{start:e.sequenceIndex,step:e.sequenceIndexStep,visible:e.sequenceVisible},wrap:!1,type:e.signalType});break;case`addParticipant`:this.addActor(e.actor,e.actor,e.description,e.draw,e.config);break;case`createParticipant`:if(this.state.records.actors.has(e.actor))throw Error(`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`);this.state.records.lastCreated=e.actor,this.addActor(e.actor,e.actor,e.description,e.draw,e.config),this.state.records.createdActors.set(e.actor,this.state.records.messages.length);break;case`destroyParticipant`:this.state.records.lastDestroyed=e.actor,this.state.records.destroyedActors.set(e.actor,this.state.records.messages.length);break;case`activeStart`:this.addSignal(e.actor,void 0,void 0,e.signalType);break;case`centralConnection`:this.addSignal(e.actor,void 0,void 0,e.signalType);break;case`centralConnectionReverse`:this.addSignal(e.actor,void 0,void 0,e.signalType);break;case`activeEnd`:this.addSignal(e.actor,void 0,void 0,e.signalType);break;case`addNote`:this.addNote(e.actor,e.placement,e.text);break;case`addLinks`:this.addLinks(e.actor,e.text);break;case`addALink`:this.addALink(e.actor,e.text);break;case`addProperties`:this.addProperties(e.actor,e.text);break;case`addDetails`:this.addDetails(e.actor,e.text);break;case`addMessage`:if(this.state.records.lastCreated){if(e.to!==this.state.records.lastCreated)throw Error(`The created participant `+this.state.records.lastCreated.name+` does not have an associated creating message after its declaration. Please check the sequence diagram.`);this.state.records.lastCreated=void 0}else if(this.state.records.lastDestroyed){if(e.to!==this.state.records.lastDestroyed&&e.from!==this.state.records.lastDestroyed)throw Error(`The destroyed participant `+this.state.records.lastDestroyed.name+` does not have an associated destroying message after its declaration. Please check the sequence diagram.`);this.state.records.lastDestroyed=void 0}this.addSignal(e.from,e.to,e.msg,e.signalType,e.activate,e.centralConnection);break;case`boxStart`:this.addBox(e.boxData);break;case`boxEnd`:this.boxEnd();break;case`loopStart`:this.addSignal(void 0,void 0,e.loopText,e.signalType);break;case`loopEnd`:this.addSignal(void 0,void 0,void 0,e.signalType);break;case`rectStart`:this.addSignal(void 0,void 0,e.color,e.signalType);break;case`rectEnd`:this.addSignal(void 0,void 0,void 0,e.signalType);break;case`optStart`:this.addSignal(void 0,void 0,e.optText,e.signalType);break;case`optEnd`:this.addSignal(void 0,void 0,void 0,e.signalType);break;case`altStart`:this.addSignal(void 0,void 0,e.altText,e.signalType);break;case`else`:this.addSignal(void 0,void 0,e.altText,e.signalType);break;case`altEnd`:this.addSignal(void 0,void 0,void 0,e.signalType);break;case`setAccTitle`:g(e.text);break;case`parStart`:this.addSignal(void 0,void 0,e.parText,e.signalType);break;case`and`:this.addSignal(void 0,void 0,e.parText,e.signalType);break;case`parEnd`:this.addSignal(void 0,void 0,void 0,e.signalType);break;case`criticalStart`:this.addSignal(void 0,void 0,e.criticalText,e.signalType);break;case`option`:this.addSignal(void 0,void 0,e.optionText,e.signalType);break;case`criticalEnd`:this.addSignal(void 0,void 0,void 0,e.signalType);break;case`breakStart`:this.addSignal(void 0,void 0,e.breakText,e.signalType);break;case`breakEnd`:this.addSignal(void 0,void 0,void 0,e.signalType)}}getConfig(){return y().sequence}},ne=j(e=>{let t=e.dropShadow??`none`,{look:n}=y();return`.actor {
11
+ stroke: ${e.actorBorder};
12
+ fill: ${e.actorBkg};
13
+ stroke-width: ${e.strokeWidth??1};
14
+ }
15
+
16
+ rect.actor.outer-path[data-look="neo"] {
17
+ filter: ${t};
18
+ }
19
+
20
+ rect.note[data-look="neo"] {
21
+ stroke:${e.noteBorderColor};
22
+ fill:${e.noteBkgColor};
23
+ filter: ${t};
24
+ }
25
+
26
+ text.actor > tspan {
27
+ fill: ${e.actorTextColor};
28
+ stroke: none;
29
+ }
30
+
31
+ .actor-line {
32
+ stroke: ${e.actorLineColor};
33
+ }
34
+
35
+ .innerArc {
36
+ stroke-width: 1.5;
37
+ stroke-dasharray: none;
38
+ }
39
+
40
+ .messageLine0 {
41
+ stroke-width: 1.5;
42
+ stroke-dasharray: none;
43
+ stroke: ${e.signalColor};
44
+ }
45
+
46
+ .messageLine1 {
47
+ stroke-width: 1.5;
48
+ stroke-dasharray: 2, 2;
49
+ stroke: ${e.signalColor};
50
+ }
51
+
52
+ [id$="-arrowhead"] path {
53
+ fill: ${e.signalColor};
54
+ stroke: ${e.signalColor};
55
+ }
56
+
57
+ .sequenceNumber {
58
+ fill: ${e.sequenceNumberColor};
59
+ }
60
+
61
+ [id$="-sequencenumber"] {
62
+ fill: ${e.signalColor};
63
+ }
64
+
65
+ [id$="-crosshead"] path {
66
+ fill: ${e.signalColor};
67
+ stroke: ${e.signalColor};
68
+ }
69
+
70
+ .messageText {
71
+ fill: ${e.signalTextColor};
72
+ stroke: none;
73
+ }
74
+
75
+ .labelBox {
76
+ stroke: ${e.labelBoxBorderColor};
77
+ fill: ${e.labelBoxBkgColor};
78
+ filter: ${n===`neo`?t:`none`};
79
+ }
80
+
81
+ .labelText, .labelText > tspan {
82
+ fill: ${e.labelTextColor};
83
+ stroke: none;
84
+ }
85
+
86
+ .loopText, .loopText > tspan {
87
+ fill: ${e.loopTextColor};
88
+ stroke: none;
89
+ }
90
+
91
+ .sectionTitle, .sectionTitle > tspan {
92
+ fill: ${e.loopTextColor};
93
+ stroke: none;
94
+ }
95
+
96
+ .loopLine {
97
+ stroke-width: 2px;
98
+ stroke-dasharray: 2, 2;
99
+ stroke: ${e.labelBoxBorderColor};
100
+ fill: ${e.labelBoxBorderColor};
101
+ }
102
+
103
+ .note {
104
+ //stroke: #decc93;
105
+ stroke: ${e.noteBorderColor};
106
+ fill: ${e.noteBkgColor};
107
+ }
108
+
109
+ /*
110
+ * No font-weight here, deliberately. Note text renders inside tspan elements, and a weight emitted at
111
+ * tspan level outranks the inline style drawText puts on the parent text element from the
112
+ * sequence.noteFontWeight config key -- so that documented key would never reach the glyphs.
113
+ * The theme variable formerly emitted here is a different value from that config key, and
114
+ * git/styles.js reads it as its own bold-label weight under redux and neo, so it cannot be
115
+ * lowered there either.
116
+ */
117
+ .noteText, .noteText > tspan {
118
+ fill: ${e.noteTextColor};
119
+ stroke: none;
120
+ }
121
+
122
+ .activation0 {
123
+ fill: ${e.activationBkgColor};
124
+ stroke: ${e.activationBorderColor};
125
+ }
126
+
127
+ .activation1 {
128
+ fill: ${e.activationBkgColor};
129
+ stroke: ${e.activationBorderColor};
130
+ }
131
+
132
+ .activation2 {
133
+ fill: ${e.activationBkgColor};
134
+ stroke: ${e.activationBorderColor};
135
+ }
136
+
137
+ .actorPopupMenu {
138
+ position: absolute;
139
+ }
140
+
141
+ .actorPopupMenuPanel {
142
+ position: absolute;
143
+ fill: ${e.actorBkg};
144
+ box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
145
+ filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));
146
+ }
147
+ .actor-man circle, line {
148
+ fill: ${e.actorBkg};
149
+ stroke-width: 2px;
150
+ }
151
+
152
+ g rect.rect {
153
+ filter: ${t};
154
+ stroke: ${e.nodeBorder};
155
+ }
156
+ `},`getStyles`),re=44,ie=6,ae=6,oe=j((e,t)=>e.actorTextHeight??l.calculateTextDimensions(e.description??``,{fontFamily:t.actorFontFamily,fontSize:t.actorFontSize,fontWeight:t.actorFontWeight}).height,`actorLabelHeight`),se=j(e=>re+ie+e+ae,`actorStackHeight`),ce=j((e,t,n)=>{let r=e+t,i=r-ae-n/2;return{lifelineStartY:r,glyphBottomY:r-ae-n-ie,labelCenterY:i}},`headerBands`),le=j((e,t)=>{let n=e+ae,r=n+re;return{glyphTopY:n,glyphBottomY:r,labelCenterY:r+ie+t/2,stackHeight:se(t)}},`footerBands`),z=36,ue=-5,de=60,fe=de-ue,pe=j((e,t,n,r)=>{if(t.look!==`neo`)return null;let i=oe(e,t);return n?le(r,i):ce(r,e.height,i)},`neoBands`),B=`actor-top`,V=`actor-bottom`,me=`actor-box`,H=`actor-man`,U=new Set([`redux-color`,`redux-dark-color`]),W=j((e,t)=>e?.length?e[t%e.length]:void 0,`paletteColor`),he=j(function(e,t){let n=r(e,t);return D().look===`neo`&&n.attr(`data-look`,`neo`),n},`drawRect`),ge=j(function(e,t,n,r,i){if(t.links===void 0||t.links===null||Object.keys(t.links).length===0)return{height:0,width:0};let a=t.links,o=t.actorCnt,s=t.rectData;var c=`none`;i&&(c=`block !important`);let l=e.append(`g`);l.attr(`id`,`actor`+o+`_popup`),l.attr(`class`,`actorPopupMenu`),l.attr(`display`,c);var u=``;s.class!==void 0&&(u=` `+s.class);let d=s.width>n?s.width:n,f=l.append(`rect`);if(f.attr(`class`,`actorPopupMenuPanel`+u),f.attr(`x`,s.x),f.attr(`y`,s.height),f.attr(`fill`,s.fill),f.attr(`stroke`,s.stroke),f.attr(`width`,d),f.attr(`height`,s.height),f.attr(`rx`,s.rx),f.attr(`ry`,s.ry),a!=null){var p=20;for(let e in a){var m=l.append(`a`),h=(0,N.sanitizeUrl)(a[e]);m.attr(`xlink:href`,h),m.attr(`target`,`_blank`),We(r)(e,m,s.x+10,s.height+p,d,20,{class:`actor`},r),p+=30}}return f.attr(`height`,p),{height:s.height+p,width:d}},`drawPopup`),_e=j(function(e){return`var pu = document.getElementById('`+e+`'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }`},`popupMenuToggle`),ve=j(async function(e,t,n=null){let r=e.append(`foreignObject`),i=await p(t.text,D()),a=r.append(`xhtml:div`).attr(`style`,`width: fit-content;`).attr(`xmlns`,`http://www.w3.org/1999/xhtml`).html(i).node().getBoundingClientRect();if(r.attr(`height`,Math.round(a.height)).attr(`width`,Math.round(a.width)),t.class===`noteText`){let n=e.node().firstChild;n.setAttribute(`height`,a.height+2*t.textMargin);let i=n.getBBox();r.attr(`x`,Math.round(i.x+i.width/2-a.width/2)).attr(`y`,Math.round(i.y+i.height/2-a.height/2))}else if(n){let{startx:e,stopx:i,starty:o}=n;if(e>i){let t=e;e=i,i=t}r.attr(`x`,Math.round(e+Math.abs(e-i)/2-a.width/2)),t.class===`loopText`?r.attr(`y`,Math.round(o)):r.attr(`y`,Math.round(o-a.height))}return[r]},`drawKatex`),G=j(function(e,t){let n=0,r=0,i=t.text.split(T.lineBreakRegex),[a,o]=u(t.fontSize),s=[],c=0,l=j(()=>t.y,`yfunc`);if(t.valign!==void 0&&t.textMargin!==void 0&&t.textMargin>0)switch(t.valign){case`top`:case`start`:l=j(()=>Math.round(t.y+t.textMargin),`yfunc`);break;case`middle`:case`center`:l=j(()=>Math.round(t.y+(n+r+t.textMargin)/2),`yfunc`);break;case`bottom`:case`end`:l=j(()=>Math.round(t.y+(n+r+2*t.textMargin)-t.textMargin),`yfunc`)}if(t.anchor!==void 0&&t.textMargin!==void 0&&t.width!==void 0)switch(t.anchor){case`left`:case`start`:t.x=Math.round(t.x+t.textMargin),t.anchor=`start`,t.dominantBaseline=`middle`,t.alignmentBaseline=`middle`;break;case`middle`:case`center`:t.x=Math.round(t.x+t.width/2),t.anchor=`middle`,t.dominantBaseline=`middle`,t.alignmentBaseline=`middle`;break;case`right`:case`end`:t.x=Math.round(t.x+t.width-t.textMargin),t.anchor=`end`,t.dominantBaseline=`middle`,t.alignmentBaseline=`middle`}for(let[u,d]of i.entries()){t.textMargin!==void 0&&t.textMargin===0&&a!==void 0&&(c=u*a);let i=e.append(`text`);i.attr(`x`,t.x),i.attr(`y`,l()),t.anchor!==void 0&&i.attr(`text-anchor`,t.anchor).attr(`dominant-baseline`,t.dominantBaseline).attr(`alignment-baseline`,t.alignmentBaseline),t.fontFamily!==void 0&&i.style(`font-family`,t.fontFamily),o!==void 0&&i.style(`font-size`,o),t.fontWeight!==void 0&&i.style(`font-weight`,t.fontWeight),t.fill!==void 0&&i.attr(`fill`,t.fill),t.class!==void 0&&i.attr(`class`,t.class),t.dy===void 0?c!==0&&i.attr(`dy`,c):i.attr(`dy`,t.dy);let f=d||`​`;if(t.tspan){let e=i.append(`tspan`);e.attr(`x`,t.x),t.fill!==void 0&&e.attr(`fill`,t.fill),e.text(f)}else i.text(f);t.valign!==void 0&&t.textMargin!==void 0&&t.textMargin>0&&(r+=(i._groups||i)[0][0].getBBox().height,n=r),s.push(i)}return s},`drawText`),ye=j(function(e,t){function n(e,t,n,r,i){return e+`,`+t+` `+(e+n)+`,`+t+` `+(e+n)+`,`+(t+r-i)+` `+(e+n-i*1.2)+`,`+(t+r)+` `+e+`,`+(t+r)}j(n,`genPoints`);let r=e.append(`polygon`);return r.attr(`points`,n(t.x,t.y,t.width,t.height,7)),r.attr(`class`,`labelBox`),t.y+=t.height/2,G(e,t),r},`drawLabel`),K=-1,be=j((e,t,n,r)=>{e.select&&n.forEach(n=>{let i=t.get(n),a=e.select(`#actor`+i.actorCnt);!r.mirrorActors&&i.stopy?a.attr(`y2`,i.stopy+i.height/2):r.mirrorActors&&a.attr(`y2`,i.stopy)})},`fixLifeLineHeights`),xe=j(function(e,t,n,r,i,o){let l=r?t.stopy:t.starty,u=t.x+t.width/2,d=l+t.height,{look:f,theme:p,themeVariables:m}=n,{bkgColorArray:h,borderColorArray:g}=m,_=e.append(`g`).lower();var v=_;r||(K++,Object.keys(t.links||{}).length&&!n.forceMenus&&v.attr(`onclick`,_e(`actor${K}_popup`)).attr(`cursor`,`pointer`),v.append(`line`).attr(`id`,`actor`+K).attr(`x1`,u).attr(`y1`,d).attr(`x2`,u).attr(`y2`,2e3).attr(`class`,`actor-line 200`).attr(`stroke-width`,`0.5px`).attr(`stroke`,`#999`).attr(`name`,t.name).attr(`data-et`,`life-line`).attr(`data-id`,t.name),v=_.append(`g`),t.actorCnt=K,t.links!=null&&v.attr(`id`,`root-`+K),f===`neo`&&v.attr(`data-look`,`neo`));let y=c();var b=`actor`;t.properties?.class?b=t.properties.class:y.fill=`#eaeaea`,b+=r?` ${V}`:` ${B}`,y.x=t.x,y.y=l,y.width=t.width,y.height=t.height,y.class=b,y.rx=3,y.ry=3,y.name=t.name,f===`neo`&&(y.rx=6,y.ry=6);let x=he(v,y),C=o.get(t.name)??0;if(U.has(p)&&(x.style(`stroke`,W(g,C)),x.style(`fill`,W(h,C))),f===`neo`&&x.attr(`filter`,`url(#${Be(i)})`),t.rectData=y,t.properties?.icon){let e=t.properties.icon.trim();e.charAt(0)===`@`?s(v,y.x+y.width-20,y.y+10,e.substr(1)):a(v,y.x+y.width-20,y.y+10,e)}r||(v.attr(`data-et`,`participant`),v.attr(`data-type`,`participant`),v.attr(`data-id`,t.name)),Y(n,S(t.description))(t.description,v,y.x,y.y,y.width,y.height,{class:`actor ${me}`},n);let w=t.height;if(x.node){let e=x.node().getBBox();n.look!==`neo`&&(t.height=e.height,w=e.height)}return w},`drawActorTypeParticipant`),Se=j(function(e,t,n,r,i,o){let l=r?t.stopy:t.starty,u=t.x+t.width/2,d=l+t.height,{look:f,theme:p,themeVariables:m}=n,{bkgColorArray:h,borderColorArray:g}=m,_=e.append(`g`).lower();var v=_;r||(K++,Object.keys(t.links||{}).length&&!n.forceMenus&&v.attr(`onclick`,_e(`actor${K}_popup`)).attr(`cursor`,`pointer`),v.append(`line`).attr(`id`,`actor`+K).attr(`x1`,u).attr(`y1`,d).attr(`x2`,u).attr(`y2`,2e3).attr(`class`,`actor-line 200`).attr(`stroke-width`,`0.5px`).attr(`stroke`,`#999`).attr(`name`,t.name).attr(`data-et`,`life-line`).attr(`data-id`,t.name),v=_.append(`g`),t.actorCnt=K,t.links!=null&&v.attr(`id`,`root-`+K),f===`neo`&&v.attr(`data-look`,`neo`));let y=c();var b=`actor`;t.properties?.class?b=t.properties.class:y.fill=`#eaeaea`,b+=r?` ${V}`:` ${B}`,y.x=t.x,y.y=l,y.width=t.width,y.height=t.height,y.class=b,y.name=t.name,n.look===`neo`&&(y.height=t.height-6);let x={...y,x:y.x+-6,y:y.y+6,class:`actor`},C=he(v,y),w=he(v,x);t.rectData=y,f===`neo`&&v.attr(`filter`,`url(#${Be(i)})`);let T=o.get(t.name)??0;if(U.has(p)&&(C.style(`stroke`,W(g,T)),C.style(`fill`,W(h,T)),w.style(`stroke`,W(g,T)),w.style(`fill`,W(h,T))),t.properties?.icon){let e=t.properties.icon.trim();e.charAt(0)===`@`?s(v,y.x+y.width-20,y.y+10,e.substr(1)):a(v,y.x+y.width-20,y.y+10,e)}Y(n,S(t.description))(t.description,v,y.x-6,y.y+6,y.width,y.height,{class:`actor ${me}`},n);let E=t.height;if(C.node){let e=C.node().getBBox();n.look!==`neo`&&(t.height=e.height,E=e.height)}return r||(v.attr(`data-et`,`participant`),v.attr(`data-type`,`collections`),v.attr(`data-id`,t.name)),E},`drawActorTypeCollections`),Ce=j(function(e,t,n,r,i,o){let l=r?t.stopy:t.starty,u=t.x+t.width/2,d=l+t.height,{look:f,theme:p,themeVariables:m}=n,{bkgColorArray:h,borderColorArray:g}=m,_=e.append(`g`).lower(),v=_;r||(K++,Object.keys(t.links||{}).length&&!n.forceMenus&&v.attr(`onclick`,_e(`actor${K}_popup`)).attr(`cursor`,`pointer`),v.append(`line`).attr(`id`,`actor`+K).attr(`x1`,u).attr(`y1`,d).attr(`x2`,u).attr(`y2`,2e3).attr(`class`,`actor-line 200`).attr(`stroke-width`,`0.5px`).attr(`stroke`,`#999`).attr(`name`,t.name).attr(`data-et`,`life-line`).attr(`data-id`,t.name),v=_.append(`g`),t.actorCnt=K,t.links!=null&&v.attr(`id`,`root-`+K),f===`neo`&&v.attr(`data-look`,`neo`));let y=c(),b=`actor`;t.properties?.class?b=t.properties.class:y.fill=`#eaeaea`,b+=r?` ${V}`:` ${B}`,v.attr(`class`,b),y.x=t.x,y.y=l,y.width=t.width,y.height=t.height,y.name=t.name;let x=y.height/2,C=x/(2.5+y.height/50),w=v.append(`g`),T=v.append(`g`),E=`M ${y.x},${y.y+x}
157
+ a ${C},${x} 0 0 0 0,${y.height}
158
+ h ${y.width-2*C}
159
+ a ${C},${x} 0 0 0 0,-${y.height}
160
+ Z
161
+ `;w.append(`path`).attr(`d`,E),T.append(`path`).attr(`d`,`M ${y.x},${y.y+x}
162
+ a ${C},${x} 0 0 0 0,${y.height}`),w.attr(`transform`,`translate(${C}, ${-(y.height/2)})`),T.attr(`transform`,`translate(${y.width-C}, ${-y.height/2})`),t.rectData=y,f===`neo`&&w.attr(`filter`,`url(#${Be(i)})`);let D=o.get(t.name)??0;if(U.has(p)&&(w.style(`stroke`,W(g,D)),w.style(`fill`,W(h,D)),T.style(`stroke`,W(g,D)),T.style(`fill`,W(h,D))),t.properties?.icon){let e=t.properties.icon.trim(),n=y.x+y.width-20,r=y.y+10;e.charAt(0)===`@`?s(v,n,r,e.substr(1)):a(v,n,r,e)}Y(n,S(t.description))(t.description,v,y.x,y.y,y.width,y.height,{class:`actor ${me}`},n);let O=t.height,k=w.select(`path:last-child`);if(k.node()){let e=k.node().getBBox();n.look!==`neo`&&(t.height=e.height,O=e.height)}return r||(v.attr(`data-et`,`participant`),v.attr(`data-type`,`queue`),v.attr(`data-id`,t.name)),O},`drawActorTypeQueue`),we=j(function(e,t,n,r,i,a){let o=r?t.stopy:t.starty,s=t.x+t.width/2,l=pe(t,n,r,o),u=l?l.lifelineStartY:o+75,{look:d,theme:f,themeVariables:p}=n,{bkgColorArray:m,borderColorArray:h,actorBorder:g,actorBkg:_}=p,v=e.append(`g`).lower();r||(K++,v.append(`line`).attr(`id`,`actor`+K).attr(`x1`,s).attr(`y1`,u).attr(`x2`,s).attr(`y2`,2e3).attr(`class`,`actor-line 200`).attr(`stroke-width`,`0.5px`).attr(`stroke`,`#999`).attr(`name`,t.name).attr(`data-et`,`life-line`).attr(`data-id`,t.name),t.actorCnt=K);let y=e.append(`g`),b=H;b+=r?` ${V}`:` ${B}`,y.attr(`class`,b),y.attr(`name`,t.name);let x=c();x.x=t.x,x.y=o,x.fill=`#eaeaea`,x.width=t.width,x.height=t.height,x.class=`actor`;let C=t.x+t.width/2,w=l?l.glyphBottomY-22:o+32;y.append(`defs`).append(`marker`).attr(`id`,i+`-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`),y.append(`circle`).attr(`cx`,C).attr(`cy`,w).attr(`r`,22).attr(`filter`,`${d===`neo`?`url(#${Be(i)})`:``}`),y.append(`line`).attr(`marker-end`,`url(#`+i+`-filled-head-control)`).attr(`transform`,`translate(${C}, ${w-22})`);let T=a.get(t.name)??0;return U.has(f)?(y.style(`stroke`,W(h,T)),y.style(`fill`,W(m,T))):(y.style(`stroke`,g),y.style(`fill`,_)),l||(t.height=y.node().getBBox().height+2*(n?.sequence?.labelBoxHeight??0)),Y(n,S(t.description))(t.description,y,x.x,l?l.labelCenterY-x.height/2:x.y+22+(r?5:12),x.width,x.height,{class:`actor ${H}`},n),r||(y.attr(`data-et`,`participant`),y.attr(`data-type`,`control`),y.attr(`data-id`,t.name)),t.height},`drawActorTypeControl`),Te=j(function(e,t,n,r,i,a){let o=r?t.stopy:t.starty,s=t.x+t.width/2,l=pe(t,n,r,o),u=l?l.lifelineStartY:o+75,{look:d,theme:f,themeVariables:p}=n,{bkgColorArray:m,borderColorArray:h}=p,g=e.append(`g`).lower(),_=e.append(`g`),v=`actor`;v+=r?` ${V}`:` ${B}`,_.attr(`class`,v),_.attr(`name`,t.name);let y=c();y.x=t.x,y.y=o,y.fill=`#eaeaea`,y.width=t.width,y.height=t.height,y.class=`actor`;let b=t.x+t.width/2,x=l?l.glyphBottomY-22:o+(r?10:25);_.append(`circle`).attr(`cx`,b).attr(`cy`,x).attr(`r`,22).attr(`width`,t.width).attr(`height`,t.height),_.append(`line`).attr(`x1`,b-22).attr(`x2`,b+22).attr(`y1`,x+22).attr(`y2`,x+22).attr(`stroke-width`,2),d===`neo`&&_.attr(`filter`,`url(#${Be(i)})`);let C=a.get(t.name)??0;return U.has(f)&&(_.style(`stroke`,W(h,C)),_.style(`fill`,W(m,C))),l||(t.height=_.node().getBBox().height+(n?.sequence?.labelBoxHeight??0)),r||(K++,g.append(`line`).attr(`id`,`actor`+K).attr(`x1`,s).attr(`y1`,u).attr(`x2`,s).attr(`y2`,2e3).attr(`class`,`actor-line 200`).attr(`stroke-width`,`0.5px`).attr(`stroke`,`#999`).attr(`name`,t.name).attr(`data-et`,`life-line`).attr(`data-id`,t.name),t.actorCnt=K),Y(n,S(t.description))(t.description,_,y.x,l?l.labelCenterY-y.height/2:y.y+(r?15:30),y.width,y.height,{class:`actor ${H}`},n),l||_.attr(`transform`,`translate(0, ${r?22:6})`),r||(_.attr(`data-et`,`participant`),_.attr(`data-type`,`entity`),_.attr(`data-id`,t.name)),t.height},`drawActorTypeEntity`),q=j(function(e,t,n,r,i,a){let o=r?t.stopy:t.starty,s=t.x+t.width/2,l=pe(t,n,r,o),u=l?l.lifelineStartY:o+t.height+2*n.boxTextMargin,{theme:d,themeVariables:f,look:p}=n,{bkgColorArray:m,borderColorArray:h,actorBorder:g}=f,_=e.append(`g`).lower(),v=_;r||(K++,Object.keys(t.links||{}).length&&!n.forceMenus&&v.attr(`onclick`,_e(`actor${K}_popup`)).attr(`cursor`,`pointer`),v.append(`line`).attr(`id`,`actor`+K).attr(`x1`,s).attr(`y1`,u).attr(`x2`,s).attr(`y2`,2e3).attr(`class`,`actor-line 200`).attr(`stroke-width`,`0.5px`).attr(`stroke`,`#999`).attr(`name`,t.name).attr(`data-et`,`life-line`).attr(`data-id`,t.name),v=_.append(`g`),t.actorCnt=K,t.links!=null&&v.attr(`id`,`root-`+K),p===`neo`&&v.attr(`data-look`,`neo`));let y=c(),b=`actor`;t.properties?.class?b=t.properties.class:y.fill=`#eaeaea`,b+=r?` ${V}`:` ${B}`,y.x=t.x,y.y=o,y.width=t.width,y.height=t.height,y.class=b,y.name=t.name,y.x=t.x,y.y=o;let x=y.width/3,C=x/2,w=C/(2.5+x/50),T=l?re:y.width/3,E=l?l.glyphBottomY-T-w:y.y,D=v.append(`g`);D.attr(`class`,b);let O=`
163
+ M ${y.x},${E+w}
164
+ a ${C},${w} 0 0 0 ${x},0
165
+ a ${C},${w} 0 0 0 -${x},0
166
+ l 0,${T-2*w}
167
+ a ${C},${w} 0 0 0 ${x},0
168
+ l 0,-${T-2*w}
169
+ `;D.append(`path`).attr(`d`,O),p===`neo`&&D.attr(`filter`,`url(#${Be(i)})`);let k=a.get(t.name)??0;if(U.has(d)?(D.style(`stroke`,W(h,k)),D.style(`fill`,W(m,k))):D.style(`stroke`,g),D.attr(`transform`,`translate(${x}, ${w})`),t.rectData=y,Y(n,S(t.description))(t.description,v,y.x,l?l.labelCenterY-y.height/2:y.y+35,y.width,y.height,{class:`actor ${me}`},n),!l){let e=D.select(`path:last-child`);e.node()&&(t.height=e.node().getBBox().height+(n.sequence.labelBoxHeight??0))}return r||(v.attr(`data-et`,`participant`),v.attr(`data-type`,`database`),v.attr(`data-id`,t.name)),t.height},`drawActorTypeDatabase`),Ee=j(function(e,t,n,r,i,a){let o=r?t.stopy:t.starty,s=t.x+t.width/2,l=pe(t,n,r,o),u=l?l.lifelineStartY:o+80,d=l?l.glyphBottomY-22:o+12,f=e.append(`g`).lower(),{look:p,theme:m,themeVariables:h}=n,{bkgColorArray:g,borderColorArray:_,actorBorder:v}=h;r||(K++,f.append(`line`).attr(`id`,`actor`+K).attr(`x1`,s).attr(`y1`,u).attr(`x2`,s).attr(`y2`,2e3).attr(`class`,`actor-line 200`).attr(`stroke-width`,`0.5px`).attr(`stroke`,`#999`).attr(`name`,t.name).attr(`data-et`,`life-line`).attr(`data-id`,t.name),t.actorCnt=K);let y=e.append(`g`),b=H;b+=r?` ${V}`:` ${B}`,y.attr(`class`,b),y.attr(`name`,t.name);let x=c();x.x=t.x,x.y=o,x.fill=`#eaeaea`,x.width=t.width,x.height=t.height,x.class=`actor`,y.append(`line`).attr(`id`,`actor-man-torso`+K).attr(`x1`,t.x+t.width/2-55).attr(`y1`,d).attr(`x2`,t.x+t.width/2-15).attr(`y2`,d),y.append(`line`).attr(`id`,`actor-man-arms`+K).attr(`x1`,t.x+t.width/2-55).attr(`y1`,d-10).attr(`x2`,t.x+t.width/2-55).attr(`y2`,d+10),y.append(`circle`).attr(`cx`,t.x+t.width/2).attr(`cy`,d).attr(`r`,22),p===`neo`&&y.attr(`filter`,`url(#${Be(i)})`);let C=a.get(t.name)??0;return U.has(m)?(y.style(`stroke`,W(_,C)),y.style(`fill`,W(g,C))):y.style(`stroke`,v),l||(t.height=y.node().getBBox().height+(n.sequence.labelBoxHeight??0)),Y(n,S(t.description))(t.description,y,x.x,l?l.labelCenterY-x.height/2:x.y+15,x.width,x.height,{class:`actor ${H}`},n),l||y.attr(`transform`,`translate(0,21)`),r||(y.attr(`data-et`,`participant`),y.attr(`data-type`,`boundary`),y.attr(`data-id`,t.name)),t.height},`drawActorTypeBoundary`),J=j(function(e,t,n,r,i){let a=r?t.stopy:t.starty,o=t.x+t.width/2,s=pe(t,n,r,a),l=s?s.lifelineStartY:a+80,{theme:u,themeVariables:d}=n,{bkgColorArray:f,borderColorArray:p,actorBorder:m}=d,h=e.append(`g`).lower();r||(K++,h.append(`line`).attr(`id`,`actor`+K).attr(`x1`,o).attr(`y1`,l).attr(`x2`,o).attr(`y2`,2e3).attr(`class`,`actor-line 200`).attr(`stroke-width`,`0.5px`).attr(`stroke`,`#999`).attr(`name`,t.name).attr(`data-et`,`life-line`).attr(`data-id`,t.name),t.actorCnt=K);let g=e.append(`g`),_=H;_+=r?` ${V}`:` ${B}`,g.attr(`class`,_),g.attr(`name`,t.name),r||g.attr(`data-et`,`participant`).attr(`data-type`,`actor`).attr(`data-id`,t.name);let v=s?re/fe:1,y=j(e=>s?s.glyphBottomY-(de-e)*v:a+e,`gy`),b=j(e=>o+e*v,`gx`);g.append(`line`).attr(`id`,`actor-man-torso`+K).attr(`x1`,o).attr(`y1`,y(25)).attr(`x2`,o).attr(`y2`,y(45)),g.append(`line`).attr(`id`,`actor-man-arms`+K).attr(`x1`,b(-z/2)).attr(`y1`,y(33)).attr(`x2`,b(z/2)).attr(`y2`,y(33)),g.append(`line`).attr(`x1`,b(-z/2)).attr(`y1`,y(60)).attr(`x2`,o).attr(`y2`,y(45)),g.append(`line`).attr(`x1`,o).attr(`y1`,y(45)).attr(`x2`,b(z/2-2)).attr(`y2`,y(60));let x=g.append(`circle`);x.attr(`cx`,t.x+t.width/2),x.attr(`cy`,y(10)),x.attr(`r`,15*v),x.attr(`width`,t.width),x.attr(`height`,t.height),s||(t.height=fe);let C=c();C.x=t.x,C.y=a,C.fill=`#eaeaea`,C.width=t.width,C.height=t.height,C.class=`actor`,C.rx=3,C.ry=3;let w=i.get(t.name)??0;return U.has(u)?(g.style(`stroke`,W(p,w)),g.style(`fill`,W(f,w))):g.style(`stroke`,m),Y(n,S(t.description))(t.description,g,C.x,s?s.labelCenterY-C.height/2:a+35,C.width,C.height,{class:`actor ${H}`},n),t.height},`drawActorTypeActor`),De=j(async function(e,t,n,r,i,a,o){let s=o??new Map([...a.db.getActors().values()].map((e,t)=>[e.name,t]));switch(t.type){case`actor`:return await J(e,t,n,r,s);case`participant`:return await xe(e,t,n,r,i,s);case`boundary`:return await Ee(e,t,n,r,i,s);case`control`:return await we(e,t,n,r,i,s);case`entity`:return await Te(e,t,n,r,i,s);case`database`:return await q(e,t,n,r,i,s);case`collections`:return await Se(e,t,n,r,i,s);case`queue`:return await Ce(e,t,n,r,i,s)}},`drawActor`),Oe=j(function(e,t,n){let r=e.append(`g`);Me(r,t),t.name&&Y(n)(t.name,r,t.x,t.y+n.boxTextMargin+(t.textMaxHeight||0)/2,t.width,0,{class:`text`},n),r.lower()},`drawBox`),ke=j(function(e){return e.append(`g`)},`anchorElement`),Ae=j(function(e,t,n,r,i,a,o){let{theme:s,themeVariables:l}=r,{bkgColorArray:u,borderColorArray:d,mainBkg:f}=l,p=c(),m=t.anchored,h=t.actor;p.x=t.startx,p.y=t.starty,p.class=`activation`+i%3,p.width=t.stopx-t.startx,p.height=n-t.starty;let g=he(m,p),_=(o??new Map([...a.db.getActors().values()].map((e,t)=>[e.name,t]))).get(h)??0;U.has(s)&&(g.style(`stroke`,W(d,_)),g.style(`fill`,W(u,_)??f))},`drawActivation`),je=j(async function(e,t,n,r,a){let{boxMargin:o,boxTextMargin:s,labelBoxHeight:c,labelBoxWidth:l,messageFontFamily:u,messageFontSize:d,messageFontWeight:f}=r,p=e.append(`g`).attr(`data-et`,`control-structure`).attr(`data-id`,`i`+a.id),m=j(function(e,t,n,r){return p.append(`line`).attr(`x1`,e).attr(`y1`,t).attr(`x2`,n).attr(`y2`,r).attr(`class`,`loopLine`)},`drawLoopLine`);m(t.startx,t.starty,t.stopx,t.starty),m(t.stopx,t.starty,t.stopx,t.stopy),m(t.startx,t.stopy,t.stopx,t.stopy),m(t.startx,t.starty,t.startx,t.stopy),t.sections!==void 0&&t.sections.forEach(function(e){m(t.startx,e.y,t.stopx,e.y).style(`stroke-dasharray`,`3, 3`)});let h=i();h.text=n,h.x=t.startx,h.y=t.starty,h.fontFamily=u,h.fontSize=d,h.fontWeight=f,h.anchor=`middle`,h.valign=`middle`,h.tspan=!1,h.width=Math.max(l??0,50),h.height=c+(r.look===`neo`?15:0)||20,h.textMargin=s,h.class=`labelText`,ye(p,h),h=He(),h.text=t.title,h.x=t.startx+l/2+(t.stopx-t.startx)/2,h.y=t.starty+o+s,h.anchor=`middle`,h.valign=`middle`,h.textMargin=s,h.class=`loopText`,h.fontFamily=u,h.fontSize=d,h.fontWeight=f,h.wrap=!0;let g=S(h.text)?await ve(p,h,t):G(p,h);if(t.sectionTitles!==void 0){for(let[e,n]of Object.entries(t.sectionTitles))if(n.message){h.text=n.message,h.x=t.startx+(t.stopx-t.startx)/2,h.y=t.sections[e].y+o+s,h.class=`sectionTitle`,h.anchor=`middle`,h.valign=`middle`,h.tspan=!1,h.fontFamily=u,h.fontSize=d,h.fontWeight=f,h.wrap=t.wrap,S(h.text)?(t.starty=t.sections[e].y,await ve(p,h,t)):G(p,h);let r=Math.round(g.map(e=>(e._groups||e)[0][0].getBBox().height).reduce((e,t)=>e+t));t.sections[e].height+=r-(o+s)}}return t.height=Math.round(t.stopy-t.starty),p},`drawLoop`),Me=j(function(e,t){o(e,t)},`drawBackgroundRect`),Ne=j(function(e,t){e.append(`defs`).append(`symbol`).attr(`id`,t+`-database`).attr(`fill-rule`,`evenodd`).attr(`clip-rule`,`evenodd`).append(`path`).attr(`transform`,`scale(.5)`).attr(`d`,`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`)},`insertDatabaseIcon`),Pe=j(function(e,t){e.append(`defs`).append(`symbol`).attr(`id`,t+`-computer`).attr(`width`,`24`).attr(`height`,`24`).append(`path`).attr(`transform`,`scale(.5)`).attr(`d`,`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`)},`insertComputerIcon`),Fe=j(function(e,t){e.append(`defs`).append(`symbol`).attr(`id`,t+`-clock`).attr(`width`,`24`).attr(`height`,`24`).append(`path`).attr(`transform`,`scale(.5)`).attr(`d`,`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`)},`insertClockIcon`),Ie=j(function(e,t){e.append(`defs`).append(`marker`).attr(`id`,t+`-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`)},`insertArrowHead`),Le=j(function(e,t){e.append(`defs`).append(`marker`).attr(`id`,t+`-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`)},`insertArrowFilledHead`),Re=j(function(e,t){e.append(`defs`).append(`marker`).attr(`id`,t+`-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)},`insertSequenceNumber`),ze=j(function(e,t){e.append(`defs`).append(`marker`).attr(`id`,t+`-crosshead`).attr(`markerWidth`,15).attr(`markerHeight`,8).attr(`orient`,`auto`).attr(`refX`,4).attr(`refY`,4.5).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`)},`insertArrowCrossHead`),Be=j(e=>e?`${e}-drop-shadow`:`drop-shadow`,`dropShadowId`),Ve=j(function(e,t,n){let{theme:r}=t;e.append(`defs`).append(`filter`).attr(`id`,Be(n)).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`,`${r===`redux`||r===`redux-color`?`#000000`:`#FFFFFF`}`)},`insertDropShadow`),He=j(function(){return{x:0,y:0,fill:void 0,anchor:void 0,style:`#666`,width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0}},`getTextObj`),Ue=j(function(){return{x:0,y:0,fill:`#EDF2AE`,stroke:`#666`,width:100,anchor:`start`,height:100,rx:0,ry:0}},`getNoteRect`),Y=(function(){function e(e,t,n,r,a,o,s){i(t.append(`text`).attr(`x`,n+a/2).attr(`y`,r+o/2+5).style(`text-anchor`,`middle`).text(e),s)}j(e,`byText`);function t(e,t,n,r,a,o,s,c){let{actorFontSize:l,actorFontFamily:d,actorFontWeight:f}=c,[p,m]=u(l),h=e.split(T.lineBreakRegex);for(let e=0;e<h.length;e++){let c=e*p-p*(h.length-1)/2,l=t.append(`text`).attr(`x`,n+a/2).attr(`y`,r).style(`text-anchor`,`middle`).style(`font-size`,m).style(`font-weight`,f).style(`font-family`,d);l.append(`tspan`).attr(`x`,n+a/2).attr(`dy`,c).text(h[e]),l.attr(`y`,r+o/2).attr(`dominant-baseline`,`central`).attr(`alignment-baseline`,`central`),i(l,s)}}j(t,`byTspan`);function n(e,n,r,a,o,s,c,l){let u=n.append(`switch`),d=u.append(`foreignObject`).attr(`x`,r).attr(`y`,a).attr(`width`,o).attr(`height`,s).append(`xhtml:div`).style(`display`,`table`).style(`height`,`100%`).style(`width`,`100%`);d.append(`div`).style(`display`,`table-cell`).style(`text-align`,`center`).style(`vertical-align`,`middle`).text(e),t(e,u,r,a,o,s,c,l),i(d,c)}j(n,`byFo`);async function r(e,n,r,a,o,s,c,l){let u=await x(e,D()),d=n.append(`switch`),f=d.append(`foreignObject`).attr(`x`,r+o/2-u.width/2).attr(`y`,a+s/2-u.height/2).attr(`width`,u.width).attr(`height`,u.height).append(`xhtml:div`).style(`height`,`100%`).style(`width`,`100%`);f.append(`div`).style(`text-align`,`center`).style(`vertical-align`,`middle`).html(await p(e,D())),t(e,d,r,a,o,s,c,l),i(f,c)}j(r,`byKatex`);function i(e,t){for(let n in t)t.hasOwnProperty(n)&&e.attr(n,t[n])}return j(i,`_setTextAttrs`),function(i,a=!1){return a?r:i.textPlacement===`fo`?n:i.textPlacement===`old`?e:t}})(),We=(function(){function e(e,t,n,i,a,o,s){r(t.append(`text`).attr(`x`,n).attr(`y`,i).style(`text-anchor`,`start`).text(e),s)}j(e,`byText`);function t(e,t,n,i,a,o,s,c){let{actorFontSize:l,actorFontFamily:u,actorFontWeight:d}=c,f=e.split(T.lineBreakRegex);for(let e=0;e<f.length;e++){let a=e*l-l*(f.length-1)/2,c=t.append(`text`).attr(`x`,n).attr(`y`,i).style(`text-anchor`,`start`).style(`font-size`,l).style(`font-weight`,d).style(`font-family`,u);c.append(`tspan`).attr(`x`,n).attr(`dy`,a).text(f[e]),c.attr(`y`,i+o/2).attr(`dominant-baseline`,`central`).attr(`alignment-baseline`,`central`),r(c,s)}}j(t,`byTspan`);function n(e,n,i,a,o,s,c,l){let u=n.append(`switch`),d=u.append(`foreignObject`).attr(`x`,i).attr(`y`,a).attr(`width`,o).attr(`height`,s).append(`xhtml:div`).style(`display`,`table`).style(`height`,`100%`).style(`width`,`100%`);d.append(`div`).style(`display`,`table-cell`).style(`text-align`,`center`).style(`vertical-align`,`middle`).text(e),t(e,u,i,a,o,s,c,l),r(d,c)}j(n,`byFo`);function r(e,t){for(let n in t)t.hasOwnProperty(n)&&e.attr(n,t[n])}return j(r,`_setTextAttrs`),function(r){return r.textPlacement===`fo`?n:r.textPlacement===`old`?e:t}})(),X={drawRect:he,drawText:G,drawLabel:ye,drawActor:De,drawBox:Oe,drawPopup:ge,anchorElement:ke,drawActivation:Ae,drawLoop:je,drawBackgroundRect:Me,insertArrowHead:Ie,insertArrowFilledHead:Le,insertSequenceNumber:Re,insertArrowCrossHead:ze,insertDatabaseIcon:Ne,insertComputerIcon:Pe,insertClockIcon:Fe,getTextObj:He,getNoteRect:Ue,fixLifeLineHeights:be,sanitizeUrl:N.sanitizeUrl,insertDropShadow:Ve,insertSolidTopArrowHead:j(function(e,t){e.append(`defs`).append(`marker`).attr(`id`,t+`-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`)},`insertSolidTopArrowHead`),insertSolidBottomArrowHead:j(function(e,t){e.append(`defs`).append(`marker`).attr(`id`,t+`-solidBottomArrowHead`).attr(`refX`,7.9).attr(`refY`,.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`)},`insertSolidBottomArrowHead`),insertStickTopArrowHead:j(function(e,t){e.append(`defs`).append(`marker`).attr(`id`,t+`-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`)},`insertStickTopArrowHead`),insertStickBottomArrowHead:j(function(e,t){e.append(`defs`).append(`marker`).attr(`id`,t+`-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`)},`insertStickBottomArrowHead`)},Z={},Q={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],activations:[],models:{getHeight:j(function(){return Math.max.apply(null,this.actors.length===0?[0]:this.actors.map(e=>e.height||0))+(this.loops.length===0?0:this.loops.map(e=>e.height||0).reduce((e,t)=>e+t))+(this.messages.length===0?0:this.messages.map(e=>e.height||0).reduce((e,t)=>e+t))+(this.notes.length===0?0:this.notes.map(e=>e.height||0).reduce((e,t)=>e+t))},`getHeight`),clear:j(function(){this.actors=[],this.boxes=[],this.loops=[],this.messages=[],this.notes=[]},`clear`),addBox:j(function(e){this.boxes.push(e)},`addBox`),addActor:j(function(e){this.actors.push(e)},`addActor`),addLoop:j(function(e){this.loops.push(e)},`addLoop`),addMessage:j(function(e){this.messages.push(e)},`addMessage`),addNote:j(function(e){this.notes.push(e)},`addNote`),lastActor:j(function(){return this.actors[this.actors.length-1]},`lastActor`),lastLoop:j(function(){return this.loops[this.loops.length-1]},`lastLoop`),lastMessage:j(function(){return this.messages[this.messages.length-1]},`lastMessage`),lastNote:j(function(){return this.notes[this.notes.length-1]},`lastNote`),actors:[],boxes:[],loops:[],messages:[],notes:[]},init:j(function(){this.sequenceItems=[],this.activations=[],this.models.clear(),this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0,tt(y())},`init`),updateVal:j(function(e,t,n,r){e[t]=e[t]===void 0?n:r(n,e[t])},`updateVal`),updateBounds:j(function(e,t,n,r){let i=this,a=0;function o(o){return j(function(s){a++;let c=i.sequenceItems.length-a+1;i.updateVal(s,`starty`,t-c*Z.boxMargin,Math.min),i.updateVal(s,`stopy`,r+c*Z.boxMargin,Math.max),i.updateVal(Q.data,`startx`,e-c*Z.boxMargin,Math.min),i.updateVal(Q.data,`stopx`,n+c*Z.boxMargin,Math.max),o!==`activation`&&(i.updateVal(s,`startx`,e-c*Z.boxMargin,Math.min),i.updateVal(s,`stopx`,n+c*Z.boxMargin,Math.max),i.updateVal(Q.data,`starty`,t-c*Z.boxMargin,Math.min),i.updateVal(Q.data,`stopy`,r+c*Z.boxMargin,Math.max))},`updateItemBounds`)}j(o,`updateFn`),this.sequenceItems.forEach(o()),this.activations.forEach(o(`activation`))},`updateBounds`),insert:j(function(e,t,n,r){let i=T.getMin(e,n),a=T.getMax(e,n),o=T.getMin(t,r),s=T.getMax(t,r);this.updateVal(Q.data,`startx`,i,Math.min),this.updateVal(Q.data,`starty`,o,Math.min),this.updateVal(Q.data,`stopx`,a,Math.max),this.updateVal(Q.data,`stopy`,s,Math.max),this.updateBounds(i,o,a,s)},`insert`),newActivation:j(function(e,t,n){let r=n.get(e.from),i=nt(e.from).length||0,a=r.x+r.width/2+(i-1)*Z.activationWidth/2;this.activations.push({startx:a,starty:this.verticalPos+2,stopx:a+Z.activationWidth,stopy:void 0,actor:e.from,anchored:X.anchorElement(t)})},`newActivation`),endActivation:j(function(e){let t=this.activations.map(function(e){return e.actor}).lastIndexOf(e.from);return this.activations.splice(t,1)[0]},`endActivation`),createLoop:j(function(e={message:void 0,wrap:!1,width:void 0},t){return{startx:void 0,starty:this.verticalPos,stopx:void 0,stopy:void 0,title:e.message,wrap:e.wrap,width:e.width,height:0,fill:t}},`createLoop`),newLoop:j(function(e={message:void 0,wrap:!1,width:void 0},t){this.sequenceItems.push(this.createLoop(e,t))},`newLoop`),endLoop:j(function(){return this.sequenceItems.pop()},`endLoop`),isLoopOverlap:j(function(){return this.sequenceItems.length?this.sequenceItems[this.sequenceItems.length-1].overlap:!1},`isLoopOverlap`),addSectionToLoop:j(function(e){let t=this.sequenceItems.pop();t.sections=t.sections||[],t.sectionTitles=t.sectionTitles||[],t.sections.push({y:Q.getVerticalPos(),height:0}),t.sectionTitles.push(e),this.sequenceItems.push(t)},`addSectionToLoop`),saveVerticalPos:j(function(){this.isLoopOverlap()&&(this.savedVerticalPos=this.verticalPos)},`saveVerticalPos`),resetVerticalPos:j(function(){this.isLoopOverlap()&&(this.verticalPos=this.savedVerticalPos)},`resetVerticalPos`),bumpVerticalPos:j(function(e){this.verticalPos+=e,this.data.stopy=T.getMax(this.data.stopy,this.verticalPos)},`bumpVerticalPos`),getVerticalPos:j(function(){return this.verticalPos},`getVerticalPos`),getBounds:j(function(){return{bounds:this.data,models:this.models}},`getBounds`)},Ge=j(async function(e,t,n){Q.bumpVerticalPos(Z.boxMargin),t.height=Z.boxMargin,t.starty=Q.getVerticalPos();let r=c();r.x=t.startx,r.y=t.starty,r.width=t.width||Z.width,r.class=`note`;let a=e.append(`g`);a.attr(`data-et`,`note`),a.attr(`data-id`,`i`+n);let o=X.drawRect(a,r),s=i();s.x=t.startx,s.y=t.starty,s.width=r.width,s.dy=`1em`,s.text=t.message,s.class=`noteText`,s.fontFamily=Z.noteFontFamily,s.fontSize=Z.noteFontSize,s.fontWeight=Z.noteFontWeight,s.anchor=Z.noteAlign,s.textMargin=Z.noteMargin,s.valign=`center`;let l=S(s.text)?await ve(a,s):G(a,s),u=Math.round(l.map(e=>(e._groups||e)[0][0].getBBox().height).reduce((e,t)=>e+t));o.attr(`height`,u+2*Z.noteMargin),t.height+=u+2*Z.noteMargin,Q.bumpVerticalPos(u+2*Z.noteMargin),t.stopy=t.starty+u+2*Z.noteMargin,t.stopx=t.startx+r.width,Q.insert(t.startx,t.starty,t.stopx,t.stopy),Q.models.addNote(t)},`drawNote`),Ke=j(function(e,t,n,r,i,a,o){let s=r.db.getActors(),c=s.get(t.from),l=s.get(t.to),u=n.sequenceVisible,d=c.x+c.width/2,f=l.x+l.width/2,p=d<=f,m=mt(t,r),h=e.append(`g`),g=j((e,t)=>{let n=e?16.5:-16.5;return t?-n:n},`getCircleOffset`),_=j(e=>{h.append(`circle`).attr(`cx`,e).attr(`cy`,o).attr(`r`,5).attr(`width`,10).attr(`height`,10)},`drawCircle`),{CENTRAL_CONNECTION:v,CENTRAL_CONNECTION_REVERSE:y,CENTRAL_CONNECTION_DUAL:b}=r.db.LINETYPE;if(u)switch(t.centralConnection){case v:m&&(f+=g(p,!0));break;case y:m||(d+=g(p,!1));break;case b:m?f+=g(p,!0):d+=g(p,!1)}switch(t.centralConnection){case v:_(f);break;case y:_(d);break;case b:_(d),_(f)}},`drawCentralConnection`),qe=j(e=>({fontFamily:e.messageFontFamily,fontSize:e.messageFontSize,fontWeight:e.messageFontWeight}),`messageFont`),Je=j(e=>({fontFamily:e.noteFontFamily,fontSize:e.noteFontSize,fontWeight:e.noteFontWeight}),`noteFont`),Ye=j(e=>({fontFamily:e.actorFontFamily,fontSize:e.actorFontSize,fontWeight:e.actorFontWeight}),`actorFont`);async function Xe(e,t){Q.bumpVerticalPos(10);let{startx:n,stopx:r,message:i}=t,a=T.splitBreaks(i).length,o=S(i),s=o?await x(i,y()):l.calculateTextDimensions(i,qe(Z));if(!o){let e=s.height/a;t.height+=e,Q.bumpVerticalPos(e)}let c,u=s.height-10,d=s.width;if(n===r){c=Q.getVerticalPos()+u,Z.rightAngles||(u+=Z.boxMargin,c=Q.getVerticalPos()+u),u+=30;let e=T.getMax(d/2,Z.width/2);Q.insert(n-e,Q.getVerticalPos()-10+u,r+e,Q.getVerticalPos()+30+u)}else u+=Z.boxMargin,c=Q.getVerticalPos()+u,Q.insert(n,c-10,r,c);return Q.bumpVerticalPos(u),t.height+=u,t.stopy=t.starty+t.height,Q.insert(t.fromBounds,t.starty,t.toBounds,t.stopy),c}j(Xe,`boundMessage`);var Ze=j(async function(e,t,n,r,a,o){let{startx:s,stopx:c,starty:u,message:d,type:p,sequenceIndex:m,sequenceVisible:h}=t,g=l.calculateTextDimensions(d,qe(Z)),_=i();_.x=Math.min(s,c),_.y=u+10,_.width=Math.abs(c-s),_.class=`messageText`,_.dy=`1em`,_.text=d,_.fontFamily=Z.messageFontFamily,_.fontSize=Z.messageFontSize,_.fontWeight=Z.messageFontWeight,_.anchor=Z.messageAlign,_.valign=`center`,_.textMargin=Z.wrapPadding,_.tspan=!1,S(_.text)?await ve(e,_,{startx:s,stopx:c,starty:n}):G(e,_);let v=g.width,y;if(s===c){let i=h||Z.showSequenceNumbers,o=mt(a,r),l=ht(a,r),u=s+(i&&(o||l)?10:0);y=Z.rightAngles?e.append(`path`).attr(`d`,`M ${u},${n} H ${s+T.getMax(Z.width/2,v/2)} V ${n+25} H ${s}`):e.append(`path`).attr(`d`,`M `+u+`,`+n+` C `+(u+60)+`,`+(n-10)+` `+(s+60)+`,`+(n+30)+` `+s+`,`+(n+20)),ft(a,r)&&Ke(e,a,t,r,s,c,n)}else y=e.append(`line`),y.attr(`x1`,s),y.attr(`y1`,n),y.attr(`x2`,c),y.attr(`y2`,n),ft(a,r)&&Ke(e,a,t,r,s,c,n);p===r.db.LINETYPE.DOTTED||p===r.db.LINETYPE.DOTTED_CROSS||p===r.db.LINETYPE.DOTTED_POINT||p===r.db.LINETYPE.DOTTED_OPEN||p===r.db.LINETYPE.BIDIRECTIONAL_DOTTED||p===r.db.LINETYPE.SOLID_TOP_DOTTED||p===r.db.LINETYPE.SOLID_BOTTOM_DOTTED||p===r.db.LINETYPE.STICK_TOP_DOTTED||p===r.db.LINETYPE.STICK_BOTTOM_DOTTED||p===r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED||p===r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED||p===r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED||p===r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED?(y.style(`stroke-dasharray`,`3, 3`),y.attr(`class`,`messageLine1`)):y.attr(`class`,`messageLine0`),y.attr(`data-et`,`message`),y.attr(`data-id`,`i`+t.id),y.attr(`data-from`,t.from),y.attr(`data-to`,t.to);let b=``;if(Z.arrowMarkerAbsolute&&(b=f(!0)),y.attr(`stroke-width`,2),y.attr(`stroke`,`none`),y.style(`fill`,`none`),(p===r.db.LINETYPE.SOLID_TOP||p===r.db.LINETYPE.SOLID_TOP_DOTTED)&&y.attr(`marker-end`,`url(`+b+`#`+o+`-solidTopArrowHead)`),(p===r.db.LINETYPE.SOLID_BOTTOM||p===r.db.LINETYPE.SOLID_BOTTOM_DOTTED)&&y.attr(`marker-end`,`url(`+b+`#`+o+`-solidBottomArrowHead)`),(p===r.db.LINETYPE.STICK_TOP||p===r.db.LINETYPE.STICK_TOP_DOTTED)&&y.attr(`marker-end`,`url(`+b+`#`+o+`-stickTopArrowHead)`),(p===r.db.LINETYPE.STICK_BOTTOM||p===r.db.LINETYPE.STICK_BOTTOM_DOTTED)&&y.attr(`marker-end`,`url(`+b+`#`+o+`-stickBottomArrowHead)`),(p===r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE||p===r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED)&&y.attr(`marker-start`,`url(`+b+`#`+o+`-solidBottomArrowHead)`),(p===r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE||p===r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED)&&y.attr(`marker-start`,`url(`+b+`#`+o+`-solidTopArrowHead)`),(p===r.db.LINETYPE.STICK_ARROW_TOP_REVERSE||p===r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED)&&y.attr(`marker-start`,`url(`+b+`#`+o+`-stickBottomArrowHead)`),(p===r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE||p===r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED)&&y.attr(`marker-start`,`url(`+b+`#`+o+`-stickTopArrowHead)`),(p===r.db.LINETYPE.SOLID||p===r.db.LINETYPE.DOTTED)&&y.attr(`marker-end`,`url(`+b+`#`+o+`-arrowhead)`),(p===r.db.LINETYPE.BIDIRECTIONAL_SOLID||p===r.db.LINETYPE.BIDIRECTIONAL_DOTTED)&&(y.attr(`marker-start`,`url(`+b+`#`+o+`-arrowhead)`),y.attr(`marker-end`,`url(`+b+`#`+o+`-arrowhead)`)),(p===r.db.LINETYPE.SOLID_POINT||p===r.db.LINETYPE.DOTTED_POINT)&&y.attr(`marker-end`,`url(`+b+`#`+o+`-filled-head)`),(p===r.db.LINETYPE.SOLID_CROSS||p===r.db.LINETYPE.DOTTED_CROSS)&&y.attr(`marker-end`,`url(`+b+`#`+o+`-crosshead)`),h||Z.showSequenceNumbers){let i=p===r.db.LINETYPE.BIDIRECTIONAL_SOLID||p===r.db.LINETYPE.BIDIRECTIONAL_DOTTED,l=p===r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE||p===r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED||p===r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE||p===r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED||p===r.db.LINETYPE.STICK_ARROW_TOP_REVERSE||p===r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED||p===r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE||p===r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,u=ft(a,r),d=s,f=c;i?(s<c?d=s+12:(d=s-6+(u?-5:0),d+=a?.centralConnection===r.db.LINETYPE.CENTRAL_CONNECTION_DUAL||a?.centralConnection===r.db.LINETYPE.CENTRAL_CONNECTION_REVERSE?-7.5:0),y.attr(`x1`,d)):l?(c>s?f=c-12:(f=c-6,d+=a?.centralConnection===r.db.LINETYPE.CENTRAL_CONNECTION_DUAL||a?.centralConnection===r.db.LINETYPE.CENTRAL_CONNECTION_REVERSE?-7.5:0),f+=u?15:0,y.attr(`x2`,f),y.attr(`x1`,d)):y.attr(`x1`,s+6);let h=0,g=s===c,_=s<=c;h=g?t.fromBounds+1:l?_?t.toBounds-1:t.fromBounds+1:_?t.fromBounds+1:t.toBounds-1;let v=`12px`,x=m.toString().length;x>5?v=`7px`:x>3&&(v=`9px`),e.append(`line`).attr(`x1`,h).attr(`y1`,n).attr(`x2`,h).attr(`y2`,n).attr(`stroke-width`,0).attr(`marker-start`,`url(`+b+`#`+o+`-sequencenumber)`),e.append(`text`).attr(`x`,h).attr(`y`,n+4).attr(`font-family`,`sans-serif`).attr(`font-size`,v).attr(`text-anchor`,`middle`).attr(`class`,`sequenceNumber`).text(m)}},`drawMessage`),Qe=j(function(e,t,n,r,i,a,o){let s=0,c=0,l,u=0;for(let e of r){let r=t.get(e),a=r.box;l&&l!=a&&(o||Q.models.addBox(l),c+=Z.boxMargin+l.margin),a&&a!=l&&(o||(a.x=s+c,a.y=i),c+=a.margin),r.width=T.getMax(r.width||Z.width,Z.width),r.height=T.getMax(r.height||Z.height,Z.height),r.margin=r.margin||Z.actorMargin,u=T.getMax(u,r.height),n.get(r.name)&&(c+=r.width/2),r.x=s+c,r.starty=Q.getVerticalPos(),Q.insert(r.x,i,r.x+r.width,r.height),s+=r.width+c,r.box&&(r.box.width=s+a.margin-r.box.x),c=r.margin,l=r.box,Q.models.addActor(r)}l&&!o&&Q.models.addBox(l),Q.bumpVerticalPos(u)},`addActorRenderingData`),$e=j(async function(e,t,n,r,i,a,o){if(r){let r=0;Q.bumpVerticalPos(Z.boxMargin*2);for(let s of n){let n=t.get(s);n.stopy||=Q.getVerticalPos();let c=await X.drawActor(e,n,Z,!0,i,a,o);r=T.getMax(r,c)}Q.bumpVerticalPos(r+Z.boxMargin)}else for(let r of n){let n=t.get(r);await X.drawActor(e,n,Z,!1,i,a,o)}},`drawActors`),et=j(function(e,t,n,r){let i=0,a=0;for(let o of n){let n=t.get(o),s=st(n),c=X.drawPopup(e,n,s,Z,Z.forceMenus,r);c.height>i&&(i=c.height),c.width+n.x>a&&(a=c.width+n.x)}return{maxHeight:i,maxWidth:a}},`drawActorsPopup`),tt=j(function(e){w(Z,e),e.fontFamily&&(Z.actorFontFamily=Z.noteFontFamily=Z.messageFontFamily=e.fontFamily),e.fontSize&&(Z.actorFontSize=Z.noteFontSize=Z.messageFontSize=e.fontSize),e.fontWeight&&(Z.actorFontWeight=Z.noteFontWeight=Z.messageFontWeight=e.fontWeight)},`setConf`),nt=j(function(e){return Q.activations.filter(function(t){return t.actor===e})},`actorActivations`),rt=j(function(e,t){let n=t.get(e),r=nt(e);return[r.reduce(function(e,t){return T.getMin(e,t.startx)},n.x+n.width/2-1),r.reduce(function(e,t){return T.getMax(e,t.stopx)},n.x+n.width/2+1)]},`activationBounds`);function $(e,t,n,r,i){Q.bumpVerticalPos(n);let a=r;if(t.id&&t.message&&e[t.id]){let n=e[t.id].width,i=qe(Z);t.message=l.wrapLabel(`[${t.message}]`,n-2*Z.wrapPadding,i),t.width=n,t.wrap=!0;let o=l.calculateTextDimensions(t.message,i),s=T.getMax(o.height,Z.labelBoxHeight);a=r+s,k.debug(`${s} - ${t.message}`)}i(t),Q.bumpVerticalPos(a)}j($,`adjustLoopHeightForWrap`);function it(e,t,n,r,i,a,o){function s(n,r){n.x<i.get(e.from).x?(Q.insert(t.stopx-r,t.starty,t.startx,t.stopy+n.height/2+Z.noteMargin),t.stopx+=r):(Q.insert(t.startx,t.starty,t.stopx+r,t.stopy+n.height/2+Z.noteMargin),t.stopx-=r)}j(s,`receiverAdjustment`);function c(n,r){n.x<i.get(e.to).x?(Q.insert(t.startx-r,t.starty,t.stopx,t.stopy+n.height/2+Z.noteMargin),t.startx+=r):(Q.insert(t.stopx,t.starty,t.startx+r,t.stopy+n.height/2+Z.noteMargin),t.startx-=r)}j(c,`senderAdjustment`);let l=[R.ACTOR,R.CONTROL,R.ENTITY,R.DATABASE];if(a.get(e.to)==r){let t=i.get(e.to);s(t,l.includes(t.type)?z/2+3:t.width/2+3),t.starty=n-t.height/2,Q.bumpVerticalPos(t.height/2)}else if(o.get(e.from)==r){let t=i.get(e.from);Z.mirrorActors&&c(t,l.includes(t.type)?z/2:t.width/2),t.stopy=n-t.height/2,Q.bumpVerticalPos(t.height/2)}else if(o.get(e.to)==r){let t=i.get(e.to);Z.mirrorActors&&s(t,l.includes(t.type)?z/2+3:t.width/2+3),t.stopy=n-t.height/2,Q.bumpVerticalPos(t.height/2)}}j(it,`adjustCreatedDestroyedData`);var at=j(async function(e,t,n,r){let{securityLevel:i,sequence:a,look:o,themeVariables:s}=y();Z=a;let c;i===`sandbox`&&(c=A(`#i`+t));let l=A(i===`sandbox`?c.nodes()[0].contentDocument.body:`body`),u=i===`sandbox`?c.nodes()[0].contentDocument:document;Q.init(),k.debug(r.db);let d=i===`sandbox`?l.select(`[id="${t}"]`):A(`[id="${t}"]`),f=r.db.getActors(),p=r.db.getCreatedActors(),m=r.db.getDestroyedActors(),h=r.db.getBoxes(),g=r.db.getActorKeys(),_=r.db.getMessages(),v=r.db.getDiagramTitle(),x=r.db.hasAtLeastOneBox(),S=r.db.hasAtLeastOneBoxWithTitle(),C=await ot(f,_,r);if(Z.height=await ct(f,C,h),X.insertComputerIcon(d,t),X.insertDatabaseIcon(d,t),X.insertClockIcon(d,t),x&&(Q.bumpVerticalPos(Z.boxMargin),S&&Q.bumpVerticalPos(h[0].textMaxHeight)),Z.hideUnusedParticipants===!0){let e=new Set;_.forEach(t=>{e.add(t.from),e.add(t.to)}),g=g.filter(t=>e.has(t))}let w=new Map(g.map((e,t)=>[f.get(e)?.name??e,t]));Qe(d,f,p,g,0,_,!1);let T=await _t(_,f,C,r);X.insertArrowHead(d,t),X.insertArrowCrossHead(d,t),X.insertArrowFilledHead(d,t),X.insertSequenceNumber(d,t),X.insertSolidTopArrowHead(d,t),X.insertSolidBottomArrowHead(d,t),X.insertStickTopArrowHead(d,t),X.insertStickBottomArrowHead(d,t),o===`neo`&&X.insertDropShadow(d,Z,t);function E(e,t){let n=Q.endActivation(e);n.starty+18>t&&(n.starty=t-6,t+=12),X.drawActivation(d,n,t,Z,nt(e.from).length,r,w),Q.insert(n.startx,t-10,n.stopx,t)}j(E,`activeEnd`);let D=1,O=1,M=[],N=[],P=0;for(let e of _){let t,n,i;switch(e.type){case r.db.LINETYPE.NOTE:Q.resetVerticalPos(),n=e.noteModel,await Ge(d,n,e.id);break;case r.db.LINETYPE.ACTIVE_START:Q.newActivation(e,d,f);break;case r.db.LINETYPE.CENTRAL_CONNECTION:Q.newActivation(e,d,f);break;case r.db.LINETYPE.CENTRAL_CONNECTION_REVERSE:Q.newActivation(e,d,f);break;case r.db.LINETYPE.ACTIVE_END:E(e,Q.getVerticalPos());break;case r.db.LINETYPE.LOOP_START:$(T,e,Z.boxMargin,Z.boxMargin+Z.boxTextMargin,e=>Q.newLoop(e));break;case r.db.LINETYPE.LOOP_END:t=Q.endLoop(),await X.drawLoop(d,t,`loop`,Z,e),Q.bumpVerticalPos(t.stopy-Q.getVerticalPos()),Q.models.addLoop(t);break;case r.db.LINETYPE.RECT_START:$(T,e,Z.boxMargin,Z.boxMargin,e=>{let t=e.message;t||=s?.rectBkgColor||s?.actorBkg||`rgba(128, 128, 128, 0.5)`,Q.newLoop(void 0,t)});break;case r.db.LINETYPE.RECT_END:t=Q.endLoop(),N.push(t),Q.models.addLoop(t),Q.bumpVerticalPos(t.stopy-Q.getVerticalPos());break;case r.db.LINETYPE.OPT_START:$(T,e,Z.boxMargin,Z.boxMargin+Z.boxTextMargin,e=>Q.newLoop(e));break;case r.db.LINETYPE.OPT_END:t=Q.endLoop(),await X.drawLoop(d,t,`opt`,Z,e),Q.bumpVerticalPos(t.stopy-Q.getVerticalPos()),Q.models.addLoop(t);break;case r.db.LINETYPE.ALT_START:$(T,e,Z.boxMargin,Z.boxMargin+Z.boxTextMargin,e=>Q.newLoop(e));break;case r.db.LINETYPE.ALT_ELSE:$(T,e,Z.boxMargin+Z.boxTextMargin,Z.boxMargin,e=>Q.addSectionToLoop(e));break;case r.db.LINETYPE.ALT_END:t=Q.endLoop(),await X.drawLoop(d,t,`alt`,Z,e),Q.bumpVerticalPos(t.stopy-Q.getVerticalPos()),Q.models.addLoop(t);break;case r.db.LINETYPE.PAR_START:case r.db.LINETYPE.PAR_OVER_START:$(T,e,Z.boxMargin,Z.boxMargin+Z.boxTextMargin,e=>Q.newLoop(e)),Q.saveVerticalPos();break;case r.db.LINETYPE.PAR_AND:$(T,e,Z.boxMargin+Z.boxTextMargin,Z.boxMargin,e=>Q.addSectionToLoop(e));break;case r.db.LINETYPE.PAR_END:t=Q.endLoop(),await X.drawLoop(d,t,`par`,Z,e),Q.bumpVerticalPos(t.stopy-Q.getVerticalPos()),Q.models.addLoop(t);break;case r.db.LINETYPE.AUTONUMBER:D=e.message.start||D,O=e.message.step||O,e.message.visible?r.db.enableSequenceNumbers():r.db.disableSequenceNumbers();break;case r.db.LINETYPE.CRITICAL_START:$(T,e,Z.boxMargin,Z.boxMargin+Z.boxTextMargin,e=>Q.newLoop(e));break;case r.db.LINETYPE.CRITICAL_OPTION:$(T,e,Z.boxMargin+Z.boxTextMargin,Z.boxMargin,e=>Q.addSectionToLoop(e));break;case r.db.LINETYPE.CRITICAL_END:t=Q.endLoop(),await X.drawLoop(d,t,`critical`,Z,e),Q.bumpVerticalPos(t.stopy-Q.getVerticalPos()),Q.models.addLoop(t);break;case r.db.LINETYPE.BREAK_START:$(T,e,Z.boxMargin,Z.boxMargin+Z.boxTextMargin,e=>Q.newLoop(e));break;case r.db.LINETYPE.BREAK_END:t=Q.endLoop(),await X.drawLoop(d,t,`break`,Z,e),Q.bumpVerticalPos(t.stopy-Q.getVerticalPos()),Q.models.addLoop(t);break;default:try{i=e.msgModel,i.starty=Q.getVerticalPos(),i.sequenceIndex=D,i.sequenceVisible=r.db.showSequenceNumbers(),i.id=e.id,i.from=e.from,i.to=e.to;let t=await Xe(d,i);it(e,i,t,P,f,p,m),M.push({messageModel:i,lineStartY:t,msg:e}),Q.models.addMessage(i)}catch(e){k.error(`error while drawing message`,e)}}[r.db.LINETYPE.SOLID_OPEN,r.db.LINETYPE.DOTTED_OPEN,r.db.LINETYPE.SOLID,r.db.LINETYPE.SOLID_TOP,r.db.LINETYPE.SOLID_BOTTOM,r.db.LINETYPE.STICK_TOP,r.db.LINETYPE.STICK_BOTTOM,r.db.LINETYPE.SOLID_TOP_DOTTED,r.db.LINETYPE.SOLID_BOTTOM_DOTTED,r.db.LINETYPE.STICK_TOP_DOTTED,r.db.LINETYPE.STICK_BOTTOM_DOTTED,r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE,r.db.LINETYPE.STICK_ARROW_TOP_REVERSE,r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,r.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,r.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,r.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,r.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,r.db.LINETYPE.DOTTED,r.db.LINETYPE.SOLID_CROSS,r.db.LINETYPE.DOTTED_CROSS,r.db.LINETYPE.SOLID_POINT,r.db.LINETYPE.DOTTED_POINT,r.db.LINETYPE.BIDIRECTIONAL_SOLID,r.db.LINETYPE.BIDIRECTIONAL_DOTTED].includes(e.type)&&(D=Math.round((D+O)*100)/100),P++}k.debug(`createdActors`,p),k.debug(`destroyedActors`,m),await $e(d,f,g,!1,t,r,w);for(let e of M)await Ze(d,e.messageModel,e.lineStartY,r,e.msg,t);Z.mirrorActors&&await $e(d,f,g,!0,t,r,w),N.forEach(e=>X.drawBackgroundRect(d,e)),be(d,f,g,Z);for(let e of Q.models.boxes){e.height=Q.getVerticalPos()-e.y,Q.insert(e.x,e.y,e.x+e.width,e.height);let t=Z.boxMargin*2;e.startx=e.x-t,e.starty=e.y-t*.25,e.stopx=e.startx+e.width+2*t,e.stopy=e.starty+e.height+t*.75,e.stroke=`rgb(0,0,0, 0.5)`,X.drawBox(d,e,Z)}x&&Q.bumpVerticalPos(Z.boxMargin);let F=et(d,f,g,u),{bounds:I}=Q.getBounds();I.startx===void 0&&(I.startx=0),I.starty===void 0&&(I.starty=0),I.stopx===void 0&&(I.stopx=0),I.stopy===void 0&&(I.stopy=0);let L=I.stopy-I.starty;L<F.maxHeight&&(L=F.maxHeight);let ee=L+2*Z.diagramMarginY;Z.mirrorActors&&(ee=ee-Z.boxMargin+Z.bottomMarginAdj);let R=I.stopx-I.startx;R<F.maxWidth&&(R=F.maxWidth);let te=R+2*Z.diagramMarginX;v&&d.append(`text`).text(v).attr(`x`,(I.stopx-I.startx)/2-2*Z.diagramMarginX).attr(`y`,-25),b(d,ee,te,Z.useMaxWidth);let ne=v?40:0,re=f.size&&o===`neo`?30:0;d.attr(`viewBox`,I.startx-Z.diagramMarginX+` -`+(Z.diagramMarginY+ne)+` `+te+` `+(ee+ne+re)),k.debug(`models:`,Q.models)},`draw`);async function ot(e,t,n){let r={};for(let i of t)if(e.get(i.to)&&e.get(i.from)){let t=e.get(i.to);if(i.placement===n.db.PLACEMENT.LEFTOF&&!t.prevActor||i.placement===n.db.PLACEMENT.RIGHTOF&&!t.nextActor)continue;let a=i.placement!==void 0,o=!a,s=a?Je(Z):qe(Z),c=i.wrap?l.wrapLabel(i.message,Z.width-2*Z.wrapPadding,s):i.message,u=(S(c)?await x(i.message,y()):l.calculateTextDimensions(c,s)).width+2*Z.wrapPadding;o&&i.from===t.nextActor?r[i.to]=T.getMax(r[i.to]||0,u):o&&i.from===t.prevActor?r[i.from]=T.getMax(r[i.from]||0,u):o&&i.from===i.to?(r[i.from]=T.getMax(r[i.from]||0,u/2),r[i.to]=T.getMax(r[i.to]||0,u/2)):i.placement===n.db.PLACEMENT.RIGHTOF?r[i.from]=T.getMax(r[i.from]||0,u):i.placement===n.db.PLACEMENT.LEFTOF?r[t.prevActor]=T.getMax(r[t.prevActor]||0,u):i.placement===n.db.PLACEMENT.OVER&&(t.prevActor&&(r[t.prevActor]=T.getMax(r[t.prevActor]||0,u/2)),t.nextActor&&(r[i.from]=T.getMax(r[i.from]||0,u/2)))}return k.debug(`maxMessageWidthPerActor:`,r),r}j(ot,`getMaxMessageWidthPerActor`);var st=j(function(e){let t=0,n=Ye(Z);for(let r in e.links){let e=l.calculateTextDimensions(r,n).width+2*Z.wrapPadding+2*Z.boxMargin;t<e&&(t=e)}return t},`getRequiredPopupWidth`);async function ct(e,t,n){let r=0;for(let t of e.keys()){let n=e.get(t);n.wrap&&(n.description=l.wrapLabel(n.description,Z.width-2*Z.wrapPadding,Ye(Z)));let i=S(n.description)?await x(n.description,y()):l.calculateTextDimensions(n.description,Ye(Z));n.width=n.wrap?Z.width:T.getMax(Z.width,i.width+2*Z.wrapPadding),y().look===`neo`?(n.actorTextHeight=i.height,n.height=T.getMax(se(i.height),Z.height)):n.height=n.wrap?T.getMax(i.height,Z.height):Z.height,r=T.getMax(r,n.height)}for(let n in t){let r=e.get(n);if(!r)continue;let i=e.get(r.nextActor);if(!i){let e=t[n]+Z.actorMargin-r.width/2;r.margin=T.getMax(e,Z.actorMargin);continue}let a=t[n]+Z.actorMargin-r.width/2-i.width/2;r.margin=T.getMax(a,Z.actorMargin)}let i=0;return n.forEach(t=>{let n=qe(Z),r=t.actorKeys.reduce((t,n)=>t+=e.get(n).width+(e.get(n).margin||0),0),a=Z.boxMargin*8;r+=a,r-=2*Z.boxTextMargin,t.wrap&&(t.name=l.wrapLabel(t.name,r-2*Z.wrapPadding,n));let o=l.calculateTextDimensions(t.name,n);i=T.getMax(o.height,i);let s=T.getMax(r,o.width+2*Z.wrapPadding);if(t.margin=Z.boxTextMargin,r<s){let e=(s-r)/2;t.margin+=e}}),n.forEach(e=>e.textMaxHeight=i),T.getMax(r,Z.height)}j(ct,`calculateActorMargins`);var lt=j(async function(e,t,n){let r=t.get(e.from),i=t.get(e.to),a=r.x,o=i.x,s=e.wrap&&e.message,c=S(e.message)?await x(e.message,y()):l.calculateTextDimensions(s?l.wrapLabel(e.message,Z.width,Je(Z)):e.message,Je(Z)),u={width:s?Z.width:T.getMax(Z.width,c.width+2*Z.noteMargin),height:0,startx:r.x,stopx:0,starty:0,stopy:0,message:e.message};return e.placement===n.db.PLACEMENT.RIGHTOF?(u.width=s?T.getMax(Z.width,c.width):T.getMax(r.width/2+i.width/2,c.width+2*Z.noteMargin),u.startx=a+(r.width+Z.actorMargin)/2):e.placement===n.db.PLACEMENT.LEFTOF?(u.width=s?T.getMax(Z.width,c.width+2*Z.noteMargin):T.getMax(r.width/2+i.width/2,c.width+2*Z.noteMargin),u.startx=a-u.width+(r.width-Z.actorMargin)/2):e.to===e.from?(c=l.calculateTextDimensions(s?l.wrapLabel(e.message,T.getMax(Z.width,r.width),Je(Z)):e.message,Je(Z)),u.width=s?T.getMax(Z.width,r.width):T.getMax(r.width,Z.width,c.width+2*Z.noteMargin),u.startx=a+(r.width-u.width)/2):(u.width=Math.abs(a+r.width/2-(o+i.width/2))+Z.actorMargin,u.startx=a<o?a+r.width/2-Z.actorMargin/2:o+i.width/2-Z.actorMargin/2),s&&(u.message=l.wrapLabel(e.message,u.width-2*Z.wrapPadding,Je(Z))),k.debug(`NM:[${u.startx},${u.stopx},${u.starty},${u.stopy}:${u.width},${u.height}=${e.message}]`),u},`buildNoteModel`),ut=4,dt=6,ft=j(function(e,t){let{CENTRAL_CONNECTION:n,CENTRAL_CONNECTION_REVERSE:r,CENTRAL_CONNECTION_DUAL:i}=t.db.LINETYPE;return[n,r,i].includes(e.centralConnection)},`hasCentralConnection`),pt=j(function(e,t,n){let{CENTRAL_CONNECTION_REVERSE:r,CENTRAL_CONNECTION_DUAL:i,BIDIRECTIONAL_SOLID:a,BIDIRECTIONAL_DOTTED:o}=t.db.LINETYPE,s=0;return(e.centralConnection===r||e.centralConnection===i)&&(s+=ut),e.centralConnection!==r&&e.centralConnection!==i||e.type!==a&&e.type!==o||(s+=n?0:-dt),s},`calculateCentralConnectionOffset`),mt=j(function(e,t){let{SOLID_ARROW_TOP_REVERSE:n,SOLID_ARROW_TOP_REVERSE_DOTTED:r,SOLID_ARROW_BOTTOM_REVERSE:i,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:a,STICK_ARROW_TOP_REVERSE:o,STICK_ARROW_TOP_REVERSE_DOTTED:s,STICK_ARROW_BOTTOM_REVERSE:c,STICK_ARROW_BOTTOM_REVERSE_DOTTED:l}=t.db.LINETYPE;return[n,r,i,a,o,s,c,l].includes(e.type)},`isReverseArrowType`),ht=j(function(e,t){let{BIDIRECTIONAL_SOLID:n,BIDIRECTIONAL_DOTTED:r}=t.db.LINETYPE;return[n,r].includes(e.type)},`isBidirectionalArrowType`),gt=j(function(e,t,n){let{look:r}=y();if(![n.db.LINETYPE.SOLID_OPEN,n.db.LINETYPE.DOTTED_OPEN,n.db.LINETYPE.SOLID,n.db.LINETYPE.SOLID_TOP,n.db.LINETYPE.SOLID_BOTTOM,n.db.LINETYPE.STICK_TOP,n.db.LINETYPE.STICK_BOTTOM,n.db.LINETYPE.SOLID_TOP_DOTTED,n.db.LINETYPE.SOLID_BOTTOM_DOTTED,n.db.LINETYPE.STICK_TOP_DOTTED,n.db.LINETYPE.STICK_BOTTOM_DOTTED,n.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,n.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE,n.db.LINETYPE.STICK_ARROW_TOP_REVERSE,n.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,n.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,n.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,n.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,n.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,n.db.LINETYPE.DOTTED,n.db.LINETYPE.SOLID_CROSS,n.db.LINETYPE.DOTTED_CROSS,n.db.LINETYPE.SOLID_POINT,n.db.LINETYPE.DOTTED_POINT,n.db.LINETYPE.BIDIRECTIONAL_SOLID,n.db.LINETYPE.BIDIRECTIONAL_DOTTED].includes(e.type))return{};let[i,a]=rt(e.from,t),[o,s]=rt(e.to,t),c=i<=o,u=c?a:i,d=c?o:s;r===`neo`&&(e.type!==n.db.LINETYPE.SOLID_OPEN&&(d+=c?-3:3),(e.type===n.db.LINETYPE.BIDIRECTIONAL_SOLID||e.type===n.db.LINETYPE.BIDIRECTIONAL_DOTTED)&&(u+=c?3:-3)),u+=pt(e,n,c);let f=Math.abs(o-s)>2,p=j(e=>c?-e:e,`adjustValue`);e.from===e.to?d=u:(e.activate&&!f&&(d+=p(Z.activationWidth/2-1)),[n.db.LINETYPE.SOLID_OPEN,n.db.LINETYPE.DOTTED_OPEN,n.db.LINETYPE.STICK_TOP,n.db.LINETYPE.STICK_BOTTOM,n.db.LINETYPE.STICK_TOP_DOTTED,n.db.LINETYPE.STICK_BOTTOM_DOTTED,n.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,n.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,n.db.LINETYPE.STICK_ARROW_TOP_REVERSE,n.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,n.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,n.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,n.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,n.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE].includes(e.type)||(d+=p(3)),[n.db.LINETYPE.BIDIRECTIONAL_SOLID,n.db.LINETYPE.BIDIRECTIONAL_DOTTED,n.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,n.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,n.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,n.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE].includes(e.type)&&(u-=p(3)));let m=[i,a,o,s],h=Math.abs(u-d);e.wrap&&e.message&&(e.message=l.wrapLabel(e.message,T.getMax(h+2*Z.wrapPadding,Z.width),qe(Z)));let g=l.calculateTextDimensions(e.message,qe(Z));return{width:T.getMax(e.wrap?0:g.width+2*Z.wrapPadding,h+2*Z.wrapPadding,Z.width),height:0,startx:u,stopx:d,starty:0,stopy:0,message:e.message,type:e.type,wrap:e.wrap,fromBounds:Math.min.apply(null,m),toBounds:Math.max.apply(null,m)}},`buildMessageModel`),_t=j(async function(e,t,n,r){let i={},a=[],o,s,c;for(let n of e){switch(n.type){case r.db.LINETYPE.LOOP_START:case r.db.LINETYPE.ALT_START:case r.db.LINETYPE.OPT_START:case r.db.LINETYPE.PAR_START:case r.db.LINETYPE.PAR_OVER_START:case r.db.LINETYPE.CRITICAL_START:case r.db.LINETYPE.BREAK_START:a.push({id:n.id,msg:n.message,from:2**53-1,to:-(2**53-1),width:0});break;case r.db.LINETYPE.ALT_ELSE:case r.db.LINETYPE.PAR_AND:case r.db.LINETYPE.CRITICAL_OPTION:n.message&&(o=a.pop(),i[o.id]=o,i[n.id]=o,a.push(o));break;case r.db.LINETYPE.LOOP_END:case r.db.LINETYPE.ALT_END:case r.db.LINETYPE.OPT_END:case r.db.LINETYPE.PAR_END:case r.db.LINETYPE.CRITICAL_END:case r.db.LINETYPE.BREAK_END:o=a.pop(),i[o.id]=o;break;case r.db.LINETYPE.ACTIVE_START:{let e=t.get(n.from?n.from:n.to.actor),r=nt(n.from?n.from:n.to.actor).length,i=e.x+e.width/2+(r-1)*Z.activationWidth/2,a={startx:i,stopx:i+Z.activationWidth,actor:n.from,enabled:!0};Q.activations.push(a)}break;case r.db.LINETYPE.ACTIVE_END:{let e=Q.activations.map(e=>e.actor).lastIndexOf(n.from);Q.activations.splice(e,1).splice(0,1)}}n.placement===void 0?(c=gt(n,t,r),n.msgModel=c,c.startx&&c.stopx&&a.length>0&&a.forEach(e=>{if(o=e,c.startx===c.stopx){let e=t.get(n.from),r=t.get(n.to);o.from=T.getMin(e.x-c.width/2,e.x-e.width/2,o.from),o.to=T.getMax(r.x+c.width/2,r.x+e.width/2,o.to),o.width=T.getMax(o.width,Math.abs(o.to-o.from))-Z.labelBoxWidth}else o.from=T.getMin(c.startx,o.from),o.to=T.getMax(c.stopx,o.to),o.width=T.getMax(o.width,c.width)-Z.labelBoxWidth})):(s=await lt(n,t,r),n.noteModel=s,a.forEach(e=>{o=e,o.from=T.getMin(o.from,s.startx),o.to=T.getMax(o.to,s.startx+s.width),o.width=T.getMax(o.width,Math.abs(o.from-o.to))-Z.labelBoxWidth}))}return Q.activations=[],k.debug(`Loop type widths:`,i),i},`calculateLoopBounds`),vt={parser:F,get db(){return new te},renderer:{bounds:Q,drawActors:$e,drawActorsPopup:et,setConf:tt,draw:at},styles:ne,init:j(e=>{e.sequence||={},e.wrap&&(e.sequence.wrap=e.wrap,m({sequence:{wrap:e.wrap}}))},`init`)};export{vt as diagram};
@@ -0,0 +1 @@
1
+ var e={comments:{lineComment:`#`},brackets:[[`{`,`}`],[`[`,`]`],[`(`,`)`]],autoClosingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`},{open:`'`,close:`'`},{open:"`",close:"`"}],surroundingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`},{open:`'`,close:`'`},{open:"`",close:"`"}]},t={defaultToken:``,ignoreCase:!0,tokenPostfix:`.shell`,brackets:[{token:`delimiter.bracket`,open:`{`,close:`}`},{token:`delimiter.parenthesis`,open:`(`,close:`)`},{token:`delimiter.square`,open:`[`,close:`]`}],keywords:[`if`,`then`,`do`,`else`,`elif`,`while`,`until`,`for`,`in`,`esac`,`fi`,`fin`,`fil`,`done`,`exit`,`set`,`unset`,`export`,`function`],builtins:`ab.awk.bash.beep.cat.cc.cd.chown.chmod.chroot.clear.cp.curl.cut.diff.echo.find.gawk.gcc.get.git.grep.hg.kill.killall.ln.ls.make.mkdir.openssl.mv.nc.node.npm.ping.ps.restart.rm.rmdir.sed.service.sh.shopt.shred.source.sort.sleep.ssh.start.stop.su.sudo.svn.tee.telnet.top.touch.vi.vim.wall.wc.wget.who.write.yes.zsh`.split(`.`),startingWithDash:/\-+\w+/,identifiersWithDashes:/[a-zA-Z]\w+(?:@startingWithDash)+/,symbols:/[=><!~?&|+\-*\/\^;\.,]+/,tokenizer:{root:[[/@identifiersWithDashes/,``],[/(\s)((?:@startingWithDash)+)/,[`white`,`attribute.name`]],[/[a-zA-Z]\w*/,{cases:{"@keywords":`keyword`,"@builtins":`type.identifier`,"@default":``}}],{include:`@whitespace`},{include:`@strings`},{include:`@parameters`},{include:`@heredoc`},[/[{}\[\]()]/,`@brackets`],[/@symbols/,`delimiter`],{include:`@numbers`},[/[,;]/,`delimiter`]],whitespace:[[/\s+/,`white`],[/(^#!.*$)/,`metatag`],[/(^#.*$)/,`comment`]],numbers:[[/\d*\.\d+([eE][\-+]?\d+)?/,`number.float`],[/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/,`number.hex`],[/\d+/,`number`]],strings:[[/'/,`string`,`@stringBody`],[/"/,`string`,`@dblStringBody`]],stringBody:[[/'/,`string`,`@popall`],[/./,`string`]],dblStringBody:[[/"/,`string`,`@popall`],[/./,`string`]],heredoc:[[/(<<[-<]?)(\s*)(['"`]?)([\w\-]+)(['"`]?)/,[`constants`,`white`,`string.heredoc.delimiter`,`string.heredoc`,`string.heredoc.delimiter`]]],parameters:[[/\$\d+/,`variable.predefined`],[/\$\w+/,`variable`],[/\$[*@#?\-$!0_]/,`variable`],[/\$'/,`variable`,`@parameterBodyQuote`],[/\$"/,`variable`,`@parameterBodyDoubleQuote`],[/\$\(/,`variable`,`@parameterBodyParen`],[/\$\{/,`variable`,`@parameterBodyCurlyBrace`]],parameterBodyQuote:[[/[^#:%*@\-!_']+/,`variable`],[/[#:%*@\-!_]/,`delimiter`],[/[']/,`variable`,`@pop`]],parameterBodyDoubleQuote:[[/[^#:%*@\-!_"]+/,`variable`],[/[#:%*@\-!_]/,`delimiter`],[/["]/,`variable`,`@pop`]],parameterBodyParen:[[/[^#:%*@\-!_)]+/,`variable`],[/[#:%*@\-!_]/,`delimiter`],[/[)]/,`variable`,`@pop`]],parameterBodyCurlyBrace:[[/[^#:%*@\-!_}]+/,`variable`],[/[#:%*@\-!_]/,`delimiter`],[/[}]/,`variable`,`@pop`]]}};export{e as conf,t as language};
@@ -0,0 +1 @@
1
+ import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";var t=1;function n(){if(typeof globalThis<`u`)return globalThis}e(n,`getCaptureGlobal`);function r(){return!!n()?.mermaidCaptureSizes}e(r,`shouldCaptureSizes`);function i(){return typeof location>`u`?`browser-dev`:`${location.pathname}${location.search}`}e(i,`capturedFromLocation`);function a(e,t){let r=n();if(!r)return;let i=t.node(),a=((i&&`ownerSVGElement`in i?i.ownerSVGElement:null)??i)?.id??`(unknown)`;r.mermaidCapturedSizes??=[];let o={svgId:a,sizes:e};r.mermaidCapturedSizes.push(o),r.mermaidLastCapturedSizes=o}e(a,`emitCapturedSizes`);function o(e,n){let r=[];for(let e of n.nodes)e.isGroup||r.push({id:e.id,width:e.width??0,height:e.height??0});r.length!==0&&a({metadata:{captureVersion:t,capturedAt:new Date().toISOString(),capturedFrom:i()},nodes:r},e)}e(o,`captureNodeSizes`);export{o as captureNodeSizes};
@@ -0,0 +1 @@
1
+ var e={comments:{lineComment:`//`,blockComment:[`/*`,`*/`]},brackets:[[`{`,`}`],[`[`,`]`],[`(`,`)`],[`<`,`>`]],autoClosingPairs:[{open:`"`,close:`"`,notIn:[`string`,`comment`]},{open:`{`,close:`}`,notIn:[`string`,`comment`]},{open:`[`,close:`]`,notIn:[`string`,`comment`]},{open:`(`,close:`)`,notIn:[`string`,`comment`]}]},t={defaultToken:``,tokenPostfix:`.sol`,brackets:[{token:`delimiter.curly`,open:`{`,close:`}`},{token:`delimiter.parenthesis`,open:`(`,close:`)`},{token:`delimiter.square`,open:`[`,close:`]`},{token:`delimiter.angle`,open:`<`,close:`>`}],keywords:`pragma.solidity.contract.library.using.struct.function.modifier.constructor.address.string.bool.Int.Uint.Byte.Fixed.Ufixed.int.int8.int16.int24.int32.int40.int48.int56.int64.int72.int80.int88.int96.int104.int112.int120.int128.int136.int144.int152.int160.int168.int176.int184.int192.int200.int208.int216.int224.int232.int240.int248.int256.uint.uint8.uint16.uint24.uint32.uint40.uint48.uint56.uint64.uint72.uint80.uint88.uint96.uint104.uint112.uint120.uint128.uint136.uint144.uint152.uint160.uint168.uint176.uint184.uint192.uint200.uint208.uint216.uint224.uint232.uint240.uint248.uint256.byte.bytes.bytes1.bytes2.bytes3.bytes4.bytes5.bytes6.bytes7.bytes8.bytes9.bytes10.bytes11.bytes12.bytes13.bytes14.bytes15.bytes16.bytes17.bytes18.bytes19.bytes20.bytes21.bytes22.bytes23.bytes24.bytes25.bytes26.bytes27.bytes28.bytes29.bytes30.bytes31.bytes32.fixed.fixed0x8.fixed0x16.fixed0x24.fixed0x32.fixed0x40.fixed0x48.fixed0x56.fixed0x64.fixed0x72.fixed0x80.fixed0x88.fixed0x96.fixed0x104.fixed0x112.fixed0x120.fixed0x128.fixed0x136.fixed0x144.fixed0x152.fixed0x160.fixed0x168.fixed0x176.fixed0x184.fixed0x192.fixed0x200.fixed0x208.fixed0x216.fixed0x224.fixed0x232.fixed0x240.fixed0x248.fixed0x256.fixed8x8.fixed8x16.fixed8x24.fixed8x32.fixed8x40.fixed8x48.fixed8x56.fixed8x64.fixed8x72.fixed8x80.fixed8x88.fixed8x96.fixed8x104.fixed8x112.fixed8x120.fixed8x128.fixed8x136.fixed8x144.fixed8x152.fixed8x160.fixed8x168.fixed8x176.fixed8x184.fixed8x192.fixed8x200.fixed8x208.fixed8x216.fixed8x224.fixed8x232.fixed8x240.fixed8x248.fixed16x8.fixed16x16.fixed16x24.fixed16x32.fixed16x40.fixed16x48.fixed16x56.fixed16x64.fixed16x72.fixed16x80.fixed16x88.fixed16x96.fixed16x104.fixed16x112.fixed16x120.fixed16x128.fixed16x136.fixed16x144.fixed16x152.fixed16x160.fixed16x168.fixed16x176.fixed16x184.fixed16x192.fixed16x200.fixed16x208.fixed16x216.fixed16x224.fixed16x232.fixed16x240.fixed24x8.fixed24x16.fixed24x24.fixed24x32.fixed24x40.fixed24x48.fixed24x56.fixed24x64.fixed24x72.fixed24x80.fixed24x88.fixed24x96.fixed24x104.fixed24x112.fixed24x120.fixed24x128.fixed24x136.fixed24x144.fixed24x152.fixed24x160.fixed24x168.fixed24x176.fixed24x184.fixed24x192.fixed24x200.fixed24x208.fixed24x216.fixed24x224.fixed24x232.fixed32x8.fixed32x16.fixed32x24.fixed32x32.fixed32x40.fixed32x48.fixed32x56.fixed32x64.fixed32x72.fixed32x80.fixed32x88.fixed32x96.fixed32x104.fixed32x112.fixed32x120.fixed32x128.fixed32x136.fixed32x144.fixed32x152.fixed32x160.fixed32x168.fixed32x176.fixed32x184.fixed32x192.fixed32x200.fixed32x208.fixed32x216.fixed32x224.fixed40x8.fixed40x16.fixed40x24.fixed40x32.fixed40x40.fixed40x48.fixed40x56.fixed40x64.fixed40x72.fixed40x80.fixed40x88.fixed40x96.fixed40x104.fixed40x112.fixed40x120.fixed40x128.fixed40x136.fixed40x144.fixed40x152.fixed40x160.fixed40x168.fixed40x176.fixed40x184.fixed40x192.fixed40x200.fixed40x208.fixed40x216.fixed48x8.fixed48x16.fixed48x24.fixed48x32.fixed48x40.fixed48x48.fixed48x56.fixed48x64.fixed48x72.fixed48x80.fixed48x88.fixed48x96.fixed48x104.fixed48x112.fixed48x120.fixed48x128.fixed48x136.fixed48x144.fixed48x152.fixed48x160.fixed48x168.fixed48x176.fixed48x184.fixed48x192.fixed48x200.fixed48x208.fixed56x8.fixed56x16.fixed56x24.fixed56x32.fixed56x40.fixed56x48.fixed56x56.fixed56x64.fixed56x72.fixed56x80.fixed56x88.fixed56x96.fixed56x104.fixed56x112.fixed56x120.fixed56x128.fixed56x136.fixed56x144.fixed56x152.fixed56x160.fixed56x168.fixed56x176.fixed56x184.fixed56x192.fixed56x200.fixed64x8.fixed64x16.fixed64x24.fixed64x32.fixed64x40.fixed64x48.fixed64x56.fixed64x64.fixed64x72.fixed64x80.fixed64x88.fixed64x96.fixed64x104.fixed64x112.fixed64x120.fixed64x128.fixed64x136.fixed64x144.fixed64x152.fixed64x160.fixed64x168.fixed64x176.fixed64x184.fixed64x192.fixed72x8.fixed72x16.fixed72x24.fixed72x32.fixed72x40.fixed72x48.fixed72x56.fixed72x64.fixed72x72.fixed72x80.fixed72x88.fixed72x96.fixed72x104.fixed72x112.fixed72x120.fixed72x128.fixed72x136.fixed72x144.fixed72x152.fixed72x160.fixed72x168.fixed72x176.fixed72x184.fixed80x8.fixed80x16.fixed80x24.fixed80x32.fixed80x40.fixed80x48.fixed80x56.fixed80x64.fixed80x72.fixed80x80.fixed80x88.fixed80x96.fixed80x104.fixed80x112.fixed80x120.fixed80x128.fixed80x136.fixed80x144.fixed80x152.fixed80x160.fixed80x168.fixed80x176.fixed88x8.fixed88x16.fixed88x24.fixed88x32.fixed88x40.fixed88x48.fixed88x56.fixed88x64.fixed88x72.fixed88x80.fixed88x88.fixed88x96.fixed88x104.fixed88x112.fixed88x120.fixed88x128.fixed88x136.fixed88x144.fixed88x152.fixed88x160.fixed88x168.fixed96x8.fixed96x16.fixed96x24.fixed96x32.fixed96x40.fixed96x48.fixed96x56.fixed96x64.fixed96x72.fixed96x80.fixed96x88.fixed96x96.fixed96x104.fixed96x112.fixed96x120.fixed96x128.fixed96x136.fixed96x144.fixed96x152.fixed96x160.fixed104x8.fixed104x16.fixed104x24.fixed104x32.fixed104x40.fixed104x48.fixed104x56.fixed104x64.fixed104x72.fixed104x80.fixed104x88.fixed104x96.fixed104x104.fixed104x112.fixed104x120.fixed104x128.fixed104x136.fixed104x144.fixed104x152.fixed112x8.fixed112x16.fixed112x24.fixed112x32.fixed112x40.fixed112x48.fixed112x56.fixed112x64.fixed112x72.fixed112x80.fixed112x88.fixed112x96.fixed112x104.fixed112x112.fixed112x120.fixed112x128.fixed112x136.fixed112x144.fixed120x8.fixed120x16.fixed120x24.fixed120x32.fixed120x40.fixed120x48.fixed120x56.fixed120x64.fixed120x72.fixed120x80.fixed120x88.fixed120x96.fixed120x104.fixed120x112.fixed120x120.fixed120x128.fixed120x136.fixed128x8.fixed128x16.fixed128x24.fixed128x32.fixed128x40.fixed128x48.fixed128x56.fixed128x64.fixed128x72.fixed128x80.fixed128x88.fixed128x96.fixed128x104.fixed128x112.fixed128x120.fixed128x128.fixed136x8.fixed136x16.fixed136x24.fixed136x32.fixed136x40.fixed136x48.fixed136x56.fixed136x64.fixed136x72.fixed136x80.fixed136x88.fixed136x96.fixed136x104.fixed136x112.fixed136x120.fixed144x8.fixed144x16.fixed144x24.fixed144x32.fixed144x40.fixed144x48.fixed144x56.fixed144x64.fixed144x72.fixed144x80.fixed144x88.fixed144x96.fixed144x104.fixed144x112.fixed152x8.fixed152x16.fixed152x24.fixed152x32.fixed152x40.fixed152x48.fixed152x56.fixed152x64.fixed152x72.fixed152x80.fixed152x88.fixed152x96.fixed152x104.fixed160x8.fixed160x16.fixed160x24.fixed160x32.fixed160x40.fixed160x48.fixed160x56.fixed160x64.fixed160x72.fixed160x80.fixed160x88.fixed160x96.fixed168x8.fixed168x16.fixed168x24.fixed168x32.fixed168x40.fixed168x48.fixed168x56.fixed168x64.fixed168x72.fixed168x80.fixed168x88.fixed176x8.fixed176x16.fixed176x24.fixed176x32.fixed176x40.fixed176x48.fixed176x56.fixed176x64.fixed176x72.fixed176x80.fixed184x8.fixed184x16.fixed184x24.fixed184x32.fixed184x40.fixed184x48.fixed184x56.fixed184x64.fixed184x72.fixed192x8.fixed192x16.fixed192x24.fixed192x32.fixed192x40.fixed192x48.fixed192x56.fixed192x64.fixed200x8.fixed200x16.fixed200x24.fixed200x32.fixed200x40.fixed200x48.fixed200x56.fixed208x8.fixed208x16.fixed208x24.fixed208x32.fixed208x40.fixed208x48.fixed216x8.fixed216x16.fixed216x24.fixed216x32.fixed216x40.fixed224x8.fixed224x16.fixed224x24.fixed224x32.fixed232x8.fixed232x16.fixed232x24.fixed240x8.fixed240x16.fixed248x8.ufixed.ufixed0x8.ufixed0x16.ufixed0x24.ufixed0x32.ufixed0x40.ufixed0x48.ufixed0x56.ufixed0x64.ufixed0x72.ufixed0x80.ufixed0x88.ufixed0x96.ufixed0x104.ufixed0x112.ufixed0x120.ufixed0x128.ufixed0x136.ufixed0x144.ufixed0x152.ufixed0x160.ufixed0x168.ufixed0x176.ufixed0x184.ufixed0x192.ufixed0x200.ufixed0x208.ufixed0x216.ufixed0x224.ufixed0x232.ufixed0x240.ufixed0x248.ufixed0x256.ufixed8x8.ufixed8x16.ufixed8x24.ufixed8x32.ufixed8x40.ufixed8x48.ufixed8x56.ufixed8x64.ufixed8x72.ufixed8x80.ufixed8x88.ufixed8x96.ufixed8x104.ufixed8x112.ufixed8x120.ufixed8x128.ufixed8x136.ufixed8x144.ufixed8x152.ufixed8x160.ufixed8x168.ufixed8x176.ufixed8x184.ufixed8x192.ufixed8x200.ufixed8x208.ufixed8x216.ufixed8x224.ufixed8x232.ufixed8x240.ufixed8x248.ufixed16x8.ufixed16x16.ufixed16x24.ufixed16x32.ufixed16x40.ufixed16x48.ufixed16x56.ufixed16x64.ufixed16x72.ufixed16x80.ufixed16x88.ufixed16x96.ufixed16x104.ufixed16x112.ufixed16x120.ufixed16x128.ufixed16x136.ufixed16x144.ufixed16x152.ufixed16x160.ufixed16x168.ufixed16x176.ufixed16x184.ufixed16x192.ufixed16x200.ufixed16x208.ufixed16x216.ufixed16x224.ufixed16x232.ufixed16x240.ufixed24x8.ufixed24x16.ufixed24x24.ufixed24x32.ufixed24x40.ufixed24x48.ufixed24x56.ufixed24x64.ufixed24x72.ufixed24x80.ufixed24x88.ufixed24x96.ufixed24x104.ufixed24x112.ufixed24x120.ufixed24x128.ufixed24x136.ufixed24x144.ufixed24x152.ufixed24x160.ufixed24x168.ufixed24x176.ufixed24x184.ufixed24x192.ufixed24x200.ufixed24x208.ufixed24x216.ufixed24x224.ufixed24x232.ufixed32x8.ufixed32x16.ufixed32x24.ufixed32x32.ufixed32x40.ufixed32x48.ufixed32x56.ufixed32x64.ufixed32x72.ufixed32x80.ufixed32x88.ufixed32x96.ufixed32x104.ufixed32x112.ufixed32x120.ufixed32x128.ufixed32x136.ufixed32x144.ufixed32x152.ufixed32x160.ufixed32x168.ufixed32x176.ufixed32x184.ufixed32x192.ufixed32x200.ufixed32x208.ufixed32x216.ufixed32x224.ufixed40x8.ufixed40x16.ufixed40x24.ufixed40x32.ufixed40x40.ufixed40x48.ufixed40x56.ufixed40x64.ufixed40x72.ufixed40x80.ufixed40x88.ufixed40x96.ufixed40x104.ufixed40x112.ufixed40x120.ufixed40x128.ufixed40x136.ufixed40x144.ufixed40x152.ufixed40x160.ufixed40x168.ufixed40x176.ufixed40x184.ufixed40x192.ufixed40x200.ufixed40x208.ufixed40x216.ufixed48x8.ufixed48x16.ufixed48x24.ufixed48x32.ufixed48x40.ufixed48x48.ufixed48x56.ufixed48x64.ufixed48x72.ufixed48x80.ufixed48x88.ufixed48x96.ufixed48x104.ufixed48x112.ufixed48x120.ufixed48x128.ufixed48x136.ufixed48x144.ufixed48x152.ufixed48x160.ufixed48x168.ufixed48x176.ufixed48x184.ufixed48x192.ufixed48x200.ufixed48x208.ufixed56x8.ufixed56x16.ufixed56x24.ufixed56x32.ufixed56x40.ufixed56x48.ufixed56x56.ufixed56x64.ufixed56x72.ufixed56x80.ufixed56x88.ufixed56x96.ufixed56x104.ufixed56x112.ufixed56x120.ufixed56x128.ufixed56x136.ufixed56x144.ufixed56x152.ufixed56x160.ufixed56x168.ufixed56x176.ufixed56x184.ufixed56x192.ufixed56x200.ufixed64x8.ufixed64x16.ufixed64x24.ufixed64x32.ufixed64x40.ufixed64x48.ufixed64x56.ufixed64x64.ufixed64x72.ufixed64x80.ufixed64x88.ufixed64x96.ufixed64x104.ufixed64x112.ufixed64x120.ufixed64x128.ufixed64x136.ufixed64x144.ufixed64x152.ufixed64x160.ufixed64x168.ufixed64x176.ufixed64x184.ufixed64x192.ufixed72x8.ufixed72x16.ufixed72x24.ufixed72x32.ufixed72x40.ufixed72x48.ufixed72x56.ufixed72x64.ufixed72x72.ufixed72x80.ufixed72x88.ufixed72x96.ufixed72x104.ufixed72x112.ufixed72x120.ufixed72x128.ufixed72x136.ufixed72x144.ufixed72x152.ufixed72x160.ufixed72x168.ufixed72x176.ufixed72x184.ufixed80x8.ufixed80x16.ufixed80x24.ufixed80x32.ufixed80x40.ufixed80x48.ufixed80x56.ufixed80x64.ufixed80x72.ufixed80x80.ufixed80x88.ufixed80x96.ufixed80x104.ufixed80x112.ufixed80x120.ufixed80x128.ufixed80x136.ufixed80x144.ufixed80x152.ufixed80x160.ufixed80x168.ufixed80x176.ufixed88x8.ufixed88x16.ufixed88x24.ufixed88x32.ufixed88x40.ufixed88x48.ufixed88x56.ufixed88x64.ufixed88x72.ufixed88x80.ufixed88x88.ufixed88x96.ufixed88x104.ufixed88x112.ufixed88x120.ufixed88x128.ufixed88x136.ufixed88x144.ufixed88x152.ufixed88x160.ufixed88x168.ufixed96x8.ufixed96x16.ufixed96x24.ufixed96x32.ufixed96x40.ufixed96x48.ufixed96x56.ufixed96x64.ufixed96x72.ufixed96x80.ufixed96x88.ufixed96x96.ufixed96x104.ufixed96x112.ufixed96x120.ufixed96x128.ufixed96x136.ufixed96x144.ufixed96x152.ufixed96x160.ufixed104x8.ufixed104x16.ufixed104x24.ufixed104x32.ufixed104x40.ufixed104x48.ufixed104x56.ufixed104x64.ufixed104x72.ufixed104x80.ufixed104x88.ufixed104x96.ufixed104x104.ufixed104x112.ufixed104x120.ufixed104x128.ufixed104x136.ufixed104x144.ufixed104x152.ufixed112x8.ufixed112x16.ufixed112x24.ufixed112x32.ufixed112x40.ufixed112x48.ufixed112x56.ufixed112x64.ufixed112x72.ufixed112x80.ufixed112x88.ufixed112x96.ufixed112x104.ufixed112x112.ufixed112x120.ufixed112x128.ufixed112x136.ufixed112x144.ufixed120x8.ufixed120x16.ufixed120x24.ufixed120x32.ufixed120x40.ufixed120x48.ufixed120x56.ufixed120x64.ufixed120x72.ufixed120x80.ufixed120x88.ufixed120x96.ufixed120x104.ufixed120x112.ufixed120x120.ufixed120x128.ufixed120x136.ufixed128x8.ufixed128x16.ufixed128x24.ufixed128x32.ufixed128x40.ufixed128x48.ufixed128x56.ufixed128x64.ufixed128x72.ufixed128x80.ufixed128x88.ufixed128x96.ufixed128x104.ufixed128x112.ufixed128x120.ufixed128x128.ufixed136x8.ufixed136x16.ufixed136x24.ufixed136x32.ufixed136x40.ufixed136x48.ufixed136x56.ufixed136x64.ufixed136x72.ufixed136x80.ufixed136x88.ufixed136x96.ufixed136x104.ufixed136x112.ufixed136x120.ufixed144x8.ufixed144x16.ufixed144x24.ufixed144x32.ufixed144x40.ufixed144x48.ufixed144x56.ufixed144x64.ufixed144x72.ufixed144x80.ufixed144x88.ufixed144x96.ufixed144x104.ufixed144x112.ufixed152x8.ufixed152x16.ufixed152x24.ufixed152x32.ufixed152x40.ufixed152x48.ufixed152x56.ufixed152x64.ufixed152x72.ufixed152x80.ufixed152x88.ufixed152x96.ufixed152x104.ufixed160x8.ufixed160x16.ufixed160x24.ufixed160x32.ufixed160x40.ufixed160x48.ufixed160x56.ufixed160x64.ufixed160x72.ufixed160x80.ufixed160x88.ufixed160x96.ufixed168x8.ufixed168x16.ufixed168x24.ufixed168x32.ufixed168x40.ufixed168x48.ufixed168x56.ufixed168x64.ufixed168x72.ufixed168x80.ufixed168x88.ufixed176x8.ufixed176x16.ufixed176x24.ufixed176x32.ufixed176x40.ufixed176x48.ufixed176x56.ufixed176x64.ufixed176x72.ufixed176x80.ufixed184x8.ufixed184x16.ufixed184x24.ufixed184x32.ufixed184x40.ufixed184x48.ufixed184x56.ufixed184x64.ufixed184x72.ufixed192x8.ufixed192x16.ufixed192x24.ufixed192x32.ufixed192x40.ufixed192x48.ufixed192x56.ufixed192x64.ufixed200x8.ufixed200x16.ufixed200x24.ufixed200x32.ufixed200x40.ufixed200x48.ufixed200x56.ufixed208x8.ufixed208x16.ufixed208x24.ufixed208x32.ufixed208x40.ufixed208x48.ufixed216x8.ufixed216x16.ufixed216x24.ufixed216x32.ufixed216x40.ufixed224x8.ufixed224x16.ufixed224x24.ufixed224x32.ufixed232x8.ufixed232x16.ufixed232x24.ufixed240x8.ufixed240x16.ufixed248x8.event.enum.let.mapping.private.public.external.inherited.payable.true.false.var.import.constant.if.else.for.else.for.while.do.break.continue.throw.returns.return.suicide.new.is.this.super`.split(`.`),operators:`=.>.<.!.~.?.:.==.<=.>=.!=.&&.||.++.--.+.-.*./.&.|.^.%.<<.>>.>>>.+=.-=.*=./=.&=.|=.^=.%=.<<=.>>=.>>>=`.split(`.`),symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,integersuffix:/(ll|LL|u|U|l|L)?(ll|LL|u|U|l|L)?/,floatsuffix:/[fFlL]?/,tokenizer:{root:[[/[a-zA-Z_]\w*/,{cases:{"@keywords":{token:`keyword.$0`},"@default":`identifier`}}],{include:`@whitespace`},[/\[\[.*\]\]/,`annotation`],[/^\s*#\w+/,`keyword`],[/int\d*/,`keyword`],[/[{}()\[\]]/,`@brackets`],[/[<>](?!@symbols)/,`@brackets`],[/@symbols/,{cases:{"@operators":`delimiter`,"@default":``}}],[/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/,`number.float`],[/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/,`number.float`],[/0[xX][0-9a-fA-F']*[0-9a-fA-F](@integersuffix)/,`number.hex`],[/0[0-7']*[0-7](@integersuffix)/,`number.octal`],[/0[bB][0-1']*[0-1](@integersuffix)/,`number.binary`],[/\d[\d']*\d(@integersuffix)/,`number`],[/\d(@integersuffix)/,`number`],[/[;,.]/,`delimiter`],[/"([^"\\]|\\.)*$/,`string.invalid`],[/"/,`string`,`@string`],[/'[^\\']'/,`string`],[/(')(@escapes)(')/,[`string`,`string.escape`,`string`]],[/'/,`string.invalid`]],whitespace:[[/[ \t\r\n]+/,``],[/\/\*\*(?!\/)/,`comment.doc`,`@doccomment`],[/\/\*/,`comment`,`@comment`],[/\/\/.*$/,`comment`]],comment:[[/[^\/*]+/,`comment`],[/\*\//,`comment`,`@pop`],[/[\/*]/,`comment`]],doccomment:[[/[^\/*]+/,`comment.doc`],[/\*\//,`comment.doc`,`@pop`],[/[\/*]/,`comment.doc`]],string:[[/[^\\"]+/,`string`],[/@escapes/,`string.escape`],[/\\./,`string.escape.invalid`],[/"/,`string`,`@pop`]]}};export{e as conf,t as language};
@@ -0,0 +1 @@
1
+ var e={comments:{lineComment:`//`,blockComment:[`/*`,`*/`]},brackets:[[`{`,`}`],[`[`,`]`],[`(`,`)`],[`<`,`>`]],autoClosingPairs:[{open:`"`,close:`"`,notIn:[`string`,`comment`]},{open:`{`,close:`}`,notIn:[`string`,`comment`]},{open:`[`,close:`]`,notIn:[`string`,`comment`]},{open:`(`,close:`)`,notIn:[`string`,`comment`]}]},t={defaultToken:``,tokenPostfix:`.aes`,brackets:[{token:`delimiter.curly`,open:`{`,close:`}`},{token:`delimiter.parenthesis`,open:`(`,close:`)`},{token:`delimiter.square`,open:`[`,close:`]`},{token:`delimiter.angle`,open:`<`,close:`>`}],keywords:`contract.library.entrypoint.function.stateful.state.hash.signature.tuple.list.address.string.bool.int.record.datatype.type.option.oracle.oracle_query.Call.Bits.Bytes.Oracle.String.Crypto.Address.Auth.Chain.None.Some.bits.bytes.event.let.map.private.public.true.false.var.if.else.throw`.split(`.`),operators:`=.>.<.!.~.?.::.:.==.<=.>=.!=.&&.||.++.--.+.-.*./.&.|.^.%.<<.>>.>>>.+=.-=.*=./=.&=.|=.^=.%=.<<=.>>=.>>>=`.split(`.`),symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,integersuffix:/(ll|LL|u|U|l|L)?(ll|LL|u|U|l|L)?/,floatsuffix:/[fFlL]?/,tokenizer:{root:[[/[a-zA-Z_]\w*/,{cases:{"@keywords":{token:`keyword.$0`},"@default":`identifier`}}],{include:`@whitespace`},[/\[\[.*\]\]/,`annotation`],[/^\s*#\w+/,`keyword`],[/int\d*/,`keyword`],[/[{}()\[\]]/,`@brackets`],[/[<>](?!@symbols)/,`@brackets`],[/@symbols/,{cases:{"@operators":`delimiter`,"@default":``}}],[/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/,`number.float`],[/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/,`number.float`],[/0[xX][0-9a-fA-F']*[0-9a-fA-F](@integersuffix)/,`number.hex`],[/0[0-7']*[0-7](@integersuffix)/,`number.octal`],[/0[bB][0-1']*[0-1](@integersuffix)/,`number.binary`],[/\d[\d']*\d(@integersuffix)/,`number`],[/\d(@integersuffix)/,`number`],[/[;,.]/,`delimiter`],[/"([^"\\]|\\.)*$/,`string.invalid`],[/"/,`string`,`@string`],[/'[^\\']'/,`string`],[/(')(@escapes)(')/,[`string`,`string.escape`,`string`]],[/'/,`string.invalid`]],whitespace:[[/[ \t\r\n]+/,``],[/\/\*\*(?!\/)/,`comment.doc`,`@doccomment`],[/\/\*/,`comment`,`@comment`],[/\/\/.*$/,`comment`]],comment:[[/[^\/*]+/,`comment`],[/\*\//,`comment`,`@pop`],[/[\/*]/,`comment`]],doccomment:[[/[^\/*]+/,`comment.doc`],[/\*\//,`comment.doc`,`@pop`],[/[\/*]/,`comment.doc`]],string:[[/[^\\"]+/,`string`],[/@escapes/,`string.escape`],[/\\./,`string.escape.invalid`],[/"/,`string`,`@pop`]]}};export{e as conf,t as language};
@@ -0,0 +1 @@
1
+ var e={comments:{lineComment:`#`},brackets:[[`{`,`}`],[`[`,`]`],[`(`,`)`]],autoClosingPairs:[{open:`'`,close:`'`,notIn:[`string`]},{open:`"`,close:`"`,notIn:[`string`]},{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`}]},t={defaultToken:``,tokenPostfix:`.rq`,brackets:[{token:`delimiter.curly`,open:`{`,close:`}`},{token:`delimiter.parenthesis`,open:`(`,close:`)`},{token:`delimiter.square`,open:`[`,close:`]`},{token:`delimiter.angle`,open:`<`,close:`>`}],keywords:`add.as.asc.ask.base.by.clear.construct.copy.create.data.delete.desc.describe.distinct.drop.false.filter.from.graph.group.having.in.insert.limit.load.minus.move.named.not.offset.optional.order.prefix.reduced.select.service.silent.to.true.undef.union.using.values.where.with`.split(`.`),builtinFunctions:`a.abs.avg.bind.bnode.bound.ceil.coalesce.concat.contains.count.datatype.day.encode_for_uri.exists.floor.group_concat.hours.if.iri.isblank.isiri.isliteral.isnumeric.isuri.lang.langmatches.lcase.max.md5.min.minutes.month.now.rand.regex.replace.round.sameterm.sample.seconds.sha1.sha256.sha384.sha512.str.strafter.strbefore.strdt.strends.strlang.strlen.strstarts.struuid.substr.sum.timezone.tz.ucase.uri.uuid.year`.split(`.`),ignoreCase:!0,tokenizer:{root:[[/<[^\s\u00a0>]*>?/,`tag`],{include:`@strings`},[/#.*/,`comment`],[/[{}()\[\]]/,`@brackets`],[/[;,.]/,`delimiter`],[/[_\w\d]+:(\.(?=[\w_\-\\%])|[:\w_-]|\\[-\\_~.!$&'()*+,;=/?#@%]|%[a-f\d][a-f\d])*/,`tag`],[/:(\.(?=[\w_\-\\%])|[:\w_-]|\\[-\\_~.!$&'()*+,;=/?#@%]|%[a-f\d][a-f\d])+/,`tag`],[/[$?]?[_\w\d]+/,{cases:{"@keywords":{token:`keyword`},"@builtinFunctions":{token:`predefined.sql`},"@default":`identifier`}}],[/\^\^/,`operator.sql`],[/\^[*+\-<>=&|^\/!?]*/,`operator.sql`],[/[*+\-<>=&|\/!?]/,`operator.sql`],[/@[a-z\d\-]*/,`metatag.html`],[/\s+/,`white`]],strings:[[/'([^'\\]|\\.)*$/,`string.invalid`],[/'$/,`string.sql`,`@pop`],[/'/,`string.sql`,`@stringBody`],[/"([^"\\]|\\.)*$/,`string.invalid`],[/"$/,`string.sql`,`@pop`],[/"/,`string.sql`,`@dblStringBody`]],stringBody:[[/[^\\']+/,`string.sql`],[/\\./,`string.escape`],[/'/,`string.sql`,`@pop`]],dblStringBody:[[/[^\\"]+/,`string.sql`],[/\\./,`string.escape`],[/"/,`string.sql`,`@pop`]]}};export{e as conf,t as language};
@@ -0,0 +1 @@
1
+ var e={comments:{lineComment:`--`,blockComment:[`/*`,`*/`]},brackets:[[`{`,`}`],[`[`,`]`],[`(`,`)`]],autoClosingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`},{open:`'`,close:`'`}],surroundingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`},{open:`'`,close:`'`}]},t={defaultToken:``,tokenPostfix:`.sql`,ignoreCase:!0,brackets:[{open:`[`,close:`]`,token:`delimiter.square`},{open:`(`,close:`)`,token:`delimiter.parenthesis`}],keywords:`ABORT.ABSOLUTE.ACTION.ADA.ADD.AFTER.ALL.ALLOCATE.ALTER.ALWAYS.ANALYZE.AND.ANY.ARE.AS.ASC.ASSERTION.AT.ATTACH.AUTHORIZATION.AUTOINCREMENT.AVG.BACKUP.BEFORE.BEGIN.BETWEEN.BIT.BIT_LENGTH.BOTH.BREAK.BROWSE.BULK.BY.CASCADE.CASCADED.CASE.CAST.CATALOG.CHAR.CHARACTER.CHARACTER_LENGTH.CHAR_LENGTH.CHECK.CHECKPOINT.CLOSE.CLUSTERED.COALESCE.COLLATE.COLLATION.COLUMN.COMMIT.COMPUTE.CONFLICT.CONNECT.CONNECTION.CONSTRAINT.CONSTRAINTS.CONTAINS.CONTAINSTABLE.CONTINUE.CONVERT.CORRESPONDING.COUNT.CREATE.CROSS.CURRENT.CURRENT_DATE.CURRENT_TIME.CURRENT_TIMESTAMP.CURRENT_USER.CURSOR.DATABASE.DATE.DAY.DBCC.DEALLOCATE.DEC.DECIMAL.DECLARE.DEFAULT.DEFERRABLE.DEFERRED.DELETE.DENY.DESC.DESCRIBE.DESCRIPTOR.DETACH.DIAGNOSTICS.DISCONNECT.DISK.DISTINCT.DISTRIBUTED.DO.DOMAIN.DOUBLE.DROP.DUMP.EACH.ELSE.END.END-EXEC.ERRLVL.ESCAPE.EXCEPT.EXCEPTION.EXCLUDE.EXCLUSIVE.EXEC.EXECUTE.EXISTS.EXIT.EXPLAIN.EXTERNAL.EXTRACT.FAIL.FALSE.FETCH.FILE.FILLFACTOR.FILTER.FIRST.FLOAT.FOLLOWING.FOR.FOREIGN.FORTRAN.FOUND.FREETEXT.FREETEXTTABLE.FROM.FULL.FUNCTION.GENERATED.GET.GLOB.GLOBAL.GO.GOTO.GRANT.GROUP.GROUPS.HAVING.HOLDLOCK.HOUR.IDENTITY.IDENTITYCOL.IDENTITY_INSERT.IF.IGNORE.IMMEDIATE.IN.INCLUDE.INDEX.INDEXED.INDICATOR.INITIALLY.INNER.INPUT.INSENSITIVE.INSERT.INSTEAD.INT.INTEGER.INTERSECT.INTERVAL.INTO.IS.ISNULL.ISOLATION.JOIN.KEY.KILL.LANGUAGE.LAST.LEADING.LEFT.LEVEL.LIKE.LIMIT.LINENO.LOAD.LOCAL.LOWER.MATCH.MATERIALIZED.MAX.MERGE.MIN.MINUTE.MODULE.MONTH.NAMES.NATIONAL.NATURAL.NCHAR.NEXT.NO.NOCHECK.NONCLUSTERED.NONE.NOT.NOTHING.NOTNULL.NULL.NULLIF.NULLS.NUMERIC.OCTET_LENGTH.OF.OFF.OFFSET.OFFSETS.ON.ONLY.OPEN.OPENDATASOURCE.OPENQUERY.OPENROWSET.OPENXML.OPTION.OR.ORDER.OTHERS.OUTER.OUTPUT.OVER.OVERLAPS.PAD.PARTIAL.PARTITION.PASCAL.PERCENT.PIVOT.PLAN.POSITION.PRAGMA.PRECEDING.PRECISION.PREPARE.PRESERVE.PRIMARY.PRINT.PRIOR.PRIVILEGES.PROC.PROCEDURE.PUBLIC.QUERY.RAISE.RAISERROR.RANGE.READ.READTEXT.REAL.RECONFIGURE.RECURSIVE.REFERENCES.REGEXP.REINDEX.RELATIVE.RELEASE.RENAME.REPLACE.REPLICATION.RESTORE.RESTRICT.RETURN.RETURNING.REVERT.REVOKE.RIGHT.ROLLBACK.ROW.ROWCOUNT.ROWGUIDCOL.ROWS.RULE.SAVE.SAVEPOINT.SCHEMA.SCROLL.SECOND.SECTION.SECURITYAUDIT.SELECT.SEMANTICKEYPHRASETABLE.SEMANTICSIMILARITYDETAILSTABLE.SEMANTICSIMILARITYTABLE.SESSION.SESSION_USER.SET.SETUSER.SHUTDOWN.SIZE.SMALLINT.SOME.SPACE.SQL.SQLCA.SQLCODE.SQLERROR.SQLSTATE.SQLWARNING.STATISTICS.SUBSTRING.SUM.SYSTEM_USER.TABLE.TABLESAMPLE.TEMP.TEMPORARY.TEXTSIZE.THEN.TIES.TIME.TIMESTAMP.TIMEZONE_HOUR.TIMEZONE_MINUTE.TO.TOP.TRAILING.TRAN.TRANSACTION.TRANSLATE.TRANSLATION.TRIGGER.TRIM.TRUE.TRUNCATE.TRY_CONVERT.TSEQUAL.UNBOUNDED.UNION.UNIQUE.UNKNOWN.UNPIVOT.UPDATE.UPDATETEXT.UPPER.USAGE.USE.USER.USING.VACUUM.VALUE.VALUES.VARCHAR.VARYING.VIEW.VIRTUAL.WAITFOR.WHEN.WHENEVER.WHERE.WHILE.WINDOW.WITH.WITHIN GROUP.WITHOUT.WORK.WRITE.WRITETEXT.YEAR.ZONE`.split(`.`),operators:`ALL.AND.ANY.BETWEEN.EXISTS.IN.LIKE.NOT.OR.SOME.EXCEPT.INTERSECT.UNION.APPLY.CROSS.FULL.INNER.JOIN.LEFT.OUTER.RIGHT.CONTAINS.FREETEXT.IS.NULL.PIVOT.UNPIVOT.MATCHED`.split(`.`),builtinFunctions:`AVG.CHECKSUM_AGG.COUNT.COUNT_BIG.GROUPING.GROUPING_ID.MAX.MIN.SUM.STDEV.STDEVP.VAR.VARP.CUME_DIST.FIRST_VALUE.LAG.LAST_VALUE.LEAD.PERCENTILE_CONT.PERCENTILE_DISC.PERCENT_RANK.COLLATE.COLLATIONPROPERTY.TERTIARY_WEIGHTS.FEDERATION_FILTERING_VALUE.CAST.CONVERT.PARSE.TRY_CAST.TRY_CONVERT.TRY_PARSE.ASYMKEY_ID.ASYMKEYPROPERTY.CERTPROPERTY.CERT_ID.CRYPT_GEN_RANDOM.DECRYPTBYASYMKEY.DECRYPTBYCERT.DECRYPTBYKEY.DECRYPTBYKEYAUTOASYMKEY.DECRYPTBYKEYAUTOCERT.DECRYPTBYPASSPHRASE.ENCRYPTBYASYMKEY.ENCRYPTBYCERT.ENCRYPTBYKEY.ENCRYPTBYPASSPHRASE.HASHBYTES.IS_OBJECTSIGNED.KEY_GUID.KEY_ID.KEY_NAME.SIGNBYASYMKEY.SIGNBYCERT.SYMKEYPROPERTY.VERIFYSIGNEDBYCERT.VERIFYSIGNEDBYASYMKEY.CURSOR_STATUS.DATALENGTH.IDENT_CURRENT.IDENT_INCR.IDENT_SEED.IDENTITY.SQL_VARIANT_PROPERTY.CURRENT_TIMESTAMP.DATEADD.DATEDIFF.DATEFROMPARTS.DATENAME.DATEPART.DATETIME2FROMPARTS.DATETIMEFROMPARTS.DATETIMEOFFSETFROMPARTS.DAY.EOMONTH.GETDATE.GETUTCDATE.ISDATE.MONTH.SMALLDATETIMEFROMPARTS.SWITCHOFFSET.SYSDATETIME.SYSDATETIMEOFFSET.SYSUTCDATETIME.TIMEFROMPARTS.TODATETIMEOFFSET.YEAR.CHOOSE.COALESCE.IIF.NULLIF.ABS.ACOS.ASIN.ATAN.ATN2.CEILING.COS.COT.DEGREES.EXP.FLOOR.LOG.LOG10.PI.POWER.RADIANS.RAND.ROUND.SIGN.SIN.SQRT.SQUARE.TAN.APP_NAME.APPLOCK_MODE.APPLOCK_TEST.ASSEMBLYPROPERTY.COL_LENGTH.COL_NAME.COLUMNPROPERTY.DATABASE_PRINCIPAL_ID.DATABASEPROPERTYEX.DB_ID.DB_NAME.FILE_ID.FILE_IDEX.FILE_NAME.FILEGROUP_ID.FILEGROUP_NAME.FILEGROUPPROPERTY.FILEPROPERTY.FULLTEXTCATALOGPROPERTY.FULLTEXTSERVICEPROPERTY.INDEX_COL.INDEXKEY_PROPERTY.INDEXPROPERTY.OBJECT_DEFINITION.OBJECT_ID.OBJECT_NAME.OBJECT_SCHEMA_NAME.OBJECTPROPERTY.OBJECTPROPERTYEX.ORIGINAL_DB_NAME.PARSENAME.SCHEMA_ID.SCHEMA_NAME.SCOPE_IDENTITY.SERVERPROPERTY.STATS_DATE.TYPE_ID.TYPE_NAME.TYPEPROPERTY.DENSE_RANK.NTILE.RANK.ROW_NUMBER.PUBLISHINGSERVERNAME.OPENDATASOURCE.OPENQUERY.OPENROWSET.OPENXML.CERTENCODED.CERTPRIVATEKEY.CURRENT_USER.HAS_DBACCESS.HAS_PERMS_BY_NAME.IS_MEMBER.IS_ROLEMEMBER.IS_SRVROLEMEMBER.LOGINPROPERTY.ORIGINAL_LOGIN.PERMISSIONS.PWDENCRYPT.PWDCOMPARE.SESSION_USER.SESSIONPROPERTY.SUSER_ID.SUSER_NAME.SUSER_SID.SUSER_SNAME.SYSTEM_USER.USER.USER_ID.USER_NAME.ASCII.CHAR.CHARINDEX.CONCAT.DIFFERENCE.FORMAT.LEFT.LEN.LOWER.LTRIM.NCHAR.PATINDEX.QUOTENAME.REPLACE.REPLICATE.REVERSE.RIGHT.RTRIM.SOUNDEX.SPACE.STR.STUFF.SUBSTRING.UNICODE.UPPER.BINARY_CHECKSUM.CHECKSUM.CONNECTIONPROPERTY.CONTEXT_INFO.CURRENT_REQUEST_ID.ERROR_LINE.ERROR_NUMBER.ERROR_MESSAGE.ERROR_PROCEDURE.ERROR_SEVERITY.ERROR_STATE.FORMATMESSAGE.GETANSINULL.GET_FILESTREAM_TRANSACTION_CONTEXT.HOST_ID.HOST_NAME.ISNULL.ISNUMERIC.MIN_ACTIVE_ROWVERSION.NEWID.NEWSEQUENTIALID.ROWCOUNT_BIG.XACT_STATE.TEXTPTR.TEXTVALID.COLUMNS_UPDATED.EVENTDATA.TRIGGER_NESTLEVEL.UPDATE.CHANGETABLE.CHANGE_TRACKING_CONTEXT.CHANGE_TRACKING_CURRENT_VERSION.CHANGE_TRACKING_IS_COLUMN_IN_MASK.CHANGE_TRACKING_MIN_VALID_VERSION.CONTAINSTABLE.FREETEXTTABLE.SEMANTICKEYPHRASETABLE.SEMANTICSIMILARITYDETAILSTABLE.SEMANTICSIMILARITYTABLE.FILETABLEROOTPATH.GETFILENAMESPACEPATH.GETPATHLOCATOR.PATHNAME.GET_TRANSMISSION_STATUS`.split(`.`),builtinVariables:`@@DATEFIRST.@@DBTS.@@LANGID.@@LANGUAGE.@@LOCK_TIMEOUT.@@MAX_CONNECTIONS.@@MAX_PRECISION.@@NESTLEVEL.@@OPTIONS.@@REMSERVER.@@SERVERNAME.@@SERVICENAME.@@SPID.@@TEXTSIZE.@@VERSION.@@CURSOR_ROWS.@@FETCH_STATUS.@@DATEFIRST.@@PROCID.@@ERROR.@@IDENTITY.@@ROWCOUNT.@@TRANCOUNT.@@CONNECTIONS.@@CPU_BUSY.@@IDLE.@@IO_BUSY.@@PACKET_ERRORS.@@PACK_RECEIVED.@@PACK_SENT.@@TIMETICKS.@@TOTAL_ERRORS.@@TOTAL_READ.@@TOTAL_WRITE`.split(`.`),pseudoColumns:[`$ACTION`,`$IDENTITY`,`$ROWGUID`,`$PARTITION`],tokenizer:{root:[{include:`@comments`},{include:`@whitespace`},{include:`@pseudoColumns`},{include:`@numbers`},{include:`@strings`},{include:`@complexIdentifiers`},{include:`@scopes`},[/[;,.]/,`delimiter`],[/[()]/,`@brackets`],[/[\w@#$]+/,{cases:{"@operators":`operator`,"@builtinVariables":`predefined`,"@builtinFunctions":`predefined`,"@keywords":`keyword`,"@default":`identifier`}}],[/[<>=!%&+\-*/|~^]/,`operator`]],whitespace:[[/\s+/,`white`]],comments:[[/--+.*/,`comment`],[/\/\*/,{token:`comment.quote`,next:`@comment`}]],comment:[[/[^*/]+/,`comment`],[/\*\//,{token:`comment.quote`,next:`@pop`}],[/./,`comment`]],pseudoColumns:[[/[$][A-Za-z_][\w@#$]*/,{cases:{"@pseudoColumns":`predefined`,"@default":`identifier`}}]],numbers:[[/0[xX][0-9a-fA-F]*/,`number`],[/[$][+-]*\d*(\.\d*)?/,`number`],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,`number`]],strings:[[/N'/,{token:`string`,next:`@string`}],[/'/,{token:`string`,next:`@string`}]],string:[[/[^']+/,`string`],[/''/,`string`],[/'/,{token:`string`,next:`@pop`}]],complexIdentifiers:[[/\[/,{token:`identifier.quote`,next:`@bracketedIdentifier`}],[/"/,{token:`identifier.quote`,next:`@quotedIdentifier`}]],bracketedIdentifier:[[/[^\]]+/,`identifier`],[/]]/,`identifier`],[/]/,{token:`identifier.quote`,next:`@pop`}]],quotedIdentifier:[[/[^"]+/,`identifier`],[/""/,`identifier`],[/"/,{token:`identifier.quote`,next:`@pop`}]],scopes:[[/BEGIN\s+(DISTRIBUTED\s+)?TRAN(SACTION)?\b/i,`keyword`],[/BEGIN\s+TRY\b/i,{token:`keyword.try`}],[/END\s+TRY\b/i,{token:`keyword.try`}],[/BEGIN\s+CATCH\b/i,{token:`keyword.catch`}],[/END\s+CATCH\b/i,{token:`keyword.catch`}],[/(BEGIN|CASE)\b/i,{token:`keyword.block`}],[/END\b/i,{token:`keyword.block`}],[/WHEN\b/i,{token:`keyword.choice`}],[/THEN\b/i,{token:`keyword.choice`}]]}};export{e as conf,t as language};
@@ -0,0 +1 @@
1
+ var e={comments:{lineComment:`//`,blockComment:[`(*`,`*)`]},brackets:[[`{`,`}`],[`[`,`]`],[`(`,`)`],[`var`,`end_var`],[`var_input`,`end_var`],[`var_output`,`end_var`],[`var_in_out`,`end_var`],[`var_temp`,`end_var`],[`var_global`,`end_var`],[`var_access`,`end_var`],[`var_external`,`end_var`],[`type`,`end_type`],[`struct`,`end_struct`],[`program`,`end_program`],[`function`,`end_function`],[`function_block`,`end_function_block`],[`action`,`end_action`],[`step`,`end_step`],[`initial_step`,`end_step`],[`transaction`,`end_transaction`],[`configuration`,`end_configuration`],[`tcp`,`end_tcp`],[`recource`,`end_recource`],[`channel`,`end_channel`],[`library`,`end_library`],[`folder`,`end_folder`],[`binaries`,`end_binaries`],[`includes`,`end_includes`],[`sources`,`end_sources`]],autoClosingPairs:[{open:`[`,close:`]`},{open:`{`,close:`}`},{open:`(`,close:`)`},{open:`/*`,close:`*/`},{open:`'`,close:`'`,notIn:[`string_sq`]},{open:`"`,close:`"`,notIn:[`string_dq`]},{open:`var_input`,close:`end_var`},{open:`var_output`,close:`end_var`},{open:`var_in_out`,close:`end_var`},{open:`var_temp`,close:`end_var`},{open:`var_global`,close:`end_var`},{open:`var_access`,close:`end_var`},{open:`var_external`,close:`end_var`},{open:`type`,close:`end_type`},{open:`struct`,close:`end_struct`},{open:`program`,close:`end_program`},{open:`function`,close:`end_function`},{open:`function_block`,close:`end_function_block`},{open:`action`,close:`end_action`},{open:`step`,close:`end_step`},{open:`initial_step`,close:`end_step`},{open:`transaction`,close:`end_transaction`},{open:`configuration`,close:`end_configuration`},{open:`tcp`,close:`end_tcp`},{open:`recource`,close:`end_recource`},{open:`channel`,close:`end_channel`},{open:`library`,close:`end_library`},{open:`folder`,close:`end_folder`},{open:`binaries`,close:`end_binaries`},{open:`includes`,close:`end_includes`},{open:`sources`,close:`end_sources`}],surroundingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`},{open:`'`,close:`'`},{open:`var`,close:`end_var`},{open:`var_input`,close:`end_var`},{open:`var_output`,close:`end_var`},{open:`var_in_out`,close:`end_var`},{open:`var_temp`,close:`end_var`},{open:`var_global`,close:`end_var`},{open:`var_access`,close:`end_var`},{open:`var_external`,close:`end_var`},{open:`type`,close:`end_type`},{open:`struct`,close:`end_struct`},{open:`program`,close:`end_program`},{open:`function`,close:`end_function`},{open:`function_block`,close:`end_function_block`},{open:`action`,close:`end_action`},{open:`step`,close:`end_step`},{open:`initial_step`,close:`end_step`},{open:`transaction`,close:`end_transaction`},{open:`configuration`,close:`end_configuration`},{open:`tcp`,close:`end_tcp`},{open:`recource`,close:`end_recource`},{open:`channel`,close:`end_channel`},{open:`library`,close:`end_library`},{open:`folder`,close:`end_folder`},{open:`binaries`,close:`end_binaries`},{open:`includes`,close:`end_includes`},{open:`sources`,close:`end_sources`}],folding:{markers:{start:RegExp(`^\\s*#pragma\\s+region\\b`),end:RegExp(`^\\s*#pragma\\s+endregion\\b`)}}},t={defaultToken:``,tokenPostfix:`.st`,ignoreCase:!0,brackets:[{token:`delimiter.curly`,open:`{`,close:`}`},{token:`delimiter.parenthesis`,open:`(`,close:`)`},{token:`delimiter.square`,open:`[`,close:`]`}],keywords:`if.end_if.elsif.else.case.of.to.__try.__catch.__finally.do.with.by.while.repeat.end_while.end_repeat.end_case.for.end_for.task.retain.non_retain.constant.with.at.exit.return.interval.priority.address.port.on_channel.then.iec.file.uses.version.packagetype.displayname.copyright.summary.vendor.common_source.from.extends.implements`.split(`.`),constant:[`false`,`true`,`null`],defineKeywords:`var.var_input.var_output.var_in_out.var_temp.var_global.var_access.var_external.end_var.type.end_type.struct.end_struct.program.end_program.function.end_function.function_block.end_function_block.interface.end_interface.method.end_method.property.end_property.namespace.end_namespace.configuration.end_configuration.tcp.end_tcp.resource.end_resource.channel.end_channel.library.end_library.folder.end_folder.binaries.end_binaries.includes.end_includes.sources.end_sources.action.end_action.step.initial_step.end_step.transaction.end_transaction`.split(`.`),typeKeywords:[`int`,`sint`,`dint`,`lint`,`usint`,`uint`,`udint`,`ulint`,`real`,`lreal`,`time`,`date`,`time_of_day`,`date_and_time`,`string`,`bool`,`byte`,`word`,`dword`,`array`,`pointer`,`lword`],operators:`=.>.<.:.:=.<=.>=.<>.&.+.-.*.**.MOD.^.or.and.not.xor.abs.acos.asin.atan.cos.exp.expt.ln.log.sin.sqrt.tan.sel.max.min.limit.mux.shl.shr.rol.ror.indexof.sizeof.adr.adrinst.bitadr.is_valid.ref.ref_to`.split(`.`),builtinVariables:[],builtinFunctions:`sr.rs.tp.ton.tof.eq.ge.le.lt.ne.round.trunc.ctd.сtu.ctud.r_trig.f_trig.move.concat.delete.find.insert.left.len.replace.right.rtc`.split(`.`),symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/(\.\.)/,`delimiter`],[/\b(16#[0-9A-Fa-f\_]*)+\b/,`number.hex`],[/\b(2#[01\_]+)+\b/,`number.binary`],[/\b(8#[0-9\_]*)+\b/,`number.octal`],[/\b\d*\.\d+([eE][\-+]?\d+)?\b/,`number.float`],[/\b(L?REAL)#[0-9\_\.e]+\b/,`number.float`],[/\b(BYTE|(?:D|L)?WORD|U?(?:S|D|L)?INT)#[0-9\_]+\b/,`number`],[/\d+/,`number`],[/\b(T|DT|TOD)#[0-9:-_shmyd]+\b/,`tag`],[/\%(I|Q|M)(X|B|W|D|L)[0-9\.]+/,`tag`],[/\%(I|Q|M)[0-9\.]*/,`tag`],[/\b[A-Za-z]{1,6}#[0-9]+\b/,`tag`],[/\b(TO_|CTU_|CTD_|CTUD_|MUX_|SEL_)[A_Za-z]+\b/,`predefined`],[/\b[A_Za-z]+(_TO_)[A_Za-z]+\b/,`predefined`],[/[;]/,`delimiter`],[/[.]/,{token:`delimiter`,next:`@params`}],[/[a-zA-Z_]\w*/,{cases:{"@operators":`operators`,"@keywords":`keyword`,"@typeKeywords":`type`,"@defineKeywords":`variable`,"@constant":`constant`,"@builtinVariables":`predefined`,"@builtinFunctions":`predefined`,"@default":`identifier`}}],{include:`@whitespace`},[/[{}()\[\]]/,`@brackets`],[/"([^"\\]|\\.)*$/,`string.invalid`],[/"/,{token:`string.quote`,bracket:`@open`,next:`@string_dq`}],[/'/,{token:`string.quote`,bracket:`@open`,next:`@string_sq`}],[/'[^\\']'/,`string`],[/(')(@escapes)(')/,[`string`,`string.escape`,`string`]],[/'/,`string.invalid`]],params:[[/\b[A-Za-z0-9_]+\b(?=\()/,{token:`identifier`,next:`@pop`}],[/\b[A-Za-z0-9_]+\b/,`variable.name`,`@pop`]],comment:[[/[^\/*]+/,`comment`],[/\/\*/,`comment`,`@push`],[`\\*/`,`comment`,`@pop`],[/[\/*]/,`comment`]],comment2:[[/[^\(*]+/,`comment`],[/\(\*/,`comment`,`@push`],[`\\*\\)`,`comment`,`@pop`],[/[\(*]/,`comment`]],whitespace:[[/[ \t\r\n]+/,`white`],[/\/\/.*$/,`comment`],[/\/\*/,`comment`,`@comment`],[/\(\*/,`comment`,`@comment2`]],string_dq:[[/[^\\"]+/,`string`],[/@escapes/,`string.escape`],[/\\./,`string.escape.invalid`],[/"/,{token:`string.quote`,bracket:`@close`,next:`@pop`}]],string_sq:[[/[^\\']+/,`string`],[/@escapes/,`string.escape`],[/\\./,`string.escape.invalid`],[/'/,{token:`string.quote`,bracket:`@close`,next:`@pop`}]]}};export{e as conf,t as language};