paul-ai-assistant 0.1.16

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 (512) hide show
  1. package/README.md +249 -0
  2. package/dist/1.async.js +61 -0
  3. package/dist/1013.async.js +1 -0
  4. package/dist/123.async.js +258 -0
  5. package/dist/1387.async.js +321 -0
  6. package/dist/1481.async.js +1 -0
  7. package/dist/1548.async.js +2 -0
  8. package/dist/1815.async.js +3 -0
  9. package/dist/1819.async.js +1 -0
  10. package/dist/1851.async.js +1 -0
  11. package/dist/2491.async.js +132 -0
  12. package/dist/2517.async.js +247 -0
  13. package/dist/2678.async.js +1 -0
  14. package/dist/2856.async.js +267 -0
  15. package/dist/295.async.js +1 -0
  16. package/dist/3098.async.js +1 -0
  17. package/dist/3138.async.js +1 -0
  18. package/dist/34.async.js +137 -0
  19. package/dist/3472.async.js +1 -0
  20. package/dist/3614.async.js +25 -0
  21. package/dist/3959.async.js +69 -0
  22. package/dist/404.html +44 -0
  23. package/dist/4484.async.js +10 -0
  24. package/dist/4498.async.js +37 -0
  25. package/dist/4911.async.js +1 -0
  26. package/dist/4927.async.js +104 -0
  27. package/dist/5067.async.js +44 -0
  28. package/dist/5588.async.js +8 -0
  29. package/dist/5754.async.js +5 -0
  30. package/dist/6254.async.js +30286 -0
  31. package/dist/6355.async.js +10 -0
  32. package/dist/6662.async.js +177 -0
  33. package/dist/6680.async.js +2615 -0
  34. package/dist/6690.async.js +153 -0
  35. package/dist/7267.async.js +31 -0
  36. package/dist/7329.async.js +180 -0
  37. package/dist/7718.async.js +61 -0
  38. package/dist/7762.async.js +3 -0
  39. package/dist/7787.async.js +7 -0
  40. package/dist/7929.async.js +1 -0
  41. package/dist/8164.async.js +1 -0
  42. package/dist/834.async.js +221 -0
  43. package/dist/8456.async.js +146 -0
  44. package/dist/8542.async.js +25 -0
  45. package/dist/8749.async.js +1 -0
  46. package/dist/8914.async.js +66 -0
  47. package/dist/9570.async.js +65 -0
  48. package/dist/9725.async.js +18 -0
  49. package/dist/components/llm-trace-v2/index.html +44 -0
  50. package/dist/components/llm-trace-v3/index.html +44 -0
  51. package/dist/components/llm-trace-v3-advanced/index.html +44 -0
  52. package/dist/components/llm-trace-v3-examples/index.html +44 -0
  53. package/dist/components/llm-trace-v3-visual-demos/index.html +44 -0
  54. package/dist/demos.async.js +594 -0
  55. package/dist/demos__index.md.async.js +1 -0
  56. package/dist/demos__markdown-latex-mermaid__index.md.async.js +1 -0
  57. package/dist/demos__toolChatType__index.md.async.js +1 -0
  58. package/dist/docs/index.html +44 -0
  59. package/dist/docs__components__llm-trace-v2.md.async.js +1 -0
  60. package/dist/docs__components__llm-trace-v3-advanced.md.async.js +1 -0
  61. package/dist/docs__components__llm-trace-v3-examples.md.async.js +1 -0
  62. package/dist/docs__components__llm-trace-v3-visual-demos.md.async.js +1 -0
  63. package/dist/docs__components__llm-trace-v3.md.async.js +61 -0
  64. package/dist/docs__docs__index.md.async.js +108 -0
  65. package/dist/docs__index.md.async.js +1 -0
  66. package/dist/dumi__tmp-production__dumi__theme__ContextWrapper.async.js +1 -0
  67. package/dist/index.html +44 -0
  68. package/dist/markdown-latex-mermaid/index.html +44 -0
  69. package/dist/meta__demos.async.js +4272 -0
  70. package/dist/meta__docs.async.js +3416 -0
  71. package/dist/nm__dumi__dist__client__pages__404.async.js +29 -0
  72. package/dist/nm__dumi__dist__client__pages__Demo__index.async.js +5 -0
  73. package/dist/nm__dumi__theme-default__layouts__DocLayout__index.async.js +1 -0
  74. package/dist/preload_helper.js +1 -0
  75. package/dist/static/KaTeX_AMS-Regular.1608a09b.woff +0 -0
  76. package/dist/static/KaTeX_AMS-Regular.4aafdb68.ttf +0 -0
  77. package/dist/static/KaTeX_AMS-Regular.a79f1c31.woff2 +0 -0
  78. package/dist/static/KaTeX_Caligraphic-Bold.b6770918.woff +0 -0
  79. package/dist/static/KaTeX_Caligraphic-Bold.cce5b8ec.ttf +0 -0
  80. package/dist/static/KaTeX_Caligraphic-Bold.ec17d132.woff2 +0 -0
  81. package/dist/static/KaTeX_Caligraphic-Regular.07ef19e7.ttf +0 -0
  82. package/dist/static/KaTeX_Caligraphic-Regular.55fac258.woff2 +0 -0
  83. package/dist/static/KaTeX_Caligraphic-Regular.dad44a7f.woff +0 -0
  84. package/dist/static/KaTeX_Fraktur-Bold.9f256b85.woff +0 -0
  85. package/dist/static/KaTeX_Fraktur-Bold.b18f59e1.ttf +0 -0
  86. package/dist/static/KaTeX_Fraktur-Bold.d42a5579.woff2 +0 -0
  87. package/dist/static/KaTeX_Fraktur-Regular.7c187121.woff +0 -0
  88. package/dist/static/KaTeX_Fraktur-Regular.d3c882a6.woff2 +0 -0
  89. package/dist/static/KaTeX_Fraktur-Regular.ed38e79f.ttf +0 -0
  90. package/dist/static/KaTeX_Main-Bold.b74a1a8b.ttf +0 -0
  91. package/dist/static/KaTeX_Main-Bold.c3fb5ac2.woff2 +0 -0
  92. package/dist/static/KaTeX_Main-Bold.d181c465.woff +0 -0
  93. package/dist/static/KaTeX_Main-BoldItalic.6f2bb1df.woff2 +0 -0
  94. package/dist/static/KaTeX_Main-BoldItalic.70d8b0a5.ttf +0 -0
  95. package/dist/static/KaTeX_Main-BoldItalic.e3f82f9d.woff +0 -0
  96. package/dist/static/KaTeX_Main-Italic.47373d1e.ttf +0 -0
  97. package/dist/static/KaTeX_Main-Italic.8916142b.woff2 +0 -0
  98. package/dist/static/KaTeX_Main-Italic.9024d815.woff +0 -0
  99. package/dist/static/KaTeX_Main-Regular.0462f03b.woff2 +0 -0
  100. package/dist/static/KaTeX_Main-Regular.7f51fe03.woff +0 -0
  101. package/dist/static/KaTeX_Main-Regular.b7f8fe9b.ttf +0 -0
  102. package/dist/static/KaTeX_Math-BoldItalic.572d331f.woff2 +0 -0
  103. package/dist/static/KaTeX_Math-BoldItalic.a879cf83.ttf +0 -0
  104. package/dist/static/KaTeX_Math-BoldItalic.f1035d8d.woff +0 -0
  105. package/dist/static/KaTeX_Math-Italic.5295ba48.woff +0 -0
  106. package/dist/static/KaTeX_Math-Italic.939bc644.ttf +0 -0
  107. package/dist/static/KaTeX_Math-Italic.f28c23ac.woff2 +0 -0
  108. package/dist/static/KaTeX_SansSerif-Bold.8c5b5494.woff2 +0 -0
  109. package/dist/static/KaTeX_SansSerif-Bold.94e1e8dc.ttf +0 -0
  110. package/dist/static/KaTeX_SansSerif-Bold.bf59d231.woff +0 -0
  111. package/dist/static/KaTeX_SansSerif-Italic.3b1e59b3.woff2 +0 -0
  112. package/dist/static/KaTeX_SansSerif-Italic.7c9bc82b.woff +0 -0
  113. package/dist/static/KaTeX_SansSerif-Italic.b4c20c84.ttf +0 -0
  114. package/dist/static/KaTeX_SansSerif-Regular.74048478.woff +0 -0
  115. package/dist/static/KaTeX_SansSerif-Regular.ba21ed5f.woff2 +0 -0
  116. package/dist/static/KaTeX_SansSerif-Regular.d4d7ba48.ttf +0 -0
  117. package/dist/static/KaTeX_Script-Regular.03e9641d.woff2 +0 -0
  118. package/dist/static/KaTeX_Script-Regular.07505710.woff +0 -0
  119. package/dist/static/KaTeX_Script-Regular.fe9cbbe1.ttf +0 -0
  120. package/dist/static/KaTeX_Size1-Regular.e1e279cb.woff +0 -0
  121. package/dist/static/KaTeX_Size1-Regular.eae34984.woff2 +0 -0
  122. package/dist/static/KaTeX_Size1-Regular.fabc004a.ttf +0 -0
  123. package/dist/static/KaTeX_Size2-Regular.57727022.woff +0 -0
  124. package/dist/static/KaTeX_Size2-Regular.5916a24f.woff2 +0 -0
  125. package/dist/static/KaTeX_Size2-Regular.d6b476ec.ttf +0 -0
  126. package/dist/static/KaTeX_Size3-Regular.9acaf01c.woff +0 -0
  127. package/dist/static/KaTeX_Size3-Regular.a144ef58.ttf +0 -0
  128. package/dist/static/KaTeX_Size3-Regular.b4230e7e.woff2 +0 -0
  129. package/dist/static/KaTeX_Size4-Regular.10d95fd3.woff2 +0 -0
  130. package/dist/static/KaTeX_Size4-Regular.7a996c9d.woff +0 -0
  131. package/dist/static/KaTeX_Size4-Regular.fbccdabe.ttf +0 -0
  132. package/dist/static/KaTeX_Typewriter-Regular.6258592b.woff +0 -0
  133. package/dist/static/KaTeX_Typewriter-Regular.a8709e36.woff2 +0 -0
  134. package/dist/static/KaTeX_Typewriter-Regular.d97aaf4a.ttf +0 -0
  135. package/dist/tool-chat-type/index.html +44 -0
  136. package/dist/umi.js +1534 -0
  137. package/dist/~demos/:id/index.html +44 -0
  138. package/dist/~demos/demos-markdown-latex-mermaid-demo-markdown-latex-mermaid/index.html +44 -0
  139. package/dist/~demos/demos-tool-chat-type-demo-agentschemaformdemo/index.html +44 -0
  140. package/dist/~demos/demos-tool-chat-type-demo-assistant-drawer/index.html +44 -0
  141. package/dist/~demos/demos-tool-chat-type-demo-chat-input-demo/index.html +44 -0
  142. package/dist/~demos/demos-tool-chat-type-demo-chat-list-demo/index.html +44 -0
  143. package/dist/~demos/demos-tool-chat-type-demo-chat-scenario-demo/index.html +44 -0
  144. package/dist/~demos/demos-tool-chat-type-demo-schema-input/index.html +44 -0
  145. package/dist/~demos/demos-tool-chat-type-demo-toolchattype/index.html +44 -0
  146. package/dist/~demos/docs-components-llm-trace-v-2-demo-0/index.html +44 -0
  147. package/dist/~demos/docs-components-llm-trace-v-2-demo-1/index.html +44 -0
  148. package/dist/~demos/docs-components-llm-trace-v-2-demo-2/index.html +44 -0
  149. package/dist/~demos/docs-components-llm-trace-v-2-demo-3/index.html +44 -0
  150. package/dist/~demos/docs-components-llm-trace-v-2-demo-4/index.html +44 -0
  151. package/dist/~demos/docs-components-llm-trace-v-3-advanced-demo-0/index.html +44 -0
  152. package/dist/~demos/docs-components-llm-trace-v-3-advanced-demo-1/index.html +44 -0
  153. package/dist/~demos/docs-components-llm-trace-v-3-advanced-demo-2/index.html +44 -0
  154. package/dist/~demos/docs-components-llm-trace-v-3-advanced-demo-3/index.html +44 -0
  155. package/dist/~demos/docs-components-llm-trace-v-3-demo-0/index.html +44 -0
  156. package/dist/~demos/docs-components-llm-trace-v-3-demo-1/index.html +44 -0
  157. package/dist/~demos/docs-components-llm-trace-v-3-demo-2/index.html +44 -0
  158. package/dist/~demos/docs-components-llm-trace-v-3-demo-3/index.html +44 -0
  159. package/dist/~demos/docs-components-llm-trace-v-3-examples-demo-0/index.html +44 -0
  160. package/dist/~demos/docs-components-llm-trace-v-3-examples-demo-1/index.html +44 -0
  161. package/dist/~demos/docs-components-llm-trace-v-3-examples-demo-2/index.html +44 -0
  162. package/dist/~demos/docs-components-llm-trace-v-3-examples-demo-3/index.html +44 -0
  163. package/dist/~demos/docs-components-llm-trace-v-3-examples-demo-4/index.html +44 -0
  164. package/dist/~demos/docs-components-llm-trace-v-3-visual-demos-demo-0/index.html +44 -0
  165. package/dist/~demos/docs-components-llm-trace-v-3-visual-demos-demo-1/index.html +44 -0
  166. package/dist/~demos/docs-components-llm-trace-v-3-visual-demos-demo-2/index.html +44 -0
  167. package/dist/~demos/docs-components-llm-trace-v-3-visual-demos-demo-3/index.html +44 -0
  168. package/dist/~demos/docs-components-llm-trace-v-3-visual-demos-demo-4/index.html +44 -0
  169. package/dist/~demos/docs-components-llm-trace-v-3-visual-demos-demo-5/index.html +44 -0
  170. package/dist/~demos/docs-components-llm-trace-v-3-visual-demos-demo-6/index.html +44 -0
  171. package/dist/~demos/docs-components-llm-trace-v-3-visual-demos-demo-7/index.html +44 -0
  172. package/es/AssistantChat/AssistantChatApp/CardMatchRender/index.d.ts +8 -0
  173. package/es/AssistantChat/AssistantChatApp/CardMatchRender/index.js +124 -0
  174. package/es/AssistantChat/AssistantChatApp/OperationMatchRender/index.d.ts +9 -0
  175. package/es/AssistantChat/AssistantChatApp/OperationMatchRender/index.js +64 -0
  176. package/es/AssistantChat/AssistantChatApp/const.d.ts +51 -0
  177. package/es/AssistantChat/AssistantChatApp/const.js +105 -0
  178. package/es/AssistantChat/AssistantChatApp/index.d.ts +4 -0
  179. package/es/AssistantChat/AssistantChatApp/index.js +281 -0
  180. package/es/AssistantChat/AssistantChatApp/index.scss +327 -0
  181. package/es/AssistantChat/AssistantChatCard/AgentCardRender/TemplateCard.d.ts +3 -0
  182. package/es/AssistantChat/AssistantChatCard/AgentCardRender/TemplateCard.js +125 -0
  183. package/es/AssistantChat/AssistantChatCard/AgentCardRender/common/types.d.ts +3 -0
  184. package/es/AssistantChat/AssistantChatCard/AgentCardRender/common/types.js +1 -0
  185. package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TemplateHeader.d.ts +5 -0
  186. package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TemplateHeader.js +24 -0
  187. package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TemplateHtml.d.ts +7 -0
  188. package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TemplateHtml.js +58 -0
  189. package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TemplateParagraph.d.ts +3 -0
  190. package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TemplateParagraph.js +8 -0
  191. package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TemplateTitle.d.ts +3 -0
  192. package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TemplateTitle.js +9 -0
  193. package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TraceComponent.d.ts +3 -0
  194. package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TraceComponent.js +47 -0
  195. package/es/AssistantChat/AssistantChatCard/AgentCardRender/context/index.d.ts +29 -0
  196. package/es/AssistantChat/AssistantChatCard/AgentCardRender/context/index.js +95 -0
  197. package/es/AssistantChat/AssistantChatCard/AgentCardRender/index.d.ts +4 -0
  198. package/es/AssistantChat/AssistantChatCard/AgentCardRender/index.js +100 -0
  199. package/es/AssistantChat/AssistantChatCard/AgentCardRender/index.scss +18 -0
  200. package/es/AssistantChat/AssistantChatCard/AgentCardRender/utils.d.ts +2 -0
  201. package/es/AssistantChat/AssistantChatCard/AgentCardRender/utils.js +36 -0
  202. package/es/AssistantChat/AssistantChatCard/AgentCommonCard/index.d.ts +4 -0
  203. package/es/AssistantChat/AssistantChatCard/AgentCommonCard/index.js +95 -0
  204. package/es/AssistantChat/AssistantChatCard/AgentCommonCard/index.scss +20 -0
  205. package/es/AssistantChat/AssistantChatCard/AgentExecutionCard/index.d.ts +16 -0
  206. package/es/AssistantChat/AssistantChatCard/AgentExecutionCard/index.js +17 -0
  207. package/es/AssistantChat/AssistantChatCard/AgentExecutionCard/index.scss +99 -0
  208. package/es/AssistantChat/AssistantChatCard/LlmGenerateCard/index.d.ts +14 -0
  209. package/es/AssistantChat/AssistantChatCard/LlmGenerateCard/index.js +273 -0
  210. package/es/AssistantChat/AssistantChatCard/LlmGenerateCard/index.scss +101 -0
  211. package/es/AssistantChat/AssistantChatCard/LlmGenerateCardV5/index.d.ts +78 -0
  212. package/es/AssistantChat/AssistantChatCard/LlmGenerateCardV5/index.js +123 -0
  213. package/es/AssistantChat/AssistantChatCard/LlmGenerateCardV5/index.scss +12 -0
  214. package/es/AssistantChat/AssistantChatCard/OperationCard/AigcTipsRender/index.d.ts +7 -0
  215. package/es/AssistantChat/AssistantChatCard/OperationCard/AigcTipsRender/index.js +29 -0
  216. package/es/AssistantChat/AssistantChatCard/OperationCard/Copy/index.d.ts +7 -0
  217. package/es/AssistantChat/AssistantChatCard/OperationCard/Copy/index.js +64 -0
  218. package/es/AssistantChat/AssistantChatCard/OperationCard/CopyRequestId/index.d.ts +3 -0
  219. package/es/AssistantChat/AssistantChatCard/OperationCard/CopyRequestId/index.js +19 -0
  220. package/es/AssistantChat/AssistantChatCard/OperationCard/FeedBack/index.d.ts +11 -0
  221. package/es/AssistantChat/AssistantChatCard/OperationCard/FeedBack/index.js +91 -0
  222. package/es/AssistantChat/AssistantChatCard/OperationCard/ShareButton/index.d.ts +3 -0
  223. package/es/AssistantChat/AssistantChatCard/OperationCard/ShareButton/index.js +26 -0
  224. package/es/AssistantChat/AssistantChatCard/OperationCard/index.d.ts +4 -0
  225. package/es/AssistantChat/AssistantChatCard/OperationCard/index.js +43 -0
  226. package/es/AssistantChat/AssistantChatCard/OperationCard/index.scss +14 -0
  227. package/es/AssistantChat/AssistantChatCard/UserQueryCardRender/AttachmentsRender.d.ts +21 -0
  228. package/es/AssistantChat/AssistantChatCard/UserQueryCardRender/AttachmentsRender.js +141 -0
  229. package/es/AssistantChat/AssistantChatCard/UserQueryCardRender/ImageRender.d.ts +7 -0
  230. package/es/AssistantChat/AssistantChatCard/UserQueryCardRender/ImageRender.js +74 -0
  231. package/es/AssistantChat/AssistantChatCard/UserQueryCardRender/index.d.ts +8 -0
  232. package/es/AssistantChat/AssistantChatCard/UserQueryCardRender/index.js +54 -0
  233. package/es/AssistantChat/AssistantChatCard/UserQueryCardRender/index.scss +98 -0
  234. package/es/AssistantChat/AssistantChatCard/index.d.ts +5 -0
  235. package/es/AssistantChat/AssistantChatCard/index.js +10 -0
  236. package/es/AssistantChat/AssistantChatInput/index.d.ts +5 -0
  237. package/es/AssistantChat/AssistantChatInput/index.js +172 -0
  238. package/es/AssistantChat/AssistantChatInput/index.scss +85 -0
  239. package/es/AssistantChat/AssistantToolApp/const.d.ts +12 -0
  240. package/es/AssistantChat/AssistantToolApp/const.js +22 -0
  241. package/es/AssistantChat/AssistantToolApp/index.d.ts +4 -0
  242. package/es/AssistantChat/AssistantToolApp/index.js +159 -0
  243. package/es/AssistantChat/AssistantToolApp/index.scss +76 -0
  244. package/es/AssistantChat/AssistantToolExecutionApp/const.d.ts +7 -0
  245. package/es/AssistantChat/AssistantToolExecutionApp/const.js +23 -0
  246. package/es/AssistantChat/AssistantToolExecutionApp/index.d.ts +4 -0
  247. package/es/AssistantChat/AssistantToolExecutionApp/index.js +66 -0
  248. package/es/AssistantChat/AssistantToolExecutionApp/index.scss +39 -0
  249. package/es/AssistantChat/AssistentError/index.d.ts +5 -0
  250. package/es/AssistantChat/AssistentError/index.js +138 -0
  251. package/es/AssistantChat/index.d.ts +6 -0
  252. package/es/AssistantChat/index.js +166 -0
  253. package/es/AssistantChat/index.scss +30 -0
  254. package/es/AssistantChat/logCallback/aTagLog.d.ts +1 -0
  255. package/es/AssistantChat/logCallback/aTagLog.js +23 -0
  256. package/es/AssistantChat/logCallback/copyLog.d.ts +3 -0
  257. package/es/AssistantChat/logCallback/copyLog.js +63 -0
  258. package/es/ErrorBoundary/ErrorBoundaryFallback/index.d.ts +5 -0
  259. package/es/ErrorBoundary/ErrorBoundaryFallback/index.js +134 -0
  260. package/es/ErrorBoundary/index.d.ts +22 -0
  261. package/es/ErrorBoundary/index.js +69 -0
  262. package/es/common/registerAssistChatForm.d.ts +2 -0
  263. package/es/common/registerAssistChatForm.js +14 -0
  264. package/es/components/AgentCardSubmit/index.d.ts +20 -0
  265. package/es/components/AgentCardSubmit/index.js +90 -0
  266. package/es/components/AgentResult/index.d.ts +8 -0
  267. package/es/components/AgentResult/index.js +77 -0
  268. package/es/components/AgentResult/index.scss +11 -0
  269. package/es/components/AgentSchemaForm/ScreenshotView.d.ts +12 -0
  270. package/es/components/AgentSchemaForm/ScreenshotView.js +194 -0
  271. package/es/components/AgentSchemaForm/ScreenshotView.scss +86 -0
  272. package/es/components/AgentSchemaForm/_interface.d.ts +37 -0
  273. package/es/components/AgentSchemaForm/_interface.js +13 -0
  274. package/es/components/AgentSchemaForm/index.d.ts +9 -0
  275. package/es/components/AgentSchemaForm/index.js +190 -0
  276. package/es/components/AgentSchemaForm/index.scss +37 -0
  277. package/es/components/AgentText/index.d.ts +4 -0
  278. package/es/components/AgentText/index.js +8 -0
  279. package/es/components/AgentText/index.scss +5 -0
  280. package/es/components/AigcTips/index.d.ts +9 -0
  281. package/es/components/AigcTips/index.js +17 -0
  282. package/es/components/AigcTips/index.scss +6 -0
  283. package/es/components/ArrayInput/index.d.ts +3 -0
  284. package/es/components/ArrayInput/index.js +36 -0
  285. package/es/components/AssistantDrawer/index.d.ts +22 -0
  286. package/es/components/AssistantDrawer/index.js +112 -0
  287. package/es/components/AssistantDrawer/index.scss +96 -0
  288. package/es/components/EmptyIcon/index.d.ts +3 -0
  289. package/es/components/EmptyIcon/index.js +124 -0
  290. package/es/components/HeaderSvgIcon/index.d.ts +3 -0
  291. package/es/components/HeaderSvgIcon/index.js +1 -0
  292. package/es/components/InspectionCard/index.d.ts +66 -0
  293. package/es/components/InspectionCard/index.js +246 -0
  294. package/es/components/InspectionCard/index.module.less +193 -0
  295. package/es/components/InspectionCard/result.d.ts +13 -0
  296. package/es/components/InspectionCard/result.js +26 -0
  297. package/es/components/InspectionCard/result.module.less +36 -0
  298. package/es/components/LlmMarkDown/MdAmarkGuess/index.d.ts +16 -0
  299. package/es/components/LlmMarkDown/MdAmarkGuess/index.js +41 -0
  300. package/es/components/LlmMarkDown/MdAmarkReference/index.d.ts +21 -0
  301. package/es/components/LlmMarkDown/MdAmarkReference/index.js +300 -0
  302. package/es/components/LlmMarkDown/MdAmarkReference/index.scss +122 -0
  303. package/es/components/LlmMarkDown/index.d.ts +30 -0
  304. package/es/components/LlmMarkDown/index.js +202 -0
  305. package/es/components/LlmMarkDown/index.scss +23 -0
  306. package/es/components/LlmModelChange/index.d.ts +57 -0
  307. package/es/components/LlmModelChange/index.js +138 -0
  308. package/es/components/LlmModelChange/index.scss +60 -0
  309. package/es/components/LlmReference/index.d.ts +25 -0
  310. package/es/components/LlmReference/index.js +147 -0
  311. package/es/components/LlmReference/index.scss +92 -0
  312. package/es/components/LlmTitle/index.d.ts +14 -0
  313. package/es/components/LlmTitle/index.js +26 -0
  314. package/es/components/LlmTitle/index.scss +20 -0
  315. package/es/components/LlmTrace/index.d.ts +17 -0
  316. package/es/components/LlmTrace/index.js +119 -0
  317. package/es/components/LlmTrace/index.scss +79 -0
  318. package/es/components/LlmTraceComponents/Disassemble/index.d.ts +24 -0
  319. package/es/components/LlmTraceComponents/Disassemble/index.js +89 -0
  320. package/es/components/LlmTraceComponents/Disassemble/index.scss +19 -0
  321. package/es/components/LlmTraceComponents/ReadResource/index.d.ts +24 -0
  322. package/es/components/LlmTraceComponents/ReadResource/index.js +19 -0
  323. package/es/components/LlmTraceComponents/ReadResource/index.scss +5 -0
  324. package/es/components/LlmTraceComponents/Rewrite/index.d.ts +23 -0
  325. package/es/components/LlmTraceComponents/Rewrite/index.js +49 -0
  326. package/es/components/LlmTraceComponents/Rewrite/index.scss +13 -0
  327. package/es/components/LlmTraceComponents/TraceMarkDown/index.d.ts +22 -0
  328. package/es/components/LlmTraceComponents/TraceMarkDown/index.js +44 -0
  329. package/es/components/LlmTraceComponents/TraceMarkDown/index.scss +18 -0
  330. package/es/components/LlmTraceComponents/const.d.ts +25 -0
  331. package/es/components/LlmTraceComponents/const.js +23 -0
  332. package/es/components/LlmTraceV2/index.d.ts +56 -0
  333. package/es/components/LlmTraceV2/index.js +384 -0
  334. package/es/components/LlmTraceV2/index.scss +115 -0
  335. package/es/components/LlmTraceV3/components/TraceContentComponents/BusinessFlow/index.d.ts +13 -0
  336. package/es/components/LlmTraceV3/components/TraceContentComponents/BusinessFlow/index.js +38 -0
  337. package/es/components/LlmTraceV3/components/TraceContentComponents/BusinessFlow/index.scss +56 -0
  338. package/es/components/LlmTraceV3/components/TraceContentComponents/CodeBlock/index.d.ts +18 -0
  339. package/es/components/LlmTraceV3/components/TraceContentComponents/CodeBlock/index.js +82 -0
  340. package/es/components/LlmTraceV3/components/TraceContentComponents/CodeBlock/index.scss +36 -0
  341. package/es/components/LlmTraceV3/components/TraceContentComponents/DeepThinking/index.d.ts +13 -0
  342. package/es/components/LlmTraceV3/components/TraceContentComponents/DeepThinking/index.js +26 -0
  343. package/es/components/LlmTraceV3/components/TraceContentComponents/DeepThinking/index.scss +54 -0
  344. package/es/components/LlmTraceV3/components/TraceContentComponents/InfoMissing/index.d.ts +13 -0
  345. package/es/components/LlmTraceV3/components/TraceContentComponents/InfoMissing/index.js +25 -0
  346. package/es/components/LlmTraceV3/components/TraceContentComponents/InfoMissing/index.scss +38 -0
  347. package/es/components/LlmTraceV3/components/TraceContentComponents/LinkList/index.d.ts +20 -0
  348. package/es/components/LlmTraceV3/components/TraceContentComponents/LinkList/index.js +49 -0
  349. package/es/components/LlmTraceV3/components/TraceContentComponents/LinkList/index.scss +37 -0
  350. package/es/components/LlmTraceV3/components/TraceContentComponents/SearchResults/index.d.ts +13 -0
  351. package/es/components/LlmTraceV3/components/TraceContentComponents/SearchResults/index.js +93 -0
  352. package/es/components/LlmTraceV3/components/TraceContentComponents/SearchResults/index.scss +151 -0
  353. package/es/components/LlmTraceV3/components/TraceContentComponents/TaskPlanning/index.d.ts +12 -0
  354. package/es/components/LlmTraceV3/components/TraceContentComponents/TaskPlanning/index.js +28 -0
  355. package/es/components/LlmTraceV3/components/TraceContentComponents/ToolCall/index.d.ts +13 -0
  356. package/es/components/LlmTraceV3/components/TraceContentComponents/ToolCall/index.js +46 -0
  357. package/es/components/LlmTraceV3/components/TraceContentComponents/ToolCall/index.scss +70 -0
  358. package/es/components/LlmTraceV3/components/TraceContentComponents/ToolResult/index.d.ts +13 -0
  359. package/es/components/LlmTraceV3/components/TraceContentComponents/ToolResult/index.js +72 -0
  360. package/es/components/LlmTraceV3/components/TraceContentComponents/ToolResult/index.scss +90 -0
  361. package/es/components/LlmTraceV3/components/TraceContentComponents/const.d.ts +32 -0
  362. package/es/components/LlmTraceV3/components/TraceContentComponents/const.js +27 -0
  363. package/es/components/LlmTraceV3/components/TraceGroup/index.d.ts +8 -0
  364. package/es/components/LlmTraceV3/components/TraceGroup/index.js +81 -0
  365. package/es/components/LlmTraceV3/components/TraceHeader/index.d.ts +8 -0
  366. package/es/components/LlmTraceV3/components/TraceHeader/index.js +64 -0
  367. package/es/components/LlmTraceV3/components/TraceItem/index.d.ts +8 -0
  368. package/es/components/LlmTraceV3/components/TraceItem/index.js +126 -0
  369. package/es/components/LlmTraceV3/components/TraceSlide/index.d.ts +30 -0
  370. package/es/components/LlmTraceV3/components/TraceSlide/index.js +278 -0
  371. package/es/components/LlmTraceV3/components/TraceSlide/index.scss +204 -0
  372. package/es/components/LlmTraceV3/components/TraceStatusIcon/index.d.ts +8 -0
  373. package/es/components/LlmTraceV3/components/TraceStatusIcon/index.js +41 -0
  374. package/es/components/LlmTraceV3/hooks/useGroupCollapse.d.ts +18 -0
  375. package/es/components/LlmTraceV3/hooks/useGroupCollapse.js +91 -0
  376. package/es/components/LlmTraceV3/hooks/useItemCollapse.d.ts +18 -0
  377. package/es/components/LlmTraceV3/hooks/useItemCollapse.js +61 -0
  378. package/es/components/LlmTraceV3/hooks/useTraceAnimation.d.ts +15 -0
  379. package/es/components/LlmTraceV3/hooks/useTraceAnimation.js +54 -0
  380. package/es/components/LlmTraceV3/hooks/useTraceCollapse.d.ts +17 -0
  381. package/es/components/LlmTraceV3/hooks/useTraceCollapse.js +80 -0
  382. package/es/components/LlmTraceV3/index.d.ts +11 -0
  383. package/es/components/LlmTraceV3/index.js +173 -0
  384. package/es/components/LlmTraceV3/index.scss +333 -0
  385. package/es/components/LlmTraceV3/types.d.ts +263 -0
  386. package/es/components/LlmTraceV3/types.js +108 -0
  387. package/es/components/LlmTraceV3/utils/collapseLogic.d.ts +26 -0
  388. package/es/components/LlmTraceV3/utils/collapseLogic.js +86 -0
  389. package/es/components/LlmTraceV3/utils/traceHelpers.d.ts +42 -0
  390. package/es/components/LlmTraceV3/utils/traceHelpers.js +94 -0
  391. package/es/components/MarkDown/index.d.ts +11 -0
  392. package/es/components/MarkDown/index.js +222 -0
  393. package/es/components/MarkDown/index.scss +179 -0
  394. package/es/components/ModelSelect/ModeDropdown.d.ts +8 -0
  395. package/es/components/ModelSelect/ModeDropdown.js +118 -0
  396. package/es/components/ModelSelect/const.d.ts +30 -0
  397. package/es/components/ModelSelect/const.js +61 -0
  398. package/es/components/ModelSelect/index.d.ts +4 -0
  399. package/es/components/ModelSelect/index.js +45 -0
  400. package/es/components/ModelSelect/index.scss +121 -0
  401. package/es/components/PaulButtonGroup/Select.d.ts +3 -0
  402. package/es/components/PaulButtonGroup/Select.js +109 -0
  403. package/es/components/PaulButtonGroup/index.d.ts +16 -0
  404. package/es/components/PaulButtonGroup/index.js +209 -0
  405. package/es/components/PaulButtonGroup/index.scss +19 -0
  406. package/es/components/PopAuth/index.d.ts +4 -0
  407. package/es/components/PopAuth/index.js +62 -0
  408. package/es/components/PopAuth/index.scss +16 -0
  409. package/es/components/ReferenceInfoItem/index.d.ts +49 -0
  410. package/es/components/ReferenceInfoItem/index.js +43 -0
  411. package/es/components/ReferenceInfoItem/index.scss +46 -0
  412. package/es/components/ReferenceTag/index.d.ts +11 -0
  413. package/es/components/ReferenceTag/index.js +27 -0
  414. package/es/components/ReferenceTag/index.scss +19 -0
  415. package/es/components/SchemaInput/SchemaInputCore/index.d.ts +4 -0
  416. package/es/components/SchemaInput/SchemaInputCore/index.js +113 -0
  417. package/es/components/SchemaInput/SchemaInputCore/index.scss +35 -0
  418. package/es/components/SchemaInput/SchemaInputCore/utils.d.ts +1 -0
  419. package/es/components/SchemaInput/SchemaInputCore/utils.js +77 -0
  420. package/es/components/SchemaInput/SimpleJSONEditor/index.d.ts +4 -0
  421. package/es/components/SchemaInput/SimpleJSONEditor/index.js +35 -0
  422. package/es/components/SchemaInput/SimpleJSONEditor/index.scss +7 -0
  423. package/es/components/SchemaInput/index.d.ts +8 -0
  424. package/es/components/SchemaInput/index.js +30 -0
  425. package/es/components/SelectBlurry/index.d.ts +3 -0
  426. package/es/components/SelectBlurry/index.js +74 -0
  427. package/es/components/SendMessageSvgIcon/index.d.ts +3 -0
  428. package/es/components/SendMessageSvgIcon/index.js +70 -0
  429. package/es/components/ShareContent/index.d.ts +21 -0
  430. package/es/components/ShareContent/index.js +176 -0
  431. package/es/components/ShareContent/index.scss +36 -0
  432. package/es/components/ShareModal/index.d.ts +15 -0
  433. package/es/components/ShareModal/index.js +185 -0
  434. package/es/components/ShareModal/index.scss +199 -0
  435. package/es/components/ShareOperationBar/index.d.ts +4 -0
  436. package/es/components/ShareOperationBar/index.js +152 -0
  437. package/es/components/ShareOperationBar/index.scss +47 -0
  438. package/es/components/TextContent/index.d.ts +14 -0
  439. package/es/components/TextContent/index.js +37 -0
  440. package/es/components/TextContent/index.scss +31 -0
  441. package/es/components/TraceMarkdownWithCard/index.d.ts +6 -0
  442. package/es/components/TraceMarkdownWithCard/index.js +21 -0
  443. package/es/components/TraceMarkdownWithCard/index.module.less +29 -0
  444. package/es/components/TraceWithAgent/index.d.ts +23 -0
  445. package/es/components/TraceWithAgent/index.js +93 -0
  446. package/es/components/TraceWithAgent/index.less +74 -0
  447. package/es/constants/assistChatEvent.d.ts +33 -0
  448. package/es/constants/assistChatEvent.js +33 -0
  449. package/es/constants/common.d.ts +71 -0
  450. package/es/constants/common.js +90 -0
  451. package/es/constants/logTrace.d.ts +3 -0
  452. package/es/constants/logTrace.js +4 -0
  453. package/es/constants/reference.d.ts +109 -0
  454. package/es/constants/reference.js +111 -0
  455. package/es/constants/traceDataStatus.d.ts +34 -0
  456. package/es/constants/traceDataStatus.js +37 -0
  457. package/es/context/index.d.ts +13 -0
  458. package/es/context/index.js +785 -0
  459. package/es/context/utils/messages.d.ts +33 -0
  460. package/es/context/utils/messages.js +194 -0
  461. package/es/context/utils/send.d.ts +29 -0
  462. package/es/context/utils/send.js +187 -0
  463. package/es/context/utils/tool.d.ts +19 -0
  464. package/es/context/utils/tool.js +89 -0
  465. package/es/index.d.ts +37 -0
  466. package/es/index.js +63 -0
  467. package/es/index.scss +39 -0
  468. package/es/interface/IAgent.d.ts +12 -0
  469. package/es/interface/IAgent.js +1 -0
  470. package/es/interface/IChatBottom.d.ts +69 -0
  471. package/es/interface/IChatBottom.js +1 -0
  472. package/es/interface/IChatCard.d.ts +40 -0
  473. package/es/interface/IChatCard.js +1 -0
  474. package/es/interface/IChatContext.d.ts +59 -0
  475. package/es/interface/IChatContext.js +1 -0
  476. package/es/interface/IChatRef.d.ts +75 -0
  477. package/es/interface/IChatRef.js +1 -0
  478. package/es/interface/IGuessQuestion.d.ts +43 -0
  479. package/es/interface/IGuessQuestion.js +15 -0
  480. package/es/interface/IMessage.d.ts +17 -0
  481. package/es/interface/IMessage.js +1 -0
  482. package/es/interface/ISend.d.ts +19 -0
  483. package/es/interface/ISend.js +1 -0
  484. package/es/interface/index.d.ts +272 -0
  485. package/es/interface/index.js +7 -0
  486. package/es/utils/CSEIconTool.d.ts +8 -0
  487. package/es/utils/CSEIconTool.js +6 -0
  488. package/es/utils/apushAssistant.d.ts +73 -0
  489. package/es/utils/apushAssistant.js +518 -0
  490. package/es/utils/clientPlugin.d.ts +3 -0
  491. package/es/utils/clientPlugin.js +73 -0
  492. package/es/utils/common.d.ts +10 -0
  493. package/es/utils/common.js +40 -0
  494. package/es/utils/copyToClipboard.d.ts +2 -0
  495. package/es/utils/copyToClipboard.js +70 -0
  496. package/es/utils/formDataFormat.d.ts +3 -0
  497. package/es/utils/formDataFormat.js +55 -0
  498. package/es/utils/formatData.d.ts +14 -0
  499. package/es/utils/formatData.js +104 -0
  500. package/es/utils/log.d.ts +18 -0
  501. package/es/utils/log.js +37 -0
  502. package/es/utils/parseUrl.d.ts +9 -0
  503. package/es/utils/parseUrl.js +48 -0
  504. package/es/utils/screenshot.d.ts +45 -0
  505. package/es/utils/screenshot.js +650 -0
  506. package/es/utils/send.d.ts +10 -0
  507. package/es/utils/send.js +8 -0
  508. package/es/utils/uploadImage.d.ts +9 -0
  509. package/es/utils/uploadImage.js +226 -0
  510. package/es/utils/websocketLogger.d.ts +176 -0
  511. package/es/utils/websocketLogger.js +267 -0
  512. package/package.json +166 -0
@@ -0,0 +1,146 @@
1
+ !(function(){"use strict";var cs=Object.defineProperty,ls=Object.defineProperties;var hs=Object.getOwnPropertyDescriptors;var Ee=Object.getOwnPropertySymbols;var ds=Object.prototype.hasOwnProperty,ps=Object.prototype.propertyIsEnumerable;var be=(tt,H,M)=>H in tt?cs(tt,H,{enumerable:!0,configurable:!0,writable:!0,value:M}):tt[H]=M,me=(tt,H)=>{for(var M in H||(H={}))ds.call(H,M)&&be(tt,M,H[M]);if(Ee)for(var M of Ee(H))ps.call(H,M)&&be(tt,M,H[M]);return tt},we=(tt,H)=>ls(tt,hs(H));var at=(tt,H,M)=>new Promise((O,J)=>{var rt=u=>{try{T(M.next(u))}catch(ft){J(ft)}},B=u=>{try{T(M.throw(u))}catch(ft){J(ft)}},T=u=>u.done?O(u.value):Promise.resolve(u.value).then(rt,B);T((M=M.apply(tt,H)).next())});(self.webpackChunk_alife_paul_ai_assistant=self.webpackChunk_alife_paul_ai_assistant||[]).push([[8456],{6095:function(tt,H,M){var rt;M.d(H,{A:function(){return J}});var O=M(35096),J=(rt=class{constructor(T){this.init=T,this.records=this.init()}reset(){this.records=this.init()}},(0,O.eW)(rt,"ImperativeState"),rt)},29270:function(tt,H,M){M.d(H,{AD:function(){return Kt},AE:function(){return ft},Mu:function(){return B},O:function(){return T},kc:function(){return Wt},rB:function(){return Ct},yU:function(){return u}});var O=M(99970),J=M(35096),rt=M(17967),B=(0,J.eW)((it,P)=>{const q=it.append("rect");if(q.attr("x",P.x),q.attr("y",P.y),q.attr("fill",P.fill),q.attr("stroke",P.stroke),q.attr("width",P.width),q.attr("height",P.height),P.name&&q.attr("name",P.name),P.rx&&q.attr("rx",P.rx),P.ry&&q.attr("ry",P.ry),P.attrs!==void 0)for(const U in P.attrs)q.attr(U,P.attrs[U]);return P.class&&q.attr("class",P.class),q},"drawRect"),T=(0,J.eW)((it,P)=>{const q={x:P.startx,y:P.starty,width:P.stopx-P.startx,height:P.stopy-P.starty,fill:P.fill,stroke:P.stroke,class:"rect"};B(it,q).lower()},"drawBackgroundRect"),u=(0,J.eW)((it,P)=>{const q=P.text.replace(O.Vw," "),U=it.append("text");U.attr("x",P.x),U.attr("y",P.y),U.attr("class","legend"),U.style("text-anchor",P.anchor),P.class&&U.attr("class",P.class);const dt=U.append("tspan");return dt.attr("x",P.x+P.textMargin*2),dt.text(q),U},"drawText"),ft=(0,J.eW)((it,P,q,U)=>{const dt=it.append("image");dt.attr("x",P),dt.attr("y",q);const Rt=(0,rt.N)(U);dt.attr("xlink:href",Rt)},"drawImage"),Ct=(0,J.eW)((it,P,q,U)=>{const dt=it.append("use");dt.attr("x",P),dt.attr("y",q);const Rt=(0,rt.N)(U);dt.attr("xlink:href",`#${Rt}`)},"drawEmbeddedImage"),Wt=(0,J.eW)(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),Kt=(0,J.eW)(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj")},28456:function(tt,H,M){var St;M.d(H,{diagram:function(){return ss}});var O=M(29270),J=M(57923),rt=M(6095),B=M(4284),T=M(99970),u=M(35096),ft=M(989),Ct=M(17967),Wt=function(){var e=(0,u.eW)(function(_t,_,A,v){for(A=A||{},v=_t.length;v--;A[_t[v]]=_);return A},"o"),t=[1,2],n=[1,3],s=[1,4],r=[2,4],i=[1,9],c=[1,11],h=[1,13],o=[1,14],a=[1,16],p=[1,17],g=[1,18],f=[1,24],y=[1,25],m=[1,26],k=[1,27],L=[1,28],S=[1,29],W=[1,30],R=[1,31],D=[1,32],K=[1,33],Z=[1,34],nt=[1,35],pt=[1,36],Q=[1,37],$=[1,38],X=[1,39],F=[1,41],ot=[1,42],et=[1,43],ct=[1,44],ut=[1,45],Y=[1,46],b=[1,4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,48,49,50,52,53,55,60,61,62,63,71],I=[2,71],st=[4,5,16,50,52,53],lt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,55,60,61,62,63,71],C=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,49,50,52,53,55,60,61,62,63,71],Jt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,48,50,52,53,55,60,61,62,63,71],ue=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,50,52,53,55,60,61,62,63,71],yt=[69,70,71],Et=[1,127],Zt={trace:(0,u.eW)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,box_section:10,box_line:11,participant_statement:12,create:13,box:14,restOfLine:15,end:16,signal:17,autonumber:18,NUM:19,off:20,activate:21,actor:22,deactivate:23,note_statement:24,links_statement:25,link_statement:26,properties_statement:27,details_statement:28,title:29,legacy_title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,loop:36,rect:37,opt:38,alt:39,else_sections:40,par:41,par_sections:42,par_over:43,critical:44,option_sections:45,break:46,option:47,and:48,else:49,participant:50,AS:51,participant_actor:52,destroy:53,actor_with_config:54,note:55,placement:56,text2:57,over:58,actor_pair:59,links:60,link:61,properties:62,details:63,spaceList:64,",":65,left_of:66,right_of:67,signaltype:68,"+":69,"-":70,ACTOR:71,config_object:72,CONFIG_START:73,CONFIG_CONTENT:74,CONFIG_END:75,SOLID_OPEN_ARROW:76,DOTTED_OPEN_ARROW:77,SOLID_ARROW:78,BIDIRECTIONAL_SOLID_ARROW:79,DOTTED_ARROW:80,BIDIRECTIONAL_DOTTED_ARROW:81,SOLID_CROSS:82,DOTTED_CROSS:83,SOLID_POINT:84,DOTTED_POINT:85,TXT:86,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",13:"create",14:"box",15:"restOfLine",16:"end",18:"autonumber",19:"NUM",20:"off",21:"activate",23:"deactivate",29:"title",30:"legacy_title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"loop",37:"rect",38:"opt",39:"alt",41:"par",43:"par_over",44:"critical",46:"break",47:"option",48:"and",49:"else",50:"participant",51:"AS",52:"participant_actor",53:"destroy",55:"note",58:"over",60:"links",61:"link",62:"properties",63:"details",65:",",66:"left_of",67:"right_of",69:"+",70:"-",71:"ACTOR",73:"CONFIG_START",74:"CONFIG_CONTENT",75:"CONFIG_END",76:"SOLID_OPEN_ARROW",77:"DOTTED_OPEN_ARROW",78:"SOLID_ARROW",79:"BIDIRECTIONAL_SOLID_ARROW",80:"DOTTED_ARROW",81:"BIDIRECTIONAL_DOTTED_ARROW",82:"SOLID_CROSS",83:"DOTTED_CROSS",84:"SOLID_POINT",85:"DOTTED_POINT",86:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[10,0],[10,2],[11,2],[11,1],[11,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[45,1],[45,4],[42,1],[42,4],[40,1],[40,4],[12,5],[12,3],[12,5],[12,3],[12,3],[12,3],[24,4],[24,4],[25,3],[26,3],[27,3],[28,3],[64,2],[64,1],[59,3],[59,1],[56,1],[56,1],[17,5],[17,5],[17,4],[54,2],[72,3],[22,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[68,1],[57,1]],performAction:(0,u.eW)(function(_,A,v,w,V,d,Dt){var x=d.length-1;switch(V){case 3:return w.apply(d[x]),d[x];break;case 4:case 9:this.$=[];break;case 5:case 10:d[x-1].push(d[x]),this.$=d[x-1];break;case 6:case 7:case 11:case 12:this.$=d[x];break;case 8:case 13:this.$=[];break;case 15:d[x].type="createParticipant",this.$=d[x];break;case 16:d[x-1].unshift({type:"boxStart",boxData:w.parseBoxData(d[x-2])}),d[x-1].push({type:"boxEnd",boxText:d[x-2]}),this.$=d[x-1];break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(d[x-2]),sequenceIndexStep:Number(d[x-1]),sequenceVisible:!0,signalType:w.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(d[x-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:w.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:w.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:w.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"activeStart",signalType:w.LINETYPE.ACTIVE_START,actor:d[x-1].actor};break;case 23:this.$={type:"activeEnd",signalType:w.LINETYPE.ACTIVE_END,actor:d[x-1].actor};break;case 29:w.setDiagramTitle(d[x].substring(6)),this.$=d[x].substring(6);break;case 30:w.setDiagramTitle(d[x].substring(7)),this.$=d[x].substring(7);break;case 31:this.$=d[x].trim(),w.setAccTitle(this.$);break;case 32:case 33:this.$=d[x].trim(),w.setAccDescription(this.$);break;case 34:d[x-1].unshift({type:"loopStart",loopText:w.parseMessage(d[x-2]),signalType:w.LINETYPE.LOOP_START}),d[x-1].push({type:"loopEnd",loopText:d[x-2],signalType:w.LINETYPE.LOOP_END}),this.$=d[x-1];break;case 35:d[x-1].unshift({type:"rectStart",color:w.parseMessage(d[x-2]),signalType:w.LINETYPE.RECT_START}),d[x-1].push({type:"rectEnd",color:w.parseMessage(d[x-2]),signalType:w.LINETYPE.RECT_END}),this.$=d[x-1];break;case 36:d[x-1].unshift({type:"optStart",optText:w.parseMessage(d[x-2]),signalType:w.LINETYPE.OPT_START}),d[x-1].push({type:"optEnd",optText:w.parseMessage(d[x-2]),signalType:w.LINETYPE.OPT_END}),this.$=d[x-1];break;case 37:d[x-1].unshift({type:"altStart",altText:w.parseMessage(d[x-2]),signalType:w.LINETYPE.ALT_START}),d[x-1].push({type:"altEnd",signalType:w.LINETYPE.ALT_END}),this.$=d[x-1];break;case 38:d[x-1].unshift({type:"parStart",parText:w.parseMessage(d[x-2]),signalType:w.LINETYPE.PAR_START}),d[x-1].push({type:"parEnd",signalType:w.LINETYPE.PAR_END}),this.$=d[x-1];break;case 39:d[x-1].unshift({type:"parStart",parText:w.parseMessage(d[x-2]),signalType:w.LINETYPE.PAR_OVER_START}),d[x-1].push({type:"parEnd",signalType:w.LINETYPE.PAR_END}),this.$=d[x-1];break;case 40:d[x-1].unshift({type:"criticalStart",criticalText:w.parseMessage(d[x-2]),signalType:w.LINETYPE.CRITICAL_START}),d[x-1].push({type:"criticalEnd",signalType:w.LINETYPE.CRITICAL_END}),this.$=d[x-1];break;case 41:d[x-1].unshift({type:"breakStart",breakText:w.parseMessage(d[x-2]),signalType:w.LINETYPE.BREAK_START}),d[x-1].push({type:"breakEnd",optText:w.parseMessage(d[x-2]),signalType:w.LINETYPE.BREAK_END}),this.$=d[x-1];break;case 43:this.$=d[x-3].concat([{type:"option",optionText:w.parseMessage(d[x-1]),signalType:w.LINETYPE.CRITICAL_OPTION},d[x]]);break;case 45:this.$=d[x-3].concat([{type:"and",parText:w.parseMessage(d[x-1]),signalType:w.LINETYPE.PAR_AND},d[x]]);break;case 47:this.$=d[x-3].concat([{type:"else",altText:w.parseMessage(d[x-1]),signalType:w.LINETYPE.ALT_ELSE},d[x]]);break;case 48:d[x-3].draw="participant",d[x-3].type="addParticipant",d[x-3].description=w.parseMessage(d[x-1]),this.$=d[x-3];break;case 49:d[x-1].draw="participant",d[x-1].type="addParticipant",this.$=d[x-1];break;case 50:d[x-3].draw="actor",d[x-3].type="addParticipant",d[x-3].description=w.parseMessage(d[x-1]),this.$=d[x-3];break;case 51:d[x-1].draw="actor",d[x-1].type="addParticipant",this.$=d[x-1];break;case 52:d[x-1].type="destroyParticipant",this.$=d[x-1];break;case 53:d[x-1].draw="participant",d[x-1].type="addParticipant",this.$=d[x-1];break;case 54:this.$=[d[x-1],{type:"addNote",placement:d[x-2],actor:d[x-1].actor,text:d[x]}];break;case 55:d[x-2]=[].concat(d[x-1],d[x-1]).slice(0,2),d[x-2][0]=d[x-2][0].actor,d[x-2][1]=d[x-2][1].actor,this.$=[d[x-1],{type:"addNote",placement:w.PLACEMENT.OVER,actor:d[x-2].slice(0,2),text:d[x]}];break;case 56:this.$=[d[x-1],{type:"addLinks",actor:d[x-1].actor,text:d[x]}];break;case 57:this.$=[d[x-1],{type:"addALink",actor:d[x-1].actor,text:d[x]}];break;case 58:this.$=[d[x-1],{type:"addProperties",actor:d[x-1].actor,text:d[x]}];break;case 59:this.$=[d[x-1],{type:"addDetails",actor:d[x-1].actor,text:d[x]}];break;case 62:this.$=[d[x-2],d[x]];break;case 63:this.$=d[x];break;case 64:this.$=w.PLACEMENT.LEFTOF;break;case 65:this.$=w.PLACEMENT.RIGHTOF;break;case 66:this.$=[d[x-4],d[x-1],{type:"addMessage",from:d[x-4].actor,to:d[x-1].actor,signalType:d[x-3],msg:d[x],activate:!0},{type:"activeStart",signalType:w.LINETYPE.ACTIVE_START,actor:d[x-1].actor}];break;case 67:this.$=[d[x-4],d[x-1],{type:"addMessage",from:d[x-4].actor,to:d[x-1].actor,signalType:d[x-3],msg:d[x]},{type:"activeEnd",signalType:w.LINETYPE.ACTIVE_END,actor:d[x-4].actor}];break;case 68:this.$=[d[x-3],d[x-1],{type:"addMessage",from:d[x-3].actor,to:d[x-1].actor,signalType:d[x-2],msg:d[x]}];break;case 69:this.$={type:"addParticipant",actor:d[x-1],config:d[x]};break;case 70:this.$=d[x-1].trim();break;case 71:this.$={type:"addParticipant",actor:d[x]};break;case 72:this.$=w.LINETYPE.SOLID_OPEN;break;case 73:this.$=w.LINETYPE.DOTTED_OPEN;break;case 74:this.$=w.LINETYPE.SOLID;break;case 75:this.$=w.LINETYPE.BIDIRECTIONAL_SOLID;break;case 76:this.$=w.LINETYPE.DOTTED;break;case 77:this.$=w.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 78:this.$=w.LINETYPE.SOLID_CROSS;break;case 79:this.$=w.LINETYPE.DOTTED_CROSS;break;case 80:this.$=w.LINETYPE.SOLID_POINT;break;case 81:this.$=w.LINETYPE.DOTTED_POINT;break;case 82:this.$=w.parseMessage(d[x].trim().substring(1));break}},"anonymous"),table:[{3:1,4:t,5:n,6:s},{1:[3]},{3:5,4:t,5:n,6:s},{3:6,4:t,5:n,6:s},e([1,4,5,13,14,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,55,60,61,62,63,71],r,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:i,5:c,8:8,9:10,12:12,13:h,14:o,17:15,18:a,21:p,22:40,23:g,24:19,25:20,26:21,27:22,28:23,29:f,30:y,31:m,33:k,35:L,36:S,37:W,38:R,39:D,41:K,43:Z,44:nt,46:pt,50:Q,52:$,53:X,55:F,60:ot,61:et,62:ct,63:ut,71:Y},e(b,[2,5]),{9:47,12:12,13:h,14:o,17:15,18:a,21:p,22:40,23:g,24:19,25:20,26:21,27:22,28:23,29:f,30:y,31:m,33:k,35:L,36:S,37:W,38:R,39:D,41:K,43:Z,44:nt,46:pt,50:Q,52:$,53:X,55:F,60:ot,61:et,62:ct,63:ut,71:Y},e(b,[2,7]),e(b,[2,8]),e(b,[2,14]),{12:48,50:Q,52:$,53:X},{15:[1,49]},{5:[1,50]},{5:[1,53],19:[1,51],20:[1,52]},{22:54,71:Y},{22:55,71:Y},{5:[1,56]},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},e(b,[2,29]),e(b,[2,30]),{32:[1,61]},{34:[1,62]},e(b,[2,33]),{15:[1,63]},{15:[1,64]},{15:[1,65]},{15:[1,66]},{15:[1,67]},{15:[1,68]},{15:[1,69]},{15:[1,70]},{22:71,54:72,71:[1,73]},{22:74,71:Y},{22:75,71:Y},{68:76,76:[1,77],77:[1,78],78:[1,79],79:[1,80],80:[1,81],81:[1,82],82:[1,83],83:[1,84],84:[1,85],85:[1,86]},{56:87,58:[1,88],66:[1,89],67:[1,90]},{22:91,71:Y},{22:92,71:Y},{22:93,71:Y},{22:94,71:Y},e([5,51,65,76,77,78,79,80,81,82,83,84,85,86],I),e(b,[2,6]),e(b,[2,15]),e(st,[2,9],{10:95}),e(b,[2,17]),{5:[1,97],19:[1,96]},{5:[1,98]},e(b,[2,21]),{5:[1,99]},{5:[1,100]},e(b,[2,24]),e(b,[2,25]),e(b,[2,26]),e(b,[2,27]),e(b,[2,28]),e(b,[2,31]),e(b,[2,32]),e(lt,r,{7:101}),e(lt,r,{7:102}),e(lt,r,{7:103}),e(C,r,{40:104,7:105}),e(Jt,r,{42:106,7:107}),e(Jt,r,{7:107,42:108}),e(ue,r,{45:109,7:110}),e(lt,r,{7:111}),{5:[1,113],51:[1,112]},{5:[1,114]},e([5,51],I,{72:115,73:[1,116]}),{5:[1,118],51:[1,117]},{5:[1,119]},{22:122,69:[1,120],70:[1,121],71:Y},e(yt,[2,72]),e(yt,[2,73]),e(yt,[2,74]),e(yt,[2,75]),e(yt,[2,76]),e(yt,[2,77]),e(yt,[2,78]),e(yt,[2,79]),e(yt,[2,80]),e(yt,[2,81]),{22:123,71:Y},{22:125,59:124,71:Y},{71:[2,64]},{71:[2,65]},{57:126,86:Et},{57:128,86:Et},{57:129,86:Et},{57:130,86:Et},{4:[1,133],5:[1,135],11:132,12:134,16:[1,131],50:Q,52:$,53:X},{5:[1,136]},e(b,[2,19]),e(b,[2,20]),e(b,[2,22]),e(b,[2,23]),{4:i,5:c,8:8,9:10,12:12,13:h,14:o,16:[1,137],17:15,18:a,21:p,22:40,23:g,24:19,25:20,26:21,27:22,28:23,29:f,30:y,31:m,33:k,35:L,36:S,37:W,38:R,39:D,41:K,43:Z,44:nt,46:pt,50:Q,52:$,53:X,55:F,60:ot,61:et,62:ct,63:ut,71:Y},{4:i,5:c,8:8,9:10,12:12,13:h,14:o,16:[1,138],17:15,18:a,21:p,22:40,23:g,24:19,25:20,26:21,27:22,28:23,29:f,30:y,31:m,33:k,35:L,36:S,37:W,38:R,39:D,41:K,43:Z,44:nt,46:pt,50:Q,52:$,53:X,55:F,60:ot,61:et,62:ct,63:ut,71:Y},{4:i,5:c,8:8,9:10,12:12,13:h,14:o,16:[1,139],17:15,18:a,21:p,22:40,23:g,24:19,25:20,26:21,27:22,28:23,29:f,30:y,31:m,33:k,35:L,36:S,37:W,38:R,39:D,41:K,43:Z,44:nt,46:pt,50:Q,52:$,53:X,55:F,60:ot,61:et,62:ct,63:ut,71:Y},{16:[1,140]},{4:i,5:c,8:8,9:10,12:12,13:h,14:o,16:[2,46],17:15,18:a,21:p,22:40,23:g,24:19,25:20,26:21,27:22,28:23,29:f,30:y,31:m,33:k,35:L,36:S,37:W,38:R,39:D,41:K,43:Z,44:nt,46:pt,49:[1,141],50:Q,52:$,53:X,55:F,60:ot,61:et,62:ct,63:ut,71:Y},{16:[1,142]},{4:i,5:c,8:8,9:10,12:12,13:h,14:o,16:[2,44],17:15,18:a,21:p,22:40,23:g,24:19,25:20,26:21,27:22,28:23,29:f,30:y,31:m,33:k,35:L,36:S,37:W,38:R,39:D,41:K,43:Z,44:nt,46:pt,48:[1,143],50:Q,52:$,53:X,55:F,60:ot,61:et,62:ct,63:ut,71:Y},{16:[1,144]},{16:[1,145]},{4:i,5:c,8:8,9:10,12:12,13:h,14:o,16:[2,42],17:15,18:a,21:p,22:40,23:g,24:19,25:20,26:21,27:22,28:23,29:f,30:y,31:m,33:k,35:L,36:S,37:W,38:R,39:D,41:K,43:Z,44:nt,46:pt,47:[1,146],50:Q,52:$,53:X,55:F,60:ot,61:et,62:ct,63:ut,71:Y},{4:i,5:c,8:8,9:10,12:12,13:h,14:o,16:[1,147],17:15,18:a,21:p,22:40,23:g,24:19,25:20,26:21,27:22,28:23,29:f,30:y,31:m,33:k,35:L,36:S,37:W,38:R,39:D,41:K,43:Z,44:nt,46:pt,50:Q,52:$,53:X,55:F,60:ot,61:et,62:ct,63:ut,71:Y},{15:[1,148]},e(b,[2,49]),e(b,[2,53]),{5:[2,69]},{74:[1,149]},{15:[1,150]},e(b,[2,51]),e(b,[2,52]),{22:151,71:Y},{22:152,71:Y},{57:153,86:Et},{57:154,86:Et},{57:155,86:Et},{65:[1,156],86:[2,63]},{5:[2,56]},{5:[2,82]},{5:[2,57]},{5:[2,58]},{5:[2,59]},e(b,[2,16]),e(st,[2,10]),{12:157,50:Q,52:$,53:X},e(st,[2,12]),e(st,[2,13]),e(b,[2,18]),e(b,[2,34]),e(b,[2,35]),e(b,[2,36]),e(b,[2,37]),{15:[1,158]},e(b,[2,38]),{15:[1,159]},e(b,[2,39]),e(b,[2,40]),{15:[1,160]},e(b,[2,41]),{5:[1,161]},{75:[1,162]},{5:[1,163]},{57:164,86:Et},{57:165,86:Et},{5:[2,68]},{5:[2,54]},{5:[2,55]},{22:166,71:Y},e(st,[2,11]),e(C,r,{7:105,40:167}),e(Jt,r,{7:107,42:168}),e(ue,r,{7:110,45:169}),e(b,[2,48]),{5:[2,70]},e(b,[2,50]),{5:[2,66]},{5:[2,67]},{86:[2,62]},{16:[2,47]},{16:[2,45]},{16:[2,43]}],defaultActions:{5:[2,1],6:[2,2],89:[2,64],90:[2,65],115:[2,69],126:[2,56],127:[2,82],128:[2,57],129:[2,58],130:[2,59],153:[2,68],154:[2,54],155:[2,55],162:[2,70],164:[2,66],165:[2,67],166:[2,62],167:[2,47],168:[2,45],169:[2,43]},parseError:(0,u.eW)(function(_,A){if(A.recoverable)this.trace(_);else{var v=new Error(_);throw v.hash=A,v}},"parseError"),parse:(0,u.eW)(function(_){var A=this,v=[0],w=[],V=[null],d=[],Dt=this.table,x="",zt=0,ge=0,xe=0,rs=2,fe=1,is=d.slice.call(arguments,1),G=Object.create(this.lexer),At={yy:{}};for(var Qt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Qt)&&(At.yy[Qt]=this.yy[Qt]);G.setInput(_,At.yy),At.yy.lexer=G,At.yy.parser=this,typeof G.yylloc=="undefined"&&(G.yylloc={});var $t=G.yylloc;d.push($t);var ns=G.options&&G.options.ranges;typeof At.yy.parseError=="function"?this.parseError=At.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function os(ht){v.length=v.length-2*ht,V.length=V.length-ht,d.length=d.length-ht}(0,u.eW)(os,"popStack");function ye(){var ht;return ht=w.pop()||G.lex()||fe,typeof ht!="number"&&(ht instanceof Array&&(w=ht,ht=w.pop()),ht=A.symbols_[ht]||ht),ht}(0,u.eW)(ye,"lex");for(var j,jt,Lt,gt,us,te,Mt={},Ht,bt,Te,Ut;;){if(Lt=v[v.length-1],this.defaultActions[Lt]?gt=this.defaultActions[Lt]:((j===null||typeof j=="undefined")&&(j=ye()),gt=Dt[Lt]&&Dt[Lt][j]),typeof gt=="undefined"||!gt.length||!gt[0]){var ee="";Ut=[];for(Ht in Dt[Lt])this.terminals_[Ht]&&Ht>rs&&Ut.push("'"+this.terminals_[Ht]+"'");G.showPosition?ee="Parse error on line "+(zt+1)+`:
2
+ `+G.showPosition()+`
3
+ Expecting `+Ut.join(", ")+", got '"+(this.terminals_[j]||j)+"'":ee="Parse error on line "+(zt+1)+": Unexpected "+(j==fe?"end of input":"'"+(this.terminals_[j]||j)+"'"),this.parseError(ee,{text:G.match,token:this.terminals_[j]||j,line:G.yylineno,loc:$t,expected:Ut})}if(gt[0]instanceof Array&&gt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Lt+", token: "+j);switch(gt[0]){case 1:v.push(j),V.push(G.yytext),d.push(G.yylloc),v.push(gt[1]),j=null,jt?(j=jt,jt=null):(ge=G.yyleng,x=G.yytext,zt=G.yylineno,$t=G.yylloc,xe>0&&xe--);break;case 2:if(bt=this.productions_[gt[1]][1],Mt.$=V[V.length-bt],Mt._$={first_line:d[d.length-(bt||1)].first_line,last_line:d[d.length-1].last_line,first_column:d[d.length-(bt||1)].first_column,last_column:d[d.length-1].last_column},ns&&(Mt._$.range=[d[d.length-(bt||1)].range[0],d[d.length-1].range[1]]),te=this.performAction.apply(Mt,[x,ge,zt,At.yy,gt[1],V,d].concat(is)),typeof te!="undefined")return te;bt&&(v=v.slice(0,-1*bt*2),V=V.slice(0,-1*bt),d=d.slice(0,-1*bt)),v.push(this.productions_[gt[1]][0]),V.push(Mt.$),d.push(Mt._$),Te=Dt[v[v.length-2]][v[v.length-1]],v.push(Te);break;case 3:return!0}}return!0},"parse")},as=function(){var _t={EOF:1,parseError:(0,u.eW)(function(A,v){if(this.yy.parser)this.yy.parser.parseError(A,v);else throw new Error(A)},"parseError"),setInput:(0,u.eW)(function(_,A){return this.yy=A||this.yy||{},this._input=_,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:(0,u.eW)(function(){var _=this._input[0];this.yytext+=_,this.yyleng++,this.offset++,this.match+=_,this.matched+=_;var A=_.match(/(?:\r\n?|\n).*/g);return A?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),_},"input"),unput:(0,u.eW)(function(_){var A=_.length,v=_.split(/(?:\r\n?|\n)/g);this._input=_+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-A),this.offset-=A;var w=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),v.length-1&&(this.yylineno-=v.length-1);var V=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:v?(v.length===w.length?this.yylloc.first_column:0)+w[w.length-v.length].length-v[0].length:this.yylloc.first_column-A},this.options.ranges&&(this.yylloc.range=[V[0],V[0]+this.yyleng-A]),this.yyleng=this.yytext.length,this},"unput"),more:(0,u.eW)(function(){return this._more=!0,this},"more"),reject:(0,u.eW)(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:(0,u.eW)(function(_){this.unput(this.match.slice(_))},"less"),pastInput:(0,u.eW)(function(){var _=this.matched.substr(0,this.matched.length-this.match.length);return(_.length>20?"...":"")+_.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,u.eW)(function(){var _=this.match;return _.length<20&&(_+=this._input.substr(0,20-_.length)),(_.substr(0,20)+(_.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,u.eW)(function(){var _=this.pastInput(),A=new Array(_.length+1).join("-");return _+this.upcomingInput()+`
5
+ `+A+"^"},"showPosition"),test_match:(0,u.eW)(function(_,A){var v,w,V;if(this.options.backtrack_lexer&&(V={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&&(V.yylloc.range=this.yylloc.range.slice(0))),w=_[0].match(/(?:\r\n?|\n).*/g),w&&(this.yylineno+=w.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:w?w[w.length-1].length-w[w.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+_[0].length},this.yytext+=_[0],this.match+=_[0],this.matches=_,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(_[0].length),this.matched+=_[0],v=this.performAction.call(this,this.yy,this,A,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),v)return v;if(this._backtrack){for(var d in V)this[d]=V[d];return!1}return!1},"test_match"),next:(0,u.eW)(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var _,A,v,w;this._more||(this.yytext="",this.match="");for(var V=this._currentRules(),d=0;d<V.length;d++)if(v=this._input.match(this.rules[V[d]]),v&&(!A||v[0].length>A[0].length)){if(A=v,w=d,this.options.backtrack_lexer){if(_=this.test_match(v,V[d]),_!==!1)return _;if(this._backtrack){A=!1;continue}else return!1}else if(!this.options.flex)break}return A?(_=this.test_match(A,V[w]),_!==!1?_:!1):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:(0,u.eW)(function(){var A=this.next();return A||this.lex()},"lex"),begin:(0,u.eW)(function(A){this.conditionStack.push(A)},"begin"),popState:(0,u.eW)(function(){var A=this.conditionStack.length-1;return A>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,u.eW)(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:(0,u.eW)(function(A){return A=this.conditionStack.length-1-Math.abs(A||0),A>=0?this.conditionStack[A]:"INITIAL"},"topState"),pushState:(0,u.eW)(function(A){this.begin(A)},"pushState"),stateStackSize:(0,u.eW)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,u.eW)(function(A,v,w,V){var d=V;switch(w){case 0:return 5;case 1:break;case 2:break;case 3:break;case 4:break;case 5:break;case 6:return 19;case 7:return this.begin("CONFIG"),73;break;case 8:return 74;case 9:return this.popState(),this.popState(),75;break;case 10:return v.yytext=v.yytext.trim(),71;break;case 11:return v.yytext=v.yytext.trim(),this.begin("ALIAS"),71;break;case 12:return this.begin("LINE"),14;break;case 13:return this.begin("ID"),50;break;case 14:return this.begin("ID"),52;break;case 15:return 13;case 16:return this.begin("ID"),53;break;case 17:return v.yytext=v.yytext.trim(),this.begin("ALIAS"),71;break;case 18:return this.popState(),this.popState(),this.begin("LINE"),51;break;case 19:return this.popState(),this.popState(),5;break;case 20:return this.begin("LINE"),36;break;case 21:return this.begin("LINE"),37;break;case 22:return this.begin("LINE"),38;break;case 23:return this.begin("LINE"),39;break;case 24:return this.begin("LINE"),49;break;case 25:return this.begin("LINE"),41;break;case 26:return this.begin("LINE"),43;break;case 27:return this.begin("LINE"),48;break;case 28:return this.begin("LINE"),44;break;case 29:return this.begin("LINE"),47;break;case 30:return this.begin("LINE"),46;break;case 31:return this.popState(),15;break;case 32:return 16;case 33:return 66;case 34:return 67;case 35:return 60;case 36:return 61;case 37:return 62;case 38:return 63;case 39:return 58;case 40:return 55;case 41:return this.begin("ID"),21;break;case 42:return this.begin("ID"),23;break;case 43:return 29;case 44:return 30;case 45:return this.begin("acc_title"),31;break;case 46:return this.popState(),"acc_title_value";break;case 47:return this.begin("acc_descr"),33;break;case 48:return this.popState(),"acc_descr_value";break;case 49:this.begin("acc_descr_multiline");break;case 50:this.popState();break;case 51:return"acc_descr_multiline_value";case 52:return 6;case 53:return 18;case 54:return 20;case 55:return 65;case 56:return 5;case 57:return v.yytext=v.yytext.trim(),71;break;case 58:return 78;case 59:return 79;case 60:return 80;case 61:return 81;case 62:return 76;case 63:return 77;case 64:return 82;case 65:return 83;case 66:return 84;case 67:return 85;case 68:return 86;case 69:return 86;case 70:return 69;case 71:return 70;case 72:return 5;case 73:return"INVALID"}},"anonymous"),rules:[/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[0-9]+(?=[ \n]+))/i,/^(?:@\{)/i,/^(?:[^\}]+)/i,/^(?:\})/i,/^(?:[^\<->\->:\n,;@\s]+(?=@\{))/i,/^(?:[^\<->\->:\n,;@]+?([\-]*[^\<->\->:\n,;@]+?)*?(?=((?!\n)\s)+as(?!\n)\s|[#\n;]|$))/i,/^(?:box\b)/i,/^(?:participant\b)/i,/^(?:actor\b)/i,/^(?:create\b)/i,/^(?:destroy\b)/i,/^(?:[^<\->\->:\n,;]+?([\-]*[^<\->\->:\n,;]+?)*?(?=((?!\n)\s)+as(?!\n)\s|[#\n;]|$))/i,/^(?:as\b)/i,/^(?:(?:))/i,/^(?:loop\b)/i,/^(?:rect\b)/i,/^(?:opt\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:par\b)/i,/^(?:par_over\b)/i,/^(?:and\b)/i,/^(?:critical\b)/i,/^(?:option\b)/i,/^(?:break\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:links\b)/i,/^(?:link\b)/i,/^(?:properties\b)/i,/^(?:details\b)/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:activate\b)/i,/^(?:deactivate\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:title:\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\b)/i,/^(?:off\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^+<\->\->:\n,;]+((?!(-x|--x|-\)|--\)))[\-]*[^\+<\->\->:\n,;]+)*)/i,/^(?:->>)/i,/^(?:<<->>)/i,/^(?:-->>)/i,/^(?:<<-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?:-[\)])/i,/^(?:--[\)])/i,/^(?::(?:(?:no)?wrap)?[^#\n;]*)/i,/^(?::)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[50,51],inclusive:!1},acc_descr:{rules:[48],inclusive:!1},acc_title:{rules:[46],inclusive:!1},ID:{rules:[2,3,7,10,11,17],inclusive:!1},ALIAS:{rules:[2,3,18,19],inclusive:!1},LINE:{rules:[2,3,31],inclusive:!1},CONFIG:{rules:[8,9],inclusive:!1},CONFIG_DATA:{rules:[],inclusive:!1},INITIAL:{rules:[0,1,3,4,5,6,12,13,14,15,16,20,21,22,23,24,25,26,27,28,29,30,32,33,34,35,36,37,38,39,40,41,42,43,44,45,47,49,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73],inclusive:!0}}};return _t}();Zt.lexer=as;function qt(){this.yy={}}return(0,u.eW)(qt,"Parser"),qt.prototype=Zt,Zt.Parser=qt,new qt}();Wt.parser=Wt;var Kt=Wt,it={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},P={FILLED:0,OPEN:1},q={LEFTOF:0,RIGHTOF:1,OVER:2},U={ACTOR:"actor",BOUNDARY:"boundary",COLLECTIONS:"collections",CONTROL:"control",DATABASE:"database",ENTITY:"entity",PARTICIPANT:"participant",QUEUE:"queue"},dt=(St=class{constructor(){this.state=new rt.A(()=>({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=T.GN,this.setAccDescription=T.U$,this.setDiagramTitle=T.g2,this.getAccTitle=T.eu,this.getAccDescription=T.Mx,this.getDiagramTitle=T.Kr,this.apply=this.apply.bind(this),this.parseBoxData=this.parseBoxData.bind(this),this.parseMessage=this.parseMessage.bind(this),this.clear(),this.setWrap((0,T.nV)().wrap),this.LINETYPE=it,this.ARROWTYPE=P,this.PLACEMENT=q}addBox(t){var n;this.state.records.boxes.push({name:t.text,wrap:(n=t.wrap)!=null?n:this.autoWrap(),fill:t.color,actorKeys:[]}),this.state.records.currentBox=this.state.records.boxes.slice(-1)[0]}addActor(t,n,s,r,i){var a,p;let c=this.state.records.currentBox,h;if(i!==void 0){let g;i.includes(`
7
+ `)?g=i+`
8
+ `:g=`{
9
+ `+i+`
10
+ }`,h=(0,J.z)(g,{schema:J.A})}r=(a=h==null?void 0:h.type)!=null?a:r;const o=this.state.records.actors.get(t);if(o){if(this.state.records.currentBox&&o.box&&this.state.records.currentBox!==o.box)throw new Error(`A same participant should only be defined in one Box: ${o.name} can't be in '${o.box.name}' and in '${this.state.records.currentBox.name}' at the same time.`);if(c=o.box?o.box:this.state.records.currentBox,o.box=c,o&&n===o.name&&s==null)return}if((s==null?void 0:s.text)==null&&(s={text:n,type:r}),(r==null||s.text==null)&&(s={text:n,type:r}),this.state.records.actors.set(t,{box:c,name:n,description:s.text,wrap:(p=s.wrap)!=null?p:this.autoWrap(),prevActor:this.state.records.prevActor,links:{},properties:{},actorCnt:null,rectData:null,type:r!=null?r:"participant"}),this.state.records.prevActor){const g=this.state.records.actors.get(this.state.records.prevActor);g&&(g.nextActor=t)}this.state.records.currentBox&&this.state.records.currentBox.actorKeys.push(t),this.state.records.prevActor=t}activationCount(t){let n,s=0;if(!t)return 0;for(n=0;n<this.state.records.messages.length;n++)this.state.records.messages[n].type===this.LINETYPE.ACTIVE_START&&this.state.records.messages[n].from===t&&s++,this.state.records.messages[n].type===this.LINETYPE.ACTIVE_END&&this.state.records.messages[n].from===t&&s--;return s}addMessage(t,n,s,r){var i;this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:t,to:n,message:s.text,wrap:(i=s.wrap)!=null?i:this.autoWrap(),answer:r})}addSignal(t,n,s,r,i=!1){var c,h;if(r===this.LINETYPE.ACTIVE_END&&this.activationCount(t!=null?t:"")<1){const a=new Error("Trying to inactivate an inactive participant ("+t+")");throw a.hash={text:"->>-",token:"->>-",line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["'ACTIVE_PARTICIPANT'"]},a}return this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:t,to:n,message:(c=s==null?void 0:s.text)!=null?c:"",wrap:(h=s==null?void 0:s.wrap)!=null?h:this.autoWrap(),type:r,activate:i}),!0}hasAtLeastOneBox(){return this.state.records.boxes.length>0}hasAtLeastOneBoxWithTitle(){return this.state.records.boxes.some(t=>t.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(t){return this.state.records.actors.get(t)}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(t){this.state.records.wrapEnabled=t}extractWrap(t){if(t===void 0)return{};t=t.trim();const n=/^:?wrap:/.exec(t)!==null?!0:/^:?nowrap:/.exec(t)!==null?!1:void 0;return{cleanedText:(n===void 0?t:t.replace(/^:?(?:no)?wrap:/,"")).trim(),wrap:n}}autoWrap(){var t,n;return this.state.records.wrapEnabled!==void 0?this.state.records.wrapEnabled:(n=(t=(0,T.nV)().sequence)==null?void 0:t.wrap)!=null?n:!1}clear(){this.state.reset(),(0,T.ZH)()}parseMessage(t){const n=t.trim(),{wrap:s,cleanedText:r}=this.extractWrap(n),i={text:r,wrap:s};return u.cM.debug(`parseMessage: ${JSON.stringify(i)}`),i}parseBoxData(t){const n=/^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/.exec(t);let s=n!=null&&n[1]?n[1].trim():"transparent",r=n!=null&&n[2]?n[2].trim():void 0;if(window!=null&&window.CSS)window.CSS.supports("color",s)||(s="transparent",r=t.trim());else{const h=new Option().style;h.color=s,h.color!==s&&(s="transparent",r=t.trim())}const{wrap:i,cleanedText:c}=this.extractWrap(r);return{text:c?(0,T.oO)(c,(0,T.nV)()):void 0,color:s,wrap:i}}addNote(t,n,s){var c,h;const r={actor:t,placement:n,message:s.text,wrap:(c=s.wrap)!=null?c:this.autoWrap()},i=[].concat(t,t);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:s.text,wrap:(h=s.wrap)!=null?h:this.autoWrap(),type:this.LINETYPE.NOTE,placement:n})}addLinks(t,n){const s=this.getActor(t);try{let r=(0,T.oO)(n.text,(0,T.nV)());r=r.replace(/&equals;/g,"="),r=r.replace(/&amp;/g,"&");const i=JSON.parse(r);this.insertLinks(s,i)}catch(r){u.cM.error("error while parsing actor link text",r)}}addALink(t,n){const s=this.getActor(t);try{const r={};let i=(0,T.oO)(n.text,(0,T.nV)());const c=i.indexOf("@");i=i.replace(/&equals;/g,"="),i=i.replace(/&amp;/g,"&");const h=i.slice(0,c-1).trim(),o=i.slice(c+1).trim();r[h]=o,this.insertLinks(s,r)}catch(r){u.cM.error("error while parsing actor link text",r)}}insertLinks(t,n){if(t.links==null)t.links=n;else for(const s in n)t.links[s]=n[s]}addProperties(t,n){const s=this.getActor(t);try{const r=(0,T.oO)(n.text,(0,T.nV)()),i=JSON.parse(r);this.insertProperties(s,i)}catch(r){u.cM.error("error while parsing actor properties text",r)}}insertProperties(t,n){if(t.properties==null)t.properties=n;else for(const s in n)t.properties[s]=n[s]}boxEnd(){this.state.records.currentBox=void 0}addDetails(t,n){const s=this.getActor(t),r=document.getElementById(n.text);try{const i=r.innerHTML,c=JSON.parse(i);c.properties&&this.insertProperties(s,c.properties),c.links&&this.insertLinks(s,c.links)}catch(i){u.cM.error("error while parsing actor details text",i)}}getActorProperty(t,n){if((t==null?void 0:t.properties)!==void 0)return t.properties[n]}apply(t){if(Array.isArray(t))t.forEach(n=>{this.apply(n)});else switch(t.type){case"sequenceIndex":this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:void 0,to:void 0,message:{start:t.sequenceIndex,step:t.sequenceIndexStep,visible:t.sequenceVisible},wrap:!1,type:t.signalType});break;case"addParticipant":this.addActor(t.actor,t.actor,t.description,t.draw,t.config);break;case"createParticipant":if(this.state.records.actors.has(t.actor))throw new 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=t.actor,this.addActor(t.actor,t.actor,t.description,t.draw,t.config),this.state.records.createdActors.set(t.actor,this.state.records.messages.length);break;case"destroyParticipant":this.state.records.lastDestroyed=t.actor,this.state.records.destroyedActors.set(t.actor,this.state.records.messages.length);break;case"activeStart":this.addSignal(t.actor,void 0,void 0,t.signalType);break;case"activeEnd":this.addSignal(t.actor,void 0,void 0,t.signalType);break;case"addNote":this.addNote(t.actor,t.placement,t.text);break;case"addLinks":this.addLinks(t.actor,t.text);break;case"addALink":this.addALink(t.actor,t.text);break;case"addProperties":this.addProperties(t.actor,t.text);break;case"addDetails":this.addDetails(t.actor,t.text);break;case"addMessage":if(this.state.records.lastCreated){if(t.to!==this.state.records.lastCreated)throw new 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(t.to!==this.state.records.lastDestroyed&&t.from!==this.state.records.lastDestroyed)throw new 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(t.from,t.to,t.msg,t.signalType,t.activate);break;case"boxStart":this.addBox(t.boxData);break;case"boxEnd":this.boxEnd();break;case"loopStart":this.addSignal(void 0,void 0,t.loopText,t.signalType);break;case"loopEnd":this.addSignal(void 0,void 0,void 0,t.signalType);break;case"rectStart":this.addSignal(void 0,void 0,t.color,t.signalType);break;case"rectEnd":this.addSignal(void 0,void 0,void 0,t.signalType);break;case"optStart":this.addSignal(void 0,void 0,t.optText,t.signalType);break;case"optEnd":this.addSignal(void 0,void 0,void 0,t.signalType);break;case"altStart":this.addSignal(void 0,void 0,t.altText,t.signalType);break;case"else":this.addSignal(void 0,void 0,t.altText,t.signalType);break;case"altEnd":this.addSignal(void 0,void 0,void 0,t.signalType);break;case"setAccTitle":(0,T.GN)(t.text);break;case"parStart":this.addSignal(void 0,void 0,t.parText,t.signalType);break;case"and":this.addSignal(void 0,void 0,t.parText,t.signalType);break;case"parEnd":this.addSignal(void 0,void 0,void 0,t.signalType);break;case"criticalStart":this.addSignal(void 0,void 0,t.criticalText,t.signalType);break;case"option":this.addSignal(void 0,void 0,t.optionText,t.signalType);break;case"criticalEnd":this.addSignal(void 0,void 0,void 0,t.signalType);break;case"breakStart":this.addSignal(void 0,void 0,t.breakText,t.signalType);break;case"breakEnd":this.addSignal(void 0,void 0,void 0,t.signalType);break}}getConfig(){return(0,T.nV)().sequence}},(0,u.eW)(St,"SequenceDB"),St),Rt=(0,u.eW)(e=>`.actor {
11
+ stroke: ${e.actorBorder};
12
+ fill: ${e.actorBkg};
13
+ }
14
+
15
+ text.actor > tspan {
16
+ fill: ${e.actorTextColor};
17
+ stroke: none;
18
+ }
19
+
20
+ .actor-line {
21
+ stroke: ${e.actorLineColor};
22
+ }
23
+
24
+ .innerArc {
25
+ stroke-width: 1.5;
26
+ stroke-dasharray: none;
27
+ }
28
+
29
+ .messageLine0 {
30
+ stroke-width: 1.5;
31
+ stroke-dasharray: none;
32
+ stroke: ${e.signalColor};
33
+ }
34
+
35
+ .messageLine1 {
36
+ stroke-width: 1.5;
37
+ stroke-dasharray: 2, 2;
38
+ stroke: ${e.signalColor};
39
+ }
40
+
41
+ #arrowhead path {
42
+ fill: ${e.signalColor};
43
+ stroke: ${e.signalColor};
44
+ }
45
+
46
+ .sequenceNumber {
47
+ fill: ${e.sequenceNumberColor};
48
+ }
49
+
50
+ #sequencenumber {
51
+ fill: ${e.signalColor};
52
+ }
53
+
54
+ #crosshead path {
55
+ fill: ${e.signalColor};
56
+ stroke: ${e.signalColor};
57
+ }
58
+
59
+ .messageText {
60
+ fill: ${e.signalTextColor};
61
+ stroke: none;
62
+ }
63
+
64
+ .labelBox {
65
+ stroke: ${e.labelBoxBorderColor};
66
+ fill: ${e.labelBoxBkgColor};
67
+ }
68
+
69
+ .labelText, .labelText > tspan {
70
+ fill: ${e.labelTextColor};
71
+ stroke: none;
72
+ }
73
+
74
+ .loopText, .loopText > tspan {
75
+ fill: ${e.loopTextColor};
76
+ stroke: none;
77
+ }
78
+
79
+ .loopLine {
80
+ stroke-width: 2px;
81
+ stroke-dasharray: 2, 2;
82
+ stroke: ${e.labelBoxBorderColor};
83
+ fill: ${e.labelBoxBorderColor};
84
+ }
85
+
86
+ .note {
87
+ //stroke: #decc93;
88
+ stroke: ${e.noteBorderColor};
89
+ fill: ${e.noteBkgColor};
90
+ }
91
+
92
+ .noteText, .noteText > tspan {
93
+ fill: ${e.noteTextColor};
94
+ stroke: none;
95
+ }
96
+
97
+ .activation0 {
98
+ fill: ${e.activationBkgColor};
99
+ stroke: ${e.activationBorderColor};
100
+ }
101
+
102
+ .activation1 {
103
+ fill: ${e.activationBkgColor};
104
+ stroke: ${e.activationBorderColor};
105
+ }
106
+
107
+ .activation2 {
108
+ fill: ${e.activationBkgColor};
109
+ stroke: ${e.activationBorderColor};
110
+ }
111
+
112
+ .actorPopupMenu {
113
+ position: absolute;
114
+ }
115
+
116
+ .actorPopupMenuPanel {
117
+ position: absolute;
118
+ fill: ${e.actorBkg};
119
+ box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
120
+ filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));
121
+ }
122
+ .actor-man line {
123
+ stroke: ${e.actorBorder};
124
+ fill: ${e.actorBkg};
125
+ }
126
+ .actor-man circle, line {
127
+ stroke: ${e.actorBorder};
128
+ fill: ${e.actorBkg};
129
+ stroke-width: 2px;
130
+ }
131
+
132
+ `,"getStyles"),ke=Rt,vt=18*2,mt="actor-top",wt="actor-bottom",Bt="actor-box",kt="actor-man",Ot=(0,u.eW)(function(e,t){return(0,O.Mu)(e,t)},"drawRect"),_e=(0,u.eW)(function(e,t,n,s,r){if(t.links===void 0||t.links===null||Object.keys(t.links).length===0)return{height:0,width:0};const i=t.links,c=t.actorCnt,h=t.rectData;var o="none";r&&(o="block !important");const a=e.append("g");a.attr("id","actor"+c+"_popup"),a.attr("class","actorPopupMenu"),a.attr("display",o);var p="";h.class!==void 0&&(p=" "+h.class);let g=h.width>n?h.width:n;const f=a.append("rect");if(f.attr("class","actorPopupMenuPanel"+p),f.attr("x",h.x),f.attr("y",h.height),f.attr("fill",h.fill),f.attr("stroke",h.stroke),f.attr("width",g),f.attr("height",h.height),f.attr("rx",h.rx),f.attr("ry",h.ry),i!=null){var y=20;for(let L in i){var m=a.append("a"),k=(0,Ct.N)(i[L]);m.attr("xlink:href",k),m.attr("target","_blank"),Ke(s)(L,m,h.x+10,h.height+y,g,20,{class:"actor"},s),y+=30}}return f.attr("height",y),{height:h.height+y,width:g}},"drawPopup"),Yt=(0,u.eW)(function(e){return"var pu = document.getElementById('"+e+"'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }"},"popupMenuToggle"),Vt=(0,u.eW)(function(e,t,n=null){return at(this,null,function*(){let s=e.append("foreignObject");const r=yield(0,T.ur)(t.text,(0,T.iE)()),c=s.append("xhtml:div").attr("style","width: fit-content;").attr("xmlns","http://www.w3.org/1999/xhtml").html(r).node().getBoundingClientRect();if(s.attr("height",Math.round(c.height)).attr("width",Math.round(c.width)),t.class==="noteText"){const h=e.node().firstChild;h.setAttribute("height",c.height+2*t.textMargin);const o=h.getBBox();s.attr("x",Math.round(o.x+o.width/2-c.width/2)).attr("y",Math.round(o.y+o.height/2-c.height/2))}else if(n){let{startx:h,stopx:o,starty:a}=n;if(h>o){const p=h;h=o,o=p}s.attr("x",Math.round(h+Math.abs(h-o)/2-c.width/2)),t.class==="loopText"?s.attr("y",Math.round(a)):s.attr("y",Math.round(a-c.height))}return[s]})},"drawKatex"),Pt=(0,u.eW)(function(e,t){let n=0,s=0;const r=t.text.split(T.SY.lineBreakRegex),[i,c]=(0,B.VG)(t.fontSize);let h=[],o=0,a=(0,u.eW)(()=>t.y,"yfunc");if(t.valign!==void 0&&t.textMargin!==void 0&&t.textMargin>0)switch(t.valign){case"top":case"start":a=(0,u.eW)(()=>Math.round(t.y+t.textMargin),"yfunc");break;case"middle":case"center":a=(0,u.eW)(()=>Math.round(t.y+(n+s+t.textMargin)/2),"yfunc");break;case"bottom":case"end":a=(0,u.eW)(()=>Math.round(t.y+(n+s+2*t.textMargin)-t.textMargin),"yfunc");break}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";break}for(let[p,g]of r.entries()){t.textMargin!==void 0&&t.textMargin===0&&i!==void 0&&(o=p*i);const f=e.append("text");f.attr("x",t.x),f.attr("y",a()),t.anchor!==void 0&&f.attr("text-anchor",t.anchor).attr("dominant-baseline",t.dominantBaseline).attr("alignment-baseline",t.alignmentBaseline),t.fontFamily!==void 0&&f.style("font-family",t.fontFamily),c!==void 0&&f.style("font-size",c),t.fontWeight!==void 0&&f.style("font-weight",t.fontWeight),t.fill!==void 0&&f.attr("fill",t.fill),t.class!==void 0&&f.attr("class",t.class),t.dy!==void 0?f.attr("dy",t.dy):o!==0&&f.attr("dy",o);const y=g||B.$m;if(t.tspan){const m=f.append("tspan");m.attr("x",t.x),t.fill!==void 0&&m.attr("fill",t.fill),m.text(y)}else f.text(y);t.valign!==void 0&&t.textMargin!==void 0&&t.textMargin>0&&(s+=(f._groups||f)[0][0].getBBox().height,n=s),h.push(f)}return h},"drawText"),se=(0,u.eW)(function(e,t){function n(r,i,c,h,o){return r+","+i+" "+(r+c)+","+i+" "+(r+c)+","+(i+h-o)+" "+(r+c-o*1.2)+","+(i+h)+" "+r+","+(i+h)}(0,u.eW)(n,"genPoints");const s=e.append("polygon");return s.attr("points",n(t.x,t.y,t.width,t.height,7)),s.attr("class","labelBox"),t.y=t.y+t.height/2,Pt(e,t),s},"drawLabel"),N=-1,ae=(0,u.eW)((e,t,n,s)=>{e.select&&n.forEach(r=>{const i=t.get(r),c=e.select("#actor"+i.actorCnt);!s.mirrorActors&&i.stopy?c.attr("y2",i.stopy+i.height/2):s.mirrorActors&&c.attr("y2",i.stopy)})},"fixLifeLineHeights"),ve=(0,u.eW)(function(e,t,n,s){var y,m;const r=s?t.stopy:t.starty,i=t.x+t.width/2,c=r+t.height,h=e.append("g").lower();var o=h;s||(N++,Object.keys(t.links||{}).length&&!n.forceMenus&&o.attr("onclick",Yt(`actor${N}_popup`)).attr("cursor","pointer"),o.append("line").attr("id","actor"+N).attr("x1",i).attr("y1",c).attr("x2",i).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name),o=h.append("g"),t.actorCnt=N,t.links!=null&&o.attr("id","root-"+N));const a=(0,O.kc)();var p="actor";(y=t.properties)!=null&&y.class?p=t.properties.class:a.fill="#eaeaea",s?p+=` ${wt}`:p+=` ${mt}`,a.x=t.x,a.y=r,a.width=t.width,a.height=t.height,a.class=p,a.rx=3,a.ry=3,a.name=t.name;const g=Ot(o,a);if(t.rectData=a,(m=t.properties)!=null&&m.icon){const k=t.properties.icon.trim();k.charAt(0)==="@"?(0,O.rB)(o,a.x+a.width-20,a.y+10,k.substr(1)):(0,O.AE)(o,a.x+a.width-20,a.y+10,k)}Tt(n,(0,T.l0)(t.description))(t.description,o,a.x,a.y,a.width,a.height,{class:`actor ${Bt}`},n);let f=t.height;if(g.node){const k=g.node().getBBox();t.height=k.height,f=k.height}return f},"drawActorTypeParticipant"),Ie=(0,u.eW)(function(e,t,n,s){var k,L;const r=s?t.stopy:t.starty,i=t.x+t.width/2,c=r+t.height,h=e.append("g").lower();var o=h;s||(N++,Object.keys(t.links||{}).length&&!n.forceMenus&&o.attr("onclick",Yt(`actor${N}_popup`)).attr("cursor","pointer"),o.append("line").attr("id","actor"+N).attr("x1",i).attr("y1",c).attr("x2",i).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name),o=h.append("g"),t.actorCnt=N,t.links!=null&&o.attr("id","root-"+N));const a=(0,O.kc)();var p="actor";(k=t.properties)!=null&&k.class?p=t.properties.class:a.fill="#eaeaea",s?p+=` ${wt}`:p+=` ${mt}`,a.x=t.x,a.y=r,a.width=t.width,a.height=t.height,a.class=p,a.name=t.name;const g=6,f=we(me({},a),{x:a.x+-g,y:a.y+ +g,class:"actor"}),y=Ot(o,a);if(Ot(o,f),t.rectData=a,(L=t.properties)!=null&&L.icon){const S=t.properties.icon.trim();S.charAt(0)==="@"?(0,O.rB)(o,a.x+a.width-20,a.y+10,S.substr(1)):(0,O.AE)(o,a.x+a.width-20,a.y+10,S)}Tt(n,(0,T.l0)(t.description))(t.description,o,a.x-g,a.y+g,a.width,a.height,{class:`actor ${Bt}`},n);let m=t.height;if(y.node){const S=y.node().getBBox();t.height=S.height,m=S.height}return m},"drawActorTypeCollections"),Ae=(0,u.eW)(function(e,t,n,s){var S,W;const r=s?t.stopy:t.starty,i=t.x+t.width/2,c=r+t.height,h=e.append("g").lower();let o=h;s||(N++,Object.keys(t.links||{}).length&&!n.forceMenus&&o.attr("onclick",Yt(`actor${N}_popup`)).attr("cursor","pointer"),o.append("line").attr("id","actor"+N).attr("x1",i).attr("y1",c).attr("x2",i).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name),o=h.append("g"),t.actorCnt=N,t.links!=null&&o.attr("id","root-"+N));const a=(0,O.kc)();let p="actor";(S=t.properties)!=null&&S.class?p=t.properties.class:a.fill="#eaeaea",s?p+=` ${wt}`:p+=` ${mt}`,a.x=t.x,a.y=r,a.width=t.width,a.height=t.height,a.class=p,a.name=t.name;const g=a.height/2,f=g/(2.5+a.height/50),y=o.append("g"),m=o.append("g");if(y.append("path").attr("d",`M ${a.x},${a.y+g}
133
+ a ${f},${g} 0 0 0 0,${a.height}
134
+ h ${a.width-2*f}
135
+ a ${f},${g} 0 0 0 0,-${a.height}
136
+ Z
137
+ `).attr("class",p),m.append("path").attr("d",`M ${a.x},${a.y+g}
138
+ a ${f},${g} 0 0 0 0,${a.height}`).attr("stroke","#666").attr("stroke-width","1px").attr("class",p),y.attr("transform",`translate(${f}, ${-(a.height/2)})`),m.attr("transform",`translate(${a.width-f}, ${-a.height/2})`),t.rectData=a,(W=t.properties)!=null&&W.icon){const R=t.properties.icon.trim(),D=a.x+a.width-20,K=a.y+10;R.charAt(0)==="@"?(0,O.rB)(o,D,K,R.substr(1)):(0,O.AE)(o,D,K,R)}Tt(n,(0,T.l0)(t.description))(t.description,o,a.x,a.y,a.width,a.height,{class:`actor ${Bt}`},n);let k=t.height;const L=y.select("path:last-child");if(L.node()){const R=L.node().getBBox();t.height=R.height,k=R.height}return k},"drawActorTypeQueue"),Le=(0,u.eW)(function(e,t,n,s){var k,L;const r=s?t.stopy:t.starty,i=t.x+t.width/2,c=r+75,h=e.append("g").lower();s||(N++,h.append("line").attr("id","actor"+N).attr("x1",i).attr("y1",c).attr("x2",i).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name),t.actorCnt=N);const o=e.append("g");let a=kt;s?a+=` ${wt}`:a+=` ${mt}`,o.attr("class",a),o.attr("name",t.name);const p=(0,O.kc)();p.x=t.x,p.y=r,p.fill="#eaeaea",p.width=t.width,p.height=t.height,p.class="actor";const g=t.x+t.width/2,f=r+30,y=18;o.append("defs").append("marker").attr("id","filled-head-control").attr("refX",11).attr("refY",5.8).attr("markerWidth",20).attr("markerHeight",28).attr("orient","172.5").append("path").attr("d","M 14.4 5.6 L 7.2 10.4 L 8.8 5.6 L 7.2 0.8 Z"),o.append("circle").attr("cx",g).attr("cy",f).attr("r",y).attr("fill","#eaeaf7").attr("stroke","#666").attr("stroke-width",1.2),o.append("line").attr("marker-end","url(#filled-head-control)").attr("transform",`translate(${g}, ${f-y})`);const m=o.node().getBBox();return t.height=m.height+2*((L=(k=n==null?void 0:n.sequence)==null?void 0:k.labelBoxHeight)!=null?L:0),Tt(n,(0,T.l0)(t.description))(t.description,o,p.x,p.y+y+(s?5:10),p.width,p.height,{class:`actor ${kt}`},n),t.height},"drawActorTypeControl"),Pe=(0,u.eW)(function(e,t,n,s){var k,L;const r=s?t.stopy:t.starty,i=t.x+t.width/2,c=r+75,h=e.append("g").lower(),o=e.append("g");let a=kt;s?a+=` ${wt}`:a+=` ${mt}`,o.attr("class",a),o.attr("name",t.name);const p=(0,O.kc)();p.x=t.x,p.y=r,p.fill="#eaeaea",p.width=t.width,p.height=t.height,p.class="actor";const g=t.x+t.width/2,f=r+(s?10:25),y=18;o.append("circle").attr("cx",g).attr("cy",f).attr("r",y).attr("width",t.width).attr("height",t.height),o.append("line").attr("x1",g-y).attr("x2",g+y).attr("y1",f+y).attr("y2",f+y).attr("stroke","#333").attr("stroke-width",2);const m=o.node().getBBox();return t.height=m.height+((L=(k=n==null?void 0:n.sequence)==null?void 0:k.labelBoxHeight)!=null?L:0),s||(N++,h.append("line").attr("id","actor"+N).attr("x1",i).attr("y1",c).attr("x2",i).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name),t.actorCnt=N),Tt(n,(0,T.l0)(t.description))(t.description,o,p.x,p.y+(s?(f-r+y-5)/2:(f+y-r)/2),p.width,p.height,{class:`actor ${kt}`},n),s?o.attr("transform",`translate(0, ${y/2})`):o.attr("transform",`translate(0, ${y/2})`),t.height},"drawActorTypeEntity"),Ne=(0,u.eW)(function(e,t,n,s){var W,R;const r=s?t.stopy:t.starty,i=t.x+t.width/2,c=r+t.height+2*n.boxTextMargin,h=e.append("g").lower();let o=h;s||(N++,Object.keys(t.links||{}).length&&!n.forceMenus&&o.attr("onclick",Yt(`actor${N}_popup`)).attr("cursor","pointer"),o.append("line").attr("id","actor"+N).attr("x1",i).attr("y1",c).attr("x2",i).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name),o=h.append("g"),t.actorCnt=N,t.links!=null&&o.attr("id","root-"+N));const a=(0,O.kc)();let p="actor";(W=t.properties)!=null&&W.class?p=t.properties.class:a.fill="#eaeaea",s?p+=` ${wt}`:p+=` ${mt}`,a.x=t.x,a.y=r,a.width=t.width,a.height=t.height,a.class=p,a.name=t.name,a.x=t.x,a.y=r;const g=a.width/4,f=a.width/4,y=g/2,m=y/(2.5+g/50),k=o.append("g"),L=`
139
+ M ${a.x},${a.y+m}
140
+ a ${y},${m} 0 0 0 ${g},0
141
+ a ${y},${m} 0 0 0 -${g},0
142
+ l 0,${f-2*m}
143
+ a ${y},${m} 0 0 0 ${g},0
144
+ l 0,-${f-2*m}
145
+ `;k.append("path").attr("d",L).attr("fill","#eaeaea").attr("stroke","#000").attr("stroke-width",1).attr("class",p),s?k.attr("transform",`translate(${g*1.5}, ${a.height/4-2*m})`):k.attr("transform",`translate(${g*1.5}, ${(a.height+m)/4})`),t.rectData=a,Tt(n,(0,T.l0)(t.description))(t.description,o,a.x,a.y+(s?(a.height+f)/4:(a.height+m)/2),a.width,a.height,{class:`actor ${Bt}`},n);const S=k.select("path:last-child");if(S.node()){const D=S.node().getBBox();t.height=D.height+((R=n.sequence.labelBoxHeight)!=null?R:0)}return t.height},"drawActorTypeDatabase"),Se=(0,u.eW)(function(e,t,n,s){var y;const r=s?t.stopy:t.starty,i=t.x+t.width/2,c=r+80,h=30,o=e.append("g").lower();s||(N++,o.append("line").attr("id","actor"+N).attr("x1",i).attr("y1",c).attr("x2",i).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name),t.actorCnt=N);const a=e.append("g");let p=kt;s?p+=` ${wt}`:p+=` ${mt}`,a.attr("class",p),a.attr("name",t.name);const g=(0,O.kc)();g.x=t.x,g.y=r,g.fill="#eaeaea",g.width=t.width,g.height=t.height,g.class="actor",a.append("line").attr("id","actor-man-torso"+N).attr("x1",t.x+t.width/2-h*2.5).attr("y1",r+10).attr("x2",t.x+t.width/2-15).attr("y2",r+10),a.append("line").attr("id","actor-man-arms"+N).attr("x1",t.x+t.width/2-h*2.5).attr("y1",r+0).attr("x2",t.x+t.width/2-h*2.5).attr("y2",r+20),a.append("circle").attr("cx",t.x+t.width/2).attr("cy",r+10).attr("r",h);const f=a.node().getBBox();return t.height=f.height+((y=n.sequence.labelBoxHeight)!=null?y:0),Tt(n,(0,T.l0)(t.description))(t.description,a,g.x,g.y+(s?h/2-4:h/2+3),g.width,g.height,{class:`actor ${kt}`},n),s?a.attr("transform",`translate(0,${h/2+7})`):a.attr("transform",`translate(0,${h/2+7})`),t.height},"drawActorTypeBoundary"),Me=(0,u.eW)(function(e,t,n,s){const r=s?t.stopy:t.starty,i=t.x+t.width/2,c=r+80,h=e.append("g").lower();s||(N++,h.append("line").attr("id","actor"+N).attr("x1",i).attr("y1",c).attr("x2",i).attr("y2",2e3).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",t.name),t.actorCnt=N);const o=e.append("g");let a=kt;s?a+=` ${wt}`:a+=` ${mt}`,o.attr("class",a),o.attr("name",t.name);const p=(0,O.kc)();p.x=t.x,p.y=r,p.fill="#eaeaea",p.width=t.width,p.height=t.height,p.class="actor",p.rx=3,p.ry=3,o.append("line").attr("id","actor-man-torso"+N).attr("x1",i).attr("y1",r+25).attr("x2",i).attr("y2",r+45),o.append("line").attr("id","actor-man-arms"+N).attr("x1",i-vt/2).attr("y1",r+33).attr("x2",i+vt/2).attr("y2",r+33),o.append("line").attr("x1",i-vt/2).attr("y1",r+60).attr("x2",i).attr("y2",r+45),o.append("line").attr("x1",i).attr("y1",r+45).attr("x2",i+vt/2-2).attr("y2",r+60);const g=o.append("circle");g.attr("cx",t.x+t.width/2),g.attr("cy",r+10),g.attr("r",15),g.attr("width",t.width),g.attr("height",t.height);const f=o.node().getBBox();return t.height=f.height,Tt(n,(0,T.l0)(t.description))(t.description,o,p.x,p.y+35,p.width,p.height,{class:`actor ${kt}`},n),t.height},"drawActorTypeActor"),We=(0,u.eW)(function(e,t,n,s){return at(this,null,function*(){switch(t.type){case"actor":return yield Me(e,t,n,s);case"participant":return yield ve(e,t,n,s);case"boundary":return yield Se(e,t,n,s);case"control":return yield Le(e,t,n,s);case"entity":return yield Pe(e,t,n,s);case"database":return yield Ne(e,t,n,s);case"collections":return yield Ie(e,t,n,s);case"queue":return yield Ae(e,t,n,s)}})},"drawActor"),Re=(0,u.eW)(function(e,t,n){const r=e.append("g");re(r,t),t.name&&Tt(n)(t.name,r,t.x,t.y+n.boxTextMargin+(t.textMaxHeight||0)/2,t.width,0,{class:"text"},n),r.lower()},"drawBox"),Oe=(0,u.eW)(function(e){return e.append("g")},"anchorElement"),De=(0,u.eW)(function(e,t,n,s,r){const i=(0,O.kc)(),c=t.anchored;i.x=t.startx,i.y=t.starty,i.class="activation"+r%3,i.width=t.stopx-t.startx,i.height=n-t.starty,Ot(c,i)},"drawActivation"),Ce=(0,u.eW)(function(e,t,n,s){return at(this,null,function*(){const{boxMargin:r,boxTextMargin:i,labelBoxHeight:c,labelBoxWidth:h,messageFontFamily:o,messageFontSize:a,messageFontWeight:p}=s,g=e.append("g"),f=(0,u.eW)(function(k,L,S,W){return g.append("line").attr("x1",k).attr("y1",L).attr("x2",S).attr("y2",W).attr("class","loopLine")},"drawLoopLine");f(t.startx,t.starty,t.stopx,t.starty),f(t.stopx,t.starty,t.stopx,t.stopy),f(t.startx,t.stopy,t.stopx,t.stopy),f(t.startx,t.starty,t.startx,t.stopy),t.sections!==void 0&&t.sections.forEach(function(k){f(t.startx,k.y,t.stopx,k.y).style("stroke-dasharray","3, 3")});let y=(0,O.AD)();y.text=n,y.x=t.startx,y.y=t.starty,y.fontFamily=o,y.fontSize=a,y.fontWeight=p,y.anchor="middle",y.valign="middle",y.tspan=!1,y.width=h||50,y.height=c||20,y.textMargin=i,y.class="labelText",se(g,y),y=ie(),y.text=t.title,y.x=t.startx+h/2+(t.stopx-t.startx)/2,y.y=t.starty+r+i,y.anchor="middle",y.valign="middle",y.textMargin=i,y.class="loopText",y.fontFamily=o,y.fontSize=a,y.fontWeight=p,y.wrap=!0;let m=(0,T.l0)(y.text)?yield Vt(g,y,t):Pt(g,y);if(t.sectionTitles!==void 0){for(const[k,L]of Object.entries(t.sectionTitles))if(L.message){y.text=L.message,y.x=t.startx+(t.stopx-t.startx)/2,y.y=t.sections[k].y+r+i,y.class="loopText",y.anchor="middle",y.valign="middle",y.tspan=!1,y.fontFamily=o,y.fontSize=a,y.fontWeight=p,y.wrap=t.wrap,(0,T.l0)(y.text)?(t.starty=t.sections[k].y,yield Vt(g,y,t)):Pt(g,y);let S=Math.round(m.map(W=>(W._groups||W)[0][0].getBBox().height).reduce((W,R)=>W+R));t.sections[k].height+=S-(r+i)}}return t.height=Math.round(t.stopy-t.starty),g})},"drawLoop"),re=(0,u.eW)(function(e,t){(0,O.O)(e,t)},"drawBackgroundRect"),Be=(0,u.eW)(function(e){e.append("defs").append("symbol").attr("id","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"),Ye=(0,u.eW)(function(e){e.append("defs").append("symbol").attr("id","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"),Ve=(0,u.eW)(function(e){e.append("defs").append("symbol").attr("id","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"),Fe=(0,u.eW)(function(e){e.append("defs").append("marker").attr("id","arrowhead").attr("refX",7.9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto-start-reverse").append("path").attr("d","M -1 0 L 10 5 L 0 10 z")},"insertArrowHead"),qe=(0,u.eW)(function(e){e.append("defs").append("marker").attr("id","filled-head").attr("refX",15.5).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"insertArrowFilledHead"),ze=(0,u.eW)(function(e){e.append("defs").append("marker").attr("id","sequencenumber").attr("refX",15).attr("refY",15).attr("markerWidth",60).attr("markerHeight",40).attr("orient","auto").append("circle").attr("cx",15).attr("cy",15).attr("r",6)},"insertSequenceNumber"),He=(0,u.eW)(function(e){e.append("defs").append("marker").attr("id","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"),ie=(0,u.eW)(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=(0,u.eW)(function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}},"getNoteRect"),Tt=function(){function e(i,c,h,o,a,p,g){const f=c.append("text").attr("x",h+a/2).attr("y",o+p/2+5).style("text-anchor","middle").text(i);r(f,g)}(0,u.eW)(e,"byText");function t(i,c,h,o,a,p,g,f){const{actorFontSize:y,actorFontFamily:m,actorFontWeight:k}=f,[L,S]=(0,B.VG)(y),W=i.split(T.SY.lineBreakRegex);for(let R=0;R<W.length;R++){const D=R*L-L*(W.length-1)/2,K=c.append("text").attr("x",h+a/2).attr("y",o).style("text-anchor","middle").style("font-size",S).style("font-weight",k).style("font-family",m);K.append("tspan").attr("x",h+a/2).attr("dy",D).text(W[R]),K.attr("y",o+p/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),r(K,g)}}(0,u.eW)(t,"byTspan");function n(i,c,h,o,a,p,g,f){const y=c.append("switch"),k=y.append("foreignObject").attr("x",h).attr("y",o).attr("width",a).attr("height",p).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");k.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(i),t(i,y,h,o,a,p,g,f),r(k,g)}(0,u.eW)(n,"byFo");function s(i,c,h,o,a,p,g,f){return at(this,null,function*(){const y=yield(0,T.nH)(i,(0,T.iE)()),m=c.append("switch"),L=m.append("foreignObject").attr("x",h+a/2-y.width/2).attr("y",o+p/2-y.height/2).attr("width",y.width).attr("height",y.height).append("xhtml:div").style("height","100%").style("width","100%");L.append("div").style("text-align","center").style("vertical-align","middle").html(yield(0,T.ur)(i,(0,T.iE)())),t(i,m,h,o,a,p,g,f),r(L,g)})}(0,u.eW)(s,"byKatex");function r(i,c){for(const h in c)c.hasOwnProperty(h)&&i.attr(h,c[h])}return(0,u.eW)(r,"_setTextAttrs"),function(i,c=!1){return c?s:i.textPlacement==="fo"?n:i.textPlacement==="old"?e:t}}(),Ke=function(){function e(r,i,c,h,o,a,p){const g=i.append("text").attr("x",c).attr("y",h).style("text-anchor","start").text(r);s(g,p)}(0,u.eW)(e,"byText");function t(r,i,c,h,o,a,p,g){const{actorFontSize:f,actorFontFamily:y,actorFontWeight:m}=g,k=r.split(T.SY.lineBreakRegex);for(let L=0;L<k.length;L++){const S=L*f-f*(k.length-1)/2,W=i.append("text").attr("x",c).attr("y",h).style("text-anchor","start").style("font-size",f).style("font-weight",m).style("font-family",y);W.append("tspan").attr("x",c).attr("dy",S).text(k[L]),W.attr("y",h+a/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),s(W,p)}}(0,u.eW)(t,"byTspan");function n(r,i,c,h,o,a,p,g){const f=i.append("switch"),m=f.append("foreignObject").attr("x",c).attr("y",h).attr("width",o).attr("height",a).append("xhtml:div").style("display","table").style("height","100%").style("width","100%");m.append("div").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(r),t(r,f,c,h,o,a,p,g),s(m,p)}(0,u.eW)(n,"byFo");function s(r,i){for(const c in i)i.hasOwnProperty(c)&&r.attr(c,i[c])}return(0,u.eW)(s,"_setTextAttrs"),function(r){return r.textPlacement==="fo"?n:r.textPlacement==="old"?e:t}}(),z={drawRect:Ot,drawText:Pt,drawLabel:se,drawActor:We,drawBox:Re,drawPopup:_e,anchorElement:Oe,drawActivation:De,drawLoop:Ce,drawBackgroundRect:re,insertArrowHead:Fe,insertArrowFilledHead:qe,insertSequenceNumber:ze,insertArrowCrossHead:He,insertDatabaseIcon:Be,insertComputerIcon:Ye,insertClockIcon:Ve,getTextObj:ie,getNoteRect:Ue,fixLifeLineHeights:ae,sanitizeUrl:Ct.N},l={},E={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],activations:[],models:{getHeight:(0,u.eW)(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:(0,u.eW)(function(){this.actors=[],this.boxes=[],this.loops=[],this.messages=[],this.notes=[]},"clear"),addBox:(0,u.eW)(function(e){this.boxes.push(e)},"addBox"),addActor:(0,u.eW)(function(e){this.actors.push(e)},"addActor"),addLoop:(0,u.eW)(function(e){this.loops.push(e)},"addLoop"),addMessage:(0,u.eW)(function(e){this.messages.push(e)},"addMessage"),addNote:(0,u.eW)(function(e){this.notes.push(e)},"addNote"),lastActor:(0,u.eW)(function(){return this.actors[this.actors.length-1]},"lastActor"),lastLoop:(0,u.eW)(function(){return this.loops[this.loops.length-1]},"lastLoop"),lastMessage:(0,u.eW)(function(){return this.messages[this.messages.length-1]},"lastMessage"),lastNote:(0,u.eW)(function(){return this.notes[this.notes.length-1]},"lastNote"),actors:[],boxes:[],loops:[],messages:[],notes:[]},init:(0,u.eW)(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,ce((0,T.nV)())},"init"),updateVal:(0,u.eW)(function(e,t,n,s){e[t]===void 0?e[t]=n:e[t]=s(n,e[t])},"updateVal"),updateBounds:(0,u.eW)(function(e,t,n,s){const r=this;let i=0;function c(h){return(0,u.eW)(function(a){i++;const p=r.sequenceItems.length-i+1;r.updateVal(a,"starty",t-p*l.boxMargin,Math.min),r.updateVal(a,"stopy",s+p*l.boxMargin,Math.max),r.updateVal(E.data,"startx",e-p*l.boxMargin,Math.min),r.updateVal(E.data,"stopx",n+p*l.boxMargin,Math.max),h!=="activation"&&(r.updateVal(a,"startx",e-p*l.boxMargin,Math.min),r.updateVal(a,"stopx",n+p*l.boxMargin,Math.max),r.updateVal(E.data,"starty",t-p*l.boxMargin,Math.min),r.updateVal(E.data,"stopy",s+p*l.boxMargin,Math.max))},"updateItemBounds")}(0,u.eW)(c,"updateFn"),this.sequenceItems.forEach(c()),this.activations.forEach(c("activation"))},"updateBounds"),insert:(0,u.eW)(function(e,t,n,s){const r=T.SY.getMin(e,n),i=T.SY.getMax(e,n),c=T.SY.getMin(t,s),h=T.SY.getMax(t,s);this.updateVal(E.data,"startx",r,Math.min),this.updateVal(E.data,"starty",c,Math.min),this.updateVal(E.data,"stopx",i,Math.max),this.updateVal(E.data,"stopy",h,Math.max),this.updateBounds(r,c,i,h)},"insert"),newActivation:(0,u.eW)(function(e,t,n){const s=n.get(e.from),r=Ft(e.from).length||0,i=s.x+s.width/2+(r-1)*l.activationWidth/2;this.activations.push({startx:i,starty:this.verticalPos+2,stopx:i+l.activationWidth,stopy:void 0,actor:e.from,anchored:z.anchorElement(t)})},"newActivation"),endActivation:(0,u.eW)(function(e){const t=this.activations.map(function(n){return n.actor}).lastIndexOf(e.from);return this.activations.splice(t,1)[0]},"endActivation"),createLoop:(0,u.eW)(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:(0,u.eW)(function(e={message:void 0,wrap:!1,width:void 0},t){this.sequenceItems.push(this.createLoop(e,t))},"newLoop"),endLoop:(0,u.eW)(function(){return this.sequenceItems.pop()},"endLoop"),isLoopOverlap:(0,u.eW)(function(){return this.sequenceItems.length?this.sequenceItems[this.sequenceItems.length-1].overlap:!1},"isLoopOverlap"),addSectionToLoop:(0,u.eW)(function(e){const t=this.sequenceItems.pop();t.sections=t.sections||[],t.sectionTitles=t.sectionTitles||[],t.sections.push({y:E.getVerticalPos(),height:0}),t.sectionTitles.push(e),this.sequenceItems.push(t)},"addSectionToLoop"),saveVerticalPos:(0,u.eW)(function(){this.isLoopOverlap()&&(this.savedVerticalPos=this.verticalPos)},"saveVerticalPos"),resetVerticalPos:(0,u.eW)(function(){this.isLoopOverlap()&&(this.verticalPos=this.savedVerticalPos)},"resetVerticalPos"),bumpVerticalPos:(0,u.eW)(function(e){this.verticalPos=this.verticalPos+e,this.data.stopy=T.SY.getMax(this.data.stopy,this.verticalPos)},"bumpVerticalPos"),getVerticalPos:(0,u.eW)(function(){return this.verticalPos},"getVerticalPos"),getBounds:(0,u.eW)(function(){return{bounds:this.data,models:this.models}},"getBounds")},Ge=(0,u.eW)(function(e,t){return at(this,null,function*(){E.bumpVerticalPos(l.boxMargin),t.height=l.boxMargin,t.starty=E.getVerticalPos();const n=(0,O.kc)();n.x=t.startx,n.y=t.starty,n.width=t.width||l.width,n.class="note";const s=e.append("g"),r=z.drawRect(s,n),i=(0,O.AD)();i.x=t.startx,i.y=t.starty,i.width=n.width,i.dy="1em",i.text=t.message,i.class="noteText",i.fontFamily=l.noteFontFamily,i.fontSize=l.noteFontSize,i.fontWeight=l.noteFontWeight,i.anchor=l.noteAlign,i.textMargin=l.noteMargin,i.valign="center";const c=(0,T.l0)(i.text)?yield Vt(s,i):Pt(s,i),h=Math.round(c.map(o=>(o._groups||o)[0][0].getBBox().height).reduce((o,a)=>o+a));r.attr("height",h+2*l.noteMargin),t.height+=h+2*l.noteMargin,E.bumpVerticalPos(h+2*l.noteMargin),t.stopy=t.starty+h+2*l.noteMargin,t.stopx=t.startx+n.width,E.insert(t.startx,t.starty,t.stopx,t.stopy),E.models.addNote(t)})},"drawNote"),It=(0,u.eW)(e=>({fontFamily:e.messageFontFamily,fontSize:e.messageFontSize,fontWeight:e.messageFontWeight}),"messageFont"),Nt=(0,u.eW)(e=>({fontFamily:e.noteFontFamily,fontSize:e.noteFontSize,fontWeight:e.noteFontWeight}),"noteFont"),Gt=(0,u.eW)(e=>({fontFamily:e.actorFontFamily,fontSize:e.actorFontSize,fontWeight:e.actorFontWeight}),"actorFont");function ne(e,t){return at(this,null,function*(){E.bumpVerticalPos(10);const{startx:n,stopx:s,message:r}=t,i=T.SY.splitBreaks(r).length,c=(0,T.l0)(r),h=c?yield(0,T.nH)(r,(0,T.nV)()):B.w8.calculateTextDimensions(r,It(l));if(!c){const g=h.height/i;t.height+=g,E.bumpVerticalPos(g)}let o,a=h.height-10;const p=h.width;if(n===s){o=E.getVerticalPos()+a,l.rightAngles||(a+=l.boxMargin,o=E.getVerticalPos()+a),a+=30;const g=T.SY.getMax(p/2,l.width/2);E.insert(n-g,E.getVerticalPos()-10+a,s+g,E.getVerticalPos()+30+a)}else a+=l.boxMargin,o=E.getVerticalPos()+a,E.insert(n,o-10,s,o);return E.bumpVerticalPos(a),t.height+=a,t.stopy=t.starty+t.height,E.insert(t.fromBounds,t.starty,t.toBounds,t.stopy),o})}(0,u.eW)(ne,"boundMessage");var Xe=(0,u.eW)(function(e,t,n,s){return at(this,null,function*(){const{startx:r,stopx:i,starty:c,message:h,type:o,sequenceIndex:a,sequenceVisible:p}=t,g=B.w8.calculateTextDimensions(h,It(l)),f=(0,O.AD)();f.x=r,f.y=c+10,f.width=i-r,f.class="messageText",f.dy="1em",f.text=h,f.fontFamily=l.messageFontFamily,f.fontSize=l.messageFontSize,f.fontWeight=l.messageFontWeight,f.anchor=l.messageAlign,f.valign="center",f.textMargin=l.wrapPadding,f.tspan=!1,(0,T.l0)(f.text)?yield Vt(e,f,{startx:r,stopx:i,starty:n}):Pt(e,f);const y=g.width;let m;r===i?l.rightAngles?m=e.append("path").attr("d",`M ${r},${n} H ${r+T.SY.getMax(l.width/2,y/2)} V ${n+25} H ${r}`):m=e.append("path").attr("d","M "+r+","+n+" C "+(r+60)+","+(n-10)+" "+(r+60)+","+(n+30)+" "+r+","+(n+20)):(m=e.append("line"),m.attr("x1",r),m.attr("y1",n),m.attr("x2",i),m.attr("y2",n)),o===s.db.LINETYPE.DOTTED||o===s.db.LINETYPE.DOTTED_CROSS||o===s.db.LINETYPE.DOTTED_POINT||o===s.db.LINETYPE.DOTTED_OPEN||o===s.db.LINETYPE.BIDIRECTIONAL_DOTTED?(m.style("stroke-dasharray","3, 3"),m.attr("class","messageLine1")):m.attr("class","messageLine0");let k="";l.arrowMarkerAbsolute&&(k=(0,T.Gr)(!0)),m.attr("stroke-width",2),m.attr("stroke","none"),m.style("fill","none"),(o===s.db.LINETYPE.SOLID||o===s.db.LINETYPE.DOTTED)&&m.attr("marker-end","url("+k+"#arrowhead)"),(o===s.db.LINETYPE.BIDIRECTIONAL_SOLID||o===s.db.LINETYPE.BIDIRECTIONAL_DOTTED)&&(m.attr("marker-start","url("+k+"#arrowhead)"),m.attr("marker-end","url("+k+"#arrowhead)")),(o===s.db.LINETYPE.SOLID_POINT||o===s.db.LINETYPE.DOTTED_POINT)&&m.attr("marker-end","url("+k+"#filled-head)"),(o===s.db.LINETYPE.SOLID_CROSS||o===s.db.LINETYPE.DOTTED_CROSS)&&m.attr("marker-end","url("+k+"#crosshead)"),(p||l.showSequenceNumbers)&&((o===s.db.LINETYPE.BIDIRECTIONAL_SOLID||o===s.db.LINETYPE.BIDIRECTIONAL_DOTTED)&&(r<i?m.attr("x1",r+2*6):m.attr("x1",r+6)),e.append("line").attr("x1",r).attr("y1",n).attr("x2",r).attr("y2",n).attr("stroke-width",0).attr("marker-start","url("+k+"#sequencenumber)"),e.append("text").attr("x",r).attr("y",n+4).attr("font-family","sans-serif").attr("font-size","12px").attr("text-anchor","middle").attr("class","sequenceNumber").text(a))})},"drawMessage"),Je=(0,u.eW)(function(e,t,n,s,r,i,c){let h=0,o=0,a,p=0;for(const g of s){const f=t.get(g),y=f.box;a&&a!=y&&(c||E.models.addBox(a),o+=l.boxMargin+a.margin),y&&y!=a&&(c||(y.x=h+o,y.y=r),o+=y.margin),f.width=f.width||l.width,f.height=T.SY.getMax(f.height||l.height,l.height),f.margin=f.margin||l.actorMargin,p=T.SY.getMax(p,f.height),n.get(f.name)&&(o+=f.width/2),f.x=h+o,f.starty=E.getVerticalPos(),E.insert(f.x,r,f.x+f.width,f.height),h+=f.width+o,f.box&&(f.box.width=h+y.margin-f.box.x),o=f.margin,a=f.box,E.models.addActor(f)}a&&!c&&E.models.addBox(a),E.bumpVerticalPos(p)},"addActorRenderingData"),Xt=(0,u.eW)(function(e,t,n,s){return at(this,null,function*(){if(s){let r=0;E.bumpVerticalPos(l.boxMargin*2);for(const i of n){const c=t.get(i);c.stopy||(c.stopy=E.getVerticalPos());const h=yield z.drawActor(e,c,l,!0);r=T.SY.getMax(r,h)}E.bumpVerticalPos(r+l.boxMargin)}else for(const r of n){const i=t.get(r);yield z.drawActor(e,i,l,!1)}})},"drawActors"),oe=(0,u.eW)(function(e,t,n,s){let r=0,i=0;for(const c of n){const h=t.get(c),o=Qe(h),a=z.drawPopup(e,h,o,l,l.forceMenus,s);a.height>r&&(r=a.height),a.width+h.x>i&&(i=a.width+h.x)}return{maxHeight:r,maxWidth:i}},"drawActorsPopup"),ce=(0,u.eW)(function(e){(0,T.Yc)(l,e),e.fontFamily&&(l.actorFontFamily=l.noteFontFamily=l.messageFontFamily=e.fontFamily),e.fontSize&&(l.actorFontSize=l.noteFontSize=l.messageFontSize=e.fontSize),e.fontWeight&&(l.actorFontWeight=l.noteFontWeight=l.messageFontWeight=e.fontWeight)},"setConf"),Ft=(0,u.eW)(function(e){return E.activations.filter(function(t){return t.actor===e})},"actorActivations"),le=(0,u.eW)(function(e,t){const n=t.get(e),s=Ft(e),r=s.reduce(function(c,h){return T.SY.getMin(c,h.startx)},n.x+n.width/2-1),i=s.reduce(function(c,h){return T.SY.getMax(c,h.stopx)},n.x+n.width/2+1);return[r,i]},"activationBounds");function xt(e,t,n,s,r){E.bumpVerticalPos(n);let i=s;if(t.id&&t.message&&e[t.id]){const c=e[t.id].width,h=It(l);t.message=B.w8.wrapLabel(`[${t.message}]`,c-2*l.wrapPadding,h),t.width=c,t.wrap=!0;const o=B.w8.calculateTextDimensions(t.message,h),a=T.SY.getMax(o.height,l.labelBoxHeight);i=s+a,u.cM.debug(`${a} - ${t.message}`)}r(t),E.bumpVerticalPos(i)}(0,u.eW)(xt,"adjustLoopHeightForWrap");function he(e,t,n,s,r,i,c){function h(p,g){p.x<r.get(e.from).x?(E.insert(t.stopx-g,t.starty,t.startx,t.stopy+p.height/2+l.noteMargin),t.stopx=t.stopx+g):(E.insert(t.startx,t.starty,t.stopx+g,t.stopy+p.height/2+l.noteMargin),t.stopx=t.stopx-g)}(0,u.eW)(h,"receiverAdjustment");function o(p,g){p.x<r.get(e.to).x?(E.insert(t.startx-g,t.starty,t.stopx,t.stopy+p.height/2+l.noteMargin),t.startx=t.startx+g):(E.insert(t.stopx,t.starty,t.startx+g,t.stopy+p.height/2+l.noteMargin),t.startx=t.startx-g)}(0,u.eW)(o,"senderAdjustment");const a=[U.ACTOR,U.CONTROL,U.ENTITY,U.DATABASE];if(i.get(e.to)==s){const p=r.get(e.to),g=a.includes(p.type)?vt/2+3:p.width/2+3;h(p,g),p.starty=n-p.height/2,E.bumpVerticalPos(p.height/2)}else if(c.get(e.from)==s){const p=r.get(e.from);if(l.mirrorActors){const g=a.includes(p.type)?vt/2:p.width/2;o(p,g)}p.stopy=n-p.height/2,E.bumpVerticalPos(p.height/2)}else if(c.get(e.to)==s){const p=r.get(e.to);if(l.mirrorActors){const g=a.includes(p.type)?vt/2+3:p.width/2+3;h(p,g)}p.stopy=n-p.height/2,E.bumpVerticalPos(p.height/2)}}(0,u.eW)(he,"adjustCreatedDestroyedData");var Ze=(0,u.eW)(function(e,t,n,s){return at(this,null,function*(){const{securityLevel:r,sequence:i}=(0,T.nV)();l=i;let c;r==="sandbox"&&(c=(0,ft.Ys)("#i"+t));const h=r==="sandbox"?(0,ft.Ys)(c.nodes()[0].contentDocument.body):(0,ft.Ys)("body"),o=r==="sandbox"?c.nodes()[0].contentDocument:document;E.init(),u.cM.debug(s.db);const a=r==="sandbox"?h.select(`[id="${t}"]`):(0,ft.Ys)(`[id="${t}"]`),p=s.db.getActors(),g=s.db.getCreatedActors(),f=s.db.getDestroyedActors(),y=s.db.getBoxes();let m=s.db.getActorKeys();const k=s.db.getMessages(),L=s.db.getDiagramTitle(),S=s.db.hasAtLeastOneBox(),W=s.db.hasAtLeastOneBoxWithTitle(),R=yield de(p,k,s);if(l.height=yield pe(p,R,y),z.insertComputerIcon(a),z.insertDatabaseIcon(a),z.insertClockIcon(a),S&&(E.bumpVerticalPos(l.boxMargin),W&&E.bumpVerticalPos(y[0].textMaxHeight)),l.hideUnusedParticipants===!0){const b=new Set;k.forEach(I=>{b.add(I.from),b.add(I.to)}),m=m.filter(I=>b.has(I))}Je(a,p,g,m,0,k,!1);const D=yield ts(k,p,R,s);z.insertArrowHead(a),z.insertArrowCrossHead(a),z.insertArrowFilledHead(a),z.insertSequenceNumber(a);function K(b,I){const st=E.endActivation(b);st.starty+18>I&&(st.starty=I-6,I+=12),z.drawActivation(a,st,I,l,Ft(b.from).length),E.insert(st.startx,I-10,st.stopx,I)}(0,u.eW)(K,"activeEnd");let Z=1,nt=1;const pt=[],Q=[];let $=0;for(const b of k){let I,st,lt;switch(b.type){case s.db.LINETYPE.NOTE:E.resetVerticalPos(),st=b.noteModel,yield Ge(a,st);break;case s.db.LINETYPE.ACTIVE_START:E.newActivation(b,a,p);break;case s.db.LINETYPE.ACTIVE_END:K(b,E.getVerticalPos());break;case s.db.LINETYPE.LOOP_START:xt(D,b,l.boxMargin,l.boxMargin+l.boxTextMargin,C=>E.newLoop(C));break;case s.db.LINETYPE.LOOP_END:I=E.endLoop(),yield z.drawLoop(a,I,"loop",l),E.bumpVerticalPos(I.stopy-E.getVerticalPos()),E.models.addLoop(I);break;case s.db.LINETYPE.RECT_START:xt(D,b,l.boxMargin,l.boxMargin,C=>E.newLoop(void 0,C.message));break;case s.db.LINETYPE.RECT_END:I=E.endLoop(),Q.push(I),E.models.addLoop(I),E.bumpVerticalPos(I.stopy-E.getVerticalPos());break;case s.db.LINETYPE.OPT_START:xt(D,b,l.boxMargin,l.boxMargin+l.boxTextMargin,C=>E.newLoop(C));break;case s.db.LINETYPE.OPT_END:I=E.endLoop(),yield z.drawLoop(a,I,"opt",l),E.bumpVerticalPos(I.stopy-E.getVerticalPos()),E.models.addLoop(I);break;case s.db.LINETYPE.ALT_START:xt(D,b,l.boxMargin,l.boxMargin+l.boxTextMargin,C=>E.newLoop(C));break;case s.db.LINETYPE.ALT_ELSE:xt(D,b,l.boxMargin+l.boxTextMargin,l.boxMargin,C=>E.addSectionToLoop(C));break;case s.db.LINETYPE.ALT_END:I=E.endLoop(),yield z.drawLoop(a,I,"alt",l),E.bumpVerticalPos(I.stopy-E.getVerticalPos()),E.models.addLoop(I);break;case s.db.LINETYPE.PAR_START:case s.db.LINETYPE.PAR_OVER_START:xt(D,b,l.boxMargin,l.boxMargin+l.boxTextMargin,C=>E.newLoop(C)),E.saveVerticalPos();break;case s.db.LINETYPE.PAR_AND:xt(D,b,l.boxMargin+l.boxTextMargin,l.boxMargin,C=>E.addSectionToLoop(C));break;case s.db.LINETYPE.PAR_END:I=E.endLoop(),yield z.drawLoop(a,I,"par",l),E.bumpVerticalPos(I.stopy-E.getVerticalPos()),E.models.addLoop(I);break;case s.db.LINETYPE.AUTONUMBER:Z=b.message.start||Z,nt=b.message.step||nt,b.message.visible?s.db.enableSequenceNumbers():s.db.disableSequenceNumbers();break;case s.db.LINETYPE.CRITICAL_START:xt(D,b,l.boxMargin,l.boxMargin+l.boxTextMargin,C=>E.newLoop(C));break;case s.db.LINETYPE.CRITICAL_OPTION:xt(D,b,l.boxMargin+l.boxTextMargin,l.boxMargin,C=>E.addSectionToLoop(C));break;case s.db.LINETYPE.CRITICAL_END:I=E.endLoop(),yield z.drawLoop(a,I,"critical",l),E.bumpVerticalPos(I.stopy-E.getVerticalPos()),E.models.addLoop(I);break;case s.db.LINETYPE.BREAK_START:xt(D,b,l.boxMargin,l.boxMargin+l.boxTextMargin,C=>E.newLoop(C));break;case s.db.LINETYPE.BREAK_END:I=E.endLoop(),yield z.drawLoop(a,I,"break",l),E.bumpVerticalPos(I.stopy-E.getVerticalPos()),E.models.addLoop(I);break;default:try{lt=b.msgModel,lt.starty=E.getVerticalPos(),lt.sequenceIndex=Z,lt.sequenceVisible=s.db.showSequenceNumbers();const C=yield ne(a,lt);he(b,lt,C,$,p,g,f),pt.push({messageModel:lt,lineStartY:C}),E.models.addMessage(lt)}catch(C){u.cM.error("error while drawing message",C)}}[s.db.LINETYPE.SOLID_OPEN,s.db.LINETYPE.DOTTED_OPEN,s.db.LINETYPE.SOLID,s.db.LINETYPE.DOTTED,s.db.LINETYPE.SOLID_CROSS,s.db.LINETYPE.DOTTED_CROSS,s.db.LINETYPE.SOLID_POINT,s.db.LINETYPE.DOTTED_POINT,s.db.LINETYPE.BIDIRECTIONAL_SOLID,s.db.LINETYPE.BIDIRECTIONAL_DOTTED].includes(b.type)&&(Z=Z+nt),$++}u.cM.debug("createdActors",g),u.cM.debug("destroyedActors",f),yield Xt(a,p,m,!1);for(const b of pt)yield Xe(a,b.messageModel,b.lineStartY,s);l.mirrorActors&&(yield Xt(a,p,m,!0)),Q.forEach(b=>z.drawBackgroundRect(a,b)),ae(a,p,m,l);for(const b of E.models.boxes){b.height=E.getVerticalPos()-b.y,E.insert(b.x,b.y,b.x+b.width,b.height);const I=l.boxMargin*2;b.startx=b.x-I,b.starty=b.y-I*.25,b.stopx=b.startx+b.width+2*I,b.stopy=b.starty+b.height+I*.75,b.stroke="rgb(0,0,0, 0.5)",z.drawBox(a,b,l)}S&&E.bumpVerticalPos(l.boxMargin);const X=oe(a,p,m,o),{bounds:F}=E.getBounds();F.startx===void 0&&(F.startx=0),F.starty===void 0&&(F.starty=0),F.stopx===void 0&&(F.stopx=0),F.stopy===void 0&&(F.stopy=0);let ot=F.stopy-F.starty;ot<X.maxHeight&&(ot=X.maxHeight);let et=ot+2*l.diagramMarginY;l.mirrorActors&&(et=et-l.boxMargin+l.bottomMarginAdj);let ct=F.stopx-F.startx;ct<X.maxWidth&&(ct=X.maxWidth);const ut=ct+2*l.diagramMarginX;L&&a.append("text").text(L).attr("x",(F.stopx-F.startx)/2-2*l.diagramMarginX).attr("y",-25),(0,T.v2)(a,et,ut,l.useMaxWidth);const Y=L?40:0;a.attr("viewBox",F.startx-l.diagramMarginX+" -"+(l.diagramMarginY+Y)+" "+ut+" "+(et+Y)),u.cM.debug("models:",E.models)})},"draw");function de(e,t,n){return at(this,null,function*(){const s={};for(const r of t)if(e.get(r.to)&&e.get(r.from)){const i=e.get(r.to);if(r.placement===n.db.PLACEMENT.LEFTOF&&!i.prevActor||r.placement===n.db.PLACEMENT.RIGHTOF&&!i.nextActor)continue;const c=r.placement!==void 0,h=!c,o=c?Nt(l):It(l),a=r.wrap?B.w8.wrapLabel(r.message,l.width-2*l.wrapPadding,o):r.message,g=((0,T.l0)(a)?yield(0,T.nH)(r.message,(0,T.nV)()):B.w8.calculateTextDimensions(a,o)).width+2*l.wrapPadding;h&&r.from===i.nextActor?s[r.to]=T.SY.getMax(s[r.to]||0,g):h&&r.from===i.prevActor?s[r.from]=T.SY.getMax(s[r.from]||0,g):h&&r.from===r.to?(s[r.from]=T.SY.getMax(s[r.from]||0,g/2),s[r.to]=T.SY.getMax(s[r.to]||0,g/2)):r.placement===n.db.PLACEMENT.RIGHTOF?s[r.from]=T.SY.getMax(s[r.from]||0,g):r.placement===n.db.PLACEMENT.LEFTOF?s[i.prevActor]=T.SY.getMax(s[i.prevActor]||0,g):r.placement===n.db.PLACEMENT.OVER&&(i.prevActor&&(s[i.prevActor]=T.SY.getMax(s[i.prevActor]||0,g/2)),i.nextActor&&(s[r.from]=T.SY.getMax(s[r.from]||0,g/2)))}return u.cM.debug("maxMessageWidthPerActor:",s),s})}(0,u.eW)(de,"getMaxMessageWidthPerActor");var Qe=(0,u.eW)(function(e){let t=0;const n=Gt(l);for(const s in e.links){const i=B.w8.calculateTextDimensions(s,n).width+2*l.wrapPadding+2*l.boxMargin;t<i&&(t=i)}return t},"getRequiredPopupWidth");function pe(e,t,n){return at(this,null,function*(){let s=0;for(const i of e.keys()){const c=e.get(i);c.wrap&&(c.description=B.w8.wrapLabel(c.description,l.width-2*l.wrapPadding,Gt(l)));const h=(0,T.l0)(c.description)?yield(0,T.nH)(c.description,(0,T.nV)()):B.w8.calculateTextDimensions(c.description,Gt(l));c.width=c.wrap?l.width:T.SY.getMax(l.width,h.width+2*l.wrapPadding),c.height=c.wrap?T.SY.getMax(h.height,l.height):l.height,s=T.SY.getMax(s,c.height)}for(const i in t){const c=e.get(i);if(!c)continue;const h=e.get(c.nextActor);if(!h){const g=t[i]+l.actorMargin-c.width/2;c.margin=T.SY.getMax(g,l.actorMargin);continue}const a=t[i]+l.actorMargin-c.width/2-h.width/2;c.margin=T.SY.getMax(a,l.actorMargin)}let r=0;return n.forEach(i=>{const c=It(l);let h=i.actorKeys.reduce((g,f)=>g+=e.get(f).width+(e.get(f).margin||0),0);const o=l.boxMargin*8;h+=o,h-=2*l.boxTextMargin,i.wrap&&(i.name=B.w8.wrapLabel(i.name,h-2*l.wrapPadding,c));const a=B.w8.calculateTextDimensions(i.name,c);r=T.SY.getMax(a.height,r);const p=T.SY.getMax(h,a.width+2*l.wrapPadding);if(i.margin=l.boxTextMargin,h<p){const g=(p-h)/2;i.margin+=g}}),n.forEach(i=>i.textMaxHeight=r),T.SY.getMax(s,l.height)})}(0,u.eW)(pe,"calculateActorMargins");var $e=(0,u.eW)(function(e,t,n){return at(this,null,function*(){const s=t.get(e.from),r=t.get(e.to),i=s.x,c=r.x,h=e.wrap&&e.message;let o=(0,T.l0)(e.message)?yield(0,T.nH)(e.message,(0,T.nV)()):B.w8.calculateTextDimensions(h?B.w8.wrapLabel(e.message,l.width,Nt(l)):e.message,Nt(l));const a={width:h?l.width:T.SY.getMax(l.width,o.width+2*l.noteMargin),height:0,startx:s.x,stopx:0,starty:0,stopy:0,message:e.message};return e.placement===n.db.PLACEMENT.RIGHTOF?(a.width=h?T.SY.getMax(l.width,o.width):T.SY.getMax(s.width/2+r.width/2,o.width+2*l.noteMargin),a.startx=i+(s.width+l.actorMargin)/2):e.placement===n.db.PLACEMENT.LEFTOF?(a.width=h?T.SY.getMax(l.width,o.width+2*l.noteMargin):T.SY.getMax(s.width/2+r.width/2,o.width+2*l.noteMargin),a.startx=i-a.width+(s.width-l.actorMargin)/2):e.to===e.from?(o=B.w8.calculateTextDimensions(h?B.w8.wrapLabel(e.message,T.SY.getMax(l.width,s.width),Nt(l)):e.message,Nt(l)),a.width=h?T.SY.getMax(l.width,s.width):T.SY.getMax(s.width,l.width,o.width+2*l.noteMargin),a.startx=i+(s.width-a.width)/2):(a.width=Math.abs(i+s.width/2-(c+r.width/2))+l.actorMargin,a.startx=i<c?i+s.width/2-l.actorMargin/2:c+r.width/2-l.actorMargin/2),h&&(a.message=B.w8.wrapLabel(e.message,a.width-2*l.wrapPadding,Nt(l))),u.cM.debug(`NM:[${a.startx},${a.stopx},${a.starty},${a.stopy}:${a.width},${a.height}=${e.message}]`),a})},"buildNoteModel"),je=(0,u.eW)(function(e,t,n){if(![n.db.LINETYPE.SOLID_OPEN,n.db.LINETYPE.DOTTED_OPEN,n.db.LINETYPE.SOLID,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{};const[s,r]=le(e.from,t),[i,c]=le(e.to,t),h=s<=i;let o=h?r:s,a=h?i:c;const p=Math.abs(i-c)>2,g=(0,u.eW)(k=>h?-k:k,"adjustValue");e.from===e.to?a=o:(e.activate&&!p&&(a+=g(l.activationWidth/2-1)),[n.db.LINETYPE.SOLID_OPEN,n.db.LINETYPE.DOTTED_OPEN].includes(e.type)||(a+=g(3)),[n.db.LINETYPE.BIDIRECTIONAL_SOLID,n.db.LINETYPE.BIDIRECTIONAL_DOTTED].includes(e.type)&&(o-=g(3)));const f=[s,r,i,c],y=Math.abs(o-a);e.wrap&&e.message&&(e.message=B.w8.wrapLabel(e.message,T.SY.getMax(y+2*l.wrapPadding,l.width),It(l)));const m=B.w8.calculateTextDimensions(e.message,It(l));return{width:T.SY.getMax(e.wrap?0:m.width+2*l.wrapPadding,y+2*l.wrapPadding,l.width),height:0,startx:o,stopx:a,starty:0,stopy:0,message:e.message,type:e.type,wrap:e.wrap,fromBounds:Math.min.apply(null,f),toBounds:Math.max.apply(null,f)}},"buildMessageModel"),ts=(0,u.eW)(function(e,t,n,s){return at(this,null,function*(){const r={},i=[];let c,h,o;for(const a of e){switch(a.type){case s.db.LINETYPE.LOOP_START:case s.db.LINETYPE.ALT_START:case s.db.LINETYPE.OPT_START:case s.db.LINETYPE.PAR_START:case s.db.LINETYPE.PAR_OVER_START:case s.db.LINETYPE.CRITICAL_START:case s.db.LINETYPE.BREAK_START:i.push({id:a.id,msg:a.message,from:Number.MAX_SAFE_INTEGER,to:Number.MIN_SAFE_INTEGER,width:0});break;case s.db.LINETYPE.ALT_ELSE:case s.db.LINETYPE.PAR_AND:case s.db.LINETYPE.CRITICAL_OPTION:a.message&&(c=i.pop(),r[c.id]=c,r[a.id]=c,i.push(c));break;case s.db.LINETYPE.LOOP_END:case s.db.LINETYPE.ALT_END:case s.db.LINETYPE.OPT_END:case s.db.LINETYPE.PAR_END:case s.db.LINETYPE.CRITICAL_END:case s.db.LINETYPE.BREAK_END:c=i.pop(),r[c.id]=c;break;case s.db.LINETYPE.ACTIVE_START:{const g=t.get(a.from?a.from:a.to.actor),f=Ft(a.from?a.from:a.to.actor).length,y=g.x+g.width/2+(f-1)*l.activationWidth/2,m={startx:y,stopx:y+l.activationWidth,actor:a.from,enabled:!0};E.activations.push(m)}break;case s.db.LINETYPE.ACTIVE_END:{const g=E.activations.map(f=>f.actor).lastIndexOf(a.from);E.activations.splice(g,1).splice(0,1)}break}a.placement!==void 0?(h=yield $e(a,t,s),a.noteModel=h,i.forEach(g=>{c=g,c.from=T.SY.getMin(c.from,h.startx),c.to=T.SY.getMax(c.to,h.startx+h.width),c.width=T.SY.getMax(c.width,Math.abs(c.from-c.to))-l.labelBoxWidth})):(o=je(a,t,s),a.msgModel=o,o.startx&&o.stopx&&i.length>0&&i.forEach(g=>{if(c=g,o.startx===o.stopx){const f=t.get(a.from),y=t.get(a.to);c.from=T.SY.getMin(f.x-o.width/2,f.x-f.width/2,c.from),c.to=T.SY.getMax(y.x+o.width/2,y.x+f.width/2,c.to),c.width=T.SY.getMax(c.width,Math.abs(c.to-c.from))-l.labelBoxWidth}else c.from=T.SY.getMin(o.startx,c.from),c.to=T.SY.getMax(o.stopx,c.to),c.width=T.SY.getMax(c.width,o.width)-l.labelBoxWidth}))}return E.activations=[],u.cM.debug("Loop type widths:",r),r})},"calculateLoopBounds"),es={bounds:E,drawActors:Xt,drawActorsPopup:oe,setConf:ce,draw:Ze},ss={parser:Kt,get db(){return new dt},renderer:es,styles:ke,init:(0,u.eW)(e=>{e.sequence||(e.sequence={}),e.wrap&&(e.sequence.wrap=e.wrap,(0,T.Y4)({sequence:{wrap:e.wrap}}))},"init")}}}]);
146
+ }());
@@ -0,0 +1,25 @@
1
+ !(function(){"use strict";var Ee=Object.defineProperty;var ie=Object.getOwnPropertySymbols;var Le=Object.prototype.hasOwnProperty,Pe=Object.prototype.propertyIsEnumerable;var ce=(_,m,n)=>m in _?Ee(_,m,{enumerable:!0,configurable:!0,writable:!0,value:n}):_[m]=n,le=(_,m)=>{for(var n in m||(m={}))Le.call(m,n)&&ce(_,n,m[n]);if(ie)for(var n of ie(m))Pe.call(m,n)&&ce(_,n,m[n]);return _};var de=(_,m,n)=>new Promise((A,v)=>{var f=o=>{try{b(n.next(o))}catch(r){v(r)}},y=o=>{try{b(n.throw(o))}catch(r){v(r)}},b=o=>o.done?A(o.value):Promise.resolve(o.value).then(f,y);b((n=n.apply(_,m)).next())});(self.webpackChunk_alife_paul_ai_assistant=self.webpackChunk_alife_paul_ai_assistant||[]).push([[8542],{25925:function(_,m,n){n.d(m,{A:function(){return v}});var A=n(35096);function v(f,y){var b,o,r;f.accDescr&&((b=y.setAccDescription)==null||b.call(y,f.accDescr)),f.accTitle&&((o=y.setAccTitle)==null||o.call(y,f.accTitle)),f.title&&((r=y.setDiagramTitle)==null||r.call(y,f.title))}(0,A.eW)(v,"populateCommonDb")},43663:function(_,m,n){n.d(m,{j:function(){return f}});var A=n(99970),v=n(35096),f=(0,v.eW)((o,r,w,p)=>{o.attr("class",w);const{width:M,height:z,x:te,y:ae}=y(o,r);(0,A.v2)(o,z,M,p);const I=b(te,ae,M,z,r);o.attr("viewBox",I),v.cM.debug(`viewBox configured: ${I} with padding: ${r}`)},"setupViewPortForSVG"),y=(0,v.eW)((o,r)=>{var p;const w=((p=o.node())==null?void 0:p.getBBox())||{width:0,height:0,x:0,y:0};return{width:w.width+r*2,height:w.height+r*2,x:w.x,y:w.y}},"calculateDimensionsWithPadding"),b=(0,v.eW)((o,r,w,p,M)=>`${o-M} ${r-M} ${w} ${p}`,"createViewBox")},88542:function(_,m,n){var N;n.d(m,{diagram:function(){return Se}});var A=n(88674),v=n(43663),f=n(2831),y=n(25925),b=n(4284),o=n(99970),r=n(35096),w=n(12491),p=n(989),M=(N=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=o.GN,this.getAccTitle=o.eu,this.setDiagramTitle=o.g2,this.getDiagramTitle=o.Kr,this.getAccDescription=o.Mx,this.setAccDescription=o.U$}getNodes(){return this.nodes}getConfig(){var s;const l=o.vZ,c=(0,o.iE)();return(0,b.Rb)(le(le({},l.treemap),(s=c.treemap)!=null?s:{}))}addNode(l,c){var s;this.nodes.push(l),this.levels.set(l,c),c===0&&(this.outerNodes.push(l),(s=this.root)!=null||(this.root=l))}getRoot(){return{name:"",children:this.outerNodes}}addClass(l,c){var d;const s=(d=this.classes.get(l))!=null?d:{id:l,styles:[],textStyles:[]},u=c.replace(/\\,/g,"\xA7\xA7\xA7").replace(/,/g,";").replace(/§§§/g,",").split(";");u&&u.forEach(E=>{(0,f.Fh)(E)&&(s!=null&&s.textStyles?s.textStyles.push(E):s.textStyles=[E]),s!=null&&s.styles?s.styles.push(E):s.styles=[E]}),this.classes.set(l,s)}getClasses(){return this.classes}getStylesForClass(l){var c,s;return(s=(c=this.classes.get(l))==null?void 0:c.styles)!=null?s:[]}clear(){(0,o.ZH)(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}},(0,r.eW)(N,"TreeMapDB"),N);function z(g){if(!g.length)return[];const l=[],c=[];return g.forEach(s=>{const u={name:s.name,children:s.type==="Leaf"?void 0:[]};for(u.classSelector=s==null?void 0:s.classSelector,s!=null&&s.cssCompiledStyles&&(u.cssCompiledStyles=[s.cssCompiledStyles]),s.type==="Leaf"&&s.value!==void 0&&(u.value=s.value);c.length>0&&c[c.length-1].level>=s.level;)c.pop();if(c.length===0)l.push(u);else{const d=c[c.length-1].node;d.children?d.children.push(u):d.children=[u]}s.type!=="Leaf"&&c.push({node:u,level:s.level})}),l}(0,r.eW)(z,"buildHierarchy");var te=(0,r.eW)((g,l)=>{var d,E,R,H;(0,y.A)(g,l);const c=[];for(const a of(d=g.TreemapRows)!=null?d:[])a.$type==="ClassDefStatement"&&l.addClass((E=a.className)!=null?E:"",(R=a.styleText)!=null?R:"");for(const a of(H=g.TreemapRows)!=null?H:[]){const S=a.item;if(!S)continue;const C=a.indent?parseInt(a.indent):0,X=ae(S),K=S.classSelector?l.getStylesForClass(S.classSelector):[],G=K.length>0?K.join(";"):void 0,J={level:C,name:X,type:S.$type,value:S.value,classSelector:S.classSelector,cssCompiledStyles:G};c.push(J)}const s=z(c),u=(0,r.eW)((a,S)=>{for(const C of a)l.addNode(C,S),C.children&&C.children.length>0&&u(C.children,S+1)},"addNodesRecursively");u(s,0)},"populate"),ae=(0,r.eW)(g=>g.name?String(g.name):"","getItemName"),I={parser:{yy:void 0},parse:(0,r.eW)(g=>de(this,null,function*(){var l;try{const c=w.Qc,s=yield c("treemap",g);r.cM.debug("Treemap AST:",s);const u=(l=I.parser)==null?void 0:l.yy;if(!(u instanceof M))throw new Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");te(s,u)}catch(c){throw r.cM.error("Error parsing treemap:",c),c}}),"parse")},pe=10,k=10,U=25,he=(0,r.eW)((g,l,c,s)=>{var oe,re;const u=s.db,d=u.getConfig(),E=(oe=d.padding)!=null?oe:pe,R=u.getDiagramTitle(),H=u.getRoot(),{themeVariables:a}=(0,o.iE)();if(!H)return;const S=R?30:0,C=(0,A.P)(l),X=d.nodeWidth?d.nodeWidth*k:960,K=d.nodeHeight?d.nodeHeight*k:500,G=X,J=K+S;C.attr("viewBox",`0 0 ${G} ${J}`),(0,o.v2)(C,J,G,d.useMaxWidth);let B;try{const e=d.valueFormat||",";if(e==="$0,0")B=(0,r.eW)(t=>"$"+(0,p.WUZ)(",")(t),"valueFormat");else if(e.startsWith("$")&&e.includes(",")){const t=/\.\d+/.exec(e),i=t?t[0]:"";B=(0,r.eW)(x=>"$"+(0,p.WUZ)(","+i)(x),"valueFormat")}else if(e.startsWith("$")){const t=e.substring(1);B=(0,r.eW)(i=>"$"+(0,p.WUZ)(t||"")(i),"valueFormat")}else B=(0,p.WUZ)(e)}catch(e){r.cM.error("Error creating format function:",e),B=(0,p.WUZ)(",")}const j=(0,p.PKp)().range(["transparent",a.cScale0,a.cScale1,a.cScale2,a.cScale3,a.cScale4,a.cScale5,a.cScale6,a.cScale7,a.cScale8,a.cScale9,a.cScale10,a.cScale11]),xe=(0,p.PKp)().range(["transparent",a.cScalePeer0,a.cScalePeer1,a.cScalePeer2,a.cScalePeer3,a.cScalePeer4,a.cScalePeer5,a.cScalePeer6,a.cScalePeer7,a.cScalePeer8,a.cScalePeer9,a.cScalePeer10,a.cScalePeer11]),Q=(0,p.PKp)().range([a.cScaleLabel0,a.cScaleLabel1,a.cScaleLabel2,a.cScaleLabel3,a.cScaleLabel4,a.cScaleLabel5,a.cScaleLabel6,a.cScaleLabel7,a.cScaleLabel8,a.cScaleLabel9,a.cScaleLabel10,a.cScaleLabel11]);R&&C.append("text").attr("x",G/2).attr("y",S/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(R);const se=C.append("g").attr("transform",`translate(0, ${S})`).attr("class","treemapContainer"),_e=(0,p.bT9)(H).sum(e=>{var t;return(t=e.value)!=null?t:0}).sort((e,t)=>{var i,x;return((i=t.value)!=null?i:0)-((x=e.value)!=null?x:0)}),ne=(0,p.pNI)().size([X,K]).paddingTop(e=>e.children&&e.children.length>0?U+k:0).paddingInner(E).paddingLeft(e=>e.children&&e.children.length>0?k:0).paddingRight(e=>e.children&&e.children.length>0?k:0).paddingBottom(e=>e.children&&e.children.length>0?k:0).round(!0)(_e),ve=ne.descendants().filter(e=>e.children&&e.children.length>0),Y=se.selectAll(".treemapSection").data(ve).enter().append("g").attr("class","treemapSection").attr("transform",e=>`translate(${e.x0},${e.y0})`);Y.append("rect").attr("width",e=>e.x1-e.x0).attr("height",U).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",e=>e.depth===0?"display: none;":""),Y.append("clipPath").attr("id",(e,t)=>`clip-section-${l}-${t}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-12)).attr("height",U),Y.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class",(e,t)=>`treemapSection section${t}`).attr("fill",e=>j(e.data.name)).attr("fill-opacity",.6).attr("stroke",e=>xe(e.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",e=>{if(e.depth===0)return"display: none;";const t=(0,f.UG)({cssCompiledStyles:e.data.cssCompiledStyles});return t.nodeStyles+";"+t.borderStyles.join(";")}),Y.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",U/2).attr("dominant-baseline","middle").text(e=>e.depth===0?"":e.data.name).attr("font-weight","bold").attr("style",e=>{if(e.depth===0)return"display: none;";const t="dominant-baseline: middle; font-size: 12px; fill:"+Q(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",i=(0,f.UG)({cssCompiledStyles:e.data.cssCompiledStyles});return t+i.labelStyles.replace("color:","fill:")}).each(function(e){if(e.depth===0)return;const t=(0,p.Ys)(this),i=e.data.name;t.text(i);const x=e.x1-e.x0,W=6;let D;d.showValues!==!1&&e.value?D=x-10-30-10-W:D=x-W-6;const L=Math.max(15,D),h=t.node();if(h.getComputedTextLength()>L){const T="...";let P=i;for(;P.length>0;){if(P=i.substring(0,P.length-1),P.length===0){t.text(T),h.getComputedTextLength()>L&&t.text("");break}if(t.text(P+T),h.getComputedTextLength()<=L)break}}}),d.showValues!==!1&&Y.append("text").attr("class","treemapSectionValue").attr("x",e=>e.x1-e.x0-10).attr("y",U/2).attr("text-anchor","end").attr("dominant-baseline","middle").text(e=>e.value?B(e.value):"").attr("font-style","italic").attr("style",e=>{if(e.depth===0)return"display: none;";const t="text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+Q(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",i=(0,f.UG)({cssCompiledStyles:e.data.cssCompiledStyles});return t+i.labelStyles.replace("color:","fill:")});const Ce=ne.leaves(),q=se.selectAll(".treemapLeafGroup").data(Ce).enter().append("g").attr("class",(e,t)=>`treemapNode treemapLeafGroup leaf${t}${e.data.classSelector?` ${e.data.classSelector}`:""}x`).attr("transform",e=>`translate(${e.x0},${e.y0})`);q.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class","treemapLeaf").attr("fill",e=>e.parent?j(e.parent.data.name):j(e.data.name)).attr("style",e=>(0,f.UG)({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",e=>e.parent?j(e.parent.data.name):j(e.data.name)).attr("stroke-width",3),q.append("clipPath").attr("id",(e,t)=>`clip-${l}-${t}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-4)).attr("height",e=>Math.max(0,e.y1-e.y0-4)),q.append("text").attr("class","treemapLabel").attr("x",e=>(e.x1-e.x0)/2).attr("y",e=>(e.y1-e.y0)/2).attr("style",e=>{const t="text-anchor: middle; dominant-baseline: middle; font-size: 38px;fill:"+Q(e.data.name)+";",i=(0,f.UG)({cssCompiledStyles:e.data.cssCompiledStyles});return t+i.labelStyles.replace("color:","fill:")}).attr("clip-path",(e,t)=>`url(#clip-${l}-${t})`).text(e=>e.data.name).each(function(e){const t=(0,p.Ys)(this),i=e.x1-e.x0,x=e.y1-e.y0,W=t.node(),D=4,O=i-2*D,L=x-2*D;if(O<10||L<10){t.style("display","none");return}let h=parseInt(t.style("font-size"),10);const F=8,T=28,P=.6,$=6,Z=2;for(;W.getComputedTextLength()>O&&h>F;)h--,t.style("font-size",`${h}px`);let V=Math.max($,Math.min(T,Math.round(h*P))),ee=h+Z+V;for(;ee>L&&h>F&&(h--,V=Math.max($,Math.min(T,Math.round(h*P))),!(V<$&&h===F));)t.style("font-size",`${h}px`),ee=h+Z+V,V<=$&&ee>L;t.style("font-size",`${h}px`),(W.getComputedTextLength()>O||h<F||L<h)&&t.style("display","none")}),d.showValues!==!1&&q.append("text").attr("class","treemapValue").attr("x",t=>(t.x1-t.x0)/2).attr("y",function(t){return(t.y1-t.y0)/2}).attr("style",t=>{const i="text-anchor: middle; dominant-baseline: hanging; font-size: 28px;fill:"+Q(t.data.name)+";",x=(0,f.UG)({cssCompiledStyles:t.data.cssCompiledStyles});return i+x.labelStyles.replace("color:","fill:")}).attr("clip-path",(t,i)=>`url(#clip-${l}-${i})`).text(t=>t.value?B(t.value):"").each(function(t){const i=(0,p.Ys)(this),x=this.parentNode;if(!x){i.style("display","none");return}const W=(0,p.Ys)(x).select(".treemapLabel");if(W.empty()||W.style("display")==="none"){i.style("display","none");return}const D=parseFloat(W.style("font-size")),O=28,L=.6,h=6,F=2,T=Math.max(h,Math.min(O,Math.round(D*L)));i.style("font-size",`${T}px`);const $=(t.y1-t.y0)/2+D/2+F;i.attr("y",$);const Z=t.x1-t.x0,Te=t.y1-t.y0-4,we=Z-2*4;i.node().getComputedTextLength()>we||$+T>Te||T<h?i.style("display","none"):i.style("display",null)});const be=(re=d.diagramPadding)!=null?re:8;(0,v.j)(C,be,"flowchart",(d==null?void 0:d.useMaxWidth)||!1)},"draw"),ue=(0,r.eW)(function(g,l){return l.db.getClasses()},"getClasses"),me={draw:he,getClasses:ue},fe={sectionStrokeColor:"black",sectionStrokeWidth:"1",sectionFillColor:"#efefef",leafStrokeColor:"black",leafStrokeWidth:"1",leafFillColor:"#efefef",labelColor:"black",labelFontSize:"12px",valueFontSize:"10px",valueColor:"black",titleColor:"black",titleFontSize:"14px"},ye=(0,r.eW)(({treemap:g}={})=>{const l=(0,b.Rb)(fe,g);return`
2
+ .treemapNode.section {
3
+ stroke: ${l.sectionStrokeColor};
4
+ stroke-width: ${l.sectionStrokeWidth};
5
+ fill: ${l.sectionFillColor};
6
+ }
7
+ .treemapNode.leaf {
8
+ stroke: ${l.leafStrokeColor};
9
+ stroke-width: ${l.leafStrokeWidth};
10
+ fill: ${l.leafFillColor};
11
+ }
12
+ .treemapLabel {
13
+ fill: ${l.labelColor};
14
+ font-size: ${l.labelFontSize};
15
+ }
16
+ .treemapValue {
17
+ fill: ${l.valueColor};
18
+ font-size: ${l.valueFontSize};
19
+ }
20
+ .treemapTitle {
21
+ fill: ${l.titleColor};
22
+ font-size: ${l.titleFontSize};
23
+ }
24
+ `},"getStyles"),ge=ye,Se={parser:I,get db(){return new M},renderer:me,styles:ge}}}]);
25
+ }());
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_alife_paul_ai_assistant=self.webpackChunk_alife_paul_ai_assistant||[]).push([[8749],{88749:function(H,L,c){c.d(L,{bK:function(){return ii}});var u=c(70870),P=c(50751),y=0;function O(e){var n=++y;return(0,P.Z)(e)+n}var C=O,x=c(62002),M=c(27961),g=c(43836),j=Math.ceil,G=Math.max;function F(e,n,r,t){for(var i=-1,a=G(j((n-e)/(r||1)),0),o=Array(a);a--;)o[t?a:++i]=e,e+=r;return o}var U=F,W=c(50439),k=c(94099);function B(e){return function(n,r,t){return t&&typeof t!="number"&&(0,W.Z)(n,r,t)&&(r=t=void 0),n=(0,k.Z)(n),r===void 0?(r=n,n=0):r=(0,k.Z)(r),t=t===void 0?n<r?1:-1:(0,k.Z)(t),U(n,r,t,e)}}var V=B,I=V(),D=I,S=c(45625);class m{constructor(){var n={};n._next=n._prev=n,this._sentinel=n}dequeue(){var n=this._sentinel,r=n._prev;if(r!==n)return z(r),r}enqueue(n){var r=this._sentinel;n._prev&&n._next&&z(n),n._next=r._next,r._next._prev=n,r._next=n,n._prev=r}toString(){for(var n=[],r=this._sentinel,t=r._prev;t!==r;)n.push(JSON.stringify(t,X)),t=t._prev;return"["+n.join(", ")+"]"}}function z(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function X(e,n){if(e!=="_next"&&e!=="_prev")return n}var ve=x.Z(1);function re(e,n){if(e.nodeCount()<=1)return[];var r=v(e,n||ve),t=K(r.graph,r.buckets,r.zeroIdx);return M.Z(g.Z(t,function(i){return e.outEdges(i.v,i.w)}))}function K(e,n,r){for(var t=[],i=n[n.length-1],a=n[0],o;e.nodeCount();){for(;o=a.dequeue();)h(e,n,r,o);for(;o=i.dequeue();)h(e,n,r,o);if(e.nodeCount()){for(var s=n.length-2;s>0;--s)if(o=n[s].dequeue(),o){t=t.concat(h(e,n,r,o,!0));break}}}return t}function h(e,n,r,t,i){var a=i?[]:void 0;return u.Z(e.inEdges(t.v),function(o){var s=e.edge(o),d=e.node(o.v);i&&a.push({v:o.v,w:o.w}),d.out-=s,Z(n,r,d)}),u.Z(e.outEdges(t.v),function(o){var s=e.edge(o),d=o.w,f=e.node(d);f.in-=s,Z(n,r,f)}),e.removeNode(t.v),a}function v(e,n){var r=new S.k,t=0,i=0;u.Z(e.nodes(),function(s){r.setNode(s,{v:s,in:0,out:0})}),u.Z(e.edges(),function(s){var d=r.edge(s.v,s.w)||0,f=n(s),l=d+f;r.setEdge(s.v,s.w,l),i=Math.max(i,r.node(s.v).out+=f),t=Math.max(t,r.node(s.w).in+=f)});var a=D(i+t+3).map(function(){return new m}),o=t+1;return u.Z(r.nodes(),function(s){Z(a,o,r.node(s))}),{graph:r,buckets:a,zeroIdx:o}}function Z(e,n,r){r.out?r.in?e[r.out-r.in+n].enqueue(r):e[e.length-1].enqueue(r):e[0].enqueue(r)}function w(e){var n=e.graph().acyclicer==="greedy"?re(e,r(e)):N(e);u.Z(n,function(t){var i=e.edge(t);e.removeEdge(t),i.forwardName=t.name,i.reversed=!0,e.setEdge(t.w,t.v,i,C("rev"))});function r(t){return function(i){return t.edge(i).weight}}}function N(e){var n=[],r={},t={};function i(a){Object.prototype.hasOwnProperty.call(t,a)||(t[a]=!0,r[a]=!0,u.Z(e.outEdges(a),function(o){Object.prototype.hasOwnProperty.call(r,o.w)?n.push(o):i(o.w)}),delete r[a])}return u.Z(e.nodes(),i),n}function R(e){u.Z(e.edges(),function(n){var r=e.edge(n);if(r.reversed){e.removeEdge(n);var t=r.forwardName;delete r.reversed,delete r.forwardName,e.setEdge(n.w,n.v,r,t)}})}var A=c(40987),$=c(51795),vn=c(75487);function pn(e,n){return(0,$.Z)(e,n,function(r,t){return(0,vn.Z)(e,t)})}var mn=pn,Zn=c(81211),gn=c(27227);function bn(e){return(0,gn.Z)((0,Zn.Z)(e,void 0,M.Z),e+"")}var wn=bn,_n=wn(function(e,n){return e==null?{}:mn(e,n)}),de=_n,En=c(3688),Ce=c(58e3);function yn(e,n){return e>n}var On=yn,Ne=c(69203);function Pn(e){return e&&e.length?(0,Ce.Z)(e,Ne.Z,On):void 0}var Q=Pn,ue=c(935),xn=c(74752),Ie=c(2693),pe=c(2e3);function Ln(e,n){var r={};return n=(0,pe.Z)(n,3),(0,Ie.Z)(e,function(t,i,a){(0,xn.Z)(r,i,n(t,i,a))}),r}var fe=Ln,J=c(49360),te=c(3729),Me=c(17452),Cn=c(66092),Nn=function(){return Cn.Z.Date.now()},Re=Nn;function ee(e,n,r,t){var i;do i=C(t);while(e.hasNode(i));return r.dummy=n,e.setNode(i,r),i}function In(e){var n=new S.k().setGraph(e.graph());return u.Z(e.nodes(),function(r){n.setNode(r,e.node(r))}),u.Z(e.edges(),function(r){var t=n.edge(r.v,r.w)||{weight:0,minlen:1},i=e.edge(r);n.setEdge(r.v,r.w,{weight:t.weight+i.weight,minlen:Math.max(t.minlen,i.minlen)})}),n}function Te(e){var n=new S.k({multigraph:e.isMultigraph()}).setGraph(e.graph());return u.Z(e.nodes(),function(r){e.children(r).length||n.setNode(r,e.node(r))}),u.Z(e.edges(),function(r){n.setEdge(r,e.edge(r))}),n}function Ci(e){var n=_.map(e.nodes(),function(r){var t={};return _.forEach(e.outEdges(r),function(i){t[i.w]=(t[i.w]||0)+e.edge(i).weight}),t});return _.zipObject(e.nodes(),n)}function Ni(e){var n=_.map(e.nodes(),function(r){var t={};return _.forEach(e.inEdges(r),function(i){t[i.v]=(t[i.v]||0)+e.edge(i).weight}),t});return _.zipObject(e.nodes(),n)}function je(e,n){var r=e.x,t=e.y,i=n.x-r,a=n.y-t,o=e.width/2,s=e.height/2;if(!i&&!a)throw new Error("Not possible to find intersection inside of the rectangle");var d,f;return Math.abs(a)*o>Math.abs(i)*s?(a<0&&(s=-s),d=s*i/a,f=s):(i<0&&(o=-o),d=o,f=o*a/i),{x:r+d,y:t+f}}function he(e){var n=g.Z(D(De(e)+1),function(){return[]});return u.Z(e.nodes(),function(r){var t=e.node(r),i=t.rank;J.Z(i)||(n[i][t.order]=r)}),n}function Mn(e){var n=te.Z(g.Z(e.nodes(),function(r){return e.node(r).rank}));u.Z(e.nodes(),function(r){var t=e.node(r);Me.Z(t,"rank")&&(t.rank-=n)})}function Rn(e){var n=te.Z(g.Z(e.nodes(),function(a){return e.node(a).rank})),r=[];u.Z(e.nodes(),function(a){var o=e.node(a).rank-n;r[o]||(r[o]=[]),r[o].push(a)});var t=0,i=e.graph().nodeRankFactor;u.Z(r,function(a,o){J.Z(a)&&o%i!==0?--t:t&&u.Z(a,function(s){e.node(s).rank+=t})})}function ke(e,n,r,t){var i={width:0,height:0};return arguments.length>=4&&(i.rank=r,i.order=t),ee(e,"border",i,n)}function De(e){return Q(g.Z(e.nodes(),function(n){var r=e.node(n).rank;if(!J.Z(r))return r}))}function Tn(e,n){var r={lhs:[],rhs:[]};return u.Z(e,function(t){n(t)?r.lhs.push(t):r.rhs.push(t)}),r}function jn(e,n){var r=Re();try{return n()}finally{console.log(e+" time: "+(Re()-r)+"ms")}}function kn(e,n){return n()}function Dn(e){function n(r){var t=e.children(r),i=e.node(r);if(t.length&&u.Z(t,n),Object.prototype.hasOwnProperty.call(i,"minRank")){i.borderLeft=[],i.borderRight=[];for(var a=i.minRank,o=i.maxRank+1;a<o;++a)Se(e,"borderLeft","_bl",r,i,a),Se(e,"borderRight","_br",r,i,a)}}u.Z(e.children(),n)}function Se(e,n,r,t,i,a){var o={width:0,height:0,rank:a,borderType:n},s=i[n][a-1],d=ee(e,"border",o,r);i[n][a]=d,e.setParent(d,t),s&&e.setEdge(s,d,{weight:1})}function Sn(e){var n=e.graph().rankdir.toLowerCase();(n==="lr"||n==="rl")&&Ae(e)}function An(e){var n=e.graph().rankdir.toLowerCase();(n==="bt"||n==="rl")&&Fn(e),(n==="lr"||n==="rl")&&(Bn(e),Ae(e))}function Ae(e){u.Z(e.nodes(),function(n){Fe(e.node(n))}),u.Z(e.edges(),function(n){Fe(e.edge(n))})}function Fe(e){var n=e.width;e.width=e.height,e.height=n}function Fn(e){u.Z(e.nodes(),function(n){me(e.node(n))}),u.Z(e.edges(),function(n){var r=e.edge(n);u.Z(r.points,me),Object.prototype.hasOwnProperty.call(r,"y")&&me(r)})}function me(e){e.y=-e.y}function Bn(e){u.Z(e.nodes(),function(n){Ze(e.node(n))}),u.Z(e.edges(),function(n){var r=e.edge(n);u.Z(r.points,Ze),Object.prototype.hasOwnProperty.call(r,"x")&&Ze(r)})}function Ze(e){var n=e.x;e.x=e.y,e.y=n}function Wn(e){e.graph().dummyChains=[],u.Z(e.edges(),function(n){Un(e,n)})}function Un(e,n){var r=n.v,t=e.node(r).rank,i=n.w,a=e.node(i).rank,o=n.name,s=e.edge(n),d=s.labelRank;if(a!==t+1){e.removeEdge(n);var f=void 0,l,p;for(p=0,++t;t<a;++p,++t)s.points=[],f={width:0,height:0,edgeLabel:s,edgeObj:n,rank:t},l=ee(e,"edge",f,"_d"),t===d&&(f.width=s.width,f.height=s.height,f.dummy="edge-label",f.labelpos=s.labelpos),e.setEdge(r,l,{weight:s.weight},o),p===0&&e.graph().dummyChains.push(l),r=l;e.setEdge(r,i,{weight:s.weight},o)}}function Vn(e){u.Z(e.graph().dummyChains,function(n){var r=e.node(n),t=r.edgeLabel,i;for(e.setEdge(r.edgeObj,t);r.dummy;)i=e.successors(n)[0],e.removeNode(n),t.points.push({x:r.x,y:r.y}),r.dummy==="edge-label"&&(t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height),n=i,r=e.node(n)})}var zn=c(40676);function Gn(e,n){return e&&e.length?(0,Ce.Z)(e,(0,pe.Z)(n,2),zn.Z):void 0}var ge=Gn;function be(e){var n={};function r(t){var i=e.node(t);if(Object.prototype.hasOwnProperty.call(n,t))return i.rank;n[t]=!0;var a=te.Z(g.Z(e.outEdges(t),function(o){return r(o.w)-e.edge(o).minlen}));return(a===Number.POSITIVE_INFINITY||a===void 0||a===null)&&(a=0),i.rank=a}u.Z(e.sources(),r)}function ie(e,n){return e.node(n.w).rank-e.node(n.v).rank-e.edge(n).minlen}function Be(e){var n=new S.k({directed:!1}),r=e.nodes()[0],t=e.nodeCount();n.setNode(r,{});for(var i,a;Kn(n,e)<t;)i=Yn(n,e),a=n.hasNode(i.v)?ie(e,i):-ie(e,i),Hn(n,e,a);return n}function Kn(e,n){function r(t){u.Z(n.nodeEdges(t),function(i){var a=i.v,o=t===a?i.w:a;!e.hasNode(o)&&!ie(n,i)&&(e.setNode(o,{}),e.setEdge(t,o,{}),r(o))})}return u.Z(e.nodes(),r),e.nodeCount()}function Yn(e,n){return ge(n.edges(),function(r){if(e.hasNode(r.v)!==e.hasNode(r.w))return ie(n,r)})}function Hn(e,n,r){u.Z(e.nodes(),function(t){n.node(t).rank+=r})}var we=c(38656),ae=c(19601),Xn=x.Z(1);function Ii(e,n,r,t){return Jn(e,String(n),r||Xn,t||function(i){return e.outEdges(i)})}function Jn(e,n,r,t){var i={},a=new PriorityQueue,o,s,d=function(f){var l=f.v!==o?f.v:f.w,p=i[l],b=r(f),E=s.distance+b;if(b<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+f+" Weight: "+b);E<p.distance&&(p.distance=E,p.predecessor=o,a.decrease(l,E))};for(e.nodes().forEach(function(f){var l=f===n?0:Number.POSITIVE_INFINITY;i[f]={distance:l},a.add(f,l)});a.size()>0&&(o=a.removeMin(),s=i[o],s.distance!==Number.POSITIVE_INFINITY);)t(o).forEach(d);return i}function Mi(e,n,r){return _.transform(e.nodes(),function(t,i){t[i]=dijkstra(e,i,n,r)},{})}var $n=x.Z(1);function Ri(e,n,r){return Qn(e,n||$n,r||function(t){return e.outEdges(t)})}function Qn(e,n,r){var t={},i=e.nodes();return i.forEach(function(a){t[a]={},t[a][a]={distance:0},i.forEach(function(o){a!==o&&(t[a][o]={distance:Number.POSITIVE_INFINITY})}),r(a).forEach(function(o){var s=o.v===a?o.w:o.v,d=n(o);t[a][s]={distance:d,predecessor:a}})}),i.forEach(function(a){var o=t[a];i.forEach(function(s){var d=t[s];i.forEach(function(f){var l=d[a],p=o[f],b=d[f],E=l.distance+p.distance;E<b.distance&&(b.distance=E,b.predecessor=p.predecessor)})})}),t}var qn=c(39473),er=c(83970),nr=c(50585),rr=c(36378),tr=c(54193),ir=(0,tr.Z)("length"),ar=ir,or="\\ud800-\\udfff",sr="\\u0300-\\u036f",dr="\\ufe20-\\ufe2f",ur="\\u20d0-\\u20ff",fr=sr+dr+ur,hr="\\ufe0e\\ufe0f",cr="\\u200d",lr=RegExp("["+cr+or+fr+hr+"]");function vr(e){return lr.test(e)}var pr=vr,We="\\ud800-\\udfff",mr="\\u0300-\\u036f",Zr="\\ufe20-\\ufe2f",gr="\\u20d0-\\u20ff",br=mr+Zr+gr,wr="\\ufe0e\\ufe0f",_r="["+We+"]",_e="["+br+"]",Ee="\\ud83c[\\udffb-\\udfff]",Er="(?:"+_e+"|"+Ee+")",Ue="[^"+We+"]",Ve="(?:\\ud83c[\\udde6-\\uddff]){2}",ze="[\\ud800-\\udbff][\\udc00-\\udfff]",yr="\\u200d",Ge=Er+"?",Ke="["+wr+"]?",Or="(?:"+yr+"(?:"+[Ue,Ve,ze].join("|")+")"+Ke+Ge+")*",Pr=Ke+Ge+Or,xr="(?:"+[Ue+_e+"?",_e,Ve,ze,_r].join("|")+")",Ye=RegExp(Ee+"(?="+Ee+")|"+xr+Pr,"g");function Lr(e){for(var n=Ye.lastIndex=0;Ye.test(e);)++n;return n}var Cr=Lr;function Nr(e){return pr(e)?Cr(e):ar(e)}var Ir=Nr,Mr="[object Map]",Rr="[object Set]";function Tr(e){if(e==null)return 0;if((0,nr.Z)(e))return(0,rr.Z)(e)?Ir(e):e.length;var n=(0,er.Z)(e);return n==Mr||n==Rr?e.size:(0,qn.Z)(e).length}var jr=Tr;kr.CycleException=ce;function kr(e){var n={},r={},t=[];function i(a){if(Object.prototype.hasOwnProperty.call(r,a))throw new ce;Object.prototype.hasOwnProperty.call(n,a)||(r[a]=!0,n[a]=!0,u.Z(e.predecessors(a),i),delete r[a],t.push(a))}if(u.Z(e.sinks(),i),jr(n)!==e.nodeCount())throw new ce;return t}function ce(){}ce.prototype=new Error;function Ti(e){try{topsort(e)}catch(n){if(n instanceof CycleException)return!1;throw n}return!0}var He=c(27771);function Xe(e,n,r){He.Z(n)||(n=[n]);var t=(e.isDirected()?e.successors:e.neighbors).bind(e),i=[],a={};return u.Z(n,function(o){if(!e.hasNode(o))throw new Error("Graph does not have node: "+o);Je(e,o,r==="post",a,t,i)}),i}function Je(e,n,r,t,i,a){Object.prototype.hasOwnProperty.call(t,n)||(t[n]=!0,r||a.push(n),u.Z(i(n),function(o){Je(e,o,r,t,i,a)}),r&&a.push(n))}function Dr(e,n){return Xe(e,n,"post")}function Sr(e,n){return Xe(e,n,"pre")}var ji=c(54585);function ki(e,n){var r=new Graph,t={},i=new PriorityQueue,a;function o(d){var f=d.v===a?d.w:d.v,l=i.priority(f);if(l!==void 0){var p=n(d);p<l&&(t[f]=a,i.decrease(f,p))}}if(e.nodeCount()===0)return r;_.each(e.nodes(),function(d){i.add(d,Number.POSITIVE_INFINITY),r.setNode(d)}),i.decrease(e.nodes()[0],0);for(var s=!1;i.size()>0;){if(a=i.removeMin(),Object.prototype.hasOwnProperty.call(t,a))r.setEdge(a,t[a]);else{if(s)throw new Error("Input graph is not connected: "+e);s=!0}e.nodeEdges(a).forEach(o)}return r}q.initLowLimValues=Oe,q.initCutValues=ye,q.calcCutValue=$e,q.leaveEdge=qe,q.enterEdge=en,q.exchangeEdges=nn;function q(e){e=In(e),be(e);var n=Be(e);Oe(n),ye(n,e);for(var r,t;r=qe(n);)t=en(n,e,r),nn(n,e,r,t)}function ye(e,n){var r=Dr(e,e.nodes());r=r.slice(0,r.length-1),u.Z(r,function(t){Ar(e,n,t)})}function Ar(e,n,r){var t=e.node(r),i=t.parent;e.edge(r,i).cutvalue=$e(e,n,r)}function $e(e,n,r){var t=e.node(r),i=t.parent,a=!0,o=n.edge(r,i),s=0;return o||(a=!1,o=n.edge(i,r)),s=o.weight,u.Z(n.nodeEdges(r),function(d){var f=d.v===r,l=f?d.w:d.v;if(l!==i){var p=f===a,b=n.edge(d).weight;if(s+=p?b:-b,Br(e,r,l)){var E=e.edge(r,l).cutvalue;s+=p?-E:E}}}),s}function Oe(e,n){arguments.length<2&&(n=e.nodes()[0]),Qe(e,{},1,n)}function Qe(e,n,r,t,i){var a=r,o=e.node(t);return n[t]=!0,u.Z(e.neighbors(t),function(s){Object.prototype.hasOwnProperty.call(n,s)||(r=Qe(e,n,r,s,t))}),o.low=a,o.lim=r++,i?o.parent=i:delete o.parent,r}function qe(e){return we.Z(e.edges(),function(n){return e.edge(n).cutvalue<0})}function en(e,n,r){var t=r.v,i=r.w;n.hasEdge(t,i)||(t=r.w,i=r.v);var a=e.node(t),o=e.node(i),s=a,d=!1;a.lim>o.lim&&(s=o,d=!0);var f=ae.Z(n.edges(),function(l){return d===rn(e,e.node(l.v),s)&&d!==rn(e,e.node(l.w),s)});return ge(f,function(l){return ie(n,l)})}function nn(e,n,r,t){var i=r.v,a=r.w;e.removeEdge(i,a),e.setEdge(t.v,t.w,{}),Oe(e),ye(e,n),Fr(e,n)}function Fr(e,n){var r=we.Z(e.nodes(),function(i){return!n.node(i).parent}),t=Sr(e,r);t=t.slice(1),u.Z(t,function(i){var a=e.node(i).parent,o=n.edge(i,a),s=!1;o||(o=n.edge(a,i),s=!0),n.node(i).rank=n.node(a).rank+(s?o.minlen:-o.minlen)})}function Br(e,n,r){return e.hasEdge(n,r)}function rn(e,n,r){return r.low<=n.lim&&n.lim<=r.lim}function Wr(e){switch(e.graph().ranker){case"network-simplex":tn(e);break;case"tight-tree":Vr(e);break;case"longest-path":Ur(e);break;default:tn(e)}}var Ur=be;function Vr(e){be(e),Be(e)}function tn(e){q(e)}var ne=c(34148),le=c(92344);function zr(e){var n=ee(e,"root",{},"_root"),r=Gr(e),t=Q(ne.Z(r))-1,i=2*t+1;e.graph().nestingRoot=n,u.Z(e.edges(),function(o){e.edge(o).minlen*=i});var a=Kr(e)+1;u.Z(e.children(),function(o){an(e,n,i,a,t,r,o)}),e.graph().nodeRankFactor=i}function an(e,n,r,t,i,a,o){var s=e.children(o);if(!s.length){o!==n&&e.setEdge(n,o,{weight:0,minlen:r});return}var d=ke(e,"_bt"),f=ke(e,"_bb"),l=e.node(o);e.setParent(d,o),l.borderTop=d,e.setParent(f,o),l.borderBottom=f,u.Z(s,function(p){an(e,n,r,t,i,a,p);var b=e.node(p),E=b.borderTop?b.borderTop:p,T=b.borderBottom?b.borderBottom:p,Y=b.borderTop?t:2*t,se=E!==T?1:i-a[o]+1;e.setEdge(d,E,{weight:Y,minlen:se,nestingEdge:!0}),e.setEdge(T,f,{weight:Y,minlen:se,nestingEdge:!0})}),e.parent(o)||e.setEdge(n,d,{weight:0,minlen:i+a[o]})}function Gr(e){var n={};function r(t,i){var a=e.children(t);a&&a.length&&u.Z(a,function(o){r(o,i+1)}),n[t]=i}return u.Z(e.children(),function(t){r(t,1)}),n}function Kr(e){return le.Z(e.edges(),function(n,r){return n+e.edge(r).weight},0)}function Yr(e){var n=e.graph();e.removeNode(n.nestingRoot),delete n.nestingRoot,u.Z(e.edges(),function(r){var t=e.edge(r);t.nestingEdge&&e.removeEdge(r)})}var Hr=c(45401),Xr=1,Jr=4;function $r(e){return(0,Hr.Z)(e,Xr|Jr)}var Qr=$r;function qr(e,n,r){var t={},i;u.Z(r,function(a){for(var o=e.parent(a),s,d;o;){if(s=e.parent(o),s?(d=t[s],t[s]=o):(d=i,i=o),d&&d!==o){n.setEdge(d,o);return}o=s}})}function et(e,n,r){var t=nt(e),i=new S.k({compound:!0}).setGraph({root:t}).setDefaultNodeLabel(function(a){return e.node(a)});return u.Z(e.nodes(),function(a){var o=e.node(a),s=e.parent(a);(o.rank===n||o.minRank<=n&&n<=o.maxRank)&&(i.setNode(a),i.setParent(a,s||t),u.Z(e[r](a),function(d){var f=d.v===a?d.w:d.v,l=i.edge(f,a),p=J.Z(l)?0:l.weight;i.setEdge(f,a,{weight:e.edge(d).weight+p})}),Object.prototype.hasOwnProperty.call(o,"minRank")&&i.setNode(a,{borderLeft:o.borderLeft[n],borderRight:o.borderRight[n]}))}),i}function nt(e){for(var n;e.hasNode(n=C("_root")););return n}var rt=c(72954);function tt(e,n,r){for(var t=-1,i=e.length,a=n.length,o={};++t<i;){var s=t<a?n[t]:void 0;r(o,e[t],s)}return o}var it=tt;function at(e,n){return it(e||[],n||[],rt.Z)}var ot=at,st=c(10626),Pe=c(74073),dt=c(13317),ut=c(21018);function ft(e,n){var r=e.length;for(e.sort(n);r--;)e[r]=e[r].value;return e}var ht=ft,ct=c(21162),on=c(72714);function lt(e,n){if(e!==n){var r=e!==void 0,t=e===null,i=e===e,a=(0,on.Z)(e),o=n!==void 0,s=n===null,d=n===n,f=(0,on.Z)(n);if(!s&&!f&&!a&&e>n||a&&o&&d&&!s&&!f||t&&o&&d||!r&&d||!i)return 1;if(!t&&!a&&!f&&e<n||f&&r&&i&&!t&&!a||s&&r&&i||!o&&i||!d)return-1}return 0}var vt=lt;function pt(e,n,r){for(var t=-1,i=e.criteria,a=n.criteria,o=i.length,s=r.length;++t<o;){var d=vt(i[t],a[t]);if(d){if(t>=s)return d;var f=r[t];return d*(f=="desc"?-1:1)}}return e.index-n.index}var mt=pt;function Zt(e,n,r){n.length?n=(0,Pe.Z)(n,function(a){return(0,He.Z)(a)?function(o){return(0,dt.Z)(o,a.length===1?a[0]:a)}:a}):n=[Ne.Z];var t=-1;n=(0,Pe.Z)(n,(0,ct.Z)(pe.Z));var i=(0,ut.Z)(e,function(a,o,s){var d=(0,Pe.Z)(n,function(f){return f(a)});return{criteria:d,index:++t,value:a}});return ht(i,function(a,o){return mt(a,o,r)})}var gt=Zt,bt=c(69581),wt=(0,bt.Z)(function(e,n){if(e==null)return[];var r=n.length;return r>1&&(0,W.Z)(e,n[0],n[1])?n=[]:r>2&&(0,W.Z)(n[0],n[1],n[2])&&(n=[n[0]]),gt(e,(0,st.Z)(n,1),[])}),oe=wt;function _t(e,n){for(var r=0,t=1;t<n.length;++t)r+=Et(e,n[t-1],n[t]);return r}function Et(e,n,r){for(var t=ot(r,g.Z(r,function(f,l){return l})),i=M.Z(g.Z(n,function(f){return oe(g.Z(e.outEdges(f),function(l){return{pos:t[l.w],weight:e.edge(l).weight}}),"pos")})),a=1;a<r.length;)a<<=1;var o=2*a-1;a-=1;var s=g.Z(new Array(o),function(){return 0}),d=0;return u.Z(i.forEach(function(f){var l=f.pos+a;s[l]+=f.weight;for(var p=0;l>0;)l%2&&(p+=s[l+1]),l=l-1>>1,s[l]+=f.weight;d+=f.weight*p})),d}function yt(e){var n={},r=ae.Z(e.nodes(),function(s){return!e.children(s).length}),t=Q(g.Z(r,function(s){return e.node(s).rank})),i=g.Z(D(t+1),function(){return[]});function a(s){if(!Me.Z(n,s)){n[s]=!0;var d=e.node(s);i[d.rank].push(s),u.Z(e.successors(s),a)}}var o=oe(r,function(s){return e.node(s).rank});return u.Z(o,a),i}function Ot(e,n){return g.Z(n,function(r){var t=e.inEdges(r);if(t.length){var i=le.Z(t,function(a,o){var s=e.edge(o),d=e.node(o.v);return{sum:a.sum+s.weight*d.order,weight:a.weight+s.weight}},{sum:0,weight:0});return{v:r,barycenter:i.sum/i.weight,weight:i.weight}}else return{v:r}})}function Pt(e,n){var r={};u.Z(e,function(i,a){var o=r[i.v]={indegree:0,in:[],out:[],vs:[i.v],i:a};J.Z(i.barycenter)||(o.barycenter=i.barycenter,o.weight=i.weight)}),u.Z(n.edges(),function(i){var a=r[i.v],o=r[i.w];!J.Z(a)&&!J.Z(o)&&(o.indegree++,a.out.push(r[i.w]))});var t=ae.Z(r,function(i){return!i.indegree});return xt(t)}function xt(e){var n=[];function r(a){return function(o){o.merged||(J.Z(o.barycenter)||J.Z(a.barycenter)||o.barycenter>=a.barycenter)&&Lt(a,o)}}function t(a){return function(o){o.in.push(a),--o.indegree===0&&e.push(o)}}for(;e.length;){var i=e.pop();n.push(i),u.Z(i.in.reverse(),r(i)),u.Z(i.out,t(i))}return g.Z(ae.Z(n,function(a){return!a.merged}),function(a){return de(a,["vs","i","barycenter","weight"])})}function Lt(e,n){var r=0,t=0;e.weight&&(r+=e.barycenter*e.weight,t+=e.weight),n.weight&&(r+=n.barycenter*n.weight,t+=n.weight),e.vs=n.vs.concat(e.vs),e.barycenter=r/t,e.weight=t,e.i=Math.min(n.i,e.i),n.merged=!0}function Ct(e,n){var r=Tn(e,function(l){return Object.prototype.hasOwnProperty.call(l,"barycenter")}),t=r.lhs,i=oe(r.rhs,function(l){return-l.i}),a=[],o=0,s=0,d=0;t.sort(Nt(!!n)),d=sn(a,i,d),u.Z(t,function(l){d+=l.vs.length,a.push(l.vs),o+=l.barycenter*l.weight,s+=l.weight,d=sn(a,i,d)});var f={vs:M.Z(a)};return s&&(f.barycenter=o/s,f.weight=s),f}function sn(e,n,r){for(var t;n.length&&(t=ue.Z(n)).i<=r;)n.pop(),e.push(t.vs),r++;return r}function Nt(e){return function(n,r){return n.barycenter<r.barycenter?-1:n.barycenter>r.barycenter?1:e?r.i-n.i:n.i-r.i}}function dn(e,n,r,t){var i=e.children(n),a=e.node(n),o=a?a.borderLeft:void 0,s=a?a.borderRight:void 0,d={};o&&(i=ae.Z(i,function(T){return T!==o&&T!==s}));var f=Ot(e,i);u.Z(f,function(T){if(e.children(T.v).length){var Y=dn(e,T.v,r,t);d[T.v]=Y,Object.prototype.hasOwnProperty.call(Y,"barycenter")&&Mt(T,Y)}});var l=Pt(f,r);It(l,d);var p=Ct(l,t);if(o&&(p.vs=M.Z([o,p.vs,s]),e.predecessors(o).length)){var b=e.node(e.predecessors(o)[0]),E=e.node(e.predecessors(s)[0]);Object.prototype.hasOwnProperty.call(p,"barycenter")||(p.barycenter=0,p.weight=0),p.barycenter=(p.barycenter*p.weight+b.order+E.order)/(p.weight+2),p.weight+=2}return p}function It(e,n){u.Z(e,function(r){r.vs=M.Z(r.vs.map(function(t){return n[t]?n[t].vs:t}))})}function Mt(e,n){J.Z(e.barycenter)?(e.barycenter=n.barycenter,e.weight=n.weight):(e.barycenter=(e.barycenter*e.weight+n.barycenter*n.weight)/(e.weight+n.weight),e.weight+=n.weight)}function Rt(e){var n=De(e),r=un(e,D(1,n+1),"inEdges"),t=un(e,D(n-1,-1,-1),"outEdges"),i=yt(e);fn(e,i);for(var a=Number.POSITIVE_INFINITY,o,s=0,d=0;d<4;++s,++d){Tt(s%2?r:t,s%4>=2),i=he(e);var f=_t(e,i);f<a&&(d=0,o=Qr(i),a=f)}fn(e,o)}function un(e,n,r){return g.Z(n,function(t){return et(e,t,r)})}function Tt(e,n){var r=new S.k;u.Z(e,function(t){var i=t.graph().root,a=dn(t,i,r,n);u.Z(a.vs,function(o,s){t.node(o).order=s}),qr(t,r,a.vs)})}function fn(e,n){u.Z(n,function(r){u.Z(r,function(t,i){e.node(t).order=i})})}function jt(e){var n=Dt(e);u.Z(e.graph().dummyChains,function(r){for(var t=e.node(r),i=t.edgeObj,a=kt(e,n,i.v,i.w),o=a.path,s=a.lca,d=0,f=o[d],l=!0;r!==i.w;){if(t=e.node(r),l){for(;(f=o[d])!==s&&e.node(f).maxRank<t.rank;)d++;f===s&&(l=!1)}if(!l){for(;d<o.length-1&&e.node(f=o[d+1]).minRank<=t.rank;)d++;f=o[d]}e.setParent(r,f),r=e.successors(r)[0]}})}function kt(e,n,r,t){var i=[],a=[],o=Math.min(n[r].low,n[t].low),s=Math.max(n[r].lim,n[t].lim),d,f;d=r;do d=e.parent(d),i.push(d);while(d&&(n[d].low>o||s>n[d].lim));for(f=d,d=t;(d=e.parent(d))!==f;)a.push(d);return{path:i.concat(a.reverse()),lca:f}}function Dt(e){var n={},r=0;function t(i){var a=r;u.Z(e.children(i),t),n[i]={low:a,lim:r++}}return u.Z(e.children(),t),n}var hn=c(68882);function St(e,n){return e&&(0,Ie.Z)(e,(0,hn.Z)(n))}var At=St,Ft=c(61395),Bt=c(32957);function Wt(e,n){return e==null?e:(0,Ft.Z)(e,(0,hn.Z)(n),Bt.Z)}var Ut=Wt;function Vt(e,n){var r={};function t(i,a){var o=0,s=0,d=i.length,f=ue.Z(a);return u.Z(a,function(l,p){var b=Gt(e,l),E=b?e.node(b).order:d;(b||l===f)&&(u.Z(a.slice(s,p+1),function(T){u.Z(e.predecessors(T),function(Y){var se=e.node(Y),ln=se.order;(ln<o||E<ln)&&!(se.dummy&&e.node(T).dummy)&&cn(r,Y,T)})}),s=p+1,o=E)}),a}return le.Z(n,t),r}function zt(e,n){var r={};function t(a,o,s,d,f){var l;u.Z(D(o,s),function(p){l=a[p],e.node(l).dummy&&u.Z(e.predecessors(l),function(b){var E=e.node(b);E.dummy&&(E.order<d||E.order>f)&&cn(r,b,l)})})}function i(a,o){var s=-1,d,f=0;return u.Z(o,function(l,p){if(e.node(l).dummy==="border"){var b=e.predecessors(l);b.length&&(d=e.node(b[0]).order,t(o,f,p,s,d),f=p,s=d)}t(o,f,o.length,d,a.length)}),o}return le.Z(n,i),r}function Gt(e,n){if(e.node(n).dummy)return we.Z(e.predecessors(n),function(r){return e.node(r).dummy})}function cn(e,n,r){if(n>r){var t=n;n=r,r=t}Object.prototype.hasOwnProperty.call(e,n)||Object.defineProperty(e,n,{enumerable:!0,configurable:!0,value:{},writable:!0});var i=e[n];Object.defineProperty(i,r,{enumerable:!0,configurable:!0,value:!0,writable:!0})}function Kt(e,n,r){if(n>r){var t=n;n=r,r=t}return!!e[n]&&Object.prototype.hasOwnProperty.call(e[n],r)}function Yt(e,n,r,t){var i={},a={},o={};return u.Z(n,function(s){u.Z(s,function(d,f){i[d]=d,a[d]=d,o[d]=f})}),u.Z(n,function(s){var d=-1;u.Z(s,function(f){var l=t(f);if(l.length){l=oe(l,function(Y){return o[Y]});for(var p=(l.length-1)/2,b=Math.floor(p),E=Math.ceil(p);b<=E;++b){var T=l[b];a[f]===f&&d<o[T]&&!Kt(r,f,T)&&(a[T]=f,a[f]=i[f]=i[T],d=o[T])}}})}),{root:i,align:a}}function Ht(e,n,r,t,i){var a={},o=Xt(e,n,r,i),s=i?"borderLeft":"borderRight";function d(p,b){for(var E=o.nodes(),T=E.pop(),Y={};T;)Y[T]?p(T):(Y[T]=!0,E.push(T),E=E.concat(b(T))),T=E.pop()}function f(p){a[p]=o.inEdges(p).reduce(function(b,E){return Math.max(b,a[E.v]+o.edge(E))},0)}function l(p){var b=o.outEdges(p).reduce(function(T,Y){return Math.min(T,a[Y.w]-o.edge(Y))},Number.POSITIVE_INFINITY),E=e.node(p);b!==Number.POSITIVE_INFINITY&&E.borderType!==s&&(a[p]=Math.max(a[p],b))}return d(f,o.predecessors.bind(o)),d(l,o.successors.bind(o)),u.Z(t,function(p){a[p]=a[r[p]]}),a}function Xt(e,n,r,t){var i=new S.k,a=e.graph(),o=ei(a.nodesep,a.edgesep,t);return u.Z(n,function(s){var d;u.Z(s,function(f){var l=r[f];if(i.setNode(l),d){var p=r[d],b=i.edge(p,l);i.setEdge(p,l,Math.max(o(e,f,d),b||0))}d=f})}),i}function Jt(e,n){return ge(ne.Z(n),function(r){var t=Number.NEGATIVE_INFINITY,i=Number.POSITIVE_INFINITY;return Ut(r,function(a,o){var s=ni(e,o)/2;t=Math.max(a+s,t),i=Math.min(a-s,i)}),t-i})}function $t(e,n){var r=ne.Z(n),t=te.Z(r),i=Q(r);u.Z(["u","d"],function(a){u.Z(["l","r"],function(o){var s=a+o,d=e[s],f;if(d!==n){var l=ne.Z(d);f=o==="l"?t-te.Z(l):i-Q(l),f&&(e[s]=fe(d,function(p){return p+f}))}})})}function Qt(e,n){return fe(e.ul,function(r,t){if(n)return e[n.toLowerCase()][t];var i=oe(g.Z(e,t));return(i[1]+i[2])/2})}function qt(e){var n=he(e),r=A.Z(Vt(e,n),zt(e,n)),t={},i;u.Z(["u","d"],function(o){i=o==="u"?n:ne.Z(n).reverse(),u.Z(["l","r"],function(s){s==="r"&&(i=g.Z(i,function(p){return ne.Z(p).reverse()}));var d=(o==="u"?e.predecessors:e.successors).bind(e),f=Yt(e,i,r,d),l=Ht(e,i,f.root,f.align,s==="r");s==="r"&&(l=fe(l,function(p){return-p})),t[o+s]=l})});var a=Jt(e,t);return $t(t,a),Qt(t,e.graph().align)}function ei(e,n,r){return function(t,i,a){var o=t.node(i),s=t.node(a),d=0,f;if(d+=o.width/2,Object.prototype.hasOwnProperty.call(o,"labelpos"))switch(o.labelpos.toLowerCase()){case"l":f=-o.width/2;break;case"r":f=o.width/2;break}if(f&&(d+=r?f:-f),f=0,d+=(o.dummy?n:e)/2,d+=(s.dummy?n:e)/2,d+=s.width/2,Object.prototype.hasOwnProperty.call(s,"labelpos"))switch(s.labelpos.toLowerCase()){case"l":f=s.width/2;break;case"r":f=-s.width/2;break}return f&&(d+=r?f:-f),f=0,d}}function ni(e,n){return e.node(n).width}function ri(e){e=Te(e),ti(e),At(qt(e),function(n,r){e.node(r).x=n})}function ti(e){var n=he(e),r=e.graph().ranksep,t=0;u.Z(n,function(i){var a=Q(g.Z(i,function(o){return e.node(o).height}));u.Z(i,function(o){e.node(o).y=t+a/2}),t+=a+r})}function ii(e,n){var r=n&&n.debugTiming?jn:kn;r("layout",()=>{var t=r(" buildLayoutGraph",()=>pi(e));r(" runLayout",()=>ai(t,r)),r(" updateInputGraph",()=>oi(e,t))})}function ai(e,n){n(" makeSpaceForEdgeLabels",()=>mi(e)),n(" removeSelfEdges",()=>Pi(e)),n(" acyclic",()=>w(e)),n(" nestingGraph.run",()=>zr(e)),n(" rank",()=>Wr(Te(e))),n(" injectEdgeLabelProxies",()=>Zi(e)),n(" removeEmptyRanks",()=>Rn(e)),n(" nestingGraph.cleanup",()=>Yr(e)),n(" normalizeRanks",()=>Mn(e)),n(" assignRankMinMax",()=>gi(e)),n(" removeEdgeLabelProxies",()=>bi(e)),n(" normalize.run",()=>Wn(e)),n(" parentDummyChains",()=>jt(e)),n(" addBorderSegments",()=>Dn(e)),n(" order",()=>Rt(e)),n(" insertSelfEdges",()=>xi(e)),n(" adjustCoordinateSystem",()=>Sn(e)),n(" position",()=>ri(e)),n(" positionSelfEdges",()=>Li(e)),n(" removeBorderNodes",()=>Oi(e)),n(" normalize.undo",()=>Vn(e)),n(" fixupEdgeLabelCoords",()=>Ei(e)),n(" undoCoordinateSystem",()=>An(e)),n(" translateGraph",()=>wi(e)),n(" assignNodeIntersects",()=>_i(e)),n(" reversePoints",()=>yi(e)),n(" acyclic.undo",()=>R(e))}function oi(e,n){u.Z(e.nodes(),function(r){var t=e.node(r),i=n.node(r);t&&(t.x=i.x,t.y=i.y,n.children(r).length&&(t.width=i.width,t.height=i.height))}),u.Z(e.edges(),function(r){var t=e.edge(r),i=n.edge(r);t.points=i.points,Object.prototype.hasOwnProperty.call(i,"x")&&(t.x=i.x,t.y=i.y)}),e.graph().width=n.graph().width,e.graph().height=n.graph().height}var si=["nodesep","edgesep","ranksep","marginx","marginy"],di={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},ui=["acyclicer","ranker","rankdir","align"],fi=["width","height"],hi={width:0,height:0},ci=["minlen","weight","width","height","labeloffset"],li={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},vi=["labelpos"];function pi(e){var n=new S.k({multigraph:!0,compound:!0}),r=Le(e.graph());return n.setGraph(A.Z({},di,xe(r,si),de(r,ui))),u.Z(e.nodes(),function(t){var i=Le(e.node(t));n.setNode(t,En.Z(xe(i,fi),hi)),n.setParent(t,e.parent(t))}),u.Z(e.edges(),function(t){var i=Le(e.edge(t));n.setEdge(t,A.Z({},li,xe(i,ci),de(i,vi)))}),n}function mi(e){var n=e.graph();n.ranksep/=2,u.Z(e.edges(),function(r){var t=e.edge(r);t.minlen*=2,t.labelpos.toLowerCase()!=="c"&&(n.rankdir==="TB"||n.rankdir==="BT"?t.width+=t.labeloffset:t.height+=t.labeloffset)})}function Zi(e){u.Z(e.edges(),function(n){var r=e.edge(n);if(r.width&&r.height){var t=e.node(n.v),i=e.node(n.w),a={rank:(i.rank-t.rank)/2+t.rank,e:n};ee(e,"edge-proxy",a,"_ep")}})}function gi(e){var n=0;u.Z(e.nodes(),function(r){var t=e.node(r);t.borderTop&&(t.minRank=e.node(t.borderTop).rank,t.maxRank=e.node(t.borderBottom).rank,n=Q(n,t.maxRank))}),e.graph().maxRank=n}function bi(e){u.Z(e.nodes(),function(n){var r=e.node(n);r.dummy==="edge-proxy"&&(e.edge(r.e).labelRank=r.rank,e.removeNode(n))})}function wi(e){var n=Number.POSITIVE_INFINITY,r=0,t=Number.POSITIVE_INFINITY,i=0,a=e.graph(),o=a.marginx||0,s=a.marginy||0;function d(f){var l=f.x,p=f.y,b=f.width,E=f.height;n=Math.min(n,l-b/2),r=Math.max(r,l+b/2),t=Math.min(t,p-E/2),i=Math.max(i,p+E/2)}u.Z(e.nodes(),function(f){d(e.node(f))}),u.Z(e.edges(),function(f){var l=e.edge(f);Object.prototype.hasOwnProperty.call(l,"x")&&d(l)}),n-=o,t-=s,u.Z(e.nodes(),function(f){var l=e.node(f);l.x-=n,l.y-=t}),u.Z(e.edges(),function(f){var l=e.edge(f);u.Z(l.points,function(p){p.x-=n,p.y-=t}),Object.prototype.hasOwnProperty.call(l,"x")&&(l.x-=n),Object.prototype.hasOwnProperty.call(l,"y")&&(l.y-=t)}),a.width=r-n+o,a.height=i-t+s}function _i(e){u.Z(e.edges(),function(n){var r=e.edge(n),t=e.node(n.v),i=e.node(n.w),a,o;r.points?(a=r.points[0],o=r.points[r.points.length-1]):(r.points=[],a=i,o=t),r.points.unshift(je(t,a)),r.points.push(je(i,o))})}function Ei(e){u.Z(e.edges(),function(n){var r=e.edge(n);if(Object.prototype.hasOwnProperty.call(r,"x"))switch((r.labelpos==="l"||r.labelpos==="r")&&(r.width-=r.labeloffset),r.labelpos){case"l":r.x-=r.width/2+r.labeloffset;break;case"r":r.x+=r.width/2+r.labeloffset;break}})}function yi(e){u.Z(e.edges(),function(n){var r=e.edge(n);r.reversed&&r.points.reverse()})}function Oi(e){u.Z(e.nodes(),function(n){if(e.children(n).length){var r=e.node(n),t=e.node(r.borderTop),i=e.node(r.borderBottom),a=e.node(ue.Z(r.borderLeft)),o=e.node(ue.Z(r.borderRight));r.width=Math.abs(o.x-a.x),r.height=Math.abs(i.y-t.y),r.x=a.x+r.width/2,r.y=t.y+r.height/2}}),u.Z(e.nodes(),function(n){e.node(n).dummy==="border"&&e.removeNode(n)})}function Pi(e){u.Z(e.edges(),function(n){if(n.v===n.w){var r=e.node(n.v);r.selfEdges||(r.selfEdges=[]),r.selfEdges.push({e:n,label:e.edge(n)}),e.removeEdge(n)}})}function xi(e){var n=he(e);u.Z(n,function(r){var t=0;u.Z(r,function(i,a){var o=e.node(i);o.order=a+t,u.Z(o.selfEdges,function(s){ee(e,"selfedge",{width:s.label.width,height:s.label.height,rank:o.rank,order:a+ ++t,e:s.e,label:s.label},"_se")}),delete o.selfEdges})})}function Li(e){u.Z(e.nodes(),function(n){var r=e.node(n);if(r.dummy==="selfedge"){var t=e.node(r.e.v),i=t.x+t.width/2,a=t.y,o=r.x-i,s=t.height/2;e.setEdge(r.e,r.label),e.removeNode(n),r.label.points=[{x:i+2*o/3,y:a-s},{x:i+5*o/6,y:a-s},{x:i+o,y:a},{x:i+5*o/6,y:a+s},{x:i+2*o/3,y:a+s}],r.label.x=r.x,r.label.y=r.y}})}function xe(e,n){return fe(de(e,n),Number)}function Le(e){var n={};return u.Z(e,function(r,t){n[t.toLowerCase()]=r}),n}},54585:function(H,L,c){c.d(L,{k:function(){return S}});var u=c(62002),P=c(73234),y=c(17179),O=c(19601),C=c(79697),x=c(70870),M=c(49360),g=c(10626),j=c(69581),G=c(69958),F=c(836),U=(0,j.Z)(function(K){return(0,G.Z)((0,g.Z)(K,1,F.Z,!0))}),W=U,k=c(34148),B=c(92344),V="\0",I="\0",D="";class S{constructor(h={}){this._isDirected=Object.prototype.hasOwnProperty.call(h,"directed")?h.directed:!0,this._isMultigraph=Object.prototype.hasOwnProperty.call(h,"multigraph")?h.multigraph:!1,this._isCompound=Object.prototype.hasOwnProperty.call(h,"compound")?h.compound:!1,this._label=void 0,this._defaultNodeLabelFn=u.Z(void 0),this._defaultEdgeLabelFn=u.Z(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[I]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(h){return this._label=h,this}graph(){return this._label}setDefaultNodeLabel(h){return P.Z(h)||(h=u.Z(h)),this._defaultNodeLabelFn=h,this}nodeCount(){return this._nodeCount}nodes(){return y.Z(this._nodes)}sources(){var h=this;return O.Z(this.nodes(),function(v){return C.Z(h._in[v])})}sinks(){var h=this;return O.Z(this.nodes(),function(v){return C.Z(h._out[v])})}setNodes(h,v){var Z=arguments,w=this;return x.Z(h,function(N){Z.length>1?w.setNode(N,v):w.setNode(N)}),this}setNode(h,v){return Object.prototype.hasOwnProperty.call(this._nodes,h)?(arguments.length>1&&(this._nodes[h]=v),this):(this._nodes[h]=arguments.length>1?v:this._defaultNodeLabelFn(h),this._isCompound&&(this._parent[h]=I,this._children[h]={},this._children[I][h]=!0),this._in[h]={},this._preds[h]={},this._out[h]={},this._sucs[h]={},++this._nodeCount,this)}node(h){return this._nodes[h]}hasNode(h){return Object.prototype.hasOwnProperty.call(this._nodes,h)}removeNode(h){if(Object.prototype.hasOwnProperty.call(this._nodes,h)){var v=Z=>this.removeEdge(this._edgeObjs[Z]);delete this._nodes[h],this._isCompound&&(this._removeFromParentsChildList(h),delete this._parent[h],x.Z(this.children(h),Z=>{this.setParent(Z)}),delete this._children[h]),x.Z(y.Z(this._in[h]),v),delete this._in[h],delete this._preds[h],x.Z(y.Z(this._out[h]),v),delete this._out[h],delete this._sucs[h],--this._nodeCount}return this}setParent(h,v){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(M.Z(v))v=I;else{v+="";for(var Z=v;!M.Z(Z);Z=this.parent(Z))if(Z===h)throw new Error("Setting "+v+" as parent of "+h+" would create a cycle");this.setNode(v)}return this.setNode(h),this._removeFromParentsChildList(h),this._parent[h]=v,this._children[v][h]=!0,this}_removeFromParentsChildList(h){delete this._children[this._parent[h]][h]}parent(h){if(this._isCompound){var v=this._parent[h];if(v!==I)return v}}children(h){if(M.Z(h)&&(h=I),this._isCompound){var v=this._children[h];if(v)return y.Z(v)}else{if(h===I)return this.nodes();if(this.hasNode(h))return[]}}predecessors(h){var v=this._preds[h];if(v)return y.Z(v)}successors(h){var v=this._sucs[h];if(v)return y.Z(v)}neighbors(h){var v=this.predecessors(h);if(v)return W(v,this.successors(h))}isLeaf(h){var v;return this.isDirected()?v=this.successors(h):v=this.neighbors(h),v.length===0}filterNodes(h){var v=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});v.setGraph(this.graph());var Z=this;x.Z(this._nodes,function(R,A){h(A)&&v.setNode(A,R)}),x.Z(this._edgeObjs,function(R){v.hasNode(R.v)&&v.hasNode(R.w)&&v.setEdge(R,Z.edge(R))});var w={};function N(R){var A=Z.parent(R);return A===void 0||v.hasNode(A)?(w[R]=A,A):A in w?w[A]:N(A)}return this._isCompound&&x.Z(v.nodes(),function(R){v.setParent(R,N(R))}),v}setDefaultEdgeLabel(h){return P.Z(h)||(h=u.Z(h)),this._defaultEdgeLabelFn=h,this}edgeCount(){return this._edgeCount}edges(){return k.Z(this._edgeObjs)}setPath(h,v){var Z=this,w=arguments;return B.Z(h,function(N,R){return w.length>1?Z.setEdge(N,R,v):Z.setEdge(N,R),R}),this}setEdge(){var h,v,Z,w,N=!1,R=arguments[0];typeof R=="object"&&R!==null&&"v"in R?(h=R.v,v=R.w,Z=R.name,arguments.length===2&&(w=arguments[1],N=!0)):(h=R,v=arguments[1],Z=arguments[3],arguments.length>2&&(w=arguments[2],N=!0)),h=""+h,v=""+v,M.Z(Z)||(Z=""+Z);var A=X(this._isDirected,h,v,Z);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,A))return N&&(this._edgeLabels[A]=w),this;if(!M.Z(Z)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(h),this.setNode(v),this._edgeLabels[A]=N?w:this._defaultEdgeLabelFn(h,v,Z);var $=ve(this._isDirected,h,v,Z);return h=$.v,v=$.w,Object.freeze($),this._edgeObjs[A]=$,m(this._preds[v],h),m(this._sucs[h],v),this._in[v][A]=$,this._out[h][A]=$,this._edgeCount++,this}edge(h,v,Z){var w=arguments.length===1?re(this._isDirected,arguments[0]):X(this._isDirected,h,v,Z);return this._edgeLabels[w]}hasEdge(h,v,Z){var w=arguments.length===1?re(this._isDirected,arguments[0]):X(this._isDirected,h,v,Z);return Object.prototype.hasOwnProperty.call(this._edgeLabels,w)}removeEdge(h,v,Z){var w=arguments.length===1?re(this._isDirected,arguments[0]):X(this._isDirected,h,v,Z),N=this._edgeObjs[w];return N&&(h=N.v,v=N.w,delete this._edgeLabels[w],delete this._edgeObjs[w],z(this._preds[v],h),z(this._sucs[h],v),delete this._in[v][w],delete this._out[h][w],this._edgeCount--),this}inEdges(h,v){var Z=this._in[h];if(Z){var w=k.Z(Z);return v?O.Z(w,function(N){return N.v===v}):w}}outEdges(h,v){var Z=this._out[h];if(Z){var w=k.Z(Z);return v?O.Z(w,function(N){return N.w===v}):w}}nodeEdges(h,v){var Z=this.inEdges(h,v);if(Z)return Z.concat(this.outEdges(h,v))}}S.prototype._nodeCount=0,S.prototype._edgeCount=0;function m(K,h){K[h]?K[h]++:K[h]=1}function z(K,h){--K[h]||delete K[h]}function X(K,h,v,Z){var w=""+h,N=""+v;if(!K&&w>N){var R=w;w=N,N=R}return w+D+N+D+(M.Z(Z)?V:Z)}function ve(K,h,v,Z){var w=""+h,N=""+v;if(!K&&w>N){var R=w;w=N,N=R}var A={v:w,w:N};return Z&&(A.name=Z),A}function re(K,h){return X(K,h.v,h.w,h.name)}},45625:function(H,L,c){c.d(L,{k:function(){return u.k}});var u=c(54585);const P="2.1.9-pre"},58e3:function(H,L,c){var u=c(72714);function P(y,O,C){for(var x=-1,M=y.length;++x<M;){var g=y[x],j=O(g);if(j!=null&&(G===void 0?j===j&&!(0,u.Z)(j):C(j,G)))var G=j,F=g}return F}L.Z=P},40676:function(H,L){function c(u,P){return u<P}L.Z=c},21018:function(H,L,c){var u=c(49811),P=c(50585);function y(O,C){var x=-1,M=(0,P.Z)(O)?Array(O.length):[];return(0,u.Z)(O,function(g,j,G){M[++x]=C(g,j,G)}),M}L.Z=y},51795:function(H,L,c){c.d(L,{Z:function(){return G}});var u=c(13317),P=c(72954),y=c(22823),O=c(56009),C=c(77226),x=c(62281);function M(F,U,W,k){if(!(0,C.Z)(F))return F;U=(0,y.Z)(U,F);for(var B=-1,V=U.length,I=V-1,D=F;D!=null&&++B<V;){var S=(0,x.Z)(U[B]),m=W;if(S==="__proto__"||S==="constructor"||S==="prototype")return F;if(B!=I){var z=D[S];m=k?k(z,S,D):void 0,m===void 0&&(m=(0,C.Z)(z)?z:(0,O.Z)(U[B+1])?[]:{})}(0,P.Z)(D,S,m),D=D[S]}return F}var g=M;function j(F,U,W){for(var k=-1,B=U.length,V={};++k<B;){var I=U[k],D=(0,u.Z)(F,I);W(D,I)&&g(V,(0,y.Z)(I,F),D)}return V}var G=j},3688:function(H,L,c){var u=c(69581),P=c(79651),y=c(50439),O=c(32957),C=Object.prototype,x=C.hasOwnProperty,M=(0,u.Z)(function(g,j){g=Object(g);var G=-1,F=j.length,U=F>2?j[2]:void 0;for(U&&(0,y.Z)(j[0],j[1],U)&&(F=1);++G<F;)for(var W=j[G],k=(0,O.Z)(W),B=-1,V=k.length;++B<V;){var I=k[B],D=g[I];(D===void 0||(0,P.Z)(D,C[I])&&!x.call(g,I))&&(g[I]=W[I])}return g});L.Z=M},38656:function(H,L,c){c.d(L,{Z:function(){return U}});var u=c(2e3),P=c(50585),y=c(17179);function O(W){return function(k,B,V){var I=Object(k);if(!(0,P.Z)(k)){var D=(0,u.Z)(B,3);k=(0,y.Z)(k),B=function(m){return D(I[m],m,I)}}var S=W(k,B,V);return S>-1?I[D?k[S]:S]:void 0}}var C=O,x=c(21692),M=c(24930),g=Math.max;function j(W,k,B){var V=W==null?0:W.length;if(!V)return-1;var I=B==null?0:(0,M.Z)(B);return I<0&&(I=g(V+I,0)),(0,x.Z)(W,(0,u.Z)(k,3),I)}var G=j,F=C(G),U=F},27961:function(H,L,c){var u=c(10626);function P(y){var O=y==null?0:y.length;return O?(0,u.Z)(y,1):[]}L.Z=P},17452:function(H,L,c){c.d(L,{Z:function(){return M}});var u=Object.prototype,P=u.hasOwnProperty;function y(g,j){return g!=null&&P.call(g,j)}var O=y,C=c(16174);function x(g,j){return g!=null&&(0,C.Z)(g,j,O)}var M=x},36378:function(H,L,c){var u=c(93589),P=c(27771),y=c(18533),O="[object String]";function C(x){return typeof x=="string"||!(0,P.Z)(x)&&(0,y.Z)(x)&&(0,u.Z)(x)==O}L.Z=C},935:function(H,L){function c(u){var P=u==null?0:u.length;return P?u[P-1]:void 0}L.Z=c},43836:function(H,L,c){var u=c(74073),P=c(2e3),y=c(21018),O=c(27771);function C(x,M){var g=(0,O.Z)(x)?u.Z:y.Z;return g(x,(0,P.Z)(M,3))}L.Z=C},3729:function(H,L,c){var u=c(58e3),P=c(40676),y=c(69203);function O(C){return C&&C.length?(0,u.Z)(C,y.Z,P.Z):void 0}L.Z=O},94099:function(H,L,c){c.d(L,{Z:function(){return S}});var u=/\s/;function P(m){for(var z=m.length;z--&&u.test(m.charAt(z)););return z}var y=P,O=/^\s+/;function C(m){return m&&m.slice(0,y(m)+1).replace(O,"")}var x=C,M=c(77226),g=c(72714),j=NaN,G=/^[-+]0x[0-9a-f]+$/i,F=/^0b[01]+$/i,U=/^0o[0-7]+$/i,W=parseInt;function k(m){if(typeof m=="number")return m;if((0,g.Z)(m))return j;if((0,M.Z)(m)){var z=typeof m.valueOf=="function"?m.valueOf():m;m=(0,M.Z)(z)?z+"":z}if(typeof m!="string")return m===0?m:+m;m=x(m);var X=F.test(m);return X||U.test(m)?W(m.slice(2),X?2:8):G.test(m)?j:+m}var B=k,V=1/0,I=17976931348623157e292;function D(m){if(!m)return m===0?m:0;if(m=B(m),m===V||m===-V){var z=m<0?-1:1;return z*I}return m===m?m:0}var S=D},24930:function(H,L,c){var u=c(94099);function P(y){var O=(0,u.Z)(y),C=O%1;return O===O?C?O-C:O:0}L.Z=P}}]);