ocean-brain 0.8.2 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (232) hide show
  1. package/README.md +2 -0
  2. package/dist/mcp.js +47 -75
  3. package/package.json +3 -2
  4. package/server/client/dist/assets/{ArrowRight.es-g2YZTklZ.js → ArrowRight.es-Bm-ZXpEC.js} +1 -1
  5. package/server/client/dist/assets/Calendar-BsNs3NzO.js +25 -0
  6. package/server/client/dist/assets/{Callout-B_IPSF_5.js → Callout-CviyPHKO.js} +1 -1
  7. package/server/client/dist/assets/{Copy.es-CNxe4ujr.js → Copy.es-BPreRnP9.js} +1 -1
  8. package/server/client/dist/assets/{Graph-D9GeO71k.js → Graph-vXQQ0a-Q.js} +1 -1
  9. package/server/client/dist/assets/Graph-yPE3ljW0.js +46 -0
  10. package/server/client/dist/assets/{Image.es-DnON8cv2.js → Image.es-DnR3qc_c.js} +1 -1
  11. package/server/client/dist/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
  12. package/server/client/dist/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
  13. package/server/client/dist/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
  14. package/server/client/dist/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
  15. package/server/client/dist/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
  16. package/server/client/dist/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
  17. package/server/client/dist/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
  18. package/server/client/dist/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
  19. package/server/client/dist/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
  20. package/server/client/dist/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
  21. package/server/client/dist/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
  22. package/server/client/dist/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
  23. package/server/client/dist/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
  24. package/server/client/dist/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
  25. package/server/client/dist/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
  26. package/server/client/dist/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
  27. package/server/client/dist/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
  28. package/server/client/dist/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
  29. package/server/client/dist/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
  30. package/server/client/dist/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
  31. package/server/client/dist/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
  32. package/server/client/dist/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
  33. package/server/client/dist/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
  34. package/server/client/dist/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
  35. package/server/client/dist/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
  36. package/server/client/dist/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
  37. package/server/client/dist/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
  38. package/server/client/dist/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
  39. package/server/client/dist/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
  40. package/server/client/dist/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
  41. package/server/client/dist/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
  42. package/server/client/dist/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
  43. package/server/client/dist/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
  44. package/server/client/dist/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
  45. package/server/client/dist/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
  46. package/server/client/dist/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
  47. package/server/client/dist/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
  48. package/server/client/dist/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
  49. package/server/client/dist/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
  50. package/server/client/dist/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
  51. package/server/client/dist/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
  52. package/server/client/dist/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
  53. package/server/client/dist/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
  54. package/server/client/dist/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
  55. package/server/client/dist/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
  56. package/server/client/dist/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
  57. package/server/client/dist/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
  58. package/server/client/dist/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
  59. package/server/client/dist/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
  60. package/server/client/dist/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
  61. package/server/client/dist/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
  62. package/server/client/dist/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
  63. package/server/client/dist/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
  64. package/server/client/dist/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
  65. package/server/client/dist/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
  66. package/server/client/dist/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
  67. package/server/client/dist/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
  68. package/server/client/dist/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
  69. package/server/client/dist/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
  70. package/server/client/dist/assets/Note-CmreVzvQ.js +25 -0
  71. package/server/client/dist/assets/{NotePropertiesPanel-2DgXEM4B.js → NotePropertiesPanel-DXYgE8h2.js} +2 -2
  72. package/server/client/dist/assets/PencilLine.es-B9V6u64t.js +1 -0
  73. package/server/client/dist/assets/{Plus.es-CQ8wn2is.js → Plus.es-CRRp2u5J.js} +1 -1
  74. package/server/client/dist/assets/Reminders-BOtfNeYD.js +1 -0
  75. package/server/client/dist/assets/Search-C-FB3pKf.js +1 -0
  76. package/server/client/dist/assets/SurfaceCard-GMt5xM7v.js +1 -0
  77. package/server/client/dist/assets/Tag-lBxDRE77.js +1 -0
  78. package/server/client/dist/assets/TagNotes-Bgorp_rC.js +1 -0
  79. package/server/client/dist/assets/{Trash.es-0aPpA-3S.js → Trash.es-svHOb5LN.js} +1 -1
  80. package/server/client/dist/assets/ViewNotes-C7d10VFf.js +1 -0
  81. package/server/client/dist/assets/ViewSectionDialog-Bhw-ILop.js +102 -0
  82. package/server/client/dist/assets/Views-C7V3saUo.js +1 -0
  83. package/server/client/dist/assets/abnfDiagram-VRR7QNED-CWlV5dXw.js +1 -0
  84. package/server/client/dist/assets/app-DQBV36r_.js +50 -0
  85. package/server/client/dist/assets/app-ZgwR5t_I.css +1 -0
  86. package/server/client/dist/assets/arc-BV-n6RUX.js +1 -0
  87. package/server/client/dist/assets/architectureDiagram-ZJ3FMSHR-CekzMXdu.js +36 -0
  88. package/server/client/dist/assets/blockDiagram-677ZJIJ3-B49yHoxq.js +132 -0
  89. package/server/client/dist/assets/c4Diagram-LMCZKHZV-0AfB9NBC.js +10 -0
  90. package/server/client/dist/assets/channel-CigOulR-.js +1 -0
  91. package/server/client/dist/assets/chunk-2Q5K7J3B-DaPQAU1q.js +1 -0
  92. package/server/client/dist/assets/chunk-32BRIVSS-CfL3kZAg.js +1 -0
  93. package/server/client/dist/assets/chunk-5VM5RSS4-DeOwWPE_.js +15 -0
  94. package/server/client/dist/assets/chunk-EX3LRPZG-C3W1oc9y.js +231 -0
  95. package/server/client/dist/assets/chunk-JWPE2WC7-_Oqh79OY.js +1 -0
  96. package/server/client/dist/assets/chunk-MOJQB5TN-DDKNNzI6.js +88 -0
  97. package/server/client/dist/assets/chunk-RYQCIY6F-DCHah7CC.js +1 -0
  98. package/server/client/dist/assets/chunk-V7JOEXUC-uUOIzgxj.js +206 -0
  99. package/server/client/dist/assets/chunk-VR4S4FIN-DDVw2WPs.js +1 -0
  100. package/server/client/dist/assets/chunk-XXDRQBXY-Coo4UFm2.js +1 -0
  101. package/server/client/dist/assets/classDiagram-OUVF2IWQ-D13ISIOW.js +1 -0
  102. package/server/client/dist/assets/classDiagram-v2-EOCWNBFH-D13ISIOW.js +1 -0
  103. package/server/client/dist/assets/colors-Cc3OSVma.js +1 -0
  104. package/server/client/dist/assets/cose-bilkent-JH36ORCC-C3pHmHpD.js +1 -0
  105. package/server/client/dist/assets/cynefin-VYW2F7L2-DU_G4Atc.js +166 -0
  106. package/server/client/dist/assets/cynefinDiagram-TSTJHNR4-DZ6iiJFo.js +62 -0
  107. package/server/client/dist/assets/cytoscape.esm-D3_iZ_3b.js +321 -0
  108. package/server/client/dist/assets/dagre-VKFMJZFB-DNELbhwC.js +4 -0
  109. package/server/client/dist/assets/defaultLocale-DX6XiGOO.js +1 -0
  110. package/server/client/dist/assets/diagram-FQU43EPY-CMEvZJ61.js +3 -0
  111. package/server/client/dist/assets/diagram-G47NLZAW-BYDtf6j9.js +24 -0
  112. package/server/client/dist/assets/diagram-NH7WQ7WH-CmXfcCQA.js +24 -0
  113. package/server/client/dist/assets/diagram-OA4YK3LP-BflTKJxU.js +30 -0
  114. package/server/client/dist/assets/diagram-WEI45ONY-KW3fKqna.js +41 -0
  115. package/server/client/dist/assets/ebnfDiagram-CCIWWBDH-CbyhY5Nj.js +1 -0
  116. package/server/client/dist/assets/erDiagram-Q63AITRT-CC2eZV8g.js +85 -0
  117. package/server/client/dist/assets/{floating-ui.react-dom-wWLZ1CdM.js → floating-ui.react-dom-BWTnA00G.js} +1 -1
  118. package/server/client/dist/assets/flowDiagram-23GEKE2U-unplo7Qm.js +156 -0
  119. package/server/client/dist/assets/ganttDiagram-NO4QXBWP-BcBK5HcZ.js +292 -0
  120. package/server/client/dist/assets/gitGraphDiagram-IHSO6WYX-DgVbbb5k.js +106 -0
  121. package/server/client/dist/assets/graph-C5DFNLrC.js +1 -0
  122. package/server/client/dist/assets/image-delete-confirmation-D7xrODQV.js +1 -0
  123. package/server/client/dist/assets/image.api-QmHYjp3z.js +17 -0
  124. package/server/client/dist/assets/index-CaF9d-zG.js +1 -0
  125. package/server/client/dist/assets/infoDiagram-FWYZ7A6U-N_D9RdfG.js +2 -0
  126. package/server/client/dist/assets/init-Gi6I4Gst.js +1 -0
  127. package/server/client/dist/assets/isObject-U9U2HXiq.js +1 -0
  128. package/server/client/dist/assets/ishikawaDiagram-FXEZZL3T-BBKrzmB2.js +70 -0
  129. package/server/client/dist/assets/journeyDiagram-5HDEW3XC-NdCxLmQB.js +139 -0
  130. package/server/client/dist/assets/kanban-definition-HUTT4EX6-Ck7t4-tt.js +89 -0
  131. package/server/client/dist/assets/katex-DywYRkvg.css +1 -0
  132. package/server/client/dist/assets/katex-HP8lGamR.js +257 -0
  133. package/server/client/dist/assets/katex-x288kqHd.js +257 -0
  134. package/server/client/dist/assets/layout-Cz0MDlGi.js +1 -0
  135. package/server/client/dist/assets/linear-D6yRgDLq.js +1 -0
  136. package/server/client/dist/assets/manage-image-DCDF8AM9.js +1 -0
  137. package/server/client/dist/assets/manage-image-detail-e0ViRAj-.js +1 -0
  138. package/server/client/dist/assets/map-Mm1V-_Na.js +1 -0
  139. package/server/client/dist/assets/mcp-admin-adapter-D39G3udJ.js +1 -0
  140. package/server/client/dist/assets/{mcp-CT_9IV2c.js → mcp-uFZkdhCi.js} +4 -4
  141. package/server/client/dist/assets/mermaid.core-B14ZAmWA.js +308 -0
  142. package/server/client/dist/assets/min-tv6RD-6E.js +1 -0
  143. package/server/client/dist/assets/mindmap-definition-LN4V7U3C-BTUqSdcP.js +96 -0
  144. package/server/client/dist/assets/{note-core-Buwzyxi7.js → note-core-DUTqUh5N.js} +2 -2
  145. package/server/client/dist/assets/{note-runtime-CPDVOFEo.js → note-runtime-zN5ddTba.js} +1 -1
  146. package/server/client/dist/assets/{note-ui-CHI-tzj-.js → note-ui-CxK8ymUc.js} +1 -1
  147. package/server/client/dist/assets/{note.api-D_00ZzJC.js → note.api-BQovzEzd.js} +6 -6
  148. package/server/client/dist/assets/ordinal-Cboi1Yqb.js +1 -0
  149. package/server/client/dist/assets/pegDiagram-2B236MQR-Cjcu3mVz.js +1 -0
  150. package/server/client/dist/assets/pieDiagram-ENE6RG2P-BxI_c22Z.js +39 -0
  151. package/server/client/dist/assets/{placeholder-DbdGiYGL.js → placeholder-D3b8lZGE.js} +4 -4
  152. package/server/client/dist/assets/properties-M-yWq1D7.js +1 -0
  153. package/server/client/dist/assets/quadrantDiagram-ABIIQ3AL-DGm0a-yR.js +7 -0
  154. package/server/client/dist/assets/railroadDiagram-RFXS5EU6-DmCDu89O.js +1 -0
  155. package/server/client/dist/assets/requirementDiagram-TGXJPOKE-CBpUt7Ig.js +84 -0
  156. package/server/client/dist/assets/route-preload.js +2 -2
  157. package/server/client/dist/assets/sankeyDiagram-HTMAVEWB-BjGnDZlp.js +40 -0
  158. package/server/client/dist/assets/search-DFnzZKLd.js +1 -0
  159. package/server/client/dist/assets/sequenceDiagram-DBY2YBRQ-B7rpCfS6.js +162 -0
  160. package/server/client/dist/assets/sizeCapture-X5ZJPWSS-CUJhD0uW.js +1 -0
  161. package/server/client/dist/assets/stateDiagram-2N3HPSRC-Y9-3XqRX.js +1 -0
  162. package/server/client/dist/assets/stateDiagram-v2-6OUMAXLB-DbHXhT02.js +1 -0
  163. package/server/client/dist/assets/swimlanes-5IMT3BWC-Cs1NO9ng.js +2 -0
  164. package/server/client/dist/assets/swimlanesDiagram-G3AALYLV-DQnrq2ZC.js +8 -0
  165. package/server/client/dist/assets/{tag.api-CX0SE06J.js → tag.api-DUfjr8bg.js} +3 -3
  166. package/server/client/dist/assets/time-CfAYZipR.js +9 -0
  167. package/server/client/dist/assets/timeline-definition-FHXFAJF6-8fqD4WNL.js +120 -0
  168. package/server/client/dist/assets/toNumber-DE3J3kMD.js +1 -0
  169. package/server/client/dist/assets/transform-BUB79_za.js +1 -0
  170. package/server/client/dist/assets/trash-CClKfP1x.js +1 -0
  171. package/server/client/dist/assets/url-9nrbQs7Z.js +1 -0
  172. package/server/client/dist/assets/{useReminderMutate-CLK1tHvT.js → useReminderMutate--omDLmBV.js} +4 -4
  173. package/server/client/dist/assets/vennDiagram-L72KCM5P-BPqKkd5a.js +34 -0
  174. package/server/client/dist/assets/wardleyDiagram-EHGQE667-Cq11kU2M.js +78 -0
  175. package/server/client/dist/assets/xychartDiagram-FW5EYKEG-DJ6UzFj-.js +7 -0
  176. package/server/client/dist/index.html +7 -7
  177. package/server/dist/features/image/services/delete.js +25 -1
  178. package/server/dist/features/note/graphql/note.mutation.resolver.js +38 -12
  179. package/server/dist/features/note/graphql/note.type-defs.js +1 -1
  180. package/server/dist/features/note/http/mcp.js +1 -60
  181. package/server/dist/features/note/services/authoring.js +2 -70
  182. package/server/dist/features/note/services/markdown-patch.js +80 -8
  183. package/server/dist/features/note/services/properties.js +21 -1
  184. package/server/dist/features/note/services/property-restore.js +26 -0
  185. package/server/dist/features/note/services/snapshot.js +79 -59
  186. package/server/dist/features/note/services/trash.js +16 -31
  187. package/server/dist/features/search/embedding-api-key-store.js +57 -0
  188. package/server/dist/features/search/embedding-client.js +179 -0
  189. package/server/dist/features/search/graphql/index.js +6 -0
  190. package/server/dist/features/search/graphql/resolver.js +20 -0
  191. package/server/dist/features/search/graphql/type-defs.js +30 -0
  192. package/server/dist/features/search/http/handlers.js +108 -0
  193. package/server/dist/features/search/hybrid-ranking.js +55 -0
  194. package/server/dist/features/search/hybrid-search.js +174 -0
  195. package/server/dist/features/search/note-change.js +16 -0
  196. package/server/dist/features/search/note-chunking.js +75 -0
  197. package/server/dist/features/search/search-config.js +150 -0
  198. package/server/dist/features/search/search-manager.js +431 -0
  199. package/server/dist/features/search/semantic-indexer.js +138 -0
  200. package/server/dist/features/search/sqlite-vector-index.js +636 -0
  201. package/server/dist/features/search/url-normalization.js +10 -0
  202. package/server/dist/features/tag/services/organization.js +3 -0
  203. package/server/dist/features/view/services/workspace.js +1 -1
  204. package/server/dist/main.js +2 -0
  205. package/server/dist/modules/blocknote.js +4 -5
  206. package/server/dist/paths.js +7 -2
  207. package/server/dist/routes/api.js +37 -0
  208. package/server/dist/routes/mcp.js +0 -5
  209. package/server/dist/schema/index.js +3 -0
  210. package/server/client/dist/assets/Calendar-BP6HTuSn.js +0 -25
  211. package/server/client/dist/assets/Graph-Xha3fwhp.js +0 -46
  212. package/server/client/dist/assets/Image-BLEjLUqd.js +0 -1
  213. package/server/client/dist/assets/Note-DjrCYtat.js +0 -24
  214. package/server/client/dist/assets/Reminders-B4l3KdlK.js +0 -1
  215. package/server/client/dist/assets/Search-BN5sf7bE.js +0 -1
  216. package/server/client/dist/assets/SurfaceCard-BZm73nyS.js +0 -1
  217. package/server/client/dist/assets/Tag-oSnmViVp.js +0 -1
  218. package/server/client/dist/assets/TagNotes-BDTCcJcL.js +0 -1
  219. package/server/client/dist/assets/ViewNotes-CiZtGJNE.js +0 -1
  220. package/server/client/dist/assets/ViewSectionDialog-Ctl_694Y.js +0 -102
  221. package/server/client/dist/assets/Views-D-zlatYD.js +0 -1
  222. package/server/client/dist/assets/app-DmqIOMWF.css +0 -1
  223. package/server/client/dist/assets/app-cTRcKMGc.js +0 -26
  224. package/server/client/dist/assets/image.api-CVuuvTBk.js +0 -17
  225. package/server/client/dist/assets/index-DKJChPr4.js +0 -1
  226. package/server/client/dist/assets/manage-image-BZjaxp-f.js +0 -1
  227. package/server/client/dist/assets/manage-image-detail-DPv0FQ2m.js +0 -1
  228. package/server/client/dist/assets/mcp-admin-adapter-xAuyZc_M.js +0 -1
  229. package/server/client/dist/assets/properties-D447wsWk.js +0 -1
  230. package/server/client/dist/assets/time-B3pt8vt4.js +0 -9
  231. package/server/client/dist/assets/trash-8sH7EZgc.js +0 -1
  232. package/server/client/dist/assets/url-BSnWpmJx.js +0 -1
@@ -1 +1 @@
1
- function Ce(t,e){for(var r=0;r<e.length;r++){const n=e[r];if(typeof n!="string"&&!Array.isArray(n)){for(const s in n)if(s!=="default"&&!(s in t)){const c=Object.getOwnPropertyDescriptor(n,s);c&&Object.defineProperty(t,s,c.get?c:{enumerable:!0,get:()=>n[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var Un=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ge(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var At={exports:{}},gt={};var zt;function Pe(){if(zt)return gt;zt=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function r(n,s,c){var f=null;if(c!==void 0&&(f=""+c),s.key!==void 0&&(f=""+s.key),"key"in s){c={};for(var d in s)d!=="key"&&(c[d]=s[d])}else c=s;return s=c.ref,{$$typeof:t,type:n,key:f,ref:s!==void 0?s:null,props:c}}return gt.Fragment=e,gt.jsx=r,gt.jsxs=r,gt}var Gt;function Le(){return Gt||(Gt=1,At.exports=Pe()),At.exports}var zn=Le(),Tt={exports:{}},b={};var Xt;function De(){if(Xt)return b;Xt=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),f=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),i=Symbol.for("react.memo"),l=Symbol.for("react.lazy"),a=Symbol.for("react.activity"),p=Symbol.iterator;function m(o){return o===null||typeof o!="object"?null:(o=p&&o[p]||o["@@iterator"],typeof o=="function"?o:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y=Object.assign,v={};function x(o,g,A){this.props=o,this.context=g,this.refs=v,this.updater=A||h}x.prototype.isReactComponent={},x.prototype.setState=function(o,g){if(typeof o!="object"&&typeof o!="function"&&o!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,o,g,"setState")},x.prototype.forceUpdate=function(o){this.updater.enqueueForceUpdate(this,o,"forceUpdate")};function S(){}S.prototype=x.prototype;function E(o,g,A){this.props=o,this.context=g,this.refs=v,this.updater=A||h}var R=E.prototype=new S;R.constructor=E,y(R,x.prototype),R.isPureReactComponent=!0;var T=Array.isArray;function _(){}var w={H:null,A:null,T:null,S:null},j=Object.prototype.hasOwnProperty;function W(o,g,A){var O=A.ref;return{$$typeof:t,type:o,key:g,ref:O!==void 0?O:null,props:A}}function L(o,g){return W(o.type,g,o.props)}function F(o){return typeof o=="object"&&o!==null&&o.$$typeof===t}function B(o){var g={"=":"=0",":":"=2"};return"$"+o.replace(/[=:]/g,function(A){return g[A]})}var N=/\/+/g;function k(o,g){return typeof o=="object"&&o!==null&&o.key!=null?B(""+o.key):g.toString(36)}function Y(o){switch(o.status){case"fulfilled":return o.value;case"rejected":throw o.reason;default:switch(typeof o.status=="string"?o.then(_,_):(o.status="pending",o.then(function(g){o.status==="pending"&&(o.status="fulfilled",o.value=g)},function(g){o.status==="pending"&&(o.status="rejected",o.reason=g)})),o.status){case"fulfilled":return o.value;case"rejected":throw o.reason}}throw o}function M(o,g,A,O,P){var D=typeof o;(D==="undefined"||D==="boolean")&&(o=null);var $=!1;if(o===null)$=!0;else switch(D){case"bigint":case"string":case"number":$=!0;break;case"object":switch(o.$$typeof){case t:case e:$=!0;break;case l:return $=o._init,M($(o._payload),g,A,O,P)}}if($)return P=P(o),$=O===""?"."+k(o,0):O,T(P)?(A="",$!=null&&(A=$.replace(N,"$&/")+"/"),M(P,g,A,"",function(Te){return Te})):P!=null&&(F(P)&&(P=L(P,A+(P.key==null||o&&o.key===P.key?"":(""+P.key).replace(N,"$&/")+"/")+$)),g.push(P)),1;$=0;var Z=O===""?".":O+":";if(T(o))for(var U=0;U<o.length;U++)O=o[U],D=Z+k(O,U),$+=M(O,g,A,D,P);else if(U=m(o),typeof U=="function")for(o=U.call(o),U=0;!(O=o.next()).done;)O=O.value,D=Z+k(O,U++),$+=M(O,g,A,D,P);else if(D==="object"){if(typeof o.then=="function")return M(Y(o),g,A,O,P);throw g=String(o),Error("Objects are not valid as a React child (found: "+(g==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":g)+"). If you meant to render a collection of children, use an array instead.")}return $}function H(o,g,A){if(o==null)return o;var O=[],P=0;return M(o,O,"","",function(D){return g.call(A,D,P++)}),O}function C(o){if(o._status===-1){var g=o._result;g=g(),g.then(function(A){(o._status===0||o._status===-1)&&(o._status=1,o._result=A)},function(A){(o._status===0||o._status===-1)&&(o._status=2,o._result=A)}),o._status===-1&&(o._status=0,o._result=g)}if(o._status===1)return o._result.default;throw o._result}var V=typeof reportError=="function"?reportError:function(o){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var g=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof o=="object"&&o!==null&&typeof o.message=="string"?String(o.message):String(o),error:o});if(!window.dispatchEvent(g))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",o);return}console.error(o)},Q={map:H,forEach:function(o,g,A){H(o,function(){g.apply(this,arguments)},A)},count:function(o){var g=0;return H(o,function(){g++}),g},toArray:function(o){return H(o,function(g){return g})||[]},only:function(o){if(!F(o))throw Error("React.Children.only expected to receive a single React element child.");return o}};return b.Activity=a,b.Children=Q,b.Component=x,b.Fragment=r,b.Profiler=s,b.PureComponent=E,b.StrictMode=n,b.Suspense=u,b.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,b.__COMPILER_RUNTIME={__proto__:null,c:function(o){return w.H.useMemoCache(o)}},b.cache=function(o){return function(){return o.apply(null,arguments)}},b.cacheSignal=function(){return null},b.cloneElement=function(o,g,A){if(o==null)throw Error("The argument must be a React element, but you passed "+o+".");var O=y({},o.props),P=o.key;if(g!=null)for(D in g.key!==void 0&&(P=""+g.key),g)!j.call(g,D)||D==="key"||D==="__self"||D==="__source"||D==="ref"&&g.ref===void 0||(O[D]=g[D]);var D=arguments.length-2;if(D===1)O.children=A;else if(1<D){for(var $=Array(D),Z=0;Z<D;Z++)$[Z]=arguments[Z+2];O.children=$}return W(o.type,P,O)},b.createContext=function(o){return o={$$typeof:f,_currentValue:o,_currentValue2:o,_threadCount:0,Provider:null,Consumer:null},o.Provider=o,o.Consumer={$$typeof:c,_context:o},o},b.createElement=function(o,g,A){var O,P={},D=null;if(g!=null)for(O in g.key!==void 0&&(D=""+g.key),g)j.call(g,O)&&O!=="key"&&O!=="__self"&&O!=="__source"&&(P[O]=g[O]);var $=arguments.length-2;if($===1)P.children=A;else if(1<$){for(var Z=Array($),U=0;U<$;U++)Z[U]=arguments[U+2];P.children=Z}if(o&&o.defaultProps)for(O in $=o.defaultProps,$)P[O]===void 0&&(P[O]=$[O]);return W(o,D,P)},b.createRef=function(){return{current:null}},b.forwardRef=function(o){return{$$typeof:d,render:o}},b.isValidElement=F,b.lazy=function(o){return{$$typeof:l,_payload:{_status:-1,_result:o},_init:C}},b.memo=function(o,g){return{$$typeof:i,type:o,compare:g===void 0?null:g}},b.startTransition=function(o){var g=w.T,A={};w.T=A;try{var O=o(),P=w.S;P!==null&&P(A,O),typeof O=="object"&&O!==null&&typeof O.then=="function"&&O.then(_,V)}catch(D){V(D)}finally{g!==null&&A.types!==null&&(g.types=A.types),w.T=g}},b.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},b.use=function(o){return w.H.use(o)},b.useActionState=function(o,g,A){return w.H.useActionState(o,g,A)},b.useCallback=function(o,g){return w.H.useCallback(o,g)},b.useContext=function(o){return w.H.useContext(o)},b.useDebugValue=function(){},b.useDeferredValue=function(o,g){return w.H.useDeferredValue(o,g)},b.useEffect=function(o,g){return w.H.useEffect(o,g)},b.useEffectEvent=function(o){return w.H.useEffectEvent(o)},b.useId=function(){return w.H.useId()},b.useImperativeHandle=function(o,g,A){return w.H.useImperativeHandle(o,g,A)},b.useInsertionEffect=function(o,g){return w.H.useInsertionEffect(o,g)},b.useLayoutEffect=function(o,g){return w.H.useLayoutEffect(o,g)},b.useMemo=function(o,g){return w.H.useMemo(o,g)},b.useOptimistic=function(o,g){return w.H.useOptimistic(o,g)},b.useReducer=function(o,g,A){return w.H.useReducer(o,g,A)},b.useRef=function(o){return w.H.useRef(o)},b.useState=function(o){return w.H.useState(o)},b.useSyncExternalStore=function(o,g,A){return w.H.useSyncExternalStore(o,g,A)},b.useTransition=function(){return w.H.useTransition()},b.version="19.2.4",b}var Jt;function Et(){return Jt||(Jt=1,Tt.exports=De()),Tt.exports}var I=Et();const Me=ge(I),Gn=Ce({__proto__:null,default:Me},[I]);var Ct={exports:{}},q={};var Kt;function ke(){if(Kt)return q;Kt=1;var t=Et();function e(u){var i="https://react.dev/errors/"+u;if(1<arguments.length){i+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)i+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+u+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var n={d:{f:r,r:function(){throw Error(e(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},s=Symbol.for("react.portal");function c(u,i,l){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:a==null?null:""+a,children:u,containerInfo:i,implementation:l}}var f=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(u,i){if(u==="font")return"";if(typeof i=="string")return i==="use-credentials"?i:""}return q.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=n,q.createPortal=function(u,i){var l=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)throw Error(e(299));return c(u,i,null,l)},q.flushSync=function(u){var i=f.T,l=n.p;try{if(f.T=null,n.p=2,u)return u()}finally{f.T=i,n.p=l,n.d.f()}},q.preconnect=function(u,i){typeof u=="string"&&(i?(i=i.crossOrigin,i=typeof i=="string"?i==="use-credentials"?i:"":void 0):i=null,n.d.C(u,i))},q.prefetchDNS=function(u){typeof u=="string"&&n.d.D(u)},q.preinit=function(u,i){if(typeof u=="string"&&i&&typeof i.as=="string"){var l=i.as,a=d(l,i.crossOrigin),p=typeof i.integrity=="string"?i.integrity:void 0,m=typeof i.fetchPriority=="string"?i.fetchPriority:void 0;l==="style"?n.d.S(u,typeof i.precedence=="string"?i.precedence:void 0,{crossOrigin:a,integrity:p,fetchPriority:m}):l==="script"&&n.d.X(u,{crossOrigin:a,integrity:p,fetchPriority:m,nonce:typeof i.nonce=="string"?i.nonce:void 0})}},q.preinitModule=function(u,i){if(typeof u=="string")if(typeof i=="object"&&i!==null){if(i.as==null||i.as==="script"){var l=d(i.as,i.crossOrigin);n.d.M(u,{crossOrigin:l,integrity:typeof i.integrity=="string"?i.integrity:void 0,nonce:typeof i.nonce=="string"?i.nonce:void 0})}}else i==null&&n.d.M(u)},q.preload=function(u,i){if(typeof u=="string"&&typeof i=="object"&&i!==null&&typeof i.as=="string"){var l=i.as,a=d(l,i.crossOrigin);n.d.L(u,l,{crossOrigin:a,integrity:typeof i.integrity=="string"?i.integrity:void 0,nonce:typeof i.nonce=="string"?i.nonce:void 0,type:typeof i.type=="string"?i.type:void 0,fetchPriority:typeof i.fetchPriority=="string"?i.fetchPriority:void 0,referrerPolicy:typeof i.referrerPolicy=="string"?i.referrerPolicy:void 0,imageSrcSet:typeof i.imageSrcSet=="string"?i.imageSrcSet:void 0,imageSizes:typeof i.imageSizes=="string"?i.imageSizes:void 0,media:typeof i.media=="string"?i.media:void 0})}},q.preloadModule=function(u,i){if(typeof u=="string")if(i){var l=d(i.as,i.crossOrigin);n.d.m(u,{as:typeof i.as=="string"&&i.as!=="script"?i.as:void 0,crossOrigin:l,integrity:typeof i.integrity=="string"?i.integrity:void 0})}else n.d.m(u)},q.requestFormReset=function(u){n.d.r(u)},q.unstable_batchedUpdates=function(u,i){return u(i)},q.useFormState=function(u,i,l){return f.H.useFormState(u,i,l)},q.useFormStatus=function(){return f.H.useHostTransitionStatus()},q.version="19.2.4",q}var Qt;function $e(){if(Qt)return Ct.exports;Qt=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),Ct.exports=ke(),Ct.exports}var Pt={exports:{}},Lt={},Dt={exports:{}},Mt={};var Zt;function je(){if(Zt)return Mt;Zt=1;var t=Et();function e(a,p){return a===p&&(a!==0||1/a===1/p)||a!==a&&p!==p}var r=typeof Object.is=="function"?Object.is:e,n=t.useState,s=t.useEffect,c=t.useLayoutEffect,f=t.useDebugValue;function d(a,p){var m=p(),h=n({inst:{value:m,getSnapshot:p}}),y=h[0].inst,v=h[1];return c(function(){y.value=m,y.getSnapshot=p,u(y)&&v({inst:y})},[a,m,p]),s(function(){return u(y)&&v({inst:y}),a(function(){u(y)&&v({inst:y})})},[a]),f(m),m}function u(a){var p=a.getSnapshot;a=a.value;try{var m=p();return!r(a,m)}catch{return!0}}function i(a,p){return p()}var l=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?i:d;return Mt.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:l,Mt}var te;function Ne(){return te||(te=1,Dt.exports=je()),Dt.exports}var ee;function He(){if(ee)return Lt;ee=1;var t=Et(),e=Ne();function r(i,l){return i===l&&(i!==0||1/i===1/l)||i!==i&&l!==l}var n=typeof Object.is=="function"?Object.is:r,s=e.useSyncExternalStore,c=t.useRef,f=t.useEffect,d=t.useMemo,u=t.useDebugValue;return Lt.useSyncExternalStoreWithSelector=function(i,l,a,p,m){var h=c(null);if(h.current===null){var y={hasValue:!1,value:null};h.current=y}else y=h.current;h=d(function(){function x(_){if(!S){if(S=!0,E=_,_=p(_),m!==void 0&&y.hasValue){var w=y.value;if(m(w,_))return R=w}return R=_}if(w=R,n(E,_))return w;var j=p(_);return m!==void 0&&m(w,j)?(E=_,w):(E=_,R=j)}var S=!1,E,R,T=a===void 0?null:a;return[function(){return x(l())},T===null?void 0:function(){return x(T())}]},[l,a,p,m]);var v=s(i,h[0],h[1]);return f(function(){y.hasValue=!0,y.value=v},[v]),u(v),v},Lt}var ne;function Fe(){return ne||(ne=1,Pt.exports=He()),Pt.exports}var Xn=Fe(),pe=$e();const Jn=ge(pe);function he(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var s=t.length;for(e=0;e<s;e++)t[e]&&(r=he(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}function Kn(){for(var t,e,r=0,n="",s=arguments.length;r<s;r++)(t=arguments[r])&&(e=he(t))&&(n&&(n+=" "),n+=e);return n}const Ie=["top","right","bottom","left"],it=Math.min,tt=Math.max,We={left:"right",right:"left",bottom:"top",top:"bottom"},Be={start:"end",end:"start"};function jt(t,e,r){return tt(t,it(e,r))}function nt(t,e){return typeof t=="function"?t(e):t}function X(t){return t.split("-")[0]}function dt(t){return t.split("-")[1]}function It(t){return t==="x"?"y":"x"}function Wt(t){return t==="y"?"height":"width"}const Ye=new Set(["top","bottom"]);function G(t){return Ye.has(X(t))?"y":"x"}function Bt(t){return It(G(t))}function Ve(t,e,r){r===void 0&&(r=!1);const n=dt(t),s=Bt(t),c=Wt(s);let f=s==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[c]>e.floating[c]&&(f=wt(f)),[f,wt(f)]}function qe(t){const e=wt(t);return[Nt(t),e,Nt(e)]}function Nt(t){return t.replace(/start|end/g,e=>Be[e])}const re=["left","right"],oe=["right","left"],Ue=["top","bottom"],ze=["bottom","top"];function Ge(t,e,r){switch(t){case"top":case"bottom":return r?e?oe:re:e?re:oe;case"left":case"right":return e?Ue:ze;default:return[]}}function Xe(t,e,r,n){const s=dt(t);let c=Ge(X(t),r==="start",n);return s&&(c=c.map(f=>f+"-"+s),e&&(c=c.concat(c.map(Nt)))),c}function wt(t){return t.replace(/left|right|bottom|top/g,e=>We[e])}function Je(t){return{top:0,right:0,bottom:0,left:0,...t}}function Yt(t){return typeof t!="number"?Je(t):{top:t,right:t,bottom:t,left:t}}function lt(t){const{x:e,y:r,width:n,height:s}=t;return{width:n,height:s,top:r,left:e,right:e+n,bottom:r+s,x:e,y:r}}function ie(t,e,r){let{reference:n,floating:s}=t;const c=G(e),f=Bt(e),d=Wt(f),u=X(e),i=c==="y",l=n.x+n.width/2-s.width/2,a=n.y+n.height/2-s.height/2,p=n[d]/2-s[d]/2;let m;switch(u){case"top":m={x:l,y:n.y-s.height};break;case"bottom":m={x:l,y:n.y+n.height};break;case"right":m={x:n.x+n.width,y:a};break;case"left":m={x:n.x-s.width,y:a};break;default:m={x:n.x,y:n.y}}switch(dt(e)){case"start":m[f]-=p*(r&&i?-1:1);break;case"end":m[f]+=p*(r&&i?-1:1);break}return m}async function Ke(t,e){var r;e===void 0&&(e={});const{x:n,y:s,platform:c,rects:f,elements:d,strategy:u}=t,{boundary:i="clippingAncestors",rootBoundary:l="viewport",elementContext:a="floating",altBoundary:p=!1,padding:m=0}=nt(e,t),h=Yt(m),v=d[p?a==="floating"?"reference":"floating":a],x=lt(await c.getClippingRect({element:(r=await(c.isElement==null?void 0:c.isElement(v)))==null||r?v:v.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(d.floating)),boundary:i,rootBoundary:l,strategy:u})),S=a==="floating"?{x:n,y:s,width:f.floating.width,height:f.floating.height}:f.reference,E=await(c.getOffsetParent==null?void 0:c.getOffsetParent(d.floating)),R=await(c.isElement==null?void 0:c.isElement(E))?await(c.getScale==null?void 0:c.getScale(E))||{x:1,y:1}:{x:1,y:1},T=lt(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:S,offsetParent:E,strategy:u}):S);return{top:(x.top-T.top+h.top)/R.y,bottom:(T.bottom-x.bottom+h.bottom)/R.y,left:(x.left-T.left+h.left)/R.x,right:(T.right-x.right+h.right)/R.x}}const Qe=async(t,e,r)=>{const{placement:n="bottom",strategy:s="absolute",middleware:c=[],platform:f}=r,d=c.filter(Boolean),u=await(f.isRTL==null?void 0:f.isRTL(e));let i=await f.getElementRects({reference:t,floating:e,strategy:s}),{x:l,y:a}=ie(i,n,u),p=n,m={},h=0;for(let v=0;v<d.length;v++){var y;const{name:x,fn:S}=d[v],{x:E,y:R,data:T,reset:_}=await S({x:l,y:a,initialPlacement:n,placement:p,strategy:s,middlewareData:m,rects:i,platform:{...f,detectOverflow:(y=f.detectOverflow)!=null?y:Ke},elements:{reference:t,floating:e}});l=E??l,a=R??a,m={...m,[x]:{...m[x],...T}},_&&h<=50&&(h++,typeof _=="object"&&(_.placement&&(p=_.placement),_.rects&&(i=_.rects===!0?await f.getElementRects({reference:t,floating:e,strategy:s}):_.rects),{x:l,y:a}=ie(i,p,u)),v=-1)}return{x:l,y:a,placement:p,strategy:s,middlewareData:m}},Ze=t=>({name:"arrow",options:t,async fn(e){const{x:r,y:n,placement:s,rects:c,platform:f,elements:d,middlewareData:u}=e,{element:i,padding:l=0}=nt(t,e)||{};if(i==null)return{};const a=Yt(l),p={x:r,y:n},m=Bt(s),h=Wt(m),y=await f.getDimensions(i),v=m==="y",x=v?"top":"left",S=v?"bottom":"right",E=v?"clientHeight":"clientWidth",R=c.reference[h]+c.reference[m]-p[m]-c.floating[h],T=p[m]-c.reference[m],_=await(f.getOffsetParent==null?void 0:f.getOffsetParent(i));let w=_?_[E]:0;(!w||!await(f.isElement==null?void 0:f.isElement(_)))&&(w=d.floating[E]||c.floating[h]);const j=R/2-T/2,W=w/2-y[h]/2-1,L=it(a[x],W),F=it(a[S],W),B=L,N=w-y[h]-F,k=w/2-y[h]/2+j,Y=jt(B,k,N),M=!u.arrow&&dt(s)!=null&&k!==Y&&c.reference[h]/2-(k<B?L:F)-y[h]/2<0,H=M?k<B?k-B:k-N:0;return{[m]:p[m]+H,data:{[m]:Y,centerOffset:k-Y-H,...M&&{alignmentOffset:H}},reset:M}}}),tn=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var r,n;const{placement:s,middlewareData:c,rects:f,initialPlacement:d,platform:u,elements:i}=e,{mainAxis:l=!0,crossAxis:a=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:y=!0,...v}=nt(t,e);if((r=c.arrow)!=null&&r.alignmentOffset)return{};const x=X(s),S=G(d),E=X(d)===d,R=await(u.isRTL==null?void 0:u.isRTL(i.floating)),T=p||(E||!y?[wt(d)]:qe(d)),_=h!=="none";!p&&_&&T.push(...Xe(d,y,h,R));const w=[d,...T],j=await u.detectOverflow(e,v),W=[];let L=((n=c.flip)==null?void 0:n.overflows)||[];if(l&&W.push(j[x]),a){const k=Ve(s,f,R);W.push(j[k[0]],j[k[1]])}if(L=[...L,{placement:s,overflows:W}],!W.every(k=>k<=0)){var F,B;const k=(((F=c.flip)==null?void 0:F.index)||0)+1,Y=w[k];if(Y&&(!(a==="alignment"?S!==G(Y):!1)||L.every(C=>G(C.placement)===S?C.overflows[0]>0:!0)))return{data:{index:k,overflows:L},reset:{placement:Y}};let M=(B=L.filter(H=>H.overflows[0]<=0).sort((H,C)=>H.overflows[1]-C.overflows[1])[0])==null?void 0:B.placement;if(!M)switch(m){case"bestFit":{var N;const H=(N=L.filter(C=>{if(_){const V=G(C.placement);return V===S||V==="y"}return!0}).map(C=>[C.placement,C.overflows.filter(V=>V>0).reduce((V,Q)=>V+Q,0)]).sort((C,V)=>C[1]-V[1])[0])==null?void 0:N[0];H&&(M=H);break}case"initialPlacement":M=d;break}if(s!==M)return{reset:{placement:M}}}return{}}}};function se(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function ce(t){return Ie.some(e=>t[e]>=0)}const en=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:r,platform:n}=e,{strategy:s="referenceHidden",...c}=nt(t,e);switch(s){case"referenceHidden":{const f=await n.detectOverflow(e,{...c,elementContext:"reference"}),d=se(f,r.reference);return{data:{referenceHiddenOffsets:d,referenceHidden:ce(d)}}}case"escaped":{const f=await n.detectOverflow(e,{...c,altBoundary:!0}),d=se(f,r.floating);return{data:{escapedOffsets:d,escaped:ce(d)}}}default:return{}}}}};function ye(t){const e=it(...t.map(c=>c.left)),r=it(...t.map(c=>c.top)),n=tt(...t.map(c=>c.right)),s=tt(...t.map(c=>c.bottom));return{x:e,y:r,width:n-e,height:s-r}}function nn(t){const e=t.slice().sort((s,c)=>s.y-c.y),r=[];let n=null;for(let s=0;s<e.length;s++){const c=e[s];!n||c.y-n.y>n.height/2?r.push([c]):r[r.length-1].push(c),n=c}return r.map(s=>lt(ye(s)))}const rn=function(t){return t===void 0&&(t={}),{name:"inline",options:t,async fn(e){const{placement:r,elements:n,rects:s,platform:c,strategy:f}=e,{padding:d=2,x:u,y:i}=nt(t,e),l=Array.from(await(c.getClientRects==null?void 0:c.getClientRects(n.reference))||[]),a=nn(l),p=lt(ye(l)),m=Yt(d);function h(){if(a.length===2&&a[0].left>a[1].right&&u!=null&&i!=null)return a.find(v=>u>v.left-m.left&&u<v.right+m.right&&i>v.top-m.top&&i<v.bottom+m.bottom)||p;if(a.length>=2){if(G(r)==="y"){const L=a[0],F=a[a.length-1],B=X(r)==="top",N=L.top,k=F.bottom,Y=B?L.left:F.left,M=B?L.right:F.right,H=M-Y,C=k-N;return{top:N,bottom:k,left:Y,right:M,width:H,height:C,x:Y,y:N}}const v=X(r)==="left",x=tt(...a.map(L=>L.right)),S=it(...a.map(L=>L.left)),E=a.filter(L=>v?L.left===S:L.right===x),R=E[0].top,T=E[E.length-1].bottom,_=S,w=x,j=w-_,W=T-R;return{top:R,bottom:T,left:_,right:w,width:j,height:W,x:_,y:R}}return p}const y=await c.getElementRects({reference:{getBoundingClientRect:h},floating:n.floating,strategy:f});return s.reference.x!==y.reference.x||s.reference.y!==y.reference.y||s.reference.width!==y.reference.width||s.reference.height!==y.reference.height?{reset:{rects:y}}:{}}}},ve=new Set(["left","top"]);async function on(t,e){const{placement:r,platform:n,elements:s}=t,c=await(n.isRTL==null?void 0:n.isRTL(s.floating)),f=X(r),d=dt(r),u=G(r)==="y",i=ve.has(f)?-1:1,l=c&&u?-1:1,a=nt(e,t);let{mainAxis:p,crossAxis:m,alignmentAxis:h}=typeof a=="number"?{mainAxis:a,crossAxis:0,alignmentAxis:null}:{mainAxis:a.mainAxis||0,crossAxis:a.crossAxis||0,alignmentAxis:a.alignmentAxis};return d&&typeof h=="number"&&(m=d==="end"?h*-1:h),u?{x:m*l,y:p*i}:{x:p*i,y:m*l}}const sn=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var r,n;const{x:s,y:c,placement:f,middlewareData:d}=e,u=await on(e,t);return f===((r=d.offset)==null?void 0:r.placement)&&(n=d.arrow)!=null&&n.alignmentOffset?{}:{x:s+u.x,y:c+u.y,data:{...u,placement:f}}}}},cn=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:r,y:n,placement:s,platform:c}=e,{mainAxis:f=!0,crossAxis:d=!1,limiter:u={fn:x=>{let{x:S,y:E}=x;return{x:S,y:E}}},...i}=nt(t,e),l={x:r,y:n},a=await c.detectOverflow(e,i),p=G(X(s)),m=It(p);let h=l[m],y=l[p];if(f){const x=m==="y"?"top":"left",S=m==="y"?"bottom":"right",E=h+a[x],R=h-a[S];h=jt(E,h,R)}if(d){const x=p==="y"?"top":"left",S=p==="y"?"bottom":"right",E=y+a[x],R=y-a[S];y=jt(E,y,R)}const v=u.fn({...e,[m]:h,[p]:y});return{...v,data:{x:v.x-r,y:v.y-n,enabled:{[m]:f,[p]:d}}}}}},fn=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:r,y:n,placement:s,rects:c,middlewareData:f}=e,{offset:d=0,mainAxis:u=!0,crossAxis:i=!0}=nt(t,e),l={x:r,y:n},a=G(s),p=It(a);let m=l[p],h=l[a];const y=nt(d,e),v=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(u){const E=p==="y"?"height":"width",R=c.reference[p]-c.floating[E]+v.mainAxis,T=c.reference[p]+c.reference[E]-v.mainAxis;m<R?m=R:m>T&&(m=T)}if(i){var x,S;const E=p==="y"?"width":"height",R=ve.has(X(s)),T=c.reference[a]-c.floating[E]+(R&&((x=f.offset)==null?void 0:x[a])||0)+(R?0:v.crossAxis),_=c.reference[a]+c.reference[E]+(R?0:((S=f.offset)==null?void 0:S[a])||0)-(R?v.crossAxis:0);h<T?h=T:h>_&&(h=_)}return{[p]:m,[a]:h}}}},un=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var r,n;const{placement:s,rects:c,platform:f,elements:d}=e,{apply:u=()=>{},...i}=nt(t,e),l=await f.detectOverflow(e,i),a=X(s),p=dt(s),m=G(s)==="y",{width:h,height:y}=c.floating;let v,x;a==="top"||a==="bottom"?(v=a,x=p===(await(f.isRTL==null?void 0:f.isRTL(d.floating))?"start":"end")?"left":"right"):(x=a,v=p==="end"?"top":"bottom");const S=y-l.top-l.bottom,E=h-l.left-l.right,R=it(y-l[v],S),T=it(h-l[x],E),_=!e.middlewareData.shift;let w=R,j=T;if((r=e.middlewareData.shift)!=null&&r.enabled.x&&(j=E),(n=e.middlewareData.shift)!=null&&n.enabled.y&&(w=S),_&&!p){const L=tt(l.left,0),F=tt(l.right,0),B=tt(l.top,0),N=tt(l.bottom,0);m?j=h-2*(L!==0||F!==0?L+F:tt(l.left,l.right)):w=y-2*(B!==0||N!==0?B+N:tt(l.top,l.bottom))}await u({...e,availableWidth:j,availableHeight:w});const W=await f.getDimensions(d.floating);return h!==W.width||y!==W.height?{reset:{rects:!0}}:{}}}},Ht=Math.min,ft=Math.max,xt=Math.round,yt=Math.floor,et=t=>({x:t,y:t});function _t(){return typeof window<"u"}function mt(t){return we(t)?(t.nodeName||"").toLowerCase():"#document"}function z(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function ot(t){var e;return(e=(we(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function we(t){return _t()?t instanceof Node||t instanceof z(t).Node:!1}function J(t){return _t()?t instanceof Element||t instanceof z(t).Element:!1}function rt(t){return _t()?t instanceof HTMLElement||t instanceof z(t).HTMLElement:!1}function fe(t){return!_t()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof z(t).ShadowRoot}const ln=new Set(["inline","contents"]);function ht(t){const{overflow:e,overflowX:r,overflowY:n,display:s}=K(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&!ln.has(s)}const an=new Set(["table","td","th"]);function dn(t){return an.has(mt(t))}const mn=[":popover-open",":modal"];function St(t){return mn.some(e=>{try{return t.matches(e)}catch{return!1}})}const gn=["transform","translate","scale","rotate","perspective"],pn=["transform","translate","scale","rotate","perspective","filter"],hn=["paint","layout","strict","content"];function Vt(t){const e=qt(),r=J(t)?K(t):t;return gn.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!e&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!e&&(r.filter?r.filter!=="none":!1)||pn.some(n=>(r.willChange||"").includes(n))||hn.some(n=>(r.contain||"").includes(n))}function yn(t){let e=st(t);for(;rt(e)&&!at(e);){if(Vt(e))return e;if(St(e))return null;e=st(e)}return null}function qt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const vn=new Set(["html","body","#document"]);function at(t){return vn.has(mt(t))}function K(t){return z(t).getComputedStyle(t)}function bt(t){return J(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function st(t){if(mt(t)==="html")return t;const e=t.assignedSlot||t.parentNode||fe(t)&&t.host||ot(t);return fe(e)?e.host:e}function xe(t){const e=st(t);return at(e)?t.ownerDocument?t.ownerDocument.body:t.body:rt(e)&&ht(e)?e:xe(e)}function pt(t,e,r){var n;e===void 0&&(e=[]),r===void 0&&(r=!0);const s=xe(t),c=s===((n=t.ownerDocument)==null?void 0:n.body),f=z(s);if(c){const d=Ft(f);return e.concat(f,f.visualViewport||[],ht(s)?s:[],d&&r?pt(d):[])}return e.concat(s,pt(s,[],r))}function Ft(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Re(t){const e=K(t);let r=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const s=rt(t),c=s?t.offsetWidth:r,f=s?t.offsetHeight:n,d=xt(r)!==c||xt(n)!==f;return d&&(r=c,n=f),{width:r,height:n,$:d}}function Ut(t){return J(t)?t:t.contextElement}function ut(t){const e=Ut(t);if(!rt(e))return et(1);const r=e.getBoundingClientRect(),{width:n,height:s,$:c}=Re(e);let f=(c?xt(r.width):r.width)/n,d=(c?xt(r.height):r.height)/s;return(!f||!Number.isFinite(f))&&(f=1),(!d||!Number.isFinite(d))&&(d=1),{x:f,y:d}}const wn=et(0);function Ee(t){const e=z(t);return!qt()||!e.visualViewport?wn:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function xn(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==z(t)?!1:e}function ct(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);const s=t.getBoundingClientRect(),c=Ut(t);let f=et(1);e&&(n?J(n)&&(f=ut(n)):f=ut(t));const d=xn(c,r,n)?Ee(c):et(0);let u=(s.left+d.x)/f.x,i=(s.top+d.y)/f.y,l=s.width/f.x,a=s.height/f.y;if(c){const p=z(c),m=n&&J(n)?z(n):n;let h=p,y=Ft(h);for(;y&&n&&m!==h;){const v=ut(y),x=y.getBoundingClientRect(),S=K(y),E=x.left+(y.clientLeft+parseFloat(S.paddingLeft))*v.x,R=x.top+(y.clientTop+parseFloat(S.paddingTop))*v.y;u*=v.x,i*=v.y,l*=v.x,a*=v.y,u+=E,i+=R,h=z(y),y=Ft(h)}}return lt({width:l,height:a,x:u,y:i})}function Ot(t,e){const r=bt(t).scrollLeft;return e?e.left+r:ct(ot(t)).left+r}function _e(t,e){const r=t.getBoundingClientRect(),n=r.left+e.scrollLeft-Ot(t,r),s=r.top+e.scrollTop;return{x:n,y:s}}function Rn(t){let{elements:e,rect:r,offsetParent:n,strategy:s}=t;const c=s==="fixed",f=ot(n),d=e?St(e.floating):!1;if(n===f||d&&c)return r;let u={scrollLeft:0,scrollTop:0},i=et(1);const l=et(0),a=rt(n);if((a||!a&&!c)&&((mt(n)!=="body"||ht(f))&&(u=bt(n)),rt(n))){const m=ct(n);i=ut(n),l.x=m.x+n.clientLeft,l.y=m.y+n.clientTop}const p=f&&!a&&!c?_e(f,u):et(0);return{width:r.width*i.x,height:r.height*i.y,x:r.x*i.x-u.scrollLeft*i.x+l.x+p.x,y:r.y*i.y-u.scrollTop*i.y+l.y+p.y}}function En(t){return Array.from(t.getClientRects())}function _n(t){const e=ot(t),r=bt(t),n=t.ownerDocument.body,s=ft(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),c=ft(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let f=-r.scrollLeft+Ot(t);const d=-r.scrollTop;return K(n).direction==="rtl"&&(f+=ft(e.clientWidth,n.clientWidth)-s),{width:s,height:c,x:f,y:d}}const ue=25;function Sn(t,e){const r=z(t),n=ot(t),s=r.visualViewport;let c=n.clientWidth,f=n.clientHeight,d=0,u=0;if(s){c=s.width,f=s.height;const l=qt();(!l||l&&e==="fixed")&&(d=s.offsetLeft,u=s.offsetTop)}const i=Ot(n);if(i<=0){const l=n.ownerDocument,a=l.body,p=getComputedStyle(a),m=l.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,h=Math.abs(n.clientWidth-a.clientWidth-m);h<=ue&&(c-=h)}else i<=ue&&(c+=i);return{width:c,height:f,x:d,y:u}}const bn=new Set(["absolute","fixed"]);function On(t,e){const r=ct(t,!0,e==="fixed"),n=r.top+t.clientTop,s=r.left+t.clientLeft,c=rt(t)?ut(t):et(1),f=t.clientWidth*c.x,d=t.clientHeight*c.y,u=s*c.x,i=n*c.y;return{width:f,height:d,x:u,y:i}}function le(t,e,r){let n;if(e==="viewport")n=Sn(t,r);else if(e==="document")n=_n(ot(t));else if(J(e))n=On(e,r);else{const s=Ee(t);n={x:e.x-s.x,y:e.y-s.y,width:e.width,height:e.height}}return lt(n)}function Se(t,e){const r=st(t);return r===e||!J(r)||at(r)?!1:K(r).position==="fixed"||Se(r,e)}function An(t,e){const r=e.get(t);if(r)return r;let n=pt(t,[],!1).filter(d=>J(d)&&mt(d)!=="body"),s=null;const c=K(t).position==="fixed";let f=c?st(t):t;for(;J(f)&&!at(f);){const d=K(f),u=Vt(f);!u&&d.position==="fixed"&&(s=null),(c?!u&&!s:!u&&d.position==="static"&&!!s&&bn.has(s.position)||ht(f)&&!u&&Se(t,f))?n=n.filter(l=>l!==f):s=d,f=st(f)}return e.set(t,n),n}function Tn(t){let{element:e,boundary:r,rootBoundary:n,strategy:s}=t;const f=[...r==="clippingAncestors"?St(e)?[]:An(e,this._c):[].concat(r),n],d=f[0],u=f.reduce((i,l)=>{const a=le(e,l,s);return i.top=ft(a.top,i.top),i.right=Ht(a.right,i.right),i.bottom=Ht(a.bottom,i.bottom),i.left=ft(a.left,i.left),i},le(e,d,s));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function Cn(t){const{width:e,height:r}=Re(t);return{width:e,height:r}}function Pn(t,e,r){const n=rt(e),s=ot(e),c=r==="fixed",f=ct(t,!0,c,e);let d={scrollLeft:0,scrollTop:0};const u=et(0);function i(){u.x=Ot(s)}if(n||!n&&!c)if((mt(e)!=="body"||ht(s))&&(d=bt(e)),n){const m=ct(e,!0,c,e);u.x=m.x+e.clientLeft,u.y=m.y+e.clientTop}else s&&i();c&&!n&&s&&i();const l=s&&!n&&!c?_e(s,d):et(0),a=f.left+d.scrollLeft-u.x-l.x,p=f.top+d.scrollTop-u.y-l.y;return{x:a,y:p,width:f.width,height:f.height}}function kt(t){return K(t).position==="static"}function ae(t,e){if(!rt(t)||K(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return ot(t)===r&&(r=r.ownerDocument.body),r}function be(t,e){const r=z(t);if(St(t))return r;if(!rt(t)){let s=st(t);for(;s&&!at(s);){if(J(s)&&!kt(s))return s;s=st(s)}return r}let n=ae(t,e);for(;n&&dn(n)&&kt(n);)n=ae(n,e);return n&&at(n)&&kt(n)&&!Vt(n)?r:n||yn(t)||r}const Ln=async function(t){const e=this.getOffsetParent||be,r=this.getDimensions,n=await r(t.floating);return{reference:Pn(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Dn(t){return K(t).direction==="rtl"}const Mn={convertOffsetParentRelativeRectToViewportRelativeRect:Rn,getDocumentElement:ot,getClippingRect:Tn,getOffsetParent:be,getElementRects:Ln,getClientRects:En,getDimensions:Cn,getScale:ut,isElement:J,isRTL:Dn};function Oe(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function kn(t,e){let r=null,n;const s=ot(t);function c(){var d;clearTimeout(n),(d=r)==null||d.disconnect(),r=null}function f(d,u){d===void 0&&(d=!1),u===void 0&&(u=1),c();const i=t.getBoundingClientRect(),{left:l,top:a,width:p,height:m}=i;if(d||e(),!p||!m)return;const h=yt(a),y=yt(s.clientWidth-(l+p)),v=yt(s.clientHeight-(a+m)),x=yt(l),E={rootMargin:-h+"px "+-y+"px "+-v+"px "+-x+"px",threshold:ft(0,Ht(1,u))||1};let R=!0;function T(_){const w=_[0].intersectionRatio;if(w!==u){if(!R)return f();w?f(!1,w):n=setTimeout(()=>{f(!1,1e-7)},1e3)}w===1&&!Oe(i,t.getBoundingClientRect())&&f(),R=!1}try{r=new IntersectionObserver(T,{...E,root:s.ownerDocument})}catch{r=new IntersectionObserver(T,E)}r.observe(t)}return f(!0),c}function Qn(t,e,r,n){n===void 0&&(n={});const{ancestorScroll:s=!0,ancestorResize:c=!0,elementResize:f=typeof ResizeObserver=="function",layoutShift:d=typeof IntersectionObserver=="function",animationFrame:u=!1}=n,i=Ut(t),l=s||c?[...i?pt(i):[],...pt(e)]:[];l.forEach(x=>{s&&x.addEventListener("scroll",r,{passive:!0}),c&&x.addEventListener("resize",r)});const a=i&&d?kn(i,r):null;let p=-1,m=null;f&&(m=new ResizeObserver(x=>{let[S]=x;S&&S.target===i&&m&&(m.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var E;(E=m)==null||E.observe(e)})),r()}),i&&!u&&m.observe(i),m.observe(e));let h,y=u?ct(t):null;u&&v();function v(){const x=ct(t);y&&!Oe(y,x)&&r(),y=x,h=requestAnimationFrame(v)}return r(),()=>{var x;l.forEach(S=>{s&&S.removeEventListener("scroll",r),c&&S.removeEventListener("resize",r)}),a?.(),(x=m)==null||x.disconnect(),m=null,u&&cancelAnimationFrame(h)}}const $n=sn,jn=cn,Nn=tn,Hn=un,Fn=en,de=Ze,In=rn,Wn=fn,Bn=(t,e,r)=>{const n=new Map,s={platform:Mn,...r},c={...s.platform,_c:n};return Qe(t,e,{...s,platform:c})};var Yn=typeof document<"u",Vn=function(){},vt=Yn?I.useLayoutEffect:Vn;function Rt(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let r,n,s;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(r=t.length,r!==e.length)return!1;for(n=r;n--!==0;)if(!Rt(t[n],e[n]))return!1;return!0}if(s=Object.keys(t),r=s.length,r!==Object.keys(e).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(e,s[n]))return!1;for(n=r;n--!==0;){const c=s[n];if(!(c==="_owner"&&t.$$typeof)&&!Rt(t[c],e[c]))return!1}return!0}return t!==t&&e!==e}function Ae(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function me(t,e){const r=Ae(t);return Math.round(e*r)/r}function $t(t){const e=I.useRef(t);return vt(()=>{e.current=t}),e}function Zn(t){t===void 0&&(t={});const{placement:e="bottom",strategy:r="absolute",middleware:n=[],platform:s,elements:{reference:c,floating:f}={},transform:d=!0,whileElementsMounted:u,open:i}=t,[l,a]=I.useState({x:0,y:0,strategy:r,placement:e,middlewareData:{},isPositioned:!1}),[p,m]=I.useState(n);Rt(p,n)||m(n);const[h,y]=I.useState(null),[v,x]=I.useState(null),S=I.useCallback(C=>{C!==_.current&&(_.current=C,y(C))},[]),E=I.useCallback(C=>{C!==w.current&&(w.current=C,x(C))},[]),R=c||h,T=f||v,_=I.useRef(null),w=I.useRef(null),j=I.useRef(l),W=u!=null,L=$t(u),F=$t(s),B=$t(i),N=I.useCallback(()=>{if(!_.current||!w.current)return;const C={placement:e,strategy:r,middleware:p};F.current&&(C.platform=F.current),Bn(_.current,w.current,C).then(V=>{const Q={...V,isPositioned:B.current!==!1};k.current&&!Rt(j.current,Q)&&(j.current=Q,pe.flushSync(()=>{a(Q)}))})},[p,e,r,F,B]);vt(()=>{i===!1&&j.current.isPositioned&&(j.current.isPositioned=!1,a(C=>({...C,isPositioned:!1})))},[i]);const k=I.useRef(!1);vt(()=>(k.current=!0,()=>{k.current=!1}),[]),vt(()=>{if(R&&(_.current=R),T&&(w.current=T),R&&T){if(L.current)return L.current(R,T,N);N()}},[R,T,N,L,W]);const Y=I.useMemo(()=>({reference:_,floating:w,setReference:S,setFloating:E}),[S,E]),M=I.useMemo(()=>({reference:R,floating:T}),[R,T]),H=I.useMemo(()=>{const C={position:r,left:0,top:0};if(!M.floating)return C;const V=me(M.floating,l.x),Q=me(M.floating,l.y);return d?{...C,transform:"translate("+V+"px, "+Q+"px)",...Ae(M.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:V,top:Q}},[r,d,M.floating,l.x,l.y]);return I.useMemo(()=>({...l,update:N,refs:Y,elements:M,floatingStyles:H}),[l,N,Y,M,H])}const qn=t=>{function e(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:t,fn(r){const{element:n,padding:s}=typeof t=="function"?t(r):t;return n&&e(n)?n.current!=null?de({element:n.current,padding:s}).fn(r):{}:n?de({element:n,padding:s}).fn(r):{}}}},tr=(t,e)=>({...$n(t),options:[t,e]}),er=(t,e)=>({...jn(t),options:[t,e]}),nr=(t,e)=>({...Wn(t),options:[t,e]}),rr=(t,e)=>({...Nn(t),options:[t,e]}),or=(t,e)=>({...Hn(t),options:[t,e]}),ir=(t,e)=>({...Fn(t),options:[t,e]}),sr=(t,e)=>({...In(t),options:[t,e]}),cr=(t,e)=>({...qn(t),options:[t,e]});export{Gn as R,pe as a,Me as b,Ne as c,Jn as d,Kn as e,pt as f,ge as g,Qn as h,ir as i,zn as j,rr as k,nr as l,sr as m,cr as n,tr as o,or as p,Et as q,I as r,er as s,$e as t,Zn as u,Un as v,Xn as w};
1
+ function Ce(t,e){for(var r=0;r<e.length;r++){const n=e[r];if(typeof n!="string"&&!Array.isArray(n)){for(const s in n)if(s!=="default"&&!(s in t)){const c=Object.getOwnPropertyDescriptor(n,s);c&&Object.defineProperty(t,s,c.get?c:{enumerable:!0,get:()=>n[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var Un=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ge(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var At={exports:{}},gt={};var zt;function Pe(){if(zt)return gt;zt=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function r(n,s,c){var f=null;if(c!==void 0&&(f=""+c),s.key!==void 0&&(f=""+s.key),"key"in s){c={};for(var d in s)d!=="key"&&(c[d]=s[d])}else c=s;return s=c.ref,{$$typeof:t,type:n,key:f,ref:s!==void 0?s:null,props:c}}return gt.Fragment=e,gt.jsx=r,gt.jsxs=r,gt}var Gt;function Le(){return Gt||(Gt=1,At.exports=Pe()),At.exports}var zn=Le(),Tt={exports:{}},b={};var Xt;function De(){if(Xt)return b;Xt=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),f=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),i=Symbol.for("react.memo"),l=Symbol.for("react.lazy"),a=Symbol.for("react.activity"),p=Symbol.iterator;function m(o){return o===null||typeof o!="object"?null:(o=p&&o[p]||o["@@iterator"],typeof o=="function"?o:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y=Object.assign,v={};function x(o,g,A){this.props=o,this.context=g,this.refs=v,this.updater=A||h}x.prototype.isReactComponent={},x.prototype.setState=function(o,g){if(typeof o!="object"&&typeof o!="function"&&o!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,o,g,"setState")},x.prototype.forceUpdate=function(o){this.updater.enqueueForceUpdate(this,o,"forceUpdate")};function S(){}S.prototype=x.prototype;function E(o,g,A){this.props=o,this.context=g,this.refs=v,this.updater=A||h}var R=E.prototype=new S;R.constructor=E,y(R,x.prototype),R.isPureReactComponent=!0;var T=Array.isArray;function _(){}var w={H:null,A:null,T:null,S:null},j=Object.prototype.hasOwnProperty;function W(o,g,A){var O=A.ref;return{$$typeof:t,type:o,key:g,ref:O!==void 0?O:null,props:A}}function L(o,g){return W(o.type,g,o.props)}function F(o){return typeof o=="object"&&o!==null&&o.$$typeof===t}function B(o){var g={"=":"=0",":":"=2"};return"$"+o.replace(/[=:]/g,function(A){return g[A]})}var N=/\/+/g;function k(o,g){return typeof o=="object"&&o!==null&&o.key!=null?B(""+o.key):g.toString(36)}function Y(o){switch(o.status){case"fulfilled":return o.value;case"rejected":throw o.reason;default:switch(typeof o.status=="string"?o.then(_,_):(o.status="pending",o.then(function(g){o.status==="pending"&&(o.status="fulfilled",o.value=g)},function(g){o.status==="pending"&&(o.status="rejected",o.reason=g)})),o.status){case"fulfilled":return o.value;case"rejected":throw o.reason}}throw o}function M(o,g,A,O,P){var D=typeof o;(D==="undefined"||D==="boolean")&&(o=null);var $=!1;if(o===null)$=!0;else switch(D){case"bigint":case"string":case"number":$=!0;break;case"object":switch(o.$$typeof){case t:case e:$=!0;break;case l:return $=o._init,M($(o._payload),g,A,O,P)}}if($)return P=P(o),$=O===""?"."+k(o,0):O,T(P)?(A="",$!=null&&(A=$.replace(N,"$&/")+"/"),M(P,g,A,"",function(Te){return Te})):P!=null&&(F(P)&&(P=L(P,A+(P.key==null||o&&o.key===P.key?"":(""+P.key).replace(N,"$&/")+"/")+$)),g.push(P)),1;$=0;var Z=O===""?".":O+":";if(T(o))for(var U=0;U<o.length;U++)O=o[U],D=Z+k(O,U),$+=M(O,g,A,D,P);else if(U=m(o),typeof U=="function")for(o=U.call(o),U=0;!(O=o.next()).done;)O=O.value,D=Z+k(O,U++),$+=M(O,g,A,D,P);else if(D==="object"){if(typeof o.then=="function")return M(Y(o),g,A,O,P);throw g=String(o),Error("Objects are not valid as a React child (found: "+(g==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":g)+"). If you meant to render a collection of children, use an array instead.")}return $}function H(o,g,A){if(o==null)return o;var O=[],P=0;return M(o,O,"","",function(D){return g.call(A,D,P++)}),O}function C(o){if(o._status===-1){var g=o._result;g=g(),g.then(function(A){(o._status===0||o._status===-1)&&(o._status=1,o._result=A)},function(A){(o._status===0||o._status===-1)&&(o._status=2,o._result=A)}),o._status===-1&&(o._status=0,o._result=g)}if(o._status===1)return o._result.default;throw o._result}var V=typeof reportError=="function"?reportError:function(o){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var g=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof o=="object"&&o!==null&&typeof o.message=="string"?String(o.message):String(o),error:o});if(!window.dispatchEvent(g))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",o);return}console.error(o)},Q={map:H,forEach:function(o,g,A){H(o,function(){g.apply(this,arguments)},A)},count:function(o){var g=0;return H(o,function(){g++}),g},toArray:function(o){return H(o,function(g){return g})||[]},only:function(o){if(!F(o))throw Error("React.Children.only expected to receive a single React element child.");return o}};return b.Activity=a,b.Children=Q,b.Component=x,b.Fragment=r,b.Profiler=s,b.PureComponent=E,b.StrictMode=n,b.Suspense=u,b.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,b.__COMPILER_RUNTIME={__proto__:null,c:function(o){return w.H.useMemoCache(o)}},b.cache=function(o){return function(){return o.apply(null,arguments)}},b.cacheSignal=function(){return null},b.cloneElement=function(o,g,A){if(o==null)throw Error("The argument must be a React element, but you passed "+o+".");var O=y({},o.props),P=o.key;if(g!=null)for(D in g.key!==void 0&&(P=""+g.key),g)!j.call(g,D)||D==="key"||D==="__self"||D==="__source"||D==="ref"&&g.ref===void 0||(O[D]=g[D]);var D=arguments.length-2;if(D===1)O.children=A;else if(1<D){for(var $=Array(D),Z=0;Z<D;Z++)$[Z]=arguments[Z+2];O.children=$}return W(o.type,P,O)},b.createContext=function(o){return o={$$typeof:f,_currentValue:o,_currentValue2:o,_threadCount:0,Provider:null,Consumer:null},o.Provider=o,o.Consumer={$$typeof:c,_context:o},o},b.createElement=function(o,g,A){var O,P={},D=null;if(g!=null)for(O in g.key!==void 0&&(D=""+g.key),g)j.call(g,O)&&O!=="key"&&O!=="__self"&&O!=="__source"&&(P[O]=g[O]);var $=arguments.length-2;if($===1)P.children=A;else if(1<$){for(var Z=Array($),U=0;U<$;U++)Z[U]=arguments[U+2];P.children=Z}if(o&&o.defaultProps)for(O in $=o.defaultProps,$)P[O]===void 0&&(P[O]=$[O]);return W(o,D,P)},b.createRef=function(){return{current:null}},b.forwardRef=function(o){return{$$typeof:d,render:o}},b.isValidElement=F,b.lazy=function(o){return{$$typeof:l,_payload:{_status:-1,_result:o},_init:C}},b.memo=function(o,g){return{$$typeof:i,type:o,compare:g===void 0?null:g}},b.startTransition=function(o){var g=w.T,A={};w.T=A;try{var O=o(),P=w.S;P!==null&&P(A,O),typeof O=="object"&&O!==null&&typeof O.then=="function"&&O.then(_,V)}catch(D){V(D)}finally{g!==null&&A.types!==null&&(g.types=A.types),w.T=g}},b.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},b.use=function(o){return w.H.use(o)},b.useActionState=function(o,g,A){return w.H.useActionState(o,g,A)},b.useCallback=function(o,g){return w.H.useCallback(o,g)},b.useContext=function(o){return w.H.useContext(o)},b.useDebugValue=function(){},b.useDeferredValue=function(o,g){return w.H.useDeferredValue(o,g)},b.useEffect=function(o,g){return w.H.useEffect(o,g)},b.useEffectEvent=function(o){return w.H.useEffectEvent(o)},b.useId=function(){return w.H.useId()},b.useImperativeHandle=function(o,g,A){return w.H.useImperativeHandle(o,g,A)},b.useInsertionEffect=function(o,g){return w.H.useInsertionEffect(o,g)},b.useLayoutEffect=function(o,g){return w.H.useLayoutEffect(o,g)},b.useMemo=function(o,g){return w.H.useMemo(o,g)},b.useOptimistic=function(o,g){return w.H.useOptimistic(o,g)},b.useReducer=function(o,g,A){return w.H.useReducer(o,g,A)},b.useRef=function(o){return w.H.useRef(o)},b.useState=function(o){return w.H.useState(o)},b.useSyncExternalStore=function(o,g,A){return w.H.useSyncExternalStore(o,g,A)},b.useTransition=function(){return w.H.useTransition()},b.version="19.2.4",b}var Jt;function Et(){return Jt||(Jt=1,Tt.exports=De()),Tt.exports}var I=Et();const Me=ge(I),Gn=Ce({__proto__:null,default:Me},[I]);var Ct={exports:{}},q={};var Kt;function ke(){if(Kt)return q;Kt=1;var t=Et();function e(u){var i="https://react.dev/errors/"+u;if(1<arguments.length){i+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)i+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+u+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var n={d:{f:r,r:function(){throw Error(e(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},s=Symbol.for("react.portal");function c(u,i,l){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:a==null?null:""+a,children:u,containerInfo:i,implementation:l}}var f=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(u,i){if(u==="font")return"";if(typeof i=="string")return i==="use-credentials"?i:""}return q.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=n,q.createPortal=function(u,i){var l=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)throw Error(e(299));return c(u,i,null,l)},q.flushSync=function(u){var i=f.T,l=n.p;try{if(f.T=null,n.p=2,u)return u()}finally{f.T=i,n.p=l,n.d.f()}},q.preconnect=function(u,i){typeof u=="string"&&(i?(i=i.crossOrigin,i=typeof i=="string"?i==="use-credentials"?i:"":void 0):i=null,n.d.C(u,i))},q.prefetchDNS=function(u){typeof u=="string"&&n.d.D(u)},q.preinit=function(u,i){if(typeof u=="string"&&i&&typeof i.as=="string"){var l=i.as,a=d(l,i.crossOrigin),p=typeof i.integrity=="string"?i.integrity:void 0,m=typeof i.fetchPriority=="string"?i.fetchPriority:void 0;l==="style"?n.d.S(u,typeof i.precedence=="string"?i.precedence:void 0,{crossOrigin:a,integrity:p,fetchPriority:m}):l==="script"&&n.d.X(u,{crossOrigin:a,integrity:p,fetchPriority:m,nonce:typeof i.nonce=="string"?i.nonce:void 0})}},q.preinitModule=function(u,i){if(typeof u=="string")if(typeof i=="object"&&i!==null){if(i.as==null||i.as==="script"){var l=d(i.as,i.crossOrigin);n.d.M(u,{crossOrigin:l,integrity:typeof i.integrity=="string"?i.integrity:void 0,nonce:typeof i.nonce=="string"?i.nonce:void 0})}}else i==null&&n.d.M(u)},q.preload=function(u,i){if(typeof u=="string"&&typeof i=="object"&&i!==null&&typeof i.as=="string"){var l=i.as,a=d(l,i.crossOrigin);n.d.L(u,l,{crossOrigin:a,integrity:typeof i.integrity=="string"?i.integrity:void 0,nonce:typeof i.nonce=="string"?i.nonce:void 0,type:typeof i.type=="string"?i.type:void 0,fetchPriority:typeof i.fetchPriority=="string"?i.fetchPriority:void 0,referrerPolicy:typeof i.referrerPolicy=="string"?i.referrerPolicy:void 0,imageSrcSet:typeof i.imageSrcSet=="string"?i.imageSrcSet:void 0,imageSizes:typeof i.imageSizes=="string"?i.imageSizes:void 0,media:typeof i.media=="string"?i.media:void 0})}},q.preloadModule=function(u,i){if(typeof u=="string")if(i){var l=d(i.as,i.crossOrigin);n.d.m(u,{as:typeof i.as=="string"&&i.as!=="script"?i.as:void 0,crossOrigin:l,integrity:typeof i.integrity=="string"?i.integrity:void 0})}else n.d.m(u)},q.requestFormReset=function(u){n.d.r(u)},q.unstable_batchedUpdates=function(u,i){return u(i)},q.useFormState=function(u,i,l){return f.H.useFormState(u,i,l)},q.useFormStatus=function(){return f.H.useHostTransitionStatus()},q.version="19.2.4",q}var Qt;function $e(){if(Qt)return Ct.exports;Qt=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),Ct.exports=ke(),Ct.exports}var Pt={exports:{}},Lt={},Dt={exports:{}},Mt={};var Zt;function je(){if(Zt)return Mt;Zt=1;var t=Et();function e(a,p){return a===p&&(a!==0||1/a===1/p)||a!==a&&p!==p}var r=typeof Object.is=="function"?Object.is:e,n=t.useState,s=t.useEffect,c=t.useLayoutEffect,f=t.useDebugValue;function d(a,p){var m=p(),h=n({inst:{value:m,getSnapshot:p}}),y=h[0].inst,v=h[1];return c(function(){y.value=m,y.getSnapshot=p,u(y)&&v({inst:y})},[a,m,p]),s(function(){return u(y)&&v({inst:y}),a(function(){u(y)&&v({inst:y})})},[a]),f(m),m}function u(a){var p=a.getSnapshot;a=a.value;try{var m=p();return!r(a,m)}catch{return!0}}function i(a,p){return p()}var l=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?i:d;return Mt.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:l,Mt}var te;function Ne(){return te||(te=1,Dt.exports=je()),Dt.exports}var ee;function He(){if(ee)return Lt;ee=1;var t=Et(),e=Ne();function r(i,l){return i===l&&(i!==0||1/i===1/l)||i!==i&&l!==l}var n=typeof Object.is=="function"?Object.is:r,s=e.useSyncExternalStore,c=t.useRef,f=t.useEffect,d=t.useMemo,u=t.useDebugValue;return Lt.useSyncExternalStoreWithSelector=function(i,l,a,p,m){var h=c(null);if(h.current===null){var y={hasValue:!1,value:null};h.current=y}else y=h.current;h=d(function(){function x(_){if(!S){if(S=!0,E=_,_=p(_),m!==void 0&&y.hasValue){var w=y.value;if(m(w,_))return R=w}return R=_}if(w=R,n(E,_))return w;var j=p(_);return m!==void 0&&m(w,j)?(E=_,w):(E=_,R=j)}var S=!1,E,R,T=a===void 0?null:a;return[function(){return x(l())},T===null?void 0:function(){return x(T())}]},[l,a,p,m]);var v=s(i,h[0],h[1]);return f(function(){y.hasValue=!0,y.value=v},[v]),u(v),v},Lt}var ne;function Fe(){return ne||(ne=1,Pt.exports=He()),Pt.exports}var Xn=Fe(),pe=$e();const Jn=ge(pe);function he(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var s=t.length;for(e=0;e<s;e++)t[e]&&(r=he(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}function Kn(){for(var t,e,r=0,n="",s=arguments.length;r<s;r++)(t=arguments[r])&&(e=he(t))&&(n&&(n+=" "),n+=e);return n}const Ie=["top","right","bottom","left"],it=Math.min,tt=Math.max,We={left:"right",right:"left",bottom:"top",top:"bottom"},Be={start:"end",end:"start"};function jt(t,e,r){return tt(t,it(e,r))}function nt(t,e){return typeof t=="function"?t(e):t}function X(t){return t.split("-")[0]}function dt(t){return t.split("-")[1]}function It(t){return t==="x"?"y":"x"}function Wt(t){return t==="y"?"height":"width"}const Ye=new Set(["top","bottom"]);function G(t){return Ye.has(X(t))?"y":"x"}function Bt(t){return It(G(t))}function Ve(t,e,r){r===void 0&&(r=!1);const n=dt(t),s=Bt(t),c=Wt(s);let f=s==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[c]>e.floating[c]&&(f=wt(f)),[f,wt(f)]}function qe(t){const e=wt(t);return[Nt(t),e,Nt(e)]}function Nt(t){return t.replace(/start|end/g,e=>Be[e])}const re=["left","right"],oe=["right","left"],Ue=["top","bottom"],ze=["bottom","top"];function Ge(t,e,r){switch(t){case"top":case"bottom":return r?e?oe:re:e?re:oe;case"left":case"right":return e?Ue:ze;default:return[]}}function Xe(t,e,r,n){const s=dt(t);let c=Ge(X(t),r==="start",n);return s&&(c=c.map(f=>f+"-"+s),e&&(c=c.concat(c.map(Nt)))),c}function wt(t){return t.replace(/left|right|bottom|top/g,e=>We[e])}function Je(t){return{top:0,right:0,bottom:0,left:0,...t}}function Yt(t){return typeof t!="number"?Je(t):{top:t,right:t,bottom:t,left:t}}function lt(t){const{x:e,y:r,width:n,height:s}=t;return{width:n,height:s,top:r,left:e,right:e+n,bottom:r+s,x:e,y:r}}function ie(t,e,r){let{reference:n,floating:s}=t;const c=G(e),f=Bt(e),d=Wt(f),u=X(e),i=c==="y",l=n.x+n.width/2-s.width/2,a=n.y+n.height/2-s.height/2,p=n[d]/2-s[d]/2;let m;switch(u){case"top":m={x:l,y:n.y-s.height};break;case"bottom":m={x:l,y:n.y+n.height};break;case"right":m={x:n.x+n.width,y:a};break;case"left":m={x:n.x-s.width,y:a};break;default:m={x:n.x,y:n.y}}switch(dt(e)){case"start":m[f]-=p*(r&&i?-1:1);break;case"end":m[f]+=p*(r&&i?-1:1);break}return m}async function Ke(t,e){var r;e===void 0&&(e={});const{x:n,y:s,platform:c,rects:f,elements:d,strategy:u}=t,{boundary:i="clippingAncestors",rootBoundary:l="viewport",elementContext:a="floating",altBoundary:p=!1,padding:m=0}=nt(e,t),h=Yt(m),v=d[p?a==="floating"?"reference":"floating":a],x=lt(await c.getClippingRect({element:(r=await(c.isElement==null?void 0:c.isElement(v)))==null||r?v:v.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(d.floating)),boundary:i,rootBoundary:l,strategy:u})),S=a==="floating"?{x:n,y:s,width:f.floating.width,height:f.floating.height}:f.reference,E=await(c.getOffsetParent==null?void 0:c.getOffsetParent(d.floating)),R=await(c.isElement==null?void 0:c.isElement(E))?await(c.getScale==null?void 0:c.getScale(E))||{x:1,y:1}:{x:1,y:1},T=lt(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:S,offsetParent:E,strategy:u}):S);return{top:(x.top-T.top+h.top)/R.y,bottom:(T.bottom-x.bottom+h.bottom)/R.y,left:(x.left-T.left+h.left)/R.x,right:(T.right-x.right+h.right)/R.x}}const Qe=async(t,e,r)=>{const{placement:n="bottom",strategy:s="absolute",middleware:c=[],platform:f}=r,d=c.filter(Boolean),u=await(f.isRTL==null?void 0:f.isRTL(e));let i=await f.getElementRects({reference:t,floating:e,strategy:s}),{x:l,y:a}=ie(i,n,u),p=n,m={},h=0;for(let v=0;v<d.length;v++){var y;const{name:x,fn:S}=d[v],{x:E,y:R,data:T,reset:_}=await S({x:l,y:a,initialPlacement:n,placement:p,strategy:s,middlewareData:m,rects:i,platform:{...f,detectOverflow:(y=f.detectOverflow)!=null?y:Ke},elements:{reference:t,floating:e}});l=E??l,a=R??a,m={...m,[x]:{...m[x],...T}},_&&h<=50&&(h++,typeof _=="object"&&(_.placement&&(p=_.placement),_.rects&&(i=_.rects===!0?await f.getElementRects({reference:t,floating:e,strategy:s}):_.rects),{x:l,y:a}=ie(i,p,u)),v=-1)}return{x:l,y:a,placement:p,strategy:s,middlewareData:m}},Ze=t=>({name:"arrow",options:t,async fn(e){const{x:r,y:n,placement:s,rects:c,platform:f,elements:d,middlewareData:u}=e,{element:i,padding:l=0}=nt(t,e)||{};if(i==null)return{};const a=Yt(l),p={x:r,y:n},m=Bt(s),h=Wt(m),y=await f.getDimensions(i),v=m==="y",x=v?"top":"left",S=v?"bottom":"right",E=v?"clientHeight":"clientWidth",R=c.reference[h]+c.reference[m]-p[m]-c.floating[h],T=p[m]-c.reference[m],_=await(f.getOffsetParent==null?void 0:f.getOffsetParent(i));let w=_?_[E]:0;(!w||!await(f.isElement==null?void 0:f.isElement(_)))&&(w=d.floating[E]||c.floating[h]);const j=R/2-T/2,W=w/2-y[h]/2-1,L=it(a[x],W),F=it(a[S],W),B=L,N=w-y[h]-F,k=w/2-y[h]/2+j,Y=jt(B,k,N),M=!u.arrow&&dt(s)!=null&&k!==Y&&c.reference[h]/2-(k<B?L:F)-y[h]/2<0,H=M?k<B?k-B:k-N:0;return{[m]:p[m]+H,data:{[m]:Y,centerOffset:k-Y-H,...M&&{alignmentOffset:H}},reset:M}}}),tn=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var r,n;const{placement:s,middlewareData:c,rects:f,initialPlacement:d,platform:u,elements:i}=e,{mainAxis:l=!0,crossAxis:a=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:y=!0,...v}=nt(t,e);if((r=c.arrow)!=null&&r.alignmentOffset)return{};const x=X(s),S=G(d),E=X(d)===d,R=await(u.isRTL==null?void 0:u.isRTL(i.floating)),T=p||(E||!y?[wt(d)]:qe(d)),_=h!=="none";!p&&_&&T.push(...Xe(d,y,h,R));const w=[d,...T],j=await u.detectOverflow(e,v),W=[];let L=((n=c.flip)==null?void 0:n.overflows)||[];if(l&&W.push(j[x]),a){const k=Ve(s,f,R);W.push(j[k[0]],j[k[1]])}if(L=[...L,{placement:s,overflows:W}],!W.every(k=>k<=0)){var F,B;const k=(((F=c.flip)==null?void 0:F.index)||0)+1,Y=w[k];if(Y&&(!(a==="alignment"?S!==G(Y):!1)||L.every(C=>G(C.placement)===S?C.overflows[0]>0:!0)))return{data:{index:k,overflows:L},reset:{placement:Y}};let M=(B=L.filter(H=>H.overflows[0]<=0).sort((H,C)=>H.overflows[1]-C.overflows[1])[0])==null?void 0:B.placement;if(!M)switch(m){case"bestFit":{var N;const H=(N=L.filter(C=>{if(_){const V=G(C.placement);return V===S||V==="y"}return!0}).map(C=>[C.placement,C.overflows.filter(V=>V>0).reduce((V,Q)=>V+Q,0)]).sort((C,V)=>C[1]-V[1])[0])==null?void 0:N[0];H&&(M=H);break}case"initialPlacement":M=d;break}if(s!==M)return{reset:{placement:M}}}return{}}}};function se(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function ce(t){return Ie.some(e=>t[e]>=0)}const en=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:r,platform:n}=e,{strategy:s="referenceHidden",...c}=nt(t,e);switch(s){case"referenceHidden":{const f=await n.detectOverflow(e,{...c,elementContext:"reference"}),d=se(f,r.reference);return{data:{referenceHiddenOffsets:d,referenceHidden:ce(d)}}}case"escaped":{const f=await n.detectOverflow(e,{...c,altBoundary:!0}),d=se(f,r.floating);return{data:{escapedOffsets:d,escaped:ce(d)}}}default:return{}}}}};function ye(t){const e=it(...t.map(c=>c.left)),r=it(...t.map(c=>c.top)),n=tt(...t.map(c=>c.right)),s=tt(...t.map(c=>c.bottom));return{x:e,y:r,width:n-e,height:s-r}}function nn(t){const e=t.slice().sort((s,c)=>s.y-c.y),r=[];let n=null;for(let s=0;s<e.length;s++){const c=e[s];!n||c.y-n.y>n.height/2?r.push([c]):r[r.length-1].push(c),n=c}return r.map(s=>lt(ye(s)))}const rn=function(t){return t===void 0&&(t={}),{name:"inline",options:t,async fn(e){const{placement:r,elements:n,rects:s,platform:c,strategy:f}=e,{padding:d=2,x:u,y:i}=nt(t,e),l=Array.from(await(c.getClientRects==null?void 0:c.getClientRects(n.reference))||[]),a=nn(l),p=lt(ye(l)),m=Yt(d);function h(){if(a.length===2&&a[0].left>a[1].right&&u!=null&&i!=null)return a.find(v=>u>v.left-m.left&&u<v.right+m.right&&i>v.top-m.top&&i<v.bottom+m.bottom)||p;if(a.length>=2){if(G(r)==="y"){const L=a[0],F=a[a.length-1],B=X(r)==="top",N=L.top,k=F.bottom,Y=B?L.left:F.left,M=B?L.right:F.right,H=M-Y,C=k-N;return{top:N,bottom:k,left:Y,right:M,width:H,height:C,x:Y,y:N}}const v=X(r)==="left",x=tt(...a.map(L=>L.right)),S=it(...a.map(L=>L.left)),E=a.filter(L=>v?L.left===S:L.right===x),R=E[0].top,T=E[E.length-1].bottom,_=S,w=x,j=w-_,W=T-R;return{top:R,bottom:T,left:_,right:w,width:j,height:W,x:_,y:R}}return p}const y=await c.getElementRects({reference:{getBoundingClientRect:h},floating:n.floating,strategy:f});return s.reference.x!==y.reference.x||s.reference.y!==y.reference.y||s.reference.width!==y.reference.width||s.reference.height!==y.reference.height?{reset:{rects:y}}:{}}}},ve=new Set(["left","top"]);async function on(t,e){const{placement:r,platform:n,elements:s}=t,c=await(n.isRTL==null?void 0:n.isRTL(s.floating)),f=X(r),d=dt(r),u=G(r)==="y",i=ve.has(f)?-1:1,l=c&&u?-1:1,a=nt(e,t);let{mainAxis:p,crossAxis:m,alignmentAxis:h}=typeof a=="number"?{mainAxis:a,crossAxis:0,alignmentAxis:null}:{mainAxis:a.mainAxis||0,crossAxis:a.crossAxis||0,alignmentAxis:a.alignmentAxis};return d&&typeof h=="number"&&(m=d==="end"?h*-1:h),u?{x:m*l,y:p*i}:{x:p*i,y:m*l}}const sn=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var r,n;const{x:s,y:c,placement:f,middlewareData:d}=e,u=await on(e,t);return f===((r=d.offset)==null?void 0:r.placement)&&(n=d.arrow)!=null&&n.alignmentOffset?{}:{x:s+u.x,y:c+u.y,data:{...u,placement:f}}}}},cn=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:r,y:n,placement:s,platform:c}=e,{mainAxis:f=!0,crossAxis:d=!1,limiter:u={fn:x=>{let{x:S,y:E}=x;return{x:S,y:E}}},...i}=nt(t,e),l={x:r,y:n},a=await c.detectOverflow(e,i),p=G(X(s)),m=It(p);let h=l[m],y=l[p];if(f){const x=m==="y"?"top":"left",S=m==="y"?"bottom":"right",E=h+a[x],R=h-a[S];h=jt(E,h,R)}if(d){const x=p==="y"?"top":"left",S=p==="y"?"bottom":"right",E=y+a[x],R=y-a[S];y=jt(E,y,R)}const v=u.fn({...e,[m]:h,[p]:y});return{...v,data:{x:v.x-r,y:v.y-n,enabled:{[m]:f,[p]:d}}}}}},fn=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:r,y:n,placement:s,rects:c,middlewareData:f}=e,{offset:d=0,mainAxis:u=!0,crossAxis:i=!0}=nt(t,e),l={x:r,y:n},a=G(s),p=It(a);let m=l[p],h=l[a];const y=nt(d,e),v=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(u){const E=p==="y"?"height":"width",R=c.reference[p]-c.floating[E]+v.mainAxis,T=c.reference[p]+c.reference[E]-v.mainAxis;m<R?m=R:m>T&&(m=T)}if(i){var x,S;const E=p==="y"?"width":"height",R=ve.has(X(s)),T=c.reference[a]-c.floating[E]+(R&&((x=f.offset)==null?void 0:x[a])||0)+(R?0:v.crossAxis),_=c.reference[a]+c.reference[E]+(R?0:((S=f.offset)==null?void 0:S[a])||0)-(R?v.crossAxis:0);h<T?h=T:h>_&&(h=_)}return{[p]:m,[a]:h}}}},un=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var r,n;const{placement:s,rects:c,platform:f,elements:d}=e,{apply:u=()=>{},...i}=nt(t,e),l=await f.detectOverflow(e,i),a=X(s),p=dt(s),m=G(s)==="y",{width:h,height:y}=c.floating;let v,x;a==="top"||a==="bottom"?(v=a,x=p===(await(f.isRTL==null?void 0:f.isRTL(d.floating))?"start":"end")?"left":"right"):(x=a,v=p==="end"?"top":"bottom");const S=y-l.top-l.bottom,E=h-l.left-l.right,R=it(y-l[v],S),T=it(h-l[x],E),_=!e.middlewareData.shift;let w=R,j=T;if((r=e.middlewareData.shift)!=null&&r.enabled.x&&(j=E),(n=e.middlewareData.shift)!=null&&n.enabled.y&&(w=S),_&&!p){const L=tt(l.left,0),F=tt(l.right,0),B=tt(l.top,0),N=tt(l.bottom,0);m?j=h-2*(L!==0||F!==0?L+F:tt(l.left,l.right)):w=y-2*(B!==0||N!==0?B+N:tt(l.top,l.bottom))}await u({...e,availableWidth:j,availableHeight:w});const W=await f.getDimensions(d.floating);return h!==W.width||y!==W.height?{reset:{rects:!0}}:{}}}},Ht=Math.min,ft=Math.max,xt=Math.round,yt=Math.floor,et=t=>({x:t,y:t});function _t(){return typeof window<"u"}function mt(t){return we(t)?(t.nodeName||"").toLowerCase():"#document"}function z(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function ot(t){var e;return(e=(we(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function we(t){return _t()?t instanceof Node||t instanceof z(t).Node:!1}function J(t){return _t()?t instanceof Element||t instanceof z(t).Element:!1}function rt(t){return _t()?t instanceof HTMLElement||t instanceof z(t).HTMLElement:!1}function fe(t){return!_t()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof z(t).ShadowRoot}const ln=new Set(["inline","contents"]);function ht(t){const{overflow:e,overflowX:r,overflowY:n,display:s}=K(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&!ln.has(s)}const an=new Set(["table","td","th"]);function dn(t){return an.has(mt(t))}const mn=[":popover-open",":modal"];function St(t){return mn.some(e=>{try{return t.matches(e)}catch{return!1}})}const gn=["transform","translate","scale","rotate","perspective"],pn=["transform","translate","scale","rotate","perspective","filter"],hn=["paint","layout","strict","content"];function Vt(t){const e=qt(),r=J(t)?K(t):t;return gn.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!e&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!e&&(r.filter?r.filter!=="none":!1)||pn.some(n=>(r.willChange||"").includes(n))||hn.some(n=>(r.contain||"").includes(n))}function yn(t){let e=st(t);for(;rt(e)&&!at(e);){if(Vt(e))return e;if(St(e))return null;e=st(e)}return null}function qt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const vn=new Set(["html","body","#document"]);function at(t){return vn.has(mt(t))}function K(t){return z(t).getComputedStyle(t)}function bt(t){return J(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function st(t){if(mt(t)==="html")return t;const e=t.assignedSlot||t.parentNode||fe(t)&&t.host||ot(t);return fe(e)?e.host:e}function xe(t){const e=st(t);return at(e)?t.ownerDocument?t.ownerDocument.body:t.body:rt(e)&&ht(e)?e:xe(e)}function pt(t,e,r){var n;e===void 0&&(e=[]),r===void 0&&(r=!0);const s=xe(t),c=s===((n=t.ownerDocument)==null?void 0:n.body),f=z(s);if(c){const d=Ft(f);return e.concat(f,f.visualViewport||[],ht(s)?s:[],d&&r?pt(d):[])}return e.concat(s,pt(s,[],r))}function Ft(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Re(t){const e=K(t);let r=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const s=rt(t),c=s?t.offsetWidth:r,f=s?t.offsetHeight:n,d=xt(r)!==c||xt(n)!==f;return d&&(r=c,n=f),{width:r,height:n,$:d}}function Ut(t){return J(t)?t:t.contextElement}function ut(t){const e=Ut(t);if(!rt(e))return et(1);const r=e.getBoundingClientRect(),{width:n,height:s,$:c}=Re(e);let f=(c?xt(r.width):r.width)/n,d=(c?xt(r.height):r.height)/s;return(!f||!Number.isFinite(f))&&(f=1),(!d||!Number.isFinite(d))&&(d=1),{x:f,y:d}}const wn=et(0);function Ee(t){const e=z(t);return!qt()||!e.visualViewport?wn:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function xn(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==z(t)?!1:e}function ct(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);const s=t.getBoundingClientRect(),c=Ut(t);let f=et(1);e&&(n?J(n)&&(f=ut(n)):f=ut(t));const d=xn(c,r,n)?Ee(c):et(0);let u=(s.left+d.x)/f.x,i=(s.top+d.y)/f.y,l=s.width/f.x,a=s.height/f.y;if(c){const p=z(c),m=n&&J(n)?z(n):n;let h=p,y=Ft(h);for(;y&&n&&m!==h;){const v=ut(y),x=y.getBoundingClientRect(),S=K(y),E=x.left+(y.clientLeft+parseFloat(S.paddingLeft))*v.x,R=x.top+(y.clientTop+parseFloat(S.paddingTop))*v.y;u*=v.x,i*=v.y,l*=v.x,a*=v.y,u+=E,i+=R,h=z(y),y=Ft(h)}}return lt({width:l,height:a,x:u,y:i})}function Ot(t,e){const r=bt(t).scrollLeft;return e?e.left+r:ct(ot(t)).left+r}function _e(t,e){const r=t.getBoundingClientRect(),n=r.left+e.scrollLeft-Ot(t,r),s=r.top+e.scrollTop;return{x:n,y:s}}function Rn(t){let{elements:e,rect:r,offsetParent:n,strategy:s}=t;const c=s==="fixed",f=ot(n),d=e?St(e.floating):!1;if(n===f||d&&c)return r;let u={scrollLeft:0,scrollTop:0},i=et(1);const l=et(0),a=rt(n);if((a||!a&&!c)&&((mt(n)!=="body"||ht(f))&&(u=bt(n)),rt(n))){const m=ct(n);i=ut(n),l.x=m.x+n.clientLeft,l.y=m.y+n.clientTop}const p=f&&!a&&!c?_e(f,u):et(0);return{width:r.width*i.x,height:r.height*i.y,x:r.x*i.x-u.scrollLeft*i.x+l.x+p.x,y:r.y*i.y-u.scrollTop*i.y+l.y+p.y}}function En(t){return Array.from(t.getClientRects())}function _n(t){const e=ot(t),r=bt(t),n=t.ownerDocument.body,s=ft(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),c=ft(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let f=-r.scrollLeft+Ot(t);const d=-r.scrollTop;return K(n).direction==="rtl"&&(f+=ft(e.clientWidth,n.clientWidth)-s),{width:s,height:c,x:f,y:d}}const ue=25;function Sn(t,e){const r=z(t),n=ot(t),s=r.visualViewport;let c=n.clientWidth,f=n.clientHeight,d=0,u=0;if(s){c=s.width,f=s.height;const l=qt();(!l||l&&e==="fixed")&&(d=s.offsetLeft,u=s.offsetTop)}const i=Ot(n);if(i<=0){const l=n.ownerDocument,a=l.body,p=getComputedStyle(a),m=l.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,h=Math.abs(n.clientWidth-a.clientWidth-m);h<=ue&&(c-=h)}else i<=ue&&(c+=i);return{width:c,height:f,x:d,y:u}}const bn=new Set(["absolute","fixed"]);function On(t,e){const r=ct(t,!0,e==="fixed"),n=r.top+t.clientTop,s=r.left+t.clientLeft,c=rt(t)?ut(t):et(1),f=t.clientWidth*c.x,d=t.clientHeight*c.y,u=s*c.x,i=n*c.y;return{width:f,height:d,x:u,y:i}}function le(t,e,r){let n;if(e==="viewport")n=Sn(t,r);else if(e==="document")n=_n(ot(t));else if(J(e))n=On(e,r);else{const s=Ee(t);n={x:e.x-s.x,y:e.y-s.y,width:e.width,height:e.height}}return lt(n)}function Se(t,e){const r=st(t);return r===e||!J(r)||at(r)?!1:K(r).position==="fixed"||Se(r,e)}function An(t,e){const r=e.get(t);if(r)return r;let n=pt(t,[],!1).filter(d=>J(d)&&mt(d)!=="body"),s=null;const c=K(t).position==="fixed";let f=c?st(t):t;for(;J(f)&&!at(f);){const d=K(f),u=Vt(f);!u&&d.position==="fixed"&&(s=null),(c?!u&&!s:!u&&d.position==="static"&&!!s&&bn.has(s.position)||ht(f)&&!u&&Se(t,f))?n=n.filter(l=>l!==f):s=d,f=st(f)}return e.set(t,n),n}function Tn(t){let{element:e,boundary:r,rootBoundary:n,strategy:s}=t;const f=[...r==="clippingAncestors"?St(e)?[]:An(e,this._c):[].concat(r),n],d=f[0],u=f.reduce((i,l)=>{const a=le(e,l,s);return i.top=ft(a.top,i.top),i.right=Ht(a.right,i.right),i.bottom=Ht(a.bottom,i.bottom),i.left=ft(a.left,i.left),i},le(e,d,s));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function Cn(t){const{width:e,height:r}=Re(t);return{width:e,height:r}}function Pn(t,e,r){const n=rt(e),s=ot(e),c=r==="fixed",f=ct(t,!0,c,e);let d={scrollLeft:0,scrollTop:0};const u=et(0);function i(){u.x=Ot(s)}if(n||!n&&!c)if((mt(e)!=="body"||ht(s))&&(d=bt(e)),n){const m=ct(e,!0,c,e);u.x=m.x+e.clientLeft,u.y=m.y+e.clientTop}else s&&i();c&&!n&&s&&i();const l=s&&!n&&!c?_e(s,d):et(0),a=f.left+d.scrollLeft-u.x-l.x,p=f.top+d.scrollTop-u.y-l.y;return{x:a,y:p,width:f.width,height:f.height}}function kt(t){return K(t).position==="static"}function ae(t,e){if(!rt(t)||K(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return ot(t)===r&&(r=r.ownerDocument.body),r}function be(t,e){const r=z(t);if(St(t))return r;if(!rt(t)){let s=st(t);for(;s&&!at(s);){if(J(s)&&!kt(s))return s;s=st(s)}return r}let n=ae(t,e);for(;n&&dn(n)&&kt(n);)n=ae(n,e);return n&&at(n)&&kt(n)&&!Vt(n)?r:n||yn(t)||r}const Ln=async function(t){const e=this.getOffsetParent||be,r=this.getDimensions,n=await r(t.floating);return{reference:Pn(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Dn(t){return K(t).direction==="rtl"}const Mn={convertOffsetParentRelativeRectToViewportRelativeRect:Rn,getDocumentElement:ot,getClippingRect:Tn,getOffsetParent:be,getElementRects:Ln,getClientRects:En,getDimensions:Cn,getScale:ut,isElement:J,isRTL:Dn};function Oe(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function kn(t,e){let r=null,n;const s=ot(t);function c(){var d;clearTimeout(n),(d=r)==null||d.disconnect(),r=null}function f(d,u){d===void 0&&(d=!1),u===void 0&&(u=1),c();const i=t.getBoundingClientRect(),{left:l,top:a,width:p,height:m}=i;if(d||e(),!p||!m)return;const h=yt(a),y=yt(s.clientWidth-(l+p)),v=yt(s.clientHeight-(a+m)),x=yt(l),E={rootMargin:-h+"px "+-y+"px "+-v+"px "+-x+"px",threshold:ft(0,Ht(1,u))||1};let R=!0;function T(_){const w=_[0].intersectionRatio;if(w!==u){if(!R)return f();w?f(!1,w):n=setTimeout(()=>{f(!1,1e-7)},1e3)}w===1&&!Oe(i,t.getBoundingClientRect())&&f(),R=!1}try{r=new IntersectionObserver(T,{...E,root:s.ownerDocument})}catch{r=new IntersectionObserver(T,E)}r.observe(t)}return f(!0),c}function Qn(t,e,r,n){n===void 0&&(n={});const{ancestorScroll:s=!0,ancestorResize:c=!0,elementResize:f=typeof ResizeObserver=="function",layoutShift:d=typeof IntersectionObserver=="function",animationFrame:u=!1}=n,i=Ut(t),l=s||c?[...i?pt(i):[],...pt(e)]:[];l.forEach(x=>{s&&x.addEventListener("scroll",r,{passive:!0}),c&&x.addEventListener("resize",r)});const a=i&&d?kn(i,r):null;let p=-1,m=null;f&&(m=new ResizeObserver(x=>{let[S]=x;S&&S.target===i&&m&&(m.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var E;(E=m)==null||E.observe(e)})),r()}),i&&!u&&m.observe(i),m.observe(e));let h,y=u?ct(t):null;u&&v();function v(){const x=ct(t);y&&!Oe(y,x)&&r(),y=x,h=requestAnimationFrame(v)}return r(),()=>{var x;l.forEach(S=>{s&&S.removeEventListener("scroll",r),c&&S.removeEventListener("resize",r)}),a?.(),(x=m)==null||x.disconnect(),m=null,u&&cancelAnimationFrame(h)}}const $n=sn,jn=cn,Nn=tn,Hn=un,Fn=en,de=Ze,In=rn,Wn=fn,Bn=(t,e,r)=>{const n=new Map,s={platform:Mn,...r},c={...s.platform,_c:n};return Qe(t,e,{...s,platform:c})};var Yn=typeof document<"u",Vn=function(){},vt=Yn?I.useLayoutEffect:Vn;function Rt(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let r,n,s;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(r=t.length,r!==e.length)return!1;for(n=r;n--!==0;)if(!Rt(t[n],e[n]))return!1;return!0}if(s=Object.keys(t),r=s.length,r!==Object.keys(e).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(e,s[n]))return!1;for(n=r;n--!==0;){const c=s[n];if(!(c==="_owner"&&t.$$typeof)&&!Rt(t[c],e[c]))return!1}return!0}return t!==t&&e!==e}function Ae(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function me(t,e){const r=Ae(t);return Math.round(e*r)/r}function $t(t){const e=I.useRef(t);return vt(()=>{e.current=t}),e}function Zn(t){t===void 0&&(t={});const{placement:e="bottom",strategy:r="absolute",middleware:n=[],platform:s,elements:{reference:c,floating:f}={},transform:d=!0,whileElementsMounted:u,open:i}=t,[l,a]=I.useState({x:0,y:0,strategy:r,placement:e,middlewareData:{},isPositioned:!1}),[p,m]=I.useState(n);Rt(p,n)||m(n);const[h,y]=I.useState(null),[v,x]=I.useState(null),S=I.useCallback(C=>{C!==_.current&&(_.current=C,y(C))},[]),E=I.useCallback(C=>{C!==w.current&&(w.current=C,x(C))},[]),R=c||h,T=f||v,_=I.useRef(null),w=I.useRef(null),j=I.useRef(l),W=u!=null,L=$t(u),F=$t(s),B=$t(i),N=I.useCallback(()=>{if(!_.current||!w.current)return;const C={placement:e,strategy:r,middleware:p};F.current&&(C.platform=F.current),Bn(_.current,w.current,C).then(V=>{const Q={...V,isPositioned:B.current!==!1};k.current&&!Rt(j.current,Q)&&(j.current=Q,pe.flushSync(()=>{a(Q)}))})},[p,e,r,F,B]);vt(()=>{i===!1&&j.current.isPositioned&&(j.current.isPositioned=!1,a(C=>({...C,isPositioned:!1})))},[i]);const k=I.useRef(!1);vt(()=>(k.current=!0,()=>{k.current=!1}),[]),vt(()=>{if(R&&(_.current=R),T&&(w.current=T),R&&T){if(L.current)return L.current(R,T,N);N()}},[R,T,N,L,W]);const Y=I.useMemo(()=>({reference:_,floating:w,setReference:S,setFloating:E}),[S,E]),M=I.useMemo(()=>({reference:R,floating:T}),[R,T]),H=I.useMemo(()=>{const C={position:r,left:0,top:0};if(!M.floating)return C;const V=me(M.floating,l.x),Q=me(M.floating,l.y);return d?{...C,transform:"translate("+V+"px, "+Q+"px)",...Ae(M.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:V,top:Q}},[r,d,M.floating,l.x,l.y]);return I.useMemo(()=>({...l,update:N,refs:Y,elements:M,floatingStyles:H}),[l,N,Y,M,H])}const qn=t=>{function e(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:t,fn(r){const{element:n,padding:s}=typeof t=="function"?t(r):t;return n&&e(n)?n.current!=null?de({element:n.current,padding:s}).fn(r):{}:n?de({element:n,padding:s}).fn(r):{}}}},tr=(t,e)=>({...$n(t),options:[t,e]}),er=(t,e)=>({...jn(t),options:[t,e]}),nr=(t,e)=>({...Wn(t),options:[t,e]}),rr=(t,e)=>({...Nn(t),options:[t,e]}),or=(t,e)=>({...Hn(t),options:[t,e]}),ir=(t,e)=>({...Fn(t),options:[t,e]}),sr=(t,e)=>({...In(t),options:[t,e]}),cr=(t,e)=>({...qn(t),options:[t,e]});export{Gn as R,pe as a,Me as b,Ne as c,Jn as d,Kn as e,pt as f,ge as g,Qn as h,ir as i,zn as j,rr as k,nr as l,sr as m,cr as n,tr as o,or as p,Un as q,I as r,er as s,Et as t,Zn as u,$e as v,Xn as w};
@@ -0,0 +1,156 @@
1
+ import{g as Xe}from"./chunk-5VM5RSS4-DeOwWPE_.js";import{g as Qe}from"./chunk-XXDRQBXY-Coo4UFm2.js";import{s as Je}from"./chunk-VR4S4FIN-DDVw2WPs.js";import{_ as k,b5 as Ze,W as Me,l as J,c as g1,u as $e,v as et,x as re,b as tt,s as st,n as it,a as rt,g as at,o as nt,j as ut,X as ot,Y as lt,bb as ct,q as se,a4 as ht,p as dt,b7 as pt,r as ft}from"./mermaid.core-B14ZAmWA.js";import{f as gt}from"./chunk-32BRIVSS-CfL3kZAg.js";import{s as ie}from"./transform-BUB79_za.js";import{c as bt}from"./channel-CigOulR-.js";var At="flowchart-",G1,kt=(G1=class{constructor(){this.vertexCounter=0,this.config=g1(),this.diagramId="",this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=tt,this.setAccDescription=st,this.setDiagramTitle=it,this.getAccTitle=rt,this.getAccDescription=at,this.getDiagramTitle=nt,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}sanitizeText(i){return ut.sanitizeText(i,this.config)}sanitizeNodeLabelType(i){switch(i){case"markdown":case"string":case"text":return i;default:return"markdown"}}setDiagramId(i){this.diagramId=i}lookUpDomId(i){for(const r of this.vertices.values())if(r.id===i)return this.diagramId?`${this.diagramId}-${r.domId}`:r.domId;return this.diagramId?`${this.diagramId}-${i}`:i}addVertex(i,r,a,n,l,p,c={},g){if(!i||i.trim().length===0)return;let u;if(g!==void 0){let m;g.includes(`
2
+ `)?m=g+`
3
+ `:m=`{
4
+ `+g+`
5
+ }`,u=ot(m,{schema:lt})}const A=this.edges.find(m=>m.id===i);if(A){const m=u;m?.animate!==void 0&&(A.animate=m.animate),m?.animation!==void 0&&(A.animation=m.animation),m?.curve!==void 0&&(A.interpolate=m.curve);return}let v,b=this.vertices.get(i);if(b===void 0&&(r===void 0&&a===void 0&&n!==void 0&&n!==null&&J.warn(`Style applied to unknown node "${i}". This may indicate a typo. The node will be created automatically.`),b={id:i,labelType:"text",domId:At+i+"-"+this.vertexCounter,styles:[],classes:[]},this.vertices.set(i,b)),this.vertexCounter++,r!==void 0?(this.config=g1(),v=this.sanitizeText(r.text.trim()),b.labelType=r.type,v.startsWith('"')&&v.endsWith('"')&&(v=v.substring(1,v.length-1)),b.text=v):b.text===void 0&&(b.text=i),a!==void 0&&(b.type=a),n?.forEach(m=>{b.styles.push(m)}),l?.forEach(m=>{b.classes.push(m)}),p!==void 0&&(b.dir=p),b.props===void 0?b.props=c:c!==void 0&&Object.assign(b.props,c),u!==void 0){if(u.shape){if(u.shape!==u.shape.toLowerCase()||u.shape.includes("_"))throw new Error(`No such shape: ${u.shape}. Shape names should be lowercase.`);if(!ct(u.shape))throw new Error(`No such shape: ${u.shape}.`);b.type=u?.shape}u?.label&&(b.text=u?.label,b.labelType=this.sanitizeNodeLabelType(u?.labelType)),u?.icon&&(b.icon=u?.icon,!u.label?.trim()&&b.text===i&&(b.text="")),u?.form&&(b.form=u?.form),u?.pos&&(b.pos=u?.pos),u?.img&&(b.img=u?.img,!u.label?.trim()&&b.text===i&&(b.text="")),u?.constraint&&(b.constraint=u.constraint),u.w&&(b.assetWidth=Number(u.w)),u.h&&(b.assetHeight=Number(u.h))}}addSingleLink(i,r,a,n){const c={start:i,end:r,type:void 0,text:"",labelType:"text",classes:[],isUserDefinedId:!1,interpolate:this.edges.defaultInterpolate};J.info("abc78 Got edge...",c);const g=a.text;if(g!==void 0&&(c.text=this.sanitizeText(g.text.trim()),c.text.startsWith('"')&&c.text.endsWith('"')&&(c.text=c.text.substring(1,c.text.length-1)),c.labelType=this.sanitizeNodeLabelType(g.type)),a!==void 0&&(c.type=a.type,c.stroke=a.stroke,c.length=a.length>10?10:a.length),n&&!this.edges.some(u=>u.id===n))c.id=n,c.isUserDefinedId=!0;else{const u=this.edges.filter(A=>A.start===c.start&&A.end===c.end);u.length===0?c.id=se(c.start,c.end,{counter:0,prefix:"L"}):c.id=se(c.start,c.end,{counter:u.length+1,prefix:"L"})}if(this.edges.length<(this.config.maxEdges??500))J.info("Pushing edge..."),this.edges.push(c);else throw new Error(`Edge limit exceeded. ${this.edges.length} edges found, but the limit is ${this.config.maxEdges}.
6
+
7
+ Initialize mermaid with maxEdges set to a higher number to allow more edges.
8
+ You cannot set this config via configuration inside the diagram as it is a secure config.
9
+ You have to call mermaid.initialize.`)}isLinkData(i){return i!==null&&typeof i=="object"&&"id"in i&&typeof i.id=="string"}addLink(i,r,a){const n=this.isLinkData(a)?a.id.replace("@",""):void 0;J.info("addLink",i,r,n);for(const l of i)for(const p of r){const c=l===i[i.length-1],g=p===r[0];c&&g?this.addSingleLink(l,p,a,n):this.addSingleLink(l,p,a,void 0)}}updateLinkInterpolate(i,r){i.forEach(a=>{a==="default"?this.edges.defaultInterpolate=r:this.edges[a].interpolate=r})}updateLink(i,r){i.forEach(a=>{if(typeof a=="number"&&a>=this.edges.length)throw new Error(`The index ${a} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);a==="default"?this.edges.defaultStyle=r:(this.edges[a].style=r,(this.edges[a]?.style?.length??0)>0&&!this.edges[a]?.style?.some(n=>n?.startsWith("fill"))&&this.edges[a]?.style?.push("fill:none"))})}addClass(i,r){const a=r.join().replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");i.split(",").forEach(n=>{let l=this.classes.get(n);l===void 0&&(l={id:n,styles:[],textStyles:[]},this.classes.set(n,l)),a?.forEach(p=>{if(/color/.exec(p)){const c=p.replace("fill","bgFill");l.textStyles.push(c)}l.styles.push(p)})})}setDirection(i){this.direction=i.trim(),/.*</.exec(this.direction)&&(this.direction="RL"),/.*\^/.exec(this.direction)&&(this.direction="BT"),/.*>/.exec(this.direction)&&(this.direction="LR"),/.*v/.exec(this.direction)&&(this.direction="TB"),this.direction==="TD"&&(this.direction="TB")}setClass(i,r){for(const a of i.split(",")){const n=this.vertices.get(a);n&&n.classes.push(r);const l=this.edges.find(c=>c.id===a);l&&l.classes.push(r);const p=this.subGraphLookup.get(a);p&&p.classes.push(r)}}setTooltip(i,r){if(r!==void 0){r=this.sanitizeText(r);for(const a of i.split(","))this.tooltips.set(this.version==="gen-1"?this.lookUpDomId(a):a,r)}}setClickFun(i,r,a){if(g1().securityLevel!=="loose"||r===void 0)return;let n=[];if(typeof a=="string"){n=a.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let p=0;p<n.length;p++){let c=n[p].trim();c.startsWith('"')&&c.endsWith('"')&&(c=c.substr(1,c.length-2)),n[p]=c}}n.length===0&&n.push(i);const l=this.vertices.get(i);l&&(l.haveCallback=!0,this.funs.push(()=>{const p=this.lookUpDomId(i),c=document.querySelector(`[id="${p}"]`);c!==null&&c.addEventListener("click",()=>{re.runFunc(r,...n)},!1)}))}setLink(i,r,a){i.split(",").forEach(n=>{const l=this.vertices.get(n);l!==void 0&&(l.link=re.formatUrl(r,this.config),l.linkTarget=a)}),this.setClass(i,"clickable")}getTooltip(i){return this.tooltips.get(i)}setClickEvent(i,r,a){i.split(",").forEach(n=>{this.setClickFun(n,r,a)}),this.setClass(i,"clickable")}bindFunctions(i){this.funs.forEach(r=>{r(i)})}getDirection(){return this.direction?.trim()}getVertices(){return this.vertices}getEdges(){return this.edges}getClasses(){return this.classes}setupToolTips(i){const r=gt();ie(i).select("svg").selectAll("g.node").on("mouseover",l=>{const p=ie(l.currentTarget),c=p.attr("title");if(c===null)return;const g=l.currentTarget?.getBoundingClientRect();r.transition().duration(200).style("opacity",".9"),r.text(p.attr("title")).style("left",window.scrollX+g.left+(g.right-g.left)/2+"px").style("top",window.scrollY+g.bottom+"px"),r.html(ht.sanitize(c)),p.classed("hover",!0)}).on("mouseout",l=>{r.transition().duration(500).style("opacity",0),ie(l.currentTarget).classed("hover",!1)})}clear(i="gen-2"){this.vertices=new Map,this.classes=new Map,this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.diagramId="",this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.tooltips=new Map,this.firstGraphFlag=!0,this.version=i,this.config=g1(),dt()}setGen(i){this.version=i||"gen-2"}defaultStyle(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"}addSubGraph(i,r,a){let n=i.text.trim(),l=a.text;i===a&&/\s/.exec(a.text)&&(n=void 0);const c=k(S=>{const B={boolean:{},number:{},string:{}},b1=[];let A1;return{nodeList:S.filter(function(K){const h1=typeof K;return K.stmt&&K.stmt==="dir"?(A1=K.value,!1):K.trim()===""?!1:h1 in B?B[h1].hasOwnProperty(K)?!1:B[h1][K]=!0:b1.includes(K)?!1:b1.push(K)}),dir:A1}},"uniq")(r.flat()),g=c.nodeList,u=c.dir,A=u!==void 0,v=g1().flowchart??{},b=u??(v.inheritDir?this.getDirection()??g1().direction??void 0:void 0);if(this.version==="gen-1")for(let S=0;S<g.length;S++)g[S]=this.lookUpDomId(g[S]);n=n??"subGraph"+this.subCount,l=l||"",l=this.sanitizeText(l),this.subCount=this.subCount+1;const m={id:n,nodes:g,title:l.trim(),classes:[],dir:b,hasExplicitDir:A,labelType:this.sanitizeNodeLabelType(a?.type)};return J.info("Adding",m.id,m.nodes,m.dir),m.nodes=this.makeUniq(m,this.subGraphs).nodes,this.subGraphs.push(m),this.subGraphLookup.set(n,m),n}getPosForId(i){for(const[r,a]of this.subGraphs.entries())if(a.id===i)return r;return-1}indexNodes2(i,r){const a=this.subGraphs[r].nodes;if(this.secCount=this.secCount+1,this.secCount>2e3)return{result:!1,count:0};if(this.posCrossRef[this.secCount]=r,this.subGraphs[r].id===i)return{result:!0,count:0};let n=0,l=1;for(;n<a.length;){const p=this.getPosForId(a[n]);if(p>=0){const c=this.indexNodes2(i,p);if(c.result)return{result:!0,count:l+c.count};l=l+c.count}n=n+1}return{result:!1,count:l}}getDepthFirstPos(i){return this.posCrossRef[i]}indexNodes(){this.secCount=-1,this.subGraphs.length>0&&this.indexNodes2("none",this.subGraphs.length-1)}getSubGraphs(){return this.subGraphs}firstGraph(){return this.firstGraphFlag?(this.firstGraphFlag=!1,!0):!1}destructStartLink(i){let r=i.trim(),a="arrow_open";switch(r[0]){case"<":a="arrow_point",r=r.slice(1);break;case"x":a="arrow_cross",r=r.slice(1);break;case"o":a="arrow_circle",r=r.slice(1);break}let n="normal";return r.includes("=")&&(n="thick"),r.includes(".")&&(n="dotted"),{type:a,stroke:n}}countChar(i,r){const a=r.length;let n=0;for(let l=0;l<a;++l)r[l]===i&&++n;return n}destructEndLink(i){const r=i.trim();let a=r.slice(0,-1),n="arrow_open";switch(r.slice(-1)){case"x":n="arrow_cross",r.startsWith("x")&&(n="double_"+n,a=a.slice(1));break;case">":n="arrow_point",r.startsWith("<")&&(n="double_"+n,a=a.slice(1));break;case"o":n="arrow_circle",r.startsWith("o")&&(n="double_"+n,a=a.slice(1));break}let l="normal",p=a.length-1;a.startsWith("=")&&(l="thick"),a.startsWith("~")&&(l="invisible");const c=this.countChar(".",a);return c&&(l="dotted",p=c),{type:n,stroke:l,length:p}}destructLink(i,r){const a=this.destructEndLink(i);let n;if(r){if(n=this.destructStartLink(r),n.stroke!==a.stroke)return{type:"INVALID",stroke:"INVALID"};if(n.type==="arrow_open")n.type=a.type;else{if(n.type!==a.type)return{type:"INVALID",stroke:"INVALID"};n.type="double_"+n.type}return n.type==="double_arrow"&&(n.type="double_arrow_point"),n.length=a.length,n}return a}exists(i,r){for(const a of i)if(a.nodes.includes(r))return!0;return!1}makeUniq(i,r){const a=[];return i.nodes.forEach((n,l)=>{this.exists(r,n)||a.push(i.nodes[l])}),{nodes:a}}getTypeFromVertex(i){if(i.img)return"imageSquare";if(i.icon)return i.form==="circle"?"iconCircle":i.form==="square"?"iconSquare":i.form==="rounded"?"iconRounded":"icon";switch(i.type){case"square":case void 0:return"squareRect";case"round":return"roundedRect";case"ellipse":return"ellipse";default:return i.type}}findNode(i,r){return i.find(a=>a.id===r)}destructEdgeType(i){let r="none",a="arrow_point";switch(i){case"arrow_point":case"arrow_circle":case"arrow_cross":a=i;break;case"double_arrow_point":case"double_arrow_circle":case"double_arrow_cross":r=i.replace("double_",""),a=r;break}return{arrowTypeStart:r,arrowTypeEnd:a}}addNodeFromVertex(i,r,a,n,l,p){const c=a.get(i.id),g=n.get(i.id)??!1,u=this.findNode(r,i.id);if(u)u.cssStyles=i.styles,u.cssCompiledStyles=this.getCompiledStyles(i.classes),u.cssClasses=i.classes.join(" ");else{const A={id:i.id,label:i.text,labelType:i.labelType,labelStyle:"",parentId:c,padding:l.flowchart?.padding||8,cssStyles:i.styles,cssCompiledStyles:this.getCompiledStyles(["default","node",...i.classes]),cssClasses:"default "+i.classes.join(" "),dir:i.dir,domId:i.domId,look:p,link:i.link,linkTarget:i.linkTarget,tooltip:this.getTooltip(i.id),icon:i.icon,pos:i.pos,img:i.img,assetWidth:i.assetWidth,assetHeight:i.assetHeight,constraint:i.constraint};g?r.push({...A,isGroup:!0,shape:"rect"}):r.push({...A,isGroup:!1,shape:this.getTypeFromVertex(i)})}}getCompiledStyles(i){let r=[];for(const a of i){const n=this.classes.get(a);n?.styles&&(r=[...r,...n.styles??[]].map(l=>l.trim())),n?.textStyles&&(r=[...r,...n.textStyles??[]].map(l=>l.trim()))}return r}getData(){const i=g1(),r=[],a=[],n=this.getSubGraphs(),l=new Map,p=new Map;for(let u=n.length-1;u>=0;u--){const A=n[u];A.nodes.length>0&&p.set(A.id,!0);for(const v of A.nodes)l.set(v,A.id)}for(let u=n.length-1;u>=0;u--){const A=n[u];r.push({id:A.id,label:A.title,labelStyle:"",labelType:A.labelType,parentId:l.get(A.id),padding:8,cssCompiledStyles:this.getCompiledStyles(A.classes),cssClasses:A.classes.join(" "),shape:"rect",dir:A.dir==="TD"?"TB":A.dir,explicitDir:A.hasExplicitDir,isGroup:!0,look:i.look})}this.getVertices().forEach(u=>{this.addNodeFromVertex(u,r,l,p,i,i.look||"classic")});const g=this.getEdges();return g.forEach((u,A)=>{const{arrowTypeStart:v,arrowTypeEnd:b}=this.destructEdgeType(u.type),m=[...g.defaultStyle??[]];u.style&&m.push(...u.style);const S={id:se(u.start,u.end,{counter:A,prefix:"L"},u.id),isUserDefinedId:u.isUserDefinedId,start:u.start,end:u.end,type:u.type??"normal",label:u.text,labelType:u.labelType,labelpos:"c",thickness:u.stroke,minlen:u.length,classes:u?.stroke==="invisible"?"":"edge-thickness-normal edge-pattern-solid flowchart-link",arrowTypeStart:u?.stroke==="invisible"||u?.type==="arrow_open"?"none":v,arrowTypeEnd:u?.stroke==="invisible"||u?.type==="arrow_open"?"none":b,arrowheadStyle:"fill: #333",cssCompiledStyles:this.getCompiledStyles(u.classes),labelStyle:m,style:m,pattern:u.stroke,look:i.look,animate:u.animate,animation:u.animation,curve:u.interpolate||this.edges.defaultInterpolate||i.flowchart?.curve};a.push(S)}),{nodes:r,edges:a,other:{},config:i}}defaultConfig(){return pt.flowchart}},k(G1,"FlowDB"),G1),mt=k(function(s,i){return i.db.getClasses()},"getClasses"),Dt=k(async function(s,i,r,a,n){J.info("REF0:"),J.info("Drawing state diagram (v2)",i);const{securityLevel:l,flowchart:p,layout:c}=g1();a.db.setDiagramId(i),J.debug("Before getData: ");const g=a.db.getData();J.debug("Data: ",g);const u=Qe(i,l),A=a.db.getDirection();g.type=a.type,g.layoutAlgorithm=$e(c),g.layoutAlgorithm==="dagre"&&c==="elk"&&J.warn("flowchart-elk was moved to an external package in Mermaid v11. Please refer [release notes](https://github.com/mermaid-js/mermaid/releases/tag/v11.0.0) for more details. This diagram will be rendered using `dagre` layout as a fallback."),g.direction=A,g.nodeSpacing=p?.nodeSpacing||50,g.rankSpacing=p?.rankSpacing||50,g.markers=["point","circle","cross"],g.diagramId=i,J.debug("REF1:",g),await et(g,u,n);const v=g.config.flowchart?.diagramPadding??8;re.insertTitle(u,"flowchartTitleText",p?.titleTopMargin||0,a.db.getDiagramTitle()),Je(u,v,"flowchart",p?.useMaxWidth||!1)},"draw"),Et={getClasses:mt,draw:Dt},ae=(function(){var s=k(function(f1,h,d,f){for(d=d||{},f=f1.length;f--;d[f1[f]]=h);return d},"o"),i=[1,4],r=[1,3],a=[1,5],n=[1,8,9,10,11,27,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],l=[2,2],p=[1,13],c=[1,14],g=[1,15],u=[1,16],A=[1,23],v=[1,25],b=[1,26],m=[1,27],S=[1,50],B=[1,49],b1=[1,29],A1=[1,30],P1=[1,31],K=[1,32],h1=[1,33],V=[1,45],I=[1,47],w=[1,43],R=[1,48],N=[1,44],G=[1,51],P=[1,46],O=[1,52],M=[1,53],M1=[1,34],U1=[1,35],z1=[1,36],W1=[1,37],j1=[1,38],d1=[1,58],y=[1,8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],$=[1,62],e1=[1,61],t1=[1,63],E1=[8,9,11,75,77,78],ne=[1,79],C1=[1,92],T1=[1,97],S1=[1,96],y1=[1,93],x1=[1,89],F1=[1,95],_1=[1,91],B1=[1,98],v1=[1,94],L1=[1,99],V1=[1,90],k1=[8,9,10,11,40,75,77,78],z=[8,9,10,11,40,46,75,77,78],q=[8,9,10,11,29,40,44,46,48,50,52,54,56,58,60,63,65,67,68,70,75,77,78,89,102,105,106,109,111,114,115,116],ue=[8,9,11,44,60,75,77,78,89,102,105,106,109,111,114,115,116],I1=[44,60,89,102,105,106,109,111,114,115,116],oe=[1,122],le=[1,123],K1=[1,125],Y1=[1,124],ce=[44,60,62,74,89,102,105,106,109,111,114,115,116],he=[1,134],de=[1,148],pe=[1,149],fe=[1,150],ge=[1,151],be=[1,136],Ae=[1,138],ke=[1,142],me=[1,143],De=[1,144],Ee=[1,145],Ce=[1,146],Te=[1,147],Se=[1,152],ye=[1,153],xe=[1,132],Fe=[1,133],_e=[1,140],Be=[1,135],ve=[1,139],Le=[1,137],Q1=[8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],Ve=[1,155],Ie=[1,157],_=[8,9,11],H=[8,9,10,11,14,44,60,89,105,106,109,111,114,115,116],D=[1,177],W=[1,173],j=[1,174],E=[1,178],C=[1,175],T=[1,176],w1=[77,116,119],x=[8,9,10,11,12,14,27,29,32,44,60,75,84,85,86,87,88,89,90,105,109,111,114,115,116],we=[10,106],p1=[31,49,51,53,55,57,62,64,66,67,69,71,116,117,118],s1=[1,248],i1=[1,246],r1=[1,250],a1=[1,244],n1=[1,245],u1=[1,247],o1=[1,249],l1=[1,251],R1=[1,269],Re=[8,9,11,106],Z=[8,9,10,11,60,84,105,106,109,110,111,112],J1={trace:k(function(){},"trace"),yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,shapeData:39,SHAPE_DATA:40,link:41,node:42,styledVertex:43,AMP:44,vertex:45,STYLE_SEPARATOR:46,idString:47,DOUBLECIRCLESTART:48,DOUBLECIRCLEEND:49,PS:50,PE:51,"(-":52,"-)":53,STADIUMSTART:54,STADIUMEND:55,SUBROUTINESTART:56,SUBROUTINEEND:57,VERTEX_WITH_PROPS_START:58,"NODE_STRING[field]":59,COLON:60,"NODE_STRING[value]":61,PIPE:62,CYLINDERSTART:63,CYLINDEREND:64,DIAMOND_START:65,DIAMOND_STOP:66,TAGEND:67,TRAPSTART:68,TRAPEND:69,INVTRAPSTART:70,INVTRAPEND:71,linkStatement:72,arrowText:73,TESTSTR:74,START_LINK:75,edgeText:76,LINK:77,LINK_ID:78,edgeTextToken:79,STR:80,MD_STR:81,textToken:82,keywords:83,STYLE:84,LINKSTYLE:85,CLASSDEF:86,CLASS:87,CLICK:88,DOWN:89,UP:90,textNoTagsToken:91,stylesOpt:92,"idString[vertex]":93,"idString[class]":94,CALLBACKNAME:95,CALLBACKARGS:96,HREF:97,LINK_TARGET:98,"STR[link]":99,"STR[tooltip]":100,alphaNum:101,DEFAULT:102,numList:103,INTERPOLATE:104,NUM:105,COMMA:106,style:107,styleComponent:108,NODE_STRING:109,UNIT:110,BRKT:111,PCT:112,idStringToken:113,MINUS:114,MULT:115,UNICODE_TEXT:116,TEXT:117,TAGSTART:118,EDGE_TEXT:119,alphaNumToken:120,direction_tb:121,direction_bt:122,direction_rl:123,direction_lr:124,direction_td:125,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",40:"SHAPE_DATA",44:"AMP",46:"STYLE_SEPARATOR",48:"DOUBLECIRCLESTART",49:"DOUBLECIRCLEEND",50:"PS",51:"PE",52:"(-",53:"-)",54:"STADIUMSTART",55:"STADIUMEND",56:"SUBROUTINESTART",57:"SUBROUTINEEND",58:"VERTEX_WITH_PROPS_START",59:"NODE_STRING[field]",60:"COLON",61:"NODE_STRING[value]",62:"PIPE",63:"CYLINDERSTART",64:"CYLINDEREND",65:"DIAMOND_START",66:"DIAMOND_STOP",67:"TAGEND",68:"TRAPSTART",69:"TRAPEND",70:"INVTRAPSTART",71:"INVTRAPEND",74:"TESTSTR",75:"START_LINK",77:"LINK",78:"LINK_ID",80:"STR",81:"MD_STR",84:"STYLE",85:"LINKSTYLE",86:"CLASSDEF",87:"CLASS",88:"CLICK",89:"DOWN",90:"UP",93:"idString[vertex]",94:"idString[class]",95:"CALLBACKNAME",96:"CALLBACKARGS",97:"HREF",98:"LINK_TARGET",99:"STR[link]",100:"STR[tooltip]",102:"DEFAULT",104:"INTERPOLATE",105:"NUM",106:"COMMA",109:"NODE_STRING",110:"UNIT",111:"BRKT",112:"PCT",114:"MINUS",115:"MULT",116:"UNICODE_TEXT",117:"TEXT",118:"TAGSTART",119:"EDGE_TEXT",121:"direction_tb",122:"direction_bt",123:"direction_rl",124:"direction_lr",125:"direction_td"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[39,2],[39,1],[20,4],[20,3],[20,4],[20,2],[20,2],[20,1],[42,1],[42,6],[42,5],[43,1],[43,3],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,8],[45,4],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,4],[45,4],[45,1],[41,2],[41,3],[41,3],[41,1],[41,3],[41,4],[76,1],[76,2],[76,1],[76,1],[72,1],[72,2],[73,3],[30,1],[30,2],[30,1],[30,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[103,1],[103,3],[92,1],[92,3],[107,1],[107,2],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[82,1],[82,1],[82,1],[82,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[79,1],[79,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[47,1],[47,2],[101,1],[101,2],[33,1],[33,1],[33,1],[33,1],[33,1]],performAction:k(function(h,d,f,o,F,e,O1){var t=e.length-1;switch(F){case 2:this.$=[];break;case 3:(!Array.isArray(e[t])||e[t].length>0)&&e[t-1].push(e[t]),this.$=e[t-1];break;case 4:case 183:this.$=e[t];break;case 11:o.setDirection("TB"),this.$="TB";break;case 12:o.setDirection(e[t-1]),this.$=e[t-1];break;case 27:this.$=e[t-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=o.addSubGraph(e[t-6],e[t-1],e[t-4]);break;case 34:this.$=o.addSubGraph(e[t-3],e[t-1],e[t-3]);break;case 35:this.$=o.addSubGraph(void 0,e[t-1],void 0);break;case 37:this.$=e[t].trim(),o.setAccTitle(this.$);break;case 38:case 39:this.$=e[t].trim(),o.setAccDescription(this.$);break;case 43:this.$=e[t-1]+e[t];break;case 44:this.$=e[t];break;case 45:o.addVertex(e[t-1][e[t-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,e[t]),o.addLink(e[t-3].stmt,e[t-1],e[t-2]),this.$={stmt:e[t-1],nodes:e[t-1].concat(e[t-3].nodes)};break;case 46:o.addLink(e[t-2].stmt,e[t],e[t-1]),this.$={stmt:e[t],nodes:e[t].concat(e[t-2].nodes)};break;case 47:o.addLink(e[t-3].stmt,e[t-1],e[t-2]),this.$={stmt:e[t-1],nodes:e[t-1].concat(e[t-3].nodes)};break;case 48:this.$={stmt:e[t-1],nodes:e[t-1]};break;case 49:o.addVertex(e[t-1][e[t-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,e[t]),this.$={stmt:e[t-1],nodes:e[t-1],shapeData:e[t]};break;case 50:this.$={stmt:e[t],nodes:e[t]};break;case 51:this.$=[e[t]];break;case 52:o.addVertex(e[t-5][e[t-5].length-1],void 0,void 0,void 0,void 0,void 0,void 0,e[t-4]),this.$=e[t-5].concat(e[t]);break;case 53:this.$=e[t-4].concat(e[t]);break;case 54:this.$=e[t];break;case 55:this.$=e[t-2],o.setClass(e[t-2],e[t]);break;case 56:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"square");break;case 57:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"doublecircle");break;case 58:this.$=e[t-5],o.addVertex(e[t-5],e[t-2],"circle");break;case 59:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"ellipse");break;case 60:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"stadium");break;case 61:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"subroutine");break;case 62:this.$=e[t-7],o.addVertex(e[t-7],e[t-1],"rect",void 0,void 0,void 0,Object.fromEntries([[e[t-5],e[t-3]]]));break;case 63:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"cylinder");break;case 64:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"round");break;case 65:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"diamond");break;case 66:this.$=e[t-5],o.addVertex(e[t-5],e[t-2],"hexagon");break;case 67:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"odd");break;case 68:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"trapezoid");break;case 69:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"inv_trapezoid");break;case 70:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"lean_right");break;case 71:this.$=e[t-3],o.addVertex(e[t-3],e[t-1],"lean_left");break;case 72:this.$=e[t],o.addVertex(e[t]);break;case 73:e[t-1].text=e[t],this.$=e[t-1];break;case 74:case 75:e[t-2].text=e[t-1],this.$=e[t-2];break;case 76:this.$=e[t];break;case 77:var L=o.destructLink(e[t],e[t-2]);this.$={type:L.type,stroke:L.stroke,length:L.length,text:e[t-1]};break;case 78:var L=o.destructLink(e[t],e[t-2]);this.$={type:L.type,stroke:L.stroke,length:L.length,text:e[t-1],id:e[t-3]};break;case 79:this.$={text:e[t],type:"text"};break;case 80:this.$={text:e[t-1].text+""+e[t],type:e[t-1].type};break;case 81:this.$={text:e[t],type:"string"};break;case 82:this.$={text:e[t],type:"markdown"};break;case 83:var L=o.destructLink(e[t]);this.$={type:L.type,stroke:L.stroke,length:L.length};break;case 84:var L=o.destructLink(e[t]);this.$={type:L.type,stroke:L.stroke,length:L.length,id:e[t-1]};break;case 85:this.$=e[t-1];break;case 86:this.$={text:e[t],type:"text"};break;case 87:this.$={text:e[t-1].text+""+e[t],type:e[t-1].type};break;case 88:this.$={text:e[t],type:"string"};break;case 89:case 104:this.$={text:e[t],type:"markdown"};break;case 101:this.$={text:e[t],type:"text"};break;case 102:this.$={text:e[t-1].text+""+e[t],type:e[t-1].type};break;case 103:this.$={text:e[t],type:"text"};break;case 105:this.$=e[t-4],o.addClass(e[t-2],e[t]);break;case 106:this.$=e[t-4],o.setClass(e[t-2],e[t]);break;case 107:case 115:this.$=e[t-1],o.setClickEvent(e[t-1],e[t]);break;case 108:case 116:this.$=e[t-3],o.setClickEvent(e[t-3],e[t-2]),o.setTooltip(e[t-3],e[t]);break;case 109:this.$=e[t-2],o.setClickEvent(e[t-2],e[t-1],e[t]);break;case 110:this.$=e[t-4],o.setClickEvent(e[t-4],e[t-3],e[t-2]),o.setTooltip(e[t-4],e[t]);break;case 111:this.$=e[t-2],o.setLink(e[t-2],e[t]);break;case 112:this.$=e[t-4],o.setLink(e[t-4],e[t-2]),o.setTooltip(e[t-4],e[t]);break;case 113:this.$=e[t-4],o.setLink(e[t-4],e[t-2],e[t]);break;case 114:this.$=e[t-6],o.setLink(e[t-6],e[t-4],e[t]),o.setTooltip(e[t-6],e[t-2]);break;case 117:this.$=e[t-1],o.setLink(e[t-1],e[t]);break;case 118:this.$=e[t-3],o.setLink(e[t-3],e[t-2]),o.setTooltip(e[t-3],e[t]);break;case 119:this.$=e[t-3],o.setLink(e[t-3],e[t-2],e[t]);break;case 120:this.$=e[t-5],o.setLink(e[t-5],e[t-4],e[t]),o.setTooltip(e[t-5],e[t-2]);break;case 121:this.$=e[t-4],o.addVertex(e[t-2],void 0,void 0,e[t]);break;case 122:this.$=e[t-4],o.updateLink([e[t-2]],e[t]);break;case 123:this.$=e[t-4],o.updateLink(e[t-2],e[t]);break;case 124:this.$=e[t-8],o.updateLinkInterpolate([e[t-6]],e[t-2]),o.updateLink([e[t-6]],e[t]);break;case 125:this.$=e[t-8],o.updateLinkInterpolate(e[t-6],e[t-2]),o.updateLink(e[t-6],e[t]);break;case 126:this.$=e[t-6],o.updateLinkInterpolate([e[t-4]],e[t]);break;case 127:this.$=e[t-6],o.updateLinkInterpolate(e[t-4],e[t]);break;case 128:case 130:this.$=[e[t]];break;case 129:case 131:e[t-2].push(e[t]),this.$=e[t-2];break;case 133:this.$=e[t-1]+e[t];break;case 181:this.$=e[t];break;case 182:this.$=e[t-1]+""+e[t];break;case 184:this.$=e[t-1]+""+e[t];break;case 185:this.$={stmt:"dir",value:"TB"};break;case 186:this.$={stmt:"dir",value:"BT"};break;case 187:this.$={stmt:"dir",value:"RL"};break;case 188:this.$={stmt:"dir",value:"LR"};break;case 189:this.$={stmt:"dir",value:"TD"};break}},"anonymous"),table:[{3:1,4:2,9:i,10:r,12:a},{1:[3]},s(n,l,{5:6}),{4:7,9:i,10:r,12:a},{4:8,9:i,10:r,12:a},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:p,9:c,10:g,11:u,20:17,22:18,23:19,24:20,25:21,26:22,27:A,33:24,34:v,36:b,38:m,42:28,43:39,44:S,45:40,47:41,60:B,84:b1,85:A1,86:P1,87:K,88:h1,89:V,102:I,105:w,106:R,109:N,111:G,113:42,114:P,115:O,116:M,121:M1,122:U1,123:z1,124:W1,125:j1},s(n,[2,9]),s(n,[2,10]),s(n,[2,11]),{8:[1,55],9:[1,56],10:d1,15:54,18:57},s(y,[2,3]),s(y,[2,4]),s(y,[2,5]),s(y,[2,6]),s(y,[2,7]),s(y,[2,8]),{8:$,9:e1,11:t1,21:59,41:60,72:64,75:[1,65],77:[1,67],78:[1,66]},{8:$,9:e1,11:t1,21:68},{8:$,9:e1,11:t1,21:69},{8:$,9:e1,11:t1,21:70},{8:$,9:e1,11:t1,21:71},{8:$,9:e1,11:t1,21:72},{8:$,9:e1,10:[1,73],11:t1,21:74},s(y,[2,36]),{35:[1,75]},{37:[1,76]},s(y,[2,39]),s(E1,[2,50],{18:77,39:78,10:d1,40:ne}),{10:[1,80]},{10:[1,81]},{10:[1,82]},{10:[1,83]},{14:C1,44:T1,60:S1,80:[1,87],89:y1,95:[1,84],97:[1,85],101:86,105:x1,106:F1,109:_1,111:B1,114:v1,115:L1,116:V1,120:88},s(y,[2,185]),s(y,[2,186]),s(y,[2,187]),s(y,[2,188]),s(y,[2,189]),s(k1,[2,51]),s(k1,[2,54],{46:[1,100]}),s(z,[2,72],{113:113,29:[1,101],44:S,48:[1,102],50:[1,103],52:[1,104],54:[1,105],56:[1,106],58:[1,107],60:B,63:[1,108],65:[1,109],67:[1,110],68:[1,111],70:[1,112],89:V,102:I,105:w,106:R,109:N,111:G,114:P,115:O,116:M}),s(q,[2,181]),s(q,[2,142]),s(q,[2,143]),s(q,[2,144]),s(q,[2,145]),s(q,[2,146]),s(q,[2,147]),s(q,[2,148]),s(q,[2,149]),s(q,[2,150]),s(q,[2,151]),s(q,[2,152]),s(n,[2,12]),s(n,[2,18]),s(n,[2,19]),{9:[1,114]},s(ue,[2,26],{18:115,10:d1}),s(y,[2,27]),{42:116,43:39,44:S,45:40,47:41,60:B,89:V,102:I,105:w,106:R,109:N,111:G,113:42,114:P,115:O,116:M},s(y,[2,40]),s(y,[2,41]),s(y,[2,42]),s(I1,[2,76],{73:117,62:[1,119],74:[1,118]}),{76:120,79:121,80:oe,81:le,116:K1,119:Y1},{75:[1,126],77:[1,127]},s(ce,[2,83]),s(y,[2,28]),s(y,[2,29]),s(y,[2,30]),s(y,[2,31]),s(y,[2,32]),{10:he,12:de,14:pe,27:fe,28:128,32:ge,44:be,60:Ae,75:ke,80:[1,130],81:[1,131],83:141,84:me,85:De,86:Ee,87:Ce,88:Te,89:Se,90:ye,91:129,105:xe,109:Fe,111:_e,114:Be,115:ve,116:Le},s(Q1,l,{5:154}),s(y,[2,37]),s(y,[2,38]),s(E1,[2,48],{44:Ve}),s(E1,[2,49],{18:156,10:d1,40:Ie}),s(k1,[2,44]),{44:S,47:158,60:B,89:V,102:I,105:w,106:R,109:N,111:G,113:42,114:P,115:O,116:M},{102:[1,159],103:160,105:[1,161]},{44:S,47:162,60:B,89:V,102:I,105:w,106:R,109:N,111:G,113:42,114:P,115:O,116:M},{44:S,47:163,60:B,89:V,102:I,105:w,106:R,109:N,111:G,113:42,114:P,115:O,116:M},s(_,[2,107],{10:[1,164],96:[1,165]}),{80:[1,166]},s(_,[2,115],{120:168,10:[1,167],14:C1,44:T1,60:S1,89:y1,105:x1,106:F1,109:_1,111:B1,114:v1,115:L1,116:V1}),s(_,[2,117],{10:[1,169]}),s(H,[2,183]),s(H,[2,170]),s(H,[2,171]),s(H,[2,172]),s(H,[2,173]),s(H,[2,174]),s(H,[2,175]),s(H,[2,176]),s(H,[2,177]),s(H,[2,178]),s(H,[2,179]),s(H,[2,180]),{44:S,47:170,60:B,89:V,102:I,105:w,106:R,109:N,111:G,113:42,114:P,115:O,116:M},{30:171,67:D,80:W,81:j,82:172,116:E,117:C,118:T},{30:179,67:D,80:W,81:j,82:172,116:E,117:C,118:T},{30:181,50:[1,180],67:D,80:W,81:j,82:172,116:E,117:C,118:T},{30:182,67:D,80:W,81:j,82:172,116:E,117:C,118:T},{30:183,67:D,80:W,81:j,82:172,116:E,117:C,118:T},{30:184,67:D,80:W,81:j,82:172,116:E,117:C,118:T},{109:[1,185]},{30:186,67:D,80:W,81:j,82:172,116:E,117:C,118:T},{30:187,65:[1,188],67:D,80:W,81:j,82:172,116:E,117:C,118:T},{30:189,67:D,80:W,81:j,82:172,116:E,117:C,118:T},{30:190,67:D,80:W,81:j,82:172,116:E,117:C,118:T},{30:191,67:D,80:W,81:j,82:172,116:E,117:C,118:T},s(q,[2,182]),s(n,[2,20]),s(ue,[2,25]),s(E1,[2,46],{39:192,18:193,10:d1,40:ne}),s(I1,[2,73],{10:[1,194]}),{10:[1,195]},{30:196,67:D,80:W,81:j,82:172,116:E,117:C,118:T},{77:[1,197],79:198,116:K1,119:Y1},s(w1,[2,79]),s(w1,[2,81]),s(w1,[2,82]),s(w1,[2,168]),s(w1,[2,169]),{76:199,79:121,80:oe,81:le,116:K1,119:Y1},s(ce,[2,84]),{8:$,9:e1,10:he,11:t1,12:de,14:pe,21:201,27:fe,29:[1,200],32:ge,44:be,60:Ae,75:ke,83:141,84:me,85:De,86:Ee,87:Ce,88:Te,89:Se,90:ye,91:202,105:xe,109:Fe,111:_e,114:Be,115:ve,116:Le},s(x,[2,101]),s(x,[2,103]),s(x,[2,104]),s(x,[2,157]),s(x,[2,158]),s(x,[2,159]),s(x,[2,160]),s(x,[2,161]),s(x,[2,162]),s(x,[2,163]),s(x,[2,164]),s(x,[2,165]),s(x,[2,166]),s(x,[2,167]),s(x,[2,90]),s(x,[2,91]),s(x,[2,92]),s(x,[2,93]),s(x,[2,94]),s(x,[2,95]),s(x,[2,96]),s(x,[2,97]),s(x,[2,98]),s(x,[2,99]),s(x,[2,100]),{6:11,7:12,8:p,9:c,10:g,11:u,20:17,22:18,23:19,24:20,25:21,26:22,27:A,32:[1,203],33:24,34:v,36:b,38:m,42:28,43:39,44:S,45:40,47:41,60:B,84:b1,85:A1,86:P1,87:K,88:h1,89:V,102:I,105:w,106:R,109:N,111:G,113:42,114:P,115:O,116:M,121:M1,122:U1,123:z1,124:W1,125:j1},{10:d1,18:204},{44:[1,205]},s(k1,[2,43]),{10:[1,206],44:S,60:B,89:V,102:I,105:w,106:R,109:N,111:G,113:113,114:P,115:O,116:M},{10:[1,207]},{10:[1,208],106:[1,209]},s(we,[2,128]),{10:[1,210],44:S,60:B,89:V,102:I,105:w,106:R,109:N,111:G,113:113,114:P,115:O,116:M},{10:[1,211],44:S,60:B,89:V,102:I,105:w,106:R,109:N,111:G,113:113,114:P,115:O,116:M},{80:[1,212]},s(_,[2,109],{10:[1,213]}),s(_,[2,111],{10:[1,214]}),{80:[1,215]},s(H,[2,184]),{80:[1,216],98:[1,217]},s(k1,[2,55],{113:113,44:S,60:B,89:V,102:I,105:w,106:R,109:N,111:G,114:P,115:O,116:M}),{31:[1,218],67:D,82:219,116:E,117:C,118:T},s(p1,[2,86]),s(p1,[2,88]),s(p1,[2,89]),s(p1,[2,153]),s(p1,[2,154]),s(p1,[2,155]),s(p1,[2,156]),{49:[1,220],67:D,82:219,116:E,117:C,118:T},{30:221,67:D,80:W,81:j,82:172,116:E,117:C,118:T},{51:[1,222],67:D,82:219,116:E,117:C,118:T},{53:[1,223],67:D,82:219,116:E,117:C,118:T},{55:[1,224],67:D,82:219,116:E,117:C,118:T},{57:[1,225],67:D,82:219,116:E,117:C,118:T},{60:[1,226]},{64:[1,227],67:D,82:219,116:E,117:C,118:T},{66:[1,228],67:D,82:219,116:E,117:C,118:T},{30:229,67:D,80:W,81:j,82:172,116:E,117:C,118:T},{31:[1,230],67:D,82:219,116:E,117:C,118:T},{67:D,69:[1,231],71:[1,232],82:219,116:E,117:C,118:T},{67:D,69:[1,234],71:[1,233],82:219,116:E,117:C,118:T},s(E1,[2,45],{18:156,10:d1,40:Ie}),s(E1,[2,47],{44:Ve}),s(I1,[2,75]),s(I1,[2,74]),{62:[1,235],67:D,82:219,116:E,117:C,118:T},s(I1,[2,77]),s(w1,[2,80]),{77:[1,236],79:198,116:K1,119:Y1},{30:237,67:D,80:W,81:j,82:172,116:E,117:C,118:T},s(Q1,l,{5:238}),s(x,[2,102]),s(y,[2,35]),{43:239,44:S,45:40,47:41,60:B,89:V,102:I,105:w,106:R,109:N,111:G,113:42,114:P,115:O,116:M},{10:d1,18:240},{10:s1,60:i1,84:r1,92:241,105:a1,107:242,108:243,109:n1,110:u1,111:o1,112:l1},{10:s1,60:i1,84:r1,92:252,104:[1,253],105:a1,107:242,108:243,109:n1,110:u1,111:o1,112:l1},{10:s1,60:i1,84:r1,92:254,104:[1,255],105:a1,107:242,108:243,109:n1,110:u1,111:o1,112:l1},{105:[1,256]},{10:s1,60:i1,84:r1,92:257,105:a1,107:242,108:243,109:n1,110:u1,111:o1,112:l1},{44:S,47:258,60:B,89:V,102:I,105:w,106:R,109:N,111:G,113:42,114:P,115:O,116:M},s(_,[2,108]),{80:[1,259]},{80:[1,260],98:[1,261]},s(_,[2,116]),s(_,[2,118],{10:[1,262]}),s(_,[2,119]),s(z,[2,56]),s(p1,[2,87]),s(z,[2,57]),{51:[1,263],67:D,82:219,116:E,117:C,118:T},s(z,[2,64]),s(z,[2,59]),s(z,[2,60]),s(z,[2,61]),{109:[1,264]},s(z,[2,63]),s(z,[2,65]),{66:[1,265],67:D,82:219,116:E,117:C,118:T},s(z,[2,67]),s(z,[2,68]),s(z,[2,70]),s(z,[2,69]),s(z,[2,71]),s([10,44,60,89,102,105,106,109,111,114,115,116],[2,85]),s(I1,[2,78]),{31:[1,266],67:D,82:219,116:E,117:C,118:T},{6:11,7:12,8:p,9:c,10:g,11:u,20:17,22:18,23:19,24:20,25:21,26:22,27:A,32:[1,267],33:24,34:v,36:b,38:m,42:28,43:39,44:S,45:40,47:41,60:B,84:b1,85:A1,86:P1,87:K,88:h1,89:V,102:I,105:w,106:R,109:N,111:G,113:42,114:P,115:O,116:M,121:M1,122:U1,123:z1,124:W1,125:j1},s(k1,[2,53]),{43:268,44:S,45:40,47:41,60:B,89:V,102:I,105:w,106:R,109:N,111:G,113:42,114:P,115:O,116:M},s(_,[2,121],{106:R1}),s(Re,[2,130],{108:270,10:s1,60:i1,84:r1,105:a1,109:n1,110:u1,111:o1,112:l1}),s(Z,[2,132]),s(Z,[2,134]),s(Z,[2,135]),s(Z,[2,136]),s(Z,[2,137]),s(Z,[2,138]),s(Z,[2,139]),s(Z,[2,140]),s(Z,[2,141]),s(_,[2,122],{106:R1}),{10:[1,271]},s(_,[2,123],{106:R1}),{10:[1,272]},s(we,[2,129]),s(_,[2,105],{106:R1}),s(_,[2,106],{113:113,44:S,60:B,89:V,102:I,105:w,106:R,109:N,111:G,114:P,115:O,116:M}),s(_,[2,110]),s(_,[2,112],{10:[1,273]}),s(_,[2,113]),{98:[1,274]},{51:[1,275]},{62:[1,276]},{66:[1,277]},{8:$,9:e1,11:t1,21:278},s(y,[2,34]),s(k1,[2,52]),{10:s1,60:i1,84:r1,105:a1,107:279,108:243,109:n1,110:u1,111:o1,112:l1},s(Z,[2,133]),{14:C1,44:T1,60:S1,89:y1,101:280,105:x1,106:F1,109:_1,111:B1,114:v1,115:L1,116:V1,120:88},{14:C1,44:T1,60:S1,89:y1,101:281,105:x1,106:F1,109:_1,111:B1,114:v1,115:L1,116:V1,120:88},{98:[1,282]},s(_,[2,120]),s(z,[2,58]),{30:283,67:D,80:W,81:j,82:172,116:E,117:C,118:T},s(z,[2,66]),s(Q1,l,{5:284}),s(Re,[2,131],{108:270,10:s1,60:i1,84:r1,105:a1,109:n1,110:u1,111:o1,112:l1}),s(_,[2,126],{120:168,10:[1,285],14:C1,44:T1,60:S1,89:y1,105:x1,106:F1,109:_1,111:B1,114:v1,115:L1,116:V1}),s(_,[2,127],{120:168,10:[1,286],14:C1,44:T1,60:S1,89:y1,105:x1,106:F1,109:_1,111:B1,114:v1,115:L1,116:V1}),s(_,[2,114]),{31:[1,287],67:D,82:219,116:E,117:C,118:T},{6:11,7:12,8:p,9:c,10:g,11:u,20:17,22:18,23:19,24:20,25:21,26:22,27:A,32:[1,288],33:24,34:v,36:b,38:m,42:28,43:39,44:S,45:40,47:41,60:B,84:b1,85:A1,86:P1,87:K,88:h1,89:V,102:I,105:w,106:R,109:N,111:G,113:42,114:P,115:O,116:M,121:M1,122:U1,123:z1,124:W1,125:j1},{10:s1,60:i1,84:r1,92:289,105:a1,107:242,108:243,109:n1,110:u1,111:o1,112:l1},{10:s1,60:i1,84:r1,92:290,105:a1,107:242,108:243,109:n1,110:u1,111:o1,112:l1},s(z,[2,62]),s(y,[2,33]),s(_,[2,124],{106:R1}),s(_,[2,125],{106:R1})],defaultActions:{},parseError:k(function(h,d){if(d.recoverable)this.trace(h);else{var f=new Error(h);throw f.hash=d,f}},"parseError"),parse:k(function(h){var d=this,f=[0],o=[],F=[null],e=[],O1=this.table,t="",L=0,Ne=0,Ke=2,Ge=1,Ye=e.slice.call(arguments,1),U=Object.create(this.lexer),m1={yy:{}};for(var Z1 in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Z1)&&(m1.yy[Z1]=this.yy[Z1]);U.setInput(h,m1.yy),m1.yy.lexer=U,m1.yy.parser=this,typeof U.yylloc>"u"&&(U.yylloc={});var $1=U.yylloc;e.push($1);var qe=U.options&&U.options.ranges;typeof m1.yy.parseError=="function"?this.parseError=m1.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function He(X){f.length=f.length-2*X,F.length=F.length-X,e.length=e.length-X}k(He,"popStack");function Pe(){var X;return X=o.pop()||U.lex()||Ge,typeof X!="number"&&(X instanceof Array&&(o=X,X=o.pop()),X=d.symbols_[X]||X),X}k(Pe,"lex");for(var Y,D1,Q,ee,N1={},H1,c1,Oe,X1;;){if(D1=f[f.length-1],this.defaultActions[D1]?Q=this.defaultActions[D1]:((Y===null||typeof Y>"u")&&(Y=Pe()),Q=O1[D1]&&O1[D1][Y]),typeof Q>"u"||!Q.length||!Q[0]){var te="";X1=[];for(H1 in O1[D1])this.terminals_[H1]&&H1>Ke&&X1.push("'"+this.terminals_[H1]+"'");U.showPosition?te="Parse error on line "+(L+1)+`:
10
+ `+U.showPosition()+`
11
+ Expecting `+X1.join(", ")+", got '"+(this.terminals_[Y]||Y)+"'":te="Parse error on line "+(L+1)+": Unexpected "+(Y==Ge?"end of input":"'"+(this.terminals_[Y]||Y)+"'"),this.parseError(te,{text:U.match,token:this.terminals_[Y]||Y,line:U.yylineno,loc:$1,expected:X1})}if(Q[0]instanceof Array&&Q.length>1)throw new Error("Parse Error: multiple actions possible at state: "+D1+", token: "+Y);switch(Q[0]){case 1:f.push(Y),F.push(U.yytext),e.push(U.yylloc),f.push(Q[1]),Y=null,Ne=U.yyleng,t=U.yytext,L=U.yylineno,$1=U.yylloc;break;case 2:if(c1=this.productions_[Q[1]][1],N1.$=F[F.length-c1],N1._$={first_line:e[e.length-(c1||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(c1||1)].first_column,last_column:e[e.length-1].last_column},qe&&(N1._$.range=[e[e.length-(c1||1)].range[0],e[e.length-1].range[1]]),ee=this.performAction.apply(N1,[t,Ne,L,m1.yy,Q[1],F,e].concat(Ye)),typeof ee<"u")return ee;c1&&(f=f.slice(0,-1*c1*2),F=F.slice(0,-1*c1),e=e.slice(0,-1*c1)),f.push(this.productions_[Q[1]][0]),F.push(N1.$),e.push(N1._$),Oe=O1[f[f.length-2]][f[f.length-1]],f.push(Oe);break;case 3:return!0}}return!0},"parse")},je=(function(){var f1={EOF:1,parseError:k(function(d,f){if(this.yy.parser)this.yy.parser.parseError(d,f);else throw new Error(d)},"parseError"),setInput:k(function(h,d){return this.yy=d||this.yy||{},this._input=h,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:k(function(){var h=this._input[0];this.yytext+=h,this.yyleng++,this.offset++,this.match+=h,this.matched+=h;var d=h.match(/(?:\r\n?|\n).*/g);return d?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),h},"input"),unput:k(function(h){var d=h.length,f=h.split(/(?:\r\n?|\n)/g);this._input=h+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-d),this.offset-=d;var o=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),f.length-1&&(this.yylineno-=f.length-1);var F=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:f?(f.length===o.length?this.yylloc.first_column:0)+o[o.length-f.length].length-f[0].length:this.yylloc.first_column-d},this.options.ranges&&(this.yylloc.range=[F[0],F[0]+this.yyleng-d]),this.yyleng=this.yytext.length,this},"unput"),more:k(function(){return this._more=!0,this},"more"),reject:k(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
12
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:k(function(h){this.unput(this.match.slice(h))},"less"),pastInput:k(function(){var h=this.matched.substr(0,this.matched.length-this.match.length);return(h.length>20?"...":"")+h.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:k(function(){var h=this.match;return h.length<20&&(h+=this._input.substr(0,20-h.length)),(h.substr(0,20)+(h.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:k(function(){var h=this.pastInput(),d=new Array(h.length+1).join("-");return h+this.upcomingInput()+`
13
+ `+d+"^"},"showPosition"),test_match:k(function(h,d){var f,o,F;if(this.options.backtrack_lexer&&(F={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(F.yylloc.range=this.yylloc.range.slice(0))),o=h[0].match(/(?:\r\n?|\n).*/g),o&&(this.yylineno+=o.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:o?o[o.length-1].length-o[o.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+h[0].length},this.yytext+=h[0],this.match+=h[0],this.matches=h,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(h[0].length),this.matched+=h[0],f=this.performAction.call(this,this.yy,this,d,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),f)return f;if(this._backtrack){for(var e in F)this[e]=F[e];return!1}return!1},"test_match"),next:k(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var h,d,f,o;this._more||(this.yytext="",this.match="");for(var F=this._currentRules(),e=0;e<F.length;e++)if(f=this._input.match(this.rules[F[e]]),f&&(!d||f[0].length>d[0].length)){if(d=f,o=e,this.options.backtrack_lexer){if(h=this.test_match(f,F[e]),h!==!1)return h;if(this._backtrack){d=!1;continue}else return!1}else if(!this.options.flex)break}return d?(h=this.test_match(d,F[o]),h!==!1?h:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
14
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:k(function(){var d=this.next();return d||this.lex()},"lex"),begin:k(function(d){this.conditionStack.push(d)},"begin"),popState:k(function(){var d=this.conditionStack.length-1;return d>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:k(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:k(function(d){return d=this.conditionStack.length-1-Math.abs(d||0),d>=0?this.conditionStack[d]:"INITIAL"},"topState"),pushState:k(function(d){this.begin(d)},"pushState"),stateStackSize:k(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:k(function(d,f,o,F){switch(o){case 0:return this.begin("acc_title"),34;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),36;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return this.pushState("shapeData"),f.yytext="",40;case 8:return this.pushState("shapeDataStr"),40;case 9:return this.popState(),40;case 10:const e=/\n\s*/g;return f.yytext=f.yytext.replace(e,"<br/>"),40;case 11:return 40;case 12:this.popState();break;case 13:this.begin("callbackname");break;case 14:this.popState();break;case 15:this.popState(),this.begin("callbackargs");break;case 16:return 95;case 17:this.popState();break;case 18:return 96;case 19:return"MD_STR";case 20:this.popState();break;case 21:this.begin("md_string");break;case 22:return"STR";case 23:this.popState();break;case 24:this.pushState("string");break;case 25:return 84;case 26:return 102;case 27:return 85;case 28:return 104;case 29:return 86;case 30:return 87;case 31:return 97;case 32:this.begin("click");break;case 33:this.popState();break;case 34:return 88;case 35:return d.lex.firstGraph()&&this.begin("dir"),12;case 36:return d.lex.firstGraph()&&this.begin("dir"),12;case 37:return d.lex.firstGraph()&&this.begin("dir"),12;case 38:return d.lex.firstGraph()&&this.begin("dir"),12;case 39:return 27;case 40:return 32;case 41:return 98;case 42:return 98;case 43:return 98;case 44:return 98;case 45:return this.popState(),13;case 46:return this.popState(),14;case 47:return this.popState(),14;case 48:return this.popState(),14;case 49:return this.popState(),14;case 50:return this.popState(),14;case 51:return this.popState(),14;case 52:return this.popState(),14;case 53:return this.popState(),14;case 54:return this.popState(),14;case 55:return this.popState(),14;case 56:return 121;case 57:return 122;case 58:return 123;case 59:return 124;case 60:return 125;case 61:return 78;case 62:return 105;case 63:return 111;case 64:return 46;case 65:return 60;case 66:return 44;case 67:return 8;case 68:return 106;case 69:return 115;case 70:return this.popState(),77;case 71:return this.pushState("edgeText"),75;case 72:return 119;case 73:return this.popState(),77;case 74:return this.pushState("thickEdgeText"),75;case 75:return 119;case 76:return this.popState(),77;case 77:return this.pushState("dottedEdgeText"),75;case 78:return 119;case 79:return 77;case 80:return this.popState(),53;case 81:return"TEXT";case 82:return this.pushState("ellipseText"),52;case 83:return this.popState(),55;case 84:return this.pushState("text"),54;case 85:return this.popState(),57;case 86:return this.pushState("text"),56;case 87:return 58;case 88:return this.pushState("text"),67;case 89:return this.popState(),64;case 90:return this.pushState("text"),63;case 91:return this.popState(),49;case 92:return this.pushState("text"),48;case 93:return this.popState(),69;case 94:return this.popState(),71;case 95:return 117;case 96:return this.pushState("trapText"),68;case 97:return this.pushState("trapText"),70;case 98:return 118;case 99:return 67;case 100:return 90;case 101:return"SEP";case 102:return 89;case 103:return 115;case 104:return 111;case 105:return 44;case 106:return 109;case 107:return 114;case 108:return 116;case 109:return this.popState(),62;case 110:return this.pushState("text"),62;case 111:return this.popState(),51;case 112:return this.pushState("text"),50;case 113:return this.popState(),31;case 114:return this.pushState("text"),29;case 115:return this.popState(),66;case 116:return this.pushState("text"),65;case 117:return"TEXT";case 118:return"QUOTE";case 119:return 9;case 120:return 10;case 121:return 11}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:@\{)/,/^(?:["])/,/^(?:["])/,/^(?:[^\"]+)/,/^(?:[^}^"]+)/,/^(?:\})/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["][`])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:["])/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s])/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:flowchart-elk\b)/,/^(?:swimlane-beta\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:.*direction\s+TD[^\n]*)/,/^(?:[^\s\"]+@(?=[^\{\"]))/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:[^-]|-(?!-)+)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:[^=]|=(?!))/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:[^\.]|\.(?!))/,/^(?:\s*~~[\~]+\s*)/,/^(?:[-/\)][\)])/,/^(?:[^\(\)\[\]\{\}]|!\)+)/,/^(?:\(-)/,/^(?:\]\))/,/^(?:\(\[)/,/^(?:\]\])/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:>)/,/^(?:\)\])/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\(\(\()/,/^(?:[\\(?=\])][\]])/,/^(?:\/(?=\])\])/,/^(?:\/(?!\])|\\(?!\])|[^\\\[\]\(\)\{\}\/]+)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:\*)/,/^(?:#)/,/^(?:&)/,/^(?:([A-Za-z0-9!"\#$%&'*+\.`?\\_\/]|-(?=[^\>\-\.])|(?!))+)/,/^(?:-)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\|)/,/^(?:\))/,/^(?:\()/,/^(?:\])/,/^(?:\[)/,/^(?:(\}))/,/^(?:\{)/,/^(?:[^\[\]\(\)\{\}\|\"]+)/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{shapeDataEndBracket:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},shapeDataStr:{rules:[9,10,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},shapeData:{rules:[8,11,12,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},callbackargs:{rules:[17,18,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},callbackname:{rules:[14,15,16,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},href:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},click:{rules:[21,24,33,34,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},dottedEdgeText:{rules:[21,24,76,78,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},thickEdgeText:{rules:[21,24,73,75,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},edgeText:{rules:[21,24,70,72,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},trapText:{rules:[21,24,79,82,84,86,90,92,93,94,95,96,97,110,112,114,116],inclusive:!1},ellipseText:{rules:[21,24,79,80,81,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},text:{rules:[21,24,79,82,83,84,85,86,89,90,91,92,96,97,109,110,111,112,113,114,115,116,117],inclusive:!1},vertex:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},dir:{rules:[21,24,45,46,47,48,49,50,51,52,53,54,55,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_descr_multiline:{rules:[5,6,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_descr:{rules:[3,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_title:{rules:[1,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},md_string:{rules:[19,20,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},string:{rules:[21,22,23,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},INITIAL:{rules:[0,2,4,7,13,21,24,25,26,27,28,29,30,31,32,35,36,37,38,39,40,41,42,43,44,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,73,74,76,77,79,82,84,86,87,88,90,92,96,97,98,99,100,101,102,103,104,105,106,107,108,110,112,114,116,118,119,120,121],inclusive:!0}}};return f1})();J1.lexer=je;function q1(){this.yy={}}return k(q1,"Parser"),q1.prototype=J1,J1.Parser=q1,new q1})();ae.parser=ae;var Ue=ae,ze=Object.assign({},Ue);ze.parse=s=>{const i=s.replace(/}\s*\n/g,`}
15
+ `);return Ue.parse(i)};var Ct=ze,Tt=k((s,i)=>{const r=bt,a=r(s,"r"),n=r(s,"g"),l=r(s,"b");return ft(a,n,l,i)},"fade"),St=k(s=>`.label {
16
+ font-family: ${s.fontFamily};
17
+ color: ${s.nodeTextColor||s.textColor};
18
+ }
19
+ .cluster-label text {
20
+ fill: ${s.titleColor};
21
+ }
22
+ .cluster-label span {
23
+ color: ${s.titleColor};
24
+ }
25
+ .cluster-label span p {
26
+ background-color: transparent;
27
+ }
28
+
29
+ .label text,span {
30
+ fill: ${s.nodeTextColor||s.textColor};
31
+ color: ${s.nodeTextColor||s.textColor};
32
+ }
33
+
34
+ .node rect,
35
+ .node circle,
36
+ .node ellipse,
37
+ .node polygon,
38
+ .node path {
39
+ fill: ${s.mainBkg};
40
+ stroke: ${s.nodeBorder};
41
+ stroke-width: ${s.strokeWidth??1}px;
42
+ }
43
+ .rough-node .label text , .node .label text, .image-shape .label, .icon-shape .label {
44
+ text-anchor: middle;
45
+ }
46
+
47
+ .node .katex path {
48
+ fill: #000;
49
+ stroke: #000;
50
+ stroke-width: 1px;
51
+ }
52
+
53
+ .rough-node .label,.node .label, .image-shape .label, .icon-shape .label {
54
+ text-align: center;
55
+ }
56
+ .node.clickable {
57
+ cursor: pointer;
58
+ }
59
+
60
+
61
+ .root .anchor path {
62
+ fill: ${s.lineColor} !important;
63
+ stroke-width: 0;
64
+ stroke: ${s.lineColor};
65
+ }
66
+
67
+ .arrowheadPath {
68
+ fill: ${s.arrowheadColor};
69
+ }
70
+
71
+ .edgePath .path {
72
+ stroke: ${s.lineColor};
73
+ stroke-width: ${s.strokeWidth??2}px;
74
+ }
75
+
76
+ .flowchart-link {
77
+ stroke: ${s.lineColor};
78
+ fill: none;
79
+ }
80
+
81
+ .edgeLabel {
82
+ background-color: ${s.edgeLabelBackground};
83
+ p {
84
+ background-color: ${s.edgeLabelBackground};
85
+ }
86
+ rect {
87
+ opacity: 0.5;
88
+ background-color: ${s.edgeLabelBackground};
89
+ fill: ${s.edgeLabelBackground};
90
+ }
91
+ text-align: center;
92
+ }
93
+
94
+ /* For html labels only */
95
+ .labelBkg {
96
+ background-color: ${Tt(s.edgeLabelBackground,.5)};
97
+ // background-color:
98
+ }
99
+
100
+ .cluster rect {
101
+ fill: ${s.clusterBkg};
102
+ stroke: ${s.clusterBorder};
103
+ stroke-width: 1px;
104
+ }
105
+
106
+ .cluster text {
107
+ fill: ${s.titleColor};
108
+ }
109
+
110
+ .cluster span {
111
+ color: ${s.titleColor};
112
+ }
113
+ /* .cluster div {
114
+ color: ${s.titleColor};
115
+ } */
116
+
117
+ div.mermaidTooltip {
118
+ position: absolute;
119
+ text-align: center;
120
+ max-width: 200px;
121
+ padding: 2px;
122
+ font-family: ${s.fontFamily};
123
+ font-size: 12px;
124
+ background: ${s.tertiaryColor};
125
+ border: 1px solid ${s.border2};
126
+ border-radius: 2px;
127
+ pointer-events: none;
128
+ z-index: 100;
129
+ }
130
+
131
+ .flowchartTitleText {
132
+ text-anchor: middle;
133
+ font-size: 18px;
134
+ fill: ${s.textColor};
135
+ }
136
+
137
+ rect.text {
138
+ fill: none;
139
+ stroke-width: 0;
140
+ }
141
+
142
+ .icon-shape, .image-shape {
143
+ background-color: ${s.edgeLabelBackground};
144
+ p {
145
+ background-color: ${s.edgeLabelBackground};
146
+ padding: 2px;
147
+ }
148
+ .label rect {
149
+ opacity: 0.5;
150
+ background-color: ${s.edgeLabelBackground};
151
+ fill: ${s.edgeLabelBackground};
152
+ }
153
+ text-align: center;
154
+ }
155
+ ${Xe()}
156
+ `,"getStyles"),yt=St,We=k(({defaultLayout:s,styles:i=yt}={})=>({parser:Ct,get db(){return new kt},renderer:Et,styles:i,init:k(r=>{r.flowchart||(r.flowchart={});const a=Ze().layout??s??r.layout;a&&Me({layout:a}),r.flowchart.arrowMarkerAbsolute=r.arrowMarkerAbsolute,Me({flowchart:{arrowMarkerAbsolute:r.arrowMarkerAbsolute}})},"init")}),"createFlowDiagram"),xt=We();const wt=Object.freeze(Object.defineProperty({__proto__:null,createFlowDiagram:We,diagram:xt},Symbol.toStringTag,{value:"Module"}));export{We as c,wt as f,yt as s};