@celljs/ta 4.5.0 → 4.6.0

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 (559) hide show
  1. package/README.md +31 -25
  2. package/bin/ta.mjs +1 -1
  3. package/dist/cli.mjs +2101 -0
  4. package/dist/pi/CHANGELOG.md +28 -0
  5. package/dist/pi/dist/bundle/chunks/chunk-44DLKSKE.js +14 -14
  6. package/dist/pi/dist/bundle/chunks/openai-chatgpt.js +1 -1
  7. package/dist/pi/node_modules/@silvia-odwyer/photon-node/LICENSE.md +201 -0
  8. package/dist/pi/node_modules/@silvia-odwyer/photon-node/README.md +158 -0
  9. package/dist/pi/node_modules/@silvia-odwyer/photon-node/package.json +23 -0
  10. package/dist/pi/node_modules/@silvia-odwyer/photon-node/photon_rs.d.ts +3226 -0
  11. package/dist/pi/node_modules/@silvia-odwyer/photon-node/photon_rs.js +4521 -0
  12. package/dist/pi/node_modules/@silvia-odwyer/photon-node/photon_rs_bg.js +4270 -0
  13. package/dist/pi/node_modules/@silvia-odwyer/photon-node/photon_rs_bg.wasm +0 -0
  14. package/dist/pi/node_modules/jiti/LICENSE +21 -0
  15. package/dist/pi/node_modules/jiti/README.md +258 -0
  16. package/dist/pi/node_modules/jiti/dist/babel.cjs +257 -0
  17. package/dist/pi/node_modules/jiti/dist/jiti.cjs +1 -0
  18. package/dist/pi/node_modules/jiti/lib/jiti-cli.mjs +34 -0
  19. package/dist/pi/node_modules/jiti/lib/jiti-hooks.mjs +124 -0
  20. package/dist/pi/node_modules/jiti/lib/jiti-native.mjs +121 -0
  21. package/dist/pi/node_modules/jiti/lib/jiti-register.d.mts +1 -0
  22. package/dist/pi/node_modules/jiti/lib/jiti-register.mjs +4 -0
  23. package/dist/pi/node_modules/jiti/lib/jiti-static.mjs +23 -0
  24. package/dist/pi/node_modules/jiti/lib/jiti.cjs +30 -0
  25. package/dist/pi/node_modules/jiti/lib/jiti.d.cts +8 -0
  26. package/dist/pi/node_modules/jiti/lib/jiti.d.mts +8 -0
  27. package/dist/pi/node_modules/jiti/lib/jiti.mjs +29 -0
  28. package/dist/pi/node_modules/jiti/lib/types.d.ts +420 -0
  29. package/dist/pi/node_modules/jiti/package.json +146 -0
  30. package/dist/pi/node_modules/quickjs-wasi/LICENSE +21 -0
  31. package/dist/pi/node_modules/quickjs-wasi/README.md +852 -0
  32. package/dist/pi/node_modules/quickjs-wasi/dist/extensions.d.ts +110 -0
  33. package/dist/pi/node_modules/quickjs-wasi/dist/extensions.d.ts.map +1 -0
  34. package/dist/pi/node_modules/quickjs-wasi/dist/extensions.js +372 -0
  35. package/dist/pi/node_modules/quickjs-wasi/dist/extensions.js.map +1 -0
  36. package/dist/pi/node_modules/quickjs-wasi/dist/index.d.ts +1263 -0
  37. package/dist/pi/node_modules/quickjs-wasi/dist/index.d.ts.map +1 -0
  38. package/dist/pi/node_modules/quickjs-wasi/dist/index.js +2787 -0
  39. package/dist/pi/node_modules/quickjs-wasi/dist/index.js.map +1 -0
  40. package/dist/pi/node_modules/quickjs-wasi/dist/version.d.ts +2 -0
  41. package/dist/pi/node_modules/quickjs-wasi/dist/version.d.ts.map +1 -0
  42. package/dist/pi/node_modules/quickjs-wasi/dist/version.js +3 -0
  43. package/dist/pi/node_modules/quickjs-wasi/dist/version.js.map +1 -0
  44. package/dist/pi/node_modules/quickjs-wasi/dist/wasi-shim.d.ts +61 -0
  45. package/dist/pi/node_modules/quickjs-wasi/dist/wasi-shim.d.ts.map +1 -0
  46. package/dist/pi/node_modules/quickjs-wasi/dist/wasi-shim.js +103 -0
  47. package/dist/pi/node_modules/quickjs-wasi/dist/wasi-shim.js.map +1 -0
  48. package/dist/pi/node_modules/quickjs-wasi/extensions/crypto/crypto.so +0 -0
  49. package/dist/pi/node_modules/quickjs-wasi/extensions/encoding/encoding.so +0 -0
  50. package/dist/pi/node_modules/quickjs-wasi/extensions/headers/headers.so +0 -0
  51. package/dist/pi/node_modules/quickjs-wasi/extensions/structured-clone/structured-clone.so +0 -0
  52. package/dist/pi/node_modules/quickjs-wasi/extensions/url/url.so +0 -0
  53. package/dist/pi/node_modules/quickjs-wasi/package.json +69 -0
  54. package/dist/pi/node_modules/quickjs-wasi/quickjs.wasm +0 -0
  55. package/dist/pi/package.json +1 -1
  56. package/dist/pi/packages/ta-channels/README.md +48 -0
  57. package/dist/pi/packages/ta-channels/extension/index.mjs +651 -0
  58. package/dist/pi/packages/ta-channels/host/index.mjs +921 -0
  59. package/dist/pi/packages/ta-channels/lib/agent-menu.d.ts +13 -0
  60. package/dist/pi/packages/ta-channels/lib/agent-menu.d.ts.map +1 -0
  61. package/dist/pi/packages/ta-channels/lib/agent-menu.js +177 -0
  62. package/dist/pi/packages/ta-channels/lib/agent-menu.js.map +1 -0
  63. package/dist/pi/packages/ta-channels/lib/channel-menu.d.ts +12 -0
  64. package/dist/pi/packages/ta-channels/lib/channel-menu.d.ts.map +1 -0
  65. package/dist/pi/packages/ta-channels/lib/channel-menu.js +93 -0
  66. package/dist/pi/packages/ta-channels/lib/channel-menu.js.map +1 -0
  67. package/dist/pi/packages/ta-channels/lib/channels-model.d.ts +192 -0
  68. package/dist/pi/packages/ta-channels/lib/channels-model.d.ts.map +1 -0
  69. package/dist/pi/packages/ta-channels/lib/channels-model.js +49 -0
  70. package/dist/pi/packages/ta-channels/lib/channels-model.js.map +1 -0
  71. package/dist/pi/packages/ta-channels/lib/channels-util.d.ts +149 -0
  72. package/dist/pi/packages/ta-channels/lib/channels-util.d.ts.map +1 -0
  73. package/dist/pi/packages/ta-channels/lib/channels-util.js +544 -0
  74. package/dist/pi/packages/ta-channels/lib/channels-util.js.map +1 -0
  75. package/dist/pi/packages/ta-channels/lib/channels.d.ts +81 -0
  76. package/dist/pi/packages/ta-channels/lib/channels.d.ts.map +1 -0
  77. package/dist/pi/packages/ta-channels/lib/channels.js +181 -0
  78. package/dist/pi/packages/ta-channels/lib/channels.js.map +1 -0
  79. package/dist/pi/packages/ta-channels/lib/create.d.ts +19 -0
  80. package/dist/pi/packages/ta-channels/lib/create.d.ts.map +1 -0
  81. package/dist/pi/packages/ta-channels/lib/create.js +182 -0
  82. package/dist/pi/packages/ta-channels/lib/create.js.map +1 -0
  83. package/dist/pi/packages/ta-channels/lib/extension.d.ts +19 -0
  84. package/dist/pi/packages/ta-channels/lib/extension.d.ts.map +1 -0
  85. package/dist/pi/packages/ta-channels/lib/extension.js +77 -0
  86. package/dist/pi/packages/ta-channels/lib/extension.js.map +1 -0
  87. package/dist/pi/packages/ta-channels/lib/faces.d.ts +17 -0
  88. package/dist/pi/packages/ta-channels/lib/faces.d.ts.map +1 -0
  89. package/dist/pi/packages/ta-channels/lib/faces.js +169 -0
  90. package/dist/pi/packages/ta-channels/lib/faces.js.map +1 -0
  91. package/dist/pi/packages/ta-channels/lib/host.d.ts +7 -0
  92. package/dist/pi/packages/ta-channels/lib/host.d.ts.map +1 -0
  93. package/dist/pi/packages/ta-channels/lib/host.js +14 -0
  94. package/dist/pi/packages/ta-channels/lib/host.js.map +1 -0
  95. package/dist/pi/packages/ta-channels/lib/i18n.d.ts +113 -0
  96. package/dist/pi/packages/ta-channels/lib/i18n.d.ts.map +1 -0
  97. package/dist/pi/packages/ta-channels/lib/i18n.js +223 -0
  98. package/dist/pi/packages/ta-channels/lib/i18n.js.map +1 -0
  99. package/dist/pi/packages/ta-channels/lib/index.d.ts +8 -0
  100. package/dist/pi/packages/ta-channels/lib/index.d.ts.map +1 -0
  101. package/dist/pi/packages/ta-channels/lib/index.js +84 -0
  102. package/dist/pi/packages/ta-channels/lib/index.js.map +1 -0
  103. package/dist/pi/packages/ta-channels/lib/members.d.ts +9 -0
  104. package/dist/pi/packages/ta-channels/lib/members.d.ts.map +1 -0
  105. package/dist/pi/packages/ta-channels/lib/members.js +150 -0
  106. package/dist/pi/packages/ta-channels/lib/members.js.map +1 -0
  107. package/dist/pi/packages/ta-channels/lib/more-menu.d.ts +19 -0
  108. package/dist/pi/packages/ta-channels/lib/more-menu.d.ts.map +1 -0
  109. package/dist/pi/packages/ta-channels/lib/more-menu.js +79 -0
  110. package/dist/pi/packages/ta-channels/lib/more-menu.js.map +1 -0
  111. package/dist/pi/packages/ta-channels/lib/react.d.ts +8 -0
  112. package/dist/pi/packages/ta-channels/lib/react.d.ts.map +1 -0
  113. package/dist/pi/packages/ta-channels/lib/react.js +8 -0
  114. package/dist/pi/packages/ta-channels/lib/react.js.map +1 -0
  115. package/dist/pi/packages/ta-channels/lib/room.d.ts +22 -0
  116. package/dist/pi/packages/ta-channels/lib/room.d.ts.map +1 -0
  117. package/dist/pi/packages/ta-channels/lib/room.js +133 -0
  118. package/dist/pi/packages/ta-channels/lib/room.js.map +1 -0
  119. package/dist/pi/packages/ta-channels/lib/sidebar.d.ts +10 -0
  120. package/dist/pi/packages/ta-channels/lib/sidebar.d.ts.map +1 -0
  121. package/dist/pi/packages/ta-channels/lib/sidebar.js +162 -0
  122. package/dist/pi/packages/ta-channels/lib/sidebar.js.map +1 -0
  123. package/dist/pi/packages/ta-channels/lib/style.d.ts +5 -0
  124. package/dist/pi/packages/ta-channels/lib/style.d.ts.map +1 -0
  125. package/dist/pi/packages/ta-channels/lib/style.js +252 -0
  126. package/dist/pi/packages/ta-channels/lib/style.js.map +1 -0
  127. package/dist/pi/packages/ta-channels/lib/team-tools.d.ts +15 -0
  128. package/dist/pi/packages/ta-channels/lib/team-tools.d.ts.map +1 -0
  129. package/dist/pi/packages/ta-channels/lib/team-tools.js +92 -0
  130. package/dist/pi/packages/ta-channels/lib/team-tools.js.map +1 -0
  131. package/dist/pi/packages/ta-channels/lib/team.d.ts +134 -0
  132. package/dist/pi/packages/ta-channels/lib/team.d.ts.map +1 -0
  133. package/dist/pi/packages/ta-channels/lib/team.js +469 -0
  134. package/dist/pi/packages/ta-channels/lib/team.js.map +1 -0
  135. package/dist/pi/packages/ta-channels/lib/views.d.ts +93 -0
  136. package/dist/pi/packages/ta-channels/lib/views.d.ts.map +1 -0
  137. package/dist/pi/packages/ta-channels/lib/views.js +188 -0
  138. package/dist/pi/packages/ta-channels/lib/views.js.map +1 -0
  139. package/dist/pi/packages/ta-channels/package.json +46 -0
  140. package/dist/pi/packages/ta-channels/web/index.js +3144 -0
  141. package/dist/pi/packages/ta-extensions/README.md +20 -0
  142. package/dist/pi/packages/ta-extensions/host/index.mjs +271 -0
  143. package/dist/pi/packages/ta-extensions/lib/actions.d.ts +42 -0
  144. package/dist/pi/packages/ta-extensions/lib/actions.d.ts.map +1 -0
  145. package/dist/pi/packages/ta-extensions/lib/actions.js +168 -0
  146. package/dist/pi/packages/ta-extensions/lib/actions.js.map +1 -0
  147. package/dist/pi/packages/ta-extensions/lib/archive.d.ts +30 -0
  148. package/dist/pi/packages/ta-extensions/lib/archive.d.ts.map +1 -0
  149. package/dist/pi/packages/ta-extensions/lib/archive.js +213 -0
  150. package/dist/pi/packages/ta-extensions/lib/archive.js.map +1 -0
  151. package/dist/pi/packages/ta-extensions/lib/extensions-util.d.ts +14 -0
  152. package/dist/pi/packages/ta-extensions/lib/extensions-util.d.ts.map +1 -0
  153. package/dist/pi/packages/ta-extensions/lib/extensions-util.js +38 -0
  154. package/dist/pi/packages/ta-extensions/lib/extensions-util.js.map +1 -0
  155. package/dist/pi/packages/ta-extensions/lib/host.d.ts +36 -0
  156. package/dist/pi/packages/ta-extensions/lib/host.d.ts.map +1 -0
  157. package/dist/pi/packages/ta-extensions/lib/host.js +94 -0
  158. package/dist/pi/packages/ta-extensions/lib/host.js.map +1 -0
  159. package/dist/pi/packages/ta-extensions/lib/i18n.d.ts +64 -0
  160. package/dist/pi/packages/ta-extensions/lib/i18n.d.ts.map +1 -0
  161. package/dist/pi/packages/ta-extensions/lib/i18n.js +148 -0
  162. package/dist/pi/packages/ta-extensions/lib/i18n.js.map +1 -0
  163. package/dist/pi/packages/ta-extensions/lib/import-dialog.d.ts +10 -0
  164. package/dist/pi/packages/ta-extensions/lib/import-dialog.d.ts.map +1 -0
  165. package/dist/pi/packages/ta-extensions/lib/import-dialog.js +56 -0
  166. package/dist/pi/packages/ta-extensions/lib/import-dialog.js.map +1 -0
  167. package/dist/pi/packages/ta-extensions/lib/index.d.ts +7 -0
  168. package/dist/pi/packages/ta-extensions/lib/index.d.ts.map +1 -0
  169. package/dist/pi/packages/ta-extensions/lib/index.js +49 -0
  170. package/dist/pi/packages/ta-extensions/lib/index.js.map +1 -0
  171. package/dist/pi/packages/ta-extensions/lib/page.d.ts +22 -0
  172. package/dist/pi/packages/ta-extensions/lib/page.d.ts.map +1 -0
  173. package/dist/pi/packages/ta-extensions/lib/page.js +143 -0
  174. package/dist/pi/packages/ta-extensions/lib/page.js.map +1 -0
  175. package/dist/pi/packages/ta-extensions/lib/pictures.d.ts +6 -0
  176. package/dist/pi/packages/ta-extensions/lib/pictures.d.ts.map +1 -0
  177. package/dist/pi/packages/ta-extensions/lib/pictures.js +62 -0
  178. package/dist/pi/packages/ta-extensions/lib/pictures.js.map +1 -0
  179. package/dist/pi/packages/ta-extensions/lib/react.d.ts +8 -0
  180. package/dist/pi/packages/ta-extensions/lib/react.d.ts.map +1 -0
  181. package/dist/pi/packages/ta-extensions/lib/react.js +8 -0
  182. package/dist/pi/packages/ta-extensions/lib/react.js.map +1 -0
  183. package/dist/pi/packages/ta-extensions/lib/style.d.ts +4 -0
  184. package/dist/pi/packages/ta-extensions/lib/style.d.ts.map +1 -0
  185. package/dist/pi/packages/ta-extensions/lib/style.js +94 -0
  186. package/dist/pi/packages/ta-extensions/lib/style.js.map +1 -0
  187. package/dist/pi/packages/ta-extensions/package.json +46 -0
  188. package/dist/pi/packages/ta-extensions/skills/ta-package/SKILL.md +90 -0
  189. package/dist/pi/packages/ta-extensions/web/index.js +941 -0
  190. package/dist/pi/packages/ta-workspace/README.md +29 -0
  191. package/dist/pi/packages/ta-workspace/lib/browser.d.ts +9 -0
  192. package/dist/pi/packages/ta-workspace/lib/browser.d.ts.map +1 -0
  193. package/dist/pi/packages/ta-workspace/lib/browser.js +162 -0
  194. package/dist/pi/packages/ta-workspace/lib/browser.js.map +1 -0
  195. package/dist/pi/packages/ta-workspace/lib/common.d.ts +63 -0
  196. package/dist/pi/packages/ta-workspace/lib/common.d.ts.map +1 -0
  197. package/dist/pi/packages/ta-workspace/lib/common.js +180 -0
  198. package/dist/pi/packages/ta-workspace/lib/common.js.map +1 -0
  199. package/dist/pi/packages/ta-workspace/lib/editors.d.ts +47 -0
  200. package/dist/pi/packages/ta-workspace/lib/editors.d.ts.map +1 -0
  201. package/dist/pi/packages/ta-workspace/lib/editors.js +353 -0
  202. package/dist/pi/packages/ta-workspace/lib/editors.js.map +1 -0
  203. package/dist/pi/packages/ta-workspace/lib/explorer.d.ts +11 -0
  204. package/dist/pi/packages/ta-workspace/lib/explorer.d.ts.map +1 -0
  205. package/dist/pi/packages/ta-workspace/lib/explorer.js +388 -0
  206. package/dist/pi/packages/ta-workspace/lib/explorer.js.map +1 -0
  207. package/dist/pi/packages/ta-workspace/lib/file-icon.d.ts +9 -0
  208. package/dist/pi/packages/ta-workspace/lib/file-icon.d.ts.map +1 -0
  209. package/dist/pi/packages/ta-workspace/lib/file-icon.js +19 -0
  210. package/dist/pi/packages/ta-workspace/lib/file-icon.js.map +1 -0
  211. package/dist/pi/packages/ta-workspace/lib/host.d.ts +41 -0
  212. package/dist/pi/packages/ta-workspace/lib/host.d.ts.map +1 -0
  213. package/dist/pi/packages/ta-workspace/lib/host.js +117 -0
  214. package/dist/pi/packages/ta-workspace/lib/host.js.map +1 -0
  215. package/dist/pi/packages/ta-workspace/lib/i18n.d.ts +158 -0
  216. package/dist/pi/packages/ta-workspace/lib/i18n.d.ts.map +1 -0
  217. package/dist/pi/packages/ta-workspace/lib/i18n.js +319 -0
  218. package/dist/pi/packages/ta-workspace/lib/i18n.js.map +1 -0
  219. package/dist/pi/packages/ta-workspace/lib/index.d.ts +8 -0
  220. package/dist/pi/packages/ta-workspace/lib/index.d.ts.map +1 -0
  221. package/dist/pi/packages/ta-workspace/lib/index.js +64 -0
  222. package/dist/pi/packages/ta-workspace/lib/index.js.map +1 -0
  223. package/dist/pi/packages/ta-workspace/lib/open-files.d.ts +3 -0
  224. package/dist/pi/packages/ta-workspace/lib/open-files.d.ts.map +1 -0
  225. package/dist/pi/packages/ta-workspace/lib/open-files.js +59 -0
  226. package/dist/pi/packages/ta-workspace/lib/open-files.js.map +1 -0
  227. package/dist/pi/packages/ta-workspace/lib/preview.d.ts +16 -0
  228. package/dist/pi/packages/ta-workspace/lib/preview.d.ts.map +1 -0
  229. package/dist/pi/packages/ta-workspace/lib/preview.js +116 -0
  230. package/dist/pi/packages/ta-workspace/lib/preview.js.map +1 -0
  231. package/dist/pi/packages/ta-workspace/lib/react.d.ts +5 -0
  232. package/dist/pi/packages/ta-workspace/lib/react.d.ts.map +1 -0
  233. package/dist/pi/packages/ta-workspace/lib/react.js +8 -0
  234. package/dist/pi/packages/ta-workspace/lib/react.js.map +1 -0
  235. package/dist/pi/packages/ta-workspace/lib/scm.d.ts +3 -0
  236. package/dist/pi/packages/ta-workspace/lib/scm.d.ts.map +1 -0
  237. package/dist/pi/packages/ta-workspace/lib/scm.js +262 -0
  238. package/dist/pi/packages/ta-workspace/lib/scm.js.map +1 -0
  239. package/dist/pi/packages/ta-workspace/lib/search.d.ts +9 -0
  240. package/dist/pi/packages/ta-workspace/lib/search.d.ts.map +1 -0
  241. package/dist/pi/packages/ta-workspace/lib/search.js +286 -0
  242. package/dist/pi/packages/ta-workspace/lib/search.js.map +1 -0
  243. package/dist/pi/packages/ta-workspace/lib/style.d.ts +5 -0
  244. package/dist/pi/packages/ta-workspace/lib/style.d.ts.map +1 -0
  245. package/dist/pi/packages/ta-workspace/lib/style.js +228 -0
  246. package/dist/pi/packages/ta-workspace/lib/style.js.map +1 -0
  247. package/dist/pi/packages/ta-workspace/lib/terminal.d.ts +24 -0
  248. package/dist/pi/packages/ta-workspace/lib/terminal.d.ts.map +1 -0
  249. package/dist/pi/packages/ta-workspace/lib/terminal.js +283 -0
  250. package/dist/pi/packages/ta-workspace/lib/terminal.js.map +1 -0
  251. package/dist/pi/packages/ta-workspace/lib/util/ansi.d.ts +72 -0
  252. package/dist/pi/packages/ta-workspace/lib/util/ansi.d.ts.map +1 -0
  253. package/dist/pi/packages/ta-workspace/lib/util/ansi.js +434 -0
  254. package/dist/pi/packages/ta-workspace/lib/util/ansi.js.map +1 -0
  255. package/dist/pi/packages/ta-workspace/lib/util/file-icon.d.ts +10 -0
  256. package/dist/pi/packages/ta-workspace/lib/util/file-icon.d.ts.map +1 -0
  257. package/dist/pi/packages/ta-workspace/lib/util/file-icon.js +28 -0
  258. package/dist/pi/packages/ta-workspace/lib/util/file-icon.js.map +1 -0
  259. package/dist/pi/packages/ta-workspace/lib/util/git.d.ts +69 -0
  260. package/dist/pi/packages/ta-workspace/lib/util/git.d.ts.map +1 -0
  261. package/dist/pi/packages/ta-workspace/lib/util/git.js +173 -0
  262. package/dist/pi/packages/ta-workspace/lib/util/git.js.map +1 -0
  263. package/dist/pi/packages/ta-workspace/lib/util/keys.d.ts +14 -0
  264. package/dist/pi/packages/ta-workspace/lib/util/keys.d.ts.map +1 -0
  265. package/dist/pi/packages/ta-workspace/lib/util/keys.js +52 -0
  266. package/dist/pi/packages/ta-workspace/lib/util/keys.js.map +1 -0
  267. package/dist/pi/packages/ta-workspace/lib/util/preview.d.ts +18 -0
  268. package/dist/pi/packages/ta-workspace/lib/util/preview.d.ts.map +1 -0
  269. package/dist/pi/packages/ta-workspace/lib/util/preview.js +92 -0
  270. package/dist/pi/packages/ta-workspace/lib/util/preview.js.map +1 -0
  271. package/dist/pi/packages/ta-workspace/lib/util/search.d.ts +86 -0
  272. package/dist/pi/packages/ta-workspace/lib/util/search.d.ts.map +1 -0
  273. package/dist/pi/packages/ta-workspace/lib/util/search.js +243 -0
  274. package/dist/pi/packages/ta-workspace/lib/util/search.js.map +1 -0
  275. package/dist/pi/packages/ta-workspace/lib/util/seti-font.d.ts +3 -0
  276. package/dist/pi/packages/ta-workspace/lib/util/seti-font.d.ts.map +1 -0
  277. package/dist/pi/packages/ta-workspace/lib/util/seti-font.js +8 -0
  278. package/dist/pi/packages/ta-workspace/lib/util/seti-font.js.map +1 -0
  279. package/dist/pi/packages/ta-workspace/lib/util/seti.d.ts +10 -0
  280. package/dist/pi/packages/ta-workspace/lib/util/seti.d.ts.map +1 -0
  281. package/dist/pi/packages/ta-workspace/lib/util/seti.js +758 -0
  282. package/dist/pi/packages/ta-workspace/lib/util/seti.js.map +1 -0
  283. package/dist/pi/packages/ta-workspace/lib/util/workspace.d.ts +109 -0
  284. package/dist/pi/packages/ta-workspace/lib/util/workspace.d.ts.map +1 -0
  285. package/dist/pi/packages/ta-workspace/lib/util/workspace.js +294 -0
  286. package/dist/pi/packages/ta-workspace/lib/util/workspace.js.map +1 -0
  287. package/dist/pi/packages/ta-workspace/lib/workspace-client.d.ts +22 -0
  288. package/dist/pi/packages/ta-workspace/lib/workspace-client.d.ts.map +1 -0
  289. package/dist/pi/packages/ta-workspace/lib/workspace-client.js +118 -0
  290. package/dist/pi/packages/ta-workspace/lib/workspace-client.js.map +1 -0
  291. package/dist/pi/packages/ta-workspace/package.json +41 -0
  292. package/dist/pi/packages/ta-workspace/scripts/seti.ts +173 -0
  293. package/dist/pi/packages/ta-workspace/web/index.js +7289 -0
  294. package/dist/public/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
  295. package/dist/public/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
  296. package/dist/public/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
  297. package/dist/public/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
  298. package/dist/public/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
  299. package/dist/public/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
  300. package/dist/public/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
  301. package/dist/public/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
  302. package/dist/public/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
  303. package/dist/public/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
  304. package/dist/public/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
  305. package/dist/public/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
  306. package/dist/public/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
  307. package/dist/public/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
  308. package/dist/public/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
  309. package/dist/public/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
  310. package/dist/public/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
  311. package/dist/public/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
  312. package/dist/public/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
  313. package/dist/public/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
  314. package/dist/public/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
  315. package/dist/public/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
  316. package/dist/public/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
  317. package/dist/public/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
  318. package/dist/public/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
  319. package/dist/public/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
  320. package/dist/public/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
  321. package/dist/public/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
  322. package/dist/public/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
  323. package/dist/public/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
  324. package/dist/public/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
  325. package/dist/public/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
  326. package/dist/public/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
  327. package/dist/public/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
  328. package/dist/public/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
  329. package/dist/public/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
  330. package/dist/public/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
  331. package/dist/public/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
  332. package/dist/public/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
  333. package/dist/public/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
  334. package/dist/public/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
  335. package/dist/public/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
  336. package/dist/public/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
  337. package/dist/public/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
  338. package/dist/public/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
  339. package/dist/public/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
  340. package/dist/public/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
  341. package/dist/public/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
  342. package/dist/public/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
  343. package/dist/public/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
  344. package/dist/public/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
  345. package/dist/public/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
  346. package/dist/public/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
  347. package/dist/public/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
  348. package/dist/public/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
  349. package/dist/public/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
  350. package/dist/public/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
  351. package/dist/public/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
  352. package/dist/public/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
  353. package/dist/public/assets/abap-08VXUWAP.js +1 -0
  354. package/dist/public/assets/abnfDiagram-S7VZAUFO-3_0FZVeo.js +1 -0
  355. package/dist/public/assets/apex-BWPQTe0t.js +1 -0
  356. package/dist/public/assets/architecture-WOLXFQ4H-BX-N-_gd.js +1 -0
  357. package/dist/public/assets/architectureDiagram-YGSQEFNW-Daeu1xjI.js +36 -0
  358. package/dist/public/assets/azcli-Bc_sGQ0U.js +1 -0
  359. package/dist/public/assets/bat-i0X4ZdIN.js +1 -0
  360. package/dist/public/assets/bicep-B5-_aFwp.js +2 -0
  361. package/dist/public/assets/blockDiagram-APKKGZFW-DjJS8902.js +140 -0
  362. package/dist/public/assets/bpmnIcons-APHXDYXF-C0jbCElo.js +1 -0
  363. package/dist/public/assets/browser-D2CY3Lfb.js +1 -0
  364. package/dist/public/assets/browser-DZ1aJcgd.js +12 -0
  365. package/dist/public/assets/c4Diagram-KJ2TOQU5-mKfHFqh9.js +38 -0
  366. package/dist/public/assets/cameligo-DMUM7wLl.js +1 -0
  367. package/dist/public/assets/chunk-2Q5K7J3B-C1jixKkw.js +1 -0
  368. package/dist/public/assets/chunk-5VM5RSS4-ZNzvKenW.js +15 -0
  369. package/dist/public/assets/chunk-6MUBBAK2-Cnx7dsB1.js +2 -0
  370. package/dist/public/assets/chunk-AXFCVDMN-g4Y7Pg2t.js +62 -0
  371. package/dist/public/assets/chunk-BG4553SI-QNE6A_Vg.js +129 -0
  372. package/dist/public/assets/chunk-DQASFODM-DPHr08r0.js +10 -0
  373. package/dist/public/assets/chunk-DUW6YSOI-Dgx8z5s3.js +1 -0
  374. package/dist/public/assets/chunk-HFQBQIA3-CenkxHlV.js +1 -0
  375. package/dist/public/assets/chunk-J5ZVWO5B-oDCd-gWO.js +1 -0
  376. package/dist/public/assets/chunk-JWPE2WC7-DVXcaiue.js +1 -0
  377. package/dist/public/assets/chunk-KQLB2F66-C3Z8V8R_.js +2 -0
  378. package/dist/public/assets/chunk-KS47KZWR-BbUyxMWY.js +1 -0
  379. package/dist/public/assets/chunk-LEVMRMFU-CKECy4cp.js +1 -0
  380. package/dist/public/assets/chunk-M57EVK23-DuZd8RGI.js +1 -0
  381. package/dist/public/assets/chunk-NGNAAXSQ-Bxuf9Ivc.js +136 -0
  382. package/dist/public/assets/chunk-OY52VR5R-DatO2fu-.js +88 -0
  383. package/dist/public/assets/chunk-QB3YPZ4I-11782Ox2.js +213 -0
  384. package/dist/public/assets/chunk-R3KSYZAL-CCTi2rHV.js +1 -0
  385. package/dist/public/assets/chunk-STOXU5M4-DU6EHCIH.js +72 -0
  386. package/dist/public/assets/chunk-TU62E6Q5-BtgGljqq.js +1 -0
  387. package/dist/public/assets/chunk-X4PVCEUW-Dd_Qy0Gx.js +1 -0
  388. package/dist/public/assets/chunk-XXDRQBXY-DjOrWHxV.js +1 -0
  389. package/dist/public/assets/chunk-Y2CYZVJY-DsF7k-Jl.js +1 -0
  390. package/dist/public/assets/classDiagram-v2-L25IHNXF-KfN1--CA.js +217 -0
  391. package/dist/public/assets/client-sUFoEC5s.js +1 -0
  392. package/dist/public/assets/clojure-Cm7r79vr.js +1 -0
  393. package/dist/public/assets/codicon-DF1abBS2.ttf +0 -0
  394. package/dist/public/assets/coffee-Ba7i2nA0.js +1 -0
  395. package/dist/public/assets/common-CGQN5htF.js +4 -0
  396. package/dist/public/assets/cose-bilkent-JH36ORCC-BuWVQ5UC.js +1 -0
  397. package/dist/public/assets/cpp-C7h46wYY.js +1 -0
  398. package/dist/public/assets/csharp-BKxtCVv1.js +1 -0
  399. package/dist/public/assets/csp-bTuwJoIa.js +1 -0
  400. package/dist/public/assets/css-DIMkf-bt.js +3 -0
  401. package/dist/public/assets/cynefin-EF2NZ3EQ-D_GZWaFs.js +1 -0
  402. package/dist/public/assets/cynefinDiagram-L36ESFBY-BKljxAVP.js +62 -0
  403. package/dist/public/assets/cypher-CVaqCwHa.js +1 -0
  404. package/dist/public/assets/cytoscape.esm-DpEiRCgp.js +321 -0
  405. package/dist/public/assets/d3-scale-CElPUUud.js +1 -0
  406. package/dist/public/assets/d3-selection-CtCbiJ-r.js +1 -0
  407. package/dist/public/assets/dagre-SPEB5RXH-nD3f86OL.js +4 -0
  408. package/dist/public/assets/dart-onAF5SnQ.js +1 -0
  409. package/dist/public/assets/diagram-3B7GL73J-wSVpHF4f.js +200 -0
  410. package/dist/public/assets/diagram-DNEMPZML-BOkeaSpr.js +24 -0
  411. package/dist/public/assets/diagram-L3MUGCDN-CRCErdiz.js +41 -0
  412. package/dist/public/assets/diagram-LA4NIPWU-y5kaOsii.js +24 -0
  413. package/dist/public/assets/diagram-MHCOC4E2-D7l7ybij.js +3 -0
  414. package/dist/public/assets/diagram-XPFHEONP-kHzV_Ibv.js +30 -0
  415. package/dist/public/assets/dist-B-aKVhGg.js +1 -0
  416. package/dist/public/assets/dockerfile-DZFCIeNp.js +1 -0
  417. package/dist/public/assets/ebnfDiagram-UZSYDL2S-BX_-WdHG.js +1 -0
  418. package/dist/public/assets/ecl-94qehhXe.js +1 -0
  419. package/dist/public/assets/editor-DjpsE8to.css +1 -0
  420. package/dist/public/assets/editor.api-Dwz0wCaW.js +908 -0
  421. package/dist/public/assets/editor.worker-CRz__AKW.js +33 -0
  422. package/dist/public/assets/elixir-6RTg0lbw.js +1 -0
  423. package/dist/public/assets/elk-XV6XMXQE-YaOVo5bZ.js +27 -0
  424. package/dist/public/assets/erDiagram-EYBAPDEH-BXQPjKDV.js +99 -0
  425. package/dist/public/assets/eventmodeling-K75KTNOO-SiGVyftr.js +1 -0
  426. package/dist/public/assets/flow9-C5_-GSwl.js +1 -0
  427. package/dist/public/assets/flowDiagram-MALGAFMO-BHpEyQnS.js +1 -0
  428. package/dist/public/assets/freemarker2-DmbpSxx5.js +3 -0
  429. package/dist/public/assets/fsharp-C8Ef5oNN.js +1 -0
  430. package/dist/public/assets/ganttDiagram-23REXITY-B_i7AN7O.js +292 -0
  431. package/dist/public/assets/gitGraph-VSP46ZUC-CSv9x0vY.js +1 -0
  432. package/dist/public/assets/gitGraphDiagram-STJD7YCW-BMA1YavS.js +106 -0
  433. package/dist/public/assets/go-C-y9NEjX.js +1 -0
  434. package/dist/public/assets/graphlib-DoDw2DoG.js +1 -0
  435. package/dist/public/assets/graphql-fmXr3nnJ.js +1 -0
  436. package/dist/public/assets/handlebars-BVNKBeJT.js +1 -0
  437. package/dist/public/assets/hcl-CpzslTdj.js +1 -0
  438. package/dist/public/assets/html-BHaxuuAl.js +1 -0
  439. package/dist/public/assets/index-DtU34jhH.js +2 -0
  440. package/dist/public/assets/info-OHQRW6UA-Bx2U6fFU.js +1 -0
  441. package/dist/public/assets/infoDiagram-KBXO4MBG-BkNpfsDm.js +2 -0
  442. package/dist/public/assets/ini-sBoK_t0W.js +1 -0
  443. package/dist/public/assets/ishikawaDiagram-M35NCXHK-xTM6C-Kn.js +70 -0
  444. package/dist/public/assets/java-BEtHBSE6.js +1 -0
  445. package/dist/public/assets/javascript-C5dXKvxq.js +1 -0
  446. package/dist/public/assets/journeyDiagram-OPLOXDXO-C6iaT7vL.js +139 -0
  447. package/dist/public/assets/json.worker-CV9fqkUp.js +65 -0
  448. package/dist/public/assets/jsonMode-BD64T5vA.css +1 -0
  449. package/dist/public/assets/jsonMode-Ia_aRv-z.js +29 -0
  450. package/dist/public/assets/julia-Bri6UV-V.js +1 -0
  451. package/dist/public/assets/kanban-definition-BZKZHSQY-MobAdBhz.js +89 -0
  452. package/dist/public/assets/katex-B9z73Mgk.js +257 -0
  453. package/dist/public/assets/katex-BydxR-ky.css +1 -0
  454. package/dist/public/assets/kotlin-BOotOW0E.js +1 -0
  455. package/dist/public/assets/less-B9JPFI3C.js +2 -0
  456. package/dist/public/assets/lexon-CfSJPG6W.js +1 -0
  457. package/dist/public/assets/liquid-CIbIBxiN.js +1 -0
  458. package/dist/public/assets/lua-CsQS60Ue.js +1 -0
  459. package/dist/public/assets/m3-D-oSqn_W.js +1 -0
  460. package/dist/public/assets/markdown-Cimd5fb3.js +1 -0
  461. package/dist/public/assets/mdx-BqruHcEe.js +1 -0
  462. package/dist/public/assets/mermaid-parser.core-kBQmxOUn.js +7 -0
  463. package/dist/public/assets/mermaid.core-BFkQwIYu.js +44 -0
  464. package/dist/public/assets/mindmap-definition-I2QAS2VK-DxpTmvUG.js +98 -0
  465. package/dist/public/assets/mips-CIPQ_RoX.js +1 -0
  466. package/dist/public/assets/module-B8jze-Tx.js +5 -0
  467. package/dist/public/assets/module-Blc8dqbf.js +1 -0
  468. package/dist/public/assets/module-C1y_4M09.js +1061 -0
  469. package/dist/public/assets/module-C9WFrzAc.js +1 -0
  470. package/dist/public/assets/module-CouMtASh.js +1 -0
  471. package/dist/public/assets/module-DYWqfyIP.js +1 -0
  472. package/dist/public/assets/module-EGdAhoOx.js +1 -0
  473. package/dist/public/assets/module-EeaigZHL.js +1 -0
  474. package/dist/public/assets/module-ZhkaqrNe.js +1 -0
  475. package/dist/public/assets/monaco-BRwac88s.js +35 -0
  476. package/dist/public/assets/monaco-BlFvoJcU.css +1 -0
  477. package/dist/public/assets/msdax-DauUninz.js +1 -0
  478. package/dist/public/assets/mysql-SOo6toE5.js +1 -0
  479. package/dist/public/assets/objective-c-FvmIjYaQ.js +1 -0
  480. package/dist/public/assets/packet-JDAUHWVQ-Dy7GyfNz.js +1 -0
  481. package/dist/public/assets/pascal-DrH0SRf2.js +1 -0
  482. package/dist/public/assets/pascaligo-D-ptJ9y-.js +1 -0
  483. package/dist/public/assets/pegDiagram-FD4XPPHP-B3bIVo4u.js +1 -0
  484. package/dist/public/assets/perl-oz_6vUea.js +1 -0
  485. package/dist/public/assets/pgsql-DTj74zXo.js +1 -0
  486. package/dist/public/assets/php-nr791fC2.js +1 -0
  487. package/dist/public/assets/pie-XZMESJXO-B4D2CjUH.js +1 -0
  488. package/dist/public/assets/pieDiagram-J4AKIIQI-CgnbwU0I.js +39 -0
  489. package/dist/public/assets/pla-CopQ2nXW.js +1 -0
  490. package/dist/public/assets/postiats-43DmfD33.js +1 -0
  491. package/dist/public/assets/powerquery-D3hlyOfw.js +1 -0
  492. package/dist/public/assets/powershell-DmHpPYUd.js +1 -0
  493. package/dist/public/assets/protobuf-C531GsRP.js +2 -0
  494. package/dist/public/assets/pug-Z5eAx3Zn.js +1 -0
  495. package/dist/public/assets/python-Cwjb3hEe.js +1 -0
  496. package/dist/public/assets/qsharp-DkqhCAOL.js +1 -0
  497. package/dist/public/assets/quadrantDiagram-XTYBLID2-DWx4wRau.js +7 -0
  498. package/dist/public/assets/r-BwWrilGY.js +1 -0
  499. package/dist/public/assets/radar-ABXABTNO-Dtf3tObc.js +1 -0
  500. package/dist/public/assets/railroad-I3PHUGI6-DKGa9xBx.js +1 -0
  501. package/dist/public/assets/railroad-abnf-LNEFI6M7-CyjF4cc_.js +1 -0
  502. package/dist/public/assets/railroad-ebnf-DWYD2UWJ-D2ypsr5c.js +1 -0
  503. package/dist/public/assets/railroad-peg-JR7BVNR7-Cy6Mde1c.js +1 -0
  504. package/dist/public/assets/railroadDiagram-MRQ6NCDL-B6ya_k_l.js +1 -0
  505. package/dist/public/assets/razor-D_ClW9Lh.js +1 -0
  506. package/dist/public/assets/redis-ClamHrr6.js +1 -0
  507. package/dist/public/assets/redshift-DT7zqm-g.js +1 -0
  508. package/dist/public/assets/requirementDiagram-Y7LWUY3S-Brg8B8VS.js +84 -0
  509. package/dist/public/assets/resolver-B7c_-amj.js +1 -0
  510. package/dist/public/assets/restructuredtext-BYgofb2h.js +1 -0
  511. package/dist/public/assets/rough.esm-Dy-Kn_BL.js +1 -0
  512. package/dist/public/assets/ruby-DezsRK8O.js +1 -0
  513. package/dist/public/assets/rust-DdL9SqIa.js +1 -0
  514. package/dist/public/assets/sankeyDiagram-WGJFYUXA-DbzPDfky.js +40 -0
  515. package/dist/public/assets/sb-CcwsVR0C.js +1 -0
  516. package/dist/public/assets/scala-DHpiXF5c.js +1 -0
  517. package/dist/public/assets/scheme-BeGwcela.js +1 -0
  518. package/dist/public/assets/scss-gp-XZpBa.js +3 -0
  519. package/dist/public/assets/sequenceDiagram-5NDRBG5M-BuN84drT.js +169 -0
  520. package/dist/public/assets/shell-CC2rA5mh.js +1 -0
  521. package/dist/public/assets/sizeCapture-INFHLROL-3uHXrFqA.js +1 -0
  522. package/dist/public/assets/solidity-BEEn4gHE.js +1 -0
  523. package/dist/public/assets/sophia-CRfGWb83.js +1 -0
  524. package/dist/public/assets/sparql-D_Lu-MrJ.js +1 -0
  525. package/dist/public/assets/sql-NEE52Syq.js +1 -0
  526. package/dist/public/assets/st-DbInun42.js +1 -0
  527. package/dist/public/assets/stateDiagram-v2-FJ4FJNEA-C_CTpHMj.js +291 -0
  528. package/dist/public/assets/swift-Bxkupp3x.js +1 -0
  529. package/dist/public/assets/swimlanes-UMQ2AFYF-BvD4v9jw.js +1 -0
  530. package/dist/public/assets/swimlanesDiagram-OMPLPG4O-CMvLg13v.js +8 -0
  531. package/dist/public/assets/systemverilog-Bz4Y3fRF.js +1 -0
  532. package/dist/public/assets/tcl-DISqw1ZD.js +1 -0
  533. package/dist/public/assets/timeline-definition-SEUHKTQE-VE2xWGk8.js +120 -0
  534. package/dist/public/assets/treeView-D4JQ5SDB-ETecwv1j.js +1 -0
  535. package/dist/public/assets/treemap-SAJKECNS-er6ceAYK.js +1 -0
  536. package/dist/public/assets/twig-De2hgUGE.js +1 -0
  537. package/dist/public/assets/typescript-upeNz2VW.js +1 -0
  538. package/dist/public/assets/typespec-B8J7ngcE.js +1 -0
  539. package/dist/public/assets/usecaseDiagram-AFA6YXN4-ZtyyvKye.js +328 -0
  540. package/dist/public/assets/vb-DV3o63ZY.js +1 -0
  541. package/dist/public/assets/vennDiagram-NNMJR3RB-BTEvzrNd.js +34 -0
  542. package/dist/public/assets/wardley-7MLQ67FV-CzrxsjBc.js +1 -0
  543. package/dist/public/assets/wardleyDiagram-S7YFUSEH-CF8wIUhx.js +78 -0
  544. package/dist/public/assets/wgsl-DpFanUEy.js +298 -0
  545. package/dist/public/assets/xml-Cki0HxGb.js +1 -0
  546. package/dist/public/assets/xychartDiagram-GGNKY7IX-DcDpoJ4n.js +7 -0
  547. package/dist/public/assets/yaml-YIY66l1U.js +1 -0
  548. package/dist/public/assets/zh-cn-Bhwk8qWJ.js +12 -0
  549. package/dist/public/favicon.ico +0 -0
  550. package/dist/public/icons/apple-touch-icon.png +0 -0
  551. package/dist/public/icons/icon-192.png +0 -0
  552. package/dist/public/icons/icon-512.png +0 -0
  553. package/dist/public/icons/icon.svg +1 -0
  554. package/dist/public/icons/maskable-512.png +0 -0
  555. package/dist/public/index.html +18 -0
  556. package/dist/public/manifest.webmanifest +40 -0
  557. package/dist/public/sw.js +78 -0
  558. package/dist/serve/index.mjs +8235 -2691
  559. package/package.json +23 -23
@@ -0,0 +1,4 @@
1
+ var e;(function(e){(function(t){var n=typeof globalThis==`object`?globalThis:typeof self==`object`?self:typeof this==`object`?this:Function(`return this;`)(),r=i(e);n.Reflect===void 0?n.Reflect=e:r=i(n.Reflect,r),t(r);function i(e,t){return function(n,r){typeof e[n]!=`function`&&Object.defineProperty(e,n,{configurable:!0,writable:!0,value:r}),t&&t(n,r)}}})(function(e){var t=Object.prototype.hasOwnProperty,n=typeof Symbol==`function`,r=n&&Symbol.toPrimitive!==void 0?Symbol.toPrimitive:`@@toPrimitive`,i=n&&Symbol.iterator!==void 0?Symbol.iterator:`@@iterator`,a=typeof Object.create==`function`,o={__proto__:[]}instanceof Array,s=!a&&!o,c={create:a?function(){return z(Object.create(null))}:o?function(){return z({__proto__:null})}:function(){return z({})},has:s?function(e,n){return t.call(e,n)}:function(e,t){return t in e},get:s?function(e,n){return t.call(e,n)?e[n]:void 0}:function(e,t){return e[t]}},l=Object.getPrototypeOf(Function),u=typeof process==`object`&&{}.REFLECT_METADATA_USE_MAP_POLYFILL===`true`,d=!u&&typeof Map==`function`&&typeof Map.prototype.entries==`function`?Map:ge(),f=!u&&typeof Set==`function`&&typeof Set.prototype.entries==`function`?Set:_e(),p=new(!u&&typeof WeakMap==`function`?WeakMap:R());function m(e,t,n,r){if(w(n)){if(!M(e)||!P(t))throw TypeError();return oe(e,t)}if(!M(e)||!D(t)||!D(r)&&!w(r)&&!T(r))throw TypeError();return T(r)&&(r=void 0),n=j(n),se(e,t,n,r)}e(`decorate`,m);function h(e,t){function n(n,r){if(!D(n)||!w(r)&&!fe(r))throw TypeError();b(e,t,n,r)}return n}e(`metadata`,h);function g(e,t,n,r){if(!D(n))throw TypeError();return w(r)||(r=j(r)),b(e,t,n,r)}e(`defineMetadata`,g);function ee(e,t,n){if(!D(t))throw TypeError();return w(n)||(n=j(n)),ce(e,t,n)}e(`hasMetadata`,ee);function _(e,t,n){if(!D(t))throw TypeError();return w(n)||(n=j(n)),y(e,t,n)}e(`hasOwnMetadata`,_);function te(e,t,n){if(!D(t))throw TypeError();return w(n)||(n=j(n)),le(e,t,n)}e(`getMetadata`,te);function ne(e,t,n){if(!D(t))throw TypeError();return w(n)||(n=j(n)),ue(e,t,n)}e(`getOwnMetadata`,ne);function re(e,t){if(!D(e))throw TypeError();return w(t)||(t=j(t)),x(e,t)}e(`getMetadataKeys`,re);function ie(e,t){if(!D(e))throw TypeError();return w(t)||(t=j(t)),S(e,t)}e(`getOwnMetadataKeys`,ie);function ae(e,t,n){if(!D(t))throw TypeError();w(n)||(n=j(n));var r=v(t,n,!1);if(w(r)||!r.delete(e))return!1;if(r.size>0)return!0;var i=p.get(t);return i.delete(n),i.size>0||p.delete(t),!0}e(`deleteMetadata`,ae);function oe(e,t){for(var n=e.length-1;n>=0;--n){var r=e[n],i=r(t);if(!w(i)&&!T(i)){if(!P(i))throw TypeError();t=i}}return t}function se(e,t,n,r){for(var i=e.length-1;i>=0;--i){var a=e[i],o=a(t,n,r);if(!w(o)&&!T(o)){if(!D(o))throw TypeError();r=o}}return r}function v(e,t,n){var r=p.get(e);if(w(r)){if(!n)return;r=new d,p.set(e,r)}var i=r.get(t);if(w(i)){if(!n)return;i=new d,r.set(t,i)}return i}function ce(e,t,n){if(y(e,t,n))return!0;var r=L(t);return!T(r)&&ce(e,r,n)}function y(e,t,n){var r=v(t,n,!1);return!w(r)&&k(r.has(e))}function le(e,t,n){if(y(e,t,n))return ue(e,t,n);var r=L(t);if(!T(r))return le(e,r,n)}function ue(e,t,n){var r=v(t,n,!1);if(!w(r))return r.get(e)}function b(e,t,n,r){v(n,r,!0).set(e,t)}function x(e,t){var n=S(e,t),r=L(e);if(r===null)return n;var i=x(r,t);if(i.length<=0)return n;if(n.length<=0)return i;for(var a=new f,o=[],s=0,c=n;s<c.length;s++){var l=c[s],u=a.has(l);u||(a.add(l),o.push(l))}for(var d=0,p=i;d<p.length;d++){var l=p[d],u=a.has(l);u||(a.add(l),o.push(l))}return o}function S(e,t){var n=[],r=v(e,t,!1);if(w(r))return n;for(var i=I(r.keys()),a=0;;){var o=me(i);if(!o)return n.length=a,n;var s=pe(o);try{n[a]=s}catch(e){try{he(i)}finally{throw e}}a++}}function C(e){if(e===null)return 1;switch(typeof e){case`undefined`:return 0;case`boolean`:return 2;case`string`:return 3;case`symbol`:return 4;case`number`:return 5;case`object`:return e===null?1:6;default:return 6}}function w(e){return e===void 0}function T(e){return e===null}function E(e){return typeof e==`symbol`}function D(e){return typeof e==`object`?e!==null:typeof e==`function`}function O(e,t){switch(C(e)){case 0:return e;case 1:return e;case 2:return e;case 3:return e;case 4:return e;case 5:return e}var n=t===3?`string`:t===5?`number`:`default`,i=F(e,r);if(i!==void 0){var a=i.call(e,n);if(D(a))throw TypeError();return a}return de(e,n==="default"?`number`:n)}function de(e,t){if(t===`string`){var n=e.toString;if(N(n)){var r=n.call(e);if(!D(r))return r}var i=e.valueOf;if(N(i)){var r=i.call(e);if(!D(r))return r}}else{var i=e.valueOf;if(N(i)){var r=i.call(e);if(!D(r))return r}var a=e.toString;if(N(a)){var r=a.call(e);if(!D(r))return r}}throw TypeError()}function k(e){return!!e}function A(e){return``+e}function j(e){var t=O(e,3);return E(t)?t:A(t)}function M(e){return Array.isArray?Array.isArray(e):e instanceof Object?e instanceof Array:Object.prototype.toString.call(e)===`[object Array]`}function N(e){return typeof e==`function`}function P(e){return typeof e==`function`}function fe(e){switch(C(e)){case 3:return!0;case 4:return!0;default:return!1}}function F(e,t){var n=e[t];if(n!=null){if(!N(n))throw TypeError();return n}}function I(e){var t=F(e,i);if(!N(t))throw TypeError();var n=t.call(e);if(!D(n))throw TypeError();return n}function pe(e){return e.value}function me(e){var t=e.next();return!t.done&&t}function he(e){var t=e.return;t&&t.call(e)}function L(e){var t=Object.getPrototypeOf(e);if(typeof e!=`function`||e===l||t!==l)return t;var n=e.prototype,r=n&&Object.getPrototypeOf(n);if(r==null||r===Object.prototype)return t;var i=r.constructor;return typeof i!=`function`||i===e?t:i}function ge(){var e={},t=[],n=function(){function e(e,t,n){this._index=0,this._keys=e,this._values=t,this._selector=n}return e.prototype[`@@iterator`]=function(){return this},e.prototype[i]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e<this._keys.length){var n=this._selector(this._keys[e],this._values[e]);return e+1>=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},t.prototype.delete=function(t){var n=this._find(t,!1);if(n>=0){for(var r=this._keys.length,i=n+1;i<r;i++)this._keys[i-1]=this._keys[i],this._values[i-1]=this._values[i];return this._keys.length--,this._values.length--,t===this._cacheKey&&(this._cacheKey=e,this._cacheIndex=-2),!0}return!1},t.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=e,this._cacheIndex=-2},t.prototype.keys=function(){return new n(this._keys,this._values,r)},t.prototype.values=function(){return new n(this._keys,this._values,a)},t.prototype.entries=function(){return new n(this._keys,this._values,o)},t.prototype[`@@iterator`]=function(){return this.entries()},t.prototype[i]=function(){return this.entries()},t.prototype._find=function(e,t){return this._cacheKey!==e&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=e)),this._cacheIndex<0&&t&&(this._cacheIndex=this._keys.length,this._keys.push(e),this._values.push(void 0)),this._cacheIndex},t}();function r(e,t){return e}function a(e,t){return t}function o(e,t){return[e,t]}}function _e(){return function(){function e(){this._map=new d}return Object.defineProperty(e.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),e.prototype.has=function(e){return this._map.has(e)},e.prototype.add=function(e){return this._map.set(e,e),this},e.prototype.delete=function(e){return this._map.delete(e)},e.prototype.clear=function(){this._map.clear()},e.prototype.keys=function(){return this._map.keys()},e.prototype.values=function(){return this._map.values()},e.prototype.entries=function(){return this._map.entries()},e.prototype[`@@iterator`]=function(){return this.keys()},e.prototype[i]=function(){return this.keys()},e}()}function R(){var e=c.create(),n=r();return function(){function e(){this._key=r()}return e.prototype.has=function(e){var t=i(e,!1);return t!==void 0&&c.has(t,this._key)},e.prototype.get=function(e){var t=i(e,!1);return t===void 0?void 0:c.get(t,this._key)},e.prototype.set=function(e,t){var n=i(e,!0);return n[this._key]=t,this},e.prototype.delete=function(e){var t=i(e,!1);return t!==void 0&&delete t[this._key]},e.prototype.clear=function(){this._key=r()},e}();function r(){var t;do t=`@@WeakMap@@`+s();while(c.has(e,t));return e[t]=!0,t}function i(e,r){if(!t.call(e,n)){if(!r)return;Object.defineProperty(e,n,{value:c.create()})}return e[n]}function a(e,t){for(var n=0;n<t;++n)e[n]=Math.random()*255|0;return e}function o(e){return typeof Uint8Array==`function`?typeof crypto<`u`?crypto.getRandomValues(new Uint8Array(e)):typeof msCrypto<`u`?msCrypto.getRandomValues(new Uint8Array(e)):a(new Uint8Array(e),e):a(Array(e),e)}function s(){var e=o(16);e[6]=e[6]&79|64,e[8]=e[8]&191|128;for(var t=``,n=0;n<16;++n){var r=e[n];(n===4||n===6||n===8)&&(t+=`-`),r<16&&(t+=`0`),t+=r.toString(16).toLowerCase()}return t}}function z(e){return e.__=void 0,delete e.__,e}})})(e||={});var t;(function(e){async function t(e,n){if(e instanceof Array)return Promise.all(e.map(e=>t(e,n)));let r=await e;return{priority:await n(r),value:r}}e.toPrioritizeable=t;function n(e,t=e=>e.priority){return e.map(e=>({value:e,priority:t(e)}))}e.toPrioritizeableSync=n;function r(e,t){return n(e,t).filter(a).sort(o)}e.prioritizeAllSync=r;async function i(e,n){return(await t(e,n)).filter(a).sort(o)}e.prioritizeAll=i;function a(e){return e.priority>0}e.isValid=a;function o(e,t){return t.priority-e.priority}e.compare=o})(t||={});var n=class{constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}static{Object.defineProperty(this,"name",{value:`Deferred`,configurable:!0})}};function r(e){let t=[],n=e;for(;Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n),t.push(n);return t}var i;(function(e){let t={dispose(){}};e.None=Object.assign(function(){return t},{get maxListeners(){return 0},set maxListeners(e){}});function n(e,t){return Object.assign((n,r,i)=>e(e=>n.call(r,t(e)),void 0,i),{maxListeners:0})}e.map=n})(i||={});var a=class{get length(){return this._callbacks&&this._callbacks.length||0}add(e,t=void 0,n){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(e),this._contexts.push(t),Array.isArray(n)&&n.push({dispose:()=>this.remove(e,t)})}remove(e,t=void 0){if(!this._callbacks)return;let n=!1;for(let r=0;r<this._callbacks.length;r++)if(this._callbacks[r]===e){if(this._contexts[r]===t){this._callbacks.splice(r,1),this._contexts.splice(r,1);return}n=!0}if(n)throw Error(`When adding a listener with a context, you should remove it with the same context`)}*[Symbol.iterator](){if(!this._callbacks)return;let e=this._callbacks.slice(0),t=this._contexts.slice(0);for(let n=0;n<e.length;n++){let r=e[n],i=t[n];yield(...e)=>r.apply(i,e)}}invoke(...e){if(!this._callbacks)return[];let t=this._callbacks.slice(0),n=this._contexts.slice(0),r=[];for(let i=0;i<t.length;i++)try{r.push(t[i].apply(n[i],e))}catch(e){console.error(e)}return r}isEmpty(){return!this._callbacks||this._callbacks.length===0}dispose(){this._callbacks=void 0,this._contexts=void 0}static{Object.defineProperty(this,"name",{value:`CallbackList`,configurable:!0})}},o=class e{constructor(e){this._options=e,this._disposed=!1,this._leakWarnCountdown=0}get event(){return this._event||=Object.assign((t,n,r)=>{this._callbacks||=new a,this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(t,n);let i=this.checkMaxListeners(this._event.maxListeners),o={dispose:()=>{i&&i(),o.dispose=e._noop,this._disposed||(this._callbacks.remove(t,n),o.dispose=e._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))}};return Array.isArray(r)&&r.push(o),o},{maxListeners:e.LEAK_WARNING_THRESHHOLD}),this._event}checkMaxListeners(e){if(e===0||!this._callbacks)return;let t=this._callbacks.length;if(t<=e)return;let n=this.pushLeakingStack();if(--this._leakWarnCountdown,this._leakWarnCountdown<=0){this._leakWarnCountdown=e*.5;let n,r=0;this._leakingStacks.forEach((e,t)=>{(!n||r<e)&&(n=t,r=e)}),console.warn(`Possible Emitter memory leak detected. ${t} listeners added. Use event.maxListeners to increase the limit (${e}). MOST frequent listener (${r}):`),console.warn(n)}return n}pushLeakingStack(){this._leakingStacks||=new Map;let e=Error().stack.split(`
2
+ `).slice(3).join(`
3
+ `),t=this._leakingStacks.get(e)||0;return this._leakingStacks.set(e,t+1),()=>this.popLeakingStack(e)}popLeakingStack(e){if(!this._leakingStacks)return;let t=this._leakingStacks.get(e)||0;this._leakingStacks.set(e,t-1)}get hasListeners(){return!!this._callbacks&&!this._callbacks.isEmpty()}fire(e){this._callbacks&&this._callbacks.invoke(e)}async sequence(e){if(this._callbacks){for(let t of this._callbacks)if(!await e(t))break}}dispose(){this._leakingStacks&&=(this._leakingStacks.clear(),void 0),this._callbacks&&=(this._callbacks.dispose(),void 0),this._disposed=!0}static{Object.defineProperty(this,"name",{value:`Emitter`,configurable:!0})}};o.LEAK_WARNING_THRESHHOLD=175,o._noop=function(){};var s;(function(e){async function t(e,t,n=void 0){let r=[],i=Object.assign(t,{waitUntil:e=>{if(Object.isFrozen(r))throw Error(`waitUntil cannot be called asynchronously.`);r.push(e)}});try{e.fire(i),Object.freeze(r)}finally{delete i.waitUntil}r.length&&(n===void 0?await Promise.all(r):await Promise.race([Promise.all(r),new Promise(e=>setTimeout(e,n))]))}e.fire=t})(s||={});var c;(function(e){function t(e){return!!e&&typeof e==`object`&&`dispose`in e&&typeof e.dispose==`function`}e.is=t;function n(e){return{dispose:e}}e.create=n,e.NULL=n(()=>{})})(c||={}),class{constructor(...e){this.disposables=[],this.onDisposeEmitter=new o,this.disposingElements=!1,e.forEach(e=>this.push(e))}get onDispose(){return this.onDisposeEmitter.event}checkDisposed(){this.disposed&&!this.disposingElements&&(this.onDisposeEmitter.fire(void 0),this.onDisposeEmitter.dispose())}get disposed(){return this.disposables.length===0}dispose(){if(!(this.disposed||this.disposingElements)){for(this.disposingElements=!0;!this.disposed;)try{this.disposables.pop().dispose()}catch(e){console.error(e)}this.disposingElements=!1,this.checkDisposed()}}push(e){let t=this.disposables;t.push(e);let n=e.dispose.bind(e),r=c.create(()=>{let n=t.indexOf(e);n!==-1&&t.splice(n,1),this.checkDisposed()});return e.dispose=()=>{r.dispose(),e.dispose=n,n()},r}pushAll(e){return e.map(e=>this.push(e))}static{Object.defineProperty(this,"name",{value:`DisposableCollection`,configurable:!0})}};function l(e,t){return typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.indexOf(e)>=0?!0:typeof process<`u`&&process.platform===t}var u=l(`Windows`,`win32`),d=l(`Mac`,`darwin`),f;(function(e){let t;(function(e){e.Windows=`Windows`,e.Linux=`Linux`,e.OSX=`OSX`})(t=e.Type||={});function n(){return u?t.Windows:d?t.OSX:t.Linux}e.type=n})(f||={});var p=Symbol.for(`@celljs/core/proxy-target`);function m(e){return e?.[p]??e}var h;(function(e){function t(e,t=`id`){let n={};return typeof e==`object`&&!Array.isArray(e)?n=e:e&&(n={[t]:e}),n}e.getValueOrOption=t;function n(e,t,n){return n===void 0?Reflect.getMetadata(`design:type`,e,t):Reflect.getMetadata(`design:paramtypes`,e,t)?.[n]}e.getType=n})(h||={});var g=class extends Error{constructor(){super(`Canceled`),this.name=this.message}static{Object.defineProperty(this,"name",{value:`CancellationError`,configurable:!0})}},ee=Object.freeze(Object.assign(function(e,t){let n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}},{maxListeners:0})),_;(function(e){e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:i.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:ee})})(_||={});var te=class{constructor(){this._isCancelled=!1}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&=(this._emitter.fire(void 0),void 0))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?ee:(this._emitter||=new o,this._emitter.event)}static{Object.defineProperty(this,"name",{value:`MutableToken`,configurable:!0})}};(class{get token(){return this._token||=new te,this._token}cancel(){this._token?this._token!==_.Cancelled&&this._token.cancel():this._token=_.Cancelled}dispose(){this.cancel()}static{Object.defineProperty(this,"name",{value:`CancellationTokenSource`,configurable:!0})}});function ne(){if(typeof globalThis<`u`||typeof globalThis<`u`)return globalThis;if(typeof window<`u`)return window;if(typeof self<`u`)return self}var re=ne(),ie=class{constructor(){this.activePromise=void 0,this.queuedPromise=void 0,this.queuedPromiseFactory=void 0}queue(e){if(this.activePromise){if(this.queuedPromiseFactory=e,!this.queuedPromise){let e=()=>{this.queuedPromise=void 0;let e=this.queue(this.queuedPromiseFactory);return this.queuedPromiseFactory=void 0,e};this.queuedPromise=new Promise(t=>{this.activePromise.then(e,e).then(t)})}return new Promise((e,t)=>{this.queuedPromise.then(e,t)})}return this.activePromise=e(),new Promise((e,t)=>{this.activePromise.then(t=>{this.activePromise=void 0,e(t)},e=>{this.activePromise=void 0,t(e)})})}static{Object.defineProperty(this,"name",{value:`Throttler`,configurable:!0})}};(class{constructor(){this.current=Promise.resolve(void 0)}queue(e){return this.current=this.current.then(()=>e(),()=>e())}static{Object.defineProperty(this,"name",{value:`Sequencer`,configurable:!0})}}),class{constructor(){this.promiseMap=new Map}queue(e,t){let n=(this.promiseMap.get(e)??Promise.resolve()).catch(()=>{}).then(t).finally(()=>{this.promiseMap.get(e)===n&&this.promiseMap.delete(e)});return this.promiseMap.set(e,n),n}static{Object.defineProperty(this,"name",{value:`SequencerByKey`,configurable:!0})}};var ae=(e,t)=>{let n=!0,r=setTimeout(()=>{n=!1,t()},e);return{isTriggered:()=>n,dispose:()=>{clearTimeout(r),n=!1}}},oe=e=>{let t=!0;return queueMicrotask(()=>{t&&(t=!1,e())}),{isTriggered:()=>t,dispose:()=>{t=!1}}},se=Symbol(`MicrotaskDelay`),v=class{constructor(e){this.defaultDelay=e,this.deferred=void 0,this.completionPromise=void 0,this.doResolve=void 0,this.doReject=void 0,this.task=void 0}trigger(e,t=this.defaultDelay){this.task=e,this.cancelTimeout(),this.completionPromise||=new Promise((e,t)=>{this.doResolve=e,this.doReject=t}).then(()=>{if(this.completionPromise=void 0,this.doResolve=void 0,this.task){let e=this.task;return this.task=void 0,e()}});let n=()=>{var e;this.deferred=void 0,(e=this.doResolve)==null||e.call(this,void 0)};return this.deferred=t===se?oe(n):ae(t,n),this.completionPromise}isTriggered(){return!!this.deferred?.isTriggered()}cancel(){this.cancelTimeout(),this.completionPromise&&=(this.doReject&&this.doReject(new g),void 0)}cancelTimeout(){var e;(e=this.deferred)==null||e.dispose(),this.deferred=void 0}dispose(){this.cancel()}static{Object.defineProperty(this,"name",{value:`Delayer`,configurable:!0})}};(class{constructor(e){this.delayer=new v(e),this.throttler=new ie}trigger(e,t){return this.delayer.trigger(()=>this.throttler.queue(e),t)}isTriggered(){return this.delayer.isTriggered()}cancel(){this.delayer.cancel()}dispose(){this.delayer.dispose()}static{Object.defineProperty(this,"name",{value:`ThrottledDelayer`,configurable:!0})}});var ce=class{constructor(){this._isOpen=!1,this._promise=new Promise((e,t)=>{this._completePromise=e})}isOpen(){return this._isOpen}open(){this._isOpen=!0,this._completePromise(!0)}wait(){return this._promise}static{Object.defineProperty(this,"name",{value:`Barrier`,configurable:!0})}};(class extends ce{constructor(e){super(),this._timeout=setTimeout(()=>this.open(),e)}open(){clearTimeout(this._timeout),super.open()}static{Object.defineProperty(this,"name",{value:`AutoOpenBarrier`,configurable:!0})}});var y=class{constructor(e){this._size=0,this.maxDegreeOfParalellism=e,this.outstandingPromises=[],this.runningPromises=0,this._onDrained=new o}get onDrained(){return this._onDrained.event}get size(){return this._size}queue(e){return this._size++,new Promise((t,n)=>{this.outstandingPromises.push({factory:e,c:t,e:n}),this.consume()})}consume(){for(;this.outstandingPromises.length&&this.runningPromises<this.maxDegreeOfParalellism;){let e=this.outstandingPromises.shift();this.runningPromises++;let t=e.factory();t.then(e.c,e.e),t.then(()=>this.consumed(),()=>this.consumed())}}consumed(){this._size--,this.runningPromises--,this.outstandingPromises.length>0?this.consume():this._onDrained.fire()}dispose(){this._onDrained.dispose()}static{Object.defineProperty(this,"name",{value:`Limiter`,configurable:!0})}};(class extends y{constructor(){super(1)}static{Object.defineProperty(this,"name",{value:`Queue`,configurable:!0})}}),class{constructor(e,t){this._token=-1,typeof e==`function`&&typeof t==`number`&&this.setIfNotSet(e,t)}dispose(){this.cancel()}cancel(){this._token!==-1&&(clearTimeout(this._token),this._token=-1)}cancelAndSet(e,t){this.cancel(),this._token=setTimeout(()=>{this._token=-1,e()},t)}setIfNotSet(e,t){this._token===-1&&(this._token=setTimeout(()=>{this._token=-1,e()},t))}static{Object.defineProperty(this,"name",{value:`TimeoutTimer`,configurable:!0})}},class{constructor(){this._token=-1}dispose(){this.cancel()}cancel(){this._token!==-1&&(clearInterval(this._token),this._token=-1)}cancelAndSet(e,t){this.cancel(),this._token=setInterval(()=>{e()},t)}static{Object.defineProperty(this,"name",{value:`IntervalTimer`,configurable:!0})}};var le=class{constructor(e,t){this.timeoutToken=-1,this.runner=e,this.timeout=t,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=void 0}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)}schedule(e=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,e)}get delay(){return this.timeout}set delay(e){this.timeout=e}isScheduled(){return this.timeoutToken!==-1}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){this.runner&&this.runner()}static{Object.defineProperty(this,"name",{value:`RunOnceScheduler`,configurable:!0})}};(class{constructor(e,t){t%1e3!=0&&console.warn(`ProcessTimeRunOnceScheduler resolution is 1s, ${t}ms is not a multiple of 1000ms.`),this.runner=e,this.timeout=t,this.counter=0,this.intervalToken=-1,this.intervalHandler=this.onInterval.bind(this)}dispose(){this.cancel(),this.runner=void 0}cancel(){this.isScheduled()&&(clearInterval(this.intervalToken),this.intervalToken=-1)}schedule(e=this.timeout){e%1e3!=0&&console.warn(`ProcessTimeRunOnceScheduler resolution is 1s, ${e}ms is not a multiple of 1000ms.`),this.cancel(),this.counter=Math.ceil(e/1e3),this.intervalToken=setInterval(this.intervalHandler,1e3)}isScheduled(){return this.intervalToken!==-1}onInterval(){this.counter--,this.counter>0||(clearInterval(this.intervalToken),this.intervalToken=-1,this.runner&&this.runner())}static{Object.defineProperty(this,"name",{value:`ProcessTimeRunOnceScheduler`,configurable:!0})}}),class extends le{constructor(e,t){super(e,t),this.units=[]}work(e){this.units.push(e),this.isScheduled()||this.schedule()}doRun(){let e=this.units;this.units=[],this.runner&&this.runner(e)}dispose(){this.units=[],super.dispose()}static{Object.defineProperty(this,"name",{value:`RunOnceWorker`,configurable:!0})}},class{hasPending(e){return this._pending?typeof e==`number`?this._pending.taskId===e:!!this._pending:!1}get pending(){return this._pending?this._pending.promise:void 0}cancelPending(){var e;(e=this._pending)==null||e.cancel()}setPending(e,t,n){return this._pending={taskId:e,cancel:()=>n?.(),promise:t},t.then(()=>this.donePending(e),()=>this.donePending(e)),t}donePending(e){this._pending&&e===this._pending.taskId&&(this._pending=void 0,this.triggerNext())}triggerNext(){if(this._next){let e=this._next;this._next=void 0,e.run().then(e.promiseResolve,e.promiseReject)}}setNext(e){if(this._next)this._next.run=e;else{let t,n,r=new Promise((e,r)=>{t=e,n=r});this._next={run:e,promise:r,promiseResolve:t,promiseReject:n}}return this._next.promise}static{Object.defineProperty(this,"name",{value:`TaskSequentializer`,configurable:!0})}},class{constructor(e,t=()=>Date.now()){this.interval=e,this.nowFn=t,this.lastIncrementTime=0,this.value=0}increment(){let e=this.nowFn();return e-this.lastIncrementTime>this.interval&&(this.lastIncrementTime=e,this.value=0),this.value++,this.value}static{Object.defineProperty(this,"name",{value:`IntervalCounter`,configurable:!0})}},class{get isRejected(){return this.rejected}get isResolved(){return this.resolved}get isSettled(){return this.rejected||this.resolved}constructor(){this.rejected=!1,this.resolved=!1,this.p=new Promise((e,t)=>{this.completeCallback=e,this.errorCallback=t})}complete(e){return new Promise(t=>{this.completeCallback(e),this.resolved=!0,t()})}error(e){return new Promise(t=>{this.errorCallback(e),this.rejected=!0,t()})}cancel(){new Promise(e=>{this.errorCallback(new g),this.rejected=!0,e()})}static{Object.defineProperty(this,"name",{value:`DeferredPromise`,configurable:!0})}};var ue;(function(e){async function t(e){let t,n=await Promise.all(e.map(e=>e.then(e=>e,e=>{t||=e})));if(t!==void 0)throw t;return n}e.settled=t;function n(e){return new Promise(async(t,n)=>{try{await e(t,n)}catch(e){n(e)}})}e.withAsyncBody=n})(ue||={});var b;(function(e){function t(...e){let t=[];if(e.length===0)return``;if(typeof e[0]!=`string`)throw TypeError(`Url must be a string. Received `+e[0]);e[0].match(/^[^/:]+:\/*$/)&&e.length>1&&(e[0]=e.shift()+e[0]),e[0]=e[0].match(/^file:\/\/\//)?e[0].replace(/^([^/:]+):\/*/,`$1:///`):e[0].replace(/^([^/:]+):\/*/,`$1://`);for(let n=0;n<e.length;n++){let r=e[n];if(typeof r!=`string`)throw TypeError(`Url must be a string. Received `+r);r!==``&&(n>0&&(r=r.replace(/^[\/]+/,``)),r=n<e.length-1?r.replace(/[\/]+$/,``):r.replace(/[\/]+$/,`/`),t.push(r))}let n=t.join(`/`);n=n.replace(/\/(\?|&|#[^!])/g,`$1`);let r=n.split(`?`);return n=r.shift()+(r.length>0?`?`:``)+r.join(`&`),n}e.join=t})(b||={}),(function(){if(typeof crypto==`object`&&typeof crypto.randomUUID==`function`)return crypto.randomUUID.bind(crypto);let e;e=typeof crypto==`object`&&typeof crypto.getRandomValues==`function`?crypto.getRandomValues.bind(crypto):function(e){for(let t=0;t<e.length;t++)e[t]=Math.floor(Math.random()*256);return e};let t=new Uint8Array(16),n=[];for(let e=0;e<256;e++)n.push(e.toString(16).padStart(2,`0`));return function(){e(t),t[6]=t[6]&15|64,t[8]=t[8]&63|128;let r=0,i=``;return i+=n[t[r++]],i+=n[t[r++]],i+=n[t[r++]],i+=n[t[r++]],i+=`-`,i+=n[t[r++]],i+=n[t[r++]],i+=`-`,i+=n[t[r++]],i+=n[t[r++]],i+=`-`,i+=n[t[r++]],i+=n[t[r++]],i+=`-`,i+=n[t[r++]],i+=n[t[r++]],i+=n[t[r++]],i+=n[t[r++]],i+=n[t[r++]],i+=n[t[r++]],i}})();var x=class extends Error{constructor(e,t){super(e,t),Object.defineProperty(this,"name",{value:new.target.name,enumerable:!1,configurable:!0}),k.fixProto(this,new.target.prototype),k.fixStack(this)}static{Object.defineProperty(this,"name",{value:`CustomError`,configurable:!0})}},S=class extends x{static{Object.defineProperty(this,"name",{value:`IllegalStateError`,configurable:!0})}},C=class{static state(e,t){if(!e)throw new S(this.resolveMessage(t))}static isTrue(e,t){if(!e)throw new S(this.resolveMessage(t))}static isNull(e,t){if(e!==void 0||e!==null)throw new S(this.resolveMessage(t))}static notNull(e,t){if(e==null)throw new S(this.resolveMessage(t))}static hasLength(e,t){if(!e||e.length===0)throw new S(this.resolveMessage(t))}static hasText(e,t){if(!e||e.trim().length===0)throw new S(this.resolveMessage(t))}static doesNotContain(e,t,n){if(e&&t&&e.includes(t))throw new S(this.resolveMessage(n))}static notEmpty(e,t){if(!e||e.length===0)throw new S(this.resolveMessage(t))}static noNullElements(e,t){if(e){for(let n of e)if(n==null)throw new S(this.resolveMessage(t))}}static notEmptyCollection(e,t){if(!e||e.length===0)throw new S(this.resolveMessage(t))}static noNullElementsCollection(e,t){if(e){for(let n of e)if(n==null)throw new S(this.resolveMessage(t))}}static notEmptyMap(e,t){if(!e||e.size===0)throw new S(this.resolveMessage(t))}static isInstanceOf(e,t,n){this.notNull(e,`Type to check against must not be null`),t instanceof e||this.instanceCheckFailed(e,t,this.resolveMessage(n))}static isAssignable(e,t,n){this.notNull(e,`Supertype to check against must not be null`),t!==void 0&&r(t).includes(e)||this.assignableCheckFailed(e,t,this.resolveMessage(n))}static instanceCheckFailed(e,t,n){let r=t===void 0?`undefined`:t.constructor.name,i=``,a=!0;throw n&&n.length>0&&(this.endsWithSeparator(n)?i=n+` `:(i=this.messageWithTypeName(n,r),a=!1)),a&&(i+=`Object of class [${r}] must be an instance of ${e}`),new S(i)}static assignableCheckFailed(e,t,n){let r=``,i=!0;throw n&&n.length>0&&(this.endsWithSeparator(n)?r=n+` `:(r=this.messageWithTypeName(n,t),i=!1)),i&&(r+=`${t} is not assignable to ${e}`),new S(r)}static endsWithSeparator(e){return e.endsWith(`:`)||e.endsWith(`;`)||e.endsWith(`,`)||e.endsWith(`.`)}static messageWithTypeName(e,t){return e+(e.endsWith(` `)?``:`: `)+(`name`in t)?t.name:t}static resolveMessage(e){return typeof e==`function`?e():e}static{Object.defineProperty(this,"name",{value:`Assert`,configurable:!0})}},w,T=class{constructor(e,t=w.WILDCARD_TYPE,n){if(C.hasLength(e,`"type" must not be empty`),C.hasLength(t,`"subtype" must not be empty`),this.checkToken(e),this.checkToken(t),this.type=e.toLowerCase(),this.subtype=t.toLowerCase(),n){let e=new Map;for(let[t,r]of n.entries())this.checkParameters(t,r),e.set(t.toLowerCase(),r);this.parameters=e}else this.parameters=new Map}checkToken(e){for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);if(!w.TOKEN.has(n))throw Error(`Invalid token character "${String.fromCharCode(n)}" in token "${e}"`)}}checkParameters(e,t){C.hasLength(e,`"parameter" must not be empty`),C.hasLength(t,`"value" must not be empty`),this.checkToken(e),w.PARAM_CHARSET===e?this.charset||=this.unquote(t):this.isQuotedString(t)||this.checkToken(t)}isQuotedString(e){return e.length<2?!1:e.startsWith(`"`)&&e.endsWith(`"`)||e.startsWith(`'`)&&e.endsWith(`'`)}unquote(e){return this.isQuotedString(e)?e.substring(1,e.length-1):e}isWildcardType(){return w.WILDCARD_TYPE===this.getType()}isWildcardSubtype(){let e=this.getSubtype();return w.WILDCARD_TYPE===e||e.startsWith(`*+`)}isConcrete(){return!this.isWildcardType()&&!this.isWildcardSubtype()}getType(){return this.type}getSubtype(){return this.subtype}getSubtypeSuffix(){let e=this.subtype.lastIndexOf(`+`);if(e!==-1&&this.subtype.length>e)return this.subtype.substring(e+1)}getCharset(){return this.charset}getParameter(e){return this.parameters.get(e)}getParameters(){return this.parameters}includes(e){if(e===void 0)return!1;if(this.isWildcardType())return!0;if(this.getType()===e.getType()){if(this.getSubtype()===e.getSubtype())return!0;if(this.isWildcardSubtype()){let t=this.getSubtype().lastIndexOf(`+`);if(t===-1)return!0;{let n=e.getSubtype().lastIndexOf(`+`);if(n!==-1){let r=this.getSubtype().substring(0,t);if(this.getSubtype().substring(t+1)===e.getSubtype().substring(n+1)&&w.WILDCARD_TYPE===r)return!0}}}}return!1}isCompatibleWith(e){if(e===void 0)return!1;if(this.isWildcardType()||e.isWildcardType())return!0;if(this.getType()===e.getType()){if(this.getSubtype()===e.getSubtype())return!0;if(this.isWildcardSubtype()||e.isWildcardSubtype()){let t=this.getSubtypeSuffix(),n=e.getSubtypeSuffix();if(this.getSubtype()===w.WILDCARD_TYPE||e.getSubtype()===w.WILDCARD_TYPE)return!0;if(this.isWildcardSubtype()&&t!==void 0)return t===e.getSubtype()||t===n;if(e.isWildcardSubtype()&&n!==void 0)return this.getSubtype()===n||n===t}}return!1}equalsTypeAndSubtype(e){return e!==void 0&&this.type.toLowerCase()===e.type.toLowerCase()&&this.subtype.toLowerCase()===e.subtype.toLowerCase()}isPresentIn(e){for(let t of e)if(t.equalsTypeAndSubtype(this))return!0;return!1}equals(e){return this===e||e instanceof w&&this.type.toLowerCase()===e.type.toLowerCase()&&this.subtype.toLowerCase()===e.subtype.toLowerCase()&&this.parametersAreEqual(e)}parametersAreEqual(e){if(this.parameters.size!==e.parameters.size)return!1;for(let[t,n]of this.parameters){if(!e.parameters.has(t))return!1;if(w.PARAM_CHARSET===t){if(this.getCharset()!==e.getCharset())return!1}else if(n!==e.parameters.get(t))return!1}return!0}isMoreSpecific(e){C.notNull(e,`Other must not be null`);let t=this.isWildcardType(),n=e.isWildcardType();if(t&&!n)return!1;if(!t&&n)return!0;{let t=this.isWildcardSubtype(),n=e.isWildcardSubtype();return t&&!n?!1:!t&&n?!0:this.getType()===e.getType()&&this.getSubtype()===e.getSubtype()&&this.getParameters().size>e.getParameters().size}}isLessSpecific(e){return C.notNull(e,`Other must not be null`),e.isMoreSpecific(this)}static valueOf(e){return O.parseMimeType(e)}toString(){let e=this.toStringValue;return e||(e=this.buildString(),this.toStringValue=e),e??``}buildString(){let e=``;return e+=this.type,e+=`/`,e+=this.subtype,e+=this.buildParameters(this.parameters),e}buildParameters(e){let t=``;return e.forEach((e,n)=>{t+=`;`,t+=n,t+=`=`,t+=e}),t}static{Object.defineProperty(this,"name",{value:`MimeType`,configurable:!0})}};w=T,T.WILDCARD_TYPE=`*`,T.PARAM_CHARSET=`charset`,T.TOKEN=new Set,(()=>{let e=new Set;for(let t=0;t<=31;t++)e.add(t);e.add(127);let t=new Set;t.add(40),t.add(41),t.add(60),t.add(62),t.add(64),t.add(44),t.add(59),t.add(58),t.add(92),t.add(34),t.add(47),t.add(91),t.add(93),t.add(63),t.add(61),t.add(123),t.add(125),t.add(32),t.add(9);for(let n=0;n<128;n++)!e.has(n)&&!t.has(n)&&w.TOKEN.add(n)})();var E=class extends x{static{Object.defineProperty(this,"name",{value:`IllegalArgumentError`,configurable:!0})}},D=class extends x{constructor(e,t){super(`Invalid mime type "${e}": ${t}`),this.mimeType=e}static{Object.defineProperty(this,"name",{value:`InvalidMimeTypeError`,configurable:!0})}},O=class{static parseMimeType(e){if(!e)throw new D(e,`"mimeType" must not be empty`);return e.startsWith(`multipart`)?this.parseMimeTypeInternal(e):(this.cachedMimeTypes.has(e)||this.cachedMimeTypes.set(e,this.parseMimeTypeInternal(e)),this.cachedMimeTypes.get(e))}static parseMimeTypeInternal(e){let t=e.indexOf(`;`),n=(t>=0?e.substring(0,t):e).trim();if(n.length===0)throw new D(e,`"mimeType" must not be empty`);n===`*`&&(n=`*/*`);let r=n.indexOf(`/`);if(r===-1)throw new D(e,`does not contain "/"`);if(r===n.length-1)throw new D(e,`does not contain subtype after "/"`);let i=n.substring(0,r),a=n.substring(r+1);if(i===`*`&&a!==`*`)throw new D(e,`wildcard type is legal only in "*/*" (all mime types)`);let o;do{let n=t+1,r=!1;for(;n<e.length;){let t=e.charAt(n);if(t===`;`){if(!r)break}else t===`"`&&(r=!r);n++}let i=e.substring(t+1,n).trim();if(i.length>0){o===void 0&&(o=new Map);let e=i.indexOf(`=`);if(e>=0){let t=i.substring(0,e).trim(),n=i.substring(e+1).trim();o.set(t,n)}}t=n}while(t<e.length);try{return new T(i,a,o)}catch(t){throw new D(e,t.message)}}static parseMimeTypes(e){return e?this.tokenize(e).filter(e=>!!e).map(e=>this.parseMimeType(e)):[]}static tokenize(e){if(!e)return[];let t=[],n=!1,r=0,i=0;for(;i<e.length;){switch(e.charAt(i)){case`"`:n=!n;break;case`,`:n||(t.push(e.substring(r,i)),r=i+1);break;case`\\`:i++}i++}return t.push(e.substring(r)),t}static toString(e){return e.map(e=>e.toString()).join(`, `)}static sortBySpecificity(e){if(e.length>50)throw new D(e.toString(),`Too many elements`);this.bubbleSort(e,(e,t)=>e.isLessSpecific(t))}static bubbleSort(e,t){let n=e.length;for(let r=0;r<n;r++)for(let i=1;i<n-r;i++){let n=e[i-1],r=e[i];t(n,r)&&(e[i]=n,e[i-1]=r)}}static generateMultipartBoundary(){let e=new Uint8Array(Math.floor(Math.random()*11)+30);for(let t=0;t<e.length;t++)e[t]=this.BOUNDARY_CHARS[Math.floor(Math.random()*this.BOUNDARY_CHARS.length)].charCodeAt(0);return e}static generateMultipartBoundaryString(){return new TextDecoder(`ascii`).decode(this.generateMultipartBoundary())}static{Object.defineProperty(this,"name",{value:`MimeTypeUtils`,configurable:!0})}};O.BOUNDARY_CHARS=`-_1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ`.split(``),O.ALL=new T(`*`,`*`),O.ALL_VALUE=`*/*`,O.APPLICATION_GRAPHQL=new T(`application`,`graphql+json`),O.APPLICATION_GRAPHQL_VALUE=`application/graphql+json`,O.APPLICATION_JSON=new T(`application`,`json`),O.APPLICATION_JSON_VALUE=`application/json`,O.APPLICATION_OCTET_STREAM=new T(`application`,`octet-stream`),O.APPLICATION_OCTET_STREAM_VALUE=`application/octet-stream`,O.APPLICATION_XML=new T(`application`,`xml`),O.APPLICATION_XML_VALUE=`application/xml`,O.IMAGE_GIF=new T(`image`,`gif`),O.IMAGE_GIF_VALUE=`image/gif`,O.IMAGE_JPEG=new T(`image`,`jpeg`),O.IMAGE_JPEG_VALUE=`image/jpeg`,O.IMAGE_PNG=new T(`image`,`png`),O.IMAGE_PNG_VALUE=`image/png`,O.TEXT_HTML=new T(`text`,`html`),O.TEXT_HTML_VALUE=`text/html`,O.TEXT_PLAIN=new T(`text`,`plain`),O.TEXT_PLAIN_VALUE=`text/plain`,O.TEXT_XML=new T(`text`,`xml`),O.TEXT_XML_VALUE=`text/xml`,O.cachedMimeTypes=new Map;var de=class{static isNode(){return typeof Buffer<`u`}static isBrowser(){return typeof TextDecoder<`u`}static decode(e){if(!e)return``;if(typeof e==`string`)return e;if(this.isNode()){if(e instanceof Buffer||e instanceof Uint8Array)return Buffer.from(e).toString(`utf8`);throw new E(`Unexpected type ${e.constructor.name} in Node environment.`)}if(this.isBrowser()){if(e instanceof Uint8Array||e instanceof ArrayBuffer)return new TextDecoder(`utf8`).decode(e);throw new E(`Unexpected type ${e.constructor.name} in Browser environment.`)}throw new E(`Neither Buffer nor TextDecoder are available.`)}static encodeBase64(e){if(!e)return``;if(this.isNode()){if(typeof e==`string`)return Buffer.from(e,`utf8`).toString(`base64`);if(e instanceof Buffer||e instanceof Uint8Array)return Buffer.from(e).toString(`base64`);throw new E(`Unexpected type ${e.constructor.name} in Node environment.`)}if(this.isBrowser()){if(typeof e==`string`)return btoa(new TextEncoder().encode(e).reduce((e,t)=>e+String.fromCharCode(t),``));if(e instanceof Uint8Array||e instanceof ArrayBuffer)return btoa(String.fromCharCode(...new Uint8Array(e)));throw new E(`Unexpected type ${e.constructor.name} in Browser environment.`)}throw new E(`Neither Buffer nor TextEncoder are available.`)}static decodeBase64(e){if(!e)return new Uint8Array;if(this.isNode())return Buffer.from(e,`base64`);if(this.isBrowser()){let t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n}throw new E(`Neither Buffer nor TextEncoder are available.`)}static{Object.defineProperty(this,"name",{value:`ByteUtil`,configurable:!0})}},k=class e{static fixProto(e,t){let n=Object.setPrototypeOf;n?n(e,t):e.__proto__=t}static fixStack(e,t=e.constructor){let n=Error.captureStackTrace;n&&n(e,t)}static describe(t){let n=e.describeOne(t),r=e.causeOf(t);for(let t=0;r!==void 0&&t<5;t++)n+=`\nCaused by: ${e.describeOne(r)}`,r=e.causeOf(r);return n}static causeOf(e){return e instanceof Error?e.cause:void 0}static describeOne(e){return e instanceof Error?e.stack??`${e.name}: ${e.message}`:String(e)}static{Object.defineProperty(this,"name",{value:`ErrorUtil`,configurable:!0})}},A=class extends Error{constructor(e){super(e.message),this.name=`ContainerError`,this.code=e.code,this.hint=e.hint,this.path=e.path??[]}static{Object.defineProperty(this,"name",{value:`ContainerError`,configurable:!0})}};(function(e){function t(t,n){return t instanceof e&&(n===void 0||t.code===n)}e.is=t})(A||={});var j=`cell:di:parameters`,M=`cell:di:properties`,N=`cell:di:post-construct`,P=`cell:di:keeps-container`,fe=[Object,Function,Array,String,Number,Boolean,Symbol,BigInt,Promise],F;(function(e){let t=new WeakMap,n=new WeakMap;function r(e,t,n){if(n!==void 0){if(t!==void 0)throw Error(`${e.constructor.name}.${String(t)}: only constructor parameters and properties can be injected.`);let r=Reflect.getOwnMetadata(j,e);return r||(r=[],Reflect.defineMetadata(j,r,e)),r[n]??(r[n]={owner:e,key:n})}let r=e.constructor,i=Reflect.getOwnMetadata(M,r);i||(i=new Map(Reflect.getMetadata(M,r)),Reflect.defineMetadata(M,i,r));let a=i.get(t);return a&&a.owner===r||(a={owner:r,key:t},i.set(t,a)),a}e.point=r;function i(e,t){Reflect.getOwnMetadata(M,e.constructor)?.delete(t)}e.remove=i;function a(e){Reflect.defineMetadata(P,!0,e.constructor)}e.keepContainer=a;function o(e,t){n.set(e,t)}e.setContainer=o;function s(e,t){let r=n.get(e);if(!r){let n=e?.constructor?.name||`(anonymous class)`,r=t?`${n}.${t}`:n;throw new A({code:`CELL_DI_NO_CONTAINER`,message:`${r} needs the container that created the instance, but no container created this ${n}.`,hint:`Get the instance from the container (bind its class with @Component and inject it) instead of creating it with new.`,path:[r]})}return r}e.containerOf=s;function c(e,t){Reflect.defineMetadata(N,t,e.constructor)}e.setPostConstruct=c;function l(e){let n=t.get(e);return n||(n={parameters:u(e),properties:[...Reflect.getMetadata(M,e)?.values()??[]].map(d),postConstruct:Reflect.getMetadata(N,e),keepsContainer:Reflect.getMetadata(P,e)===!0},t.set(e,n)),n}e.plan=l;function u(e){for(let t=e;t&&t!==Function.prototype;t=Object.getPrototypeOf(t)){let e=Reflect.getOwnMetadata(j,t),n=Reflect.getOwnMetadata(`design:paramtypes`,t);if(e||n){let r=Math.max(e?.length??0,n?.length??0),i=[];for(let a=0;a<r;a++){let r=e?.[a]??{owner:t,key:a},o=n?.[a];i.push(d(r.id===void 0&&typeof o==`function`&&!fe.includes(o)?{...r,id:o}:r))}return i}}return[]}function d(e){if(e.id===void 0)throw f(e);return e}function f(e){let t=p(e);return new A({code:`CELL_DI_MISSING_INJECT`,message:`${t} has no @Autowired (or @Value), so the container does not know what to inject.`,hint:`Add @Autowired(<id>) to the constructor parameter or property; an interface type needs the id explicitly.`,path:[t]})}function p(e){let t=e.owner?.name||`(anonymous class)`;return typeof e.key==`number`?`${t} constructor parameter #${e.key}`:`${t}.${String(e.key)}`}e.describe=p})(F||={});var I=function(e){return(t,n,r)=>{ge(me(t,n,r,e),t,n,r)}},pe={multi:!1,detached:!1};function me(e,t,n,r){let i=h.getValueOrOption(r),a=h.getType(e,t,n);return a===Array&&(i.multi=!0),i.id=i.id||a,{...pe,...i}}var he=({id:e,multi:t},n,r,i)=>{let a=F.point(n,r,i);a.id=e,a.multi=t},L=({id:e,multi:t},n)=>t?n.getAll(e):n.get(e);function ge(e,t,n,r,i=he,a=L){if(e.detached){if(r!==void 0)throw Error(`${t.name}: a detached injection is resolved when its property is read, so it cannot be a constructor parameter.`);F.remove(t,n),F.keepContainer(t),_e(e,a,t,n)}else i(e,t,n,r);return e}function _e(e,t,n,r){Object.defineProperty(n,r,{enumerable:!0,configurable:!0,get(){let n=t(e,F.containerOf(this,r));return Object.defineProperty(this,r,{value:n,enumerable:!0,configurable:!0,writable:!0}),n}})}var R={constantValue:`cell:constant-value`,component:`cell:component`},z={html:{title:`Cell Framework`,rootId:`cell-root`},component:{proxy:!1},aop:{enabled:!0},logger:{level:`info`},tenant:{enabled:!1},http:{client:{withCredentials:!0,headers:{"X-Requested-With":`XMLHttpRequest`}}},server:{path:`/`,endpoint:`http://localhost:0`},rpc:{path:`api`,transport:`websocket`,websocket:{maxPayload:33554432,heartbeat:3e4,callTimeout:3e4},merge:{enabled:!1,timerDelay:35,maxLength:5242880,maxCount:100}},react:{path:`/`,router:{type:`browser`}},mode:[`production`]},ve={},B;(function(e){function t(){return re.cellProps||z}e.getRaw=t;function n(){return re.cellConfigTypes||ve}e.getTypes=n})(B||={});var V;(function(e){e.Singleton=`Singleton`,e.Transient=`Transient`})(V||={});var ye=`Component`,H=function(...e){return t=>{Se(xe(t,e),t)}},be={scope:V.Singleton,rebind:!1,proxy:!1,...B.getRaw().component};function xe(e,t){Array.isArray(t)&&(t.length===1?t=t[0]:t.length===0&&(t=void 0));let n=h.getValueOrOption(t),r={...be,...n},i;return i=Array.isArray(r.id)?Array.from(new Set([e,...r.id])):r.id&&r.id!==e?[e,r.id]:[e],r.id=i,r.sysTags=[...new Set([ye,...r.sysTags||[]])],r}function Se(e,t){let n={target:t,ids:Array.isArray(e.id)?e.id:[e.id||t],sysTags:e.sysTags,rebind:e.rebind,proxy:e.proxy,scope:e.scope,name:e.name,tag:e.tag,default:e.default,onActivation:e.onActivation},r=Reflect.getMetadata(R.component,Reflect);return r||(r=[],Reflect.defineMetadata(R.component,r,Reflect)),r.push(n),n}var U=Symbol(`ConfigProvider`),Ce=Symbol(`Value`),we=function(e){return(t,n,r)=>{De(Ee(t,n,r,e),t,n,r)}},Te={detached:!1};function Ee(e,t,n,r){let i=h.getValueOrOption(r,`el`);return i.el=i.el||t,{...Te,...i}}function De(e,t,n,r){if(e.detached){if(r!==void 0)throw Error(`${t.name}: a detached @Value is read when its property is read, so it cannot be a constructor parameter.`);F.remove(t,n),F.keepContainer(t),Oe(e,t,n);return}let i=F.point(t,n,r);return i.id=Ce,i.name=e.el,e}function Oe(e,t,n){Object.defineProperty(t,n,{enumerable:!0,get(){return F.containerOf(this,n).get(U).get(e.el)}})}function ke(e){e(Ce).toDynamicValue(e=>e.container.get(U).get(String(e.target.name)))}var W=()=>(e,t,n)=>{F.point(e,t,n).optional=!0},Ae=()=>(e,t)=>{F.setPostConstruct(e,t)},je=`AOP_TAG`,Me=Symbol(`MethodBeforeAdvice`),Ne=Symbol(`AfterReturningAdvice`),Pe=Symbol(`AfterThrowsAdvice`),Fe=Symbol(`AopProxyFactory`),Ie=Symbol(`ClassFilter`),Le=Symbol(`PROVIDER`),Re=Symbol(`ID_KEY`),ze=`logger.level`,G=Symbol(`Logger`),Be=Symbol(`TraceIdProvider`),Ve=Symbol(`LoggerService`),He=[`verbose`,`debug`,`info`,`warn`,`error`],Ue=new o,We=Symbol(`SecurityCheck`),Ge=Symbol(`SecurityChecker`),Ke=`securityChecks`,qe=class e extends Error{constructor(t){let n={code:`CELL_SECURITY_CHECK_FAILED`,message:`Unsafe configuration for production:\n${t.map(e.format).join(`
4
+ `)}`,hint:`Fix each warning listed in the message, or set securityChecks: warn in cell.yml to start anyway.`};super(n.message),this.warnings=t,this.name=`SecurityCheckError`,this.code=n.code,this.hint=n.hint}static format(e){return`[${e.code}] ${e.message} Fix: ${e.hint}`}static{Object.defineProperty(this,"name",{value:`SecurityCheckError`,configurable:!0})}},Je=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ye=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},Xe=Symbol(`ApplicationLifecycle`),Ze=Symbol(`Application`),Qe=Symbol(`ApplicationStateService`),$e=Symbol(`ApplicationShell`),K=class{async doStart(){await this.securityChecker.enforce();for(let e of this.lifecycles)if(e.initialize)try{e.initialize()}catch(t){this.logger.error(`Could not initialize lifecycle ${e.constructor.name}: ${k.describe(t)}`)}for(let e of this.lifecycles)if(e.onStart)try{await this.startLifecycle(e)}catch(t){this.logger.error(`Could not start lifecycle ${e.constructor.name}: ${k.describe(t)}`)}}startLifecycle(e){return e.onStart(this)}doStop(){for(let e of this.lifecycles)if(e.onStop)try{e.onStop(this)}catch(t){this.logger.error(`Could not stop lifecycle ${e.constructor.name}: ${k.describe(t)}`)}}static{Object.defineProperty(this,"name",{value:`AbstractApplication`,configurable:!0})}};Je([I(Xe),W(),Ye(`design:type`,Array)],K.prototype,`lifecycles`,void 0),Je([I(G),Ye(`design:type`,Object)],K.prototype,`logger`,void 0),Je([I(Ge),Ye(`design:type`,Object)],K.prototype,`securityChecker`,void 0);var et=class{constructor(){this._state=`init`,this.deferred={},this.stateChanged=new o}get state(){return this._state}set state(e){e!==this._state&&(this._state=e,this.deferred[e]===void 0&&(this.deferred[e]=new n),this.deferred[e].resolve(),this.stateChanged.fire(e))}get onStateChanged(){return this.stateChanged.event}reachedState(e){return this.deferred[e]===void 0&&(this.deferred[e]=new n),this.deferred[e].promise}reachedAnyState(...e){return Promise.race(e.map(e=>this.reachedState(e)))}static{Object.defineProperty(this,"name",{value:`AbstractApplicationStateService`,configurable:!0})}},tt;(function(e){let t=[];function n(e,n){if(t.indexOf(e)!==-1)throw Error(`An application error for '${e}' code is already declared`);let r=Object.assign((...t)=>new a(e,n(...t),r),{code:e,is(t){return t instanceof a&&t.code===e}});return r}e.declare=n;function r(e){return e instanceof a}e.is=r;function i(e,t){return new a(e,t)}e.fromJson=i;class a extends Error{constructor(e,t,n){super(t.message),this.code=e,this.data=t.data,Object.setPrototypeOf(this,a.prototype),t.stack?this.stack=t.stack:Error.captureStackTrace&&n&&Error.captureStackTrace(this,n)}toJson(){let{message:e,data:t,stack:n}=this;return{message:e,data:t,stack:n}}static{Object.defineProperty(this,"name",{value:`Impl`,configurable:!0})}}})(tt||={});var nt;(function(e){e.KEY=Symbol.for(`@celljs/core/application-host`);function t(){return globalThis[e.KEY]}e.get=t;function n(t){globalThis[e.KEY]=t}e.set=n})(nt||={});var rt=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},it=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},q=class extends K{async start(){await this.doStart(),this.stateService.state=`started`,this.shell&&await this.shell.attach(this),this.stateService.state=`ready`}async stop(){this.stateService.state!==`stopped`&&(this.doStop(),this.stateService.state=`stopped`)}static{Object.defineProperty(this,"name",{value:`ApplicationImpl`,configurable:!0})}};rt([I(Qe),it(`design:type`,Object)],q.prototype,`stateService`,void 0),rt([I($e),W(),it(`design:type`,Object)],q.prototype,`shell`,void 0),q=rt([H(Ze)],q);var at=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ot=class extends et{static{Object.defineProperty(this,"name",{value:`ApplicationStateServiceImpl`,configurable:!0})}};ot=at([H(Qe)],ot);var st=class{constructor(e){this.id=e,this.scope=V.Transient,this.resolved=!1}to(e){return this.type=`class`,this.implementation=e,this}toConstantValue(e){return this.type=`constant`,this.value=e,this.resolved=!0,this.scope=V.Singleton,this}toDynamicValue(e){return this.type=`factory`,this.factory=e,this}toService(e){return this.type=`service`,this.service=e,this.factory=t=>t.container.get(e),this}inSingletonScope(){return this.scope=V.Singleton,this}inTransientScope(){return this.scope=V.Transient,this}when(e,t=`when`){return this.constraint=e,this.condition=t,this}whenTargetNamed(e){return this.when(t=>t.name===e,`named ${String(e)}`)}whenTargetTagged(e,t){return this.when(n=>n.tags!==void 0&&n.tags[e]===t,`tagged ${String(e)}=${String(t)}`)}whenTargetIsDefault(){return this.when(e=>e.name===void 0&&e.tags===void 0,`default`)}onActivation(e){return this.activation=e,this}static{Object.defineProperty(this,"name",{value:`Binding`,configurable:!0})}},ct=class{constructor(e){this.registry=e}static{Object.defineProperty(this,"name",{value:`ContainerModule`,configurable:!0})}},lt=[],J=class e{constructor(...t){this.map=new Map,this.resolving=[],this.requests=[],this.bind(e).toConstantValue(this),this.load(...t)}load(...e){let t=e=>this.bind(e),n=e=>this.unbind(e),r=(e,t)=>this.isBound(e,t),i=e=>this.rebind(e);for(let a of e)a.registry(t,n,r,i)}bind(e){let t=new st(e),n=this.map.get(e);return n?n.push(t):this.map.set(e,[t]),t}rebind(e){return this.unbind(e),this.bind(e)}unbind(e){this.map.delete(e)}isBound(e,t){return t?this.matching({...t,id:e}).length>0:this.map.has(e)}get(e,t){return this.resolve(t?{...t,id:e}:{id:e})}getAll(e,t){return this.resolveAll(t?{...t,id:e}:{id:e},!t)}resolve(e){if(e.multi)return this.resolveAll(e);let t=this.matching(e);if(t.length===1)return this.instance(t[0],e);if(!(t.length===0&&e.optional))throw t.length===0?this.noBinding(e):this.ambiguous(e,t)}bindings(){return this.map}resolveAll(e,t=!1){let n=t?this.map.get(e.id)??lt:this.matching(e);if(n.length===0&&!e.optional)throw this.noBinding(e);let r=Array(n.length);for(let t=0;t<n.length;t++)r[t]=this.instance(n[t],e);return r}matching(e){let t=this.map.get(e.id);if(!t)return lt;for(let n of t)if(n.constraint&&!n.constraint(e))return t.filter(t=>!t.constraint||t.constraint(e));return t}instance(t,n){if(t.resolved)return t.value;if(this.resolving.includes(t))throw this.circular(n);this.resolving.push(t),this.requests.push(n);try{let r;if(t.type===`class`)r=this.construct(t.implementation);else if(t.factory)r=t.factory({container:this,target:n});else throw new A({code:`CELL_DI_INCOMPLETE_BINDING`,message:`The binding of ${e.idName(t.id)} says nothing to resolve it to.`,hint:`Complete bind(id) with .to(Class), .toConstantValue(value), .toDynamicValue(factory) or .toService(id).`,path:this.path()});return t.activation&&(r=t.activation({container:this,target:n},r)),t.scope===V.Singleton&&(t.value=r,t.resolved=!0),r}finally{this.resolving.pop(),this.requests.pop()}}construct(e){let t=F.plan(e),n=t.parameters,r=Array(n.length);for(let e=0;e<n.length;e++)r[e]=this.resolve(n[e]);let i=new e(...r);t.keepsContainer&&F.setContainer(i,this);for(let e of t.properties){let t=this.resolve(e);t===void 0&&e.optional||(i[e.key]=t)}return t.postConstruct!==void 0&&i[t.postConstruct](),i}path(t){let n=this.requests.map(t=>e.idName(t.id));return t?[...n,e.idName(t.id)]:n}neededBy(e){return e.owner?`, needed by ${F.describe(e)}`:``}noBinding(t){let n=this.path(t),r=e.idName(t.id),i=this.map.get(t.id)??[],a=``;return i.length>0?a=` The bindings of ${r} do not match: ${i.map(e.describe).join(`, `)}.`:[...this.map.keys()].some(n=>n!==t.id&&e.idName(n)===r)&&(a=` Another identifier is also named ${r}: two copies of the module that declares it are loaded.`),new A({code:`CELL_DI_NO_BINDING`,message:`No binding for ${e.describe({id:t.id,...e.query(t)})}${this.neededBy(t)}${e.chain(n)}.${a}`,hint:`Bind the identifier in a DI module (@Component(<id>) in a file the module imports), or mark the injection @Optional().`,path:n})}ambiguous(t,n){let r=this.path(t);return new A({code:`CELL_DI_AMBIGUOUS`,message:`${n.length} bindings match ${e.idName(t.id)}${this.neededBy(t)}${e.chain(r)}: ${n.map(e.describe).join(`, `)}.`,hint:`Inject all of them with @Autowired on an array, give one rebind: true to replace the others, or select one with @Named / @Tagged.`,path:r})}circular(e){let t=this.path(e);return new A({code:`CELL_DI_CIRCULAR`,message:`Circular dependency: ${t.join(` → `)}.`,hint:`Break the cycle: get one side lazily (@AutowiredProvider, or @Autowired({ detached: true }) on a property), or move the shared part into another component.`,path:t})}static chain(e){return e.length>1?` (${e.join(` → `)})`:``}static query(e){return{name:e.name,tags:e.tags}}static describe(t){if(t instanceof st){let n=t.type===`class`?t.implementation.name||`(anonymous class)`:t.type===`service`?`→ ${e.idName(t.service)}`:t.type??`incomplete`;return t.condition?`${n} [${t.condition}]`:n}let n=t.tags?Reflect.ownKeys(t.tags).map(e=>` tagged ${String(e)}=${String(t.tags[e])}`).join(``):``;return`${e.idName(t.id)}${t.name===void 0?``:` named ${String(t.name)}`}${n}`}static idName(e){return typeof e==`function`?e.name||`(anonymous class)`:String(e)}static{Object.defineProperty(this,"name",{value:`Container`,configurable:!0})}};function ut(e){let t=Reflect.getMetadata(R.component,Reflect)||[],n=Reflect.getMetadata(R.constantValue,Reflect)||[];return Reflect.defineMetadata(R.component,[],Reflect),Reflect.defineMetadata(R.constantValue,[],Reflect),new ct((r,i,a,o)=>{for(let e of t)ft(e,r,o);for(let e of n)pt(e,r,o);e?.(r,i,a,o)})}function dt(e,t,n){return B.getRaw().aop?.enabled&&n?.constructor&&e.get(Ie).matches(n.constructor,t)?e.get(Fe).create({target:n,metadata:t}).getProxy():n}function ft(e,t,n){let{ids:[r,...i],scope:a,name:o,tag:s,proxy:c,onActivation:l,target:u}=e,d=(e.rebind&&i.length===0?n:t)(r).to(u);a===V.Singleton&&d.inSingletonScope(),l?d.onActivation(l):c&&d.onActivation((t,n)=>dt(t.container,e,n));let f=t=>{o===void 0?s?t.whenTargetTagged(s.tag,s.value):e.default&&t.whenTargetIsDefault():t.whenTargetNamed(o)};i.length===0&&f(d),i.forEach((i,o)=>{let s=(e.rebind&&o===0?n:t)(i).toService(r);a===V.Singleton&&s.inSingletonScope(),f(s)})}function pt(e,t,n){let[r,...i]=Array.isArray(e.id)?e.id:[e.id];(e.rebind?n:t)(r).toConstantValue(e.constantValue);for(let n of i)t(n).toConstantValue(e.constantValue)}var mt=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ht=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},gt=Object.fromEntries(He.map((e,t)=>[e,t])),_t=class{setContext(e){this.context=e}resolveContextString(e){return this.context?e?`[${this.context}] [${e}] `:`[${this.context}] `:e?`[${e}] `:``}isEnabled(e){return gt[e]>=(gt[this.level]??gt.info)}resolvePrefix(e){return`${new Date().toISOString()} [${e}]`}log(e,t,n=console.info,r=`info`){let i=this.traceIdProvider?.provide(),a=this.resolveContextString(t),o=e instanceof Error?k.describe(e):e,s=this.resolvePrefix(r);i&&(s=s?`${s} [trace: ${i}]`:`[trace: ${i}]`),n(`${s?`${s} `:``}${a}${o}`),Ue.hasListeners&&Ue.fire({level:r,traceId:i,rootContext:this.context,context:t,message:e})}time(e){(this.timeRecords??=new Map).set(e,Date.now())}timeEnd(e,t){let n=this.timeRecords?.get(e);if(n!==void 0){let r=Date.now()-n;return this.timeRecords.delete(e),this.log(`${e} [${r}ms]`,t),r}this.log(`No such label: ${e} for timeEnd`,t)}static{Object.defineProperty(this,"name",{value:`AbstractLogger`,configurable:!0})}};mt([we(`${ze} ?? 'info'`),ht(`design:type`,String)],_t.prototype,`level`,void 0),mt([I(Be),W(),ht(`design:type`,Object)],_t.prototype,`traceIdProvider`,void 0);var vt=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Y={error:(...e)=>console.error(...e),warn:(...e)=>console.warn(...e),info:(...e)=>console.info(...e),debug:(...e)=>console.debug(...e)},yt=class extends _t{error(e,t){this.log(e,t,Y.error,`error`)}info(e,t){this.isEnabled(`info`)&&this.log(e,t,Y.info,`info`)}warn(e,t){this.isEnabled(`warn`)&&this.log(e,t,Y.warn,`warn`)}debug(e,t){this.isEnabled(`debug`)&&this.log(e,t,Y.debug,`debug`)}static{Object.defineProperty(this,"name",{value:`LoggerImpl`,configurable:!0})}};yt=vt([H({id:G,scope:V.Transient})],yt);var bt=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},xt=class{constructor(){this.onLog=Ue.event}static{Object.defineProperty(this,"name",{value:`LoggerServiceImpl`,configurable:!0})}};xt=bt([H(Ve)],xt);var St=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ct=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},wt=class{matches(e,t){let n=this.container;for(let e of t.sysTags){let t={tags:{[je]:e}};if(n.isBound(Me,t)||n.isBound(Pe,t)||n.isBound(Ne,t))return!0}return!1}static{Object.defineProperty(this,"name",{value:`ClassFilterImpl`,configurable:!0})}};St([I(J),Ct(`design:type`,J)],wt.prototype,`container`,void 0),wt=St([H({id:Ie,proxy:!1})],wt);var Tt=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Et=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},Dt=class{getAdvices(e,t){let n=this.container,r=[];for(let i of t){let t={tags:{[je]:i}};n.isBound(e,t)&&r.push(...n.getAll(e,t))}return r}create(e){let{metadata:{sysTags:t}}=e,n,r=()=>n??={before:this.getAdvices(Me,t),afterReturning:this.getAdvices(Ne,t),afterThrows:this.getAdvices(Pe,t)},i=new Map,a=new Proxy(e.target,{get:(e,t)=>{if(t===p)return e;let n=e[t];if(typeof n!=`function`)return n;let a=i.get(t);if(a&&a.func===n)return a.wrapper;let o=async(...i)=>{let{before:a,afterReturning:o,afterThrows:s}=r();try{for(let n of a)await n.before(t,i,e);let r=await n.apply(e,i);for(let n of o)await n.afterReturning(r,t,i,e);return r}catch(n){for(let r of s)await r.afterThrows(n,t,i,e);throw n}};return i.set(t,{func:n,wrapper:o}),o}});return{getProxy(){return a}}}static{Object.defineProperty(this,"name",{value:`AopProxyFactoryImpl`,configurable:!0})}};Tt([I(J),Et(`design:type`,J)],Dt.prototype,`container`,void 0),Dt=Tt([H({id:Fe,proxy:!1})],Dt);var Ot=Symbol(`ExpressionCompiler`),X=Symbol(`ExpressionHandler`),kt=Symbol(`ContextInitializer`),At=Symbol(`ExpressionContextProvider`),jt=class extends Error{constructor(e){super(e.message),this.name=`ExpressionSyntaxError`,this.code=e.code,this.hint=e.hint,this.expression=e.expression,this.position=e.position}static{Object.defineProperty(this,"name",{value:`ExpressionSyntaxError`,configurable:!0})}},Mt=class{constructor(e,t){this.source=e,this.run=t}evaluate(e={}){return this.run(e,e)}static{Object.defineProperty(this,"name",{value:`Expression`,configurable:!0})}},Z=class e{constructor(){this.transforms=new Map,this.functions=new Map,this.cache=new Map}addTransform(e,t){return this.transforms.set(e,t),this}addTransforms(e){for(let[t,n]of Object.entries(e))this.addTransform(t,n);return this}addFunction(e,t){return this.functions.set(e,t),this}addFunctions(e){for(let[t,n]of Object.entries(e))this.addFunction(t,n);return this}compile(t){let n=this.cache.get(t);return n||(n=new Mt(t,new zt(t,this).parse()),this.cache.size>=e.CACHE_SIZE&&this.cache.clear(),this.cache.set(t,n)),n}evaluate(e,t={}){return this.compile(e).evaluate(t)}call(e,t,n,r){let i=(e===`transform`?this.transforms:this.functions).get(t);if(!i)throw new jt({code:e===`transform`?`CELL_EL_UNKNOWN_TRANSFORM`:`CELL_EL_UNKNOWN_FUNCTION`,message:`The ${e} ${t} is not defined (in: ${r}).`,hint:`Add it with addT${e.slice(1)}('${t}', ...) on the ExpressionEngine of the application, or check its spelling.`,expression:r});return i(...n)}static{Object.defineProperty(this,"name",{value:`ExpressionEngine`,configurable:!0})}};Z.CACHE_SIZE=1e3;var Nt=[`??`,`//`,`==`,`!=`,`>=`,`<=`,`&&`,`||`,`+`,`-`,`*`,`/`,`%`,`^`,`>`,`<`,`!`],Pt=`.[]|{}:,()?`,Ft={"??":10,"||":10,"&&":10,"==":20,"!=":20,">":20,">=":20,"<":20,"<=":20,in:20,"+":30,"-":30,"*":40,"/":40,"//":40,"%":50,"^":50},It={"==":(e,t)=>e==t,"!=":(e,t)=>e!=t,">":(e,t)=>e>t,">=":(e,t)=>e>=t,"<":(e,t)=>e<t,"<=":(e,t)=>e<=t,in:(e,t)=>typeof t==`string`?t.indexOf(e)!==-1:Array.isArray(t)?t.some(t=>t===e):!1,"+":(e,t)=>e+t,"-":(e,t)=>e-t,"*":(e,t)=>e*t,"/":(e,t)=>e/t,"//":(e,t)=>Math.floor(e/t),"%":(e,t)=>e%t,"^":(e,t)=>e**+t},Lt=/[\p{L}_$]/u,Rt=/[\p{L}\p{N}_$]/u,zt=class{constructor(e,t){this.source=e,this.engine=t,this.index=0,this.relative=!1,this.tokens=this.tokenize()}parse(){if(this.peek().type===`end`)return()=>void 0;let e=this.ternary();if(this.peek().type!==`end`)throw this.unexpected();return e}ternary(){let e=this.binary(0);if(!this.accept(`?`))return e;if(this.peek().type===`punctuation`&&this.peek().value===`:`)throw new jt({code:`CELL_EL_SYNTAX`,message:`'?:' is not an operator at position ${this.peek().start-1} of: ${this.source}`,hint:"Write a default with ??, e.g. ${env.PORT ?? 3000}; || takes the right side for any falsy value.",expression:this.source,position:this.peek().start-1});let t=this.ternaryThen(),n=this.ternary();return(r,i)=>e(r,i)?t(r,i):n(r,i)}ternaryThen(){let e=this.ternary();return this.expect(`:`),e}binary(e){let t=this.unary();for(;;){let n=this.peek(),r=n.type===`operator`?Ft[n.value]:void 0;if(r===void 0||r<e)return t;this.index++;let i=t,a=this.binary(r+1);if(n.value===`&&`)t=(e,t)=>i(e,t)&&a(e,t);else if(n.value===`||`)t=(e,t)=>i(e,t)||a(e,t);else if(n.value===`??`)t=(e,t)=>i(e,t)??a(e,t);else{let e=It[n.value];t=(t,n)=>e(i(t,n),a(t,n))}}}unary(){let e=this.peek();if(e.type===`operator`&&(e.value===`!`||e.value===`-`)){this.index++;let t=this.unary();return e.value===`!`?(e,n)=>!t(e,n):(e,n)=>-t(e,n)}return this.postfix(this.primary())}primary(){let e=this.next();switch(e.type){case`number`:case`string`:case`boolean`:{let t=e.value;return()=>t}case`identifier`:{let t=e.value;if(this.accept(`(`)){let e=this.list(`)`),{engine:n,source:r}=this;return(i,a)=>n.call(`function`,t,e.map(e=>e(i,a)),r)}return e=>e?.[t]}case`punctuation`:switch(e.value){case`.`:{let e=this.identifier();return this.relative=!0,(t,n)=>n?.[e]}case`(`:{let e=this.ternary();return this.expect(`)`),e}case`[`:{let e=this.list(`]`);return(t,n)=>e.map(e=>e(t,n))}case`{`:return this.object()}}throw this.index--,this.unexpected()}object(){let e=[];for(;!this.accept(`}`);){let t=this.next();if(t.type!==`identifier`&&t.type!==`string`)throw this.index--,this.unexpected(`a key`);if(this.expect(`:`),e.push([t.value,this.ternary()]),!this.accept(`,`)){this.expect(`}`);break}}return(t,n)=>{let r={};for(let[i,a]of e)r[i]=a(t,n);return r}}postfix(e){for(;;)if(this.accept(`.`)){let t=this.identifier(),n=e;e=(e,r)=>{let i=n(e,r);if(i!=null)return Array.isArray(i)&&(i=i[0]),i?.[t]}}else if(this.accept(`[`))e=this.filter(e);else if(this.accept(`|`)){let t=this.identifier(),n=this.accept(`(`)?this.list(`)`):[],{engine:r,source:i}=this,a=e;e=(e,o)=>r.call(`transform`,t,[a(e,o),...n.map(t=>t(e,o))],i)}else return e}filter(e){let t=this.relative;this.relative=!1;let n=this.ternary(),r=this.relative;return this.relative=t,this.expect(`]`),r?(t,r)=>{let i=e(t,r);return(Array.isArray(i)?i:i===void 0?[]:[i]).filter(e=>n(t,e))}:(t,r)=>{let i=e(t,r),a=n(t,r);return typeof a==`boolean`?a?i:void 0:i?.[a]}}list(e){let t=[];for(;!this.accept(e);)if(!this.accept(`,`)&&(t.push(this.ternary()),!this.accept(`,`))){this.expect(e);break}return t}identifier(){let e=this.next();if(e.type!==`identifier`)throw this.index--,this.unexpected(`a name`);return e.value}peek(){return this.tokens[this.index]}next(){let e=this.tokens[this.index];return e.type!==`end`&&this.index++,e}accept(e){let t=this.tokens[this.index];return t.type===`punctuation`&&t.value===e&&(this.index++,!0)}expect(e){if(!this.accept(e))throw this.unexpected(`'${e}'`)}unexpected(e){let t=this.peek(),n=t.type===`end`?`end of expression`:`'${this.source.slice(t.start,this.tokens[this.index+1]?.start??this.source.length).trim()}'`;return this.syntaxError(t.start,`Unexpected ${n}${e?`, expected ${e}`:``}`)}syntaxError(e,t){return new jt({code:`CELL_EL_SYNTAX`,message:`${t} at position ${e} of: ${this.source}`,hint:`Check quotes, brackets and operators; expressions are names, literals, operators, value|transform and function() calls.`,expression:this.source,position:e})}tokenize(){let e=this.source,t=[],n=e=>e!==void 0&&e>=`0`&&e<=`9`,r=0;for(;r<e.length;){let i=e[r],a=r;if(/\s/.test(i))r++;else if(i===`'`||i===`"`){let n=``;for(r++;r<e.length&&e[r]!==i;)if(e[r]===`\\`&&r+1<e.length){let t=e[r+1];n+=t===i||t===`\\`?t:`\\`+t,r+=2}else n+=e[r++];if(r>=e.length)throw this.syntaxError(a,`Unterminated string`);r++,t.push({type:`string`,value:n,start:a})}else if(n(i)){for(;n(e[r]);)r++;if(e[r]===`.`&&n(e[r+1]))for(r++;n(e[r]);)r++;t.push({type:`number`,value:parseFloat(e.slice(a,r)),start:a})}else if(Lt.test(i)){for(;r<e.length&&Rt.test(e[r]);)r++;let n=e.slice(a,r);n===`true`||n===`false`?t.push({type:`boolean`,value:n===`true`,start:a}):t.push({type:n===`in`?`operator`:`identifier`,value:n,start:a})}else{let n=Nt.find(t=>e.startsWith(t,r));if(n)t.push({type:`operator`,value:n,start:a}),r+=n.length;else if(Pt.includes(i))t.push({type:`punctuation`,value:i,start:a}),r++;else throw this.syntaxError(a,`Unexpected character '${i}'`)}}return t.push({type:`end`,value:void 0,start:e.length}),t}static{Object.defineProperty(this,"name",{value:`ExpressionParser`,configurable:!0})}},Bt=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Vt=class extends Z{static{Object.defineProperty(this,"name",{value:`ApplicationExpressionEngine`,configurable:!0})}};Vt=Bt([H(Z)],Vt);var Ht;(function(e){e.PREFIX=`CELL_`,e.RESERVED=[`CELL_PRESET`,`CELL_MODE`,`CELL_EVENT`,`CELL_OUT_DIR`,`CELL_DEBUG`];function t(t){return t.startsWith(e.PREFIX)&&!e.RESERVED.includes(t)}e.isOverride=t;function n(n,r,s={}){let c={applied:[],problems:[]},u=e.PREFIX,d=[];for(let e of Object.keys(r).filter(t).sort()){let t=r[e];if(t===void 0)continue;let i=e.slice(u.length).split(`__`);if(i.length!==1||l(n,i[0])!==void 0)try{d.push({variable:e,value:t,...a(n,i)})}catch(t){c.problems.push({variable:e,message:t.message})}}for(let e of d){let t=e.keys.join(`.`),r=d.filter(t=>t!==e&&i(e.keys,t.keys));if(r.length>0){let n=r.map(e=>`${e.variable} (${e.keys.join(`.`)})`).join(`, `);c.problems.push({variable:e.variable,message:`sets ${t}, which ${n} also set${r.length===1?`s`:``}. Set each key with one variable; to change items of an object or array you replace, write them into its JSON.`})}else try{o(n,e.keys,e.value,s[t]),s[t]===void 0&&f(e.value)&&(e.type===`number`||e.type===`boolean`)&&(s[t]=e.type),c.applied.push({variable:e.variable,path:t})}catch(t){c.problems.push({variable:e.variable,message:t.message})}}return c.problems.sort((e,t)=>e.variable<t.variable?-1:+(e.variable>t.variable)),c}e.apply=n;function r(e,t={}){let r=n(e,{},t);for(let e of r.problems)console.warn(`[cell] ${e.variable} is ignored: ${e.message}`);return r}e.applyProcessEnv=r;function i(e,t){let n=Math.min(e.length,t.length);return e.slice(0,n).every((e,n)=>e===t[n])}function a(e,t){if(t[0].startsWith(`_`))throw Error(`one underscore after CELL, then \`__\` between keys: CELL_${t[0].replace(/^_+/,``)}${t.length>1?`__`+t.slice(1).join(`__`):``}.`);if(/^(BACKEND|FRONTEND)$/i.test(t[0])&&l(e,t[0])===void 0)throw Error(`the CELL_BACKEND__ / CELL_FRONTEND__ prefixes are gone: the same variable serves both sides, e.g. CELL_${t.slice(1).join(`__`)||`SERVER__PORT`}.`);if(t.some(e=>!e))throw Error(`empty segment; separate keys with exactly two underscores.`);let n=[],r=e;for(let e=0;e<t.length;e++){let i=l(r,t[e]);if(i===void 0){let i=n.length>0?n.join(`.`):`the top level`,a=Array.isArray(r)?`indexes 0-${r.length-1}`:`keys: ${Object.keys(r).join(`, `)||`(none)`}`;throw Error(`no key '${t[e]}' under ${i} (${a}). Only keys present in cell.yml can be overridden.`)}if(n.push(i),e<t.length-1){if(!r[i]||typeof r[i]!=`object`)throw Error(`${n.join(`.`)} is not an object, so it has no key '${t[e+1]}'.`);r=r[i]}}return{keys:n,type:typeof r[n[n.length-1]]}}function o(e,t,n,r){let i=t.slice(0,-1).reduce((e,t)=>e[t],e),a=t[t.length-1],o=t.join(`.`);i[a]=r&&!f(n)?s(r,n,o):p(i[a],n,o)}function s(e,t,n){if(typeof t!=`string`)return t;switch(e){case`number`:return m(t,n);case`integer`:{let e=m(t,n);if(!Number.isInteger(e))throw Error(`${n} is an integer, got '${t}'.`);return e}case`boolean`:return c(t,n);default:return t}}e.toType=s;function c(e,t){if(!/^(true|false)$/i.test(e))throw Error(`${t} is a boolean, got '${e}'. Use true or false.`);return e.toLowerCase()===`true`}function l(e,t){if(Array.isArray(e))return/^(0|[1-9]\d*)$/.test(t)&&Number(t)<e.length?t:void 0;let n=u(t),r=Object.keys(e);return r.find(e=>e===t)??r.find(e=>u(e)===n)}function u(e){return e.replace(/[-_]/g,``).toLowerCase()}let d=/^-?(0|[1-9]\d*)(\.\d+)?([eE][+-]?\d+)?$/;function f(e){return e.startsWith("${")&&e.endsWith(`}`)&&e.indexOf("${",2)===-1}function p(e,t,n){if(f(t))return t;switch(typeof e){case`number`:return m(t,n);case`boolean`:return c(t,n);case`object`:if(e===null){let e=g(t);return e?e.value:t}return h(e,t,n);default:return t}}function m(e,t){let n=d.test(e)?Number(e):NaN;if(!Number.isFinite(n))throw Error(`${t} is a number, got '${e}'. Use a decimal number such as 8080, -1 or 0.5.`);if(/^-?\d+$/.test(e)&&!Number.isSafeInteger(n))throw Error(`${t} is a number, got '${e}', which is too large to keep exactly. Use a string in cell.yml for such values.`);return n}function h(e,t,n){let r=Array.isArray(e)?`an array`:`an object`,i=g(t)?.value;if(typeof i!=`object`||!i||Array.isArray(i)!==Array.isArray(e))throw Error(`${n} is ${r}; pass it as JSON, or override its keys one by one.`);return i}function g(e){try{return{value:JSON.parse(e)}}catch{return}}})(Ht||={});var Ut=class e{constructor(t=()=>e.defaultEngine??=new Z){this.engine=t,this.ESCAPE_CHAR=`\\`,this.SPECIAL_CHAR=`$`,this.BRACKET_BEGIN=`{`,this.BRACKET_END=`}`}getSpecialChar(e){return e.ignoreSpecialChar?``:e.specialChar}equalsSpecialChar(e,t){return!e.ignoreSpecialChar&&t===e.specialChar}compileSections(e,t){let n={escapeChar:this.ESCAPE_CHAR,specialChar:this.SPECIAL_CHAR,bracketBegin:this.BRACKET_BEGIN,bracketEnd:this.BRACKET_END,...t};if(!e||e.indexOf(`${this.getSpecialChar(n)}${n.bracketBegin}`)<0)return[];let r=[],i=e;for(;i;){let e=this.middleCompile(i,n);e?(r.push(e.expression),i=e.nextText):(r.push(i),i=void 0)}return r}middleCompile(e,t){let n,r=`${this.getSpecialChar(t)}${t.bracketBegin}`,i=`${r}${t.bracketBegin}`;return n=e.startsWith(i)?this.nextMiddleExpression(e.substring(i.length),2,t):e.startsWith(r)?this.nextMiddleExpression(e.substring(r.length),void 0,t):this.nextString(e,t),n}nextMiddleExpression(e,t=1,n){let r=!1,i=!1,a=0,o=[];for(let s=0;s<e.length;s++){let c=e[s];if(!i){if(c===`'`||c===`"`){r=!r,o.push(c);continue}if(c===n.escapeChar){i=!0;continue}}if(r)o.push(c),i=!1;else if(i)this.equalsSpecialChar(n,c)||n.bracketBegin===c||n.bracketEnd===c||o.push(n.escapeChar),o.push(c),i=!1;else if(n.bracketBegin===c)a++,o.push(c);else if(n.bracketEnd===c){if(a===0&&t===1){let t=this.engine().compile(o.join(``)),n;return s!==e.length-1&&(n=e.substring(s+1)),{expression:t,nextText:n}}a>0?(a--,o.push(c)):t--}else o.push(c)}}nextString(e,t){let n=!1,r=!1,i=[];for(let a=0;a<e.length;a++){let o=e[a];if(!n){if(o===`'`||o===`"`){i.push(o);continue}if(o===t.escapeChar){n=!0;continue}}if(n)this.equalsSpecialChar(t,o)||t.bracketBegin===o||t.bracketEnd===o||i.push(t.escapeChar),i.push(o),n=!1;else if(r||t.ignoreSpecialChar){if(t.bracketBegin===o)return{expression:i.join(``),nextText:t.ignoreSpecialChar?e.substring(a):e.substring(a-1)};t.ignoreSpecialChar||(r=!1,i.push(t.specialChar)),i.push(o)}else this.equalsSpecialChar(t,o)?r=!0:i.push(o)}return{expression:i.join(``)}}static{Object.defineProperty(this,"name",{value:`ExpressionSectionCompiler`,configurable:!0})}},Wt=class extends Error{constructor(e,t,n,r){super(n),this.path=e,this.template=t,this.cause=r,this.name=`ExpressionError`}static{Object.defineProperty(this,"name",{value:`ExpressionError`,configurable:!0})}},Q;(function(e){let t;function n(e){let t={};for(let[n,r]of Object.entries(e))r!==void 0&&r!==``&&(t[n]=r);return t}e.definedEnv=n;function r(e){return e.compiler??(t??=new Ut)}function i(e,t,n={}){let i=r(n).compileSections(e,n.compilerOptions);if(!i.some(e=>typeof e!=`string`))return e;let a=typeof t==`function`?t():t;return i.length===1?i[0].evaluate(a):i.map(e=>typeof e==`string`?e:e.evaluate(a)).join(``)}e.evaluateText=i;function a(e,t,n){o(e,[],t,n)}e.walk=a;function o(e,t,n,r){if(typeof e==`object`&&e&&e._ignoreEl!==!0&&!t.includes(e)){t.push(e);for(let i of Object.keys(e)){let a=e[i];if(typeof a==`string`){let t=n(a,e,i);t!==a&&(e[i]=t)}else r&&typeof a==`object`&&a&&r(a,e,i),o(a,t,n,r)}t.pop()}}function s(e,t={}){let n=new Map,r=[],o=new WeakMap([[e,``]]),s=new WeakMap,c=new WeakMap,l=(e,t)=>{let n=o.get(e);return n?`${n}.${t}`:t},u=e=>typeof e!=`object`||!e?e:c.get(e)||(Array.isArray(e)?e.map(u):Object.getPrototypeOf(e)===Object.prototype?Object.fromEntries(Object.entries(e).map(([e,t])=>[e,u(t)])):e),d=(a,o)=>{let s=n.get(a);if(s?.has(o))return s.get(o);let c=a[o],d=l(a,o);if(r.includes(d))throw new Wt(d,c,`Circular reference in the configuration: ${[...r,d].join(` -> `)}`);r.push(d);let p;try{p=u(i(c,()=>f(e),t));let n=t.types?.[d];n&&(p=Ht.toType(n,p,d))}catch(e){throw e instanceof Wt?e:new Wt(d,c,`Cannot evaluate ${d}: ${c} (${e?.message??e})`,e)}finally{r.pop()}return n.has(a)||n.set(a,new Map),n.get(a).set(o,p),p},f=e=>{if(typeof e!=`object`||!e||e._ignoreEl===!0)return e;let t=s.get(e);if(!t){let n=new Proxy(e,{get:(e,t,n)=>{let r=Reflect.get(e,t,n);return typeof t!=`string`||!Object.prototype.hasOwnProperty.call(e,t)?r:typeof r==`string`?d(e,t):(typeof r==`object`&&r&&!o.has(r)&&o.set(r,l(e,t)),f(r))}});s.set(e,n),c.set(n,e),t=n}return t};a(e,(e,n,r)=>t.include&&!t.include(l(n,r))?e:d(n,r),(e,t,n)=>{o.has(e)||o.set(e,l(t,n))})}e.evaluateConfiguration=s})(Q||={});var Gt=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Kt=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},qt=class{constructor(){this.sectionCompiler=new Ut(()=>this.engine)}compileSections(e,t={}){return this.sectionCompiler.compileSections(e,t)}static{Object.defineProperty(this,"name",{value:`ExpressionCompilerImpl`,configurable:!0})}};Gt([I(Z),Kt(`design:type`,Z)],qt.prototype,`engine`,void 0),qt=Gt([H(Ot)],qt);var Jt=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Yt=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},Xt=function(e,t){return function(n,r){t(n,r,e)}},Zt=class{constructor(e){this.contextInitializers=e,this.initialized=!1,this.ctx=B.getRaw()}provide(){if(this.prioritized||=t.prioritizeAllSync(this.contextInitializers).map(e=>e.value),!this.initialized){this.initialized=!0;for(let e of this.prioritized)e.initialize(this.ctx)}return this.ctx}static{Object.defineProperty(this,"name",{value:`ExpressionContextProviderImpl`,configurable:!0})}};Zt=Jt([H(At),Xt(0,I(kt)),Xt(0,W()),Yt(`design:paramtypes`,[Array])],Zt);var Qt=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},$t=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},en=class{getContext(e,t){let n=e||this.expressionContextProvider.provide();return!e&&n!==this._ctx&&!t?.ignoreContextExpression&&(this._ctx=n,Q.evaluateConfiguration(n,{...this.options(t),types:B.getTypes()})),n}handle(e,t,n){let r=this.options(n),i=()=>this.getContext(t,n);return typeof e==`string`?Q.evaluateText(e,i,r):(Q.walk(e,e=>Q.evaluateText(e,i,r)),e)}options(e){return{compiler:this.expressionCompiler,compilerOptions:e}}static{Object.defineProperty(this,"name",{value:`ExpressionHandlerImpl`,configurable:!0})}};Qt([I(At),$t(`design:type`,Object)],en.prototype,`expressionContextProvider`,void 0),Qt([I(Ot),$t(`design:type`,Object)],en.prototype,`expressionCompiler`,void 0),en=Qt([H(X)],en);var tn=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},nn=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},rn=class{constructor(){this.priority=500}initialize(e){typeof process<`u`&&(e.env={...Q.definedEnv({}),_ignoreEl:!0}),this.engine.addTransforms({replace:(e,t,n)=>e&&e.replace(new RegExp(t,`g`),n),regexp:(e,t)=>new RegExp(e,t),eval:e=>this.expressionHandler.handle(e)})}static{Object.defineProperty(this,"name",{value:`CoreContextInitializer`,configurable:!0})}};tn([I(Z),nn(`design:type`,Z)],rn.prototype,`engine`,void 0),tn([I({id:X,detached:!0}),nn(`design:type`,Object)],rn.prototype,`expressionHandler`,void 0),rn=tn([H(kt)],rn);var an=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},on=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},sn=class{get(e,t){return this.expressionHandler.handle(`\${${e}}`)??t}static{Object.defineProperty(this,"name",{value:`ConfigProviderImpl`,configurable:!0})}};an([I(X),on(`design:type`,Object)],sn.prototype,`expressionHandler`,void 0),sn=an([H(U)],sn);var cn=Symbol(`ComponentFilterRegistry`),ln=Symbol(`ComponentFilterContribution`),un=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},dn=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},fn=function(e,t){return function(n,r){t(n,r,e)}},pn=class{constructor(e=[]){this.initialized=!1,this.genericFilters=[],this.typeToFilters=new Map;for(let t of e)t.registerContributionFilters(this);this.initialized=!0}addFilters(e,t){if(this.initialized)throw Error(`cannot add filters after initialization is done.`);if(e===`*`)this.genericFilters.push(...t);else for(let n of e)this.getOrCreate(n).push(...t)}applyFilters(e,t){let n=this.getFilters(t);return n.length===0?e:e.filter(e=>n.every(t=>t(e)))}getOrCreate(e){let t=this.typeToFilters.get(e);return t===void 0&&this.typeToFilters.set(e,t=[]),t}getFilters(e){return[...this.typeToFilters.get(e)||[],...this.genericFilters]}static{Object.defineProperty(this,"name",{value:`ComponentFilterRegistryImpl`,configurable:!0})}};pn=un([H(cn),fn(0,I(ln)),fn(0,W()),dn(`design:paramtypes`,[Array])],pn);var mn=e=>{if(e)return`priority`in e?e.priority:`order`in e?e.order:0},hn=class{constructor(e,t){this.componentId=e,this.container=t}get(){if(this.components===void 0){let e=this.container.isBound(this.componentId)?this.container.getAll(this.componentId):[],t=this.container.isBound(cn)?this.container.get(cn):void 0;this.components=t?t.applyFilters(e,this.componentId):e}return this.components}sortSync(e=mn){return this.components=t.prioritizeAllSync(this.get(),e).map(e=>e.value),this.components}async sort(e=mn){let n=await t.prioritizeAll(this.get(),e);return this.components=n.map(e=>e.value),this.components}static{Object.defineProperty(this,"name",{value:`ContainerBasedProvider`,configurable:!0})}};function gn(e){e(Le).toDynamicValue(e=>new hn(e.target.tags[Re],e.container))}var _n=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},vn=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},$=class{async check(){let e=[];for(let t of this.checks)e.push(...await t.check());return e}async enforce(){if(this.policy===`off`||this.checks.length===0||!this.isProduction())return;let e=await this.check();if(e.length!==0){if(this.policy===`fail`)throw new qe(e);for(let t of e)this.logger.warn(qe.format(t))}}isProduction(){return typeof process<`u`&&!0}static{Object.defineProperty(this,"name",{value:`SecurityCheckerImpl`,configurable:!0})}};_n([I(We),W(),vn(`design:type`,Array)],$.prototype,`checks`,void 0),_n([we(`${Ke} ?? 'warn'`),vn(`design:type`,String)],$.prototype,`policy`,void 0),_n([I(G),vn(`design:type`,Object)],$.prototype,`logger`,void 0),$=_n([H(Ge)],$);export{x as C,o as D,d as E,t as O,S,m as T,R as _,nt as a,O as b,Xe as c,Ae as d,W as f,H as g,U as h,J as i,$e as l,ke as m,X as n,tt as o,we as p,ut as r,Ze as s,gn as t,G as u,I as v,b as w,E as x,de as y};
@@ -0,0 +1 @@
1
+ import{s as e,u as t}from"./browser-DZ1aJcgd.js";import{n,t as r}from"./d3-selection-CtCbiJ-r.js";import{n as i}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{t as a}from"./cytoscape.esm-DpEiRCgp.js";var o=e(((e,t,n)=>{(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r():typeof define==`function`&&define.amd?define([],r):typeof e==`object`?e.layoutBase=r():n.layoutBase=r()})(n,function(){return(function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.i=function(e){return e},n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,`a`,t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p=``,n(n.s=26)})([(function(e,t,n){function r(){}r.QUALITY=1,r.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,r.DEFAULT_INCREMENTAL=!1,r.DEFAULT_ANIMATION_ON_LAYOUT=!0,r.DEFAULT_ANIMATION_DURING_LAYOUT=!1,r.DEFAULT_ANIMATION_PERIOD=50,r.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,r.DEFAULT_GRAPH_MARGIN=15,r.NODE_DIMENSIONS_INCLUDE_LABELS=!1,r.SIMPLE_NODE_SIZE=40,r.SIMPLE_NODE_HALF_SIZE=r.SIMPLE_NODE_SIZE/2,r.EMPTY_COMPOUND_NODE_SIZE=40,r.MIN_EDGE_LENGTH=1,r.WORLD_BOUNDARY=1e6,r.INITIAL_WORLD_BOUNDARY=r.WORLD_BOUNDARY/1e3,r.WORLD_CENTER_X=1200,r.WORLD_CENTER_Y=900,e.exports=r}),(function(e,t,n){var r=n(2),i=n(8),a=n(9);function o(e,t,n){r.call(this,n),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=n,this.bendpoints=[],this.source=e,this.target=t}for(var s in o.prototype=Object.create(r.prototype),r)o[s]=r[s];o.prototype.getSource=function(){return this.source},o.prototype.getTarget=function(){return this.target},o.prototype.isInterGraph=function(){return this.isInterGraph},o.prototype.getLength=function(){return this.length},o.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},o.prototype.getBendpoints=function(){return this.bendpoints},o.prototype.getLca=function(){return this.lca},o.prototype.getSourceInLca=function(){return this.sourceInLca},o.prototype.getTargetInLca=function(){return this.targetInLca},o.prototype.getOtherEnd=function(e){if(this.source===e)return this.target;if(this.target===e)return this.source;throw`Node is not incident with this edge`},o.prototype.getOtherEndInGraph=function(e,t){for(var n=this.getOtherEnd(e),r=t.getGraphManager().getRoot();;){if(n.getOwner()==t)return n;if(n.getOwner()==r)break;n=n.getOwner().getParent()}return null},o.prototype.updateLength=function(){var e=[,,,,];this.isOverlapingSourceAndTarget=i.getIntersection(this.target.getRect(),this.source.getRect(),e),this.isOverlapingSourceAndTarget||(this.lengthX=e[0]-e[2],this.lengthY=e[1]-e[3],Math.abs(this.lengthX)<1&&(this.lengthX=a.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=a.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},o.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=a.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=a.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},e.exports=o}),(function(e,t,n){function r(e){this.vGraphObject=e}e.exports=r}),(function(e,t,n){var r=n(2),i=n(10),a=n(13),o=n(0),s=n(16),c=n(4);function l(e,t,n,o){n==null&&o==null&&(o=t),r.call(this,o),e.graphManager!=null&&(e=e.graphManager),this.estimatedSize=i.MIN_VALUE,this.inclusionTreeDepth=i.MAX_VALUE,this.vGraphObject=o,this.edges=[],this.graphManager=e,this.rect=n!=null&&t!=null?new a(t.x,t.y,n.width,n.height):new a}for(var u in l.prototype=Object.create(r.prototype),r)l[u]=r[u];l.prototype.getEdges=function(){return this.edges},l.prototype.getChild=function(){return this.child},l.prototype.getOwner=function(){return this.owner},l.prototype.getWidth=function(){return this.rect.width},l.prototype.setWidth=function(e){this.rect.width=e},l.prototype.getHeight=function(){return this.rect.height},l.prototype.setHeight=function(e){this.rect.height=e},l.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},l.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},l.prototype.getCenter=function(){return new c(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},l.prototype.getLocation=function(){return new c(this.rect.x,this.rect.y)},l.prototype.getRect=function(){return this.rect},l.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},l.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},l.prototype.setRect=function(e,t){this.rect.x=e.x,this.rect.y=e.y,this.rect.width=t.width,this.rect.height=t.height},l.prototype.setCenter=function(e,t){this.rect.x=e-this.rect.width/2,this.rect.y=t-this.rect.height/2},l.prototype.setLocation=function(e,t){this.rect.x=e,this.rect.y=t},l.prototype.moveBy=function(e,t){this.rect.x+=e,this.rect.y+=t},l.prototype.getEdgeListToNode=function(e){var t=[],n=this;return n.edges.forEach(function(r){if(r.target==e){if(r.source!=n)throw`Incorrect edge source!`;t.push(r)}}),t},l.prototype.getEdgesBetween=function(e){var t=[],n=this;return n.edges.forEach(function(r){if(r.source!=n&&r.target!=n)throw`Incorrect edge source and/or target`;(r.target==e||r.source==e)&&t.push(r)}),t},l.prototype.getNeighborsList=function(){var e=new Set,t=this;return t.edges.forEach(function(n){if(n.source==t)e.add(n.target);else{if(n.target!=t)throw`Incorrect incidency!`;e.add(n.source)}}),e},l.prototype.withChildren=function(){var e=new Set,t,n;if(e.add(this),this.child!=null)for(var r=this.child.getNodes(),i=0;i<r.length;i++)t=r[i],n=t.withChildren(),n.forEach(function(t){e.add(t)});return e},l.prototype.getNoOfChildren=function(){var e=0,t;if(this.child==null)e=1;else for(var n=this.child.getNodes(),r=0;r<n.length;r++)t=n[r],e+=t.getNoOfChildren();return e==0&&(e=1),e},l.prototype.getEstimatedSize=function(){if(this.estimatedSize==i.MIN_VALUE)throw`assert failed`;return this.estimatedSize},l.prototype.calcEstimatedSize=function(){return this.child==null?this.estimatedSize=(this.rect.width+this.rect.height)/2:(this.estimatedSize=this.child.calcEstimatedSize(),this.rect.width=this.estimatedSize,this.rect.height=this.estimatedSize,this.estimatedSize)},l.prototype.scatter=function(){var e,t,n=-o.INITIAL_WORLD_BOUNDARY,r=o.INITIAL_WORLD_BOUNDARY;e=o.WORLD_CENTER_X+s.nextDouble()*(r-n)+n;var i=-o.INITIAL_WORLD_BOUNDARY,a=o.INITIAL_WORLD_BOUNDARY;t=o.WORLD_CENTER_Y+s.nextDouble()*(a-i)+i,this.rect.x=e,this.rect.y=t},l.prototype.updateBounds=function(){if(this.getChild()==null)throw`assert failed`;if(this.getChild().getNodes().length!=0){var e=this.getChild();if(e.updateBounds(!0),this.rect.x=e.getLeft(),this.rect.y=e.getTop(),this.setWidth(e.getRight()-e.getLeft()),this.setHeight(e.getBottom()-e.getTop()),o.NODE_DIMENSIONS_INCLUDE_LABELS){var t=e.getRight()-e.getLeft(),n=e.getBottom()-e.getTop();this.labelWidth>t&&(this.rect.x-=(this.labelWidth-t)/2,this.setWidth(this.labelWidth)),this.labelHeight>n&&(this.labelPos==`center`?this.rect.y-=(this.labelHeight-n)/2:this.labelPos==`top`&&(this.rect.y-=this.labelHeight-n),this.setHeight(this.labelHeight))}}},l.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==i.MAX_VALUE)throw`assert failed`;return this.inclusionTreeDepth},l.prototype.transform=function(e){var t=this.rect.x;t>o.WORLD_BOUNDARY?t=o.WORLD_BOUNDARY:t<-o.WORLD_BOUNDARY&&(t=-o.WORLD_BOUNDARY);var n=this.rect.y;n>o.WORLD_BOUNDARY?n=o.WORLD_BOUNDARY:n<-o.WORLD_BOUNDARY&&(n=-o.WORLD_BOUNDARY);var r=new c(t,n),i=e.inverseTransformPoint(r);this.setLocation(i.x,i.y)},l.prototype.getLeft=function(){return this.rect.x},l.prototype.getRight=function(){return this.rect.x+this.rect.width},l.prototype.getTop=function(){return this.rect.y},l.prototype.getBottom=function(){return this.rect.y+this.rect.height},l.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},e.exports=l}),(function(e,t,n){function r(e,t){e==null&&t==null?(this.x=0,this.y=0):(this.x=e,this.y=t)}r.prototype.getX=function(){return this.x},r.prototype.getY=function(){return this.y},r.prototype.setX=function(e){this.x=e},r.prototype.setY=function(e){this.y=e},r.prototype.getDifference=function(e){return new DimensionD(this.x-e.x,this.y-e.y)},r.prototype.getCopy=function(){return new r(this.x,this.y)},r.prototype.translate=function(e){return this.x+=e.width,this.y+=e.height,this},e.exports=r}),(function(e,t,n){var r=n(2),i=n(10),a=n(0),o=n(6),s=n(3),c=n(1),l=n(13),u=n(12),d=n(11);function f(e,t,n){r.call(this,n),this.estimatedSize=i.MIN_VALUE,this.margin=a.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=e,t!=null&&t instanceof o?this.graphManager=t:t!=null&&t instanceof Layout&&(this.graphManager=t.graphManager)}for(var p in f.prototype=Object.create(r.prototype),r)f[p]=r[p];f.prototype.getNodes=function(){return this.nodes},f.prototype.getEdges=function(){return this.edges},f.prototype.getGraphManager=function(){return this.graphManager},f.prototype.getParent=function(){return this.parent},f.prototype.getLeft=function(){return this.left},f.prototype.getRight=function(){return this.right},f.prototype.getTop=function(){return this.top},f.prototype.getBottom=function(){return this.bottom},f.prototype.isConnected=function(){return this.isConnected},f.prototype.add=function(e,t,n){if(t==null&&n==null){var r=e;if(this.graphManager==null)throw`Graph has no graph mgr!`;if(this.getNodes().indexOf(r)>-1)throw`Node already in graph!`;return r.owner=this,this.getNodes().push(r),r}var i=e;if(!(this.getNodes().indexOf(t)>-1&&this.getNodes().indexOf(n)>-1))throw`Source or target not in graph!`;if(t.owner!=n.owner||t.owner!=this)throw`Both owners must be this graph!`;return t.owner==n.owner?(i.source=t,i.target=n,i.isInterGraph=!1,this.getEdges().push(i),t.edges.push(i),n!=t&&n.edges.push(i),i):null},f.prototype.remove=function(e){var t=e;if(e instanceof s){if(t==null)throw`Node is null!`;if(t.owner==null||t.owner!=this)throw`Owner graph is invalid!`;if(this.graphManager==null)throw`Owner graph manager is invalid!`;for(var n=t.edges.slice(),r,i=n.length,a=0;a<i;a++)r=n[a],r.isInterGraph?this.graphManager.remove(r):r.source.owner.remove(r);var o=this.nodes.indexOf(t);if(o==-1)throw`Node not in owner node list!`;this.nodes.splice(o,1)}else if(e instanceof c){var r=e;if(r==null)throw`Edge is null!`;if(r.source==null||r.target==null)throw`Source and/or target is null!`;if(r.source.owner==null||r.target.owner==null||r.source.owner!=this||r.target.owner!=this)throw`Source and/or target owner is invalid!`;var l=r.source.edges.indexOf(r),u=r.target.edges.indexOf(r);if(!(l>-1&&u>-1))throw`Source and/or target doesn't know this edge!`;r.source.edges.splice(l,1),r.target!=r.source&&r.target.edges.splice(u,1);var o=r.source.owner.getEdges().indexOf(r);if(o==-1)throw`Not in owner's edge list!`;r.source.owner.getEdges().splice(o,1)}},f.prototype.updateLeftTop=function(){for(var e=i.MAX_VALUE,t=i.MAX_VALUE,n,r,a,o=this.getNodes(),s=o.length,c=0;c<s;c++){var l=o[c];n=l.getTop(),r=l.getLeft(),e>n&&(e=n),t>r&&(t=r)}return e==i.MAX_VALUE?null:(a=o[0].getParent().paddingLeft==null?this.margin:o[0].getParent().paddingLeft,this.left=t-a,this.top=e-a,new u(this.left,this.top))},f.prototype.updateBounds=function(e){for(var t=i.MAX_VALUE,n=-i.MAX_VALUE,r=i.MAX_VALUE,a=-i.MAX_VALUE,o,s,c,u,d,f=this.nodes,p=f.length,m=0;m<p;m++){var h=f[m];e&&h.child!=null&&h.updateBounds(),o=h.getLeft(),s=h.getRight(),c=h.getTop(),u=h.getBottom(),t>o&&(t=o),n<s&&(n=s),r>c&&(r=c),a<u&&(a=u)}var g=new l(t,r,n-t,a-r);t==i.MAX_VALUE&&(this.left=this.parent.getLeft(),this.right=this.parent.getRight(),this.top=this.parent.getTop(),this.bottom=this.parent.getBottom()),d=f[0].getParent().paddingLeft==null?this.margin:f[0].getParent().paddingLeft,this.left=g.x-d,this.right=g.x+g.width+d,this.top=g.y-d,this.bottom=g.y+g.height+d},f.calculateBounds=function(e){for(var t=i.MAX_VALUE,n=-i.MAX_VALUE,r=i.MAX_VALUE,a=-i.MAX_VALUE,o,s,c,u,d=e.length,f=0;f<d;f++){var p=e[f];o=p.getLeft(),s=p.getRight(),c=p.getTop(),u=p.getBottom(),t>o&&(t=o),n<s&&(n=s),r>c&&(r=c),a<u&&(a=u)}return new l(t,r,n-t,a-r)},f.prototype.getInclusionTreeDepth=function(){return this==this.graphManager.getRoot()?1:this.parent.getInclusionTreeDepth()},f.prototype.getEstimatedSize=function(){if(this.estimatedSize==i.MIN_VALUE)throw`assert failed`;return this.estimatedSize},f.prototype.calcEstimatedSize=function(){for(var e=0,t=this.nodes,n=t.length,r=0;r<n;r++){var i=t[r];e+=i.calcEstimatedSize()}return this.estimatedSize=e==0?a.EMPTY_COMPOUND_NODE_SIZE:e/Math.sqrt(this.nodes.length),this.estimatedSize},f.prototype.updateConnected=function(){var e=this;if(this.nodes.length==0)this.isConnected=!0;else{var t=new d,n=new Set,r=this.nodes[0],i,a;for(r.withChildren().forEach(function(e){t.push(e),n.add(e)});t.length!==0;){r=t.shift(),i=r.getEdges();for(var o=i.length,s=0;s<o;s++)a=i[s].getOtherEndInGraph(r,this),a!=null&&!n.has(a)&&a.withChildren().forEach(function(e){t.push(e),n.add(e)})}if(this.isConnected=!1,n.size>=this.nodes.length){var c=0;n.forEach(function(t){t.owner==e&&c++}),c==this.nodes.length&&(this.isConnected=!0)}}},e.exports=f}),(function(e,t,n){var r,i=n(1);function a(e){r=n(5),this.layout=e,this.graphs=[],this.edges=[]}a.prototype.addRoot=function(){var e=this.layout.newGraph(),t=this.layout.newNode(null),n=this.add(e,t);return this.setRootGraph(n),this.rootGraph},a.prototype.add=function(e,t,n,r,i){if(n==null&&r==null&&i==null){if(e==null)throw`Graph is null!`;if(t==null)throw`Parent node is null!`;if(this.graphs.indexOf(e)>-1)throw`Graph already in this graph mgr!`;if(this.graphs.push(e),e.parent!=null)throw`Already has a parent!`;if(t.child!=null)throw`Already has a child!`;return e.parent=t,t.child=e,e}i=n,r=t,n=e;var a=r.getOwner(),o=i.getOwner();if(a==null||a.getGraphManager()!=this)throw`Source not in this graph mgr!`;if(o==null||o.getGraphManager()!=this)throw`Target not in this graph mgr!`;if(a==o)return n.isInterGraph=!1,a.add(n,r,i);if(n.isInterGraph=!0,n.source=r,n.target=i,this.edges.indexOf(n)>-1)throw`Edge already in inter-graph edge list!`;if(this.edges.push(n),n.source==null||n.target==null)throw`Edge source and/or target is null!`;if(n.source.edges.indexOf(n)!=-1||n.target.edges.indexOf(n)!=-1)throw`Edge already in source and/or target incidency list!`;return n.source.edges.push(n),n.target.edges.push(n),n},a.prototype.remove=function(e){if(e instanceof r){var t=e;if(t.getGraphManager()!=this)throw`Graph not in this graph mgr`;if(!(t==this.rootGraph||t.parent!=null&&t.parent.graphManager==this))throw`Invalid parent node!`;var n=[];n=n.concat(t.getEdges());for(var a,o=n.length,s=0;s<o;s++)a=n[s],t.remove(a);var c=[];c=c.concat(t.getNodes());var l;o=c.length;for(var s=0;s<o;s++)l=c[s],t.remove(l);t==this.rootGraph&&this.setRootGraph(null);var u=this.graphs.indexOf(t);this.graphs.splice(u,1),t.parent=null}else if(e instanceof i){if(a=e,a==null)throw`Edge is null!`;if(!a.isInterGraph)throw`Not an inter-graph edge!`;if(a.source==null||a.target==null)throw`Source and/or target is null!`;if(a.source.edges.indexOf(a)==-1||a.target.edges.indexOf(a)==-1)throw`Source and/or target doesn't know this edge!`;var u=a.source.edges.indexOf(a);if(a.source.edges.splice(u,1),u=a.target.edges.indexOf(a),a.target.edges.splice(u,1),a.source.owner==null||a.source.owner.getGraphManager()==null)throw`Edge owner graph or owner graph manager is null!`;if(a.source.owner.getGraphManager().edges.indexOf(a)==-1)throw`Not in owner graph manager's edge list!`;var u=a.source.owner.getGraphManager().edges.indexOf(a);a.source.owner.getGraphManager().edges.splice(u,1)}},a.prototype.updateBounds=function(){this.rootGraph.updateBounds(!0)},a.prototype.getGraphs=function(){return this.graphs},a.prototype.getAllNodes=function(){if(this.allNodes==null){for(var e=[],t=this.getGraphs(),n=t.length,r=0;r<n;r++)e=e.concat(t[r].getNodes());this.allNodes=e}return this.allNodes},a.prototype.resetAllNodes=function(){this.allNodes=null},a.prototype.resetAllEdges=function(){this.allEdges=null},a.prototype.resetAllNodesToApplyGravitation=function(){this.allNodesToApplyGravitation=null},a.prototype.getAllEdges=function(){if(this.allEdges==null){var e=[],t=this.getGraphs();t.length;for(var n=0;n<t.length;n++)e=e.concat(t[n].getEdges());e=e.concat(this.edges),this.allEdges=e}return this.allEdges},a.prototype.getAllNodesToApplyGravitation=function(){return this.allNodesToApplyGravitation},a.prototype.setAllNodesToApplyGravitation=function(e){if(this.allNodesToApplyGravitation!=null)throw`assert failed`;this.allNodesToApplyGravitation=e},a.prototype.getRoot=function(){return this.rootGraph},a.prototype.setRootGraph=function(e){if(e.getGraphManager()!=this)throw`Root not in this graph mgr!`;this.rootGraph=e,e.parent??=this.layout.newNode(`Root node`)},a.prototype.getLayout=function(){return this.layout},a.prototype.isOneAncestorOfOther=function(e,t){if(e==null||t==null)throw`assert failed`;if(e==t)return!0;var n=e.getOwner(),r;do{if(r=n.getParent(),r==null)break;if(r==t)return!0;if(n=r.getOwner(),n==null)break}while(1);n=t.getOwner();do{if(r=n.getParent(),r==null)break;if(r==e)return!0;if(n=r.getOwner(),n==null)break}while(1);return!1},a.prototype.calcLowestCommonAncestors=function(){for(var e,t,n,r,i,a=this.getAllEdges(),o=a.length,s=0;s<o;s++)if(e=a[s],t=e.source,n=e.target,e.lca=null,e.sourceInLca=t,e.targetInLca=n,t==n)e.lca=t.getOwner();else{for(r=t.getOwner();e.lca==null;){for(e.targetInLca=n,i=n.getOwner();e.lca==null;){if(i==r){e.lca=i;break}if(i==this.rootGraph)break;if(e.lca!=null)throw`assert failed`;e.targetInLca=i.getParent(),i=e.targetInLca.getOwner()}if(r==this.rootGraph)break;e.lca??(e.sourceInLca=r.getParent(),r=e.sourceInLca.getOwner())}if(e.lca==null)throw`assert failed`}},a.prototype.calcLowestCommonAncestor=function(e,t){if(e==t)return e.getOwner();var n=e.getOwner();do{if(n==null)break;var r=t.getOwner();do{if(r==null)break;if(r==n)return r;r=r.getParent().getOwner()}while(1);n=n.getParent().getOwner()}while(1);return n},a.prototype.calcInclusionTreeDepths=function(e,t){e==null&&t==null&&(e=this.rootGraph,t=1);for(var n,r=e.getNodes(),i=r.length,a=0;a<i;a++)n=r[a],n.inclusionTreeDepth=t,n.child!=null&&this.calcInclusionTreeDepths(n.child,t+1)},a.prototype.includesInvalidEdge=function(){for(var e,t=this.edges.length,n=0;n<t;n++)if(e=this.edges[n],this.isOneAncestorOfOther(e.source,e.target))return!0;return!1},e.exports=a}),(function(e,t,n){var r=n(0);function i(){}for(var a in r)i[a]=r[a];i.MAX_ITERATIONS=2500,i.DEFAULT_EDGE_LENGTH=50,i.DEFAULT_SPRING_STRENGTH=.45,i.DEFAULT_REPULSION_STRENGTH=4500,i.DEFAULT_GRAVITY_STRENGTH=.4,i.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1,i.DEFAULT_GRAVITY_RANGE_FACTOR=3.8,i.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5,i.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=!0,i.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=!0,i.DEFAULT_COOLING_FACTOR_INCREMENTAL=.3,i.COOLING_ADAPTATION_FACTOR=.33,i.ADAPTATION_LOWER_NODE_LIMIT=1e3,i.ADAPTATION_UPPER_NODE_LIMIT=5e3,i.MAX_NODE_DISPLACEMENT_INCREMENTAL=100,i.MAX_NODE_DISPLACEMENT=i.MAX_NODE_DISPLACEMENT_INCREMENTAL*3,i.MIN_REPULSION_DIST=i.DEFAULT_EDGE_LENGTH/10,i.CONVERGENCE_CHECK_PERIOD=100,i.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=.1,i.MIN_EDGE_LENGTH=1,i.GRID_CALCULATION_CHECK_PERIOD=10,e.exports=i}),(function(e,t,n){var r=n(12);function i(){}i.calcSeparationAmount=function(e,t,n,r){if(!e.intersects(t))throw`assert failed`;var i=[,,];this.decideDirectionsForOverlappingNodes(e,t,i),n[0]=Math.min(e.getRight(),t.getRight())-Math.max(e.x,t.x),n[1]=Math.min(e.getBottom(),t.getBottom())-Math.max(e.y,t.y),e.getX()<=t.getX()&&e.getRight()>=t.getRight()?n[0]+=Math.min(t.getX()-e.getX(),e.getRight()-t.getRight()):t.getX()<=e.getX()&&t.getRight()>=e.getRight()&&(n[0]+=Math.min(e.getX()-t.getX(),t.getRight()-e.getRight())),e.getY()<=t.getY()&&e.getBottom()>=t.getBottom()?n[1]+=Math.min(t.getY()-e.getY(),e.getBottom()-t.getBottom()):t.getY()<=e.getY()&&t.getBottom()>=e.getBottom()&&(n[1]+=Math.min(e.getY()-t.getY(),t.getBottom()-e.getBottom()));var a=Math.abs((t.getCenterY()-e.getCenterY())/(t.getCenterX()-e.getCenterX()));t.getCenterY()===e.getCenterY()&&t.getCenterX()===e.getCenterX()&&(a=1);var o=a*n[0],s=n[1]/a;n[0]<s?s=n[0]:o=n[1],n[0]=-1*i[0]*(s/2+r),n[1]=-1*i[1]*(o/2+r)},i.decideDirectionsForOverlappingNodes=function(e,t,n){n[0]=e.getCenterX()<t.getCenterX()?-1:1,n[1]=e.getCenterY()<t.getCenterY()?-1:1},i.getIntersection2=function(e,t,n){var r=e.getCenterX(),i=e.getCenterY(),a=t.getCenterX(),o=t.getCenterY();if(e.intersects(t))return n[0]=r,n[1]=i,n[2]=a,n[3]=o,!0;var s=e.getX(),c=e.getY(),l=e.getRight(),u=e.getX(),d=e.getBottom(),f=e.getRight(),p=e.getWidthHalf(),m=e.getHeightHalf(),h=t.getX(),g=t.getY(),_=t.getRight(),v=t.getX(),y=t.getBottom(),b=t.getRight(),x=t.getWidthHalf(),S=t.getHeightHalf(),C=!1,w=!1;if(r===a){if(i>o)return n[0]=r,n[1]=c,n[2]=a,n[3]=y,!1;if(i<o)return n[0]=r,n[1]=d,n[2]=a,n[3]=g,!1}else if(i===o){if(r>a)return n[0]=s,n[1]=i,n[2]=_,n[3]=o,!1;if(r<a)return n[0]=l,n[1]=i,n[2]=h,n[3]=o,!1}else{var T=e.height/e.width,E=t.height/t.width,D=(o-i)/(a-r),O=void 0,k=void 0,A=void 0,j=void 0,M=void 0,N=void 0;if(-T===D?r>a?(n[0]=u,n[1]=d,C=!0):(n[0]=l,n[1]=c,C=!0):T===D&&(r>a?(n[0]=s,n[1]=c,C=!0):(n[0]=f,n[1]=d,C=!0)),-E===D?a>r?(n[2]=v,n[3]=y,w=!0):(n[2]=_,n[3]=g,w=!0):E===D&&(a>r?(n[2]=h,n[3]=g,w=!0):(n[2]=b,n[3]=y,w=!0)),C&&w)return!1;if(r>a?i>o?(O=this.getCardinalDirection(T,D,4),k=this.getCardinalDirection(E,D,2)):(O=this.getCardinalDirection(-T,D,3),k=this.getCardinalDirection(-E,D,1)):i>o?(O=this.getCardinalDirection(-T,D,1),k=this.getCardinalDirection(-E,D,3)):(O=this.getCardinalDirection(T,D,2),k=this.getCardinalDirection(E,D,4)),!C)switch(O){case 1:j=c,A=r+-m/D,n[0]=A,n[1]=j;break;case 2:A=f,j=i+p*D,n[0]=A,n[1]=j;break;case 3:j=d,A=r+m/D,n[0]=A,n[1]=j;break;case 4:A=u,j=i+-p*D,n[0]=A,n[1]=j}if(!w)switch(k){case 1:N=g,M=a+-S/D,n[2]=M,n[3]=N;break;case 2:M=b,N=o+x*D,n[2]=M,n[3]=N;break;case 3:N=y,M=a+S/D,n[2]=M,n[3]=N;break;case 4:M=v,N=o+-x*D,n[2]=M,n[3]=N}}return!1},i.getCardinalDirection=function(e,t,n){return e>t?n:1+n%4},i.getIntersection=function(e,t,n,i){if(i==null)return this.getIntersection2(e,t,n);var a=e.x,o=e.y,s=t.x,c=t.y,l=n.x,u=n.y,d=i.x,f=i.y,p=void 0,m=void 0,h=void 0,g=void 0,_=void 0,v=void 0,y=void 0,b=void 0,x=void 0;return h=c-o,_=a-s,y=s*o-a*c,g=f-u,v=l-d,b=d*u-l*f,x=h*v-g*_,x===0?null:(p=(_*b-v*y)/x,m=(g*y-h*b)/x,new r(p,m))},i.angleOfVector=function(e,t,n,r){var i=void 0;return e===n?i=r<t?this.ONE_AND_HALF_PI:this.HALF_PI:(i=Math.atan((r-t)/(n-e)),n<e?i+=Math.PI:r<t&&(i+=this.TWO_PI)),i},i.doIntersect=function(e,t,n,r){var i=e.x,a=e.y,o=t.x,s=t.y,c=n.x,l=n.y,u=r.x,d=r.y,f=(o-i)*(d-l)-(u-c)*(s-a);if(f===0)return!1;var p=((d-l)*(u-i)+(c-u)*(d-a))/f,m=((a-s)*(u-i)+(o-i)*(d-a))/f;return 0<p&&p<1&&0<m&&m<1},i.HALF_PI=.5*Math.PI,i.ONE_AND_HALF_PI=1.5*Math.PI,i.TWO_PI=2*Math.PI,i.THREE_PI=3*Math.PI,e.exports=i}),(function(e,t,n){function r(){}r.sign=function(e){return e>0?1:e<0?-1:0},r.floor=function(e){return e<0?Math.ceil(e):Math.floor(e)},r.ceil=function(e){return e<0?Math.floor(e):Math.ceil(e)},e.exports=r}),(function(e,t,n){function r(){}r.MAX_VALUE=2147483647,r.MIN_VALUE=-2147483648,e.exports=r}),(function(e,t,n){var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}var a=function(e){return{value:e,next:null,prev:null}},o=function(e,t,n,r){return e===null?r.head=t:e.next=t,n===null?r.tail=t:n.prev=t,t.prev=e,t.next=n,r.length++,t},s=function(e,t){var n=e.prev,r=e.next;return n===null?t.head=r:n.next=r,r===null?t.tail=n:r.prev=n,e.prev=e.next=null,t.length--,e};e.exports=function(){function e(t){var n=this;i(this,e),this.length=0,this.head=null,this.tail=null,t?.forEach(function(e){return n.push(e)})}return r(e,[{key:`size`,value:function(){return this.length}},{key:`insertBefore`,value:function(e,t){return o(t.prev,a(e),t,this)}},{key:`insertAfter`,value:function(e,t){return o(t,a(e),t.next,this)}},{key:`insertNodeBefore`,value:function(e,t){return o(t.prev,e,t,this)}},{key:`insertNodeAfter`,value:function(e,t){return o(t,e,t.next,this)}},{key:`push`,value:function(e){return o(this.tail,a(e),null,this)}},{key:`unshift`,value:function(e){return o(null,a(e),this.head,this)}},{key:`remove`,value:function(e){return s(e,this)}},{key:`pop`,value:function(){return s(this.tail,this).value}},{key:`popNode`,value:function(){return s(this.tail,this)}},{key:`shift`,value:function(){return s(this.head,this).value}},{key:`shiftNode`,value:function(){return s(this.head,this)}},{key:`get_object_at`,value:function(e){if(e<=this.length()){for(var t=1,n=this.head;t<e;)n=n.next,t++;return n.value}}},{key:`set_object_at`,value:function(e,t){if(e<=this.length()){for(var n=1,r=this.head;n<e;)r=r.next,n++;r.value=t}}}]),e}()}),(function(e,t,n){function r(e,t,n){this.x=null,this.y=null,e==null&&t==null&&n==null?(this.x=0,this.y=0):typeof e==`number`&&typeof t==`number`&&n==null?(this.x=e,this.y=t):e.constructor.name==`Point`&&t==null&&n==null&&(n=e,this.x=n.x,this.y=n.y)}r.prototype.getX=function(){return this.x},r.prototype.getY=function(){return this.y},r.prototype.getLocation=function(){return new r(this.x,this.y)},r.prototype.setLocation=function(e,t,n){e.constructor.name==`Point`&&t==null&&n==null?(n=e,this.setLocation(n.x,n.y)):typeof e==`number`&&typeof t==`number`&&n==null&&(parseInt(e)==e&&parseInt(t)==t?this.move(e,t):(this.x=Math.floor(e+.5),this.y=Math.floor(t+.5)))},r.prototype.move=function(e,t){this.x=e,this.y=t},r.prototype.translate=function(e,t){this.x+=e,this.y+=t},r.prototype.equals=function(e){if(e.constructor.name==`Point`){var t=e;return this.x==t.x&&this.y==t.y}return this==e},r.prototype.toString=function(){return new r().constructor.name+`[x=`+this.x+`,y=`+this.y+`]`},e.exports=r}),(function(e,t,n){function r(e,t,n,r){this.x=0,this.y=0,this.width=0,this.height=0,e!=null&&t!=null&&n!=null&&r!=null&&(this.x=e,this.y=t,this.width=n,this.height=r)}r.prototype.getX=function(){return this.x},r.prototype.setX=function(e){this.x=e},r.prototype.getY=function(){return this.y},r.prototype.setY=function(e){this.y=e},r.prototype.getWidth=function(){return this.width},r.prototype.setWidth=function(e){this.width=e},r.prototype.getHeight=function(){return this.height},r.prototype.setHeight=function(e){this.height=e},r.prototype.getRight=function(){return this.x+this.width},r.prototype.getBottom=function(){return this.y+this.height},r.prototype.intersects=function(e){return!(this.getRight()<e.x||this.getBottom()<e.y||e.getRight()<this.x||e.getBottom()<this.y)},r.prototype.getCenterX=function(){return this.x+this.width/2},r.prototype.getMinX=function(){return this.getX()},r.prototype.getMaxX=function(){return this.getX()+this.width},r.prototype.getCenterY=function(){return this.y+this.height/2},r.prototype.getMinY=function(){return this.getY()},r.prototype.getMaxY=function(){return this.getY()+this.height},r.prototype.getWidthHalf=function(){return this.width/2},r.prototype.getHeightHalf=function(){return this.height/2},e.exports=r}),(function(e,t,n){var r=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e};function i(){}i.lastID=0,i.createID=function(e){return i.isPrimitive(e)?e:(e.uniqueID??(e.uniqueID=i.getString(),i.lastID++),e.uniqueID)},i.getString=function(e){return e??=i.lastID,`Object#`+e},i.isPrimitive=function(e){var t=e===void 0?`undefined`:r(e);return e==null||t!=`object`&&t!=`function`},e.exports=i}),(function(e,t,n){function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var i=n(0),a=n(6),o=n(3),s=n(1),c=n(5),l=n(4),u=n(17),d=n(27);function f(e){d.call(this),this.layoutQuality=i.QUALITY,this.createBendsAsNeeded=i.DEFAULT_CREATE_BENDS_AS_NEEDED,this.incremental=i.DEFAULT_INCREMENTAL,this.animationOnLayout=i.DEFAULT_ANIMATION_ON_LAYOUT,this.animationDuringLayout=i.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=i.DEFAULT_ANIMATION_PERIOD,this.uniformLeafNodeSizes=i.DEFAULT_UNIFORM_LEAF_NODE_SIZES,this.edgeToDummyNodes=new Map,this.graphManager=new a(this),this.isLayoutFinished=!1,this.isSubLayout=!1,this.isRemoteUse=!1,e!=null&&(this.isRemoteUse=e)}f.RANDOM_SEED=1,f.prototype=Object.create(d.prototype),f.prototype.getGraphManager=function(){return this.graphManager},f.prototype.getAllNodes=function(){return this.graphManager.getAllNodes()},f.prototype.getAllEdges=function(){return this.graphManager.getAllEdges()},f.prototype.getAllNodesToApplyGravitation=function(){return this.graphManager.getAllNodesToApplyGravitation()},f.prototype.newGraphManager=function(){var e=new a(this);return this.graphManager=e,e},f.prototype.newGraph=function(e){return new c(null,this.graphManager,e)},f.prototype.newNode=function(e){return new o(this.graphManager,e)},f.prototype.newEdge=function(e){return new s(null,null,e)},f.prototype.checkLayoutSuccess=function(){return this.graphManager.getRoot()==null||this.graphManager.getRoot().getNodes().length==0||this.graphManager.includesInvalidEdge()},f.prototype.runLayout=function(){this.isLayoutFinished=!1,this.tilingPreLayout&&this.tilingPreLayout(),this.initParameters();var e=!this.checkLayoutSuccess()&&this.layout();return i.ANIMATE!==`during`&&(e&&(this.isSubLayout||this.doPostLayout()),this.tilingPostLayout&&this.tilingPostLayout(),this.isLayoutFinished=!0,e)},f.prototype.doPostLayout=function(){this.incremental||this.transform(),this.update()},f.prototype.update2=function(){if(this.createBendsAsNeeded&&(this.createBendpointsFromDummyNodes(),this.graphManager.resetAllEdges()),!this.isRemoteUse){for(var e=this.graphManager.getAllEdges(),t=0;t<e.length;t++)e[t];for(var n=this.graphManager.getRoot().getNodes(),t=0;t<n.length;t++)n[t];this.update(this.graphManager.getRoot())}},f.prototype.update=function(e){if(e==null)this.update2();else if(e instanceof o){var t=e;if(t.getChild()!=null)for(var n=t.getChild().getNodes(),r=0;r<n.length;r++)update(n[r]);t.vGraphObject!=null&&t.vGraphObject.update(t)}else if(e instanceof s){var i=e;i.vGraphObject!=null&&i.vGraphObject.update(i)}else if(e instanceof c){var a=e;a.vGraphObject!=null&&a.vGraphObject.update(a)}},f.prototype.initParameters=function(){this.isSubLayout||(this.layoutQuality=i.QUALITY,this.animationDuringLayout=i.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=i.DEFAULT_ANIMATION_PERIOD,this.animationOnLayout=i.DEFAULT_ANIMATION_ON_LAYOUT,this.incremental=i.DEFAULT_INCREMENTAL,this.createBendsAsNeeded=i.DEFAULT_CREATE_BENDS_AS_NEEDED,this.uniformLeafNodeSizes=i.DEFAULT_UNIFORM_LEAF_NODE_SIZES),this.animationDuringLayout&&(this.animationOnLayout=!1)},f.prototype.transform=function(e){if(e==null)this.transform(new l(0,0));else{var t=new u,n=this.graphManager.getRoot().updateLeftTop();if(n!=null){t.setWorldOrgX(e.x),t.setWorldOrgY(e.y),t.setDeviceOrgX(n.x),t.setDeviceOrgY(n.y);for(var r=this.getAllNodes(),i,a=0;a<r.length;a++)i=r[a],i.transform(t)}}},f.prototype.positionNodesRandomly=function(e){if(e==null)this.positionNodesRandomly(this.getGraphManager().getRoot()),this.getGraphManager().getRoot().updateBounds(!0);else for(var t,n,r=e.getNodes(),i=0;i<r.length;i++)t=r[i],n=t.getChild(),n==null||n.getNodes().length==0?t.scatter():(this.positionNodesRandomly(n),t.updateBounds())},f.prototype.getFlatForest=function(){for(var e=[],t=!0,n=this.graphManager.getRoot().getNodes(),i=!0,a=0;a<n.length;a++)n[a].getChild()!=null&&(i=!1);if(!i)return e;var o=new Set,s=[],c=new Map,l=[];for(l=l.concat(n);l.length>0&&t;){for(s.push(l[0]);s.length>0&&t;){var u=s[0];s.splice(0,1),o.add(u);for(var d=u.getEdges(),a=0;a<d.length;a++){var f=d[a].getOtherEnd(u);if(c.get(u)!=f){if(!o.has(f))s.push(f),c.set(f,u);else{t=!1;break}}}}if(!t)e=[];else{var p=[].concat(r(o));e.push(p);for(var a=0;a<p.length;a++){var m=p[a],h=l.indexOf(m);h>-1&&l.splice(h,1)}o=new Set,c=new Map}}return e},f.prototype.createDummyNodesForBendpoints=function(e){for(var t=[],n=e.source,r=this.graphManager.calcLowestCommonAncestor(e.source,e.target),i=0;i<e.bendpoints.length;i++){var a=this.newNode(null);a.setRect(new Point(0,0),new Dimension(1,1)),r.add(a);var o=this.newEdge(null);this.graphManager.add(o,n,a),t.add(a),n=a}var o=this.newEdge(null);return this.graphManager.add(o,n,e.target),this.edgeToDummyNodes.set(e,t),e.isInterGraph()?this.graphManager.remove(e):r.remove(e),t},f.prototype.createBendpointsFromDummyNodes=function(){var e=[];e=e.concat(this.graphManager.getAllEdges()),e=[].concat(r(this.edgeToDummyNodes.keys()),e);for(var t=0;t<e.length;t++){var n=e[t];if(n.bendpoints.length>0){for(var i=this.edgeToDummyNodes.get(n),a=0;a<i.length;a++){var o=i[a],s=new l(o.getCenterX(),o.getCenterY()),c=n.bendpoints.get(a);c.x=s.x,c.y=s.y,o.getOwner().remove(o)}this.graphManager.add(n,n.source,n.target)}}},f.transform=function(e,t,n,r){if(n!=null&&r!=null){var i=t;if(e<=50){var a=t/n;i-=(t-a)/50*(50-e)}else{var o=t*r;i+=(o-t)/50*(e-50)}return i}var s,c;return e<=50?(s=9*t/500,c=t/10):(s=9*t/50,c=-8*t),s*e+c},f.findCenterOfTree=function(e){var t=[];t=t.concat(e);var n=[],r=new Map,i=!1,a=null;(t.length==1||t.length==2)&&(i=!0,a=t[0]);for(var o=0;o<t.length;o++){var s=t[o],c=s.getNeighborsList().size;r.set(s,s.getNeighborsList().size),c==1&&n.push(s)}var l=[];for(l=l.concat(n);!i;){var u=[];u=u.concat(l),l=[];for(var o=0;o<t.length;o++){var s=t[o],d=t.indexOf(s);d>=0&&t.splice(d,1),s.getNeighborsList().forEach(function(e){if(n.indexOf(e)<0){var t=r.get(e)-1;t==1&&l.push(e),r.set(e,t)}})}n=n.concat(l),(t.length==1||t.length==2)&&(i=!0,a=t[0])}return a},f.prototype.setGraphManager=function(e){this.graphManager=e},e.exports=f}),(function(e,t,n){function r(){}r.seed=1,r.x=0,r.nextDouble=function(){return r.x=Math.sin(r.seed++)*1e4,r.x-Math.floor(r.x)},e.exports=r}),(function(e,t,n){var r=n(4);function i(e,t){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}i.prototype.getWorldOrgX=function(){return this.lworldOrgX},i.prototype.setWorldOrgX=function(e){this.lworldOrgX=e},i.prototype.getWorldOrgY=function(){return this.lworldOrgY},i.prototype.setWorldOrgY=function(e){this.lworldOrgY=e},i.prototype.getWorldExtX=function(){return this.lworldExtX},i.prototype.setWorldExtX=function(e){this.lworldExtX=e},i.prototype.getWorldExtY=function(){return this.lworldExtY},i.prototype.setWorldExtY=function(e){this.lworldExtY=e},i.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},i.prototype.setDeviceOrgX=function(e){this.ldeviceOrgX=e},i.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},i.prototype.setDeviceOrgY=function(e){this.ldeviceOrgY=e},i.prototype.getDeviceExtX=function(){return this.ldeviceExtX},i.prototype.setDeviceExtX=function(e){this.ldeviceExtX=e},i.prototype.getDeviceExtY=function(){return this.ldeviceExtY},i.prototype.setDeviceExtY=function(e){this.ldeviceExtY=e},i.prototype.transformX=function(e){var t=0,n=this.lworldExtX;return n!=0&&(t=this.ldeviceOrgX+(e-this.lworldOrgX)*this.ldeviceExtX/n),t},i.prototype.transformY=function(e){var t=0,n=this.lworldExtY;return n!=0&&(t=this.ldeviceOrgY+(e-this.lworldOrgY)*this.ldeviceExtY/n),t},i.prototype.inverseTransformX=function(e){var t=0,n=this.ldeviceExtX;return n!=0&&(t=this.lworldOrgX+(e-this.ldeviceOrgX)*this.lworldExtX/n),t},i.prototype.inverseTransformY=function(e){var t=0,n=this.ldeviceExtY;return n!=0&&(t=this.lworldOrgY+(e-this.ldeviceOrgY)*this.lworldExtY/n),t},i.prototype.inverseTransformPoint=function(e){return new r(this.inverseTransformX(e.x),this.inverseTransformY(e.y))},e.exports=i}),(function(e,t,n){function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var i=n(15),a=n(7),o=n(0),s=n(8),c=n(9);function l(){i.call(this),this.useSmartIdealEdgeLengthCalculation=a.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.idealEdgeLength=a.DEFAULT_EDGE_LENGTH,this.springConstant=a.DEFAULT_SPRING_STRENGTH,this.repulsionConstant=a.DEFAULT_REPULSION_STRENGTH,this.gravityConstant=a.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=a.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=a.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=a.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.displacementThresholdPerNode=3*a.DEFAULT_EDGE_LENGTH/100,this.coolingFactor=a.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.initialCoolingFactor=a.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.totalDisplacement=0,this.oldTotalDisplacement=0,this.maxIterations=a.MAX_ITERATIONS}for(var u in l.prototype=Object.create(i.prototype),i)l[u]=i[u];l.prototype.initParameters=function(){i.prototype.initParameters.call(this,arguments),this.totalIterations=0,this.notAnimatedIterations=0,this.useFRGridVariant=a.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION,this.grid=[]},l.prototype.calcIdealEdgeLengths=function(){for(var e,t,n,r,i,s,c=this.getGraphManager().getAllEdges(),l=0;l<c.length;l++)e=c[l],e.idealLength=this.idealEdgeLength,e.isInterGraph&&(n=e.getSource(),r=e.getTarget(),i=e.getSourceInLca().getEstimatedSize(),s=e.getTargetInLca().getEstimatedSize(),this.useSmartIdealEdgeLengthCalculation&&(e.idealLength+=i+s-2*o.SIMPLE_NODE_SIZE),t=e.getLca().getInclusionTreeDepth(),e.idealLength+=a.DEFAULT_EDGE_LENGTH*a.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR*(n.getInclusionTreeDepth()+r.getInclusionTreeDepth()-2*t))},l.prototype.initSpringEmbedder=function(){var e=this.getAllNodes().length;this.incremental?(e>a.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*a.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(e-a.ADAPTATION_LOWER_NODE_LIMIT)/(a.ADAPTATION_UPPER_NODE_LIMIT-a.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-a.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=a.MAX_NODE_DISPLACEMENT_INCREMENTAL):(this.coolingFactor=e>a.ADAPTATION_LOWER_NODE_LIMIT?Math.max(a.COOLING_ADAPTATION_FACTOR,1-(e-a.ADAPTATION_LOWER_NODE_LIMIT)/(a.ADAPTATION_UPPER_NODE_LIMIT-a.ADAPTATION_LOWER_NODE_LIMIT)*(1-a.COOLING_ADAPTATION_FACTOR)):1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=a.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},l.prototype.calcSpringForces=function(){for(var e=this.getAllEdges(),t,n=0;n<e.length;n++)t=e[n],this.calcSpringForce(t,t.idealLength)},l.prototype.calcRepulsionForces=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,t=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n,r,i,o,s=this.getAllNodes(),c;if(this.useFRGridVariant)for(this.totalIterations%a.GRID_CALCULATION_CHECK_PERIOD==1&&e&&this.updateGrid(),c=new Set,n=0;n<s.length;n++)i=s[n],this.calculateRepulsionForceOfANode(i,c,e,t),c.add(i);else for(n=0;n<s.length;n++)for(i=s[n],r=n+1;r<s.length;r++)o=s[r],i.getOwner()==o.getOwner()&&this.calcRepulsionForce(i,o)},l.prototype.calcGravitationalForces=function(){for(var e,t=this.getAllNodesToApplyGravitation(),n=0;n<t.length;n++)e=t[n],this.calcGravitationalForce(e)},l.prototype.moveNodes=function(){for(var e=this.getAllNodes(),t,n=0;n<e.length;n++)t=e[n],t.move()},l.prototype.calcSpringForce=function(e,t){var n=e.getSource(),r=e.getTarget(),i,a,o,s;if(this.uniformLeafNodeSizes&&n.getChild()==null&&r.getChild()==null)e.updateLengthSimple();else if(e.updateLength(),e.isOverlapingSourceAndTarget)return;i=e.getLength(),i!=0&&(a=this.springConstant*(i-t),o=a*(e.lengthX/i),s=a*(e.lengthY/i),n.springForceX+=o,n.springForceY+=s,r.springForceX-=o,r.springForceY-=s)},l.prototype.calcRepulsionForce=function(e,t){var n=e.getRect(),r=t.getRect(),i=[,,],o=[,,,,],l,u,d,f,p,m,h;if(n.intersects(r)){s.calcSeparationAmount(n,r,i,a.DEFAULT_EDGE_LENGTH/2),m=2*i[0],h=2*i[1];var g=e.noOfChildren*t.noOfChildren/(e.noOfChildren+t.noOfChildren);e.repulsionForceX-=g*m,e.repulsionForceY-=g*h,t.repulsionForceX+=g*m,t.repulsionForceY+=g*h}else this.uniformLeafNodeSizes&&e.getChild()==null&&t.getChild()==null?(l=r.getCenterX()-n.getCenterX(),u=r.getCenterY()-n.getCenterY()):(s.getIntersection(n,r,o),l=o[2]-o[0],u=o[3]-o[1]),Math.abs(l)<a.MIN_REPULSION_DIST&&(l=c.sign(l)*a.MIN_REPULSION_DIST),Math.abs(u)<a.MIN_REPULSION_DIST&&(u=c.sign(u)*a.MIN_REPULSION_DIST),d=l*l+u*u,f=Math.sqrt(d),p=this.repulsionConstant*e.noOfChildren*t.noOfChildren/d,m=p*l/f,h=p*u/f,e.repulsionForceX-=m,e.repulsionForceY-=h,t.repulsionForceX+=m,t.repulsionForceY+=h},l.prototype.calcGravitationalForce=function(e){var t=e.getOwner(),n=(t.getRight()+t.getLeft())/2,r=(t.getTop()+t.getBottom())/2,i=e.getCenterX()-n,a=e.getCenterY()-r,o=Math.abs(i)+e.getWidth()/2,s=Math.abs(a)+e.getHeight()/2,c;e.getOwner()==this.graphManager.getRoot()?(c=t.getEstimatedSize()*this.gravityRangeFactor,(o>c||s>c)&&(e.gravitationForceX=-this.gravityConstant*i,e.gravitationForceY=-this.gravityConstant*a)):(c=t.getEstimatedSize()*this.compoundGravityRangeFactor,(o>c||s>c)&&(e.gravitationForceX=-this.gravityConstant*i*this.compoundGravityConstant,e.gravitationForceY=-this.gravityConstant*a*this.compoundGravityConstant))},l.prototype.isConverged=function(){var e,t=!1;return this.totalIterations>this.maxIterations/3&&(t=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),e=this.totalDisplacement<this.totalDisplacementThreshold,this.oldTotalDisplacement=this.totalDisplacement,e||t},l.prototype.animate=function(){this.animationDuringLayout&&!this.isSubLayout&&(this.notAnimatedIterations==this.animationPeriod?(this.update(),this.notAnimatedIterations=0):this.notAnimatedIterations++)},l.prototype.calcNoOfChildrenForAllNodes=function(){for(var e,t=this.graphManager.getAllNodes(),n=0;n<t.length;n++)e=t[n],e.noOfChildren=e.getNoOfChildren()},l.prototype.calcGrid=function(e){var t=0,n=0;t=parseInt(Math.ceil((e.getRight()-e.getLeft())/this.repulsionRange)),n=parseInt(Math.ceil((e.getBottom()-e.getTop())/this.repulsionRange));for(var r=Array(t),i=0;i<t;i++)r[i]=Array(n);for(var i=0;i<t;i++)for(var a=0;a<n;a++)r[i][a]=[];return r},l.prototype.addNodeToGrid=function(e,t,n){var r=0,i=0,a=0,o=0;r=parseInt(Math.floor((e.getRect().x-t)/this.repulsionRange)),i=parseInt(Math.floor((e.getRect().width+e.getRect().x-t)/this.repulsionRange)),a=parseInt(Math.floor((e.getRect().y-n)/this.repulsionRange)),o=parseInt(Math.floor((e.getRect().height+e.getRect().y-n)/this.repulsionRange));for(var s=r;s<=i;s++)for(var c=a;c<=o;c++)this.grid[s][c].push(e),e.setGridCoordinates(r,i,a,o)},l.prototype.updateGrid=function(){var e,t,n=this.getAllNodes();for(this.grid=this.calcGrid(this.graphManager.getRoot()),e=0;e<n.length;e++)t=n[e],this.addNodeToGrid(t,this.graphManager.getRoot().getLeft(),this.graphManager.getRoot().getTop())},l.prototype.calculateRepulsionForceOfANode=function(e,t,n,i){if(this.totalIterations%a.GRID_CALCULATION_CHECK_PERIOD==1&&n||i){var o=new Set;e.surrounding=[];for(var s,c=this.grid,l=e.startX-1;l<e.finishX+2;l++)for(var u=e.startY-1;u<e.finishY+2;u++)if(!(l<0||u<0||l>=c.length||u>=c[0].length)){for(var d=0;d<c[l][u].length;d++)if(s=c[l][u][d],e.getOwner()==s.getOwner()&&e!=s&&!t.has(s)&&!o.has(s)){var f=Math.abs(e.getCenterX()-s.getCenterX())-(e.getWidth()/2+s.getWidth()/2),p=Math.abs(e.getCenterY()-s.getCenterY())-(e.getHeight()/2+s.getHeight()/2);f<=this.repulsionRange&&p<=this.repulsionRange&&o.add(s)}}e.surrounding=[].concat(r(o))}for(l=0;l<e.surrounding.length;l++)this.calcRepulsionForce(e,e.surrounding[l])},l.prototype.calcRepulsionRange=function(){return 0},e.exports=l}),(function(e,t,n){var r=n(1),i=n(7);function a(e,t,n){r.call(this,e,t,n),this.idealLength=i.DEFAULT_EDGE_LENGTH}for(var o in a.prototype=Object.create(r.prototype),r)a[o]=r[o];e.exports=a}),(function(e,t,n){var r=n(3);function i(e,t,n,i){r.call(this,e,t,n,i),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0,this.startX=0,this.finishX=0,this.startY=0,this.finishY=0,this.surrounding=[]}for(var a in i.prototype=Object.create(r.prototype),r)i[a]=r[a];i.prototype.setGridCoordinates=function(e,t,n,r){this.startX=e,this.finishX=t,this.startY=n,this.finishY=r},e.exports=i}),(function(e,t,n){function r(e,t){this.width=0,this.height=0,e!==null&&t!==null&&(this.height=t,this.width=e)}r.prototype.getWidth=function(){return this.width},r.prototype.setWidth=function(e){this.width=e},r.prototype.getHeight=function(){return this.height},r.prototype.setHeight=function(e){this.height=e},e.exports=r}),(function(e,t,n){var r=n(14);function i(){this.map={},this.keys=[]}i.prototype.put=function(e,t){var n=r.createID(e);this.contains(n)||(this.map[n]=t,this.keys.push(e))},i.prototype.contains=function(e){return r.createID(e),this.map[e]!=null},i.prototype.get=function(e){var t=r.createID(e);return this.map[t]},i.prototype.keySet=function(){return this.keys},e.exports=i}),(function(e,t,n){var r=n(14);function i(){this.set={}}i.prototype.add=function(e){var t=r.createID(e);this.contains(t)||(this.set[t]=e)},i.prototype.remove=function(e){delete this.set[r.createID(e)]},i.prototype.clear=function(){this.set={}},i.prototype.contains=function(e){return this.set[r.createID(e)]==e},i.prototype.isEmpty=function(){return this.size()===0},i.prototype.size=function(){return Object.keys(this.set).length},i.prototype.addAllTo=function(e){for(var t=Object.keys(this.set),n=t.length,r=0;r<n;r++)e.push(this.set[t[r]])},i.prototype.size=function(){return Object.keys(this.set).length},i.prototype.addAll=function(e){for(var t=e.length,n=0;n<t;n++){var r=e[n];this.add(r)}},e.exports=i}),(function(e,t,n){var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}var a=n(11);e.exports=function(){function e(t,n){i(this,e),(n!==null||n!==void 0)&&(this.compareFunction=this._defaultCompareFunction);var r=void 0;r=t instanceof a?t.size():t.length,this._quicksort(t,0,r-1)}return r(e,[{key:`_quicksort`,value:function(e,t,n){if(t<n){var r=this._partition(e,t,n);this._quicksort(e,t,r),this._quicksort(e,r+1,n)}}},{key:`_partition`,value:function(e,t,n){for(var r=this._get(e,t),i=t,a=n;;){for(;this.compareFunction(r,this._get(e,a));)a--;for(;this.compareFunction(this._get(e,i),r);)i++;if(i<a)this._swap(e,i,a),i++,a--;else return a}}},{key:`_get`,value:function(e,t){return e instanceof a?e.get_object_at(t):e[t]}},{key:`_set`,value:function(e,t,n){e instanceof a?e.set_object_at(t,n):e[t]=n}},{key:`_swap`,value:function(e,t,n){var r=this._get(e,t);this._set(e,t,this._get(e,n)),this._set(e,n,r)}},{key:`_defaultCompareFunction`,value:function(e,t){return t>e}}]),e}()}),(function(e,t,n){var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}e.exports=function(){function e(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;i(this,e),this.sequence1=t,this.sequence2=n,this.match_score=r,this.mismatch_penalty=a,this.gap_penalty=o,this.iMax=t.length+1,this.jMax=n.length+1,this.grid=Array(this.iMax);for(var s=0;s<this.iMax;s++){this.grid[s]=Array(this.jMax);for(var c=0;c<this.jMax;c++)this.grid[s][c]=0}this.tracebackGrid=Array(this.iMax);for(var l=0;l<this.iMax;l++){this.tracebackGrid[l]=Array(this.jMax);for(var u=0;u<this.jMax;u++)this.tracebackGrid[l][u]=[null,null,null]}this.alignments=[],this.score=-1,this.computeGrids()}return r(e,[{key:`getScore`,value:function(){return this.score}},{key:`getAlignments`,value:function(){return this.alignments}},{key:`computeGrids`,value:function(){for(var e=1;e<this.jMax;e++)this.grid[0][e]=this.grid[0][e-1]+this.gap_penalty,this.tracebackGrid[0][e]=[!1,!1,!0];for(var t=1;t<this.iMax;t++)this.grid[t][0]=this.grid[t-1][0]+this.gap_penalty,this.tracebackGrid[t][0]=[!1,!0,!1];for(var n=1;n<this.iMax;n++)for(var r=1;r<this.jMax;r++){var i=void 0;i=this.sequence1[n-1]===this.sequence2[r-1]?this.grid[n-1][r-1]+this.match_score:this.grid[n-1][r-1]+this.mismatch_penalty;var a=this.grid[n-1][r]+this.gap_penalty,o=this.grid[n][r-1]+this.gap_penalty,s=[i,a,o],c=this.arrayAllMaxIndexes(s);this.grid[n][r]=s[c[0]],this.tracebackGrid[n][r]=[c.includes(0),c.includes(1),c.includes(2)]}this.score=this.grid[this.iMax-1][this.jMax-1]}},{key:`alignmentTraceback`,value:function(){var e=[];for(e.push({pos:[this.sequence1.length,this.sequence2.length],seq1:``,seq2:``});e[0];){var t=e[0],n=this.tracebackGrid[t.pos[0]][t.pos[1]];n[0]&&e.push({pos:[t.pos[0]-1,t.pos[1]-1],seq1:this.sequence1[t.pos[0]-1]+t.seq1,seq2:this.sequence2[t.pos[1]-1]+t.seq2}),n[1]&&e.push({pos:[t.pos[0]-1,t.pos[1]],seq1:this.sequence1[t.pos[0]-1]+t.seq1,seq2:`-`+t.seq2}),n[2]&&e.push({pos:[t.pos[0],t.pos[1]-1],seq1:`-`+t.seq1,seq2:this.sequence2[t.pos[1]-1]+t.seq2}),t.pos[0]===0&&t.pos[1]===0&&this.alignments.push({sequence1:t.seq1,sequence2:t.seq2}),e.shift()}return this.alignments}},{key:`getAllIndexes`,value:function(e,t){for(var n=[],r=-1;(r=e.indexOf(t,r+1))!==-1;)n.push(r);return n}},{key:`arrayAllMaxIndexes`,value:function(e){return this.getAllIndexes(e,Math.max.apply(null,e))}}]),e}()}),(function(e,t,n){var r=function(){};r.FDLayout=n(18),r.FDLayoutConstants=n(7),r.FDLayoutEdge=n(19),r.FDLayoutNode=n(20),r.DimensionD=n(21),r.HashMap=n(22),r.HashSet=n(23),r.IGeometry=n(8),r.IMath=n(9),r.Integer=n(10),r.Point=n(12),r.PointD=n(4),r.RandomSeed=n(16),r.RectangleD=n(13),r.Transform=n(17),r.UniqueIDGeneretor=n(14),r.Quicksort=n(24),r.LinkedList=n(11),r.LGraphObject=n(2),r.LGraph=n(5),r.LEdge=n(1),r.LGraphManager=n(6),r.LNode=n(3),r.Layout=n(15),r.LayoutConstants=n(0),r.NeedlemanWunsch=n(25),e.exports=r}),(function(e,t,n){function r(){this.listeners=[]}var i=r.prototype;i.addListener=function(e,t){this.listeners.push({event:e,callback:t})},i.removeListener=function(e,t){for(var n=this.listeners.length;n>=0;n--){var r=this.listeners[n];r.event===e&&r.callback===t&&this.listeners.splice(n,1)}},i.emit=function(e,t){for(var n=0;n<this.listeners.length;n++){var r=this.listeners[n];e===r.event&&r.callback(t)}},e.exports=r})])})})),s=e(((e,t,n)=>{(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r(o()):typeof define==`function`&&define.amd?define([`layout-base`],r):typeof e==`object`?e.coseBase=r(o()):n.coseBase=r(n.layoutBase)})(n,function(e){return(function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.i=function(e){return e},n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,`a`,t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p=``,n(n.s=7)})([(function(t,n){t.exports=e}),(function(e,t,n){var r=n(0).FDLayoutConstants;function i(){}for(var a in r)i[a]=r[a];i.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,i.DEFAULT_RADIAL_SEPARATION=r.DEFAULT_EDGE_LENGTH,i.DEFAULT_COMPONENT_SEPERATION=60,i.TILE=!0,i.TILING_PADDING_VERTICAL=10,i.TILING_PADDING_HORIZONTAL=10,i.TREE_REDUCTION_ON_INCREMENTAL=!1,e.exports=i}),(function(e,t,n){var r=n(0).FDLayoutEdge;function i(e,t,n){r.call(this,e,t,n)}for(var a in i.prototype=Object.create(r.prototype),r)i[a]=r[a];e.exports=i}),(function(e,t,n){var r=n(0).LGraph;function i(e,t,n){r.call(this,e,t,n)}for(var a in i.prototype=Object.create(r.prototype),r)i[a]=r[a];e.exports=i}),(function(e,t,n){var r=n(0).LGraphManager;function i(e){r.call(this,e)}for(var a in i.prototype=Object.create(r.prototype),r)i[a]=r[a];e.exports=i}),(function(e,t,n){var r=n(0).FDLayoutNode,i=n(0).IMath;function a(e,t,n,i){r.call(this,e,t,n,i)}for(var o in a.prototype=Object.create(r.prototype),r)a[o]=r[o];a.prototype.move=function(){var e=this.graphManager.getLayout();this.displacementX=e.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY=e.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren,Math.abs(this.displacementX)>e.coolingFactor*e.maxNodeDisplacement&&(this.displacementX=e.coolingFactor*e.maxNodeDisplacement*i.sign(this.displacementX)),Math.abs(this.displacementY)>e.coolingFactor*e.maxNodeDisplacement&&(this.displacementY=e.coolingFactor*e.maxNodeDisplacement*i.sign(this.displacementY)),this.child==null||this.child.getNodes().length==0?this.moveBy(this.displacementX,this.displacementY):this.propogateDisplacementToChildren(this.displacementX,this.displacementY),e.totalDisplacement+=Math.abs(this.displacementX)+Math.abs(this.displacementY),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0},a.prototype.propogateDisplacementToChildren=function(e,t){for(var n=this.getChild().getNodes(),r,i=0;i<n.length;i++)r=n[i],r.getChild()==null?(r.moveBy(e,t),r.displacementX+=e,r.displacementY+=t):r.propogateDisplacementToChildren(e,t)},a.prototype.setPred1=function(e){this.pred1=e},a.prototype.getPred1=function(){return pred1},a.prototype.getPred2=function(){return pred2},a.prototype.setNext=function(e){this.next=e},a.prototype.getNext=function(){return next},a.prototype.setProcessed=function(e){this.processed=e},a.prototype.isProcessed=function(){return processed},e.exports=a}),(function(e,t,n){var r=n(0).FDLayout,i=n(4),a=n(3),o=n(5),s=n(2),c=n(1),l=n(0).FDLayoutConstants,u=n(0).LayoutConstants,d=n(0).Point,f=n(0).PointD,p=n(0).Layout,m=n(0).Integer,h=n(0).IGeometry,g=n(0).LGraph,_=n(0).Transform;function v(){r.call(this),this.toBeTiled={}}for(var y in v.prototype=Object.create(r.prototype),r)v[y]=r[y];v.prototype.newGraphManager=function(){var e=new i(this);return this.graphManager=e,e},v.prototype.newGraph=function(e){return new a(null,this.graphManager,e)},v.prototype.newNode=function(e){return new o(this.graphManager,e)},v.prototype.newEdge=function(e){return new s(null,null,e)},v.prototype.initParameters=function(){r.prototype.initParameters.call(this,arguments),this.isSubLayout||(this.idealEdgeLength=c.DEFAULT_EDGE_LENGTH<10?10:c.DEFAULT_EDGE_LENGTH,this.useSmartIdealEdgeLengthCalculation=c.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.springConstant=l.DEFAULT_SPRING_STRENGTH,this.repulsionConstant=l.DEFAULT_REPULSION_STRENGTH,this.gravityConstant=l.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=l.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=l.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=l.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.prunedNodesAll=[],this.growTreeIterations=0,this.afterGrowthIterations=0,this.isTreeGrowing=!1,this.isGrowthFinished=!1,this.coolingCycle=0,this.maxCoolingCycle=this.maxIterations/l.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=l.CONVERGENCE_CHECK_PERIOD/this.maxIterations,this.coolingAdjuster=1)},v.prototype.layout=function(){return u.DEFAULT_CREATE_BENDS_AS_NEEDED&&(this.createBendpoints(),this.graphManager.resetAllEdges()),this.level=0,this.classicLayout()},v.prototype.classicLayout=function(){if(this.nodesWithGravity=this.calculateNodesToApplyGravitationTo(),this.graphManager.setAllNodesToApplyGravitation(this.nodesWithGravity),this.calcNoOfChildrenForAllNodes(),this.graphManager.calcLowestCommonAncestors(),this.graphManager.calcInclusionTreeDepths(),this.graphManager.getRoot().calcEstimatedSize(),this.calcIdealEdgeLengths(),!this.incremental){var e=this.getFlatForest();if(e.length>0)this.positionNodesRadially(e);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var t=new Set(this.getAllNodes()),n=this.nodesWithGravity.filter(function(e){return t.has(e)});this.graphManager.setAllNodesToApplyGravitation(n),this.positionNodesRandomly()}}else if(c.TREE_REDUCTION_ON_INCREMENTAL){this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var t=new Set(this.getAllNodes()),n=this.nodesWithGravity.filter(function(e){return t.has(e)});this.graphManager.setAllNodesToApplyGravitation(n)}return this.initSpringEmbedder(),this.runSpringEmbedder(),!0},v.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0}if(this.totalIterations%l.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged()){if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0}this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-this.coolingCycle**+(Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0){if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var e=new Set(this.getAllNodes()),t=this.nodesWithGravity.filter(function(t){return e.has(t)});this.graphManager.setAllNodesToApplyGravitation(t),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0}this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var n=!this.isTreeGrowing&&!this.isGrowthFinished,r=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(n,r),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},v.prototype.getPositionsData=function(){for(var e=this.graphManager.getAllNodes(),t={},n=0;n<e.length;n++){var r=e[n].rect,i=e[n].id;t[i]={id:i,x:r.getCenterX(),y:r.getCenterY(),w:r.width,h:r.height}}return t},v.prototype.runSpringEmbedder=function(){this.initialAnimationPeriod=25,this.animationPeriod=this.initialAnimationPeriod;var e=!1;if(l.ANIMATE===`during`)this.emit(`layoutstarted`);else{for(;!e;)e=this.tick();this.graphManager.updateBounds()}},v.prototype.calculateNodesToApplyGravitationTo=function(){for(var e=[],t,n=this.graphManager.getGraphs(),r=n.length,i=0;i<r;i++)t=n[i],t.updateConnected(),t.isConnected||(e=e.concat(t.getNodes()));return e},v.prototype.createBendpoints=function(){var e=[];e=e.concat(this.graphManager.getAllEdges());for(var t=new Set,n=0;n<e.length;n++){var r=e[n];if(!t.has(r)){var i=r.getSource(),a=r.getTarget();if(i==a)r.getBendpoints().push(new f),r.getBendpoints().push(new f),this.createDummyNodesForBendpoints(r),t.add(r);else{var o=[];if(o=o.concat(i.getEdgeListToNode(a)),o=o.concat(a.getEdgeListToNode(i)),!t.has(o[0])){if(o.length>1)for(var s=0;s<o.length;s++){var c=o[s];c.getBendpoints().push(new f),this.createDummyNodesForBendpoints(c)}o.forEach(function(e){t.add(e)})}}}if(t.size==e.length)break}},v.prototype.positionNodesRadially=function(e){for(var t=new d(0,0),n=Math.ceil(Math.sqrt(e.length)),r=0,i=0,a=0,o=new f(0,0),s=0;s<e.length;s++){s%n==0&&(a=0,i=r,s!=0&&(i+=c.DEFAULT_COMPONENT_SEPERATION),r=0);var l=e[s],m=p.findCenterOfTree(l);t.x=a,t.y=i,o=v.radialLayout(l,m,t),o.y>r&&(r=Math.floor(o.y)),a=Math.floor(o.x+c.DEFAULT_COMPONENT_SEPERATION)}this.transform(new f(u.WORLD_CENTER_X-o.x/2,u.WORLD_CENTER_Y-o.y/2))},v.radialLayout=function(e,t,n){var r=Math.max(this.maxDiagonalInTree(e),c.DEFAULT_RADIAL_SEPARATION);v.branchRadialLayout(t,null,0,359,0,r);var i=g.calculateBounds(e),a=new _;a.setDeviceOrgX(i.getMinX()),a.setDeviceOrgY(i.getMinY()),a.setWorldOrgX(n.x),a.setWorldOrgY(n.y);for(var o=0;o<e.length;o++)e[o].transform(a);var s=new f(i.getMaxX(),i.getMaxY());return a.inverseTransformPoint(s)},v.branchRadialLayout=function(e,t,n,r,i,a){var o=(r-n+1)/2;o<0&&(o+=180);var s=(o+n)%360*h.TWO_PI/360,c=i*Math.cos(s),l=i*Math.sin(s);e.setCenter(c,l);var u=[];u=u.concat(e.getEdges());var d=u.length;t!=null&&d--;for(var f=0,p=u.length,m,g=e.getEdgesBetween(t);g.length>1;){var _=g[0];g.splice(0,1);var y=u.indexOf(_);y>=0&&u.splice(y,1),p--,d--}m=t==null?0:(u.indexOf(g[0])+1)%p;for(var b=Math.abs(r-n)/d,x=m;f!=d;x=++x%p){var S=u[x].getOtherEnd(e);if(S!=t){var C=(n+f*b)%360,w=(C+b)%360;v.branchRadialLayout(S,e,C,w,i+a,a),f++}}},v.maxDiagonalInTree=function(e){for(var t=m.MIN_VALUE,n=0;n<e.length;n++){var r=e[n].getDiagonal();r>t&&(t=r)}return t},v.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},v.prototype.groupZeroDegreeMembers=function(){var e=this,t={};this.memberGroups={},this.idToDummyNode={};for(var n=[],r=this.graphManager.getAllNodes(),i=0;i<r.length;i++){var a=r[i],s=a.getParent();this.getNodeDegreeWithChildren(a)!==0||s.id!=null&&this.getToBeTiled(s)||n.push(a)}for(var i=0;i<n.length;i++){var a=n[i],c=a.getParent().id;t[c]===void 0&&(t[c]=[]),t[c]=t[c].concat(a)}Object.keys(t).forEach(function(n){if(t[n].length>1){var r=`DummyCompound_`+n;e.memberGroups[r]=t[n];var i=t[n][0].getParent(),a=new o(e.graphManager);a.id=r,a.paddingLeft=i.paddingLeft||0,a.paddingRight=i.paddingRight||0,a.paddingBottom=i.paddingBottom||0,a.paddingTop=i.paddingTop||0,e.idToDummyNode[r]=a;var s=e.getGraphManager().add(e.newGraph(),a),c=i.getChild();c.add(a);for(var l=0;l<t[n].length;l++){var u=t[n][l];c.remove(u),s.add(u)}}})},v.prototype.clearCompounds=function(){var e={},t={};this.performDFSOnCompounds();for(var n=0;n<this.compoundOrder.length;n++)t[this.compoundOrder[n].id]=this.compoundOrder[n],e[this.compoundOrder[n].id]=[].concat(this.compoundOrder[n].getChild().getNodes()),this.graphManager.remove(this.compoundOrder[n].getChild()),this.compoundOrder[n].child=null;this.graphManager.resetAllNodes(),this.tileCompoundMembers(e,t)},v.prototype.clearZeroDegreeMembers=function(){var e=this,t=this.tiledZeroDegreePack=[];Object.keys(this.memberGroups).forEach(function(n){var r=e.idToDummyNode[n];t[n]=e.tileNodes(e.memberGroups[n],r.paddingLeft+r.paddingRight),r.rect.width=t[n].width,r.rect.height=t[n].height})},v.prototype.repopulateCompounds=function(){for(var e=this.compoundOrder.length-1;e>=0;e--){var t=this.compoundOrder[e],n=t.id,r=t.paddingLeft,i=t.paddingTop;this.adjustLocations(this.tiledMemberPack[n],t.rect.x,t.rect.y,r,i)}},v.prototype.repopulateZeroDegreeMembers=function(){var e=this,t=this.tiledZeroDegreePack;Object.keys(t).forEach(function(n){var r=e.idToDummyNode[n],i=r.paddingLeft,a=r.paddingTop;e.adjustLocations(t[n],r.rect.x,r.rect.y,i,a)})},v.prototype.getToBeTiled=function(e){var t=e.id;if(this.toBeTiled[t]!=null)return this.toBeTiled[t];var n=e.getChild();if(n==null)return this.toBeTiled[t]=!1,!1;for(var r=n.getNodes(),i=0;i<r.length;i++){var a=r[i];if(this.getNodeDegree(a)>0)return this.toBeTiled[t]=!1,!1;if(a.getChild()==null)this.toBeTiled[a.id]=!1;else if(!this.getToBeTiled(a))return this.toBeTiled[t]=!1,!1}return this.toBeTiled[t]=!0,!0},v.prototype.getNodeDegree=function(e){e.id;for(var t=e.getEdges(),n=0,r=0;r<t.length;r++){var i=t[r];i.getSource().id!==i.getTarget().id&&(n+=1)}return n},v.prototype.getNodeDegreeWithChildren=function(e){var t=this.getNodeDegree(e);if(e.getChild()==null)return t;for(var n=e.getChild().getNodes(),r=0;r<n.length;r++){var i=n[r];t+=this.getNodeDegreeWithChildren(i)}return t},v.prototype.performDFSOnCompounds=function(){this.compoundOrder=[],this.fillCompexOrderByDFS(this.graphManager.getRoot().getNodes())},v.prototype.fillCompexOrderByDFS=function(e){for(var t=0;t<e.length;t++){var n=e[t];n.getChild()!=null&&this.fillCompexOrderByDFS(n.getChild().getNodes()),this.getToBeTiled(n)&&this.compoundOrder.push(n)}},v.prototype.adjustLocations=function(e,t,n,r,i){t+=r,n+=i;for(var a=t,o=0;o<e.rows.length;o++){var s=e.rows[o];t=a;for(var c=0,l=0;l<s.length;l++){var u=s[l];u.rect.x=t,u.rect.y=n,t+=u.rect.width+e.horizontalPadding,u.rect.height>c&&(c=u.rect.height)}n+=c+e.verticalPadding}},v.prototype.tileCompoundMembers=function(e,t){var n=this;this.tiledMemberPack=[],Object.keys(e).forEach(function(r){var i=t[r];n.tiledMemberPack[r]=n.tileNodes(e[r],i.paddingLeft+i.paddingRight),i.rect.width=n.tiledMemberPack[r].width,i.rect.height=n.tiledMemberPack[r].height})},v.prototype.tileNodes=function(e,t){var n={rows:[],rowWidth:[],rowHeight:[],width:0,height:t,verticalPadding:c.TILING_PADDING_VERTICAL,horizontalPadding:c.TILING_PADDING_HORIZONTAL};e.sort(function(e,t){return e.rect.width*e.rect.height>t.rect.width*t.rect.height?-1:+(e.rect.width*e.rect.height<t.rect.width*t.rect.height)});for(var r=0;r<e.length;r++){var i=e[r];n.rows.length==0?this.insertNodeToRow(n,i,0,t):this.canAddHorizontal(n,i.rect.width,i.rect.height)?this.insertNodeToRow(n,i,this.getShortestRowIndex(n),t):this.insertNodeToRow(n,i,n.rows.length,t),this.shiftToLastRow(n)}return n},v.prototype.insertNodeToRow=function(e,t,n,r){var i=r;n==e.rows.length&&(e.rows.push([]),e.rowWidth.push(i),e.rowHeight.push(0));var a=e.rowWidth[n]+t.rect.width;e.rows[n].length>0&&(a+=e.horizontalPadding),e.rowWidth[n]=a,e.width<a&&(e.width=a);var o=t.rect.height;n>0&&(o+=e.verticalPadding);var s=0;o>e.rowHeight[n]&&(s=e.rowHeight[n],e.rowHeight[n]=o,s=e.rowHeight[n]-s),e.height+=s,e.rows[n].push(t)},v.prototype.getShortestRowIndex=function(e){for(var t=-1,n=Number.MAX_VALUE,r=0;r<e.rows.length;r++)e.rowWidth[r]<n&&(t=r,n=e.rowWidth[r]);return t},v.prototype.getLongestRowIndex=function(e){for(var t=-1,n=Number.MIN_VALUE,r=0;r<e.rows.length;r++)e.rowWidth[r]>n&&(t=r,n=e.rowWidth[r]);return t},v.prototype.canAddHorizontal=function(e,t,n){var r=this.getShortestRowIndex(e);if(r<0)return!0;var i=e.rowWidth[r];if(i+e.horizontalPadding+t<=e.width)return!0;var a=0;e.rowHeight[r]<n&&r>0&&(a=n+e.verticalPadding-e.rowHeight[r]);var o=e.width-i>=t+e.horizontalPadding?(e.height+a)/(i+t+e.horizontalPadding):(e.height+a)/e.width;a=n+e.verticalPadding;var s=e.width<t?(e.height+a)/t:(e.height+a)/e.width;return s<1&&(s=1/s),o<1&&(o=1/o),o<s},v.prototype.shiftToLastRow=function(e){var t=this.getLongestRowIndex(e),n=e.rowWidth.length-1,r=e.rows[t],i=r[r.length-1],a=i.width+e.horizontalPadding;if(e.width-e.rowWidth[n]>a&&t!=n){r.splice(-1,1),e.rows[n].push(i),e.rowWidth[t]=e.rowWidth[t]-a,e.rowWidth[n]=e.rowWidth[n]+a,e.width=e.rowWidth[instance.getLongestRowIndex(e)];for(var o=Number.MIN_VALUE,s=0;s<r.length;s++)r[s].height>o&&(o=r[s].height);t>0&&(o+=e.verticalPadding);var c=e.rowHeight[t]+e.rowHeight[n];e.rowHeight[t]=o,e.rowHeight[n]<i.height+e.verticalPadding&&(e.rowHeight[n]=i.height+e.verticalPadding);var l=e.rowHeight[t]+e.rowHeight[n];e.height+=l-c,this.shiftToLastRow(e)}},v.prototype.tilingPreLayout=function(){c.TILE&&(this.groupZeroDegreeMembers(),this.clearCompounds(),this.clearZeroDegreeMembers())},v.prototype.tilingPostLayout=function(){c.TILE&&(this.repopulateZeroDegreeMembers(),this.repopulateCompounds())},v.prototype.reduceTrees=function(){for(var e=[],t=!0,n;t;){var r=this.graphManager.getAllNodes(),i=[];t=!1;for(var a=0;a<r.length;a++)n=r[a],n.getEdges().length==1&&!n.getEdges()[0].isInterGraph&&n.getChild()==null&&(i.push([n,n.getEdges()[0],n.getOwner()]),t=!0);if(t==1){for(var o=[],s=0;s<i.length;s++)i[s][0].getEdges().length==1&&(o.push(i[s]),i[s][0].getOwner().remove(i[s][0]));e.push(o),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()}}this.prunedNodesAll=e},v.prototype.growTree=function(e){for(var t=e[e.length-1],n,r=0;r<t.length;r++)n=t[r],this.findPlaceforPrunedNode(n),n[2].add(n[0]),n[2].add(n[1],n[1].source,n[1].target);e.splice(e.length-1,1),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()},v.prototype.findPlaceforPrunedNode=function(e){var t,n,r=e[0];n=r==e[1].source?e[1].target:e[1].source;var i=n.startX,a=n.finishX,o=n.startY,s=n.finishY,c=[0,0,0,0];if(o>0)for(var u=i;u<=a;u++)c[0]+=this.grid[u][o-1].length+this.grid[u][o].length-1;if(a<this.grid.length-1)for(var u=o;u<=s;u++)c[1]+=this.grid[a+1][u].length+this.grid[a][u].length-1;if(s<this.grid[0].length-1)for(var u=i;u<=a;u++)c[2]+=this.grid[u][s+1].length+this.grid[u][s].length-1;if(i>0)for(var u=o;u<=s;u++)c[3]+=this.grid[i-1][u].length+this.grid[i][u].length-1;for(var d=m.MAX_VALUE,f,p,h=0;h<c.length;h++)c[h]<d?(d=c[h],f=1,p=h):c[h]==d&&f++;if(f==3&&d==0)c[0]==0&&c[1]==0&&c[2]==0?t=1:c[0]==0&&c[1]==0&&c[3]==0?t=0:c[0]==0&&c[2]==0&&c[3]==0?t=3:c[1]==0&&c[2]==0&&c[3]==0&&(t=2);else if(f==2&&d==0){var g=Math.floor(Math.random()*2);t=c[0]==0&&c[1]==0?g==0?0:1:c[0]==0&&c[2]==0?g==0?0:2:c[0]==0&&c[3]==0?g==0?0:3:c[1]==0&&c[2]==0?g==0?1:2:c[1]==0&&c[3]==0?g==0?1:3:g==0?2:3}else if(f==4&&d==0){var g=Math.floor(Math.random()*4);t=g}else t=p;t==0?r.setCenter(n.getCenterX(),n.getCenterY()-n.getHeight()/2-l.DEFAULT_EDGE_LENGTH-r.getHeight()/2):t==1?r.setCenter(n.getCenterX()+n.getWidth()/2+l.DEFAULT_EDGE_LENGTH+r.getWidth()/2,n.getCenterY()):t==2?r.setCenter(n.getCenterX(),n.getCenterY()+n.getHeight()/2+l.DEFAULT_EDGE_LENGTH+r.getHeight()/2):r.setCenter(n.getCenterX()-n.getWidth()/2-l.DEFAULT_EDGE_LENGTH-r.getWidth()/2,n.getCenterY())},e.exports=v}),(function(e,t,n){var r={};r.layoutBase=n(0),r.CoSEConstants=n(1),r.CoSEEdge=n(2),r.CoSEGraph=n(3),r.CoSEGraphManager=n(4),r.CoSELayout=n(6),r.CoSENode=n(5),e.exports=r})])})})),c=t(e(((e,t,n)=>{(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r(s()):typeof define==`function`&&define.amd?define([`cose-base`],r):typeof e==`object`?e.cytoscapeCoseBilkent=r(s()):n.cytoscapeCoseBilkent=r(n.coseBase)})(n,function(e){return(function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.i=function(e){return e},n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,`a`,t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p=``,n(n.s=1)})([(function(t,n){t.exports=e}),(function(e,t,n){var r=n(0).layoutBase.LayoutConstants,i=n(0).layoutBase.FDLayoutConstants,a=n(0).CoSEConstants,o=n(0).CoSELayout,s=n(0).CoSENode,c=n(0).layoutBase.PointD,l=n(0).layoutBase.DimensionD,u={ready:function(){},stop:function(){},quality:`default`,nodeDimensionsIncludeLabels:!1,refresh:30,fit:!0,padding:10,randomize:!0,nodeRepulsion:4500,idealEdgeLength:50,edgeElasticity:.45,nestingFactor:.1,gravity:.25,numIter:2500,tile:!0,animate:`end`,animationDuration:500,tilingPaddingVertical:10,tilingPaddingHorizontal:10,gravityRangeCompound:1.5,gravityCompound:1,gravityRange:3.8,initialEnergyOnIncremental:.5};function d(e,t){var n={};for(var r in e)n[r]=e[r];for(var r in t)n[r]=t[r];return n}function f(e){this.options=d(u,e),p(this.options)}var p=function(e){e.nodeRepulsion!=null&&(a.DEFAULT_REPULSION_STRENGTH=i.DEFAULT_REPULSION_STRENGTH=e.nodeRepulsion),e.idealEdgeLength!=null&&(a.DEFAULT_EDGE_LENGTH=i.DEFAULT_EDGE_LENGTH=e.idealEdgeLength),e.edgeElasticity!=null&&(a.DEFAULT_SPRING_STRENGTH=i.DEFAULT_SPRING_STRENGTH=e.edgeElasticity),e.nestingFactor!=null&&(a.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=i.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=e.nestingFactor),e.gravity!=null&&(a.DEFAULT_GRAVITY_STRENGTH=i.DEFAULT_GRAVITY_STRENGTH=e.gravity),e.numIter!=null&&(a.MAX_ITERATIONS=i.MAX_ITERATIONS=e.numIter),e.gravityRange!=null&&(a.DEFAULT_GRAVITY_RANGE_FACTOR=i.DEFAULT_GRAVITY_RANGE_FACTOR=e.gravityRange),e.gravityCompound!=null&&(a.DEFAULT_COMPOUND_GRAVITY_STRENGTH=i.DEFAULT_COMPOUND_GRAVITY_STRENGTH=e.gravityCompound),e.gravityRangeCompound!=null&&(a.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=i.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=e.gravityRangeCompound),e.initialEnergyOnIncremental!=null&&(a.DEFAULT_COOLING_FACTOR_INCREMENTAL=i.DEFAULT_COOLING_FACTOR_INCREMENTAL=e.initialEnergyOnIncremental),r.QUALITY=e.quality==`draft`?0:e.quality==`proof`?2:1,a.NODE_DIMENSIONS_INCLUDE_LABELS=i.NODE_DIMENSIONS_INCLUDE_LABELS=r.NODE_DIMENSIONS_INCLUDE_LABELS=e.nodeDimensionsIncludeLabels,a.DEFAULT_INCREMENTAL=i.DEFAULT_INCREMENTAL=r.DEFAULT_INCREMENTAL=!e.randomize,a.ANIMATE=i.ANIMATE=r.ANIMATE=e.animate,a.TILE=e.tile,a.TILING_PADDING_VERTICAL=typeof e.tilingPaddingVertical==`function`?e.tilingPaddingVertical.call():e.tilingPaddingVertical,a.TILING_PADDING_HORIZONTAL=typeof e.tilingPaddingHorizontal==`function`?e.tilingPaddingHorizontal.call():e.tilingPaddingHorizontal};f.prototype.run=function(){var e,t,n=this.options;this.idToLNode={};var r=this.layout=new o,i=this;i.stopped=!1,this.cy=this.options.cy,this.cy.trigger({type:`layoutstart`,layout:this});var a=r.newGraphManager();this.gm=a;var s=this.options.eles.nodes(),c=this.options.eles.edges();this.root=a.addRoot(),this.processChildrenList(this.root,this.getTopMostNodes(s),r);for(var l=0;l<c.length;l++){var u=c[l],d=this.idToLNode[u.data(`source`)],f=this.idToLNode[u.data(`target`)];if(d!==f&&d.getEdgesBetween(f).length==0){var p=a.add(r.newEdge(),d,f);p.id=u.id()}}var m=function(e,t){typeof e==`number`&&(e=t);var n=e.data(`id`),r=i.idToLNode[n];return{x:r.getRect().getCenterX(),y:r.getRect().getCenterY()}},h=function a(){for(var o=function(){n.fit&&n.cy.fit(n.eles,n.padding),e||(e=!0,i.cy.one(`layoutready`,n.ready),i.cy.trigger({type:`layoutready`,layout:i}))},s=i.options.refresh,c,l=0;l<s&&!c;l++)c=i.stopped||i.layout.tick();if(c)r.checkLayoutSuccess()&&!r.isSubLayout&&r.doPostLayout(),r.tilingPostLayout&&r.tilingPostLayout(),r.isLayoutFinished=!0,i.options.eles.nodes().positions(m),o(),i.cy.one(`layoutstop`,i.options.stop),i.cy.trigger({type:`layoutstop`,layout:i}),t&&cancelAnimationFrame(t),e=!1;else{var u=i.layout.getPositionsData();n.eles.nodes().positions(function(e,t){if(typeof e==`number`&&(e=t),!e.isParent()){for(var n=e.id(),r=u[n],i=e;r==null&&(r=u[i.data(`parent`)]||u[`DummyCompound_`+i.data(`parent`)],u[n]=r,i=i.parent()[0],i!=null););return r==null?{x:e.position(`x`),y:e.position(`y`)}:{x:r.x,y:r.y}}}),o(),t=requestAnimationFrame(a)}};return r.addListener(`layoutstarted`,function(){i.options.animate===`during`&&(t=requestAnimationFrame(h))}),r.runLayout(),this.options.animate!==`during`&&(i.options.eles.nodes().not(`:parent`).layoutPositions(i,i.options,m),e=!1),this},f.prototype.getTopMostNodes=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].id()]=!0;return e.filter(function(e,n){typeof e==`number`&&(e=n);for(var r=e.parent()[0];r!=null;){if(t[r.id()])return!1;r=r.parent()[0]}return!0})},f.prototype.processChildrenList=function(e,t,n){for(var r=t.length,i=0;i<r;i++){var a=t[i],o=a.children(),u,d=a.layoutDimensions({nodeDimensionsIncludeLabels:this.options.nodeDimensionsIncludeLabels});if(u=a.outerWidth()!=null&&a.outerHeight()!=null?e.add(new s(n.graphManager,new c(a.position(`x`)-d.w/2,a.position(`y`)-d.h/2),new l(parseFloat(d.w),parseFloat(d.h)))):e.add(new s(this.graphManager)),u.id=a.data(`id`),u.paddingLeft=parseInt(a.css(`padding`)),u.paddingTop=parseInt(a.css(`padding`)),u.paddingRight=parseInt(a.css(`padding`)),u.paddingBottom=parseInt(a.css(`padding`)),this.options.nodeDimensionsIncludeLabels&&a.isParent()){var f=a.boundingBox({includeLabels:!0,includeNodes:!1}).w,p=a.boundingBox({includeLabels:!0,includeNodes:!1}).h,m=a.css(`text-halign`);u.labelWidth=f,u.labelHeight=p,u.labelPos=m}if(this.idToLNode[a.data(`id`)]=u,isNaN(u.rect.x)&&(u.rect.x=0),isNaN(u.rect.y)&&(u.rect.y=0),o!=null&&o.length>0){var h=n.getGraphManager().add(n.newGraph(),u);this.processChildrenList(h,o,n)}}},f.prototype.stop=function(){return this.stopped=!0,this};var m=function(e){e(`layout`,`cose-bilkent`,f)};typeof cytoscape<`u`&&m(cytoscape),e.exports=m})])})}))(),1);a.use(c.default);function l(e,t){e.forEach(e=>{let n={id:e.id,labelText:e.label,height:e.height,width:e.width,padding:e.padding??0};Object.keys(e).forEach(t=>{[`id`,`label`,`height`,`width`,`padding`,`x`,`y`].includes(t)||(n[t]=e[t])}),t.add({group:`nodes`,data:n,position:{x:e.x??0,y:e.y??0}})})}i(l,`addNodes`);function u(e,t){e.forEach(e=>{let n={id:e.id,source:e.start,target:e.end};Object.keys(e).forEach(t=>{[`id`,`start`,`end`].includes(t)||(n[t]=e[t])}),t.add({group:`edges`,data:n})})}i(u,`addEdges`);function d(e){return new Promise(t=>{let i=r(`body`).append(`div`).attr(`id`,`cy`).attr(`style`,`display:none`),o=a({container:document.getElementById(`cy`),style:[{selector:`edge`,style:{"curve-style":`bezier`}}]});i.remove(),l(e.nodes,o),u(e.edges,o),o.nodes().forEach(function(e){e.layoutDimensions=()=>{let t=e.data();return{w:t.width,h:t.height}}}),o.layout({name:`cose-bilkent`,quality:`proof`,styleEnabled:!1,animate:!1}).run(),o.ready(e=>{n.info(`Cytoscape ready`,e),t(o)})})}i(d,`createCytoscapeInstance`);function f(e){return e.nodes().map(e=>{let t=e.data(),n=e.position(),r={id:t.id,x:n.x,y:n.y};return Object.keys(t).forEach(e=>{e!==`id`&&(r[e]=t[e])}),r})}i(f,`extractPositionedNodes`);function p(e){return e.edges().map(e=>{let t=e.data(),n=e._private.rscratch,r={id:t.id,source:t.source,target:t.target,startX:n.startX,startY:n.startY,midX:n.midX,midY:n.midY,endX:n.endX,endY:n.endY};return Object.keys(t).forEach(e=>{[`id`,`source`,`target`].includes(e)||(r[e]=t[e])}),r})}i(p,`extractPositionedEdges`);async function m(e,t){n.debug(`Starting cose-bilkent layout algorithm`);try{h(e);let t=await d(e),r=f(t),i=p(t);return n.debug(`Layout completed: ${r.length} nodes, ${i.length} edges`),{nodes:r,edges:i}}catch(e){throw n.error(`Error in cose-bilkent layout algorithm:`,e),e}}i(m,`executeCoseBilkentLayout`);function h(e){if(!e)throw Error(`Layout data is required`);if(!e.config)throw Error(`Configuration is required in layout data`);if(!e.rootNode)throw Error(`Root node is required`);if(!e.nodes||!Array.isArray(e.nodes))throw Error(`No nodes found in layout data`);if(!Array.isArray(e.edges))throw Error(`Edges array is required in layout data`);return!0}i(h,`validateLayoutData`);var g=i(async(e,t,{insertCluster:n,insertEdge:r,insertEdgeLabel:i,insertMarkers:a,insertNode:o,log:s,positionEdgeLabel:c},{algorithm:l})=>{let u={},d={},f=t.select(`g`);a(f,e.markers,e.type,e.diagramId);let p=f.insert(`g`).attr(`class`,`subgraphs`),h=f.insert(`g`).attr(`class`,`edgePaths`),g=f.insert(`g`).attr(`class`,`edgeLabels`),_=f.insert(`g`).attr(`class`,`nodes`);s.debug(`Inserting nodes into DOM for dimension calculation`),await Promise.all(e.nodes.map(async t=>{if(t.isGroup){let e={...t};d[t.id]=e,u[t.id]=e,await n(p,t)}else{let n={...t};u[t.id]=n;let r=await o(_,t,{config:e.config,dir:e.direction||`TB`}),i=r.node().getBBox();n.width=i.width,n.height=i.height,n.domId=r,s.debug(`Node ${t.id} dimensions: ${i.width}x${i.height}`)}})),s.debug(`Running cose-bilkent layout algorithm`);let v=await m({...e,nodes:e.nodes.map(e=>{let t=u[e.id];return{...e,width:t.width,height:t.height}})},e.config);s.debug(`Positioning nodes based on layout results`),v.nodes.forEach(e=>{let t=u[e.id];t?.domId&&(t.domId.attr(`transform`,`translate(${e.x}, ${e.y})`),t.x=e.x,t.y=e.y,s.debug(`Positioned node ${t.id} at center (${e.x}, ${e.y})`))}),v.edges.forEach(t=>{let n=e.edges.find(e=>e.id===t.id);n&&(n.points=[{x:t.startX,y:t.startY},{x:t.midX,y:t.midY},{x:t.endX,y:t.endY}])}),s.debug(`Inserting and positioning edges`),await Promise.all(e.edges.map(async t=>{await i(g,t);let n=u[t.start??``],a=u[t.end??``];if(n&&a){let i=v.edges.find(e=>e.id===t.id);if(i){s.debug(`APA01 positionedEdge`,i);let o={...t};c(o,r(h,o,d,e.type,n,a,e.diagramId))}else{let i={...t,points:[{x:n.x||0,y:n.y||0},{x:a.x||0,y:a.y||0}]};c(i,r(h,i,d,e.type,n,a,e.diagramId))}}})),s.debug(`Cose-bilkent rendering completed`)},`render`);export{g as render};
@@ -0,0 +1 @@
1
+ var e={comments:{lineComment:`//`,blockComment:[`/*`,`*/`]},brackets:[[`{`,`}`],[`[`,`]`],[`(`,`)`]],autoClosingPairs:[{open:`[`,close:`]`},{open:`{`,close:`}`},{open:`(`,close:`)`},{open:`'`,close:`'`,notIn:[`string`,`comment`]},{open:`"`,close:`"`,notIn:[`string`]}],surroundingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`},{open:`'`,close:`'`}],folding:{markers:{start:RegExp(`^\\s*#pragma\\s+region\\b`),end:RegExp(`^\\s*#pragma\\s+endregion\\b`)}}},t={defaultToken:``,tokenPostfix:`.cpp`,brackets:[{token:`delimiter.curly`,open:`{`,close:`}`},{token:`delimiter.parenthesis`,open:`(`,close:`)`},{token:`delimiter.square`,open:`[`,close:`]`},{token:`delimiter.angle`,open:`<`,close:`>`}],keywords:`abstract.amp.array.auto.bool.break.case.catch.char.class.const.constexpr.const_cast.continue.cpu.decltype.default.delegate.delete.do.double.dynamic_cast.each.else.enum.event.explicit.export.extern.false.final.finally.float.for.friend.gcnew.generic.goto.if.in.initonly.inline.int.interface.interior_ptr.internal.literal.long.mutable.namespace.new.noexcept.nullptr.__nullptr.operator.override.partial.pascal.pin_ptr.private.property.protected.public.ref.register.reinterpret_cast.restrict.return.safe_cast.sealed.short.signed.sizeof.static.static_assert.static_cast.struct.switch.template.this.thread_local.throw.tile_static.true.try.typedef.typeid.typename.union.unsigned.using.virtual.void.volatile.wchar_t.where.while._asm._based._cdecl._declspec._fastcall._if_exists._if_not_exists._inline._multiple_inheritance._pascal._single_inheritance._stdcall._virtual_inheritance._w64.__abstract.__alignof.__asm.__assume.__based.__box.__builtin_alignof.__cdecl.__clrcall.__declspec.__delegate.__event.__except.__fastcall.__finally.__forceinline.__gc.__hook.__identifier.__if_exists.__if_not_exists.__inline.__int128.__int16.__int32.__int64.__int8.__interface.__leave.__m128.__m128d.__m128i.__m256.__m256d.__m256i.__m512.__m512d.__m512i.__m64.__multiple_inheritance.__newslot.__nogc.__noop.__nounwind.__novtordisp.__pascal.__pin.__pragma.__property.__ptr32.__ptr64.__raise.__restrict.__resume.__sealed.__single_inheritance.__stdcall.__super.__thiscall.__try.__try_cast.__typeof.__unaligned.__unhook.__uuidof.__value.__virtual_inheritance.__w64.__wchar_t`.split(`.`),operators:`=.>.<.!.~.?.:.==.<=.>=.!=.&&.||.++.--.+.-.*./.&.|.^.%.<<.>>.+=.-=.*=./=.&=.|=.^=.%=.<<=.>>=`.split(`.`),symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[0abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,integersuffix:/([uU](ll|LL|l|L)|(ll|LL|l|L)?[uU]?)/,floatsuffix:/[fFlL]?/,encoding:/u|u8|U|L/,tokenizer:{root:[[/@encoding?R\"(?:([^ ()\\\t]*))\(/,{token:`string.raw.begin`,next:`@raw.$1`}],[/[a-zA-Z_]\w*/,{cases:{"@keywords":{token:`keyword.$0`},"@default":`identifier`}}],[/^\s*#\s*include/,{token:`keyword.directive.include`,next:`@include`}],[/^\s*#\s*\w+/,`keyword.directive`],{include:`@whitespace`},[/\[\s*\[/,{token:`annotation`,next:`@annotation`}],[/[{}()<>\[\]]/,`@brackets`],[/@symbols/,{cases:{"@operators":`delimiter`,"@default":``}}],[/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/,`number.float`],[/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/,`number.float`],[/0[xX][0-9a-fA-F']*[0-9a-fA-F](@integersuffix)/,`number.hex`],[/0[0-7']*[0-7](@integersuffix)/,`number.octal`],[/0[bB][0-1']*[0-1](@integersuffix)/,`number.binary`],[/\d[\d']*\d(@integersuffix)/,`number`],[/\d(@integersuffix)/,`number`],[/[;,.]/,`delimiter`],[/"([^"\\]|\\.)*$/,`string.invalid`],[/"/,`string`,`@string`],[/'[^\\']'/,`string`],[/(')(@escapes)(')/,[`string`,`string.escape`,`string`]],[/'/,`string.invalid`]],whitespace:[[/[ \t\r\n]+/,``],[/\/\*\*(?!\/)/,`comment.doc`,`@doccomment`],[/\/\*/,`comment`,`@comment`],[/\/\/.*\\$/,`comment`,`@linecomment`],[/\/\/.*$/,`comment`]],comment:[[/[^\/*]+/,`comment`],[/\*\//,`comment`,`@pop`],[/[\/*]/,`comment`]],linecomment:[[/.*[^\\]$/,`comment`,`@pop`],[/[^]+/,`comment`]],doccomment:[[/[^\/*]+/,`comment.doc`],[/\*\//,`comment.doc`,`@pop`],[/[\/*]/,`comment.doc`]],string:[[/[^\\"]+/,`string`],[/@escapes/,`string.escape`],[/\\./,`string.escape.invalid`],[/"/,`string`,`@pop`]],raw:[[/[^)]+/,`string.raw`],[/\)$S2\"/,{token:`string.raw.end`,next:`@pop`}],[/\)/,`string.raw`]],annotation:[{include:`@whitespace`},[/using|alignas/,`keyword`],[/[a-zA-Z0-9_]+/,`annotation`],[/[,:]/,`delimiter`],[/[()]/,`@brackets`],[/\]\s*\]/,{token:`annotation`,next:`@pop`}]],include:[[/(\s*)(<)([^<>]*)(>)/,[``,`keyword.directive.include.begin`,`string.include.identifier`,{token:`keyword.directive.include.end`,next:`@pop`}]],[/(\s*)(")([^"]*)(")/,[``,`keyword.directive.include.begin`,`string.include.identifier`,{token:`keyword.directive.include.end`,next:`@pop`}]]]}};export{e as conf,t as language};
@@ -0,0 +1 @@
1
+ var e={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\#\$\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:`//`,blockComment:[`/*`,`*/`]},brackets:[[`{`,`}`],[`[`,`]`],[`(`,`)`]],autoClosingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`'`,close:`'`,notIn:[`string`,`comment`]},{open:`"`,close:`"`,notIn:[`string`,`comment`]}],surroundingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`<`,close:`>`},{open:`'`,close:`'`},{open:`"`,close:`"`}],folding:{markers:{start:RegExp(`^\\s*#region\\b`),end:RegExp(`^\\s*#endregion\\b`)}}},t={defaultToken:``,tokenPostfix:`.cs`,brackets:[{open:`{`,close:`}`,token:`delimiter.curly`},{open:`[`,close:`]`,token:`delimiter.square`},{open:`(`,close:`)`,token:`delimiter.parenthesis`},{open:`<`,close:`>`,token:`delimiter.angle`}],keywords:`extern.alias.using.bool.decimal.sbyte.byte.short.ushort.int.uint.long.ulong.char.float.double.object.dynamic.string.assembly.is.as.ref.out.this.base.new.typeof.void.checked.unchecked.default.delegate.var.const.if.else.switch.case.while.do.for.foreach.in.break.continue.goto.return.throw.try.catch.finally.lock.yield.from.let.where.join.on.equals.into.orderby.ascending.descending.select.group.by.namespace.partial.class.field.event.method.param.public.protected.internal.private.abstract.sealed.static.struct.readonly.volatile.virtual.override.params.get.set.add.remove.operator.true.false.implicit.explicit.interface.enum.null.async.await.fixed.sizeof.stackalloc.unsafe.nameof.when`.split(`.`),namespaceFollows:[`namespace`,`using`],parenFollows:[`if`,`for`,`while`,`switch`,`foreach`,`using`,`catch`,`when`],operators:`=.??.||.&&.|.^.&.==.!=.<=.>=.<<.+.-.*./.%.!.~.++.--.+=.-=.*=./=.%=.&=.|=.^=.<<=.>>=.>>.=>`.split(`.`),symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/\@?[a-zA-Z_]\w*/,{cases:{"@namespaceFollows":{token:`keyword.$0`,next:`@namespace`},"@keywords":{token:`keyword.$0`,next:`@qualified`},"@default":{token:`identifier`,next:`@qualified`}}}],{include:`@whitespace`},[/}/,{cases:{"$S2==interpolatedstring":{token:`string.quote`,next:`@pop`},"$S2==litinterpstring":{token:`string.quote`,next:`@pop`},"@default":`@brackets`}}],[/[{}()\[\]]/,`@brackets`],[/[<>](?!@symbols)/,`@brackets`],[/@symbols/,{cases:{"@operators":`delimiter`,"@default":``}}],[/[0-9_]*\.[0-9_]+([eE][\-+]?\d+)?[fFdD]?/,`number.float`],[/0[xX][0-9a-fA-F_]+/,`number.hex`],[/0[bB][01_]+/,`number.hex`],[/[0-9_]+/,`number`],[/[;,.]/,`delimiter`],[/"([^"\\]|\\.)*$/,`string.invalid`],[/"/,{token:`string.quote`,next:`@string`}],[/\$\@"/,{token:`string.quote`,next:`@litinterpstring`}],[/\@"/,{token:`string.quote`,next:`@litstring`}],[/\$"/,{token:`string.quote`,next:`@interpolatedstring`}],[/'[^\\']'/,`string`],[/(')(@escapes)(')/,[`string`,`string.escape`,`string`]],[/'/,`string.invalid`]],qualified:[[/[a-zA-Z_][\w]*/,{cases:{"@keywords":{token:`keyword.$0`},"@default":`identifier`}}],[/\./,`delimiter`],[``,``,`@pop`]],namespace:[{include:`@whitespace`},[/[A-Z]\w*/,`namespace`],[/[\.=]/,`delimiter`],[``,``,`@pop`]],comment:[[/[^\/*]+/,`comment`],[`\\*/`,`comment`,`@pop`],[/[\/*]/,`comment`]],string:[[/[^\\"]+/,`string`],[/@escapes/,`string.escape`],[/\\./,`string.escape.invalid`],[/"/,{token:`string.quote`,next:`@pop`}]],litstring:[[/[^"]+/,`string`],[/""/,`string.escape`],[/"/,{token:`string.quote`,next:`@pop`}]],litinterpstring:[[/[^"{]+/,`string`],[/""/,`string.escape`],[/{{/,`string.escape`],[/}}/,`string.escape`],[/{/,{token:`string.quote`,next:`root.litinterpstring`}],[/"/,{token:`string.quote`,next:`@pop`}]],interpolatedstring:[[/[^\\"{]+/,`string`],[/@escapes/,`string.escape`],[/\\./,`string.escape.invalid`],[/{{/,`string.escape`],[/}}/,`string.escape`],[/{/,{token:`string.quote`,next:`root.interpolatedstring`}],[/"/,{token:`string.quote`,next:`@pop`}]],whitespace:[[/^[ \t\v\f]*#((r)|(load))(?=\s)/,`directive.csx`],[/^[ \t\v\f]*#\w.*$/,`namespace.cpp`],[/[ \t\v\f\r\n]+/,``],[/\/\*/,`comment`,`@comment`],[/\/\/.*$/,`comment`]]}};export{e as conf,t as language};
@@ -0,0 +1 @@
1
+ var e={brackets:[],autoClosingPairs:[],surroundingPairs:[]},t={keywords:[],typeKeywords:[],tokenPostfix:`.csp`,operators:[],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/child-src/,`string.quote`],[/connect-src/,`string.quote`],[/default-src/,`string.quote`],[/font-src/,`string.quote`],[/frame-src/,`string.quote`],[/img-src/,`string.quote`],[/manifest-src/,`string.quote`],[/media-src/,`string.quote`],[/object-src/,`string.quote`],[/script-src/,`string.quote`],[/style-src/,`string.quote`],[/worker-src/,`string.quote`],[/base-uri/,`string.quote`],[/plugin-types/,`string.quote`],[/sandbox/,`string.quote`],[/disown-opener/,`string.quote`],[/form-action/,`string.quote`],[/frame-ancestors/,`string.quote`],[/report-uri/,`string.quote`],[/report-to/,`string.quote`],[/upgrade-insecure-requests/,`string.quote`],[/block-all-mixed-content/,`string.quote`],[/require-sri-for/,`string.quote`],[/reflected-xss/,`string.quote`],[/referrer/,`string.quote`],[/policy-uri/,`string.quote`],[/'self'/,`string.quote`],[/'unsafe-inline'/,`string.quote`],[/'unsafe-eval'/,`string.quote`],[/'strict-dynamic'/,`string.quote`],[/'unsafe-hashed-attributes'/,`string.quote`]]}};export{e as conf,t as language};
@@ -0,0 +1,3 @@
1
+ var e={wordPattern:/(#?-?\d*\.\d\w*%?)|((::|[@#.!:])?[\w-?]+%?)|::|[@#.!:]/g,comments:{blockComment:[`/*`,`*/`]},brackets:[[`{`,`}`],[`[`,`]`],[`(`,`)`]],autoClosingPairs:[{open:`{`,close:`}`,notIn:[`string`,`comment`]},{open:`[`,close:`]`,notIn:[`string`,`comment`]},{open:`(`,close:`)`,notIn:[`string`,`comment`]},{open:`"`,close:`"`,notIn:[`string`,`comment`]},{open:`'`,close:`'`,notIn:[`string`,`comment`]}],surroundingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`},{open:`'`,close:`'`}],folding:{markers:{start:RegExp(`^\\s*\\/\\*\\s*#region\\b\\s*(.*?)\\s*\\*\\/`),end:RegExp(`^\\s*\\/\\*\\s*#endregion\\b.*\\*\\/`)}}},t={defaultToken:``,tokenPostfix:`.css`,ws:`[
2
+ \r\f]*`,identifier:`-?-?([a-zA-Z]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))([\\w\\-]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))*`,brackets:[{open:`{`,close:`}`,token:`delimiter.bracket`},{open:`[`,close:`]`,token:`delimiter.bracket`},{open:`(`,close:`)`,token:`delimiter.parenthesis`},{open:`<`,close:`>`,token:`delimiter.angle`}],tokenizer:{root:[{include:`@selector`}],selector:[{include:`@comments`},{include:`@import`},{include:`@strings`},[`[@](keyframes|-webkit-keyframes|-moz-keyframes|-o-keyframes)`,{token:`keyword`,next:`@keyframedeclaration`}],[`[@](page|content|font-face|-moz-document)`,{token:`keyword`}],[`[@](charset|namespace)`,{token:`keyword`,next:`@declarationbody`}],[`(url-prefix)(\\()`,[`attribute.value`,{token:`delimiter.parenthesis`,next:`@urldeclaration`}]],[`(url)(\\()`,[`attribute.value`,{token:`delimiter.parenthesis`,next:`@urldeclaration`}]],{include:`@selectorname`},[`[\\*]`,`tag`],[`[>\\+,]`,`delimiter`],[`\\[`,{token:`delimiter.bracket`,next:`@selectorattribute`}],[`{`,{token:`delimiter.bracket`,next:`@selectorbody`}]],selectorbody:[{include:`@comments`},[`[*_]?@identifier@ws:(?=(\\s|\\d|[^{;}]*[;}]))`,`attribute.name`,`@rulevalue`],[`}`,{token:`delimiter.bracket`,next:`@pop`}]],selectorname:[[`(\\.|#(?=[^{])|%|(@identifier)|:)+`,`tag`]],selectorattribute:[{include:`@term`},[`]`,{token:`delimiter.bracket`,next:`@pop`}]],term:[{include:`@comments`},[`(url-prefix)(\\()`,[`attribute.value`,{token:`delimiter.parenthesis`,next:`@urldeclaration`}]],[`(url)(\\()`,[`attribute.value`,{token:`delimiter.parenthesis`,next:`@urldeclaration`}]],{include:`@functioninvocation`},{include:`@numbers`},{include:`@name`},{include:`@strings`},[`([<>=\\+\\-\\*\\/\\^\\|\\~,])`,`delimiter`],[`,`,`delimiter`]],rulevalue:[{include:`@comments`},{include:`@strings`},{include:`@term`},[`!important`,`keyword`],[`;`,`delimiter`,`@pop`],[`(?=})`,{token:``,next:`@pop`}]],warndebug:[[`[@](warn|debug)`,{token:`keyword`,next:`@declarationbody`}]],import:[[`[@](import)`,{token:`keyword`,next:`@declarationbody`}]],urldeclaration:[{include:`@strings`},[`[^)\r
3
+ ]+`,`string`],[`\\)`,{token:`delimiter.parenthesis`,next:`@pop`}]],parenthizedterm:[{include:`@term`},[`\\)`,{token:`delimiter.parenthesis`,next:`@pop`}]],declarationbody:[{include:`@term`},[`;`,`delimiter`,`@pop`],[`(?=})`,{token:``,next:`@pop`}]],comments:[[`\\/\\*`,`comment`,`@comment`],[`\\/\\/+.*`,`comment`]],comment:[[`\\*\\/`,`comment`,`@pop`],[/[^*/]+/,`comment`],[/./,`comment`]],name:[[`@identifier`,`attribute.value`]],numbers:[[`-?(\\d*\\.)?\\d+([eE][\\-+]?\\d+)?`,{token:`attribute.value.number`,next:`@units`}],[`#[0-9a-fA-F_]+(?!\\w)`,`attribute.value.hex`]],units:[[`(em|ex|ch|rem|fr|vmin|vmax|vw|vh|vm|cm|mm|in|px|pt|pc|deg|grad|rad|turn|s|ms|Hz|kHz|%)?`,`attribute.value.unit`,`@pop`]],keyframedeclaration:[[`@identifier`,`attribute.value`],[`{`,{token:`delimiter.bracket`,switchTo:`@keyframebody`}]],keyframebody:[{include:`@term`},[`{`,{token:`delimiter.bracket`,next:`@selectorbody`}],[`}`,{token:`delimiter.bracket`,next:`@pop`}]],functioninvocation:[[`@identifier\\(`,{token:`attribute.value`,next:`@functionarguments`}]],functionarguments:[[`\\$@identifier@ws:`,`attribute.name`],[`[,]`,`delimiter`],{include:`@term`},[`\\)`,{token:`attribute.value`,next:`@pop`}]],strings:[[`~?"`,{token:`string`,next:`@stringenddoublequote`}],[`~?'`,{token:`string`,next:`@stringendquote`}]],stringenddoublequote:[[`\\\\.`,`string`],[`"`,{token:`string`,next:`@pop`}],[/[^\\"]+/,`string`],[`.`,`string`]],stringendquote:[[`\\\\.`,`string`],[`'`,{token:`string`,next:`@pop`}],[/[^\\']+/,`string`],[`.`,`string`]]}};export{e as conf,t as language};
@@ -0,0 +1 @@
1
+ export{A as createCynefinServices}from"./mermaid-parser.core-kBQmxOUn.js";import"./chunk-NGNAAXSQ-Bxuf9Ivc.js";
@@ -0,0 +1,62 @@
1
+ import{t as e}from"./chunk-JWPE2WC7-DVXcaiue.js";import{a as t}from"./mermaid.core-BFkQwIYu.js";import{i as n}from"./chunk-6MUBBAK2-Cnx7dsB1.js";import{C as r,E as i,H as a,U as o,_ as s,a as c,c as l,f as u,q as d,v as f,y as p}from"./chunk-BG4553SI-QNE6A_Vg.js";import{n as m}from"./d3-selection-CtCbiJ-r.js";import{n as h}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{n as g}from"./mermaid-parser.core-kBQmxOUn.js";var _=h(()=>({domains:new Map,transitions:[]}),`createDefaultData`),v=_(),y={getDomains:h(()=>v.domains,`getDomains`),getTransitions:h(()=>v.transitions,`getTransitions`),setDomains:h(e=>{if(e)for(let t of e){let e=t.domain,n=(t.items??[]).map(e=>({label:e.label}));v.domains.set(e,{name:e,items:n})}},`setDomains`),setTransitions:h(e=>{e&&(v.transitions=e.filter(e=>e.from!==e.to||(m.warn(`Cynefin: self-loop transition on domain "${e.from}" is not meaningful and will be skipped.`),!1)).map(e=>({from:e.from,to:e.to,label:e.label||void 0})))},`setTransitions`),getConfig:h(()=>n({...u.cynefin,...p().cynefin}),`getConfig`),clear:h(()=>{c(),v=_()},`clear`),setAccTitle:o,getAccTitle:f,setDiagramTitle:d,getDiagramTitle:r,getAccDescription:s,setAccDescription:a},b=h(t=>{e(t,y),y.setDomains(t.domains),y.setTransitions(t.transitions)},`populate`),x={parse:h(async e=>{let t=await g(`cynefin`,e);m.debug(t),b(t)},`parse`)};function S(e){let t=e+1831565813|0;return t=Math.imul(t^t>>>15,t|1),t^=t+Math.imul(t^t>>>7,t|61),((t^t>>>14)>>>0)/4294967296}h(S,`seededRandom`);function C(e){let t=0;for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);t=(t<<5)-t+r,t|=0}return t}h(C,`hashString`);function w(e,t){return typeof e==`number`&&Number.isFinite(e)&&e!==0?e:C(t)}h(w,`resolveSeed`);function T(e,t,n,r){let i=e/2,a=r??e*.015,o=t/7,s=[];for(let e=0;e<=7;e++){let t=S(n+e*17)*a*2-a;s.push({x:i+t,y:e*o})}let c=`M${s[0].x},${s[0].y}`;for(let e=0;e<s.length-1;e++){let t=s[e],r=s[e+1],i=(t.y+r.y)/2,o=e%2==0?1:-1,l=a*1.5*o*S(n+e*31+7),u=t.x+l,d=i,f=r.x-l;c+=` C${u},${d} ${f},${i} ${r.x},${r.y}`}return c}h(T,`generateFoldPath`);function E(e,t,n,r){let i=t/2,a=r??t*.015,o=e/7,s=[];for(let e=0;e<=7;e++){let t=S(n+e*23)*a*2-a;s.push({x:e*o,y:i+t})}let c=`M${s[0].x},${s[0].y}`;for(let e=0;e<s.length-1;e++){let t=s[e],r=s[e+1],i=(t.x+r.x)/2,o=e%2==0?1:-1,l=a*1.5*o*S(n+e*37+11),u=i,d=t.y+l,f=i,p=r.y-l;c+=` C${u},${d} ${f},${p} ${r.x},${r.y}`}return c}h(E,`generateHorizontalBoundary`);function D(e,t){let n=e/2,r=t*.5,i=t,a=e*.03;return[`M${n},${r}`,`C${n+a},${r+(i-r)*.2}`,`${n-a*1.5},${r+(i-r)*.55}`,`${n+a*.5},${r+(i-r)*.75}`,`C${n-a},${r+(i-r)*.85}`,`${n+a*.3},${r+(i-r)*.95}`,`${n},${i}`].join(` `)}h(D,`generateCliffPath`);function O(e,t,n,r){return[`M${e-n},${t}`,`A${n},${r} 0 1,1 ${e+n},${t}`,`A${n},${r} 0 1,1 ${e-n},${t}`,`Z`].join(` `)}h(O,`generateConfusionPath`);var k={complex:{model:`Probe → Sense → Respond`,practice:`Emergent Practices`},complicated:{model:`Sense → Analyse → Respond`,practice:`Good Practices`},clear:{model:`Sense → Categorise → Respond`,practice:`Best Practices`},chaotic:{model:`Act → Sense → Respond`,practice:`Novel Practices`},confusion:{model:``,practice:`Disorder`}},A=h((e,t)=>{let n=e/2,r=t/2;return{complex:{cx:n/2,cy:r/2,x:0,y:0,w:n,h:r},complicated:{cx:n+n/2,cy:r/2,x:n,y:0,w:n,h:r},chaotic:{cx:n/2,cy:r+r/2,x:0,y:r,w:n,h:r},clear:{cx:n+n/2,cy:r+r/2,x:n,y:r,w:n,h:r},confusion:{cx:n,cy:r,x:n*.7,y:r*.7,w:n*.6,h:r*.6}}},`getDomainLayouts`),j=h(()=>{let e=i(),t=p();return n(e,t.themeVariables).cynefin},`getCynefinDomainColors`),M=3,N={draw:h((e,n,r,i)=>{let a=i.db,o=a.getDomains(),s=a.getTransitions(),c=a.getDiagramTitle(),u=a.getAccTitle(),d=a.getAccDescription(),f=a.getConfig(),p=j();m.debug(`Rendering Cynefin diagram`);let h=f.width,g=f.height,_=f.padding,v=f.showDomainDescriptions,y=f.boundaryAmplitude,b=h+_*2,x=g+_*2,S={complex:p.complexBg,complicated:p.complicatedBg,clear:p.clearBg,chaotic:p.chaoticBg,confusion:p.confusionBg},C=t(n);l(C,x,b,f.useMaxWidth??!0),C.attr(`viewBox`,`0 0 ${b} ${x}`),u&&C.append(`title`).text(u),d&&C.append(`desc`).text(d);let N=C.append(`g`).attr(`transform`,`translate(${_}, ${_})`),P=A(h,g),F=w(f.seed,n),I=N.append(`g`).attr(`class`,`cynefin-backgrounds`),L=[`complex`,`complicated`,`chaotic`,`clear`];for(let e of L){let t=P[e];I.append(`rect`).attr(`class`,`cynefinDomain`).attr(`x`,t.x).attr(`y`,t.y).attr(`width`,t.w).attr(`height`,t.h).attr(`fill`,S[e]).attr(`fill-opacity`,.4).attr(`stroke`,`none`)}let R=N.append(`g`).attr(`class`,`cynefin-boundaries`);R.append(`path`).attr(`class`,`cynefinBoundary`).attr(`d`,T(h,g,F,y)).attr(`fill`,`none`),R.append(`path`).attr(`class`,`cynefinBoundary`).attr(`d`,E(h,g,F+100,y)).attr(`fill`,`none`),R.append(`path`).attr(`class`,`cynefinCliff`).attr(`d`,D(h,g)).attr(`fill`,`none`);let z=h*.15,B=g*.15;N.append(`path`).attr(`class`,`cynefinConfusion`).attr(`d`,O(h/2,g/2,z,B)).attr(`fill`,S.confusion).attr(`fill-opacity`,.5);let V=N.append(`g`).attr(`class`,`cynefin-labels`);for(let e of L){let t=P[e];V.append(`text`).attr(`class`,`cynefinDomainLabel`).attr(`x`,t.cx).attr(`y`,v?t.cy-30:t.cy).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`middle`).text(e.charAt(0).toUpperCase()+e.slice(1))}if(V.append(`text`).attr(`class`,`cynefinDomainLabel`).attr(`x`,h/2).attr(`y`,v?g/2-10:g/2).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`middle`).text(`Confusion`),v){let e=N.append(`g`).attr(`class`,`cynefin-subtitles`);for(let t of L){let n=P[t],r=k[t];e.append(`text`).attr(`class`,`cynefinSubtitle`).attr(`x`,n.cx).attr(`y`,n.cy-10).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`middle`).text(r.model),e.append(`text`).attr(`class`,`cynefinSubtitle`).attr(`x`,n.cx).attr(`y`,n.cy+5).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`middle`).text(r.practice)}e.append(`text`).attr(`class`,`cynefinSubtitle`).attr(`x`,h/2).attr(`y`,g/2+8).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`middle`).text(k.confusion.practice)}let H=N.append(`g`).attr(`class`,`cynefin-items`);for(let e of[`complex`,`complicated`,`chaotic`,`clear`,`confusion`]){let t=o.get(e);if(!t||t.items.length===0)continue;let n=P[e],r=e===`confusion`,i=t.items,a=0;r&&t.items.length>M&&(a=t.items.length-M,i=t.items.slice(0,M));let s;if(r){let e=v?22:14;s=n.cy+e}else s=n.cy+(v?25:15);if([...i].forEach((t,r)=>{let i=s+r*30,a=H.append(`g`),o=a.append(`text`).attr(`class`,`cynefinItemText`).attr(`x`,0).attr(`y`,13).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`central`).text(t.label),c=t.label.length*7,l=o.node();if(l&&typeof l.getBBox==`function`){let e=l.getBBox();e.width>0&&(c=e.width)}let u=c+20,d=n.cx-u/2;a.attr(`transform`,`translate(${d}, ${i})`),a.insert(`rect`,`text`).attr(`class`,`cynefinItem`).attr(`x`,0).attr(`y`,0).attr(`width`,u).attr(`height`,26).attr(`rx`,4).attr(`ry`,4).attr(`fill`,S[e]).attr(`fill-opacity`,.95),o.attr(`x`,u/2).attr(`y`,13)}),a>0){let t=s+i.length*30,r=`+${a} more`,o=H.append(`g`),c=o.append(`text`).attr(`class`,`cynefinItemText`).attr(`x`,0).attr(`y`,13).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`central`).text(r),l=r.length*7,u=c.node();if(u&&typeof u.getBBox==`function`){let e=u.getBBox();e.width>0&&(l=e.width)}let d=l+20,f=n.cx-d/2;o.attr(`transform`,`translate(${f}, ${t})`),o.insert(`rect`,`text`).attr(`class`,`cynefinItemOverflow`).attr(`x`,0).attr(`y`,0).attr(`width`,d).attr(`height`,26).attr(`rx`,4).attr(`ry`,4).attr(`fill`,S[e]).attr(`fill-opacity`,.6),c.attr(`x`,d/2).attr(`y`,13)}}if(s.length>0){let e=C.select(`defs`).empty()?C.append(`defs`):C.select(`defs`),t=`cynefin-arrow-${n}`;e.append(`marker`).attr(`id`,t).attr(`viewBox`,`0 0 10 10`).attr(`refX`,9).attr(`refY`,5).attr(`markerWidth`,6).attr(`markerHeight`,6).attr(`orient`,`auto-start-reverse`).append(`path`).attr(`d`,`M 0 0 L 10 5 L 0 10 z`).attr(`class`,`cynefinArrowHead`);let r=N.append(`g`).attr(`class`,`cynefin-arrows`);s.forEach(e=>{let n=P[e.from],i=P[e.to];if(!n||!i)return;if(e.from===e.to){m.warn(`Cynefin renderer: skipping self-loop on domain "${e.from}"`);return}let a=n.cx,o=n.cy,s=i.cx,c=i.cy,l=(a+s)/2,u=(o+c)/2,d=s-a,f=c-o,p=Math.sqrt(d*d+f*f),h=p*.15,g=-f/p,_=d/p,v=l+g*h,y=u+_*h;r.append(`path`).attr(`class`,`cynefinArrowLine`).attr(`d`,`M${a},${o} Q${v},${y} ${s},${c}`).attr(`fill`,`none`).attr(`marker-end`,`url(#${t})`),e.label&&r.append(`text`).attr(`class`,`cynefinArrowLabel`).attr(`x`,v).attr(`y`,y-6).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`auto`).text(e.label)})}c&&N.append(`text`).attr(`class`,`cynefinTitle`).attr(`x`,h/2).attr(`y`,-_/2).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`middle`).text(c)},`draw`)},P=h(()=>{let e=i(),t=p();return n(e,t.themeVariables).cynefin},`getCynefinTheme`),F={parser:x,db:y,renderer:N,styles:h(()=>{let e=P();return`
2
+ .cynefinDomain {
3
+ stroke: none;
4
+ }
5
+ .cynefinDomainLabel {
6
+ font-size: ${e.domainFontSize}px;
7
+ font-weight: bold;
8
+ fill: ${e.labelColor};
9
+ }
10
+ .cynefinSubtitle {
11
+ font-size: ${e.itemFontSize-1}px;
12
+ fill: ${e.textColor};
13
+ font-style: italic;
14
+ }
15
+ .cynefinItem {
16
+ fill-opacity: 0.95;
17
+ stroke: ${e.boundaryColor};
18
+ stroke-width: 1;
19
+ }
20
+ .cynefinItemText {
21
+ font-size: ${e.itemFontSize}px;
22
+ fill: ${e.textColor};
23
+ }
24
+ .cynefinItemOverflow {
25
+ fill-opacity: 0.6;
26
+ stroke: ${e.boundaryColor};
27
+ stroke-width: 1;
28
+ stroke-dasharray: 3 2;
29
+ }
30
+ .cynefinBoundary {
31
+ stroke: ${e.boundaryColor};
32
+ stroke-width: ${e.boundaryWidth};
33
+ stroke-dasharray: 6 3;
34
+ }
35
+ .cynefinCliff {
36
+ stroke: ${e.cliffColor};
37
+ stroke-width: ${e.cliffWidth};
38
+ }
39
+ .cynefinConfusion {
40
+ stroke: ${e.boundaryColor};
41
+ stroke-width: 1.5;
42
+ stroke-dasharray: 4 2;
43
+ }
44
+ .cynefinArrowLine {
45
+ stroke: ${e.arrowColor};
46
+ stroke-width: ${e.arrowWidth};
47
+ fill: none;
48
+ }
49
+ .cynefinArrowHead {
50
+ fill: ${e.arrowColor};
51
+ stroke: none;
52
+ }
53
+ .cynefinArrowLabel {
54
+ font-size: ${e.itemFontSize-1}px;
55
+ fill: ${e.textColor};
56
+ }
57
+ .cynefinTitle {
58
+ font-size: ${e.domainFontSize+2}px;
59
+ font-weight: bold;
60
+ fill: ${e.labelColor};
61
+ }
62
+ `},`styles`)};export{F as diagram};
@@ -0,0 +1 @@
1
+ var e={comments:{lineComment:`//`,blockComment:[`/*`,`*/`]},brackets:[[`{`,`}`],[`[`,`]`],[`(`,`)`]],autoClosingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`},{open:`'`,close:`'`},{open:"`",close:"`"}],surroundingPairs:[{open:`{`,close:`}`},{open:`[`,close:`]`},{open:`(`,close:`)`},{open:`"`,close:`"`},{open:`'`,close:`'`},{open:"`",close:"`"}]},t={defaultToken:``,tokenPostfix:`.cypher`,ignoreCase:!0,brackets:[{open:`{`,close:`}`,token:`delimiter.curly`},{open:`[`,close:`]`,token:`delimiter.bracket`},{open:`(`,close:`)`,token:`delimiter.parenthesis`}],keywords:`ALL.AND.AS.ASC.ASCENDING.BY.CALL.CASE.CONTAINS.CREATE.DELETE.DESC.DESCENDING.DETACH.DISTINCT.ELSE.END.ENDS.EXISTS.IN.IS.LIMIT.MANDATORY.MATCH.MERGE.NOT.ON.ON.OPTIONAL.OR.ORDER.REMOVE.RETURN.SET.SKIP.STARTS.THEN.UNION.UNWIND.WHEN.WHERE.WITH.XOR.YIELD`.split(`.`),builtinLiterals:[`true`,`TRUE`,`false`,`FALSE`,`null`,`NULL`],builtinFunctions:`abs.acos.asin.atan.atan2.avg.ceil.coalesce.collect.cos.cot.count.degrees.e.endNode.exists.exp.floor.head.id.keys.labels.last.left.length.log.log10.lTrim.max.min.nodes.percentileCont.percentileDisc.pi.properties.radians.rand.range.relationships.replace.reverse.right.round.rTrim.sign.sin.size.split.sqrt.startNode.stDev.stDevP.substring.sum.tail.tan.timestamp.toBoolean.toFloat.toInteger.toLower.toString.toUpper.trim.type`.split(`.`),operators:[`+`,`-`,`*`,`/`,`%`,`^`,`=`,`<>`,`<`,`>`,`<=`,`>=`,`->`,`<-`,`-->`,`<--`],escapes:/\\(?:[tbnrf\\"'`]|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+/,octaldigits:/[0-7]+/,hexdigits:/[0-9a-fA-F]+/,tokenizer:{root:[[/[{}[\]()]/,`@brackets`],{include:`common`}],common:[{include:`@whitespace`},{include:`@numbers`},{include:`@strings`},[/:[a-zA-Z_][\w]*/,`type.identifier`],[/[a-zA-Z_][\w]*(?=\()/,{cases:{"@builtinFunctions":`predefined.function`}}],[/[a-zA-Z_$][\w$]*/,{cases:{"@keywords":`keyword`,"@builtinLiterals":`predefined.literal`,"@default":`identifier`}}],[/`/,`identifier.escape`,`@identifierBacktick`],[/[;,.:|]/,`delimiter`],[/[<>=%+\-*/^]+/,{cases:{"@operators":`delimiter`,"@default":``}}]],numbers:[[/-?(@digits)[eE](-?(@digits))?/,`number.float`],[/-?(@digits)?\.(@digits)([eE]-?(@digits))?/,`number.float`],[/-?0x(@hexdigits)/,`number.hex`],[/-?0(@octaldigits)/,`number.octal`],[/-?(@digits)/,`number`]],strings:[[/"([^"\\]|\\.)*$/,`string.invalid`],[/'([^'\\]|\\.)*$/,`string.invalid`],[/"/,`string`,`@stringDouble`],[/'/,`string`,`@stringSingle`]],whitespace:[[/[ \t\r\n]+/,`white`],[/\/\*/,`comment`,`@comment`],[/\/\/.*$/,`comment`]],comment:[[/\/\/.*/,`comment`],[/[^/*]+/,`comment`],[/\*\//,`comment`,`@pop`],[/[/*]/,`comment`]],stringDouble:[[/[^\\"]+/,`string`],[/@escapes/,`string`],[/\\./,`string.invalid`],[/"/,`string`,`@pop`]],stringSingle:[[/[^\\']+/,`string`],[/@escapes/,`string`],[/\\./,`string.invalid`],[/'/,`string`,`@pop`]],identifierBacktick:[[/[^\\`]+/,`identifier.escape`],[/@escapes/,`identifier.escape`],[/\\./,`identifier.escape.invalid`],[/`/,`identifier.escape`,`@pop`]]}};export{e as conf,t as language};