@intent-hq/web 2.286.2 → 2.286.4

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 (202) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/{Dd8Oh65P.js → 0azY1Euo.js} +1 -1
  3. package/web/app/immutable/chunks/{CaypYiAV.js → 1Xl1_j69.js} +1 -1
  4. package/web/app/immutable/chunks/{rcY8Jah2.js → 1iwlWivR.js} +1 -1
  5. package/web/app/immutable/chunks/{CVH0m_ri.js → 2N--vaHR.js} +1 -1
  6. package/web/app/immutable/chunks/{CJdFRWjw.js → 3kw_jVcY.js} +1 -1
  7. package/web/app/immutable/chunks/{R9TZ8GIl.js → 3oGwK09B.js} +1 -1
  8. package/web/app/immutable/chunks/{D6VZoi9m.js → 5JOOVIIo.js} +1 -1
  9. package/web/app/immutable/chunks/{Cz0pfiI3.js → 6CBvudM-.js} +1 -1
  10. package/web/app/immutable/chunks/{BqJTmha5.js → 6gxnLEJP.js} +3 -3
  11. package/web/app/immutable/chunks/{CKNNEoUh.js → 976zYcoh.js} +1 -1
  12. package/web/app/immutable/chunks/{BPsVnNyd.js → B-GuaxD4.js} +1 -1
  13. package/web/app/immutable/chunks/{CxtuGanp.js → B2Ta8ZYX.js} +1 -1
  14. package/web/app/immutable/chunks/{CED7K7pn.js → B2jOXbpl.js} +1 -1
  15. package/web/app/immutable/chunks/{CSggmaYx.js → B3foPak9.js} +1 -1
  16. package/web/app/immutable/chunks/{CB_Kofwn.js → B5mo4ccL.js} +1 -1
  17. package/web/app/immutable/chunks/{DoVZd79N.js → B6n3m66K.js} +1 -1
  18. package/web/app/immutable/chunks/{BofkdNap.js → B781x4pz.js} +2 -2
  19. package/web/app/immutable/chunks/{7yhhL_Kv.js → B7JUZ-OL.js} +2 -2
  20. package/web/app/immutable/chunks/{CjokggNJ.js → B8mLANMy.js} +1 -1
  21. package/web/app/immutable/chunks/{DXXGL7Ej.js → BCFbCagC.js} +1 -1
  22. package/web/app/immutable/chunks/{CZvzT-U0.js → BCPDBuLJ.js} +1 -1
  23. package/web/app/immutable/chunks/{dOrUcrda.js → BHBAtBBB.js} +1 -1
  24. package/web/app/immutable/chunks/{BCyLWzW8.js → BJwk8LqM.js} +1 -1
  25. package/web/app/immutable/chunks/{CmKUsKaf.js → BLFT0vk0.js} +1 -1
  26. package/web/app/immutable/chunks/{CKwby1z3.js → BME8wn-Y.js} +1 -1
  27. package/web/app/immutable/chunks/{Cip0e418.js → BMoKffXR.js} +1 -1
  28. package/web/app/immutable/chunks/{BU4UpNXO.js → BOlugeJj.js} +1 -1
  29. package/web/app/immutable/chunks/{-C2IRcJ4.js → BPDNj0Ug.js} +1 -1
  30. package/web/app/immutable/chunks/{8wBQgcHV.js → BSZTRNsD.js} +1 -1
  31. package/web/app/immutable/chunks/{BILk4fAN.js → BUVJimmV.js} +1 -1
  32. package/web/app/immutable/chunks/{DzYj9I01.js → BZBudGQG.js} +1 -1
  33. package/web/app/immutable/chunks/{COnjpG4O.js → B_vj7xxI.js} +1 -1
  34. package/web/app/immutable/chunks/{Dh_7SQPV.js → Bb0plfAx.js} +1 -1
  35. package/web/app/immutable/chunks/{8GVegoKX.js → BbJXkiov.js} +1 -1
  36. package/web/app/immutable/chunks/{DqRQRrwd.js → BbNzaCQR.js} +1 -1
  37. package/web/app/immutable/chunks/{DpNOuMqA.js → BctbI4aU.js} +1 -1
  38. package/web/app/immutable/chunks/{DkEnUmDM.js → BeQ1MqDU.js} +1 -1
  39. package/web/app/immutable/chunks/{DP7FYu47.js → BeddIW6i.js} +1 -1
  40. package/web/app/immutable/chunks/{2qd-rLGS.js → Bf4Ffzqn.js} +1 -1
  41. package/web/app/immutable/chunks/{DekSqFjl.js → BfS0Q-nX.js} +1 -1
  42. package/web/app/immutable/chunks/{CmYElrEr.js → BfnrA5Ab.js} +1 -1
  43. package/web/app/immutable/chunks/{BbRTv7cq.js → Bmq5LtFr.js} +1 -1
  44. package/web/app/immutable/chunks/{DVGkNFGJ.js → BmufqNuq.js} +1 -1
  45. package/web/app/immutable/chunks/{IhfTHHOz.js → BnWH1iQz.js} +1 -1
  46. package/web/app/immutable/chunks/{CQAMVzSj.js → BnoRvwv3.js} +1 -1
  47. package/web/app/immutable/chunks/{DGG8qQva.js → Bp8wUB3U.js} +1 -1
  48. package/web/app/immutable/chunks/{Bo4gq_23.js → Bpruhzz0.js} +2 -2
  49. package/web/app/immutable/chunks/{nUiGI9_j.js → Bq3GTaKG.js} +1 -1
  50. package/web/app/immutable/chunks/{CZtxOtGv.js → BqJHaeQw.js} +1 -1
  51. package/web/app/immutable/chunks/{CySbf6TD.js → BrEqoZ1p.js} +1 -1
  52. package/web/app/immutable/chunks/{CclcGP3X.js → BrHwmqrG.js} +1 -1
  53. package/web/app/immutable/chunks/{KClCJGZO.js → BrhmFCB4.js} +1 -1
  54. package/web/app/immutable/chunks/{B2fuxI_8.js → BuEHStYX.js} +1 -1
  55. package/web/app/immutable/chunks/{-f5HsMRH.js → BvzONeHW.js} +1 -1
  56. package/web/app/immutable/chunks/{COemOf_j.js → Bwxf2JuH.js} +1 -1
  57. package/web/app/immutable/chunks/{BCJ6mCcP.js → ByIRYR8A.js} +1 -1
  58. package/web/app/immutable/chunks/{BuknD9D8.js → BzoF1_ij.js} +1 -1
  59. package/web/app/immutable/chunks/{2jTJ7ui5.js → C-OvZCj_.js} +1 -1
  60. package/web/app/immutable/chunks/{DnC7pGbF.js → C24Rzfzk.js} +1 -1
  61. package/web/app/immutable/chunks/{JvqNZ4n7.js → C2pKnlEJ.js} +1 -1
  62. package/web/app/immutable/chunks/{B5Gxq3jJ.js → C3jNWf9W.js} +1 -1
  63. package/web/app/immutable/chunks/{B1W2g1fL.js → C5p3cAYv.js} +1 -1
  64. package/web/app/immutable/chunks/{BqR317mE.js → C5qP0fL9.js} +1 -1
  65. package/web/app/immutable/chunks/{wcwUUENo.js → C6AX083-.js} +1 -1
  66. package/web/app/immutable/chunks/{Eor-CiZM.js → C6FMFHeq.js} +1 -1
  67. package/web/app/immutable/chunks/{CY2SJz5g.js → CAE5fLft.js} +1 -1
  68. package/web/app/immutable/chunks/{YE41SUlf.js → CB76QYmX.js} +1 -1
  69. package/web/app/immutable/chunks/{5KQTpdV3.js → CCYqEJG1.js} +1 -1
  70. package/web/app/immutable/chunks/{GVi-o-HG.js → CGid_txv.js} +1 -1
  71. package/web/app/immutable/chunks/{DNv7jzNl.js → CGy8AR53.js} +1 -1
  72. package/web/app/immutable/chunks/{C6GT9iuD.js → CHq8gooQ.js} +1 -1
  73. package/web/app/immutable/chunks/{BMTtG9zH.js → CHwcICZW.js} +1 -1
  74. package/web/app/immutable/chunks/{CGmXQTqt.js → CK1AF7GU.js} +1 -1
  75. package/web/app/immutable/chunks/{jUTK_aDz.js → CL28-RkP.js} +1 -1
  76. package/web/app/immutable/chunks/{jWQiaOEh.js → CLBb9J0e.js} +1 -1
  77. package/web/app/immutable/chunks/{B3kscBFg.js → CMAxIbm4.js} +5 -5
  78. package/web/app/immutable/chunks/{Db85r7-o.js → CMUt7G5B.js} +1 -1
  79. package/web/app/immutable/chunks/{BYX5z7iO.js → COgknoIp.js} +1 -1
  80. package/web/app/immutable/chunks/{8RNmk_9I.js → CQcnUt15.js} +6 -6
  81. package/web/app/immutable/chunks/{D9f7U_gJ.js → CSEB8cDa.js} +1 -1
  82. package/web/app/immutable/chunks/{DY42fpE9.js → CSKprktf.js} +1 -1
  83. package/web/app/immutable/chunks/{CaWaQ99W.js → CXsEQ4Fe.js} +3 -3
  84. package/web/app/immutable/chunks/{C6ldMp_G.js → C_CE49CT.js} +1 -1
  85. package/web/app/immutable/chunks/{CD2a7NWW.js → C_m_o9vM.js} +1 -1
  86. package/web/app/immutable/chunks/{DvExSeJx.js → Cae3uxuh.js} +2 -2
  87. package/web/app/immutable/chunks/{CNr93ccj.js → Caf4tDH7.js} +1 -1
  88. package/web/app/immutable/chunks/{R8eRTNnP.js → CeWSuA2o.js} +1 -1
  89. package/web/app/immutable/chunks/{ZDypNe47.js → ChBqCTy0.js} +1 -1
  90. package/web/app/immutable/chunks/{BIH7Omo4.js → Cix_mnLj.js} +4 -4
  91. package/web/app/immutable/chunks/{CAuyDtSk.js → CmWV3gyr.js} +1 -1
  92. package/web/app/immutable/chunks/{C8COLGeG.js → CnLkqvzY.js} +1 -1
  93. package/web/app/immutable/chunks/{BgghSBWo.js → Cniog18G.js} +1 -1
  94. package/web/app/immutable/chunks/{uuDLpQqj.js → Cnlrbhbh.js} +1 -1
  95. package/web/app/immutable/chunks/{N_1l7hXH.js → CpiOwqpL.js} +1 -1
  96. package/web/app/immutable/chunks/{DDD7SYSD.js → CqTutsn0.js} +1 -1
  97. package/web/app/immutable/chunks/{9s3D9jIu.js → CrsB8npl.js} +1 -1
  98. package/web/app/immutable/chunks/{BkXluBMH.js → CuYFxjMF.js} +1 -1
  99. package/web/app/immutable/chunks/{C627-01N.js → Cui_1F-9.js} +1 -1
  100. package/web/app/immutable/chunks/{GKyoWP3c.js → Cx463bih.js} +1 -1
  101. package/web/app/immutable/chunks/{BORtTc-e.js → CxFDPuIk.js} +1 -1
  102. package/web/app/immutable/chunks/{CwcHW8S6.js → CyGw7JU5.js} +1 -1
  103. package/web/app/immutable/chunks/{IJO_5iR4.js → CyMVqmzv.js} +1 -1
  104. package/web/app/immutable/chunks/{Ddh0rE8O.js → D0M9u_n-.js} +1 -1
  105. package/web/app/immutable/chunks/{D9KFPzLd.js → D2b1hcog.js} +2 -2
  106. package/web/app/immutable/chunks/{CPGCgkWj.js → D5VLKYyC.js} +1 -1
  107. package/web/app/immutable/chunks/{DOB0mTS8.js → D7KhJm9U.js} +2 -2
  108. package/web/app/immutable/chunks/{CyIz5Rp5.js → D9ScELxf.js} +1 -1
  109. package/web/app/immutable/chunks/{BisYAzdD.js → DC3ZkLye.js} +1 -1
  110. package/web/app/immutable/chunks/{R8dYtUzD.js → DD0At2PN.js} +1 -1
  111. package/web/app/immutable/chunks/{BdXOFJeo.js → DD6Pkbic.js} +1 -1
  112. package/web/app/immutable/chunks/{COsML5DR.js → DDFSWjQU.js} +3 -3
  113. package/web/app/immutable/chunks/{Ciz44nC1.js → DGjH5-Hx.js} +1 -1
  114. package/web/app/immutable/chunks/{CXSuJ2ZK.js → DIFKHzYL.js} +1 -1
  115. package/web/app/immutable/chunks/{Dfex6H6B.js → DIoX_b5x.js} +1 -1
  116. package/web/app/immutable/chunks/{XXA_973X.js → DK77esWJ.js} +1 -1
  117. package/web/app/immutable/chunks/{9N2fNktT.js → DL9fM9Z6.js} +1 -1
  118. package/web/app/immutable/chunks/{MZfXqgXX.js → DNo8L_9b.js} +1 -1
  119. package/web/app/immutable/chunks/{-bBOxk3W.js → DOL39Ac3.js} +1 -1
  120. package/web/app/immutable/chunks/{Bzy14_Y3.js → DOpb_Wa_.js} +1 -1
  121. package/web/app/immutable/chunks/{CW-LHLDp.js → DPBL52wT.js} +7 -7
  122. package/web/app/immutable/chunks/{Cvr-8bX_.js → DQ04s54w.js} +1 -1
  123. package/web/app/immutable/chunks/{CbFEmy2D.js → DQ070aDn.js} +2 -2
  124. package/web/app/immutable/chunks/{iQlEdXPk.js → DQayjjKQ.js} +1 -1
  125. package/web/app/immutable/chunks/{Dko-Flac.js → DQkyZkjw.js} +1 -1
  126. package/web/app/immutable/chunks/{OZGRjDvq.js → DQpQ_Eis.js} +1 -1
  127. package/web/app/immutable/chunks/{SpvqHVer.js → DRbQFCiN.js} +1 -1
  128. package/web/app/immutable/chunks/{B-RiR-3W.js → DSkl9mpQ.js} +1 -1
  129. package/web/app/immutable/chunks/{Ch6rVsLf.js → DTosDNas.js} +1 -1
  130. package/web/app/immutable/chunks/{-lPRd7v2.js → DXJ8guE-.js} +1 -1
  131. package/web/app/immutable/chunks/{Bmg84LND.js → DYiKRSyK.js} +1 -1
  132. package/web/app/immutable/chunks/{BZtjF7Ie.js → DZzZGRg-.js} +1 -1
  133. package/web/app/immutable/chunks/{DU1XmBqY.js → DauuhR4o.js} +1 -1
  134. package/web/app/immutable/chunks/{CCWZuPTG.js → DbulPCWG.js} +1 -1
  135. package/web/app/immutable/chunks/{BSa8UQqG.js → DdMy5hhm.js} +1 -1
  136. package/web/app/immutable/chunks/{DJHSMHzO.js → DfYC2vFl.js} +1 -1
  137. package/web/app/immutable/chunks/{Jrnc38lr.js → Dft5YBpv.js} +1 -1
  138. package/web/app/immutable/chunks/{Shvd3y-7.js → DiD3o6_1.js} +1 -1
  139. package/web/app/immutable/chunks/{BzzEl9C8.js → Dj-i-4vt.js} +1 -1
  140. package/web/app/immutable/chunks/{BPovTGvM.js → Djhs3H6B.js} +1 -1
  141. package/web/app/immutable/chunks/{CjpXXX_J.js → Dm08LoPV.js} +1 -1
  142. package/web/app/immutable/chunks/{DaXLi7kw.js → DojlGzur.js} +1 -1
  143. package/web/app/immutable/chunks/{DixA-W0V.js → DpTBUsJF.js} +1 -1
  144. package/web/app/immutable/chunks/{B2xxVCZM.js → DssISSPU.js} +1 -1
  145. package/web/app/immutable/chunks/{Dt2W2Job.js → DvgbaoNK.js} +1 -1
  146. package/web/app/immutable/chunks/{FpRDS6GR.js → DvxEHPPT.js} +1 -1
  147. package/web/app/immutable/chunks/{DEjCmBII.js → DyfUN8R7.js} +1 -1
  148. package/web/app/immutable/chunks/{DntMfhqH.js → DzjRhthn.js} +4 -4
  149. package/web/app/immutable/chunks/{C60Ik0Qb.js → FSpiE1wW.js} +4 -4
  150. package/web/app/immutable/chunks/{DEo5oMHN.js → FhGlrjm8.js} +1 -1
  151. package/web/app/immutable/chunks/{ZD-F4NvX.js → H3_j1RTy.js} +1 -1
  152. package/web/app/immutable/chunks/{CEByQsO_.js → HOnA76CN.js} +1 -1
  153. package/web/app/immutable/chunks/{CPtB0jUS.js → HgUF9JxD.js} +1 -1
  154. package/web/app/immutable/chunks/{DVAcX8po.js → LcC8t7uh.js} +1 -1
  155. package/web/app/immutable/chunks/{DfBQRVUY.js → NiM-1eU3.js} +1 -1
  156. package/web/app/immutable/chunks/{zCdOCSz2.js → OOZgSySO.js} +1 -1
  157. package/web/app/immutable/chunks/{A1I58Dap.js → OduqxoGp.js} +1 -1
  158. package/web/app/immutable/chunks/{CaADSFdg.js → PCjNYuXW.js} +1 -1
  159. package/web/app/immutable/chunks/Pd6GM4gY.js +1 -0
  160. package/web/app/immutable/chunks/{xx12n3Gb.js → QEDJCahU.js} +1 -1
  161. package/web/app/immutable/chunks/{BCK268oV.js → QLIsYm_0.js} +1 -1
  162. package/web/app/immutable/chunks/{mIgIf34G.js → QPnNKbqJ.js} +1 -1
  163. package/web/app/immutable/chunks/{Btt3OR2y.js → QjTgQQZx.js} +1 -1
  164. package/web/app/immutable/chunks/{DzFUmVmc.js → RykOFORR.js} +1 -1
  165. package/web/app/immutable/chunks/{CmjmDPGO.js → W48e0TcX.js} +1 -1
  166. package/web/app/immutable/chunks/{Tbr6p59b.js → Xsgb18SC.js} +1 -1
  167. package/web/app/immutable/chunks/{DCIaHRk5.js → YlwMMeOs.js} +1 -1
  168. package/web/app/immutable/chunks/{DhbLviZQ.js → Z0VS8LLQ.js} +1 -1
  169. package/web/app/immutable/chunks/{CgJW_HcZ.js → dbgkJ9GM.js} +1 -1
  170. package/web/app/immutable/chunks/{Z1DZJfze.js → eFMkdoaf.js} +1 -1
  171. package/web/app/immutable/chunks/{BsMjnrdy.js → es3FqSjg.js} +1 -1
  172. package/web/app/immutable/chunks/{C--dVDXo.js → j1f7tS2i.js} +1 -1
  173. package/web/app/immutable/chunks/{DjrSmzCc.js → jvKdDF7D.js} +1 -1
  174. package/web/app/immutable/chunks/{DN8s5MPu.js → pRcFjb-H.js} +1 -1
  175. package/web/app/immutable/chunks/{CFgi_DMD.js → rgwCePpO.js} +1 -1
  176. package/web/app/immutable/chunks/{B1pmGVIx.js → u-Y0Tv7i.js} +1 -1
  177. package/web/app/immutable/chunks/{nHFvNMoD.js → umDdblid.js} +1 -1
  178. package/web/app/immutable/chunks/{CtuQQgf2.js → vGBd4whl.js} +2 -2
  179. package/web/app/immutable/chunks/{BaaGaTiz.js → vKQIfgIp.js} +1 -1
  180. package/web/app/immutable/chunks/{_EZnucM4.js → x1zid8su.js} +1 -1
  181. package/web/app/immutable/chunks/{BXidsM5y.js → xHA823KN.js} +1 -1
  182. package/web/app/immutable/chunks/{D5QJ-2vz.js → xpSH95ot.js} +1 -1
  183. package/web/app/immutable/chunks/{tDd-6B2L.js → zcEXOR-1.js} +1 -1
  184. package/web/app/immutable/entry/{app.VJdWRZXW.js → app.DzBvG1_l.js} +2 -2
  185. package/web/app/immutable/entry/start.CErE1GCU.js +1 -0
  186. package/web/app/immutable/nodes/{0.znaZSkGz.js → 0.C2zst7i8.js} +1 -1
  187. package/web/app/immutable/nodes/{1.QD_AYG75.js → 1.BIkIikjL.js} +1 -1
  188. package/web/app/immutable/nodes/{10.gF8-cogW.js → 10.NQQ6RXJ5.js} +1 -1
  189. package/web/app/immutable/nodes/{14.Dg2AgOXG.js → 14.DjgXWnV3.js} +1 -1
  190. package/web/app/immutable/nodes/{16.DwkJcrpd.js → 16.DIpAzx7I.js} +2 -2
  191. package/web/app/immutable/nodes/{2.BtT3yj0F.js → 2.D39xDr6a.js} +3 -3
  192. package/web/app/immutable/nodes/{3.CvwCGNZG.js → 3.CXiy3cZ4.js} +1 -1
  193. package/web/app/immutable/nodes/{4.DkczoMth.js → 4.Dc4411ZQ.js} +1 -1
  194. package/web/app/immutable/nodes/{5.BCyXLcum.js → 5.p_n2sq1_.js} +1 -1
  195. package/web/app/immutable/nodes/{6.BpqkaXHY.js → 6.D6xC5nhC.js} +1 -1
  196. package/web/app/immutable/nodes/{7.qMlWyBnC.js → 7.DXE6hDOy.js} +1 -1
  197. package/web/app/immutable/nodes/{8.Bq5rrqJa.js → 8.BU4_235n.js} +2 -2
  198. package/web/app/immutable/nodes/{9.CA3t47dE.js → 9.CYdkB-g-.js} +1 -1
  199. package/web/app/version.json +1 -1
  200. package/web/index.html +9 -9
  201. package/web/app/immutable/chunks/zh3oQLeX.js +0 -1
  202. package/web/app/immutable/entry/start.CgJpRFs5.js +0 -1
@@ -1 +1 @@
1
- import{f as o}from"./8RNmk_9I.js";var c=1;function i(){if(!(typeof globalThis>"u"))return globalThis}o(i,"getCaptureGlobal");function p(){return!!i()?.mermaidCaptureSizes}o(p,"shouldCaptureSizes");function u(){return typeof location>"u"?"browser-dev":`${location.pathname}${location.search}`}o(u,"capturedFromLocation");function d(n,r){const t=i();if(!t)return;const e=r.node(),s=((e&&"ownerSVGElement"in e?e.ownerSVGElement:null)??e)?.id??"(unknown)";t.mermaidCapturedSizes??=[];const a={svgId:s,sizes:n};t.mermaidCapturedSizes.push(a),t.mermaidLastCapturedSizes=a}o(d,"emitCapturedSizes");function m(n,r){const t=[];for(const e of r.nodes)e.isGroup||t.push({id:e.id,width:e.width??0,height:e.height??0});t.length!==0&&d({metadata:{captureVersion:c,capturedAt:new Date().toISOString(),capturedFrom:u()},nodes:t},n)}o(m,"captureNodeSizes");export{m as captureNodeSizes,p as shouldCaptureSizes};
1
+ import{f as o}from"./CQcnUt15.js";var c=1;function i(){if(!(typeof globalThis>"u"))return globalThis}o(i,"getCaptureGlobal");function p(){return!!i()?.mermaidCaptureSizes}o(p,"shouldCaptureSizes");function u(){return typeof location>"u"?"browser-dev":`${location.pathname}${location.search}`}o(u,"capturedFromLocation");function d(n,r){const t=i();if(!t)return;const e=r.node(),s=((e&&"ownerSVGElement"in e?e.ownerSVGElement:null)??e)?.id??"(unknown)";t.mermaidCapturedSizes??=[];const a={svgId:s,sizes:n};t.mermaidCapturedSizes.push(a),t.mermaidLastCapturedSizes=a}o(d,"emitCapturedSizes");function m(n,r){const t=[];for(const e of r.nodes)e.isGroup||t.push({id:e.id,width:e.width??0,height:e.height??0});t.length!==0&&d({metadata:{captureVersion:c,capturedAt:new Date().toISOString(),capturedFrom:u()},nodes:t},n)}o(m,"captureNodeSizes");export{m as captureNodeSizes,p as shouldCaptureSizes};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/B6pRjnl0.js","/app/immutable/chunks/CJvhopKt.js","/app/immutable/chunks/COCO5InB.js","/app/immutable/chunks/B8o4lNgr.js","/app/immutable/chunks/Crs9I2MT.js","/app/immutable/chunks/CpHIRYx9.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/C5Xi5eLp.js","/app/immutable/chunks/Dck4Okga.js","/app/immutable/chunks/D2g8BuR1.js","/app/immutable/chunks/oALOmsvi.js","/app/immutable/chunks/Cdhgfy6h.js","/app/immutable/chunks/BY3Ptqbg.js","/app/immutable/chunks/DVkfuwKw.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/Bqoyy9yx.js","/app/immutable/chunks/BlJs0v1V.js","/app/immutable/chunks/BjFoJgFv.js","/app/immutable/chunks/CjSUqH7t.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/D5B1sycf.js","/app/immutable/chunks/D2AmAQEr.js","/app/immutable/chunks/BDq7EC2K.js","/app/immutable/chunks/CUrlpJj4.js","/app/immutable/assets/notify.CaX-6yIe.css","/app/immutable/chunks/Jrnc38lr.js","/app/immutable/chunks/C563feV7.js","/app/immutable/chunks/BJzHxIyr.js","/app/immutable/chunks/D62E6eA-.js","/app/immutable/chunks/Dx5-Ovf5.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/DUT4V6mb.js","/app/immutable/chunks/CaQ_vubD.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/7yhhL_Kv.js","/app/immutable/chunks/iQlEdXPk.js"])))=>i.map(i=>d[i]);
2
- import{bo as b,_ as x}from"./COCO5InB.js";import{g as f,G2 as a,d6 as P,Ez as S,wu as N,CM as R,tp as q,pi as H,s_ as W,HZ as U}from"./BjFoJgFv.js";import{w as I}from"./D62E6eA-.js";import{ba as j}from"./C5Xi5eLp.js";import{parseIntentLink as V}from"./DOB0mTS8.js";import{n as y}from"./CJvhopKt.js";import"./B8o4lNgr.js";import"./Crs9I2MT.js";import"./Dck4Okga.js";import"./ChTqQfQN.js";import"./BlJs0v1V.js";import{H as B,q as C,G as L}from"./B6LKhrY2.js";import{dj as D}from"./DUT4V6mb.js";import{o as M,n as z}from"./Cx4f7t9d.js";const p="assistant-content",G=a.createSelector(r=>{const e=M.select(r),s=z.select(r),t=e.find(i=>i.agentId===s)??e.find(i=>i.isActive)??e.find(i=>i.messageCount>0)??e[0];return P(t?.agentId??null)}),O=new Map;function $(r,e=!1){const s=O.get(r)??{explicit:0,background:0},t={explicit:s.explicit+(e?0:1),background:s.background+(e?1:0)};return O.set(r,t),e?t:{explicit:t.explicit}}function m(r,e){const s=O.get(r);return s!==void 0&&e.explicit===s.explicit&&(e.background===void 0||e.background===s.background)}async function K(r){a.dispatch(q(r)),L.select(a.state,r).restoreStatus==="pending"&&await new Promise(e=>{const s=L.withStore(a)(r).subscribe(t=>{t.restoreStatus!=="pending"&&(e(),queueMicrotask(()=>s()))})})}function h(r,e,s){const t=L.select(a.state,s);if(!t.panels[p]||Object.keys(t.panels).some(i=>i!==p)){const i=t.panels[p],d=Object.values(t.panels).flatMap(n=>n.tabs.filter(o=>o.type!=="agent"||o.workspaceId!==f)),c=d.some(n=>n.id===i?.activeTabId)?i?.activeTabId??null:d.at(-1)?.id??null;a.dispatch(H(s,{root:{type:"panel",panelId:p},panels:{[p]:{id:p,tabs:d,activeTabId:c}},focusedPanelId:t.focusedPanelId===p?p:null,hiddenTabs:C.select(a.state,s)}))}a.dispatch(W(s,r,p,void 0,!0,void 0,!1,e.background||e.preserveFocus,void 0,e.background))}async function ue(r,e={}){try{return await Z(r,e)}catch(s){return y.error(b.ui_linkHandler_notFound_title(),{description:s instanceof Error?s.message:String(s)}),!0}}async function Z(r,e){const s=/^intent:\/\/local\/([^/?#]+)\/agent\/([^/?#]+)$/.exec(r),t=r.startsWith("intent://")?V(r):null,i=t?.valid&&t.type==="workspace"?[r,t.resourceId]:/^\/workspace\/([^/?#]+)\/?$/.exec(r),d=/^https?:\/\//.test(r)&&!j(r);if(!i&&!s&&!d&&!(t?.valid&&["file","message","note","task"].includes(t.type))||i&&[f,"new"].includes(i[1]))return!1;const c=M.select(a.state),n=e.agentId?P(e.agentId):e.background?c.length===1?P(c[0].agentId):null:e.layoutId??G.select(a.state);if(!n)return!0;const o=$(n,e.background);if(await K(n),!m(n,o))return!0;if(i){const u=i[1],g=await I.workspaces.get(u);return m(n,o)?g?(a.dispatch(S(g)),h({type:"workspace",title:g.title,workspaceId:u,closable:!0},e,n),!0):(y.error(b.workspace_loader_notFound_title()),!0):!0}if(s)return T(s[1],s[2],e,n,o);if(d){const{resolveBrowserLinkForOpen:u}=await x(async()=>{const{resolveBrowserLinkForOpen:v}=await import("./B6pRjnl0.js").then(k=>k.b);return{resolveBrowserLinkForOpen:v}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24]),import.meta.url),g=await u(r);return m(n,o)&&h({type:"browser",title:new URL(r).hostname,browserUrl:g.url,browserRequestedUrl:g.requestedUrl,workspaceId:f,closable:!0},e,n),!0}if(!t?.valid)return!1;const _=t.workspaceId??f;if(t.type==="file"){const u=await I.workspaces.get(_);return m(n,o)?u?(a.dispatch(S(u)),h({type:"file",title:t.resourceId.split("/").at(-1)??t.resourceId,filePath:t.resourceId,workspaceId:_,closable:!0,data:{line:t.line,filePathIsLiteral:!0}},e,n),!0):(y.error(b.workspace_loader_notFound_title()),!0):!0}if(t.type==="message"&&t.agentId)return T(_,t.agentId,e,n,o,t.resourceId);if(t.type!=="note"&&t.type!=="task")return!1;const l=t.workspaceId??f,[w,A]=await Promise.all([a.dispatch(N(l,t.resourceId)),Promise.resolve(D.select(a.state,l)??I.workspaces.get(l)).catch(()=>null)]);if(!m(n,o))return!0;if(!w||String(w.workspaceId)!==l)return y.error(b.ui_linkHandler_notFound_title(),{description:b.ui_linkHandler_noteNotFound_error({noteId:t.resourceId,workspaceId:l})}),!0;A&&String(A.id)===l&&a.dispatch(S(A));const E=Object.entries(B.select(a.state)).some(([u,g])=>{const v=k=>k.type==="note"&&k.noteId===String(w.id)&&(k.workspaceId??u)===l;return Object.values(g.panels).some(k=>k.tabs.some(v))||C.select(a.state,u).some(v)}),F=a.state.transientUi.byWorkspaceId[l]?.noteViewModeByNoteId[String(w.id)];return!E&&(!e.background||F===void 0)&&a.dispatch(R(l,String(w.id),"editor")),h({type:"note",title:w.title,noteId:String(w.id),workspaceId:l,closable:!0},e,n),!0}async function T(r,e,s,t,i,d){const c=await I.agents.get(e,r===f?void 0:r);r===f&&c&&(r=String(c.workspaceId));const n=r===f?null:await I.workspaces.get(r);if(!m(t,i))return!0;if(!n&&r!==f||!c||String(c.workspaceId)!==r)return y.error(b.ui_linkHandler_notFound_title()),!0;if(n&&a.dispatch(S(n)),a.dispatch(U(c)),h({type:"agent",title:c.name??e,agentId:e,workspaceId:r,closable:!0},s,t),d&&!s.background){const{openMessage:o}=await x(async()=>{const{openMessage:_}=await import("./Jrnc38lr.js");return{openMessage:_}},__vite__mapDeps([25,26,18,3,17,19,20,13,5,8,2,11,27,28,7,4,6,9,10,12,14,29,30,31,22,32,15,33,34,35]),import.meta.url);o({workspaceId:r,agentId:e,messageId:d,contentAlreadyOpen:!0})}return!0}export{p as ASSISTANT_CONTENT_PANEL_ID,G as selectAssistantPanelLayoutId,ue as showAssistantContent};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/B6pRjnl0.js","/app/immutable/chunks/CJvhopKt.js","/app/immutable/chunks/COCO5InB.js","/app/immutable/chunks/B8o4lNgr.js","/app/immutable/chunks/Crs9I2MT.js","/app/immutable/chunks/CpHIRYx9.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/C5Xi5eLp.js","/app/immutable/chunks/Dck4Okga.js","/app/immutable/chunks/D2g8BuR1.js","/app/immutable/chunks/oALOmsvi.js","/app/immutable/chunks/Cdhgfy6h.js","/app/immutable/chunks/BY3Ptqbg.js","/app/immutable/chunks/DVkfuwKw.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/Bqoyy9yx.js","/app/immutable/chunks/BlJs0v1V.js","/app/immutable/chunks/BjFoJgFv.js","/app/immutable/chunks/CjSUqH7t.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/D5B1sycf.js","/app/immutable/chunks/D2AmAQEr.js","/app/immutable/chunks/BDq7EC2K.js","/app/immutable/chunks/CUrlpJj4.js","/app/immutable/assets/notify.CaX-6yIe.css","/app/immutable/chunks/Dft5YBpv.js","/app/immutable/chunks/C563feV7.js","/app/immutable/chunks/BJzHxIyr.js","/app/immutable/chunks/D62E6eA-.js","/app/immutable/chunks/Dx5-Ovf5.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/DUT4V6mb.js","/app/immutable/chunks/CaQ_vubD.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/B7JUZ-OL.js","/app/immutable/chunks/DQayjjKQ.js"])))=>i.map(i=>d[i]);
2
+ import{bo as b,_ as x}from"./COCO5InB.js";import{g as f,G2 as a,d6 as P,Ez as S,wu as N,CM as R,tp as q,pi as H,s_ as W,HZ as U}from"./BjFoJgFv.js";import{w as I}from"./D62E6eA-.js";import{ba as j}from"./C5Xi5eLp.js";import{parseIntentLink as V}from"./D7KhJm9U.js";import{n as y}from"./CJvhopKt.js";import"./B8o4lNgr.js";import"./Crs9I2MT.js";import"./Dck4Okga.js";import"./ChTqQfQN.js";import"./BlJs0v1V.js";import{H as B,q as C,G as L}from"./B6LKhrY2.js";import{dj as D}from"./DUT4V6mb.js";import{o as M,n as z}from"./Cx4f7t9d.js";const p="assistant-content",G=a.createSelector(r=>{const e=M.select(r),s=z.select(r),t=e.find(i=>i.agentId===s)??e.find(i=>i.isActive)??e.find(i=>i.messageCount>0)??e[0];return P(t?.agentId??null)}),O=new Map;function $(r,e=!1){const s=O.get(r)??{explicit:0,background:0},t={explicit:s.explicit+(e?0:1),background:s.background+(e?1:0)};return O.set(r,t),e?t:{explicit:t.explicit}}function m(r,e){const s=O.get(r);return s!==void 0&&e.explicit===s.explicit&&(e.background===void 0||e.background===s.background)}async function K(r){a.dispatch(q(r)),L.select(a.state,r).restoreStatus==="pending"&&await new Promise(e=>{const s=L.withStore(a)(r).subscribe(t=>{t.restoreStatus!=="pending"&&(e(),queueMicrotask(()=>s()))})})}function h(r,e,s){const t=L.select(a.state,s);if(!t.panels[p]||Object.keys(t.panels).some(i=>i!==p)){const i=t.panels[p],d=Object.values(t.panels).flatMap(n=>n.tabs.filter(o=>o.type!=="agent"||o.workspaceId!==f)),c=d.some(n=>n.id===i?.activeTabId)?i?.activeTabId??null:d.at(-1)?.id??null;a.dispatch(H(s,{root:{type:"panel",panelId:p},panels:{[p]:{id:p,tabs:d,activeTabId:c}},focusedPanelId:t.focusedPanelId===p?p:null,hiddenTabs:C.select(a.state,s)}))}a.dispatch(W(s,r,p,void 0,!0,void 0,!1,e.background||e.preserveFocus,void 0,e.background))}async function ue(r,e={}){try{return await Z(r,e)}catch(s){return y.error(b.ui_linkHandler_notFound_title(),{description:s instanceof Error?s.message:String(s)}),!0}}async function Z(r,e){const s=/^intent:\/\/local\/([^/?#]+)\/agent\/([^/?#]+)$/.exec(r),t=r.startsWith("intent://")?V(r):null,i=t?.valid&&t.type==="workspace"?[r,t.resourceId]:/^\/workspace\/([^/?#]+)\/?$/.exec(r),d=/^https?:\/\//.test(r)&&!j(r);if(!i&&!s&&!d&&!(t?.valid&&["file","message","note","task"].includes(t.type))||i&&[f,"new"].includes(i[1]))return!1;const c=M.select(a.state),n=e.agentId?P(e.agentId):e.background?c.length===1?P(c[0].agentId):null:e.layoutId??G.select(a.state);if(!n)return!0;const o=$(n,e.background);if(await K(n),!m(n,o))return!0;if(i){const u=i[1],g=await I.workspaces.get(u);return m(n,o)?g?(a.dispatch(S(g)),h({type:"workspace",title:g.title,workspaceId:u,closable:!0},e,n),!0):(y.error(b.workspace_loader_notFound_title()),!0):!0}if(s)return T(s[1],s[2],e,n,o);if(d){const{resolveBrowserLinkForOpen:u}=await x(async()=>{const{resolveBrowserLinkForOpen:v}=await import("./B6pRjnl0.js").then(k=>k.b);return{resolveBrowserLinkForOpen:v}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24]),import.meta.url),g=await u(r);return m(n,o)&&h({type:"browser",title:new URL(r).hostname,browserUrl:g.url,browserRequestedUrl:g.requestedUrl,workspaceId:f,closable:!0},e,n),!0}if(!t?.valid)return!1;const _=t.workspaceId??f;if(t.type==="file"){const u=await I.workspaces.get(_);return m(n,o)?u?(a.dispatch(S(u)),h({type:"file",title:t.resourceId.split("/").at(-1)??t.resourceId,filePath:t.resourceId,workspaceId:_,closable:!0,data:{line:t.line,filePathIsLiteral:!0}},e,n),!0):(y.error(b.workspace_loader_notFound_title()),!0):!0}if(t.type==="message"&&t.agentId)return T(_,t.agentId,e,n,o,t.resourceId);if(t.type!=="note"&&t.type!=="task")return!1;const l=t.workspaceId??f,[w,A]=await Promise.all([a.dispatch(N(l,t.resourceId)),Promise.resolve(D.select(a.state,l)??I.workspaces.get(l)).catch(()=>null)]);if(!m(n,o))return!0;if(!w||String(w.workspaceId)!==l)return y.error(b.ui_linkHandler_notFound_title(),{description:b.ui_linkHandler_noteNotFound_error({noteId:t.resourceId,workspaceId:l})}),!0;A&&String(A.id)===l&&a.dispatch(S(A));const E=Object.entries(B.select(a.state)).some(([u,g])=>{const v=k=>k.type==="note"&&k.noteId===String(w.id)&&(k.workspaceId??u)===l;return Object.values(g.panels).some(k=>k.tabs.some(v))||C.select(a.state,u).some(v)}),F=a.state.transientUi.byWorkspaceId[l]?.noteViewModeByNoteId[String(w.id)];return!E&&(!e.background||F===void 0)&&a.dispatch(R(l,String(w.id),"editor")),h({type:"note",title:w.title,noteId:String(w.id),workspaceId:l,closable:!0},e,n),!0}async function T(r,e,s,t,i,d){const c=await I.agents.get(e,r===f?void 0:r);r===f&&c&&(r=String(c.workspaceId));const n=r===f?null:await I.workspaces.get(r);if(!m(t,i))return!0;if(!n&&r!==f||!c||String(c.workspaceId)!==r)return y.error(b.ui_linkHandler_notFound_title()),!0;if(n&&a.dispatch(S(n)),a.dispatch(U(c)),h({type:"agent",title:c.name??e,agentId:e,workspaceId:r,closable:!0},s,t),d&&!s.background){const{openMessage:o}=await x(async()=>{const{openMessage:_}=await import("./Dft5YBpv.js");return{openMessage:_}},__vite__mapDeps([25,26,18,3,17,19,20,13,5,8,2,11,27,28,7,4,6,9,10,12,14,29,30,31,22,32,15,33,34,35]),import.meta.url);o({workspaceId:r,agentId:e,messageId:d,contentAlreadyOpen:!0})}return!0}export{p as ASSISTANT_CONTENT_PANEL_ID,G as selectAssistantPanelLayoutId,ue as showAssistantContent};
@@ -1 +1 @@
1
- import{d as l,v as h,t as T}from"./CjSUqH7t.js";import{G2 as c,ti as w}from"./BjFoJgFv.js";import{i as W,c as s,n as i,b as m}from"./7yhhL_Kv.js";const E=new Set(["new","creating"]);function g(n){let t;try{t=decodeURIComponent(n)}catch{return null}return t.length===0||E.has(t)?null:t}function f(n){const t=/^\/workspace\/([^/?#]+)\/?(?:[?#].*)?$/.exec(n);return t?g(t[1]):null}function A(n){const t=/^\/workspace\/([^/?#]+)(?:[/?#].*)?$/.exec(n);return t?g(t[1]):null}function N(n,t){return t.length>0&&A(n)===t}function p(){return typeof window>"u"?null:window.location?.pathname??null}function d(n,t){const e=`/workspace/${encodeURIComponent(n)}`,a=t?new URLSearchParams(t).toString():"";return a?`${e}?${a}`:e}function R(n,t){const e=t?.presenceFollowRequestId;return e?w(n,e):w(n)}function I(n,t){return t?i(n,{state:t}):i(n)}function o(n){return n?.tabState?.currentTabId??null}async function S(n,t,e,a){m();const u=I(t,e),r={workspaceId:n,epoch:s(),startTabId:a};return await u,r}function y(n){return!n||W()}function b(n,t){if(s()!==n.epoch||t!==n.startTabId&&t!==n.workspaceId)return!1;const e=p();return e===null||f(e)===n.workspaceId}async function v(n,t,e){if(y(n))return!1;const a=await S(n,t,e,o(c.state));return b(a,o(c.state))?(c.dispatch(R(n,e)),!0):!1}function*k(n,t,e){if(y(n))return!1;const a=o(yield*h(r=>r)),u=yield*l(S,n,t,e,a);return b(u,o(yield*h(r=>r)))?(yield*T(R(n,e)),!0):!1}function P(){m();const n=s(),t=o(c.state),e=p();return()=>s()===n&&o(c.state)===t&&p()===e}function _(n,t={}){return v(n,d(n,t.query),t.state)}function O(n,t={}){return k(n,d(n,t.query),t.state)}async function $(n){const t=f(n);t?await v(t,n,void 0):await i(n)}function*j(n){const t=f(n);t?yield*l(k,t,n,void 0):yield*l(i,n)}const U=Object.freeze(Object.defineProperty({__proto__:null,claimNavigation:P,navigateToAppRoute:$,navigateToAppRouteSaga:j,openAndShowWorkspace:_,showWorkspaceSaga:O,workspaceRoute:d},Symbol.toStringTag,{value:"Module"}));export{p as a,j as b,P as c,O as d,d as e,N as i,$ as n,_ as o,f as p,U as s,A as w};
1
+ import{d as l,v as h,t as T}from"./CjSUqH7t.js";import{G2 as c,ti as w}from"./BjFoJgFv.js";import{i as W,c as s,n as i,b as m}from"./B7JUZ-OL.js";const E=new Set(["new","creating"]);function g(n){let t;try{t=decodeURIComponent(n)}catch{return null}return t.length===0||E.has(t)?null:t}function f(n){const t=/^\/workspace\/([^/?#]+)\/?(?:[?#].*)?$/.exec(n);return t?g(t[1]):null}function A(n){const t=/^\/workspace\/([^/?#]+)(?:[/?#].*)?$/.exec(n);return t?g(t[1]):null}function N(n,t){return t.length>0&&A(n)===t}function p(){return typeof window>"u"?null:window.location?.pathname??null}function d(n,t){const e=`/workspace/${encodeURIComponent(n)}`,a=t?new URLSearchParams(t).toString():"";return a?`${e}?${a}`:e}function R(n,t){const e=t?.presenceFollowRequestId;return e?w(n,e):w(n)}function I(n,t){return t?i(n,{state:t}):i(n)}function o(n){return n?.tabState?.currentTabId??null}async function S(n,t,e,a){m();const u=I(t,e),r={workspaceId:n,epoch:s(),startTabId:a};return await u,r}function y(n){return!n||W()}function b(n,t){if(s()!==n.epoch||t!==n.startTabId&&t!==n.workspaceId)return!1;const e=p();return e===null||f(e)===n.workspaceId}async function v(n,t,e){if(y(n))return!1;const a=await S(n,t,e,o(c.state));return b(a,o(c.state))?(c.dispatch(R(n,e)),!0):!1}function*k(n,t,e){if(y(n))return!1;const a=o(yield*h(r=>r)),u=yield*l(S,n,t,e,a);return b(u,o(yield*h(r=>r)))?(yield*T(R(n,e)),!0):!1}function P(){m();const n=s(),t=o(c.state),e=p();return()=>s()===n&&o(c.state)===t&&p()===e}function _(n,t={}){return v(n,d(n,t.query),t.state)}function O(n,t={}){return k(n,d(n,t.query),t.state)}async function $(n){const t=f(n);t?await v(t,n,void 0):await i(n)}function*j(n){const t=f(n);t?yield*l(k,t,n,void 0):yield*l(i,n)}const U=Object.freeze(Object.defineProperty({__proto__:null,claimNavigation:P,navigateToAppRoute:$,navigateToAppRouteSaga:j,openAndShowWorkspace:_,showWorkspaceSaga:O,workspaceRoute:d},Symbol.toStringTag,{value:"Module"}));export{p as a,j as b,P as c,O as d,d as e,N as i,$ as n,_ as o,f as p,U as s,A as w};
@@ -1 +1 @@
1
- import{g as l,r as m,d as a}from"./DGG8qQva.js";import{p}from"./-bBOxk3W.js";import{f as t,bC as o}from"./8RNmk_9I.js";import{M as u,b as c}from"./BEmWnLiC.js";var f=c().RailroadPeg.parser.LangiumParser,i=t(e=>{const r=e.alternatives.map(d);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformOrderedChoice"),d=t(e=>{const r=e.elements.map(P);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformSequence"),P=t(e=>{const r=g(e.suffix);return e.operator?{type:"special",text:e.operator==="&"?`&${s(r)}`:`!${s(r)}`}:r},"transformPrefix"),s=t(e=>{switch(e.type){case"terminal":return`"${e.value}"`;case"nonterminal":return e.name;case"special":return e.text;default:return"(...)"}},"nodeToLabel"),g=t(e=>{const r=v(e.primary);if(!e.operator)return r;switch(e.operator){case"?":return{type:"optional",element:r};case"*":return{type:"repetition",element:r,min:0,max:1/0};case"+":return{type:"repetition",element:r,min:1,max:1/0};default:throw new Error(`Unsupported PEG suffix operator: ${e.operator}`)}},"transformSuffix"),v=t(e=>{switch(e.$type){case"PegLiteral":return{type:"terminal",value:e.value};case"PegIdentifier":return{type:"nonterminal",name:e.name};case"PegGroup":return i(e.element);case"PegAny":return{type:"special",text:e.dot};default:throw new Error(`Unsupported PEG primary node: ${e.$type}`)}},"transformPrimary"),y=t(e=>({name:e.name,definition:i(e.definition)}),"transformRule"),h=t(e=>{p(e,a),e.title&&a.setTitle(e.title),e.rules.map(r=>a.addRule(y(r)))},"populateDb"),b={parse:t(e=>{a.clear(),o.debug("[PEG Parser] Starting Langium parse");const r=f.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new u(r);const n=r.value;o.debug("[PEG Parser] Parsed rules:",n.rules.length),h(n),o.debug("[PEG Parser] Parse complete")},"parse"),parser:{yy:a}},$={parser:b,db:a,renderer:m,styles:l};export{$ as diagram};
1
+ import{g as l,r as m,d as a}from"./Bp8wUB3U.js";import{p}from"./DOL39Ac3.js";import{f as t,bC as o}from"./CQcnUt15.js";import{M as u,b as c}from"./BEmWnLiC.js";var f=c().RailroadPeg.parser.LangiumParser,i=t(e=>{const r=e.alternatives.map(d);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformOrderedChoice"),d=t(e=>{const r=e.elements.map(P);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformSequence"),P=t(e=>{const r=g(e.suffix);return e.operator?{type:"special",text:e.operator==="&"?`&${s(r)}`:`!${s(r)}`}:r},"transformPrefix"),s=t(e=>{switch(e.type){case"terminal":return`"${e.value}"`;case"nonterminal":return e.name;case"special":return e.text;default:return"(...)"}},"nodeToLabel"),g=t(e=>{const r=v(e.primary);if(!e.operator)return r;switch(e.operator){case"?":return{type:"optional",element:r};case"*":return{type:"repetition",element:r,min:0,max:1/0};case"+":return{type:"repetition",element:r,min:1,max:1/0};default:throw new Error(`Unsupported PEG suffix operator: ${e.operator}`)}},"transformSuffix"),v=t(e=>{switch(e.$type){case"PegLiteral":return{type:"terminal",value:e.value};case"PegIdentifier":return{type:"nonterminal",name:e.name};case"PegGroup":return i(e.element);case"PegAny":return{type:"special",text:e.dot};default:throw new Error(`Unsupported PEG primary node: ${e.$type}`)}},"transformPrimary"),y=t(e=>({name:e.name,definition:i(e.definition)}),"transformRule"),h=t(e=>{p(e,a),e.title&&a.setTitle(e.title),e.rules.map(r=>a.addRule(y(r)))},"populateDb"),b={parse:t(e=>{a.clear(),o.debug("[PEG Parser] Starting Langium parse");const r=f.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new u(r);const n=r.value;o.debug("[PEG Parser] Parsed rules:",n.rules.length),h(n),o.debug("[PEG Parser] Parse complete")},"parse"),parser:{yy:a}},$={parser:b,db:a,renderer:m,styles:l};export{$ as diagram};
@@ -1,4 +1,4 @@
1
- import{g as ee}from"./DekSqFjl.js";import{s as se}from"./rcY8Jah2.js";import{f as p,bC as b,aO as $,bZ as ie,cx as re,aL as ae,c7 as ne,aK as oe,c6 as le,c9 as ce,aP as he,aJ as ue,a4 as j,a0 as de,c3 as kt}from"./8RNmk_9I.js";import{c as fe}from"./BMTtG9zH.js";import{aI as pe}from"./BzzEl9C8.js";var Ct=(function(){var t=p(function(V,o,h,a){for(h=h||{},a=V.length;a--;h[V[a]]=o);return h},"o"),e=[1,2],s=[1,3],n=[1,4],r=[2,4],c=[1,9],u=[1,11],S=[1,16],d=[1,17],T=[1,18],E=[1,19],m=[1,33],L=[1,20],D=[1,21],f=[1,22],I=[1,23],R=[1,24],C=[1,26],F=[1,27],A=[1,28],P=[1,29],w=[1,30],z=[1,31],rt=[1,32],at=[1,35],nt=[1,36],ot=[1,37],lt=[1,38],K=[1,34],y=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],ct=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],Lt=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],gt={trace:p(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"CLICK",39:"STRING",40:"HREF",41:"classDef",42:"CLASSDEF_ID",43:"CLASSDEF_STYLEOPTS",44:"DEFAULT",45:"style",46:"STYLE_IDS",47:"STYLEDEF_STYLEOPTS",48:"class",49:"CLASSENTITY_IDS",50:"STYLECLASS",51:"direction_tb",52:"direction_bt",53:"direction_rl",54:"direction_lr",56:";",57:"EDGE_STATE",58:"STYLE_SEPARATOR",59:"left_of",60:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:p(function(o,h,a,g,_,i,B){var l=i.length-1;switch(_){case 3:return g.setRootDoc(i[l]),i[l];case 4:this.$=[];break;case 5:i[l]!="nl"&&(i[l-1].push(i[l]),this.$=i[l-1]);break;case 6:case 7:this.$=i[l];break;case 8:this.$="nl";break;case 12:this.$=i[l];break;case 13:const Q=i[l-1];Q.description=g.trimColon(i[l]),this.$=Q;break;case 14:this.$={stmt:"relation",state1:i[l-2],state2:i[l]};break;case 15:const Tt=g.trimColon(i[l]);this.$={stmt:"relation",state1:i[l-3],state2:i[l-1],description:Tt};break;case 19:this.$={stmt:"state",id:i[l-3],type:"default",description:"",doc:i[l-1]};break;case 20:var Y=i[l],X=i[l-2].trim();if(i[l].match(":")){var ut=i[l].split(":");Y=ut[0],X=[X,ut[1]]}this.$={stmt:"state",id:Y,type:"default",description:X};break;case 21:this.$={stmt:"state",id:i[l-3],type:"default",description:i[l-5],doc:i[l-1]};break;case 22:this.$={stmt:"state",id:i[l],type:"fork"};break;case 23:this.$={stmt:"state",id:i[l],type:"join"};break;case 24:this.$={stmt:"state",id:i[l],type:"choice"};break;case 25:this.$={stmt:"state",id:g.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:i[l-1].trim(),note:{position:i[l-2].trim(),text:i[l].trim()}};break;case 29:this.$=i[l].trim(),g.setAccTitle(this.$);break;case 30:case 31:this.$=i[l].trim(),g.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:i[l-3],url:i[l-2],tooltip:i[l-1]};break;case 33:this.$={stmt:"click",id:i[l-3],url:i[l-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:i[l-1].trim(),classes:i[l].trim()};break;case 36:this.$={stmt:"style",id:i[l-1].trim(),styleClass:i[l].trim()};break;case 37:this.$={stmt:"applyClass",id:i[l-1].trim(),styleClass:i[l].trim()};break;case 38:g.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:g.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:g.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:g.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:i[l].trim(),type:"default",description:""};break;case 46:this.$={stmt:"state",id:i[l-2].trim(),classes:[i[l].trim()],type:"default",description:""};break;case 47:this.$={stmt:"state",id:i[l-2].trim(),classes:[i[l].trim()],type:"default",description:""};break}},"anonymous"),table:[{3:1,4:e,5:s,6:n},{1:[3]},{3:5,4:e,5:s,6:n},{3:6,4:e,5:s,6:n},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],r,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:c,5:u,8:8,9:10,10:12,11:13,12:14,13:15,16:S,17:d,19:T,22:E,24:m,25:L,26:D,27:f,28:I,29:R,32:25,33:C,35:F,37:A,38:P,41:w,45:z,48:rt,51:at,52:nt,53:ot,54:lt,57:K},t(y,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:S,17:d,19:T,22:E,24:m,25:L,26:D,27:f,28:I,29:R,32:25,33:C,35:F,37:A,38:P,41:w,45:z,48:rt,51:at,52:nt,53:ot,54:lt,57:K},t(y,[2,7]),t(y,[2,8]),t(y,[2,9]),t(y,[2,10]),t(y,[2,11]),t(y,[2,12],{14:[1,40],15:[1,41]}),t(y,[2,16]),{18:[1,42]},t(y,[2,18],{20:[1,43]}),{23:[1,44]},t(y,[2,22]),t(y,[2,23]),t(y,[2,24]),t(y,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},t(y,[2,28]),{34:[1,49]},{36:[1,50]},t(y,[2,31]),{13:51,24:m,57:K},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},t(ct,[2,44],{58:[1,56]}),t(ct,[2,45],{58:[1,57]}),t(y,[2,38]),t(y,[2,39]),t(y,[2,40]),t(y,[2,41]),t(y,[2,6]),t(y,[2,13]),{13:58,24:m,57:K},t(y,[2,17]),t(Lt,r,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},t(y,[2,29]),t(y,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},t(y,[2,14],{14:[1,71]}),{4:c,5:u,8:8,9:10,10:12,11:13,12:14,13:15,16:S,17:d,19:T,21:[1,72],22:E,24:m,25:L,26:D,27:f,28:I,29:R,32:25,33:C,35:F,37:A,38:P,41:w,45:z,48:rt,51:at,52:nt,53:ot,54:lt,57:K},t(y,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},t(y,[2,34]),t(y,[2,35]),t(y,[2,36]),t(y,[2,37]),t(ct,[2,46]),t(ct,[2,47]),t(y,[2,15]),t(y,[2,19]),t(Lt,r,{7:78}),t(y,[2,26]),t(y,[2,27]),{5:[1,79]},{5:[1,80]},{4:c,5:u,8:8,9:10,10:12,11:13,12:14,13:15,16:S,17:d,19:T,21:[1,81],22:E,24:m,25:L,26:D,27:f,28:I,29:R,32:25,33:C,35:F,37:A,38:P,41:w,45:z,48:rt,51:at,52:nt,53:ot,54:lt,57:K},t(y,[2,32]),t(y,[2,33]),t(y,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:p(function(o,h){if(h.recoverable)this.trace(o);else{var a=new Error(o);throw a.hash=h,a}},"parseError"),parse:p(function(o){var h=this,a=[0],g=[],_=[null],i=[],B=this.table,l="",Y=0,X=0,ut=2,Q=1,Tt=i.slice.call(arguments,1),k=Object.create(this.lexer),U={yy:{}};for(var Et in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Et)&&(U.yy[Et]=this.yy[Et]);k.setInput(o,U.yy),U.yy.lexer=k,U.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var _t=k.yylloc;i.push(_t);var Qt=k.options&&k.options.ranges;typeof U.yy.parseError=="function"?this.parseError=U.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function te(O){a.length=a.length-2*O,_.length=_.length-O,i.length=i.length-O}p(te,"popStack");function It(){var O;return O=g.pop()||k.lex()||Q,typeof O!="number"&&(O instanceof Array&&(g=O,O=g.pop()),O=h.symbols_[O]||O),O}p(It,"lex");for(var x,W,N,mt,J={},dt,G,wt,ft;;){if(W=a[a.length-1],this.defaultActions[W]?N=this.defaultActions[W]:((x===null||typeof x>"u")&&(x=It()),N=B[W]&&B[W][x]),typeof N>"u"||!N.length||!N[0]){var bt="";ft=[];for(dt in B[W])this.terminals_[dt]&&dt>ut&&ft.push("'"+this.terminals_[dt]+"'");k.showPosition?bt="Parse error on line "+(Y+1)+`:
1
+ import{g as ee}from"./BfS0Q-nX.js";import{s as se}from"./1iwlWivR.js";import{f as p,bC as b,aO as $,bZ as ie,cx as re,aL as ae,c7 as ne,aK as oe,c6 as le,c9 as ce,aP as he,aJ as ue,a4 as j,a0 as de,c3 as kt}from"./CQcnUt15.js";import{c as fe}from"./CHwcICZW.js";import{aI as pe}from"./Dj-i-4vt.js";var Ct=(function(){var t=p(function(V,o,h,a){for(h=h||{},a=V.length;a--;h[V[a]]=o);return h},"o"),e=[1,2],s=[1,3],n=[1,4],r=[2,4],c=[1,9],u=[1,11],S=[1,16],d=[1,17],T=[1,18],E=[1,19],m=[1,33],L=[1,20],D=[1,21],f=[1,22],I=[1,23],R=[1,24],C=[1,26],F=[1,27],A=[1,28],P=[1,29],w=[1,30],z=[1,31],rt=[1,32],at=[1,35],nt=[1,36],ot=[1,37],lt=[1,38],K=[1,34],y=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],ct=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],Lt=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],gt={trace:p(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"CLICK",39:"STRING",40:"HREF",41:"classDef",42:"CLASSDEF_ID",43:"CLASSDEF_STYLEOPTS",44:"DEFAULT",45:"style",46:"STYLE_IDS",47:"STYLEDEF_STYLEOPTS",48:"class",49:"CLASSENTITY_IDS",50:"STYLECLASS",51:"direction_tb",52:"direction_bt",53:"direction_rl",54:"direction_lr",56:";",57:"EDGE_STATE",58:"STYLE_SEPARATOR",59:"left_of",60:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:p(function(o,h,a,g,_,i,B){var l=i.length-1;switch(_){case 3:return g.setRootDoc(i[l]),i[l];case 4:this.$=[];break;case 5:i[l]!="nl"&&(i[l-1].push(i[l]),this.$=i[l-1]);break;case 6:case 7:this.$=i[l];break;case 8:this.$="nl";break;case 12:this.$=i[l];break;case 13:const Q=i[l-1];Q.description=g.trimColon(i[l]),this.$=Q;break;case 14:this.$={stmt:"relation",state1:i[l-2],state2:i[l]};break;case 15:const Tt=g.trimColon(i[l]);this.$={stmt:"relation",state1:i[l-3],state2:i[l-1],description:Tt};break;case 19:this.$={stmt:"state",id:i[l-3],type:"default",description:"",doc:i[l-1]};break;case 20:var Y=i[l],X=i[l-2].trim();if(i[l].match(":")){var ut=i[l].split(":");Y=ut[0],X=[X,ut[1]]}this.$={stmt:"state",id:Y,type:"default",description:X};break;case 21:this.$={stmt:"state",id:i[l-3],type:"default",description:i[l-5],doc:i[l-1]};break;case 22:this.$={stmt:"state",id:i[l],type:"fork"};break;case 23:this.$={stmt:"state",id:i[l],type:"join"};break;case 24:this.$={stmt:"state",id:i[l],type:"choice"};break;case 25:this.$={stmt:"state",id:g.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:i[l-1].trim(),note:{position:i[l-2].trim(),text:i[l].trim()}};break;case 29:this.$=i[l].trim(),g.setAccTitle(this.$);break;case 30:case 31:this.$=i[l].trim(),g.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:i[l-3],url:i[l-2],tooltip:i[l-1]};break;case 33:this.$={stmt:"click",id:i[l-3],url:i[l-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:i[l-1].trim(),classes:i[l].trim()};break;case 36:this.$={stmt:"style",id:i[l-1].trim(),styleClass:i[l].trim()};break;case 37:this.$={stmt:"applyClass",id:i[l-1].trim(),styleClass:i[l].trim()};break;case 38:g.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:g.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:g.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:g.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:i[l].trim(),type:"default",description:""};break;case 46:this.$={stmt:"state",id:i[l-2].trim(),classes:[i[l].trim()],type:"default",description:""};break;case 47:this.$={stmt:"state",id:i[l-2].trim(),classes:[i[l].trim()],type:"default",description:""};break}},"anonymous"),table:[{3:1,4:e,5:s,6:n},{1:[3]},{3:5,4:e,5:s,6:n},{3:6,4:e,5:s,6:n},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],r,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:c,5:u,8:8,9:10,10:12,11:13,12:14,13:15,16:S,17:d,19:T,22:E,24:m,25:L,26:D,27:f,28:I,29:R,32:25,33:C,35:F,37:A,38:P,41:w,45:z,48:rt,51:at,52:nt,53:ot,54:lt,57:K},t(y,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:S,17:d,19:T,22:E,24:m,25:L,26:D,27:f,28:I,29:R,32:25,33:C,35:F,37:A,38:P,41:w,45:z,48:rt,51:at,52:nt,53:ot,54:lt,57:K},t(y,[2,7]),t(y,[2,8]),t(y,[2,9]),t(y,[2,10]),t(y,[2,11]),t(y,[2,12],{14:[1,40],15:[1,41]}),t(y,[2,16]),{18:[1,42]},t(y,[2,18],{20:[1,43]}),{23:[1,44]},t(y,[2,22]),t(y,[2,23]),t(y,[2,24]),t(y,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},t(y,[2,28]),{34:[1,49]},{36:[1,50]},t(y,[2,31]),{13:51,24:m,57:K},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},t(ct,[2,44],{58:[1,56]}),t(ct,[2,45],{58:[1,57]}),t(y,[2,38]),t(y,[2,39]),t(y,[2,40]),t(y,[2,41]),t(y,[2,6]),t(y,[2,13]),{13:58,24:m,57:K},t(y,[2,17]),t(Lt,r,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},t(y,[2,29]),t(y,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},t(y,[2,14],{14:[1,71]}),{4:c,5:u,8:8,9:10,10:12,11:13,12:14,13:15,16:S,17:d,19:T,21:[1,72],22:E,24:m,25:L,26:D,27:f,28:I,29:R,32:25,33:C,35:F,37:A,38:P,41:w,45:z,48:rt,51:at,52:nt,53:ot,54:lt,57:K},t(y,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},t(y,[2,34]),t(y,[2,35]),t(y,[2,36]),t(y,[2,37]),t(ct,[2,46]),t(ct,[2,47]),t(y,[2,15]),t(y,[2,19]),t(Lt,r,{7:78}),t(y,[2,26]),t(y,[2,27]),{5:[1,79]},{5:[1,80]},{4:c,5:u,8:8,9:10,10:12,11:13,12:14,13:15,16:S,17:d,19:T,21:[1,81],22:E,24:m,25:L,26:D,27:f,28:I,29:R,32:25,33:C,35:F,37:A,38:P,41:w,45:z,48:rt,51:at,52:nt,53:ot,54:lt,57:K},t(y,[2,32]),t(y,[2,33]),t(y,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:p(function(o,h){if(h.recoverable)this.trace(o);else{var a=new Error(o);throw a.hash=h,a}},"parseError"),parse:p(function(o){var h=this,a=[0],g=[],_=[null],i=[],B=this.table,l="",Y=0,X=0,ut=2,Q=1,Tt=i.slice.call(arguments,1),k=Object.create(this.lexer),U={yy:{}};for(var Et in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Et)&&(U.yy[Et]=this.yy[Et]);k.setInput(o,U.yy),U.yy.lexer=k,U.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var _t=k.yylloc;i.push(_t);var Qt=k.options&&k.options.ranges;typeof U.yy.parseError=="function"?this.parseError=U.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function te(O){a.length=a.length-2*O,_.length=_.length-O,i.length=i.length-O}p(te,"popStack");function It(){var O;return O=g.pop()||k.lex()||Q,typeof O!="number"&&(O instanceof Array&&(g=O,O=g.pop()),O=h.symbols_[O]||O),O}p(It,"lex");for(var x,W,N,mt,J={},dt,G,wt,ft;;){if(W=a[a.length-1],this.defaultActions[W]?N=this.defaultActions[W]:((x===null||typeof x>"u")&&(x=It()),N=B[W]&&B[W][x]),typeof N>"u"||!N.length||!N[0]){var bt="";ft=[];for(dt in B[W])this.terminals_[dt]&&dt>ut&&ft.push("'"+this.terminals_[dt]+"'");k.showPosition?bt="Parse error on line "+(Y+1)+`:
2
2
  `+k.showPosition()+`
3
3
  Expecting `+ft.join(", ")+", got '"+(this.terminals_[x]||x)+"'":bt="Parse error on line "+(Y+1)+": Unexpected "+(x==Q?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(bt,{text:k.match,token:this.terminals_[x]||x,line:k.yylineno,loc:_t,expected:ft})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+W+", token: "+x);switch(N[0]){case 1:a.push(x),_.push(k.yytext),i.push(k.yylloc),a.push(N[1]),x=null,X=k.yyleng,l=k.yytext,Y=k.yylineno,_t=k.yylloc;break;case 2:if(G=this.productions_[N[1]][1],J.$=_[_.length-G],J._$={first_line:i[i.length-(G||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(G||1)].first_column,last_column:i[i.length-1].last_column},Qt&&(J._$.range=[i[i.length-(G||1)].range[0],i[i.length-1].range[1]]),mt=this.performAction.apply(J,[l,X,Y,U.yy,N[1],_,i].concat(Tt)),typeof mt<"u")return mt;G&&(a=a.slice(0,-1*G*2),_=_.slice(0,-1*G),i=i.slice(0,-1*G)),a.push(this.productions_[N[1]][0]),_.push(J.$),i.push(J._$),wt=B[a[a.length-2]][a[a.length-1]],a.push(wt);break;case 3:return!0}}return!0},"parse")},Zt=(function(){var V={EOF:1,parseError:p(function(h,a){if(this.yy.parser)this.yy.parser.parseError(h,a);else throw new Error(h)},"parseError"),setInput:p(function(o,h){return this.yy=h||this.yy||{},this._input=o,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:p(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var h=o.match(/(?:\r\n?|\n).*/g);return h?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},"input"),unput:p(function(o){var h=o.length,a=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-h),this.offset-=h;var g=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var _=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===g.length?this.yylloc.first_column:0)+g[g.length-a.length].length-a[0].length:this.yylloc.first_column-h},this.options.ranges&&(this.yylloc.range=[_[0],_[0]+this.yyleng-h]),this.yyleng=this.yytext.length,this},"unput"),more:p(function(){return this._more=!0,this},"more"),reject:p(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:p(function(o){this.unput(this.match.slice(o))},"less"),pastInput:p(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:p(function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:p(function(){var o=this.pastInput(),h=new Array(o.length+1).join("-");return o+this.upcomingInput()+`
@@ -1,4 +1,4 @@
1
- import{p as he}from"./nUiGI9_j.js";import{p as me}from"./Ddh0rE8O.js";import{a as m,U as ue,M as Y,j as O,aE as fe,r as ye,ad as X,aQ as F,aG as ge,L as Se,aI as xe,O as be,K as ve,aF as Ce,y as we,a5 as Te,k as $e}from"./CW-LHLDp.js";import{s as Le}from"./DqRQRrwd.js";import{c3 as H,g as ae}from"./8RNmk_9I.js";import{f as P}from"./CrowFXzY.js";import{o as G}from"./CmKTTxBW.js";import{h as Fe,t as Ne}from"./CvYzv8kf.js";var T,le=(T=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=ge,this.getAccTitle=Se,this.setDiagramTitle=xe,this.getDiagramTitle=be,this.getAccDescription=ve,this.setAccDescription=Ce}getNodes(){return this.nodes}getConfig(){const l=we,i=Y();return O({...l.treemap,...i.treemap??{}})}addNode(l,i){this.nodes.push(l),this.levels.set(l,i),i===0&&(this.outerNodes.push(l),this.root??=l)}getRoot(){return{name:"",children:this.outerNodes}}addClass(l,i){const r=this.classes.get(l)??{id:l,styles:[],textStyles:[]},n=i.replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");n&&n.forEach(s=>{Te(s)&&(r?.textStyles?r.textStyles.push(s):r.textStyles=[s]),r?.styles?r.styles.push(s):r.styles=[s]}),this.classes.set(l,r)}getClasses(){return this.classes}getStylesForClass(l){return this.classes.get(l)?.styles??[]}clear(){$e(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}},ae(T,"TreeMapDB"),m(T,"TreeMapDB"),T);function j(p){if(!p.length)return[];const l=[],i=[];return p.forEach(r=>{const n={name:r.name,children:r.type==="Leaf"?void 0:[]};for(n.classSelector=r?.classSelector,r?.cssCompiledStyles&&(n.cssCompiledStyles=r.cssCompiledStyles),r.type==="Leaf"&&r.value!==void 0&&(n.value=r.value);i.length>0&&i[i.length-1].level>=r.level;)i.pop();if(i.length===0)l.push(n);else{const s=i[i.length-1].node;s.children?s.children.push(n):s.children=[n]}r.type!=="Leaf"&&i.push({node:n,level:r.level})}),l}ae(j,"buildHierarchy");m(j,"buildHierarchy");var ze=m((p,l)=>{he(p,l);const i=[];for(const s of p.TreemapRows??[])s.$type==="ClassDefStatement"&&l.addClass(s.className??"",s.styleText??"");for(const s of p.TreemapRows??[]){const d=s.item;if(!d)continue;const h=s.indent?parseInt(s.indent):0,k=Ae(d),a=d.classSelector?l.getStylesForClass(d.classSelector):[],z=a.length>0?a:void 0,x={level:h,name:k,type:d.$type,value:d.value,classSelector:d.classSelector,cssCompiledStyles:z};i.push(x)}const r=j(i),n=m((s,d)=>{for(const h of s)l.addNode(h,d),h.children&&h.children.length>0&&n(h.children,d+1)},"addNodesRecursively");n(r,0)},"populate"),Ae=m(p=>p.name?String(p.name):"","getItemName"),se={parser:{yy:void 0},parse:m(async p=>{try{const i=await me("treemap",p);X.debug("Treemap AST:",i);const r=se.parser?.yy;if(!(r instanceof le))throw new Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");ze(i,r)}catch(l){throw X.error("Error parsing treemap:",l),l}},"parse")},De=10,N=10,V=25,Me=m((p,l,i,r)=>{const n=r.db,s=n.getConfig(),d=s.padding??De,h=n.getDiagramTitle(),k=n.getRoot(),{themeVariables:a}=Y();if(!k)return;const z=h?30:0,x=fe(l),U=s.nodeWidth?s.nodeWidth*N:960,K=s.nodeHeight?s.nodeHeight*N:500,R=U,Q=K+z;x.attr("viewBox",`0 0 ${R} ${Q}`),ye(x,Q,R,s.useMaxWidth);let b;try{const e=s.valueFormat||",";if(e==="$0,0")b=m(t=>"$"+P(",")(t),"valueFormat");else if(e.startsWith("$")&&e.includes(",")){const t=/\.\d+/.exec(e),o=t?t[0]:"";b=m(u=>"$"+P(","+o)(u),"valueFormat")}else if(e.startsWith("$")){const t=e.substring(1);b=m(o=>"$"+P(t||"")(o),"valueFormat")}else b=P(e)}catch(e){X.error("Error creating format function:",e),b=P(",")}const A=G().range(["transparent",a.cScale0,a.cScale1,a.cScale2,a.cScale3,a.cScale4,a.cScale5,a.cScale6,a.cScale7,a.cScale8,a.cScale9,a.cScale10,a.cScale11]),re=G().range(["transparent",a.cScalePeer0,a.cScalePeer1,a.cScalePeer2,a.cScalePeer3,a.cScalePeer4,a.cScalePeer5,a.cScalePeer6,a.cScalePeer7,a.cScalePeer8,a.cScalePeer9,a.cScalePeer10,a.cScalePeer11]),E=G().range([a.cScaleLabel0,a.cScaleLabel1,a.cScaleLabel2,a.cScaleLabel3,a.cScaleLabel4,a.cScaleLabel5,a.cScaleLabel6,a.cScaleLabel7,a.cScaleLabel8,a.cScaleLabel9,a.cScaleLabel10,a.cScaleLabel11]);h&&x.append("text").attr("x",R/2).attr("y",z/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(h);const q=x.append("g").attr("transform",`translate(0, ${z})`).attr("class","treemapContainer"),ne=Fe(k).sum(e=>e.value??0).sort((e,t)=>(t.value??0)-(e.value??0)),J=Ne().size([U,K]).paddingTop(e=>e.children&&e.children.length>0?V+N:0).paddingInner(d).paddingLeft(e=>e.children&&e.children.length>0?N:0).paddingRight(e=>e.children&&e.children.length>0?N:0).paddingBottom(e=>e.children&&e.children.length>0?N:0).round(!0)(ne),oe=J.descendants().filter(e=>e.children&&e.children.length>0),D=q.selectAll(".treemapSection").data(oe).enter().append("g").attr("class","treemapSection").attr("transform",e=>`translate(${e.x0},${e.y0})`);D.append("rect").attr("width",e=>e.x1-e.x0).attr("height",V).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",e=>e.depth===0?"display: none;":""),D.append("clipPath").attr("id",(e,t)=>`clip-section-${l}-${t}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-12)).attr("height",V),D.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class",(e,t)=>`treemapSection section${t}`).attr("fill",e=>A(e.data.name)).attr("fill-opacity",.6).attr("stroke",e=>re(e.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",e=>{if(e.depth===0)return"display: none;";const t=F({cssCompiledStyles:e.data.cssCompiledStyles});return t.nodeStyles+";"+t.borderStyles.join(";")}),D.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",V/2).attr("dominant-baseline","middle").text(e=>e.depth===0?"":e.data.name).attr("font-weight","bold").attr("clip-path",(e,t)=>`url(#clip-section-${l}-${t})`).attr("style",e=>{if(e.depth===0)return"display: none;";const t="dominant-baseline: middle; font-size: 12px; fill:"+E(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",o=F({cssCompiledStyles:e.data.cssCompiledStyles});return t+o.labelStyles.replace("color:","fill:")}).each(function(e){if(e.depth===0)return;const t=H(this),o=e.data.name;t.text(o);const u=e.x1-e.x0,y=6;let f;s.showValues!==!1&&e.value?f=u-10-30-10-y:f=u-y-6;const c=Math.max(15,f),v=t.node();if(v.getComputedTextLength()>c){let w=o;for(;w.length>0;){if(w=o.substring(0,w.length-1),w.length===0){t.text("..."),v.getComputedTextLength()>c&&t.text("");break}if(t.text(w+"..."),v.getComputedTextLength()<=c)break}}}),s.showValues!==!1&&D.append("text").attr("class","treemapSectionValue").attr("x",e=>e.x1-e.x0-10).attr("y",V/2).attr("text-anchor","end").attr("dominant-baseline","middle").text(e=>e.value?b(e.value):"").attr("font-style","italic").attr("style",e=>{if(e.depth===0)return"display: none;";const t="text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+E(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",o=F({cssCompiledStyles:e.data.cssCompiledStyles});return t+o.labelStyles.replace("color:","fill:")});const Z=J.leaves(),g=Z.length>20,ie=g?16:38,W=g?14:28,$=g?4:8,M=g?4:6,B=g?2:4,ee=g?8:10,I=g?1:2,_=q.selectAll(".treemapLeafGroup").data(Z).enter().append("g").attr("class",(e,t)=>`treemapNode treemapLeafGroup leaf${t}${e.data.classSelector?` ${e.data.classSelector}`:""}x`).attr("transform",e=>`translate(${e.x0},${e.y0})`);_.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class","treemapLeaf").attr("fill",e=>e.parent?A(e.parent.data.name):A(e.data.name)).attr("style",e=>F({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",e=>e.parent?A(e.parent.data.name):A(e.data.name)).attr("stroke-width",3),_.append("clipPath").attr("id",(e,t)=>`clip-${l}-${t}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-4)).attr("height",e=>Math.max(0,e.y1-e.y0-4)),_.append("text").attr("class","treemapLabel").attr("x",e=>(e.x1-e.x0)/2).attr("y",e=>(e.y1-e.y0)/2).attr("style",e=>{const t=`text-anchor: middle; dominant-baseline: middle; font-size: ${ie}px;fill:`+E(e.data.name)+";",o=F({cssCompiledStyles:e.data.cssCompiledStyles});return t+o.labelStyles.replace("color:","fill:")}).attr("clip-path",(e,t)=>`url(#clip-${l}-${t})`).text(e=>e.data.name).each(function(e){const t=H(this),o=e.x1-e.x0,u=e.y1-e.y0,y=t.node(),f=o-2*B,L=u-2*B;if(f<ee||L<ee){t.style("display","none");return}let c=parseInt(t.style("font-size"),10);const v=.6;for(;y.getComputedTextLength()>f&&c>$;)c--,t.style("font-size",`${c}px`);let S=Math.max(M,Math.min(W,Math.round(c*v))),C=c+I+S;for(;C>L&&c>$&&(c--,S=Math.max(M,Math.min(W,Math.round(c*v))),!(S<M&&c===$));)t.style("font-size",`${c}px`),C=c+I+S;t.style("font-size",`${c}px`),g?(c<$||L<$)&&t.style("display","none"):(y.getComputedTextLength()>f||c<$||L<c)&&t.style("display","none")}),s.showValues!==!1&&_.append("text").attr("class","treemapValue").attr("x",t=>(t.x1-t.x0)/2).attr("y",function(t){return(t.y1-t.y0)/2}).attr("style",t=>{const o=`text-anchor: middle; dominant-baseline: hanging; font-size: ${W}px;fill:`+E(t.data.name)+";",u=F({cssCompiledStyles:t.data.cssCompiledStyles});return o+u.labelStyles.replace("color:","fill:")}).attr("clip-path",(t,o)=>`url(#clip-${l}-${o})`).text(t=>t.value?b(t.value):"").each(function(t){const o=H(this),u=this.parentNode;if(!u){o.style("display","none");return}const y=H(u).select(".treemapLabel");if(y.empty()||y.style("display")==="none"){o.style("display","none");return}const f=parseFloat(y.style("font-size")),c=Math.max(M,Math.min(W,Math.round(f*.6)));o.style("font-size",`${c}px`);const S=(t.y1-t.y0)/2+f/2+I;o.attr("y",S);const C=t.x1-t.x0,te=t.y1-t.y0-4,de=C-2*B;o.node().getComputedTextLength()>de||S+c>te||c<M?o.style("display","none"):o.style("display",null)});const ce=s.diagramPadding??8;Le(x,ce,"flowchart",s?.useMaxWidth||!1)},"draw"),Pe=m(function(p,l){return l.db.getClasses()},"getClasses"),Ve={draw:Me,getClasses:Pe},ke={sectionStrokeColor:"black",sectionStrokeWidth:"1",sectionFillColor:"#efefef",leafStrokeColor:"black",leafStrokeWidth:"1",leafFillColor:"#efefef",labelFontSize:"12px",valueFontSize:"10px",titleFontSize:"14px"},Ee=m(({treemap:p}={})=>{const l=ue(),i=Y(),r=O(l,i.themeVariables),n=O(ke,p),s=n.titleColor??r.titleColor,d=n.labelColor??r.textColor,h=n.valueColor??r.textColor;return`
1
+ import{p as he}from"./Bq3GTaKG.js";import{p as me}from"./D0M9u_n-.js";import{a as m,U as ue,M as Y,j as O,aE as fe,r as ye,ad as X,aQ as F,aG as ge,L as Se,aI as xe,O as be,K as ve,aF as Ce,y as we,a5 as Te,k as $e}from"./DPBL52wT.js";import{s as Le}from"./BbNzaCQR.js";import{c3 as H,g as ae}from"./CQcnUt15.js";import{f as P}from"./CrowFXzY.js";import{o as G}from"./CmKTTxBW.js";import{h as Fe,t as Ne}from"./CvYzv8kf.js";var T,le=(T=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=ge,this.getAccTitle=Se,this.setDiagramTitle=xe,this.getDiagramTitle=be,this.getAccDescription=ve,this.setAccDescription=Ce}getNodes(){return this.nodes}getConfig(){const l=we,i=Y();return O({...l.treemap,...i.treemap??{}})}addNode(l,i){this.nodes.push(l),this.levels.set(l,i),i===0&&(this.outerNodes.push(l),this.root??=l)}getRoot(){return{name:"",children:this.outerNodes}}addClass(l,i){const r=this.classes.get(l)??{id:l,styles:[],textStyles:[]},n=i.replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");n&&n.forEach(s=>{Te(s)&&(r?.textStyles?r.textStyles.push(s):r.textStyles=[s]),r?.styles?r.styles.push(s):r.styles=[s]}),this.classes.set(l,r)}getClasses(){return this.classes}getStylesForClass(l){return this.classes.get(l)?.styles??[]}clear(){$e(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}},ae(T,"TreeMapDB"),m(T,"TreeMapDB"),T);function j(p){if(!p.length)return[];const l=[],i=[];return p.forEach(r=>{const n={name:r.name,children:r.type==="Leaf"?void 0:[]};for(n.classSelector=r?.classSelector,r?.cssCompiledStyles&&(n.cssCompiledStyles=r.cssCompiledStyles),r.type==="Leaf"&&r.value!==void 0&&(n.value=r.value);i.length>0&&i[i.length-1].level>=r.level;)i.pop();if(i.length===0)l.push(n);else{const s=i[i.length-1].node;s.children?s.children.push(n):s.children=[n]}r.type!=="Leaf"&&i.push({node:n,level:r.level})}),l}ae(j,"buildHierarchy");m(j,"buildHierarchy");var ze=m((p,l)=>{he(p,l);const i=[];for(const s of p.TreemapRows??[])s.$type==="ClassDefStatement"&&l.addClass(s.className??"",s.styleText??"");for(const s of p.TreemapRows??[]){const d=s.item;if(!d)continue;const h=s.indent?parseInt(s.indent):0,k=Ae(d),a=d.classSelector?l.getStylesForClass(d.classSelector):[],z=a.length>0?a:void 0,x={level:h,name:k,type:d.$type,value:d.value,classSelector:d.classSelector,cssCompiledStyles:z};i.push(x)}const r=j(i),n=m((s,d)=>{for(const h of s)l.addNode(h,d),h.children&&h.children.length>0&&n(h.children,d+1)},"addNodesRecursively");n(r,0)},"populate"),Ae=m(p=>p.name?String(p.name):"","getItemName"),se={parser:{yy:void 0},parse:m(async p=>{try{const i=await me("treemap",p);X.debug("Treemap AST:",i);const r=se.parser?.yy;if(!(r instanceof le))throw new Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");ze(i,r)}catch(l){throw X.error("Error parsing treemap:",l),l}},"parse")},De=10,N=10,V=25,Me=m((p,l,i,r)=>{const n=r.db,s=n.getConfig(),d=s.padding??De,h=n.getDiagramTitle(),k=n.getRoot(),{themeVariables:a}=Y();if(!k)return;const z=h?30:0,x=fe(l),U=s.nodeWidth?s.nodeWidth*N:960,K=s.nodeHeight?s.nodeHeight*N:500,R=U,Q=K+z;x.attr("viewBox",`0 0 ${R} ${Q}`),ye(x,Q,R,s.useMaxWidth);let b;try{const e=s.valueFormat||",";if(e==="$0,0")b=m(t=>"$"+P(",")(t),"valueFormat");else if(e.startsWith("$")&&e.includes(",")){const t=/\.\d+/.exec(e),o=t?t[0]:"";b=m(u=>"$"+P(","+o)(u),"valueFormat")}else if(e.startsWith("$")){const t=e.substring(1);b=m(o=>"$"+P(t||"")(o),"valueFormat")}else b=P(e)}catch(e){X.error("Error creating format function:",e),b=P(",")}const A=G().range(["transparent",a.cScale0,a.cScale1,a.cScale2,a.cScale3,a.cScale4,a.cScale5,a.cScale6,a.cScale7,a.cScale8,a.cScale9,a.cScale10,a.cScale11]),re=G().range(["transparent",a.cScalePeer0,a.cScalePeer1,a.cScalePeer2,a.cScalePeer3,a.cScalePeer4,a.cScalePeer5,a.cScalePeer6,a.cScalePeer7,a.cScalePeer8,a.cScalePeer9,a.cScalePeer10,a.cScalePeer11]),E=G().range([a.cScaleLabel0,a.cScaleLabel1,a.cScaleLabel2,a.cScaleLabel3,a.cScaleLabel4,a.cScaleLabel5,a.cScaleLabel6,a.cScaleLabel7,a.cScaleLabel8,a.cScaleLabel9,a.cScaleLabel10,a.cScaleLabel11]);h&&x.append("text").attr("x",R/2).attr("y",z/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(h);const q=x.append("g").attr("transform",`translate(0, ${z})`).attr("class","treemapContainer"),ne=Fe(k).sum(e=>e.value??0).sort((e,t)=>(t.value??0)-(e.value??0)),J=Ne().size([U,K]).paddingTop(e=>e.children&&e.children.length>0?V+N:0).paddingInner(d).paddingLeft(e=>e.children&&e.children.length>0?N:0).paddingRight(e=>e.children&&e.children.length>0?N:0).paddingBottom(e=>e.children&&e.children.length>0?N:0).round(!0)(ne),oe=J.descendants().filter(e=>e.children&&e.children.length>0),D=q.selectAll(".treemapSection").data(oe).enter().append("g").attr("class","treemapSection").attr("transform",e=>`translate(${e.x0},${e.y0})`);D.append("rect").attr("width",e=>e.x1-e.x0).attr("height",V).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",.6).attr("stroke-width",.6).attr("style",e=>e.depth===0?"display: none;":""),D.append("clipPath").attr("id",(e,t)=>`clip-section-${l}-${t}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-12)).attr("height",V),D.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class",(e,t)=>`treemapSection section${t}`).attr("fill",e=>A(e.data.name)).attr("fill-opacity",.6).attr("stroke",e=>re(e.data.name)).attr("stroke-width",2).attr("stroke-opacity",.4).attr("style",e=>{if(e.depth===0)return"display: none;";const t=F({cssCompiledStyles:e.data.cssCompiledStyles});return t.nodeStyles+";"+t.borderStyles.join(";")}),D.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",V/2).attr("dominant-baseline","middle").text(e=>e.depth===0?"":e.data.name).attr("font-weight","bold").attr("clip-path",(e,t)=>`url(#clip-section-${l}-${t})`).attr("style",e=>{if(e.depth===0)return"display: none;";const t="dominant-baseline: middle; font-size: 12px; fill:"+E(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",o=F({cssCompiledStyles:e.data.cssCompiledStyles});return t+o.labelStyles.replace("color:","fill:")}).each(function(e){if(e.depth===0)return;const t=H(this),o=e.data.name;t.text(o);const u=e.x1-e.x0,y=6;let f;s.showValues!==!1&&e.value?f=u-10-30-10-y:f=u-y-6;const c=Math.max(15,f),v=t.node();if(v.getComputedTextLength()>c){let w=o;for(;w.length>0;){if(w=o.substring(0,w.length-1),w.length===0){t.text("..."),v.getComputedTextLength()>c&&t.text("");break}if(t.text(w+"..."),v.getComputedTextLength()<=c)break}}}),s.showValues!==!1&&D.append("text").attr("class","treemapSectionValue").attr("x",e=>e.x1-e.x0-10).attr("y",V/2).attr("text-anchor","end").attr("dominant-baseline","middle").text(e=>e.value?b(e.value):"").attr("font-style","italic").attr("style",e=>{if(e.depth===0)return"display: none;";const t="text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+E(e.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",o=F({cssCompiledStyles:e.data.cssCompiledStyles});return t+o.labelStyles.replace("color:","fill:")});const Z=J.leaves(),g=Z.length>20,ie=g?16:38,W=g?14:28,$=g?4:8,M=g?4:6,B=g?2:4,ee=g?8:10,I=g?1:2,_=q.selectAll(".treemapLeafGroup").data(Z).enter().append("g").attr("class",(e,t)=>`treemapNode treemapLeafGroup leaf${t}${e.data.classSelector?` ${e.data.classSelector}`:""}x`).attr("transform",e=>`translate(${e.x0},${e.y0})`);_.append("rect").attr("width",e=>e.x1-e.x0).attr("height",e=>e.y1-e.y0).attr("class","treemapLeaf").attr("fill",e=>e.parent?A(e.parent.data.name):A(e.data.name)).attr("style",e=>F({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",.3).attr("stroke",e=>e.parent?A(e.parent.data.name):A(e.data.name)).attr("stroke-width",3),_.append("clipPath").attr("id",(e,t)=>`clip-${l}-${t}`).append("rect").attr("width",e=>Math.max(0,e.x1-e.x0-4)).attr("height",e=>Math.max(0,e.y1-e.y0-4)),_.append("text").attr("class","treemapLabel").attr("x",e=>(e.x1-e.x0)/2).attr("y",e=>(e.y1-e.y0)/2).attr("style",e=>{const t=`text-anchor: middle; dominant-baseline: middle; font-size: ${ie}px;fill:`+E(e.data.name)+";",o=F({cssCompiledStyles:e.data.cssCompiledStyles});return t+o.labelStyles.replace("color:","fill:")}).attr("clip-path",(e,t)=>`url(#clip-${l}-${t})`).text(e=>e.data.name).each(function(e){const t=H(this),o=e.x1-e.x0,u=e.y1-e.y0,y=t.node(),f=o-2*B,L=u-2*B;if(f<ee||L<ee){t.style("display","none");return}let c=parseInt(t.style("font-size"),10);const v=.6;for(;y.getComputedTextLength()>f&&c>$;)c--,t.style("font-size",`${c}px`);let S=Math.max(M,Math.min(W,Math.round(c*v))),C=c+I+S;for(;C>L&&c>$&&(c--,S=Math.max(M,Math.min(W,Math.round(c*v))),!(S<M&&c===$));)t.style("font-size",`${c}px`),C=c+I+S;t.style("font-size",`${c}px`),g?(c<$||L<$)&&t.style("display","none"):(y.getComputedTextLength()>f||c<$||L<c)&&t.style("display","none")}),s.showValues!==!1&&_.append("text").attr("class","treemapValue").attr("x",t=>(t.x1-t.x0)/2).attr("y",function(t){return(t.y1-t.y0)/2}).attr("style",t=>{const o=`text-anchor: middle; dominant-baseline: hanging; font-size: ${W}px;fill:`+E(t.data.name)+";",u=F({cssCompiledStyles:t.data.cssCompiledStyles});return o+u.labelStyles.replace("color:","fill:")}).attr("clip-path",(t,o)=>`url(#clip-${l}-${o})`).text(t=>t.value?b(t.value):"").each(function(t){const o=H(this),u=this.parentNode;if(!u){o.style("display","none");return}const y=H(u).select(".treemapLabel");if(y.empty()||y.style("display")==="none"){o.style("display","none");return}const f=parseFloat(y.style("font-size")),c=Math.max(M,Math.min(W,Math.round(f*.6)));o.style("font-size",`${c}px`);const S=(t.y1-t.y0)/2+f/2+I;o.attr("y",S);const C=t.x1-t.x0,te=t.y1-t.y0-4,de=C-2*B;o.node().getComputedTextLength()>de||S+c>te||c<M?o.style("display","none"):o.style("display",null)});const ce=s.diagramPadding??8;Le(x,ce,"flowchart",s?.useMaxWidth||!1)},"draw"),Pe=m(function(p,l){return l.db.getClasses()},"getClasses"),Ve={draw:Me,getClasses:Pe},ke={sectionStrokeColor:"black",sectionStrokeWidth:"1",sectionFillColor:"#efefef",leafStrokeColor:"black",leafStrokeWidth:"1",leafFillColor:"#efefef",labelFontSize:"12px",valueFontSize:"10px",titleFontSize:"14px"},Ee=m(({treemap:p}={})=>{const l=ue(),i=Y(),r=O(l,i.themeVariables),n=O(ke,p),s=n.titleColor??r.titleColor,d=n.labelColor??r.textColor,h=n.valueColor??r.textColor;return`
2
2
  .treemapNode.section {
3
3
  stroke: ${n.sectionStrokeColor};
4
4
  stroke-width: ${n.sectionStrokeWidth};