@taskmark/ui 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (301) hide show
  1. package/README.md +1 -1
  2. package/app/globals.css +25 -0
  3. package/app/layout.tsx +15 -5
  4. package/app/setup/page.tsx +1 -1
  5. package/bin/lib/resolve-board.mjs +1 -4
  6. package/components/board/app-bar.tsx +3 -0
  7. package/components/board/board-screen.tsx +61 -117
  8. package/components/board/changelog-panel.tsx +26 -0
  9. package/components/board/epic-list.tsx +2 -0
  10. package/components/board/list-view-switcher.tsx +7 -3
  11. package/components/board/markdown-content.tsx +21 -1
  12. package/components/board/mermaid-diagram.tsx +88 -0
  13. package/components/board/metric-stat-card.tsx +4 -4
  14. package/components/board/overall-tree-list.tsx +467 -0
  15. package/components/board/overall-work-items-list.tsx +5 -1
  16. package/components/board/points-heatmap.tsx +183 -0
  17. package/components/board/project-status-metrics-strip.tsx +5 -22
  18. package/components/board/static-board-app.tsx +29 -94
  19. package/components/board/status-badge.tsx +8 -0
  20. package/components/board/story-list.tsx +2 -0
  21. package/components/board/task-list.tsx +5 -1
  22. package/components/board/work-item-detail-body.tsx +123 -8
  23. package/components/board/work-items-list.tsx +2 -0
  24. package/components/theme-provider.tsx +39 -0
  25. package/components/theme-toggle.tsx +27 -0
  26. package/components/ui/sonner.tsx +2 -2
  27. package/dist/prod-next/BUILD_ID +1 -1
  28. package/dist/prod-next/build-manifest.json +6 -6
  29. package/dist/prod-next/react-loadable-manifest.json +391 -1
  30. package/dist/prod-next/server/app/_global-error/page.js +2 -2
  31. package/dist/prod-next/server/app/_global-error/page.js.nft.json +1 -1
  32. package/dist/prod-next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  33. package/dist/prod-next/server/app/_global-error.html +1 -1
  34. package/dist/prod-next/server/app/_global-error.rsc +1 -1
  35. package/dist/prod-next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  36. package/dist/prod-next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
  37. package/dist/prod-next/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
  38. package/dist/prod-next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  39. package/dist/prod-next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  40. package/dist/prod-next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  41. package/dist/prod-next/server/app/_not-found/page.js +2 -2
  42. package/dist/prod-next/server/app/_not-found/page.js.nft.json +1 -1
  43. package/dist/prod-next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  44. package/dist/prod-next/server/app/_not-found.html +1 -1
  45. package/dist/prod-next/server/app/_not-found.rsc +19 -17
  46. package/dist/prod-next/server/app/_not-found.segments/_full.segment.rsc +19 -17
  47. package/dist/prod-next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  48. package/dist/prod-next/server/app/_not-found.segments/_index.segment.rsc +8 -6
  49. package/dist/prod-next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  50. package/dist/prod-next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  51. package/dist/prod-next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  52. package/dist/prod-next/server/app/api/taskmark-reload/route.js +1 -1
  53. package/dist/prod-next/server/app/api/taskmark-reload/route.js.nft.json +1 -1
  54. package/dist/prod-next/server/app/board/page.js +2 -2
  55. package/dist/prod-next/server/app/board/page.js.nft.json +1 -1
  56. package/dist/prod-next/server/app/board/page_client-reference-manifest.js +1 -1
  57. package/dist/prod-next/server/app/favicon.ico/route.js +1 -1
  58. package/dist/prod-next/server/app/favicon.ico/route.js.nft.json +1 -1
  59. package/dist/prod-next/server/app/page.js +2 -2
  60. package/dist/prod-next/server/app/page.js.nft.json +1 -1
  61. package/dist/prod-next/server/app/page_client-reference-manifest.js +1 -1
  62. package/dist/prod-next/server/app/setup/page.js +2 -2
  63. package/dist/prod-next/server/app/setup/page.js.nft.json +1 -1
  64. package/dist/prod-next/server/app/setup/page_client-reference-manifest.js +1 -1
  65. package/dist/prod-next/server/chunks/102.js +90 -0
  66. package/dist/prod-next/server/chunks/11.js +1 -0
  67. package/dist/prod-next/server/chunks/1286.js +1 -0
  68. package/dist/prod-next/server/chunks/1412.js +38 -0
  69. package/dist/prod-next/server/chunks/1605.js +1 -0
  70. package/dist/prod-next/server/chunks/169.js +1 -0
  71. package/dist/prod-next/server/chunks/18.js +86 -0
  72. package/dist/prod-next/server/chunks/2.js +1 -0
  73. package/dist/prod-next/server/chunks/2022.js +1 -0
  74. package/dist/prod-next/server/chunks/2156.js +1 -0
  75. package/dist/prod-next/server/chunks/2157.js +1 -0
  76. package/dist/prod-next/server/chunks/2325.js +82 -0
  77. package/dist/prod-next/server/chunks/2838.js +1 -0
  78. package/dist/prod-next/server/chunks/2897.js +79 -0
  79. package/dist/prod-next/server/chunks/3227.js +1 -0
  80. package/dist/prod-next/server/chunks/3266.js +1 -0
  81. package/dist/prod-next/server/chunks/{192.js → 3307.js} +5 -5
  82. package/dist/prod-next/server/chunks/3387.js +19 -0
  83. package/dist/prod-next/server/chunks/3428.js +32 -0
  84. package/dist/prod-next/server/chunks/3479.js +1 -0
  85. package/dist/prod-next/server/chunks/367.js +115 -0
  86. package/dist/prod-next/server/chunks/3698.js +93 -0
  87. package/dist/prod-next/server/chunks/3709.js +148 -0
  88. package/dist/prod-next/server/chunks/41.js +1 -0
  89. package/dist/prod-next/server/chunks/4107.js +62 -0
  90. package/dist/prod-next/server/chunks/4569.js +34 -0
  91. package/dist/prod-next/server/chunks/{741.js → 4741.js} +1 -1
  92. package/dist/prod-next/server/chunks/4755.js +153 -0
  93. package/dist/prod-next/server/chunks/5002.js +1 -0
  94. package/dist/prod-next/server/chunks/5112.js +1 -0
  95. package/dist/prod-next/server/chunks/5289.js +8 -0
  96. package/dist/prod-next/server/chunks/5318.js +1 -0
  97. package/dist/prod-next/server/chunks/5452.js +23 -0
  98. package/dist/prod-next/server/chunks/5453.js +1 -0
  99. package/dist/prod-next/server/chunks/5749.js +27 -0
  100. package/dist/prod-next/server/chunks/5782.js +36 -0
  101. package/dist/prod-next/server/chunks/6163.js +104 -0
  102. package/dist/prod-next/server/chunks/6169.js +64 -0
  103. package/dist/prod-next/server/chunks/6208.js +172 -0
  104. package/dist/prod-next/server/chunks/6399.js +24 -0
  105. package/dist/prod-next/server/chunks/6496.js +1 -0
  106. package/dist/prod-next/server/chunks/6823.js +215 -0
  107. package/dist/prod-next/server/chunks/6888.js +1 -0
  108. package/dist/prod-next/server/chunks/6980.js +1 -0
  109. package/dist/prod-next/server/chunks/7245.js +77 -0
  110. package/dist/prod-next/server/chunks/7307.js +1 -0
  111. package/dist/prod-next/server/chunks/7372.js +287 -0
  112. package/dist/prod-next/server/chunks/7384.js +226 -0
  113. package/dist/prod-next/server/chunks/7516.js +1 -0
  114. package/dist/prod-next/server/chunks/7531.js +24 -0
  115. package/dist/prod-next/server/chunks/7591.js +1 -0
  116. package/dist/prod-next/server/chunks/7755.js +138 -0
  117. package/dist/prod-next/server/chunks/7916.js +1 -0
  118. package/dist/prod-next/server/chunks/8078.js +94 -0
  119. package/dist/prod-next/server/chunks/8253.js +41 -0
  120. package/dist/prod-next/server/chunks/8635.js +1 -0
  121. package/dist/prod-next/server/chunks/8688.js +1 -0
  122. package/dist/prod-next/server/chunks/8872.js +1 -0
  123. package/dist/prod-next/server/chunks/9006.js +1 -0
  124. package/dist/prod-next/server/chunks/9018.js +1 -0
  125. package/dist/prod-next/server/chunks/9047.js +1 -0
  126. package/dist/prod-next/server/chunks/9108.js +1 -0
  127. package/dist/prod-next/server/chunks/9280.js +256 -0
  128. package/dist/prod-next/server/chunks/9419.js +1 -0
  129. package/dist/prod-next/server/chunks/9430.js +1 -0
  130. package/dist/prod-next/server/chunks/9586.js +1 -0
  131. package/dist/prod-next/server/chunks/9775.js +1 -0
  132. package/dist/prod-next/server/chunks/992.js +1 -0
  133. package/dist/prod-next/server/chunks/9926.js +1 -0
  134. package/dist/prod-next/server/chunks/9984.js +8 -0
  135. package/dist/prod-next/server/middleware-build-manifest.js +1 -1
  136. package/dist/prod-next/server/middleware-react-loadable-manifest.js +1 -1
  137. package/dist/prod-next/server/pages/404.html +1 -1
  138. package/dist/prod-next/server/pages/500.html +1 -1
  139. package/dist/prod-next/server/server-reference-manifest.js +1 -1
  140. package/dist/prod-next/server/server-reference-manifest.json +1 -1
  141. package/dist/prod-next/server/webpack-runtime.js +1 -1
  142. package/dist/prod-next/static/chunks/1213.e5c6e70a79b5f7e6.js +24 -0
  143. package/dist/prod-next/static/chunks/1519.2f596e5f5af9ef57.js +62 -0
  144. package/dist/prod-next/static/chunks/1759-f5b8fb456f8fb420.js +1 -0
  145. package/dist/prod-next/static/chunks/1974.885c9a133b86d8a4.js +32 -0
  146. package/dist/prod-next/static/chunks/2280.6a7f540787704698.js +1 -0
  147. package/dist/prod-next/static/chunks/2521.7f745f50d30076e7.js +77 -0
  148. package/dist/prod-next/static/chunks/2585.4d6aa847c780c666.js +1 -0
  149. package/dist/prod-next/static/chunks/2589.1aad68c09021b1ac.js +1 -0
  150. package/dist/prod-next/static/chunks/2600.45ba17a0f756fc31.js +1 -0
  151. package/dist/prod-next/static/chunks/2619.9aac8983f30c7c8a.js +1 -0
  152. package/dist/prod-next/static/chunks/26d302b2.9f6383e42abdfe16.js +122 -0
  153. package/dist/prod-next/static/chunks/2768.305914f7900745b6.js +1 -0
  154. package/dist/prod-next/static/chunks/2931.c2acdbf72808b646.js +41 -0
  155. package/dist/prod-next/static/chunks/3012-838f69b72a0dc1b3.js +1 -0
  156. package/dist/prod-next/static/chunks/3016.406e568aa95ff867.js +1 -0
  157. package/dist/prod-next/static/chunks/3022.972047558a20553a.js +172 -0
  158. package/dist/prod-next/static/chunks/3064.3a2a1e7cd4fdca5f.js +1 -0
  159. package/dist/prod-next/static/chunks/3174.03fbed7b7d7a8256.js +1 -0
  160. package/dist/prod-next/static/chunks/3189.b048866768087750.js +1 -0
  161. package/dist/prod-next/static/chunks/3217.1a053843c58b70b5.js +24 -0
  162. package/dist/prod-next/static/chunks/3308.30b95d524f9c1daf.js +74 -0
  163. package/dist/prod-next/static/chunks/331.fc5d78e1e91daf43.js +1 -0
  164. package/dist/prod-next/static/chunks/3510.5d4d1c79533e080c.js +1 -0
  165. package/dist/prod-next/static/chunks/364.ce5400a9dd70b9dc.js +1 -0
  166. package/dist/prod-next/static/chunks/3661-1f08d73aaffb011d.js +1 -0
  167. package/dist/prod-next/static/chunks/370.57cfa27da8567918.js +1 -0
  168. package/dist/prod-next/static/chunks/3789.c418b69121761983.js +1 -0
  169. package/dist/prod-next/static/chunks/3794-c66b3d8325973459.js +32 -0
  170. package/dist/prod-next/static/chunks/3831.25ae62d10dccc27a.js +1 -0
  171. package/dist/prod-next/static/chunks/395.b41e9d76613d37b5.js +90 -0
  172. package/dist/prod-next/static/chunks/3a7aa434.93dbd20997cfd24f.js +82 -0
  173. package/dist/prod-next/static/chunks/4020.3cc19c463c49f969.js +23 -0
  174. package/dist/prod-next/static/chunks/4035.0acc428926d5c8dd.js +1 -0
  175. package/dist/prod-next/static/chunks/405.0902e4f6eb7bd9a2.js +215 -0
  176. package/dist/prod-next/static/chunks/4159.49ae537ff687bdc6.js +138 -0
  177. package/dist/prod-next/static/chunks/4208.384b381ca2757643.js +287 -0
  178. package/dist/prod-next/static/chunks/4263.ffa8d9bd8a0faaae.js +1 -0
  179. package/dist/prod-next/static/chunks/4561.d1a3aaca8bae3224.js +34 -0
  180. package/dist/prod-next/static/chunks/4592.d0f37bc216b9d988.js +93 -0
  181. package/dist/prod-next/static/chunks/4799.0dc7aa21bff2fd2a.js +1 -0
  182. package/dist/prod-next/static/chunks/4bd1b696-e356ca5ba0218e27.js +1 -0
  183. package/dist/prod-next/static/chunks/514.b804c51b26f5e126.js +1 -0
  184. package/dist/prod-next/static/chunks/5270.28592864d38e881c.js +1 -0
  185. package/dist/prod-next/static/chunks/52733464.3870f99cc446f9ff.js +1 -0
  186. package/dist/prod-next/static/chunks/5354.b559c717a607dc5c.js +1 -0
  187. package/dist/prod-next/static/chunks/5448.d3972d9fb464b54f.js +38 -0
  188. package/dist/prod-next/static/chunks/587.d52737d7288c11b4.js +1 -0
  189. package/dist/prod-next/static/chunks/5909.9e37f7b495b11995.js +115 -0
  190. package/dist/prod-next/static/chunks/5949.5504b3545fcc3d34.js +104 -0
  191. package/dist/prod-next/static/chunks/6322-4e97920c006f7933.js +1 -0
  192. package/dist/prod-next/static/chunks/6361.893d04ac34fa1b49.js +148 -0
  193. package/dist/prod-next/static/chunks/6774.8cd53427dbf32cac.js +86 -0
  194. package/dist/prod-next/static/chunks/6968.b80277c724dbc96e.js +1 -0
  195. package/dist/prod-next/static/chunks/7113.4b9e7ea870aa300a.js +8 -0
  196. package/dist/prod-next/static/chunks/7236.55a9728d35f5b8a6.js +1 -0
  197. package/dist/prod-next/static/chunks/7390.dde9b5bc2f6e24b8.js +1 -0
  198. package/dist/prod-next/static/chunks/7806.a903780fcfa3a30e.js +1 -0
  199. package/dist/prod-next/static/chunks/7997.be57e92e583fe635.js +1 -0
  200. package/dist/prod-next/static/chunks/8216.64a72d4d35ea7be0.js +1 -0
  201. package/dist/prod-next/static/chunks/830.5d5274d7ad1cb58e.js +1 -0
  202. package/dist/prod-next/static/chunks/8378.fa91de3406f554c9.js +226 -0
  203. package/dist/prod-next/static/chunks/8501.cd06aa1b0c7e1c6a.js +79 -0
  204. package/dist/prod-next/static/chunks/8663.6ec5792fb4952e45.js +27 -0
  205. package/dist/prod-next/static/chunks/872.96937e758ddce860.js +1 -0
  206. package/dist/prod-next/static/chunks/8803.75bde095fe3613f5.js +1 -0
  207. package/dist/prod-next/static/chunks/8863.72f5dbb820a0e4c3.js +1 -0
  208. package/dist/prod-next/static/chunks/90542734.f7a7b2972ef5a749.js +1 -0
  209. package/dist/prod-next/static/chunks/9379.5bc9c9343ec5a16c.js +64 -0
  210. package/dist/prod-next/static/chunks/9389.906fe7aa9cd6a170.js +1 -0
  211. package/dist/prod-next/static/chunks/9472.8818ee52cfa931a4.js +94 -0
  212. package/dist/prod-next/static/chunks/966.d6babbf8119162cc.js +1 -0
  213. package/dist/prod-next/static/chunks/9884.d4ac1a961b3366f1.js +36 -0
  214. package/dist/prod-next/static/chunks/9909.67cf9940b125243b.js +1 -0
  215. package/dist/prod-next/static/chunks/app/_global-error/page-8be5492b3b872a4c.js +1 -0
  216. package/dist/prod-next/static/chunks/app/_not-found/page-799e445a538b0024.js +1 -0
  217. package/dist/prod-next/static/chunks/app/api/taskmark-reload/route-8be5492b3b872a4c.js +1 -0
  218. package/dist/prod-next/static/chunks/app/board/page-5c181f45738daf1c.js +1 -0
  219. package/dist/prod-next/static/chunks/app/layout-21782e6d13a6f275.js +1 -0
  220. package/dist/prod-next/static/chunks/app/page-51bfe4356fe233e3.js +1 -0
  221. package/dist/prod-next/static/chunks/app/setup/page-3ccfba00c10f9b17.js +1 -0
  222. package/dist/prod-next/static/chunks/d3ac728e.7964f816a1ca64e5.js +1 -0
  223. package/dist/prod-next/static/chunks/e413bedd.3a12a8cb02e28fdf.js +153 -0
  224. package/dist/prod-next/static/chunks/ea233666.f00b64a7d99b4950.js +62 -0
  225. package/dist/prod-next/static/chunks/framework-711ef29bc66f648c.js +1 -0
  226. package/dist/prod-next/static/chunks/main-app-dd26d4f9d120646e.js +1 -0
  227. package/dist/prod-next/static/chunks/{main-bb33c46a9c25dee8.js → main-df4bcaed74f274eb.js} +2 -2
  228. package/dist/prod-next/static/chunks/next/dist/client/components/builtin/app-error-8be5492b3b872a4c.js +1 -0
  229. package/dist/prod-next/static/chunks/next/dist/client/components/builtin/forbidden-8be5492b3b872a4c.js +1 -0
  230. package/dist/prod-next/static/chunks/next/dist/client/components/builtin/global-error-45a0cf77e03361ed.js +1 -0
  231. package/dist/prod-next/static/chunks/next/dist/client/components/builtin/not-found-8be5492b3b872a4c.js +1 -0
  232. package/dist/prod-next/static/chunks/next/dist/client/components/builtin/unauthorized-8be5492b3b872a4c.js +1 -0
  233. package/dist/prod-next/static/chunks/webpack-713747aaa9716c4c.js +1 -0
  234. package/dist/prod-next/static/css/cb78d4b0062d9a3f.css +1 -0
  235. package/dist/public/taskmark-snapshot.json +1 -1
  236. package/lib/taskmark/board-index.ts +101 -0
  237. package/lib/taskmark/build-snapshot.ts +28 -7
  238. package/lib/taskmark/derive-parents.test.ts +23 -0
  239. package/lib/taskmark/derive-parents.ts +323 -0
  240. package/lib/taskmark/detail-load.ts +55 -7
  241. package/lib/taskmark/detail-types.ts +10 -2
  242. package/lib/taskmark/dev-reload-token.ts +1 -1
  243. package/lib/taskmark/discover.ts +4 -7
  244. package/lib/taskmark/epic-types.ts +2 -1
  245. package/lib/taskmark/flat-work-item-types.ts +1 -4
  246. package/lib/taskmark/identity.ts +3 -3
  247. package/lib/taskmark/item-types.ts +2 -1
  248. package/lib/taskmark/list-filters.test.ts +23 -0
  249. package/lib/taskmark/list-filters.ts +7 -2
  250. package/lib/taskmark/list-view-mode.test.ts +45 -0
  251. package/lib/taskmark/list-view-mode.ts +19 -8
  252. package/lib/taskmark/load-changelog.test.ts +32 -0
  253. package/lib/taskmark/load-changelog.ts +18 -0
  254. package/lib/taskmark/overall-tree.test.ts +196 -0
  255. package/lib/taskmark/overall-tree.ts +194 -0
  256. package/lib/taskmark/parse-detail.ts +5 -5
  257. package/lib/taskmark/parse-epics.ts +19 -16
  258. package/lib/taskmark/parse-flat-lists.ts +32 -28
  259. package/lib/taskmark/parse-items.ts +47 -9
  260. package/lib/taskmark/parse-stories.ts +18 -15
  261. package/lib/taskmark/points-calendar.test.ts +72 -0
  262. package/lib/taskmark/points-calendar.ts +86 -0
  263. package/lib/taskmark/project-metrics.ts +11 -7
  264. package/lib/taskmark/snapshot-types.ts +2 -0
  265. package/lib/taskmark/story-types.ts +2 -1
  266. package/lib/taskmark/table-sort.ts +4 -3
  267. package/lib/taskmark/timing.ts +29 -18
  268. package/lib/taskmark/validate.ts +1 -1
  269. package/lib/theme-cookie.test.ts +27 -0
  270. package/lib/theme-cookie.ts +43 -0
  271. package/package.json +3 -1
  272. package/public/taskmark-snapshot.json +1 -1
  273. package/dist/prod-next/server/chunks/463.js +0 -1
  274. package/dist/prod-next/server/chunks/54.js +0 -19
  275. package/dist/prod-next/server/chunks/57.js +0 -8
  276. package/dist/prod-next/server/chunks/724.js +0 -1
  277. package/dist/prod-next/static/chunks/4bd1b696-deb4a0a1da1923b0.js +0 -1
  278. package/dist/prod-next/static/chunks/613-6f794154d28bb75a.js +0 -1
  279. package/dist/prod-next/static/chunks/636-626c380f021b95c8.js +0 -1
  280. package/dist/prod-next/static/chunks/669-8103441c67b185da.js +0 -1
  281. package/dist/prod-next/static/chunks/701-df3ee5f1cf837b1a.js +0 -1
  282. package/dist/prod-next/static/chunks/794-25668765560cb197.js +0 -32
  283. package/dist/prod-next/static/chunks/909.932f2af3be7f1e89.js +0 -1
  284. package/dist/prod-next/static/chunks/app/_global-error/page-a1e3320be3da9be1.js +0 -1
  285. package/dist/prod-next/static/chunks/app/_not-found/page-0b3785af737e7968.js +0 -1
  286. package/dist/prod-next/static/chunks/app/api/taskmark-reload/route-a1e3320be3da9be1.js +0 -1
  287. package/dist/prod-next/static/chunks/app/board/page-636f60191db62f52.js +0 -1
  288. package/dist/prod-next/static/chunks/app/layout-856e8a282e69e7d0.js +0 -1
  289. package/dist/prod-next/static/chunks/app/page-562a33b50da7665b.js +0 -1
  290. package/dist/prod-next/static/chunks/app/setup/page-4cf527b758b1d51e.js +0 -1
  291. package/dist/prod-next/static/chunks/framework-b29f9083d3cda3b2.js +0 -1
  292. package/dist/prod-next/static/chunks/main-app-bfb36455d24b3e5a.js +0 -1
  293. package/dist/prod-next/static/chunks/next/dist/client/components/builtin/app-error-a1e3320be3da9be1.js +0 -1
  294. package/dist/prod-next/static/chunks/next/dist/client/components/builtin/forbidden-a1e3320be3da9be1.js +0 -1
  295. package/dist/prod-next/static/chunks/next/dist/client/components/builtin/global-error-dc53ab29e0491fe4.js +0 -1
  296. package/dist/prod-next/static/chunks/next/dist/client/components/builtin/not-found-a1e3320be3da9be1.js +0 -1
  297. package/dist/prod-next/static/chunks/next/dist/client/components/builtin/unauthorized-a1e3320be3da9be1.js +0 -1
  298. package/dist/prod-next/static/chunks/webpack-d33b8a6298c94a64.js +0 -1
  299. package/dist/prod-next/static/css/2e6ec4c80894e3c0.css +0 -1
  300. /package/dist/prod-next/static/{yyRnYAFQrJjF5_b5ZIeqh → EI1zQaa_kQ7DqUSE4o3Qo}/_buildManifest.js +0 -0
  301. /package/dist/prod-next/static/{yyRnYAFQrJjF5_b5ZIeqh → EI1zQaa_kQ7DqUSE4o3Qo}/_ssgManifest.js +0 -0
@@ -0,0 +1,74 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3308],{1105:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(47261),i=r(51023),a=r(59233);function o(t){var e=this.__data__=new n.A(t);this.size=e.size}o.prototype.clear=function(){this.__data__=new n.A,this.size=0},o.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},o.prototype.get=function(t){return this.__data__.get(t)},o.prototype.has=function(t){return this.__data__.has(t)},o.prototype.set=function(t,e){var r=this.__data__;if(r instanceof n.A){var o=r.__data__;if(!i.A||o.length<199)return o.push([t,e]),this.size=++r.size,this;r=this.__data__=new a.A(o)}return r.set(t,e),this.size=r.size,this};let s=o},2401:(t,e,r)=>{"use strict";r.d(e,{WY:()=>M,dn:()=>A,pC:()=>k,Gc:()=>x});var n=r(31775),i=r(56037),a=r(89851);let o=(t,e)=>!!t&&!!((e&&""===t.prefix||t.prefix)&&t.name),s=Object.freeze({left:0,top:0,width:16,height:16}),l=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),c=Object.freeze({...s,...l}),u=Object.freeze({...c,body:"",hidden:!1});function h(t,e){let r,n,i=(r={},!t.hFlip!=!e.hFlip&&(r.hFlip=!0),!t.vFlip!=!e.vFlip&&(r.vFlip=!0),(n=((t.rotate||0)+(e.rotate||0))%4)&&(r.rotate=n),r);for(let r in u)r in l?r in t&&!(r in i)&&(i[r]=l[r]):r in e?i[r]=e[r]:r in t&&(i[r]=t[r]);return i}function f(t,e,r){let n=t.icons,i=t.aliases||Object.create(null),a={};function o(t){a=h(n[t]||i[t],a)}return o(e),r.forEach(o),h(t,a)}let d=Object.freeze({...Object.freeze({width:null,height:null}),...l}),p=/(-?[0-9.]*[0-9]+[0-9.]*)/g,g=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function m(t,e,r){if(1===e)return t;if(r=r||100,"number"==typeof t)return Math.ceil(t*e*r)/r;if("string"!=typeof t)return t;let n=t.split(p);if(null===n||!n.length)return t;let i=[],a=n.shift(),o=g.test(a);for(;;){if(o){let t=parseFloat(a);isNaN(t)?i.push(a):i.push(Math.ceil(t*e*r)/r)}else i.push(a);if(void 0===(a=n.shift()))return i.join("");o=!o}}let y=/\sid="(\S+)"/g,b=new Map;var x={body:'<g><rect width="80" height="80" style="fill: #087ebf; stroke-width: 0px;"/><text transform="translate(21.16 64.67)" style="fill: #fff; font-family: ArialMT, Arial; font-size: 67.75px;"><tspan x="0" y="0">?</tspan></text></g>',height:80,width:80},_=new Map,w=new Map,k=(0,a.K)(t=>{for(let e of t){if(!e.name)throw Error('Invalid icon loader. Must have a "name" property with non-empty string value.');if(i.R.debug("Registering icon pack:",e.name),"loader"in e)w.set(e.name,e.loader);else if("icons"in e)_.set(e.name,e.icons);else throw i.R.error("Invalid icon loader:",e),Error('Invalid icon loader. Must have either "icons" or "loader" property.')}},"registerIconPacks"),v=(0,a.K)(async(t,e)=>{let r=((t,e,r,n="")=>{let i=t.split(":");if("@"===t.slice(0,1)){if(i.length<2||i.length>3)return null;n=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){let t=i.pop(),r=i.pop(),a={provider:i.length>0?i[0]:n,prefix:r,name:t};return e&&!o(a)?null:a}let a=i[0],s=a.split("-");if(s.length>1){let t={provider:n,prefix:s.shift(),name:s.join("-")};return e&&!o(t)?null:t}if(r&&""===n){let t={provider:n,prefix:"",name:a};return e&&!o(t,r)?null:t}return null})(t,!0,void 0!==e);if(!r)throw Error(`Invalid icon name: ${t}`);let n=r.prefix||e;if(!n)throw Error(`Icon name must contain a prefix: ${t}`);let a=_.get(n);if(!a){let t=w.get(n);if(!t)throw Error(`Icon set not found: ${r.prefix}`);try{a={...await t(),prefix:n},_.set(n,a)}catch(t){throw i.R.error(t),Error(`Failed to load icon set: ${r.prefix}`)}}let s=function(t,e){var r;let n,i,a;if(t.icons[e])return f(t,e,[]);let o=(r=[e],n=t.icons,i=t.aliases||Object.create(null),a=Object.create(null),(r||Object.keys(n).concat(Object.keys(i))).forEach(function t(e){if(n[e])return a[e]=[];if(!(e in a)){a[e]=null;let r=i[e]&&i[e].parent,n=r&&t(r);n&&(a[e]=[r].concat(n))}return a[e]}),a)[e];return o?f(t,e,o):null}(a,r.name);if(!s)throw Error(`Icon not found: ${t}`);return s},"getRegisteredIconData"),A=(0,a.K)(async t=>{try{return await v(t),!0}catch{return!1}},"isIconAvailable"),M=(0,a.K)(async(t,e,r)=>{var a;let o,s,l,u,h,f,p,g,_,w,k,A,M,S;try{o=await v(t,e?.fallbackPrefix)}catch(t){i.R.error(t),o=x}let T=(a=o,u={...c,...a},h={...d,...e},f={left:u.left,top:u.top,width:u.width,height:u.height},p=u.body,[u,h].forEach(t=>{var e,r,n,i;let a,o,s=[],l=t.hFlip,c=t.vFlip,u=t.rotate;switch(l?c?u+=2:(s.push("translate("+(f.width+f.left).toString()+" "+(0-f.top).toString()+")"),s.push("scale(-1 1)"),f.top=f.left=0):c&&(s.push("translate("+(0-f.left).toString()+" "+(f.height+f.top).toString()+")"),s.push("scale(1 -1)"),f.top=f.left=0),u<0&&(u-=4*Math.floor(u/4)),u%=4){case 1:s.unshift("rotate(90 "+(a=f.height/2+f.top).toString()+" "+a.toString()+")");break;case 2:s.unshift("rotate(180 "+(f.width/2+f.left).toString()+" "+(f.height/2+f.top).toString()+")");break;case 3:s.unshift("rotate(-90 "+(a=f.width/2+f.left).toString()+" "+a.toString()+")")}u%2==1&&(f.left!==f.top&&(a=f.left,f.left=f.top,f.top=a),f.width!==f.height&&(a=f.width,f.width=f.height,f.height=a)),s.length&&(e=p,r='<g transform="'+s.join(" ")+'">',n=(o=function(t,e="defs"){let r="",n=t.indexOf("<"+e);for(;n>=0;){let i=t.indexOf(">",n),a=t.indexOf("</"+e);if(-1===i||-1===a)break;let o=t.indexOf(">",a);if(-1===o)break;r+=t.slice(i+1,a).trim(),t=t.slice(0,n).trim()+t.slice(o+1)}return{defs:r,content:t}}(e)).defs,i=r+o.content+"</g>",p=n?"<defs>"+n+"</defs>"+i:i)}),g=h.width,_=h.height,w=f.width,k=f.height,null===g?s=m(l=null===_?"1em":"auto"===_?k:_,w/k):(s="auto"===g?w:g,l=null===_?m(s,k/w):"auto"===_?k:_),A={},(M=(t,e)=>{"unset"!==e&&"undefined"!==e&&"none"!==e&&(A[t]=e.toString())})("width",s),M("height",l),A.viewBox=(S=[f.left,f.top,w,k]).join(" "),{attributes:A,viewBox:S,body:p}),C=function(t,e){let r=-1===t.indexOf("xlink:")?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(let t in e)r+=" "+t+'="'+e[t]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+r+">"+t+"</svg>"}(function(t){let e,r=[];for(;e=y.exec(t);)r.push(e[1]);if(!r.length)return t;let n="suffix"+(0x1000000*Math.random()|Date.now()).toString(16);return r.forEach(e=>{var r;let i,a=(r=(r=e).replace(/[0-9]+$/,"")||"a",i=b.get(r)||0,b.set(r,i+1),i?`${r}${i}`:r),o=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(RegExp('([#;"])('+o+')([")]|\\.[a-z])',"g"),"$1"+a+n+"$3")}),t=t.replace(RegExp(n,"g"),"")}(T.body),{...T.attributes,...r});return(0,n.jZ)(C,(0,n.zj)())},"getIconSVG")},2991:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(52326),i=r(68420);let a=(t,e)=>{let r=n.A.parse(t),a={};for(let t in e)e[t]&&(a[t]=r[t]+e[t]);return(0,i.A)(t,a)}},4986:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(95749),i=r(33761);let a=function(t){if(!(0,i.A)(t))return!1;var e=(0,n.A)(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},5452:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=function(t,e){for(var r=-1,n=e.length,i=t.length;++r<n;)t[i+r]=e[r];return t}},6424:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(42112),i=r(52326);let a=t=>!((t=>{let{r:e,g:r,b:a}=i.A.parse(t),o=.2126*n.A.channel.toLinear(e)+.7152*n.A.channel.toLinear(r)+.0722*n.A.channel.toLinear(a);return n.A.lang.round(o)})(t)>=.5)},6741:(t,e,r)=>{"use strict";r.d(e,{IU:()=>h,Oi:()=>s,U7:()=>u,U_:()=>f,on:()=>c});var n=r(60703),i=r(52691),a=r(56037),o=r(89851),s=(0,o.K)(({flowchart:t})=>{let e=t?.subGraphTitleMargin?.top??0,r=t?.subGraphTitleMargin?.bottom??0;return{subGraphTitleTopMargin:e,subGraphTitleBottomMargin:r,subGraphTitleTotalMargin:e+r}},"getSubGraphTitleMargins"),l=new Map;async function c(t,e,r){let a,o;"rect"===e.shape&&(e.rx&&e.ry?e.shape="roundedRect":e.shape="squareRect");let s=e.shape?n.nq[e.shape]:void 0;if(!s)throw Error(`No such shape: ${e.shape}. Please check your syntax.`);if(e.link){let n;"sandbox"===r.config.securityLevel?n="_top":e.linkTarget&&(n=e.linkTarget||"_blank"),a=t.insert("svg:a").attr("xlink:href",e.link).attr("target",n??null),o=await s(a,e,r)}else a=o=await s(t,e,r);return a.attr("data-look",(0,i.KL)(e.look)),e.tooltip&&o.attr("title",e.tooltip),l.set(e.id,a),e.haveCallback&&a.attr("class",a.attr("class")+" clickable"),a}(0,o.K)(c,"insertNode");var u=(0,o.K)((t,e)=>{l.set(e.id,t)},"setNodeElem"),h=(0,o.K)(()=>{l.clear()},"clear"),f=(0,o.K)(t=>{let e=l.get(t.id);a.R.trace("Transforming node",t.diff,t,"translate("+(t.x-t.width/2-5)+", "+t.width/2+")");let r=t.diff||0;return t.clusterNode?e.attr("transform","translate("+(t.x+r-t.width/2)+", "+(t.y-t.height/2-8)+")"):e.attr("transform","translate("+t.x+", "+t.y+")"),r},"positionNode")},9101:(t,e,r)=>{"use strict";function n(t){var e;return null!=t&&"function"!=typeof t&&Number.isSafeInteger(e=t.length)&&e>=0}r.d(e,{X:()=>n})},9797:(t,e,r)=>{"use strict";r.d(e,{D:()=>o});var n=r(31775),i=r(89851),a=r(33948),o=(0,i.K)(t=>{let{securityLevel:e}=(0,n.D7)(),r=(0,a.Ltv)("body");if("sandbox"===e){let e=(0,a.Ltv)(`#i${t}`),n=e.node()?.contentDocument??document;r=(0,a.Ltv)(n.body)}return r.select(`#${t}`)},"selectSvgElement")},10969:(t,e,r)=>{"use strict";r.d(e,{Fr:()=>h,GX:()=>u,KX:()=>c,WW:()=>s,ue:()=>a});var n=r(31775),i=r(89851),a=(0,i.K)(t=>{let{handDrawnSeed:e}=(0,n.D7)();return{fill:t,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:t,seed:e}},"solidStateFill"),o=(0,i.K)(t=>Array.isArray(t)?t:t?t.split(";").map(t=>t.trim()).filter(Boolean):[],"normalizeStyleList"),s=(0,i.K)(t=>{let e=l([...t.cssCompiledStyles||[],...t.cssStyles||[],...o(t.labelStyle)]);return{stylesMap:e,stylesArray:[...e]}},"compileStyles"),l=(0,i.K)(t=>{let e=new Map;return t.forEach(t=>{let[r,n]=t.split(":");e.set(r.trim(),n?.trim())}),e},"styles2Map"),c=(0,i.K)(t=>"color"===t||"font-size"===t||"font-family"===t||"font-weight"===t||"font-style"===t||"text-decoration"===t||"text-align"===t||"text-transform"===t||"line-height"===t||"letter-spacing"===t||"word-spacing"===t||"text-shadow"===t||"text-overflow"===t||"white-space"===t||"word-wrap"===t||"word-break"===t||"overflow-wrap"===t||"hyphens"===t,"isLabelStyle"),u=(0,i.K)(t=>{let{stylesArray:e}=s(t),r=[],n=[],i=[],a=[];return e.forEach(t=>{let e=t[0];c(e)?r.push(t.join(":")+" !important"):(n.push(t.join(":")+" !important"),e.includes("stroke")&&i.push(t.join(":")+" !important"),"fill"===e&&a.push(t.join(":")+" !important"))}),{labelStyles:r.join(";"),nodeStyles:n.join(";"),stylesArray:e,borderStyles:i,backgroundStyles:a}},"styles2String"),h=(0,i.K)((t,e)=>{let{themeVariables:r,handDrawnSeed:i}=(0,n.D7)(),{nodeBorder:a,mainBkg:o}=r,{stylesMap:l}=s(t);return Object.assign({roughness:.7,fill:l.get("fill")||o,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:l.get("stroke")||a,seed:i,strokeWidth:l.get("stroke-width")?.replace("px","")||1.3,fillLineDash:[0,0],strokeLineDash:f(l.get("stroke-dasharray"))},e)},"userNodeOverrides"),f=(0,i.K)(t=>{if(!t)return[0,0];let e=t.trim().split(/\s+/).map(Number);if(1===e.length){let t=isNaN(e[0])?0:e[0];return[t,t]}return[isNaN(e[0])?0:e[0],isNaN(e[1])?0:e[1]]},"getStrokeDashArray")},11576:(t,e,r)=>{"use strict";r.d(e,{A:()=>v});var n=r(74548),i=r(51603),a=(0,n.A)(i.A,"DataView"),o=r(51023),s=(0,n.A)(i.A,"Promise"),l=r(78261),c=(0,n.A)(i.A,"WeakMap"),u=r(95749),h=r(69687),f="[object Map]",d="[object Promise]",p="[object Set]",g="[object WeakMap]",m="[object DataView]",y=(0,h.A)(a),b=(0,h.A)(o.A),x=(0,h.A)(s),_=(0,h.A)(l.A),w=(0,h.A)(c),k=u.A;(a&&k(new a(new ArrayBuffer(1)))!=m||o.A&&k(new o.A)!=f||s&&k(s.resolve())!=d||l.A&&k(new l.A)!=p||c&&k(new c)!=g)&&(k=function(t){var e=(0,u.A)(t),r="[object Object]"==e?t.constructor:void 0,n=r?(0,h.A)(r):"";if(n)switch(n){case y:return m;case b:return f;case x:return d;case _:return p;case w:return g}return e});let v=k},12016:(t,e,r)=>{"use strict";r.d(e,{A:()=>u});let n=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n};var i=r(67903),a=r(92459),o=r(28071),s=r(26805),l=r(81019),c=Object.prototype.hasOwnProperty;let u=function(t,e){var r=(0,a.A)(t),u=!r&&(0,i.A)(t),h=!r&&!u&&(0,o.A)(t),f=!r&&!u&&!h&&(0,l.A)(t),d=r||u||h||f,p=d?n(t.length,String):[],g=p.length;for(var m in t)(e||c.call(t,m))&&!(d&&("length"==m||h&&("offset"==m||"parent"==m)||f&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||(0,s.A)(m,g)))&&p.push(m);return p}},12602:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=function(t,e){for(var r=-1,n=null==t?0:t.length,i=Array(n);++r<n;)i[r]=e(t[r],r,t);return i}},13222:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(42112),i=r(68448),a=r(52326),o=r(68420);let s=(t,e,r=0,s=1)=>{if("number"!=typeof t)return(0,o.A)(t,{a:e});let l=i.A.set({r:n.A.channel.clamp.r(t),g:n.A.channel.clamp.g(e),b:n.A.channel.clamp.b(r),a:n.A.channel.clamp.a(s)});return a.A.stringify(l)}},13838:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(12602),i=r(70638);let a=function(t){var e;return null==t?[]:(e=(0,i.A)(t),(0,n.A)(e,function(e){return t[e]}))}},15494:(t,e,r)=>{"use strict";r.d(e,{A:()=>u});var n,i,a=r(98446),o=r(90377),s=r(79800),l=o.A?function(t,e){return(0,o.A)(t,"toString",{configurable:!0,enumerable:!1,value:(0,a.A)(e),writable:!0})}:s.A,c=Date.now;let u=(n=0,i=0,function(){var t=c(),e=16-(t-i);if(i=t,e>0){if(++n>=800)return arguments[0]}else n=0;return l.apply(void 0,arguments)})},15914:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=r(51603).A.Uint8Array},17334:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(92459),i=r(38374),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o=/^\w*$/;let s=function(t,e){if((0,n.A)(t))return!1;var r=typeof t;return!!("number"==r||"symbol"==r||"boolean"==r||null==t||(0,i.A)(t))||o.test(t)||!a.test(t)||null!=e&&t in Object(e)}},18633:(t,e,r)=>{"use strict";r.d(e,{A:()=>l});let n=function(t,e,r,n){var i=-1,a=null==t?0:t.length;for(n&&a&&(r=t[++i]);++i<a;)r=e(r,t[i],i,t);return r};var i=r(60395),a=r(47239);let o=function(t,e,r,n,i){return i(t,function(t,i,a){r=n?(n=!1,t):e(r,t,i,a)}),r};var s=r(92459);let l=function(t,e,r){var l=(0,s.A)(t)?n:o,c=arguments.length<3;return l(t,(0,a.A)(e,4),r,c,i.A)}},19396:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(4986),i=r(52766);let a=function(t){return null!=t&&(0,i.A)(t.length)&&!(0,n.A)(t)}},21719:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(66234),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=i&&"object"==typeof module&&module&&!module.nodeType&&module,o=a&&a.exports===i&&n.A.process;let s=function(){try{var t=a&&a.require&&a.require("util").types;if(t)return t;return o&&o.binding&&o.binding("util")}catch(t){}}()},22748:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(72521),i=r(53422),a=r(70638);let o=function(t){return(0,n.A)(t,a.A,i.A)}},24662:(t,e,r)=>{"use strict";r.d(e,{$V:()=>o,Av:()=>n,GX:()=>p,ML:()=>A,NA:()=>h,OG:()=>i,Qb:()=>m,R_:()=>s,Uw:()=>f,VP:()=>l,XZ:()=>_,ZR:()=>x,_u:()=>k,cT:()=>d,i1:()=>w,iq:()=>g,kj:()=>a,pj:()=>u,q:()=>y,ri:()=>v,vC:()=>c,x6:()=>b});let n="[object RegExp]",i="[object String]",a="[object Number]",o="[object Boolean]",s="[object Arguments]",l="[object Symbol]",c="[object Date]",u="[object Map]",h="[object Set]",f="[object Array]",d="[object ArrayBuffer]",p="[object Object]",g="[object DataView]",m="[object Uint8Array]",y="[object Uint8ClampedArray]",b="[object Uint16Array]",x="[object Uint32Array]",_="[object Int8Array]",w="[object Int16Array]",k="[object Int32Array]",v="[object Float32Array]",A="[object Float64Array]"},25208:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BLANK_URL=e.relativeFirstCharacters=e.whitespaceEscapeCharsRegex=e.urlSchemeRegex=e.ctrlCharactersRegex=e.htmlCtrlEntityRegex=e.htmlEntitiesRegex=e.invalidProtocolRegex=void 0,e.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im,e.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g,e.htmlCtrlEntityRegex=/&(newline|tab);/gi,e.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,e.urlSchemeRegex=/^.+(:|&colon;)/gim,e.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g,e.relativeFirstCharacters=[".","/"],e.BLANK_URL="about:blank"},26391:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(66162),i=r(70638);let a=function(t,e){return t&&(0,n.A)(t,e,i.A)}},26652:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(79800),i=r(65537),a=r(15494);let o=function(t,e){return(0,a.A)((0,i.A)(t,e,n.A),t+"")}},26805:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=/^(?:0|[1-9]\d*)$/;let i=function(t,e){var r=typeof t;return!!(e=null==e?0x1fffffffffffff:e)&&("number"==r||"symbol"!=r&&n.test(t))&&t>-1&&t%1==0&&t<e}},27041:(t,e,r)=>{"use strict";r.d(e,{H:()=>tT,r:()=>tS});var n,i,a,o,s,l,c,u,h,f,d,p,g,m,y,b,x,_,w,k,v,A,M,S,T,C,$,O,L,E,R,K,j,D,N,P,I,F,U,z,B,Y,H,q,W,X,G=r(89851);function Z(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}(0,G.K)(Z,"getDefaultExportFromCjs");var V={},Q={},J={};function tt(){if(n)return J;function t(t){return null==t}function e(t){return"object"==typeof t&&null!==t}function r(e){return Array.isArray(e)?e:t(e)?[]:[e]}function i(t,e){if(e){let r=Object.keys(e);for(let n=0,i=r.length;n<i;n+=1){let i=r[n];t[i]=e[i]}}return t}function a(t,e){let r="";for(let n=0;n<e;n+=1)r+=t;return r}function o(t){return 0===t&&-1/0==1/t}return n=1,(0,G.K)(t,"isNothing"),(0,G.K)(e,"isObject"),(0,G.K)(r,"toArray"),(0,G.K)(i,"extend"),(0,G.K)(a,"repeat"),(0,G.K)(o,"isNegativeZero"),J.isNothing=t,J.isObject=e,J.toArray=r,J.repeat=a,J.isNegativeZero=o,J.extend=i,J}function te(){if(a)return i;function t(t,e){let r="",n=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(r+='in "'+t.mark.name+'" '),r+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(r+="\n\n"+t.mark.snippet),n+" "+r):n}function e(e,r){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=r,this.message=t(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack||""}return a=1,(0,G.K)(t,"formatError"),(0,G.K)(e,"YAMLException2"),e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e.prototype.toString=(0,G.K)(function(e){return this.name+": "+t(this,e)},"toString"),i=e}function tr(){if(s)return o;s=1;let t=tt();function e(t,e,r,n,i){let a="",o="",s=Math.floor(i/2)-1;return n-e>s&&(e=n-s+(a=" ... ").length),r-n>s&&(r=n+s-(o=" ...").length),{str:a+t.slice(e,r).replace(/\t/g,"→")+o,pos:n-e+a.length}}function r(e,r){return t.repeat(" ",r-e.length)+e}function n(n,i){let a;if(i=Object.create(i||null),!n.buffer)return null;i.maxLength||(i.maxLength=79),"number"!=typeof i.indent&&(i.indent=1),"number"!=typeof i.linesBefore&&(i.linesBefore=3),"number"!=typeof i.linesAfter&&(i.linesAfter=2);let o=/\r?\n|\r|\0/g,s=[0],l=[],c=-1;for(;a=o.exec(n.buffer);)l.push(a.index),s.push(a.index+a[0].length),n.position<=a.index&&c<0&&(c=s.length-2);c<0&&(c=s.length-1);let u="",h=Math.min(n.line+i.linesAfter,l.length).toString().length,f=i.maxLength-(i.indent+h+3);for(let a=1;a<=i.linesBefore&&!(c-a<0);a++){let o=e(n.buffer,s[c-a],l[c-a],n.position-(s[c]-s[c-a]),f);u=t.repeat(" ",i.indent)+r((n.line-a+1).toString(),h)+" | "+o.str+"\n"+u}let d=e(n.buffer,s[c],l[c],n.position,f);u+=t.repeat(" ",i.indent)+r((n.line+1).toString(),h)+" | "+d.str+"\n"+t.repeat("-",i.indent+h+3+d.pos)+"^\n";for(let a=1;a<=i.linesAfter&&!(c+a>=l.length);a++){let o=e(n.buffer,s[c+a],l[c+a],n.position-(s[c]-s[c+a]),f);u+=t.repeat(" ",i.indent)+r((n.line+a+1).toString(),h)+" | "+o.str+"\n"}return u.replace(/\n$/,"")}return(0,G.K)(e,"getLine"),(0,G.K)(r,"padStart"),(0,G.K)(n,"makeSnippet"),o=n}function tn(){if(c)return l;c=1;let t=te(),e=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],r=["scalar","sequence","mapping"];function n(t){let e={};return null!==t&&Object.keys(t).forEach(function(r){t[r].forEach(function(t){e[String(t)]=r})}),e}function i(i,a){if(Object.keys(a=a||{}).forEach(function(r){if(-1===e.indexOf(r))throw new t('Unknown option "'+r+'" is met in definition of "'+i+'" YAML type.')}),this.options=a,this.tag=i,this.kind=a.kind||null,this.resolve=a.resolve||function(){return!0},this.construct=a.construct||function(t){return t},this.instanceOf=a.instanceOf||null,this.predicate=a.predicate||null,this.represent=a.represent||null,this.representName=a.representName||null,this.defaultStyle=a.defaultStyle||null,this.multi=a.multi||!1,this.styleAliases=n(a.styleAliases||null),-1===r.indexOf(this.kind))throw new t('Unknown kind "'+this.kind+'" is specified for "'+i+'" YAML type.')}return(0,G.K)(n,"compileStyleAliases"),(0,G.K)(i,"Type2"),l=i}function ti(){if(h)return u;h=1;let t=te(),e=tn();function r(t,e){let r=[];return t[e].forEach(function(t){let e=r.length;r.forEach(function(r,n){r.tag===t.tag&&r.kind===t.kind&&r.multi===t.multi&&(e=n)}),r[e]=t}),r}function n(){let t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function e(e){e.multi?(t.multi[e.kind].push(e),t.multi.fallback.push(e)):t[e.kind][e.tag]=t.fallback[e.tag]=e}(0,G.K)(e,"collectType");for(let t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(e);return t}function i(t){return this.extend(t)}return(0,G.K)(r,"compileList"),(0,G.K)(n,"compileMap"),(0,G.K)(i,"Schema2"),i.prototype.extend=(0,G.K)(function(a){let o=[],s=[];if(a instanceof e)s.push(a);else if(Array.isArray(a))s=s.concat(a);else if(a&&(Array.isArray(a.implicit)||Array.isArray(a.explicit)))a.implicit&&(o=o.concat(a.implicit)),a.explicit&&(s=s.concat(a.explicit));else throw new t("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");o.forEach(function(r){if(!(r instanceof e))throw new t("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(r.loadKind&&"scalar"!==r.loadKind)throw new t("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(r.multi)throw new t("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),s.forEach(function(r){if(!(r instanceof e))throw new t("Specified list of YAML types (or a single Type object) contains a non-Type object.")});let l=Object.create(i.prototype);return l.implicit=(this.implicit||[]).concat(o),l.explicit=(this.explicit||[]).concat(s),l.compiledImplicit=r(l,"implicit"),l.compiledExplicit=r(l,"explicit"),l.compiledTypeMap=n(l.compiledImplicit,l.compiledExplicit),l},"extend"),u=i}function ta(){return d?f:(d=1,f=new(tn())("tag:yaml.org,2002:str",{kind:"scalar",construct:(0,G.K)(function(t){return null!==t?t:""},"construct")}))}function to(){return g?p:(g=1,p=new(tn())("tag:yaml.org,2002:seq",{kind:"sequence",construct:(0,G.K)(function(t){return null!==t?t:[]},"construct")}))}function ts(){return y?m:(y=1,m=new(tn())("tag:yaml.org,2002:map",{kind:"mapping",construct:(0,G.K)(function(t){return null!==t?t:{}},"construct")}))}function tl(){return x?b:(x=1,b=new(ti())({explicit:[ta(),to(),ts()]}))}function tc(){if(w)return _;w=1;let t=tn();function e(t){if(null===t)return!0;let e=t.length;return 1===e&&"~"===t||4===e&&("null"===t||"Null"===t||"NULL"===t)}function r(){return null}function n(t){return null===t}return(0,G.K)(e,"resolveYamlNull"),(0,G.K)(r,"constructYamlNull"),(0,G.K)(n,"isNull"),_=new t("tag:yaml.org,2002:null",{kind:"scalar",resolve:e,construct:r,predicate:n,represent:{canonical:(0,G.K)(function(){return"~"},"canonical"),lowercase:(0,G.K)(function(){return"null"},"lowercase"),uppercase:(0,G.K)(function(){return"NULL"},"uppercase"),camelcase:(0,G.K)(function(){return"Null"},"camelcase"),empty:(0,G.K)(function(){return""},"empty")},defaultStyle:"lowercase"})}function tu(){if(v)return k;v=1;let t=tn();function e(t){if(null===t)return!1;let e=t.length;return 4===e&&("true"===t||"True"===t||"TRUE"===t)||5===e&&("false"===t||"False"===t||"FALSE"===t)}function r(t){return"true"===t||"True"===t||"TRUE"===t}function n(t){return"[object Boolean]"===Object.prototype.toString.call(t)}return(0,G.K)(e,"resolveYamlBoolean"),(0,G.K)(r,"constructYamlBoolean"),(0,G.K)(n,"isBoolean"),k=new t("tag:yaml.org,2002:bool",{kind:"scalar",resolve:e,construct:r,predicate:n,represent:{lowercase:(0,G.K)(function(t){return t?"true":"false"},"lowercase"),uppercase:(0,G.K)(function(t){return t?"TRUE":"FALSE"},"uppercase"),camelcase:(0,G.K)(function(t){return t?"True":"False"},"camelcase")},defaultStyle:"lowercase"})}function th(){if(M)return A;M=1;let t=tt(),e=tn();function r(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function n(t){return t>=48&&t<=55}function i(t){return t>=48&&t<=57}function a(t){if(null===t)return!1;let e=t.length,a=0,s=!1;if(!e)return!1;let l=t[a];if(("-"===l||"+"===l)&&(l=t[++a]),"0"===l){if(a+1===e)return!0;if("b"===(l=t[++a])){for(a++;a<e;a++){if("0"!==(l=t[a])&&"1"!==l)return!1;s=!0}return s&&isFinite(o(t))}if("x"===l){for(a++;a<e;a++){if(!r(t.charCodeAt(a)))return!1;s=!0}return s&&isFinite(o(t))}if("o"===l){for(a++;a<e;a++){if(!n(t.charCodeAt(a)))return!1;s=!0}return s&&isFinite(o(t))}}for(;a<e;a++){if(!i(t.charCodeAt(a)))return!1;s=!0}return!!s&&isFinite(o(t))}function o(t){let e=t,r=1,n=e[0];if(("-"===n||"+"===n)&&("-"===n&&(r=-1),n=(e=e.slice(1))[0]),"0"===e)return 0;if("0"===n){if("b"===e[1])return r*parseInt(e.slice(2),2);if("x"===e[1])return r*parseInt(e.slice(2),16);if("o"===e[1])return r*parseInt(e.slice(2),8)}return r*parseInt(e,10)}function s(t){return o(t)}function l(e){return"[object Number]"===Object.prototype.toString.call(e)&&e%1==0&&!t.isNegativeZero(e)}return(0,G.K)(r,"isHexCode"),(0,G.K)(n,"isOctCode"),(0,G.K)(i,"isDecCode"),(0,G.K)(a,"resolveYamlInteger"),(0,G.K)(o,"parseYamlInteger"),(0,G.K)(s,"constructYamlInteger"),(0,G.K)(l,"isInteger"),A=new e("tag:yaml.org,2002:int",{kind:"scalar",resolve:a,construct:s,predicate:l,represent:{binary:(0,G.K)(function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},"binary"),octal:(0,G.K)(function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},"octal"),decimal:(0,G.K)(function(t){return t.toString(10)},"decimal"),hexadecimal:(0,G.K)(function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})}function tf(){if(T)return S;T=1;let t=tt(),e=tn(),r=RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),n=RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function i(t){return null!==t&&!!r.test(t)&&(!!isFinite(parseFloat(t,10))||n.test(t))}function a(t){let e=t.toLowerCase(),r="-"===e[0]?-1:1;return("+-".indexOf(e[0])>=0&&(e=e.slice(1)),".inf"===e)?1===r?1/0:-1/0:".nan"===e?NaN:r*parseFloat(e,10)}(0,G.K)(i,"resolveYamlFloat"),(0,G.K)(a,"constructYamlFloat");let o=/^[-+]?[0-9]+e/;function s(e,r){if(isNaN(e))switch(r){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(1/0===e)switch(r){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(-1/0===e)switch(r){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(t.isNegativeZero(e))return"-0.0";let n=e.toString(10);return o.test(n)?n.replace("e",".e"):n}function l(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||t.isNegativeZero(e))}return(0,G.K)(s,"representYamlFloat"),(0,G.K)(l,"isFloat"),S=new e("tag:yaml.org,2002:float",{kind:"scalar",resolve:i,construct:a,predicate:l,represent:s,defaultStyle:"lowercase"})}function td(){return $?C:($=1,C=tl().extend({implicit:[tc(),tu(),th(),tf()]}))}function tp(){return L?O:(L=1,O=td())}function tg(){if(R)return E;R=1;let t=tn(),e=RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),r=RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function n(t){return null!==t&&(null!==e.exec(t)||null!==r.exec(t))}function i(t){let n=0,i=null,a=e.exec(t);if(null===a&&(a=r.exec(t)),null===a)throw Error("Date resolve error");let o=+a[1],s=a[2]-1,l=+a[3];if(!a[4])return new Date(Date.UTC(o,s,l));let c=+a[4],u=+a[5],h=+a[6];if(a[7]){for(n=a[7].slice(0,3);n.length<3;)n+="0";n*=1}a[9]&&(i=(60*a[10]+ +(a[11]||0))*6e4,"-"===a[9]&&(i=-i));let f=new Date(Date.UTC(o,s,l,c,u,h,n));return i&&f.setTime(f.getTime()-i),f}function a(t){return t.toISOString()}return(0,G.K)(n,"resolveYamlTimestamp"),(0,G.K)(i,"constructYamlTimestamp"),(0,G.K)(a,"representYamlTimestamp"),E=new t("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:n,construct:i,instanceOf:Date,represent:a})}function tm(){if(j)return K;j=1;let t=tn();function e(t){return"<<"===t||null===t}return(0,G.K)(e,"resolveYamlMerge"),K=new t("tag:yaml.org,2002:merge",{kind:"scalar",resolve:e})}function ty(){if(N)return D;N=1;let t=tn(),e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function r(t){if(null===t)return!1;let r=0,n=t.length;for(let i=0;i<n;i++){let n=e.indexOf(t.charAt(i));if(!(n>64)){if(n<0)return!1;r+=6}}return r%8==0}function n(t){let r=t.replace(/[\r\n=]/g,""),n=r.length,i=0,a=[];for(let t=0;t<n;t++)t%4==0&&t&&(a.push(i>>16&255),a.push(i>>8&255),a.push(255&i)),i=i<<6|e.indexOf(r.charAt(t));let o=n%4*6;return 0===o?(a.push(i>>16&255),a.push(i>>8&255),a.push(255&i)):18===o?(a.push(i>>10&255),a.push(i>>2&255)):12===o&&a.push(i>>4&255),new Uint8Array(a)}function i(t){let r="",n=0,i=t.length;for(let a=0;a<i;a++)a%3==0&&a&&(r+=e[n>>18&63],r+=e[n>>12&63],r+=e[n>>6&63],r+=e[63&n]),n=(n<<8)+t[a];let a=i%3;return 0===a?(r+=e[n>>18&63],r+=e[n>>12&63],r+=e[n>>6&63],r+=e[63&n]):2===a?(r+=e[n>>10&63],r+=e[n>>4&63],r+=e[n<<2&63],r+=e[64]):1===a&&(r+=e[n>>2&63],r+=e[n<<4&63],r+=e[64],r+=e[64]),r}function a(t){return"[object Uint8Array]"===Object.prototype.toString.call(t)}return(0,G.K)(r,"resolveYamlBinary"),(0,G.K)(n,"constructYamlBinary"),(0,G.K)(i,"representYamlBinary"),(0,G.K)(a,"isBinary"),D=new t("tag:yaml.org,2002:binary",{kind:"scalar",resolve:r,construct:n,predicate:a,represent:i})}function tb(){if(I)return P;I=1;let t=tn(),e=Object.prototype.hasOwnProperty,r=Object.prototype.toString;function n(t){if(null===t)return!0;let n=[];for(let i=0,a=t.length;i<a;i+=1){let a,o=t[i],s=!1;if("[object Object]"!==r.call(o))return!1;for(a in o)if(e.call(o,a))if(s)return!1;else s=!0;if(!s||-1!==n.indexOf(a))return!1;n.push(a)}return!0}function i(t){return null!==t?t:[]}return(0,G.K)(n,"resolveYamlOmap"),(0,G.K)(i,"constructYamlOmap"),P=new t("tag:yaml.org,2002:omap",{kind:"sequence",resolve:n,construct:i})}function tx(){if(U)return F;U=1;let t=tn(),e=Object.prototype.toString;function r(t){if(null===t)return!0;let r=Array(t.length);for(let n=0,i=t.length;n<i;n+=1){let i=t[n];if("[object Object]"!==e.call(i))return!1;let a=Object.keys(i);if(1!==a.length)return!1;r[n]=[a[0],i[a[0]]]}return!0}function n(t){if(null===t)return[];let e=Array(t.length);for(let r=0,n=t.length;r<n;r+=1){let n=t[r],i=Object.keys(n);e[r]=[i[0],n[i[0]]]}return e}return(0,G.K)(r,"resolveYamlPairs"),(0,G.K)(n,"constructYamlPairs"),F=new t("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:r,construct:n})}function t_(){if(B)return z;B=1;let t=tn(),e=Object.prototype.hasOwnProperty;function r(t){if(null===t)return!0;for(let r in t)if(e.call(t,r)&&null!==t[r])return!1;return!0}function n(t){return null!==t?t:{}}return(0,G.K)(r,"resolveYamlSet"),(0,G.K)(n,"constructYamlSet"),z=new t("tag:yaml.org,2002:set",{kind:"mapping",resolve:r,construct:n})}function tw(){return H?Y:(H=1,Y=tp().extend({implicit:[tg(),tm()],explicit:[ty(),tb(),tx(),t_()]}))}function tk(){if(q)return Q;q=1;let t=tt(),e=te(),r=tr(),n=tw(),i=Object.prototype.hasOwnProperty,a=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,o=/[\x85\u2028\u2029]/,s=/[,\[\]{}]/,l=/^(?:!|!!|![0-9A-Za-z-]+!)$/,c=/^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;function u(t){return Object.prototype.toString.call(t)}function h(t){return 10===t||13===t}function f(t){return 9===t||32===t}function d(t){return 9===t||32===t||10===t||13===t}function p(t){return 44===t||91===t||93===t||123===t||125===t}function g(t){if(t>=48&&t<=57)return t-48;let e=32|t;return e>=97&&e<=102?e-97+10:-1}function m(t){return 120===t?2:117===t?4:8*(85===t)}function y(t){return t>=48&&t<=57?t-48:-1}function b(t){switch(t){case 48:return"\0";case 97:return"\x07";case 98:return"\b";case 116:case 9:return" ";case 110:return"\n";case 118:return"\v";case 102:return"\f";case 114:return"\r";case 101:return"\x1b";case 32:return" ";case 34:return'"';case 47:return"/";case 92:return"\\";case 78:return"\x85";case 95:return"\xa0";case 76:return"\u2028";case 80:return"\u2029";default:return""}}function x(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}function _(t,e,r){"__proto__"===e?Object.defineProperty(t,e,{configurable:!0,enumerable:!0,writable:!0,value:r}):t[e]=r}(0,G.K)(u,"_class"),(0,G.K)(h,"isEol"),(0,G.K)(f,"isWhiteSpace"),(0,G.K)(d,"isWsOrEol"),(0,G.K)(p,"isFlowIndicator"),(0,G.K)(g,"fromHexCode"),(0,G.K)(m,"escapedHexLen"),(0,G.K)(y,"fromDecimalCode"),(0,G.K)(b,"simpleEscapeSequence"),(0,G.K)(x,"charFromCodepoint"),(0,G.K)(_,"setProperty");let w=Array(256),k=Array(256);for(let t=0;t<256;t++)w[t]=+!!b(t),k[t]=b(t);function v(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||n,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.maxDepth="number"==typeof e.maxDepth?e.maxDepth:100,this.maxTotalMergeKeys="number"==typeof e.maxTotalMergeKeys?e.maxTotalMergeKeys:1e4,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.depth=0,this.totalMergeKeys=0,this.firstTabInLine=-1,this.documents=[],this.anchorMapTransactions=[]}function A(t,n){let i={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return i.snippet=r(i),new e(n,i)}function M(t,e){throw A(t,e)}function S(t,e){t.onWarning&&t.onWarning.call(null,A(t,e))}function T(t,e,r){let n=t.anchorMapTransactions;if(0!==n.length){let r=n[n.length-1];i.call(r,e)||(r[e]={existed:i.call(t.anchorMap,e),value:t.anchorMap[e]})}t.anchorMap[e]=r}function C(t){t.anchorMapTransactions.push(Object.create(null))}function $(t){let e=t.anchorMapTransactions.pop(),r=t.anchorMapTransactions;if(0===r.length)return;let n=r[r.length-1],a=Object.keys(e);for(let t=0,r=a.length;t<r;t+=1){let r=a[t];i.call(n,r)||(n[r]=e[r])}}function O(t){let e=t.anchorMapTransactions.pop(),r=Object.keys(e);for(let n=r.length-1;n>=0;n-=1){let i=e[r[n]];i.existed?t.anchorMap[r[n]]=i.value:delete t.anchorMap[r[n]]}}function L(t){return{position:t.position,line:t.line,lineStart:t.lineStart,lineIndent:t.lineIndent,firstTabInLine:t.firstTabInLine,tag:t.tag,anchor:t.anchor,kind:t.kind,result:t.result}}function E(t,e){t.position=e.position,t.line=e.line,t.lineStart=e.lineStart,t.lineIndent=e.lineIndent,t.firstTabInLine=e.firstTabInLine,t.tag=e.tag,t.anchor=e.anchor,t.kind=e.kind,t.result=e.result}(0,G.K)(v,"State"),(0,G.K)(A,"generateError"),(0,G.K)(M,"throwError"),(0,G.K)(S,"throwWarning"),(0,G.K)(T,"storeAnchor"),(0,G.K)(C,"beginAnchorTransaction"),(0,G.K)($,"commitAnchorTransaction"),(0,G.K)(O,"rollbackAnchorTransaction"),(0,G.K)(L,"snapshotState"),(0,G.K)(E,"restoreState");let R={YAML:(0,G.K)(function(t,e,r){null!==t.version&&M(t,"duplication of %YAML directive"),1!==r.length&&M(t,"YAML directive accepts exactly one argument");let n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]);null===n&&M(t,"ill-formed argument of the YAML directive");let i=parseInt(n[1],10),a=parseInt(n[2],10);1!==i&&M(t,"unacceptable YAML version of the document"),t.version=r[0],t.checkLineBreaks=a<2,1!==a&&2!==a&&S(t,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:(0,G.K)(function(t,e,r){let n;2!==r.length&&M(t,"TAG directive accepts exactly two arguments");let a=r[0];n=r[1],l.test(a)||M(t,"ill-formed tag handle (first argument) of the TAG directive"),i.call(t.tagMap,a)&&M(t,'there is a previously declared suffix for "'+a+'" tag handle'),c.test(n)||M(t,"ill-formed tag prefix (second argument) of the TAG directive");try{n=decodeURIComponent(n)}catch(e){M(t,"tag prefix is malformed: "+n)}t.tagMap[a]=n},"handleTagDirective")};function K(t,e,r,n){if(e<r){let i=t.input.slice(e,r);if(n)for(let e=0,r=i.length;e<r;e+=1){let r=i.charCodeAt(e);9===r||r>=32&&r<=1114111||M(t,"expected valid JSON character")}else a.test(i)&&M(t,"the stream contains non-printable characters");t.result+=i}}function j(e,r,n,a){t.isObject(n)||M(e,"cannot merge mappings; the provided source object is unacceptable");let o=Object.keys(n);for(let t=0,s=o.length;t<s;t+=1){let s=o[t];-1!==e.maxTotalMergeKeys&&++e.totalMergeKeys>e.maxTotalMergeKeys&&M(e,"merge keys exceeded maxTotalMergeKeys ("+e.maxTotalMergeKeys+")"),i.call(r,s)||(_(r,s,n[s]),a[s]=!0)}}function D(t,e,r,n,a,o,s,l,c){if(Array.isArray(a)){a=Array.prototype.slice.call(a);for(let e=0,r=a.length;e<r;e+=1)Array.isArray(a[e])&&M(t,"nested arrays are not supported inside keys"),"object"==typeof a&&"[object Object]"===u(a[e])&&(a[e]="[object Object]")}if("object"==typeof a&&"[object Object]"===u(a)&&(a="[object Object]"),a=String(a),null===e&&(e={}),"tag:yaml.org,2002:merge"===n)if(Array.isArray(o))for(let n=0,i=o.length;n<i;n+=1)j(t,e,o[n],r);else j(t,e,o,r);else!t.json&&!i.call(r,a)&&i.call(e,a)&&(t.line=s||t.line,t.lineStart=l||t.lineStart,t.position=c||t.position,M(t,"duplicated mapping key")),_(e,a,o),delete r[a];return e}function N(t){let e=t.input.charCodeAt(t.position);10===e?t.position++:13===e?(t.position++,10===t.input.charCodeAt(t.position)&&t.position++):M(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function P(t,e,r){let n=0,i=t.input.charCodeAt(t.position);for(;0!==i;){for(;f(i);)9===i&&-1===t.firstTabInLine&&(t.firstTabInLine=t.position),i=t.input.charCodeAt(++t.position);if(e&&35===i)do i=t.input.charCodeAt(++t.position);while(10!==i&&13!==i&&0!==i);if(h(i))for(N(t),i=t.input.charCodeAt(t.position),n++,t.lineIndent=0;32===i;)t.lineIndent++,i=t.input.charCodeAt(++t.position);else break}return -1!==r&&0!==n&&t.lineIndent<r&&S(t,"deficient indentation"),n}function I(t){let e=t.position,r=t.input.charCodeAt(e);return!!((45===r||46===r)&&r===t.input.charCodeAt(e+1)&&r===t.input.charCodeAt(e+2)&&(e+=3,0===(r=t.input.charCodeAt(e))||d(r)))||!1}function F(e,r){1===r?e.result+=" ":r>1&&(e.result+=t.repeat("\n",r-1))}function U(t,e,r){let n,i,a,o,s,l,c=t.kind,u=t.result,g=t.input.charCodeAt(t.position);if(d(g)||p(g)||35===g||38===g||42===g||33===g||124===g||62===g||39===g||34===g||37===g||64===g||96===g)return!1;if(63===g||45===g){let e=t.input.charCodeAt(t.position+1);if(d(e)||r&&p(e))return!1}for(t.kind="scalar",t.result="",n=i=t.position,a=!1;0!==g;){if(58===g){let e=t.input.charCodeAt(t.position+1);if(d(e)||r&&p(e))break}else if(35===g){if(d(t.input.charCodeAt(t.position-1)))break}else if(t.position===t.lineStart&&I(t)||r&&p(g))break;else if(h(g)){if(o=t.line,s=t.lineStart,l=t.lineIndent,P(t,!1,-1),t.lineIndent>=e){a=!0,g=t.input.charCodeAt(t.position);continue}t.position=i,t.line=o,t.lineStart=s,t.lineIndent=l;break}a&&(K(t,n,i,!1),F(t,t.line-o),n=i=t.position,a=!1),f(g)||(i=t.position+1),g=t.input.charCodeAt(++t.position)}return K(t,n,i,!1),!!t.result||(t.kind=c,t.result=u,!1)}function z(t,e){let r,n,i=t.input.charCodeAt(t.position);if(39!==i)return!1;for(t.kind="scalar",t.result="",t.position++,r=n=t.position;0!==(i=t.input.charCodeAt(t.position));)if(39===i){if(K(t,r,t.position,!0),39!==(i=t.input.charCodeAt(++t.position)))return!0;r=t.position,t.position++,n=t.position}else h(i)?(K(t,r,n,!0),F(t,P(t,!1,e)),r=n=t.position):t.position===t.lineStart&&I(t)?M(t,"unexpected end of the document within a single quoted scalar"):(t.position++,f(i)||(n=t.position));M(t,"unexpected end of the stream within a single quoted scalar")}function B(t,e){let r,n,i,a=t.input.charCodeAt(t.position);if(34!==a)return!1;for(t.kind="scalar",t.result="",t.position++,r=n=t.position;0!==(a=t.input.charCodeAt(t.position));)if(34===a)return K(t,r,t.position,!0),t.position++,!0;else if(92===a){if(K(t,r,t.position,!0),h(a=t.input.charCodeAt(++t.position)))P(t,!1,e);else if(a<256&&w[a])t.result+=k[a],t.position++;else if((i=m(a))>0){let e=i,r=0;for(;e>0;e--)(i=g(a=t.input.charCodeAt(++t.position)))>=0?r=(r<<4)+i:M(t,"expected hexadecimal character");t.result+=x(r),t.position++}else M(t,"unknown escape sequence");r=n=t.position}else h(a)?(K(t,r,n,!0),F(t,P(t,!1,e)),r=n=t.position):t.position===t.lineStart&&I(t)?M(t,"unexpected end of the document within a double quoted scalar"):(t.position++,f(a)||(n=t.position));M(t,"unexpected end of the stream within a double quoted scalar")}function Y(t,e){let r,n,i,a,o,s,l,c,u,h,f,p=!0,g=t.tag,m=t.anchor,y=Object.create(null),b=t.input.charCodeAt(t.position);if(91===b)o=93,c=!1,a=[];else{if(123!==b)return!1;o=125,c=!0,a={}}for(null!==t.anchor&&T(t,t.anchor,a),b=t.input.charCodeAt(++t.position);0!==b;){if(P(t,!0,e),(b=t.input.charCodeAt(t.position))===o)return t.position++,t.tag=g,t.anchor=m,t.kind=c?"mapping":"sequence",t.result=a,!0;p?44===b&&M(t,"expected the node content, but found ','"):M(t,"missed comma between flow collection entries"),h=u=f=null,s=l=!1,63===b&&d(t.input.charCodeAt(t.position+1))&&(s=l=!0,t.position++,P(t,!0,e)),r=t.line,n=t.lineStart,i=t.position,ti(t,e,1,!1,!0),h=t.tag,u=t.result,P(t,!0,e),b=t.input.charCodeAt(t.position),(l||t.line===r)&&58===b&&(s=!0,b=t.input.charCodeAt(++t.position),P(t,!0,e),ti(t,e,1,!1,!0),f=t.result),c?D(t,a,y,h,u,f,r,n,i):s?a.push(D(t,null,y,h,u,f,r,n,i)):a.push(u),P(t,!0,e),44===(b=t.input.charCodeAt(t.position))?(p=!0,b=t.input.charCodeAt(++t.position)):p=!1}M(t,"unexpected end of the stream within a flow collection")}function H(e,r){let n,i,a=1,o=!1,s=!1,l=r,c=0,u=!1,d=e.input.charCodeAt(e.position);if(124===d)n=!1;else{if(62!==d)return!1;n=!0}for(e.kind="scalar",e.result="";0!==d;)if(43===(d=e.input.charCodeAt(++e.position))||45===d)1===a?a=43===d?3:2:M(e,"repeat of a chomping mode identifier");else if((i=y(d))>=0)0===i?M(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?M(e,"repeat of an indentation width identifier"):(l=r+i-1,s=!0);else break;if(f(d)){do d=e.input.charCodeAt(++e.position);while(f(d));if(35===d)do d=e.input.charCodeAt(++e.position);while(!h(d)&&0!==d)}for(;0!==d;){for(N(e),e.lineIndent=0,d=e.input.charCodeAt(e.position);(!s||e.lineIndent<l)&&32===d;)e.lineIndent++,d=e.input.charCodeAt(++e.position);if(!s&&e.lineIndent>l&&(l=e.lineIndent),h(d)){c++;continue}if(s||0!==l||M(e,"missing indentation for block scalar"),e.lineIndent<l){3===a?e.result+=t.repeat("\n",o?1+c:c):1===a&&o&&(e.result+="\n");break}n?f(d)?(u=!0,e.result+=t.repeat("\n",o?1+c:c)):u?(u=!1,e.result+=t.repeat("\n",c+1)):0===c?o&&(e.result+=" "):e.result+=t.repeat("\n",c):e.result+=t.repeat("\n",o?1+c:c),o=!0,s=!0,c=0;let r=e.position;for(;!h(d)&&0!==d;)d=e.input.charCodeAt(++e.position);K(e,r,e.position,!1)}return!0}function W(t,e){let r=t.tag,n=t.anchor,i=[],a=!1;if(-1!==t.firstTabInLine)return!1;null!==t.anchor&&T(t,t.anchor,i);let o=t.input.charCodeAt(t.position);for(;0!==o&&(-1!==t.firstTabInLine&&(t.position=t.firstTabInLine,M(t,"tab characters must not be used in indentation")),45===o&&d(t.input.charCodeAt(t.position+1)));){if(a=!0,t.position++,P(t,!0,-1)&&t.lineIndent<=e){i.push(null),o=t.input.charCodeAt(t.position);continue}let r=t.line;if(ti(t,e,3,!1,!0),i.push(t.result),P(t,!0,-1),o=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&0!==o)M(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return!!a&&(t.tag=r,t.anchor=n,t.kind="sequence",t.result=i,!0)}function X(t,e,r){let n,i,a,o,s=t.tag,l=t.anchor,c={},u=Object.create(null),h=null,p=null,g=null,m=!1,y=!1;if(-1!==t.firstTabInLine)return!1;null!==t.anchor&&T(t,t.anchor,c);let b=t.input.charCodeAt(t.position);for(;0!==b;){m||-1===t.firstTabInLine||(t.position=t.firstTabInLine,M(t,"tab characters must not be used in indentation"));let x=t.input.charCodeAt(t.position+1),_=t.line;if((63===b||58===b)&&d(x))63===b?(m&&(D(t,c,u,h,p,null,i,a,o),h=p=g=null),y=!0,m=!0,n=!0):m?(m=!1,n=!0):M(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,b=x;else{if(i=t.line,a=t.lineStart,o=t.position,!ti(t,r,2,!1,!0))break;if(t.line===_){for(b=t.input.charCodeAt(t.position);f(b);)b=t.input.charCodeAt(++t.position);if(58===b)d(b=t.input.charCodeAt(++t.position))||M(t,"a whitespace character is expected after the key-value separator within a block mapping"),m&&(D(t,c,u,h,p,null,i,a,o),h=p=g=null),y=!0,m=!1,n=!1,h=t.tag,p=t.result;else{if(!y)return t.tag=s,t.anchor=l,!0;M(t,"can not read an implicit mapping pair; a colon is missed")}}else{if(!y)return t.tag=s,t.anchor=l,!0;M(t,"can not read a block mapping entry; a multiline key may not be an implicit key")}}if((t.line===_||t.lineIndent>e)&&(m&&(i=t.line,a=t.lineStart,o=t.position),ti(t,e,4,!0,n)&&(m?p=t.result:g=t.result),m||(D(t,c,u,h,p,g,i,a,o),h=p=g=null),P(t,!0,-1),b=t.input.charCodeAt(t.position)),(t.line===_||t.lineIndent>e)&&0!==b)M(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return m&&D(t,c,u,h,p,null,i,a,o),y&&(t.tag=s,t.anchor=l,t.kind="mapping",t.result=c),y}function Z(t){let e,r,n=!1,a=!1,o=t.input.charCodeAt(t.position);if(33!==o)return!1;null!==t.tag&&M(t,"duplication of a tag property"),60===(o=t.input.charCodeAt(++t.position))?(n=!0,o=t.input.charCodeAt(++t.position)):33===o?(a=!0,e="!!",o=t.input.charCodeAt(++t.position)):e="!";let u=t.position;if(n){do o=t.input.charCodeAt(++t.position);while(0!==o&&62!==o);t.position<t.length?(r=t.input.slice(u,t.position),o=t.input.charCodeAt(++t.position)):M(t,"unexpected end of the stream within a verbatim tag")}else{for(;0!==o&&!d(o);)33===o&&(a?M(t,"tag suffix cannot contain exclamation marks"):(e=t.input.slice(u-1,t.position+1),l.test(e)||M(t,"named tag handle cannot contain such characters"),a=!0,u=t.position+1)),o=t.input.charCodeAt(++t.position);r=t.input.slice(u,t.position),s.test(r)&&M(t,"tag suffix cannot contain flow indicator characters")}r&&!c.test(r)&&M(t,"tag name cannot contain such characters: "+r);try{r=decodeURIComponent(r)}catch(e){M(t,"tag name is malformed: "+r)}return n?t.tag=r:i.call(t.tagMap,e)?t.tag=t.tagMap[e]+r:"!"===e?t.tag="!"+r:"!!"===e?t.tag="tag:yaml.org,2002:"+r:M(t,'undeclared tag handle "'+e+'"'),!0}function V(t){let e=t.input.charCodeAt(t.position);if(38!==e)return!1;null!==t.anchor&&M(t,"duplication of an anchor property"),e=t.input.charCodeAt(++t.position);let r=t.position;for(;0!==e&&!d(e)&&!p(e);)e=t.input.charCodeAt(++t.position);return t.position===r&&M(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(r,t.position),!0}function J(t){let e=t.input.charCodeAt(t.position);if(42!==e)return!1;e=t.input.charCodeAt(++t.position);let r=t.position;for(;0!==e&&!d(e)&&!p(e);)e=t.input.charCodeAt(++t.position);t.position===r&&M(t,"name of an alias node must contain at least one character");let n=t.input.slice(r,t.position);return i.call(t.anchorMap,n)||M(t,'unidentified alias "'+n+'"'),t.result=t.anchorMap[n],P(t,!0,-1),!0}function tn(t,e,r,n){let i=L(t);return(C(t),E(t,e),t.tag=null,t.anchor=null,t.kind=null,t.result=null,X(t,r,n)&&"mapping"===t.kind)?($(t),!0):(O(t),E(t,i),!1)}function ti(t,e,r,n,a){let o,s,l,c,u,h=1,f=!1,d=!1,p=null;t.depth>=t.maxDepth&&M(t,"nesting exceeded maxDepth ("+t.maxDepth+")"),t.depth+=1,null!==t.listener&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null;let g=o=s=4===r||3===r;if(n&&P(t,!0,-1)&&(f=!0,t.lineIndent>e?h=1:t.lineIndent===e?h=0:t.lineIndent<e&&(h=-1)),1===h)for(;;){let r=t.input.charCodeAt(t.position),n=L(t);if(f&&(33===r&&null!==t.tag||38===r&&null!==t.anchor)||!Z(t)&&!V(t))break;null===p&&(p=n),P(t,!0,-1)?(f=!0,s=g,t.lineIndent>e?h=1:t.lineIndent===e?h=0:t.lineIndent<e&&(h=-1)):s=!1}if(s&&(s=f||a),1===h||4===r)if(c=1===r||2===r?e:e+1,u=t.position-t.lineStart,1===h)if(s&&(W(t,u)||X(t,u,c))||Y(t,c))d=!0;else{let e=t.input.charCodeAt(t.position);null!==p&&g&&!s&&124!==e&&62!==e&&tn(t,p,p.position-p.lineStart,c)||o&&H(t,c)||z(t,c)||B(t,c)?d=!0:J(t)?(d=!0,(null!==t.tag||null!==t.anchor)&&M(t,"alias node should not have any properties")):U(t,c,1===r)&&(d=!0,null===t.tag&&(t.tag="?")),null!==t.anchor&&T(t,t.anchor,t.result)}else 0===h&&(d=s&&W(t,u));if(null===t.tag)null!==t.anchor&&T(t,t.anchor,t.result);else if("?"===t.tag){null!==t.result&&"scalar"!==t.kind&&M(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"');for(let e=0,r=t.implicitTypes.length;e<r;e+=1)if((l=t.implicitTypes[e]).resolve(t.result)){t.result=l.construct(t.result),t.tag=l.tag,null!==t.anchor&&T(t,t.anchor,t.result);break}}else if("!"!==t.tag){if(i.call(t.typeMap[t.kind||"fallback"],t.tag))l=t.typeMap[t.kind||"fallback"][t.tag];else{l=null;let e=t.typeMap.multi[t.kind||"fallback"];for(let r=0,n=e.length;r<n;r+=1)if(t.tag.slice(0,e[r].tag.length)===e[r].tag){l=e[r];break}}l||M(t,"unknown tag !<"+t.tag+">"),null!==t.result&&l.kind!==t.kind&&M(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+l.kind+'", not "'+t.kind+'"'),l.resolve(t.result,t.tag)?(t.result=l.construct(t.result,t.tag),null!==t.anchor&&T(t,t.anchor,t.result)):M(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return null!==t.listener&&t.listener("close",t),t.depth-=1,null!==t.tag||null!==t.anchor||d}function ta(t){let e,r=t.position,n=!1;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);0!==(e=t.input.charCodeAt(t.position))&&(P(t,!0,-1),e=t.input.charCodeAt(t.position),!(t.lineIndent>0)&&37===e);){n=!0,e=t.input.charCodeAt(++t.position);let r=t.position;for(;0!==e&&!d(e);)e=t.input.charCodeAt(++t.position);let a=t.input.slice(r,t.position),o=[];for(a.length<1&&M(t,"directive name must not be less than one character in length");0!==e;){for(;f(e);)e=t.input.charCodeAt(++t.position);if(35===e){do e=t.input.charCodeAt(++t.position);while(0!==e&&!h(e));break}if(h(e))break;for(r=t.position;0!==e&&!d(e);)e=t.input.charCodeAt(++t.position);o.push(t.input.slice(r,t.position))}0!==e&&N(t),i.call(R,a)?R[a](t,a,o):S(t,'unknown document directive "'+a+'"')}if(P(t,!0,-1),0===t.lineIndent&&45===t.input.charCodeAt(t.position)&&45===t.input.charCodeAt(t.position+1)&&45===t.input.charCodeAt(t.position+2)?(t.position+=3,P(t,!0,-1)):n&&M(t,"directives end mark is expected"),ti(t,t.lineIndent-1,4,!1,!0),P(t,!0,-1),t.checkLineBreaks&&o.test(t.input.slice(r,t.position))&&S(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&I(t)){46===t.input.charCodeAt(t.position)&&(t.position+=3,P(t,!0,-1));return}t.position<t.length-1&&M(t,"end of the stream or a document separator is expected")}function to(t,e){t=String(t),e=e||{},0!==t.length&&(10!==t.charCodeAt(t.length-1)&&13!==t.charCodeAt(t.length-1)&&(t+="\n"),65279===t.charCodeAt(0)&&(t=t.slice(1)));let r=new v(t,e),n=t.indexOf("\0");for(-1!==n&&(r.position=n,M(r,"null byte is not allowed in input")),r.input+="\0";32===r.input.charCodeAt(r.position);)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)ta(r);return r.documents}function ts(t,e,r){null!==e&&"object"==typeof e&&void 0===r&&(r=e,e=null);let n=to(t,r);if("function"!=typeof e)return n;for(let t=0,r=n.length;t<r;t+=1)e(n[t])}function tl(t,r){let n=to(t,r);if(0!==n.length){if(1===n.length)return n[0];throw new e("expected a single document in the stream, but found more")}}return(0,G.K)(K,"captureSegment"),(0,G.K)(j,"mergeMappings"),(0,G.K)(D,"storeMappingPair"),(0,G.K)(N,"readLineBreak"),(0,G.K)(P,"skipSeparationSpace"),(0,G.K)(I,"testDocumentSeparator"),(0,G.K)(F,"writeFoldedLines"),(0,G.K)(U,"readPlainScalar"),(0,G.K)(z,"readSingleQuotedScalar"),(0,G.K)(B,"readDoubleQuotedScalar"),(0,G.K)(Y,"readFlowCollection"),(0,G.K)(H,"readBlockScalar"),(0,G.K)(W,"readBlockSequence"),(0,G.K)(X,"readBlockMapping"),(0,G.K)(Z,"readTagProperty"),(0,G.K)(V,"readAnchorProperty"),(0,G.K)(J,"readAlias"),(0,G.K)(tn,"tryReadBlockMappingFromProperty"),(0,G.K)(ti,"composeNode"),(0,G.K)(ta,"readDocument"),(0,G.K)(to,"loadDocuments"),(0,G.K)(ts,"loadAll2"),(0,G.K)(tl,"load2"),Q.loadAll=ts,Q.load=tl,Q}(0,G.K)(tt,"requireCommon"),(0,G.K)(te,"requireException"),(0,G.K)(tr,"requireSnippet"),(0,G.K)(tn,"requireType"),(0,G.K)(ti,"requireSchema"),(0,G.K)(ta,"requireStr"),(0,G.K)(to,"requireSeq"),(0,G.K)(ts,"requireMap"),(0,G.K)(tl,"requireFailsafe"),(0,G.K)(tc,"require_null"),(0,G.K)(tu,"requireBool"),(0,G.K)(th,"requireInt"),(0,G.K)(tf,"requireFloat"),(0,G.K)(td,"requireJson"),(0,G.K)(tp,"requireCore"),(0,G.K)(tg,"requireTimestamp"),(0,G.K)(tm,"requireMerge"),(0,G.K)(ty,"requireBinary"),(0,G.K)(tb,"requireOmap"),(0,G.K)(tx,"requirePairs"),(0,G.K)(t_,"requireSet"),(0,G.K)(tw,"require_default"),(0,G.K)(tk,"requireLoader");var tv={};function tA(){if(W)return tv;W=1;let t=tt(),e=te(),r=tw(),n=Object.prototype.toString,i=Object.prototype.hasOwnProperty,a={};a[0]="\\0",a[7]="\\a",a[8]="\\b",a[9]="\\t",a[10]="\\n",a[11]="\\v",a[12]="\\f",a[13]="\\r",a[27]="\\e",a[34]='\\"',a[92]="\\\\",a[133]="\\N",a[160]="\\_",a[8232]="\\L",a[8233]="\\P";let o=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],s=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function l(t,e){if(null===e)return{};let r={},n=Object.keys(e);for(let a=0,o=n.length;a<o;a+=1){let o=n[a],s=String(e[o]);"!!"===o.slice(0,2)&&(o="tag:yaml.org,2002:"+o.slice(2));let l=t.compiledTypeMap.fallback[o];l&&i.call(l.styleAliases,s)&&(s=l.styleAliases[s]),r[o]=s}return r}function c(r){let n,i,a=r.toString(16).toUpperCase();if(r<=255)n="x",i=2;else if(r<=65535)n="u",i=4;else if(r<=0xffffffff)n="U",i=8;else throw new e("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+n+t.repeat("0",i-a.length)+a}function u(e){this.schema=e.schema||r,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=t.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=l(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType='"'===e.quotingType?2:1,this.forceQuotes=e.forceQuotes||!1,this.replacer="function"==typeof e.replacer?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function h(e,r){let n=t.repeat(" ",r),i=0,a="",o=e.length;for(;i<o;){let t,r=e.indexOf("\n",i);-1===r?(t=e.slice(i),i=o):(t=e.slice(i,r+1),i=r+1),t.length&&"\n"!==t&&(a+=n),a+=t}return a}function f(e,r){return"\n"+t.repeat(" ",e.indent*r)}function d(t,e){for(let r=0,n=t.implicitTypes.length;r<n;r+=1)if(t.implicitTypes[r].resolve(e))return!0;return!1}function p(t){return 32===t||9===t}function g(t){return t>=32&&t<=126||t>=161&&t<=55295&&8232!==t&&8233!==t||t>=57344&&t<=65533&&65279!==t||t>=65536&&t<=1114111}function m(t){return g(t)&&65279!==t&&13!==t&&10!==t}function y(t,e,r){let n=m(t),i=n&&!p(t);return(r?n:n&&44!==t&&91!==t&&93!==t&&123!==t&&125!==t)&&35!==t&&!(58===e&&!i)||m(e)&&!p(e)&&35===t||58===e&&i}function b(t){return g(t)&&65279!==t&&!p(t)&&45!==t&&63!==t&&58!==t&&44!==t&&91!==t&&93!==t&&123!==t&&125!==t&&35!==t&&38!==t&&42!==t&&33!==t&&124!==t&&61!==t&&62!==t&&39!==t&&34!==t&&37!==t&&64!==t&&96!==t}function x(t){return!p(t)&&58!==t}function _(t,e){let r,n=t.charCodeAt(e);return n>=55296&&n<=56319&&e+1<t.length&&(r=t.charCodeAt(e+1))>=56320&&r<=57343?(n-55296)*1024+r-56320+65536:n}function w(t){return/^\n* /.test(t)}function k(t,e,r,n,i,a,o,s){let l,c=0,u=null,h=!1,f=!1,d=-1!==n,p=-1,m=b(_(t,0))&&x(_(t,t.length-1));if(e||o)for(l=0;l<t.length;c>=65536?l+=2:l++){if(!g(c=_(t,l)))return 5;m=m&&y(c,u,s),u=c}else{for(l=0;l<t.length;c>=65536?l+=2:l++){if(10===(c=_(t,l)))h=!0,d&&(f=f||l-p-1>n&&" "!==t[p+1],p=l);else if(!g(c))return 5;m=m&&y(c,u,s),u=c}f=f||d&&l-p-1>n&&" "!==t[p+1]}return h||f?r>9&&w(t)?5:o?2===a?5:2:f?4:3:!m||o||i(t)?2===a?5:2:1}function v(t,r,n,i,a){t.dump=function(){if(0===r.length)return 2===t.quotingType?'""':"''";if(!t.noCompatMode&&(-1!==o.indexOf(r)||s.test(r)))return 2===t.quotingType?'"'+r+'"':"'"+r+"'";let l=t.indent*Math.max(1,n),c=-1===t.lineWidth?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-l),u=i||t.flowLevel>-1&&n>=t.flowLevel;function f(e){return d(t,e)}switch((0,G.K)(f,"testAmbiguity"),k(r,u,t.indent,c,f,t.quotingType,t.forceQuotes&&!i,a)){case 1:return r;case 2:return"'"+r.replace(/'/g,"''")+"'";case 3:return"|"+A(r,t.indent)+M(h(r,l));case 4:return">"+A(r,t.indent)+M(h(S(r,c),l));case 5:return'"'+C(r)+'"';default:throw new e("impossible error: invalid scalar style")}}()}function A(t,e){let r=w(t)?String(e):"",n="\n"===t[t.length-1];return r+(n&&("\n"===t[t.length-2]||"\n"===t)?"+":n?"":"-")+"\n"}function M(t){return"\n"===t[t.length-1]?t.slice(0,-1):t}function S(t,e){let r,n,i,a=/(\n+)([^\n]*)/g,o=(a.lastIndex=i=-1!==(i=t.indexOf("\n"))?i:t.length,T(t.slice(0,i),e)),s="\n"===t[0]||" "===t[0];for(;n=a.exec(t);){let t=n[1],i=n[2];r=" "===i[0],o+=t+(s||r||""===i?"":"\n")+T(i,e),s=r}return o}function T(t,e){let r,n;if(""===t||" "===t[0])return t;let i=/ [^ ]/g,a=0,o=0,s=0,l="";for(;r=i.exec(t);)(s=r.index)-a>e&&(n=o>a?o:s,l+="\n"+t.slice(a,n),a=n+1),o=s;return l+="\n",t.length-a>e&&o>a?l+=t.slice(a,o)+"\n"+t.slice(o+1):l+=t.slice(a),l.slice(1)}function C(t){let e="",r=0;for(let n=0;n<t.length;r>=65536?n+=2:n++){let i=a[r=_(t,n)];!i&&g(r)?(e+=t[n],r>=65536&&(e+=t[n+1])):e+=i||c(r)}return e}function $(t,e,r){let n="",i=t.tag;for(let i=0,a=r.length;i<a;i+=1){let a=r[i];t.replacer&&(a=t.replacer.call(r,String(i),a)),(K(t,e,a,!1,!1)||void 0===a&&K(t,e,null,!1,!1))&&(""!==n&&(n+=","+(t.condenseFlow?"":" ")),n+=t.dump)}t.tag=i,t.dump="["+n+"]"}function O(t,e,r,n){let i="",a=t.tag;for(let a=0,o=r.length;a<o;a+=1){let o=r[a];t.replacer&&(o=t.replacer.call(r,String(a),o)),(K(t,e+1,o,!0,!0,!1,!0)||void 0===o&&K(t,e+1,null,!0,!0,!1,!0))&&(n&&""===i||(i+=f(t,e)),t.dump&&10===t.dump.charCodeAt(0)?i+="-":i+="- ",i+=t.dump)}t.tag=a,t.dump=i||"[]"}function L(t,e,r){let n="",i=t.tag,a=Object.keys(r);for(let i=0,o=a.length;i<o;i+=1){let o="";""!==n&&(o+=", "),t.condenseFlow&&(o+='"');let s=a[i],l=r[s];t.replacer&&(l=t.replacer.call(r,s,l)),K(t,e,s,!1,!1)&&(t.dump.length>1024&&(o+="? "),o+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),K(t,e,l,!1,!1)&&(o+=t.dump,n+=o))}t.tag=i,t.dump="{"+n+"}"}function E(t,r,n,i){let a="",o=t.tag,s=Object.keys(n);if(!0===t.sortKeys)s.sort();else if("function"==typeof t.sortKeys)s.sort(t.sortKeys);else if(t.sortKeys)throw new e("sortKeys must be a boolean or a function");for(let e=0,o=s.length;e<o;e+=1){let o="";i&&""===a||(o+=f(t,r));let l=s[e],c=n[l];if(t.replacer&&(c=t.replacer.call(n,l,c)),!K(t,r+1,l,!0,!0,!0))continue;let u=null!==t.tag&&"?"!==t.tag||t.dump&&t.dump.length>1024;u&&(t.dump&&10===t.dump.charCodeAt(0)?o+="?":o+="? "),o+=t.dump,u&&(o+=f(t,r)),K(t,r+1,c,!0,u)&&(t.dump&&10===t.dump.charCodeAt(0)?o+=":":o+=": ",o+=t.dump,a+=o)}t.tag=o,t.dump=a||"{}"}function R(t,r,a){let o=a?t.explicitTypes:t.implicitTypes;for(let s=0,l=o.length;s<l;s+=1){let l=o[s];if((l.instanceOf||l.predicate)&&(!l.instanceOf||"object"==typeof r&&r instanceof l.instanceOf)&&(!l.predicate||l.predicate(r))){if(a?l.multi&&l.representName?t.tag=l.representName(r):t.tag=l.tag:t.tag="?",l.represent){let a,o=t.styleMap[l.tag]||l.defaultStyle;if("[object Function]"===n.call(l.represent))a=l.represent(r,o);else if(i.call(l.represent,o))a=l.represent[o](r,o);else throw new e("!<"+l.tag+'> tag resolver accepts not "'+o+'" style');t.dump=a}return!0}}return!1}function K(t,r,i,a,o,s,l){let c,u;t.tag=null,t.dump=i,R(t,i,!1)||R(t,i,!0);let h=n.call(t.dump),f=a;a&&(a=t.flowLevel<0||t.flowLevel>r);let d="[object Object]"===h||"[object Array]"===h;if(d&&(u=-1!==(c=t.duplicates.indexOf(i))),(null!==t.tag&&"?"!==t.tag||u||2!==t.indent&&r>0)&&(o=!1),u&&t.usedDuplicates[c])t.dump="*ref_"+c;else{if(d&&u&&!t.usedDuplicates[c]&&(t.usedDuplicates[c]=!0),"[object Object]"===h)a&&0!==Object.keys(t.dump).length?(E(t,r,t.dump,o),u&&(t.dump="&ref_"+c+t.dump)):(L(t,r,t.dump),u&&(t.dump="&ref_"+c+" "+t.dump));else if("[object Array]"===h)a&&0!==t.dump.length?(t.noArrayIndent&&!l&&r>0?O(t,r-1,t.dump,o):O(t,r,t.dump,o),u&&(t.dump="&ref_"+c+t.dump)):($(t,r,t.dump),u&&(t.dump="&ref_"+c+" "+t.dump));else if("[object String]"===h)"?"!==t.tag&&v(t,t.dump,r,s,f);else{if("[object Undefined]"===h||t.skipInvalid)return!1;throw new e("unacceptable kind of an object to dump "+h)}if(null!==t.tag&&"?"!==t.tag){let e=encodeURI("!"===t.tag[0]?t.tag.slice(1):t.tag).replace(/!/g,"%21");e="!"===t.tag[0]?"!"+e:"tag:yaml.org,2002:"===e.slice(0,18)?"!!"+e.slice(18):"!<"+e+">",t.dump=e+" "+t.dump}}return!0}function j(t,e){let r=[],n=[];D(t,r,n);let i=n.length;for(let t=0;t<i;t+=1)e.duplicates.push(r[n[t]]);e.usedDuplicates=Array(i)}function D(t,e,r){if(null!==t&&"object"==typeof t){let n=e.indexOf(t);if(-1!==n)-1===r.indexOf(n)&&r.push(n);else if(e.push(t),Array.isArray(t))for(let n=0,i=t.length;n<i;n+=1)D(t[n],e,r);else{let n=Object.keys(t);for(let i=0,a=n.length;i<a;i+=1)D(t[n[i]],e,r)}}}function N(t,e){let r=new u(e=e||{});r.noRefs||j(t,r);let n=t;return(r.replacer&&(n=r.replacer.call({"":n},"",n)),K(r,0,n,!0,!0))?r.dump+"\n":""}return(0,G.K)(l,"compileStyleMap"),(0,G.K)(c,"encodeHex"),(0,G.K)(u,"State"),(0,G.K)(h,"indentString"),(0,G.K)(f,"generateNextLine"),(0,G.K)(d,"testImplicitResolving"),(0,G.K)(p,"isWhitespace"),(0,G.K)(g,"isPrintable"),(0,G.K)(m,"isNsCharOrWhitespace"),(0,G.K)(y,"isPlainSafe"),(0,G.K)(b,"isPlainSafeFirst"),(0,G.K)(x,"isPlainSafeLast"),(0,G.K)(_,"codePointAt"),(0,G.K)(w,"needIndentIndicator"),(0,G.K)(k,"chooseScalarStyle"),(0,G.K)(v,"writeScalar"),(0,G.K)(A,"blockHeader"),(0,G.K)(M,"dropEndingNewline"),(0,G.K)(S,"foldString"),(0,G.K)(T,"foldLine"),(0,G.K)(C,"escapeString"),(0,G.K)($,"writeFlowSequence"),(0,G.K)(O,"writeBlockSequence"),(0,G.K)(L,"writeFlowMapping"),(0,G.K)(E,"writeBlockMapping"),(0,G.K)(R,"detectType"),(0,G.K)(K,"writeNode"),(0,G.K)(j,"getDuplicateReferences"),(0,G.K)(D,"inspectNode"),(0,G.K)(N,"dump2"),tv.dump=N,tv}function tM(){if(X)return V;X=1;let t=tk(),e=tA();function r(t,e){return function(){throw Error("Function yaml."+t+" is removed in js-yaml 4. Use yaml."+e+" instead, which is now safe by default.")}}return(0,G.K)(r,"renamed"),V.Type=tn(),V.Schema=ti(),V.FAILSAFE_SCHEMA=tl(),V.JSON_SCHEMA=td(),V.CORE_SCHEMA=tp(),V.DEFAULT_SCHEMA=tw(),V.load=t.load,V.loadAll=t.loadAll,V.dump=e.dump,V.YAMLException=te(),V.types={binary:ty(),float:tf(),map:ts(),null:tc(),pairs:tx(),set:t_(),timestamp:tg(),bool:tu(),int:th(),merge:tm(),omap:tb(),seq:to(),str:ta()},V.safeLoad=r("safeLoad","load"),V.safeLoadAll=r("safeLoadAll","loadAll"),V.safeDump=r("safeDump","dump"),V}(0,G.K)(tA,"requireDumper"),(0,G.K)(tM,"requireJsYaml");var{JSON_SCHEMA:tS,load:tT}=Z(tM())},27866:function(t){t.exports=function(){"use strict";var t="millisecond",e="second",r="minute",n="hour",i="week",a="month",o="quarter",s="year",l="date",c="Invalid Date",u=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,f=function(t,e,r){var n=String(t);return!n||n.length>=e?t:""+Array(e+1-n.length).join(r)+t},d="en",p={};p[d]={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],r=t%100;return"["+t+(e[(r-20)%10]||e[r]||e[0])+"]"}};var g="$isDayjsObject",m=function(t){return t instanceof _||!(!t||!t[g])},y=function t(e,r,n){var i;if(!e)return d;if("string"==typeof e){var a=e.toLowerCase();p[a]&&(i=a),r&&(p[a]=r,i=a);var o=e.split("-");if(!i&&o.length>1)return t(o[0])}else{var s=e.name;p[s]=e,i=s}return!n&&i&&(d=i),i||!n&&d},b=function(t,e){if(m(t))return t.clone();var r="object"==typeof e?e:{};return r.date=t,r.args=arguments,new _(r)},x={s:f,z:function(t){var e=-t.utcOffset(),r=Math.abs(e);return(e<=0?"+":"-")+f(Math.floor(r/60),2,"0")+":"+f(r%60,2,"0")},m:function t(e,r){if(e.date()<r.date())return-t(r,e);var n=12*(r.year()-e.year())+(r.month()-e.month()),i=e.clone().add(n,a),o=r-i<0,s=e.clone().add(n+(o?-1:1),a);return+(-(n+(r-i)/(o?i-s:s-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(c){return({M:a,y:s,w:i,d:"day",D:l,h:n,m:r,s:e,ms:t,Q:o})[c]||String(c||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}};x.l=y,x.i=m,x.w=function(t,e){return b(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function f(t){this.$L=y(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[g]=!0}var d=f.prototype;return d.parse=function(t){this.$d=function(t){var e=t.date,r=t.utc;if(null===e)return new Date(NaN);if(x.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var n=e.match(u);if(n){var i=n[2]-1||0,a=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,a)):new Date(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,a)}}return new Date(e)}(t),this.init()},d.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},d.$utils=function(){return x},d.isValid=function(){return this.$d.toString()!==c},d.isSame=function(t,e){var r=b(t);return this.startOf(e)<=r&&r<=this.endOf(e)},d.isAfter=function(t,e){return b(t)<this.startOf(e)},d.isBefore=function(t,e){return this.endOf(e)<b(t)},d.$g=function(t,e,r){return x.u(t)?this[e]:this.set(r,t)},d.unix=function(){return Math.floor(this.valueOf()/1e3)},d.valueOf=function(){return this.$d.getTime()},d.startOf=function(t,o){var c=this,u=!!x.u(o)||o,h=x.p(t),f=function(t,e){var r=x.w(c.$u?Date.UTC(c.$y,e,t):new Date(c.$y,e,t),c);return u?r:r.endOf("day")},d=function(t,e){return x.w(c.toDate()[t].apply(c.toDate("s"),(u?[0,0,0,0]:[23,59,59,999]).slice(e)),c)},p=this.$W,g=this.$M,m=this.$D,y="set"+(this.$u?"UTC":"");switch(h){case s:return u?f(1,0):f(31,11);case a:return u?f(1,g):f(0,g+1);case i:var b=this.$locale().weekStart||0,_=(p<b?p+7:p)-b;return f(u?m-_:m+(6-_),g);case"day":case l:return d(y+"Hours",0);case n:return d(y+"Minutes",1);case r:return d(y+"Seconds",2);case e:return d(y+"Milliseconds",3);default:return this.clone()}},d.endOf=function(t){return this.startOf(t,!1)},d.$set=function(i,o){var c,u=x.p(i),h="set"+(this.$u?"UTC":""),f=((c={}).day=h+"Date",c[l]=h+"Date",c[a]=h+"Month",c[s]=h+"FullYear",c[n]=h+"Hours",c[r]=h+"Minutes",c[e]=h+"Seconds",c[t]=h+"Milliseconds",c)[u],d="day"===u?this.$D+(o-this.$W):o;if(u===a||u===s){var p=this.clone().set(l,1);p.$d[f](d),p.init(),this.$d=p.set(l,Math.min(this.$D,p.daysInMonth())).$d}else f&&this.$d[f](d);return this.init(),this},d.set=function(t,e){return this.clone().$set(t,e)},d.get=function(t){return this[x.p(t)]()},d.add=function(t,o){var l,c=this;t=Number(t);var u=x.p(o),h=function(e){var r=b(c);return x.w(r.date(r.date()+Math.round(e*t)),c)};if(u===a)return this.set(a,this.$M+t);if(u===s)return this.set(s,this.$y+t);if("day"===u)return h(1);if(u===i)return h(7);var f=((l={})[r]=6e4,l[n]=36e5,l[e]=1e3,l)[u]||1,d=this.$d.getTime()+t*f;return x.w(d,this)},d.subtract=function(t,e){return this.add(-1*t,e)},d.format=function(t){var e=this,r=this.$locale();if(!this.isValid())return r.invalidDate||c;var n=t||"YYYY-MM-DDTHH:mm:ssZ",i=x.z(this),a=this.$H,o=this.$m,s=this.$M,l=r.weekdays,u=r.months,f=r.meridiem,d=function(t,r,i,a){return t&&(t[r]||t(e,n))||i[r].slice(0,a)},p=function(t){return x.s(a%12||12,t,"0")},g=f||function(t,e,r){var n=t<12?"AM":"PM";return r?n.toLowerCase():n};return n.replace(h,function(t,n){return n||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return x.s(e.$y,4,"0");case"M":return s+1;case"MM":return x.s(s+1,2,"0");case"MMM":return d(r.monthsShort,s,u,3);case"MMMM":return d(u,s);case"D":return e.$D;case"DD":return x.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return d(r.weekdaysMin,e.$W,l,2);case"ddd":return d(r.weekdaysShort,e.$W,l,3);case"dddd":return l[e.$W];case"H":return String(a);case"HH":return x.s(a,2,"0");case"h":return p(1);case"hh":return p(2);case"a":return g(a,o,!0);case"A":return g(a,o,!1);case"m":return String(o);case"mm":return x.s(o,2,"0");case"s":return String(e.$s);case"ss":return x.s(e.$s,2,"0");case"SSS":return x.s(e.$ms,3,"0");case"Z":return i}return null}(t)||i.replace(":","")})},d.utcOffset=function(){return-(15*Math.round(this.$d.getTimezoneOffset()/15))},d.diff=function(t,l,c){var u,h=this,f=x.p(l),d=b(t),p=(d.utcOffset()-this.utcOffset())*6e4,g=this-d,m=function(){return x.m(h,d)};switch(f){case s:u=m()/12;break;case a:u=m();break;case o:u=m()/3;break;case i:u=(g-p)/6048e5;break;case"day":u=(g-p)/864e5;break;case n:u=g/36e5;break;case r:u=g/6e4;break;case e:u=g/1e3;break;default:u=g}return c?u:x.a(u)},d.daysInMonth=function(){return this.endOf(a).$D},d.$locale=function(){return p[this.$L]},d.locale=function(t,e){if(!t)return this.$L;var r=this.clone(),n=y(t,e,!0);return n&&(r.$L=n),r},d.clone=function(){return x.w(this.$d,this)},d.toDate=function(){return new Date(this.valueOf())},d.toJSON=function(){return this.isValid()?this.toISOString():null},d.toISOString=function(){return this.$d.toISOString()},d.toString=function(){return this.$d.toUTCString()},f}(),w=_.prototype;return b.prototype=w,[["$ms",t],["$s",e],["$m",r],["$H",n],["$W","day"],["$M",a],["$y",s],["$D",l]].forEach(function(t){w[t[1]]=function(e){return this.$g(e,t[0],t[1])}}),b.extend=function(t,e){return t.$i||(t(e,_,b),t.$i=!0),b},b.locale=y,b.isDayjs=m,b.unix=function(t){return b(1e3*t)},b.en=p[d],b.Ls=p,b.p={},b}()},28071:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(51603),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=i&&"object"==typeof module&&module&&!module.nodeType&&module,o=a&&a.exports===i?n.A.Buffer:void 0;let s=(o?o.isBuffer:void 0)||function(){return!1}},28171:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=function(t,e){return function(r){return t(e(r))}}},29568:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=function(t,e){return t===e||t!=t&&e!=e}},29703:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=r(51603).A.Symbol},30253:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(38374),i=1/0;let a=function(t){if("string"==typeof t||(0,n.A)(t))return t;var e=t+"";return"0"==e&&1/t==-i?"-0":e}},31595:(t,e,r)=>{"use strict";r.d(e,{B:()=>f,OS:()=>T,QV:()=>j,dc:()=>M,ju:()=>m,n5:()=>K,nf:()=>D,sc:()=>O,sv:()=>p,xY:()=>R});var n=r(33604),i=r(78706),a=r(6741),o=r(60703),s=r(52691),l=r(31775),c=r(56037),u=r(89851),h=r(92821);function f(t,{edgePathsClass:e="edges edgePaths"}={}){let r=t.insert("g").attr("class","root"),n=r.insert("g").attr("class","clusters");return{clusters:n,edgePaths:r.insert("g").attr("class",e),edgeLabels:r.insert("g").attr("class","edgeLabels"),nodes:r.insert("g").attr("class","nodes"),rootGroups:r}}async function d(t,e){if(e.label){let{shapeSvg:r,bbox:n}=await (0,o.Zk)(t,e);e.labelBBox={width:n.width,height:n.height},r.remove()}else e.labelBBox={width:0,height:0}}async function p(t,e,r){let n=await (0,a.on)(t,e,r),i=n.node()?.getBBox()??{width:0,height:0};return e.width=i.width,e.height=i.height,n}async function g(t,e){let n=new h.T({multigraph:!0,compound:!0}),a=[...e.edges],o=(0,l.D7)(),s=f(t),{edgeLabels:c,nodes:u}=s,g=new Map,m=null!=t.node();for(let t of(await Promise.all(e.nodes.map(async t=>{if(t.isGroup)m&&await d(u,t),n.setNode(t.id,{...t});else{if(m){let e=await p(u,t,{config:o,dir:t.dir});g.set(t.id,e)}n.setNode(t.id,{...t})}})),a))m&&(0,i.a6)(t)&&await (0,i.jP)(c,t),n.setEdge(t.start,t.end,{...t},t.id),e.edges.some(e=>e.id===t.id)||e.edges.push(t);if(globalThis.mermaidCaptureSizes){let{captureNodeSizes:n}=await r.e(3789).then(r.bind(r,53789));n(t,e)}return{graph:n,groups:s,nodeElements:g}}(0,u.K)(f,"createLayoutElementGroups"),(0,u.K)(d,"measureGroupLabel"),(0,u.K)(p,"insertMeasuredNode"),(0,u.K)(g,"createGraphWithElements");var m=new Map,y=new Map,b=new Map,x=(0,u.K)(()=>{y.clear(),b.clear(),m.clear()},"clear"),_=(0,u.K)((t,e)=>{let r=y.get(e)||[];return c.R.trace("In isDescendant",e," ",t," = ",r.includes(t)),r.includes(t)},"isDescendant"),w=(0,u.K)((t,e)=>{let r=y.get(e)||[];return c.R.info("Descendants of ",e," is ",r),c.R.info("Edge is ",t),t.v!==e&&t.w!==e&&(r?r.includes(t.v)||_(t.v,e)||_(t.w,e)||r.includes(t.w):(c.R.debug("Tilt, ",e,",not in descendants"),!1))},"edgeInCluster"),k=(0,u.K)((t,e,r,n)=>{c.R.debug("Copying children of ",t,"root",n,"data",e.node(t),n);let i=e.children(t)||[];t!==n&&i.push(t),c.R.debug("Copying (nodes) clusterId",t,"nodes",i),i.forEach(i=>{if(e.children(i).length>0)k(i,e,r,n);else{let a=e.node(i);c.R.info("cp ",i," to ",n," with parent ",t),r.setNode(i,a),n!==e.parent(i)&&(c.R.debug("Setting parent",i,e.parent(i)),r.setParent(i,e.parent(i))),t!==n&&i!==t?(c.R.debug("Setting parent",i,t),r.setParent(i,t)):(c.R.info("In copy ",t,"root",n,"data",e.node(t),n),c.R.debug("Not Setting parent for node=",i,"cluster!==rootId",t!==n,"node!==clusterId",i!==t));let o=e.edges(i);c.R.debug("Copying Edges",o),o.forEach(i=>{c.R.info("Edge",i);let a=e.edge(i.v,i.w,i.name);c.R.info("Edge data",a,n);try{w(i,n)?(c.R.info("Copying as ",i.v,i.w,a,i.name),r.setEdge(i.v,i.w,a,i.name),c.R.info("newGraph edges ",r.edges(),r.edge(r.edges()[0]))):c.R.info("Skipping copy of edge ",i.v,"--\x3e",i.w," rootId: ",n," clusterId:",t)}catch(t){c.R.error(t)}})}c.R.debug("Removing node",i),e.removeNode(i)})},"copy"),v=(0,u.K)((t,e)=>{let r=e.children(t),n=[...r];for(let i of r)b.set(i,t),n=[...n,...v(i,e)];return n},"extractDescendants"),A=(0,u.K)((t,e,r)=>{let n=t.edges().filter(t=>t.v===e||t.w===e),i=t.edges().filter(t=>t.v===r||t.w===r),a=n.map(t=>({v:t.v===e?r:t.v,w:t.w===e?e:t.w})),o=i.map(t=>({v:t.v,w:t.w}));return a.filter(t=>o.some(e=>t.v===e.v&&t.w===e.w))},"findCommonEdges"),M=(0,u.K)((t,e,r)=>{let n,i=e.children(t);if(c.R.trace("Searching children of id ",t,i),i.length<1)return t;for(let t of i){let i=M(t,e,r),a=A(e,r,i);if(i)if(!(a.length>0))return i;else n=i}return n},"findNonClusterChild"),S=(0,u.K)(t=>m.has(t)&&m.get(t).externalConnections&&m.has(t)?m.get(t).id:t,"getAnchorId"),T=(0,u.K)((t,e)=>{if(!t||e>10)return void c.R.debug("Opting out, no graph ");for(let e of(c.R.debug("Opting in, graph "),t.nodes().forEach(function(e){t.children(e).length>0&&(c.R.debug("Cluster identified",e," Replacement id in edges: ",M(e,t,e)),y.set(e,v(e,t)),m.set(e,{id:M(e,t,e),clusterData:t.node(e)}))}),t.nodes().forEach(function(e){let r=t.children(e),n=t.edges();r.length>0?(c.R.debug("Cluster identified",e,y),n.forEach(t=>{_(t.v,e)^_(t.w,e)&&(c.R.debug("Edge: ",t," leaves cluster ",e),c.R.debug("Descendants of XXX ",e,": ",y.get(e)),m.get(e).externalConnections=!0)})):c.R.debug("Not a cluster ",e,y)}),m.keys())){let r=m.get(e).id,n=t.parent(r);n!==e&&m.has(n)&&!m.get(n).externalConnections&&(m.get(e).id=n);let i=t.edges().some(t=>t.v===e);if(r&&m.get(e)?.externalConnections&&i&&L(t,r,e)){let n=E(t,e,t.parent(r));n&&(m.get(e).id=n)}}t.edges().forEach(function(e){let r=t.edge(e);c.R.debug("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(e)),c.R.debug("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(t.edge(e)));let n=e.v,i=e.w;if(c.R.debug("Fix XXX",m,"ids:",e.v,e.w,"Translating: ",m.get(e.v)," --- ",m.get(e.w)),m.get(e.v)||m.get(e.w)){if(c.R.debug("Fixing and trying - removing XXX",e.v,e.w,e.name),n=S(e.v),i=S(e.w),t.removeEdge(e.v,e.w,e.name),n!==e.v){let i=t.parent(n);m.get(i).externalConnections=!0,r.fromCluster=e.v}if(i!==e.w){let n=t.parent(i);m.get(n).externalConnections=!0,r.toCluster=e.w}c.R.debug("Fix Replacing with XXX",n,i,e.name),t.setEdge(n,i,r,e.name)}}),C(t,0),c.R.trace(m)},"adjustClustersAndEdges"),C=(0,u.K)((t,e)=>{if(e>10)return void c.R.error("Bailing out");let r=t.nodes(),n=!1;for(let e of r){let r=t.children(e);n=n||r.length>0}if(!n)return void c.R.debug("Done, no node has children",t.nodes());for(let n of(c.R.debug("Nodes = ",r,e),r))if(c.R.debug("Extracting node",n,m,m.has(n)&&!m.get(n).externalConnections,!t.parent(n),t.node(n),t.children("D")," Depth ",e),m.has(n))if(!m.get(n).externalConnections&&t.children(n)&&t.children(n).length>0){c.R.debug("Cluster without external connections, without a parent and with children",n,e);let r="TB"===t.graph().rankdir?"LR":"TB";m.get(n)?.clusterData?.dir&&(r=m.get(n).clusterData.dir,c.R.debug("Fixing dir",m.get(n).clusterData.dir,r));let i=new h.T({multigraph:!0,compound:!0}).setGraph({rankdir:r,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});k(n,t,i,n),t.setNode(n,{clusterNode:!0,id:n,clusterData:m.get(n).clusterData,label:m.get(n).label,graph:i})}else c.R.debug("Cluster ** ",n," **not meeting the criteria !externalConnections:",!m.get(n).externalConnections," no parent: ",!t.parent(n)," children ",t.children(n)&&t.children(n).length>0,t.children("D"),e),c.R.debug(m);else c.R.debug("Not a cluster",n,e);for(let n of(r=t.nodes(),c.R.debug("New list of nodes",r),r)){let r=t.node(n);c.R.debug(" Now next level",n,r),r?.clusterNode&&C(r.graph,e+1)}},"extractor"),$=(0,u.K)((t,e)=>{if(0===e.length)return[];let r=Object.assign([],e);return e.forEach(e=>{let n=t.children(e),i=$(t,n);r=[...r,...i]}),r},"sorter"),O=(0,u.K)(t=>$(t,t.children()),"sortNodesByHierarchy"),L=(0,u.K)((t,e,r)=>{let n=t.parent(e);for(;n&&n!==r;){let e=m.get(n);if(e&&!e.externalConnections)return!0;n=t.parent(n)}return!1},"isNodeInExtractableCluster"),E=(0,u.K)((t,e,r)=>{for(let n of t.children(e)??[]){if(n===r||_(n,r))continue;let i=M(n,t,e);if(i&&!L(t,i,e))return i}return null},"findSafeAnchorNode");function R({prepareLayout:t,measureLayout:e,runLayoutCore:r,paintLayout:n,afterPaint:a,paintOptions:o}){let s=e??j;return(0,u.K)(async function(e,l,c,u){let h=l.select("g");(c?.insertMarkers??i.g0)(h,e.markers,e.type,e.diagramId),K();let f={element:h,helpers:c,options:u};f.preparedLayout=await t?.(e,f);let d=await s(e,f),p=await r(e,f),g={...f,measure:d};n?await n(e,g,p):await D(e,g,o),await a?.(e,g,p)},"render")}function K(){(0,a.IU)(),(0,i.IU)(),(0,n.I)(),x()}async function j(t,{element:e}){return await g(e,t)}async function D(t,e,r={}){let{measure:n}=e,{groups:i}=n;for(let n of r.getNodes?.(t,e)??t.nodes)r.skipNode?.(n,e)||await N(i,n,e,r);let a=I(t.nodes);for(let n of t.edges)F(n,r)||await U(i,n,a,t,r,e)}async function N(t,e,r,i){e.clusterNode?(0,a.U_)(e):P(e,r,i)?await (0,n.U)(t.clusters,e):(0,a.U_)(e)}function P(t,e,r){return!0===t.isGroup&&(r.isCluster?.(t,e)??!0)}function I(t){let e=new Map;for(let r of t)r?.id&&e.set(r.id,r);return e}function F(t,e){return t.isLayoutOnly||!!e.skipEdge?.(t)}async function U(t,e,r,n,a,o){let s=(0,i.Jo)(t.edgePaths,{...e},a.clusterDb??new Map,n.type,z(e.start,e,r,o,a),z(e.end,e,r,o,a),n.diagramId,B(e,a));(0,i.a6)(e)&&(i.lP.has(e.id)||await (0,i.jP)(t.edgeLabels,e),Y(e,s))}function z(t,e,r,n,i){return i.getEdgeNode?.(t,e,n)??(t?r.get(t)??{}:{})}function B(t,e){return"function"==typeof e.skipIntersect?e.skipIntersect(t):e.skipIntersect??!1}function Y(t,e){let r=e?.updatedPath??e?.originalPath,n=(0,l.zj)(),{subGraphTitleTotalMargin:o}=(0,a.Oi)({flowchart:n.flowchart??{}});if(t.label){let n=i.lP.get(t.id),a=t.x,l=t.y;if(r){let n=s._K.calcLabelPosition(r);c.R.debug("Moving label "+t.label+" from (",a,",",l,") to (",n.x,",",n.y,") abc88"),e?.updatedPath&&(a=n.x,l=n.y)}n.attr("transform",`translate(${a}, ${l+o/2})`)}if(t?.startLabelLeft){let e=i.UQ.get(t.id).startLeft,n=t?.x,a=t?.y;if(r){let e=s._K.calcTerminalLabelPosition(10*!!t.arrowTypeStart,"start_left",r);n=e.x,a=e.y}e.attr("transform",`translate(${n}, ${a})`)}if(t.startLabelRight){let e=i.UQ.get(t.id).startRight,n=t.x,a=t.y;if(r){let e=s._K.calcTerminalLabelPosition(10*!!t.arrowTypeStart,"start_right",r);n=e.x,a=e.y}e.attr("transform",`translate(${n}, ${a})`)}if(t.endLabelLeft){let e=i.UQ.get(t.id).endLeft,n=t.x,a=t.y;if(r){let e=s._K.calcTerminalLabelPosition(10*!!t.arrowTypeEnd,"end_left",r);n=e.x,a=e.y}e.attr("transform",`translate(${n}, ${a})`)}if(t.endLabelRight){let e=i.UQ.get(t.id).endRight,n=t.x,a=t.y;if(r){let e=s._K.calcTerminalLabelPosition(10*!!t.arrowTypeEnd,"end_right",r);n=e.x,a=e.y}e.attr("transform",`translate(${n}, ${a})`)}}(0,u.K)(R,"createCommonLayoutRenderer"),(0,u.K)(K,"clearLayoutRenderState"),(0,u.K)(j,"defaultMeasureLayout"),(0,u.K)(D,"paintLayoutData"),(0,u.K)(N,"paintLayoutNode"),(0,u.K)(P,"shouldPaintAsCluster"),(0,u.K)(I,"buildNodeLookup"),(0,u.K)(F,"shouldSkipPaintEdge"),(0,u.K)(U,"paintLayoutEdge"),(0,u.K)(z,"getRenderedNode"),(0,u.K)(B,"shouldSkipIntersect"),(0,u.K)(Y,"positionRenderedEdgeLabel")},32174:(t,e,r)=>{"use strict";r.d(e,{N:()=>i});var n=r(78437);function i(t){return null!==t&&"object"==typeof t&&"[object Arguments]"===(0,n.b)(t)}},32459:(t,e,r)=>{"use strict";r.d(e,{T:()=>D});var n=r(98446),i=r(4986),a=r(70638),o=r(55548),s=r(37846),l=r(11576),c=r(67903),u=r(92459),h=r(19396),f=r(28071),d=r(59847),p=r(81019),g=Object.prototype.hasOwnProperty;let m=function(t){if(null==t)return!0;if((0,h.A)(t)&&((0,u.A)(t)||"string"==typeof t||"function"==typeof t.splice||(0,f.A)(t)||(0,p.A)(t)||(0,c.A)(t)))return!t.length;var e=(0,l.A)(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if((0,d.A)(t))return!(0,s.A)(t).length;for(var r in t)if(g.call(t,r))return!1;return!0};var y=r(36988),b=r(94630),x=r(96901),_=r(26652),w=r(86953),k=r(35063);let v=function(t){return t!=t},A=function(t,e,r){for(var n=r-1,i=t.length;++n<i;)if(t[n]===e)return n;return -1},M=function(t,e){return!!(null==t?0:t.length)&&(e==e?A(t,e,0):(0,k.A)(t,v,0))>-1},S=function(t,e,r){for(var n=-1,i=null==t?0:t.length;++n<i;)if(r(e,t[n]))return!0;return!1};var T=r(66485),C=r(78261),$=r(93881),O=C.A&&1/(0,$.A)(new C.A([,-0]))[1]==1/0?function(t){return new C.A(t)}:function(){};let L=function(t,e,r){var n=-1,i=M,a=t.length,o=!0,s=[],l=s;if(r)o=!1,i=S;else if(a>=200){var c=e?null:O(t);if(c)return(0,$.A)(c);o=!1,i=T.A,l=new w.A}else l=e?[]:s;t:for(;++n<a;){var u=t[n],h=e?e(u):u;if(u=r||0!==u?u:0,o&&h==h){for(var f=l.length;f--;)if(l[f]===h)continue t;e&&l.push(h),s.push(u)}else i(l,h,r)||(l!==s&&l.push(h),s.push(u))}return s};var E=r(41299),R=(0,_.A)(function(t){return L((0,x.A)(t,1,E.A,!0))}),K=r(13838),j=r(18633);class D{constructor(t={}){this._isDirected=!Object.prototype.hasOwnProperty.call(t,"directed")||t.directed,this._isMultigraph=!!Object.prototype.hasOwnProperty.call(t,"multigraph")&&t.multigraph,this._isCompound=!!Object.prototype.hasOwnProperty.call(t,"compound")&&t.compound,this._label=void 0,this._defaultNodeLabelFn=n.A(void 0),this._defaultEdgeLabelFn=n.A(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children["\0"]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(t){return this._label=t,this}graph(){return this._label}setDefaultNodeLabel(t){return i.A(t)||(t=n.A(t)),this._defaultNodeLabelFn=t,this}nodeCount(){return this._nodeCount}nodes(){return a.A(this._nodes)}sources(){var t=this;return o.A(this.nodes(),function(e){return m(t._in[e])})}sinks(){var t=this;return o.A(this.nodes(),function(e){return m(t._out[e])})}setNodes(t,e){var r=arguments,n=this;return y.A(t,function(t){r.length>1?n.setNode(t,e):n.setNode(t)}),this}setNode(t,e){return Object.prototype.hasOwnProperty.call(this._nodes,t)?arguments.length>1&&(this._nodes[t]=e):(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]="\0",this._children[t]={},this._children["\0"][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount),this}node(t){return this._nodes[t]}hasNode(t){return Object.prototype.hasOwnProperty.call(this._nodes,t)}removeNode(t){if(Object.prototype.hasOwnProperty.call(this._nodes,t)){var e=t=>this.removeEdge(this._edgeObjs[t]);delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],y.A(this.children(t),t=>{this.setParent(t)}),delete this._children[t]),y.A(a.A(this._in[t]),e),delete this._in[t],delete this._preds[t],y.A(a.A(this._out[t]),e),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this}setParent(t,e){if(!this._isCompound)throw Error("Cannot set parent in a non-compound graph");if(b.A(e))e="\0";else{e+="";for(var r=e;!b.A(r);r=this.parent(r))if(r===t)throw Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this}_removeFromParentsChildList(t){delete this._children[this._parent[t]][t]}parent(t){if(this._isCompound){var e=this._parent[t];if("\0"!==e)return e}}children(t){if(b.A(t)&&(t="\0"),this._isCompound){var e=this._children[t];if(e)return a.A(e)}else if("\0"===t)return this.nodes();else if(this.hasNode(t))return[]}predecessors(t){var e=this._preds[t];if(e)return a.A(e)}successors(t){var e=this._sucs[t];if(e)return a.A(e)}neighbors(t){var e=this.predecessors(t);if(e)return R(e,this.successors(t))}isLeaf(t){return 0===(this.isDirected()?this.successors(t):this.neighbors(t)).length}filterNodes(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var r=this;y.A(this._nodes,function(r,n){t(n)&&e.setNode(n,r)}),y.A(this._edgeObjs,function(t){e.hasNode(t.v)&&e.hasNode(t.w)&&e.setEdge(t,r.edge(t))});var n={};return this._isCompound&&y.A(e.nodes(),function(t){e.setParent(t,function t(i){var a=r.parent(i);return void 0===a||e.hasNode(a)?(n[i]=a,a):a in n?n[a]:t(a)}(t))}),e}setDefaultEdgeLabel(t){return i.A(t)||(t=n.A(t)),this._defaultEdgeLabelFn=t,this}edgeCount(){return this._edgeCount}edges(){return K.A(this._edgeObjs)}setPath(t,e){var r=this,n=arguments;return j.A(t,function(t,i){return n.length>1?r.setEdge(t,i,e):r.setEdge(t,i),i}),this}setEdge(){var t,e,r,n,i=!1,a=arguments[0];"object"==typeof a&&null!==a&&"v"in a?(t=a.v,e=a.w,r=a.name,2==arguments.length&&(n=arguments[1],i=!0)):(t=a,e=arguments[1],r=arguments[3],arguments.length>2&&(n=arguments[2],i=!0)),t=""+t,e=""+e,b.A(r)||(r=""+r);var o=I(this._isDirected,t,e,r);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,o))return i&&(this._edgeLabels[o]=n),this;if(!b.A(r)&&!this._isMultigraph)throw Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[o]=i?n:this._defaultEdgeLabelFn(t,e,r);var s=function(t,e,r,n){var i=""+e,a=""+r;if(!t&&i>a){var o=i;i=a,a=o}var s={v:i,w:a};return n&&(s.name=n),s}(this._isDirected,t,e,r);return t=s.v,e=s.w,Object.freeze(s),this._edgeObjs[o]=s,N(this._preds[e],t),N(this._sucs[t],e),this._in[e][o]=s,this._out[t][o]=s,this._edgeCount++,this}edge(t,e,r){var n=1==arguments.length?F(this._isDirected,arguments[0]):I(this._isDirected,t,e,r);return this._edgeLabels[n]}hasEdge(t,e,r){var n=1==arguments.length?F(this._isDirected,arguments[0]):I(this._isDirected,t,e,r);return Object.prototype.hasOwnProperty.call(this._edgeLabels,n)}removeEdge(t,e,r){var n=1==arguments.length?F(this._isDirected,arguments[0]):I(this._isDirected,t,e,r),i=this._edgeObjs[n];return i&&(t=i.v,e=i.w,delete this._edgeLabels[n],delete this._edgeObjs[n],P(this._preds[e],t),P(this._sucs[t],e),delete this._in[e][n],delete this._out[t][n],this._edgeCount--),this}inEdges(t,e){var r=this._in[t];if(r){var n=K.A(r);return e?o.A(n,function(t){return t.v===e}):n}}outEdges(t,e){var r=this._out[t];if(r){var n=K.A(r);return e?o.A(n,function(t){return t.w===e}):n}}nodeEdges(t,e){var r=this.inEdges(t,e);if(r)return r.concat(this.outEdges(t,e))}}function N(t,e){t[e]?t[e]++:t[e]=1}function P(t,e){--t[e]||delete t[e]}function I(t,e,r,n){var i=""+e,a=""+r;if(!t&&i>a){var o=i;i=a,a=o}return i+"\x01"+a+"\x01"+(b.A(n)?"\0":n)}function F(t,e){return I(t,e.v,e.w,e.name)}D.prototype._nodeCount=0,D.prototype._edgeCount=0},32521:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=function(t){return function(e){return t(e)}}},33604:(t,e,r)=>{"use strict";r.d(e,{I:()=>_,U:()=>x});var n=r(6741),i=r(60703),a=r(10969),o=r(69123),s=r(31775),l=r(56037),c=r(89851),u=r(33948),h=r(94529),f=(0,c.K)(async(t,e)=>{let r,n,c=(0,s.D7)(),{themeVariables:f,handDrawnSeed:d}=c,{clusterBkg:p,clusterBorder:g}=f,{labelStyles:m,nodeStyles:y,borderStyles:b,backgroundStyles:x}=(0,a.GX)(e),_=t.insert("g").attr("class","cluster swimlane "+(e.cssClasses||"")).attr("id",e.id).attr("data-id",e.id).attr("data-et","cluster").attr("data-look",e.look),w=(0,s._3)(c.flowchart.htmlLabels),k="LR"===e.direction,v=_.insert("g").attr("class","cluster-label swimlane-label"),A=await (0,o.GZ)(v,e.label,{style:e.labelStyle,useHtmlLabels:w,isNode:!0,width:e.width}),M=A.getBBox();if(w){let t=A.children[0],e=(0,u.Ltv)(A);M=t.getBoundingClientRect(),e.attr("width",M.width),e.attr("height",M.height)}let S=e.padding??0,T=e.width<=M.width+S?M.width+S:e.width;e.width<=M.width+S?e.diff=(T-e.width)/2-S:e.diff=-S;let C=e.height,$=e.y-C/2,O=e.y+C/2,L=e.x-T/2,E=void 0!==e.swimlaneContentTop?e.swimlaneContentTop:$+C/3,R=4*!!k,K=M.height+2*R;if(k){let t=Math.max(K,M.height+2*R),i=L+t,o=Math.max(0,T-t);if("handDrawn"===e.look){let s=h.A.svg(_),l=(0,a.Fr)(e,{roughness:.7,fill:p,stroke:g,fillWeight:3,seed:d}),c=(0,a.Fr)(e,{roughness:.7,fill:"none",stroke:g,seed:d}),u=s.rectangle(L,$,t,C,l);r=_.insert(()=>u,":first-child");let f=s.rectangle(i,$,o,C,c);n=_.insert(()=>f,":first-child"),r.select("path:nth-child(2)").attr("style",b.join(";")),r.select("path").attr("style",x.join(";").replace("fill","stroke"))}else r=_.insert("rect",":first-child"),n=_.insert("rect",":first-child"),r.attr("class","swimlane-title").attr("style",y).attr("x",L).attr("y",$).attr("width",t).attr("height",C).attr("fill",p).attr("stroke",g),n.attr("class","swimlane-body").attr("style",y).attr("x",i).attr("y",$).attr("width",o).attr("height",C).attr("fill","none").attr("stroke",g);let s=L+t/2,l=e.y;v.attr("transform",`translate(${s}, ${l}) rotate(-90) translate(${-M.width/2}, ${-M.height/2})`)}else{let t=Math.min(K,Math.max(0,E-$)),i=$+t,o=Math.max(0,O-i),s=e.x-T/2;if("handDrawn"===e.look){let l=h.A.svg(_),c=(0,a.Fr)(e,{roughness:.7,fill:p,stroke:g,fillWeight:3,seed:d}),u=(0,a.Fr)(e,{roughness:.7,fill:"none",stroke:g,seed:d}),f=l.rectangle(s,$,T,t,c);r=_.insert(()=>f,":first-child");let m=l.rectangle(s,i,T,o,u);n=_.insert(()=>m,":first-child"),r.select("path:nth-child(2)").attr("style",b.join(";")),r.select("path").attr("style",x.join(";").replace("fill","stroke"))}else r=_.insert("rect",":first-child"),n=_.insert("rect",":first-child"),r.attr("class","swimlane-title").attr("style",y).attr("x",s).attr("y",$).attr("width",T).attr("height",t).attr("fill",p).attr("stroke",g),n.attr("class","swimlane-body").attr("style",y).attr("x",s).attr("y",i).attr("width",T).attr("height",o).attr("fill","none").attr("stroke",g);let l=e.x-M.width/2,c=$+(t-M.height)/2;v.attr("transform",`translate(${l}, ${c})`)}if(l.R.trace("Swimlane data ",e,JSON.stringify(e)),m){let t=v.select("span");t&&t.attr("style",m)}return e.offsetX=0,e.width=T,e.height=C,e.offsetY=M.height-S/2,e.intersect=function(t){return(0,i.nM)(e,t)},{cluster:_,labelBBox:M}},"swimlane"),d=(0,c.K)(async(t,e)=>{let r,c;l.R.info("Creating subgraph rect for ",e.id,e);let f=(0,s.D7)(),{themeVariables:d,handDrawnSeed:p}=f,{clusterBkg:g,clusterBorder:m}=d,{labelStyles:y,nodeStyles:b,borderStyles:x,backgroundStyles:_}=(0,a.GX)(e),w=t.insert("g").attr("class","cluster "+e.cssClasses).attr("id",e.domId).attr("data-look",e.look),k=(0,s.E)(f),v=w.insert("g").attr("class","cluster-label "),A=(r="markdown"===e.labelType?await (0,o.GZ)(v,e.label,{style:e.labelStyle,useHtmlLabels:k,isNode:!0,width:e.width}):await (0,i.DA)(v,e.label,e.labelStyle||"",!1,!0)).getBBox();if((0,s.E)(f)){let t=r.children[0],e=(0,u.Ltv)(r);A=t.getBoundingClientRect(),e.attr("width",A.width),e.attr("height",A.height)}let M=e.width<=A.width+e.padding?A.width+e.padding:e.width;e.width<=A.width+e.padding?e.diff=(M-e.width)/2-e.padding:e.diff=-e.padding;let S=e.height,T=e.x-M/2,C=e.y-S/2;if(l.R.trace("Data ",e,JSON.stringify(e)),"handDrawn"===e.look){let t=h.A.svg(w),r=(0,a.Fr)(e,{roughness:.7,fill:g,stroke:m,fillWeight:3,seed:p}),n=t.path((0,i.FA)(T,C,M,S,0),r);(c=w.insert(()=>(l.R.debug("Rough node insert CXC",n),n),":first-child")).select("path:nth-child(2)").attr("style",x.join(";")),c.select("path").attr("style",_.join(";").replace("fill","stroke"))}else(c=w.insert("rect",":first-child")).attr("style",b).attr("rx",e.rx).attr("ry",e.ry).attr("x",T).attr("y",C).attr("width",M).attr("height",S);let{subGraphTitleTopMargin:$}=(0,n.Oi)(f);if(v.attr("transform",`translate(${e.x-A.width/2}, ${e.y-e.height/2+$})`),y){let t=v.select("span");t&&t.attr("style",y)}let O=c.node().getBBox();return e.offsetX=0,e.width=O.width,e.height=O.height,e.offsetY=A.height-e.padding/2,e.intersect=function(t){return(0,i.nM)(e,t)},{cluster:w,labelBBox:A}},"rect"),p=(0,c.K)((t,e)=>{let r=t.insert("g").attr("class","note-cluster").attr("id",e.domId),n=r.insert("rect",":first-child"),a=0*e.padding,o=a/2;n.attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-e.width/2-o).attr("y",e.y-e.height/2-o).attr("width",e.width+a).attr("height",e.height+a).attr("fill","none");let s=n.node().getBBox();return e.width=s.width,e.height=s.height,e.intersect=function(t){return(0,i.nM)(e,t)},{cluster:r,labelBBox:{width:0,height:0}}},"noteGroup"),g=(0,c.K)(async(t,e)=>{let r,n=(0,s.D7)(),{themeVariables:a,handDrawnSeed:o}=n,{altBackground:l,compositeBackground:c,compositeTitleBackground:f,nodeBorder:d}=a,p=t.insert("g").attr("class",e.cssClasses).attr("id",e.domId).attr("data-id",e.id).attr("data-look",e.look),g=p.insert("g",":first-child"),m=p.insert("g").attr("class","cluster-label"),y=p.append("rect"),b=await (0,i.DA)(m,e.label,e.labelStyle,void 0,!0),x=b.getBBox();if((0,s.E)(n)){let t=b.children[0],e=(0,u.Ltv)(b);x=t.getBoundingClientRect(),e.attr("width",x.width),e.attr("height",x.height)}let _=0*e.padding,w=(e.width<=x.width+e.padding?x.width+e.padding:e.width)+_;e.width<=x.width+e.padding?e.diff=(w-e.width)/2-e.padding:e.diff=-e.padding;let k=e.height+_,v=e.height+_-x.height-6,A=e.x-w/2,M=e.y-k/2;e.width=w;let S=e.y-e.height/2-_/2+x.height+2;if("handDrawn"===e.look){let t=e.cssClasses.includes("statediagram-cluster-alt"),n=h.A.svg(p),a=e.rx||e.ry?n.path((0,i.FA)(A,M,w,k,10),{roughness:.7,fill:f,fillStyle:"solid",stroke:d,seed:o}):n.rectangle(A,M,w,k,{seed:o});r=p.insert(()=>a,":first-child");let s=n.rectangle(A,S,w,v,{fill:t?l:c,fillStyle:t?"hachure":"solid",stroke:d,seed:o});r=p.insert(()=>a,":first-child"),y=p.insert(()=>s)}else(r=g.insert("rect",":first-child")).attr("class","outer").attr("x",A).attr("y",M).attr("width",w).attr("height",k).attr("data-look",e.look),y.attr("class","inner").attr("x",A).attr("y",S).attr("width",w).attr("height",v);return m.attr("transform",`translate(${e.x-x.width/2}, ${M+1-3*!(0,s.E)(n)})`),e.height=r.node().getBBox().height,e.offsetX=0,e.offsetY=x.height-e.padding/2,e.labelBBox=x,e.intersect=function(t){return(0,i.nM)(e,t)},{cluster:p,labelBBox:x}},"roundedWithTitle"),m=(0,c.K)(async(t,e)=>{let r;l.R.info("Creating subgraph rect for ",e.id,e);let c=(0,s.D7)(),{themeVariables:f,handDrawnSeed:d}=c,{clusterBkg:p,clusterBorder:g}=f,{labelStyles:m,nodeStyles:y,borderStyles:b,backgroundStyles:x}=(0,a.GX)(e),_=t.insert("g").attr("class","cluster "+e.cssClasses).attr("id",e.domId).attr("data-look",e.look),w=(0,s.E)(c),k=_.insert("g").attr("class","cluster-label "),v=await (0,o.GZ)(k,e.label,{style:e.labelStyle,useHtmlLabels:w,isNode:!0,width:e.width}),A=v.getBBox();if((0,s.E)(c)){let t=v.children[0],e=(0,u.Ltv)(v);A=t.getBoundingClientRect(),e.attr("width",A.width),e.attr("height",A.height)}let M=e.width<=A.width+e.padding?A.width+e.padding:e.width;e.width<=A.width+e.padding?e.diff=(M-e.width)/2-e.padding:e.diff=-e.padding;let S=e.height,T=e.x-M/2,C=e.y-S/2;if(l.R.trace("Data ",e,JSON.stringify(e)),"handDrawn"===e.look){let t=h.A.svg(_),n=(0,a.Fr)(e,{roughness:.7,fill:p,stroke:g,fillWeight:4,seed:d}),o=t.path((0,i.FA)(T,C,M,S,e.rx),n);(r=_.insert(()=>(l.R.debug("Rough node insert CXC",o),o),":first-child")).select("path:nth-child(2)").attr("style",b.join(";")),r.select("path").attr("style",x.join(";").replace("fill","stroke"))}else(r=_.insert("rect",":first-child")).attr("style",y).attr("rx",e.rx).attr("ry",e.ry).attr("x",T).attr("y",C).attr("width",M).attr("height",S);let{subGraphTitleTopMargin:$}=(0,n.Oi)(c);if(k.attr("transform",`translate(${e.x-A.width/2}, ${e.y-e.height/2+$})`),m){let t=k.select("span");t&&t.attr("style",m)}let O=r.node().getBBox();return e.offsetX=0,e.width=O.width,e.height=O.height,e.offsetY=A.height-e.padding/2,e.intersect=function(t){return(0,i.nM)(e,t)},{cluster:_,labelBBox:A}},"kanbanSection"),y={rect:d,squareRect:d,roundedWithTitle:g,noteGroup:p,divider:(0,c.K)((t,e)=>{let r,{themeVariables:n,handDrawnSeed:a}=(0,s.D7)(),{nodeBorder:o}=n,l=t.insert("g").attr("class",e.cssClasses).attr("id",e.domId).attr("data-look",e.look),c=l.insert("g",":first-child"),u=0*e.padding,f=e.width+u;e.diff=-e.padding;let d=e.height+u,p=e.x-f/2,g=e.y-d/2;if(e.width=f,"handDrawn"===e.look){let t=h.A.svg(l).rectangle(p,g,f,d,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:o,seed:a});r=l.insert(()=>t,":first-child")}else{r=c.insert("rect",":first-child");let t="outer";e.look,t="divider",r.attr("class",t).attr("x",p).attr("y",g).attr("width",f).attr("height",d).attr("data-look",e.look)}return e.height=r.node().getBBox().height,e.offsetX=0,e.offsetY=0,e.intersect=function(t){return(0,i.nM)(e,t)},{cluster:l,labelBBox:{}}},"divider"),kanbanSection:m,swimlane:f},b=new Map,x=(0,c.K)(async(t,e)=>{let r=e.shape||"rect",n=await y[r](t,e);return b.set(e.id,n),n},"insertCluster"),_=(0,c.K)(()=>{b=new Map},"clear")},33761:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},33948:(t,e,r)=>{"use strict";function n(t,e){let r;if(void 0===e)for(let e of t)null!=e&&(r<e||void 0===r&&e>=e)&&(r=e);else{let n=-1;for(let i of t)null!=(i=e(i,++n,t))&&(r<i||void 0===r&&i>=i)&&(r=i)}return r}function i(t,e){let r;if(void 0===e)for(let e of t)null!=e&&(r>e||void 0===r&&e>=e)&&(r=e);else{let n=-1;for(let i of t)null!=(i=e(i,++n,t))&&(r>i||void 0===r&&i>=i)&&(r=i)}return r}function a(t){return t}function o(t){return"translate("+t+",0)"}function s(t){return"translate(0,"+t+")"}function l(){return!this.__axis}function c(t,e){var r=[],n=null,i=null,c=6,u=6,h=3,f="u">typeof window&&window.devicePixelRatio>1?0:.5,d=1===t||4===t?-1:1,p=4===t||2===t?"x":"y",g=1===t||3===t?o:s;function m(o){var s=null==n?e.ticks?e.ticks.apply(e,r):e.domain():n,m=null==i?e.tickFormat?e.tickFormat.apply(e,r):a:i,y=Math.max(c,0)+h,b=e.range(),x=+b[0]+f,_=+b[b.length-1]+f,w=(e.bandwidth?function(t,e){return e=Math.max(0,t.bandwidth()-2*e)/2,t.round()&&(e=Math.round(e)),r=>+t(r)+e}:function(t){return e=>+t(e)})(e.copy(),f),k=o.selection?o.selection():o,v=k.selectAll(".domain").data([null]),A=k.selectAll(".tick").data(s,e).order(),M=A.exit(),S=A.enter().append("g").attr("class","tick"),T=A.select("line"),C=A.select("text");v=v.merge(v.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),A=A.merge(S),T=T.merge(S.append("line").attr("stroke","currentColor").attr(p+"2",d*c)),C=C.merge(S.append("text").attr("fill","currentColor").attr(p,d*y).attr("dy",1===t?"0em":3===t?"0.71em":"0.32em")),o!==k&&(v=v.transition(o),A=A.transition(o),T=T.transition(o),C=C.transition(o),M=M.transition(o).attr("opacity",1e-6).attr("transform",function(t){return isFinite(t=w(t))?g(t+f):this.getAttribute("transform")}),S.attr("opacity",1e-6).attr("transform",function(t){var e=this.parentNode.__axis;return g((e&&isFinite(e=e(t))?e:w(t))+f)})),M.remove(),v.attr("d",4===t||2===t?u?"M"+d*u+","+x+"H"+f+"V"+_+"H"+d*u:"M"+f+","+x+"V"+_:u?"M"+x+","+d*u+"V"+f+"H"+_+"V"+d*u:"M"+x+","+f+"H"+_),A.attr("opacity",1).attr("transform",function(t){return g(w(t)+f)}),T.attr(p+"2",d*c),C.attr(p,d*y).text(m),k.filter(l).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===t?"start":4===t?"end":"middle"),k.each(function(){this.__axis=w})}return m.scale=function(t){return arguments.length?(e=t,m):e},m.ticks=function(){return r=Array.from(arguments),m},m.tickArguments=function(t){return arguments.length?(r=null==t?[]:Array.from(t),m):r.slice()},m.tickValues=function(t){return arguments.length?(n=null==t?null:Array.from(t),m):n&&n.slice()},m.tickFormat=function(t){return arguments.length?(i=t,m):i},m.tickSize=function(t){return arguments.length?(c=u=+t,m):c},m.tickSizeInner=function(t){return arguments.length?(c=+t,m):c},m.tickSizeOuter=function(t){return arguments.length?(u=+t,m):u},m.tickPadding=function(t){return arguments.length?(h=+t,m):h},m.offset=function(t){return arguments.length?(f=+t,m):f},m}function u(t){return c(1,t)}function h(t){return c(3,t)}function f(){}function d(t){return null==t?f:function(){return this.querySelector(t)}}function p(){return[]}function g(t){return null==t?p:function(){return this.querySelectorAll(t)}}function m(t){return function(){return this.matches(t)}}function y(t){return function(e){return e.matches(t)}}r.d(e,{JLW:()=>iW,l78:()=>h,tlR:()=>u,qrM:()=>i8,Yu4:()=>i9,IA3:()=>at,Wi0:()=>ar,PGM:()=>an,OEq:()=>aa,y8u:()=>al,olC:()=>au,IrU:()=>af,oDi:()=>ag,Q7f:()=>ay,cVp:()=>ax,lUB:()=>iZ,Lx9:()=>aw,nVG:()=>aC,uxU:()=>a$,Xf2:()=>aE,GZz:()=>aK,UPb:()=>aD,dyv:()=>aj,GPZ:()=>to,Sk5:()=>ez,bEH:()=>ra,n8j:()=>iJ,T9B:()=>n,jkA:()=>i,rLf:()=>i2,WH:()=>function t(){var e,r,n=rh().unknown(void 0),i=n.domain,a=n.range,o=0,s=1,l=!1,c=0,u=0,h=.5;function f(){var t=i().length,n=s<o,f=n?s:o,d=n?o:s;e=(d-f)/Math.max(1,t-c+2*u),l&&(e=Math.floor(e)),f+=(d-f-e*(t-c))*h,r=e*(1-c),l&&(f=Math.round(f),r=Math.round(r));var p=(function(t,e,r){t*=1,e*=1,r=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+r;for(var n=-1,i=0|Math.max(0,Math.ceil((e-t)/r)),a=Array(i);++n<i;)a[n]=t+n*r;return a})(t).map(function(t){return f+e*t});return a(n?p.reverse():p)}return delete n.unknown,n.domain=function(t){return arguments.length?(i(t),f()):i()},n.range=function(t){return arguments.length?([o,s]=t,o*=1,s*=1,f()):[o,s]},n.rangeRound=function(t){return[o,s]=t,o*=1,s*=1,l=!0,f()},n.bandwidth=function(){return r},n.step=function(){return e},n.round=function(t){return arguments.length?(l=!!t,f()):l},n.padding=function(t){return arguments.length?(c=Math.min(1,u=+t),f()):c},n.paddingInner=function(t){return arguments.length?(c=Math.min(1,t),f()):c},n.paddingOuter=function(t){return arguments.length?(u=+t,f()):u},n.align=function(t){return arguments.length?(h=Math.max(0,Math.min(1,t)),f()):h},n.copy=function(){return t(i(),[o,s]).round(l).paddingInner(c).paddingOuter(u).align(h)},ro.apply(f(),arguments)},m4Y:()=>function t(){var e,r=rE();return r.copy=function(){return rL(r,t())},ro.apply(r,arguments),e=r.domain,r.ticks=function(t){var r=e();return function(t,e,r){if(e*=1,t*=1,!((r*=1)>0))return[];if(t===e)return[t];let n=e<t,[i,a,o]=n?rg(e,t,r):rg(t,e,r);if(!(a>=i))return[];let s=a-i+1,l=Array(s);if(n)if(o<0)for(let t=0;t<s;++t)l[t]=-((a-t)/o);else for(let t=0;t<s;++t)l[t]=(a-t)*o;else if(o<0)for(let t=0;t<s;++t)l[t]=-((i+t)/o);else for(let t=0;t<s;++t)l[t]=(i+t)*o;return l}(r[0],r[r.length-1],null==t?10:t)},r.tickFormat=function(t,r){var n=e();return function(t,e,r,n){var i,a,o=ry(t,e,r);switch((n=eK(null==n?",f":n)).type){case"s":var s=Math.max(Math.abs(t),Math.abs(e));return null!=n.precision||isNaN(a=Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(eE(s)/3)))-eE(Math.abs(o))))||(n.precision=a),ts(n,s);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(a=Math.max(0,eE(Math.abs(Math.max(Math.abs(t),Math.abs(e)))-(i=Math.abs(i=o)))-eE(i))+1)||(n.precision=a-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(a=Math.max(0,-eE(Math.abs(o))))||(n.precision=a-("%"===n.type)*2)}return to(n)}(n[0],n[n.length-1],null==t?10:t,r)},r.nice=function(t){null==t&&(t=10);var n,i,a=e(),o=0,s=a.length-1,l=a[o],c=a[s],u=10;for(c<l&&(i=l,l=c,c=i,i=o,o=s,s=i);u-- >0;){if((i=rm(l,c,t))===n)return a[o]=l,a[s]=c,e(a);if(i>0)l=Math.floor(l/i)*i,c=Math.ceil(c/i)*i;else if(i<0)l=Math.ceil(l*i)/i,c=Math.floor(c*i)/i;else break;n=i}return r},r},UMr:()=>rh,w7C:()=>i_,zt:()=>iw,Ltv:()=>ik,UAC:()=>rz,DCK:()=>tc,TUC:()=>rV,Agd:()=>rF,t6C:()=>rD,wXd:()=>rP,ABi:()=>rW,Ui6:()=>r4,rGn:()=>rQ,ucG:()=>rN,YPH:()=>rq,Mol:()=>rZ,PGu:()=>rX,GuW:()=>rG,hkb:()=>eQ});var b=Array.prototype.find;function x(){return this.firstElementChild}var _=Array.prototype.filter;function w(){return Array.from(this.children)}function k(t){return Array(t.length)}function v(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function A(t,e,r,n,i,a){for(var o,s=0,l=e.length,c=a.length;s<c;++s)(o=e[s])?(o.__data__=a[s],n[s]=o):r[s]=new v(t,a[s]);for(;s<l;++s)(o=e[s])&&(i[s]=o)}function M(t,e,r,n,i,a,o){var s,l,c,u=new Map,h=e.length,f=a.length,d=Array(h);for(s=0;s<h;++s)(l=e[s])&&(d[s]=c=o.call(l,l.__data__,s,e)+"",u.has(c)?i[s]=l:u.set(c,l));for(s=0;s<f;++s)c=o.call(t,a[s],s,a)+"",(l=u.get(c))?(n[s]=l,l.__data__=a[s],u.delete(c)):r[s]=new v(t,a[s]);for(s=0;s<h;++s)(l=e[s])&&u.get(d[s])===l&&(i[s]=l)}function S(t){return t.__data__}function T(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}v.prototype={constructor:v,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var C="http://www.w3.org/1999/xhtml";let $={svg:"http://www.w3.org/2000/svg",xhtml:C,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function O(t){var e=t+="",r=e.indexOf(":");return r>=0&&"xmlns"!==(e=t.slice(0,r))&&(t=t.slice(r+1)),$.hasOwnProperty(e)?{space:$[e],local:t}:t}function L(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function E(t,e){return t.style.getPropertyValue(e)||L(t).getComputedStyle(t,null).getPropertyValue(e)}function R(t){return t.trim().split(/^|\s+/)}function K(t){return t.classList||new j(t)}function j(t){this._node=t,this._names=R(t.getAttribute("class")||"")}function D(t,e){for(var r=K(t),n=-1,i=e.length;++n<i;)r.add(e[n])}function N(t,e){for(var r=K(t),n=-1,i=e.length;++n<i;)r.remove(e[n])}function P(){this.textContent=""}function I(){this.innerHTML=""}function F(){this.nextSibling&&this.parentNode.appendChild(this)}function U(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function z(t){var e=O(t);return(e.local?function(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}:function(t){return function(){var e=this.ownerDocument,r=this.namespaceURI;return r===C&&e.documentElement.namespaceURI===C?e.createElement(t):e.createElementNS(r,t)}})(e)}function B(){return null}function Y(){var t=this.parentNode;t&&t.removeChild(this)}function H(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function q(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function W(t){return function(){var e=this.__on;if(e){for(var r,n=0,i=-1,a=e.length;n<a;++n)(r=e[n],t.type&&r.type!==t.type||r.name!==t.name)?e[++i]=r:this.removeEventListener(r.type,r.listener,r.options);++i?e.length=i:delete this.__on}}}function X(t,e,r){return function(){var n,i=this.__on,a=function(t){e.call(this,t,this.__data__)};if(i){for(var o=0,s=i.length;o<s;++o)if((n=i[o]).type===t.type&&n.name===t.name){this.removeEventListener(n.type,n.listener,n.options),this.addEventListener(n.type,n.listener=a,n.options=r),n.value=e;return}}this.addEventListener(t.type,a,r),n={type:t.type,name:t.name,value:e,listener:a,options:r},i?i.push(n):this.__on=[n]}}function G(t,e,r){var n=L(t),i=n.CustomEvent;"function"==typeof i?i=new i(e,r):(i=n.document.createEvent("Event"),r?(i.initEvent(e,r.bubbles,r.cancelable),i.detail=r.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}j.prototype={add:function(t){0>this._names.indexOf(t)&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Z=[null];function V(t,e){this._groups=t,this._parents=e}function Q(){return new V([[document.documentElement]],Z)}V.prototype=Q.prototype={constructor:V,select:function(t){"function"!=typeof t&&(t=d(t));for(var e=this._groups,r=e.length,n=Array(r),i=0;i<r;++i)for(var a,o,s=e[i],l=s.length,c=n[i]=Array(l),u=0;u<l;++u)(a=s[u])&&(o=t.call(a,a.__data__,u,s))&&("__data__"in a&&(o.__data__=a.__data__),c[u]=o);return new V(n,this._parents)},selectAll:function(t){if("function"==typeof t){var e;e=t,t=function(){var t;return t=e.apply(this,arguments),null==t?[]:Array.isArray(t)?t:Array.from(t)}}else t=g(t);for(var r=this._groups,n=r.length,i=[],a=[],o=0;o<n;++o)for(var s,l=r[o],c=l.length,u=0;u<c;++u)(s=l[u])&&(i.push(t.call(s,s.__data__,u,l)),a.push(s));return new V(i,a)},selectChild:function(t){var e;return this.select(null==t?x:(e="function"==typeof t?t:y(t),function(){return b.call(this.children,e)}))},selectChildren:function(t){var e;return this.selectAll(null==t?w:(e="function"==typeof t?t:y(t),function(){return _.call(this.children,e)}))},filter:function(t){"function"!=typeof t&&(t=m(t));for(var e=this._groups,r=e.length,n=Array(r),i=0;i<r;++i)for(var a,o=e[i],s=o.length,l=n[i]=[],c=0;c<s;++c)(a=o[c])&&t.call(a,a.__data__,c,o)&&l.push(a);return new V(n,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,S);var r=e?M:A,n=this._parents,i=this._groups;"function"!=typeof t&&(b=t,t=function(){return b});for(var a=i.length,o=Array(a),s=Array(a),l=Array(a),c=0;c<a;++c){var u=n[c],h=i[c],f=h.length,d="object"==typeof(y=t.call(u,u&&u.__data__,c,n))&&"length"in y?y:Array.from(y),p=d.length,g=s[c]=Array(p),m=o[c]=Array(p);r(u,h,g,m,l[c]=Array(f),d,e);for(var y,b,x,_,w=0,k=0;w<p;++w)if(x=g[w]){for(w>=k&&(k=w+1);!(_=m[k])&&++k<p;);x._next=_||null}}return(o=new V(o,n))._enter=s,o._exit=l,o},enter:function(){return new V(this._enter||this._groups.map(k),this._parents)},exit:function(){return new V(this._exit||this._groups.map(k),this._parents)},join:function(t,e,r){var n=this.enter(),i=this,a=this.exit();return"function"==typeof t?(n=t(n))&&(n=n.selection()):n=n.append(t+""),null!=e&&(i=e(i))&&(i=i.selection()),null==r?a.remove():r(a),n&&i?n.merge(i).order():i},merge:function(t){for(var e=t.selection?t.selection():t,r=this._groups,n=e._groups,i=r.length,a=n.length,o=Math.min(i,a),s=Array(i),l=0;l<o;++l)for(var c,u=r[l],h=n[l],f=u.length,d=s[l]=Array(f),p=0;p<f;++p)(c=u[p]||h[p])&&(d[p]=c);for(;l<i;++l)s[l]=r[l];return new V(s,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,r=t.length;++e<r;)for(var n,i=t[e],a=i.length-1,o=i[a];--a>=0;)(n=i[a])&&(o&&4^n.compareDocumentPosition(o)&&o.parentNode.insertBefore(n,o),o=n);return this},sort:function(t){function e(e,r){return e&&r?t(e.__data__,r.__data__):!e-!r}t||(t=T);for(var r=this._groups,n=r.length,i=Array(n),a=0;a<n;++a){for(var o,s=r[a],l=s.length,c=i[a]=Array(l),u=0;u<l;++u)(o=s[u])&&(c[u]=o);c.sort(e)}return new V(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var n=t[e],i=0,a=n.length;i<a;++i){var o=n[i];if(o)return o}return null},size:function(){let t=0;for(let e of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,r=0,n=e.length;r<n;++r)for(var i,a=e[r],o=0,s=a.length;o<s;++o)(i=a[o])&&t.call(i,i.__data__,o,a);return this},attr:function(t,e){var r=O(t);if(arguments.length<2){var n=this.node();return r.local?n.getAttributeNS(r.space,r.local):n.getAttribute(r)}return this.each((null==e?r.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}}:"function"==typeof e?r.local?function(t,e){return function(){var r=e.apply(this,arguments);null==r?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,r)}}:function(t,e){return function(){var r=e.apply(this,arguments);null==r?this.removeAttribute(t):this.setAttribute(t,r)}}:r.local?function(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}:function(t,e){return function(){this.setAttribute(t,e)}})(r,e))},style:function(t,e,r){return arguments.length>1?this.each((null==e?function(t){return function(){this.style.removeProperty(t)}}:"function"==typeof e?function(t,e,r){return function(){var n=e.apply(this,arguments);null==n?this.style.removeProperty(t):this.style.setProperty(t,n,r)}}:function(t,e,r){return function(){this.style.setProperty(t,e,r)}})(t,e,null==r?"":r)):E(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?function(t){return function(){delete this[t]}}:"function"==typeof e?function(t,e){return function(){var r=e.apply(this,arguments);null==r?delete this[t]:this[t]=r}}:function(t,e){return function(){this[t]=e}})(t,e)):this.node()[t]},classed:function(t,e){var r=R(t+"");if(arguments.length<2){for(var n=K(this.node()),i=-1,a=r.length;++i<a;)if(!n.contains(r[i]))return!1;return!0}return this.each(("function"==typeof e?function(t,e){return function(){(e.apply(this,arguments)?D:N)(this,t)}}:e?function(t){return function(){D(this,t)}}:function(t){return function(){N(this,t)}})(r,e))},text:function(t){return arguments.length?this.each(null==t?P:("function"==typeof t?function(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}:function(t){return function(){this.textContent=t}})(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?I:("function"==typeof t?function(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}:function(t){return function(){this.innerHTML=t}})(t)):this.node().innerHTML},raise:function(){return this.each(F)},lower:function(){return this.each(U)},append:function(t){var e="function"==typeof t?t:z(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})},insert:function(t,e){var r="function"==typeof t?t:z(t),n=null==e?B:"function"==typeof e?e:d(e);return this.select(function(){return this.insertBefore(r.apply(this,arguments),n.apply(this,arguments)||null)})},remove:function(){return this.each(Y)},clone:function(t){return this.select(t?q:H)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,r){var n,i,a=(t+"").trim().split(/^|\s+/).map(function(t){var e="",r=t.indexOf(".");return r>=0&&(e=t.slice(r+1),t=t.slice(0,r)),{type:t,name:e}}),o=a.length;if(arguments.length<2){var s=this.node().__on;if(s){for(var l,c=0,u=s.length;c<u;++c)for(n=0,l=s[c];n<o;++n)if((i=a[n]).type===l.type&&i.name===l.name)return l.value}return}for(n=0,s=e?X:W;n<o;++n)this.each(s(a[n],e,r));return this},dispatch:function(t,e){return this.each(("function"==typeof e?function(t,e){return function(){return G(this,t,e.apply(this,arguments))}}:function(t,e){return function(){return G(this,t,e)}})(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var n,i=t[e],a=0,o=i.length;a<o;++a)(n=i[a])&&(yield n)}};var J={value:()=>{}};function tt(){for(var t,e=0,r=arguments.length,n={};e<r;++e){if(!(t=arguments[e]+"")||t in n||/[\s.]/.test(t))throw Error("illegal type: "+t);n[t]=[]}return new te(n)}function te(t){this._=t}function tr(t,e,r){for(var n=0,i=t.length;n<i;++n)if(t[n].name===e){t[n]=J,t=t.slice(0,n).concat(t.slice(n+1));break}return null!=r&&t.push({name:e,value:r}),t}te.prototype=tt.prototype={constructor:te,on:function(t,e){var r,n=this._,i=(t+"").trim().split(/^|\s+/).map(function(t){var e="",r=t.indexOf(".");if(r>=0&&(e=t.slice(r+1),t=t.slice(0,r)),t&&!n.hasOwnProperty(t))throw Error("unknown type: "+t);return{type:t,name:e}}),a=-1,o=i.length;if(arguments.length<2){for(;++a<o;)if((r=(t=i[a]).type)&&(r=function(t,e){for(var r,n=0,i=t.length;n<i;++n)if((r=t[n]).name===e)return r.value}(n[r],t.name)))return r;return}if(null!=e&&"function"!=typeof e)throw Error("invalid callback: "+e);for(;++a<o;)if(r=(t=i[a]).type)n[r]=tr(n[r],t.name,e);else if(null==e)for(r in n)n[r]=tr(n[r],t.name,null);return this},copy:function(){var t={},e=this._;for(var r in e)t[r]=e[r].slice();return new te(t)},call:function(t,e){if((r=arguments.length-2)>0)for(var r,n,i=Array(r),a=0;a<r;++a)i[a]=arguments[a+2];if(!this._.hasOwnProperty(t))throw Error("unknown type: "+t);for(n=this._[t],a=0,r=n.length;a<r;++a)n[a].value.apply(e,i)},apply:function(t,e,r){if(!this._.hasOwnProperty(t))throw Error("unknown type: "+t);for(var n=this._[t],i=0,a=n.length;i<a;++i)n[i].value.apply(e,r)}};var tn,ti,ta,to,ts,tl,tc,tu,th,tf=0,td=0,tp=0,tg=0,tm=0,ty=0,tb="object"==typeof performance&&performance.now?performance:Date,tx="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function t_(){return tm||(tx(tw),tm=tb.now()+ty)}function tw(){tm=0}function tk(){this._call=this._time=this._next=null}function tv(t,e,r){var n=new tk;return n.restart(t,e,r),n}function tA(){tm=(tg=tb.now())+ty,tf=td=0;try{t_(),++tf;for(var t,e=tu;e;)(t=tm-e._time)>=0&&e._call.call(void 0,t),e=e._next;--tf}finally{tf=0,function(){for(var t,e,r=tu,n=1/0;r;)r._call?(n>r._time&&(n=r._time),t=r,r=r._next):(e=r._next,r._next=null,r=t?t._next=e:tu=e);th=t,tS(n)}(),tm=0}}function tM(){var t=tb.now(),e=t-tg;e>1e3&&(ty-=e,tg=t)}function tS(t){!tf&&(td&&(td=clearTimeout(td)),t-tm>24?(t<1/0&&(td=setTimeout(tA,t-tb.now()-ty)),tp&&(tp=clearInterval(tp))):(tp||(tg=tb.now(),tp=setInterval(tM,1e3)),tf=1,tx(tA)))}function tT(t,e,r){var n=new tk;return e=null==e?0:+e,n.restart(r=>{n.stop(),t(r+e)},e,r),n}tk.prototype=tv.prototype={constructor:tk,restart:function(t,e,r){if("function"!=typeof t)throw TypeError("callback is not a function");r=(null==r?t_():+r)+(null==e?0:+e),this._next||th===this||(th?th._next=this:tu=this,th=this),this._call=t,this._time=r,tS()},stop:function(){this._call&&(this._call=null,this._time=1/0,tS())}};var tC=tt("start","end","cancel","interrupt"),t$=[];function tO(t,e,r,n,i,a){var o=t.__transition;if(o){if(r in o)return}else t.__transition={};!function(t,e,r){var n,i=t.__transition;function a(l){var c,u,h,f;if(1!==r.state)return s();for(c in i)if((f=i[c]).name===r.name){if(3===f.state)return tT(a);4===f.state?(f.state=6,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete i[c]):+c<e&&(f.state=6,f.timer.stop(),f.on.call("cancel",t,t.__data__,f.index,f.group),delete i[c])}if(tT(function(){3===r.state&&(r.state=4,r.timer.restart(o,r.delay,r.time),o(l))}),r.state=2,r.on.call("start",t,t.__data__,r.index,r.group),2===r.state){for(c=0,r.state=3,n=Array(h=r.tween.length),u=-1;c<h;++c)(f=r.tween[c].value.call(t,t.__data__,r.index,r.group))&&(n[++u]=f);n.length=u+1}}function o(e){for(var i=e<r.duration?r.ease.call(null,e/r.duration):(r.timer.restart(s),r.state=5,1),a=-1,o=n.length;++a<o;)n[a].call(t,i);5===r.state&&(r.on.call("end",t,t.__data__,r.index,r.group),s())}function s(){for(var n in r.state=6,r.timer.stop(),delete i[e],i)return;delete t.__transition}i[e]=r,r.timer=tv(function(t){r.state=1,r.timer.restart(a,r.delay,r.time),r.delay<=t&&a(t-r.delay)},0,r.time)}(t,r,{name:e,index:n,group:i,on:tC,tween:t$,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function tL(t,e){var r=tR(t,e);if(r.state>0)throw Error("too late; already scheduled");return r}function tE(t,e){var r=tR(t,e);if(r.state>3)throw Error("too late; already running");return r}function tR(t,e){var r=t.__transition;if(!r||!(r=r[e]))throw Error("transition not found");return r}function tK(t,e){return t*=1,e*=1,function(r){return t*(1-r)+e*r}}var tj=180/Math.PI,tD={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function tN(t,e,r,n,i,a){var o,s,l;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(l=t*r+e*n)&&(r-=t*l,n-=e*l),(s=Math.sqrt(r*r+n*n))&&(r/=s,n/=s,l/=s),t*n<e*r&&(t=-t,e=-e,l=-l,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(e,t)*tj,skewX:Math.atan(l)*tj,scaleX:o,scaleY:s}}function tP(t,e,r,n){function i(t){return t.length?t.pop()+" ":""}return function(a,o){var s,l,c,u,h=[],f=[];return a=t(a),o=t(o),!function(t,n,i,a,o,s){if(t!==i||n!==a){var l=o.push("translate(",null,e,null,r);s.push({i:l-4,x:tK(t,i)},{i:l-2,x:tK(n,a)})}else(i||a)&&o.push("translate("+i+e+a+r)}(a.translateX,a.translateY,o.translateX,o.translateY,h,f),s=a.rotate,l=o.rotate,s!==l?(s-l>180?l+=360:l-s>180&&(s+=360),f.push({i:h.push(i(h)+"rotate(",null,n)-2,x:tK(s,l)})):l&&h.push(i(h)+"rotate("+l+n),c=a.skewX,u=o.skewX,c!==u?f.push({i:h.push(i(h)+"skewX(",null,n)-2,x:tK(c,u)}):u&&h.push(i(h)+"skewX("+u+n),!function(t,e,r,n,a,o){if(t!==r||e!==n){var s=a.push(i(a)+"scale(",null,",",null,")");o.push({i:s-4,x:tK(t,r)},{i:s-2,x:tK(e,n)})}else(1!==r||1!==n)&&a.push(i(a)+"scale("+r+","+n+")")}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,h,f),a=o=null,function(t){for(var e,r=-1,n=f.length;++r<n;)h[(e=f[r]).i]=e.x(t);return h.join("")}}}var tI=tP(function(t){let e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?tD:tN(e.a,e.b,e.c,e.d,e.e,e.f)},"px, ","px)","deg)"),tF=tP(function(t){return null==t?tD:(tn||(tn=document.createElementNS("http://www.w3.org/2000/svg","g")),tn.setAttribute("transform",t),t=tn.transform.baseVal.consolidate())?tN((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):tD},", ",")",")");function tU(t,e,r){var n=t._id;return t.each(function(){var t=tE(this,n);(t.value||(t.value={}))[e]=r.apply(this,arguments)}),function(t){return tR(t,n).value[e]}}function tz(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function tB(t,e){var r=Object.create(t.prototype);for(var n in e)r[n]=e[n];return r}function tY(){}var tH="\\s*([+-]?\\d+)\\s*",tq="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",tW="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",tX=/^#([0-9a-f]{3,8})$/,tG=RegExp(`^rgb\\(${tH},${tH},${tH}\\)$`),tZ=RegExp(`^rgb\\(${tW},${tW},${tW}\\)$`),tV=RegExp(`^rgba\\(${tH},${tH},${tH},${tq}\\)$`),tQ=RegExp(`^rgba\\(${tW},${tW},${tW},${tq}\\)$`),tJ=RegExp(`^hsl\\(${tq},${tW},${tW}\\)$`),t0=RegExp(`^hsla\\(${tq},${tW},${tW},${tq}\\)$`),t1={aliceblue:0xf0f8ff,antiquewhite:0xfaebd7,aqua:65535,aquamarine:8388564,azure:0xf0ffff,beige:0xf5f5dc,bisque:0xffe4c4,black:0,blanchedalmond:0xffebcd,blue:255,blueviolet:9055202,brown:0xa52a2a,burlywood:0xdeb887,cadetblue:6266528,chartreuse:8388352,chocolate:0xd2691e,coral:0xff7f50,cornflowerblue:6591981,cornsilk:0xfff8dc,crimson:0xdc143c,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:0xb8860b,darkgray:0xa9a9a9,darkgreen:25600,darkgrey:0xa9a9a9,darkkhaki:0xbdb76b,darkmagenta:9109643,darkolivegreen:5597999,darkorange:0xff8c00,darkorchid:0x9932cc,darkred:9109504,darksalmon:0xe9967a,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:0xff1493,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:0xb22222,floralwhite:0xfffaf0,forestgreen:2263842,fuchsia:0xff00ff,gainsboro:0xdcdcdc,ghostwhite:0xf8f8ff,gold:0xffd700,goldenrod:0xdaa520,gray:8421504,green:32768,greenyellow:0xadff2f,grey:8421504,honeydew:0xf0fff0,hotpink:0xff69b4,indianred:0xcd5c5c,indigo:4915330,ivory:0xfffff0,khaki:0xf0e68c,lavender:0xe6e6fa,lavenderblush:0xfff0f5,lawngreen:8190976,lemonchiffon:0xfffacd,lightblue:0xadd8e6,lightcoral:0xf08080,lightcyan:0xe0ffff,lightgoldenrodyellow:0xfafad2,lightgray:0xd3d3d3,lightgreen:9498256,lightgrey:0xd3d3d3,lightpink:0xffb6c1,lightsalmon:0xffa07a,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:0xb0c4de,lightyellow:0xffffe0,lime:65280,limegreen:3329330,linen:0xfaf0e6,magenta:0xff00ff,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:0xba55d3,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:0xc71585,midnightblue:1644912,mintcream:0xf5fffa,mistyrose:0xffe4e1,moccasin:0xffe4b5,navajowhite:0xffdead,navy:128,oldlace:0xfdf5e6,olive:8421376,olivedrab:7048739,orange:0xffa500,orangered:0xff4500,orchid:0xda70d6,palegoldenrod:0xeee8aa,palegreen:0x98fb98,paleturquoise:0xafeeee,palevioletred:0xdb7093,papayawhip:0xffefd5,peachpuff:0xffdab9,peru:0xcd853f,pink:0xffc0cb,plum:0xdda0dd,powderblue:0xb0e0e6,purple:8388736,rebeccapurple:6697881,red:0xff0000,rosybrown:0xbc8f8f,royalblue:4286945,saddlebrown:9127187,salmon:0xfa8072,sandybrown:0xf4a460,seagreen:3050327,seashell:0xfff5ee,sienna:0xa0522d,silver:0xc0c0c0,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:0xfffafa,springgreen:65407,steelblue:4620980,tan:0xd2b48c,teal:32896,thistle:0xd8bfd8,tomato:0xff6347,turquoise:4251856,violet:0xee82ee,wheat:0xf5deb3,white:0xffffff,whitesmoke:0xf5f5f5,yellow:0xffff00,yellowgreen:0x9acd32};function t2(){return this.rgb().formatHex()}function t3(){return this.rgb().formatRgb()}function t5(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=tX.exec(t))?(r=e[1].length,e=parseInt(e[1],16),6===r?t6(e):3===r?new t7(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===r?t8(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===r?t8(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=tG.exec(t))?new t7(e[1],e[2],e[3],1):(e=tZ.exec(t))?new t7(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=tV.exec(t))?t8(e[1],e[2],e[3],e[4]):(e=tQ.exec(t))?t8(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=tJ.exec(t))?ea(e[1],e[2]/100,e[3]/100,1):(e=t0.exec(t))?ea(e[1],e[2]/100,e[3]/100,e[4]):t1.hasOwnProperty(t)?t6(t1[t]):"transparent"===t?new t7(NaN,NaN,NaN,0):null}function t6(t){return new t7(t>>16&255,t>>8&255,255&t,1)}function t8(t,e,r,n){return n<=0&&(t=e=r=NaN),new t7(t,e,r,n)}function t4(t){return(t instanceof tY||(t=t5(t)),t)?new t7((t=t.rgb()).r,t.g,t.b,t.opacity):new t7}function t9(t,e,r,n){return 1==arguments.length?t4(t):new t7(t,e,r,null==n?1:n)}function t7(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}function et(){return`#${ei(this.r)}${ei(this.g)}${ei(this.b)}`}function ee(){let t=er(this.opacity);return`${1===t?"rgb(":"rgba("}${en(this.r)}, ${en(this.g)}, ${en(this.b)}${1===t?")":`, ${t})`}`}function er(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function en(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function ei(t){return((t=en(t))<16?"0":"")+t.toString(16)}function ea(t,e,r,n){return n<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new es(t,e,r,n)}function eo(t){if(t instanceof es)return new es(t.h,t.s,t.l,t.opacity);if(t instanceof tY||(t=t5(t)),!t)return new es;if(t instanceof es)return t;var e=(t=t.rgb()).r/255,r=t.g/255,n=t.b/255,i=Math.min(e,r,n),a=Math.max(e,r,n),o=NaN,s=a-i,l=(a+i)/2;return s?(o=e===a?(r-n)/s+(r<n)*6:r===a?(n-e)/s+2:(e-r)/s+4,s/=l<.5?a+i:2-a-i,o*=60):s=l>0&&l<1?0:o,new es(o,s,l,t.opacity)}function es(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}function el(t){return(t=(t||0)%360)<0?t+360:t}function ec(t){return Math.max(0,Math.min(1,t||0))}function eu(t,e,r){return(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)*255}function eh(t,e,r,n,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*r+(1+3*t+3*a-3*o)*n+o*i)/6}tz(tY,t5,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:t2,formatHex:t2,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return eo(this).formatHsl()},formatRgb:t3,toString:t3}),tz(t7,t9,tB(tY,{brighter(t){return t=null==t?1.4285714285714286:Math.pow(1.4285714285714286,t),new t7(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new t7(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new t7(en(this.r),en(this.g),en(this.b),er(this.opacity))},displayable(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:et,formatHex:et,formatHex8:function(){return`#${ei(this.r)}${ei(this.g)}${ei(this.b)}${ei((isNaN(this.opacity)?1:this.opacity)*255)}`},formatRgb:ee,toString:ee})),tz(es,function(t,e,r,n){return 1==arguments.length?eo(t):new es(t,e,r,null==n?1:n)},tB(tY,{brighter(t){return t=null==t?1.4285714285714286:Math.pow(1.4285714285714286,t),new es(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new es(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*e,i=2*r-n;return new t7(eu(t>=240?t-240:t+120,i,n),eu(t,i,n),eu(t<120?t+240:t-120,i,n),this.opacity)},clamp(){return new es(el(this.h),ec(this.s),ec(this.l),er(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let t=er(this.opacity);return`${1===t?"hsl(":"hsla("}${el(this.h)}, ${100*ec(this.s)}%, ${100*ec(this.l)}%${1===t?")":`, ${t})`}`}}));let ef=t=>()=>t;function ed(t,e){return function(r){return t+r*e}}function ep(t,e){var r=e-t;return r?ed(t,r):ef(isNaN(t)?e:t)}let eg=function t(e){var r,n=1==(r=+e)?ep:function(t,e){var n,i,a;return e-t?(n=t,i=e,n=Math.pow(n,a=r),i=Math.pow(i,a)-n,a=1/a,function(t){return Math.pow(n+t*i,a)}):ef(isNaN(t)?e:t)};function i(t,e){var r=n((t=t9(t)).r,(e=t9(e)).r),i=n(t.g,e.g),a=n(t.b,e.b),o=ep(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=a(e),t.opacity=o(e),t+""}}return i.gamma=t,i}(1);function em(t){return function(e){var r,n,i=e.length,a=Array(i),o=Array(i),s=Array(i);for(r=0;r<i;++r)n=t9(e[r]),a[r]=n.r||0,o[r]=n.g||0,s[r]=n.b||0;return a=t(a),o=t(o),s=t(s),n.opacity=1,function(t){return n.r=a(t),n.g=o(t),n.b=s(t),n+""}}}em(function(t){var e=t.length-1;return function(r){var n=r<=0?r=0:r>=1?(r=1,e-1):Math.floor(r*e),i=t[n],a=t[n+1],o=n>0?t[n-1]:2*i-a,s=n<e-1?t[n+2]:2*a-i;return eh((r-n/e)*e,o,i,a,s)}}),em(function(t){var e=t.length;return function(r){var n=Math.floor(((r%=1)<0?++r:r)*e),i=t[(n+e-1)%e],a=t[n%e],o=t[(n+1)%e],s=t[(n+2)%e];return eh((r-n/e)*e,i,a,o,s)}});var ey=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,eb=RegExp(ey.source,"g");function ex(t,e){var r,n,i,a,o,s=ey.lastIndex=eb.lastIndex=0,l=-1,c=[],u=[];for(t+="",e+="";(i=ey.exec(t))&&(a=eb.exec(e));)(o=a.index)>s&&(o=e.slice(s,o),c[l]?c[l]+=o:c[++l]=o),(i=i[0])===(a=a[0])?c[l]?c[l]+=a:c[++l]=a:(c[++l]=null,u.push({i:l,x:tK(i,a)})),s=eb.lastIndex;return s<e.length&&(o=e.slice(s),c[l]?c[l]+=o:c[++l]=o),c.length<2?u[0]?(r=u[0].x,function(t){return r(t)+""}):(n=e,function(){return n}):(e=u.length,function(t){for(var r,n=0;n<e;++n)c[(r=u[n]).i]=r.x(t);return c.join("")})}function e_(t,e){var r;return("number"==typeof e?tK:e instanceof t5?eg:(r=t5(e))?(e=r,eg):ex)(t,e)}var ew=Q.prototype.constructor;function ek(t){return function(){this.style.removeProperty(t)}}var ev=0;function eA(t,e,r,n){this._groups=t,this._parents=e,this._name=r,this._id=n}var eM=Q.prototype;eA.prototype=(function(t){return Q().transition(t)}).prototype={constructor:eA,select:function(t){var e=this._name,r=this._id;"function"!=typeof t&&(t=d(t));for(var n=this._groups,i=n.length,a=Array(i),o=0;o<i;++o)for(var s,l,c=n[o],u=c.length,h=a[o]=Array(u),f=0;f<u;++f)(s=c[f])&&(l=t.call(s,s.__data__,f,c))&&("__data__"in s&&(l.__data__=s.__data__),h[f]=l,tO(h[f],e,r,f,h,tR(s,r)));return new eA(a,this._parents,e,r)},selectAll:function(t){var e=this._name,r=this._id;"function"!=typeof t&&(t=g(t));for(var n=this._groups,i=n.length,a=[],o=[],s=0;s<i;++s)for(var l,c=n[s],u=c.length,h=0;h<u;++h)if(l=c[h]){for(var f,d=t.call(l,l.__data__,h,c),p=tR(l,r),m=0,y=d.length;m<y;++m)(f=d[m])&&tO(f,e,r,m,d,p);a.push(d),o.push(l)}return new eA(a,o,e,r)},selectChild:eM.selectChild,selectChildren:eM.selectChildren,filter:function(t){"function"!=typeof t&&(t=m(t));for(var e=this._groups,r=e.length,n=Array(r),i=0;i<r;++i)for(var a,o=e[i],s=o.length,l=n[i]=[],c=0;c<s;++c)(a=o[c])&&t.call(a,a.__data__,c,o)&&l.push(a);return new eA(n,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw Error();for(var e=this._groups,r=t._groups,n=e.length,i=r.length,a=Math.min(n,i),o=Array(n),s=0;s<a;++s)for(var l,c=e[s],u=r[s],h=c.length,f=o[s]=Array(h),d=0;d<h;++d)(l=c[d]||u[d])&&(f[d]=l);for(;s<n;++s)o[s]=e[s];return new eA(o,this._parents,this._name,this._id)},selection:function(){return new ew(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,r=++ev,n=this._groups,i=n.length,a=0;a<i;++a)for(var o,s=n[a],l=s.length,c=0;c<l;++c)if(o=s[c]){var u=tR(o,e);tO(o,t,r,c,s,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new eA(n,this._parents,t,r)},call:eM.call,nodes:eM.nodes,node:eM.node,size:eM.size,empty:eM.empty,each:eM.each,on:function(t,e){var r,n,i,a,o,s,l=this._id;return arguments.length<2?tR(this.node(),l).on.on(t):this.each((r=l,n=t,i=e,s=(n+"").trim().split(/^|\s+/).every(function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t})?tL:tE,function(){var t=s(this,r),e=t.on;e!==a&&(o=(a=e).copy()).on(n,i),t.on=o}))},attr:function(t,e){var r=O(t),n="transform"===r?tF:e_;return this.attrTween(t,"function"==typeof e?(r.local?function(t,e,r){var n,i,a;return function(){var o,s,l=r(this);return null==l?void this.removeAttributeNS(t.space,t.local):(o=this.getAttributeNS(t.space,t.local))===(s=l+"")?null:o===n&&s===i?a:(i=s,a=e(n=o,l))}}:function(t,e,r){var n,i,a;return function(){var o,s,l=r(this);return null==l?void this.removeAttribute(t):(o=this.getAttribute(t))===(s=l+"")?null:o===n&&s===i?a:(i=s,a=e(n=o,l))}})(r,n,tU(this,"attr."+t,e)):null==e?(r.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}})(r):(r.local?function(t,e,r){var n,i,a=r+"";return function(){var o=this.getAttributeNS(t.space,t.local);return o===a?null:o===n?i:i=e(n=o,r)}}:function(t,e,r){var n,i,a=r+"";return function(){var o=this.getAttribute(t);return o===a?null:o===n?i:i=e(n=o,r)}})(r,n,e))},attrTween:function(t,e){var r="attr."+t;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw Error();var n=O(t);return this.tween(r,(n.local?function(t,e){var r,n;function i(){var i=e.apply(this,arguments);return i!==n&&(r=(n=i)&&function(e){this.setAttributeNS(t.space,t.local,i.call(this,e))}),r}return i._value=e,i}:function(t,e){var r,n;function i(){var i=e.apply(this,arguments);return i!==n&&(r=(n=i)&&function(e){this.setAttribute(t,i.call(this,e))}),r}return i._value=e,i})(n,e))},style:function(t,e,r){var n,i,a,o,s,l,c,u,h,f,d,p,g,m,y,b,x,_,w,k,v,A="transform"==(t+="")?tI:e_;return null==e?this.styleTween(t,(n=t,function(){var t=E(this,n),e=(this.style.removeProperty(n),E(this,n));return t===e?null:t===i&&e===a?o:o=A(i=t,a=e)})).on("end.style."+t,ek(t)):"function"==typeof e?this.styleTween(t,(s=t,l=tU(this,"style."+t,e),function(){var t=E(this,s),e=l(this),r=e+"";return null==e&&(this.style.removeProperty(s),r=e=E(this,s)),t===r?null:t===c&&r===u?h:(u=r,h=A(c=t,e))})).each((f=this._id,x="end."+(b="style."+(d=t)),function(){var t=tE(this,f),e=t.on,r=null==t.value[b]?y||(y=ek(d)):void 0;(e!==p||m!==r)&&(g=(p=e).copy()).on(x,m=r),t.on=g})):this.styleTween(t,(_=t,v=e+"",function(){var t=E(this,_);return t===v?null:t===w?k:k=A(w=t,e)}),r).on("end.style."+t,null)},styleTween:function(t,e,r){var n="style."+(t+="");if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw Error();return this.tween(n,function(t,e,r){var n,i;function a(){var a=e.apply(this,arguments);return a!==i&&(n=(i=a)&&function(e){this.style.setProperty(t,a.call(this,e),r)}),n}return a._value=e,a}(t,e,null==r?"":r))},text:function(t){var e,r;return this.tween("text","function"==typeof t?(e=tU(this,"text",t),function(){var t=e(this);this.textContent=null==t?"":t}):(r=null==t?"":t+"",function(){this.textContent=r}))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw Error();return this.tween(e,function(t){var e,r;function n(){var n=t.apply(this,arguments);return n!==r&&(e=(r=n)&&function(t){this.textContent=n.call(this,t)}),e}return n._value=t,n}(t))},remove:function(){var t;return this.on("end.remove",(t=this._id,function(){var e=this.parentNode;for(var r in this.__transition)if(+r!==t)return;e&&e.removeChild(this)}))},tween:function(t,e){var r=this._id;if(t+="",arguments.length<2){for(var n,i=tR(this.node(),r).tween,a=0,o=i.length;a<o;++a)if((n=i[a]).name===t)return n.value;return null}return this.each((null==e?function(t,e){var r,n;return function(){var i=tE(this,t),a=i.tween;if(a!==r){n=r=a;for(var o=0,s=n.length;o<s;++o)if(n[o].name===e){(n=n.slice()).splice(o,1);break}}i.tween=n}}:function(t,e,r){var n,i;if("function"!=typeof r)throw Error();return function(){var a=tE(this,t),o=a.tween;if(o!==n){i=(n=o).slice();for(var s={name:e,value:r},l=0,c=i.length;l<c;++l)if(i[l].name===e){i[l]=s;break}l===c&&i.push(s)}a.tween=i}})(r,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?function(t,e){return function(){tL(this,t).delay=+e.apply(this,arguments)}}:function(t,e){return e*=1,function(){tL(this,t).delay=e}})(e,t)):tR(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?function(t,e){return function(){tE(this,t).duration=+e.apply(this,arguments)}}:function(t,e){return e*=1,function(){tE(this,t).duration=e}})(e,t)):tR(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(function(t,e){if("function"!=typeof e)throw Error();return function(){tE(this,t).ease=e}}(e,t)):tR(this.node(),e).ease},easeVarying:function(t){var e;if("function"!=typeof t)throw Error();return this.each((e=this._id,function(){var r=t.apply(this,arguments);if("function"!=typeof r)throw Error();tE(this,e).ease=r}))},end:function(){var t,e,r=this,n=r._id,i=r.size();return new Promise(function(a,o){var s={value:o},l={value:function(){0==--i&&a()}};r.each(function(){var r=tE(this,n),i=r.on;i!==t&&((e=(t=i).copy())._.cancel.push(s),e._.interrupt.push(s),e._.end.push(l)),r.on=e}),0===i&&a()})},[Symbol.iterator]:eM[Symbol.iterator]};var eS={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};Q.prototype.interrupt=function(t){return this.each(function(){!function(t,e){var r,n,i,a=t.__transition,o=!0;if(a){for(i in e=null==e?null:e+"",a){if((r=a[i]).name!==e){o=!1;continue}n=r.state>2&&r.state<5,r.state=6,r.timer.stop(),r.on.call(n?"interrupt":"cancel",t,t.__data__,r.index,r.group),delete a[i]}o&&delete t.__transition}}(this,t)})},Q.prototype.transition=function(t){var e,r;t instanceof eA?(e=t._id,t=t._name):(e=++ev,(r=eS).time=t_(),t=null==t?null:t+"");for(var n=this._groups,i=n.length,a=0;a<i;++a)for(var o,s=n[a],l=s.length,c=0;c<l;++c)(o=s[c])&&tO(o,t,e,c,s,r||function(t,e){for(var r;!(r=t.__transition)||!(r=r[e]);)if(!(t=t.parentNode))throw Error(`transition ${e} not found`);return r}(o,e));return new eA(n,this._parents,t,e)};let{abs:eT,max:eC,min:e$}=Math;function eO(t){return{type:t}}function eL(t,e){if(!isFinite(t)||0===t)return null;var r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"),n=t.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+t.slice(r+1)]}function eE(t){return(t=eL(Math.abs(t)))?t[1]:NaN}["w","e"].map(eO),["n","s"].map(eO),["n","w","e","s","nw","ne","sw","se"].map(eO);var eR=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function eK(t){var e;if(!(e=eR.exec(t)))throw Error("invalid format: "+t);return new ej({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function ej(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function eD(t,e){var r=eL(t,e);if(!r)return t+"";var n=r[0],i=r[1];return i<0?"0."+Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+Array(i-n.length+2).join("0")}eK.prototype=ej.prototype,ej.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};let eN={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>eD(100*t,e),r:eD,s:function(t,e){var r=eL(t,e);if(!r)return ti=void 0,t.toPrecision(e);var n=r[0],i=r[1],a=i-(ti=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,o=n.length;return a===o?n:a>o?n+Array(a-o+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+Array(1-a).join("0")+eL(t,Math.max(0,e+a-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function eP(t){return t}var eI=Array.prototype.map,eF=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function eU(t){var e=0,r=t.children,n=r&&r.length;if(n)for(;--n>=0;)e+=r[n].value;else e=1;t.value=e}function ez(t,e){t instanceof Map?(t=[void 0,t],void 0===e&&(e=eY)):void 0===e&&(e=eB);for(var r,n,i,a,o,s=new eW(t),l=[s];r=l.pop();)if((i=e(r.data))&&(o=(i=Array.from(i)).length))for(r.children=i,a=o-1;a>=0;--a)l.push(n=i[a]=new eW(i[a])),n.parent=r,n.depth=r.depth+1;return s.eachBefore(eq)}function eB(t){return t.children}function eY(t){return Array.isArray(t)?t[1]:null}function eH(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function eq(t){var e=0;do t.height=e;while((t=t.parent)&&t.height<++e)}function eW(t){this.data=t,this.depth=this.height=0,this.parent=null}function eX(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}to=(ta=function(t){var e,r,n,i=void 0===t.grouping||void 0===t.thousands?eP:(e=eI.call(t.grouping,Number),r=t.thousands+"",function(t,n){for(var i=t.length,a=[],o=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>n&&(s=Math.max(1,n-l)),a.push(t.substring(i-=s,i+s)),!((l+=s+1)>n));)s=e[o=(o+1)%e.length];return a.reverse().join(r)}),a=void 0===t.currency?"":t.currency[0]+"",o=void 0===t.currency?"":t.currency[1]+"",s=void 0===t.decimal?".":t.decimal+"",l=void 0===t.numerals?eP:(n=eI.call(t.numerals,String),function(t){return t.replace(/[0-9]/g,function(t){return n[+t]})}),c=void 0===t.percent?"%":t.percent+"",u=void 0===t.minus?"−":t.minus+"",h=void 0===t.nan?"NaN":t.nan+"";function f(t,e){var r=(t=eK(t)).fill,n=t.align,f=t.sign,d=t.symbol,p=t.zero,g=t.width,m=t.comma,y=t.precision,b=t.trim,x=t.type;"n"===x?(m=!0,x="g"):eN[x]||(void 0===y&&(y=12),b=!0,x="g"),(p||"0"===r&&"="===n)&&(p=!0,r="0",n="=");var _=(e&&void 0!==e.prefix?e.prefix:"")+("$"===d?a:"#"===d&&/[boxX]/.test(x)?"0"+x.toLowerCase():""),w=("$"===d?o:/[%p]/.test(x)?c:"")+(e&&void 0!==e.suffix?e.suffix:""),k=eN[x],v=/[defgprs%]/.test(x);function A(t){var e,a,o,c=_,d=w;if("c"===x)d=k(t)+d,t="";else{var A=(t*=1)<0||1/t<0;if(t=isNaN(t)?h:k(Math.abs(t),y),b&&(t=function(t){e:for(var e,r=t.length,n=1,i=-1;n<r;++n)switch(t[n]){case".":i=e=n;break;case"0":0===i&&(i=n),e=n;break;default:if(!+t[n])break e;i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),A&&0==+t&&"+"!==f&&(A=!1),c=(A?"("===f?f:u:"-"===f||"("===f?"":f)+c,d=("s"!==x||isNaN(t)||void 0===ti?"":eF[8+ti/3])+d+(A&&"("===f?")":""),v){for(e=-1,a=t.length;++e<a;)if(48>(o=t.charCodeAt(e))||o>57){d=(46===o?s+t.slice(e+1):t.slice(e))+d,t=t.slice(0,e);break}}}m&&!p&&(t=i(t,1/0));var M=c.length+t.length+d.length,S=M<g?Array(g-M+1).join(r):"";switch(m&&p&&(t=i(S+t,S.length?g-d.length:1/0),S=""),n){case"<":t=c+t+d+S;break;case"=":t=c+S+t+d;break;case"^":t=S.slice(0,M=S.length>>1)+c+t+d+S.slice(M);break;default:t=S+c+t+d}return l(t)}return y=void 0===y?6:/[gprs]/.test(x)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),A.toString=function(){return t+""},A}return{format:f,formatPrefix:function(t,e){var r=3*Math.max(-8,Math.min(8,Math.floor(eE(e)/3))),n=Math.pow(10,-r),i=f(((t=eK(t)).type="f",t),{suffix:eF[8+r/3]});return function(t){return i(n*t)}}}}({thousands:",",grouping:[3],currency:["$",""]})).format,ts=ta.formatPrefix,eW.prototype=ez.prototype={constructor:eW,count:function(){return this.eachAfter(eU)},each:function(t,e){let r=-1;for(let n of this)t.call(e,n,++r,this);return this},eachAfter:function(t,e){for(var r,n,i,a=this,o=[a],s=[],l=-1;a=o.pop();)if(s.push(a),r=a.children)for(n=0,i=r.length;n<i;++n)o.push(r[n]);for(;a=s.pop();)t.call(e,a,++l,this);return this},eachBefore:function(t,e){for(var r,n,i=this,a=[i],o=-1;i=a.pop();)if(t.call(e,i,++o,this),r=i.children)for(n=r.length-1;n>=0;--n)a.push(r[n]);return this},find:function(t,e){let r=-1;for(let n of this)if(t.call(e,n,++r,this))return n},sum:function(t){return this.eachAfter(function(e){for(var r=+t(e.data)||0,n=e.children,i=n&&n.length;--i>=0;)r+=n[i].value;e.value=r})},sort:function(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})},path:function(t){for(var e=this,r=function(t,e){if(t===e)return t;var r=t.ancestors(),n=e.ancestors(),i=null;for(t=r.pop(),e=n.pop();t===e;)i=t,t=r.pop(),e=n.pop();return i}(e,t),n=[e];e!==r;)n.push(e=e.parent);for(var i=n.length;t!==r;)n.splice(i,0,t),t=t.parent;return n},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){return Array.from(this)},leaves:function(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t},links:function(){var t=this,e=[];return t.each(function(r){r!==t&&e.push({source:r.parent,target:r})}),e},copy:function(){return ez(this).eachBefore(eH)},[Symbol.iterator]:function*(){var t,e,r,n,i=this,a=[i];do for(t=a.reverse(),a=[];i=t.pop();)if(yield i,e=i.children)for(r=0,n=e.length;r<n;++r)a.push(e[r]);while(a.length)}};let eG=function t(e){function r(t,r,n,i,a){!function(t,e,r,n,i,a){for(var o,s,l,c,u,h,f,d,p,g,m,y=[],b=e.children,x=0,_=0,w=b.length,k=e.value;x<w;){l=i-r,c=a-n;do u=b[_++].value;while(!u&&_<w);for(h=f=u,p=Math.max(f/(m=u*u*(g=Math.max(c/l,l/c)/(k*t))),m/h);_<w;++_){if(u+=s=b[_].value,s<h&&(h=s),s>f&&(f=s),(d=Math.max(f/(m=u*u*g),m/h))>p){u-=s;break}p=d}y.push(o={value:u,dice:l<c,children:b.slice(x,_)}),o.dice?function(t,e,r,n,i){for(var a,o=t.children,s=-1,l=o.length,c=t.value&&(n-e)/t.value;++s<l;)(a=o[s]).y0=r,a.y1=i,a.x0=e,a.x1=e+=a.value*c}(o,r,n,i,k?n+=c*u/k:a):function(t,e,r,n,i){for(var a,o=t.children,s=-1,l=o.length,c=t.value&&(i-r)/t.value;++s<l;)(a=o[s]).x0=e,a.x1=n,a.y0=r,a.y1=r+=a.value*c}(o,r,n,k?r+=l*u/k:i,a),k-=u,x=_}}(e,t,r,n,i,a)}return r.ratio=function(e){return t((e*=1)>1?e:1)},r}((1+Math.sqrt(5))/2);function eZ(){return 0}function eV(t){return function(){return t}}function eQ(){var t=eG,e=!1,r=1,n=1,i=[0],a=eZ,o=eZ,s=eZ,l=eZ,c=eZ;function u(t){return t.x0=t.y0=0,t.x1=r,t.y1=n,t.eachBefore(h),i=[0],e&&t.eachBefore(eX),t}function h(e){var r=i[e.depth],n=e.x0+r,u=e.y0+r,h=e.x1-r,f=e.y1-r;h<n&&(n=h=(n+h)/2),f<u&&(u=f=(u+f)/2),e.x0=n,e.y0=u,e.x1=h,e.y1=f,e.children&&(r=i[e.depth+1]=a(e)/2,n+=c(e)-r,u+=o(e)-r,h-=s(e)-r,f-=l(e)-r,h<n&&(n=h=(n+h)/2),f<u&&(u=f=(u+f)/2),t(e,n,u,h,f))}return u.round=function(t){return arguments.length?(e=!!t,u):e},u.size=function(t){return arguments.length?(r=+t[0],n=+t[1],u):[r,n]},u.tile=function(e){return arguments.length?(t=function(t){if("function"!=typeof t)throw Error();return t}(e),u):t},u.padding=function(t){return arguments.length?u.paddingInner(t).paddingOuter(t):u.paddingInner()},u.paddingInner=function(t){return arguments.length?(a="function"==typeof t?t:eV(+t),u):a},u.paddingOuter=function(t){return arguments.length?u.paddingTop(t).paddingRight(t).paddingBottom(t).paddingLeft(t):u.paddingTop()},u.paddingTop=function(t){return arguments.length?(o="function"==typeof t?t:eV(+t),u):o},u.paddingRight=function(t){return arguments.length?(s="function"==typeof t?t:eV(+t),u):s},u.paddingBottom=function(t){return arguments.length?(l="function"==typeof t?t:eV(+t),u):l},u.paddingLeft=function(t){return arguments.length?(c="function"==typeof t?t:eV(+t),u):c},u}let eJ=Math.PI/180,e0=180/Math.PI,e1=4/29,e2=6/29,e3=6/29*3*(6/29),e5=6/29*(6/29)*(6/29);function e6(t){if(t instanceof e8)return new e8(t.l,t.a,t.b,t.opacity);if(t instanceof rr)return rn(t);t instanceof t7||(t=t4(t));var e,r,n=rt(t.r),i=rt(t.g),a=rt(t.b),o=e4((.2225045*n+.7168786*i+.0606169*a)/1);return n===i&&i===a?e=r=o:(e=e4((.4360747*n+.3850649*i+.1430804*a)/.96422),r=e4((.0139322*n+.0971045*i+.7141733*a)/.82521)),new e8(116*o-16,500*(e-o),200*(o-r),t.opacity)}function e8(t,e,r,n){this.l=+t,this.a=+e,this.b=+r,this.opacity=+n}function e4(t){return t>e5?Math.pow(t,1/3):t/e3+e1}function e9(t){return t>e2?t*t*t:e3*(t-e1)}function e7(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function rt(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function re(t,e,r,n){return 1==arguments.length?function(t){if(t instanceof rr)return new rr(t.h,t.c,t.l,t.opacity);if(t instanceof e8||(t=e6(t)),0===t.a&&0===t.b)return new rr(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*e0;return new rr(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}(t):new rr(t,e,r,null==n?1:n)}function rr(t,e,r,n){this.h=+t,this.c=+e,this.l=+r,this.opacity=+n}function rn(t){if(isNaN(t.h))return new e8(t.l,0,0,t.opacity);var e=t.h*eJ;return new e8(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}function ri(t){return function(e,r){var n=t((e=re(e)).h,(r=re(r)).h),i=ep(e.c,r.c),a=ep(e.l,r.l),o=ep(e.opacity,r.opacity);return function(t){return e.h=n(t),e.c=i(t),e.l=a(t),e.opacity=o(t),e+""}}}tz(e8,function(t,e,r,n){return 1==arguments.length?e6(t):new e8(t,e,r,null==n?1:n)},tB(tY,{brighter(t){return new e8(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker(t){return new e8(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,r=isNaN(this.b)?t:t-this.b/200;return e=.96422*e9(e),new t7(e7(3.1338561*e-1.6168667*(t=+e9(t))-.4906146*(r=.82521*e9(r))),e7(-.9787684*e+1.9161415*t+.033454*r),e7(.0719453*e-.2289914*t+1.4052427*r),this.opacity)}})),tz(rr,re,tB(tY,{brighter(t){return new rr(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker(t){return new rr(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb(){return rn(this).rgb()}}));let ra=ri(function(t,e){var r=e-t;return r?ed(t,r>180||r<-180?r-360*Math.round(r/360):r):ef(isNaN(t)?e:t)});function ro(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}ri(ep);class rs extends Map{constructor(t,e=rc){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[e,r]of t)this.set(e,r)}get(t){return super.get(rl(this,t))}has(t){return super.has(rl(this,t))}set(t,e){return super.set(function({_intern:t,_key:e},r){let n=e(r);return t.has(n)?t.get(n):(t.set(n,r),r)}(this,t),e)}delete(t){return super.delete(function({_intern:t,_key:e},r){let n=e(r);return t.has(n)&&(r=t.get(n),t.delete(n)),r}(this,t))}}function rl({_intern:t,_key:e},r){let n=e(r);return t.has(n)?t.get(n):r}function rc(t){return null!==t&&"object"==typeof t?t.valueOf():t}let ru=Symbol("implicit");function rh(){var t=new rs,e=[],r=[],n=ru;function i(i){let a=t.get(i);if(void 0===a){if(n!==ru)return n;t.set(i,a=e.push(i)-1)}return r[a%r.length]}return i.domain=function(r){if(!arguments.length)return e.slice();for(let n of(e=[],t=new rs,r))t.has(n)||t.set(n,e.push(n)-1);return i},i.range=function(t){return arguments.length?(r=Array.from(t),i):r.slice()},i.unknown=function(t){return arguments.length?(n=t,i):n},i.copy=function(){return rh(e,r).unknown(n)},ro.apply(i,arguments),i}let rf=Math.sqrt(50),rd=Math.sqrt(10),rp=Math.sqrt(2);function rg(t,e,r){let n,i,a,o=(e-t)/Math.max(0,r),s=Math.floor(Math.log10(o)),l=o/Math.pow(10,s),c=l>=rf?10:l>=rd?5:l>=rp?2:1;return(s<0?(n=Math.round(t*(a=Math.pow(10,-s)/c)),i=Math.round(e*a),n/a<t&&++n,i/a>e&&--i,a=-a):(n=Math.round(t/(a=Math.pow(10,s)*c)),i=Math.round(e/a),n*a<t&&++n,i*a>e&&--i),i<n&&.5<=r&&r<2)?rg(t,e,2*r):[n,i,a]}function rm(t,e,r){return rg(t*=1,e*=1,r*=1)[2]}function ry(t,e,r){e*=1,t*=1,r*=1;let n=e<t,i=n?rm(e,t,r):rm(t,e,r);return(n?-1:1)*(i<0?-(1/i):i)}function rb(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function rx(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function r_(t){let e,r,n;function i(t,n,a=0,o=t.length){if(a<o){if(0!==e(n,n))return o;do{let e=a+o>>>1;0>r(t[e],n)?a=e+1:o=e}while(a<o)}return a}return 2!==t.length?(e=rb,r=(e,r)=>rb(t(e),r),n=(e,r)=>t(e)-r):(e=t===rb||t===rx?t:rw,r=t,n=t),{left:i,center:function(t,e,r=0,a=t.length){let o=i(t,e,r,a-1);return o>r&&n(t[o-1],e)>-n(t[o],e)?o-1:o},right:function(t,n,i=0,a=t.length){if(i<a){if(0!==e(n,n))return a;do{let e=i+a>>>1;0>=r(t[e],n)?i=e+1:a=e}while(i<a)}return i}}}function rw(){return 0}let rk=r_(rb),rv=rk.right;rk.left,r_(function(t){return null===t?NaN:+t}).center;function rA(t,e){return t*=1,e*=1,function(r){return Math.round(t*(1-r)+e*r)}}function rM(t){return+t}var rS=[0,1];function rT(t){return t}function rC(t,e){var r;return(e-=t*=1)?function(r){return(r-t)/e}:(r=isNaN(e)?NaN:.5,function(){return r})}function r$(t,e,r){var n=t[0],i=t[1],a=e[0],o=e[1];return i<n?(n=rC(i,n),a=r(o,a)):(n=rC(n,i),a=r(a,o)),function(t){return a(n(t))}}function rO(t,e,r){var n=Math.min(t.length,e.length)-1,i=Array(n),a=Array(n),o=-1;for(t[n]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++o<n;)i[o]=rC(t[o],t[o+1]),a[o]=r(e[o],e[o+1]);return function(e){var r=rv(t,e,1,n)-1;return a[r](i[r](e))}}function rL(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function rE(){return(function(){var t,e,r,n,i,a,o=rS,s=rS,l=function t(e,r){var n,i,a=typeof r;return null==r||"boolean"===a?ef(r):("number"===a?tK:"string"===a?(i=t5(r))?(r=i,eg):ex:r instanceof t5?eg:r instanceof Date?function(t,e){var r=new Date;return t*=1,e*=1,function(n){return r.setTime(t*(1-n)+e*n),r}}:!ArrayBuffer.isView(n=r)||n instanceof DataView?Array.isArray(r)?function(e,r){var n,i=r?r.length:0,a=e?Math.min(i,e.length):0,o=Array(a),s=Array(i);for(n=0;n<a;++n)o[n]=t(e[n],r[n]);for(;n<i;++n)s[n]=r[n];return function(t){for(n=0;n<a;++n)s[n]=o[n](t);return s}}:"function"!=typeof r.valueOf&&"function"!=typeof r.toString||isNaN(r)?function(e,r){var n,i={},a={};for(n in(null===e||"object"!=typeof e)&&(e={}),(null===r||"object"!=typeof r)&&(r={}),r)n in e?i[n]=t(e[n],r[n]):a[n]=r[n];return function(t){for(n in i)a[n]=i[n](t);return a}}:tK:function(t,e){e||(e=[]);var r,n=t?Math.min(e.length,t.length):0,i=e.slice();return function(a){for(r=0;r<n;++r)i[r]=t[r]*(1-a)+e[r]*a;return i}})(e,r)},c=rT;function u(){var t,e,r,l=Math.min(o.length,s.length);return c!==rT&&(t=o[0],e=o[l-1],t>e&&(r=t,t=e,e=r),c=function(r){return Math.max(t,Math.min(e,r))}),n=l>2?rO:r$,i=a=null,h}function h(e){return null==e||isNaN(e*=1)?r:(i||(i=n(o.map(t),s,l)))(t(c(e)))}return h.invert=function(r){return c(e((a||(a=n(s,o.map(t),tK)))(r)))},h.domain=function(t){return arguments.length?(o=Array.from(t,rM),u()):o.slice()},h.range=function(t){return arguments.length?(s=Array.from(t),u()):s.slice()},h.rangeRound=function(t){return s=Array.from(t),l=rA,u()},h.clamp=function(t){return arguments.length?(c=!!t||rT,u()):c!==rT},h.interpolate=function(t){return arguments.length?(l=t,u()):l},h.unknown=function(t){return arguments.length?(r=t,h):r},function(r,n){return t=r,e=n,u()}})()(rT,rT)}let rR=new Date,rK=new Date;function rj(t,e,r,n){function i(e){return t(e=0==arguments.length?new Date:new Date(+e)),e}return i.floor=e=>(t(e=new Date(+e)),e),i.ceil=r=>(t(r=new Date(r-1)),e(r,1),t(r),r),i.round=t=>{let e=i(t),r=i.ceil(t);return t-e<r-t?e:r},i.offset=(t,r)=>(e(t=new Date(+t),null==r?1:Math.floor(r)),t),i.range=(r,n,a)=>{let o,s=[];if(r=i.ceil(r),a=null==a?1:Math.floor(a),!(r<n)||!(a>0))return s;do s.push(o=new Date(+r)),e(r,a),t(r);while(o<r&&r<n);return s},i.filter=r=>rj(e=>{if(e>=e)for(;t(e),!r(e);)e.setTime(e-1)},(t,n)=>{if(t>=t)if(n<0)for(;++n<=0;)for(;e(t,-1),!r(t););else for(;--n>=0;)for(;e(t,1),!r(t););}),r&&(i.count=(e,n)=>(rR.setTime(+e),rK.setTime(+n),t(rR),t(rK),Math.floor(r(rR,rK))),i.every=t=>isFinite(t=Math.floor(t))&&t>0?t>1?i.filter(n?e=>n(e)%t==0:e=>i.count(0,e)%t==0):i:null),i}let rD=rj(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);rD.every=t=>isFinite(t=Math.floor(t))&&t>0?t>1?rj(e=>{e.setTime(Math.floor(e/t)*t)},(e,r)=>{e.setTime(+e+r*t)},(e,r)=>(r-e)/t):rD:null,rD.range;let rN=rj(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+1e3*e)},(t,e)=>(e-t)/1e3,t=>t.getUTCSeconds());rN.range;let rP=rj(t=>{t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())},(t,e)=>{t.setTime(+t+6e4*e)},(t,e)=>(e-t)/6e4,t=>t.getMinutes());rP.range;let rI=rj(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+6e4*e)},(t,e)=>(e-t)/6e4,t=>t.getUTCMinutes());rI.range;let rF=rj(t=>{t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-6e4*t.getMinutes())},(t,e)=>{t.setTime(+t+36e5*e)},(t,e)=>(e-t)/36e5,t=>t.getHours());rF.range;let rU=rj(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+36e5*e)},(t,e)=>(e-t)/36e5,t=>t.getUTCHours());rU.range;let rz=rj(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*6e4)/864e5,t=>t.getDate()-1);rz.range;let rB=rj(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>t.getUTCDate()-1);rB.range;let rY=rj(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>Math.floor(t/864e5));function rH(t){return rj(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(t,e)=>{t.setDate(t.getDate()+7*e)},(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*6e4)/6048e5)}rY.range;let rq=rH(0),rW=rH(1),rX=rH(2),rG=rH(3),rZ=rH(4),rV=rH(5),rQ=rH(6);function rJ(t){return rj(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+7*e)},(t,e)=>(e-t)/6048e5)}rq.range,rW.range,rX.range,rG.range,rZ.range,rV.range,rQ.range;let r0=rJ(0),r1=rJ(1),r2=rJ(2),r3=rJ(3),r5=rJ(4),r6=rJ(5),r8=rJ(6);r0.range,r1.range,r2.range,r3.range,r5.range,r6.range,r8.range;let r4=rj(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());r4.range;let r9=rj(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());r9.range;let r7=rj(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());r7.every=t=>isFinite(t=Math.floor(t))&&t>0?rj(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,r)=>{e.setFullYear(e.getFullYear()+r*t)}):null,r7.range;let nt=rj(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());function ne(t,e,r,n,i,a){let o=[[rN,1,1e3],[rN,5,5e3],[rN,15,15e3],[rN,30,3e4],[a,1,6e4],[a,5,3e5],[a,15,9e5],[a,30,18e5],[i,1,36e5],[i,3,108e5],[i,6,216e5],[i,12,432e5],[n,1,864e5],[n,2,1728e5],[r,1,6048e5],[e,1,2592e6],[e,3,7776e6],[t,1,31536e6]];function s(e,r,n){let i=Math.abs(r-e)/n,a=r_(([,,t])=>t).right(o,i);if(a===o.length)return t.every(ry(e/31536e6,r/31536e6,n));if(0===a)return rD.every(Math.max(ry(e,r,n),1));let[s,l]=o[i/o[a-1][2]<o[a][2]/i?a-1:a];return s.every(l)}return[function(t,e,r){let n=e<t;n&&([t,e]=[e,t]);let i=r&&"function"==typeof r.range?r:s(t,e,r),a=i?i.range(t,+e+1):[];return n?a.reverse():a},s]}nt.every=t=>isFinite(t=Math.floor(t))&&t>0?rj(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r*t)}):null,nt.range;let[nr,nn]=ne(nt,r9,r0,rY,rU,rI),[ni,na]=ne(r7,r4,rq,rz,rF,rP);function no(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function ns(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function nl(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}var nc={"-":"",_:" ",0:"0"},nu=/^\s*\d+/,nh=/^%/,nf=/[\\^$*+?|[\]().{}]/g;function nd(t,e,r){var n=t<0?"-":"",i=(n?-t:t)+"",a=i.length;return n+(a<r?Array(r-a+1).join(e)+i:i)}function np(t){return t.replace(nf,"\\$&")}function ng(t){return RegExp("^(?:"+t.map(np).join("|")+")","i")}function nm(t){return new Map(t.map((t,e)=>[t.toLowerCase(),e]))}function ny(t,e,r){var n=nu.exec(e.slice(r,r+1));return n?(t.w=+n[0],r+n[0].length):-1}function nb(t,e,r){var n=nu.exec(e.slice(r,r+1));return n?(t.u=+n[0],r+n[0].length):-1}function nx(t,e,r){var n=nu.exec(e.slice(r,r+2));return n?(t.U=+n[0],r+n[0].length):-1}function n_(t,e,r){var n=nu.exec(e.slice(r,r+2));return n?(t.V=+n[0],r+n[0].length):-1}function nw(t,e,r){var n=nu.exec(e.slice(r,r+2));return n?(t.W=+n[0],r+n[0].length):-1}function nk(t,e,r){var n=nu.exec(e.slice(r,r+4));return n?(t.y=+n[0],r+n[0].length):-1}function nv(t,e,r){var n=nu.exec(e.slice(r,r+2));return n?(t.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function nA(t,e,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return n?(t.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function nM(t,e,r){var n=nu.exec(e.slice(r,r+1));return n?(t.q=3*n[0]-3,r+n[0].length):-1}function nS(t,e,r){var n=nu.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function nT(t,e,r){var n=nu.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function nC(t,e,r){var n=nu.exec(e.slice(r,r+3));return n?(t.m=0,t.d=+n[0],r+n[0].length):-1}function n$(t,e,r){var n=nu.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function nO(t,e,r){var n=nu.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function nL(t,e,r){var n=nu.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function nE(t,e,r){var n=nu.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function nR(t,e,r){var n=nu.exec(e.slice(r,r+6));return n?(t.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function nK(t,e,r){var n=nh.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function nj(t,e,r){var n=nu.exec(e.slice(r));return n?(t.Q=+n[0],r+n[0].length):-1}function nD(t,e,r){var n=nu.exec(e.slice(r));return n?(t.s=+n[0],r+n[0].length):-1}function nN(t,e){return nd(t.getDate(),e,2)}function nP(t,e){return nd(t.getHours(),e,2)}function nI(t,e){return nd(t.getHours()%12||12,e,2)}function nF(t,e){return nd(1+rz.count(r7(t),t),e,3)}function nU(t,e){return nd(t.getMilliseconds(),e,3)}function nz(t,e){return nU(t,e)+"000"}function nB(t,e){return nd(t.getMonth()+1,e,2)}function nY(t,e){return nd(t.getMinutes(),e,2)}function nH(t,e){return nd(t.getSeconds(),e,2)}function nq(t){var e=t.getDay();return 0===e?7:e}function nW(t,e){return nd(rq.count(r7(t)-1,t),e,2)}function nX(t){var e=t.getDay();return e>=4||0===e?rZ(t):rZ.ceil(t)}function nG(t,e){return t=nX(t),nd(rZ.count(r7(t),t)+(4===r7(t).getDay()),e,2)}function nZ(t){return t.getDay()}function nV(t,e){return nd(rW.count(r7(t)-1,t),e,2)}function nQ(t,e){return nd(t.getFullYear()%100,e,2)}function nJ(t,e){return nd((t=nX(t)).getFullYear()%100,e,2)}function n0(t,e){return nd(t.getFullYear()%1e4,e,4)}function n1(t,e){var r=t.getDay();return nd((t=r>=4||0===r?rZ(t):rZ.ceil(t)).getFullYear()%1e4,e,4)}function n2(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+nd(e/60|0,"0",2)+nd(e%60,"0",2)}function n3(t,e){return nd(t.getUTCDate(),e,2)}function n5(t,e){return nd(t.getUTCHours(),e,2)}function n6(t,e){return nd(t.getUTCHours()%12||12,e,2)}function n8(t,e){return nd(1+rB.count(nt(t),t),e,3)}function n4(t,e){return nd(t.getUTCMilliseconds(),e,3)}function n9(t,e){return n4(t,e)+"000"}function n7(t,e){return nd(t.getUTCMonth()+1,e,2)}function it(t,e){return nd(t.getUTCMinutes(),e,2)}function ie(t,e){return nd(t.getUTCSeconds(),e,2)}function ir(t){var e=t.getUTCDay();return 0===e?7:e}function ii(t,e){return nd(r0.count(nt(t)-1,t),e,2)}function ia(t){var e=t.getUTCDay();return e>=4||0===e?r5(t):r5.ceil(t)}function io(t,e){return t=ia(t),nd(r5.count(nt(t),t)+(4===nt(t).getUTCDay()),e,2)}function is(t){return t.getUTCDay()}function il(t,e){return nd(r1.count(nt(t)-1,t),e,2)}function ic(t,e){return nd(t.getUTCFullYear()%100,e,2)}function iu(t,e){return nd((t=ia(t)).getUTCFullYear()%100,e,2)}function ih(t,e){return nd(t.getUTCFullYear()%1e4,e,4)}function id(t,e){var r=t.getUTCDay();return nd((t=r>=4||0===r?r5(t):r5.ceil(t)).getUTCFullYear()%1e4,e,4)}function ip(){return"+0000"}function ig(){return"%"}function im(t){return+t}function iy(t){return Math.floor(t/1e3)}function ib(t){return new Date(t)}function ix(t){return t instanceof Date?+t:+new Date(+t)}function i_(){return ro.apply((function t(e,r,n,i,a,o,s,l,c,u){var h=rE(),f=h.invert,d=h.domain,p=u(".%L"),g=u(":%S"),m=u("%I:%M"),y=u("%I %p"),b=u("%a %d"),x=u("%b %d"),_=u("%B"),w=u("%Y");function k(t){return(c(t)<t?p:l(t)<t?g:s(t)<t?m:o(t)<t?y:i(t)<t?a(t)<t?b:x:n(t)<t?_:w)(t)}return h.invert=function(t){return new Date(f(t))},h.domain=function(t){return arguments.length?d(Array.from(t,ix)):d().map(ib)},h.ticks=function(t){var r=d();return e(r[0],r[r.length-1],null==t?10:t)},h.tickFormat=function(t,e){return null==e?k:u(e)},h.nice=function(t){var e,n,i,a,o,s,l,c=d();return t&&"function"==typeof t.range||(t=r(c[0],c[c.length-1],null==t?10:t)),t?d((e=c,n=t,e=e.slice(),a=0,o=e.length-1,s=e[a],(l=e[o])<s&&(i=a,a=o,o=i,i=s,s=l,l=i),e[a]=n.floor(s),e[o]=n.ceil(l),e)):h},h.copy=function(){return rL(h,t(e,r,n,i,a,o,s,l,c,u))},h})(ni,na,r7,r4,rq,rz,rF,rP,rN,tc).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}tc=(tl=function(t){var e=t.dateTime,r=t.date,n=t.time,i=t.periods,a=t.days,o=t.shortDays,s=t.months,l=t.shortMonths,c=ng(i),u=nm(i),h=ng(a),f=nm(a),d=ng(o),p=nm(o),g=ng(s),m=nm(s),y=ng(l),b=nm(l),x={a:function(t){return o[t.getDay()]},A:function(t){return a[t.getDay()]},b:function(t){return l[t.getMonth()]},B:function(t){return s[t.getMonth()]},c:null,d:nN,e:nN,f:nz,g:nJ,G:n1,H:nP,I:nI,j:nF,L:nU,m:nB,M:nY,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:im,s:iy,S:nH,u:nq,U:nW,V:nG,w:nZ,W:nV,x:null,X:null,y:nQ,Y:n0,Z:n2,"%":ig},_={a:function(t){return o[t.getUTCDay()]},A:function(t){return a[t.getUTCDay()]},b:function(t){return l[t.getUTCMonth()]},B:function(t){return s[t.getUTCMonth()]},c:null,d:n3,e:n3,f:n9,g:iu,G:id,H:n5,I:n6,j:n8,L:n4,m:n7,M:it,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:im,s:iy,S:ie,u:ir,U:ii,V:io,w:is,W:il,x:null,X:null,y:ic,Y:ih,Z:ip,"%":ig},w={a:function(t,e,r){var n=d.exec(e.slice(r));return n?(t.w=p.get(n[0].toLowerCase()),r+n[0].length):-1},A:function(t,e,r){var n=h.exec(e.slice(r));return n?(t.w=f.get(n[0].toLowerCase()),r+n[0].length):-1},b:function(t,e,r){var n=y.exec(e.slice(r));return n?(t.m=b.get(n[0].toLowerCase()),r+n[0].length):-1},B:function(t,e,r){var n=g.exec(e.slice(r));return n?(t.m=m.get(n[0].toLowerCase()),r+n[0].length):-1},c:function(t,r,n){return A(t,e,r,n)},d:nT,e:nT,f:nR,g:nv,G:nk,H:n$,I:n$,j:nC,L:nE,m:nS,M:nO,p:function(t,e,r){var n=c.exec(e.slice(r));return n?(t.p=u.get(n[0].toLowerCase()),r+n[0].length):-1},q:nM,Q:nj,s:nD,S:nL,u:nb,U:nx,V:n_,w:ny,W:nw,x:function(t,e,n){return A(t,r,e,n)},X:function(t,e,r){return A(t,n,e,r)},y:nv,Y:nk,Z:nA,"%":nK};function k(t,e){return function(r){var n,i,a,o=[],s=-1,l=0,c=t.length;for(r instanceof Date||(r=new Date(+r));++s<c;)37===t.charCodeAt(s)&&(o.push(t.slice(l,s)),null!=(i=nc[n=t.charAt(++s)])?n=t.charAt(++s):i="e"===n?" ":"0",(a=e[n])&&(n=a(r,i)),o.push(n),l=s+1);return o.push(t.slice(l,s)),o.join("")}}function v(t,e){return function(r){var n,i,a=nl(1900,void 0,1);if(A(a,t,r+="",0)!=r.length)return null;if("Q"in a)return new Date(a.Q);if("s"in a)return new Date(1e3*a.s+("L"in a?a.L:0));if(!e||"Z"in a||(a.Z=0),"p"in a&&(a.H=a.H%12+12*a.p),void 0===a.m&&(a.m="q"in a?a.q:0),"V"in a){if(a.V<1||a.V>53)return null;"w"in a||(a.w=1),"Z"in a?(n=(i=(n=ns(nl(a.y,0,1))).getUTCDay())>4||0===i?r1.ceil(n):r1(n),n=rB.offset(n,(a.V-1)*7),a.y=n.getUTCFullYear(),a.m=n.getUTCMonth(),a.d=n.getUTCDate()+(a.w+6)%7):(n=(i=(n=no(nl(a.y,0,1))).getDay())>4||0===i?rW.ceil(n):rW(n),n=rz.offset(n,(a.V-1)*7),a.y=n.getFullYear(),a.m=n.getMonth(),a.d=n.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:+("W"in a)),i="Z"in a?ns(nl(a.y,0,1)).getUTCDay():no(nl(a.y,0,1)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(i+5)%7:a.w+7*a.U-(i+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,ns(a)):no(a)}}function A(t,e,r,n){for(var i,a,o=0,s=e.length,l=r.length;o<s;){if(n>=l)return -1;if(37===(i=e.charCodeAt(o++))){if(!(a=w[(i=e.charAt(o++))in nc?e.charAt(o++):i])||(n=a(t,r,n))<0)return -1}else if(i!=r.charCodeAt(n++))return -1}return n}return x.x=k(r,x),x.X=k(n,x),x.c=k(e,x),_.x=k(r,_),_.X=k(n,_),_.c=k(e,_),{format:function(t){var e=k(t+="",x);return e.toString=function(){return t},e},parse:function(t){var e=v(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=k(t+="",_);return e.toString=function(){return t},e},utcParse:function(t){var e=v(t+="",!0);return e.toString=function(){return t},e}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]})).format,tl.parse,tl.utcFormat,tl.utcParse;let iw=function(t){for(var e=t.length/6|0,r=Array(e),n=0;n<e;)r[n]="#"+t.slice(6*n,6*++n);return r}("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function ik(t){return"string"==typeof t?new V([[document.querySelector(t)]],[document.documentElement]):new V([[t]],Z)}function iv(t){return function(){return t}}let iA=Math.abs,iM=Math.atan2,iS=Math.cos,iT=Math.max,iC=Math.min,i$=Math.sin,iO=Math.sqrt,iL=Math.PI,iE=iL/2,iR=2*iL;function iK(t){return t>=1?iE:t<=-1?-iE:Math.asin(t)}let ij=Math.PI,iD=2*ij,iN=iD-1e-6;function iP(t){this._+=t[0];for(let e=1,r=t.length;e<r;++e)this._+=arguments[e]+t[e]}class iI{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?iP:function(t){let e=Math.floor(t);if(!(e>=0))throw Error(`invalid digits: ${t}`);if(e>15)return iP;let r=10**e;return function(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=Math.round(arguments[e]*r)/r+t[e]}}(t)}moveTo(t,e){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,e){this._append`L${this._x1=+t},${this._y1=+e}`}quadraticCurveTo(t,e,r,n){this._append`Q${+t},${+e},${this._x1=+r},${this._y1=+n}`}bezierCurveTo(t,e,r,n,i,a){this._append`C${+t},${+e},${+r},${+n},${this._x1=+i},${this._y1=+a}`}arcTo(t,e,r,n,i){if(t*=1,e*=1,r*=1,n*=1,(i*=1)<0)throw Error(`negative radius: ${i}`);let a=this._x1,o=this._y1,s=r-t,l=n-e,c=a-t,u=o-e,h=c*c+u*u;if(null===this._x1)this._append`M${this._x1=t},${this._y1=e}`;else if(h>1e-6)if(Math.abs(u*s-l*c)>1e-6&&i){let f=r-a,d=n-o,p=s*s+l*l,g=Math.sqrt(p),m=Math.sqrt(h),y=i*Math.tan((ij-Math.acos((p+h-(f*f+d*d))/(2*g*m)))/2),b=y/m,x=y/g;Math.abs(b-1)>1e-6&&this._append`L${t+b*c},${e+b*u}`,this._append`A${i},${i},0,0,${+(u*f>c*d)},${this._x1=t+x*s},${this._y1=e+x*l}`}else this._append`L${this._x1=t},${this._y1=e}`}arc(t,e,r,n,i,a){if(t*=1,e*=1,r*=1,a=!!a,r<0)throw Error(`negative radius: ${r}`);let o=r*Math.cos(n),s=r*Math.sin(n),l=t+o,c=e+s,u=1^a,h=a?n-i:i-n;null===this._x1?this._append`M${l},${c}`:(Math.abs(this._x1-l)>1e-6||Math.abs(this._y1-c)>1e-6)&&this._append`L${l},${c}`,r&&(h<0&&(h=h%iD+iD),h>iN?this._append`A${r},${r},0,1,${u},${t-o},${e-s}A${r},${r},0,1,${u},${this._x1=l},${this._y1=c}`:h>1e-6&&this._append`A${r},${r},0,${+(h>=ij)},${u},${this._x1=t+r*Math.cos(i)},${this._y1=e+r*Math.sin(i)}`)}rect(t,e,r,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${r*=1}v${+n}h${-r}Z`}toString(){return this._}}function iF(t){let e=3;return t.digits=function(r){if(!arguments.length)return e;if(null==r)e=null;else{let t=Math.floor(r);if(!(t>=0))throw RangeError(`invalid digits: ${r}`);e=t}return t},()=>new iI(e)}function iU(t){return t.innerRadius}function iz(t){return t.outerRadius}function iB(t){return t.startAngle}function iY(t){return t.endAngle}function iH(t){return t&&t.padAngle}function iq(t,e,r,n,i,a,o){var s=t-r,l=e-n,c=(o?a:-a)/iO(s*s+l*l),u=c*l,h=-c*s,f=t+u,d=e+h,p=r+u,g=n+h,m=(f+p)/2,y=(d+g)/2,b=p-f,x=g-d,_=b*b+x*x,w=i-a,k=f*g-p*d,v=(x<0?-1:1)*iO(iT(0,w*w*_-k*k)),A=(k*x-b*v)/_,M=(-k*b-x*v)/_,S=(k*x+b*v)/_,T=(-k*b+x*v)/_,C=A-m,$=M-y,O=S-m,L=T-y;return C*C+$*$>O*O+L*L&&(A=S,M=T),{cx:A,cy:M,x01:-u,y01:-h,x11:A*(i/w-1),y11:M*(i/w-1)}}function iW(){var t=iU,e=iz,r=iv(0),n=null,i=iB,a=iY,o=iH,s=null,l=iF(c);function c(){var c,u,h=+t.apply(this,arguments),f=+e.apply(this,arguments),d=i.apply(this,arguments)-iE,p=a.apply(this,arguments)-iE,g=iA(p-d),m=p>d;if(s||(s=c=l()),f<h&&(u=f,f=h,h=u),f>1e-12)if(g>iR-1e-12)s.moveTo(f*iS(d),f*i$(d)),s.arc(0,0,f,d,p,!m),h>1e-12&&(s.moveTo(h*iS(p),h*i$(p)),s.arc(0,0,h,p,d,m));else{var y,b,x=d,_=p,w=d,k=p,v=g,A=g,M=o.apply(this,arguments)/2,S=M>1e-12&&(n?+n.apply(this,arguments):iO(h*h+f*f)),T=iC(iA(f-h)/2,+r.apply(this,arguments)),C=T,$=T;if(S>1e-12){var O=iK(S/h*i$(M)),L=iK(S/f*i$(M));(v-=2*O)>1e-12?(O*=m?1:-1,w+=O,k-=O):(v=0,w=k=(d+p)/2),(A-=2*L)>1e-12?(L*=m?1:-1,x+=L,_-=L):(A=0,x=_=(d+p)/2)}var E=f*iS(x),R=f*i$(x),K=h*iS(k),j=h*i$(k);if(T>1e-12){var D,N=f*iS(_),P=f*i$(_),I=h*iS(w),F=h*i$(w);if(g<iL)if(D=function(t,e,r,n,i,a,o,s){var l=r-t,c=n-e,u=o-i,h=s-a,f=h*l-u*c;if(!(f*f<1e-12))return f=(u*(e-a)-h*(t-i))/f,[t+f*l,e+f*c]}(E,R,I,F,N,P,K,j)){var U,z=E-D[0],B=R-D[1],Y=N-D[0],H=P-D[1],q=1/i$(((U=(z*Y+B*H)/(iO(z*z+B*B)*iO(Y*Y+H*H)))>1?0:U<-1?iL:Math.acos(U))/2),W=iO(D[0]*D[0]+D[1]*D[1]);C=iC(T,(h-W)/(q-1)),$=iC(T,(f-W)/(q+1))}else C=$=0}A>1e-12?$>1e-12?(y=iq(I,F,E,R,f,$,m),b=iq(N,P,K,j,f,$,m),s.moveTo(y.cx+y.x01,y.cy+y.y01),$<T?s.arc(y.cx,y.cy,$,iM(y.y01,y.x01),iM(b.y01,b.x01),!m):(s.arc(y.cx,y.cy,$,iM(y.y01,y.x01),iM(y.y11,y.x11),!m),s.arc(0,0,f,iM(y.cy+y.y11,y.cx+y.x11),iM(b.cy+b.y11,b.cx+b.x11),!m),s.arc(b.cx,b.cy,$,iM(b.y11,b.x11),iM(b.y01,b.x01),!m))):(s.moveTo(E,R),s.arc(0,0,f,x,_,!m)):s.moveTo(E,R),h>1e-12&&v>1e-12?C>1e-12?(y=iq(K,j,N,P,h,-C,m),b=iq(E,R,I,F,h,-C,m),s.lineTo(y.cx+y.x01,y.cy+y.y01),C<T?s.arc(y.cx,y.cy,C,iM(y.y01,y.x01),iM(b.y01,b.x01),!m):(s.arc(y.cx,y.cy,C,iM(y.y01,y.x01),iM(y.y11,y.x11),!m),s.arc(0,0,h,iM(y.cy+y.y11,y.cx+y.x11),iM(b.cy+b.y11,b.cx+b.x11),m),s.arc(b.cx,b.cy,C,iM(b.y11,b.x11),iM(b.y01,b.x01),!m))):s.arc(0,0,h,k,w,m):s.lineTo(K,j)}else s.moveTo(0,0);if(s.closePath(),c)return s=null,c+""||null}return c.centroid=function(){var r=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,n=(+i.apply(this,arguments)+ +a.apply(this,arguments))/2-iL/2;return[iS(n)*r,i$(n)*r]},c.innerRadius=function(e){return arguments.length?(t="function"==typeof e?e:iv(+e),c):t},c.outerRadius=function(t){return arguments.length?(e="function"==typeof t?t:iv(+t),c):e},c.cornerRadius=function(t){return arguments.length?(r="function"==typeof t?t:iv(+t),c):r},c.padRadius=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:iv(+t),c):n},c.startAngle=function(t){return arguments.length?(i="function"==typeof t?t:iv(+t),c):i},c.endAngle=function(t){return arguments.length?(a="function"==typeof t?t:iv(+t),c):a},c.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:iv(+t),c):o},c.context=function(t){return arguments.length?(s=null==t?null:t,c):s},c}function iX(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function iG(t){this._context=t}function iZ(t){return new iG(t)}function iV(t){return t[0]}function iQ(t){return t[1]}function iJ(t,e){var r=iv(!0),n=null,i=iZ,a=null,o=iF(s);function s(s){var l,c,u,h=(s=iX(s)).length,f=!1;for(null==n&&(a=i(u=o())),l=0;l<=h;++l)!(l<h&&r(c=s[l],l,s))===f&&((f=!f)?a.lineStart():a.lineEnd()),f&&a.point(+t(c,l,s),+e(c,l,s));if(u)return a=null,u+""||null}return t="function"==typeof t?t:void 0===t?iV:iv(t),e="function"==typeof e?e:void 0===e?iQ:iv(e),s.x=function(e){return arguments.length?(t="function"==typeof e?e:iv(+e),s):t},s.y=function(t){return arguments.length?(e="function"==typeof t?t:iv(+t),s):e},s.defined=function(t){return arguments.length?(r="function"==typeof t?t:iv(!!t),s):r},s.curve=function(t){return arguments.length?(i=t,null!=n&&(a=i(n)),s):i},s.context=function(t){return arguments.length?(null==t?n=a=null:a=i(n=t),s):n},s}function i0(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function i1(t){return t}function i2(){var t=i1,e=i0,r=null,n=iv(0),i=iv(iR),a=iv(0);function o(o){var s,l,c,u,h,f=(o=iX(o)).length,d=0,p=Array(f),g=Array(f),m=+n.apply(this,arguments),y=Math.min(iR,Math.max(-iR,i.apply(this,arguments)-m)),b=Math.min(Math.abs(y)/f,a.apply(this,arguments)),x=b*(y<0?-1:1);for(s=0;s<f;++s)(h=g[p[s]=s]=+t(o[s],s,o))>0&&(d+=h);for(null!=e?p.sort(function(t,r){return e(g[t],g[r])}):null!=r&&p.sort(function(t,e){return r(o[t],o[e])}),s=0,c=d?(y-f*x)/d:0;s<f;++s,m=u)u=m+((h=g[l=p[s]])>0?h*c:0)+x,g[l]={data:o[l],index:s,value:h,startAngle:m,endAngle:u,padAngle:b};return g}return o.value=function(e){return arguments.length?(t="function"==typeof e?e:iv(+e),o):t},o.sortValues=function(t){return arguments.length?(e=t,r=null,o):e},o.sort=function(t){return arguments.length?(r=t,e=null,o):r},o.startAngle=function(t){return arguments.length?(n="function"==typeof t?t:iv(+t),o):n},o.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:iv(+t),o):i},o.padAngle=function(t){return arguments.length?(a="function"==typeof t?t:iv(+t),o):a},o}function i3(){}function i5(t,e,r){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+r)/6)}function i6(t){this._context=t}function i8(t){return new i6(t)}function i4(t){this._context=t}function i9(t){return new i4(t)}function i7(t){this._context=t}function at(t){return new i7(t)}iI.prototype,Array.prototype.slice,iG.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}},i6.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:i5(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:i5(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},i4.prototype={areaStart:i3,areaEnd:i3,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:i5(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},i7.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+t)/6,n=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:i5(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};class ae{constructor(t,e){this._context=t,this._x=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,e,t,e):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+e)/2,t,this._y0,t,e)}this._x0=t,this._y0=e}}function ar(t){return new ae(t,!0)}function an(t){return new ae(t,!1)}function ai(t,e){this._basis=new i6(t),this._beta=e}ai.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,r=t.length-1;if(r>0)for(var n,i=t[0],a=e[0],o=t[r]-i,s=e[r]-a,l=-1;++l<=r;)n=l/r,this._basis.point(this._beta*t[l]+(1-this._beta)*(i+n*o),this._beta*e[l]+(1-this._beta)*(a+n*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};let aa=function t(e){function r(t){return 1===e?new i6(t):new ai(t,e)}return r.beta=function(e){return t(+e)},r}(.85);function ao(t,e,r){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-r),t._x2,t._y2)}function as(t,e){this._context=t,this._k=(1-e)/6}as.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:ao(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:ao(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};let al=function t(e){function r(t){return new as(t,e)}return r.tension=function(e){return t(+e)},r}(0);function ac(t,e){this._context=t,this._k=(1-e)/6}ac.prototype={areaStart:i3,areaEnd:i3,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:ao(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};let au=function t(e){function r(t){return new ac(t,e)}return r.tension=function(e){return t(+e)},r}(0);function ah(t,e){this._context=t,this._k=(1-e)/6}ah.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:ao(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};let af=function t(e){function r(t){return new ah(t,e)}return r.tension=function(e){return t(+e)},r}(0);function ad(t,e,r){var n=t._x1,i=t._y1,a=t._x2,o=t._y2;if(t._l01_a>1e-12){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);n=(n*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,i=(i*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a>1e-12){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,u=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*c+t._x1*t._l23_2a-e*t._l12_2a)/u,o=(o*c+t._y1*t._l23_2a-r*t._l12_2a)/u}t._context.bezierCurveTo(n,i,a,o,t._x2,t._y2)}function ap(t,e){this._context=t,this._alpha=e}ap.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t*=1,e*=1,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:ad(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};let ag=function t(e){function r(t){return e?new ap(t,e):new as(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);function am(t,e){this._context=t,this._alpha=e}am.prototype={areaStart:i3,areaEnd:i3,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){if(t*=1,e*=1,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:ad(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};let ay=function t(e){function r(t){return e?new am(t,e):new ac(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);function ab(t,e){this._context=t,this._alpha=e}ab.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t*=1,e*=1,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:ad(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};let ax=function t(e){function r(t){return e?new ab(t,e):new ah(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);function a_(t){this._context=t}function aw(t){return new a_(t)}function ak(t,e,r){var n=t._x1-t._x0,i=e-t._x1,a=(t._y1-t._y0)/(n||i<0&&-0),o=(r-t._y1)/(i||n<0&&-0);return((a<0?-1:1)+(o<0?-1:1))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs((a*i+o*n)/(n+i)))||0}function av(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function aA(t,e,r){var n=t._x0,i=t._y0,a=t._x1,o=t._y1,s=(a-n)/3;t._context.bezierCurveTo(n+s,i+s*e,a-s,o-s*r,a,o)}function aM(t){this._context=t}function aS(t){this._context=new aT(t)}function aT(t){this._context=t}function aC(t){return new aM(t)}function a$(t){return new aS(t)}function aO(t){this._context=t}function aL(t){var e,r,n=t.length-1,i=Array(n),a=Array(n),o=Array(n);for(i[0]=0,a[0]=2,o[0]=t[0]+2*t[1],e=1;e<n-1;++e)i[e]=1,a[e]=4,o[e]=4*t[e]+2*t[e+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*t[n-1]+t[n],e=1;e<n;++e)r=i[e]/a[e-1],a[e]-=r,o[e]-=r*o[e-1];for(i[n-1]=o[n-1]/a[n-1],e=n-2;e>=0;--e)i[e]=(o[e]-i[e+1])/a[e];for(e=0,a[n-1]=(t[n]+i[n-1])/2;e<n-1;++e)a[e]=2*t[e+1]-i[e+1];return[i,a]}function aE(t){return new aO(t)}function aR(t,e){this._context=t,this._t=e}function aK(t){return new aR(t,.5)}function aj(t){return new aR(t,0)}function aD(t){return new aR(t,1)}function aN(t,e,r){this.k=t,this.x=e,this.y=r}a_.prototype={areaStart:i3,areaEnd:i3,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t*=1,e*=1,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}},aM.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:aA(this,this._t0,av(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var r=NaN;if(e*=1,(t*=1)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,aA(this,av(this,r=ak(this,t,e)),r);break;default:aA(this,this._t0,r=ak(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}},(aS.prototype=Object.create(aM.prototype)).point=function(t,e){aM.prototype.point.call(this,e,t)},aT.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,r,n,i,a){this._context.bezierCurveTo(e,t,n,r,a,i)}},aO.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,r=t.length;if(r)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===r)this._context.lineTo(t[1],e[1]);else for(var n=aL(t),i=aL(e),a=0,o=1;o<r;++a,++o)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],t[o],e[o]);(this._line||0!==this._line&&1===r)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},aR.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}}this._x=t,this._y=e}},aN.prototype={constructor:aN,scale:function(t){return 1===t?this:new aN(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new aN(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};new aN(1,0,0);aN.prototype},35063:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=function(t,e,r,n){for(var i=t.length,a=r+(n?1:-1);n?a--:++a<i;)if(e(t[a],a,t))return a;return -1}},36988:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(57301),i=r(60395),a=r(78416),o=r(92459);let s=function(t,e){return((0,o.A)(t)?n.A:i.A)(t,(0,a.A)(e))}},37846:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(59847),i=(0,r(28171).A)(Object.keys,Object),a=Object.prototype.hasOwnProperty;let o=function(t){if(!(0,n.A)(t))return i(t);var e=[];for(var r in Object(t))a.call(t,r)&&"constructor"!=r&&e.push(r);return e}},38374:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(95749),i=r(77494);let a=function(t){return"symbol"==typeof t||(0,i.A)(t)&&"[object Symbol]"==(0,n.A)(t)}},38727:(t,e,r)=>{var n,i={initialize:function(){this._tasks=new Map},mutate:function(t,e){return a(this,"mutate",t,e)},measure:function(t,e){return a(this,"measure",t,e)},clear:function(t){var e=this._tasks,r=e.get(t);this.fastdom.clear(r),e.delete(t)}};function a(t,e,r,n){var i,a=t._tasks,o=t.fastdom,s=new Promise(function(t,l){i=o[e](function(){a.delete(s);try{t(n?r.call(n):r())}catch(t){l(t)}},n)});return a.set(s,i),s}void 0===(n=(function(){return i}).call(i,r,i,t))||(t.exports=n)},41185:(t,e,r)=>{"use strict";r.d(e,{XX:()=>p,q7:()=>g,sO:()=>d});var n=r(33604),i=r(78706),a=r(6741),o=r(60703),s=r(52691),l=r(31775),c=r(56037),u=r(89851),h={common:l.Y2,getConfig:l.zj,insertCluster:n.U,insertEdge:i.Jo,insertEdgeLabel:i.jP,insertMarkers:i.g0,insertNode:a.on,interpolateToCurve:s.Ib,labelHelper:o.Zk,log:c.R,positionEdgeLabel:i.T_},f={},d=(0,u.K)(t=>{for(let e of t)f[e.name]=e},"registerLayoutLoaders");(0,u.K)(()=>{d([{name:"dagre",loader:(0,u.K)(async()=>await Promise.all([r.e(2768),r.e(966)]).then(r.bind(r,20966)),"loader")},{name:"swimlane",loader:(0,u.K)(async()=>await Promise.all([r.e(1695),r.e(2619)]).then(r.bind(r,58070)),"loader")},{name:"cose-bilkent",loader:(0,u.K)(async()=>await Promise.all([r.e(8747),r.e(370)]).then(r.bind(r,50370)),"loader")}])},"registerDefaultLayoutLoaders")();var p=(0,u.K)(async(t,e)=>{if(!(t.layoutAlgorithm in f))throw Error(`Unknown layout algorithm: ${t.layoutAlgorithm}`);if(t.diagramId)for(let e of t.nodes){let r=e.domId||e.id;e.domId=`${t.diagramId}-${r}`}let r=f[t.layoutAlgorithm],n=await r.loader(),{theme:i,themeVariables:a}=t.config,{useGradient:o,gradientStart:s,gradientStop:l}=a,c=e.attr("id");if(e.append("defs").append("filter").attr("id",`${c}-drop-shadow`).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${i?.includes("dark")?"#FFFFFF":"#000000"}`),e.append("defs").append("filter").attr("id",`${c}-drop-shadow-small`).attr("height","150%").attr("width","150%").append("feDropShadow").attr("dx","2").attr("dy","2").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${i?.includes("dark")?"#FFFFFF":"#000000"}`),o){let t=e.append("linearGradient").attr("id",e.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");t.append("svg:stop").attr("offset","0%").attr("stop-color",s).attr("stop-opacity",1),t.append("svg:stop").attr("offset","100%").attr("stop-color",l).attr("stop-opacity",1)}return n.render(t,e,h,{algorithm:r.algorithm})},"render"),g=(0,u.K)((t="",{fallback:e="dagre"}={})=>{if(t in f)return t;if(e in f)return c.R.warn(`Layout algorithm ${t} is not registered. Using ${e} as fallback.`),e;throw Error(`Both layout algorithms ${t} and ${e} are not registered.`)},"getRegisteredLayoutAlgorithm")},41299:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(19396),i=r(77494);let a=function(t){return(0,i.A)(t)&&(0,n.A)(t)}},42112:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});let n={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:t=>t>=255?255:t<0?0:t,g:t=>t>=255?255:t<0?0:t,b:t=>t>=255?255:t<0?0:t,h:t=>t%360,s:t=>t>=100?100:t<0?0:t,l:t=>t>=100?100:t<0?0:t,a:t=>t>=1?1:t<0?0:t},toLinear:t=>{let e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:(t,e,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<1/6)?t+(e-t)*6*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t,hsl2rgb:({h:t,s:e,l:r},i)=>{if(!e)return 2.55*r;t/=360,e/=100;let a=(r/=100)<.5?r*(1+e):r+e-r*e,o=2*r-a;switch(i){case"r":return 255*n.hue2rgb(o,a,t+1/3);case"g":return 255*n.hue2rgb(o,a,t);case"b":return 255*n.hue2rgb(o,a,t-1/3)}},rgb2hsl:({r:t,g:e,b:r},n)=>{let i=Math.max(t/=255,e/=255,r/=255),a=Math.min(t,e,r),o=(i+a)/2;if("l"===n)return 100*o;if(i===a)return 0;let s=i-a;if("s"===n)return 100*(o>.5?s/(2-i-a):s/(i+a));switch(i){case t:return((e-r)/s+6*(e<r))*60;case e:return((r-t)/s+2)*60;case r:return((t-e)/s+4)*60;default:return -1}}},i={channel:n,lang:{clamp:(t,e,r)=>e>r?Math.min(e,Math.max(r,t)):Math.min(r,Math.max(e,t)),round:t=>Math.round(1e10*t)/1e10},unit:{dec2hex:t=>{let e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}}}},42410:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=function(t,e){for(var r=-1,n=null==t?0:t.length,i=0,a=[];++r<n;){var o=t[r];e(o,r,t)&&(a[i++]=o)}return a}},43328:(t,e,r)=>{"use strict";r.r(e),r.d(e,{clearLayoutRenderState:()=>i.n5,createCommonLayoutRenderer:()=>i.xY,default:()=>r5,defaultMeasureLayout:()=>i.QV,paintLayoutData:()=>i.nf});var n=r(9797),i=r(31595),a=r(27041),o=r(41185);r(33604),r(78706),r(6741),r(60703),r(10969),r(69123);var s=r(2401),l=r(52691),c=r(31775),u=r(56037),h=r(89851),f=r(90676),d=r(33948),p="comm",g="rule",m="decl",y="@keyframes",b="@layer",x=Math.abs,_=String.fromCharCode;function w(t,e,r){return t.replace(e,r)}function k(t,e){return 0|t.charCodeAt(e)}function v(t,e,r){return t.slice(e,r)}function A(t){return t.length}function M(t,e){return e.push(t),t}function S(t,e){for(var r="",n=0;n<t.length;n++)r+=e(t[n],n,t,e)||"";return r}function T(t,e,r,n){switch(t.type){case b:if(t.children.length)break;case"@import":case"@namespace":case m:return t.return=t.return||t.value;case p:return"";case y:return t.return=t.value+"{"+S(t.children,n)+"}";case g:if(!A(t.value=t.props.join(",")))return""}return A(r=S(t.children,n))?t.return=t.value+"{"+r+"}":""}var C=1,$=1,O=0,L=0,E=0,R="";function K(t,e,r,n,i,a,o,s){return{value:t,root:e,parent:r,type:n,props:i,children:a,line:C,column:$,length:o,return:"",siblings:s}}function j(){return E=L<O?k(R,L++):0,$++,10===E&&($=1,C++),E}function D(){return k(R,L)}function N(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function P(t){var e,r;return(e=L-1,r=function t(e){for(;j();)switch(E){case e:return L;case 34:case 39:34!==e&&39!==e&&t(E);break;case 40:41===e&&t(e);break;case 92:j()}return L}(91===t?t+2:40===t?t+1:t),v(R,e,r)).trim()}function I(t,e,r,n,i,a,o,s,l,c,u,h){for(var f=i-1,d=0===i?a:[""],p=d.length,m=0,y=0,b=0;m<n;++m)for(var _=0,k=v(t,f+1,f=x(y=o[m])),A=t;_<p;++_)(A=(y>0?d[_]+" "+k:w(k,/&\f/g,d[_])).trim())&&(l[b++]=A);return K(t,e,r,0===i?g:s,l,c,u,h)}function F(t,e,r,n,i){return K(t,e,r,m,v(t,0,n),v(t,n+1,-1),n,i)}var U=r(91992),z=r(87789),B=r(9101),Y=r(32174),H=r(95683);function q(t){if(null==t)return!0;if((0,B.X)(t))return("function"==typeof t.splice||"string"==typeof t||!!(0,z.P)(t)||!!(0,H.i)(t)||!!(0,Y.N)(t))&&0===t.length;if("object"==typeof t||"function"==typeof t){let e;if(t instanceof Map||t instanceof Set)return 0===t.size;let r=Object.keys(t);return(e=t?.constructor,t===("function"==typeof e?e.prototype:Object.prototype))?0===r.filter(t=>"constructor"!==t).length:0===r.length}return!0}var W={id:"c4",detector:(0,h.K)(t=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t),"detector"),loader:(0,h.K)(async()=>{let{diagram:t}=await r.e(1974).then(r.bind(r,71974));return{id:"c4",diagram:t}},"loader")},X="flowchart",G=(0,h.K)((t,e)=>e?.flowchart?.defaultRenderer!=="dagre-wrapper"&&e?.flowchart?.defaultRenderer!=="elk"&&/^\s*graph/.test(t),"detector"),Z=(0,h.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3022),r.e(7997)]).then(r.bind(r,47997));return{id:X,diagram:t}},"loader"),V={id:X,detector:G,loader:Z},Q="flowchart-v2",J=(0,h.K)((t,e)=>e?.flowchart?.defaultRenderer!=="dagre-d3"&&(e?.flowchart?.defaultRenderer==="elk"&&(e.layout="elk"),!!/^\s*graph/.test(t)&&e?.flowchart?.defaultRenderer==="dagre-wrapper"||/^\s*flowchart/.test(t)),"detector"),tt=(0,h.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3022),r.e(7997)]).then(r.bind(r,47997));return{id:Q,diagram:t}},"loader"),te={id:Q,detector:J,loader:tt},tr="swimlane",tn=(0,h.K)(t=>/^\s*swimlane-beta\b/.test(t),"detector"),ti=(0,h.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3022),r.e(7113)]).then(r.bind(r,47113));return{id:tr,diagram:t}},"loader"),ta={id:tr,detector:tn,loader:ti},to={id:"er",detector:(0,h.K)(t=>/^\s*erDiagram/.test(t),"detector"),loader:(0,h.K)(async()=>{let{diagram:t}=await r.e(9472).then(r.bind(r,49472));return{id:"er",diagram:t}},"loader")},ts="gitGraph",tl=(0,h.K)(t=>/^\s*gitGraph/.test(t),"detector"),tc=(0,h.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3265),r.e(8863),r.e(5949)]).then(r.bind(r,15949));return{id:ts,diagram:t}},"loader"),tu={id:ts,detector:tl,loader:tc},th="gantt",tf=(0,h.K)(t=>/^\s*gantt/.test(t),"detector"),td=(0,h.K)(async()=>{let{diagram:t}=await r.e(4208).then(r.bind(r,14208));return{id:th,diagram:t}},"loader"),tp={id:th,detector:tf,loader:td},tg="info",tm=(0,h.K)(t=>/^\s*info/.test(t),"detector"),ty=(0,h.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3265),r.e(8863),r.e(514)]).then(r.bind(r,60514));return{id:tg,diagram:t}},"loader"),tb={id:tg,detector:tm,loader:ty},tx={id:"pie",detector:(0,h.K)(t=>/^\s*pie/.test(t),"detector"),loader:(0,h.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3265),r.e(8863),r.e(5448)]).then(r.bind(r,95448));return{id:"pie",diagram:t}},"loader")},t_="quadrantChart",tw=(0,h.K)(t=>/^\s*quadrantChart/.test(t),"detector"),tk=(0,h.K)(async()=>{let{diagram:t}=await r.e(5270).then(r.bind(r,85270));return{id:t_,diagram:t}},"loader"),tv={id:t_,detector:tw,loader:tk},tA="xychart",tM=(0,h.K)(t=>/^\s*xychart(-beta)?/.test(t),"detector"),tS=(0,h.K)(async()=>{let{diagram:t}=await r.e(4799).then(r.bind(r,44799));return{id:tA,diagram:t}},"loader"),tT={id:tA,detector:tM,loader:tS},tC="requirement",t$=(0,h.K)(t=>/^\s*requirement(Diagram)?/.test(t),"detector"),tO=(0,h.K)(async()=>{let{diagram:t}=await r.e(8501).then(r.bind(r,38501));return{id:tC,diagram:t}},"loader"),tL={id:tC,detector:t$,loader:tO},tE="sequence",tR=(0,h.K)(t=>/^\s*sequenceDiagram/.test(t),"detector"),tK=(0,h.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3447),r.e(4035)]).then(r.bind(r,51901));return{id:tE,diagram:t}},"loader"),tj={id:tE,detector:tR,loader:tK},tD="class",tN=(0,h.K)((t,e)=>e?.class?.defaultRenderer!=="dagre-wrapper"&&/^\s*classDiagram/.test(t),"detector"),tP=(0,h.K)(async()=>{let{diagram:t}=await Promise.all([r.e(405),r.e(830)]).then(r.bind(r,830));return{id:tD,diagram:t}},"loader"),tI={id:tD,detector:tN,loader:tP},tF="classDiagram",tU=(0,h.K)((t,e)=>!!/^\s*classDiagram/.test(t)&&e?.class?.defaultRenderer==="dagre-wrapper"||/^\s*classDiagram-v2/.test(t),"detector"),tz=(0,h.K)(async()=>{let{diagram:t}=await Promise.all([r.e(405),r.e(2280)]).then(r.bind(r,42280));return{id:tF,diagram:t}},"loader"),tB={id:tF,detector:tU,loader:tz},tY="state",tH=(0,h.K)((t,e)=>e?.state?.defaultRenderer!=="dagre-wrapper"&&/^\s*stateDiagram/.test(t),"detector"),tq=(0,h.K)(async()=>{let{diagram:t}=await Promise.all([r.e(2768),r.e(8378),r.e(7390)]).then(r.bind(r,67390));return{id:tY,diagram:t}},"loader"),tW={id:tY,detector:tH,loader:tq},tX="stateDiagram",tG=(0,h.K)((t,e)=>!!(/^\s*stateDiagram-v2/.test(t)||/^\s*stateDiagram/.test(t)&&e?.state?.defaultRenderer==="dagre-wrapper"),"detector"),tZ=(0,h.K)(async()=>{let{diagram:t}=await Promise.all([r.e(8378),r.e(2589)]).then(r.bind(r,52589));return{id:tX,diagram:t}},"loader"),tV={id:tX,detector:tG,loader:tZ},tQ="journey",tJ=(0,h.K)(t=>/^\s*journey/.test(t),"detector"),t0=(0,h.K)(async()=>{let{diagram:t}=await r.e(6361).then(r.bind(r,56361));return{id:tQ,diagram:t}},"loader"),t1={id:tQ,detector:tJ,loader:t0},t2={draw:(0,h.K)((t,e,r)=>{u.R.debug("rendering svg for syntax error\n");let i=(0,n.D)(e),a=i.append("g");i.attr("viewBox","0 0 2412 512"),(0,c.a$)(i,100,512,!0),a.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),a.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),a.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),a.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),a.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),a.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),a.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),a.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${r}`)},"draw")},t3={db:{},renderer:t2,parser:{parse:(0,h.K)(()=>{},"parse")}},t5="flowchart-elk",t6=(0,h.K)((t,e={})=>!!(/^\s*flowchart-elk/.test(t)||/^\s*(flowchart|graph)/.test(t)&&e?.flowchart?.defaultRenderer==="elk")&&(e.layout="elk",!0),"detector"),t8=(0,h.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3022),r.e(7997)]).then(r.bind(r,47997));return{id:t5,diagram:t}},"loader"),t4={id:t5,detector:t6,loader:t8},t9="timeline",t7=(0,h.K)(t=>/^\s*timeline/.test(t),"detector"),et=(0,h.K)(async()=>{let{diagram:t}=await r.e(5909).then(r.bind(r,5909));return{id:t9,diagram:t}},"loader"),ee={id:t9,detector:t7,loader:et},er="mindmap",en=(0,h.K)(t=>/^\s*mindmap/.test(t),"detector"),ei=(0,h.K)(async()=>{let{diagram:t}=await r.e(395).then(r.bind(r,40395));return{id:er,diagram:t}},"loader"),ea={id:er,detector:en,loader:ei},eo="kanban",es=(0,h.K)(t=>/^\s*kanban/.test(t),"detector"),el=(0,h.K)(async()=>{let{diagram:t}=await r.e(4592).then(r.bind(r,54592));return{id:eo,diagram:t}},"loader"),ec={id:eo,detector:es,loader:el},eu="sankey",eh=(0,h.K)(t=>/^\s*sankey(-beta)?/.test(t),"detector"),ef=(0,h.K)(async()=>{let{diagram:t}=await r.e(4561).then(r.bind(r,44561));return{id:eu,diagram:t}},"loader"),ed={id:eu,detector:eh,loader:ef},ep="packet",eg=(0,h.K)(t=>/^\s*packet(-beta)?/.test(t),"detector"),em=(0,h.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3265),r.e(8863),r.e(3217)]).then(r.bind(r,83217));return{id:ep,diagram:t}},"loader"),ey={id:ep,detector:eg,loader:em},eb="radar",ex=(0,h.K)(t=>/^\s*radar-beta/.test(t),"detector"),e_=(0,h.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3265),r.e(8863),r.e(2931)]).then(r.bind(r,32931));return{id:eb,diagram:t}},"loader"),ew={id:eb,detector:ex,loader:e_},ek="block",ev=(0,h.K)(t=>/^\s*block(-beta)?/.test(t),"detector"),eA=(0,h.K)(async()=>{let{diagram:t}=await r.e(4159).then(r.bind(r,14159));return{id:ek,diagram:t}},"loader"),eM={id:ek,detector:ev,loader:eA},eS="treeView",eT=(0,h.K)(t=>/^\s*treeView-beta/.test(t),"detector"),eC=(0,h.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3265),r.e(8863),r.e(8663)]).then(r.bind(r,28663));return{id:eS,diagram:t}},"loader"),e$={id:eS,detector:eT,loader:eC},eO="architecture",eL=(0,h.K)(t=>/^\s*architecture/.test(t),"detector"),eE=(0,h.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3265),r.e(8747),r.e(8863),r.e(9884)]).then(r.bind(r,49884));return{id:eO,diagram:t}},"loader"),eR={id:eO,detector:eL,loader:eE},eK="eventmodeling",ej=(0,h.K)(t=>/^\s*eventmodeling/.test(t),"detector"),eD=(0,h.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3265),r.e(8863),r.e(7806)]).then(r.bind(r,57806));return{id:eK,diagram:t}},"loader"),eN={id:eK,detector:ej,loader:eD},eP="ishikawa",eI=(0,h.K)(t=>/^\s*ishikawa(-beta)?\b/i.test(t),"detector"),eF=(0,h.K)(async()=>{let{diagram:t}=await r.e(9379).then(r.bind(r,59379));return{id:eP,diagram:t}},"loader"),eU={id:eP,detector:eI,loader:eF},ez="venn",eB=(0,h.K)(t=>/^\s*venn-beta/.test(t),"detector"),eY=(0,h.K)(async()=>{let{diagram:t}=await r.e(4020).then(r.bind(r,4020));return{id:ez,diagram:t}},"loader"),eH={id:ez,detector:eB,loader:eY},eq="treemap",eW=(0,h.K)(t=>/^\s*treemap/.test(t),"detector"),eX=(0,h.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3265),r.e(8863),r.e(1213)]).then(r.bind(r,11213));return{id:eq,diagram:t}},"loader"),eG={id:eq,detector:eW,loader:eX},eZ="wardley",eV=(0,h.K)(t=>/^\s*wardley-beta/i.test(t),"detector"),eQ=(0,h.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3265),r.e(8863),r.e(2521)]).then(r.bind(r,12521));return{id:eZ,diagram:t}},"loader"),eJ={id:eZ,detector:eV,loader:eQ},e0="cynefin",e1=(0,h.K)(t=>/^\s*cynefin-beta(?:[\s:]|$)/.test(t),"detector"),e2=(0,h.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3265),r.e(8863),r.e(1519)]).then(r.bind(r,71519));return{id:e0,diagram:t}},"loader"),e3={id:e0,detector:e1,loader:e2},e5="railroad",e6=(0,h.K)(t=>/^\s*railroad-beta/i.test(t),"detector"),e8=(0,h.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3265),r.e(8863),r.e(6774),r.e(6968)]).then(r.bind(r,26968));return{id:e5,diagram:t}},"loader"),e4={id:e5,detector:e6,loader:e8},e9="railroadEbnf",e7=(0,h.K)(t=>/^\s*railroad-ebnf-beta/i.test(t),"detector"),rt=(0,h.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3265),r.e(8863),r.e(6774),r.e(3174)]).then(r.bind(r,73174));return{id:e9,diagram:t}},"loader"),re={id:e9,detector:e7,loader:rt},rr="railroadAbnf",rn=(0,h.K)(t=>/^\s*railroad-abnf-beta/i.test(t),"detector"),ri=(0,h.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3265),r.e(8863),r.e(6774),r.e(872)]).then(r.bind(r,80872));return{id:rr,diagram:t}},"loader"),ra={id:rr,detector:rn,loader:ri},ro="railroadPeg",rs=(0,h.K)(t=>/^\s*railroad-peg-beta/i.test(t),"detector"),rl=(0,h.K)(async()=>{let{diagram:t}=await Promise.all([r.e(3265),r.e(8863),r.e(6774),r.e(7236)]).then(r.bind(r,57236));return{id:ro,diagram:t}},"loader"),rc={id:ro,detector:rs,loader:rl},ru=!1,rh=(0,h.K)(()=>{ru||(ru=!0,(0,c.Js)("error",t3,t=>"error"===t.toLowerCase().trim()),(0,c.Js)("---",{db:{clear:(0,h.K)(()=>{},"clear")},styles:{},renderer:{draw:(0,h.K)(()=>{},"draw")},parser:{parse:(0,h.K)(()=>{throw Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},"parse")},init:(0,h.K)(()=>null,"init")},t=>t.toLowerCase().trimStart().startsWith("---")),(0,c.Xd)(t4,ea,eR),(0,c.Xd)(W,ec,tB,tI,to,tp,tb,tx,tL,tj,ta,te,V,ee,tu,tV,tW,t1,tv,ed,ey,tT,eM,eN,e$,ew,eU,eG,e4,re,ra,rc,eH,eJ,e3))},"addDiagrams"),rf=(0,h.K)(async()=>{u.R.debug("Loading registered diagrams");let t=(await Promise.allSettled(Object.entries(c.mW).map(async([t,{detector:e,loader:r}])=>{if(r)try{(0,c.Gs)(t)}catch{try{let{diagram:t,id:n}=await r();(0,c.Js)(n,t,e)}catch(e){throw u.R.error(`Failed to load external diagram with key ${t}. Removing from detectors.`),delete c.mW[t],e}}}))).filter(t=>"rejected"===t.status);if(t.length>0){for(let e of(u.R.error(`Failed to load ${t.length} external diagrams`),t))u.R.error(e);throw Error(`Failed to load ${t.length} external diagrams`)}},"loadRegisteredDiagrams");function rd(t,e){t.attr("role","graphics-document document"),""!==e&&t.attr("aria-roledescription",e)}function rp(t,e,r,n){if(void 0!==t.insert){if(r){let e=`chart-desc-${n}`;t.attr("aria-describedby",e),t.insert("desc",":first-child").attr("id",e).text(r)}if(e){let r=`chart-title-${n}`;t.attr("aria-labelledby",r),t.insert("title",":first-child").attr("id",r).text(e)}}}(0,h.K)(rd,"setA11yDiagramInfo"),(0,h.K)(rp,"addSVGa11yTitleDescription");var rg=class t{constructor(t,e,r,n,i){this.type=t,this.text=e,this.db=r,this.parser=n,this.renderer=i}static{(0,h.K)(this,"Diagram")}static async fromText(e,r={}){let n=(0,c.zj)(),i=(0,c.Ch)(e,n);e=(0,l.C4)(e)+"\n";try{(0,c.Gs)(i)}catch{let t=(0,c.J$)(i);if(!t)throw new c.C0(`Diagram ${i} not found.`);let{id:e,diagram:r}=await t();(0,c.Js)(e,r)}let{db:a,parser:o,renderer:s,init:u}=(0,c.Gs)(i);return o.parser&&(o.parser.yy=a),a.clear?.(),u?.(n),r.title&&a.setDiagramTitle?.(r.title),await o.parse(e),new t(i,e,a,o,s)}async render(t,e){await this.renderer.draw(this.text,t,e,this)}getParser(){return this.parser}getType(){return this.type}},rm=[],ry=(0,h.K)(()=>{rm.forEach(t=>{t()}),rm=[]},"attachFunctions"),rb=(0,h.K)(t=>t.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function rx(t){let e=t.match(c.EJ);if(!e)return{text:t,metadata:{}};let r=e[1],n=r?e[2].split("\n").map(t=>t.startsWith(r)?t.slice(r.length):t).join("\n"):e[2],i=(0,a.H)(n,{schema:a.r})??{};i="object"!=typeof i||Array.isArray(i)?{}:i;let o={};return i.displayMode&&(o.displayMode=i.displayMode.toString()),i.title&&(o.title=i.title.toString()),i.config&&(o.config=i.config),{text:t.slice(e[0].length),metadata:o}}(0,h.K)(rx,"extractFrontMatter");var r_=(0,h.K)(t=>t.replace(/\r\n?/g,"\n").replace(/<(\w+)([^>]*)>/g,(t,e,r)=>"<"+e+r.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),rw=(0,h.K)(t=>{let{text:e,metadata:r}=rx(t),{displayMode:n,title:i,config:a={}}=r;return n&&(a.gantt||(a.gantt={}),a.gantt.displayMode=n),{title:i,config:a,text:e}},"processFrontmatter"),rk=(0,h.K)(t=>{let e=l._K.detectInit(t)??{},r=l._K.detectDirective(t,"wrap");return Array.isArray(r)?e.wrap=r.some(({type:t})=>"wrap"===t):r?.type==="wrap"&&(e.wrap=!0),{text:(0,l.vU)(t),directive:e}},"processDirectives");function rv(t){let e=rw(r_(t)),r=rk(e.text),n=(0,l.$t)(e.config,r.directive);return{code:t=rb(r.text),title:e.title,config:n}}function rA(t){return btoa(Array.from(new TextEncoder().encode(t),t=>String.fromCodePoint(t)).join(""))}(0,h.K)(rv,"preprocessDiagram"),(0,h.K)(rA,"toBase64");var rM=["foreignobject"],rS=["dominant-baseline"];function rT(t){let e=rv(t);return(0,c.cL)(),(0,c.xA)(e.config??{}),e}async function rC(t,e){rh();try{let{code:e,config:r}=rT(t);return{diagramType:(await rF(e)).type,config:r}}catch(t){if(e?.suppressErrors)return!1;throw t}}(0,h.K)(rT,"processAndSetConfigs"),(0,h.K)(rC,"parse");var r$=(0,h.K)((t,e,r=[])=>{let n=(0,c.Df)(`{ ${r.join(" !important; ")} !important; }`);return`.${t} ${e} ${n}`},"cssImportantStyles"),rO=(0,h.K)((t,e=new Map)=>{let r=new CSSStyleSheet;if(void 0!==t.fontFamily&&r.insertRule(`:root { --mermaid-font-family: ${t.fontFamily}}`,r.cssRules.length),void 0!==t.altFontFamily&&r.insertRule(`:root { --mermaid-alt-font-family: ${t.altFontFamily}}`,r.cssRules.length),e instanceof Map){let n=(0,c.E)(t)?["> *","span"]:["rect","polygon","ellipse","circle","path"];e.forEach(t=>{q(t.styles)||n.forEach(e=>{r.insertRule(r$(t.id,e,t.styles),r.cssRules.length)}),q(t.textStyles)||r.insertRule(r$(t.id,"tspan",(t?.textStyles||[]).map(t=>t.replace("color","fill"))),r.cssRules.length)})}let n="";if(void 0!==t.themeCSS)if("function"==typeof r.replaceSync){let e=new CSSStyleSheet;e.replaceSync(t.themeCSS),n=(0,c.KG)(e)+"\n"}else n+=`${t.themeCSS}
2
+ `;return n+(0,c.KG)(r)},"createCssStyles"),rL=(0,h.K)((t,e)=>{var r,n,i,a,o;return S((i=function t(e,r,n,i,a,o,s,l,c){for(var u,h,f,d,g=0,m=0,y=s,b=0,x=0,S=0,T=1,O=1,U=1,z=0,B=0,Y="",H=a,q=o,W=i,X=Y;O;)switch(S=B,B=j()){case 40:108!=S&&58==k(X,y-1)?(z++,X+="("):X+=P(B);break;case 41:z--,X+=")";break;case 34:case 39:case 91:X+=P(B);break;case 9:case 10:case 13:case 32:if(z>0){X+=_(B);break}X+=function(t){for(;E=D();)if(E<33)j();else break;return N(t)>2||N(E)>3?"":" "}(S);break;case 92:X+=function(t,e){for(var r;--e&&j()&&!(E<48)&&!(E>102)&&(!(E>57)||!(E<65))&&(!(E>70)||!(E<97)););return r=L+(e<6&&32==D()&&32==j()),v(R,t,r)}(L-1,7);continue;case 47:switch(D()){case 42:case 47:M((u=function(t,e){for(;j();)if(t+E===57)break;else if(t+E===84&&47===D())break;return"/*"+v(R,e,L-1)+"*"+_(47===t?t:j())}(j(),L),h=r,f=n,d=c,K(u,h,f,p,_(E),v(u,2,-2),0,d)),c),(5==N(S||1)||5==N(D()||1))&&A(X)&&" "!==v(X,-1,void 0)&&(X+=" ");break;default:X+="/"}break;case 123*T:l[g++]=A(X)*U;case 125*T:case 59:case 0:if(z>0&&B){X+=_(B);break}switch(B){case 0:case 125:O=0;case 59+m:-1==U&&(X=w(X,/\f/g,"")),x>0&&(A(X)-y||0===T)&&M(x>32?F(X+";",i,n,y-1,c):F(w(X," ","")+";",i,n,y-2,c),c);break;case 59:X+=";";default:if(M(W=I(X,r,n,g,m,a,l,Y,H=[],q=[],y,o),o),123===B)if(0===m)t(X,r,W,W,H,o,y,l,q);else{switch(b){case 99:if(110===k(X,3))break;case 108:if(97===k(X,2))break;default:m=0;case 100:case 109:case 115:}m?t(e,W,W,i&&M(I(e,W,W,0,0,a,l,Y,a,H=[],y,q),q),a,q,y,l,i?H:q):t(X,W,W,W,[""],q,0,l,q)}}g=m=x=0,T=U=1,Y=X="",y=s;break;case 58:y=1+A(X),x=S;default:if(T<1){if(123==B)--T;else if(125==B&&0==T++&&125==(E=L>0?k(R,--L):0,$--,10===E&&($=1,C--),E))continue}switch(X+=_(B),B*T){case 38:U=m>0?1:(X+="\f",-1);break;case 44:if(z>0)break;l[g++]=(A(X)-1)*U,U=1;break;case 64:45===D()&&(X+=P(j())),b=D(),m=y=A(Y=X+=function(t){for(;!N(D());)j();return v(R,t,L)}(L)),B++;break;case 45:45===S&&2==A(X)&&(T=0)}}return o}("",null,null,null,[""],(n=r=`${t}{${e}}`,C=$=1,O=A(R=n),L=0,r=[]),0,[0],r),R="",i),(o=(a=[(0,h.K)(function(e,r,n,i){"rule"===e.type&&Array.isArray(e.props)?e.parent&&e.parent.type===y||(e.props=e.props.map(r=>r===t&&Array.isArray(e.children)&&e.children.every(t=>"decl"===t.type&&new Set(["font-family","font-size","fill"]).has(t.props))||(r.startsWith(`${t} `)||r.startsWith(`${t}>`))&&!r.startsWith(`${t} ||`)?r:`${t} ${r}`)):e.type.startsWith("@")&&(["@media","@supports",b,"@scope","@container","@starting-style",y].includes(e.type)||(u.R.warn(`Removing unsupported at-rule ${e.type} from CSS`),e.type=p))},"addNamespace"),T]).length,function(t,e,r,n){for(var i="",s=0;s<o;s++)i+=a[s](t,e,r,n)||"";return i}))},"compileCSS"),rE=(0,h.K)((t,e,r,n)=>{let i=rO(t,r),a=(0,c.tM)(e,i,{...t.themeVariables,theme:t.theme,look:t.look},n);return rL(n,a)},"createUserStyles"),rR=(0,h.K)((t="",e,r)=>{let n=t;return r||e||(n=n.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),n=(n=(0,l.Sm)(n)).replace(/<br>/g,"<br/>")},"cleanUpSvgCode"),rK=(0,h.K)((t="",e)=>{let r=e?.viewBox?.baseVal?.height?e.viewBox.baseVal.height+"px":"100%",n=rA(`<body style="margin:0">${t}</body>`);return`<iframe style="width:100%;height:${r};border:0;margin:0;" src="data:text/html;charset=UTF-8;base64,${n}" sandbox="allow-top-navigation-by-user-activation allow-popups">
3
+ The "iframe" tag is not supported by your browser.
4
+ </iframe>`},"putIntoIFrame"),rj=(0,h.K)((t,e,r,n,i)=>{let a=t.append("div");a.attr("id",r),n&&a.attr("style",n);let o=a.append("svg").attr("id",e).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg");return i&&o.attr("xmlns:xlink",i),o.append("g"),t},"appendDivSvgG");function rD(t,e){return t.append("iframe").attr("id",e).attr("style","width: 100%; height: 100%;").attr("sandbox","")}(0,h.K)(rD,"sandboxedIframe");var rN=(0,h.K)((t,e,r,n)=>{t.getElementById(e)?.remove(),t.getElementById(r)?.remove(),t.getElementById(n)?.remove()},"removeExistingElements"),rP=(0,h.K)(async function(t,e,r){let n,i;rh();let a=rT(e);e=a.code;let o=(0,c.zj)();u.R.debug(o),e.length>(o?.maxTextSize??5e4)&&(e="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa");let s=`#${t}`,l="i"+t,f="#"+l,p="d"+t,g="#"+p,m=(0,h.K)(()=>{let t=b?f:g,e=(0,d.Ltv)(t).node();e&&"remove"in e&&e.remove()},"removeTempElements"),y=(0,d.Ltv)(document.body),b="sandbox"===o.securityLevel,x="loose"===o.securityLevel,_=o.fontFamily;if(void 0!==r){if(r&&(r.innerHTML=""),b){let t=rD((0,d.Ltv)(r),l);(y=(0,d.Ltv)(t.nodes()[0].contentDocument.body)).node().style.margin="0"}else y=(0,d.Ltv)(r);rj(y,t,p,`font-family: ${_}`,"http://www.w3.org/1999/xlink")}else{if(rN(document,t,p,l),b){let t=rD((0,d.Ltv)(document.body),l);(y=(0,d.Ltv)(t.nodes()[0].contentDocument.body)).node().style.margin="0"}else y=(0,d.Ltv)("body");rj(y,t,p)}try{n=await rg.fromText(e,{title:a.title})}catch(t){if(o.suppressErrorRendering)throw m(),t;n=await rg.fromText("error"),i=t}let w=y.select(g).node(),k=n.type,v=w.firstChild,A=v.firstChild,M=rE(o,k,n.renderer.getClasses?.(e,n),s),S=document.createElement("style");S.innerHTML=M,v.insertBefore(S,A);try{await n.renderer.draw(e,t,"11.17.2",n)}catch(r){throw o.suppressErrorRendering?m():t2.draw(e,t,"11.17.2"),r}rU(k,y.select(`${g} svg`),n.db.getAccTitle?.(),n.db.getAccDescription?.());let T=(0,h.K)(()=>{y.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns","http://www.w3.org/1999/xhtml");let e=y.select(g).node().innerHTML;return u.R.debug("config.arrowMarkerAbsolute",o.arrowMarkerAbsolute),e=rR(e,b,(0,c._3)(o.arrowMarkerAbsolute)),b?e=rK(e,y.select(g+" svg").node()):x||(e=U.A.sanitize(e,{ADD_TAGS:rM,ADD_ATTR:rS,HTML_INTEGRATION_POINTS:{foreignobject:!0}})),ry(),e},"serializeSvg")();if(i)throw i;return m(),{diagramType:k,svg:T,bindFunctions:n.db.bindFunctions}},"render");function rI(t={}){let e=(0,c.hH)({},t);e?.fontFamily&&!e.themeVariables?.fontFamily&&(e.themeVariables||(e.themeVariables={}),e.themeVariables.fontFamily=e.fontFamily),(0,c.wZ)(e),e?.theme&&e.theme in c.H$?e.themeVariables=c.H$[e.theme].getThemeVariables(e.themeVariables):e&&(e.themeVariables=c.H$.default.getThemeVariables(e.themeVariables));let r="object"==typeof e?(0,c.UU)(e):(0,c.Q2)();(0,u.H)(r.logLevel),rh()}(0,h.K)(rI,"initialize");var rF=(0,h.K)((t,e={})=>{let{code:r}=rv(t);return rg.fromText(r,e)},"getDiagramFromText");function rU(t,e,r,n){rd(e,t),rp(e,r,n,e.attr("id"))}(0,h.K)(rU,"addA11yInfo");var rz=Object.freeze({render:rP,parse:rC,getDiagramFromText:rF,initialize:rI,getConfig:c.zj,setConfig:c.Nk,getSiteConfig:c.Q2,updateSiteConfig:c.B6,reset:(0,h.K)(()=>{(0,c.cL)()},"reset"),globalReset:(0,h.K)(()=>{(0,c.cL)(c.sb)},"globalReset"),defaultConfig:c.sb});(0,u.H)((0,c.zj)().logLevel),(0,c.cL)((0,c.zj)());var rB=(0,h.K)((t,e,r)=>{u.R.warn(t),(0,l.dq)(t)?(r&&r(t.str,t.hash),e.push({...t,message:t.str,error:t})):(r&&r(t),t instanceof Error&&e.push({str:t.message,message:t.message,hash:t.name,error:t}))},"handleError"),rY=(0,h.K)(async function(t={querySelector:".mermaid"}){try{await rH(t)}catch(e){if((0,l.dq)(e)&&u.R.error(e.str),r3.parseError&&r3.parseError(e),!t.suppressErrors)throw u.R.error("Use the suppressErrors option to suppress these errors"),e}},"run"),rH=(0,h.K)(async function({postRenderCallback:t,querySelector:e,nodes:r}={querySelector:".mermaid"}){let n,i,a=rz.getConfig();if(u.R.debug(`${!t?"No ":""}Callback function found`),r)n=r;else if(e)n=document.querySelectorAll(e);else throw Error("Nodes and querySelector are both undefined");u.R.debug(`Found ${n.length} diagrams`),a?.startOnLoad!==void 0&&(u.R.debug("Start On Load: "+a?.startOnLoad),rz.updateSiteConfig({startOnLoad:a?.startOnLoad}));let o=new l._K.InitIDGenerator(a.deterministicIds,a.deterministicIDSeed),s=[];for(let e of Array.from(n)){if(u.R.info("Rendering diagram: "+e.id),e.getAttribute("data-processed"))continue;e.setAttribute("data-processed","true");let r=`mermaid-${o.next()}`;i=e.innerHTML,i=(0,f.T)(l._K.entityDecode(i)).trim().replace(/<br\s*\/?>/gi,"<br/>");let n=l._K.detectInit(i);n&&u.R.debug("Detected early reinit: ",n);try{let{svg:n,bindFunctions:a}=await r1(r,i,e);e.innerHTML=n,t&&await t(r),a&&a(e)}catch(t){rB(t,s,r3.parseError)}}if(s.length>0)throw s[0]},"runThrowsErrors"),rq=(0,h.K)(function(t){rz.initialize(t)},"initialize"),rW=(0,h.K)(async function(t,e,r){u.R.warn("mermaid.init is deprecated. Please use run instead."),t&&rq(t);let n={postRenderCallback:r,querySelector:".mermaid"};"string"==typeof e?n.querySelector=e:e&&(e instanceof HTMLElement?n.nodes=[e]:n.nodes=e),await rY(n)},"init"),rX=(0,h.K)(async(t,{lazyLoad:e=!0}={})=>{rh(),(0,c.Xd)(...t),!1===e&&await rf()},"registerExternalDiagrams"),rG=(0,h.K)(function(){if(r3.startOnLoad){let{startOnLoad:t}=rz.getConfig();t&&r3.run().catch(t=>u.R.error("Mermaid failed to initialize",t))}},"contentLoaded");"u">typeof document&&window.addEventListener("load",rG,!1);var rZ=(0,h.K)(function(t){r3.parseError=t},"setParseErrorHandler"),rV=[],rQ=!1,rJ=(0,h.K)(async()=>{if(!rQ){for(rQ=!0;rV.length>0;){let t=rV.shift();if(t)try{await t()}catch(t){u.R.error("Error executing queue",t)}}rQ=!1}},"executeQueue"),r0=(0,h.K)(async(t,e)=>new Promise((r,n)=>{let i=(0,h.K)(()=>new Promise((i,a)=>{rz.parse(t,e).then(t=>{i(t),r(t)},t=>{u.R.error("Error parsing",t),r3.parseError?.(t),a(t),n(t)})}),"performCall");rV.push(i),rJ().catch(n)}),"parse"),r1=(0,h.K)((t,e,r)=>new Promise((n,i)=>{let a=(0,h.K)(()=>new Promise((a,o)=>{rz.render(t,e,r).then(t=>{a(t),n(t)},t=>{u.R.error("Error parsing",t),r3.parseError?.(t),o(t),i(t)})}),"performCall");rV.push(a),rJ().catch(i)}),"render"),r2=(0,h.K)(()=>Object.keys(c.mW).map(t=>({id:t})),"getRegisteredDiagramsMetadata"),r3={startOnLoad:!0,mermaidAPI:rz,parse:r0,render:r1,init:rW,run:rY,registerExternalDiagrams:rX,registerLayoutLoaders:o.sO,initialize:rq,parseError:void 0,contentLoaded:rG,setParseErrorHandler:rZ,detectType:c.Ch,registerIconPacks:s.pC,getRegisteredDiagramsMetadata:r2},r5=r3},47239:(t,e,r)=>{"use strict";r.d(e,{A:()=>H});var n=r(1105),i=r(86953);let a=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1};var o=r(66485);let s=function(t,e,r,n,s,l){var c=1&r,u=t.length,h=e.length;if(u!=h&&!(c&&h>u))return!1;var f=l.get(t),d=l.get(e);if(f&&d)return f==e&&d==t;var p=-1,g=!0,m=2&r?new i.A:void 0;for(l.set(t,e),l.set(e,t);++p<u;){var y=t[p],b=e[p];if(n)var x=c?n(b,y,p,e,t,l):n(y,b,p,t,e,l);if(void 0!==x){if(x)continue;g=!1;break}if(m){if(!a(e,function(t,e){if(!(0,o.A)(m,e)&&(y===t||s(y,t,r,n,l)))return m.push(e)})){g=!1;break}}else if(!(y===b||s(y,b,r,n,l))){g=!1;break}}return l.delete(t),l.delete(e),g};var l=r(29703),c=r(15914),u=r(29568);let h=function(t){var e=-1,r=Array(t.size);return t.forEach(function(t,n){r[++e]=[n,t]}),r};var f=r(93881),d=l.A?l.A.prototype:void 0,p=d?d.valueOf:void 0;let g=function(t,e,r,n,i,a,o){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)break;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":if(t.byteLength!=e.byteLength||!a(new c.A(t),new c.A(e)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return(0,u.A)(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var l=h;case"[object Set]":var d=1&n;if(l||(l=f.A),t.size!=e.size&&!d)break;var g=o.get(t);if(g)return g==e;n|=2,o.set(t,e);var m=s(l(t),l(e),n,i,a,o);return o.delete(t),m;case"[object Symbol]":if(p)return p.call(t)==p.call(e)}return!1};var m=r(22748),y=Object.prototype.hasOwnProperty;let b=function(t,e,r,n,i,a){var o=1&r,s=(0,m.A)(t),l=s.length;if(l!=(0,m.A)(e).length&&!o)return!1;for(var c=l;c--;){var u=s[c];if(!(o?u in e:y.call(e,u)))return!1}var h=a.get(t),f=a.get(e);if(h&&f)return h==e&&f==t;var d=!0;a.set(t,e),a.set(e,t);for(var p=o;++c<l;){var g=t[u=s[c]],b=e[u];if(n)var x=o?n(b,g,u,e,t,a):n(g,b,u,t,e,a);if(!(void 0===x?g===b||i(g,b,r,n,a):x)){d=!1;break}p||(p="constructor"==u)}if(d&&!p){var _=t.constructor,w=e.constructor;_!=w&&"constructor"in t&&"constructor"in e&&!("function"==typeof _&&_ instanceof _&&"function"==typeof w&&w instanceof w)&&(d=!1)}return a.delete(t),a.delete(e),d};var x=r(11576),_=r(92459),w=r(28071),k=r(81019),v="[object Arguments]",A="[object Array]",M="[object Object]",S=Object.prototype.hasOwnProperty;let T=function(t,e,r,i,a,o){var l=(0,_.A)(t),c=(0,_.A)(e),u=l?A:(0,x.A)(t),h=c?A:(0,x.A)(e);u=u==v?M:u,h=h==v?M:h;var f=u==M,d=h==M,p=u==h;if(p&&(0,w.A)(t)){if(!(0,w.A)(e))return!1;l=!0,f=!1}if(p&&!f)return o||(o=new n.A),l||(0,k.A)(t)?s(t,e,r,i,a,o):g(t,e,u,r,i,a,o);if(!(1&r)){var m=f&&S.call(t,"__wrapped__"),y=d&&S.call(e,"__wrapped__");if(m||y){var T=m?t.value():t,C=y?e.value():e;return o||(o=new n.A),a(T,C,r,i,o)}}return!!p&&(o||(o=new n.A),b(t,e,r,i,a,o))};var C=r(77494);let $=function t(e,r,n,i,a){return e===r||(null!=e&&null!=r&&((0,C.A)(e)||(0,C.A)(r))?T(e,r,n,i,t,a):e!=e&&r!=r)},O=function(t,e,r,i){var a=r.length,o=a,s=!i;if(null==t)return!o;for(t=Object(t);a--;){var l=r[a];if(s&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++a<o;){var c=(l=r[a])[0],u=t[c],h=l[1];if(s&&l[2]){if(void 0===u&&!(c in t))return!1}else{var f=new n.A;if(i)var d=i(u,h,c,t,e,f);if(!(void 0===d?$(h,u,3,i,f):d))return!1}}return!0};var L=r(33761);let E=function(t){return t==t&&!(0,L.A)(t)};var R=r(70638);let K=function(t){for(var e=(0,R.A)(t),r=e.length;r--;){var n=e[r],i=t[n];e[r]=[n,i,E(i)]}return e},j=function(t,e){return function(r){return null!=r&&r[t]===e&&(void 0!==e||t in Object(r))}},D=function(t){var e=K(t);return 1==e.length&&e[0][2]?j(e[0][0],e[0][1]):function(r){return r===t||O(r,t,e)}};var N=r(71606);let P=function(t,e,r){var n=null==t?void 0:(0,N.A)(t,e);return void 0===n?r:n};var I=r(52259),F=r(17334),U=r(30253),z=r(79800),B=r(81807);let Y=function(t){return(0,F.A)(t)?(0,B.A)((0,U.A)(t)):function(e){return(0,N.A)(e,t)}},H=function(t){if("function"==typeof t)return t;if(null==t)return z.A;if("object"==typeof t){var e,r;return(0,_.A)(t)?(e=t[0],r=t[1],(0,F.A)(e)&&E(r)?j((0,U.A)(e),r):function(t){var n=P(t,e);return void 0===n&&n===r?(0,I.A)(t,e):$(r,n,3)}):D(t)}return Y(t)}},47261:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(29568);let i=function(t,e){for(var r=t.length;r--;)if((0,n.A)(t[r][0],e))return r;return -1};var a=Array.prototype.splice;function o(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}o.prototype.clear=function(){this.__data__=[],this.size=0},o.prototype.delete=function(t){var e=this.__data__,r=i(e,t);return!(r<0)&&(r==e.length-1?e.pop():a.call(e,r,1),--this.size,!0)},o.prototype.get=function(t){var e=this.__data__,r=i(e,t);return r<0?void 0:e[r][1]},o.prototype.has=function(t){return i(this.__data__,t)>-1},o.prototype.set=function(t,e){var r=this.__data__,n=i(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};let s=o},51023:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(74548),i=r(51603);let a=(0,n.A)(i.A,"Map")},51603:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(66234),i="object"==typeof self&&self&&self.Object===Object&&self;let a=n.A||i||Function("return this")()},52259:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});let n=function(t,e){return null!=t&&e in Object(t)};var i=r(62878);let a=function(t,e){return null!=t&&(0,i.A)(t,e,n)}},52326:(t,e,r)=>{"use strict";r.d(e,{A:()=>u});var n=r(68448),i=r(64720);let a={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(35!==t.charCodeAt(0))return;let e=t.match(a.re);if(!e)return;let r=e[1],i=parseInt(r,16),o=r.length,s=o%4==0,l=o>4,c=l?1:17,u=l?8:4,h=s?0:-1,f=l?255:15;return n.A.set({r:(i>>u*(h+3)&f)*c,g:(i>>u*(h+2)&f)*c,b:(i>>u*(h+1)&f)*c,a:s?(i&f)*c/255:1},t)},stringify:t=>{let{r:e,g:r,b:n,a}=t;return a<1?`#${i.Y[Math.round(e)]}${i.Y[Math.round(r)]}${i.Y[Math.round(n)]}${i.Y[Math.round(255*a)]}`:`#${i.Y[Math.round(e)]}${i.Y[Math.round(r)]}${i.Y[Math.round(n)]}`}};var o=r(42112);let s={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:t=>{let e=t.match(s.hueRe);if(e){let[,t,r]=e;switch(r){case"grad":return o.A.channel.clamp.h(.9*parseFloat(t));case"rad":return o.A.channel.clamp.h(180*parseFloat(t)/Math.PI);case"turn":return o.A.channel.clamp.h(360*parseFloat(t))}}return o.A.channel.clamp.h(parseFloat(t))},parse:t=>{let e=t.charCodeAt(0);if(104!==e&&72!==e)return;let r=t.match(s.re);if(!r)return;let[,i,a,l,c,u]=r;return n.A.set({h:s._hue2deg(i),s:o.A.channel.clamp.s(parseFloat(a)),l:o.A.channel.clamp.l(parseFloat(l)),a:c?o.A.channel.clamp.a(u?parseFloat(c)/100:parseFloat(c)):1},t)},stringify:t=>{let{h:e,s:r,l:n,a:i}=t;return i<1?`hsla(${o.A.lang.round(e)}, ${o.A.lang.round(r)}%, ${o.A.lang.round(n)}%, ${i})`:`hsl(${o.A.lang.round(e)}, ${o.A.lang.round(r)}%, ${o.A.lang.round(n)}%)`}},l={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:t=>{t=t.toLowerCase();let e=l.colors[t];if(e)return a.parse(e)},stringify:t=>{let e=a.stringify(t);for(let t in l.colors)if(l.colors[t]===e)return t}},c={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:t=>{let e=t.charCodeAt(0);if(114!==e&&82!==e)return;let r=t.match(c.re);if(!r)return;let[,i,a,s,l,u,h,f,d]=r;return n.A.set({r:o.A.channel.clamp.r(a?2.55*parseFloat(i):parseFloat(i)),g:o.A.channel.clamp.g(l?2.55*parseFloat(s):parseFloat(s)),b:o.A.channel.clamp.b(h?2.55*parseFloat(u):parseFloat(u)),a:f?o.A.channel.clamp.a(d?parseFloat(f)/100:parseFloat(f)):1},t)},stringify:t=>{let{r:e,g:r,b:n,a:i}=t;return i<1?`rgba(${o.A.lang.round(e)}, ${o.A.lang.round(r)}, ${o.A.lang.round(n)}, ${o.A.lang.round(i)})`:`rgb(${o.A.lang.round(e)}, ${o.A.lang.round(r)}, ${o.A.lang.round(n)})`}},u={format:{keyword:l,hex:a,rgb:c,rgba:c,hsl:s,hsla:s},parse:t=>{if("string"!=typeof t)return t;let e=a.parse(t)||c.parse(t)||s.parse(t)||l.parse(t);if(e)return e;throw Error(`Unsupported color format: "${t}"`)},stringify:t=>!t.changed&&t.color?t.color:t.type.is(i.Z.HSL)||void 0===t.data.r?s.stringify(t):!(t.a<1)&&Number.isInteger(t.r)&&Number.isInteger(t.g)&&Number.isInteger(t.b)?a.stringify(t):c.stringify(t)}},52618:(t,e,r)=>{"use strict";function n(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}r.d(e,{i:()=>n})},52691:(t,e,r)=>{"use strict";r.d(e,{pe:()=>M,PX:()=>J,ru:()=>V,Un:()=>Q,$t:()=>ta,Sm:()=>tl,C4:()=>ts,$C:()=>Y,rY:()=>tc,sM:()=>z,KL:()=>tu,Ib:()=>E,dq:()=>tr,I5:()=>ti,yT:()=>q,vU:()=>O,_K:()=>to,bH:()=>G});var n,i=r(31775),a=r(56037),o=r(89851),s=r(84485),l=r(33948);function c(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw TypeError("Expected a function");let r=function(...n){let i=e?e.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);let o=t.apply(this,n);return r.cache=a.set(i,o)||a,o};return r.cache=new(c.Cache||Map),r}function u(){}c.Cache=Map;var h=r(83438),f=r(52618);function d(t){return Object.getOwnPropertySymbols(t).filter(e=>Object.prototype.propertyIsEnumerable.call(t,e))}var p=r(87789);function g(t){if("object"!=typeof t||null==t)return!1;if(null===Object.getPrototypeOf(t))return!0;if("[object Object]"!==Object.prototype.toString.call(t)){let e=t[Symbol.toStringTag];return null!=e&&!!Object.getOwnPropertyDescriptor(t,Symbol.toStringTag)?.writable&&t.toString()===`[object ${e}]`}let e=t;for(;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}var m=r(78437),y=r(24662);function b(t,e,r,n=new Map,i){let a=i?.(t,e,r,n);if(void 0!==a)return a;if((0,h.s)(t))return t;if(n.has(t))return n.get(t);if(Array.isArray(t)){let e=Array(t.length);n.set(t,e);for(let a=0;a<t.length;a++)e[a]=b(t[a],a,r,n,i);return Object.hasOwn(t,"index")&&(e.index=t.index),Object.hasOwn(t,"input")&&(e.input=t.input),e}if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp){let e=new RegExp(t.source,t.flags);return e.lastIndex=t.lastIndex,e}if(t instanceof Map){let e=new Map;for(let[a,o]of(n.set(t,e),t))e.set(a,b(o,a,r,n,i));return e}if(t instanceof Set){let e=new Set;for(let a of(n.set(t,e),t))e.add(b(a,void 0,r,n,i));return e}if((0,p.P)(t))return t.subarray();if((0,f.i)(t)){let e=new(Object.getPrototypeOf(t)).constructor(t.length);n.set(t,e);for(let a=0;a<t.length;a++)e[a]=b(t[a],a,r,n,i);return e}if(t instanceof ArrayBuffer||"u">typeof SharedArrayBuffer&&t instanceof SharedArrayBuffer)return t.slice(0);if(t instanceof DataView){let e=new DataView(t.buffer.slice(0),t.byteOffset,t.byteLength);return n.set(t,e),x(e,t,r,n,i),e}if("u">typeof File&&t instanceof File){let e=new File([t],t.name,{type:t.type});return n.set(t,e),x(e,t,r,n,i),e}if("u">typeof Blob&&t instanceof Blob){let e=new Blob([t],{type:t.type});return n.set(t,e),x(e,t,r,n,i),e}if(t instanceof Error){let e=structuredClone(t);return n.set(t,e),e.message=t.message,e.name=t.name,e.stack=t.stack,e.cause=t.cause,e.constructor=t.constructor,x(e,t,r,n,i),e}if(t instanceof Boolean){let e=new Boolean(t.valueOf());return n.set(t,e),x(e,t,r,n,i),e}if(t instanceof Number){let e=new Number(t.valueOf());return n.set(t,e),x(e,t,r,n,i),e}if(t instanceof String){let e=new String(t.valueOf());return n.set(t,e),x(e,t,r,n,i),e}if("object"==typeof t&&function(t){switch((0,m.b)(t)){case y.R_:case y.Uw:case y.cT:case y.iq:case y.$V:case y.vC:case y.ri:case y.ML:case y.XZ:case y.i1:case y._u:case y.pj:case y.kj:case y.GX:case y.Av:case y.NA:case y.OG:case y.VP:case y.Qb:case y.q:case y.x6:case y.ZR:return!0;default:return!1}}(t)){let e=Object.create(Object.getPrototypeOf(t));return n.set(t,e),x(e,t,r,n,i),e}return t}function x(t,e,r=t,n,i){let a=[...Object.keys(e),...d(e)];for(let o=0;o<a.length;o++){let s=a[o],l=Object.getOwnPropertyDescriptor(t,s);(null==l||l.writable)&&(t[s]=b(e[s],s,r,n,i))}}function _(t){var e;return e=(e,r,n,i)=>{let a;if(void 0!==a)return a;if("object"==typeof t){if("[object Object]"===(0,m.b)(t)&&"function"!=typeof t.constructor){let e={};return i.set(t,e),x(e,t,n,i),e}switch(Object.prototype.toString.call(t)){case y.kj:case y.OG:case y.$V:{let e=new t.constructor(t?.valueOf());return x(e,t),e}case y.R_:{let e={};return x(e,t),e.length=t.length,e[Symbol.iterator]=t[Symbol.iterator],e}default:return}}},b(t,void 0,t,new Map,e)}var w=r(32174);function k(t){return"object"==typeof t&&null!==t}var v=r(9101),A=r(95683),M="​",S={curveBasis:l.qrM,curveBasisClosed:l.Yu4,curveBasisOpen:l.IA3,curveBumpX:l.Wi0,curveBumpY:l.PGM,curveBundle:l.OEq,curveCardinalClosed:l.olC,curveCardinalOpen:l.IrU,curveCardinal:l.y8u,curveCatmullRomClosed:l.Q7f,curveCatmullRomOpen:l.cVp,curveCatmullRom:l.oDi,curveLinear:l.lUB,curveLinearClosed:l.Lx9,curveMonotoneX:l.nVG,curveMonotoneY:l.uxU,curveNatural:l.Xf2,curveStep:l.GZz,curveStepAfter:l.UPb,curveStepBefore:l.dyv},T=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,C=(0,o.K)(function(t,e){let r=$(t,/(?:init\b)|(?:initialize\b)/),n={};if(Array.isArray(r)){let t=r.map(t=>t.args);(0,i.$i)(t),n=(0,i.hH)(n,[...t])}else n=r.args;if(!n)return;let a=(0,i.Ch)(t,e),o="config";return void 0!==n[o]&&("flowchart-v2"===a&&(a="flowchart"),n[a]=n[o],delete n[o]),n},"detectInit"),$=(0,o.K)(function(t,e=null){try{let r,n=RegExp(`[%]{2}(?![{]${T.source})(?=[}][%]{2}).*
5
+ `,"ig");t=t.trim().replace(n,"").replace(/'/gm,'"'),a.R.debug(`Detecting diagram directive${null!==e?" type:"+e:""} based on the text:${t}`);let o=[];for(;null!==(r=i.DB.exec(t));)if(r.index===i.DB.lastIndex&&i.DB.lastIndex++,r&&!e||e&&r[1]?.match(e)||e&&r[2]?.match(e)){let t=r[1]?r[1]:r[2],e=r[3]?r[3].trim():r[4]?JSON.parse(r[4].trim()):null;o.push({type:t,args:e})}if(0===o.length)return{type:t,args:null};return 1===o.length?o[0]:o}catch(r){return a.R.error(`ERROR: ${r.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`),{type:void 0,args:null}}},"detectDirective"),O=(0,o.K)(function(t){return t.replace(i.DB,"")},"removeDirectives"),L=(0,o.K)(function(t,e){for(let[r,n]of e.entries())if(n.match(t))return r;return -1},"isSubstringInArray");function E(t,e){return t?S[`curve${t.charAt(0).toUpperCase()+t.slice(1)}`]??e:e}function R(t,e){let r=t.trim();if(r)return"loose"!==e.securityLevel?(0,s.J)(r):r}(0,o.K)(E,"interpolateToCurve"),(0,o.K)(R,"formatUrl");var K=(0,o.K)((t,...e)=>{let r=t.split("."),n=r.length-1,i=r[n],o=window;for(let e=0;e<n;e++)if(!(o=o[r[e]]))return void a.R.error(`Function name: ${t} not found in window`);o[i](...e)},"runFunc");function j(t,e){return t&&e?Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)):0}function D(t){let e,r=0;return t.forEach(t=>{r+=j(t,e),e=t}),I(t,r/2)}function N(t){return 1===t.length?t[0]:D(t)}(0,o.K)(j,"distance"),(0,o.K)(D,"traverseEdge"),(0,o.K)(N,"calcLabelPosition");var P=(0,o.K)((t,e=2)=>{let r=Math.pow(10,e);return Math.round(t*r)/r},"roundNumber"),I=(0,o.K)((t,e)=>{let r,n=e;for(let e of t){if(r){let t=j(e,r);if(0===t)return r;if(t<n)n-=t;else{let i=n/t;if(i<=0)return r;if(i>=1)return{x:e.x,y:e.y};if(i>0&&i<1)return{x:P((1-i)*r.x+i*e.x,5),y:P((1-i)*r.y+i*e.y,5)}}}r=e}throw Error("Could not find a suitable point for the given distance")},"calculatePoint"),F=(0,o.K)((t,e,r)=>{a.R.info(`our points ${JSON.stringify(e)}`),e[0]!==r&&(e=e.reverse());let n=I(e,25),i=t?10:5,o=Math.atan2(e[0].y-n.y,e[0].x-n.x),s={x:0,y:0};return s.x=Math.sin(o)*i+(e[0].x+n.x)/2,s.y=-Math.cos(o)*i+(e[0].y+n.y)/2,s},"calcCardinalityPosition");function U(t,e,r){let n=structuredClone(r);a.R.info("our points",n),"start_left"!==e&&"start_right"!==e&&n.reverse();let i=I(n,25+t),o=10+.5*t,s=Math.atan2(n[0].y-i.y,n[0].x-i.x),l={x:0,y:0};return"start_left"===e?(l.x=Math.sin(s+Math.PI)*o+(n[0].x+i.x)/2,l.y=-Math.cos(s+Math.PI)*o+(n[0].y+i.y)/2):"end_right"===e?(l.x=Math.sin(s-Math.PI)*o+(n[0].x+i.x)/2-5,l.y=-Math.cos(s-Math.PI)*o+(n[0].y+i.y)/2-5):"end_left"===e?(l.x=Math.sin(s)*o+(n[0].x+i.x)/2-5,l.y=-Math.cos(s)*o+(n[0].y+i.y)/2-5):(l.x=Math.sin(s)*o+(n[0].x+i.x)/2,l.y=-Math.cos(s)*o+(n[0].y+i.y)/2),l}function z(t){let e="",r="";for(let n of t)void 0!==n&&(n.startsWith("color:")||n.startsWith("text-align:")?r=r+n+";":e=e+n+";");return{style:e,labelStyle:r}}(0,o.K)(U,"calcTerminalLabelPosition"),(0,o.K)(z,"getStylesFromArray");var B=0,Y=(0,o.K)(()=>(B++,"id-"+Math.random().toString(36).substr(2,12)+"-"+B),"generateId");function H(t){let e="",r="0123456789abcdef",n=r.length;for(let i=0;i<t;i++)e+=r.charAt(Math.floor(Math.random()*n));return e}(0,o.K)(H,"makeRandomHex");var q=(0,o.K)(t=>H(t.length),"random"),W=(0,o.K)(function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},"getTextObj"),X=(0,o.K)(function(t,e){let r=e.text.replace(i.Y2.lineBreakRegex," "),[,n]=ti(e.fontSize),a=t.append("text");a.attr("x",e.x),a.attr("y",e.y),a.style("text-anchor",e.anchor),a.style("font-family",e.fontFamily),a.style("font-size",n),a.style("font-weight",e.fontWeight),a.attr("fill",e.fill),void 0!==e.class&&a.attr("class",e.class);let o=a.append("tspan");return o.attr("x",e.x+2*e.textMargin),o.attr("fill",e.fill),o.text(r),a},"drawSimpleText"),G=c((t,e,r)=>{if(!t||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},r),i.Y2.lineBreakRegex.test(t)))return t;let n=t.split(" ").filter(Boolean),a=[],o="";return n.forEach((t,i)=>{let s=Q(`${t} `,r),l=Q(o,r);if(s>e){let{hyphenatedStrings:n,remainingWord:i}=Z(t,e,"-",r);a.push(o,...n),o=i}else l+s>=e?(a.push(o),o=t):o=[o,t].filter(Boolean).join(" ");i+1===n.length&&a.push(o)}),a.filter(t=>""!==t).join(r.joinWith)},(t,e,r)=>`${t}${e}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`),Z=c((t,e,r="-",n)=>{n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},n);let i=[...t],a=[],o="";return i.forEach((t,s)=>{let l=`${o}${t}`;if(Q(l,n)>=e){let t=i.length===s+1,e=`${l}${r}`;a.push(t?l:e),o=""}else o=l}),{hyphenatedStrings:a,remainingWord:o}},(t,e,r="-",n)=>`${t}${e}${r}${n.fontSize}${n.fontWeight}${n.fontFamily}`);function V(t,e){return J(t,e).height}function Q(t,e){return J(t,e).width}(0,o.K)(V,"calculateTextHeight"),(0,o.K)(Q,"calculateTextWidth");var J=c((t,e)=>{let{fontSize:r=12,fontFamily:n="Arial",fontWeight:a=400}=e;if(!t)return{width:0,height:0};let[,o]=ti(r),s=t.split(i.Y2.lineBreakRegex),c=[],u=(0,l.Ltv)("body");if(!u.remove)return{width:0,height:0,lineHeight:0};let h=u.append("svg");for(let t of["sans-serif",n]){let e=0,r={width:0,height:0,lineHeight:0};for(let n of s){let i=W();i.text=n||M;let s=X(h,i).style("font-size",o).style("font-weight",a).style("font-family",t),l=(s._groups||s)[0][0].getBBox();if(0===l.width&&0===l.height)throw Error("svg element not in render tree");r.width=Math.round(Math.max(r.width,l.width)),e=Math.round(l.height),r.height+=e,r.lineHeight=Math.round(Math.max(r.lineHeight,e))}c.push(r)}h.remove();let f=isNaN(c[1].height)||isNaN(c[1].width)||isNaN(c[1].lineHeight)||c[0].height>c[1].height&&c[0].width>c[1].width&&c[0].lineHeight>c[1].lineHeight?0:1;return c[f]},(t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`),tt=class{constructor(t=!1,e){this.count=0,this.count=e?e.length:0,this.next=t?()=>this.count++:()=>Date.now()}static{(0,o.K)(this,"InitIDGenerator")}},te=(0,o.K)(function(t){return n=n||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),n.innerHTML=t,unescape(n.textContent)},"entityDecode");function tr(t){return"str"in t}(0,o.K)(tr,"isDetailedError");var tn=(0,o.K)((t,e,r,n)=>{if(!n)return;let i=t.node()?.getBBox();i&&t.append("text").text(n).attr("text-anchor","middle").attr("x",i.x+i.width/2).attr("y",-r).attr("class",e)},"insertTitle"),ti=(0,o.K)(t=>{if("number"==typeof t)return[t,t+"px"];let e=parseInt(t??"",10);return Number.isNaN(e)?[void 0,void 0]:t===String(e)?[e,t+"px"]:[e,t]},"parseFontSize");function ta(t,e){return function(t,...e){return function(t,...e){let r=e.slice(0,-1),n=e[e.length-1],i=t;for(let t=0;t<r.length;t++)i=function t(e,r,n,i){if((0,h.s)(e)&&(e=Object(e)),null==r||"object"!=typeof r)return e;if(i.has(r))return function(t){if((0,h.s)(t))return t;if(Array.isArray(t)||(0,f.i)(t)||t instanceof ArrayBuffer||"u">typeof SharedArrayBuffer&&t instanceof SharedArrayBuffer)return t.slice(0);let e=Object.getPrototypeOf(t);if(null==e)return Object.assign(Object.create(e),t);let r=e.constructor;if(t instanceof Date||t instanceof Map||t instanceof Set)return new r(t);if(t instanceof RegExp){let e=new r(t);return e.lastIndex=t.lastIndex,e}if(t instanceof DataView)return new r(t.buffer.slice(0));if(t instanceof Error){let e;return(e=t instanceof AggregateError?new r(t.errors,t.message,{cause:t.cause}):new r(t.message,{cause:t.cause})).stack=t.stack,Object.assign(e,t),e}return"u">typeof File&&t instanceof File?new r([t],t.name,{type:t.type,lastModified:t.lastModified}):"object"==typeof t?Object.assign(Object.create(e),t):t}(i.get(r));if(i.set(r,e),Array.isArray(r)){r=r.slice();for(let t=0;t<r.length;t++)t in r||(r[t]=void 0)}let a=[...Object.keys(r),...d(r)];for(let s=0;s<a.length;s++){let l=a[s];if("__proto__"===l)continue;let c=r[l],u=e[l];if((0,w.N)(c)&&(c={...c}),(0,w.N)(u)&&(u={...u}),(0,p.P)(c)&&(c=_(c)),Array.isArray(c))if(Array.isArray(u)){let t=[],e=Reflect.ownKeys(u);for(let r=0;r<e.length;r++){let n=e[r];t[n]=u[n]}u=t}else{var o;if(k(o=u)&&(0,v.X)(o)){let t=[];for(let e=0;e<u.length;e++)t[e]=u[e];u=t}else u=[]}let h=n(u,c,l,e,r,i);void 0!==h?e[l]=h:Array.isArray(c)||k(u)&&k(c)&&(g(u)||g(c)||(0,A.i)(u)||(0,A.i)(c))?e[l]=t(u,c,n,i):null==u&&g(c)?e[l]=t({},c,n,i):null==u&&(0,A.i)(c)?e[l]=_(c):(void 0===u||void 0!==c)&&(e[l]=c)}return e}(i,r[t],n,new Map);return i}(t,...e,u)}({},t,e)}(0,o.K)(ta,"cleanAndMerge");var to={assignWithDepth:i.hH,wrapLabel:G,calculateTextHeight:V,calculateTextWidth:Q,calculateTextDimensions:J,cleanAndMerge:ta,detectInit:C,detectDirective:$,isSubstringInArray:L,interpolateToCurve:E,calcLabelPosition:N,calcCardinalityPosition:F,calcTerminalLabelPosition:U,formatUrl:R,getStylesFromArray:z,generateId:Y,random:q,runFunc:K,entityDecode:te,insertTitle:tn,isLabelCoordinateInPath:th,parseFontSize:ti,InitIDGenerator:tt},ts=(0,o.K)(function(t){let e=t;return(e=(e=e.replace(/style.*:\S*#.*;/g,function(t){return t.substring(0,t.length-1)})).replace(/classDef.*:\S*#.*;/g,function(t){return t.substring(0,t.length-1)})).replace(/#\w+;/g,function(t){let e=t.substring(1,t.length-1);return/^\+?\d+$/.test(e)?"fl\xb0\xb0"+e+"\xb6\xdf":"fl\xb0"+e+"\xb6\xdf"})},"encodeEntities"),tl=(0,o.K)(function(t){return t.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),tc=(0,o.K)((t,e,{counter:r=0,prefix:n,suffix:i},a)=>a||`${n?`${n}_`:""}${t}_${e}_${r}${i?`_${i}`:""}`,"getEdgeId");function tu(t){return t??null}function th(t,e){let r=Math.round(t.x),n=Math.round(t.y),i=e.replace(/(\d+\.\d+)/g,t=>Math.round(parseFloat(t)).toString());return i.includes(r.toString())||i.includes(n.toString())}(0,o.K)(tu,"handleUndefinedAttr"),(0,o.K)(th,"isLabelCoordinateInPath")},52766:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=0x1fffffffffffff}},53422:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(42410),i=r(91359),a=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols;let s=o?function(t){return null==t?[]:(t=Object(t),(0,n.A)(o(t),function(e){return a.call(t,e)}))}:i.A},55548:(t,e,r)=>{"use strict";r.d(e,{A:()=>l});var n=r(42410),i=r(60395);let a=function(t,e){var r=[];return(0,i.A)(t,function(t,n,i){e(t,n,i)&&r.push(t)}),r};var o=r(47239),s=r(92459);let l=function(t,e){return((0,s.A)(t)?n.A:a)(t,(0,o.A)(e,3))}},56037:(t,e,r)=>{"use strict";r.d(e,{H:()=>s,R:()=>o});var n=r(89851),i=r(27866),a={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},o={trace:(0,n.K)((...t)=>{},"trace"),debug:(0,n.K)((...t)=>{},"debug"),info:(0,n.K)((...t)=>{},"info"),warn:(0,n.K)((...t)=>{},"warn"),error:(0,n.K)((...t)=>{},"error"),fatal:(0,n.K)((...t)=>{},"fatal")},s=(0,n.K)(function(t="fatal"){let e=a.fatal;"string"==typeof t?t.toLowerCase()in a&&(e=a[t]):"number"==typeof t&&(e=t),o.trace=()=>{},o.debug=()=>{},o.info=()=>{},o.warn=()=>{},o.error=()=>{},o.fatal=()=>{},e<=a.fatal&&(o.fatal=console.error?console.error.bind(console,l("FATAL"),"color: orange"):console.log.bind(console,"\x1b[35m",l("FATAL"))),e<=a.error&&(o.error=console.error?console.error.bind(console,l("ERROR"),"color: orange"):console.log.bind(console,"\x1b[31m",l("ERROR"))),e<=a.warn&&(o.warn=console.warn?console.warn.bind(console,l("WARN"),"color: orange"):console.log.bind(console,"\x1b[33m",l("WARN"))),e<=a.info&&(o.info=console.info?console.info.bind(console,l("INFO"),"color: lightblue"):console.log.bind(console,"\x1b[34m",l("INFO"))),e<=a.debug&&(o.debug=console.debug?console.debug.bind(console,l("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1b[32m",l("DEBUG"))),e<=a.trace&&(o.trace=console.debug?console.debug.bind(console,l("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1b[32m",l("TRACE")))},"setLogLevel"),l=(0,n.K)(t=>{let e=i().format("ss.SSS");return`%c${e} : ${t} : `},"format")},57301:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););return t}},59233:(t,e,r)=>{"use strict";r.d(e,{A:()=>f});var n=(0,r(74548).A)(Object,"create"),i=Object.prototype.hasOwnProperty,a=Object.prototype.hasOwnProperty;function o(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}o.prototype.clear=function(){this.__data__=n?n(null):{},this.size=0},o.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=!!e,e},o.prototype.get=function(t){var e=this.__data__;if(n){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return i.call(e,t)?e[t]:void 0},o.prototype.has=function(t){var e=this.__data__;return n?void 0!==e[t]:a.call(e,t)},o.prototype.set=function(t,e){var r=this.__data__;return this.size+=+!this.has(t),r[t]=n&&void 0===e?"__lodash_hash_undefined__":e,this};var s=r(47261),l=r(51023);let c=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t},u=function(t,e){var r=t.__data__;return c(e)?r["string"==typeof e?"string":"hash"]:r.map};function h(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}h.prototype.clear=function(){this.size=0,this.__data__={hash:new o,map:new(l.A||s.A),string:new o}},h.prototype.delete=function(t){var e=u(this,t).delete(t);return this.size-=!!e,e},h.prototype.get=function(t){return u(this,t).get(t)},h.prototype.has=function(t){return u(this,t).has(t)},h.prototype.set=function(t,e){var r=u(this,t),n=r.size;return r.set(t,e),this.size+=+(r.size!=n),this};let f=h},59847:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=Object.prototype;let i=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},60395:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n,i=r(26391),a=r(19396);let o=(n=i.A,function(t,e){if(null==t)return t;if(!(0,a.A)(t))return n(t,e);for(var r=t.length,i=-1,o=Object(t);++i<r&&!1!==e(o[i],i,o););return t})},62878:(t,e,r)=>{"use strict";r.d(e,{A:()=>c});var n=r(72751),i=r(67903),a=r(92459),o=r(26805),s=r(52766),l=r(30253);let c=function(t,e,r){e=(0,n.A)(e,t);for(var c=-1,u=e.length,h=!1;++c<u;){var f=(0,l.A)(e[c]);if(!(h=null!=t&&r(t,f)))break;t=t[f]}return h||++c!=u?h:!!(u=null==t?0:t.length)&&(0,s.A)(u)&&(0,o.A)(f,u)&&((0,a.A)(t)||(0,i.A)(t))}},64720:(t,e,r)=>{"use strict";r.d(e,{Y:()=>i,Z:()=>a});var n=r(42112);let i={};for(let t=0;t<=255;t++)i[t]=n.A.unit.dec2hex(t);let a={ALL:0,RGB:1,HSL:2}},64907:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(42112),i=r(52326);let a=(t,e,r)=>{let a=i.A.parse(t),o=a[e],s=n.A.channel.clamp[e](o+r);return o!==s&&(a[e]=s),i.A.stringify(a)}},65537:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});let n=function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)};var i=Math.max;let a=function(t,e,r){return e=i(void 0===e?t.length-1:e,0),function(){for(var a=arguments,o=-1,s=i(a.length-e,0),l=Array(s);++o<s;)l[o]=a[e+o];o=-1;for(var c=Array(e+1);++o<e;)c[o]=a[o];return c[e]=r(l),n(t,this,c)}}},65872:function(t,e,r){var n;!function(e){"use strict";var i=function(){},a=e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.msRequestAnimationFrame||function(t){return setTimeout(t,16)};function o(){this.reads=[],this.writes=[],this.raf=a.bind(e),i("initialized",this)}function s(t){t.scheduled||(t.scheduled=!0,t.raf(l.bind(null,t)),i("flush scheduled"))}function l(t){i("flush");var e,r=t.writes,n=t.reads;try{i("flushing reads",n.length),t.runTasks(n),i("flushing writes",r.length),t.runTasks(r)}catch(t){e=t}if(t.scheduled=!1,(n.length||r.length)&&s(t),e)if(i("task errored",e.message),t.catch)t.catch(e);else throw e}function c(t,e){var r=t.indexOf(e);return!!~r&&!!t.splice(r,1)}o.prototype={constructor:o,runTasks:function(t){var e;for(i("run tasks");e=t.shift();)e()},measure:function(t,e){i("measure");var r=e?t.bind(e):t;return this.reads.push(r),s(this),r},mutate:function(t,e){i("mutate");var r=e?t.bind(e):t;return this.writes.push(r),s(this),r},clear:function(t){return i("clear",t),c(this.reads,t)||c(this.writes,t)},extend:function(t){if(i("extend",t),"object"!=typeof t)throw Error("expected object");var e=Object.create(this);return function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])}(e,t),e.fastdom=this,e.initialize&&e.initialize(),e},catch:null};var u=e.fastdom=e.fastdom||new o;void 0===(n=(function(){return u}).call(u,r,u,t))||(t.exports=n)}("u">typeof window?window:void 0!==this?this:globalThis)},66162:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=function(t,e,r){for(var n=-1,i=Object(t),a=r(t),o=a.length;o--;){var s=a[++n];if(!1===e(i[s],s,i))break}return t}},66234:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n="object"==typeof global&&global&&global.Object===Object&&global},66485:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=function(t,e){return t.has(e)}},67903:(t,e,r)=>{"use strict";r.d(e,{A:()=>c});var n=r(95749),i=r(77494);let a=function(t){return(0,i.A)(t)&&"[object Arguments]"==(0,n.A)(t)};var o=Object.prototype,s=o.hasOwnProperty,l=o.propertyIsEnumerable;let c=a(function(){return arguments}())?a:function(t){return(0,i.A)(t)&&s.call(t,"callee")&&!l.call(t,"callee")}},68195:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(64907);let i=(t,e)=>(0,n.A)(t,"l",-e)},68420:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(42112),i=r(52326);let a=(t,e)=>{let r=i.A.parse(t);for(let t in e)r[t]=n.A.channel.clamp[t](e[t]);return i.A.stringify(r)}},68448:(t,e,r)=>{"use strict";r.d(e,{A:()=>s});var n=r(42112),i=r(64720);class a{constructor(){this.type=i.Z.ALL}get(){return this.type}set(t){if(this.type&&this.type!==t)throw Error("Cannot change both RGB and HSL channels at the same time");this.type=t}reset(){this.type=i.Z.ALL}is(t){return this.type===t}}class o{constructor(t,e){this.color=e,this.changed=!1,this.data=t,this.type=new a}set(t,e){return this.color=e,this.changed=!1,this.data=t,this.type.type=i.Z.ALL,this}_ensureHSL(){let t=this.data,{h:e,s:r,l:i}=t;void 0===e&&(t.h=n.A.channel.rgb2hsl(t,"h")),void 0===r&&(t.s=n.A.channel.rgb2hsl(t,"s")),void 0===i&&(t.l=n.A.channel.rgb2hsl(t,"l"))}_ensureRGB(){let t=this.data,{r:e,g:r,b:i}=t;void 0===e&&(t.r=n.A.channel.hsl2rgb(t,"r")),void 0===r&&(t.g=n.A.channel.hsl2rgb(t,"g")),void 0===i&&(t.b=n.A.channel.hsl2rgb(t,"b"))}get r(){let t=this.data,e=t.r;return this.type.is(i.Z.HSL)||void 0===e?(this._ensureHSL(),n.A.channel.hsl2rgb(t,"r")):e}get g(){let t=this.data,e=t.g;return this.type.is(i.Z.HSL)||void 0===e?(this._ensureHSL(),n.A.channel.hsl2rgb(t,"g")):e}get b(){let t=this.data,e=t.b;return this.type.is(i.Z.HSL)||void 0===e?(this._ensureHSL(),n.A.channel.hsl2rgb(t,"b")):e}get h(){let t=this.data,e=t.h;return this.type.is(i.Z.RGB)||void 0===e?(this._ensureRGB(),n.A.channel.rgb2hsl(t,"h")):e}get s(){let t=this.data,e=t.s;return this.type.is(i.Z.RGB)||void 0===e?(this._ensureRGB(),n.A.channel.rgb2hsl(t,"s")):e}get l(){let t=this.data,e=t.l;return this.type.is(i.Z.RGB)||void 0===e?(this._ensureRGB(),n.A.channel.rgb2hsl(t,"l")):e}get a(){return this.data.a}set r(t){this.type.set(i.Z.RGB),this.changed=!0,this.data.r=t}set g(t){this.type.set(i.Z.RGB),this.changed=!0,this.data.g=t}set b(t){this.type.set(i.Z.RGB),this.changed=!0,this.data.b=t}set h(t){this.type.set(i.Z.HSL),this.changed=!0,this.data.h=t}set s(t){this.type.set(i.Z.HSL),this.changed=!0,this.data.s=t}set l(t){this.type.set(i.Z.HSL),this.changed=!0,this.data.l=t}set a(t){this.changed=!0,this.data.a=t}}let s=new o({r:0,g:0,b:0,a:0},"transparent")},69123:(t,e,r)=>{"use strict";r.d(e,{W6:()=>tH,GZ:()=>tZ,lT:()=>tO});var n=r(2401),i=r(52691),a=r(31775),o=r(56037),s=r(89851),l=r(65872),c=r(38727),u=r(33948);function h(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var f=h(),d={exec:()=>null};function p(t,e=""){let r="string"==typeof t?t:t.source,n={replace:(t,e)=>{let i="string"==typeof e?e:e.source;return i=i.replace(m.caret,"$1"),r=r.replace(t,i),n},getRegex:()=>new RegExp(r,e)};return n}var g=(()=>{try{return!!RegExp("(?<=1)(?<!1)")}catch{return!1}})(),m={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i")},y=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,b=/(?:[*+-]|\d{1,9}[.)])/,x=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_=p(x).replace(/bull/g,b).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),w=p(x).replace(/bull/g,b).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),k=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,v=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,A=p(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",v).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),M=p(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,b).getRegex(),S="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",T=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,C=p("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",T).replace("tag",S).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),$=p(k).replace("hr",y).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",S).getRegex(),O={blockquote:p(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",$).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:A,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:y,html:C,lheading:_,list:M,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:$,table:d,text:/^[^\n]+/},L=p("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",y).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",S).getRegex(),E={...O,lheading:w,table:L,paragraph:p(k).replace("hr",y).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",L).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",S).getRegex()},R={...O,html:p("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",T).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:d,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:p(k).replace("hr",y).replace("heading",` *#{1,6} *[^
6
+ ]`).replace("lheading",_).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},K=/^( {2,}|\\)\n(?!\s*$)/,j=/[\p{P}\p{S}]/u,D=/[\s\p{P}\p{S}]/u,N=/[^\s\p{P}\p{S}]/u,P=p(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,D).getRegex(),I=/(?!~)[\p{P}\p{S}]/u,F=p(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",g?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),U=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,z=p(U,"u").replace(/punct/g,j).getRegex(),B=p(U,"u").replace(/punct/g,I).getRegex(),Y="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",H=p(Y,"gu").replace(/notPunctSpace/g,N).replace(/punctSpace/g,D).replace(/punct/g,j).getRegex(),q=p(Y,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,I).getRegex(),W=p("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,N).replace(/punctSpace/g,D).replace(/punct/g,j).getRegex(),X=p(/\\(punct)/,"gu").replace(/punct/g,j).getRegex(),G=p(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Z=p(T).replace("(?:--\x3e|$)","--\x3e").getRegex(),V=p("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Z).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Q=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,J=p(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Q).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),tt=p(/^!?\[(label)\]\[(ref)\]/).replace("label",Q).replace("ref",v).getRegex(),te=p(/^!?\[(ref)\](?:\[\])?/).replace("ref",v).getRegex(),tr=p("reflink|nolink(?!\\()","g").replace("reflink",tt).replace("nolink",te).getRegex(),tn=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,ti={_backpedal:d,anyPunctuation:X,autolink:G,blockSkip:F,br:K,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:d,emStrongLDelim:z,emStrongRDelimAst:H,emStrongRDelimUnd:W,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:J,nolink:te,punctuation:P,reflink:tt,reflinkSearch:tr,tag:V,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:d},ta={...ti,link:p(/^!?\[(label)\]\((.*?)\)/).replace("label",Q).getRegex(),reflink:p(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Q).getRegex()},to={...ti,emStrongRDelimAst:q,emStrongLDelim:B,url:p(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",tn).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:p(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",tn).getRegex()},ts={...to,br:p(K).replace("{2,}","*").getRegex(),text:p(to.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},tl={normal:O,gfm:E,pedantic:R},tc={normal:ti,gfm:to,breaks:ts,pedantic:ta},tu={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},th=t=>tu[t];function tf(t,e){if(e){if(m.escapeTest.test(t))return t.replace(m.escapeReplace,th)}else if(m.escapeTestNoEncode.test(t))return t.replace(m.escapeReplaceNoEncode,th);return t}function td(t){try{t=encodeURI(t).replace(m.percentDecode,"%")}catch{return null}return t}function tp(t,e){let r=t.replace(m.findPipe,(t,e,r)=>{let n=!1,i=e;for(;--i>=0&&"\\"===r[i];)n=!n;return n?"|":" |"}).split(m.splitPipe),n=0;if(r[0].trim()||r.shift(),r.length>0&&!r.at(-1)?.trim()&&r.pop(),e)if(r.length>e)r.splice(e);else for(;r.length<e;)r.push("");for(;n<r.length;n++)r[n]=r[n].trim().replace(m.slashPipe,"|");return r}function tg(t,e,r){let n=t.length;if(0===n)return"";let i=0;for(;i<n;){let a=t.charAt(n-i-1);if(a!==e||r)if(a!==e&&r)i++;else break;else i++}return t.slice(0,n-i)}function tm(t,e,r,n,i){let a=e.href,o=e.title||null,s=t[1].replace(i.other.outputLinkReplace,"$1");n.state.inLink=!0;let l={type:"!"===t[0].charAt(0)?"image":"link",raw:r,href:a,title:o,text:s,tokens:n.inlineTokens(s)};return n.state.inLink=!1,l}var ty=class{options;rules;lexer;constructor(t){this.options=t||f}space(t){let e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(t){let e=this.rules.block.code.exec(t);if(e){let t=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?t:tg(t,`
7
+ `)}}}fences(t){let e=this.rules.block.fences.exec(t);if(e){let t=e[0],r=function(t,e,r){let n=t.match(r.other.indentCodeCompensation);if(null===n)return e;let i=n[1];return e.split(`
8
+ `).map(t=>{let e=t.match(r.other.beginningSpace);if(null===e)return t;let[n]=e;return n.length>=i.length?t.slice(i.length):t}).join(`
9
+ `)}(t,e[3]||"",this.rules);return{type:"code",raw:t,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:r}}}heading(t){let e=this.rules.block.heading.exec(t);if(e){let t=e[2].trim();if(this.rules.other.endingHash.test(t)){let e=tg(t,"#");(this.options.pedantic||!e||this.rules.other.endingSpaceChar.test(e))&&(t=e.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:t,tokens:this.lexer.inline(t)}}}hr(t){let e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:tg(e[0],`
10
+ `)}}blockquote(t){let e=this.rules.block.blockquote.exec(t);if(e){let t=tg(e[0],`
11
+ `).split(`
12
+ `),r="",n="",i=[];for(;t.length>0;){let e=!1,a=[],o;for(o=0;o<t.length;o++)if(this.rules.other.blockquoteStart.test(t[o]))a.push(t[o]),e=!0;else if(e)break;else a.push(t[o]);t=t.slice(o);let s=a.join(`
13
+ `),l=s.replace(this.rules.other.blockquoteSetextReplace,`
14
+ $1`).replace(this.rules.other.blockquoteSetextReplace2,"");r=r?`${r}
15
+ ${s}`:s,n=n?`${n}
16
+ ${l}`:l;let c=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(l,i,!0),this.lexer.state.top=c,0===t.length)break;let u=i.at(-1);if(u?.type==="code")break;if(u?.type==="blockquote"){let e=u.raw+`
17
+ `+t.join(`
18
+ `),a=this.blockquote(e);i[i.length-1]=a,r=r.substring(0,r.length-u.raw.length)+a.raw,n=n.substring(0,n.length-u.text.length)+a.text;break}if(u?.type==="list"){let e=u.raw+`
19
+ `+t.join(`
20
+ `),a=this.list(e);i[i.length-1]=a,r=r.substring(0,r.length-u.raw.length)+a.raw,n=n.substring(0,n.length-u.raw.length)+a.raw,t=e.substring(i.at(-1).raw.length).split(`
21
+ `);continue}}return{type:"blockquote",raw:r,tokens:i,text:n}}}list(t){let e=this.rules.block.list.exec(t);if(e){let r=e[1].trim(),n=r.length>1,i={type:"list",raw:"",ordered:n,start:n?+r.slice(0,-1):"",loose:!1,items:[]};r=n?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=n?r:"[*+-]");let a=this.rules.other.listItemRegex(r),o=!1;for(;t;){let r=!1,n="",s="";if(!(e=a.exec(t))||this.rules.block.hr.test(t))break;n=e[0],t=t.substring(n.length);let l=e[2].split(`
22
+ `,1)[0].replace(this.rules.other.listReplaceTabs,t=>" ".repeat(3*t.length)),c=t.split(`
23
+ `,1)[0],u=!l.trim(),h=0;if(this.options.pedantic?(h=2,s=l.trimStart()):u?h=e[1].length+1:(h=(h=e[2].search(this.rules.other.nonSpaceChar))>4?1:h,s=l.slice(h),h+=e[1].length),u&&this.rules.other.blankLine.test(c)&&(n+=c+`
24
+ `,t=t.substring(c.length+1),r=!0),!r){let e=this.rules.other.nextBulletRegex(h),r=this.rules.other.hrRegex(h),i=this.rules.other.fencesBeginRegex(h),a=this.rules.other.headingBeginRegex(h),o=this.rules.other.htmlBeginRegex(h);for(;t;){let f=t.split(`
25
+ `,1)[0],d;if(c=f,d=this.options.pedantic?c=c.replace(this.rules.other.listReplaceNesting," "):c.replace(this.rules.other.tabCharGlobal," "),i.test(c)||a.test(c)||o.test(c)||e.test(c)||r.test(c))break;if(d.search(this.rules.other.nonSpaceChar)>=h||!c.trim())s+=`
26
+ `+d.slice(h);else{if(u||l.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||i.test(l)||a.test(l)||r.test(l))break;s+=`
27
+ `+c}u||c.trim()||(u=!0),n+=f+`
28
+ `,t=t.substring(f.length+1),l=d.slice(h)}}i.loose||(o?i.loose=!0:this.rules.other.doubleBlankLine.test(n)&&(o=!0));let f=null,d;this.options.gfm&&(f=this.rules.other.listIsTask.exec(s))&&(d="[ ] "!==f[0],s=s.replace(this.rules.other.listReplaceTask,"")),i.items.push({type:"list_item",raw:n,task:!!f,checked:d,loose:!1,text:s,tokens:[]}),i.raw+=n}let s=i.items.at(-1);if(!s)return;s.raw=s.raw.trimEnd(),s.text=s.text.trimEnd(),i.raw=i.raw.trimEnd();for(let t=0;t<i.items.length;t++)if(this.lexer.state.top=!1,i.items[t].tokens=this.lexer.blockTokens(i.items[t].text,[]),!i.loose){let e=i.items[t].tokens.filter(t=>"space"===t.type);i.loose=e.length>0&&e.some(t=>this.rules.other.anyLine.test(t.raw))}if(i.loose)for(let t=0;t<i.items.length;t++)i.items[t].loose=!0;return i}}html(t){let e=this.rules.block.html.exec(t);if(e)return{type:"html",block:!0,raw:e[0],pre:"pre"===e[1]||"script"===e[1]||"style"===e[1],text:e[0]}}def(t){let e=this.rules.block.def.exec(t);if(e){let t=e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=e[2]?e[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",n=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return{type:"def",tag:t,raw:e[0],href:r,title:n}}}table(t){let e=this.rules.block.table.exec(t);if(!e||!this.rules.other.tableDelimiter.test(e[2]))return;let r=tp(e[1]),n=e[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=e[3]?.trim()?e[3].replace(this.rules.other.tableRowBlankLine,"").split(`
29
+ `):[],a={type:"table",raw:e[0],header:[],align:[],rows:[]};if(r.length===n.length){for(let t of n)this.rules.other.tableAlignRight.test(t)?a.align.push("right"):this.rules.other.tableAlignCenter.test(t)?a.align.push("center"):this.rules.other.tableAlignLeft.test(t)?a.align.push("left"):a.align.push(null);for(let t=0;t<r.length;t++)a.header.push({text:r[t],tokens:this.lexer.inline(r[t]),header:!0,align:a.align[t]});for(let t of i)a.rows.push(tp(t,a.header.length).map((t,e)=>({text:t,tokens:this.lexer.inline(t),header:!1,align:a.align[e]})));return a}}lheading(t){let e=this.rules.block.lheading.exec(t);if(e)return{type:"heading",raw:e[0],depth:"="===e[2].charAt(0)?1:2,text:e[1],tokens:this.lexer.inline(e[1])}}paragraph(t){let e=this.rules.block.paragraph.exec(t);if(e){let t=e[1].charAt(e[1].length-1)===`
30
+ `?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:t,tokens:this.lexer.inline(t)}}}text(t){let e=this.rules.block.text.exec(t);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(t){let e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(t){let e=this.rules.inline.tag.exec(t);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(t){let e=this.rules.inline.link.exec(t);if(e){let t=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(t)){if(!this.rules.other.endAngleBracket.test(t))return;let e=tg(t.slice(0,-1),"\\");if((t.length-e.length)%2==0)return}else{let t=function(t){if(-1===t.indexOf(")"))return -1;let e=0;for(let r=0;r<t.length;r++)if("\\"===t[r])r++;else if("("===t[r])e++;else if(")"===t[r]&&--e<0)return r;return e>0?-2:-1}(e[2]);if(-2===t)return;if(t>-1){let r=(0===e[0].indexOf("!")?5:4)+e[1].length+t;e[2]=e[2].substring(0,t),e[0]=e[0].substring(0,r).trim(),e[3]=""}}let r=e[2],n="";if(this.options.pedantic){let t=this.rules.other.pedanticHrefTitle.exec(r);t&&(r=t[1],n=t[3])}else n=e[3]?e[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(r=this.options.pedantic&&!this.rules.other.endAngleBracket.test(t)?r.slice(1):r.slice(1,-1)),tm(e,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:n&&n.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(t,e){let r;if((r=this.rules.inline.reflink.exec(t))||(r=this.rules.inline.nolink.exec(t))){let t=e[(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!t){let t=r[0].charAt(0);return{type:"text",raw:t,text:t}}return tm(r,t,r[0],this.lexer,this.rules)}}emStrong(t,e,r=""){let n=this.rules.inline.emStrongLDelim.exec(t);if(!(!n||n[3]&&r.match(this.rules.other.unicodeAlphaNumeric))&&(!(n[1]||n[2])||!r||this.rules.inline.punctuation.exec(r))){let r=[...n[0]].length-1,i,a,o=r,s=0,l="*"===n[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,e=e.slice(-1*t.length+r);null!=(n=l.exec(e));){if(!(i=n[1]||n[2]||n[3]||n[4]||n[5]||n[6]))continue;if(a=[...i].length,n[3]||n[4]){o+=a;continue}if((n[5]||n[6])&&r%3&&!((r+a)%3)){s+=a;continue}if((o-=a)>0)continue;a=Math.min(a,a+o+s);let e=[...n[0]][0].length,l=t.slice(0,r+n.index+e+a);if(Math.min(r,a)%2){let t=l.slice(1,-1);return{type:"em",raw:l,text:t,tokens:this.lexer.inlineTokens(t)}}let c=l.slice(2,-2);return{type:"strong",raw:l,text:c,tokens:this.lexer.inlineTokens(c)}}}}codespan(t){let e=this.rules.inline.code.exec(t);if(e){let t=e[2].replace(this.rules.other.newLineCharGlobal," "),r=this.rules.other.nonSpaceChar.test(t),n=this.rules.other.startingSpaceChar.test(t)&&this.rules.other.endingSpaceChar.test(t);return r&&n&&(t=t.substring(1,t.length-1)),{type:"codespan",raw:e[0],text:t}}}br(t){let e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}}del(t){let e=this.rules.inline.del.exec(t);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2])}}autolink(t){let e=this.rules.inline.autolink.exec(t);if(e){let t,r;return r="@"===e[2]?"mailto:"+(t=e[1]):t=e[1],{type:"link",raw:e[0],text:t,href:r,tokens:[{type:"text",raw:t,text:t}]}}}url(t){let e;if(e=this.rules.inline.url.exec(t)){let t,r;if("@"===e[2])r="mailto:"+(t=e[0]);else{let n;do n=e[0],e[0]=this.rules.inline._backpedal.exec(e[0])?.[0]??"";while(n!==e[0]);t=e[0],r="www."===e[1]?"http://"+e[0]:e[0]}return{type:"link",raw:e[0],text:t,href:r,tokens:[{type:"text",raw:t,text:t}]}}}inlineText(t){let e=this.rules.inline.text.exec(t);if(e){let t=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:t}}}},tb=class t{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||f,this.options.tokenizer=this.options.tokenizer||new ty,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let e={other:m,block:tl.normal,inline:tc.normal};this.options.pedantic?(e.block=tl.pedantic,e.inline=tc.pedantic):this.options.gfm&&(e.block=tl.gfm,this.options.breaks?e.inline=tc.breaks:e.inline=tc.gfm),this.tokenizer.rules=e}static get rules(){return{block:tl,inline:tc}}static lex(e,r){return new t(r).lex(e)}static lexInline(e,r){return new t(r).inlineTokens(e)}lex(t){t=t.replace(m.carriageReturn,`
31
+ `),this.blockTokens(t,this.tokens);for(let t=0;t<this.inlineQueue.length;t++){let e=this.inlineQueue[t];this.inlineTokens(e.src,e.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,e=[],r=!1){for(this.options.pedantic&&(t=t.replace(m.tabCharGlobal," ").replace(m.spaceLine,""));t;){let n;if(this.options.extensions?.block?.some(r=>!!(n=r.call({lexer:this},t,e))&&(t=t.substring(n.raw.length),e.push(n),!0)))continue;if(n=this.tokenizer.space(t)){t=t.substring(n.raw.length);let r=e.at(-1);1===n.raw.length&&void 0!==r?r.raw+=`
32
+ `:e.push(n);continue}if(n=this.tokenizer.code(t)){t=t.substring(n.raw.length);let r=e.at(-1);r?.type==="paragraph"||r?.type==="text"?(r.raw+=(r.raw.endsWith(`
33
+ `)?"":`
34
+ `)+n.raw,r.text+=`
35
+ `+n.text,this.inlineQueue.at(-1).src=r.text):e.push(n);continue}if((n=this.tokenizer.fences(t))||(n=this.tokenizer.heading(t))||(n=this.tokenizer.hr(t))||(n=this.tokenizer.blockquote(t))||(n=this.tokenizer.list(t))||(n=this.tokenizer.html(t))){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.def(t)){t=t.substring(n.raw.length);let r=e.at(-1);r?.type==="paragraph"||r?.type==="text"?(r.raw+=(r.raw.endsWith(`
36
+ `)?"":`
37
+ `)+n.raw,r.text+=`
38
+ `+n.raw,this.inlineQueue.at(-1).src=r.text):this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title},e.push(n));continue}if((n=this.tokenizer.table(t))||(n=this.tokenizer.lheading(t))){t=t.substring(n.raw.length),e.push(n);continue}let i=t;if(this.options.extensions?.startBlock){let e=1/0,r=t.slice(1),n;this.options.extensions.startBlock.forEach(t=>{"number"==typeof(n=t.call({lexer:this},r))&&n>=0&&(e=Math.min(e,n))}),e<1/0&&e>=0&&(i=t.substring(0,e+1))}if(this.state.top&&(n=this.tokenizer.paragraph(i))){let a=e.at(-1);r&&a?.type==="paragraph"?(a.raw+=(a.raw.endsWith(`
39
+ `)?"":`
40
+ `)+n.raw,a.text+=`
41
+ `+n.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):e.push(n),r=i.length!==t.length,t=t.substring(n.raw.length);continue}if(n=this.tokenizer.text(t)){t=t.substring(n.raw.length);let r=e.at(-1);r?.type==="text"?(r.raw+=(r.raw.endsWith(`
42
+ `)?"":`
43
+ `)+n.raw,r.text+=`
44
+ `+n.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=r.text):e.push(n);continue}if(t){let e="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(e);break}throw Error(e)}}return this.state.top=!0,e}inline(t,e=[]){return this.inlineQueue.push({src:t,tokens:e}),e}inlineTokens(t,e=[]){let r,n=t,i=null;if(this.tokens.links){let t=Object.keys(this.tokens.links);if(t.length>0)for(;null!=(i=this.tokenizer.rules.inline.reflinkSearch.exec(n));)t.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(n=n.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(i=this.tokenizer.rules.inline.anyPunctuation.exec(n));)n=n.slice(0,i.index)+"++"+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!=(i=this.tokenizer.rules.inline.blockSkip.exec(n));)r=i[2]?i[2].length:0,n=n.slice(0,i.index+r)+"["+"a".repeat(i[0].length-r-2)+"]"+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let a=!1,o="";for(;t;){let r;if(a||(o=""),a=!1,this.options.extensions?.inline?.some(n=>!!(r=n.call({lexer:this},t,e))&&(t=t.substring(r.raw.length),e.push(r),!0)))continue;if((r=this.tokenizer.escape(t))||(r=this.tokenizer.tag(t))||(r=this.tokenizer.link(t))){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(r.raw.length);let n=e.at(-1);"text"===r.type&&n?.type==="text"?(n.raw+=r.raw,n.text+=r.text):e.push(r);continue}if((r=this.tokenizer.emStrong(t,n,o))||(r=this.tokenizer.codespan(t))||(r=this.tokenizer.br(t))||(r=this.tokenizer.del(t))||(r=this.tokenizer.autolink(t))||!this.state.inLink&&(r=this.tokenizer.url(t))){t=t.substring(r.raw.length),e.push(r);continue}let i=t;if(this.options.extensions?.startInline){let e=1/0,r=t.slice(1),n;this.options.extensions.startInline.forEach(t=>{"number"==typeof(n=t.call({lexer:this},r))&&n>=0&&(e=Math.min(e,n))}),e<1/0&&e>=0&&(i=t.substring(0,e+1))}if(r=this.tokenizer.inlineText(i)){t=t.substring(r.raw.length),"_"!==r.raw.slice(-1)&&(o=r.raw.slice(-1)),a=!0;let n=e.at(-1);n?.type==="text"?(n.raw+=r.raw,n.text+=r.text):e.push(r);continue}if(t){let e="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(e);break}throw Error(e)}}return e}},tx=class{options;parser;constructor(t){this.options=t||f}space(t){return""}code({text:t,lang:e,escaped:r}){let n=(e||"").match(m.notSpaceStart)?.[0],i=t.replace(m.endingNewline,"")+`
45
+ `;return n?'<pre><code class="language-'+tf(n)+'">'+(r?i:tf(i,!0))+`</code></pre>
46
+ `:"<pre><code>"+(r?i:tf(i,!0))+`</code></pre>
47
+ `}blockquote({tokens:t}){return`<blockquote>
48
+ ${this.parser.parse(t)}</blockquote>
49
+ `}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:e}){return`<h${e}>${this.parser.parseInline(t)}</h${e}>
50
+ `}hr(t){return`<hr>
51
+ `}list(t){let e=t.ordered,r=t.start,n="";for(let e=0;e<t.items.length;e++){let r=t.items[e];n+=this.listitem(r)}let i=e?"ol":"ul";return"<"+i+(e&&1!==r?' start="'+r+'"':"")+`>
52
+ `+n+"</"+i+`>
53
+ `}listitem(t){let e="";if(t.task){let r=this.checkbox({checked:!!t.checked});t.loose?t.tokens[0]?.type==="paragraph"?(t.tokens[0].text=r+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&"text"===t.tokens[0].tokens[0].type&&(t.tokens[0].tokens[0].text=r+" "+tf(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:r+" ",text:r+" ",escaped:!0}):e+=r+" "}return e+=this.parser.parse(t.tokens,!!t.loose),`<li>${e}</li>
54
+ `}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
55
+ `}table(t){let e="",r="";for(let e=0;e<t.header.length;e++)r+=this.tablecell(t.header[e]);e+=this.tablerow({text:r});let n="";for(let e=0;e<t.rows.length;e++){let i=t.rows[e];r="";for(let t=0;t<i.length;t++)r+=this.tablecell(i[t]);n+=this.tablerow({text:r})}return n&&(n=`<tbody>${n}</tbody>`),`<table>
56
+ <thead>
57
+ `+e+`</thead>
58
+ `+n+`</table>
59
+ `}tablerow({text:t}){return`<tr>
60
+ ${t}</tr>
61
+ `}tablecell(t){let e=this.parser.parseInline(t.tokens),r=t.header?"th":"td";return(t.align?`<${r} align="${t.align}">`:`<${r}>`)+e+`</${r}>
62
+ `}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${tf(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:e,tokens:r}){let n=this.parser.parseInline(r),i=td(t);if(null===i)return n;let a='<a href="'+(t=i)+'"';return e&&(a+=' title="'+tf(e)+'"'),a+=">"+n+"</a>"}image({href:t,title:e,text:r,tokens:n}){n&&(r=this.parser.parseInline(n,this.parser.textRenderer));let i=td(t);if(null===i)return tf(r);t=i;let a=`<img src="${t}" alt="${r}"`;return e&&(a+=` title="${tf(e)}"`),a+=">"}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:tf(t.text)}},t_=class{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}},tw=class t{options;renderer;textRenderer;constructor(t){this.options=t||f,this.options.renderer=this.options.renderer||new tx,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new t_}static parse(e,r){return new t(r).parse(e)}static parseInline(e,r){return new t(r).parseInline(e)}parse(t,e=!0){let r="";for(let n=0;n<t.length;n++){let i=t[n];if(this.options.extensions?.renderers?.[i.type]){let t=this.options.extensions.renderers[i.type].call({parser:this},i);if(!1!==t||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(i.type)){r+=t||"";continue}}switch(i.type){case"space":r+=this.renderer.space(i);continue;case"hr":r+=this.renderer.hr(i);continue;case"heading":r+=this.renderer.heading(i);continue;case"code":r+=this.renderer.code(i);continue;case"table":r+=this.renderer.table(i);continue;case"blockquote":r+=this.renderer.blockquote(i);continue;case"list":r+=this.renderer.list(i);continue;case"html":r+=this.renderer.html(i);continue;case"def":r+=this.renderer.def(i);continue;case"paragraph":r+=this.renderer.paragraph(i);continue;case"text":{let a=i,o=this.renderer.text(a);for(;n+1<t.length&&"text"===t[n+1].type;)a=t[++n],o+=`
63
+ `+this.renderer.text(a);e?r+=this.renderer.paragraph({type:"paragraph",raw:o,text:o,tokens:[{type:"text",raw:o,text:o,escaped:!0}]}):r+=o;continue}default:{let t='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(t),"";throw Error(t)}}}return r}parseInline(t,e=this.renderer){let r="";for(let n=0;n<t.length;n++){let i=t[n];if(this.options.extensions?.renderers?.[i.type]){let t=this.options.extensions.renderers[i.type].call({parser:this},i);if(!1!==t||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){r+=t||"";continue}}switch(i.type){case"escape":case"text":r+=e.text(i);break;case"html":r+=e.html(i);break;case"link":r+=e.link(i);break;case"image":r+=e.image(i);break;case"strong":r+=e.strong(i);break;case"em":r+=e.em(i);break;case"codespan":r+=e.codespan(i);break;case"br":r+=e.br(i);break;case"del":r+=e.del(i);break;default:{let t='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(t),"";throw Error(t)}}}return r}},tk=class{options;block;constructor(t){this.options=t||f}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?tb.lex:tb.lexInline}provideParser(){return this.block?tw.parse:tw.parseInline}},tv=new class{defaults=h();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=tw;Renderer=tx;TextRenderer=t_;Lexer=tb;Tokenizer=ty;Hooks=tk;constructor(...t){this.use(...t)}walkTokens(t,e){let r=[];for(let n of t)switch(r=r.concat(e.call(this,n)),n.type){case"table":for(let t of n.header)r=r.concat(this.walkTokens(t.tokens,e));for(let t of n.rows)for(let n of t)r=r.concat(this.walkTokens(n.tokens,e));break;case"list":r=r.concat(this.walkTokens(n.items,e));break;default:{let t=n;this.defaults.extensions?.childTokens?.[t.type]?this.defaults.extensions.childTokens[t.type].forEach(n=>{let i=t[n].flat(1/0);r=r.concat(this.walkTokens(i,e))}):t.tokens&&(r=r.concat(this.walkTokens(t.tokens,e)))}}return r}use(...t){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(t=>{let r={...t};if(r.async=this.defaults.async||r.async||!1,t.extensions&&(t.extensions.forEach(t=>{if(!t.name)throw Error("extension name required");if("renderer"in t){let r=e.renderers[t.name];r?e.renderers[t.name]=function(...e){let n=t.renderer.apply(this,e);return!1===n&&(n=r.apply(this,e)),n}:e.renderers[t.name]=t.renderer}if("tokenizer"in t){if(!t.level||"block"!==t.level&&"inline"!==t.level)throw Error("extension level must be 'block' or 'inline'");let r=e[t.level];r?r.unshift(t.tokenizer):e[t.level]=[t.tokenizer],t.start&&("block"===t.level?e.startBlock?e.startBlock.push(t.start):e.startBlock=[t.start]:"inline"===t.level&&(e.startInline?e.startInline.push(t.start):e.startInline=[t.start]))}"childTokens"in t&&t.childTokens&&(e.childTokens[t.name]=t.childTokens)}),r.extensions=e),t.renderer){let e=this.defaults.renderer||new tx(this.defaults);for(let r in t.renderer){if(!(r in e))throw Error(`renderer '${r}' does not exist`);if(["options","parser"].includes(r))continue;let n=t.renderer[r],i=e[r];e[r]=(...t)=>{let r=n.apply(e,t);return!1===r&&(r=i.apply(e,t)),r||""}}r.renderer=e}if(t.tokenizer){let e=this.defaults.tokenizer||new ty(this.defaults);for(let r in t.tokenizer){if(!(r in e))throw Error(`tokenizer '${r}' does not exist`);if(["options","rules","lexer"].includes(r))continue;let n=t.tokenizer[r],i=e[r];e[r]=(...t)=>{let r=n.apply(e,t);return!1===r&&(r=i.apply(e,t)),r}}r.tokenizer=e}if(t.hooks){let e=this.defaults.hooks||new tk;for(let r in t.hooks){if(!(r in e))throw Error(`hook '${r}' does not exist`);if(["options","block"].includes(r))continue;let n=t.hooks[r],i=e[r];tk.passThroughHooks.has(r)?e[r]=t=>{if(this.defaults.async&&tk.passThroughHooksRespectAsync.has(r))return(async()=>{let r=await n.call(e,t);return i.call(e,r)})();let a=n.call(e,t);return i.call(e,a)}:e[r]=(...t)=>{if(this.defaults.async)return(async()=>{let r=await n.apply(e,t);return!1===r&&(r=await i.apply(e,t)),r})();let r=n.apply(e,t);return!1===r&&(r=i.apply(e,t)),r}}r.hooks=e}if(t.walkTokens){let e=this.defaults.walkTokens,n=t.walkTokens;r.walkTokens=function(t){let r=[];return r.push(n.call(this,t)),e&&(r=r.concat(e.call(this,t))),r}}this.defaults={...this.defaults,...r}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,e){return tb.lex(t,e??this.defaults)}parser(t,e){return tw.parse(t,e??this.defaults)}parseMarkdown(t){return(e,r)=>{let n={...r},i={...this.defaults,...n},a=this.onError(!!i.silent,!!i.async);if(!0===this.defaults.async&&!1===n.async)return a(Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof e>"u"||null===e)return a(Error("marked(): input parameter is undefined or null"));if("string"!=typeof e)return a(Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(i.hooks&&(i.hooks.options=i,i.hooks.block=t),i.async)return(async()=>{let r=i.hooks?await i.hooks.preprocess(e):e,n=await (i.hooks?await i.hooks.provideLexer():t?tb.lex:tb.lexInline)(r,i),a=i.hooks?await i.hooks.processAllTokens(n):n;i.walkTokens&&await Promise.all(this.walkTokens(a,i.walkTokens));let o=await (i.hooks?await i.hooks.provideParser():t?tw.parse:tw.parseInline)(a,i);return i.hooks?await i.hooks.postprocess(o):o})().catch(a);try{i.hooks&&(e=i.hooks.preprocess(e));let r=(i.hooks?i.hooks.provideLexer():t?tb.lex:tb.lexInline)(e,i);i.hooks&&(r=i.hooks.processAllTokens(r)),i.walkTokens&&this.walkTokens(r,i.walkTokens);let n=(i.hooks?i.hooks.provideParser():t?tw.parse:tw.parseInline)(r,i);return i.hooks&&(n=i.hooks.postprocess(n)),n}catch(t){return a(t)}}}onError(t,e){return r=>{if(r.message+=`
64
+ Please report this to https://github.com/markedjs/marked.`,t){let t="<p>An error occurred:</p><pre>"+tf(r.message+"",!0)+"</pre>";return e?Promise.resolve(t):t}if(e)return Promise.reject(r);throw r}}};function tA(t,e){return tv.parse(t,e)}tA.options=tA.setOptions=function(t){return tv.setOptions(t),tA.defaults=tv.defaults,f=tA.defaults,tA},tA.getDefaults=h,tA.defaults=f,tA.use=function(...t){return tv.use(...t),tA.defaults=tv.defaults,f=tA.defaults,tA},tA.walkTokens=function(t,e){return tv.walkTokens(t,e)},tA.parseInline=tv.parseInline,tA.Parser=tw,tA.parser=tw.parse,tA.Renderer=tx,tA.TextRenderer=t_,tA.Lexer=tb,tA.lexer=tb.lex,tA.Tokenizer=ty,tA.Hooks=tk,tA.parse=tA,tA.options,tA.setOptions,tA.use,tA.walkTokens,tA.parseInline,tw.parse,tb.lex;var tM=r(90676),tS="u">typeof performance&&"function"==typeof performance.now,tT=(0,s.K)(()=>tS?performance.now():0,"now"),tC="\uD83E\uDDDC ",t$={parse:"tertiary",prepare:"secondary",measure:"primary",layout:"primary-dark",layoutCore:"error",draw:"primary-light",paint:"secondary-dark",serialize:"tertiary-dark",render:"primary-light"};(class{constructor(){this.enabled=!1,this.autoPrint=!0,this.records=[],this.maxRecords=200,this.roots=[],this.stack=[],this.buckets={}}static{(0,s.K)(this,"Profiler")}enable(){return this.enabled=!0,this}disable(){return this.enabled=!1,this}start(t){this.enabled&&(this.roots=[],this.stack=[],this.buckets={},this.begin(t))}tickSync(t,e){if(!this.enabled)return e();let r=tT();try{return e()}finally{this.buckets[t]=(this.buckets[t]??0)+(tT()-r)}}async tick(t,e){if(!this.enabled)return e();let r=tT();try{return await e()}finally{this.buckets[t]=(this.buckets[t]??0)+(tT()-r)}}stop(){if(!this.enabled)return;for(;this.stack.length>0;)this.end();let t=this.roots.at(-1),e=this.runLabel??t?.name;return t&&(this.records.push({label:e??t.name,tree:t,buckets:{...this.buckets}}),this.records.length>this.maxRecords&&this.records.splice(0,this.records.length-this.maxRecords),this.autoPrint&&this.printSummary(t,e)),this.runLabel=void 0,t}begin(t){if(!this.enabled)return;let e={name:t,start:tT(),duration:-1,children:[]},r=this.stack.at(-1);if(r?r.children.push(e):this.roots.push(e),this.stack.push(e),tS&&"function"==typeof performance.mark)try{performance.mark(`${tC}${t} \u25B6`)}catch{}}end(){if(!this.enabled)return;let t=this.stack.pop();if(!t)return;let e=tT();if(t.duration=e-t.start,tS&&"function"==typeof performance.measure)try{performance.measure(`${tC}${t.name}`,{start:t.start,end:e,detail:{devtools:{dataType:"track-entry",track:"Mermaid render",trackGroup:"Mermaid",color:t$[t.name]??"primary",tooltipText:`${t.name} \u2014 ${t.duration.toFixed(1)} ms`}}})}catch{}}async span(t,e){if(!this.enabled)return e();this.begin(t);try{return await e()}finally{this.end()}}report(){return this.records.at(-1)?.tree??this.roots.at(-1)}clear(){this.records.length=0,this.roots=[],this.stack=[],this.runLabel=void 0}reset(){this.roots=[],this.stack=[]}printSummary(t=this.report(),e){if(!t)return;let r=t.duration,n=e&&e!==t.name?`${t.name} [${e}]`:t.name,i=["ms % phase"],a=(0,s.K)((t,e)=>{let n=" ".repeat(e),o=t.duration.toFixed(1).padStart(8),s=r>0?`${(t.duration/r*100).toFixed(0).padStart(3)}%`:" -";for(let r of(i.push(`${o} ${s} ${n}${t.name}`),t.children))a(r,e+1);if(t.children.length>0){let e=t.children.reduce((t,e)=>t+e.duration,0),r=t.duration-e;if(r>.5){let t=r.toFixed(1).padStart(8);i.push(`${t} ${n} (self)`)}}},"walk");a(t,0);let o=Object.keys(this.buckets);if(o.length>0)for(let t of(i.push("—— buckets (summed) ——"),o))i.push(`${this.buckets[t].toFixed(1).padStart(8)} ${t}`);console.log(`${tC}mermaid render profile \xb7 ${n}
65
+ ${i.join("\n")}`)}}),globalThis.injected??={includeLargeFeatures:!0,profiling:!1,version:"0.0.0"};var tO=l.extend({raf(t){"function"==typeof queueMicrotask?queueMicrotask(t):setTimeout(t,0)}}).extend(c);function tL(t,{markdownAutoWrap:e}){let r=t.replace(/<br\/>/g,"\n").replace(/\n{2,}/g,"\n");return(0,tM.T)(r)}function tE(t){return t.split(/\\n|\n|<br\s*\/?>/gi).map(t=>t.trim().match(/<[^>]+>|[^\s<>]+/g)?.map(t=>({content:t,type:"normal"}))??[])}function tR(t,e={}){let r=tL(t,e),n=tA.lexer(r),i=[[]],a=0;function o(t,e="normal"){"text"===t.type?t.text.split("\n").forEach((t,r)=>{0!==r&&(a++,i.push([])),t.split(" ").forEach(t=>{(t=t.replace(/&#39;/g,"'"))&&i[a].push({content:t,type:e})})}):"strong"===t.type||"em"===t.type?t.tokens.forEach(e=>{o(e,t.type)}):"html"===t.type&&i[a].push({content:t.text,type:"normal"})}return(0,s.K)(o,"processNode"),n.forEach(t=>{"paragraph"===t.type?t.tokens?.forEach(t=>{o(t)}):"html"===t.type?i[a].push({content:t.text,type:"normal"}):i[a].push({content:t.raw,type:"normal"})}),i}function tK(t){return t?`<p>${t.replace(/\\n|\n/g,"<br />")}</p>`:""}function tj(t,{markdownAutoWrap:e}={}){let r=tA.lexer(t);function n(t){if("text"===t.type)return!1===e?t.text.replace(/\n */g,"<br/>").replace(/ /g,"&nbsp;"):t.text.replace(/\n */g,"<br/>");if("strong"===t.type)return`<strong>${t.tokens?.map(n).join("")}</strong>`;if("em"===t.type)return`<em>${t.tokens?.map(n).join("")}</em>`;if("paragraph"===t.type)return`<p>${t.tokens?.map(n).join("")}</p>`;if("space"===t.type)return"";else if("html"===t.type)return`${t.text}`;else if("escape"===t.type)return t.text;return o.R.warn(`Unsupported markdown: ${t.type}`),t.raw}return(0,s.K)(n,"output"),r.map(n).join("")}function tD(t){return Intl.Segmenter?[...new Intl.Segmenter().segment(t)].map(t=>t.segment):[...t]}function tN(t,e){return tP(t,[],tD(e.content),e.type)}function tP(t,e,r,n){if(0===r.length)return[{content:e.join(""),type:n},{content:"",type:n}];let[i,...a]=r,o=[...e,i];return t([{content:o.join(""),type:n}])?tP(t,o,a,n):(0===e.length&&i&&(e.push(i),r.shift()),[{content:e.join(""),type:n},{content:r.join(""),type:n}])}function tI(t,e){if(t.some(({content:t})=>t.includes("\n")))throw Error("splitLineToFitWidth does not support newlines in the line");return tF(t,e)}function tF(t,e,r=[],n=[]){if(0===t.length)return n.length>0&&r.push(n),r.length>0?r:[];let i="";" "===t[0].content&&(i=" ",t.shift());let a=t.shift()??{content:" ",type:"normal"},o=[...n];if(""!==i&&o.push({content:i,type:"normal"}),o.push(a),e(o))return tF(t,e,r,o);if(n.length>0)r.push(n),t.unshift(a);else if(a.content){let[n,i]=tN(e,a);r.push([n]),i.content&&t.unshift(i)}return tF(t,e,r)}function tU(t,e){e&&t.attr("style",e)}async function tz(t,e,r,n,i=!1,o=(0,a.zj)()){let s=t.append("foreignObject");s.attr("width",`${Math.min(10*r,16384)}px`),s.attr("height",`${Math.min(10*r,16384)}px`);let l=s.append("xhtml:div"),c=(0,a.Wi)(e.label)?await (0,a.dj)(e.label.replace(a.Y2.lineBreakRegex,"\n"),o):(0,a.jZ)(e.label,o),u=e.isNode?"nodeLabel":"edgeLabel",h=l.append("span");return h.html(c),tU(h,e.labelStyle),h.attr("class",`${u} ${n}`),tU(l,e.labelStyle),l.style("display","table-cell"),l.style("white-space","nowrap"),l.style("line-height","1.5"),r!==1/0&&(l.style("max-width",r+"px"),l.style("text-align","center")),l.attr("xmlns","http://www.w3.org/1999/xhtml"),i&&l.attr("class","labelBkg"),(await tO.measure(()=>l.node().getBoundingClientRect())).width===r&&(l.style("display","table"),l.style("white-space","break-spaces"),l.style("width",r+"px")),s.node()}function tB(t,e,r,n=!1){let i=t.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",e*r-.1+"em").attr("dy",r+"em");return n&&i.attr("text-anchor","middle"),i}function tY(t,e,r){let n=t.append("text"),i=tB(n,1,e);tX(i,r);let a=i.node().getComputedTextLength();return n.remove(),a}function tH(t,e,r){let n=t.append("text"),i=tB(n,1,e);tX(i,[{content:r,type:"normal"}]);let a=i.node()?.getBoundingClientRect();return a&&n.remove(),a}function tq(t,e,r,n=!1,i=!1){let a=e.append("g"),o=a.insert("rect").attr("class","background").attr("style","stroke: none"),l=a.append("text").attr("y","-10.1");i&&l.attr("text-anchor","middle");let c=0;for(let e of r){let r=(0,s.K)(e=>tY(a,1.1,e)<=t,"checkWidth");for(let t of r(e)?[e]:tI(e,r))tX(tB(l,c,1.1,i),t),c++}if(!n)return l.node();{let t=l.node().getBBox();return o.attr("x",t.x-2).attr("y",t.y-2).attr("width",t.width+4).attr("height",t.height+4),a.node()}}function tW(t){return t.replace(/&(amp|lt|gt);/g,(t,e)=>{switch(e){case"amp":return"&";case"lt":return"<";case"gt":return">";default:return t}})}function tX(t,e){t.text(""),e.forEach((e,r)=>{let n=t.append("tspan").attr("font-style","em"===e.type?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight","strong"===e.type?"bold":"normal");0===r?n.text(tW(e.content)):n.text(" "+tW(e.content))})}async function tG(t,e={}){let r=[];t.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(t,i,o)=>(r.push((async()=>{let r=`${i}:${o}`;return await (0,n.dn)(r)?await (0,n.WY)(r,void 0,{class:"label-icon"}):`<i class='${(0,a.jZ)(t,e).replace(":"," ")}'></i>`})()),t));let i=await Promise.all(r);return t.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>i.shift()??"")}(0,s.K)(tL,"preprocessMarkdown"),(0,s.K)(tE,"nonMarkdownToLines"),(0,s.K)(tR,"markdownToLines"),(0,s.K)(tK,"nonMarkdownToHTML"),(0,s.K)(tj,"markdownToHTML"),(0,s.K)(tD,"splitTextToChars"),(0,s.K)(tN,"splitWordToFitWidth"),(0,s.K)(tP,"splitWordToFitWidthRecursion"),(0,s.K)(tI,"splitLineToFitWidth"),(0,s.K)(tF,"splitLineToFitWidthRecursion"),(0,s.K)(tU,"applyStyle"),(0,s.K)(tz,"addHtmlSpan"),(0,s.K)(tB,"createTspan"),(0,s.K)(tY,"computeWidthOfText"),(0,s.K)(tH,"computeDimensionOfText"),(0,s.K)(tq,"createFormattedText"),(0,s.K)(tW,"decodeHTMLEntities"),(0,s.K)(tX,"updateTextContentAndStyles"),(0,s.K)(tG,"replaceIconSubstring");var tZ=(0,s.K)(async(t,e="",{style:r="",isTitle:n=!1,classes:s="",useHtmlLabels:l=!0,markdown:c=!0,isNode:h=!0,width:f=200,addSvgBackground:d=!1}={},p)=>{if(o.R.debug("XYZ createText",e,r,n,s,l,h,"addSvgBackground: ",d),l){let n=c?tj(e,p):tK(e),o=await tG((0,i.Sm)(n),p),l=e.replace(/\\\\/g,"\\"),u={isNode:h,label:(0,a.Wi)(e)?l:o,labelStyle:r.replace("fill:","color:")};return await tz(t,u,f,s,d,p)}{let a=(0,i.Sm)(e.replace(/<br\s*\/?>/g,"<br/>")),o=tq(f,t,c?tR(a.replace("<br>","<br/>"),p):tE(a),!!e&&d,!h);if(h){/stroke:/.exec(r)&&(r=r.replace("stroke:","lineColor:"));let t=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");(0,u.Ltv)(o).attr("style",t)}else{let t=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");(0,u.Ltv)(o).select("rect").attr("style",t.replace(/background:/g,"fill:"));let e=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");(0,u.Ltv)(o).select("text").attr("style",e)}return n?(0,u.Ltv)(o).selectAll("tspan.text-outer-tspan").classed("title-row",!0):(0,u.Ltv)(o).selectAll("tspan.text-outer-tspan").classed("row",!0),o}},"createText")},69687:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=Function.prototype.toString;let i=function(t){if(null!=t){try{return n.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},70638:(t,e,r)=>{"use strict";r.d(e,{A:()=>o});var n=r(12016),i=r(37846),a=r(19396);let o=function(t){return(0,a.A)(t)?(0,n.A)(t):(0,i.A)(t)}},71606:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(72751),i=r(30253);let a=function(t,e){e=(0,n.A)(e,t);for(var r=0,a=e.length;null!=t&&r<a;)t=t[(0,i.A)(e[r++])];return r&&r==a?t:void 0}},72152:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(52326),i=r(13222);let a=(t,e=100)=>{let r=n.A.parse(t);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,((t,e,r=50)=>{let{r:a,g:o,b:s,a:l}=n.A.parse(t),{r:c,g:u,b:h,a:f}=n.A.parse(e),d=r/100,p=2*d-1,g=l-f,m=((p*g==-1?p:(p+g)/(1+p*g))+1)/2,y=1-m;return(0,i.A)(a*m+c*y,o*m+u*y,s*m+h*y,l*d+f*(1-d))})(r,t,e)}},72521:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(5452),i=r(92459);let a=function(t,e,r){var a=e(t);return(0,i.A)(t)?a:(0,n.A)(a,r(t))}},72751:(t,e,r)=>{"use strict";r.d(e,{A:()=>d});var n,i,a=r(92459),o=r(17334),s=r(59233);function l(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw TypeError("Expected a function");var r=function(){var n=arguments,i=e?e.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var o=t.apply(this,n);return r.cache=a.set(i,o)||a,o};return r.cache=new(l.Cache||s.A),r}l.Cache=s.A;var c=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,u=/\\(\\)?/g,h=(i=(n=l(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(c,function(t,r,n,i){e.push(n?i.replace(u,"$1"):r||t)}),e},function(t){return 500===i.size&&i.clear(),t})).cache,n),f=r(85810);let d=function(t,e){return(0,a.A)(t)?t:(0,o.A)(t,e)?[t]:h((0,f.A)(t))}},74548:(t,e,r)=>{"use strict";r.d(e,{A:()=>g});var n,i=r(4986),a=r(51603).A["__core-js_shared__"],o=(n=/[^.]+$/.exec(a&&a.keys&&a.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",s=r(33761),l=r(69687),c=/^\[object .+?Constructor\]$/,u=Object.prototype,h=Function.prototype.toString,f=u.hasOwnProperty,d=RegExp("^"+h.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");let p=function(t){return!!(0,s.A)(t)&&(!o||!(o in t))&&((0,i.A)(t)?d:c).test((0,l.A)(t))},g=function(t,e){var r=null==t?void 0:t[e];return p(r)?r:void 0}},77494:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=function(t){return null!=t&&"object"==typeof t}},78261:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(74548),i=r(51603);let a=(0,n.A)(i.A,"Set")},78416:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(79800);let i=function(t){return"function"==typeof t?t:n.A}},78437:(t,e,r)=>{"use strict";function n(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}r.d(e,{b:()=>n})},78706:(t,e,r)=>{"use strict";r.d(e,{IU:()=>S,Jo:()=>F,T_:()=>L,UQ:()=>M,a6:()=>T,g0:()=>tf,hq:()=>p,jP:()=>$,lP:()=>A});var n=r(6741),i=r(60703),a=r(10969),o=r(69123),s=r(52691),l=r(31775),c=r(56037),u=r(89851),h=r(33948),f=r(94529),d=(0,u.K)((t,e)=>{if(e)return"translate("+-t.width/2+", "+-t.height/2+")";let r=t.x??0,n=t.y??0;return"translate("+-(r+t.width/2)+", "+-(n+t.height/2)+")"},"computeLabelTransform"),p={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},g={arrow_point:4,arrow_cross:12.5,arrow_circle:12.5};function m(t,e){if(void 0===t||void 0===e)return{angle:0,deltaX:0,deltaY:0};t=y(t),e=y(e);let[r,n]=[t.x,t.y],[i,a]=[e.x,e.y],o=i-r,s=a-n;return{angle:Math.atan(s/o),deltaX:o,deltaY:s}}(0,u.K)(m,"calculateDeltaAndAngle");var y=(0,u.K)(t=>Array.isArray(t)?{x:t[0],y:t[1]}:t,"pointTransformer"),b=(0,u.K)(t=>({x:(0,u.K)(function(e,r,n){let i=0,a=y(n[0]).x<y(n[n.length-1]).x?"left":"right";if(0===r&&Object.hasOwn(p,t.arrowTypeStart)){let{angle:e,deltaX:r}=m(n[0],n[1]);i=p[t.arrowTypeStart]*Math.cos(e)*(r>=0?1:-1)}else if(r===n.length-1&&Object.hasOwn(p,t.arrowTypeEnd)){let{angle:e,deltaX:r}=m(n[n.length-1],n[n.length-2]);i=p[t.arrowTypeEnd]*Math.cos(e)*(r>=0?1:-1)}let o=Math.abs(y(e).x-y(n[n.length-1]).x),s=Math.abs(y(e).y-y(n[n.length-1]).y),l=Math.abs(y(e).x-y(n[0]).x),c=Math.abs(y(e).y-y(n[0]).y),u=p[t.arrowTypeStart],h=p[t.arrowTypeEnd];if(o<h&&o>0&&s<h){let t=h+1-o;t*="right"===a?-1:1,i-=t}if(l<u&&l>0&&c<u){let t=u+1-l;t*="right"===a?-1:1,i+=t}return y(e).x+i},"x"),y:(0,u.K)(function(e,r,n){let i=0,a=y(n[0]).y<y(n[n.length-1]).y?"down":"up";if(0===r&&Object.hasOwn(p,t.arrowTypeStart)){let{angle:e,deltaY:r}=m(n[0],n[1]);i=p[t.arrowTypeStart]*Math.abs(Math.sin(e))*(r>=0?1:-1)}else if(r===n.length-1&&Object.hasOwn(p,t.arrowTypeEnd)){let{angle:e,deltaY:r}=m(n[n.length-1],n[n.length-2]);i=p[t.arrowTypeEnd]*Math.abs(Math.sin(e))*(r>=0?1:-1)}let o=Math.abs(y(e).y-y(n[n.length-1]).y),s=Math.abs(y(e).x-y(n[n.length-1]).x),l=Math.abs(y(e).y-y(n[0]).y),c=Math.abs(y(e).x-y(n[0]).x),u=p[t.arrowTypeStart],h=p[t.arrowTypeEnd];if(o<h&&o>0&&s<h){let t=h+1-o;t*="up"===a?-1:1,i-=t}if(l<u&&l>0&&c<u){let t=u+1-l;t*="up"===a?-1:1,i+=t}return y(e).y+i},"y")}),"getLineFunctionsWithOffset"),x=(0,u.K)((t,e,r,n,i,a=!1,o)=>{e.arrowTypeStart&&k(t,"start",e.arrowTypeStart,r,n,i,a,o),e.arrowTypeEnd&&k(t,"end",e.arrowTypeEnd,r,n,i,a,o)},"addEdgeMarkers"),_={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}},w=["cross","point","circle","lollipop","aggregation","extension","composition","dependency","barb"],k=(0,u.K)((t,e,r,n,i,a,o=!1,s)=>{if(!r||"none"===r)return;let l=_[r],u=l&&w.includes(l.type);if(!l)return void c.R.warn(`Unknown arrow type: ${r}`);let h=l.type,f=`${i}_${a}-${h}${"start"===e?"Start":"End"}${o&&u?"-margin":""}`;if(s&&""!==s.trim()){let r=s.replace(/[^\dA-Za-z]/g,"_"),i=`${f}_${r}`;if(!document.getElementById(i)){let t=document.getElementById(f);if(t){let e=t.cloneNode(!0);e.id=i,e.querySelectorAll("path, circle, line").forEach(t=>{t.setAttribute("stroke",s),l.fill&&t.setAttribute("fill",s)}),t.parentNode?.appendChild(e)}}t.attr(`marker-${e}`,`url(${n}#${i})`)}else t.attr(`marker-${e}`,`url(${n}#${f})`)},"addEdgeMarker"),v=(0,u.K)(t=>"string"==typeof t?t:(0,l.D7)()?.flowchart?.curve,"resolveEdgeCurveType"),A=new Map,M=new Map,S=(0,u.K)(()=>{A.clear(),M.clear()},"clear"),T=(0,u.K)(t=>!!(t.label||t.startLabelLeft||t.startLabelRight||t.endLabelLeft||t.endLabelRight),"hasEdgeLabel"),C=(0,u.K)(t=>t?"string"==typeof t?t:t.reduce((t,e)=>t+";"+e,""):"","getLabelStyles"),$=(0,u.K)(async(t,e)=>{let r,n,s,u=(0,l.D7)(),f=(0,l.E)(u),{labelStyles:p}=(0,a.GX)(e);e.labelStyle=p;let g=t.insert("g").attr("class","edgeLabel"),m=g.insert("g").attr("class","label").attr("data-id",e.id),y="markdown"===e.labelType,b=await (0,o.GZ)(t,e.label,{style:C(e.labelStyle),useHtmlLabels:f,addSvgBackground:!0,isNode:!1,markdown:y,width:void 0},u);if(m.node().appendChild(b),c.R.info("abc82",e,e.labelType),f){let t=b.children[0],e=(0,h.Ltv)(b);n=r=await o.lT.measure(()=>t.getBoundingClientRect()),e.attr("width",r.width),e.attr("height",r.height)}else{let t=(0,h.Ltv)(b).select("text").node();await o.lT.measure(()=>{r=b.getBBox(),n=t&&"function"==typeof t.getBBox?t.getBBox():r})}if(m.attr("transform",d(n,f)),A.set(e.id,g),e.width=r.width,e.height=r.height,e.startLabelLeft){let r=t.insert("g").attr("class","edgeTerminals"),n=r.insert("g").attr("class","inner"),a=await (0,i.DA)(n,e.startLabelLeft,C(e.labelStyle)||"",!1,!1);s=a;let o=a.getBBox();if(f){let t=a.children[0],e=(0,h.Ltv)(a);o=t.getBoundingClientRect(),e.attr("width",o.width),e.attr("height",o.height)}n.attr("transform",d(o,f)),M.get(e.id)||M.set(e.id,{}),M.get(e.id).startLeft=r,O(s,e.startLabelLeft)}if(e.startLabelRight){let r=t.insert("g").attr("class","edgeTerminals"),n=r.insert("g").attr("class","inner"),a=await (0,i.DA)(n,e.startLabelRight,C(e.labelStyle)||"",!1,!1);s=a;let o=a.getBBox();if(f){let t=a.children[0],e=(0,h.Ltv)(a);o=t.getBoundingClientRect(),e.attr("width",o.width),e.attr("height",o.height)}n.attr("transform",d(o,f)),M.get(e.id)||M.set(e.id,{}),M.get(e.id).startRight=r,O(s,e.startLabelRight)}if(e.endLabelLeft){let r=t.insert("g").attr("class","edgeTerminals"),n=r.insert("g").attr("class","inner"),a=await (0,i.DA)(r,e.endLabelLeft,C(e.labelStyle)||"",!1,!1);s=a;let o=a.getBBox();if(f){let t=a.children[0],e=(0,h.Ltv)(a);o=t.getBoundingClientRect(),e.attr("width",o.width),e.attr("height",o.height)}n.attr("transform",d(o,f)),M.get(e.id)||M.set(e.id,{}),M.get(e.id).endLeft=r,O(s,e.endLabelLeft)}if(e.endLabelRight){let r=t.insert("g").attr("class","edgeTerminals"),n=r.insert("g").attr("class","inner"),a=await (0,i.DA)(r,e.endLabelRight,C(e.labelStyle)||"",!1,!1);s=a;let o=a.getBBox();if(f){let t=a.children[0],e=(0,h.Ltv)(a);o=t.getBoundingClientRect(),e.attr("width",o.width),e.attr("height",o.height)}n.attr("transform",d(o,f)),M.get(e.id)||M.set(e.id,{}),M.get(e.id).endRight=r,O(s,e.endLabelRight)}return b},"insertEdgeLabel");function O(t,e){(0,l.E)((0,l.D7)())&&t&&(t.style.width=9*e.length+"px",t.style.height="12px")}(0,u.K)(O,"setTerminalWidth");var L=(0,u.K)((t,e)=>{c.R.debug("Moving label abc88 ",t.id,t.label,A.get(t.id),e);let r=e.updatedPath?e.updatedPath:e.originalPath,i=(0,l.D7)(),{subGraphTitleTotalMargin:a}=(0,n.Oi)(i);if(t.label){let n=A.get(t.id),i=t.x,o=t.y;if(r){let n=s._K.calcLabelPosition(r);c.R.debug("Moving label "+t.label+" from (",i,",",o,") to (",n.x,",",n.y,") abc88"),e.updatedPath&&(i=n.x,o=n.y)}n.attr("transform",`translate(${i}, ${o+a/2})`)}if(t.startLabelLeft){let e=M.get(t.id).startLeft,n=t.x,i=t.y;if(r){let e=s._K.calcTerminalLabelPosition(10*!!t.arrowTypeStart,"start_left",r);n=e.x,i=e.y}e.attr("transform",`translate(${n}, ${i})`)}if(t.startLabelRight){let e=M.get(t.id).startRight,n=t.x,i=t.y;if(r){let e=s._K.calcTerminalLabelPosition(10*!!t.arrowTypeStart,"start_right",r);n=e.x,i=e.y}e.attr("transform",`translate(${n}, ${i})`)}if(t.endLabelLeft){let e=M.get(t.id).endLeft,n=t.x,i=t.y;if(r){let e=s._K.calcTerminalLabelPosition(10*!!t.arrowTypeEnd,"end_left",r);n=e.x,i=e.y}e.attr("transform",`translate(${n}, ${i})`)}if(t.endLabelRight){let e=M.get(t.id).endRight,n=t.x,i=t.y;if(r){let e=s._K.calcTerminalLabelPosition(10*!!t.arrowTypeEnd,"end_right",r);n=e.x,i=e.y}e.attr("transform",`translate(${n}, ${i})`)}},"positionEdgeLabel"),E=(0,u.K)((t,e)=>{if(!t?.isLabelEdge||!t?.id?.endsWith("-to-label")||!Array.isArray(e)||2!==e.length)return e;let[r,n]=e,i=Math.abs(n.x-r.x),a=Math.abs(n.y-r.y);return i<.001||a<.001?e:a>=i?[r,{x:r.x,y:n.y},n]:[r,{x:n.x,y:r.y},n]},"orthogonalizeToLabelClippedPoints"),R=(0,u.K)((t,e)=>{let r=t.x,n=t.y,i=Math.abs(e.x-r),a=Math.abs(e.y-n),o=t.width/2,s=t.height/2;return i>=o||a>=s},"outsideNode"),K=(0,u.K)((t,e,r)=>{c.R.debug(`intersection calc abc89:
66
+ outsidePoint: ${JSON.stringify(e)}
67
+ insidePoint : ${JSON.stringify(r)}
68
+ node : x:${t.x} y:${t.y} w:${t.width} h:${t.height}`);let n=t.x,i=t.y,a=Math.abs(n-r.x),o=t.width/2,s=r.x<e.x?o-a:o+a,l=t.height/2,u=Math.abs(e.y-r.y),h=Math.abs(e.x-r.x);if(Math.abs(i-e.y)*o>Math.abs(n-e.x)*l){let t=r.y<e.y?e.y-l-i:i-l-e.y;s=h*t/u;let n={x:r.x<e.x?r.x+s:r.x-h+s,y:r.y<e.y?r.y+u-t:r.y-u+t};return 0===s&&(n.x=e.x,n.y=e.y),0===h&&(n.x=e.x),0===u&&(n.y=e.y),c.R.debug(`abc89 top/bottom calc, Q ${u}, q ${t}, R ${h}, r ${s}`,n),n}{let t=u*(s=r.x<e.x?e.x-o-n:n-o-e.x)/h,i=r.x<e.x?r.x+h-s:r.x-h+s,a=r.y<e.y?r.y+t:r.y-t;return c.R.debug(`sides calc abc89, Q ${u}, q ${t}, R ${h}, r ${s}`,{_x:i,_y:a}),0===s&&(i=e.x,a=e.y),0===h&&(i=e.x),0===u&&(a=e.y),{x:i,y:a}}},"intersection"),j=(0,u.K)((t,e)=>{c.R.warn("abc88 cutPathAtIntersect",t,e);let r=[],n=t[0],i=!1;return t.forEach(t=>{if(c.R.info("abc88 checking point",t,e),R(e,t)||i)c.R.warn("abc88 outside",t,n),n=t,i||r.push(t);else{let a=K(e,n,t);c.R.debug("abc88 inside",t,n,a),c.R.debug("abc88 intersection",a,e);let o=!1;r.forEach(t=>{o=o||t.x===a.x&&t.y===a.y}),r.some(t=>t.x===a.x&&t.y===a.y)?c.R.warn("abc88 no intersect",a,r):r.push(a),i=!0}}),c.R.debug("returning points",r),r},"cutPathAtIntersect");function D(t){let e=[],r=[];for(let n=1;n<t.length-1;n++){let i=t[n-1],a=t[n],o=t[n+1];i.x===a.x&&a.y===o.y&&Math.abs(a.x-o.x)>5&&Math.abs(a.y-i.y)>5?(e.push(a),r.push(n)):i.y===a.y&&a.x===o.x&&Math.abs(a.x-i.x)>5&&Math.abs(a.y-o.y)>5&&(e.push(a),r.push(n))}return{cornerPoints:e,cornerPointPositions:r}}(0,u.K)(D,"extractCornerPoints");var N=(0,u.K)(function(t,e,r){let n=e.x-t.x,i=e.y-t.y,a=r/Math.sqrt(n*n+i*i);return{x:e.x-a*n,y:e.y-a*i}},"findAdjacentPoint"),P=(0,u.K)(function(t){let{cornerPointPositions:e}=D(t),r=[];for(let n=0;n<t.length;n++)if(e.includes(n)){let e=t[n-1],i=t[n+1],a=t[n],o=N(e,a,5),s=N(i,a,5),l=s.x-o.x,u=s.y-o.y;r.push(o);let h=2*Math.sqrt(2),f={x:a.x,y:a.y};Math.abs(i.x-e.x)>10&&Math.abs(i.y-e.y)>=10?(c.R.debug("Corner point fixing",Math.abs(i.x-e.x),Math.abs(i.y-e.y)),f=a.x===o.x?{x:l<0?o.x-5+h:o.x+5-h,y:u<0?o.y-h:o.y+h}:{x:l<0?o.x-h:o.x+h,y:u<0?o.y-5+h:o.y+5-h}):c.R.debug("Corner point skipping fixing",Math.abs(i.x-e.x),Math.abs(i.y-e.y)),r.push(f,s)}else r.push(t[n]);return r},"fixCorners"),I=(0,u.K)((t,e,r)=>{let n=Math.floor((t-e-r)/4),i=Array(Number.isFinite(n)?Math.max(0,n):0).fill("2 2").join(" ");return`0 ${e} ${i} ${r}`},"generateDashArray"),F=(0,u.K)(function(t,e,r,n,i,o,u,d=!1){let p,m;if(!u)throw Error(`insertEdge: missing diagramId for edge "${e.id}" \u2014 edge IDs require a diagram prefix for uniqueness`);let{handDrawnSeed:y,layout:_}=(0,l.D7)(),w=e.points,k=!1,A=[];for(let t in e.cssCompiledStyles)(0,a.KX)(t)||A.push(e.cssCompiledStyles[t]);if("swimlane"===_){if(o.intersect&&i.intersect&&Array.isArray(w)&&w.length>=2)if(2===w.length)w=[i.intersect(w[0]),o.intersect(w[1])];else{let t=w.slice(1,-1),e=t[0],r=t[t.length-1],n=.5>Math.abs(w[w.length-1].x-r.x)&&.5>Math.abs(w[w.length-1].y-r.y),a=i.intersect(e),s=n?r:o.intersect(r),l=.5>Math.abs(s.x-r.x)&&.5>Math.abs(s.y-r.y);w=[....5>Math.abs(a.x-e.x)&&.5>Math.abs(a.y-e.y)?[]:[a],...t,...l?[]:[s]]}w=E(e,w)}else o.intersect&&i.intersect&&!d&&((w=w.slice(1,e.points.length-1)).unshift(i.intersect(w[0])),w.push(o.intersect(w[w.length-1])));let M=btoa(JSON.stringify(w));e.toCluster&&(c.R.info("to cluster abc88",r.get(e.toCluster)),w=j(e.points,r.get(e.toCluster).node),k=!0),e.fromCluster&&(c.R.debug("from cluster abc88",r.get(e.fromCluster),JSON.stringify(w,null,2)),w=j(w.reverse(),r.get(e.fromCluster).node).reverse(),k=!0);let S=w.filter(t=>!Number.isNaN(t.y)),T=v(e.curve);"rounded"!==T&&(S=P(S));let C=h.lUB;switch(T){case"linear":case"rounded":C=h.lUB;break;case"basis":default:C=h.qrM;break;case"cardinal":C=h.y8u;break;case"bumpX":C=h.Wi0;break;case"bumpY":C=h.PGM;break;case"catmullRom":C=h.oDi;break;case"monotoneX":C=h.nVG;break;case"monotoneY":C=h.uxU;break;case"natural":C=h.Xf2;break;case"step":C=h.GZz;break;case"stepAfter":C=h.UPb;break;case"stepBefore":C=h.dyv}let{x:$,y:O}=b(e),L=(0,h.n8j)().x($).y(O).curve(C);switch(e.thickness){case"normal":default:p="edge-thickness-normal";break;case"thick":p="edge-thickness-thick";break;case"invisible":p="edge-thickness-invisible"}switch(e.pattern){case"solid":default:p+=" edge-pattern-solid";break;case"dotted":p+=" edge-pattern-dotted";break;case"dashed":p+=" edge-pattern-dashed"}let R="rounded"===T?U(B(S,e),5):L(S),K=Array.isArray(e.style)?e.style:[e.style],D=K.find(t=>t?.startsWith("stroke:")),N="";e.animate&&(N="edge-animation-fast"),e.animation&&(N="edge-animation-"+e.animation);let F=!1;if("handDrawn"===e.look){let r=f.A.svg(t);Object.assign([],S);let n=r.path(R,{roughness:.3,seed:y});p+=" transition";let i=(m=(0,h.Ltv)(n).select("path").attr("id",`${u}-${e.id}`).attr("class"," "+p+(e.classes?" "+e.classes:"")+(N?" "+N:"")).attr("style",K?K.reduce((t,e)=>t+";"+e,""):"")).attr("d");m.attr("d",i),t.node().appendChild(m.node())}else{let r=A.join(";"),n=K?K.reduce((t,e)=>t+e+";",""):"",i=(r?r+";"+n+";":n)+";"+(K?K.reduce((t,e)=>t+";"+e,""):"");m=t.append("path").attr("d",R).attr("id",`${u}-${e.id}`).attr("class"," "+p+(e.classes?" "+e.classes:"")+(N?" "+N:"")).attr("style",i),D=i.match(/stroke:([^;]+)/)?.[1],F=!0===e.animate||!!e.animation||r.includes("animation");let a=m.node(),o="function"==typeof a.getTotalLength?a.getTotalLength():0,s=g[e.arrowTypeStart]||0,l=g[e.arrowTypeEnd]||0;if("neo"===e.look&&!F){let t="dotted"===e.pattern||"dashed"===e.pattern?I(o,s,l):`0 ${s} ${o-s-l} ${l}`,r=`stroke-dasharray: ${t}; stroke-dashoffset: 0;`;m.attr("style",r+m.attr("style"))}}m.attr("data-edge",!0),m.attr("data-et","edge"),m.attr("data-id",e.id),m.attr("data-points",M),m.attr("data-look",(0,s.KL)(e.look)),e.showPoints&&S.forEach(e=>{t.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",e.x).attr("cy",e.y)});let z="";((0,l.D7)().flowchart.arrowMarkerAbsolute||(0,l.D7)().state.arrowMarkerAbsolute)&&(z=(z=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(").replace(/\)/g,"\\)")),c.R.info("arrowTypeStart",e.arrowTypeStart),c.R.info("arrowTypeEnd",e.arrowTypeEnd);let Y=!F&&e?.look==="neo";x(m,e,z,u,n,Y,D);let H=Math.floor(w.length/2),q=w[H];s._K.isLabelCoordinateInPath(q,m.attr("d"))||(k=!0);let W={};return k&&(W.updatedPath=w),W.originalPath=e.points,W},"insertEdge");function U(t,e){if(t.length<2)return"";let r="",n=t.length;for(let i=0;i<n;i++){let a=t[i],o=t[i-1],s=t[i+1];if(0===i)r+=`M${a.x},${a.y}`;else if(i===n-1)r+=`L${a.x},${a.y}`;else{let t=a.x-o.x,n=a.y-o.y,i=s.x-a.x,l=s.y-a.y,c=Math.hypot(t,n),u=Math.hypot(i,l);if(c<1e-5||u<1e-5){r+=`L${a.x},${a.y}`;continue}let h=t/c,f=n/c,d=i/u,p=l/u,g=Math.acos(Math.max(-1,Math.min(1,h*d+f*p)));if(g<1e-5||1e-5>Math.abs(Math.PI-g)){r+=`L${a.x},${a.y}`;continue}let m=Math.min(e/Math.sin(g/2),c/2,u/2),y=a.x-h*m,b=a.y-f*m,x=a.x+d*m,_=a.y+p*m;r+=`L${y},${b}Q${a.x},${a.y} ${x},${_}`}}return r}function z(t,e){if(!t||!e)return{angle:0,deltaX:0,deltaY:0};let r=e.x-t.x,n=e.y-t.y;return{angle:Math.atan2(n,r),deltaX:r,deltaY:n}}function B(t,e){let r=t.map(t=>({...t}));if(t.length>=2&&p[e.arrowTypeStart]){let n=p[e.arrowTypeStart],i=t[0],{angle:a}=z(i,t[1]),o=n*Math.cos(a),s=n*Math.sin(a);r[0].x=i.x+o,r[0].y=i.y+s}let n=t.length;if(n>=2&&p[e.arrowTypeEnd]){let i=p[e.arrowTypeEnd],a=t[n-1],{angle:o}=z(t[n-2],a),s=i*Math.cos(o),l=i*Math.sin(o);r[n-1].x=a.x-s,r[n-1].y=a.y-l}return r}(0,u.K)(U,"generateRoundedPath"),(0,u.K)(z,"calculateDeltaAndAngle"),(0,u.K)(B,"applyMarkerOffsetsToPoints");var Y=(0,u.K)((t,e,r,n)=>{e.forEach(e=>{th[e](t,r,n)})},"insertMarkers"),H=(0,u.K)((t,e,r)=>{c.R.trace("Making markers for ",r),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionStart").attr("class","marker extension "+e).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"),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionEnd").attr("class","marker extension "+e).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"),t.append("marker").attr("id",r+"_"+e+"-extensionStart-margin").attr("class","marker extension "+e).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"),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionEnd-margin").attr("class","marker extension "+e).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"),q=(0,u.K)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionStart").attr("class","marker composition "+e).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"),t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionEnd").attr("class","marker composition "+e).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"),t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionStart-margin").attr("class","marker composition "+e).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"),t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionEnd-margin").attr("class","marker composition "+e).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"),W=(0,u.K)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationStart").attr("class","marker aggregation "+e).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"),t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationEnd").attr("class","marker aggregation "+e).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"),t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationStart-margin").attr("class","marker aggregation "+e).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"),t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationEnd-margin").attr("class","marker aggregation "+e).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"),X=(0,u.K)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyStart").attr("class","marker dependency "+e).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"),t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyEnd").attr("class","marker dependency "+e).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"),t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyStart-margin").attr("class","marker dependency "+e).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"),t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyEnd-margin").attr("class","marker dependency "+e).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"),G=(0,u.K)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopStart").attr("class","marker lollipop "+e).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),t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopEnd").attr("class","marker lollipop "+e).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),t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopStart-margin").attr("class","marker lollipop "+e).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),t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopEnd-margin").attr("class","marker lollipop "+e).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"),Z=(0,u.K)((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-pointEnd").attr("class","marker "+e).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"),t.append("marker").attr("id",r+"_"+e+"-pointStart").attr("class","marker "+e).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"),t.append("marker").attr("id",r+"_"+e+"-pointEnd-margin").attr("class","marker "+e).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"),t.append("marker").attr("id",r+"_"+e+"-pointStart-margin").attr("class","marker "+e).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"),V=(0,u.K)((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-circleEnd").attr("class","marker "+e).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"),t.append("marker").attr("id",r+"_"+e+"-circleStart").attr("class","marker "+e).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"),t.append("marker").attr("id",r+"_"+e+"-circleEnd-margin").attr("class","marker "+e).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"),t.append("marker").attr("id",r+"_"+e+"-circleStart-margin").attr("class","marker "+e).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"),Q=(0,u.K)((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-crossEnd").attr("class","marker cross "+e).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"),t.append("marker").attr("id",r+"_"+e+"-crossStart").attr("class","marker cross "+e).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"),t.append("marker").attr("id",r+"_"+e+"-crossEnd-margin").attr("class","marker cross "+e).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),t.append("marker").attr("id",r+"_"+e+"-crossStart-margin").attr("class","marker cross "+e).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"),J=(0,u.K)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-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"),tt=(0,u.K)((t,e,r)=>{let{themeVariables:n}=(0,l.zj)(),{transitionColor:i}=n;t.append("defs").append("marker").attr("id",r+"_"+e+"-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"),t.append("defs").append("marker").attr("id",r+"_"+e+"-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"),te=(0,u.K)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-onlyOneStart").attr("class","marker onlyOne "+e).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"),t.append("defs").append("marker").attr("id",r+"_"+e+"-onlyOneEnd").attr("class","marker onlyOne "+e).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"),tr=(0,u.K)((t,e,r)=>{let n=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrOneStart").attr("class","marker zeroOrOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");n.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),n.append("path").attr("d","M9,0 L9,18");let i=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+e).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"),tn=(0,u.K)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-oneOrMoreStart").attr("class","marker oneOrMore "+e).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"),t.append("defs").append("marker").attr("id",r+"_"+e+"-oneOrMoreEnd").attr("class","marker oneOrMore "+e).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"),ti=(0,u.K)((t,e,r)=>{let n=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");n.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),n.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");let i=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+e).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"),ta=(0,u.K)((t,e,r)=>{let{themeVariables:n}=(0,l.zj)(),{strokeWidth:i}=n;t.append("defs").append("marker").attr("id",r+"_"+e+"-onlyOneStart").attr("class","marker onlyOne "+e).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}`),t.append("defs").append("marker").attr("id",r+"_"+e+"-onlyOneEnd").attr("class","marker onlyOne "+e).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"),to=(0,u.K)((t,e,r)=>{let{themeVariables:n}=(0,l.zj)(),{strokeWidth:i,mainBkg:a}=n,o=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrOneStart").attr("class","marker zeroOrOne "+e).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=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+e).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"),ts=(0,u.K)((t,e,r)=>{let{themeVariables:n}=(0,l.zj)(),{strokeWidth:i}=n;t.append("defs").append("marker").attr("id",r+"_"+e+"-oneOrMoreStart").attr("class","marker oneOrMore "+e).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}`),t.append("defs").append("marker").attr("id",r+"_"+e+"-oneOrMoreEnd").attr("class","marker oneOrMore "+e).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"),tl=(0,u.K)((t,e,r)=>{let{themeVariables:n}=(0,l.zj)(),{strokeWidth:i,mainBkg:a}=n,o=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+e).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=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+e).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"),tc=(0,u.K)((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d",`M0,0
69
+ L20,10
70
+ M20,10
71
+ L0,20`)},"requirement_arrow"),tu=(0,u.K)((t,e,r)=>{let{themeVariables:n}=(0,l.zj)(),{strokeWidth:i}=n;t.append("defs").append("marker").attr("id",r+"_"+e+"-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
72
+ L20,10
73
+ M20,10
74
+ L0,20`).attr("stroke-linejoin","miter")},"requirement_arrow_neo"),th={extension:H,composition:q,aggregation:W,dependency:X,lollipop:G,point:Z,circle:V,cross:Q,barb:J,barbNeo:tt,only_one:te,zero_or_one:tr,one_or_more:tn,zero_or_more:ti,only_one_neo:ta,zero_or_one_neo:to,one_or_more_neo:ts,zero_or_more_neo:tl,requirement_arrow:tc,requirement_contains:(0,u.K)((t,e,r)=>{let n=t.append("defs").append("marker").attr("id",r+"_"+e+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");n.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),n.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),n.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),requirement_arrow_neo:tu,requirement_contains_neo:(0,u.K)((t,e,r)=>{let{themeVariables:n}=(0,l.zj)(),{strokeWidth:i}=n,a=t.append("defs").append("marker").attr("id",r+"_"+e+"-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")},tf=Y},79800:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=function(t){return t}},81019:(t,e,r)=>{"use strict";r.d(e,{A:()=>u});var n=r(95749),i=r(52766),a=r(77494),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1;var s=r(32521),l=r(21719),c=l.A&&l.A.isTypedArray;let u=c?(0,s.A)(c):function(t){return(0,a.A)(t)&&(0,i.A)(t.length)&&!!o[(0,n.A)(t)]}},81807:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=function(t){return function(e){return null==e?void 0:e[t]}}},83438:(t,e,r)=>{"use strict";function n(t){return null==t||"object"!=typeof t&&"function"!=typeof t}r.d(e,{s:()=>n})},84485:(t,e,r)=>{"use strict";e.J=function(t){if(!t)return n.BLANK_URL;var e,r=i(t.trim());do e=(r=i(r=r.replace(n.ctrlCharactersRegex,"").replace(n.htmlEntitiesRegex,function(t,e){return String.fromCharCode(e)}).replace(n.htmlCtrlEntityRegex,"").replace(n.ctrlCharactersRegex,"").replace(n.whitespaceEscapeCharsRegex,"").trim())).match(n.ctrlCharactersRegex)||r.match(n.htmlEntitiesRegex)||r.match(n.htmlCtrlEntityRegex)||r.match(n.whitespaceEscapeCharsRegex);while(e&&e.length>0);var a=r;if(!a)return n.BLANK_URL;if(n.relativeFirstCharacters.indexOf(a[0])>-1)return a;var o=a.trimStart(),s=o.match(n.urlSchemeRegex);if(!s)return a;var l=s[0].toLowerCase().trim();if(n.invalidProtocolRegex.test(l))return n.BLANK_URL;var c=o.replace(/\\/g,"/");if("mailto:"===l||l.includes("://"))return c;if("http:"===l||"https:"===l){if(!URL.canParse(c))return n.BLANK_URL;var u=new URL(c);return u.protocol=u.protocol.toLowerCase(),u.hostname=u.hostname.toLowerCase(),u.toString()}return c};var n=r(25208);function i(t){try{return decodeURIComponent(t)}catch(e){return t}}},85810:(t,e,r)=>{"use strict";r.d(e,{A:()=>h});var n=r(29703),i=r(12602),a=r(92459),o=r(38374),s=1/0,l=n.A?n.A.prototype:void 0,c=l?l.toString:void 0;let u=function t(e){if("string"==typeof e)return e;if((0,a.A)(e))return(0,i.A)(e,t)+"";if((0,o.A)(e))return c?c.call(e):"";var r=e+"";return"0"==r&&1/e==-s?"-0":r},h=function(t){return null==t?"":u(t)}},86953:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(59233);function i(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new n.A;++e<r;)this.add(t[e])}i.prototype.add=i.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},i.prototype.has=function(t){return this.__data__.has(t)};let a=i},87789:(t,e,r)=>{"use strict";r.d(e,{P:()=>i});let n="object"==typeof globalThis&&globalThis||"object"==typeof window&&window||"object"==typeof self&&self||"object"==typeof global&&global||function(){return this}();function i(t){return void 0!==n.Buffer&&n.Buffer.isBuffer(t)}},89851:(t,e,r)=>{"use strict";r.d(e,{K:()=>i,V:()=>a});var n=Object.defineProperty,i=(t,e)=>n(t,"name",{value:e,configurable:!0}),a=(t,e)=>{for(var r in e)n(t,r,{get:e[r],enumerable:!0})}},90377:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(74548);let i=function(){try{var t=(0,n.A)(Object,"defineProperty");return t({},"",{}),t}catch(t){}}()},90676:(t,e,r)=>{"use strict";function n(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var n=Array.from("string"==typeof t?[t]:t);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,"");var i=n.reduce(function(t,e){var r=e.match(/\n([\t ]+|(?!\s).)/g);return r?t.concat(r.map(function(t){var e,r;return null!=(r=null==(e=t.match(/[\t ]/g))?void 0:e.length)?r:0})):t},[]);if(i.length){var a=RegExp("\n[ ]{".concat(Math.min.apply(Math,i),"}"),"g");n=n.map(function(t){return t.replace(a,"\n")})}n[0]=n[0].replace(/^\r?\n/,"");var o=n[0];return e.forEach(function(t,e){var r=o.match(/(?:^|\n)( *)$/),i=r?r[1]:"",a=t;"string"==typeof t&&t.includes("\n")&&(a=String(t).split("\n").map(function(t,e){return 0===e?t:"".concat(i).concat(t)}).join("\n")),o+=a+n[e+1]}),o}r.d(e,{T:()=>n})},91359:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=function(){return[]}},91992:(t,e,r)=>{"use strict";let n;function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}r.d(e,{A:()=>tx});let a=Object.entries,o=Object.setPrototypeOf,s=Object.isFrozen,l=Object.getPrototypeOf,c=Object.getOwnPropertyDescriptor,u=Object.freeze,h=Object.seal,f=Object.create,d="u">typeof Reflect&&Reflect,p=d.apply,g=d.construct;u||(u=function(t){return t}),h||(h=function(t){return t}),p||(p=function(t,e){for(var r=arguments.length,n=Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];return t.apply(e,n)}),g||(g=function(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return new t(...r)});let m=D(Array.prototype.forEach),y=D(Array.prototype.lastIndexOf),b=D(Array.prototype.pop),x=D(Array.prototype.push),_=D(Array.prototype.splice),w=Array.isArray,k=D(String.prototype.toLowerCase),v=D(String.prototype.toString),A=D(String.prototype.match),M=D(String.prototype.replace),S=D(String.prototype.indexOf),T=D(String.prototype.trim),C=D(Number.prototype.toString),$=D(Boolean.prototype.toString),O="u"<typeof BigInt?null:D(BigInt.prototype.toString),L="u"<typeof Symbol?null:D(Symbol.prototype.toString),E=D(Object.prototype.hasOwnProperty),R=D(Object.prototype.toString),K=D(RegExp.prototype.test),j=(tb=TypeError,function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];return g(tb,e)});function D(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return p(t,e,n)}}function N(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:k;if(o&&o(t,null),!w(e))return t;let n=e.length;for(;n--;){let i=e[n];if("string"==typeof i){let t=r(i);t!==i&&(s(e)||(e[n]=t),i=t)}t[i]=!0}return t}function P(t){let e=f(null);for(let n of a(t)){var r=function(t){if(Array.isArray(t))return t}(n)||function(t){var e=null==t?null:"u">typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var r,n,i,a,o=[],s=!0,l=!1;try{i=(e=e.call(t)).next,!1;for(;!(s=(r=i.call(e)).done)&&(o.push(r.value),2!==o.length);s=!0);}catch(t){l=!0,n=t}finally{try{if(!s&&null!=e.return&&(a=e.return(),Object(a)!==a))return}finally{if(l)throw n}}return o}}(n)||function(t){if(t){if("string"==typeof t)return i(t,2);var e=({}).toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?i(t,2):void 0}}(n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();let a=r[0],o=r[1];E(t,a)&&(w(o)?e[a]=function(t){for(let e=0;e<t.length;e++)E(t,e)||(t[e]=null);return t}(o):o&&"object"==typeof o&&o.constructor===Object?e[a]=P(o):e[a]=o)}return e}function I(t,e){for(;null!==t;){let r=c(t,e);if(r){if(r.get)return D(r.get);if("function"==typeof r.value)return D(r.value)}t=l(t)}return function(){return null}}let F=u(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),U=u(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),z=u(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),B=u(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Y=u(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),H=u(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),q=u(["#text"]),W=u(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),X=u(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),G=u(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Z=u(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),V=h(/{{[\w\W]*|^[\w\W]*}}/g),Q=h(/<%[\w\W]*|^[\w\W]*%>/g),J=h(/\${[\w\W]*/g),tt=h(/^data-[\-\w.\u00B7-\uFFFF]+$/),te=h(/^aria-[\-\w]+$/),tr=h(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),tn=h(/^(?:\w+script|data):/i),ti=h(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ta=h(/^html$/i),to=h(/^[a-z][.\w]*(-[.\w]+)+$/i),ts=h(/<[/\w!]/g),tl=h(/<[/\w]/g),tc=h(/<\/no(script|embed|frames)/i),tu=h(/\/>/i),th=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],tf=u(N({},th)),td=(n={},m(th,t=>{n[t]=h(RegExp("</"+t+"(?=[\\t\\n\\f\\r />])","i"))}),u(n)),tp=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;let r=null,n="data-tt-policy-suffix";e&&e.hasAttribute(n)&&(r=e.getAttribute(n));let i="dompurify"+(r?"#"+r:"");try{return t.createPolicy(i,{createHTML:t=>t,createScriptURL:t=>t})}catch(t){return console.warn("TrustedTypes policy "+i+" could not be created."),null}},tg=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},tm=function(t,e,r,n){return E(t,e)&&w(t[e])?N(n.base?P(n.base):{},t[e],n.transform):r},ty=function(t,e,r){let n=E(t,e)?t[e]:void 0;return n&&"object"==typeof n?P(n):r()};var tb,tx=function t(){let e,r,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"u"<typeof window?null:window,i=e=>t(e);if(i.version="3.4.14",i.removed=[],!n||!n.document||9!==n.document.nodeType||!n.Element)return i.isSupported=!1,i;let o=n.document,s=o,l=s.currentScript;n.DocumentFragment;let c=n.HTMLTemplateElement,d=n.Node,p=n.Element,g=n.NodeFilter;void 0===n.NamedNodeMap&&(n.NamedNodeMap||n.MozNamedAttrMap),n.HTMLFormElement;let D=n.DOMParser,th=n.trustedTypes,tb=p.prototype,tx=I(tb,"cloneNode"),t_=I(tb,"remove"),tw=I(tb,"nextSibling"),tk=I(tb,"childNodes"),tv=I(tb,"parentNode"),tA=I(tb,"shadowRoot"),tM=I(tb,"attributes"),tS=d&&d.prototype?I(d.prototype,"nodeType"):null,tT=d&&d.prototype?I(d.prototype,"nodeName"):null,tC=d&&d.prototype?I(d.prototype,"ownerDocument"):null,t$=function(t){return tS?tS(t):t.nodeType},tO=function(t){return tT?tT(t):t.nodeName};if("function"==typeof c){let t=o.createElement("template");t.content&&t.content.ownerDocument&&(o=t.content.ownerDocument)}let tL="",tE=!1,tR=0,tK=function(){if(tR>0)throw j('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},tj=function(t){tK(),tR++;try{return e.createHTML(t)}finally{tR--}},tD=function(t){tK(),tR++;try{return e.createScriptURL(t)}finally{tR--}},tN=o,tP=tN.implementation,tI=tN.createNodeIterator,tF=tN.createDocumentFragment,tU=tN.getElementsByTagName,tz=s.importNode,tB=tg();i.isSupported="function"==typeof a&&"function"==typeof tv&&tP&&void 0!==tP.createHTMLDocument;let tY=tr,tH=null,tq=N({},[...F,...U,...z,...Y,...q]),tW=null,tX=N({},[...W,...X,...G,...Z]),tG=Object.seal(f(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),tZ=null,tV=null,tQ=Object.seal(f(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),tJ=!0,t0=!0,t1=!1,t2=!0,t3=!1,t5=!0,t6=!1,t8=!1,t4=null,t9=null,t7=!1,et=!1,ee=!1,er=!1,en=!0,ei=!1,ea="user-content-",eo=!0,es=!1,el={},ec=null,eu=N({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]),eh=null,ef=N({},["audio","video","img","source","image","track"]),ed=null,ep=N({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),eg="http://www.w3.org/1998/Math/MathML",em="http://www.w3.org/2000/svg",ey="http://www.w3.org/1999/xhtml",eb=ey,ex=!1,e_=null,ew=N({},[eg,em,ey],v),ek=u(["mi","mo","mn","ms","mtext"]),ev=N({},ek),eA=u(["annotation-xml"]),eM=N({},eA),eS=N({},["title","style","font","a","script"]),eT=null,eC=["application/xhtml+xml","text/html"],e$=null,eO=null,eL=o.createElement("form"),eE=function(t){return t instanceof RegExp||t instanceof Function},eR=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(eO&&eO===t)return;t&&"object"==typeof t||(t={}),t=P(t),e$="application/xhtml+xml"===(eT=-1===eC.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE)?v:k,tH=tm(t,"ALLOWED_TAGS",tq,{transform:e$}),tW=tm(t,"ALLOWED_ATTR",tX,{transform:e$}),e_=tm(t,"ALLOWED_NAMESPACES",ew,{transform:v}),ed=tm(t,"ADD_URI_SAFE_ATTR",ep,{transform:e$,base:ep}),eh=tm(t,"ADD_DATA_URI_TAGS",ef,{transform:e$,base:ef}),ec=tm(t,"FORBID_CONTENTS",eu,{transform:e$}),tZ=tm(t,"FORBID_TAGS",P({}),{transform:e$}),tV=tm(t,"FORBID_ATTR",P({}),{transform:e$}),el=!!E(t,"USE_PROFILES")&&(t.USE_PROFILES&&"object"==typeof t.USE_PROFILES?P(t.USE_PROFILES):t.USE_PROFILES),tJ=!1!==t.ALLOW_ARIA_ATTR,t0=!1!==t.ALLOW_DATA_ATTR,t1=t.ALLOW_UNKNOWN_PROTOCOLS||!1,t2=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,t3=t.SAFE_FOR_TEMPLATES||!1,t5=!1!==t.SAFE_FOR_XML,t6=t.WHOLE_DOCUMENT||!1,et=t.RETURN_DOM||!1,ee=t.RETURN_DOM_FRAGMENT||!1,er=t.RETURN_TRUSTED_TYPE||!1,t7=t.FORCE_BODY||!1,en=!1!==t.SANITIZE_DOM,ei=t.SANITIZE_NAMED_PROPS||!1,eo=!1!==t.KEEP_CONTENT,es=t.IN_PLACE||!1,tY=!function(t){try{return K(t,""),!0}catch(t){return!1}}(t.ALLOWED_URI_REGEXP)?tr:t.ALLOWED_URI_REGEXP,eb="string"==typeof t.NAMESPACE?t.NAMESPACE:ey,ev=ty(t,"MATHML_TEXT_INTEGRATION_POINTS",()=>N({},ek)),eM=ty(t,"HTML_INTEGRATION_POINTS",()=>N({},eA));let n=ty(t,"CUSTOM_ELEMENT_HANDLING",()=>f(null));if(tG=f(null),E(n,"tagNameCheck")&&eE(n.tagNameCheck)&&(tG.tagNameCheck=n.tagNameCheck),E(n,"attributeNameCheck")&&eE(n.attributeNameCheck)&&(tG.attributeNameCheck=n.attributeNameCheck),E(n,"allowCustomizedBuiltInElements")&&"boolean"==typeof n.allowCustomizedBuiltInElements&&(tG.allowCustomizedBuiltInElements=n.allowCustomizedBuiltInElements),h(tG),t3&&(t0=!1),ee&&(et=!0),el&&(tH=N({},q),tW=f(null),!0===el.html&&(N(tH,F),N(tW,W)),!0===el.svg&&(N(tH,U),N(tW,X),N(tW,Z)),!0===el.svgFilters&&(N(tH,z),N(tW,X),N(tW,Z)),!0===el.mathMl&&(N(tH,Y),N(tW,G),N(tW,Z))),tQ.tagCheck=null,tQ.attributeCheck=null,E(t,"ADD_TAGS")&&("function"==typeof t.ADD_TAGS?tQ.tagCheck=t.ADD_TAGS:w(t.ADD_TAGS)&&(tH===tq&&(tH=P(tH)),N(tH,t.ADD_TAGS,e$))),E(t,"ADD_ATTR")&&("function"==typeof t.ADD_ATTR?tQ.attributeCheck=t.ADD_ATTR:w(t.ADD_ATTR)&&(tW===tX&&(tW=P(tW)),N(tW,t.ADD_ATTR,e$))),E(t,"ADD_FORBID_CONTENTS")&&w(t.ADD_FORBID_CONTENTS)&&(ec===eu&&(ec=P(ec)),N(ec,t.ADD_FORBID_CONTENTS,e$)),eo&&(tH["#text"]=!0),t6&&N(tH,["html","head","body"]),tH.table&&(N(tH,["tbody"]),delete tZ.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw j('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw j('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');let r=e;e=t.TRUSTED_TYPES_POLICY;try{tL=tj("")}catch(t){throw e=r,t}}else null===t.TRUSTED_TYPES_POLICY?(e=void 0,tL=""):(void 0===e&&(tE||(r=tp(th,l),tE=!0),e=r),e&&"string"==typeof tL&&(tL=tj("")));u&&u(t),eO=t},eK=N({},[...U,...z,...B]),ej=N({},[...Y,...H]),eD=function(t){var e,r,n;let i=tv(t);i&&i.tagName||(i={namespaceURI:eb,tagName:"template"});let a=k(t.tagName),o=k(i.tagName);return!!e_[t.namespaceURI]&&(t.namespaceURI===em?(e=i).namespaceURI===ey?"svg"===a:e.namespaceURI===eg?"svg"===a&&("annotation-xml"===o||ev[o]):!!eK[a]:t.namespaceURI===eg?(r=i).namespaceURI===ey?"math"===a:r.namespaceURI===em?"math"===a&&eM[o]:!!ej[a]:t.namespaceURI===ey?((n=i).namespaceURI!==em||!!eM[o])&&(n.namespaceURI!==eg||!!ev[o])&&!ej[a]&&(eS[a]||!eK[a]):"application/xhtml+xml"===eT&&!!e_[t.namespaceURI])},eN=function(t){x(i.removed,{element:t});try{tv(t).removeChild(t)}catch(e){if(t_(t),!tv(t))throw j("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},eP=function(t,e,r){try{t.removeAttributeNode(e)}catch(e){try{t.removeAttribute(r)}catch(t){}}},eI=function(t){ez(t);let e=tk(t);if(e){let t=[];m(e,e=>{x(t,e)}),m(t,t=>{try{t_(t)}catch(t){}})}let r=tM(t);if(r)for(let e=r.length-1;e>=0;--e){let n=r[e],i=n&&n.name;"string"==typeof i&&eP(t,n,i)}},eF=function(t,e,r){if(!r)try{r=e.getAttributeNode(t)}catch(t){r=null}x(i.removed,{attribute:r||null,from:e});try{r?e.removeAttributeNode(r):e.removeAttribute(t)}catch(r){try{e.removeAttribute(t)}catch(t){}}if("is"===t)if(et||ee)try{eN(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},eU=function(t){let e=tM(t);if(e)for(let r=e.length-1;r>=0;--r){let n=e[r],i=n&&n.name;"string"!=typeof i||tW[e$(i)]||eP(t,n,i)}},ez=function(t){let e=[t];for(;e.length>0;){let t=e.pop();1===t$(t)&&eU(t);let r=tk(t);if(r)for(let t=r.length-1;t>=0;--t)e.push(r[t])}},eB=function(t,e){return!!t5&&("patchsrc"===t||"for"===t&&"label"!==e&&"output"!==e)},eY=function(t){if(!t5)return;let e=[t];for(;e.length>0;){let t=e.pop(),r=t$(t);if(7===r||8===r&&K(tl,t.data)){try{t_(t)}catch(t){}continue}if(1===r){let e=e$(tO(t));try{t.hasAttribute&&t.hasAttribute("patchsrc")&&t.removeAttribute("patchsrc"),t.hasAttribute&&t.hasAttribute("for")&&eB("for",e)&&t.removeAttribute("for")}catch(t){}}let n=tk(t);if(n)for(let t=n.length-1;t>=0;--t)e.push(n[t])}},eH=function(t){let r=null,n=null;if(t7)t="<remove></remove>"+t;else{let e=A(t,/^[\r\n\t ]+/);n=e&&e[0]}"application/xhtml+xml"===eT&&eb===ey&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");let i=e?tj(t):t;if(eb===ey)try{r=new D().parseFromString(i,eT)}catch(t){}if(!r||!r.documentElement){r=tP.createDocument(eb,"template",null);try{r.documentElement.innerHTML=ex?tL:i}catch(t){}}let a=r.body||r.documentElement;return(t&&n&&a.insertBefore(o.createTextNode(n),a.childNodes[0]||null),eb===ey)?tU.call(r,t6?"html":"body")[0]:t6?r.documentElement:a},eq=function(t){let e=tC?tC(t):t.ownerDocument;return tI.call(e||t,t,g.SHOW_ELEMENT|g.SHOW_COMMENT|g.SHOW_TEXT|g.SHOW_PROCESSING_INSTRUCTION|g.SHOW_CDATA_SECTION,null)},eW=function(t){return t=M(t,V," "),t=M(t,Q," "),t=M(t,J," ")},eX=function(t){var e;t.normalize();let r=tC?tC(t):t.ownerDocument,n=tI.call(r||t,t,g.SHOW_TEXT|g.SHOW_COMMENT|g.SHOW_CDATA_SECTION|g.SHOW_PROCESSING_INSTRUCTION,null),i=n.nextNode();for(;i;)i.data=eW(i.data),i=n.nextNode();let a=null==(e=t.querySelectorAll)?void 0:e.call(t,"template");a&&m(a,t=>{eZ(t.content)&&eX(t.content)})},eG=function(t){let e=tT?tT(t):null;return"string"==typeof e&&"form"===e$(e)&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||t.attributes!==tM(t)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes||t.nodeType!==tS(t)||t.childNodes!==tk(t))},eZ=function(t){if(!tS||"object"!=typeof t||null===t)return!1;try{return 11===tS(t)}catch(t){return!1}},eV=function(t){if(!tS||"object"!=typeof t||null===t)return!1;try{return"number"==typeof tS(t)}catch(t){return!1}};function eQ(t,e,r){0!==t.length&&m(t,t=>{t.call(i,e,r,eO)})}let eJ=function(t,e){if(t instanceof RegExp)return K(t,e);if(t instanceof Function){for(var r=arguments.length,n=Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];return!!t(e,...n)}return!1},e0=function(t,e,r){if(!tZ[e]&&e8(e)&&eJ(tG.tagNameCheck,e))return!1;if(eo&&!ec[e]){let e=tv(t),n=tk(t);if(n&&e){let i=n.length;for(let a=i-1;a>=0;--a){let i=t===r?tx(n[a],!0):n[a];e.insertBefore(i,tw(t))}}}return eN(t),!0},e1=function(t,e,r,n){return 0===t.length?e:e===r||e===n?P(e):e},e2=function(t,e){return t!==e&&null===tv(t)&&(es&&ez(t),!0)},e3=function(t,e){if(eQ(tB.beforeSanitizeElements,t,null),e2(t,e))return!0;if(eG(t))return eN(t),!0;let r=e$(tO(t));if(tH=e1(tB.uponSanitizeElement,tH,tq,t4),eQ(tB.uponSanitizeElement,t,{tagName:r,allowedTags:tH}),e2(t,e))return!0;if(t5&&t.hasChildNodes()&&!eV(t.firstElementChild)&&K(ts,t.textContent)&&K(ts,t.innerHTML)||t5&&t.namespaceURI===ey&&tf[r]&&(eV(t.firstElementChild)||"string"==typeof t.textContent&&K(td[r],t.textContent))||7===t.nodeType||t5&&8===t.nodeType&&K(tl,t.data))return eN(t),!0;if(tZ[r]||!(tQ.tagCheck instanceof Function&&tQ.tagCheck(r))&&!tH[r]){let n=e0(t,r,e);return!1===n&&eQ(tB.afterSanitizeElements,t,null),n}if(1===t$(t)&&!eD(t)||("noscript"===r||"noembed"===r||"noframes"===r)&&K(tc,t.innerHTML))return eN(t),!0;if(t3&&3===t.nodeType){let e=eW(t.textContent);t.textContent!==e&&(x(i.removed,{element:t.cloneNode()}),t.textContent=e)}return eQ(tB.afterSanitizeElements,t,null),!1},e5=function(t,e,r){if(tV[e]||eB(e,t)||en&&("id"===e||"name"===e)&&(r in o||r in eL))return!1;let n=tW[e]||tQ.attributeCheck instanceof Function&&tQ.attributeCheck(e,t);return!!(t0&&K(tt,e)||tJ&&K(te,e))||(n?!(!(ed[e]||K(tY,M(r,ti,"")))&&("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==S(r,"data:")||!eh[t])&&(!t1||K(tn,M(r,ti,""))))||!r:e8(t)&&eJ(tG.tagNameCheck,t)&&eJ(tG.attributeNameCheck,e,t)||"is"===e&&tG.allowCustomizedBuiltInElements&&eJ(tG.tagNameCheck,r))},e6=N({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),e8=function(t){return!e6[k(t)]&&K(to,t)},e4=function(t,r,n,i){if(e&&"object"==typeof th&&"function"==typeof th.getAttributeType&&!n)switch(th.getAttributeType(t,r)){case"TrustedHTML":return tj(i);case"TrustedScriptURL":return tD(i)}return i},e9=function(t,e,r,n){try{r?t.setAttributeNS(r,e,n):t.setAttribute(e,n),eG(t)?eN(t):b(i.removed)}catch(r){eF(e,t)}},e7=function(t){eQ(tB.beforeSanitizeAttributes,t,null);let e=t.attributes;if(!e||eG(t))return;let r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:tW=e1(tB.uponSanitizeAttribute,tW,tX,t9),forceKeepAttr:void 0},n=e.length,i=e$(t.nodeName);for(;n--;){let a=e[n],o=a.name,s=a.namespaceURI,l=a.value,c=e$(o),u="value"===o?l:T(l);if(r.attrName=c,r.attrValue=u,r.keepAttr=!0,r.forceKeepAttr=void 0,eQ(tB.uponSanitizeAttribute,t,r),u=r.attrValue,ei&&("id"===c||"name"===c)&&0!==S(u,ea)&&(eF(o,t,a),u=ea+u),t5&&K(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,u)||"attributename"===c&&A(u,"href")){eF(o,t,a);continue}if(!r.forceKeepAttr){if(!r.keepAttr||!t2&&K(tu,u)||(t3&&(u=eW(u)),!e5(i,c,u))){eF(o,t,a);continue}(u=e4(i,c,s,u))!==l&&e9(t,o,s,u)}}eQ(tB.afterSanitizeAttributes,t,null)},rt=function(t){let e=null,r=eq(t);for(eQ(tB.beforeSanitizeShadowDOM,t,null);e=r.nextNode();)if(eQ(tB.uponSanitizeShadowNode,e,null),e3(e,t),e7(e),eZ(e.content)&&rt(e.content),1===t$(e)){let t=tA(e);eZ(t)&&(re(t),rt(t))}eQ(tB.afterSanitizeShadowDOM,t,null)},re=function(t){let e=[{node:t,shadow:null}];for(;e.length>0;){let t=e.pop();if(t.shadow){rt(t.shadow);continue}let r=t.node,n=1===t$(r),i=tk(r);if(i)for(let t=i.length-1;t>=0;--t)e.push({node:i[t],shadow:null});if(n){let t=tT?tT(r):null;if("string"==typeof t&&"template"===e$(t)){let t=r.content;eZ(t)&&e.push({node:t,shadow:null})}}if(n){let t=tA(r);eZ(t)&&e.push({node:null,shadow:t},{node:t,shadow:null})}}};return i.sanitize=function(t){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,a=null,o=null,l=null;if((ex=!t)&&(t="\x3c!--\x3e"),"string"!=typeof t&&!eV(t)&&"string"!=typeof(t=function(t){switch(typeof t){case"string":return t;case"number":return C(t);case"boolean":return $(t);case"bigint":return O?O(t):"0";case"symbol":return L?L(t):"Symbol()";case"undefined":default:return R(t);case"function":case"object":{if(null===t)return R(t);let e=I(t,"toString");if("function"==typeof e){let r=e(t);return"string"==typeof r?r:R(r)}return R(t)}}}(t)))throw j("dirty is not a string, aborting");if(!i.isSupported)return t;t8?(tH=t4,tW=t9):eR(r),(tB.uponSanitizeElement.length>0||tB.uponSanitizeAttribute.length>0)&&(tH=P(tH)),tB.uponSanitizeAttribute.length>0&&(tW=P(tW)),i.removed=[];let c=es&&"string"!=typeof t&&eV(t);if(c){eY(t);let e=tO(t);if("string"==typeof e){let r=e$(e);if(!tH[r]||tZ[r])throw eI(t),j("root node is forbidden and cannot be sanitized in-place")}if(eG(t))throw eI(t),j("root node is clobbered and cannot be sanitized in-place");try{re(t)}catch(e){throw eI(t),e}}else if(eV(t))1===(a=(n=eH("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?n=a:n.appendChild(a),re(a);else{if(!et&&!t3&&!t6&&-1===t.indexOf("<"))return e&&er?tj(t):t;if(!(n=eH(t)))return et?null:er?tL:""}n&&t7&&eN(n.firstChild);let u=c?t:n;try{let t=eq(u);for(;o=t.nextNode();)e3(o,u),e7(o),eZ(o.content)&&rt(o.content)}catch(e){throw c&&(eI(t),m(i.removed,t=>{t.element&&ez(t.element)})),e}if(c)return m(i.removed,t=>{t.element&&ez(t.element)}),t3&&eX(t),t;if(et){if(t3&&eX(n),ee)for(l=tF.call(n.ownerDocument);n.firstChild;)l.appendChild(n.firstChild);else l=n;return(tW.shadowroot||tW.shadowrootmode)&&(l=tz.call(s,l,!0)),l}let h=t6?n.outerHTML:n.innerHTML;return t6&&tH["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&K(ta,n.ownerDocument.doctype.name)&&(h="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+h),t3&&(h=eW(h)),e&&er?tj(h):h},i.setConfig=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};eR(t),t8=!0,t4=tH,t9=tW},i.clearConfig=function(){eO=null,t8=!1,t4=null,t9=null,e=r,tL=""},i.isValidAttribute=function(t,e,r){return eO||eR({}),e5(e$(t),e$(e),r)},i.addHook=function(t,e){"function"!=typeof e||E(tB,t)&&x(tB[t],e)},i.removeHook=function(t,e){if(E(tB,t)){if(void 0!==e){let r=y(tB[t],e);return -1===r?void 0:_(tB[t],r,1)[0]}return b(tB[t])}},i.removeHooks=function(t){E(tB,t)&&(tB[t]=[])},i.removeAllHooks=function(){tB=tg()},i}()},92459:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=Array.isArray},92821:(t,e,r)=>{"use strict";r.d(e,{T:()=>n.T});var n=r(32459)},93881:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=function(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r}},94529:(t,e,r)=>{"use strict";function n(t,e,r){if(t&&t.length){let[n,i]=e,a=Math.PI/180*r,o=Math.cos(a),s=Math.sin(a);for(let e of t){let[t,r]=e;e[0]=(t-n)*o-(r-i)*s+n,e[1]=(t-n)*s+(r-i)*o+i}}}function i(t,e){var r;let i=e.hachureAngle+90,a=e.hachureGap;a<0&&(a=4*e.strokeWidth),a=Math.round(Math.max(a,.1));let o=1;return e.roughness>=1&&((null==(r=e.randomizer)?void 0:r.next())||Math.random())>.7&&(o=a),function(t,e,r,i=1){let a=Math.max(e,.1),o=t[0]&&t[0][0]&&"number"==typeof t[0][0]?[t]:t,s=[0,0];if(r)for(let t of o)n(t,s,r);let l=function(t,e,r){let n=[];for(let e of t){var i,a;let t=[...e];i=t[0],a=t[t.length-1],i[0]===a[0]&&i[1]===a[1]||t.push([t[0][0],t[0][1]]),t.length>2&&n.push(t)}let o=[];e=Math.max(e,.1);let s=[];for(let t of n)for(let e=0;e<t.length-1;e++){let r=t[e],n=t[e+1];if(r[1]!==n[1]){let t=Math.min(r[1],n[1]);s.push({ymin:t,ymax:Math.max(r[1],n[1]),x:t===r[1]?r[0]:n[0],islope:(n[0]-r[0])/(n[1]-r[1])})}}if(s.sort((t,e)=>t.ymin<e.ymin?-1:t.ymin>e.ymin?1:t.x<e.x?-1:t.x>e.x?1:t.ymax===e.ymax?0:(t.ymax-e.ymax)/Math.abs(t.ymax-e.ymax)),!s.length)return o;let l=[],c=s[0].ymin,u=0;for(;l.length||s.length;){if(s.length){let t=-1;for(let e=0;e<s.length&&!(s[e].ymin>c);e++)t=e;s.splice(0,t+1).forEach(t=>{l.push({s:c,edge:t})})}if((l=l.filter(t=>!(t.edge.ymax<=c))).sort((t,e)=>t.edge.x===e.edge.x?0:(t.edge.x-e.edge.x)/Math.abs(t.edge.x-e.edge.x)),(1!==r||u%e==0)&&l.length>1)for(let t=0;t<l.length;t+=2){let e=t+1;if(e>=l.length)break;let r=l[t].edge,n=l[e].edge;o.push([[Math.round(r.x),c],[Math.round(n.x),c]])}c+=r,l.forEach(t=>{t.edge.x=t.edge.x+r*t.edge.islope}),u++}return o}(o,a,i);if(r){let t;for(let t of o)n(t,s,-r);t=[],l.forEach(e=>t.push(...e)),n(t,s,-r)}return l}(t,a,i,o||1)}r.d(e,{A:()=>G});class a{constructor(t){this.helper=t}fillPolygons(t,e){return this._fillPolygons(t,e)}_fillPolygons(t,e){let r=i(t,e);return{type:"fillSketch",ops:this.renderLines(r,e)}}renderLines(t,e){let r=[];for(let n of t)r.push(...this.helper.doubleLineOps(n[0][0],n[0][1],n[1][0],n[1][1],e));return r}}function o(t){let e=t[0],r=t[1];return Math.sqrt(Math.pow(e[0]-r[0],2)+Math.pow(e[1]-r[1],2))}class s extends a{fillPolygons(t,e){let r=e.hachureGap;r<0&&(r=4*e.strokeWidth);let n=i(t,Object.assign({},e,{hachureGap:r=Math.max(r,.1)})),a=Math.PI/180*e.hachureAngle,s=[],l=.5*r*Math.cos(a),c=.5*r*Math.sin(a);for(let[t,e]of n)o([t,e])&&s.push([[t[0]-l,t[1]+c],[...e]],[[t[0]+l,t[1]-c],[...e]]);return{type:"fillSketch",ops:this.renderLines(s,e)}}}class l extends a{fillPolygons(t,e){let r=this._fillPolygons(t,e),n=Object.assign({},e,{hachureAngle:e.hachureAngle+90}),i=this._fillPolygons(t,n);return r.ops=r.ops.concat(i.ops),r}}class c{constructor(t){this.helper=t}fillPolygons(t,e){let r=i(t,e=Object.assign({},e,{hachureAngle:0}));return this.dotsOnLines(r,e)}dotsOnLines(t,e){let r=[],n=e.hachureGap;n<0&&(n=4*e.strokeWidth),n=Math.max(n,.1);let i=e.fillWeight;i<0&&(i=e.strokeWidth/2);let a=n/4;for(let s of t){let t=o(s),l=Math.ceil(t/n)-1,c=t-l*n,u=(s[0][0]+s[1][0])/2-n/4,h=Math.min(s[0][1],s[1][1]);for(let t=0;t<l;t++){let o=u-a+2*Math.random()*a,s=h+c+t*n-a+2*Math.random()*a,l=this.helper.ellipse(o,s,i,i,e);r.push(...l.ops)}}return{type:"fillSketch",ops:r}}}class u{constructor(t){this.helper=t}fillPolygons(t,e){let r=i(t,e);return{type:"fillSketch",ops:this.dashedLine(r,e)}}dashedLine(t,e){let r=e.dashOffset<0?e.hachureGap<0?4*e.strokeWidth:e.hachureGap:e.dashOffset,n=e.dashGap<0?e.hachureGap<0?4*e.strokeWidth:e.hachureGap:e.dashGap,i=[];return t.forEach(t=>{let a=o(t),s=Math.floor(a/(r+n)),l=(a+n-s*(r+n))/2,c=t[0],u=t[1];c[0]>u[0]&&(c=t[1],u=t[0]);let h=Math.atan((u[1]-c[1])/(u[0]-c[0]));for(let t=0;t<s;t++){let a=t*(r+n),o=a+r,s=[c[0]+a*Math.cos(h)+l*Math.cos(h),c[1]+a*Math.sin(h)+l*Math.sin(h)],u=[c[0]+o*Math.cos(h)+l*Math.cos(h),c[1]+o*Math.sin(h)+l*Math.sin(h)];i.push(...this.helper.doubleLineOps(s[0],s[1],u[0],u[1],e))}}),i}}class h{constructor(t){this.helper=t}fillPolygons(t,e){let r=e.hachureGap<0?4*e.strokeWidth:e.hachureGap,n=e.zigzagOffset<0?r:e.zigzagOffset,a=i(t,e=Object.assign({},e,{hachureGap:r+n}));return{type:"fillSketch",ops:this.zigzagLines(a,n,e)}}zigzagLines(t,e,r){let n=[];return t.forEach(t=>{let i=Math.round(o(t)/(2*e)),a=t[0],s=t[1];a[0]>s[0]&&(a=t[1],s=t[0]);let l=Math.atan((s[1]-a[1])/(s[0]-a[0]));for(let t=0;t<i;t++){let i=2*t*e,o=2*(t+1)*e,s=Math.sqrt(2*Math.pow(e,2)),c=[a[0]+i*Math.cos(l),a[1]+i*Math.sin(l)],u=[a[0]+o*Math.cos(l),a[1]+o*Math.sin(l)],h=[c[0]+s*Math.cos(l+Math.PI/4),c[1]+s*Math.sin(l+Math.PI/4)];n.push(...this.helper.doubleLineOps(c[0],c[1],h[0],h[1],r),...this.helper.doubleLineOps(h[0],h[1],u[0],u[1],r))}}),n}}let f={};class d{constructor(t){this.seed=t}next(){return this.seed?(0x80000000-1&(this.seed=Math.imul(48271,this.seed)))/0x80000000:Math.random()}}let p={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0};function g(t){let e=[],r=function(t){let e=[];for(;""!==t;)if(t.match(/^([ \t\r\n,]+)/))t=t.substr(RegExp.$1.length);else if(t.match(/^([aAcChHlLmMqQsStTvVzZ])/))e[e.length]={type:0,text:RegExp.$1},t=t.substr(RegExp.$1.length);else{if(!t.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];e[e.length]={type:1,text:`${parseFloat(RegExp.$1)}`},t=t.substr(RegExp.$1.length)}return e[e.length]={type:2,text:""},e}(t),n="BOD",i=0,a=r[0];for(;2!==a.type;){let o=0,s=[];if("BOD"===n){if("M"!==a.text&&"m"!==a.text)return g("M0,0"+t);i++,o=p[a.text],n=a.text}else 1===a.type?o=p[n]:(i++,o=p[a.text],n=a.text);if(!(i+o<r.length))throw Error("Path data ended short");for(let t=i;t<i+o;t++){let e=r[t];if(1!==e.type)throw Error("Param not a number: "+n+","+e.text);s[s.length]=+e.text}if("number"!=typeof p[n])throw Error("Bad segment: "+n);{let t={key:n,data:s};e.push(t),i+=o,a=r[i],"M"===n&&(n="L"),"m"===n&&(n="l")}}return e}function m(t){let e=0,r=0,n=0,i=0,a=[];for(let{key:o,data:s}of t)switch(o){case"M":a.push({key:"M",data:[...s]}),[e,r]=s,[n,i]=s;break;case"m":e+=s[0],r+=s[1],a.push({key:"M",data:[e,r]}),n=e,i=r;break;case"L":a.push({key:"L",data:[...s]}),[e,r]=s;break;case"l":e+=s[0],r+=s[1],a.push({key:"L",data:[e,r]});break;case"C":a.push({key:"C",data:[...s]}),e=s[4],r=s[5];break;case"c":{let t=s.map((t,n)=>n%2?t+r:t+e);a.push({key:"C",data:t}),e=t[4],r=t[5];break}case"Q":a.push({key:"Q",data:[...s]}),e=s[2],r=s[3];break;case"q":{let t=s.map((t,n)=>n%2?t+r:t+e);a.push({key:"Q",data:t}),e=t[2],r=t[3];break}case"A":a.push({key:"A",data:[...s]}),e=s[5],r=s[6];break;case"a":e+=s[5],r+=s[6],a.push({key:"A",data:[s[0],s[1],s[2],s[3],s[4],e,r]});break;case"H":a.push({key:"H",data:[...s]}),e=s[0];break;case"h":e+=s[0],a.push({key:"H",data:[e]});break;case"V":a.push({key:"V",data:[...s]}),r=s[0];break;case"v":r+=s[0],a.push({key:"V",data:[r]});break;case"S":a.push({key:"S",data:[...s]}),e=s[2],r=s[3];break;case"s":{let t=s.map((t,n)=>n%2?t+r:t+e);a.push({key:"S",data:t}),e=t[2],r=t[3];break}case"T":a.push({key:"T",data:[...s]}),e=s[0],r=s[1];break;case"t":e+=s[0],r+=s[1],a.push({key:"T",data:[e,r]});break;case"Z":case"z":a.push({key:"Z",data:[]}),e=n,r=i}return a}function y(t){let e=[],r="",n=0,i=0,a=0,o=0,s=0,l=0;for(let{key:c,data:u}of t){switch(c){case"M":e.push({key:"M",data:[...u]}),[n,i]=u,[a,o]=u;break;case"C":e.push({key:"C",data:[...u]}),n=u[4],i=u[5],s=u[2],l=u[3];break;case"L":e.push({key:"L",data:[...u]}),[n,i]=u;break;case"H":n=u[0],e.push({key:"L",data:[n,i]});break;case"V":i=u[0],e.push({key:"L",data:[n,i]});break;case"S":{let t=0,a=0;"C"===r||"S"===r?(t=n+(n-s),a=i+(i-l)):(t=n,a=i),e.push({key:"C",data:[t,a,...u]}),s=u[0],l=u[1],n=u[2],i=u[3];break}case"T":{let[t,a]=u,o=0,c=0;"Q"===r||"T"===r?(o=n+(n-s),c=i+(i-l)):(o=n,c=i);let h=n+2*(o-n)/3,f=i+2*(c-i)/3,d=t+2*(o-t)/3,p=a+2*(c-a)/3;e.push({key:"C",data:[h,f,d,p,t,a]}),s=o,l=c,n=t,i=a;break}case"Q":{let[t,r,a,o]=u,c=n+2*(t-n)/3,h=i+2*(r-i)/3,f=a+2*(t-a)/3,d=o+2*(r-o)/3;e.push({key:"C",data:[c,h,f,d,a,o]}),s=t,l=r,n=a,i=o;break}case"A":{let t=Math.abs(u[0]),r=Math.abs(u[1]),a=u[2],o=u[3],s=u[4],l=u[5],c=u[6];0===t||0===r?(e.push({key:"C",data:[n,i,l,c,l,c]}),n=l,i=c):(n!==l||i!==c)&&((function t(e,r,n,i,a,o,s,l,c,u){let h=Math.PI*s/180,f=[],d=0,p=0,g=0,m=0;if(u)[d,p,g,m]=u;else{[e,r]=b(e,r,-h),[n,i]=b(n,i,-h);let t=(e-n)/2,s=(r-i)/2,u=t*t/(a*a)+s*s/(o*o);u>1&&(a*=u=Math.sqrt(u),o*=u);let f=a*a,y=o*o,x=(l===c?-1:1)*Math.sqrt(Math.abs((f*y-f*s*s-y*t*t)/(f*s*s+y*t*t)));g=x*a*s/o+(e+n)/2,m=-(x*o)*t/a+(r+i)/2,d=Math.asin(parseFloat(((r-m)/o).toFixed(9))),p=Math.asin(parseFloat(((i-m)/o).toFixed(9))),e<g&&(d=Math.PI-d),n<g&&(p=Math.PI-p),d<0&&(d=2*Math.PI+d),p<0&&(p=2*Math.PI+p),c&&d>p&&(d-=2*Math.PI),!c&&p>d&&(p-=2*Math.PI)}let y=p-d;if(Math.abs(y)>120*Math.PI/180){let e=p,r=n,l=i;f=t(n=g+a*Math.cos(p=c&&p>d?d+120*Math.PI/180*1:d+-(120*Math.PI/180*1)),i=m+o*Math.sin(p),r,l,a,o,s,0,c,[p,e,g,m])}y=p-d;let x=Math.cos(d),_=Math.cos(p),w=Math.tan(y/4),k=4/3*a*w,v=4/3*o*w,A=[e,r],M=[e+k*Math.sin(d),r-v*x],S=[n+k*Math.sin(p),i-v*_],T=[n,i];if(M[0]=2*A[0]-M[0],M[1]=2*A[1]-M[1],u)return[M,S,T].concat(f);{f=[M,S,T].concat(f);let t=[];for(let e=0;e<f.length;e+=3){let r=b(f[e][0],f[e][1],h),n=b(f[e+1][0],f[e+1][1],h),i=b(f[e+2][0],f[e+2][1],h);t.push([r[0],r[1],n[0],n[1],i[0],i[1]])}return t}})(n,i,l,c,t,r,a,o,s).forEach(function(t){e.push({key:"C",data:t})}),n=l,i=c);break}case"Z":e.push({key:"Z",data:[]}),n=a,i=o}r=c}return e}function b(t,e,r){return[t*Math.cos(r)-e*Math.sin(r),t*Math.sin(r)+e*Math.cos(r)]}let x={randOffset:function(t,e){return E(t,e)},randOffsetWithRange:function(t,e,r){return L(t,e,r)},ellipse:function(t,e,r,n,i){let a=v(r,n,i);return A(t,e,i,a).opset},doubleLineOps:function(t,e,r,n,i){return R(t,e,r,n,i,!0)}};function _(t,e,r,n,i){return{type:"path",ops:R(t,e,r,n,i)}}function w(t,e,r){let n=(t||[]).length;if(n>2){let i=[];for(let e=0;e<n-1;e++)i.push(...R(t[e][0],t[e][1],t[e+1][0],t[e+1][1],r));return e&&i.push(...R(t[n-1][0],t[n-1][1],t[0][0],t[0][1],r)),{type:"path",ops:i}}return 2===n?_(t[0][0],t[0][1],t[1][0],t[1][1],r):{type:"path",ops:[]}}function k(t,e){if(t.length){let r="number"==typeof t[0][0]?[t]:t,n=j(r[0],+(1+.2*e.roughness),e),i=e.disableMultiStroke?[]:j(r[0],1.5*(1+.22*e.roughness),$(e));for(let t=1;t<r.length;t++){let a=r[t];if(a.length){let t=j(a,+(1+.2*e.roughness),e),r=e.disableMultiStroke?[]:j(a,1.5*(1+.22*e.roughness),$(e));for(let e of t)"move"!==e.op&&n.push(e);for(let t of r)"move"!==t.op&&i.push(t)}}return{type:"path",ops:n.concat(i)}}return{type:"path",ops:[]}}function v(t,e,r){let n=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(t/2,2)+Math.pow(e/2,2))/2)),i=2*Math.PI/Math.ceil(Math.max(r.curveStepCount,r.curveStepCount/Math.sqrt(200)*n)),a=Math.abs(t/2),o=Math.abs(e/2),s=1-r.curveFitting;return a+=E(a*s,r),o+=E(o*s,r),{increment:i,rx:a,ry:o}}function A(t,e,r,n){let[i,a]=N(n.increment,t,e,n.rx,n.ry,1,n.increment*L(.1,L(.4,1,r),r),r),o=D(i,null,r);if(!r.disableMultiStroke&&0!==r.roughness){let[i]=N(n.increment,t,e,n.rx,n.ry,1.5,0,r),a=D(i,null,r);o=o.concat(a)}return{estimatedPoints:a,opset:{type:"path",ops:o}}}function M(t,e,r,n,i,a,o,s,l){let c=Math.abs(r/2),u=Math.abs(n/2);c+=E(.01*c,l),u+=E(.01*u,l);let h=i,f=a;for(;h<0;)h+=2*Math.PI,f+=2*Math.PI;f-h>2*Math.PI&&(h=0,f=2*Math.PI);let d=Math.min(2*Math.PI/l.curveStepCount/2,(f-h)/2),p=P(d,t,e,c,u,h,f,1,l);if(!l.disableMultiStroke){let r=P(d,t,e,c,u,h,f,1.5,l);p.push(...r)}return o&&(s?p.push(...R(t,e,t+c*Math.cos(h),e+u*Math.sin(h),l),...R(t,e,t+c*Math.cos(f),e+u*Math.sin(f),l)):p.push({op:"lineTo",data:[t,e]},{op:"lineTo",data:[t+c*Math.cos(h),e+u*Math.sin(h)]})),{type:"path",ops:p}}function S(t,e){let r=y(m(g(t))),n=[],i=[0,0],a=[0,0];for(let{key:t,data:o}of r)switch(t){case"M":a=[o[0],o[1]],i=[o[0],o[1]];break;case"L":n.push(...R(a[0],a[1],o[0],o[1],e)),a=[o[0],o[1]];break;case"C":{let[t,r,i,s,l,c]=o;n.push(...function(t,e,r,n,i,a,o,s){let l=[],c=[s.maxRandomnessOffset||1,(s.maxRandomnessOffset||1)+.3],u=[0,0],h=s.disableMultiStroke?1:2,f=s.preserveVertices;for(let d=0;d<h;d++)0===d?l.push({op:"move",data:[o[0],o[1]]}):l.push({op:"move",data:[o[0]+(f?0:E(c[0],s)),o[1]+(f?0:E(c[0],s))]}),u=f?[i,a]:[i+E(c[d],s),a+E(c[d],s)],l.push({op:"bcurveTo",data:[t+E(c[d],s),e+E(c[d],s),r+E(c[d],s),n+E(c[d],s),u[0],u[1]]});return l}(t,r,i,s,l,c,a,e)),a=[l,c];break}case"Z":n.push(...R(a[0],a[1],i[0],i[1],e)),a=[i[0],i[1]]}return{type:"path",ops:n}}function T(t,e){let r=[];for(let n of t)if(n.length){let t=e.maxRandomnessOffset||0,i=n.length;if(i>2){r.push({op:"move",data:[n[0][0]+E(t,e),n[0][1]+E(t,e)]});for(let a=1;a<i;a++)r.push({op:"lineTo",data:[n[a][0]+E(t,e),n[a][1]+E(t,e)]})}}return{type:"fillPath",ops:r}}function C(t,e){return(function(t,e){let r=t.fillStyle||"hachure";if(!f[r])switch(r){case"zigzag":f[r]||(f[r]=new s(e));break;case"cross-hatch":f[r]||(f[r]=new l(e));break;case"dots":f[r]||(f[r]=new c(e));break;case"dashed":f[r]||(f[r]=new u(e));break;case"zigzag-line":f[r]||(f[r]=new h(e));break;default:f[r="hachure"]||(f[r]=new a(e))}return f[r]})(e,x).fillPolygons(t,e)}function $(t){let e=Object.assign({},t);return e.randomizer=void 0,t.seed&&(e.seed=t.seed+1),e}function O(t){return t.randomizer||(t.randomizer=new d(t.seed||0)),t.randomizer.next()}function L(t,e,r,n=1){return r.roughness*n*(O(r)*(e-t)+t)}function E(t,e,r=1){return L(-t,t,e,r)}function R(t,e,r,n,i,a=!1){let o=a?i.disableMultiStrokeFill:i.disableMultiStroke,s=K(t,e,r,n,i,!0,!1);if(o)return s;let l=K(t,e,r,n,i,!0,!0);return s.concat(l)}function K(t,e,r,n,i,a,o){let s=Math.pow(t-r,2)+Math.pow(e-n,2),l=Math.sqrt(s),c=1;c=l<200?1:l>500?.4:-.0016668*l+1.233334;let u=i.maxRandomnessOffset||0;u*u*100>s&&(u=l/10);let h=u/2,f=.2+.2*O(i),d=i.bowing*i.maxRandomnessOffset*(n-e)/200,p=i.bowing*i.maxRandomnessOffset*(t-r)/200;d=E(d,i,c),p=E(p,i,c);let g=[],m=i.preserveVertices;return a&&(o?g.push({op:"move",data:[t+(m?0:E(h,i,c)),e+(m?0:E(h,i,c))]}):g.push({op:"move",data:[t+(m?0:E(u,i,c)),e+(m?0:E(u,i,c))]})),o?g.push({op:"bcurveTo",data:[d+t+(r-t)*f+E(h,i,c),p+e+(n-e)*f+E(h,i,c),d+t+2*(r-t)*f+E(h,i,c),p+e+2*(n-e)*f+E(h,i,c),r+(m?0:E(h,i,c)),n+(m?0:E(h,i,c))]}):g.push({op:"bcurveTo",data:[d+t+(r-t)*f+E(u,i,c),p+e+(n-e)*f+E(u,i,c),d+t+2*(r-t)*f+E(u,i,c),p+e+2*(n-e)*f+E(u,i,c),r+(m?0:E(u,i,c)),n+(m?0:E(u,i,c))]}),g}function j(t,e,r){if(!t.length)return[];let n=[];n.push([t[0][0]+E(e,r),t[0][1]+E(e,r)]),n.push([t[0][0]+E(e,r),t[0][1]+E(e,r)]);for(let i=1;i<t.length;i++)n.push([t[i][0]+E(e,r),t[i][1]+E(e,r)]),i===t.length-1&&n.push([t[i][0]+E(e,r),t[i][1]+E(e,r)]);return D(n,null,r)}function D(t,e,r){let n=t.length,i=[];if(n>3){let a=[],o=1-r.curveTightness;i.push({op:"move",data:[t[1][0],t[1][1]]});for(let e=1;e+2<n;e++){let r=t[e];a[0]=[r[0],r[1]],a[1]=[r[0]+(o*t[e+1][0]-o*t[e-1][0])/6,r[1]+(o*t[e+1][1]-o*t[e-1][1])/6],a[2]=[t[e+1][0]+(o*t[e][0]-o*t[e+2][0])/6,t[e+1][1]+(o*t[e][1]-o*t[e+2][1])/6],a[3]=[t[e+1][0],t[e+1][1]],i.push({op:"bcurveTo",data:[a[1][0],a[1][1],a[2][0],a[2][1],a[3][0],a[3][1]]})}if(e&&2===e.length){let t=r.maxRandomnessOffset;i.push({op:"lineTo",data:[e[0]+E(t,r),e[1]+E(t,r)]})}}else 3===n?(i.push({op:"move",data:[t[1][0],t[1][1]]}),i.push({op:"bcurveTo",data:[t[1][0],t[1][1],t[2][0],t[2][1],t[2][0],t[2][1]]})):2===n&&i.push(...K(t[0][0],t[0][1],t[1][0],t[1][1],r,!0,!0));return i}function N(t,e,r,n,i,a,o,s){let l=[],c=[];if(0===s.roughness){t/=4,c.push([e+n*Math.cos(-t),r+i*Math.sin(-t)]);for(let a=0;a<=2*Math.PI;a+=t){let t=[e+n*Math.cos(a),r+i*Math.sin(a)];l.push(t),c.push(t)}c.push([e+ +n,r+0*i]),c.push([e+n*Math.cos(t),r+i*Math.sin(t)])}else{let u=E(.5,s)-Math.PI/2;c.push([E(a,s)+e+.9*n*Math.cos(u-t),E(a,s)+r+.9*i*Math.sin(u-t)]);let h=2*Math.PI+u-.01;for(let o=u;o<h;o+=t){let t=[E(a,s)+e+n*Math.cos(o),E(a,s)+r+i*Math.sin(o)];l.push(t),c.push(t)}c.push([E(a,s)+e+n*Math.cos(u+2*Math.PI+.5*o),E(a,s)+r+i*Math.sin(u+2*Math.PI+.5*o)]),c.push([E(a,s)+e+.98*n*Math.cos(u+o),E(a,s)+r+.98*i*Math.sin(u+o)]),c.push([E(a,s)+e+.9*n*Math.cos(u+.5*o),E(a,s)+r+.9*i*Math.sin(u+.5*o)])}return[c,l]}function P(t,e,r,n,i,a,o,s,l){let c=a+E(.1,l),u=[];u.push([E(s,l)+e+.9*n*Math.cos(c-t),E(s,l)+r+.9*i*Math.sin(c-t)]);for(let a=c;a<=o;a+=t)u.push([E(s,l)+e+n*Math.cos(a),E(s,l)+r+i*Math.sin(a)]);return u.push([e+n*Math.cos(o),r+i*Math.sin(o)]),u.push([e+n*Math.cos(o),r+i*Math.sin(o)]),D(u,null,l)}function I(t,e=0){let r=t.length;if(r<3)throw Error("A curve must have at least three points.");let n=[];if(3===r)n.push([...t[0]],[...t[1]],[...t[2]],[...t[2]]);else{let r=[];r.push(t[0],t[0]);for(let e=1;e<t.length;e++)r.push(t[e]),e===t.length-1&&r.push(t[e]);let i=[],a=1-e;n.push([...r[0]]);for(let t=1;t+2<r.length;t++){let e=r[t];i[0]=[e[0],e[1]],i[1]=[e[0]+(a*r[t+1][0]-a*r[t-1][0])/6,e[1]+(a*r[t+1][1]-a*r[t-1][1])/6],i[2]=[r[t+1][0]+(a*r[t][0]-a*r[t+2][0])/6,r[t+1][1]+(a*r[t][1]-a*r[t+2][1])/6],i[3]=[r[t+1][0],r[t+1][1]],n.push(i[1],i[2],i[3])}}return n}function F(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)}function U(t,e,r){return[t[0]+(e[0]-t[0])*r,t[1]+(e[1]-t[1])*r]}function z(t,e,r,n,i){let a=i||[],o=t[e],s=t[r-1],l=0,c=1;for(let n=e+1;n<r-1;++n){let e=function(t,e,r){let n=F(e,r);if(0===n)return F(t,e);let i=((t[0]-e[0])*(r[0]-e[0])+(t[1]-e[1])*(r[1]-e[1]))/n;return F(t,U(e,r,i=Math.max(0,Math.min(1,i))))}(t[n],o,s);e>l&&(l=e,c=n)}return Math.sqrt(l)>n?(z(t,e,c+1,n,a),z(t,c,r,n,a)):(a.length||a.push(o),a.push(s)),a}function B(t,e=.15,r){let n=[],i=(t.length-1)/3;for(let r=0;r<i;r++)!function t(e,r,n,i){let a,o,s,l,c,u,h,f,d=i||[];if(a=e[r+0],o=e[r+1],s=e[r+2],l=e[r+3],c=3*o[0]-2*a[0]-l[0],c*=c,u=3*o[1]-2*a[1]-l[1],u*=u,h=3*s[0]-2*l[0]-a[0],h*=h,f=3*s[1]-2*l[1]-a[1],f*=f,c<h&&(c=h),u<f&&(u=f),c+u<n){let t=e[r+0];d.length?Math.sqrt(F(d[d.length-1],t))>1&&d.push(t):d.push(t),d.push(e[r+3])}else{let i=e[r+0],a=e[r+1],o=e[r+2],s=e[r+3],l=U(i,a,.5),c=U(a,o,.5),u=U(o,s,.5),h=U(l,c,.5),f=U(c,u,.5),p=U(h,f,.5);t([i,l,h,p],0,n,d),t([p,f,u,s],0,n,d)}return d}(t,3*r,e,n);return r&&r>0?z(n,0,n.length,r):n}let Y="none";class H{constructor(t){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=t||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(0x80000000*Math.random())}_o(t){return t?Object.assign({},this.defaultOptions,t):this.defaultOptions}_d(t,e,r){return{shape:t,sets:e||[],options:r||this.defaultOptions}}line(t,e,r,n,i){let a=this._o(i);return this._d("line",[_(t,e,r,n,a)],a)}rectangle(t,e,r,n,i){var a,o,s,l;let c=this._o(i),u=[],h=w([[a=t,o=e],[a+(s=r),o],[a+s,o+(l=n)],[a,o+l]],!0,c);if(c.fill){let i=[[t,e],[t+r,e],[t+r,e+n],[t,e+n]];"solid"===c.fillStyle?u.push(T([i],c)):u.push(C([i],c))}return c.stroke!==Y&&u.push(h),this._d("rectangle",u,c)}ellipse(t,e,r,n,i){let a=this._o(i),o=[],s=v(r,n,a),l=A(t,e,a,s);if(a.fill)if("solid"===a.fillStyle){let r=A(t,e,a,s).opset;r.type="fillPath",o.push(r)}else o.push(C([l.estimatedPoints],a));return a.stroke!==Y&&o.push(l.opset),this._d("ellipse",o,a)}circle(t,e,r,n){let i=this.ellipse(t,e,r,r,n);return i.shape="circle",i}linearPath(t,e){let r=this._o(e);return this._d("linearPath",[w(t,!1,r)],r)}arc(t,e,r,n,i,a,o=!1,s){let l=this._o(s),c=[],u=M(t,e,r,n,i,a,o,!0,l);if(o&&l.fill)if("solid"===l.fillStyle){let o=Object.assign({},l);o.disableMultiStroke=!0;let s=M(t,e,r,n,i,a,!0,!1,o);s.type="fillPath",c.push(s)}else c.push(function(t,e,r,n,i,a,o){let s=Math.abs(r/2),l=Math.abs(n/2);s+=E(.01*s,o),l+=E(.01*l,o);let c=i,u=a;for(;c<0;)c+=2*Math.PI,u+=2*Math.PI;u-c>2*Math.PI&&(c=0,u=2*Math.PI);let h=(u-c)/o.curveStepCount,f=[];for(let r=c;r<=u;r+=h)f.push([t+s*Math.cos(r),e+l*Math.sin(r)]);return f.push([t+s*Math.cos(u),e+l*Math.sin(u)]),f.push([t,e]),C([f],o)}(t,e,r,n,i,a,l));return l.stroke!==Y&&c.push(u),this._d("arc",c,l)}curve(t,e){let r=this._o(e),n=[],i=k(t,r);if(r.fill&&r.fill!==Y)if("solid"===r.fillStyle){let e=k(t,Object.assign(Object.assign({},r),{disableMultiStroke:!0,roughness:r.roughness?r.roughness+r.fillShapeRoughnessGain:0}));n.push({type:"fillPath",ops:this._mergedShape(e.ops)})}else{let e=[];if(t.length)for(let n of"number"==typeof t[0][0]?[t]:t)n.length<3?e.push(...n):3===n.length?e.push(...B(I([n[0],n[0],n[1],n[2]]),10,(1+r.roughness)/2)):e.push(...B(I(n),10,(1+r.roughness)/2));e.length&&n.push(C([e],r))}return r.stroke!==Y&&n.push(i),this._d("curve",n,r)}polygon(t,e){let r=this._o(e),n=[],i=w(t,!0,r);return r.fill&&("solid"===r.fillStyle?n.push(T([t],r)):n.push(C([t],r))),r.stroke!==Y&&n.push(i),this._d("polygon",n,r)}path(t,e){let r=this._o(e),n=[];if(!t)return this._d("path",n,r);t=(t||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");let i=r.fill&&"transparent"!==r.fill&&r.fill!==Y,a=r.stroke!==Y,o=!!(r.simplification&&r.simplification<1),s=function(t,e){let r=y(m(g(t))),n=[],i=[],a=[0,0],o=[],s=()=>{o.length>=4&&i.push(...B(o,1)),o=[]},l=()=>{s(),i.length&&(n.push(i),i=[])};for(let{key:t,data:e}of r)switch(t){case"M":l(),a=[e[0],e[1]],i.push(a);break;case"L":s(),i.push([e[0],e[1]]);break;case"C":if(!o.length){let t=i.length?i[i.length-1]:a;o.push([t[0],t[1]])}o.push([e[0],e[1]]),o.push([e[2],e[3]]),o.push([e[4],e[5]]);break;case"Z":s(),i.push([a[0],a[1]])}if(l(),!e)return n;let c=[];for(let t of n){let r=z(t,0,t.length,e);r.length&&c.push(r)}return c}(t,o?4-4*(r.simplification||1):(1+r.roughness)/2),l=S(t,r);if(i)if("solid"===r.fillStyle)if(1===s.length){let e=S(t,Object.assign(Object.assign({},r),{disableMultiStroke:!0,roughness:r.roughness?r.roughness+r.fillShapeRoughnessGain:0}));n.push({type:"fillPath",ops:this._mergedShape(e.ops)})}else n.push(T(s,r));else n.push(C(s,r));return a&&(o?s.forEach(t=>{n.push(w(t,!1,r))}):n.push(l)),this._d("path",n,r)}opsToPath(t,e){let r="";for(let n of t.ops){let t="number"==typeof e&&e>=0?n.data.map(t=>+t.toFixed(e)):n.data;switch(n.op){case"move":r+=`M${t[0]} ${t[1]} `;break;case"bcurveTo":r+=`C${t[0]} ${t[1]}, ${t[2]} ${t[3]}, ${t[4]} ${t[5]} `;break;case"lineTo":r+=`L${t[0]} ${t[1]} `}}return r.trim()}toPaths(t){let e=t.sets||[],r=t.options||this.defaultOptions,n=[];for(let t of e){let e=null;switch(t.type){case"path":e={d:this.opsToPath(t),stroke:r.stroke,strokeWidth:r.strokeWidth,fill:Y};break;case"fillPath":e={d:this.opsToPath(t),stroke:Y,strokeWidth:0,fill:r.fill||Y};break;case"fillSketch":e=this.fillSketch(t,r)}e&&n.push(e)}return n}fillSketch(t,e){let r=e.fillWeight;return r<0&&(r=e.strokeWidth/2),{d:this.opsToPath(t),stroke:e.fill||Y,strokeWidth:r,fill:Y}}_mergedShape(t){return t.filter((t,e)=>0===e||"move"!==t.op)}}class q{constructor(t,e){this.canvas=t,this.ctx=this.canvas.getContext("2d"),this.gen=new H(e)}draw(t){let e=t.sets||[],r=t.options||this.getDefaultOptions(),n=this.ctx,i=t.options.fixedDecimalPlaceDigits;for(let a of e)switch(a.type){case"path":n.save(),n.strokeStyle="none"===r.stroke?"transparent":r.stroke,n.lineWidth=r.strokeWidth,r.strokeLineDash&&n.setLineDash(r.strokeLineDash),r.strokeLineDashOffset&&(n.lineDashOffset=r.strokeLineDashOffset),this._drawToContext(n,a,i),n.restore();break;case"fillPath":{n.save(),n.fillStyle=r.fill||"";let e="curve"===t.shape||"polygon"===t.shape||"path"===t.shape?"evenodd":"nonzero";this._drawToContext(n,a,i,e),n.restore();break}case"fillSketch":this.fillSketch(n,a,r)}}fillSketch(t,e,r){let n=r.fillWeight;n<0&&(n=r.strokeWidth/2),t.save(),r.fillLineDash&&t.setLineDash(r.fillLineDash),r.fillLineDashOffset&&(t.lineDashOffset=r.fillLineDashOffset),t.strokeStyle=r.fill||"",t.lineWidth=n,this._drawToContext(t,e,r.fixedDecimalPlaceDigits),t.restore()}_drawToContext(t,e,r,n="nonzero"){for(let n of(t.beginPath(),e.ops)){let e="number"==typeof r&&r>=0?n.data.map(t=>+t.toFixed(r)):n.data;switch(n.op){case"move":t.moveTo(e[0],e[1]);break;case"bcurveTo":t.bezierCurveTo(e[0],e[1],e[2],e[3],e[4],e[5]);break;case"lineTo":t.lineTo(e[0],e[1])}}"fillPath"===e.type?t.fill(n):t.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(t,e,r,n,i){let a=this.gen.line(t,e,r,n,i);return this.draw(a),a}rectangle(t,e,r,n,i){let a=this.gen.rectangle(t,e,r,n,i);return this.draw(a),a}ellipse(t,e,r,n,i){let a=this.gen.ellipse(t,e,r,n,i);return this.draw(a),a}circle(t,e,r,n){let i=this.gen.circle(t,e,r,n);return this.draw(i),i}linearPath(t,e){let r=this.gen.linearPath(t,e);return this.draw(r),r}polygon(t,e){let r=this.gen.polygon(t,e);return this.draw(r),r}arc(t,e,r,n,i,a,o=!1,s){let l=this.gen.arc(t,e,r,n,i,a,o,s);return this.draw(l),l}curve(t,e){let r=this.gen.curve(t,e);return this.draw(r),r}path(t,e){let r=this.gen.path(t,e);return this.draw(r),r}}let W="http://www.w3.org/2000/svg";class X{constructor(t,e){this.svg=t,this.gen=new H(e)}draw(t){let e=t.sets||[],r=t.options||this.getDefaultOptions(),n=this.svg.ownerDocument||window.document,i=n.createElementNS(W,"g"),a=t.options.fixedDecimalPlaceDigits;for(let o of e){let e=null;switch(o.type){case"path":(e=n.createElementNS(W,"path")).setAttribute("d",this.opsToPath(o,a)),e.setAttribute("stroke",r.stroke),e.setAttribute("stroke-width",r.strokeWidth+""),e.setAttribute("fill","none"),r.strokeLineDash&&e.setAttribute("stroke-dasharray",r.strokeLineDash.join(" ").trim()),r.strokeLineDashOffset&&e.setAttribute("stroke-dashoffset",`${r.strokeLineDashOffset}`);break;case"fillPath":(e=n.createElementNS(W,"path")).setAttribute("d",this.opsToPath(o,a)),e.setAttribute("stroke","none"),e.setAttribute("stroke-width","0"),e.setAttribute("fill",r.fill||""),"curve"!==t.shape&&"polygon"!==t.shape||e.setAttribute("fill-rule","evenodd");break;case"fillSketch":e=this.fillSketch(n,o,r)}e&&i.appendChild(e)}return i}fillSketch(t,e,r){let n=r.fillWeight;n<0&&(n=r.strokeWidth/2);let i=t.createElementNS(W,"path");return i.setAttribute("d",this.opsToPath(e,r.fixedDecimalPlaceDigits)),i.setAttribute("stroke",r.fill||""),i.setAttribute("stroke-width",n+""),i.setAttribute("fill","none"),r.fillLineDash&&i.setAttribute("stroke-dasharray",r.fillLineDash.join(" ").trim()),r.fillLineDashOffset&&i.setAttribute("stroke-dashoffset",`${r.fillLineDashOffset}`),i}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(t,e){return this.gen.opsToPath(t,e)}line(t,e,r,n,i){let a=this.gen.line(t,e,r,n,i);return this.draw(a)}rectangle(t,e,r,n,i){let a=this.gen.rectangle(t,e,r,n,i);return this.draw(a)}ellipse(t,e,r,n,i){let a=this.gen.ellipse(t,e,r,n,i);return this.draw(a)}circle(t,e,r,n){let i=this.gen.circle(t,e,r,n);return this.draw(i)}linearPath(t,e){let r=this.gen.linearPath(t,e);return this.draw(r)}polygon(t,e){let r=this.gen.polygon(t,e);return this.draw(r)}arc(t,e,r,n,i,a,o=!1,s){let l=this.gen.arc(t,e,r,n,i,a,o,s);return this.draw(l)}curve(t,e){let r=this.gen.curve(t,e);return this.draw(r)}path(t,e){let r=this.gen.path(t,e);return this.draw(r)}}var G={canvas:(t,e)=>new q(t,e),svg:(t,e)=>new X(t,e),generator:t=>new H(t),newSeed:()=>H.newSeed()}},94630:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=function(t){return void 0===t}},95683:(t,e,r)=>{"use strict";r.d(e,{i:()=>i});var n=r(52618);function i(t){return(0,n.i)(t)}},95749:(t,e,r)=>{"use strict";r.d(e,{A:()=>h});var n=r(29703),i=Object.prototype,a=i.hasOwnProperty,o=i.toString,s=n.A?n.A.toStringTag:void 0;let l=function(t){var e=a.call(t,s),r=t[s];try{t[s]=void 0;var n=!0}catch(t){}var i=o.call(t);return n&&(e?t[s]=r:delete t[s]),i};var c=Object.prototype.toString,u=n.A?n.A.toStringTag:void 0;let h=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":u&&u in Object(t)?l(t):c.call(t)}},96901:(t,e,r)=>{"use strict";r.d(e,{A:()=>c});var n=r(5452),i=r(29703),a=r(67903),o=r(92459),s=i.A?i.A.isConcatSpreadable:void 0;let l=function(t){return(0,o.A)(t)||(0,a.A)(t)||!!(s&&t&&t[s])},c=function t(e,r,i,a,o){var s=-1,c=e.length;for(i||(i=l),o||(o=[]);++s<c;){var u=e[s];r>0&&i(u)?r>1?t(u,r-1,i,a,o):(0,n.A)(o,u):a||(o[o.length]=u)}return o}},98446:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});let n=function(t){return function(){return t}}},99507:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(64907);let i=(t,e)=>(0,n.A)(t,"l",e)}}]);