libre-webui 0.29.0 → 0.31.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 (261) hide show
  1. package/backend/dist/index.d.ts.map +1 -1
  2. package/backend/dist/index.js +24 -7
  3. package/backend/dist/index.js.map +1 -1
  4. package/backend/dist/persistence/postgresAutomationWebhooksMigration.d.ts +9 -0
  5. package/backend/dist/persistence/postgresAutomationWebhooksMigration.d.ts.map +1 -0
  6. package/backend/dist/persistence/postgresAutomationWebhooksMigration.js +38 -0
  7. package/backend/dist/persistence/postgresAutomationWebhooksMigration.js.map +1 -0
  8. package/backend/dist/persistence/postgresMigrationRegistry.d.ts.map +1 -1
  9. package/backend/dist/persistence/postgresMigrationRegistry.js +4 -0
  10. package/backend/dist/persistence/postgresMigrationRegistry.js.map +1 -1
  11. package/backend/dist/persistence/postgresResourceRepositories.d.ts.map +1 -1
  12. package/backend/dist/persistence/postgresResourceRepositories.js +5 -0
  13. package/backend/dist/persistence/postgresResourceRepositories.js.map +1 -1
  14. package/backend/dist/persistence/postgresWorkApprovalsMigration.d.ts +13 -0
  15. package/backend/dist/persistence/postgresWorkApprovalsMigration.d.ts.map +1 -0
  16. package/backend/dist/persistence/postgresWorkApprovalsMigration.js +69 -0
  17. package/backend/dist/persistence/postgresWorkApprovalsMigration.js.map +1 -0
  18. package/backend/dist/persistence/resourceTypes.d.ts +4 -0
  19. package/backend/dist/persistence/resourceTypes.d.ts.map +1 -1
  20. package/backend/dist/persistence/resourceTypes.js.map +1 -1
  21. package/backend/dist/persistence/sqliteMigrations.d.ts +3 -0
  22. package/backend/dist/persistence/sqliteMigrations.d.ts.map +1 -1
  23. package/backend/dist/persistence/sqliteMigrations.js +156 -2
  24. package/backend/dist/persistence/sqliteMigrations.js.map +1 -1
  25. package/backend/dist/persistence/sqliteResourceRepositories.d.ts.map +1 -1
  26. package/backend/dist/persistence/sqliteResourceRepositories.js +7 -0
  27. package/backend/dist/persistence/sqliteResourceRepositories.js.map +1 -1
  28. package/backend/dist/persistence/sqliteToPostgresMigration.d.ts.map +1 -1
  29. package/backend/dist/persistence/sqliteToPostgresMigration.js +32 -1
  30. package/backend/dist/persistence/sqliteToPostgresMigration.js.map +1 -1
  31. package/backend/dist/platform/workPersistence/postgresWorkPersistence.d.ts +10 -1
  32. package/backend/dist/platform/workPersistence/postgresWorkPersistence.d.ts.map +1 -1
  33. package/backend/dist/platform/workPersistence/postgresWorkPersistence.js +85 -5
  34. package/backend/dist/platform/workPersistence/postgresWorkPersistence.js.map +1 -1
  35. package/backend/dist/platform/workPersistence/sqliteWorkPersistence.d.ts +10 -1
  36. package/backend/dist/platform/workPersistence/sqliteWorkPersistence.d.ts.map +1 -1
  37. package/backend/dist/platform/workPersistence/sqliteWorkPersistence.js +67 -7
  38. package/backend/dist/platform/workPersistence/sqliteWorkPersistence.js.map +1 -1
  39. package/backend/dist/platform/workPersistence/types.d.ts +37 -0
  40. package/backend/dist/platform/workPersistence/types.d.ts.map +1 -1
  41. package/backend/dist/platform/workPersistence/types.js.map +1 -1
  42. package/backend/dist/routes/automations.d.ts.map +1 -1
  43. package/backend/dist/routes/automations.js +83 -1
  44. package/backend/dist/routes/automations.js.map +1 -1
  45. package/backend/dist/routes/ollama.d.ts.map +1 -1
  46. package/backend/dist/routes/ollama.js +64 -0
  47. package/backend/dist/routes/ollama.js.map +1 -1
  48. package/backend/dist/routes/plugins.d.ts.map +1 -1
  49. package/backend/dist/routes/plugins.js +90 -0
  50. package/backend/dist/routes/plugins.js.map +1 -1
  51. package/backend/dist/routes/work.d.ts.map +1 -1
  52. package/backend/dist/routes/work.js +83 -0
  53. package/backend/dist/routes/work.js.map +1 -1
  54. package/backend/dist/services/authService.d.ts +2 -0
  55. package/backend/dist/services/authService.d.ts.map +1 -1
  56. package/backend/dist/services/authService.js +2 -0
  57. package/backend/dist/services/authService.js.map +1 -1
  58. package/backend/dist/services/automationService.d.ts +13 -1
  59. package/backend/dist/services/automationService.d.ts.map +1 -1
  60. package/backend/dist/services/automationService.js +31 -0
  61. package/backend/dist/services/automationService.js.map +1 -1
  62. package/backend/dist/services/notificationService.d.ts.map +1 -1
  63. package/backend/dist/services/notificationService.js +1 -0
  64. package/backend/dist/services/notificationService.js.map +1 -1
  65. package/backend/dist/services/ollamaService.d.ts +12 -0
  66. package/backend/dist/services/ollamaService.d.ts.map +1 -1
  67. package/backend/dist/services/ollamaService.js +26 -0
  68. package/backend/dist/services/ollamaService.js.map +1 -1
  69. package/backend/dist/services/ollamaSettingsService.d.ts +10 -0
  70. package/backend/dist/services/ollamaSettingsService.d.ts.map +1 -0
  71. package/backend/dist/services/ollamaSettingsService.js +83 -0
  72. package/backend/dist/services/ollamaSettingsService.js.map +1 -0
  73. package/backend/dist/services/workAgentGuidance.d.ts +11 -0
  74. package/backend/dist/services/workAgentGuidance.d.ts.map +1 -1
  75. package/backend/dist/services/workAgentGuidance.js +16 -2
  76. package/backend/dist/services/workAgentGuidance.js.map +1 -1
  77. package/backend/dist/services/workAgentService.d.ts +56 -0
  78. package/backend/dist/services/workAgentService.d.ts.map +1 -1
  79. package/backend/dist/services/workAgentService.js +467 -17
  80. package/backend/dist/services/workAgentService.js.map +1 -1
  81. package/backend/dist/services/workApprovalService.d.ts +67 -0
  82. package/backend/dist/services/workApprovalService.d.ts.map +1 -0
  83. package/backend/dist/services/workApprovalService.js +273 -0
  84. package/backend/dist/services/workApprovalService.js.map +1 -0
  85. package/backend/dist/services/workEventService.d.ts.map +1 -1
  86. package/backend/dist/services/workEventService.js +25 -0
  87. package/backend/dist/services/workEventService.js.map +1 -1
  88. package/backend/dist/services/workPolicyService.d.ts +4 -0
  89. package/backend/dist/services/workPolicyService.d.ts.map +1 -1
  90. package/backend/dist/services/workPolicyService.js +19 -0
  91. package/backend/dist/services/workPolicyService.js.map +1 -1
  92. package/backend/dist/services/workRuntimeShared.d.ts +2 -0
  93. package/backend/dist/services/workRuntimeShared.d.ts.map +1 -1
  94. package/backend/dist/services/workRuntimeShared.js.map +1 -1
  95. package/backend/dist/services/workTaskService.d.ts +3 -1
  96. package/backend/dist/services/workTaskService.d.ts.map +1 -1
  97. package/backend/dist/services/workTaskService.js +21 -4
  98. package/backend/dist/services/workTaskService.js.map +1 -1
  99. package/backend/dist/types/index.d.ts +3 -1
  100. package/backend/dist/types/index.d.ts.map +1 -1
  101. package/backend/dist/types/index.js.map +1 -1
  102. package/backend/dist/types/work.d.ts +32 -11
  103. package/backend/dist/types/work.d.ts.map +1 -1
  104. package/backend/dist/websocketServer.d.ts.map +1 -1
  105. package/backend/dist/websocketServer.js +14 -2
  106. package/backend/dist/websocketServer.js.map +1 -1
  107. package/backend/package.json +2 -2
  108. package/deploy/work-computer/Dockerfile +1 -0
  109. package/deploy/work-computer/tint2rc +1 -0
  110. package/frontend/dist/artifact-runtime/.build-fingerprint +1 -1
  111. package/frontend/dist/artifact-runtime/lucide-react.js +1 -1
  112. package/frontend/dist/artifact-runtime/mermaid.js +8 -8
  113. package/frontend/dist/artifact-runtime/papaparse.js +2 -2
  114. package/frontend/dist/artifact-runtime/plotly.js +371 -652
  115. package/frontend/dist/assets/index-B6xMZpzA.js +76 -0
  116. package/frontend/dist/assets/index-BjipfsCP.css +1 -0
  117. package/frontend/dist/index.html +28 -28
  118. package/frontend/dist/js/{ArtifactContainer-CTXxnWRo.js → ArtifactContainer-Bn6iJtaJ.js} +1 -1
  119. package/frontend/dist/js/{ArtifactDemoPage-CEYuIhJA.js → ArtifactDemoPage-BLF8Ok-o.js} +1 -1
  120. package/frontend/dist/js/{ArtifactSandboxFrame-DLOy2VOm.js → ArtifactSandboxFrame-Cs1Gu1WB.js} +1 -1
  121. package/frontend/dist/js/{ArtifactSlideOutPanel-DnTTc1VY.js → ArtifactSlideOutPanel-CuKq5cL0.js} +1 -1
  122. package/frontend/dist/js/AutomationModal-Dha4KgLI.js +1 -0
  123. package/frontend/dist/js/AutomationsPage-HcMCRV-D.js +1 -0
  124. package/frontend/dist/js/{AvatarUpload-DzL00yOL.js → AvatarUpload-CFrlSszY.js} +1 -1
  125. package/frontend/dist/js/{Button--pDOakZx.js → Button-CgN11mgY.js} +1 -1
  126. package/frontend/dist/js/{CalendarPage-Bls3TBeZ.js → CalendarPage-D_K-XrG9.js} +1 -1
  127. package/frontend/dist/js/ChannelsPage-D3CoImOT.js +1 -0
  128. package/frontend/dist/js/ChatPage-C0iBDbOq.js +14 -0
  129. package/frontend/dist/js/ConnectModels-D_ZbZQub.js +1 -0
  130. package/frontend/dist/js/{EvaluationsPage-DSgj9dT5.js → EvaluationsPage-DOJLpauA.js} +2 -2
  131. package/frontend/dist/js/FirstTimeSetup-DDIP_4Dd.js +1 -0
  132. package/frontend/dist/js/GalleryPage-C8U_F7Ns.js +1 -0
  133. package/frontend/dist/js/{HomePage-BebX3v-x.js → HomePage-B_aotoDU.js} +1 -1
  134. package/frontend/dist/js/LibreClawPage-cr2N6W00.js +1 -0
  135. package/frontend/dist/js/{Logo-BE9SvCC5.js → Logo-B7o7eaPU.js} +1 -1
  136. package/frontend/dist/js/{LogoMark-C8x1yyP3.js → LogoMark-D9g6ls0h.js} +1 -1
  137. package/frontend/dist/js/{ModelManagerModals-CpWAltRA.js → ModelManagerModals-C-J1d7GL.js} +1 -1
  138. package/frontend/dist/js/NotesPage-Bgr7R_Vm.js +3 -0
  139. package/frontend/dist/js/{PasswordStrengthMeter-Cdq2oQbc.js → PasswordStrengthMeter-DR-mGbLF.js} +1 -1
  140. package/frontend/dist/js/PersonasPage-C3D_6lIx.js +13 -0
  141. package/frontend/dist/js/{PluginUsagePage-jMrpL2Jb.js → PluginUsagePage-DK7MgSiu.js} +1 -1
  142. package/frontend/dist/js/RichMessageContent-7FxrZ4A8.js +1 -0
  143. package/frontend/dist/js/{RichMessageContent-CC9QZQKd.js → RichMessageContent-CQkLI7Dt.js} +1 -1
  144. package/frontend/dist/js/SettingsModal-CIV_Bgsf.js +19 -0
  145. package/frontend/dist/js/{SettingsToggle-C16gtVyi.js → SettingsToggle-Cw4OhW7B.js} +1 -1
  146. package/frontend/dist/js/ShareDialog-BCEVgtbN.js +1 -0
  147. package/frontend/dist/js/{SystemPage-Drd1neLN.js → SystemPage-BNVZtLe9.js} +1 -1
  148. package/frontend/dist/js/{UserManagementPage-CquciWKV.js → UserManagementPage-pPC_Svj9.js} +1 -1
  149. package/frontend/dist/js/WorkPage-Q33nIqkM.js +7 -0
  150. package/frontend/dist/js/{api-2DulPtq1.js → api-D-5hpGht.js} +3 -3
  151. package/frontend/dist/js/api-WR1CTYO5.js +1 -0
  152. package/frontend/dist/js/{appNavigation-DAGh98Yj.js → appNavigation-DfHbXBey.js} +1 -1
  153. package/frontend/dist/js/{appStore-Ci1X0yA-.js → appStore-B136FGdu.js} +2 -2
  154. package/frontend/dist/js/appVersion-Ck7dYiHe.js +1 -0
  155. package/frontend/dist/js/ar-Cq-nC6v9.js +2 -0
  156. package/frontend/dist/js/authStore-6AJLgQsD.js +1 -0
  157. package/frontend/dist/js/authStore-Ckz37pwu.js +4 -0
  158. package/frontend/dist/js/axios-CUerAKcc.js +1 -0
  159. package/frontend/dist/js/{babel-D7QYvEns.js → babel-8afoxhZ7.js} +1 -1
  160. package/frontend/dist/js/bn-BFSKytYs.js +2 -0
  161. package/frontend/dist/js/chatStore-Dpm3g_Ln.js +3 -0
  162. package/frontend/dist/js/classPrivateMethodInitSpec-DE0XIqc_.js +1 -0
  163. package/frontend/dist/js/config-DJwXAf8i.js +1 -0
  164. package/frontend/dist/js/cs-BKWXa629.js +2 -0
  165. package/frontend/dist/js/da-Cra_DJnV.js +2 -0
  166. package/frontend/dist/js/de-BQa6_UuE.js +2 -0
  167. package/frontend/dist/js/es-BBOHFrx1.js +2 -0
  168. package/frontend/dist/js/{estree-D7xT4AeP.js → estree-qxY7ACbu.js} +3 -3
  169. package/frontend/dist/js/{evaluationsApi-Cu5PH_qi.js → evaluationsApi-BKY-maUM.js} +1 -1
  170. package/frontend/dist/js/fr-C8kXs5c0.js +2 -0
  171. package/frontend/dist/js/hi-BEef4bjU.js +2 -0
  172. package/frontend/dist/js/{html-HvA9vEyn.js → html-B_cUU1Gi.js} +2 -2
  173. package/frontend/dist/js/id-Djipic7Y.js +2 -0
  174. package/frontend/dist/js/is-pazl6RLG.js +2 -0
  175. package/frontend/dist/js/it-DobPbTwl.js +2 -0
  176. package/frontend/dist/js/ja-DwYNaMNX.js +2 -0
  177. package/frontend/dist/js/ko-BQfXE7_o.js +2 -0
  178. package/frontend/dist/js/{markdown-DaF0SXNk.js → markdown-BAF0w-jL.js} +3 -3
  179. package/frontend/dist/js/{messageCodeStyles-DKq3DH1W.js → messageCodeStyles-CkxF6yil.js} +2 -2
  180. package/frontend/dist/js/ms-CkPQoE5T.js +2 -0
  181. package/frontend/dist/js/nl-X_QsDAtu.js +2 -0
  182. package/frontend/dist/js/pl-CK39gUsy.js +2 -0
  183. package/frontend/dist/js/{postcss-RCIJRrFm.js → postcss-B2vYq4-H.js} +1 -1
  184. package/frontend/dist/js/pt-C0dWyR_I.js +2 -0
  185. package/frontend/dist/js/{router-vendor-BGP0k6Y2.js → router-vendor-CIwPu612.js} +1 -1
  186. package/frontend/dist/js/ru-sNJkEz1G.js +2 -0
  187. package/frontend/dist/js/{standalone-BMD7E0jY.js → standalone-BqZmfuRy.js} +2 -2
  188. package/frontend/dist/js/sv-Bh-uxdF3.js +2 -0
  189. package/frontend/dist/js/{teamEventStream-C4u_py2D.js → teamEventStream-DUodK0-C.js} +1 -1
  190. package/frontend/dist/js/th-DPVtwZj2.js +2 -0
  191. package/frontend/dist/js/tr-BYNM_Tm7.js +2 -0
  192. package/frontend/dist/js/{ttsBatching-C9kQXFB1.js → ttsBatching-7_-p2nxR.js} +1 -1
  193. package/frontend/dist/js/{typescript-LOiqVRM1.js → typescript-DokwN-5Y.js} +1 -1
  194. package/frontend/dist/js/{ui-DUzqxWMk.js → ui-BK53RPmS.js} +2 -2
  195. package/frontend/dist/js/ui-vendor-CPdYrKhz.js +177 -0
  196. package/frontend/dist/js/uk-kvNBuYin.js +2 -0
  197. package/frontend/dist/js/{useChat-6yDWZSTz.js → useChat-Czg2p4Rr.js} +1 -1
  198. package/frontend/dist/js/useDictation-B2lYEYKn.js +1 -0
  199. package/frontend/dist/js/useQuery-ClAiNxQ7.js +1 -0
  200. package/frontend/dist/js/{useTranslation-DrnYb6Cx.js → useTranslation-C7GwbUQA.js} +1 -1
  201. package/frontend/dist/js/{utils-D9UstwTG.js → utils-nNyg0lfc.js} +1 -1
  202. package/frontend/dist/js/utils-vendor-CeUf_ngc.js +9 -0
  203. package/frontend/dist/js/vi-CmLoaP0K.js +2 -0
  204. package/frontend/dist/js/workApi-BoJb9aVF.js +1 -0
  205. package/frontend/dist/js/{workApi-BwDBwG62.js → workApi-CFH097y5.js} +3 -3
  206. package/frontend/dist/js/{yaml-CyhEdlt2.js → yaml-BXEpxPn2.js} +2 -2
  207. package/frontend/dist/js/zh-D2zvmvrj.js +2 -0
  208. package/frontend/dist/sw.js +7 -1
  209. package/package.json +5 -5
  210. package/frontend/dist/assets/index-O8rtJINp.css +0 -1
  211. package/frontend/dist/assets/index-f1s6QpC5.js +0 -93
  212. package/frontend/dist/js/AutomationModal-DB3lrK2K.js +0 -1
  213. package/frontend/dist/js/AutomationsPage-D3v0Cra1.js +0 -1
  214. package/frontend/dist/js/ChannelsPage-BnoCniNf.js +0 -1
  215. package/frontend/dist/js/ChatPage-BMcigJWr.js +0 -14
  216. package/frontend/dist/js/FirstTimeSetup-BRysXCjP.js +0 -1
  217. package/frontend/dist/js/GalleryPage-DUcM4dg0.js +0 -1
  218. package/frontend/dist/js/LibreClawPage-A37KF9_G.js +0 -1
  219. package/frontend/dist/js/ModelSelector-C1ipX-44.js +0 -1
  220. package/frontend/dist/js/NotesPage-CXSz7Hde.js +0 -3
  221. package/frontend/dist/js/PersonasPage-CiOBffF3.js +0 -13
  222. package/frontend/dist/js/RichMessageContent-CU6WTuOs.js +0 -1
  223. package/frontend/dist/js/SettingsModal-DP_wKehV.js +0 -19
  224. package/frontend/dist/js/ShareDialog-BW8iGd_i.js +0 -1
  225. package/frontend/dist/js/WorkPage-BgASwAGs.js +0 -6
  226. package/frontend/dist/js/api-BmIdrQfK.js +0 -1
  227. package/frontend/dist/js/appVersion-BRMnr50t.js +0 -1
  228. package/frontend/dist/js/ar-CpmN0TY8.js +0 -2
  229. package/frontend/dist/js/authStore-DIvsSaOt.js +0 -4
  230. package/frontend/dist/js/authStore-DoxafXFR.js +0 -1
  231. package/frontend/dist/js/axios-C8xWfUG8.js +0 -1
  232. package/frontend/dist/js/bn-BwrMg_Oh.js +0 -2
  233. package/frontend/dist/js/chatStore-DkpmZLOG.js +0 -3
  234. package/frontend/dist/js/classPrivateMethodInitSpec-DUpGnGHL.js +0 -1
  235. package/frontend/dist/js/config-Ckn9cand.js +0 -1
  236. package/frontend/dist/js/cs-f72Fnxz3.js +0 -2
  237. package/frontend/dist/js/da-qp8lOgkJ.js +0 -2
  238. package/frontend/dist/js/de-CpcLHr97.js +0 -2
  239. package/frontend/dist/js/es-gZHsxjG4.js +0 -2
  240. package/frontend/dist/js/fr-BY5aUofi.js +0 -2
  241. package/frontend/dist/js/hi-KCn9gIiT.js +0 -2
  242. package/frontend/dist/js/id-C7U6kS0J.js +0 -2
  243. package/frontend/dist/js/is-N9Ek-Usz.js +0 -2
  244. package/frontend/dist/js/it-CqaqWB8D.js +0 -2
  245. package/frontend/dist/js/ja-C5f9HAm1.js +0 -2
  246. package/frontend/dist/js/ko-BuoboDvb.js +0 -2
  247. package/frontend/dist/js/ms-Cu-UWc6j.js +0 -2
  248. package/frontend/dist/js/nl-nOUc4C_i.js +0 -2
  249. package/frontend/dist/js/pl-BKKwFhxj.js +0 -2
  250. package/frontend/dist/js/pt-B18-KYtS.js +0 -2
  251. package/frontend/dist/js/ru-DflEWNyb.js +0 -2
  252. package/frontend/dist/js/sv-CU-nPjr8.js +0 -2
  253. package/frontend/dist/js/th-dOxm2Hhl.js +0 -2
  254. package/frontend/dist/js/tr-7ThM4F8q.js +0 -2
  255. package/frontend/dist/js/ui-vendor-C0KwbTD4.js +0 -177
  256. package/frontend/dist/js/uk-Cl7Pk0Yf.js +0 -2
  257. package/frontend/dist/js/useQuery-CoWV2PmJ.js +0 -1
  258. package/frontend/dist/js/utils-vendor-DtsgPwcz.js +0 -9
  259. package/frontend/dist/js/vi-eljYUBOk.js +0 -2
  260. package/frontend/dist/js/workApi-uXUZSjsf.js +0 -1
  261. package/frontend/dist/js/zh-B0sinUfQ.js +0 -2
@@ -507,7 +507,7 @@ ${i.join(`
507
507
  h${-(l-10)}
508
508
  q-5,0 -5,-5
509
509
  Z
510
- `;if(!t.domId)throw Error(`defaultMindmapNode: node "${t.id}" is missing a domId \u2014 was render.ts domId prefixing skipped?`);let f=i.append(`path`).attr(`id`,t.domId).attr(`class`,`node-bkg node-`+t.type).attr(`style`,r).attr(`d`,d);return i.append(`line`).attr(`class`,`node-line-`).attr(`x1`,-l/2).attr(`y1`,u/2).attr(`x2`,l/2).attr(`y2`,u/2),s.attr(`transform`,`translate(${-a.width/2}, ${-a.height/2})`),i.append(()=>s.node()),Mg(t,f),t.calcIntersect=function(e,t){return Rg.rect(e,t)},t.intersect=function(e){return Rg.rect(t,e)},i}async function $ve(e,t){return yg(e,t,{padding:t.padding??0})}function eye(e){return e in s_}var tye,nye,kg,rye,iye,Ag,jg,Mg,Ng,Pg,Fg,Ig,aye,Lg,oye,sye,Rg,zg,Bg,cye,Vg,lye,Hg,uye,dye,Ug,fye,Wg,pye,mye,hye,Gg,Kg,qg,Jg,gye,_ye,vye,yye,Yg,Xg,bye,Zg,Qg,$g,xye,Sye,e_,t_,n_,r_,i_,a_,o_,Cye,wye,Tye,s_,c_=o((()=>{op(),jh(),vp(),Am(),oc(),S(),h(),$f(),lg(),tye=1,nye=3,p(ug,`configureLabelImages`),p(dg,`hasTextBesidesImages`),kg=3,rye=32,iye=p(async(e,t,n)=>{let r=Z(),i=e.insert(`g`).attr(`class`,n??`node default`).attr(`id`,t.domId||t.id),a=i.insert(`g`).attr(`class`,`label`).attr(`style`,gm(t.labelStyle)),o=[{text:typeof t.label==`string`?t.label:t.label?.[0]??``,cssClass:`c4-name`},{text:t.stereotype,cssClass:`c4-type`},...(t.description??[]).map(e=>({text:e,cssClass:`c4-descr`}))].filter(e=>e.text),s=t.width?Math.max(t.width-2*(t.padding??0),rye):Z().flowchart?.wrappingWidth??200,l=r.wrap?s:1/0,u=await Promise.all(o.map(async e=>{let n=a.append(`g`).attr(`class`,e.cssClass),i=await Ah(n,Es(Om(e.text??``),r),{useHtmlLabels:!1,markdown:!1,isNode:!0,width:l,style:t.labelStyle},r);return Wc(i).selectAll(`tspan.text-outer-tspan`).attr(`text-anchor`,`middle`),Wc(i).selectAll(`tspan.text-inner-tspan`).attr(`font-weight`,null).attr(`font-style`,null),{el:n,box:n.node().getBBox()}})),d=Math.max(...u.map(({box:e})=>e.width),0),f=0;for(let{el:e,box:t}of u)e.attr(`transform`,`translate(${d/2-t.x-t.width/2}, ${f-t.y})`),f+=t.height+kg;let p=u.length>0?f-kg:0;return a.insert(`rect`,`:first-child`),a.attr(`transform`,`translate(${-d/2}, ${-p/2})`),{shapeSvg:i,bbox:a.node().getBBox(),halfPadding:(t.padding??0)/2,label:a}},`c4LabelHelper`),Ag=p(async(e,t,n)=>{if(t.stereotype!==void 0)return iye(e,t,n);let r,i=t.useHtmlLabels||ts(Z()?.htmlLabels);r=n||`node default`;let a=e.insert(`g`).attr(`class`,r).attr(`id`,t.domId||t.id),o=a.insert(`g`).attr(`class`,`label`).attr(`style`,gm(t.labelStyle)),s;s=t.label===void 0?``:typeof t.label==`string`?t.label:t.label[0];let l=!!t.icon||!!t.img,u=t.labelType===`markdown`,d=await Ah(o,Es(Om(s),Z()),{useHtmlLabels:i,width:t.width||t.wrappingWidth||Z().flowchart?.wrappingWidth,classes:u?`markdown-node-label`:``,style:t.labelStyle,addSvgBackground:l,markdown:u},Z()),f=(t?.padding??0)/2,p;if(i){let e=d.children[0],t=Wc(d);await ug(e),p=await Oh.measure(()=>e.getBoundingClientRect()),t.attr(`width`,p.width),t.attr(`height`,p.height)}else p=await Oh.measure(()=>d.getBBox());return i?o.attr(`transform`,`translate(`+-p.width/2+`, `+-p.height/2+`)`):o.attr(`transform`,`translate(0, `+-p.height/2+`)`),t.centerLabel&&o.attr(`transform`,`translate(`+-p.width/2+`, `+-p.height/2+`)`),o.insert(`rect`,`:first-child`),{shapeSvg:a,bbox:p,halfPadding:f,label:o}},`labelHelper`),jg=p(async(e,t,n)=>{let r=n.useHtmlLabels??hs(Z()),i=e.insert(`g`).attr(`class`,`label`).attr(`style`,n.labelStyle||``),a=await Ah(i,Es(Om(t),Z()),{useHtmlLabels:r,width:n.width||Z()?.flowchart?.wrappingWidth,style:n.labelStyle,addSvgBackground:!!n.icon||!!n.img}),o=n.padding/2,s;if(hs(Z())){let e=a.children[0],t=Wc(a);s=await Oh.measure(()=>e.getBoundingClientRect()),t.attr(`width`,s.width),t.attr(`height`,s.height)}else s=await Oh.measure(()=>a.getBBox());return r?i.attr(`transform`,`translate(`+-s.width/2+`, `+-s.height/2+`)`):i.attr(`transform`,`translate(0, `+-s.height/2+`)`),n.centerLabel&&i.attr(`transform`,`translate(`+-s.width/2+`, `+-s.height/2+`)`),i.insert(`rect`,`:first-child`),{shapeSvg:e,bbox:s,halfPadding:o,label:i}},`insertLabel`),Mg=p((e,t,n)=>{if(n){e.width=n.width,e.height=n.height;return}let r=t.node().getBBox();e.width=r.width,e.height=r.height},`updateNodeBounds`),Ng=p((e,t)=>(e.look===`handDrawn`?`rough-node`:`node`)+` `+e.cssClasses+` `+(t||``),`getNodeClasses`),p(fg,`createPathFromPoints`),p(pg,`generateFullSineWavePoints`),p(mg,`generateCirclePoints`),p(hg,`mergePaths`),Pg=p((e,t)=>{var n=e.x,r=e.y,i=t.x-n,a=t.y-r,o=e.width/2,s=e.height/2,l,u;return Math.abs(a)*o>Math.abs(i)*s?(a<0&&(s=-s),l=a===0?0:s*i/a,u=s):(i<0&&(o=-o),l=o,u=i===0?0:o*a/i),{x:n+l,y:r+u}},`intersectRect`),Fg=p((e,t,n,r,i)=>[`M`,e+i,t,`H`,e+n-i,`A`,i,i,0,0,1,e+n,t+i,`V`,t+r-i,`A`,i,i,0,0,1,e+n-i,t+r,`H`,e+i,`A`,i,i,0,0,1,e,t+r-i,`V`,t+i,`A`,i,i,0,0,1,e+i,t,`Z`].join(` `),`createRoundedRectPathD`),Ig=p(async(e,t,n,r=!1,i=!1)=>{let a=t||``;typeof a==`object`&&(a=a[0]);let o=Z(),s=hs(o);return await Ah(e,a,{style:n,isTitle:r,useHtmlLabels:s,markdown:!1,isNode:i,width:1/0},o)},`createLabel`),p(k_e,`intersectNode`),aye=k_e,p(A_e,`intersectEllipse`),Lg=A_e,p(j_e,`intersectCircle`),oye=j_e,p(M_e,`intersectLine`),p(gg,`sameSign`),sye=M_e,p(N_e,`intersectPolygon`),Rg={node:aye,circle:oye,ellipse:Lg,polygon:N_e,rect:Pg},p(P_e,`anchor`),p(_g,`generateArcPoints`),p(F_e,`calculateArcSagitta`),p(I_e,`bowTieRect`),p(L_e,`bucket`),zg=20,Bg=8,cye=80,Vg=8,p(R_e,`collapsedGroup`),p(vg,`insertPolygonShape`),lye=[`right`,`left`,`up`,`down`],Hg=`point`,uye=p(e=>{let t=new Set;for(let n of e)switch(n){case`x`:t.add(`right`),t.add(`left`);break;case`y`:t.add(`up`),t.add(`down`);break;default:t.add(n)}return t},`expandAndDeduplicateDirections`),dye=p(e=>lye.filter(t=>e.has(t)).join(`|`)||Hg,`getDirectionKey`),Ug={"right|left|up|down":p(({height:e,midpoint:t,padding:n,width:r})=>[{x:0,y:0},{x:t,y:0},{x:r/2,y:2*n},{x:r-t,y:0},{x:r,y:0},{x:r,y:-e/3},{x:r+2*n,y:-e/2},{x:r,y:-2*e/3},{x:r,y:-e},{x:r-t,y:-e},{x:r/2,y:-e-2*n},{x:t,y:-e},{x:0,y:-e},{x:0,y:-2*e/3},{x:-2*n,y:-e/2},{x:0,y:-e/3}],`right|left|up|down`),"right|left|up":p(({height:e,midpoint:t,width:n})=>[{x:t,y:0},{x:n-t,y:0},{x:n,y:-e/2},{x:n-t,y:-e},{x:t,y:-e},{x:0,y:-e/2}],`right|left|up`),"right|left|down":p(({height:e,midpoint:t,width:n})=>[{x:0,y:0},{x:t,y:-e},{x:n-t,y:-e},{x:n,y:0}],`right|left|down`),"right|up|down":p(({height:e,midpoint:t,width:n})=>[{x:0,y:0},{x:n,y:-t},{x:n,y:-e+t},{x:0,y:-e}],`right|up|down`),"left|up|down":p(({height:e,midpoint:t,width:n})=>[{x:n,y:0},{x:0,y:-t},{x:0,y:-e+t},{x:n,y:-e}],`left|up|down`),"right|left":p(({height:e,midpoint:t,padding:n,width:r})=>[{x:t,y:0},{x:t,y:-n},{x:r-t,y:-n},{x:r-t,y:0},{x:r,y:-e/2},{x:r-t,y:-e},{x:r-t,y:-e+n},{x:t,y:-e+n},{x:t,y:-e},{x:0,y:-e/2}],`right|left`),"up|down":p(({height:e,midpoint:t,padding:n,width:r})=>[{x:r/2,y:0},{x:0,y:-n},{x:t,y:-n},{x:t,y:-e+n},{x:0,y:-e+n},{x:r/2,y:-e},{x:r,y:-e+n},{x:r-t,y:-e+n},{x:r-t,y:-n},{x:r,y:-n}],`up|down`),"right|up":p(({height:e,midpoint:t,width:n})=>[{x:0,y:0},{x:n,y:-t},{x:0,y:-e}],`right|up`),"right|down":p(({height:e,width:t})=>[{x:0,y:0},{x:t,y:0},{x:0,y:-e}],`right|down`),"left|up":p(({height:e,midpoint:t,width:n})=>[{x:n,y:0},{x:0,y:-t},{x:n,y:-e}],`left|up`),"left|down":p(({height:e,width:t})=>[{x:t,y:0},{x:0,y:0},{x:t,y:-e}],`left|down`),right:p(({height:e,midpoint:t,padding:n,width:r})=>[{x:t,y:-n},{x:t,y:-n},{x:r-t,y:-n},{x:r-t,y:0},{x:r,y:-e/2},{x:r-t,y:-e},{x:r-t,y:-e+n},{x:t,y:-e+n},{x:t,y:-e+n}],`right`),left:p(({height:e,midpoint:t,padding:n,width:r})=>[{x:t,y:0},{x:t,y:-n},{x:r-t,y:-n},{x:r-t,y:-e+n},{x:t,y:-e+n},{x:t,y:-e},{x:0,y:-e/2}],`left`),up:p(({height:e,midpoint:t,padding:n,width:r})=>[{x:t,y:-n},{x:t,y:-e+n},{x:0,y:-e+n},{x:r/2,y:-e},{x:r,y:-e+n},{x:r-t,y:-e+n},{x:r-t,y:-n}],`up`),down:p(({height:e,midpoint:t,padding:n,width:r})=>[{x:r/2,y:0},{x:0,y:-n},{x:t,y:-n},{x:t,y:-e+n},{x:r-t,y:-e+n},{x:r-t,y:-n},{x:r,y:-n}],`down`),[Hg]:()=>[{x:0,y:0}]},fye=p((e,t,n,r)=>{let i=uye(e),a=(n.padding??0)/2,o=t.height+4*a,s=o/2,l=r??t.width+2*s+2*a;return(Ug[dye(i)]??Ug[Hg])({height:o,midpoint:s,padding:a,width:l})},`getArrowPoints`),p(z_e,`block_arrow`),p(B_e,`browser`),Wg=12,p(V_e,`card`),p(H_e,`choice`),p(yg,`circle`),p(U_e,`composite`),p(W_e,`consoleWindow`),p(G_e,`createLine`),p(K_e,`crossedCircle`),p(bg,`generateCirclePoints`),p(q_e,`curlyBraceLeft`),p(xg,`generateCirclePoints`),p(J_e,`curlyBraceRight`),p(Sg,`generateCirclePoints`),p(Y_e,`curlyBraces`),p(X_e,`curvedTrapezoid`),p(Z_e,`person`),pye=p((e,t,n,r,i,a)=>[`M${e},${t+a}`,`a${i},${a} 0,0,0 ${n},0`,`a${i},${a} 0,0,0 ${-n},0`,`l0,${r}`,`a${i},${a} 0,0,0 ${n},0`,`l0,${-r}`].join(` `),`createCylinderPathD`),mye=p((e,t,n,r,i,a)=>[`M${e},${t+a}`,`M${e+n},${t+a}`,`a${i},${a} 0,0,0 ${-n},0`,`l0,${r}`,`a${i},${a} 0,0,0 ${n},0`,`l0,${-r}`].join(` `),`createOuterCylinderPathD`),hye=p((e,t,n,r,i,a)=>[`M${e-n/2},${-r/2}`,`a${i},${a} 0,0,0 ${n},0`].join(` `),`createInnerCylinderPathD`),Gg=8,Kg=8,p(Q_e,`cylinder`),p(Cg,`drawRect`),p($_e,`datastore`),p(eve,`dividedRectangle`),p(tve,`doublecircle`),p(nve,`filledCircle`),qg=10,Jg=10,p(rve,`flippedTriangle`),p(ive,`folder`),p(ave,`forkJoin`),p(ove,`halfRoundedRectangle`),gye=p((e,t,n,r,i)=>[`M${e+i},${t}`,`L${e+n-i},${t}`,`L${e+n},${t-r/2}`,`L${e+n-i},${t-r}`,`L${e+i},${t-r}`,`L${e},${t-r/2}`,`Z`].join(` `),`createHexagonPathD`),p(sve,`hexagon`),p(cve,`hourglass`),p(lve,`icon`),p(uve,`iconCircle`),p(dve,`iconRounded`),p(fve,`iconSquare`),p(pve,`imageSquare`),p(mve,`inv_trapezoid`),p(hve,`labelRect`),p(gve,`lean_left`),p(_ve,`lean_right`),p(vve,`lightningBolt`),_ye=p((e,t,n,r,i,a,o)=>[`M${e},${t+a}`,`a${i},${a} 0,0,0 ${n},0`,`a${i},${a} 0,0,0 ${-n},0`,`l0,${r}`,`a${i},${a} 0,0,0 ${n},0`,`l0,${-r}`,`M${e},${t+a+o}`,`a${i},${a} 0,0,0 ${n},0`].join(` `),`createCylinderPathD`),vye=p((e,t,n,r,i,a,o)=>[`M${e},${t+a}`,`M${e+n},${t+a}`,`a${i},${a} 0,0,0 ${-n},0`,`l0,${r}`,`a${i},${a} 0,0,0 ${n},0`,`l0,${-r}`,`M${e},${t+a+o}`,`a${i},${a} 0,0,0 ${n},0`].join(` `),`createOuterCylinderPathD`),yye=p((e,t,n,r,i,a)=>[`M${e-n/2},${-r/2}`,`a${i},${a} 0,0,0 ${n},0`].join(` `),`createInnerCylinderPathD`),Yg=10,Xg=10,p(yve,`linedCylinder`),p(bve,`linedWaveEdgedRect`),p(xve,`multiRect`),p(Sve,`multiWaveEdgedRectangle`),p(Cve,`note`),bye=p((e,t,n)=>[`M${e+n/2},${t}`,`L${e+n},${t-n/2}`,`L${e+n/2},${t-n}`,`L${e},${t-n/2}`,`Z`].join(` `),`createDecisionBoxPathD`),p(wve,`question`),p(Tve,`rect_left_inv_arrow`),p(Eve,`rectWithTitle`),p(Dve,`roundedRect`),Zg=8,p(Ove,`shadedProcess`),p(kve,`slopedRect`),p(Ave,`squareRect`),p(jve,`stadium`),p(Mve,`state`),p(Nve,`stateEnd`),p(Pve,`stateStart`),Qg=8,p(Fve,`subroutine`),$g=.2,p(Ive,`taggedRect`),p(Lve,`taggedWaveEdgedRectangle`),p(Rve,`text`),xye=p((e,t,n,r,i,a)=>`M${e},${t}
510
+ `;if(!t.domId)throw Error(`defaultMindmapNode: node "${t.id}" is missing a domId \u2014 was render.ts domId prefixing skipped?`);let f=i.append(`path`).attr(`id`,t.domId).attr(`class`,`node-bkg node-`+t.type).attr(`style`,r).attr(`d`,d);return i.append(`line`).attr(`class`,`node-line-`).attr(`x1`,-l/2).attr(`y1`,u/2).attr(`x2`,l/2).attr(`y2`,u/2),s.attr(`transform`,`translate(${-a.width/2}, ${-a.height/2})`),i.append(()=>s.node()),Mg(t,f),t.calcIntersect=function(e,t){return Rg.rect(e,t)},t.intersect=function(e){return Rg.rect(t,e)},i}async function $ve(e,t){return yg(e,t,{padding:t.padding??0})}function eye(e){return e in s_}var tye,nye,kg,rye,iye,Ag,jg,Mg,Ng,Pg,Fg,Ig,aye,Lg,oye,sye,Rg,zg,Bg,cye,Vg,lye,Hg,uye,dye,Ug,fye,Wg,pye,mye,hye,Gg,Kg,qg,Jg,gye,_ye,vye,yye,Yg,Xg,bye,Zg,Qg,$g,xye,Sye,e_,t_,n_,r_,i_,a_,o_,Cye,wye,Tye,s_,c_=o((()=>{op(),jh(),vp(),Am(),oc(),S(),h(),$f(),lg(),tye=1,nye=3,p(ug,`configureLabelImages`),p(dg,`hasTextBesidesImages`),kg=3,rye=32,iye=p(async(e,t,n)=>{let r=Z(),i=e.insert(`g`).attr(`class`,n??`node default`).attr(`id`,t.domId||t.id),a=i.insert(`g`).attr(`class`,`label`).attr(`style`,gm(t.labelStyle)),o=[{text:typeof t.label==`string`?t.label:t.label?.[0]??``,cssClass:`c4-name`},{text:t.stereotype,cssClass:`c4-type`},...(t.description??[]).map(e=>({text:e,cssClass:`c4-descr`}))].filter(e=>e.text),s=t.width?Math.max(t.width-2*(t.padding??0),rye):Z().flowchart?.wrappingWidth??200,l=r.c4?.wrap??!0?s:1/0,u=await Promise.all(o.map(async e=>{let n=a.append(`g`).attr(`class`,e.cssClass),i=await Ah(n,Es(Om(e.text??``),r),{useHtmlLabels:!1,markdown:!1,isNode:!0,width:l,style:t.labelStyle},r);return Wc(i).selectAll(`tspan.text-outer-tspan`).attr(`text-anchor`,`middle`),Wc(i).selectAll(`tspan.text-inner-tspan`).attr(`font-weight`,null).attr(`font-style`,null),{el:n,box:n.node().getBBox()}})),d=Math.max(...u.map(({box:e})=>e.width),0),f=0;for(let{el:e,box:t}of u)e.attr(`transform`,`translate(${d/2-t.x-t.width/2}, ${f-t.y})`),f+=t.height+kg;let p=u.length>0?f-kg:0;return a.insert(`rect`,`:first-child`),a.attr(`transform`,`translate(${-d/2}, ${-p/2})`),{shapeSvg:i,bbox:a.node().getBBox(),halfPadding:(t.padding??0)/2,label:a}},`c4LabelHelper`),Ag=p(async(e,t,n)=>{if(t.stereotype!==void 0)return iye(e,t,n);let r,i=t.useHtmlLabels||ts(Z()?.htmlLabels);r=n||`node default`;let a=e.insert(`g`).attr(`class`,r).attr(`id`,t.domId||t.id),o=a.insert(`g`).attr(`class`,`label`).attr(`style`,gm(t.labelStyle)),s;s=t.label===void 0?``:typeof t.label==`string`?t.label:t.label[0];let l=!!t.icon||!!t.img,u=t.labelType===`markdown`,d=await Ah(o,Es(Om(s),Z()),{useHtmlLabels:i,width:t.width||t.wrappingWidth||Z().flowchart?.wrappingWidth,classes:u?`markdown-node-label`:``,style:t.labelStyle,addSvgBackground:l,markdown:u},Z()),f=(t?.padding??0)/2,p;if(i){let e=d.children[0],t=Wc(d);await ug(e),p=await Oh.measure(()=>e.getBoundingClientRect()),t.attr(`width`,p.width),t.attr(`height`,p.height)}else p=await Oh.measure(()=>d.getBBox());return i?o.attr(`transform`,`translate(`+-p.width/2+`, `+-p.height/2+`)`):o.attr(`transform`,`translate(0, `+-p.height/2+`)`),t.centerLabel&&o.attr(`transform`,`translate(`+-p.width/2+`, `+-p.height/2+`)`),o.insert(`rect`,`:first-child`),{shapeSvg:a,bbox:p,halfPadding:f,label:o}},`labelHelper`),jg=p(async(e,t,n)=>{let r=n.useHtmlLabels??hs(Z()),i=e.insert(`g`).attr(`class`,`label`).attr(`style`,n.labelStyle||``),a=await Ah(i,Es(Om(t),Z()),{useHtmlLabels:r,width:n.width||Z()?.flowchart?.wrappingWidth,style:n.labelStyle,addSvgBackground:!!n.icon||!!n.img}),o=n.padding/2,s;if(hs(Z())){let e=a.children[0],t=Wc(a);s=await Oh.measure(()=>e.getBoundingClientRect()),t.attr(`width`,s.width),t.attr(`height`,s.height)}else s=await Oh.measure(()=>a.getBBox());return r?i.attr(`transform`,`translate(`+-s.width/2+`, `+-s.height/2+`)`):i.attr(`transform`,`translate(0, `+-s.height/2+`)`),n.centerLabel&&i.attr(`transform`,`translate(`+-s.width/2+`, `+-s.height/2+`)`),i.insert(`rect`,`:first-child`),{shapeSvg:e,bbox:s,halfPadding:o,label:i}},`insertLabel`),Mg=p((e,t,n)=>{if(n){e.width=n.width,e.height=n.height;return}let r=t.node().getBBox();e.width=r.width,e.height=r.height},`updateNodeBounds`),Ng=p((e,t)=>(e.look===`handDrawn`?`rough-node`:`node`)+` `+e.cssClasses+` `+(t||``),`getNodeClasses`),p(fg,`createPathFromPoints`),p(pg,`generateFullSineWavePoints`),p(mg,`generateCirclePoints`),p(hg,`mergePaths`),Pg=p((e,t)=>{var n=e.x,r=e.y,i=t.x-n,a=t.y-r,o=e.width/2,s=e.height/2,l,u;return Math.abs(a)*o>Math.abs(i)*s?(a<0&&(s=-s),l=a===0?0:s*i/a,u=s):(i<0&&(o=-o),l=o,u=i===0?0:o*a/i),{x:n+l,y:r+u}},`intersectRect`),Fg=p((e,t,n,r,i)=>[`M`,e+i,t,`H`,e+n-i,`A`,i,i,0,0,1,e+n,t+i,`V`,t+r-i,`A`,i,i,0,0,1,e+n-i,t+r,`H`,e+i,`A`,i,i,0,0,1,e,t+r-i,`V`,t+i,`A`,i,i,0,0,1,e+i,t,`Z`].join(` `),`createRoundedRectPathD`),Ig=p(async(e,t,n,r=!1,i=!1)=>{let a=t||``;typeof a==`object`&&(a=a[0]);let o=Z(),s=hs(o);return await Ah(e,a,{style:n,isTitle:r,useHtmlLabels:s,markdown:!1,isNode:i,width:1/0},o)},`createLabel`),p(k_e,`intersectNode`),aye=k_e,p(A_e,`intersectEllipse`),Lg=A_e,p(j_e,`intersectCircle`),oye=j_e,p(M_e,`intersectLine`),p(gg,`sameSign`),sye=M_e,p(N_e,`intersectPolygon`),Rg={node:aye,circle:oye,ellipse:Lg,polygon:N_e,rect:Pg},p(P_e,`anchor`),p(_g,`generateArcPoints`),p(F_e,`calculateArcSagitta`),p(I_e,`bowTieRect`),p(L_e,`bucket`),zg=20,Bg=8,cye=80,Vg=8,p(R_e,`collapsedGroup`),p(vg,`insertPolygonShape`),lye=[`right`,`left`,`up`,`down`],Hg=`point`,uye=p(e=>{let t=new Set;for(let n of e)switch(n){case`x`:t.add(`right`),t.add(`left`);break;case`y`:t.add(`up`),t.add(`down`);break;default:t.add(n)}return t},`expandAndDeduplicateDirections`),dye=p(e=>lye.filter(t=>e.has(t)).join(`|`)||Hg,`getDirectionKey`),Ug={"right|left|up|down":p(({height:e,midpoint:t,padding:n,width:r})=>[{x:0,y:0},{x:t,y:0},{x:r/2,y:2*n},{x:r-t,y:0},{x:r,y:0},{x:r,y:-e/3},{x:r+2*n,y:-e/2},{x:r,y:-2*e/3},{x:r,y:-e},{x:r-t,y:-e},{x:r/2,y:-e-2*n},{x:t,y:-e},{x:0,y:-e},{x:0,y:-2*e/3},{x:-2*n,y:-e/2},{x:0,y:-e/3}],`right|left|up|down`),"right|left|up":p(({height:e,midpoint:t,width:n})=>[{x:t,y:0},{x:n-t,y:0},{x:n,y:-e/2},{x:n-t,y:-e},{x:t,y:-e},{x:0,y:-e/2}],`right|left|up`),"right|left|down":p(({height:e,midpoint:t,width:n})=>[{x:0,y:0},{x:t,y:-e},{x:n-t,y:-e},{x:n,y:0}],`right|left|down`),"right|up|down":p(({height:e,midpoint:t,width:n})=>[{x:0,y:0},{x:n,y:-t},{x:n,y:-e+t},{x:0,y:-e}],`right|up|down`),"left|up|down":p(({height:e,midpoint:t,width:n})=>[{x:n,y:0},{x:0,y:-t},{x:0,y:-e+t},{x:n,y:-e}],`left|up|down`),"right|left":p(({height:e,midpoint:t,padding:n,width:r})=>[{x:t,y:0},{x:t,y:-n},{x:r-t,y:-n},{x:r-t,y:0},{x:r,y:-e/2},{x:r-t,y:-e},{x:r-t,y:-e+n},{x:t,y:-e+n},{x:t,y:-e},{x:0,y:-e/2}],`right|left`),"up|down":p(({height:e,midpoint:t,padding:n,width:r})=>[{x:r/2,y:0},{x:0,y:-n},{x:t,y:-n},{x:t,y:-e+n},{x:0,y:-e+n},{x:r/2,y:-e},{x:r,y:-e+n},{x:r-t,y:-e+n},{x:r-t,y:-n},{x:r,y:-n}],`up|down`),"right|up":p(({height:e,midpoint:t,width:n})=>[{x:0,y:0},{x:n,y:-t},{x:0,y:-e}],`right|up`),"right|down":p(({height:e,width:t})=>[{x:0,y:0},{x:t,y:0},{x:0,y:-e}],`right|down`),"left|up":p(({height:e,midpoint:t,width:n})=>[{x:n,y:0},{x:0,y:-t},{x:n,y:-e}],`left|up`),"left|down":p(({height:e,width:t})=>[{x:t,y:0},{x:0,y:0},{x:t,y:-e}],`left|down`),right:p(({height:e,midpoint:t,padding:n,width:r})=>[{x:t,y:-n},{x:t,y:-n},{x:r-t,y:-n},{x:r-t,y:0},{x:r,y:-e/2},{x:r-t,y:-e},{x:r-t,y:-e+n},{x:t,y:-e+n},{x:t,y:-e+n}],`right`),left:p(({height:e,midpoint:t,padding:n,width:r})=>[{x:t,y:0},{x:t,y:-n},{x:r-t,y:-n},{x:r-t,y:-e+n},{x:t,y:-e+n},{x:t,y:-e},{x:0,y:-e/2}],`left`),up:p(({height:e,midpoint:t,padding:n,width:r})=>[{x:t,y:-n},{x:t,y:-e+n},{x:0,y:-e+n},{x:r/2,y:-e},{x:r,y:-e+n},{x:r-t,y:-e+n},{x:r-t,y:-n}],`up`),down:p(({height:e,midpoint:t,padding:n,width:r})=>[{x:r/2,y:0},{x:0,y:-n},{x:t,y:-n},{x:t,y:-e+n},{x:r-t,y:-e+n},{x:r-t,y:-n},{x:r,y:-n}],`down`),[Hg]:()=>[{x:0,y:0}]},fye=p((e,t,n,r)=>{let i=uye(e),a=(n.padding??0)/2,o=t.height+4*a,s=o/2,l=r??t.width+2*s+2*a;return(Ug[dye(i)]??Ug[Hg])({height:o,midpoint:s,padding:a,width:l})},`getArrowPoints`),p(z_e,`block_arrow`),p(B_e,`browser`),Wg=12,p(V_e,`card`),p(H_e,`choice`),p(yg,`circle`),p(U_e,`composite`),p(W_e,`consoleWindow`),p(G_e,`createLine`),p(K_e,`crossedCircle`),p(bg,`generateCirclePoints`),p(q_e,`curlyBraceLeft`),p(xg,`generateCirclePoints`),p(J_e,`curlyBraceRight`),p(Sg,`generateCirclePoints`),p(Y_e,`curlyBraces`),p(X_e,`curvedTrapezoid`),p(Z_e,`person`),pye=p((e,t,n,r,i,a)=>[`M${e},${t+a}`,`a${i},${a} 0,0,0 ${n},0`,`a${i},${a} 0,0,0 ${-n},0`,`l0,${r}`,`a${i},${a} 0,0,0 ${n},0`,`l0,${-r}`].join(` `),`createCylinderPathD`),mye=p((e,t,n,r,i,a)=>[`M${e},${t+a}`,`M${e+n},${t+a}`,`a${i},${a} 0,0,0 ${-n},0`,`l0,${r}`,`a${i},${a} 0,0,0 ${n},0`,`l0,${-r}`].join(` `),`createOuterCylinderPathD`),hye=p((e,t,n,r,i,a)=>[`M${e-n/2},${-r/2}`,`a${i},${a} 0,0,0 ${n},0`].join(` `),`createInnerCylinderPathD`),Gg=8,Kg=8,p(Q_e,`cylinder`),p(Cg,`drawRect`),p($_e,`datastore`),p(eve,`dividedRectangle`),p(tve,`doublecircle`),p(nve,`filledCircle`),qg=10,Jg=10,p(rve,`flippedTriangle`),p(ive,`folder`),p(ave,`forkJoin`),p(ove,`halfRoundedRectangle`),gye=p((e,t,n,r,i)=>[`M${e+i},${t}`,`L${e+n-i},${t}`,`L${e+n},${t-r/2}`,`L${e+n-i},${t-r}`,`L${e+i},${t-r}`,`L${e},${t-r/2}`,`Z`].join(` `),`createHexagonPathD`),p(sve,`hexagon`),p(cve,`hourglass`),p(lve,`icon`),p(uve,`iconCircle`),p(dve,`iconRounded`),p(fve,`iconSquare`),p(pve,`imageSquare`),p(mve,`inv_trapezoid`),p(hve,`labelRect`),p(gve,`lean_left`),p(_ve,`lean_right`),p(vve,`lightningBolt`),_ye=p((e,t,n,r,i,a,o)=>[`M${e},${t+a}`,`a${i},${a} 0,0,0 ${n},0`,`a${i},${a} 0,0,0 ${-n},0`,`l0,${r}`,`a${i},${a} 0,0,0 ${n},0`,`l0,${-r}`,`M${e},${t+a+o}`,`a${i},${a} 0,0,0 ${n},0`].join(` `),`createCylinderPathD`),vye=p((e,t,n,r,i,a,o)=>[`M${e},${t+a}`,`M${e+n},${t+a}`,`a${i},${a} 0,0,0 ${-n},0`,`l0,${r}`,`a${i},${a} 0,0,0 ${n},0`,`l0,${-r}`,`M${e},${t+a+o}`,`a${i},${a} 0,0,0 ${n},0`].join(` `),`createOuterCylinderPathD`),yye=p((e,t,n,r,i,a)=>[`M${e-n/2},${-r/2}`,`a${i},${a} 0,0,0 ${n},0`].join(` `),`createInnerCylinderPathD`),Yg=10,Xg=10,p(yve,`linedCylinder`),p(bve,`linedWaveEdgedRect`),p(xve,`multiRect`),p(Sve,`multiWaveEdgedRectangle`),p(Cve,`note`),bye=p((e,t,n)=>[`M${e+n/2},${t}`,`L${e+n},${t-n/2}`,`L${e+n/2},${t-n}`,`L${e},${t-n/2}`,`Z`].join(` `),`createDecisionBoxPathD`),p(wve,`question`),p(Tve,`rect_left_inv_arrow`),p(Eve,`rectWithTitle`),p(Dve,`roundedRect`),Zg=8,p(Ove,`shadedProcess`),p(kve,`slopedRect`),p(Ave,`squareRect`),p(jve,`stadium`),p(Mve,`state`),p(Nve,`stateEnd`),p(Pve,`stateStart`),Qg=8,p(Fve,`subroutine`),$g=.2,p(Ive,`taggedRect`),p(Lve,`taggedWaveEdgedRectangle`),p(Rve,`text`),xye=p((e,t,n,r,i,a)=>`M${e},${t}
511
511
  a${i},${a} 0,0,1 0,${-r}
512
512
  l${n},0
513
513
  a${i},${a} 0,0,1 0,${r}
@@ -516,13 +516,13 @@ ${i.join(`
516
516
  l${-n},0`,`createCylinderPathD`),Sye=p((e,t,n,r,i,a)=>[`M${e},${t}`,`M${e+n},${t}`,`a${i},${a} 0,0,0 0,${-r}`,`l${-n},0`,`a${i},${a} 0,0,0 0,${r}`,`l${n},0`].join(` `),`createOuterCylinderPathD`),e_=p((e,t,n,r,i,a)=>[`M${e+n/2},${-r/2}`,`a${i},${a} 0,0,0 0,${r}`].join(` `),`createInnerCylinderPathD`),t_=5,n_=10,p(zve,`tiltedCylinder`),p(Bve,`trapezoid`),p(Vve,`trapezoidalPentagon`),r_=10,i_=10,p(Hve,`triangle`),p(Uve,`waveEdgedRectangle`),p(Wve,`waveRectangle`),a_=10,p(Gve,`windowPane`),o_=new Set([`redux-color`,`redux-dark-color`]),Cye=new Set([`redux`,`redux-dark`,`redux-color`,`redux-dark-color`]),p(wg,`erBox`),p(Tg,`addText`),p(Eg,`lineToPolygon`),p(Kve,`textHelper`),p(Dg,`addText`),p(qve,`classBox`),p(Jve,`requirementBox`),p(Og,`addText`),wye=p(e=>{switch(e){case`Very High`:return`red`;case`High`:return`orange`;case`Medium`:return null;case`Low`:return`blue`;case`Very Low`:return`lightblue`}},`colorFromPriority`),p(Yve,`kanbanItem`),p(Xve,`bang`),p(Zve,`cloud`),p(Qve,`defaultMindmapNode`),p($ve,`mindmapCircle`),Tye=[{semanticName:`Process`,name:`Rectangle`,shortName:`rect`,description:`Standard process shape`,aliases:[`proc`,`process`,`rectangle`],internalAliases:[`squareRect`],handler:Ave},{semanticName:`Event`,name:`Rounded Rectangle`,shortName:`rounded`,description:`Represents an event`,aliases:[`event`],internalAliases:[`roundedRect`],handler:Dve},{semanticName:`Terminal Point`,name:`Stadium`,shortName:`stadium`,description:`Terminal point`,aliases:[`terminal`,`pill`],handler:jve},{semanticName:`Subprocess`,name:`Framed Rectangle`,shortName:`fr-rect`,description:`Subprocess`,aliases:[`subprocess`,`subproc`,`framed-rectangle`,`subroutine`],handler:Fve},{semanticName:`Database`,name:`Cylinder`,shortName:`cyl`,description:`Database storage`,aliases:[`db`,`database`,`cylinder`],handler:Q_e},{semanticName:`Data Store`,name:`Data Store`,shortName:`datastore`,description:`Data flow diagram data store`,aliases:[`data-store`],handler:$_e},{semanticName:`Folder`,name:`Folder`,shortName:`folder`,description:`Folder or directory`,aliases:[`directory`],handler:ive},{semanticName:`Bucket`,name:`Bucket`,shortName:`bucket`,description:`Object storage bucket`,handler:L_e},{semanticName:`Console`,name:`Console (terminal window)`,shortName:`console`,description:`Terminal or console window`,handler:W_e},{semanticName:`Browser`,name:`Browser`,shortName:`browser`,description:`Browser window`,handler:B_e},{semanticName:`Person`,name:`Person`,shortName:`person`,description:`Person (circular head above a rounded body)`,handler:Z_e},{semanticName:`Start`,name:`Circle`,shortName:`circle`,description:`Starting point`,aliases:[`circ`],handler:yg},{semanticName:`Bang`,name:`Bang`,shortName:`bang`,description:`Bang`,aliases:[`bang`],handler:Xve},{semanticName:`Cloud`,name:`Cloud`,shortName:`cloud`,description:`cloud`,aliases:[`cloud`],handler:Zve},{semanticName:`Decision`,name:`Diamond`,shortName:`diam`,description:`Decision-making step`,aliases:[`decision`,`diamond`,`question`],handler:wve},{semanticName:`Prepare Conditional`,name:`Hexagon`,shortName:`hex`,description:`Preparation or condition step`,aliases:[`hexagon`,`prepare`],handler:sve},{semanticName:`Data Input/Output`,name:`Lean Right`,shortName:`lean-r`,description:`Represents input or output`,aliases:[`lean-right`,`in-out`],internalAliases:[`lean_right`],handler:_ve},{semanticName:`Data Input/Output`,name:`Lean Left`,shortName:`lean-l`,description:`Represents output or input`,aliases:[`lean-left`,`out-in`],internalAliases:[`lean_left`],handler:gve},{semanticName:`Priority Action`,name:`Trapezoid Base Bottom`,shortName:`trap-b`,description:`Priority action`,aliases:[`priority`,`trapezoid-bottom`,`trapezoid`],handler:Bve},{semanticName:`Manual Operation`,name:`Trapezoid Base Top`,shortName:`trap-t`,description:`Represents a manual task`,aliases:[`manual`,`trapezoid-top`,`inv-trapezoid`],internalAliases:[`inv_trapezoid`],handler:mve},{semanticName:`Stop`,name:`Double Circle`,shortName:`dbl-circ`,description:`Represents a stop point`,aliases:[`double-circle`],internalAliases:[`doublecircle`],handler:tve},{semanticName:`Text Block`,name:`Text Block`,shortName:`text`,description:`Text block`,handler:Rve},{semanticName:`Card`,name:`Notched Rectangle`,shortName:`notch-rect`,description:`Represents a card`,aliases:[`card`,`notched-rectangle`],handler:V_e},{semanticName:`Lined/Shaded Process`,name:`Lined Rectangle`,shortName:`lin-rect`,description:`Lined process shape`,aliases:[`lined-rectangle`,`lined-process`,`lin-proc`,`shaded-process`],handler:Ove},{semanticName:`Start`,name:`Small Circle`,shortName:`sm-circ`,description:`Small starting point`,aliases:[`start`,`small-circle`],internalAliases:[`stateStart`],handler:Pve},{semanticName:`Stop`,name:`Framed Circle`,shortName:`fr-circ`,description:`Stop point`,aliases:[`stop`,`framed-circle`],internalAliases:[`stateEnd`],handler:Nve},{semanticName:`Fork/Join`,name:`Filled Rectangle`,shortName:`fork`,description:`Fork or join in process flow`,aliases:[`join`],internalAliases:[`forkJoin`],handler:ave},{semanticName:`Collate`,name:`Hourglass`,shortName:`hourglass`,description:`Represents a collate operation`,aliases:[`hourglass`,`collate`],handler:cve},{semanticName:`Comment`,name:`Curly Brace`,shortName:`brace`,description:`Adds a comment`,aliases:[`comment`,`brace-l`],handler:q_e},{semanticName:`Comment Right`,name:`Curly Brace`,shortName:`brace-r`,description:`Adds a comment`,handler:J_e},{semanticName:`Comment with braces on both sides`,name:`Curly Braces`,shortName:`braces`,description:`Adds a comment`,handler:Y_e},{semanticName:`Com Link`,name:`Lightning Bolt`,shortName:`bolt`,description:`Communication link`,aliases:[`com-link`,`lightning-bolt`],handler:vve},{semanticName:`Document`,name:`Document`,shortName:`doc`,description:`Represents a document`,aliases:[`doc`,`document`],handler:Uve},{semanticName:`Delay`,name:`Half-Rounded Rectangle`,shortName:`delay`,description:`Represents a delay`,aliases:[`half-rounded-rectangle`],handler:ove},{semanticName:`Direct Access Storage`,name:`Horizontal Cylinder`,shortName:`h-cyl`,description:`Direct access storage`,aliases:[`das`,`horizontal-cylinder`],handler:zve},{semanticName:`Disk Storage`,name:`Lined Cylinder`,shortName:`lin-cyl`,description:`Disk storage`,aliases:[`disk`,`lined-cylinder`],handler:yve},{semanticName:`Display`,name:`Curved Trapezoid`,shortName:`curv-trap`,description:`Represents a display`,aliases:[`curved-trapezoid`,`display`],handler:X_e},{semanticName:`Divided Process`,name:`Divided Rectangle`,shortName:`div-rect`,description:`Divided process shape`,aliases:[`div-proc`,`divided-rectangle`,`divided-process`],handler:eve},{semanticName:`Extract`,name:`Triangle`,shortName:`tri`,description:`Extraction process`,aliases:[`extract`,`triangle`],handler:Hve},{semanticName:`Internal Storage`,name:`Window Pane`,shortName:`win-pane`,description:`Internal storage`,aliases:[`internal-storage`,`window-pane`],handler:Gve},{semanticName:`Junction`,name:`Filled Circle`,shortName:`f-circ`,description:`Junction point`,aliases:[`junction`,`filled-circle`],handler:nve},{semanticName:`Loop Limit`,name:`Trapezoidal Pentagon`,shortName:`notch-pent`,description:`Loop limit step`,aliases:[`loop-limit`,`notched-pentagon`],handler:Vve},{semanticName:`Manual File`,name:`Flipped Triangle`,shortName:`flip-tri`,description:`Manual file operation`,aliases:[`manual-file`,`flipped-triangle`],handler:rve},{semanticName:`Manual Input`,name:`Sloped Rectangle`,shortName:`sl-rect`,description:`Manual input step`,aliases:[`manual-input`,`sloped-rectangle`],handler:kve},{semanticName:`Multi-Document`,name:`Stacked Document`,shortName:`docs`,description:`Multiple documents`,aliases:[`documents`,`st-doc`,`stacked-document`],handler:Sve},{semanticName:`Multi-Process`,name:`Stacked Rectangle`,shortName:`st-rect`,description:`Multiple processes`,aliases:[`procs`,`processes`,`stacked-rectangle`],handler:xve},{semanticName:`Stored Data`,name:`Bow Tie Rectangle`,shortName:`bow-rect`,description:`Stored data`,aliases:[`stored-data`,`bow-tie-rectangle`],handler:I_e},{semanticName:`Summary`,name:`Crossed Circle`,shortName:`cross-circ`,description:`Summary`,aliases:[`summary`,`crossed-circle`],handler:K_e},{semanticName:`Tagged Document`,name:`Tagged Document`,shortName:`tag-doc`,description:`Tagged document`,aliases:[`tag-doc`,`tagged-document`],handler:Lve},{semanticName:`Tagged Process`,name:`Tagged Rectangle`,shortName:`tag-rect`,description:`Tagged process`,aliases:[`tagged-rectangle`,`tag-proc`,`tagged-process`],handler:Ive},{semanticName:`Paper Tape`,name:`Flag`,shortName:`flag`,description:`Paper tape`,aliases:[`paper-tape`],handler:Wve},{semanticName:`Odd`,name:`Odd`,shortName:`odd`,description:`Odd shape`,internalAliases:[`rect_left_inv_arrow`],handler:Tve},{semanticName:`Lined Document`,name:`Lined Document`,shortName:`lin-doc`,description:`Lined document`,aliases:[`lined-document`],handler:bve}],s_=p(()=>{let e=[...Object.entries({state:Mve,choice:H_e,note:Cve,composite:U_e,rectWithTitle:Eve,labelRect:hve,block_arrow:z_e,collapsedGroup:R_e,iconSquare:fve,iconCircle:uve,icon:lve,iconRounded:dve,imageSquare:pve,anchor:P_e,kanbanItem:Yve,mindmapCircle:$ve,defaultMindmapNode:Qve,classBox:qve,erBox:wg,requirementBox:Jve}),...Tye.flatMap(e=>[e.shortName,...`aliases`in e?e.aliases:[],...`internalAliases`in e?e.internalAliases:[]].map(t=>[t,e.handler]))];return Object.fromEntries(e)},`generateShapeMap`)(),p(eye,`isValidShape`)}));async function l_(e,t,n){let r,i;t.shape===`rect`&&(t.shape=t.rx&&t.ry?`roundedRect`:`squareRect`);let a=t.shape?s_[t.shape]:void 0;if(!a)throw Error(`No such shape: ${t.shape}. Please check your syntax.`);if(t.link){let o;n.config.securityLevel===`sandbox`?o=`_top`:t.linkTarget&&(o=t.linkTarget||`_blank`),r=e.insert(`svg:a`).attr(`xlink:href`,t.link).attr(`target`,o??null),i=await a(r,t,n)}else i=await a(e,t,n),r=i;return r.attr(`data-look`,gm(t.look)),t.tooltip&&i.attr(`title`,t.tooltip),d_.set(t.id,r),t.haveCallback&&r.attr(`class`,r.attr(`class`)+` clickable`),r}var u_,d_,Eye,Dye,f_,p_=o((()=>{c_(),Am(),S(),h(),u_=p(({flowchart:e})=>{let t=e?.subGraphTitleMargin?.top??0,n=e?.subGraphTitleMargin?.bottom??0;return{subGraphTitleTopMargin:t,subGraphTitleBottomMargin:n,subGraphTitleTotalMargin:t+n}},`getSubGraphTitleMargins`),d_=new Map,p(l_,`insertNode`),Eye=p((e,t)=>{d_.set(t.id,e)},`setNodeElem`),Dye=p(()=>{d_.clear()},`clear`),f_=p(e=>{let t=d_.get(e.id);y.trace(`Transforming node`,e.diff,e,`translate(`+(e.x-e.width/2-5)+`, `+e.width/2+`)`);let n=e.diff||0;return e.clusterNode?t.attr(`transform`,`translate(`+(e.x+n-e.width/2)+`, `+(e.y-e.height/2-8)+`)`):t.attr(`transform`,`translate(`+e.x+`, `+e.y+`)`),n},`positionNode`)})),Oye,m_,kye,h_,g_,Aye,__=o((()=>{p_(),c_(),op(),jh(),oc(),S(),h(),$f(),lg(),Oye=p(async(e,t)=>{let n=Z(),{themeVariables:r,handDrawnSeed:i}=n,{clusterBkg:a,clusterBorder:o}=r,s=o,{labelStyles:l,nodeStyles:u,borderStyles:d,backgroundStyles:f}=ip(t),p=e.insert(`g`).attr(`class`,`cluster swimlane `+(t.cssClasses||``)).attr(`id`,t.id).attr(`data-id`,t.id).attr(`data-et`,`cluster`).attr(`data-look`,t.look),m=ts(n.flowchart.htmlLabels),h=t.direction===`LR`,g=p.insert(`g`).attr(`class`,`cluster-label swimlane-label`),_=await Ah(g,t.label,{style:t.labelStyle,useHtmlLabels:m,isNode:!0,width:t.width}),v=_.getBBox();if(m){let e=_.children[0],t=Wc(_);v=e.getBoundingClientRect(),t.attr(`width`,v.width),t.attr(`height`,v.height)}let b=t.padding??0,x=t.width<=v.width+b?v.width+b:t.width;t.diff=t.width<=v.width+b?(x-t.width)/2-b:-b;let S=t.height,C=t.y-S/2,w=t.y+S/2,T=t.x-x/2,E=t.swimlaneContentTop===void 0?C+S/3:t.swimlaneContentTop,D=h?4:0,O=v.height+2*D,k,A;if(h){let e=Math.max(O,v.height+2*D),n=T+e,r=Math.max(0,x-e);if(t.look===`handDrawn`){let o=cg.svg(p),l=ap(t,{roughness:.7,fill:a,stroke:s,fillWeight:3,seed:i}),u=ap(t,{roughness:.7,fill:`none`,stroke:s,seed:i}),m=o.rectangle(T,C,e,S,l);k=p.insert(()=>m,`:first-child`);let h=o.rectangle(n,C,r,S,u);A=p.insert(()=>h,`:first-child`),k.select(`path:nth-child(2)`).attr(`style`,d.join(`;`)),k.select(`path`).attr(`style`,f.join(`;`).replace(`fill`,`stroke`))}else k=p.insert(`rect`,`:first-child`),A=p.insert(`rect`,`:first-child`),k.attr(`class`,`swimlane-title`).attr(`style`,u).attr(`x`,T).attr(`y`,C).attr(`width`,e).attr(`height`,S).attr(`fill`,a).attr(`stroke`,s),A.attr(`class`,`swimlane-body`).attr(`style`,u).attr(`x`,n).attr(`y`,C).attr(`width`,r).attr(`height`,S).attr(`fill`,`none`).attr(`stroke`,s);let o=T+e/2,l=t.y;g.attr(`transform`,`translate(${o}, ${l}) rotate(-90) translate(${-v.width/2}, ${-v.height/2})`)}else{let e=Math.max(0,E-C),n=Math.min(O,e),r=C+n,o=Math.max(0,w-r),l=t.x-x/2;if(t.look===`handDrawn`){let e=cg.svg(p),u=ap(t,{roughness:.7,fill:a,stroke:s,fillWeight:3,seed:i}),m=ap(t,{roughness:.7,fill:`none`,stroke:s,seed:i}),h=e.rectangle(l,C,x,n,u);k=p.insert(()=>h,`:first-child`);let g=e.rectangle(l,r,x,o,m);A=p.insert(()=>g,`:first-child`),k.select(`path:nth-child(2)`).attr(`style`,d.join(`;`)),k.select(`path`).attr(`style`,f.join(`;`).replace(`fill`,`stroke`))}else k=p.insert(`rect`,`:first-child`),A=p.insert(`rect`,`:first-child`),k.attr(`class`,`swimlane-title`).attr(`style`,u).attr(`x`,l).attr(`y`,C).attr(`width`,x).attr(`height`,n).attr(`fill`,a).attr(`stroke`,s),A.attr(`class`,`swimlane-body`).attr(`style`,u).attr(`x`,l).attr(`y`,r).attr(`width`,x).attr(`height`,o).attr(`fill`,`none`).attr(`stroke`,s);let m=t.x-v.width/2,h=C+(n-v.height)/2;g.attr(`transform`,`translate(${m}, ${h})`)}if(y.trace(`Swimlane data `,t,JSON.stringify(t)),l){let e=g.select(`span`);e&&e.attr(`style`,l)}return t.offsetX=0,t.width=x,t.height=S,t.offsetY=v.height-b/2,t.intersect=function(e){return Pg(t,e)},{cluster:p,labelBBox:v}},`swimlane`),m_=p(async(e,t)=>{y.info(`Creating subgraph rect for `,t.id,t);let n=Z(),{themeVariables:r,handDrawnSeed:i}=n,{clusterBkg:a,clusterBorder:o}=r,{labelStyles:s,nodeStyles:l,borderStyles:u,backgroundStyles:d}=ip(t),f=e.insert(`g`).attr(`class`,`cluster `+t.cssClasses).attr(`id`,t.domId).attr(`data-look`,t.look),p=hs(n),m=f.insert(`g`).attr(`class`,`cluster-label `),h;h=t.labelType===`markdown`?await Ah(m,t.label,{style:t.labelStyle,useHtmlLabels:p,isNode:!0,width:t.width}):await Ig(m,t.label,t.labelStyle||``,!1,!0);let g=h.getBBox();if(hs(n)){let e=h.children[0],t=Wc(h);g=e.getBoundingClientRect(),t.attr(`width`,g.width),t.attr(`height`,g.height)}let _=t.width<=g.width+t.padding?g.width+t.padding:t.width;t.diff=t.width<=g.width+t.padding?(_-t.width)/2-t.padding:-t.padding;let v=t.height,b=t.x-_/2,x=t.y-v/2;y.trace(`Data `,t,JSON.stringify(t));let S;if(t.look===`handDrawn`){let e=cg.svg(f),n=ap(t,{roughness:.7,fill:a,stroke:o,fillWeight:3,seed:i}),r=e.path(Fg(b,x,_,v,0),n);S=f.insert(()=>(y.debug(`Rough node insert CXC`,r),r),`:first-child`),S.select(`path:nth-child(2)`).attr(`style`,u.join(`;`)),S.select(`path`).attr(`style`,d.join(`;`).replace(`fill`,`stroke`))}else S=f.insert(`rect`,`:first-child`),S.attr(`style`,l).attr(`rx`,t.rx).attr(`ry`,t.ry).attr(`x`,b).attr(`y`,x).attr(`width`,_).attr(`height`,v);let{subGraphTitleTopMargin:C}=u_(n);if(m.attr(`transform`,`translate(${t.x-g.width/2}, ${t.y-t.height/2+C})`),s){let e=m.select(`span`);e&&e.attr(`style`,s)}let w=S.node().getBBox();return t.offsetX=0,t.width=w.width,t.height=w.height,t.offsetY=g.height-t.padding/2,t.intersect=function(e){return Pg(t,e)},{cluster:f,labelBBox:g}},`rect`),kye={rect:m_,squareRect:m_,roundedWithTitle:p(async(e,t)=>{let n=Z(),{themeVariables:r,handDrawnSeed:i}=n,{altBackground:a,compositeBackground:o,compositeTitleBackground:s,nodeBorder:l}=r,u=e.insert(`g`).attr(`class`,t.cssClasses).attr(`id`,t.domId).attr(`data-id`,t.id).attr(`data-look`,t.look),d=u.insert(`g`,`:first-child`),f=u.insert(`g`).attr(`class`,`cluster-label`),p=u.append(`rect`),m=await Ig(f,t.label,t.labelStyle,void 0,!0),h=m.getBBox();if(hs(n)){let e=m.children[0],t=Wc(m);h=e.getBoundingClientRect(),t.attr(`width`,h.width),t.attr(`height`,h.height)}let g=0*t.padding,_=g/2,v=(t.width<=h.width+t.padding?h.width+t.padding:t.width)+g;t.diff=t.width<=h.width+t.padding?(v-t.width)/2-t.padding:-t.padding;let y=t.height+g,b=t.height+g-h.height-6,x=t.x-v/2,S=t.y-y/2;t.width=v;let C=t.y-t.height/2-_+h.height+2,w;if(t.look===`handDrawn`){let e=t.cssClasses.includes(`statediagram-cluster-alt`),n=cg.svg(u),r=t.rx||t.ry?n.path(Fg(x,S,v,y,10),{roughness:.7,fill:s,fillStyle:`solid`,stroke:l,seed:i}):n.rectangle(x,S,v,y,{seed:i});w=u.insert(()=>r,`:first-child`);let d=n.rectangle(x,C,v,b,{fill:e?a:o,fillStyle:e?`hachure`:`solid`,stroke:l,seed:i});w=u.insert(()=>r,`:first-child`),p=u.insert(()=>d)}else w=d.insert(`rect`,`:first-child`),w.attr(`class`,`outer`).attr(`x`,x).attr(`y`,S).attr(`width`,v).attr(`height`,y).attr(`data-look`,t.look),p.attr(`class`,`inner`).attr(`x`,x).attr(`y`,C).attr(`width`,v).attr(`height`,b);return f.attr(`transform`,`translate(${t.x-h.width/2}, ${S+1-(hs(n)?0:3)})`),t.height=w.node().getBBox().height,t.offsetX=0,t.offsetY=h.height-t.padding/2,t.labelBBox=h,t.intersect=function(e){return Pg(t,e)},{cluster:u,labelBBox:h}},`roundedWithTitle`),noteGroup:p((e,t)=>{let n=e.insert(`g`).attr(`class`,`note-cluster`).attr(`id`,t.domId),r=n.insert(`rect`,`:first-child`),i=0*t.padding,a=i/2;r.attr(`rx`,t.rx).attr(`ry`,t.ry).attr(`x`,t.x-t.width/2-a).attr(`y`,t.y-t.height/2-a).attr(`width`,t.width+i).attr(`height`,t.height+i).attr(`fill`,`none`);let o=r.node().getBBox();return t.width=o.width,t.height=o.height,t.intersect=function(e){return Pg(t,e)},{cluster:n,labelBBox:{width:0,height:0}}},`noteGroup`),divider:p((e,t)=>{let{themeVariables:n,handDrawnSeed:r}=Z(),{nodeBorder:i}=n,a=e.insert(`g`).attr(`class`,t.cssClasses).attr(`id`,t.domId).attr(`data-look`,t.look),o=a.insert(`g`,`:first-child`),s=0*t.padding,l=t.width+s;t.diff=-t.padding;let u=t.height+s,d=t.x-l/2,f=t.y-u/2;t.width=l;let p;if(t.look===`handDrawn`){let e=cg.svg(a).rectangle(d,f,l,u,{fill:`lightgrey`,roughness:.5,strokeLineDash:[5],stroke:i,seed:r});p=a.insert(()=>e,`:first-child`)}else{p=o.insert(`rect`,`:first-child`);let e=`outer`;e=(t.look,`divider`),p.attr(`class`,e).attr(`x`,d).attr(`y`,f).attr(`width`,l).attr(`height`,u).attr(`data-look`,t.look)}return t.height=p.node().getBBox().height,t.offsetX=0,t.offsetY=0,t.intersect=function(e){return Pg(t,e)},{cluster:a,labelBBox:{}}},`divider`),kanbanSection:p(async(e,t)=>{y.info(`Creating subgraph rect for `,t.id,t);let n=Z(),{themeVariables:r,handDrawnSeed:i}=n,{clusterBkg:a,clusterBorder:o}=r,{labelStyles:s,nodeStyles:l,borderStyles:u,backgroundStyles:d}=ip(t),f=e.insert(`g`).attr(`class`,`cluster `+t.cssClasses).attr(`id`,t.domId).attr(`data-look`,t.look),p=hs(n),m=f.insert(`g`).attr(`class`,`cluster-label `),h=await Ah(m,t.label,{style:t.labelStyle,useHtmlLabels:p,isNode:!0,width:t.width}),g=h.getBBox();if(hs(n)){let e=h.children[0],t=Wc(h);g=e.getBoundingClientRect(),t.attr(`width`,g.width),t.attr(`height`,g.height)}let _=t.width<=g.width+t.padding?g.width+t.padding:t.width;t.diff=t.width<=g.width+t.padding?(_-t.width)/2-t.padding:-t.padding;let v=t.height,b=t.x-_/2,x=t.y-v/2;y.trace(`Data `,t,JSON.stringify(t));let S;if(t.look===`handDrawn`){let e=cg.svg(f),n=ap(t,{roughness:.7,fill:a,stroke:o,fillWeight:4,seed:i}),r=e.path(Fg(b,x,_,v,t.rx),n);S=f.insert(()=>(y.debug(`Rough node insert CXC`,r),r),`:first-child`),S.select(`path:nth-child(2)`).attr(`style`,u.join(`;`)),S.select(`path`).attr(`style`,d.join(`;`).replace(`fill`,`stroke`))}else S=f.insert(`rect`,`:first-child`),S.attr(`style`,l).attr(`rx`,t.rx).attr(`ry`,t.ry).attr(`x`,b).attr(`y`,x).attr(`width`,_).attr(`height`,v);let{subGraphTitleTopMargin:C}=u_(n);if(m.attr(`transform`,`translate(${t.x-g.width/2}, ${t.y-t.height/2+C})`),s){let e=m.select(`span`);e&&e.attr(`style`,s)}let w=S.node().getBBox();return t.offsetX=0,t.width=w.width,t.height=w.height,t.offsetY=g.height-t.padding/2,t.intersect=function(e){return Pg(t,e)},{cluster:f,labelBBox:g}},`kanbanSection`),swimlane:Oye},h_=new Map,g_=p(async(e,t)=>{let n=await kye[t.shape||`rect`](e,t);return h_.set(t.id,n),n},`insertCluster`),Aye=p(()=>{h_=new Map},`clear`)}));function v_(e,t){if(e===void 0||t===void 0)return{angle:0,deltaX:0,deltaY:0};e=w_(e),t=w_(t);let[n,r]=[e.x,e.y],[i,a]=[t.x,t.y],o=i-n,s=a-r;return{angle:Math.atan(s/o),deltaX:o,deltaY:s}}function y_(e,t){hs(Z())&&e&&(e.style.width=t.length*9+`px`,e.style.height=`12px`)}function jye(e){let t=[],n=[];for(let r=1;r<e.length-1;r++){let i=e[r-1],a=e[r],o=e[r+1];(i.x===a.x&&a.y===o.y&&Math.abs(a.x-o.x)>5&&Math.abs(a.y-i.y)>5||i.y===a.y&&a.x===o.x&&Math.abs(a.x-i.x)>5&&Math.abs(a.y-o.y)>5)&&(t.push(a),n.push(r))}return{cornerPoints:t,cornerPointPositions:n}}function Mye(e,t){if(e.length<2)return``;let n=``,r=e.length,i=1e-5;for(let a=0;a<r;a++){let o=e[a],s=e[a-1],l=e[a+1];if(a===0)n+=`M${o.x},${o.y}`;else if(a===r-1)n+=`L${o.x},${o.y}`;else{let e=o.x-s.x,r=o.y-s.y,a=l.x-o.x,u=l.y-o.y,d=Math.hypot(e,r),f=Math.hypot(a,u);if(d<i||f<i){n+=`L${o.x},${o.y}`;continue}let p=e/d,m=r/d,h=a/f,g=u/f,_=p*h+m*g,v=Math.acos(Math.max(-1,Math.min(1,_)));if(v<i||Math.abs(Math.PI-v)<i){n+=`L${o.x},${o.y}`;continue}let y=Math.min(t/Math.sin(v/2),d/2,f/2),b=o.x-p*y,x=o.y-m*y,S=o.x+h*y,C=o.y+g*y;n+=`L${b},${x}`,n+=`Q${o.x},${o.y} ${S},${C}`}}return n}function b_(e,t){if(!e||!t)return{angle:0,deltaX:0,deltaY:0};let n=t.x-e.x,r=t.y-e.y;return{angle:Math.atan2(r,n),deltaX:n,deltaY:r}}function Nye(e,t){let n=e.map(e=>({...e}));if(e.length>=2&&S_[t.arrowTypeStart]){let r=S_[t.arrowTypeStart],i=e[0],a=e[1],{angle:o}=b_(i,a),s=r*Math.cos(o),l=r*Math.sin(o);n[0].x=i.x+s,n[0].y=i.y+l}let r=e.length;if(r>=2&&S_[t.arrowTypeEnd]){let i=S_[t.arrowTypeEnd],a=e[r-1],o=e[r-2],{angle:s}=b_(o,a),l=i*Math.cos(s),u=i*Math.sin(s);n[r-1].x=a.x-l,n[r-1].y=a.y-u}return n}var x_,S_,C_,w_,Pye,Fye,Iye,Lye,T_,Rye,E_,D_,zye,O_,k_,A_,j_,Bye,M_,N_,P_,F_,I_,L_,R_,Vye,Hye,z_,B_=o((()=>{p_(),c_(),op(),jh(),Am(),oc(),S(),h(),$f(),lg(),x_=p((e,t)=>{if(t)return`translate(`+-e.width/2+`, `+-e.height/2+`)`;let n=e.x??0,r=e.y??0;return`translate(`+-(n+e.width/2)+`, `+-(r+e.height/2)+`)`},`computeLabelTransform`),S_={aggregation:17.25,extension:17.25,composition:17.25,dependency:6,lollipop:13.5,arrow_point:4,arrow_barb:0,arrow_barb_neo:5.5},C_={arrow_point:4,arrow_cross:12.5,arrow_circle:12.5},p(v_,`calculateDeltaAndAngle`),w_=p(e=>Array.isArray(e)?{x:e[0],y:e[1]}:e,`pointTransformer`),Pye=p(e=>({x:p(function(t,n,r){let i=0,a=w_(r[0]).x<w_(r[r.length-1]).x?`left`:`right`;if(n===0&&Object.hasOwn(S_,e.arrowTypeStart)){let{angle:t,deltaX:n}=v_(r[0],r[1]);i=S_[e.arrowTypeStart]*Math.cos(t)*(n>=0?1:-1)}else if(n===r.length-1&&Object.hasOwn(S_,e.arrowTypeEnd)){let{angle:t,deltaX:n}=v_(r[r.length-1],r[r.length-2]);i=S_[e.arrowTypeEnd]*Math.cos(t)*(n>=0?1:-1)}let o=Math.abs(w_(t).x-w_(r[r.length-1]).x),s=Math.abs(w_(t).y-w_(r[r.length-1]).y),l=Math.abs(w_(t).x-w_(r[0]).x),u=Math.abs(w_(t).y-w_(r[0]).y),d=S_[e.arrowTypeStart],f=S_[e.arrowTypeEnd];if(o<f&&o>0&&s<f){let e=f+1-o;e*=a===`right`?-1:1,i-=e}if(l<d&&l>0&&u<d){let e=d+1-l;e*=a===`right`?-1:1,i+=e}return w_(t).x+i},`x`),y:p(function(t,n,r){let i=0,a=w_(r[0]).y<w_(r[r.length-1]).y?`down`:`up`;if(n===0&&Object.hasOwn(S_,e.arrowTypeStart)){let{angle:t,deltaY:n}=v_(r[0],r[1]);i=S_[e.arrowTypeStart]*Math.abs(Math.sin(t))*(n>=0?1:-1)}else if(n===r.length-1&&Object.hasOwn(S_,e.arrowTypeEnd)){let{angle:t,deltaY:n}=v_(r[r.length-1],r[r.length-2]);i=S_[e.arrowTypeEnd]*Math.abs(Math.sin(t))*(n>=0?1:-1)}let o=Math.abs(w_(t).y-w_(r[r.length-1]).y),s=Math.abs(w_(t).x-w_(r[r.length-1]).x),l=Math.abs(w_(t).y-w_(r[0]).y),u=Math.abs(w_(t).x-w_(r[0]).x),d=S_[e.arrowTypeStart],f=S_[e.arrowTypeEnd];if(o<f&&o>0&&s<f){let e=f+1-o;e*=a===`up`?-1:1,i-=e}if(l<d&&l>0&&u<d){let e=d+1-l;e*=a===`up`?-1:1,i+=e}return w_(t).y+i},`y`)}),`getLineFunctionsWithOffset`),Fye=p((e,t,n,r,i,a=!1,o)=>{t.arrowTypeStart&&T_(e,`start`,t.arrowTypeStart,n,r,i,a,o),t.arrowTypeEnd&&T_(e,`end`,t.arrowTypeEnd,n,r,i,a,o)},`addEdgeMarkers`),Iye={arrow_cross:{type:`cross`,fill:!1},arrow_point:{type:`point`,fill:!0},arrow_barb:{type:`barb`,fill:!0},arrow_barb_neo:{type:`barb`,fill:!0},arrow_circle:{type:`circle`,fill:!1},aggregation:{type:`aggregation`,fill:!1},extension:{type:`extension`,fill:!1},composition:{type:`composition`,fill:!0},dependency:{type:`dependency`,fill:!0},lollipop:{type:`lollipop`,fill:!1},only_one:{type:`onlyOne`,fill:!1},zero_or_one:{type:`zeroOrOne`,fill:!1},one_or_more:{type:`oneOrMore`,fill:!1},zero_or_more:{type:`zeroOrMore`,fill:!1},requirement_arrow:{type:`requirement_arrow`,fill:!1},requirement_contains:{type:`requirement_contains`,fill:!1}},Lye=[`cross`,`point`,`circle`,`lollipop`,`aggregation`,`extension`,`composition`,`dependency`,`barb`],T_=p((e,t,n,r,i,a,o=!1,s)=>{if(!n||n===`none`)return;let l=Iye[n],u=l&&Lye.includes(l.type);if(!l){y.warn(`Unknown arrow type: ${n}`);return}let d=`${i}_${a}-${l.type}${t===`start`?`Start`:`End`}${o&&u?`-margin`:``}`;if(s&&s.trim()!==``){let n=`${d}_${s.replace(/[^\dA-Za-z]/g,`_`)}`;if(!document.getElementById(n)){let e=document.getElementById(d);if(e){let t=e.cloneNode(!0);t.id=n,t.querySelectorAll(`path, circle, line`).forEach(e=>{e.setAttribute(`stroke`,s),l.fill&&e.setAttribute(`fill`,s)}),e.parentNode?.appendChild(t)}}e.attr(`marker-${t}`,`url(${r}#${n})`)}else e.attr(`marker-${t}`,`url(${r}#${d})`)},`addEdgeMarker`),Rye=p(e=>typeof e==`string`?e:Z()?.flowchart?.curve,`resolveEdgeCurveType`),E_=new Map,D_=new Map,zye=p(()=>{E_.clear(),D_.clear()},`clear`),O_=p(e=>!!(e.label||e.startLabelLeft||e.startLabelRight||e.endLabelLeft||e.endLabelRight),`hasEdgeLabel`),k_=p(e=>e?typeof e==`string`?e:e.reduce((e,t)=>e+`;`+t,``):``,`getLabelStyles`),A_=p(async(e,t)=>{let n=Z(),r=hs(n),{labelStyles:i}=ip(t);t.labelStyle=i;let a=e.insert(`g`).attr(`class`,`edgeLabel`),o=a.insert(`g`).attr(`class`,`label`).attr(`data-id`,t.id),s=t.labelType===`markdown`,l=await Ah(e,t.label,{style:k_(t.labelStyle),useHtmlLabels:r,addSvgBackground:!0,isNode:!1,markdown:s,width:void 0},n);o.node().appendChild(l),y.info(`abc82`,t,t.labelType);let u,d;if(r){let e=l.children[0],t=Wc(l);u=await Oh.measure(()=>e.getBoundingClientRect()),d=u,t.attr(`width`,u.width),t.attr(`height`,u.height)}else{let e=Wc(l).select(`text`).node();await Oh.measure(()=>{u=l.getBBox(),d=e&&typeof e.getBBox==`function`?e.getBBox():u})}o.attr(`transform`,x_(d,r)),E_.set(t.id,a),t.width=u.width,t.height=u.height;let f;if(t.startLabelLeft){let n=e.insert(`g`).attr(`class`,`edgeTerminals`),i=n.insert(`g`).attr(`class`,`inner`),a=await Ig(i,t.startLabelLeft,k_(t.labelStyle)||``,!1,!1);f=a;let o=a.getBBox();if(r){let e=a.children[0],t=Wc(a);o=e.getBoundingClientRect(),t.attr(`width`,o.width),t.attr(`height`,o.height)}i.attr(`transform`,x_(o,r)),D_.get(t.id)||D_.set(t.id,{}),D_.get(t.id).startLeft=n,y_(f,t.startLabelLeft)}if(t.startLabelRight){let n=e.insert(`g`).attr(`class`,`edgeTerminals`),i=n.insert(`g`).attr(`class`,`inner`),a=await Ig(i,t.startLabelRight,k_(t.labelStyle)||``,!1,!1);f=a;let o=a.getBBox();if(r){let e=a.children[0],t=Wc(a);o=e.getBoundingClientRect(),t.attr(`width`,o.width),t.attr(`height`,o.height)}i.attr(`transform`,x_(o,r)),D_.get(t.id)||D_.set(t.id,{}),D_.get(t.id).startRight=n,y_(f,t.startLabelRight)}if(t.endLabelLeft){let n=e.insert(`g`).attr(`class`,`edgeTerminals`),i=n.insert(`g`).attr(`class`,`inner`),a=await Ig(n,t.endLabelLeft,k_(t.labelStyle)||``,!1,!1);f=a;let o=a.getBBox();if(r){let e=a.children[0],t=Wc(a);o=e.getBoundingClientRect(),t.attr(`width`,o.width),t.attr(`height`,o.height)}i.attr(`transform`,x_(o,r)),D_.get(t.id)||D_.set(t.id,{}),D_.get(t.id).endLeft=n,y_(f,t.endLabelLeft)}if(t.endLabelRight){let n=e.insert(`g`).attr(`class`,`edgeTerminals`),i=n.insert(`g`).attr(`class`,`inner`),a=await Ig(n,t.endLabelRight,k_(t.labelStyle)||``,!1,!1);f=a;let o=a.getBBox();if(r){let e=a.children[0],t=Wc(a);o=e.getBoundingClientRect(),t.attr(`width`,o.width),t.attr(`height`,o.height)}i.attr(`transform`,x_(o,r)),D_.get(t.id)||D_.set(t.id,{}),D_.get(t.id).endRight=n,y_(f,t.endLabelRight)}return l},`insertEdgeLabel`),p(y_,`setTerminalWidth`),j_=p((e,t)=>{y.debug(`Moving label abc88 `,e.id,e.label,E_.get(e.id),t);let n=t.updatedPath?t.updatedPath:t.originalPath,r=Z(),{subGraphTitleTotalMargin:i}=u_(r);if(e.label){let r=E_.get(e.id),a=e.x,o=e.y;if(n){let r=Dm.calcLabelPosition(n);y.debug(`Moving label `+e.label+` from (`,a,`,`,o,`) to (`,r.x,`,`,r.y,`) abc88`),t.updatedPath&&(a=r.x,o=r.y)}r.attr(`transform`,`translate(${a}, ${o+i/2})`)}if(e.startLabelLeft){let t=D_.get(e.id).startLeft,r=e.x,i=e.y;if(n){let t=Dm.calcTerminalLabelPosition(e.arrowTypeStart?10:0,`start_left`,n);r=t.x,i=t.y}t.attr(`transform`,`translate(${r}, ${i})`)}if(e.startLabelRight){let t=D_.get(e.id).startRight,r=e.x,i=e.y;if(n){let t=Dm.calcTerminalLabelPosition(e.arrowTypeStart?10:0,`start_right`,n);r=t.x,i=t.y}t.attr(`transform`,`translate(${r}, ${i})`)}if(e.endLabelLeft){let t=D_.get(e.id).endLeft,r=e.x,i=e.y;if(n){let t=Dm.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,`end_left`,n);r=t.x,i=t.y}t.attr(`transform`,`translate(${r}, ${i})`)}if(e.endLabelRight){let t=D_.get(e.id).endRight,r=e.x,i=e.y;if(n){let t=Dm.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,`end_right`,n);r=t.x,i=t.y}t.attr(`transform`,`translate(${r}, ${i})`)}},`positionEdgeLabel`),Bye=p((e,t)=>{if(!e?.isLabelEdge||!e?.id?.endsWith(`-to-label`)||!Array.isArray(t)||t.length!==2)return t;let[n,r]=t,i=Math.abs(r.x-n.x),a=Math.abs(r.y-n.y);return i<.001||a<.001?t:a>=i?[n,{x:n.x,y:r.y},r]:[n,{x:r.x,y:n.y},r]},`orthogonalizeToLabelClippedPoints`),M_=p((e,t)=>{let n=e.x,r=e.y,i=Math.abs(t.x-n),a=Math.abs(t.y-r),o=e.width/2,s=e.height/2;return i>=o||a>=s},`outsideNode`),N_=p((e,t,n)=>{y.debug(`intersection calc abc89:
517
517
  outsidePoint: ${JSON.stringify(t)}
518
518
  insidePoint : ${JSON.stringify(n)}
519
- node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);let r=e.x,i=e.y,a=Math.abs(r-n.x),o=e.width/2,s=n.x<t.x?o-a:o+a,l=e.height/2,u=Math.abs(t.y-n.y),d=Math.abs(t.x-n.x);if(Math.abs(i-t.y)*o>Math.abs(r-t.x)*l){let e=n.y<t.y?t.y-l-i:i-l-t.y;s=d*e/u;let r={x:n.x<t.x?n.x+s:n.x-d+s,y:n.y<t.y?n.y+u-e:n.y-u+e};return s===0&&(r.x=t.x,r.y=t.y),d===0&&(r.x=t.x),u===0&&(r.y=t.y),y.debug(`abc89 top/bottom calc, Q ${u}, q ${e}, R ${d}, r ${s}`,r),r}{s=n.x<t.x?t.x-o-r:r-o-t.x;let e=u*s/d,i=n.x<t.x?n.x+d-s:n.x-d+s,a=n.y<t.y?n.y+e:n.y-e;return y.debug(`sides calc abc89, Q ${u}, q ${e}, R ${d}, r ${s}`,{_x:i,_y:a}),s===0&&(i=t.x,a=t.y),d===0&&(i=t.x),u===0&&(a=t.y),{x:i,y:a}}},`intersection`),P_=p((e,t)=>{y.warn(`abc88 cutPathAtIntersect`,e,t);let n=[],r=e[0],i=!1;return e.forEach(e=>{if(y.info(`abc88 checking point`,e,t),!M_(t,e)&&!i){let a=N_(t,r,e);y.debug(`abc88 inside`,e,r,a),y.debug(`abc88 intersection`,a,t);let o=!1;n.forEach(e=>{o||=e.x===a.x&&e.y===a.y}),n.some(e=>e.x===a.x&&e.y===a.y)?y.warn(`abc88 no intersect`,a,n):n.push(a),i=!0}else y.warn(`abc88 outside`,e,r),r=e,i||n.push(e)}),y.debug(`returning points`,n),n},`cutPathAtIntersect`),p(jye,`extractCornerPoints`),F_=p(function(e,t,n){let r=t.x-e.x,i=t.y-e.y,a=n/Math.sqrt(r*r+i*i);return{x:t.x-a*r,y:t.y-a*i}},`findAdjacentPoint`),I_=p(function(e){let{cornerPointPositions:t}=jye(e),n=[];for(let r=0;r<e.length;r++)if(t.includes(r)){let t=e[r-1],i=e[r+1],a=e[r],o=F_(t,a,5),s=F_(i,a,5),l=s.x-o.x,u=s.y-o.y;n.push(o);let d=Math.sqrt(2)*2,f={x:a.x,y:a.y};Math.abs(i.x-t.x)>10&&Math.abs(i.y-t.y)>=10?(y.debug(`Corner point fixing`,Math.abs(i.x-t.x),Math.abs(i.y-t.y)),f=a.x===o.x?{x:l<0?o.x-5+d:o.x+5-d,y:u<0?o.y-d:o.y+d}:{x:l<0?o.x-d:o.x+d,y:u<0?o.y-5+d:o.y+5-d}):y.debug(`Corner point skipping fixing`,Math.abs(i.x-t.x),Math.abs(i.y-t.y)),n.push(f,s)}else n.push(e[r]);return n},`fixCorners`),L_=p((e,t,n)=>{let r=e-t-n,i=Math.floor(r/4);return`0 ${t} ${Array(Number.isFinite(i)?Math.max(0,i):0).fill(`2 2`).join(` `)} ${n}`},`generateDashArray`),R_=p(function(e,t,n,r,i,a,o,s=!1){if(!o)throw Error(`insertEdge: missing diagramId for edge "${t.id}" \u2014 edge IDs require a diagram prefix for uniqueness`);let{handDrawnSeed:l,layout:u}=Z(),d=t.points,f=!1,p=i;var m=a;let h=[];for(let e in t.cssCompiledStyles)rp(e)||h.push(t.cssCompiledStyles[e]);if(u===`swimlane`){if(m.intersect&&p.intersect&&Array.isArray(d)&&d.length>=2){if(d.length===2)d=[p.intersect(d[0]),m.intersect(d[1])];else{let e=d.slice(1,-1),t=e[0],n=e[e.length-1],r=.5,i=Math.abs(d[d.length-1].x-n.x)<r&&Math.abs(d[d.length-1].y-n.y)<r,a=p.intersect(t),o=i?n:m.intersect(n),s=Math.abs(o.x-n.x)<r&&Math.abs(o.y-n.y)<r,l=Math.abs(a.x-t.x)<r&&Math.abs(a.y-t.y)<r?[]:[a],u=s?[]:[o];d=[...l,...e,...u]}}d=Bye(t,d)}else m.intersect&&p.intersect&&!s&&(d=d.slice(1,t.points.length-1),d.unshift(p.intersect(d[0])),d.push(m.intersect(d[d.length-1])));let g=btoa(JSON.stringify(d));t.toCluster&&(y.info(`to cluster abc88`,n.get(t.toCluster)),d=P_(t.points,n.get(t.toCluster).node),f=!0),t.fromCluster&&(y.debug(`from cluster abc88`,n.get(t.fromCluster),JSON.stringify(d,null,2)),d=P_(d.reverse(),n.get(t.fromCluster).node).reverse(),f=!0);let _=d.filter(e=>!Number.isNaN(e.y)),v=Rye(t.curve);v!==`rounded`&&(_=I_(_));let b=jf;switch(v){case`linear`:b=jf;break;case`basis`:b=Rf;break;case`cardinal`:b=Hf;break;case`bumpX`:b=ipe;break;case`bumpY`:b=ape;break;case`catmullRom`:b=qf;break;case`monotoneX`:b=Fpe;break;case`monotoneY`:b=Ipe;break;case`natural`:b=Bpe;break;case`step`:b=Hpe;break;case`stepAfter`:b=Wpe;break;case`stepBefore`:b=Upe;break;case`rounded`:b=jf;break;default:b=Rf}let{x,y:S}=Pye(t),C=Mf().x(x).y(S).curve(b),w;switch(t.thickness){case`normal`:w=`edge-thickness-normal`;break;case`thick`:w=`edge-thickness-thick`;break;case`invisible`:w=`edge-thickness-invisible`;break;default:w=`edge-thickness-normal`}switch(t.pattern){case`solid`:w+=` edge-pattern-solid`;break;case`dotted`:w+=` edge-pattern-dotted`;break;case`dashed`:w+=` edge-pattern-dashed`;break;default:w+=` edge-pattern-solid`}let T,E=v===`rounded`?Mye(Nye(_,t),5):C(_),D=Array.isArray(t.style)?t.style:[t.style],O=D.find(e=>e?.startsWith(`stroke:`)),k=``;t.animate&&(k=`edge-animation-fast`),t.animation&&(k=`edge-animation-`+t.animation);let A=!1;if(t.look===`handDrawn`){let n=cg.svg(e);Object.assign([],_);let r=n.path(E,{roughness:.3,seed:l});w+=` transition`,T=Wc(r).select(`path`).attr(`id`,`${o}-${t.id}`).attr(`class`,` `+w+(t.classes?` `+t.classes:``)+(k?` `+k:``)).attr(`style`,D?D.reduce((e,t)=>e+`;`+t,``):``);let i=T.attr(`d`);T.attr(`d`,i),e.node().appendChild(T.node())}else{let n=h.join(`;`),r=D?D.reduce((e,t)=>e+t+`;`,``):``,i=(n?n+`;`+r+`;`:r)+`;`+(D?D.reduce((e,t)=>e+`;`+t,``):``);T=e.append(`path`).attr(`d`,E).attr(`id`,`${o}-${t.id}`).attr(`class`,` `+w+(t.classes?` `+t.classes:``)+(k?` `+k:``)).attr(`style`,i),O=i.match(/stroke:([^;]+)/)?.[1],A=t.animate===!0||!!t.animation||n.includes(`animation`);let a=T.node(),s=typeof a.getTotalLength==`function`?a.getTotalLength():0,l=C_[t.arrowTypeStart]||0,u=C_[t.arrowTypeEnd]||0;if(t.look===`neo`&&!A){let e=`stroke-dasharray: ${t.pattern===`dotted`||t.pattern===`dashed`?L_(s,l,u):`0 ${l} ${s-l-u} ${u}`}; stroke-dashoffset: 0;`;T.attr(`style`,e+T.attr(`style`))}}T.attr(`data-edge`,!0),T.attr(`data-et`,`edge`),T.attr(`data-id`,t.id),T.attr(`data-points`,g),T.attr(`data-look`,gm(t.look)),t.showPoints&&_.forEach(t=>{e.append(`circle`).style(`stroke`,`red`).style(`fill`,`red`).attr(`r`,1).attr(`cx`,t.x).attr(`cy`,t.y)});let j=``;(Z().flowchart.arrowMarkerAbsolute||Z().state.arrowMarkerAbsolute)&&(j=window.location.protocol+`//`+window.location.host+window.location.pathname+window.location.search,j=j.replace(/\(/g,`\\(`).replace(/\)/g,`\\)`)),y.info(`arrowTypeStart`,t.arrowTypeStart),y.info(`arrowTypeEnd`,t.arrowTypeEnd);let M=!A&&t?.look===`neo`;Fye(T,t,j,o,r,M,O);let N=Math.floor(d.length/2),P=d[N];Dm.isLabelCoordinateInPath(P,T.attr(`d`))||(f=!0);let F={};return f&&(F.updatedPath=d),F.originalPath=t.points,F},`insertEdge`),p(Mye,`generateRoundedPath`),p(b_,`calculateDeltaAndAngle`),p(Nye,`applyMarkerOffsetsToPoints`),Vye=p((e,t,n,r)=>{t.forEach(t=>{Hye[t](e,n,r)})},`insertMarkers`),Hye={extension:p((e,t,n)=>{y.trace(`Making markers for `,n),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-extensionStart`).attr(`class`,`marker extension `+t).attr(`refX`,18).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M 1,7 L18,13 V 1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-extensionEnd`).attr(`class`,`marker extension `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 1,1 V 13 L18,7 Z`),e.append(`marker`).attr(`id`,n+`_`+t+`-extensionStart-margin`).attr(`class`,`marker extension `+t).attr(`refX`,18).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).attr(`viewBox`,`0 0 20 14`).append(`polygon`).attr(`points`,`10,7 18,13 18,1`).style(`stroke-width`,2).style(`stroke-dasharray`,`0`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-extensionEnd-margin`).attr(`class`,`marker extension `+t).attr(`refX`,9).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).attr(`viewBox`,`0 0 20 14`).append(`polygon`).attr(`points`,`10,1 10,13 18,7`).style(`stroke-width`,2).style(`stroke-dasharray`,`0`)},`extension`),composition:p((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-compositionStart`).attr(`class`,`marker composition `+t).attr(`refX`,18).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-compositionEnd`).attr(`class`,`marker composition `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-compositionStart-margin`).attr(`class`,`marker composition `+t).attr(`refX`,15).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).style(`stroke-width`,0).attr(`viewBox`,`0 0 15 15`).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-compositionEnd-margin`).attr(`class`,`marker composition `+t).attr(`refX`,3.5).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).style(`stroke-width`,0).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`)},`composition`),aggregation:p((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-aggregationStart`).attr(`class`,`marker aggregation `+t).attr(`refX`,18).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-aggregationEnd`).attr(`class`,`marker aggregation `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-aggregationStart-margin`).attr(`class`,`marker aggregation `+t).attr(`refX`,15).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).style(`stroke-width`,2).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-aggregationEnd-margin`).attr(`class`,`marker aggregation `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).style(`stroke-width`,2).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`)},`aggregation`),dependency:p((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-dependencyStart`).attr(`class`,`marker dependency `+t).attr(`refX`,6).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 5,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-dependencyEnd`).attr(`class`,`marker dependency `+t).attr(`refX`,13).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 18,7 L9,13 L14,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-dependencyStart-margin`).attr(`class`,`marker dependency `+t).attr(`refX`,4).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).style(`stroke-width`,0).attr(`d`,`M 5,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-dependencyEnd-margin`).attr(`class`,`marker dependency `+t).attr(`refX`,16).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).style(`stroke-width`,0).attr(`d`,`M 18,7 L9,13 L14,7 L9,1 Z`)},`dependency`),lollipop:p((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-lollipopStart`).attr(`class`,`marker lollipop `+t).attr(`refX`,13).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).append(`circle`).attr(`fill`,`transparent`).attr(`cx`,7).attr(`cy`,7).attr(`r`,6),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-lollipopEnd`).attr(`class`,`marker lollipop `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).append(`circle`).attr(`fill`,`transparent`).attr(`cx`,7).attr(`cy`,7).attr(`r`,6),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-lollipopStart-margin`).attr(`class`,`marker lollipop `+t).attr(`refX`,13).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`circle`).attr(`fill`,`transparent`).attr(`cx`,7).attr(`cy`,7).attr(`r`,6).attr(`stroke-width`,2),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-lollipopEnd-margin`).attr(`class`,`marker lollipop `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`circle`).attr(`fill`,`transparent`).attr(`cx`,7).attr(`cy`,7).attr(`r`,6).attr(`stroke-width`,2)},`lollipop`),point:p((e,t,n)=>{e.append(`marker`).attr(`id`,n+`_`+t+`-pointEnd`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refX`,5).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,8).attr(`markerHeight`,8).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 0 0 L 10 5 L 0 10 z`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,1).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-pointStart`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refX`,4.5).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,8).attr(`markerHeight`,8).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 0 5 L 10 10 L 10 0 z`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,1).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-pointEnd-margin`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 11.5 14`).attr(`refX`,11.5).attr(`refY`,7).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,10.5).attr(`markerHeight`,14).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 0 0 L 11.5 7 L 0 14 z`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,0).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-pointStart-margin`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 11.5 14`).attr(`refX`,1).attr(`refY`,7).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,11.5).attr(`markerHeight`,14).attr(`orient`,`auto`).append(`polygon`).attr(`points`,`0,7 11.5,14 11.5,0`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,0).style(`stroke-dasharray`,`1,0`)},`point`),circle:p((e,t,n)=>{e.append(`marker`).attr(`id`,n+`_`+t+`-circleEnd`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refX`,11).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,11).attr(`markerHeight`,11).attr(`orient`,`auto`).append(`circle`).attr(`cx`,`5`).attr(`cy`,`5`).attr(`r`,`5`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,1).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-circleStart`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refX`,-1).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,11).attr(`markerHeight`,11).attr(`orient`,`auto`).append(`circle`).attr(`cx`,`5`).attr(`cy`,`5`).attr(`r`,`5`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,1).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-circleEnd-margin`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refY`,5).attr(`refX`,12.25).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,14).attr(`markerHeight`,14).attr(`orient`,`auto`).append(`circle`).attr(`cx`,`5`).attr(`cy`,`5`).attr(`r`,`5`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,0).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-circleStart-margin`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refX`,-2).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,14).attr(`markerHeight`,14).attr(`orient`,`auto`).append(`circle`).attr(`cx`,`5`).attr(`cy`,`5`).attr(`r`,`5`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,0).style(`stroke-dasharray`,`1,0`)},`circle`),cross:p((e,t,n)=>{e.append(`marker`).attr(`id`,n+`_`+t+`-crossEnd`).attr(`class`,`marker cross `+t).attr(`viewBox`,`0 0 11 11`).attr(`refX`,12).attr(`refY`,5.2).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,11).attr(`markerHeight`,11).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 1,1 l 9,9 M 10,1 l -9,9`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,2).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-crossStart`).attr(`class`,`marker cross `+t).attr(`viewBox`,`0 0 11 11`).attr(`refX`,-1).attr(`refY`,5.2).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,11).attr(`markerHeight`,11).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 1,1 l 9,9 M 10,1 l -9,9`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,2).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-crossEnd-margin`).attr(`class`,`marker cross `+t).attr(`viewBox`,`0 0 15 15`).attr(`refX`,17.7).attr(`refY`,7.5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,12).attr(`markerHeight`,12).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 1,1 L 14,14 M 1,14 L 14,1`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,2.5),e.append(`marker`).attr(`id`,n+`_`+t+`-crossStart-margin`).attr(`class`,`marker cross `+t).attr(`viewBox`,`0 0 15 15`).attr(`refX`,-3.5).attr(`refY`,7.5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,12).attr(`markerHeight`,12).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 1,1 L 14,14 M 1,14 L 14,1`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,2.5).style(`stroke-dasharray`,`1,0`)},`cross`),barb:p((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-barbEnd`).attr(`refX`,19).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,14).attr(`markerUnits`,`userSpaceOnUse`).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 19,7 L9,13 L14,7 L9,1 Z`)},`barb`),barbNeo:p((e,t,n)=>{let{themeVariables:r}=ls(),{transitionColor:i}=r;e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-barbEnd`).attr(`refX`,19).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,14).attr(`markerUnits`,`strokeWidth`).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 19,7 L11,14 L13,7 L11,0 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-barbEnd-margin`).attr(`refX`,17).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,14).attr(`markerUnits`,`userSpaceOnUse`).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 19,7 L11,14 L13,7 L11,0 Z`).attr(`fill`,`${i}`)},`barbNeo`),only_one:p((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-onlyOneStart`).attr(`class`,`marker onlyOne `+t).attr(`refX`,0).attr(`refY`,9).attr(`markerWidth`,18).attr(`markerHeight`,18).attr(`orient`,`auto`).append(`path`).attr(`d`,`M9,0 L9,18 M15,0 L15,18`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-onlyOneEnd`).attr(`class`,`marker onlyOne `+t).attr(`refX`,18).attr(`refY`,9).attr(`markerWidth`,18).attr(`markerHeight`,18).attr(`orient`,`auto`).append(`path`).attr(`d`,`M3,0 L3,18 M9,0 L9,18`)},`only_one`),zero_or_one:p((e,t,n)=>{let r=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrOneStart`).attr(`class`,`marker zeroOrOne `+t).attr(`refX`,0).attr(`refY`,9).attr(`markerWidth`,30).attr(`markerHeight`,18).attr(`orient`,`auto`);r.append(`circle`).attr(`fill`,`white`).attr(`cx`,21).attr(`cy`,9).attr(`r`,6),r.append(`path`).attr(`d`,`M9,0 L9,18`);let i=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrOneEnd`).attr(`class`,`marker zeroOrOne `+t).attr(`refX`,30).attr(`refY`,9).attr(`markerWidth`,30).attr(`markerHeight`,18).attr(`orient`,`auto`);i.append(`circle`).attr(`fill`,`white`).attr(`cx`,9).attr(`cy`,9).attr(`r`,6),i.append(`path`).attr(`d`,`M21,0 L21,18`)},`zero_or_one`),one_or_more:p((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-oneOrMoreStart`).attr(`class`,`marker oneOrMore `+t).attr(`refX`,18).attr(`refY`,18).attr(`markerWidth`,45).attr(`markerHeight`,36).attr(`orient`,`auto`).append(`path`).attr(`d`,`M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-oneOrMoreEnd`).attr(`class`,`marker oneOrMore `+t).attr(`refX`,27).attr(`refY`,18).attr(`markerWidth`,45).attr(`markerHeight`,36).attr(`orient`,`auto`).append(`path`).attr(`d`,`M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18`)},`one_or_more`),zero_or_more:p((e,t,n)=>{let r=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrMoreStart`).attr(`class`,`marker zeroOrMore `+t).attr(`refX`,18).attr(`refY`,18).attr(`markerWidth`,57).attr(`markerHeight`,36).attr(`orient`,`auto`);r.append(`circle`).attr(`fill`,`white`).attr(`cx`,48).attr(`cy`,18).attr(`r`,6),r.append(`path`).attr(`d`,`M0,18 Q18,0 36,18 Q18,36 0,18`);let i=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrMoreEnd`).attr(`class`,`marker zeroOrMore `+t).attr(`refX`,39).attr(`refY`,18).attr(`markerWidth`,57).attr(`markerHeight`,36).attr(`orient`,`auto`);i.append(`circle`).attr(`fill`,`white`).attr(`cx`,9).attr(`cy`,18).attr(`r`,6),i.append(`path`).attr(`d`,`M21,18 Q39,0 57,18 Q39,36 21,18`)},`zero_or_more`),only_one_neo:p((e,t,n)=>{let{themeVariables:r}=ls(),{strokeWidth:i}=r;e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-onlyOneStart`).attr(`class`,`marker onlyOne `+t).attr(`refX`,0).attr(`refY`,9).attr(`markerWidth`,18).attr(`markerHeight`,18).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M9,0 L9,18 M15,0 L15,18`).attr(`stroke-width`,`${i}`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-onlyOneEnd`).attr(`class`,`marker onlyOne `+t).attr(`refX`,18).attr(`refY`,9).attr(`markerWidth`,18).attr(`markerHeight`,18).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M3,0 L3,18 M9,0 L9,18`).attr(`stroke-width`,`${i}`)},`only_one_neo`),zero_or_one_neo:p((e,t,n)=>{let{themeVariables:r}=ls(),{strokeWidth:i,mainBkg:a}=r,o=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrOneStart`).attr(`class`,`marker zeroOrOne `+t).attr(`refX`,0).attr(`refY`,9).attr(`markerWidth`,30).attr(`markerHeight`,18).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`);o.append(`circle`).attr(`fill`,a??`white`).attr(`cx`,21).attr(`cy`,9).attr(`stroke-width`,`${i}`).attr(`r`,6),o.append(`path`).attr(`d`,`M9,0 L9,18`).attr(`stroke-width`,`${i}`);let s=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrOneEnd`).attr(`class`,`marker zeroOrOne `+t).attr(`refX`,30).attr(`refY`,9).attr(`markerWidth`,30).attr(`markerHeight`,18).attr(`markerUnits`,`userSpaceOnUse`).attr(`orient`,`auto`);s.append(`circle`).attr(`fill`,a??`white`).attr(`cx`,9).attr(`cy`,9).attr(`stroke-width`,`${i}`).attr(`r`,6),s.append(`path`).attr(`d`,`M21,0 L21,18`).attr(`stroke-width`,`${i}`)},`zero_or_one_neo`),one_or_more_neo:p((e,t,n)=>{let{themeVariables:r}=ls(),{strokeWidth:i}=r;e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-oneOrMoreStart`).attr(`class`,`marker oneOrMore `+t).attr(`refX`,18).attr(`refY`,18).attr(`markerWidth`,45).attr(`markerHeight`,36).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27`).attr(`stroke-width`,`${i}`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-oneOrMoreEnd`).attr(`class`,`marker oneOrMore `+t).attr(`refX`,27).attr(`refY`,18).attr(`markerWidth`,45).attr(`markerHeight`,36).attr(`markerUnits`,`userSpaceOnUse`).attr(`orient`,`auto`).append(`path`).attr(`d`,`M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18`).attr(`stroke-width`,`${i}`)},`one_or_more_neo`),zero_or_more_neo:p((e,t,n)=>{let{themeVariables:r}=ls(),{strokeWidth:i,mainBkg:a}=r,o=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrMoreStart`).attr(`class`,`marker zeroOrMore `+t).attr(`refX`,18).attr(`refY`,18).attr(`markerWidth`,57).attr(`markerHeight`,36).attr(`markerUnits`,`userSpaceOnUse`).attr(`orient`,`auto`);o.append(`circle`).attr(`fill`,a??`white`).attr(`cx`,45.5).attr(`cy`,18).attr(`r`,6).attr(`stroke-width`,`${i}`),o.append(`path`).attr(`d`,`M0,18 Q18,0 36,18 Q18,36 0,18`).attr(`stroke-width`,`${i}`);let s=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrMoreEnd`).attr(`class`,`marker zeroOrMore `+t).attr(`refX`,39).attr(`refY`,18).attr(`markerWidth`,57).attr(`markerHeight`,36).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`);s.append(`circle`).attr(`fill`,a??`white`).attr(`cx`,11).attr(`cy`,18).attr(`r`,6).attr(`stroke-width`,`${i}`),s.append(`path`).attr(`d`,`M21,18 Q39,0 57,18 Q39,36 21,18`).attr(`stroke-width`,`${i}`)},`zero_or_more_neo`),requirement_arrow:p((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-requirement_arrowEnd`).attr(`refX`,20).attr(`refY`,10).attr(`markerWidth`,20).attr(`markerHeight`,20).attr(`orient`,`auto`).append(`path`).attr(`d`,`M0,0
519
+ node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);let r=e.x,i=e.y,a=Math.abs(r-n.x),o=e.width/2,s=n.x<t.x?o-a:o+a,l=e.height/2,u=Math.abs(t.y-n.y),d=Math.abs(t.x-n.x);if(Math.abs(i-t.y)*o>Math.abs(r-t.x)*l){let e=n.y<t.y?t.y-l-i:i-l-t.y;s=d*e/u;let r={x:n.x<t.x?n.x+s:n.x-d+s,y:n.y<t.y?n.y+u-e:n.y-u+e};return s===0&&(r.x=t.x,r.y=t.y),d===0&&(r.x=t.x),u===0&&(r.y=t.y),y.debug(`abc89 top/bottom calc, Q ${u}, q ${e}, R ${d}, r ${s}`,r),r}{s=n.x<t.x?t.x-o-r:r-o-t.x;let e=u*s/d,i=n.x<t.x?n.x+d-s:n.x-d+s,a=n.y<t.y?n.y+e:n.y-e;return y.debug(`sides calc abc89, Q ${u}, q ${e}, R ${d}, r ${s}`,{_x:i,_y:a}),s===0&&(i=t.x,a=t.y),d===0&&(i=t.x),u===0&&(a=t.y),{x:i,y:a}}},`intersection`),P_=p((e,t)=>{y.warn(`abc88 cutPathAtIntersect`,e,t);let n=[],r=e[0],i=!1;return e.forEach(e=>{if(y.info(`abc88 checking point`,e,t),!M_(t,e)&&!i){let a=N_(t,r,e);y.debug(`abc88 inside`,e,r,a),y.debug(`abc88 intersection`,a,t);let o=!1;n.forEach(e=>{o||=e.x===a.x&&e.y===a.y}),n.some(e=>e.x===a.x&&e.y===a.y)?y.warn(`abc88 no intersect`,a,n):n.push(a),i=!0}else y.warn(`abc88 outside`,e,r),r=e,i||n.push(e)}),y.debug(`returning points`,n),n},`cutPathAtIntersect`),p(jye,`extractCornerPoints`),F_=p(function(e,t,n){let r=t.x-e.x,i=t.y-e.y,a=n/Math.sqrt(r*r+i*i);return{x:t.x-a*r,y:t.y-a*i}},`findAdjacentPoint`),I_=p(function(e){let{cornerPointPositions:t}=jye(e),n=[];for(let r=0;r<e.length;r++)if(t.includes(r)){let t=e[r-1],i=e[r+1],a=e[r],o=F_(t,a,5),s=F_(i,a,5),l=s.x-o.x,u=s.y-o.y;n.push(o);let d=Math.sqrt(2)*2,f={x:a.x,y:a.y};Math.abs(i.x-t.x)>10&&Math.abs(i.y-t.y)>=10?(y.debug(`Corner point fixing`,Math.abs(i.x-t.x),Math.abs(i.y-t.y)),f=a.x===o.x?{x:l<0?o.x-5+d:o.x+5-d,y:u<0?o.y-d:o.y+d}:{x:l<0?o.x-d:o.x+d,y:u<0?o.y-5+d:o.y+5-d}):y.debug(`Corner point skipping fixing`,Math.abs(i.x-t.x),Math.abs(i.y-t.y)),n.push(f,s)}else n.push(e[r]);return n},`fixCorners`),L_=p((e,t,n)=>{let r=e-t-n,i=Math.floor(r/4);return`0 ${t} ${Array(Number.isFinite(i)?Math.max(0,i):0).fill(`2 2`).join(` `)} ${n}`},`generateDashArray`),R_=p(function(e,t,n,r,i,a,o,s=!1){if(!o)throw Error(`insertEdge: missing diagramId for edge "${t.id}" \u2014 edge IDs require a diagram prefix for uniqueness`);let{handDrawnSeed:l,layout:u}=Z(),d=t.points,f=!1,p=i;var m=a;let h=[];for(let e in t.cssCompiledStyles)rp(e)||h.push(t.cssCompiledStyles[e]);if(u===`swimlane`){if(m.intersect&&p.intersect&&Array.isArray(d)&&d.length>=2){if(d.length===2)d=[p.intersect(d[0]),m.intersect(d[1])];else{let e=d.slice(1,-1),t=e[0],n=e[e.length-1],r=.5,i=Math.abs(d[d.length-1].x-n.x)<r&&Math.abs(d[d.length-1].y-n.y)<r,a=p.intersect(t),o=i?n:m.intersect(n),s=Math.abs(o.x-n.x)<r&&Math.abs(o.y-n.y)<r,l=Math.abs(a.x-t.x)<r&&Math.abs(a.y-t.y)<r?[]:[a],u=s?[]:[o];d=[...l,...e,...u]}}d=Bye(t,d)}else m.intersect&&p.intersect&&!s&&(d=d.slice(1,t.points.length-1),d.unshift(p.intersect(d[0])),d.push(m.intersect(d[d.length-1])));let g=btoa(JSON.stringify(d));t.toCluster&&(y.info(`to cluster abc88`,n.get(t.toCluster)),d=P_(t.points,n.get(t.toCluster).node),f=!0),t.fromCluster&&(y.debug(`from cluster abc88`,n.get(t.fromCluster),JSON.stringify(d,null,2)),d=P_(d.reverse(),n.get(t.fromCluster).node).reverse(),f=!0);let _=d.filter(e=>!Number.isNaN(e.y)),v=Rye(t.curve);v!==`rounded`&&(_=I_(_));let b=jf;switch(v){case`linear`:b=jf;break;case`basis`:b=Rf;break;case`cardinal`:b=Hf;break;case`bumpX`:b=ipe;break;case`bumpY`:b=ape;break;case`catmullRom`:b=qf;break;case`monotoneX`:b=Fpe;break;case`monotoneY`:b=Ipe;break;case`natural`:b=Bpe;break;case`step`:b=Hpe;break;case`stepAfter`:b=Wpe;break;case`stepBefore`:b=Upe;break;case`rounded`:b=jf;break;default:b=Rf}let{x,y:S}=Pye(t),C=Mf().x(x).y(S).curve(b),w;switch(t.thickness){case`normal`:w=`edge-thickness-normal`;break;case`thick`:w=`edge-thickness-thick`;break;case`invisible`:w=`edge-thickness-invisible`;break;default:w=`edge-thickness-normal`}switch(t.pattern){case`solid`:w+=` edge-pattern-solid`;break;case`dotted`:w+=` edge-pattern-dotted`;break;case`dashed`:w+=` edge-pattern-dashed`;break;default:w+=` edge-pattern-solid`}let T,E=v===`rounded`?Mye(Nye(_,t),5):C(_),D=Array.isArray(t.style)?t.style:[t.style],O=D.find(e=>e?.startsWith(`stroke:`)),k=``;t.animate&&(k=`edge-animation-fast`),t.animation&&(k=`edge-animation-`+t.animation);let A=!1;if(t.look===`handDrawn`){let n=cg.svg(e);Object.assign([],_);let r=n.path(E,{roughness:.3,seed:l});w+=` transition`,T=Wc(r).select(`path`).attr(`id`,`${o}-${t.id}`).attr(`class`,` `+w+(t.classes?` `+t.classes:``)+(k?` `+k:``)).attr(`style`,D?D.reduce((e,t)=>e+`;`+t,``):``);let i=T.attr(`d`);T.attr(`d`,i),e.node().appendChild(T.node())}else{let n=h.join(`;`),r=D?D.reduce((e,t)=>e+t+`;`,``):``,i=(n?n+`;`+r+`;`:r)+`;`+(D?D.reduce((e,t)=>e+`;`+t,``):``);T=e.append(`path`).attr(`d`,E).attr(`id`,`${o}-${t.id}`).attr(`class`,` `+w+(t.classes?` `+t.classes:``)+(k?` `+k:``)).attr(`style`,i),O=i.match(/stroke:([^;]+)/)?.[1],A=t.animate===!0||!!t.animation||n.includes(`animation`);let a=T.node(),s=typeof a.getTotalLength==`function`?a.getTotalLength():0,l=C_[t.arrowTypeStart]||0,u=C_[t.arrowTypeEnd]||0;if(t.look===`neo`&&!A){let e=`stroke-dasharray: ${t.pattern===`dotted`||t.pattern===`dashed`?L_(s,l,u):`0 ${l} ${s-l-u} ${u}`}; stroke-dashoffset: 0;`;T.attr(`style`,e+T.attr(`style`))}}T.attr(`data-edge`,!0),T.attr(`data-et`,`edge`),T.attr(`data-id`,t.id),T.attr(`data-points`,g),T.attr(`data-look`,gm(t.look)),t.showPoints&&_.forEach(t=>{e.append(`circle`).style(`stroke`,`red`).style(`fill`,`red`).attr(`r`,1).attr(`cx`,t.x).attr(`cy`,t.y)});let j=``;(Z().flowchart.arrowMarkerAbsolute||Z().state.arrowMarkerAbsolute)&&(j=window.location.protocol+`//`+window.location.host+window.location.pathname+window.location.search,j=j.replace(/\(/g,`\\(`).replace(/\)/g,`\\)`)),y.info(`arrowTypeStart`,t.arrowTypeStart),y.info(`arrowTypeEnd`,t.arrowTypeEnd);let M=!A&&t?.look===`neo`;Fye(T,t,j,o,r,M,O);let N=Math.floor(d.length/2),P=d[N];Dm.isLabelCoordinateInPath(P,T.attr(`d`))||(f=!0);let F={};return f&&(F.updatedPath=d),F.originalPath=t.points,F},`insertEdge`),p(Mye,`generateRoundedPath`),p(b_,`calculateDeltaAndAngle`),p(Nye,`applyMarkerOffsetsToPoints`),Vye=p((e,t,n,r)=>{t.forEach(t=>{Hye[t](e,n,r)})},`insertMarkers`),Hye={extension:p((e,t,n)=>{y.trace(`Making markers for `,n),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-extensionStart`).attr(`class`,`marker extension `+t).attr(`refX`,18).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M 1,7 L18,13 V 1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-extensionEnd`).attr(`class`,`marker extension `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M 1,1 V 13 L18,7 Z`),e.append(`marker`).attr(`id`,n+`_`+t+`-extensionStart-margin`).attr(`class`,`marker extension `+t).attr(`refX`,18).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).attr(`viewBox`,`0 0 20 14`).append(`polygon`).attr(`points`,`10,7 18,13 18,1`).style(`stroke-width`,2).style(`stroke-dasharray`,`0`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-extensionEnd-margin`).attr(`class`,`marker extension `+t).attr(`refX`,9).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).attr(`viewBox`,`0 0 20 14`).append(`polygon`).attr(`points`,`10,1 10,13 18,7`).style(`stroke-width`,2).style(`stroke-dasharray`,`0`)},`extension`),composition:p((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-compositionStart`).attr(`class`,`marker composition `+t).attr(`refX`,18).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-compositionEnd`).attr(`class`,`marker composition `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-compositionStart-margin`).attr(`class`,`marker composition `+t).attr(`refX`,15).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).style(`stroke-width`,0).attr(`viewBox`,`0 0 15 15`).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-compositionEnd-margin`).attr(`class`,`marker composition `+t).attr(`refX`,3.5).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).style(`stroke-width`,0).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`)},`composition`),aggregation:p((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-aggregationStart`).attr(`class`,`marker aggregation `+t).attr(`refX`,18).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-aggregationEnd`).attr(`class`,`marker aggregation `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-aggregationStart-margin`).attr(`class`,`marker aggregation `+t).attr(`refX`,15).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).style(`stroke-width`,2).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-aggregationEnd-margin`).attr(`class`,`marker aggregation `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).style(`stroke-width`,2).attr(`d`,`M 18,7 L9,13 L1,7 L9,1 Z`)},`aggregation`),dependency:p((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-dependencyStart`).attr(`class`,`marker dependency `+t).attr(`refX`,6).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M 5,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-dependencyEnd`).attr(`class`,`marker dependency `+t).attr(`refX`,13).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M 18,7 L9,13 L14,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-dependencyStart-margin`).attr(`class`,`marker dependency `+t).attr(`refX`,4).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).style(`stroke-width`,0).attr(`d`,`M 5,7 L9,13 L1,7 L9,1 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-dependencyEnd-margin`).attr(`class`,`marker dependency `+t).attr(`refX`,16).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,28).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).style(`stroke-width`,0).attr(`d`,`M 18,7 L9,13 L14,7 L9,1 Z`)},`dependency`),lollipop:p((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-lollipopStart`).attr(`class`,`marker lollipop `+t).attr(`refX`,13).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`circle`).attr(`fill`,`transparent`).attr(`cx`,7).attr(`cy`,7).attr(`r`,6),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-lollipopEnd`).attr(`class`,`marker lollipop `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`circle`).attr(`fill`,`transparent`).attr(`cx`,7).attr(`cy`,7).attr(`r`,6),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-lollipopStart-margin`).attr(`class`,`marker lollipop `+t).attr(`refX`,13).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`circle`).attr(`fill`,`transparent`).attr(`cx`,7).attr(`cy`,7).attr(`r`,6).attr(`stroke-width`,2),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-lollipopEnd-margin`).attr(`class`,`marker lollipop `+t).attr(`refX`,1).attr(`refY`,7).attr(`markerWidth`,190).attr(`markerHeight`,240).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`circle`).attr(`fill`,`transparent`).attr(`cx`,7).attr(`cy`,7).attr(`r`,6).attr(`stroke-width`,2)},`lollipop`),point:p((e,t,n)=>{e.append(`marker`).attr(`id`,n+`_`+t+`-pointEnd`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refX`,5).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,8).attr(`markerHeight`,8).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 0 0 L 10 5 L 0 10 z`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,1).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-pointStart`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refX`,4.5).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,8).attr(`markerHeight`,8).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 0 5 L 10 10 L 10 0 z`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,1).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-pointEnd-margin`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 11.5 14`).attr(`refX`,11.5).attr(`refY`,7).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,10.5).attr(`markerHeight`,14).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 0 0 L 11.5 7 L 0 14 z`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,0).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-pointStart-margin`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 11.5 14`).attr(`refX`,1).attr(`refY`,7).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,11.5).attr(`markerHeight`,14).attr(`orient`,`auto`).append(`polygon`).attr(`points`,`0,7 11.5,14 11.5,0`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,0).style(`stroke-dasharray`,`1,0`)},`point`),circle:p((e,t,n)=>{e.append(`marker`).attr(`id`,n+`_`+t+`-circleEnd`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refX`,11).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,11).attr(`markerHeight`,11).attr(`orient`,`auto`).append(`circle`).attr(`cx`,`5`).attr(`cy`,`5`).attr(`r`,`5`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,1).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-circleStart`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refX`,-1).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,11).attr(`markerHeight`,11).attr(`orient`,`auto`).append(`circle`).attr(`cx`,`5`).attr(`cy`,`5`).attr(`r`,`5`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,1).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-circleEnd-margin`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refY`,5).attr(`refX`,12.25).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,14).attr(`markerHeight`,14).attr(`orient`,`auto`).append(`circle`).attr(`cx`,`5`).attr(`cy`,`5`).attr(`r`,`5`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,0).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-circleStart-margin`).attr(`class`,`marker `+t).attr(`viewBox`,`0 0 10 10`).attr(`refX`,-2).attr(`refY`,5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,14).attr(`markerHeight`,14).attr(`orient`,`auto`).append(`circle`).attr(`cx`,`5`).attr(`cy`,`5`).attr(`r`,`5`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,0).style(`stroke-dasharray`,`1,0`)},`circle`),cross:p((e,t,n)=>{e.append(`marker`).attr(`id`,n+`_`+t+`-crossEnd`).attr(`class`,`marker cross `+t).attr(`viewBox`,`0 0 11 11`).attr(`refX`,12).attr(`refY`,5.2).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,11).attr(`markerHeight`,11).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 1,1 l 9,9 M 10,1 l -9,9`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,2).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-crossStart`).attr(`class`,`marker cross `+t).attr(`viewBox`,`0 0 11 11`).attr(`refX`,-1).attr(`refY`,5.2).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,11).attr(`markerHeight`,11).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 1,1 l 9,9 M 10,1 l -9,9`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,2).style(`stroke-dasharray`,`1,0`),e.append(`marker`).attr(`id`,n+`_`+t+`-crossEnd-margin`).attr(`class`,`marker cross `+t).attr(`viewBox`,`0 0 15 15`).attr(`refX`,17.7).attr(`refY`,7.5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,12).attr(`markerHeight`,12).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 1,1 L 14,14 M 1,14 L 14,1`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,2.5),e.append(`marker`).attr(`id`,n+`_`+t+`-crossStart-margin`).attr(`class`,`marker cross `+t).attr(`viewBox`,`0 0 15 15`).attr(`refX`,-3.5).attr(`refY`,7.5).attr(`markerUnits`,`userSpaceOnUse`).attr(`markerWidth`,12).attr(`markerHeight`,12).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 1,1 L 14,14 M 1,14 L 14,1`).attr(`class`,`arrowMarkerPath`).style(`stroke-width`,2.5).style(`stroke-dasharray`,`1,0`)},`cross`),barb:p((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-barbEnd`).attr(`refX`,19).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,14).attr(`markerUnits`,`userSpaceOnUse`).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 19,7 L9,13 L14,7 L9,1 Z`)},`barb`),barbNeo:p((e,t,n)=>{let{themeVariables:r}=ls(),{transitionColor:i}=r;e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-barbEnd`).attr(`refX`,19).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,14).attr(`markerUnits`,`strokeWidth`).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 19,7 L11,14 L13,7 L11,0 Z`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-barbEnd-margin`).attr(`refX`,17).attr(`refY`,7).attr(`markerWidth`,20).attr(`markerHeight`,14).attr(`markerUnits`,`userSpaceOnUse`).attr(`orient`,`auto`).append(`path`).attr(`d`,`M 19,7 L11,14 L13,7 L11,0 Z`).attr(`fill`,`${i}`)},`barbNeo`),only_one:p((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-onlyOneStart`).attr(`class`,`marker onlyOne `+t).attr(`refX`,0).attr(`refY`,9).attr(`markerWidth`,18).attr(`markerHeight`,18).attr(`orient`,`auto`).append(`path`).attr(`d`,`M9,0 L9,18 M15,0 L15,18`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-onlyOneEnd`).attr(`class`,`marker onlyOne `+t).attr(`refX`,18).attr(`refY`,9).attr(`markerWidth`,18).attr(`markerHeight`,18).attr(`orient`,`auto`).append(`path`).attr(`d`,`M3,0 L3,18 M9,0 L9,18`)},`only_one`),zero_or_one:p((e,t,n)=>{let r=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrOneStart`).attr(`class`,`marker zeroOrOne `+t).attr(`refX`,0).attr(`refY`,9).attr(`markerWidth`,30).attr(`markerHeight`,18).attr(`orient`,`auto`);r.append(`circle`).attr(`fill`,`white`).attr(`cx`,21).attr(`cy`,9).attr(`r`,6),r.append(`path`).attr(`d`,`M9,0 L9,18`);let i=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrOneEnd`).attr(`class`,`marker zeroOrOne `+t).attr(`refX`,30).attr(`refY`,9).attr(`markerWidth`,30).attr(`markerHeight`,18).attr(`orient`,`auto`);i.append(`circle`).attr(`fill`,`white`).attr(`cx`,9).attr(`cy`,9).attr(`r`,6),i.append(`path`).attr(`d`,`M21,0 L21,18`)},`zero_or_one`),one_or_more:p((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-oneOrMoreStart`).attr(`class`,`marker oneOrMore `+t).attr(`refX`,18).attr(`refY`,18).attr(`markerWidth`,45).attr(`markerHeight`,36).attr(`orient`,`auto`).append(`path`).attr(`d`,`M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-oneOrMoreEnd`).attr(`class`,`marker oneOrMore `+t).attr(`refX`,27).attr(`refY`,18).attr(`markerWidth`,45).attr(`markerHeight`,36).attr(`orient`,`auto`).append(`path`).attr(`d`,`M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18`)},`one_or_more`),zero_or_more:p((e,t,n)=>{let r=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrMoreStart`).attr(`class`,`marker zeroOrMore `+t).attr(`refX`,18).attr(`refY`,18).attr(`markerWidth`,57).attr(`markerHeight`,36).attr(`orient`,`auto`);r.append(`circle`).attr(`fill`,`white`).attr(`cx`,48).attr(`cy`,18).attr(`r`,6),r.append(`path`).attr(`d`,`M0,18 Q18,0 36,18 Q18,36 0,18`);let i=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrMoreEnd`).attr(`class`,`marker zeroOrMore `+t).attr(`refX`,39).attr(`refY`,18).attr(`markerWidth`,57).attr(`markerHeight`,36).attr(`orient`,`auto`);i.append(`circle`).attr(`fill`,`white`).attr(`cx`,9).attr(`cy`,18).attr(`r`,6),i.append(`path`).attr(`d`,`M21,18 Q39,0 57,18 Q39,36 21,18`)},`zero_or_more`),only_one_neo:p((e,t,n)=>{let{themeVariables:r}=ls(),{strokeWidth:i}=r;e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-onlyOneStart`).attr(`class`,`marker onlyOne `+t).attr(`refX`,0).attr(`refY`,9).attr(`markerWidth`,18).attr(`markerHeight`,18).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M9,0 L9,18 M15,0 L15,18`).attr(`stroke-width`,`${i}`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-onlyOneEnd`).attr(`class`,`marker onlyOne `+t).attr(`refX`,18).attr(`refY`,9).attr(`markerWidth`,18).attr(`markerHeight`,18).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M3,0 L3,18 M9,0 L9,18`).attr(`stroke-width`,`${i}`)},`only_one_neo`),zero_or_one_neo:p((e,t,n)=>{let{themeVariables:r}=ls(),{strokeWidth:i,mainBkg:a}=r,o=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrOneStart`).attr(`class`,`marker zeroOrOne `+t).attr(`refX`,0).attr(`refY`,9).attr(`markerWidth`,30).attr(`markerHeight`,18).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`);o.append(`circle`).attr(`fill`,a??`white`).attr(`cx`,21).attr(`cy`,9).attr(`stroke-width`,`${i}`).attr(`r`,6),o.append(`path`).attr(`d`,`M9,0 L9,18`).attr(`stroke-width`,`${i}`);let s=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrOneEnd`).attr(`class`,`marker zeroOrOne `+t).attr(`refX`,30).attr(`refY`,9).attr(`markerWidth`,30).attr(`markerHeight`,18).attr(`markerUnits`,`userSpaceOnUse`).attr(`orient`,`auto`);s.append(`circle`).attr(`fill`,a??`white`).attr(`cx`,9).attr(`cy`,9).attr(`stroke-width`,`${i}`).attr(`r`,6),s.append(`path`).attr(`d`,`M21,0 L21,18`).attr(`stroke-width`,`${i}`)},`zero_or_one_neo`),one_or_more_neo:p((e,t,n)=>{let{themeVariables:r}=ls(),{strokeWidth:i}=r;e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-oneOrMoreStart`).attr(`class`,`marker oneOrMore `+t).attr(`refX`,18).attr(`refY`,18).attr(`markerWidth`,45).attr(`markerHeight`,36).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`path`).attr(`d`,`M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27`).attr(`stroke-width`,`${i}`),e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-oneOrMoreEnd`).attr(`class`,`marker oneOrMore `+t).attr(`refX`,27).attr(`refY`,18).attr(`markerWidth`,45).attr(`markerHeight`,36).attr(`markerUnits`,`userSpaceOnUse`).attr(`orient`,`auto`).append(`path`).attr(`d`,`M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18`).attr(`stroke-width`,`${i}`)},`one_or_more_neo`),zero_or_more_neo:p((e,t,n)=>{let{themeVariables:r}=ls(),{strokeWidth:i,mainBkg:a}=r,o=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrMoreStart`).attr(`class`,`marker zeroOrMore `+t).attr(`refX`,18).attr(`refY`,18).attr(`markerWidth`,57).attr(`markerHeight`,36).attr(`markerUnits`,`userSpaceOnUse`).attr(`orient`,`auto`);o.append(`circle`).attr(`fill`,a??`white`).attr(`cx`,45.5).attr(`cy`,18).attr(`r`,6).attr(`stroke-width`,`${i}`),o.append(`path`).attr(`d`,`M0,18 Q18,0 36,18 Q18,36 0,18`).attr(`stroke-width`,`${i}`);let s=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-zeroOrMoreEnd`).attr(`class`,`marker zeroOrMore `+t).attr(`refX`,39).attr(`refY`,18).attr(`markerWidth`,57).attr(`markerHeight`,36).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`);s.append(`circle`).attr(`fill`,a??`white`).attr(`cx`,11).attr(`cy`,18).attr(`r`,6).attr(`stroke-width`,`${i}`),s.append(`path`).attr(`d`,`M21,18 Q39,0 57,18 Q39,36 21,18`).attr(`stroke-width`,`${i}`)},`zero_or_more_neo`),requirement_arrow:p((e,t,n)=>{e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-requirement_arrowEnd`).attr(`refX`,20).attr(`refY`,10).attr(`markerWidth`,20).attr(`markerHeight`,20).attr(`orient`,`auto`).append(`path`).attr(`d`,`M0,0
520
520
  L20,10
521
521
  M20,10
522
522
  L0,20`)},`requirement_arrow`),requirement_contains:p((e,t,n)=>{let r=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-requirement_containsStart`).attr(`refX`,0).attr(`refY`,10).attr(`markerWidth`,20).attr(`markerHeight`,20).attr(`orient`,`auto`).append(`g`);r.append(`circle`).attr(`cx`,10).attr(`cy`,10).attr(`r`,9).attr(`fill`,`none`),r.append(`line`).attr(`x1`,1).attr(`x2`,19).attr(`y1`,10).attr(`y2`,10),r.append(`line`).attr(`y1`,1).attr(`y2`,19).attr(`x1`,10).attr(`x2`,10)},`requirement_contains`),requirement_arrow_neo:p((e,t,n)=>{let{themeVariables:r}=ls(),{strokeWidth:i}=r;e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-requirement_arrowEnd`).attr(`refX`,20).attr(`refY`,10).attr(`markerWidth`,20).attr(`markerHeight`,20).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).attr(`stroke-width`,`${i}`).attr(`viewBox`,`0 0 25 20`).append(`path`).attr(`d`,`M0,0
523
523
  L20,10
524
524
  M20,10
525
- L0,20`).attr(`stroke-linejoin`,`miter`)},`requirement_arrow_neo`),requirement_contains_neo:p((e,t,n)=>{let{themeVariables:r}=ls(),{strokeWidth:i}=r,a=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-requirement_containsStart`).attr(`refX`,0).attr(`refY`,10).attr(`markerWidth`,20).attr(`markerHeight`,20).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`g`);a.append(`circle`).attr(`cx`,10).attr(`cy`,10).attr(`r`,9).attr(`fill`,`none`),a.append(`line`).attr(`x1`,1).attr(`x2`,19).attr(`y1`,10).attr(`y2`,10),a.append(`line`).attr(`y1`,1).attr(`y2`,19).attr(`x1`,10).attr(`x2`,10),a.selectAll(`*`).attr(`stroke-width`,`${i}`)},`requirement_contains_neo`)},z_=Vye})),V_,Uye=o((()=>{V_=typeof global==`object`&&global&&global.Object===Object&&global})),Wye,H_,U_=o((()=>{Uye(),Wye=typeof self==`object`&&self&&self.Object===Object&&self,H_=V_||Wye||Function(`return this`)()})),W_,G_=o((()=>{U_(),W_=H_.Symbol}));function Gye(e){var t=Kye.call(e,q_),n=e[q_];try{e[q_]=void 0;var r=!0}catch{}var i=qye.call(e);return r&&(t?e[q_]=n:delete e[q_]),i}var K_,Kye,qye,q_,Jye=o((()=>{G_(),K_=Object.prototype,Kye=K_.hasOwnProperty,qye=K_.toString,q_=W_?W_.toStringTag:void 0}));function Yye(e){return Xye.call(e)}var Xye,Zye=o((()=>{Xye=Object.prototype.toString}));function J_(e){return e==null?e===void 0?$ye:Qye:Y_&&Y_ in Object(e)?Gye(e):Yye(e)}var Qye,$ye,Y_,X_=o((()=>{G_(),Jye(),Zye(),Qye=`[object Null]`,$ye=`[object Undefined]`,Y_=W_?W_.toStringTag:void 0}));function Z_(e){return typeof e==`object`&&!!e}var Q_=o((()=>{}));function $_(e){return typeof e==`symbol`||Z_(e)&&J_(e)==ebe}var ebe,ev=o((()=>{X_(),Q_(),ebe=`[object Symbol]`}));function tv(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var nv=o((()=>{})),rv,iv=o((()=>{rv=Array.isArray}));function tbe(e){if(typeof e==`string`)return e;if(rv(e))return tv(e,tbe)+``;if($_(e))return ov?ov.call(e):``;var t=e+``;return t==`0`&&1/e==-nbe?`-0`:t}var nbe,av,ov,rbe=o((()=>{G_(),nv(),iv(),ev(),nbe=1/0,av=W_?W_.prototype:void 0,ov=av?av.toString:void 0}));function ibe(e){for(var t=e.length;t--&&abe.test(e.charAt(t)););return t}var abe,obe=o((()=>{abe=/\s/}));function sbe(e){return e&&e.slice(0,ibe(e)+1).replace(cbe,``)}var cbe,lbe=o((()=>{obe(),cbe=/^\s+/}));function sv(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}var cv=o((()=>{}));function ube(e){if(typeof e==`number`)return e;if($_(e))return lv;if(sv(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=sv(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=sbe(e);var n=fbe.test(e);return n||pbe.test(e)?mbe(e.slice(2),n?2:8):dbe.test(e)?lv:+e}var lv,dbe,fbe,pbe,mbe,hbe=o((()=>{lbe(),cv(),ev(),lv=NaN,dbe=/^[-+]0x[0-9a-f]+$/i,fbe=/^0b[01]+$/i,pbe=/^0o[0-7]+$/i,mbe=parseInt}));function uv(e){return e?(e=ube(e),e===dv||e===-dv?(e<0?-1:1)*gbe:e===e?e:0):e===0?e:0}var dv,gbe,fv=o((()=>{hbe(),dv=1/0,gbe=17976931348623157e292}));function _be(e){var t=uv(e),n=t%1;return t===t?n?t-n:t:0}var vbe=o((()=>{fv()}));function pv(e){return e}var mv=o((()=>{}));function hv(e){if(!sv(e))return!1;var t=J_(e);return t==bbe||t==xbe||t==ybe||t==Sbe}var ybe,bbe,xbe,Sbe,gv=o((()=>{X_(),cv(),ybe=`[object AsyncFunction]`,bbe=`[object Function]`,xbe=`[object GeneratorFunction]`,Sbe=`[object Proxy]`})),_v,Cbe=o((()=>{U_(),_v=H_[`__core-js_shared__`]}));function wbe(e){return!!vv&&vv in e}var vv,Tbe=o((()=>{Cbe(),vv=function(){var e=/[^.]+$/.exec(_v&&_v.keys&&_v.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}()}));function yv(e){if(e!=null){try{return Ebe.call(e)}catch{}try{return e+``}catch{}}return``}var Ebe,Dbe=o((()=>{Ebe=Function.prototype.toString}));function Obe(e){return!sv(e)||wbe(e)?!1:(hv(e)?Fbe:Abe).test(yv(e))}var kbe,Abe,jbe,Mbe,Nbe,Pbe,Fbe,Ibe=o((()=>{gv(),Tbe(),cv(),Dbe(),kbe=/[\\^$.*+?()[\]{}|]/g,Abe=/^\[object .+?Constructor\]$/,jbe=Function.prototype,Mbe=Object.prototype,Nbe=jbe.toString,Pbe=Mbe.hasOwnProperty,Fbe=RegExp(`^`+Nbe.call(Pbe).replace(kbe,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`)}));function Lbe(e,t){return e?.[t]}var Rbe=o((()=>{}));function bv(e,t){var n=Lbe(e,t);return Obe(n)?n:void 0}var xv=o((()=>{Ibe(),Rbe()})),Sv,zbe=o((()=>{xv(),U_(),Sv=bv(H_,`WeakMap`)})),Cv,Bbe,Vbe=o((()=>{cv(),Cv=Object.create,Bbe=function(){function e(){}return function(t){if(!sv(t))return{};if(Cv)return Cv(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}()}));function Hbe(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var Ube=o((()=>{}));function Wbe(){}var Gbe=o((()=>{}));function Kbe(e,t){var n=-1,r=e.length;for(t||=Array(r);++n<r;)t[n]=e[n];return t}var wv=o((()=>{}));function qbe(e){var t=0,n=0;return function(){var r=Xbe(),i=Ybe-(r-n);if(n=r,i>0){if(++t>=Jbe)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Jbe,Ybe,Xbe,Zbe=o((()=>{Jbe=800,Ybe=16,Xbe=Date.now}));function Tv(e){return function(){return e}}var Qbe=o((()=>{})),Ev,$be=o((()=>{xv(),Ev=function(){try{var e=bv(Object,`defineProperty`);return e({},``,{}),e}catch{}}()})),exe,txe=o((()=>{Qbe(),$be(),mv(),exe=Ev?function(e,t){return Ev(e,`toString`,{configurable:!0,enumerable:!1,value:Tv(t),writable:!0})}:pv})),Dv,Ov=o((()=>{txe(),Zbe(),Dv=qbe(exe)}));function nxe(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var kv=o((()=>{}));function rxe(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}var Av=o((()=>{}));function ixe(e){return e!==e}var axe=o((()=>{}));function oxe(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}var sxe=o((()=>{}));function cxe(e,t,n){return t===t?oxe(e,t,n):rxe(e,ixe,n)}var lxe=o((()=>{Av(),axe(),sxe()}));function uxe(e,t){return!!(e!=null&&e.length)&&cxe(e,t,0)>-1}var dxe=o((()=>{lxe()}));function jv(e,t){var n=typeof e;return t??=fxe,!!t&&(n==`number`||n!=`symbol`&&pxe.test(e))&&e>-1&&e%1==0&&e<t}var fxe,pxe,Mv=o((()=>{fxe=9007199254740991,pxe=/^(?:0|[1-9]\d*)$/}));function Nv(e,t,n){t==`__proto__`&&Ev?Ev(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var Pv=o((()=>{$be()}));function Fv(e,t){return e===t||e!==e&&t!==t}var Iv=o((()=>{}));function Lv(e,t,n){var r=e[t];(!(mxe.call(e,t)&&Fv(r,n))||n===void 0&&!(t in e))&&Nv(e,t,n)}var mxe,Rv=o((()=>{Pv(),Iv(),mxe=Object.prototype.hasOwnProperty}));function zv(e,t,n,r){var i=!n;n||={};for(var a=-1,o=t.length;++a<o;){var s=t[a],l=r?r(n[s],e[s],s,n,e):void 0;l===void 0&&(l=e[s]),i?Nv(n,s,l):Lv(n,s,l)}return n}var Bv=o((()=>{Rv(),Pv()}));function hxe(e,t,n){return t=Vv(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=Vv(r.length-t,0),o=Array(a);++i<a;)o[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(o),Hbe(e,this,s)}}var Vv,gxe=o((()=>{Ube(),Vv=Math.max}));function Hv(e,t){return Dv(hxe(e,t,pv),e+``)}var Uv=o((()=>{mv(),gxe(),Ov()}));function Wv(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=_xe}var _xe,Gv=o((()=>{_xe=9007199254740991}));function Kv(e){return e!=null&&Wv(e.length)&&!hv(e)}var qv=o((()=>{gv(),Gv()}));function Jv(e,t,n){if(!sv(n))return!1;var r=typeof t;return(r==`number`?Kv(n)&&jv(t,n.length):r==`string`&&t in n)?Fv(n[t],e):!1}var Yv=o((()=>{Iv(),qv(),Mv(),cv()}));function vxe(e){return Hv(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(a=e.length>3&&typeof a==`function`?(i--,a):void 0,o&&Jv(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,a)}return t})}var yxe=o((()=>{Uv(),Yv()}));function Xv(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||bxe)}var bxe,Zv=o((()=>{bxe=Object.prototype}));function xxe(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var Sxe=o((()=>{}));function Cxe(e){return Z_(e)&&J_(e)==wxe}var wxe,Txe=o((()=>{X_(),Q_(),wxe=`[object Arguments]`})),Qv,Exe,Dxe,$v,ey=o((()=>{Txe(),Q_(),Qv=Object.prototype,Exe=Qv.hasOwnProperty,Dxe=Qv.propertyIsEnumerable,$v=Cxe(function(){return arguments}())?Cxe:function(e){return Z_(e)&&Exe.call(e,`callee`)&&!Dxe.call(e,`callee`)}}));function Oxe(){return!1}var kxe=o((()=>{})),ty,ny,ry,iy,ay=o((()=>{U_(),kxe(),ty=typeof exports==`object`&&exports&&!exports.nodeType&&exports,ny=ty&&typeof module==`object`&&module&&!module.nodeType&&module,ry=ny&&ny.exports===ty?H_.Buffer:void 0,iy=(ry?ry.isBuffer:void 0)||Oxe}));function Axe(e){return Z_(e)&&Wv(e.length)&&!!oy[J_(e)]}var jxe,Mxe,Nxe,Pxe,Fxe,Ixe,Lxe,Rxe,zxe,Bxe,Vxe,Hxe,Uxe,Wxe,Gxe,Kxe,qxe,Jxe,Yxe,Xxe,Zxe,Qxe,$xe,eSe,oy,tSe=o((()=>{X_(),Gv(),Q_(),jxe=`[object Arguments]`,Mxe=`[object Array]`,Nxe=`[object Boolean]`,Pxe=`[object Date]`,Fxe=`[object Error]`,Ixe=`[object Function]`,Lxe=`[object Map]`,Rxe=`[object Number]`,zxe=`[object Object]`,Bxe=`[object RegExp]`,Vxe=`[object Set]`,Hxe=`[object String]`,Uxe=`[object WeakMap]`,Wxe=`[object ArrayBuffer]`,Gxe=`[object DataView]`,Kxe=`[object Float32Array]`,qxe=`[object Float64Array]`,Jxe=`[object Int8Array]`,Yxe=`[object Int16Array]`,Xxe=`[object Int32Array]`,Zxe=`[object Uint8Array]`,Qxe=`[object Uint8ClampedArray]`,$xe=`[object Uint16Array]`,eSe=`[object Uint32Array]`,oy={},oy[Kxe]=oy[qxe]=oy[Jxe]=oy[Yxe]=oy[Xxe]=oy[Zxe]=oy[Qxe]=oy[$xe]=oy[eSe]=!0,oy[jxe]=oy[Mxe]=oy[Wxe]=oy[Nxe]=oy[Gxe]=oy[Pxe]=oy[Fxe]=oy[Ixe]=oy[Lxe]=oy[Rxe]=oy[zxe]=oy[Bxe]=oy[Vxe]=oy[Hxe]=oy[Uxe]=!1}));function sy(e){return function(t){return e(t)}}var cy=o((()=>{})),ly,uy,dy,fy,py=o((()=>{Uye(),ly=typeof exports==`object`&&exports&&!exports.nodeType&&exports,uy=ly&&typeof module==`object`&&module&&!module.nodeType&&module,dy=uy&&uy.exports===ly&&V_.process,fy=function(){try{return uy&&uy.require&&uy.require(`util`).types||dy&&dy.binding&&dy.binding(`util`)}catch{}}()})),my,hy,gy=o((()=>{tSe(),cy(),py(),my=fy&&fy.isTypedArray,hy=my?sy(my):Axe}));function _y(e,t){var n=rv(e),r=!n&&$v(e),i=!n&&!r&&iy(e),a=!n&&!r&&!i&&hy(e),o=n||r||i||a,s=o?xxe(e.length,String):[],l=s.length;for(var u in e)(t||vy.call(e,u))&&!(o&&(u==`length`||i&&(u==`offset`||u==`parent`)||a&&(u==`buffer`||u==`byteLength`||u==`byteOffset`)||jv(u,l)))&&s.push(u);return s}var vy,yy=o((()=>{Sxe(),ey(),iv(),ay(),Mv(),gy(),vy=Object.prototype.hasOwnProperty}));function by(e,t){return function(n){return e(t(n))}}var xy=o((()=>{})),Sy,nSe=o((()=>{xy(),Sy=by(Object.keys,Object)}));function Cy(e){if(!Xv(e))return Sy(e);var t=[];for(var n in Object(e))wy.call(e,n)&&n!=`constructor`&&t.push(n);return t}var wy,Ty=o((()=>{Zv(),nSe(),wy=Object.prototype.hasOwnProperty}));function Ey(e){return Kv(e)?_y(e):Cy(e)}var Dy=o((()=>{yy(),Ty(),qv()}));function rSe(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var iSe=o((()=>{}));function aSe(e){if(!sv(e))return rSe(e);var t=Xv(e),n=[];for(var r in e)r==`constructor`&&(t||!Oy.call(e,r))||n.push(r);return n}var Oy,oSe=o((()=>{cv(),Zv(),iSe(),Oy=Object.prototype.hasOwnProperty}));function ky(e){return Kv(e)?_y(e,!0):aSe(e)}var Ay=o((()=>{yy(),oSe(),qv()}));function jy(e,t){if(rv(e))return!1;var n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||$_(e)?!0:Ny.test(e)||!My.test(e)||t!=null&&e in Object(t)}var My,Ny,Py=o((()=>{iv(),ev(),My=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ny=/^\w*$/})),Fy,Iy=o((()=>{xv(),Fy=bv(Object,`create`)}));function sSe(){this.__data__=Fy?Fy(null):{},this.size=0}var cSe=o((()=>{Iy()}));function lSe(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}var uSe=o((()=>{}));function dSe(e){var t=this.__data__;if(Fy){var n=t[e];return n===Ly?void 0:n}return Ry.call(t,e)?t[e]:void 0}var Ly,Ry,fSe=o((()=>{Iy(),Ly=`__lodash_hash_undefined__`,Ry=Object.prototype.hasOwnProperty}));function pSe(e){var t=this.__data__;return Fy?t[e]!==void 0:zy.call(t,e)}var zy,mSe=o((()=>{Iy(),zy=Object.prototype.hasOwnProperty}));function hSe(e,t){var n=this.__data__;return this.size+=+!this.has(e),n[e]=Fy&&t===void 0?By:t,this}var By,gSe=o((()=>{Iy(),By=`__lodash_hash_undefined__`}));function Vy(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}var _Se=o((()=>{cSe(),uSe(),fSe(),mSe(),gSe(),Vy.prototype.clear=sSe,Vy.prototype.delete=lSe,Vy.prototype.get=dSe,Vy.prototype.has=pSe,Vy.prototype.set=hSe}));function vSe(){this.__data__=[],this.size=0}var ySe=o((()=>{}));function Hy(e,t){for(var n=e.length;n--;)if(Fv(e[n][0],t))return n;return-1}var Uy=o((()=>{Iv()}));function bSe(e){var t=this.__data__,n=Hy(t,e);return n<0?!1:(n==t.length-1?t.pop():Wy.call(t,n,1),--this.size,!0)}var Wy,xSe=o((()=>{Uy(),Wy=Array.prototype.splice}));function SSe(e){var t=this.__data__,n=Hy(t,e);return n<0?void 0:t[n][1]}var CSe=o((()=>{Uy()}));function wSe(e){return Hy(this.__data__,e)>-1}var TSe=o((()=>{Uy()}));function ESe(e,t){var n=this.__data__,r=Hy(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var DSe=o((()=>{Uy()}));function Gy(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}var Ky=o((()=>{ySe(),xSe(),CSe(),TSe(),DSe(),Gy.prototype.clear=vSe,Gy.prototype.delete=bSe,Gy.prototype.get=SSe,Gy.prototype.has=wSe,Gy.prototype.set=ESe})),qy,Jy=o((()=>{xv(),U_(),qy=bv(H_,`Map`)}));function OSe(){this.size=0,this.__data__={hash:new Vy,map:new(qy||Gy),string:new Vy}}var kSe=o((()=>{_Se(),Ky(),Jy()}));function ASe(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}var jSe=o((()=>{}));function Yy(e,t){var n=e.__data__;return ASe(t)?n[typeof t==`string`?`string`:`hash`]:n.map}var Xy=o((()=>{jSe()}));function MSe(e){var t=Yy(this,e).delete(e);return this.size-=+!!t,t}var NSe=o((()=>{Xy()}));function PSe(e){return Yy(this,e).get(e)}var FSe=o((()=>{Xy()}));function ISe(e){return Yy(this,e).has(e)}var LSe=o((()=>{Xy()}));function RSe(e,t){var n=Yy(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var zSe=o((()=>{Xy()}));function Zy(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}var Qy=o((()=>{kSe(),NSe(),FSe(),LSe(),zSe(),Zy.prototype.clear=OSe,Zy.prototype.delete=MSe,Zy.prototype.get=PSe,Zy.prototype.has=ISe,Zy.prototype.set=RSe}));function $y(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw TypeError(BSe);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new($y.Cache||Zy),n}var BSe,VSe=o((()=>{Qy(),BSe=`Expected a function`,$y.Cache=Zy}));function HSe(e){var t=$y(e,function(e){return n.size===USe&&n.clear(),e}),n=t.cache;return t}var USe,WSe=o((()=>{VSe(),USe=500})),GSe,KSe,qSe,JSe=o((()=>{WSe(),GSe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,KSe=/\\(\\)?/g,qSe=HSe(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(GSe,function(e,n,r,i){t.push(r?i.replace(KSe,`$1`):n||e)}),t})}));function YSe(e){return e==null?``:tbe(e)}var eb=o((()=>{rbe()}));function tb(e,t){return rv(e)?e:jy(e,t)?[e]:qSe(YSe(e))}var nb=o((()=>{iv(),Py(),JSe(),eb()}));function rb(e){if(typeof e==`string`||$_(e))return e;var t=e+``;return t==`0`&&1/e==-XSe?`-0`:t}var XSe,ib=o((()=>{ev(),XSe=1/0}));function ab(e,t){t=tb(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[rb(t[n++])];return n&&n==r?e:void 0}var ob=o((()=>{nb(),ib()}));function ZSe(e,t,n){var r=e==null?void 0:ab(e,t);return r===void 0?n:r}var QSe=o((()=>{ob()}));function sb(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var cb=o((()=>{}));function $Se(e){return rv(e)||$v(e)||!!(lb&&e&&e[lb])}var lb,eCe=o((()=>{G_(),ey(),iv(),lb=W_?W_.isConcatSpreadable:void 0}));function ub(e,t,n,r,i){var a=-1,o=e.length;for(n||=$Se,i||=[];++a<o;){var s=e[a];t>0&&n(s)?t>1?ub(s,t-1,n,r,i):sb(i,s):r||(i[i.length]=s)}return i}var db=o((()=>{cb(),eCe()}));function fb(e){return e!=null&&e.length?ub(e,1):[]}var tCe=o((()=>{db()}));function nCe(e){return Dv(hxe(e,void 0,fb),e+``)}var rCe=o((()=>{tCe(),gxe(),Ov()})),pb,mb=o((()=>{xy(),pb=by(Object.getPrototypeOf,Object)}));function iCe(e){if(!Z_(e)||J_(e)!=aCe)return!1;var t=pb(e);if(t===null)return!0;var n=cCe.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&hb.call(n)==lCe}var aCe,oCe,sCe,hb,cCe,lCe,uCe=o((()=>{X_(),mb(),Q_(),aCe=`[object Object]`,oCe=Function.prototype,sCe=Object.prototype,hb=oCe.toString,cCe=sCe.hasOwnProperty,lCe=hb.call(Object)})),dCe=o((()=>{}));function fCe(e,t,n,r){var i=-1,a=e==null?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}var pCe=o((()=>{}));function mCe(){this.__data__=new Gy,this.size=0}var hCe=o((()=>{Ky()}));function gCe(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var _Ce=o((()=>{}));function vCe(e){return this.__data__.get(e)}var yCe=o((()=>{}));function bCe(e){return this.__data__.has(e)}var xCe=o((()=>{}));function SCe(e,t){var n=this.__data__;if(n instanceof Gy){var r=n.__data__;if(!qy||r.length<CCe-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Zy(r)}return n.set(e,t),this.size=n.size,this}var CCe,wCe=o((()=>{Ky(),Jy(),Qy(),CCe=200}));function gb(e){var t=this.__data__=new Gy(e);this.size=t.size}var _b=o((()=>{Ky(),hCe(),_Ce(),yCe(),xCe(),wCe(),gb.prototype.clear=mCe,gb.prototype.delete=gCe,gb.prototype.get=vCe,gb.prototype.has=bCe,gb.prototype.set=SCe}));function TCe(e,t){return e&&zv(t,Ey(t),e)}var ECe=o((()=>{Bv(),Dy()}));function DCe(e,t){return e&&zv(t,ky(t),e)}var OCe=o((()=>{Bv(),Ay()}));function kCe(e,t){if(t)return e.slice();var n=e.length,r=xb?xb(n):new e.constructor(n);return e.copy(r),r}var vb,yb,bb,xb,ACe=o((()=>{U_(),vb=typeof exports==`object`&&exports&&!exports.nodeType&&exports,yb=vb&&typeof module==`object`&&module&&!module.nodeType&&module,bb=yb&&yb.exports===vb?H_.Buffer:void 0,xb=bb?bb.allocUnsafe:void 0}));function jCe(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}var Sb=o((()=>{}));function MCe(){return[]}var Cb=o((()=>{})),NCe,wb,Tb,Eb=o((()=>{Sb(),Cb(),NCe=Object.prototype.propertyIsEnumerable,wb=Object.getOwnPropertySymbols,Tb=wb?function(e){return e==null?[]:(e=Object(e),jCe(wb(e),function(t){return NCe.call(e,t)}))}:MCe}));function PCe(e,t){return zv(e,Tb(e),t)}var FCe=o((()=>{Bv(),Eb()})),Db,ICe=o((()=>{cb(),mb(),Eb(),Cb(),Db=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)sb(t,Tb(e)),e=pb(e);return t}:MCe}));function LCe(e,t){return zv(e,Db(e),t)}var RCe=o((()=>{Bv(),ICe()}));function zCe(e,t,n){var r=t(e);return rv(e)?r:sb(r,n(e))}var BCe=o((()=>{cb(),iv()}));function Ob(e){return zCe(e,Ey,Tb)}var VCe=o((()=>{BCe(),Eb(),Dy()}));function HCe(e){return zCe(e,ky,Db)}var UCe=o((()=>{BCe(),ICe(),Ay()})),kb,WCe=o((()=>{xv(),U_(),kb=bv(H_,`DataView`)})),Ab,GCe=o((()=>{xv(),U_(),Ab=bv(H_,`Promise`)})),jb,KCe=o((()=>{xv(),U_(),jb=bv(H_,`Set`)})),Mb,qCe,Nb,Pb,Fb,Ib,JCe,YCe,XCe,ZCe,QCe,Lb,Rb,zb=o((()=>{WCe(),Jy(),GCe(),KCe(),zbe(),X_(),Dbe(),Mb=`[object Map]`,qCe=`[object Object]`,Nb=`[object Promise]`,Pb=`[object Set]`,Fb=`[object WeakMap]`,Ib=`[object DataView]`,JCe=yv(kb),YCe=yv(qy),XCe=yv(Ab),ZCe=yv(jb),QCe=yv(Sv),Lb=J_,(kb&&Lb(new kb(new ArrayBuffer(1)))!=Ib||qy&&Lb(new qy)!=Mb||Ab&&Lb(Ab.resolve())!=Nb||jb&&Lb(new jb)!=Pb||Sv&&Lb(new Sv)!=Fb)&&(Lb=function(e){var t=J_(e),n=t==qCe?e.constructor:void 0,r=n?yv(n):``;if(r)switch(r){case JCe:return Ib;case YCe:return Mb;case XCe:return Nb;case ZCe:return Pb;case QCe:return Fb}return t}),Rb=Lb}));function $Ce(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]==`string`&&ewe.call(e,`index`)&&(n.index=e.index,n.input=e.input),n}var ewe,twe=o((()=>{ewe=Object.prototype.hasOwnProperty})),Bb,nwe=o((()=>{U_(),Bb=H_.Uint8Array}));function Vb(e){var t=new e.constructor(e.byteLength);return new Bb(t).set(new Bb(e)),t}var Hb=o((()=>{nwe()}));function rwe(e,t){var n=t?Vb(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var iwe=o((()=>{Hb()}));function awe(e){var t=new e.constructor(e.source,owe.exec(e));return t.lastIndex=e.lastIndex,t}var owe,swe=o((()=>{owe=/\w*$/}));function cwe(e){return Wb?Object(Wb.call(e)):{}}var Ub,Wb,lwe=o((()=>{G_(),Ub=W_?W_.prototype:void 0,Wb=Ub?Ub.valueOf:void 0}));function uwe(e,t){var n=t?Vb(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var dwe=o((()=>{Hb()}));function fwe(e,t,n){var r=e.constructor;switch(t){case xwe:return Vb(e);case pwe:case mwe:return new r(+e);case Swe:return rwe(e,n);case Cwe:case wwe:case Twe:case Ewe:case Dwe:case Owe:case kwe:case Awe:case jwe:return uwe(e,n);case hwe:return new r;case gwe:case ywe:return new r(e);case _we:return awe(e);case vwe:return new r;case bwe:return cwe(e)}}var pwe,mwe,hwe,gwe,_we,vwe,ywe,bwe,xwe,Swe,Cwe,wwe,Twe,Ewe,Dwe,Owe,kwe,Awe,jwe,Mwe=o((()=>{Hb(),iwe(),swe(),lwe(),dwe(),pwe=`[object Boolean]`,mwe=`[object Date]`,hwe=`[object Map]`,gwe=`[object Number]`,_we=`[object RegExp]`,vwe=`[object Set]`,ywe=`[object String]`,bwe=`[object Symbol]`,xwe=`[object ArrayBuffer]`,Swe=`[object DataView]`,Cwe=`[object Float32Array]`,wwe=`[object Float64Array]`,Twe=`[object Int8Array]`,Ewe=`[object Int16Array]`,Dwe=`[object Int32Array]`,Owe=`[object Uint8Array]`,kwe=`[object Uint8ClampedArray]`,Awe=`[object Uint16Array]`,jwe=`[object Uint32Array]`}));function Nwe(e){return typeof e.constructor==`function`&&!Xv(e)?Bbe(pb(e)):{}}var Pwe=o((()=>{Vbe(),mb(),Zv()}));function Fwe(e){return Z_(e)&&Rb(e)==Iwe}var Iwe,Lwe=o((()=>{zb(),Q_(),Iwe=`[object Map]`})),Gb,Rwe,zwe=o((()=>{Lwe(),cy(),py(),Gb=fy&&fy.isMap,Rwe=Gb?sy(Gb):Fwe}));function Bwe(e){return Z_(e)&&Rb(e)==Vwe}var Vwe,Hwe=o((()=>{zb(),Q_(),Vwe=`[object Set]`})),Kb,Uwe,Wwe=o((()=>{Hwe(),cy(),py(),Kb=fy&&fy.isSet,Uwe=Kb?sy(Kb):Bwe}));function qb(e,t,n,r,i,a){var o,s=t&Gwe,l=t&Kwe,u=t&qwe;if(n&&(o=i?n(e,r,i,a):n(e)),o!==void 0)return o;if(!sv(e))return e;var d=rv(e);if(d){if(o=$Ce(e),!s)return Kbe(e,o)}else{var f=Rb(e),p=f==Yb||f==Qwe;if(iy(e))return kCe(e,s);if(f==Xb||f==Jb||p&&!i){if(o=l||p?{}:Nwe(e),!s)return l?LCe(e,DCe(o,e)):PCe(e,TCe(o,e))}else{if(!Zb[f])return i?e:{};o=fwe(e,f,s)}}a||=new gb;var m=a.get(e);if(m)return m;a.set(e,o),Uwe(e)?e.forEach(function(r){o.add(qb(r,t,n,r,e,a))}):Rwe(e)&&e.forEach(function(r,i){o.set(i,qb(r,t,n,i,e,a))});var h=d?void 0:(u?l?HCe:Ob:l?ky:Ey)(e);return nxe(h||e,function(r,i){h&&(i=r,r=e[i]),Lv(o,i,qb(r,t,n,i,e,a))}),o}var Gwe,Kwe,qwe,Jb,Jwe,Ywe,Xwe,Zwe,Yb,Qwe,$we,eTe,Xb,tTe,nTe,rTe,iTe,aTe,oTe,sTe,cTe,lTe,uTe,dTe,fTe,pTe,mTe,hTe,gTe,Zb,_Te=o((()=>{_b(),kv(),Rv(),ECe(),OCe(),ACe(),wv(),FCe(),RCe(),VCe(),UCe(),zb(),twe(),Mwe(),Pwe(),iv(),ay(),zwe(),cv(),Wwe(),Dy(),Ay(),Gwe=1,Kwe=2,qwe=4,Jb=`[object Arguments]`,Jwe=`[object Array]`,Ywe=`[object Boolean]`,Xwe=`[object Date]`,Zwe=`[object Error]`,Yb=`[object Function]`,Qwe=`[object GeneratorFunction]`,$we=`[object Map]`,eTe=`[object Number]`,Xb=`[object Object]`,tTe=`[object RegExp]`,nTe=`[object Set]`,rTe=`[object String]`,iTe=`[object Symbol]`,aTe=`[object WeakMap]`,oTe=`[object ArrayBuffer]`,sTe=`[object DataView]`,cTe=`[object Float32Array]`,lTe=`[object Float64Array]`,uTe=`[object Int8Array]`,dTe=`[object Int16Array]`,fTe=`[object Int32Array]`,pTe=`[object Uint8Array]`,mTe=`[object Uint8ClampedArray]`,hTe=`[object Uint16Array]`,gTe=`[object Uint32Array]`,Zb={},Zb[Jb]=Zb[Jwe]=Zb[oTe]=Zb[sTe]=Zb[Ywe]=Zb[Xwe]=Zb[cTe]=Zb[lTe]=Zb[uTe]=Zb[dTe]=Zb[fTe]=Zb[$we]=Zb[eTe]=Zb[Xb]=Zb[tTe]=Zb[nTe]=Zb[rTe]=Zb[iTe]=Zb[pTe]=Zb[mTe]=Zb[hTe]=Zb[gTe]=!0,Zb[Zwe]=Zb[Yb]=Zb[aTe]=!1}));function vTe(e){return qb(e,yTe|bTe)}var yTe,bTe,xTe=o((()=>{_Te(),yTe=1,bTe=4}));function STe(e){return this.__data__.set(e,CTe),this}var CTe,wTe=o((()=>{CTe=`__lodash_hash_undefined__`}));function TTe(e){return this.__data__.has(e)}var ETe=o((()=>{}));function Qb(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Zy;++t<n;)this.add(e[t])}var $b=o((()=>{Qy(),wTe(),ETe(),Qb.prototype.add=Qb.prototype.push=STe,Qb.prototype.has=TTe}));function DTe(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var OTe=o((()=>{}));function kTe(e,t){return e.has(t)}var ex=o((()=>{}));function ATe(e,t,n,r,i,a){var o=n&jTe,s=e.length,l=t.length;if(s!=l&&!(o&&l>s))return!1;var u=a.get(e),d=a.get(t);if(u&&d)return u==t&&d==e;var f=-1,p=!0,m=n&MTe?new Qb:void 0;for(a.set(e,t),a.set(t,e);++f<s;){var h=e[f],g=t[f];if(r)var _=o?r(g,h,f,t,e,a):r(h,g,f,e,t,a);if(_!==void 0){if(_)continue;p=!1;break}if(m){if(!DTe(t,function(e,t){if(!kTe(m,t)&&(h===e||i(h,e,n,r,a)))return m.push(t)})){p=!1;break}}else if(!(h===g||i(h,g,n,r,a))){p=!1;break}}return a.delete(e),a.delete(t),p}var jTe,MTe,NTe=o((()=>{$b(),OTe(),ex(),jTe=1,MTe=2}));function PTe(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}var FTe=o((()=>{}));function tx(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var nx=o((()=>{}));function ITe(e,t,n,r,i,a,o){switch(n){case YTe:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case JTe:return!(e.byteLength!=t.byteLength||!a(new Bb(e),new Bb(t)));case zTe:case BTe:case UTe:return Fv(+e,+t);case VTe:return e.name==t.name&&e.message==t.message;case WTe:case KTe:return e==t+``;case HTe:var s=PTe;case GTe:var l=r&LTe;if(s||=tx,e.size!=t.size&&!l)return!1;var u=o.get(e);if(u)return u==t;r|=RTe,o.set(e,t);var d=ATe(s(e),s(t),r,i,a,o);return o.delete(e),d;case qTe:if(ix)return ix.call(e)==ix.call(t)}return!1}var LTe,RTe,zTe,BTe,VTe,HTe,UTe,WTe,GTe,KTe,qTe,JTe,YTe,rx,ix,XTe=o((()=>{G_(),nwe(),Iv(),NTe(),FTe(),nx(),LTe=1,RTe=2,zTe=`[object Boolean]`,BTe=`[object Date]`,VTe=`[object Error]`,HTe=`[object Map]`,UTe=`[object Number]`,WTe=`[object RegExp]`,GTe=`[object Set]`,KTe=`[object String]`,qTe=`[object Symbol]`,JTe=`[object ArrayBuffer]`,YTe=`[object DataView]`,rx=W_?W_.prototype:void 0,ix=rx?rx.valueOf:void 0}));function ZTe(e,t,n,r,i,a){var o=n&QTe,s=Ob(e),l=s.length;if(l!=Ob(t).length&&!o)return!1;for(var u=l;u--;){var d=s[u];if(!(o?d in t:$Te.call(t,d)))return!1}var f=a.get(e),p=a.get(t);if(f&&p)return f==t&&p==e;var m=!0;a.set(e,t),a.set(t,e);for(var h=o;++u<l;){d=s[u];var g=e[d],_=t[d];if(r)var v=o?r(_,g,d,t,e,a):r(g,_,d,e,t,a);if(!(v===void 0?g===_||i(g,_,n,r,a):v)){m=!1;break}h||=d==`constructor`}if(m&&!h){var y=e.constructor,b=t.constructor;y!=b&&`constructor`in e&&`constructor`in t&&!(typeof y==`function`&&y instanceof y&&typeof b==`function`&&b instanceof b)&&(m=!1)}return a.delete(e),a.delete(t),m}var QTe,$Te,eEe=o((()=>{VCe(),QTe=1,$Te=Object.prototype.hasOwnProperty}));function tEe(e,t,n,r,i,a){var o=rv(e),s=rv(t),l=o?ox:Rb(e),u=s?ox:Rb(t);l=l==ax?sx:l,u=u==ax?sx:u;var d=l==sx,f=u==sx,p=l==u;if(p&&iy(e)){if(!iy(t))return!1;o=!0,d=!1}if(p&&!d)return a||=new gb,o||hy(e)?ATe(e,t,n,r,i,a):ITe(e,t,l,n,r,i,a);if(!(n&nEe)){var m=d&&cx.call(e,`__wrapped__`),h=f&&cx.call(t,`__wrapped__`);if(m||h){var g=m?e.value():e,_=h?t.value():t;return a||=new gb,i(g,_,n,r,a)}}return p?(a||=new gb,ZTe(e,t,n,r,i,a)):!1}var nEe,ax,ox,sx,cx,rEe=o((()=>{_b(),NTe(),XTe(),eEe(),zb(),iv(),ay(),gy(),nEe=1,ax=`[object Arguments]`,ox=`[object Array]`,sx=`[object Object]`,cx=Object.prototype.hasOwnProperty}));function lx(e,t,n,r,i){return e===t?!0:e==null||t==null||!Z_(e)&&!Z_(t)?e!==e&&t!==t:tEe(e,t,n,r,lx,i)}var ux=o((()=>{rEe(),Q_()}));function iEe(e,t,n,r){var i=n.length,a=i,o=!r;if(e==null)return!a;for(e=Object(e);i--;){var s=n[i];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){s=n[i];var l=s[0],u=e[l],d=s[1];if(o&&s[2]){if(u===void 0&&!(l in e))return!1}else{var f=new gb;if(r)var p=r(u,d,l,e,t,f);if(!(p===void 0?lx(d,u,aEe|oEe,r,f):p))return!1}}return!0}var aEe,oEe,sEe=o((()=>{_b(),ux(),aEe=1,oEe=2}));function cEe(e){return e===e&&!sv(e)}var lEe=o((()=>{cv()}));function uEe(e){for(var t=Ey(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,cEe(i)]}return t}var dEe=o((()=>{lEe(),Dy()}));function fEe(e,t){return function(n){return n!=null&&n[e]===t&&(t!==void 0||e in Object(n))}}var pEe=o((()=>{}));function mEe(e){var t=uEe(e);return t.length==1&&t[0][2]?fEe(t[0][0],t[0][1]):function(n){return n===e||iEe(n,e,t)}}var hEe=o((()=>{sEe(),dEe(),pEe()}));function gEe(e,t){return e!=null&&t in Object(e)}var _Ee=o((()=>{}));function vEe(e,t,n){t=tb(t,e);for(var r=-1,i=t.length,a=!1;++r<i;){var o=rb(t[r]);if(!(a=e!=null&&n(e,o)))break;e=e[o]}return a||++r!=i?a:(i=e==null?0:e.length,!!i&&Wv(i)&&jv(o,i)&&(rv(e)||$v(e)))}var yEe=o((()=>{nb(),ey(),iv(),Mv(),Gv(),ib()}));function bEe(e,t){return e!=null&&vEe(e,t,gEe)}var dx=o((()=>{_Ee(),yEe()}));function xEe(e,t){return jy(e)&&cEe(t)?fEe(rb(e),t):function(n){var r=ZSe(n,e);return r===void 0&&r===t?bEe(n,e):lx(t,r,SEe|CEe)}}var SEe,CEe,wEe=o((()=>{ux(),QSe(),dx(),Py(),lEe(),pEe(),ib(),SEe=1,CEe=2}));function TEe(e){return function(t){return t?.[e]}}var fx=o((()=>{}));function EEe(e){return function(t){return ab(t,e)}}var DEe=o((()=>{ob()}));function OEe(e){return jy(e)?TEe(rb(e)):EEe(e)}var kEe=o((()=>{fx(),DEe(),Py(),ib()}));function px(e){return typeof e==`function`?e:e==null?pv:typeof e==`object`?rv(e)?xEe(e[0],e[1]):mEe(e):OEe(e)}var mx=o((()=>{hEe(),wEe(),mv(),iv(),kEe()}));function AEe(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var l=o[e?s:++i];if(n(a[l],l,a)===!1)break}return t}}var jEe=o((()=>{})),hx,gx=o((()=>{jEe(),hx=AEe()}));function _x(e,t){return e&&hx(e,t,Ey)}var vx=o((()=>{gx(),Dy()}));function MEe(e,t){return function(n,r){if(n==null)return n;if(!Kv(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=Object(n);(t?a--:++a<i)&&r(o[a],a,o)!==!1;);return n}}var NEe=o((()=>{qv()})),yx,bx=o((()=>{vx(),NEe(),yx=MEe(_x)})),xx,PEe=o((()=>{U_(),xx=function(){return H_.Date.now()}})),Sx,FEe,IEe,LEe=o((()=>{Uv(),Iv(),Yv(),Ay(),Sx=Object.prototype,FEe=Sx.hasOwnProperty,IEe=Hv(function(e,t){e=Object(e);var n=-1,r=t.length,i=r>2?t[2]:void 0;for(i&&Jv(t[0],t[1],i)&&(r=1);++n<r;)for(var a=t[n],o=ky(a),s=-1,l=o.length;++s<l;){var u=o[s],d=e[u];(d===void 0||Fv(d,Sx[u])&&!FEe.call(e,u))&&(e[u]=a[u])}return e})}));function Cx(e,t,n){(n!==void 0&&!Fv(e[t],n)||n===void 0&&!(t in e))&&Nv(e,t,n)}var REe=o((()=>{Pv(),Iv()}));function zEe(e){return Z_(e)&&Kv(e)}var wx=o((()=>{qv(),Q_()}));function Tx(e,t){if((t!==`constructor`||typeof e[t]!=`function`)&&t!=`__proto__`)return e[t]}var BEe=o((()=>{}));function VEe(e){return zv(e,ky(e))}var HEe=o((()=>{Bv(),Ay()}));function UEe(e,t,n,r,i,a,o){var s=Tx(e,n),l=Tx(t,n),u=o.get(l);if(u){Cx(e,n,u);return}var d=a?a(s,l,n+``,e,t,o):void 0,f=d===void 0;if(f){var p=rv(l),m=!p&&iy(l),h=!p&&!m&&hy(l);d=l,p||m||h?rv(s)?d=s:zEe(s)?d=Kbe(s):m?(f=!1,d=kCe(l,!0)):h?(f=!1,d=uwe(l,!0)):d=[]:iCe(l)||$v(l)?(d=s,$v(s)?d=VEe(s):(!sv(s)||hv(s))&&(d=Nwe(l))):f=!1}f&&(o.set(l,d),i(d,l,r,a,o),o.delete(l)),Cx(e,n,d)}var WEe=o((()=>{REe(),ACe(),dwe(),wv(),Pwe(),ey(),iv(),wx(),ay(),gv(),cv(),uCe(),gy(),BEe(),HEe()}));function GEe(e,t,n,r,i){e!==t&&hx(t,function(a,o){if(i||=new gb,sv(a))UEe(e,t,o,n,GEe,r,i);else{var s=r?r(Tx(e,o),a,o+``,e,t,i):void 0;s===void 0&&(s=a),Cx(e,o,s)}},ky)}var KEe=o((()=>{_b(),REe(),gx(),WEe(),cv(),Ay(),BEe()}));function qEe(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}var JEe=o((()=>{}));function Ex(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var YEe=o((()=>{}));function Dx(e){return typeof e==`function`?e:pv}var Ox=o((()=>{mv()}));function kx(e,t){return(rv(e)?nxe:yx)(e,Dx(t))}var XEe=o((()=>{kv(),bx(),Ox(),iv()})),ZEe=o((()=>{XEe()}));function QEe(e,t){var n=[];return yx(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}var $Ee=o((()=>{bx()}));function Ax(e,t){return(rv(e)?jCe:QEe)(e,px(t,3))}var eDe=o((()=>{Sb(),$Ee(),mx(),iv()}));function tDe(e){return function(t,n,r){var i=Object(t);if(!Kv(t)){var a=px(n,3);t=Ey(t),n=function(e){return a(i[e],e,i)}}var o=e(t,n,r);return o>-1?i[a?t[o]:o]:void 0}}var nDe=o((()=>{mx(),qv(),Dy()}));function rDe(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:_be(n);return i<0&&(i=iDe(r+i,0)),rxe(e,px(t,3),i)}var iDe,aDe=o((()=>{Av(),mx(),vbe(),iDe=Math.max})),jx,oDe=o((()=>{nDe(),aDe(),jx=tDe(rDe)}));function sDe(e,t){var n=-1,r=Kv(e)?Array(e.length):[];return yx(e,function(e,i,a){r[++n]=t(e,i,a)}),r}var cDe=o((()=>{bx(),qv()}));function Mx(e,t){return(rv(e)?tv:sDe)(e,px(t,3))}var lDe=o((()=>{nv(),mx(),cDe(),iv()}));function uDe(e,t){return e==null?e:hx(e,Dx(t),ky)}var dDe=o((()=>{gx(),Ox(),Ay()}));function fDe(e,t){return e&&_x(e,Dx(t))}var pDe=o((()=>{vx(),Ox()}));function mDe(e,t){return e>t}var hDe=o((()=>{}));function gDe(e,t){return e!=null&&_De.call(e,t)}var _De,vDe=o((()=>{_De=Object.prototype.hasOwnProperty}));function yDe(e,t){return e!=null&&vEe(e,t,gDe)}var bDe=o((()=>{vDe(),yEe()})),xDe=o((()=>{X_(),iv(),Q_()}));function SDe(e,t){return tv(t,function(t){return e[t]})}var CDe=o((()=>{nv()}));function Nx(e){return e==null?[]:SDe(e,Ey(e))}var wDe=o((()=>{CDe(),Dy()}));function TDe(e){if(e==null)return!0;if(Kv(e)&&(rv(e)||typeof e==`string`||typeof e.splice==`function`||iy(e)||hy(e)||$v(e)))return!e.length;var t=Rb(e);if(t==EDe||t==DDe)return!e.size;if(Xv(e))return!Cy(e).length;for(var n in e)if(ODe.call(e,n))return!1;return!0}var EDe,DDe,ODe,kDe=o((()=>{Ty(),zb(),ey(),iv(),qv(),ay(),Zv(),gy(),EDe=`[object Map]`,DDe=`[object Set]`,ODe=Object.prototype.hasOwnProperty}));function Px(e){return e===void 0}var ADe=o((()=>{}));function jDe(e,t){return e<t}var Fx=o((()=>{}));function Ix(e,t){var n={};return t=px(t,3),_x(e,function(e,r,i){Nv(n,r,t(e,r,i))}),n}var MDe=o((()=>{Pv(),vx(),mx()}));function Lx(e,t,n){for(var r=-1,i=e.length;++r<i;){var a=e[r],o=t(a);if(o!=null&&(s===void 0?o===o&&!$_(o):n(o,s)))var s=o,l=a}return l}var Rx=o((()=>{ev()}));function zx(e){return e&&e.length?Lx(e,pv,mDe):void 0}var NDe=o((()=>{Rx(),hDe(),mv()})),Bx,PDe=o((()=>{KEe(),yxe(),Bx=vxe(function(e,t,n){GEe(e,t,n)})}));function Vx(e){return e&&e.length?Lx(e,pv,jDe):void 0}var FDe=o((()=>{Rx(),Fx(),mv()}));function Hx(e,t){return e&&e.length?Lx(e,px(t,2),jDe):void 0}var IDe=o((()=>{Rx(),mx(),Fx()}));function LDe(e,t,n,r){if(!sv(e))return e;t=tb(t,e);for(var i=-1,a=t.length,o=a-1,s=e;s!=null&&++i<a;){var l=rb(t[i]),u=n;if(l===`__proto__`||l===`constructor`||l===`prototype`)return e;if(i!=o){var d=s[l];u=r?r(d,l,s):void 0,u===void 0&&(u=sv(d)?d:jv(t[i+1])?[]:{})}Lv(s,l,u),s=s[l]}return e}var RDe=o((()=>{Rv(),nb(),Mv(),cv(),ib()}));function zDe(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var o=t[r],s=ab(e,o);n(s,o)&&LDe(a,tb(o,e),s)}return a}var BDe=o((()=>{ob(),RDe(),nb()}));function VDe(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var HDe=o((()=>{}));function UDe(e,t){if(e!==t){var n=e!==void 0,r=e===null,i=e===e,a=$_(e),o=t!==void 0,s=t===null,l=t===t,u=$_(t);if(!s&&!u&&!a&&e>t||a&&o&&l&&!s&&!u||r&&o&&l||!n&&l||!i)return 1;if(!r&&!a&&!u&&e<t||u&&n&&i&&!r&&!a||s&&n&&i||!o&&i||!l)return-1}return 0}var WDe=o((()=>{ev()}));function GDe(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,o=i.length,s=n.length;++r<o;){var l=UDe(i[r],a[r]);if(l)return r>=s?l:l*(n[r]==`desc`?-1:1)}return e.index-t.index}var KDe=o((()=>{WDe()}));function qDe(e,t,n){t=t.length?tv(t,function(e){return rv(e)?function(t){return ab(t,e.length===1?e[0]:e)}:e}):[pv];var r=-1;return t=tv(t,sy(px)),VDe(sDe(e,function(e,n,i){return{criteria:tv(t,function(t){return t(e)}),index:++r,value:e}}),function(e,t){return GDe(e,t,n)})}var JDe=o((()=>{nv(),ob(),mx(),cDe(),HDe(),cy(),KDe(),mv(),iv()})),YDe=o((()=>{fx()})),Ux,XDe,ZDe,QDe,Wx,Gx,$De,Kx,qx,Jx,eOe,Yx,Xx,tOe,nOe,rOe,iOe=o((()=>{Ux=`\\ud800-\\udfff`,XDe=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,ZDe=`\\ufe0e\\ufe0f`,QDe=`[`+Ux+`]`,Wx=`[`+XDe+`]`,Gx=`\\ud83c[\\udffb-\\udfff]`,$De=`(?:`+Wx+`|`+Gx+`)`,Kx=`[^`+Ux+`]`,qx=`(?:\\ud83c[\\udde6-\\uddff]){2}`,Jx=`[\\ud800-\\udbff][\\udc00-\\udfff]`,eOe=`\\u200d`,Yx=$De+`?`,Xx=`[`+ZDe+`]?`,tOe=`(?:`+eOe+`(?:`+[Kx,qx,Jx].join(`|`)+`)`+Xx+Yx+`)*`,nOe=Xx+Yx+tOe,rOe=`(?:`+[Kx+Wx+`?`,Wx,qx,Jx,QDe].join(`|`)+`)`,RegExp(Gx+`(?=`+Gx+`)|`+rOe+nOe,`g`)})),aOe=o((()=>{YDe(),dCe(),iOe()}));function oOe(e,t){return zDe(e,t,function(t,n){return bEe(e,n)})}var sOe=o((()=>{BDe(),dx()})),Zx,cOe=o((()=>{sOe(),rCe(),Zx=nCe(function(e,t){return e==null?{}:oOe(e,t)})}));function lOe(e,t,n,r){for(var i=-1,a=dOe(uOe((t-e)/(n||1)),0),o=Array(a);a--;)o[r?a:++i]=e,e+=n;return o}var uOe,dOe,fOe=o((()=>{uOe=Math.ceil,dOe=Math.max}));function pOe(e){return function(t,n,r){return r&&typeof r!=`number`&&Jv(t,n,r)&&(n=r=void 0),t=uv(t),n===void 0?(n=t,t=0):n=uv(n),r=r===void 0?t<n?1:-1:uv(r),lOe(t,n,r,e)}}var mOe=o((()=>{fOe(),Yv(),fv()})),Qx,hOe=o((()=>{mOe(),Qx=pOe()}));function gOe(e,t,n,r,i){return i(e,function(e,i,a){n=r?(r=!1,e):t(n,e,i,a)}),n}var _Oe=o((()=>{}));function $x(e,t,n){var r=rv(e)?fCe:gOe,i=arguments.length<3;return r(e,px(t,4),n,i,yx)}var vOe=o((()=>{pCe(),bx(),mx(),_Oe(),iv()})),yOe=o((()=>{Ty(),zb(),qv(),xDe(),aOe()})),eS,bOe=o((()=>{db(),JDe(),Uv(),Yv(),eS=Hv(function(e,t){if(e==null)return[];var n=t.length;return n>1&&Jv(e,t[0],t[1])?t=[]:n>2&&Jv(t[0],t[1],t[2])&&(t=[t[0]]),qDe(e,ub(t,1),[])})})),xOe,SOe=o((()=>{KCe(),Gbe(),nx(),xOe=jb&&1/tx(new jb([,-0]))[1]==1/0?function(e){return new jb(e)}:Wbe}));function COe(e,t,n){var r=-1,i=uxe,a=e.length,o=!0,s=[],l=s;if(n)o=!1,i=qEe;else if(a>=wOe){var u=t?null:xOe(e);if(u)return tx(u);o=!1,i=kTe,l=new Qb}else l=t?[]:s;outer:for(;++r<a;){var d=e[r],f=t?t(d):d;if(d=n||d!==0?d:0,o&&f===f){for(var p=l.length;p--;)if(l[p]===f)continue outer;t&&l.push(f),s.push(d)}else i(l,f,n)||(l!==s&&l.push(f),s.push(d))}return s}var wOe,TOe=o((()=>{$b(),dxe(),JEe(),ex(),SOe(),nx(),wOe=200})),EOe,DOe=o((()=>{db(),Uv(),TOe(),wx(),EOe=Hv(function(e){return COe(ub(e,1,zEe,!0))})}));function tS(e){var t=++OOe;return YSe(e)+t}var OOe,kOe=o((()=>{eb(),OOe=0}));function AOe(e,t,n){for(var r=-1,i=e.length,a=t.length,o={};++r<i;){var s=r<a?t[r]:void 0;n(o,e[r],s)}return o}var jOe=o((()=>{}));function MOe(e,t){return AOe(e||[],t||[],Lv)}var NOe=o((()=>{Rv(),jOe()})),nS=o((()=>{ev(),rbe(),vbe(),mv(),zbe(),Vbe(),cv(),U_(),Ube(),Gbe(),iv(),Q_(),wv(),Zbe(),Ov(),kv(),dxe(),Mv(),Rv(),Bv(),yxe(),qv(),Zv(),Dy(),Ay(),QSe(),rCe(),Uv(),X_(),uCe(),Pv(),ib(),eb(),dCe(),pCe(),hbe(),Yv(),_Te(),xTe(),cb(),db(),nv(),mx(),Qbe(),bx(),ECe(),PEe(),LEe(),KEe(),$b(),JEe(),cy(),ex(),wx(),YEe(),ZEe(),jEe(),NEe(),Ox(),zb(),FTe(),Iv(),eDe(),oDe(),aDe(),vx(),nDe(),Av(),lDe(),tCe(),XEe(),dDe(),pDe(),Sb(),gv(),hDe(),bDe(),dx(),fv(),lxe(),xDe(),wDe(),nb(),ob(),ey(),py(),ay(),kDe(),ux(),Gv(),zwe(),sEe(),dEe(),Ibe(),Cbe(),kxe(),Wwe(),gy(),ADe(),axe(),Fx(),MDe(),hEe(),wEe(),NDe(),Rx(),VSe(),PDe(),FDe(),IDe(),G_(),nx(),UCe(),BDe(),JDe(),OTe(),aOe(),cOe(),kEe(),WDe(),hOe(),mOe(),vOe(),_Oe(),$Ee(),RDe(),yOe(),bOe(),Cb(),CDe(),Sxe(),JSe(),HEe(),mb(),lbe(),obe(),DOe(),TOe(),kOe(),fx(),NOe(),jOe()}));function POe(e,t){e[t]?e[t]++:e[t]=1}function FOe(e,t){--e[t]||delete e[t]}function rS(e,t,n,r){var i=``+t,a=``+n;if(!e&&i>a){var o=i;i=a,a=o}return i+oS+a+oS+(Px(r)?LOe:r)}function IOe(e,t,n,r){var i=``+t,a=``+n;if(!e&&i>a){var o=i;i=a,a=o}var s={v:i,w:a};return r&&(s.name=r),s}function iS(e,t){return rS(e,t.v,t.w,t.name)}var LOe,aS,oS,sS,ROe=o((()=>{nS(),LOe=`\0`,aS=`\0`,oS=``,sS=class{constructor(e={}){this._isDirected=!Object.prototype.hasOwnProperty.call(e,`directed`)||e.directed,this._isMultigraph=Object.prototype.hasOwnProperty.call(e,`multigraph`)?e.multigraph:!1,this._isCompound=Object.prototype.hasOwnProperty.call(e,`compound`)?e.compound:!1,this._label=void 0,this._defaultNodeLabelFn=Tv(void 0),this._defaultEdgeLabelFn=Tv(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[aS]={}),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(e){return this._label=e,this}graph(){return this._label}setDefaultNodeLabel(e){return hv(e)||(e=Tv(e)),this._defaultNodeLabelFn=e,this}nodeCount(){return this._nodeCount}nodes(){return Ey(this._nodes)}sources(){var e=this;return Ax(this.nodes(),function(t){return TDe(e._in[t])})}sinks(){var e=this;return Ax(this.nodes(),function(t){return TDe(e._out[t])})}setNodes(e,t){var n=arguments,r=this;return kx(e,function(e){n.length>1?r.setNode(e,t):r.setNode(e)}),this}setNode(e,t){return Object.prototype.hasOwnProperty.call(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=t),this):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=aS,this._children[e]={},this._children[aS][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)}node(e){return this._nodes[e]}hasNode(e){return Object.prototype.hasOwnProperty.call(this._nodes,e)}removeNode(e){if(Object.prototype.hasOwnProperty.call(this._nodes,e)){var t=e=>this.removeEdge(this._edgeObjs[e]);delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],kx(this.children(e),e=>{this.setParent(e)}),delete this._children[e]),kx(Ey(this._in[e]),t),delete this._in[e],delete this._preds[e],kx(Ey(this._out[e]),t),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this}setParent(e,t){if(!this._isCompound)throw Error(`Cannot set parent in a non-compound graph`);if(Px(t))t=aS;else{t+=``;for(var n=t;!Px(n);n=this.parent(n))if(n===e)throw Error(`Setting `+t+` as parent of `+e+` would create a cycle`);this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this}_removeFromParentsChildList(e){delete this._children[this._parent[e]][e]}parent(e){if(this._isCompound){var t=this._parent[e];if(t!==aS)return t}}children(e){if(Px(e)&&(e=aS),this._isCompound){var t=this._children[e];if(t)return Ey(t)}else if(e===aS)return this.nodes();else if(this.hasNode(e))return[]}predecessors(e){var t=this._preds[e];if(t)return Ey(t)}successors(e){var t=this._sucs[e];if(t)return Ey(t)}neighbors(e){var t=this.predecessors(e);if(t)return EOe(t,this.successors(e))}isLeaf(e){return(this.isDirected()?this.successors(e):this.neighbors(e)).length===0}filterNodes(e){var t=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});t.setGraph(this.graph());var n=this;kx(this._nodes,function(n,r){e(r)&&t.setNode(r,n)}),kx(this._edgeObjs,function(e){t.hasNode(e.v)&&t.hasNode(e.w)&&t.setEdge(e,n.edge(e))});var r={};function i(e){var a=n.parent(e);return a===void 0||t.hasNode(a)?(r[e]=a,a):a in r?r[a]:i(a)}return this._isCompound&&kx(t.nodes(),function(e){t.setParent(e,i(e))}),t}setDefaultEdgeLabel(e){return hv(e)||(e=Tv(e)),this._defaultEdgeLabelFn=e,this}edgeCount(){return this._edgeCount}edges(){return Nx(this._edgeObjs)}setPath(e,t){var n=this,r=arguments;return $x(e,function(e,i){return r.length>1?n.setEdge(e,i,t):n.setEdge(e,i),i}),this}setEdge(){var e,t,n,r,i=!1,a=arguments[0];typeof a==`object`&&a&&`v`in a?(e=a.v,t=a.w,n=a.name,arguments.length===2&&(r=arguments[1],i=!0)):(e=a,t=arguments[1],n=arguments[3],arguments.length>2&&(r=arguments[2],i=!0)),e=``+e,t=``+t,Px(n)||(n=``+n);var o=rS(this._isDirected,e,t,n);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,o))return i&&(this._edgeLabels[o]=r),this;if(!Px(n)&&!this._isMultigraph)throw Error(`Cannot set a named edge when isMultigraph = false`);this.setNode(e),this.setNode(t),this._edgeLabels[o]=i?r:this._defaultEdgeLabelFn(e,t,n);var s=IOe(this._isDirected,e,t,n);return e=s.v,t=s.w,Object.freeze(s),this._edgeObjs[o]=s,POe(this._preds[t],e),POe(this._sucs[e],t),this._in[t][o]=s,this._out[e][o]=s,this._edgeCount++,this}edge(e,t,n){var r=arguments.length===1?iS(this._isDirected,arguments[0]):rS(this._isDirected,e,t,n);return this._edgeLabels[r]}hasEdge(e,t,n){var r=arguments.length===1?iS(this._isDirected,arguments[0]):rS(this._isDirected,e,t,n);return Object.prototype.hasOwnProperty.call(this._edgeLabels,r)}removeEdge(e,t,n){var r=arguments.length===1?iS(this._isDirected,arguments[0]):rS(this._isDirected,e,t,n),i=this._edgeObjs[r];return i&&(e=i.v,t=i.w,delete this._edgeLabels[r],delete this._edgeObjs[r],FOe(this._preds[t],e),FOe(this._sucs[e],t),delete this._in[t][r],delete this._out[e][r],this._edgeCount--),this}inEdges(e,t){var n=this._in[e];if(n){var r=Nx(n);return t?Ax(r,function(e){return e.v===t}):r}}outEdges(e,t){var n=this._out[e];if(n){var r=Nx(n);return t?Ax(r,function(e){return e.w===t}):r}}nodeEdges(e,t){var n=this.inEdges(e,t);if(n)return n.concat(this.outEdges(e,t))}},sS.prototype._nodeCount=0,sS.prototype._edgeCount=0})),cS=o((()=>{ROe()})),zOe=l({captureNodeSizes:()=>UOe,shouldCaptureSizes:()=>BOe});function lS(){if(!(typeof globalThis>`u`))return globalThis}function BOe(){return!!lS()?.mermaidCaptureSizes}function VOe(){return typeof location>`u`?`browser-dev`:`${location.pathname}${location.search}`}function HOe(e,t){let n=lS();if(!n)return;let r=t.node(),i=((r&&`ownerSVGElement`in r?r.ownerSVGElement:null)??r)?.id??`(unknown)`;n.mermaidCapturedSizes??=[];let a={svgId:i,sizes:e};n.mermaidCapturedSizes.push(a),n.mermaidLastCapturedSizes=a}function UOe(e,t){let n=[];for(let e of t.nodes)e.isGroup||n.push({id:e.id,width:e.width??0,height:e.height??0});n.length!==0&&HOe({metadata:{captureVersion:WOe,capturedAt:new Date().toISOString(),capturedFrom:VOe()},nodes:n},e)}var WOe,GOe=o((()=>{h(),WOe=1,p(lS,`getCaptureGlobal`),p(BOe,`shouldCaptureSizes`),p(VOe,`capturedFromLocation`),p(HOe,`emitCapturedSizes`),p(UOe,`captureNodeSizes`)}));function uS(e,{edgePathsClass:t=`edges edgePath`}={}){let n=e.insert(`g`).attr(`class`,`root`);return{clusters:n.insert(`g`).attr(`class`,`clusters`),edgePaths:n.insert(`g`).attr(`class`,t),edgeLabels:n.insert(`g`).attr(`class`,`edgeLabels`),nodes:n.insert(`g`).attr(`class`,`nodes`),rootGroups:n}}async function KOe(e,t){if(t.label){let{shapeSvg:n,bbox:r}=await Ag(e,t);t.labelBBox={width:r.width,height:r.height},n.remove()}else t.labelBBox={width:0,height:0}}async function dS(e,t,n){let r=await l_(e,t,n),i=r.node()?.getBBox()??{width:0,height:0};return t.width=i.width,t.height=i.height,r}async function qOe(e,t){let n=new sS({multigraph:!0,compound:!0}),r=[...t.edges],i=Z(),a=uS(e),{edgeLabels:o,nodes:s}=a,l=new Map,u=e.node()!=null;await Promise.all(t.nodes.map(async e=>{if(e.isGroup)u&&await KOe(s,e),n.setNode(e.id,{...e});else{if(u){let t=await dS(s,e,{config:i,dir:e.dir});l.set(e.id,t)}n.setNode(e.id,{...e})}}));for(let e of r)u&&O_(e)&&await A_(o,e),n.setEdge(e.start,e.end,{...e},e.id),t.edges.some(t=>t.id===e.id)||t.edges.push(e);if(globalThis.mermaidCaptureSizes){let{captureNodeSizes:n}=await Ut(async()=>{let{captureNodeSizes:e}=await Promise.resolve().then(()=>(GOe(),zOe));return{captureNodeSizes:e}},void 0);n(e,t)}return{graph:n,groups:a,nodeElements:l}}function fS({prepareLayout:e,measureLayout:t,runLayoutCore:n,paintLayout:r,afterPaint:i,paintOptions:a}){let o=t??mS;return p(async function(t,s,l,u){let d=s.select(`g`);z_(d,t.markers,t.type,t.diagramId),pS();let f={element:d,helpers:l,options:u};f.preparedLayout=await e?.(t,f);let p=await o(t,f),m=await n(t,f),h={...f,measure:p};r?await r(t,h,m):await hS(t,h,a),await i?.(t,h,m)},`render`)}function pS(){Dye(),zye(),Aye(),tke()}async function mS(e,{element:t}){return await qOe(t,e)}async function hS(e,t,n={}){let{measure:r}=t,{groups:i}=r;for(let r of n.getNodes?.(e,t)??e.nodes)n.skipNode?.(r,t)||await JOe(i,r,t,n);let a=XOe(e.nodes);for(let r of e.edges)ZOe(r,n)||await QOe(i,r,a,e,n,t)}async function JOe(e,t,n,r){t.clusterNode?f_(t):YOe(t,n,r)?await g_(e.clusters,t):f_(t)}function YOe(e,t,n){return e.isGroup===!0&&(n.isCluster?.(e,t)??!0)}function XOe(e){let t=new Map;for(let n of e)n?.id&&t.set(n.id,n);return t}function ZOe(e,t){return e.isLayoutOnly||!!t.skipEdge?.(e)}async function QOe(e,t,n,r,i,a){let o=R_(e.edgePaths,{...t},i.clusterDb??new Map,r.type,gS(t.start,t,n,a,i),gS(t.end,t,n,a,i),r.diagramId,$Oe(t,i));O_(t)&&(E_.has(t.id)||await A_(e.edgeLabels,t),eke(t,o))}function gS(e,t,n,r,i){return i.getEdgeNode?.(e,t,r)??(e?n.get(e)??{}:{})}function $Oe(e,t){return typeof t.skipIntersect==`function`?t.skipIntersect(e):t.skipIntersect??!1}function eke(e,t){let n=t?.updatedPath??t?.originalPath,r=ls(),{subGraphTitleTotalMargin:i}=u_({flowchart:r.flowchart??{}});if(e.label){let r=E_.get(e.id),a=e.x,o=e.y;if(n){let r=Dm.calcLabelPosition(n);y.debug(`Moving label `+e.label+` from (`,a,`,`,o,`) to (`,r.x,`,`,r.y,`) abc88`),t?.updatedPath&&(a=r.x,o=r.y)}r.attr(`transform`,`translate(${a}, ${o+i/2})`)}if(e?.startLabelLeft){let t=D_.get(e.id).startLeft,r=e?.x,i=e?.y;if(n){let t=Dm.calcTerminalLabelPosition(e.arrowTypeStart?10:0,`start_left`,n);r=t.x,i=t.y}t.attr(`transform`,`translate(${r}, ${i})`)}if(e.startLabelRight){let t=D_.get(e.id).startRight,r=e.x,i=e.y;if(n){let t=Dm.calcTerminalLabelPosition(e.arrowTypeStart?10:0,`start_right`,n);r=t.x,i=t.y}t.attr(`transform`,`translate(${r}, ${i})`)}if(e.endLabelLeft){let t=D_.get(e.id).endLeft,r=e.x,i=e.y;if(n){let t=Dm.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,`end_left`,n);r=t.x,i=t.y}t.attr(`transform`,`translate(${r}, ${i})`)}if(e.endLabelRight){let t=D_.get(e.id).endRight,r=e.x,i=e.y;if(n){let t=Dm.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,`end_right`,n);r=t.x,i=t.y}t.attr(`transform`,`translate(${r}, ${i})`)}}var _S,vS,yS,tke,bS,nke,xS,SS,rke,CS,wS,ike,TS,ES,DS,OS,ake,kS=o((()=>{__(),B_(),p_(),c_(),Am(),oc(),S(),h(),cS(),Wt(),p(uS,`createLayoutElementGroups`),p(KOe,`measureGroupLabel`),p(dS,`insertMeasuredNode`),p(qOe,`createGraphWithElements`),_S=new Map,vS=new Map,yS=new Map,tke=p(()=>{vS.clear(),yS.clear(),_S.clear()},`clear`),bS=p((e,t)=>{let n=vS.get(t)||[];return y.trace(`In isDescendant`,t,` `,e,` = `,n.includes(e)),n.includes(e)},`isDescendant`),nke=p((e,t)=>{let n=vS.get(t)||[];return y.info(`Descendants of `,t,` is `,n),y.info(`Edge is `,e),e.v===t||e.w===t?!1:n?n.includes(e.v)||bS(e.v,t)||bS(e.w,t)||n.includes(e.w):(y.debug(`Tilt, `,t,`,not in descendants`),!1)},`edgeInCluster`),xS=p((e,t,n,r)=>{y.debug(`Copying children of `,e,`root`,r,`data`,t.node(e),r);let i=t.children(e)||[];e!==r&&i.push(e),y.debug(`Copying (nodes) clusterId`,e,`nodes`,i),i.forEach(i=>{if(t.children(i).length>0)xS(i,t,n,r);else{let a=t.node(i);y.info(`cp `,i,` to `,r,` with parent `,e),n.setNode(i,a),r!==t.parent(i)&&(y.debug(`Setting parent`,i,t.parent(i)),n.setParent(i,t.parent(i))),e!==r&&i!==e?(y.debug(`Setting parent`,i,e),n.setParent(i,e)):(y.info(`In copy `,e,`root`,r,`data`,t.node(e),r),y.debug(`Not Setting parent for node=`,i,`cluster!==rootId`,e!==r,`node!==clusterId`,i!==e));let o=t.edges(i);y.debug(`Copying Edges`,o),o.forEach(i=>{y.info(`Edge`,i);let a=t.edge(i.v,i.w,i.name);y.info(`Edge data`,a,r);try{nke(i,r)?(y.info(`Copying as `,i.v,i.w,a,i.name),n.setEdge(i.v,i.w,a,i.name),y.info(`newGraph edges `,n.edges(),n.edge(n.edges()[0]))):y.info(`Skipping copy of edge `,i.v,`-->`,i.w,` rootId: `,r,` clusterId:`,e)}catch(e){y.error(e)}})}y.debug(`Removing node`,i),t.removeNode(i)})},`copy`),SS=p((e,t)=>{let n=t.children(e),r=[...n];for(let i of n)yS.set(i,e),r=[...r,...SS(i,t)];return r},`extractDescendants`),rke=p((e,t,n)=>{let r=e.edges().filter(e=>e.v===t||e.w===t),i=e.edges().filter(e=>e.v===n||e.w===n),a=r.map(e=>({v:e.v===t?n:e.v,w:e.w===t?t:e.w})),o=i.map(e=>({v:e.v,w:e.w}));return a.filter(e=>o.some(t=>e.v===t.v&&e.w===t.w))},`findCommonEdges`),CS=p((e,t,n)=>{let r=t.children(e);if(y.trace(`Searching children of id `,e,r),r.length<1)return e;let i;for(let e of r){let r=CS(e,t,n),a=rke(t,n,r);if(r){if(a.length>0)i=r;else return r}}return i},`findNonClusterChild`),wS=p(e=>!_S.has(e)||!_S.get(e).externalConnections?e:_S.has(e)?_S.get(e).id:e,`getAnchorId`),ike=p((e,t)=>{if(!e||t>10){y.debug(`Opting out, no graph `);return}y.debug(`Opting in, graph `),e.nodes().forEach(function(t){e.children(t).length>0&&(y.debug(`Cluster identified`,t,` Replacement id in edges: `,CS(t,e,t)),vS.set(t,SS(t,e)),_S.set(t,{id:CS(t,e,t),clusterData:e.node(t)}))}),e.nodes().forEach(function(t){let n=e.children(t),r=e.edges();n.length>0?(y.debug(`Cluster identified`,t,vS),r.forEach(e=>{bS(e.v,t)^bS(e.w,t)&&(y.debug(`Edge: `,e,` leaves cluster `,t),y.debug(`Descendants of XXX `,t,`: `,vS.get(t)),_S.get(t).externalConnections=!0)})):y.debug(`Not a cluster `,t,vS)});for(let t of _S.keys()){let n=_S.get(t).id,r=e.parent(n);r!==t&&_S.has(r)&&!_S.get(r).externalConnections&&(_S.get(t).id=r);let i=e.edges().some(e=>e.v===t);if(n&&_S.get(t)?.externalConnections&&i&&OS(e,n,t)){let r=ake(e,t,e.parent(n));r&&(_S.get(t).id=r)}}e.edges().forEach(function(t){let n=e.edge(t);y.debug(`Edge `+t.v+` -> `+t.w+`: `+JSON.stringify(t)),y.debug(`Edge `+t.v+` -> `+t.w+`: `+JSON.stringify(e.edge(t)));let r=t.v,i=t.w;if(y.debug(`Fix XXX`,_S,`ids:`,t.v,t.w,`Translating: `,_S.get(t.v),` --- `,_S.get(t.w)),_S.get(t.v)||_S.get(t.w)){if(y.debug(`Fixing and trying - removing XXX`,t.v,t.w,t.name),r=wS(t.v),i=wS(t.w),e.removeEdge(t.v,t.w,t.name),r!==t.v){let i=e.parent(r);_S.get(i).externalConnections=!0,n.fromCluster=t.v}if(i!==t.w){let r=e.parent(i);_S.get(r).externalConnections=!0,n.toCluster=t.w}y.debug(`Fix Replacing with XXX`,r,i,t.name),e.setEdge(r,i,n,t.name)}}),TS(e,0),y.trace(_S)},`adjustClustersAndEdges`),TS=p((e,t)=>{if(t>10){y.error(`Bailing out`);return}let n=e.nodes(),r=!1;for(let t of n){let n=e.children(t);r||=n.length>0}if(!r){y.debug(`Done, no node has children`,e.nodes());return}y.debug(`Nodes = `,n,t);for(let r of n)if(y.debug(`Extracting node`,r,_S,_S.has(r)&&!_S.get(r).externalConnections,!e.parent(r),e.node(r),e.children(`D`),` Depth `,t),!_S.has(r))y.debug(`Not a cluster`,r,t);else if(!_S.get(r).externalConnections&&e.children(r)&&e.children(r).length>0){y.debug(`Cluster without external connections, without a parent and with children`,r,t);let n=e.graph().rankdir===`TB`?`LR`:`TB`;_S.get(r)?.clusterData?.dir&&(n=_S.get(r).clusterData.dir,y.debug(`Fixing dir`,_S.get(r).clusterData.dir,n));let i=new sS({multigraph:!0,compound:!0}).setGraph({rankdir:n,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});xS(r,e,i,r),e.setNode(r,{clusterNode:!0,id:r,clusterData:_S.get(r).clusterData,label:_S.get(r).label,graph:i})}else y.debug(`Cluster ** `,r,` **not meeting the criteria !externalConnections:`,!_S.get(r).externalConnections,` no parent: `,!e.parent(r),` children `,e.children(r)&&e.children(r).length>0,e.children(`D`),t),y.debug(_S);n=e.nodes(),y.debug(`New list of nodes`,n);for(let r of n){let n=e.node(r);y.debug(` Now next level`,r,n),n?.clusterNode&&TS(n.graph,t+1)}},`extractor`),ES=p((e,t)=>{if(t.length===0)return[];let n=Object.assign([],t);return t.forEach(t=>{let r=ES(e,e.children(t));n=[...n,...r]}),n},`sorter`),DS=p(e=>ES(e,e.children()),`sortNodesByHierarchy`),OS=p((e,t,n)=>{let r=e.parent(t);for(;r&&r!==n;){let t=_S.get(r);if(t&&!t.externalConnections)return!0;r=e.parent(r)}return!1},`isNodeInExtractableCluster`),ake=p((e,t,n)=>{let r=e.children(t)??[];for(let i of r){if(i===n||bS(i,n))continue;let r=CS(i,e,t);if(r&&!OS(e,r,t))return r}return null},`findSafeAnchorNode`),p(fS,`createCommonLayoutRenderer`),p(pS,`clearLayoutRenderState`),p(mS,`defaultMeasureLayout`),p(hS,`paintLayoutData`),p(JOe,`paintLayoutNode`),p(YOe,`shouldPaintAsCluster`),p(XOe,`buildNodeLookup`),p(ZOe,`shouldSkipPaintEdge`),p(QOe,`paintLayoutEdge`),p(gS,`getRenderedNode`),p($Oe,`shouldSkipIntersect`),p(eke,`positionRenderedEdgeLabel`)}));function oke(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}function AS(){if(dke)return $S;dke=1;function e(e){return e==null}p(e,`isNothing`);function t(e){return typeof e==`object`&&!!e}p(t,`isObject`);function n(t){return Array.isArray(t)?t:e(t)?[]:[t]}p(n,`toArray`);function r(e,t){if(t){let n=Object.keys(t);for(let r=0,i=n.length;r<i;r+=1){let i=n[r];e[i]=t[i]}}return e}p(r,`extend`);function i(e,t){let n=``;for(let r=0;r<t;r+=1)n+=e;return n}p(i,`repeat`);function a(e){return e===0&&1/e==-1/0}return p(a,`isNegativeZero`),$S.isNothing=e,$S.isObject=t,$S.toArray=n,$S.repeat=i,$S.isNegativeZero=a,$S.extend=r,$S}function jS(){if(fke)return eC;fke=1;function e(e,t){let n=``,r=e.reason||`(unknown reason)`;return e.mark?(e.mark.name&&(n+=`in "`+e.mark.name+`" `),n+=`(`+(e.mark.line+1)+`:`+(e.mark.column+1)+`)`,!t&&e.mark.snippet&&(n+=`
525
+ L0,20`).attr(`stroke-linejoin`,`miter`)},`requirement_arrow_neo`),requirement_contains_neo:p((e,t,n)=>{let{themeVariables:r}=ls(),{strokeWidth:i}=r,a=e.append(`defs`).append(`marker`).attr(`id`,n+`_`+t+`-requirement_containsStart`).attr(`refX`,0).attr(`refY`,10).attr(`markerWidth`,20).attr(`markerHeight`,20).attr(`orient`,`auto`).attr(`markerUnits`,`userSpaceOnUse`).append(`g`);a.append(`circle`).attr(`cx`,10).attr(`cy`,10).attr(`r`,9).attr(`fill`,`none`),a.append(`line`).attr(`x1`,1).attr(`x2`,19).attr(`y1`,10).attr(`y2`,10),a.append(`line`).attr(`y1`,1).attr(`y2`,19).attr(`x1`,10).attr(`x2`,10),a.selectAll(`*`).attr(`stroke-width`,`${i}`)},`requirement_contains_neo`)},z_=Vye})),V_,Uye=o((()=>{V_=typeof global==`object`&&global&&global.Object===Object&&global})),Wye,H_,U_=o((()=>{Uye(),Wye=typeof self==`object`&&self&&self.Object===Object&&self,H_=V_||Wye||Function(`return this`)()})),W_,G_=o((()=>{U_(),W_=H_.Symbol}));function Gye(e){var t=Kye.call(e,q_),n=e[q_];try{e[q_]=void 0;var r=!0}catch{}var i=qye.call(e);return r&&(t?e[q_]=n:delete e[q_]),i}var K_,Kye,qye,q_,Jye=o((()=>{G_(),K_=Object.prototype,Kye=K_.hasOwnProperty,qye=K_.toString,q_=W_?W_.toStringTag:void 0}));function Yye(e){return Xye.call(e)}var Xye,Zye=o((()=>{Xye=Object.prototype.toString}));function J_(e){return e==null?e===void 0?$ye:Qye:Y_&&Y_ in Object(e)?Gye(e):Yye(e)}var Qye,$ye,Y_,X_=o((()=>{G_(),Jye(),Zye(),Qye=`[object Null]`,$ye=`[object Undefined]`,Y_=W_?W_.toStringTag:void 0}));function Z_(e){return typeof e==`object`&&!!e}var Q_=o((()=>{}));function $_(e){return typeof e==`symbol`||Z_(e)&&J_(e)==ebe}var ebe,ev=o((()=>{X_(),Q_(),ebe=`[object Symbol]`}));function tv(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var nv=o((()=>{})),rv,iv=o((()=>{rv=Array.isArray}));function tbe(e){if(typeof e==`string`)return e;if(rv(e))return tv(e,tbe)+``;if($_(e))return ov?ov.call(e):``;var t=e+``;return t==`0`&&1/e==-nbe?`-0`:t}var nbe,av,ov,rbe=o((()=>{G_(),nv(),iv(),ev(),nbe=1/0,av=W_?W_.prototype:void 0,ov=av?av.toString:void 0}));function ibe(e){for(var t=e.length;t--&&abe.test(e.charAt(t)););return t}var abe,obe=o((()=>{abe=/\s/}));function sbe(e){return e&&e.slice(0,ibe(e)+1).replace(cbe,``)}var cbe,lbe=o((()=>{obe(),cbe=/^\s+/}));function sv(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}var cv=o((()=>{}));function ube(e){if(typeof e==`number`)return e;if($_(e))return lv;if(sv(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=sv(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=sbe(e);var n=fbe.test(e);return n||pbe.test(e)?mbe(e.slice(2),n?2:8):dbe.test(e)?lv:+e}var lv,dbe,fbe,pbe,mbe,hbe=o((()=>{lbe(),cv(),ev(),lv=NaN,dbe=/^[-+]0x[0-9a-f]+$/i,fbe=/^0b[01]+$/i,pbe=/^0o[0-7]+$/i,mbe=parseInt}));function uv(e){return e?(e=ube(e),e===dv||e===-dv?(e<0?-1:1)*gbe:e===e?e:0):e===0?e:0}var dv,gbe,fv=o((()=>{hbe(),dv=1/0,gbe=17976931348623157e292}));function _be(e){var t=uv(e),n=t%1;return t===t?n?t-n:t:0}var vbe=o((()=>{fv()}));function pv(e){return e}var mv=o((()=>{}));function hv(e){if(!sv(e))return!1;var t=J_(e);return t==bbe||t==xbe||t==ybe||t==Sbe}var ybe,bbe,xbe,Sbe,gv=o((()=>{X_(),cv(),ybe=`[object AsyncFunction]`,bbe=`[object Function]`,xbe=`[object GeneratorFunction]`,Sbe=`[object Proxy]`})),_v,Cbe=o((()=>{U_(),_v=H_[`__core-js_shared__`]}));function wbe(e){return!!vv&&vv in e}var vv,Tbe=o((()=>{Cbe(),vv=function(){var e=/[^.]+$/.exec(_v&&_v.keys&&_v.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}()}));function yv(e){if(e!=null){try{return Ebe.call(e)}catch{}try{return e+``}catch{}}return``}var Ebe,Dbe=o((()=>{Ebe=Function.prototype.toString}));function Obe(e){return!sv(e)||wbe(e)?!1:(hv(e)?Fbe:Abe).test(yv(e))}var kbe,Abe,jbe,Mbe,Nbe,Pbe,Fbe,Ibe=o((()=>{gv(),Tbe(),cv(),Dbe(),kbe=/[\\^$.*+?()[\]{}|]/g,Abe=/^\[object .+?Constructor\]$/,jbe=Function.prototype,Mbe=Object.prototype,Nbe=jbe.toString,Pbe=Mbe.hasOwnProperty,Fbe=RegExp(`^`+Nbe.call(Pbe).replace(kbe,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`)}));function Lbe(e,t){return e?.[t]}var Rbe=o((()=>{}));function bv(e,t){var n=Lbe(e,t);return Obe(n)?n:void 0}var xv=o((()=>{Ibe(),Rbe()})),Sv,zbe=o((()=>{xv(),U_(),Sv=bv(H_,`WeakMap`)})),Cv,Bbe,Vbe=o((()=>{cv(),Cv=Object.create,Bbe=function(){function e(){}return function(t){if(!sv(t))return{};if(Cv)return Cv(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}()}));function Hbe(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var Ube=o((()=>{}));function Wbe(){}var Gbe=o((()=>{}));function Kbe(e,t){var n=-1,r=e.length;for(t||=Array(r);++n<r;)t[n]=e[n];return t}var wv=o((()=>{}));function qbe(e){var t=0,n=0;return function(){var r=Xbe(),i=Ybe-(r-n);if(n=r,i>0){if(++t>=Jbe)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Jbe,Ybe,Xbe,Zbe=o((()=>{Jbe=800,Ybe=16,Xbe=Date.now}));function Tv(e){return function(){return e}}var Qbe=o((()=>{})),Ev,$be=o((()=>{xv(),Ev=function(){try{var e=bv(Object,`defineProperty`);return e({},``,{}),e}catch{}}()})),exe,txe=o((()=>{Qbe(),$be(),mv(),exe=Ev?function(e,t){return Ev(e,`toString`,{configurable:!0,enumerable:!1,value:Tv(t),writable:!0})}:pv})),Dv,Ov=o((()=>{txe(),Zbe(),Dv=qbe(exe)}));function nxe(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var kv=o((()=>{}));function rxe(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}var Av=o((()=>{}));function ixe(e){return e!==e}var axe=o((()=>{}));function oxe(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}var sxe=o((()=>{}));function cxe(e,t,n){return t===t?oxe(e,t,n):rxe(e,ixe,n)}var lxe=o((()=>{Av(),axe(),sxe()}));function uxe(e,t){return!!(e!=null&&e.length)&&cxe(e,t,0)>-1}var dxe=o((()=>{lxe()}));function jv(e,t){var n=typeof e;return t??=fxe,!!t&&(n==`number`||n!=`symbol`&&pxe.test(e))&&e>-1&&e%1==0&&e<t}var fxe,pxe,Mv=o((()=>{fxe=9007199254740991,pxe=/^(?:0|[1-9]\d*)$/}));function Nv(e,t,n){t==`__proto__`&&Ev?Ev(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var Pv=o((()=>{$be()}));function Fv(e,t){return e===t||e!==e&&t!==t}var Iv=o((()=>{}));function Lv(e,t,n){var r=e[t];(!(mxe.call(e,t)&&Fv(r,n))||n===void 0&&!(t in e))&&Nv(e,t,n)}var mxe,Rv=o((()=>{Pv(),Iv(),mxe=Object.prototype.hasOwnProperty}));function zv(e,t,n,r){var i=!n;n||={};for(var a=-1,o=t.length;++a<o;){var s=t[a],l=r?r(n[s],e[s],s,n,e):void 0;l===void 0&&(l=e[s]),i?Nv(n,s,l):Lv(n,s,l)}return n}var Bv=o((()=>{Rv(),Pv()}));function hxe(e,t,n){return t=Vv(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=Vv(r.length-t,0),o=Array(a);++i<a;)o[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(o),Hbe(e,this,s)}}var Vv,gxe=o((()=>{Ube(),Vv=Math.max}));function Hv(e,t){return Dv(hxe(e,t,pv),e+``)}var Uv=o((()=>{mv(),gxe(),Ov()}));function Wv(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=_xe}var _xe,Gv=o((()=>{_xe=9007199254740991}));function Kv(e){return e!=null&&Wv(e.length)&&!hv(e)}var qv=o((()=>{gv(),Gv()}));function Jv(e,t,n){if(!sv(n))return!1;var r=typeof t;return(r==`number`?Kv(n)&&jv(t,n.length):r==`string`&&t in n)?Fv(n[t],e):!1}var Yv=o((()=>{Iv(),qv(),Mv(),cv()}));function vxe(e){return Hv(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(a=e.length>3&&typeof a==`function`?(i--,a):void 0,o&&Jv(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,a)}return t})}var yxe=o((()=>{Uv(),Yv()}));function Xv(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||bxe)}var bxe,Zv=o((()=>{bxe=Object.prototype}));function xxe(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var Sxe=o((()=>{}));function Cxe(e){return Z_(e)&&J_(e)==wxe}var wxe,Txe=o((()=>{X_(),Q_(),wxe=`[object Arguments]`})),Qv,Exe,Dxe,$v,ey=o((()=>{Txe(),Q_(),Qv=Object.prototype,Exe=Qv.hasOwnProperty,Dxe=Qv.propertyIsEnumerable,$v=Cxe(function(){return arguments}())?Cxe:function(e){return Z_(e)&&Exe.call(e,`callee`)&&!Dxe.call(e,`callee`)}}));function Oxe(){return!1}var kxe=o((()=>{})),ty,ny,ry,iy,ay=o((()=>{U_(),kxe(),ty=typeof exports==`object`&&exports&&!exports.nodeType&&exports,ny=ty&&typeof module==`object`&&module&&!module.nodeType&&module,ry=ny&&ny.exports===ty?H_.Buffer:void 0,iy=(ry?ry.isBuffer:void 0)||Oxe}));function Axe(e){return Z_(e)&&Wv(e.length)&&!!oy[J_(e)]}var jxe,Mxe,Nxe,Pxe,Fxe,Ixe,Lxe,Rxe,zxe,Bxe,Vxe,Hxe,Uxe,Wxe,Gxe,Kxe,qxe,Jxe,Yxe,Xxe,Zxe,Qxe,$xe,eSe,oy,tSe=o((()=>{X_(),Gv(),Q_(),jxe=`[object Arguments]`,Mxe=`[object Array]`,Nxe=`[object Boolean]`,Pxe=`[object Date]`,Fxe=`[object Error]`,Ixe=`[object Function]`,Lxe=`[object Map]`,Rxe=`[object Number]`,zxe=`[object Object]`,Bxe=`[object RegExp]`,Vxe=`[object Set]`,Hxe=`[object String]`,Uxe=`[object WeakMap]`,Wxe=`[object ArrayBuffer]`,Gxe=`[object DataView]`,Kxe=`[object Float32Array]`,qxe=`[object Float64Array]`,Jxe=`[object Int8Array]`,Yxe=`[object Int16Array]`,Xxe=`[object Int32Array]`,Zxe=`[object Uint8Array]`,Qxe=`[object Uint8ClampedArray]`,$xe=`[object Uint16Array]`,eSe=`[object Uint32Array]`,oy={},oy[Kxe]=oy[qxe]=oy[Jxe]=oy[Yxe]=oy[Xxe]=oy[Zxe]=oy[Qxe]=oy[$xe]=oy[eSe]=!0,oy[jxe]=oy[Mxe]=oy[Wxe]=oy[Nxe]=oy[Gxe]=oy[Pxe]=oy[Fxe]=oy[Ixe]=oy[Lxe]=oy[Rxe]=oy[zxe]=oy[Bxe]=oy[Vxe]=oy[Hxe]=oy[Uxe]=!1}));function sy(e){return function(t){return e(t)}}var cy=o((()=>{})),ly,uy,dy,fy,py=o((()=>{Uye(),ly=typeof exports==`object`&&exports&&!exports.nodeType&&exports,uy=ly&&typeof module==`object`&&module&&!module.nodeType&&module,dy=uy&&uy.exports===ly&&V_.process,fy=function(){try{return uy&&uy.require&&uy.require(`util`).types||dy&&dy.binding&&dy.binding(`util`)}catch{}}()})),my,hy,gy=o((()=>{tSe(),cy(),py(),my=fy&&fy.isTypedArray,hy=my?sy(my):Axe}));function _y(e,t){var n=rv(e),r=!n&&$v(e),i=!n&&!r&&iy(e),a=!n&&!r&&!i&&hy(e),o=n||r||i||a,s=o?xxe(e.length,String):[],l=s.length;for(var u in e)(t||vy.call(e,u))&&!(o&&(u==`length`||i&&(u==`offset`||u==`parent`)||a&&(u==`buffer`||u==`byteLength`||u==`byteOffset`)||jv(u,l)))&&s.push(u);return s}var vy,yy=o((()=>{Sxe(),ey(),iv(),ay(),Mv(),gy(),vy=Object.prototype.hasOwnProperty}));function by(e,t){return function(n){return e(t(n))}}var xy=o((()=>{})),Sy,nSe=o((()=>{xy(),Sy=by(Object.keys,Object)}));function Cy(e){if(!Xv(e))return Sy(e);var t=[];for(var n in Object(e))wy.call(e,n)&&n!=`constructor`&&t.push(n);return t}var wy,Ty=o((()=>{Zv(),nSe(),wy=Object.prototype.hasOwnProperty}));function Ey(e){return Kv(e)?_y(e):Cy(e)}var Dy=o((()=>{yy(),Ty(),qv()}));function rSe(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var iSe=o((()=>{}));function aSe(e){if(!sv(e))return rSe(e);var t=Xv(e),n=[];for(var r in e)r==`constructor`&&(t||!Oy.call(e,r))||n.push(r);return n}var Oy,oSe=o((()=>{cv(),Zv(),iSe(),Oy=Object.prototype.hasOwnProperty}));function ky(e){return Kv(e)?_y(e,!0):aSe(e)}var Ay=o((()=>{yy(),oSe(),qv()}));function jy(e,t){if(rv(e))return!1;var n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||$_(e)?!0:Ny.test(e)||!My.test(e)||t!=null&&e in Object(t)}var My,Ny,Py=o((()=>{iv(),ev(),My=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ny=/^\w*$/})),Fy,Iy=o((()=>{xv(),Fy=bv(Object,`create`)}));function sSe(){this.__data__=Fy?Fy(null):{},this.size=0}var cSe=o((()=>{Iy()}));function lSe(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}var uSe=o((()=>{}));function dSe(e){var t=this.__data__;if(Fy){var n=t[e];return n===Ly?void 0:n}return Ry.call(t,e)?t[e]:void 0}var Ly,Ry,fSe=o((()=>{Iy(),Ly=`__lodash_hash_undefined__`,Ry=Object.prototype.hasOwnProperty}));function pSe(e){var t=this.__data__;return Fy?t[e]!==void 0:zy.call(t,e)}var zy,mSe=o((()=>{Iy(),zy=Object.prototype.hasOwnProperty}));function hSe(e,t){var n=this.__data__;return this.size+=+!this.has(e),n[e]=Fy&&t===void 0?By:t,this}var By,gSe=o((()=>{Iy(),By=`__lodash_hash_undefined__`}));function Vy(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}var _Se=o((()=>{cSe(),uSe(),fSe(),mSe(),gSe(),Vy.prototype.clear=sSe,Vy.prototype.delete=lSe,Vy.prototype.get=dSe,Vy.prototype.has=pSe,Vy.prototype.set=hSe}));function vSe(){this.__data__=[],this.size=0}var ySe=o((()=>{}));function Hy(e,t){for(var n=e.length;n--;)if(Fv(e[n][0],t))return n;return-1}var Uy=o((()=>{Iv()}));function bSe(e){var t=this.__data__,n=Hy(t,e);return n<0?!1:(n==t.length-1?t.pop():Wy.call(t,n,1),--this.size,!0)}var Wy,xSe=o((()=>{Uy(),Wy=Array.prototype.splice}));function SSe(e){var t=this.__data__,n=Hy(t,e);return n<0?void 0:t[n][1]}var CSe=o((()=>{Uy()}));function wSe(e){return Hy(this.__data__,e)>-1}var TSe=o((()=>{Uy()}));function ESe(e,t){var n=this.__data__,r=Hy(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var DSe=o((()=>{Uy()}));function Gy(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}var Ky=o((()=>{ySe(),xSe(),CSe(),TSe(),DSe(),Gy.prototype.clear=vSe,Gy.prototype.delete=bSe,Gy.prototype.get=SSe,Gy.prototype.has=wSe,Gy.prototype.set=ESe})),qy,Jy=o((()=>{xv(),U_(),qy=bv(H_,`Map`)}));function OSe(){this.size=0,this.__data__={hash:new Vy,map:new(qy||Gy),string:new Vy}}var kSe=o((()=>{_Se(),Ky(),Jy()}));function ASe(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}var jSe=o((()=>{}));function Yy(e,t){var n=e.__data__;return ASe(t)?n[typeof t==`string`?`string`:`hash`]:n.map}var Xy=o((()=>{jSe()}));function MSe(e){var t=Yy(this,e).delete(e);return this.size-=+!!t,t}var NSe=o((()=>{Xy()}));function PSe(e){return Yy(this,e).get(e)}var FSe=o((()=>{Xy()}));function ISe(e){return Yy(this,e).has(e)}var LSe=o((()=>{Xy()}));function RSe(e,t){var n=Yy(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var zSe=o((()=>{Xy()}));function Zy(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}var Qy=o((()=>{kSe(),NSe(),FSe(),LSe(),zSe(),Zy.prototype.clear=OSe,Zy.prototype.delete=MSe,Zy.prototype.get=PSe,Zy.prototype.has=ISe,Zy.prototype.set=RSe}));function $y(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw TypeError(BSe);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new($y.Cache||Zy),n}var BSe,VSe=o((()=>{Qy(),BSe=`Expected a function`,$y.Cache=Zy}));function HSe(e){var t=$y(e,function(e){return n.size===USe&&n.clear(),e}),n=t.cache;return t}var USe,WSe=o((()=>{VSe(),USe=500})),GSe,KSe,qSe,JSe=o((()=>{WSe(),GSe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,KSe=/\\(\\)?/g,qSe=HSe(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(GSe,function(e,n,r,i){t.push(r?i.replace(KSe,`$1`):n||e)}),t})}));function YSe(e){return e==null?``:tbe(e)}var eb=o((()=>{rbe()}));function tb(e,t){return rv(e)?e:jy(e,t)?[e]:qSe(YSe(e))}var nb=o((()=>{iv(),Py(),JSe(),eb()}));function rb(e){if(typeof e==`string`||$_(e))return e;var t=e+``;return t==`0`&&1/e==-XSe?`-0`:t}var XSe,ib=o((()=>{ev(),XSe=1/0}));function ab(e,t){t=tb(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[rb(t[n++])];return n&&n==r?e:void 0}var ob=o((()=>{nb(),ib()}));function ZSe(e,t,n){var r=e==null?void 0:ab(e,t);return r===void 0?n:r}var QSe=o((()=>{ob()}));function sb(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var cb=o((()=>{}));function $Se(e){return rv(e)||$v(e)||!!(lb&&e&&e[lb])}var lb,eCe=o((()=>{G_(),ey(),iv(),lb=W_?W_.isConcatSpreadable:void 0}));function ub(e,t,n,r,i){var a=-1,o=e.length;for(n||=$Se,i||=[];++a<o;){var s=e[a];t>0&&n(s)?t>1?ub(s,t-1,n,r,i):sb(i,s):r||(i[i.length]=s)}return i}var db=o((()=>{cb(),eCe()}));function fb(e){return e!=null&&e.length?ub(e,1):[]}var tCe=o((()=>{db()}));function nCe(e){return Dv(hxe(e,void 0,fb),e+``)}var rCe=o((()=>{tCe(),gxe(),Ov()})),pb,mb=o((()=>{xy(),pb=by(Object.getPrototypeOf,Object)}));function iCe(e){if(!Z_(e)||J_(e)!=aCe)return!1;var t=pb(e);if(t===null)return!0;var n=cCe.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&hb.call(n)==lCe}var aCe,oCe,sCe,hb,cCe,lCe,uCe=o((()=>{X_(),mb(),Q_(),aCe=`[object Object]`,oCe=Function.prototype,sCe=Object.prototype,hb=oCe.toString,cCe=sCe.hasOwnProperty,lCe=hb.call(Object)})),dCe=o((()=>{}));function fCe(e,t,n,r){var i=-1,a=e==null?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}var pCe=o((()=>{}));function mCe(){this.__data__=new Gy,this.size=0}var hCe=o((()=>{Ky()}));function gCe(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var _Ce=o((()=>{}));function vCe(e){return this.__data__.get(e)}var yCe=o((()=>{}));function bCe(e){return this.__data__.has(e)}var xCe=o((()=>{}));function SCe(e,t){var n=this.__data__;if(n instanceof Gy){var r=n.__data__;if(!qy||r.length<CCe-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Zy(r)}return n.set(e,t),this.size=n.size,this}var CCe,wCe=o((()=>{Ky(),Jy(),Qy(),CCe=200}));function gb(e){var t=this.__data__=new Gy(e);this.size=t.size}var _b=o((()=>{Ky(),hCe(),_Ce(),yCe(),xCe(),wCe(),gb.prototype.clear=mCe,gb.prototype.delete=gCe,gb.prototype.get=vCe,gb.prototype.has=bCe,gb.prototype.set=SCe}));function TCe(e,t){return e&&zv(t,Ey(t),e)}var ECe=o((()=>{Bv(),Dy()}));function DCe(e,t){return e&&zv(t,ky(t),e)}var OCe=o((()=>{Bv(),Ay()}));function kCe(e,t){if(t)return e.slice();var n=e.length,r=xb?xb(n):new e.constructor(n);return e.copy(r),r}var vb,yb,bb,xb,ACe=o((()=>{U_(),vb=typeof exports==`object`&&exports&&!exports.nodeType&&exports,yb=vb&&typeof module==`object`&&module&&!module.nodeType&&module,bb=yb&&yb.exports===vb?H_.Buffer:void 0,xb=bb?bb.allocUnsafe:void 0}));function jCe(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}var Sb=o((()=>{}));function MCe(){return[]}var Cb=o((()=>{})),NCe,wb,Tb,Eb=o((()=>{Sb(),Cb(),NCe=Object.prototype.propertyIsEnumerable,wb=Object.getOwnPropertySymbols,Tb=wb?function(e){return e==null?[]:(e=Object(e),jCe(wb(e),function(t){return NCe.call(e,t)}))}:MCe}));function PCe(e,t){return zv(e,Tb(e),t)}var FCe=o((()=>{Bv(),Eb()})),Db,ICe=o((()=>{cb(),mb(),Eb(),Cb(),Db=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)sb(t,Tb(e)),e=pb(e);return t}:MCe}));function LCe(e,t){return zv(e,Db(e),t)}var RCe=o((()=>{Bv(),ICe()}));function zCe(e,t,n){var r=t(e);return rv(e)?r:sb(r,n(e))}var BCe=o((()=>{cb(),iv()}));function Ob(e){return zCe(e,Ey,Tb)}var VCe=o((()=>{BCe(),Eb(),Dy()}));function HCe(e){return zCe(e,ky,Db)}var UCe=o((()=>{BCe(),ICe(),Ay()})),kb,WCe=o((()=>{xv(),U_(),kb=bv(H_,`DataView`)})),Ab,GCe=o((()=>{xv(),U_(),Ab=bv(H_,`Promise`)})),jb,KCe=o((()=>{xv(),U_(),jb=bv(H_,`Set`)})),Mb,qCe,Nb,Pb,Fb,Ib,JCe,YCe,XCe,ZCe,QCe,Lb,Rb,zb=o((()=>{WCe(),Jy(),GCe(),KCe(),zbe(),X_(),Dbe(),Mb=`[object Map]`,qCe=`[object Object]`,Nb=`[object Promise]`,Pb=`[object Set]`,Fb=`[object WeakMap]`,Ib=`[object DataView]`,JCe=yv(kb),YCe=yv(qy),XCe=yv(Ab),ZCe=yv(jb),QCe=yv(Sv),Lb=J_,(kb&&Lb(new kb(new ArrayBuffer(1)))!=Ib||qy&&Lb(new qy)!=Mb||Ab&&Lb(Ab.resolve())!=Nb||jb&&Lb(new jb)!=Pb||Sv&&Lb(new Sv)!=Fb)&&(Lb=function(e){var t=J_(e),n=t==qCe?e.constructor:void 0,r=n?yv(n):``;if(r)switch(r){case JCe:return Ib;case YCe:return Mb;case XCe:return Nb;case ZCe:return Pb;case QCe:return Fb}return t}),Rb=Lb}));function $Ce(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]==`string`&&ewe.call(e,`index`)&&(n.index=e.index,n.input=e.input),n}var ewe,twe=o((()=>{ewe=Object.prototype.hasOwnProperty})),Bb,nwe=o((()=>{U_(),Bb=H_.Uint8Array}));function Vb(e){var t=new e.constructor(e.byteLength);return new Bb(t).set(new Bb(e)),t}var Hb=o((()=>{nwe()}));function rwe(e,t){var n=t?Vb(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var iwe=o((()=>{Hb()}));function awe(e){var t=new e.constructor(e.source,owe.exec(e));return t.lastIndex=e.lastIndex,t}var owe,swe=o((()=>{owe=/\w*$/}));function cwe(e){return Wb?Object(Wb.call(e)):{}}var Ub,Wb,lwe=o((()=>{G_(),Ub=W_?W_.prototype:void 0,Wb=Ub?Ub.valueOf:void 0}));function uwe(e,t){var n=t?Vb(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var dwe=o((()=>{Hb()}));function fwe(e,t,n){var r=e.constructor;switch(t){case xwe:return Vb(e);case pwe:case mwe:return new r(+e);case Swe:return rwe(e,n);case Cwe:case wwe:case Twe:case Ewe:case Dwe:case Owe:case kwe:case Awe:case jwe:return uwe(e,n);case hwe:return new r;case gwe:case ywe:return new r(e);case _we:return awe(e);case vwe:return new r;case bwe:return cwe(e)}}var pwe,mwe,hwe,gwe,_we,vwe,ywe,bwe,xwe,Swe,Cwe,wwe,Twe,Ewe,Dwe,Owe,kwe,Awe,jwe,Mwe=o((()=>{Hb(),iwe(),swe(),lwe(),dwe(),pwe=`[object Boolean]`,mwe=`[object Date]`,hwe=`[object Map]`,gwe=`[object Number]`,_we=`[object RegExp]`,vwe=`[object Set]`,ywe=`[object String]`,bwe=`[object Symbol]`,xwe=`[object ArrayBuffer]`,Swe=`[object DataView]`,Cwe=`[object Float32Array]`,wwe=`[object Float64Array]`,Twe=`[object Int8Array]`,Ewe=`[object Int16Array]`,Dwe=`[object Int32Array]`,Owe=`[object Uint8Array]`,kwe=`[object Uint8ClampedArray]`,Awe=`[object Uint16Array]`,jwe=`[object Uint32Array]`}));function Nwe(e){return typeof e.constructor==`function`&&!Xv(e)?Bbe(pb(e)):{}}var Pwe=o((()=>{Vbe(),mb(),Zv()}));function Fwe(e){return Z_(e)&&Rb(e)==Iwe}var Iwe,Lwe=o((()=>{zb(),Q_(),Iwe=`[object Map]`})),Gb,Rwe,zwe=o((()=>{Lwe(),cy(),py(),Gb=fy&&fy.isMap,Rwe=Gb?sy(Gb):Fwe}));function Bwe(e){return Z_(e)&&Rb(e)==Vwe}var Vwe,Hwe=o((()=>{zb(),Q_(),Vwe=`[object Set]`})),Kb,Uwe,Wwe=o((()=>{Hwe(),cy(),py(),Kb=fy&&fy.isSet,Uwe=Kb?sy(Kb):Bwe}));function qb(e,t,n,r,i,a){var o,s=t&Gwe,l=t&Kwe,u=t&qwe;if(n&&(o=i?n(e,r,i,a):n(e)),o!==void 0)return o;if(!sv(e))return e;var d=rv(e);if(d){if(o=$Ce(e),!s)return Kbe(e,o)}else{var f=Rb(e),p=f==Yb||f==Qwe;if(iy(e))return kCe(e,s);if(f==Xb||f==Jb||p&&!i){if(o=l||p?{}:Nwe(e),!s)return l?LCe(e,DCe(o,e)):PCe(e,TCe(o,e))}else{if(!Zb[f])return i?e:{};o=fwe(e,f,s)}}a||=new gb;var m=a.get(e);if(m)return m;a.set(e,o),Uwe(e)?e.forEach(function(r){o.add(qb(r,t,n,r,e,a))}):Rwe(e)&&e.forEach(function(r,i){o.set(i,qb(r,t,n,i,e,a))});var h=d?void 0:(u?l?HCe:Ob:l?ky:Ey)(e);return nxe(h||e,function(r,i){h&&(i=r,r=e[i]),Lv(o,i,qb(r,t,n,i,e,a))}),o}var Gwe,Kwe,qwe,Jb,Jwe,Ywe,Xwe,Zwe,Yb,Qwe,$we,eTe,Xb,tTe,nTe,rTe,iTe,aTe,oTe,sTe,cTe,lTe,uTe,dTe,fTe,pTe,mTe,hTe,gTe,Zb,_Te=o((()=>{_b(),kv(),Rv(),ECe(),OCe(),ACe(),wv(),FCe(),RCe(),VCe(),UCe(),zb(),twe(),Mwe(),Pwe(),iv(),ay(),zwe(),cv(),Wwe(),Dy(),Ay(),Gwe=1,Kwe=2,qwe=4,Jb=`[object Arguments]`,Jwe=`[object Array]`,Ywe=`[object Boolean]`,Xwe=`[object Date]`,Zwe=`[object Error]`,Yb=`[object Function]`,Qwe=`[object GeneratorFunction]`,$we=`[object Map]`,eTe=`[object Number]`,Xb=`[object Object]`,tTe=`[object RegExp]`,nTe=`[object Set]`,rTe=`[object String]`,iTe=`[object Symbol]`,aTe=`[object WeakMap]`,oTe=`[object ArrayBuffer]`,sTe=`[object DataView]`,cTe=`[object Float32Array]`,lTe=`[object Float64Array]`,uTe=`[object Int8Array]`,dTe=`[object Int16Array]`,fTe=`[object Int32Array]`,pTe=`[object Uint8Array]`,mTe=`[object Uint8ClampedArray]`,hTe=`[object Uint16Array]`,gTe=`[object Uint32Array]`,Zb={},Zb[Jb]=Zb[Jwe]=Zb[oTe]=Zb[sTe]=Zb[Ywe]=Zb[Xwe]=Zb[cTe]=Zb[lTe]=Zb[uTe]=Zb[dTe]=Zb[fTe]=Zb[$we]=Zb[eTe]=Zb[Xb]=Zb[tTe]=Zb[nTe]=Zb[rTe]=Zb[iTe]=Zb[pTe]=Zb[mTe]=Zb[hTe]=Zb[gTe]=!0,Zb[Zwe]=Zb[Yb]=Zb[aTe]=!1}));function vTe(e){return qb(e,yTe|bTe)}var yTe,bTe,xTe=o((()=>{_Te(),yTe=1,bTe=4}));function STe(e){return this.__data__.set(e,CTe),this}var CTe,wTe=o((()=>{CTe=`__lodash_hash_undefined__`}));function TTe(e){return this.__data__.has(e)}var ETe=o((()=>{}));function Qb(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Zy;++t<n;)this.add(e[t])}var $b=o((()=>{Qy(),wTe(),ETe(),Qb.prototype.add=Qb.prototype.push=STe,Qb.prototype.has=TTe}));function DTe(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var OTe=o((()=>{}));function kTe(e,t){return e.has(t)}var ex=o((()=>{}));function ATe(e,t,n,r,i,a){var o=n&jTe,s=e.length,l=t.length;if(s!=l&&!(o&&l>s))return!1;var u=a.get(e),d=a.get(t);if(u&&d)return u==t&&d==e;var f=-1,p=!0,m=n&MTe?new Qb:void 0;for(a.set(e,t),a.set(t,e);++f<s;){var h=e[f],g=t[f];if(r)var _=o?r(g,h,f,t,e,a):r(h,g,f,e,t,a);if(_!==void 0){if(_)continue;p=!1;break}if(m){if(!DTe(t,function(e,t){if(!kTe(m,t)&&(h===e||i(h,e,n,r,a)))return m.push(t)})){p=!1;break}}else if(!(h===g||i(h,g,n,r,a))){p=!1;break}}return a.delete(e),a.delete(t),p}var jTe,MTe,NTe=o((()=>{$b(),OTe(),ex(),jTe=1,MTe=2}));function PTe(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}var FTe=o((()=>{}));function tx(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var nx=o((()=>{}));function ITe(e,t,n,r,i,a,o){switch(n){case YTe:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case JTe:return!(e.byteLength!=t.byteLength||!a(new Bb(e),new Bb(t)));case zTe:case BTe:case UTe:return Fv(+e,+t);case VTe:return e.name==t.name&&e.message==t.message;case WTe:case KTe:return e==t+``;case HTe:var s=PTe;case GTe:var l=r&LTe;if(s||=tx,e.size!=t.size&&!l)return!1;var u=o.get(e);if(u)return u==t;r|=RTe,o.set(e,t);var d=ATe(s(e),s(t),r,i,a,o);return o.delete(e),d;case qTe:if(ix)return ix.call(e)==ix.call(t)}return!1}var LTe,RTe,zTe,BTe,VTe,HTe,UTe,WTe,GTe,KTe,qTe,JTe,YTe,rx,ix,XTe=o((()=>{G_(),nwe(),Iv(),NTe(),FTe(),nx(),LTe=1,RTe=2,zTe=`[object Boolean]`,BTe=`[object Date]`,VTe=`[object Error]`,HTe=`[object Map]`,UTe=`[object Number]`,WTe=`[object RegExp]`,GTe=`[object Set]`,KTe=`[object String]`,qTe=`[object Symbol]`,JTe=`[object ArrayBuffer]`,YTe=`[object DataView]`,rx=W_?W_.prototype:void 0,ix=rx?rx.valueOf:void 0}));function ZTe(e,t,n,r,i,a){var o=n&QTe,s=Ob(e),l=s.length;if(l!=Ob(t).length&&!o)return!1;for(var u=l;u--;){var d=s[u];if(!(o?d in t:$Te.call(t,d)))return!1}var f=a.get(e),p=a.get(t);if(f&&p)return f==t&&p==e;var m=!0;a.set(e,t),a.set(t,e);for(var h=o;++u<l;){d=s[u];var g=e[d],_=t[d];if(r)var v=o?r(_,g,d,t,e,a):r(g,_,d,e,t,a);if(!(v===void 0?g===_||i(g,_,n,r,a):v)){m=!1;break}h||=d==`constructor`}if(m&&!h){var y=e.constructor,b=t.constructor;y!=b&&`constructor`in e&&`constructor`in t&&!(typeof y==`function`&&y instanceof y&&typeof b==`function`&&b instanceof b)&&(m=!1)}return a.delete(e),a.delete(t),m}var QTe,$Te,eEe=o((()=>{VCe(),QTe=1,$Te=Object.prototype.hasOwnProperty}));function tEe(e,t,n,r,i,a){var o=rv(e),s=rv(t),l=o?ox:Rb(e),u=s?ox:Rb(t);l=l==ax?sx:l,u=u==ax?sx:u;var d=l==sx,f=u==sx,p=l==u;if(p&&iy(e)){if(!iy(t))return!1;o=!0,d=!1}if(p&&!d)return a||=new gb,o||hy(e)?ATe(e,t,n,r,i,a):ITe(e,t,l,n,r,i,a);if(!(n&nEe)){var m=d&&cx.call(e,`__wrapped__`),h=f&&cx.call(t,`__wrapped__`);if(m||h){var g=m?e.value():e,_=h?t.value():t;return a||=new gb,i(g,_,n,r,a)}}return p?(a||=new gb,ZTe(e,t,n,r,i,a)):!1}var nEe,ax,ox,sx,cx,rEe=o((()=>{_b(),NTe(),XTe(),eEe(),zb(),iv(),ay(),gy(),nEe=1,ax=`[object Arguments]`,ox=`[object Array]`,sx=`[object Object]`,cx=Object.prototype.hasOwnProperty}));function lx(e,t,n,r,i){return e===t?!0:e==null||t==null||!Z_(e)&&!Z_(t)?e!==e&&t!==t:tEe(e,t,n,r,lx,i)}var ux=o((()=>{rEe(),Q_()}));function iEe(e,t,n,r){var i=n.length,a=i,o=!r;if(e==null)return!a;for(e=Object(e);i--;){var s=n[i];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){s=n[i];var l=s[0],u=e[l],d=s[1];if(o&&s[2]){if(u===void 0&&!(l in e))return!1}else{var f=new gb;if(r)var p=r(u,d,l,e,t,f);if(!(p===void 0?lx(d,u,aEe|oEe,r,f):p))return!1}}return!0}var aEe,oEe,sEe=o((()=>{_b(),ux(),aEe=1,oEe=2}));function cEe(e){return e===e&&!sv(e)}var lEe=o((()=>{cv()}));function uEe(e){for(var t=Ey(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,cEe(i)]}return t}var dEe=o((()=>{lEe(),Dy()}));function fEe(e,t){return function(n){return n!=null&&n[e]===t&&(t!==void 0||e in Object(n))}}var pEe=o((()=>{}));function mEe(e){var t=uEe(e);return t.length==1&&t[0][2]?fEe(t[0][0],t[0][1]):function(n){return n===e||iEe(n,e,t)}}var hEe=o((()=>{sEe(),dEe(),pEe()}));function gEe(e,t){return e!=null&&t in Object(e)}var _Ee=o((()=>{}));function vEe(e,t,n){t=tb(t,e);for(var r=-1,i=t.length,a=!1;++r<i;){var o=rb(t[r]);if(!(a=e!=null&&n(e,o)))break;e=e[o]}return a||++r!=i?a:(i=e==null?0:e.length,!!i&&Wv(i)&&jv(o,i)&&(rv(e)||$v(e)))}var yEe=o((()=>{nb(),ey(),iv(),Mv(),Gv(),ib()}));function bEe(e,t){return e!=null&&vEe(e,t,gEe)}var dx=o((()=>{_Ee(),yEe()}));function xEe(e,t){return jy(e)&&cEe(t)?fEe(rb(e),t):function(n){var r=ZSe(n,e);return r===void 0&&r===t?bEe(n,e):lx(t,r,SEe|CEe)}}var SEe,CEe,wEe=o((()=>{ux(),QSe(),dx(),Py(),lEe(),pEe(),ib(),SEe=1,CEe=2}));function TEe(e){return function(t){return t?.[e]}}var fx=o((()=>{}));function EEe(e){return function(t){return ab(t,e)}}var DEe=o((()=>{ob()}));function OEe(e){return jy(e)?TEe(rb(e)):EEe(e)}var kEe=o((()=>{fx(),DEe(),Py(),ib()}));function px(e){return typeof e==`function`?e:e==null?pv:typeof e==`object`?rv(e)?xEe(e[0],e[1]):mEe(e):OEe(e)}var mx=o((()=>{hEe(),wEe(),mv(),iv(),kEe()}));function AEe(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var l=o[e?s:++i];if(n(a[l],l,a)===!1)break}return t}}var jEe=o((()=>{})),hx,gx=o((()=>{jEe(),hx=AEe()}));function _x(e,t){return e&&hx(e,t,Ey)}var vx=o((()=>{gx(),Dy()}));function MEe(e,t){return function(n,r){if(n==null)return n;if(!Kv(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=Object(n);(t?a--:++a<i)&&r(o[a],a,o)!==!1;);return n}}var NEe=o((()=>{qv()})),yx,bx=o((()=>{vx(),NEe(),yx=MEe(_x)})),xx,PEe=o((()=>{U_(),xx=function(){return H_.Date.now()}})),Sx,FEe,IEe,LEe=o((()=>{Uv(),Iv(),Yv(),Ay(),Sx=Object.prototype,FEe=Sx.hasOwnProperty,IEe=Hv(function(e,t){e=Object(e);var n=-1,r=t.length,i=r>2?t[2]:void 0;for(i&&Jv(t[0],t[1],i)&&(r=1);++n<r;)for(var a=t[n],o=ky(a),s=-1,l=o.length;++s<l;){var u=o[s],d=e[u];(d===void 0||Fv(d,Sx[u])&&!FEe.call(e,u))&&(e[u]=a[u])}return e})}));function Cx(e,t,n){(n!==void 0&&!Fv(e[t],n)||n===void 0&&!(t in e))&&Nv(e,t,n)}var REe=o((()=>{Pv(),Iv()}));function zEe(e){return Z_(e)&&Kv(e)}var wx=o((()=>{qv(),Q_()}));function Tx(e,t){if((t!==`constructor`||typeof e[t]!=`function`)&&t!=`__proto__`)return e[t]}var BEe=o((()=>{}));function VEe(e){return zv(e,ky(e))}var HEe=o((()=>{Bv(),Ay()}));function UEe(e,t,n,r,i,a,o){var s=Tx(e,n),l=Tx(t,n),u=o.get(l);if(u){Cx(e,n,u);return}var d=a?a(s,l,n+``,e,t,o):void 0,f=d===void 0;if(f){var p=rv(l),m=!p&&iy(l),h=!p&&!m&&hy(l);d=l,p||m||h?rv(s)?d=s:zEe(s)?d=Kbe(s):m?(f=!1,d=kCe(l,!0)):h?(f=!1,d=uwe(l,!0)):d=[]:iCe(l)||$v(l)?(d=s,$v(s)?d=VEe(s):(!sv(s)||hv(s))&&(d=Nwe(l))):f=!1}f&&(o.set(l,d),i(d,l,r,a,o),o.delete(l)),Cx(e,n,d)}var WEe=o((()=>{REe(),ACe(),dwe(),wv(),Pwe(),ey(),iv(),wx(),ay(),gv(),cv(),uCe(),gy(),BEe(),HEe()}));function GEe(e,t,n,r,i){e!==t&&hx(t,function(a,o){if(i||=new gb,sv(a))UEe(e,t,o,n,GEe,r,i);else{var s=r?r(Tx(e,o),a,o+``,e,t,i):void 0;s===void 0&&(s=a),Cx(e,o,s)}},ky)}var KEe=o((()=>{_b(),REe(),gx(),WEe(),cv(),Ay(),BEe()}));function qEe(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}var JEe=o((()=>{}));function Ex(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var YEe=o((()=>{}));function Dx(e){return typeof e==`function`?e:pv}var Ox=o((()=>{mv()}));function kx(e,t){return(rv(e)?nxe:yx)(e,Dx(t))}var XEe=o((()=>{kv(),bx(),Ox(),iv()})),ZEe=o((()=>{XEe()}));function QEe(e,t){var n=[];return yx(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}var $Ee=o((()=>{bx()}));function Ax(e,t){return(rv(e)?jCe:QEe)(e,px(t,3))}var eDe=o((()=>{Sb(),$Ee(),mx(),iv()}));function tDe(e){return function(t,n,r){var i=Object(t);if(!Kv(t)){var a=px(n,3);t=Ey(t),n=function(e){return a(i[e],e,i)}}var o=e(t,n,r);return o>-1?i[a?t[o]:o]:void 0}}var nDe=o((()=>{mx(),qv(),Dy()}));function rDe(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:_be(n);return i<0&&(i=iDe(r+i,0)),rxe(e,px(t,3),i)}var iDe,aDe=o((()=>{Av(),mx(),vbe(),iDe=Math.max})),jx,oDe=o((()=>{nDe(),aDe(),jx=tDe(rDe)}));function sDe(e,t){var n=-1,r=Kv(e)?Array(e.length):[];return yx(e,function(e,i,a){r[++n]=t(e,i,a)}),r}var cDe=o((()=>{bx(),qv()}));function Mx(e,t){return(rv(e)?tv:sDe)(e,px(t,3))}var lDe=o((()=>{nv(),mx(),cDe(),iv()}));function uDe(e,t){return e==null?e:hx(e,Dx(t),ky)}var dDe=o((()=>{gx(),Ox(),Ay()}));function fDe(e,t){return e&&_x(e,Dx(t))}var pDe=o((()=>{vx(),Ox()}));function mDe(e,t){return e>t}var hDe=o((()=>{}));function gDe(e,t){return e!=null&&_De.call(e,t)}var _De,vDe=o((()=>{_De=Object.prototype.hasOwnProperty}));function yDe(e,t){return e!=null&&vEe(e,t,gDe)}var bDe=o((()=>{vDe(),yEe()})),xDe=o((()=>{X_(),iv(),Q_()}));function SDe(e,t){return tv(t,function(t){return e[t]})}var CDe=o((()=>{nv()}));function Nx(e){return e==null?[]:SDe(e,Ey(e))}var wDe=o((()=>{CDe(),Dy()}));function TDe(e){if(e==null)return!0;if(Kv(e)&&(rv(e)||typeof e==`string`||typeof e.splice==`function`||iy(e)||hy(e)||$v(e)))return!e.length;var t=Rb(e);if(t==EDe||t==DDe)return!e.size;if(Xv(e))return!Cy(e).length;for(var n in e)if(ODe.call(e,n))return!1;return!0}var EDe,DDe,ODe,kDe=o((()=>{Ty(),zb(),ey(),iv(),qv(),ay(),Zv(),gy(),EDe=`[object Map]`,DDe=`[object Set]`,ODe=Object.prototype.hasOwnProperty}));function Px(e){return e===void 0}var ADe=o((()=>{}));function jDe(e,t){return e<t}var Fx=o((()=>{}));function Ix(e,t){var n={};return t=px(t,3),_x(e,function(e,r,i){Nv(n,r,t(e,r,i))}),n}var MDe=o((()=>{Pv(),vx(),mx()}));function Lx(e,t,n){for(var r=-1,i=e.length;++r<i;){var a=e[r],o=t(a);if(o!=null&&(s===void 0?o===o&&!$_(o):n(o,s)))var s=o,l=a}return l}var Rx=o((()=>{ev()}));function zx(e){return e&&e.length?Lx(e,pv,mDe):void 0}var NDe=o((()=>{Rx(),hDe(),mv()})),Bx,PDe=o((()=>{KEe(),yxe(),Bx=vxe(function(e,t,n){GEe(e,t,n)})}));function Vx(e){return e&&e.length?Lx(e,pv,jDe):void 0}var FDe=o((()=>{Rx(),Fx(),mv()}));function Hx(e,t){return e&&e.length?Lx(e,px(t,2),jDe):void 0}var IDe=o((()=>{Rx(),mx(),Fx()}));function LDe(e,t,n,r){if(!sv(e))return e;t=tb(t,e);for(var i=-1,a=t.length,o=a-1,s=e;s!=null&&++i<a;){var l=rb(t[i]),u=n;if(l===`__proto__`||l===`constructor`||l===`prototype`)return e;if(i!=o){var d=s[l];u=r?r(d,l,s):void 0,u===void 0&&(u=sv(d)?d:jv(t[i+1])?[]:{})}Lv(s,l,u),s=s[l]}return e}var RDe=o((()=>{Rv(),nb(),Mv(),cv(),ib()}));function zDe(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var o=t[r],s=ab(e,o);n(s,o)&&LDe(a,tb(o,e),s)}return a}var BDe=o((()=>{ob(),RDe(),nb()}));function VDe(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var HDe=o((()=>{}));function UDe(e,t){if(e!==t){var n=e!==void 0,r=e===null,i=e===e,a=$_(e),o=t!==void 0,s=t===null,l=t===t,u=$_(t);if(!s&&!u&&!a&&e>t||a&&o&&l&&!s&&!u||r&&o&&l||!n&&l||!i)return 1;if(!r&&!a&&!u&&e<t||u&&n&&i&&!r&&!a||s&&n&&i||!o&&i||!l)return-1}return 0}var WDe=o((()=>{ev()}));function GDe(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,o=i.length,s=n.length;++r<o;){var l=UDe(i[r],a[r]);if(l)return r>=s?l:l*(n[r]==`desc`?-1:1)}return e.index-t.index}var KDe=o((()=>{WDe()}));function qDe(e,t,n){t=t.length?tv(t,function(e){return rv(e)?function(t){return ab(t,e.length===1?e[0]:e)}:e}):[pv];var r=-1;return t=tv(t,sy(px)),VDe(sDe(e,function(e,n,i){return{criteria:tv(t,function(t){return t(e)}),index:++r,value:e}}),function(e,t){return GDe(e,t,n)})}var JDe=o((()=>{nv(),ob(),mx(),cDe(),HDe(),cy(),KDe(),mv(),iv()})),YDe=o((()=>{fx()})),Ux,XDe,ZDe,QDe,Wx,Gx,$De,Kx,qx,Jx,eOe,Yx,Xx,tOe,nOe,rOe,iOe=o((()=>{Ux=`\\ud800-\\udfff`,XDe=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,ZDe=`\\ufe0e\\ufe0f`,QDe=`[`+Ux+`]`,Wx=`[`+XDe+`]`,Gx=`\\ud83c[\\udffb-\\udfff]`,$De=`(?:`+Wx+`|`+Gx+`)`,Kx=`[^`+Ux+`]`,qx=`(?:\\ud83c[\\udde6-\\uddff]){2}`,Jx=`[\\ud800-\\udbff][\\udc00-\\udfff]`,eOe=`\\u200d`,Yx=$De+`?`,Xx=`[`+ZDe+`]?`,tOe=`(?:`+eOe+`(?:`+[Kx,qx,Jx].join(`|`)+`)`+Xx+Yx+`)*`,nOe=Xx+Yx+tOe,rOe=`(?:`+[Kx+Wx+`?`,Wx,qx,Jx,QDe].join(`|`)+`)`,RegExp(Gx+`(?=`+Gx+`)|`+rOe+nOe,`g`)})),aOe=o((()=>{YDe(),dCe(),iOe()}));function oOe(e,t){return zDe(e,t,function(t,n){return bEe(e,n)})}var sOe=o((()=>{BDe(),dx()})),Zx,cOe=o((()=>{sOe(),rCe(),Zx=nCe(function(e,t){return e==null?{}:oOe(e,t)})}));function lOe(e,t,n,r){for(var i=-1,a=dOe(uOe((t-e)/(n||1)),0),o=Array(a);a--;)o[r?a:++i]=e,e+=n;return o}var uOe,dOe,fOe=o((()=>{uOe=Math.ceil,dOe=Math.max}));function pOe(e){return function(t,n,r){return r&&typeof r!=`number`&&Jv(t,n,r)&&(n=r=void 0),t=uv(t),n===void 0?(n=t,t=0):n=uv(n),r=r===void 0?t<n?1:-1:uv(r),lOe(t,n,r,e)}}var mOe=o((()=>{fOe(),Yv(),fv()})),Qx,hOe=o((()=>{mOe(),Qx=pOe()}));function gOe(e,t,n,r,i){return i(e,function(e,i,a){n=r?(r=!1,e):t(n,e,i,a)}),n}var _Oe=o((()=>{}));function $x(e,t,n){var r=rv(e)?fCe:gOe,i=arguments.length<3;return r(e,px(t,4),n,i,yx)}var vOe=o((()=>{pCe(),bx(),mx(),_Oe(),iv()})),yOe=o((()=>{Ty(),zb(),qv(),xDe(),aOe()})),eS,bOe=o((()=>{db(),JDe(),Uv(),Yv(),eS=Hv(function(e,t){if(e==null)return[];var n=t.length;return n>1&&Jv(e,t[0],t[1])?t=[]:n>2&&Jv(t[0],t[1],t[2])&&(t=[t[0]]),qDe(e,ub(t,1),[])})})),xOe,SOe=o((()=>{KCe(),Gbe(),nx(),xOe=jb&&1/tx(new jb([,-0]))[1]==1/0?function(e){return new jb(e)}:Wbe}));function COe(e,t,n){var r=-1,i=uxe,a=e.length,o=!0,s=[],l=s;if(n)o=!1,i=qEe;else if(a>=wOe){var u=t?null:xOe(e);if(u)return tx(u);o=!1,i=kTe,l=new Qb}else l=t?[]:s;outer:for(;++r<a;){var d=e[r],f=t?t(d):d;if(d=n||d!==0?d:0,o&&f===f){for(var p=l.length;p--;)if(l[p]===f)continue outer;t&&l.push(f),s.push(d)}else i(l,f,n)||(l!==s&&l.push(f),s.push(d))}return s}var wOe,TOe=o((()=>{$b(),dxe(),JEe(),ex(),SOe(),nx(),wOe=200})),EOe,DOe=o((()=>{db(),Uv(),TOe(),wx(),EOe=Hv(function(e){return COe(ub(e,1,zEe,!0))})}));function tS(e){var t=++OOe;return YSe(e)+t}var OOe,kOe=o((()=>{eb(),OOe=0}));function AOe(e,t,n){for(var r=-1,i=e.length,a=t.length,o={};++r<i;){var s=r<a?t[r]:void 0;n(o,e[r],s)}return o}var jOe=o((()=>{}));function MOe(e,t){return AOe(e||[],t||[],Lv)}var NOe=o((()=>{Rv(),jOe()})),nS=o((()=>{ev(),rbe(),vbe(),mv(),zbe(),Vbe(),cv(),U_(),Ube(),Gbe(),iv(),Q_(),wv(),Zbe(),Ov(),kv(),dxe(),Mv(),Rv(),Bv(),yxe(),qv(),Zv(),Dy(),Ay(),QSe(),rCe(),Uv(),X_(),uCe(),Pv(),ib(),eb(),dCe(),pCe(),hbe(),Yv(),_Te(),xTe(),cb(),db(),nv(),mx(),Qbe(),bx(),ECe(),PEe(),LEe(),KEe(),$b(),JEe(),cy(),ex(),wx(),YEe(),ZEe(),jEe(),NEe(),Ox(),zb(),FTe(),Iv(),eDe(),oDe(),aDe(),vx(),nDe(),Av(),lDe(),tCe(),XEe(),dDe(),pDe(),Sb(),gv(),hDe(),bDe(),dx(),fv(),lxe(),xDe(),wDe(),nb(),ob(),ey(),py(),ay(),kDe(),ux(),Gv(),zwe(),sEe(),dEe(),Ibe(),Cbe(),kxe(),Wwe(),gy(),ADe(),axe(),Fx(),MDe(),hEe(),wEe(),NDe(),Rx(),VSe(),PDe(),FDe(),IDe(),G_(),nx(),UCe(),BDe(),JDe(),OTe(),aOe(),cOe(),kEe(),WDe(),hOe(),mOe(),vOe(),_Oe(),$Ee(),RDe(),yOe(),bOe(),Cb(),CDe(),Sxe(),JSe(),HEe(),mb(),lbe(),obe(),DOe(),TOe(),kOe(),fx(),NOe(),jOe()}));function POe(e,t){e[t]?e[t]++:e[t]=1}function FOe(e,t){--e[t]||delete e[t]}function rS(e,t,n,r){var i=``+t,a=``+n;if(!e&&i>a){var o=i;i=a,a=o}return i+oS+a+oS+(Px(r)?LOe:r)}function IOe(e,t,n,r){var i=``+t,a=``+n;if(!e&&i>a){var o=i;i=a,a=o}var s={v:i,w:a};return r&&(s.name=r),s}function iS(e,t){return rS(e,t.v,t.w,t.name)}var LOe,aS,oS,sS,ROe=o((()=>{nS(),LOe=`\0`,aS=`\0`,oS=``,sS=class{constructor(e={}){this._isDirected=!Object.prototype.hasOwnProperty.call(e,`directed`)||e.directed,this._isMultigraph=Object.prototype.hasOwnProperty.call(e,`multigraph`)?e.multigraph:!1,this._isCompound=Object.prototype.hasOwnProperty.call(e,`compound`)?e.compound:!1,this._label=void 0,this._defaultNodeLabelFn=Tv(void 0),this._defaultEdgeLabelFn=Tv(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[aS]={}),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(e){return this._label=e,this}graph(){return this._label}setDefaultNodeLabel(e){return hv(e)||(e=Tv(e)),this._defaultNodeLabelFn=e,this}nodeCount(){return this._nodeCount}nodes(){return Ey(this._nodes)}sources(){var e=this;return Ax(this.nodes(),function(t){return TDe(e._in[t])})}sinks(){var e=this;return Ax(this.nodes(),function(t){return TDe(e._out[t])})}setNodes(e,t){var n=arguments,r=this;return kx(e,function(e){n.length>1?r.setNode(e,t):r.setNode(e)}),this}setNode(e,t){return Object.prototype.hasOwnProperty.call(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=t),this):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=aS,this._children[e]={},this._children[aS][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)}node(e){return this._nodes[e]}hasNode(e){return Object.prototype.hasOwnProperty.call(this._nodes,e)}removeNode(e){if(Object.prototype.hasOwnProperty.call(this._nodes,e)){var t=e=>this.removeEdge(this._edgeObjs[e]);delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],kx(this.children(e),e=>{this.setParent(e)}),delete this._children[e]),kx(Ey(this._in[e]),t),delete this._in[e],delete this._preds[e],kx(Ey(this._out[e]),t),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this}setParent(e,t){if(!this._isCompound)throw Error(`Cannot set parent in a non-compound graph`);if(Px(t))t=aS;else{t+=``;for(var n=t;!Px(n);n=this.parent(n))if(n===e)throw Error(`Setting `+t+` as parent of `+e+` would create a cycle`);this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this}_removeFromParentsChildList(e){delete this._children[this._parent[e]][e]}parent(e){if(this._isCompound){var t=this._parent[e];if(t!==aS)return t}}children(e){if(Px(e)&&(e=aS),this._isCompound){var t=this._children[e];if(t)return Ey(t)}else if(e===aS)return this.nodes();else if(this.hasNode(e))return[]}predecessors(e){var t=this._preds[e];if(t)return Ey(t)}successors(e){var t=this._sucs[e];if(t)return Ey(t)}neighbors(e){var t=this.predecessors(e);if(t)return EOe(t,this.successors(e))}isLeaf(e){return(this.isDirected()?this.successors(e):this.neighbors(e)).length===0}filterNodes(e){var t=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});t.setGraph(this.graph());var n=this;kx(this._nodes,function(n,r){e(r)&&t.setNode(r,n)}),kx(this._edgeObjs,function(e){t.hasNode(e.v)&&t.hasNode(e.w)&&t.setEdge(e,n.edge(e))});var r={};function i(e){var a=n.parent(e);return a===void 0||t.hasNode(a)?(r[e]=a,a):a in r?r[a]:i(a)}return this._isCompound&&kx(t.nodes(),function(e){t.setParent(e,i(e))}),t}setDefaultEdgeLabel(e){return hv(e)||(e=Tv(e)),this._defaultEdgeLabelFn=e,this}edgeCount(){return this._edgeCount}edges(){return Nx(this._edgeObjs)}setPath(e,t){var n=this,r=arguments;return $x(e,function(e,i){return r.length>1?n.setEdge(e,i,t):n.setEdge(e,i),i}),this}setEdge(){var e,t,n,r,i=!1,a=arguments[0];typeof a==`object`&&a&&`v`in a?(e=a.v,t=a.w,n=a.name,arguments.length===2&&(r=arguments[1],i=!0)):(e=a,t=arguments[1],n=arguments[3],arguments.length>2&&(r=arguments[2],i=!0)),e=``+e,t=``+t,Px(n)||(n=``+n);var o=rS(this._isDirected,e,t,n);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,o))return i&&(this._edgeLabels[o]=r),this;if(!Px(n)&&!this._isMultigraph)throw Error(`Cannot set a named edge when isMultigraph = false`);this.setNode(e),this.setNode(t),this._edgeLabels[o]=i?r:this._defaultEdgeLabelFn(e,t,n);var s=IOe(this._isDirected,e,t,n);return e=s.v,t=s.w,Object.freeze(s),this._edgeObjs[o]=s,POe(this._preds[t],e),POe(this._sucs[e],t),this._in[t][o]=s,this._out[e][o]=s,this._edgeCount++,this}edge(e,t,n){var r=arguments.length===1?iS(this._isDirected,arguments[0]):rS(this._isDirected,e,t,n);return this._edgeLabels[r]}hasEdge(e,t,n){var r=arguments.length===1?iS(this._isDirected,arguments[0]):rS(this._isDirected,e,t,n);return Object.prototype.hasOwnProperty.call(this._edgeLabels,r)}removeEdge(e,t,n){var r=arguments.length===1?iS(this._isDirected,arguments[0]):rS(this._isDirected,e,t,n),i=this._edgeObjs[r];return i&&(e=i.v,t=i.w,delete this._edgeLabels[r],delete this._edgeObjs[r],FOe(this._preds[t],e),FOe(this._sucs[e],t),delete this._in[t][r],delete this._out[e][r],this._edgeCount--),this}inEdges(e,t){var n=this._in[e];if(n){var r=Nx(n);return t?Ax(r,function(e){return e.v===t}):r}}outEdges(e,t){var n=this._out[e];if(n){var r=Nx(n);return t?Ax(r,function(e){return e.w===t}):r}}nodeEdges(e,t){var n=this.inEdges(e,t);if(n)return n.concat(this.outEdges(e,t))}},sS.prototype._nodeCount=0,sS.prototype._edgeCount=0})),cS=o((()=>{ROe()})),zOe=l({captureNodeSizes:()=>UOe,shouldCaptureSizes:()=>BOe});function lS(){if(!(typeof globalThis>`u`))return globalThis}function BOe(){return!!lS()?.mermaidCaptureSizes}function VOe(){return typeof location>`u`?`browser-dev`:`${location.pathname}${location.search}`}function HOe(e,t){let n=lS();if(!n)return;let r=t.node(),i=((r&&`ownerSVGElement`in r?r.ownerSVGElement:null)??r)?.id??`(unknown)`;n.mermaidCapturedSizes??=[];let a={svgId:i,sizes:e};n.mermaidCapturedSizes.push(a),n.mermaidLastCapturedSizes=a}function UOe(e,t){let n=[];for(let e of t.nodes)e.isGroup||n.push({id:e.id,width:e.width??0,height:e.height??0});n.length!==0&&HOe({metadata:{captureVersion:WOe,capturedAt:new Date().toISOString(),capturedFrom:VOe()},nodes:n},e)}var WOe,GOe=o((()=>{h(),WOe=1,p(lS,`getCaptureGlobal`),p(BOe,`shouldCaptureSizes`),p(VOe,`capturedFromLocation`),p(HOe,`emitCapturedSizes`),p(UOe,`captureNodeSizes`)}));function uS(e,{edgePathsClass:t=`edges edgePaths`}={}){let n=e.insert(`g`).attr(`class`,`root`);return{clusters:n.insert(`g`).attr(`class`,`clusters`),edgePaths:n.insert(`g`).attr(`class`,t),edgeLabels:n.insert(`g`).attr(`class`,`edgeLabels`),nodes:n.insert(`g`).attr(`class`,`nodes`),rootGroups:n}}async function KOe(e,t){if(t.label){let{shapeSvg:n,bbox:r}=await Ag(e,t);t.labelBBox={width:r.width,height:r.height},n.remove()}else t.labelBBox={width:0,height:0}}async function dS(e,t,n){let r=await l_(e,t,n),i=r.node()?.getBBox()??{width:0,height:0};return t.width=i.width,t.height=i.height,r}async function qOe(e,t){let n=new sS({multigraph:!0,compound:!0}),r=[...t.edges],i=Z(),a=uS(e),{edgeLabels:o,nodes:s}=a,l=new Map,u=e.node()!=null;await Promise.all(t.nodes.map(async e=>{if(e.isGroup)u&&await KOe(s,e),n.setNode(e.id,{...e});else{if(u){let t=await dS(s,e,{config:i,dir:e.dir});l.set(e.id,t)}n.setNode(e.id,{...e})}}));for(let e of r)u&&O_(e)&&await A_(o,e),n.setEdge(e.start,e.end,{...e},e.id),t.edges.some(t=>t.id===e.id)||t.edges.push(e);if(globalThis.mermaidCaptureSizes){let{captureNodeSizes:n}=await Ut(async()=>{let{captureNodeSizes:e}=await Promise.resolve().then(()=>(GOe(),zOe));return{captureNodeSizes:e}},void 0);n(e,t)}return{graph:n,groups:a,nodeElements:l}}function fS({prepareLayout:e,measureLayout:t,runLayoutCore:n,paintLayout:r,afterPaint:i,paintOptions:a}){let o=t??mS;return p(async function(t,s,l,u){let d=s.select(`g`);(l?.insertMarkers??z_)(d,t.markers,t.type,t.diagramId),pS();let f={element:d,helpers:l,options:u};f.preparedLayout=await e?.(t,f);let p=await o(t,f),m=await n(t,f),h={...f,measure:p};r?await r(t,h,m):await hS(t,h,a),await i?.(t,h,m)},`render`)}function pS(){Dye(),zye(),Aye(),tke()}async function mS(e,{element:t}){return await qOe(t,e)}async function hS(e,t,n={}){let{measure:r}=t,{groups:i}=r;for(let r of n.getNodes?.(e,t)??e.nodes)n.skipNode?.(r,t)||await JOe(i,r,t,n);let a=XOe(e.nodes);for(let r of e.edges)ZOe(r,n)||await QOe(i,r,a,e,n,t)}async function JOe(e,t,n,r){t.clusterNode?f_(t):YOe(t,n,r)?await g_(e.clusters,t):f_(t)}function YOe(e,t,n){return e.isGroup===!0&&(n.isCluster?.(e,t)??!0)}function XOe(e){let t=new Map;for(let n of e)n?.id&&t.set(n.id,n);return t}function ZOe(e,t){return e.isLayoutOnly||!!t.skipEdge?.(e)}async function QOe(e,t,n,r,i,a){let o=R_(e.edgePaths,{...t},i.clusterDb??new Map,r.type,gS(t.start,t,n,a,i),gS(t.end,t,n,a,i),r.diagramId,$Oe(t,i));O_(t)&&(E_.has(t.id)||await A_(e.edgeLabels,t),eke(t,o))}function gS(e,t,n,r,i){return i.getEdgeNode?.(e,t,r)??(e?n.get(e)??{}:{})}function $Oe(e,t){return typeof t.skipIntersect==`function`?t.skipIntersect(e):t.skipIntersect??!1}function eke(e,t){let n=t?.updatedPath??t?.originalPath,r=ls(),{subGraphTitleTotalMargin:i}=u_({flowchart:r.flowchart??{}});if(e.label){let r=E_.get(e.id),a=e.x,o=e.y;if(n){let r=Dm.calcLabelPosition(n);y.debug(`Moving label `+e.label+` from (`,a,`,`,o,`) to (`,r.x,`,`,r.y,`) abc88`),t?.updatedPath&&(a=r.x,o=r.y)}r.attr(`transform`,`translate(${a}, ${o+i/2})`)}if(e?.startLabelLeft){let t=D_.get(e.id).startLeft,r=e?.x,i=e?.y;if(n){let t=Dm.calcTerminalLabelPosition(e.arrowTypeStart?10:0,`start_left`,n);r=t.x,i=t.y}t.attr(`transform`,`translate(${r}, ${i})`)}if(e.startLabelRight){let t=D_.get(e.id).startRight,r=e.x,i=e.y;if(n){let t=Dm.calcTerminalLabelPosition(e.arrowTypeStart?10:0,`start_right`,n);r=t.x,i=t.y}t.attr(`transform`,`translate(${r}, ${i})`)}if(e.endLabelLeft){let t=D_.get(e.id).endLeft,r=e.x,i=e.y;if(n){let t=Dm.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,`end_left`,n);r=t.x,i=t.y}t.attr(`transform`,`translate(${r}, ${i})`)}if(e.endLabelRight){let t=D_.get(e.id).endRight,r=e.x,i=e.y;if(n){let t=Dm.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,`end_right`,n);r=t.x,i=t.y}t.attr(`transform`,`translate(${r}, ${i})`)}}var _S,vS,yS,tke,bS,nke,xS,SS,rke,CS,wS,ike,TS,ES,DS,OS,ake,kS=o((()=>{__(),B_(),p_(),c_(),Am(),oc(),S(),h(),cS(),Wt(),p(uS,`createLayoutElementGroups`),p(KOe,`measureGroupLabel`),p(dS,`insertMeasuredNode`),p(qOe,`createGraphWithElements`),_S=new Map,vS=new Map,yS=new Map,tke=p(()=>{vS.clear(),yS.clear(),_S.clear()},`clear`),bS=p((e,t)=>{let n=vS.get(t)||[];return y.trace(`In isDescendant`,t,` `,e,` = `,n.includes(e)),n.includes(e)},`isDescendant`),nke=p((e,t)=>{let n=vS.get(t)||[];return y.info(`Descendants of `,t,` is `,n),y.info(`Edge is `,e),e.v===t||e.w===t?!1:n?n.includes(e.v)||bS(e.v,t)||bS(e.w,t)||n.includes(e.w):(y.debug(`Tilt, `,t,`,not in descendants`),!1)},`edgeInCluster`),xS=p((e,t,n,r)=>{y.debug(`Copying children of `,e,`root`,r,`data`,t.node(e),r);let i=t.children(e)||[];e!==r&&i.push(e),y.debug(`Copying (nodes) clusterId`,e,`nodes`,i),i.forEach(i=>{if(t.children(i).length>0)xS(i,t,n,r);else{let a=t.node(i);y.info(`cp `,i,` to `,r,` with parent `,e),n.setNode(i,a),r!==t.parent(i)&&(y.debug(`Setting parent`,i,t.parent(i)),n.setParent(i,t.parent(i))),e!==r&&i!==e?(y.debug(`Setting parent`,i,e),n.setParent(i,e)):(y.info(`In copy `,e,`root`,r,`data`,t.node(e),r),y.debug(`Not Setting parent for node=`,i,`cluster!==rootId`,e!==r,`node!==clusterId`,i!==e));let o=t.edges(i);y.debug(`Copying Edges`,o),o.forEach(i=>{y.info(`Edge`,i);let a=t.edge(i.v,i.w,i.name);y.info(`Edge data`,a,r);try{nke(i,r)?(y.info(`Copying as `,i.v,i.w,a,i.name),n.setEdge(i.v,i.w,a,i.name),y.info(`newGraph edges `,n.edges(),n.edge(n.edges()[0]))):y.info(`Skipping copy of edge `,i.v,`-->`,i.w,` rootId: `,r,` clusterId:`,e)}catch(e){y.error(e)}})}y.debug(`Removing node`,i),t.removeNode(i)})},`copy`),SS=p((e,t)=>{let n=t.children(e),r=[...n];for(let i of n)yS.set(i,e),r=[...r,...SS(i,t)];return r},`extractDescendants`),rke=p((e,t,n)=>{let r=e.edges().filter(e=>e.v===t||e.w===t),i=e.edges().filter(e=>e.v===n||e.w===n),a=r.map(e=>({v:e.v===t?n:e.v,w:e.w===t?t:e.w})),o=i.map(e=>({v:e.v,w:e.w}));return a.filter(e=>o.some(t=>e.v===t.v&&e.w===t.w))},`findCommonEdges`),CS=p((e,t,n)=>{let r=t.children(e);if(y.trace(`Searching children of id `,e,r),r.length<1)return e;let i;for(let e of r){let r=CS(e,t,n),a=rke(t,n,r);if(r){if(a.length>0)i=r;else return r}}return i},`findNonClusterChild`),wS=p(e=>!_S.has(e)||!_S.get(e).externalConnections?e:_S.has(e)?_S.get(e).id:e,`getAnchorId`),ike=p((e,t)=>{if(!e||t>10){y.debug(`Opting out, no graph `);return}y.debug(`Opting in, graph `),e.nodes().forEach(function(t){e.children(t).length>0&&(y.debug(`Cluster identified`,t,` Replacement id in edges: `,CS(t,e,t)),vS.set(t,SS(t,e)),_S.set(t,{id:CS(t,e,t),clusterData:e.node(t)}))}),e.nodes().forEach(function(t){let n=e.children(t),r=e.edges();n.length>0?(y.debug(`Cluster identified`,t,vS),r.forEach(e=>{bS(e.v,t)^bS(e.w,t)&&(y.debug(`Edge: `,e,` leaves cluster `,t),y.debug(`Descendants of XXX `,t,`: `,vS.get(t)),_S.get(t).externalConnections=!0)})):y.debug(`Not a cluster `,t,vS)});for(let t of _S.keys()){let n=_S.get(t).id,r=e.parent(n);r!==t&&_S.has(r)&&!_S.get(r).externalConnections&&(_S.get(t).id=r);let i=e.edges().some(e=>e.v===t);if(n&&_S.get(t)?.externalConnections&&i&&OS(e,n,t)){let r=ake(e,t,e.parent(n));r&&(_S.get(t).id=r)}}e.edges().forEach(function(t){let n=e.edge(t);y.debug(`Edge `+t.v+` -> `+t.w+`: `+JSON.stringify(t)),y.debug(`Edge `+t.v+` -> `+t.w+`: `+JSON.stringify(e.edge(t)));let r=t.v,i=t.w;if(y.debug(`Fix XXX`,_S,`ids:`,t.v,t.w,`Translating: `,_S.get(t.v),` --- `,_S.get(t.w)),_S.get(t.v)||_S.get(t.w)){if(y.debug(`Fixing and trying - removing XXX`,t.v,t.w,t.name),r=wS(t.v),i=wS(t.w),e.removeEdge(t.v,t.w,t.name),r!==t.v){let i=e.parent(r);_S.get(i).externalConnections=!0,n.fromCluster=t.v}if(i!==t.w){let r=e.parent(i);_S.get(r).externalConnections=!0,n.toCluster=t.w}y.debug(`Fix Replacing with XXX`,r,i,t.name),e.setEdge(r,i,n,t.name)}}),TS(e,0),y.trace(_S)},`adjustClustersAndEdges`),TS=p((e,t)=>{if(t>10){y.error(`Bailing out`);return}let n=e.nodes(),r=!1;for(let t of n){let n=e.children(t);r||=n.length>0}if(!r){y.debug(`Done, no node has children`,e.nodes());return}y.debug(`Nodes = `,n,t);for(let r of n)if(y.debug(`Extracting node`,r,_S,_S.has(r)&&!_S.get(r).externalConnections,!e.parent(r),e.node(r),e.children(`D`),` Depth `,t),!_S.has(r))y.debug(`Not a cluster`,r,t);else if(!_S.get(r).externalConnections&&e.children(r)&&e.children(r).length>0){y.debug(`Cluster without external connections, without a parent and with children`,r,t);let n=e.graph().rankdir===`TB`?`LR`:`TB`;_S.get(r)?.clusterData?.dir&&(n=_S.get(r).clusterData.dir,y.debug(`Fixing dir`,_S.get(r).clusterData.dir,n));let i=new sS({multigraph:!0,compound:!0}).setGraph({rankdir:n,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});xS(r,e,i,r),e.setNode(r,{clusterNode:!0,id:r,clusterData:_S.get(r).clusterData,label:_S.get(r).label,graph:i})}else y.debug(`Cluster ** `,r,` **not meeting the criteria !externalConnections:`,!_S.get(r).externalConnections,` no parent: `,!e.parent(r),` children `,e.children(r)&&e.children(r).length>0,e.children(`D`),t),y.debug(_S);n=e.nodes(),y.debug(`New list of nodes`,n);for(let r of n){let n=e.node(r);y.debug(` Now next level`,r,n),n?.clusterNode&&TS(n.graph,t+1)}},`extractor`),ES=p((e,t)=>{if(t.length===0)return[];let n=Object.assign([],t);return t.forEach(t=>{let r=ES(e,e.children(t));n=[...n,...r]}),n},`sorter`),DS=p(e=>ES(e,e.children()),`sortNodesByHierarchy`),OS=p((e,t,n)=>{let r=e.parent(t);for(;r&&r!==n;){let t=_S.get(r);if(t&&!t.externalConnections)return!0;r=e.parent(r)}return!1},`isNodeInExtractableCluster`),ake=p((e,t,n)=>{let r=e.children(t)??[];for(let i of r){if(i===n||bS(i,n))continue;let r=CS(i,e,t);if(r&&!OS(e,r,t))return r}return null},`findSafeAnchorNode`),p(fS,`createCommonLayoutRenderer`),p(pS,`clearLayoutRenderState`),p(mS,`defaultMeasureLayout`),p(hS,`paintLayoutData`),p(JOe,`paintLayoutNode`),p(YOe,`shouldPaintAsCluster`),p(XOe,`buildNodeLookup`),p(ZOe,`shouldSkipPaintEdge`),p(QOe,`paintLayoutEdge`),p(gS,`getRenderedNode`),p($Oe,`shouldSkipIntersect`),p(eke,`positionRenderedEdgeLabel`)}));function oke(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}function AS(){if(dke)return $S;dke=1;function e(e){return e==null}p(e,`isNothing`);function t(e){return typeof e==`object`&&!!e}p(t,`isObject`);function n(t){return Array.isArray(t)?t:e(t)?[]:[t]}p(n,`toArray`);function r(e,t){if(t){let n=Object.keys(t);for(let r=0,i=n.length;r<i;r+=1){let i=n[r];e[i]=t[i]}}return e}p(r,`extend`);function i(e,t){let n=``;for(let r=0;r<t;r+=1)n+=e;return n}p(i,`repeat`);function a(e){return e===0&&1/e==-1/0}return p(a,`isNegativeZero`),$S.isNothing=e,$S.isObject=t,$S.toArray=n,$S.repeat=i,$S.isNegativeZero=a,$S.extend=r,$S}function jS(){if(fke)return eC;fke=1;function e(e,t){let n=``,r=e.reason||`(unknown reason)`;return e.mark?(e.mark.name&&(n+=`in "`+e.mark.name+`" `),n+=`(`+(e.mark.line+1)+`:`+(e.mark.column+1)+`)`,!t&&e.mark.snippet&&(n+=`
526
526
 
527
527
  `+e.mark.snippet),r+` `+n):r}p(e,`formatError`);function t(t,n){Error.call(this),this.name=`YAMLException`,this.reason=t,this.mark=n,this.message=e(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack||``}return p(t,`YAMLException2`),t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t.prototype.toString=p(function(t){return this.name+`: `+e(this,t)},`toString`),eC=t,eC}function ske(){if(pke)return tC;pke=1;let e=AS();function t(e,t,n,r,i){let a=``,o=``,s=Math.floor(i/2)-1;return r-t>s&&(a=` ... `,t=r-s+a.length),n-r>s&&(o=` ...`,n=r+s-o.length),{str:a+e.slice(t,n).replace(/\t/g,`→`)+o,pos:r-t+a.length}}p(t,`getLine`);function n(t,n){return e.repeat(` `,n-t.length)+t}p(n,`padStart`);function r(r,i){if(i=Object.create(i||null),!r.buffer)return null;i.maxLength||(i.maxLength=79),typeof i.indent!=`number`&&(i.indent=1),typeof i.linesBefore!=`number`&&(i.linesBefore=3),typeof i.linesAfter!=`number`&&(i.linesAfter=2);let a=/\r?\n|\r|\0/g,o=[0],s=[],l,u=-1;for(;l=a.exec(r.buffer);)s.push(l.index),o.push(l.index+l[0].length),r.position<=l.index&&u<0&&(u=o.length-2);u<0&&(u=o.length-1);let d=``,f=Math.min(r.line+i.linesAfter,s.length).toString().length,p=i.maxLength-(i.indent+f+3);for(let a=1;a<=i.linesBefore&&!(u-a<0);a++){let l=t(r.buffer,o[u-a],s[u-a],r.position-(o[u]-o[u-a]),p);d=e.repeat(` `,i.indent)+n((r.line-a+1).toString(),f)+` | `+l.str+`
528
528
  `+d}let m=t(r.buffer,o[u],s[u],r.position,p);d+=e.repeat(` `,i.indent)+n((r.line+1).toString(),f)+` | `+m.str+`
@@ -999,7 +999,7 @@ Expecting `+M.join(`, `)+`, got '`+(this.terminals_[C]||C)+`'`:`Parse error on l
999
999
  fill: ${e.arrowheadColor};
1000
1000
  }
1001
1001
 
1002
- .edgePath .path {
1002
+ .edgePaths .path {
1003
1003
  stroke: ${e.lineColor};
1004
1004
  stroke-width: ${e.strokeWidth??2}px;
1005
1005
  }
@@ -1762,7 +1762,7 @@ Expecting `+M.join(`, `)+`, got '`+(this.terminals_[C]||C)+`'`:`Parse error on l
1762
1762
  fill: ${e.titleColor||e.textColor};
1763
1763
  font-family: ${e.fontFamily};
1764
1764
  }
1765
- `,`getStyles`)}})),Yit=l({diagram:()=>Qit}),Xit,Zit,Qit,$it=o((()=>{tp(),oc(),S(),h(),J0(),Xit={parse:p(async e=>{let t=await G0(`info`,e);y.debug(t)},`parse`)},Zit={version:`11.17.0`},Qit={parser:Xit,db:{getVersion:p(()=>Zit.version,`getVersion`)},renderer:{draw:p((e,t,n)=>{y.debug(`rendering info diagram
1765
+ `,`getStyles`)}})),Yit=l({diagram:()=>Qit}),Xit,Zit,Qit,$it=o((()=>{tp(),oc(),S(),h(),J0(),Xit={parse:p(async e=>{let t=await G0(`info`,e);y.debug(t)},`parse`)},Zit={version:`11.17.2`},Qit={parser:Xit,db:{getVersion:p(()=>Zit.version,`getVersion`)},renderer:{draw:p((e,t,n)=>{y.debug(`rendering info diagram
1766
1766
  `+e);let r=ep(t);Ls(r,100,400,!0),r.append(`g`).append(`text`).attr(`x`,100).attr(`y`,40).attr(`class`,`version`).attr(`font-size`,32).style(`text-anchor`,`middle`).text(`v${n}`)},`draw`)}}})),eat=l({diagram:()=>oat}),h4,g4,_4,v4,tat,y4,nat,rat,iat,aat,oat,sat=o((()=>{dR(),tp(),Am(),oc(),S(),h(),J0(),$f(),h4=Zo.pie,g4={sections:new Map,showData:!1,config:h4},_4=g4.sections,v4=g4.showData,tat=structuredClone(h4),y4={getConfig:p(()=>structuredClone(tat),`getConfig`),clear:p(()=>{_4=new Map,v4=g4.showData,Gs()},`clear`),setDiagramTitle:Xs,getDiagramTitle:Zs,setAccTitle:Ks,getAccTitle:qs,setAccDescription:Js,getAccDescription:Ys,addSection:p(({label:e,value:t})=>{if(t<0)throw Error(`"${e}" has invalid value: ${t}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);_4.has(e)||(_4.set(e,t),y.debug(`added new section: ${e}, with value: ${t}`))},`addSection`),getSections:p(()=>_4,`getSections`),setShowData:p(e=>{v4=e},`setShowData`),getShowData:p(()=>v4,`getShowData`)},nat=p((e,t)=>{uR(e,t),t.setShowData(e.showData),e.sections.map(t.addSection)},`populateDb`),rat={parse:p(async e=>{let t=await G0(`pie`,e);y.debug(t),nat(t,y4)},`parse`)},iat=p(e=>`
1767
1767
  .pieCircle{
1768
1768
  stroke: ${e.pieStrokeColor};
@@ -2547,7 +2547,7 @@ Expecting `+M.join(`, `)+`, got '`+(this.terminals_[C]||C)+`'`:`Parse error on l
2547
2547
  fill: ${e.arrowheadColor};
2548
2548
  }
2549
2549
 
2550
- .edgePath .path {
2550
+ .edgePaths .path {
2551
2551
  stroke: ${e.lineColor};
2552
2552
  stroke-width: 1.5px;
2553
2553
  }
@@ -3087,7 +3087,7 @@ Expecting `+M.join(`, `)+`, got '`+(this.terminals_[C]||C)+`'`:`Parse error on l
3087
3087
  fill: ${e.arrowheadColor};
3088
3088
  }
3089
3089
 
3090
- .edgePath .path {
3090
+ .edgePaths .path {
3091
3091
  stroke: ${e.lineColor};
3092
3092
  stroke-width: 2.0px;
3093
3093
  }
@@ -3587,4 +3587,4 @@ Expecting `+M.join(`, `)+`, got '`+(this.terminals_[C]||C)+`'`:`Parse error on l
3587
3587
  `}else r+=`${e.themeCSS}
3588
3588
  `}return r+Bo(n)},`createCssStyles`),kvt=p((e,t)=>XI(tHe(`${e}{${t}}`),oHe([p(function(t,n,r,i){if(t.type===`rule`&&Array.isArray(t.props)){if(t.parent&&t.parent.type===`@keyframes`)return;t.props=t.props.map(n=>n===e&&Array.isArray(t.children)&&t.children.every(e=>e.type===`decl`&&new Set([`font-family`,`font-size`,`fill`]).has(e.props))||(n.startsWith(`${e} `)||n.startsWith(`${e}>`))&&!n.startsWith(`${e} ||`)?n:`${e} ${n}`)}else t.type.startsWith(`@`)&&([`@media`,`@supports`,`@layer`,`@scope`,`@container`,`@starting-style`,`@keyframes`].includes(t.type)||(y.warn(`Removing unsupported at-rule ${t.type} from CSS`),t.type=kI))},`addNamespace`),aHe])),`compileCSS`),Avt=p((e,t,n,r)=>{let i=Ovt(e,n);return kvt(r,Vne(t,i,{...e.themeVariables,theme:e.theme,look:e.look},r))},`createUserStyles`),jvt=p((e=``,t,n)=>{let r=e;return!n&&!t&&(r=r.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,`marker-end="url(#`)),r=Om(r),r=r.replace(/<br>/g,`<br/>`),r},`cleanUpSvgCode`),Mvt=p((e=``,t)=>`<iframe style="width:${vvt};height:${t?.viewBox?.baseVal?.height?t.viewBox.baseVal.height+`px`:yvt};${bvt}" src="data:text/html;charset=UTF-8;base64,${uvt(`<body style="${xvt}">${e}</body>`)}" sandbox="${Svt}">
3589
3589
  ${Cvt}
3590
- </iframe>`,`putIntoIFrame`),Nvt=p((e,t,n,r,i)=>{let a=e.append(`div`);a.attr(`id`,n),r&&a.attr(`style`,r);let o=a.append(`svg`).attr(`id`,t).attr(`width`,`100%`).attr(`xmlns`,hvt);return i&&o.attr(`xmlns:xlink`,i),o.append(`g`),e},`appendDivSvgG`);function Y9(e,t){return e.append(`iframe`).attr(`id`,t).attr(`style`,`width: 100%; height: 100%;`).attr(`sandbox`,``)}p(Y9,`sandboxedIframe`);var Pvt=p((e,t,n,r)=>{e.getElementById(t)?.remove(),e.getElementById(n)?.remove(),e.getElementById(r)?.remove()},`removeExistingElements`),Fvt=p(async function(e,t,n){G9();let r=J9(t);t=r.code;let i=ls();y.debug(i),t.length>(i?.maxTextSize??dvt)&&(t=fvt);let a=`#${e}`,o=`i`+e,s=`#`+o,l=`d`+e,u=`#`+l,d=p(()=>{let e=Wc(m?s:u).node();e&&`remove`in e&&e.remove()},`removeTempElements`),f=Wc(document.body),m=i.securityLevel===pvt,h=i.securityLevel===mvt,g=i.fontFamily;n===void 0?(Pvt(document,e,l,o),m?(f=Wc(Y9(Wc(document.body),o).nodes()[0].contentDocument.body),f.node().style.margin=`0`):f=Wc(`body`),Nvt(f,e,l)):(n&&(n.innerHTML=``),m?(f=Wc(Y9(Wc(n),o).nodes()[0].contentDocument.body),f.node().style.margin=`0`):f=Wc(n),Nvt(f,e,l,`font-family: ${g}`,gvt));let _,v;try{_=await K9.fromText(t,{title:r.title})}catch(e){if(i.suppressErrorRendering)throw d(),e;_=await K9.fromText(`error`),v=e}let b=f.select(u).node(),x=_.type,S=b.firstChild,C=S.firstChild,w=_.renderer.getClasses?.(t,_),T=Avt(i,x,w,a),E=document.createElement(`style`);E.innerHTML=T,S.insertBefore(E,C);try{await _.renderer.draw(t,e,`11.17.0`,_)}catch(n){throw i.suppressErrorRendering?d():u_t.draw(t,e,`11.17.0`),n}let D=f.select(`${u} svg`),O=_.db.getAccTitle?.(),k=_.db.getAccDescription?.();Rvt(x,D,O,k);let A=p(()=>{f.select(`[id="${e}"]`).selectAll(`foreignobject > *`).attr(`xmlns`,_vt);let t=f.select(u).node().innerHTML;if(y.debug(`config.arrowMarkerAbsolute`,i.arrowMarkerAbsolute),t=jvt(t,m,ts(i.arrowMarkerAbsolute)),m){let e=f.select(u+` svg`).node();t=Mvt(t,e)}else h||(t=Vt.sanitize(t,{ADD_TAGS:wvt,ADD_ATTR:Tvt,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));return ivt(),t},`serializeSvg`)();if(v)throw v;return d(),{diagramType:x,svg:A,bindFunctions:_.db.bindFunctions}},`render`);function Ivt(e={}){let t=Ho({},e);t?.fontFamily&&!t.themeVariables?.fontFamily&&(t.themeVariables||={},t.themeVariables.fontFamily=t.fontFamily),yne(t),t?.theme&&t.theme in qo?t.themeVariables=qo[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=qo.default.getThemeVariables(t.themeVariables));let n=typeof t==`object`?vne(t):ss();b(n.logLevel),G9()}p(Ivt,`initialize`);var Lvt=p((e,t={})=>{let{code:n}=q9(e);return K9.fromText(n,t)},`getDiagramFromText`);function Rvt(e,t,n,r){tvt(t,e),nvt(t,n,r,t.attr(`id`))}p(Rvt,`addA11yInfo`);var X9=Object.freeze({render:Fvt,parse:Evt,getDiagramFromText:Lvt,initialize:Ivt,getConfig:ls,setConfig:cs,getSiteConfig:ss,updateSiteConfig:bne,reset:p(()=>{ds()},`reset`),globalReset:p(()=>{ds(es)},`globalReset`),defaultConfig:es});b(ls().logLevel),ds(ls());var zvt=p((e,t,n)=>{y.warn(e),mm(e)?(n&&n(e.str,e.hash),t.push({...e,message:e.str,error:e})):(n&&n(e),e instanceof Error&&t.push({str:e.message,message:e.message,hash:e.name,error:e}))},`handleError`),Bvt=p(async function(e={querySelector:`.mermaid`}){try{await Vvt(e)}catch(t){if(mm(t)&&y.error(t.str),$9.parseError&&$9.parseError(t),!e.suppressErrors)throw y.error(`Use the suppressErrors option to suppress these errors`),t}},`run`),Vvt=p(async function({postRenderCallback:e,querySelector:t,nodes:n}={querySelector:`.mermaid`}){let r=X9.getConfig();y.debug(`${e?``:`No `}Callback function found`);let i;if(n)i=n;else if(t)i=document.querySelectorAll(t);else throw Error(`Nodes and querySelector are both undefined`);y.debug(`Found ${i.length} diagrams`),r?.startOnLoad!==void 0&&(y.debug(`Start On Load: `+r?.startOnLoad),X9.updateSiteConfig({startOnLoad:r?.startOnLoad}));let a=new Dm.InitIDGenerator(r.deterministicIds,r.deterministicIDSeed),o,s=[];for(let t of Array.from(i)){if(y.info(`Rendering diagram: `+t.id),t.getAttribute(`data-processed`))continue;t.setAttribute(`data-processed`,`true`);let n=`mermaid-${a.next()}`;o=t.innerHTML,o=Pge(Dm.entityDecode(o)).trim().replace(/<br\s*\/?>/gi,`<br/>`);let r=Dm.detectInit(o);r&&y.debug(`Detected early reinit: `,r);try{let{svg:r,bindFunctions:i}=await Yvt(n,o,t);t.innerHTML=r,e&&await e(n),i&&i(t)}catch(e){zvt(e,s,$9.parseError)}}if(s.length>0)throw s[0]},`runThrowsErrors`),Hvt=p(function(e){X9.initialize(e)},`initialize`),Uvt=p(async function(e,t,n){y.warn(`mermaid.init is deprecated. Please use run instead.`),e&&Hvt(e);let r={postRenderCallback:n,querySelector:`.mermaid`};typeof t==`string`?r.querySelector=t:t&&(r.nodes=t instanceof HTMLElement?[t]:t),await Bvt(r)},`init`),Wvt=p(async(e,{lazyLoad:t=!0}={})=>{G9(),xs(...e),t===!1&&await $_t()},`registerExternalDiagrams`),Gvt=p(function(){if($9.startOnLoad){let{startOnLoad:e}=X9.getConfig();e&&$9.run().catch(e=>y.error(`Mermaid failed to initialize`,e))}},`contentLoaded`);typeof document<`u`&&window.addEventListener(`load`,Gvt,!1);var Kvt=p(function(e){$9.parseError=e},`setParseErrorHandler`),Z9=[],Q9=!1,qvt=p(async()=>{if(!Q9){for(Q9=!0;Z9.length>0;){let e=Z9.shift();if(e)try{await e()}catch(e){y.error(`Error executing queue`,e)}}Q9=!1}},`executeQueue`),Jvt=p(async(e,t)=>new Promise((n,r)=>{let i=p(()=>new Promise((i,a)=>{X9.parse(e,t).then(e=>{i(e),n(e)},e=>{y.error(`Error parsing`,e),$9.parseError?.(e),a(e),r(e)})}),`performCall`);Z9.push(i),qvt().catch(r)}),`parse`),Yvt=p((e,t,n)=>new Promise((r,i)=>{let a=p(()=>new Promise((a,o)=>{X9.render(e,t,n).then(e=>{a(e),r(e)},e=>{y.error(`Error parsing`,e),$9.parseError?.(e),o(e),i(e)})}),`performCall`);Z9.push(a),qvt().catch(i)}),`render`),$9={startOnLoad:!0,mermaidAPI:X9,parse:Jvt,render:Yvt,init:Uvt,run:Bvt,registerExternalDiagrams:Wvt,registerLayoutLoaders:TI,initialize:Hvt,parseError:void 0,contentLoaded:Gvt,setParseErrorHandler:Kvt,detectType:bs,registerIconPacks:hp,getRegisteredDiagramsMetadata:p(()=>Object.keys(ys).map(e=>({id:e})),`getRegisteredDiagramsMetadata`)},Xvt=$9,Zvt=window.__libreArtifactRuntime=window.__libreArtifactRuntime||{modules:{},register(e,t){for(let n of e)this.modules[n]=t},require(e){let t=this.modules[e];if(t===void 0)throw Error(`"`+e+`" is not one of the libraries available to artifacts.`);return t}},Qvt=Xvt??Egt;Zvt.register([`mermaid`],Qvt),window.mermaid=Qvt})();
3590
+ </iframe>`,`putIntoIFrame`),Nvt=p((e,t,n,r,i)=>{let a=e.append(`div`);a.attr(`id`,n),r&&a.attr(`style`,r);let o=a.append(`svg`).attr(`id`,t).attr(`width`,`100%`).attr(`xmlns`,hvt);return i&&o.attr(`xmlns:xlink`,i),o.append(`g`),e},`appendDivSvgG`);function Y9(e,t){return e.append(`iframe`).attr(`id`,t).attr(`style`,`width: 100%; height: 100%;`).attr(`sandbox`,``)}p(Y9,`sandboxedIframe`);var Pvt=p((e,t,n,r)=>{e.getElementById(t)?.remove(),e.getElementById(n)?.remove(),e.getElementById(r)?.remove()},`removeExistingElements`),Fvt=p(async function(e,t,n){G9();let r=J9(t);t=r.code;let i=ls();y.debug(i),t.length>(i?.maxTextSize??dvt)&&(t=fvt);let a=`#${e}`,o=`i`+e,s=`#`+o,l=`d`+e,u=`#`+l,d=p(()=>{let e=Wc(m?s:u).node();e&&`remove`in e&&e.remove()},`removeTempElements`),f=Wc(document.body),m=i.securityLevel===pvt,h=i.securityLevel===mvt,g=i.fontFamily;n===void 0?(Pvt(document,e,l,o),m?(f=Wc(Y9(Wc(document.body),o).nodes()[0].contentDocument.body),f.node().style.margin=`0`):f=Wc(`body`),Nvt(f,e,l)):(n&&(n.innerHTML=``),m?(f=Wc(Y9(Wc(n),o).nodes()[0].contentDocument.body),f.node().style.margin=`0`):f=Wc(n),Nvt(f,e,l,`font-family: ${g}`,gvt));let _,v;try{_=await K9.fromText(t,{title:r.title})}catch(e){if(i.suppressErrorRendering)throw d(),e;_=await K9.fromText(`error`),v=e}let b=f.select(u).node(),x=_.type,S=b.firstChild,C=S.firstChild,w=_.renderer.getClasses?.(t,_),T=Avt(i,x,w,a),E=document.createElement(`style`);E.innerHTML=T,S.insertBefore(E,C);try{await _.renderer.draw(t,e,`11.17.2`,_)}catch(n){throw i.suppressErrorRendering?d():u_t.draw(t,e,`11.17.2`),n}let D=f.select(`${u} svg`),O=_.db.getAccTitle?.(),k=_.db.getAccDescription?.();Rvt(x,D,O,k);let A=p(()=>{f.select(`[id="${e}"]`).selectAll(`foreignobject > *`).attr(`xmlns`,_vt);let t=f.select(u).node().innerHTML;if(y.debug(`config.arrowMarkerAbsolute`,i.arrowMarkerAbsolute),t=jvt(t,m,ts(i.arrowMarkerAbsolute)),m){let e=f.select(u+` svg`).node();t=Mvt(t,e)}else h||(t=Vt.sanitize(t,{ADD_TAGS:wvt,ADD_ATTR:Tvt,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));return ivt(),t},`serializeSvg`)();if(v)throw v;return d(),{diagramType:x,svg:A,bindFunctions:_.db.bindFunctions}},`render`);function Ivt(e={}){let t=Ho({},e);t?.fontFamily&&!t.themeVariables?.fontFamily&&(t.themeVariables||={},t.themeVariables.fontFamily=t.fontFamily),yne(t),t?.theme&&t.theme in qo?t.themeVariables=qo[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=qo.default.getThemeVariables(t.themeVariables));let n=typeof t==`object`?vne(t):ss();b(n.logLevel),G9()}p(Ivt,`initialize`);var Lvt=p((e,t={})=>{let{code:n}=q9(e);return K9.fromText(n,t)},`getDiagramFromText`);function Rvt(e,t,n,r){tvt(t,e),nvt(t,n,r,t.attr(`id`))}p(Rvt,`addA11yInfo`);var X9=Object.freeze({render:Fvt,parse:Evt,getDiagramFromText:Lvt,initialize:Ivt,getConfig:ls,setConfig:cs,getSiteConfig:ss,updateSiteConfig:bne,reset:p(()=>{ds()},`reset`),globalReset:p(()=>{ds(es)},`globalReset`),defaultConfig:es});b(ls().logLevel),ds(ls());var zvt=p((e,t,n)=>{y.warn(e),mm(e)?(n&&n(e.str,e.hash),t.push({...e,message:e.str,error:e})):(n&&n(e),e instanceof Error&&t.push({str:e.message,message:e.message,hash:e.name,error:e}))},`handleError`),Bvt=p(async function(e={querySelector:`.mermaid`}){try{await Vvt(e)}catch(t){if(mm(t)&&y.error(t.str),$9.parseError&&$9.parseError(t),!e.suppressErrors)throw y.error(`Use the suppressErrors option to suppress these errors`),t}},`run`),Vvt=p(async function({postRenderCallback:e,querySelector:t,nodes:n}={querySelector:`.mermaid`}){let r=X9.getConfig();y.debug(`${e?``:`No `}Callback function found`);let i;if(n)i=n;else if(t)i=document.querySelectorAll(t);else throw Error(`Nodes and querySelector are both undefined`);y.debug(`Found ${i.length} diagrams`),r?.startOnLoad!==void 0&&(y.debug(`Start On Load: `+r?.startOnLoad),X9.updateSiteConfig({startOnLoad:r?.startOnLoad}));let a=new Dm.InitIDGenerator(r.deterministicIds,r.deterministicIDSeed),o,s=[];for(let t of Array.from(i)){if(y.info(`Rendering diagram: `+t.id),t.getAttribute(`data-processed`))continue;t.setAttribute(`data-processed`,`true`);let n=`mermaid-${a.next()}`;o=t.innerHTML,o=Pge(Dm.entityDecode(o)).trim().replace(/<br\s*\/?>/gi,`<br/>`);let r=Dm.detectInit(o);r&&y.debug(`Detected early reinit: `,r);try{let{svg:r,bindFunctions:i}=await Yvt(n,o,t);t.innerHTML=r,e&&await e(n),i&&i(t)}catch(e){zvt(e,s,$9.parseError)}}if(s.length>0)throw s[0]},`runThrowsErrors`),Hvt=p(function(e){X9.initialize(e)},`initialize`),Uvt=p(async function(e,t,n){y.warn(`mermaid.init is deprecated. Please use run instead.`),e&&Hvt(e);let r={postRenderCallback:n,querySelector:`.mermaid`};typeof t==`string`?r.querySelector=t:t&&(r.nodes=t instanceof HTMLElement?[t]:t),await Bvt(r)},`init`),Wvt=p(async(e,{lazyLoad:t=!0}={})=>{G9(),xs(...e),t===!1&&await $_t()},`registerExternalDiagrams`),Gvt=p(function(){if($9.startOnLoad){let{startOnLoad:e}=X9.getConfig();e&&$9.run().catch(e=>y.error(`Mermaid failed to initialize`,e))}},`contentLoaded`);typeof document<`u`&&window.addEventListener(`load`,Gvt,!1);var Kvt=p(function(e){$9.parseError=e},`setParseErrorHandler`),Z9=[],Q9=!1,qvt=p(async()=>{if(!Q9){for(Q9=!0;Z9.length>0;){let e=Z9.shift();if(e)try{await e()}catch(e){y.error(`Error executing queue`,e)}}Q9=!1}},`executeQueue`),Jvt=p(async(e,t)=>new Promise((n,r)=>{let i=p(()=>new Promise((i,a)=>{X9.parse(e,t).then(e=>{i(e),n(e)},e=>{y.error(`Error parsing`,e),$9.parseError?.(e),a(e),r(e)})}),`performCall`);Z9.push(i),qvt().catch(r)}),`parse`),Yvt=p((e,t,n)=>new Promise((r,i)=>{let a=p(()=>new Promise((a,o)=>{X9.render(e,t,n).then(e=>{a(e),r(e)},e=>{y.error(`Error parsing`,e),$9.parseError?.(e),o(e),i(e)})}),`performCall`);Z9.push(a),qvt().catch(i)}),`render`),$9={startOnLoad:!0,mermaidAPI:X9,parse:Jvt,render:Yvt,init:Uvt,run:Bvt,registerExternalDiagrams:Wvt,registerLayoutLoaders:TI,initialize:Hvt,parseError:void 0,contentLoaded:Gvt,setParseErrorHandler:Kvt,detectType:bs,registerIconPacks:hp,getRegisteredDiagramsMetadata:p(()=>Object.keys(ys).map(e=>({id:e})),`getRegisteredDiagramsMetadata`)},Xvt=$9,Zvt=window.__libreArtifactRuntime=window.__libreArtifactRuntime||{modules:{},register(e,t){for(let n of e)this.modules[n]=t},require(e){let t=this.modules[e];if(t===void 0)throw Error(`"`+e+`" is not one of the libraries available to artifacts.`);return t}},Qvt=Xvt??Egt;Zvt.register([`mermaid`],Qvt),window.mermaid=Qvt})();