@baique/pi-web-sky 0.1.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 (604) hide show
  1. package/.next/BUILD_ID +1 -0
  2. package/.next/app-path-routes-manifest.json +48 -0
  3. package/.next/build-manifest.json +20 -0
  4. package/.next/diagnostics/build-diagnostics.json +6 -0
  5. package/.next/diagnostics/framework.json +1 -0
  6. package/.next/export-marker.json +6 -0
  7. package/.next/images-manifest.json +68 -0
  8. package/.next/next-minimal-server.js.nft.json +1 -0
  9. package/.next/next-server.js.nft.json +1 -0
  10. package/.next/package.json +1 -0
  11. package/.next/prerender-manifest.json +161 -0
  12. package/.next/react-loadable-manifest.json +2367 -0
  13. package/.next/required-server-files.js +369 -0
  14. package/.next/required-server-files.json +369 -0
  15. package/.next/routes-manifest.json +386 -0
  16. package/.next/server/app/_global-error/page.js +31 -0
  17. package/.next/server/app/_global-error/page.js.nft.json +1 -0
  18. package/.next/server/app/_global-error/page_client-reference-manifest.js +1 -0
  19. package/.next/server/app/_global-error.html +1 -0
  20. package/.next/server/app/_global-error.meta +27 -0
  21. package/.next/server/app/_global-error.rsc +14 -0
  22. package/.next/server/app/_global-error.segments/_full.segment.rsc +14 -0
  23. package/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +20 -0
  24. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -0
  25. package/.next/server/app/_not-found/page.js +1 -0
  26. package/.next/server/app/_not-found/page.js.nft.json +1 -0
  27. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -0
  28. package/.next/server/app/_not-found.html +1 -0
  29. package/.next/server/app/_not-found.meta +27 -0
  30. package/.next/server/app/_not-found.rsc +20 -0
  31. package/.next/server/app/_not-found.segments/_full.segment.rsc +20 -0
  32. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +24 -0
  33. package/.next/server/app/_not-found.segments/_tree.segment.rsc +5 -0
  34. package/.next/server/app/api/agent/[id]/bash-output/route.js +1 -0
  35. package/.next/server/app/api/agent/[id]/bash-output/route.js.nft.json +1 -0
  36. package/.next/server/app/api/agent/[id]/bash-output/route_client-reference-manifest.js +1 -0
  37. package/.next/server/app/api/agent/[id]/events/route.js +3 -0
  38. package/.next/server/app/api/agent/[id]/events/route.js.nft.json +1 -0
  39. package/.next/server/app/api/agent/[id]/events/route_client-reference-manifest.js +1 -0
  40. package/.next/server/app/api/agent/[id]/route.js +1 -0
  41. package/.next/server/app/api/agent/[id]/route.js.nft.json +1 -0
  42. package/.next/server/app/api/agent/[id]/route_client-reference-manifest.js +1 -0
  43. package/.next/server/app/api/agent/new/route.js +1 -0
  44. package/.next/server/app/api/agent/new/route.js.nft.json +1 -0
  45. package/.next/server/app/api/agent/new/route_client-reference-manifest.js +1 -0
  46. package/.next/server/app/api/agent/running/events/route.js +3 -0
  47. package/.next/server/app/api/agent/running/events/route.js.nft.json +1 -0
  48. package/.next/server/app/api/agent/running/events/route_client-reference-manifest.js +1 -0
  49. package/.next/server/app/api/agent/running/route.js +1 -0
  50. package/.next/server/app/api/agent/running/route.js.nft.json +1 -0
  51. package/.next/server/app/api/agent/running/route_client-reference-manifest.js +1 -0
  52. package/.next/server/app/api/app-update/route.js +1 -0
  53. package/.next/server/app/api/app-update/route.js.nft.json +1 -0
  54. package/.next/server/app/api/app-update/route_client-reference-manifest.js +1 -0
  55. package/.next/server/app/api/auth/all-providers/route.js +1 -0
  56. package/.next/server/app/api/auth/all-providers/route.js.nft.json +1 -0
  57. package/.next/server/app/api/auth/all-providers/route_client-reference-manifest.js +1 -0
  58. package/.next/server/app/api/auth/api-key/[provider]/route.js +1 -0
  59. package/.next/server/app/api/auth/api-key/[provider]/route.js.nft.json +1 -0
  60. package/.next/server/app/api/auth/api-key/[provider]/route_client-reference-manifest.js +1 -0
  61. package/.next/server/app/api/auth/login/[provider]/route.js +3 -0
  62. package/.next/server/app/api/auth/login/[provider]/route.js.nft.json +1 -0
  63. package/.next/server/app/api/auth/login/[provider]/route_client-reference-manifest.js +1 -0
  64. package/.next/server/app/api/auth/logout/[provider]/route.js +1 -0
  65. package/.next/server/app/api/auth/logout/[provider]/route.js.nft.json +1 -0
  66. package/.next/server/app/api/auth/logout/[provider]/route_client-reference-manifest.js +1 -0
  67. package/.next/server/app/api/auth/providers/route.js +1 -0
  68. package/.next/server/app/api/auth/providers/route.js.nft.json +1 -0
  69. package/.next/server/app/api/auth/providers/route_client-reference-manifest.js +1 -0
  70. package/.next/server/app/api/cwd/browse/route.js +1 -0
  71. package/.next/server/app/api/cwd/browse/route.js.nft.json +1 -0
  72. package/.next/server/app/api/cwd/browse/route_client-reference-manifest.js +1 -0
  73. package/.next/server/app/api/cwd/validate/route.js +1 -0
  74. package/.next/server/app/api/cwd/validate/route.js.nft.json +1 -0
  75. package/.next/server/app/api/cwd/validate/route_client-reference-manifest.js +1 -0
  76. package/.next/server/app/api/default-cwd/route.js +1 -0
  77. package/.next/server/app/api/default-cwd/route.js.nft.json +1 -0
  78. package/.next/server/app/api/default-cwd/route_client-reference-manifest.js +1 -0
  79. package/.next/server/app/api/file-index/route.js +1 -0
  80. package/.next/server/app/api/file-index/route.js.nft.json +1 -0
  81. package/.next/server/app/api/file-index/route_client-reference-manifest.js +1 -0
  82. package/.next/server/app/api/files/[...path]/route.js +49 -0
  83. package/.next/server/app/api/files/[...path]/route.js.nft.json +1 -0
  84. package/.next/server/app/api/files/[...path]/route_client-reference-manifest.js +1 -0
  85. package/.next/server/app/api/git/diff/route.js +6 -0
  86. package/.next/server/app/api/git/diff/route.js.nft.json +1 -0
  87. package/.next/server/app/api/git/diff/route_client-reference-manifest.js +1 -0
  88. package/.next/server/app/api/git/status/route.js +6 -0
  89. package/.next/server/app/api/git/status/route.js.nft.json +1 -0
  90. package/.next/server/app/api/git/status/route_client-reference-manifest.js +1 -0
  91. package/.next/server/app/api/home/route.js +1 -0
  92. package/.next/server/app/api/home/route.js.nft.json +1 -0
  93. package/.next/server/app/api/home/route_client-reference-manifest.js +1 -0
  94. package/.next/server/app/api/models/route.js +1 -0
  95. package/.next/server/app/api/models/route.js.nft.json +1 -0
  96. package/.next/server/app/api/models/route_client-reference-manifest.js +1 -0
  97. package/.next/server/app/api/models-config/catalog/route.js +1 -0
  98. package/.next/server/app/api/models-config/catalog/route.js.nft.json +1 -0
  99. package/.next/server/app/api/models-config/catalog/route_client-reference-manifest.js +1 -0
  100. package/.next/server/app/api/models-config/discover/route.js +1 -0
  101. package/.next/server/app/api/models-config/discover/route.js.nft.json +1 -0
  102. package/.next/server/app/api/models-config/discover/route_client-reference-manifest.js +1 -0
  103. package/.next/server/app/api/models-config/route.js +1 -0
  104. package/.next/server/app/api/models-config/route.js.nft.json +1 -0
  105. package/.next/server/app/api/models-config/route_client-reference-manifest.js +1 -0
  106. package/.next/server/app/api/models-config/test/route.js +1 -0
  107. package/.next/server/app/api/models-config/test/route.js.nft.json +1 -0
  108. package/.next/server/app/api/models-config/test/route_client-reference-manifest.js +1 -0
  109. package/.next/server/app/api/plugins/route.js +1 -0
  110. package/.next/server/app/api/plugins/route.js.nft.json +1 -0
  111. package/.next/server/app/api/plugins/route_client-reference-manifest.js +1 -0
  112. package/.next/server/app/api/project-trust/route.js +1 -0
  113. package/.next/server/app/api/project-trust/route.js.nft.json +1 -0
  114. package/.next/server/app/api/project-trust/route_client-reference-manifest.js +1 -0
  115. package/.next/server/app/api/sessions/[id]/auto-name/route.js +10 -0
  116. package/.next/server/app/api/sessions/[id]/auto-name/route.js.nft.json +1 -0
  117. package/.next/server/app/api/sessions/[id]/auto-name/route_client-reference-manifest.js +1 -0
  118. package/.next/server/app/api/sessions/[id]/context/route.js +1 -0
  119. package/.next/server/app/api/sessions/[id]/context/route.js.nft.json +1 -0
  120. package/.next/server/app/api/sessions/[id]/context/route_client-reference-manifest.js +1 -0
  121. package/.next/server/app/api/sessions/[id]/entries/[entryId]/thinking/route.js +1 -0
  122. package/.next/server/app/api/sessions/[id]/entries/[entryId]/thinking/route.js.nft.json +1 -0
  123. package/.next/server/app/api/sessions/[id]/entries/[entryId]/thinking/route_client-reference-manifest.js +1 -0
  124. package/.next/server/app/api/sessions/[id]/export/route.js +54 -0
  125. package/.next/server/app/api/sessions/[id]/export/route.js.nft.json +1 -0
  126. package/.next/server/app/api/sessions/[id]/export/route_client-reference-manifest.js +1 -0
  127. package/.next/server/app/api/sessions/[id]/route.js +1 -0
  128. package/.next/server/app/api/sessions/[id]/route.js.nft.json +1 -0
  129. package/.next/server/app/api/sessions/[id]/route_client-reference-manifest.js +1 -0
  130. package/.next/server/app/api/sessions/[id]/state/route.js +1 -0
  131. package/.next/server/app/api/sessions/[id]/state/route.js.nft.json +1 -0
  132. package/.next/server/app/api/sessions/[id]/state/route_client-reference-manifest.js +1 -0
  133. package/.next/server/app/api/sessions/[id]/todos/route.js +1 -0
  134. package/.next/server/app/api/sessions/[id]/todos/route.js.nft.json +1 -0
  135. package/.next/server/app/api/sessions/[id]/todos/route_client-reference-manifest.js +1 -0
  136. package/.next/server/app/api/sessions/route.js +1 -0
  137. package/.next/server/app/api/sessions/route.js.nft.json +1 -0
  138. package/.next/server/app/api/sessions/route_client-reference-manifest.js +1 -0
  139. package/.next/server/app/api/skills/check/route.js +1 -0
  140. package/.next/server/app/api/skills/check/route.js.nft.json +1 -0
  141. package/.next/server/app/api/skills/check/route_client-reference-manifest.js +1 -0
  142. package/.next/server/app/api/skills/install/route.js +1 -0
  143. package/.next/server/app/api/skills/install/route.js.nft.json +1 -0
  144. package/.next/server/app/api/skills/install/route_client-reference-manifest.js +1 -0
  145. package/.next/server/app/api/skills/route.js +6 -0
  146. package/.next/server/app/api/skills/route.js.nft.json +1 -0
  147. package/.next/server/app/api/skills/route_client-reference-manifest.js +1 -0
  148. package/.next/server/app/api/skills/search/route.js +1 -0
  149. package/.next/server/app/api/skills/search/route.js.nft.json +1 -0
  150. package/.next/server/app/api/skills/search/route_client-reference-manifest.js +1 -0
  151. package/.next/server/app/api/skills/update/route.js +1 -0
  152. package/.next/server/app/api/skills/update/route.js.nft.json +1 -0
  153. package/.next/server/app/api/skills/update/route_client-reference-manifest.js +1 -0
  154. package/.next/server/app/api/worktrees/route.js +1 -0
  155. package/.next/server/app/api/worktrees/route.js.nft.json +1 -0
  156. package/.next/server/app/api/worktrees/route_client-reference-manifest.js +1 -0
  157. package/.next/server/app/favicon.ico/route.js +1 -0
  158. package/.next/server/app/favicon.ico/route.js.nft.json +1 -0
  159. package/.next/server/app/favicon.ico.body +0 -0
  160. package/.next/server/app/favicon.ico.meta +1 -0
  161. package/.next/server/app/index.html +1 -0
  162. package/.next/server/app/index.meta +21 -0
  163. package/.next/server/app/index.rsc +21 -0
  164. package/.next/server/app/index.segments/__PAGE__.segment.rsc +24 -0
  165. package/.next/server/app/index.segments/_full.segment.rsc +21 -0
  166. package/.next/server/app/index.segments/_tree.segment.rsc +6 -0
  167. package/.next/server/app/manifest.webmanifest/route.js +17 -0
  168. package/.next/server/app/manifest.webmanifest/route.js.nft.json +1 -0
  169. package/.next/server/app/manifest.webmanifest/route_client-reference-manifest.js +1 -0
  170. package/.next/server/app/manifest.webmanifest.body +1 -0
  171. package/.next/server/app/manifest.webmanifest.meta +1 -0
  172. package/.next/server/app/page.js +93 -0
  173. package/.next/server/app/page.js.nft.json +1 -0
  174. package/.next/server/app/page_client-reference-manifest.js +1 -0
  175. package/.next/server/app-paths-manifest.json +48 -0
  176. package/.next/server/chunks/1094.js +160 -0
  177. package/.next/server/chunks/1515.js +1 -0
  178. package/.next/server/chunks/1555.js +1 -0
  179. package/.next/server/chunks/1601.js +24 -0
  180. package/.next/server/chunks/1625.js +1 -0
  181. package/.next/server/chunks/1800.js +1 -0
  182. package/.next/server/chunks/1813.js +1 -0
  183. package/.next/server/chunks/1860.js +1 -0
  184. package/.next/server/chunks/2075.js +23 -0
  185. package/.next/server/chunks/2106.js +1 -0
  186. package/.next/server/chunks/2169.js +36 -0
  187. package/.next/server/chunks/2190.js +1 -0
  188. package/.next/server/chunks/2325.js +82 -0
  189. package/.next/server/chunks/2349.js +1 -0
  190. package/.next/server/chunks/2408.js +1 -0
  191. package/.next/server/chunks/2430.js +193 -0
  192. package/.next/server/chunks/2452.js +93 -0
  193. package/.next/server/chunks/2744.js +1 -0
  194. package/.next/server/chunks/2903.js +1 -0
  195. package/.next/server/chunks/295.js +1 -0
  196. package/.next/server/chunks/3012.js +1 -0
  197. package/.next/server/chunks/3186.js +86 -0
  198. package/.next/server/chunks/3379.js +1 -0
  199. package/.next/server/chunks/3383.js +27 -0
  200. package/.next/server/chunks/3569.js +1 -0
  201. package/.next/server/chunks/3869.js +8 -0
  202. package/.next/server/chunks/3894.js +1 -0
  203. package/.next/server/chunks/4267.js +1 -0
  204. package/.next/server/chunks/4315.js +1 -0
  205. package/.next/server/chunks/4367.js +1 -0
  206. package/.next/server/chunks/4372.js +1 -0
  207. package/.next/server/chunks/4538.js +24 -0
  208. package/.next/server/chunks/4548.js +1 -0
  209. package/.next/server/chunks/4563.js +38 -0
  210. package/.next/server/chunks/4674.js +1 -0
  211. package/.next/server/chunks/4741.js +165 -0
  212. package/.next/server/chunks/4980.js +1 -0
  213. package/.next/server/chunks/5029.js +1 -0
  214. package/.next/server/chunks/5318.js +1 -0
  215. package/.next/server/chunks/5582.js +3 -0
  216. package/.next/server/chunks/5974.js +77 -0
  217. package/.next/server/chunks/6052.js +141 -0
  218. package/.next/server/chunks/611.js +1 -0
  219. package/.next/server/chunks/6253.js +104 -0
  220. package/.next/server/chunks/6337.js +1 -0
  221. package/.next/server/chunks/6366.js +80 -0
  222. package/.next/server/chunks/6429.js +1 -0
  223. package/.next/server/chunks/673.js +287 -0
  224. package/.next/server/chunks/6916.js +226 -0
  225. package/.next/server/chunks/703.js +1 -0
  226. package/.next/server/chunks/7233.js +1 -0
  227. package/.next/server/chunks/7265.js +215 -0
  228. package/.next/server/chunks/7307.js +1 -0
  229. package/.next/server/chunks/7561.js +1 -0
  230. package/.next/server/chunks/7710.js +1 -0
  231. package/.next/server/chunks/7744.js +64 -0
  232. package/.next/server/chunks/7790.js +1 -0
  233. package/.next/server/chunks/7799.js +34 -0
  234. package/.next/server/chunks/7872.js +1 -0
  235. package/.next/server/chunks/8106.js +1 -0
  236. package/.next/server/chunks/8294.js +1 -0
  237. package/.next/server/chunks/8333.js +79 -0
  238. package/.next/server/chunks/835.js +1 -0
  239. package/.next/server/chunks/8397.js +41 -0
  240. package/.next/server/chunks/8604.js +115 -0
  241. package/.next/server/chunks/8713.js +148 -0
  242. package/.next/server/chunks/8782.js +153 -0
  243. package/.next/server/chunks/8920.js +62 -0
  244. package/.next/server/chunks/922.js +5 -0
  245. package/.next/server/chunks/9280.js +255 -0
  246. package/.next/server/chunks/9486.js +1 -0
  247. package/.next/server/chunks/9509.js +1 -0
  248. package/.next/server/chunks/9510.js +90 -0
  249. package/.next/server/chunks/974.js +1 -0
  250. package/.next/server/functions-config-manifest.json +19 -0
  251. package/.next/server/instrumentation.js +1 -0
  252. package/.next/server/instrumentation.js.nft.json +1 -0
  253. package/.next/server/interception-route-rewrite-manifest.js +1 -0
  254. package/.next/server/middleware-build-manifest.js +1 -0
  255. package/.next/server/middleware-manifest.json +6 -0
  256. package/.next/server/middleware-react-loadable-manifest.js +1 -0
  257. package/.next/server/middleware.js +163 -0
  258. package/.next/server/middleware.js.nft.json +1 -0
  259. package/.next/server/next-font-manifest.js +1 -0
  260. package/.next/server/next-font-manifest.json +1 -0
  261. package/.next/server/pages/404.html +1 -0
  262. package/.next/server/pages/500.html +1 -0
  263. package/.next/server/pages-manifest.json +4 -0
  264. package/.next/server/prefetch-hints.json +39 -0
  265. package/.next/server/server-reference-manifest.js +1 -0
  266. package/.next/server/server-reference-manifest.json +1 -0
  267. package/.next/server/webpack-runtime.js +1 -0
  268. package/.next/static/chunks/103.23142a67b02246a8.js +215 -0
  269. package/.next/static/chunks/1032.12b382a9096ab2a4.js +1 -0
  270. package/.next/static/chunks/1063.775c442bdbeef08b.js +1 -0
  271. package/.next/static/chunks/1327.09252bb80616cc3a.js +1 -0
  272. package/.next/static/chunks/1708.d029f8776e4578de.js +1 -0
  273. package/.next/static/chunks/1781.866132cea8e77cd0.js +1 -0
  274. package/.next/static/chunks/1ba63609.b2ae90f43319a29e.js +153 -0
  275. package/.next/static/chunks/2081.47b6e9391094055f.js +1 -0
  276. package/.next/static/chunks/2181.ba21239d3ac39f81.js +1 -0
  277. package/.next/static/chunks/2258.4defa30121ef44a5.js +1 -0
  278. package/.next/static/chunks/2325.23caf22075e51aa5.js +1 -0
  279. package/.next/static/chunks/2356.523277bb8c6bf72a.js +23 -0
  280. package/.next/static/chunks/2418.b5d9e177e10a686e.js +1 -0
  281. package/.next/static/chunks/2480.cf27ca02e5b19761.js +24 -0
  282. package/.next/static/chunks/2539.c5a4f2fd8e421c70.js +41 -0
  283. package/.next/static/chunks/2619.9431a3f48da8eef4.js +1 -0
  284. package/.next/static/chunks/268.72794ee2773c2060.js +80 -0
  285. package/.next/static/chunks/2695.6f49435bae1e6f33.js +90 -0
  286. package/.next/static/chunks/2703.495a65ed14b2f094.js +36 -0
  287. package/.next/static/chunks/2821.934bcf60fbdc28c6.js +1 -0
  288. package/.next/static/chunks/3249-d891ccff87c62b6d.js +7 -0
  289. package/.next/static/chunks/3251.0dce7a0a0ff67235.js +1 -0
  290. package/.next/static/chunks/3308.be8762955e7155d1.js +73 -0
  291. package/.next/static/chunks/3336.a76f9485fe7cb762.js +1 -0
  292. package/.next/static/chunks/370.8e8f3cf8eb0e29dd.js +1 -0
  293. package/.next/static/chunks/3716.72bf4c9d7325debd.js +1 -0
  294. package/.next/static/chunks/3794-d29203733ca4633c.js +52 -0
  295. package/.next/static/chunks/398.ffa02af9062a3950.js +77 -0
  296. package/.next/static/chunks/3995.eca0f5bef1fc3ae5.js +38 -0
  297. package/.next/static/chunks/4004.74b9bcf5478b1663.js +160 -0
  298. package/.next/static/chunks/4202.8440832386f023c7.js +226 -0
  299. package/.next/static/chunks/4238.6f102dcbcf2ae339.js +141 -0
  300. package/.next/static/chunks/4405.7a19458960a1058e.js +287 -0
  301. package/.next/static/chunks/4424.fd0c93a807a333e1.js +1 -0
  302. package/.next/static/chunks/4866.d1060b4faf2ae1e2.js +1 -0
  303. package/.next/static/chunks/4970.8a63b4953b0e4946.js +1 -0
  304. package/.next/static/chunks/4bd1b696-8a4ab4fdf0ae305a.js +1 -0
  305. package/.next/static/chunks/5020.9ac8d0dc8390bb6e.js +1 -0
  306. package/.next/static/chunks/5137.f163e94c74a94d01.js +1 -0
  307. package/.next/static/chunks/5242.7b643c6b3394cac1.js +1 -0
  308. package/.next/static/chunks/5361.afc00ab2626bacbf.js +1 -0
  309. package/.next/static/chunks/5521.cfdf2cfc6db31407.js +1 -0
  310. package/.next/static/chunks/5526.ff46471041fdcb79.js +86 -0
  311. package/.next/static/chunks/5681.dd0e66b0de16e54b.js +27 -0
  312. package/.next/static/chunks/6121.eb9023b1cbc78ee2.js +1 -0
  313. package/.next/static/chunks/6161.4836cd7d031026bf.js +1 -0
  314. package/.next/static/chunks/6195.1153369f5f8b13a2.js +24 -0
  315. package/.next/static/chunks/6294.24f510c0c3e3714c.js +1 -0
  316. package/.next/static/chunks/6654.16f727522ec47f5a.js +1 -0
  317. package/.next/static/chunks/6794.f746d8fbbf248ecf.js +93 -0
  318. package/.next/static/chunks/7256.e07cf52d87d40252.js +1 -0
  319. package/.next/static/chunks/7268.236544be8e242c16.js +1 -0
  320. package/.next/static/chunks/7331.2add3c4e125a2dba.js +104 -0
  321. package/.next/static/chunks/7543.89f7b805ed0f2901.js +1 -0
  322. package/.next/static/chunks/8200.a36b9f8c983c6b9e.js +5 -0
  323. package/.next/static/chunks/869.7152372b662e31af.js +1 -0
  324. package/.next/static/chunks/8863.fa0320ea586efb3b.js +1 -0
  325. package/.next/static/chunks/8885.cf60cac98bf8b70c.js +79 -0
  326. package/.next/static/chunks/8901.e117d206a917bda0.js +1 -0
  327. package/.next/static/chunks/90542734.ae439f2382f58c51.js +1 -0
  328. package/.next/static/chunks/918.6a9bbe564e4a2d0f.js +115 -0
  329. package/.next/static/chunks/934.9006461bd0548660.js +1 -0
  330. package/.next/static/chunks/9522.c7c6e9c330f9ba6b.js +1 -0
  331. package/.next/static/chunks/9614.3221013d7f0af27f.js +64 -0
  332. package/.next/static/chunks/9698.4d09a99b9d99f3e5.js +148 -0
  333. package/.next/static/chunks/9705.40a82b97f214e28b.js +1 -0
  334. package/.next/static/chunks/973.88e865b52eff479a.js +8 -0
  335. package/.next/static/chunks/9764.2669775c6e107a01.js +62 -0
  336. package/.next/static/chunks/9793.4567af813117ad25.js +1 -0
  337. package/.next/static/chunks/993e5495.8797001fcfcf2889.js +62 -0
  338. package/.next/static/chunks/9974.9a0f79beca65e8c4.js +34 -0
  339. package/.next/static/chunks/app/_global-error/page-13f6e99c6fd8ad23.js +1 -0
  340. package/.next/static/chunks/app/_not-found/page-af4fe23994cb3d66.js +1 -0
  341. package/.next/static/chunks/app/api/agent/[id]/bash-output/route-13f6e99c6fd8ad23.js +1 -0
  342. package/.next/static/chunks/app/api/agent/[id]/events/route-13f6e99c6fd8ad23.js +1 -0
  343. package/.next/static/chunks/app/api/agent/[id]/route-13f6e99c6fd8ad23.js +1 -0
  344. package/.next/static/chunks/app/api/agent/new/route-13f6e99c6fd8ad23.js +1 -0
  345. package/.next/static/chunks/app/api/agent/running/events/route-13f6e99c6fd8ad23.js +1 -0
  346. package/.next/static/chunks/app/api/agent/running/route-13f6e99c6fd8ad23.js +1 -0
  347. package/.next/static/chunks/app/api/app-update/route-13f6e99c6fd8ad23.js +1 -0
  348. package/.next/static/chunks/app/api/auth/all-providers/route-13f6e99c6fd8ad23.js +1 -0
  349. package/.next/static/chunks/app/api/auth/api-key/[provider]/route-13f6e99c6fd8ad23.js +1 -0
  350. package/.next/static/chunks/app/api/auth/login/[provider]/route-13f6e99c6fd8ad23.js +1 -0
  351. package/.next/static/chunks/app/api/auth/logout/[provider]/route-13f6e99c6fd8ad23.js +1 -0
  352. package/.next/static/chunks/app/api/auth/providers/route-13f6e99c6fd8ad23.js +1 -0
  353. package/.next/static/chunks/app/api/cwd/browse/route-13f6e99c6fd8ad23.js +1 -0
  354. package/.next/static/chunks/app/api/cwd/validate/route-13f6e99c6fd8ad23.js +1 -0
  355. package/.next/static/chunks/app/api/default-cwd/route-13f6e99c6fd8ad23.js +1 -0
  356. package/.next/static/chunks/app/api/file-index/route-13f6e99c6fd8ad23.js +1 -0
  357. package/.next/static/chunks/app/api/files/[...path]/route-13f6e99c6fd8ad23.js +1 -0
  358. package/.next/static/chunks/app/api/git/diff/route-13f6e99c6fd8ad23.js +1 -0
  359. package/.next/static/chunks/app/api/git/status/route-13f6e99c6fd8ad23.js +1 -0
  360. package/.next/static/chunks/app/api/home/route-13f6e99c6fd8ad23.js +1 -0
  361. package/.next/static/chunks/app/api/models/route-13f6e99c6fd8ad23.js +1 -0
  362. package/.next/static/chunks/app/api/models-config/catalog/route-13f6e99c6fd8ad23.js +1 -0
  363. package/.next/static/chunks/app/api/models-config/discover/route-13f6e99c6fd8ad23.js +1 -0
  364. package/.next/static/chunks/app/api/models-config/route-13f6e99c6fd8ad23.js +1 -0
  365. package/.next/static/chunks/app/api/models-config/test/route-13f6e99c6fd8ad23.js +1 -0
  366. package/.next/static/chunks/app/api/plugins/route-13f6e99c6fd8ad23.js +1 -0
  367. package/.next/static/chunks/app/api/project-trust/route-13f6e99c6fd8ad23.js +1 -0
  368. package/.next/static/chunks/app/api/sessions/[id]/auto-name/route-13f6e99c6fd8ad23.js +1 -0
  369. package/.next/static/chunks/app/api/sessions/[id]/context/route-13f6e99c6fd8ad23.js +1 -0
  370. package/.next/static/chunks/app/api/sessions/[id]/entries/[entryId]/thinking/route-13f6e99c6fd8ad23.js +1 -0
  371. package/.next/static/chunks/app/api/sessions/[id]/export/route-13f6e99c6fd8ad23.js +1 -0
  372. package/.next/static/chunks/app/api/sessions/[id]/route-13f6e99c6fd8ad23.js +1 -0
  373. package/.next/static/chunks/app/api/sessions/[id]/state/route-13f6e99c6fd8ad23.js +1 -0
  374. package/.next/static/chunks/app/api/sessions/[id]/todos/route-13f6e99c6fd8ad23.js +1 -0
  375. package/.next/static/chunks/app/api/sessions/route-13f6e99c6fd8ad23.js +1 -0
  376. package/.next/static/chunks/app/api/skills/check/route-13f6e99c6fd8ad23.js +1 -0
  377. package/.next/static/chunks/app/api/skills/install/route-13f6e99c6fd8ad23.js +1 -0
  378. package/.next/static/chunks/app/api/skills/route-13f6e99c6fd8ad23.js +1 -0
  379. package/.next/static/chunks/app/api/skills/search/route-13f6e99c6fd8ad23.js +1 -0
  380. package/.next/static/chunks/app/api/skills/update/route-13f6e99c6fd8ad23.js +1 -0
  381. package/.next/static/chunks/app/api/worktrees/route-13f6e99c6fd8ad23.js +1 -0
  382. package/.next/static/chunks/app/layout-e13da2c32b9945e1.js +1 -0
  383. package/.next/static/chunks/app/manifest.webmanifest/route-13f6e99c6fd8ad23.js +1 -0
  384. package/.next/static/chunks/app/page-b99ee1f741615942.js +87 -0
  385. package/.next/static/chunks/bf2ff291.3a109dffc1fe84af.js +122 -0
  386. package/.next/static/chunks/d3ac728e-7964f816a1ca64e5.js +1 -0
  387. package/.next/static/chunks/da12927c.476aa688a637649c.js +82 -0
  388. package/.next/static/chunks/db9d41be.e72ce090a86a3691.js +1 -0
  389. package/.next/static/chunks/framework-b33a8f5d57cd8d87.js +1 -0
  390. package/.next/static/chunks/main-430d592a1108ec6e.js +5 -0
  391. package/.next/static/chunks/main-app-b3e8a8d15d83e1f0.js +1 -0
  392. package/.next/static/chunks/next/dist/client/components/builtin/app-error-13f6e99c6fd8ad23.js +1 -0
  393. package/.next/static/chunks/next/dist/client/components/builtin/forbidden-13f6e99c6fd8ad23.js +1 -0
  394. package/.next/static/chunks/next/dist/client/components/builtin/global-error-00a4badaccb388e6.js +1 -0
  395. package/.next/static/chunks/next/dist/client/components/builtin/not-found-13f6e99c6fd8ad23.js +1 -0
  396. package/.next/static/chunks/next/dist/client/components/builtin/unauthorized-13f6e99c6fd8ad23.js +1 -0
  397. package/.next/static/chunks/polyfills-42372ed130431b0a.js +1 -0
  398. package/.next/static/chunks/webpack-84e477ecef987e5c.js +1 -0
  399. package/.next/static/css/4cbedad236d913cb.css +1 -0
  400. package/.next/static/css/4f1c05a951b42320.css +1 -0
  401. package/.next/static/css/88714c00e109ce28.css +1 -0
  402. package/.next/static/media/15605e25b523335c-s.woff2 +0 -0
  403. package/.next/static/media/1a3dce5cfb5f7760-s.woff2 +0 -0
  404. package/.next/static/media/1cdd02902f937a18-s.woff2 +0 -0
  405. package/.next/static/media/4c4b3b30b6bcb2be-s.woff2 +0 -0
  406. package/.next/static/media/641a7b8a5800ee0e-s.woff2 +0 -0
  407. package/.next/static/media/7deddc85b7ffd1dc-s.p.woff2 +0 -0
  408. package/.next/static/media/KaTeX_AMS-Regular.1608a09b.woff +0 -0
  409. package/.next/static/media/KaTeX_AMS-Regular.4aafdb68.ttf +0 -0
  410. package/.next/static/media/KaTeX_AMS-Regular.a79f1c31.woff2 +0 -0
  411. package/.next/static/media/KaTeX_Caligraphic-Bold.b6770918.woff +0 -0
  412. package/.next/static/media/KaTeX_Caligraphic-Bold.cce5b8ec.ttf +0 -0
  413. package/.next/static/media/KaTeX_Caligraphic-Bold.ec17d132.woff2 +0 -0
  414. package/.next/static/media/KaTeX_Caligraphic-Regular.07ef19e7.ttf +0 -0
  415. package/.next/static/media/KaTeX_Caligraphic-Regular.55fac258.woff2 +0 -0
  416. package/.next/static/media/KaTeX_Caligraphic-Regular.dad44a7f.woff +0 -0
  417. package/.next/static/media/KaTeX_Fraktur-Bold.9f256b85.woff +0 -0
  418. package/.next/static/media/KaTeX_Fraktur-Bold.b18f59e1.ttf +0 -0
  419. package/.next/static/media/KaTeX_Fraktur-Bold.d42a5579.woff2 +0 -0
  420. package/.next/static/media/KaTeX_Fraktur-Regular.7c187121.woff +0 -0
  421. package/.next/static/media/KaTeX_Fraktur-Regular.d3c882a6.woff2 +0 -0
  422. package/.next/static/media/KaTeX_Fraktur-Regular.ed38e79f.ttf +0 -0
  423. package/.next/static/media/KaTeX_Main-Bold.b74a1a8b.ttf +0 -0
  424. package/.next/static/media/KaTeX_Main-Bold.c3fb5ac2.woff2 +0 -0
  425. package/.next/static/media/KaTeX_Main-Bold.d181c465.woff +0 -0
  426. package/.next/static/media/KaTeX_Main-BoldItalic.6f2bb1df.woff2 +0 -0
  427. package/.next/static/media/KaTeX_Main-BoldItalic.70d8b0a5.ttf +0 -0
  428. package/.next/static/media/KaTeX_Main-BoldItalic.e3f82f9d.woff +0 -0
  429. package/.next/static/media/KaTeX_Main-Italic.47373d1e.ttf +0 -0
  430. package/.next/static/media/KaTeX_Main-Italic.8916142b.woff2 +0 -0
  431. package/.next/static/media/KaTeX_Main-Italic.9024d815.woff +0 -0
  432. package/.next/static/media/KaTeX_Main-Regular.0462f03b.woff2 +0 -0
  433. package/.next/static/media/KaTeX_Main-Regular.7f51fe03.woff +0 -0
  434. package/.next/static/media/KaTeX_Main-Regular.b7f8fe9b.ttf +0 -0
  435. package/.next/static/media/KaTeX_Math-BoldItalic.572d331f.woff2 +0 -0
  436. package/.next/static/media/KaTeX_Math-BoldItalic.a879cf83.ttf +0 -0
  437. package/.next/static/media/KaTeX_Math-BoldItalic.f1035d8d.woff +0 -0
  438. package/.next/static/media/KaTeX_Math-Italic.5295ba48.woff +0 -0
  439. package/.next/static/media/KaTeX_Math-Italic.939bc644.ttf +0 -0
  440. package/.next/static/media/KaTeX_Math-Italic.f28c23ac.woff2 +0 -0
  441. package/.next/static/media/KaTeX_SansSerif-Bold.8c5b5494.woff2 +0 -0
  442. package/.next/static/media/KaTeX_SansSerif-Bold.94e1e8dc.ttf +0 -0
  443. package/.next/static/media/KaTeX_SansSerif-Bold.bf59d231.woff +0 -0
  444. package/.next/static/media/KaTeX_SansSerif-Italic.3b1e59b3.woff2 +0 -0
  445. package/.next/static/media/KaTeX_SansSerif-Italic.7c9bc82b.woff +0 -0
  446. package/.next/static/media/KaTeX_SansSerif-Italic.b4c20c84.ttf +0 -0
  447. package/.next/static/media/KaTeX_SansSerif-Regular.74048478.woff +0 -0
  448. package/.next/static/media/KaTeX_SansSerif-Regular.ba21ed5f.woff2 +0 -0
  449. package/.next/static/media/KaTeX_SansSerif-Regular.d4d7ba48.ttf +0 -0
  450. package/.next/static/media/KaTeX_Script-Regular.03e9641d.woff2 +0 -0
  451. package/.next/static/media/KaTeX_Script-Regular.07505710.woff +0 -0
  452. package/.next/static/media/KaTeX_Script-Regular.fe9cbbe1.ttf +0 -0
  453. package/.next/static/media/KaTeX_Size1-Regular.e1e279cb.woff +0 -0
  454. package/.next/static/media/KaTeX_Size1-Regular.eae34984.woff2 +0 -0
  455. package/.next/static/media/KaTeX_Size1-Regular.fabc004a.ttf +0 -0
  456. package/.next/static/media/KaTeX_Size2-Regular.57727022.woff +0 -0
  457. package/.next/static/media/KaTeX_Size2-Regular.5916a24f.woff2 +0 -0
  458. package/.next/static/media/KaTeX_Size2-Regular.d6b476ec.ttf +0 -0
  459. package/.next/static/media/KaTeX_Size3-Regular.9acaf01c.woff +0 -0
  460. package/.next/static/media/KaTeX_Size3-Regular.a144ef58.ttf +0 -0
  461. package/.next/static/media/KaTeX_Size3-Regular.b4230e7e.woff2 +0 -0
  462. package/.next/static/media/KaTeX_Size4-Regular.10d95fd3.woff2 +0 -0
  463. package/.next/static/media/KaTeX_Size4-Regular.7a996c9d.woff +0 -0
  464. package/.next/static/media/KaTeX_Size4-Regular.fbccdabe.ttf +0 -0
  465. package/.next/static/media/KaTeX_Typewriter-Regular.6258592b.woff +0 -0
  466. package/.next/static/media/KaTeX_Typewriter-Regular.a8709e36.woff2 +0 -0
  467. package/.next/static/media/KaTeX_Typewriter-Regular.d97aaf4a.ttf +0 -0
  468. package/.next/static/media/ec14413c594b3356-s.p.woff2 +0 -0
  469. package/.next/static/zL8d0yAvyIXQ8s3Kyfvnp/_buildManifest.js +1 -0
  470. package/.next/static/zL8d0yAvyIXQ8s3Kyfvnp/_ssgManifest.js +1 -0
  471. package/.next/trace +42 -0
  472. package/.next/trace-build +1 -0
  473. package/.next/types/app/api/agent/[id]/bash-output/route.ts +353 -0
  474. package/.next/types/app/api/agent/[id]/events/route.ts +353 -0
  475. package/.next/types/app/api/agent/[id]/route.ts +353 -0
  476. package/.next/types/app/api/agent/new/route.ts +353 -0
  477. package/.next/types/app/api/agent/running/events/route.ts +353 -0
  478. package/.next/types/app/api/agent/running/route.ts +353 -0
  479. package/.next/types/app/api/app-update/route.ts +353 -0
  480. package/.next/types/app/api/auth/all-providers/route.ts +353 -0
  481. package/.next/types/app/api/auth/api-key/[provider]/route.ts +353 -0
  482. package/.next/types/app/api/auth/login/[provider]/route.ts +353 -0
  483. package/.next/types/app/api/auth/logout/[provider]/route.ts +353 -0
  484. package/.next/types/app/api/auth/providers/route.ts +353 -0
  485. package/.next/types/app/api/cwd/browse/route.ts +353 -0
  486. package/.next/types/app/api/cwd/validate/route.ts +353 -0
  487. package/.next/types/app/api/default-cwd/route.ts +353 -0
  488. package/.next/types/app/api/file-index/route.ts +353 -0
  489. package/.next/types/app/api/files/[...path]/route.ts +353 -0
  490. package/.next/types/app/api/git/diff/route.ts +353 -0
  491. package/.next/types/app/api/git/status/route.ts +353 -0
  492. package/.next/types/app/api/home/route.ts +353 -0
  493. package/.next/types/app/api/models/route.ts +353 -0
  494. package/.next/types/app/api/models-config/catalog/route.ts +353 -0
  495. package/.next/types/app/api/models-config/discover/route.ts +353 -0
  496. package/.next/types/app/api/models-config/route.ts +353 -0
  497. package/.next/types/app/api/models-config/test/route.ts +353 -0
  498. package/.next/types/app/api/plugins/route.ts +353 -0
  499. package/.next/types/app/api/project-trust/route.ts +353 -0
  500. package/.next/types/app/api/sessions/[id]/auto-name/route.ts +353 -0
  501. package/.next/types/app/api/sessions/[id]/context/route.ts +353 -0
  502. package/.next/types/app/api/sessions/[id]/entries/[entryId]/thinking/route.ts +353 -0
  503. package/.next/types/app/api/sessions/[id]/export/route.ts +353 -0
  504. package/.next/types/app/api/sessions/[id]/route.ts +353 -0
  505. package/.next/types/app/api/sessions/[id]/state/route.ts +353 -0
  506. package/.next/types/app/api/sessions/[id]/todos/route.ts +353 -0
  507. package/.next/types/app/api/sessions/route.ts +353 -0
  508. package/.next/types/app/api/skills/check/route.ts +353 -0
  509. package/.next/types/app/api/skills/install/route.ts +353 -0
  510. package/.next/types/app/api/skills/route.ts +353 -0
  511. package/.next/types/app/api/skills/search/route.ts +353 -0
  512. package/.next/types/app/api/skills/update/route.ts +353 -0
  513. package/.next/types/app/api/worktrees/route.ts +353 -0
  514. package/.next/types/app/layout.ts +89 -0
  515. package/.next/types/app/page.ts +89 -0
  516. package/.next/types/cache-life.d.ts +146 -0
  517. package/.next/types/package.json +1 -0
  518. package/.next/types/root-params.d.ts +3 -0
  519. package/.next/types/routes.d.ts +113 -0
  520. package/.next/types/validator.ts +439 -0
  521. package/LICENSE +25 -0
  522. package/README.ja.md +132 -0
  523. package/README.md +168 -0
  524. package/README.ru.md +132 -0
  525. package/README.zh-CN.md +137 -0
  526. package/bin/node-version.js +35 -0
  527. package/bin/pi-web-options.js +43 -0
  528. package/bin/pi-web-sky.js +115 -0
  529. package/bin/pi-web.js +115 -0
  530. package/bin/process-lifecycle.js +46 -0
  531. package/next.config.ts +56 -0
  532. package/package.json +83 -0
  533. package/public/icons/apple-touch-icon.png +0 -0
  534. package/public/icons/catppuccin/LICENSE +22 -0
  535. package/public/icons/catppuccin/README.md +10 -0
  536. package/public/icons/catppuccin/latte/_file.svg +3 -0
  537. package/public/icons/catppuccin/latte/_folder.svg +3 -0
  538. package/public/icons/catppuccin/latte/_folder_open.svg +3 -0
  539. package/public/icons/catppuccin/latte/bash.svg +7 -0
  540. package/public/icons/catppuccin/latte/bun-lock.svg +8 -0
  541. package/public/icons/catppuccin/latte/config.svg +3 -0
  542. package/public/icons/catppuccin/latte/css.svg +6 -0
  543. package/public/icons/catppuccin/latte/database.svg +3 -0
  544. package/public/icons/catppuccin/latte/docker.svg +3 -0
  545. package/public/icons/catppuccin/latte/env.svg +3 -0
  546. package/public/icons/catppuccin/latte/eslint.svg +6 -0
  547. package/public/icons/catppuccin/latte/git.svg +6 -0
  548. package/public/icons/catppuccin/latte/go.svg +3 -0
  549. package/public/icons/catppuccin/latte/graphql.svg +3 -0
  550. package/public/icons/catppuccin/latte/html.svg +6 -0
  551. package/public/icons/catppuccin/latte/javascript-react.svg +8 -0
  552. package/public/icons/catppuccin/latte/javascript.svg +6 -0
  553. package/public/icons/catppuccin/latte/json.svg +3 -0
  554. package/public/icons/catppuccin/latte/lock.svg +3 -0
  555. package/public/icons/catppuccin/latte/markdown.svg +3 -0
  556. package/public/icons/catppuccin/latte/ms-word.svg +6 -0
  557. package/public/icons/catppuccin/latte/next.svg +6 -0
  558. package/public/icons/catppuccin/latte/npm-lock.svg +7 -0
  559. package/public/icons/catppuccin/latte/pdf.svg +3 -0
  560. package/public/icons/catppuccin/latte/python.svg +8 -0
  561. package/public/icons/catppuccin/latte/rust.svg +6 -0
  562. package/public/icons/catppuccin/latte/sass.svg +3 -0
  563. package/public/icons/catppuccin/latte/terraform.svg +3 -0
  564. package/public/icons/catppuccin/latte/toml.svg +3 -0
  565. package/public/icons/catppuccin/latte/typescript-react.svg +8 -0
  566. package/public/icons/catppuccin/latte/typescript.svg +6 -0
  567. package/public/icons/catppuccin/latte/yaml.svg +3 -0
  568. package/public/icons/catppuccin/mocha/_file.svg +3 -0
  569. package/public/icons/catppuccin/mocha/_folder.svg +3 -0
  570. package/public/icons/catppuccin/mocha/_folder_open.svg +3 -0
  571. package/public/icons/catppuccin/mocha/bash.svg +7 -0
  572. package/public/icons/catppuccin/mocha/bun-lock.svg +8 -0
  573. package/public/icons/catppuccin/mocha/config.svg +3 -0
  574. package/public/icons/catppuccin/mocha/css.svg +6 -0
  575. package/public/icons/catppuccin/mocha/database.svg +3 -0
  576. package/public/icons/catppuccin/mocha/docker.svg +3 -0
  577. package/public/icons/catppuccin/mocha/env.svg +3 -0
  578. package/public/icons/catppuccin/mocha/eslint.svg +6 -0
  579. package/public/icons/catppuccin/mocha/git.svg +6 -0
  580. package/public/icons/catppuccin/mocha/go.svg +3 -0
  581. package/public/icons/catppuccin/mocha/graphql.svg +3 -0
  582. package/public/icons/catppuccin/mocha/html.svg +6 -0
  583. package/public/icons/catppuccin/mocha/javascript-react.svg +8 -0
  584. package/public/icons/catppuccin/mocha/javascript.svg +6 -0
  585. package/public/icons/catppuccin/mocha/json.svg +3 -0
  586. package/public/icons/catppuccin/mocha/lock.svg +3 -0
  587. package/public/icons/catppuccin/mocha/markdown.svg +3 -0
  588. package/public/icons/catppuccin/mocha/ms-word.svg +6 -0
  589. package/public/icons/catppuccin/mocha/next.svg +6 -0
  590. package/public/icons/catppuccin/mocha/npm-lock.svg +7 -0
  591. package/public/icons/catppuccin/mocha/pdf.svg +3 -0
  592. package/public/icons/catppuccin/mocha/python.svg +8 -0
  593. package/public/icons/catppuccin/mocha/rust.svg +6 -0
  594. package/public/icons/catppuccin/mocha/sass.svg +3 -0
  595. package/public/icons/catppuccin/mocha/terraform.svg +3 -0
  596. package/public/icons/catppuccin/mocha/toml.svg +3 -0
  597. package/public/icons/catppuccin/mocha/typescript-react.svg +8 -0
  598. package/public/icons/catppuccin/mocha/typescript.svg +6 -0
  599. package/public/icons/catppuccin/mocha/yaml.svg +3 -0
  600. package/public/icons/icon-192.png +0 -0
  601. package/public/icons/icon-512.png +0 -0
  602. package/public/offline.html +83 -0
  603. package/public/sw.js +118 -0
  604. package/public/sw.test.mjs +86 -0
@@ -0,0 +1,36 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2703],{28904:function(t,e,i){var r;r=i(75142),t.exports=(()=>{"use strict";var t={658:t=>{t.exports=null!=Object.assign?Object.assign.bind(Object):function(t){for(var e=arguments.length,i=Array(e>1?e-1:0),r=1;r<e;r++)i[r-1]=arguments[r];return i.forEach(function(e){Object.keys(e).forEach(function(i){return t[i]=e[i]})}),t}},548:(t,e,i)=>{var r=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var i=[],r=!0,n=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);r=!0);}catch(t){n=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(n)throw o}}return i}(t,e);throw TypeError("Invalid attempt to destructure non-iterable instance")},n=i(140).layoutBase.LinkedList,o={};o.getTopMostNodes=function(t){for(var e={},i=0;i<t.length;i++)e[t[i].id()]=!0;return t.filter(function(t,i){"number"==typeof t&&(t=i);for(var r=t.parent()[0];null!=r;){if(e[r.id()])return!1;r=r.parent()[0]}return!0})},o.connectComponents=function(t,e,i,r){var o=new n,a=new Set,s=[],h=void 0,l=void 0,d=void 0,g=!1,c=1,u=[],f=[];do!function(){var r=t.collection();f.push(r);var n=i[0],p=t.collection();for(p.merge(n).merge(n.descendants().intersection(e)),s.push(n),p.forEach(function(t){o.push(t),a.add(t),r.merge(t)});0!=o.length;)!function(){n=o.shift();var l=t.collection();n.neighborhood().nodes().forEach(function(t){e.intersection(n.edgesWith(t)).length>0&&l.merge(t)});for(var d=0;d<l.length;d++){var g=l[d];null==(h=i.intersection(g.union(g.ancestors())))||a.has(h[0])||h.union(h.descendants()).forEach(function(t){o.push(t),a.add(t),r.merge(t),i.has(t)&&s.push(t)})}}();if(r.forEach(function(t){e.intersection(t.connectedEdges()).forEach(function(t){r.has(t.source())&&r.has(t.target())&&r.merge(t)})}),s.length==i.length&&(g=!0),!g||g&&c>1){d=(l=s[0]).connectedEdges().length,s.forEach(function(t){t.connectedEdges().length<d&&(d=t.connectedEdges().length,l=t)}),u.push(l.id());var m=t.collection();m.merge(s[0]),s.forEach(function(t){m.merge(t)}),s=[],i=i.difference(m),c++}}();while(!g);return r&&u.length>0&&r.set("dummy"+(r.size+1),u),f},o.relocateComponent=function(t,e,i){if(!i.fixedNodeConstraint){var n=1/0,o=-1/0,a=1/0,s=-1/0;if("draft"==i.quality){var h=!0,l=!1,d=void 0;try{for(var g,c=e.nodeIndexes[Symbol.iterator]();!(h=(g=c.next()).done);h=!0){var u=g.value,f=r(u,2),p=f[0],m=f[1],v=i.cy.getElementById(p);if(v){var y=v.boundingBox(),E=e.xCoords[m]-y.w/2,T=e.xCoords[m]+y.w/2,N=e.yCoords[m]-y.h/2,A=e.yCoords[m]+y.h/2;E<n&&(n=E),T>o&&(o=T),N<a&&(a=N),A>s&&(s=A)}}}catch(t){l=!0,d=t}finally{try{!h&&c.return&&c.return()}finally{if(l)throw d}}var w=t.x-(o+n)/2,L=t.y-(s+a)/2;e.xCoords=e.xCoords.map(function(t){return t+w}),e.yCoords=e.yCoords.map(function(t){return t+L})}else{Object.keys(e).forEach(function(t){var i=e[t],r=i.getRect().x,h=i.getRect().x+i.getRect().width,l=i.getRect().y,d=i.getRect().y+i.getRect().height;r<n&&(n=r),h>o&&(o=h),l<a&&(a=l),d>s&&(s=d)});var C=t.x-(o+n)/2,M=t.y-(s+a)/2;Object.keys(e).forEach(function(t){var i=e[t];i.setCenter(i.getCenterX()+C,i.getCenterY()+M)})}}},o.calcBoundingBox=function(t,e,i,r){for(var n=Number.MAX_SAFE_INTEGER,o=Number.MIN_SAFE_INTEGER,a=Number.MAX_SAFE_INTEGER,s=Number.MIN_SAFE_INTEGER,h=void 0,l=void 0,d=void 0,g=void 0,c=t.descendants().not(":parent"),u=c.length,f=0;f<u;f++){var p=c[f];h=e[r.get(p.id())]-p.width()/2,l=e[r.get(p.id())]+p.width()/2,d=i[r.get(p.id())]-p.height()/2,g=i[r.get(p.id())]+p.height()/2,n>h&&(n=h),o<l&&(o=l),a>d&&(a=d),s<g&&(s=g)}var m={};return m.topLeftX=n,m.topLeftY=a,m.width=o-n,m.height=s-a,m},o.calcParentsWithoutChildren=function(t,e){var i=t.collection();return e.nodes(":parent").forEach(function(t){var e=!1;t.children().forEach(function(t){"none"!=t.css("display")&&(e=!0)}),e||i.merge(t)}),i},t.exports=o},816:(t,e,i)=>{var r=i(548),n=i(140).CoSELayout,o=i(140).CoSENode,a=i(140).layoutBase.PointD,s=i(140).layoutBase.DimensionD,h=i(140).layoutBase.LayoutConstants,l=i(140).layoutBase.FDLayoutConstants,d=i(140).CoSEConstants;t.exports={coseLayout:function(t,e){var i=t.cy,g=t.eles,c=g.nodes(),u=g.edges(),f=void 0,p=void 0,m=void 0,v={};t.randomize&&(f=e.nodeIndexes,p=e.xCoords,m=e.yCoords);var y=function(t){return"function"==typeof t},E=function(t,e){return y(t)?t(e):t},T=r.calcParentsWithoutChildren(i,g);null!=t.nestingFactor&&(d.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=l.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=t.nestingFactor),null!=t.gravity&&(d.DEFAULT_GRAVITY_STRENGTH=l.DEFAULT_GRAVITY_STRENGTH=t.gravity),null!=t.numIter&&(d.MAX_ITERATIONS=l.MAX_ITERATIONS=t.numIter),null!=t.gravityRange&&(d.DEFAULT_GRAVITY_RANGE_FACTOR=l.DEFAULT_GRAVITY_RANGE_FACTOR=t.gravityRange),null!=t.gravityCompound&&(d.DEFAULT_COMPOUND_GRAVITY_STRENGTH=l.DEFAULT_COMPOUND_GRAVITY_STRENGTH=t.gravityCompound),null!=t.gravityRangeCompound&&(d.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=l.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=t.gravityRangeCompound),null!=t.initialEnergyOnIncremental&&(d.DEFAULT_COOLING_FACTOR_INCREMENTAL=l.DEFAULT_COOLING_FACTOR_INCREMENTAL=t.initialEnergyOnIncremental),null!=t.tilingCompareBy&&(d.TILING_COMPARE_BY=t.tilingCompareBy),"proof"==t.quality?h.QUALITY=2:h.QUALITY=0,d.NODE_DIMENSIONS_INCLUDE_LABELS=l.NODE_DIMENSIONS_INCLUDE_LABELS=h.NODE_DIMENSIONS_INCLUDE_LABELS=t.nodeDimensionsIncludeLabels,d.DEFAULT_INCREMENTAL=l.DEFAULT_INCREMENTAL=h.DEFAULT_INCREMENTAL=!t.randomize,d.ANIMATE=l.ANIMATE=h.ANIMATE=t.animate,d.TILE=t.tile,d.TILING_PADDING_VERTICAL="function"==typeof t.tilingPaddingVertical?t.tilingPaddingVertical.call():t.tilingPaddingVertical,d.TILING_PADDING_HORIZONTAL="function"==typeof t.tilingPaddingHorizontal?t.tilingPaddingHorizontal.call():t.tilingPaddingHorizontal,d.DEFAULT_INCREMENTAL=l.DEFAULT_INCREMENTAL=h.DEFAULT_INCREMENTAL=!0,d.PURE_INCREMENTAL=!t.randomize,h.DEFAULT_UNIFORM_LEAF_NODE_SIZES=t.uniformNodeDimensions,"transformed"==t.step&&(d.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,d.ENFORCE_CONSTRAINTS=!1,d.APPLY_LAYOUT=!1),"enforced"==t.step&&(d.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,d.ENFORCE_CONSTRAINTS=!0,d.APPLY_LAYOUT=!1),"cose"==t.step&&(d.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,d.ENFORCE_CONSTRAINTS=!1,d.APPLY_LAYOUT=!0),"all"==t.step&&(t.randomize?d.TRANSFORM_ON_CONSTRAINT_HANDLING=!0:d.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,d.ENFORCE_CONSTRAINTS=!0,d.APPLY_LAYOUT=!0),t.fixedNodeConstraint||t.alignmentConstraint||t.relativePlacementConstraint?d.TREE_REDUCTION_ON_INCREMENTAL=!1:d.TREE_REDUCTION_ON_INCREMENTAL=!0;var N=new n,A=N.newGraphManager();return!function t(e,i,n,h){for(var l=i.length,d=0;d<l;d++){var g=i[d],c=null;0==g.intersection(T).length&&(c=g.children());var u=void 0,y=g.layoutDimensions({nodeDimensionsIncludeLabels:h.nodeDimensionsIncludeLabels});if(null!=g.outerWidth()&&null!=g.outerHeight())if(h.randomize)if(g.isParent()){var N=r.calcBoundingBox(g,p,m,f);u=0==g.intersection(T).length?e.add(new o(n.graphManager,new a(N.topLeftX,N.topLeftY),new s(N.width,N.height))):e.add(new o(n.graphManager,new a(N.topLeftX,N.topLeftY),new s(parseFloat(y.w),parseFloat(y.h))))}else u=e.add(new o(n.graphManager,new a(p[f.get(g.id())]-y.w/2,m[f.get(g.id())]-y.h/2),new s(parseFloat(y.w),parseFloat(y.h))));else u=e.add(new o(n.graphManager,new a(g.position("x")-y.w/2,g.position("y")-y.h/2),new s(parseFloat(y.w),parseFloat(y.h))));else u=e.add(new o(this.graphManager));(u.id=g.data("id"),u.nodeRepulsion=E(h.nodeRepulsion,g),u.paddingLeft=parseInt(g.css("padding")),u.paddingTop=parseInt(g.css("padding")),u.paddingRight=parseInt(g.css("padding")),u.paddingBottom=parseInt(g.css("padding")),h.nodeDimensionsIncludeLabels&&(u.labelWidth=g.boundingBox({includeLabels:!0,includeNodes:!1,includeOverlays:!1}).w,u.labelHeight=g.boundingBox({includeLabels:!0,includeNodes:!1,includeOverlays:!1}).h,u.labelPosVertical=g.css("text-valign"),u.labelPosHorizontal=g.css("text-halign")),v[g.data("id")]=u,isNaN(u.rect.x)&&(u.rect.x=0),isNaN(u.rect.y)&&(u.rect.y=0),null!=c&&c.length>0)&&t(n.getGraphManager().add(n.newGraph(),u),c,n,h)}}(A.addRoot(),r.getTopMostNodes(c),N,t),!function(e,i,r){for(var n=0,o=0,a=0;a<r.length;a++){var s=r[a],h=v[s.data("source")],g=v[s.data("target")];if(h&&g&&h!==g&&0==h.getEdgesBetween(g).length){var c=i.add(e.newEdge(),h,g);c.id=s.id(),c.idealLength=E(t.idealEdgeLength,s),c.edgeElasticity=E(t.edgeElasticity,s),n+=c.idealLength,o++}}null!=t.idealEdgeLength&&(o>0?d.DEFAULT_EDGE_LENGTH=l.DEFAULT_EDGE_LENGTH=n/o:y(t.idealEdgeLength)?d.DEFAULT_EDGE_LENGTH=l.DEFAULT_EDGE_LENGTH=50:d.DEFAULT_EDGE_LENGTH=l.DEFAULT_EDGE_LENGTH=t.idealEdgeLength,d.MIN_REPULSION_DIST=l.MIN_REPULSION_DIST=l.DEFAULT_EDGE_LENGTH/10,d.DEFAULT_RADIAL_SEPARATION=l.DEFAULT_EDGE_LENGTH)}(N,A,u),t.fixedNodeConstraint&&(N.constraints.fixedNodeConstraint=t.fixedNodeConstraint),t.alignmentConstraint&&(N.constraints.alignmentConstraint=t.alignmentConstraint),t.relativePlacementConstraint&&(N.constraints.relativePlacementConstraint=t.relativePlacementConstraint),N.runLayout(),v}}},212:(t,e,i)=>{var r=function(){function t(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,i,r){return i&&t(e.prototype,i),r&&t(e,r),e}}(),n=i(658),o=i(548),a=i(657).spectralLayout,s=i(816).coseLayout,h=Object.freeze({quality:"default",randomize:!0,animate:!0,animationDuration:1e3,animationEasing:void 0,fit:!0,padding:30,nodeDimensionsIncludeLabels:!1,uniformNodeDimensions:!1,packComponents:!0,step:"all",samplingType:!0,sampleSize:25,nodeSeparation:75,piTol:1e-7,nodeRepulsion:function(t){return 4500},idealEdgeLength:function(t){return 50},edgeElasticity:function(t){return .45},nestingFactor:.1,gravity:.25,numIter:2500,tile:!0,tilingCompareBy:void 0,tilingPaddingVertical:10,tilingPaddingHorizontal:10,gravityRangeCompound:1.5,gravityCompound:1,gravityRange:3.8,initialEnergyOnIncremental:.3,fixedNodeConstraint:void 0,alignmentConstraint:void 0,relativePlacementConstraint:void 0,ready:function(){},stop:function(){}});t.exports=function(){function t(e){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");this.options=n({},h,e)}return r(t,[{key:"run",value:function(){var t=this.options,e=t.cy,i=t.eles,r=[],n=[],h=void 0,l=[];t.fixedNodeConstraint&&(!Array.isArray(t.fixedNodeConstraint)||0==t.fixedNodeConstraint.length)&&(t.fixedNodeConstraint=void 0),t.alignmentConstraint&&(t.alignmentConstraint.vertical&&(!Array.isArray(t.alignmentConstraint.vertical)||0==t.alignmentConstraint.vertical.length)&&(t.alignmentConstraint.vertical=void 0),t.alignmentConstraint.horizontal&&(!Array.isArray(t.alignmentConstraint.horizontal)||0==t.alignmentConstraint.horizontal.length)&&(t.alignmentConstraint.horizontal=void 0)),t.relativePlacementConstraint&&(!Array.isArray(t.relativePlacementConstraint)||0==t.relativePlacementConstraint.length)&&(t.relativePlacementConstraint=void 0),(t.fixedNodeConstraint||t.alignmentConstraint||t.relativePlacementConstraint)&&(t.tile=!1,t.packComponents=!1);var d=void 0,g=!1;if(e.layoutUtilities&&t.packComponents&&((d=e.layoutUtilities("get"))||(d=e.layoutUtilities()),g=!0),i.nodes().length>0)if(g){var c=o.getTopMostNodes(t.eles.nodes());if((h=o.connectComponents(e,t.eles,c)).forEach(function(t){var e=t.boundingBox();l.push({x:e.x1+e.w/2,y:e.y1+e.h/2})}),t.randomize&&h.forEach(function(e){t.eles=e,r.push(a(t))}),"default"==t.quality||"proof"==t.quality){var u=e.collection();if(t.tile){var f=new Map,p=0,m={nodeIndexes:f,xCoords:[],yCoords:[]},v=[];if(h.forEach(function(t,e){0==t.edges().length&&(t.nodes().forEach(function(e,i){u.merge(t.nodes()[i]),e.isParent()||(m.nodeIndexes.set(t.nodes()[i].id(),p++),m.xCoords.push(t.nodes()[0].position().x),m.yCoords.push(t.nodes()[0].position().y))}),v.push(e))}),u.length>1){var y=u.boundingBox();l.push({x:y.x1+y.w/2,y:y.y1+y.h/2}),h.push(u),r.push(m);for(var E=v.length-1;E>=0;E--)h.splice(v[E],1),r.splice(v[E],1),l.splice(v[E],1)}}h.forEach(function(e,i){t.eles=e,n.push(s(t,r[i])),o.relocateComponent(l[i],n[i],t)})}else h.forEach(function(e,i){o.relocateComponent(l[i],r[i],t)});var T=new Set;if(h.length>1){var N=[],A=i.filter(function(t){return"none"==t.css("display")});h.forEach(function(e,i){var a=void 0;if("draft"==t.quality&&(a=r[i].nodeIndexes),e.nodes().not(A).length>0){var s={};s.edges=[],s.nodes=[];var h=void 0;e.nodes().not(A).forEach(function(e){if("draft"==t.quality)if(e.isParent()){var l=o.calcBoundingBox(e,r[i].xCoords,r[i].yCoords,a);s.nodes.push({x:l.topLeftX,y:l.topLeftY,width:l.width,height:l.height})}else h=a.get(e.id()),s.nodes.push({x:r[i].xCoords[h]-e.boundingbox().w/2,y:r[i].yCoords[h]-e.boundingbox().h/2,width:e.boundingbox().w,height:e.boundingbox().h});else n[i][e.id()]&&s.nodes.push({x:n[i][e.id()].getLeft(),y:n[i][e.id()].getTop(),width:n[i][e.id()].getWidth(),height:n[i][e.id()].getHeight()})}),e.edges().forEach(function(e){var h=e.source(),l=e.target();if("none"!=h.css("display")&&"none"!=l.css("display"))if("draft"==t.quality){var d=a.get(h.id()),g=a.get(l.id()),c=[],u=[];if(h.isParent()){var f=o.calcBoundingBox(h,r[i].xCoords,r[i].yCoords,a);c.push(f.topLeftX+f.width/2),c.push(f.topLeftY+f.height/2)}else c.push(r[i].xCoords[d]),c.push(r[i].yCoords[d]);if(l.isParent()){var p=o.calcBoundingBox(l,r[i].xCoords,r[i].yCoords,a);u.push(p.topLeftX+p.width/2),u.push(p.topLeftY+p.height/2)}else u.push(r[i].xCoords[g]),u.push(r[i].yCoords[g]);s.edges.push({startX:c[0],startY:c[1],endX:u[0],endY:u[1]})}else n[i][h.id()]&&n[i][l.id()]&&s.edges.push({startX:n[i][h.id()].getCenterX(),startY:n[i][h.id()].getCenterY(),endX:n[i][l.id()].getCenterX(),endY:n[i][l.id()].getCenterY()})}),s.nodes.length>0&&(N.push(s),T.add(i))}});var w=d.packComponents(N,t.randomize).shifts;if("draft"==t.quality)r.forEach(function(t,e){var i=t.xCoords.map(function(t){return t+w[e].dx}),r=t.yCoords.map(function(t){return t+w[e].dy});t.xCoords=i,t.yCoords=r});else{var L=0;T.forEach(function(t){Object.keys(n[t]).forEach(function(e){var i=n[t][e];i.setCenter(i.getCenterX()+w[L].dx,i.getCenterY()+w[L].dy)}),L++})}}}else{var C=t.eles.boundingBox();if(l.push({x:C.x1+C.w/2,y:C.y1+C.h/2}),t.randomize){var M=a(t);r.push(M)}"default"==t.quality||"proof"==t.quality?(n.push(s(t,r[0])),o.relocateComponent(l[0],n[0],t)):o.relocateComponent(l[0],r[0],t)}var _=function(e,i){if("default"==t.quality||"proof"==t.quality){"number"==typeof e&&(e=i);var o=void 0,a=void 0,s=e.data("id");return n.forEach(function(t){s in t&&(o={x:t[s].getRect().getCenterX(),y:t[s].getRect().getCenterY()},a=t[s])}),t.nodeDimensionsIncludeLabels&&(a.labelWidth&&("left"==a.labelPosHorizontal?o.x+=a.labelWidth/2:"right"==a.labelPosHorizontal&&(o.x-=a.labelWidth/2)),a.labelHeight&&("top"==a.labelPosVertical?o.y+=a.labelHeight/2:"bottom"==a.labelPosVertical&&(o.y-=a.labelHeight/2))),void 0==o&&(o={x:e.position("x"),y:e.position("y")}),{x:o.x,y:o.y}}var h=void 0;return r.forEach(function(t){var i=t.nodeIndexes.get(e.id());void 0!=i&&(h={x:t.xCoords[i],y:t.yCoords[i]})}),void 0==h&&(h={x:e.position("x"),y:e.position("y")}),{x:h.x,y:h.y}};if("default"==t.quality||"proof"==t.quality||t.randomize){var I=o.calcParentsWithoutChildren(e,i),x=i.filter(function(t){return"none"==t.css("display")});t.eles=i.not(x),i.nodes().not(":parent").not(x).layoutPositions(this,t,_),I.length>0&&I.forEach(function(t){t.position(_(t))})}else console.log("If randomize option is set to false, then quality option must be 'default' or 'proof'.")}}]),t}()},657:(t,e,i)=>{var r=i(548),n=i(140).layoutBase.Matrix,o=i(140).layoutBase.SVD;t.exports={spectralLayout:function(t){var e=t.cy,i=t.eles,a=i.nodes(),s=i.nodes(":parent"),h=new Map,l=new Map,d=new Map,g=[],c=[],u=[],f=[],p=[],m=[],v=[],y=[],E=void 0,T=t.piTol,N=t.samplingType,A=t.nodeSeparation,w=void 0,L=function(){for(var t=0,e=0,i=!1;e<w;){t=Math.floor(Math.random()*E),i=!1;for(var r=0;r<e;r++)if(f[r]==t){i=!0;break}!i&&(f[e]=t,e++)}},C=function(t,e,i){for(var r=[],n=0,o=0,a=0,s=void 0,h=[],d=0,c=1,u=0;u<E;u++)h[u]=1e8;for(r[o]=t,h[t]=0;o>=n;){for(var f=g[a=r[n++]],v=0;v<f.length;v++)1e8==h[s=l.get(f[v])]&&(h[s]=h[a]+1,r[++o]=s);m[a][e]=h[a]*A}if(i){for(var y=0;y<E;y++)m[y][e]<p[y]&&(p[y]=m[y][e]);for(var T=0;T<E;T++)p[T]>d&&(d=p[T],c=T)}return c};r.connectComponents(e,i,r.getTopMostNodes(a),h),s.forEach(function(t){r.connectComponents(e,i,r.getTopMostNodes(t.descendants().intersection(i)),h)});for(var M=0,_=0;_<a.length;_++)a[_].isParent()||l.set(a[_].id(),M++);var I=!0,x=!1,O=void 0;try{for(var D,R=h.keys()[Symbol.iterator]();!(I=(D=R.next()).done);I=!0){var b=D.value;l.set(b,M++)}}catch(t){x=!0,O=t}finally{try{!I&&R.return&&R.return()}finally{if(x)throw O}}for(var F=0;F<l.size;F++)g[F]=[];s.forEach(function(t){for(var e=t.children().intersection(i);0==e.nodes(":childless").length;)e=e.nodes()[0].children().intersection(i);var r=0,n=e.nodes(":childless")[0].connectedEdges().length;e.nodes(":childless").forEach(function(t,e){t.connectedEdges().length<n&&(n=t.connectedEdges().length,r=e)}),d.set(t.id(),e.nodes(":childless")[r].id())}),a.forEach(function(t){var e=void 0;e=t.isParent()?l.get(d.get(t.id())):l.get(t.id()),t.neighborhood().nodes().forEach(function(r){i.intersection(t.edgesWith(r)).length>0&&(r.isParent()?g[e].push(d.get(r.id())):g[e].push(r.id()))})});var S=function(t){var i=l.get(t),r=void 0;h.get(t).forEach(function(n){r=e.getElementById(n).isParent()?d.get(n):n,g[i].push(r),g[l.get(r)].push(t)})},G=!0,P=!1,U=void 0;try{for(var k,Y=h.keys()[Symbol.iterator]();!(G=(k=Y.next()).done);G=!0){var H=k.value;S(H)}}catch(t){P=!0,U=t}finally{try{!G&&Y.return&&Y.return()}finally{if(P)throw U}}E=l.size;if(E>2){w=E<t.sampleSize?E:t.sampleSize;for(var X=0;X<E;X++)m[X]=[];for(var z=0;z<w;z++)y[z]=[];return"draft"==t.quality||"all"==t.step?(!function(t){var e=void 0;if(t){e=Math.floor(Math.random()*E);for(var i=0;i<E;i++)p[i]=1e8;for(var r=0;r<w;r++)f[r]=e,e=C(e,r,t)}else{L();for(var n=0;n<w;n++)C(f[n],n,t)}for(var o=0;o<E;o++)for(var a=0;a<w;a++)m[o][a]*=m[o][a];for(var s=0;s<w;s++)v[s]=[];for(var h=0;h<w;h++)for(var l=0;l<w;l++)v[h][l]=m[f[l]][h]}(N),!function(){for(var t=o.svd(v),e=t.S,i=t.U,r=t.V,a=e[0]*e[0]*e[0],s=[],h=0;h<w;h++){s[h]=[];for(var l=0;l<w;l++)s[h][l]=0,h==l&&(s[h][l]=e[h]/(e[h]*e[h]+a/(e[h]*e[h])))}y=n.multMat(n.multMat(r,s),n.transpose(i))}(),!function(){for(var t=void 0,e=void 0,i=[],r=[],o=[],a=[],s=0;s<E;s++)i[s]=Math.random(),r[s]=Math.random();i=n.normalize(i),r=n.normalize(r);for(var h=0,l=1e-9,d=1e-9,g=void 0;;){h++;for(var f=0;f<E;f++)o[f]=i[f];if(i=n.multGamma(n.multL(n.multGamma(o),m,y)),t=n.dotProduct(o,i),i=n.normalize(i),(g=Math.abs((l=n.dotProduct(o,i))/d))<=1+T&&g>=1)break;d=l}for(var p=0;p<E;p++)o[p]=i[p];for(h=0,d=1e-9;;){h++;for(var v=0;v<E;v++)a[v]=r[v];if(a=n.minusOp(a,n.multCons(o,n.dotProduct(o,a))),r=n.multGamma(n.multL(n.multGamma(a),m,y)),e=n.dotProduct(a,r),r=n.normalize(r),(g=Math.abs((l=n.dotProduct(a,r))/d))<=1+T&&g>=1)break;d=l}for(var N=0;N<E;N++)a[N]=r[N];c=n.multCons(o,Math.sqrt(Math.abs(t))),u=n.multCons(a,Math.sqrt(Math.abs(e)))}()):l.forEach(function(t,i){c.push(e.getElementById(i).position("x")),u.push(e.getElementById(i).position("y"))}),{nodeIndexes:l,xCoords:c,yCoords:u}}var B=l.keys(),V=e.getElementById(B.next().value),W=V.position(),$=V.outerWidth();if(c.push(W.x),u.push(W.y),2==E){var j=e.getElementById(B.next().value).outerWidth();c.push(W.x+$/2+j/2+t.idealEdgeLength),u.push(W.y)}return{nodeIndexes:l,xCoords:c,yCoords:u}}}},579:(t,e,i)=>{var r=i(212),n=function(t){t&&t("layout","fcose",r)};"u">typeof cytoscape&&n(cytoscape),t.exports=n},140:t=>{t.exports=r}},e={};return function i(r){var n=e[r];if(void 0!==n)return n.exports;var o=e[r]={exports:{}};return t[r](o,o.exports,i),o.exports}(579)})()},42454:function(t){t.exports=function(){var t=[function(t,e,i){"use strict";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,t.exports=r},function(t,e,i){"use strict";var r=i(2),n=i(8),o=i(9);function a(t,e,i){r.call(this,i),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=i,this.bendpoints=[],this.source=t,this.target=e}for(var s in a.prototype=Object.create(r.prototype),r)a[s]=r[s];a.prototype.getSource=function(){return this.source},a.prototype.getTarget=function(){return this.target},a.prototype.isInterGraph=function(){return this.isInterGraph},a.prototype.getLength=function(){return this.length},a.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},a.prototype.getBendpoints=function(){return this.bendpoints},a.prototype.getLca=function(){return this.lca},a.prototype.getSourceInLca=function(){return this.sourceInLca},a.prototype.getTargetInLca=function(){return this.targetInLca},a.prototype.getOtherEnd=function(t){if(this.source===t)return this.target;if(this.target===t)return this.source;throw"Node is not incident with this edge"},a.prototype.getOtherEndInGraph=function(t,e){for(var i=this.getOtherEnd(t),r=e.getGraphManager().getRoot();;){if(i.getOwner()==e)return i;if(i.getOwner()==r)break;i=i.getOwner().getParent()}return null},a.prototype.updateLength=function(){var t=[,,,,];this.isOverlapingSourceAndTarget=n.getIntersection(this.target.getRect(),this.source.getRect(),t),this.isOverlapingSourceAndTarget||(this.lengthX=t[0]-t[2],this.lengthY=t[1]-t[3],1>Math.abs(this.lengthX)&&(this.lengthX=o.sign(this.lengthX)),1>Math.abs(this.lengthY)&&(this.lengthY=o.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},a.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),1>Math.abs(this.lengthX)&&(this.lengthX=o.sign(this.lengthX)),1>Math.abs(this.lengthY)&&(this.lengthY=o.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},t.exports=a},function(t,e,i){"use strict";t.exports=function(t){this.vGraphObject=t}},function(t,e,i){"use strict";var r=i(2),n=i(10),o=i(13),a=i(0),s=i(16),h=i(5);function l(t,e,i,a){null==i&&null==a&&(a=e),r.call(this,a),null!=t.graphManager&&(t=t.graphManager),this.estimatedSize=n.MIN_VALUE,this.inclusionTreeDepth=n.MAX_VALUE,this.vGraphObject=a,this.edges=[],this.graphManager=t,null!=i&&null!=e?this.rect=new o(e.x,e.y,i.width,i.height):this.rect=new o}for(var d in l.prototype=Object.create(r.prototype),r)l[d]=r[d];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(t){this.rect.width=t},l.prototype.getHeight=function(){return this.rect.height},l.prototype.setHeight=function(t){this.rect.height=t},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 h(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},l.prototype.getLocation=function(){return new h(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(t,e){this.rect.x=t.x,this.rect.y=t.y,this.rect.width=e.width,this.rect.height=e.height},l.prototype.setCenter=function(t,e){this.rect.x=t-this.rect.width/2,this.rect.y=e-this.rect.height/2},l.prototype.setLocation=function(t,e){this.rect.x=t,this.rect.y=e},l.prototype.moveBy=function(t,e){this.rect.x+=t,this.rect.y+=e},l.prototype.getEdgeListToNode=function(t){var e=[],i=this;return i.edges.forEach(function(r){if(r.target==t){if(r.source!=i)throw"Incorrect edge source!";e.push(r)}}),e},l.prototype.getEdgesBetween=function(t){var e=[],i=this;return i.edges.forEach(function(r){if(r.source!=i&&r.target!=i)throw"Incorrect edge source and/or target";(r.target==t||r.source==t)&&e.push(r)}),e},l.prototype.getNeighborsList=function(){var t=new Set,e=this;return e.edges.forEach(function(i){if(i.source==e)t.add(i.target);else{if(i.target!=e)throw"Incorrect incidency!";t.add(i.source)}}),t},l.prototype.withChildren=function(){var t=new Set;if(t.add(this),null!=this.child)for(var e=this.child.getNodes(),i=0;i<e.length;i++)e[i].withChildren().forEach(function(e){t.add(e)});return t},l.prototype.getNoOfChildren=function(){var t=0;if(null==this.child)t=1;else for(var e=this.child.getNodes(),i=0;i<e.length;i++)t+=e[i].getNoOfChildren();return 0==t&&(t=1),t},l.prototype.getEstimatedSize=function(){if(this.estimatedSize==n.MIN_VALUE)throw"assert failed";return this.estimatedSize},l.prototype.calcEstimatedSize=function(){return null==this.child?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 t,e,i=-a.INITIAL_WORLD_BOUNDARY,r=a.INITIAL_WORLD_BOUNDARY;t=a.WORLD_CENTER_X+s.nextDouble()*(r-i)+i;var n=-a.INITIAL_WORLD_BOUNDARY,o=a.INITIAL_WORLD_BOUNDARY;e=a.WORLD_CENTER_Y+s.nextDouble()*(o-n)+n,this.rect.x=t,this.rect.y=e},l.prototype.updateBounds=function(){if(null==this.getChild())throw"assert failed";if(0!=this.getChild().getNodes().length){var t=this.getChild();if(t.updateBounds(!0),this.rect.x=t.getLeft(),this.rect.y=t.getTop(),this.setWidth(t.getRight()-t.getLeft()),this.setHeight(t.getBottom()-t.getTop()),a.NODE_DIMENSIONS_INCLUDE_LABELS){var e=t.getRight()-t.getLeft(),i=t.getBottom()-t.getTop();this.labelWidth&&("left"==this.labelPosHorizontal?(this.rect.x-=this.labelWidth,this.setWidth(e+this.labelWidth)):"center"==this.labelPosHorizontal&&this.labelWidth>e?(this.rect.x-=(this.labelWidth-e)/2,this.setWidth(this.labelWidth)):"right"==this.labelPosHorizontal&&this.setWidth(e+this.labelWidth)),this.labelHeight&&("top"==this.labelPosVertical?(this.rect.y-=this.labelHeight,this.setHeight(i+this.labelHeight)):"center"==this.labelPosVertical&&this.labelHeight>i?(this.rect.y-=(this.labelHeight-i)/2,this.setHeight(this.labelHeight)):"bottom"==this.labelPosVertical&&this.setHeight(i+this.labelHeight))}}},l.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==n.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},l.prototype.transform=function(t){var e=this.rect.x;e>a.WORLD_BOUNDARY?e=a.WORLD_BOUNDARY:e<-a.WORLD_BOUNDARY&&(e=-a.WORLD_BOUNDARY);var i=this.rect.y;i>a.WORLD_BOUNDARY?i=a.WORLD_BOUNDARY:i<-a.WORLD_BOUNDARY&&(i=-a.WORLD_BOUNDARY);var r=new h(e,i),n=t.inverseTransformPoint(r);this.setLocation(n.x,n.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 null==this.owner?null:this.owner.getParent()},t.exports=l},function(t,e,i){"use strict";var r=i(0);function n(){}for(var o in r)n[o]=r[o];n.MAX_ITERATIONS=2500,n.DEFAULT_EDGE_LENGTH=50,n.DEFAULT_SPRING_STRENGTH=.45,n.DEFAULT_REPULSION_STRENGTH=4500,n.DEFAULT_GRAVITY_STRENGTH=.4,n.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1,n.DEFAULT_GRAVITY_RANGE_FACTOR=3.8,n.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5,n.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=!0,n.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=!0,n.DEFAULT_COOLING_FACTOR_INCREMENTAL=.3,n.COOLING_ADAPTATION_FACTOR=.33,n.ADAPTATION_LOWER_NODE_LIMIT=1e3,n.ADAPTATION_UPPER_NODE_LIMIT=5e3,n.MAX_NODE_DISPLACEMENT_INCREMENTAL=100,n.MAX_NODE_DISPLACEMENT=3*n.MAX_NODE_DISPLACEMENT_INCREMENTAL,n.MIN_REPULSION_DIST=n.DEFAULT_EDGE_LENGTH/10,n.CONVERGENCE_CHECK_PERIOD=100,n.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=.1,n.MIN_EDGE_LENGTH=1,n.GRID_CALCULATION_CHECK_PERIOD=10,t.exports=n},function(t,e,i){"use strict";function r(t,e){null==t&&null==e?(this.x=0,this.y=0):(this.x=t,this.y=e)}r.prototype.getX=function(){return this.x},r.prototype.getY=function(){return this.y},r.prototype.setX=function(t){this.x=t},r.prototype.setY=function(t){this.y=t},r.prototype.getDifference=function(t){return new DimensionD(this.x-t.x,this.y-t.y)},r.prototype.getCopy=function(){return new r(this.x,this.y)},r.prototype.translate=function(t){return this.x+=t.width,this.y+=t.height,this},t.exports=r},function(t,e,i){"use strict";var r=i(2),n=i(10),o=i(0),a=i(7),s=i(3),h=i(1),l=i(13),d=i(12),g=i(11);function c(t,e,i){r.call(this,i),this.estimatedSize=n.MIN_VALUE,this.margin=o.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=t,null!=e&&e instanceof a?this.graphManager=e:null!=e&&e instanceof Layout&&(this.graphManager=e.graphManager)}for(var u in c.prototype=Object.create(r.prototype),r)c[u]=r[u];c.prototype.getNodes=function(){return this.nodes},c.prototype.getEdges=function(){return this.edges},c.prototype.getGraphManager=function(){return this.graphManager},c.prototype.getParent=function(){return this.parent},c.prototype.getLeft=function(){return this.left},c.prototype.getRight=function(){return this.right},c.prototype.getTop=function(){return this.top},c.prototype.getBottom=function(){return this.bottom},c.prototype.isConnected=function(){return this.isConnected},c.prototype.add=function(t,e,i){if(null==e&&null==i){if(null==this.graphManager)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(t)>-1)throw"Node already in graph!";return t.owner=this,this.getNodes().push(t),t}if(!(this.getNodes().indexOf(e)>-1&&this.getNodes().indexOf(i)>-1))throw"Source or target not in graph!";if(e.owner!=i.owner||e.owner!=this)throw"Both owners must be this graph!";return e.owner!=i.owner?null:(t.source=e,t.target=i,t.isInterGraph=!1,this.getEdges().push(t),e.edges.push(t),i!=e&&i.edges.push(t),t)},c.prototype.remove=function(t){if(t instanceof s){if(null==t)throw"Node is null!";if(null==t.owner||t.owner!=this)throw"Owner graph is invalid!";if(null==this.graphManager)throw"Owner graph manager is invalid!";for(var e,i=t.edges.slice(),r=i.length,n=0;n<r;n++)(e=i[n]).isInterGraph?this.graphManager.remove(e):e.source.owner.remove(e);var o=this.nodes.indexOf(t);if(-1==o)throw"Node not in owner node list!";this.nodes.splice(o,1)}else if(t instanceof h){var e=t;if(null==e)throw"Edge is null!";if(null==e.source||null==e.target)throw"Source and/or target is null!";if(null==e.source.owner||null==e.target.owner||e.source.owner!=this||e.target.owner!=this)throw"Source and/or target owner is invalid!";var a=e.source.edges.indexOf(e),l=e.target.edges.indexOf(e);if(!(a>-1&&l>-1))throw"Source and/or target doesn't know this edge!";e.source.edges.splice(a,1),e.target!=e.source&&e.target.edges.splice(l,1);var o=e.source.owner.getEdges().indexOf(e);if(-1==o)throw"Not in owner's edge list!";e.source.owner.getEdges().splice(o,1)}},c.prototype.updateLeftTop=function(){for(var t,e,i,r=n.MAX_VALUE,o=n.MAX_VALUE,a=this.getNodes(),s=a.length,h=0;h<s;h++){var l=a[h];t=l.getTop(),e=l.getLeft(),r>t&&(r=t),o>e&&(o=e)}return r==n.MAX_VALUE?null:(i=void 0!=a[0].getParent().paddingLeft?a[0].getParent().paddingLeft:this.margin,this.left=o-i,this.top=r-i,new d(this.left,this.top))},c.prototype.updateBounds=function(t){for(var e,i,r,o,a,s=n.MAX_VALUE,h=-n.MAX_VALUE,d=n.MAX_VALUE,g=-n.MAX_VALUE,c=this.nodes,u=c.length,f=0;f<u;f++){var p=c[f];t&&null!=p.child&&p.updateBounds(),e=p.getLeft(),i=p.getRight(),r=p.getTop(),o=p.getBottom(),s>e&&(s=e),h<i&&(h=i),d>r&&(d=r),g<o&&(g=o)}var m=new l(s,d,h-s,g-d);s==n.MAX_VALUE&&(this.left=this.parent.getLeft(),this.right=this.parent.getRight(),this.top=this.parent.getTop(),this.bottom=this.parent.getBottom()),a=void 0!=c[0].getParent().paddingLeft?c[0].getParent().paddingLeft:this.margin,this.left=m.x-a,this.right=m.x+m.width+a,this.top=m.y-a,this.bottom=m.y+m.height+a},c.calculateBounds=function(t){for(var e,i,r,o,a=n.MAX_VALUE,s=-n.MAX_VALUE,h=n.MAX_VALUE,d=-n.MAX_VALUE,g=t.length,c=0;c<g;c++){var u=t[c];e=u.getLeft(),i=u.getRight(),r=u.getTop(),o=u.getBottom(),a>e&&(a=e),s<i&&(s=i),h>r&&(h=r),d<o&&(d=o)}return new l(a,h,s-a,d-h)},c.prototype.getInclusionTreeDepth=function(){return this==this.graphManager.getRoot()?1:this.parent.getInclusionTreeDepth()},c.prototype.getEstimatedSize=function(){if(this.estimatedSize==n.MIN_VALUE)throw"assert failed";return this.estimatedSize},c.prototype.calcEstimatedSize=function(){for(var t=0,e=this.nodes,i=e.length,r=0;r<i;r++)t+=e[r].calcEstimatedSize();return 0==t?this.estimatedSize=o.EMPTY_COMPOUND_NODE_SIZE:this.estimatedSize=t/Math.sqrt(this.nodes.length),this.estimatedSize},c.prototype.updateConnected=function(){var t,e,i=this;if(0==this.nodes.length){this.isConnected=!0;return}var r=new g,n=new Set,o=this.nodes[0];for(o.withChildren().forEach(function(t){r.push(t),n.add(t)});0!==r.length;)for(var a=(t=(o=r.shift()).getEdges()).length,s=0;s<a;s++)null==(e=t[s].getOtherEndInGraph(o,this))||n.has(e)||e.withChildren().forEach(function(t){r.push(t),n.add(t)});if(this.isConnected=!1,n.size>=this.nodes.length){var h=0;n.forEach(function(t){t.owner==i&&h++}),h==this.nodes.length&&(this.isConnected=!0)}},t.exports=c},function(t,e,i){"use strict";var r,n=i(1);function o(t){r=i(6),this.layout=t,this.graphs=[],this.edges=[]}o.prototype.addRoot=function(){var t=this.layout.newGraph(),e=this.layout.newNode(null),i=this.add(t,e);return this.setRootGraph(i),this.rootGraph},o.prototype.add=function(t,e,i,r,n){if(null==i&&null==r&&null==n){if(null==t)throw"Graph is null!";if(null==e)throw"Parent node is null!";if(this.graphs.indexOf(t)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(t),null!=t.parent)throw"Already has a parent!";if(null!=e.child)throw"Already has a child!";return t.parent=e,e.child=t,t}n=i,r=e,i=t;var o=r.getOwner(),a=n.getOwner();if(null==o||o.getGraphManager()!=this)throw"Source not in this graph mgr!";if(null==a||a.getGraphManager()!=this)throw"Target not in this graph mgr!";if(o==a)return i.isInterGraph=!1,o.add(i,r,n);if(i.isInterGraph=!0,i.source=r,i.target=n,this.edges.indexOf(i)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(i),null==i.source||null==i.target)throw"Edge source and/or target is null!";if(-1!=i.source.edges.indexOf(i)||-1!=i.target.edges.indexOf(i))throw"Edge already in source and/or target incidency list!";return i.source.edges.push(i),i.target.edges.push(i),i},o.prototype.remove=function(t){if(t instanceof r){if(t.getGraphManager()!=this)throw"Graph not in this graph mgr";if(t!=this.rootGraph&&(null==t.parent||t.parent.graphManager!=this))throw"Invalid parent node!";for(var e,i,o=[],a=(o=o.concat(t.getEdges())).length,s=0;s<a;s++)e=o[s],t.remove(e);var h=[];a=(h=h.concat(t.getNodes())).length;for(var s=0;s<a;s++)i=h[s],t.remove(i);t==this.rootGraph&&this.setRootGraph(null);var l=this.graphs.indexOf(t);this.graphs.splice(l,1),t.parent=null}else if(t instanceof n){if(null==(e=t))throw"Edge is null!";if(!e.isInterGraph)throw"Not an inter-graph edge!";if(null==e.source||null==e.target)throw"Source and/or target is null!";if(-1==e.source.edges.indexOf(e)||-1==e.target.edges.indexOf(e))throw"Source and/or target doesn't know this edge!";var l=e.source.edges.indexOf(e);if(e.source.edges.splice(l,1),l=e.target.edges.indexOf(e),e.target.edges.splice(l,1),null==e.source.owner||null==e.source.owner.getGraphManager())throw"Edge owner graph or owner graph manager is null!";if(-1==e.source.owner.getGraphManager().edges.indexOf(e))throw"Not in owner graph manager's edge list!";var l=e.source.owner.getGraphManager().edges.indexOf(e);e.source.owner.getGraphManager().edges.splice(l,1)}},o.prototype.updateBounds=function(){this.rootGraph.updateBounds(!0)},o.prototype.getGraphs=function(){return this.graphs},o.prototype.getAllNodes=function(){if(null==this.allNodes){for(var t=[],e=this.getGraphs(),i=e.length,r=0;r<i;r++)t=t.concat(e[r].getNodes());this.allNodes=t}return this.allNodes},o.prototype.resetAllNodes=function(){this.allNodes=null},o.prototype.resetAllEdges=function(){this.allEdges=null},o.prototype.resetAllNodesToApplyGravitation=function(){this.allNodesToApplyGravitation=null},o.prototype.getAllEdges=function(){if(null==this.allEdges){var t=[],e=this.getGraphs();e.length;for(var i=0;i<e.length;i++)t=t.concat(e[i].getEdges());t=t.concat(this.edges),this.allEdges=t}return this.allEdges},o.prototype.getAllNodesToApplyGravitation=function(){return this.allNodesToApplyGravitation},o.prototype.setAllNodesToApplyGravitation=function(t){if(null!=this.allNodesToApplyGravitation)throw"assert failed";this.allNodesToApplyGravitation=t},o.prototype.getRoot=function(){return this.rootGraph},o.prototype.setRootGraph=function(t){if(t.getGraphManager()!=this)throw"Root not in this graph mgr!";this.rootGraph=t,null==t.parent&&(t.parent=this.layout.newNode("Root node"))},o.prototype.getLayout=function(){return this.layout},o.prototype.isOneAncestorOfOther=function(t,e){if(null==t||null==e)throw"assert failed";if(t==e)return!0;for(var i,r=t.getOwner();null!=(i=r.getParent());){if(i==e)return!0;if(null==(r=i.getOwner()))break}for(r=e.getOwner();null!=(i=r.getParent());){if(i==t)return!0;if(null==(r=i.getOwner()))break}return!1},o.prototype.calcLowestCommonAncestors=function(){for(var t,e,i,r,n,o=this.getAllEdges(),a=o.length,s=0;s<a;s++){if(e=(t=o[s]).source,i=t.target,t.lca=null,t.sourceInLca=e,t.targetInLca=i,e==i){t.lca=e.getOwner();continue}for(r=e.getOwner();null==t.lca;){for(t.targetInLca=i,n=i.getOwner();null==t.lca;){if(n==r){t.lca=n;break}if(n==this.rootGraph)break;if(null!=t.lca)throw"assert failed";t.targetInLca=n.getParent(),n=t.targetInLca.getOwner()}if(r==this.rootGraph)break;null==t.lca&&(t.sourceInLca=r.getParent(),r=t.sourceInLca.getOwner())}if(null==t.lca)throw"assert failed"}},o.prototype.calcLowestCommonAncestor=function(t,e){if(t==e)return t.getOwner();for(var i=t.getOwner();null!=i;){for(var r=e.getOwner();null!=r;){if(r==i)return r;r=r.getParent().getOwner()}i=i.getParent().getOwner()}return i},o.prototype.calcInclusionTreeDepths=function(t,e){null==t&&null==e&&(t=this.rootGraph,e=1);for(var i,r=t.getNodes(),n=r.length,o=0;o<n;o++)(i=r[o]).inclusionTreeDepth=e,null!=i.child&&this.calcInclusionTreeDepths(i.child,e+1)},o.prototype.includesInvalidEdge=function(){for(var t,e=[],i=this.edges.length,r=0;r<i;r++)t=this.edges[r],this.isOneAncestorOfOther(t.source,t.target)&&e.push(t);for(var r=0;r<e.length;r++)this.remove(e[r]);return!1},t.exports=o},function(t,e,i){"use strict";var r=i(12);function n(){}n.calcSeparationAmount=function(t,e,i,r){if(!t.intersects(e))throw"assert failed";var n=[,,];this.decideDirectionsForOverlappingNodes(t,e,n),i[0]=Math.min(t.getRight(),e.getRight())-Math.max(t.x,e.x),i[1]=Math.min(t.getBottom(),e.getBottom())-Math.max(t.y,e.y),t.getX()<=e.getX()&&t.getRight()>=e.getRight()?i[0]+=Math.min(e.getX()-t.getX(),t.getRight()-e.getRight()):e.getX()<=t.getX()&&e.getRight()>=t.getRight()&&(i[0]+=Math.min(t.getX()-e.getX(),e.getRight()-t.getRight())),t.getY()<=e.getY()&&t.getBottom()>=e.getBottom()?i[1]+=Math.min(e.getY()-t.getY(),t.getBottom()-e.getBottom()):e.getY()<=t.getY()&&e.getBottom()>=t.getBottom()&&(i[1]+=Math.min(t.getY()-e.getY(),e.getBottom()-t.getBottom()));var o=Math.abs((e.getCenterY()-t.getCenterY())/(e.getCenterX()-t.getCenterX()));e.getCenterY()===t.getCenterY()&&e.getCenterX()===t.getCenterX()&&(o=1);var a=o*i[0],s=i[1]/o;i[0]<s?s=i[0]:a=i[1],i[0]=-1*n[0]*(s/2+r),i[1]=-1*n[1]*(a/2+r)},n.decideDirectionsForOverlappingNodes=function(t,e,i){t.getCenterX()<e.getCenterX()?i[0]=-1:i[0]=1,t.getCenterY()<e.getCenterY()?i[1]=-1:i[1]=1},n.getIntersection2=function(t,e,i){var r=t.getCenterX(),n=t.getCenterY(),o=e.getCenterX(),a=e.getCenterY();if(t.intersects(e))return i[0]=r,i[1]=n,i[2]=o,i[3]=a,!0;var s=t.getX(),h=t.getY(),l=t.getRight(),d=t.getX(),g=t.getBottom(),c=t.getRight(),u=t.getWidthHalf(),f=t.getHeightHalf(),p=e.getX(),m=e.getY(),v=e.getRight(),y=e.getX(),E=e.getBottom(),T=e.getRight(),N=e.getWidthHalf(),A=e.getHeightHalf(),w=!1,L=!1;if(r===o)n>a?(i[0]=r,i[1]=h,i[2]=o,i[3]=E):n<a&&(i[0]=r,i[1]=g,i[2]=o,i[3]=m);else if(n===a)r>o?(i[0]=s,i[1]=n,i[2]=v,i[3]=a):r<o&&(i[0]=l,i[1]=n,i[2]=p,i[3]=a);else{var C=t.height/t.width,M=e.height/e.width,_=(a-n)/(o-r),I=void 0,x=void 0,O=void 0,D=void 0,R=void 0,b=void 0;if(-C===_?(r>o?(i[0]=d,i[1]=g):(i[0]=l,i[1]=h),w=!0):C===_&&(r>o?(i[0]=s,i[1]=h):(i[0]=c,i[1]=g),w=!0),-M===_?(o>r?(i[2]=y,i[3]=E):(i[2]=v,i[3]=m),L=!0):M===_&&(o>r?(i[2]=p,i[3]=m):(i[2]=T,i[3]=E),L=!0),w&&L)return!1;if(r>o?n>a?(I=this.getCardinalDirection(C,_,4),x=this.getCardinalDirection(M,_,2)):(I=this.getCardinalDirection(-C,_,3),x=this.getCardinalDirection(-M,_,1)):n>a?(I=this.getCardinalDirection(-C,_,1),x=this.getCardinalDirection(-M,_,3)):(I=this.getCardinalDirection(C,_,2),x=this.getCardinalDirection(M,_,4)),!w)switch(I){case 1:D=h,O=r+-f/_,i[0]=O,i[1]=D;break;case 2:O=c,D=n+u*_,i[0]=O,i[1]=D;break;case 3:D=g,O=r+f/_,i[0]=O,i[1]=D;break;case 4:O=d,D=n+-u*_,i[0]=O,i[1]=D}if(!L)switch(x){case 1:b=m,R=o+-A/_,i[2]=R,i[3]=b;break;case 2:R=T,b=a+N*_,i[2]=R,i[3]=b;break;case 3:b=E,R=o+A/_,i[2]=R,i[3]=b;break;case 4:R=y,b=a+-N*_,i[2]=R,i[3]=b}}return!1},n.getCardinalDirection=function(t,e,i){return t>e?i:1+i%4},n.getIntersection=function(t,e,i,n){if(null==n)return this.getIntersection2(t,e,i);var o=t.x,a=t.y,s=e.x,h=e.y,l=i.x,d=i.y,g=n.x,c=n.y,u=void 0,f=void 0,p=void 0,m=void 0,v=void 0,y=void 0,E=void 0;return(u=h-a,p=o-s,v=s*a-o*h,f=c-d,m=l-g,y=g*d-l*c,0==(E=u*m-f*p))?null:new r((p*y-m*v)/E,(f*v-u*y)/E)},n.angleOfVector=function(t,e,i,r){var n=void 0;return t!==i?(n=Math.atan((r-e)/(i-t)),i<t?n+=Math.PI:r<e&&(n+=this.TWO_PI)):n=r<e?this.ONE_AND_HALF_PI:this.HALF_PI,n},n.doIntersect=function(t,e,i,r){var n=t.x,o=t.y,a=e.x,s=e.y,h=i.x,l=i.y,d=r.x,g=r.y,c=(a-n)*(g-l)-(d-h)*(s-o);if(0===c)return!1;var u=((g-l)*(d-n)+(h-d)*(g-o))/c,f=((o-s)*(d-n)+(a-n)*(g-o))/c;return 0<u&&u<1&&0<f&&f<1},n.findCircleLineIntersections=function(t,e,i,r,n,o,a){var s=(i-t)*(i-t)+(r-e)*(r-e),h=2*((t-n)*(i-t)+(e-o)*(r-e)),l=(t-n)*(t-n)+(e-o)*(e-o)-a*a;if(!(h*h-4*s*l>=0))return null;var d=(-h+Math.sqrt(h*h-4*s*l))/(2*s),g=(-h-Math.sqrt(h*h-4*s*l))/(2*s);return d>=0&&d<=1?[d]:g>=0&&g<=1?[g]:null},n.HALF_PI=.5*Math.PI,n.ONE_AND_HALF_PI=1.5*Math.PI,n.TWO_PI=2*Math.PI,n.THREE_PI=3*Math.PI,t.exports=n},function(t,e,i){"use strict";function r(){}r.sign=function(t){return t>0?1:t<0?-1:0},r.floor=function(t){return t<0?Math.ceil(t):Math.floor(t)},r.ceil=function(t){return t<0?Math.floor(t):Math.ceil(t)},t.exports=r},function(t,e,i){"use strict";function r(){}r.MAX_VALUE=0x7fffffff,r.MIN_VALUE=-0x80000000,t.exports=r},function(t,e,i){"use strict";var r=function(){function t(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,i,r){return i&&t(e.prototype,i),r&&t(e,r),e}}(),n=function(t){return{value:t,next:null,prev:null}},o=function(t,e,i,r){return null!==t?t.next=e:r.head=e,null!==i?i.prev=e:r.tail=e,e.prev=t,e.next=i,r.length++,e},a=function(t,e){var i=t.prev,r=t.next;return null!==i?i.next=r:e.head=r,null!==r?r.prev=i:e.tail=i,t.prev=t.next=null,e.length--,t};t.exports=function(){function t(e){var i=this;if(!(this instanceof t))throw TypeError("Cannot call a class as a function");this.length=0,this.head=null,this.tail=null,null!=e&&e.forEach(function(t){return i.push(t)})}return r(t,[{key:"size",value:function(){return this.length}},{key:"insertBefore",value:function(t,e){return o(e.prev,n(t),e,this)}},{key:"insertAfter",value:function(t,e){return o(e,n(t),e.next,this)}},{key:"insertNodeBefore",value:function(t,e){return o(e.prev,t,e,this)}},{key:"insertNodeAfter",value:function(t,e){return o(e,t,e.next,this)}},{key:"push",value:function(t){return o(this.tail,n(t),null,this)}},{key:"unshift",value:function(t){return o(null,n(t),this.head,this)}},{key:"remove",value:function(t){return a(t,this)}},{key:"pop",value:function(){return a(this.tail,this).value}},{key:"popNode",value:function(){return a(this.tail,this)}},{key:"shift",value:function(){return a(this.head,this).value}},{key:"shiftNode",value:function(){return a(this.head,this)}},{key:"get_object_at",value:function(t){if(t<=this.length()){for(var e=1,i=this.head;e<t;)i=i.next,e++;return i.value}}},{key:"set_object_at",value:function(t,e){if(t<=this.length()){for(var i=1,r=this.head;i<t;)r=r.next,i++;r.value=e}}}]),t}()},function(t,e,i){"use strict";function r(t,e,i){this.x=null,this.y=null,null==t&&null==e&&null==i?(this.x=0,this.y=0):"number"==typeof t&&"number"==typeof e&&null==i?(this.x=t,this.y=e):"Point"==t.constructor.name&&null==e&&null==i&&(i=t,this.x=i.x,this.y=i.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(t,e,i){"Point"==t.constructor.name&&null==e&&null==i?(i=t,this.setLocation(i.x,i.y)):"number"==typeof t&&"number"==typeof e&&null==i&&(parseInt(t)==t&&parseInt(e)==e?this.move(t,e):(this.x=Math.floor(t+.5),this.y=Math.floor(e+.5)))},r.prototype.move=function(t,e){this.x=t,this.y=e},r.prototype.translate=function(t,e){this.x+=t,this.y+=e},r.prototype.equals=function(t){return"Point"==t.constructor.name?this.x==t.x&&this.y==t.y:this==t},r.prototype.toString=function(){return new r().constructor.name+"[x="+this.x+",y="+this.y+"]"},t.exports=r},function(t,e,i){"use strict";function r(t,e,i,r){this.x=0,this.y=0,this.width=0,this.height=0,null!=t&&null!=e&&null!=i&&null!=r&&(this.x=t,this.y=e,this.width=i,this.height=r)}r.prototype.getX=function(){return this.x},r.prototype.setX=function(t){this.x=t},r.prototype.getY=function(){return this.y},r.prototype.setY=function(t){this.y=t},r.prototype.getWidth=function(){return this.width},r.prototype.setWidth=function(t){this.width=t},r.prototype.getHeight=function(){return this.height},r.prototype.setHeight=function(t){this.height=t},r.prototype.getRight=function(){return this.x+this.width},r.prototype.getBottom=function(){return this.y+this.height},r.prototype.intersects=function(t){return!(this.getRight()<t.x||this.getBottom()<t.y||t.getRight()<this.x||t.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},t.exports=r},function(t,e,i){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function n(){}n.lastID=0,n.createID=function(t){return n.isPrimitive(t)?t:(null!=t.uniqueID||(t.uniqueID=n.getString(),n.lastID++),t.uniqueID)},n.getString=function(t){return null==t&&(t=n.lastID),"Object#"+t},n.isPrimitive=function(t){var e=void 0===t?"undefined":r(t);return null==t||"object"!=e&&"function"!=e},t.exports=n},function(t,e,i){"use strict";function r(t){if(!Array.isArray(t))return Array.from(t);for(var e=0,i=Array(t.length);e<t.length;e++)i[e]=t[e];return i}var n=i(0),o=i(7),a=i(3),s=i(1),h=i(6),l=i(5),d=i(17),g=i(29);function c(t){g.call(this),this.layoutQuality=n.QUALITY,this.createBendsAsNeeded=n.DEFAULT_CREATE_BENDS_AS_NEEDED,this.incremental=n.DEFAULT_INCREMENTAL,this.animationOnLayout=n.DEFAULT_ANIMATION_ON_LAYOUT,this.animationDuringLayout=n.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=n.DEFAULT_ANIMATION_PERIOD,this.uniformLeafNodeSizes=n.DEFAULT_UNIFORM_LEAF_NODE_SIZES,this.edgeToDummyNodes=new Map,this.graphManager=new o(this),this.isLayoutFinished=!1,this.isSubLayout=!1,this.isRemoteUse=!1,null!=t&&(this.isRemoteUse=t)}c.RANDOM_SEED=1,c.prototype=Object.create(g.prototype),c.prototype.getGraphManager=function(){return this.graphManager},c.prototype.getAllNodes=function(){return this.graphManager.getAllNodes()},c.prototype.getAllEdges=function(){return this.graphManager.getAllEdges()},c.prototype.getAllNodesToApplyGravitation=function(){return this.graphManager.getAllNodesToApplyGravitation()},c.prototype.newGraphManager=function(){var t=new o(this);return this.graphManager=t,t},c.prototype.newGraph=function(t){return new h(null,this.graphManager,t)},c.prototype.newNode=function(t){return new a(this.graphManager,t)},c.prototype.newEdge=function(t){return new s(null,null,t)},c.prototype.checkLayoutSuccess=function(){return null==this.graphManager.getRoot()||0==this.graphManager.getRoot().getNodes().length||this.graphManager.includesInvalidEdge()},c.prototype.runLayout=function(){var t;return this.isLayoutFinished=!1,this.tilingPreLayout&&this.tilingPreLayout(),this.initParameters(),t=!this.checkLayoutSuccess()&&this.layout(),"during"!==n.ANIMATE&&(t&&!this.isSubLayout&&this.doPostLayout(),this.tilingPostLayout&&this.tilingPostLayout(),this.isLayoutFinished=!0,t)},c.prototype.doPostLayout=function(){this.incremental||this.transform(),this.update()},c.prototype.update2=function(){if(this.createBendsAsNeeded&&(this.createBendpointsFromDummyNodes(),this.graphManager.resetAllEdges()),!this.isRemoteUse){for(var t=this.graphManager.getAllEdges(),e=0;e<t.length;e++)t[e];for(var i=this.graphManager.getRoot().getNodes(),e=0;e<i.length;e++)i[e];this.update(this.graphManager.getRoot())}},c.prototype.update=function(t){if(null==t)this.update2();else if(t instanceof a){if(null!=t.getChild())for(var e=t.getChild().getNodes(),i=0;i<e.length;i++)update(e[i]);null!=t.vGraphObject&&t.vGraphObject.update(t)}else t instanceof s?null!=t.vGraphObject&&t.vGraphObject.update(t):t instanceof h&&null!=t.vGraphObject&&t.vGraphObject.update(t)},c.prototype.initParameters=function(){this.isSubLayout||(this.layoutQuality=n.QUALITY,this.animationDuringLayout=n.DEFAULT_ANIMATION_DURING_LAYOUT,this.animationPeriod=n.DEFAULT_ANIMATION_PERIOD,this.animationOnLayout=n.DEFAULT_ANIMATION_ON_LAYOUT,this.incremental=n.DEFAULT_INCREMENTAL,this.createBendsAsNeeded=n.DEFAULT_CREATE_BENDS_AS_NEEDED,this.uniformLeafNodeSizes=n.DEFAULT_UNIFORM_LEAF_NODE_SIZES),this.animationDuringLayout&&(this.animationOnLayout=!1)},c.prototype.transform=function(t){if(void 0==t)this.transform(new l(0,0));else{var e=new d,i=this.graphManager.getRoot().updateLeftTop();if(null!=i){e.setWorldOrgX(t.x),e.setWorldOrgY(t.y),e.setDeviceOrgX(i.x),e.setDeviceOrgY(i.y);for(var r=this.getAllNodes(),n=0;n<r.length;n++)r[n].transform(e)}}},c.prototype.positionNodesRandomly=function(t){if(void 0==t)this.positionNodesRandomly(this.getGraphManager().getRoot()),this.getGraphManager().getRoot().updateBounds(!0);else for(var e,i,r=t.getNodes(),n=0;n<r.length;n++)null==(i=(e=r[n]).getChild())||0==i.getNodes().length?e.scatter():(this.positionNodesRandomly(i),e.updateBounds())},c.prototype.getFlatForest=function(){for(var t=[],e=!0,i=this.graphManager.getRoot().getNodes(),n=!0,o=0;o<i.length;o++)null!=i[o].getChild()&&(n=!1);if(!n)return t;var a=new Set,s=[],h=new Map,l=[];for(l=l.concat(i);l.length>0&&e;){for(s.push(l[0]);s.length>0&&e;){var d=s[0];s.splice(0,1),a.add(d);for(var g=d.getEdges(),o=0;o<g.length;o++){var c=g[o].getOtherEnd(d);if(h.get(d)!=c)if(a.has(c)){e=!1;break}else s.push(c),h.set(c,d)}}if(e){var u=[].concat(r(a));t.push(u);for(var o=0;o<u.length;o++){var f=u[o],p=l.indexOf(f);p>-1&&l.splice(p,1)}a=new Set,h=new Map}else t=[]}return t},c.prototype.createDummyNodesForBendpoints=function(t){for(var e=[],i=t.source,r=this.graphManager.calcLowestCommonAncestor(t.source,t.target),n=0;n<t.bendpoints.length;n++){var o=this.newNode(null);o.setRect(new Point(0,0),new Dimension(1,1)),r.add(o);var a=this.newEdge(null);this.graphManager.add(a,i,o),e.add(o),i=o}var a=this.newEdge(null);return this.graphManager.add(a,i,t.target),this.edgeToDummyNodes.set(t,e),t.isInterGraph()?this.graphManager.remove(t):r.remove(t),e},c.prototype.createBendpointsFromDummyNodes=function(){var t=[];t=t.concat(this.graphManager.getAllEdges()),t=[].concat(r(this.edgeToDummyNodes.keys())).concat(t);for(var e=0;e<t.length;e++){var i=t[e];if(i.bendpoints.length>0){for(var n=this.edgeToDummyNodes.get(i),o=0;o<n.length;o++){var a=n[o],s=new l(a.getCenterX(),a.getCenterY()),h=i.bendpoints.get(o);h.x=s.x,h.y=s.y,a.getOwner().remove(a)}this.graphManager.add(i,i.source,i.target)}}},c.transform=function(t,e,i,r){if(void 0==i||void 0==r)return t<=50?(n=9*e/500,o=e/10):(n=9*e/50,o=-8*e),n*t+o;var n,o,a=e;return t<=50?a-=(e-e/i)/50*(50-t):a+=(e*r-e)/50*(t-50),a},c.findCenterOfTree=function(t){var e=[];e=e.concat(t);var i=[],r=new Map,n=!1,o=null;(1==e.length||2==e.length)&&(n=!0,o=e[0]);for(var a=0;a<e.length;a++){var s=e[a],h=s.getNeighborsList().size;r.set(s,s.getNeighborsList().size),1==h&&i.push(s)}var l=[];for(l=l.concat(i);!n;){var d=[];d=d.concat(l),l=[];for(var a=0;a<e.length;a++){var s=e[a],g=e.indexOf(s);g>=0&&e.splice(g,1),s.getNeighborsList().forEach(function(t){if(0>i.indexOf(t)){var e=r.get(t)-1;1==e&&l.push(t),r.set(t,e)}})}i=i.concat(l),(1==e.length||2==e.length)&&(n=!0,o=e[0])}return o},c.prototype.setGraphManager=function(t){this.graphManager=t},t.exports=c},function(t,e,i){"use strict";function r(){}r.seed=1,r.x=0,r.nextDouble=function(){return r.x=1e4*Math.sin(r.seed++),r.x-Math.floor(r.x)},t.exports=r},function(t,e,i){"use strict";var r=i(5);function n(t,e){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}n.prototype.getWorldOrgX=function(){return this.lworldOrgX},n.prototype.setWorldOrgX=function(t){this.lworldOrgX=t},n.prototype.getWorldOrgY=function(){return this.lworldOrgY},n.prototype.setWorldOrgY=function(t){this.lworldOrgY=t},n.prototype.getWorldExtX=function(){return this.lworldExtX},n.prototype.setWorldExtX=function(t){this.lworldExtX=t},n.prototype.getWorldExtY=function(){return this.lworldExtY},n.prototype.setWorldExtY=function(t){this.lworldExtY=t},n.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},n.prototype.setDeviceOrgX=function(t){this.ldeviceOrgX=t},n.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},n.prototype.setDeviceOrgY=function(t){this.ldeviceOrgY=t},n.prototype.getDeviceExtX=function(){return this.ldeviceExtX},n.prototype.setDeviceExtX=function(t){this.ldeviceExtX=t},n.prototype.getDeviceExtY=function(){return this.ldeviceExtY},n.prototype.setDeviceExtY=function(t){this.ldeviceExtY=t},n.prototype.transformX=function(t){var e=0,i=this.lworldExtX;return 0!=i&&(e=this.ldeviceOrgX+(t-this.lworldOrgX)*this.ldeviceExtX/i),e},n.prototype.transformY=function(t){var e=0,i=this.lworldExtY;return 0!=i&&(e=this.ldeviceOrgY+(t-this.lworldOrgY)*this.ldeviceExtY/i),e},n.prototype.inverseTransformX=function(t){var e=0,i=this.ldeviceExtX;return 0!=i&&(e=this.lworldOrgX+(t-this.ldeviceOrgX)*this.lworldExtX/i),e},n.prototype.inverseTransformY=function(t){var e=0,i=this.ldeviceExtY;return 0!=i&&(e=this.lworldOrgY+(t-this.ldeviceOrgY)*this.lworldExtY/i),e},n.prototype.inverseTransformPoint=function(t){return new r(this.inverseTransformX(t.x),this.inverseTransformY(t.y))},t.exports=n},function(t,e,i){"use strict";var r=i(15),n=i(4),o=i(0),a=i(8),s=i(9);function h(){r.call(this),this.useSmartIdealEdgeLengthCalculation=n.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.gravityConstant=n.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=n.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=n.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=n.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.displacementThresholdPerNode=3*n.DEFAULT_EDGE_LENGTH/100,this.coolingFactor=n.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.initialCoolingFactor=n.DEFAULT_COOLING_FACTOR_INCREMENTAL,this.totalDisplacement=0,this.oldTotalDisplacement=0,this.maxIterations=n.MAX_ITERATIONS}for(var l in h.prototype=Object.create(r.prototype),r)h[l]=r[l];h.prototype.initParameters=function(){r.prototype.initParameters.call(this,arguments),this.totalIterations=0,this.notAnimatedIterations=0,this.useFRGridVariant=n.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION,this.grid=[]},h.prototype.calcIdealEdgeLengths=function(){for(var t,e,i,r,a,s,h,l=this.getGraphManager().getAllEdges(),d=0;d<l.length;d++)e=(t=l[d]).idealLength,t.isInterGraph&&(r=t.getSource(),a=t.getTarget(),s=t.getSourceInLca().getEstimatedSize(),h=t.getTargetInLca().getEstimatedSize(),this.useSmartIdealEdgeLengthCalculation&&(t.idealLength+=s+h-2*o.SIMPLE_NODE_SIZE),i=t.getLca().getInclusionTreeDepth(),t.idealLength+=e*n.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR*(r.getInclusionTreeDepth()+a.getInclusionTreeDepth()-2*i))},h.prototype.initSpringEmbedder=function(){var t=this.getAllNodes().length;this.incremental?(t>n.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*n.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(t-n.ADAPTATION_LOWER_NODE_LIMIT)/(n.ADAPTATION_UPPER_NODE_LIMIT-n.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-n.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=n.MAX_NODE_DISPLACEMENT_INCREMENTAL):(t>n.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(n.COOLING_ADAPTATION_FACTOR,1-(t-n.ADAPTATION_LOWER_NODE_LIMIT)/(n.ADAPTATION_UPPER_NODE_LIMIT-n.ADAPTATION_LOWER_NODE_LIMIT)*(1-n.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=n.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(5*this.getAllNodes().length,this.maxIterations),this.displacementThresholdPerNode=3*n.DEFAULT_EDGE_LENGTH/100,this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},h.prototype.calcSpringForces=function(){for(var t,e=this.getAllEdges(),i=0;i<e.length;i++)t=e[i],this.calcSpringForce(t,t.idealLength)},h.prototype.calcRepulsionForces=function(){var t,e,i,r,o,a=!(arguments.length>0)||void 0===arguments[0]||arguments[0],s=arguments.length>1&&void 0!==arguments[1]&&arguments[1],h=this.getAllNodes();if(this.useFRGridVariant)for(this.totalIterations%n.GRID_CALCULATION_CHECK_PERIOD==1&&a&&this.updateGrid(),o=new Set,t=0;t<h.length;t++)i=h[t],this.calculateRepulsionForceOfANode(i,o,a,s),o.add(i);else for(t=0;t<h.length;t++)for(i=h[t],e=t+1;e<h.length;e++)r=h[e],i.getOwner()==r.getOwner()&&this.calcRepulsionForce(i,r)},h.prototype.calcGravitationalForces=function(){for(var t,e=this.getAllNodesToApplyGravitation(),i=0;i<e.length;i++)t=e[i],this.calcGravitationalForce(t)},h.prototype.moveNodes=function(){for(var t=this.getAllNodes(),e=0;e<t.length;e++)t[e].move()},h.prototype.calcSpringForce=function(t,e){var i,r,n,o,a=t.getSource(),s=t.getTarget();if(this.uniformLeafNodeSizes&&null==a.getChild()&&null==s.getChild())t.updateLengthSimple();else if(t.updateLength(),t.isOverlapingSourceAndTarget)return;0!=(i=t.getLength())&&(n=(r=t.edgeElasticity*(i-e))*(t.lengthX/i),o=r*(t.lengthY/i),a.springForceX+=n,a.springForceY+=o,s.springForceX-=n,s.springForceY-=o)},h.prototype.calcRepulsionForce=function(t,e){var i,r,o,h,l,d,g,c=t.getRect(),u=e.getRect(),f=[,,],p=[,,,,];if(c.intersects(u)){a.calcSeparationAmount(c,u,f,n.DEFAULT_EDGE_LENGTH/2),d=2*f[0],g=2*f[1];var m=t.noOfChildren*e.noOfChildren/(t.noOfChildren+e.noOfChildren);t.repulsionForceX-=m*d,t.repulsionForceY-=m*g,e.repulsionForceX+=m*d,e.repulsionForceY+=m*g}else this.uniformLeafNodeSizes&&null==t.getChild()&&null==e.getChild()?(i=u.getCenterX()-c.getCenterX(),r=u.getCenterY()-c.getCenterY()):(a.getIntersection(c,u,p),i=p[2]-p[0],r=p[3]-p[1]),Math.abs(i)<n.MIN_REPULSION_DIST&&(i=s.sign(i)*n.MIN_REPULSION_DIST),Math.abs(r)<n.MIN_REPULSION_DIST&&(r=s.sign(r)*n.MIN_REPULSION_DIST),h=Math.sqrt(o=i*i+r*r),d=(l=(t.nodeRepulsion/2+e.nodeRepulsion/2)*t.noOfChildren*e.noOfChildren/o)*i/h,g=l*r/h,t.repulsionForceX-=d,t.repulsionForceY-=g,e.repulsionForceX+=d,e.repulsionForceY+=g},h.prototype.calcGravitationalForce=function(t){var e,i,r,n,o,a,s,h;i=((e=t.getOwner()).getRight()+e.getLeft())/2,r=(e.getTop()+e.getBottom())/2,n=t.getCenterX()-i,o=t.getCenterY()-r,a=Math.abs(n)+t.getWidth()/2,s=Math.abs(o)+t.getHeight()/2,t.getOwner()==this.graphManager.getRoot()?(a>(h=e.getEstimatedSize()*this.gravityRangeFactor)||s>h)&&(t.gravitationForceX=-this.gravityConstant*n,t.gravitationForceY=-this.gravityConstant*o):(a>(h=e.getEstimatedSize()*this.compoundGravityRangeFactor)||s>h)&&(t.gravitationForceX=-this.gravityConstant*n*this.compoundGravityConstant,t.gravitationForceY=-this.gravityConstant*o*this.compoundGravityConstant)},h.prototype.isConverged=function(){var t,e=!1;return this.totalIterations>this.maxIterations/3&&(e=2>Math.abs(this.totalDisplacement-this.oldTotalDisplacement)),t=this.totalDisplacement<this.totalDisplacementThreshold,this.oldTotalDisplacement=this.totalDisplacement,t||e},h.prototype.animate=function(){this.animationDuringLayout&&!this.isSubLayout&&(this.notAnimatedIterations==this.animationPeriod?(this.update(),this.notAnimatedIterations=0):this.notAnimatedIterations++)},h.prototype.calcNoOfChildrenForAllNodes=function(){for(var t,e=this.graphManager.getAllNodes(),i=0;i<e.length;i++)(t=e[i]).noOfChildren=t.getNoOfChildren()},h.prototype.calcGrid=function(t){var e=0,i=0;e=parseInt(Math.ceil((t.getRight()-t.getLeft())/this.repulsionRange)),i=parseInt(Math.ceil((t.getBottom()-t.getTop())/this.repulsionRange));for(var r=Array(e),n=0;n<e;n++)r[n]=Array(i);for(var n=0;n<e;n++)for(var o=0;o<i;o++)r[n][o]=[];return r},h.prototype.addNodeToGrid=function(t,e,i){var r=0,n=0,o=0,a=0;r=parseInt(Math.floor((t.getRect().x-e)/this.repulsionRange)),n=parseInt(Math.floor((t.getRect().width+t.getRect().x-e)/this.repulsionRange)),o=parseInt(Math.floor((t.getRect().y-i)/this.repulsionRange)),a=parseInt(Math.floor((t.getRect().height+t.getRect().y-i)/this.repulsionRange));for(var s=r;s<=n;s++)for(var h=o;h<=a;h++)this.grid[s][h].push(t),t.setGridCoordinates(r,n,o,a)},h.prototype.updateGrid=function(){var t,e,i=this.getAllNodes();for(this.grid=this.calcGrid(this.graphManager.getRoot()),t=0;t<i.length;t++)e=i[t],this.addNodeToGrid(e,this.graphManager.getRoot().getLeft(),this.graphManager.getRoot().getTop())},h.prototype.calculateRepulsionForceOfANode=function(t,e,i,r){if(this.totalIterations%n.GRID_CALCULATION_CHECK_PERIOD==1&&i||r){var o,a=new Set;t.surrounding=[];for(var s=this.grid,h=t.startX-1;h<t.finishX+2;h++)for(var l=t.startY-1;l<t.finishY+2;l++)if(!(h<0||l<0||h>=s.length||l>=s[0].length)){for(var d=0;d<s[h][l].length;d++)if(o=s[h][l][d],t.getOwner()==o.getOwner()&&t!=o&&!e.has(o)&&!a.has(o)){var g=Math.abs(t.getCenterX()-o.getCenterX())-(t.getWidth()/2+o.getWidth()/2),c=Math.abs(t.getCenterY()-o.getCenterY())-(t.getHeight()/2+o.getHeight()/2);g<=this.repulsionRange&&c<=this.repulsionRange&&a.add(o)}}t.surrounding=[].concat(function(t){if(!Array.isArray(t))return Array.from(t);for(var e=0,i=Array(t.length);e<t.length;e++)i[e]=t[e];return i}(a))}for(h=0;h<t.surrounding.length;h++)this.calcRepulsionForce(t,t.surrounding[h])},h.prototype.calcRepulsionRange=function(){return 0},t.exports=h},function(t,e,i){"use strict";var r=i(1),n=i(4);function o(t,e,i){r.call(this,t,e,i),this.idealLength=n.DEFAULT_EDGE_LENGTH,this.edgeElasticity=n.DEFAULT_SPRING_STRENGTH}for(var a in o.prototype=Object.create(r.prototype),r)o[a]=r[a];t.exports=o},function(t,e,i){"use strict";var r=i(3),n=i(4);function o(t,e,i,o){r.call(this,t,e,i,o),this.nodeRepulsion=n.DEFAULT_REPULSION_STRENGTH,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 o.prototype=Object.create(r.prototype),r)o[a]=r[a];o.prototype.setGridCoordinates=function(t,e,i,r){this.startX=t,this.finishX=e,this.startY=i,this.finishY=r},t.exports=o},function(t,e,i){"use strict";function r(t,e){this.width=0,this.height=0,null!==t&&null!==e&&(this.height=e,this.width=t)}r.prototype.getWidth=function(){return this.width},r.prototype.setWidth=function(t){this.width=t},r.prototype.getHeight=function(){return this.height},r.prototype.setHeight=function(t){this.height=t},t.exports=r},function(t,e,i){"use strict";var r=i(14);function n(){this.map={},this.keys=[]}n.prototype.put=function(t,e){var i=r.createID(t);this.contains(i)||(this.map[i]=e,this.keys.push(t))},n.prototype.contains=function(t){return r.createID(t),null!=this.map[t]},n.prototype.get=function(t){var e=r.createID(t);return this.map[e]},n.prototype.keySet=function(){return this.keys},t.exports=n},function(t,e,i){"use strict";var r=i(14);function n(){this.set={}}n.prototype.add=function(t){var e=r.createID(t);this.contains(e)||(this.set[e]=t)},n.prototype.remove=function(t){delete this.set[r.createID(t)]},n.prototype.clear=function(){this.set={}},n.prototype.contains=function(t){return this.set[r.createID(t)]==t},n.prototype.isEmpty=function(){return 0===this.size()},n.prototype.size=function(){return Object.keys(this.set).length},n.prototype.addAllTo=function(t){for(var e=Object.keys(this.set),i=e.length,r=0;r<i;r++)t.push(this.set[e[r]])},n.prototype.size=function(){return Object.keys(this.set).length},n.prototype.addAll=function(t){for(var e=t.length,i=0;i<e;i++){var r=t[i];this.add(r)}},t.exports=n},function(t,e,i){"use strict";function r(){}r.multMat=function(t,e){for(var i=[],r=0;r<t.length;r++){i[r]=[];for(var n=0;n<e[0].length;n++){i[r][n]=0;for(var o=0;o<t[0].length;o++)i[r][n]+=t[r][o]*e[o][n]}}return i},r.transpose=function(t){for(var e=[],i=0;i<t[0].length;i++){e[i]=[];for(var r=0;r<t.length;r++)e[i][r]=t[r][i]}return e},r.multCons=function(t,e){for(var i=[],r=0;r<t.length;r++)i[r]=t[r]*e;return i},r.minusOp=function(t,e){for(var i=[],r=0;r<t.length;r++)i[r]=t[r]-e[r];return i},r.dotProduct=function(t,e){for(var i=0,r=0;r<t.length;r++)i+=t[r]*e[r];return i},r.mag=function(t){return Math.sqrt(this.dotProduct(t,t))},r.normalize=function(t){for(var e=[],i=this.mag(t),r=0;r<t.length;r++)e[r]=t[r]/i;return e},r.multGamma=function(t){for(var e=[],i=0,r=0;r<t.length;r++)i+=t[r];i*=-1/t.length;for(var n=0;n<t.length;n++)e[n]=i+t[n];return e},r.multL=function(t,e,i){for(var r=[],n=[],o=[],a=0;a<e[0].length;a++){for(var s=0,h=0;h<e.length;h++)s+=-.5*e[h][a]*t[h];n[a]=s}for(var l=0;l<i.length;l++){for(var d=0,g=0;g<i.length;g++)d+=i[l][g]*n[g];o[l]=d}for(var c=0;c<e.length;c++){for(var u=0,f=0;f<e[0].length;f++)u+=e[c][f]*o[f];r[c]=u}return r},t.exports=r},function(t,e,i){"use strict";var r=function(){function t(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,i,r){return i&&t(e.prototype,i),r&&t(e,r),e}}(),n=i(11);t.exports=function(){function t(e,i){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");(null!==i||void 0!==i)&&(this.compareFunction=this._defaultCompareFunction);var r=void 0;r=e instanceof n?e.size():e.length,this._quicksort(e,0,r-1)}return r(t,[{key:"_quicksort",value:function(t,e,i){if(e<i){var r=this._partition(t,e,i);this._quicksort(t,e,r),this._quicksort(t,r+1,i)}}},{key:"_partition",value:function(t,e,i){for(var r=this._get(t,e),n=e,o=i;;){for(;this.compareFunction(r,this._get(t,o));)o--;for(;this.compareFunction(this._get(t,n),r);)n++;if(!(n<o))return o;this._swap(t,n,o),n++,o--}}},{key:"_get",value:function(t,e){return t instanceof n?t.get_object_at(e):t[e]}},{key:"_set",value:function(t,e,i){t instanceof n?t.set_object_at(e,i):t[e]=i}},{key:"_swap",value:function(t,e,i){var r=this._get(t,e);this._set(t,e,this._get(t,i)),this._set(t,i,r)}},{key:"_defaultCompareFunction",value:function(t,e){return e>t}}]),t}()},function(t,e,i){"use strict";function r(){}r.svd=function(t){this.U=null,this.V=null,this.s=null,this.m=0,this.n=0,this.m=t.length,this.n=t[0].length;var e=Math.min(this.m,this.n);this.s=function(t){for(var e=[];t-- >0;)e.push(0);return e}(Math.min(this.m+1,this.n)),this.U=function t(e){if(0==e.length)return 0;for(var i=[],r=0;r<e[0];r++)i.push(t(e.slice(1)));return i}([this.m,e]),this.V=function t(e){if(0==e.length)return 0;for(var i=[],r=0;r<e[0];r++)i.push(t(e.slice(1)));return i}([this.n,this.n]);for(var i=function(t){for(var e=[];t-- >0;)e.push(0);return e}(this.n),n=function(t){for(var e=[];t-- >0;)e.push(0);return e}(this.m),o=Math.min(this.m-1,this.n),a=Math.max(0,Math.min(this.n-2,this.m)),s=0;s<Math.max(o,a);s++){if(s<o){this.s[s]=0;for(var h=s;h<this.m;h++)this.s[s]=r.hypot(this.s[s],t[h][s]);if(0!==this.s[s]){t[s][s]<0&&(this.s[s]=-this.s[s]);for(var l=s;l<this.m;l++)t[l][s]/=this.s[s];t[s][s]+=1}this.s[s]=-this.s[s]}for(var d=s+1;d<this.n;d++){if(p=s<o,m=0!==this.s[s],p&&m){for(var g=0,c=s;c<this.m;c++)g+=t[c][s]*t[c][d];g=-g/t[s][s];for(var u=s;u<this.m;u++)t[u][d]+=g*t[u][s]}i[d]=t[s][d]}if(v=s<o)for(var f=s;f<this.m;f++)this.U[f][s]=t[f][s];if(s<a){i[s]=0;for(var p,m,v,y,E,T=s+1;T<this.n;T++)i[s]=r.hypot(i[s],i[T]);if(0!==i[s]){i[s+1]<0&&(i[s]=-i[s]);for(var N=s+1;N<this.n;N++)i[N]/=i[s];i[s+1]+=1}if(i[s]=-i[s],y=s+1<this.m,E=0!==i[s],y&&E){for(var A=s+1;A<this.m;A++)n[A]=0;for(var w=s+1;w<this.n;w++)for(var L=s+1;L<this.m;L++)n[L]+=i[w]*t[L][w];for(var C=s+1;C<this.n;C++)for(var M=-i[C]/i[s+1],_=s+1;_<this.m;_++)t[_][C]+=M*n[_]}for(var I=s+1;I<this.n;I++)this.V[I][s]=i[I]}}var x=Math.min(this.n,this.m+1);o<this.n&&(this.s[o]=t[o][o]),this.m<x&&(this.s[x-1]=0),a+1<x&&(i[a]=t[a][x-1]),i[x-1]=0;for(var O=o;O<e;O++){for(var D=0;D<this.m;D++)this.U[D][O]=0;this.U[O][O]=1}for(var R=o-1;R>=0;R--)if(0!==this.s[R]){for(var b=R+1;b<e;b++){for(var F=0,S=R;S<this.m;S++)F+=this.U[S][R]*this.U[S][b];F=-F/this.U[R][R];for(var G=R;G<this.m;G++)this.U[G][b]+=F*this.U[G][R]}for(var P=R;P<this.m;P++)this.U[P][R]=-this.U[P][R];this.U[R][R]=1+this.U[R][R];for(var U=0;U<R-1;U++)this.U[U][R]=0}else{for(var k=0;k<this.m;k++)this.U[k][R]=0;this.U[R][R]=1}for(var Y=this.n-1;Y>=0;Y--){if(td=Y<a,tg=0!==i[Y],td&&tg)for(var H=Y+1;H<e;H++){for(var X=0,z=Y+1;z<this.n;z++)X+=this.V[z][Y]*this.V[z][H];X=-X/this.V[Y+1][Y];for(var B=Y+1;B<this.n;B++)this.V[B][H]+=X*this.V[B][Y]}for(var V=0;V<this.n;V++)this.V[V][Y]=0;this.V[Y][Y]=1}for(var W=x-1,$=0;x>0;){var j=void 0,q=void 0;for(j=x-2;j>=-1&&-1!==j;j--)if(Math.abs(i[j])<=16033346880071782e-307+2220446049250313e-31*(Math.abs(this.s[j])+Math.abs(this.s[j+1]))){i[j]=0;break}if(j===x-2)q=4;else{var K=void 0;for(K=x-1;K>=j&&K!==j;K--){var Z=(K!==x?Math.abs(i[K]):0)+(K!==j+1?Math.abs(i[K-1]):0);if(Math.abs(this.s[K])<=16033346880071782e-307+2220446049250313e-31*Z){this.s[K]=0;break}}K===j?q=3:K===x-1?q=1:(q=2,j=K)}switch(j++,q){case 1:var Q=i[x-2];i[x-2]=0;for(var J=x-2;J>=j;J--){var tt=r.hypot(this.s[J],Q),te=this.s[J]/tt,ti=Q/tt;this.s[J]=tt,J!==j&&(Q=-ti*i[J-1],i[J-1]=te*i[J-1]);for(var tr=0;tr<this.n;tr++)tt=te*this.V[tr][J]+ti*this.V[tr][x-1],this.V[tr][x-1]=-ti*this.V[tr][J]+te*this.V[tr][x-1],this.V[tr][J]=tt}break;case 2:var tn=i[j-1];i[j-1]=0;for(var to=j;to<x;to++){var ta=r.hypot(this.s[to],tn),ts=this.s[to]/ta,th=tn/ta;this.s[to]=ta,tn=-th*i[to],i[to]=ts*i[to];for(var tl=0;tl<this.m;tl++)ta=ts*this.U[tl][to]+th*this.U[tl][j-1],this.U[tl][j-1]=-th*this.U[tl][to]+ts*this.U[tl][j-1],this.U[tl][to]=ta}break;case 3:var td,tg,tc,tu,tf=Math.max(Math.max(Math.max(Math.max(Math.abs(this.s[x-1]),Math.abs(this.s[x-2])),Math.abs(i[x-2])),Math.abs(this.s[j])),Math.abs(i[j])),tp=this.s[x-1]/tf,tm=this.s[x-2]/tf,tv=i[x-2]/tf,ty=this.s[j]/tf,tE=i[j]/tf,tT=((tm+tp)*(tm-tp)+tv*tv)/2,tN=tp*tv*(tp*tv),tA=0;tc=0!==tT,tu=0!==tN,(tc||tu)&&(tA=Math.sqrt(tT*tT+tN),tT<0&&(tA=-tA),tA=tN/(tT+tA));for(var tw=(ty+tp)*(ty-tp)+tA,tL=ty*tE,tC=j;tC<x-1;tC++){var tM=r.hypot(tw,tL),t_=tw/tM,tI=tL/tM;tC!==j&&(i[tC-1]=tM),tw=t_*this.s[tC]+tI*i[tC],i[tC]=t_*i[tC]-tI*this.s[tC],tL=tI*this.s[tC+1],this.s[tC+1]=t_*this.s[tC+1];for(var tx=0;tx<this.n;tx++)tM=t_*this.V[tx][tC]+tI*this.V[tx][tC+1],this.V[tx][tC+1]=-tI*this.V[tx][tC]+t_*this.V[tx][tC+1],this.V[tx][tC]=tM;if(tM=r.hypot(tw,tL),t_=tw/tM,tI=tL/tM,this.s[tC]=tM,tw=t_*i[tC]+tI*this.s[tC+1],this.s[tC+1]=-tI*i[tC]+t_*this.s[tC+1],tL=tI*i[tC+1],i[tC+1]=t_*i[tC+1],tC<this.m-1)for(var tO=0;tO<this.m;tO++)tM=t_*this.U[tO][tC]+tI*this.U[tO][tC+1],this.U[tO][tC+1]=-tI*this.U[tO][tC]+t_*this.U[tO][tC+1],this.U[tO][tC]=tM}i[x-2]=tw;break;case 4:if(this.s[j]<=0&&(this.s[j]=this.s[j]<0?-this.s[j]:0,1))for(var tD=0;tD<=W;tD++)this.V[tD][j]=-this.V[tD][j];for(;j<W&&!(this.s[j]>=this.s[j+1]);){var tR=this.s[j];if(this.s[j]=this.s[j+1],this.s[j+1]=tR,j<this.n-1)for(var tb=0;tb<this.n;tb++)tR=this.V[tb][j+1],this.V[tb][j+1]=this.V[tb][j],this.V[tb][j]=tR;if(j<this.m-1)for(var tF=0;tF<this.m;tF++)tR=this.U[tF][j+1],this.U[tF][j+1]=this.U[tF][j],this.U[tF][j]=tR;j++}x--}}return{U:this.U,V:this.V,S:this.s}},r.hypot=function(t,e){var i=void 0;return Math.abs(t)>Math.abs(e)?(i=e/t,i=Math.abs(t)*Math.sqrt(1+i*i)):0!=e?(i=t/e,i=Math.abs(e)*Math.sqrt(1+i*i)):i=0,i},t.exports=r},function(t,e,i){"use strict";var r=function(){function t(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,i,r){return i&&t(e.prototype,i),r&&t(e,r),e}}();t.exports=function(){function t(e,i){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1;if(!(this instanceof t))throw TypeError("Cannot call a class as a function");this.sequence1=e,this.sequence2=i,this.match_score=r,this.mismatch_penalty=n,this.gap_penalty=o,this.iMax=e.length+1,this.jMax=i.length+1,this.grid=Array(this.iMax);for(var a=0;a<this.iMax;a++){this.grid[a]=Array(this.jMax);for(var s=0;s<this.jMax;s++)this.grid[a][s]=0}this.tracebackGrid=Array(this.iMax);for(var h=0;h<this.iMax;h++){this.tracebackGrid[h]=Array(this.jMax);for(var l=0;l<this.jMax;l++)this.tracebackGrid[h][l]=[null,null,null]}this.alignments=[],this.score=-1,this.computeGrids()}return r(t,[{key:"getScore",value:function(){return this.score}},{key:"getAlignments",value:function(){return this.alignments}},{key:"computeGrids",value:function(){for(var t=1;t<this.jMax;t++)this.grid[0][t]=this.grid[0][t-1]+this.gap_penalty,this.tracebackGrid[0][t]=[!1,!1,!0];for(var e=1;e<this.iMax;e++)this.grid[e][0]=this.grid[e-1][0]+this.gap_penalty,this.tracebackGrid[e][0]=[!1,!0,!1];for(var i=1;i<this.iMax;i++)for(var r=1;r<this.jMax;r++){var n=[this.sequence1[i-1]===this.sequence2[r-1]?this.grid[i-1][r-1]+this.match_score:this.grid[i-1][r-1]+this.mismatch_penalty,this.grid[i-1][r]+this.gap_penalty,this.grid[i][r-1]+this.gap_penalty],o=this.arrayAllMaxIndexes(n);this.grid[i][r]=n[o[0]],this.tracebackGrid[i][r]=[o.includes(0),o.includes(1),o.includes(2)]}this.score=this.grid[this.iMax-1][this.jMax-1]}},{key:"alignmentTraceback",value:function(){var t=[];for(t.push({pos:[this.sequence1.length,this.sequence2.length],seq1:"",seq2:""});t[0];){var e=t[0],i=this.tracebackGrid[e.pos[0]][e.pos[1]];i[0]&&t.push({pos:[e.pos[0]-1,e.pos[1]-1],seq1:this.sequence1[e.pos[0]-1]+e.seq1,seq2:this.sequence2[e.pos[1]-1]+e.seq2}),i[1]&&t.push({pos:[e.pos[0]-1,e.pos[1]],seq1:this.sequence1[e.pos[0]-1]+e.seq1,seq2:"-"+e.seq2}),i[2]&&t.push({pos:[e.pos[0],e.pos[1]-1],seq1:"-"+e.seq1,seq2:this.sequence2[e.pos[1]-1]+e.seq2}),0===e.pos[0]&&0===e.pos[1]&&this.alignments.push({sequence1:e.seq1,sequence2:e.seq2}),t.shift()}return this.alignments}},{key:"getAllIndexes",value:function(t,e){for(var i=[],r=-1;-1!==(r=t.indexOf(e,r+1));)i.push(r);return i}},{key:"arrayAllMaxIndexes",value:function(t){return this.getAllIndexes(t,Math.max.apply(null,t))}}]),t}()},function(t,e,i){"use strict";var r=function(){};r.FDLayout=i(18),r.FDLayoutConstants=i(4),r.FDLayoutEdge=i(19),r.FDLayoutNode=i(20),r.DimensionD=i(21),r.HashMap=i(22),r.HashSet=i(23),r.IGeometry=i(8),r.IMath=i(9),r.Integer=i(10),r.Point=i(12),r.PointD=i(5),r.RandomSeed=i(16),r.RectangleD=i(13),r.Transform=i(17),r.UniqueIDGeneretor=i(14),r.Quicksort=i(25),r.LinkedList=i(11),r.LGraphObject=i(2),r.LGraph=i(6),r.LEdge=i(1),r.LGraphManager=i(7),r.LNode=i(3),r.Layout=i(15),r.LayoutConstants=i(0),r.NeedlemanWunsch=i(27),r.Matrix=i(24),r.SVD=i(26),t.exports=r},function(t,e,i){"use strict";function r(){this.listeners=[]}var n=r.prototype;n.addListener=function(t,e){this.listeners.push({event:t,callback:e})},n.removeListener=function(t,e){for(var i=this.listeners.length;i>=0;i--){var r=this.listeners[i];r.event===t&&r.callback===e&&this.listeners.splice(i,1)}},n.emit=function(t,e){for(var i=0;i<this.listeners.length;i++){var r=this.listeners[i];t===r.event&&r.callback(e)}},t.exports=r}],e={};function i(r){if(e[r])return e[r].exports;var n=e[r]={i:r,l:!1,exports:{}};return t[r].call(n.exports,n,n.exports,i),n.l=!0,n.exports}return i.m=t,i.c=e,i.i=function(t){return t},i.d=function(t,e,r){i.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=28)}()},75142:function(t,e,i){var r;r=i(42454),t.exports=(()=>{"use strict";var t={45:(t,e,i)=>{var r={};r.layoutBase=i(551),r.CoSEConstants=i(806),r.CoSEEdge=i(767),r.CoSEGraph=i(880),r.CoSEGraphManager=i(578),r.CoSELayout=i(765),r.CoSENode=i(991),r.ConstraintHandler=i(902),t.exports=r},806:(t,e,i)=>{var r=i(551).FDLayoutConstants;function n(){}for(var o in r)n[o]=r[o];n.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,n.DEFAULT_RADIAL_SEPARATION=r.DEFAULT_EDGE_LENGTH,n.DEFAULT_COMPONENT_SEPERATION=60,n.TILE=!0,n.TILING_PADDING_VERTICAL=10,n.TILING_PADDING_HORIZONTAL=10,n.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,n.ENFORCE_CONSTRAINTS=!0,n.APPLY_LAYOUT=!0,n.RELAX_MOVEMENT_ON_CONSTRAINTS=!0,n.TREE_REDUCTION_ON_INCREMENTAL=!0,n.PURE_INCREMENTAL=n.DEFAULT_INCREMENTAL,t.exports=n},767:(t,e,i)=>{var r=i(551).FDLayoutEdge;function n(t,e,i){r.call(this,t,e,i)}for(var o in n.prototype=Object.create(r.prototype),r)n[o]=r[o];t.exports=n},880:(t,e,i)=>{var r=i(551).LGraph;function n(t,e,i){r.call(this,t,e,i)}for(var o in n.prototype=Object.create(r.prototype),r)n[o]=r[o];t.exports=n},578:(t,e,i)=>{var r=i(551).LGraphManager;function n(t){r.call(this,t)}for(var o in n.prototype=Object.create(r.prototype),r)n[o]=r[o];t.exports=n},765:(t,e,i)=>{var r=i(551).FDLayout,n=i(578),o=i(880),a=i(991),s=i(767),h=i(806),l=i(902),d=i(551).FDLayoutConstants,g=i(551).LayoutConstants,c=i(551).Point,u=i(551).PointD,f=i(551).DimensionD,p=i(551).Layout,m=i(551).Integer,v=i(551).IGeometry,y=i(551).LGraph,E=i(551).Transform,T=i(551).LinkedList;function N(){r.call(this),this.toBeTiled={},this.constraints={}}for(var A in N.prototype=Object.create(r.prototype),r)N[A]=r[A];N.prototype.newGraphManager=function(){var t=new n(this);return this.graphManager=t,t},N.prototype.newGraph=function(t){return new o(null,this.graphManager,t)},N.prototype.newNode=function(t){return new a(this.graphManager,t)},N.prototype.newEdge=function(t){return new s(null,null,t)},N.prototype.initParameters=function(){r.prototype.initParameters.call(this,arguments),this.isSubLayout||(h.DEFAULT_EDGE_LENGTH<10?this.idealEdgeLength=10:this.idealEdgeLength=h.DEFAULT_EDGE_LENGTH,this.useSmartIdealEdgeLengthCalculation=h.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.gravityConstant=d.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=d.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=d.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=d.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.prunedNodesAll=[],this.growTreeIterations=0,this.afterGrowthIterations=0,this.isTreeGrowing=!1,this.isGrowthFinished=!1)},N.prototype.initSpringEmbedder=function(){r.prototype.initSpringEmbedder.call(this),this.coolingCycle=0,this.maxCoolingCycle=this.maxIterations/d.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=.04,this.coolingAdjuster=1},N.prototype.layout=function(){return g.DEFAULT_CREATE_BENDS_AS_NEEDED&&(this.createBendpoints(),this.graphManager.resetAllEdges()),this.level=0,this.classicLayout()},N.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){if(h.TREE_REDUCTION_ON_INCREMENTAL){this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var t=new Set(this.getAllNodes()),e=this.nodesWithGravity.filter(function(e){return t.has(e)});this.graphManager.setAllNodesToApplyGravitation(e)}}else{var i=this.getFlatForest();if(i.length>0)this.positionNodesRadially(i);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var t=new Set(this.getAllNodes()),e=this.nodesWithGravity.filter(function(e){return t.has(e)});this.graphManager.setAllNodesToApplyGravitation(e),this.positionNodesRandomly()}}return Object.keys(this.constraints).length>0&&(l.handleConstraints(this),this.initConstraintVariables()),this.initSpringEmbedder(),h.APPLY_LAYOUT&&this.runSpringEmbedder(),!0},N.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(!(this.prunedNodesAll.length>0))return!0;else this.isTreeGrowing=!0;if(this.totalIterations%d.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(!(this.prunedNodesAll.length>0))return!0;else this.isTreeGrowing=!0;this.coolingCycle++,0==this.layoutQuality?this.coolingAdjuster=this.coolingCycle:1==this.layoutQuality&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(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 t=new Set(this.getAllNodes()),e=this.nodesWithGravity.filter(function(e){return t.has(e)});this.graphManager.setAllNodesToApplyGravitation(e),this.graphManager.updateBounds(),this.updateGrid(),h.PURE_INCREMENTAL?this.coolingFactor=d.DEFAULT_COOLING_FACTOR_INCREMENTAL/2:this.coolingFactor=d.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()),h.PURE_INCREMENTAL?this.coolingFactor=d.DEFAULT_COOLING_FACTOR_INCREMENTAL/2*((100-this.afterGrowthIterations)/100):this.coolingFactor=d.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var i=!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(i,r),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},N.prototype.getPositionsData=function(){for(var t=this.graphManager.getAllNodes(),e={},i=0;i<t.length;i++){var r=t[i].rect,n=t[i].id;e[n]={id:n,x:r.getCenterX(),y:r.getCenterY(),w:r.width,h:r.height}}return e},N.prototype.runSpringEmbedder=function(){this.initialAnimationPeriod=25,this.animationPeriod=this.initialAnimationPeriod;var t=!1;if("during"===d.ANIMATE)this.emit("layoutstarted");else{for(;!t;)t=this.tick();this.graphManager.updateBounds()}},N.prototype.moveNodes=function(){for(var t,e=this.getAllNodes(),i=0;i<e.length;i++)e[i].calculateDisplacement();Object.keys(this.constraints).length>0&&this.updateDisplacements();for(var i=0;i<e.length;i++)e[i].move()},N.prototype.initConstraintVariables=function(){var t=this;this.idToNodeMap=new Map,this.fixedNodeSet=new Set;for(var e=this.graphManager.getAllNodes(),i=0;i<e.length;i++){var r=e[i];this.idToNodeMap.set(r.id,r)}if(this.constraints.fixedNodeConstraint){this.constraints.fixedNodeConstraint.forEach(function(e){t.fixedNodeSet.add(e.nodeId)});for(var r,e=this.graphManager.getAllNodes(),i=0;i<e.length;i++)if(null!=(r=e[i]).getChild()){var n=function e(i){for(var r,n=i.getChild().getNodes(),o=0,a=0;a<n.length;a++)null==(r=n[a]).getChild()?t.fixedNodeSet.has(r.id)&&(o+=100):o+=e(r);return o}(r);n>0&&(r.fixedNodeWeight=n)}}if(this.constraints.relativePlacementConstraint){var o=new Map,a=new Map;if(this.dummyToNodeForVerticalAlignment=new Map,this.dummyToNodeForHorizontalAlignment=new Map,this.fixedNodesOnHorizontal=new Set,this.fixedNodesOnVertical=new Set,this.fixedNodeSet.forEach(function(e){t.fixedNodesOnHorizontal.add(e),t.fixedNodesOnVertical.add(e)}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var s=this.constraints.alignmentConstraint.vertical,i=0;i<s.length;i++)this.dummyToNodeForVerticalAlignment.set("dummy"+i,[]),s[i].forEach(function(e){o.set(e,"dummy"+i),t.dummyToNodeForVerticalAlignment.get("dummy"+i).push(e),t.fixedNodeSet.has(e)&&t.fixedNodesOnHorizontal.add("dummy"+i)});if(this.constraints.alignmentConstraint.horizontal)for(var l=this.constraints.alignmentConstraint.horizontal,i=0;i<l.length;i++)this.dummyToNodeForHorizontalAlignment.set("dummy"+i,[]),l[i].forEach(function(e){a.set(e,"dummy"+i),t.dummyToNodeForHorizontalAlignment.get("dummy"+i).push(e),t.fixedNodeSet.has(e)&&t.fixedNodesOnVertical.add("dummy"+i)})}if(h.RELAX_MOVEMENT_ON_CONSTRAINTS)this.shuffle=function(t){var e,i,r;for(r=t.length-1;r>=2*t.length/3;r--)e=Math.floor(Math.random()*(r+1)),i=t[r],t[r]=t[e],t[e]=i;return t},this.nodesInRelativeHorizontal=[],this.nodesInRelativeVertical=[],this.nodeToRelativeConstraintMapHorizontal=new Map,this.nodeToRelativeConstraintMapVertical=new Map,this.nodeToTempPositionMapHorizontal=new Map,this.nodeToTempPositionMapVertical=new Map,this.constraints.relativePlacementConstraint.forEach(function(e){if(e.left){var i=o.has(e.left)?o.get(e.left):e.left,r=o.has(e.right)?o.get(e.right):e.right;t.nodesInRelativeHorizontal.includes(i)||(t.nodesInRelativeHorizontal.push(i),t.nodeToRelativeConstraintMapHorizontal.set(i,[]),t.dummyToNodeForVerticalAlignment.has(i)?t.nodeToTempPositionMapHorizontal.set(i,t.idToNodeMap.get(t.dummyToNodeForVerticalAlignment.get(i)[0]).getCenterX()):t.nodeToTempPositionMapHorizontal.set(i,t.idToNodeMap.get(i).getCenterX())),t.nodesInRelativeHorizontal.includes(r)||(t.nodesInRelativeHorizontal.push(r),t.nodeToRelativeConstraintMapHorizontal.set(r,[]),t.dummyToNodeForVerticalAlignment.has(r)?t.nodeToTempPositionMapHorizontal.set(r,t.idToNodeMap.get(t.dummyToNodeForVerticalAlignment.get(r)[0]).getCenterX()):t.nodeToTempPositionMapHorizontal.set(r,t.idToNodeMap.get(r).getCenterX())),t.nodeToRelativeConstraintMapHorizontal.get(i).push({right:r,gap:e.gap}),t.nodeToRelativeConstraintMapHorizontal.get(r).push({left:i,gap:e.gap})}else{var n=a.has(e.top)?a.get(e.top):e.top,s=a.has(e.bottom)?a.get(e.bottom):e.bottom;t.nodesInRelativeVertical.includes(n)||(t.nodesInRelativeVertical.push(n),t.nodeToRelativeConstraintMapVertical.set(n,[]),t.dummyToNodeForHorizontalAlignment.has(n)?t.nodeToTempPositionMapVertical.set(n,t.idToNodeMap.get(t.dummyToNodeForHorizontalAlignment.get(n)[0]).getCenterY()):t.nodeToTempPositionMapVertical.set(n,t.idToNodeMap.get(n).getCenterY())),t.nodesInRelativeVertical.includes(s)||(t.nodesInRelativeVertical.push(s),t.nodeToRelativeConstraintMapVertical.set(s,[]),t.dummyToNodeForHorizontalAlignment.has(s)?t.nodeToTempPositionMapVertical.set(s,t.idToNodeMap.get(t.dummyToNodeForHorizontalAlignment.get(s)[0]).getCenterY()):t.nodeToTempPositionMapVertical.set(s,t.idToNodeMap.get(s).getCenterY())),t.nodeToRelativeConstraintMapVertical.get(n).push({bottom:s,gap:e.gap}),t.nodeToRelativeConstraintMapVertical.get(s).push({top:n,gap:e.gap})}});else{var d=new Map,g=new Map;this.constraints.relativePlacementConstraint.forEach(function(t){if(t.left){var e=o.has(t.left)?o.get(t.left):t.left,i=o.has(t.right)?o.get(t.right):t.right;d.has(e)?d.get(e).push(i):d.set(e,[i]),d.has(i)?d.get(i).push(e):d.set(i,[e])}else{var r=a.has(t.top)?a.get(t.top):t.top,n=a.has(t.bottom)?a.get(t.bottom):t.bottom;g.has(r)?g.get(r).push(n):g.set(r,[n]),g.has(n)?g.get(n).push(r):g.set(n,[r])}});var c=function(t,e){var i=[],r=[],n=new T,o=new Set,a=0;return t.forEach(function(s,h){if(!o.has(h)){i[a]=[],r[a]=!1;var l=h;for(n.push(l),o.add(l),i[a].push(l);0!=n.length;)l=n.shift(),e.has(l)&&(r[a]=!0),t.get(l).forEach(function(t){o.has(t)||(n.push(t),o.add(t),i[a].push(t))});a++}}),{components:i,isFixed:r}},u=c(d,t.fixedNodesOnHorizontal);this.componentsOnHorizontal=u.components,this.fixedComponentsOnHorizontal=u.isFixed;var f=c(g,t.fixedNodesOnVertical);this.componentsOnVertical=f.components,this.fixedComponentsOnVertical=f.isFixed}}},N.prototype.updateDisplacements=function(){var t=this;if(this.constraints.fixedNodeConstraint&&this.constraints.fixedNodeConstraint.forEach(function(e){var i=t.idToNodeMap.get(e.nodeId);i.displacementX=0,i.displacementY=0}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var e=this.constraints.alignmentConstraint.vertical,i=0;i<e.length;i++){for(var r=0,n=0;n<e[i].length;n++){if(this.fixedNodeSet.has(e[i][n])){r=0;break}r+=this.idToNodeMap.get(e[i][n]).displacementX}for(var o=r/e[i].length,n=0;n<e[i].length;n++)this.idToNodeMap.get(e[i][n]).displacementX=o}if(this.constraints.alignmentConstraint.horizontal)for(var a=this.constraints.alignmentConstraint.horizontal,i=0;i<a.length;i++){for(var s=0,n=0;n<a[i].length;n++){if(this.fixedNodeSet.has(a[i][n])){s=0;break}s+=this.idToNodeMap.get(a[i][n]).displacementY}for(var l=s/a[i].length,n=0;n<a[i].length;n++)this.idToNodeMap.get(a[i][n]).displacementY=l}}if(this.constraints.relativePlacementConstraint)if(h.RELAX_MOVEMENT_ON_CONSTRAINTS)this.totalIterations%10==0&&(this.shuffle(this.nodesInRelativeHorizontal),this.shuffle(this.nodesInRelativeVertical)),this.nodesInRelativeHorizontal.forEach(function(e){if(!t.fixedNodesOnHorizontal.has(e)){var i=0;i=t.dummyToNodeForVerticalAlignment.has(e)?t.idToNodeMap.get(t.dummyToNodeForVerticalAlignment.get(e)[0]).displacementX:t.idToNodeMap.get(e).displacementX,t.nodeToRelativeConstraintMapHorizontal.get(e).forEach(function(r){if(r.right){var n=t.nodeToTempPositionMapHorizontal.get(r.right)-t.nodeToTempPositionMapHorizontal.get(e)-i;n<r.gap&&(i-=r.gap-n)}else{var n=t.nodeToTempPositionMapHorizontal.get(e)-t.nodeToTempPositionMapHorizontal.get(r.left)+i;n<r.gap&&(i+=r.gap-n)}}),t.nodeToTempPositionMapHorizontal.set(e,t.nodeToTempPositionMapHorizontal.get(e)+i),t.dummyToNodeForVerticalAlignment.has(e)?t.dummyToNodeForVerticalAlignment.get(e).forEach(function(e){t.idToNodeMap.get(e).displacementX=i}):t.idToNodeMap.get(e).displacementX=i}}),this.nodesInRelativeVertical.forEach(function(e){if(!t.fixedNodesOnHorizontal.has(e)){var i=0;i=t.dummyToNodeForHorizontalAlignment.has(e)?t.idToNodeMap.get(t.dummyToNodeForHorizontalAlignment.get(e)[0]).displacementY:t.idToNodeMap.get(e).displacementY,t.nodeToRelativeConstraintMapVertical.get(e).forEach(function(r){if(r.bottom){var n=t.nodeToTempPositionMapVertical.get(r.bottom)-t.nodeToTempPositionMapVertical.get(e)-i;n<r.gap&&(i-=r.gap-n)}else{var n=t.nodeToTempPositionMapVertical.get(e)-t.nodeToTempPositionMapVertical.get(r.top)+i;n<r.gap&&(i+=r.gap-n)}}),t.nodeToTempPositionMapVertical.set(e,t.nodeToTempPositionMapVertical.get(e)+i),t.dummyToNodeForHorizontalAlignment.has(e)?t.dummyToNodeForHorizontalAlignment.get(e).forEach(function(e){t.idToNodeMap.get(e).displacementY=i}):t.idToNodeMap.get(e).displacementY=i}});else{for(var i=0;i<this.componentsOnHorizontal.length;i++){var d=this.componentsOnHorizontal[i];if(this.fixedComponentsOnHorizontal[i])for(var n=0;n<d.length;n++)this.dummyToNodeForVerticalAlignment.has(d[n])?this.dummyToNodeForVerticalAlignment.get(d[n]).forEach(function(e){t.idToNodeMap.get(e).displacementX=0}):this.idToNodeMap.get(d[n]).displacementX=0;else{for(var g=0,c=0,n=0;n<d.length;n++)if(this.dummyToNodeForVerticalAlignment.has(d[n])){var u=this.dummyToNodeForVerticalAlignment.get(d[n]);g+=u.length*this.idToNodeMap.get(u[0]).displacementX,c+=u.length}else g+=this.idToNodeMap.get(d[n]).displacementX,c++;for(var f=g/c,n=0;n<d.length;n++)this.dummyToNodeForVerticalAlignment.has(d[n])?this.dummyToNodeForVerticalAlignment.get(d[n]).forEach(function(e){t.idToNodeMap.get(e).displacementX=f}):this.idToNodeMap.get(d[n]).displacementX=f}}for(var i=0;i<this.componentsOnVertical.length;i++){var d=this.componentsOnVertical[i];if(this.fixedComponentsOnVertical[i])for(var n=0;n<d.length;n++)this.dummyToNodeForHorizontalAlignment.has(d[n])?this.dummyToNodeForHorizontalAlignment.get(d[n]).forEach(function(e){t.idToNodeMap.get(e).displacementY=0}):this.idToNodeMap.get(d[n]).displacementY=0;else{for(var g=0,c=0,n=0;n<d.length;n++)if(this.dummyToNodeForHorizontalAlignment.has(d[n])){var u=this.dummyToNodeForHorizontalAlignment.get(d[n]);g+=u.length*this.idToNodeMap.get(u[0]).displacementY,c+=u.length}else g+=this.idToNodeMap.get(d[n]).displacementY,c++;for(var f=g/c,n=0;n<d.length;n++)this.dummyToNodeForHorizontalAlignment.has(d[n])?this.dummyToNodeForHorizontalAlignment.get(d[n]).forEach(function(e){t.idToNodeMap.get(e).displacementY=f}):this.idToNodeMap.get(d[n]).displacementY=f}}}},N.prototype.calculateNodesToApplyGravitationTo=function(){var t,e,i=[],r=this.graphManager.getGraphs(),n=r.length;for(e=0;e<n;e++)(t=r[e]).updateConnected(),t.isConnected||(i=i.concat(t.getNodes()));return i},N.prototype.createBendpoints=function(){var t=[];t=t.concat(this.graphManager.getAllEdges());var e=new Set;for(o=0;o<t.length;o++){var i=t[o];if(!e.has(i)){var r=i.getSource(),n=i.getTarget();if(r==n)i.getBendpoints().push(new u),i.getBendpoints().push(new u),this.createDummyNodesForBendpoints(i),e.add(i);else{var o,a,s=[];if(s=(s=s.concat(r.getEdgeListToNode(n))).concat(n.getEdgeListToNode(r)),!e.has(s[0])){if(s.length>1)for(a=0;a<s.length;a++){var h=s[a];h.getBendpoints().push(new u),this.createDummyNodesForBendpoints(h)}s.forEach(function(t){e.add(t)})}}}if(e.size==t.length)break}},N.prototype.positionNodesRadially=function(t){for(var e=new c(0,0),i=Math.ceil(Math.sqrt(t.length)),r=0,n=0,o=0,a=new u(0,0),s=0;s<t.length;s++){s%i==0&&(o=0,n=r,0!=s&&(n+=h.DEFAULT_COMPONENT_SEPERATION),r=0);var l=t[s],d=p.findCenterOfTree(l);e.x=o,e.y=n,(a=N.radialLayout(l,d,e)).y>r&&(r=Math.floor(a.y)),o=Math.floor(a.x+h.DEFAULT_COMPONENT_SEPERATION)}this.transform(new u(g.WORLD_CENTER_X-a.x/2,g.WORLD_CENTER_Y-a.y/2))},N.radialLayout=function(t,e,i){var r=Math.max(this.maxDiagonalInTree(t),h.DEFAULT_RADIAL_SEPARATION);N.branchRadialLayout(e,null,0,359,0,r);var n=y.calculateBounds(t),o=new E;o.setDeviceOrgX(n.getMinX()),o.setDeviceOrgY(n.getMinY()),o.setWorldOrgX(i.x),o.setWorldOrgY(i.y);for(var a=0;a<t.length;a++)t[a].transform(o);var s=new u(n.getMaxX(),n.getMaxY());return o.inverseTransformPoint(s)},N.branchRadialLayout=function(t,e,i,r,n,o){var a,s=(r-i+1)/2;s<0&&(s+=180);var h=(s+i)%360*v.TWO_PI/360,l=n*Math.cos(h),d=n*Math.sin(h);t.setCenter(l,d);var g=[],c=(g=g.concat(t.getEdges())).length;null!=e&&c--;for(var u=0,f=g.length,p=t.getEdgesBetween(e);p.length>1;){var m=p[0];p.splice(0,1);var y=g.indexOf(m);y>=0&&g.splice(y,1),f--,c--}a=null!=e?(g.indexOf(p[0])+1)%f:0;for(var E=Math.abs(r-i)/c,T=a;u!=c;T=++T%f){var A=g[T].getOtherEnd(t);if(A!=e){var w=(i+u*E)%360,L=(w+E)%360;N.branchRadialLayout(A,t,w,L,n+o,o),u++}}},N.maxDiagonalInTree=function(t){for(var e=m.MIN_VALUE,i=0;i<t.length;i++){var r=t[i].getDiagonal();r>e&&(e=r)}return e},N.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},N.prototype.groupZeroDegreeMembers=function(){var t=this,e={};this.memberGroups={},this.idToDummyNode={};for(var i=[],r=this.graphManager.getAllNodes(),n=0;n<r.length;n++){var o=r[n],s=o.getParent();0!==this.getNodeDegreeWithChildren(o)||void 0!=s.id&&this.getToBeTiled(s)||i.push(o)}for(var n=0;n<i.length;n++){var o=i[n],h=o.getParent().id;void 0===e[h]&&(e[h]=[]),e[h]=e[h].concat(o)}Object.keys(e).forEach(function(i){if(e[i].length>1){var r="DummyCompound_"+i;t.memberGroups[r]=e[i];var n=e[i][0].getParent(),o=new a(t.graphManager);o.id=r,o.paddingLeft=n.paddingLeft||0,o.paddingRight=n.paddingRight||0,o.paddingBottom=n.paddingBottom||0,o.paddingTop=n.paddingTop||0,t.idToDummyNode[r]=o;var s=t.getGraphManager().add(t.newGraph(),o),h=n.getChild();h.add(o);for(var l=0;l<e[i].length;l++){var d=e[i][l];h.remove(d),s.add(d)}}})},N.prototype.clearCompounds=function(){var t={},e={};this.performDFSOnCompounds();for(var i=0;i<this.compoundOrder.length;i++)e[this.compoundOrder[i].id]=this.compoundOrder[i],t[this.compoundOrder[i].id]=[].concat(this.compoundOrder[i].getChild().getNodes()),this.graphManager.remove(this.compoundOrder[i].getChild()),this.compoundOrder[i].child=null;this.graphManager.resetAllNodes(),this.tileCompoundMembers(t,e)},N.prototype.clearZeroDegreeMembers=function(){var t=this,e=this.tiledZeroDegreePack=[];Object.keys(this.memberGroups).forEach(function(i){var r=t.idToDummyNode[i];if(e[i]=t.tileNodes(t.memberGroups[i],r.paddingLeft+r.paddingRight),r.rect.width=e[i].width,r.rect.height=e[i].height,r.setCenter(e[i].centerX,e[i].centerY),r.labelMarginLeft=0,r.labelMarginTop=0,h.NODE_DIMENSIONS_INCLUDE_LABELS){var n=r.rect.width,o=r.rect.height;r.labelWidth&&("left"==r.labelPosHorizontal?(r.rect.x-=r.labelWidth,r.setWidth(n+r.labelWidth),r.labelMarginLeft=r.labelWidth):"center"==r.labelPosHorizontal&&r.labelWidth>n?(r.rect.x-=(r.labelWidth-n)/2,r.setWidth(r.labelWidth),r.labelMarginLeft=(r.labelWidth-n)/2):"right"==r.labelPosHorizontal&&r.setWidth(n+r.labelWidth)),r.labelHeight&&("top"==r.labelPosVertical?(r.rect.y-=r.labelHeight,r.setHeight(o+r.labelHeight),r.labelMarginTop=r.labelHeight):"center"==r.labelPosVertical&&r.labelHeight>o?(r.rect.y-=(r.labelHeight-o)/2,r.setHeight(r.labelHeight),r.labelMarginTop=(r.labelHeight-o)/2):"bottom"==r.labelPosVertical&&r.setHeight(o+r.labelHeight))}})},N.prototype.repopulateCompounds=function(){for(var t=this.compoundOrder.length-1;t>=0;t--){var e=this.compoundOrder[t],i=e.id,r=e.paddingLeft,n=e.paddingTop,o=e.labelMarginLeft,a=e.labelMarginTop;this.adjustLocations(this.tiledMemberPack[i],e.rect.x,e.rect.y,r,n,o,a)}},N.prototype.repopulateZeroDegreeMembers=function(){var t=this,e=this.tiledZeroDegreePack;Object.keys(e).forEach(function(i){var r=t.idToDummyNode[i],n=r.paddingLeft,o=r.paddingTop,a=r.labelMarginLeft,s=r.labelMarginTop;t.adjustLocations(e[i],r.rect.x,r.rect.y,n,o,a,s)})},N.prototype.getToBeTiled=function(t){var e=t.id;if(null!=this.toBeTiled[e])return this.toBeTiled[e];var i=t.getChild();if(null==i)return this.toBeTiled[e]=!1,!1;for(var r=i.getNodes(),n=0;n<r.length;n++){var o=r[n];if(this.getNodeDegree(o)>0)return this.toBeTiled[e]=!1,!1;if(null==o.getChild()){this.toBeTiled[o.id]=!1;continue}if(!this.getToBeTiled(o))return this.toBeTiled[e]=!1,!1}return this.toBeTiled[e]=!0,!0},N.prototype.getNodeDegree=function(t){t.id;for(var e=t.getEdges(),i=0,r=0;r<e.length;r++){var n=e[r];n.getSource().id!==n.getTarget().id&&(i+=1)}return i},N.prototype.getNodeDegreeWithChildren=function(t){var e=this.getNodeDegree(t);if(null==t.getChild())return e;for(var i=t.getChild().getNodes(),r=0;r<i.length;r++){var n=i[r];e+=this.getNodeDegreeWithChildren(n)}return e},N.prototype.performDFSOnCompounds=function(){this.compoundOrder=[],this.fillCompexOrderByDFS(this.graphManager.getRoot().getNodes())},N.prototype.fillCompexOrderByDFS=function(t){for(var e=0;e<t.length;e++){var i=t[e];null!=i.getChild()&&this.fillCompexOrderByDFS(i.getChild().getNodes()),this.getToBeTiled(i)&&this.compoundOrder.push(i)}},N.prototype.adjustLocations=function(t,e,i,r,n,o,a){e+=r+o,i+=n+a;for(var s=e,h=0;h<t.rows.length;h++){var l=t.rows[h];e=s;for(var d=0,g=0;g<l.length;g++){var c=l[g];c.rect.x=e,c.rect.y=i,e+=c.rect.width+t.horizontalPadding,c.rect.height>d&&(d=c.rect.height)}i+=d+t.verticalPadding}},N.prototype.tileCompoundMembers=function(t,e){var i=this;this.tiledMemberPack=[],Object.keys(t).forEach(function(r){var n=e[r];if(i.tiledMemberPack[r]=i.tileNodes(t[r],n.paddingLeft+n.paddingRight),n.rect.width=i.tiledMemberPack[r].width,n.rect.height=i.tiledMemberPack[r].height,n.setCenter(i.tiledMemberPack[r].centerX,i.tiledMemberPack[r].centerY),n.labelMarginLeft=0,n.labelMarginTop=0,h.NODE_DIMENSIONS_INCLUDE_LABELS){var o=n.rect.width,a=n.rect.height;n.labelWidth&&("left"==n.labelPosHorizontal?(n.rect.x-=n.labelWidth,n.setWidth(o+n.labelWidth),n.labelMarginLeft=n.labelWidth):"center"==n.labelPosHorizontal&&n.labelWidth>o?(n.rect.x-=(n.labelWidth-o)/2,n.setWidth(n.labelWidth),n.labelMarginLeft=(n.labelWidth-o)/2):"right"==n.labelPosHorizontal&&n.setWidth(o+n.labelWidth)),n.labelHeight&&("top"==n.labelPosVertical?(n.rect.y-=n.labelHeight,n.setHeight(a+n.labelHeight),n.labelMarginTop=n.labelHeight):"center"==n.labelPosVertical&&n.labelHeight>a?(n.rect.y-=(n.labelHeight-a)/2,n.setHeight(n.labelHeight),n.labelMarginTop=(n.labelHeight-a)/2):"bottom"==n.labelPosVertical&&n.setHeight(a+n.labelHeight))}})},N.prototype.tileNodes=function(t,e){var i=this.tileNodesByFavoringDim(t,e,!0),r=this.tileNodesByFavoringDim(t,e,!1),n=this.getOrgRatio(i);return this.getOrgRatio(r)<n?r:i},N.prototype.getOrgRatio=function(t){var e=t.width/t.height;return e<1&&(e=1/e),e},N.prototype.calcIdealRowWidth=function(t,e){var i,r=h.TILING_PADDING_VERTICAL,n=h.TILING_PADDING_HORIZONTAL,o=t.length,a=0,s=0,l=0;t.forEach(function(t){a+=t.getWidth(),s+=t.getHeight(),t.getWidth()>l&&(l=t.getWidth())});var d=a/o,g=Math.pow(r-n,2)+4*(d+n)*(s/o+r)*o,c=(n-r+Math.sqrt(g))/(2*(d+n));e?(i=Math.ceil(c))==c&&i++:i=Math.floor(c);var u=i*(d+n)-n;return l>u&&(u=l),u+=2*n},N.prototype.tileNodesByFavoringDim=function(t,e,i){var r=h.TILING_PADDING_VERTICAL,n=h.TILING_PADDING_HORIZONTAL,o=h.TILING_COMPARE_BY,a={rows:[],rowWidth:[],rowHeight:[],width:0,height:e,verticalPadding:r,horizontalPadding:n,centerX:0,centerY:0};o&&(a.idealRowWidth=this.calcIdealRowWidth(t,i));var s=function(t){return t.rect.width*t.rect.height},l=function(t,e){return s(e)-s(t)};t.sort(function(t,e){var i=l;return a.idealRowWidth?(i=o)(t.id,e.id):i(t,e)});for(var d=0,g=0,c=0;c<t.length;c++){var u=t[c];d+=u.getCenterX(),g+=u.getCenterY()}a.centerX=d/t.length,a.centerY=g/t.length;for(var c=0;c<t.length;c++){var u=t[c];if(0==a.rows.length)this.insertNodeToRow(a,u,0,e);else if(this.canAddHorizontal(a,u.rect.width,u.rect.height)){var f=a.rows.length-1;a.idealRowWidth||(f=this.getShortestRowIndex(a)),this.insertNodeToRow(a,u,f,e)}else this.insertNodeToRow(a,u,a.rows.length,e);this.shiftToLastRow(a)}return a},N.prototype.insertNodeToRow=function(t,e,i,r){i==t.rows.length&&(t.rows.push([]),t.rowWidth.push(r),t.rowHeight.push(0));var n=t.rowWidth[i]+e.rect.width;t.rows[i].length>0&&(n+=t.horizontalPadding),t.rowWidth[i]=n,t.width<n&&(t.width=n);var o=e.rect.height;i>0&&(o+=t.verticalPadding);var a=0;o>t.rowHeight[i]&&(a=t.rowHeight[i],t.rowHeight[i]=o,a=t.rowHeight[i]-a),t.height+=a,t.rows[i].push(e)},N.prototype.getShortestRowIndex=function(t){for(var e=-1,i=Number.MAX_VALUE,r=0;r<t.rows.length;r++)t.rowWidth[r]<i&&(e=r,i=t.rowWidth[r]);return e},N.prototype.getLongestRowIndex=function(t){for(var e=-1,i=5e-324,r=0;r<t.rows.length;r++)t.rowWidth[r]>i&&(e=r,i=t.rowWidth[r]);return e},N.prototype.canAddHorizontal=function(t,e,i){if(t.idealRowWidth){var r,n,o=t.rows.length-1;return t.rowWidth[o]+e+t.horizontalPadding<=t.idealRowWidth}var a=this.getShortestRowIndex(t);if(a<0)return!0;var s=t.rowWidth[a];if(s+t.horizontalPadding+e<=t.width)return!0;var h=0;return t.rowHeight[a]<i&&a>0&&(h=i+t.verticalPadding-t.rowHeight[a]),r=t.width-s>=e+t.horizontalPadding?(t.height+h)/(s+e+t.horizontalPadding):(t.height+h)/t.width,h=i+t.verticalPadding,(n=t.width<e?(t.height+h)/e:(t.height+h)/t.width)<1&&(n=1/n),r<1&&(r=1/r),r<n},N.prototype.shiftToLastRow=function(t){var e=this.getLongestRowIndex(t),i=t.rowWidth.length-1,r=t.rows[e],n=r[r.length-1],o=n.width+t.horizontalPadding;if(t.width-t.rowWidth[i]>o&&e!=i){r.splice(-1,1),t.rows[i].push(n),t.rowWidth[e]=t.rowWidth[e]-o,t.rowWidth[i]=t.rowWidth[i]+o,t.width=t.rowWidth[instance.getLongestRowIndex(t)];for(var a=5e-324,s=0;s<r.length;s++)r[s].height>a&&(a=r[s].height);e>0&&(a+=t.verticalPadding);var h=t.rowHeight[e]+t.rowHeight[i];t.rowHeight[e]=a,t.rowHeight[i]<n.height+t.verticalPadding&&(t.rowHeight[i]=n.height+t.verticalPadding);var l=t.rowHeight[e]+t.rowHeight[i];t.height+=l-h,this.shiftToLastRow(t)}},N.prototype.tilingPreLayout=function(){h.TILE&&(this.groupZeroDegreeMembers(),this.clearCompounds(),this.clearZeroDegreeMembers())},N.prototype.tilingPostLayout=function(){h.TILE&&(this.repopulateZeroDegreeMembers(),this.repopulateCompounds())},N.prototype.reduceTrees=function(){for(var t,e=[],i=!0;i;){var r=this.graphManager.getAllNodes(),n=[];i=!1;for(var o=0;o<r.length;o++)if(1==(t=r[o]).getEdges().length&&!t.getEdges()[0].isInterGraph&&null==t.getChild()){if(h.PURE_INCREMENTAL){var a=t.getEdges()[0].getOtherEnd(t),s=new f(t.getCenterX()-a.getCenterX(),t.getCenterY()-a.getCenterY());n.push([t,t.getEdges()[0],t.getOwner(),s])}else n.push([t,t.getEdges()[0],t.getOwner()]);i=!0}if(!0==i){for(var l=[],d=0;d<n.length;d++)1==n[d][0].getEdges().length&&(l.push(n[d]),n[d][0].getOwner().remove(n[d][0]));e.push(l),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()}}this.prunedNodesAll=e},N.prototype.growTree=function(t){for(var e,i=t.length,r=t[i-1],n=0;n<r.length;n++)e=r[n],this.findPlaceforPrunedNode(e),e[2].add(e[0]),e[2].add(e[1],e[1].source,e[1].target);t.splice(t.length-1,1),this.graphManager.resetAllNodes(),this.graphManager.resetAllEdges()},N.prototype.findPlaceforPrunedNode=function(t){var e=t[0];if(r=e==t[1].source?t[1].target:t[1].source,h.PURE_INCREMENTAL)e.setCenter(r.getCenterX()+t[3].getWidth(),r.getCenterY()+t[3].getHeight());else{var i,r,n,o,a=r.startX,s=r.finishX,l=r.startY,g=r.finishY,c=[0,0,0,0];if(l>0)for(var u=a;u<=s;u++)c[0]+=this.grid[u][l-1].length+this.grid[u][l].length-1;if(s<this.grid.length-1)for(var u=l;u<=g;u++)c[1]+=this.grid[s+1][u].length+this.grid[s][u].length-1;if(g<this.grid[0].length-1)for(var u=a;u<=s;u++)c[2]+=this.grid[u][g+1].length+this.grid[u][g].length-1;if(a>0)for(var u=l;u<=g;u++)c[3]+=this.grid[a-1][u].length+this.grid[a][u].length-1;for(var f=m.MAX_VALUE,p=0;p<c.length;p++)c[p]<f?(f=c[p],n=1,o=p):c[p]==f&&n++;if(3==n&&0==f)0==c[0]&&0==c[1]&&0==c[2]?i=1:0==c[0]&&0==c[1]&&0==c[3]?i=0:0==c[0]&&0==c[2]&&0==c[3]?i=3:0==c[1]&&0==c[2]&&0==c[3]&&(i=2);else if(2==n&&0==f){var v=Math.floor(2*Math.random());i=0==c[0]&&0==c[1]?+(0!=v):0==c[0]&&0==c[2]?2*(0!=v):0==c[0]&&0==c[3]?3*(0!=v):0==c[1]&&0==c[2]?0==v?1:2:0==c[1]&&0==c[3]?0==v?1:3:0==v?2:3}else if(4==n&&0==f){var v=Math.floor(4*Math.random());i=v}else i=o;0==i?e.setCenter(r.getCenterX(),r.getCenterY()-r.getHeight()/2-d.DEFAULT_EDGE_LENGTH-e.getHeight()/2):1==i?e.setCenter(r.getCenterX()+r.getWidth()/2+d.DEFAULT_EDGE_LENGTH+e.getWidth()/2,r.getCenterY()):2==i?e.setCenter(r.getCenterX(),r.getCenterY()+r.getHeight()/2+d.DEFAULT_EDGE_LENGTH+e.getHeight()/2):e.setCenter(r.getCenterX()-r.getWidth()/2-d.DEFAULT_EDGE_LENGTH-e.getWidth()/2,r.getCenterY())}},t.exports=N},991:(t,e,i)=>{var r=i(551).FDLayoutNode,n=i(551).IMath;function o(t,e,i,n){r.call(this,t,e,i,n)}for(var a in o.prototype=Object.create(r.prototype),r)o[a]=r[a];o.prototype.calculateDisplacement=function(){var t=this.graphManager.getLayout();null!=this.getChild()&&this.fixedNodeWeight?(this.displacementX+=t.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.fixedNodeWeight,this.displacementY+=t.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.fixedNodeWeight):(this.displacementX+=t.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY+=t.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren),Math.abs(this.displacementX)>t.coolingFactor*t.maxNodeDisplacement&&(this.displacementX=t.coolingFactor*t.maxNodeDisplacement*n.sign(this.displacementX)),Math.abs(this.displacementY)>t.coolingFactor*t.maxNodeDisplacement&&(this.displacementY=t.coolingFactor*t.maxNodeDisplacement*n.sign(this.displacementY)),this.child&&this.child.getNodes().length>0&&this.propogateDisplacementToChildren(this.displacementX,this.displacementY)},o.prototype.propogateDisplacementToChildren=function(t,e){for(var i,r=this.getChild().getNodes(),n=0;n<r.length;n++)null==(i=r[n]).getChild()?(i.displacementX+=t,i.displacementY+=e):i.propogateDisplacementToChildren(t,e)},o.prototype.move=function(){var t=this.graphManager.getLayout();(null==this.child||0==this.child.getNodes().length)&&(this.moveBy(this.displacementX,this.displacementY),t.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},o.prototype.setPred1=function(t){this.pred1=t},o.prototype.getPred1=function(){return pred1},o.prototype.getPred2=function(){return pred2},o.prototype.setNext=function(t){this.next=t},o.prototype.getNext=function(){return next},o.prototype.setProcessed=function(t){this.processed=t},o.prototype.isProcessed=function(){return processed},t.exports=o},902:(t,e,i)=>{function r(t){if(!Array.isArray(t))return Array.from(t);for(var e=0,i=Array(t.length);e<t.length;e++)i[e]=t[e];return i}var n=i(806),o=i(551).LinkedList,a=i(551).Matrix,s=i(551).SVD;function h(){}h.handleConstraints=function(t){var e={};e.fixedNodeConstraint=t.constraints.fixedNodeConstraint,e.alignmentConstraint=t.constraints.alignmentConstraint,e.relativePlacementConstraint=t.constraints.relativePlacementConstraint;for(var i=new Map,h=new Map,l=[],d=[],g=t.getAllNodes(),c=0,u=0;u<g.length;u++){var f=g[u];null==f.getChild()&&(h.set(f.id,c++),l.push(f.getCenterX()),d.push(f.getCenterY()),i.set(f.id,f))}e.relativePlacementConstraint&&e.relativePlacementConstraint.forEach(function(t){t.gap||0==t.gap||(t.left?t.gap=n.DEFAULT_EDGE_LENGTH+i.get(t.left).getWidth()/2+i.get(t.right).getWidth()/2:t.gap=n.DEFAULT_EDGE_LENGTH+i.get(t.top).getHeight()/2+i.get(t.bottom).getHeight()/2)});var p=function(t){var e=0,i=0;return t.forEach(function(t){e+=l[h.get(t)],i+=d[h.get(t)]}),{x:e/t.size,y:i/t.size}},m=function(t,e,i,n,a){var s=new Map;t.forEach(function(t,e){s.set(e,0)}),t.forEach(function(t,e){t.forEach(function(t){s.set(t.id,s.get(t.id)+1)})});var g=new Map,c=new Map,u=new o;for(s.forEach(function(t,r){0==t?(u.push(r),i||("horizontal"==e?g.set(r,h.has(r)?l[h.get(r)]:n.get(r)):g.set(r,h.has(r)?d[h.get(r)]:n.get(r)))):g.set(r,-1/0),i&&c.set(r,new Set([r]))}),i&&a.forEach(function(t){var r=[];if(t.forEach(function(t){i.has(t)&&r.push(t)}),r.length>0){var o=0;r.forEach(function(t){"horizontal"==e?g.set(t,h.has(t)?l[h.get(t)]:n.get(t)):g.set(t,h.has(t)?d[h.get(t)]:n.get(t)),o+=g.get(t)}),o/=r.length,t.forEach(function(t){i.has(t)||g.set(t,o)})}else{var a=0;t.forEach(function(t){"horizontal"==e?a+=h.has(t)?l[h.get(t)]:n.get(t):a+=h.has(t)?d[h.get(t)]:n.get(t)}),a/=t.length,t.forEach(function(t){g.set(t,a)})}});0!=u.length;)!function(){var r=u.shift();t.get(r).forEach(function(t){if(g.get(t.id)<g.get(r)+t.gap)if(i&&i.has(t.id)){var o=void 0;if(o="horizontal"==e?h.has(t.id)?l[h.get(t.id)]:n.get(t.id):h.has(t.id)?d[h.get(t.id)]:n.get(t.id),g.set(t.id,o),o<g.get(r)+t.gap){var a=g.get(r)+t.gap-o;c.get(r).forEach(function(t){g.set(t,g.get(t)-a)})}}else g.set(t.id,g.get(r)+t.gap);s.set(t.id,s.get(t.id)-1),0==s.get(t.id)&&u.push(t.id),i&&c.set(t.id,function(t,e){var i=new Set(t),r=!0,n=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var h=a.value;i.add(h)}}catch(t){n=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(n)throw o}}return i}(c.get(r),c.get(t.id)))})}();if(i){var f=new Set;t.forEach(function(t,e){0==t.length&&f.add(e)});var p=[];c.forEach(function(t,e){if(f.has(e)){var n=!1,o=!0,a=!1,s=void 0;try{for(var h,l=t[Symbol.iterator]();!(o=(h=l.next()).done);o=!0){var d=h.value;i.has(d)&&(n=!0)}}catch(t){a=!0,s=t}finally{try{!o&&l.return&&l.return()}finally{if(a)throw s}}if(!n){var g=!1,c=void 0;p.forEach(function(e,i){e.has([].concat(r(t))[0])&&(g=!0,c=i)}),g?t.forEach(function(t){p[c].add(t)}):p.push(new Set(t))}}}),p.forEach(function(t,i){var r=1/0,o=1/0,a=-1/0,s=-1/0,c=!0,u=!1,f=void 0;try{for(var p,m=t[Symbol.iterator]();!(c=(p=m.next()).done);c=!0){var v=p.value,y=void 0;y="horizontal"==e?h.has(v)?l[h.get(v)]:n.get(v):h.has(v)?d[h.get(v)]:n.get(v);var E=g.get(v);y<r&&(r=y),y>a&&(a=y),E<o&&(o=E),E>s&&(s=E)}}catch(t){u=!0,f=t}finally{try{!c&&m.return&&m.return()}finally{if(u)throw f}}var T=(r+a)/2-(o+s)/2,N=!0,A=!1,w=void 0;try{for(var L,C=t[Symbol.iterator]();!(N=(L=C.next()).done);N=!0){var M=L.value;g.set(M,g.get(M)+T)}}catch(t){A=!0,w=t}finally{try{!N&&C.return&&C.return()}finally{if(A)throw w}}})}return g},v=function(t){var e=0,i=0,r=0,n=0;if(t.forEach(function(t){t.left?l[h.get(t.left)]-l[h.get(t.right)]>=0?e++:i++:d[h.get(t.top)]-d[h.get(t.bottom)]>=0?r++:n++}),e>i&&r>n)for(var o=0;o<h.size;o++)l[o]=-1*l[o],d[o]=-1*d[o];else if(e>i)for(var a=0;a<h.size;a++)l[a]=-1*l[a];else if(r>n)for(var s=0;s<h.size;s++)d[s]=-1*d[s]},y=function(t){var e=[],i=new o,r=new Set,n=0;return t.forEach(function(o,a){if(!r.has(a)){e[n]=[];var s=a;for(i.push(s),r.add(s),e[n].push(s);0!=i.length;)s=i.shift(),t.get(s).forEach(function(t){r.has(t.id)||(i.push(t.id),r.add(t.id),e[n].push(t.id))});n++}}),e},E=function(t){var e=new Map;return t.forEach(function(t,i){e.set(i,[])}),t.forEach(function(t,i){t.forEach(function(t){e.get(i).push(t),e.get(t.id).push({id:i,gap:t.gap,direction:t.direction})})}),e},T=function(t){var e=new Map;return t.forEach(function(t,i){e.set(i,[])}),t.forEach(function(t,i){t.forEach(function(t){e.get(t.id).push({id:i,gap:t.gap,direction:t.direction})})}),e},N=[],A=[],w=!1,L=!1,C=new Set,M=new Map,_=new Map,I=[];if(e.fixedNodeConstraint&&e.fixedNodeConstraint.forEach(function(t){C.add(t.nodeId)}),e.relativePlacementConstraint&&(e.relativePlacementConstraint.forEach(function(t){t.left?(M.has(t.left)?M.get(t.left).push({id:t.right,gap:t.gap,direction:"horizontal"}):M.set(t.left,[{id:t.right,gap:t.gap,direction:"horizontal"}]),M.has(t.right)||M.set(t.right,[])):(M.has(t.top)?M.get(t.top).push({id:t.bottom,gap:t.gap,direction:"vertical"}):M.set(t.top,[{id:t.bottom,gap:t.gap,direction:"vertical"}]),M.has(t.bottom)||M.set(t.bottom,[]))}),I=y(_=E(M))),n.TRANSFORM_ON_CONSTRAINT_HANDLING){if(e.fixedNodeConstraint&&e.fixedNodeConstraint.length>1)e.fixedNodeConstraint.forEach(function(t,e){N[e]=[t.position.x,t.position.y],A[e]=[l[h.get(t.nodeId)],d[h.get(t.nodeId)]]}),w=!0;else if(e.alignmentConstraint)!function(){var t=0;if(e.alignmentConstraint.vertical){for(var i=e.alignmentConstraint.vertical,n=0;n<i.length;n++)!function(e){var n=new Set;i[e].forEach(function(t){n.add(t)});var o=new Set([].concat(r(n)).filter(function(t){return C.has(t)})),a=void 0;a=o.size>0?l[h.get(o.values().next().value)]:p(n).x,i[e].forEach(function(e){N[t]=[a,d[h.get(e)]],A[t]=[l[h.get(e)],d[h.get(e)]],t++})}(n);w=!0}if(e.alignmentConstraint.horizontal){for(var o=e.alignmentConstraint.horizontal,a=0;a<o.length;a++)!function(e){var i=new Set;o[e].forEach(function(t){i.add(t)});var n=new Set([].concat(r(i)).filter(function(t){return C.has(t)})),a=void 0;a=n.size>0?l[h.get(n.values().next().value)]:p(i).y,o[e].forEach(function(e){N[t]=[l[h.get(e)],a],A[t]=[l[h.get(e)],d[h.get(e)]],t++})}(a);w=!0}e.relativePlacementConstraint&&(L=!0)}();else if(e.relativePlacementConstraint){for(var x=0,O=0,D=0;D<I.length;D++)I[D].length>x&&(x=I[D].length,O=D);if(x<_.size/2)v(e.relativePlacementConstraint),w=!1,L=!1;else{var R=new Map,b=new Map,F=[];I[O].forEach(function(t){M.get(t).forEach(function(e){"horizontal"==e.direction?(R.has(t)?R.get(t).push(e):R.set(t,[e]),R.has(e.id)||R.set(e.id,[]),F.push({left:t,right:e.id})):(b.has(t)?b.get(t).push(e):b.set(t,[e]),b.has(e.id)||b.set(e.id,[]),F.push({top:t,bottom:e.id}))})}),v(F),L=!1;var S=m(R,"horizontal"),G=m(b,"vertical");I[O].forEach(function(t,e){A[e]=[l[h.get(t)],d[h.get(t)]],N[e]=[],S.has(t)?N[e][0]=S.get(t):N[e][0]=l[h.get(t)],G.has(t)?N[e][1]=G.get(t):N[e][1]=d[h.get(t)]}),w=!0}}if(w){for(var P=void 0,U=a.transpose(N),k=a.transpose(A),Y=0;Y<U.length;Y++)U[Y]=a.multGamma(U[Y]),k[Y]=a.multGamma(k[Y]);var H=a.multMat(U,a.transpose(k)),X=s.svd(H);P=a.multMat(X.V,a.transpose(X.U));for(var z=0;z<h.size;z++){var B=[l[z],d[z]],V=[P[0][0],P[1][0]],W=[P[0][1],P[1][1]];l[z]=a.dotProduct(B,V),d[z]=a.dotProduct(B,W)}L&&v(e.relativePlacementConstraint)}}if(n.ENFORCE_CONSTRAINTS){if(e.fixedNodeConstraint&&e.fixedNodeConstraint.length>0){var $={x:0,y:0};e.fixedNodeConstraint.forEach(function(t,e){var i,r={x:l[h.get(t.nodeId)],y:d[h.get(t.nodeId)]},n=(i=t.position,{x:i.x-r.x,y:i.y-r.y});$.x+=n.x,$.y+=n.y}),$.x/=e.fixedNodeConstraint.length,$.y/=e.fixedNodeConstraint.length,l.forEach(function(t,e){l[e]+=$.x}),d.forEach(function(t,e){d[e]+=$.y}),e.fixedNodeConstraint.forEach(function(t){l[h.get(t.nodeId)]=t.position.x,d[h.get(t.nodeId)]=t.position.y})}if(e.alignmentConstraint){if(e.alignmentConstraint.vertical)for(var j=e.alignmentConstraint.vertical,q=0;q<j.length;q++)!function(t){var e=new Set;j[t].forEach(function(t){e.add(t)});var i=new Set([].concat(r(e)).filter(function(t){return C.has(t)})),n=void 0;n=i.size>0?l[h.get(i.values().next().value)]:p(e).x,e.forEach(function(t){C.has(t)||(l[h.get(t)]=n)})}(q);if(e.alignmentConstraint.horizontal)for(var K=e.alignmentConstraint.horizontal,Z=0;Z<K.length;Z++)!function(t){var e=new Set;K[t].forEach(function(t){e.add(t)});var i=new Set([].concat(r(e)).filter(function(t){return C.has(t)})),n=void 0;n=i.size>0?d[h.get(i.values().next().value)]:p(e).y,e.forEach(function(t){C.has(t)||(d[h.get(t)]=n)})}(Z)}e.relativePlacementConstraint&&function(){var t=new Map,i=new Map,r=new Map,n=new Map,o=new Map,a=new Map,s=new Set,g=new Set;if(C.forEach(function(t){s.add(t),g.add(t)}),e.alignmentConstraint){if(e.alignmentConstraint.vertical)for(var c=e.alignmentConstraint.vertical,u=function(e){r.set("dummy"+e,[]),c[e].forEach(function(i){t.set(i,"dummy"+e),r.get("dummy"+e).push(i),C.has(i)&&s.add("dummy"+e)}),o.set("dummy"+e,l[h.get(c[e][0])])},f=0;f<c.length;f++)u(f);if(e.alignmentConstraint.horizontal)for(var p=e.alignmentConstraint.horizontal,v=function(t){n.set("dummy"+t,[]),p[t].forEach(function(e){i.set(e,"dummy"+t),n.get("dummy"+t).push(e),C.has(e)&&g.add("dummy"+t)}),a.set("dummy"+t,d[h.get(p[t][0])])},N=0;N<p.length;N++)v(N)}var A=new Map,w=new Map,L=function(e){M.get(e).forEach(function(r){var n=void 0,o=void 0;"horizontal"==r.direction?(n=t.get(e)?t.get(e):e,o=t.get(r.id)?{id:t.get(r.id),gap:r.gap,direction:r.direction}:r,A.has(n)?A.get(n).push(o):A.set(n,[o]),A.has(o.id)||A.set(o.id,[])):(n=i.get(e)?i.get(e):e,o=i.get(r.id)?{id:i.get(r.id),gap:r.gap,direction:r.direction}:r,w.has(n)?w.get(n).push(o):w.set(n,[o]),w.has(o.id)||w.set(o.id,[]))})},_=!0,I=!1,x=void 0;try{for(var O,D=M.keys()[Symbol.iterator]();!(_=(O=D.next()).done);_=!0){var R=O.value;L(R)}}catch(t){I=!0,x=t}finally{try{!_&&D.return&&D.return()}finally{if(I)throw x}}var b=E(A),F=E(w),S=y(b),G=y(F),P=T(A),U=T(w),k=[],Y=[];S.forEach(function(t,e){k[e]=[],t.forEach(function(t){0==P.get(t).length&&k[e].push(t)})}),G.forEach(function(t,e){Y[e]=[],t.forEach(function(t){0==U.get(t).length&&Y[e].push(t)})});var H=m(A,"horizontal",s,o,k),X=m(w,"vertical",g,a,Y),z=function(t){r.get(t)?r.get(t).forEach(function(e){l[h.get(e)]=H.get(t)}):l[h.get(t)]=H.get(t)},B=!0,V=!1,W=void 0;try{for(var $,j=H.keys()[Symbol.iterator]();!(B=($=j.next()).done);B=!0){var q=$.value;z(q)}}catch(t){V=!0,W=t}finally{try{!B&&j.return&&j.return()}finally{if(V)throw W}}var K=function(t){n.get(t)?n.get(t).forEach(function(e){d[h.get(e)]=X.get(t)}):d[h.get(t)]=X.get(t)},Z=!0,Q=!1,J=void 0;try{for(var tt,te=X.keys()[Symbol.iterator]();!(Z=(tt=te.next()).done);Z=!0){var q=tt.value;K(q)}}catch(t){Q=!0,J=t}finally{try{!Z&&te.return&&te.return()}finally{if(Q)throw J}}}()}for(var Q=0;Q<g.length;Q++){var J=g[Q];null==J.getChild()&&J.setCenter(l[h.get(J.id)],d[h.get(J.id)])}},t.exports=h},551:t=>{t.exports=r}},e={};return function i(r){var n=e[r];if(void 0!==n)return n.exports;var o=e[r]={exports:{}};return t[r](o,o.exports,i),o.exports}(45)})()},80650:(t,e,i)=>{"use strict";function r(t,e){t.accDescr&&e.setAccDescription?.(t.accDescr),t.accTitle&&e.setAccTitle?.(t.accTitle),t.title&&e.setDiagramTitle?.(t.title)}i.d(e,{S:()=>r}),(0,i(89851).K)(r,"populateCommonDb")},82703:(t,e,i)=>{"use strict";i.d(e,{diagram:()=>tt});var r=i(80650),n=i(56174),o=i(19836),a=i(39457),s=i(86305),h=i(37325),l=i(56037),d=i(89851),g=i(88863),c=i(87),u=i(28904),f=i(33948),p={L:"left",R:"right",T:"top",B:"bottom"},m={L:(0,d.K)(t=>`${t},${t/2} 0,${t} 0,0`,"L"),R:(0,d.K)(t=>`0,${t/2} ${t},0 ${t},${t}`,"R"),T:(0,d.K)(t=>`0,0 ${t},0 ${t/2},${t}`,"T"),B:(0,d.K)(t=>`${t/2},0 ${t},${t} 0,${t}`,"B")},v={L:(0,d.K)((t,e)=>t-e+2,"L"),R:(0,d.K)((t,e)=>t-2,"R"),T:(0,d.K)((t,e)=>t-e+2,"T"),B:(0,d.K)((t,e)=>t-2,"B")},y=(0,d.K)(function(t){return T(t)?"L"===t?"R":"L":"T"===t?"B":"T"},"getOppositeArchitectureDirection"),E=(0,d.K)(function(t){return"L"===t||"R"===t||"T"===t||"B"===t},"isArchitectureDirection"),T=(0,d.K)(function(t){return"L"===t||"R"===t},"isArchitectureDirectionX"),N=(0,d.K)(function(t){return"T"===t||"B"===t},"isArchitectureDirectionY"),A=(0,d.K)(function(t,e){let i=T(t)&&N(e),r=N(t)&&T(e);return i||r},"isArchitectureDirectionXY"),w=(0,d.K)(function(t){let e=t[0],i=t[1],r=T(e)&&N(i),n=N(e)&&T(i);return r||n},"isArchitecturePairXY"),L=(0,d.K)(function(t){return"LL"!==t&&"RR"!==t&&"TT"!==t&&"BB"!==t},"isValidArchitectureDirectionPair"),C=(0,d.K)(function(t,e){let i=`${t}${e}`;return L(i)?i:void 0},"getArchitectureDirectionPair"),M=(0,d.K)(function([t,e],i){let r=i[0],n=i[1];if(T(r))if(N(n))return[t+("L"===r?-1:1),e+("T"===n?1:-1)];else return[t+("L"===r?-1:1),e];return T(n)?[t+("L"===n?1:-1),e+("T"===r?1:-1)]:[t,e+("T"===r?1:-1)]},"shiftPositionByArchitectureDirectionPair"),_=(0,d.K)(function(t){return"LT"===t||"TL"===t?[1,1]:"BL"===t||"LB"===t?[1,-1]:"BR"===t||"RB"===t?[-1,-1]:[-1,1]},"getArchitectureDirectionXYFactors"),I=(0,d.K)(function(t,e){return A(t,e)?"bend":T(t)?"horizontal":"vertical"},"getArchitectureDirectionAlignment"),x=(0,d.K)(function(t){return"service"===t.type},"isArchitectureService"),O=(0,d.K)(function(t){return"junction"===t.type},"isArchitectureJunction"),D=(0,d.K)((t,e)=>{let[i,r]=[t,e].sort();return`${JSON.stringify(i)}-${JSON.stringify(r)}`},"architectureGroupAlignmentKey"),R=(0,d.K)(t=>t.data(),"edgeData"),b=(0,d.K)(t=>t.data(),"nodeData"),F=h.UI.architecture,S=class{constructor(){this.nodes=new Map,this.groups=new Map,this.edges=[],this.layoutHints=[],this.registeredIds=new Map,this.elements=new Map,this.diagramId="",this.setAccTitle=h.SV,this.getAccTitle=h.iN,this.setDiagramTitle=h.ke,this.getDiagramTitle=h.ab,this.getAccDescription=h.m7,this.setAccDescription=h.EI,this.clear()}static{(0,d.K)(this,"ArchitectureDB")}setDiagramId(t){this.diagramId=t}getDiagramId(){return this.diagramId}clear(){this.nodes=new Map,this.groups=new Map,this.edges=[],this.layoutHints=[],this.registeredIds=new Map,this.dataStructures=void 0,this.elements=new Map,this.diagramId="",(0,h.IU)()}addService({id:t,icon:e,in:i,title:r,iconText:n}){if(this.registeredIds.has(t))throw Error(`The service id [${t}] is already in use by another ${this.registeredIds.get(t)}`);if(void 0!==i){if(t===i)throw Error(`The service [${t}] cannot be placed within itself`);if(!this.registeredIds.has(i))throw Error(`The service [${t}]'s parent does not exist. Please make sure the parent is created before this service`);if("node"===this.registeredIds.get(i))throw Error(`The service [${t}]'s parent is not a group`)}this.registeredIds.set(t,"node"),this.nodes.set(t,{id:t,type:"service",icon:e,iconText:n,title:r,edges:[],in:i})}getServices(){return[...this.nodes.values()].filter(x)}addJunction({id:t,in:e}){if(this.registeredIds.has(t))throw Error(`The junction id [${t}] is already in use by another ${this.registeredIds.get(t)}`);if(void 0!==e){if(t===e)throw Error(`The junction [${t}] cannot be placed within itself`);if(!this.registeredIds.has(e))throw Error(`The junction [${t}]'s parent does not exist. Please make sure the parent is created before this junction`);if("node"===this.registeredIds.get(e))throw Error(`The junction [${t}]'s parent is not a group`)}this.registeredIds.set(t,"node"),this.nodes.set(t,{id:t,type:"junction",edges:[],in:e})}getJunctions(){return[...this.nodes.values()].filter(O)}getNodes(){return[...this.nodes.values()]}getNode(t){return this.nodes.get(t)??null}addGroup({id:t,icon:e,in:i,title:r}){if(this.registeredIds.has(t))throw Error(`The group id [${t}] is already in use by another ${this.registeredIds.get(t)}`);if(void 0!==i){if(t===i)throw Error(`The group [${t}] cannot be placed within itself`);if(!this.registeredIds.has(i))throw Error(`The group [${t}]'s parent does not exist. Please make sure the parent is created before this group`);if("node"===this.registeredIds.get(i))throw Error(`The group [${t}]'s parent is not a group`)}this.registeredIds.set(t,"group"),this.groups.set(t,{id:t,icon:e,title:r,in:i})}getGroups(){return[...this.groups.values()]}addEdge({lhsId:t,rhsId:e,lhsDir:i,rhsDir:r,lhsInto:n,rhsInto:o,lhsGroup:a,rhsGroup:s,title:h}){if(!E(i))throw Error(`Invalid direction given for left hand side of edge ${t}--${e}. Expected (L,R,T,B) got ${String(i)}`);if(!E(r))throw Error(`Invalid direction given for right hand side of edge ${t}--${e}. Expected (L,R,T,B) got ${String(r)}`);if(!this.nodes.has(t)&&!this.groups.has(t))throw Error(`The left-hand id [${t}] does not yet exist. Please create the service/group before declaring an edge to it.`);if(!this.nodes.has(e)&&!this.groups.has(e))throw Error(`The right-hand id [${e}] does not yet exist. Please create the service/group before declaring an edge to it.`);let l=this.nodes.get(t).in,d=this.nodes.get(e).in;if(a&&l&&d&&l==d)throw Error(`The left-hand id [${t}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);if(s&&l&&d&&l==d)throw Error(`The right-hand id [${e}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);this.edges.push({lhsId:t,lhsDir:i,lhsInto:n,lhsGroup:a,rhsId:e,rhsDir:r,rhsInto:o,rhsGroup:s,title:h});let g=this.nodes.get(t),c=this.nodes.get(e);g&&c&&(g.edges.push(this.edges[this.edges.length-1]),c.edges.push(this.edges[this.edges.length-1]))}getEdges(){return this.edges}addLayoutHint(t){if(t.members.length<2)throw Error(`An align directive requires at least two members; got ${t.members.length}`);let e=new Set;t.members.forEach(i=>{if("node"!==this.registeredIds.get(i))throw Error(`align ${t.direction} references [${i}], which is not a service or junction`);if(e.has(i))throw Error(`align ${t.direction} lists [${i}] more than once`);e.add(i)}),this.layoutHints.push(t)}getLayoutHints(){return this.layoutHints}getDataStructures(){if(void 0===this.dataStructures){let t=new Map,e=new Map;for(let[i,r]of this.nodes.entries()){let n=new Map;for(let e of r.edges){let r=this.getNode(e.lhsId)?.in,o=this.getNode(e.rhsId)?.in;if(r&&o&&r!==o){let i=I(e.lhsDir,e.rhsDir);"bend"!==i&&t.set(D(r,o),i)}if(e.lhsId===i){let t=C(e.lhsDir,e.rhsDir);t&&n.set(t,e.rhsId)}else{let t=C(e.rhsDir,e.lhsDir);t&&n.set(t,e.lhsId)}}e.set(i,n)}let i=new Set,r=new Set(e.keys()),n=(0,d.K)(t=>{let n=new Map([[t,[0,0]]]),o=[t];for(;o.length>0;){let t=o.shift();if(t){i.add(t),r.delete(t);let a=e.get(t);if(!a)throw Error(`BFS error: adjacency list for id ${t} not found. Please report this as a bug.`);let s=n.get(t);if(!s)throw Error(`BFS error: position for id ${t} not found in spatial map. Please report this as a bug.`);let[h,l]=s;a.forEach((t,e)=>{i.has(t)||(n.set(t,M([h,l],e)),o.push(t))})}}return n},"BFS"),o=[];for(;r.size>0;){let t=r.values().next().value;o.push(n(t))}this.dataStructures={adjList:e,spatialMaps:o,groupAlignments:t}}return this.dataStructures}setElementForId(t,e){this.elements.set(t,e)}getElementById(t){return this.elements.get(t)}getConfig(){return(0,s.$t)({...F,...(0,h.zj)().architecture})}getConfigField(t){return this.getConfig()[t]}},G=(0,d.K)((t,e)=>{(0,r.S)(t,e),t.groups.map(t=>e.addGroup(t)),t.services.map(t=>e.addService({...t,type:"service"})),t.junctions.map(t=>e.addJunction({...t,type:"junction"})),t.edges.map(t=>e.addEdge(t)),t.alignments?.map(t=>e.addLayoutHint({direction:t.direction,members:[...t.members]}))},"populateDb"),P={parser:{yy:void 0},parse:(0,d.K)(async t=>{let e=await (0,g.qg)("architecture",t);l.R.debug(e);let i=P.parser?.yy;if(!(i instanceof S))throw Error("parser.parser?.yy was not a ArchitectureDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");G(e,i)},"parse")},U=(0,d.K)(t=>`
2
+ .edge {
3
+ stroke-width: ${t.archEdgeWidth};
4
+ stroke: ${t.archEdgeColor};
5
+ fill: none;
6
+ }
7
+
8
+ .arrow {
9
+ fill: ${t.archEdgeArrowColor};
10
+ }
11
+
12
+ .node-bkg {
13
+ fill: none;
14
+ stroke: ${t.archGroupBorderColor};
15
+ stroke-width: ${t.archGroupBorderWidth};
16
+ stroke-dasharray: 8;
17
+ }
18
+ .node-icon-text {
19
+ display: flex;
20
+ align-items: center;
21
+ }
22
+
23
+ .node-icon-text > div {
24
+ color: #fff;
25
+ margin: 1px;
26
+ height: fit-content;
27
+ text-align: center;
28
+ overflow: hidden;
29
+ display: -webkit-box;
30
+ -webkit-box-orient: vertical;
31
+ }
32
+ `,"getStyles");function k(t,e){if(0===t)return e();let i=Math.random,r=t>>>0;Math.random=function(){let t=r=r+0x6d2b79f5>>>0;return t=Math.imul(t^t>>>15,1|t),(((t^=t+Math.imul(t^t>>>7,61|t))^t>>>14)>>>0)/0x100000000};try{return e()}finally{Math.random=i}}(0,d.K)(k,"withSeededRandom");var Y=(0,d.K)(t=>`<g><rect width="80" height="80" style="fill: #087ebf; stroke-width: 0px;"/>${t}</g>`,"wrapIcon"),H={prefix:"mermaid-architecture",height:80,width:80,icons:{database:{body:Y('<path id="b" data-name="4" d="m20,57.86c0,3.94,8.95,7.14,20,7.14s20-3.2,20-7.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path id="c" data-name="3" d="m20,45.95c0,3.94,8.95,7.14,20,7.14s20-3.2,20-7.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path id="d" data-name="2" d="m20,34.05c0,3.94,8.95,7.14,20,7.14s20-3.2,20-7.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse id="e" data-name="1" cx="40" cy="22.14" rx="20" ry="7.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="20" y1="57.86" x2="20" y2="22.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="60" y1="57.86" x2="60" y2="22.14" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/>')},server:{body:Y('<rect x="17.5" y="17.5" width="45" height="45" rx="2" ry="2" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="17.5" y1="32.5" x2="62.5" y2="32.5" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="17.5" y1="47.5" x2="62.5" y2="47.5" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><g><path d="m56.25,25c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: #fff; stroke-width: 0px;"/><path d="m56.25,25c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: none; stroke: #fff; stroke-miterlimit: 10;"/></g><g><path d="m56.25,40c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: #fff; stroke-width: 0px;"/><path d="m56.25,40c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: none; stroke: #fff; stroke-miterlimit: 10;"/></g><g><path d="m56.25,55c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: #fff; stroke-width: 0px;"/><path d="m56.25,55c0,.27-.45.5-1,.5h-10.5c-.55,0-1-.23-1-.5s.45-.5,1-.5h10.5c.55,0,1,.23,1,.5Z" style="fill: none; stroke: #fff; stroke-miterlimit: 10;"/></g><g><circle cx="32.5" cy="25" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="27.5" cy="25" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="22.5" cy="25" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/></g><g><circle cx="32.5" cy="40" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="27.5" cy="40" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="22.5" cy="40" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/></g><g><circle cx="32.5" cy="55" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="27.5" cy="55" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/><circle cx="22.5" cy="55" r=".75" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10;"/></g>')},disk:{body:Y('<rect x="20" y="15" width="40" height="50" rx="1" ry="1" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="24" cy="19.17" rx=".8" ry=".83" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="56" cy="19.17" rx=".8" ry=".83" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="24" cy="60.83" rx=".8" ry=".83" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="56" cy="60.83" rx=".8" ry=".83" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="40" cy="33.75" rx="14" ry="14.58" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><ellipse cx="40" cy="33.75" rx="4" ry="4.17" style="fill: #fff; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path d="m37.51,42.52l-4.83,13.22c-.26.71-1.1,1.02-1.76.64l-4.18-2.42c-.66-.38-.81-1.26-.33-1.84l9.01-10.8c.88-1.05,2.56-.08,2.09,1.2Z" style="fill: #fff; stroke-width: 0px;"/>')},internet:{body:Y('<circle cx="40" cy="40" r="22.5" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="40" y1="17.5" x2="40" y2="62.5" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="17.5" y1="40" x2="62.5" y2="40" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path d="m39.99,17.51c-15.28,11.1-15.28,33.88,0,44.98" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><path d="m40.01,17.51c15.28,11.1,15.28,33.88,0,44.98" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="19.75" y1="30.1" x2="60.25" y2="30.1" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/><line x1="19.75" y1="49.9" x2="60.25" y2="49.9" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/>')},cloud:{body:Y('<path d="m65,47.5c0,2.76-2.24,5-5,5H20c-2.76,0-5-2.24-5-5,0-1.87,1.03-3.51,2.56-4.36-.04-.21-.06-.42-.06-.64,0-2.6,2.48-4.74,5.65-4.97,1.65-4.51,6.34-7.76,11.85-7.76.86,0,1.69.08,2.5.23,2.09-1.57,4.69-2.5,7.5-2.5,6.1,0,11.19,4.38,12.28,10.17,2.14.56,3.72,2.51,3.72,4.83,0,.03,0,.07-.01.1,2.29.46,4.01,2.48,4.01,4.9Z" style="fill: none; stroke: #fff; stroke-miterlimit: 10; stroke-width: 2px;"/>')},unknown:a.Gc,blank:{body:Y("")}}},X=(0,d.K)(async function(t,e,i,r){let n=i.getConfigField("padding"),a=i.getConfigField("iconSize"),l=a/2,d=a/6,g=d/2;await Promise.all(e.edges().map(async e=>{let{source:a,sourceDir:c,sourceArrow:u,sourceGroup:f,target:p,targetDir:y,targetArrow:E,targetGroup:L,label:M}=R(e),{x:I,y:x}=e[0].sourceEndpoint(),{x:O,y:D}=e[0].midpoint(),{x:b,y:F}=e[0].targetEndpoint(),S=n+4;if(f&&(T(c)?I+="L"===c?-S:S:x+="T"===c?-S:S+18),L&&(T(y)?b+="L"===y?-S:S:F+="T"===y?-S:S+18),f||i.getNode(a)?.type!=="junction"||(T(c)?I+="L"===c?l:-l:x+="T"===c?l:-l),L||i.getNode(p)?.type!=="junction"||(T(y)?b+="L"===y?l:-l:F+="T"===y?l:-l),e[0]._private.rscratch){let e=t.insert("g");if(e.insert("path").attr("d",`M ${I},${x} L ${O},${D} L${b},${F} `).attr("class","edge").attr("id",`${r}-${(0,s.rY)(a,p,{prefix:"L"})}`),u){let t=T(c)?v[c](I,d):I-g,i=N(c)?v[c](x,d):x-g;e.insert("polygon").attr("points",m[c](d)).attr("transform",`translate(${t},${i})`).attr("class","arrow")}if(E){let t=T(y)?v[y](b,d):b-g,i=N(y)?v[y](F,d):F-g;e.insert("polygon").attr("points",m[y](d)).attr("transform",`translate(${t},${i})`).attr("class","arrow")}if(M){let t=A(c,y)?"XY":T(c)?"X":"Y",i=0;i="X"===t?Math.abs(I-b):"Y"===t?Math.abs(x-F)/1.5:Math.abs(I-b)/2;let r=e.append("g");if(await (0,o.G)(r,M,{useHtmlLabels:!1,width:i,classes:"architecture-service-label"},(0,h.D7)()),r.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle"),"X"===t)r.attr("transform","translate("+O+", "+D+")");else if("Y"===t)r.attr("transform","translate("+O+", "+D+") rotate(-90)");else if("XY"===t){let t=C(c,y);if(t&&w(t)){let e=r.node().getBoundingClientRect(),[i,n]=_(t);r.attr("dominant-baseline","auto").attr("transform",`rotate(${-1*i*n*45})`);let o=r.node().getBoundingClientRect();r.attr("transform",`
33
+ translate(${O}, ${D-e.height/2})
34
+ translate(${i*o.width/2}, ${n*o.height/2})
35
+ rotate(${-1*i*n*45}, 0, ${e.height/2})
36
+ `)}}}}}))},"drawEdges"),z=(0,d.K)(async function(t,e,i,r){let n=.75*i.getConfigField("padding"),s=i.getConfigField("fontSize"),l=i.getConfigField("iconSize")/2;await Promise.all(e.nodes().map(async e=>{let d=b(e);if("group"===d.type){let{h:g,w:c,x1:u,y1:f}=e.boundingBox(),p=t.append("rect");p.attr("id",`${r}-group-${d.id}`).attr("x",u+l).attr("y",f+l).attr("width",c).attr("height",g).attr("class","node-bkg");let m=t.append("g"),v=u,y=f;if(d.icon){let t=m.append("g");t.html(`<g>${await (0,a.WY)(d.icon,{height:n,width:n,fallbackPrefix:H.prefix})}</g>`),t.attr("transform","translate("+(v+l+1)+", "+(y+l+1)+")"),v+=n,y+=s/2-1-2}if(d.label){let t=m.append("g");await (0,o.G)(t,d.label,{useHtmlLabels:!1,width:c,classes:"architecture-service-label"},(0,h.D7)()),t.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","start").attr("text-anchor","start"),t.attr("transform","translate("+(v+l+4)+", "+(y+l+2)+")")}i.setElementForId(d.id,p)}}))},"drawGroups"),B=(0,d.K)(async function(t,e,i,r){let n=(0,h.D7)();for(let s of i){let i=e.append("g"),l=t.getConfigField("iconSize");if(s.title){let t=i.append("g");await (0,o.G)(t,s.title,{useHtmlLabels:!1,width:1.5*l,classes:"architecture-service-label"},n),t.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle"),t.attr("transform","translate("+l/2+", "+l+")")}let d=i.append("g");if(s.icon)d.html(`<g>${await (0,a.WY)(s.icon,{height:l,width:l,fallbackPrefix:H.prefix})}</g>`);else if(s.iconText){d.html(`<g>${await (0,a.WY)("blank",{height:l,width:l,fallbackPrefix:H.prefix})}</g>`);let t=d.append("g").append("foreignObject").attr("width",l).attr("height",l).append("div").attr("class","node-icon-text").attr("style",`height: ${l}px;`).append("div").html((0,h.jZ)(s.iconText,n)),e=parseInt(window.getComputedStyle(t.node(),null).getPropertyValue("font-size").replace(/\D/g,""))??16;t.attr("style",`-webkit-line-clamp: ${Math.floor((l-2)/e)};`)}else d.append("path").attr("class","node-bkg").attr("id",`${r}-node-${s.id}`).attr("d",`M0,${l} V5 Q0,0 5,0 H${l-5} Q${l},0 ${l},5 V${l} Z`);i.attr("id",`${r}-service-${s.id}`).attr("class","architecture-service");let{width:g,height:c}=i.node().getBBox();s.width=g,s.height=c,t.setElementForId(s.id,i)}return 0},"drawServices"),V=(0,d.K)(function(t,e,i,r){i.forEach(i=>{let n=e.append("g"),o=t.getConfigField("iconSize");n.append("g").append("rect").attr("id",`${r}-node-${i.id}`).attr("fill-opacity","0").attr("width",o).attr("height",o),n.attr("class","architecture-junction");let{width:a,height:s}=n._groups[0][0].getBBox();n.width=a,n.height=s,t.setElementForId(i.id,n)})},"drawJunctions");function W(t,e,i){t.forEach(t=>{e.add({group:"nodes",data:{type:"service",id:t.id,icon:t.icon,label:t.title,parent:t.in,width:i.getConfigField("iconSize"),height:i.getConfigField("iconSize")},classes:"node-service"})})}function $(t,e,i){t.forEach(t=>{e.add({group:"nodes",data:{type:"junction",id:t.id,parent:t.in,width:i.getConfigField("iconSize"),height:i.getConfigField("iconSize")},classes:"node-junction"})})}function j(t,e){e.nodes().map(e=>{let i=b(e);"group"===i.type||(i.x=e.position().x,i.y=e.position().y,t.getElementById(i.id).attr("transform","translate("+(i.x||0)+","+(i.y||0)+")"))})}function q(t,e){t.forEach(t=>{e.add({group:"nodes",data:{type:"group",id:t.id,icon:t.icon,label:t.title,parent:t.in},classes:"node-group"})})}function K(t,e){t.forEach(t=>{let{lhsId:i,rhsId:r,lhsInto:n,lhsGroup:o,rhsInto:a,lhsDir:s,rhsDir:h,rhsGroup:l,title:d}=t,g=A(t.lhsDir,t.rhsDir)?"segments":"straight",c={id:`${i}-${r}`,label:d,source:i,sourceDir:s,sourceArrow:n,sourceGroup:o,sourceEndpoint:"L"===s?"0 50%":"R"===s?"100% 50%":"T"===s?"50% 0":"50% 100%",target:r,targetDir:h,targetArrow:a,targetGroup:l,targetEndpoint:"L"===h?"0 50%":"R"===h?"100% 50%":"T"===h?"50% 0":"50% 100%"};e.add({group:"edges",data:c,classes:g})})}function Z(t,e,i,r=[]){let n=(0,d.K)((t,e)=>{let r=new Map;for(let[n,o]of t.entries()){let t=`${n}`,a=0,s=[...o.entries()];if(1===s.length){r.set(t,s[0][1]);continue}for(let n=0;n<s.length-1;n++)for(let o=n+1;o<s.length;o++){let[h,l]=s[n],[d,g]=s[o];if(i.get(D(h,d))===e)r.set(t,[...r.get(t)??[],...l,...g]);else if("default"===h||"default"===d)r.set(t,[...r.get(t)??[],...l,...g]);else{let e=`${t}-${a++}`;r.set(e,l);let i=`${t}-${a++}`;r.set(i,g)}}}return r},"flattenAlignments"),[o,a]=e.map(e=>{let i=new Map,r=new Map;return e.forEach(([e,n],o)=>{let a=t.getNode(o)?.in??"default",s=i.get(n)??new Map;i.has(n)||i.set(n,s);let h=r.get(e)??new Map;for(let t of(r.has(e)||r.set(e,h),[s,h])){let e=t.get(a)??[];t.has(a)||t.set(a,e),e.push(o)}}),{horiz:[...n(i,"horizontal").values()].filter(t=>t.length>1),vert:[...n(r,"vertical").values()].filter(t=>t.length>1)}}).reduce(([t,e],{horiz:i,vert:r})=>[[...t,...i],[...e,...r]],[[],[]]),s=new Set;r.forEach(t=>t.members.forEach(t=>s.add(t)));let h=(0,d.K)(t=>t.filter(t=>!t.some(t=>s.has(t))),"dropOverlapping"),l=h(o),g=h(a);return r.forEach(t=>{t.members.length<2||("row"===t.direction?l.push([...t.members]):g.push([...t.members]))}),{horizontal:l,vertical:g}}function Q(t,e,i=[]){let r=[],n=e.getConfigField("iconSize"),o=e.getConfigField("idealEdgeLengthMultiplier"),a=o*n,s=new Set;i.forEach(t=>{for(let e=0;e<t.members.length-1;e++){let i=t.members[e],n=t.members[e+1];s.add(`${i}|${n}`),s.add(`${n}|${i}`),"row"===t.direction?r.push({left:i,right:n,gap:a}):r.push({top:i,bottom:n,gap:a})}});let h=(0,d.K)(t=>`${t[0]},${t[1]}`,"posToStr"),l=(0,d.K)(t=>t.split(",").map(t=>parseInt(t)),"strToPos");return t.forEach(t=>{let e=new Map([...t.entries()].map(([t,e])=>[h(e),t])),i=[h([0,0])],a={},d={L:[-1,0],R:[1,0],T:[0,1],B:[0,-1]};for(;i.length>0;){let t=i.shift();if(t){a[t]=1;let g=e.get(t);if(g){let c=l(t);Object.entries(d).forEach(([t,l])=>{let d=h([c[0]+l[0],c[1]+l[1]]),u=e.get(d);if(u&&!a[d]){if(i.push(d),s.has(`${g}|${u}`))return;r.push({[p[t]]:u,[p[y(t)]]:g,gap:o*n})}})}}}}),r}function J(t,e,i,r,n,{spatialMaps:o,groupAlignments:a}){return new Promise(s=>{let h=(0,f.Ltv)("body").append("div").attr("id","cy").attr("style","display:none"),g=(0,c.A)({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"straight","source-endpoint":"data(sourceEndpoint)","target-endpoint":"data(targetEndpoint)"}},{selector:"edge[label]",style:{label:"data(label)"}},{selector:"edge.segments",style:{"curve-style":"segments","segment-weights":"0","segment-distances":[.5],"edge-distances":"endpoints","source-endpoint":"data(sourceEndpoint)","target-endpoint":"data(targetEndpoint)"}},{selector:"node",style:{"compound-sizing-wrt-labels":"include"}},{selector:"node[label]",style:{"text-valign":"bottom","text-halign":"center","font-size":`${n.getConfigField("fontSize")}px`}},{selector:".node-service",style:{label:"data(label)",width:"data(width)",height:"data(height)"}},{selector:".node-junction",style:{width:"data(width)",height:"data(height)"}},{selector:".node-group",style:{padding:`${n.getConfigField("padding")}px`}}],layout:{name:"grid",boundingBox:{x1:0,x2:100,y1:0,y2:100}}});h.remove(),q(i,g),W(t,g,n),$(e,g,n),K(r,g);let u=n.getLayoutHints(),p=Z(n,o,a,u),m=Q(o,n,u),v=n.getConfigField("iconSize"),y=n.getConfigField("idealEdgeLengthMultiplier")*v,E=.5*v,T=n.getConfigField("edgeElasticity"),A=n.getConfigField("seed"),w=g.layout({name:"fcose",quality:"proof",randomize:n.getConfigField("randomize"),nodeSeparation:n.getConfigField("nodeSeparation"),numIter:n.getConfigField("numIter"),styleEnabled:!1,animate:!1,nodeDimensionsIncludeLabels:!1,idealEdgeLength(t){let[e,i]=t.connectedNodes(),{parent:r}=b(e),{parent:n}=b(i);return r===n?y:E},edgeElasticity(t){let[e,i]=t.connectedNodes(),{parent:r}=b(e),{parent:n}=b(i);return r===n?T:.001},alignmentConstraint:p,relativePlacementConstraint:m});w.one("layoutstop",()=>{function t(t,e,i,r){let n,o,{x:a,y:s}=t,{x:h,y:l}=e;o=(r-s+(a-i)*(s-l)/(a-h))/Math.sqrt(1+Math.pow((s-l)/(a-h),2)),n=Math.sqrt(Math.pow(r-s,2)+Math.pow(i-a,2)-Math.pow(o,2))/Math.sqrt(Math.pow(h-a,2)+Math.pow(l-s,2));let d=(h-a)*(r-s)-(l-s)*(i-a);switch(!0){case d>=0:d=1;break;case d<0:d=-1}let g=(h-a)*(i-a)+(l-s)*(r-s);switch(!0){case g>=0:g=1;break;case g<0:g=-1}return{distances:o=Math.abs(o)*d,weights:n*=g}}for(let e of((0,d.K)(t,"getSegmentWeights"),g.startBatch(),Object.values(g.edges())))if(e.data?.()){let{x:i,y:r}=e.source().position(),{x:n,y:o}=e.target().position();if(i!==n&&r!==o){let i=e.sourceEndpoint(),r=e.targetEndpoint(),{sourceDir:n}=R(e),[o,a]=N(n)?[i.x,r.y]:[r.x,i.y],{weights:s,distances:h}=t(i,r,o,a);e.style("segment-distances",h),e.style("segment-weights",s)}}g.endBatch(),k(A,()=>w.run())});try{k(A,()=>w.run())}catch(t){if(t instanceof RangeError&&t.message.includes("Invalid array length"))throw Error("Architecture layout failed: a declared `align row|column` directive likely contradicts the edge directions, or two declared alignments overlap on a shared node. Check that the order of members in each `align` chain is consistent with the edges between them, and that no node appears in two `align` directives along the same axis.");throw t}g.ready(t=>{l.R.info("Ready",t),s(g)})})}(0,a.pC)([{name:H.prefix,icons:H}]),c.A.use(u),(0,d.K)(W,"addServices"),(0,d.K)($,"addJunctions"),(0,d.K)(j,"positionNodes"),(0,d.K)(q,"addGroups"),(0,d.K)(K,"addEdges"),(0,d.K)(Z,"getAlignments"),(0,d.K)(Q,"getRelativeConstraints"),(0,d.K)(J,"layoutArchitecture");var tt={parser:P,get db(){return new S},renderer:{draw:(0,d.K)(async(t,e,i,r)=>{let o=r.db;o.setDiagramId(e);let a=o.getServices(),s=o.getJunctions(),l=o.getGroups(),d=o.getEdges(),g=o.getDataStructures(),c=(0,n.D)(e),u=c.append("g");u.attr("class","architecture-edges");let f=c.append("g");f.attr("class","architecture-services");let p=c.append("g");p.attr("class","architecture-groups"),await B(o,f,a,e),V(o,f,s,e);let m=await J(a,s,l,d,o,g);await X(u,m,o,e),await z(p,m,o,e),j(o,m),(0,h.ot)(void 0,c,o.getConfigField("padding"),o.getConfigField("useMaxWidth"))},"draw")},styles:U}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2821],{1105:(t,e,r)=>{r.d(e,{A:()=>a});var n=r(47261),i=r(51023),o=r(59233);function u(t){var e=this.__data__=new n.A(t);this.size=e.size}u.prototype.clear=function(){this.__data__=new n.A,this.size=0},u.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},u.prototype.get=function(t){return this.__data__.get(t)},u.prototype.has=function(t){return this.__data__.has(t)},u.prototype.set=function(t,e){var r=this.__data__;if(r instanceof n.A){var u=r.__data__;if(!i.A||u.length<199)return u.push([t,e]),this.size=++r.size,this;r=this.__data__=new o.A(u)}return r.set(t,e),this.size=r.size,this};let a=u},4986:(t,e,r)=>{r.d(e,{A:()=>o});var n=r(95749),i=r(33761);let o=function(t){if(!(0,i.A)(t))return!1;var e=(0,n.A)(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},5452:(t,e,r)=>{r.d(e,{A:()=>n});let n=function(t,e){for(var r=-1,n=e.length,i=t.length;++r<n;)t[i+r]=e[r];return t}},11576:(t,e,r)=>{r.d(e,{A:()=>w});var n=r(74548),i=r(51603),o=(0,n.A)(i.A,"DataView"),u=r(51023),a=(0,n.A)(i.A,"Promise"),s=r(78261),c=(0,n.A)(i.A,"WeakMap"),l=r(95749),f=r(69687),h="[object Map]",d="[object Promise]",A="[object Set]",p="[object WeakMap]",v="[object DataView]",_=(0,f.A)(o),b=(0,f.A)(u.A),g=(0,f.A)(a),y=(0,f.A)(s.A),j=(0,f.A)(c),O=l.A;(o&&O(new o(new ArrayBuffer(1)))!=v||u.A&&O(new u.A)!=h||a&&O(a.resolve())!=d||s.A&&O(new s.A)!=A||c&&O(new c)!=p)&&(O=function(t){var e=(0,l.A)(t),r="[object Object]"==e?t.constructor:void 0,n=r?(0,f.A)(r):"";if(n)switch(n){case _:return v;case b:return h;case g:return d;case y:return A;case j:return p}return e});let w=O},12016:(t,e,r)=>{r.d(e,{A:()=>l});let n=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n};var i=r(67903),o=r(92459),u=r(28071),a=r(26805),s=r(81019),c=Object.prototype.hasOwnProperty;let l=function(t,e){var r=(0,o.A)(t),l=!r&&(0,i.A)(t),f=!r&&!l&&(0,u.A)(t),h=!r&&!l&&!f&&(0,s.A)(t),d=r||l||f||h,A=d?n(t.length,String):[],p=A.length;for(var v in t)(e||c.call(t,v))&&!(d&&("length"==v||f&&("offset"==v||"parent"==v)||h&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||(0,a.A)(v,p)))&&A.push(v);return A}},12602:(t,e,r)=>{r.d(e,{A:()=>n});let n=function(t,e){for(var r=-1,n=null==t?0:t.length,i=Array(n);++r<n;)i[r]=e(t[r],r,t);return i}},13838:(t,e,r)=>{r.d(e,{A:()=>o});var n=r(12602),i=r(70638);let o=function(t){var e;return null==t?[]:(e=(0,i.A)(t),(0,n.A)(e,function(e){return t[e]}))}},15494:(t,e,r)=>{r.d(e,{A:()=>l});var n,i,o=r(98446),u=r(90377),a=r(79800),s=u.A?function(t,e){return(0,u.A)(t,"toString",{configurable:!0,enumerable:!1,value:(0,o.A)(e),writable:!0})}:a.A,c=Date.now;let l=(n=0,i=0,function(){var t=c(),e=16-(t-i);if(i=t,e>0){if(++n>=800)return arguments[0]}else n=0;return s.apply(void 0,arguments)})},15914:(t,e,r)=>{r.d(e,{A:()=>n});let n=r(51603).A.Uint8Array},17334:(t,e,r)=>{r.d(e,{A:()=>a});var n=r(92459),i=r(38374),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,u=/^\w*$/;let a=function(t,e){if((0,n.A)(t))return!1;var r=typeof t;return!!("number"==r||"symbol"==r||"boolean"==r||null==t||(0,i.A)(t))||u.test(t)||!o.test(t)||null!=e&&t in Object(e)}},18633:(t,e,r)=>{r.d(e,{A:()=>s});let n=function(t,e,r,n){var i=-1,o=null==t?0:t.length;for(n&&o&&(r=t[++i]);++i<o;)r=e(r,t[i],i,t);return r};var i=r(60395),o=r(47239);let u=function(t,e,r,n,i){return i(t,function(t,i,o){r=n?(n=!1,t):e(r,t,i,o)}),r};var a=r(92459);let s=function(t,e,r){var s=(0,a.A)(t)?n:u,c=arguments.length<3;return s(t,(0,o.A)(e,4),r,c,i.A)}},19396:(t,e,r)=>{r.d(e,{A:()=>o});var n=r(4986),i=r(52766);let o=function(t){return null!=t&&(0,i.A)(t.length)&&!(0,n.A)(t)}},21719:(t,e,r)=>{r.d(e,{A:()=>a});var n=r(66234),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=i&&"object"==typeof module&&module&&!module.nodeType&&module,u=o&&o.exports===i&&n.A.process;let a=function(){try{var t=o&&o.require&&o.require("util").types;if(t)return t;return u&&u.binding&&u.binding("util")}catch(t){}}()},22748:(t,e,r)=>{r.d(e,{A:()=>u});var n=r(72521),i=r(53422),o=r(70638);let u=function(t){return(0,n.A)(t,o.A,i.A)}},26391:(t,e,r)=>{r.d(e,{A:()=>o});var n=r(66162),i=r(70638);let o=function(t,e){return t&&(0,n.A)(t,e,i.A)}},26652:(t,e,r)=>{r.d(e,{A:()=>u});var n=r(79800),i=r(65537),o=r(15494);let u=function(t,e){return(0,o.A)((0,i.A)(t,e,n.A),t+"")}},26805:(t,e,r)=>{r.d(e,{A:()=>i});var n=/^(?:0|[1-9]\d*)$/;let i=function(t,e){var r=typeof t;return!!(e=null==e?0x1fffffffffffff:e)&&("number"==r||"symbol"!=r&&n.test(t))&&t>-1&&t%1==0&&t<e}},28071:(t,e,r)=>{r.d(e,{A:()=>a});var n=r(51603),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=i&&"object"==typeof module&&module&&!module.nodeType&&module,u=o&&o.exports===i?n.A.Buffer:void 0;let a=(u?u.isBuffer:void 0)||function(){return!1}},28171:(t,e,r)=>{r.d(e,{A:()=>n});let n=function(t,e){return function(r){return t(e(r))}}},29568:(t,e,r)=>{r.d(e,{A:()=>n});let n=function(t,e){return t===e||t!=t&&e!=e}},29703:(t,e,r)=>{r.d(e,{A:()=>n});let n=r(51603).A.Symbol},30253:(t,e,r)=>{r.d(e,{A:()=>o});var n=r(38374),i=1/0;let o=function(t){if("string"==typeof t||(0,n.A)(t))return t;var e=t+"";return"0"==e&&1/t==-i?"-0":e}},32459:(t,e,r)=>{r.d(e,{T:()=>M});var n=r(98446),i=r(4986),o=r(70638),u=r(55548),a=r(37846),s=r(11576),c=r(67903),l=r(92459),f=r(19396),h=r(28071),d=r(59847),A=r(81019),p=Object.prototype.hasOwnProperty;let v=function(t){if(null==t)return!0;if((0,f.A)(t)&&((0,l.A)(t)||"string"==typeof t||"function"==typeof t.splice||(0,h.A)(t)||(0,A.A)(t)||(0,c.A)(t)))return!t.length;var e=(0,s.A)(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if((0,d.A)(t))return!(0,a.A)(t).length;for(var r in t)if(p.call(t,r))return!1;return!0};var _=r(36988),b=r(94630),g=r(96901),y=r(26652),j=r(86953),O=r(35063);let w=function(t){return t!=t},m=function(t,e,r){for(var n=r-1,i=t.length;++n<i;)if(t[n]===e)return n;return -1},C=function(t,e){return!!(null==t?0:t.length)&&(e==e?m(t,e,0):(0,O.A)(t,w,0))>-1},E=function(t,e,r){for(var n=-1,i=null==t?0:t.length;++n<i;)if(r(e,t[n]))return!0;return!1};var P=r(66485),z=r(78261),N=r(93881),L=z.A&&1/(0,N.A)(new z.A([,-0]))[1]==1/0?function(t){return new z.A(t)}:function(){};let S=function(t,e,r){var n=-1,i=C,o=t.length,u=!0,a=[],s=a;if(r)u=!1,i=E;else if(o>=200){var c=e?null:L(t);if(c)return(0,N.A)(c);u=!1,i=P.A,s=new j.A}else s=e?[]:a;t:for(;++n<o;){var l=t[n],f=e?e(l):l;if(l=r||0!==l?l:0,u&&f==f){for(var h=s.length;h--;)if(s[h]===f)continue t;e&&s.push(f),a.push(l)}else i(s,f,r)||(s!==a&&s.push(f),a.push(l))}return a};var D=r(41299),x=(0,y.A)(function(t){return S((0,g.A)(t,1,D.A,!0))}),k=r(13838),F=r(18633);class M{constructor(t={}){this._isDirected=!Object.prototype.hasOwnProperty.call(t,"directed")||t.directed,this._isMultigraph=!!Object.prototype.hasOwnProperty.call(t,"multigraph")&&t.multigraph,this._isCompound=!!Object.prototype.hasOwnProperty.call(t,"compound")&&t.compound,this._label=void 0,this._defaultNodeLabelFn=n.A(void 0),this._defaultEdgeLabelFn=n.A(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children["\0"]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(t){return this._label=t,this}graph(){return this._label}setDefaultNodeLabel(t){return i.A(t)||(t=n.A(t)),this._defaultNodeLabelFn=t,this}nodeCount(){return this._nodeCount}nodes(){return o.A(this._nodes)}sources(){var t=this;return u.A(this.nodes(),function(e){return v(t._in[e])})}sinks(){var t=this;return u.A(this.nodes(),function(e){return v(t._out[e])})}setNodes(t,e){var r=arguments,n=this;return _.A(t,function(t){r.length>1?n.setNode(t,e):n.setNode(t)}),this}setNode(t,e){return Object.prototype.hasOwnProperty.call(this._nodes,t)?arguments.length>1&&(this._nodes[t]=e):(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]="\0",this._children[t]={},this._children["\0"][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount),this}node(t){return this._nodes[t]}hasNode(t){return Object.prototype.hasOwnProperty.call(this._nodes,t)}removeNode(t){if(Object.prototype.hasOwnProperty.call(this._nodes,t)){var e=t=>this.removeEdge(this._edgeObjs[t]);delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],_.A(this.children(t),t=>{this.setParent(t)}),delete this._children[t]),_.A(o.A(this._in[t]),e),delete this._in[t],delete this._preds[t],_.A(o.A(this._out[t]),e),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this}setParent(t,e){if(!this._isCompound)throw Error("Cannot set parent in a non-compound graph");if(b.A(e))e="\0";else{e+="";for(var r=e;!b.A(r);r=this.parent(r))if(r===t)throw Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this}_removeFromParentsChildList(t){delete this._children[this._parent[t]][t]}parent(t){if(this._isCompound){var e=this._parent[t];if("\0"!==e)return e}}children(t){if(b.A(t)&&(t="\0"),this._isCompound){var e=this._children[t];if(e)return o.A(e)}else if("\0"===t)return this.nodes();else if(this.hasNode(t))return[]}predecessors(t){var e=this._preds[t];if(e)return o.A(e)}successors(t){var e=this._sucs[t];if(e)return o.A(e)}neighbors(t){var e=this.predecessors(t);if(e)return x(e,this.successors(t))}isLeaf(t){return 0===(this.isDirected()?this.successors(t):this.neighbors(t)).length}filterNodes(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var r=this;_.A(this._nodes,function(r,n){t(n)&&e.setNode(n,r)}),_.A(this._edgeObjs,function(t){e.hasNode(t.v)&&e.hasNode(t.w)&&e.setEdge(t,r.edge(t))});var n={};return this._isCompound&&_.A(e.nodes(),function(t){e.setParent(t,function t(i){var o=r.parent(i);return void 0===o||e.hasNode(o)?(n[i]=o,o):o in n?n[o]:t(o)}(t))}),e}setDefaultEdgeLabel(t){return i.A(t)||(t=n.A(t)),this._defaultEdgeLabelFn=t,this}edgeCount(){return this._edgeCount}edges(){return k.A(this._edgeObjs)}setPath(t,e){var r=this,n=arguments;return F.A(t,function(t,i){return n.length>1?r.setEdge(t,i,e):r.setEdge(t,i),i}),this}setEdge(){var t,e,r,n,i=!1,o=arguments[0];"object"==typeof o&&null!==o&&"v"in o?(t=o.v,e=o.w,r=o.name,2==arguments.length&&(n=arguments[1],i=!0)):(t=o,e=arguments[1],r=arguments[3],arguments.length>2&&(n=arguments[2],i=!0)),t=""+t,e=""+e,b.A(r)||(r=""+r);var u=B(this._isDirected,t,e,r);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,u))return i&&(this._edgeLabels[u]=n),this;if(!b.A(r)&&!this._isMultigraph)throw Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[u]=i?n:this._defaultEdgeLabelFn(t,e,r);var a=function(t,e,r,n){var i=""+e,o=""+r;if(!t&&i>o){var u=i;i=o,o=u}var a={v:i,w:o};return n&&(a.name=n),a}(this._isDirected,t,e,r);return t=a.v,e=a.w,Object.freeze(a),this._edgeObjs[u]=a,T(this._preds[e],t),T(this._sucs[t],e),this._in[e][u]=a,this._out[t][u]=a,this._edgeCount++,this}edge(t,e,r){var n=1==arguments.length?I(this._isDirected,arguments[0]):B(this._isDirected,t,e,r);return this._edgeLabels[n]}hasEdge(t,e,r){var n=1==arguments.length?I(this._isDirected,arguments[0]):B(this._isDirected,t,e,r);return Object.prototype.hasOwnProperty.call(this._edgeLabels,n)}removeEdge(t,e,r){var n=1==arguments.length?I(this._isDirected,arguments[0]):B(this._isDirected,t,e,r),i=this._edgeObjs[n];return i&&(t=i.v,e=i.w,delete this._edgeLabels[n],delete this._edgeObjs[n],$(this._preds[e],t),$(this._sucs[t],e),delete this._in[e][n],delete this._out[t][n],this._edgeCount--),this}inEdges(t,e){var r=this._in[t];if(r){var n=k.A(r);return e?u.A(n,function(t){return t.v===e}):n}}outEdges(t,e){var r=this._out[t];if(r){var n=k.A(r);return e?u.A(n,function(t){return t.w===e}):n}}nodeEdges(t,e){var r=this.inEdges(t,e);if(r)return r.concat(this.outEdges(t,e))}}function T(t,e){t[e]?t[e]++:t[e]=1}function $(t,e){--t[e]||delete t[e]}function B(t,e,r,n){var i=""+e,o=""+r;if(!t&&i>o){var u=i;i=o,o=u}return i+"\x01"+o+"\x01"+(b.A(n)?"\0":n)}function I(t,e){return B(t,e.v,e.w,e.name)}M.prototype._nodeCount=0,M.prototype._edgeCount=0},32521:(t,e,r)=>{r.d(e,{A:()=>n});let n=function(t){return function(e){return t(e)}}},33761:(t,e,r)=>{r.d(e,{A:()=>n});let n=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},35063:(t,e,r)=>{r.d(e,{A:()=>n});let n=function(t,e,r,n){for(var i=t.length,o=r+(n?1:-1);n?o--:++o<i;)if(e(t[o],o,t))return o;return -1}},36988:(t,e,r)=>{r.d(e,{A:()=>a});var n=r(57301),i=r(60395),o=r(78416),u=r(92459);let a=function(t,e){return((0,u.A)(t)?n.A:i.A)(t,(0,o.A)(e))}},37846:(t,e,r)=>{r.d(e,{A:()=>u});var n=r(59847),i=(0,r(28171).A)(Object.keys,Object),o=Object.prototype.hasOwnProperty;let u=function(t){if(!(0,n.A)(t))return i(t);var e=[];for(var r in Object(t))o.call(t,r)&&"constructor"!=r&&e.push(r);return e}},38374:(t,e,r)=>{r.d(e,{A:()=>o});var n=r(95749),i=r(77494);let o=function(t){return"symbol"==typeof t||(0,i.A)(t)&&"[object Symbol]"==(0,n.A)(t)}},41299:(t,e,r)=>{r.d(e,{A:()=>o});var n=r(19396),i=r(77494);let o=function(t){return(0,i.A)(t)&&(0,n.A)(t)}},42410:(t,e,r)=>{r.d(e,{A:()=>n});let n=function(t,e){for(var r=-1,n=null==t?0:t.length,i=0,o=[];++r<n;){var u=t[r];e(u,r,t)&&(o[i++]=u)}return o}},47239:(t,e,r)=>{r.d(e,{A:()=>W});var n=r(1105),i=r(86953);let o=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1};var u=r(66485);let a=function(t,e,r,n,a,s){var c=1&r,l=t.length,f=e.length;if(l!=f&&!(c&&f>l))return!1;var h=s.get(t),d=s.get(e);if(h&&d)return h==e&&d==t;var A=-1,p=!0,v=2&r?new i.A:void 0;for(s.set(t,e),s.set(e,t);++A<l;){var _=t[A],b=e[A];if(n)var g=c?n(b,_,A,e,t,s):n(_,b,A,t,e,s);if(void 0!==g){if(g)continue;p=!1;break}if(v){if(!o(e,function(t,e){if(!(0,u.A)(v,e)&&(_===t||a(_,t,r,n,s)))return v.push(e)})){p=!1;break}}else if(!(_===b||a(_,b,r,n,s))){p=!1;break}}return s.delete(t),s.delete(e),p};var s=r(29703),c=r(15914),l=r(29568);let f=function(t){var e=-1,r=Array(t.size);return t.forEach(function(t,n){r[++e]=[n,t]}),r};var h=r(93881),d=s.A?s.A.prototype:void 0,A=d?d.valueOf:void 0;let p=function(t,e,r,n,i,o,u){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)break;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":if(t.byteLength!=e.byteLength||!o(new c.A(t),new c.A(e)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return(0,l.A)(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var s=f;case"[object Set]":var d=1&n;if(s||(s=h.A),t.size!=e.size&&!d)break;var p=u.get(t);if(p)return p==e;n|=2,u.set(t,e);var v=a(s(t),s(e),n,i,o,u);return u.delete(t),v;case"[object Symbol]":if(A)return A.call(t)==A.call(e)}return!1};var v=r(22748),_=Object.prototype.hasOwnProperty;let b=function(t,e,r,n,i,o){var u=1&r,a=(0,v.A)(t),s=a.length;if(s!=(0,v.A)(e).length&&!u)return!1;for(var c=s;c--;){var l=a[c];if(!(u?l in e:_.call(e,l)))return!1}var f=o.get(t),h=o.get(e);if(f&&h)return f==e&&h==t;var d=!0;o.set(t,e),o.set(e,t);for(var A=u;++c<s;){var p=t[l=a[c]],b=e[l];if(n)var g=u?n(b,p,l,e,t,o):n(p,b,l,t,e,o);if(!(void 0===g?p===b||i(p,b,r,n,o):g)){d=!1;break}A||(A="constructor"==l)}if(d&&!A){var y=t.constructor,j=e.constructor;y!=j&&"constructor"in t&&"constructor"in e&&!("function"==typeof y&&y instanceof y&&"function"==typeof j&&j instanceof j)&&(d=!1)}return o.delete(t),o.delete(e),d};var g=r(11576),y=r(92459),j=r(28071),O=r(81019),w="[object Arguments]",m="[object Array]",C="[object Object]",E=Object.prototype.hasOwnProperty;let P=function(t,e,r,i,o,u){var s=(0,y.A)(t),c=(0,y.A)(e),l=s?m:(0,g.A)(t),f=c?m:(0,g.A)(e);l=l==w?C:l,f=f==w?C:f;var h=l==C,d=f==C,A=l==f;if(A&&(0,j.A)(t)){if(!(0,j.A)(e))return!1;s=!0,h=!1}if(A&&!h)return u||(u=new n.A),s||(0,O.A)(t)?a(t,e,r,i,o,u):p(t,e,l,r,i,o,u);if(!(1&r)){var v=h&&E.call(t,"__wrapped__"),_=d&&E.call(e,"__wrapped__");if(v||_){var P=v?t.value():t,z=_?e.value():e;return u||(u=new n.A),o(P,z,r,i,u)}}return!!A&&(u||(u=new n.A),b(t,e,r,i,o,u))};var z=r(77494);let N=function t(e,r,n,i,o){return e===r||(null!=e&&null!=r&&((0,z.A)(e)||(0,z.A)(r))?P(e,r,n,i,t,o):e!=e&&r!=r)},L=function(t,e,r,i){var o=r.length,u=o,a=!i;if(null==t)return!u;for(t=Object(t);o--;){var s=r[o];if(a&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++o<u;){var c=(s=r[o])[0],l=t[c],f=s[1];if(a&&s[2]){if(void 0===l&&!(c in t))return!1}else{var h=new n.A;if(i)var d=i(l,f,c,t,e,h);if(!(void 0===d?N(f,l,3,i,h):d))return!1}}return!0};var S=r(33761);let D=function(t){return t==t&&!(0,S.A)(t)};var x=r(70638);let k=function(t){for(var e=(0,x.A)(t),r=e.length;r--;){var n=e[r],i=t[n];e[r]=[n,i,D(i)]}return e},F=function(t,e){return function(r){return null!=r&&r[t]===e&&(void 0!==e||t in Object(r))}},M=function(t){var e=k(t);return 1==e.length&&e[0][2]?F(e[0][0],e[0][1]):function(r){return r===t||L(r,t,e)}};var T=r(71606);let $=function(t,e,r){var n=null==t?void 0:(0,T.A)(t,e);return void 0===n?r:n};var B=r(52259),I=r(17334),U=r(30253),R=r(79800),V=r(81807);let G=function(t){return(0,I.A)(t)?(0,V.A)((0,U.A)(t)):function(e){return(0,T.A)(e,t)}},W=function(t){if("function"==typeof t)return t;if(null==t)return R.A;if("object"==typeof t){var e,r;return(0,y.A)(t)?(e=t[0],r=t[1],(0,I.A)(e)&&D(r)?F((0,U.A)(e),r):function(t){var n=$(t,e);return void 0===n&&n===r?(0,B.A)(t,e):N(r,n,3)}):M(t)}return G(t)}},47261:(t,e,r)=>{r.d(e,{A:()=>a});var n=r(29568);let i=function(t,e){for(var r=t.length;r--;)if((0,n.A)(t[r][0],e))return r;return -1};var o=Array.prototype.splice;function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}u.prototype.clear=function(){this.__data__=[],this.size=0},u.prototype.delete=function(t){var e=this.__data__,r=i(e,t);return!(r<0)&&(r==e.length-1?e.pop():o.call(e,r,1),--this.size,!0)},u.prototype.get=function(t){var e=this.__data__,r=i(e,t);return r<0?void 0:e[r][1]},u.prototype.has=function(t){return i(this.__data__,t)>-1},u.prototype.set=function(t,e){var r=this.__data__,n=i(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};let a=u},51023:(t,e,r)=>{r.d(e,{A:()=>o});var n=r(74548),i=r(51603);let o=(0,n.A)(i.A,"Map")},51603:(t,e,r)=>{r.d(e,{A:()=>o});var n=r(66234),i="object"==typeof self&&self&&self.Object===Object&&self;let o=n.A||i||Function("return this")()},52259:(t,e,r)=>{r.d(e,{A:()=>o});let n=function(t,e){return null!=t&&e in Object(t)};var i=r(62878);let o=function(t,e){return null!=t&&(0,i.A)(t,e,n)}},52766:(t,e,r)=>{r.d(e,{A:()=>n});let n=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=0x1fffffffffffff}},53422:(t,e,r)=>{r.d(e,{A:()=>a});var n=r(42410),i=r(91359),o=Object.prototype.propertyIsEnumerable,u=Object.getOwnPropertySymbols;let a=u?function(t){return null==t?[]:(t=Object(t),(0,n.A)(u(t),function(e){return o.call(t,e)}))}:i.A},55548:(t,e,r)=>{r.d(e,{A:()=>s});var n=r(42410),i=r(60395);let o=function(t,e){var r=[];return(0,i.A)(t,function(t,n,i){e(t,n,i)&&r.push(t)}),r};var u=r(47239),a=r(92459);let s=function(t,e){return((0,a.A)(t)?n.A:o)(t,(0,u.A)(e,3))}},57301:(t,e,r)=>{r.d(e,{A:()=>n});let n=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););return t}},59233:(t,e,r)=>{r.d(e,{A:()=>h});var n=(0,r(74548).A)(Object,"create"),i=Object.prototype.hasOwnProperty,o=Object.prototype.hasOwnProperty;function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}u.prototype.clear=function(){this.__data__=n?n(null):{},this.size=0},u.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=!!e,e},u.prototype.get=function(t){var e=this.__data__;if(n){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return i.call(e,t)?e[t]:void 0},u.prototype.has=function(t){var e=this.__data__;return n?void 0!==e[t]:o.call(e,t)},u.prototype.set=function(t,e){var r=this.__data__;return this.size+=+!this.has(t),r[t]=n&&void 0===e?"__lodash_hash_undefined__":e,this};var a=r(47261),s=r(51023);let c=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t},l=function(t,e){var r=t.__data__;return c(e)?r["string"==typeof e?"string":"hash"]:r.map};function f(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}f.prototype.clear=function(){this.size=0,this.__data__={hash:new u,map:new(s.A||a.A),string:new u}},f.prototype.delete=function(t){var e=l(this,t).delete(t);return this.size-=!!e,e},f.prototype.get=function(t){return l(this,t).get(t)},f.prototype.has=function(t){return l(this,t).has(t)},f.prototype.set=function(t,e){var r=l(this,t),n=r.size;return r.set(t,e),this.size+=+(r.size!=n),this};let h=f},59847:(t,e,r)=>{r.d(e,{A:()=>i});var n=Object.prototype;let i=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},60395:(t,e,r)=>{r.d(e,{A:()=>u});var n,i=r(26391),o=r(19396);let u=(n=i.A,function(t,e){if(null==t)return t;if(!(0,o.A)(t))return n(t,e);for(var r=t.length,i=-1,u=Object(t);++i<r&&!1!==e(u[i],i,u););return t})},62878:(t,e,r)=>{r.d(e,{A:()=>c});var n=r(72751),i=r(67903),o=r(92459),u=r(26805),a=r(52766),s=r(30253);let c=function(t,e,r){e=(0,n.A)(e,t);for(var c=-1,l=e.length,f=!1;++c<l;){var h=(0,s.A)(e[c]);if(!(f=null!=t&&r(t,h)))break;t=t[h]}return f||++c!=l?f:!!(l=null==t?0:t.length)&&(0,a.A)(l)&&(0,u.A)(h,l)&&((0,o.A)(t)||(0,i.A)(t))}},65537:(t,e,r)=>{r.d(e,{A:()=>o});let n=function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)};var i=Math.max;let o=function(t,e,r){return e=i(void 0===e?t.length-1:e,0),function(){for(var o=arguments,u=-1,a=i(o.length-e,0),s=Array(a);++u<a;)s[u]=o[e+u];u=-1;for(var c=Array(e+1);++u<e;)c[u]=o[u];return c[e]=r(s),n(t,this,c)}}},66162:(t,e,r)=>{r.d(e,{A:()=>n});let n=function(t,e,r){for(var n=-1,i=Object(t),o=r(t),u=o.length;u--;){var a=o[++n];if(!1===e(i[a],a,i))break}return t}},66234:(t,e,r)=>{r.d(e,{A:()=>n});let n="object"==typeof global&&global&&global.Object===Object&&global},66485:(t,e,r)=>{r.d(e,{A:()=>n});let n=function(t,e){return t.has(e)}},67903:(t,e,r)=>{r.d(e,{A:()=>c});var n=r(95749),i=r(77494);let o=function(t){return(0,i.A)(t)&&"[object Arguments]"==(0,n.A)(t)};var u=Object.prototype,a=u.hasOwnProperty,s=u.propertyIsEnumerable;let c=o(function(){return arguments}())?o:function(t){return(0,i.A)(t)&&a.call(t,"callee")&&!s.call(t,"callee")}},69687:(t,e,r)=>{r.d(e,{A:()=>i});var n=Function.prototype.toString;let i=function(t){if(null!=t){try{return n.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},70638:(t,e,r)=>{r.d(e,{A:()=>u});var n=r(12016),i=r(37846),o=r(19396);let u=function(t){return(0,o.A)(t)?(0,n.A)(t):(0,i.A)(t)}},71606:(t,e,r)=>{r.d(e,{A:()=>o});var n=r(72751),i=r(30253);let o=function(t,e){e=(0,n.A)(e,t);for(var r=0,o=e.length;null!=t&&r<o;)t=t[(0,i.A)(e[r++])];return r&&r==o?t:void 0}},72521:(t,e,r)=>{r.d(e,{A:()=>o});var n=r(5452),i=r(92459);let o=function(t,e,r){var o=e(t);return(0,i.A)(t)?o:(0,n.A)(o,r(t))}},72751:(t,e,r)=>{r.d(e,{A:()=>d});var n,i,o=r(92459),u=r(17334),a=r(59233);function s(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw TypeError("Expected a function");var r=function(){var n=arguments,i=e?e.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var u=t.apply(this,n);return r.cache=o.set(i,u)||o,u};return r.cache=new(s.Cache||a.A),r}s.Cache=a.A;var c=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,l=/\\(\\)?/g,f=(i=(n=s(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(c,function(t,r,n,i){e.push(n?i.replace(l,"$1"):r||t)}),e},function(t){return 500===i.size&&i.clear(),t})).cache,n),h=r(85810);let d=function(t,e){return(0,o.A)(t)?t:(0,u.A)(t,e)?[t]:f((0,h.A)(t))}},74548:(t,e,r)=>{r.d(e,{A:()=>p});var n,i=r(4986),o=r(51603).A["__core-js_shared__"],u=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",a=r(33761),s=r(69687),c=/^\[object .+?Constructor\]$/,l=Object.prototype,f=Function.prototype.toString,h=l.hasOwnProperty,d=RegExp("^"+f.call(h).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");let A=function(t){return!!(0,a.A)(t)&&(!u||!(u in t))&&((0,i.A)(t)?d:c).test((0,s.A)(t))},p=function(t,e){var r=null==t?void 0:t[e];return A(r)?r:void 0}},77494:(t,e,r)=>{r.d(e,{A:()=>n});let n=function(t){return null!=t&&"object"==typeof t}},78261:(t,e,r)=>{r.d(e,{A:()=>o});var n=r(74548),i=r(51603);let o=(0,n.A)(i.A,"Set")},78416:(t,e,r)=>{r.d(e,{A:()=>i});var n=r(79800);let i=function(t){return"function"==typeof t?t:n.A}},79800:(t,e,r)=>{r.d(e,{A:()=>n});let n=function(t){return t}},81019:(t,e,r)=>{r.d(e,{A:()=>l});var n=r(95749),i=r(52766),o=r(77494),u={};u["[object Float32Array]"]=u["[object Float64Array]"]=u["[object Int8Array]"]=u["[object Int16Array]"]=u["[object Int32Array]"]=u["[object Uint8Array]"]=u["[object Uint8ClampedArray]"]=u["[object Uint16Array]"]=u["[object Uint32Array]"]=!0,u["[object Arguments]"]=u["[object Array]"]=u["[object ArrayBuffer]"]=u["[object Boolean]"]=u["[object DataView]"]=u["[object Date]"]=u["[object Error]"]=u["[object Function]"]=u["[object Map]"]=u["[object Number]"]=u["[object Object]"]=u["[object RegExp]"]=u["[object Set]"]=u["[object String]"]=u["[object WeakMap]"]=!1;var a=r(32521),s=r(21719),c=s.A&&s.A.isTypedArray;let l=c?(0,a.A)(c):function(t){return(0,o.A)(t)&&(0,i.A)(t.length)&&!!u[(0,n.A)(t)]}},81807:(t,e,r)=>{r.d(e,{A:()=>n});let n=function(t){return function(e){return null==e?void 0:e[t]}}},85810:(t,e,r)=>{r.d(e,{A:()=>f});var n=r(29703),i=r(12602),o=r(92459),u=r(38374),a=1/0,s=n.A?n.A.prototype:void 0,c=s?s.toString:void 0;let l=function t(e){if("string"==typeof e)return e;if((0,o.A)(e))return(0,i.A)(e,t)+"";if((0,u.A)(e))return c?c.call(e):"";var r=e+"";return"0"==r&&1/e==-a?"-0":r},f=function(t){return null==t?"":l(t)}},86953:(t,e,r)=>{r.d(e,{A:()=>o});var n=r(59233);function i(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new n.A;++e<r;)this.add(t[e])}i.prototype.add=i.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},i.prototype.has=function(t){return this.__data__.has(t)};let o=i},90377:(t,e,r)=>{r.d(e,{A:()=>i});var n=r(74548);let i=function(){try{var t=(0,n.A)(Object,"defineProperty");return t({},"",{}),t}catch(t){}}()},91359:(t,e,r)=>{r.d(e,{A:()=>n});let n=function(){return[]}},92459:(t,e,r)=>{r.d(e,{A:()=>n});let n=Array.isArray},92821:(t,e,r)=>{r.d(e,{T:()=>n.T});var n=r(32459)},93881:(t,e,r)=>{r.d(e,{A:()=>n});let n=function(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r}},94630:(t,e,r)=>{r.d(e,{A:()=>n});let n=function(t){return void 0===t}},95749:(t,e,r)=>{r.d(e,{A:()=>f});var n=r(29703),i=Object.prototype,o=i.hasOwnProperty,u=i.toString,a=n.A?n.A.toStringTag:void 0;let s=function(t){var e=o.call(t,a),r=t[a];try{t[a]=void 0;var n=!0}catch(t){}var i=u.call(t);return n&&(e?t[a]=r:delete t[a]),i};var c=Object.prototype.toString,l=n.A?n.A.toStringTag:void 0;let f=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":l&&l in Object(t)?s(t):c.call(t)}},96901:(t,e,r)=>{r.d(e,{A:()=>c});var n=r(5452),i=r(29703),o=r(67903),u=r(92459),a=i.A?i.A.isConcatSpreadable:void 0;let s=function(t){return(0,u.A)(t)||(0,o.A)(t)||!!(a&&t&&t[a])},c=function t(e,r,i,o,u){var a=-1,c=e.length;for(i||(i=s),u||(u=[]);++a<c;){var l=e[a];r>0&&i(l)?r>1?t(l,r-1,i,o,u):(0,n.A)(u,l):o||(u[u.length]=l)}return u}},98446:(t,e,r)=>{r.d(e,{A:()=>n});let n=function(t){return function(){return t}}}}]);