@layers-app/editor 0.3.4 → 0.3.5

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 (212) hide show
  1. package/dist/index.cjs +1 -1
  2. package/dist/index.d.ts +2 -0
  3. package/dist/index.js +1 -1
  4. package/dist/{layers.D7O_sIxr.js → layers.-ISefX3p.js} +4 -4
  5. package/dist/{layers.DQfdoJaq.js → layers.0LpTBNiJ.js} +1 -1
  6. package/dist/{layers.Gn4z3Gy5.js → layers.0eG_3dCm.js} +1 -1
  7. package/dist/{layers.De9n7YOa.js → layers.1QSMi-_x.js} +1 -1
  8. package/dist/{layers.p9WHA7Q4.js → layers.4f0VywGG.js} +1 -1
  9. package/dist/{layers.6fz8mhIy.js → layers.7DyghSdd.js} +3 -3
  10. package/dist/{layers.ZPwt0ARg.js → layers.7H2hk91s.js} +4 -4
  11. package/dist/{layers.BLERm4JI.js → layers.9BQ-j9b1.js} +1 -1
  12. package/dist/{layers.AnDKLrww.js → layers.9kfzWn6n.js} +1 -1
  13. package/dist/{layers.yYZmlguV.js → layers.Avw7vzsL.js} +1 -1
  14. package/dist/{layers.DO6cpPmP.js → layers.B-2Agz6g.js} +1 -1
  15. package/dist/{layers.9tX9hjoM.js → layers.B2AGu32C.js} +61 -61
  16. package/dist/{layers.CWp4CXzt.js → layers.B2V-AGtO.js} +1 -1
  17. package/dist/{layers.NnudF1z1.js → layers.B38zMYqc.js} +1 -1
  18. package/dist/{layers.Cx-pu1yH.js → layers.B3D0ozHh.js} +1 -1
  19. package/dist/{layers.D3DzFC8v.js → layers.B4v9cXcW.js} +1 -1
  20. package/dist/{layers.CJoRvtjW.js → layers.B5ZMW42w.js} +1 -1
  21. package/dist/{layers.D37LQsFw.js → layers.B6I3YJpy.js} +1 -1
  22. package/dist/{layers.DIZ5X4_I.js → layers.B9-0DFwd.js} +1 -1
  23. package/dist/{layers.DuipK3Ob.js → layers.B9EQFOJG.js} +1 -1
  24. package/dist/{layers.h3NG2lgR.js → layers.BG6mY0qN.js} +8 -8
  25. package/dist/{layers.BPBHGe-Y.js → layers.BGvhVXV5.js} +1 -1
  26. package/dist/{layers.CK6kfcWt.js → layers.BI3RQUVK.js} +1 -1
  27. package/dist/{layers.KvpxP4O1.js → layers.BJ29ESN5.js} +1 -1
  28. package/dist/{layers.C0N351va.js → layers.BJIPGmjL.js} +1 -1
  29. package/dist/{layers.YCeFD2c8.js → layers.BJLo5JWR.js} +1 -1
  30. package/dist/{layers.DoYDAiBT.js → layers.BL-oxRdC.js} +3 -3
  31. package/dist/{layers.CjN38zEr.js → layers.BNMsRKs9.js} +4 -4
  32. package/dist/{layers.BYI9AcLy.js → layers.BNoEeaBk.js} +1 -1
  33. package/dist/{layers.CJICnJCV.js → layers.BOStBqIO.js} +3 -3
  34. package/dist/{layers.BjI638wH.js → layers.BPUQUZOV.js} +1 -1
  35. package/dist/{layers.Cn2OUOlA.js → layers.BRp0_7zN.js} +1 -1
  36. package/dist/{layers.BGzd1JuJ.js → layers.BT8KfR1M.js} +1 -1
  37. package/dist/{layers.4p8YmxDN.js → layers.BTt8miT1.js} +1 -1
  38. package/dist/{layers.8kahG6oJ.js → layers.BVdGknCj.js} +1 -1
  39. package/dist/{layers.54Tc1YxQ.js → layers.BYDe5vrL.js} +1 -1
  40. package/dist/{layers.DHJnmWxW.js → layers.BZBVBeGI.js} +1 -1
  41. package/dist/{layers.BN6oaAcV.js → layers.BaLepxRQ.js} +1 -1
  42. package/dist/{layers.Ccrp4CFW.js → layers.BcZUwFgi.js} +1 -1
  43. package/dist/{layers.BibExETR.js → layers.Bh3gFN_z.js} +1 -1
  44. package/dist/{layers.DopcmQlb.js → layers.BhFgBMN4.js} +3 -3
  45. package/dist/{layers.B_eHeG-P.js → layers.BhigGvNe.js} +1 -1
  46. package/dist/{layers.Da5wd5fu.js → layers.Bj2JWvpG.js} +6 -6
  47. package/dist/{layers.XJN2EecE.js → layers.BkVZt0ju.js} +1 -1
  48. package/dist/{layers.DjGGx0oT.js → layers.BkXEjwFz.js} +1 -1
  49. package/dist/{layers.Dg6j9YQp.js → layers.BmZ693BV.js} +1 -1
  50. package/dist/{layers.rpk8I3Rs.js → layers.Bmew0wf2.js} +1 -1
  51. package/dist/{layers.BR6FKcCi.js → layers.Bmw91Wbq.js} +2 -2
  52. package/dist/{layers.7LP4sl4i.js → layers.BoXbCVBF.js} +1 -1
  53. package/dist/{layers.CFTyK_53.js → layers.BptRHkWH.js} +1 -1
  54. package/dist/{layers.COaVNa3J.js → layers.BrMvV8BA.js} +1 -1
  55. package/dist/{layers.DtHiAm2x.js → layers.BsuTIILN.js} +1 -1
  56. package/dist/{layers.BBPJiVt_.js → layers.BtYE_uHn.js} +1 -1
  57. package/dist/{layers.By0VUYTt.js → layers.BtjK1dIG.js} +1 -1
  58. package/dist/{layers.xBfWKmSJ.js → layers.BxqcV34r.js} +1 -1
  59. package/dist/{layers.BeXhszpn.js → layers.ByQQHL7z.js} +1 -1
  60. package/dist/{layers.BYgxhJ2H.js → layers.BzPqIGLS.js} +2 -2
  61. package/dist/{layers.C0iVcAVM.js → layers.Bz_62Cl5.js} +1 -1
  62. package/dist/{layers.BUL_tJ_V.js → layers.C-d_E1Ka.js} +1 -1
  63. package/dist/{layers.DbV2OQTU.js → layers.C-osLaXj.js} +1 -1
  64. package/dist/{layers.BulZ9Hg5.js → layers.C0UPWEnP.js} +1 -1
  65. package/dist/{layers.BWA8I_x-.js → layers.C3DaUVgk.js} +1 -1
  66. package/dist/{layers.DQ5a8XKW.js → layers.C3EKAF4C.js} +2 -2
  67. package/dist/{layers.pokjdt_3.js → layers.C3zQ2371.js} +1 -1
  68. package/dist/{layers.BYHCaf8U.js → layers.C6I77Qap.js} +1 -1
  69. package/dist/{layers.DREnsI7H.js → layers.C6gS-yKz.js} +1 -1
  70. package/dist/{layers.SODdZbOE.js → layers.C70E0m20.js} +1 -1
  71. package/dist/{layers.BjZEV6Aq.js → layers.C9ImPFrJ.js} +1 -1
  72. package/dist/{layers.CRVR4YuW.js → layers.CC1qZBeR.js} +1 -1
  73. package/dist/{layers.DCI0zSyG.js → layers.CDW179o_.js} +1 -1
  74. package/dist/{layers.Bsj1UPnB.js → layers.CF1t_7GJ.js} +4 -4
  75. package/dist/{layers.Dk11VbXd.js → layers.CK3zr9KH.js} +4 -4
  76. package/dist/layers.CL0HBDKb.js +8 -0
  77. package/dist/{layers.ENpPel-B.js → layers.CN5rweSl.js} +1 -1
  78. package/dist/{layers.Ca9Qs1aF.js → layers.CNhu_k13.js} +1 -1
  79. package/dist/{layers.CtAC81Yd.js → layers.CORGsFNw.js} +3 -3
  80. package/dist/{layers.COnFY5ca.js → layers.COwSqhBl.js} +1 -1
  81. package/dist/{layers.DBaYkfd7.js → layers.CPSDnV9M.js} +1 -1
  82. package/dist/{layers.BxSS9Pvh.js → layers.CPqeg0Ra.js} +1 -1
  83. package/dist/{layers.CSq1Iw0G.js → layers.CSVxPHgX.js} +1 -1
  84. package/dist/{layers.Dd9_MkvE.js → layers.CWDqV99i.js} +1 -1
  85. package/dist/{layers.B3UVztxO.js → layers.CZa6u_49.js} +1 -1
  86. package/dist/{layers.Dsgl1vaz.js → layers.CZaAwSnp.js} +1 -1
  87. package/dist/{layers.vCqxHI3z.js → layers.C_J07V45.js} +1 -1
  88. package/dist/{layers.BBQw64jO.js → layers.Ccx_jdDc.js} +1 -1
  89. package/dist/{layers.QIvDpvVQ.js → layers.CfKYFPLY.js} +1 -1
  90. package/dist/{layers.BmKVSmhm.js → layers.Cg6orZMG.js} +1 -1
  91. package/dist/{layers.AgUsUEui.js → layers.CgE6qQ5L.js} +1 -1
  92. package/dist/{layers.CqrTE-hY.js → layers.CjYZxxVE.js} +1 -1
  93. package/dist/{layers.DehcW_fP.js → layers.CjkrmuRP.js} +1 -1
  94. package/dist/{layers.Db4TMShZ.js → layers.Cm2uuuwn.js} +1 -1
  95. package/dist/{layers.Daj7r1fx.js → layers.CmLStJ73.js} +1 -1
  96. package/dist/{layers.DhvaBoMA.js → layers.CmmrFN9j.js} +1 -1
  97. package/dist/{layers.B4FpUxDa.js → layers.CoROu3H7.js} +5 -5
  98. package/dist/{layers.B6x0NWSf.js → layers.CodmL7NO.js} +1 -1
  99. package/dist/{layers.wh0fvYii.js → layers.CpbthWYa.js} +1 -1
  100. package/dist/{layers.yNB323QO.js → layers.CqzlfPSF.js} +1 -1
  101. package/dist/{layers.rtAv7vHR.js → layers.Cr1DWRto.js} +1 -1
  102. package/dist/{layers.DOm96wf_.js → layers.CrB3Zb2x.js} +1 -1
  103. package/dist/{layers.CNmlFD-E.js → layers.CrfCFcMZ.js} +1 -1
  104. package/dist/{layers.DUt_7Rf9.js → layers.Cs24L6er.js} +6 -6
  105. package/dist/layers.Ct0DRUg_.js +1 -0
  106. package/dist/{layers.URwK-HsQ.js → layers.CttOELwv.js} +1 -1
  107. package/dist/{layers.CHeNBIBF.js → layers.CvKw-DxT.js} +1 -1
  108. package/dist/{layers.BeYv29mO.js → layers.Cwb3OGVv.js} +1 -1
  109. package/dist/{layers.gwM1wxEs.js → layers.Cwpt8FED.js} +4 -4
  110. package/dist/{layers.py3N1aT9.js → layers.CziY3yM5.js} +1 -1
  111. package/dist/{layers.CvUaR9Ss.js → layers.D1V3WzgA.js} +1 -1
  112. package/dist/{layers.BVbRPXwe.js → layers.D2ygghSU.js} +1 -1
  113. package/dist/{layers.DaffRyZr.js → layers.D3ocnEt9.js} +1 -1
  114. package/dist/{layers.BcUJ1vkK.js → layers.D6WpII_G.js} +1 -1
  115. package/dist/{layers.ChNnfooY.js → layers.D75L8dNA.js} +1 -1
  116. package/dist/{layers.B9XSsEaf.js → layers.D8tNnlFJ.js} +1 -1
  117. package/dist/{layers.jn-whuI5.js → layers.D8ysDvOA.js} +1 -1
  118. package/dist/{layers.EdrHmpzc.js → layers.DB6anrkN.js} +1 -1
  119. package/dist/{layers.ChuFem-X.js → layers.DB6hi1y0.js} +1 -1
  120. package/dist/{layers.DeBvAdqq.js → layers.DFavHiGU.js} +3 -3
  121. package/dist/{layers.KmCp1M0J.js → layers.DFlI7VDJ.js} +1 -1
  122. package/dist/{layers.CJ7EyKJq.js → layers.DFvpMrzH.js} +2 -2
  123. package/dist/{layers.CluVRSFu.js → layers.DH5HZa7n.js} +1 -1
  124. package/dist/{layers.CWqX-6eZ.js → layers.DHt4or2o.js} +1 -1
  125. package/dist/{layers.Dxymg-Ks.js → layers.DMkddGNO.js} +1 -1
  126. package/dist/{layers.CLyx8bbC.js → layers.DOciqx24.js} +1 -1
  127. package/dist/{layers.C2dg4Ra5.js → layers.DPVfa6fS.js} +1 -1
  128. package/dist/{layers.CyU10-QV.js → layers.DQ7Nvo_L.js} +1 -1
  129. package/dist/{layers.jioCPqo7.js → layers.DQNvPUlq.js} +1 -1
  130. package/dist/{layers.B4cnEWMy.js → layers.DQaebS92.js} +4 -4
  131. package/dist/{layers.BUHaVYsC.js → layers.DSIe2dHd.js} +5 -5
  132. package/dist/{layers.CxxIg0J_.js → layers.DUI3C3j9.js} +3 -3
  133. package/dist/{layers.Prhzv4i_.js → layers.DVZQDO2H.js} +1 -1
  134. package/dist/{layers.TboQ6oBA.js → layers.DVnPMejm.js} +1 -1
  135. package/dist/{layers.jwoHxdbD.js → layers.DW4BQSJ8.js} +1 -1
  136. package/dist/{layers.BvbiqAtz.js → layers.DWoWjRJL.js} +57 -57
  137. package/dist/{layers.iWVrH8Sx.js → layers.DWuymhXL.js} +3 -3
  138. package/dist/{layers.B4x1xhoo.js → layers.DXPZsDHJ.js} +1 -1
  139. package/dist/{layers.Bk-EEPK7.js → layers.DXpfzzGt.js} +1 -1
  140. package/dist/{layers.a-io35hY.js → layers.DZ7MGY88.js} +1 -1
  141. package/dist/{layers.BKOdDL4i.js → layers.DZsdy0DH.js} +1 -1
  142. package/dist/{layers.D7KJSMh5.js → layers.D_333SnD.js} +1 -1
  143. package/dist/{layers.B9jtZwqb.js → layers.D_5iJWZ2.js} +1 -1
  144. package/dist/{layers.ZeKAfHim.js → layers.D_n26XD3.js} +1 -1
  145. package/dist/{layers.WQBy9a1J.js → layers.DcqukeAl.js} +1 -1
  146. package/dist/{layers.H2vFWKGJ.js → layers.De1Uc3Vw.js} +1 -1
  147. package/dist/{layers.pX7mvaZb.js → layers.DevUJEkT.js} +1 -1
  148. package/dist/{layers.CcTBk9Ib.js → layers.Df9Krzx8.js} +1 -1
  149. package/dist/{layers.D1-lZHlX.js → layers.DfuGhvO1.js} +1 -1
  150. package/dist/{layers.E_17qoVF.js → layers.DgiHNGIs.js} +1 -1
  151. package/dist/{layers.v-I87Jjd.js → layers.Dgsmf1FS.js} +1 -1
  152. package/dist/{layers.BWBv335Y.js → layers.Dh1TDZhz.js} +1 -1
  153. package/dist/{layers.HarNpoUB.js → layers.DiIXndSw.js} +1 -1
  154. package/dist/{layers.BgMWFN7W.js → layers.DjUjt1kv.js} +1 -1
  155. package/dist/{layers.gZNgK0A9.js → layers.DkUkY53Y.js} +1 -1
  156. package/dist/{layers.Bmk3P1xT.js → layers.DkVg4_Jv.js} +1 -1
  157. package/dist/{layers.CXTbtDQV.js → layers.Dl1Wykni.js} +1 -1
  158. package/dist/{layers.vC6Sof4v.js → layers.DlyA9BuX.js} +1 -1
  159. package/dist/{layers.D1LBfKux.js → layers.Do8k3TIT.js} +1 -1
  160. package/dist/{layers.BXLHLHn_.js → layers.DpzfdzUl.js} +1 -1
  161. package/dist/{layers.CPV8DYpm.js → layers.Drf0CMox.js} +2 -2
  162. package/dist/{layers.xSDBYrUl.js → layers.Dtaao22P.js} +1 -1
  163. package/dist/{layers.DtYTJii1.js → layers.Dwf5mgJ1.js} +1 -1
  164. package/dist/{layers.DWIHkevn.js → layers.DyNhAzV2.js} +1 -1
  165. package/dist/{layers.fh7OmQT5.js → layers.DyONIYcr.js} +1 -1
  166. package/dist/{layers.pFw8FP1s.js → layers.DyrZPkik.js} +1 -1
  167. package/dist/{layers.DhDloAc3.js → layers.DzDUVFKj.js} +1 -1
  168. package/dist/{layers.HLP_ehOT.js → layers.HWxz-tJ3.js} +1 -1
  169. package/dist/{layers.DJnVHiT2.js → layers.IeSUpgxC.js} +1 -1
  170. package/dist/{layers.BJJ5XB-5.js → layers.KIMloKsC.js} +1 -1
  171. package/dist/{layers.BCBQxNtt.js → layers.Km9VcCuU.js} +1 -1
  172. package/dist/{layers.BYLZH1LA.js → layers.L954tLhU.js} +1 -1
  173. package/dist/{layers.C8EvMkeq.js → layers.MrEIuZzI.js} +1 -1
  174. package/dist/{layers.DTihJxDz.js → layers.NvqS56wN.js} +1 -1
  175. package/dist/{layers.BQt4kMbw.js → layers.PJs6vfib.js} +3 -3
  176. package/dist/{layers.HuHd79bM.js → layers.PrcRgP7m.js} +1 -1
  177. package/dist/{layers.C-rLUneL.js → layers.QHG4lBaG.js} +12 -12
  178. package/dist/{layers.CKhk7uha.js → layers.R3Qu3-UZ.js} +1 -1
  179. package/dist/{layers.BzqPLHZT.js → layers.R5wDWcDd.js} +1 -1
  180. package/dist/{layers.jXB4oB52.js → layers.S65vvX5F.js} +1 -1
  181. package/dist/{layers.ThFR00SD.js → layers.SB3PNmUy.js} +1 -1
  182. package/dist/{layers.ByQMFKH-.js → layers.SwIVAd47.js} +1 -1
  183. package/dist/layers.TBTzEtmF.js +6 -0
  184. package/dist/{layers.BWQeLzFA.js → layers.WvBWtmCH.js} +1 -1
  185. package/dist/{layers.DMK9EqPJ.js → layers.aFLgLw_O.js} +1 -1
  186. package/dist/{layers.BM0oXiml.js → layers.bJmcOC1E.js} +1 -1
  187. package/dist/{layers.DqwBZwUA.js → layers.c4ZSZVAm.js} +7772 -7780
  188. package/dist/layers.coOwQC7E.js +1 -0
  189. package/dist/{layers.Z0ysOUsU.js → layers.duxpp3Un.js} +2 -2
  190. package/dist/{layers.BOSha48t.js → layers.dzfXP3Qw.js} +1 -1
  191. package/dist/{layers.BhChXVPM.js → layers.gv3F3_Rx.js} +1 -1
  192. package/dist/{layers.DORKw3TG.js → layers.gz5WkS5b.js} +3 -3
  193. package/dist/{layers.C5mkNc-W.js → layers.hY2rmLyE.js} +1 -1
  194. package/dist/{layers.BoV5Y_mD.js → layers.jPwPChUh.js} +1 -1
  195. package/dist/{layers.HEy8-Sql.js → layers.lZ1kDwoT.js} +1271 -1263
  196. package/dist/{layers.DeewAwHX.js → layers.mKWbgtOH.js} +30 -30
  197. package/dist/{layers.kbHUB2aY.js → layers.nsyW2tut.js} +4 -4
  198. package/dist/{layers.DTMOFBdi.js → layers.psU6CTXa.js} +1 -1
  199. package/dist/{layers.CDE8Hsm9.js → layers.puqicLst.js} +1 -1
  200. package/dist/{layers.B7dcvVUG.js → layers.rxmTxykj.js} +4 -4
  201. package/dist/{layers.Cu83gUax.js → layers.uoxQMub-.js} +1 -1
  202. package/dist/{layers.BEVANzs8.js → layers.usBMILM2.js} +1 -1
  203. package/dist/{layers.D5PVaHQj.js → layers.uu94UlHW.js} +1 -1
  204. package/dist/{layers.Sa--wyKU.js → layers.vZ-0Pws1.js} +1 -1
  205. package/dist/{layers.CTWosVVW.js → layers.wYQh6HY5.js} +2 -2
  206. package/dist/{layers.BNxV94q8.js → layers.xaLGXX6n.js} +1 -1
  207. package/dist/{layers.OqW1R3ng.js → layers.xyZn39Nw.js} +1 -1
  208. package/package.json +1 -1
  209. package/dist/layers.BvPxpYYa.js +0 -8
  210. package/dist/layers.Ck0PqeB5.js +0 -1
  211. package/dist/layers.gv-EBYMN.js +0 -1
  212. package/dist/layers.lsVmjvoj.js +0 -6
@@ -1,22 +1,22 @@
1
- "use strict";const qt=require("./layers.h3NG2lgR.js"),Ih=require("./layers.BvbiqAtz.js"),Ir=20,Mh={rect:"rectangle",circle:"ellipse"},os={startOnLoad:!1,flowchart:{curve:"linear"},themeVariables:{fontSize:`${Ir*1.25}px`},maxEdges:500,maxTextSize:5e4};class Mr{constructor({converter:e}){this.convert=(i,r)=>this.converter(i,{...r,fontSize:r.fontSize||Ir}),this.converter=e}}var me;(function(t){t.ROUND="round",t.STADIUM="stadium",t.DOUBLECIRCLE="doublecircle",t.CIRCLE="circle",t.DIAMOND="diamond"})(me||(me={}));var Fn;(function(t){t.COLOR="color"})(Fn||(Fn={}));var $e;(function(t){t.FILL="fill",t.STROKE="stroke",t.STROKE_WIDTH="stroke-width",t.STROKE_DASHARRAY="stroke-dasharray"})($e||($e={}));var hi={},ss;function $h(){if(ss)return hi;ss=1,Object.defineProperty(hi,"__esModule",{value:!0}),hi.removeMarkdown=void 0;var t=function(e,i){i===void 0&&(i={listUnicodeChar:""}),i=i||{},i.listUnicodeChar=i.hasOwnProperty("listUnicodeChar")?i.listUnicodeChar:!1,i.stripListLeaders=i.hasOwnProperty("stripListLeaders")?i.stripListLeaders:!0,i.gfm=i.hasOwnProperty("gfm")?i.gfm:!0,i.useImgAltText=i.hasOwnProperty("useImgAltText")?i.useImgAltText:!0,i.preserveLinks=i.hasOwnProperty("preserveLinks")?i.preserveLinks:!1;var r=e||"";r=r.replace(/^(-\s*?|\*\s*?|_\s*?){3,}\s*$/gm,"");try{i.stripListLeaders&&(i.listUnicodeChar?r=r.replace(/^([\s\t]*)([\*\-\+]|\d+\.)\s+/gm,i.listUnicodeChar+" $1"):r=r.replace(/^([\s\t]*)([\*\-\+]|\d+\.)\s+/gm,"$1")),i.gfm&&(r=r.replace(/\n={2,}/g,`
1
+ "use strict";const qt=require("./layers.BG6mY0qN.js"),Ih=require("./layers.DWoWjRJL.js"),Ir=20,Mh={rect:"rectangle",circle:"ellipse"},ss={startOnLoad:!1,flowchart:{curve:"linear"},themeVariables:{fontSize:`${Ir*1.25}px`},maxEdges:500,maxTextSize:5e4};class Mr{constructor({converter:e}){this.convert=(i,r)=>this.converter(i,{...r,fontSize:r.fontSize||Ir}),this.converter=e}}var ye;(function(t){t.ROUND="round",t.STADIUM="stadium",t.DOUBLECIRCLE="doublecircle",t.CIRCLE="circle",t.DIAMOND="diamond"})(ye||(ye={}));var On;(function(t){t.COLOR="color"})(On||(On={}));var De;(function(t){t.FILL="fill",t.STROKE="stroke",t.STROKE_WIDTH="stroke-width",t.STROKE_DASHARRAY="stroke-dasharray"})(De||(De={}));var hi={},as;function $h(){if(as)return hi;as=1,Object.defineProperty(hi,"__esModule",{value:!0}),hi.removeMarkdown=void 0;var t=function(e,i){i===void 0&&(i={listUnicodeChar:""}),i=i||{},i.listUnicodeChar=i.hasOwnProperty("listUnicodeChar")?i.listUnicodeChar:!1,i.stripListLeaders=i.hasOwnProperty("stripListLeaders")?i.stripListLeaders:!0,i.gfm=i.hasOwnProperty("gfm")?i.gfm:!0,i.useImgAltText=i.hasOwnProperty("useImgAltText")?i.useImgAltText:!0,i.preserveLinks=i.hasOwnProperty("preserveLinks")?i.preserveLinks:!1;var r=e||"";r=r.replace(/^(-\s*?|\*\s*?|_\s*?){3,}\s*$/gm,"");try{i.stripListLeaders&&(i.listUnicodeChar?r=r.replace(/^([\s\t]*)([\*\-\+]|\d+\.)\s+/gm,i.listUnicodeChar+" $1"):r=r.replace(/^([\s\t]*)([\*\-\+]|\d+\.)\s+/gm,"$1")),i.gfm&&(r=r.replace(/\n={2,}/g,`
2
2
  `).replace(/~{3}.*\n/g,"").replace(/~~/g,"").replace(/`{3}.*\n/g,"")),i.preserveLinks&&(r=r.replace(/\[(.*?)\][\[\(](.*?)[\]\)]/g,"$1 ($2)")),r=r.replace(/<[^>]*>/g,"").replace(/^[=\-]{2,}\s*$/g,"").replace(/\[\^.+?\](\: .*?$)?/g,"").replace(/\s{0,2}\[.*?\]: .*?$/g,"").replace(/\!\[(.*?)\][\[\(].*?[\]\)]/g,i.useImgAltText?"$1":"").replace(/\[(.*?)\][\[\(].*?[\]\)]/g,"$1").replace(/^\s{0,3}>\s?/g,"").replace(/(^|\n)\s{0,3}>\s?/g,`
3
3
 
4
4
  `).replace(/^\s{1,2}\[(.*?)\]: (\S+)( ".*?")?\s*$/g,"").replace(/^(\n)?\s{0,}#{1,6}\s+| {0,}(\n)?\s{0,}#{0,} {0,}(\n)?\s{0,}$/gm,"$1$2$3").replace(/([\*_]{1,3})(\S.*?\S{0,1})\1/g,"$2").replace(/([\*_]{1,3})(\S.*?\S{0,1})\1/g,"$2").replace(/(`{3,})(.*?)\1/gm,"$2").replace(/`(.+?)`/g,"$1").replace(/\n{2,}/g,`
5
5
 
6
- `)}catch(n){return console.error(n),e}return r};return hi.removeMarkdown=t,hi}var Dh=$h();const Nh={arrow_circle:{endArrowhead:"dot"},arrow_cross:{endArrowhead:"bar"},arrow_open:{endArrowhead:null,startArrowhead:null},double_arrow_circle:{endArrowhead:"dot",startArrowhead:"dot"},double_arrow_cross:{endArrowhead:"bar",startArrowhead:"bar"},double_arrow_point:{endArrowhead:"arrow",startArrowhead:"arrow"}},Ph=t=>Nh[t],Gi=t=>{let e=t.text;return t.labelType==="markdown"&&(e=Dh.removeMarkdown(t.text)),Rh(e)},Rh=t=>{const e=/\s?(fa|fab):[a-zA-Z0-9-]+/g;return t.replace(e,"")},qh=t=>{const e={};return Object.keys(t).forEach(i=>{var r;switch(i){case $e.FILL:{e.backgroundColor=t[i],e.fillStyle="solid";break}case $e.STROKE:{e.strokeColor=t[i];break}case $e.STROKE_WIDTH:{e.strokeWidth=Number((r=t[i])==null?void 0:r.split("px")[0]);break}case $e.STROKE_DASHARRAY:{e.strokeStyle="dashed";break}}}),e},zh=t=>{const e={};return Object.keys(t).forEach(i=>{switch(i){case Fn.COLOR:{e.strokeColor=t[i];break}}}),e},Wh=t=>{const e={};t.subGraphs.map(r=>{r.nodeIds.forEach(n=>{e[r.id]={id:r.id,parent:null,isLeaf:!1},e[n]={id:n,parent:r.id,isLeaf:t.vertices[n]!==void 0}})});const i={};return[...Object.keys(t.vertices),...t.subGraphs.map(r=>r.id)].forEach(r=>{if(!e[r])return;let n=e[r];const s=[];for(n.isLeaf||s.push(`subgraph_group_${n.id}`);n.parent;)s.push(`subgraph_group_${n.parent}`),n=e[n.parent];i[r]=s}),{getGroupIds:r=>i[r]||[],getParentId:r=>e[r]?e[r].parent:null}},Hh=new Mr({converter:(t,e)=>{const i=[],r=e.fontSize,{getGroupIds:n,getParentId:s}=Wh(t);return t.subGraphs.reverse().forEach(o=>{const a=n(o.id),l={id:o.id,type:"rectangle",groupIds:a,x:o.x,y:o.y,width:o.width,height:o.height,label:{groupIds:a,text:Gi(o),fontSize:r,verticalAlign:"top"}};i.push(l)}),Object.values(t.vertices).forEach(o=>{if(!o)return;const a=n(o.id),l=qh(o.containerStyle),c=zh(o.labelStyle);let h={id:o.id,type:"rectangle",groupIds:a,x:o.x,y:o.y,width:o.width,height:o.height,strokeWidth:2,label:{groupIds:a,text:Gi(o),fontSize:r,...c},link:o.link||null,...l};switch(o.type){case me.STADIUM:{h={...h,roundness:{type:3}};break}case me.ROUND:{h={...h,roundness:{type:3}};break}case me.DOUBLECIRCLE:{a.push(`doublecircle_${o.id}}`);const u={type:"ellipse",groupIds:a,x:o.x+5,y:o.y+5,width:o.width-10,height:o.height-10,strokeWidth:2,roundness:{type:3},label:{groupIds:a,text:Gi(o),fontSize:r}};h={...h,groupIds:a,type:"ellipse"},i.push(u);break}case me.CIRCLE:{h.type="ellipse";break}case me.DIAMOND:{h.type="diamond";break}}i.push(h)}),t.edges.forEach(o=>{let a=[];const l=s(o.start),c=s(o.end);l&&l===c&&(a=n(l));const{startX:h,startY:d,reflectionPoints:u}=o,f=u.map(P=>[P.x-u[0].x,P.y-u[0].y]),m=Ph(o.type),_={id:`${o.start}_${o.end}`,type:"arrow",groupIds:a,x:h,y:d,strokeWidth:o.stroke==="thick"?4:2,strokeStyle:o.stroke==="dotted"?"dashed":void 0,points:f,...o.text?{label:{text:Gi(o),fontSize:r,groupIds:a}}:{},roundness:{type:2},...m},L=i.find(P=>P.id===o.start),b=i.find(P=>P.id===o.end);!L||!b||(_.start={id:L.id||""},_.end={id:b.id||""},i.push(_))}),{elements:i}}}),Yh=new Mr({converter:t=>{const e=qt.nanoid(),{width:i,height:r}=t,n={type:"image",x:0,y:0,width:i,height:r,status:"saved",fileId:e};return{files:{[e]:{id:e,mimeType:t.mimeType,dataURL:t.dataURL}},elements:[n]}}}),oo=t=>t.replace(/\\n/g,`
7
- `),vi=t=>{const e={type:"line",x:t.startX,y:t.startY,points:[[0,0],[t.endX-t.startX,t.endY-t.startY]],width:t.endX-t.startX,height:t.endY-t.startY,strokeStyle:t.strokeStyle||"solid",strokeColor:t.strokeColor||"#000",strokeWidth:t.strokeWidth||1};return t.groupId&&Object.assign(e,{groupIds:[t.groupId]}),t.id&&Object.assign(e,{id:t.id}),e},fr=t=>{const e={type:"text",x:t.x,y:t.y,width:t.width,height:t.height,text:oo(t.text)||"",fontSize:t.fontSize,verticalAlign:"middle"};return t.groupId&&Object.assign(e,{groupIds:[t.groupId]}),t.id&&Object.assign(e,{id:t.id}),e},_i=t=>{var r,n,s,o;let e={};t.type==="rectangle"&&t.subtype==="activation"&&(e={backgroundColor:"#e9ecef",fillStyle:"solid"});const i={id:t.id,type:t.type,x:t.x,y:t.y,width:t.width,height:t.height,label:{text:oo(((r=t==null?void 0:t.label)==null?void 0:r.text)||""),fontSize:(n=t==null?void 0:t.label)==null?void 0:n.fontSize,verticalAlign:((s=t.label)==null?void 0:s.verticalAlign)||"middle",strokeColor:((o=t.label)==null?void 0:o.color)||"#000",groupIds:t.groupId?[t.groupId]:[]},strokeStyle:t==null?void 0:t.strokeStyle,strokeWidth:t==null?void 0:t.strokeWidth,strokeColor:t==null?void 0:t.strokeColor,backgroundColor:t==null?void 0:t.bgColor,fillStyle:"solid",...e};return t.groupId&&Object.assign(i,{groupIds:[t.groupId]}),i},va=t=>{var i;const e={type:"arrow",x:t.startX,y:t.startY,points:t.points||[[0,0],[t.endX-t.startX,t.endY-t.startY]],width:t.endX-t.startX,height:t.endY-t.startY,strokeStyle:(t==null?void 0:t.strokeStyle)||"solid",endArrowhead:(t==null?void 0:t.endArrowhead)||null,startArrowhead:(t==null?void 0:t.startArrowhead)||null,label:{text:oo(((i=t==null?void 0:t.label)==null?void 0:i.text)||""),fontSize:16},roundness:{type:2},start:t.start,end:t.end};return t.groupId&&Object.assign(e,{groupIds:[t.groupId]}),e},jh=new Mr({converter:t=>{const e=[],i=[];if(Object.values(t.nodes).forEach(r=>{!r||!r.length||r.forEach(n=>{let s;switch(n.type){case"line":s=vi(n);break;case"rectangle":case"ellipse":s=_i(n);break;case"text":s=fr(n);break;default:throw`unknown type ${n.type}`}n.type==="rectangle"&&(n==null?void 0:n.subtype)==="activation"?i.push(s):e.push(s)})}),Object.values(t.lines).forEach(r=>{r&&e.push(vi(r))}),Object.values(t.arrows).forEach(r=>{r&&(e.push(va(r)),r.sequenceNumber&&e.push(_i(r.sequenceNumber)))}),e.push(...i),t.loops){const{lines:r,texts:n,nodes:s}=t.loops;r.forEach(o=>{e.push(vi(o))}),n.forEach(o=>{e.push(fr(o))}),s.forEach(o=>{e.push(_i(o))})}return t.groups&&t.groups.forEach(r=>{const{actorKeys:n,name:s}=r;let o=1/0,a=1/0,l=0,c=0;if(!n.length)return;e.filter(S=>{if(S.id){const U=S.id.indexOf("-"),N=S.id.substring(0,U);return n.includes(N)}}).forEach(S=>{if(S.x===void 0||S.y===void 0||S.width===void 0||S.height===void 0)throw new Error(`Actor attributes missing ${S}`);o=Math.min(o,S.x),a=Math.min(a,S.y),l=Math.max(l,S.x+S.width),c=Math.max(c,S.y+S.height)});const d=10,u=o-d,f=a-d,m=l-o+d*2,y=c-a+d*2,_=qt.nanoid(),L=_i({type:"rectangle",x:u,y:f,width:m,height:y,bgColor:r.fill,id:_});e.unshift(L);const b=qt.nanoid(),P=[_];e.forEach(S=>{if(S.type!=="frame"){if(S.x===void 0||S.y===void 0||S.width===void 0||S.height===void 0)throw new Error(`Element attributes missing ${S}`);if(S.x>=o&&S.x+S.width<=l&&S.y>=a&&S.y+S.height<=c){const U=S.id||qt.nanoid();S.id||Object.assign(S,{id:U}),P.push(U)}}});const C={type:"frame",id:b,name:s,children:P};e.push(C)}),{elements:e}}}),Uh=new Mr({converter:t=>{const e=[];return Object.values(t.nodes).forEach(i=>{!i||!i.length||i.forEach(r=>{let n;switch(r.type){case"line":n=vi(r);break;case"rectangle":case"ellipse":n=_i(r);break;case"text":n=fr(r);break;default:throw`unknown type ${r.type}`}e.push(n)})}),Object.values(t.lines).forEach(i=>{i&&e.push(vi(i))}),Object.values(t.arrows).forEach(i=>{if(!i)return;const r=va(i);e.push(r)}),Object.values(t.text).forEach(i=>{const r=fr(i);e.push(r)}),Object.values(t.namespaces).forEach(i=>{const r=Object.keys(i.classes),n=[...r],s=[...t.lines,...t.arrows,...t.text];r.forEach(a=>{const l=s.filter(c=>c.metadata&&c.metadata.classId===a).map(c=>c.id);l.length&&n.push(...l)});const o={type:"frame",id:qt.nanoid(),name:i.id,children:n};e.push(o)}),{elements:e}}}),Xh=(t,e={})=>{switch(t.type){case"graphImage":return Yh.convert(t,e);case"flowchart":return Hh.convert(t,e);case"sequence":return jh.convert(t,e);case"class":return Uh.convert(t,e);default:throw new Error(`graphToExcalidraw: unknown graph type "${t.type}, only flowcharts are supported!"`)}};function Sa(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];var r=Array.from(typeof t=="string"?[t]:t);r[r.length-1]=r[r.length-1].replace(/\r?\n([\t ]*)$/,"");var n=r.reduce(function(a,l){var c=l.match(/\n([\t ]+|(?!\s).)/g);return c?a.concat(c.map(function(h){var d,u;return(u=(d=h.match(/[\t ]/g))===null||d===void 0?void 0:d.length)!==null&&u!==void 0?u:0})):a},[]);if(n.length){var s=new RegExp(`
8
- [ ]{`+Math.min.apply(Math,n)+"}","g");r=r.map(function(a){return a.replace(s,`
9
- `)})}r[0]=r[0].replace(/^\r?\n/,"");var o=r[0];return e.forEach(function(a,l){var c=o.match(/(?:^|\n)( *)$/),h=c?c[1]:"",d=a;typeof a=="string"&&a.includes(`
6
+ `)}catch(n){return console.error(n),e}return r};return hi.removeMarkdown=t,hi}var Dh=$h();const Nh={arrow_circle:{endArrowhead:"dot"},arrow_cross:{endArrowhead:"bar"},arrow_open:{endArrowhead:null,startArrowhead:null},double_arrow_circle:{endArrowhead:"dot",startArrowhead:"dot"},double_arrow_cross:{endArrowhead:"bar",startArrowhead:"bar"},double_arrow_point:{endArrowhead:"arrow",startArrowhead:"arrow"}},Ph=t=>Nh[t],Gi=t=>{let e=t.text;return t.labelType==="markdown"&&(e=Dh.removeMarkdown(t.text)),Rh(e)},Rh=t=>{const e=/\s?(fa|fab):[a-zA-Z0-9-]+/g;return t.replace(e,"")},qh=t=>{const e={};return Object.keys(t).forEach(i=>{var r;switch(i){case De.FILL:{e.backgroundColor=t[i],e.fillStyle="solid";break}case De.STROKE:{e.strokeColor=t[i];break}case De.STROKE_WIDTH:{e.strokeWidth=Number((r=t[i])==null?void 0:r.split("px")[0]);break}case De.STROKE_DASHARRAY:{e.strokeStyle="dashed";break}}}),e},zh=t=>{const e={};return Object.keys(t).forEach(i=>{switch(i){case On.COLOR:{e.strokeColor=t[i];break}}}),e},Wh=t=>{const e={};t.subGraphs.map(r=>{r.nodeIds.forEach(n=>{e[r.id]={id:r.id,parent:null,isLeaf:!1},e[n]={id:n,parent:r.id,isLeaf:t.vertices[n]!==void 0}})});const i={};return[...Object.keys(t.vertices),...t.subGraphs.map(r=>r.id)].forEach(r=>{if(!e[r])return;let n=e[r];const o=[];for(n.isLeaf||o.push(`subgraph_group_${n.id}`);n.parent;)o.push(`subgraph_group_${n.parent}`),n=e[n.parent];i[r]=o}),{getGroupIds:r=>i[r]||[],getParentId:r=>e[r]?e[r].parent:null}},Hh=new Mr({converter:(t,e)=>{const i=[],r=e.fontSize,{getGroupIds:n,getParentId:o}=Wh(t);return t.subGraphs.reverse().forEach(s=>{const a=n(s.id),l={id:s.id,type:"rectangle",groupIds:a,x:s.x,y:s.y,width:s.width,height:s.height,label:{groupIds:a,text:Gi(s),fontSize:r,verticalAlign:"top"}};i.push(l)}),Object.values(t.vertices).forEach(s=>{if(!s)return;const a=n(s.id),l=qh(s.containerStyle),c=zh(s.labelStyle);let h={id:s.id,type:"rectangle",groupIds:a,x:s.x,y:s.y,width:s.width,height:s.height,strokeWidth:2,label:{groupIds:a,text:Gi(s),fontSize:r,...c},link:s.link||null,...l};switch(s.type){case ye.STADIUM:{h={...h,roundness:{type:3}};break}case ye.ROUND:{h={...h,roundness:{type:3}};break}case ye.DOUBLECIRCLE:{a.push(`doublecircle_${s.id}}`);const u={type:"ellipse",groupIds:a,x:s.x+5,y:s.y+5,width:s.width-10,height:s.height-10,strokeWidth:2,roundness:{type:3},label:{groupIds:a,text:Gi(s),fontSize:r}};h={...h,groupIds:a,type:"ellipse"},i.push(u);break}case ye.CIRCLE:{h.type="ellipse";break}case ye.DIAMOND:{h.type="diamond";break}}i.push(h)}),t.edges.forEach(s=>{let a=[];const l=o(s.start),c=o(s.end);l&&l===c&&(a=n(l));const{startX:h,startY:d,reflectionPoints:u}=s,f=u.map(P=>[P.x-u[0].x,P.y-u[0].y]),m=Ph(s.type),_={id:`${s.start}_${s.end}`,type:"arrow",groupIds:a,x:h,y:d,strokeWidth:s.stroke==="thick"?4:2,strokeStyle:s.stroke==="dotted"?"dashed":void 0,points:f,...s.text?{label:{text:Gi(s),fontSize:r,groupIds:a}}:{},roundness:{type:2},...m},L=i.find(P=>P.id===s.start),b=i.find(P=>P.id===s.end);!L||!b||(_.start={id:L.id||""},_.end={id:b.id||""},i.push(_))}),{elements:i}}}),Yh=new Mr({converter:t=>{const e=qt.nanoid(),{width:i,height:r}=t,n={type:"image",x:0,y:0,width:i,height:r,status:"saved",fileId:e};return{files:{[e]:{id:e,mimeType:t.mimeType,dataURL:t.dataURL}},elements:[n]}}}),so=t=>t.replace(/\\n/g,`
7
+ `),vi=t=>{const e={type:"line",x:t.startX,y:t.startY,points:[[0,0],[t.endX-t.startX,t.endY-t.startY]],width:t.endX-t.startX,height:t.endY-t.startY,strokeStyle:t.strokeStyle||"solid",strokeColor:t.strokeColor||"#000",strokeWidth:t.strokeWidth||1};return t.groupId&&Object.assign(e,{groupIds:[t.groupId]}),t.id&&Object.assign(e,{id:t.id}),e},fr=t=>{const e={type:"text",x:t.x,y:t.y,width:t.width,height:t.height,text:so(t.text)||"",fontSize:t.fontSize,verticalAlign:"middle"};return t.groupId&&Object.assign(e,{groupIds:[t.groupId]}),t.id&&Object.assign(e,{id:t.id}),e},_i=t=>{var r,n,o,s;let e={};t.type==="rectangle"&&t.subtype==="activation"&&(e={backgroundColor:"#e9ecef",fillStyle:"solid"});const i={id:t.id,type:t.type,x:t.x,y:t.y,width:t.width,height:t.height,label:{text:so(((r=t==null?void 0:t.label)==null?void 0:r.text)||""),fontSize:(n=t==null?void 0:t.label)==null?void 0:n.fontSize,verticalAlign:((o=t.label)==null?void 0:o.verticalAlign)||"middle",strokeColor:((s=t.label)==null?void 0:s.color)||"#000",groupIds:t.groupId?[t.groupId]:[]},strokeStyle:t==null?void 0:t.strokeStyle,strokeWidth:t==null?void 0:t.strokeWidth,strokeColor:t==null?void 0:t.strokeColor,backgroundColor:t==null?void 0:t.bgColor,fillStyle:"solid",...e};return t.groupId&&Object.assign(i,{groupIds:[t.groupId]}),i},va=t=>{var i;const e={type:"arrow",x:t.startX,y:t.startY,points:t.points||[[0,0],[t.endX-t.startX,t.endY-t.startY]],width:t.endX-t.startX,height:t.endY-t.startY,strokeStyle:(t==null?void 0:t.strokeStyle)||"solid",endArrowhead:(t==null?void 0:t.endArrowhead)||null,startArrowhead:(t==null?void 0:t.startArrowhead)||null,label:{text:so(((i=t==null?void 0:t.label)==null?void 0:i.text)||""),fontSize:16},roundness:{type:2},start:t.start,end:t.end};return t.groupId&&Object.assign(e,{groupIds:[t.groupId]}),e},jh=new Mr({converter:t=>{const e=[],i=[];if(Object.values(t.nodes).forEach(r=>{!r||!r.length||r.forEach(n=>{let o;switch(n.type){case"line":o=vi(n);break;case"rectangle":case"ellipse":o=_i(n);break;case"text":o=fr(n);break;default:throw`unknown type ${n.type}`}n.type==="rectangle"&&(n==null?void 0:n.subtype)==="activation"?i.push(o):e.push(o)})}),Object.values(t.lines).forEach(r=>{r&&e.push(vi(r))}),Object.values(t.arrows).forEach(r=>{r&&(e.push(va(r)),r.sequenceNumber&&e.push(_i(r.sequenceNumber)))}),e.push(...i),t.loops){const{lines:r,texts:n,nodes:o}=t.loops;r.forEach(s=>{e.push(vi(s))}),n.forEach(s=>{e.push(fr(s))}),o.forEach(s=>{e.push(_i(s))})}return t.groups&&t.groups.forEach(r=>{const{actorKeys:n,name:o}=r;let s=1/0,a=1/0,l=0,c=0;if(!n.length)return;e.filter(S=>{if(S.id){const U=S.id.indexOf("-"),N=S.id.substring(0,U);return n.includes(N)}}).forEach(S=>{if(S.x===void 0||S.y===void 0||S.width===void 0||S.height===void 0)throw new Error(`Actor attributes missing ${S}`);s=Math.min(s,S.x),a=Math.min(a,S.y),l=Math.max(l,S.x+S.width),c=Math.max(c,S.y+S.height)});const d=10,u=s-d,f=a-d,m=l-s+d*2,y=c-a+d*2,_=qt.nanoid(),L=_i({type:"rectangle",x:u,y:f,width:m,height:y,bgColor:r.fill,id:_});e.unshift(L);const b=qt.nanoid(),P=[_];e.forEach(S=>{if(S.type!=="frame"){if(S.x===void 0||S.y===void 0||S.width===void 0||S.height===void 0)throw new Error(`Element attributes missing ${S}`);if(S.x>=s&&S.x+S.width<=l&&S.y>=a&&S.y+S.height<=c){const U=S.id||qt.nanoid();S.id||Object.assign(S,{id:U}),P.push(U)}}});const C={type:"frame",id:b,name:o,children:P};e.push(C)}),{elements:e}}}),Uh=new Mr({converter:t=>{const e=[];return Object.values(t.nodes).forEach(i=>{!i||!i.length||i.forEach(r=>{let n;switch(r.type){case"line":n=vi(r);break;case"rectangle":case"ellipse":n=_i(r);break;case"text":n=fr(r);break;default:throw`unknown type ${r.type}`}e.push(n)})}),Object.values(t.lines).forEach(i=>{i&&e.push(vi(i))}),Object.values(t.arrows).forEach(i=>{if(!i)return;const r=va(i);e.push(r)}),Object.values(t.text).forEach(i=>{const r=fr(i);e.push(r)}),Object.values(t.namespaces).forEach(i=>{const r=Object.keys(i.classes),n=[...r],o=[...t.lines,...t.arrows,...t.text];r.forEach(a=>{const l=o.filter(c=>c.metadata&&c.metadata.classId===a).map(c=>c.id);l.length&&n.push(...l)});const s={type:"frame",id:qt.nanoid(),name:i.id,children:n};e.push(s)}),{elements:e}}}),Xh=(t,e={})=>{switch(t.type){case"graphImage":return Yh.convert(t,e);case"flowchart":return Hh.convert(t,e);case"sequence":return jh.convert(t,e);case"class":return Uh.convert(t,e);default:throw new Error(`graphToExcalidraw: unknown graph type "${t.type}, only flowcharts are supported!"`)}};function Sa(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];var r=Array.from(typeof t=="string"?[t]:t);r[r.length-1]=r[r.length-1].replace(/\r?\n([\t ]*)$/,"");var n=r.reduce(function(a,l){var c=l.match(/\n([\t ]+|(?!\s).)/g);return c?a.concat(c.map(function(h){var d,u;return(u=(d=h.match(/[\t ]/g))===null||d===void 0?void 0:d.length)!==null&&u!==void 0?u:0})):a},[]);if(n.length){var o=new RegExp(`
8
+ [ ]{`+Math.min.apply(Math,n)+"}","g");r=r.map(function(a){return a.replace(o,`
9
+ `)})}r[0]=r[0].replace(/^\r?\n/,"");var s=r[0];return e.forEach(function(a,l){var c=s.match(/(?:^|\n)( *)$/),h=c?c[1]:"",d=a;typeof a=="string"&&a.includes(`
10
10
  `)&&(d=String(a).split(`
11
11
  `).map(function(u,f){return f===0?u:""+h+u}).join(`
12
- `)),o+=d+r[l+1]}),o}var rr={exports:{}},Gh=rr.exports,as;function Vh(){return as||(as=1,(function(t,e){(function(i,r){t.exports=r()})(Gh,(function(){var i=1e3,r=6e4,n=36e5,s="millisecond",o="second",a="minute",l="hour",c="day",h="week",d="month",u="quarter",f="year",m="date",y="Invalid Date",_=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,L=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(R){var w=["th","st","nd","rd"],T=R%100;return"["+R+(w[(T-20)%10]||w[T]||w[0])+"]"}},P=function(R,w,T){var F=String(R);return!F||F.length>=w?R:""+Array(w+1-F.length).join(T)+R},C={s:P,z:function(R){var w=-R.utcOffset(),T=Math.abs(w),F=Math.floor(T/60),k=T%60;return(w<=0?"+":"-")+P(F,2,"0")+":"+P(k,2,"0")},m:function R(w,T){if(w.date()<T.date())return-R(T,w);var F=12*(T.year()-w.year())+(T.month()-w.month()),k=w.clone().add(F,d),$=T-k<0,W=w.clone().add(F+($?-1:1),d);return+(-(F+(T-k)/($?k-W:W-k))||0)},a:function(R){return R<0?Math.ceil(R)||0:Math.floor(R)},p:function(R){return{M:d,y:f,w:h,d:c,D:m,h:l,m:a,s:o,ms:s,Q:u}[R]||String(R||"").toLowerCase().replace(/s$/,"")},u:function(R){return R===void 0}},S="en",U={};U[S]=b;var N="$isDayjsObject",Q=function(R){return R instanceof tt||!(!R||!R[N])},nt=function R(w,T,F){var k;if(!w)return S;if(typeof w=="string"){var $=w.toLowerCase();U[$]&&(k=$),T&&(U[$]=T,k=$);var W=w.split("-");if(!k&&W.length>1)return R(W[0])}else{var z=w.name;U[z]=w,k=z}return!F&&k&&(S=k),k||!F&&S},H=function(R,w){if(Q(R))return R.clone();var T=typeof w=="object"?w:{};return T.date=R,T.args=arguments,new tt(T)},A=C;A.l=nt,A.i=Q,A.w=function(R,w){return H(R,{locale:w.$L,utc:w.$u,x:w.$x,$offset:w.$offset})};var tt=(function(){function R(T){this.$L=nt(T.locale,null,!0),this.parse(T),this.$x=this.$x||T.x||{},this[N]=!0}var w=R.prototype;return w.parse=function(T){this.$d=(function(F){var k=F.date,$=F.utc;if(k===null)return new Date(NaN);if(A.u(k))return new Date;if(k instanceof Date)return new Date(k);if(typeof k=="string"&&!/Z$/i.test(k)){var W=k.match(_);if(W){var z=W[2]-1||0,V=(W[7]||"0").substring(0,3);return $?new Date(Date.UTC(W[1],z,W[3]||1,W[4]||0,W[5]||0,W[6]||0,V)):new Date(W[1],z,W[3]||1,W[4]||0,W[5]||0,W[6]||0,V)}}return new Date(k)})(T),this.init()},w.init=function(){var T=this.$d;this.$y=T.getFullYear(),this.$M=T.getMonth(),this.$D=T.getDate(),this.$W=T.getDay(),this.$H=T.getHours(),this.$m=T.getMinutes(),this.$s=T.getSeconds(),this.$ms=T.getMilliseconds()},w.$utils=function(){return A},w.isValid=function(){return this.$d.toString()!==y},w.isSame=function(T,F){var k=H(T);return this.startOf(F)<=k&&k<=this.endOf(F)},w.isAfter=function(T,F){return H(T)<this.startOf(F)},w.isBefore=function(T,F){return this.endOf(F)<H(T)},w.$g=function(T,F,k){return A.u(T)?this[F]:this.set(k,T)},w.unix=function(){return Math.floor(this.valueOf()/1e3)},w.valueOf=function(){return this.$d.getTime()},w.startOf=function(T,F){var k=this,$=!!A.u(F)||F,W=A.p(T),z=function(Et,ot){var Lt=A.w(k.$u?Date.UTC(k.$y,ot,Et):new Date(k.$y,ot,Et),k);return $?Lt:Lt.endOf(c)},V=function(Et,ot){return A.w(k.toDate()[Et].apply(k.toDate("s"),($?[0,0,0,0]:[23,59,59,999]).slice(ot)),k)},j=this.$W,et=this.$M,X=this.$D,vt="set"+(this.$u?"UTC":"");switch(W){case f:return $?z(1,0):z(31,11);case d:return $?z(1,et):z(0,et+1);case h:var Bt=this.$locale().weekStart||0,se=(j<Bt?j+7:j)-Bt;return z($?X-se:X+(6-se),et);case c:case m:return V(vt+"Hours",0);case l:return V(vt+"Minutes",1);case a:return V(vt+"Seconds",2);case o:return V(vt+"Milliseconds",3);default:return this.clone()}},w.endOf=function(T){return this.startOf(T,!1)},w.$set=function(T,F){var k,$=A.p(T),W="set"+(this.$u?"UTC":""),z=(k={},k[c]=W+"Date",k[m]=W+"Date",k[d]=W+"Month",k[f]=W+"FullYear",k[l]=W+"Hours",k[a]=W+"Minutes",k[o]=W+"Seconds",k[s]=W+"Milliseconds",k)[$],V=$===c?this.$D+(F-this.$W):F;if($===d||$===f){var j=this.clone().set(m,1);j.$d[z](V),j.init(),this.$d=j.set(m,Math.min(this.$D,j.daysInMonth())).$d}else z&&this.$d[z](V);return this.init(),this},w.set=function(T,F){return this.clone().$set(T,F)},w.get=function(T){return this[A.p(T)]()},w.add=function(T,F){var k,$=this;T=Number(T);var W=A.p(F),z=function(et){var X=H($);return A.w(X.date(X.date()+Math.round(et*T)),$)};if(W===d)return this.set(d,this.$M+T);if(W===f)return this.set(f,this.$y+T);if(W===c)return z(1);if(W===h)return z(7);var V=(k={},k[a]=r,k[l]=n,k[o]=i,k)[W]||1,j=this.$d.getTime()+T*V;return A.w(j,this)},w.subtract=function(T,F){return this.add(-1*T,F)},w.format=function(T){var F=this,k=this.$locale();if(!this.isValid())return k.invalidDate||y;var $=T||"YYYY-MM-DDTHH:mm:ssZ",W=A.z(this),z=this.$H,V=this.$m,j=this.$M,et=k.weekdays,X=k.months,vt=k.meridiem,Bt=function(ot,Lt,St,Ut){return ot&&(ot[Lt]||ot(F,$))||St[Lt].slice(0,Ut)},se=function(ot){return A.s(z%12||12,ot,"0")},Et=vt||function(ot,Lt,St){var Ut=ot<12?"AM":"PM";return St?Ut.toLowerCase():Ut};return $.replace(L,(function(ot,Lt){return Lt||(function(St){switch(St){case"YY":return String(F.$y).slice(-2);case"YYYY":return A.s(F.$y,4,"0");case"M":return j+1;case"MM":return A.s(j+1,2,"0");case"MMM":return Bt(k.monthsShort,j,X,3);case"MMMM":return Bt(X,j);case"D":return F.$D;case"DD":return A.s(F.$D,2,"0");case"d":return String(F.$W);case"dd":return Bt(k.weekdaysMin,F.$W,et,2);case"ddd":return Bt(k.weekdaysShort,F.$W,et,3);case"dddd":return et[F.$W];case"H":return String(z);case"HH":return A.s(z,2,"0");case"h":return se(1);case"hh":return se(2);case"a":return Et(z,V,!0);case"A":return Et(z,V,!1);case"m":return String(V);case"mm":return A.s(V,2,"0");case"s":return String(F.$s);case"ss":return A.s(F.$s,2,"0");case"SSS":return A.s(F.$ms,3,"0");case"Z":return W}return null})(ot)||W.replace(":","")}))},w.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},w.diff=function(T,F,k){var $,W=this,z=A.p(F),V=H(T),j=(V.utcOffset()-this.utcOffset())*r,et=this-V,X=function(){return A.m(W,V)};switch(z){case f:$=X()/12;break;case d:$=X();break;case u:$=X()/3;break;case h:$=(et-j)/6048e5;break;case c:$=(et-j)/864e5;break;case l:$=et/n;break;case a:$=et/r;break;case o:$=et/i;break;default:$=et}return k?$:A.a($)},w.daysInMonth=function(){return this.endOf(d).$D},w.$locale=function(){return U[this.$L]},w.locale=function(T,F){if(!T)return this.$L;var k=this.clone(),$=nt(T,F,!0);return $&&(k.$L=$),k},w.clone=function(){return A.w(this.$d,this)},w.toDate=function(){return new Date(this.valueOf())},w.toJSON=function(){return this.isValid()?this.toISOString():null},w.toISOString=function(){return this.$d.toISOString()},w.toString=function(){return this.$d.toUTCString()},R})(),oe=tt.prototype;return H.prototype=oe,[["$ms",s],["$s",o],["$m",a],["$H",l],["$W",c],["$M",d],["$y",f],["$D",m]].forEach((function(R){oe[R[1]]=function(w){return this.$g(w,R[0],R[1])}})),H.extend=function(R,w){return R.$i||(R(w,tt,H),R.$i=!0),H},H.locale=nt,H.isDayjs=Q,H.unix=function(R){return H(1e3*R)},H.en=U[S],H.Ls=U,H.p={},H}))})(rr)),rr.exports}var Kh=Vh();const ka=Ih.getDefaultExportFromCjs(Kh);var Zh={value:()=>{}};function wa(){for(var t=0,e=arguments.length,i={},r;t<e;++t){if(!(r=arguments[t]+"")||r in i||/[\s.]/.test(r))throw new Error("illegal type: "+r);i[r]=[]}return new nr(i)}function nr(t){this._=t}function Jh(t,e){return t.trim().split(/^|\s+/).map(function(i){var r="",n=i.indexOf(".");if(n>=0&&(r=i.slice(n+1),i=i.slice(0,n)),i&&!e.hasOwnProperty(i))throw new Error("unknown type: "+i);return{type:i,name:r}})}nr.prototype=wa.prototype={constructor:nr,on:function(t,e){var i=this._,r=Jh(t+"",i),n,s=-1,o=r.length;if(arguments.length<2){for(;++s<o;)if((n=(t=r[s]).type)&&(n=Qh(i[n],t.name)))return n;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++s<o;)if(n=(t=r[s]).type)i[n]=ls(i[n],t.name,e);else if(e==null)for(n in i)i[n]=ls(i[n],t.name,null);return this},copy:function(){var t={},e=this._;for(var i in e)t[i]=e[i].slice();return new nr(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var i=new Array(n),r=0,n,s;r<n;++r)i[r]=arguments[r+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(s=this._[t],r=0,n=s.length;r<n;++r)s[r].value.apply(e,i)},apply:function(t,e,i){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],n=0,s=r.length;n<s;++n)r[n].value.apply(e,i)}};function Qh(t,e){for(var i=0,r=t.length,n;i<r;++i)if((n=t[i]).name===e)return n.value}function ls(t,e,i){for(var r=0,n=t.length;r<n;++r)if(t[r].name===e){t[r]=Zh,t=t.slice(0,r).concat(t.slice(r+1));break}return i!=null&&t.push({name:e,value:i}),t}var On="http://www.w3.org/1999/xhtml";const cs={svg:"http://www.w3.org/2000/svg",xhtml:On,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function $r(t){var e=t+="",i=e.indexOf(":");return i>=0&&(e=t.slice(0,i))!=="xmlns"&&(t=t.slice(i+1)),cs.hasOwnProperty(e)?{space:cs[e],local:t}:t}function tu(t){return function(){var e=this.ownerDocument,i=this.namespaceURI;return i===On&&e.documentElement.namespaceURI===On?e.createElement(t):e.createElementNS(i,t)}}function eu(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Aa(t){var e=$r(t);return(e.local?eu:tu)(e)}function iu(){}function so(t){return t==null?iu:function(){return this.querySelector(t)}}function ru(t){typeof t!="function"&&(t=so(t));for(var e=this._groups,i=e.length,r=new Array(i),n=0;n<i;++n)for(var s=e[n],o=s.length,a=r[n]=new Array(o),l,c,h=0;h<o;++h)(l=s[h])&&(c=t.call(l,l.__data__,h,s))&&("__data__"in l&&(c.__data__=l.__data__),a[h]=c);return new xt(r,this._parents)}function Ba(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function nu(){return[]}function Ea(t){return t==null?nu:function(){return this.querySelectorAll(t)}}function ou(t){return function(){return Ba(t.apply(this,arguments))}}function su(t){typeof t=="function"?t=ou(t):t=Ea(t);for(var e=this._groups,i=e.length,r=[],n=[],s=0;s<i;++s)for(var o=e[s],a=o.length,l,c=0;c<a;++c)(l=o[c])&&(r.push(t.call(l,l.__data__,c,o)),n.push(l));return new xt(r,n)}function La(t){return function(){return this.matches(t)}}function Fa(t){return function(e){return e.matches(t)}}var au=Array.prototype.find;function lu(t){return function(){return au.call(this.children,t)}}function cu(){return this.firstElementChild}function hu(t){return this.select(t==null?cu:lu(typeof t=="function"?t:Fa(t)))}var uu=Array.prototype.filter;function du(){return Array.from(this.children)}function fu(t){return function(){return uu.call(this.children,t)}}function pu(t){return this.selectAll(t==null?du:fu(typeof t=="function"?t:Fa(t)))}function gu(t){typeof t!="function"&&(t=La(t));for(var e=this._groups,i=e.length,r=new Array(i),n=0;n<i;++n)for(var s=e[n],o=s.length,a=r[n]=[],l,c=0;c<o;++c)(l=s[c])&&t.call(l,l.__data__,c,s)&&a.push(l);return new xt(r,this._parents)}function Oa(t){return new Array(t.length)}function mu(){return new xt(this._enter||this._groups.map(Oa),this._parents)}function pr(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}pr.prototype={constructor:pr,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function yu(t){return function(){return t}}function _u(t,e,i,r,n,s){for(var o=0,a,l=e.length,c=s.length;o<c;++o)(a=e[o])?(a.__data__=s[o],r[o]=a):i[o]=new pr(t,s[o]);for(;o<l;++o)(a=e[o])&&(n[o]=a)}function Cu(t,e,i,r,n,s,o){var a,l,c=new Map,h=e.length,d=s.length,u=new Array(h),f;for(a=0;a<h;++a)(l=e[a])&&(u[a]=f=o.call(l,l.__data__,a,e)+"",c.has(f)?n[a]=l:c.set(f,l));for(a=0;a<d;++a)f=o.call(t,s[a],a,s)+"",(l=c.get(f))?(r[a]=l,l.__data__=s[a],c.delete(f)):i[a]=new pr(t,s[a]);for(a=0;a<h;++a)(l=e[a])&&c.get(u[a])===l&&(n[a]=l)}function xu(t){return t.__data__}function bu(t,e){if(!arguments.length)return Array.from(this,xu);var i=e?Cu:_u,r=this._parents,n=this._groups;typeof t!="function"&&(t=yu(t));for(var s=n.length,o=new Array(s),a=new Array(s),l=new Array(s),c=0;c<s;++c){var h=r[c],d=n[c],u=d.length,f=Tu(t.call(h,h&&h.__data__,c,r)),m=f.length,y=a[c]=new Array(m),_=o[c]=new Array(m),L=l[c]=new Array(u);i(h,d,y,_,L,f,e);for(var b=0,P=0,C,S;b<m;++b)if(C=y[b]){for(b>=P&&(P=b+1);!(S=_[P])&&++P<m;);C._next=S||null}}return o=new xt(o,r),o._enter=a,o._exit=l,o}function Tu(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function vu(){return new xt(this._exit||this._groups.map(Oa),this._parents)}function Su(t,e,i){var r=this.enter(),n=this,s=this.exit();return typeof t=="function"?(r=t(r),r&&(r=r.selection())):r=r.append(t+""),e!=null&&(n=e(n),n&&(n=n.selection())),i==null?s.remove():i(s),r&&n?r.merge(n).order():n}function ku(t){for(var e=t.selection?t.selection():t,i=this._groups,r=e._groups,n=i.length,s=r.length,o=Math.min(n,s),a=new Array(n),l=0;l<o;++l)for(var c=i[l],h=r[l],d=c.length,u=a[l]=new Array(d),f,m=0;m<d;++m)(f=c[m]||h[m])&&(u[m]=f);for(;l<n;++l)a[l]=i[l];return new xt(a,this._parents)}function wu(){for(var t=this._groups,e=-1,i=t.length;++e<i;)for(var r=t[e],n=r.length-1,s=r[n],o;--n>=0;)(o=r[n])&&(s&&o.compareDocumentPosition(s)^4&&s.parentNode.insertBefore(o,s),s=o);return this}function Au(t){t||(t=Bu);function e(d,u){return d&&u?t(d.__data__,u.__data__):!d-!u}for(var i=this._groups,r=i.length,n=new Array(r),s=0;s<r;++s){for(var o=i[s],a=o.length,l=n[s]=new Array(a),c,h=0;h<a;++h)(c=o[h])&&(l[h]=c);l.sort(e)}return new xt(n,this._parents).order()}function Bu(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function Eu(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function Lu(){return Array.from(this)}function Fu(){for(var t=this._groups,e=0,i=t.length;e<i;++e)for(var r=t[e],n=0,s=r.length;n<s;++n){var o=r[n];if(o)return o}return null}function Ou(){let t=0;for(const e of this)++t;return t}function Iu(){return!this.node()}function Mu(t){for(var e=this._groups,i=0,r=e.length;i<r;++i)for(var n=e[i],s=0,o=n.length,a;s<o;++s)(a=n[s])&&t.call(a,a.__data__,s,n);return this}function $u(t){return function(){this.removeAttribute(t)}}function Du(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Nu(t,e){return function(){this.setAttribute(t,e)}}function Pu(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Ru(t,e){return function(){var i=e.apply(this,arguments);i==null?this.removeAttribute(t):this.setAttribute(t,i)}}function qu(t,e){return function(){var i=e.apply(this,arguments);i==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,i)}}function zu(t,e){var i=$r(t);if(arguments.length<2){var r=this.node();return i.local?r.getAttributeNS(i.space,i.local):r.getAttribute(i)}return this.each((e==null?i.local?Du:$u:typeof e=="function"?i.local?qu:Ru:i.local?Pu:Nu)(i,e))}function Ia(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Wu(t){return function(){this.style.removeProperty(t)}}function Hu(t,e,i){return function(){this.style.setProperty(t,e,i)}}function Yu(t,e,i){return function(){var r=e.apply(this,arguments);r==null?this.style.removeProperty(t):this.style.setProperty(t,r,i)}}function ju(t,e,i){return arguments.length>1?this.each((e==null?Wu:typeof e=="function"?Yu:Hu)(t,e,i??"")):Ye(this.node(),t)}function Ye(t,e){return t.style.getPropertyValue(e)||Ia(t).getComputedStyle(t,null).getPropertyValue(e)}function Uu(t){return function(){delete this[t]}}function Xu(t,e){return function(){this[t]=e}}function Gu(t,e){return function(){var i=e.apply(this,arguments);i==null?delete this[t]:this[t]=i}}function Vu(t,e){return arguments.length>1?this.each((e==null?Uu:typeof e=="function"?Gu:Xu)(t,e)):this.node()[t]}function Ma(t){return t.trim().split(/^|\s+/)}function ao(t){return t.classList||new $a(t)}function $a(t){this._node=t,this._names=Ma(t.getAttribute("class")||"")}$a.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function Da(t,e){for(var i=ao(t),r=-1,n=e.length;++r<n;)i.add(e[r])}function Na(t,e){for(var i=ao(t),r=-1,n=e.length;++r<n;)i.remove(e[r])}function Ku(t){return function(){Da(this,t)}}function Zu(t){return function(){Na(this,t)}}function Ju(t,e){return function(){(e.apply(this,arguments)?Da:Na)(this,t)}}function Qu(t,e){var i=Ma(t+"");if(arguments.length<2){for(var r=ao(this.node()),n=-1,s=i.length;++n<s;)if(!r.contains(i[n]))return!1;return!0}return this.each((typeof e=="function"?Ju:e?Ku:Zu)(i,e))}function td(){this.textContent=""}function ed(t){return function(){this.textContent=t}}function id(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function rd(t){return arguments.length?this.each(t==null?td:(typeof t=="function"?id:ed)(t)):this.node().textContent}function nd(){this.innerHTML=""}function od(t){return function(){this.innerHTML=t}}function sd(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function ad(t){return arguments.length?this.each(t==null?nd:(typeof t=="function"?sd:od)(t)):this.node().innerHTML}function ld(){this.nextSibling&&this.parentNode.appendChild(this)}function cd(){return this.each(ld)}function hd(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function ud(){return this.each(hd)}function dd(t){var e=typeof t=="function"?t:Aa(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function fd(){return null}function pd(t,e){var i=typeof t=="function"?t:Aa(t),r=e==null?fd:typeof e=="function"?e:so(e);return this.select(function(){return this.insertBefore(i.apply(this,arguments),r.apply(this,arguments)||null)})}function gd(){var t=this.parentNode;t&&t.removeChild(this)}function md(){return this.each(gd)}function yd(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function _d(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Cd(t){return this.select(t?_d:yd)}function xd(t){return arguments.length?this.property("__data__",t):this.node().__data__}function bd(t){return function(e){t.call(this,e,this.__data__)}}function Td(t){return t.trim().split(/^|\s+/).map(function(e){var i="",r=e.indexOf(".");return r>=0&&(i=e.slice(r+1),e=e.slice(0,r)),{type:e,name:i}})}function vd(t){return function(){var e=this.__on;if(e){for(var i=0,r=-1,n=e.length,s;i<n;++i)s=e[i],(!t.type||s.type===t.type)&&s.name===t.name?this.removeEventListener(s.type,s.listener,s.options):e[++r]=s;++r?e.length=r:delete this.__on}}}function Sd(t,e,i){return function(){var r=this.__on,n,s=bd(e);if(r){for(var o=0,a=r.length;o<a;++o)if((n=r[o]).type===t.type&&n.name===t.name){this.removeEventListener(n.type,n.listener,n.options),this.addEventListener(n.type,n.listener=s,n.options=i),n.value=e;return}}this.addEventListener(t.type,s,i),n={type:t.type,name:t.name,value:e,listener:s,options:i},r?r.push(n):this.__on=[n]}}function kd(t,e,i){var r=Td(t+""),n,s=r.length,o;if(arguments.length<2){var a=this.node().__on;if(a){for(var l=0,c=a.length,h;l<c;++l)for(n=0,h=a[l];n<s;++n)if((o=r[n]).type===h.type&&o.name===h.name)return h.value}return}for(a=e?Sd:vd,n=0;n<s;++n)this.each(a(r[n],e,i));return this}function Pa(t,e,i){var r=Ia(t),n=r.CustomEvent;typeof n=="function"?n=new n(e,i):(n=r.document.createEvent("Event"),i?(n.initEvent(e,i.bubbles,i.cancelable),n.detail=i.detail):n.initEvent(e,!1,!1)),t.dispatchEvent(n)}function wd(t,e){return function(){return Pa(this,t,e)}}function Ad(t,e){return function(){return Pa(this,t,e.apply(this,arguments))}}function Bd(t,e){return this.each((typeof e=="function"?Ad:wd)(t,e))}function*Ed(){for(var t=this._groups,e=0,i=t.length;e<i;++e)for(var r=t[e],n=0,s=r.length,o;n<s;++n)(o=r[n])&&(yield o)}var lo=[null];function xt(t,e){this._groups=t,this._parents=e}function Ri(){return new xt([[document.documentElement]],lo)}function Ld(){return this}xt.prototype=Ri.prototype={constructor:xt,select:ru,selectAll:su,selectChild:hu,selectChildren:pu,filter:gu,data:bu,enter:mu,exit:vu,join:Su,merge:ku,selection:Ld,order:wu,sort:Au,call:Eu,nodes:Lu,node:Fu,size:Ou,empty:Iu,each:Mu,attr:zu,style:ju,property:Vu,classed:Qu,text:rd,html:ad,raise:cd,lower:ud,append:dd,insert:pd,remove:md,clone:Cd,datum:xd,on:kd,dispatch:Bd,[Symbol.iterator]:Ed};function bt(t){return typeof t=="string"?new xt([[document.querySelector(t)]],[document.documentElement]):new xt([[t]],lo)}function Dr(t,e,i){t.prototype=e.prototype=i,i.constructor=t}function co(t,e){var i=Object.create(t.prototype);for(var r in e)i[r]=e[r];return i}function ti(){}var Bi=.7,gr=1/Bi,Pe="\\s*([+-]?\\d+)\\s*",Ei="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",zt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Fd=/^#([0-9a-f]{3,8})$/,Od=new RegExp(`^rgb\\(${Pe},${Pe},${Pe}\\)$`),Id=new RegExp(`^rgb\\(${zt},${zt},${zt}\\)$`),Md=new RegExp(`^rgba\\(${Pe},${Pe},${Pe},${Ei}\\)$`),$d=new RegExp(`^rgba\\(${zt},${zt},${zt},${Ei}\\)$`),Dd=new RegExp(`^hsl\\(${Ei},${zt},${zt}\\)$`),Nd=new RegExp(`^hsla\\(${Ei},${zt},${zt},${Ei}\\)$`),hs={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Dr(ti,je,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:us,formatHex:us,formatHex8:Pd,formatHsl:Rd,formatRgb:ds,toString:ds});function us(){return this.rgb().formatHex()}function Pd(){return this.rgb().formatHex8()}function Rd(){return qa(this).formatHsl()}function ds(){return this.rgb().formatRgb()}function je(t){var e,i;return t=(t+"").trim().toLowerCase(),(e=Fd.exec(t))?(i=e[1].length,e=parseInt(e[1],16),i===6?fs(e):i===3?new ft(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):i===8?Vi(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):i===4?Vi(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=Od.exec(t))?new ft(e[1],e[2],e[3],1):(e=Id.exec(t))?new ft(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=Md.exec(t))?Vi(e[1],e[2],e[3],e[4]):(e=$d.exec(t))?Vi(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=Dd.exec(t))?ms(e[1],e[2]/100,e[3]/100,1):(e=Nd.exec(t))?ms(e[1],e[2]/100,e[3]/100,e[4]):hs.hasOwnProperty(t)?fs(hs[t]):t==="transparent"?new ft(NaN,NaN,NaN,0):null}function fs(t){return new ft(t>>16&255,t>>8&255,t&255,1)}function Vi(t,e,i,r){return r<=0&&(t=e=i=NaN),new ft(t,e,i,r)}function Ra(t){return t instanceof ti||(t=je(t)),t?(t=t.rgb(),new ft(t.r,t.g,t.b,t.opacity)):new ft}function In(t,e,i,r){return arguments.length===1?Ra(t):new ft(t,e,i,r??1)}function ft(t,e,i,r){this.r=+t,this.g=+e,this.b=+i,this.opacity=+r}Dr(ft,In,co(ti,{brighter(t){return t=t==null?gr:Math.pow(gr,t),new ft(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?Bi:Math.pow(Bi,t),new ft(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new ft(Ce(this.r),Ce(this.g),Ce(this.b),mr(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ps,formatHex:ps,formatHex8:qd,formatRgb:gs,toString:gs}));function ps(){return`#${ye(this.r)}${ye(this.g)}${ye(this.b)}`}function qd(){return`#${ye(this.r)}${ye(this.g)}${ye(this.b)}${ye((isNaN(this.opacity)?1:this.opacity)*255)}`}function gs(){const t=mr(this.opacity);return`${t===1?"rgb(":"rgba("}${Ce(this.r)}, ${Ce(this.g)}, ${Ce(this.b)}${t===1?")":`, ${t})`}`}function mr(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Ce(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function ye(t){return t=Ce(t),(t<16?"0":"")+t.toString(16)}function ms(t,e,i,r){return r<=0?t=e=i=NaN:i<=0||i>=1?t=e=NaN:e<=0&&(t=NaN),new Ot(t,e,i,r)}function qa(t){if(t instanceof Ot)return new Ot(t.h,t.s,t.l,t.opacity);if(t instanceof ti||(t=je(t)),!t)return new Ot;if(t instanceof Ot)return t;t=t.rgb();var e=t.r/255,i=t.g/255,r=t.b/255,n=Math.min(e,i,r),s=Math.max(e,i,r),o=NaN,a=s-n,l=(s+n)/2;return a?(e===s?o=(i-r)/a+(i<r)*6:i===s?o=(r-e)/a+2:o=(e-i)/a+4,a/=l<.5?s+n:2-s-n,o*=60):a=l>0&&l<1?0:o,new Ot(o,a,l,t.opacity)}function zd(t,e,i,r){return arguments.length===1?qa(t):new Ot(t,e,i,r??1)}function Ot(t,e,i,r){this.h=+t,this.s=+e,this.l=+i,this.opacity=+r}Dr(Ot,zd,co(ti,{brighter(t){return t=t==null?gr:Math.pow(gr,t),new Ot(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Bi:Math.pow(Bi,t),new Ot(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,i=this.l,r=i+(i<.5?i:1-i)*e,n=2*i-r;return new ft(gn(t>=240?t-240:t+120,n,r),gn(t,n,r),gn(t<120?t+240:t-120,n,r),this.opacity)},clamp(){return new Ot(ys(this.h),Ki(this.s),Ki(this.l),mr(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=mr(this.opacity);return`${t===1?"hsl(":"hsla("}${ys(this.h)}, ${Ki(this.s)*100}%, ${Ki(this.l)*100}%${t===1?")":`, ${t})`}`}}));function ys(t){return t=(t||0)%360,t<0?t+360:t}function Ki(t){return Math.max(0,Math.min(1,t||0))}function gn(t,e,i){return(t<60?e+(i-e)*t/60:t<180?i:t<240?e+(i-e)*(240-t)/60:e)*255}const Nr=t=>()=>t;function za(t,e){return function(i){return t+i*e}}function Wd(t,e,i){return t=Math.pow(t,i),e=Math.pow(e,i)-t,i=1/i,function(r){return Math.pow(t+r*e,i)}}function Hd(t,e){var i=e-t;return i?za(t,i>180||i<-180?i-360*Math.round(i/360):i):Nr(isNaN(t)?e:t)}function Yd(t){return(t=+t)==1?ho:function(e,i){return i-e?Wd(e,i,t):Nr(isNaN(e)?i:e)}}function ho(t,e){var i=e-t;return i?za(t,i):Nr(isNaN(t)?e:t)}const Mn=(function t(e){var i=Yd(e);function r(n,s){var o=i((n=In(n)).r,(s=In(s)).r),a=i(n.g,s.g),l=i(n.b,s.b),c=ho(n.opacity,s.opacity);return function(h){return n.r=o(h),n.g=a(h),n.b=l(h),n.opacity=c(h),n+""}}return r.gamma=t,r})(1);function te(t,e){return t=+t,e=+e,function(i){return t*(1-i)+e*i}}var $n=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,mn=new RegExp($n.source,"g");function jd(t){return function(){return t}}function Ud(t){return function(e){return t(e)+""}}function Wa(t,e){var i=$n.lastIndex=mn.lastIndex=0,r,n,s,o=-1,a=[],l=[];for(t=t+"",e=e+"";(r=$n.exec(t))&&(n=mn.exec(e));)(s=n.index)>i&&(s=e.slice(i,s),a[o]?a[o]+=s:a[++o]=s),(r=r[0])===(n=n[0])?a[o]?a[o]+=n:a[++o]=n:(a[++o]=null,l.push({i:o,x:te(r,n)})),i=mn.lastIndex;return i<e.length&&(s=e.slice(i),a[o]?a[o]+=s:a[++o]=s),a.length<2?l[0]?Ud(l[0].x):jd(e):(e=l.length,function(c){for(var h=0,d;h<e;++h)a[(d=l[h]).i]=d.x(c);return a.join("")})}var _s=180/Math.PI,Dn={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Ha(t,e,i,r,n,s){var o,a,l;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(l=t*i+e*r)&&(i-=t*l,r-=e*l),(a=Math.sqrt(i*i+r*r))&&(i/=a,r/=a,l/=a),t*r<e*i&&(t=-t,e=-e,l=-l,o=-o),{translateX:n,translateY:s,rotate:Math.atan2(e,t)*_s,skewX:Math.atan(l)*_s,scaleX:o,scaleY:a}}var Zi;function Xd(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?Dn:Ha(e.a,e.b,e.c,e.d,e.e,e.f)}function Gd(t){return t==null||(Zi||(Zi=document.createElementNS("http://www.w3.org/2000/svg","g")),Zi.setAttribute("transform",t),!(t=Zi.transform.baseVal.consolidate()))?Dn:(t=t.matrix,Ha(t.a,t.b,t.c,t.d,t.e,t.f))}function Ya(t,e,i,r){function n(c){return c.length?c.pop()+" ":""}function s(c,h,d,u,f,m){if(c!==d||h!==u){var y=f.push("translate(",null,e,null,i);m.push({i:y-4,x:te(c,d)},{i:y-2,x:te(h,u)})}else(d||u)&&f.push("translate("+d+e+u+i)}function o(c,h,d,u){c!==h?(c-h>180?h+=360:h-c>180&&(c+=360),u.push({i:d.push(n(d)+"rotate(",null,r)-2,x:te(c,h)})):h&&d.push(n(d)+"rotate("+h+r)}function a(c,h,d,u){c!==h?u.push({i:d.push(n(d)+"skewX(",null,r)-2,x:te(c,h)}):h&&d.push(n(d)+"skewX("+h+r)}function l(c,h,d,u,f,m){if(c!==d||h!==u){var y=f.push(n(f)+"scale(",null,",",null,")");m.push({i:y-4,x:te(c,d)},{i:y-2,x:te(h,u)})}else(d!==1||u!==1)&&f.push(n(f)+"scale("+d+","+u+")")}return function(c,h){var d=[],u=[];return c=t(c),h=t(h),s(c.translateX,c.translateY,h.translateX,h.translateY,d,u),o(c.rotate,h.rotate,d,u),a(c.skewX,h.skewX,d,u),l(c.scaleX,c.scaleY,h.scaleX,h.scaleY,d,u),c=h=null,function(f){for(var m=-1,y=u.length,_;++m<y;)d[(_=u[m]).i]=_.x(f);return d.join("")}}}var Vd=Ya(Xd,"px, ","px)","deg)"),Kd=Ya(Gd,", ",")",")"),Ue=0,Ci=0,ui=0,ja=1e3,yr,xi,_r=0,be=0,Pr=0,Li=typeof performance=="object"&&performance.now?performance:Date,Ua=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function uo(){return be||(Ua(Zd),be=Li.now()+Pr)}function Zd(){be=0}function Cr(){this._call=this._time=this._next=null}Cr.prototype=Xa.prototype={constructor:Cr,restart:function(t,e,i){if(typeof t!="function")throw new TypeError("callback is not a function");i=(i==null?uo():+i)+(e==null?0:+e),!this._next&&xi!==this&&(xi?xi._next=this:yr=this,xi=this),this._call=t,this._time=i,Nn()},stop:function(){this._call&&(this._call=null,this._time=1/0,Nn())}};function Xa(t,e,i){var r=new Cr;return r.restart(t,e,i),r}function Jd(){uo(),++Ue;for(var t=yr,e;t;)(e=be-t._time)>=0&&t._call.call(void 0,e),t=t._next;--Ue}function Cs(){be=(_r=Li.now())+Pr,Ue=Ci=0;try{Jd()}finally{Ue=0,tf(),be=0}}function Qd(){var t=Li.now(),e=t-_r;e>ja&&(Pr-=e,_r=t)}function tf(){for(var t,e=yr,i,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(i=e._next,e._next=null,e=t?t._next=i:yr=i);xi=t,Nn(r)}function Nn(t){if(!Ue){Ci&&(Ci=clearTimeout(Ci));var e=t-be;e>24?(t<1/0&&(Ci=setTimeout(Cs,t-Li.now()-Pr)),ui&&(ui=clearInterval(ui))):(ui||(_r=Li.now(),ui=setInterval(Qd,ja)),Ue=1,Ua(Cs))}}function xs(t,e,i){var r=new Cr;return e=e==null?0:+e,r.restart(n=>{r.stop(),t(n+e)},e,i),r}var ef=wa("start","end","cancel","interrupt"),rf=[],Ga=0,bs=1,Pn=2,or=3,Ts=4,Rn=5,sr=6;function Rr(t,e,i,r,n,s){var o=t.__transition;if(!o)t.__transition={};else if(i in o)return;nf(t,i,{name:e,index:r,group:n,on:ef,tween:rf,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:Ga})}function fo(t,e){var i=Dt(t,e);if(i.state>Ga)throw new Error("too late; already scheduled");return i}function Yt(t,e){var i=Dt(t,e);if(i.state>or)throw new Error("too late; already running");return i}function Dt(t,e){var i=t.__transition;if(!i||!(i=i[e]))throw new Error("transition not found");return i}function nf(t,e,i){var r=t.__transition,n;r[e]=i,i.timer=Xa(s,0,i.time);function s(c){i.state=bs,i.timer.restart(o,i.delay,i.time),i.delay<=c&&o(c-i.delay)}function o(c){var h,d,u,f;if(i.state!==bs)return l();for(h in r)if(f=r[h],f.name===i.name){if(f.state===or)return xs(o);f.state===Ts?(f.state=sr,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete r[h]):+h<e&&(f.state=sr,f.timer.stop(),f.on.call("cancel",t,t.__data__,f.index,f.group),delete r[h])}if(xs(function(){i.state===or&&(i.state=Ts,i.timer.restart(a,i.delay,i.time),a(c))}),i.state=Pn,i.on.call("start",t,t.__data__,i.index,i.group),i.state===Pn){for(i.state=or,n=new Array(u=i.tween.length),h=0,d=-1;h<u;++h)(f=i.tween[h].value.call(t,t.__data__,i.index,i.group))&&(n[++d]=f);n.length=d+1}}function a(c){for(var h=c<i.duration?i.ease.call(null,c/i.duration):(i.timer.restart(l),i.state=Rn,1),d=-1,u=n.length;++d<u;)n[d].call(t,h);i.state===Rn&&(i.on.call("end",t,t.__data__,i.index,i.group),l())}function l(){i.state=sr,i.timer.stop(),delete r[e];for(var c in r)return;delete t.__transition}}function of(t,e){var i=t.__transition,r,n,s=!0,o;if(i){e=e==null?null:e+"";for(o in i){if((r=i[o]).name!==e){s=!1;continue}n=r.state>Pn&&r.state<Rn,r.state=sr,r.timer.stop(),r.on.call(n?"interrupt":"cancel",t,t.__data__,r.index,r.group),delete i[o]}s&&delete t.__transition}}function sf(t){return this.each(function(){of(this,t)})}function af(t,e){var i,r;return function(){var n=Yt(this,t),s=n.tween;if(s!==i){r=i=s;for(var o=0,a=r.length;o<a;++o)if(r[o].name===e){r=r.slice(),r.splice(o,1);break}}n.tween=r}}function lf(t,e,i){var r,n;if(typeof i!="function")throw new Error;return function(){var s=Yt(this,t),o=s.tween;if(o!==r){n=(r=o).slice();for(var a={name:e,value:i},l=0,c=n.length;l<c;++l)if(n[l].name===e){n[l]=a;break}l===c&&n.push(a)}s.tween=n}}function cf(t,e){var i=this._id;if(t+="",arguments.length<2){for(var r=Dt(this.node(),i).tween,n=0,s=r.length,o;n<s;++n)if((o=r[n]).name===t)return o.value;return null}return this.each((e==null?af:lf)(i,t,e))}function po(t,e,i){var r=t._id;return t.each(function(){var n=Yt(this,r);(n.value||(n.value={}))[e]=i.apply(this,arguments)}),function(n){return Dt(n,r).value[e]}}function Va(t,e){var i;return(typeof e=="number"?te:e instanceof je?Mn:(i=je(e))?(e=i,Mn):Wa)(t,e)}function hf(t){return function(){this.removeAttribute(t)}}function uf(t){return function(){this.removeAttributeNS(t.space,t.local)}}function df(t,e,i){var r,n=i+"",s;return function(){var o=this.getAttribute(t);return o===n?null:o===r?s:s=e(r=o,i)}}function ff(t,e,i){var r,n=i+"",s;return function(){var o=this.getAttributeNS(t.space,t.local);return o===n?null:o===r?s:s=e(r=o,i)}}function pf(t,e,i){var r,n,s;return function(){var o,a=i(this),l;return a==null?void this.removeAttribute(t):(o=this.getAttribute(t),l=a+"",o===l?null:o===r&&l===n?s:(n=l,s=e(r=o,a)))}}function gf(t,e,i){var r,n,s;return function(){var o,a=i(this),l;return a==null?void this.removeAttributeNS(t.space,t.local):(o=this.getAttributeNS(t.space,t.local),l=a+"",o===l?null:o===r&&l===n?s:(n=l,s=e(r=o,a)))}}function mf(t,e){var i=$r(t),r=i==="transform"?Kd:Va;return this.attrTween(t,typeof e=="function"?(i.local?gf:pf)(i,r,po(this,"attr."+t,e)):e==null?(i.local?uf:hf)(i):(i.local?ff:df)(i,r,e))}function yf(t,e){return function(i){this.setAttribute(t,e.call(this,i))}}function _f(t,e){return function(i){this.setAttributeNS(t.space,t.local,e.call(this,i))}}function Cf(t,e){var i,r;function n(){var s=e.apply(this,arguments);return s!==r&&(i=(r=s)&&_f(t,s)),i}return n._value=e,n}function xf(t,e){var i,r;function n(){var s=e.apply(this,arguments);return s!==r&&(i=(r=s)&&yf(t,s)),i}return n._value=e,n}function bf(t,e){var i="attr."+t;if(arguments.length<2)return(i=this.tween(i))&&i._value;if(e==null)return this.tween(i,null);if(typeof e!="function")throw new Error;var r=$r(t);return this.tween(i,(r.local?Cf:xf)(r,e))}function Tf(t,e){return function(){fo(this,t).delay=+e.apply(this,arguments)}}function vf(t,e){return e=+e,function(){fo(this,t).delay=e}}function Sf(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?Tf:vf)(e,t)):Dt(this.node(),e).delay}function kf(t,e){return function(){Yt(this,t).duration=+e.apply(this,arguments)}}function wf(t,e){return e=+e,function(){Yt(this,t).duration=e}}function Af(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?kf:wf)(e,t)):Dt(this.node(),e).duration}function Bf(t,e){if(typeof e!="function")throw new Error;return function(){Yt(this,t).ease=e}}function Ef(t){var e=this._id;return arguments.length?this.each(Bf(e,t)):Dt(this.node(),e).ease}function Lf(t,e){return function(){var i=e.apply(this,arguments);if(typeof i!="function")throw new Error;Yt(this,t).ease=i}}function Ff(t){if(typeof t!="function")throw new Error;return this.each(Lf(this._id,t))}function Of(t){typeof t!="function"&&(t=La(t));for(var e=this._groups,i=e.length,r=new Array(i),n=0;n<i;++n)for(var s=e[n],o=s.length,a=r[n]=[],l,c=0;c<o;++c)(l=s[c])&&t.call(l,l.__data__,c,s)&&a.push(l);return new re(r,this._parents,this._name,this._id)}function If(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,i=t._groups,r=e.length,n=i.length,s=Math.min(r,n),o=new Array(r),a=0;a<s;++a)for(var l=e[a],c=i[a],h=l.length,d=o[a]=new Array(h),u,f=0;f<h;++f)(u=l[f]||c[f])&&(d[f]=u);for(;a<r;++a)o[a]=e[a];return new re(o,this._parents,this._name,this._id)}function Mf(t){return(t+"").trim().split(/^|\s+/).every(function(e){var i=e.indexOf(".");return i>=0&&(e=e.slice(0,i)),!e||e==="start"})}function $f(t,e,i){var r,n,s=Mf(e)?fo:Yt;return function(){var o=s(this,t),a=o.on;a!==r&&(n=(r=a).copy()).on(e,i),o.on=n}}function Df(t,e){var i=this._id;return arguments.length<2?Dt(this.node(),i).on.on(t):this.each($f(i,t,e))}function Nf(t){return function(){var e=this.parentNode;for(var i in this.__transition)if(+i!==t)return;e&&e.removeChild(this)}}function Pf(){return this.on("end.remove",Nf(this._id))}function Rf(t){var e=this._name,i=this._id;typeof t!="function"&&(t=so(t));for(var r=this._groups,n=r.length,s=new Array(n),o=0;o<n;++o)for(var a=r[o],l=a.length,c=s[o]=new Array(l),h,d,u=0;u<l;++u)(h=a[u])&&(d=t.call(h,h.__data__,u,a))&&("__data__"in h&&(d.__data__=h.__data__),c[u]=d,Rr(c[u],e,i,u,c,Dt(h,i)));return new re(s,this._parents,e,i)}function qf(t){var e=this._name,i=this._id;typeof t!="function"&&(t=Ea(t));for(var r=this._groups,n=r.length,s=[],o=[],a=0;a<n;++a)for(var l=r[a],c=l.length,h,d=0;d<c;++d)if(h=l[d]){for(var u=t.call(h,h.__data__,d,l),f,m=Dt(h,i),y=0,_=u.length;y<_;++y)(f=u[y])&&Rr(f,e,i,y,u,m);s.push(u),o.push(h)}return new re(s,o,e,i)}var zf=Ri.prototype.constructor;function Wf(){return new zf(this._groups,this._parents)}function Hf(t,e){var i,r,n;return function(){var s=Ye(this,t),o=(this.style.removeProperty(t),Ye(this,t));return s===o?null:s===i&&o===r?n:n=e(i=s,r=o)}}function Ka(t){return function(){this.style.removeProperty(t)}}function Yf(t,e,i){var r,n=i+"",s;return function(){var o=Ye(this,t);return o===n?null:o===r?s:s=e(r=o,i)}}function jf(t,e,i){var r,n,s;return function(){var o=Ye(this,t),a=i(this),l=a+"";return a==null&&(l=a=(this.style.removeProperty(t),Ye(this,t))),o===l?null:o===r&&l===n?s:(n=l,s=e(r=o,a))}}function Uf(t,e){var i,r,n,s="style."+e,o="end."+s,a;return function(){var l=Yt(this,t),c=l.on,h=l.value[s]==null?a||(a=Ka(e)):void 0;(c!==i||n!==h)&&(r=(i=c).copy()).on(o,n=h),l.on=r}}function Xf(t,e,i){var r=(t+="")=="transform"?Vd:Va;return e==null?this.styleTween(t,Hf(t,r)).on("end.style."+t,Ka(t)):typeof e=="function"?this.styleTween(t,jf(t,r,po(this,"style."+t,e))).each(Uf(this._id,t)):this.styleTween(t,Yf(t,r,e),i).on("end.style."+t,null)}function Gf(t,e,i){return function(r){this.style.setProperty(t,e.call(this,r),i)}}function Vf(t,e,i){var r,n;function s(){var o=e.apply(this,arguments);return o!==n&&(r=(n=o)&&Gf(t,o,i)),r}return s._value=e,s}function Kf(t,e,i){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(e==null)return this.tween(r,null);if(typeof e!="function")throw new Error;return this.tween(r,Vf(t,e,i??""))}function Zf(t){return function(){this.textContent=t}}function Jf(t){return function(){var e=t(this);this.textContent=e??""}}function Qf(t){return this.tween("text",typeof t=="function"?Jf(po(this,"text",t)):Zf(t==null?"":t+""))}function tp(t){return function(e){this.textContent=t.call(this,e)}}function ep(t){var e,i;function r(){var n=t.apply(this,arguments);return n!==i&&(e=(i=n)&&tp(n)),e}return r._value=t,r}function ip(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,ep(t))}function rp(){for(var t=this._name,e=this._id,i=Za(),r=this._groups,n=r.length,s=0;s<n;++s)for(var o=r[s],a=o.length,l,c=0;c<a;++c)if(l=o[c]){var h=Dt(l,e);Rr(l,t,i,c,o,{time:h.time+h.delay+h.duration,delay:0,duration:h.duration,ease:h.ease})}return new re(r,this._parents,t,i)}function np(){var t,e,i=this,r=i._id,n=i.size();return new Promise(function(s,o){var a={value:o},l={value:function(){--n===0&&s()}};i.each(function(){var c=Yt(this,r),h=c.on;h!==t&&(e=(t=h).copy(),e._.cancel.push(a),e._.interrupt.push(a),e._.end.push(l)),c.on=e}),n===0&&s()})}var op=0;function re(t,e,i,r){this._groups=t,this._parents=e,this._name=i,this._id=r}function Za(){return++op}var Kt=Ri.prototype;re.prototype={constructor:re,select:Rf,selectAll:qf,selectChild:Kt.selectChild,selectChildren:Kt.selectChildren,filter:Of,merge:If,selection:Wf,transition:rp,call:Kt.call,nodes:Kt.nodes,node:Kt.node,size:Kt.size,empty:Kt.empty,each:Kt.each,on:Df,attr:mf,attrTween:bf,style:Xf,styleTween:Kf,text:Qf,textTween:ip,remove:Pf,tween:cf,delay:Sf,duration:Af,ease:Ef,easeVarying:Ff,end:np,[Symbol.iterator]:Kt[Symbol.iterator]};function sp(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var ap={time:null,delay:0,duration:250,ease:sp};function lp(t,e){for(var i;!(i=t.__transition)||!(i=i[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return i}function cp(t){var e,i;t instanceof re?(e=t._id,t=t._name):(e=Za(),(i=ap).time=uo(),t=t==null?null:t+"");for(var r=this._groups,n=r.length,s=0;s<n;++s)for(var o=r[s],a=o.length,l,c=0;c<a;++c)(l=o[c])&&Rr(l,t,e,c,o,i||lp(l,e));return new re(r,this._parents,t,e)}Ri.prototype.interrupt=sf;Ri.prototype.transition=cp;const hp=Math.abs,up=Math.atan2,dp=Math.cos,fp=Math.max,pp=Math.min,gp=Math.sin,mp=Math.sqrt,qn=1e-12,qr=Math.PI,zn=qr/2,yp=2*qr;function _p(t){return t>1?0:t<-1?qr:Math.acos(t)}function Cp(t){return t>=1?zn:t<=-1?-zn:Math.asin(t)}function Ja(t){this._context=t}Ja.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e);break}}};function Qa(t){return new Ja(t)}class tl{constructor(e,i){this._context=e,this._x=i}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,i){switch(e=+e,i=+i,this._point){case 0:{this._point=1,this._line?this._context.lineTo(e,i):this._context.moveTo(e,i);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,i,e,i):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+i)/2,e,this._y0,e,i);break}}this._x0=e,this._y0=i}}function xp(t){return new tl(t,!0)}function bp(t){return new tl(t,!1)}function ue(){}function xr(t,e,i){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+i)/6)}function zr(t){this._context=t}zr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:xr(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:xr(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function el(t){return new zr(t)}function il(t){this._context=t}il.prototype={areaStart:ue,areaEnd:ue,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:xr(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Tp(t){return new il(t)}function rl(t){this._context=t}rl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var i=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(i,r):this._context.moveTo(i,r);break;case 3:this._point=4;default:xr(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function vp(t){return new rl(t)}function nl(t,e){this._basis=new zr(t),this._beta=e}nl.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,i=t.length-1;if(i>0)for(var r=t[0],n=e[0],s=t[i]-r,o=e[i]-n,a=-1,l;++a<=i;)l=a/i,this._basis.point(this._beta*t[a]+(1-this._beta)*(r+l*s),this._beta*e[a]+(1-this._beta)*(n+l*o));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};const Sp=(function t(e){function i(r){return e===1?new zr(r):new nl(r,e)}return i.beta=function(r){return t(+r)},i})(.85);function br(t,e,i){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-i),t._x2,t._y2)}function go(t,e){this._context=t,this._k=(1-e)/6}go.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:br(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:br(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const kp=(function t(e){function i(r){return new go(r,e)}return i.tension=function(r){return t(+r)},i})(0);function mo(t,e){this._context=t,this._k=(1-e)/6}mo.prototype={areaStart:ue,areaEnd:ue,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:br(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const wp=(function t(e){function i(r){return new mo(r,e)}return i.tension=function(r){return t(+r)},i})(0);function yo(t,e){this._context=t,this._k=(1-e)/6}yo.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:br(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Ap=(function t(e){function i(r){return new yo(r,e)}return i.tension=function(r){return t(+r)},i})(0);function _o(t,e,i){var r=t._x1,n=t._y1,s=t._x2,o=t._y2;if(t._l01_a>qn){var a=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*a-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,n=(n*a-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a>qn){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,h=3*t._l23_a*(t._l23_a+t._l12_a);s=(s*c+t._x1*t._l23_2a-e*t._l12_2a)/h,o=(o*c+t._y1*t._l23_2a-i*t._l12_2a)/h}t._context.bezierCurveTo(r,n,s,o,t._x2,t._y2)}function ol(t,e){this._context=t,this._alpha=e}ol.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var i=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:_o(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Bp=(function t(e){function i(r){return e?new ol(r,e):new go(r,0)}return i.alpha=function(r){return t(+r)},i})(.5);function sl(t,e){this._context=t,this._alpha=e}sl.prototype={areaStart:ue,areaEnd:ue,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){if(t=+t,e=+e,this._point){var i=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:_o(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Ep=(function t(e){function i(r){return e?new sl(r,e):new mo(r,0)}return i.alpha=function(r){return t(+r)},i})(.5);function al(t,e){this._context=t,this._alpha=e}al.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var i=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:_o(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Lp=(function t(e){function i(r){return e?new al(r,e):new yo(r,0)}return i.alpha=function(r){return t(+r)},i})(.5);function ll(t){this._context=t}ll.prototype={areaStart:ue,areaEnd:ue,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function Fp(t){return new ll(t)}function vs(t){return t<0?-1:1}function Ss(t,e,i){var r=t._x1-t._x0,n=e-t._x1,s=(t._y1-t._y0)/(r||n<0&&-0),o=(i-t._y1)/(n||r<0&&-0),a=(s*n+o*r)/(r+n);return(vs(s)+vs(o))*Math.min(Math.abs(s),Math.abs(o),.5*Math.abs(a))||0}function ks(t,e){var i=t._x1-t._x0;return i?(3*(t._y1-t._y0)/i-e)/2:e}function yn(t,e,i){var r=t._x0,n=t._y0,s=t._x1,o=t._y1,a=(s-r)/3;t._context.bezierCurveTo(r+a,n+a*e,s-a,o-a*i,s,o)}function Tr(t){this._context=t}Tr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:yn(this,this._t0,ks(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var i=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,yn(this,ks(this,i=Ss(this,t,e)),i);break;default:yn(this,this._t0,i=Ss(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=i}}};function cl(t){this._context=new hl(t)}(cl.prototype=Object.create(Tr.prototype)).point=function(t,e){Tr.prototype.point.call(this,e,t)};function hl(t){this._context=t}hl.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,i,r,n,s){this._context.bezierCurveTo(e,t,r,i,s,n)}};function Op(t){return new Tr(t)}function Ip(t){return new cl(t)}function ul(t){this._context=t}ul.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,i=t.length;if(i)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),i===2)this._context.lineTo(t[1],e[1]);else for(var r=ws(t),n=ws(e),s=0,o=1;o<i;++s,++o)this._context.bezierCurveTo(r[0][s],n[0][s],r[1][s],n[1][s],t[o],e[o]);(this._line||this._line!==0&&i===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}};function ws(t){var e,i=t.length-1,r,n=new Array(i),s=new Array(i),o=new Array(i);for(n[0]=0,s[0]=2,o[0]=t[0]+2*t[1],e=1;e<i-1;++e)n[e]=1,s[e]=4,o[e]=4*t[e]+2*t[e+1];for(n[i-1]=2,s[i-1]=7,o[i-1]=8*t[i-1]+t[i],e=1;e<i;++e)r=n[e]/s[e-1],s[e]-=r,o[e]-=r*o[e-1];for(n[i-1]=o[i-1]/s[i-1],e=i-2;e>=0;--e)n[e]=(o[e]-n[e+1])/s[e];for(s[i-1]=(t[i]+n[i-1])/2,e=0;e<i-1;++e)s[e]=2*t[e+1]-n[e+1];return[n,s]}function Mp(t){return new ul(t)}function Wr(t,e){this._context=t,this._t=e}Wr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var i=this._x*(1-this._t)+t*this._t;this._context.lineTo(i,this._y),this._context.lineTo(i,e)}break}}this._x=t,this._y=e}};function $p(t){return new Wr(t,.5)}function Dp(t){return new Wr(t,0)}function Np(t){return new Wr(t,1)}function bi(t,e,i){this.k=t,this.x=e,this.y=i}bi.prototype={constructor:bi,scale:function(t){return t===1?this:new bi(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new bi(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};bi.prototype;/*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */const{entries:dl,setPrototypeOf:As,isFrozen:Pp,getPrototypeOf:Rp,getOwnPropertyDescriptor:qp}=Object;let{freeze:gt,seal:wt,create:fl}=Object,{apply:Wn,construct:Hn}=typeof Reflect<"u"&&Reflect;gt||(gt=function(e){return e});wt||(wt=function(e){return e});Wn||(Wn=function(e,i,r){return e.apply(i,r)});Hn||(Hn=function(e,i){return new e(...i)});const Ji=mt(Array.prototype.forEach),zp=mt(Array.prototype.lastIndexOf),Bs=mt(Array.prototype.pop),di=mt(Array.prototype.push),Wp=mt(Array.prototype.splice),ar=mt(String.prototype.toLowerCase),_n=mt(String.prototype.toString),Es=mt(String.prototype.match),fi=mt(String.prototype.replace),Hp=mt(String.prototype.indexOf),Yp=mt(String.prototype.trim),Ft=mt(Object.prototype.hasOwnProperty),ut=mt(RegExp.prototype.test),pi=jp(TypeError);function mt(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var i=arguments.length,r=new Array(i>1?i-1:0),n=1;n<i;n++)r[n-1]=arguments[n];return Wn(t,e,r)}}function jp(t){return function(){for(var e=arguments.length,i=new Array(e),r=0;r<e;r++)i[r]=arguments[r];return Hn(t,i)}}function Y(t,e){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ar;As&&As(t,null);let r=e.length;for(;r--;){let n=e[r];if(typeof n=="string"){const s=i(n);s!==n&&(Pp(e)||(e[r]=s),n=s)}t[n]=!0}return t}function Up(t){for(let e=0;e<t.length;e++)Ft(t,e)||(t[e]=null);return t}function Qt(t){const e=fl(null);for(const[i,r]of dl(t))Ft(t,i)&&(Array.isArray(r)?e[i]=Up(r):r&&typeof r=="object"&&r.constructor===Object?e[i]=Qt(r):e[i]=r);return e}function gi(t,e){for(;t!==null;){const r=qp(t,e);if(r){if(r.get)return mt(r.get);if(typeof r.value=="function")return mt(r.value)}t=Rp(t)}function i(){return null}return i}const Ls=gt(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Cn=gt(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),xn=gt(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Xp=gt(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),bn=gt(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Gp=gt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Fs=gt(["#text"]),Os=gt(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Tn=gt(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Is=gt(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Qi=gt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Vp=wt(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Kp=wt(/<%[\w\W]*|[\w\W]*%>/gm),Zp=wt(/\$\{[\w\W]*/gm),Jp=wt(/^data-[\-\w.\u00B7-\uFFFF]+$/),Qp=wt(/^aria-[\-\w]+$/),pl=wt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),tg=wt(/^(?:\w+script|data):/i),eg=wt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),gl=wt(/^html$/i),ig=wt(/^[a-z][.\w]*(-[.\w]+)+$/i);var Ms=Object.freeze({__proto__:null,ARIA_ATTR:Qp,ATTR_WHITESPACE:eg,CUSTOM_ELEMENT:ig,DATA_ATTR:Jp,DOCTYPE_NAME:gl,ERB_EXPR:Kp,IS_ALLOWED_URI:pl,IS_SCRIPT_OR_DATA:tg,MUSTACHE_EXPR:Vp,TMPLIT_EXPR:Zp});const mi={element:1,text:3,progressingInstruction:7,comment:8,document:9},rg=function(){return typeof window>"u"?null:window},ng=function(e,i){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let r=null;const n="data-tt-policy-suffix";i&&i.hasAttribute(n)&&(r=i.getAttribute(n));const s="dompurify"+(r?"#"+r:"");try{return e.createPolicy(s,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}},$s=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function ml(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:rg();const e=I=>ml(I);if(e.version="3.2.6",e.removed=[],!t||!t.document||t.document.nodeType!==mi.document||!t.Element)return e.isSupported=!1,e;let{document:i}=t;const r=i,n=r.currentScript,{DocumentFragment:s,HTMLTemplateElement:o,Node:a,Element:l,NodeFilter:c,NamedNodeMap:h=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:d,DOMParser:u,trustedTypes:f}=t,m=l.prototype,y=gi(m,"cloneNode"),_=gi(m,"remove"),L=gi(m,"nextSibling"),b=gi(m,"childNodes"),P=gi(m,"parentNode");if(typeof o=="function"){const I=i.createElement("template");I.content&&I.content.ownerDocument&&(i=I.content.ownerDocument)}let C,S="";const{implementation:U,createNodeIterator:N,createDocumentFragment:Q,getElementsByTagName:nt}=i,{importNode:H}=r;let A=$s();e.isSupported=typeof dl=="function"&&typeof P=="function"&&U&&U.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:tt,ERB_EXPR:oe,TMPLIT_EXPR:R,DATA_ATTR:w,ARIA_ATTR:T,IS_SCRIPT_OR_DATA:F,ATTR_WHITESPACE:k,CUSTOM_ELEMENT:$}=Ms;let{IS_ALLOWED_URI:W}=Ms,z=null;const V=Y({},[...Ls,...Cn,...xn,...bn,...Fs]);let j=null;const et=Y({},[...Os,...Tn,...Is,...Qi]);let X=Object.seal(fl(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),vt=null,Bt=null,se=!0,Et=!0,ot=!1,Lt=!0,St=!1,Ut=!0,ge=!1,sn=!1,an=!1,Be=!1,Wi=!1,Hi=!1,zo=!0,Wo=!1;const kh="user-content-";let ln=!0,ai=!1,Ee={},Le=null;const Ho=Y({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Yo=null;const jo=Y({},["audio","video","img","source","image","track"]);let cn=null;const Uo=Y({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Yi="http://www.w3.org/1998/Math/MathML",ji="http://www.w3.org/2000/svg",Xt="http://www.w3.org/1999/xhtml";let Fe=Xt,hn=!1,un=null;const wh=Y({},[Yi,ji,Xt],_n);let Ui=Y({},["mi","mo","mn","ms","mtext"]),Xi=Y({},["annotation-xml"]);const Ah=Y({},["title","style","font","a","script"]);let li=null;const Bh=["application/xhtml+xml","text/html"],Eh="text/html";let rt=null,Oe=null;const Lh=i.createElement("form"),Xo=function(p){return p instanceof RegExp||p instanceof Function},dn=function(){let p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Oe&&Oe===p)){if((!p||typeof p!="object")&&(p={}),p=Qt(p),li=Bh.indexOf(p.PARSER_MEDIA_TYPE)===-1?Eh:p.PARSER_MEDIA_TYPE,rt=li==="application/xhtml+xml"?_n:ar,z=Ft(p,"ALLOWED_TAGS")?Y({},p.ALLOWED_TAGS,rt):V,j=Ft(p,"ALLOWED_ATTR")?Y({},p.ALLOWED_ATTR,rt):et,un=Ft(p,"ALLOWED_NAMESPACES")?Y({},p.ALLOWED_NAMESPACES,_n):wh,cn=Ft(p,"ADD_URI_SAFE_ATTR")?Y(Qt(Uo),p.ADD_URI_SAFE_ATTR,rt):Uo,Yo=Ft(p,"ADD_DATA_URI_TAGS")?Y(Qt(jo),p.ADD_DATA_URI_TAGS,rt):jo,Le=Ft(p,"FORBID_CONTENTS")?Y({},p.FORBID_CONTENTS,rt):Ho,vt=Ft(p,"FORBID_TAGS")?Y({},p.FORBID_TAGS,rt):Qt({}),Bt=Ft(p,"FORBID_ATTR")?Y({},p.FORBID_ATTR,rt):Qt({}),Ee=Ft(p,"USE_PROFILES")?p.USE_PROFILES:!1,se=p.ALLOW_ARIA_ATTR!==!1,Et=p.ALLOW_DATA_ATTR!==!1,ot=p.ALLOW_UNKNOWN_PROTOCOLS||!1,Lt=p.ALLOW_SELF_CLOSE_IN_ATTR!==!1,St=p.SAFE_FOR_TEMPLATES||!1,Ut=p.SAFE_FOR_XML!==!1,ge=p.WHOLE_DOCUMENT||!1,Be=p.RETURN_DOM||!1,Wi=p.RETURN_DOM_FRAGMENT||!1,Hi=p.RETURN_TRUSTED_TYPE||!1,an=p.FORCE_BODY||!1,zo=p.SANITIZE_DOM!==!1,Wo=p.SANITIZE_NAMED_PROPS||!1,ln=p.KEEP_CONTENT!==!1,ai=p.IN_PLACE||!1,W=p.ALLOWED_URI_REGEXP||pl,Fe=p.NAMESPACE||Xt,Ui=p.MATHML_TEXT_INTEGRATION_POINTS||Ui,Xi=p.HTML_INTEGRATION_POINTS||Xi,X=p.CUSTOM_ELEMENT_HANDLING||{},p.CUSTOM_ELEMENT_HANDLING&&Xo(p.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(X.tagNameCheck=p.CUSTOM_ELEMENT_HANDLING.tagNameCheck),p.CUSTOM_ELEMENT_HANDLING&&Xo(p.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(X.attributeNameCheck=p.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),p.CUSTOM_ELEMENT_HANDLING&&typeof p.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(X.allowCustomizedBuiltInElements=p.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),St&&(Et=!1),Wi&&(Be=!0),Ee&&(z=Y({},Fs),j=[],Ee.html===!0&&(Y(z,Ls),Y(j,Os)),Ee.svg===!0&&(Y(z,Cn),Y(j,Tn),Y(j,Qi)),Ee.svgFilters===!0&&(Y(z,xn),Y(j,Tn),Y(j,Qi)),Ee.mathMl===!0&&(Y(z,bn),Y(j,Is),Y(j,Qi))),p.ADD_TAGS&&(z===V&&(z=Qt(z)),Y(z,p.ADD_TAGS,rt)),p.ADD_ATTR&&(j===et&&(j=Qt(j)),Y(j,p.ADD_ATTR,rt)),p.ADD_URI_SAFE_ATTR&&Y(cn,p.ADD_URI_SAFE_ATTR,rt),p.FORBID_CONTENTS&&(Le===Ho&&(Le=Qt(Le)),Y(Le,p.FORBID_CONTENTS,rt)),ln&&(z["#text"]=!0),ge&&Y(z,["html","head","body"]),z.table&&(Y(z,["tbody"]),delete vt.tbody),p.TRUSTED_TYPES_POLICY){if(typeof p.TRUSTED_TYPES_POLICY.createHTML!="function")throw pi('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof p.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw pi('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');C=p.TRUSTED_TYPES_POLICY,S=C.createHTML("")}else C===void 0&&(C=ng(f,n)),C!==null&&typeof S=="string"&&(S=C.createHTML(""));gt&&gt(p),Oe=p}},Go=Y({},[...Cn,...xn,...Xp]),Vo=Y({},[...bn,...Gp]),Fh=function(p){let x=P(p);(!x||!x.tagName)&&(x={namespaceURI:Fe,tagName:"template"});const B=ar(p.tagName),K=ar(x.tagName);return un[p.namespaceURI]?p.namespaceURI===ji?x.namespaceURI===Xt?B==="svg":x.namespaceURI===Yi?B==="svg"&&(K==="annotation-xml"||Ui[K]):!!Go[B]:p.namespaceURI===Yi?x.namespaceURI===Xt?B==="math":x.namespaceURI===ji?B==="math"&&Xi[K]:!!Vo[B]:p.namespaceURI===Xt?x.namespaceURI===ji&&!Xi[K]||x.namespaceURI===Yi&&!Ui[K]?!1:!Vo[B]&&(Ah[B]||!Go[B]):!!(li==="application/xhtml+xml"&&un[p.namespaceURI]):!1},Nt=function(p){di(e.removed,{element:p});try{P(p).removeChild(p)}catch{_(p)}},Ie=function(p,x){try{di(e.removed,{attribute:x.getAttributeNode(p),from:x})}catch{di(e.removed,{attribute:null,from:x})}if(x.removeAttribute(p),p==="is")if(Be||Wi)try{Nt(x)}catch{}else try{x.setAttribute(p,"")}catch{}},Ko=function(p){let x=null,B=null;if(an)p="<remove></remove>"+p;else{const it=Es(p,/^[\r\n\t ]+/);B=it&&it[0]}li==="application/xhtml+xml"&&Fe===Xt&&(p='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+p+"</body></html>");const K=C?C.createHTML(p):p;if(Fe===Xt)try{x=new u().parseFromString(K,li)}catch{}if(!x||!x.documentElement){x=U.createDocument(Fe,"template",null);try{x.documentElement.innerHTML=hn?S:K}catch{}}const at=x.body||x.documentElement;return p&&B&&at.insertBefore(i.createTextNode(B),at.childNodes[0]||null),Fe===Xt?nt.call(x,ge?"html":"body")[0]:ge?x.documentElement:at},Zo=function(p){return N.call(p.ownerDocument||p,p,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},fn=function(p){return p instanceof d&&(typeof p.nodeName!="string"||typeof p.textContent!="string"||typeof p.removeChild!="function"||!(p.attributes instanceof h)||typeof p.removeAttribute!="function"||typeof p.setAttribute!="function"||typeof p.namespaceURI!="string"||typeof p.insertBefore!="function"||typeof p.hasChildNodes!="function")},Jo=function(p){return typeof a=="function"&&p instanceof a};function Gt(I,p,x){Ji(I,B=>{B.call(e,p,x,Oe)})}const Qo=function(p){let x=null;if(Gt(A.beforeSanitizeElements,p,null),fn(p))return Nt(p),!0;const B=rt(p.nodeName);if(Gt(A.uponSanitizeElement,p,{tagName:B,allowedTags:z}),Ut&&p.hasChildNodes()&&!Jo(p.firstElementChild)&&ut(/<[/\w!]/g,p.innerHTML)&&ut(/<[/\w!]/g,p.textContent)||p.nodeType===mi.progressingInstruction||Ut&&p.nodeType===mi.comment&&ut(/<[/\w]/g,p.data))return Nt(p),!0;if(!z[B]||vt[B]){if(!vt[B]&&es(B)&&(X.tagNameCheck instanceof RegExp&&ut(X.tagNameCheck,B)||X.tagNameCheck instanceof Function&&X.tagNameCheck(B)))return!1;if(ln&&!Le[B]){const K=P(p)||p.parentNode,at=b(p)||p.childNodes;if(at&&K){const it=at.length;for(let yt=it-1;yt>=0;--yt){const Vt=y(at[yt],!0);Vt.__removalCount=(p.__removalCount||0)+1,K.insertBefore(Vt,L(p))}}}return Nt(p),!0}return p instanceof l&&!Fh(p)||(B==="noscript"||B==="noembed"||B==="noframes")&&ut(/<\/no(script|embed|frames)/i,p.innerHTML)?(Nt(p),!0):(St&&p.nodeType===mi.text&&(x=p.textContent,Ji([tt,oe,R],K=>{x=fi(x,K," ")}),p.textContent!==x&&(di(e.removed,{element:p.cloneNode()}),p.textContent=x)),Gt(A.afterSanitizeElements,p,null),!1)},ts=function(p,x,B){if(zo&&(x==="id"||x==="name")&&(B in i||B in Lh))return!1;if(!(Et&&!Bt[x]&&ut(w,x))){if(!(se&&ut(T,x))){if(!j[x]||Bt[x]){if(!(es(p)&&(X.tagNameCheck instanceof RegExp&&ut(X.tagNameCheck,p)||X.tagNameCheck instanceof Function&&X.tagNameCheck(p))&&(X.attributeNameCheck instanceof RegExp&&ut(X.attributeNameCheck,x)||X.attributeNameCheck instanceof Function&&X.attributeNameCheck(x))||x==="is"&&X.allowCustomizedBuiltInElements&&(X.tagNameCheck instanceof RegExp&&ut(X.tagNameCheck,B)||X.tagNameCheck instanceof Function&&X.tagNameCheck(B))))return!1}else if(!cn[x]){if(!ut(W,fi(B,k,""))){if(!((x==="src"||x==="xlink:href"||x==="href")&&p!=="script"&&Hp(B,"data:")===0&&Yo[p])){if(!(ot&&!ut(F,fi(B,k,"")))){if(B)return!1}}}}}}return!0},es=function(p){return p!=="annotation-xml"&&Es(p,$)},is=function(p){Gt(A.beforeSanitizeAttributes,p,null);const{attributes:x}=p;if(!x||fn(p))return;const B={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:j,forceKeepAttr:void 0};let K=x.length;for(;K--;){const at=x[K],{name:it,namespaceURI:yt,value:Vt}=at,ci=rt(it),pn=Vt;let lt=it==="value"?pn:Yp(pn);if(B.attrName=ci,B.attrValue=lt,B.keepAttr=!0,B.forceKeepAttr=void 0,Gt(A.uponSanitizeAttribute,p,B),lt=B.attrValue,Wo&&(ci==="id"||ci==="name")&&(Ie(it,p),lt=kh+lt),Ut&&ut(/((--!?|])>)|<\/(style|title)/i,lt)){Ie(it,p);continue}if(B.forceKeepAttr)continue;if(!B.keepAttr){Ie(it,p);continue}if(!Lt&&ut(/\/>/i,lt)){Ie(it,p);continue}St&&Ji([tt,oe,R],ns=>{lt=fi(lt,ns," ")});const rs=rt(p.nodeName);if(!ts(rs,ci,lt)){Ie(it,p);continue}if(C&&typeof f=="object"&&typeof f.getAttributeType=="function"&&!yt)switch(f.getAttributeType(rs,ci)){case"TrustedHTML":{lt=C.createHTML(lt);break}case"TrustedScriptURL":{lt=C.createScriptURL(lt);break}}if(lt!==pn)try{yt?p.setAttributeNS(yt,it,lt):p.setAttribute(it,lt),fn(p)?Nt(p):Bs(e.removed)}catch{Ie(it,p)}}Gt(A.afterSanitizeAttributes,p,null)},Oh=function I(p){let x=null;const B=Zo(p);for(Gt(A.beforeSanitizeShadowDOM,p,null);x=B.nextNode();)Gt(A.uponSanitizeShadowNode,x,null),Qo(x),is(x),x.content instanceof s&&I(x.content);Gt(A.afterSanitizeShadowDOM,p,null)};return e.sanitize=function(I){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},x=null,B=null,K=null,at=null;if(hn=!I,hn&&(I="<!-->"),typeof I!="string"&&!Jo(I))if(typeof I.toString=="function"){if(I=I.toString(),typeof I!="string")throw pi("dirty is not a string, aborting")}else throw pi("toString is not a function");if(!e.isSupported)return I;if(sn||dn(p),e.removed=[],typeof I=="string"&&(ai=!1),ai){if(I.nodeName){const Vt=rt(I.nodeName);if(!z[Vt]||vt[Vt])throw pi("root node is forbidden and cannot be sanitized in-place")}}else if(I instanceof a)x=Ko("<!---->"),B=x.ownerDocument.importNode(I,!0),B.nodeType===mi.element&&B.nodeName==="BODY"||B.nodeName==="HTML"?x=B:x.appendChild(B);else{if(!Be&&!St&&!ge&&I.indexOf("<")===-1)return C&&Hi?C.createHTML(I):I;if(x=Ko(I),!x)return Be?null:Hi?S:""}x&&an&&Nt(x.firstChild);const it=Zo(ai?I:x);for(;K=it.nextNode();)Qo(K),is(K),K.content instanceof s&&Oh(K.content);if(ai)return I;if(Be){if(Wi)for(at=Q.call(x.ownerDocument);x.firstChild;)at.appendChild(x.firstChild);else at=x;return(j.shadowroot||j.shadowrootmode)&&(at=H.call(r,at,!0)),at}let yt=ge?x.outerHTML:x.innerHTML;return ge&&z["!doctype"]&&x.ownerDocument&&x.ownerDocument.doctype&&x.ownerDocument.doctype.name&&ut(gl,x.ownerDocument.doctype.name)&&(yt="<!DOCTYPE "+x.ownerDocument.doctype.name+`>
13
- `+yt),St&&Ji([tt,oe,R],Vt=>{yt=fi(yt,Vt," ")}),C&&Hi?C.createHTML(yt):yt},e.setConfig=function(){let I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};dn(I),sn=!0},e.clearConfig=function(){Oe=null,sn=!1},e.isValidAttribute=function(I,p,x){Oe||dn({});const B=rt(I),K=rt(p);return ts(B,K,x)},e.addHook=function(I,p){typeof p=="function"&&di(A[I],p)},e.removeHook=function(I,p){if(p!==void 0){const x=zp(A[I],p);return x===-1?void 0:Wp(A[I],x,1)[0]}return Bs(A[I])},e.removeHooks=function(I){A[I]=[]},e.removeAllHooks=function(){A=$s()},e}var Xe=ml();const lr={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:t=>t>=255?255:t<0?0:t,g:t=>t>=255?255:t<0?0:t,b:t=>t>=255?255:t<0?0:t,h:t=>t%360,s:t=>t>=100?100:t<0?0:t,l:t=>t>=100?100:t<0?0:t,a:t=>t>=1?1:t<0?0:t},toLinear:t=>{const e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:(t,e,i)=>(i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+(e-t)*6*i:i<1/2?e:i<2/3?t+(e-t)*(2/3-i)*6:t),hsl2rgb:({h:t,s:e,l:i},r)=>{if(!e)return i*2.55;t/=360,e/=100,i/=100;const n=i<.5?i*(1+e):i+e-i*e,s=2*i-n;switch(r){case"r":return lr.hue2rgb(s,n,t+1/3)*255;case"g":return lr.hue2rgb(s,n,t)*255;case"b":return lr.hue2rgb(s,n,t-1/3)*255}},rgb2hsl:({r:t,g:e,b:i},r)=>{t/=255,e/=255,i/=255;const n=Math.max(t,e,i),s=Math.min(t,e,i),o=(n+s)/2;if(r==="l")return o*100;if(n===s)return 0;const a=n-s,l=o>.5?a/(2-n-s):a/(n+s);if(r==="s")return l*100;switch(n){case t:return((e-i)/a+(e<i?6:0))*60;case e:return((i-t)/a+2)*60;case i:return((t-e)/a+4)*60;default:return-1}}},og={clamp:(t,e,i)=>e>i?Math.min(e,Math.max(i,t)):Math.min(i,Math.max(e,t)),round:t=>Math.round(t*1e10)/1e10},sg={dec2hex:t=>{const e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}},q={channel:lr,lang:og,unit:sg},le={};for(let t=0;t<=255;t++)le[t]=q.unit.dec2hex(t);const ct={ALL:0,RGB:1,HSL:2};class ag{constructor(){this.type=ct.ALL}get(){return this.type}set(e){if(this.type&&this.type!==e)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=e}reset(){this.type=ct.ALL}is(e){return this.type===e}}class lg{constructor(e,i){this.color=i,this.changed=!1,this.data=e,this.type=new ag}set(e,i){return this.color=i,this.changed=!1,this.data=e,this.type.type=ct.ALL,this}_ensureHSL(){const e=this.data,{h:i,s:r,l:n}=e;i===void 0&&(e.h=q.channel.rgb2hsl(e,"h")),r===void 0&&(e.s=q.channel.rgb2hsl(e,"s")),n===void 0&&(e.l=q.channel.rgb2hsl(e,"l"))}_ensureRGB(){const e=this.data,{r:i,g:r,b:n}=e;i===void 0&&(e.r=q.channel.hsl2rgb(e,"r")),r===void 0&&(e.g=q.channel.hsl2rgb(e,"g")),n===void 0&&(e.b=q.channel.hsl2rgb(e,"b"))}get r(){const e=this.data,i=e.r;return!this.type.is(ct.HSL)&&i!==void 0?i:(this._ensureHSL(),q.channel.hsl2rgb(e,"r"))}get g(){const e=this.data,i=e.g;return!this.type.is(ct.HSL)&&i!==void 0?i:(this._ensureHSL(),q.channel.hsl2rgb(e,"g"))}get b(){const e=this.data,i=e.b;return!this.type.is(ct.HSL)&&i!==void 0?i:(this._ensureHSL(),q.channel.hsl2rgb(e,"b"))}get h(){const e=this.data,i=e.h;return!this.type.is(ct.RGB)&&i!==void 0?i:(this._ensureRGB(),q.channel.rgb2hsl(e,"h"))}get s(){const e=this.data,i=e.s;return!this.type.is(ct.RGB)&&i!==void 0?i:(this._ensureRGB(),q.channel.rgb2hsl(e,"s"))}get l(){const e=this.data,i=e.l;return!this.type.is(ct.RGB)&&i!==void 0?i:(this._ensureRGB(),q.channel.rgb2hsl(e,"l"))}get a(){return this.data.a}set r(e){this.type.set(ct.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set(ct.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set(ct.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set(ct.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set(ct.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set(ct.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}}const Hr=new lg({r:0,g:0,b:0,a:0},"transparent"),Re={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(t.charCodeAt(0)!==35)return;const e=t.match(Re.re);if(!e)return;const i=e[1],r=parseInt(i,16),n=i.length,s=n%4===0,o=n>4,a=o?1:17,l=o?8:4,c=s?0:-1,h=o?255:15;return Hr.set({r:(r>>l*(c+3)&h)*a,g:(r>>l*(c+2)&h)*a,b:(r>>l*(c+1)&h)*a,a:s?(r&h)*a/255:1},t)},stringify:t=>{const{r:e,g:i,b:r,a:n}=t;return n<1?`#${le[Math.round(e)]}${le[Math.round(i)]}${le[Math.round(r)]}${le[Math.round(n*255)]}`:`#${le[Math.round(e)]}${le[Math.round(i)]}${le[Math.round(r)]}`}},_e={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:t=>{const e=t.match(_e.hueRe);if(e){const[,i,r]=e;switch(r){case"grad":return q.channel.clamp.h(parseFloat(i)*.9);case"rad":return q.channel.clamp.h(parseFloat(i)*180/Math.PI);case"turn":return q.channel.clamp.h(parseFloat(i)*360)}}return q.channel.clamp.h(parseFloat(t))},parse:t=>{const e=t.charCodeAt(0);if(e!==104&&e!==72)return;const i=t.match(_e.re);if(!i)return;const[,r,n,s,o,a]=i;return Hr.set({h:_e._hue2deg(r),s:q.channel.clamp.s(parseFloat(n)),l:q.channel.clamp.l(parseFloat(s)),a:o?q.channel.clamp.a(a?parseFloat(o)/100:parseFloat(o)):1},t)},stringify:t=>{const{h:e,s:i,l:r,a:n}=t;return n<1?`hsla(${q.lang.round(e)}, ${q.lang.round(i)}%, ${q.lang.round(r)}%, ${n})`:`hsl(${q.lang.round(e)}, ${q.lang.round(i)}%, ${q.lang.round(r)}%)`}},Si={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:t=>{t=t.toLowerCase();const e=Si.colors[t];if(e)return Re.parse(e)},stringify:t=>{const e=Re.stringify(t);for(const i in Si.colors)if(Si.colors[i]===e)return i}},Ti={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:t=>{const e=t.charCodeAt(0);if(e!==114&&e!==82)return;const i=t.match(Ti.re);if(!i)return;const[,r,n,s,o,a,l,c,h]=i;return Hr.set({r:q.channel.clamp.r(n?parseFloat(r)*2.55:parseFloat(r)),g:q.channel.clamp.g(o?parseFloat(s)*2.55:parseFloat(s)),b:q.channel.clamp.b(l?parseFloat(a)*2.55:parseFloat(a)),a:c?q.channel.clamp.a(h?parseFloat(c)/100:parseFloat(c)):1},t)},stringify:t=>{const{r:e,g:i,b:r,a:n}=t;return n<1?`rgba(${q.lang.round(e)}, ${q.lang.round(i)}, ${q.lang.round(r)}, ${q.lang.round(n)})`:`rgb(${q.lang.round(e)}, ${q.lang.round(i)}, ${q.lang.round(r)})`}},Mt={format:{keyword:Si,hex:Re,rgb:Ti,rgba:Ti,hsl:_e,hsla:_e},parse:t=>{if(typeof t!="string")return t;const e=Re.parse(t)||Ti.parse(t)||_e.parse(t)||Si.parse(t);if(e)return e;throw new Error(`Unsupported color format: "${t}"`)},stringify:t=>!t.changed&&t.color?t.color:t.type.is(ct.HSL)||t.data.r===void 0?_e.stringify(t):t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)?Ti.stringify(t):Re.stringify(t)},yl=(t,e)=>{const i=Mt.parse(t);for(const r in e)i[r]=q.channel.clamp[r](e[r]);return Mt.stringify(i)},qe=(t,e,i=0,r=1)=>{if(typeof t!="number")return yl(t,{a:e});const n=Hr.set({r:q.channel.clamp.r(t),g:q.channel.clamp.g(e),b:q.channel.clamp.b(i),a:q.channel.clamp.a(r)});return Mt.stringify(n)},cg=t=>{const{r:e,g:i,b:r}=Mt.parse(t),n=.2126*q.channel.toLinear(e)+.7152*q.channel.toLinear(i)+.0722*q.channel.toLinear(r);return q.lang.round(n)},hg=t=>cg(t)>=.5,ei=t=>!hg(t),_l=(t,e,i)=>{const r=Mt.parse(t),n=r[e],s=q.channel.clamp[e](n+i);return n!==s&&(r[e]=s),Mt.stringify(r)},E=(t,e)=>_l(t,"l",e),D=(t,e)=>_l(t,"l",-e),g=(t,e)=>{const i=Mt.parse(t),r={};for(const n in e)e[n]&&(r[n]=i[n]+e[n]);return yl(t,r)},ug=(t,e,i=50)=>{const{r,g:n,b:s,a:o}=Mt.parse(t),{r:a,g:l,b:c,a:h}=Mt.parse(e),d=i/100,u=d*2-1,f=o-h,y=((u*f===-1?u:(u+f)/(1+u*f))+1)/2,_=1-y,L=r*y+a*_,b=n*y+l*_,P=s*y+c*_,C=o*d+h*(1-d);return qe(L,b,P,C)},v=(t,e=100)=>{const i=Mt.parse(t);return i.r=255-i.r,i.g=255-i.g,i.b=255-i.b,ug(i,t,e)};var Cl=typeof global=="object"&&global&&global.Object===Object&&global,dg=typeof self=="object"&&self&&self.Object===Object&&self,jt=Cl||dg||Function("return this")(),Fi=jt.Symbol,xl=Object.prototype,fg=xl.hasOwnProperty,pg=xl.toString,yi=Fi?Fi.toStringTag:void 0;function gg(t){var e=fg.call(t,yi),i=t[yi];try{t[yi]=void 0;var r=!0}catch{}var n=pg.call(t);return r&&(e?t[yi]=i:delete t[yi]),n}var mg=Object.prototype,yg=mg.toString;function _g(t){return yg.call(t)}var Cg="[object Null]",xg="[object Undefined]",Ds=Fi?Fi.toStringTag:void 0;function ii(t){return t==null?t===void 0?xg:Cg:Ds&&Ds in Object(t)?gg(t):_g(t)}function fe(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var bg="[object AsyncFunction]",Tg="[object Function]",vg="[object GeneratorFunction]",Sg="[object Proxy]";function Co(t){if(!fe(t))return!1;var e=ii(t);return e==Tg||e==vg||e==bg||e==Sg}var vn=jt["__core-js_shared__"],Ns=(function(){var t=/[^.]+$/.exec(vn&&vn.keys&&vn.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();function kg(t){return!!Ns&&Ns in t}var wg=Function.prototype,Ag=wg.toString;function ke(t){if(t!=null){try{return Ag.call(t)}catch{}try{return t+""}catch{}}return""}var Bg=/[\\^$.*+?()[\]{}|]/g,Eg=/^\[object .+?Constructor\]$/,Lg=Function.prototype,Fg=Object.prototype,Og=Lg.toString,Ig=Fg.hasOwnProperty,Mg=RegExp("^"+Og.call(Ig).replace(Bg,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function $g(t){if(!fe(t)||kg(t))return!1;var e=Co(t)?Mg:Eg;return e.test(ke(t))}function Dg(t,e){return t==null?void 0:t[e]}function we(t,e){var i=Dg(t,e);return $g(i)?i:void 0}var Oi=we(Object,"create");function Ng(){this.__data__=Oi?Oi(null):{},this.size=0}function Pg(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var Rg="__lodash_hash_undefined__",qg=Object.prototype,zg=qg.hasOwnProperty;function Wg(t){var e=this.__data__;if(Oi){var i=e[t];return i===Rg?void 0:i}return zg.call(e,t)?e[t]:void 0}var Hg=Object.prototype,Yg=Hg.hasOwnProperty;function jg(t){var e=this.__data__;return Oi?e[t]!==void 0:Yg.call(e,t)}var Ug="__lodash_hash_undefined__";function Xg(t,e){var i=this.__data__;return this.size+=this.has(t)?0:1,i[t]=Oi&&e===void 0?Ug:e,this}function Te(t){var e=-1,i=t==null?0:t.length;for(this.clear();++e<i;){var r=t[e];this.set(r[0],r[1])}}Te.prototype.clear=Ng;Te.prototype.delete=Pg;Te.prototype.get=Wg;Te.prototype.has=jg;Te.prototype.set=Xg;function Gg(){this.__data__=[],this.size=0}function Yr(t,e){return t===e||t!==t&&e!==e}function jr(t,e){for(var i=t.length;i--;)if(Yr(t[i][0],e))return i;return-1}var Vg=Array.prototype,Kg=Vg.splice;function Zg(t){var e=this.__data__,i=jr(e,t);if(i<0)return!1;var r=e.length-1;return i==r?e.pop():Kg.call(e,i,1),--this.size,!0}function Jg(t){var e=this.__data__,i=jr(e,t);return i<0?void 0:e[i][1]}function Qg(t){return jr(this.__data__,t)>-1}function tm(t,e){var i=this.__data__,r=jr(i,t);return r<0?(++this.size,i.push([t,e])):i[r][1]=e,this}function ne(t){var e=-1,i=t==null?0:t.length;for(this.clear();++e<i;){var r=t[e];this.set(r[0],r[1])}}ne.prototype.clear=Gg;ne.prototype.delete=Zg;ne.prototype.get=Jg;ne.prototype.has=Qg;ne.prototype.set=tm;var Ii=we(jt,"Map");function em(){this.size=0,this.__data__={hash:new Te,map:new(Ii||ne),string:new Te}}function im(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function Ur(t,e){var i=t.__data__;return im(e)?i[typeof e=="string"?"string":"hash"]:i.map}function rm(t){var e=Ur(this,t).delete(t);return this.size-=e?1:0,e}function nm(t){return Ur(this,t).get(t)}function om(t){return Ur(this,t).has(t)}function sm(t,e){var i=Ur(this,t),r=i.size;return i.set(t,e),this.size+=i.size==r?0:1,this}function pe(t){var e=-1,i=t==null?0:t.length;for(this.clear();++e<i;){var r=t[e];this.set(r[0],r[1])}}pe.prototype.clear=em;pe.prototype.delete=rm;pe.prototype.get=nm;pe.prototype.has=om;pe.prototype.set=sm;var am="Expected a function";function qi(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(am);var i=function(){var r=arguments,n=e?e.apply(this,r):r[0],s=i.cache;if(s.has(n))return s.get(n);var o=t.apply(this,r);return i.cache=s.set(n,o)||s,o};return i.cache=new(qi.Cache||pe),i}qi.Cache=pe;function lm(){this.__data__=new ne,this.size=0}function cm(t){var e=this.__data__,i=e.delete(t);return this.size=e.size,i}function hm(t){return this.__data__.get(t)}function um(t){return this.__data__.has(t)}var dm=200;function fm(t,e){var i=this.__data__;if(i instanceof ne){var r=i.__data__;if(!Ii||r.length<dm-1)return r.push([t,e]),this.size=++i.size,this;i=this.__data__=new pe(r)}return i.set(t,e),this.size=i.size,this}function Ae(t){var e=this.__data__=new ne(t);this.size=e.size}Ae.prototype.clear=lm;Ae.prototype.delete=cm;Ae.prototype.get=hm;Ae.prototype.has=um;Ae.prototype.set=fm;var vr=(function(){try{var t=we(Object,"defineProperty");return t({},"",{}),t}catch{}})();function xo(t,e,i){e=="__proto__"&&vr?vr(t,e,{configurable:!0,enumerable:!0,value:i,writable:!0}):t[e]=i}function Yn(t,e,i){(i!==void 0&&!Yr(t[e],i)||i===void 0&&!(e in t))&&xo(t,e,i)}function pm(t){return function(e,i,r){for(var n=-1,s=Object(e),o=r(e),a=o.length;a--;){var l=o[++n];if(i(s[l],l,s)===!1)break}return e}}var gm=pm(),bl=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ps=bl&&typeof module=="object"&&module&&!module.nodeType&&module,mm=Ps&&Ps.exports===bl,Rs=mm?jt.Buffer:void 0,qs=Rs?Rs.allocUnsafe:void 0;function Tl(t,e){if(e)return t.slice();var i=t.length,r=qs?qs(i):new t.constructor(i);return t.copy(r),r}var zs=jt.Uint8Array;function vl(t){var e=new t.constructor(t.byteLength);return new zs(e).set(new zs(t)),e}function Sl(t,e){var i=e?vl(t.buffer):t.buffer;return new t.constructor(i,t.byteOffset,t.length)}function kl(t,e){var i=-1,r=t.length;for(e||(e=Array(r));++i<r;)e[i]=t[i];return e}var Ws=Object.create,ym=(function(){function t(){}return function(e){if(!fe(e))return{};if(Ws)return Ws(e);t.prototype=e;var i=new t;return t.prototype=void 0,i}})();function wl(t,e){return function(i){return t(e(i))}}var Al=wl(Object.getPrototypeOf,Object),_m=Object.prototype;function Xr(t){var e=t&&t.constructor,i=typeof e=="function"&&e.prototype||_m;return t===i}function Bl(t){return typeof t.constructor=="function"&&!Xr(t)?ym(Al(t)):{}}function ri(t){return t!=null&&typeof t=="object"}var Cm="[object Arguments]";function Hs(t){return ri(t)&&ii(t)==Cm}var El=Object.prototype,xm=El.hasOwnProperty,bm=El.propertyIsEnumerable,Sr=Hs((function(){return arguments})())?Hs:function(t){return ri(t)&&xm.call(t,"callee")&&!bm.call(t,"callee")},Mi=Array.isArray,Tm=9007199254740991;function Ll(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Tm}function zi(t){return t!=null&&Ll(t.length)&&!Co(t)}function vm(t){return ri(t)&&zi(t)}function Sm(){return!1}var Fl=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ys=Fl&&typeof module=="object"&&module&&!module.nodeType&&module,km=Ys&&Ys.exports===Fl,js=km?jt.Buffer:void 0,wm=js?js.isBuffer:void 0,Gr=wm||Sm,Am="[object Object]",Bm=Function.prototype,Em=Object.prototype,Ol=Bm.toString,Lm=Em.hasOwnProperty,Fm=Ol.call(Object);function Om(t){if(!ri(t)||ii(t)!=Am)return!1;var e=Al(t);if(e===null)return!0;var i=Lm.call(e,"constructor")&&e.constructor;return typeof i=="function"&&i instanceof i&&Ol.call(i)==Fm}var Im="[object Arguments]",Mm="[object Array]",$m="[object Boolean]",Dm="[object Date]",Nm="[object Error]",Pm="[object Function]",Rm="[object Map]",qm="[object Number]",zm="[object Object]",Wm="[object RegExp]",Hm="[object Set]",Ym="[object String]",jm="[object WeakMap]",Um="[object ArrayBuffer]",Xm="[object DataView]",Gm="[object Float32Array]",Vm="[object Float64Array]",Km="[object Int8Array]",Zm="[object Int16Array]",Jm="[object Int32Array]",Qm="[object Uint8Array]",t0="[object Uint8ClampedArray]",e0="[object Uint16Array]",i0="[object Uint32Array]",G={};G[Gm]=G[Vm]=G[Km]=G[Zm]=G[Jm]=G[Qm]=G[t0]=G[e0]=G[i0]=!0;G[Im]=G[Mm]=G[Um]=G[$m]=G[Xm]=G[Dm]=G[Nm]=G[Pm]=G[Rm]=G[qm]=G[zm]=G[Wm]=G[Hm]=G[Ym]=G[jm]=!1;function r0(t){return ri(t)&&Ll(t.length)&&!!G[ii(t)]}function Il(t){return function(e){return t(e)}}var Ml=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ki=Ml&&typeof module=="object"&&module&&!module.nodeType&&module,n0=ki&&ki.exports===Ml,Sn=n0&&Cl.process,jn=(function(){try{var t=ki&&ki.require&&ki.require("util").types;return t||Sn&&Sn.binding&&Sn.binding("util")}catch{}})(),Us=jn&&jn.isTypedArray,bo=Us?Il(Us):r0;function Un(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}var o0=Object.prototype,s0=o0.hasOwnProperty;function $l(t,e,i){var r=t[e];(!(s0.call(t,e)&&Yr(r,i))||i===void 0&&!(e in t))&&xo(t,e,i)}function Dl(t,e,i,r){var n=!i;i||(i={});for(var s=-1,o=e.length;++s<o;){var a=e[s],l=void 0;l===void 0&&(l=t[a]),n?xo(i,a,l):$l(i,a,l)}return i}function a0(t,e){for(var i=-1,r=Array(t);++i<t;)r[i]=e(i);return r}var l0=9007199254740991,c0=/^(?:0|[1-9]\d*)$/;function Nl(t,e){var i=typeof t;return e=e??l0,!!e&&(i=="number"||i!="symbol"&&c0.test(t))&&t>-1&&t%1==0&&t<e}var h0=Object.prototype,u0=h0.hasOwnProperty;function Pl(t,e){var i=Mi(t),r=!i&&Sr(t),n=!i&&!r&&Gr(t),s=!i&&!r&&!n&&bo(t),o=i||r||n||s,a=o?a0(t.length,String):[],l=a.length;for(var c in t)(e||u0.call(t,c))&&!(o&&(c=="length"||n&&(c=="offset"||c=="parent")||s&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Nl(c,l)))&&a.push(c);return a}function d0(t){var e=[];if(t!=null)for(var i in Object(t))e.push(i);return e}var f0=Object.prototype,p0=f0.hasOwnProperty;function g0(t){if(!fe(t))return d0(t);var e=Xr(t),i=[];for(var r in t)r=="constructor"&&(e||!p0.call(t,r))||i.push(r);return i}function Rl(t){return zi(t)?Pl(t,!0):g0(t)}function m0(t){return Dl(t,Rl(t))}function y0(t,e,i,r,n,s,o){var a=Un(t,i),l=Un(e,i),c=o.get(l);if(c){Yn(t,i,c);return}var h=s?s(a,l,i+"",t,e,o):void 0,d=h===void 0;if(d){var u=Mi(l),f=!u&&Gr(l),m=!u&&!f&&bo(l);h=l,u||f||m?Mi(a)?h=a:vm(a)?h=kl(a):f?(d=!1,h=Tl(l,!0)):m?(d=!1,h=Sl(l,!0)):h=[]:Om(l)||Sr(l)?(h=a,Sr(a)?h=m0(a):(!fe(a)||Co(a))&&(h=Bl(l))):d=!1}d&&(o.set(l,h),n(h,l,r,s,o),o.delete(l)),Yn(t,i,h)}function ql(t,e,i,r,n){t!==e&&gm(e,function(s,o){if(n||(n=new Ae),fe(s))y0(t,e,o,i,ql,r,n);else{var a=r?r(Un(t,o),s,o+"",t,e,n):void 0;a===void 0&&(a=s),Yn(t,o,a)}},Rl)}function zl(t){return t}function _0(t,e,i){switch(i.length){case 0:return t.call(e);case 1:return t.call(e,i[0]);case 2:return t.call(e,i[0],i[1]);case 3:return t.call(e,i[0],i[1],i[2])}return t.apply(e,i)}var Xs=Math.max;function C0(t,e,i){return e=Xs(e===void 0?t.length-1:e,0),function(){for(var r=arguments,n=-1,s=Xs(r.length-e,0),o=Array(s);++n<s;)o[n]=r[e+n];n=-1;for(var a=Array(e+1);++n<e;)a[n]=r[n];return a[e]=i(o),_0(t,this,a)}}function x0(t){return function(){return t}}var b0=vr?function(t,e){return vr(t,"toString",{configurable:!0,enumerable:!1,value:x0(e),writable:!0})}:zl,T0=800,v0=16,S0=Date.now;function k0(t){var e=0,i=0;return function(){var r=S0(),n=v0-(r-i);if(i=r,n>0){if(++e>=T0)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var w0=k0(b0);function A0(t,e){return w0(C0(t,e,zl),t+"")}function B0(t,e,i){if(!fe(i))return!1;var r=typeof e;return(r=="number"?zi(i)&&Nl(e,i.length):r=="string"&&e in i)?Yr(i[e],t):!1}function E0(t){return A0(function(e,i){var r=-1,n=i.length,s=n>1?i[n-1]:void 0,o=n>2?i[2]:void 0;for(s=t.length>3&&typeof s=="function"?(n--,s):void 0,o&&B0(i[0],i[1],o)&&(s=n<3?void 0:s,n=1),e=Object(e);++r<n;){var a=i[r];a&&t(e,a,r,s)}return e})}var L0=E0(function(t,e,i){ql(t,e,i)}),Wl="comm",Hl="rule",Yl="decl",F0="@import",O0="@namespace",I0="@keyframes",M0="@layer",jl=Math.abs,To=String.fromCharCode;function Ul(t){return t.trim()}function cr(t,e,i){return t.replace(e,i)}function $0(t,e,i){return t.indexOf(e,i)}function ze(t,e){return t.charCodeAt(e)|0}function Ge(t,e,i){return t.slice(e,i)}function Rt(t){return t.length}function D0(t){return t.length}function tr(t,e){return e.push(t),t}var Vr=1,Ve=1,Xl=0,At=0,Z=0,ni="";function vo(t,e,i,r,n,s,o,a){return{value:t,root:e,parent:i,type:r,props:n,children:s,line:Vr,column:Ve,length:o,return:"",siblings:a}}function N0(){return Z}function P0(){return Z=At>0?ze(ni,--At):0,Ve--,Z===10&&(Ve=1,Vr--),Z}function It(){return Z=At<Xl?ze(ni,At++):0,Ve++,Z===10&&(Ve=1,Vr++),Z}function ce(){return ze(ni,At)}function hr(){return At}function Kr(t,e){return Ge(ni,t,e)}function $i(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function R0(t){return Vr=Ve=1,Xl=Rt(ni=t),At=0,[]}function q0(t){return ni="",t}function kn(t){return Ul(Kr(At-1,Xn(t===91?t+2:t===40?t+1:t)))}function z0(t){for(;(Z=ce())&&Z<33;)It();return $i(t)>2||$i(Z)>3?"":" "}function W0(t,e){for(;--e&&It()&&!(Z<48||Z>102||Z>57&&Z<65||Z>70&&Z<97););return Kr(t,hr()+(e<6&&ce()==32&&It()==32))}function Xn(t){for(;It();)switch(Z){case t:return At;case 34:case 39:t!==34&&t!==39&&Xn(Z);break;case 40:t===41&&Xn(t);break;case 92:It();break}return At}function H0(t,e){for(;It()&&t+Z!==57;)if(t+Z===84&&ce()===47)break;return"/*"+Kr(e,At-1)+"*"+To(t===47?t:It())}function Y0(t){for(;!$i(ce());)It();return Kr(t,At)}function j0(t){return q0(ur("",null,null,null,[""],t=R0(t),0,[0],t))}function ur(t,e,i,r,n,s,o,a,l){for(var c=0,h=0,d=o,u=0,f=0,m=0,y=1,_=1,L=1,b=0,P="",C=n,S=s,U=r,N=P;_;)switch(m=b,b=It()){case 40:if(m!=108&&ze(N,d-1)==58){$0(N+=cr(kn(b),"&","&\f"),"&\f",jl(c?a[c-1]:0))!=-1&&(L=-1);break}case 34:case 39:case 91:N+=kn(b);break;case 9:case 10:case 13:case 32:N+=z0(m);break;case 92:N+=W0(hr()-1,7);continue;case 47:switch(ce()){case 42:case 47:tr(U0(H0(It(),hr()),e,i,l),l),($i(m||1)==5||$i(ce()||1)==5)&&Rt(N)&&Ge(N,-1,void 0)!==" "&&(N+=" ");break;default:N+="/"}break;case 123*y:a[c++]=Rt(N)*L;case 125*y:case 59:case 0:switch(b){case 0:case 125:_=0;case 59+h:L==-1&&(N=cr(N,/\f/g,"")),f>0&&(Rt(N)-d||y===0&&m===47)&&tr(f>32?Vs(N+";",r,i,d-1,l):Vs(cr(N," ","")+";",r,i,d-2,l),l);break;case 59:N+=";";default:if(tr(U=Gs(N,e,i,c,h,n,a,P,C=[],S=[],d,s),s),b===123)if(h===0)ur(N,e,U,U,C,s,d,a,S);else{switch(u){case 99:if(ze(N,3)===110)break;case 108:if(ze(N,2)===97)break;default:h=0;case 100:case 109:case 115:}h?ur(t,U,U,r&&tr(Gs(t,U,U,0,0,n,a,P,n,C=[],d,S),S),n,S,d,a,r?C:S):ur(N,U,U,U,[""],S,0,a,S)}}c=h=f=0,y=L=1,P=N="",d=o;break;case 58:d=1+Rt(N),f=m;default:if(y<1){if(b==123)--y;else if(b==125&&y++==0&&P0()==125)continue}switch(N+=To(b),b*y){case 38:L=h>0?1:(N+="\f",-1);break;case 44:a[c++]=(Rt(N)-1)*L,L=1;break;case 64:ce()===45&&(N+=kn(It())),u=ce(),h=d=Rt(P=N+=Y0(hr())),b++;break;case 45:m===45&&Rt(N)==2&&(y=0)}}return s}function Gs(t,e,i,r,n,s,o,a,l,c,h,d){for(var u=n-1,f=n===0?s:[""],m=D0(f),y=0,_=0,L=0;y<r;++y)for(var b=0,P=Ge(t,u+1,u=jl(_=o[y])),C=t;b<m;++b)(C=Ul(_>0?f[b]+" "+P:cr(P,/&\f/g,f[b])))&&(l[L++]=C);return vo(t,e,i,n===0?Hl:a,l,c,h,d)}function U0(t,e,i,r){return vo(t,e,i,Wl,To(N0()),Ge(t,2,-2),0,r)}function Vs(t,e,i,r,n){return vo(t,e,i,Yl,Ge(t,0,r),Ge(t,r+1,-1),r,n)}function Gn(t,e){for(var i="",r=0;r<t.length;r++)i+=e(t[r],r,t,e)||"";return i}function X0(t,e,i,r){switch(t.type){case M0:if(t.children.length)break;case F0:case O0:case Yl:return t.return=t.return||t.value;case Wl:return"";case I0:return t.return=t.value+"{"+Gn(t.children,r)+"}";case Hl:if(!Rt(t.value=t.props.join(",")))return""}return Rt(i=Gn(t.children,r))?t.return=t.value+"{"+i+"}":""}var G0=wl(Object.keys,Object),V0=Object.prototype,K0=V0.hasOwnProperty;function Gl(t){if(!Xr(t))return G0(t);var e=[];for(var i in Object(t))K0.call(t,i)&&i!="constructor"&&e.push(i);return e}var Vn=we(jt,"DataView"),Kn=we(jt,"Promise"),Zn=we(jt,"Set"),Jn=we(jt,"WeakMap"),Ks="[object Map]",Z0="[object Object]",Zs="[object Promise]",Js="[object Set]",Qs="[object WeakMap]",ta="[object DataView]",J0=ke(Vn),Q0=ke(Ii),ty=ke(Kn),ey=ke(Zn),iy=ke(Jn);exports.getTag=ii;(Vn&&exports.getTag(new Vn(new ArrayBuffer(1)))!=ta||Ii&&exports.getTag(new Ii)!=Ks||Kn&&exports.getTag(Kn.resolve())!=Zs||Zn&&exports.getTag(new Zn)!=Js||Jn&&exports.getTag(new Jn)!=Qs)&&(exports.getTag=function(t){var e=ii(t),i=e==Z0?t.constructor:void 0,r=i?ke(i):"";if(r)switch(r){case J0:return ta;case Q0:return Ks;case ty:return Zs;case ey:return Js;case iy:return Qs}return e});var ry="[object Map]",ny="[object Set]",oy=Object.prototype,sy=oy.hasOwnProperty;function wn(t){if(t==null)return!0;if(zi(t)&&(Mi(t)||typeof t=="string"||typeof t.splice=="function"||Gr(t)||bo(t)||Sr(t)))return!t.length;var e=exports.getTag(t);if(e==ry||e==ny)return!t.size;if(Xr(t))return!Gl(t).length;for(var i in t)if(sy.call(t,i))return!1;return!0}const Zt={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},M={trace:(...t)=>{},debug:(...t)=>{},info:(...t)=>{},warn:(...t)=>{},error:(...t)=>{},fatal:(...t)=>{}},So=function(t="fatal"){let e=Zt.fatal;typeof t=="string"?(t=t.toLowerCase(),t in Zt&&(e=Zt[t])):typeof t=="number"&&(e=t),M.trace=()=>{},M.debug=()=>{},M.info=()=>{},M.warn=()=>{},M.error=()=>{},M.fatal=()=>{},e<=Zt.fatal&&(M.fatal=console.error?console.error.bind(console,kt("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",kt("FATAL"))),e<=Zt.error&&(M.error=console.error?console.error.bind(console,kt("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",kt("ERROR"))),e<=Zt.warn&&(M.warn=console.warn?console.warn.bind(console,kt("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",kt("WARN"))),e<=Zt.info&&(M.info=console.info?console.info.bind(console,kt("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",kt("INFO"))),e<=Zt.debug&&(M.debug=console.debug?console.debug.bind(console,kt("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",kt("DEBUG"))),e<=Zt.trace&&(M.trace=console.debug?console.debug.bind(console,kt("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",kt("TRACE")))},kt=t=>`%c${ka().format("ss.SSS")} : ${t} : `,oi=/<br\s*\/?>/gi,ay=t=>t?Kl(t).replace(/\\n/g,"#br#").split("#br#"):[""],ly=(()=>{let t=!1;return()=>{t||(cy(),t=!0)}})();function cy(){const t="data-temp-href-target";Xe.addHook("beforeSanitizeAttributes",e=>{e.tagName==="A"&&e.hasAttribute("target")&&e.setAttribute(t,e.getAttribute("target")||"")}),Xe.addHook("afterSanitizeAttributes",e=>{e.tagName==="A"&&e.hasAttribute(t)&&(e.setAttribute("target",e.getAttribute(t)||""),e.removeAttribute(t),e.getAttribute("target")==="_blank"&&e.setAttribute("rel","noopener"))})}const Vl=t=>(ly(),Xe.sanitize(t)),ea=(t,e)=>{var i;if(((i=e.flowchart)==null?void 0:i.htmlLabels)!==!1){const r=e.securityLevel;r==="antiscript"||r==="strict"?t=Vl(t):r!=="loose"&&(t=Kl(t),t=t.replace(/</g,"&lt;").replace(/>/g,"&gt;"),t=t.replace(/=/g,"&equals;"),t=fy(t))}return t},ve=(t,e)=>t&&(e.dompurifyConfig?t=Xe.sanitize(ea(t,e),e.dompurifyConfig).toString():t=Xe.sanitize(ea(t,e),{FORBID_TAGS:["style"]}).toString(),t),hy=(t,e)=>typeof t=="string"?ve(t,e):t.flat().map(i=>ve(i,e)),uy=t=>oi.test(t),dy=t=>t.split(oi),fy=t=>t.replace(/#br#/g,"<br/>"),Kl=t=>t.replace(oi,"#br#"),py=t=>{let e="";return t&&(e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,e=e.replaceAll(/\(/g,"\\("),e=e.replaceAll(/\)/g,"\\)")),e},ko=t=>!(t===!1||["false","null","0"].includes(String(t).trim().toLowerCase())),gy=function(...t){const e=t.filter(i=>!isNaN(i));return Math.max(...e)},my=function(...t){const e=t.filter(i=>!isNaN(i));return Math.min(...e)},yy=function(t){const e=t.split(/(,)/),i=[];for(let r=0;r<e.length;r++){let n=e[r];if(n===","&&r>0&&r+1<e.length){const s=e[r-1],o=e[r+1];_y(s,o)&&(n=s+","+o,r++,i.pop())}i.push(Cy(n))}return i.join("")},Qn=(t,e)=>Math.max(0,t.split(e).length-1),_y=(t,e)=>{const i=Qn(t,"~"),r=Qn(e,"~");return i===1&&r===1},Cy=t=>{const e=Qn(t,"~");let i=!1;if(e<=1)return t;e%2!==0&&t.startsWith("~")&&(t=t.substring(1),i=!0);const r=[...t];let n=r.indexOf("~"),s=r.lastIndexOf("~");for(;n!==-1&&s!==-1&&n!==s;)r[n]="<",r[s]=">",n=r.indexOf("~"),s=r.lastIndexOf("~");return i&&r.unshift("~"),r.join("")},ia=()=>window.MathMLElement!==void 0,to=/\$\$(.*)\$\$/g,eo=t=>{var e;return(((e=t.match(to))==null?void 0:e.length)??0)>0},xy=async(t,e)=>{const i=document.createElement("div");i.innerHTML=await Zl(t,e),i.id="katex-temp",i.style.visibility="hidden",i.style.position="absolute",i.style.top="0";const r=document.querySelector("body");r==null||r.insertAdjacentElement("beforeend",i);const n={width:i.clientWidth,height:i.clientHeight};return i.remove(),n},by=async(t,e)=>{if(!eo(t))return t;if(!ia()&&!e.legacyMathML)return t.replace(to,"MathML is unsupported in this environment.");const{default:i}=await Promise.resolve().then(()=>require("./layers.DUt_7Rf9.js"));return t.split(oi).map(r=>eo(r)?`
12
+ `)),s+=d+r[l+1]}),s}var rr={exports:{}},Gh=rr.exports,ls;function Vh(){return ls||(ls=1,(function(t,e){(function(i,r){t.exports=r()})(Gh,(function(){var i=1e3,r=6e4,n=36e5,o="millisecond",s="second",a="minute",l="hour",c="day",h="week",d="month",u="quarter",f="year",m="date",y="Invalid Date",_=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,L=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(R){var w=["th","st","nd","rd"],T=R%100;return"["+R+(w[(T-20)%10]||w[T]||w[0])+"]"}},P=function(R,w,T){var F=String(R);return!F||F.length>=w?R:""+Array(w+1-F.length).join(T)+R},C={s:P,z:function(R){var w=-R.utcOffset(),T=Math.abs(w),F=Math.floor(T/60),k=T%60;return(w<=0?"+":"-")+P(F,2,"0")+":"+P(k,2,"0")},m:function R(w,T){if(w.date()<T.date())return-R(T,w);var F=12*(T.year()-w.year())+(T.month()-w.month()),k=w.clone().add(F,d),$=T-k<0,W=w.clone().add(F+($?-1:1),d);return+(-(F+(T-k)/($?k-W:W-k))||0)},a:function(R){return R<0?Math.ceil(R)||0:Math.floor(R)},p:function(R){return{M:d,y:f,w:h,d:c,D:m,h:l,m:a,s,ms:o,Q:u}[R]||String(R||"").toLowerCase().replace(/s$/,"")},u:function(R){return R===void 0}},S="en",U={};U[S]=b;var N="$isDayjsObject",tt=function(R){return R instanceof et||!(!R||!R[N])},nt=function R(w,T,F){var k;if(!w)return S;if(typeof w=="string"){var $=w.toLowerCase();U[$]&&(k=$),T&&(U[$]=T,k=$);var W=w.split("-");if(!k&&W.length>1)return R(W[0])}else{var z=w.name;U[z]=w,k=z}return!F&&k&&(S=k),k||!F&&S},H=function(R,w){if(tt(R))return R.clone();var T=typeof w=="object"?w:{};return T.date=R,T.args=arguments,new et(T)},A=C;A.l=nt,A.i=tt,A.w=function(R,w){return H(R,{locale:w.$L,utc:w.$u,x:w.$x,$offset:w.$offset})};var et=(function(){function R(T){this.$L=nt(T.locale,null,!0),this.parse(T),this.$x=this.$x||T.x||{},this[N]=!0}var w=R.prototype;return w.parse=function(T){this.$d=(function(F){var k=F.date,$=F.utc;if(k===null)return new Date(NaN);if(A.u(k))return new Date;if(k instanceof Date)return new Date(k);if(typeof k=="string"&&!/Z$/i.test(k)){var W=k.match(_);if(W){var z=W[2]-1||0,V=(W[7]||"0").substring(0,3);return $?new Date(Date.UTC(W[1],z,W[3]||1,W[4]||0,W[5]||0,W[6]||0,V)):new Date(W[1],z,W[3]||1,W[4]||0,W[5]||0,W[6]||0,V)}}return new Date(k)})(T),this.init()},w.init=function(){var T=this.$d;this.$y=T.getFullYear(),this.$M=T.getMonth(),this.$D=T.getDate(),this.$W=T.getDay(),this.$H=T.getHours(),this.$m=T.getMinutes(),this.$s=T.getSeconds(),this.$ms=T.getMilliseconds()},w.$utils=function(){return A},w.isValid=function(){return this.$d.toString()!==y},w.isSame=function(T,F){var k=H(T);return this.startOf(F)<=k&&k<=this.endOf(F)},w.isAfter=function(T,F){return H(T)<this.startOf(F)},w.isBefore=function(T,F){return this.endOf(F)<H(T)},w.$g=function(T,F,k){return A.u(T)?this[F]:this.set(k,T)},w.unix=function(){return Math.floor(this.valueOf()/1e3)},w.valueOf=function(){return this.$d.getTime()},w.startOf=function(T,F){var k=this,$=!!A.u(F)||F,W=A.p(T),z=function(Et,ot){var Lt=A.w(k.$u?Date.UTC(k.$y,ot,Et):new Date(k.$y,ot,Et),k);return $?Lt:Lt.endOf(c)},V=function(Et,ot){return A.w(k.toDate()[Et].apply(k.toDate("s"),($?[0,0,0,0]:[23,59,59,999]).slice(ot)),k)},j=this.$W,it=this.$M,X=this.$D,vt="set"+(this.$u?"UTC":"");switch(W){case f:return $?z(1,0):z(31,11);case d:return $?z(1,it):z(0,it+1);case h:var Bt=this.$locale().weekStart||0,se=(j<Bt?j+7:j)-Bt;return z($?X-se:X+(6-se),it);case c:case m:return V(vt+"Hours",0);case l:return V(vt+"Minutes",1);case a:return V(vt+"Seconds",2);case s:return V(vt+"Milliseconds",3);default:return this.clone()}},w.endOf=function(T){return this.startOf(T,!1)},w.$set=function(T,F){var k,$=A.p(T),W="set"+(this.$u?"UTC":""),z=(k={},k[c]=W+"Date",k[m]=W+"Date",k[d]=W+"Month",k[f]=W+"FullYear",k[l]=W+"Hours",k[a]=W+"Minutes",k[s]=W+"Seconds",k[o]=W+"Milliseconds",k)[$],V=$===c?this.$D+(F-this.$W):F;if($===d||$===f){var j=this.clone().set(m,1);j.$d[z](V),j.init(),this.$d=j.set(m,Math.min(this.$D,j.daysInMonth())).$d}else z&&this.$d[z](V);return this.init(),this},w.set=function(T,F){return this.clone().$set(T,F)},w.get=function(T){return this[A.p(T)]()},w.add=function(T,F){var k,$=this;T=Number(T);var W=A.p(F),z=function(it){var X=H($);return A.w(X.date(X.date()+Math.round(it*T)),$)};if(W===d)return this.set(d,this.$M+T);if(W===f)return this.set(f,this.$y+T);if(W===c)return z(1);if(W===h)return z(7);var V=(k={},k[a]=r,k[l]=n,k[s]=i,k)[W]||1,j=this.$d.getTime()+T*V;return A.w(j,this)},w.subtract=function(T,F){return this.add(-1*T,F)},w.format=function(T){var F=this,k=this.$locale();if(!this.isValid())return k.invalidDate||y;var $=T||"YYYY-MM-DDTHH:mm:ssZ",W=A.z(this),z=this.$H,V=this.$m,j=this.$M,it=k.weekdays,X=k.months,vt=k.meridiem,Bt=function(ot,Lt,St,Ut){return ot&&(ot[Lt]||ot(F,$))||St[Lt].slice(0,Ut)},se=function(ot){return A.s(z%12||12,ot,"0")},Et=vt||function(ot,Lt,St){var Ut=ot<12?"AM":"PM";return St?Ut.toLowerCase():Ut};return $.replace(L,(function(ot,Lt){return Lt||(function(St){switch(St){case"YY":return String(F.$y).slice(-2);case"YYYY":return A.s(F.$y,4,"0");case"M":return j+1;case"MM":return A.s(j+1,2,"0");case"MMM":return Bt(k.monthsShort,j,X,3);case"MMMM":return Bt(X,j);case"D":return F.$D;case"DD":return A.s(F.$D,2,"0");case"d":return String(F.$W);case"dd":return Bt(k.weekdaysMin,F.$W,it,2);case"ddd":return Bt(k.weekdaysShort,F.$W,it,3);case"dddd":return it[F.$W];case"H":return String(z);case"HH":return A.s(z,2,"0");case"h":return se(1);case"hh":return se(2);case"a":return Et(z,V,!0);case"A":return Et(z,V,!1);case"m":return String(V);case"mm":return A.s(V,2,"0");case"s":return String(F.$s);case"ss":return A.s(F.$s,2,"0");case"SSS":return A.s(F.$ms,3,"0");case"Z":return W}return null})(ot)||W.replace(":","")}))},w.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},w.diff=function(T,F,k){var $,W=this,z=A.p(F),V=H(T),j=(V.utcOffset()-this.utcOffset())*r,it=this-V,X=function(){return A.m(W,V)};switch(z){case f:$=X()/12;break;case d:$=X();break;case u:$=X()/3;break;case h:$=(it-j)/6048e5;break;case c:$=(it-j)/864e5;break;case l:$=it/n;break;case a:$=it/r;break;case s:$=it/i;break;default:$=it}return k?$:A.a($)},w.daysInMonth=function(){return this.endOf(d).$D},w.$locale=function(){return U[this.$L]},w.locale=function(T,F){if(!T)return this.$L;var k=this.clone(),$=nt(T,F,!0);return $&&(k.$L=$),k},w.clone=function(){return A.w(this.$d,this)},w.toDate=function(){return new Date(this.valueOf())},w.toJSON=function(){return this.isValid()?this.toISOString():null},w.toISOString=function(){return this.$d.toISOString()},w.toString=function(){return this.$d.toUTCString()},R})(),oe=et.prototype;return H.prototype=oe,[["$ms",o],["$s",s],["$m",a],["$H",l],["$W",c],["$M",d],["$y",f],["$D",m]].forEach((function(R){oe[R[1]]=function(w){return this.$g(w,R[0],R[1])}})),H.extend=function(R,w){return R.$i||(R(w,et,H),R.$i=!0),H},H.locale=nt,H.isDayjs=tt,H.unix=function(R){return H(1e3*R)},H.en=U[S],H.Ls=U,H.p={},H}))})(rr)),rr.exports}var Kh=Vh();const ka=Ih.getDefaultExportFromCjs(Kh);var Zh={value:()=>{}};function wa(){for(var t=0,e=arguments.length,i={},r;t<e;++t){if(!(r=arguments[t]+"")||r in i||/[\s.]/.test(r))throw new Error("illegal type: "+r);i[r]=[]}return new nr(i)}function nr(t){this._=t}function Jh(t,e){return t.trim().split(/^|\s+/).map(function(i){var r="",n=i.indexOf(".");if(n>=0&&(r=i.slice(n+1),i=i.slice(0,n)),i&&!e.hasOwnProperty(i))throw new Error("unknown type: "+i);return{type:i,name:r}})}nr.prototype=wa.prototype={constructor:nr,on:function(t,e){var i=this._,r=Jh(t+"",i),n,o=-1,s=r.length;if(arguments.length<2){for(;++o<s;)if((n=(t=r[o]).type)&&(n=Qh(i[n],t.name)))return n;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++o<s;)if(n=(t=r[o]).type)i[n]=cs(i[n],t.name,e);else if(e==null)for(n in i)i[n]=cs(i[n],t.name,null);return this},copy:function(){var t={},e=this._;for(var i in e)t[i]=e[i].slice();return new nr(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var i=new Array(n),r=0,n,o;r<n;++r)i[r]=arguments[r+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=this._[t],r=0,n=o.length;r<n;++r)o[r].value.apply(e,i)},apply:function(t,e,i){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],n=0,o=r.length;n<o;++n)r[n].value.apply(e,i)}};function Qh(t,e){for(var i=0,r=t.length,n;i<r;++i)if((n=t[i]).name===e)return n.value}function cs(t,e,i){for(var r=0,n=t.length;r<n;++r)if(t[r].name===e){t[r]=Zh,t=t.slice(0,r).concat(t.slice(r+1));break}return i!=null&&t.push({name:e,value:i}),t}var In="http://www.w3.org/1999/xhtml";const hs={svg:"http://www.w3.org/2000/svg",xhtml:In,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function $r(t){var e=t+="",i=e.indexOf(":");return i>=0&&(e=t.slice(0,i))!=="xmlns"&&(t=t.slice(i+1)),hs.hasOwnProperty(e)?{space:hs[e],local:t}:t}function tu(t){return function(){var e=this.ownerDocument,i=this.namespaceURI;return i===In&&e.documentElement.namespaceURI===In?e.createElement(t):e.createElementNS(i,t)}}function eu(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Aa(t){var e=$r(t);return(e.local?eu:tu)(e)}function iu(){}function ao(t){return t==null?iu:function(){return this.querySelector(t)}}function ru(t){typeof t!="function"&&(t=ao(t));for(var e=this._groups,i=e.length,r=new Array(i),n=0;n<i;++n)for(var o=e[n],s=o.length,a=r[n]=new Array(s),l,c,h=0;h<s;++h)(l=o[h])&&(c=t.call(l,l.__data__,h,o))&&("__data__"in l&&(c.__data__=l.__data__),a[h]=c);return new xt(r,this._parents)}function Ba(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function nu(){return[]}function Ea(t){return t==null?nu:function(){return this.querySelectorAll(t)}}function ou(t){return function(){return Ba(t.apply(this,arguments))}}function su(t){typeof t=="function"?t=ou(t):t=Ea(t);for(var e=this._groups,i=e.length,r=[],n=[],o=0;o<i;++o)for(var s=e[o],a=s.length,l,c=0;c<a;++c)(l=s[c])&&(r.push(t.call(l,l.__data__,c,s)),n.push(l));return new xt(r,n)}function La(t){return function(){return this.matches(t)}}function Fa(t){return function(e){return e.matches(t)}}var au=Array.prototype.find;function lu(t){return function(){return au.call(this.children,t)}}function cu(){return this.firstElementChild}function hu(t){return this.select(t==null?cu:lu(typeof t=="function"?t:Fa(t)))}var uu=Array.prototype.filter;function du(){return Array.from(this.children)}function fu(t){return function(){return uu.call(this.children,t)}}function pu(t){return this.selectAll(t==null?du:fu(typeof t=="function"?t:Fa(t)))}function gu(t){typeof t!="function"&&(t=La(t));for(var e=this._groups,i=e.length,r=new Array(i),n=0;n<i;++n)for(var o=e[n],s=o.length,a=r[n]=[],l,c=0;c<s;++c)(l=o[c])&&t.call(l,l.__data__,c,o)&&a.push(l);return new xt(r,this._parents)}function Oa(t){return new Array(t.length)}function mu(){return new xt(this._enter||this._groups.map(Oa),this._parents)}function pr(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}pr.prototype={constructor:pr,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function yu(t){return function(){return t}}function _u(t,e,i,r,n,o){for(var s=0,a,l=e.length,c=o.length;s<c;++s)(a=e[s])?(a.__data__=o[s],r[s]=a):i[s]=new pr(t,o[s]);for(;s<l;++s)(a=e[s])&&(n[s]=a)}function Cu(t,e,i,r,n,o,s){var a,l,c=new Map,h=e.length,d=o.length,u=new Array(h),f;for(a=0;a<h;++a)(l=e[a])&&(u[a]=f=s.call(l,l.__data__,a,e)+"",c.has(f)?n[a]=l:c.set(f,l));for(a=0;a<d;++a)f=s.call(t,o[a],a,o)+"",(l=c.get(f))?(r[a]=l,l.__data__=o[a],c.delete(f)):i[a]=new pr(t,o[a]);for(a=0;a<h;++a)(l=e[a])&&c.get(u[a])===l&&(n[a]=l)}function xu(t){return t.__data__}function bu(t,e){if(!arguments.length)return Array.from(this,xu);var i=e?Cu:_u,r=this._parents,n=this._groups;typeof t!="function"&&(t=yu(t));for(var o=n.length,s=new Array(o),a=new Array(o),l=new Array(o),c=0;c<o;++c){var h=r[c],d=n[c],u=d.length,f=Tu(t.call(h,h&&h.__data__,c,r)),m=f.length,y=a[c]=new Array(m),_=s[c]=new Array(m),L=l[c]=new Array(u);i(h,d,y,_,L,f,e);for(var b=0,P=0,C,S;b<m;++b)if(C=y[b]){for(b>=P&&(P=b+1);!(S=_[P])&&++P<m;);C._next=S||null}}return s=new xt(s,r),s._enter=a,s._exit=l,s}function Tu(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function vu(){return new xt(this._exit||this._groups.map(Oa),this._parents)}function Su(t,e,i){var r=this.enter(),n=this,o=this.exit();return typeof t=="function"?(r=t(r),r&&(r=r.selection())):r=r.append(t+""),e!=null&&(n=e(n),n&&(n=n.selection())),i==null?o.remove():i(o),r&&n?r.merge(n).order():n}function ku(t){for(var e=t.selection?t.selection():t,i=this._groups,r=e._groups,n=i.length,o=r.length,s=Math.min(n,o),a=new Array(n),l=0;l<s;++l)for(var c=i[l],h=r[l],d=c.length,u=a[l]=new Array(d),f,m=0;m<d;++m)(f=c[m]||h[m])&&(u[m]=f);for(;l<n;++l)a[l]=i[l];return new xt(a,this._parents)}function wu(){for(var t=this._groups,e=-1,i=t.length;++e<i;)for(var r=t[e],n=r.length-1,o=r[n],s;--n>=0;)(s=r[n])&&(o&&s.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(s,o),o=s);return this}function Au(t){t||(t=Bu);function e(d,u){return d&&u?t(d.__data__,u.__data__):!d-!u}for(var i=this._groups,r=i.length,n=new Array(r),o=0;o<r;++o){for(var s=i[o],a=s.length,l=n[o]=new Array(a),c,h=0;h<a;++h)(c=s[h])&&(l[h]=c);l.sort(e)}return new xt(n,this._parents).order()}function Bu(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function Eu(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function Lu(){return Array.from(this)}function Fu(){for(var t=this._groups,e=0,i=t.length;e<i;++e)for(var r=t[e],n=0,o=r.length;n<o;++n){var s=r[n];if(s)return s}return null}function Ou(){let t=0;for(const e of this)++t;return t}function Iu(){return!this.node()}function Mu(t){for(var e=this._groups,i=0,r=e.length;i<r;++i)for(var n=e[i],o=0,s=n.length,a;o<s;++o)(a=n[o])&&t.call(a,a.__data__,o,n);return this}function $u(t){return function(){this.removeAttribute(t)}}function Du(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Nu(t,e){return function(){this.setAttribute(t,e)}}function Pu(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Ru(t,e){return function(){var i=e.apply(this,arguments);i==null?this.removeAttribute(t):this.setAttribute(t,i)}}function qu(t,e){return function(){var i=e.apply(this,arguments);i==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,i)}}function zu(t,e){var i=$r(t);if(arguments.length<2){var r=this.node();return i.local?r.getAttributeNS(i.space,i.local):r.getAttribute(i)}return this.each((e==null?i.local?Du:$u:typeof e=="function"?i.local?qu:Ru:i.local?Pu:Nu)(i,e))}function Ia(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Wu(t){return function(){this.style.removeProperty(t)}}function Hu(t,e,i){return function(){this.style.setProperty(t,e,i)}}function Yu(t,e,i){return function(){var r=e.apply(this,arguments);r==null?this.style.removeProperty(t):this.style.setProperty(t,r,i)}}function ju(t,e,i){return arguments.length>1?this.each((e==null?Wu:typeof e=="function"?Yu:Hu)(t,e,i??"")):je(this.node(),t)}function je(t,e){return t.style.getPropertyValue(e)||Ia(t).getComputedStyle(t,null).getPropertyValue(e)}function Uu(t){return function(){delete this[t]}}function Xu(t,e){return function(){this[t]=e}}function Gu(t,e){return function(){var i=e.apply(this,arguments);i==null?delete this[t]:this[t]=i}}function Vu(t,e){return arguments.length>1?this.each((e==null?Uu:typeof e=="function"?Gu:Xu)(t,e)):this.node()[t]}function Ma(t){return t.trim().split(/^|\s+/)}function lo(t){return t.classList||new $a(t)}function $a(t){this._node=t,this._names=Ma(t.getAttribute("class")||"")}$a.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function Da(t,e){for(var i=lo(t),r=-1,n=e.length;++r<n;)i.add(e[r])}function Na(t,e){for(var i=lo(t),r=-1,n=e.length;++r<n;)i.remove(e[r])}function Ku(t){return function(){Da(this,t)}}function Zu(t){return function(){Na(this,t)}}function Ju(t,e){return function(){(e.apply(this,arguments)?Da:Na)(this,t)}}function Qu(t,e){var i=Ma(t+"");if(arguments.length<2){for(var r=lo(this.node()),n=-1,o=i.length;++n<o;)if(!r.contains(i[n]))return!1;return!0}return this.each((typeof e=="function"?Ju:e?Ku:Zu)(i,e))}function td(){this.textContent=""}function ed(t){return function(){this.textContent=t}}function id(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function rd(t){return arguments.length?this.each(t==null?td:(typeof t=="function"?id:ed)(t)):this.node().textContent}function nd(){this.innerHTML=""}function od(t){return function(){this.innerHTML=t}}function sd(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function ad(t){return arguments.length?this.each(t==null?nd:(typeof t=="function"?sd:od)(t)):this.node().innerHTML}function ld(){this.nextSibling&&this.parentNode.appendChild(this)}function cd(){return this.each(ld)}function hd(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function ud(){return this.each(hd)}function dd(t){var e=typeof t=="function"?t:Aa(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function fd(){return null}function pd(t,e){var i=typeof t=="function"?t:Aa(t),r=e==null?fd:typeof e=="function"?e:ao(e);return this.select(function(){return this.insertBefore(i.apply(this,arguments),r.apply(this,arguments)||null)})}function gd(){var t=this.parentNode;t&&t.removeChild(this)}function md(){return this.each(gd)}function yd(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function _d(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Cd(t){return this.select(t?_d:yd)}function xd(t){return arguments.length?this.property("__data__",t):this.node().__data__}function bd(t){return function(e){t.call(this,e,this.__data__)}}function Td(t){return t.trim().split(/^|\s+/).map(function(e){var i="",r=e.indexOf(".");return r>=0&&(i=e.slice(r+1),e=e.slice(0,r)),{type:e,name:i}})}function vd(t){return function(){var e=this.__on;if(e){for(var i=0,r=-1,n=e.length,o;i<n;++i)o=e[i],(!t.type||o.type===t.type)&&o.name===t.name?this.removeEventListener(o.type,o.listener,o.options):e[++r]=o;++r?e.length=r:delete this.__on}}}function Sd(t,e,i){return function(){var r=this.__on,n,o=bd(e);if(r){for(var s=0,a=r.length;s<a;++s)if((n=r[s]).type===t.type&&n.name===t.name){this.removeEventListener(n.type,n.listener,n.options),this.addEventListener(n.type,n.listener=o,n.options=i),n.value=e;return}}this.addEventListener(t.type,o,i),n={type:t.type,name:t.name,value:e,listener:o,options:i},r?r.push(n):this.__on=[n]}}function kd(t,e,i){var r=Td(t+""),n,o=r.length,s;if(arguments.length<2){var a=this.node().__on;if(a){for(var l=0,c=a.length,h;l<c;++l)for(n=0,h=a[l];n<o;++n)if((s=r[n]).type===h.type&&s.name===h.name)return h.value}return}for(a=e?Sd:vd,n=0;n<o;++n)this.each(a(r[n],e,i));return this}function Pa(t,e,i){var r=Ia(t),n=r.CustomEvent;typeof n=="function"?n=new n(e,i):(n=r.document.createEvent("Event"),i?(n.initEvent(e,i.bubbles,i.cancelable),n.detail=i.detail):n.initEvent(e,!1,!1)),t.dispatchEvent(n)}function wd(t,e){return function(){return Pa(this,t,e)}}function Ad(t,e){return function(){return Pa(this,t,e.apply(this,arguments))}}function Bd(t,e){return this.each((typeof e=="function"?Ad:wd)(t,e))}function*Ed(){for(var t=this._groups,e=0,i=t.length;e<i;++e)for(var r=t[e],n=0,o=r.length,s;n<o;++n)(s=r[n])&&(yield s)}var co=[null];function xt(t,e){this._groups=t,this._parents=e}function Ri(){return new xt([[document.documentElement]],co)}function Ld(){return this}xt.prototype=Ri.prototype={constructor:xt,select:ru,selectAll:su,selectChild:hu,selectChildren:pu,filter:gu,data:bu,enter:mu,exit:vu,join:Su,merge:ku,selection:Ld,order:wu,sort:Au,call:Eu,nodes:Lu,node:Fu,size:Ou,empty:Iu,each:Mu,attr:zu,style:ju,property:Vu,classed:Qu,text:rd,html:ad,raise:cd,lower:ud,append:dd,insert:pd,remove:md,clone:Cd,datum:xd,on:kd,dispatch:Bd,[Symbol.iterator]:Ed};function bt(t){return typeof t=="string"?new xt([[document.querySelector(t)]],[document.documentElement]):new xt([[t]],co)}function Dr(t,e,i){t.prototype=e.prototype=i,i.constructor=t}function ho(t,e){var i=Object.create(t.prototype);for(var r in e)i[r]=e[r];return i}function ei(){}var Bi=.7,gr=1/Bi,Re="\\s*([+-]?\\d+)\\s*",Ei="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",zt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Fd=/^#([0-9a-f]{3,8})$/,Od=new RegExp(`^rgb\\(${Re},${Re},${Re}\\)$`),Id=new RegExp(`^rgb\\(${zt},${zt},${zt}\\)$`),Md=new RegExp(`^rgba\\(${Re},${Re},${Re},${Ei}\\)$`),$d=new RegExp(`^rgba\\(${zt},${zt},${zt},${Ei}\\)$`),Dd=new RegExp(`^hsl\\(${Ei},${zt},${zt}\\)$`),Nd=new RegExp(`^hsla\\(${Ei},${zt},${zt},${Ei}\\)$`),us={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Dr(ei,Ue,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:ds,formatHex:ds,formatHex8:Pd,formatHsl:Rd,formatRgb:fs,toString:fs});function ds(){return this.rgb().formatHex()}function Pd(){return this.rgb().formatHex8()}function Rd(){return qa(this).formatHsl()}function fs(){return this.rgb().formatRgb()}function Ue(t){var e,i;return t=(t+"").trim().toLowerCase(),(e=Fd.exec(t))?(i=e[1].length,e=parseInt(e[1],16),i===6?ps(e):i===3?new ft(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):i===8?Vi(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):i===4?Vi(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=Od.exec(t))?new ft(e[1],e[2],e[3],1):(e=Id.exec(t))?new ft(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=Md.exec(t))?Vi(e[1],e[2],e[3],e[4]):(e=$d.exec(t))?Vi(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=Dd.exec(t))?ys(e[1],e[2]/100,e[3]/100,1):(e=Nd.exec(t))?ys(e[1],e[2]/100,e[3]/100,e[4]):us.hasOwnProperty(t)?ps(us[t]):t==="transparent"?new ft(NaN,NaN,NaN,0):null}function ps(t){return new ft(t>>16&255,t>>8&255,t&255,1)}function Vi(t,e,i,r){return r<=0&&(t=e=i=NaN),new ft(t,e,i,r)}function Ra(t){return t instanceof ei||(t=Ue(t)),t?(t=t.rgb(),new ft(t.r,t.g,t.b,t.opacity)):new ft}function Mn(t,e,i,r){return arguments.length===1?Ra(t):new ft(t,e,i,r??1)}function ft(t,e,i,r){this.r=+t,this.g=+e,this.b=+i,this.opacity=+r}Dr(ft,Mn,ho(ei,{brighter(t){return t=t==null?gr:Math.pow(gr,t),new ft(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?Bi:Math.pow(Bi,t),new ft(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new ft(xe(this.r),xe(this.g),xe(this.b),mr(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:gs,formatHex:gs,formatHex8:qd,formatRgb:ms,toString:ms}));function gs(){return`#${_e(this.r)}${_e(this.g)}${_e(this.b)}`}function qd(){return`#${_e(this.r)}${_e(this.g)}${_e(this.b)}${_e((isNaN(this.opacity)?1:this.opacity)*255)}`}function ms(){const t=mr(this.opacity);return`${t===1?"rgb(":"rgba("}${xe(this.r)}, ${xe(this.g)}, ${xe(this.b)}${t===1?")":`, ${t})`}`}function mr(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function xe(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function _e(t){return t=xe(t),(t<16?"0":"")+t.toString(16)}function ys(t,e,i,r){return r<=0?t=e=i=NaN:i<=0||i>=1?t=e=NaN:e<=0&&(t=NaN),new Ot(t,e,i,r)}function qa(t){if(t instanceof Ot)return new Ot(t.h,t.s,t.l,t.opacity);if(t instanceof ei||(t=Ue(t)),!t)return new Ot;if(t instanceof Ot)return t;t=t.rgb();var e=t.r/255,i=t.g/255,r=t.b/255,n=Math.min(e,i,r),o=Math.max(e,i,r),s=NaN,a=o-n,l=(o+n)/2;return a?(e===o?s=(i-r)/a+(i<r)*6:i===o?s=(r-e)/a+2:s=(e-i)/a+4,a/=l<.5?o+n:2-o-n,s*=60):a=l>0&&l<1?0:s,new Ot(s,a,l,t.opacity)}function zd(t,e,i,r){return arguments.length===1?qa(t):new Ot(t,e,i,r??1)}function Ot(t,e,i,r){this.h=+t,this.s=+e,this.l=+i,this.opacity=+r}Dr(Ot,zd,ho(ei,{brighter(t){return t=t==null?gr:Math.pow(gr,t),new Ot(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Bi:Math.pow(Bi,t),new Ot(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,i=this.l,r=i+(i<.5?i:1-i)*e,n=2*i-r;return new ft(gn(t>=240?t-240:t+120,n,r),gn(t,n,r),gn(t<120?t+240:t-120,n,r),this.opacity)},clamp(){return new Ot(_s(this.h),Ki(this.s),Ki(this.l),mr(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=mr(this.opacity);return`${t===1?"hsl(":"hsla("}${_s(this.h)}, ${Ki(this.s)*100}%, ${Ki(this.l)*100}%${t===1?")":`, ${t})`}`}}));function _s(t){return t=(t||0)%360,t<0?t+360:t}function Ki(t){return Math.max(0,Math.min(1,t||0))}function gn(t,e,i){return(t<60?e+(i-e)*t/60:t<180?i:t<240?e+(i-e)*(240-t)/60:e)*255}const Nr=t=>()=>t;function za(t,e){return function(i){return t+i*e}}function Wd(t,e,i){return t=Math.pow(t,i),e=Math.pow(e,i)-t,i=1/i,function(r){return Math.pow(t+r*e,i)}}function Hd(t,e){var i=e-t;return i?za(t,i>180||i<-180?i-360*Math.round(i/360):i):Nr(isNaN(t)?e:t)}function Yd(t){return(t=+t)==1?uo:function(e,i){return i-e?Wd(e,i,t):Nr(isNaN(e)?i:e)}}function uo(t,e){var i=e-t;return i?za(t,i):Nr(isNaN(t)?e:t)}const $n=(function t(e){var i=Yd(e);function r(n,o){var s=i((n=Mn(n)).r,(o=Mn(o)).r),a=i(n.g,o.g),l=i(n.b,o.b),c=uo(n.opacity,o.opacity);return function(h){return n.r=s(h),n.g=a(h),n.b=l(h),n.opacity=c(h),n+""}}return r.gamma=t,r})(1);function te(t,e){return t=+t,e=+e,function(i){return t*(1-i)+e*i}}var Dn=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,mn=new RegExp(Dn.source,"g");function jd(t){return function(){return t}}function Ud(t){return function(e){return t(e)+""}}function Wa(t,e){var i=Dn.lastIndex=mn.lastIndex=0,r,n,o,s=-1,a=[],l=[];for(t=t+"",e=e+"";(r=Dn.exec(t))&&(n=mn.exec(e));)(o=n.index)>i&&(o=e.slice(i,o),a[s]?a[s]+=o:a[++s]=o),(r=r[0])===(n=n[0])?a[s]?a[s]+=n:a[++s]=n:(a[++s]=null,l.push({i:s,x:te(r,n)})),i=mn.lastIndex;return i<e.length&&(o=e.slice(i),a[s]?a[s]+=o:a[++s]=o),a.length<2?l[0]?Ud(l[0].x):jd(e):(e=l.length,function(c){for(var h=0,d;h<e;++h)a[(d=l[h]).i]=d.x(c);return a.join("")})}var Cs=180/Math.PI,Nn={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Ha(t,e,i,r,n,o){var s,a,l;return(s=Math.sqrt(t*t+e*e))&&(t/=s,e/=s),(l=t*i+e*r)&&(i-=t*l,r-=e*l),(a=Math.sqrt(i*i+r*r))&&(i/=a,r/=a,l/=a),t*r<e*i&&(t=-t,e=-e,l=-l,s=-s),{translateX:n,translateY:o,rotate:Math.atan2(e,t)*Cs,skewX:Math.atan(l)*Cs,scaleX:s,scaleY:a}}var Zi;function Xd(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?Nn:Ha(e.a,e.b,e.c,e.d,e.e,e.f)}function Gd(t){return t==null||(Zi||(Zi=document.createElementNS("http://www.w3.org/2000/svg","g")),Zi.setAttribute("transform",t),!(t=Zi.transform.baseVal.consolidate()))?Nn:(t=t.matrix,Ha(t.a,t.b,t.c,t.d,t.e,t.f))}function Ya(t,e,i,r){function n(c){return c.length?c.pop()+" ":""}function o(c,h,d,u,f,m){if(c!==d||h!==u){var y=f.push("translate(",null,e,null,i);m.push({i:y-4,x:te(c,d)},{i:y-2,x:te(h,u)})}else(d||u)&&f.push("translate("+d+e+u+i)}function s(c,h,d,u){c!==h?(c-h>180?h+=360:h-c>180&&(c+=360),u.push({i:d.push(n(d)+"rotate(",null,r)-2,x:te(c,h)})):h&&d.push(n(d)+"rotate("+h+r)}function a(c,h,d,u){c!==h?u.push({i:d.push(n(d)+"skewX(",null,r)-2,x:te(c,h)}):h&&d.push(n(d)+"skewX("+h+r)}function l(c,h,d,u,f,m){if(c!==d||h!==u){var y=f.push(n(f)+"scale(",null,",",null,")");m.push({i:y-4,x:te(c,d)},{i:y-2,x:te(h,u)})}else(d!==1||u!==1)&&f.push(n(f)+"scale("+d+","+u+")")}return function(c,h){var d=[],u=[];return c=t(c),h=t(h),o(c.translateX,c.translateY,h.translateX,h.translateY,d,u),s(c.rotate,h.rotate,d,u),a(c.skewX,h.skewX,d,u),l(c.scaleX,c.scaleY,h.scaleX,h.scaleY,d,u),c=h=null,function(f){for(var m=-1,y=u.length,_;++m<y;)d[(_=u[m]).i]=_.x(f);return d.join("")}}}var Vd=Ya(Xd,"px, ","px)","deg)"),Kd=Ya(Gd,", ",")",")"),Xe=0,Ci=0,ui=0,ja=1e3,yr,xi,_r=0,Te=0,Pr=0,Li=typeof performance=="object"&&performance.now?performance:Date,Ua=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function fo(){return Te||(Ua(Zd),Te=Li.now()+Pr)}function Zd(){Te=0}function Cr(){this._call=this._time=this._next=null}Cr.prototype=Xa.prototype={constructor:Cr,restart:function(t,e,i){if(typeof t!="function")throw new TypeError("callback is not a function");i=(i==null?fo():+i)+(e==null?0:+e),!this._next&&xi!==this&&(xi?xi._next=this:yr=this,xi=this),this._call=t,this._time=i,Pn()},stop:function(){this._call&&(this._call=null,this._time=1/0,Pn())}};function Xa(t,e,i){var r=new Cr;return r.restart(t,e,i),r}function Jd(){fo(),++Xe;for(var t=yr,e;t;)(e=Te-t._time)>=0&&t._call.call(void 0,e),t=t._next;--Xe}function xs(){Te=(_r=Li.now())+Pr,Xe=Ci=0;try{Jd()}finally{Xe=0,tf(),Te=0}}function Qd(){var t=Li.now(),e=t-_r;e>ja&&(Pr-=e,_r=t)}function tf(){for(var t,e=yr,i,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(i=e._next,e._next=null,e=t?t._next=i:yr=i);xi=t,Pn(r)}function Pn(t){if(!Xe){Ci&&(Ci=clearTimeout(Ci));var e=t-Te;e>24?(t<1/0&&(Ci=setTimeout(xs,t-Li.now()-Pr)),ui&&(ui=clearInterval(ui))):(ui||(_r=Li.now(),ui=setInterval(Qd,ja)),Xe=1,Ua(xs))}}function bs(t,e,i){var r=new Cr;return e=e==null?0:+e,r.restart(n=>{r.stop(),t(n+e)},e,i),r}var ef=wa("start","end","cancel","interrupt"),rf=[],Ga=0,Ts=1,Rn=2,or=3,vs=4,qn=5,sr=6;function Rr(t,e,i,r,n,o){var s=t.__transition;if(!s)t.__transition={};else if(i in s)return;nf(t,i,{name:e,index:r,group:n,on:ef,tween:rf,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:Ga})}function po(t,e){var i=Dt(t,e);if(i.state>Ga)throw new Error("too late; already scheduled");return i}function Yt(t,e){var i=Dt(t,e);if(i.state>or)throw new Error("too late; already running");return i}function Dt(t,e){var i=t.__transition;if(!i||!(i=i[e]))throw new Error("transition not found");return i}function nf(t,e,i){var r=t.__transition,n;r[e]=i,i.timer=Xa(o,0,i.time);function o(c){i.state=Ts,i.timer.restart(s,i.delay,i.time),i.delay<=c&&s(c-i.delay)}function s(c){var h,d,u,f;if(i.state!==Ts)return l();for(h in r)if(f=r[h],f.name===i.name){if(f.state===or)return bs(s);f.state===vs?(f.state=sr,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete r[h]):+h<e&&(f.state=sr,f.timer.stop(),f.on.call("cancel",t,t.__data__,f.index,f.group),delete r[h])}if(bs(function(){i.state===or&&(i.state=vs,i.timer.restart(a,i.delay,i.time),a(c))}),i.state=Rn,i.on.call("start",t,t.__data__,i.index,i.group),i.state===Rn){for(i.state=or,n=new Array(u=i.tween.length),h=0,d=-1;h<u;++h)(f=i.tween[h].value.call(t,t.__data__,i.index,i.group))&&(n[++d]=f);n.length=d+1}}function a(c){for(var h=c<i.duration?i.ease.call(null,c/i.duration):(i.timer.restart(l),i.state=qn,1),d=-1,u=n.length;++d<u;)n[d].call(t,h);i.state===qn&&(i.on.call("end",t,t.__data__,i.index,i.group),l())}function l(){i.state=sr,i.timer.stop(),delete r[e];for(var c in r)return;delete t.__transition}}function of(t,e){var i=t.__transition,r,n,o=!0,s;if(i){e=e==null?null:e+"";for(s in i){if((r=i[s]).name!==e){o=!1;continue}n=r.state>Rn&&r.state<qn,r.state=sr,r.timer.stop(),r.on.call(n?"interrupt":"cancel",t,t.__data__,r.index,r.group),delete i[s]}o&&delete t.__transition}}function sf(t){return this.each(function(){of(this,t)})}function af(t,e){var i,r;return function(){var n=Yt(this,t),o=n.tween;if(o!==i){r=i=o;for(var s=0,a=r.length;s<a;++s)if(r[s].name===e){r=r.slice(),r.splice(s,1);break}}n.tween=r}}function lf(t,e,i){var r,n;if(typeof i!="function")throw new Error;return function(){var o=Yt(this,t),s=o.tween;if(s!==r){n=(r=s).slice();for(var a={name:e,value:i},l=0,c=n.length;l<c;++l)if(n[l].name===e){n[l]=a;break}l===c&&n.push(a)}o.tween=n}}function cf(t,e){var i=this._id;if(t+="",arguments.length<2){for(var r=Dt(this.node(),i).tween,n=0,o=r.length,s;n<o;++n)if((s=r[n]).name===t)return s.value;return null}return this.each((e==null?af:lf)(i,t,e))}function go(t,e,i){var r=t._id;return t.each(function(){var n=Yt(this,r);(n.value||(n.value={}))[e]=i.apply(this,arguments)}),function(n){return Dt(n,r).value[e]}}function Va(t,e){var i;return(typeof e=="number"?te:e instanceof Ue?$n:(i=Ue(e))?(e=i,$n):Wa)(t,e)}function hf(t){return function(){this.removeAttribute(t)}}function uf(t){return function(){this.removeAttributeNS(t.space,t.local)}}function df(t,e,i){var r,n=i+"",o;return function(){var s=this.getAttribute(t);return s===n?null:s===r?o:o=e(r=s,i)}}function ff(t,e,i){var r,n=i+"",o;return function(){var s=this.getAttributeNS(t.space,t.local);return s===n?null:s===r?o:o=e(r=s,i)}}function pf(t,e,i){var r,n,o;return function(){var s,a=i(this),l;return a==null?void this.removeAttribute(t):(s=this.getAttribute(t),l=a+"",s===l?null:s===r&&l===n?o:(n=l,o=e(r=s,a)))}}function gf(t,e,i){var r,n,o;return function(){var s,a=i(this),l;return a==null?void this.removeAttributeNS(t.space,t.local):(s=this.getAttributeNS(t.space,t.local),l=a+"",s===l?null:s===r&&l===n?o:(n=l,o=e(r=s,a)))}}function mf(t,e){var i=$r(t),r=i==="transform"?Kd:Va;return this.attrTween(t,typeof e=="function"?(i.local?gf:pf)(i,r,go(this,"attr."+t,e)):e==null?(i.local?uf:hf)(i):(i.local?ff:df)(i,r,e))}function yf(t,e){return function(i){this.setAttribute(t,e.call(this,i))}}function _f(t,e){return function(i){this.setAttributeNS(t.space,t.local,e.call(this,i))}}function Cf(t,e){var i,r;function n(){var o=e.apply(this,arguments);return o!==r&&(i=(r=o)&&_f(t,o)),i}return n._value=e,n}function xf(t,e){var i,r;function n(){var o=e.apply(this,arguments);return o!==r&&(i=(r=o)&&yf(t,o)),i}return n._value=e,n}function bf(t,e){var i="attr."+t;if(arguments.length<2)return(i=this.tween(i))&&i._value;if(e==null)return this.tween(i,null);if(typeof e!="function")throw new Error;var r=$r(t);return this.tween(i,(r.local?Cf:xf)(r,e))}function Tf(t,e){return function(){po(this,t).delay=+e.apply(this,arguments)}}function vf(t,e){return e=+e,function(){po(this,t).delay=e}}function Sf(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?Tf:vf)(e,t)):Dt(this.node(),e).delay}function kf(t,e){return function(){Yt(this,t).duration=+e.apply(this,arguments)}}function wf(t,e){return e=+e,function(){Yt(this,t).duration=e}}function Af(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?kf:wf)(e,t)):Dt(this.node(),e).duration}function Bf(t,e){if(typeof e!="function")throw new Error;return function(){Yt(this,t).ease=e}}function Ef(t){var e=this._id;return arguments.length?this.each(Bf(e,t)):Dt(this.node(),e).ease}function Lf(t,e){return function(){var i=e.apply(this,arguments);if(typeof i!="function")throw new Error;Yt(this,t).ease=i}}function Ff(t){if(typeof t!="function")throw new Error;return this.each(Lf(this._id,t))}function Of(t){typeof t!="function"&&(t=La(t));for(var e=this._groups,i=e.length,r=new Array(i),n=0;n<i;++n)for(var o=e[n],s=o.length,a=r[n]=[],l,c=0;c<s;++c)(l=o[c])&&t.call(l,l.__data__,c,o)&&a.push(l);return new re(r,this._parents,this._name,this._id)}function If(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,i=t._groups,r=e.length,n=i.length,o=Math.min(r,n),s=new Array(r),a=0;a<o;++a)for(var l=e[a],c=i[a],h=l.length,d=s[a]=new Array(h),u,f=0;f<h;++f)(u=l[f]||c[f])&&(d[f]=u);for(;a<r;++a)s[a]=e[a];return new re(s,this._parents,this._name,this._id)}function Mf(t){return(t+"").trim().split(/^|\s+/).every(function(e){var i=e.indexOf(".");return i>=0&&(e=e.slice(0,i)),!e||e==="start"})}function $f(t,e,i){var r,n,o=Mf(e)?po:Yt;return function(){var s=o(this,t),a=s.on;a!==r&&(n=(r=a).copy()).on(e,i),s.on=n}}function Df(t,e){var i=this._id;return arguments.length<2?Dt(this.node(),i).on.on(t):this.each($f(i,t,e))}function Nf(t){return function(){var e=this.parentNode;for(var i in this.__transition)if(+i!==t)return;e&&e.removeChild(this)}}function Pf(){return this.on("end.remove",Nf(this._id))}function Rf(t){var e=this._name,i=this._id;typeof t!="function"&&(t=ao(t));for(var r=this._groups,n=r.length,o=new Array(n),s=0;s<n;++s)for(var a=r[s],l=a.length,c=o[s]=new Array(l),h,d,u=0;u<l;++u)(h=a[u])&&(d=t.call(h,h.__data__,u,a))&&("__data__"in h&&(d.__data__=h.__data__),c[u]=d,Rr(c[u],e,i,u,c,Dt(h,i)));return new re(o,this._parents,e,i)}function qf(t){var e=this._name,i=this._id;typeof t!="function"&&(t=Ea(t));for(var r=this._groups,n=r.length,o=[],s=[],a=0;a<n;++a)for(var l=r[a],c=l.length,h,d=0;d<c;++d)if(h=l[d]){for(var u=t.call(h,h.__data__,d,l),f,m=Dt(h,i),y=0,_=u.length;y<_;++y)(f=u[y])&&Rr(f,e,i,y,u,m);o.push(u),s.push(h)}return new re(o,s,e,i)}var zf=Ri.prototype.constructor;function Wf(){return new zf(this._groups,this._parents)}function Hf(t,e){var i,r,n;return function(){var o=je(this,t),s=(this.style.removeProperty(t),je(this,t));return o===s?null:o===i&&s===r?n:n=e(i=o,r=s)}}function Ka(t){return function(){this.style.removeProperty(t)}}function Yf(t,e,i){var r,n=i+"",o;return function(){var s=je(this,t);return s===n?null:s===r?o:o=e(r=s,i)}}function jf(t,e,i){var r,n,o;return function(){var s=je(this,t),a=i(this),l=a+"";return a==null&&(l=a=(this.style.removeProperty(t),je(this,t))),s===l?null:s===r&&l===n?o:(n=l,o=e(r=s,a))}}function Uf(t,e){var i,r,n,o="style."+e,s="end."+o,a;return function(){var l=Yt(this,t),c=l.on,h=l.value[o]==null?a||(a=Ka(e)):void 0;(c!==i||n!==h)&&(r=(i=c).copy()).on(s,n=h),l.on=r}}function Xf(t,e,i){var r=(t+="")=="transform"?Vd:Va;return e==null?this.styleTween(t,Hf(t,r)).on("end.style."+t,Ka(t)):typeof e=="function"?this.styleTween(t,jf(t,r,go(this,"style."+t,e))).each(Uf(this._id,t)):this.styleTween(t,Yf(t,r,e),i).on("end.style."+t,null)}function Gf(t,e,i){return function(r){this.style.setProperty(t,e.call(this,r),i)}}function Vf(t,e,i){var r,n;function o(){var s=e.apply(this,arguments);return s!==n&&(r=(n=s)&&Gf(t,s,i)),r}return o._value=e,o}function Kf(t,e,i){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(e==null)return this.tween(r,null);if(typeof e!="function")throw new Error;return this.tween(r,Vf(t,e,i??""))}function Zf(t){return function(){this.textContent=t}}function Jf(t){return function(){var e=t(this);this.textContent=e??""}}function Qf(t){return this.tween("text",typeof t=="function"?Jf(go(this,"text",t)):Zf(t==null?"":t+""))}function tp(t){return function(e){this.textContent=t.call(this,e)}}function ep(t){var e,i;function r(){var n=t.apply(this,arguments);return n!==i&&(e=(i=n)&&tp(n)),e}return r._value=t,r}function ip(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,ep(t))}function rp(){for(var t=this._name,e=this._id,i=Za(),r=this._groups,n=r.length,o=0;o<n;++o)for(var s=r[o],a=s.length,l,c=0;c<a;++c)if(l=s[c]){var h=Dt(l,e);Rr(l,t,i,c,s,{time:h.time+h.delay+h.duration,delay:0,duration:h.duration,ease:h.ease})}return new re(r,this._parents,t,i)}function np(){var t,e,i=this,r=i._id,n=i.size();return new Promise(function(o,s){var a={value:s},l={value:function(){--n===0&&o()}};i.each(function(){var c=Yt(this,r),h=c.on;h!==t&&(e=(t=h).copy(),e._.cancel.push(a),e._.interrupt.push(a),e._.end.push(l)),c.on=e}),n===0&&o()})}var op=0;function re(t,e,i,r){this._groups=t,this._parents=e,this._name=i,this._id=r}function Za(){return++op}var Kt=Ri.prototype;re.prototype={constructor:re,select:Rf,selectAll:qf,selectChild:Kt.selectChild,selectChildren:Kt.selectChildren,filter:Of,merge:If,selection:Wf,transition:rp,call:Kt.call,nodes:Kt.nodes,node:Kt.node,size:Kt.size,empty:Kt.empty,each:Kt.each,on:Df,attr:mf,attrTween:bf,style:Xf,styleTween:Kf,text:Qf,textTween:ip,remove:Pf,tween:cf,delay:Sf,duration:Af,ease:Ef,easeVarying:Ff,end:np,[Symbol.iterator]:Kt[Symbol.iterator]};function sp(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var ap={time:null,delay:0,duration:250,ease:sp};function lp(t,e){for(var i;!(i=t.__transition)||!(i=i[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return i}function cp(t){var e,i;t instanceof re?(e=t._id,t=t._name):(e=Za(),(i=ap).time=fo(),t=t==null?null:t+"");for(var r=this._groups,n=r.length,o=0;o<n;++o)for(var s=r[o],a=s.length,l,c=0;c<a;++c)(l=s[c])&&Rr(l,t,e,c,s,i||lp(l,e));return new re(r,this._parents,t,e)}Ri.prototype.interrupt=sf;Ri.prototype.transition=cp;const hp=Math.abs,up=Math.atan2,dp=Math.cos,fp=Math.max,pp=Math.min,gp=Math.sin,mp=Math.sqrt,zn=1e-12,qr=Math.PI,Wn=qr/2,yp=2*qr;function _p(t){return t>1?0:t<-1?qr:Math.acos(t)}function Cp(t){return t>=1?Wn:t<=-1?-Wn:Math.asin(t)}function Ja(t){this._context=t}Ja.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e);break}}};function Qa(t){return new Ja(t)}class tl{constructor(e,i){this._context=e,this._x=i}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,i){switch(e=+e,i=+i,this._point){case 0:{this._point=1,this._line?this._context.lineTo(e,i):this._context.moveTo(e,i);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,i,e,i):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+i)/2,e,this._y0,e,i);break}}this._x0=e,this._y0=i}}function xp(t){return new tl(t,!0)}function bp(t){return new tl(t,!1)}function ue(){}function xr(t,e,i){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+i)/6)}function zr(t){this._context=t}zr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:xr(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:xr(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function el(t){return new zr(t)}function il(t){this._context=t}il.prototype={areaStart:ue,areaEnd:ue,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:xr(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Tp(t){return new il(t)}function rl(t){this._context=t}rl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var i=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(i,r):this._context.moveTo(i,r);break;case 3:this._point=4;default:xr(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function vp(t){return new rl(t)}function nl(t,e){this._basis=new zr(t),this._beta=e}nl.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,i=t.length-1;if(i>0)for(var r=t[0],n=e[0],o=t[i]-r,s=e[i]-n,a=-1,l;++a<=i;)l=a/i,this._basis.point(this._beta*t[a]+(1-this._beta)*(r+l*o),this._beta*e[a]+(1-this._beta)*(n+l*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};const Sp=(function t(e){function i(r){return e===1?new zr(r):new nl(r,e)}return i.beta=function(r){return t(+r)},i})(.85);function br(t,e,i){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-i),t._x2,t._y2)}function mo(t,e){this._context=t,this._k=(1-e)/6}mo.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:br(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:br(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const kp=(function t(e){function i(r){return new mo(r,e)}return i.tension=function(r){return t(+r)},i})(0);function yo(t,e){this._context=t,this._k=(1-e)/6}yo.prototype={areaStart:ue,areaEnd:ue,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:br(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const wp=(function t(e){function i(r){return new yo(r,e)}return i.tension=function(r){return t(+r)},i})(0);function _o(t,e){this._context=t,this._k=(1-e)/6}_o.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:br(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Ap=(function t(e){function i(r){return new _o(r,e)}return i.tension=function(r){return t(+r)},i})(0);function Co(t,e,i){var r=t._x1,n=t._y1,o=t._x2,s=t._y2;if(t._l01_a>zn){var a=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*a-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,n=(n*a-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a>zn){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,h=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*c+t._x1*t._l23_2a-e*t._l12_2a)/h,s=(s*c+t._y1*t._l23_2a-i*t._l12_2a)/h}t._context.bezierCurveTo(r,n,o,s,t._x2,t._y2)}function ol(t,e){this._context=t,this._alpha=e}ol.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var i=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:Co(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Bp=(function t(e){function i(r){return e?new ol(r,e):new mo(r,0)}return i.alpha=function(r){return t(+r)},i})(.5);function sl(t,e){this._context=t,this._alpha=e}sl.prototype={areaStart:ue,areaEnd:ue,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){if(t=+t,e=+e,this._point){var i=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Co(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Ep=(function t(e){function i(r){return e?new sl(r,e):new yo(r,0)}return i.alpha=function(r){return t(+r)},i})(.5);function al(t,e){this._context=t,this._alpha=e}al.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var i=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Co(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Lp=(function t(e){function i(r){return e?new al(r,e):new _o(r,0)}return i.alpha=function(r){return t(+r)},i})(.5);function ll(t){this._context=t}ll.prototype={areaStart:ue,areaEnd:ue,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function Fp(t){return new ll(t)}function Ss(t){return t<0?-1:1}function ks(t,e,i){var r=t._x1-t._x0,n=e-t._x1,o=(t._y1-t._y0)/(r||n<0&&-0),s=(i-t._y1)/(n||r<0&&-0),a=(o*n+s*r)/(r+n);return(Ss(o)+Ss(s))*Math.min(Math.abs(o),Math.abs(s),.5*Math.abs(a))||0}function ws(t,e){var i=t._x1-t._x0;return i?(3*(t._y1-t._y0)/i-e)/2:e}function yn(t,e,i){var r=t._x0,n=t._y0,o=t._x1,s=t._y1,a=(o-r)/3;t._context.bezierCurveTo(r+a,n+a*e,o-a,s-a*i,o,s)}function Tr(t){this._context=t}Tr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:yn(this,this._t0,ws(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var i=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,yn(this,ws(this,i=ks(this,t,e)),i);break;default:yn(this,this._t0,i=ks(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=i}}};function cl(t){this._context=new hl(t)}(cl.prototype=Object.create(Tr.prototype)).point=function(t,e){Tr.prototype.point.call(this,e,t)};function hl(t){this._context=t}hl.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,i,r,n,o){this._context.bezierCurveTo(e,t,r,i,o,n)}};function Op(t){return new Tr(t)}function Ip(t){return new cl(t)}function ul(t){this._context=t}ul.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,i=t.length;if(i)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),i===2)this._context.lineTo(t[1],e[1]);else for(var r=As(t),n=As(e),o=0,s=1;s<i;++o,++s)this._context.bezierCurveTo(r[0][o],n[0][o],r[1][o],n[1][o],t[s],e[s]);(this._line||this._line!==0&&i===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}};function As(t){var e,i=t.length-1,r,n=new Array(i),o=new Array(i),s=new Array(i);for(n[0]=0,o[0]=2,s[0]=t[0]+2*t[1],e=1;e<i-1;++e)n[e]=1,o[e]=4,s[e]=4*t[e]+2*t[e+1];for(n[i-1]=2,o[i-1]=7,s[i-1]=8*t[i-1]+t[i],e=1;e<i;++e)r=n[e]/o[e-1],o[e]-=r,s[e]-=r*s[e-1];for(n[i-1]=s[i-1]/o[i-1],e=i-2;e>=0;--e)n[e]=(s[e]-n[e+1])/o[e];for(o[i-1]=(t[i]+n[i-1])/2,e=0;e<i-1;++e)o[e]=2*t[e+1]-n[e+1];return[n,o]}function Mp(t){return new ul(t)}function Wr(t,e){this._context=t,this._t=e}Wr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var i=this._x*(1-this._t)+t*this._t;this._context.lineTo(i,this._y),this._context.lineTo(i,e)}break}}this._x=t,this._y=e}};function $p(t){return new Wr(t,.5)}function Dp(t){return new Wr(t,0)}function Np(t){return new Wr(t,1)}function bi(t,e,i){this.k=t,this.x=e,this.y=i}bi.prototype={constructor:bi,scale:function(t){return t===1?this:new bi(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new bi(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};bi.prototype;/*! @license DOMPurify 3.2.7 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.7/LICENSE */const{entries:dl,setPrototypeOf:Bs,isFrozen:Pp,getPrototypeOf:Rp,getOwnPropertyDescriptor:qp}=Object;let{freeze:gt,seal:wt,create:fl}=Object,{apply:Hn,construct:Yn}=typeof Reflect<"u"&&Reflect;gt||(gt=function(e){return e});wt||(wt=function(e){return e});Hn||(Hn=function(e,i){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];return e.apply(i,n)});Yn||(Yn=function(e){for(var i=arguments.length,r=new Array(i>1?i-1:0),n=1;n<i;n++)r[n-1]=arguments[n];return new e(...r)});const Ji=mt(Array.prototype.forEach),zp=mt(Array.prototype.lastIndexOf),Es=mt(Array.prototype.pop),di=mt(Array.prototype.push),Wp=mt(Array.prototype.splice),ar=mt(String.prototype.toLowerCase),_n=mt(String.prototype.toString),Cn=mt(String.prototype.match),fi=mt(String.prototype.replace),Hp=mt(String.prototype.indexOf),Yp=mt(String.prototype.trim),Ft=mt(Object.prototype.hasOwnProperty),ut=mt(RegExp.prototype.test),pi=jp(TypeError);function mt(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var i=arguments.length,r=new Array(i>1?i-1:0),n=1;n<i;n++)r[n-1]=arguments[n];return Hn(t,e,r)}}function jp(t){return function(){for(var e=arguments.length,i=new Array(e),r=0;r<e;r++)i[r]=arguments[r];return Yn(t,i)}}function Y(t,e){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ar;Bs&&Bs(t,null);let r=e.length;for(;r--;){let n=e[r];if(typeof n=="string"){const o=i(n);o!==n&&(Pp(e)||(e[r]=o),n=o)}t[n]=!0}return t}function Up(t){for(let e=0;e<t.length;e++)Ft(t,e)||(t[e]=null);return t}function Qt(t){const e=fl(null);for(const[i,r]of dl(t))Ft(t,i)&&(Array.isArray(r)?e[i]=Up(r):r&&typeof r=="object"&&r.constructor===Object?e[i]=Qt(r):e[i]=r);return e}function gi(t,e){for(;t!==null;){const r=qp(t,e);if(r){if(r.get)return mt(r.get);if(typeof r.value=="function")return mt(r.value)}t=Rp(t)}function i(){return null}return i}const Ls=gt(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),xn=gt(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","slot","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),bn=gt(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Xp=gt(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Tn=gt(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Gp=gt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Fs=gt(["#text"]),Os=gt(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),vn=gt(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Is=gt(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Qi=gt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Vp=wt(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Kp=wt(/<%[\w\W]*|[\w\W]*%>/gm),Zp=wt(/\$\{[\w\W]*/gm),Jp=wt(/^data-[\-\w.\u00B7-\uFFFF]+$/),Qp=wt(/^aria-[\-\w]+$/),pl=wt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),tg=wt(/^(?:\w+script|data):/i),eg=wt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),gl=wt(/^html$/i),ig=wt(/^[a-z][.\w]*(-[.\w]+)+$/i);var Ms=Object.freeze({__proto__:null,ARIA_ATTR:Qp,ATTR_WHITESPACE:eg,CUSTOM_ELEMENT:ig,DATA_ATTR:Jp,DOCTYPE_NAME:gl,ERB_EXPR:Kp,IS_ALLOWED_URI:pl,IS_SCRIPT_OR_DATA:tg,MUSTACHE_EXPR:Vp,TMPLIT_EXPR:Zp});const mi={element:1,text:3,progressingInstruction:7,comment:8,document:9},rg=function(){return typeof window>"u"?null:window},ng=function(e,i){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let r=null;const n="data-tt-policy-suffix";i&&i.hasAttribute(n)&&(r=i.getAttribute(n));const o="dompurify"+(r?"#"+r:"");try{return e.createPolicy(o,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}},$s=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function ml(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:rg();const e=I=>ml(I);if(e.version="3.2.7",e.removed=[],!t||!t.document||t.document.nodeType!==mi.document||!t.Element)return e.isSupported=!1,e;let{document:i}=t;const r=i,n=r.currentScript,{DocumentFragment:o,HTMLTemplateElement:s,Node:a,Element:l,NodeFilter:c,NamedNodeMap:h=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:d,DOMParser:u,trustedTypes:f}=t,m=l.prototype,y=gi(m,"cloneNode"),_=gi(m,"remove"),L=gi(m,"nextSibling"),b=gi(m,"childNodes"),P=gi(m,"parentNode");if(typeof s=="function"){const I=i.createElement("template");I.content&&I.content.ownerDocument&&(i=I.content.ownerDocument)}let C,S="";const{implementation:U,createNodeIterator:N,createDocumentFragment:tt,getElementsByTagName:nt}=i,{importNode:H}=r;let A=$s();e.isSupported=typeof dl=="function"&&typeof P=="function"&&U&&U.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:et,ERB_EXPR:oe,TMPLIT_EXPR:R,DATA_ATTR:w,ARIA_ATTR:T,IS_SCRIPT_OR_DATA:F,ATTR_WHITESPACE:k,CUSTOM_ELEMENT:$}=Ms;let{IS_ALLOWED_URI:W}=Ms,z=null;const V=Y({},[...Ls,...xn,...bn,...Tn,...Fs]);let j=null;const it=Y({},[...Os,...vn,...Is,...Qi]);let X=Object.seal(fl(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),vt=null,Bt=null,se=!0,Et=!0,ot=!1,Lt=!0,St=!1,Ut=!0,ge=!1,sn=!1,an=!1,Ee=!1,Wi=!1,Hi=!1,Wo=!0,Ho=!1;const kh="user-content-";let ln=!0,li=!1,Le={},Fe=null;const Yo=Y({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let jo=null;const Uo=Y({},["audio","video","img","source","image","track"]);let cn=null;const Xo=Y({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Yi="http://www.w3.org/1998/Math/MathML",ji="http://www.w3.org/2000/svg",Xt="http://www.w3.org/1999/xhtml";let Oe=Xt,hn=!1,un=null;const wh=Y({},[Yi,ji,Xt],_n);let Ui=Y({},["mi","mo","mn","ms","mtext"]),Xi=Y({},["annotation-xml"]);const Ah=Y({},["title","style","font","a","script"]);let ci=null;const Bh=["application/xhtml+xml","text/html"],Eh="text/html";let rt=null,Ie=null;const Lh=i.createElement("form"),Go=function(p){return p instanceof RegExp||p instanceof Function},dn=function(){let p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Ie&&Ie===p)){if((!p||typeof p!="object")&&(p={}),p=Qt(p),ci=Bh.indexOf(p.PARSER_MEDIA_TYPE)===-1?Eh:p.PARSER_MEDIA_TYPE,rt=ci==="application/xhtml+xml"?_n:ar,z=Ft(p,"ALLOWED_TAGS")?Y({},p.ALLOWED_TAGS,rt):V,j=Ft(p,"ALLOWED_ATTR")?Y({},p.ALLOWED_ATTR,rt):it,un=Ft(p,"ALLOWED_NAMESPACES")?Y({},p.ALLOWED_NAMESPACES,_n):wh,cn=Ft(p,"ADD_URI_SAFE_ATTR")?Y(Qt(Xo),p.ADD_URI_SAFE_ATTR,rt):Xo,jo=Ft(p,"ADD_DATA_URI_TAGS")?Y(Qt(Uo),p.ADD_DATA_URI_TAGS,rt):Uo,Fe=Ft(p,"FORBID_CONTENTS")?Y({},p.FORBID_CONTENTS,rt):Yo,vt=Ft(p,"FORBID_TAGS")?Y({},p.FORBID_TAGS,rt):Qt({}),Bt=Ft(p,"FORBID_ATTR")?Y({},p.FORBID_ATTR,rt):Qt({}),Le=Ft(p,"USE_PROFILES")?p.USE_PROFILES:!1,se=p.ALLOW_ARIA_ATTR!==!1,Et=p.ALLOW_DATA_ATTR!==!1,ot=p.ALLOW_UNKNOWN_PROTOCOLS||!1,Lt=p.ALLOW_SELF_CLOSE_IN_ATTR!==!1,St=p.SAFE_FOR_TEMPLATES||!1,Ut=p.SAFE_FOR_XML!==!1,ge=p.WHOLE_DOCUMENT||!1,Ee=p.RETURN_DOM||!1,Wi=p.RETURN_DOM_FRAGMENT||!1,Hi=p.RETURN_TRUSTED_TYPE||!1,an=p.FORCE_BODY||!1,Wo=p.SANITIZE_DOM!==!1,Ho=p.SANITIZE_NAMED_PROPS||!1,ln=p.KEEP_CONTENT!==!1,li=p.IN_PLACE||!1,W=p.ALLOWED_URI_REGEXP||pl,Oe=p.NAMESPACE||Xt,Ui=p.MATHML_TEXT_INTEGRATION_POINTS||Ui,Xi=p.HTML_INTEGRATION_POINTS||Xi,X=p.CUSTOM_ELEMENT_HANDLING||{},p.CUSTOM_ELEMENT_HANDLING&&Go(p.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(X.tagNameCheck=p.CUSTOM_ELEMENT_HANDLING.tagNameCheck),p.CUSTOM_ELEMENT_HANDLING&&Go(p.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(X.attributeNameCheck=p.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),p.CUSTOM_ELEMENT_HANDLING&&typeof p.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(X.allowCustomizedBuiltInElements=p.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),St&&(Et=!1),Wi&&(Ee=!0),Le&&(z=Y({},Fs),j=[],Le.html===!0&&(Y(z,Ls),Y(j,Os)),Le.svg===!0&&(Y(z,xn),Y(j,vn),Y(j,Qi)),Le.svgFilters===!0&&(Y(z,bn),Y(j,vn),Y(j,Qi)),Le.mathMl===!0&&(Y(z,Tn),Y(j,Is),Y(j,Qi))),p.ADD_TAGS&&(z===V&&(z=Qt(z)),Y(z,p.ADD_TAGS,rt)),p.ADD_ATTR&&(j===it&&(j=Qt(j)),Y(j,p.ADD_ATTR,rt)),p.ADD_URI_SAFE_ATTR&&Y(cn,p.ADD_URI_SAFE_ATTR,rt),p.FORBID_CONTENTS&&(Fe===Yo&&(Fe=Qt(Fe)),Y(Fe,p.FORBID_CONTENTS,rt)),ln&&(z["#text"]=!0),ge&&Y(z,["html","head","body"]),z.table&&(Y(z,["tbody"]),delete vt.tbody),p.TRUSTED_TYPES_POLICY){if(typeof p.TRUSTED_TYPES_POLICY.createHTML!="function")throw pi('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof p.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw pi('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');C=p.TRUSTED_TYPES_POLICY,S=C.createHTML("")}else C===void 0&&(C=ng(f,n)),C!==null&&typeof S=="string"&&(S=C.createHTML(""));gt&&gt(p),Ie=p}},Vo=Y({},[...xn,...bn,...Xp]),Ko=Y({},[...Tn,...Gp]),Fh=function(p){let x=P(p);(!x||!x.tagName)&&(x={namespaceURI:Oe,tagName:"template"});const B=ar(p.tagName),K=ar(x.tagName);return un[p.namespaceURI]?p.namespaceURI===ji?x.namespaceURI===Xt?B==="svg":x.namespaceURI===Yi?B==="svg"&&(K==="annotation-xml"||Ui[K]):!!Vo[B]:p.namespaceURI===Yi?x.namespaceURI===Xt?B==="math":x.namespaceURI===ji?B==="math"&&Xi[K]:!!Ko[B]:p.namespaceURI===Xt?x.namespaceURI===ji&&!Xi[K]||x.namespaceURI===Yi&&!Ui[K]?!1:!Ko[B]&&(Ah[B]||!Vo[B]):!!(ci==="application/xhtml+xml"&&un[p.namespaceURI]):!1},Nt=function(p){di(e.removed,{element:p});try{P(p).removeChild(p)}catch{_(p)}},me=function(p,x){try{di(e.removed,{attribute:x.getAttributeNode(p),from:x})}catch{di(e.removed,{attribute:null,from:x})}if(x.removeAttribute(p),p==="is")if(Ee||Wi)try{Nt(x)}catch{}else try{x.setAttribute(p,"")}catch{}},Zo=function(p){let x=null,B=null;if(an)p="<remove></remove>"+p;else{const Z=Cn(p,/^[\r\n\t ]+/);B=Z&&Z[0]}ci==="application/xhtml+xml"&&Oe===Xt&&(p='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+p+"</body></html>");const K=C?C.createHTML(p):p;if(Oe===Xt)try{x=new u().parseFromString(K,ci)}catch{}if(!x||!x.documentElement){x=U.createDocument(Oe,"template",null);try{x.documentElement.innerHTML=hn?S:K}catch{}}const lt=x.body||x.documentElement;return p&&B&&lt.insertBefore(i.createTextNode(B),lt.childNodes[0]||null),Oe===Xt?nt.call(x,ge?"html":"body")[0]:ge?x.documentElement:lt},Jo=function(p){return N.call(p.ownerDocument||p,p,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},fn=function(p){return p instanceof d&&(typeof p.nodeName!="string"||typeof p.textContent!="string"||typeof p.removeChild!="function"||!(p.attributes instanceof h)||typeof p.removeAttribute!="function"||typeof p.setAttribute!="function"||typeof p.namespaceURI!="string"||typeof p.insertBefore!="function"||typeof p.hasChildNodes!="function")},Qo=function(p){return typeof a=="function"&&p instanceof a};function Gt(I,p,x){Ji(I,B=>{B.call(e,p,x,Ie)})}const ts=function(p){let x=null;if(Gt(A.beforeSanitizeElements,p,null),fn(p))return Nt(p),!0;const B=rt(p.nodeName);if(Gt(A.uponSanitizeElement,p,{tagName:B,allowedTags:z}),Ut&&p.hasChildNodes()&&!Qo(p.firstElementChild)&&ut(/<[/\w!]/g,p.innerHTML)&&ut(/<[/\w!]/g,p.textContent)||p.nodeType===mi.progressingInstruction||Ut&&p.nodeType===mi.comment&&ut(/<[/\w]/g,p.data))return Nt(p),!0;if(!z[B]||vt[B]){if(!vt[B]&&is(B)&&(X.tagNameCheck instanceof RegExp&&ut(X.tagNameCheck,B)||X.tagNameCheck instanceof Function&&X.tagNameCheck(B)))return!1;if(ln&&!Fe[B]){const K=P(p)||p.parentNode,lt=b(p)||p.childNodes;if(lt&&K){const Z=lt.length;for(let yt=Z-1;yt>=0;--yt){const Vt=y(lt[yt],!0);Vt.__removalCount=(p.__removalCount||0)+1,K.insertBefore(Vt,L(p))}}}return Nt(p),!0}return p instanceof l&&!Fh(p)||(B==="noscript"||B==="noembed"||B==="noframes")&&ut(/<\/no(script|embed|frames)/i,p.innerHTML)?(Nt(p),!0):(St&&p.nodeType===mi.text&&(x=p.textContent,Ji([et,oe,R],K=>{x=fi(x,K," ")}),p.textContent!==x&&(di(e.removed,{element:p.cloneNode()}),p.textContent=x)),Gt(A.afterSanitizeElements,p,null),!1)},es=function(p,x,B){if(Wo&&(x==="id"||x==="name")&&(B in i||B in Lh))return!1;if(!(Et&&!Bt[x]&&ut(w,x))){if(!(se&&ut(T,x))){if(!j[x]||Bt[x]){if(!(is(p)&&(X.tagNameCheck instanceof RegExp&&ut(X.tagNameCheck,p)||X.tagNameCheck instanceof Function&&X.tagNameCheck(p))&&(X.attributeNameCheck instanceof RegExp&&ut(X.attributeNameCheck,x)||X.attributeNameCheck instanceof Function&&X.attributeNameCheck(x,p))||x==="is"&&X.allowCustomizedBuiltInElements&&(X.tagNameCheck instanceof RegExp&&ut(X.tagNameCheck,B)||X.tagNameCheck instanceof Function&&X.tagNameCheck(B))))return!1}else if(!cn[x]){if(!ut(W,fi(B,k,""))){if(!((x==="src"||x==="xlink:href"||x==="href")&&p!=="script"&&Hp(B,"data:")===0&&jo[p])){if(!(ot&&!ut(F,fi(B,k,"")))){if(B)return!1}}}}}}return!0},is=function(p){return p!=="annotation-xml"&&Cn(p,$)},rs=function(p){Gt(A.beforeSanitizeAttributes,p,null);const{attributes:x}=p;if(!x||fn(p))return;const B={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:j,forceKeepAttr:void 0};let K=x.length;for(;K--;){const lt=x[K],{name:Z,namespaceURI:yt,value:Vt}=lt,Me=rt(Z),pn=Vt;let st=Z==="value"?pn:Yp(pn);if(B.attrName=Me,B.attrValue=st,B.keepAttr=!0,B.forceKeepAttr=void 0,Gt(A.uponSanitizeAttribute,p,B),st=B.attrValue,Ho&&(Me==="id"||Me==="name")&&(me(Z,p),st=kh+st),Ut&&ut(/((--!?|])>)|<\/(style|title|textarea)/i,st)){me(Z,p);continue}if(Me==="attributename"&&Cn(st,"href")){me(Z,p);continue}if(B.forceKeepAttr)continue;if(!B.keepAttr){me(Z,p);continue}if(!Lt&&ut(/\/>/i,st)){me(Z,p);continue}St&&Ji([et,oe,R],os=>{st=fi(st,os," ")});const ns=rt(p.nodeName);if(!es(ns,Me,st)){me(Z,p);continue}if(C&&typeof f=="object"&&typeof f.getAttributeType=="function"&&!yt)switch(f.getAttributeType(ns,Me)){case"TrustedHTML":{st=C.createHTML(st);break}case"TrustedScriptURL":{st=C.createScriptURL(st);break}}if(st!==pn)try{yt?p.setAttributeNS(yt,Z,st):p.setAttribute(Z,st),fn(p)?Nt(p):Es(e.removed)}catch{me(Z,p)}}Gt(A.afterSanitizeAttributes,p,null)},Oh=function I(p){let x=null;const B=Jo(p);for(Gt(A.beforeSanitizeShadowDOM,p,null);x=B.nextNode();)Gt(A.uponSanitizeShadowNode,x,null),ts(x),rs(x),x.content instanceof o&&I(x.content);Gt(A.afterSanitizeShadowDOM,p,null)};return e.sanitize=function(I){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},x=null,B=null,K=null,lt=null;if(hn=!I,hn&&(I="<!-->"),typeof I!="string"&&!Qo(I))if(typeof I.toString=="function"){if(I=I.toString(),typeof I!="string")throw pi("dirty is not a string, aborting")}else throw pi("toString is not a function");if(!e.isSupported)return I;if(sn||dn(p),e.removed=[],typeof I=="string"&&(li=!1),li){if(I.nodeName){const Vt=rt(I.nodeName);if(!z[Vt]||vt[Vt])throw pi("root node is forbidden and cannot be sanitized in-place")}}else if(I instanceof a)x=Zo("<!---->"),B=x.ownerDocument.importNode(I,!0),B.nodeType===mi.element&&B.nodeName==="BODY"||B.nodeName==="HTML"?x=B:x.appendChild(B);else{if(!Ee&&!St&&!ge&&I.indexOf("<")===-1)return C&&Hi?C.createHTML(I):I;if(x=Zo(I),!x)return Ee?null:Hi?S:""}x&&an&&Nt(x.firstChild);const Z=Jo(li?I:x);for(;K=Z.nextNode();)ts(K),rs(K),K.content instanceof o&&Oh(K.content);if(li)return I;if(Ee){if(Wi)for(lt=tt.call(x.ownerDocument);x.firstChild;)lt.appendChild(x.firstChild);else lt=x;return(j.shadowroot||j.shadowrootmode)&&(lt=H.call(r,lt,!0)),lt}let yt=ge?x.outerHTML:x.innerHTML;return ge&&z["!doctype"]&&x.ownerDocument&&x.ownerDocument.doctype&&x.ownerDocument.doctype.name&&ut(gl,x.ownerDocument.doctype.name)&&(yt="<!DOCTYPE "+x.ownerDocument.doctype.name+`>
13
+ `+yt),St&&Ji([et,oe,R],Vt=>{yt=fi(yt,Vt," ")}),C&&Hi?C.createHTML(yt):yt},e.setConfig=function(){let I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};dn(I),sn=!0},e.clearConfig=function(){Ie=null,sn=!1},e.isValidAttribute=function(I,p,x){Ie||dn({});const B=rt(I),K=rt(p);return es(B,K,x)},e.addHook=function(I,p){typeof p=="function"&&di(A[I],p)},e.removeHook=function(I,p){if(p!==void 0){const x=zp(A[I],p);return x===-1?void 0:Wp(A[I],x,1)[0]}return Es(A[I])},e.removeHooks=function(I){A[I]=[]},e.removeAllHooks=function(){A=$s()},e}var Ge=ml();const lr={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:t=>t>=255?255:t<0?0:t,g:t=>t>=255?255:t<0?0:t,b:t=>t>=255?255:t<0?0:t,h:t=>t%360,s:t=>t>=100?100:t<0?0:t,l:t=>t>=100?100:t<0?0:t,a:t=>t>=1?1:t<0?0:t},toLinear:t=>{const e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:(t,e,i)=>(i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+(e-t)*6*i:i<1/2?e:i<2/3?t+(e-t)*(2/3-i)*6:t),hsl2rgb:({h:t,s:e,l:i},r)=>{if(!e)return i*2.55;t/=360,e/=100,i/=100;const n=i<.5?i*(1+e):i+e-i*e,o=2*i-n;switch(r){case"r":return lr.hue2rgb(o,n,t+1/3)*255;case"g":return lr.hue2rgb(o,n,t)*255;case"b":return lr.hue2rgb(o,n,t-1/3)*255}},rgb2hsl:({r:t,g:e,b:i},r)=>{t/=255,e/=255,i/=255;const n=Math.max(t,e,i),o=Math.min(t,e,i),s=(n+o)/2;if(r==="l")return s*100;if(n===o)return 0;const a=n-o,l=s>.5?a/(2-n-o):a/(n+o);if(r==="s")return l*100;switch(n){case t:return((e-i)/a+(e<i?6:0))*60;case e:return((i-t)/a+2)*60;case i:return((t-e)/a+4)*60;default:return-1}}},og={clamp:(t,e,i)=>e>i?Math.min(e,Math.max(i,t)):Math.min(i,Math.max(e,t)),round:t=>Math.round(t*1e10)/1e10},sg={dec2hex:t=>{const e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}},q={channel:lr,lang:og,unit:sg},le={};for(let t=0;t<=255;t++)le[t]=q.unit.dec2hex(t);const ct={ALL:0,RGB:1,HSL:2};class ag{constructor(){this.type=ct.ALL}get(){return this.type}set(e){if(this.type&&this.type!==e)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=e}reset(){this.type=ct.ALL}is(e){return this.type===e}}class lg{constructor(e,i){this.color=i,this.changed=!1,this.data=e,this.type=new ag}set(e,i){return this.color=i,this.changed=!1,this.data=e,this.type.type=ct.ALL,this}_ensureHSL(){const e=this.data,{h:i,s:r,l:n}=e;i===void 0&&(e.h=q.channel.rgb2hsl(e,"h")),r===void 0&&(e.s=q.channel.rgb2hsl(e,"s")),n===void 0&&(e.l=q.channel.rgb2hsl(e,"l"))}_ensureRGB(){const e=this.data,{r:i,g:r,b:n}=e;i===void 0&&(e.r=q.channel.hsl2rgb(e,"r")),r===void 0&&(e.g=q.channel.hsl2rgb(e,"g")),n===void 0&&(e.b=q.channel.hsl2rgb(e,"b"))}get r(){const e=this.data,i=e.r;return!this.type.is(ct.HSL)&&i!==void 0?i:(this._ensureHSL(),q.channel.hsl2rgb(e,"r"))}get g(){const e=this.data,i=e.g;return!this.type.is(ct.HSL)&&i!==void 0?i:(this._ensureHSL(),q.channel.hsl2rgb(e,"g"))}get b(){const e=this.data,i=e.b;return!this.type.is(ct.HSL)&&i!==void 0?i:(this._ensureHSL(),q.channel.hsl2rgb(e,"b"))}get h(){const e=this.data,i=e.h;return!this.type.is(ct.RGB)&&i!==void 0?i:(this._ensureRGB(),q.channel.rgb2hsl(e,"h"))}get s(){const e=this.data,i=e.s;return!this.type.is(ct.RGB)&&i!==void 0?i:(this._ensureRGB(),q.channel.rgb2hsl(e,"s"))}get l(){const e=this.data,i=e.l;return!this.type.is(ct.RGB)&&i!==void 0?i:(this._ensureRGB(),q.channel.rgb2hsl(e,"l"))}get a(){return this.data.a}set r(e){this.type.set(ct.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set(ct.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set(ct.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set(ct.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set(ct.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set(ct.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}}const Hr=new lg({r:0,g:0,b:0,a:0},"transparent"),qe={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(t.charCodeAt(0)!==35)return;const e=t.match(qe.re);if(!e)return;const i=e[1],r=parseInt(i,16),n=i.length,o=n%4===0,s=n>4,a=s?1:17,l=s?8:4,c=o?0:-1,h=s?255:15;return Hr.set({r:(r>>l*(c+3)&h)*a,g:(r>>l*(c+2)&h)*a,b:(r>>l*(c+1)&h)*a,a:o?(r&h)*a/255:1},t)},stringify:t=>{const{r:e,g:i,b:r,a:n}=t;return n<1?`#${le[Math.round(e)]}${le[Math.round(i)]}${le[Math.round(r)]}${le[Math.round(n*255)]}`:`#${le[Math.round(e)]}${le[Math.round(i)]}${le[Math.round(r)]}`}},Ce={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:t=>{const e=t.match(Ce.hueRe);if(e){const[,i,r]=e;switch(r){case"grad":return q.channel.clamp.h(parseFloat(i)*.9);case"rad":return q.channel.clamp.h(parseFloat(i)*180/Math.PI);case"turn":return q.channel.clamp.h(parseFloat(i)*360)}}return q.channel.clamp.h(parseFloat(t))},parse:t=>{const e=t.charCodeAt(0);if(e!==104&&e!==72)return;const i=t.match(Ce.re);if(!i)return;const[,r,n,o,s,a]=i;return Hr.set({h:Ce._hue2deg(r),s:q.channel.clamp.s(parseFloat(n)),l:q.channel.clamp.l(parseFloat(o)),a:s?q.channel.clamp.a(a?parseFloat(s)/100:parseFloat(s)):1},t)},stringify:t=>{const{h:e,s:i,l:r,a:n}=t;return n<1?`hsla(${q.lang.round(e)}, ${q.lang.round(i)}%, ${q.lang.round(r)}%, ${n})`:`hsl(${q.lang.round(e)}, ${q.lang.round(i)}%, ${q.lang.round(r)}%)`}},Si={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:t=>{t=t.toLowerCase();const e=Si.colors[t];if(e)return qe.parse(e)},stringify:t=>{const e=qe.stringify(t);for(const i in Si.colors)if(Si.colors[i]===e)return i}},Ti={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:t=>{const e=t.charCodeAt(0);if(e!==114&&e!==82)return;const i=t.match(Ti.re);if(!i)return;const[,r,n,o,s,a,l,c,h]=i;return Hr.set({r:q.channel.clamp.r(n?parseFloat(r)*2.55:parseFloat(r)),g:q.channel.clamp.g(s?parseFloat(o)*2.55:parseFloat(o)),b:q.channel.clamp.b(l?parseFloat(a)*2.55:parseFloat(a)),a:c?q.channel.clamp.a(h?parseFloat(c)/100:parseFloat(c)):1},t)},stringify:t=>{const{r:e,g:i,b:r,a:n}=t;return n<1?`rgba(${q.lang.round(e)}, ${q.lang.round(i)}, ${q.lang.round(r)}, ${q.lang.round(n)})`:`rgb(${q.lang.round(e)}, ${q.lang.round(i)}, ${q.lang.round(r)})`}},Mt={format:{keyword:Si,hex:qe,rgb:Ti,rgba:Ti,hsl:Ce,hsla:Ce},parse:t=>{if(typeof t!="string")return t;const e=qe.parse(t)||Ti.parse(t)||Ce.parse(t)||Si.parse(t);if(e)return e;throw new Error(`Unsupported color format: "${t}"`)},stringify:t=>!t.changed&&t.color?t.color:t.type.is(ct.HSL)||t.data.r===void 0?Ce.stringify(t):t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)?Ti.stringify(t):qe.stringify(t)},yl=(t,e)=>{const i=Mt.parse(t);for(const r in e)i[r]=q.channel.clamp[r](e[r]);return Mt.stringify(i)},ze=(t,e,i=0,r=1)=>{if(typeof t!="number")return yl(t,{a:e});const n=Hr.set({r:q.channel.clamp.r(t),g:q.channel.clamp.g(e),b:q.channel.clamp.b(i),a:q.channel.clamp.a(r)});return Mt.stringify(n)},cg=t=>{const{r:e,g:i,b:r}=Mt.parse(t),n=.2126*q.channel.toLinear(e)+.7152*q.channel.toLinear(i)+.0722*q.channel.toLinear(r);return q.lang.round(n)},hg=t=>cg(t)>=.5,ii=t=>!hg(t),_l=(t,e,i)=>{const r=Mt.parse(t),n=r[e],o=q.channel.clamp[e](n+i);return n!==o&&(r[e]=o),Mt.stringify(r)},E=(t,e)=>_l(t,"l",e),D=(t,e)=>_l(t,"l",-e),g=(t,e)=>{const i=Mt.parse(t),r={};for(const n in e)e[n]&&(r[n]=i[n]+e[n]);return yl(t,r)},ug=(t,e,i=50)=>{const{r,g:n,b:o,a:s}=Mt.parse(t),{r:a,g:l,b:c,a:h}=Mt.parse(e),d=i/100,u=d*2-1,f=s-h,y=((u*f===-1?u:(u+f)/(1+u*f))+1)/2,_=1-y,L=r*y+a*_,b=n*y+l*_,P=o*y+c*_,C=s*d+h*(1-d);return ze(L,b,P,C)},v=(t,e=100)=>{const i=Mt.parse(t);return i.r=255-i.r,i.g=255-i.g,i.b=255-i.b,ug(i,t,e)};var Cl=typeof global=="object"&&global&&global.Object===Object&&global,dg=typeof self=="object"&&self&&self.Object===Object&&self,jt=Cl||dg||Function("return this")(),Fi=jt.Symbol,xl=Object.prototype,fg=xl.hasOwnProperty,pg=xl.toString,yi=Fi?Fi.toStringTag:void 0;function gg(t){var e=fg.call(t,yi),i=t[yi];try{t[yi]=void 0;var r=!0}catch{}var n=pg.call(t);return r&&(e?t[yi]=i:delete t[yi]),n}var mg=Object.prototype,yg=mg.toString;function _g(t){return yg.call(t)}var Cg="[object Null]",xg="[object Undefined]",Ds=Fi?Fi.toStringTag:void 0;function ri(t){return t==null?t===void 0?xg:Cg:Ds&&Ds in Object(t)?gg(t):_g(t)}function fe(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var bg="[object AsyncFunction]",Tg="[object Function]",vg="[object GeneratorFunction]",Sg="[object Proxy]";function xo(t){if(!fe(t))return!1;var e=ri(t);return e==Tg||e==vg||e==bg||e==Sg}var Sn=jt["__core-js_shared__"],Ns=(function(){var t=/[^.]+$/.exec(Sn&&Sn.keys&&Sn.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();function kg(t){return!!Ns&&Ns in t}var wg=Function.prototype,Ag=wg.toString;function we(t){if(t!=null){try{return Ag.call(t)}catch{}try{return t+""}catch{}}return""}var Bg=/[\\^$.*+?()[\]{}|]/g,Eg=/^\[object .+?Constructor\]$/,Lg=Function.prototype,Fg=Object.prototype,Og=Lg.toString,Ig=Fg.hasOwnProperty,Mg=RegExp("^"+Og.call(Ig).replace(Bg,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function $g(t){if(!fe(t)||kg(t))return!1;var e=xo(t)?Mg:Eg;return e.test(we(t))}function Dg(t,e){return t==null?void 0:t[e]}function Ae(t,e){var i=Dg(t,e);return $g(i)?i:void 0}var Oi=Ae(Object,"create");function Ng(){this.__data__=Oi?Oi(null):{},this.size=0}function Pg(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var Rg="__lodash_hash_undefined__",qg=Object.prototype,zg=qg.hasOwnProperty;function Wg(t){var e=this.__data__;if(Oi){var i=e[t];return i===Rg?void 0:i}return zg.call(e,t)?e[t]:void 0}var Hg=Object.prototype,Yg=Hg.hasOwnProperty;function jg(t){var e=this.__data__;return Oi?e[t]!==void 0:Yg.call(e,t)}var Ug="__lodash_hash_undefined__";function Xg(t,e){var i=this.__data__;return this.size+=this.has(t)?0:1,i[t]=Oi&&e===void 0?Ug:e,this}function ve(t){var e=-1,i=t==null?0:t.length;for(this.clear();++e<i;){var r=t[e];this.set(r[0],r[1])}}ve.prototype.clear=Ng;ve.prototype.delete=Pg;ve.prototype.get=Wg;ve.prototype.has=jg;ve.prototype.set=Xg;function Gg(){this.__data__=[],this.size=0}function Yr(t,e){return t===e||t!==t&&e!==e}function jr(t,e){for(var i=t.length;i--;)if(Yr(t[i][0],e))return i;return-1}var Vg=Array.prototype,Kg=Vg.splice;function Zg(t){var e=this.__data__,i=jr(e,t);if(i<0)return!1;var r=e.length-1;return i==r?e.pop():Kg.call(e,i,1),--this.size,!0}function Jg(t){var e=this.__data__,i=jr(e,t);return i<0?void 0:e[i][1]}function Qg(t){return jr(this.__data__,t)>-1}function tm(t,e){var i=this.__data__,r=jr(i,t);return r<0?(++this.size,i.push([t,e])):i[r][1]=e,this}function ne(t){var e=-1,i=t==null?0:t.length;for(this.clear();++e<i;){var r=t[e];this.set(r[0],r[1])}}ne.prototype.clear=Gg;ne.prototype.delete=Zg;ne.prototype.get=Jg;ne.prototype.has=Qg;ne.prototype.set=tm;var Ii=Ae(jt,"Map");function em(){this.size=0,this.__data__={hash:new ve,map:new(Ii||ne),string:new ve}}function im(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function Ur(t,e){var i=t.__data__;return im(e)?i[typeof e=="string"?"string":"hash"]:i.map}function rm(t){var e=Ur(this,t).delete(t);return this.size-=e?1:0,e}function nm(t){return Ur(this,t).get(t)}function om(t){return Ur(this,t).has(t)}function sm(t,e){var i=Ur(this,t),r=i.size;return i.set(t,e),this.size+=i.size==r?0:1,this}function pe(t){var e=-1,i=t==null?0:t.length;for(this.clear();++e<i;){var r=t[e];this.set(r[0],r[1])}}pe.prototype.clear=em;pe.prototype.delete=rm;pe.prototype.get=nm;pe.prototype.has=om;pe.prototype.set=sm;var am="Expected a function";function qi(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(am);var i=function(){var r=arguments,n=e?e.apply(this,r):r[0],o=i.cache;if(o.has(n))return o.get(n);var s=t.apply(this,r);return i.cache=o.set(n,s)||o,s};return i.cache=new(qi.Cache||pe),i}qi.Cache=pe;function lm(){this.__data__=new ne,this.size=0}function cm(t){var e=this.__data__,i=e.delete(t);return this.size=e.size,i}function hm(t){return this.__data__.get(t)}function um(t){return this.__data__.has(t)}var dm=200;function fm(t,e){var i=this.__data__;if(i instanceof ne){var r=i.__data__;if(!Ii||r.length<dm-1)return r.push([t,e]),this.size=++i.size,this;i=this.__data__=new pe(r)}return i.set(t,e),this.size=i.size,this}function Be(t){var e=this.__data__=new ne(t);this.size=e.size}Be.prototype.clear=lm;Be.prototype.delete=cm;Be.prototype.get=hm;Be.prototype.has=um;Be.prototype.set=fm;var vr=(function(){try{var t=Ae(Object,"defineProperty");return t({},"",{}),t}catch{}})();function bo(t,e,i){e=="__proto__"&&vr?vr(t,e,{configurable:!0,enumerable:!0,value:i,writable:!0}):t[e]=i}function jn(t,e,i){(i!==void 0&&!Yr(t[e],i)||i===void 0&&!(e in t))&&bo(t,e,i)}function pm(t){return function(e,i,r){for(var n=-1,o=Object(e),s=r(e),a=s.length;a--;){var l=s[++n];if(i(o[l],l,o)===!1)break}return e}}var gm=pm(),bl=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ps=bl&&typeof module=="object"&&module&&!module.nodeType&&module,mm=Ps&&Ps.exports===bl,Rs=mm?jt.Buffer:void 0,qs=Rs?Rs.allocUnsafe:void 0;function Tl(t,e){if(e)return t.slice();var i=t.length,r=qs?qs(i):new t.constructor(i);return t.copy(r),r}var zs=jt.Uint8Array;function vl(t){var e=new t.constructor(t.byteLength);return new zs(e).set(new zs(t)),e}function Sl(t,e){var i=e?vl(t.buffer):t.buffer;return new t.constructor(i,t.byteOffset,t.length)}function kl(t,e){var i=-1,r=t.length;for(e||(e=Array(r));++i<r;)e[i]=t[i];return e}var Ws=Object.create,ym=(function(){function t(){}return function(e){if(!fe(e))return{};if(Ws)return Ws(e);t.prototype=e;var i=new t;return t.prototype=void 0,i}})();function wl(t,e){return function(i){return t(e(i))}}var Al=wl(Object.getPrototypeOf,Object),_m=Object.prototype;function Xr(t){var e=t&&t.constructor,i=typeof e=="function"&&e.prototype||_m;return t===i}function Bl(t){return typeof t.constructor=="function"&&!Xr(t)?ym(Al(t)):{}}function ni(t){return t!=null&&typeof t=="object"}var Cm="[object Arguments]";function Hs(t){return ni(t)&&ri(t)==Cm}var El=Object.prototype,xm=El.hasOwnProperty,bm=El.propertyIsEnumerable,Sr=Hs((function(){return arguments})())?Hs:function(t){return ni(t)&&xm.call(t,"callee")&&!bm.call(t,"callee")},Mi=Array.isArray,Tm=9007199254740991;function Ll(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Tm}function zi(t){return t!=null&&Ll(t.length)&&!xo(t)}function vm(t){return ni(t)&&zi(t)}function Sm(){return!1}var Fl=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ys=Fl&&typeof module=="object"&&module&&!module.nodeType&&module,km=Ys&&Ys.exports===Fl,js=km?jt.Buffer:void 0,wm=js?js.isBuffer:void 0,Gr=wm||Sm,Am="[object Object]",Bm=Function.prototype,Em=Object.prototype,Ol=Bm.toString,Lm=Em.hasOwnProperty,Fm=Ol.call(Object);function Om(t){if(!ni(t)||ri(t)!=Am)return!1;var e=Al(t);if(e===null)return!0;var i=Lm.call(e,"constructor")&&e.constructor;return typeof i=="function"&&i instanceof i&&Ol.call(i)==Fm}var Im="[object Arguments]",Mm="[object Array]",$m="[object Boolean]",Dm="[object Date]",Nm="[object Error]",Pm="[object Function]",Rm="[object Map]",qm="[object Number]",zm="[object Object]",Wm="[object RegExp]",Hm="[object Set]",Ym="[object String]",jm="[object WeakMap]",Um="[object ArrayBuffer]",Xm="[object DataView]",Gm="[object Float32Array]",Vm="[object Float64Array]",Km="[object Int8Array]",Zm="[object Int16Array]",Jm="[object Int32Array]",Qm="[object Uint8Array]",t0="[object Uint8ClampedArray]",e0="[object Uint16Array]",i0="[object Uint32Array]",G={};G[Gm]=G[Vm]=G[Km]=G[Zm]=G[Jm]=G[Qm]=G[t0]=G[e0]=G[i0]=!0;G[Im]=G[Mm]=G[Um]=G[$m]=G[Xm]=G[Dm]=G[Nm]=G[Pm]=G[Rm]=G[qm]=G[zm]=G[Wm]=G[Hm]=G[Ym]=G[jm]=!1;function r0(t){return ni(t)&&Ll(t.length)&&!!G[ri(t)]}function Il(t){return function(e){return t(e)}}var Ml=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ki=Ml&&typeof module=="object"&&module&&!module.nodeType&&module,n0=ki&&ki.exports===Ml,kn=n0&&Cl.process,Un=(function(){try{var t=ki&&ki.require&&ki.require("util").types;return t||kn&&kn.binding&&kn.binding("util")}catch{}})(),Us=Un&&Un.isTypedArray,To=Us?Il(Us):r0;function Xn(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}var o0=Object.prototype,s0=o0.hasOwnProperty;function $l(t,e,i){var r=t[e];(!(s0.call(t,e)&&Yr(r,i))||i===void 0&&!(e in t))&&bo(t,e,i)}function Dl(t,e,i,r){var n=!i;i||(i={});for(var o=-1,s=e.length;++o<s;){var a=e[o],l=void 0;l===void 0&&(l=t[a]),n?bo(i,a,l):$l(i,a,l)}return i}function a0(t,e){for(var i=-1,r=Array(t);++i<t;)r[i]=e(i);return r}var l0=9007199254740991,c0=/^(?:0|[1-9]\d*)$/;function Nl(t,e){var i=typeof t;return e=e??l0,!!e&&(i=="number"||i!="symbol"&&c0.test(t))&&t>-1&&t%1==0&&t<e}var h0=Object.prototype,u0=h0.hasOwnProperty;function Pl(t,e){var i=Mi(t),r=!i&&Sr(t),n=!i&&!r&&Gr(t),o=!i&&!r&&!n&&To(t),s=i||r||n||o,a=s?a0(t.length,String):[],l=a.length;for(var c in t)(e||u0.call(t,c))&&!(s&&(c=="length"||n&&(c=="offset"||c=="parent")||o&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Nl(c,l)))&&a.push(c);return a}function d0(t){var e=[];if(t!=null)for(var i in Object(t))e.push(i);return e}var f0=Object.prototype,p0=f0.hasOwnProperty;function g0(t){if(!fe(t))return d0(t);var e=Xr(t),i=[];for(var r in t)r=="constructor"&&(e||!p0.call(t,r))||i.push(r);return i}function Rl(t){return zi(t)?Pl(t,!0):g0(t)}function m0(t){return Dl(t,Rl(t))}function y0(t,e,i,r,n,o,s){var a=Xn(t,i),l=Xn(e,i),c=s.get(l);if(c){jn(t,i,c);return}var h=o?o(a,l,i+"",t,e,s):void 0,d=h===void 0;if(d){var u=Mi(l),f=!u&&Gr(l),m=!u&&!f&&To(l);h=l,u||f||m?Mi(a)?h=a:vm(a)?h=kl(a):f?(d=!1,h=Tl(l,!0)):m?(d=!1,h=Sl(l,!0)):h=[]:Om(l)||Sr(l)?(h=a,Sr(a)?h=m0(a):(!fe(a)||xo(a))&&(h=Bl(l))):d=!1}d&&(s.set(l,h),n(h,l,r,o,s),s.delete(l)),jn(t,i,h)}function ql(t,e,i,r,n){t!==e&&gm(e,function(o,s){if(n||(n=new Be),fe(o))y0(t,e,s,i,ql,r,n);else{var a=r?r(Xn(t,s),o,s+"",t,e,n):void 0;a===void 0&&(a=o),jn(t,s,a)}},Rl)}function zl(t){return t}function _0(t,e,i){switch(i.length){case 0:return t.call(e);case 1:return t.call(e,i[0]);case 2:return t.call(e,i[0],i[1]);case 3:return t.call(e,i[0],i[1],i[2])}return t.apply(e,i)}var Xs=Math.max;function C0(t,e,i){return e=Xs(e===void 0?t.length-1:e,0),function(){for(var r=arguments,n=-1,o=Xs(r.length-e,0),s=Array(o);++n<o;)s[n]=r[e+n];n=-1;for(var a=Array(e+1);++n<e;)a[n]=r[n];return a[e]=i(s),_0(t,this,a)}}function x0(t){return function(){return t}}var b0=vr?function(t,e){return vr(t,"toString",{configurable:!0,enumerable:!1,value:x0(e),writable:!0})}:zl,T0=800,v0=16,S0=Date.now;function k0(t){var e=0,i=0;return function(){var r=S0(),n=v0-(r-i);if(i=r,n>0){if(++e>=T0)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var w0=k0(b0);function A0(t,e){return w0(C0(t,e,zl),t+"")}function B0(t,e,i){if(!fe(i))return!1;var r=typeof e;return(r=="number"?zi(i)&&Nl(e,i.length):r=="string"&&e in i)?Yr(i[e],t):!1}function E0(t){return A0(function(e,i){var r=-1,n=i.length,o=n>1?i[n-1]:void 0,s=n>2?i[2]:void 0;for(o=t.length>3&&typeof o=="function"?(n--,o):void 0,s&&B0(i[0],i[1],s)&&(o=n<3?void 0:o,n=1),e=Object(e);++r<n;){var a=i[r];a&&t(e,a,r,o)}return e})}var L0=E0(function(t,e,i){ql(t,e,i)}),Wl="comm",Hl="rule",Yl="decl",F0="@import",O0="@namespace",I0="@keyframes",M0="@layer",jl=Math.abs,vo=String.fromCharCode;function Ul(t){return t.trim()}function cr(t,e,i){return t.replace(e,i)}function $0(t,e,i){return t.indexOf(e,i)}function We(t,e){return t.charCodeAt(e)|0}function Ve(t,e,i){return t.slice(e,i)}function Rt(t){return t.length}function D0(t){return t.length}function tr(t,e){return e.push(t),t}var Vr=1,Ke=1,Xl=0,At=0,J=0,oi="";function So(t,e,i,r,n,o,s,a){return{value:t,root:e,parent:i,type:r,props:n,children:o,line:Vr,column:Ke,length:s,return:"",siblings:a}}function N0(){return J}function P0(){return J=At>0?We(oi,--At):0,Ke--,J===10&&(Ke=1,Vr--),J}function It(){return J=At<Xl?We(oi,At++):0,Ke++,J===10&&(Ke=1,Vr++),J}function ce(){return We(oi,At)}function hr(){return At}function Kr(t,e){return Ve(oi,t,e)}function $i(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function R0(t){return Vr=Ke=1,Xl=Rt(oi=t),At=0,[]}function q0(t){return oi="",t}function wn(t){return Ul(Kr(At-1,Gn(t===91?t+2:t===40?t+1:t)))}function z0(t){for(;(J=ce())&&J<33;)It();return $i(t)>2||$i(J)>3?"":" "}function W0(t,e){for(;--e&&It()&&!(J<48||J>102||J>57&&J<65||J>70&&J<97););return Kr(t,hr()+(e<6&&ce()==32&&It()==32))}function Gn(t){for(;It();)switch(J){case t:return At;case 34:case 39:t!==34&&t!==39&&Gn(J);break;case 40:t===41&&Gn(t);break;case 92:It();break}return At}function H0(t,e){for(;It()&&t+J!==57;)if(t+J===84&&ce()===47)break;return"/*"+Kr(e,At-1)+"*"+vo(t===47?t:It())}function Y0(t){for(;!$i(ce());)It();return Kr(t,At)}function j0(t){return q0(ur("",null,null,null,[""],t=R0(t),0,[0],t))}function ur(t,e,i,r,n,o,s,a,l){for(var c=0,h=0,d=s,u=0,f=0,m=0,y=1,_=1,L=1,b=0,P="",C=n,S=o,U=r,N=P;_;)switch(m=b,b=It()){case 40:if(m!=108&&We(N,d-1)==58){$0(N+=cr(wn(b),"&","&\f"),"&\f",jl(c?a[c-1]:0))!=-1&&(L=-1);break}case 34:case 39:case 91:N+=wn(b);break;case 9:case 10:case 13:case 32:N+=z0(m);break;case 92:N+=W0(hr()-1,7);continue;case 47:switch(ce()){case 42:case 47:tr(U0(H0(It(),hr()),e,i,l),l),($i(m||1)==5||$i(ce()||1)==5)&&Rt(N)&&Ve(N,-1,void 0)!==" "&&(N+=" ");break;default:N+="/"}break;case 123*y:a[c++]=Rt(N)*L;case 125*y:case 59:case 0:switch(b){case 0:case 125:_=0;case 59+h:L==-1&&(N=cr(N,/\f/g,"")),f>0&&(Rt(N)-d||y===0&&m===47)&&tr(f>32?Vs(N+";",r,i,d-1,l):Vs(cr(N," ","")+";",r,i,d-2,l),l);break;case 59:N+=";";default:if(tr(U=Gs(N,e,i,c,h,n,a,P,C=[],S=[],d,o),o),b===123)if(h===0)ur(N,e,U,U,C,o,d,a,S);else{switch(u){case 99:if(We(N,3)===110)break;case 108:if(We(N,2)===97)break;default:h=0;case 100:case 109:case 115:}h?ur(t,U,U,r&&tr(Gs(t,U,U,0,0,n,a,P,n,C=[],d,S),S),n,S,d,a,r?C:S):ur(N,U,U,U,[""],S,0,a,S)}}c=h=f=0,y=L=1,P=N="",d=s;break;case 58:d=1+Rt(N),f=m;default:if(y<1){if(b==123)--y;else if(b==125&&y++==0&&P0()==125)continue}switch(N+=vo(b),b*y){case 38:L=h>0?1:(N+="\f",-1);break;case 44:a[c++]=(Rt(N)-1)*L,L=1;break;case 64:ce()===45&&(N+=wn(It())),u=ce(),h=d=Rt(P=N+=Y0(hr())),b++;break;case 45:m===45&&Rt(N)==2&&(y=0)}}return o}function Gs(t,e,i,r,n,o,s,a,l,c,h,d){for(var u=n-1,f=n===0?o:[""],m=D0(f),y=0,_=0,L=0;y<r;++y)for(var b=0,P=Ve(t,u+1,u=jl(_=s[y])),C=t;b<m;++b)(C=Ul(_>0?f[b]+" "+P:cr(P,/&\f/g,f[b])))&&(l[L++]=C);return So(t,e,i,n===0?Hl:a,l,c,h,d)}function U0(t,e,i,r){return So(t,e,i,Wl,vo(N0()),Ve(t,2,-2),0,r)}function Vs(t,e,i,r,n){return So(t,e,i,Yl,Ve(t,0,r),Ve(t,r+1,-1),r,n)}function Vn(t,e){for(var i="",r=0;r<t.length;r++)i+=e(t[r],r,t,e)||"";return i}function X0(t,e,i,r){switch(t.type){case M0:if(t.children.length)break;case F0:case O0:case Yl:return t.return=t.return||t.value;case Wl:return"";case I0:return t.return=t.value+"{"+Vn(t.children,r)+"}";case Hl:if(!Rt(t.value=t.props.join(",")))return""}return Rt(i=Vn(t.children,r))?t.return=t.value+"{"+i+"}":""}var G0=wl(Object.keys,Object),V0=Object.prototype,K0=V0.hasOwnProperty;function Gl(t){if(!Xr(t))return G0(t);var e=[];for(var i in Object(t))K0.call(t,i)&&i!="constructor"&&e.push(i);return e}var Kn=Ae(jt,"DataView"),Zn=Ae(jt,"Promise"),Jn=Ae(jt,"Set"),Qn=Ae(jt,"WeakMap"),Ks="[object Map]",Z0="[object Object]",Zs="[object Promise]",Js="[object Set]",Qs="[object WeakMap]",ta="[object DataView]",J0=we(Kn),Q0=we(Ii),ty=we(Zn),ey=we(Jn),iy=we(Qn);exports.getTag=ri;(Kn&&exports.getTag(new Kn(new ArrayBuffer(1)))!=ta||Ii&&exports.getTag(new Ii)!=Ks||Zn&&exports.getTag(Zn.resolve())!=Zs||Jn&&exports.getTag(new Jn)!=Js||Qn&&exports.getTag(new Qn)!=Qs)&&(exports.getTag=function(t){var e=ri(t),i=e==Z0?t.constructor:void 0,r=i?we(i):"";if(r)switch(r){case J0:return ta;case Q0:return Ks;case ty:return Zs;case ey:return Js;case iy:return Qs}return e});var ry="[object Map]",ny="[object Set]",oy=Object.prototype,sy=oy.hasOwnProperty;function An(t){if(t==null)return!0;if(zi(t)&&(Mi(t)||typeof t=="string"||typeof t.splice=="function"||Gr(t)||To(t)||Sr(t)))return!t.length;var e=exports.getTag(t);if(e==ry||e==ny)return!t.size;if(Xr(t))return!Gl(t).length;for(var i in t)if(sy.call(t,i))return!1;return!0}const Zt={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},M={trace:(...t)=>{},debug:(...t)=>{},info:(...t)=>{},warn:(...t)=>{},error:(...t)=>{},fatal:(...t)=>{}},ko=function(t="fatal"){let e=Zt.fatal;typeof t=="string"?(t=t.toLowerCase(),t in Zt&&(e=Zt[t])):typeof t=="number"&&(e=t),M.trace=()=>{},M.debug=()=>{},M.info=()=>{},M.warn=()=>{},M.error=()=>{},M.fatal=()=>{},e<=Zt.fatal&&(M.fatal=console.error?console.error.bind(console,kt("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",kt("FATAL"))),e<=Zt.error&&(M.error=console.error?console.error.bind(console,kt("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",kt("ERROR"))),e<=Zt.warn&&(M.warn=console.warn?console.warn.bind(console,kt("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",kt("WARN"))),e<=Zt.info&&(M.info=console.info?console.info.bind(console,kt("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",kt("INFO"))),e<=Zt.debug&&(M.debug=console.debug?console.debug.bind(console,kt("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",kt("DEBUG"))),e<=Zt.trace&&(M.trace=console.debug?console.debug.bind(console,kt("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",kt("TRACE")))},kt=t=>`%c${ka().format("ss.SSS")} : ${t} : `,si=/<br\s*\/?>/gi,ay=t=>t?Kl(t).replace(/\\n/g,"#br#").split("#br#"):[""],ly=(()=>{let t=!1;return()=>{t||(cy(),t=!0)}})();function cy(){const t="data-temp-href-target";Ge.addHook("beforeSanitizeAttributes",e=>{e.tagName==="A"&&e.hasAttribute("target")&&e.setAttribute(t,e.getAttribute("target")||"")}),Ge.addHook("afterSanitizeAttributes",e=>{e.tagName==="A"&&e.hasAttribute(t)&&(e.setAttribute("target",e.getAttribute(t)||""),e.removeAttribute(t),e.getAttribute("target")==="_blank"&&e.setAttribute("rel","noopener"))})}const Vl=t=>(ly(),Ge.sanitize(t)),ea=(t,e)=>{var i;if(((i=e.flowchart)==null?void 0:i.htmlLabels)!==!1){const r=e.securityLevel;r==="antiscript"||r==="strict"?t=Vl(t):r!=="loose"&&(t=Kl(t),t=t.replace(/</g,"&lt;").replace(/>/g,"&gt;"),t=t.replace(/=/g,"&equals;"),t=fy(t))}return t},Se=(t,e)=>t&&(e.dompurifyConfig?t=Ge.sanitize(ea(t,e),e.dompurifyConfig).toString():t=Ge.sanitize(ea(t,e),{FORBID_TAGS:["style"]}).toString(),t),hy=(t,e)=>typeof t=="string"?Se(t,e):t.flat().map(i=>Se(i,e)),uy=t=>si.test(t),dy=t=>t.split(si),fy=t=>t.replace(/#br#/g,"<br/>"),Kl=t=>t.replace(si,"#br#"),py=t=>{let e="";return t&&(e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,e=e.replaceAll(/\(/g,"\\("),e=e.replaceAll(/\)/g,"\\)")),e},wo=t=>!(t===!1||["false","null","0"].includes(String(t).trim().toLowerCase())),gy=function(...t){const e=t.filter(i=>!isNaN(i));return Math.max(...e)},my=function(...t){const e=t.filter(i=>!isNaN(i));return Math.min(...e)},yy=function(t){const e=t.split(/(,)/),i=[];for(let r=0;r<e.length;r++){let n=e[r];if(n===","&&r>0&&r+1<e.length){const o=e[r-1],s=e[r+1];_y(o,s)&&(n=o+","+s,r++,i.pop())}i.push(Cy(n))}return i.join("")},to=(t,e)=>Math.max(0,t.split(e).length-1),_y=(t,e)=>{const i=to(t,"~"),r=to(e,"~");return i===1&&r===1},Cy=t=>{const e=to(t,"~");let i=!1;if(e<=1)return t;e%2!==0&&t.startsWith("~")&&(t=t.substring(1),i=!0);const r=[...t];let n=r.indexOf("~"),o=r.lastIndexOf("~");for(;n!==-1&&o!==-1&&n!==o;)r[n]="<",r[o]=">",n=r.indexOf("~"),o=r.lastIndexOf("~");return i&&r.unshift("~"),r.join("")},ia=()=>window.MathMLElement!==void 0,eo=/\$\$(.*)\$\$/g,io=t=>{var e;return(((e=t.match(eo))==null?void 0:e.length)??0)>0},xy=async(t,e)=>{const i=document.createElement("div");i.innerHTML=await Zl(t,e),i.id="katex-temp",i.style.visibility="hidden",i.style.position="absolute",i.style.top="0";const r=document.querySelector("body");r==null||r.insertAdjacentElement("beforeend",i);const n={width:i.clientWidth,height:i.clientHeight};return i.remove(),n},by=async(t,e)=>{if(!io(t))return t;if(!ia()&&!e.legacyMathML)return t.replace(eo,"MathML is unsupported in this environment.");const{default:i}=await Promise.resolve().then(()=>require("./layers.Cs24L6er.js"));return t.split(si).map(r=>io(r)?`
14
14
  <div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">
15
15
  ${r}
16
16
  </div>
17
- `:`<div>${r}</div>`).join("").replace(to,(r,n)=>i.renderToString(n,{throwOnError:!0,displayMode:!0,output:ia()?"mathml":"htmlAndMathml"}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,""))},Zl=async(t,e)=>ve(await by(t,e),e),Zr={getRows:ay,sanitizeText:ve,sanitizeTextOrArray:hy,hasBreaks:uy,splitBreaks:dy,lineBreakRegex:oi,removeScript:Vl,getUrl:py,evaluate:ko,getMax:gy,getMin:my},pt=(t,e)=>e?g(t,{s:-40,l:10}):g(t,{s:-40,l:-10}),Jr="#ffffff",Qr="#f2f2f2";let Ty=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){var e,i,r,n,s,o,a,l,c,h,d;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||g(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||g(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||pt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||pt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||pt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||pt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||v(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||v(this.tertiaryColor),this.lineColor=this.lineColor||v(this.background),this.arrowheadColor=this.arrowheadColor||v(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?D(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||"grey",this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||D(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||v(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||E(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||g(this.primaryColor,{h:30}),this.cScale4=this.cScale4||g(this.primaryColor,{h:60}),this.cScale5=this.cScale5||g(this.primaryColor,{h:90}),this.cScale6=this.cScale6||g(this.primaryColor,{h:120}),this.cScale7=this.cScale7||g(this.primaryColor,{h:150}),this.cScale8=this.cScale8||g(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||g(this.primaryColor,{h:270}),this.cScale10=this.cScale10||g(this.primaryColor,{h:300}),this.cScale11=this.cScale11||g(this.primaryColor,{h:330}),this.darkMode)for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScale"+f]=D(this["cScale"+f],75);else for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScale"+f]=D(this["cScale"+f],25);for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScaleInv"+f]=this["cScaleInv"+f]||v(this["cScale"+f]);for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this.darkMode?this["cScalePeer"+f]=this["cScalePeer"+f]||E(this["cScale"+f],10):this["cScalePeer"+f]=this["cScalePeer"+f]||D(this["cScale"+f],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScaleLabel"+f]=this["cScaleLabel"+f]||this.scaleLabelColor;const u=this.darkMode?-4:-1;for(let f=0;f<5;f++)this["surface"+f]=this["surface"+f]||g(this.mainBkg,{h:180,s:-15,l:u*(5+f*3)}),this["surfacePeer"+f]=this["surfacePeer"+f]||g(this.mainBkg,{h:180,s:-15,l:u*(8+f*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||g(this.primaryColor,{h:64}),this.fillType3=this.fillType3||g(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||g(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||g(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||g(this.primaryColor,{h:128}),this.fillType7=this.fillType7||g(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||g(this.primaryColor,{l:-10}),this.pie5=this.pie5||g(this.secondaryColor,{l:-10}),this.pie6=this.pie6||g(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||g(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||g(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||g(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||g(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||g(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||g(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||g(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||g(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||g(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||g(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||g(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||g(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ei(this.quadrant1Fill)?E(this.quadrant1Fill):D(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:((r=this.xyChart)==null?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((n=this.xyChart)==null?void 0:n.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((s=this.xyChart)==null?void 0:s.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((o=this.xyChart)==null?void 0:o.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((a=this.xyChart)==null?void 0:a.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((h=this.xyChart)==null?void 0:h.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((d=this.xyChart)==null?void 0:d.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?D(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||g(this.primaryColor,{h:-30}),this.git4=this.git4||g(this.primaryColor,{h:-60}),this.git5=this.git5||g(this.primaryColor,{h:-90}),this.git6=this.git6||g(this.primaryColor,{h:60}),this.git7=this.git7||g(this.primaryColor,{h:120}),this.darkMode?(this.git0=E(this.git0,25),this.git1=E(this.git1,25),this.git2=E(this.git2,25),this.git3=E(this.git3,25),this.git4=E(this.git4,25),this.git5=E(this.git5,25),this.git6=E(this.git6,25),this.git7=E(this.git7,25)):(this.git0=D(this.git0,25),this.git1=D(this.git1,25),this.git2=D(this.git2,25),this.git3=D(this.git3,25),this.git4=D(this.git4,25),this.git5=D(this.git5,25),this.git6=D(this.git6,25),this.git7=D(this.git7,25)),this.gitInv0=this.gitInv0||v(this.git0),this.gitInv1=this.gitInv1||v(this.git1),this.gitInv2=this.gitInv2||v(this.git2),this.gitInv3=this.gitInv3||v(this.git3),this.gitInv4=this.gitInv4||v(this.git4),this.gitInv5=this.gitInv5||v(this.git5),this.gitInv6=this.gitInv6||v(this.git6),this.gitInv7=this.gitInv7||v(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Jr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Qr}calculate(e){if(typeof e!="object"){this.updateColors();return}const i=Object.keys(e);i.forEach(r=>{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const vy=t=>{const e=new Ty;return e.calculate(t),e};let Sy=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=E(this.primaryColor,16),this.tertiaryColor=g(this.primaryColor,{h:-160}),this.primaryBorderColor=v(this.background),this.secondaryBorderColor=pt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=pt(this.tertiaryColor,this.darkMode),this.primaryTextColor=v(this.primaryColor),this.secondaryTextColor=v(this.secondaryColor),this.tertiaryTextColor=v(this.tertiaryColor),this.lineColor=v(this.background),this.textColor=v(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=E(v("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=qe(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=D("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=D(this.sectionBkgColor,10),this.taskBorderColor=qe(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=qe(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){var e,i,r,n,s,o,a,l,c,h,d;this.secondBkg=E(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=E(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.mainContrastColor,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=E(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=g(this.primaryColor,{h:64}),this.fillType3=g(this.secondaryColor,{h:64}),this.fillType4=g(this.primaryColor,{h:-64}),this.fillType5=g(this.secondaryColor,{h:-64}),this.fillType6=g(this.primaryColor,{h:128}),this.fillType7=g(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||g(this.primaryColor,{h:30}),this.cScale4=this.cScale4||g(this.primaryColor,{h:60}),this.cScale5=this.cScale5||g(this.primaryColor,{h:90}),this.cScale6=this.cScale6||g(this.primaryColor,{h:120}),this.cScale7=this.cScale7||g(this.primaryColor,{h:150}),this.cScale8=this.cScale8||g(this.primaryColor,{h:210}),this.cScale9=this.cScale9||g(this.primaryColor,{h:270}),this.cScale10=this.cScale10||g(this.primaryColor,{h:300}),this.cScale11=this.cScale11||g(this.primaryColor,{h:330});for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["cScaleInv"+u]=this["cScaleInv"+u]||v(this["cScale"+u]);for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["cScalePeer"+u]=this["cScalePeer"+u]||E(this["cScale"+u],10);for(let u=0;u<5;u++)this["surface"+u]=this["surface"+u]||g(this.mainBkg,{h:30,s:-30,l:-(-10+u*4)}),this["surfacePeer"+u]=this["surfacePeer"+u]||g(this.mainBkg,{h:30,s:-30,l:-(-7+u*4)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["cScaleLabel"+u]=this["cScaleLabel"+u]||this.scaleLabelColor;for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["pie"+u]=this["cScale"+u];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||g(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||g(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||g(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||g(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||g(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||g(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ei(this.quadrant1Fill)?E(this.quadrant1Fill):D(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:((r=this.xyChart)==null?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((n=this.xyChart)==null?void 0:n.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((s=this.xyChart)==null?void 0:s.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((o=this.xyChart)==null?void 0:o.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((a=this.xyChart)==null?void 0:a.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((h=this.xyChart)==null?void 0:h.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((d=this.xyChart)==null?void 0:d.plotColorPalette)||"#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"},this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?D(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=E(this.secondaryColor,20),this.git1=E(this.pie2||this.secondaryColor,20),this.git2=E(this.pie3||this.tertiaryColor,20),this.git3=E(this.pie4||g(this.primaryColor,{h:-30}),20),this.git4=E(this.pie5||g(this.primaryColor,{h:-60}),20),this.git5=E(this.pie6||g(this.primaryColor,{h:-90}),10),this.git6=E(this.pie7||g(this.primaryColor,{h:60}),10),this.git7=E(this.pie8||g(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||v(this.git0),this.gitInv1=this.gitInv1||v(this.git1),this.gitInv2=this.gitInv2||v(this.git2),this.gitInv3=this.gitInv3||v(this.git3),this.gitInv4=this.gitInv4||v(this.git4),this.gitInv5=this.gitInv5||v(this.git5),this.gitInv6=this.gitInv6||v(this.git6),this.gitInv7=this.gitInv7||v(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||v(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||v(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||E(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||E(this.background,2)}calculate(e){if(typeof e!="object"){this.updateColors();return}const i=Object.keys(e);i.forEach(r=>{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const ky=t=>{const e=new Sy;return e.calculate(t),e};let wy=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=g(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=g(this.primaryColor,{h:-160}),this.primaryBorderColor=pt(this.primaryColor,this.darkMode),this.secondaryBorderColor=pt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=pt(this.tertiaryColor,this.darkMode),this.primaryTextColor=v(this.primaryColor),this.secondaryTextColor=v(this.secondaryColor),this.tertiaryTextColor=v(this.tertiaryColor),this.lineColor=v(this.background),this.textColor=v(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#e8e8e8",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.sectionBkgColor=qe(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){var e,i,r,n,s,o,a,l,c,h,d;this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||g(this.primaryColor,{h:30}),this.cScale4=this.cScale4||g(this.primaryColor,{h:60}),this.cScale5=this.cScale5||g(this.primaryColor,{h:90}),this.cScale6=this.cScale6||g(this.primaryColor,{h:120}),this.cScale7=this.cScale7||g(this.primaryColor,{h:150}),this.cScale8=this.cScale8||g(this.primaryColor,{h:210}),this.cScale9=this.cScale9||g(this.primaryColor,{h:270}),this.cScale10=this.cScale10||g(this.primaryColor,{h:300}),this.cScale11=this.cScale11||g(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||D(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||D(this.tertiaryColor,40);for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["cScale"+u]=D(this["cScale"+u],10),this["cScalePeer"+u]=this["cScalePeer"+u]||D(this["cScale"+u],25);for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["cScaleInv"+u]=this["cScaleInv"+u]||g(this["cScale"+u],{h:180});for(let u=0;u<5;u++)this["surface"+u]=this["surface"+u]||g(this.mainBkg,{h:30,l:-(5+u*5)}),this["surfacePeer"+u]=this["surfacePeer"+u]||g(this.mainBkg,{h:30,l:-(7+u*5)});if(this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,this.labelTextColor!=="calculated"){this.cScaleLabel0=this.cScaleLabel0||v(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||v(this.labelTextColor);for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["cScaleLabel"+u]=this["cScaleLabel"+u]||this.labelTextColor}this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.edgeLabelBackground=this.labelBackground,this.actorBorder=E(this.border1,23),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=g(this.primaryColor,{h:64}),this.fillType3=g(this.secondaryColor,{h:64}),this.fillType4=g(this.primaryColor,{h:-64}),this.fillType5=g(this.secondaryColor,{h:-64}),this.fillType6=g(this.primaryColor,{h:128}),this.fillType7=g(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||g(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||g(this.primaryColor,{l:-10}),this.pie5=this.pie5||g(this.secondaryColor,{l:-30}),this.pie6=this.pie6||g(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||g(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||g(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||g(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||g(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||g(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||g(this.primaryColor,{h:120,l:-30}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||g(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||g(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||g(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||g(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||g(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||g(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ei(this.quadrant1Fill)?E(this.quadrant1Fill):D(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:((r=this.xyChart)==null?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((n=this.xyChart)==null?void 0:n.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((s=this.xyChart)==null?void 0:s.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((o=this.xyChart)==null?void 0:o.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((a=this.xyChart)==null?void 0:a.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((h=this.xyChart)==null?void 0:h.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((d=this.xyChart)==null?void 0:d.plotColorPalette)||"#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.labelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||g(this.primaryColor,{h:-30}),this.git4=this.git4||g(this.primaryColor,{h:-60}),this.git5=this.git5||g(this.primaryColor,{h:-90}),this.git6=this.git6||g(this.primaryColor,{h:60}),this.git7=this.git7||g(this.primaryColor,{h:120}),this.darkMode?(this.git0=E(this.git0,25),this.git1=E(this.git1,25),this.git2=E(this.git2,25),this.git3=E(this.git3,25),this.git4=E(this.git4,25),this.git5=E(this.git5,25),this.git6=E(this.git6,25),this.git7=E(this.git7,25)):(this.git0=D(this.git0,25),this.git1=D(this.git1,25),this.git2=D(this.git2,25),this.git3=D(this.git3,25),this.git4=D(this.git4,25),this.git5=D(this.git5,25),this.git6=D(this.git6,25),this.git7=D(this.git7,25)),this.gitInv0=this.gitInv0||D(v(this.git0),25),this.gitInv1=this.gitInv1||v(this.git1),this.gitInv2=this.gitInv2||v(this.git2),this.gitInv3=this.gitInv3||v(this.git3),this.gitInv4=this.gitInv4||v(this.git4),this.gitInv5=this.gitInv5||v(this.git5),this.gitInv6=this.gitInv6||v(this.git6),this.gitInv7=this.gitInv7||v(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||v(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||v(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Jr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Qr}calculate(e){if(typeof e!="object"){this.updateColors();return}const i=Object.keys(e);i.forEach(r=>{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const Jl=t=>{const e=new wy;return e.calculate(t),e};let Ay=class{constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=E("#cde498",10),this.primaryBorderColor=pt(this.primaryColor,this.darkMode),this.secondaryBorderColor=pt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=pt(this.tertiaryColor,this.darkMode),this.primaryTextColor=v(this.primaryColor),this.secondaryTextColor=v(this.secondaryColor),this.tertiaryTextColor=v(this.primaryColor),this.lineColor=v(this.background),this.textColor=v(this.background),this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var e,i,r,n,s,o,a,l,c,h,d;this.actorBorder=D(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||g(this.primaryColor,{h:30}),this.cScale4=this.cScale4||g(this.primaryColor,{h:60}),this.cScale5=this.cScale5||g(this.primaryColor,{h:90}),this.cScale6=this.cScale6||g(this.primaryColor,{h:120}),this.cScale7=this.cScale7||g(this.primaryColor,{h:150}),this.cScale8=this.cScale8||g(this.primaryColor,{h:210}),this.cScale9=this.cScale9||g(this.primaryColor,{h:270}),this.cScale10=this.cScale10||g(this.primaryColor,{h:300}),this.cScale11=this.cScale11||g(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||D(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||D(this.tertiaryColor,40);for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["cScale"+u]=D(this["cScale"+u],10),this["cScalePeer"+u]=this["cScalePeer"+u]||D(this["cScale"+u],25);for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["cScaleInv"+u]=this["cScaleInv"+u]||g(this["cScale"+u],{h:180});this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["cScaleLabel"+u]=this["cScaleLabel"+u]||this.scaleLabelColor;for(let u=0;u<5;u++)this["surface"+u]=this["surface"+u]||g(this.mainBkg,{h:30,s:-30,l:-(5+u*5)}),this["surfacePeer"+u]=this["surfacePeer"+u]||g(this.mainBkg,{h:30,s:-30,l:-(8+u*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=g(this.primaryColor,{h:64}),this.fillType3=g(this.secondaryColor,{h:64}),this.fillType4=g(this.primaryColor,{h:-64}),this.fillType5=g(this.secondaryColor,{h:-64}),this.fillType6=g(this.primaryColor,{h:128}),this.fillType7=g(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||g(this.primaryColor,{l:-30}),this.pie5=this.pie5||g(this.secondaryColor,{l:-30}),this.pie6=this.pie6||g(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||g(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||g(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||g(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||g(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||g(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||g(this.primaryColor,{h:120,l:-50}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||g(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||g(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||g(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||g(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||g(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||g(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ei(this.quadrant1Fill)?E(this.quadrant1Fill):D(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:((r=this.xyChart)==null?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((n=this.xyChart)==null?void 0:n.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((s=this.xyChart)==null?void 0:s.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((o=this.xyChart)==null?void 0:o.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((a=this.xyChart)==null?void 0:a.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((h=this.xyChart)==null?void 0:h.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((d=this.xyChart)==null?void 0:d.plotColorPalette)||"#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||g(this.primaryColor,{h:-30}),this.git4=this.git4||g(this.primaryColor,{h:-60}),this.git5=this.git5||g(this.primaryColor,{h:-90}),this.git6=this.git6||g(this.primaryColor,{h:60}),this.git7=this.git7||g(this.primaryColor,{h:120}),this.darkMode?(this.git0=E(this.git0,25),this.git1=E(this.git1,25),this.git2=E(this.git2,25),this.git3=E(this.git3,25),this.git4=E(this.git4,25),this.git5=E(this.git5,25),this.git6=E(this.git6,25),this.git7=E(this.git7,25)):(this.git0=D(this.git0,25),this.git1=D(this.git1,25),this.git2=D(this.git2,25),this.git3=D(this.git3,25),this.git4=D(this.git4,25),this.git5=D(this.git5,25),this.git6=D(this.git6,25),this.git7=D(this.git7,25)),this.gitInv0=this.gitInv0||v(this.git0),this.gitInv1=this.gitInv1||v(this.git1),this.gitInv2=this.gitInv2||v(this.git2),this.gitInv3=this.gitInv3||v(this.git3),this.gitInv4=this.gitInv4||v(this.git4),this.gitInv5=this.gitInv5||v(this.git5),this.gitInv6=this.gitInv6||v(this.git6),this.gitInv7=this.gitInv7||v(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||v(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||v(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Jr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Qr}calculate(e){if(typeof e!="object"){this.updateColors();return}const i=Object.keys(e);i.forEach(r=>{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const By=t=>{const e=new Ay;return e.calculate(t),e};class Ey{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=E(this.contrast,55),this.background="#ffffff",this.tertiaryColor=g(this.primaryColor,{h:-160}),this.primaryBorderColor=pt(this.primaryColor,this.darkMode),this.secondaryBorderColor=pt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=pt(this.tertiaryColor,this.darkMode),this.primaryTextColor=v(this.primaryColor),this.secondaryTextColor=v(this.secondaryColor),this.tertiaryTextColor=v(this.tertiaryColor),this.lineColor=v(this.background),this.textColor=v(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var e,i,r,n,s,o,a,l,c,h,d;this.secondBkg=E(this.contrast,55),this.border2=this.contrast,this.actorBorder=E(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.lineColor,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["cScaleInv"+u]=this["cScaleInv"+u]||v(this["cScale"+u]);for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this.darkMode?this["cScalePeer"+u]=this["cScalePeer"+u]||E(this["cScale"+u],10):this["cScalePeer"+u]=this["cScalePeer"+u]||D(this["cScale"+u],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["cScaleLabel"+u]=this["cScaleLabel"+u]||this.scaleLabelColor;for(let u=0;u<5;u++)this["surface"+u]=this["surface"+u]||g(this.mainBkg,{l:-(5+u*5)}),this["surfacePeer"+u]=this["surfacePeer"+u]||g(this.mainBkg,{l:-(8+u*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.sectionBkgColor=E(this.contrast,30),this.sectionBkgColor2=E(this.contrast,30),this.taskBorderColor=D(this.contrast,10),this.taskBkgColor=this.contrast,this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor=this.text,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.gridColor=E(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=D(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.transitionColor=this.transitionColor||"#000",this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f4f4f4",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.stateBorder=this.stateBorder||"#000",this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#222",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=g(this.primaryColor,{h:64}),this.fillType3=g(this.secondaryColor,{h:64}),this.fillType4=g(this.primaryColor,{h:-64}),this.fillType5=g(this.secondaryColor,{h:-64}),this.fillType6=g(this.primaryColor,{h:128}),this.fillType7=g(this.secondaryColor,{h:128});for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["pie"+u]=this["cScale"+u];this.pie12=this.pie0,this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||g(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||g(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||g(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||g(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||g(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||g(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ei(this.quadrant1Fill)?E(this.quadrant1Fill):D(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:((r=this.xyChart)==null?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((n=this.xyChart)==null?void 0:n.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((s=this.xyChart)==null?void 0:s.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((o=this.xyChart)==null?void 0:o.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((a=this.xyChart)==null?void 0:a.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((h=this.xyChart)==null?void 0:h.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((d=this.xyChart)==null?void 0:d.plotColorPalette)||"#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=D(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||g(this.primaryColor,{h:-30}),this.git4=this.pie5||g(this.primaryColor,{h:-60}),this.git5=this.pie6||g(this.primaryColor,{h:-90}),this.git6=this.pie7||g(this.primaryColor,{h:60}),this.git7=this.pie8||g(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||v(this.git0),this.gitInv1=this.gitInv1||v(this.git1),this.gitInv2=this.gitInv2||v(this.git2),this.gitInv3=this.gitInv3||v(this.git3),this.gitInv4=this.gitInv4||v(this.git4),this.gitInv5=this.gitInv5||v(this.git5),this.gitInv6=this.gitInv6||v(this.git6),this.gitInv7=this.gitInv7||v(this.git7),this.branchLabelColor=this.branchLabelColor||this.labelTextColor,this.gitBranchLabel0=this.branchLabelColor,this.gitBranchLabel1="white",this.gitBranchLabel2=this.branchLabelColor,this.gitBranchLabel3="white",this.gitBranchLabel4=this.branchLabelColor,this.gitBranchLabel5=this.branchLabelColor,this.gitBranchLabel6=this.branchLabelColor,this.gitBranchLabel7=this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Jr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Qr}calculate(e){if(typeof e!="object"){this.updateColors();return}const i=Object.keys(e);i.forEach(r=>{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}}const Ly=t=>{const e=new Ey;return e.calculate(t),e},ie={base:{getThemeVariables:vy},dark:{getThemeVariables:ky},default:{getThemeVariables:Jl},forest:{getThemeVariables:By},neutral:{getThemeVariables:Ly}},Jt={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"]},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:""},block:{useMaxWidth:!0,padding:8},theme:"default",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","maxEdges"],legacyMathML:!1,deterministicIds:!1,fontSize:16},Ql={...Jt,deterministicIDSeed:void 0,themeCSS:void 0,themeVariables:ie.default.getThemeVariables(),sequence:{...Jt.sequence,messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},noteFont:function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},actorFont:function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}}},gantt:{...Jt.gantt,tickInterval:void 0,useWidth:void 0},c4:{...Jt.c4,useWidth:void 0,personFont:function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},external_personFont:function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},systemFont:function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},external_systemFont:function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},system_dbFont:function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},external_system_dbFont:function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},system_queueFont:function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},external_system_queueFont:function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},containerFont:function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},external_containerFont:function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},container_dbFont:function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},external_container_dbFont:function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},container_queueFont:function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},external_container_queueFont:function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},componentFont:function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},external_componentFont:function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},component_dbFont:function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},external_component_dbFont:function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},component_queueFont:function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},external_component_queueFont:function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},boundaryFont:function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}}},pie:{...Jt.pie,useWidth:984},xyChart:{...Jt.xyChart,useWidth:void 0},requirement:{...Jt.requirement,useWidth:void 0},gitGraph:{...Jt.gitGraph,useMaxWidth:!1},sankey:{...Jt.sankey,useMaxWidth:!1}},tc=(t,e="")=>Object.keys(t).reduce((i,r)=>Array.isArray(t[r])?i:typeof t[r]=="object"&&t[r]!==null?[...i,e+r,...tc(t[r],"")]:[...i,e+r],[]),Fy=new Set(tc(Ql,"")),ec=Ql,kr=t=>{if(M.debug("sanitizeDirective called with",t),!(typeof t!="object"||t==null)){if(Array.isArray(t)){t.forEach(e=>kr(e));return}for(const e of Object.keys(t)){if(M.debug("Checking key",e),e.startsWith("__")||e.includes("proto")||e.includes("constr")||!Fy.has(e)||t[e]==null){M.debug("sanitize deleting key: ",e),delete t[e];continue}if(typeof t[e]=="object"){M.debug("sanitizing object",e),kr(t[e]);continue}const i=["themeCSS","fontFamily","altFontFamily"];for(const r of i)e.includes(r)&&(M.debug("sanitizing css option",e),t[e]=Oy(t[e]))}if(t.themeVariables)for(const e of Object.keys(t.themeVariables)){const i=t.themeVariables[e];i!=null&&i.match&&!i.match(/^[\d "#%(),.;A-Za-z]+$/)&&(t.themeVariables[e]="")}M.debug("After sanitization",t)}},Oy=t=>{let e=0,i=0;for(const r of t){if(e<i)return"{ /* ERROR: Unbalanced CSS */ }";r==="{"?e++:r==="}"&&i++}return e!==i?"{ /* ERROR: Unbalanced CSS */ }":t},ic=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,wi=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,Iy=/\s*%%.*\n/gm;class rc extends Error{constructor(e){super(e),this.name="UnknownDiagramError"}}const Ke={},tn=function(t,e){t=t.replace(ic,"").replace(wi,"").replace(Iy,`
18
- `);for(const[i,{detector:r}]of Object.entries(Ke))if(r(t,e))return i;throw new rc(`No diagram type detected matching given configuration for text: ${t}`)},nc=(...t)=>{for(const{id:e,detector:i,loader:r}of t)oc(e,i,r)},oc=(t,e,i)=>{Ke[t]?M.error(`Detector with key ${t} already exists`):Ke[t]={detector:e,loader:i},M.debug(`Detector with key ${t} added${i?" with loader":""}`)},My=t=>Ke[t].loader,io=(t,e,{depth:i=2,clobber:r=!1}={})=>{const n={depth:i,clobber:r};return Array.isArray(e)&&!Array.isArray(t)?(e.forEach(s=>io(t,s,n)),t):Array.isArray(e)&&Array.isArray(t)?(e.forEach(s=>{t.includes(s)||t.push(s)}),t):t===void 0||i<=0?t!=null&&typeof t=="object"&&typeof e=="object"?Object.assign(t,e):e:(e!==void 0&&typeof t=="object"&&typeof e=="object"&&Object.keys(e).forEach(s=>{typeof e[s]=="object"&&(t[s]===void 0||typeof t[s]=="object")?(t[s]===void 0&&(t[s]=Array.isArray(e[s])?[]:{}),t[s]=io(t[s],e[s],{depth:i-1,clobber:r})):(r||typeof t[s]!="object"&&typeof e[s]!="object")&&(t[s]=e[s])}),t)},st=io,sc="​",$y={curveBasis:el,curveBasisClosed:Tp,curveBasisOpen:vp,curveBumpX:xp,curveBumpY:bp,curveBundle:Sp,curveCardinalClosed:wp,curveCardinalOpen:Ap,curveCardinal:kp,curveCatmullRomClosed:Ep,curveCatmullRomOpen:Lp,curveCatmullRom:Bp,curveLinear:Qa,curveLinearClosed:Fp,curveMonotoneX:Op,curveMonotoneY:Ip,curveNatural:Mp,curveStep:$p,curveStepAfter:Np,curveStepBefore:Dp},Dy=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,Ny=function(t,e){const i=ac(t,/(?:init\b)|(?:initialize\b)/);let r={};if(Array.isArray(i)){const o=i.map(a=>a.args);kr(o),r=st(r,[...o])}else r=i.args;if(!r)return;let n=tn(t,e);const s="config";return r[s]!==void 0&&(n==="flowchart-v2"&&(n="flowchart"),r[n]=r[s],delete r[s]),r},ac=function(t,e=null){try{const i=new RegExp(`[%]{2}(?![{]${Dy.source})(?=[}][%]{2}).*
19
- `,"ig");t=t.trim().replace(i,"").replace(/'/gm,'"'),M.debug(`Detecting diagram directive${e!==null?" type:"+e:""} based on the text:${t}`);let r;const n=[];for(;(r=wi.exec(t))!==null;)if(r.index===wi.lastIndex&&wi.lastIndex++,r&&!e||e&&r[1]&&r[1].match(e)||e&&r[2]&&r[2].match(e)){const s=r[1]?r[1]:r[2],o=r[3]?r[3].trim():r[4]?JSON.parse(r[4].trim()):null;n.push({type:s,args:o})}return n.length===0?{type:t,args:null}:n.length===1?n[0]:n}catch(i){return M.error(`ERROR: ${i.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`),{type:void 0,args:null}}},Py=function(t){return t.replace(wi,"")},Ry=function(t,e){for(const[i,r]of e.entries())if(r.match(t))return i;return-1};function lc(t,e){if(!t)return e;const i=`curve${t.charAt(0).toUpperCase()+t.slice(1)}`;return $y[i]??e}function qy(t,e){const i=t.trim();if(i)return e.securityLevel!=="loose"?qt.distExports.sanitizeUrl(i):i}const zy=(t,...e)=>{const i=t.split("."),r=i.length-1,n=i[r];let s=window;for(let o=0;o<r;o++)if(s=s[i[o]],!s){M.error(`Function name: ${t} not found in window`);return}s[n](...e)};function cc(t,e){return!t||!e?0:Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Wy(t){let e,i=0;t.forEach(n=>{i+=cc(n,e),e=n});const r=i/2;return wo(t,r)}function Hy(t){return t.length===1?t[0]:Wy(t)}const ra=(t,e=2)=>{const i=Math.pow(10,e);return Math.round(t*i)/i},wo=(t,e)=>{let i,r=e;for(const n of t){if(i){const s=cc(n,i);if(s<r)r-=s;else{const o=r/s;if(o<=0)return i;if(o>=1)return{x:n.x,y:n.y};if(o>0&&o<1)return{x:ra((1-o)*i.x+o*n.x,5),y:ra((1-o)*i.y+o*n.y,5)}}}i=n}throw new Error("Could not find a suitable point for the given distance")},Yy=(t,e,i)=>{M.info(`our points ${JSON.stringify(e)}`),e[0]!==i&&(e=e.reverse());const n=wo(e,25),s=t?10:5,o=Math.atan2(e[0].y-n.y,e[0].x-n.x),a={x:0,y:0};return a.x=Math.sin(o)*s+(e[0].x+n.x)/2,a.y=-Math.cos(o)*s+(e[0].y+n.y)/2,a};function jy(t,e,i){const r=structuredClone(i);M.info("our points",r),e!=="start_left"&&e!=="start_right"&&r.reverse();const n=25+t,s=wo(r,n),o=10+t*.5,a=Math.atan2(r[0].y-s.y,r[0].x-s.x),l={x:0,y:0};return e==="start_left"?(l.x=Math.sin(a+Math.PI)*o+(r[0].x+s.x)/2,l.y=-Math.cos(a+Math.PI)*o+(r[0].y+s.y)/2):e==="end_right"?(l.x=Math.sin(a-Math.PI)*o+(r[0].x+s.x)/2-5,l.y=-Math.cos(a-Math.PI)*o+(r[0].y+s.y)/2-5):e==="end_left"?(l.x=Math.sin(a)*o+(r[0].x+s.x)/2-5,l.y=-Math.cos(a)*o+(r[0].y+s.y)/2-5):(l.x=Math.sin(a)*o+(r[0].x+s.x)/2,l.y=-Math.cos(a)*o+(r[0].y+s.y)/2),l}function hc(t){let e="",i="";for(const r of t)r!==void 0&&(r.startsWith("color:")||r.startsWith("text-align:")?i=i+r+";":e=e+r+";");return{style:e,labelStyle:i}}let na=0;const uc=()=>(na++,"id-"+Math.random().toString(36).substr(2,12)+"-"+na);function Uy(t){let e="";const i="0123456789abcdef",r=i.length;for(let n=0;n<t;n++)e+=i.charAt(Math.floor(Math.random()*r));return e}const dc=t=>Uy(t.length),Xy=function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},Gy=function(t,e){const i=e.text.replace(Zr.lineBreakRegex," "),[,r]=en(e.fontSize),n=t.append("text");n.attr("x",e.x),n.attr("y",e.y),n.style("text-anchor",e.anchor),n.style("font-family",e.fontFamily),n.style("font-size",r),n.style("font-weight",e.fontWeight),n.attr("fill",e.fill),e.class!==void 0&&n.attr("class",e.class);const s=n.append("tspan");return s.attr("x",e.x+e.textMargin*2),s.attr("fill",e.fill),s.text(i),n},fc=qi((t,e,i)=>{if(!t||(i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},i),Zr.lineBreakRegex.test(t)))return t;const r=t.split(" "),n=[];let s="";return r.forEach((o,a)=>{const l=Di(`${o} `,i),c=Di(s,i);if(l>e){const{hyphenatedStrings:u,remainingWord:f}=Vy(o,e,"-",i);n.push(s,...u),s=f}else c+l>=e?(n.push(s),s=o):s=[s,o].filter(Boolean).join(" ");a+1===r.length&&n.push(s)}),n.filter(o=>o!=="").join(i.joinWith)},(t,e,i)=>`${t}${e}${i.fontSize}${i.fontWeight}${i.fontFamily}${i.joinWith}`),Vy=qi((t,e,i="-",r)=>{r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},r);const n=[...t],s=[];let o="";return n.forEach((a,l)=>{const c=`${o}${a}`;if(Di(c,r)>=e){const d=l+1,u=n.length===d,f=`${c}${i}`;s.push(u?c:f),o=""}else o=c}),{hyphenatedStrings:s,remainingWord:o}},(t,e,i="-",r)=>`${t}${e}${i}${r.fontSize}${r.fontWeight}${r.fontFamily}`);function pc(t,e){return Ao(t,e).height}function Di(t,e){return Ao(t,e).width}const Ao=qi((t,e)=>{const{fontSize:i=12,fontFamily:r="Arial",fontWeight:n=400}=e;if(!t)return{width:0,height:0};const[,s]=en(i),o=["sans-serif",r],a=t.split(Zr.lineBreakRegex),l=[],c=bt("body");if(!c.remove)return{width:0,height:0,lineHeight:0};const h=c.append("svg");for(const u of o){let f=0;const m={width:0,height:0,lineHeight:0};for(const y of a){const _=Xy();_.text=y||sc;const L=Gy(h,_).style("font-size",s).style("font-weight",n).style("font-family",u),b=(L._groups||L)[0][0].getBBox();if(b.width===0&&b.height===0)throw new Error("svg element not in render tree");m.width=Math.round(Math.max(m.width,b.width)),f=Math.round(b.height),m.height+=f,m.lineHeight=Math.round(Math.max(m.lineHeight,f))}l.push(m)}h.remove();const d=isNaN(l[1].height)||isNaN(l[1].width)||isNaN(l[1].lineHeight)||l[0].height>l[1].height&&l[0].width>l[1].width&&l[0].lineHeight>l[1].lineHeight?0:1;return l[d]},(t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`);class Ky{constructor(e=!1,i){this.count=0,this.count=i?i.length:0,this.next=e?()=>this.count++:()=>Date.now()}}let er;const Zy=function(t){return er=er||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),er.innerHTML=t,unescape(er.textContent)};function gc(t){return"str"in t}const Jy=(t,e,i,r)=>{var n;if(!r)return;const s=(n=t.node())==null?void 0:n.getBBox();s&&t.append("text").text(r).attr("x",s.x+s.width/2).attr("y",-i).attr("class",e)},en=t=>{if(typeof t=="number")return[t,t+"px"];const e=parseInt(t??"",10);return Number.isNaN(e)?[void 0,void 0]:t===String(e)?[e,t+"px"]:[e,t]};function Bo(t,e){return L0({},t,e)}const We={assignWithDepth:st,wrapLabel:fc,calculateTextHeight:pc,calculateTextWidth:Di,calculateTextDimensions:Ao,cleanAndMerge:Bo,detectInit:Ny,detectDirective:ac,isSubstringInArray:Ry,interpolateToCurve:lc,calcLabelPosition:Hy,calcCardinalityPosition:Yy,calcTerminalLabelPosition:jy,formatUrl:qy,getStylesFromArray:hc,generateId:uc,random:dc,runFunc:zy,entityDecode:Zy,insertTitle:Jy,parseFontSize:en,InitIDGenerator:Ky},Qy=function(t){let e=t;return e=e.replace(/style.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),e=e.replace(/classDef.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),e=e.replace(/#\w+;/g,function(i){const r=i.substring(1,i.length-1);return/^\+?\d+$/.test(r)?"fl°°"+r+"¶ß":"fl°"+r+"¶ß"}),e},mc=function(t){return t.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},oa="10.9.4",Ze=Object.freeze(ec);let _t=st({},Ze),yc,Je=[],Ai=st({},Ze);const rn=(t,e)=>{let i=st({},t),r={};for(const n of e)xc(n),r=st(r,n);if(i=st(i,r),r.theme&&r.theme in ie){const n=st({},yc),s=st(n.themeVariables||{},r.themeVariables);i.theme&&i.theme in ie&&(i.themeVariables=ie[i.theme].getThemeVariables(s))}return Ai=i,bc(Ai),Ai},t_=t=>(_t=st({},Ze),_t=st(_t,t),t.theme&&ie[t.theme]&&(_t.themeVariables=ie[t.theme].getThemeVariables(t.themeVariables)),rn(_t,Je),_t),e_=t=>{yc=st({},t)},i_=t=>(_t=st(_t,t),rn(_t,Je),_t),_c=()=>st({},_t),Cc=t=>(bc(t),st(Ai,t),$t()),$t=()=>st({},Ai),xc=t=>{t&&(["secure",..._t.secure??[]].forEach(e=>{Object.hasOwn(t,e)&&(M.debug(`Denied attempt to modify a secure key ${e}`,t[e]),delete t[e])}),Object.keys(t).forEach(e=>{e.startsWith("__")&&delete t[e]}),Object.keys(t).forEach(e=>{typeof t[e]=="string"&&(t[e].includes("<")||t[e].includes(">")||t[e].includes("url(data:"))&&delete t[e],typeof t[e]=="object"&&xc(t[e])}))},r_=t=>{kr(t),t.fontFamily&&(!t.themeVariables||!t.themeVariables.fontFamily)&&(t.themeVariables={fontFamily:t.fontFamily}),Je.push(t),rn(_t,Je)},wr=(t=_t)=>{Je=[],rn(t,Je)},n_={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},sa={},o_=t=>{sa[t]||(M.warn(n_[t]),sa[t]=!0)},bc=t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&o_("LAZY_LOAD_DEPRECATED")},Tc="c4",s_=t=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t),a_=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.jioCPqo7.js"));return{id:Tc,diagram:t}},l_={id:Tc,detector:s_,loader:a_},c_=l_,vc="flowchart",h_=(t,e)=>{var i,r;return((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="dagre-wrapper"||((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="elk"?!1:/^\s*graph/.test(t)},u_=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.jXB4oB52.js"));return{id:vc,diagram:t}},d_={id:vc,detector:h_,loader:u_},f_=d_,Sc="flowchart-v2",p_=(t,e)=>{var i,r,n;return((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="dagre-d3"||((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="elk"?!1:/^\s*graph/.test(t)&&((n=e==null?void 0:e.flowchart)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(t)},g_=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.BLERm4JI.js"));return{id:Sc,diagram:t}},m_={id:Sc,detector:p_,loader:g_},y_=m_,kc="er",__=t=>/^\s*erDiagram/.test(t),C_=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.BOSha48t.js"));return{id:kc,diagram:t}},x_={id:kc,detector:__,loader:C_},b_=x_,wc="gitGraph",T_=t=>/^\s*gitGraph/.test(t),v_=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.BXLHLHn_.js"));return{id:wc,diagram:t}},S_={id:wc,detector:T_,loader:v_},k_=S_,Ac="gantt",w_=t=>/^\s*gantt/.test(t),A_=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.BxSS9Pvh.js"));return{id:Ac,diagram:t}},B_={id:Ac,detector:w_,loader:A_},E_=B_,Bc="info",L_=t=>/^\s*info/.test(t),F_=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.CyU10-QV.js"));return{id:Bc,diagram:t}},O_={id:Bc,detector:L_,loader:F_},Ec="pie",I_=t=>/^\s*pie/.test(t),M_=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.AnDKLrww.js"));return{id:Ec,diagram:t}},$_={id:Ec,detector:I_,loader:M_},Lc="quadrantChart",D_=t=>/^\s*quadrantChart/.test(t),N_=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.7LP4sl4i.js"));return{id:Lc,diagram:t}},P_={id:Lc,detector:D_,loader:N_},R_=P_,Fc="xychart",q_=t=>/^\s*xychart-beta/.test(t),z_=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.p9WHA7Q4.js"));return{id:Fc,diagram:t}},W_={id:Fc,detector:q_,loader:z_},H_=W_,Oc="requirement",Y_=t=>/^\s*requirement(Diagram)?/.test(t),j_=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.ByQMFKH-.js"));return{id:Oc,diagram:t}},U_={id:Oc,detector:Y_,loader:j_},X_=U_,Ic="sequence",G_=t=>/^\s*sequenceDiagram/.test(t),V_=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.CRVR4YuW.js"));return{id:Ic,diagram:t}},K_={id:Ic,detector:G_,loader:V_},Z_=K_,Mc="class",J_=(t,e)=>{var i;return((i=e==null?void 0:e.class)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(t)},Q_=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.DhvaBoMA.js"));return{id:Mc,diagram:t}},tC={id:Mc,detector:J_,loader:Q_},eC=tC,$c="classDiagram",iC=(t,e)=>{var i;return/^\s*classDiagram/.test(t)&&((i=e==null?void 0:e.class)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(t)},rC=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.Daj7r1fx.js"));return{id:$c,diagram:t}},nC={id:$c,detector:iC,loader:rC},oC=nC,Dc="state",sC=(t,e)=>{var i;return((i=e==null?void 0:e.state)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(t)},aC=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.v-I87Jjd.js"));return{id:Dc,diagram:t}},lC={id:Dc,detector:sC,loader:aC},cC=lC,Nc="stateDiagram",hC=(t,e)=>{var i;return!!(/^\s*stateDiagram-v2/.test(t)||/^\s*stateDiagram/.test(t)&&((i=e==null?void 0:e.state)==null?void 0:i.defaultRenderer)==="dagre-wrapper")},uC=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.E_17qoVF.js"));return{id:Nc,diagram:t}},dC={id:Nc,detector:hC,loader:uC},fC=dC,Pc="journey",pC=t=>/^\s*journey/.test(t),gC=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.Dsgl1vaz.js"));return{id:Pc,diagram:t}},mC={id:Pc,detector:pC,loader:gC},yC=mC,_C=function(t,e){for(let i of e)t.attr(i[0],i[1])},CC=function(t,e,i){let r=new Map;return i?(r.set("width","100%"),r.set("style",`max-width: ${e}px;`)):(r.set("height",t),r.set("width",e)),r},Eo=function(t,e,i,r){const n=CC(e,i,r);_C(t,n)},Rc=function(t,e,i,r){const n=e.node().getBBox(),s=n.width,o=n.height;M.info(`SVG bounds: ${s}x${o}`,n);let a=0,l=0;M.info(`Graph bounds: ${a}x${l}`,t),a=s+i*2,l=o+i*2,M.info(`Calculated bounds: ${a}x${l}`),Eo(e,l,a,r);const c=`${n.x-i} ${n.y-i} ${n.width+2*i} ${n.height+2*i}`;e.attr("viewBox",c)},dr={},xC=(t,e,i)=>{let r="";return t in dr&&dr[t]?r=dr[t](i):M.warn(`No theme found for ${t}`),` & {
17
+ `:`<div>${r}</div>`).join("").replace(eo,(r,n)=>i.renderToString(n,{throwOnError:!0,displayMode:!0,output:ia()?"mathml":"htmlAndMathml"}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,""))},Zl=async(t,e)=>Se(await by(t,e),e),Zr={getRows:ay,sanitizeText:Se,sanitizeTextOrArray:hy,hasBreaks:uy,splitBreaks:dy,lineBreakRegex:si,removeScript:Vl,getUrl:py,evaluate:wo,getMax:gy,getMin:my},pt=(t,e)=>e?g(t,{s:-40,l:10}):g(t,{s:-40,l:-10}),Jr="#ffffff",Qr="#f2f2f2";let Ty=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){var e,i,r,n,o,s,a,l,c,h,d;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||g(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||g(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||pt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||pt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||pt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||pt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||v(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||v(this.tertiaryColor),this.lineColor=this.lineColor||v(this.background),this.arrowheadColor=this.arrowheadColor||v(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?D(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||"grey",this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||D(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||v(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||E(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||g(this.primaryColor,{h:30}),this.cScale4=this.cScale4||g(this.primaryColor,{h:60}),this.cScale5=this.cScale5||g(this.primaryColor,{h:90}),this.cScale6=this.cScale6||g(this.primaryColor,{h:120}),this.cScale7=this.cScale7||g(this.primaryColor,{h:150}),this.cScale8=this.cScale8||g(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||g(this.primaryColor,{h:270}),this.cScale10=this.cScale10||g(this.primaryColor,{h:300}),this.cScale11=this.cScale11||g(this.primaryColor,{h:330}),this.darkMode)for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScale"+f]=D(this["cScale"+f],75);else for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScale"+f]=D(this["cScale"+f],25);for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScaleInv"+f]=this["cScaleInv"+f]||v(this["cScale"+f]);for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this.darkMode?this["cScalePeer"+f]=this["cScalePeer"+f]||E(this["cScale"+f],10):this["cScalePeer"+f]=this["cScalePeer"+f]||D(this["cScale"+f],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let f=0;f<this.THEME_COLOR_LIMIT;f++)this["cScaleLabel"+f]=this["cScaleLabel"+f]||this.scaleLabelColor;const u=this.darkMode?-4:-1;for(let f=0;f<5;f++)this["surface"+f]=this["surface"+f]||g(this.mainBkg,{h:180,s:-15,l:u*(5+f*3)}),this["surfacePeer"+f]=this["surfacePeer"+f]||g(this.mainBkg,{h:180,s:-15,l:u*(8+f*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||g(this.primaryColor,{h:64}),this.fillType3=this.fillType3||g(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||g(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||g(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||g(this.primaryColor,{h:128}),this.fillType7=this.fillType7||g(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||g(this.primaryColor,{l:-10}),this.pie5=this.pie5||g(this.secondaryColor,{l:-10}),this.pie6=this.pie6||g(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||g(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||g(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||g(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||g(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||g(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||g(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||g(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||g(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||g(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||g(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||g(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||g(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ii(this.quadrant1Fill)?E(this.quadrant1Fill):D(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:((r=this.xyChart)==null?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((n=this.xyChart)==null?void 0:n.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((o=this.xyChart)==null?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((s=this.xyChart)==null?void 0:s.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((a=this.xyChart)==null?void 0:a.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((h=this.xyChart)==null?void 0:h.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((d=this.xyChart)==null?void 0:d.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?D(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||g(this.primaryColor,{h:-30}),this.git4=this.git4||g(this.primaryColor,{h:-60}),this.git5=this.git5||g(this.primaryColor,{h:-90}),this.git6=this.git6||g(this.primaryColor,{h:60}),this.git7=this.git7||g(this.primaryColor,{h:120}),this.darkMode?(this.git0=E(this.git0,25),this.git1=E(this.git1,25),this.git2=E(this.git2,25),this.git3=E(this.git3,25),this.git4=E(this.git4,25),this.git5=E(this.git5,25),this.git6=E(this.git6,25),this.git7=E(this.git7,25)):(this.git0=D(this.git0,25),this.git1=D(this.git1,25),this.git2=D(this.git2,25),this.git3=D(this.git3,25),this.git4=D(this.git4,25),this.git5=D(this.git5,25),this.git6=D(this.git6,25),this.git7=D(this.git7,25)),this.gitInv0=this.gitInv0||v(this.git0),this.gitInv1=this.gitInv1||v(this.git1),this.gitInv2=this.gitInv2||v(this.git2),this.gitInv3=this.gitInv3||v(this.git3),this.gitInv4=this.gitInv4||v(this.git4),this.gitInv5=this.gitInv5||v(this.git5),this.gitInv6=this.gitInv6||v(this.git6),this.gitInv7=this.gitInv7||v(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Jr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Qr}calculate(e){if(typeof e!="object"){this.updateColors();return}const i=Object.keys(e);i.forEach(r=>{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const vy=t=>{const e=new Ty;return e.calculate(t),e};let Sy=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=E(this.primaryColor,16),this.tertiaryColor=g(this.primaryColor,{h:-160}),this.primaryBorderColor=v(this.background),this.secondaryBorderColor=pt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=pt(this.tertiaryColor,this.darkMode),this.primaryTextColor=v(this.primaryColor),this.secondaryTextColor=v(this.secondaryColor),this.tertiaryTextColor=v(this.tertiaryColor),this.lineColor=v(this.background),this.textColor=v(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=E(v("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=ze(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=D("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=D(this.sectionBkgColor,10),this.taskBorderColor=ze(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=ze(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){var e,i,r,n,o,s,a,l,c,h,d;this.secondBkg=E(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=E(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.mainContrastColor,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=E(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=g(this.primaryColor,{h:64}),this.fillType3=g(this.secondaryColor,{h:64}),this.fillType4=g(this.primaryColor,{h:-64}),this.fillType5=g(this.secondaryColor,{h:-64}),this.fillType6=g(this.primaryColor,{h:128}),this.fillType7=g(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||g(this.primaryColor,{h:30}),this.cScale4=this.cScale4||g(this.primaryColor,{h:60}),this.cScale5=this.cScale5||g(this.primaryColor,{h:90}),this.cScale6=this.cScale6||g(this.primaryColor,{h:120}),this.cScale7=this.cScale7||g(this.primaryColor,{h:150}),this.cScale8=this.cScale8||g(this.primaryColor,{h:210}),this.cScale9=this.cScale9||g(this.primaryColor,{h:270}),this.cScale10=this.cScale10||g(this.primaryColor,{h:300}),this.cScale11=this.cScale11||g(this.primaryColor,{h:330});for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["cScaleInv"+u]=this["cScaleInv"+u]||v(this["cScale"+u]);for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["cScalePeer"+u]=this["cScalePeer"+u]||E(this["cScale"+u],10);for(let u=0;u<5;u++)this["surface"+u]=this["surface"+u]||g(this.mainBkg,{h:30,s:-30,l:-(-10+u*4)}),this["surfacePeer"+u]=this["surfacePeer"+u]||g(this.mainBkg,{h:30,s:-30,l:-(-7+u*4)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["cScaleLabel"+u]=this["cScaleLabel"+u]||this.scaleLabelColor;for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["pie"+u]=this["cScale"+u];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||g(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||g(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||g(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||g(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||g(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||g(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ii(this.quadrant1Fill)?E(this.quadrant1Fill):D(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:((r=this.xyChart)==null?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((n=this.xyChart)==null?void 0:n.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((o=this.xyChart)==null?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((s=this.xyChart)==null?void 0:s.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((a=this.xyChart)==null?void 0:a.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((h=this.xyChart)==null?void 0:h.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((d=this.xyChart)==null?void 0:d.plotColorPalette)||"#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"},this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?D(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=E(this.secondaryColor,20),this.git1=E(this.pie2||this.secondaryColor,20),this.git2=E(this.pie3||this.tertiaryColor,20),this.git3=E(this.pie4||g(this.primaryColor,{h:-30}),20),this.git4=E(this.pie5||g(this.primaryColor,{h:-60}),20),this.git5=E(this.pie6||g(this.primaryColor,{h:-90}),10),this.git6=E(this.pie7||g(this.primaryColor,{h:60}),10),this.git7=E(this.pie8||g(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||v(this.git0),this.gitInv1=this.gitInv1||v(this.git1),this.gitInv2=this.gitInv2||v(this.git2),this.gitInv3=this.gitInv3||v(this.git3),this.gitInv4=this.gitInv4||v(this.git4),this.gitInv5=this.gitInv5||v(this.git5),this.gitInv6=this.gitInv6||v(this.git6),this.gitInv7=this.gitInv7||v(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||v(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||v(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||E(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||E(this.background,2)}calculate(e){if(typeof e!="object"){this.updateColors();return}const i=Object.keys(e);i.forEach(r=>{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const ky=t=>{const e=new Sy;return e.calculate(t),e};let wy=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=g(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=g(this.primaryColor,{h:-160}),this.primaryBorderColor=pt(this.primaryColor,this.darkMode),this.secondaryBorderColor=pt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=pt(this.tertiaryColor,this.darkMode),this.primaryTextColor=v(this.primaryColor),this.secondaryTextColor=v(this.secondaryColor),this.tertiaryTextColor=v(this.tertiaryColor),this.lineColor=v(this.background),this.textColor=v(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#e8e8e8",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.sectionBkgColor=ze(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){var e,i,r,n,o,s,a,l,c,h,d;this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||g(this.primaryColor,{h:30}),this.cScale4=this.cScale4||g(this.primaryColor,{h:60}),this.cScale5=this.cScale5||g(this.primaryColor,{h:90}),this.cScale6=this.cScale6||g(this.primaryColor,{h:120}),this.cScale7=this.cScale7||g(this.primaryColor,{h:150}),this.cScale8=this.cScale8||g(this.primaryColor,{h:210}),this.cScale9=this.cScale9||g(this.primaryColor,{h:270}),this.cScale10=this.cScale10||g(this.primaryColor,{h:300}),this.cScale11=this.cScale11||g(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||D(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||D(this.tertiaryColor,40);for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["cScale"+u]=D(this["cScale"+u],10),this["cScalePeer"+u]=this["cScalePeer"+u]||D(this["cScale"+u],25);for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["cScaleInv"+u]=this["cScaleInv"+u]||g(this["cScale"+u],{h:180});for(let u=0;u<5;u++)this["surface"+u]=this["surface"+u]||g(this.mainBkg,{h:30,l:-(5+u*5)}),this["surfacePeer"+u]=this["surfacePeer"+u]||g(this.mainBkg,{h:30,l:-(7+u*5)});if(this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,this.labelTextColor!=="calculated"){this.cScaleLabel0=this.cScaleLabel0||v(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||v(this.labelTextColor);for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["cScaleLabel"+u]=this["cScaleLabel"+u]||this.labelTextColor}this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.edgeLabelBackground=this.labelBackground,this.actorBorder=E(this.border1,23),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=g(this.primaryColor,{h:64}),this.fillType3=g(this.secondaryColor,{h:64}),this.fillType4=g(this.primaryColor,{h:-64}),this.fillType5=g(this.secondaryColor,{h:-64}),this.fillType6=g(this.primaryColor,{h:128}),this.fillType7=g(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||g(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||g(this.primaryColor,{l:-10}),this.pie5=this.pie5||g(this.secondaryColor,{l:-30}),this.pie6=this.pie6||g(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||g(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||g(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||g(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||g(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||g(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||g(this.primaryColor,{h:120,l:-30}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||g(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||g(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||g(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||g(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||g(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||g(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ii(this.quadrant1Fill)?E(this.quadrant1Fill):D(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:((r=this.xyChart)==null?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((n=this.xyChart)==null?void 0:n.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((o=this.xyChart)==null?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((s=this.xyChart)==null?void 0:s.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((a=this.xyChart)==null?void 0:a.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((h=this.xyChart)==null?void 0:h.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((d=this.xyChart)==null?void 0:d.plotColorPalette)||"#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.labelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||g(this.primaryColor,{h:-30}),this.git4=this.git4||g(this.primaryColor,{h:-60}),this.git5=this.git5||g(this.primaryColor,{h:-90}),this.git6=this.git6||g(this.primaryColor,{h:60}),this.git7=this.git7||g(this.primaryColor,{h:120}),this.darkMode?(this.git0=E(this.git0,25),this.git1=E(this.git1,25),this.git2=E(this.git2,25),this.git3=E(this.git3,25),this.git4=E(this.git4,25),this.git5=E(this.git5,25),this.git6=E(this.git6,25),this.git7=E(this.git7,25)):(this.git0=D(this.git0,25),this.git1=D(this.git1,25),this.git2=D(this.git2,25),this.git3=D(this.git3,25),this.git4=D(this.git4,25),this.git5=D(this.git5,25),this.git6=D(this.git6,25),this.git7=D(this.git7,25)),this.gitInv0=this.gitInv0||D(v(this.git0),25),this.gitInv1=this.gitInv1||v(this.git1),this.gitInv2=this.gitInv2||v(this.git2),this.gitInv3=this.gitInv3||v(this.git3),this.gitInv4=this.gitInv4||v(this.git4),this.gitInv5=this.gitInv5||v(this.git5),this.gitInv6=this.gitInv6||v(this.git6),this.gitInv7=this.gitInv7||v(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||v(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||v(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Jr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Qr}calculate(e){if(typeof e!="object"){this.updateColors();return}const i=Object.keys(e);i.forEach(r=>{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const Jl=t=>{const e=new wy;return e.calculate(t),e};let Ay=class{constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=E("#cde498",10),this.primaryBorderColor=pt(this.primaryColor,this.darkMode),this.secondaryBorderColor=pt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=pt(this.tertiaryColor,this.darkMode),this.primaryTextColor=v(this.primaryColor),this.secondaryTextColor=v(this.secondaryColor),this.tertiaryTextColor=v(this.primaryColor),this.lineColor=v(this.background),this.textColor=v(this.background),this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="grey",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var e,i,r,n,o,s,a,l,c,h,d;this.actorBorder=D(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||g(this.primaryColor,{h:30}),this.cScale4=this.cScale4||g(this.primaryColor,{h:60}),this.cScale5=this.cScale5||g(this.primaryColor,{h:90}),this.cScale6=this.cScale6||g(this.primaryColor,{h:120}),this.cScale7=this.cScale7||g(this.primaryColor,{h:150}),this.cScale8=this.cScale8||g(this.primaryColor,{h:210}),this.cScale9=this.cScale9||g(this.primaryColor,{h:270}),this.cScale10=this.cScale10||g(this.primaryColor,{h:300}),this.cScale11=this.cScale11||g(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||D(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||D(this.tertiaryColor,40);for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["cScale"+u]=D(this["cScale"+u],10),this["cScalePeer"+u]=this["cScalePeer"+u]||D(this["cScale"+u],25);for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["cScaleInv"+u]=this["cScaleInv"+u]||g(this["cScale"+u],{h:180});this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["cScaleLabel"+u]=this["cScaleLabel"+u]||this.scaleLabelColor;for(let u=0;u<5;u++)this["surface"+u]=this["surface"+u]||g(this.mainBkg,{h:30,s:-30,l:-(5+u*5)}),this["surfacePeer"+u]=this["surfacePeer"+u]||g(this.mainBkg,{h:30,s:-30,l:-(8+u*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=g(this.primaryColor,{h:64}),this.fillType3=g(this.secondaryColor,{h:64}),this.fillType4=g(this.primaryColor,{h:-64}),this.fillType5=g(this.secondaryColor,{h:-64}),this.fillType6=g(this.primaryColor,{h:128}),this.fillType7=g(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||g(this.primaryColor,{l:-30}),this.pie5=this.pie5||g(this.secondaryColor,{l:-30}),this.pie6=this.pie6||g(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||g(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||g(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||g(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||g(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||g(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||g(this.primaryColor,{h:120,l:-50}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||g(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||g(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||g(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||g(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||g(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||g(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ii(this.quadrant1Fill)?E(this.quadrant1Fill):D(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:((r=this.xyChart)==null?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((n=this.xyChart)==null?void 0:n.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((o=this.xyChart)==null?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((s=this.xyChart)==null?void 0:s.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((a=this.xyChart)==null?void 0:a.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((h=this.xyChart)==null?void 0:h.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((d=this.xyChart)==null?void 0:d.plotColorPalette)||"#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||g(this.primaryColor,{h:-30}),this.git4=this.git4||g(this.primaryColor,{h:-60}),this.git5=this.git5||g(this.primaryColor,{h:-90}),this.git6=this.git6||g(this.primaryColor,{h:60}),this.git7=this.git7||g(this.primaryColor,{h:120}),this.darkMode?(this.git0=E(this.git0,25),this.git1=E(this.git1,25),this.git2=E(this.git2,25),this.git3=E(this.git3,25),this.git4=E(this.git4,25),this.git5=E(this.git5,25),this.git6=E(this.git6,25),this.git7=E(this.git7,25)):(this.git0=D(this.git0,25),this.git1=D(this.git1,25),this.git2=D(this.git2,25),this.git3=D(this.git3,25),this.git4=D(this.git4,25),this.git5=D(this.git5,25),this.git6=D(this.git6,25),this.git7=D(this.git7,25)),this.gitInv0=this.gitInv0||v(this.git0),this.gitInv1=this.gitInv1||v(this.git1),this.gitInv2=this.gitInv2||v(this.git2),this.gitInv3=this.gitInv3||v(this.git3),this.gitInv4=this.gitInv4||v(this.git4),this.gitInv5=this.gitInv5||v(this.git5),this.gitInv6=this.gitInv6||v(this.git6),this.gitInv7=this.gitInv7||v(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||v(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||v(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Jr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Qr}calculate(e){if(typeof e!="object"){this.updateColors();return}const i=Object.keys(e);i.forEach(r=>{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const By=t=>{const e=new Ay;return e.calculate(t),e};class Ey{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=E(this.contrast,55),this.background="#ffffff",this.tertiaryColor=g(this.primaryColor,{h:-160}),this.primaryBorderColor=pt(this.primaryColor,this.darkMode),this.secondaryBorderColor=pt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=pt(this.tertiaryColor,this.darkMode),this.primaryTextColor=v(this.primaryColor),this.secondaryTextColor=v(this.secondaryColor),this.tertiaryTextColor=v(this.tertiaryColor),this.lineColor=v(this.background),this.textColor=v(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var e,i,r,n,o,s,a,l,c,h,d;this.secondBkg=E(this.contrast,55),this.border2=this.contrast,this.actorBorder=E(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.lineColor,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["cScaleInv"+u]=this["cScaleInv"+u]||v(this["cScale"+u]);for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this.darkMode?this["cScalePeer"+u]=this["cScalePeer"+u]||E(this["cScale"+u],10):this["cScalePeer"+u]=this["cScalePeer"+u]||D(this["cScale"+u],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["cScaleLabel"+u]=this["cScaleLabel"+u]||this.scaleLabelColor;for(let u=0;u<5;u++)this["surface"+u]=this["surface"+u]||g(this.mainBkg,{l:-(5+u*5)}),this["surfacePeer"+u]=this["surfacePeer"+u]||g(this.mainBkg,{l:-(8+u*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.sectionBkgColor=E(this.contrast,30),this.sectionBkgColor2=E(this.contrast,30),this.taskBorderColor=D(this.contrast,10),this.taskBkgColor=this.contrast,this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor=this.text,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.gridColor=E(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=D(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.transitionColor=this.transitionColor||"#000",this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f4f4f4",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.stateBorder=this.stateBorder||"#000",this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#222",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=g(this.primaryColor,{h:64}),this.fillType3=g(this.secondaryColor,{h:64}),this.fillType4=g(this.primaryColor,{h:-64}),this.fillType5=g(this.secondaryColor,{h:-64}),this.fillType6=g(this.primaryColor,{h:128}),this.fillType7=g(this.secondaryColor,{h:128});for(let u=0;u<this.THEME_COLOR_LIMIT;u++)this["pie"+u]=this["cScale"+u];this.pie12=this.pie0,this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||g(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||g(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||g(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||g(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||g(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||g(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ii(this.quadrant1Fill)?E(this.quadrant1Fill):D(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:((r=this.xyChart)==null?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((n=this.xyChart)==null?void 0:n.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((o=this.xyChart)==null?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((s=this.xyChart)==null?void 0:s.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((a=this.xyChart)==null?void 0:a.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((h=this.xyChart)==null?void 0:h.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((d=this.xyChart)==null?void 0:d.plotColorPalette)||"#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=D(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||g(this.primaryColor,{h:-30}),this.git4=this.pie5||g(this.primaryColor,{h:-60}),this.git5=this.pie6||g(this.primaryColor,{h:-90}),this.git6=this.pie7||g(this.primaryColor,{h:60}),this.git7=this.pie8||g(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||v(this.git0),this.gitInv1=this.gitInv1||v(this.git1),this.gitInv2=this.gitInv2||v(this.git2),this.gitInv3=this.gitInv3||v(this.git3),this.gitInv4=this.gitInv4||v(this.git4),this.gitInv5=this.gitInv5||v(this.git5),this.gitInv6=this.gitInv6||v(this.git6),this.gitInv7=this.gitInv7||v(this.git7),this.branchLabelColor=this.branchLabelColor||this.labelTextColor,this.gitBranchLabel0=this.branchLabelColor,this.gitBranchLabel1="white",this.gitBranchLabel2=this.branchLabelColor,this.gitBranchLabel3="white",this.gitBranchLabel4=this.branchLabelColor,this.gitBranchLabel5=this.branchLabelColor,this.gitBranchLabel6=this.branchLabelColor,this.gitBranchLabel7=this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Jr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Qr}calculate(e){if(typeof e!="object"){this.updateColors();return}const i=Object.keys(e);i.forEach(r=>{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}}const Ly=t=>{const e=new Ey;return e.calculate(t),e},ie={base:{getThemeVariables:vy},dark:{getThemeVariables:ky},default:{getThemeVariables:Jl},forest:{getThemeVariables:By},neutral:{getThemeVariables:Ly}},Jt={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"]},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:""},block:{useMaxWidth:!0,padding:8},theme:"default",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","maxEdges"],legacyMathML:!1,deterministicIds:!1,fontSize:16},Ql={...Jt,deterministicIDSeed:void 0,themeCSS:void 0,themeVariables:ie.default.getThemeVariables(),sequence:{...Jt.sequence,messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},noteFont:function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},actorFont:function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}}},gantt:{...Jt.gantt,tickInterval:void 0,useWidth:void 0},c4:{...Jt.c4,useWidth:void 0,personFont:function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},external_personFont:function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},systemFont:function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},external_systemFont:function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},system_dbFont:function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},external_system_dbFont:function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},system_queueFont:function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},external_system_queueFont:function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},containerFont:function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},external_containerFont:function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},container_dbFont:function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},external_container_dbFont:function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},container_queueFont:function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},external_container_queueFont:function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},componentFont:function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},external_componentFont:function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},component_dbFont:function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},external_component_dbFont:function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},component_queueFont:function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},external_component_queueFont:function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},boundaryFont:function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}}},pie:{...Jt.pie,useWidth:984},xyChart:{...Jt.xyChart,useWidth:void 0},requirement:{...Jt.requirement,useWidth:void 0},gitGraph:{...Jt.gitGraph,useMaxWidth:!1},sankey:{...Jt.sankey,useMaxWidth:!1}},tc=(t,e="")=>Object.keys(t).reduce((i,r)=>Array.isArray(t[r])?i:typeof t[r]=="object"&&t[r]!==null?[...i,e+r,...tc(t[r],"")]:[...i,e+r],[]),Fy=new Set(tc(Ql,"")),ec=Ql,kr=t=>{if(M.debug("sanitizeDirective called with",t),!(typeof t!="object"||t==null)){if(Array.isArray(t)){t.forEach(e=>kr(e));return}for(const e of Object.keys(t)){if(M.debug("Checking key",e),e.startsWith("__")||e.includes("proto")||e.includes("constr")||!Fy.has(e)||t[e]==null){M.debug("sanitize deleting key: ",e),delete t[e];continue}if(typeof t[e]=="object"){M.debug("sanitizing object",e),kr(t[e]);continue}const i=["themeCSS","fontFamily","altFontFamily"];for(const r of i)e.includes(r)&&(M.debug("sanitizing css option",e),t[e]=Oy(t[e]))}if(t.themeVariables)for(const e of Object.keys(t.themeVariables)){const i=t.themeVariables[e];i!=null&&i.match&&!i.match(/^[\d "#%(),.;A-Za-z]+$/)&&(t.themeVariables[e]="")}M.debug("After sanitization",t)}},Oy=t=>{let e=0,i=0;for(const r of t){if(e<i)return"{ /* ERROR: Unbalanced CSS */ }";r==="{"?e++:r==="}"&&i++}return e!==i?"{ /* ERROR: Unbalanced CSS */ }":t},ic=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,wi=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,Iy=/\s*%%.*\n/gm;class rc extends Error{constructor(e){super(e),this.name="UnknownDiagramError"}}const Ze={},tn=function(t,e){t=t.replace(ic,"").replace(wi,"").replace(Iy,`
18
+ `);for(const[i,{detector:r}]of Object.entries(Ze))if(r(t,e))return i;throw new rc(`No diagram type detected matching given configuration for text: ${t}`)},nc=(...t)=>{for(const{id:e,detector:i,loader:r}of t)oc(e,i,r)},oc=(t,e,i)=>{Ze[t]?M.error(`Detector with key ${t} already exists`):Ze[t]={detector:e,loader:i},M.debug(`Detector with key ${t} added${i?" with loader":""}`)},My=t=>Ze[t].loader,ro=(t,e,{depth:i=2,clobber:r=!1}={})=>{const n={depth:i,clobber:r};return Array.isArray(e)&&!Array.isArray(t)?(e.forEach(o=>ro(t,o,n)),t):Array.isArray(e)&&Array.isArray(t)?(e.forEach(o=>{t.includes(o)||t.push(o)}),t):t===void 0||i<=0?t!=null&&typeof t=="object"&&typeof e=="object"?Object.assign(t,e):e:(e!==void 0&&typeof t=="object"&&typeof e=="object"&&Object.keys(e).forEach(o=>{typeof e[o]=="object"&&(t[o]===void 0||typeof t[o]=="object")?(t[o]===void 0&&(t[o]=Array.isArray(e[o])?[]:{}),t[o]=ro(t[o],e[o],{depth:i-1,clobber:r})):(r||typeof t[o]!="object"&&typeof e[o]!="object")&&(t[o]=e[o])}),t)},at=ro,sc="​",$y={curveBasis:el,curveBasisClosed:Tp,curveBasisOpen:vp,curveBumpX:xp,curveBumpY:bp,curveBundle:Sp,curveCardinalClosed:wp,curveCardinalOpen:Ap,curveCardinal:kp,curveCatmullRomClosed:Ep,curveCatmullRomOpen:Lp,curveCatmullRom:Bp,curveLinear:Qa,curveLinearClosed:Fp,curveMonotoneX:Op,curveMonotoneY:Ip,curveNatural:Mp,curveStep:$p,curveStepAfter:Np,curveStepBefore:Dp},Dy=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,Ny=function(t,e){const i=ac(t,/(?:init\b)|(?:initialize\b)/);let r={};if(Array.isArray(i)){const s=i.map(a=>a.args);kr(s),r=at(r,[...s])}else r=i.args;if(!r)return;let n=tn(t,e);const o="config";return r[o]!==void 0&&(n==="flowchart-v2"&&(n="flowchart"),r[n]=r[o],delete r[o]),r},ac=function(t,e=null){try{const i=new RegExp(`[%]{2}(?![{]${Dy.source})(?=[}][%]{2}).*
19
+ `,"ig");t=t.trim().replace(i,"").replace(/'/gm,'"'),M.debug(`Detecting diagram directive${e!==null?" type:"+e:""} based on the text:${t}`);let r;const n=[];for(;(r=wi.exec(t))!==null;)if(r.index===wi.lastIndex&&wi.lastIndex++,r&&!e||e&&r[1]&&r[1].match(e)||e&&r[2]&&r[2].match(e)){const o=r[1]?r[1]:r[2],s=r[3]?r[3].trim():r[4]?JSON.parse(r[4].trim()):null;n.push({type:o,args:s})}return n.length===0?{type:t,args:null}:n.length===1?n[0]:n}catch(i){return M.error(`ERROR: ${i.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`),{type:void 0,args:null}}},Py=function(t){return t.replace(wi,"")},Ry=function(t,e){for(const[i,r]of e.entries())if(r.match(t))return i;return-1};function lc(t,e){if(!t)return e;const i=`curve${t.charAt(0).toUpperCase()+t.slice(1)}`;return $y[i]??e}function qy(t,e){const i=t.trim();if(i)return e.securityLevel!=="loose"?qt.distExports.sanitizeUrl(i):i}const zy=(t,...e)=>{const i=t.split("."),r=i.length-1,n=i[r];let o=window;for(let s=0;s<r;s++)if(o=o[i[s]],!o){M.error(`Function name: ${t} not found in window`);return}o[n](...e)};function cc(t,e){return!t||!e?0:Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Wy(t){let e,i=0;t.forEach(n=>{i+=cc(n,e),e=n});const r=i/2;return Ao(t,r)}function Hy(t){return t.length===1?t[0]:Wy(t)}const ra=(t,e=2)=>{const i=Math.pow(10,e);return Math.round(t*i)/i},Ao=(t,e)=>{let i,r=e;for(const n of t){if(i){const o=cc(n,i);if(o<r)r-=o;else{const s=r/o;if(s<=0)return i;if(s>=1)return{x:n.x,y:n.y};if(s>0&&s<1)return{x:ra((1-s)*i.x+s*n.x,5),y:ra((1-s)*i.y+s*n.y,5)}}}i=n}throw new Error("Could not find a suitable point for the given distance")},Yy=(t,e,i)=>{M.info(`our points ${JSON.stringify(e)}`),e[0]!==i&&(e=e.reverse());const n=Ao(e,25),o=t?10:5,s=Math.atan2(e[0].y-n.y,e[0].x-n.x),a={x:0,y:0};return a.x=Math.sin(s)*o+(e[0].x+n.x)/2,a.y=-Math.cos(s)*o+(e[0].y+n.y)/2,a};function jy(t,e,i){const r=structuredClone(i);M.info("our points",r),e!=="start_left"&&e!=="start_right"&&r.reverse();const n=25+t,o=Ao(r,n),s=10+t*.5,a=Math.atan2(r[0].y-o.y,r[0].x-o.x),l={x:0,y:0};return e==="start_left"?(l.x=Math.sin(a+Math.PI)*s+(r[0].x+o.x)/2,l.y=-Math.cos(a+Math.PI)*s+(r[0].y+o.y)/2):e==="end_right"?(l.x=Math.sin(a-Math.PI)*s+(r[0].x+o.x)/2-5,l.y=-Math.cos(a-Math.PI)*s+(r[0].y+o.y)/2-5):e==="end_left"?(l.x=Math.sin(a)*s+(r[0].x+o.x)/2-5,l.y=-Math.cos(a)*s+(r[0].y+o.y)/2-5):(l.x=Math.sin(a)*s+(r[0].x+o.x)/2,l.y=-Math.cos(a)*s+(r[0].y+o.y)/2),l}function hc(t){let e="",i="";for(const r of t)r!==void 0&&(r.startsWith("color:")||r.startsWith("text-align:")?i=i+r+";":e=e+r+";");return{style:e,labelStyle:i}}let na=0;const uc=()=>(na++,"id-"+Math.random().toString(36).substr(2,12)+"-"+na);function Uy(t){let e="";const i="0123456789abcdef",r=i.length;for(let n=0;n<t;n++)e+=i.charAt(Math.floor(Math.random()*r));return e}const dc=t=>Uy(t.length),Xy=function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},Gy=function(t,e){const i=e.text.replace(Zr.lineBreakRegex," "),[,r]=en(e.fontSize),n=t.append("text");n.attr("x",e.x),n.attr("y",e.y),n.style("text-anchor",e.anchor),n.style("font-family",e.fontFamily),n.style("font-size",r),n.style("font-weight",e.fontWeight),n.attr("fill",e.fill),e.class!==void 0&&n.attr("class",e.class);const o=n.append("tspan");return o.attr("x",e.x+e.textMargin*2),o.attr("fill",e.fill),o.text(i),n},fc=qi((t,e,i)=>{if(!t||(i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},i),Zr.lineBreakRegex.test(t)))return t;const r=t.split(" "),n=[];let o="";return r.forEach((s,a)=>{const l=Di(`${s} `,i),c=Di(o,i);if(l>e){const{hyphenatedStrings:u,remainingWord:f}=Vy(s,e,"-",i);n.push(o,...u),o=f}else c+l>=e?(n.push(o),o=s):o=[o,s].filter(Boolean).join(" ");a+1===r.length&&n.push(o)}),n.filter(s=>s!=="").join(i.joinWith)},(t,e,i)=>`${t}${e}${i.fontSize}${i.fontWeight}${i.fontFamily}${i.joinWith}`),Vy=qi((t,e,i="-",r)=>{r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},r);const n=[...t],o=[];let s="";return n.forEach((a,l)=>{const c=`${s}${a}`;if(Di(c,r)>=e){const d=l+1,u=n.length===d,f=`${c}${i}`;o.push(u?c:f),s=""}else s=c}),{hyphenatedStrings:o,remainingWord:s}},(t,e,i="-",r)=>`${t}${e}${i}${r.fontSize}${r.fontWeight}${r.fontFamily}`);function pc(t,e){return Bo(t,e).height}function Di(t,e){return Bo(t,e).width}const Bo=qi((t,e)=>{const{fontSize:i=12,fontFamily:r="Arial",fontWeight:n=400}=e;if(!t)return{width:0,height:0};const[,o]=en(i),s=["sans-serif",r],a=t.split(Zr.lineBreakRegex),l=[],c=bt("body");if(!c.remove)return{width:0,height:0,lineHeight:0};const h=c.append("svg");for(const u of s){let f=0;const m={width:0,height:0,lineHeight:0};for(const y of a){const _=Xy();_.text=y||sc;const L=Gy(h,_).style("font-size",o).style("font-weight",n).style("font-family",u),b=(L._groups||L)[0][0].getBBox();if(b.width===0&&b.height===0)throw new Error("svg element not in render tree");m.width=Math.round(Math.max(m.width,b.width)),f=Math.round(b.height),m.height+=f,m.lineHeight=Math.round(Math.max(m.lineHeight,f))}l.push(m)}h.remove();const d=isNaN(l[1].height)||isNaN(l[1].width)||isNaN(l[1].lineHeight)||l[0].height>l[1].height&&l[0].width>l[1].width&&l[0].lineHeight>l[1].lineHeight?0:1;return l[d]},(t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`);class Ky{constructor(e=!1,i){this.count=0,this.count=i?i.length:0,this.next=e?()=>this.count++:()=>Date.now()}}let er;const Zy=function(t){return er=er||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),er.innerHTML=t,unescape(er.textContent)};function gc(t){return"str"in t}const Jy=(t,e,i,r)=>{var n;if(!r)return;const o=(n=t.node())==null?void 0:n.getBBox();o&&t.append("text").text(r).attr("x",o.x+o.width/2).attr("y",-i).attr("class",e)},en=t=>{if(typeof t=="number")return[t,t+"px"];const e=parseInt(t??"",10);return Number.isNaN(e)?[void 0,void 0]:t===String(e)?[e,t+"px"]:[e,t]};function Eo(t,e){return L0({},t,e)}const He={assignWithDepth:at,wrapLabel:fc,calculateTextHeight:pc,calculateTextWidth:Di,calculateTextDimensions:Bo,cleanAndMerge:Eo,detectInit:Ny,detectDirective:ac,isSubstringInArray:Ry,interpolateToCurve:lc,calcLabelPosition:Hy,calcCardinalityPosition:Yy,calcTerminalLabelPosition:jy,formatUrl:qy,getStylesFromArray:hc,generateId:uc,random:dc,runFunc:zy,entityDecode:Zy,insertTitle:Jy,parseFontSize:en,InitIDGenerator:Ky},Qy=function(t){let e=t;return e=e.replace(/style.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),e=e.replace(/classDef.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),e=e.replace(/#\w+;/g,function(i){const r=i.substring(1,i.length-1);return/^\+?\d+$/.test(r)?"fl°°"+r+"¶ß":"fl°"+r+"¶ß"}),e},mc=function(t){return t.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},oa="10.9.4",Je=Object.freeze(ec);let _t=at({},Je),yc,Qe=[],Ai=at({},Je);const rn=(t,e)=>{let i=at({},t),r={};for(const n of e)xc(n),r=at(r,n);if(i=at(i,r),r.theme&&r.theme in ie){const n=at({},yc),o=at(n.themeVariables||{},r.themeVariables);i.theme&&i.theme in ie&&(i.themeVariables=ie[i.theme].getThemeVariables(o))}return Ai=i,bc(Ai),Ai},t_=t=>(_t=at({},Je),_t=at(_t,t),t.theme&&ie[t.theme]&&(_t.themeVariables=ie[t.theme].getThemeVariables(t.themeVariables)),rn(_t,Qe),_t),e_=t=>{yc=at({},t)},i_=t=>(_t=at(_t,t),rn(_t,Qe),_t),_c=()=>at({},_t),Cc=t=>(bc(t),at(Ai,t),$t()),$t=()=>at({},Ai),xc=t=>{t&&(["secure",..._t.secure??[]].forEach(e=>{Object.hasOwn(t,e)&&(M.debug(`Denied attempt to modify a secure key ${e}`,t[e]),delete t[e])}),Object.keys(t).forEach(e=>{e.startsWith("__")&&delete t[e]}),Object.keys(t).forEach(e=>{typeof t[e]=="string"&&(t[e].includes("<")||t[e].includes(">")||t[e].includes("url(data:"))&&delete t[e],typeof t[e]=="object"&&xc(t[e])}))},r_=t=>{kr(t),t.fontFamily&&(!t.themeVariables||!t.themeVariables.fontFamily)&&(t.themeVariables={fontFamily:t.fontFamily}),Qe.push(t),rn(_t,Qe)},wr=(t=_t)=>{Qe=[],rn(t,Qe)},n_={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},sa={},o_=t=>{sa[t]||(M.warn(n_[t]),sa[t]=!0)},bc=t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&o_("LAZY_LOAD_DEPRECATED")},Tc="c4",s_=t=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t),a_=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.DQNvPUlq.js"));return{id:Tc,diagram:t}},l_={id:Tc,detector:s_,loader:a_},c_=l_,vc="flowchart",h_=(t,e)=>{var i,r;return((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="dagre-wrapper"||((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="elk"?!1:/^\s*graph/.test(t)},u_=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.S65vvX5F.js"));return{id:vc,diagram:t}},d_={id:vc,detector:h_,loader:u_},f_=d_,Sc="flowchart-v2",p_=(t,e)=>{var i,r,n;return((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="dagre-d3"||((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="elk"?!1:/^\s*graph/.test(t)&&((n=e==null?void 0:e.flowchart)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(t)},g_=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.9BQ-j9b1.js"));return{id:Sc,diagram:t}},m_={id:Sc,detector:p_,loader:g_},y_=m_,kc="er",__=t=>/^\s*erDiagram/.test(t),C_=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.dzfXP3Qw.js"));return{id:kc,diagram:t}},x_={id:kc,detector:__,loader:C_},b_=x_,wc="gitGraph",T_=t=>/^\s*gitGraph/.test(t),v_=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.DpzfdzUl.js"));return{id:wc,diagram:t}},S_={id:wc,detector:T_,loader:v_},k_=S_,Ac="gantt",w_=t=>/^\s*gantt/.test(t),A_=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.CPqeg0Ra.js"));return{id:Ac,diagram:t}},B_={id:Ac,detector:w_,loader:A_},E_=B_,Bc="info",L_=t=>/^\s*info/.test(t),F_=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.DQ7Nvo_L.js"));return{id:Bc,diagram:t}},O_={id:Bc,detector:L_,loader:F_},Ec="pie",I_=t=>/^\s*pie/.test(t),M_=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.9kfzWn6n.js"));return{id:Ec,diagram:t}},$_={id:Ec,detector:I_,loader:M_},Lc="quadrantChart",D_=t=>/^\s*quadrantChart/.test(t),N_=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.BoXbCVBF.js"));return{id:Lc,diagram:t}},P_={id:Lc,detector:D_,loader:N_},R_=P_,Fc="xychart",q_=t=>/^\s*xychart-beta/.test(t),z_=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.4f0VywGG.js"));return{id:Fc,diagram:t}},W_={id:Fc,detector:q_,loader:z_},H_=W_,Oc="requirement",Y_=t=>/^\s*requirement(Diagram)?/.test(t),j_=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.SwIVAd47.js"));return{id:Oc,diagram:t}},U_={id:Oc,detector:Y_,loader:j_},X_=U_,Ic="sequence",G_=t=>/^\s*sequenceDiagram/.test(t),V_=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.CC1qZBeR.js"));return{id:Ic,diagram:t}},K_={id:Ic,detector:G_,loader:V_},Z_=K_,Mc="class",J_=(t,e)=>{var i;return((i=e==null?void 0:e.class)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(t)},Q_=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.CmmrFN9j.js"));return{id:Mc,diagram:t}},tC={id:Mc,detector:J_,loader:Q_},eC=tC,$c="classDiagram",iC=(t,e)=>{var i;return/^\s*classDiagram/.test(t)&&((i=e==null?void 0:e.class)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(t)},rC=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.CmLStJ73.js"));return{id:$c,diagram:t}},nC={id:$c,detector:iC,loader:rC},oC=nC,Dc="state",sC=(t,e)=>{var i;return((i=e==null?void 0:e.state)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(t)},aC=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.Dgsmf1FS.js"));return{id:Dc,diagram:t}},lC={id:Dc,detector:sC,loader:aC},cC=lC,Nc="stateDiagram",hC=(t,e)=>{var i;return!!(/^\s*stateDiagram-v2/.test(t)||/^\s*stateDiagram/.test(t)&&((i=e==null?void 0:e.state)==null?void 0:i.defaultRenderer)==="dagre-wrapper")},uC=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.DgiHNGIs.js"));return{id:Nc,diagram:t}},dC={id:Nc,detector:hC,loader:uC},fC=dC,Pc="journey",pC=t=>/^\s*journey/.test(t),gC=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.CZaAwSnp.js"));return{id:Pc,diagram:t}},mC={id:Pc,detector:pC,loader:gC},yC=mC,_C=function(t,e){for(let i of e)t.attr(i[0],i[1])},CC=function(t,e,i){let r=new Map;return i?(r.set("width","100%"),r.set("style",`max-width: ${e}px;`)):(r.set("height",t),r.set("width",e)),r},Lo=function(t,e,i,r){const n=CC(e,i,r);_C(t,n)},Rc=function(t,e,i,r){const n=e.node().getBBox(),o=n.width,s=n.height;M.info(`SVG bounds: ${o}x${s}`,n);let a=0,l=0;M.info(`Graph bounds: ${a}x${l}`,t),a=o+i*2,l=s+i*2,M.info(`Calculated bounds: ${a}x${l}`),Lo(e,l,a,r);const c=`${n.x-i} ${n.y-i} ${n.width+2*i} ${n.height+2*i}`;e.attr("viewBox",c)},dr={},xC=(t,e,i)=>{let r="";return t in dr&&dr[t]?r=dr[t](i):M.warn(`No theme found for ${t}`),` & {
20
20
  font-family: ${i.fontFamily};
21
21
  font-size: ${i.fontSize};
22
22
  fill: ${i.textColor}
@@ -65,32 +65,32 @@
65
65
  ${r}
66
66
 
67
67
  ${e}
68
- `},bC=(t,e)=>{e!==void 0&&(dr[t]=e)},TC=xC;let Lo="",Fo="",Oo="";const Io=t=>ve(t,$t()),qc=()=>{Lo="",Oo="",Fo=""},zc=t=>{Lo=Io(t).replace(/^\s+/g,"")},Wc=()=>Lo,Hc=t=>{Oo=Io(t).replace(/\n\s+/g,`
69
- `)},Yc=()=>Oo,jc=t=>{Fo=Io(t)},Uc=()=>Fo,Xc=Object.freeze(Object.defineProperty({__proto__:null,clear:qc,getAccDescription:Yc,getAccTitle:Wc,getDiagramTitle:Uc,setAccDescription:Hc,setAccTitle:zc,setDiagramTitle:jc},Symbol.toStringTag,{value:"Module"})),vC=M,SC=So,nn=$t,kC=Cc,wC=Ze,AC=t=>ve(t,nn()),Gc=Rc,BC=()=>Xc,Ar={},Br=(t,e,i)=>{var r;if(Ar[t])throw new Error(`Diagram ${t} already registered.`);Ar[t]=e,i&&oc(t,i),bC(t,e.styles),(r=e.injectUtils)==null||r.call(e,vC,SC,nn,AC,Gc,BC(),()=>{})},Mo=t=>{if(t in Ar)return Ar[t];throw new EC(t)};class EC extends Error{constructor(e){super(`Diagram ${e} not found.`)}}const Vc=t=>{var e;const{securityLevel:i}=nn();let r=bt("body");if(i==="sandbox"){const o=((e=bt(`#i${t}`).node())==null?void 0:e.contentDocument)??document;r=bt(o.body)}return r.select(`#${t}`)},LC=(t,e,i)=>{M.debug(`rendering svg for syntax error
70
- `);const r=Vc(e),n=r.append("g");r.attr("viewBox","0 0 2412 512"),Eo(r,100,512,!0),n.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),n.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),n.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),n.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),n.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),n.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),n.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),n.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${i}`)},Kc={draw:LC},FC=Kc,OC={db:{},renderer:Kc,parser:{parser:{yy:{}},parse:()=>{}}},IC=OC,Zc="flowchart-elk",MC=(t,e)=>{var i;return!!(/^\s*flowchart-elk/.test(t)||/^\s*flowchart|graph/.test(t)&&((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="elk")},$C=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.BJJ5XB-5.js"));return{id:Zc,diagram:t}},DC={id:Zc,detector:MC,loader:$C},NC=DC,Jc="timeline",PC=t=>/^\s*timeline/.test(t),RC=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.BKOdDL4i.js"));return{id:Jc,diagram:t}},qC={id:Jc,detector:PC,loader:RC},zC=qC,Qc="mindmap",WC=t=>/^\s*mindmap/.test(t),HC=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.pokjdt_3.js"));return{id:Qc,diagram:t}},YC={id:Qc,detector:WC,loader:HC},jC=YC,th="sankey",UC=t=>/^\s*sankey-beta/.test(t),XC=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.vC6Sof4v.js"));return{id:th,diagram:t}},GC={id:th,detector:UC,loader:XC},VC=GC,eh="block",KC=t=>/^\s*block-beta/.test(t),ZC=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.HLP_ehOT.js"));return{id:eh,diagram:t}},JC={id:eh,detector:KC,loader:ZC},QC=JC;let aa=!1;const $o=()=>{aa||(aa=!0,Br("error",IC,t=>t.toLowerCase().trim()==="error"),Br("---",{db:{clear:()=>{}},styles:{},renderer:{draw:()=>{}},parser:{parser:{yy:{}},parse:()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")}},init:()=>null},t=>t.toLowerCase().trimStart().startsWith("---")),nc(c_,oC,eC,b_,E_,O_,$_,X_,Z_,NC,y_,f_,jC,zC,k_,fC,cC,yC,R_,VC,H_,QC))};class ih{constructor(e,i={}){this.text=e,this.metadata=i,this.type="graph",this.text=Qy(e),this.text+=`
71
- `;const r=$t();try{this.type=tn(e,r)}catch(s){this.type="error",this.detectError=s}const n=Mo(this.type);M.debug("Type "+this.type),this.db=n.db,this.renderer=n.renderer,this.parser=n.parser,this.parser.parser.yy=this.db,this.init=n.init,this.parse()}parse(){var e,i,r,n,s;if(this.detectError)throw this.detectError;(i=(e=this.db).clear)==null||i.call(e);const o=$t();(r=this.init)==null||r.call(this,o),this.metadata.title&&((s=(n=this.db).setDiagramTitle)==null||s.call(n,this.metadata.title)),this.parser.parse(this.text)}async render(e,i){await this.renderer.draw(this.text,e,i,this)}getParser(){return this.parser}getType(){return this.type}}const tx=async(t,e={})=>{const i=tn(t,$t());try{Mo(i)}catch{const n=My(i);if(!n)throw new rc(`Diagram ${i} not found.`);const{id:s,diagram:o}=await n();Br(s,o)}return new ih(t,e)};let la=[];const ex=()=>{la.forEach(t=>{t()}),la=[]},ix="graphics-document document";function rx(t,e){t.attr("role",ix),e!==""&&t.attr("aria-roledescription",e)}function nx(t,e,i,r){if(t.insert!==void 0){if(i){const n=`chart-desc-${r}`;t.attr("aria-describedby",n),t.insert("desc",":first-child").attr("id",n).text(i)}if(e){const n=`chart-title-${r}`;t.attr("aria-labelledby",n),t.insert("title",":first-child").attr("id",n).text(e)}}}const ox=t=>t.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart();/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function rh(t){return typeof t>"u"||t===null}function sx(t){return typeof t=="object"&&t!==null}function ax(t){return Array.isArray(t)?t:rh(t)?[]:[t]}function lx(t,e){var i,r,n,s;if(e)for(s=Object.keys(e),i=0,r=s.length;i<r;i+=1)n=s[i],t[n]=e[n];return t}function cx(t,e){var i="",r;for(r=0;r<e;r+=1)i+=t;return i}function hx(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var ux=rh,dx=sx,fx=ax,px=cx,gx=hx,mx=lx,dt={isNothing:ux,isObject:dx,toArray:fx,repeat:px,isNegativeZero:gx,extend:mx};function nh(t,e){var i="",r=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(i+='in "'+t.mark.name+'" '),i+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(i+=`
68
+ `},bC=(t,e)=>{e!==void 0&&(dr[t]=e)},TC=xC;let Fo="",Oo="",Io="";const Mo=t=>Se(t,$t()),qc=()=>{Fo="",Io="",Oo=""},zc=t=>{Fo=Mo(t).replace(/^\s+/g,"")},Wc=()=>Fo,Hc=t=>{Io=Mo(t).replace(/\n\s+/g,`
69
+ `)},Yc=()=>Io,jc=t=>{Oo=Mo(t)},Uc=()=>Oo,Xc=Object.freeze(Object.defineProperty({__proto__:null,clear:qc,getAccDescription:Yc,getAccTitle:Wc,getDiagramTitle:Uc,setAccDescription:Hc,setAccTitle:zc,setDiagramTitle:jc},Symbol.toStringTag,{value:"Module"})),vC=M,SC=ko,nn=$t,kC=Cc,wC=Je,AC=t=>Se(t,nn()),Gc=Rc,BC=()=>Xc,Ar={},Br=(t,e,i)=>{var r;if(Ar[t])throw new Error(`Diagram ${t} already registered.`);Ar[t]=e,i&&oc(t,i),bC(t,e.styles),(r=e.injectUtils)==null||r.call(e,vC,SC,nn,AC,Gc,BC(),()=>{})},$o=t=>{if(t in Ar)return Ar[t];throw new EC(t)};class EC extends Error{constructor(e){super(`Diagram ${e} not found.`)}}const Vc=t=>{var e;const{securityLevel:i}=nn();let r=bt("body");if(i==="sandbox"){const s=((e=bt(`#i${t}`).node())==null?void 0:e.contentDocument)??document;r=bt(s.body)}return r.select(`#${t}`)},LC=(t,e,i)=>{M.debug(`rendering svg for syntax error
70
+ `);const r=Vc(e),n=r.append("g");r.attr("viewBox","0 0 2412 512"),Lo(r,100,512,!0),n.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),n.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),n.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),n.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),n.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),n.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),n.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),n.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${i}`)},Kc={draw:LC},FC=Kc,OC={db:{},renderer:Kc,parser:{parser:{yy:{}},parse:()=>{}}},IC=OC,Zc="flowchart-elk",MC=(t,e)=>{var i;return!!(/^\s*flowchart-elk/.test(t)||/^\s*flowchart|graph/.test(t)&&((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="elk")},$C=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.KIMloKsC.js"));return{id:Zc,diagram:t}},DC={id:Zc,detector:MC,loader:$C},NC=DC,Jc="timeline",PC=t=>/^\s*timeline/.test(t),RC=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.DZsdy0DH.js"));return{id:Jc,diagram:t}},qC={id:Jc,detector:PC,loader:RC},zC=qC,Qc="mindmap",WC=t=>/^\s*mindmap/.test(t),HC=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.C3zQ2371.js"));return{id:Qc,diagram:t}},YC={id:Qc,detector:WC,loader:HC},jC=YC,th="sankey",UC=t=>/^\s*sankey-beta/.test(t),XC=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.DlyA9BuX.js"));return{id:th,diagram:t}},GC={id:th,detector:UC,loader:XC},VC=GC,eh="block",KC=t=>/^\s*block-beta/.test(t),ZC=async()=>{const{diagram:t}=await Promise.resolve().then(()=>require("./layers.HWxz-tJ3.js"));return{id:eh,diagram:t}},JC={id:eh,detector:KC,loader:ZC},QC=JC;let aa=!1;const Do=()=>{aa||(aa=!0,Br("error",IC,t=>t.toLowerCase().trim()==="error"),Br("---",{db:{clear:()=>{}},styles:{},renderer:{draw:()=>{}},parser:{parser:{yy:{}},parse:()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")}},init:()=>null},t=>t.toLowerCase().trimStart().startsWith("---")),nc(c_,oC,eC,b_,E_,O_,$_,X_,Z_,NC,y_,f_,jC,zC,k_,fC,cC,yC,R_,VC,H_,QC))};class ih{constructor(e,i={}){this.text=e,this.metadata=i,this.type="graph",this.text=Qy(e),this.text+=`
71
+ `;const r=$t();try{this.type=tn(e,r)}catch(o){this.type="error",this.detectError=o}const n=$o(this.type);M.debug("Type "+this.type),this.db=n.db,this.renderer=n.renderer,this.parser=n.parser,this.parser.parser.yy=this.db,this.init=n.init,this.parse()}parse(){var e,i,r,n,o;if(this.detectError)throw this.detectError;(i=(e=this.db).clear)==null||i.call(e);const s=$t();(r=this.init)==null||r.call(this,s),this.metadata.title&&((o=(n=this.db).setDiagramTitle)==null||o.call(n,this.metadata.title)),this.parser.parse(this.text)}async render(e,i){await this.renderer.draw(this.text,e,i,this)}getParser(){return this.parser}getType(){return this.type}}const tx=async(t,e={})=>{const i=tn(t,$t());try{$o(i)}catch{const n=My(i);if(!n)throw new rc(`Diagram ${i} not found.`);const{id:o,diagram:s}=await n();Br(o,s)}return new ih(t,e)};let la=[];const ex=()=>{la.forEach(t=>{t()}),la=[]},ix="graphics-document document";function rx(t,e){t.attr("role",ix),e!==""&&t.attr("aria-roledescription",e)}function nx(t,e,i,r){if(t.insert!==void 0){if(i){const n=`chart-desc-${r}`;t.attr("aria-describedby",n),t.insert("desc",":first-child").attr("id",n).text(i)}if(e){const n=`chart-title-${r}`;t.attr("aria-labelledby",n),t.insert("title",":first-child").attr("id",n).text(e)}}}const ox=t=>t.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart();/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function rh(t){return typeof t>"u"||t===null}function sx(t){return typeof t=="object"&&t!==null}function ax(t){return Array.isArray(t)?t:rh(t)?[]:[t]}function lx(t,e){var i,r,n,o;if(e)for(o=Object.keys(e),i=0,r=o.length;i<r;i+=1)n=o[i],t[n]=e[n];return t}function cx(t,e){var i="",r;for(r=0;r<e;r+=1)i+=t;return i}function hx(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var ux=rh,dx=sx,fx=ax,px=cx,gx=hx,mx=lx,dt={isNothing:ux,isObject:dx,toArray:fx,repeat:px,isNegativeZero:gx,extend:mx};function nh(t,e){var i="",r=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(i+='in "'+t.mark.name+'" '),i+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(i+=`
72
72
 
73
- `+t.mark.snippet),r+" "+i):r}function Ni(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=nh(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Ni.prototype=Object.create(Error.prototype);Ni.prototype.constructor=Ni;Ni.prototype.toString=function(e){return this.name+": "+nh(this,e)};var ee=Ni;function An(t,e,i,r,n){var s="",o="",a=Math.floor(n/2)-1;return r-e>a&&(s=" ... ",e=r-a+s.length),i-r>a&&(o=" ...",i=r+a-o.length),{str:s+t.slice(e,i).replace(/\t/g,"→")+o,pos:r-e+s.length}}function Bn(t,e){return dt.repeat(" ",e-t.length)+t}function yx(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var i=/\r?\n|\r|\0/g,r=[0],n=[],s,o=-1;s=i.exec(t.buffer);)n.push(s.index),r.push(s.index+s[0].length),t.position<=s.index&&o<0&&(o=r.length-2);o<0&&(o=r.length-1);var a="",l,c,h=Math.min(t.line+e.linesAfter,n.length).toString().length,d=e.maxLength-(e.indent+h+3);for(l=1;l<=e.linesBefore&&!(o-l<0);l++)c=An(t.buffer,r[o-l],n[o-l],t.position-(r[o]-r[o-l]),d),a=dt.repeat(" ",e.indent)+Bn((t.line-l+1).toString(),h)+" | "+c.str+`
74
- `+a;for(c=An(t.buffer,r[o],n[o],t.position,d),a+=dt.repeat(" ",e.indent)+Bn((t.line+1).toString(),h)+" | "+c.str+`
73
+ `+t.mark.snippet),r+" "+i):r}function Ni(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=nh(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Ni.prototype=Object.create(Error.prototype);Ni.prototype.constructor=Ni;Ni.prototype.toString=function(e){return this.name+": "+nh(this,e)};var ee=Ni;function Bn(t,e,i,r,n){var o="",s="",a=Math.floor(n/2)-1;return r-e>a&&(o=" ... ",e=r-a+o.length),i-r>a&&(s=" ...",i=r+a-s.length),{str:o+t.slice(e,i).replace(/\t/g,"→")+s,pos:r-e+o.length}}function En(t,e){return dt.repeat(" ",e-t.length)+t}function yx(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var i=/\r?\n|\r|\0/g,r=[0],n=[],o,s=-1;o=i.exec(t.buffer);)n.push(o.index),r.push(o.index+o[0].length),t.position<=o.index&&s<0&&(s=r.length-2);s<0&&(s=r.length-1);var a="",l,c,h=Math.min(t.line+e.linesAfter,n.length).toString().length,d=e.maxLength-(e.indent+h+3);for(l=1;l<=e.linesBefore&&!(s-l<0);l++)c=Bn(t.buffer,r[s-l],n[s-l],t.position-(r[s]-r[s-l]),d),a=dt.repeat(" ",e.indent)+En((t.line-l+1).toString(),h)+" | "+c.str+`
74
+ `+a;for(c=Bn(t.buffer,r[s],n[s],t.position,d),a+=dt.repeat(" ",e.indent)+En((t.line+1).toString(),h)+" | "+c.str+`
75
75
  `,a+=dt.repeat("-",e.indent+h+3+c.pos)+`^
76
- `,l=1;l<=e.linesAfter&&!(o+l>=n.length);l++)c=An(t.buffer,r[o+l],n[o+l],t.position-(r[o]-r[o+l]),d),a+=dt.repeat(" ",e.indent)+Bn((t.line+l+1).toString(),h)+" | "+c.str+`
77
- `;return a.replace(/\n$/,"")}var _x=yx,Cx=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],xx=["scalar","sequence","mapping"];function bx(t){var e={};return t!==null&&Object.keys(t).forEach(function(i){t[i].forEach(function(r){e[String(r)]=i})}),e}function Tx(t,e){if(e=e||{},Object.keys(e).forEach(function(i){if(Cx.indexOf(i)===-1)throw new ee('Unknown option "'+i+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(i){return i},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=bx(e.styleAliases||null),xx.indexOf(this.kind)===-1)throw new ee('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var ht=Tx;function ca(t,e){var i=[];return t[e].forEach(function(r){var n=i.length;i.forEach(function(s,o){s.tag===r.tag&&s.kind===r.kind&&s.multi===r.multi&&(n=o)}),i[n]=r}),i}function vx(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,i;function r(n){n.multi?(t.multi[n.kind].push(n),t.multi.fallback.push(n)):t[n.kind][n.tag]=t.fallback[n.tag]=n}for(e=0,i=arguments.length;e<i;e+=1)arguments[e].forEach(r);return t}function ro(t){return this.extend(t)}ro.prototype.extend=function(e){var i=[],r=[];if(e instanceof ht)r.push(e);else if(Array.isArray(e))r=r.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(i=i.concat(e.implicit)),e.explicit&&(r=r.concat(e.explicit));else throw new ee("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");i.forEach(function(s){if(!(s instanceof ht))throw new ee("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new ee("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(s.multi)throw new ee("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(s){if(!(s instanceof ht))throw new ee("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var n=Object.create(ro.prototype);return n.implicit=(this.implicit||[]).concat(i),n.explicit=(this.explicit||[]).concat(r),n.compiledImplicit=ca(n,"implicit"),n.compiledExplicit=ca(n,"explicit"),n.compiledTypeMap=vx(n.compiledImplicit,n.compiledExplicit),n};var Sx=ro,kx=new ht("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),wx=new ht("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),Ax=new ht("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),Bx=new Sx({explicit:[kx,wx,Ax]});function Ex(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function Lx(){return null}function Fx(t){return t===null}var Ox=new ht("tag:yaml.org,2002:null",{kind:"scalar",resolve:Ex,construct:Lx,predicate:Fx,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function Ix(t){if(t===null)return!1;var e=t.length;return e===4&&(t==="true"||t==="True"||t==="TRUE")||e===5&&(t==="false"||t==="False"||t==="FALSE")}function Mx(t){return t==="true"||t==="True"||t==="TRUE"}function $x(t){return Object.prototype.toString.call(t)==="[object Boolean]"}var Dx=new ht("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Ix,construct:Mx,predicate:$x,represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"});function Nx(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function Px(t){return 48<=t&&t<=55}function Rx(t){return 48<=t&&t<=57}function qx(t){if(t===null)return!1;var e=t.length,i=0,r=!1,n;if(!e)return!1;if(n=t[i],(n==="-"||n==="+")&&(n=t[++i]),n==="0"){if(i+1===e)return!0;if(n=t[++i],n==="b"){for(i++;i<e;i++)if(n=t[i],n!=="_"){if(n!=="0"&&n!=="1")return!1;r=!0}return r&&n!=="_"}if(n==="x"){for(i++;i<e;i++)if(n=t[i],n!=="_"){if(!Nx(t.charCodeAt(i)))return!1;r=!0}return r&&n!=="_"}if(n==="o"){for(i++;i<e;i++)if(n=t[i],n!=="_"){if(!Px(t.charCodeAt(i)))return!1;r=!0}return r&&n!=="_"}}if(n==="_")return!1;for(;i<e;i++)if(n=t[i],n!=="_"){if(!Rx(t.charCodeAt(i)))return!1;r=!0}return!(!r||n==="_")}function zx(t){var e=t,i=1,r;if(e.indexOf("_")!==-1&&(e=e.replace(/_/g,"")),r=e[0],(r==="-"||r==="+")&&(r==="-"&&(i=-1),e=e.slice(1),r=e[0]),e==="0")return 0;if(r==="0"){if(e[1]==="b")return i*parseInt(e.slice(2),2);if(e[1]==="x")return i*parseInt(e.slice(2),16);if(e[1]==="o")return i*parseInt(e.slice(2),8)}return i*parseInt(e,10)}function Wx(t){return Object.prototype.toString.call(t)==="[object Number]"&&t%1===0&&!dt.isNegativeZero(t)}var Hx=new ht("tag:yaml.org,2002:int",{kind:"scalar",resolve:qx,construct:zx,predicate:Wx,represent:{binary:function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},octal:function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},decimal:function(t){return t.toString(10)},hexadecimal:function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Yx=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function jx(t){return!(t===null||!Yx.test(t)||t[t.length-1]==="_")}function Ux(t){var e,i;return e=t.replace(/_/g,"").toLowerCase(),i=e[0]==="-"?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),e===".inf"?i===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:e===".nan"?NaN:i*parseFloat(e,10)}var Xx=/^[-+]?[0-9]+e/;function Gx(t,e){var i;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(dt.isNegativeZero(t))return"-0.0";return i=t.toString(10),Xx.test(i)?i.replace("e",".e"):i}function Vx(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||dt.isNegativeZero(t))}var Kx=new ht("tag:yaml.org,2002:float",{kind:"scalar",resolve:jx,construct:Ux,predicate:Vx,represent:Gx,defaultStyle:"lowercase"}),oh=Bx.extend({implicit:[Ox,Dx,Hx,Kx]}),Zx=oh,sh=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),ah=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function Jx(t){return t===null?!1:sh.exec(t)!==null||ah.exec(t)!==null}function Qx(t){var e,i,r,n,s,o,a,l=0,c=null,h,d,u;if(e=sh.exec(t),e===null&&(e=ah.exec(t)),e===null)throw new Error("Date resolve error");if(i=+e[1],r=+e[2]-1,n=+e[3],!e[4])return new Date(Date.UTC(i,r,n));if(s=+e[4],o=+e[5],a=+e[6],e[7]){for(l=e[7].slice(0,3);l.length<3;)l+="0";l=+l}return e[9]&&(h=+e[10],d=+(e[11]||0),c=(h*60+d)*6e4,e[9]==="-"&&(c=-c)),u=new Date(Date.UTC(i,r,n,s,o,a,l)),c&&u.setTime(u.getTime()-c),u}function tb(t){return t.toISOString()}var eb=new ht("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Jx,construct:Qx,instanceOf:Date,represent:tb});function ib(t){return t==="<<"||t===null}var rb=new ht("tag:yaml.org,2002:merge",{kind:"scalar",resolve:ib}),Do=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
78
- \r`;function nb(t){if(t===null)return!1;var e,i,r=0,n=t.length,s=Do;for(i=0;i<n;i++)if(e=s.indexOf(t.charAt(i)),!(e>64)){if(e<0)return!1;r+=6}return r%8===0}function ob(t){var e,i,r=t.replace(/[\r\n=]/g,""),n=r.length,s=Do,o=0,a=[];for(e=0;e<n;e++)e%4===0&&e&&(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)),o=o<<6|s.indexOf(r.charAt(e));return i=n%4*6,i===0?(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)):i===18?(a.push(o>>10&255),a.push(o>>2&255)):i===12&&a.push(o>>4&255),new Uint8Array(a)}function sb(t){var e="",i=0,r,n,s=t.length,o=Do;for(r=0;r<s;r++)r%3===0&&r&&(e+=o[i>>18&63],e+=o[i>>12&63],e+=o[i>>6&63],e+=o[i&63]),i=(i<<8)+t[r];return n=s%3,n===0?(e+=o[i>>18&63],e+=o[i>>12&63],e+=o[i>>6&63],e+=o[i&63]):n===2?(e+=o[i>>10&63],e+=o[i>>4&63],e+=o[i<<2&63],e+=o[64]):n===1&&(e+=o[i>>2&63],e+=o[i<<4&63],e+=o[64],e+=o[64]),e}function ab(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var lb=new ht("tag:yaml.org,2002:binary",{kind:"scalar",resolve:nb,construct:ob,predicate:ab,represent:sb}),cb=Object.prototype.hasOwnProperty,hb=Object.prototype.toString;function ub(t){if(t===null)return!0;var e=[],i,r,n,s,o,a=t;for(i=0,r=a.length;i<r;i+=1){if(n=a[i],o=!1,hb.call(n)!=="[object Object]")return!1;for(s in n)if(cb.call(n,s))if(!o)o=!0;else return!1;if(!o)return!1;if(e.indexOf(s)===-1)e.push(s);else return!1}return!0}function db(t){return t!==null?t:[]}var fb=new ht("tag:yaml.org,2002:omap",{kind:"sequence",resolve:ub,construct:db}),pb=Object.prototype.toString;function gb(t){if(t===null)return!0;var e,i,r,n,s,o=t;for(s=new Array(o.length),e=0,i=o.length;e<i;e+=1){if(r=o[e],pb.call(r)!=="[object Object]"||(n=Object.keys(r),n.length!==1))return!1;s[e]=[n[0],r[n[0]]]}return!0}function mb(t){if(t===null)return[];var e,i,r,n,s,o=t;for(s=new Array(o.length),e=0,i=o.length;e<i;e+=1)r=o[e],n=Object.keys(r),s[e]=[n[0],r[n[0]]];return s}var yb=new ht("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:gb,construct:mb}),_b=Object.prototype.hasOwnProperty;function Cb(t){if(t===null)return!0;var e,i=t;for(e in i)if(_b.call(i,e)&&i[e]!==null)return!1;return!0}function xb(t){return t!==null?t:{}}var bb=new ht("tag:yaml.org,2002:set",{kind:"mapping",resolve:Cb,construct:xb}),Tb=Zx.extend({implicit:[eb,rb],explicit:[lb,fb,yb,bb]}),de=Object.prototype.hasOwnProperty,Er=1,lh=2,ch=3,Lr=4,En=1,vb=2,ha=3,Sb=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,kb=/[\x85\u2028\u2029]/,wb=/[,\[\]\{\}]/,hh=/^(?:!|!!|![a-z\-]+!)$/i,uh=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function ua(t){return Object.prototype.toString.call(t)}function Wt(t){return t===10||t===13}function xe(t){return t===9||t===32}function Ct(t){return t===9||t===32||t===10||t===13}function De(t){return t===44||t===91||t===93||t===123||t===125}function Ab(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}function Bb(t){return t===120?2:t===117?4:t===85?8:0}function Eb(t){return 48<=t&&t<=57?t-48:-1}function da(t){return t===48?"\0":t===97?"\x07":t===98?"\b":t===116||t===9?" ":t===110?`
79
- `:t===118?"\v":t===102?"\f":t===114?"\r":t===101?"\x1B":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?"…":t===95?" ":t===76?"\u2028":t===80?"\u2029":""}function Lb(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}var dh=new Array(256),fh=new Array(256);for(var Me=0;Me<256;Me++)dh[Me]=da(Me)?1:0,fh[Me]=da(Me);function Fb(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||Tb,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function ph(t,e){var i={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return i.snippet=_x(i),new ee(e,i)}function O(t,e){throw ph(t,e)}function Fr(t,e){t.onWarning&&t.onWarning.call(null,ph(t,e))}var fa={YAML:function(e,i,r){var n,s,o;e.version!==null&&O(e,"duplication of %YAML directive"),r.length!==1&&O(e,"YAML directive accepts exactly one argument"),n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]),n===null&&O(e,"ill-formed argument of the YAML directive"),s=parseInt(n[1],10),o=parseInt(n[2],10),s!==1&&O(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=o<2,o!==1&&o!==2&&Fr(e,"unsupported YAML version of the document")},TAG:function(e,i,r){var n,s;r.length!==2&&O(e,"TAG directive accepts exactly two arguments"),n=r[0],s=r[1],hh.test(n)||O(e,"ill-formed tag handle (first argument) of the TAG directive"),de.call(e.tagMap,n)&&O(e,'there is a previously declared suffix for "'+n+'" tag handle'),uh.test(s)||O(e,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{O(e,"tag prefix is malformed: "+s)}e.tagMap[n]=s}};function he(t,e,i,r){var n,s,o,a;if(e<i){if(a=t.input.slice(e,i),r)for(n=0,s=a.length;n<s;n+=1)o=a.charCodeAt(n),o===9||32<=o&&o<=1114111||O(t,"expected valid JSON character");else Sb.test(a)&&O(t,"the stream contains non-printable characters");t.result+=a}}function pa(t,e,i,r){var n,s,o,a;for(dt.isObject(i)||O(t,"cannot merge mappings; the provided source object is unacceptable"),n=Object.keys(i),o=0,a=n.length;o<a;o+=1)s=n[o],de.call(e,s)||(e[s]=i[s],r[s]=!0)}function Ne(t,e,i,r,n,s,o,a,l){var c,h;if(Array.isArray(n))for(n=Array.prototype.slice.call(n),c=0,h=n.length;c<h;c+=1)Array.isArray(n[c])&&O(t,"nested arrays are not supported inside keys"),typeof n=="object"&&ua(n[c])==="[object Object]"&&(n[c]="[object Object]");if(typeof n=="object"&&ua(n)==="[object Object]"&&(n="[object Object]"),n=String(n),e===null&&(e={}),r==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(c=0,h=s.length;c<h;c+=1)pa(t,e,s[c],i);else pa(t,e,s,i);else!t.json&&!de.call(i,n)&&de.call(e,n)&&(t.line=o||t.line,t.lineStart=a||t.lineStart,t.position=l||t.position,O(t,"duplicated mapping key")),n==="__proto__"?Object.defineProperty(e,n,{configurable:!0,enumerable:!0,writable:!0,value:s}):e[n]=s,delete i[n];return e}function No(t){var e;e=t.input.charCodeAt(t.position),e===10?t.position++:e===13?(t.position++,t.input.charCodeAt(t.position)===10&&t.position++):O(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function J(t,e,i){for(var r=0,n=t.input.charCodeAt(t.position);n!==0;){for(;xe(n);)n===9&&t.firstTabInLine===-1&&(t.firstTabInLine=t.position),n=t.input.charCodeAt(++t.position);if(e&&n===35)do n=t.input.charCodeAt(++t.position);while(n!==10&&n!==13&&n!==0);if(Wt(n))for(No(t),n=t.input.charCodeAt(t.position),r++,t.lineIndent=0;n===32;)t.lineIndent++,n=t.input.charCodeAt(++t.position);else break}return i!==-1&&r!==0&&t.lineIndent<i&&Fr(t,"deficient indentation"),r}function on(t){var e=t.position,i;return i=t.input.charCodeAt(e),!!((i===45||i===46)&&i===t.input.charCodeAt(e+1)&&i===t.input.charCodeAt(e+2)&&(e+=3,i=t.input.charCodeAt(e),i===0||Ct(i)))}function Po(t,e){e===1?t.result+=" ":e>1&&(t.result+=dt.repeat(`
80
- `,e-1))}function Ob(t,e,i){var r,n,s,o,a,l,c,h,d=t.kind,u=t.result,f;if(f=t.input.charCodeAt(t.position),Ct(f)||De(f)||f===35||f===38||f===42||f===33||f===124||f===62||f===39||f===34||f===37||f===64||f===96||(f===63||f===45)&&(n=t.input.charCodeAt(t.position+1),Ct(n)||i&&De(n)))return!1;for(t.kind="scalar",t.result="",s=o=t.position,a=!1;f!==0;){if(f===58){if(n=t.input.charCodeAt(t.position+1),Ct(n)||i&&De(n))break}else if(f===35){if(r=t.input.charCodeAt(t.position-1),Ct(r))break}else{if(t.position===t.lineStart&&on(t)||i&&De(f))break;if(Wt(f))if(l=t.line,c=t.lineStart,h=t.lineIndent,J(t,!1,-1),t.lineIndent>=e){a=!0,f=t.input.charCodeAt(t.position);continue}else{t.position=o,t.line=l,t.lineStart=c,t.lineIndent=h;break}}a&&(he(t,s,o,!1),Po(t,t.line-l),s=o=t.position,a=!1),xe(f)||(o=t.position+1),f=t.input.charCodeAt(++t.position)}return he(t,s,o,!1),t.result?!0:(t.kind=d,t.result=u,!1)}function Ib(t,e){var i,r,n;if(i=t.input.charCodeAt(t.position),i!==39)return!1;for(t.kind="scalar",t.result="",t.position++,r=n=t.position;(i=t.input.charCodeAt(t.position))!==0;)if(i===39)if(he(t,r,t.position,!0),i=t.input.charCodeAt(++t.position),i===39)r=t.position,t.position++,n=t.position;else return!0;else Wt(i)?(he(t,r,n,!0),Po(t,J(t,!1,e)),r=n=t.position):t.position===t.lineStart&&on(t)?O(t,"unexpected end of the document within a single quoted scalar"):(t.position++,n=t.position);O(t,"unexpected end of the stream within a single quoted scalar")}function Mb(t,e){var i,r,n,s,o,a;if(a=t.input.charCodeAt(t.position),a!==34)return!1;for(t.kind="scalar",t.result="",t.position++,i=r=t.position;(a=t.input.charCodeAt(t.position))!==0;){if(a===34)return he(t,i,t.position,!0),t.position++,!0;if(a===92){if(he(t,i,t.position,!0),a=t.input.charCodeAt(++t.position),Wt(a))J(t,!1,e);else if(a<256&&dh[a])t.result+=fh[a],t.position++;else if((o=Bb(a))>0){for(n=o,s=0;n>0;n--)a=t.input.charCodeAt(++t.position),(o=Ab(a))>=0?s=(s<<4)+o:O(t,"expected hexadecimal character");t.result+=Lb(s),t.position++}else O(t,"unknown escape sequence");i=r=t.position}else Wt(a)?(he(t,i,r,!0),Po(t,J(t,!1,e)),i=r=t.position):t.position===t.lineStart&&on(t)?O(t,"unexpected end of the document within a double quoted scalar"):(t.position++,r=t.position)}O(t,"unexpected end of the stream within a double quoted scalar")}function $b(t,e){var i=!0,r,n,s,o=t.tag,a,l=t.anchor,c,h,d,u,f,m=Object.create(null),y,_,L,b;if(b=t.input.charCodeAt(t.position),b===91)h=93,f=!1,a=[];else if(b===123)h=125,f=!0,a={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=a),b=t.input.charCodeAt(++t.position);b!==0;){if(J(t,!0,e),b=t.input.charCodeAt(t.position),b===h)return t.position++,t.tag=o,t.anchor=l,t.kind=f?"mapping":"sequence",t.result=a,!0;i?b===44&&O(t,"expected the node content, but found ','"):O(t,"missed comma between flow collection entries"),_=y=L=null,d=u=!1,b===63&&(c=t.input.charCodeAt(t.position+1),Ct(c)&&(d=u=!0,t.position++,J(t,!0,e))),r=t.line,n=t.lineStart,s=t.position,Qe(t,e,Er,!1,!0),_=t.tag,y=t.result,J(t,!0,e),b=t.input.charCodeAt(t.position),(u||t.line===r)&&b===58&&(d=!0,b=t.input.charCodeAt(++t.position),J(t,!0,e),Qe(t,e,Er,!1,!0),L=t.result),f?Ne(t,a,m,_,y,L,r,n,s):d?a.push(Ne(t,null,m,_,y,L,r,n,s)):a.push(y),J(t,!0,e),b=t.input.charCodeAt(t.position),b===44?(i=!0,b=t.input.charCodeAt(++t.position)):i=!1}O(t,"unexpected end of the stream within a flow collection")}function Db(t,e){var i,r,n=En,s=!1,o=!1,a=e,l=0,c=!1,h,d;if(d=t.input.charCodeAt(t.position),d===124)r=!1;else if(d===62)r=!0;else return!1;for(t.kind="scalar",t.result="";d!==0;)if(d=t.input.charCodeAt(++t.position),d===43||d===45)En===n?n=d===43?ha:vb:O(t,"repeat of a chomping mode identifier");else if((h=Eb(d))>=0)h===0?O(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?O(t,"repeat of an indentation width identifier"):(a=e+h-1,o=!0);else break;if(xe(d)){do d=t.input.charCodeAt(++t.position);while(xe(d));if(d===35)do d=t.input.charCodeAt(++t.position);while(!Wt(d)&&d!==0)}for(;d!==0;){for(No(t),t.lineIndent=0,d=t.input.charCodeAt(t.position);(!o||t.lineIndent<a)&&d===32;)t.lineIndent++,d=t.input.charCodeAt(++t.position);if(!o&&t.lineIndent>a&&(a=t.lineIndent),Wt(d)){l++;continue}if(t.lineIndent<a){n===ha?t.result+=dt.repeat(`
81
- `,s?1+l:l):n===En&&s&&(t.result+=`
82
- `);break}for(r?xe(d)?(c=!0,t.result+=dt.repeat(`
83
- `,s?1+l:l)):c?(c=!1,t.result+=dt.repeat(`
84
- `,l+1)):l===0?s&&(t.result+=" "):t.result+=dt.repeat(`
76
+ `,l=1;l<=e.linesAfter&&!(s+l>=n.length);l++)c=Bn(t.buffer,r[s+l],n[s+l],t.position-(r[s]-r[s+l]),d),a+=dt.repeat(" ",e.indent)+En((t.line+l+1).toString(),h)+" | "+c.str+`
77
+ `;return a.replace(/\n$/,"")}var _x=yx,Cx=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],xx=["scalar","sequence","mapping"];function bx(t){var e={};return t!==null&&Object.keys(t).forEach(function(i){t[i].forEach(function(r){e[String(r)]=i})}),e}function Tx(t,e){if(e=e||{},Object.keys(e).forEach(function(i){if(Cx.indexOf(i)===-1)throw new ee('Unknown option "'+i+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(i){return i},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=bx(e.styleAliases||null),xx.indexOf(this.kind)===-1)throw new ee('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var ht=Tx;function ca(t,e){var i=[];return t[e].forEach(function(r){var n=i.length;i.forEach(function(o,s){o.tag===r.tag&&o.kind===r.kind&&o.multi===r.multi&&(n=s)}),i[n]=r}),i}function vx(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,i;function r(n){n.multi?(t.multi[n.kind].push(n),t.multi.fallback.push(n)):t[n.kind][n.tag]=t.fallback[n.tag]=n}for(e=0,i=arguments.length;e<i;e+=1)arguments[e].forEach(r);return t}function no(t){return this.extend(t)}no.prototype.extend=function(e){var i=[],r=[];if(e instanceof ht)r.push(e);else if(Array.isArray(e))r=r.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(i=i.concat(e.implicit)),e.explicit&&(r=r.concat(e.explicit));else throw new ee("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");i.forEach(function(o){if(!(o instanceof ht))throw new ee("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(o.loadKind&&o.loadKind!=="scalar")throw new ee("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(o.multi)throw new ee("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(o){if(!(o instanceof ht))throw new ee("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var n=Object.create(no.prototype);return n.implicit=(this.implicit||[]).concat(i),n.explicit=(this.explicit||[]).concat(r),n.compiledImplicit=ca(n,"implicit"),n.compiledExplicit=ca(n,"explicit"),n.compiledTypeMap=vx(n.compiledImplicit,n.compiledExplicit),n};var Sx=no,kx=new ht("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),wx=new ht("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),Ax=new ht("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),Bx=new Sx({explicit:[kx,wx,Ax]});function Ex(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function Lx(){return null}function Fx(t){return t===null}var Ox=new ht("tag:yaml.org,2002:null",{kind:"scalar",resolve:Ex,construct:Lx,predicate:Fx,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function Ix(t){if(t===null)return!1;var e=t.length;return e===4&&(t==="true"||t==="True"||t==="TRUE")||e===5&&(t==="false"||t==="False"||t==="FALSE")}function Mx(t){return t==="true"||t==="True"||t==="TRUE"}function $x(t){return Object.prototype.toString.call(t)==="[object Boolean]"}var Dx=new ht("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Ix,construct:Mx,predicate:$x,represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"});function Nx(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function Px(t){return 48<=t&&t<=55}function Rx(t){return 48<=t&&t<=57}function qx(t){if(t===null)return!1;var e=t.length,i=0,r=!1,n;if(!e)return!1;if(n=t[i],(n==="-"||n==="+")&&(n=t[++i]),n==="0"){if(i+1===e)return!0;if(n=t[++i],n==="b"){for(i++;i<e;i++)if(n=t[i],n!=="_"){if(n!=="0"&&n!=="1")return!1;r=!0}return r&&n!=="_"}if(n==="x"){for(i++;i<e;i++)if(n=t[i],n!=="_"){if(!Nx(t.charCodeAt(i)))return!1;r=!0}return r&&n!=="_"}if(n==="o"){for(i++;i<e;i++)if(n=t[i],n!=="_"){if(!Px(t.charCodeAt(i)))return!1;r=!0}return r&&n!=="_"}}if(n==="_")return!1;for(;i<e;i++)if(n=t[i],n!=="_"){if(!Rx(t.charCodeAt(i)))return!1;r=!0}return!(!r||n==="_")}function zx(t){var e=t,i=1,r;if(e.indexOf("_")!==-1&&(e=e.replace(/_/g,"")),r=e[0],(r==="-"||r==="+")&&(r==="-"&&(i=-1),e=e.slice(1),r=e[0]),e==="0")return 0;if(r==="0"){if(e[1]==="b")return i*parseInt(e.slice(2),2);if(e[1]==="x")return i*parseInt(e.slice(2),16);if(e[1]==="o")return i*parseInt(e.slice(2),8)}return i*parseInt(e,10)}function Wx(t){return Object.prototype.toString.call(t)==="[object Number]"&&t%1===0&&!dt.isNegativeZero(t)}var Hx=new ht("tag:yaml.org,2002:int",{kind:"scalar",resolve:qx,construct:zx,predicate:Wx,represent:{binary:function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},octal:function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},decimal:function(t){return t.toString(10)},hexadecimal:function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Yx=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function jx(t){return!(t===null||!Yx.test(t)||t[t.length-1]==="_")}function Ux(t){var e,i;return e=t.replace(/_/g,"").toLowerCase(),i=e[0]==="-"?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),e===".inf"?i===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:e===".nan"?NaN:i*parseFloat(e,10)}var Xx=/^[-+]?[0-9]+e/;function Gx(t,e){var i;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(dt.isNegativeZero(t))return"-0.0";return i=t.toString(10),Xx.test(i)?i.replace("e",".e"):i}function Vx(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||dt.isNegativeZero(t))}var Kx=new ht("tag:yaml.org,2002:float",{kind:"scalar",resolve:jx,construct:Ux,predicate:Vx,represent:Gx,defaultStyle:"lowercase"}),oh=Bx.extend({implicit:[Ox,Dx,Hx,Kx]}),Zx=oh,sh=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),ah=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function Jx(t){return t===null?!1:sh.exec(t)!==null||ah.exec(t)!==null}function Qx(t){var e,i,r,n,o,s,a,l=0,c=null,h,d,u;if(e=sh.exec(t),e===null&&(e=ah.exec(t)),e===null)throw new Error("Date resolve error");if(i=+e[1],r=+e[2]-1,n=+e[3],!e[4])return new Date(Date.UTC(i,r,n));if(o=+e[4],s=+e[5],a=+e[6],e[7]){for(l=e[7].slice(0,3);l.length<3;)l+="0";l=+l}return e[9]&&(h=+e[10],d=+(e[11]||0),c=(h*60+d)*6e4,e[9]==="-"&&(c=-c)),u=new Date(Date.UTC(i,r,n,o,s,a,l)),c&&u.setTime(u.getTime()-c),u}function tb(t){return t.toISOString()}var eb=new ht("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Jx,construct:Qx,instanceOf:Date,represent:tb});function ib(t){return t==="<<"||t===null}var rb=new ht("tag:yaml.org,2002:merge",{kind:"scalar",resolve:ib}),No=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
78
+ \r`;function nb(t){if(t===null)return!1;var e,i,r=0,n=t.length,o=No;for(i=0;i<n;i++)if(e=o.indexOf(t.charAt(i)),!(e>64)){if(e<0)return!1;r+=6}return r%8===0}function ob(t){var e,i,r=t.replace(/[\r\n=]/g,""),n=r.length,o=No,s=0,a=[];for(e=0;e<n;e++)e%4===0&&e&&(a.push(s>>16&255),a.push(s>>8&255),a.push(s&255)),s=s<<6|o.indexOf(r.charAt(e));return i=n%4*6,i===0?(a.push(s>>16&255),a.push(s>>8&255),a.push(s&255)):i===18?(a.push(s>>10&255),a.push(s>>2&255)):i===12&&a.push(s>>4&255),new Uint8Array(a)}function sb(t){var e="",i=0,r,n,o=t.length,s=No;for(r=0;r<o;r++)r%3===0&&r&&(e+=s[i>>18&63],e+=s[i>>12&63],e+=s[i>>6&63],e+=s[i&63]),i=(i<<8)+t[r];return n=o%3,n===0?(e+=s[i>>18&63],e+=s[i>>12&63],e+=s[i>>6&63],e+=s[i&63]):n===2?(e+=s[i>>10&63],e+=s[i>>4&63],e+=s[i<<2&63],e+=s[64]):n===1&&(e+=s[i>>2&63],e+=s[i<<4&63],e+=s[64],e+=s[64]),e}function ab(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var lb=new ht("tag:yaml.org,2002:binary",{kind:"scalar",resolve:nb,construct:ob,predicate:ab,represent:sb}),cb=Object.prototype.hasOwnProperty,hb=Object.prototype.toString;function ub(t){if(t===null)return!0;var e=[],i,r,n,o,s,a=t;for(i=0,r=a.length;i<r;i+=1){if(n=a[i],s=!1,hb.call(n)!=="[object Object]")return!1;for(o in n)if(cb.call(n,o))if(!s)s=!0;else return!1;if(!s)return!1;if(e.indexOf(o)===-1)e.push(o);else return!1}return!0}function db(t){return t!==null?t:[]}var fb=new ht("tag:yaml.org,2002:omap",{kind:"sequence",resolve:ub,construct:db}),pb=Object.prototype.toString;function gb(t){if(t===null)return!0;var e,i,r,n,o,s=t;for(o=new Array(s.length),e=0,i=s.length;e<i;e+=1){if(r=s[e],pb.call(r)!=="[object Object]"||(n=Object.keys(r),n.length!==1))return!1;o[e]=[n[0],r[n[0]]]}return!0}function mb(t){if(t===null)return[];var e,i,r,n,o,s=t;for(o=new Array(s.length),e=0,i=s.length;e<i;e+=1)r=s[e],n=Object.keys(r),o[e]=[n[0],r[n[0]]];return o}var yb=new ht("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:gb,construct:mb}),_b=Object.prototype.hasOwnProperty;function Cb(t){if(t===null)return!0;var e,i=t;for(e in i)if(_b.call(i,e)&&i[e]!==null)return!1;return!0}function xb(t){return t!==null?t:{}}var bb=new ht("tag:yaml.org,2002:set",{kind:"mapping",resolve:Cb,construct:xb}),Tb=Zx.extend({implicit:[eb,rb],explicit:[lb,fb,yb,bb]}),de=Object.prototype.hasOwnProperty,Er=1,lh=2,ch=3,Lr=4,Ln=1,vb=2,ha=3,Sb=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,kb=/[\x85\u2028\u2029]/,wb=/[,\[\]\{\}]/,hh=/^(?:!|!!|![a-z\-]+!)$/i,uh=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function ua(t){return Object.prototype.toString.call(t)}function Wt(t){return t===10||t===13}function be(t){return t===9||t===32}function Ct(t){return t===9||t===32||t===10||t===13}function Ne(t){return t===44||t===91||t===93||t===123||t===125}function Ab(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}function Bb(t){return t===120?2:t===117?4:t===85?8:0}function Eb(t){return 48<=t&&t<=57?t-48:-1}function da(t){return t===48?"\0":t===97?"\x07":t===98?"\b":t===116||t===9?" ":t===110?`
79
+ `:t===118?"\v":t===102?"\f":t===114?"\r":t===101?"\x1B":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?"…":t===95?" ":t===76?"\u2028":t===80?"\u2029":""}function Lb(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}var dh=new Array(256),fh=new Array(256);for(var $e=0;$e<256;$e++)dh[$e]=da($e)?1:0,fh[$e]=da($e);function Fb(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||Tb,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function ph(t,e){var i={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return i.snippet=_x(i),new ee(e,i)}function O(t,e){throw ph(t,e)}function Fr(t,e){t.onWarning&&t.onWarning.call(null,ph(t,e))}var fa={YAML:function(e,i,r){var n,o,s;e.version!==null&&O(e,"duplication of %YAML directive"),r.length!==1&&O(e,"YAML directive accepts exactly one argument"),n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]),n===null&&O(e,"ill-formed argument of the YAML directive"),o=parseInt(n[1],10),s=parseInt(n[2],10),o!==1&&O(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=s<2,s!==1&&s!==2&&Fr(e,"unsupported YAML version of the document")},TAG:function(e,i,r){var n,o;r.length!==2&&O(e,"TAG directive accepts exactly two arguments"),n=r[0],o=r[1],hh.test(n)||O(e,"ill-formed tag handle (first argument) of the TAG directive"),de.call(e.tagMap,n)&&O(e,'there is a previously declared suffix for "'+n+'" tag handle'),uh.test(o)||O(e,"ill-formed tag prefix (second argument) of the TAG directive");try{o=decodeURIComponent(o)}catch{O(e,"tag prefix is malformed: "+o)}e.tagMap[n]=o}};function he(t,e,i,r){var n,o,s,a;if(e<i){if(a=t.input.slice(e,i),r)for(n=0,o=a.length;n<o;n+=1)s=a.charCodeAt(n),s===9||32<=s&&s<=1114111||O(t,"expected valid JSON character");else Sb.test(a)&&O(t,"the stream contains non-printable characters");t.result+=a}}function pa(t,e,i,r){var n,o,s,a;for(dt.isObject(i)||O(t,"cannot merge mappings; the provided source object is unacceptable"),n=Object.keys(i),s=0,a=n.length;s<a;s+=1)o=n[s],de.call(e,o)||(e[o]=i[o],r[o]=!0)}function Pe(t,e,i,r,n,o,s,a,l){var c,h;if(Array.isArray(n))for(n=Array.prototype.slice.call(n),c=0,h=n.length;c<h;c+=1)Array.isArray(n[c])&&O(t,"nested arrays are not supported inside keys"),typeof n=="object"&&ua(n[c])==="[object Object]"&&(n[c]="[object Object]");if(typeof n=="object"&&ua(n)==="[object Object]"&&(n="[object Object]"),n=String(n),e===null&&(e={}),r==="tag:yaml.org,2002:merge")if(Array.isArray(o))for(c=0,h=o.length;c<h;c+=1)pa(t,e,o[c],i);else pa(t,e,o,i);else!t.json&&!de.call(i,n)&&de.call(e,n)&&(t.line=s||t.line,t.lineStart=a||t.lineStart,t.position=l||t.position,O(t,"duplicated mapping key")),n==="__proto__"?Object.defineProperty(e,n,{configurable:!0,enumerable:!0,writable:!0,value:o}):e[n]=o,delete i[n];return e}function Po(t){var e;e=t.input.charCodeAt(t.position),e===10?t.position++:e===13?(t.position++,t.input.charCodeAt(t.position)===10&&t.position++):O(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function Q(t,e,i){for(var r=0,n=t.input.charCodeAt(t.position);n!==0;){for(;be(n);)n===9&&t.firstTabInLine===-1&&(t.firstTabInLine=t.position),n=t.input.charCodeAt(++t.position);if(e&&n===35)do n=t.input.charCodeAt(++t.position);while(n!==10&&n!==13&&n!==0);if(Wt(n))for(Po(t),n=t.input.charCodeAt(t.position),r++,t.lineIndent=0;n===32;)t.lineIndent++,n=t.input.charCodeAt(++t.position);else break}return i!==-1&&r!==0&&t.lineIndent<i&&Fr(t,"deficient indentation"),r}function on(t){var e=t.position,i;return i=t.input.charCodeAt(e),!!((i===45||i===46)&&i===t.input.charCodeAt(e+1)&&i===t.input.charCodeAt(e+2)&&(e+=3,i=t.input.charCodeAt(e),i===0||Ct(i)))}function Ro(t,e){e===1?t.result+=" ":e>1&&(t.result+=dt.repeat(`
80
+ `,e-1))}function Ob(t,e,i){var r,n,o,s,a,l,c,h,d=t.kind,u=t.result,f;if(f=t.input.charCodeAt(t.position),Ct(f)||Ne(f)||f===35||f===38||f===42||f===33||f===124||f===62||f===39||f===34||f===37||f===64||f===96||(f===63||f===45)&&(n=t.input.charCodeAt(t.position+1),Ct(n)||i&&Ne(n)))return!1;for(t.kind="scalar",t.result="",o=s=t.position,a=!1;f!==0;){if(f===58){if(n=t.input.charCodeAt(t.position+1),Ct(n)||i&&Ne(n))break}else if(f===35){if(r=t.input.charCodeAt(t.position-1),Ct(r))break}else{if(t.position===t.lineStart&&on(t)||i&&Ne(f))break;if(Wt(f))if(l=t.line,c=t.lineStart,h=t.lineIndent,Q(t,!1,-1),t.lineIndent>=e){a=!0,f=t.input.charCodeAt(t.position);continue}else{t.position=s,t.line=l,t.lineStart=c,t.lineIndent=h;break}}a&&(he(t,o,s,!1),Ro(t,t.line-l),o=s=t.position,a=!1),be(f)||(s=t.position+1),f=t.input.charCodeAt(++t.position)}return he(t,o,s,!1),t.result?!0:(t.kind=d,t.result=u,!1)}function Ib(t,e){var i,r,n;if(i=t.input.charCodeAt(t.position),i!==39)return!1;for(t.kind="scalar",t.result="",t.position++,r=n=t.position;(i=t.input.charCodeAt(t.position))!==0;)if(i===39)if(he(t,r,t.position,!0),i=t.input.charCodeAt(++t.position),i===39)r=t.position,t.position++,n=t.position;else return!0;else Wt(i)?(he(t,r,n,!0),Ro(t,Q(t,!1,e)),r=n=t.position):t.position===t.lineStart&&on(t)?O(t,"unexpected end of the document within a single quoted scalar"):(t.position++,n=t.position);O(t,"unexpected end of the stream within a single quoted scalar")}function Mb(t,e){var i,r,n,o,s,a;if(a=t.input.charCodeAt(t.position),a!==34)return!1;for(t.kind="scalar",t.result="",t.position++,i=r=t.position;(a=t.input.charCodeAt(t.position))!==0;){if(a===34)return he(t,i,t.position,!0),t.position++,!0;if(a===92){if(he(t,i,t.position,!0),a=t.input.charCodeAt(++t.position),Wt(a))Q(t,!1,e);else if(a<256&&dh[a])t.result+=fh[a],t.position++;else if((s=Bb(a))>0){for(n=s,o=0;n>0;n--)a=t.input.charCodeAt(++t.position),(s=Ab(a))>=0?o=(o<<4)+s:O(t,"expected hexadecimal character");t.result+=Lb(o),t.position++}else O(t,"unknown escape sequence");i=r=t.position}else Wt(a)?(he(t,i,r,!0),Ro(t,Q(t,!1,e)),i=r=t.position):t.position===t.lineStart&&on(t)?O(t,"unexpected end of the document within a double quoted scalar"):(t.position++,r=t.position)}O(t,"unexpected end of the stream within a double quoted scalar")}function $b(t,e){var i=!0,r,n,o,s=t.tag,a,l=t.anchor,c,h,d,u,f,m=Object.create(null),y,_,L,b;if(b=t.input.charCodeAt(t.position),b===91)h=93,f=!1,a=[];else if(b===123)h=125,f=!0,a={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=a),b=t.input.charCodeAt(++t.position);b!==0;){if(Q(t,!0,e),b=t.input.charCodeAt(t.position),b===h)return t.position++,t.tag=s,t.anchor=l,t.kind=f?"mapping":"sequence",t.result=a,!0;i?b===44&&O(t,"expected the node content, but found ','"):O(t,"missed comma between flow collection entries"),_=y=L=null,d=u=!1,b===63&&(c=t.input.charCodeAt(t.position+1),Ct(c)&&(d=u=!0,t.position++,Q(t,!0,e))),r=t.line,n=t.lineStart,o=t.position,ti(t,e,Er,!1,!0),_=t.tag,y=t.result,Q(t,!0,e),b=t.input.charCodeAt(t.position),(u||t.line===r)&&b===58&&(d=!0,b=t.input.charCodeAt(++t.position),Q(t,!0,e),ti(t,e,Er,!1,!0),L=t.result),f?Pe(t,a,m,_,y,L,r,n,o):d?a.push(Pe(t,null,m,_,y,L,r,n,o)):a.push(y),Q(t,!0,e),b=t.input.charCodeAt(t.position),b===44?(i=!0,b=t.input.charCodeAt(++t.position)):i=!1}O(t,"unexpected end of the stream within a flow collection")}function Db(t,e){var i,r,n=Ln,o=!1,s=!1,a=e,l=0,c=!1,h,d;if(d=t.input.charCodeAt(t.position),d===124)r=!1;else if(d===62)r=!0;else return!1;for(t.kind="scalar",t.result="";d!==0;)if(d=t.input.charCodeAt(++t.position),d===43||d===45)Ln===n?n=d===43?ha:vb:O(t,"repeat of a chomping mode identifier");else if((h=Eb(d))>=0)h===0?O(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?O(t,"repeat of an indentation width identifier"):(a=e+h-1,s=!0);else break;if(be(d)){do d=t.input.charCodeAt(++t.position);while(be(d));if(d===35)do d=t.input.charCodeAt(++t.position);while(!Wt(d)&&d!==0)}for(;d!==0;){for(Po(t),t.lineIndent=0,d=t.input.charCodeAt(t.position);(!s||t.lineIndent<a)&&d===32;)t.lineIndent++,d=t.input.charCodeAt(++t.position);if(!s&&t.lineIndent>a&&(a=t.lineIndent),Wt(d)){l++;continue}if(t.lineIndent<a){n===ha?t.result+=dt.repeat(`
81
+ `,o?1+l:l):n===Ln&&o&&(t.result+=`
82
+ `);break}for(r?be(d)?(c=!0,t.result+=dt.repeat(`
83
+ `,o?1+l:l)):c?(c=!1,t.result+=dt.repeat(`
84
+ `,l+1)):l===0?o&&(t.result+=" "):t.result+=dt.repeat(`
85
85
  `,l):t.result+=dt.repeat(`
86
- `,s?1+l:l),s=!0,o=!0,l=0,i=t.position;!Wt(d)&&d!==0;)d=t.input.charCodeAt(++t.position);he(t,i,t.position,!1)}return!0}function ga(t,e){var i,r=t.tag,n=t.anchor,s=[],o,a=!1,l;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=s),l=t.input.charCodeAt(t.position);l!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,O(t,"tab characters must not be used in indentation")),!(l!==45||(o=t.input.charCodeAt(t.position+1),!Ct(o))));){if(a=!0,t.position++,J(t,!0,-1)&&t.lineIndent<=e){s.push(null),l=t.input.charCodeAt(t.position);continue}if(i=t.line,Qe(t,e,ch,!1,!0),s.push(t.result),J(t,!0,-1),l=t.input.charCodeAt(t.position),(t.line===i||t.lineIndent>e)&&l!==0)O(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return a?(t.tag=r,t.anchor=n,t.kind="sequence",t.result=s,!0):!1}function Nb(t,e,i){var r,n,s,o,a,l,c=t.tag,h=t.anchor,d={},u=Object.create(null),f=null,m=null,y=null,_=!1,L=!1,b;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=d),b=t.input.charCodeAt(t.position);b!==0;){if(!_&&t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,O(t,"tab characters must not be used in indentation")),r=t.input.charCodeAt(t.position+1),s=t.line,(b===63||b===58)&&Ct(r))b===63?(_&&(Ne(t,d,u,f,m,null,o,a,l),f=m=y=null),L=!0,_=!0,n=!0):_?(_=!1,n=!0):O(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,b=r;else{if(o=t.line,a=t.lineStart,l=t.position,!Qe(t,i,lh,!1,!0))break;if(t.line===s){for(b=t.input.charCodeAt(t.position);xe(b);)b=t.input.charCodeAt(++t.position);if(b===58)b=t.input.charCodeAt(++t.position),Ct(b)||O(t,"a whitespace character is expected after the key-value separator within a block mapping"),_&&(Ne(t,d,u,f,m,null,o,a,l),f=m=y=null),L=!0,_=!1,n=!1,f=t.tag,m=t.result;else if(L)O(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=c,t.anchor=h,!0}else if(L)O(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=c,t.anchor=h,!0}if((t.line===s||t.lineIndent>e)&&(_&&(o=t.line,a=t.lineStart,l=t.position),Qe(t,e,Lr,!0,n)&&(_?m=t.result:y=t.result),_||(Ne(t,d,u,f,m,y,o,a,l),f=m=y=null),J(t,!0,-1),b=t.input.charCodeAt(t.position)),(t.line===s||t.lineIndent>e)&&b!==0)O(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return _&&Ne(t,d,u,f,m,null,o,a,l),L&&(t.tag=c,t.anchor=h,t.kind="mapping",t.result=d),L}function Pb(t){var e,i=!1,r=!1,n,s,o;if(o=t.input.charCodeAt(t.position),o!==33)return!1;if(t.tag!==null&&O(t,"duplication of a tag property"),o=t.input.charCodeAt(++t.position),o===60?(i=!0,o=t.input.charCodeAt(++t.position)):o===33?(r=!0,n="!!",o=t.input.charCodeAt(++t.position)):n="!",e=t.position,i){do o=t.input.charCodeAt(++t.position);while(o!==0&&o!==62);t.position<t.length?(s=t.input.slice(e,t.position),o=t.input.charCodeAt(++t.position)):O(t,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!Ct(o);)o===33&&(r?O(t,"tag suffix cannot contain exclamation marks"):(n=t.input.slice(e-1,t.position+1),hh.test(n)||O(t,"named tag handle cannot contain such characters"),r=!0,e=t.position+1)),o=t.input.charCodeAt(++t.position);s=t.input.slice(e,t.position),wb.test(s)&&O(t,"tag suffix cannot contain flow indicator characters")}s&&!uh.test(s)&&O(t,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{O(t,"tag name is malformed: "+s)}return i?t.tag=s:de.call(t.tagMap,n)?t.tag=t.tagMap[n]+s:n==="!"?t.tag="!"+s:n==="!!"?t.tag="tag:yaml.org,2002:"+s:O(t,'undeclared tag handle "'+n+'"'),!0}function Rb(t){var e,i;if(i=t.input.charCodeAt(t.position),i!==38)return!1;for(t.anchor!==null&&O(t,"duplication of an anchor property"),i=t.input.charCodeAt(++t.position),e=t.position;i!==0&&!Ct(i)&&!De(i);)i=t.input.charCodeAt(++t.position);return t.position===e&&O(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function qb(t){var e,i,r;if(r=t.input.charCodeAt(t.position),r!==42)return!1;for(r=t.input.charCodeAt(++t.position),e=t.position;r!==0&&!Ct(r)&&!De(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&O(t,"name of an alias node must contain at least one character"),i=t.input.slice(e,t.position),de.call(t.anchorMap,i)||O(t,'unidentified alias "'+i+'"'),t.result=t.anchorMap[i],J(t,!0,-1),!0}function Qe(t,e,i,r,n){var s,o,a,l=1,c=!1,h=!1,d,u,f,m,y,_;if(t.listener!==null&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,s=o=a=Lr===i||ch===i,r&&J(t,!0,-1)&&(c=!0,t.lineIndent>e?l=1:t.lineIndent===e?l=0:t.lineIndent<e&&(l=-1)),l===1)for(;Pb(t)||Rb(t);)J(t,!0,-1)?(c=!0,a=s,t.lineIndent>e?l=1:t.lineIndent===e?l=0:t.lineIndent<e&&(l=-1)):a=!1;if(a&&(a=c||n),(l===1||Lr===i)&&(Er===i||lh===i?y=e:y=e+1,_=t.position-t.lineStart,l===1?a&&(ga(t,_)||Nb(t,_,y))||$b(t,y)?h=!0:(o&&Db(t,y)||Ib(t,y)||Mb(t,y)?h=!0:qb(t)?(h=!0,(t.tag!==null||t.anchor!==null)&&O(t,"alias node should not have any properties")):Ob(t,y,Er===i)&&(h=!0,t.tag===null&&(t.tag="?")),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):l===0&&(h=a&&ga(t,_))),t.tag===null)t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);else if(t.tag==="?"){for(t.result!==null&&t.kind!=="scalar"&&O(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),d=0,u=t.implicitTypes.length;d<u;d+=1)if(m=t.implicitTypes[d],m.resolve(t.result)){t.result=m.construct(t.result),t.tag=m.tag,t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);break}}else if(t.tag!=="!"){if(de.call(t.typeMap[t.kind||"fallback"],t.tag))m=t.typeMap[t.kind||"fallback"][t.tag];else for(m=null,f=t.typeMap.multi[t.kind||"fallback"],d=0,u=f.length;d<u;d+=1)if(t.tag.slice(0,f[d].tag.length)===f[d].tag){m=f[d];break}m||O(t,"unknown tag !<"+t.tag+">"),t.result!==null&&m.kind!==t.kind&&O(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+m.kind+'", not "'+t.kind+'"'),m.resolve(t.result,t.tag)?(t.result=m.construct(t.result,t.tag),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):O(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return t.listener!==null&&t.listener("close",t),t.tag!==null||t.anchor!==null||h}function zb(t){var e=t.position,i,r,n,s=!1,o;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);(o=t.input.charCodeAt(t.position))!==0&&(J(t,!0,-1),o=t.input.charCodeAt(t.position),!(t.lineIndent>0||o!==37));){for(s=!0,o=t.input.charCodeAt(++t.position),i=t.position;o!==0&&!Ct(o);)o=t.input.charCodeAt(++t.position);for(r=t.input.slice(i,t.position),n=[],r.length<1&&O(t,"directive name must not be less than one character in length");o!==0;){for(;xe(o);)o=t.input.charCodeAt(++t.position);if(o===35){do o=t.input.charCodeAt(++t.position);while(o!==0&&!Wt(o));break}if(Wt(o))break;for(i=t.position;o!==0&&!Ct(o);)o=t.input.charCodeAt(++t.position);n.push(t.input.slice(i,t.position))}o!==0&&No(t),de.call(fa,r)?fa[r](t,r,n):Fr(t,'unknown document directive "'+r+'"')}if(J(t,!0,-1),t.lineIndent===0&&t.input.charCodeAt(t.position)===45&&t.input.charCodeAt(t.position+1)===45&&t.input.charCodeAt(t.position+2)===45?(t.position+=3,J(t,!0,-1)):s&&O(t,"directives end mark is expected"),Qe(t,t.lineIndent-1,Lr,!1,!0),J(t,!0,-1),t.checkLineBreaks&&kb.test(t.input.slice(e,t.position))&&Fr(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&on(t)){t.input.charCodeAt(t.position)===46&&(t.position+=3,J(t,!0,-1));return}if(t.position<t.length-1)O(t,"end of the stream or a document separator is expected");else return}function Wb(t,e){t=String(t),e=e||{},t.length!==0&&(t.charCodeAt(t.length-1)!==10&&t.charCodeAt(t.length-1)!==13&&(t+=`
86
+ `,o?1+l:l),o=!0,s=!0,l=0,i=t.position;!Wt(d)&&d!==0;)d=t.input.charCodeAt(++t.position);he(t,i,t.position,!1)}return!0}function ga(t,e){var i,r=t.tag,n=t.anchor,o=[],s,a=!1,l;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=o),l=t.input.charCodeAt(t.position);l!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,O(t,"tab characters must not be used in indentation")),!(l!==45||(s=t.input.charCodeAt(t.position+1),!Ct(s))));){if(a=!0,t.position++,Q(t,!0,-1)&&t.lineIndent<=e){o.push(null),l=t.input.charCodeAt(t.position);continue}if(i=t.line,ti(t,e,ch,!1,!0),o.push(t.result),Q(t,!0,-1),l=t.input.charCodeAt(t.position),(t.line===i||t.lineIndent>e)&&l!==0)O(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return a?(t.tag=r,t.anchor=n,t.kind="sequence",t.result=o,!0):!1}function Nb(t,e,i){var r,n,o,s,a,l,c=t.tag,h=t.anchor,d={},u=Object.create(null),f=null,m=null,y=null,_=!1,L=!1,b;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=d),b=t.input.charCodeAt(t.position);b!==0;){if(!_&&t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,O(t,"tab characters must not be used in indentation")),r=t.input.charCodeAt(t.position+1),o=t.line,(b===63||b===58)&&Ct(r))b===63?(_&&(Pe(t,d,u,f,m,null,s,a,l),f=m=y=null),L=!0,_=!0,n=!0):_?(_=!1,n=!0):O(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,b=r;else{if(s=t.line,a=t.lineStart,l=t.position,!ti(t,i,lh,!1,!0))break;if(t.line===o){for(b=t.input.charCodeAt(t.position);be(b);)b=t.input.charCodeAt(++t.position);if(b===58)b=t.input.charCodeAt(++t.position),Ct(b)||O(t,"a whitespace character is expected after the key-value separator within a block mapping"),_&&(Pe(t,d,u,f,m,null,s,a,l),f=m=y=null),L=!0,_=!1,n=!1,f=t.tag,m=t.result;else if(L)O(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=c,t.anchor=h,!0}else if(L)O(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=c,t.anchor=h,!0}if((t.line===o||t.lineIndent>e)&&(_&&(s=t.line,a=t.lineStart,l=t.position),ti(t,e,Lr,!0,n)&&(_?m=t.result:y=t.result),_||(Pe(t,d,u,f,m,y,s,a,l),f=m=y=null),Q(t,!0,-1),b=t.input.charCodeAt(t.position)),(t.line===o||t.lineIndent>e)&&b!==0)O(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return _&&Pe(t,d,u,f,m,null,s,a,l),L&&(t.tag=c,t.anchor=h,t.kind="mapping",t.result=d),L}function Pb(t){var e,i=!1,r=!1,n,o,s;if(s=t.input.charCodeAt(t.position),s!==33)return!1;if(t.tag!==null&&O(t,"duplication of a tag property"),s=t.input.charCodeAt(++t.position),s===60?(i=!0,s=t.input.charCodeAt(++t.position)):s===33?(r=!0,n="!!",s=t.input.charCodeAt(++t.position)):n="!",e=t.position,i){do s=t.input.charCodeAt(++t.position);while(s!==0&&s!==62);t.position<t.length?(o=t.input.slice(e,t.position),s=t.input.charCodeAt(++t.position)):O(t,"unexpected end of the stream within a verbatim tag")}else{for(;s!==0&&!Ct(s);)s===33&&(r?O(t,"tag suffix cannot contain exclamation marks"):(n=t.input.slice(e-1,t.position+1),hh.test(n)||O(t,"named tag handle cannot contain such characters"),r=!0,e=t.position+1)),s=t.input.charCodeAt(++t.position);o=t.input.slice(e,t.position),wb.test(o)&&O(t,"tag suffix cannot contain flow indicator characters")}o&&!uh.test(o)&&O(t,"tag name cannot contain such characters: "+o);try{o=decodeURIComponent(o)}catch{O(t,"tag name is malformed: "+o)}return i?t.tag=o:de.call(t.tagMap,n)?t.tag=t.tagMap[n]+o:n==="!"?t.tag="!"+o:n==="!!"?t.tag="tag:yaml.org,2002:"+o:O(t,'undeclared tag handle "'+n+'"'),!0}function Rb(t){var e,i;if(i=t.input.charCodeAt(t.position),i!==38)return!1;for(t.anchor!==null&&O(t,"duplication of an anchor property"),i=t.input.charCodeAt(++t.position),e=t.position;i!==0&&!Ct(i)&&!Ne(i);)i=t.input.charCodeAt(++t.position);return t.position===e&&O(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function qb(t){var e,i,r;if(r=t.input.charCodeAt(t.position),r!==42)return!1;for(r=t.input.charCodeAt(++t.position),e=t.position;r!==0&&!Ct(r)&&!Ne(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&O(t,"name of an alias node must contain at least one character"),i=t.input.slice(e,t.position),de.call(t.anchorMap,i)||O(t,'unidentified alias "'+i+'"'),t.result=t.anchorMap[i],Q(t,!0,-1),!0}function ti(t,e,i,r,n){var o,s,a,l=1,c=!1,h=!1,d,u,f,m,y,_;if(t.listener!==null&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,o=s=a=Lr===i||ch===i,r&&Q(t,!0,-1)&&(c=!0,t.lineIndent>e?l=1:t.lineIndent===e?l=0:t.lineIndent<e&&(l=-1)),l===1)for(;Pb(t)||Rb(t);)Q(t,!0,-1)?(c=!0,a=o,t.lineIndent>e?l=1:t.lineIndent===e?l=0:t.lineIndent<e&&(l=-1)):a=!1;if(a&&(a=c||n),(l===1||Lr===i)&&(Er===i||lh===i?y=e:y=e+1,_=t.position-t.lineStart,l===1?a&&(ga(t,_)||Nb(t,_,y))||$b(t,y)?h=!0:(s&&Db(t,y)||Ib(t,y)||Mb(t,y)?h=!0:qb(t)?(h=!0,(t.tag!==null||t.anchor!==null)&&O(t,"alias node should not have any properties")):Ob(t,y,Er===i)&&(h=!0,t.tag===null&&(t.tag="?")),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):l===0&&(h=a&&ga(t,_))),t.tag===null)t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);else if(t.tag==="?"){for(t.result!==null&&t.kind!=="scalar"&&O(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),d=0,u=t.implicitTypes.length;d<u;d+=1)if(m=t.implicitTypes[d],m.resolve(t.result)){t.result=m.construct(t.result),t.tag=m.tag,t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);break}}else if(t.tag!=="!"){if(de.call(t.typeMap[t.kind||"fallback"],t.tag))m=t.typeMap[t.kind||"fallback"][t.tag];else for(m=null,f=t.typeMap.multi[t.kind||"fallback"],d=0,u=f.length;d<u;d+=1)if(t.tag.slice(0,f[d].tag.length)===f[d].tag){m=f[d];break}m||O(t,"unknown tag !<"+t.tag+">"),t.result!==null&&m.kind!==t.kind&&O(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+m.kind+'", not "'+t.kind+'"'),m.resolve(t.result,t.tag)?(t.result=m.construct(t.result,t.tag),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):O(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return t.listener!==null&&t.listener("close",t),t.tag!==null||t.anchor!==null||h}function zb(t){var e=t.position,i,r,n,o=!1,s;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);(s=t.input.charCodeAt(t.position))!==0&&(Q(t,!0,-1),s=t.input.charCodeAt(t.position),!(t.lineIndent>0||s!==37));){for(o=!0,s=t.input.charCodeAt(++t.position),i=t.position;s!==0&&!Ct(s);)s=t.input.charCodeAt(++t.position);for(r=t.input.slice(i,t.position),n=[],r.length<1&&O(t,"directive name must not be less than one character in length");s!==0;){for(;be(s);)s=t.input.charCodeAt(++t.position);if(s===35){do s=t.input.charCodeAt(++t.position);while(s!==0&&!Wt(s));break}if(Wt(s))break;for(i=t.position;s!==0&&!Ct(s);)s=t.input.charCodeAt(++t.position);n.push(t.input.slice(i,t.position))}s!==0&&Po(t),de.call(fa,r)?fa[r](t,r,n):Fr(t,'unknown document directive "'+r+'"')}if(Q(t,!0,-1),t.lineIndent===0&&t.input.charCodeAt(t.position)===45&&t.input.charCodeAt(t.position+1)===45&&t.input.charCodeAt(t.position+2)===45?(t.position+=3,Q(t,!0,-1)):o&&O(t,"directives end mark is expected"),ti(t,t.lineIndent-1,Lr,!1,!0),Q(t,!0,-1),t.checkLineBreaks&&kb.test(t.input.slice(e,t.position))&&Fr(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&on(t)){t.input.charCodeAt(t.position)===46&&(t.position+=3,Q(t,!0,-1));return}if(t.position<t.length-1)O(t,"end of the stream or a document separator is expected");else return}function Wb(t,e){t=String(t),e=e||{},t.length!==0&&(t.charCodeAt(t.length-1)!==10&&t.charCodeAt(t.length-1)!==13&&(t+=`
87
87
  `),t.charCodeAt(0)===65279&&(t=t.slice(1)));var i=new Fb(t,e),r=t.indexOf("\0");for(r!==-1&&(i.position=r,O(i,"null byte is not allowed in input")),i.input+="\0";i.input.charCodeAt(i.position)===32;)i.lineIndent+=1,i.position+=1;for(;i.position<i.length-1;)zb(i);return i.documents}function Hb(t,e){var i=Wb(t,e);if(i.length!==0){if(i.length===1)return i[0];throw new ee("expected a single document in the stream, but found more")}}var Yb=Hb,jb={load:Yb},Ub=oh,Xb=jb.load;function Gb(t){const e=t.match(ic);if(!e)return{text:t,metadata:{}};let i=Xb(e[1],{schema:Ub})??{};i=typeof i=="object"&&!Array.isArray(i)?i:{};const r={};return i.displayMode&&(r.displayMode=i.displayMode.toString()),i.title&&(r.title=i.title.toString()),i.config&&(r.config=i.config),{text:t.slice(e[0].length),metadata:r}}const Vb=t=>t.replace(/\r\n?/g,`
88
- `).replace(/<(\w+)([^>]*)>/g,(e,i,r)=>"<"+i+r.replace(/="([^"]*)"/g,"='$1'")+">"),Kb=t=>{const{text:e,metadata:i}=Gb(t),{displayMode:r,title:n,config:s={}}=i;return r&&(s.gantt||(s.gantt={}),s.gantt.displayMode=r),{title:n,config:s,text:e}},Zb=t=>{const e=We.detectInit(t)??{},i=We.detectDirective(t,"wrap");return Array.isArray(i)?e.wrap=i.some(({type:r})=>{}):(i==null?void 0:i.type)==="wrap"&&(e.wrap=!0),{text:Py(t),directive:e}};function gh(t){const e=Vb(t),i=Kb(e),r=Zb(i.text),n=Bo(i.config,r.directive);return t=ox(r.text),{code:t,title:i.title,config:n}}const Jb=5e4,Qb="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",t1="sandbox",e1="loose",i1="http://www.w3.org/2000/svg",r1="http://www.w3.org/1999/xlink",n1="http://www.w3.org/1999/xhtml",o1="100%",s1="100%",a1="border:0;margin:0;",l1="margin:0",c1="allow-top-navigation-by-user-activation allow-popups",h1='The "iframe" tag is not supported by your browser.',u1=["foreignobject"],d1=["dominant-baseline"];function mh(t){const e=gh(t);return wr(),r_(e.config??{}),e}async function f1(t,e){$o(),t=mh(t).code;try{await Ro(t)}catch(i){if(e!=null&&e.suppressErrors)return!1;throw i}return!0}const ma=(t,e,i=[])=>`
88
+ `).replace(/<(\w+)([^>]*)>/g,(e,i,r)=>"<"+i+r.replace(/="([^"]*)"/g,"='$1'")+">"),Kb=t=>{const{text:e,metadata:i}=Gb(t),{displayMode:r,title:n,config:o={}}=i;return r&&(o.gantt||(o.gantt={}),o.gantt.displayMode=r),{title:n,config:o,text:e}},Zb=t=>{const e=He.detectInit(t)??{},i=He.detectDirective(t,"wrap");return Array.isArray(i)?e.wrap=i.some(({type:r})=>{}):(i==null?void 0:i.type)==="wrap"&&(e.wrap=!0),{text:Py(t),directive:e}};function gh(t){const e=Vb(t),i=Kb(e),r=Zb(i.text),n=Eo(i.config,r.directive);return t=ox(r.text),{code:t,title:i.title,config:n}}const Jb=5e4,Qb="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",t1="sandbox",e1="loose",i1="http://www.w3.org/2000/svg",r1="http://www.w3.org/1999/xlink",n1="http://www.w3.org/1999/xhtml",o1="100%",s1="100%",a1="border:0;margin:0;",l1="margin:0",c1="allow-top-navigation-by-user-activation allow-popups",h1='The "iframe" tag is not supported by your browser.',u1=["foreignobject"],d1=["dominant-baseline"];function mh(t){const e=gh(t);return wr(),r_(e.config??{}),e}async function f1(t,e){Do(),t=mh(t).code;try{await qo(t)}catch(i){if(e!=null&&e.suppressErrors)return!1;throw i}return!0}const ma=(t,e,i=[])=>`
89
89
  .${t} ${e} { ${i.join(" !important; ")} !important; }`,p1=(t,e={})=>{var i;let r="";if(t.themeCSS!==void 0&&(r+=`
90
90
  ${t.themeCSS}`),t.fontFamily!==void 0&&(r+=`
91
91
  :root { --mermaid-font-family: ${t.fontFamily}}`),t.altFontFamily!==void 0&&(r+=`
92
- :root { --mermaid-alt-font-family: ${t.altFontFamily}}`),!wn(e)){const a=t.htmlLabels||((i=t.flowchart)==null?void 0:i.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];for(const l in e){const c=e[l];wn(c.styles)||a.forEach(h=>{r+=ma(c.id,h,c.styles)}),wn(c.textStyles)||(r+=ma(c.id,"tspan",c.textStyles))}}return r},g1=(t,e,i,r)=>{const n=p1(t,i),s=TC(e,n,t.themeVariables);return Gn(j0(`${r}{${s}}`),X0)},m1=(t="",e,i)=>{let r=t;return!i&&!e&&(r=r.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),r=mc(r),r=r.replace(/<br>/g,"<br/>"),r},y1=(t="",e)=>{var i,r;const n=(r=(i=e==null?void 0:e.viewBox)==null?void 0:i.baseVal)!=null&&r.height?e.viewBox.baseVal.height+"px":s1,s=btoa('<body style="'+l1+'">'+t+"</body>");return`<iframe style="width:${o1};height:${n};${a1}" src="data:text/html;base64,${s}" sandbox="${c1}">
92
+ :root { --mermaid-alt-font-family: ${t.altFontFamily}}`),!An(e)){const a=t.htmlLabels||((i=t.flowchart)==null?void 0:i.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];for(const l in e){const c=e[l];An(c.styles)||a.forEach(h=>{r+=ma(c.id,h,c.styles)}),An(c.textStyles)||(r+=ma(c.id,"tspan",c.textStyles))}}return r},g1=(t,e,i,r)=>{const n=p1(t,i),o=TC(e,n,t.themeVariables);return Vn(j0(`${r}{${o}}`),X0)},m1=(t="",e,i)=>{let r=t;return!i&&!e&&(r=r.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),r=mc(r),r=r.replace(/<br>/g,"<br/>"),r},y1=(t="",e)=>{var i,r;const n=(r=(i=e==null?void 0:e.viewBox)==null?void 0:i.baseVal)!=null&&r.height?e.viewBox.baseVal.height+"px":s1,o=btoa('<body style="'+l1+'">'+t+"</body>");return`<iframe style="width:${o1};height:${n};${a1}" src="data:text/html;base64,${o}" sandbox="${c1}">
93
93
  ${h1}
94
- </iframe>`},ya=(t,e,i,r,n)=>{const s=t.append("div");s.attr("id",i),r&&s.attr("style",r);const o=s.append("svg").attr("id",e).attr("width","100%").attr("xmlns",i1);return n&&o.attr("xmlns:xlink",n),o.append("g"),t};function _a(t,e){return t.append("iframe").attr("id",e).attr("style","width: 100%; height: 100%;").attr("sandbox","")}const _1=(t,e,i,r)=>{var n,s,o;(n=t.getElementById(e))==null||n.remove(),(s=t.getElementById(i))==null||s.remove(),(o=t.getElementById(r))==null||o.remove()},C1=async function(t,e,i){var r,n,s,o,a,l;$o();const c=mh(e);e=c.code;const h=$t();M.debug(h),e.length>((h==null?void 0:h.maxTextSize)??Jb)&&(e=Qb);const d="#"+t,u="i"+t,f="#"+u,m="d"+t,y="#"+m;let _=bt("body");const L=h.securityLevel===t1,b=h.securityLevel===e1,P=h.fontFamily;if(i!==void 0){if(i&&(i.innerHTML=""),L){const $=_a(bt(i),u);_=bt($.nodes()[0].contentDocument.body),_.node().style.margin=0}else _=bt(i);ya(_,t,m,`font-family: ${P}`,r1)}else{if(_1(document,t,m,u),L){const $=_a(bt("body"),u);_=bt($.nodes()[0].contentDocument.body),_.node().style.margin=0}else _=bt("body");ya(_,t,m)}let C,S;try{C=await Ro(e,{title:c.title})}catch($){C=new ih("error"),S=$}const U=_.select(y).node(),N=C.type,Q=U.firstChild,nt=Q.firstChild,H=(n=(r=C.renderer).getClasses)==null?void 0:n.call(r,e,C),A=g1(h,N,H,d),tt=document.createElement("style");tt.innerHTML=A,Q.insertBefore(tt,nt);try{await C.renderer.draw(e,t,oa,C)}catch($){throw FC.draw(e,t,oa),$}const oe=_.select(`${y} svg`),R=(o=(s=C.db).getAccTitle)==null?void 0:o.call(s),w=(l=(a=C.db).getAccDescription)==null?void 0:l.call(a);b1(N,oe,R,w),_.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns",n1);let T=_.select(y).node().innerHTML;if(M.debug("config.arrowMarkerAbsolute",h.arrowMarkerAbsolute),T=m1(T,L,ko(h.arrowMarkerAbsolute)),L){const $=_.select(y+" svg").node();T=y1(T,$)}else b||(T=Xe.sanitize(T,{ADD_TAGS:u1,ADD_ATTR:d1}));if(ex(),S)throw S;const k=bt(L?f:y).node();return k&&"remove"in k&&k.remove(),{svg:T,bindFunctions:C.db.bindFunctions}};function x1(t={}){var e;t!=null&&t.fontFamily&&!((e=t.themeVariables)!=null&&e.fontFamily)&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),e_(t),t!=null&&t.theme&&t.theme in ie?t.themeVariables=ie[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=ie.default.getThemeVariables(t.themeVariables));const i=typeof t=="object"?t_(t):_c();So(i.logLevel),$o()}const Ro=(t,e={})=>{const{code:i}=gh(t);return tx(i,e)};function b1(t,e,i,r){rx(e,t),nx(e,i,r,e.attr("id"))}const Se=Object.freeze({render:C1,parse:f1,getDiagramFromText:Ro,initialize:x1,getConfig:$t,setConfig:Cc,getSiteConfig:_c,updateSiteConfig:i_,reset:()=>{wr()},globalReset:()=>{wr(Ze)},defaultConfig:Ze});So($t().logLevel);wr($t());const T1=async()=>{M.debug("Loading registered diagrams");const e=(await Promise.allSettled(Object.entries(Ke).map(async([i,{detector:r,loader:n}])=>{if(n)try{Mo(i)}catch{try{const{diagram:o,id:a}=await n();Br(a,o,r)}catch(o){throw M.error(`Failed to load external diagram with key ${i}. Removing from detectors.`),delete Ke[i],o}}}))).filter(i=>i.status==="rejected");if(e.length>0){M.error(`Failed to load ${e.length} external diagrams`);for(const i of e)M.error(i);throw new Error(`Failed to load ${e.length} external diagrams`)}},v1=(t,e,i)=>{M.warn(t),gc(t)?(i&&i(t.str,t.hash),e.push({...t,message:t.str,error:t})):(i&&i(t),t instanceof Error&&e.push({str:t.message,message:t.message,hash:t.name,error:t}))},yh=async function(t={querySelector:".mermaid"}){try{await S1(t)}catch(e){if(gc(e)&&M.error(e.str),Tt.parseError&&Tt.parseError(e),!t.suppressErrors)throw M.error("Use the suppressErrors option to suppress these errors"),e}},S1=async function({postRenderCallback:t,querySelector:e,nodes:i}={querySelector:".mermaid"}){const r=Se.getConfig();M.debug(`${t?"":"No "}Callback function found`);let n;if(i)n=i;else if(e)n=document.querySelectorAll(e);else throw new Error("Nodes and querySelector are both undefined");M.debug(`Found ${n.length} diagrams`),(r==null?void 0:r.startOnLoad)!==void 0&&(M.debug("Start On Load: "+(r==null?void 0:r.startOnLoad)),Se.updateSiteConfig({startOnLoad:r==null?void 0:r.startOnLoad}));const s=new We.InitIDGenerator(r.deterministicIds,r.deterministicIDSeed);let o;const a=[];for(const l of Array.from(n)){M.info("Rendering diagram: "+l.id);/*! Check if previously processed */if(l.getAttribute("data-processed"))continue;l.setAttribute("data-processed","true");const c=`mermaid-${s.next()}`;o=l.innerHTML,o=Sa(We.entityDecode(o)).trim().replace(/<br\s*\/?>/gi,"<br/>");const h=We.detectInit(o);h&&M.debug("Detected early reinit: ",h);try{const{svg:d,bindFunctions:u}=await bh(c,o,l);l.innerHTML=d,t&&await t(c),u&&u(l)}catch(d){v1(d,a,Tt.parseError)}}if(a.length>0)throw a[0]},_h=function(t){Se.initialize(t)},k1=async function(t,e,i){M.warn("mermaid.init is deprecated. Please use run instead."),t&&_h(t);const r={postRenderCallback:i,querySelector:".mermaid"};typeof e=="string"?r.querySelector=e:e&&(e instanceof HTMLElement?r.nodes=[e]:r.nodes=e),await yh(r)},w1=async(t,{lazyLoad:e=!0}={})=>{nc(...t),e===!1&&await T1()},Ch=function(){if(Tt.startOnLoad){const{startOnLoad:t}=Se.getConfig();t&&Tt.run().catch(e=>M.error("Mermaid failed to initialize",e))}};if(typeof document<"u"){/*!
94
+ </iframe>`},ya=(t,e,i,r,n)=>{const o=t.append("div");o.attr("id",i),r&&o.attr("style",r);const s=o.append("svg").attr("id",e).attr("width","100%").attr("xmlns",i1);return n&&s.attr("xmlns:xlink",n),s.append("g"),t};function _a(t,e){return t.append("iframe").attr("id",e).attr("style","width: 100%; height: 100%;").attr("sandbox","")}const _1=(t,e,i,r)=>{var n,o,s;(n=t.getElementById(e))==null||n.remove(),(o=t.getElementById(i))==null||o.remove(),(s=t.getElementById(r))==null||s.remove()},C1=async function(t,e,i){var r,n,o,s,a,l;Do();const c=mh(e);e=c.code;const h=$t();M.debug(h),e.length>((h==null?void 0:h.maxTextSize)??Jb)&&(e=Qb);const d="#"+t,u="i"+t,f="#"+u,m="d"+t,y="#"+m;let _=bt("body");const L=h.securityLevel===t1,b=h.securityLevel===e1,P=h.fontFamily;if(i!==void 0){if(i&&(i.innerHTML=""),L){const $=_a(bt(i),u);_=bt($.nodes()[0].contentDocument.body),_.node().style.margin=0}else _=bt(i);ya(_,t,m,`font-family: ${P}`,r1)}else{if(_1(document,t,m,u),L){const $=_a(bt("body"),u);_=bt($.nodes()[0].contentDocument.body),_.node().style.margin=0}else _=bt("body");ya(_,t,m)}let C,S;try{C=await qo(e,{title:c.title})}catch($){C=new ih("error"),S=$}const U=_.select(y).node(),N=C.type,tt=U.firstChild,nt=tt.firstChild,H=(n=(r=C.renderer).getClasses)==null?void 0:n.call(r,e,C),A=g1(h,N,H,d),et=document.createElement("style");et.innerHTML=A,tt.insertBefore(et,nt);try{await C.renderer.draw(e,t,oa,C)}catch($){throw FC.draw(e,t,oa),$}const oe=_.select(`${y} svg`),R=(s=(o=C.db).getAccTitle)==null?void 0:s.call(o),w=(l=(a=C.db).getAccDescription)==null?void 0:l.call(a);b1(N,oe,R,w),_.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns",n1);let T=_.select(y).node().innerHTML;if(M.debug("config.arrowMarkerAbsolute",h.arrowMarkerAbsolute),T=m1(T,L,wo(h.arrowMarkerAbsolute)),L){const $=_.select(y+" svg").node();T=y1(T,$)}else b||(T=Ge.sanitize(T,{ADD_TAGS:u1,ADD_ATTR:d1}));if(ex(),S)throw S;const k=bt(L?f:y).node();return k&&"remove"in k&&k.remove(),{svg:T,bindFunctions:C.db.bindFunctions}};function x1(t={}){var e;t!=null&&t.fontFamily&&!((e=t.themeVariables)!=null&&e.fontFamily)&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),e_(t),t!=null&&t.theme&&t.theme in ie?t.themeVariables=ie[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=ie.default.getThemeVariables(t.themeVariables));const i=typeof t=="object"?t_(t):_c();ko(i.logLevel),Do()}const qo=(t,e={})=>{const{code:i}=gh(t);return tx(i,e)};function b1(t,e,i,r){rx(e,t),nx(e,i,r,e.attr("id"))}const ke=Object.freeze({render:C1,parse:f1,getDiagramFromText:qo,initialize:x1,getConfig:$t,setConfig:Cc,getSiteConfig:_c,updateSiteConfig:i_,reset:()=>{wr()},globalReset:()=>{wr(Je)},defaultConfig:Je});ko($t().logLevel);wr($t());const T1=async()=>{M.debug("Loading registered diagrams");const e=(await Promise.allSettled(Object.entries(Ze).map(async([i,{detector:r,loader:n}])=>{if(n)try{$o(i)}catch{try{const{diagram:s,id:a}=await n();Br(a,s,r)}catch(s){throw M.error(`Failed to load external diagram with key ${i}. Removing from detectors.`),delete Ze[i],s}}}))).filter(i=>i.status==="rejected");if(e.length>0){M.error(`Failed to load ${e.length} external diagrams`);for(const i of e)M.error(i);throw new Error(`Failed to load ${e.length} external diagrams`)}},v1=(t,e,i)=>{M.warn(t),gc(t)?(i&&i(t.str,t.hash),e.push({...t,message:t.str,error:t})):(i&&i(t),t instanceof Error&&e.push({str:t.message,message:t.message,hash:t.name,error:t}))},yh=async function(t={querySelector:".mermaid"}){try{await S1(t)}catch(e){if(gc(e)&&M.error(e.str),Tt.parseError&&Tt.parseError(e),!t.suppressErrors)throw M.error("Use the suppressErrors option to suppress these errors"),e}},S1=async function({postRenderCallback:t,querySelector:e,nodes:i}={querySelector:".mermaid"}){const r=ke.getConfig();M.debug(`${t?"":"No "}Callback function found`);let n;if(i)n=i;else if(e)n=document.querySelectorAll(e);else throw new Error("Nodes and querySelector are both undefined");M.debug(`Found ${n.length} diagrams`),(r==null?void 0:r.startOnLoad)!==void 0&&(M.debug("Start On Load: "+(r==null?void 0:r.startOnLoad)),ke.updateSiteConfig({startOnLoad:r==null?void 0:r.startOnLoad}));const o=new He.InitIDGenerator(r.deterministicIds,r.deterministicIDSeed);let s;const a=[];for(const l of Array.from(n)){M.info("Rendering diagram: "+l.id);/*! Check if previously processed */if(l.getAttribute("data-processed"))continue;l.setAttribute("data-processed","true");const c=`mermaid-${o.next()}`;s=l.innerHTML,s=Sa(He.entityDecode(s)).trim().replace(/<br\s*\/?>/gi,"<br/>");const h=He.detectInit(s);h&&M.debug("Detected early reinit: ",h);try{const{svg:d,bindFunctions:u}=await bh(c,s,l);l.innerHTML=d,t&&await t(c),u&&u(l)}catch(d){v1(d,a,Tt.parseError)}}if(a.length>0)throw a[0]},_h=function(t){ke.initialize(t)},k1=async function(t,e,i){M.warn("mermaid.init is deprecated. Please use run instead."),t&&_h(t);const r={postRenderCallback:i,querySelector:".mermaid"};typeof e=="string"?r.querySelector=e:e&&(e instanceof HTMLElement?r.nodes=[e]:r.nodes=e),await yh(r)},w1=async(t,{lazyLoad:e=!0}={})=>{nc(...t),e===!1&&await T1()},Ch=function(){if(Tt.startOnLoad){const{startOnLoad:t}=ke.getConfig();t&&Tt.run().catch(e=>M.error("Mermaid failed to initialize",e))}};if(typeof document<"u"){/*!
95
95
  * Wait for document loaded before starting the execution
96
- */window.addEventListener("load",Ch,!1)}const A1=function(t){Tt.parseError=t},Or=[];let Ln=!1;const xh=async()=>{if(!Ln){for(Ln=!0;Or.length>0;){const t=Or.shift();if(t)try{await t()}catch(e){M.error("Error executing queue",e)}}Ln=!1}},B1=async(t,e)=>new Promise((i,r)=>{const n=()=>new Promise((s,o)=>{Se.parse(t,e).then(a=>{s(a),i(a)},a=>{var l;M.error("Error parsing",a),(l=Tt.parseError)==null||l.call(Tt,a),o(a),r(a)})});Or.push(n),xh().catch(r)}),bh=(t,e,i)=>new Promise((r,n)=>{const s=()=>new Promise((o,a)=>{Se.render(t,e,i).then(l=>{o(l),r(l)},l=>{var c;M.error("Error parsing",l),(c=Tt.parseError)==null||c.call(Tt,l),a(l),n(l)})});Or.push(s),xh().catch(n)}),Tt={startOnLoad:!0,mermaidAPI:Se,parse:B1,render:bh,init:k1,run:yh,registerExternalDiagrams:w1,initialize:_h,parseError:void 0,contentLoaded:Ch,setParseErrorHandler:A1,detectType:tn},si=t=>{t=L1(t);const e=t.replace(/#(\d+);/g,"&#$1;").replace(/#([a-z]+);/g,"&$1;"),i=document.createElement("textarea");return i.innerHTML=e,i.value},He=t=>{const e=t.getAttribute("transform"),i=e==null?void 0:e.match(/translate\(([ \d.-]+),\s*([\d.-]+)\)/);let r=0,n=0;return i&&(r=Number(i[1]),n=Number(i[2])),{transformX:r,transformY:n}},E1=t=>{let e=t;return e=e.replace(/style.*:\S*#.*;/g,i=>i.substring(0,i.length-1)),e=e.replace(/classDef.*:\S*#.*;/g,i=>i.substring(0,i.length-1)),e=e.replace(/#\w+;/g,i=>{const r=i.substring(1,i.length-1);return/^\+?\d+$/.test(r)?`fl°°${r}¶ß`:`fl°${r}¶ß`}),e},L1=function(t){return t.replace(/fl°°/g,"#").replace(/fl°/g,"&").replace(/¶ß/g,";")},Th=(t,e={x:0,y:0})=>{if(t.tagName.toLowerCase()!=="path")throw new Error(`Invalid input: Expected an HTMLElement of tag "path", got ${t.tagName}`);const i=t.getAttribute("d");if(!i)throw new Error('Path element does not contain a "d" attribute');const r=i.split(/(?=[LM])/),n=r[0].substring(1).split(",").map(a=>parseFloat(a)),s=r[r.length-1].substring(1).split(",").map(a=>parseFloat(a)),o=r.map(a=>{const l=a.substring(1).split(",").map(c=>parseFloat(c));return{x:l[0],y:l[1]}}).filter((a,l,c)=>{if(l===0||l===c.length-1)return!0;if(a.x===c[l-1].x&&a.y===c[l-1].y)return!1;if(l===c.length-2&&(c[l-1].x===a.x||c[l-1].y===a.y)){const h=c[c.length-1];return Math.hypot(h.x-a.x,h.y-a.y)>20}return a.x!==c[l-1].x||a.y!==c[l-1].y}).map(a=>({x:a.x+e.x,y:a.y+e.y}));return{startX:n[0]+e.x,startY:n[1]+e.y,endX:s[0]+e.x,endY:s[1]+e.y,reflectionPoints:o}},F1=(t,e)=>{const i=t.nodes.map(a=>a.startsWith("flowchart-")?a.split("-")[1]:a),r=e.querySelector(`[id='${t.id}']`);if(!r)throw new Error("SubGraph element not found");const n=qo(r,e),s=r.getBBox(),o={width:s.width,height:s.height};return t.classes=void 0,t.dir=void 0,{...t,nodeIds:i,...n,...o,text:si(t.title)}},O1=(t,e)=>{var d,u,f;const i=e.querySelector(`[id*="flowchart-${t.id}-"]`);if(!i)return;let r;((d=i.parentElement)==null?void 0:d.tagName.toLowerCase())==="a"&&(r=i.parentElement.getAttribute("xlink:href"));const n=qo(r?i.parentElement:i,e),s=i.getBBox(),o={width:s.width,height:s.height},a=(u=i.querySelector(".label-container"))==null?void 0:u.getAttribute("style"),l=(f=i.querySelector(".label"))==null?void 0:f.getAttribute("style"),c={};a==null||a.split(";").forEach(m=>{if(!m)return;const y=m.split(":")[0].trim(),_=m.split(":")[1].trim();c[y]=_});const h={};return l==null||l.split(";").forEach(m=>{if(!m)return;const y=m.split(":")[0].trim(),_=m.split(":")[1].trim();h[y]=_}),{id:t.id,labelType:t.labelType,text:si(t.text),type:t.type,link:r||void 0,...n,...o,containerStyle:c,labelStyle:h}},I1=(t,e,i)=>{const r=i.querySelector(`[id*="L-${t.start}-${t.end}-${e}"]`);if(!r)throw new Error("Edge element not found");const n=qo(r,i),s=Th(r,n);return t.length=void 0,{...t,...s,text:si(t.text)}},qo=(t,e)=>{var l;if(!t)throw new Error("Element not found");let i=(l=t.parentElement)==null?void 0:l.parentElement;const r=t.childNodes[0];let n={x:0,y:0};if(r){const{transformX:c,transformY:h}=He(r),d=r.getBBox();n={x:Number(r.getAttribute("x"))||c+d.x||0,y:Number(r.getAttribute("y"))||h+d.y||0}}const{transformX:s,transformY:o}=He(t),a={x:s+n.x,y:o+n.y};for(;i&&i.id!==e.id;){if(i.classList.value==="root"&&i.hasAttribute("transform")){const{transformX:c,transformY:h}=He(i);a.x+=c,a.y+=h}i=i.parentElement}return a},M1=(t,e)=>{t.parse();const i=t.parser.yy,r=i.getVertices();Object.keys(r).forEach(a=>{r[a]=O1(r[a],e)});const n=new Map,s=i.getEdges().filter(a=>e.querySelector(`[id*="L-${a.start}-${a.end}"]`)).map(a=>{const l=`${a.start}-${a.end}`,c=n.get(l)||0;return n.set(l,c+1),I1(a,c,e)});return{type:"flowchart",subGraphs:i.getSubGraphs().map(a=>F1(a,e)),vertices:r,edges:s}},$1=(t,e)=>{const i={};e!=null&&e.label&&(i.label={text:si(e.label),fontSize:16});const r=t.tagName;if(r==="line")i.startX=Number(t.getAttribute("x1")),i.startY=Number(t.getAttribute("y1")),i.endX=Number(t.getAttribute("x2")),i.endY=Number(t.getAttribute("y2"));else if(r==="path"){const n=t.getAttribute("d");if(!n)throw new Error('Path element does not contain a "d" attribute');const s=n.split(/(?=[LC])/),o=s[0].substring(1).split(",").map(c=>parseFloat(c)),a=[];s.forEach(c=>{const h=c.substring(1).trim().split(" ").map(d=>{const[u,f]=d.split(",");return[parseFloat(u)-o[0],parseFloat(f)-o[1]]});a.push(...h)});const l=a[a.length-1];i.startX=o[0],i.startY=o[1],i.endX=l[0],i.endY=l[1],i.points=a}return e!=null&&e.label&&(i.startY=i.startY-10,i.endY=i.endY-10),i.strokeColor=t.getAttribute("stroke"),i.strokeWidth=Number(t.getAttribute("stroke-width")),i.type="arrow",i.strokeStyle=(e==null?void 0:e.strokeStyle)||"solid",i.startArrowhead=(e==null?void 0:e.startArrowhead)||null,i.endArrowhead=(e==null?void 0:e.endArrowhead)||null,i},vh=(t,e,i,r,n)=>{const s={};return s.type="arrow",s.startX=t,s.startY=e,s.endX=i,s.endY=r,Object.assign(s,{...n}),s},no=(t,e,i,r)=>({type:"text",x:t,y:e,text:i,width:(r==null?void 0:r.width)||20,height:(r==null?void 0:r.height)||20,fontSize:(r==null?void 0:r.fontSize)||Ir,id:r==null?void 0:r.id,groupId:r==null?void 0:r.groupId,metadata:r==null?void 0:r.metadata}),Sh=(t,e,i)=>{const r={},n=Number(t.getAttribute("x")),s=Number(t.getAttribute("y"));r.type="text",r.text=si(e),i!=null&&i.id&&(r.id=i.id),i!=null&&i.groupId&&(r.groupId=i.groupId);const o=t.getBBox();r.width=o.width,r.height=o.height,r.x=n-o.width/2,r.y=s;const a=parseInt(getComputedStyle(t).fontSize);return r.fontSize=a,r},Ht=(t,e,i={})=>{const r={};r.type=e;const{label:n,subtype:s,id:o,groupId:a}=i;r.id=o,a&&(r.groupId=a),n&&(r.label={text:si(n.text),fontSize:16,verticalAlign:n==null?void 0:n.verticalAlign});const l=t.getBBox();switch(r.x=l.x,r.y=l.y,r.width=l.width,r.height=l.height,r.subtype=s,s){case"highlight":const c=t.getAttribute("fill");c&&(r.bgColor=c);break;case"note":r.strokeStyle="dashed";break}return r},Pi=(t,e,i,r,n,s)=>{const o={};return o.startX=e,o.startY=i,o.endX=r,s!=null&&s.groupId&&(o.groupId=s.groupId),s!=null&&s.id&&(o.id=s.id),o.endY=n,o.strokeColor=t.getAttribute("stroke"),o.strokeWidth=Number(t.getAttribute("stroke-width")),o.type="line",o},Ca={0:"SOLID",1:"DOTTED",3:"SOLID_CROSS",4:"DOTTED_CROSS",5:"SOLID_OPEN",6:"DOTTED_OPEN",24:"SOLID_POINT",25:"DOTTED_POINT"},Pt={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,SOLID_POINT:24,DOTTED_POINT:25,CRITICAL_START:27},D1=t=>{let e;switch(t){case Pt.SOLID:case Pt.SOLID_CROSS:case Pt.SOLID_OPEN:case Pt.SOLID_POINT:e="solid";break;case Pt.DOTTED:case Pt.DOTTED_CROSS:case Pt.DOTTED_OPEN:case Pt.DOTTED_POINT:e="dotted";break;default:e="solid";break}return e},N1=(t,e)=>{var r,n;if(!!((r=t.nextElementSibling)!=null&&r.classList.contains("sequenceNumber"))){const s=(n=t.nextElementSibling)==null?void 0:n.textContent;if(!s)throw new Error("sequence number not present");const o=30,a=o/2,c={type:"rectangle",x:e.startX-10,y:e.startY-a,label:{text:s,fontSize:14},bgColor:"#e9ecef",height:o,subtype:"sequence"};Object.assign(e,{sequenceNumber:c})}},xa=(t,e,i)=>{if(!t)throw"root node not found";const r=qt.nanoid(),n=Array.from(t.children),s=[];return n.forEach((o,a)=>{const l=`${i==null?void 0:i.id}-${a}`;let c;switch(o.tagName){case"line":const h=Number(o.getAttribute("x1")),d=Number(o.getAttribute("y1")),u=Number(o.getAttribute("x2")),f=Number(o.getAttribute("y2"));c=Pi(o,h,d,u,f,{groupId:r,id:l});break;case"text":c=Sh(o,e,{groupId:r,id:l});break;case"circle":c=Ht(o,"ellipse",{label:o.textContent?{text:o.textContent}:void 0,groupId:r,id:l});default:c=Ht(o,Mh[o.tagName],{label:o.textContent?{text:o.textContent}:void 0,groupId:r,id:l})}s.push(c)}),s},P1=(t,e)=>{const i=Array.from(e.querySelectorAll(".actor-top")),r=Array.from(e.querySelectorAll(".actor-bottom")),n=[],s=[];return Object.values(t).forEach((o,a)=>{var d;const l=i.find(u=>u.getAttribute("name")===o.name),c=r.find(u=>u.getAttribute("name")===o.name);if(!l||!c)throw"root not found";const h=o.description;if(o.type==="participant"){const u=Ht(l,"rectangle",{id:`${o.name}-top`,label:{text:h},subtype:"actor"});if(!u)throw"Top Node element not found!";n.push([u]);const f=Ht(c,"rectangle",{id:`${o.name}-bottom`,label:{text:h},subtype:"actor"});n.push([f]);const m=(d=l==null?void 0:l.parentElement)==null?void 0:d.previousElementSibling;if((m==null?void 0:m.tagName)!=="line")throw"Line not found";const y=Number(m.getAttribute("x1"));if(!u.height)throw"Top node element height is null";const _=u.y+u.height,L=f.y,b=Number(m.getAttribute("x2")),P=Pi(m,y,_,b,L);s.push(P)}else if(o.type==="actor"){const u=xa(l,h,{id:`${o.name}-top`});n.push(u);const f=xa(c,h,{id:`${o.name}-bottom`});n.push(f);const m=l.previousElementSibling;if((m==null?void 0:m.tagName)!=="line")throw"Line not found";const y=Number(m.getAttribute("x1")),_=Number(m.getAttribute("y1")),L=Number(m.getAttribute("x2")),b=f.find(P=>P.type==="ellipse");if(b){const P=b.y,C=Pi(m,y,_,L,P);s.push(C)}}}),{nodes:n,lines:s}},R1=(t,e)=>{const i=[],r=Array.from(e.querySelectorAll('[class*="messageLine"]')),n=Object.keys(Ca),s=t.filter(o=>n.includes(o.type.toString()));return r.forEach((o,a)=>{const l=s[a],c=Ca[l.type],h=$1(o,{label:l==null?void 0:l.message,strokeStyle:D1(l.type),endArrowhead:c==="SOLID_OPEN"||c==="DOTTED_OPEN"?null:"arrow"});N1(o,h),i.push(h)}),i},q1=(t,e)=>{const i=Array.from(e.querySelectorAll(".note")).map(s=>s.parentElement),r=t.filter(s=>s.type===Pt.NOTE),n=[];return i.forEach((s,o)=>{if(!s)return;const a=s.firstChild,l=r[o].message,c=Ht(a,"rectangle",{label:{text:l},subtype:"note"});n.push(c)}),n},z1=t=>{const e=Array.from(t.querySelectorAll("[class*=activation]")),i=[];return e.forEach(r=>{const n=Ht(r,"rectangle",{label:{text:""},subtype:"activation"});i.push(n)}),i},W1=(t,e)=>{const i=Array.from(e.querySelectorAll(".loopLine")),r=[],n=[],s=[];i.forEach(h=>{const d=Number(h.getAttribute("x1")),u=Number(h.getAttribute("y1")),f=Number(h.getAttribute("x2")),m=Number(h.getAttribute("y2")),y=Pi(h,d,u,f,m);y.strokeStyle="dotted",y.strokeColor="#adb5bd",y.strokeWidth=2,r.push(y)});const o=Array.from(e.querySelectorAll(".loopText")),a=t.filter(h=>h.type===Pt.CRITICAL_START).map(h=>h.message);o.forEach(h=>{var y;const d=h.textContent||"",u=Sh(h,d),f=((y=d.match(/\[(.*?)\]/))==null?void 0:y[1])||"";a.includes(f)&&(u.x+=16),n.push(u)});const l=Array.from(e==null?void 0:e.querySelectorAll(".labelBox")),c=Array.from(e==null?void 0:e.querySelectorAll(".labelText"));return l.forEach((h,d)=>{var m;const u=((m=c[d])==null?void 0:m.textContent)||"",f=Ht(h,"rectangle",{label:{text:u}});f.strokeColor="#adb5bd",f.bgColor="#e9ecef",f.width=void 0,s.push(f)}),{lines:r,texts:n,nodes:s}},H1=t=>{const e=Array.from(t.querySelectorAll(".rect")).filter(r=>{var n;return((n=r.parentElement)==null?void 0:n.tagName)!=="g"}),i=[];return e.forEach(r=>{const n=Ht(r,"rectangle",{label:{text:""},subtype:"highlight"});i.push(n)}),i},Y1=(t,e)=>{t.parse();const i=t.parser.yy,r=[],n=i.getBoxes(),s=H1(e),o=i.getActors(),{nodes:a,lines:l}=P1(o,e),c=i.getMessages(),h=R1(c,e),d=q1(c,e),u=z1(e),f=W1(c,e);return r.push(s),r.push(...a),r.push(d),r.push(u),{type:"sequence",lines:l,arrows:h,nodes:r,loops:f,groups:n}},ir={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},ba={LINE:0,DOTTED_LINE:1},ae=16,j1=t=>{let e;switch(t){case ba.LINE:e="solid";break;case ba.DOTTED_LINE:e="dotted";break;default:e="solid"}return e},Ta=t=>{let e;switch(t){case ir.AGGREGATION:e="diamond_outline";break;case ir.COMPOSITION:e="diamond";break;case ir.EXTENSION:e="triangle_outline";break;case"none":e=null;break;case ir.DEPENDENCY:default:e="arrow";break}return e},U1=(t,e)=>{const i=[],r=[],n=[];return Object.values(t).forEach(s=>{var y;const{domId:o,id:a}=s,l=qt.nanoid(),c=e.querySelector(`[data-id=${a}]`);if(!c)throw Error(`DOM Node with id ${o} not found`);const{transformX:h,transformY:d}=He(c),u=Ht(c.firstChild,"rectangle",{id:a,groupId:l});u.x+=h,u.y+=d,u.metadata={classId:a},i.push(u),Array.from(c.querySelectorAll(".divider")).forEach(_=>{const L=Number(_.getAttribute("x1")),b=Number(_.getAttribute("y1")),P=Number(_.getAttribute("x2")),C=Number(_.getAttribute("y2")),S=Pi(_,L,b,P,C,{groupId:l,id:qt.nanoid()});S.startX+=h,S.startY+=d,S.endX+=h,S.endY+=d,S.metadata={classId:a},r.push(S)});const m=(y=c.querySelector(".label"))==null?void 0:y.children;if(!m)throw"label nodes not found";Array.from(m).forEach(_=>{const L=_.textContent;if(!L)return;const b=qt.nanoid(),{transformX:P,transformY:C}=He(_),S=_.getBBox(),N=no(h+P,d+C+10,L,{width:S.width,height:S.height,id:b,groupId:l,metadata:{classId:a}});n.push(N)})}),{nodes:i,lines:r,text:n}},X1=(t,e)=>{const i=["triangle_outline","diamond","diamond_outline"],r=e.startArrowhead&&i.includes(e.startArrowhead),n=e.endArrowhead&&i.includes(e.endArrowhead);return!n&&!r||(r&&(t==="LR"?e.startX-=ae:t==="RL"?e.startX+=ae:t==="TB"?e.startY-=ae:t==="BT"&&(e.startY+=ae)),n&&(t==="LR"?e.endX+=ae:t==="RL"?e.endX-=ae:t==="TB"?e.endY+=ae:t==="BT"&&(e.endY-=ae))),e},G1=(t,e,i,r)=>{var a;const n=(a=i.querySelector(".edgePaths"))==null?void 0:a.children;if(!n)throw new Error("No Edges found!");const s=[],o=[];return t.forEach((l,c)=>{const{id1:h,id2:d,relation:u}=l,f=e.find(tt=>tt.id===h),m=e.find(tt=>tt.id===d),y=j1(u.lineType),_=Ta(u.type1),L=Ta(u.type2),b=Th(n[c]),P=vh(b.startX,b.startY,b.endX,b.endY,{strokeStyle:y,startArrowhead:_,endArrowhead:L,label:l.title?{text:l.title}:void 0,start:{type:"rectangle",id:f.id},end:{type:"rectangle",id:m.id}}),C=X1(r,P);s.push(C);const{relationTitle1:S,relationTitle2:U}=l,N=20,Q=15,nt=15;let H,A;if(S&&S!=="none"){switch(r){case"TB":H=C.startX-N,C.endX<C.startX&&(H-=nt),A=C.startY+Q;break;case"BT":H=C.startX+N,C.endX>C.startX&&(H+=nt),A=C.startY-Q;break;case"LR":H=C.startX+N,A=C.startY+Q,C.endY>C.startY&&(A+=nt);break;case"RL":H=C.startX-N,A=C.startY-Q,C.startY>C.endY&&(A-=nt);break;default:H=C.startX-N,A=C.startY+Q}const tt=no(H,A,S,{fontSize:16});o.push(tt)}if(U&&U!=="none"){switch(r){case"TB":H=C.endX+N,C.endX<C.startX&&(H+=nt),A=C.endY-Q;break;case"BT":H=C.endX-N,C.endX>C.startX&&(H-=nt),A=C.endY+Q;break;case"LR":H=C.endX-N,A=C.endY-Q,C.endY>C.startY&&(A-=nt);break;case"RL":H=C.endX+N,A=C.endY+Q,C.startY>C.endY&&(A+=nt);break;default:H=C.endX+N,A=C.endY-Q}const tt=no(H,A,U,{fontSize:16});o.push(tt)}}),{arrows:s,text:o}},V1=(t,e,i)=>{const r=[],n=[];return t.forEach(s=>{const{id:o,text:a,class:l}=s,c=e.querySelector(`#${o}`);if(!c)throw new Error(`Node with id ${o} not found!`);const{transformX:h,transformY:d}=He(c),u=c.firstChild,f=Ht(u,"rectangle",{id:o,subtype:"note",label:{text:a}});if(Object.assign(f,{x:f.x+h,y:f.y+d}),r.push(f),l){const m=i.find(C=>C.id===l);if(!m)throw new Error(`class node with id ${l} not found!`);const y=f.x+(f.width||0)/2,_=f.y+(f.height||0),L=y,b=m.y,P=vh(y,_,L,b,{strokeStyle:"dotted",startArrowhead:null,endArrowhead:null,start:{id:f.id,type:"rectangle"},end:{id:m.id,type:"rectangle"}});n.push(P)}}),{notes:r,connectors:n}},K1=(t,e)=>{t.parse();const i=t.parser.yy,r=i.getDirection(),n=[],s=[],o=[],a=[],l=i.getNamespaces(),c=i.getClasses();if(Object.keys(c).length){const y=U1(c,e);n.push(y.nodes),s.push(...y.lines),o.push(...y.text),a.push(...y.nodes)}const h=i.getRelations(),{arrows:d,text:u}=G1(h,a,e,r),{notes:f,connectors:m}=V1(i.getNotes(),e,a);return n.push(f),d.push(...m),o.push(...u),{type:"class",nodes:n,lines:s,arrows:d,text:o,namespaces:l}},Z1=t=>{const e=t.querySelector("svg");if(!e)throw new Error("SVG element not found");const i=e.getBoundingClientRect(),r=i.width,n=i.height;e.setAttribute("width",`${r}`),e.setAttribute("height",`${n}`);const s="image/svg+xml",o=unescape(encodeURIComponent(e.outerHTML)),l=`data:image/svg+xml;base64,${btoa(o)}`;return{type:"graphImage",mimeType:s,dataURL:l,width:r,height:n}},J1=async(t,e=os)=>{Tt.initialize({...os,...e});const i=await Tt.mermaidAPI.getDiagramFromText(E1(t)),{svg:r}=await Tt.render("mermaid-to-excalidraw",t),n=document.createElement("div");n.setAttribute("style","opacity: 0; position: relative; z-index: -1;"),n.innerHTML=r,n.id="mermaid-diagram",document.body.appendChild(n);let s;switch(i.type){case"flowchart-v2":{s=M1(i,n);break}case"sequence":{s=Y1(i,n);break}case"classDiagram":{s=K1(i,n);break}default:s=Z1(n)}return n.remove(),s},Q1=async(t,e)=>{var o;const i=e||{},r=parseInt(((o=i.themeVariables)==null?void 0:o.fontSize)??"")||Ir,n=await J1(t,{...i,themeVariables:{...i.themeVariables,fontSize:`${r*1.25}px`}});return Xh(n,{fontSize:r})},tT=Object.freeze(Object.defineProperty({__proto__:null,parseMermaidToExcalidraw:Q1},Symbol.toStringTag,{value:"Module"}));exports.Color=Mt;exports.Color$1=ti;exports.Rgb=ft;exports.Selection=xt;exports.Stack=Ae;exports.Symbol=Fi;exports.Utils=q;exports.ZERO_WIDTH_SPACE=sc;exports.abs=hp;exports.acos=_p;exports.array=Ba;exports.arrayLikeKeys=Pl;exports.asin=Cp;exports.assignValue=$l;exports.assignWithDepth$1=st;exports.atan2=up;exports.baseKeys=Gl;exports.baseUnary=Il;exports.calculateMathMLDimensions=xy;exports.calculateTextHeight=pc;exports.calculateTextWidth=Di;exports.cleanAndMerge=Bo;exports.clear=qc;exports.cloneArrayBuffer=vl;exports.cloneBuffer=Tl;exports.cloneTypedArray=Sl;exports.color=je;exports.common$1=Zr;exports.commonDb=Xc;exports.configureSvgSize=Eo;exports.constant=Nr;exports.copyArray=kl;exports.copyObject=Dl;exports.cos=dp;exports.curveBasis=el;exports.curveLinear=Qa;exports.darken=D;exports.dayjs=ka;exports.decodeEntities=mc;exports.dedent=Sa;exports.defaultConfig=wC;exports.defaultConfig$2=ec;exports.define=Dr;exports.epsilon=qn;exports.evaluate=ko;exports.extend=co;exports.generateId=uc;exports.getAccDescription=Yc;exports.getAccTitle=Wc;exports.getConfig=nn;exports.getConfig$1=$t;exports.getDiagramTitle=Uc;exports.getStylesFromArray=hc;exports.getThemeVariables$2=Jl;exports.halfPi=zn;exports.hasKatex=eo;exports.hue=Hd;exports.index=tT;exports.initCloneObject=Bl;exports.interpolateNumber=te;exports.interpolateRgb=Mn;exports.interpolateString=Wa;exports.interpolateToCurve=lc;exports.isArray=Mi;exports.isArrayLike=zi;exports.isBuffer=Gr;exports.isDark=ei;exports.isObject=fe;exports.isObjectLike=ri;exports.lighten=E;exports.lineBreakRegex=oi;exports.log$1=M;exports.max=fp;exports.min=pp;exports.nodeUtil=jn;exports.nogamma=ho;exports.parseFontSize=en;exports.parseGenericTypes=yy;exports.pi=qr;exports.random=dc;exports.renderKatexSanitized=Zl;exports.rgbConvert=Ra;exports.rgba=qe;exports.root=lo;exports.sanitizeText$2=ve;exports.select=bt;exports.selectSvgElement=Vc;exports.setAccDescription=Hc;exports.setAccTitle=zc;exports.setConfig=kC;exports.setDiagramTitle=jc;exports.setupGraphViewbox=Gc;exports.setupGraphViewbox$1=Rc;exports.sin=gp;exports.sqrt=mp;exports.tau=yp;exports.utils=We;exports.wrapLabel=fc;
96
+ */window.addEventListener("load",Ch,!1)}const A1=function(t){Tt.parseError=t},Or=[];let Fn=!1;const xh=async()=>{if(!Fn){for(Fn=!0;Or.length>0;){const t=Or.shift();if(t)try{await t()}catch(e){M.error("Error executing queue",e)}}Fn=!1}},B1=async(t,e)=>new Promise((i,r)=>{const n=()=>new Promise((o,s)=>{ke.parse(t,e).then(a=>{o(a),i(a)},a=>{var l;M.error("Error parsing",a),(l=Tt.parseError)==null||l.call(Tt,a),s(a),r(a)})});Or.push(n),xh().catch(r)}),bh=(t,e,i)=>new Promise((r,n)=>{const o=()=>new Promise((s,a)=>{ke.render(t,e,i).then(l=>{s(l),r(l)},l=>{var c;M.error("Error parsing",l),(c=Tt.parseError)==null||c.call(Tt,l),a(l),n(l)})});Or.push(o),xh().catch(n)}),Tt={startOnLoad:!0,mermaidAPI:ke,parse:B1,render:bh,init:k1,run:yh,registerExternalDiagrams:w1,initialize:_h,parseError:void 0,contentLoaded:Ch,setParseErrorHandler:A1,detectType:tn},ai=t=>{t=L1(t);const e=t.replace(/#(\d+);/g,"&#$1;").replace(/#([a-z]+);/g,"&$1;"),i=document.createElement("textarea");return i.innerHTML=e,i.value},Ye=t=>{const e=t.getAttribute("transform"),i=e==null?void 0:e.match(/translate\(([ \d.-]+),\s*([\d.-]+)\)/);let r=0,n=0;return i&&(r=Number(i[1]),n=Number(i[2])),{transformX:r,transformY:n}},E1=t=>{let e=t;return e=e.replace(/style.*:\S*#.*;/g,i=>i.substring(0,i.length-1)),e=e.replace(/classDef.*:\S*#.*;/g,i=>i.substring(0,i.length-1)),e=e.replace(/#\w+;/g,i=>{const r=i.substring(1,i.length-1);return/^\+?\d+$/.test(r)?`fl°°${r}¶ß`:`fl°${r}¶ß`}),e},L1=function(t){return t.replace(/fl°°/g,"#").replace(/fl°/g,"&").replace(/¶ß/g,";")},Th=(t,e={x:0,y:0})=>{if(t.tagName.toLowerCase()!=="path")throw new Error(`Invalid input: Expected an HTMLElement of tag "path", got ${t.tagName}`);const i=t.getAttribute("d");if(!i)throw new Error('Path element does not contain a "d" attribute');const r=i.split(/(?=[LM])/),n=r[0].substring(1).split(",").map(a=>parseFloat(a)),o=r[r.length-1].substring(1).split(",").map(a=>parseFloat(a)),s=r.map(a=>{const l=a.substring(1).split(",").map(c=>parseFloat(c));return{x:l[0],y:l[1]}}).filter((a,l,c)=>{if(l===0||l===c.length-1)return!0;if(a.x===c[l-1].x&&a.y===c[l-1].y)return!1;if(l===c.length-2&&(c[l-1].x===a.x||c[l-1].y===a.y)){const h=c[c.length-1];return Math.hypot(h.x-a.x,h.y-a.y)>20}return a.x!==c[l-1].x||a.y!==c[l-1].y}).map(a=>({x:a.x+e.x,y:a.y+e.y}));return{startX:n[0]+e.x,startY:n[1]+e.y,endX:o[0]+e.x,endY:o[1]+e.y,reflectionPoints:s}},F1=(t,e)=>{const i=t.nodes.map(a=>a.startsWith("flowchart-")?a.split("-")[1]:a),r=e.querySelector(`[id='${t.id}']`);if(!r)throw new Error("SubGraph element not found");const n=zo(r,e),o=r.getBBox(),s={width:o.width,height:o.height};return t.classes=void 0,t.dir=void 0,{...t,nodeIds:i,...n,...s,text:ai(t.title)}},O1=(t,e)=>{var d,u,f;const i=e.querySelector(`[id*="flowchart-${t.id}-"]`);if(!i)return;let r;((d=i.parentElement)==null?void 0:d.tagName.toLowerCase())==="a"&&(r=i.parentElement.getAttribute("xlink:href"));const n=zo(r?i.parentElement:i,e),o=i.getBBox(),s={width:o.width,height:o.height},a=(u=i.querySelector(".label-container"))==null?void 0:u.getAttribute("style"),l=(f=i.querySelector(".label"))==null?void 0:f.getAttribute("style"),c={};a==null||a.split(";").forEach(m=>{if(!m)return;const y=m.split(":")[0].trim(),_=m.split(":")[1].trim();c[y]=_});const h={};return l==null||l.split(";").forEach(m=>{if(!m)return;const y=m.split(":")[0].trim(),_=m.split(":")[1].trim();h[y]=_}),{id:t.id,labelType:t.labelType,text:ai(t.text),type:t.type,link:r||void 0,...n,...s,containerStyle:c,labelStyle:h}},I1=(t,e,i)=>{const r=i.querySelector(`[id*="L-${t.start}-${t.end}-${e}"]`);if(!r)throw new Error("Edge element not found");const n=zo(r,i),o=Th(r,n);return t.length=void 0,{...t,...o,text:ai(t.text)}},zo=(t,e)=>{var l;if(!t)throw new Error("Element not found");let i=(l=t.parentElement)==null?void 0:l.parentElement;const r=t.childNodes[0];let n={x:0,y:0};if(r){const{transformX:c,transformY:h}=Ye(r),d=r.getBBox();n={x:Number(r.getAttribute("x"))||c+d.x||0,y:Number(r.getAttribute("y"))||h+d.y||0}}const{transformX:o,transformY:s}=Ye(t),a={x:o+n.x,y:s+n.y};for(;i&&i.id!==e.id;){if(i.classList.value==="root"&&i.hasAttribute("transform")){const{transformX:c,transformY:h}=Ye(i);a.x+=c,a.y+=h}i=i.parentElement}return a},M1=(t,e)=>{t.parse();const i=t.parser.yy,r=i.getVertices();Object.keys(r).forEach(a=>{r[a]=O1(r[a],e)});const n=new Map,o=i.getEdges().filter(a=>e.querySelector(`[id*="L-${a.start}-${a.end}"]`)).map(a=>{const l=`${a.start}-${a.end}`,c=n.get(l)||0;return n.set(l,c+1),I1(a,c,e)});return{type:"flowchart",subGraphs:i.getSubGraphs().map(a=>F1(a,e)),vertices:r,edges:o}},$1=(t,e)=>{const i={};e!=null&&e.label&&(i.label={text:ai(e.label),fontSize:16});const r=t.tagName;if(r==="line")i.startX=Number(t.getAttribute("x1")),i.startY=Number(t.getAttribute("y1")),i.endX=Number(t.getAttribute("x2")),i.endY=Number(t.getAttribute("y2"));else if(r==="path"){const n=t.getAttribute("d");if(!n)throw new Error('Path element does not contain a "d" attribute');const o=n.split(/(?=[LC])/),s=o[0].substring(1).split(",").map(c=>parseFloat(c)),a=[];o.forEach(c=>{const h=c.substring(1).trim().split(" ").map(d=>{const[u,f]=d.split(",");return[parseFloat(u)-s[0],parseFloat(f)-s[1]]});a.push(...h)});const l=a[a.length-1];i.startX=s[0],i.startY=s[1],i.endX=l[0],i.endY=l[1],i.points=a}return e!=null&&e.label&&(i.startY=i.startY-10,i.endY=i.endY-10),i.strokeColor=t.getAttribute("stroke"),i.strokeWidth=Number(t.getAttribute("stroke-width")),i.type="arrow",i.strokeStyle=(e==null?void 0:e.strokeStyle)||"solid",i.startArrowhead=(e==null?void 0:e.startArrowhead)||null,i.endArrowhead=(e==null?void 0:e.endArrowhead)||null,i},vh=(t,e,i,r,n)=>{const o={};return o.type="arrow",o.startX=t,o.startY=e,o.endX=i,o.endY=r,Object.assign(o,{...n}),o},oo=(t,e,i,r)=>({type:"text",x:t,y:e,text:i,width:(r==null?void 0:r.width)||20,height:(r==null?void 0:r.height)||20,fontSize:(r==null?void 0:r.fontSize)||Ir,id:r==null?void 0:r.id,groupId:r==null?void 0:r.groupId,metadata:r==null?void 0:r.metadata}),Sh=(t,e,i)=>{const r={},n=Number(t.getAttribute("x")),o=Number(t.getAttribute("y"));r.type="text",r.text=ai(e),i!=null&&i.id&&(r.id=i.id),i!=null&&i.groupId&&(r.groupId=i.groupId);const s=t.getBBox();r.width=s.width,r.height=s.height,r.x=n-s.width/2,r.y=o;const a=parseInt(getComputedStyle(t).fontSize);return r.fontSize=a,r},Ht=(t,e,i={})=>{const r={};r.type=e;const{label:n,subtype:o,id:s,groupId:a}=i;r.id=s,a&&(r.groupId=a),n&&(r.label={text:ai(n.text),fontSize:16,verticalAlign:n==null?void 0:n.verticalAlign});const l=t.getBBox();switch(r.x=l.x,r.y=l.y,r.width=l.width,r.height=l.height,r.subtype=o,o){case"highlight":const c=t.getAttribute("fill");c&&(r.bgColor=c);break;case"note":r.strokeStyle="dashed";break}return r},Pi=(t,e,i,r,n,o)=>{const s={};return s.startX=e,s.startY=i,s.endX=r,o!=null&&o.groupId&&(s.groupId=o.groupId),o!=null&&o.id&&(s.id=o.id),s.endY=n,s.strokeColor=t.getAttribute("stroke"),s.strokeWidth=Number(t.getAttribute("stroke-width")),s.type="line",s},Ca={0:"SOLID",1:"DOTTED",3:"SOLID_CROSS",4:"DOTTED_CROSS",5:"SOLID_OPEN",6:"DOTTED_OPEN",24:"SOLID_POINT",25:"DOTTED_POINT"},Pt={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,SOLID_POINT:24,DOTTED_POINT:25,CRITICAL_START:27},D1=t=>{let e;switch(t){case Pt.SOLID:case Pt.SOLID_CROSS:case Pt.SOLID_OPEN:case Pt.SOLID_POINT:e="solid";break;case Pt.DOTTED:case Pt.DOTTED_CROSS:case Pt.DOTTED_OPEN:case Pt.DOTTED_POINT:e="dotted";break;default:e="solid";break}return e},N1=(t,e)=>{var r,n;if(!!((r=t.nextElementSibling)!=null&&r.classList.contains("sequenceNumber"))){const o=(n=t.nextElementSibling)==null?void 0:n.textContent;if(!o)throw new Error("sequence number not present");const s=30,a=s/2,c={type:"rectangle",x:e.startX-10,y:e.startY-a,label:{text:o,fontSize:14},bgColor:"#e9ecef",height:s,subtype:"sequence"};Object.assign(e,{sequenceNumber:c})}},xa=(t,e,i)=>{if(!t)throw"root node not found";const r=qt.nanoid(),n=Array.from(t.children),o=[];return n.forEach((s,a)=>{const l=`${i==null?void 0:i.id}-${a}`;let c;switch(s.tagName){case"line":const h=Number(s.getAttribute("x1")),d=Number(s.getAttribute("y1")),u=Number(s.getAttribute("x2")),f=Number(s.getAttribute("y2"));c=Pi(s,h,d,u,f,{groupId:r,id:l});break;case"text":c=Sh(s,e,{groupId:r,id:l});break;case"circle":c=Ht(s,"ellipse",{label:s.textContent?{text:s.textContent}:void 0,groupId:r,id:l});default:c=Ht(s,Mh[s.tagName],{label:s.textContent?{text:s.textContent}:void 0,groupId:r,id:l})}o.push(c)}),o},P1=(t,e)=>{const i=Array.from(e.querySelectorAll(".actor-top")),r=Array.from(e.querySelectorAll(".actor-bottom")),n=[],o=[];return Object.values(t).forEach((s,a)=>{var d;const l=i.find(u=>u.getAttribute("name")===s.name),c=r.find(u=>u.getAttribute("name")===s.name);if(!l||!c)throw"root not found";const h=s.description;if(s.type==="participant"){const u=Ht(l,"rectangle",{id:`${s.name}-top`,label:{text:h},subtype:"actor"});if(!u)throw"Top Node element not found!";n.push([u]);const f=Ht(c,"rectangle",{id:`${s.name}-bottom`,label:{text:h},subtype:"actor"});n.push([f]);const m=(d=l==null?void 0:l.parentElement)==null?void 0:d.previousElementSibling;if((m==null?void 0:m.tagName)!=="line")throw"Line not found";const y=Number(m.getAttribute("x1"));if(!u.height)throw"Top node element height is null";const _=u.y+u.height,L=f.y,b=Number(m.getAttribute("x2")),P=Pi(m,y,_,b,L);o.push(P)}else if(s.type==="actor"){const u=xa(l,h,{id:`${s.name}-top`});n.push(u);const f=xa(c,h,{id:`${s.name}-bottom`});n.push(f);const m=l.previousElementSibling;if((m==null?void 0:m.tagName)!=="line")throw"Line not found";const y=Number(m.getAttribute("x1")),_=Number(m.getAttribute("y1")),L=Number(m.getAttribute("x2")),b=f.find(P=>P.type==="ellipse");if(b){const P=b.y,C=Pi(m,y,_,L,P);o.push(C)}}}),{nodes:n,lines:o}},R1=(t,e)=>{const i=[],r=Array.from(e.querySelectorAll('[class*="messageLine"]')),n=Object.keys(Ca),o=t.filter(s=>n.includes(s.type.toString()));return r.forEach((s,a)=>{const l=o[a],c=Ca[l.type],h=$1(s,{label:l==null?void 0:l.message,strokeStyle:D1(l.type),endArrowhead:c==="SOLID_OPEN"||c==="DOTTED_OPEN"?null:"arrow"});N1(s,h),i.push(h)}),i},q1=(t,e)=>{const i=Array.from(e.querySelectorAll(".note")).map(o=>o.parentElement),r=t.filter(o=>o.type===Pt.NOTE),n=[];return i.forEach((o,s)=>{if(!o)return;const a=o.firstChild,l=r[s].message,c=Ht(a,"rectangle",{label:{text:l},subtype:"note"});n.push(c)}),n},z1=t=>{const e=Array.from(t.querySelectorAll("[class*=activation]")),i=[];return e.forEach(r=>{const n=Ht(r,"rectangle",{label:{text:""},subtype:"activation"});i.push(n)}),i},W1=(t,e)=>{const i=Array.from(e.querySelectorAll(".loopLine")),r=[],n=[],o=[];i.forEach(h=>{const d=Number(h.getAttribute("x1")),u=Number(h.getAttribute("y1")),f=Number(h.getAttribute("x2")),m=Number(h.getAttribute("y2")),y=Pi(h,d,u,f,m);y.strokeStyle="dotted",y.strokeColor="#adb5bd",y.strokeWidth=2,r.push(y)});const s=Array.from(e.querySelectorAll(".loopText")),a=t.filter(h=>h.type===Pt.CRITICAL_START).map(h=>h.message);s.forEach(h=>{var y;const d=h.textContent||"",u=Sh(h,d),f=((y=d.match(/\[(.*?)\]/))==null?void 0:y[1])||"";a.includes(f)&&(u.x+=16),n.push(u)});const l=Array.from(e==null?void 0:e.querySelectorAll(".labelBox")),c=Array.from(e==null?void 0:e.querySelectorAll(".labelText"));return l.forEach((h,d)=>{var m;const u=((m=c[d])==null?void 0:m.textContent)||"",f=Ht(h,"rectangle",{label:{text:u}});f.strokeColor="#adb5bd",f.bgColor="#e9ecef",f.width=void 0,o.push(f)}),{lines:r,texts:n,nodes:o}},H1=t=>{const e=Array.from(t.querySelectorAll(".rect")).filter(r=>{var n;return((n=r.parentElement)==null?void 0:n.tagName)!=="g"}),i=[];return e.forEach(r=>{const n=Ht(r,"rectangle",{label:{text:""},subtype:"highlight"});i.push(n)}),i},Y1=(t,e)=>{t.parse();const i=t.parser.yy,r=[],n=i.getBoxes(),o=H1(e),s=i.getActors(),{nodes:a,lines:l}=P1(s,e),c=i.getMessages(),h=R1(c,e),d=q1(c,e),u=z1(e),f=W1(c,e);return r.push(o),r.push(...a),r.push(d),r.push(u),{type:"sequence",lines:l,arrows:h,nodes:r,loops:f,groups:n}},ir={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},ba={LINE:0,DOTTED_LINE:1},ae=16,j1=t=>{let e;switch(t){case ba.LINE:e="solid";break;case ba.DOTTED_LINE:e="dotted";break;default:e="solid"}return e},Ta=t=>{let e;switch(t){case ir.AGGREGATION:e="diamond_outline";break;case ir.COMPOSITION:e="diamond";break;case ir.EXTENSION:e="triangle_outline";break;case"none":e=null;break;case ir.DEPENDENCY:default:e="arrow";break}return e},U1=(t,e)=>{const i=[],r=[],n=[];return Object.values(t).forEach(o=>{var y;const{domId:s,id:a}=o,l=qt.nanoid(),c=e.querySelector(`[data-id=${a}]`);if(!c)throw Error(`DOM Node with id ${s} not found`);const{transformX:h,transformY:d}=Ye(c),u=Ht(c.firstChild,"rectangle",{id:a,groupId:l});u.x+=h,u.y+=d,u.metadata={classId:a},i.push(u),Array.from(c.querySelectorAll(".divider")).forEach(_=>{const L=Number(_.getAttribute("x1")),b=Number(_.getAttribute("y1")),P=Number(_.getAttribute("x2")),C=Number(_.getAttribute("y2")),S=Pi(_,L,b,P,C,{groupId:l,id:qt.nanoid()});S.startX+=h,S.startY+=d,S.endX+=h,S.endY+=d,S.metadata={classId:a},r.push(S)});const m=(y=c.querySelector(".label"))==null?void 0:y.children;if(!m)throw"label nodes not found";Array.from(m).forEach(_=>{const L=_.textContent;if(!L)return;const b=qt.nanoid(),{transformX:P,transformY:C}=Ye(_),S=_.getBBox(),N=oo(h+P,d+C+10,L,{width:S.width,height:S.height,id:b,groupId:l,metadata:{classId:a}});n.push(N)})}),{nodes:i,lines:r,text:n}},X1=(t,e)=>{const i=["triangle_outline","diamond","diamond_outline"],r=e.startArrowhead&&i.includes(e.startArrowhead),n=e.endArrowhead&&i.includes(e.endArrowhead);return!n&&!r||(r&&(t==="LR"?e.startX-=ae:t==="RL"?e.startX+=ae:t==="TB"?e.startY-=ae:t==="BT"&&(e.startY+=ae)),n&&(t==="LR"?e.endX+=ae:t==="RL"?e.endX-=ae:t==="TB"?e.endY+=ae:t==="BT"&&(e.endY-=ae))),e},G1=(t,e,i,r)=>{var a;const n=(a=i.querySelector(".edgePaths"))==null?void 0:a.children;if(!n)throw new Error("No Edges found!");const o=[],s=[];return t.forEach((l,c)=>{const{id1:h,id2:d,relation:u}=l,f=e.find(et=>et.id===h),m=e.find(et=>et.id===d),y=j1(u.lineType),_=Ta(u.type1),L=Ta(u.type2),b=Th(n[c]),P=vh(b.startX,b.startY,b.endX,b.endY,{strokeStyle:y,startArrowhead:_,endArrowhead:L,label:l.title?{text:l.title}:void 0,start:{type:"rectangle",id:f.id},end:{type:"rectangle",id:m.id}}),C=X1(r,P);o.push(C);const{relationTitle1:S,relationTitle2:U}=l,N=20,tt=15,nt=15;let H,A;if(S&&S!=="none"){switch(r){case"TB":H=C.startX-N,C.endX<C.startX&&(H-=nt),A=C.startY+tt;break;case"BT":H=C.startX+N,C.endX>C.startX&&(H+=nt),A=C.startY-tt;break;case"LR":H=C.startX+N,A=C.startY+tt,C.endY>C.startY&&(A+=nt);break;case"RL":H=C.startX-N,A=C.startY-tt,C.startY>C.endY&&(A-=nt);break;default:H=C.startX-N,A=C.startY+tt}const et=oo(H,A,S,{fontSize:16});s.push(et)}if(U&&U!=="none"){switch(r){case"TB":H=C.endX+N,C.endX<C.startX&&(H+=nt),A=C.endY-tt;break;case"BT":H=C.endX-N,C.endX>C.startX&&(H-=nt),A=C.endY+tt;break;case"LR":H=C.endX-N,A=C.endY-tt,C.endY>C.startY&&(A-=nt);break;case"RL":H=C.endX+N,A=C.endY+tt,C.startY>C.endY&&(A+=nt);break;default:H=C.endX+N,A=C.endY-tt}const et=oo(H,A,U,{fontSize:16});s.push(et)}}),{arrows:o,text:s}},V1=(t,e,i)=>{const r=[],n=[];return t.forEach(o=>{const{id:s,text:a,class:l}=o,c=e.querySelector(`#${s}`);if(!c)throw new Error(`Node with id ${s} not found!`);const{transformX:h,transformY:d}=Ye(c),u=c.firstChild,f=Ht(u,"rectangle",{id:s,subtype:"note",label:{text:a}});if(Object.assign(f,{x:f.x+h,y:f.y+d}),r.push(f),l){const m=i.find(C=>C.id===l);if(!m)throw new Error(`class node with id ${l} not found!`);const y=f.x+(f.width||0)/2,_=f.y+(f.height||0),L=y,b=m.y,P=vh(y,_,L,b,{strokeStyle:"dotted",startArrowhead:null,endArrowhead:null,start:{id:f.id,type:"rectangle"},end:{id:m.id,type:"rectangle"}});n.push(P)}}),{notes:r,connectors:n}},K1=(t,e)=>{t.parse();const i=t.parser.yy,r=i.getDirection(),n=[],o=[],s=[],a=[],l=i.getNamespaces(),c=i.getClasses();if(Object.keys(c).length){const y=U1(c,e);n.push(y.nodes),o.push(...y.lines),s.push(...y.text),a.push(...y.nodes)}const h=i.getRelations(),{arrows:d,text:u}=G1(h,a,e,r),{notes:f,connectors:m}=V1(i.getNotes(),e,a);return n.push(f),d.push(...m),s.push(...u),{type:"class",nodes:n,lines:o,arrows:d,text:s,namespaces:l}},Z1=t=>{const e=t.querySelector("svg");if(!e)throw new Error("SVG element not found");const i=e.getBoundingClientRect(),r=i.width,n=i.height;e.setAttribute("width",`${r}`),e.setAttribute("height",`${n}`);const o="image/svg+xml",s=unescape(encodeURIComponent(e.outerHTML)),l=`data:image/svg+xml;base64,${btoa(s)}`;return{type:"graphImage",mimeType:o,dataURL:l,width:r,height:n}},J1=async(t,e=ss)=>{Tt.initialize({...ss,...e});const i=await Tt.mermaidAPI.getDiagramFromText(E1(t)),{svg:r}=await Tt.render("mermaid-to-excalidraw",t),n=document.createElement("div");n.setAttribute("style","opacity: 0; position: relative; z-index: -1;"),n.innerHTML=r,n.id="mermaid-diagram",document.body.appendChild(n);let o;switch(i.type){case"flowchart-v2":{o=M1(i,n);break}case"sequence":{o=Y1(i,n);break}case"classDiagram":{o=K1(i,n);break}default:o=Z1(n)}return n.remove(),o},Q1=async(t,e)=>{var s;const i=e||{},r=parseInt(((s=i.themeVariables)==null?void 0:s.fontSize)??"")||Ir,n=await J1(t,{...i,themeVariables:{...i.themeVariables,fontSize:`${r*1.25}px`}});return Xh(n,{fontSize:r})},tT=Object.freeze(Object.defineProperty({__proto__:null,parseMermaidToExcalidraw:Q1},Symbol.toStringTag,{value:"Module"}));exports.Color=Mt;exports.Color$1=ei;exports.Rgb=ft;exports.Selection=xt;exports.Stack=Be;exports.Symbol=Fi;exports.Utils=q;exports.ZERO_WIDTH_SPACE=sc;exports.abs=hp;exports.acos=_p;exports.array=Ba;exports.arrayLikeKeys=Pl;exports.asin=Cp;exports.assignValue=$l;exports.assignWithDepth$1=at;exports.atan2=up;exports.baseKeys=Gl;exports.baseUnary=Il;exports.calculateMathMLDimensions=xy;exports.calculateTextHeight=pc;exports.calculateTextWidth=Di;exports.cleanAndMerge=Eo;exports.clear=qc;exports.cloneArrayBuffer=vl;exports.cloneBuffer=Tl;exports.cloneTypedArray=Sl;exports.color=Ue;exports.common$1=Zr;exports.commonDb=Xc;exports.configureSvgSize=Lo;exports.constant=Nr;exports.copyArray=kl;exports.copyObject=Dl;exports.cos=dp;exports.curveBasis=el;exports.curveLinear=Qa;exports.darken=D;exports.dayjs=ka;exports.decodeEntities=mc;exports.dedent=Sa;exports.defaultConfig=wC;exports.defaultConfig$2=ec;exports.define=Dr;exports.epsilon=zn;exports.evaluate=wo;exports.extend=ho;exports.generateId=uc;exports.getAccDescription=Yc;exports.getAccTitle=Wc;exports.getConfig=nn;exports.getConfig$1=$t;exports.getDiagramTitle=Uc;exports.getStylesFromArray=hc;exports.getThemeVariables$2=Jl;exports.halfPi=Wn;exports.hasKatex=io;exports.hue=Hd;exports.index=tT;exports.initCloneObject=Bl;exports.interpolateNumber=te;exports.interpolateRgb=$n;exports.interpolateString=Wa;exports.interpolateToCurve=lc;exports.isArray=Mi;exports.isArrayLike=zi;exports.isBuffer=Gr;exports.isDark=ii;exports.isObject=fe;exports.isObjectLike=ni;exports.lighten=E;exports.lineBreakRegex=si;exports.log$1=M;exports.max=fp;exports.min=pp;exports.nodeUtil=Un;exports.nogamma=uo;exports.parseFontSize=en;exports.parseGenericTypes=yy;exports.pi=qr;exports.random=dc;exports.renderKatexSanitized=Zl;exports.rgbConvert=Ra;exports.rgba=ze;exports.root=co;exports.sanitizeText$2=Se;exports.select=bt;exports.selectSvgElement=Vc;exports.setAccDescription=Hc;exports.setAccTitle=zc;exports.setConfig=kC;exports.setDiagramTitle=jc;exports.setupGraphViewbox=Gc;exports.setupGraphViewbox$1=Rc;exports.sin=gp;exports.sqrt=mp;exports.tau=yp;exports.utils=He;exports.wrapLabel=fc;