@pi-outpost/embed 0.15.0 → 0.16.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (344) hide show
  1. package/dist/PdfViewer-BEdoeHbS.cjs +1 -0
  2. package/dist/{PdfViewer-BHP5lV-o.js → PdfViewer-DvoTT6jM.js} +5 -5
  3. package/dist/{abnfDiagram-N423BO3Z-WMOVzCba.js → abnfDiagram-VCTEODGH-CYuCmqs8.js} +6 -6
  4. package/dist/abnfDiagram-VCTEODGH-SjZtzoAs.cjs +1 -0
  5. package/dist/{arc-BBnpgwVQ.js → arc-CtDF59mU.js} +8 -6
  6. package/dist/arc-Dh2Zrypi.cjs +1 -0
  7. package/dist/architecture-7GRP2DOG-BtgYGXkq.cjs +1 -0
  8. package/dist/architecture-7GRP2DOG-DBQ9eYgM.js +3 -0
  9. package/dist/{architectureDiagram-T3A2C74G-BH-F8FzB.js → architectureDiagram-5GKGNRK7-D2-hmLgN.js} +327 -318
  10. package/dist/architectureDiagram-5GKGNRK7-wrDPdf3y.cjs +36 -0
  11. package/dist/blockDiagram-OSKFZWR5-Boo8WJyt.cjs +129 -0
  12. package/dist/blockDiagram-OSKFZWR5-Bvi4xQOy.js +1922 -0
  13. package/dist/{browser-CynjNfkw.js → browser-BmmG9yeb.js} +40 -34
  14. package/dist/{browser-CAyUayTx.cjs → browser-CUQnQIhV.cjs} +5 -5
  15. package/dist/c-AHDGPWiJ.cjs +1 -0
  16. package/dist/{c-Cw4FsAeJ.js → c-BCMbpktW.js} +42 -31
  17. package/dist/c4Diagram-7LVT6UL2-BCrC0RQo.cjs +38 -0
  18. package/dist/{c4Diagram-5PPSVZJV-Cfnl6tZM.js → c4Diagram-7LVT6UL2-CU4tNaf1.js} +751 -703
  19. package/dist/{channel-Bq-0ENlK.js → channel-Cuipqk56.js} +1 -1
  20. package/dist/channel-DcrLLvcO.cjs +1 -0
  21. package/dist/{chunk-JQJVKLGR-CZorbEP3.js → chunk-3NF5O7KM-B-2znsHr.js} +155 -115
  22. package/dist/chunk-3NF5O7KM-B-DpUW2r.cjs +168 -0
  23. package/dist/chunk-4HAMMTFA-CtkrBT7X.cjs +62 -0
  24. package/dist/chunk-4HAMMTFA-dRm_HqMI.js +4188 -0
  25. package/dist/chunk-75Z2AOVW-DOXS9ORa.cjs +2 -0
  26. package/dist/{chunk-NSK5VX7P-DPxIxDdV.js → chunk-75Z2AOVW-Eg_bFxBJ.js} +60 -96
  27. package/dist/chunk-DU6HZSFF-3Hhp3Fo5.cjs +127 -0
  28. package/dist/{chunk-I66GZJ75-DexfhZwA.js → chunk-DU6HZSFF-CaHy-FdL.js} +527 -478
  29. package/dist/{chunk-2GRJ4B5K-DzaxUd3W.cjs → chunk-F27PBJKO-3UPgzIlN.cjs} +1 -1
  30. package/dist/{chunk-2GRJ4B5K-DXwE-yr5.js → chunk-F27PBJKO-BriqLvNp.js} +4 -4
  31. package/dist/{chunk-KEIR6QF5-BVnxrdHo.js → chunk-FOHPRMQF-BNNbqxGX.js} +424 -356
  32. package/dist/chunk-FOHPRMQF-tmTlwTeH.cjs +161 -0
  33. package/dist/chunk-GMAD6QVW-B6uvB_wz.cjs +72 -0
  34. package/dist/{chunk-WRU74C26-D4huAZcy.js → chunk-GMAD6QVW-DCCx2Rg1.js} +503 -267
  35. package/dist/chunk-GVQU2GXP-BRMv2gX3.js +37 -0
  36. package/dist/chunk-GVQU2GXP-iZT_vNLp.cjs +1 -0
  37. package/dist/{chunk-GF5L2VYU-BPBMCCz5.js → chunk-HLEWEB6X-DlG0X171.js} +16 -16
  38. package/dist/{chunk-GF5L2VYU-DgG-wovM.cjs → chunk-HLEWEB6X-aqFoPl02.cjs} +4 -4
  39. package/dist/chunk-L3NEJ4N5-DkoFQHrz.js +245 -0
  40. package/dist/chunk-L3NEJ4N5-vW3qRjIb.cjs +1 -0
  41. package/dist/{chunk-7Z6QIM7H-CIoK8R3m.js → chunk-OSK3NFVY-CxjvZYNR.js} +232 -150
  42. package/dist/chunk-OSK3NFVY-DU2FGOlI.cjs +10 -0
  43. package/dist/chunk-P2QGCYS3-DWeL9spl.cjs +1 -0
  44. package/dist/{chunk-W5SLKNZC-Djmw_p6f.js → chunk-P2QGCYS3-uCJfSNHC.js} +19 -19
  45. package/dist/{chunk-KBJHAD2P-CthZVYG5.cjs → chunk-POPQ4Y6H-BRQPB1-9.cjs} +1 -1
  46. package/dist/{chunk-KBJHAD2P-BlQyFndF.js → chunk-POPQ4Y6H-D2Z11lA3.js} +3 -3
  47. package/dist/{chunk-4I5QYGJK-LCSWSJfh.cjs → chunk-PWAF6VOD-CZZKCekP.cjs} +1 -1
  48. package/dist/{chunk-4I5QYGJK-JZmvuONC.js → chunk-PWAF6VOD-j4sFqhOF.js} +7 -9
  49. package/dist/{chunk-6Q2QTUOP-C5n08EA-.cjs → chunk-SVP7TREG-CTKSOFlx.cjs} +2 -2
  50. package/dist/{chunk-6Q2QTUOP-DvJxCxMM.js → chunk-SVP7TREG-CtJsmAIb.js} +4 -4
  51. package/dist/{chunk-XXDRQBXY-DsVp5qjg.js → chunk-XXDRQBXY-fOrVUHLI.js} +1 -1
  52. package/dist/{chunk-XXDRQBXY-gWcN0uCZ.cjs → chunk-XXDRQBXY-yMT3rT5Y.cjs} +1 -1
  53. package/dist/chunk-ZLD2IHE6-BZxKwfuv.cjs +231 -0
  54. package/dist/{chunk-5RXB4S5H-JthGygoA.js → chunk-ZLD2IHE6-tqumZV0E.js} +44 -48
  55. package/dist/classDiagram-CYGNFDIV-CQLOfBmz.cjs +1 -0
  56. package/dist/classDiagram-CYGNFDIV-DIu4rTyR.js +30 -0
  57. package/dist/classDiagram-v2-TLXNO2FR-BsYK4QnI.js +30 -0
  58. package/dist/classDiagram-v2-TLXNO2FR-CQLOfBmz.cjs +1 -0
  59. package/dist/{core-BO2hTFeF.js → core-B9pe29T7.js} +8 -7
  60. package/dist/core-BrupIPpc.cjs +3 -0
  61. package/dist/{cose-bilkent-JH36ORCC-BFo5zomD.js → cose-bilkent-JH36ORCC-1Ad4jvll.js} +65 -62
  62. package/dist/cose-bilkent-JH36ORCC-Cc2qvpLA.cjs +1 -0
  63. package/dist/{cpp-CeyO6lBG.js → cpp-CL2nTisp.js} +25 -14
  64. package/dist/cpp-DpAsh4uT.cjs +1 -0
  65. package/dist/{csharp-Ck6Fet_o.js → csharp-CK75iOSn.js} +37 -37
  66. package/dist/csharp-TOr_W-v9.cjs +1 -0
  67. package/dist/css-4wogsuks.cjs +1 -0
  68. package/dist/{css-ClSGJRju.js → css-DJr8nnnu.js} +6 -1
  69. package/dist/cynefin-OW5HDTMX-BmLJra-4.cjs +1 -0
  70. package/dist/cynefin-OW5HDTMX-CfYr_cVN.js +3 -0
  71. package/dist/{cynefinDiagram-MW4NZA55-CB4ZzMEN.js → cynefinDiagram-5FMLGOSQ-BSRTnQvp.js} +29 -23
  72. package/dist/cynefinDiagram-5FMLGOSQ-GvGZco52.cjs +62 -0
  73. package/dist/{cytoscape.esm-asYnbYTy.js → cytoscape.esm-Cq7KPj0t.js} +2480 -2480
  74. package/dist/cytoscape.esm-uHsEX1XI.cjs +321 -0
  75. package/dist/{dagre-BpqwxFKp.js → dagre-BMKbPnPh.js} +689 -456
  76. package/dist/dagre-EEW2OxRU.cjs +1 -0
  77. package/dist/dagre-OS7QT2EB-DFi6nnZc.cjs +4 -0
  78. package/dist/dagre-OS7QT2EB-DcpSzxsR.js +425 -0
  79. package/dist/{defaultLocale-up9-vqhM.js → defaultLocale-B4ncmkvI.js} +1 -4
  80. package/dist/defaultLocale-ybN1Vtvg.cjs +1 -0
  81. package/dist/diagram-S7CK7UJ4-BA67ZpiO.cjs +30 -0
  82. package/dist/{diagram-7IWD3JNH-Cschro8T.js → diagram-S7CK7UJ4-Cx2fQdp6.js} +39 -38
  83. package/dist/{diagram-UB23O5K3-D-yL2fvd.js → diagram-UQ7AKVKN-CvQH-Box.js} +12 -12
  84. package/dist/diagram-UQ7AKVKN-OteiyKD9.cjs +41 -0
  85. package/dist/{diagram-B4RE2ZJO-DKbKOwkP.cjs → diagram-VSXAHHWV-BjsZz1JJ.cjs} +1 -1
  86. package/dist/{diagram-B4RE2ZJO-B94mhDmV.js → diagram-VSXAHHWV-CCpCVOIq.js} +6 -6
  87. package/dist/diagram-VX7I27RA-Bx9fEhR0.cjs +24 -0
  88. package/dist/{diagram-Q27KOJAE-Cqn3IliP.js → diagram-VX7I27RA-HE5nQAXN.js} +64 -62
  89. package/dist/{diagram-LBJQPF4R-D0MEwBt6.js → diagram-Z3DM3KII-BEu4c4pP.js} +11 -11
  90. package/dist/diagram-Z3DM3KII-jy895UiZ.cjs +24 -0
  91. package/dist/{dist-D6LMt8nW.js → dist-Dtt9eY41.js} +1 -1
  92. package/dist/{dist-DNGlMOWd.cjs → dist-Dwv2VYAL.cjs} +1 -1
  93. package/dist/{ebnfDiagram-BXEA7PRR-B2HDWFYF.js → ebnfDiagram-PWID7BFC-B06rGL3A.js} +6 -6
  94. package/dist/ebnfDiagram-PWID7BFC-BQZKHpUr.cjs +1 -0
  95. package/dist/erDiagram-2YWLMYGG-CuEEIv1I.cjs +99 -0
  96. package/dist/{erDiagram-JOGREHBK-Badv_hu8.js → erDiagram-2YWLMYGG-IL4IhNXb.js} +1046 -807
  97. package/dist/eventmodeling-NTZA5JFV-D57pc07U.cjs +1 -0
  98. package/dist/eventmodeling-NTZA5JFV-DUbGOrrF.js +3 -0
  99. package/dist/flowDiagram-T62WH6J4-DdJo3Te1.js +16 -0
  100. package/dist/flowDiagram-T62WH6J4-YyzE7N5Z.cjs +1 -0
  101. package/dist/{ganttDiagram-PKOTCBZU-By0w7TmO.js → ganttDiagram-EL5Y4UJY-CIBhrOW6.js} +26 -36
  102. package/dist/ganttDiagram-EL5Y4UJY-PTWIufq8.cjs +292 -0
  103. package/dist/gitGraph-4MIJSDKK-CY4IuhXZ.js +3 -0
  104. package/dist/gitGraph-4MIJSDKK-D97vaDci.cjs +1 -0
  105. package/dist/{gitGraphDiagram-DS77QQ5N-B1uJYchG.js → gitGraphDiagram-WWUBYQGX-CjeedV4i.js} +16 -12
  106. package/dist/{gitGraphDiagram-DS77QQ5N-Fw8a66di.cjs → gitGraphDiagram-WWUBYQGX-D5yozoaq.cjs} +3 -3
  107. package/dist/{go-rg7jg1mu.js → go-B2E3I9E3.js} +4 -0
  108. package/dist/{go-D-pz-dmd.cjs → go-BDkypVKn.cjs} +1 -1
  109. package/dist/{graphlib-CkkG5MuS.cjs → graphlib-BaETKKSa.cjs} +1 -1
  110. package/dist/{graphlib-B0GbLif1.js → graphlib-CQa_B3rm.js} +5 -5
  111. package/dist/info-A6RAGUB7-Cx39sHYM.js +3 -0
  112. package/dist/info-A6RAGUB7-DT06-FB3.cjs +1 -0
  113. package/dist/{infoDiagram-6WML65LV-CkWm_KTB.js → infoDiagram-FKFFQAWI-BalzsRT4.js} +6 -6
  114. package/dist/infoDiagram-FKFFQAWI-NPtQF4vB.cjs +2 -0
  115. package/dist/init-BJdqMO10.cjs +1 -0
  116. package/dist/{init-CirqLVcp.js → init-CuXVI8k2.js} +1 -3
  117. package/dist/{ishikawaDiagram-WSZJBQD7-DTeFqC8L.js → ishikawaDiagram-5VMMS53U-BC2vrJSo.js} +14 -14
  118. package/dist/{ishikawaDiagram-WSZJBQD7-CQWHhozU.cjs → ishikawaDiagram-5VMMS53U-DN23jmFw.cjs} +3 -3
  119. package/dist/java-DFBMvIUR.cjs +1 -0
  120. package/dist/{java-HguKEfA2.js → java-T8Nr25pJ.js} +27 -22
  121. package/dist/{javascript-C8NCH8DE.js → javascript-CIP6I0eT.js} +6 -4
  122. package/dist/javascript-Gn0piXHk.cjs +1 -0
  123. package/dist/{journeyDiagram-NVQOT4AX-Cg6C3dFy.js → journeyDiagram-EYS64GPL-CLMBONXO.js} +14 -14
  124. package/dist/{journeyDiagram-NVQOT4AX-DLomv_vN.cjs → journeyDiagram-EYS64GPL-Co9rp-Q1.cjs} +3 -3
  125. package/dist/json-DOqjN5nI.js +42 -0
  126. package/dist/json-LMrXTXZM.cjs +1 -0
  127. package/dist/{kanban-definition-27J2QSJJ-B9Fog3W7.cjs → kanban-definition-UXKFOSKX-DzKPVjAq.cjs} +5 -5
  128. package/dist/{kanban-definition-27J2QSJJ-Bb7nb0gX.js → kanban-definition-UXKFOSKX-SNTHZo65.js} +31 -31
  129. package/dist/katex-CEF6MvLx.cjs +257 -0
  130. package/dist/katex-ohtLbxXc.js +21977 -0
  131. package/dist/{line-yqcJYv29.js → line-4_dF7rOW.js} +2 -2
  132. package/dist/{line-pOZ7Sdj7.cjs → line-D6gR53Af.cjs} +1 -1
  133. package/dist/{linear-CVhyaVzf.js → linear-C1gZJMVz.js} +8 -9
  134. package/dist/linear-Nt9BuHfn.cjs +1 -0
  135. package/dist/{markdown-CzgRofaE.js → markdown-BW-hB0s4.js} +2 -5
  136. package/dist/markdown-CTkHoGys.cjs +1 -0
  137. package/dist/{mermaid-parser.core-Cgsz0CdK.cjs → mermaid-parser.core-CBiDgMLi.cjs} +2 -2
  138. package/dist/{mermaid-parser.core-B8DQcCaz.js → mermaid-parser.core-DLNlSmfj.js} +31 -31
  139. package/dist/mermaid.core-B3QcBB1O.cjs +43 -0
  140. package/dist/mermaid.core-BIqYA7q2.js +3012 -0
  141. package/dist/{mindmap-definition-FAOFIHXS-9wa1P9NT.cjs → mindmap-definition-THT77NOG-Bo3D8RRT.cjs} +4 -4
  142. package/dist/{mindmap-definition-FAOFIHXS-DFG0Zs_1.js → mindmap-definition-THT77NOG-BtDuvAQ_.js} +27 -29
  143. package/dist/{ordinal-D0iNZ43g.cjs → ordinal-Bm_chml2.cjs} +1 -1
  144. package/dist/{ordinal-C1oQzsBn.js → ordinal-D3SPD7Kk.js} +2 -2
  145. package/dist/packet-AYTQ26CC-BGX2McoE.cjs +1 -0
  146. package/dist/packet-AYTQ26CC-IgkU2VYK.js +3 -0
  147. package/dist/path-DIS6ck99.cjs +1 -0
  148. package/dist/{path-mKa7UESy.js → path-PGqhG0Rz.js} +10 -11
  149. package/dist/{pdf-DyDm1M1B.js → pdf-B6zVkETi.js} +182 -220
  150. package/dist/pdf-cYqATYeW.cjs +54 -0
  151. package/dist/pegDiagram-XKGWAZYB-Cx-wZf4B.cjs +1 -0
  152. package/dist/{pegDiagram-VL7TDLO6-XOjprD-j.js → pegDiagram-XKGWAZYB-Ucd8o52_.js} +6 -6
  153. package/dist/{php-C9FOMGEA.js → php-Cn7gPoxt.js} +6 -0
  154. package/dist/{php-j6EhDZDE.cjs → php-DQmdBizx.cjs} +1 -1
  155. package/dist/pi-outpost-embed.cjs +62 -62
  156. package/dist/pi-outpost-embed.js +5192 -5152
  157. package/dist/pie-WAS4IAKB-CEyPj3UJ.cjs +1 -0
  158. package/dist/pie-WAS4IAKB-odE0A7fM.js +3 -0
  159. package/dist/pieDiagram-E7YTZNPT-BC-pW4cK.cjs +39 -0
  160. package/dist/{pieDiagram-7S7Q4E2Y-Cwe7fXgJ.js → pieDiagram-E7YTZNPT-DSx5wFMY.js} +20 -22
  161. package/dist/{python-DKAazMIE.js → python-BUfdXZqP.js} +6 -6
  162. package/dist/python-CrsffQw-.cjs +1 -0
  163. package/dist/{quadrantDiagram-CIZ2JOQS-CbaMHmYB.js → quadrantDiagram-AXDQQJYC-D8Y50xmh.js} +11 -11
  164. package/dist/{quadrantDiagram-CIZ2JOQS-CDfrU0dm.cjs → quadrantDiagram-AXDQQJYC-zPfqM9Q4.cjs} +2 -2
  165. package/dist/radar-RG4KPBEZ-ClYJNseM.cjs +1 -0
  166. package/dist/radar-RG4KPBEZ-DqbNqlJH.js +3 -0
  167. package/dist/railroad-74A4TZTK-Dzt4afqg.js +3 -0
  168. package/dist/railroad-74A4TZTK-hSKcr2y6.cjs +1 -0
  169. package/dist/railroad-abnf-HS5TGJTU-gq2RybTO.js +3 -0
  170. package/dist/railroad-abnf-HS5TGJTU-irEXz0eI.cjs +1 -0
  171. package/dist/railroad-ebnf-LZEXJU2U-CG19A1Xj.cjs +1 -0
  172. package/dist/railroad-ebnf-LZEXJU2U-D-pNpFrj.js +3 -0
  173. package/dist/railroad-peg-WCYAUIDC-BLdK3QCV.cjs +1 -0
  174. package/dist/railroad-peg-WCYAUIDC-Bo7wfe--.js +3 -0
  175. package/dist/railroadDiagram-O6MQD6OU-3JsgWyLe.cjs +1 -0
  176. package/dist/{railroadDiagram-AXF67PYL-CVXAv-Uu.js → railroadDiagram-O6MQD6OU-BTg2KtZO.js} +6 -6
  177. package/dist/{requirementDiagram-LRYGKXZP-Bzik4kgS.js → requirementDiagram-IS5BZ75X-C1OrS7DV.js} +25 -24
  178. package/dist/{requirementDiagram-LRYGKXZP-BGlGCftH.cjs → requirementDiagram-IS5BZ75X-D1BMLxZg.cjs} +4 -4
  179. package/dist/{rolldown-runtime-Dqa2HsxW.js → rolldown-runtime-B0aSnxlc.js} +2 -2
  180. package/dist/{rolldown-runtime-mLOUI7ql.cjs → rolldown-runtime-DF3sbh8G.cjs} +1 -1
  181. package/dist/{rough.esm-r0QOSzHM.cjs → rough.esm-ChRLLRha.cjs} +1 -1
  182. package/dist/{rough.esm-C5XyeDCN.js → rough.esm-D2JJJ0Ot.js} +60 -51
  183. package/dist/{ruby-ClR4zp-1.cjs → ruby-B1inj-Q8.cjs} +1 -1
  184. package/dist/{ruby-BAUeZQKZ.js → ruby-DYVKXPXk.js} +1 -1
  185. package/dist/{rust-DiTjMjP5.js → rust-BihXqTNi.js} +38 -25
  186. package/dist/rust-D39kF6re.cjs +1 -0
  187. package/dist/{sankeyDiagram-W5VNT64P-OeLUMuT6.cjs → sankeyDiagram-P5KCCOFB-D5BHxcxB.cjs} +2 -2
  188. package/dist/{sankeyDiagram-W5VNT64P-_8xZpo45.js → sankeyDiagram-P5KCCOFB-DTnkE4oO.js} +17 -15
  189. package/dist/{scss-CckAvQOx.js → scss-CzfrZ5cc.js} +6 -1
  190. package/dist/scss-t-vKjRr4.cjs +1 -0
  191. package/dist/{sequenceDiagram-SI44F4Z6-X4mzY21C.js → sequenceDiagram-WJ2MYXX4-Ba-z2rSx.js} +36 -48
  192. package/dist/sequenceDiagram-WJ2MYXX4-DlVJIIIl.cjs +162 -0
  193. package/dist/{sizeCapture-X5ZJPWSS-DKbHZNyz.js → sizeCapture-INFHLROL-B5Lg3qGn.js} +1 -1
  194. package/dist/{src-DJ4x3y2O.js → src-BMMAFeC3.js} +288 -291
  195. package/dist/src-D9o9TOtH.cjs +1 -0
  196. package/dist/{stateDiagram-OKZ733FA-CMM1orC_.js → stateDiagram-XQSTLZYL-BtcUS_dg.js} +21 -21
  197. package/dist/stateDiagram-XQSTLZYL-mSOJx_Wv.cjs +1 -0
  198. package/dist/stateDiagram-v2-IH3M54BS-DAa6SuH4.cjs +1 -0
  199. package/dist/stateDiagram-v2-IH3M54BS-E_Rhduzm.js +30 -0
  200. package/dist/swimlanes-V6O3JKXN-BooYLGtP.cjs +1 -0
  201. package/dist/{swimlanes-SLNWSIFB-C7LLK1V2.js → swimlanes-V6O3JKXN-xxlpXv1f.js} +1022 -1109
  202. package/dist/swimlanesDiagram-JKAHXJPX-BaMCBEUQ.cjs +8 -0
  203. package/dist/swimlanesDiagram-JKAHXJPX-DyQwD-QO.js +30 -0
  204. package/dist/timeline-definition-24CTP7MA-D6sSmprF.cjs +120 -0
  205. package/dist/{timeline-definition-Z64GVDOM-Cgc-2OmU.js → timeline-definition-24CTP7MA-Dr8ouzBO.js} +19 -19
  206. package/dist/treeView-Q6P3EWNA-BmkQxkVU.cjs +1 -0
  207. package/dist/treeView-Q6P3EWNA-CPEEGmNv.js +3 -0
  208. package/dist/treemap-WGGIJYW6-CGULpntJ.js +3 -0
  209. package/dist/treemap-WGGIJYW6-Dmi9HAR8.cjs +1 -0
  210. package/dist/typescript-BarIi8q9.cjs +1 -0
  211. package/dist/{typescript-mdYq8uqf.js → typescript-C93MG6Zk.js} +26 -24
  212. package/dist/vennDiagram-4TSXK5OY-D5MMYyff.cjs +34 -0
  213. package/dist/{vennDiagram-T6HMQDX7-BWj1BhMh.js → vennDiagram-4TSXK5OY-i6B1rhUA.js} +15 -15
  214. package/dist/wardley-WFR3VGLG-9zHZLKh9.js +3 -0
  215. package/dist/wardley-WFR3VGLG-B6YvLPJA.cjs +1 -0
  216. package/dist/{wardleyDiagram-T6FBY63Y-d_t4oVLE.js → wardleyDiagram-VM6X3IG4-1SFyFcXg.js} +46 -46
  217. package/dist/{wardleyDiagram-T6FBY63Y-OomvVIFj.cjs → wardleyDiagram-VM6X3IG4-DzZNzmB8.cjs} +36 -36
  218. package/dist/{workspacePath-BScUv3M_.js → workspacePath-CfDl0V4n.js} +1 -1
  219. package/dist/{workspacePath-kqTwbSP1.cjs → workspacePath-EgAFT36l.cjs} +1 -1
  220. package/dist/{xml-BamqaQOf.cjs → xml-B0vjUBag.cjs} +1 -1
  221. package/dist/{xml-DVYfB8uY.js → xml-GxASmsT7.js} +2 -6
  222. package/dist/{xychartDiagram-ELKLHX3M-BOSOdubI.cjs → xychartDiagram-S5SC5T6Z-BOsjfYJh.cjs} +4 -4
  223. package/dist/{xychartDiagram-ELKLHX3M-Ce-ai3a8.js → xychartDiagram-S5SC5T6Z-D6QDBBGJ.js} +263 -158
  224. package/dist/{yaml-_1BORZTQ.js → yaml-CHhF1kKQ.js} +25 -25
  225. package/dist/yaml-DZS9gzaB.cjs +1 -0
  226. package/package.json +2 -2
  227. package/dist/PdfViewer-BBmVq73v.cjs +0 -1
  228. package/dist/abnfDiagram-N423BO3Z-DOZfbvMH.cjs +0 -1
  229. package/dist/arc-DcUn9_NX.cjs +0 -1
  230. package/dist/architecture-TIHT7OUA-D-35jO9Y.cjs +0 -1
  231. package/dist/architecture-TIHT7OUA-DDyMqjR1.js +0 -3
  232. package/dist/architectureDiagram-T3A2C74G-RJUsi-Sx.cjs +0 -36
  233. package/dist/blockDiagram-VBNYF7ZC-Bz8oqXJQ.cjs +0 -132
  234. package/dist/blockDiagram-VBNYF7ZC-DYMmF9bV.js +0 -3160
  235. package/dist/c-4QgYfi8K.cjs +0 -1
  236. package/dist/c4Diagram-5PPSVZJV-DM6x-BYG.cjs +0 -10
  237. package/dist/channel-DoxF0tZj.cjs +0 -1
  238. package/dist/chunk-3NCLNEKW-CO28EZBG.cjs +0 -1
  239. package/dist/chunk-3NCLNEKW-dTH67Ne_.js +0 -10
  240. package/dist/chunk-5RXB4S5H-B5b3tdRl.cjs +0 -231
  241. package/dist/chunk-7BUUIJ7U-BFUeQBoS.js +0 -82
  242. package/dist/chunk-7BUUIJ7U-MzS1pW_S.cjs +0 -1
  243. package/dist/chunk-7Z6QIM7H-Ctljl7Vq.cjs +0 -10
  244. package/dist/chunk-I66GZJ75-CrpH-Rmq.cjs +0 -127
  245. package/dist/chunk-J7OUQ5F2-DhMpZbAr.js +0 -57
  246. package/dist/chunk-J7OUQ5F2-b-MfW4O9.cjs +0 -1
  247. package/dist/chunk-JQJVKLGR-2AQwaWbm.cjs +0 -156
  248. package/dist/chunk-KEIR6QF5-Cy_QBNG6.cjs +0 -161
  249. package/dist/chunk-NSK5VX7P-D5CepZHI.cjs +0 -2
  250. package/dist/chunk-QR6OTTB3-CQ_jjYb-.js +0 -3736
  251. package/dist/chunk-QR6OTTB3-DSg3ZWNW.cjs +0 -62
  252. package/dist/chunk-RYQCIY6F-27FDzaaE.cjs +0 -1
  253. package/dist/chunk-RYQCIY6F-C-YC3QS_.js +0 -239
  254. package/dist/chunk-UBXNYLIW-BBncokef.js +0 -32
  255. package/dist/chunk-UBXNYLIW-DlNyCWjj.cjs +0 -1
  256. package/dist/chunk-W5SLKNZC-bHBkM2CL.cjs +0 -1
  257. package/dist/chunk-WRU74C26-9KZxhHnn.cjs +0 -70
  258. package/dist/chunk-ZIRB5QZD-BU6XQUGC.cjs +0 -32
  259. package/dist/chunk-ZIRB5QZD-Cj-y77rH.js +0 -1146
  260. package/dist/classDiagram-JCYQIIEL-DeHc-x8i.cjs +0 -1
  261. package/dist/classDiagram-JCYQIIEL-DlHKjVPc.js +0 -30
  262. package/dist/classDiagram-v2-OCEON4UE-DeHc-x8i.cjs +0 -1
  263. package/dist/classDiagram-v2-OCEON4UE-DlhHN57j.js +0 -30
  264. package/dist/core-2nR1zkKb.cjs +0 -3
  265. package/dist/cose-bilkent-JH36ORCC-AyWV1dUo.cjs +0 -1
  266. package/dist/cpp-BUtp-HE2.cjs +0 -1
  267. package/dist/csharp-BJu4kEpt.cjs +0 -1
  268. package/dist/css-DeFr0lev.cjs +0 -1
  269. package/dist/cynefin-VYW2F7L2-DHhUPDgc.cjs +0 -1
  270. package/dist/cynefin-VYW2F7L2-DwiVqvhg.js +0 -3
  271. package/dist/cynefinDiagram-MW4NZA55-By102s5I.cjs +0 -62
  272. package/dist/cytoscape.esm-ByjvpCPI.cjs +0 -321
  273. package/dist/dagre-BBlCxSvR.cjs +0 -1
  274. package/dist/dagre-VZM6K2ZE-5zrH2LqV.js +0 -328
  275. package/dist/dagre-VZM6K2ZE-CNe7-jhy.cjs +0 -4
  276. package/dist/defaultLocale-u9yUoUmE.cjs +0 -1
  277. package/dist/diagram-7IWD3JNH-CSzLXhRw.cjs +0 -30
  278. package/dist/diagram-LBJQPF4R-DgD0a56I.cjs +0 -24
  279. package/dist/diagram-Q27KOJAE-DNWfiaD5.cjs +0 -24
  280. package/dist/diagram-UB23O5K3-DguyM6v_.cjs +0 -41
  281. package/dist/ebnfDiagram-BXEA7PRR-DuJrkFn-.cjs +0 -1
  282. package/dist/erDiagram-JOGREHBK-DtyaQROs.cjs +0 -85
  283. package/dist/eventmodeling-45OFAUF4-COTtdYDJ.js +0 -3
  284. package/dist/eventmodeling-45OFAUF4-CPEyr9kU.cjs +0 -1
  285. package/dist/flowDiagram-UKHOOZJN-C7t5VpYH.js +0 -17
  286. package/dist/flowDiagram-UKHOOZJN-CdkElxh8.cjs +0 -1
  287. package/dist/ganttDiagram-PKOTCBZU-CFgz4r57.cjs +0 -292
  288. package/dist/gitGraph-TEB2WS4Q-C3qBT0GM.js +0 -3
  289. package/dist/gitGraph-TEB2WS4Q-a8KsoPmR.cjs +0 -1
  290. package/dist/info-DKCQHKI2-BEYhR6ip.cjs +0 -1
  291. package/dist/info-DKCQHKI2-BPF6-pOb.js +0 -3
  292. package/dist/infoDiagram-6WML65LV-CB6z_iKE.cjs +0 -2
  293. package/dist/init-07zIhv_j.cjs +0 -1
  294. package/dist/java-CUN_usaq.cjs +0 -1
  295. package/dist/javascript-UZXSyUuu.cjs +0 -1
  296. package/dist/json-Cp01TR_B.js +0 -36
  297. package/dist/json-usH_MUzR.cjs +0 -1
  298. package/dist/linear-Cl2-QuPP.cjs +0 -1
  299. package/dist/map-CwPlMWPw.cjs +0 -1
  300. package/dist/map-DU12fF3s.js +0 -241
  301. package/dist/markdown-qeo95R0i.cjs +0 -1
  302. package/dist/mermaid.core-BIq27e0A.js +0 -1068
  303. package/dist/mermaid.core-DpsSj3iy.cjs +0 -10
  304. package/dist/packet-7NZHBO7P-DqvBYJTR.js +0 -3
  305. package/dist/packet-7NZHBO7P-Dz0O2bgq.cjs +0 -1
  306. package/dist/path-Kklx0M1v.cjs +0 -1
  307. package/dist/pdf-aU0TN69t.cjs +0 -54
  308. package/dist/pegDiagram-VL7TDLO6-B4FslsmM.cjs +0 -1
  309. package/dist/pie-RZYD4A2V-Hi9UdoE3.cjs +0 -1
  310. package/dist/pie-RZYD4A2V-qnruo9sH.js +0 -3
  311. package/dist/pieDiagram-7S7Q4E2Y-CNzUVS2d.cjs +0 -39
  312. package/dist/python-BYJzTRkK.cjs +0 -1
  313. package/dist/radar-I7S5WNFK-Dqdssa34.cjs +0 -1
  314. package/dist/radar-I7S5WNFK-np_pJCO-.js +0 -3
  315. package/dist/railroad-3IZDKUUU-NILjDQft.cjs +0 -1
  316. package/dist/railroad-3IZDKUUU-sjKBeXxB.js +0 -3
  317. package/dist/railroad-abnf-AHOZXSZD-BojH9sxV.cjs +0 -1
  318. package/dist/railroad-abnf-AHOZXSZD-x5cC_e_R.js +0 -3
  319. package/dist/railroad-ebnf-EBAXGLYW-2mlWpz38.js +0 -3
  320. package/dist/railroad-ebnf-EBAXGLYW-BKCSut1M.cjs +0 -1
  321. package/dist/railroad-peg-LSFZ7HO6-CsH-gnsp.cjs +0 -1
  322. package/dist/railroad-peg-LSFZ7HO6-D5vguo03.js +0 -3
  323. package/dist/railroadDiagram-AXF67PYL-EO1cBHEj.cjs +0 -1
  324. package/dist/rust-ghVvEWhm.cjs +0 -1
  325. package/dist/scss-CKxh5HRg.cjs +0 -1
  326. package/dist/sequenceDiagram-SI44F4Z6-CuaCFBtR.cjs +0 -162
  327. package/dist/src-CR--T_NF.cjs +0 -1
  328. package/dist/stateDiagram-OKZ733FA-Dq6hI_pq.cjs +0 -1
  329. package/dist/stateDiagram-v2-UEYNNEHI-BmWUstzl.js +0 -30
  330. package/dist/stateDiagram-v2-UEYNNEHI-DZULVhS9.cjs +0 -1
  331. package/dist/swimlanes-SLNWSIFB-BMS6R0BK.cjs +0 -1
  332. package/dist/swimlanesDiagram-ULZ7WXOC-DxHKX_pj.cjs +0 -8
  333. package/dist/swimlanesDiagram-ULZ7WXOC-uXMuqsao.js +0 -31
  334. package/dist/timeline-definition-Z64GVDOM-PPJqDdOy.cjs +0 -120
  335. package/dist/treeView-QDETBFTQ-Cpg_YeQ4.cjs +0 -1
  336. package/dist/treeView-QDETBFTQ-DdpEhzZX.js +0 -3
  337. package/dist/treemap-6X3UGDF4-BeCuRpkA.js +0 -3
  338. package/dist/treemap-6X3UGDF4-CFAmnKaf.cjs +0 -1
  339. package/dist/typescript-clWeqIBY.cjs +0 -1
  340. package/dist/vennDiagram-T6HMQDX7-DqY7YgNx.cjs +0 -34
  341. package/dist/wardley-OPB4EBWU-B0jnKd8x.cjs +0 -1
  342. package/dist/wardley-OPB4EBWU-DlIk2K0J.js +0 -3
  343. package/dist/yaml-bAgWofBg.cjs +0 -1
  344. /package/dist/{sizeCapture-X5ZJPWSS-bJ2ZX4Du.cjs → sizeCapture-INFHLROL-bJ2ZX4Du.cjs} +0 -0
@@ -0,0 +1,3012 @@
1
+ import { n as e } from "./rolldown-runtime-B0aSnxlc.js";
2
+ import { n as t } from "./chunk-Y2CYZVJY-CwsV_8W4.js";
3
+ import { h as n, m as r, p as i } from "./src-BMMAFeC3.js";
4
+ import { $ as a, C as o, E as s, I as c, L as l, N as u, P as d, Q as f, S as p, T as m, V as h, W as g, X as _, Z as v, _ as y, b, c as x, g as S, l as C, m as w, n as T, p as E, q as D, r as O, s as k, t as ee, u as A, x as j } from "./chunk-DU6HZSFF-CaHy-FdL.js";
5
+ import { S as M, a as te, d as N, f as P, g as F, h as I, i as L, o as ne, v as re, x as ie, y as ae } from "./chunk-75Z2AOVW-Eg_bFxBJ.js";
6
+ import { r as oe } from "./chunk-PWAF6VOD-j4sFqhOF.js";
7
+ import { i as se } from "./chunk-GMAD6QVW-DCCx2Rg1.js";
8
+ import "./chunk-P2QGCYS3-uCJfSNHC.js";
9
+ import { a as ce } from "./chunk-4HAMMTFA-dRm_HqMI.js";
10
+ import { i as le, n as ue, r as de, t as fe } from "./chunk-GVQU2GXP-BRMv2gX3.js";
11
+ import { a as pe, c as me, i as R, l as z, n as he, r as ge, s as _e, t as ve } from "./chunk-OSK3NFVY-CxjvZYNR.js";
12
+ import { t as ye } from "./graphlib-CQa_B3rm.js";
13
+ import { n as be, t as xe } from "./chunk-L3NEJ4N5-DkoFQHrz.js";
14
+ //#region ../node_modules/mermaid/dist/chunks/mermaid.core/chunk-CLGD4ZFX.mjs
15
+ var Se = /* @__PURE__ */ t((e) => {
16
+ let { securityLevel: t } = j(), n = i("body");
17
+ if (t === "sandbox") {
18
+ let t = i(`#i${e}`).node()?.contentDocument ?? document;
19
+ n = i(t.body);
20
+ }
21
+ return n.select(`#${e}`);
22
+ }, "selectSvgElement");
23
+ //#endregion
24
+ //#region ../node_modules/es-toolkit/dist/compat/_internal/isPrototype.mjs
25
+ function Ce(e) {
26
+ let t = e?.constructor;
27
+ return e === (typeof t == "function" ? t.prototype : Object.prototype);
28
+ }
29
+ //#endregion
30
+ //#region ../node_modules/es-toolkit/dist/compat/predicate/isEmpty.mjs
31
+ function we(e) {
32
+ if (e == null) return !0;
33
+ if (ie(e)) return typeof e.splice != "function" && typeof e != "string" && !M(e) && !re(e) && !ae(e) ? !1 : e.length === 0;
34
+ if (typeof e == "object" || typeof e == "function") {
35
+ if (e instanceof Map || e instanceof Set) return e.size === 0;
36
+ let t = Object.keys(e);
37
+ return Ce(e) ? t.filter((e) => e !== "constructor").length === 0 : t.length === 0;
38
+ }
39
+ return !0;
40
+ }
41
+ //#endregion
42
+ //#region ../node_modules/mermaid/dist/chunks/mermaid.core/chunk-LQGUR6SS.mjs
43
+ var Te = {
44
+ common: k,
45
+ getConfig: b,
46
+ insertCluster: be,
47
+ insertEdge: R,
48
+ insertEdgeLabel: pe,
49
+ insertMarkers: _e,
50
+ insertNode: de,
51
+ interpolateToCurve: N,
52
+ labelHelper: ce,
53
+ log: r,
54
+ positionEdgeLabel: me
55
+ }, Ee = {}, De = /* @__PURE__ */ t((e) => {
56
+ for (let t of e) Ee[t.name] = t;
57
+ }, "registerLayoutLoaders");
58
+ (/* @__PURE__ */ t(() => {
59
+ De([
60
+ {
61
+ name: "dagre",
62
+ loader: /* @__PURE__ */ t(async () => await import("./dagre-OS7QT2EB-DcpSzxsR.js"), "loader")
63
+ },
64
+ {
65
+ name: "swimlane",
66
+ loader: /* @__PURE__ */ t(async () => await import("./swimlanes-V6O3JKXN-xxlpXv1f.js"), "loader")
67
+ },
68
+ {
69
+ name: "cose-bilkent",
70
+ loader: /* @__PURE__ */ t(async () => await import("./cose-bilkent-JH36ORCC-1Ad4jvll.js"), "loader")
71
+ }
72
+ ]);
73
+ }, "registerDefaultLayoutLoaders"))();
74
+ var Oe = /* @__PURE__ */ t(async (e, t) => {
75
+ if (!(e.layoutAlgorithm in Ee)) throw Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);
76
+ if (e.diagramId) for (let t of e.nodes) {
77
+ let n = t.domId || t.id;
78
+ t.domId = `${e.diagramId}-${n}`;
79
+ }
80
+ let n = Ee[e.layoutAlgorithm], r = await n.loader(), { theme: i, themeVariables: a } = e.config, { useGradient: o, gradientStart: s, gradientStop: c } = a, l = t.attr("id");
81
+ if (t.append("defs").append("filter").attr("id", `${l}-drop-shadow`).attr("height", "130%").attr("width", "130%").append("feDropShadow").attr("dx", "4").attr("dy", "4").attr("stdDeviation", 0).attr("flood-opacity", "0.06").attr("flood-color", `${i?.includes("dark") ? "#FFFFFF" : "#000000"}`), t.append("defs").append("filter").attr("id", `${l}-drop-shadow-small`).attr("height", "150%").attr("width", "150%").append("feDropShadow").attr("dx", "2").attr("dy", "2").attr("stdDeviation", 0).attr("flood-opacity", "0.06").attr("flood-color", `${i?.includes("dark") ? "#FFFFFF" : "#000000"}`), o) {
82
+ let e = t.append("linearGradient").attr("id", t.attr("id") + "-gradient").attr("gradientUnits", "objectBoundingBox").attr("x1", "0%").attr("y1", "0%").attr("x2", "100%").attr("y2", "0%");
83
+ e.append("svg:stop").attr("offset", "0%").attr("stop-color", s).attr("stop-opacity", 1), e.append("svg:stop").attr("offset", "100%").attr("stop-color", c).attr("stop-opacity", 1);
84
+ }
85
+ return r.render(e, t, Te, { algorithm: n.algorithm });
86
+ }, "render"), ke = /* @__PURE__ */ t((e = "", { fallback: t = "dagre" } = {}) => {
87
+ if (e in Ee) return e;
88
+ if (t in Ee) return r.warn(`Layout algorithm ${e} is not registered. Using ${t} as fallback.`), t;
89
+ throw Error(`Both layout algorithms ${e} and ${t} are not registered.`);
90
+ }, "getRegisteredLayoutAlgorithm");
91
+ //#endregion
92
+ //#region ../node_modules/mermaid/dist/chunks/mermaid.core/chunk-H2I77ZZE.mjs
93
+ function Ae(e, { edgePathsClass: t = "edges edgePath" } = {}) {
94
+ let n = e.insert("g").attr("class", "root");
95
+ return {
96
+ clusters: n.insert("g").attr("class", "clusters"),
97
+ edgePaths: n.insert("g").attr("class", t),
98
+ edgeLabels: n.insert("g").attr("class", "edgeLabels"),
99
+ nodes: n.insert("g").attr("class", "nodes"),
100
+ rootGroups: n
101
+ };
102
+ }
103
+ t(Ae, "createLayoutElementGroups");
104
+ async function je(e, t) {
105
+ if (t.label) {
106
+ let { shapeSvg: n, bbox: r } = await ce(e, t);
107
+ t.labelBBox = {
108
+ width: r.width,
109
+ height: r.height
110
+ }, n.remove();
111
+ } else t.labelBBox = {
112
+ width: 0,
113
+ height: 0
114
+ };
115
+ }
116
+ t(je, "measureGroupLabel");
117
+ async function Me(e, t, n) {
118
+ let r = await de(e, t, n), i = r.node()?.getBBox() ?? {
119
+ width: 0,
120
+ height: 0
121
+ };
122
+ return t.width = i.width, t.height = i.height, r;
123
+ }
124
+ t(Me, "insertMeasuredNode");
125
+ async function Ne(e, t) {
126
+ let n = new ye({
127
+ multigraph: !0,
128
+ compound: !0
129
+ }), r = [...t.edges], i = j(), a = Ae(e), { edgeLabels: o, nodes: s } = a, c = /* @__PURE__ */ new Map(), l = e.node() != null;
130
+ await Promise.all(t.nodes.map(async (e) => {
131
+ if (e.isGroup) l && await je(s, e), n.setNode(e.id, { ...e });
132
+ else {
133
+ if (l) {
134
+ let t = await Me(s, e, {
135
+ config: i,
136
+ dir: e.dir
137
+ });
138
+ c.set(e.id, t);
139
+ }
140
+ n.setNode(e.id, { ...e });
141
+ }
142
+ }));
143
+ for (let e of r) l && ge(e) && await pe(o, e), n.setEdge(e.start, e.end, { ...e }, e.id), t.edges.some((t) => t.id === e.id) || t.edges.push(e);
144
+ if (globalThis.mermaidCaptureSizes) {
145
+ let { captureNodeSizes: n } = await import("./sizeCapture-INFHLROL-B5Lg3qGn.js");
146
+ n(e, t);
147
+ }
148
+ return {
149
+ graph: n,
150
+ groups: a,
151
+ nodeElements: c
152
+ };
153
+ }
154
+ t(Ne, "createGraphWithElements");
155
+ var B = /* @__PURE__ */ new Map(), V = /* @__PURE__ */ new Map(), Pe = /* @__PURE__ */ new Map(), Fe = /* @__PURE__ */ t(() => {
156
+ V.clear(), Pe.clear(), B.clear();
157
+ }, "clear"), Ie = /* @__PURE__ */ t((e, t) => {
158
+ let n = V.get(t) || [];
159
+ return r.trace("In isDescendant", t, " ", e, " = ", n.includes(e)), n.includes(e);
160
+ }, "isDescendant"), Le = /* @__PURE__ */ t((e, t) => {
161
+ let n = V.get(t) || [];
162
+ return r.info("Descendants of ", t, " is ", n), r.info("Edge is ", e), e.v === t || e.w === t ? !1 : n ? n.includes(e.v) || Ie(e.v, t) || Ie(e.w, t) || n.includes(e.w) : (r.debug("Tilt, ", t, ",not in descendants"), !1);
163
+ }, "edgeInCluster"), Re = /* @__PURE__ */ t((e, t, n, i) => {
164
+ r.debug("Copying children of ", e, "root", i, "data", t.node(e), i);
165
+ let a = t.children(e) || [];
166
+ e !== i && a.push(e), r.debug("Copying (nodes) clusterId", e, "nodes", a), a.forEach((a) => {
167
+ if (t.children(a).length > 0) Re(a, t, n, i);
168
+ else {
169
+ let o = t.node(a);
170
+ r.info("cp ", a, " to ", i, " with parent ", e), n.setNode(a, o), i !== t.parent(a) && (r.debug("Setting parent", a, t.parent(a)), n.setParent(a, t.parent(a))), e !== i && a !== e ? (r.debug("Setting parent", a, e), n.setParent(a, e)) : (r.info("In copy ", e, "root", i, "data", t.node(e), i), r.debug("Not Setting parent for node=", a, "cluster!==rootId", e !== i, "node!==clusterId", a !== e));
171
+ let s = t.edges(a);
172
+ r.debug("Copying Edges", s), s.forEach((a) => {
173
+ r.info("Edge", a);
174
+ let o = t.edge(a.v, a.w, a.name);
175
+ r.info("Edge data", o, i);
176
+ try {
177
+ Le(a, i) ? (r.info("Copying as ", a.v, a.w, o, a.name), n.setEdge(a.v, a.w, o, a.name), r.info("newGraph edges ", n.edges(), n.edge(n.edges()[0]))) : r.info("Skipping copy of edge ", a.v, "-->", a.w, " rootId: ", i, " clusterId:", e);
178
+ } catch (e) {
179
+ r.error(e);
180
+ }
181
+ });
182
+ }
183
+ r.debug("Removing node", a), t.removeNode(a);
184
+ });
185
+ }, "copy"), ze = /* @__PURE__ */ t((e, t) => {
186
+ let n = t.children(e), r = [...n];
187
+ for (let i of n) Pe.set(i, e), r = [...r, ...ze(i, t)];
188
+ return r;
189
+ }, "extractDescendants"), Be = /* @__PURE__ */ t((e, t, n) => {
190
+ let r = e.edges().filter((e) => e.v === t || e.w === t), i = e.edges().filter((e) => e.v === n || e.w === n), a = r.map((e) => ({
191
+ v: e.v === t ? n : e.v,
192
+ w: e.w === t ? t : e.w
193
+ })), o = i.map((e) => ({
194
+ v: e.v,
195
+ w: e.w
196
+ }));
197
+ return a.filter((e) => o.some((t) => e.v === t.v && e.w === t.w));
198
+ }, "findCommonEdges"), Ve = /* @__PURE__ */ t((e, t, n) => {
199
+ let i = t.children(e);
200
+ if (r.trace("Searching children of id ", e, i), i.length < 1) return e;
201
+ let a;
202
+ for (let e of i) {
203
+ let r = Ve(e, t, n), i = Be(t, n, r);
204
+ if (r) {
205
+ if (i.length > 0) a = r;
206
+ else return r;
207
+ }
208
+ }
209
+ return a;
210
+ }, "findNonClusterChild"), He = /* @__PURE__ */ t((e) => !B.has(e) || !B.get(e).externalConnections ? e : B.has(e) ? B.get(e).id : e, "getAnchorId"), Ue = /* @__PURE__ */ t((e, t) => {
211
+ if (!e || t > 10) {
212
+ r.debug("Opting out, no graph ");
213
+ return;
214
+ }
215
+ r.debug("Opting in, graph "), e.nodes().forEach(function(t) {
216
+ e.children(t).length > 0 && (r.debug("Cluster identified", t, " Replacement id in edges: ", Ve(t, e, t)), V.set(t, ze(t, e)), B.set(t, {
217
+ id: Ve(t, e, t),
218
+ clusterData: e.node(t)
219
+ }));
220
+ }), e.nodes().forEach(function(t) {
221
+ let n = e.children(t), i = e.edges();
222
+ n.length > 0 ? (r.debug("Cluster identified", t, V), i.forEach((e) => {
223
+ Ie(e.v, t) ^ Ie(e.w, t) && (r.debug("Edge: ", e, " leaves cluster ", t), r.debug("Descendants of XXX ", t, ": ", V.get(t)), B.get(t).externalConnections = !0);
224
+ })) : r.debug("Not a cluster ", t, V);
225
+ });
226
+ for (let t of B.keys()) {
227
+ let n = B.get(t).id, r = e.parent(n);
228
+ r !== t && B.has(r) && !B.get(r).externalConnections && (B.get(t).id = r);
229
+ let i = e.edges().some((e) => e.v === t);
230
+ if (n && B.get(t)?.externalConnections && i && qe(e, n, t)) {
231
+ let r = Je(e, t, e.parent(n));
232
+ r && (B.get(t).id = r);
233
+ }
234
+ }
235
+ e.edges().forEach(function(t) {
236
+ let n = e.edge(t);
237
+ r.debug("Edge " + t.v + " -> " + t.w + ": " + JSON.stringify(t)), r.debug("Edge " + t.v + " -> " + t.w + ": " + JSON.stringify(e.edge(t)));
238
+ let i = t.v, a = t.w;
239
+ if (r.debug("Fix XXX", B, "ids:", t.v, t.w, "Translating: ", B.get(t.v), " --- ", B.get(t.w)), B.get(t.v) || B.get(t.w)) {
240
+ if (r.debug("Fixing and trying - removing XXX", t.v, t.w, t.name), i = He(t.v), a = He(t.w), e.removeEdge(t.v, t.w, t.name), i !== t.v) {
241
+ let r = e.parent(i);
242
+ B.get(r).externalConnections = !0, n.fromCluster = t.v;
243
+ }
244
+ if (a !== t.w) {
245
+ let r = e.parent(a);
246
+ B.get(r).externalConnections = !0, n.toCluster = t.w;
247
+ }
248
+ r.debug("Fix Replacing with XXX", i, a, t.name), e.setEdge(i, a, n, t.name);
249
+ }
250
+ }), We(e, 0), r.trace(B);
251
+ }, "adjustClustersAndEdges"), We = /* @__PURE__ */ t((e, t) => {
252
+ if (t > 10) {
253
+ r.error("Bailing out");
254
+ return;
255
+ }
256
+ let n = e.nodes(), i = !1;
257
+ for (let t of n) {
258
+ let n = e.children(t);
259
+ i ||= n.length > 0;
260
+ }
261
+ if (!i) {
262
+ r.debug("Done, no node has children", e.nodes());
263
+ return;
264
+ }
265
+ r.debug("Nodes = ", n, t);
266
+ for (let i of n) if (r.debug("Extracting node", i, B, B.has(i) && !B.get(i).externalConnections, !e.parent(i), e.node(i), e.children("D"), " Depth ", t), !B.has(i)) r.debug("Not a cluster", i, t);
267
+ else if (!B.get(i).externalConnections && e.children(i) && e.children(i).length > 0) {
268
+ r.debug("Cluster without external connections, without a parent and with children", i, t);
269
+ let n = e.graph().rankdir === "TB" ? "LR" : "TB";
270
+ B.get(i)?.clusterData?.dir && (n = B.get(i).clusterData.dir, r.debug("Fixing dir", B.get(i).clusterData.dir, n));
271
+ let a = new ye({
272
+ multigraph: !0,
273
+ compound: !0
274
+ }).setGraph({
275
+ rankdir: n,
276
+ nodesep: 50,
277
+ ranksep: 50,
278
+ marginx: 8,
279
+ marginy: 8
280
+ }).setDefaultEdgeLabel(function() {
281
+ return {};
282
+ });
283
+ Re(i, e, a, i), e.setNode(i, {
284
+ clusterNode: !0,
285
+ id: i,
286
+ clusterData: B.get(i).clusterData,
287
+ label: B.get(i).label,
288
+ graph: a
289
+ });
290
+ } else r.debug("Cluster ** ", i, " **not meeting the criteria !externalConnections:", !B.get(i).externalConnections, " no parent: ", !e.parent(i), " children ", e.children(i) && e.children(i).length > 0, e.children("D"), t), r.debug(B);
291
+ n = e.nodes(), r.debug("New list of nodes", n);
292
+ for (let i of n) {
293
+ let n = e.node(i);
294
+ r.debug(" Now next level", i, n), n?.clusterNode && We(n.graph, t + 1);
295
+ }
296
+ }, "extractor"), Ge = /* @__PURE__ */ t((e, t) => {
297
+ if (t.length === 0) return [];
298
+ let n = Object.assign([], t);
299
+ return t.forEach((t) => {
300
+ let r = Ge(e, e.children(t));
301
+ n = [...n, ...r];
302
+ }), n;
303
+ }, "sorter"), Ke = /* @__PURE__ */ t((e) => Ge(e, e.children()), "sortNodesByHierarchy"), qe = /* @__PURE__ */ t((e, t, n) => {
304
+ let r = e.parent(t);
305
+ for (; r && r !== n;) {
306
+ let t = B.get(r);
307
+ if (t && !t.externalConnections) return !0;
308
+ r = e.parent(r);
309
+ }
310
+ return !1;
311
+ }, "isNodeInExtractableCluster"), Je = /* @__PURE__ */ t((e, t, n) => {
312
+ let r = e.children(t) ?? [];
313
+ for (let i of r) {
314
+ if (i === n || Ie(i, n)) continue;
315
+ let r = Ve(i, e, t);
316
+ if (r && !qe(e, r, t)) return r;
317
+ }
318
+ return null;
319
+ }, "findSafeAnchorNode");
320
+ function Ye({ prepareLayout: e, measureLayout: n, runLayoutCore: r, paintLayout: i, afterPaint: a, paintOptions: o }) {
321
+ let s = n ?? Ze;
322
+ return /* @__PURE__ */ t(async function(t, n, c, l) {
323
+ let u = n.select("g");
324
+ (c?.insertMarkers ?? _e)(u, t.markers, t.type, t.diagramId), Xe();
325
+ let d = {
326
+ element: u,
327
+ helpers: c,
328
+ options: l
329
+ };
330
+ d.preparedLayout = await e?.(t, d);
331
+ let f = await s(t, d), p = await r(t, d), m = {
332
+ ...d,
333
+ measure: f
334
+ };
335
+ i ? await i(t, m, p) : await Qe(t, m, o), await a?.(t, m, p);
336
+ }, "render");
337
+ }
338
+ t(Ye, "createCommonLayoutRenderer");
339
+ function Xe() {
340
+ fe(), ve(), xe(), Fe();
341
+ }
342
+ t(Xe, "clearLayoutRenderState");
343
+ async function Ze(e, { element: t }) {
344
+ return await Ne(t, e);
345
+ }
346
+ t(Ze, "defaultMeasureLayout");
347
+ async function Qe(e, t, n = {}) {
348
+ let { measure: r } = t, { groups: i } = r;
349
+ for (let r of n.getNodes?.(e, t) ?? e.nodes) n.skipNode?.(r, t) || await $e(i, r, t, n);
350
+ let a = tt(e.nodes);
351
+ for (let r of e.edges) nt(r, n) || await rt(i, r, a, e, n, t);
352
+ }
353
+ t(Qe, "paintLayoutData");
354
+ async function $e(e, t, n, r) {
355
+ t.clusterNode ? le(t) : et(t, n, r) ? await be(e.clusters, t) : le(t);
356
+ }
357
+ t($e, "paintLayoutNode");
358
+ function et(e, t, n) {
359
+ return e.isGroup === !0 && (n.isCluster?.(e, t) ?? !0);
360
+ }
361
+ t(et, "shouldPaintAsCluster");
362
+ function tt(e) {
363
+ let t = /* @__PURE__ */ new Map();
364
+ for (let n of e) n?.id && t.set(n.id, n);
365
+ return t;
366
+ }
367
+ t(tt, "buildNodeLookup");
368
+ function nt(e, t) {
369
+ return e.isLayoutOnly || !!t.skipEdge?.(e);
370
+ }
371
+ t(nt, "shouldSkipPaintEdge");
372
+ async function rt(e, t, n, r, i, a) {
373
+ let o = R(e.edgePaths, { ...t }, i.clusterDb ?? /* @__PURE__ */ new Map(), r.type, it(t.start, t, n, a, i), it(t.end, t, n, a, i), r.diagramId, at(t, i));
374
+ ge(t) && (he.has(t.id) || await pe(e.edgeLabels, t), ot(t, o));
375
+ }
376
+ t(rt, "paintLayoutEdge");
377
+ function it(e, t, n, r, i) {
378
+ return i.getEdgeNode?.(e, t, r) ?? (e ? n.get(e) ?? {} : {});
379
+ }
380
+ t(it, "getRenderedNode");
381
+ function at(e, t) {
382
+ return typeof t.skipIntersect == "function" ? t.skipIntersect(e) : t.skipIntersect ?? !1;
383
+ }
384
+ t(at, "shouldSkipIntersect");
385
+ function ot(e, t) {
386
+ let n = t?.updatedPath ?? t?.originalPath, i = b(), { subGraphTitleTotalMargin: a } = ue({ flowchart: i.flowchart ?? {} });
387
+ if (e.label) {
388
+ let i = he.get(e.id), o = e.x, s = e.y;
389
+ if (n) {
390
+ let i = F.calcLabelPosition(n);
391
+ r.debug("Moving label " + e.label + " from (", o, ",", s, ") to (", i.x, ",", i.y, ") abc88"), t?.updatedPath && (o = i.x, s = i.y);
392
+ }
393
+ i.attr("transform", `translate(${o}, ${s + a / 2})`);
394
+ }
395
+ if (e?.startLabelLeft) {
396
+ let t = z.get(e.id).startLeft, r = e?.x, i = e?.y;
397
+ if (n) {
398
+ let t = F.calcTerminalLabelPosition(e.arrowTypeStart ? 10 : 0, "start_left", n);
399
+ r = t.x, i = t.y;
400
+ }
401
+ t.attr("transform", `translate(${r}, ${i})`);
402
+ }
403
+ if (e.startLabelRight) {
404
+ let t = z.get(e.id).startRight, r = e.x, i = e.y;
405
+ if (n) {
406
+ let t = F.calcTerminalLabelPosition(e.arrowTypeStart ? 10 : 0, "start_right", n);
407
+ r = t.x, i = t.y;
408
+ }
409
+ t.attr("transform", `translate(${r}, ${i})`);
410
+ }
411
+ if (e.endLabelLeft) {
412
+ let t = z.get(e.id).endLeft, r = e.x, i = e.y;
413
+ if (n) {
414
+ let t = F.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_left", n);
415
+ r = t.x, i = t.y;
416
+ }
417
+ t.attr("transform", `translate(${r}, ${i})`);
418
+ }
419
+ if (e.endLabelRight) {
420
+ let t = z.get(e.id).endRight, r = e.x, i = e.y;
421
+ if (n) {
422
+ let t = F.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_right", n);
423
+ r = t.x, i = t.y;
424
+ }
425
+ t.attr("transform", `translate(${r}, ${i})`);
426
+ }
427
+ }
428
+ t(ot, "positionRenderedEdgeLabel");
429
+ //#endregion
430
+ //#region ../node_modules/mermaid/dist/chunks/mermaid.core/chunk-LNGE3PJU.mjs
431
+ function st(e) {
432
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
433
+ }
434
+ t(st, "getDefaultExportFromCjs");
435
+ var H = {}, ct = {}, U = {}, lt;
436
+ function W() {
437
+ if (lt) return U;
438
+ lt = 1;
439
+ function e(e) {
440
+ return e == null;
441
+ }
442
+ t(e, "isNothing");
443
+ function n(e) {
444
+ return typeof e == "object" && !!e;
445
+ }
446
+ t(n, "isObject");
447
+ function r(t) {
448
+ return Array.isArray(t) ? t : e(t) ? [] : [t];
449
+ }
450
+ t(r, "toArray");
451
+ function i(e, t) {
452
+ if (t) {
453
+ let n = Object.keys(t);
454
+ for (let r = 0, i = n.length; r < i; r += 1) {
455
+ let i = n[r];
456
+ e[i] = t[i];
457
+ }
458
+ }
459
+ return e;
460
+ }
461
+ t(i, "extend");
462
+ function a(e, t) {
463
+ let n = "";
464
+ for (let r = 0; r < t; r += 1) n += e;
465
+ return n;
466
+ }
467
+ t(a, "repeat");
468
+ function o(e) {
469
+ return e === 0 && 1 / e == -Infinity;
470
+ }
471
+ return t(o, "isNegativeZero"), U.isNothing = e, U.isObject = n, U.toArray = r, U.repeat = a, U.isNegativeZero = o, U.extend = i, U;
472
+ }
473
+ t(W, "requireCommon");
474
+ var ut, dt;
475
+ function G() {
476
+ if (dt) return ut;
477
+ dt = 1;
478
+ function e(e, t) {
479
+ let n = "", r = e.reason || "(unknown reason)";
480
+ return e.mark ? (e.mark.name && (n += "in \"" + e.mark.name + "\" "), n += "(" + (e.mark.line + 1) + ":" + (e.mark.column + 1) + ")", !t && e.mark.snippet && (n += "\n\n" + e.mark.snippet), r + " " + n) : r;
481
+ }
482
+ t(e, "formatError");
483
+ function n(t, n) {
484
+ Error.call(this), this.name = "YAMLException", this.reason = t, this.mark = n, this.message = e(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = (/* @__PURE__ */ Error()).stack || "";
485
+ }
486
+ return t(n, "YAMLException2"), n.prototype = Object.create(Error.prototype), n.prototype.constructor = n, n.prototype.toString = /* @__PURE__ */ t(function(t) {
487
+ return this.name + ": " + e(this, t);
488
+ }, "toString"), ut = n, ut;
489
+ }
490
+ t(G, "requireException");
491
+ var ft, pt;
492
+ function mt() {
493
+ if (pt) return ft;
494
+ pt = 1;
495
+ let e = W();
496
+ function n(e, t, n, r, i) {
497
+ let a = "", o = "", s = Math.floor(i / 2) - 1;
498
+ return r - t > s && (a = " ... ", t = r - s + a.length), n - r > s && (o = " ...", n = r + s - o.length), {
499
+ str: a + e.slice(t, n).replace(/\t/g, "→") + o,
500
+ pos: r - t + a.length
501
+ };
502
+ }
503
+ t(n, "getLine");
504
+ function r(t, n) {
505
+ return e.repeat(" ", n - t.length) + t;
506
+ }
507
+ t(r, "padStart");
508
+ function i(t, i) {
509
+ if (i = Object.create(i || null), !t.buffer) return null;
510
+ i.maxLength || (i.maxLength = 79), typeof i.indent != "number" && (i.indent = 1), typeof i.linesBefore != "number" && (i.linesBefore = 3), typeof i.linesAfter != "number" && (i.linesAfter = 2);
511
+ let a = /\r?\n|\r|\0/g, o = [0], s = [], c, l = -1;
512
+ for (; c = a.exec(t.buffer);) s.push(c.index), o.push(c.index + c[0].length), t.position <= c.index && l < 0 && (l = o.length - 2);
513
+ l < 0 && (l = o.length - 1);
514
+ let u = "", d = Math.min(t.line + i.linesAfter, s.length).toString().length, f = i.maxLength - (i.indent + d + 3);
515
+ for (let a = 1; a <= i.linesBefore && !(l - a < 0); a++) {
516
+ let c = n(t.buffer, o[l - a], s[l - a], t.position - (o[l] - o[l - a]), f);
517
+ u = e.repeat(" ", i.indent) + r((t.line - a + 1).toString(), d) + " | " + c.str + "\n" + u;
518
+ }
519
+ let p = n(t.buffer, o[l], s[l], t.position, f);
520
+ u += e.repeat(" ", i.indent) + r((t.line + 1).toString(), d) + " | " + p.str + "\n", u += e.repeat("-", i.indent + d + 3 + p.pos) + "^\n";
521
+ for (let a = 1; a <= i.linesAfter && !(l + a >= s.length); a++) {
522
+ let c = n(t.buffer, o[l + a], s[l + a], t.position - (o[l] - o[l + a]), f);
523
+ u += e.repeat(" ", i.indent) + r((t.line + a + 1).toString(), d) + " | " + c.str + "\n";
524
+ }
525
+ return u.replace(/\n$/, "");
526
+ }
527
+ return t(i, "makeSnippet"), ft = i, ft;
528
+ }
529
+ t(mt, "requireSnippet");
530
+ var ht, gt;
531
+ function K() {
532
+ if (gt) return ht;
533
+ gt = 1;
534
+ let e = G(), n = [
535
+ "kind",
536
+ "multi",
537
+ "resolve",
538
+ "construct",
539
+ "instanceOf",
540
+ "predicate",
541
+ "represent",
542
+ "representName",
543
+ "defaultStyle",
544
+ "styleAliases"
545
+ ], r = [
546
+ "scalar",
547
+ "sequence",
548
+ "mapping"
549
+ ];
550
+ function i(e) {
551
+ let t = {};
552
+ return e !== null && Object.keys(e).forEach(function(n) {
553
+ e[n].forEach(function(e) {
554
+ t[String(e)] = n;
555
+ });
556
+ }), t;
557
+ }
558
+ t(i, "compileStyleAliases");
559
+ function a(t, a) {
560
+ if (a ||= {}, Object.keys(a).forEach(function(r) {
561
+ if (n.indexOf(r) === -1) throw new e("Unknown option \"" + r + "\" is met in definition of \"" + t + "\" YAML type.");
562
+ }), this.options = a, this.tag = t, this.kind = a.kind || null, this.resolve = a.resolve || function() {
563
+ return !0;
564
+ }, this.construct = a.construct || function(e) {
565
+ return e;
566
+ }, this.instanceOf = a.instanceOf || null, this.predicate = a.predicate || null, this.represent = a.represent || null, this.representName = a.representName || null, this.defaultStyle = a.defaultStyle || null, this.multi = a.multi || !1, this.styleAliases = i(a.styleAliases || null), r.indexOf(this.kind) === -1) throw new e("Unknown kind \"" + this.kind + "\" is specified for \"" + t + "\" YAML type.");
567
+ }
568
+ return t(a, "Type2"), ht = a, ht;
569
+ }
570
+ t(K, "requireType");
571
+ var _t, vt;
572
+ function yt() {
573
+ if (vt) return _t;
574
+ vt = 1;
575
+ let e = G(), n = K();
576
+ function r(e, t) {
577
+ let n = [];
578
+ return e[t].forEach(function(e) {
579
+ let t = n.length;
580
+ n.forEach(function(n, r) {
581
+ n.tag === e.tag && n.kind === e.kind && n.multi === e.multi && (t = r);
582
+ }), n[t] = e;
583
+ }), n;
584
+ }
585
+ t(r, "compileList");
586
+ function i() {
587
+ let e = {
588
+ scalar: {},
589
+ sequence: {},
590
+ mapping: {},
591
+ fallback: {},
592
+ multi: {
593
+ scalar: [],
594
+ sequence: [],
595
+ mapping: [],
596
+ fallback: []
597
+ }
598
+ };
599
+ function n(t) {
600
+ t.multi ? (e.multi[t.kind].push(t), e.multi.fallback.push(t)) : e[t.kind][t.tag] = e.fallback[t.tag] = t;
601
+ }
602
+ t(n, "collectType");
603
+ for (let e = 0, t = arguments.length; e < t; e += 1) arguments[e].forEach(n);
604
+ return e;
605
+ }
606
+ t(i, "compileMap");
607
+ function a(e) {
608
+ return this.extend(e);
609
+ }
610
+ return t(a, "Schema2"), a.prototype.extend = /* @__PURE__ */ t(function(t) {
611
+ let o = [], s = [];
612
+ if (t instanceof n) s.push(t);
613
+ else if (Array.isArray(t)) s = s.concat(t);
614
+ else if (t && (Array.isArray(t.implicit) || Array.isArray(t.explicit))) t.implicit && (o = o.concat(t.implicit)), t.explicit && (s = s.concat(t.explicit));
615
+ else throw new e("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
616
+ o.forEach(function(t) {
617
+ if (!(t instanceof n)) throw new e("Specified list of YAML types (or a single Type object) contains a non-Type object.");
618
+ if (t.loadKind && t.loadKind !== "scalar") throw new e("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
619
+ if (t.multi) throw new e("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
620
+ }), s.forEach(function(t) {
621
+ if (!(t instanceof n)) throw new e("Specified list of YAML types (or a single Type object) contains a non-Type object.");
622
+ });
623
+ let c = Object.create(a.prototype);
624
+ return c.implicit = (this.implicit || []).concat(o), c.explicit = (this.explicit || []).concat(s), c.compiledImplicit = r(c, "implicit"), c.compiledExplicit = r(c, "explicit"), c.compiledTypeMap = i(c.compiledImplicit, c.compiledExplicit), c;
625
+ }, "extend"), _t = a, _t;
626
+ }
627
+ t(yt, "requireSchema");
628
+ var bt, xt;
629
+ function St() {
630
+ return xt ? bt : (xt = 1, bt = new (K())("tag:yaml.org,2002:str", {
631
+ kind: "scalar",
632
+ construct: /* @__PURE__ */ t(function(e) {
633
+ return e === null ? "" : e;
634
+ }, "construct")
635
+ }), bt);
636
+ }
637
+ t(St, "requireStr");
638
+ var Ct, wt;
639
+ function Tt() {
640
+ return wt ? Ct : (wt = 1, Ct = new (K())("tag:yaml.org,2002:seq", {
641
+ kind: "sequence",
642
+ construct: /* @__PURE__ */ t(function(e) {
643
+ return e === null ? [] : e;
644
+ }, "construct")
645
+ }), Ct);
646
+ }
647
+ t(Tt, "requireSeq");
648
+ var Et, Dt;
649
+ function Ot() {
650
+ return Dt ? Et : (Dt = 1, Et = new (K())("tag:yaml.org,2002:map", {
651
+ kind: "mapping",
652
+ construct: /* @__PURE__ */ t(function(e) {
653
+ return e === null ? {} : e;
654
+ }, "construct")
655
+ }), Et);
656
+ }
657
+ t(Ot, "requireMap");
658
+ var kt, At;
659
+ function jt() {
660
+ return At ? kt : (At = 1, kt = new (yt())({ explicit: [
661
+ St(),
662
+ Tt(),
663
+ Ot()
664
+ ] }), kt);
665
+ }
666
+ t(jt, "requireFailsafe");
667
+ var Mt, Nt;
668
+ function Pt() {
669
+ if (Nt) return Mt;
670
+ Nt = 1;
671
+ let e = K();
672
+ function n(e) {
673
+ if (e === null) return !0;
674
+ let t = e.length;
675
+ return t === 1 && e === "~" || t === 4 && (e === "null" || e === "Null" || e === "NULL");
676
+ }
677
+ t(n, "resolveYamlNull");
678
+ function r() {
679
+ return null;
680
+ }
681
+ t(r, "constructYamlNull");
682
+ function i(e) {
683
+ return e === null;
684
+ }
685
+ return t(i, "isNull"), Mt = new e("tag:yaml.org,2002:null", {
686
+ kind: "scalar",
687
+ resolve: n,
688
+ construct: r,
689
+ predicate: i,
690
+ represent: {
691
+ canonical: /* @__PURE__ */ t(function() {
692
+ return "~";
693
+ }, "canonical"),
694
+ lowercase: /* @__PURE__ */ t(function() {
695
+ return "null";
696
+ }, "lowercase"),
697
+ uppercase: /* @__PURE__ */ t(function() {
698
+ return "NULL";
699
+ }, "uppercase"),
700
+ camelcase: /* @__PURE__ */ t(function() {
701
+ return "Null";
702
+ }, "camelcase"),
703
+ empty: /* @__PURE__ */ t(function() {
704
+ return "";
705
+ }, "empty")
706
+ },
707
+ defaultStyle: "lowercase"
708
+ }), Mt;
709
+ }
710
+ t(Pt, "require_null");
711
+ var Ft, It;
712
+ function Lt() {
713
+ if (It) return Ft;
714
+ It = 1;
715
+ let e = K();
716
+ function n(e) {
717
+ if (e === null) return !1;
718
+ let t = e.length;
719
+ return t === 4 && (e === "true" || e === "True" || e === "TRUE") || t === 5 && (e === "false" || e === "False" || e === "FALSE");
720
+ }
721
+ t(n, "resolveYamlBoolean");
722
+ function r(e) {
723
+ return e === "true" || e === "True" || e === "TRUE";
724
+ }
725
+ t(r, "constructYamlBoolean");
726
+ function i(e) {
727
+ return Object.prototype.toString.call(e) === "[object Boolean]";
728
+ }
729
+ return t(i, "isBoolean"), Ft = new e("tag:yaml.org,2002:bool", {
730
+ kind: "scalar",
731
+ resolve: n,
732
+ construct: r,
733
+ predicate: i,
734
+ represent: {
735
+ lowercase: /* @__PURE__ */ t(function(e) {
736
+ return e ? "true" : "false";
737
+ }, "lowercase"),
738
+ uppercase: /* @__PURE__ */ t(function(e) {
739
+ return e ? "TRUE" : "FALSE";
740
+ }, "uppercase"),
741
+ camelcase: /* @__PURE__ */ t(function(e) {
742
+ return e ? "True" : "False";
743
+ }, "camelcase")
744
+ },
745
+ defaultStyle: "lowercase"
746
+ }), Ft;
747
+ }
748
+ t(Lt, "requireBool");
749
+ var Rt, zt;
750
+ function Bt() {
751
+ if (zt) return Rt;
752
+ zt = 1;
753
+ let e = W(), n = K();
754
+ function r(e) {
755
+ return e >= 48 && e <= 57 || e >= 65 && e <= 70 || e >= 97 && e <= 102;
756
+ }
757
+ t(r, "isHexCode");
758
+ function i(e) {
759
+ return e >= 48 && e <= 55;
760
+ }
761
+ t(i, "isOctCode");
762
+ function a(e) {
763
+ return e >= 48 && e <= 57;
764
+ }
765
+ t(a, "isDecCode");
766
+ function o(e) {
767
+ if (e === null) return !1;
768
+ let t = e.length, n = 0, o = !1;
769
+ if (!t) return !1;
770
+ let c = e[n];
771
+ if ((c === "-" || c === "+") && (c = e[++n]), c === "0") {
772
+ if (n + 1 === t) return !0;
773
+ if (c = e[++n], c === "b") {
774
+ for (n++; n < t; n++) {
775
+ if (c = e[n], c !== "0" && c !== "1") return !1;
776
+ o = !0;
777
+ }
778
+ return o && isFinite(s(e));
779
+ }
780
+ if (c === "x") {
781
+ for (n++; n < t; n++) {
782
+ if (!r(e.charCodeAt(n))) return !1;
783
+ o = !0;
784
+ }
785
+ return o && isFinite(s(e));
786
+ }
787
+ if (c === "o") {
788
+ for (n++; n < t; n++) {
789
+ if (!i(e.charCodeAt(n))) return !1;
790
+ o = !0;
791
+ }
792
+ return o && isFinite(s(e));
793
+ }
794
+ }
795
+ for (; n < t; n++) {
796
+ if (!a(e.charCodeAt(n))) return !1;
797
+ o = !0;
798
+ }
799
+ return o ? isFinite(s(e)) : !1;
800
+ }
801
+ t(o, "resolveYamlInteger");
802
+ function s(e) {
803
+ let t = e, n = 1, r = t[0];
804
+ if ((r === "-" || r === "+") && (r === "-" && (n = -1), t = t.slice(1), r = t[0]), t === "0") return 0;
805
+ if (r === "0") {
806
+ if (t[1] === "b") return n * parseInt(t.slice(2), 2);
807
+ if (t[1] === "x") return n * parseInt(t.slice(2), 16);
808
+ if (t[1] === "o") return n * parseInt(t.slice(2), 8);
809
+ }
810
+ return n * parseInt(t, 10);
811
+ }
812
+ t(s, "parseYamlInteger");
813
+ function c(e) {
814
+ return s(e);
815
+ }
816
+ t(c, "constructYamlInteger");
817
+ function l(t) {
818
+ return Object.prototype.toString.call(t) === "[object Number]" && t % 1 == 0 && !e.isNegativeZero(t);
819
+ }
820
+ return t(l, "isInteger"), Rt = new n("tag:yaml.org,2002:int", {
821
+ kind: "scalar",
822
+ resolve: o,
823
+ construct: c,
824
+ predicate: l,
825
+ represent: {
826
+ binary: /* @__PURE__ */ t(function(e) {
827
+ return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
828
+ }, "binary"),
829
+ octal: /* @__PURE__ */ t(function(e) {
830
+ return e >= 0 ? "0o" + e.toString(8) : "-0o" + e.toString(8).slice(1);
831
+ }, "octal"),
832
+ decimal: /* @__PURE__ */ t(function(e) {
833
+ return e.toString(10);
834
+ }, "decimal"),
835
+ hexadecimal: /* @__PURE__ */ t(function(e) {
836
+ return e >= 0 ? "0x" + e.toString(16).toUpperCase() : "-0x" + e.toString(16).toUpperCase().slice(1);
837
+ }, "hexadecimal")
838
+ },
839
+ defaultStyle: "decimal",
840
+ styleAliases: {
841
+ binary: [2, "bin"],
842
+ octal: [8, "oct"],
843
+ decimal: [10, "dec"],
844
+ hexadecimal: [16, "hex"]
845
+ }
846
+ }), Rt;
847
+ }
848
+ t(Bt, "requireInt");
849
+ var Vt, Ht;
850
+ function Ut() {
851
+ if (Ht) return Vt;
852
+ Ht = 1;
853
+ let e = W(), n = K(), r = /* @__PURE__ */ RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"), i = /* @__PURE__ */ RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
854
+ function a(e) {
855
+ return e === null || !r.test(e) ? !1 : isFinite(parseFloat(e, 10)) ? !0 : i.test(e);
856
+ }
857
+ t(a, "resolveYamlFloat");
858
+ function o(e) {
859
+ let t = e.toLowerCase(), n = t[0] === "-" ? -1 : 1;
860
+ return "+-".indexOf(t[0]) >= 0 && (t = t.slice(1)), t === ".inf" ? n === 1 ? Infinity : -Infinity : t === ".nan" ? NaN : n * parseFloat(t, 10);
861
+ }
862
+ t(o, "constructYamlFloat");
863
+ let s = /^[-+]?[0-9]+e/;
864
+ function c(t, n) {
865
+ if (isNaN(t)) switch (n) {
866
+ case "lowercase": return ".nan";
867
+ case "uppercase": return ".NAN";
868
+ case "camelcase": return ".NaN";
869
+ }
870
+ else if (t === Infinity) switch (n) {
871
+ case "lowercase": return ".inf";
872
+ case "uppercase": return ".INF";
873
+ case "camelcase": return ".Inf";
874
+ }
875
+ else if (t === -Infinity) switch (n) {
876
+ case "lowercase": return "-.inf";
877
+ case "uppercase": return "-.INF";
878
+ case "camelcase": return "-.Inf";
879
+ }
880
+ else if (e.isNegativeZero(t)) return "-0.0";
881
+ let r = t.toString(10);
882
+ return s.test(r) ? r.replace("e", ".e") : r;
883
+ }
884
+ t(c, "representYamlFloat");
885
+ function l(t) {
886
+ return Object.prototype.toString.call(t) === "[object Number]" && (t % 1 != 0 || e.isNegativeZero(t));
887
+ }
888
+ return t(l, "isFloat"), Vt = new n("tag:yaml.org,2002:float", {
889
+ kind: "scalar",
890
+ resolve: a,
891
+ construct: o,
892
+ predicate: l,
893
+ represent: c,
894
+ defaultStyle: "lowercase"
895
+ }), Vt;
896
+ }
897
+ t(Ut, "requireFloat");
898
+ var Wt, Gt;
899
+ function Kt() {
900
+ return Gt ? Wt : (Gt = 1, Wt = jt().extend({ implicit: [
901
+ Pt(),
902
+ Lt(),
903
+ Bt(),
904
+ Ut()
905
+ ] }), Wt);
906
+ }
907
+ t(Kt, "requireJson");
908
+ var qt, Jt;
909
+ function Yt() {
910
+ return Jt ? qt : (Jt = 1, qt = Kt(), qt);
911
+ }
912
+ t(Yt, "requireCore");
913
+ var Xt, Zt;
914
+ function Qt() {
915
+ if (Zt) return Xt;
916
+ Zt = 1;
917
+ let e = K(), n = /* @__PURE__ */ RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"), r = /* @__PURE__ */ RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");
918
+ function i(e) {
919
+ return e === null ? !1 : n.exec(e) !== null || r.exec(e) !== null;
920
+ }
921
+ t(i, "resolveYamlTimestamp");
922
+ function a(e) {
923
+ let t = 0, i = null, a = n.exec(e);
924
+ if (a === null && (a = r.exec(e)), a === null) throw Error("Date resolve error");
925
+ let o = +a[1], s = a[2] - 1, c = +a[3];
926
+ if (!a[4]) return new Date(Date.UTC(o, s, c));
927
+ let l = +a[4], u = +a[5], d = +a[6];
928
+ if (a[7]) {
929
+ for (t = a[7].slice(0, 3); t.length < 3;) t += "0";
930
+ t = +t;
931
+ }
932
+ if (a[9]) {
933
+ let e = +a[10], t = +(a[11] || 0);
934
+ i = (e * 60 + t) * 6e4, a[9] === "-" && (i = -i);
935
+ }
936
+ let f = new Date(Date.UTC(o, s, c, l, u, d, t));
937
+ return i && f.setTime(f.getTime() - i), f;
938
+ }
939
+ t(a, "constructYamlTimestamp");
940
+ function o(e) {
941
+ return e.toISOString();
942
+ }
943
+ return t(o, "representYamlTimestamp"), Xt = new e("tag:yaml.org,2002:timestamp", {
944
+ kind: "scalar",
945
+ resolve: i,
946
+ construct: a,
947
+ instanceOf: Date,
948
+ represent: o
949
+ }), Xt;
950
+ }
951
+ t(Qt, "requireTimestamp");
952
+ var $t, en;
953
+ function tn() {
954
+ if (en) return $t;
955
+ en = 1;
956
+ let e = K();
957
+ function n(e) {
958
+ return e === "<<" || e === null;
959
+ }
960
+ return t(n, "resolveYamlMerge"), $t = new e("tag:yaml.org,2002:merge", {
961
+ kind: "scalar",
962
+ resolve: n
963
+ }), $t;
964
+ }
965
+ t(tn, "requireMerge");
966
+ var nn, rn;
967
+ function an() {
968
+ if (rn) return nn;
969
+ rn = 1;
970
+ let e = K();
971
+ function n(e) {
972
+ if (e === null) return !1;
973
+ let t = 0, n = e.length;
974
+ for (let r = 0; r < n; r++) {
975
+ let n = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r".indexOf(e.charAt(r));
976
+ if (!(n > 64)) {
977
+ if (n < 0) return !1;
978
+ t += 6;
979
+ }
980
+ }
981
+ return t % 8 == 0;
982
+ }
983
+ t(n, "resolveYamlBinary");
984
+ function r(e) {
985
+ let t = e.replace(/[\r\n=]/g, ""), n = t.length, r = 0, i = [];
986
+ for (let e = 0; e < n; e++) e % 4 == 0 && e && (i.push(r >> 16 & 255), i.push(r >> 8 & 255), i.push(r & 255)), r = r << 6 | "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r".indexOf(t.charAt(e));
987
+ let a = n % 4 * 6;
988
+ return a === 0 ? (i.push(r >> 16 & 255), i.push(r >> 8 & 255), i.push(r & 255)) : a === 18 ? (i.push(r >> 10 & 255), i.push(r >> 2 & 255)) : a === 12 && i.push(r >> 4 & 255), new Uint8Array(i);
989
+ }
990
+ t(r, "constructYamlBinary");
991
+ function i(e) {
992
+ let t = "", n = 0, r = e.length, i = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";
993
+ for (let a = 0; a < r; a++) a % 3 == 0 && a && (t += i[n >> 18 & 63], t += i[n >> 12 & 63], t += i[n >> 6 & 63], t += i[n & 63]), n = (n << 8) + e[a];
994
+ let a = r % 3;
995
+ return a === 0 ? (t += i[n >> 18 & 63], t += i[n >> 12 & 63], t += i[n >> 6 & 63], t += i[n & 63]) : a === 2 ? (t += i[n >> 10 & 63], t += i[n >> 4 & 63], t += i[n << 2 & 63], t += i[64]) : a === 1 && (t += i[n >> 2 & 63], t += i[n << 4 & 63], t += i[64], t += i[64]), t;
996
+ }
997
+ t(i, "representYamlBinary");
998
+ function a(e) {
999
+ return Object.prototype.toString.call(e) === "[object Uint8Array]";
1000
+ }
1001
+ return t(a, "isBinary"), nn = new e("tag:yaml.org,2002:binary", {
1002
+ kind: "scalar",
1003
+ resolve: n,
1004
+ construct: r,
1005
+ predicate: a,
1006
+ represent: i
1007
+ }), nn;
1008
+ }
1009
+ t(an, "requireBinary");
1010
+ var on, sn;
1011
+ function cn() {
1012
+ if (sn) return on;
1013
+ sn = 1;
1014
+ let e = K(), n = Object.prototype.hasOwnProperty, r = Object.prototype.toString;
1015
+ function i(e) {
1016
+ if (e === null) return !0;
1017
+ let t = [], i = e;
1018
+ for (let e = 0, a = i.length; e < a; e += 1) {
1019
+ let a = i[e], o = !1;
1020
+ if (r.call(a) !== "[object Object]") return !1;
1021
+ let s;
1022
+ for (s in a) if (n.call(a, s)) {
1023
+ if (!o) o = !0;
1024
+ else return !1;
1025
+ }
1026
+ if (!o) return !1;
1027
+ if (t.indexOf(s) === -1) t.push(s);
1028
+ else return !1;
1029
+ }
1030
+ return !0;
1031
+ }
1032
+ t(i, "resolveYamlOmap");
1033
+ function a(e) {
1034
+ return e === null ? [] : e;
1035
+ }
1036
+ return t(a, "constructYamlOmap"), on = new e("tag:yaml.org,2002:omap", {
1037
+ kind: "sequence",
1038
+ resolve: i,
1039
+ construct: a
1040
+ }), on;
1041
+ }
1042
+ t(cn, "requireOmap");
1043
+ var ln, un;
1044
+ function dn() {
1045
+ if (un) return ln;
1046
+ un = 1;
1047
+ let e = K(), n = Object.prototype.toString;
1048
+ function r(e) {
1049
+ if (e === null) return !0;
1050
+ let t = e, r = Array(t.length);
1051
+ for (let e = 0, i = t.length; e < i; e += 1) {
1052
+ let i = t[e];
1053
+ if (n.call(i) !== "[object Object]") return !1;
1054
+ let a = Object.keys(i);
1055
+ if (a.length !== 1) return !1;
1056
+ r[e] = [a[0], i[a[0]]];
1057
+ }
1058
+ return !0;
1059
+ }
1060
+ t(r, "resolveYamlPairs");
1061
+ function i(e) {
1062
+ if (e === null) return [];
1063
+ let t = e, n = Array(t.length);
1064
+ for (let e = 0, r = t.length; e < r; e += 1) {
1065
+ let r = t[e], i = Object.keys(r);
1066
+ n[e] = [i[0], r[i[0]]];
1067
+ }
1068
+ return n;
1069
+ }
1070
+ return t(i, "constructYamlPairs"), ln = new e("tag:yaml.org,2002:pairs", {
1071
+ kind: "sequence",
1072
+ resolve: r,
1073
+ construct: i
1074
+ }), ln;
1075
+ }
1076
+ t(dn, "requirePairs");
1077
+ var fn, pn;
1078
+ function mn() {
1079
+ if (pn) return fn;
1080
+ pn = 1;
1081
+ let e = K(), n = Object.prototype.hasOwnProperty;
1082
+ function r(e) {
1083
+ if (e === null) return !0;
1084
+ let t = e;
1085
+ for (let e in t) if (n.call(t, e) && t[e] !== null) return !1;
1086
+ return !0;
1087
+ }
1088
+ t(r, "resolveYamlSet");
1089
+ function i(e) {
1090
+ return e === null ? {} : e;
1091
+ }
1092
+ return t(i, "constructYamlSet"), fn = new e("tag:yaml.org,2002:set", {
1093
+ kind: "mapping",
1094
+ resolve: r,
1095
+ construct: i
1096
+ }), fn;
1097
+ }
1098
+ t(mn, "requireSet");
1099
+ var hn, gn;
1100
+ function _n() {
1101
+ return gn ? hn : (gn = 1, hn = Yt().extend({
1102
+ implicit: [Qt(), tn()],
1103
+ explicit: [
1104
+ an(),
1105
+ cn(),
1106
+ dn(),
1107
+ mn()
1108
+ ]
1109
+ }), hn);
1110
+ }
1111
+ t(_n, "require_default");
1112
+ var vn;
1113
+ function yn() {
1114
+ if (vn) return ct;
1115
+ vn = 1;
1116
+ let e = W(), n = G(), r = mt(), i = _n(), a = Object.prototype.hasOwnProperty, o = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, s = /[\x85\u2028\u2029]/, c = /[,\[\]{}]/, l = /^(?:!|!!|![0-9A-Za-z-]+!)$/, u = /^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;
1117
+ function d(e) {
1118
+ return Object.prototype.toString.call(e);
1119
+ }
1120
+ t(d, "_class");
1121
+ function f(e) {
1122
+ return e === 10 || e === 13;
1123
+ }
1124
+ t(f, "isEol");
1125
+ function p(e) {
1126
+ return e === 9 || e === 32;
1127
+ }
1128
+ t(p, "isWhiteSpace");
1129
+ function m(e) {
1130
+ return e === 9 || e === 32 || e === 10 || e === 13;
1131
+ }
1132
+ t(m, "isWsOrEol");
1133
+ function h(e) {
1134
+ return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
1135
+ }
1136
+ t(h, "isFlowIndicator");
1137
+ function g(e) {
1138
+ if (e >= 48 && e <= 57) return e - 48;
1139
+ let t = e | 32;
1140
+ return t >= 97 && t <= 102 ? t - 97 + 10 : -1;
1141
+ }
1142
+ t(g, "fromHexCode");
1143
+ function _(e) {
1144
+ return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
1145
+ }
1146
+ t(_, "escapedHexLen");
1147
+ function v(e) {
1148
+ return e >= 48 && e <= 57 ? e - 48 : -1;
1149
+ }
1150
+ t(v, "fromDecimalCode");
1151
+ function y(e) {
1152
+ switch (e) {
1153
+ case 48: return "\0";
1154
+ case 97: return "\x07";
1155
+ case 98: return "\b";
1156
+ case 116: return " ";
1157
+ case 9: return " ";
1158
+ case 110: return "\n";
1159
+ case 118: return "\v";
1160
+ case 102: return "\f";
1161
+ case 114: return "\r";
1162
+ case 101: return "\x1B";
1163
+ case 32: return " ";
1164
+ case 34: return "\"";
1165
+ case 47: return "/";
1166
+ case 92: return "\\";
1167
+ case 78: return "…";
1168
+ case 95: return "\xA0";
1169
+ case 76: return "\u2028";
1170
+ case 80: return "\u2029";
1171
+ default: return "";
1172
+ }
1173
+ }
1174
+ t(y, "simpleEscapeSequence");
1175
+ function b(e) {
1176
+ return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode((e - 65536 >> 10) + 55296, (e - 65536 & 1023) + 56320);
1177
+ }
1178
+ t(b, "charFromCodepoint");
1179
+ function x(e, t, n) {
1180
+ t === "__proto__" ? Object.defineProperty(e, t, {
1181
+ configurable: !0,
1182
+ enumerable: !0,
1183
+ writable: !0,
1184
+ value: n
1185
+ }) : e[t] = n;
1186
+ }
1187
+ t(x, "setProperty");
1188
+ let S = Array(256), C = Array(256);
1189
+ for (let e = 0; e < 256; e++) S[e] = +!!y(e), C[e] = y(e);
1190
+ function w(e, t) {
1191
+ this.input = e, this.filename = t.filename || null, this.schema = t.schema || i, this.onWarning = t.onWarning || null, this.legacy = t.legacy || !1, this.json = t.json || !1, this.listener = t.listener || null, this.maxDepth = typeof t.maxDepth == "number" ? t.maxDepth : 100, this.maxTotalMergeKeys = typeof t.maxTotalMergeKeys == "number" ? t.maxTotalMergeKeys : 1e4, this.implicitTypes = this.schema.compiledImplicit, this.typeMap = this.schema.compiledTypeMap, this.length = e.length, this.position = 0, this.line = 0, this.lineStart = 0, this.lineIndent = 0, this.depth = 0, this.totalMergeKeys = 0, this.firstTabInLine = -1, this.documents = [], this.anchorMapTransactions = [];
1192
+ }
1193
+ t(w, "State");
1194
+ function T(e, t) {
1195
+ let i = {
1196
+ name: e.filename,
1197
+ buffer: e.input.slice(0, -1),
1198
+ position: e.position,
1199
+ line: e.line,
1200
+ column: e.position - e.lineStart
1201
+ };
1202
+ return i.snippet = r(i), new n(t, i);
1203
+ }
1204
+ t(T, "generateError");
1205
+ function E(e, t) {
1206
+ throw T(e, t);
1207
+ }
1208
+ t(E, "throwError");
1209
+ function D(e, t) {
1210
+ e.onWarning && e.onWarning.call(null, T(e, t));
1211
+ }
1212
+ t(D, "throwWarning");
1213
+ function O(e, t, n) {
1214
+ let r = e.anchorMapTransactions;
1215
+ if (r.length !== 0) {
1216
+ let n = r[r.length - 1];
1217
+ a.call(n, t) || (n[t] = {
1218
+ existed: a.call(e.anchorMap, t),
1219
+ value: e.anchorMap[t]
1220
+ });
1221
+ }
1222
+ e.anchorMap[t] = n;
1223
+ }
1224
+ t(O, "storeAnchor");
1225
+ function k(e) {
1226
+ e.anchorMapTransactions.push(/* @__PURE__ */ Object.create(null));
1227
+ }
1228
+ t(k, "beginAnchorTransaction");
1229
+ function ee(e) {
1230
+ let t = e.anchorMapTransactions.pop(), n = e.anchorMapTransactions;
1231
+ if (n.length === 0) return;
1232
+ let r = n[n.length - 1], i = Object.keys(t);
1233
+ for (let e = 0, n = i.length; e < n; e += 1) {
1234
+ let n = i[e];
1235
+ a.call(r, n) || (r[n] = t[n]);
1236
+ }
1237
+ }
1238
+ t(ee, "commitAnchorTransaction");
1239
+ function A(e) {
1240
+ let t = e.anchorMapTransactions.pop(), n = Object.keys(t);
1241
+ for (let r = n.length - 1; r >= 0; --r) {
1242
+ let i = t[n[r]];
1243
+ i.existed ? e.anchorMap[n[r]] = i.value : delete e.anchorMap[n[r]];
1244
+ }
1245
+ }
1246
+ t(A, "rollbackAnchorTransaction");
1247
+ function j(e) {
1248
+ return {
1249
+ position: e.position,
1250
+ line: e.line,
1251
+ lineStart: e.lineStart,
1252
+ lineIndent: e.lineIndent,
1253
+ firstTabInLine: e.firstTabInLine,
1254
+ tag: e.tag,
1255
+ anchor: e.anchor,
1256
+ kind: e.kind,
1257
+ result: e.result
1258
+ };
1259
+ }
1260
+ t(j, "snapshotState");
1261
+ function M(e, t) {
1262
+ e.position = t.position, e.line = t.line, e.lineStart = t.lineStart, e.lineIndent = t.lineIndent, e.firstTabInLine = t.firstTabInLine, e.tag = t.tag, e.anchor = t.anchor, e.kind = t.kind, e.result = t.result;
1263
+ }
1264
+ t(M, "restoreState");
1265
+ let te = {
1266
+ YAML: /* @__PURE__ */ t(function(e, t, n) {
1267
+ e.version !== null && E(e, "duplication of %YAML directive"), n.length !== 1 && E(e, "YAML directive accepts exactly one argument");
1268
+ let r = /^([0-9]+)\.([0-9]+)$/.exec(n[0]);
1269
+ r === null && E(e, "ill-formed argument of the YAML directive");
1270
+ let i = parseInt(r[1], 10), a = parseInt(r[2], 10);
1271
+ i !== 1 && E(e, "unacceptable YAML version of the document"), e.version = n[0], e.checkLineBreaks = a < 2, a !== 1 && a !== 2 && D(e, "unsupported YAML version of the document");
1272
+ }, "handleYamlDirective"),
1273
+ TAG: /* @__PURE__ */ t(function(e, t, n) {
1274
+ let r;
1275
+ n.length !== 2 && E(e, "TAG directive accepts exactly two arguments");
1276
+ let i = n[0];
1277
+ r = n[1], l.test(i) || E(e, "ill-formed tag handle (first argument) of the TAG directive"), a.call(e.tagMap, i) && E(e, "there is a previously declared suffix for \"" + i + "\" tag handle"), u.test(r) || E(e, "ill-formed tag prefix (second argument) of the TAG directive");
1278
+ try {
1279
+ r = decodeURIComponent(r);
1280
+ } catch {
1281
+ E(e, "tag prefix is malformed: " + r);
1282
+ }
1283
+ e.tagMap[i] = r;
1284
+ }, "handleTagDirective")
1285
+ };
1286
+ function N(e, t, n, r) {
1287
+ if (t < n) {
1288
+ let i = e.input.slice(t, n);
1289
+ if (r) for (let t = 0, n = i.length; t < n; t += 1) {
1290
+ let n = i.charCodeAt(t);
1291
+ n === 9 || n >= 32 && n <= 1114111 || E(e, "expected valid JSON character");
1292
+ }
1293
+ else o.test(i) && E(e, "the stream contains non-printable characters");
1294
+ e.result += i;
1295
+ }
1296
+ }
1297
+ t(N, "captureSegment");
1298
+ function P(t, n, r, i) {
1299
+ e.isObject(r) || E(t, "cannot merge mappings; the provided source object is unacceptable");
1300
+ let o = Object.keys(r);
1301
+ for (let e = 0, s = o.length; e < s; e += 1) {
1302
+ let s = o[e];
1303
+ t.maxTotalMergeKeys !== -1 && ++t.totalMergeKeys > t.maxTotalMergeKeys && E(t, "merge keys exceeded maxTotalMergeKeys (" + t.maxTotalMergeKeys + ")"), a.call(n, s) || (x(n, s, r[s]), i[s] = !0);
1304
+ }
1305
+ }
1306
+ t(P, "mergeMappings");
1307
+ function F(e, t, n, r, i, o, s, c, l) {
1308
+ if (Array.isArray(i)) {
1309
+ i = Array.prototype.slice.call(i);
1310
+ for (let t = 0, n = i.length; t < n; t += 1) Array.isArray(i[t]) && E(e, "nested arrays are not supported inside keys"), typeof i == "object" && d(i[t]) === "[object Object]" && (i[t] = "[object Object]");
1311
+ }
1312
+ if (typeof i == "object" && d(i) === "[object Object]" && (i = "[object Object]"), i = String(i), t === null && (t = {}), r === "tag:yaml.org,2002:merge") {
1313
+ if (Array.isArray(o)) for (let r = 0, i = o.length; r < i; r += 1) P(e, t, o[r], n);
1314
+ else P(e, t, o, n);
1315
+ } else !e.json && !a.call(n, i) && a.call(t, i) && (e.line = s || e.line, e.lineStart = c || e.lineStart, e.position = l || e.position, E(e, "duplicated mapping key")), x(t, i, o), delete n[i];
1316
+ return t;
1317
+ }
1318
+ t(F, "storeMappingPair");
1319
+ function I(e) {
1320
+ let t = e.input.charCodeAt(e.position);
1321
+ t === 10 ? e.position++ : t === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : E(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
1322
+ }
1323
+ t(I, "readLineBreak");
1324
+ function L(e, t, n) {
1325
+ let r = 0, i = e.input.charCodeAt(e.position);
1326
+ for (; i !== 0;) {
1327
+ for (; p(i);) i === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), i = e.input.charCodeAt(++e.position);
1328
+ if (t && i === 35) do
1329
+ i = e.input.charCodeAt(++e.position);
1330
+ while (i !== 10 && i !== 13 && i !== 0);
1331
+ if (f(i)) for (I(e), i = e.input.charCodeAt(e.position), r++, e.lineIndent = 0; i === 32;) e.lineIndent++, i = e.input.charCodeAt(++e.position);
1332
+ else break;
1333
+ }
1334
+ return n !== -1 && r !== 0 && e.lineIndent < n && D(e, "deficient indentation"), r;
1335
+ }
1336
+ t(L, "skipSeparationSpace");
1337
+ function ne(e) {
1338
+ let t = e.position, n = e.input.charCodeAt(t);
1339
+ return !!((n === 45 || n === 46) && n === e.input.charCodeAt(t + 1) && n === e.input.charCodeAt(t + 2) && (t += 3, n = e.input.charCodeAt(t), n === 0 || m(n)));
1340
+ }
1341
+ t(ne, "testDocumentSeparator");
1342
+ function re(t, n) {
1343
+ n === 1 ? t.result += " " : n > 1 && (t.result += e.repeat("\n", n - 1));
1344
+ }
1345
+ t(re, "writeFoldedLines");
1346
+ function ie(e, t, n) {
1347
+ let r, i, a, o, s, c, l = e.kind, u = e.result, d = e.input.charCodeAt(e.position);
1348
+ if (m(d) || h(d) || d === 35 || d === 38 || d === 42 || d === 33 || d === 124 || d === 62 || d === 39 || d === 34 || d === 37 || d === 64 || d === 96) return !1;
1349
+ if (d === 63 || d === 45) {
1350
+ let t = e.input.charCodeAt(e.position + 1);
1351
+ if (m(t) || n && h(t)) return !1;
1352
+ }
1353
+ for (e.kind = "scalar", e.result = "", r = i = e.position, a = !1; d !== 0;) {
1354
+ if (d === 58) {
1355
+ let t = e.input.charCodeAt(e.position + 1);
1356
+ if (m(t) || n && h(t)) break;
1357
+ } else if (d === 35) {
1358
+ if (m(e.input.charCodeAt(e.position - 1))) break;
1359
+ } else if (e.position === e.lineStart && ne(e) || n && h(d)) break;
1360
+ else if (f(d)) {
1361
+ if (o = e.line, s = e.lineStart, c = e.lineIndent, L(e, !1, -1), e.lineIndent >= t) {
1362
+ a = !0, d = e.input.charCodeAt(e.position);
1363
+ continue;
1364
+ }
1365
+ e.position = i, e.line = o, e.lineStart = s, e.lineIndent = c;
1366
+ break;
1367
+ }
1368
+ a &&= (N(e, r, i, !1), re(e, e.line - o), r = i = e.position, !1), p(d) || (i = e.position + 1), d = e.input.charCodeAt(++e.position);
1369
+ }
1370
+ return N(e, r, i, !1), e.result ? !0 : (e.kind = l, e.result = u, !1);
1371
+ }
1372
+ t(ie, "readPlainScalar");
1373
+ function ae(e, t) {
1374
+ let n, r, i = e.input.charCodeAt(e.position);
1375
+ if (i !== 39) return !1;
1376
+ for (e.kind = "scalar", e.result = "", e.position++, n = r = e.position; (i = e.input.charCodeAt(e.position)) !== 0;) if (i === 39) {
1377
+ if (N(e, n, e.position, !0), i = e.input.charCodeAt(++e.position), i === 39) n = e.position, e.position++, r = e.position;
1378
+ else return !0;
1379
+ } else f(i) ? (N(e, n, r, !0), re(e, L(e, !1, t)), n = r = e.position) : e.position === e.lineStart && ne(e) ? E(e, "unexpected end of the document within a single quoted scalar") : (e.position++, p(i) || (r = e.position));
1380
+ E(e, "unexpected end of the stream within a single quoted scalar");
1381
+ }
1382
+ t(ae, "readSingleQuotedScalar");
1383
+ function oe(e, t) {
1384
+ let n, r, i, a = e.input.charCodeAt(e.position);
1385
+ if (a !== 34) return !1;
1386
+ for (e.kind = "scalar", e.result = "", e.position++, n = r = e.position; (a = e.input.charCodeAt(e.position)) !== 0;) if (a === 34) return N(e, n, e.position, !0), e.position++, !0;
1387
+ else if (a === 92) {
1388
+ if (N(e, n, e.position, !0), a = e.input.charCodeAt(++e.position), f(a)) L(e, !1, t);
1389
+ else if (a < 256 && S[a]) e.result += C[a], e.position++;
1390
+ else if ((i = _(a)) > 0) {
1391
+ let t = i, n = 0;
1392
+ for (; t > 0; t--) a = e.input.charCodeAt(++e.position), (i = g(a)) >= 0 ? n = (n << 4) + i : E(e, "expected hexadecimal character");
1393
+ e.result += b(n), e.position++;
1394
+ } else E(e, "unknown escape sequence");
1395
+ n = r = e.position;
1396
+ } else f(a) ? (N(e, n, r, !0), re(e, L(e, !1, t)), n = r = e.position) : e.position === e.lineStart && ne(e) ? E(e, "unexpected end of the document within a double quoted scalar") : (e.position++, p(a) || (r = e.position));
1397
+ E(e, "unexpected end of the stream within a double quoted scalar");
1398
+ }
1399
+ t(oe, "readDoubleQuotedScalar");
1400
+ function se(e, t) {
1401
+ let n = !0, r, i, a, o = e.tag, s, c = e.anchor, l, u, d, f, p = /* @__PURE__ */ Object.create(null), h, g, _, v = e.input.charCodeAt(e.position);
1402
+ if (v === 91) l = 93, f = !1, s = [];
1403
+ else if (v === 123) l = 125, f = !0, s = {};
1404
+ else return !1;
1405
+ for (e.anchor !== null && O(e, e.anchor, s), v = e.input.charCodeAt(++e.position); v !== 0;) {
1406
+ if (L(e, !0, t), v = e.input.charCodeAt(e.position), v === l) return e.position++, e.tag = o, e.anchor = c, e.kind = f ? "mapping" : "sequence", e.result = s, !0;
1407
+ n ? v === 44 && E(e, "expected the node content, but found ','") : E(e, "missed comma between flow collection entries"), g = h = _ = null, u = d = !1, v === 63 && m(e.input.charCodeAt(e.position + 1)) && (u = d = !0, e.position++, L(e, !0, t)), r = e.line, i = e.lineStart, a = e.position, R(e, t, 1, !1, !0), g = e.tag, h = e.result, L(e, !0, t), v = e.input.charCodeAt(e.position), (d || e.line === r) && v === 58 && (u = !0, v = e.input.charCodeAt(++e.position), L(e, !0, t), R(e, t, 1, !1, !0), _ = e.result), f ? F(e, s, p, g, h, _, r, i, a) : u ? s.push(F(e, null, p, g, h, _, r, i, a)) : s.push(h), L(e, !0, t), v = e.input.charCodeAt(e.position), v === 44 ? (n = !0, v = e.input.charCodeAt(++e.position)) : n = !1;
1408
+ }
1409
+ E(e, "unexpected end of the stream within a flow collection");
1410
+ }
1411
+ t(se, "readFlowCollection");
1412
+ function ce(t, n) {
1413
+ let r, i = 1, a = !1, o = !1, s = n, c = 0, l = !1, u, d = t.input.charCodeAt(t.position);
1414
+ if (d === 124) r = !1;
1415
+ else if (d === 62) r = !0;
1416
+ else return !1;
1417
+ for (t.kind = "scalar", t.result = ""; d !== 0;) if (d = t.input.charCodeAt(++t.position), d === 43 || d === 45) i === 1 ? i = d === 43 ? 3 : 2 : E(t, "repeat of a chomping mode identifier");
1418
+ else if ((u = v(d)) >= 0) u === 0 ? E(t, "bad explicit indentation width of a block scalar; it cannot be less than one") : o ? E(t, "repeat of an indentation width identifier") : (s = n + u - 1, o = !0);
1419
+ else break;
1420
+ if (p(d)) {
1421
+ do
1422
+ d = t.input.charCodeAt(++t.position);
1423
+ while (p(d));
1424
+ if (d === 35) do
1425
+ d = t.input.charCodeAt(++t.position);
1426
+ while (!f(d) && d !== 0);
1427
+ }
1428
+ for (; d !== 0;) {
1429
+ for (I(t), t.lineIndent = 0, d = t.input.charCodeAt(t.position); (!o || t.lineIndent < s) && d === 32;) t.lineIndent++, d = t.input.charCodeAt(++t.position);
1430
+ if (!o && t.lineIndent > s && (s = t.lineIndent), f(d)) {
1431
+ c++;
1432
+ continue;
1433
+ }
1434
+ if (!o && s === 0 && E(t, "missing indentation for block scalar"), t.lineIndent < s) {
1435
+ i === 3 ? t.result += e.repeat("\n", a ? 1 + c : c) : i === 1 && a && (t.result += "\n");
1436
+ break;
1437
+ }
1438
+ r ? p(d) ? (l = !0, t.result += e.repeat("\n", a ? 1 + c : c)) : l ? (l = !1, t.result += e.repeat("\n", c + 1)) : c === 0 ? a && (t.result += " ") : t.result += e.repeat("\n", c) : t.result += e.repeat("\n", a ? 1 + c : c), a = !0, o = !0, c = 0;
1439
+ let n = t.position;
1440
+ for (; !f(d) && d !== 0;) d = t.input.charCodeAt(++t.position);
1441
+ N(t, n, t.position, !1);
1442
+ }
1443
+ return !0;
1444
+ }
1445
+ t(ce, "readBlockScalar");
1446
+ function le(e, t) {
1447
+ let n = e.tag, r = e.anchor, i = [], a = !1;
1448
+ if (e.firstTabInLine !== -1) return !1;
1449
+ e.anchor !== null && O(e, e.anchor, i);
1450
+ let o = e.input.charCodeAt(e.position);
1451
+ for (; o !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, E(e, "tab characters must not be used in indentation")), !(o !== 45 || !m(e.input.charCodeAt(e.position + 1))));) {
1452
+ if (a = !0, e.position++, L(e, !0, -1) && e.lineIndent <= t) {
1453
+ i.push(null), o = e.input.charCodeAt(e.position);
1454
+ continue;
1455
+ }
1456
+ let n = e.line;
1457
+ if (R(e, t, 3, !1, !0), i.push(e.result), L(e, !0, -1), o = e.input.charCodeAt(e.position), (e.line === n || e.lineIndent > t) && o !== 0) E(e, "bad indentation of a sequence entry");
1458
+ else if (e.lineIndent < t) break;
1459
+ }
1460
+ return a ? (e.tag = n, e.anchor = r, e.kind = "sequence", e.result = i, !0) : !1;
1461
+ }
1462
+ t(le, "readBlockSequence");
1463
+ function ue(e, t, n) {
1464
+ let r, i, a, o, s = e.tag, c = e.anchor, l = {}, u = /* @__PURE__ */ Object.create(null), d = null, f = null, h = null, g = !1, _ = !1;
1465
+ if (e.firstTabInLine !== -1) return !1;
1466
+ e.anchor !== null && O(e, e.anchor, l);
1467
+ let v = e.input.charCodeAt(e.position);
1468
+ for (; v !== 0;) {
1469
+ !g && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, E(e, "tab characters must not be used in indentation"));
1470
+ let y = e.input.charCodeAt(e.position + 1), b = e.line;
1471
+ if ((v === 63 || v === 58) && m(y)) v === 63 ? (g && (F(e, l, u, d, f, null, i, a, o), d = f = h = null), _ = !0, g = !0, r = !0) : g ? (g = !1, r = !0) : E(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, v = y;
1472
+ else {
1473
+ if (i = e.line, a = e.lineStart, o = e.position, !R(e, n, 2, !1, !0)) break;
1474
+ if (e.line === b) {
1475
+ for (v = e.input.charCodeAt(e.position); p(v);) v = e.input.charCodeAt(++e.position);
1476
+ if (v === 58) v = e.input.charCodeAt(++e.position), m(v) || E(e, "a whitespace character is expected after the key-value separator within a block mapping"), g && (F(e, l, u, d, f, null, i, a, o), d = f = h = null), _ = !0, g = !1, r = !1, d = e.tag, f = e.result;
1477
+ else if (_) E(e, "can not read an implicit mapping pair; a colon is missed");
1478
+ else return e.tag = s, e.anchor = c, !0;
1479
+ } else if (_) E(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
1480
+ else return e.tag = s, e.anchor = c, !0;
1481
+ }
1482
+ if ((e.line === b || e.lineIndent > t) && (g && (i = e.line, a = e.lineStart, o = e.position), R(e, t, 4, !0, r) && (g ? f = e.result : h = e.result), g || (F(e, l, u, d, f, h, i, a, o), d = f = h = null), L(e, !0, -1), v = e.input.charCodeAt(e.position)), (e.line === b || e.lineIndent > t) && v !== 0) E(e, "bad indentation of a mapping entry");
1483
+ else if (e.lineIndent < t) break;
1484
+ }
1485
+ return g && F(e, l, u, d, f, null, i, a, o), _ && (e.tag = s, e.anchor = c, e.kind = "mapping", e.result = l), _;
1486
+ }
1487
+ t(ue, "readBlockMapping");
1488
+ function de(e) {
1489
+ let t = !1, n = !1, r, i, o = e.input.charCodeAt(e.position);
1490
+ if (o !== 33) return !1;
1491
+ e.tag !== null && E(e, "duplication of a tag property"), o = e.input.charCodeAt(++e.position), o === 60 ? (t = !0, o = e.input.charCodeAt(++e.position)) : o === 33 ? (n = !0, r = "!!", o = e.input.charCodeAt(++e.position)) : r = "!";
1492
+ let s = e.position;
1493
+ if (t) {
1494
+ do
1495
+ o = e.input.charCodeAt(++e.position);
1496
+ while (o !== 0 && o !== 62);
1497
+ e.position < e.length ? (i = e.input.slice(s, e.position), o = e.input.charCodeAt(++e.position)) : E(e, "unexpected end of the stream within a verbatim tag");
1498
+ } else {
1499
+ for (; o !== 0 && !m(o);) o === 33 && (n ? E(e, "tag suffix cannot contain exclamation marks") : (r = e.input.slice(s - 1, e.position + 1), l.test(r) || E(e, "named tag handle cannot contain such characters"), n = !0, s = e.position + 1)), o = e.input.charCodeAt(++e.position);
1500
+ i = e.input.slice(s, e.position), c.test(i) && E(e, "tag suffix cannot contain flow indicator characters");
1501
+ }
1502
+ i && !u.test(i) && E(e, "tag name cannot contain such characters: " + i);
1503
+ try {
1504
+ i = decodeURIComponent(i);
1505
+ } catch {
1506
+ E(e, "tag name is malformed: " + i);
1507
+ }
1508
+ return t ? e.tag = i : a.call(e.tagMap, r) ? e.tag = e.tagMap[r] + i : r === "!" ? e.tag = "!" + i : r === "!!" ? e.tag = "tag:yaml.org,2002:" + i : E(e, "undeclared tag handle \"" + r + "\""), !0;
1509
+ }
1510
+ t(de, "readTagProperty");
1511
+ function fe(e) {
1512
+ let t = e.input.charCodeAt(e.position);
1513
+ if (t !== 38) return !1;
1514
+ e.anchor !== null && E(e, "duplication of an anchor property"), t = e.input.charCodeAt(++e.position);
1515
+ let n = e.position;
1516
+ for (; t !== 0 && !m(t) && !h(t);) t = e.input.charCodeAt(++e.position);
1517
+ return e.position === n && E(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(n, e.position), !0;
1518
+ }
1519
+ t(fe, "readAnchorProperty");
1520
+ function pe(e) {
1521
+ let t = e.input.charCodeAt(e.position);
1522
+ if (t !== 42) return !1;
1523
+ t = e.input.charCodeAt(++e.position);
1524
+ let n = e.position;
1525
+ for (; t !== 0 && !m(t) && !h(t);) t = e.input.charCodeAt(++e.position);
1526
+ e.position === n && E(e, "name of an alias node must contain at least one character");
1527
+ let r = e.input.slice(n, e.position);
1528
+ return a.call(e.anchorMap, r) || E(e, "unidentified alias \"" + r + "\""), e.result = e.anchorMap[r], L(e, !0, -1), !0;
1529
+ }
1530
+ t(pe, "readAlias");
1531
+ function me(e, t, n, r) {
1532
+ let i = j(e);
1533
+ return k(e), M(e, t), e.tag = null, e.anchor = null, e.kind = null, e.result = null, ue(e, n, r) && e.kind === "mapping" ? (ee(e), !0) : (A(e), M(e, i), !1);
1534
+ }
1535
+ t(me, "tryReadBlockMappingFromProperty");
1536
+ function R(e, t, n, r, i) {
1537
+ let o, s, c = 1, l = !1, u = !1, d = null, f, p, m;
1538
+ e.depth >= e.maxDepth && E(e, "nesting exceeded maxDepth (" + e.maxDepth + ")"), e.depth += 1, e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null;
1539
+ let h = o = s = n === 4 || n === 3;
1540
+ if (r && L(e, !0, -1) && (l = !0, e.lineIndent > t ? c = 1 : e.lineIndent === t ? c = 0 : e.lineIndent < t && (c = -1)), c === 1) for (;;) {
1541
+ let n = e.input.charCodeAt(e.position), r = j(e);
1542
+ if (l && (n === 33 && e.tag !== null || n === 38 && e.anchor !== null) || !de(e) && !fe(e)) break;
1543
+ d === null && (d = r), L(e, !0, -1) ? (l = !0, s = h, e.lineIndent > t ? c = 1 : e.lineIndent === t ? c = 0 : e.lineIndent < t && (c = -1)) : s = !1;
1544
+ }
1545
+ if (s &&= l || i, c === 1 || n === 4) {
1546
+ if (p = n === 1 || n === 2 ? t : t + 1, m = e.position - e.lineStart, c === 1) {
1547
+ if (s && (le(e, m) || ue(e, m, p)) || se(e, p)) u = !0;
1548
+ else {
1549
+ let t = e.input.charCodeAt(e.position);
1550
+ d !== null && h && !s && t !== 124 && t !== 62 && me(e, d, d.position - d.lineStart, p) || o && ce(e, p) || ae(e, p) || oe(e, p) ? u = !0 : pe(e) ? (u = !0, (e.tag !== null || e.anchor !== null) && E(e, "alias node should not have any properties")) : ie(e, p, n === 1) && (u = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && O(e, e.anchor, e.result);
1551
+ }
1552
+ } else c === 0 && (u = s && le(e, m));
1553
+ }
1554
+ if (e.tag === null) e.anchor !== null && O(e, e.anchor, e.result);
1555
+ else if (e.tag === "?") {
1556
+ e.result !== null && e.kind !== "scalar" && E(e, "unacceptable node kind for !<?> tag; it should be \"scalar\", not \"" + e.kind + "\"");
1557
+ for (let t = 0, n = e.implicitTypes.length; t < n; t += 1) if (f = e.implicitTypes[t], f.resolve(e.result)) {
1558
+ e.result = f.construct(e.result), e.tag = f.tag, e.anchor !== null && O(e, e.anchor, e.result);
1559
+ break;
1560
+ }
1561
+ } else if (e.tag !== "!") {
1562
+ if (a.call(e.typeMap[e.kind || "fallback"], e.tag)) f = e.typeMap[e.kind || "fallback"][e.tag];
1563
+ else {
1564
+ f = null;
1565
+ let t = e.typeMap.multi[e.kind || "fallback"];
1566
+ for (let n = 0, r = t.length; n < r; n += 1) if (e.tag.slice(0, t[n].tag.length) === t[n].tag) {
1567
+ f = t[n];
1568
+ break;
1569
+ }
1570
+ }
1571
+ f || E(e, "unknown tag !<" + e.tag + ">"), e.result !== null && f.kind !== e.kind && E(e, "unacceptable node kind for !<" + e.tag + "> tag; it should be \"" + f.kind + "\", not \"" + e.kind + "\""), f.resolve(e.result, e.tag) ? (e.result = f.construct(e.result, e.tag), e.anchor !== null && O(e, e.anchor, e.result)) : E(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
1572
+ }
1573
+ return e.listener !== null && e.listener("close", e), --e.depth, e.tag !== null || e.anchor !== null || u;
1574
+ }
1575
+ t(R, "composeNode");
1576
+ function z(e) {
1577
+ let t = e.position, n = !1, r;
1578
+ for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (r = e.input.charCodeAt(e.position)) !== 0 && (L(e, !0, -1), r = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || r !== 37));) {
1579
+ n = !0, r = e.input.charCodeAt(++e.position);
1580
+ let t = e.position;
1581
+ for (; r !== 0 && !m(r);) r = e.input.charCodeAt(++e.position);
1582
+ let i = e.input.slice(t, e.position), o = [];
1583
+ for (i.length < 1 && E(e, "directive name must not be less than one character in length"); r !== 0;) {
1584
+ for (; p(r);) r = e.input.charCodeAt(++e.position);
1585
+ if (r === 35) {
1586
+ do
1587
+ r = e.input.charCodeAt(++e.position);
1588
+ while (r !== 0 && !f(r));
1589
+ break;
1590
+ }
1591
+ if (f(r)) break;
1592
+ for (t = e.position; r !== 0 && !m(r);) r = e.input.charCodeAt(++e.position);
1593
+ o.push(e.input.slice(t, e.position));
1594
+ }
1595
+ r !== 0 && I(e), a.call(te, i) ? te[i](e, i, o) : D(e, "unknown document directive \"" + i + "\"");
1596
+ }
1597
+ if (L(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, L(e, !0, -1)) : n && E(e, "directives end mark is expected"), R(e, e.lineIndent - 1, 4, !1, !0), L(e, !0, -1), e.checkLineBreaks && s.test(e.input.slice(t, e.position)) && D(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && ne(e)) {
1598
+ e.input.charCodeAt(e.position) === 46 && (e.position += 3, L(e, !0, -1));
1599
+ return;
1600
+ }
1601
+ e.position < e.length - 1 && E(e, "end of the stream or a document separator is expected");
1602
+ }
1603
+ t(z, "readDocument");
1604
+ function he(e, t) {
1605
+ e = String(e), t ||= {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += "\n"), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
1606
+ let n = new w(e, t), r = e.indexOf("\0");
1607
+ for (r !== -1 && (n.position = r, E(n, "null byte is not allowed in input")), n.input += "\0"; n.input.charCodeAt(n.position) === 32;) n.lineIndent += 1, n.position += 1;
1608
+ for (; n.position < n.length - 1;) z(n);
1609
+ return n.documents;
1610
+ }
1611
+ t(he, "loadDocuments");
1612
+ function ge(e, t, n) {
1613
+ typeof t == "object" && t && n === void 0 && (n = t, t = null);
1614
+ let r = he(e, n);
1615
+ if (typeof t != "function") return r;
1616
+ for (let e = 0, n = r.length; e < n; e += 1) t(r[e]);
1617
+ }
1618
+ t(ge, "loadAll2");
1619
+ function _e(e, t) {
1620
+ let r = he(e, t);
1621
+ if (r.length !== 0) {
1622
+ if (r.length === 1) return r[0];
1623
+ throw new n("expected a single document in the stream, but found more");
1624
+ }
1625
+ }
1626
+ return t(_e, "load2"), ct.loadAll = ge, ct.load = _e, ct;
1627
+ }
1628
+ t(yn, "requireLoader");
1629
+ var bn = {}, xn;
1630
+ function Sn() {
1631
+ if (xn) return bn;
1632
+ xn = 1;
1633
+ let e = W(), n = G(), r = _n(), i = Object.prototype.toString, a = Object.prototype.hasOwnProperty, o = 65279, s = {};
1634
+ s[0] = "\\0", s[7] = "\\a", s[8] = "\\b", s[9] = "\\t", s[10] = "\\n", s[11] = "\\v", s[12] = "\\f", s[13] = "\\r", s[27] = "\\e", s[34] = "\\\"", s[92] = "\\\\", s[133] = "\\N", s[160] = "\\_", s[8232] = "\\L", s[8233] = "\\P";
1635
+ let c = [
1636
+ "y",
1637
+ "Y",
1638
+ "yes",
1639
+ "Yes",
1640
+ "YES",
1641
+ "on",
1642
+ "On",
1643
+ "ON",
1644
+ "n",
1645
+ "N",
1646
+ "no",
1647
+ "No",
1648
+ "NO",
1649
+ "off",
1650
+ "Off",
1651
+ "OFF"
1652
+ ], l = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
1653
+ function u(e, t) {
1654
+ if (t === null) return {};
1655
+ let n = {}, r = Object.keys(t);
1656
+ for (let i = 0, o = r.length; i < o; i += 1) {
1657
+ let o = r[i], s = String(t[o]);
1658
+ o.slice(0, 2) === "!!" && (o = "tag:yaml.org,2002:" + o.slice(2));
1659
+ let c = e.compiledTypeMap.fallback[o];
1660
+ c && a.call(c.styleAliases, s) && (s = c.styleAliases[s]), n[o] = s;
1661
+ }
1662
+ return n;
1663
+ }
1664
+ t(u, "compileStyleMap");
1665
+ function d(t) {
1666
+ let r, i, a = t.toString(16).toUpperCase();
1667
+ if (t <= 255) r = "x", i = 2;
1668
+ else if (t <= 65535) r = "u", i = 4;
1669
+ else if (t <= 4294967295) r = "U", i = 8;
1670
+ else throw new n("code point within a string may not be greater than 0xFFFFFFFF");
1671
+ return "\\" + r + e.repeat("0", i - a.length) + a;
1672
+ }
1673
+ t(d, "encodeHex");
1674
+ function f(t) {
1675
+ this.schema = t.schema || r, this.indent = Math.max(1, t.indent || 2), this.noArrayIndent = t.noArrayIndent || !1, this.skipInvalid = t.skipInvalid || !1, this.flowLevel = e.isNothing(t.flowLevel) ? -1 : t.flowLevel, this.styleMap = u(this.schema, t.styles || null), this.sortKeys = t.sortKeys || !1, this.lineWidth = t.lineWidth || 80, this.noRefs = t.noRefs || !1, this.noCompatMode = t.noCompatMode || !1, this.condenseFlow = t.condenseFlow || !1, this.quotingType = t.quotingType === "\"" ? 2 : 1, this.forceQuotes = t.forceQuotes || !1, this.replacer = typeof t.replacer == "function" ? t.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null;
1676
+ }
1677
+ t(f, "State");
1678
+ function p(t, n) {
1679
+ let r = e.repeat(" ", n), i = 0, a = "", o = t.length;
1680
+ for (; i < o;) {
1681
+ let e, n = t.indexOf("\n", i);
1682
+ n === -1 ? (e = t.slice(i), i = o) : (e = t.slice(i, n + 1), i = n + 1), e.length && e !== "\n" && (a += r), a += e;
1683
+ }
1684
+ return a;
1685
+ }
1686
+ t(p, "indentString");
1687
+ function m(t, n) {
1688
+ return "\n" + e.repeat(" ", t.indent * n);
1689
+ }
1690
+ t(m, "generateNextLine");
1691
+ function h(e, t) {
1692
+ for (let n = 0, r = e.implicitTypes.length; n < r; n += 1) if (e.implicitTypes[n].resolve(t)) return !0;
1693
+ return !1;
1694
+ }
1695
+ t(h, "testImplicitResolving");
1696
+ function g(e) {
1697
+ return e === 32 || e === 9;
1698
+ }
1699
+ t(g, "isWhitespace");
1700
+ function _(e) {
1701
+ return e >= 32 && e <= 126 || e >= 161 && e <= 55295 && e !== 8232 && e !== 8233 || e >= 57344 && e <= 65533 && e !== o || e >= 65536 && e <= 1114111;
1702
+ }
1703
+ t(_, "isPrintable");
1704
+ function v(e) {
1705
+ return _(e) && e !== o && e !== 13 && e !== 10;
1706
+ }
1707
+ t(v, "isNsCharOrWhitespace");
1708
+ function y(e, t, n) {
1709
+ let r = v(e), i = r && !g(e);
1710
+ return (n ? r : r && e !== 44 && e !== 91 && e !== 93 && e !== 123 && e !== 125) && e !== 35 && !(t === 58 && !i) || v(t) && !g(t) && e === 35 || t === 58 && i;
1711
+ }
1712
+ t(y, "isPlainSafe");
1713
+ function b(e) {
1714
+ return _(e) && e !== o && !g(e) && e !== 45 && e !== 63 && e !== 58 && e !== 44 && e !== 91 && e !== 93 && e !== 123 && e !== 125 && e !== 35 && e !== 38 && e !== 42 && e !== 33 && e !== 124 && e !== 61 && e !== 62 && e !== 39 && e !== 34 && e !== 37 && e !== 64 && e !== 96;
1715
+ }
1716
+ t(b, "isPlainSafeFirst");
1717
+ function x(e) {
1718
+ return !g(e) && e !== 58;
1719
+ }
1720
+ t(x, "isPlainSafeLast");
1721
+ function S(e, t) {
1722
+ let n = e.charCodeAt(t), r;
1723
+ return n >= 55296 && n <= 56319 && t + 1 < e.length && (r = e.charCodeAt(t + 1), r >= 56320 && r <= 57343) ? (n - 55296) * 1024 + r - 56320 + 65536 : n;
1724
+ }
1725
+ t(S, "codePointAt");
1726
+ function C(e) {
1727
+ return /^\n* /.test(e);
1728
+ }
1729
+ t(C, "needIndentIndicator");
1730
+ function w(e, t, n, r, i, a, o, s) {
1731
+ let c, l = 0, u = null, d = !1, f = !1, p = r !== -1, m = -1, h = b(S(e, 0)) && x(S(e, e.length - 1));
1732
+ if (t || o) for (c = 0; c < e.length; l >= 65536 ? c += 2 : c++) {
1733
+ if (l = S(e, c), !_(l)) return 5;
1734
+ h &&= y(l, u, s), u = l;
1735
+ }
1736
+ else {
1737
+ for (c = 0; c < e.length; l >= 65536 ? c += 2 : c++) {
1738
+ if (l = S(e, c), l === 10) d = !0, p && (f ||= c - m - 1 > r && e[m + 1] !== " ", m = c);
1739
+ else if (!_(l)) return 5;
1740
+ h &&= y(l, u, s), u = l;
1741
+ }
1742
+ f ||= p && c - m - 1 > r && e[m + 1] !== " ";
1743
+ }
1744
+ return !d && !f ? h && !o && !i(e) ? 1 : a === 2 ? 5 : 2 : n > 9 && C(e) ? 5 : o ? a === 2 ? 5 : 2 : f ? 4 : 3;
1745
+ }
1746
+ t(w, "chooseScalarStyle");
1747
+ function T(e, r, i, a, o) {
1748
+ e.dump = (function() {
1749
+ if (r.length === 0) return e.quotingType === 2 ? "\"\"" : "''";
1750
+ if (!e.noCompatMode && (c.indexOf(r) !== -1 || l.test(r))) return e.quotingType === 2 ? "\"" + r + "\"" : "'" + r + "'";
1751
+ let s = e.indent * Math.max(1, i), u = e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - s), d = a || e.flowLevel > -1 && i >= e.flowLevel;
1752
+ function f(t) {
1753
+ return h(e, t);
1754
+ }
1755
+ switch (t(f, "testAmbiguity"), w(r, d, e.indent, u, f, e.quotingType, e.forceQuotes && !a, o)) {
1756
+ case 1: return r;
1757
+ case 2: return "'" + r.replace(/'/g, "''") + "'";
1758
+ case 3: return "|" + E(r, e.indent) + D(p(r, s));
1759
+ case 4: return ">" + E(r, e.indent) + D(p(O(r, u), s));
1760
+ case 5: return "\"" + ee(r) + "\"";
1761
+ default: throw new n("impossible error: invalid scalar style");
1762
+ }
1763
+ })();
1764
+ }
1765
+ t(T, "writeScalar");
1766
+ function E(e, t) {
1767
+ let n = C(e) ? String(t) : "", r = e[e.length - 1] === "\n";
1768
+ return n + (r && (e[e.length - 2] === "\n" || e === "\n") ? "+" : r ? "" : "-") + "\n";
1769
+ }
1770
+ t(E, "blockHeader");
1771
+ function D(e) {
1772
+ return e[e.length - 1] === "\n" ? e.slice(0, -1) : e;
1773
+ }
1774
+ t(D, "dropEndingNewline");
1775
+ function O(e, t) {
1776
+ let n = /(\n+)([^\n]*)/g, r = (function() {
1777
+ let r = e.indexOf("\n");
1778
+ return r = r === -1 ? e.length : r, n.lastIndex = r, k(e.slice(0, r), t);
1779
+ })(), i = e[0] === "\n" || e[0] === " ", a, o;
1780
+ for (; o = n.exec(e);) {
1781
+ let e = o[1], n = o[2];
1782
+ a = n[0] === " ", r += e + (!i && !a && n !== "" ? "\n" : "") + k(n, t), i = a;
1783
+ }
1784
+ return r;
1785
+ }
1786
+ t(O, "foldString");
1787
+ function k(e, t) {
1788
+ if (e === "" || e[0] === " ") return e;
1789
+ let n = / [^ ]/g, r, i = 0, a, o = 0, s = 0, c = "";
1790
+ for (; r = n.exec(e);) s = r.index, s - i > t && (a = o > i ? o : s, c += "\n" + e.slice(i, a), i = a + 1), o = s;
1791
+ return c += "\n", e.length - i > t && o > i ? c += e.slice(i, o) + "\n" + e.slice(o + 1) : c += e.slice(i), c.slice(1);
1792
+ }
1793
+ t(k, "foldLine");
1794
+ function ee(e) {
1795
+ let t = "", n = 0;
1796
+ for (let r = 0; r < e.length; n >= 65536 ? r += 2 : r++) {
1797
+ n = S(e, r);
1798
+ let i = s[n];
1799
+ !i && _(n) ? (t += e[r], n >= 65536 && (t += e[r + 1])) : t += i || d(n);
1800
+ }
1801
+ return t;
1802
+ }
1803
+ t(ee, "escapeString");
1804
+ function A(e, t, n) {
1805
+ let r = "", i = e.tag;
1806
+ for (let i = 0, a = n.length; i < a; i += 1) {
1807
+ let a = n[i];
1808
+ e.replacer && (a = e.replacer.call(n, String(i), a)), (P(e, t, a, !1, !1) || a === void 0 && P(e, t, null, !1, !1)) && (r !== "" && (r += "," + (e.condenseFlow ? "" : " ")), r += e.dump);
1809
+ }
1810
+ e.tag = i, e.dump = "[" + r + "]";
1811
+ }
1812
+ t(A, "writeFlowSequence");
1813
+ function j(e, t, n, r) {
1814
+ let i = "", a = e.tag;
1815
+ for (let a = 0, o = n.length; a < o; a += 1) {
1816
+ let o = n[a];
1817
+ e.replacer && (o = e.replacer.call(n, String(a), o)), (P(e, t + 1, o, !0, !0, !1, !0) || o === void 0 && P(e, t + 1, null, !0, !0, !1, !0)) && ((!r || i !== "") && (i += m(e, t)), e.dump && e.dump.charCodeAt(0) === 10 ? i += "-" : i += "- ", i += e.dump);
1818
+ }
1819
+ e.tag = a, e.dump = i || "[]";
1820
+ }
1821
+ t(j, "writeBlockSequence");
1822
+ function M(e, t, n) {
1823
+ let r = "", i = e.tag, a = Object.keys(n);
1824
+ for (let i = 0, o = a.length; i < o; i += 1) {
1825
+ let o = "";
1826
+ r !== "" && (o += ", "), e.condenseFlow && (o += "\"");
1827
+ let s = a[i], c = n[s];
1828
+ e.replacer && (c = e.replacer.call(n, s, c)), P(e, t, s, !1, !1) && (e.dump.length > 1024 && (o += "? "), o += e.dump + (e.condenseFlow ? "\"" : "") + ":" + (e.condenseFlow ? "" : " "), P(e, t, c, !1, !1) && (o += e.dump, r += o));
1829
+ }
1830
+ e.tag = i, e.dump = "{" + r + "}";
1831
+ }
1832
+ t(M, "writeFlowMapping");
1833
+ function te(e, t, r, i) {
1834
+ let a = "", o = e.tag, s = Object.keys(r);
1835
+ if (e.sortKeys === !0) s.sort();
1836
+ else if (typeof e.sortKeys == "function") s.sort(e.sortKeys);
1837
+ else if (e.sortKeys) throw new n("sortKeys must be a boolean or a function");
1838
+ for (let n = 0, o = s.length; n < o; n += 1) {
1839
+ let o = "";
1840
+ (!i || a !== "") && (o += m(e, t));
1841
+ let c = s[n], l = r[c];
1842
+ if (e.replacer && (l = e.replacer.call(r, c, l)), !P(e, t + 1, c, !0, !0, !0)) continue;
1843
+ let u = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024;
1844
+ u && (e.dump && e.dump.charCodeAt(0) === 10 ? o += "?" : o += "? "), o += e.dump, u && (o += m(e, t)), P(e, t + 1, l, !0, u) && (e.dump && e.dump.charCodeAt(0) === 10 ? o += ":" : o += ": ", o += e.dump, a += o);
1845
+ }
1846
+ e.tag = o, e.dump = a || "{}";
1847
+ }
1848
+ t(te, "writeBlockMapping");
1849
+ function N(e, t, r) {
1850
+ let o = r ? e.explicitTypes : e.implicitTypes;
1851
+ for (let s = 0, c = o.length; s < c; s += 1) {
1852
+ let c = o[s];
1853
+ if ((c.instanceOf || c.predicate) && (!c.instanceOf || typeof t == "object" && t instanceof c.instanceOf) && (!c.predicate || c.predicate(t))) {
1854
+ if (e.tag = r ? c.multi && c.representName ? c.representName(t) : c.tag : "?", c.represent) {
1855
+ let r = e.styleMap[c.tag] || c.defaultStyle, o;
1856
+ if (i.call(c.represent) === "[object Function]") o = c.represent(t, r);
1857
+ else if (a.call(c.represent, r)) o = c.represent[r](t, r);
1858
+ else throw new n("!<" + c.tag + "> tag resolver accepts not \"" + r + "\" style");
1859
+ e.dump = o;
1860
+ }
1861
+ return !0;
1862
+ }
1863
+ }
1864
+ return !1;
1865
+ }
1866
+ t(N, "detectType");
1867
+ function P(e, t, r, a, o, s, c) {
1868
+ e.tag = null, e.dump = r, N(e, r, !1) || N(e, r, !0);
1869
+ let l = i.call(e.dump), u = a;
1870
+ a &&= e.flowLevel < 0 || e.flowLevel > t;
1871
+ let d = l === "[object Object]" || l === "[object Array]", f, p;
1872
+ if (d && (f = e.duplicates.indexOf(r), p = f !== -1), (e.tag !== null && e.tag !== "?" || p || e.indent !== 2 && t > 0) && (o = !1), p && e.usedDuplicates[f]) e.dump = "*ref_" + f;
1873
+ else {
1874
+ if (d && p && !e.usedDuplicates[f] && (e.usedDuplicates[f] = !0), l === "[object Object]") a && Object.keys(e.dump).length !== 0 ? (te(e, t, e.dump, o), p && (e.dump = "&ref_" + f + e.dump)) : (M(e, t, e.dump), p && (e.dump = "&ref_" + f + " " + e.dump));
1875
+ else if (l === "[object Array]") a && e.dump.length !== 0 ? (e.noArrayIndent && !c && t > 0 ? j(e, t - 1, e.dump, o) : j(e, t, e.dump, o), p && (e.dump = "&ref_" + f + e.dump)) : (A(e, t, e.dump), p && (e.dump = "&ref_" + f + " " + e.dump));
1876
+ else if (l === "[object String]") e.tag !== "?" && T(e, e.dump, t, s, u);
1877
+ else if (l === "[object Undefined]") return !1;
1878
+ else {
1879
+ if (e.skipInvalid) return !1;
1880
+ throw new n("unacceptable kind of an object to dump " + l);
1881
+ }
1882
+ if (e.tag !== null && e.tag !== "?") {
1883
+ let t = encodeURI(e.tag[0] === "!" ? e.tag.slice(1) : e.tag).replace(/!/g, "%21");
1884
+ t = e.tag[0] === "!" ? "!" + t : t.slice(0, 18) === "tag:yaml.org,2002:" ? "!!" + t.slice(18) : "!<" + t + ">", e.dump = t + " " + e.dump;
1885
+ }
1886
+ }
1887
+ return !0;
1888
+ }
1889
+ t(P, "writeNode");
1890
+ function F(e, t) {
1891
+ let n = [], r = [];
1892
+ I(e, n, r);
1893
+ let i = r.length;
1894
+ for (let e = 0; e < i; e += 1) t.duplicates.push(n[r[e]]);
1895
+ t.usedDuplicates = Array(i);
1896
+ }
1897
+ t(F, "getDuplicateReferences");
1898
+ function I(e, t, n) {
1899
+ if (typeof e == "object" && e) {
1900
+ let r = t.indexOf(e);
1901
+ if (r !== -1) n.indexOf(r) === -1 && n.push(r);
1902
+ else if (t.push(e), Array.isArray(e)) for (let r = 0, i = e.length; r < i; r += 1) I(e[r], t, n);
1903
+ else {
1904
+ let r = Object.keys(e);
1905
+ for (let i = 0, a = r.length; i < a; i += 1) I(e[r[i]], t, n);
1906
+ }
1907
+ }
1908
+ }
1909
+ t(I, "inspectNode");
1910
+ function L(e, t) {
1911
+ t ||= {};
1912
+ let n = new f(t);
1913
+ n.noRefs || F(e, n);
1914
+ let r = e;
1915
+ return n.replacer && (r = n.replacer.call({ "": r }, "", r)), P(n, 0, r, !0, !0) ? n.dump + "\n" : "";
1916
+ }
1917
+ return t(L, "dump2"), bn.dump = L, bn;
1918
+ }
1919
+ t(Sn, "requireDumper");
1920
+ var Cn;
1921
+ function wn() {
1922
+ if (Cn) return H;
1923
+ Cn = 1;
1924
+ let e = yn(), n = Sn();
1925
+ function r(e, t) {
1926
+ return function() {
1927
+ throw Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + t + " instead, which is now safe by default.");
1928
+ };
1929
+ }
1930
+ return t(r, "renamed"), H.Type = K(), H.Schema = yt(), H.FAILSAFE_SCHEMA = jt(), H.JSON_SCHEMA = Kt(), H.CORE_SCHEMA = Yt(), H.DEFAULT_SCHEMA = _n(), H.load = e.load, H.loadAll = e.loadAll, H.dump = n.dump, H.YAMLException = G(), H.types = {
1931
+ binary: an(),
1932
+ float: Ut(),
1933
+ map: Ot(),
1934
+ null: Pt(),
1935
+ pairs: dn(),
1936
+ set: mn(),
1937
+ timestamp: Qt(),
1938
+ bool: Lt(),
1939
+ int: Bt(),
1940
+ merge: tn(),
1941
+ omap: cn(),
1942
+ seq: Tt(),
1943
+ str: St()
1944
+ }, H.safeLoad = r("safeLoad", "load"), H.safeLoadAll = r("safeLoadAll", "loadAll"), H.safeDump = r("safeDump", "dump"), H;
1945
+ }
1946
+ t(wn, "requireJsYaml");
1947
+ var { Type: Tn, Schema: En, FAILSAFE_SCHEMA: Dn, JSON_SCHEMA: On, CORE_SCHEMA: kn, DEFAULT_SCHEMA: An, load: jn, loadAll: Mn, dump: Nn, YAMLException: Pn, types: Fn, safeLoad: In, safeLoadAll: Ln, safeDump: Rn } = /* @__PURE__ */ st(wn()), zn = "comm", Bn = "rule", Vn = "decl", Hn = "@import", Un = "@namespace", Wn = "@keyframes", Gn = "@layer", Kn = Math.abs, qn = String.fromCharCode;
1948
+ function Jn(e) {
1949
+ return e.trim();
1950
+ }
1951
+ function Yn(e, t, n) {
1952
+ return e.replace(t, n);
1953
+ }
1954
+ function Xn(e, t) {
1955
+ return e.charCodeAt(t) | 0;
1956
+ }
1957
+ function Zn(e, t, n) {
1958
+ return e.slice(t, n);
1959
+ }
1960
+ function q(e) {
1961
+ return e.length;
1962
+ }
1963
+ function Qn(e) {
1964
+ return e.length;
1965
+ }
1966
+ function $n(e, t) {
1967
+ return t.push(e), e;
1968
+ }
1969
+ //#endregion
1970
+ //#region ../node_modules/stylis/src/Tokenizer.js
1971
+ var er = 1, tr = 1, nr = 0, J = 0, Y = 0, rr = "";
1972
+ function ir(e, t, n, r, i, a, o, s) {
1973
+ return {
1974
+ value: e,
1975
+ root: t,
1976
+ parent: n,
1977
+ type: r,
1978
+ props: i,
1979
+ children: a,
1980
+ line: er,
1981
+ column: tr,
1982
+ length: o,
1983
+ return: "",
1984
+ siblings: s
1985
+ };
1986
+ }
1987
+ function ar() {
1988
+ return Y;
1989
+ }
1990
+ function or() {
1991
+ return Y = J > 0 ? Xn(rr, --J) : 0, tr--, Y === 10 && (tr = 1, er--), Y;
1992
+ }
1993
+ function X() {
1994
+ return Y = J < nr ? Xn(rr, J++) : 0, tr++, Y === 10 && (tr = 1, er++), Y;
1995
+ }
1996
+ function Z() {
1997
+ return Xn(rr, J);
1998
+ }
1999
+ function sr() {
2000
+ return J;
2001
+ }
2002
+ function cr(e, t) {
2003
+ return Zn(rr, e, t);
2004
+ }
2005
+ function lr(e) {
2006
+ switch (e) {
2007
+ case 0:
2008
+ case 9:
2009
+ case 10:
2010
+ case 13:
2011
+ case 32: return 5;
2012
+ case 33:
2013
+ case 43:
2014
+ case 44:
2015
+ case 47:
2016
+ case 62:
2017
+ case 64:
2018
+ case 126:
2019
+ case 59:
2020
+ case 123:
2021
+ case 125: return 4;
2022
+ case 58: return 3;
2023
+ case 34:
2024
+ case 39:
2025
+ case 40:
2026
+ case 91: return 2;
2027
+ case 41:
2028
+ case 93: return 1;
2029
+ }
2030
+ return 0;
2031
+ }
2032
+ function ur(e) {
2033
+ return er = tr = 1, nr = q(rr = e), J = 0, [];
2034
+ }
2035
+ function dr(e) {
2036
+ return rr = "", e;
2037
+ }
2038
+ function fr(e) {
2039
+ return Jn(cr(J - 1, hr(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
2040
+ }
2041
+ function pr(e) {
2042
+ for (; (Y = Z()) && Y < 33;) X();
2043
+ return lr(e) > 2 || lr(Y) > 3 ? "" : " ";
2044
+ }
2045
+ function mr(e, t) {
2046
+ for (; --t && X() && !(Y < 48 || Y > 102 || Y > 57 && Y < 65 || Y > 70 && Y < 97););
2047
+ return cr(e, sr() + (t < 6 && Z() == 32 && X() == 32));
2048
+ }
2049
+ function hr(e) {
2050
+ for (; X();) switch (Y) {
2051
+ case e: return J;
2052
+ case 34:
2053
+ case 39:
2054
+ e !== 34 && e !== 39 && hr(Y);
2055
+ break;
2056
+ case 40:
2057
+ e === 41 && hr(e);
2058
+ break;
2059
+ case 92:
2060
+ X();
2061
+ break;
2062
+ }
2063
+ return J;
2064
+ }
2065
+ function gr(e, t) {
2066
+ for (; X() && e + Y !== 57 && (e + Y !== 84 || Z() !== 47););
2067
+ return "/*" + cr(t, J - 1) + "*" + qn(e === 47 ? e : X());
2068
+ }
2069
+ function _r(e) {
2070
+ for (; !lr(Z());) X();
2071
+ return cr(e, J);
2072
+ }
2073
+ //#endregion
2074
+ //#region ../node_modules/stylis/src/Parser.js
2075
+ function vr(e) {
2076
+ return dr(yr("", null, null, null, [""], e = ur(e), 0, [0], e));
2077
+ }
2078
+ function yr(e, t, n, r, i, a, o, s, c) {
2079
+ for (var l = 0, u = 0, d = o, f = 0, p = 0, m = 0, h = 1, g = 1, _ = 1, v = 0, y = 0, b = "", x = i, S = a, C = r, w = b; g;) switch (m = y, y = X()) {
2080
+ case 40:
2081
+ m != 108 && Xn(w, d - 1) == 58 ? (v++, w += "(") : w += fr(y);
2082
+ break;
2083
+ case 41:
2084
+ v--, w += ")";
2085
+ break;
2086
+ case 34:
2087
+ case 39:
2088
+ case 91:
2089
+ w += fr(y);
2090
+ break;
2091
+ case 9:
2092
+ case 10:
2093
+ case 13:
2094
+ case 32:
2095
+ if (v > 0) {
2096
+ w += qn(y);
2097
+ break;
2098
+ }
2099
+ w += pr(m);
2100
+ break;
2101
+ case 92:
2102
+ w += mr(sr() - 1, 7);
2103
+ continue;
2104
+ case 47:
2105
+ switch (Z()) {
2106
+ case 42:
2107
+ case 47:
2108
+ $n(xr(gr(X(), sr()), t, n, c), c), (lr(m || 1) == 5 || lr(Z() || 1) == 5) && q(w) && Zn(w, -1, void 0) !== " " && (w += " ");
2109
+ break;
2110
+ default: w += "/";
2111
+ }
2112
+ break;
2113
+ case 123 * h: s[l++] = q(w) * _;
2114
+ case 125 * h:
2115
+ case 59:
2116
+ case 0:
2117
+ if (v > 0 && y) {
2118
+ w += qn(y);
2119
+ break;
2120
+ }
2121
+ switch (y) {
2122
+ case 0:
2123
+ case 125: g = 0;
2124
+ case 59 + u:
2125
+ _ == -1 && (w = Yn(w, /\f/g, "")), p > 0 && (q(w) - d || h === 0) && $n(p > 32 ? Sr(w + ";", r, n, d - 1, c) : Sr(Yn(w, " ", "") + ";", r, n, d - 2, c), c);
2126
+ break;
2127
+ case 59: w += ";";
2128
+ default: if ($n(C = br(w, t, n, l, u, i, s, b, x = [], S = [], d, a), a), y === 123) {
2129
+ if (u === 0) yr(w, t, C, C, x, a, d, s, S);
2130
+ else {
2131
+ switch (f) {
2132
+ case 99: if (Xn(w, 3) === 110) break;
2133
+ case 108: if (Xn(w, 2) === 97) break;
2134
+ default: u = 0;
2135
+ case 100:
2136
+ case 109:
2137
+ case 115:
2138
+ }
2139
+ u ? yr(e, C, C, r && $n(br(e, C, C, 0, 0, i, s, b, i, x = [], d, S), S), i, S, d, s, r ? x : S) : yr(w, C, C, C, [""], S, 0, s, S);
2140
+ }
2141
+ }
2142
+ }
2143
+ l = u = p = 0, h = _ = 1, b = w = "", d = o;
2144
+ break;
2145
+ case 58: d = 1 + q(w), p = m;
2146
+ default:
2147
+ if (h < 1) {
2148
+ if (y == 123) --h;
2149
+ else if (y == 125 && h++ == 0 && or() == 125) continue;
2150
+ }
2151
+ switch (w += qn(y), y * h) {
2152
+ case 38:
2153
+ _ = u > 0 ? 1 : (w += "\f", -1);
2154
+ break;
2155
+ case 44:
2156
+ if (v > 0) break;
2157
+ s[l++] = (q(w) - 1) * _, _ = 1;
2158
+ break;
2159
+ case 64:
2160
+ Z() === 45 && (w += fr(X())), f = Z(), u = d = q(b = w += _r(sr())), y++;
2161
+ break;
2162
+ case 45: m === 45 && q(w) == 2 && (h = 0);
2163
+ }
2164
+ }
2165
+ return a;
2166
+ }
2167
+ function br(e, t, n, r, i, a, o, s, c, l, u, d) {
2168
+ for (var f = i - 1, p = i === 0 ? a : [""], m = Qn(p), h = 0, g = 0, _ = 0; h < r; ++h) for (var v = 0, y = Zn(e, f + 1, f = Kn(g = o[h])), b = e; v < m; ++v) (b = Jn(g > 0 ? p[v] + " " + y : Yn(y, /&\f/g, p[v]))) && (c[_++] = b);
2169
+ return ir(e, t, n, i === 0 ? Bn : s, c, l, u, d);
2170
+ }
2171
+ function xr(e, t, n, r) {
2172
+ return ir(e, t, n, zn, qn(ar()), Zn(e, 2, -2), 0, r);
2173
+ }
2174
+ function Sr(e, t, n, r, i) {
2175
+ return ir(e, t, n, Vn, Zn(e, 0, r), Zn(e, r + 1, -1), r, i);
2176
+ }
2177
+ //#endregion
2178
+ //#region ../node_modules/stylis/src/Serializer.js
2179
+ function Cr(e, t) {
2180
+ for (var n = "", r = 0; r < e.length; r++) n += t(e[r], r, e, t) || "";
2181
+ return n;
2182
+ }
2183
+ function wr(e, t, n, r) {
2184
+ switch (e.type) {
2185
+ case Gn: if (e.children.length) break;
2186
+ case Hn:
2187
+ case Un:
2188
+ case Vn: return e.return = e.return || e.value;
2189
+ case zn: return "";
2190
+ case Wn: return e.return = e.value + "{" + Cr(e.children, r) + "}";
2191
+ case Bn: if (!q(e.value = e.props.join(","))) return "";
2192
+ }
2193
+ return q(n = Cr(e.children, r)) ? e.return = e.value + "{" + n + "}" : "";
2194
+ }
2195
+ //#endregion
2196
+ //#region ../node_modules/stylis/src/Middleware.js
2197
+ function Tr(e) {
2198
+ var t = Qn(e);
2199
+ return function(n, r, i, a) {
2200
+ for (var o = "", s = 0; s < t; s++) o += e[s](n, r, i, a) || "";
2201
+ return o;
2202
+ };
2203
+ }
2204
+ //#endregion
2205
+ //#region ../node_modules/mermaid/dist/mermaid.core.mjs
2206
+ var Er = /* @__PURE__ */ e({
2207
+ clearLayoutRenderState: () => Xe,
2208
+ createCommonLayoutRenderer: () => Ye,
2209
+ default: () => ro,
2210
+ defaultMeasureLayout: () => Ze,
2211
+ paintLayoutData: () => Qe
2212
+ }), Dr = "c4", Or = {
2213
+ id: Dr,
2214
+ detector: /* @__PURE__ */ t((e) => /^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e), "detector"),
2215
+ loader: /* @__PURE__ */ t(async () => {
2216
+ let { diagram: e } = await import("./c4Diagram-7LVT6UL2-CU4tNaf1.js");
2217
+ return {
2218
+ id: Dr,
2219
+ diagram: e
2220
+ };
2221
+ }, "loader")
2222
+ }, kr = "flowchart", Ar = {
2223
+ id: kr,
2224
+ detector: /* @__PURE__ */ t((e, t) => t?.flowchart?.defaultRenderer === "dagre-wrapper" || t?.flowchart?.defaultRenderer === "elk" ? !1 : /^\s*graph/.test(e), "detector"),
2225
+ loader: /* @__PURE__ */ t(async () => {
2226
+ let { diagram: e } = await import("./flowDiagram-T62WH6J4-DdJo3Te1.js");
2227
+ return {
2228
+ id: kr,
2229
+ diagram: e
2230
+ };
2231
+ }, "loader")
2232
+ }, jr = "flowchart-v2", Mr = {
2233
+ id: jr,
2234
+ detector: /* @__PURE__ */ t((e, t) => t?.flowchart?.defaultRenderer !== "dagre-d3" && (t?.flowchart?.defaultRenderer === "elk" && (t.layout = "elk"), /^\s*graph/.test(e) && t?.flowchart?.defaultRenderer === "dagre-wrapper" ? !0 : /^\s*flowchart/.test(e)), "detector"),
2235
+ loader: /* @__PURE__ */ t(async () => {
2236
+ let { diagram: e } = await import("./flowDiagram-T62WH6J4-DdJo3Te1.js");
2237
+ return {
2238
+ id: jr,
2239
+ diagram: e
2240
+ };
2241
+ }, "loader")
2242
+ }, Nr = "swimlane", Pr = {
2243
+ id: Nr,
2244
+ detector: /* @__PURE__ */ t((e) => /^\s*swimlane-beta\b/.test(e), "detector"),
2245
+ loader: /* @__PURE__ */ t(async () => {
2246
+ let { diagram: e } = await import("./swimlanesDiagram-JKAHXJPX-DyQwD-QO.js");
2247
+ return {
2248
+ id: Nr,
2249
+ diagram: e
2250
+ };
2251
+ }, "loader")
2252
+ }, Fr = "er", Ir = {
2253
+ id: Fr,
2254
+ detector: /* @__PURE__ */ t((e) => /^\s*erDiagram/.test(e), "detector"),
2255
+ loader: /* @__PURE__ */ t(async () => {
2256
+ let { diagram: e } = await import("./erDiagram-2YWLMYGG-IL4IhNXb.js");
2257
+ return {
2258
+ id: Fr,
2259
+ diagram: e
2260
+ };
2261
+ }, "loader")
2262
+ }, Lr = "gitGraph", Rr = {
2263
+ id: Lr,
2264
+ detector: /* @__PURE__ */ t((e) => /^\s*gitGraph/.test(e), "detector"),
2265
+ loader: /* @__PURE__ */ t(async () => {
2266
+ let { diagram: e } = await import("./gitGraphDiagram-WWUBYQGX-CjeedV4i.js");
2267
+ return {
2268
+ id: Lr,
2269
+ diagram: e
2270
+ };
2271
+ }, "loader")
2272
+ }, zr = "gantt", Br = {
2273
+ id: zr,
2274
+ detector: /* @__PURE__ */ t((e) => /^\s*gantt/.test(e), "detector"),
2275
+ loader: /* @__PURE__ */ t(async () => {
2276
+ let { diagram: e } = await import("./ganttDiagram-EL5Y4UJY-CIBhrOW6.js");
2277
+ return {
2278
+ id: zr,
2279
+ diagram: e
2280
+ };
2281
+ }, "loader")
2282
+ }, Vr = "info", Hr = {
2283
+ id: Vr,
2284
+ detector: /* @__PURE__ */ t((e) => /^\s*info/.test(e), "detector"),
2285
+ loader: /* @__PURE__ */ t(async () => {
2286
+ let { diagram: e } = await import("./infoDiagram-FKFFQAWI-BalzsRT4.js");
2287
+ return {
2288
+ id: Vr,
2289
+ diagram: e
2290
+ };
2291
+ }, "loader")
2292
+ }, Ur = "pie", Wr = {
2293
+ id: Ur,
2294
+ detector: /* @__PURE__ */ t((e) => /^\s*pie/.test(e), "detector"),
2295
+ loader: /* @__PURE__ */ t(async () => {
2296
+ let { diagram: e } = await import("./pieDiagram-E7YTZNPT-DSx5wFMY.js");
2297
+ return {
2298
+ id: Ur,
2299
+ diagram: e
2300
+ };
2301
+ }, "loader")
2302
+ }, Gr = "quadrantChart", Kr = {
2303
+ id: Gr,
2304
+ detector: /* @__PURE__ */ t((e) => /^\s*quadrantChart/.test(e), "detector"),
2305
+ loader: /* @__PURE__ */ t(async () => {
2306
+ let { diagram: e } = await import("./quadrantDiagram-AXDQQJYC-D8Y50xmh.js");
2307
+ return {
2308
+ id: Gr,
2309
+ diagram: e
2310
+ };
2311
+ }, "loader")
2312
+ }, qr = "xychart", Jr = {
2313
+ id: qr,
2314
+ detector: /* @__PURE__ */ t((e) => /^\s*xychart(-beta)?/.test(e), "detector"),
2315
+ loader: /* @__PURE__ */ t(async () => {
2316
+ let { diagram: e } = await import("./xychartDiagram-S5SC5T6Z-D6QDBBGJ.js");
2317
+ return {
2318
+ id: qr,
2319
+ diagram: e
2320
+ };
2321
+ }, "loader")
2322
+ }, Yr = "requirement", Xr = {
2323
+ id: Yr,
2324
+ detector: /* @__PURE__ */ t((e) => /^\s*requirement(Diagram)?/.test(e), "detector"),
2325
+ loader: /* @__PURE__ */ t(async () => {
2326
+ let { diagram: e } = await import("./requirementDiagram-IS5BZ75X-C1OrS7DV.js");
2327
+ return {
2328
+ id: Yr,
2329
+ diagram: e
2330
+ };
2331
+ }, "loader")
2332
+ }, Zr = "sequence", Qr = {
2333
+ id: Zr,
2334
+ detector: /* @__PURE__ */ t((e) => /^\s*sequenceDiagram/.test(e), "detector"),
2335
+ loader: /* @__PURE__ */ t(async () => {
2336
+ let { diagram: e } = await import("./sequenceDiagram-WJ2MYXX4-Ba-z2rSx.js");
2337
+ return {
2338
+ id: Zr,
2339
+ diagram: e
2340
+ };
2341
+ }, "loader")
2342
+ }, $r = "class", ei = {
2343
+ id: $r,
2344
+ detector: /* @__PURE__ */ t((e, t) => t?.class?.defaultRenderer !== "dagre-wrapper" && /^\s*classDiagram/.test(e), "detector"),
2345
+ loader: /* @__PURE__ */ t(async () => {
2346
+ let { diagram: e } = await import("./classDiagram-CYGNFDIV-DIu4rTyR.js");
2347
+ return {
2348
+ id: $r,
2349
+ diagram: e
2350
+ };
2351
+ }, "loader")
2352
+ }, ti = "classDiagram", ni = {
2353
+ id: ti,
2354
+ detector: /* @__PURE__ */ t((e, t) => /^\s*classDiagram/.test(e) && t?.class?.defaultRenderer === "dagre-wrapper" ? !0 : /^\s*classDiagram-v2/.test(e), "detector"),
2355
+ loader: /* @__PURE__ */ t(async () => {
2356
+ let { diagram: e } = await import("./classDiagram-v2-TLXNO2FR-BsYK4QnI.js");
2357
+ return {
2358
+ id: ti,
2359
+ diagram: e
2360
+ };
2361
+ }, "loader")
2362
+ }, ri = "state", ii = {
2363
+ id: ri,
2364
+ detector: /* @__PURE__ */ t((e, t) => t?.state?.defaultRenderer !== "dagre-wrapper" && /^\s*stateDiagram/.test(e), "detector"),
2365
+ loader: /* @__PURE__ */ t(async () => {
2366
+ let { diagram: e } = await import("./stateDiagram-XQSTLZYL-BtcUS_dg.js");
2367
+ return {
2368
+ id: ri,
2369
+ diagram: e
2370
+ };
2371
+ }, "loader")
2372
+ }, ai = "stateDiagram", oi = {
2373
+ id: ai,
2374
+ detector: /* @__PURE__ */ t((e, t) => !!(/^\s*stateDiagram-v2/.test(e) || /^\s*stateDiagram/.test(e) && t?.state?.defaultRenderer === "dagre-wrapper"), "detector"),
2375
+ loader: /* @__PURE__ */ t(async () => {
2376
+ let { diagram: e } = await import("./stateDiagram-v2-IH3M54BS-E_Rhduzm.js");
2377
+ return {
2378
+ id: ai,
2379
+ diagram: e
2380
+ };
2381
+ }, "loader")
2382
+ }, si = "journey", ci = {
2383
+ id: si,
2384
+ detector: /* @__PURE__ */ t((e) => /^\s*journey/.test(e), "detector"),
2385
+ loader: /* @__PURE__ */ t(async () => {
2386
+ let { diagram: e } = await import("./journeyDiagram-EYS64GPL-CLMBONXO.js");
2387
+ return {
2388
+ id: si,
2389
+ diagram: e
2390
+ };
2391
+ }, "loader")
2392
+ }, li = { draw: /* @__PURE__ */ t((e, t, n) => {
2393
+ r.debug("rendering svg for syntax error\n");
2394
+ let i = Se(t), a = i.append("g");
2395
+ i.attr("viewBox", "0 0 2412 512"), x(i, 100, 512, !0), a.append("path").attr("class", "error-icon").attr("d", "m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"), a.append("path").attr("class", "error-icon").attr("d", "m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"), a.append("path").attr("class", "error-icon").attr("d", "m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"), a.append("path").attr("class", "error-icon").attr("d", "m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"), a.append("path").attr("class", "error-icon").attr("d", "m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"), a.append("path").attr("class", "error-icon").attr("d", "m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"), a.append("text").attr("class", "error-text").attr("x", 1440).attr("y", 250).attr("font-size", "150px").style("text-anchor", "middle").text("Syntax error in text"), a.append("text").attr("class", "error-text").attr("x", 1250).attr("y", 400).attr("font-size", "100px").style("text-anchor", "middle").text(`mermaid version ${n}`);
2396
+ }, "draw") }, ui = li, di = {
2397
+ db: {},
2398
+ renderer: li,
2399
+ parser: { parse: /* @__PURE__ */ t(() => {}, "parse") }
2400
+ }, fi = "flowchart-elk", pi = {
2401
+ id: fi,
2402
+ detector: /* @__PURE__ */ t((e, t = {}) => /^\s*flowchart-elk/.test(e) || /^\s*(flowchart|graph)/.test(e) && t?.flowchart?.defaultRenderer === "elk" ? (t.layout = "elk", !0) : !1, "detector"),
2403
+ loader: /* @__PURE__ */ t(async () => {
2404
+ let { diagram: e } = await import("./flowDiagram-T62WH6J4-DdJo3Te1.js");
2405
+ return {
2406
+ id: fi,
2407
+ diagram: e
2408
+ };
2409
+ }, "loader")
2410
+ }, mi = "timeline", hi = {
2411
+ id: mi,
2412
+ detector: /* @__PURE__ */ t((e) => /^\s*timeline/.test(e), "detector"),
2413
+ loader: /* @__PURE__ */ t(async () => {
2414
+ let { diagram: e } = await import("./timeline-definition-24CTP7MA-Dr8ouzBO.js");
2415
+ return {
2416
+ id: mi,
2417
+ diagram: e
2418
+ };
2419
+ }, "loader")
2420
+ }, gi = "mindmap", _i = {
2421
+ id: gi,
2422
+ detector: /* @__PURE__ */ t((e) => /^\s*mindmap/.test(e), "detector"),
2423
+ loader: /* @__PURE__ */ t(async () => {
2424
+ let { diagram: e } = await import("./mindmap-definition-THT77NOG-BtDuvAQ_.js");
2425
+ return {
2426
+ id: gi,
2427
+ diagram: e
2428
+ };
2429
+ }, "loader")
2430
+ }, vi = "kanban", yi = {
2431
+ id: vi,
2432
+ detector: /* @__PURE__ */ t((e) => /^\s*kanban/.test(e), "detector"),
2433
+ loader: /* @__PURE__ */ t(async () => {
2434
+ let { diagram: e } = await import("./kanban-definition-UXKFOSKX-SNTHZo65.js");
2435
+ return {
2436
+ id: vi,
2437
+ diagram: e
2438
+ };
2439
+ }, "loader")
2440
+ }, bi = "sankey", xi = {
2441
+ id: bi,
2442
+ detector: /* @__PURE__ */ t((e) => /^\s*sankey(-beta)?/.test(e), "detector"),
2443
+ loader: /* @__PURE__ */ t(async () => {
2444
+ let { diagram: e } = await import("./sankeyDiagram-P5KCCOFB-DTnkE4oO.js");
2445
+ return {
2446
+ id: bi,
2447
+ diagram: e
2448
+ };
2449
+ }, "loader")
2450
+ }, Si = "packet", Ci = {
2451
+ id: Si,
2452
+ detector: /* @__PURE__ */ t((e) => /^\s*packet(-beta)?/.test(e), "detector"),
2453
+ loader: /* @__PURE__ */ t(async () => {
2454
+ let { diagram: e } = await import("./diagram-Z3DM3KII-BEu4c4pP.js");
2455
+ return {
2456
+ id: Si,
2457
+ diagram: e
2458
+ };
2459
+ }, "loader")
2460
+ }, wi = "radar", Ti = {
2461
+ id: wi,
2462
+ detector: /* @__PURE__ */ t((e) => /^\s*radar-beta/.test(e), "detector"),
2463
+ loader: /* @__PURE__ */ t(async () => {
2464
+ let { diagram: e } = await import("./diagram-UQ7AKVKN-CvQH-Box.js");
2465
+ return {
2466
+ id: wi,
2467
+ diagram: e
2468
+ };
2469
+ }, "loader")
2470
+ }, Ei = "block", Di = {
2471
+ id: Ei,
2472
+ detector: /* @__PURE__ */ t((e) => /^\s*block(-beta)?/.test(e), "detector"),
2473
+ loader: /* @__PURE__ */ t(async () => {
2474
+ let { diagram: e } = await import("./blockDiagram-OSKFZWR5-Bvi4xQOy.js");
2475
+ return {
2476
+ id: Ei,
2477
+ diagram: e
2478
+ };
2479
+ }, "loader")
2480
+ }, Oi = "treeView", ki = {
2481
+ id: Oi,
2482
+ detector: /* @__PURE__ */ t((e) => /^\s*treeView-beta/.test(e), "detector"),
2483
+ loader: /* @__PURE__ */ t(async () => {
2484
+ let { diagram: e } = await import("./diagram-S7CK7UJ4-Cx2fQdp6.js");
2485
+ return {
2486
+ id: Oi,
2487
+ diagram: e
2488
+ };
2489
+ }, "loader")
2490
+ }, Ai = "architecture", ji = {
2491
+ id: Ai,
2492
+ detector: /* @__PURE__ */ t((e) => /^\s*architecture/.test(e), "detector"),
2493
+ loader: /* @__PURE__ */ t(async () => {
2494
+ let { diagram: e } = await import("./architectureDiagram-5GKGNRK7-D2-hmLgN.js");
2495
+ return {
2496
+ id: Ai,
2497
+ diagram: e
2498
+ };
2499
+ }, "loader")
2500
+ }, Mi = "eventmodeling", Ni = {
2501
+ id: Mi,
2502
+ detector: /* @__PURE__ */ t((e) => /^\s*eventmodeling/.test(e), "detector"),
2503
+ loader: /* @__PURE__ */ t(async () => {
2504
+ let { diagram: e } = await import("./diagram-VSXAHHWV-CCpCVOIq.js");
2505
+ return {
2506
+ id: Mi,
2507
+ diagram: e
2508
+ };
2509
+ }, "loader")
2510
+ }, Pi = "ishikawa", Fi = {
2511
+ id: Pi,
2512
+ detector: /* @__PURE__ */ t((e) => /^\s*ishikawa(-beta)?\b/i.test(e), "detector"),
2513
+ loader: /* @__PURE__ */ t(async () => {
2514
+ let { diagram: e } = await import("./ishikawaDiagram-5VMMS53U-BC2vrJSo.js");
2515
+ return {
2516
+ id: Pi,
2517
+ diagram: e
2518
+ };
2519
+ }, "loader")
2520
+ }, Ii = "venn", Li = {
2521
+ id: Ii,
2522
+ detector: /* @__PURE__ */ t((e) => /^\s*venn-beta/.test(e), "detector"),
2523
+ loader: /* @__PURE__ */ t(async () => {
2524
+ let { diagram: e } = await import("./vennDiagram-4TSXK5OY-i6B1rhUA.js");
2525
+ return {
2526
+ id: Ii,
2527
+ diagram: e
2528
+ };
2529
+ }, "loader")
2530
+ }, Ri = "treemap", zi = {
2531
+ id: Ri,
2532
+ detector: /* @__PURE__ */ t((e) => /^\s*treemap/.test(e), "detector"),
2533
+ loader: /* @__PURE__ */ t(async () => {
2534
+ let { diagram: e } = await import("./diagram-VX7I27RA-HE5nQAXN.js");
2535
+ return {
2536
+ id: Ri,
2537
+ diagram: e
2538
+ };
2539
+ }, "loader")
2540
+ }, Bi = "wardley", Vi = {
2541
+ id: Bi,
2542
+ detector: /* @__PURE__ */ t((e) => /^\s*wardley-beta/i.test(e), "detector"),
2543
+ loader: /* @__PURE__ */ t(async () => {
2544
+ let { diagram: e } = await import("./wardleyDiagram-VM6X3IG4-1SFyFcXg.js");
2545
+ return {
2546
+ id: Bi,
2547
+ diagram: e
2548
+ };
2549
+ }, "loader")
2550
+ }, Hi = "cynefin", Ui = {
2551
+ id: Hi,
2552
+ detector: /* @__PURE__ */ t((e) => /^\s*cynefin-beta(?:[\s:]|$)/.test(e), "detector"),
2553
+ loader: /* @__PURE__ */ t(async () => {
2554
+ let { diagram: e } = await import("./cynefinDiagram-5FMLGOSQ-BSRTnQvp.js");
2555
+ return {
2556
+ id: Hi,
2557
+ diagram: e
2558
+ };
2559
+ }, "loader")
2560
+ }, Wi = "railroad", Gi = {
2561
+ id: Wi,
2562
+ detector: /* @__PURE__ */ t((e) => /^\s*railroad-beta/i.test(e), "detector"),
2563
+ loader: /* @__PURE__ */ t(async () => {
2564
+ let { diagram: e } = await import("./railroadDiagram-O6MQD6OU-BTg2KtZO.js");
2565
+ return {
2566
+ id: Wi,
2567
+ diagram: e
2568
+ };
2569
+ }, "loader")
2570
+ }, Ki = "railroadEbnf", qi = {
2571
+ id: Ki,
2572
+ detector: /* @__PURE__ */ t((e) => /^\s*railroad-ebnf-beta/i.test(e), "detector"),
2573
+ loader: /* @__PURE__ */ t(async () => {
2574
+ let { diagram: e } = await import("./ebnfDiagram-PWID7BFC-B06rGL3A.js");
2575
+ return {
2576
+ id: Ki,
2577
+ diagram: e
2578
+ };
2579
+ }, "loader")
2580
+ }, Ji = "railroadAbnf", Yi = {
2581
+ id: Ji,
2582
+ detector: /* @__PURE__ */ t((e) => /^\s*railroad-abnf-beta/i.test(e), "detector"),
2583
+ loader: /* @__PURE__ */ t(async () => {
2584
+ let { diagram: e } = await import("./abnfDiagram-VCTEODGH-CYuCmqs8.js");
2585
+ return {
2586
+ id: Ji,
2587
+ diagram: e
2588
+ };
2589
+ }, "loader")
2590
+ }, Xi = "railroadPeg", Zi = {
2591
+ id: Xi,
2592
+ detector: /* @__PURE__ */ t((e) => /^\s*railroad-peg-beta/i.test(e), "detector"),
2593
+ loader: /* @__PURE__ */ t(async () => {
2594
+ let { diagram: e } = await import("./pegDiagram-XKGWAZYB-Ucd8o52_.js");
2595
+ return {
2596
+ id: Xi,
2597
+ diagram: e
2598
+ };
2599
+ }, "loader")
2600
+ }, Qi = !1, $i = /* @__PURE__ */ t(() => {
2601
+ Qi || (Qi = !0, u("error", di, (e) => e.toLowerCase().trim() === "error"), u("---", {
2602
+ db: { clear: /* @__PURE__ */ t(() => {}, "clear") },
2603
+ styles: {},
2604
+ renderer: { draw: /* @__PURE__ */ t(() => {}, "draw") },
2605
+ parser: { parse: /* @__PURE__ */ t(() => {
2606
+ throw Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks");
2607
+ }, "parse") },
2608
+ init: /* @__PURE__ */ t(() => null, "init")
2609
+ }, (e) => e.toLowerCase().trimStart().startsWith("---")), d(pi, _i, ji), d(Or, yi, ni, ei, Ir, Br, Hr, Wr, Xr, Qr, Pr, Mr, Ar, hi, Rr, oi, ii, ci, Kr, xi, Ci, Jr, Di, Ni, ki, Ti, Fi, zi, Gi, qi, Yi, Zi, Li, Vi, Ui));
2610
+ }, "addDiagrams"), ea = /* @__PURE__ */ t(async () => {
2611
+ r.debug("Loading registered diagrams");
2612
+ let e = (await Promise.allSettled(Object.entries(w).map(async ([e, { detector: t, loader: n }]) => {
2613
+ if (n) try {
2614
+ p(e);
2615
+ } catch {
2616
+ try {
2617
+ let { diagram: e, id: r } = await n();
2618
+ u(r, e, t);
2619
+ } catch (t) {
2620
+ throw r.error(`Failed to load external diagram with key ${e}. Removing from detectors.`), delete w[e], t;
2621
+ }
2622
+ }
2623
+ }))).filter((e) => e.status === "rejected");
2624
+ if (e.length > 0) {
2625
+ r.error(`Failed to load ${e.length} external diagrams`);
2626
+ for (let t of e) r.error(t);
2627
+ throw Error(`Failed to load ${e.length} external diagrams`);
2628
+ }
2629
+ }, "loadRegisteredDiagrams"), ta = "graphics-document document";
2630
+ function na(e, t) {
2631
+ e.attr("role", ta), t !== "" && e.attr("aria-roledescription", t);
2632
+ }
2633
+ t(na, "setA11yDiagramInfo");
2634
+ function ra(e, t, n, r) {
2635
+ if (e.insert !== void 0) {
2636
+ if (n) {
2637
+ let t = `chart-desc-${r}`;
2638
+ e.attr("aria-describedby", t), e.insert("desc", ":first-child").attr("id", t).text(n);
2639
+ }
2640
+ if (t) {
2641
+ let n = `chart-title-${r}`;
2642
+ e.attr("aria-labelledby", n), e.insert("title", ":first-child").attr("id", n).text(t);
2643
+ }
2644
+ }
2645
+ }
2646
+ t(ra, "addSVGa11yTitleDescription");
2647
+ var ia = class e {
2648
+ constructor(e, t, n, r, i) {
2649
+ this.type = e, this.text = t, this.db = n, this.parser = r, this.renderer = i;
2650
+ }
2651
+ static {
2652
+ t(this, "Diagram");
2653
+ }
2654
+ static async fromText(t, n = {}) {
2655
+ let r = b(), i = E(t, r);
2656
+ t = ne(t) + "\n";
2657
+ try {
2658
+ p(i);
2659
+ } catch {
2660
+ let e = o(i);
2661
+ if (!e) throw new ee(`Diagram ${i} not found.`);
2662
+ let { id: t, diagram: n } = await e();
2663
+ u(t, n);
2664
+ }
2665
+ let { db: a, parser: s, renderer: c, init: l } = p(i);
2666
+ return s.parser && (s.parser.yy = a), a.clear?.(), l?.(r), n.title && a.setDiagramTitle?.(n.title), await s.parse(t), new e(i, t, a, s, c);
2667
+ }
2668
+ async render(e, t) {
2669
+ await this.renderer.draw(this.text, e, t, this);
2670
+ }
2671
+ getParser() {
2672
+ return this.parser;
2673
+ }
2674
+ getType() {
2675
+ return this.type;
2676
+ }
2677
+ }, aa = [], oa = /* @__PURE__ */ t(() => {
2678
+ aa.forEach((e) => {
2679
+ e();
2680
+ }), aa = [];
2681
+ }, "attachFunctions"), sa = /* @__PURE__ */ t((e) => e.replace(/^\s*%%(?!{)[^\n]+\n?/gm, "").trimStart(), "cleanupComments");
2682
+ function ca(e) {
2683
+ let t = e.match(y);
2684
+ if (!t) return {
2685
+ text: e,
2686
+ metadata: {}
2687
+ };
2688
+ let n = t[1], r = jn(n ? t[2].split("\n").map((e) => e.startsWith(n) ? e.slice(n.length) : e).join("\n") : t[2], { schema: On }) ?? {};
2689
+ r = typeof r == "object" && !Array.isArray(r) ? r : {};
2690
+ let i = {};
2691
+ return r.displayMode && (i.displayMode = r.displayMode.toString()), r.title && (i.title = r.title.toString()), r.config && (i.config = r.config), {
2692
+ text: e.slice(t[0].length),
2693
+ metadata: i
2694
+ };
2695
+ }
2696
+ t(ca, "extractFrontMatter");
2697
+ var la = /* @__PURE__ */ t((e) => e.replace(/\r\n?/g, "\n").replace(/<(\w+)([^>]*)>/g, (e, t, n) => "<" + t + n.replace(/="([^"]*)"/g, "='$1'") + ">"), "cleanupText"), ua = /* @__PURE__ */ t((e) => {
2698
+ let { text: t, metadata: n } = ca(e), { displayMode: r, title: i, config: a = {} } = n;
2699
+ return r && (a.gantt ||= {}, a.gantt.displayMode = r), {
2700
+ title: i,
2701
+ config: a,
2702
+ text: t
2703
+ };
2704
+ }, "processFrontmatter"), da = /* @__PURE__ */ t((e) => {
2705
+ let t = F.detectInit(e) ?? {}, n = F.detectDirective(e, "wrap");
2706
+ return Array.isArray(n) ? t.wrap = n.some(({ type: e }) => e === "wrap") : n?.type === "wrap" && (t.wrap = !0), {
2707
+ text: I(e),
2708
+ directive: t
2709
+ };
2710
+ }, "processDirectives");
2711
+ function fa(e) {
2712
+ let t = ua(la(e)), n = da(t.text), r = L(t.config, n.directive);
2713
+ return e = sa(n.text), {
2714
+ code: e,
2715
+ title: t.title,
2716
+ config: r
2717
+ };
2718
+ }
2719
+ t(fa, "preprocessDiagram");
2720
+ function pa(e) {
2721
+ let t = new TextEncoder().encode(e), n = Array.from(t, (e) => String.fromCodePoint(e)).join("");
2722
+ return btoa(n);
2723
+ }
2724
+ t(pa, "toBase64");
2725
+ var ma = 5e4, ha = "graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa", ga = "sandbox", _a = "loose", va = "http://www.w3.org/2000/svg", ya = "http://www.w3.org/1999/xlink", ba = "http://www.w3.org/1999/xhtml", xa = "100%", Sa = "100%", Ca = "border:0;margin:0;", wa = "margin:0", Ta = "allow-top-navigation-by-user-activation allow-popups", Ea = "The \"iframe\" tag is not supported by your browser.", Da = ["foreignobject"], Oa = ["dominant-baseline"];
2726
+ function ka(e) {
2727
+ let t = fa(e);
2728
+ return c(), T(t.config ?? {}), t;
2729
+ }
2730
+ t(ka, "processAndSetConfigs");
2731
+ async function Aa(e, t) {
2732
+ $i();
2733
+ try {
2734
+ let { code: t, config: n } = ka(e);
2735
+ return {
2736
+ diagramType: (await Ha(t)).type,
2737
+ config: n
2738
+ };
2739
+ } catch (e) {
2740
+ if (t?.suppressErrors) return !1;
2741
+ throw e;
2742
+ }
2743
+ }
2744
+ t(Aa, "parse");
2745
+ var ja = /* @__PURE__ */ t((e, t, n = []) => `.${e} ${t} ${l(`{ ${n.join(" !important; ")} !important; }`)}`, "cssImportantStyles"), Ma = /* @__PURE__ */ t((e, t = /* @__PURE__ */ new Map()) => {
2746
+ let n = new CSSStyleSheet();
2747
+ if (e.fontFamily !== void 0 && n.insertRule(`:root { --mermaid-font-family: ${e.fontFamily}}`, n.cssRules.length), e.altFontFamily !== void 0 && n.insertRule(`:root { --mermaid-alt-font-family: ${e.altFontFamily}}`, n.cssRules.length), t instanceof Map) {
2748
+ let r = m(e) ? ["> *", "span"] : [
2749
+ "rect",
2750
+ "polygon",
2751
+ "ellipse",
2752
+ "circle",
2753
+ "path"
2754
+ ];
2755
+ t.forEach((e) => {
2756
+ we(e.styles) || r.forEach((t) => {
2757
+ n.insertRule(ja(e.id, t, e.styles), n.cssRules.length);
2758
+ }), we(e.textStyles) || n.insertRule(ja(e.id, "tspan", (e?.textStyles || []).map((e) => e.replace("color", "fill"))), n.cssRules.length);
2759
+ });
2760
+ }
2761
+ let r = "";
2762
+ if (e.themeCSS !== void 0) {
2763
+ if (typeof n.replaceSync == "function") {
2764
+ let t = new CSSStyleSheet();
2765
+ t.replaceSync(e.themeCSS), r = C(t) + "\n";
2766
+ } else r += `${e.themeCSS}
2767
+ `;
2768
+ }
2769
+ return r + C(n);
2770
+ }, "createCssStyles"), Na = /* @__PURE__ */ t((e, n) => Cr(vr(`${e}{${n}}`), Tr([/* @__PURE__ */ t(function(t, n, i, a) {
2771
+ if (t.type === "rule" && Array.isArray(t.props)) {
2772
+ if (t.parent && t.parent.type === "@keyframes") return;
2773
+ t.props = t.props.map((n) => n === e && Array.isArray(t.children) && t.children.every((e) => e.type === "decl" && (/* @__PURE__ */ new Set([
2774
+ "font-family",
2775
+ "font-size",
2776
+ "fill"
2777
+ ])).has(e.props)) || (n.startsWith(`${e} `) || n.startsWith(`${e}>`)) && !n.startsWith(`${e} ||`) ? n : `${e} ${n}`);
2778
+ } else t.type.startsWith("@") && ([
2779
+ "@media",
2780
+ "@supports",
2781
+ "@layer",
2782
+ "@scope",
2783
+ "@container",
2784
+ "@starting-style",
2785
+ "@keyframes"
2786
+ ].includes(t.type) || (r.warn(`Removing unsupported at-rule ${t.type} from CSS`), t.type = zn));
2787
+ }, "addNamespace"), wr])), "compileCSS"), Pa = /* @__PURE__ */ t((e, t, n, r) => {
2788
+ let i = Ma(e, n);
2789
+ return Na(r, _(t, i, {
2790
+ ...e.themeVariables,
2791
+ theme: e.theme,
2792
+ look: e.look
2793
+ }, r));
2794
+ }, "createUserStyles"), Fa = /* @__PURE__ */ t((e = "", t, n) => {
2795
+ let r = e;
2796
+ return !n && !t && (r = r.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g, "marker-end=\"url(#")), r = te(r), r = r.replace(/<br>/g, "<br/>"), r;
2797
+ }, "cleanUpSvgCode"), Ia = /* @__PURE__ */ t((e = "", t) => `<iframe style="width:${xa};height:${t?.viewBox?.baseVal?.height ? t.viewBox.baseVal.height + "px" : Sa};${Ca}" src="data:text/html;charset=UTF-8;base64,${pa(`<body style="${wa}">${e}</body>`)}" sandbox="${Ta}">
2798
+ ${Ea}
2799
+ </iframe>`, "putIntoIFrame"), La = /* @__PURE__ */ t((e, t, n, r, i) => {
2800
+ let a = e.append("div");
2801
+ a.attr("id", n), r && a.attr("style", r);
2802
+ let o = a.append("svg").attr("id", t).attr("width", "100%").attr("xmlns", va);
2803
+ return i && o.attr("xmlns:xlink", i), o.append("g"), e;
2804
+ }, "appendDivSvgG");
2805
+ function Ra(e, t) {
2806
+ return e.append("iframe").attr("id", t).attr("style", "width: 100%; height: 100%;").attr("sandbox", "");
2807
+ }
2808
+ t(Ra, "sandboxedIframe");
2809
+ var za = /* @__PURE__ */ t((e, t, n, r) => {
2810
+ e.getElementById(t)?.remove(), e.getElementById(n)?.remove(), e.getElementById(r)?.remove();
2811
+ }, "removeExistingElements"), Ba = /* @__PURE__ */ t(async function(e, n, o) {
2812
+ $i();
2813
+ let s = ka(n);
2814
+ n = s.code;
2815
+ let c = b();
2816
+ r.debug(c), n.length > (c?.maxTextSize ?? ma) && (n = ha);
2817
+ let l = `#${e}`, u = "i" + e, d = "#" + u, f = "d" + e, p = "#" + f, m = /* @__PURE__ */ t(() => {
2818
+ let e = i(g ? d : p).node();
2819
+ e && "remove" in e && e.remove();
2820
+ }, "removeTempElements"), h = i(document.body), g = c.securityLevel === ga, _ = c.securityLevel === _a, v = c.fontFamily;
2821
+ if (o !== void 0) {
2822
+ if (o && (o.innerHTML = ""), g) {
2823
+ let e = Ra(i(o), u);
2824
+ h = i(e.nodes()[0].contentDocument.body), h.node().style.margin = "0";
2825
+ } else h = i(o);
2826
+ La(h, e, f, `font-family: ${v}`, ya);
2827
+ } else {
2828
+ if (za(document, e, f, u), g) {
2829
+ let e = Ra(i(document.body), u);
2830
+ h = i(e.nodes()[0].contentDocument.body), h.node().style.margin = "0";
2831
+ } else h = i("body");
2832
+ La(h, e, f);
2833
+ }
2834
+ let y, x;
2835
+ try {
2836
+ y = await ia.fromText(n, { title: s.title });
2837
+ } catch (e) {
2838
+ if (c.suppressErrorRendering) throw m(), e;
2839
+ y = await ia.fromText("error"), x = e;
2840
+ }
2841
+ let C = h.select(p).node(), w = y.type, T = C.firstChild, E = T.firstChild, D = y.renderer.getClasses?.(n, y), O = Pa(c, w, D, l), k = document.createElement("style");
2842
+ k.innerHTML = O, T.insertBefore(k, E);
2843
+ try {
2844
+ await y.renderer.draw(n, e, "11.17.1", y);
2845
+ } catch (t) {
2846
+ throw c.suppressErrorRendering ? m() : ui.draw(n, e, "11.17.1"), t;
2847
+ }
2848
+ let ee = h.select(`${p} svg`), A = y.db.getAccTitle?.(), j = y.db.getAccDescription?.();
2849
+ Ua(w, ee, A, j);
2850
+ let M = (/* @__PURE__ */ t(() => {
2851
+ h.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns", ba);
2852
+ let t = h.select(p).node().innerHTML;
2853
+ if (r.debug("config.arrowMarkerAbsolute", c.arrowMarkerAbsolute), t = Fa(t, g, S(c.arrowMarkerAbsolute)), g) {
2854
+ let e = h.select(p + " svg").node();
2855
+ t = Ia(t, e);
2856
+ } else _ || (t = a.sanitize(t, {
2857
+ ADD_TAGS: Da,
2858
+ ADD_ATTR: Oa,
2859
+ HTML_INTEGRATION_POINTS: { foreignobject: !0 }
2860
+ }));
2861
+ return oa(), t;
2862
+ }, "serializeSvg"))();
2863
+ if (x) throw x;
2864
+ return m(), {
2865
+ diagramType: w,
2866
+ svg: M,
2867
+ bindFunctions: y.db.bindFunctions
2868
+ };
2869
+ }, "render");
2870
+ function Va(e = {}) {
2871
+ let t = O({}, e);
2872
+ t?.fontFamily && !t.themeVariables?.fontFamily && (t.themeVariables ||= {}, t.themeVariables.fontFamily = t.fontFamily), h(t), t?.theme && t.theme in v ? t.themeVariables = v[t.theme].getThemeVariables(t.themeVariables) : t && (t.themeVariables = v.default.getThemeVariables(t.themeVariables));
2873
+ let r = typeof t == "object" ? D(t) : s();
2874
+ n(r.logLevel), $i();
2875
+ }
2876
+ t(Va, "initialize");
2877
+ var Ha = /* @__PURE__ */ t((e, t = {}) => {
2878
+ let { code: n } = fa(e);
2879
+ return ia.fromText(n, t);
2880
+ }, "getDiagramFromText");
2881
+ function Ua(e, t, n, r) {
2882
+ na(t, e), ra(t, n, r, t.attr("id"));
2883
+ }
2884
+ t(Ua, "addA11yInfo");
2885
+ var Q = Object.freeze({
2886
+ render: Ba,
2887
+ parse: Aa,
2888
+ getDiagramFromText: Ha,
2889
+ initialize: Va,
2890
+ getConfig: b,
2891
+ setConfig: g,
2892
+ getSiteConfig: s,
2893
+ updateSiteConfig: f,
2894
+ reset: /* @__PURE__ */ t(() => {
2895
+ c();
2896
+ }, "reset"),
2897
+ globalReset: /* @__PURE__ */ t(() => {
2898
+ c(A);
2899
+ }, "globalReset"),
2900
+ defaultConfig: A
2901
+ });
2902
+ n(b().logLevel), c(b());
2903
+ var Wa = /* @__PURE__ */ t((e, t, n) => {
2904
+ r.warn(e), P(e) ? (n && n(e.str, e.hash), t.push({
2905
+ ...e,
2906
+ message: e.str,
2907
+ error: e
2908
+ })) : (n && n(e), e instanceof Error && t.push({
2909
+ str: e.message,
2910
+ message: e.message,
2911
+ hash: e.name,
2912
+ error: e
2913
+ }));
2914
+ }, "handleError"), Ga = /* @__PURE__ */ t(async function(e = { querySelector: ".mermaid" }) {
2915
+ try {
2916
+ await Ka(e);
2917
+ } catch (t) {
2918
+ if (P(t) && r.error(t.str), $.parseError && $.parseError(t), !e.suppressErrors) throw r.error("Use the suppressErrors option to suppress these errors"), t;
2919
+ }
2920
+ }, "run"), Ka = /* @__PURE__ */ t(async function({ postRenderCallback: e, querySelector: t, nodes: n } = { querySelector: ".mermaid" }) {
2921
+ let i = Q.getConfig();
2922
+ r.debug(`${e ? "" : "No "}Callback function found`);
2923
+ let a;
2924
+ if (n) a = n;
2925
+ else if (t) a = document.querySelectorAll(t);
2926
+ else throw Error("Nodes and querySelector are both undefined");
2927
+ r.debug(`Found ${a.length} diagrams`), i?.startOnLoad !== void 0 && (r.debug("Start On Load: " + i?.startOnLoad), Q.updateSiteConfig({ startOnLoad: i?.startOnLoad }));
2928
+ let o = new F.InitIDGenerator(i.deterministicIds, i.deterministicIDSeed), s, c = [];
2929
+ for (let t of Array.from(a)) {
2930
+ if (r.info("Rendering diagram: " + t.id), t.getAttribute("data-processed")) continue;
2931
+ t.setAttribute("data-processed", "true");
2932
+ let n = `mermaid-${o.next()}`;
2933
+ s = t.innerHTML, s = se(F.entityDecode(s)).trim().replace(/<br\s*\/?>/gi, "<br/>");
2934
+ let i = F.detectInit(s);
2935
+ i && r.debug("Detected early reinit: ", i);
2936
+ try {
2937
+ let { svg: r, bindFunctions: i } = await no(n, s, t);
2938
+ t.innerHTML = r, e && await e(n), i && i(t);
2939
+ } catch (e) {
2940
+ Wa(e, c, $.parseError);
2941
+ }
2942
+ }
2943
+ if (c.length > 0) throw c[0];
2944
+ }, "runThrowsErrors"), qa = /* @__PURE__ */ t(function(e) {
2945
+ Q.initialize(e);
2946
+ }, "initialize"), Ja = /* @__PURE__ */ t(async function(e, t, n) {
2947
+ r.warn("mermaid.init is deprecated. Please use run instead."), e && qa(e);
2948
+ let i = {
2949
+ postRenderCallback: n,
2950
+ querySelector: ".mermaid"
2951
+ };
2952
+ typeof t == "string" ? i.querySelector = t : t && (i.nodes = t instanceof HTMLElement ? [t] : t), await Ga(i);
2953
+ }, "init"), Ya = /* @__PURE__ */ t(async (e, { lazyLoad: t = !0 } = {}) => {
2954
+ $i(), d(...e), t === !1 && await ea();
2955
+ }, "registerExternalDiagrams"), Xa = /* @__PURE__ */ t(function() {
2956
+ if ($.startOnLoad) {
2957
+ let { startOnLoad: e } = Q.getConfig();
2958
+ e && $.run().catch((e) => r.error("Mermaid failed to initialize", e));
2959
+ }
2960
+ }, "contentLoaded");
2961
+ typeof document < "u" && window.addEventListener("load", Xa, !1);
2962
+ var Za = /* @__PURE__ */ t(function(e) {
2963
+ $.parseError = e;
2964
+ }, "setParseErrorHandler"), Qa = [], $a = !1, eo = /* @__PURE__ */ t(async () => {
2965
+ if (!$a) {
2966
+ for ($a = !0; Qa.length > 0;) {
2967
+ let e = Qa.shift();
2968
+ if (e) try {
2969
+ await e();
2970
+ } catch (e) {
2971
+ r.error("Error executing queue", e);
2972
+ }
2973
+ }
2974
+ $a = !1;
2975
+ }
2976
+ }, "executeQueue"), to = /* @__PURE__ */ t(async (e, n) => new Promise((i, a) => {
2977
+ let o = /* @__PURE__ */ t(() => new Promise((t, o) => {
2978
+ Q.parse(e, n).then((e) => {
2979
+ t(e), i(e);
2980
+ }, (e) => {
2981
+ r.error("Error parsing", e), $.parseError?.(e), o(e), a(e);
2982
+ });
2983
+ }), "performCall");
2984
+ Qa.push(o), eo().catch(a);
2985
+ }), "parse"), no = /* @__PURE__ */ t((e, n, i) => new Promise((a, o) => {
2986
+ let s = /* @__PURE__ */ t(() => new Promise((t, s) => {
2987
+ Q.render(e, n, i).then((e) => {
2988
+ t(e), a(e);
2989
+ }, (e) => {
2990
+ r.error("Error parsing", e), $.parseError?.(e), s(e), o(e);
2991
+ });
2992
+ }), "performCall");
2993
+ Qa.push(s), eo().catch(o);
2994
+ }), "render"), $ = {
2995
+ startOnLoad: !0,
2996
+ mermaidAPI: Q,
2997
+ parse: to,
2998
+ render: no,
2999
+ init: Ja,
3000
+ run: Ga,
3001
+ registerExternalDiagrams: Ya,
3002
+ registerLayoutLoaders: De,
3003
+ initialize: qa,
3004
+ parseError: void 0,
3005
+ contentLoaded: Xa,
3006
+ setParseErrorHandler: Za,
3007
+ detectType: E,
3008
+ registerIconPacks: oe,
3009
+ getRegisteredDiagramsMetadata: /* @__PURE__ */ t(() => Object.keys(w).map((e) => ({ id: e })), "getRegisteredDiagramsMetadata")
3010
+ }, ro = $;
3011
+ //#endregion
3012
+ export { B as a, Me as c, Xe as clearLayoutRenderState, Ye as createCommonLayoutRenderer, Oe as d, ro as default, Ze as defaultMeasureLayout, Se as f, Ue as i, Ke as l, On as n, Ae as o, Qe as paintLayoutData, jn as r, Ve as s, Er as t, ke as u };