@layers-app/editor 0.2.0 → 0.2.2
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.
- package/dist/index.cjs +2 -2
- package/dist/index.js +2 -2
- package/dist/{layers.CNLMZ-n8.js → layers.0F4YVLp2.js} +1 -1
- package/dist/{layers.B3BBy8oP.js → layers.0VD_lQDW.js} +1 -1
- package/dist/{layers.Ddk469Dh.js → layers.2c8neW9s.js} +1 -1
- package/dist/{layers.BMC2kTTB.js → layers.35zYsSGA.js} +3 -3
- package/dist/{layers.mp_9sP04.js → layers.3fHuIWPj.js} +1 -1
- package/dist/{layers.BbArzt5V.js → layers.4CKvGDBj.js} +1 -1
- package/dist/{layers.BtZHGQ6E.js → layers.4hMJo09s.js} +1 -1
- package/dist/layers.52famHy6.js +1 -0
- package/dist/layers.5MjpdN9h.js +7 -0
- package/dist/{layers.Bg-rk-IY.js → layers.5QTOXn6B.js} +7 -7
- package/dist/{layers.4B2wOIR1.js → layers.5bRls69E.js} +1 -1
- package/dist/layers.70-mDRns.js +7 -0
- package/dist/{layers.umahO1ag.js → layers.8Xhcyc3R.js} +1 -1
- package/dist/{layers.Bs1Yuja3.js → layers.8yJMoQR5.js} +5 -5
- package/dist/{layers.CR64bkIJ.js → layers.9FcR61sH.js} +1 -1
- package/dist/layers.9kMKYgzy.js +425 -0
- package/dist/{layers.YCPGkQIi.js → layers.AR5MtL5j.js} +1 -1
- package/dist/{layers.BeoJyn39.js → layers.B-D6NGcR.js} +1 -1
- package/dist/layers.B-JWed8S.js +122 -0
- package/dist/{layers.DVOYRLqd.js → layers.B-WhNV_G.js} +1 -1
- package/dist/layers.B-YVtk3d.js +207 -0
- package/dist/{layers.Cq0Ch5Iv.js → layers.B02pzIIg.js} +1 -1
- package/dist/{layers.JP-lzz5f.js → layers.B26uOkwH.js} +1 -1
- package/dist/{layers.C4ls7ISP.js → layers.B2IUimpm.js} +1 -1
- package/dist/layers.B31sa6rr.js +139 -0
- package/dist/layers.B3D4g2HH.js +1 -0
- package/dist/{layers.CGpLdUiP.js → layers.B3bY-ou_.js} +2 -2
- package/dist/layers.B7z4hw4p.js +51 -0
- package/dist/layers.B8GNrynA.js +6 -0
- package/dist/{layers.fDF0XXNl.js → layers.B9cgMIYN.js} +1 -1
- package/dist/layers.BAZ7VG7y.js +1 -0
- package/dist/{layers.C94fZyIE.js → layers.BBMUBp9d.js} +1 -1
- package/dist/{layers.B2Pkrdw1.js → layers.BC8EPkM1.js} +1 -1
- package/dist/{layers.BahDi8Jq.js → layers.BEBnBBBW.js} +1 -1
- package/dist/{layers.Dk0kd6-B.js → layers.BHu9OC6O.js} +1 -1
- package/dist/{layers.TyARdHUj.js → layers.BI9sEtHQ.js} +4 -4
- package/dist/{layers.DCNkKcra.js → layers.BKQGrfL6.js} +149 -143
- package/dist/{layers.BRDVz-vO.js → layers.BLB-_Qmf.js} +1 -1
- package/dist/{layers.DzuES31X.js → layers.BLvIp7w9.js} +64 -64
- package/dist/{layers.C_TMBTwJ.js → layers.BN5jyCHu.js} +2 -2
- package/dist/{layers.7AsF2nNX.js → layers.BN6XfzOG.js} +1 -1
- package/dist/{layers.D_VA8g4H.js → layers.BQMg8YcH.js} +4 -4
- package/dist/{layers.C22FTFEe.js → layers.BRemUPLR.js} +1 -1
- package/dist/{layers.Cs8AaSS3.js → layers.BSmQmuya.js} +1 -1
- package/dist/{layers.3Ou02qfO.js → layers.BT-Zowct.js} +5 -5
- package/dist/{layers.BWcGUFHK.js → layers.BTqJA0pT.js} +1 -1
- package/dist/{layers.f6YInEN9.js → layers.BUbI0ic-.js} +1 -1
- package/dist/{layers.BKC37Rv9.js → layers.BYBbRM55.js} +3 -3
- package/dist/{layers.CS2XhZuy.js → layers.BYDDbIIf.js} +1 -1
- package/dist/{layers.B_tG84JI.js → layers.BYzGqi2X.js} +1 -1
- package/dist/{layers.DAjImaDP.js → layers.B_0_ehec.js} +1 -1
- package/dist/{layers.O_QfH9Tw.js → layers.BbCfEXyj.js} +2 -2
- package/dist/{layers.BVMj1jxT.js → layers.Bcyj5-mw.js} +1 -1
- package/dist/{layers.Bp4GA39y.js → layers.BeEd9b3v.js} +1 -1
- package/dist/{layers.B26_Cpa_.js → layers.Bf8DIIJg.js} +1 -1
- package/dist/{layers.BWnw9UAM.js → layers.BffSZvB5.js} +1 -1
- package/dist/{layers.BeQ4Whpe.js → layers.BgMZDjpU.js} +1 -1
- package/dist/{layers.BODaZCcU.js → layers.BgOa2ZQq.js} +1 -1
- package/dist/{layers.OwyTRmnO.js → layers.BiJ8hfRt.js} +2 -2
- package/dist/{layers.DcfJoQ0g.js → layers.Bix14Gyj.js} +1 -1
- package/dist/{layers.Ky-Kjdnk.js → layers.BkI15sb3.js} +4 -4
- package/dist/{layers.D3uU6aTA.js → layers.BmnCi3BA.js} +1 -1
- package/dist/{layers.D8x1H5iy.js → layers.Bn0pZfJP.js} +1 -1
- package/dist/layers.BnzcEpZ-.js +133 -0
- package/dist/{layers.DrMkXfHK.js → layers.BoGiK5Q3.js} +1 -1
- package/dist/{layers.s5JSe8EA.js → layers.BrLfRSb6.js} +7603 -7501
- package/dist/{layers.eyx0ycIx.js → layers.BvY9Vbf5.js} +1 -1
- package/dist/{layers.Bh3cQUDo.js → layers.BvxaTTGy.js} +1 -1
- package/dist/{layers.IVSRrFHN.js → layers.BxUcR6lS.js} +1 -1
- package/dist/{layers.DHSCEHR8.js → layers.BxgEYHek.js} +1 -1
- package/dist/{layers.rze-LVSQ.js → layers.Bycyf6i4.js} +3 -3
- package/dist/{layers.BrEysPok.js → layers.BzBY9_VP.js} +1 -1
- package/dist/{layers.BbLvjR2J.js → layers.C5qx0lm-.js} +1 -1
- package/dist/{layers.B8vpQUjo.js → layers.C63_nn-c.js} +1 -1
- package/dist/{layers.BwoIBDJT.js → layers.C6KSH7-K.js} +5 -5
- package/dist/{layers.D0DwN9e2.js → layers.C7Bp-YD0.js} +1 -1
- package/dist/{layers.BjijCp-F.js → layers.C7wlXQdJ.js} +1 -1
- package/dist/{layers.CPqqkX8Z.js → layers.C8_lu5UH.js} +4 -4
- package/dist/{layers.Bw0ntPL0.js → layers.CB16iL01.js} +1 -1
- package/dist/{layers.DgZOLgtm.js → layers.CBHqAOYd.js} +1 -1
- package/dist/{layers.DxK9eunI.js → layers.CBdo3bZY.js} +5 -5
- package/dist/{layers.CV4vxTrW.js → layers.CCA_JMcB.js} +5 -5
- package/dist/{layers.DRho07Me.js → layers.CCOSIepd.js} +1 -1
- package/dist/{layers.v61VCm7Q.js → layers.CCgXCoxo.js} +10 -10
- package/dist/{layers.C1pkM2ng.js → layers.CDCOafi_.js} +1 -1
- package/dist/{layers.CLLE0XNM.js → layers.CFFbs4Fg.js} +9 -9
- package/dist/{layers.CJDFmwM6.js → layers.CG2_6S6j.js} +1 -1
- package/dist/{layers.CEbG0GWT.js → layers.CIUNTFjL.js} +1 -1
- package/dist/{layers.tv97TVVq.js → layers.CLJ_bqDt.js} +7 -7
- package/dist/{layers.Bt2QXZPR.js → layers.CMXxlWls.js} +6 -6
- package/dist/{layers.DAdht3uC.js → layers.CMlDQ4cq.js} +1 -1
- package/dist/{layers.D37Y-iXY.js → layers.CPpq-0-3.js} +1 -1
- package/dist/{layers.CRBfbmxk.js → layers.CSOcpruf.js} +3 -3
- package/dist/{layers.CC5jTanD.js → layers.CTJult8H.js} +1 -1
- package/dist/{layers.BxS3YGIg.js → layers.CTvU95kc.js} +8 -8
- package/dist/{layers.CI18gAPx.js → layers.CUjzCCDm.js} +1 -1
- package/dist/{layers.B5mng6BK.js → layers.CV6zTkfI.js} +3 -3
- package/dist/layers.CWD_iM8P.js +10 -0
- package/dist/{layers.GDyqPJjS.js → layers.CXj15Ps-.js} +1 -1
- package/dist/{layers.CI9cIkVg.js → layers.CXvT2UC9.js} +1 -1
- package/dist/{layers.dd9VpJ2j.js → layers.CXvVwX4x.js} +1 -1
- package/dist/{layers.COPquQl9.js → layers.CYTk83wT.js} +1 -1
- package/dist/layers.CZm6rGMB.js +61 -0
- package/dist/{layers.CFNz078z.js → layers.C_-Ax18X.js} +3 -3
- package/dist/{layers.DeMtErmI.js → layers.CbgVuTnA.js} +1 -1
- package/dist/{layers.BZ8rMF0E.js → layers.CcBXzLii.js} +2 -2
- package/dist/layers.Cd1w5n0X.js +160 -0
- package/dist/layers.CdpHcFy4.js +8 -0
- package/dist/{layers.ClRou2HW.js → layers.CeVO_M7c.js} +1 -1
- package/dist/{layers.D-TocJgP.js → layers.CfhsXiUG.js} +1 -1
- package/dist/layers.Cg4yfmEg.js +7 -0
- package/dist/{layers.CSAG6lyD.js → layers.CkrYzAn-.js} +1 -1
- package/dist/{layers.CUS1mIbU.js → layers.ClXOWap_.js} +1 -1
- package/dist/{layers.oAr0GPvq.js → layers.Clyu9Us_.js} +1 -1
- package/dist/{layers._9mQNYpC.js → layers.Cmd31MCh.js} +7 -7
- package/dist/{layers.CmawNzHJ.js → layers.CoyIFAVi.js} +1 -1
- package/dist/{layers.BtsKbOpT.js → layers.CpTgN5MB.js} +1 -1
- package/dist/{layers.fwvLLyfC.js → layers.Cs4xvX_E.js} +3 -3
- package/dist/{layers.OucwMvYb.js → layers.CsZt8Z7H.js} +1 -1
- package/dist/{layers.BfiIrqIN.js → layers.CsnR-FHC.js} +1 -1
- package/dist/{layers.Dd8DmCpU.js → layers.CvJTPHg2.js} +1 -1
- package/dist/{layers.3ncr24k-.js → layers.CvPWRTZP.js} +1 -1
- package/dist/{layers.B1Se8OaH.js → layers.CwSCM7t9.js} +1 -1
- package/dist/{layers.DStKHWvW.js → layers.CxungwaX.js} +1 -1
- package/dist/{layers.7H2WL17C.js → layers.Cy_zyir1.js} +1 -1
- package/dist/{layers.CNHqdpb5.js → layers.D-KUaT13.js} +1 -1
- package/dist/{layers.CRqgQB8J.js → layers.D0LUaNf6.js} +3298 -3296
- package/dist/{layers.DwIdSTnx.js → layers.D3ie5lZH.js} +1 -1
- package/dist/{layers.99biaYEX.js → layers.D42Q8AOa.js} +1 -1
- package/dist/{layers.7PjUehxE.js → layers.D4ynF3yn.js} +1 -1
- package/dist/{layers.CwIlknpB.js → layers.D6zG1isk.js} +1 -1
- package/dist/{layers.C1IDSQaT.js → layers.D8VZU5xA.js} +1 -1
- package/dist/{layers.D_fROAHm.js → layers.D8v17Kex.js} +1 -1
- package/dist/{layers.D1ZA3f6W.js → layers.DDSZLEv8.js} +3 -3
- package/dist/{layers.Bu-x_OvJ.js → layers.DEh849IH.js} +1 -1
- package/dist/{layers.BH9wqgDY.js → layers.DICExkiD.js} +1 -1
- package/dist/{layers.U3puEHYK.js → layers.DJyLK8NN.js} +9 -9
- package/dist/{layers.CTwL_3Cz.js → layers.DKgc2UPF.js} +6 -6
- package/dist/{layers.CxtTQD6P.js → layers.DLrHHn6O.js} +1 -1
- package/dist/{layers.Bt8u_f-g.js → layers.DLvSgg1j.js} +1 -1
- package/dist/{layers.D2U6dFrQ.js → layers.DRThkhb-.js} +1 -1
- package/dist/{layers.Cg7KtW25.js → layers.DSCDI0hj.js} +1 -1
- package/dist/{layers.CyziF_SQ.js → layers.DUIaCr3w.js} +1 -1
- package/dist/layers.DURGPkGd.js +1 -0
- package/dist/{layers.BMwaDYYZ.js → layers.DVU5gOz7.js} +1 -1
- package/dist/{layers.BUmiV0yN.js → layers.DVnFApRs.js} +1 -1
- package/dist/{layers.BFTIBVaT.js → layers.DWKh0bxp.js} +1 -1
- package/dist/{layers.BBlxht-2.js → layers.DXQ151AT.js} +8 -8
- package/dist/{layers.D909hx91.js → layers.DadXDcU9.js} +4 -4
- package/dist/{layers.DgWiivNQ.js → layers.Dbl9SWXe.js} +34 -34
- package/dist/{layers.vNQeOI7i.js → layers.DeWpRm8S.js} +1 -1
- package/dist/{layers.09-oE2J6.js → layers.DeZkhcY6.js} +1 -1
- package/dist/{layers.rOgZc7GK.js → layers.Dfjo7U5Y.js} +1 -1
- package/dist/{layers.CTm23lwt.js → layers.DhYiQsca.js} +1 -1
- package/dist/layers.DjWiinie.js +70 -0
- package/dist/layers.DjkEfBcd.js +1 -0
- package/dist/{layers.D8h1OdVA.js → layers.DkVk5c8Y.js} +6 -6
- package/dist/{layers.CIPEXJ_Z.js → layers.Dkcn0PJ4.js} +2 -2
- package/dist/{layers.VCVkMi6g.js → layers.DmGNcA03.js} +1 -1
- package/dist/{layers.C8ovo18Q.js → layers.DnbyHEyP.js} +1 -1
- package/dist/{layers.CJKF-1iy.js → layers.DnzgqxNL.js} +1 -1
- package/dist/layers.Dos5JhV7.js +10 -0
- package/dist/{layers.BOuSIBai.js → layers.DrZ_6nLR.js} +1 -1
- package/dist/{layers.CU8oxKiy.js → layers.Dr_GuX3B.js} +1 -1
- package/dist/{layers.COLyJ5LO.js → layers.Du3MtzCK.js} +3 -3
- package/dist/{layers.lqQ4_QwL.js → layers.DxT3M_n_.js} +1 -1
- package/dist/{layers.CyhLcp6y.js → layers.Dy5HywqQ.js} +18 -18
- package/dist/{layers.BmTC_qEU.js → layers.DyOerMOO.js} +7 -7
- package/dist/{layers.CWT_90sw.js → layers.DyW56kfJ.js} +1 -1
- package/dist/{layers.DpBckJG9.js → layers.EJCk5q9h.js} +1 -1
- package/dist/{layers.bGcD7F4_.js → layers.G0Hy6_r0.js} +1 -1
- package/dist/{layers.iWHM-07P.js → layers.H7ZdlWaz.js} +1 -1
- package/dist/{layers.Cw-Ru6_X.js → layers.HZDrvVZ_.js} +1 -1
- package/dist/{layers.Dj1UIVrM.js → layers.JV8VqxPJ.js} +1 -1
- package/dist/{layers.BxGdSKRP.js → layers.JkI-2tky.js} +2 -2
- package/dist/{layers.CqMjEixm.js → layers.K-5OCs0S.js} +1 -1
- package/dist/{layers.BulWAmk4.js → layers.MUAIuNwW.js} +1 -1
- package/dist/{layers.BCkBAe54.js → layers.N0r3OrGA.js} +1 -1
- package/dist/{layers.SsYje0m0.js → layers.NW_jMcHV.js} +1 -1
- package/dist/{layers.DBc1SfKV.js → layers.QhXcTlNu.js} +1 -1
- package/dist/{layers.CTcZFAZr.js → layers.Qoe7c5zq.js} +1 -1
- package/dist/{layers.DvkFfQRh.js → layers.SZnQBQCh.js} +1 -1
- package/dist/{layers.Ct4uwlVm.js → layers.V1JpmTJ-.js} +5 -5
- package/dist/{layers.BQKuAwQB.js → layers.YAOhWgD1.js} +1 -1
- package/dist/{layers.CqF4H_mD.js → layers.Yq02aUNE.js} +1 -1
- package/dist/{layers.BvS5Wia8.js → layers._-TDHzf7.js} +3 -3
- package/dist/{layers.CWpeLc0t.js → layers._7y-Xj15.js} +1 -1
- package/dist/{layers.CN8r250h.js → layers.an4EkQNe.js} +1 -1
- package/dist/{layers.DXz6eUMI.js → layers.aqWSxJBA.js} +1 -1
- package/dist/{layers.Ddq-N8Yz.js → layers.b4JJbLKL.js} +1 -1
- package/dist/{layers.DCRFU33R.js → layers.bd4UZYau.js} +1 -1
- package/dist/{layers.BV8IclsW.js → layers.cCX18abj.js} +10 -10
- package/dist/{layers.D-kFJ8el.js → layers.f1mppJzZ.js} +1 -1
- package/dist/{layers.DpoYMK1j.js → layers.f5MGtbUo.js} +1 -1
- package/dist/{layers.BLDa5caG.js → layers.jeBs5I3w.js} +39 -39
- package/dist/{layers.Dimd3uv_.js → layers.l1b8DDPI.js} +1 -1
- package/dist/{layers.STzdH4sy.js → layers.l8pum33R.js} +1 -1
- package/dist/{layers.wt0qnNWd.js → layers.qkfFfzYb.js} +9 -9
- package/dist/{layers.DrqT2qdE.js → layers.qqCEeUgc.js} +1 -1
- package/dist/{layers.C6FjBgZG.js → layers.qsV-U57E.js} +1 -1
- package/dist/{layers.BhzBGGFh.js → layers.rFaWtL_v.js} +4 -4
- package/dist/{layers.D5zd0los.js → layers.s4QuadEl.js} +1 -1
- package/dist/{layers.BvuDBP9J.js → layers.sErNmXIW.js} +1 -1
- package/dist/{layers.CQuzRJqP.js → layers.uU2u2bPA.js} +1 -1
- package/dist/{layers.CwoIo7W8.js → layers.vBwtO_oV.js} +1 -1
- package/dist/{layers.CxfZ-PyC.js → layers.vcAXI_CD.js} +1 -1
- package/dist/{layers.CZ8VwlJ4.js → layers.yretCoWE.js} +3 -3
- package/dist/{layers.CvP8SKXD.js → layers.zbIcrERn.js} +1 -1
- package/package.json +5 -5
- package/dist/layers.0GKOEfQX.js +0 -132
- package/dist/layers.0QUpYe8U.js +0 -7
- package/dist/layers.B7HljEnE.js +0 -1
- package/dist/layers.BGu81HI5.js +0 -139
- package/dist/layers.BW2Tio6y.js +0 -8
- package/dist/layers.BZxcnuyH.js +0 -1
- package/dist/layers.C6qpUDWv.js +0 -207
- package/dist/layers.C8qZUu8m.js +0 -7
- package/dist/layers.CLPJWTr_.js +0 -1
- package/dist/layers.CbKsKQXR.js +0 -10
- package/dist/layers.DCtPhtVd.js +0 -10
- package/dist/layers.DEzlOM_P.js +0 -1
- package/dist/layers.DIVgeM1q.js +0 -160
- package/dist/layers.DX3QVmN4.js +0 -6
- package/dist/layers.DftUTp1O.js +0 -122
- package/dist/layers.DjLVRmof.js +0 -7
- package/dist/layers.Ds95POLS.js +0 -1
- package/dist/layers.DxlYIAi2.js +0 -70
- package/dist/layers.eXGxDQC_.js +0 -425
- package/dist/layers.gWRZSm_f.js +0 -61
- package/dist/layers.zq4AFjsy.js +0 -51
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const qt=require("./layers.
|
|
1
|
+
"use strict";const qt=require("./layers.jeBs5I3w.js"),Ih=require("./layers.BnzcEpZ-.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,`
|
|
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,`
|
|
@@ -9,14 +9,14 @@
|
|
|
9
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(`
|
|
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&>(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,"<").replace(/>/g,">"),t=t.replace(/=/g,"="),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
|
+
`)),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&>(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,"<").replace(/>/g,">"),t=t.replace(/=/g,"="),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)?`
|
|
14
14
|
<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">
|
|
15
15
|
${r}
|
|
16
16
|
</div>
|
|
17
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
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.CbKsKQXR.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.B3BBy8oP.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.DHSCEHR8.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.zq4AFjsy.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.DxlYIAi2.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.CRBfbmxk.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.BvS5Wia8.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.COLyJ5LO.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.0QUpYe8U.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.DjLVRmof.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.fwvLLyfC.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.DftUTp1O.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.DStKHWvW.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.B26_Cpa_.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.CmawNzHJ.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.Cs8AaSS3.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.BGu81HI5.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}`),` & {
|
|
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.CWD_iM8P.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.0VD_lQDW.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.BxgEYHek.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.B7z4hw4p.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.DjWiinie.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.CSOcpruf.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._-TDHzf7.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.Du3MtzCK.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.70-mDRns.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.Cg4yfmEg.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.Cs4xvX_E.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.B-JWed8S.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.CxungwaX.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.Bf8DIIJg.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.CoyIFAVi.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.BSmQmuya.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.B31sa6rr.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}`),` & {
|
|
20
20
|
font-family: ${i.fontFamily};
|
|
21
21
|
font-size: ${i.fontSize};
|
|
22
22
|
fill: ${i.textColor}
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
${e}
|
|
68
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
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.
|
|
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.CV6zTkfI.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.CZm6rGMB.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.9kMKYgzy.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.C_-Ax18X.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.35zYsSGA.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
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+=`
|
|
72
72
|
|
|
73
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+`
|