@layers-app/editor 0.7.14 → 0.7.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (232) hide show
  1. package/dist/index.cjs +2 -2
  2. package/dist/index.d.ts +77 -1
  3. package/dist/index.js +15 -9
  4. package/dist/{layers.Cy9wbnQ_.js → layers.-fM6L_z3.js} +1 -1
  5. package/dist/{layers.DfG3tRlT.js → layers.0KANPDnB.js} +1 -1
  6. package/dist/{layers.BAdqSd14.js → layers.1Nv-nANB.js} +9 -6
  7. package/dist/layers.1bdyQGVP.js +8 -0
  8. package/dist/{layers.-X9qNtI0.js → layers.49H_5LNr.js} +1 -1
  9. package/dist/{layers.0QnhO3cX.js → layers.4HZb3jXk.js} +1 -1
  10. package/dist/{layers.B7C8glEs.js → layers.4RmaHEsu.js} +1 -1
  11. package/dist/{layers.DUOIs8ec.js → layers.5WzirB7G.js} +1 -1
  12. package/dist/{layers.mYMdjdeP.js → layers.5bSjIKfg.js} +1 -1
  13. package/dist/{layers.XOTQZA47.js → layers.7oLFJZ8l.js} +1 -1
  14. package/dist/{layers.DGIIreij.js → layers.7xkZRnuM.js} +1 -1
  15. package/dist/{layers.ij9MGpBd.js → layers.ABhWEnmQ.js} +1 -1
  16. package/dist/{layers.yY2NWKxb.js → layers.B-8gEV_E.js} +3 -3
  17. package/dist/{layers.veq4mAt0.js → layers.B-9QQMGw.js} +1 -1
  18. package/dist/{layers.C-bmfvyk.js → layers.B0sBopW9.js} +1 -1
  19. package/dist/{layers.WXLYhxqf.js → layers.B1ySJNCM.js} +1 -1
  20. package/dist/{layers.DGD6mx9J.js → layers.B2BhJZ0D.js} +1 -1
  21. package/dist/{layers.rn0Bkxub.js → layers.B2iVWMcm.js} +1 -1
  22. package/dist/{layers.xdl544Mg.js → layers.B6Va7v9s.js} +1 -1
  23. package/dist/layers.B82wcYq0.js +271 -0
  24. package/dist/{layers.22JoqgAd.js → layers.BAU0IeY7.js} +1 -1
  25. package/dist/layers.BCD7sjs8.js +1 -0
  26. package/dist/{layers.DrZpSfir.js → layers.BEUJQJGq.js} +1 -1
  27. package/dist/{layers.CjG55SV1.js → layers.BGDCJs-p.js} +1 -1
  28. package/dist/{layers.BSeksxsF.js → layers.BHz2k1im.js} +1 -1
  29. package/dist/{layers.D9jI383T.js → layers.BIM8NeWS.js} +1 -1
  30. package/dist/{layers.BWMvFWfx.js → layers.BIbdMSbX.js} +92 -89
  31. package/dist/{layers.DU1Z6xwA.js → layers.BJhjIY5r.js} +1 -1
  32. package/dist/{layers.DzvUE9IU.js → layers.BJmaj5SY.js} +1 -1
  33. package/dist/{layers.C6IUuxUg.js → layers.BKy18lBk.js} +1 -1
  34. package/dist/{layers.BlqAmRab.js → layers.BL3wEq7M.js} +1 -1
  35. package/dist/{layers.BL8Slaqh.js → layers.BLKD1Tiy.js} +1 -1
  36. package/dist/{layers.DCkth_87.js → layers.BNR6f37h.js} +1 -1
  37. package/dist/{layers.CSsken3p.js → layers.BNkwxNgt.js} +1 -1
  38. package/dist/layers.BOMC5c1j.js +2 -0
  39. package/dist/{layers.DDHH8Ki7.js → layers.BQL01Vq6.js} +1 -1
  40. package/dist/{layers.ClSl5FkE.js → layers.BQm21WlP.js} +1 -1
  41. package/dist/{layers.DnwVEVb6.js → layers.BRGRJfuK.js} +1 -1
  42. package/dist/{layers.DODwztxp.js → layers.BXDV2XaW.js} +1 -1
  43. package/dist/{layers.CgSj0b8m.js → layers.B_Vwa8Hx.js} +1 -1
  44. package/dist/{layers.DvNkBHkW.js → layers.B_jUVHTe.js} +1 -1
  45. package/dist/{layers.D-DrlFz3.js → layers.BakV9gnD.js} +1 -1
  46. package/dist/{layers.BkPRSah-.js → layers.BbbyE_Pc.js} +1 -1
  47. package/dist/{layers.C9Xu0pzY.js → layers.Bd6ptC9U.js} +1 -1
  48. package/dist/{layers.CSRIY7Db.js → layers.BeCuix4V.js} +1 -1
  49. package/dist/{layers.DPk5KZTZ.js → layers.BeFEsW5q.js} +1 -1
  50. package/dist/{layers.CX-X-Gjl.js → layers.BfVGjstp.js} +1 -1
  51. package/dist/{layers.DEnvYWSJ.js → layers.BgEbqAdb.js} +3 -3
  52. package/dist/{layers.CUlS_yZb.js → layers.Bk40urId.js} +1 -1
  53. package/dist/{layers.C1R4DTpt.js → layers.Blc4R7F2.js} +1 -1
  54. package/dist/{layers.CqJ4auoy.js → layers.Bny7BWT9.js} +1 -1
  55. package/dist/{layers.DtKOvFUG.js → layers.Bpnbfq-r.js} +1 -1
  56. package/dist/{layers.DESKvQDb.js → layers.BrbcqGdA.js} +11 -8
  57. package/dist/{layers.DXOEsMhP.js → layers.BvGgfImM.js} +7 -7
  58. package/dist/{layers.R9iXqhvZ.js → layers.BywviGiP.js} +1 -1
  59. package/dist/layers.C-_ynqvr.js +1 -0
  60. package/dist/{layers.CZecamMn.js → layers.C1actZbK.js} +1 -1
  61. package/dist/{layers.BGpJVuZ7.js → layers.C3DRx9On.js} +4 -4
  62. package/dist/{layers.DDMgyYWW.js → layers.C3SAUwXb.js} +1 -1
  63. package/dist/{layers.DqZKzpQJ.js → layers.C3yLkCio.js} +1 -1
  64. package/dist/{layers.CMjPOyDC.js → layers.C6fD5O8g.js} +1 -1
  65. package/dist/{layers.onYA4FK_.js → layers.C8YD8pwl.js} +1 -1
  66. package/dist/{layers.D0A9bTdp.js → layers.C92R-ENv.js} +1 -1
  67. package/dist/layers.C9QCrDzm.js +1 -0
  68. package/dist/{layers.y-mNp_mY.js → layers.C9_vX7IO.js} +3 -3
  69. package/dist/{layers.BhWi-YiK.js → layers.CA_fw2Dw.js} +1 -1
  70. package/dist/layers.CB61rfHO.js +1225 -0
  71. package/dist/{layers.CSAJceE-.js → layers.CCur6VEj.js} +2 -2
  72. package/dist/{layers.2IX7S1Ne.js → layers.CFLfRAu0.js} +2 -2
  73. package/dist/{layers.D7LO8_qu.js → layers.CFcHk-z5.js} +7 -4
  74. package/dist/{layers.BjXnNpjy.js → layers.CFmNZSAJ.js} +1 -1
  75. package/dist/{layers.BjT9zIca.js → layers.CGajZ1Yz.js} +1 -1
  76. package/dist/{layers.DTkH1S74.js → layers.CHhFVTiW.js} +1 -1
  77. package/dist/{layers.BtuGxcvy.js → layers.CJ1YRhUh.js} +1 -1
  78. package/dist/{layers.CC-mjtIn.js → layers.CJtE2LxP.js} +227 -224
  79. package/dist/{layers.6OxjWLLt.js → layers.CJyO2xrs.js} +1 -1
  80. package/dist/{layers.DiaAEdz7.js → layers.CMyb9_FE.js} +1 -1
  81. package/dist/{layers.ChiEFvH1.js → layers.COjckA33.js} +1 -1
  82. package/dist/{layers.CUIzGdvl.js → layers.CPJSmpbw.js} +1 -1
  83. package/dist/{layers.GRXQHK9T.js → layers.CQvaw3yb.js} +1 -1
  84. package/dist/{layers.CdOWqnL0.js → layers.CRht5Nqq.js} +15 -12
  85. package/dist/{layers.C4HJPVBU.js → layers.CSXAHvGG.js} +1 -1
  86. package/dist/{layers.DIzzE3Tu.js → layers.CTaitOnb.js} +1 -1
  87. package/dist/{layers.DbaFHCy4.js → layers.CV8UgwCq.js} +7 -7
  88. package/dist/{layers.BQVOCcfk.js → layers.CVJOismf.js} +1 -1
  89. package/dist/{layers.uRHZ0aIC.js → layers.CXWtqfTe.js} +10 -7
  90. package/dist/layers.CYPfnKfS.js +96 -0
  91. package/dist/{layers.BVp-UzdP.js → layers.CYdP1IhC.js} +1 -1
  92. package/dist/{layers.7N0zyBlr.js → layers.CYneLciB.js} +10 -7
  93. package/dist/layers.CZLVHOh5.js +8 -0
  94. package/dist/{layers.DD1RWqcn.js → layers.CbBTbZIx.js} +1 -1
  95. package/dist/layers.CcP6Z-gZ.js +118 -0
  96. package/dist/{layers.Cq2-BKrh.js → layers.CcTyCqqv.js} +1 -1
  97. package/dist/{layers.BeaxMOgL.js → layers.Cd3kGFCJ.js} +1 -1
  98. package/dist/{layers.CAqPK74t.js → layers.Ce7-wBOK.js} +1 -1
  99. package/dist/{layers.CsKWw66j.js → layers.Cf5sVqJX.js} +1 -1
  100. package/dist/{layers.IBGEcVWb.js → layers.CfISeAkt.js} +86 -84
  101. package/dist/{layers.B0ZaMH-w.js → layers.Cg3Hqyp6.js} +1 -1
  102. package/dist/{layers.C8ICL38U.js → layers.Cg60w1Fn.js} +7 -4
  103. package/dist/layers.Chd1p2rt.js +26645 -0
  104. package/dist/{layers.cdvIDYC9.js → layers.CiTNX3uh.js} +1 -1
  105. package/dist/{layers.CGJAaLCC.js → layers.CkwenT1M.js} +1 -1
  106. package/dist/{layers.aw_NogHa.js → layers.CnN8JfiX.js} +9 -6
  107. package/dist/{layers.C5rDnudy.js → layers.Coh6z7rV.js} +1 -1
  108. package/dist/{layers.Ctxg2Cns.js → layers.CpJSdiMb.js} +1 -1
  109. package/dist/{layers.B3qtRd0O.js → layers.Cryqj610.js} +8 -5
  110. package/dist/{layers.DHf80iUq.js → layers.Cs-83js7.js} +1 -1
  111. package/dist/{layers.CWNQxoa3.js → layers.CsivQuv1.js} +1 -1
  112. package/dist/{layers.i7luj17i.js → layers.Cud-IArB.js} +1 -1
  113. package/dist/{layers.C9C35vZh.js → layers.CwL02t3J.js} +1 -1
  114. package/dist/{layers.Bj0e0Txp.js → layers.CwsNJfmi.js} +1 -1
  115. package/dist/{layers.iXNwOFuH.js → layers.CxIhyFb7.js} +1 -1
  116. package/dist/{layers.CGDl8Y3X.js → layers.Cxh-oez0.js} +3 -3
  117. package/dist/{layers.BN3y45VD.js → layers.D-uio-rN.js} +50 -50
  118. package/dist/{layers.B_Bj48E_.js → layers.D0RX234F.js} +1 -1
  119. package/dist/{layers.BsB1DdQS.js → layers.D176Ljko.js} +1 -1
  120. package/dist/{layers.B2DSs9Ji.js → layers.D2cVaX5z.js} +14 -11
  121. package/dist/layers.D4Bw_BrO.js +1 -0
  122. package/dist/{layers.CQtEt7zf.js → layers.D8fFj0P_.js} +1 -1
  123. package/dist/{layers.CT-3O1Zp.js → layers.D9N3lSue.js} +6 -6
  124. package/dist/{layers.9OYX9BTO.js → layers.DAmxkO9p.js} +1 -1
  125. package/dist/{layers.Cx8zhv_Z.js → layers.DBwG7x-W.js} +1 -1
  126. package/dist/{layers.Cik344pE.js → layers.DDFbkCJT.js} +1 -1
  127. package/dist/{layers.DetNib1P.js → layers.DDnI7-13.js} +1 -1
  128. package/dist/{layers.fyqSWIpf.js → layers.DE6w34F3.js} +1 -1
  129. package/dist/{layers.C9htdpn0.js → layers.DEaAvR_W.js} +18 -15
  130. package/dist/{layers.q26A0Qat.js → layers.DEtMl_i3.js} +1 -1
  131. package/dist/{layers.CuoTMhDi.js → layers.DHNIckw6.js} +1 -1
  132. package/dist/layers.DHVcgZzL.js +257 -0
  133. package/dist/{layers.DsYHBjiX.js → layers.DHcbExrH.js} +3 -3
  134. package/dist/{layers.BeWhb2PD.js → layers.DIpDvY-A.js} +1 -1
  135. package/dist/{layers.BDn7_3gI.js → layers.DJM_OF_R.js} +1 -1
  136. package/dist/{layers.CpvwsKQg.js → layers.DLJtS0JJ.js} +1 -1
  137. package/dist/{layers.DWhWThjx.js → layers.DNJtYtN1.js} +1 -1
  138. package/dist/layers.DUlTmlus.js +213 -0
  139. package/dist/{layers.DEeymyv-.js → layers.DUutOP8h.js} +1 -1
  140. package/dist/{layers.CnuHu2j-.js → layers.DVWaIKgr.js} +9 -6
  141. package/dist/{layers.zFiSx77k.js → layers.D_WwW4Fn.js} +1 -1
  142. package/dist/{layers.r1oGCHIb.js → layers.D_fPGQ6i.js} +1 -1
  143. package/dist/{layers.BPPjbnzx.js → layers.D_faABvp.js} +8 -8
  144. package/dist/{layers.BXdj6yJ_.js → layers.DaIprEGs.js} +1 -1
  145. package/dist/{layers.GuA-f3Fd.js → layers.Db0NyGA-.js} +1 -1
  146. package/dist/{layers.C1sfm6_G.js → layers.DdMy9cRx.js} +7 -7
  147. package/dist/{layers.BDfBrD7E.js → layers.De35CioU.js} +1 -1
  148. package/dist/{layers.XbybLjbV.js → layers.DgO3Q5mW.js} +1 -1
  149. package/dist/{layers.6pi-7FpZ.js → layers.Di-PcJK6.js} +1 -1
  150. package/dist/{layers.DT6ts3Lq.js → layers.DjCXWv2m.js} +1 -1
  151. package/dist/{layers.BV-WBvAx.js → layers.Dk2S8boy.js} +1 -1
  152. package/dist/{layers.C8rmowXt.js → layers.DkBjWcDH.js} +8 -5
  153. package/dist/{layers.Bja9USss.js → layers.DnRaD217.js} +3229 -3812
  154. package/dist/{layers.C_NCqk3A.js → layers.DnvnGxUC.js} +1 -1
  155. package/dist/{layers.DMPkFzLm.js → layers.DrarpmaN.js} +7 -4
  156. package/dist/{layers.B99blaPV.js → layers.DukGouVT.js} +1 -1
  157. package/dist/{layers.z2EyNDzq.js → layers.DvYYNhUp.js} +1 -1
  158. package/dist/layers.Dv_6xN7s.js +2 -0
  159. package/dist/layers.DwWUZK6s.js +129 -0
  160. package/dist/{layers.B0_-fpRl.js → layers.DwzO2zcv.js} +1 -1
  161. package/dist/{layers.D28bJoE-.js → layers.DzD-lWXV.js} +8 -5
  162. package/dist/{layers.D7Q_zPEC.js → layers.E0TLXdrR.js} +1 -1
  163. package/dist/{layers.CVzbKWdE.js → layers.EcqLW9Mh.js} +1 -1
  164. package/dist/{layers.Bvfp0Nmg.js → layers.F4d4ILBH.js} +92 -89
  165. package/dist/{layers.2by9IXM4.js → layers.G3enfHRT.js} +1 -1
  166. package/dist/{layers.Cby_J4tz.js → layers.HFONz6O9.js} +4 -4
  167. package/dist/{layers.BYjeK5lC.js → layers.IUqwmZRd.js} +3 -3
  168. package/dist/{layers._khcyUP2.js → layers.IbJq0D6U.js} +1 -1
  169. package/dist/{layers.BCDnb0N-.js → layers.Ic3KgoPg.js} +1 -1
  170. package/dist/{layers.BqkaTRiN.js → layers.JNgL8WWu.js} +1 -1
  171. package/dist/{layers.Dbfo-Mxi.js → layers.KT-QFgdb.js} +1 -1
  172. package/dist/{layers.C2K6HYGs.js → layers.LCfVvo3T.js} +1 -1
  173. package/dist/{layers.C5C--S7F.js → layers.LR-nMBU_.js} +8 -5
  174. package/dist/layers.Qt2qr0-t.js +76 -0
  175. package/dist/{layers.Cc-gn7gB.js → layers.SCsPWeXb.js} +1 -1
  176. package/dist/{layers.B22UDcHF.js → layers.U4NCf2-l.js} +3 -3
  177. package/dist/{layers.Bs-R6Tci.js → layers.UewvnK33.js} +1 -1
  178. package/dist/{layers.Dgs5zjQ2.js → layers.VfVZmEbK.js} +1 -1
  179. package/dist/{layers.C0gnH54v.js → layers.Vh-KvhZg.js} +1 -1
  180. package/dist/{layers.DMuPzY-u.js → layers.Y3D9xjCC.js} +1 -1
  181. package/dist/{layers.CpqRjGMc.js → layers.YT6D6D2x.js} +1 -1
  182. package/dist/{layers.9IDD8j9_.js → layers._y8hExIw.js} +9 -6
  183. package/dist/layers.a8-4vDzD.js +22 -0
  184. package/dist/{layers.r-FJNoLD.js → layers.aGzHUJ1W.js} +4 -4
  185. package/dist/{layers.DthRbCv5.js → layers.ck9pUJ0W.js} +1 -1
  186. package/dist/{layers.D4UrMXbo.js → layers.d3HoUueQ.js} +1 -1
  187. package/dist/layers.dWB4bggP.js +1 -0
  188. package/dist/{layers.B73Yr95f.js → layers.dh8xLSwh.js} +1 -1
  189. package/dist/{layers.CSK416nt.js → layers.eT_ZPmHS.js} +1 -1
  190. package/dist/{layers.BP24jkgh.js → layers.fumrrA0i.js} +3 -3
  191. package/dist/{layers.CGl1u7pk.js → layers.gVfRcFrJ.js} +1 -1
  192. package/dist/{layers.QBVsuaas.js → layers.js7-Kn9p.js} +1 -1
  193. package/dist/{layers.DOUCIqoc.js → layers.kW7XFPN_.js} +1 -1
  194. package/dist/layers.mobYTQXI.js +1 -0
  195. package/dist/{layers.Bv3OpQrw.js → layers.mvotlTNZ.js} +1 -1
  196. package/dist/{layers.CezXcjt9.js → layers.n1dibO8I.js} +1 -1
  197. package/dist/layers.nRPZ1e3g.js +1 -0
  198. package/dist/layers.o2u1uDM3.js +1 -0
  199. package/dist/layers.oJ31-KOl.js +6 -0
  200. package/dist/{layers.DutikNub.js → layers.ojcNGNgi.js} +1 -1
  201. package/dist/{layers.DVUFJXJo.js → layers.otxU0wtq.js} +1 -1
  202. package/dist/layers.rE9xnPLC.js +1 -0
  203. package/dist/{layers.CmskE3Nw.js → layers.s0KLXd5N.js} +1 -1
  204. package/dist/{layers.tKJ10KbX.js → layers.sqH5TpK8.js} +1 -1
  205. package/dist/{layers.CxFlH365.js → layers.t_MFWlU6.js} +1 -1
  206. package/dist/{layers.CkxEIj3s.js → layers.xrt74v23.js} +1 -1
  207. package/dist/{layers.Dud3FBxt.js → layers.zNb0110W.js} +1 -1
  208. package/package.json +24 -23
  209. package/dist/layers.-Q9WCY74.js +0 -6
  210. package/dist/layers.8wTij37S.js +0 -8
  211. package/dist/layers.B60kgPJZ.js +0 -1
  212. package/dist/layers.BH61ZZfU.js +0 -2
  213. package/dist/layers.BRJuFCn5.js +0 -48033
  214. package/dist/layers.BVbLQwxt.js +0 -1
  215. package/dist/layers.BasyDpwP.js +0 -1
  216. package/dist/layers.Bco8gKSk.js +0 -74
  217. package/dist/layers.BeqIZCWe.js +0 -8
  218. package/dist/layers.C5S1nV4u.js +0 -96
  219. package/dist/layers.C6pyq4lQ.js +0 -2
  220. package/dist/layers.CUBTt-Ee.js +0 -1
  221. package/dist/layers.DPBZFzc4.js +0 -118
  222. package/dist/layers.DQhxHnK5.js +0 -257
  223. package/dist/layers.DYEpzKpb.js +0 -1
  224. package/dist/layers.Dhe3R-k1.js +0 -1
  225. package/dist/layers.DjH3OR52.js +0 -208
  226. package/dist/layers.DrLCcq8n.js +0 -1
  227. package/dist/layers.SIyOpPN0.js +0 -1
  228. package/dist/layers.T5uHQrKR.js +0 -198
  229. package/dist/layers.Zx0AnCjx.js +0 -19
  230. package/dist/layers.nOigKEQ8.js +0 -304
  231. package/dist/layers.oGiyFR7t.js +0 -1
  232. package/dist/layers.uZz7bXZN.js +0 -1359
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("./layers.DCkth_87.js"),t=require("./layers.C5S1nV4u.js"),_=require("./layers.BLd2spTm.js"),N=require("./layers.CVzbKWdE.js");require("./layers.DbaFHCy4.js");require("lodash-es");require("./layers.Cyzu9PKQ.js");const k=s=>t.common$1.sanitizeText(s,t.getConfig());let w={dividerMargin:10,padding:5,textHeight:10,curve:void 0};const D=function(s,o,f,i){const e=Object.keys(s);t.log$1.info("keys:",e),t.log$1.info(s),e.forEach(function(r){var l,c;const n=s[r],d={shape:"rect",id:n.id,domId:n.domId,labelText:k(n.id),labelStyle:"",style:"fill: none; stroke: black",padding:((l=t.getConfig().flowchart)==null?void 0:l.padding)??((c=t.getConfig().class)==null?void 0:c.padding)};o.setNode(n.id,d),$(n.classes,o,f,i,n.id),t.log$1.info("setNode",d)})},$=function(s,o,f,i,e){const r=Object.keys(s);t.log$1.info("keys:",r),t.log$1.info(s),r.filter(l=>s[l].parent==e).forEach(function(l){var c,n;const a=s[l],d=a.cssClasses.join(" "),g=t.getStylesFromArray(a.styles),p=a.label??a.id,u=0,y={labelStyle:g.labelStyle,shape:"class_box",labelText:k(p),classData:a,rx:u,ry:u,class:d,style:g.style,id:a.id,domId:a.domId,tooltip:i.db.getTooltip(a.id,e)||"",haveCallback:a.haveCallback,link:a.link,width:a.type==="group"?500:void 0,type:a.type,padding:((c=t.getConfig().flowchart)==null?void 0:c.padding)??((n=t.getConfig().class)==null?void 0:n.padding)};o.setNode(a.id,y),e&&o.setParent(a.id,e),t.log$1.info("setNode",y)})},E=function(s,o,f,i){t.log$1.info(s),s.forEach(function(e,r){var l,c;const n=e,a="",d={labelStyle:"",style:""},g=n.text,p=0,b={labelStyle:d.labelStyle,shape:"note",labelText:k(g),noteData:n,rx:p,ry:p,class:a,style:d.style,id:n.id,domId:n.id,tooltip:"",type:"note",padding:((l=t.getConfig().flowchart)==null?void 0:l.padding)??((c=t.getConfig().class)==null?void 0:c.padding)};if(o.setNode(n.id,b),t.log$1.info("setNode",b),!n.class||!(n.class in i))return;const y=f+r,x={id:`edgeNote${y}`,classes:"relation",pattern:"dotted",arrowhead:"none",startLabelRight:"",endLabelLeft:"",arrowTypeStart:"none",arrowTypeEnd:"none",style:"fill:none",labelStyle:"",curve:t.interpolateToCurve(w.curve,t.curveLinear)};o.setEdge(n.id,n.class,x,y)})},A=function(s,o){const f=t.getConfig().flowchart;let i=0;s.forEach(function(e){var r;i++;const l={classes:"relation",pattern:e.relation.lineType==1?"dashed":"solid",id:`id_${e.id1}_${e.id2}_${i}`,arrowhead:e.type==="arrow_open"?"none":"normal",startLabelRight:e.relationTitle1==="none"?"":e.relationTitle1,endLabelLeft:e.relationTitle2==="none"?"":e.relationTitle2,arrowTypeStart:C(e.relation.type1),arrowTypeEnd:C(e.relation.type2),style:"fill:none",labelStyle:"",curve:t.interpolateToCurve(f==null?void 0:f.curve,t.curveLinear)};if(t.log$1.info(l,e),e.style!==void 0){const c=t.getStylesFromArray(e.style);l.style=c.style,l.labelStyle=c.labelStyle}e.text=e.title,e.text===void 0?e.style!==void 0&&(l.arrowheadStyle="fill: #333"):(l.arrowheadStyle="fill: #333",l.labelpos="c",((r=t.getConfig().flowchart)==null?void 0:r.htmlLabels)??t.getConfig().htmlLabels?(l.labelType="html",l.label='<span class="edgeLabel">'+e.text+"</span>"):(l.labelType="text",l.label=e.text.replace(t.common$1.lineBreakRegex,`
2
- `),e.style===void 0&&(l.style=l.style||"stroke: #333; stroke-width: 1.5px;fill:none"),l.labelStyle=l.labelStyle.replace("color:","fill:"))),o.setEdge(e.id1,e.id2,l,i)})},q=function(s){w={...w,...s}},M=async function(s,o,f,i){t.log$1.info("Drawing class - ",o);const e=t.getConfig().flowchart??t.getConfig().class,r=t.getConfig().securityLevel;t.log$1.info("config:",e);const l=(e==null?void 0:e.nodeSpacing)??50,c=(e==null?void 0:e.rankSpacing)??50,n=new _.Graph({multigraph:!0,compound:!0}).setGraph({rankdir:i.db.getDirection(),nodesep:l,ranksep:c,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),a=i.db.getNamespaces(),d=i.db.getClasses(),g=i.db.getRelations(),p=i.db.getNotes();t.log$1.info(g),D(a,n,o,i),$(d,n,o,i),A(g,n),E(p,n,g.length+1,d);let u;r==="sandbox"&&(u=t.select("#i"+o));const b=r==="sandbox"?t.select(u.nodes()[0].contentDocument.body):t.select("body"),y=b.select(`[id="${o}"]`),x=b.select("#"+o+" g");if(await N.render(x,n,["aggregation","extension","composition","dependency","lollipop"],"classDiagram",o),t.utils.insertTitle(y,"classTitleText",(e==null?void 0:e.titleTopMargin)??5,i.db.getDiagramTitle()),t.setupGraphViewbox$1(n,y,e==null?void 0:e.diagramPadding,e==null?void 0:e.useMaxWidth),!(e!=null&&e.htmlLabels)){const S=r==="sandbox"?u.nodes()[0].contentDocument:document,L=S.querySelectorAll('[id="'+o+'"] .edgeLabel .label');for(const m of L){const T=m.getBBox(),h=S.createElementNS("http://www.w3.org/2000/svg","rect");h.setAttribute("rx",0),h.setAttribute("ry",0),h.setAttribute("width",T.width),h.setAttribute("height",T.height),m.insertBefore(h,m.firstChild)}}};function C(s){let o;switch(s){case 0:o="aggregation";break;case 1:o="extension";break;case 2:o="composition";break;case 3:o="dependency";break;case 4:o="lollipop";break;default:o="none"}return o}const I={setConf:q,draw:M},B={parser:v.parser$1,db:v.db,renderer:I,styles:v.styles,init:s=>{s.class||(s.class={}),s.class.arrowMarkerAbsolute=s.arrowMarkerAbsolute,v.db.clear()}};exports.diagram=B;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./layers.xdl544Mg.js"),z=require("./layers.BLd2spTm.js"),i=require("./layers.C5S1nV4u.js"),j=require("./layers.CVzbKWdE.js");require("./layers.DbaFHCy4.js");require("lodash-es");require("./layers.Cyzu9PKQ.js");const h="rect",C="rectWithTitle",K="start",F="end",J="divider",Q="roundedWithTitle",X="note",Z="noteGroup",b="statediagram",m="state",I=`${b}-${m}`,k="transition",tt="note",et="note-edge",ot=`${k} ${et}`,st=`${b}-${tt}`,nt="cluster",ct=`${b}-${nt}`,it="cluster-alt",rt=`${b}-${it}`,M="parent",B="note",lt="state",w="----",at=`${w}${B}`,v=`${w}${M}`,H="fill:none",U="fill: #333",q="c",V="text",Y="normal";let y={},S=0;const dt=function(t){const n=Object.keys(t);for(const e of n)t[e]},Et=function(t,n){return n.db.extract(n.db.getRootDocV2()),n.db.getClasses()};function St(t){return t==null?"":t.classes?t.classes.join(" "):""}function x(t="",n=0,e="",c=w){const r=e!==null&&e.length>0?`${c}${e}`:"";return`${lt}-${t}${r}-${n}`}const p=(t,n,e,c,r,l)=>{const o=e.id,f=St(c[o]);if(o!=="root"){let u=h;e.start===!0&&(u=K),e.start===!1&&(u=F),e.type!==a.DEFAULT_STATE_TYPE&&(u=e.type),y[o]||(y[o]={id:o,shape:u,description:i.common$1.sanitizeText(o,i.getConfig()),classes:`${f} ${I}`});const s=y[o];e.description&&(Array.isArray(s.description)?(s.shape=C,s.description.push(e.description)):s.description.length>0?(s.shape=C,s.description===o?s.description=[e.description]:s.description=[s.description,e.description]):(s.shape=h,s.description=e.description),s.description=i.common$1.sanitizeTextOrArray(s.description,i.getConfig())),s.description.length===1&&s.shape===C&&(s.shape=h),!s.type&&e.doc&&(i.log$1.info("Setting cluster for ",o,R(e)),s.type="group",s.dir=R(e),s.shape=e.type===a.DIVIDER_TYPE?J:Q,s.classes=s.classes+" "+ct+" "+(l?rt:""));const _={labelStyle:"",shape:s.shape,labelText:s.description,classes:s.classes,style:"",id:o,dir:s.dir,domId:x(o,S),type:s.type,padding:15};if(_.centerLabel=!0,e.note){const d={labelStyle:"",shape:X,labelText:e.note.text,classes:st,style:"",id:o+at+"-"+S,domId:x(o,S,B),type:s.type,padding:15},E={labelStyle:"",shape:Z,labelText:e.note.text,classes:s.classes,style:"",id:o+v,domId:x(o,S,M),type:"group",padding:0};S++;const g=o+v;t.setNode(g,E),t.setNode(d.id,d),t.setNode(o,_),t.setParent(o,g),t.setParent(d.id,g);let T=o,A=d.id;e.note.position==="left of"&&(T=d.id,A=o),t.setEdge(T,A,{arrowhead:"none",arrowType:"",style:H,labelStyle:"",classes:ot,arrowheadStyle:U,labelpos:q,labelType:V,thickness:Y})}else t.setNode(o,_)}n&&n.id!=="root"&&(i.log$1.trace("Setting node ",o," to be child of its parent ",n.id),t.setParent(o,n.id)),e.doc&&(i.log$1.trace("Adding nodes children "),Tt(t,e,e.doc,c,r,!l))},Tt=(t,n,e,c,r,l)=>{i.log$1.trace("items",e),e.forEach(o=>{switch(o.stmt){case a.STMT_STATE:p(t,n,o,c,r,l);break;case a.DEFAULT_STATE_TYPE:p(t,n,o,c,r,l);break;case a.STMT_RELATION:{p(t,n,o.state1,c,r,l),p(t,n,o.state2,c,r,l);const f={id:"edge"+S,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:H,labelStyle:"",label:i.common$1.sanitizeText(o.description,i.getConfig()),arrowheadStyle:U,labelpos:q,labelType:V,thickness:Y,classes:k};t.setEdge(o.state1.id,o.state2.id,f,S),S++}break}})},R=(t,n=a.DEFAULT_NESTED_DOC_DIR)=>{let e=n;if(t.doc)for(let c=0;c<t.doc.length;c++){const r=t.doc[c];r.stmt==="dir"&&(e=r.value)}return e},ut=async function(t,n,e,c){i.log$1.info("Drawing state diagram (v2)",n),y={},c.db.getDirection();const{securityLevel:r,state:l}=i.getConfig(),o=l.nodeSpacing||50,f=l.rankSpacing||50;i.log$1.info(c.db.getRootDocV2()),c.db.extract(c.db.getRootDocV2()),i.log$1.info(c.db.getRootDocV2());const u=c.db.getStates(),s=new z.Graph({multigraph:!0,compound:!0}).setGraph({rankdir:R(c.db.getRootDocV2()),nodesep:o,ranksep:f,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});p(s,void 0,c.db.getRootDocV2(),u,c.db,!0);let _;r==="sandbox"&&(_=i.select("#i"+n));const d=r==="sandbox"?i.select(_.nodes()[0].contentDocument.body):i.select("body"),E=d.select(`[id="${n}"]`),g=d.select("#"+n+" g");await j.render(g,s,["barb"],b,n);const T=8;i.utils.insertTitle(E,"statediagramTitleText",l.titleTopMargin,c.db.getDiagramTitle());const A=E.node().getBBox(),G=A.width+T*2,N=A.height+T*2;E.attr("class",b);const L=E.node().getBBox();i.configureSvgSize(E,N,G,l.useMaxWidth);const P=`${L.x-T} ${L.y-T} ${G} ${N}`;i.log$1.debug(`viewBox ${P}`),E.attr("viewBox",P);const W=document.querySelectorAll('[id="'+n+'"] .edgeLabel .label');for(const $ of W){const O=$.getBBox(),D=document.createElementNS("http://www.w3.org/2000/svg",h);D.setAttribute("rx",0),D.setAttribute("ry",0),D.setAttribute("width",O.width),D.setAttribute("height",O.height),$.insertBefore(D,$.firstChild)}},_t={setConf:dt,getClasses:Et,draw:ut},bt={parser:a.parser$1,db:a.db,renderer:_t,styles:a.styles,init:t=>{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute,a.db.clear()}};exports.diagram=bt;
@@ -1,118 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./layers.C5S1nV4u.js"),U=require("./layers.XbybLjbV.js"),Ie=require("./layers.BLd2spTm.js");require("./layers.DbaFHCy4.js");const Ae=require("./layers.BasyDpwP.js"),Ce=require("./layers.B19hGmey.js"),ze=require("./layers.BIeVwYKL.js");function Re(e,r){for(var o=-1,c=e==null?0:e.length;++o<c&&r(e[o],o,e)!==!1;);return e}function xe(e){return u.isArrayLike(e)?u.arrayLikeKeys(e):u.baseKeys(e)}function Be(e,r){return e&&u.copyObject(r,xe(r),e)}function je(e,r){for(var o=-1,c=e==null?0:e.length,i=0,h=[];++o<c;){var l=e[o];r(l,o,e)&&(h[i++]=l)}return h}function Pe(){return[]}var Fe=Object.prototype,Ke=Fe.propertyIsEnumerable,le=Object.getOwnPropertySymbols,Le=le?function(e){return e==null?[]:(e=Object(e),je(le(e),function(r){return Ke.call(e,r)}))}:Pe;function Me(e,r){return u.copyObject(e,Le(e),r)}function Ue(e,r){for(var o=-1,c=r.length,i=e.length;++o<c;)e[i+o]=r[o];return e}function Ye(e,r,o){var c=r(e);return u.isArray(e)?c:Ue(c,o(e))}function We(e){return Ye(e,xe,Le)}var Ve=Object.prototype,Ge=Ve.hasOwnProperty;function qe(e){var r=e.length,o=new e.constructor(r);return r&&typeof e[0]=="string"&&Ge.call(e,"index")&&(o.index=e.index,o.input=e.input),o}function Xe(e,r){var o=e.buffer;return new e.constructor(o,e.byteOffset,e.byteLength)}var He=/\w*$/;function $e(e){var r=new e.constructor(e.source,He.exec(e));return r.lastIndex=e.lastIndex,r}var ce=u.Symbol?u.Symbol.prototype:void 0,ue=ce?ce.valueOf:void 0;function Ze(e){return ue?Object(ue.call(e)):{}}var Je="[object Boolean]",Qe="[object Date]",et="[object Map]",tt="[object Number]",st="[object RegExp]",rt="[object Set]",it="[object String]",nt="[object Symbol]",at="[object ArrayBuffer]",ot="[object DataView]",lt="[object Float32Array]",ct="[object Float64Array]",ut="[object Int8Array]",gt="[object Int16Array]",dt="[object Int32Array]",ht="[object Uint8Array]",pt="[object Uint8ClampedArray]",ft="[object Uint16Array]",bt="[object Uint32Array]";function St(e,r,o){var c=e.constructor;switch(r){case at:return u.cloneArrayBuffer(e);case Je:case Qe:return new c(+e);case ot:return Xe(e);case lt:case ct:case ut:case gt:case dt:case ht:case pt:case ft:case bt:return u.cloneTypedArray(e,o);case et:return new c;case tt:case it:return new c(e);case st:return $e(e);case rt:return new c;case nt:return Ze(e)}}var xt="[object Map]";function Lt(e){return u.isObjectLike(e)&&u.getTag(e)==xt}var ge=u.nodeUtil&&u.nodeUtil.isMap,yt=ge?u.baseUnary(ge):Lt,mt="[object Set]";function _t(e){return u.isObjectLike(e)&&u.getTag(e)==mt}var de=u.nodeUtil&&u.nodeUtil.isSet,Et=de?u.baseUnary(de):_t,wt=1,ye="[object Arguments]",vt="[object Array]",Dt="[object Boolean]",Tt="[object Date]",Nt="[object Error]",me="[object Function]",Ot="[object GeneratorFunction]",kt="[object Map]",It="[object Number]",_e="[object Object]",At="[object RegExp]",Ct="[object Set]",zt="[object String]",Rt="[object Symbol]",Bt="[object WeakMap]",jt="[object ArrayBuffer]",Pt="[object DataView]",Ft="[object Float32Array]",Kt="[object Float64Array]",Mt="[object Int8Array]",Ut="[object Int16Array]",Yt="[object Int32Array]",Wt="[object Uint8Array]",Vt="[object Uint8ClampedArray]",Gt="[object Uint16Array]",qt="[object Uint32Array]",y={};y[ye]=y[vt]=y[jt]=y[Pt]=y[Dt]=y[Tt]=y[Ft]=y[Kt]=y[Mt]=y[Ut]=y[Yt]=y[kt]=y[It]=y[_e]=y[At]=y[Ct]=y[zt]=y[Rt]=y[Wt]=y[Vt]=y[Gt]=y[qt]=!0;y[Nt]=y[me]=y[Bt]=!1;function Z(e,r,o,c,i,h){var l,b=r&wt;if(l!==void 0)return l;if(!u.isObject(e))return e;var S=u.isArray(e);if(S)return l=qe(e),u.copyArray(e,l);var f=u.getTag(e),x=f==me||f==Ot;if(u.isBuffer(e))return u.cloneBuffer(e,b);if(f==_e||f==ye||x&&!i)return l=x?{}:u.initCloneObject(e),Me(e,Be(l,e));if(!y[f])return i?e:{};l=St(e,f,b),h||(h=new u.Stack);var w=h.get(e);if(w)return w;h.set(e,l),Et(e)?e.forEach(function(_){l.add(Z(_,r,o,_,e,h))}):yt(e)&&e.forEach(function(_,L){l.set(L,Z(_,r,o,L,e,h))});var k=We,D=S?void 0:k(e);return Re(D||e,function(_,L){D&&(L=_,_=e[L]),u.assignValue(l,L,Z(_,r,o,L,e,h))}),l}var Xt=4;function Ht(e){return Z(e,Xt)}var he,pe,se=(function(){var e=function(N,g,s,n){for(s=s||{},n=N.length;n--;s[N[n]]=g);return s},r=[1,7],o=[1,13],c=[1,14],i=[1,15],h=[1,19],l=[1,16],b=[1,17],S=[1,18],f=[8,30],x=[8,21,28,29,30,31,32,40,44,47],w=[1,23],k=[1,24],D=[8,15,16,21,28,29,30,31,32,40,44,47],_=[8,15,16,21,27,28,29,30,31,32,40,44,47],L=[1,49],m={trace:function(){},yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,block:31,NODE_ID:32,nodeShapeNLabel:33,dirList:34,DIR:35,NODE_DSTART:36,NODE_DEND:37,BLOCK_ARROW_START:38,BLOCK_ARROW_END:39,classDef:40,CLASSDEF_ID:41,CLASSDEF_STYLEOPTS:42,DEFAULT:43,class:44,CLASSENTITY_IDS:45,STYLECLASS:46,style:47,STYLE_ENTITY_IDS:48,STYLE_DEFINITION_DATA:49,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"block",32:"NODE_ID",35:"DIR",36:"NODE_DSTART",37:"NODE_DEND",38:"BLOCK_ARROW_START",39:"BLOCK_ARROW_END",40:"classDef",41:"CLASSDEF_ID",42:"CLASSDEF_STYLEOPTS",43:"DEFAULT",44:"class",45:"CLASSENTITY_IDS",46:"STYLECLASS",47:"style",48:"STYLE_ENTITY_IDS",49:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[34,1],[34,2],[33,3],[33,4],[23,3],[23,3],[24,3],[25,3]],performAction:function(g,s,n,d,p,t,E){var a=t.length-1;switch(p){case 4:d.getLogger().debug("Rule: separator (NL) ");break;case 5:d.getLogger().debug("Rule: separator (Space) ");break;case 6:d.getLogger().debug("Rule: separator (EOF) ");break;case 7:d.getLogger().debug("Rule: hierarchy: ",t[a-1]),d.setHierarchy(t[a-1]);break;case 8:d.getLogger().debug("Stop NL ");break;case 9:d.getLogger().debug("Stop EOF ");break;case 10:d.getLogger().debug("Stop NL2 ");break;case 11:d.getLogger().debug("Stop EOF2 ");break;case 12:d.getLogger().debug("Rule: statement: ",t[a]),typeof t[a].length=="number"?this.$=t[a]:this.$=[t[a]];break;case 13:d.getLogger().debug("Rule: statement #2: ",t[a-1]),this.$=[t[a-1]].concat(t[a]);break;case 14:d.getLogger().debug("Rule: link: ",t[a],g),this.$={edgeTypeStr:t[a],label:""};break;case 15:d.getLogger().debug("Rule: LABEL link: ",t[a-3],t[a-1],t[a]),this.$={edgeTypeStr:t[a],label:t[a-1]};break;case 18:const B=parseInt(t[a]),Y=d.generateId();this.$={id:Y,type:"space",label:"",width:B,children:[]};break;case 23:d.getLogger().debug("Rule: (nodeStatement link node) ",t[a-2],t[a-1],t[a]," typestr: ",t[a-1].edgeTypeStr);const F=d.edgeStrToEdgeData(t[a-1].edgeTypeStr);this.$=[{id:t[a-2].id,label:t[a-2].label,type:t[a-2].type,directions:t[a-2].directions},{id:t[a-2].id+"-"+t[a].id,start:t[a-2].id,end:t[a].id,label:t[a-1].label,type:"edge",directions:t[a].directions,arrowTypeEnd:F,arrowTypeStart:"arrow_open"},{id:t[a].id,label:t[a].label,type:d.typeStr2Type(t[a].typeStr),directions:t[a].directions}];break;case 24:d.getLogger().debug("Rule: nodeStatement (abc88 node size) ",t[a-1],t[a]),this.$={id:t[a-1].id,label:t[a-1].label,type:d.typeStr2Type(t[a-1].typeStr),directions:t[a-1].directions,widthInColumns:parseInt(t[a],10)};break;case 25:d.getLogger().debug("Rule: nodeStatement (node) ",t[a]),this.$={id:t[a].id,label:t[a].label,type:d.typeStr2Type(t[a].typeStr),directions:t[a].directions,widthInColumns:1};break;case 26:d.getLogger().debug("APA123",this?this:"na"),d.getLogger().debug("COLUMNS: ",t[a]),this.$={type:"column-setting",columns:t[a]==="auto"?-1:parseInt(t[a])};break;case 27:d.getLogger().debug("Rule: id-block statement : ",t[a-2],t[a-1]),d.generateId(),this.$={...t[a-2],type:"composite",children:t[a-1]};break;case 28:d.getLogger().debug("Rule: blockStatement : ",t[a-2],t[a-1],t[a]);const z=d.generateId();this.$={id:z,type:"composite",label:"",children:t[a-1]};break;case 29:d.getLogger().debug("Rule: node (NODE_ID separator): ",t[a]),this.$={id:t[a]};break;case 30:d.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",t[a-1],t[a]),this.$={id:t[a-1],label:t[a].label,typeStr:t[a].typeStr,directions:t[a].directions};break;case 31:d.getLogger().debug("Rule: dirList: ",t[a]),this.$=[t[a]];break;case 32:d.getLogger().debug("Rule: dirList: ",t[a-1],t[a]),this.$=[t[a-1]].concat(t[a]);break;case 33:d.getLogger().debug("Rule: nodeShapeNLabel: ",t[a-2],t[a-1],t[a]),this.$={typeStr:t[a-2]+t[a],label:t[a-1]};break;case 34:d.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",t[a-3],t[a-2]," #3:",t[a-1],t[a]),this.$={typeStr:t[a-3]+t[a],label:t[a-2],directions:t[a-1]};break;case 35:case 36:this.$={type:"classDef",id:t[a-1].trim(),css:t[a].trim()};break;case 37:this.$={type:"applyClass",id:t[a-1].trim(),styleClass:t[a].trim()};break;case 38:this.$={type:"applyStyles",id:t[a-1].trim(),stylesStr:t[a].trim()};break}},table:[{9:1,10:[1,2]},{1:[3]},{11:3,13:4,19:5,20:6,21:r,22:8,23:9,24:10,25:11,26:12,28:o,29:c,31:i,32:h,40:l,44:b,47:S},{8:[1,20]},e(f,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,21:r,28:o,29:c,31:i,32:h,40:l,44:b,47:S}),e(x,[2,16],{14:22,15:w,16:k}),e(x,[2,17]),e(x,[2,18]),e(x,[2,19]),e(x,[2,20]),e(x,[2,21]),e(x,[2,22]),e(D,[2,25],{27:[1,25]}),e(x,[2,26]),{19:26,26:12,32:h},{11:27,13:4,19:5,20:6,21:r,22:8,23:9,24:10,25:11,26:12,28:o,29:c,31:i,32:h,40:l,44:b,47:S},{41:[1,28],43:[1,29]},{45:[1,30]},{48:[1,31]},e(_,[2,29],{33:32,36:[1,33],38:[1,34]}),{1:[2,7]},e(f,[2,13]),{26:35,32:h},{32:[2,14]},{17:[1,36]},e(D,[2,24]),{11:37,13:4,14:22,15:w,16:k,19:5,20:6,21:r,22:8,23:9,24:10,25:11,26:12,28:o,29:c,31:i,32:h,40:l,44:b,47:S},{30:[1,38]},{42:[1,39]},{42:[1,40]},{46:[1,41]},{49:[1,42]},e(_,[2,30]),{18:[1,43]},{18:[1,44]},e(D,[2,23]),{18:[1,45]},{30:[1,46]},e(x,[2,28]),e(x,[2,35]),e(x,[2,36]),e(x,[2,37]),e(x,[2,38]),{37:[1,47]},{34:48,35:L},{15:[1,50]},e(x,[2,27]),e(_,[2,33]),{39:[1,51]},{34:52,35:L,39:[2,31]},{32:[2,15]},e(_,[2,34]),{39:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:function(g,s){if(s.recoverable)this.trace(g);else{var n=new Error(g);throw n.hash=s,n}},parse:function(g){var s=this,n=[0],d=[],p=[null],t=[],E=this.table,a="",B=0,Y=0,F=2,z=1,Ne=t.slice.call(arguments,1),T=Object.create(this.lexer),K={yy:{}};for(var J in this.yy)Object.prototype.hasOwnProperty.call(this.yy,J)&&(K.yy[J]=this.yy[J]);T.setInput(g,K.yy),K.yy.lexer=T,K.yy.parser=this,typeof T.yylloc>"u"&&(T.yylloc={});var Q=T.yylloc;t.push(Q);var Oe=T.options&&T.options.ranges;typeof K.yy.parseError=="function"?this.parseError=K.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ke(){var P;return P=d.pop()||T.lex()||z,typeof P!="number"&&(P instanceof Array&&(d=P,P=d.pop()),P=s.symbols_[P]||P),P}for(var I,M,C,ee,W={},X,j,oe,H;;){if(M=n[n.length-1],this.defaultActions[M]?C=this.defaultActions[M]:((I===null||typeof I>"u")&&(I=ke()),C=E[M]&&E[M][I]),typeof C>"u"||!C.length||!C[0]){var te="";H=[];for(X in E[M])this.terminals_[X]&&X>F&&H.push("'"+this.terminals_[X]+"'");T.showPosition?te="Parse error on line "+(B+1)+`:
2
- `+T.showPosition()+`
3
- Expecting `+H.join(", ")+", got '"+(this.terminals_[I]||I)+"'":te="Parse error on line "+(B+1)+": Unexpected "+(I==z?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(te,{text:T.match,token:this.terminals_[I]||I,line:T.yylineno,loc:Q,expected:H})}if(C[0]instanceof Array&&C.length>1)throw new Error("Parse Error: multiple actions possible at state: "+M+", token: "+I);switch(C[0]){case 1:n.push(I),p.push(T.yytext),t.push(T.yylloc),n.push(C[1]),I=null,Y=T.yyleng,a=T.yytext,B=T.yylineno,Q=T.yylloc;break;case 2:if(j=this.productions_[C[1]][1],W.$=p[p.length-j],W._$={first_line:t[t.length-(j||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(j||1)].first_column,last_column:t[t.length-1].last_column},Oe&&(W._$.range=[t[t.length-(j||1)].range[0],t[t.length-1].range[1]]),ee=this.performAction.apply(W,[a,Y,B,K.yy,C[1],p,t].concat(Ne)),typeof ee<"u")return ee;j&&(n=n.slice(0,-1*j*2),p=p.slice(0,-1*j),t=t.slice(0,-1*j)),n.push(this.productions_[C[1]][0]),p.push(W.$),t.push(W._$),oe=E[n[n.length-2]][n[n.length-1]],n.push(oe);break;case 3:return!0}}return!0}},R=(function(){var N={EOF:1,parseError:function(s,n){if(this.yy.parser)this.yy.parser.parseError(s,n);else throw new Error(s)},setInput:function(g,s){return this.yy=s||this.yy||{},this._input=g,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},input:function(){var g=this._input[0];this.yytext+=g,this.yyleng++,this.offset++,this.match+=g,this.matched+=g;var s=g.match(/(?:\r\n?|\n).*/g);return s?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),g},unput:function(g){var s=g.length,n=g.split(/(?:\r\n?|\n)/g);this._input=g+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s),this.offset-=s;var d=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),n.length-1&&(this.yylineno-=n.length-1);var p=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:n?(n.length===d.length?this.yylloc.first_column:0)+d[d.length-n.length].length-n[0].length:this.yylloc.first_column-s},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-s]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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
- `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(g){this.unput(this.match.slice(g))},pastInput:function(){var g=this.matched.substr(0,this.matched.length-this.match.length);return(g.length>20?"...":"")+g.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var g=this.match;return g.length<20&&(g+=this._input.substr(0,20-g.length)),(g.substr(0,20)+(g.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var g=this.pastInput(),s=new Array(g.length+1).join("-");return g+this.upcomingInput()+`
5
- `+s+"^"},test_match:function(g,s){var n,d,p;if(this.options.backtrack_lexer&&(p={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(p.yylloc.range=this.yylloc.range.slice(0))),d=g[0].match(/(?:\r\n?|\n).*/g),d&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+g[0].length},this.yytext+=g[0],this.match+=g[0],this.matches=g,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(g[0].length),this.matched+=g[0],n=this.performAction.call(this,this.yy,this,s,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var t in p)this[t]=p[t];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var g,s,n,d;this._more||(this.yytext="",this.match="");for(var p=this._currentRules(),t=0;t<p.length;t++)if(n=this._input.match(this.rules[p[t]]),n&&(!s||n[0].length>s[0].length)){if(s=n,d=t,this.options.backtrack_lexer){if(g=this.test_match(n,p[t]),g!==!1)return g;if(this._backtrack){s=!1;continue}else return!1}else if(!this.options.flex)break}return s?(g=this.test_match(s,p[d]),g!==!1?g:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
- `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var s=this.next();return s||this.lex()},begin:function(s){this.conditionStack.push(s)},popState:function(){var s=this.conditionStack.length-1;return s>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(s){return s=this.conditionStack.length-1-Math.abs(s||0),s>=0?this.conditionStack[s]:"INITIAL"},pushState:function(s){this.begin(s)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(s,n,d,p){switch(d){case 0:return 10;case 1:return s.getLogger().debug("Found space-block"),31;case 2:return s.getLogger().debug("Found nl-block"),31;case 3:return s.getLogger().debug("Found space-block"),29;case 4:s.getLogger().debug(".",n.yytext);break;case 5:s.getLogger().debug("_",n.yytext);break;case 6:return 5;case 7:return n.yytext=-1,28;case 8:return n.yytext=n.yytext.replace(/columns\s+/,""),s.getLogger().debug("COLUMNS (LEX)",n.yytext),28;case 9:this.pushState("md_string");break;case 10:return"MD_STR";case 11:this.popState();break;case 12:this.pushState("string");break;case 13:s.getLogger().debug("LEX: POPPING STR:",n.yytext),this.popState();break;case 14:return s.getLogger().debug("LEX: STR end:",n.yytext),"STR";case 15:return n.yytext=n.yytext.replace(/space\:/,""),s.getLogger().debug("SPACE NUM (LEX)",n.yytext),21;case 16:return n.yytext="1",s.getLogger().debug("COLUMNS (LEX)",n.yytext),21;case 17:return 43;case 18:return"LINKSTYLE";case 19:return"INTERPOLATE";case 20:return this.pushState("CLASSDEF"),40;case 21:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 22:return this.popState(),this.pushState("CLASSDEFID"),41;case 23:return this.popState(),42;case 24:return this.pushState("CLASS"),44;case 25:return this.popState(),this.pushState("CLASS_STYLE"),45;case 26:return this.popState(),46;case 27:return this.pushState("STYLE_STMNT"),47;case 28:return this.popState(),this.pushState("STYLE_DEFINITION"),48;case 29:return this.popState(),49;case 30:return this.pushState("acc_title"),"acc_title";case 31:return this.popState(),"acc_title_value";case 32:return this.pushState("acc_descr"),"acc_descr";case 33:return this.popState(),"acc_descr_value";case 34:this.pushState("acc_descr_multiline");break;case 35:this.popState();break;case 36:return"acc_descr_multiline_value";case 37:return 30;case 38:return this.popState(),s.getLogger().debug("Lex: (("),"NODE_DEND";case 39:return this.popState(),s.getLogger().debug("Lex: (("),"NODE_DEND";case 40:return this.popState(),s.getLogger().debug("Lex: ))"),"NODE_DEND";case 41:return this.popState(),s.getLogger().debug("Lex: (("),"NODE_DEND";case 42:return this.popState(),s.getLogger().debug("Lex: (("),"NODE_DEND";case 43:return this.popState(),s.getLogger().debug("Lex: (-"),"NODE_DEND";case 44:return this.popState(),s.getLogger().debug("Lex: -)"),"NODE_DEND";case 45:return this.popState(),s.getLogger().debug("Lex: (("),"NODE_DEND";case 46:return this.popState(),s.getLogger().debug("Lex: ]]"),"NODE_DEND";case 47:return this.popState(),s.getLogger().debug("Lex: ("),"NODE_DEND";case 48:return this.popState(),s.getLogger().debug("Lex: ])"),"NODE_DEND";case 49:return this.popState(),s.getLogger().debug("Lex: /]"),"NODE_DEND";case 50:return this.popState(),s.getLogger().debug("Lex: /]"),"NODE_DEND";case 51:return this.popState(),s.getLogger().debug("Lex: )]"),"NODE_DEND";case 52:return this.popState(),s.getLogger().debug("Lex: )"),"NODE_DEND";case 53:return this.popState(),s.getLogger().debug("Lex: ]>"),"NODE_DEND";case 54:return this.popState(),s.getLogger().debug("Lex: ]"),"NODE_DEND";case 55:return s.getLogger().debug("Lexa: -)"),this.pushState("NODE"),36;case 56:return s.getLogger().debug("Lexa: (-"),this.pushState("NODE"),36;case 57:return s.getLogger().debug("Lexa: ))"),this.pushState("NODE"),36;case 58:return s.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;case 59:return s.getLogger().debug("Lex: ((("),this.pushState("NODE"),36;case 60:return s.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;case 61:return s.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;case 62:return s.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;case 63:return s.getLogger().debug("Lexc: >"),this.pushState("NODE"),36;case 64:return s.getLogger().debug("Lexa: (["),this.pushState("NODE"),36;case 65:return s.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;case 66:return this.pushState("NODE"),36;case 67:return this.pushState("NODE"),36;case 68:return this.pushState("NODE"),36;case 69:return this.pushState("NODE"),36;case 70:return this.pushState("NODE"),36;case 71:return this.pushState("NODE"),36;case 72:return this.pushState("NODE"),36;case 73:return s.getLogger().debug("Lexa: ["),this.pushState("NODE"),36;case 74:return this.pushState("BLOCK_ARROW"),s.getLogger().debug("LEX ARR START"),38;case 75:return s.getLogger().debug("Lex: NODE_ID",n.yytext),32;case 76:return s.getLogger().debug("Lex: EOF",n.yytext),8;case 77:this.pushState("md_string");break;case 78:this.pushState("md_string");break;case 79:return"NODE_DESCR";case 80:this.popState();break;case 81:s.getLogger().debug("Lex: Starting string"),this.pushState("string");break;case 82:s.getLogger().debug("LEX ARR: Starting string"),this.pushState("string");break;case 83:return s.getLogger().debug("LEX: NODE_DESCR:",n.yytext),"NODE_DESCR";case 84:s.getLogger().debug("LEX POPPING"),this.popState();break;case 85:s.getLogger().debug("Lex: =>BAE"),this.pushState("ARROW_DIR");break;case 86:return n.yytext=n.yytext.replace(/^,\s*/,""),s.getLogger().debug("Lex (right): dir:",n.yytext),"DIR";case 87:return n.yytext=n.yytext.replace(/^,\s*/,""),s.getLogger().debug("Lex (left):",n.yytext),"DIR";case 88:return n.yytext=n.yytext.replace(/^,\s*/,""),s.getLogger().debug("Lex (x):",n.yytext),"DIR";case 89:return n.yytext=n.yytext.replace(/^,\s*/,""),s.getLogger().debug("Lex (y):",n.yytext),"DIR";case 90:return n.yytext=n.yytext.replace(/^,\s*/,""),s.getLogger().debug("Lex (up):",n.yytext),"DIR";case 91:return n.yytext=n.yytext.replace(/^,\s*/,""),s.getLogger().debug("Lex (down):",n.yytext),"DIR";case 92:return n.yytext="]>",s.getLogger().debug("Lex (ARROW_DIR end):",n.yytext),this.popState(),this.popState(),"BLOCK_ARROW_END";case 93:return s.getLogger().debug("Lex: LINK","#"+n.yytext+"#"),15;case 94:return s.getLogger().debug("Lex: LINK",n.yytext),15;case 95:return s.getLogger().debug("Lex: LINK",n.yytext),15;case 96:return s.getLogger().debug("Lex: LINK",n.yytext),15;case 97:return s.getLogger().debug("Lex: START_LINK",n.yytext),this.pushState("LLABEL"),16;case 98:return s.getLogger().debug("Lex: START_LINK",n.yytext),this.pushState("LLABEL"),16;case 99:return s.getLogger().debug("Lex: START_LINK",n.yytext),this.pushState("LLABEL"),16;case 100:this.pushState("md_string");break;case 101:return s.getLogger().debug("Lex: Starting string"),this.pushState("string"),"LINK_LABEL";case 102:return this.popState(),s.getLogger().debug("Lex: LINK","#"+n.yytext+"#"),15;case 103:return this.popState(),s.getLogger().debug("Lex: LINK",n.yytext),15;case 104:return this.popState(),s.getLogger().debug("Lex: LINK",n.yytext),15;case 105:return s.getLogger().debug("Lex: COLON",n.yytext),n.yytext=n.yytext.slice(1),27}},rules:[/^(?:block-beta\b)/,/^(?:block\s+)/,/^(?:block\n+)/,/^(?:block:)/,/^(?:[\s]+)/,/^(?:[\n]+)/,/^(?:((\u000D\u000A)|(\u000A)))/,/^(?:columns\s+auto\b)/,/^(?:columns\s+[\d]+)/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:space[:]\d+)/,/^(?:space\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\s+)/,/^(?:DEFAULT\s+)/,/^(?:\w+\s+)/,/^(?:[^\n]*)/,/^(?:class\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:style\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:end\b\s*)/,/^(?:\(\(\()/,/^(?:\)\)\))/,/^(?:[\)]\))/,/^(?:\}\})/,/^(?:\})/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\()/,/^(?:\]\])/,/^(?:\()/,/^(?:\]\))/,/^(?:\\\])/,/^(?:\/\])/,/^(?:\)\])/,/^(?:[\)])/,/^(?:\]>)/,/^(?:[\]])/,/^(?:-\))/,/^(?:\(-)/,/^(?:\)\))/,/^(?:\))/,/^(?:\(\(\()/,/^(?:\(\()/,/^(?:\{\{)/,/^(?:\{)/,/^(?:>)/,/^(?:\(\[)/,/^(?:\()/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\[\\)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:\[)/,/^(?:<\[)/,/^(?:[^\(\[\n\-\)\{\}\s\<\>:]+)/,/^(?:$)/,/^(?:["][`])/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:\]>\s*\()/,/^(?:,?\s*right\s*)/,/^(?:,?\s*left\s*)/,/^(?:,?\s*x\s*)/,/^(?:,?\s*y\s*)/,/^(?:,?\s*up\s*)/,/^(?:,?\s*down\s*)/,/^(?:\)\s*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*~~[\~]+\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:["][`])/,/^(?:["])/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?::\d+)/],conditions:{STYLE_DEFINITION:{rules:[29],inclusive:!1},STYLE_STMNT:{rules:[28],inclusive:!1},CLASSDEFID:{rules:[23],inclusive:!1},CLASSDEF:{rules:[21,22],inclusive:!1},CLASS_STYLE:{rules:[26],inclusive:!1},CLASS:{rules:[25],inclusive:!1},LLABEL:{rules:[100,101,102,103,104],inclusive:!1},ARROW_DIR:{rules:[86,87,88,89,90,91,92],inclusive:!1},BLOCK_ARROW:{rules:[77,82,85],inclusive:!1},NODE:{rules:[38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,78,81],inclusive:!1},md_string:{rules:[10,11,79,80],inclusive:!1},space:{rules:[],inclusive:!1},string:{rules:[13,14,83,84],inclusive:!1},acc_descr_multiline:{rules:[35,36],inclusive:!1},acc_descr:{rules:[33],inclusive:!1},acc_title:{rules:[31],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,12,15,16,17,18,19,20,24,27,30,32,34,37,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,93,94,95,96,97,98,99,105],inclusive:!0}}};return N})();m.lexer=R;function O(){this.yy={}}return O.prototype=m,m.Parser=O,new O})();se.parser=se;const $t=se;let A={},ie=[],V={};const fe="color",be="fill",Zt="bgFill",Ee=",",Jt=u.getConfig();let G={};const Qt=e=>u.common$1.sanitizeText(e,Jt),es=function(e,r=""){G[e]===void 0&&(G[e]={id:e,styles:[],textStyles:[]});const o=G[e];r!=null&&r.split(Ee).forEach(c=>{const i=c.replace(/([^;]*);/,"$1").trim();if(c.match(fe)){const l=i.replace(be,Zt).replace(fe,be);o.textStyles.push(l)}o.styles.push(i)})},ts=function(e,r=""){const o=A[e];r!=null&&(o.styles=r.split(Ee))},ss=function(e,r){e.split(",").forEach(function(o){let c=A[o];if(c===void 0){const i=o.trim();A[i]={id:i,type:"na",children:[]},c=A[i]}c.classes||(c.classes=[]),c.classes.push(r)})},we=(e,r)=>{const o=e.flat(),c=[];for(const i of o){if(i.label&&(i.label=Qt(i.label)),i.type==="classDef"){es(i.id,i.css);continue}if(i.type==="applyClass"){ss(i.id,(i==null?void 0:i.styleClass)||"");continue}if(i.type==="applyStyles"){i!=null&&i.stylesStr&&ts(i.id,i==null?void 0:i.stylesStr);continue}if(i.type==="column-setting")r.columns=i.columns||-1;else if(i.type==="edge")V[i.id]?V[i.id]++:V[i.id]=1,i.id=V[i.id]+"-"+i.id,ie.push(i);else{i.label||(i.type==="composite"?i.label="":i.label=i.id);const h=!A[i.id];if(h?A[i.id]=i:(i.type!=="na"&&(A[i.id].type=i.type),i.label!==i.id&&(A[i.id].label=i.label)),i.children&&we(i.children,i),i.type==="space"){const l=i.width||1;for(let b=0;b<l;b++){const S=Ht(i);S.id=S.id+"-"+b,A[S.id]=S,c.push(S)}}else h&&c.push(i)}}r.children=c};let ne=[],q={id:"root",type:"composite",children:[],columns:-1};const rs=()=>{u.log$1.debug("Clear called"),u.clear(),q={id:"root",type:"composite",children:[],columns:-1},A={root:q},ne=[],G={},ie=[],V={}};function is(e){switch(u.log$1.debug("typeStr2Type",e),e){case"[]":return"square";case"()":return u.log$1.debug("we have a round"),"round";case"(())":return"circle";case">]":return"rect_left_inv_arrow";case"{}":return"diamond";case"{{}}":return"hexagon";case"([])":return"stadium";case"[[]]":return"subroutine";case"[()]":return"cylinder";case"((()))":return"doublecircle";case"[//]":return"lean_right";case"[\\\\]":return"lean_left";case"[/\\]":return"trapezoid";case"[\\/]":return"inv_trapezoid";case"<[]>":return"block_arrow";default:return"na"}}function ns(e){switch(u.log$1.debug("typeStr2Type",e),e){case"==":return"thick";default:return"normal"}}function as(e){switch(e.trim()){case"--x":return"arrow_cross";case"--o":return"arrow_circle";default:return"arrow_point"}}let Se=0;const os=()=>(Se++,"id-"+Math.random().toString(36).substr(2,12)+"-"+Se),ls=e=>{q.children=e,we(e,q),ne=q.children},cs=e=>{const r=A[e];return r?r.columns?r.columns:r.children?r.children.length:-1:-1},us=()=>[...Object.values(A)],gs=()=>ne||[],ds=()=>ie,hs=e=>A[e],ps=e=>{A[e.id]=e},fs=()=>console,bs=function(){return G},Ss={getConfig:()=>u.getConfig$1().block,typeStr2Type:is,edgeTypeStr2Type:ns,edgeStrToEdgeData:as,getLogger:fs,getBlocksFlat:us,getBlocks:gs,getEdges:ds,setHierarchy:ls,getBlock:hs,setBlock:ps,getColumns:cs,getClasses:bs,clear:rs,generateId:os},xs=Ss,$=(e,r)=>{const o=Ae.channel,c=o(e,"r"),i=o(e,"g"),h=o(e,"b");return u.rgba(c,i,h,r)},Ls=e=>`.label {
7
- font-family: ${e.fontFamily};
8
- color: ${e.nodeTextColor||e.textColor};
9
- }
10
- .cluster-label text {
11
- fill: ${e.titleColor};
12
- }
13
- .cluster-label span,p {
14
- color: ${e.titleColor};
15
- }
16
-
17
-
18
-
19
- .label text,span,p {
20
- fill: ${e.nodeTextColor||e.textColor};
21
- color: ${e.nodeTextColor||e.textColor};
22
- }
23
-
24
- .node rect,
25
- .node circle,
26
- .node ellipse,
27
- .node polygon,
28
- .node path {
29
- fill: ${e.mainBkg};
30
- stroke: ${e.nodeBorder};
31
- stroke-width: 1px;
32
- }
33
- .flowchart-label text {
34
- text-anchor: middle;
35
- }
36
- // .flowchart-label .text-outer-tspan {
37
- // text-anchor: middle;
38
- // }
39
- // .flowchart-label .text-inner-tspan {
40
- // text-anchor: start;
41
- // }
42
-
43
- .node .label {
44
- text-align: center;
45
- }
46
- .node.clickable {
47
- cursor: pointer;
48
- }
49
-
50
- .arrowheadPath {
51
- fill: ${e.arrowheadColor};
52
- }
53
-
54
- .edgePath .path {
55
- stroke: ${e.lineColor};
56
- stroke-width: 2.0px;
57
- }
58
-
59
- .flowchart-link {
60
- stroke: ${e.lineColor};
61
- fill: none;
62
- }
63
-
64
- .edgeLabel {
65
- background-color: ${e.edgeLabelBackground};
66
- rect {
67
- opacity: 0.5;
68
- background-color: ${e.edgeLabelBackground};
69
- fill: ${e.edgeLabelBackground};
70
- }
71
- text-align: center;
72
- }
73
-
74
- /* For html labels only */
75
- .labelBkg {
76
- background-color: ${$(e.edgeLabelBackground,.5)};
77
- // background-color:
78
- }
79
-
80
- .node .cluster {
81
- // fill: ${$(e.mainBkg,.5)};
82
- fill: ${$(e.clusterBkg,.5)};
83
- stroke: ${$(e.clusterBorder,.2)};
84
- box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
85
- stroke-width: 1px;
86
- }
87
-
88
- .cluster text {
89
- fill: ${e.titleColor};
90
- }
91
-
92
- .cluster span,p {
93
- color: ${e.titleColor};
94
- }
95
- /* .cluster div {
96
- color: ${e.titleColor};
97
- } */
98
-
99
- div.mermaidTooltip {
100
- position: absolute;
101
- text-align: center;
102
- max-width: 200px;
103
- padding: 2px;
104
- font-family: ${e.fontFamily};
105
- font-size: 12px;
106
- background: ${e.tertiaryColor};
107
- border: 1px solid ${e.border2};
108
- border-radius: 2px;
109
- pointer-events: none;
110
- z-index: 100;
111
- }
112
-
113
- .flowchartTitleText {
114
- text-anchor: middle;
115
- font-size: 18px;
116
- fill: ${e.textColor};
117
- }
118
- `,ys=Ls;function ve(e,r,o=!1){var c,i,h;const l=e;let b="default";(((c=l==null?void 0:l.classes)==null?void 0:c.length)||0)>0&&(b=((l==null?void 0:l.classes)||[]).join(" ")),b=b+" flowchart-label";let S=0,f="",x;switch(l.type){case"round":S=5,f="rect";break;case"composite":S=0,f="composite",x=0;break;case"square":f="rect";break;case"diamond":f="question";break;case"hexagon":f="hexagon";break;case"block_arrow":f="block_arrow";break;case"odd":f="rect_left_inv_arrow";break;case"lean_right":f="lean_right";break;case"lean_left":f="lean_left";break;case"trapezoid":f="trapezoid";break;case"inv_trapezoid":f="inv_trapezoid";break;case"rect_left_inv_arrow":f="rect_left_inv_arrow";break;case"circle":f="circle";break;case"ellipse":f="ellipse";break;case"stadium":f="stadium";break;case"subroutine":f="subroutine";break;case"cylinder":f="cylinder";break;case"group":f="rect";break;case"doublecircle":f="doublecircle";break;default:f="rect"}const w=u.getStylesFromArray((l==null?void 0:l.styles)||[]),k=l.label,D=l.size||{width:0,height:0,x:0,y:0};return{labelStyle:w.labelStyle,shape:f,labelText:k,rx:S,ry:S,class:b,style:w.style,id:l.id,directions:l.directions,width:D.width,height:D.height,x:D.x,y:D.y,positioned:o,intersect:void 0,type:l.type,padding:x??(((h=(i=u.getConfig$1())==null?void 0:i.block)==null?void 0:h.padding)||0)}}async function ms(e,r,o){const c=ve(r,o,!1);if(c.type==="group")return;const i=await U.insertNode(e,c),h=i.node().getBBox(),l=o.getBlock(c.id);l.size={width:h.width,height:h.height,x:0,y:0,node:i},o.setBlock(l),i.remove()}async function _s(e,r,o){const c=ve(r,o,!0);o.getBlock(c.id).type!=="space"&&(await U.insertNode(e,c),r.intersect=c==null?void 0:c.intersect,U.positionNode(c))}async function ae(e,r,o,c){for(const i of r)await c(e,i,o),i.children&&await ae(e,i.children,o,c)}async function Es(e,r,o){await ae(e,r,o,ms)}async function ws(e,r,o){await ae(e,r,o,_s)}async function vs(e,r,o,c,i){const h=new Ie.Graph({multigraph:!0,compound:!0});h.setGraph({rankdir:"TB",nodesep:10,ranksep:10,marginx:8,marginy:8});for(const l of o)l.size&&h.setNode(l.id,{width:l.size.width,height:l.size.height,intersect:l.intersect});for(const l of r)if(l.start&&l.end){const b=c.getBlock(l.start),S=c.getBlock(l.end);if(b!=null&&b.size&&(S!=null&&S.size)){const f=b.size,x=S.size,w=[{x:f.x,y:f.y},{x:f.x+(x.x-f.x)/2,y:f.y+(x.y-f.y)/2},{x:x.x,y:x.y}];await U.insertEdge(e,{v:l.start,w:l.end,name:l.id},{...l,arrowTypeEnd:l.arrowTypeEnd,arrowTypeStart:l.arrowTypeStart,points:w,classes:"edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"},void 0,"block",h,i),l.label&&(await U.insertEdgeLabel(e,{...l,label:l.label,labelStyle:"stroke: #333; stroke-width: 1.5px;fill:none;",arrowTypeEnd:l.arrowTypeEnd,arrowTypeStart:l.arrowTypeStart}),await U.positionEdgeLabel({...l,x:w[1].x,y:w[1].y},{originalPath:w}))}}}const v=((pe=(he=u.getConfig())==null?void 0:he.block)==null?void 0:pe.padding)||8;function Ds(e,r){if(e===0||!Number.isInteger(e))throw new Error("Columns must be an integer !== 0.");if(r<0||!Number.isInteger(r))throw new Error("Position must be a non-negative integer."+r);if(e<0)return{px:r,py:0};if(e===1)return{px:0,py:r};const o=r%e,c=Math.floor(r/e);return{px:o,py:c}}const Ts=e=>{let r=0,o=0;for(const c of e.children){const{width:i,height:h,x:l,y:b}=c.size||{width:0,height:0,x:0,y:0};u.log$1.debug("getMaxChildSize abc95 child:",c.id,"width:",i,"height:",h,"x:",l,"y:",b,c.type),c.type!=="space"&&(i>r&&(r=i/(e.widthInColumns||1)),h>o&&(o=h))}return{width:r,height:o}};function re(e,r,o=0,c=0){var i,h,l,b,S,f,x,w,k,D,_;u.log$1.debug("setBlockSizes abc95 (start)",e.id,(i=e==null?void 0:e.size)==null?void 0:i.x,"block width =",e==null?void 0:e.size,"sieblingWidth",o),(h=e==null?void 0:e.size)!=null&&h.width||(e.size={width:o,height:c,x:0,y:0});let L=0,m=0;if(((l=e.children)==null?void 0:l.length)>0){for(const p of e.children)re(p,r);const R=Ts(e);L=R.width,m=R.height,u.log$1.debug("setBlockSizes abc95 maxWidth of",e.id,":s children is ",L,m);for(const p of e.children)p.size&&(u.log$1.debug(`abc95 Setting size of children of ${e.id} id=${p.id} ${L} ${m} ${p.size}`),p.size.width=L*(p.widthInColumns||1)+v*((p.widthInColumns||1)-1),p.size.height=m,p.size.x=0,p.size.y=0,u.log$1.debug(`abc95 updating size of ${e.id} children child:${p.id} maxWidth:${L} maxHeight:${m}`));for(const p of e.children)re(p,r,L,m);const O=e.columns||-1;let N=0;for(const p of e.children)N+=p.widthInColumns||1;let g=e.children.length;O>0&&O<N&&(g=O),e.widthInColumns;const s=Math.ceil(N/g);let n=g*(L+v)+v,d=s*(m+v)+v;if(n<o){u.log$1.debug(`Detected to small siebling: abc95 ${e.id} sieblingWidth ${o} sieblingHeight ${c} width ${n}`),n=o,d=c;const p=(o-g*v-v)/g,t=(c-s*v-v)/s;u.log$1.debug("Size indata abc88",e.id,"childWidth",p,"maxWidth",L),u.log$1.debug("Size indata abc88",e.id,"childHeight",t,"maxHeight",m),u.log$1.debug("Size indata abc88 xSize",g,"padding",v);for(const E of e.children)E.size&&(E.size.width=p,E.size.height=t,E.size.x=0,E.size.y=0)}if(u.log$1.debug(`abc95 (finale calc) ${e.id} xSize ${g} ySize ${s} columns ${O}${e.children.length} width=${Math.max(n,((b=e.size)==null?void 0:b.width)||0)}`),n<(((S=e==null?void 0:e.size)==null?void 0:S.width)||0)){n=((f=e==null?void 0:e.size)==null?void 0:f.width)||0;const p=O>0?Math.min(e.children.length,O):e.children.length;if(p>0){const t=(n-p*v-v)/p;u.log$1.debug("abc95 (growing to fit) width",e.id,n,(x=e.size)==null?void 0:x.width,t);for(const E of e.children)E.size&&(E.size.width=t)}}e.size={width:n,height:d,x:0,y:0}}u.log$1.debug("setBlockSizes abc94 (done)",e.id,(w=e==null?void 0:e.size)==null?void 0:w.x,(k=e==null?void 0:e.size)==null?void 0:k.width,(D=e==null?void 0:e.size)==null?void 0:D.y,(_=e==null?void 0:e.size)==null?void 0:_.height)}function De(e,r){var o,c,i,h,l,b,S,f,x,w,k,D,_,L,m,R,O;u.log$1.debug(`abc85 layout blocks (=>layoutBlocks) ${e.id} x: ${(o=e==null?void 0:e.size)==null?void 0:o.x} y: ${(c=e==null?void 0:e.size)==null?void 0:c.y} width: ${(i=e==null?void 0:e.size)==null?void 0:i.width}`);const N=e.columns||-1;if(u.log$1.debug("layoutBlocks columns abc95",e.id,"=>",N,e),e.children&&e.children.length>0){const g=((l=(h=e==null?void 0:e.children[0])==null?void 0:h.size)==null?void 0:l.width)||0,s=e.children.length*g+(e.children.length-1)*v;u.log$1.debug("widthOfChildren 88",s,"posX");let n=0;u.log$1.debug("abc91 block?.size?.x",e.id,(b=e==null?void 0:e.size)==null?void 0:b.x);let d=(S=e==null?void 0:e.size)!=null&&S.x?((f=e==null?void 0:e.size)==null?void 0:f.x)+(-((x=e==null?void 0:e.size)==null?void 0:x.width)/2||0):-v,p=0;for(const t of e.children){const E=e;if(!t.size)continue;const{width:a,height:B}=t.size,{px:Y,py:F}=Ds(N,n);if(F!=p&&(p=F,d=(w=e==null?void 0:e.size)!=null&&w.x?((k=e==null?void 0:e.size)==null?void 0:k.x)+(-((D=e==null?void 0:e.size)==null?void 0:D.width)/2||0):-v,u.log$1.debug("New row in layout for block",e.id," and child ",t.id,p)),u.log$1.debug(`abc89 layout blocks (child) id: ${t.id} Pos: ${n} (px, py) ${Y},${F} (${(_=E==null?void 0:E.size)==null?void 0:_.x},${(L=E==null?void 0:E.size)==null?void 0:L.y}) parent: ${E.id} width: ${a}${v}`),E.size){const z=a/2;t.size.x=d+v+z,u.log$1.debug(`abc91 layout blocks (calc) px, pyid:${t.id} startingPos=X${d} new startingPosX${t.size.x} ${z} padding=${v} width=${a} halfWidth=${z} => x:${t.size.x} y:${t.size.y} ${t.widthInColumns} (width * (child?.w || 1)) / 2 ${a*((t==null?void 0:t.widthInColumns)||1)/2}`),d=t.size.x+z,t.size.y=E.size.y-E.size.height/2+F*(B+v)+B/2+v,u.log$1.debug(`abc88 layout blocks (calc) px, pyid:${t.id}startingPosX${d}${v}${z}=>x:${t.size.x}y:${t.size.y}${t.widthInColumns}(width * (child?.w || 1)) / 2${a*((t==null?void 0:t.widthInColumns)||1)/2}`)}t.children&&De(t),n+=(t==null?void 0:t.widthInColumns)||1,u.log$1.debug("abc88 columnsPos",t,n)}}u.log$1.debug(`layout blocks (<==layoutBlocks) ${e.id} x: ${(m=e==null?void 0:e.size)==null?void 0:m.x} y: ${(R=e==null?void 0:e.size)==null?void 0:R.y} width: ${(O=e==null?void 0:e.size)==null?void 0:O.width}`)}function Te(e,{minX:r,minY:o,maxX:c,maxY:i}={minX:0,minY:0,maxX:0,maxY:0}){if(e.size&&e.id!=="root"){const{x:h,y:l,width:b,height:S}=e.size;h-b/2<r&&(r=h-b/2),l-S/2<o&&(o=l-S/2),h+b/2>c&&(c=h+b/2),l+S/2>i&&(i=l+S/2)}if(e.children)for(const h of e.children)({minX:r,minY:o,maxX:c,maxY:i}=Te(h,{minX:r,minY:o,maxX:c,maxY:i}));return{minX:r,minY:o,maxX:c,maxY:i}}function Ns(e){const r=e.getBlock("root");if(!r)return;re(r,e,0,0),De(r),u.log$1.debug("getBlocks",JSON.stringify(r,null,2));const{minX:o,minY:c,maxX:i,maxY:h}=Te(r),l=h-c,b=i-o;return{x:o,y:c,width:b,height:l}}const Os=function(e,r){return r.db.getClasses()},ks=async function(e,r,o,c){const{securityLevel:i,block:h}=u.getConfig$1(),l=c.db;let b;i==="sandbox"&&(b=u.select("#i"+r));const S=i==="sandbox"?u.select(b.nodes()[0].contentDocument.body):u.select("body"),f=i==="sandbox"?S.select(`[id="${r}"]`):u.select(`[id="${r}"]`),x=["point","circle","cross"];U.insertMarkers$1(f,x,c.type,r);const w=l.getBlocks(),k=l.getBlocksFlat(),D=l.getEdges(),_=f.insert("g").attr("class","block");await Es(_,w,l);const L=Ns(l);if(await ws(_,w,l),await vs(_,D,k,l,r),L){const m=L,R=Math.max(1,Math.round(.125*(m.width/m.height))),O=m.height+R+10,N=m.width+10,{useMaxWidth:g}=h;u.configureSvgSize(f,O,N,!!g),u.log$1.debug("Here Bounds",L,m),f.attr("viewBox",`${m.x-5} ${m.y-5} ${m.width+10} ${m.height+10}`)}Ce.ordinal(ze.schemeTableau10)},Is={draw:ks,getClasses:Os},As={parser:$t,db:xs,renderer:Is,styles:ys};exports.diagram=As;
@@ -1,257 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Tn=require("./layers.DbaFHCy4.js"),_=require("./layers.C5S1nV4u.js"),ye=require("./layers.T5uHQrKR.js"),Dt=require("./layers.DtKOvFUG.js"),vn=require("./layers.CHZsXQcr.js");function xn(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function bn(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function wn(t){return t}var qt=1,te=2,ue=3,Rt=4,_e=1e-6;function Cn(t){return"translate("+t+",0)"}function Dn(t){return"translate(0,"+t+")"}function Mn(t){return e=>+t(e)}function Sn(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function _n(){return!this.__axis}function je(t,e){var n=[],r=null,i=null,s=6,a=6,y=3,S=typeof window<"u"&&window.devicePixelRatio>1?0:.5,p=t===qt||t===Rt?-1:1,g=t===Rt||t===te?"x":"y",A=t===qt||t===ue?Cn:Dn;function w(T){var X=r??(e.ticks?e.ticks.apply(e,n):e.domain()),I=i??(e.tickFormat?e.tickFormat.apply(e,n):wn),D=Math.max(s,0)+y,E=e.range(),N=+E[0]+S,L=+E[E.length-1]+S,B=(e.bandwidth?Sn:Mn)(e.copy(),S),Q=T.selection?T.selection():T,x=Q.selectAll(".domain").data([null]),O=Q.selectAll(".tick").data(X,e).order(),v=O.exit(),U=O.enter().append("g").attr("class","tick"),F=O.select("line"),b=O.select("text");x=x.merge(x.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),O=O.merge(U),F=F.merge(U.append("line").attr("stroke","currentColor").attr(g+"2",p*s)),b=b.merge(U.append("text").attr("fill","currentColor").attr(g,p*D).attr("dy",t===qt?"0em":t===ue?"0.71em":"0.32em")),T!==Q&&(x=x.transition(T),O=O.transition(T),F=F.transition(T),b=b.transition(T),v=v.transition(T).attr("opacity",_e).attr("transform",function(o){return isFinite(o=B(o))?A(o+S):this.getAttribute("transform")}),U.attr("opacity",_e).attr("transform",function(o){var f=this.parentNode.__axis;return A((f&&isFinite(f=f(o))?f:B(o))+S)})),v.remove(),x.attr("d",t===Rt||t===te?a?"M"+p*a+","+N+"H"+S+"V"+L+"H"+p*a:"M"+S+","+N+"V"+L:a?"M"+N+","+p*a+"V"+S+"H"+L+"V"+p*a:"M"+N+","+S+"H"+L),O.attr("opacity",1).attr("transform",function(o){return A(B(o)+S)}),F.attr(g+"2",p*s),b.attr(g,p*D).text(I),Q.filter(_n).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===te?"start":t===Rt?"end":"middle"),Q.each(function(){this.__axis=B})}return w.scale=function(T){return arguments.length?(e=T,w):e},w.ticks=function(){return n=Array.from(arguments),w},w.tickArguments=function(T){return arguments.length?(n=T==null?[]:Array.from(T),w):n.slice()},w.tickValues=function(T){return arguments.length?(r=T==null?null:Array.from(T),w):r&&r.slice()},w.tickFormat=function(T){return arguments.length?(i=T,w):i},w.tickSize=function(T){return arguments.length?(s=a=+T,w):s},w.tickSizeInner=function(T){return arguments.length?(s=+T,w):s},w.tickSizeOuter=function(T){return arguments.length?(a=+T,w):a},w.tickPadding=function(T){return arguments.length?(y=+T,w):y},w.offset=function(T){return arguments.length?(S=+T,w):S},w}function Fn(t){return je(qt,t)}function Yn(t){return je(ue,t)}const Un=Math.PI/180,An=180/Math.PI,Gt=18,Be=.96422,Ze=1,Xe=.82521,$e=4/29,Mt=6/29,Ge=3*Mt*Mt,En=Mt*Mt*Mt;function Qe(t){if(t instanceof st)return new st(t.l,t.a,t.b,t.opacity);if(t instanceof ft)return Je(t);t instanceof _.Rgb||(t=_.rgbConvert(t));var e=ie(t.r),n=ie(t.g),r=ie(t.b),i=ee((.2225045*e+.7168786*n+.0606169*r)/Ze),s,a;return e===n&&n===r?s=a=i:(s=ee((.4360747*e+.3850649*n+.1430804*r)/Be),a=ee((.0139322*e+.0971045*n+.7141733*r)/Xe)),new st(116*i-16,500*(s-i),200*(i-a),t.opacity)}function Ln(t,e,n,r){return arguments.length===1?Qe(t):new st(t,e,n,r??1)}function st(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}_.define(st,Ln,_.extend(_.Color$1,{brighter(t){return new st(this.l+Gt*(t??1),this.a,this.b,this.opacity)},darker(t){return new st(this.l-Gt*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=Be*ne(e),t=Ze*ne(t),n=Xe*ne(n),new _.Rgb(re(3.1338561*e-1.6168667*t-.4906146*n),re(-.9787684*e+1.9161415*t+.033454*n),re(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}}));function ee(t){return t>En?Math.pow(t,1/3):t/Ge+$e}function ne(t){return t>Mt?t*t*t:Ge*(t-$e)}function re(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function ie(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Wn(t){if(t instanceof ft)return new ft(t.h,t.c,t.l,t.opacity);if(t instanceof st||(t=Qe(t)),t.a===0&&t.b===0)return new ft(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*An;return new ft(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function fe(t,e,n,r){return arguments.length===1?Wn(t):new ft(t,e,n,r??1)}function ft(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}function Je(t){if(isNaN(t.h))return new st(t.l,0,0,t.opacity);var e=t.h*Un;return new st(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}_.define(ft,fe,_.extend(_.Color$1,{brighter(t){return new ft(this.h,this.c,this.l+Gt*(t??1),this.opacity)},darker(t){return new ft(this.h,this.c,this.l-Gt*(t??1),this.opacity)},rgb(){return Je(this).rgb()}}));function In(t){return function(e,n){var r=t((e=fe(e)).h,(n=fe(n)).h),i=_.nogamma(e.c,n.c),s=_.nogamma(e.l,n.l),a=_.nogamma(e.opacity,n.opacity);return function(y){return e.h=r(y),e.c=i(y),e.l=s(y),e.opacity=a(y),e+""}}}const On=In(_.hue);function Hn(t,e){t=t.slice();var n=0,r=t.length-1,i=t[n],s=t[r],a;return s<i&&(a=n,n=r,r=a,a=i,i=s,s=a),t[n]=e.floor(i),t[r]=e.ceil(s),t}const se=new Date,ae=new Date;function et(t,e,n,r){function i(s){return t(s=arguments.length===0?new Date:new Date(+s)),s}return i.floor=s=>(t(s=new Date(+s)),s),i.ceil=s=>(t(s=new Date(s-1)),e(s,1),t(s),s),i.round=s=>{const a=i(s),y=i.ceil(s);return s-a<y-s?a:y},i.offset=(s,a)=>(e(s=new Date(+s),a==null?1:Math.floor(a)),s),i.range=(s,a,y)=>{const S=[];if(s=i.ceil(s),y=y==null?1:Math.floor(y),!(s<a)||!(y>0))return S;let p;do S.push(p=new Date(+s)),e(s,y),t(s);while(p<s&&s<a);return S},i.filter=s=>et(a=>{if(a>=a)for(;t(a),!s(a);)a.setTime(a-1)},(a,y)=>{if(a>=a)if(y<0)for(;++y<=0;)for(;e(a,-1),!s(a););else for(;--y>=0;)for(;e(a,1),!s(a););}),n&&(i.count=(s,a)=>(se.setTime(+s),ae.setTime(+a),t(se),t(ae),Math.floor(n(se,ae))),i.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?i.filter(r?a=>r(a)%s===0:a=>i.count(0,a)%s===0):i)),i}const _t=et(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);_t.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?et(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):_t);_t.range;const ht=1e3,rt=ht*60,dt=rt*60,mt=dt*24,ke=mt*7,Fe=mt*30,oe=mt*365,kt=et(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*ht)},(t,e)=>(e-t)/ht,t=>t.getUTCSeconds());kt.range;const Lt=et(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*ht)},(t,e)=>{t.setTime(+t+e*rt)},(t,e)=>(e-t)/rt,t=>t.getMinutes());Lt.range;const Nn=et(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*rt)},(t,e)=>(e-t)/rt,t=>t.getUTCMinutes());Nn.range;const Wt=et(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*ht-t.getMinutes()*rt)},(t,e)=>{t.setTime(+t+e*dt)},(t,e)=>(e-t)/dt,t=>t.getHours());Wt.range;const Pn=et(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*dt)},(t,e)=>(e-t)/dt,t=>t.getUTCHours());Pn.range;const pt=et(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*rt)/mt,t=>t.getDate()-1);pt.range;const pe=et(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/mt,t=>t.getUTCDate()-1);pe.range;const Vn=et(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/mt,t=>Math.floor(t/mt));Vn.range;function xt(t){return et(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+n*7)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*rt)/ke)}const Ht=xt(0),It=xt(1),Ke=xt(2),tn=xt(3),Tt=xt(4),en=xt(5),nn=xt(6);Ht.range;It.range;Ke.range;tn.range;Tt.range;en.range;nn.range;function bt(t){return et(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n*7)},(e,n)=>(n-e)/ke)}const rn=bt(0),Qt=bt(1),zn=bt(2),Rn=bt(3),Ft=bt(4),qn=bt(5),jn=bt(6);rn.range;Qt.range;zn.range;Rn.range;Ft.range;qn.range;jn.range;const Ot=et(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());Ot.range;const Bn=et(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());Bn.range;const gt=et(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());gt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:et(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)});gt.range;const vt=et(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());vt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:et(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)});vt.range;function Zn(t,e,n,r,i,s){const a=[[kt,1,ht],[kt,5,5*ht],[kt,15,15*ht],[kt,30,30*ht],[s,1,rt],[s,5,5*rt],[s,15,15*rt],[s,30,30*rt],[i,1,dt],[i,3,3*dt],[i,6,6*dt],[i,12,12*dt],[r,1,mt],[r,2,2*mt],[n,1,ke],[e,1,Fe],[e,3,3*Fe],[t,1,oe]];function y(p,g,A){const w=g<p;w&&([p,g]=[g,p]);const T=A&&typeof A.range=="function"?A:S(p,g,A),X=T?T.range(p,+g+1):[];return w?X.reverse():X}function S(p,g,A){const w=Math.abs(g-p)/A,T=Dt.bisector(([,,D])=>D).right(a,w);if(T===a.length)return t.every(Dt.tickStep(p/oe,g/oe,A));if(T===0)return _t.every(Math.max(Dt.tickStep(p,g,A),1));const[X,I]=a[w/a[T-1][2]<a[T][2]/w?T-1:T];return X.every(I)}return[y,S]}const[Xn,$n]=Zn(gt,Ot,Ht,pt,Wt,Lt);function ce(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function le(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Ut(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function Gn(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,s=t.days,a=t.shortDays,y=t.months,S=t.shortMonths,p=At(i),g=Et(i),A=At(s),w=Et(s),T=At(a),X=Et(a),I=At(y),D=Et(y),E=At(S),N=Et(S),L={a:c,A:$,b:d,B:h,c:null,d:We,e:We,f:Tr,g:Fr,G:Ur,H:yr,I:kr,j:pr,L:sn,m:vr,M:xr,p:C,q:Z,Q:He,s:Ne,S:br,u:wr,U:Cr,V:Dr,w:Mr,W:Sr,x:null,X:null,y:_r,Y:Yr,Z:Ar,"%":Oe},B={a:H,A:z,b:P,B:R,c:null,d:Ie,e:Ie,f:Ir,g:Br,G:Xr,H:Er,I:Lr,j:Wr,L:on,m:Or,M:Hr,p:at,q:ot,Q:He,s:Ne,S:Nr,u:Pr,U:Vr,V:zr,w:Rr,W:qr,x:null,X:null,y:jr,Y:Zr,Z:$r,"%":Oe},Q={a:F,A:b,b:o,B:f,c:m,d:Ee,e:Ee,f:hr,g:Ae,G:Ue,H:Le,I:Le,j:cr,L:fr,m:or,M:lr,p:U,q:ar,Q:mr,s:gr,S:ur,u:er,U:nr,V:rr,w:tr,W:ir,x:u,X:M,y:Ae,Y:Ue,Z:sr,"%":dr};L.x=x(n,L),L.X=x(r,L),L.c=x(e,L),B.x=x(n,B),B.X=x(r,B),B.c=x(e,B);function x(k,W){return function(Y){var l=[],j=-1,V=0,G=k.length,J,K,ct;for(Y instanceof Date||(Y=new Date(+Y));++j<G;)k.charCodeAt(j)===37&&(l.push(k.slice(V,j)),(K=Ye[J=k.charAt(++j)])!=null?J=k.charAt(++j):K=J==="e"?" ":"0",(ct=W[J])&&(J=ct(Y,K)),l.push(J),V=j+1);return l.push(k.slice(V,j)),l.join("")}}function O(k,W){return function(Y){var l=Ut(1900,void 0,1),j=v(l,k,Y+="",0),V,G;if(j!=Y.length)return null;if("Q"in l)return new Date(l.Q);if("s"in l)return new Date(l.s*1e3+("L"in l?l.L:0));if(W&&!("Z"in l)&&(l.Z=0),"p"in l&&(l.H=l.H%12+l.p*12),l.m===void 0&&(l.m="q"in l?l.q:0),"V"in l){if(l.V<1||l.V>53)return null;"w"in l||(l.w=1),"Z"in l?(V=le(Ut(l.y,0,1)),G=V.getUTCDay(),V=G>4||G===0?Qt.ceil(V):Qt(V),V=pe.offset(V,(l.V-1)*7),l.y=V.getUTCFullYear(),l.m=V.getUTCMonth(),l.d=V.getUTCDate()+(l.w+6)%7):(V=ce(Ut(l.y,0,1)),G=V.getDay(),V=G>4||G===0?It.ceil(V):It(V),V=pt.offset(V,(l.V-1)*7),l.y=V.getFullYear(),l.m=V.getMonth(),l.d=V.getDate()+(l.w+6)%7)}else("W"in l||"U"in l)&&("w"in l||(l.w="u"in l?l.u%7:"W"in l?1:0),G="Z"in l?le(Ut(l.y,0,1)).getUTCDay():ce(Ut(l.y,0,1)).getDay(),l.m=0,l.d="W"in l?(l.w+6)%7+l.W*7-(G+5)%7:l.w+l.U*7-(G+6)%7);return"Z"in l?(l.H+=l.Z/100|0,l.M+=l.Z%100,le(l)):ce(l)}}function v(k,W,Y,l){for(var j=0,V=W.length,G=Y.length,J,K;j<V;){if(l>=G)return-1;if(J=W.charCodeAt(j++),J===37){if(J=W.charAt(j++),K=Q[J in Ye?W.charAt(j++):J],!K||(l=K(k,Y,l))<0)return-1}else if(J!=Y.charCodeAt(l++))return-1}return l}function U(k,W,Y){var l=p.exec(W.slice(Y));return l?(k.p=g.get(l[0].toLowerCase()),Y+l[0].length):-1}function F(k,W,Y){var l=T.exec(W.slice(Y));return l?(k.w=X.get(l[0].toLowerCase()),Y+l[0].length):-1}function b(k,W,Y){var l=A.exec(W.slice(Y));return l?(k.w=w.get(l[0].toLowerCase()),Y+l[0].length):-1}function o(k,W,Y){var l=E.exec(W.slice(Y));return l?(k.m=N.get(l[0].toLowerCase()),Y+l[0].length):-1}function f(k,W,Y){var l=I.exec(W.slice(Y));return l?(k.m=D.get(l[0].toLowerCase()),Y+l[0].length):-1}function m(k,W,Y){return v(k,e,W,Y)}function u(k,W,Y){return v(k,n,W,Y)}function M(k,W,Y){return v(k,r,W,Y)}function c(k){return a[k.getDay()]}function $(k){return s[k.getDay()]}function d(k){return S[k.getMonth()]}function h(k){return y[k.getMonth()]}function C(k){return i[+(k.getHours()>=12)]}function Z(k){return 1+~~(k.getMonth()/3)}function H(k){return a[k.getUTCDay()]}function z(k){return s[k.getUTCDay()]}function P(k){return S[k.getUTCMonth()]}function R(k){return y[k.getUTCMonth()]}function at(k){return i[+(k.getUTCHours()>=12)]}function ot(k){return 1+~~(k.getUTCMonth()/3)}return{format:function(k){var W=x(k+="",L);return W.toString=function(){return k},W},parse:function(k){var W=O(k+="",!1);return W.toString=function(){return k},W},utcFormat:function(k){var W=x(k+="",B);return W.toString=function(){return k},W},utcParse:function(k){var W=O(k+="",!0);return W.toString=function(){return k},W}}}var Ye={"-":"",_:" ",0:"0"},nt=/^\s*\d+/,Qn=/^%/,Jn=/[\\^$*+?|[\]().{}]/g;function q(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",s=i.length;return r+(s<n?new Array(n-s+1).join(e)+i:i)}function Kn(t){return t.replace(Jn,"\\$&")}function At(t){return new RegExp("^(?:"+t.map(Kn).join("|")+")","i")}function Et(t){return new Map(t.map((e,n)=>[e.toLowerCase(),n]))}function tr(t,e,n){var r=nt.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function er(t,e,n){var r=nt.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function nr(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function rr(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function ir(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Ue(t,e,n){var r=nt.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Ae(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function sr(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function ar(t,e,n){var r=nt.exec(e.slice(n,n+1));return r?(t.q=r[0]*3-3,n+r[0].length):-1}function or(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Ee(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function cr(t,e,n){var r=nt.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Le(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function lr(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function ur(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function fr(t,e,n){var r=nt.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function hr(t,e,n){var r=nt.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function dr(t,e,n){var r=Qn.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function mr(t,e,n){var r=nt.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function gr(t,e,n){var r=nt.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function We(t,e){return q(t.getDate(),e,2)}function yr(t,e){return q(t.getHours(),e,2)}function kr(t,e){return q(t.getHours()%12||12,e,2)}function pr(t,e){return q(1+pt.count(gt(t),t),e,3)}function sn(t,e){return q(t.getMilliseconds(),e,3)}function Tr(t,e){return sn(t,e)+"000"}function vr(t,e){return q(t.getMonth()+1,e,2)}function xr(t,e){return q(t.getMinutes(),e,2)}function br(t,e){return q(t.getSeconds(),e,2)}function wr(t){var e=t.getDay();return e===0?7:e}function Cr(t,e){return q(Ht.count(gt(t)-1,t),e,2)}function an(t){var e=t.getDay();return e>=4||e===0?Tt(t):Tt.ceil(t)}function Dr(t,e){return t=an(t),q(Tt.count(gt(t),t)+(gt(t).getDay()===4),e,2)}function Mr(t){return t.getDay()}function Sr(t,e){return q(It.count(gt(t)-1,t),e,2)}function _r(t,e){return q(t.getFullYear()%100,e,2)}function Fr(t,e){return t=an(t),q(t.getFullYear()%100,e,2)}function Yr(t,e){return q(t.getFullYear()%1e4,e,4)}function Ur(t,e){var n=t.getDay();return t=n>=4||n===0?Tt(t):Tt.ceil(t),q(t.getFullYear()%1e4,e,4)}function Ar(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+q(e/60|0,"0",2)+q(e%60,"0",2)}function Ie(t,e){return q(t.getUTCDate(),e,2)}function Er(t,e){return q(t.getUTCHours(),e,2)}function Lr(t,e){return q(t.getUTCHours()%12||12,e,2)}function Wr(t,e){return q(1+pe.count(vt(t),t),e,3)}function on(t,e){return q(t.getUTCMilliseconds(),e,3)}function Ir(t,e){return on(t,e)+"000"}function Or(t,e){return q(t.getUTCMonth()+1,e,2)}function Hr(t,e){return q(t.getUTCMinutes(),e,2)}function Nr(t,e){return q(t.getUTCSeconds(),e,2)}function Pr(t){var e=t.getUTCDay();return e===0?7:e}function Vr(t,e){return q(rn.count(vt(t)-1,t),e,2)}function cn(t){var e=t.getUTCDay();return e>=4||e===0?Ft(t):Ft.ceil(t)}function zr(t,e){return t=cn(t),q(Ft.count(vt(t),t)+(vt(t).getUTCDay()===4),e,2)}function Rr(t){return t.getUTCDay()}function qr(t,e){return q(Qt.count(vt(t)-1,t),e,2)}function jr(t,e){return q(t.getUTCFullYear()%100,e,2)}function Br(t,e){return t=cn(t),q(t.getUTCFullYear()%100,e,2)}function Zr(t,e){return q(t.getUTCFullYear()%1e4,e,4)}function Xr(t,e){var n=t.getUTCDay();return t=n>=4||n===0?Ft(t):Ft.ceil(t),q(t.getUTCFullYear()%1e4,e,4)}function $r(){return"+0000"}function Oe(){return"%"}function He(t){return+t}function Ne(t){return Math.floor(+t/1e3)}var Ct,Jt;Gr({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Gr(t){return Ct=Gn(t),Jt=Ct.format,Ct.parse,Ct.utcFormat,Ct.utcParse,Ct}function Qr(t){return new Date(t)}function Jr(t){return t instanceof Date?+t:+new Date(+t)}function ln(t,e,n,r,i,s,a,y,S,p){var g=Dt.continuous(),A=g.invert,w=g.domain,T=p(".%L"),X=p(":%S"),I=p("%I:%M"),D=p("%I %p"),E=p("%a %d"),N=p("%b %d"),L=p("%B"),B=p("%Y");function Q(x){return(S(x)<x?T:y(x)<x?X:a(x)<x?I:s(x)<x?D:r(x)<x?i(x)<x?E:N:n(x)<x?L:B)(x)}return g.invert=function(x){return new Date(A(x))},g.domain=function(x){return arguments.length?w(Array.from(x,Jr)):w().map(Qr)},g.ticks=function(x){var O=w();return t(O[0],O[O.length-1],x??10)},g.tickFormat=function(x,O){return O==null?Q:p(O)},g.nice=function(x){var O=w();return(!x||typeof x.range!="function")&&(x=e(O[0],O[O.length-1],x??10)),x?w(Hn(O,x)):g},g.copy=function(){return Dt.copy(g,ln(t,e,n,r,i,s,a,y,S,p))},g}function Kr(){return vn.initRange.apply(ln(Xn,$n,gt,Ot,Ht,pt,Wt,Lt,kt,Jt).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var jt={exports:{}},ti=jt.exports,Pe;function ei(){return Pe||(Pe=1,(function(t,e){(function(n,r){t.exports=r()})(ti,(function(){var n="day";return function(r,i,s){var a=function(p){return p.add(4-p.isoWeekday(),n)},y=i.prototype;y.isoWeekYear=function(){return a(this).year()},y.isoWeek=function(p){if(!this.$utils().u(p))return this.add(7*(p-this.isoWeek()),n);var g,A,w,T,X=a(this),I=(g=this.isoWeekYear(),A=this.$u,w=(A?s.utc:s)().year(g).startOf("year"),T=4-w.isoWeekday(),w.isoWeekday()>4&&(T+=7),w.add(T,n));return X.diff(I,"week")+1},y.isoWeekday=function(p){return this.$utils().u(p)?this.day()||7:this.day(this.day()%7?p:p-7)};var S=y.startOf;y.startOf=function(p,g){var A=this.$utils(),w=!!A.u(g)||g;return A.p(p)==="isoweek"?w?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):S.bind(this)(p,g)}}}))})(jt)),jt.exports}var ni=ei();const ri=ye.getDefaultExportFromCjs(ni);var Bt={exports:{}},ii=Bt.exports,Ve;function si(){return Ve||(Ve=1,(function(t,e){(function(n,r){t.exports=r()})(ii,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d/,s=/\d\d/,a=/\d\d?/,y=/\d*[^-_:/,()\s\d]+/,S={},p=function(D){return(D=+D)+(D>68?1900:2e3)},g=function(D){return function(E){this[D]=+E}},A=[/[+-]\d\d:?(\d\d)?|Z/,function(D){(this.zone||(this.zone={})).offset=(function(E){if(!E||E==="Z")return 0;var N=E.match(/([+-]|\d\d)/g),L=60*N[1]+(+N[2]||0);return L===0?0:N[0]==="+"?-L:L})(D)}],w=function(D){var E=S[D];return E&&(E.indexOf?E:E.s.concat(E.f))},T=function(D,E){var N,L=S.meridiem;if(L){for(var B=1;B<=24;B+=1)if(D.indexOf(L(B,0,E))>-1){N=B>12;break}}else N=D===(E?"pm":"PM");return N},X={A:[y,function(D){this.afternoon=T(D,!1)}],a:[y,function(D){this.afternoon=T(D,!0)}],Q:[i,function(D){this.month=3*(D-1)+1}],S:[i,function(D){this.milliseconds=100*+D}],SS:[s,function(D){this.milliseconds=10*+D}],SSS:[/\d{3}/,function(D){this.milliseconds=+D}],s:[a,g("seconds")],ss:[a,g("seconds")],m:[a,g("minutes")],mm:[a,g("minutes")],H:[a,g("hours")],h:[a,g("hours")],HH:[a,g("hours")],hh:[a,g("hours")],D:[a,g("day")],DD:[s,g("day")],Do:[y,function(D){var E=S.ordinal,N=D.match(/\d+/);if(this.day=N[0],E)for(var L=1;L<=31;L+=1)E(L).replace(/\[|\]/g,"")===D&&(this.day=L)}],w:[a,g("week")],ww:[s,g("week")],M:[a,g("month")],MM:[s,g("month")],MMM:[y,function(D){var E=w("months"),N=(w("monthsShort")||E.map((function(L){return L.slice(0,3)}))).indexOf(D)+1;if(N<1)throw new Error;this.month=N%12||N}],MMMM:[y,function(D){var E=w("months").indexOf(D)+1;if(E<1)throw new Error;this.month=E%12||E}],Y:[/[+-]?\d+/,g("year")],YY:[s,function(D){this.year=p(D)}],YYYY:[/\d{4}/,g("year")],Z:A,ZZ:A};function I(D){var E,N;E=D,N=S&&S.formats;for(var L=(D=E.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(F,b,o){var f=o&&o.toUpperCase();return b||N[o]||n[o]||N[f].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(m,u,M){return u||M.slice(1)}))}))).match(r),B=L.length,Q=0;Q<B;Q+=1){var x=L[Q],O=X[x],v=O&&O[0],U=O&&O[1];L[Q]=U?{regex:v,parser:U}:x.replace(/^\[|\]$/g,"")}return function(F){for(var b={},o=0,f=0;o<B;o+=1){var m=L[o];if(typeof m=="string")f+=m.length;else{var u=m.regex,M=m.parser,c=F.slice(f),$=u.exec(c)[0];M.call(b,$),F=F.replace($,"")}}return(function(d){var h=d.afternoon;if(h!==void 0){var C=d.hours;h?C<12&&(d.hours+=12):C===12&&(d.hours=0),delete d.afternoon}})(b),b}}return function(D,E,N){N.p.customParseFormat=!0,D&&D.parseTwoDigitYear&&(p=D.parseTwoDigitYear);var L=E.prototype,B=L.parse;L.parse=function(Q){var x=Q.date,O=Q.utc,v=Q.args;this.$u=O;var U=v[1];if(typeof U=="string"){var F=v[2]===!0,b=v[3]===!0,o=F||b,f=v[2];b&&(f=v[2]),S=this.$locale(),!F&&f&&(S=N.Ls[f]),this.$d=(function(c,$,d,h){try{if(["x","X"].indexOf($)>-1)return new Date(($==="X"?1e3:1)*c);var C=I($)(c),Z=C.year,H=C.month,z=C.day,P=C.hours,R=C.minutes,at=C.seconds,ot=C.milliseconds,k=C.zone,W=C.week,Y=new Date,l=z||(Z||H?1:Y.getDate()),j=Z||Y.getFullYear(),V=0;Z&&!H||(V=H>0?H-1:Y.getMonth());var G,J=P||0,K=R||0,ct=at||0,yt=ot||0;return k?new Date(Date.UTC(j,V,l,J,K,ct,yt+60*k.offset*1e3)):d?new Date(Date.UTC(j,V,l,J,K,ct,yt)):(G=new Date(j,V,l,J,K,ct,yt),W&&(G=h(G).week(W).toDate()),G)}catch{return new Date("")}})(x,U,O,N),this.init(),f&&f!==!0&&(this.$L=this.locale(f).$L),o&&x!=this.format(U)&&(this.$d=new Date("")),S={}}else if(U instanceof Array)for(var m=U.length,u=1;u<=m;u+=1){v[1]=U[u-1];var M=N.apply(this,v);if(M.isValid()){this.$d=M.$d,this.$L=M.$L,this.init();break}u===m&&(this.$d=new Date(""))}else B.call(this,Q)}}}))})(Bt)),Bt.exports}var ai=si();const oi=ye.getDefaultExportFromCjs(ai);var Zt={exports:{}},ci=Zt.exports,ze;function li(){return ze||(ze=1,(function(t,e){(function(n,r){t.exports=r()})(ci,(function(){return function(n,r){var i=r.prototype,s=i.format;i.format=function(a){var y=this,S=this.$locale();if(!this.isValid())return s.bind(this)(a);var p=this.$utils(),g=(a||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(A){switch(A){case"Q":return Math.ceil((y.$M+1)/3);case"Do":return S.ordinal(y.$D);case"gggg":return y.weekYear();case"GGGG":return y.isoWeekYear();case"wo":return S.ordinal(y.week(),"W");case"w":case"ww":return p.s(y.week(),A==="w"?1:2,"0");case"W":case"WW":return p.s(y.isoWeek(),A==="W"?1:2,"0");case"k":case"kk":return p.s(String(y.$H===0?24:y.$H),A==="k"?1:2,"0");case"X":return Math.floor(y.$d.getTime()/1e3);case"x":return y.$d.getTime();case"z":return"["+y.offsetName()+"]";case"zzz":return"["+y.offsetName("long")+"]";default:return A}}));return s.bind(this)(g)}}}))})(Zt)),Zt.exports}var ui=li();const fi=ye.getDefaultExportFromCjs(ui);var he=(function(){var t=function(b,o,f,m){for(f=f||{},m=b.length;m--;f[b[m]]=o);return f},e=[6,8,10,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,30,32,33,35,37],n=[1,25],r=[1,26],i=[1,27],s=[1,28],a=[1,29],y=[1,30],S=[1,31],p=[1,9],g=[1,10],A=[1,11],w=[1,12],T=[1,13],X=[1,14],I=[1,15],D=[1,16],E=[1,18],N=[1,19],L=[1,20],B=[1,21],Q=[1,22],x=[1,24],O=[1,32],v={trace:function(){},yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,dateFormat:19,inclusiveEndDates:20,topAxis:21,axisFormat:22,tickInterval:23,excludes:24,includes:25,todayMarker:26,title:27,acc_title:28,acc_title_value:29,acc_descr:30,acc_descr_value:31,acc_descr_multiline_value:32,section:33,clickStatement:34,taskTxt:35,taskData:36,click:37,callbackname:38,callbackargs:39,href:40,clickStatementDebug:41,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",19:"dateFormat",20:"inclusiveEndDates",21:"topAxis",22:"axisFormat",23:"tickInterval",24:"excludes",25:"includes",26:"todayMarker",27:"title",28:"acc_title",29:"acc_title_value",30:"acc_descr",31:"acc_descr_value",32:"acc_descr_multiline_value",33:"section",35:"taskTxt",36:"taskData",37:"click",38:"callbackname",39:"callbackargs",40:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[34,2],[34,3],[34,3],[34,4],[34,3],[34,4],[34,2],[41,2],[41,3],[41,3],[41,4],[41,3],[41,4],[41,2]],performAction:function(o,f,m,u,M,c,$){var d=c.length-1;switch(M){case 1:return c[d-1];case 2:this.$=[];break;case 3:c[d-1].push(c[d]),this.$=c[d-1];break;case 4:case 5:this.$=c[d];break;case 6:case 7:this.$=[];break;case 8:u.setWeekday("monday");break;case 9:u.setWeekday("tuesday");break;case 10:u.setWeekday("wednesday");break;case 11:u.setWeekday("thursday");break;case 12:u.setWeekday("friday");break;case 13:u.setWeekday("saturday");break;case 14:u.setWeekday("sunday");break;case 15:u.setDateFormat(c[d].substr(11)),this.$=c[d].substr(11);break;case 16:u.enableInclusiveEndDates(),this.$=c[d].substr(18);break;case 17:u.TopAxis(),this.$=c[d].substr(8);break;case 18:u.setAxisFormat(c[d].substr(11)),this.$=c[d].substr(11);break;case 19:u.setTickInterval(c[d].substr(13)),this.$=c[d].substr(13);break;case 20:u.setExcludes(c[d].substr(9)),this.$=c[d].substr(9);break;case 21:u.setIncludes(c[d].substr(9)),this.$=c[d].substr(9);break;case 22:u.setTodayMarker(c[d].substr(12)),this.$=c[d].substr(12);break;case 24:u.setDiagramTitle(c[d].substr(6)),this.$=c[d].substr(6);break;case 25:this.$=c[d].trim(),u.setAccTitle(this.$);break;case 26:case 27:this.$=c[d].trim(),u.setAccDescription(this.$);break;case 28:u.addSection(c[d].substr(8)),this.$=c[d].substr(8);break;case 30:u.addTask(c[d-1],c[d]),this.$="task";break;case 31:this.$=c[d-1],u.setClickEvent(c[d-1],c[d],null);break;case 32:this.$=c[d-2],u.setClickEvent(c[d-2],c[d-1],c[d]);break;case 33:this.$=c[d-2],u.setClickEvent(c[d-2],c[d-1],null),u.setLink(c[d-2],c[d]);break;case 34:this.$=c[d-3],u.setClickEvent(c[d-3],c[d-2],c[d-1]),u.setLink(c[d-3],c[d]);break;case 35:this.$=c[d-2],u.setClickEvent(c[d-2],c[d],null),u.setLink(c[d-2],c[d-1]);break;case 36:this.$=c[d-3],u.setClickEvent(c[d-3],c[d-1],c[d]),u.setLink(c[d-3],c[d-2]);break;case 37:this.$=c[d-1],u.setLink(c[d-1],c[d]);break;case 38:case 44:this.$=c[d-1]+" "+c[d];break;case 39:case 40:case 42:this.$=c[d-2]+" "+c[d-1]+" "+c[d];break;case 41:case 43:this.$=c[d-3]+" "+c[d-2]+" "+c[d-1]+" "+c[d];break}},table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:r,14:i,15:s,16:a,17:y,18:S,19:p,20:g,21:A,22:w,23:T,24:X,25:I,26:D,27:E,28:N,30:L,32:B,33:Q,34:23,35:x,37:O},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:33,11:17,12:n,13:r,14:i,15:s,16:a,17:y,18:S,19:p,20:g,21:A,22:w,23:T,24:X,25:I,26:D,27:E,28:N,30:L,32:B,33:Q,34:23,35:x,37:O},t(e,[2,5]),t(e,[2,6]),t(e,[2,15]),t(e,[2,16]),t(e,[2,17]),t(e,[2,18]),t(e,[2,19]),t(e,[2,20]),t(e,[2,21]),t(e,[2,22]),t(e,[2,23]),t(e,[2,24]),{29:[1,34]},{31:[1,35]},t(e,[2,27]),t(e,[2,28]),t(e,[2,29]),{36:[1,36]},t(e,[2,8]),t(e,[2,9]),t(e,[2,10]),t(e,[2,11]),t(e,[2,12]),t(e,[2,13]),t(e,[2,14]),{38:[1,37],40:[1,38]},t(e,[2,4]),t(e,[2,25]),t(e,[2,26]),t(e,[2,30]),t(e,[2,31],{39:[1,39],40:[1,40]}),t(e,[2,37],{38:[1,41]}),t(e,[2,32],{40:[1,42]}),t(e,[2,33]),t(e,[2,35],{39:[1,43]}),t(e,[2,34]),t(e,[2,36])],defaultActions:{},parseError:function(o,f){if(f.recoverable)this.trace(o);else{var m=new Error(o);throw m.hash=f,m}},parse:function(o){var f=this,m=[0],u=[],M=[null],c=[],$=this.table,d="",h=0,C=0,Z=2,H=1,z=c.slice.call(arguments,1),P=Object.create(this.lexer),R={yy:{}};for(var at in this.yy)Object.prototype.hasOwnProperty.call(this.yy,at)&&(R.yy[at]=this.yy[at]);P.setInput(o,R.yy),R.yy.lexer=P,R.yy.parser=this,typeof P.yylloc>"u"&&(P.yylloc={});var ot=P.yylloc;c.push(ot);var k=P.options&&P.options.ranges;typeof R.yy.parseError=="function"?this.parseError=R.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function W(){var lt;return lt=u.pop()||P.lex()||H,typeof lt!="number"&&(lt instanceof Array&&(u=lt,lt=u.pop()),lt=f.symbols_[lt]||lt),lt}for(var Y,l,j,V,G={},J,K,ct,yt;;){if(l=m[m.length-1],this.defaultActions[l]?j=this.defaultActions[l]:((Y===null||typeof Y>"u")&&(Y=W()),j=$[l]&&$[l][Y]),typeof j>"u"||!j.length||!j[0]){var zt="";yt=[];for(J in $[l])this.terminals_[J]&&J>Z&&yt.push("'"+this.terminals_[J]+"'");P.showPosition?zt="Parse error on line "+(h+1)+`:
2
- `+P.showPosition()+`
3
- Expecting `+yt.join(", ")+", got '"+(this.terminals_[Y]||Y)+"'":zt="Parse error on line "+(h+1)+": Unexpected "+(Y==H?"end of input":"'"+(this.terminals_[Y]||Y)+"'"),this.parseError(zt,{text:P.match,token:this.terminals_[Y]||Y,line:P.yylineno,loc:ot,expected:yt})}if(j[0]instanceof Array&&j.length>1)throw new Error("Parse Error: multiple actions possible at state: "+l+", token: "+Y);switch(j[0]){case 1:m.push(Y),M.push(P.yytext),c.push(P.yylloc),m.push(j[1]),Y=null,C=P.yyleng,d=P.yytext,h=P.yylineno,ot=P.yylloc;break;case 2:if(K=this.productions_[j[1]][1],G.$=M[M.length-K],G._$={first_line:c[c.length-(K||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(K||1)].first_column,last_column:c[c.length-1].last_column},k&&(G._$.range=[c[c.length-(K||1)].range[0],c[c.length-1].range[1]]),V=this.performAction.apply(G,[d,C,h,R.yy,j[1],M,c].concat(z)),typeof V<"u")return V;K&&(m=m.slice(0,-1*K*2),M=M.slice(0,-1*K),c=c.slice(0,-1*K)),m.push(this.productions_[j[1]][0]),M.push(G.$),c.push(G._$),ct=$[m[m.length-2]][m[m.length-1]],m.push(ct);break;case 3:return!0}}return!0}},U=(function(){var b={EOF:1,parseError:function(f,m){if(this.yy.parser)this.yy.parser.parseError(f,m);else throw new Error(f)},setInput:function(o,f){return this.yy=f||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},input:function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var f=o.match(/(?:\r\n?|\n).*/g);return f?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},unput:function(o){var f=o.length,m=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-f),this.offset-=f;var u=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),m.length-1&&(this.yylineno-=m.length-1);var M=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:m?(m.length===u.length?this.yylloc.first_column:0)+u[u.length-m.length].length-m[0].length:this.yylloc.first_column-f},this.options.ranges&&(this.yylloc.range=[M[0],M[0]+this.yyleng-f]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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
- `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(o){this.unput(this.match.slice(o))},pastInput:function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},upcomingInput: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,"")},showPosition:function(){var o=this.pastInput(),f=new Array(o.length+1).join("-");return o+this.upcomingInput()+`
5
- `+f+"^"},test_match:function(o,f){var m,u,M;if(this.options.backtrack_lexer&&(M={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(M.yylloc.range=this.yylloc.range.slice(0))),u=o[0].match(/(?:\r\n?|\n).*/g),u&&(this.yylineno+=u.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:u?u[u.length-1].length-u[u.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+o[0].length},this.yytext+=o[0],this.match+=o[0],this.matches=o,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(o[0].length),this.matched+=o[0],m=this.performAction.call(this,this.yy,this,f,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),m)return m;if(this._backtrack){for(var c in M)this[c]=M[c];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var o,f,m,u;this._more||(this.yytext="",this.match="");for(var M=this._currentRules(),c=0;c<M.length;c++)if(m=this._input.match(this.rules[M[c]]),m&&(!f||m[0].length>f[0].length)){if(f=m,u=c,this.options.backtrack_lexer){if(o=this.test_match(m,M[c]),o!==!1)return o;if(this._backtrack){f=!1;continue}else return!1}else if(!this.options.flex)break}return f?(o=this.test_match(f,M[u]),o!==!1?o:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
- `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var f=this.next();return f||this.lex()},begin:function(f){this.conditionStack.push(f)},popState:function(){var f=this.conditionStack.length-1;return f>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(f){return f=this.conditionStack.length-1-Math.abs(f||0),f>=0?this.conditionStack[f]:"INITIAL"},pushState:function(f){this.begin(f)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(f,m,u,M){switch(u){case 0:return this.begin("open_directive"),"open_directive";case 1:return this.begin("acc_title"),28;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),30;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:break;case 9:break;case 10:break;case 11:return 10;case 12:break;case 13:break;case 14:this.begin("href");break;case 15:this.popState();break;case 16:return 40;case 17:this.begin("callbackname");break;case 18:this.popState();break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 38;case 21:this.popState();break;case 22:return 39;case 23:this.begin("click");break;case 24:this.popState();break;case 25:return 37;case 26:return 4;case 27:return 19;case 28:return 20;case 29:return 21;case 30:return 22;case 31:return 23;case 32:return 25;case 33:return 24;case 34:return 26;case 35:return 12;case 36:return 13;case 37:return 14;case 38:return 15;case 39:return 16;case 40:return 17;case 41:return 18;case 42:return"date";case 43:return 27;case 44:return"accDescription";case 45:return 33;case 46:return 35;case 47:return 36;case 48:return":";case 49:return 6;case 50:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:weekday\s+monday\b)/i,/^(?:weekday\s+tuesday\b)/i,/^(?:weekday\s+wednesday\b)/i,/^(?:weekday\s+thursday\b)/i,/^(?:weekday\s+friday\b)/i,/^(?:weekday\s+saturday\b)/i,/^(?:weekday\s+sunday\b)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^\n]+)/i,/^(?:[^:\n]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},callbackargs:{rules:[21,22],inclusive:!1},callbackname:{rules:[18,19,20],inclusive:!1},href:{rules:[15,16],inclusive:!1},click:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,17,23,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],inclusive:!0}}};return b})();v.lexer=U;function F(){this.yy={}}return F.prototype=v,v.Parser=F,new F})();he.parser=he;const hi=he;_.dayjs.extend(ri);_.dayjs.extend(oi);_.dayjs.extend(fi);let it="",Te="",ve,xe="",Nt=[],Pt=[],be={},we=[],Kt=[],Yt="",Ce="";const un=["active","done","crit","milestone"];let De=[],Vt=!1,Me=!1,Se="sunday",de=0;const di=function(){we=[],Kt=[],Yt="",De=[],Xt=0,ge=void 0,$t=void 0,tt=[],it="",Te="",Ce="",ve=void 0,xe="",Nt=[],Pt=[],Vt=!1,Me=!1,de=0,be={},_.clear(),Se="sunday"},mi=function(t){Te=t},gi=function(){return Te},yi=function(t){ve=t},ki=function(){return ve},pi=function(t){xe=t},Ti=function(){return xe},vi=function(t){it=t},xi=function(){Vt=!0},bi=function(){return Vt},wi=function(){Me=!0},Ci=function(){return Me},Di=function(t){Ce=t},Mi=function(){return Ce},Si=function(){return it},_i=function(t){Nt=t.toLowerCase().split(/[\s,]+/)},Fi=function(){return Nt},Yi=function(t){Pt=t.toLowerCase().split(/[\s,]+/)},Ui=function(){return Pt},Ai=function(){return be},Ei=function(t){Yt=t,we.push(t)},Li=function(){return we},Wi=function(){let t=Re();const e=10;let n=0;for(;!t&&n<e;)t=Re(),n++;return Kt=tt,Kt},fn=function(t,e,n,r){return r.includes(t.format(e.trim()))?!1:t.isoWeekday()>=6&&n.includes("weekends")||n.includes(t.format("dddd").toLowerCase())?!0:n.includes(t.format(e.trim()))},Ii=function(t){Se=t},Oi=function(){return Se},hn=function(t,e,n,r){if(!n.length||t.manualEndTime)return;let i;t.startTime instanceof Date?i=_.dayjs(t.startTime):i=_.dayjs(t.startTime,e,!0),i=i.add(1,"d");let s;t.endTime instanceof Date?s=_.dayjs(t.endTime):s=_.dayjs(t.endTime,e,!0);const[a,y]=Hi(i,s,e,n,r);t.endTime=a.toDate(),t.renderEndTime=y},Hi=function(t,e,n,r,i){let s=!1,a=null;for(;t<=e;)s||(a=e.toDate()),s=fn(t,n,r,i),s&&(e=e.add(1,"d")),t=t.add(1,"d");return[e,a]},me=function(t,e,n){n=n.trim();const i=/^after\s+(?<ids>[\d\w- ]+)/.exec(n);if(i!==null){let a=null;for(const S of i.groups.ids.split(" ")){let p=wt(S);p!==void 0&&(!a||p.endTime>a.endTime)&&(a=p)}if(a)return a.endTime;const y=new Date;return y.setHours(0,0,0,0),y}let s=_.dayjs(n,e.trim(),!0);if(s.isValid())return s.toDate();{_.log$1.debug("Invalid date:"+n),_.log$1.debug("With date format:"+e.trim());const a=new Date(n);if(a===void 0||isNaN(a.getTime())||a.getFullYear()<-1e4||a.getFullYear()>1e4)throw new Error("Invalid date:"+n);return a}},dn=function(t){const e=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());return e!==null?[Number.parseFloat(e[1]),e[2]]:[NaN,"ms"]},mn=function(t,e,n,r=!1){n=n.trim();const s=/^until\s+(?<ids>[\d\w- ]+)/.exec(n);if(s!==null){let g=null;for(const w of s.groups.ids.split(" ")){let T=wt(w);T!==void 0&&(!g||T.startTime<g.startTime)&&(g=T)}if(g)return g.startTime;const A=new Date;return A.setHours(0,0,0,0),A}let a=_.dayjs(n,e.trim(),!0);if(a.isValid())return r&&(a=a.add(1,"d")),a.toDate();let y=_.dayjs(t);const[S,p]=dn(n);if(!Number.isNaN(S)){const g=y.add(S,p);g.isValid()&&(y=g)}return y.toDate()};let Xt=0;const St=function(t){return t===void 0?(Xt=Xt+1,"task"+Xt):t},Ni=function(t,e){let n;e.substr(0,1)===":"?n=e.substr(1,e.length):n=e;const r=n.split(","),i={};pn(r,i,un);for(let a=0;a<r.length;a++)r[a]=r[a].trim();let s="";switch(r.length){case 1:i.id=St(),i.startTime=t.endTime,s=r[0];break;case 2:i.id=St(),i.startTime=me(void 0,it,r[0]),s=r[1];break;case 3:i.id=St(r[0]),i.startTime=me(void 0,it,r[1]),s=r[2];break}return s&&(i.endTime=mn(i.startTime,it,s,Vt),i.manualEndTime=_.dayjs(s,"YYYY-MM-DD",!0).isValid(),hn(i,it,Pt,Nt)),i},Pi=function(t,e){let n;e.substr(0,1)===":"?n=e.substr(1,e.length):n=e;const r=n.split(","),i={};pn(r,i,un);for(let s=0;s<r.length;s++)r[s]=r[s].trim();switch(r.length){case 1:i.id=St(),i.startTime={type:"prevTaskEnd",id:t},i.endTime={data:r[0]};break;case 2:i.id=St(),i.startTime={type:"getStartDate",startData:r[0]},i.endTime={data:r[1]};break;case 3:i.id=St(r[0]),i.startTime={type:"getStartDate",startData:r[1]},i.endTime={data:r[2]};break}return i};let ge,$t,tt=[];const gn={},Vi=function(t,e){const n={section:Yt,type:Yt,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:e},task:t,classes:[]},r=Pi($t,e);n.raw.startTime=r.startTime,n.raw.endTime=r.endTime,n.id=r.id,n.prevTaskId=$t,n.active=r.active,n.done=r.done,n.crit=r.crit,n.milestone=r.milestone,n.order=de,de++;const i=tt.push(n);$t=n.id,gn[n.id]=i-1},wt=function(t){const e=gn[t];return tt[e]},zi=function(t,e){const n={section:Yt,type:Yt,description:t,task:t,classes:[]},r=Ni(ge,e);n.startTime=r.startTime,n.endTime=r.endTime,n.id=r.id,n.active=r.active,n.done=r.done,n.crit=r.crit,n.milestone=r.milestone,ge=n,Kt.push(n)},Re=function(){const t=function(n){const r=tt[n];let i="";switch(tt[n].raw.startTime.type){case"prevTaskEnd":{const s=wt(r.prevTaskId);r.startTime=s.endTime;break}case"getStartDate":i=me(void 0,it,tt[n].raw.startTime.startData),i&&(tt[n].startTime=i);break}return tt[n].startTime&&(tt[n].endTime=mn(tt[n].startTime,it,tt[n].raw.endTime.data,Vt),tt[n].endTime&&(tt[n].processed=!0,tt[n].manualEndTime=_.dayjs(tt[n].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),hn(tt[n],it,Pt,Nt))),tt[n].processed};let e=!0;for(const[n,r]of tt.entries())t(n),e=e&&r.processed;return e},Ri=function(t,e){let n=e;_.getConfig().securityLevel!=="loose"&&(n=Tn.distExports.sanitizeUrl(e)),t.split(",").forEach(function(r){wt(r)!==void 0&&(kn(r,()=>{window.open(n,"_self")}),be[r]=n)}),yn(t,"clickable")},yn=function(t,e){t.split(",").forEach(function(n){let r=wt(n);r!==void 0&&r.classes.push(e)})},qi=function(t,e,n){if(_.getConfig().securityLevel!=="loose"||e===void 0)return;let r=[];if(typeof n=="string"){r=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let s=0;s<r.length;s++){let a=r[s].trim();a.charAt(0)==='"'&&a.charAt(a.length-1)==='"'&&(a=a.substr(1,a.length-2)),r[s]=a}}r.length===0&&r.push(t),wt(t)!==void 0&&kn(t,()=>{_.utils.runFunc(e,...r)})},kn=function(t,e){De.push(function(){const n=document.querySelector(`[id="${t}"]`);n!==null&&n.addEventListener("click",function(){e()})},function(){const n=document.querySelector(`[id="${t}-text"]`);n!==null&&n.addEventListener("click",function(){e()})})},ji=function(t,e,n){t.split(",").forEach(function(r){qi(r,e,n)}),yn(t,"clickable")},Bi=function(t){De.forEach(function(e){e(t)})},Zi={getConfig:()=>_.getConfig().gantt,clear:di,setDateFormat:vi,getDateFormat:Si,enableInclusiveEndDates:xi,endDatesAreInclusive:bi,enableTopAxis:wi,topAxisEnabled:Ci,setAxisFormat:mi,getAxisFormat:gi,setTickInterval:yi,getTickInterval:ki,setTodayMarker:pi,getTodayMarker:Ti,setAccTitle:_.setAccTitle,getAccTitle:_.getAccTitle,setDiagramTitle:_.setDiagramTitle,getDiagramTitle:_.getDiagramTitle,setDisplayMode:Di,getDisplayMode:Mi,setAccDescription:_.setAccDescription,getAccDescription:_.getAccDescription,addSection:Ei,getSections:Li,getTasks:Wi,addTask:Vi,findTaskById:wt,addTaskOrg:zi,setIncludes:_i,getIncludes:Fi,setExcludes:Yi,getExcludes:Ui,setClickEvent:ji,setLink:Ri,getLinks:Ai,bindFunctions:Bi,parseDuration:dn,isInvalidDate:fn,setWeekday:Ii,getWeekday:Oi};function pn(t,e,n){let r=!0;for(;r;)r=!1,n.forEach(function(i){const s="^\\s*"+i+"\\s*$",a=new RegExp(s);t[0].match(a)&&(e[i]=!0,t.shift(1),r=!0)})}const Xi=function(){_.log$1.debug("Something is calling, setConf, remove the call")},qe={monday:It,tuesday:Ke,wednesday:tn,thursday:Tt,friday:en,saturday:nn,sunday:Ht},$i=(t,e)=>{let n=[...t].map(()=>-1/0),r=[...t].sort((s,a)=>s.startTime-a.startTime||s.order-a.order),i=0;for(const s of r)for(let a=0;a<n.length;a++)if(s.startTime>=n[a]){n[a]=s.endTime,s.order=a+e,a>i&&(i=a);break}return i};let ut;const Gi=function(t,e,n,r){const i=_.getConfig().gantt,s=_.getConfig().securityLevel;let a;s==="sandbox"&&(a=_.select("#i"+e));const y=s==="sandbox"?_.select(a.nodes()[0].contentDocument.body):_.select("body"),S=s==="sandbox"?a.nodes()[0].contentDocument:document,p=S.getElementById(e);ut=p.parentElement.offsetWidth,ut===void 0&&(ut=1200),i.useWidth!==void 0&&(ut=i.useWidth);const g=r.db.getTasks();let A=[];for(const v of g)A.push(v.type);A=O(A);const w={};let T=2*i.topPadding;if(r.db.getDisplayMode()==="compact"||i.displayMode==="compact"){const v={};for(const F of g)v[F.section]===void 0?v[F.section]=[F]:v[F.section].push(F);let U=0;for(const F of Object.keys(v)){const b=$i(v[F],U)+1;U+=b,T+=b*(i.barHeight+i.barGap),w[F]=b}}else{T+=g.length*(i.barHeight+i.barGap);for(const v of A)w[v]=g.filter(U=>U.type===v).length}p.setAttribute("viewBox","0 0 "+ut+" "+T);const X=y.select(`[id="${e}"]`),I=Kr().domain([bn(g,function(v){return v.startTime}),xn(g,function(v){return v.endTime})]).rangeRound([0,ut-i.leftPadding-i.rightPadding]);function D(v,U){const F=v.startTime,b=U.startTime;let o=0;return F>b?o=1:F<b&&(o=-1),o}g.sort(D),E(g,ut,T),_.configureSvgSize(X,T,ut,i.useMaxWidth),X.append("text").text(r.db.getDiagramTitle()).attr("x",ut/2).attr("y",i.titleTopMargin).attr("class","titleText");function E(v,U,F){const b=i.barHeight,o=b+i.barGap,f=i.topPadding,m=i.leftPadding,u=Dt.linear().domain([0,A.length]).range(["#00B9FA","#F95002"]).interpolate(On);L(o,f,m,U,F,v,r.db.getExcludes(),r.db.getIncludes()),B(m,f,U,F),N(v,o,f,m,b,u,U),Q(o,f),x(m,f,U,F)}function N(v,U,F,b,o,f,m){const M=[...new Set(v.map(h=>h.order))].map(h=>v.find(C=>C.order===h));X.append("g").selectAll("rect").data(M).enter().append("rect").attr("x",0).attr("y",function(h,C){return C=h.order,C*U+F-2}).attr("width",function(){return m-i.rightPadding/2}).attr("height",U).attr("class",function(h){for(const[C,Z]of A.entries())if(h.type===Z)return"section section"+C%i.numberSectionStyles;return"section section0"});const c=X.append("g").selectAll("rect").data(v).enter(),$=r.db.getLinks();if(c.append("rect").attr("id",function(h){return h.id}).attr("rx",3).attr("ry",3).attr("x",function(h){return h.milestone?I(h.startTime)+b+.5*(I(h.endTime)-I(h.startTime))-.5*o:I(h.startTime)+b}).attr("y",function(h,C){return C=h.order,C*U+F}).attr("width",function(h){return h.milestone?o:I(h.renderEndTime||h.endTime)-I(h.startTime)}).attr("height",o).attr("transform-origin",function(h,C){return C=h.order,(I(h.startTime)+b+.5*(I(h.endTime)-I(h.startTime))).toString()+"px "+(C*U+F+.5*o).toString()+"px"}).attr("class",function(h){const C="task";let Z="";h.classes.length>0&&(Z=h.classes.join(" "));let H=0;for(const[P,R]of A.entries())h.type===R&&(H=P%i.numberSectionStyles);let z="";return h.active?h.crit?z+=" activeCrit":z=" active":h.done?h.crit?z=" doneCrit":z=" done":h.crit&&(z+=" crit"),z.length===0&&(z=" task"),h.milestone&&(z=" milestone "+z),z+=H,z+=" "+Z,C+z}),c.append("text").attr("id",function(h){return h.id+"-text"}).text(function(h){return h.task}).attr("font-size",i.fontSize).attr("x",function(h){let C=I(h.startTime),Z=I(h.renderEndTime||h.endTime);h.milestone&&(C+=.5*(I(h.endTime)-I(h.startTime))-.5*o),h.milestone&&(Z=C+o);const H=this.getBBox().width;return H>Z-C?Z+H+1.5*i.leftPadding>m?C+b-5:Z+b+5:(Z-C)/2+C+b}).attr("y",function(h,C){return C=h.order,C*U+i.barHeight/2+(i.fontSize/2-2)+F}).attr("text-height",o).attr("class",function(h){const C=I(h.startTime);let Z=I(h.endTime);h.milestone&&(Z=C+o);const H=this.getBBox().width;let z="";h.classes.length>0&&(z=h.classes.join(" "));let P=0;for(const[at,ot]of A.entries())h.type===ot&&(P=at%i.numberSectionStyles);let R="";return h.active&&(h.crit?R="activeCritText"+P:R="activeText"+P),h.done?h.crit?R=R+" doneCritText"+P:R=R+" doneText"+P:h.crit&&(R=R+" critText"+P),h.milestone&&(R+=" milestoneText"),H>Z-C?Z+H+1.5*i.leftPadding>m?z+" taskTextOutsideLeft taskTextOutside"+P+" "+R:z+" taskTextOutsideRight taskTextOutside"+P+" "+R+" width-"+H:z+" taskText taskText"+P+" "+R+" width-"+H}),_.getConfig().securityLevel==="sandbox"){let h;h=_.select("#i"+e);const C=h.nodes()[0].contentDocument;c.filter(function(Z){return $[Z.id]!==void 0}).each(function(Z){var H=C.querySelector("#"+Z.id),z=C.querySelector("#"+Z.id+"-text");const P=H.parentNode;var R=C.createElement("a");R.setAttribute("xlink:href",$[Z.id]),R.setAttribute("target","_top"),P.appendChild(R),R.appendChild(H),R.appendChild(z)})}}function L(v,U,F,b,o,f,m,u){if(m.length===0&&u.length===0)return;let M,c;for(const{startTime:H,endTime:z}of f)(M===void 0||H<M)&&(M=H),(c===void 0||z>c)&&(c=z);if(!M||!c)return;if(_.dayjs(c).diff(_.dayjs(M),"year")>5){_.log$1.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");return}const $=r.db.getDateFormat(),d=[];let h=null,C=_.dayjs(M);for(;C.valueOf()<=c;)r.db.isInvalidDate(C,$,m,u)?h?h.end=C:h={start:C,end:C}:h&&(d.push(h),h=null),C=C.add(1,"d");X.append("g").selectAll("rect").data(d).enter().append("rect").attr("id",function(H){return"exclude-"+H.start.format("YYYY-MM-DD")}).attr("x",function(H){return I(H.start)+F}).attr("y",i.gridLineStartPadding).attr("width",function(H){const z=H.end.add(1,"day");return I(z)-I(H.start)}).attr("height",o-U-i.gridLineStartPadding).attr("transform-origin",function(H,z){return(I(H.start)+F+.5*(I(H.end)-I(H.start))).toString()+"px "+(z*v+.5*o).toString()+"px"}).attr("class","exclude-range")}function B(v,U,F,b){let o=Yn(I).tickSize(-b+U+i.gridLineStartPadding).tickFormat(Jt(r.db.getAxisFormat()||i.axisFormat||"%Y-%m-%d"));const m=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(r.db.getTickInterval()||i.tickInterval);if(m!==null){const u=m[1],M=m[2],c=r.db.getWeekday()||i.weekday;switch(M){case"millisecond":o.ticks(_t.every(u));break;case"second":o.ticks(kt.every(u));break;case"minute":o.ticks(Lt.every(u));break;case"hour":o.ticks(Wt.every(u));break;case"day":o.ticks(pt.every(u));break;case"week":o.ticks(qe[c].every(u));break;case"month":o.ticks(Ot.every(u));break}}if(X.append("g").attr("class","grid").attr("transform","translate("+v+", "+(b-50)+")").call(o).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),r.db.topAxisEnabled()||i.topAxis){let u=Fn(I).tickSize(-b+U+i.gridLineStartPadding).tickFormat(Jt(r.db.getAxisFormat()||i.axisFormat||"%Y-%m-%d"));if(m!==null){const M=m[1],c=m[2],$=r.db.getWeekday()||i.weekday;switch(c){case"millisecond":u.ticks(_t.every(M));break;case"second":u.ticks(kt.every(M));break;case"minute":u.ticks(Lt.every(M));break;case"hour":u.ticks(Wt.every(M));break;case"day":u.ticks(pt.every(M));break;case"week":u.ticks(qe[$].every(M));break;case"month":u.ticks(Ot.every(M));break}}X.append("g").attr("class","grid").attr("transform","translate("+v+", "+U+")").call(u).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}function Q(v,U){let F=0;const b=Object.keys(w).map(o=>[o,w[o]]);X.append("g").selectAll("text").data(b).enter().append(function(o){const f=o[0].split(_.common$1.lineBreakRegex),m=-(f.length-1)/2,u=S.createElementNS("http://www.w3.org/2000/svg","text");u.setAttribute("dy",m+"em");for(const[M,c]of f.entries()){const $=S.createElementNS("http://www.w3.org/2000/svg","tspan");$.setAttribute("alignment-baseline","central"),$.setAttribute("x","10"),M>0&&$.setAttribute("dy","1em"),$.textContent=c,u.appendChild($)}return u}).attr("x",10).attr("y",function(o,f){if(f>0)for(let m=0;m<f;m++)return F+=b[f-1][1],o[1]*v/2+F*v+U;else return o[1]*v/2+U}).attr("font-size",i.sectionFontSize).attr("class",function(o){for(const[f,m]of A.entries())if(o[0]===m)return"sectionTitle sectionTitle"+f%i.numberSectionStyles;return"sectionTitle"})}function x(v,U,F,b){const o=r.db.getTodayMarker();if(o==="off")return;const f=X.append("g").attr("class","today"),m=new Date,u=f.append("line");u.attr("x1",I(m)+v).attr("x2",I(m)+v).attr("y1",i.titleTopMargin).attr("y2",b-i.titleTopMargin).attr("class","today"),o!==""&&u.attr("style",o.replace(/,/g,";"))}function O(v){const U={},F=[];for(let b=0,o=v.length;b<o;++b)Object.prototype.hasOwnProperty.call(U,v[b])||(U[v[b]]=!0,F.push(v[b]));return F}},Qi={setConf:Xi,draw:Gi},Ji=t=>`
7
- .mermaid-main-font {
8
- font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);
9
- }
10
-
11
- .exclude-range {
12
- fill: ${t.excludeBkgColor};
13
- }
14
-
15
- .section {
16
- stroke: none;
17
- opacity: 0.2;
18
- }
19
-
20
- .section0 {
21
- fill: ${t.sectionBkgColor};
22
- }
23
-
24
- .section2 {
25
- fill: ${t.sectionBkgColor2};
26
- }
27
-
28
- .section1,
29
- .section3 {
30
- fill: ${t.altSectionBkgColor};
31
- opacity: 0.2;
32
- }
33
-
34
- .sectionTitle0 {
35
- fill: ${t.titleColor};
36
- }
37
-
38
- .sectionTitle1 {
39
- fill: ${t.titleColor};
40
- }
41
-
42
- .sectionTitle2 {
43
- fill: ${t.titleColor};
44
- }
45
-
46
- .sectionTitle3 {
47
- fill: ${t.titleColor};
48
- }
49
-
50
- .sectionTitle {
51
- text-anchor: start;
52
- font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);
53
- }
54
-
55
-
56
- /* Grid and axis */
57
-
58
- .grid .tick {
59
- stroke: ${t.gridColor};
60
- opacity: 0.8;
61
- shape-rendering: crispEdges;
62
- }
63
-
64
- .grid .tick text {
65
- font-family: ${t.fontFamily};
66
- fill: ${t.textColor};
67
- }
68
-
69
- .grid path {
70
- stroke-width: 0;
71
- }
72
-
73
-
74
- /* Today line */
75
-
76
- .today {
77
- fill: none;
78
- stroke: ${t.todayLineColor};
79
- stroke-width: 2px;
80
- }
81
-
82
-
83
- /* Task styling */
84
-
85
- /* Default task */
86
-
87
- .task {
88
- stroke-width: 2;
89
- }
90
-
91
- .taskText {
92
- text-anchor: middle;
93
- font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);
94
- }
95
-
96
- .taskTextOutsideRight {
97
- fill: ${t.taskTextDarkColor};
98
- text-anchor: start;
99
- font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);
100
- }
101
-
102
- .taskTextOutsideLeft {
103
- fill: ${t.taskTextDarkColor};
104
- text-anchor: end;
105
- }
106
-
107
-
108
- /* Special case clickable */
109
-
110
- .task.clickable {
111
- cursor: pointer;
112
- }
113
-
114
- .taskText.clickable {
115
- cursor: pointer;
116
- fill: ${t.taskTextClickableColor} !important;
117
- font-weight: bold;
118
- }
119
-
120
- .taskTextOutsideLeft.clickable {
121
- cursor: pointer;
122
- fill: ${t.taskTextClickableColor} !important;
123
- font-weight: bold;
124
- }
125
-
126
- .taskTextOutsideRight.clickable {
127
- cursor: pointer;
128
- fill: ${t.taskTextClickableColor} !important;
129
- font-weight: bold;
130
- }
131
-
132
-
133
- /* Specific task settings for the sections*/
134
-
135
- .taskText0,
136
- .taskText1,
137
- .taskText2,
138
- .taskText3 {
139
- fill: ${t.taskTextColor};
140
- }
141
-
142
- .task0,
143
- .task1,
144
- .task2,
145
- .task3 {
146
- fill: ${t.taskBkgColor};
147
- stroke: ${t.taskBorderColor};
148
- }
149
-
150
- .taskTextOutside0,
151
- .taskTextOutside2
152
- {
153
- fill: ${t.taskTextOutsideColor};
154
- }
155
-
156
- .taskTextOutside1,
157
- .taskTextOutside3 {
158
- fill: ${t.taskTextOutsideColor};
159
- }
160
-
161
-
162
- /* Active task */
163
-
164
- .active0,
165
- .active1,
166
- .active2,
167
- .active3 {
168
- fill: ${t.activeTaskBkgColor};
169
- stroke: ${t.activeTaskBorderColor};
170
- }
171
-
172
- .activeText0,
173
- .activeText1,
174
- .activeText2,
175
- .activeText3 {
176
- fill: ${t.taskTextDarkColor} !important;
177
- }
178
-
179
-
180
- /* Completed task */
181
-
182
- .done0,
183
- .done1,
184
- .done2,
185
- .done3 {
186
- stroke: ${t.doneTaskBorderColor};
187
- fill: ${t.doneTaskBkgColor};
188
- stroke-width: 2;
189
- }
190
-
191
- .doneText0,
192
- .doneText1,
193
- .doneText2,
194
- .doneText3 {
195
- fill: ${t.taskTextDarkColor} !important;
196
- }
197
-
198
-
199
- /* Tasks on the critical line */
200
-
201
- .crit0,
202
- .crit1,
203
- .crit2,
204
- .crit3 {
205
- stroke: ${t.critBorderColor};
206
- fill: ${t.critBkgColor};
207
- stroke-width: 2;
208
- }
209
-
210
- .activeCrit0,
211
- .activeCrit1,
212
- .activeCrit2,
213
- .activeCrit3 {
214
- stroke: ${t.critBorderColor};
215
- fill: ${t.activeTaskBkgColor};
216
- stroke-width: 2;
217
- }
218
-
219
- .doneCrit0,
220
- .doneCrit1,
221
- .doneCrit2,
222
- .doneCrit3 {
223
- stroke: ${t.critBorderColor};
224
- fill: ${t.doneTaskBkgColor};
225
- stroke-width: 2;
226
- cursor: pointer;
227
- shape-rendering: crispEdges;
228
- }
229
-
230
- .milestone {
231
- transform: rotate(45deg) scale(0.8,0.8);
232
- }
233
-
234
- .milestoneText {
235
- font-style: italic;
236
- }
237
- .doneCritText0,
238
- .doneCritText1,
239
- .doneCritText2,
240
- .doneCritText3 {
241
- fill: ${t.taskTextDarkColor} !important;
242
- }
243
-
244
- .activeCritText0,
245
- .activeCritText1,
246
- .activeCritText2,
247
- .activeCritText3 {
248
- fill: ${t.taskTextDarkColor} !important;
249
- }
250
-
251
- .titleText {
252
- text-anchor: middle;
253
- font-size: 18px;
254
- fill: ${t.titleColor||t.textColor};
255
- font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);
256
- }
257
- `,Ki=Ji,ts={parser:hi,db:Zi,renderer:Qi,styles:Ki};exports.diagram=ts;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./layers.C6IUuxUg.js"),o=require("./layers.BsB1DdQS.js"),t=require("./layers.C5S1nV4u.js");require("lodash-es");require("./layers.BLd2spTm.js");require("./layers.Cyzu9PKQ.js");require("./layers.DbaFHCy4.js");const a={parser:e.parser$1,db:e.flowDb,renderer:o.flowRendererV2,styles:o.flowStyles,init:r=>{r.flowchart||(r.flowchart={}),r.flowchart.arrowMarkerAbsolute=r.arrowMarkerAbsolute,t.setConfig({flowchart:{arrowMarkerAbsolute:r.arrowMarkerAbsolute}}),o.flowRendererV2.setConf(r.flowchart),e.flowDb.clear(),e.flowDb.setGen("gen-2")}};exports.diagram=a;