@layers-app/editor 0.1.17 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/layers.0QCgviDU.js +10 -0
- package/dist/{layers.bGcD7F4_.js → layers.1SYRM7Y3.js} +1 -1
- package/dist/{layers.IVSRrFHN.js → layers.1zFS3996.js} +1 -1
- package/dist/{layers.4B2wOIR1.js → layers.2HH6ZwHc.js} +1 -1
- package/dist/layers.52famHy6.js +1 -0
- package/dist/{layers.7PjUehxE.js → layers.7VH2JkTb.js} +1 -1
- package/dist/{layers.tv97TVVq.js → layers.865SiSaY.js} +7 -7
- package/dist/{layers.eyx0ycIx.js → layers.8EOKua-h.js} +1 -1
- package/dist/{layers.DAjImaDP.js → layers.99H0kyX8.js} +1 -1
- package/dist/{layers.CRBfbmxk.js → layers.AIy3Hj9p.js} +3 -3
- package/dist/layers.B0O_d5dS.js +61 -0
- package/dist/layers.B3D4g2HH.js +1 -0
- package/dist/{layers.DzuES31X.js → layers.B5KQH3be.js} +64 -64
- package/dist/{layers.COPquQl9.js → layers.B5R8GPv9.js} +1 -1
- package/dist/{layers.BhzBGGFh.js → layers.B5ek5NzO.js} +4 -4
- package/dist/{layers.B8vpQUjo.js → layers.B6AeIr64.js} +1 -1
- package/dist/{layers.CSAG6lyD.js → layers.B8TURH4X.js} +1 -1
- package/dist/{layers.CNHqdpb5.js → layers.B8ctPuLa.js} +1 -1
- package/dist/{layers.BbLvjR2J.js → layers.BAusBR5W.js} +1 -1
- package/dist/{layers.rOgZc7GK.js → layers.BBizepTz.js} +1 -1
- package/dist/{layers.ClRou2HW.js → layers.BBjzOZ7y.js} +1 -1
- package/dist/{layers.Cs8AaSS3.js → layers.BCGO5WxQ.js} +1 -1
- package/dist/layers.BDqKosvQ.js +51 -0
- package/dist/{layers.Bg-rk-IY.js → layers.BE2xWWMc.js} +7 -7
- package/dist/layers.BEF_ZTXC.js +1 -0
- package/dist/{layers.D3uU6aTA.js → layers.BESetpoX.js} +1 -1
- package/dist/{layers.Bw0ntPL0.js → layers.BM3GY9WM.js} +1 -1
- package/dist/{layers.BQKuAwQB.js → layers.BM6g4rKO.js} +1 -1
- package/dist/{layers.DgZOLgtm.js → layers.BM7rU2PT.js} +1 -1
- package/dist/{layers.umahO1ag.js → layers.BNZUwf2R.js} +1 -1
- package/dist/layers.BNy3SFip.js +160 -0
- package/dist/layers.BOJqqKbu.js +425 -0
- package/dist/{layers.DeMtErmI.js → layers.BSS_lMXo.js} +1 -1
- package/dist/{layers.BKC37Rv9.js → layers.BTKFyfVK.js} +3 -3
- package/dist/{layers.C1pkM2ng.js → layers.BTUi2yB4.js} +1 -1
- package/dist/{layers.BahDi8Jq.js → layers.BXWAuV8D.js} +1 -1
- package/dist/{layers.DpoYMK1j.js → layers.BY8CbKGL.js} +1 -1
- package/dist/{layers.Bs1Yuja3.js → layers.BZ1F4dnn.js} +5 -5
- package/dist/{layers.CZ8VwlJ4.js → layers.B_98YucG.js} +3 -3
- package/dist/{layers.CU8oxKiy.js → layers.B_mRDD7d.js} +1 -1
- package/dist/{layers.f6YInEN9.js → layers.Ba6008m6.js} +1 -1
- package/dist/{layers.D37Y-iXY.js → layers.BaCzkcIs.js} +1 -1
- package/dist/{layers.B2Pkrdw1.js → layers.BanO8a8V.js} +1 -1
- package/dist/{layers.O_QfH9Tw.js → layers.BbCfEXyj.js} +2 -2
- package/dist/{layers.CyhLcp6y.js → layers.BbrNFOMo.js} +18 -18
- package/dist/{layers.YCPGkQIi.js → layers.Bc9qcZxE.js} +1 -1
- package/dist/layers.BcN29gtO.js +1 -0
- package/dist/{layers.DAdht3uC.js → layers.BdMNboxp.js} +1 -1
- package/dist/layers.BfaPCNX-.js +7 -0
- package/dist/{layers.Dj1UIVrM.js → layers.BfsXIT6T.js} +1 -1
- package/dist/{layers.BODaZCcU.js → layers.BgOa2ZQq.js} +1 -1
- package/dist/{layers.Cw-Ru6_X.js → layers.BgvS0dQK.js} +1 -1
- package/dist/layers.BhooWFf3.js +10 -0
- package/dist/{layers.OwyTRmnO.js → layers.BiJ8hfRt.js} +2 -2
- package/dist/{layers.CJDFmwM6.js → layers.Biknrad-.js} +1 -1
- package/dist/{layers.CTm23lwt.js → layers.BlM_3mXy.js} +1 -1
- package/dist/{layers.CxfZ-PyC.js → layers.BleQYA0d.js} +1 -1
- package/dist/{layers.CmawNzHJ.js → layers.BmNOtUYt.js} +1 -1
- package/dist/{layers.BOuSIBai.js → layers.BpAD9KwH.js} +1 -1
- package/dist/{layers.Dimd3uv_.js → layers.BpG2PxhJ.js} +1 -1
- package/dist/{layers.DStKHWvW.js → layers.BpbHtIWC.js} +1 -1
- package/dist/{layers.BmTC_qEU.js → layers.BprrvZK7.js} +7 -7
- package/dist/{layers.BjijCp-F.js → layers.BquofD07.js} +1 -1
- package/dist/{layers.3ncr24k-.js → layers.BsINzGjk.js} +1 -1
- package/dist/{layers.Ky-Kjdnk.js → layers.BsMXVbxH.js} +4 -4
- package/dist/layers.BxFVVAsE.js +122 -0
- package/dist/{layers.D1ZA3f6W.js → layers.Bza4_UkB.js} +3 -3
- package/dist/{layers.CyziF_SQ.js → layers.C-2Nue_l.js} +1 -1
- package/dist/{layers.CIPEXJ_Z.js → layers.C1VimKKA.js} +2 -2
- package/dist/{layers.D0DwN9e2.js → layers.C3r2X7HH.js} +1 -1
- package/dist/{layers.B_tG84JI.js → layers.C5_nrZBu.js} +1 -1
- package/dist/{layers.CI9cIkVg.js → layers.C7W4V1iJ.js} +1 -1
- package/dist/{layers.DxK9eunI.js → layers.C7wXPcxF.js} +5 -5
- package/dist/{layers.CPqqkX8Z.js → layers.C8_lu5UH.js} +4 -4
- package/dist/{layers.Bu-x_OvJ.js → layers.C9bObFTz.js} +1 -1
- package/dist/{layers.CR64bkIJ.js → layers.CCFsHStx.js} +1 -1
- package/dist/{layers.CvP8SKXD.js → layers.CEDKnGGV.js} +1 -1
- package/dist/{layers.BWcGUFHK.js → layers.CERIYMdD.js} +1 -1
- package/dist/{layers.CqF4H_mD.js → layers.CEszgYM2.js} +1 -1
- package/dist/{layers.fDF0XXNl.js → layers.CFGlP2vI.js} +1 -1
- package/dist/{layers.SsYje0m0.js → layers.CGZITWCL.js} +1 -1
- package/dist/{layers.TyARdHUj.js → layers.CGgD6V3y.js} +4 -4
- package/dist/{layers.CqMjEixm.js → layers.CIBlE4Ia.js} +1 -1
- package/dist/{layers.DwIdSTnx.js → layers.CJH29Fkz.js} +1 -1
- package/dist/{layers.BxS3YGIg.js → layers.CK_iEoIJ.js} +8 -8
- package/dist/{layers.C_TMBTwJ.js → layers.CMyZ9XCV.js} +2 -2
- package/dist/{layers.BwoIBDJT.js → layers.CN-A_Isr.js} +5 -5
- package/dist/{layers.VCVkMi6g.js → layers.CO6f0y_e.js} +1 -1
- package/dist/{layers.C4ls7ISP.js → layers.COW54cjl.js} +1 -1
- package/dist/{layers.BH9wqgDY.js → layers.CP6WBRhZ.js} +1 -1
- package/dist/{layers.Dk0kd6-B.js → layers.CQCrIzPa.js} +1 -1
- package/dist/{layers.Bt8u_f-g.js → layers.CRjOdjz4.js} +1 -1
- package/dist/{layers.BtsKbOpT.js → layers.CRkNUW3V.js} +1 -1
- package/dist/{layers.CxtTQD6P.js → layers.CThL0u_Y.js} +1 -1
- package/dist/{layers.C6FjBgZG.js → layers.CXiV0-qY.js} +1 -1
- package/dist/{layers.DRho07Me.js → layers.C_X7ch9i.js} +1 -1
- package/dist/{layers.CRqgQB8J.js → layers.C_tqbEKb.js} +3298 -3296
- package/dist/{layers.Cg7KtW25.js → layers.Chn0ZqqM.js} +1 -1
- package/dist/{layers.7H2WL17C.js → layers.CiCwYyCp.js} +1 -1
- package/dist/{layers.wt0qnNWd.js → layers.CiOp30Jz.js} +9 -9
- package/dist/{layers.Bt2QXZPR.js → layers.CiThDkjs.js} +6 -6
- package/dist/{layers.CV4vxTrW.js → layers.CimFbKm0.js} +5 -5
- package/dist/layers.Cip5SME5.js +7 -0
- package/dist/{layers.BvS5Wia8.js → layers.Cj6LpBoh.js} +3 -3
- package/dist/{layers.v61VCm7Q.js → layers.CjArsvXH.js} +10 -10
- package/dist/layers.Ck4_o8Hn.js +1 -0
- package/dist/layers.Cl_Uh2Hv.js +7 -0
- package/dist/{layers.U3puEHYK.js → layers.CmnnxMLJ.js} +9 -9
- package/dist/{layers.CwoIo7W8.js → layers.Cn8i1uhQ.js} +1 -1
- package/dist/{layers.DgWiivNQ.js → layers.CnjLUBhP.js} +34 -34
- package/dist/{layers.D_fROAHm.js → layers.CnroJTwx.js} +1 -1
- package/dist/{layers.C1IDSQaT.js → layers.Co9VDx8A.js} +1 -1
- package/dist/{layers.DrMkXfHK.js → layers.Cp09eYyS.js} +1 -1
- package/dist/{layers.B5mng6BK.js → layers.CpsZy_yj.js} +3 -3
- package/dist/{layers.lqQ4_QwL.js → layers.Ct4fTA8I.js} +1 -1
- package/dist/{layers.GDyqPJjS.js → layers.CtkzkkTt.js} +1 -1
- package/dist/{layers.DvkFfQRh.js → layers.Cukx92QC.js} +1 -1
- package/dist/{layers.DrqT2qdE.js → layers.CwcMpoa4.js} +1 -1
- package/dist/{layers.CwIlknpB.js → layers.Cx93003f.js} +1 -1
- package/dist/{layers.Ct4uwlVm.js → layers.CyfL_Vo9.js} +5 -5
- package/dist/{layers.s5JSe8EA.js → layers.D-zzJbY-.js} +5477 -5429
- package/dist/{layers.CI18gAPx.js → layers.D0DwC5ea.js} +1 -1
- package/dist/{layers.B1Se8OaH.js → layers.D0i32cU5.js} +1 -1
- package/dist/{layers.CTcZFAZr.js → layers.D2CyZ7Zf.js} +1 -1
- package/dist/{layers.C8ovo18Q.js → layers.D6LmYlrL.js} +1 -1
- package/dist/{layers.3Ou02qfO.js → layers.D79Z4mUK.js} +5 -5
- package/dist/layers.D8HzvnX2.js +6 -0
- package/dist/{layers.fwvLLyfC.js → layers.D9efqMh7.js} +3 -3
- package/dist/{layers.D8h1OdVA.js → layers.DABlrg1x.js} +6 -6
- package/dist/{layers.BVMj1jxT.js → layers.DAc5Ousg.js} +1 -1
- package/dist/{layers.D-TocJgP.js → layers.DBRxcdnp.js} +1 -1
- package/dist/{layers.BWnw9UAM.js → layers.DEunjkeg.js} +1 -1
- package/dist/{layers.DCRFU33R.js → layers.DFMCR78W.js} +1 -1
- package/dist/layers.DIX8uu7p.js +133 -0
- package/dist/{layers.CUS1mIbU.js → layers.DK9inYBE.js} +1 -1
- package/dist/{layers.BbArzt5V.js → layers.DLq3Ltki.js} +1 -1
- package/dist/{layers.DcfJoQ0g.js → layers.DOEmL5v4.js} +1 -1
- package/dist/{layers.JP-lzz5f.js → layers.DOKs2-Rj.js} +1 -1
- package/dist/{layers.D-kFJ8el.js → layers.DOxWEd_I.js} +1 -1
- package/dist/{layers.BfiIrqIN.js → layers.DQD67w1-.js} +1 -1
- package/dist/{layers.CWT_90sw.js → layers.DRMUcbyn.js} +1 -1
- package/dist/{layers.CTwL_3Cz.js → layers.DS0Gnj3d.js} +6 -6
- package/dist/{layers.D_VA8g4H.js → layers.DTDnLTQs.js} +4 -4
- package/dist/{layers.DVOYRLqd.js → layers.DTPN2Cgw.js} +1 -1
- package/dist/{layers.CC5jTanD.js → layers.DUw_vTWe.js} +1 -1
- package/dist/{layers.CN8r250h.js → layers.DWWwdgxk.js} +1 -1
- package/dist/{layers.DCNkKcra.js → layers.DWrJ5kjL.js} +149 -143
- package/dist/{layers.DXz6eUMI.js → layers.DXcelxBp.js} +1 -1
- package/dist/{layers.BxGdSKRP.js → layers.DXjbc8ph.js} +2 -2
- package/dist/{layers.BulWAmk4.js → layers.DYtmVkLS.js} +1 -1
- package/dist/{layers.D8x1H5iy.js → layers.DZ-AlBHN.js} +1 -1
- package/dist/{layers.C94fZyIE.js → layers.DZ-pl4kD.js} +1 -1
- package/dist/{layers.dd9VpJ2j.js → layers.DZ46O1zh.js} +1 -1
- package/dist/{layers.DHSCEHR8.js → layers.DZMfCnir.js} +1 -1
- package/dist/{layers.CS2XhZuy.js → layers.D_Bx037r.js} +1 -1
- package/dist/{layers.oAr0GPvq.js → layers.DbpxcctU.js} +1 -1
- package/dist/{layers.DpBckJG9.js → layers.Dd6EqdqD.js} +1 -1
- package/dist/{layers.B26_Cpa_.js → layers.Dez5BuuO.js} +1 -1
- package/dist/{layers.D5zd0los.js → layers.Dgxp47qJ.js} +1 -1
- package/dist/{layers.CEbG0GWT.js → layers.DimHEGk_.js} +1 -1
- package/dist/{layers.BeQ4Whpe.js → layers.DkNPK9Zp.js} +1 -1
- package/dist/{layers.CWpeLc0t.js → layers.Dnek5qan.js} +1 -1
- package/dist/{layers.OucwMvYb.js → layers.Dp2xpXn9.js} +1 -1
- package/dist/{layers.Dd8DmCpU.js → layers.Dpaex3db.js} +1 -1
- package/dist/{layers.Bh3cQUDo.js → layers.Dpx5Z_1R.js} +1 -1
- package/dist/{layers.DBc1SfKV.js → layers.Dq9UKbuW.js} +1 -1
- package/dist/{layers.BZ8rMF0E.js → layers.Drf2kiJx.js} +2 -2
- package/dist/{layers.BUmiV0yN.js → layers.Dt9SWopH.js} +1 -1
- package/dist/{layers.99biaYEX.js → layers.Dw4xOcLS.js} +1 -1
- package/dist/{layers.BLDa5caG.js → layers.Dx6o3AHd.js} +39 -39
- package/dist/{layers.D909hx91.js → layers.DyShKuzQ.js} +4 -4
- package/dist/{layers.BV8IclsW.js → layers.DynAg12_.js} +10 -10
- package/dist/{layers.CJKF-1iy.js → layers.HA62ETZA.js} +1 -1
- package/dist/{layers.CFNz078z.js → layers.HWluH27_.js} +3 -3
- package/dist/{layers.iWHM-07P.js → layers.JBzXVObP.js} +1 -1
- package/dist/{layers.vNQeOI7i.js → layers.JVszazjH.js} +1 -1
- package/dist/{layers.BRDVz-vO.js → layers.Jg6WtwJo.js} +1 -1
- package/dist/{layers.BMC2kTTB.js → layers.MFZhobsj.js} +3 -3
- package/dist/{layers._9mQNYpC.js → layers.MI4wH8L9.js} +7 -7
- package/dist/{layers.7AsF2nNX.js → layers.MehdV0ja.js} +1 -1
- package/dist/{layers.BeoJyn39.js → layers.OcAQHa1J.js} +1 -1
- package/dist/{layers.B3BBy8oP.js → layers.Ozvo9g0z.js} +1 -1
- package/dist/{layers.BBlxht-2.js → layers.P1BtRkwm.js} +8 -8
- package/dist/{layers.CQuzRJqP.js → layers.PPVBdt72.js} +1 -1
- package/dist/{layers.BFTIBVaT.js → layers.UE2cAJij.js} +1 -1
- package/dist/{layers.Ddq-N8Yz.js → layers.USVPS7pb.js} +1 -1
- package/dist/{layers.CGpLdUiP.js → layers.Wl3b0U27.js} +2 -2
- package/dist/{layers.STzdH4sy.js → layers.YWj0a0xT.js} +1 -1
- package/dist/{layers.mp_9sP04.js → layers.YrnAuDlJ.js} +1 -1
- package/dist/{layers.BrEysPok.js → layers.Zjq-ZbNZ.js} +1 -1
- package/dist/{layers.Bp4GA39y.js → layers.ZoZZfFPq.js} +1 -1
- package/dist/{layers.BMwaDYYZ.js → layers.ZtbXo_fH.js} +1 -1
- package/dist/layers._96RDBAe.js +8 -0
- package/dist/{layers.BCkBAe54.js → layers.aQQv7Yv3.js} +1 -1
- package/dist/{layers.C22FTFEe.js → layers.eM0rxbiD.js} +1 -1
- package/dist/layers.eo9hkPbZ.js +207 -0
- package/dist/{layers.D2U6dFrQ.js → layers.eomdMqLV.js} +1 -1
- package/dist/layers.fminQS5i.js +70 -0
- package/dist/{layers.rze-LVSQ.js → layers.frjt0fd6.js} +3 -3
- package/dist/{layers.09-oE2J6.js → layers.gjUHKcnN.js} +1 -1
- package/dist/{layers.Ddk469Dh.js → layers.jS5P-HrK.js} +1 -1
- package/dist/{layers.CLLE0XNM.js → layers.mVtYYDPF.js} +9 -9
- package/dist/layers.oiV8yEir.js +139 -0
- package/dist/{layers.BtZHGQ6E.js → layers.ri_UwHnL.js} +1 -1
- package/dist/{layers.CNLMZ-n8.js → layers.tpM1Q7DW.js} +1 -1
- package/dist/{layers.BvuDBP9J.js → layers.xsMIFCRd.js} +1 -1
- package/dist/{layers.Cq0Ch5Iv.js → layers.yTMF3vfL.js} +1 -1
- package/dist/{layers.COLyJ5LO.js → layers.zNk407Zn.js} +3 -3
- package/package.json +6 -6
- 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,9 +1,9 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Tn=require("./layers.BLDa5caG.js"),_=require("./layers.3Ou02qfO.js"),ye=require("./layers.0GKOEfQX.js"),Dt=require("./layers.99biaYEX.js"),vn=require("./layers.CHZsXQcr.js");function xn(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function bn(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function wn(t){return t}var qt=1,te=2,ue=3,Rt=4,_e=1e-6;function Cn(t){return"translate("+t+",0)"}function Dn(t){return"translate(0,"+t+")"}function Mn(t){return e=>+t(e)}function Sn(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function _n(){return!this.__axis}function je(t,e){var n=[],r=null,i=null,s=6,a=6,y=3,S=typeof window<"u"&&window.devicePixelRatio>1?0:.5,p=t===qt||t===Rt?-1:1,g=t===Rt||t===te?"x":"y",A=t===qt||t===ue?Cn:Dn;function w(T){var X=r??(e.ticks?e.ticks.apply(e,n):e.domain()),I=i??(e.tickFormat?e.tickFormat.apply(e,n):wn),D=Math.max(s,0)+y,E=e.range(),N=+E[0]+S,L=+E[E.length-1]+S,B=(e.bandwidth?Sn:Mn)(e.copy(),S),$=T.selection?T.selection():T,x=$.selectAll(".domain").data([null]),O=$.selectAll(".tick").data(X,e).order(),v=O.exit(),U=O.enter().append("g").attr("class","tick"),F=O.select("line"),b=O.select("text");x=x.merge(x.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),O=O.merge(U),F=F.merge(U.append("line").attr("stroke","currentColor").attr(g+"2",p*s)),b=b.merge(U.append("text").attr("fill","currentColor").attr(g,p*D).attr("dy",t===qt?"0em":t===ue?"0.71em":"0.32em")),T!==$&&(x=x.transition(T),O=O.transition(T),F=F.transition(T),b=b.transition(T),v=v.transition(T).attr("opacity",_e).attr("transform",function(o){return isFinite(o=B(o))?A(o+S):this.getAttribute("transform")}),U.attr("opacity",_e).attr("transform",function(o){var f=this.parentNode.__axis;return A((f&&isFinite(f=f(o))?f:B(o))+S)})),v.remove(),x.attr("d",t===Rt||t===te?a?"M"+p*a+","+N+"H"+S+"V"+L+"H"+p*a:"M"+S+","+N+"V"+L:a?"M"+N+","+p*a+"V"+S+"H"+L+"V"+p*a:"M"+N+","+S+"H"+L),O.attr("opacity",1).attr("transform",function(o){return A(B(o)+S)}),F.attr(g+"2",p*s),b.attr(g,p*D).text(I),$.filter(_n).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===te?"start":t===Rt?"end":"middle"),$.each(function(){this.__axis=B})}return w.scale=function(T){return arguments.length?(e=T,w):e},w.ticks=function(){return n=Array.from(arguments),w},w.tickArguments=function(T){return arguments.length?(n=T==null?[]:Array.from(T),w):n.slice()},w.tickValues=function(T){return arguments.length?(r=T==null?null:Array.from(T),w):r&&r.slice()},w.tickFormat=function(T){return arguments.length?(i=T,w):i},w.tickSize=function(T){return arguments.length?(s=a=+T,w):s},w.tickSizeInner=function(T){return arguments.length?(s=+T,w):s},w.tickSizeOuter=function(T){return arguments.length?(a=+T,w):a},w.tickPadding=function(T){return arguments.length?(y=+T,w):y},w.offset=function(T){return arguments.length?(S=+T,w):S},w}function Fn(t){return je(qt,t)}function Yn(t){return je(ue,t)}const Un=Math.PI/180,An=180/Math.PI,Qt=18,Be=.96422,Ze=1,Xe=.82521,Ge=4/29,Mt=6/29,Qe=3*Mt*Mt,En=Mt*Mt*Mt;function $e(t){if(t instanceof st)return new st(t.l,t.a,t.b,t.opacity);if(t instanceof ft)return Je(t);t instanceof _.Rgb||(t=_.rgbConvert(t));var e=ie(t.r),n=ie(t.g),r=ie(t.b),i=ee((.2225045*e+.7168786*n+.0606169*r)/Ze),s,a;return e===n&&n===r?s=a=i:(s=ee((.4360747*e+.3850649*n+.1430804*r)/Be),a=ee((.0139322*e+.0971045*n+.7141733*r)/Xe)),new st(116*i-16,500*(s-i),200*(i-a),t.opacity)}function Ln(t,e,n,r){return arguments.length===1?$e(t):new st(t,e,n,r??1)}function st(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}_.define(st,Ln,_.extend(_.Color$1,{brighter(t){return new st(this.l+Qt*(t??1),this.a,this.b,this.opacity)},darker(t){return new st(this.l-Qt*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=Be*ne(e),t=Ze*ne(t),n=Xe*ne(n),new _.Rgb(re(3.1338561*e-1.6168667*t-.4906146*n),re(-.9787684*e+1.9161415*t+.033454*n),re(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}}));function ee(t){return t>En?Math.pow(t,1/3):t/Qe+Ge}function ne(t){return t>Mt?t*t*t:Qe*(t-Ge)}function re(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function ie(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Wn(t){if(t instanceof ft)return new ft(t.h,t.c,t.l,t.opacity);if(t instanceof st||(t=$e(t)),t.a===0&&t.b===0)return new ft(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*An;return new ft(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function fe(t,e,n,r){return arguments.length===1?Wn(t):new ft(t,e,n,r??1)}function ft(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}function Je(t){if(isNaN(t.h))return new st(t.l,0,0,t.opacity);var e=t.h*Un;return new st(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}_.define(ft,fe,_.extend(_.Color$1,{brighter(t){return new ft(this.h,this.c,this.l+Qt*(t??1),this.opacity)},darker(t){return new ft(this.h,this.c,this.l-Qt*(t??1),this.opacity)},rgb(){return Je(this).rgb()}}));function In(t){return function(e,n){var r=t((e=fe(e)).h,(n=fe(n)).h),i=_.nogamma(e.c,n.c),s=_.nogamma(e.l,n.l),a=_.nogamma(e.opacity,n.opacity);return function(y){return e.h=r(y),e.c=i(y),e.l=s(y),e.opacity=a(y),e+""}}}const On=In(_.hue);function Hn(t,e){t=t.slice();var n=0,r=t.length-1,i=t[n],s=t[r],a;return s<i&&(a=n,n=r,r=a,a=i,i=s,s=a),t[n]=e.floor(i),t[r]=e.ceil(s),t}const se=new Date,ae=new Date;function et(t,e,n,r){function i(s){return t(s=arguments.length===0?new Date:new Date(+s)),s}return i.floor=s=>(t(s=new Date(+s)),s),i.ceil=s=>(t(s=new Date(s-1)),e(s,1),t(s),s),i.round=s=>{const a=i(s),y=i.ceil(s);return s-a<y-s?a:y},i.offset=(s,a)=>(e(s=new Date(+s),a==null?1:Math.floor(a)),s),i.range=(s,a,y)=>{const S=[];if(s=i.ceil(s),y=y==null?1:Math.floor(y),!(s<a)||!(y>0))return S;let p;do S.push(p=new Date(+s)),e(s,y),t(s);while(p<s&&s<a);return S},i.filter=s=>et(a=>{if(a>=a)for(;t(a),!s(a);)a.setTime(a-1)},(a,y)=>{if(a>=a)if(y<0)for(;++y<=0;)for(;e(a,-1),!s(a););else for(;--y>=0;)for(;e(a,1),!s(a););}),n&&(i.count=(s,a)=>(se.setTime(+s),ae.setTime(+a),t(se),t(ae),Math.floor(n(se,ae))),i.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?i.filter(r?a=>r(a)%s===0:a=>i.count(0,a)%s===0):i)),i}const _t=et(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);_t.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?et(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):_t);_t.range;const ht=1e3,rt=ht*60,dt=rt*60,mt=dt*24,ke=mt*7,Fe=mt*30,oe=mt*365,kt=et(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*ht)},(t,e)=>(e-t)/ht,t=>t.getUTCSeconds());kt.range;const Lt=et(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*ht)},(t,e)=>{t.setTime(+t+e*rt)},(t,e)=>(e-t)/rt,t=>t.getMinutes());Lt.range;const Nn=et(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*rt)},(t,e)=>(e-t)/rt,t=>t.getUTCMinutes());Nn.range;const Wt=et(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*ht-t.getMinutes()*rt)},(t,e)=>{t.setTime(+t+e*dt)},(t,e)=>(e-t)/dt,t=>t.getHours());Wt.range;const Pn=et(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*dt)},(t,e)=>(e-t)/dt,t=>t.getUTCHours());Pn.range;const pt=et(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*rt)/mt,t=>t.getDate()-1);pt.range;const pe=et(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/mt,t=>t.getUTCDate()-1);pe.range;const Vn=et(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/mt,t=>Math.floor(t/mt));Vn.range;function xt(t){return et(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+n*7)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*rt)/ke)}const Ht=xt(0),It=xt(1),Ke=xt(2),tn=xt(3),Tt=xt(4),en=xt(5),nn=xt(6);Ht.range;It.range;Ke.range;tn.range;Tt.range;en.range;nn.range;function bt(t){return et(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n*7)},(e,n)=>(n-e)/ke)}const rn=bt(0),$t=bt(1),zn=bt(2),Rn=bt(3),Ft=bt(4),qn=bt(5),jn=bt(6);rn.range;$t.range;zn.range;Rn.range;Ft.range;qn.range;jn.range;const Ot=et(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());Ot.range;const Bn=et(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());Bn.range;const gt=et(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());gt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:et(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)});gt.range;const vt=et(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());vt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:et(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)});vt.range;function Zn(t,e,n,r,i,s){const a=[[kt,1,ht],[kt,5,5*ht],[kt,15,15*ht],[kt,30,30*ht],[s,1,rt],[s,5,5*rt],[s,15,15*rt],[s,30,30*rt],[i,1,dt],[i,3,3*dt],[i,6,6*dt],[i,12,12*dt],[r,1,mt],[r,2,2*mt],[n,1,ke],[e,1,Fe],[e,3,3*Fe],[t,1,oe]];function y(p,g,A){const w=g<p;w&&([p,g]=[g,p]);const T=A&&typeof A.range=="function"?A:S(p,g,A),X=T?T.range(p,+g+1):[];return w?X.reverse():X}function S(p,g,A){const w=Math.abs(g-p)/A,T=Dt.bisector(([,,D])=>D).right(a,w);if(T===a.length)return t.every(Dt.tickStep(p/oe,g/oe,A));if(T===0)return _t.every(Math.max(Dt.tickStep(p,g,A),1));const[X,I]=a[w/a[T-1][2]<a[T][2]/w?T-1:T];return X.every(I)}return[y,S]}const[Xn,Gn]=Zn(gt,Ot,Ht,pt,Wt,Lt);function ce(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function le(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Ut(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function Qn(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,s=t.days,a=t.shortDays,y=t.months,S=t.shortMonths,p=At(i),g=Et(i),A=At(s),w=Et(s),T=At(a),X=Et(a),I=At(y),D=Et(y),E=At(S),N=Et(S),L={a:c,A:G,b:d,B:h,c:null,d:We,e:We,f:Tr,g:Fr,G:Ur,H:yr,I:kr,j:pr,L:sn,m:vr,M:xr,p:C,q:Z,Q:He,s:Ne,S:br,u:wr,U:Cr,V:Dr,w:Mr,W:Sr,x:null,X:null,y:_r,Y:Yr,Z:Ar,"%":Oe},B={a:H,A:z,b:P,B:R,c:null,d:Ie,e:Ie,f:Ir,g:Br,G:Xr,H:Er,I:Lr,j:Wr,L:on,m:Or,M:Hr,p:at,q:ot,Q:He,s:Ne,S:Nr,u:Pr,U:Vr,V:zr,w:Rr,W:qr,x:null,X:null,y:jr,Y:Zr,Z:Gr,"%":Oe},$={a:F,A:b,b:o,B:f,c:m,d:Ee,e:Ee,f:hr,g:Ae,G:Ue,H:Le,I:Le,j:cr,L:fr,m:or,M:lr,p:U,q:ar,Q:mr,s:gr,S:ur,u:er,U:nr,V:rr,w:tr,W:ir,x:u,X:M,y:Ae,Y:Ue,Z:sr,"%":dr};L.x=x(n,L),L.X=x(r,L),L.c=x(e,L),B.x=x(n,B),B.X=x(r,B),B.c=x(e,B);function x(k,W){return function(Y){var l=[],j=-1,V=0,Q=k.length,J,K,ct;for(Y instanceof Date||(Y=new Date(+Y));++j<Q;)k.charCodeAt(j)===37&&(l.push(k.slice(V,j)),(K=Ye[J=k.charAt(++j)])!=null?J=k.charAt(++j):K=J==="e"?" ":"0",(ct=W[J])&&(J=ct(Y,K)),l.push(J),V=j+1);return l.push(k.slice(V,j)),l.join("")}}function O(k,W){return function(Y){var l=Ut(1900,void 0,1),j=v(l,k,Y+="",0),V,Q;if(j!=Y.length)return null;if("Q"in l)return new Date(l.Q);if("s"in l)return new Date(l.s*1e3+("L"in l?l.L:0));if(W&&!("Z"in l)&&(l.Z=0),"p"in l&&(l.H=l.H%12+l.p*12),l.m===void 0&&(l.m="q"in l?l.q:0),"V"in l){if(l.V<1||l.V>53)return null;"w"in l||(l.w=1),"Z"in l?(V=le(Ut(l.y,0,1)),Q=V.getUTCDay(),V=Q>4||Q===0?$t.ceil(V):$t(V),V=pe.offset(V,(l.V-1)*7),l.y=V.getUTCFullYear(),l.m=V.getUTCMonth(),l.d=V.getUTCDate()+(l.w+6)%7):(V=ce(Ut(l.y,0,1)),Q=V.getDay(),V=Q>4||Q===0?It.ceil(V):It(V),V=pt.offset(V,(l.V-1)*7),l.y=V.getFullYear(),l.m=V.getMonth(),l.d=V.getDate()+(l.w+6)%7)}else("W"in l||"U"in l)&&("w"in l||(l.w="u"in l?l.u%7:"W"in l?1:0),Q="Z"in l?le(Ut(l.y,0,1)).getUTCDay():ce(Ut(l.y,0,1)).getDay(),l.m=0,l.d="W"in l?(l.w+6)%7+l.W*7-(Q+5)%7:l.w+l.U*7-(Q+6)%7);return"Z"in l?(l.H+=l.Z/100|0,l.M+=l.Z%100,le(l)):ce(l)}}function v(k,W,Y,l){for(var j=0,V=W.length,Q=Y.length,J,K;j<V;){if(l>=Q)return-1;if(J=W.charCodeAt(j++),J===37){if(J=W.charAt(j++),K=$[J in Ye?W.charAt(j++):J],!K||(l=K(k,Y,l))<0)return-1}else if(J!=Y.charCodeAt(l++))return-1}return l}function U(k,W,Y){var l=p.exec(W.slice(Y));return l?(k.p=g.get(l[0].toLowerCase()),Y+l[0].length):-1}function F(k,W,Y){var l=T.exec(W.slice(Y));return l?(k.w=X.get(l[0].toLowerCase()),Y+l[0].length):-1}function b(k,W,Y){var l=A.exec(W.slice(Y));return l?(k.w=w.get(l[0].toLowerCase()),Y+l[0].length):-1}function o(k,W,Y){var l=E.exec(W.slice(Y));return l?(k.m=N.get(l[0].toLowerCase()),Y+l[0].length):-1}function f(k,W,Y){var l=I.exec(W.slice(Y));return l?(k.m=D.get(l[0].toLowerCase()),Y+l[0].length):-1}function m(k,W,Y){return v(k,e,W,Y)}function u(k,W,Y){return v(k,n,W,Y)}function M(k,W,Y){return v(k,r,W,Y)}function c(k){return a[k.getDay()]}function G(k){return s[k.getDay()]}function d(k){return S[k.getMonth()]}function h(k){return y[k.getMonth()]}function C(k){return i[+(k.getHours()>=12)]}function Z(k){return 1+~~(k.getMonth()/3)}function H(k){return a[k.getUTCDay()]}function z(k){return s[k.getUTCDay()]}function P(k){return S[k.getUTCMonth()]}function R(k){return y[k.getUTCMonth()]}function at(k){return i[+(k.getUTCHours()>=12)]}function ot(k){return 1+~~(k.getUTCMonth()/3)}return{format:function(k){var W=x(k+="",L);return W.toString=function(){return k},W},parse:function(k){var W=O(k+="",!1);return W.toString=function(){return k},W},utcFormat:function(k){var W=x(k+="",B);return W.toString=function(){return k},W},utcParse:function(k){var W=O(k+="",!0);return W.toString=function(){return k},W}}}var Ye={"-":"",_:" ",0:"0"},nt=/^\s*\d+/,$n=/^%/,Jn=/[\\^$*+?|[\]().{}]/g;function q(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",s=i.length;return r+(s<n?new Array(n-s+1).join(e)+i:i)}function Kn(t){return t.replace(Jn,"\\$&")}function At(t){return new RegExp("^(?:"+t.map(Kn).join("|")+")","i")}function Et(t){return new Map(t.map((e,n)=>[e.toLowerCase(),n]))}function tr(t,e,n){var r=nt.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function er(t,e,n){var r=nt.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function nr(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function rr(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function ir(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Ue(t,e,n){var r=nt.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Ae(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function sr(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function ar(t,e,n){var r=nt.exec(e.slice(n,n+1));return r?(t.q=r[0]*3-3,n+r[0].length):-1}function or(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Ee(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function cr(t,e,n){var r=nt.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Le(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function lr(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function ur(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function fr(t,e,n){var r=nt.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function hr(t,e,n){var r=nt.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function dr(t,e,n){var r=$n.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function mr(t,e,n){var r=nt.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function gr(t,e,n){var r=nt.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function We(t,e){return q(t.getDate(),e,2)}function yr(t,e){return q(t.getHours(),e,2)}function kr(t,e){return q(t.getHours()%12||12,e,2)}function pr(t,e){return q(1+pt.count(gt(t),t),e,3)}function sn(t,e){return q(t.getMilliseconds(),e,3)}function Tr(t,e){return sn(t,e)+"000"}function vr(t,e){return q(t.getMonth()+1,e,2)}function xr(t,e){return q(t.getMinutes(),e,2)}function br(t,e){return q(t.getSeconds(),e,2)}function wr(t){var e=t.getDay();return e===0?7:e}function Cr(t,e){return q(Ht.count(gt(t)-1,t),e,2)}function an(t){var e=t.getDay();return e>=4||e===0?Tt(t):Tt.ceil(t)}function Dr(t,e){return t=an(t),q(Tt.count(gt(t),t)+(gt(t).getDay()===4),e,2)}function Mr(t){return t.getDay()}function Sr(t,e){return q(It.count(gt(t)-1,t),e,2)}function _r(t,e){return q(t.getFullYear()%100,e,2)}function Fr(t,e){return t=an(t),q(t.getFullYear()%100,e,2)}function Yr(t,e){return q(t.getFullYear()%1e4,e,4)}function Ur(t,e){var n=t.getDay();return t=n>=4||n===0?Tt(t):Tt.ceil(t),q(t.getFullYear()%1e4,e,4)}function Ar(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+q(e/60|0,"0",2)+q(e%60,"0",2)}function Ie(t,e){return q(t.getUTCDate(),e,2)}function Er(t,e){return q(t.getUTCHours(),e,2)}function Lr(t,e){return q(t.getUTCHours()%12||12,e,2)}function Wr(t,e){return q(1+pe.count(vt(t),t),e,3)}function on(t,e){return q(t.getUTCMilliseconds(),e,3)}function Ir(t,e){return on(t,e)+"000"}function Or(t,e){return q(t.getUTCMonth()+1,e,2)}function Hr(t,e){return q(t.getUTCMinutes(),e,2)}function Nr(t,e){return q(t.getUTCSeconds(),e,2)}function Pr(t){var e=t.getUTCDay();return e===0?7:e}function Vr(t,e){return q(rn.count(vt(t)-1,t),e,2)}function cn(t){var e=t.getUTCDay();return e>=4||e===0?Ft(t):Ft.ceil(t)}function zr(t,e){return t=cn(t),q(Ft.count(vt(t),t)+(vt(t).getUTCDay()===4),e,2)}function Rr(t){return t.getUTCDay()}function qr(t,e){return q($t.count(vt(t)-1,t),e,2)}function jr(t,e){return q(t.getUTCFullYear()%100,e,2)}function Br(t,e){return t=cn(t),q(t.getUTCFullYear()%100,e,2)}function Zr(t,e){return q(t.getUTCFullYear()%1e4,e,4)}function Xr(t,e){var n=t.getUTCDay();return t=n>=4||n===0?Ft(t):Ft.ceil(t),q(t.getUTCFullYear()%1e4,e,4)}function Gr(){return"+0000"}function Oe(){return"%"}function He(t){return+t}function Ne(t){return Math.floor(+t/1e3)}var Ct,Jt;Qr({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Qr(t){return Ct=Qn(t),Jt=Ct.format,Ct.parse,Ct.utcFormat,Ct.utcParse,Ct}function $r(t){return new Date(t)}function Jr(t){return t instanceof Date?+t:+new Date(+t)}function ln(t,e,n,r,i,s,a,y,S,p){var g=Dt.continuous(),A=g.invert,w=g.domain,T=p(".%L"),X=p(":%S"),I=p("%I:%M"),D=p("%I %p"),E=p("%a %d"),N=p("%b %d"),L=p("%B"),B=p("%Y");function $(x){return(S(x)<x?T:y(x)<x?X:a(x)<x?I:s(x)<x?D:r(x)<x?i(x)<x?E:N:n(x)<x?L:B)(x)}return g.invert=function(x){return new Date(A(x))},g.domain=function(x){return arguments.length?w(Array.from(x,Jr)):w().map($r)},g.ticks=function(x){var O=w();return t(O[0],O[O.length-1],x??10)},g.tickFormat=function(x,O){return O==null?$:p(O)},g.nice=function(x){var O=w();return(!x||typeof x.range!="function")&&(x=e(O[0],O[O.length-1],x??10)),x?w(Hn(O,x)):g},g.copy=function(){return Dt.copy(g,ln(t,e,n,r,i,s,a,y,S,p))},g}function Kr(){return vn.initRange.apply(ln(Xn,Gn,gt,Ot,Ht,pt,Wt,Lt,kt,Jt).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var jt={exports:{}},ti=jt.exports,Pe;function ei(){return Pe||(Pe=1,function(t,e){(function(n,r){t.exports=r()})(ti,function(){var n="day";return function(r,i,s){var a=function(p){return p.add(4-p.isoWeekday(),n)},y=i.prototype;y.isoWeekYear=function(){return a(this).year()},y.isoWeek=function(p){if(!this.$utils().u(p))return this.add(7*(p-this.isoWeek()),n);var g,A,w,T,X=a(this),I=(g=this.isoWeekYear(),A=this.$u,w=(A?s.utc:s)().year(g).startOf("year"),T=4-w.isoWeekday(),w.isoWeekday()>4&&(T+=7),w.add(T,n));return X.diff(I,"week")+1},y.isoWeekday=function(p){return this.$utils().u(p)?this.day()||7:this.day(this.day()%7?p:p-7)};var S=y.startOf;y.startOf=function(p,g){var A=this.$utils(),w=!!A.u(g)||g;return A.p(p)==="isoweek"?w?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):S.bind(this)(p,g)}}})}(jt)),jt.exports}var ni=ei();const ri=ye.getDefaultExportFromCjs(ni);var Bt={exports:{}},ii=Bt.exports,Ve;function si(){return Ve||(Ve=1,function(t,e){(function(n,r){t.exports=r()})(ii,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d/,s=/\d\d/,a=/\d\d?/,y=/\d*[^-_:/,()\s\d]+/,S={},p=function(D){return(D=+D)+(D>68?1900:2e3)},g=function(D){return function(E){this[D]=+E}},A=[/[+-]\d\d:?(\d\d)?|Z/,function(D){(this.zone||(this.zone={})).offset=function(E){if(!E||E==="Z")return 0;var N=E.match(/([+-]|\d\d)/g),L=60*N[1]+(+N[2]||0);return L===0?0:N[0]==="+"?-L:L}(D)}],w=function(D){var E=S[D];return E&&(E.indexOf?E:E.s.concat(E.f))},T=function(D,E){var N,L=S.meridiem;if(L){for(var B=1;B<=24;B+=1)if(D.indexOf(L(B,0,E))>-1){N=B>12;break}}else N=D===(E?"pm":"PM");return N},X={A:[y,function(D){this.afternoon=T(D,!1)}],a:[y,function(D){this.afternoon=T(D,!0)}],Q:[i,function(D){this.month=3*(D-1)+1}],S:[i,function(D){this.milliseconds=100*+D}],SS:[s,function(D){this.milliseconds=10*+D}],SSS:[/\d{3}/,function(D){this.milliseconds=+D}],s:[a,g("seconds")],ss:[a,g("seconds")],m:[a,g("minutes")],mm:[a,g("minutes")],H:[a,g("hours")],h:[a,g("hours")],HH:[a,g("hours")],hh:[a,g("hours")],D:[a,g("day")],DD:[s,g("day")],Do:[y,function(D){var E=S.ordinal,N=D.match(/\d+/);if(this.day=N[0],E)for(var L=1;L<=31;L+=1)E(L).replace(/\[|\]/g,"")===D&&(this.day=L)}],w:[a,g("week")],ww:[s,g("week")],M:[a,g("month")],MM:[s,g("month")],MMM:[y,function(D){var E=w("months"),N=(w("monthsShort")||E.map(function(L){return L.slice(0,3)})).indexOf(D)+1;if(N<1)throw new Error;this.month=N%12||N}],MMMM:[y,function(D){var E=w("months").indexOf(D)+1;if(E<1)throw new Error;this.month=E%12||E}],Y:[/[+-]?\d+/,g("year")],YY:[s,function(D){this.year=p(D)}],YYYY:[/\d{4}/,g("year")],Z:A,ZZ:A};function I(D){var E,N;E=D,N=S&&S.formats;for(var L=(D=E.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(F,b,o){var f=o&&o.toUpperCase();return b||N[o]||n[o]||N[f].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(m,u,M){return u||M.slice(1)})})).match(r),B=L.length,$=0;$<B;$+=1){var x=L[$],O=X[x],v=O&&O[0],U=O&&O[1];L[$]=U?{regex:v,parser:U}:x.replace(/^\[|\]$/g,"")}return function(F){for(var b={},o=0,f=0;o<B;o+=1){var m=L[o];if(typeof m=="string")f+=m.length;else{var u=m.regex,M=m.parser,c=F.slice(f),G=u.exec(c)[0];M.call(b,G),F=F.replace(G,"")}}return function(d){var h=d.afternoon;if(h!==void 0){var C=d.hours;h?C<12&&(d.hours+=12):C===12&&(d.hours=0),delete d.afternoon}}(b),b}}return function(D,E,N){N.p.customParseFormat=!0,D&&D.parseTwoDigitYear&&(p=D.parseTwoDigitYear);var L=E.prototype,B=L.parse;L.parse=function($){var x=$.date,O=$.utc,v=$.args;this.$u=O;var U=v[1];if(typeof U=="string"){var F=v[2]===!0,b=v[3]===!0,o=F||b,f=v[2];b&&(f=v[2]),S=this.$locale(),!F&&f&&(S=N.Ls[f]),this.$d=function(c,G,d,h){try{if(["x","X"].indexOf(G)>-1)return new Date((G==="X"?1e3:1)*c);var C=I(G)(c),Z=C.year,H=C.month,z=C.day,P=C.hours,R=C.minutes,at=C.seconds,ot=C.milliseconds,k=C.zone,W=C.week,Y=new Date,l=z||(Z||H?1:Y.getDate()),j=Z||Y.getFullYear(),V=0;Z&&!H||(V=H>0?H-1:Y.getMonth());var Q,J=P||0,K=R||0,ct=at||0,yt=ot||0;return k?new Date(Date.UTC(j,V,l,J,K,ct,yt+60*k.offset*1e3)):d?new Date(Date.UTC(j,V,l,J,K,ct,yt)):(Q=new Date(j,V,l,J,K,ct,yt),W&&(Q=h(Q).week(W).toDate()),Q)}catch{return new Date("")}}(x,U,O,N),this.init(),f&&f!==!0&&(this.$L=this.locale(f).$L),o&&x!=this.format(U)&&(this.$d=new Date("")),S={}}else if(U instanceof Array)for(var m=U.length,u=1;u<=m;u+=1){v[1]=U[u-1];var M=N.apply(this,v);if(M.isValid()){this.$d=M.$d,this.$L=M.$L,this.init();break}u===m&&(this.$d=new Date(""))}else B.call(this,$)}}})}(Bt)),Bt.exports}var ai=si();const oi=ye.getDefaultExportFromCjs(ai);var Zt={exports:{}},ci=Zt.exports,ze;function li(){return ze||(ze=1,function(t,e){(function(n,r){t.exports=r()})(ci,function(){return function(n,r){var i=r.prototype,s=i.format;i.format=function(a){var y=this,S=this.$locale();if(!this.isValid())return s.bind(this)(a);var p=this.$utils(),g=(a||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(A){switch(A){case"Q":return Math.ceil((y.$M+1)/3);case"Do":return S.ordinal(y.$D);case"gggg":return y.weekYear();case"GGGG":return y.isoWeekYear();case"wo":return S.ordinal(y.week(),"W");case"w":case"ww":return p.s(y.week(),A==="w"?1:2,"0");case"W":case"WW":return p.s(y.isoWeek(),A==="W"?1:2,"0");case"k":case"kk":return p.s(String(y.$H===0?24:y.$H),A==="k"?1:2,"0");case"X":return Math.floor(y.$d.getTime()/1e3);case"x":return y.$d.getTime();case"z":return"["+y.offsetName()+"]";case"zzz":return"["+y.offsetName("long")+"]";default:return A}});return s.bind(this)(g)}}})}(Zt)),Zt.exports}var ui=li();const fi=ye.getDefaultExportFromCjs(ui);var he=function(){var t=function(b,o,f,m){for(f=f||{},m=b.length;m--;f[b[m]]=o);return f},e=[6,8,10,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,30,32,33,35,37],n=[1,25],r=[1,26],i=[1,27],s=[1,28],a=[1,29],y=[1,30],S=[1,31],p=[1,9],g=[1,10],A=[1,11],w=[1,12],T=[1,13],X=[1,14],I=[1,15],D=[1,16],E=[1,18],N=[1,19],L=[1,20],B=[1,21],$=[1,22],x=[1,24],O=[1,32],v={trace:function(){},yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,dateFormat:19,inclusiveEndDates:20,topAxis:21,axisFormat:22,tickInterval:23,excludes:24,includes:25,todayMarker:26,title:27,acc_title:28,acc_title_value:29,acc_descr:30,acc_descr_value:31,acc_descr_multiline_value:32,section:33,clickStatement:34,taskTxt:35,taskData:36,click:37,callbackname:38,callbackargs:39,href:40,clickStatementDebug:41,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",19:"dateFormat",20:"inclusiveEndDates",21:"topAxis",22:"axisFormat",23:"tickInterval",24:"excludes",25:"includes",26:"todayMarker",27:"title",28:"acc_title",29:"acc_title_value",30:"acc_descr",31:"acc_descr_value",32:"acc_descr_multiline_value",33:"section",35:"taskTxt",36:"taskData",37:"click",38:"callbackname",39:"callbackargs",40:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[34,2],[34,3],[34,3],[34,4],[34,3],[34,4],[34,2],[41,2],[41,3],[41,3],[41,4],[41,3],[41,4],[41,2]],performAction:function(o,f,m,u,M,c,G){var d=c.length-1;switch(M){case 1:return c[d-1];case 2:this.$=[];break;case 3:c[d-1].push(c[d]),this.$=c[d-1];break;case 4:case 5:this.$=c[d];break;case 6:case 7:this.$=[];break;case 8:u.setWeekday("monday");break;case 9:u.setWeekday("tuesday");break;case 10:u.setWeekday("wednesday");break;case 11:u.setWeekday("thursday");break;case 12:u.setWeekday("friday");break;case 13:u.setWeekday("saturday");break;case 14:u.setWeekday("sunday");break;case 15:u.setDateFormat(c[d].substr(11)),this.$=c[d].substr(11);break;case 16:u.enableInclusiveEndDates(),this.$=c[d].substr(18);break;case 17:u.TopAxis(),this.$=c[d].substr(8);break;case 18:u.setAxisFormat(c[d].substr(11)),this.$=c[d].substr(11);break;case 19:u.setTickInterval(c[d].substr(13)),this.$=c[d].substr(13);break;case 20:u.setExcludes(c[d].substr(9)),this.$=c[d].substr(9);break;case 21:u.setIncludes(c[d].substr(9)),this.$=c[d].substr(9);break;case 22:u.setTodayMarker(c[d].substr(12)),this.$=c[d].substr(12);break;case 24:u.setDiagramTitle(c[d].substr(6)),this.$=c[d].substr(6);break;case 25:this.$=c[d].trim(),u.setAccTitle(this.$);break;case 26:case 27:this.$=c[d].trim(),u.setAccDescription(this.$);break;case 28:u.addSection(c[d].substr(8)),this.$=c[d].substr(8);break;case 30:u.addTask(c[d-1],c[d]),this.$="task";break;case 31:this.$=c[d-1],u.setClickEvent(c[d-1],c[d],null);break;case 32:this.$=c[d-2],u.setClickEvent(c[d-2],c[d-1],c[d]);break;case 33:this.$=c[d-2],u.setClickEvent(c[d-2],c[d-1],null),u.setLink(c[d-2],c[d]);break;case 34:this.$=c[d-3],u.setClickEvent(c[d-3],c[d-2],c[d-1]),u.setLink(c[d-3],c[d]);break;case 35:this.$=c[d-2],u.setClickEvent(c[d-2],c[d],null),u.setLink(c[d-2],c[d-1]);break;case 36:this.$=c[d-3],u.setClickEvent(c[d-3],c[d-1],c[d]),u.setLink(c[d-3],c[d-2]);break;case 37:this.$=c[d-1],u.setLink(c[d-1],c[d]);break;case 38:case 44:this.$=c[d-1]+" "+c[d];break;case 39:case 40:case 42:this.$=c[d-2]+" "+c[d-1]+" "+c[d];break;case 41:case 43:this.$=c[d-3]+" "+c[d-2]+" "+c[d-1]+" "+c[d];break}},table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:r,14:i,15:s,16:a,17:y,18:S,19:p,20:g,21:A,22:w,23:T,24:X,25:I,26:D,27:E,28:N,30:L,32:B,33:$,34:23,35:x,37:O},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:33,11:17,12:n,13:r,14:i,15:s,16:a,17:y,18:S,19:p,20:g,21:A,22:w,23:T,24:X,25:I,26:D,27:E,28:N,30:L,32:B,33:$,34:23,35:x,37:O},t(e,[2,5]),t(e,[2,6]),t(e,[2,15]),t(e,[2,16]),t(e,[2,17]),t(e,[2,18]),t(e,[2,19]),t(e,[2,20]),t(e,[2,21]),t(e,[2,22]),t(e,[2,23]),t(e,[2,24]),{29:[1,34]},{31:[1,35]},t(e,[2,27]),t(e,[2,28]),t(e,[2,29]),{36:[1,36]},t(e,[2,8]),t(e,[2,9]),t(e,[2,10]),t(e,[2,11]),t(e,[2,12]),t(e,[2,13]),t(e,[2,14]),{38:[1,37],40:[1,38]},t(e,[2,4]),t(e,[2,25]),t(e,[2,26]),t(e,[2,30]),t(e,[2,31],{39:[1,39],40:[1,40]}),t(e,[2,37],{38:[1,41]}),t(e,[2,32],{40:[1,42]}),t(e,[2,33]),t(e,[2,35],{39:[1,43]}),t(e,[2,34]),t(e,[2,36])],defaultActions:{},parseError:function(o,f){if(f.recoverable)this.trace(o);else{var m=new Error(o);throw m.hash=f,m}},parse:function(o){var f=this,m=[0],u=[],M=[null],c=[],G=this.table,d="",h=0,C=0,Z=2,H=1,z=c.slice.call(arguments,1),P=Object.create(this.lexer),R={yy:{}};for(var at in this.yy)Object.prototype.hasOwnProperty.call(this.yy,at)&&(R.yy[at]=this.yy[at]);P.setInput(o,R.yy),R.yy.lexer=P,R.yy.parser=this,typeof P.yylloc>"u"&&(P.yylloc={});var ot=P.yylloc;c.push(ot);var k=P.options&&P.options.ranges;typeof R.yy.parseError=="function"?this.parseError=R.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function W(){var lt;return lt=u.pop()||P.lex()||H,typeof lt!="number"&&(lt instanceof Array&&(u=lt,lt=u.pop()),lt=f.symbols_[lt]||lt),lt}for(var Y,l,j,V,Q={},J,K,ct,yt;;){if(l=m[m.length-1],this.defaultActions[l]?j=this.defaultActions[l]:((Y===null||typeof Y>"u")&&(Y=W()),j=G[l]&&G[l][Y]),typeof j>"u"||!j.length||!j[0]){var zt="";yt=[];for(J in G[l])this.terminals_[J]&&J>Z&&yt.push("'"+this.terminals_[J]+"'");P.showPosition?zt="Parse error on line "+(h+1)+`:
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Tn=require("./layers.Dx6o3AHd.js"),_=require("./layers.D79Z4mUK.js"),ye=require("./layers.DIX8uu7p.js"),Dt=require("./layers.Dw4xOcLS.js"),vn=require("./layers.CHZsXQcr.js");function xn(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function bn(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function wn(t){return t}var qt=1,te=2,ue=3,Rt=4,_e=1e-6;function Cn(t){return"translate("+t+",0)"}function Dn(t){return"translate(0,"+t+")"}function Mn(t){return e=>+t(e)}function Sn(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function _n(){return!this.__axis}function je(t,e){var n=[],r=null,i=null,s=6,a=6,y=3,S=typeof window<"u"&&window.devicePixelRatio>1?0:.5,p=t===qt||t===Rt?-1:1,g=t===Rt||t===te?"x":"y",A=t===qt||t===ue?Cn:Dn;function w(T){var X=r??(e.ticks?e.ticks.apply(e,n):e.domain()),I=i??(e.tickFormat?e.tickFormat.apply(e,n):wn),D=Math.max(s,0)+y,E=e.range(),N=+E[0]+S,L=+E[E.length-1]+S,B=(e.bandwidth?Sn:Mn)(e.copy(),S),$=T.selection?T.selection():T,x=$.selectAll(".domain").data([null]),O=$.selectAll(".tick").data(X,e).order(),v=O.exit(),U=O.enter().append("g").attr("class","tick"),F=O.select("line"),b=O.select("text");x=x.merge(x.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),O=O.merge(U),F=F.merge(U.append("line").attr("stroke","currentColor").attr(g+"2",p*s)),b=b.merge(U.append("text").attr("fill","currentColor").attr(g,p*D).attr("dy",t===qt?"0em":t===ue?"0.71em":"0.32em")),T!==$&&(x=x.transition(T),O=O.transition(T),F=F.transition(T),b=b.transition(T),v=v.transition(T).attr("opacity",_e).attr("transform",function(o){return isFinite(o=B(o))?A(o+S):this.getAttribute("transform")}),U.attr("opacity",_e).attr("transform",function(o){var f=this.parentNode.__axis;return A((f&&isFinite(f=f(o))?f:B(o))+S)})),v.remove(),x.attr("d",t===Rt||t===te?a?"M"+p*a+","+N+"H"+S+"V"+L+"H"+p*a:"M"+S+","+N+"V"+L:a?"M"+N+","+p*a+"V"+S+"H"+L+"V"+p*a:"M"+N+","+S+"H"+L),O.attr("opacity",1).attr("transform",function(o){return A(B(o)+S)}),F.attr(g+"2",p*s),b.attr(g,p*D).text(I),$.filter(_n).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===te?"start":t===Rt?"end":"middle"),$.each(function(){this.__axis=B})}return w.scale=function(T){return arguments.length?(e=T,w):e},w.ticks=function(){return n=Array.from(arguments),w},w.tickArguments=function(T){return arguments.length?(n=T==null?[]:Array.from(T),w):n.slice()},w.tickValues=function(T){return arguments.length?(r=T==null?null:Array.from(T),w):r&&r.slice()},w.tickFormat=function(T){return arguments.length?(i=T,w):i},w.tickSize=function(T){return arguments.length?(s=a=+T,w):s},w.tickSizeInner=function(T){return arguments.length?(s=+T,w):s},w.tickSizeOuter=function(T){return arguments.length?(a=+T,w):a},w.tickPadding=function(T){return arguments.length?(y=+T,w):y},w.offset=function(T){return arguments.length?(S=+T,w):S},w}function Fn(t){return je(qt,t)}function Yn(t){return je(ue,t)}const Un=Math.PI/180,An=180/Math.PI,Qt=18,Be=.96422,Ze=1,Xe=.82521,Ge=4/29,Mt=6/29,Qe=3*Mt*Mt,En=Mt*Mt*Mt;function $e(t){if(t instanceof st)return new st(t.l,t.a,t.b,t.opacity);if(t instanceof ft)return Je(t);t instanceof _.Rgb||(t=_.rgbConvert(t));var e=ie(t.r),n=ie(t.g),r=ie(t.b),i=ee((.2225045*e+.7168786*n+.0606169*r)/Ze),s,a;return e===n&&n===r?s=a=i:(s=ee((.4360747*e+.3850649*n+.1430804*r)/Be),a=ee((.0139322*e+.0971045*n+.7141733*r)/Xe)),new st(116*i-16,500*(s-i),200*(i-a),t.opacity)}function Ln(t,e,n,r){return arguments.length===1?$e(t):new st(t,e,n,r??1)}function st(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}_.define(st,Ln,_.extend(_.Color$1,{brighter(t){return new st(this.l+Qt*(t??1),this.a,this.b,this.opacity)},darker(t){return new st(this.l-Qt*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=Be*ne(e),t=Ze*ne(t),n=Xe*ne(n),new _.Rgb(re(3.1338561*e-1.6168667*t-.4906146*n),re(-.9787684*e+1.9161415*t+.033454*n),re(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}}));function ee(t){return t>En?Math.pow(t,1/3):t/Qe+Ge}function ne(t){return t>Mt?t*t*t:Qe*(t-Ge)}function re(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function ie(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Wn(t){if(t instanceof ft)return new ft(t.h,t.c,t.l,t.opacity);if(t instanceof st||(t=$e(t)),t.a===0&&t.b===0)return new ft(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*An;return new ft(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function fe(t,e,n,r){return arguments.length===1?Wn(t):new ft(t,e,n,r??1)}function ft(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}function Je(t){if(isNaN(t.h))return new st(t.l,0,0,t.opacity);var e=t.h*Un;return new st(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}_.define(ft,fe,_.extend(_.Color$1,{brighter(t){return new ft(this.h,this.c,this.l+Qt*(t??1),this.opacity)},darker(t){return new ft(this.h,this.c,this.l-Qt*(t??1),this.opacity)},rgb(){return Je(this).rgb()}}));function In(t){return function(e,n){var r=t((e=fe(e)).h,(n=fe(n)).h),i=_.nogamma(e.c,n.c),s=_.nogamma(e.l,n.l),a=_.nogamma(e.opacity,n.opacity);return function(y){return e.h=r(y),e.c=i(y),e.l=s(y),e.opacity=a(y),e+""}}}const On=In(_.hue);function Hn(t,e){t=t.slice();var n=0,r=t.length-1,i=t[n],s=t[r],a;return s<i&&(a=n,n=r,r=a,a=i,i=s,s=a),t[n]=e.floor(i),t[r]=e.ceil(s),t}const se=new Date,ae=new Date;function et(t,e,n,r){function i(s){return t(s=arguments.length===0?new Date:new Date(+s)),s}return i.floor=s=>(t(s=new Date(+s)),s),i.ceil=s=>(t(s=new Date(s-1)),e(s,1),t(s),s),i.round=s=>{const a=i(s),y=i.ceil(s);return s-a<y-s?a:y},i.offset=(s,a)=>(e(s=new Date(+s),a==null?1:Math.floor(a)),s),i.range=(s,a,y)=>{const S=[];if(s=i.ceil(s),y=y==null?1:Math.floor(y),!(s<a)||!(y>0))return S;let p;do S.push(p=new Date(+s)),e(s,y),t(s);while(p<s&&s<a);return S},i.filter=s=>et(a=>{if(a>=a)for(;t(a),!s(a);)a.setTime(a-1)},(a,y)=>{if(a>=a)if(y<0)for(;++y<=0;)for(;e(a,-1),!s(a););else for(;--y>=0;)for(;e(a,1),!s(a););}),n&&(i.count=(s,a)=>(se.setTime(+s),ae.setTime(+a),t(se),t(ae),Math.floor(n(se,ae))),i.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?i.filter(r?a=>r(a)%s===0:a=>i.count(0,a)%s===0):i)),i}const _t=et(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);_t.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?et(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):_t);_t.range;const ht=1e3,rt=ht*60,dt=rt*60,mt=dt*24,ke=mt*7,Fe=mt*30,oe=mt*365,kt=et(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*ht)},(t,e)=>(e-t)/ht,t=>t.getUTCSeconds());kt.range;const Lt=et(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*ht)},(t,e)=>{t.setTime(+t+e*rt)},(t,e)=>(e-t)/rt,t=>t.getMinutes());Lt.range;const Nn=et(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*rt)},(t,e)=>(e-t)/rt,t=>t.getUTCMinutes());Nn.range;const Wt=et(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*ht-t.getMinutes()*rt)},(t,e)=>{t.setTime(+t+e*dt)},(t,e)=>(e-t)/dt,t=>t.getHours());Wt.range;const Pn=et(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*dt)},(t,e)=>(e-t)/dt,t=>t.getUTCHours());Pn.range;const pt=et(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*rt)/mt,t=>t.getDate()-1);pt.range;const pe=et(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/mt,t=>t.getUTCDate()-1);pe.range;const Vn=et(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/mt,t=>Math.floor(t/mt));Vn.range;function xt(t){return et(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+n*7)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*rt)/ke)}const Ht=xt(0),It=xt(1),Ke=xt(2),tn=xt(3),Tt=xt(4),en=xt(5),nn=xt(6);Ht.range;It.range;Ke.range;tn.range;Tt.range;en.range;nn.range;function bt(t){return et(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n*7)},(e,n)=>(n-e)/ke)}const rn=bt(0),$t=bt(1),zn=bt(2),Rn=bt(3),Ft=bt(4),qn=bt(5),jn=bt(6);rn.range;$t.range;zn.range;Rn.range;Ft.range;qn.range;jn.range;const Ot=et(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());Ot.range;const Bn=et(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());Bn.range;const gt=et(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());gt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:et(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)});gt.range;const vt=et(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());vt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:et(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)});vt.range;function Zn(t,e,n,r,i,s){const a=[[kt,1,ht],[kt,5,5*ht],[kt,15,15*ht],[kt,30,30*ht],[s,1,rt],[s,5,5*rt],[s,15,15*rt],[s,30,30*rt],[i,1,dt],[i,3,3*dt],[i,6,6*dt],[i,12,12*dt],[r,1,mt],[r,2,2*mt],[n,1,ke],[e,1,Fe],[e,3,3*Fe],[t,1,oe]];function y(p,g,A){const w=g<p;w&&([p,g]=[g,p]);const T=A&&typeof A.range=="function"?A:S(p,g,A),X=T?T.range(p,+g+1):[];return w?X.reverse():X}function S(p,g,A){const w=Math.abs(g-p)/A,T=Dt.bisector(([,,D])=>D).right(a,w);if(T===a.length)return t.every(Dt.tickStep(p/oe,g/oe,A));if(T===0)return _t.every(Math.max(Dt.tickStep(p,g,A),1));const[X,I]=a[w/a[T-1][2]<a[T][2]/w?T-1:T];return X.every(I)}return[y,S]}const[Xn,Gn]=Zn(gt,Ot,Ht,pt,Wt,Lt);function ce(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function le(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Ut(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function Qn(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,s=t.days,a=t.shortDays,y=t.months,S=t.shortMonths,p=At(i),g=Et(i),A=At(s),w=Et(s),T=At(a),X=Et(a),I=At(y),D=Et(y),E=At(S),N=Et(S),L={a:c,A:G,b:d,B:h,c:null,d:We,e:We,f:Tr,g:Fr,G:Ur,H:yr,I:kr,j:pr,L:sn,m:vr,M:xr,p:C,q:Z,Q:He,s:Ne,S:br,u:wr,U:Cr,V:Dr,w:Mr,W:Sr,x:null,X:null,y:_r,Y:Yr,Z:Ar,"%":Oe},B={a:H,A:z,b:P,B:R,c:null,d:Ie,e:Ie,f:Ir,g:Br,G:Xr,H:Er,I:Lr,j:Wr,L:on,m:Or,M:Hr,p:at,q:ot,Q:He,s:Ne,S:Nr,u:Pr,U:Vr,V:zr,w:Rr,W:qr,x:null,X:null,y:jr,Y:Zr,Z:Gr,"%":Oe},$={a:F,A:b,b:o,B:f,c:m,d:Ee,e:Ee,f:hr,g:Ae,G:Ue,H:Le,I:Le,j:cr,L:fr,m:or,M:lr,p:U,q:ar,Q:mr,s:gr,S:ur,u:er,U:nr,V:rr,w:tr,W:ir,x:u,X:M,y:Ae,Y:Ue,Z:sr,"%":dr};L.x=x(n,L),L.X=x(r,L),L.c=x(e,L),B.x=x(n,B),B.X=x(r,B),B.c=x(e,B);function x(k,W){return function(Y){var l=[],j=-1,V=0,Q=k.length,J,K,ct;for(Y instanceof Date||(Y=new Date(+Y));++j<Q;)k.charCodeAt(j)===37&&(l.push(k.slice(V,j)),(K=Ye[J=k.charAt(++j)])!=null?J=k.charAt(++j):K=J==="e"?" ":"0",(ct=W[J])&&(J=ct(Y,K)),l.push(J),V=j+1);return l.push(k.slice(V,j)),l.join("")}}function O(k,W){return function(Y){var l=Ut(1900,void 0,1),j=v(l,k,Y+="",0),V,Q;if(j!=Y.length)return null;if("Q"in l)return new Date(l.Q);if("s"in l)return new Date(l.s*1e3+("L"in l?l.L:0));if(W&&!("Z"in l)&&(l.Z=0),"p"in l&&(l.H=l.H%12+l.p*12),l.m===void 0&&(l.m="q"in l?l.q:0),"V"in l){if(l.V<1||l.V>53)return null;"w"in l||(l.w=1),"Z"in l?(V=le(Ut(l.y,0,1)),Q=V.getUTCDay(),V=Q>4||Q===0?$t.ceil(V):$t(V),V=pe.offset(V,(l.V-1)*7),l.y=V.getUTCFullYear(),l.m=V.getUTCMonth(),l.d=V.getUTCDate()+(l.w+6)%7):(V=ce(Ut(l.y,0,1)),Q=V.getDay(),V=Q>4||Q===0?It.ceil(V):It(V),V=pt.offset(V,(l.V-1)*7),l.y=V.getFullYear(),l.m=V.getMonth(),l.d=V.getDate()+(l.w+6)%7)}else("W"in l||"U"in l)&&("w"in l||(l.w="u"in l?l.u%7:"W"in l?1:0),Q="Z"in l?le(Ut(l.y,0,1)).getUTCDay():ce(Ut(l.y,0,1)).getDay(),l.m=0,l.d="W"in l?(l.w+6)%7+l.W*7-(Q+5)%7:l.w+l.U*7-(Q+6)%7);return"Z"in l?(l.H+=l.Z/100|0,l.M+=l.Z%100,le(l)):ce(l)}}function v(k,W,Y,l){for(var j=0,V=W.length,Q=Y.length,J,K;j<V;){if(l>=Q)return-1;if(J=W.charCodeAt(j++),J===37){if(J=W.charAt(j++),K=$[J in Ye?W.charAt(j++):J],!K||(l=K(k,Y,l))<0)return-1}else if(J!=Y.charCodeAt(l++))return-1}return l}function U(k,W,Y){var l=p.exec(W.slice(Y));return l?(k.p=g.get(l[0].toLowerCase()),Y+l[0].length):-1}function F(k,W,Y){var l=T.exec(W.slice(Y));return l?(k.w=X.get(l[0].toLowerCase()),Y+l[0].length):-1}function b(k,W,Y){var l=A.exec(W.slice(Y));return l?(k.w=w.get(l[0].toLowerCase()),Y+l[0].length):-1}function o(k,W,Y){var l=E.exec(W.slice(Y));return l?(k.m=N.get(l[0].toLowerCase()),Y+l[0].length):-1}function f(k,W,Y){var l=I.exec(W.slice(Y));return l?(k.m=D.get(l[0].toLowerCase()),Y+l[0].length):-1}function m(k,W,Y){return v(k,e,W,Y)}function u(k,W,Y){return v(k,n,W,Y)}function M(k,W,Y){return v(k,r,W,Y)}function c(k){return a[k.getDay()]}function G(k){return s[k.getDay()]}function d(k){return S[k.getMonth()]}function h(k){return y[k.getMonth()]}function C(k){return i[+(k.getHours()>=12)]}function Z(k){return 1+~~(k.getMonth()/3)}function H(k){return a[k.getUTCDay()]}function z(k){return s[k.getUTCDay()]}function P(k){return S[k.getUTCMonth()]}function R(k){return y[k.getUTCMonth()]}function at(k){return i[+(k.getUTCHours()>=12)]}function ot(k){return 1+~~(k.getUTCMonth()/3)}return{format:function(k){var W=x(k+="",L);return W.toString=function(){return k},W},parse:function(k){var W=O(k+="",!1);return W.toString=function(){return k},W},utcFormat:function(k){var W=x(k+="",B);return W.toString=function(){return k},W},utcParse:function(k){var W=O(k+="",!0);return W.toString=function(){return k},W}}}var Ye={"-":"",_:" ",0:"0"},nt=/^\s*\d+/,$n=/^%/,Jn=/[\\^$*+?|[\]().{}]/g;function q(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",s=i.length;return r+(s<n?new Array(n-s+1).join(e)+i:i)}function Kn(t){return t.replace(Jn,"\\$&")}function At(t){return new RegExp("^(?:"+t.map(Kn).join("|")+")","i")}function Et(t){return new Map(t.map((e,n)=>[e.toLowerCase(),n]))}function tr(t,e,n){var r=nt.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function er(t,e,n){var r=nt.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function nr(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function rr(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function ir(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Ue(t,e,n){var r=nt.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Ae(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function sr(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function ar(t,e,n){var r=nt.exec(e.slice(n,n+1));return r?(t.q=r[0]*3-3,n+r[0].length):-1}function or(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Ee(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function cr(t,e,n){var r=nt.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Le(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function lr(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function ur(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function fr(t,e,n){var r=nt.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function hr(t,e,n){var r=nt.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function dr(t,e,n){var r=$n.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function mr(t,e,n){var r=nt.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function gr(t,e,n){var r=nt.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function We(t,e){return q(t.getDate(),e,2)}function yr(t,e){return q(t.getHours(),e,2)}function kr(t,e){return q(t.getHours()%12||12,e,2)}function pr(t,e){return q(1+pt.count(gt(t),t),e,3)}function sn(t,e){return q(t.getMilliseconds(),e,3)}function Tr(t,e){return sn(t,e)+"000"}function vr(t,e){return q(t.getMonth()+1,e,2)}function xr(t,e){return q(t.getMinutes(),e,2)}function br(t,e){return q(t.getSeconds(),e,2)}function wr(t){var e=t.getDay();return e===0?7:e}function Cr(t,e){return q(Ht.count(gt(t)-1,t),e,2)}function an(t){var e=t.getDay();return e>=4||e===0?Tt(t):Tt.ceil(t)}function Dr(t,e){return t=an(t),q(Tt.count(gt(t),t)+(gt(t).getDay()===4),e,2)}function Mr(t){return t.getDay()}function Sr(t,e){return q(It.count(gt(t)-1,t),e,2)}function _r(t,e){return q(t.getFullYear()%100,e,2)}function Fr(t,e){return t=an(t),q(t.getFullYear()%100,e,2)}function Yr(t,e){return q(t.getFullYear()%1e4,e,4)}function Ur(t,e){var n=t.getDay();return t=n>=4||n===0?Tt(t):Tt.ceil(t),q(t.getFullYear()%1e4,e,4)}function Ar(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+q(e/60|0,"0",2)+q(e%60,"0",2)}function Ie(t,e){return q(t.getUTCDate(),e,2)}function Er(t,e){return q(t.getUTCHours(),e,2)}function Lr(t,e){return q(t.getUTCHours()%12||12,e,2)}function Wr(t,e){return q(1+pe.count(vt(t),t),e,3)}function on(t,e){return q(t.getUTCMilliseconds(),e,3)}function Ir(t,e){return on(t,e)+"000"}function Or(t,e){return q(t.getUTCMonth()+1,e,2)}function Hr(t,e){return q(t.getUTCMinutes(),e,2)}function Nr(t,e){return q(t.getUTCSeconds(),e,2)}function Pr(t){var e=t.getUTCDay();return e===0?7:e}function Vr(t,e){return q(rn.count(vt(t)-1,t),e,2)}function cn(t){var e=t.getUTCDay();return e>=4||e===0?Ft(t):Ft.ceil(t)}function zr(t,e){return t=cn(t),q(Ft.count(vt(t),t)+(vt(t).getUTCDay()===4),e,2)}function Rr(t){return t.getUTCDay()}function qr(t,e){return q($t.count(vt(t)-1,t),e,2)}function jr(t,e){return q(t.getUTCFullYear()%100,e,2)}function Br(t,e){return t=cn(t),q(t.getUTCFullYear()%100,e,2)}function Zr(t,e){return q(t.getUTCFullYear()%1e4,e,4)}function Xr(t,e){var n=t.getUTCDay();return t=n>=4||n===0?Ft(t):Ft.ceil(t),q(t.getUTCFullYear()%1e4,e,4)}function Gr(){return"+0000"}function Oe(){return"%"}function He(t){return+t}function Ne(t){return Math.floor(+t/1e3)}var Ct,Jt;Qr({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Qr(t){return Ct=Qn(t),Jt=Ct.format,Ct.parse,Ct.utcFormat,Ct.utcParse,Ct}function $r(t){return new Date(t)}function Jr(t){return t instanceof Date?+t:+new Date(+t)}function ln(t,e,n,r,i,s,a,y,S,p){var g=Dt.continuous(),A=g.invert,w=g.domain,T=p(".%L"),X=p(":%S"),I=p("%I:%M"),D=p("%I %p"),E=p("%a %d"),N=p("%b %d"),L=p("%B"),B=p("%Y");function $(x){return(S(x)<x?T:y(x)<x?X:a(x)<x?I:s(x)<x?D:r(x)<x?i(x)<x?E:N:n(x)<x?L:B)(x)}return g.invert=function(x){return new Date(A(x))},g.domain=function(x){return arguments.length?w(Array.from(x,Jr)):w().map($r)},g.ticks=function(x){var O=w();return t(O[0],O[O.length-1],x??10)},g.tickFormat=function(x,O){return O==null?$:p(O)},g.nice=function(x){var O=w();return(!x||typeof x.range!="function")&&(x=e(O[0],O[O.length-1],x??10)),x?w(Hn(O,x)):g},g.copy=function(){return Dt.copy(g,ln(t,e,n,r,i,s,a,y,S,p))},g}function Kr(){return vn.initRange.apply(ln(Xn,Gn,gt,Ot,Ht,pt,Wt,Lt,kt,Jt).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var jt={exports:{}},ti=jt.exports,Pe;function ei(){return Pe||(Pe=1,(function(t,e){(function(n,r){t.exports=r()})(ti,(function(){var n="day";return function(r,i,s){var a=function(p){return p.add(4-p.isoWeekday(),n)},y=i.prototype;y.isoWeekYear=function(){return a(this).year()},y.isoWeek=function(p){if(!this.$utils().u(p))return this.add(7*(p-this.isoWeek()),n);var g,A,w,T,X=a(this),I=(g=this.isoWeekYear(),A=this.$u,w=(A?s.utc:s)().year(g).startOf("year"),T=4-w.isoWeekday(),w.isoWeekday()>4&&(T+=7),w.add(T,n));return X.diff(I,"week")+1},y.isoWeekday=function(p){return this.$utils().u(p)?this.day()||7:this.day(this.day()%7?p:p-7)};var S=y.startOf;y.startOf=function(p,g){var A=this.$utils(),w=!!A.u(g)||g;return A.p(p)==="isoweek"?w?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):S.bind(this)(p,g)}}}))})(jt)),jt.exports}var ni=ei();const ri=ye.getDefaultExportFromCjs(ni);var Bt={exports:{}},ii=Bt.exports,Ve;function si(){return Ve||(Ve=1,(function(t,e){(function(n,r){t.exports=r()})(ii,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d/,s=/\d\d/,a=/\d\d?/,y=/\d*[^-_:/,()\s\d]+/,S={},p=function(D){return(D=+D)+(D>68?1900:2e3)},g=function(D){return function(E){this[D]=+E}},A=[/[+-]\d\d:?(\d\d)?|Z/,function(D){(this.zone||(this.zone={})).offset=(function(E){if(!E||E==="Z")return 0;var N=E.match(/([+-]|\d\d)/g),L=60*N[1]+(+N[2]||0);return L===0?0:N[0]==="+"?-L:L})(D)}],w=function(D){var E=S[D];return E&&(E.indexOf?E:E.s.concat(E.f))},T=function(D,E){var N,L=S.meridiem;if(L){for(var B=1;B<=24;B+=1)if(D.indexOf(L(B,0,E))>-1){N=B>12;break}}else N=D===(E?"pm":"PM");return N},X={A:[y,function(D){this.afternoon=T(D,!1)}],a:[y,function(D){this.afternoon=T(D,!0)}],Q:[i,function(D){this.month=3*(D-1)+1}],S:[i,function(D){this.milliseconds=100*+D}],SS:[s,function(D){this.milliseconds=10*+D}],SSS:[/\d{3}/,function(D){this.milliseconds=+D}],s:[a,g("seconds")],ss:[a,g("seconds")],m:[a,g("minutes")],mm:[a,g("minutes")],H:[a,g("hours")],h:[a,g("hours")],HH:[a,g("hours")],hh:[a,g("hours")],D:[a,g("day")],DD:[s,g("day")],Do:[y,function(D){var E=S.ordinal,N=D.match(/\d+/);if(this.day=N[0],E)for(var L=1;L<=31;L+=1)E(L).replace(/\[|\]/g,"")===D&&(this.day=L)}],w:[a,g("week")],ww:[s,g("week")],M:[a,g("month")],MM:[s,g("month")],MMM:[y,function(D){var E=w("months"),N=(w("monthsShort")||E.map((function(L){return L.slice(0,3)}))).indexOf(D)+1;if(N<1)throw new Error;this.month=N%12||N}],MMMM:[y,function(D){var E=w("months").indexOf(D)+1;if(E<1)throw new Error;this.month=E%12||E}],Y:[/[+-]?\d+/,g("year")],YY:[s,function(D){this.year=p(D)}],YYYY:[/\d{4}/,g("year")],Z:A,ZZ:A};function I(D){var E,N;E=D,N=S&&S.formats;for(var L=(D=E.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(F,b,o){var f=o&&o.toUpperCase();return b||N[o]||n[o]||N[f].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(m,u,M){return u||M.slice(1)}))}))).match(r),B=L.length,$=0;$<B;$+=1){var x=L[$],O=X[x],v=O&&O[0],U=O&&O[1];L[$]=U?{regex:v,parser:U}:x.replace(/^\[|\]$/g,"")}return function(F){for(var b={},o=0,f=0;o<B;o+=1){var m=L[o];if(typeof m=="string")f+=m.length;else{var u=m.regex,M=m.parser,c=F.slice(f),G=u.exec(c)[0];M.call(b,G),F=F.replace(G,"")}}return(function(d){var h=d.afternoon;if(h!==void 0){var C=d.hours;h?C<12&&(d.hours+=12):C===12&&(d.hours=0),delete d.afternoon}})(b),b}}return function(D,E,N){N.p.customParseFormat=!0,D&&D.parseTwoDigitYear&&(p=D.parseTwoDigitYear);var L=E.prototype,B=L.parse;L.parse=function($){var x=$.date,O=$.utc,v=$.args;this.$u=O;var U=v[1];if(typeof U=="string"){var F=v[2]===!0,b=v[3]===!0,o=F||b,f=v[2];b&&(f=v[2]),S=this.$locale(),!F&&f&&(S=N.Ls[f]),this.$d=(function(c,G,d,h){try{if(["x","X"].indexOf(G)>-1)return new Date((G==="X"?1e3:1)*c);var C=I(G)(c),Z=C.year,H=C.month,z=C.day,P=C.hours,R=C.minutes,at=C.seconds,ot=C.milliseconds,k=C.zone,W=C.week,Y=new Date,l=z||(Z||H?1:Y.getDate()),j=Z||Y.getFullYear(),V=0;Z&&!H||(V=H>0?H-1:Y.getMonth());var Q,J=P||0,K=R||0,ct=at||0,yt=ot||0;return k?new Date(Date.UTC(j,V,l,J,K,ct,yt+60*k.offset*1e3)):d?new Date(Date.UTC(j,V,l,J,K,ct,yt)):(Q=new Date(j,V,l,J,K,ct,yt),W&&(Q=h(Q).week(W).toDate()),Q)}catch{return new Date("")}})(x,U,O,N),this.init(),f&&f!==!0&&(this.$L=this.locale(f).$L),o&&x!=this.format(U)&&(this.$d=new Date("")),S={}}else if(U instanceof Array)for(var m=U.length,u=1;u<=m;u+=1){v[1]=U[u-1];var M=N.apply(this,v);if(M.isValid()){this.$d=M.$d,this.$L=M.$L,this.init();break}u===m&&(this.$d=new Date(""))}else B.call(this,$)}}}))})(Bt)),Bt.exports}var ai=si();const oi=ye.getDefaultExportFromCjs(ai);var Zt={exports:{}},ci=Zt.exports,ze;function li(){return ze||(ze=1,(function(t,e){(function(n,r){t.exports=r()})(ci,(function(){return function(n,r){var i=r.prototype,s=i.format;i.format=function(a){var y=this,S=this.$locale();if(!this.isValid())return s.bind(this)(a);var p=this.$utils(),g=(a||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(A){switch(A){case"Q":return Math.ceil((y.$M+1)/3);case"Do":return S.ordinal(y.$D);case"gggg":return y.weekYear();case"GGGG":return y.isoWeekYear();case"wo":return S.ordinal(y.week(),"W");case"w":case"ww":return p.s(y.week(),A==="w"?1:2,"0");case"W":case"WW":return p.s(y.isoWeek(),A==="W"?1:2,"0");case"k":case"kk":return p.s(String(y.$H===0?24:y.$H),A==="k"?1:2,"0");case"X":return Math.floor(y.$d.getTime()/1e3);case"x":return y.$d.getTime();case"z":return"["+y.offsetName()+"]";case"zzz":return"["+y.offsetName("long")+"]";default:return A}}));return s.bind(this)(g)}}}))})(Zt)),Zt.exports}var ui=li();const fi=ye.getDefaultExportFromCjs(ui);var he=(function(){var t=function(b,o,f,m){for(f=f||{},m=b.length;m--;f[b[m]]=o);return f},e=[6,8,10,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,30,32,33,35,37],n=[1,25],r=[1,26],i=[1,27],s=[1,28],a=[1,29],y=[1,30],S=[1,31],p=[1,9],g=[1,10],A=[1,11],w=[1,12],T=[1,13],X=[1,14],I=[1,15],D=[1,16],E=[1,18],N=[1,19],L=[1,20],B=[1,21],$=[1,22],x=[1,24],O=[1,32],v={trace:function(){},yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,dateFormat:19,inclusiveEndDates:20,topAxis:21,axisFormat:22,tickInterval:23,excludes:24,includes:25,todayMarker:26,title:27,acc_title:28,acc_title_value:29,acc_descr:30,acc_descr_value:31,acc_descr_multiline_value:32,section:33,clickStatement:34,taskTxt:35,taskData:36,click:37,callbackname:38,callbackargs:39,href:40,clickStatementDebug:41,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",19:"dateFormat",20:"inclusiveEndDates",21:"topAxis",22:"axisFormat",23:"tickInterval",24:"excludes",25:"includes",26:"todayMarker",27:"title",28:"acc_title",29:"acc_title_value",30:"acc_descr",31:"acc_descr_value",32:"acc_descr_multiline_value",33:"section",35:"taskTxt",36:"taskData",37:"click",38:"callbackname",39:"callbackargs",40:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[34,2],[34,3],[34,3],[34,4],[34,3],[34,4],[34,2],[41,2],[41,3],[41,3],[41,4],[41,3],[41,4],[41,2]],performAction:function(o,f,m,u,M,c,G){var d=c.length-1;switch(M){case 1:return c[d-1];case 2:this.$=[];break;case 3:c[d-1].push(c[d]),this.$=c[d-1];break;case 4:case 5:this.$=c[d];break;case 6:case 7:this.$=[];break;case 8:u.setWeekday("monday");break;case 9:u.setWeekday("tuesday");break;case 10:u.setWeekday("wednesday");break;case 11:u.setWeekday("thursday");break;case 12:u.setWeekday("friday");break;case 13:u.setWeekday("saturday");break;case 14:u.setWeekday("sunday");break;case 15:u.setDateFormat(c[d].substr(11)),this.$=c[d].substr(11);break;case 16:u.enableInclusiveEndDates(),this.$=c[d].substr(18);break;case 17:u.TopAxis(),this.$=c[d].substr(8);break;case 18:u.setAxisFormat(c[d].substr(11)),this.$=c[d].substr(11);break;case 19:u.setTickInterval(c[d].substr(13)),this.$=c[d].substr(13);break;case 20:u.setExcludes(c[d].substr(9)),this.$=c[d].substr(9);break;case 21:u.setIncludes(c[d].substr(9)),this.$=c[d].substr(9);break;case 22:u.setTodayMarker(c[d].substr(12)),this.$=c[d].substr(12);break;case 24:u.setDiagramTitle(c[d].substr(6)),this.$=c[d].substr(6);break;case 25:this.$=c[d].trim(),u.setAccTitle(this.$);break;case 26:case 27:this.$=c[d].trim(),u.setAccDescription(this.$);break;case 28:u.addSection(c[d].substr(8)),this.$=c[d].substr(8);break;case 30:u.addTask(c[d-1],c[d]),this.$="task";break;case 31:this.$=c[d-1],u.setClickEvent(c[d-1],c[d],null);break;case 32:this.$=c[d-2],u.setClickEvent(c[d-2],c[d-1],c[d]);break;case 33:this.$=c[d-2],u.setClickEvent(c[d-2],c[d-1],null),u.setLink(c[d-2],c[d]);break;case 34:this.$=c[d-3],u.setClickEvent(c[d-3],c[d-2],c[d-1]),u.setLink(c[d-3],c[d]);break;case 35:this.$=c[d-2],u.setClickEvent(c[d-2],c[d],null),u.setLink(c[d-2],c[d-1]);break;case 36:this.$=c[d-3],u.setClickEvent(c[d-3],c[d-1],c[d]),u.setLink(c[d-3],c[d-2]);break;case 37:this.$=c[d-1],u.setLink(c[d-1],c[d]);break;case 38:case 44:this.$=c[d-1]+" "+c[d];break;case 39:case 40:case 42:this.$=c[d-2]+" "+c[d-1]+" "+c[d];break;case 41:case 43:this.$=c[d-3]+" "+c[d-2]+" "+c[d-1]+" "+c[d];break}},table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:r,14:i,15:s,16:a,17:y,18:S,19:p,20:g,21:A,22:w,23:T,24:X,25:I,26:D,27:E,28:N,30:L,32:B,33:$,34:23,35:x,37:O},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:33,11:17,12:n,13:r,14:i,15:s,16:a,17:y,18:S,19:p,20:g,21:A,22:w,23:T,24:X,25:I,26:D,27:E,28:N,30:L,32:B,33:$,34:23,35:x,37:O},t(e,[2,5]),t(e,[2,6]),t(e,[2,15]),t(e,[2,16]),t(e,[2,17]),t(e,[2,18]),t(e,[2,19]),t(e,[2,20]),t(e,[2,21]),t(e,[2,22]),t(e,[2,23]),t(e,[2,24]),{29:[1,34]},{31:[1,35]},t(e,[2,27]),t(e,[2,28]),t(e,[2,29]),{36:[1,36]},t(e,[2,8]),t(e,[2,9]),t(e,[2,10]),t(e,[2,11]),t(e,[2,12]),t(e,[2,13]),t(e,[2,14]),{38:[1,37],40:[1,38]},t(e,[2,4]),t(e,[2,25]),t(e,[2,26]),t(e,[2,30]),t(e,[2,31],{39:[1,39],40:[1,40]}),t(e,[2,37],{38:[1,41]}),t(e,[2,32],{40:[1,42]}),t(e,[2,33]),t(e,[2,35],{39:[1,43]}),t(e,[2,34]),t(e,[2,36])],defaultActions:{},parseError:function(o,f){if(f.recoverable)this.trace(o);else{var m=new Error(o);throw m.hash=f,m}},parse:function(o){var f=this,m=[0],u=[],M=[null],c=[],G=this.table,d="",h=0,C=0,Z=2,H=1,z=c.slice.call(arguments,1),P=Object.create(this.lexer),R={yy:{}};for(var at in this.yy)Object.prototype.hasOwnProperty.call(this.yy,at)&&(R.yy[at]=this.yy[at]);P.setInput(o,R.yy),R.yy.lexer=P,R.yy.parser=this,typeof P.yylloc>"u"&&(P.yylloc={});var ot=P.yylloc;c.push(ot);var k=P.options&&P.options.ranges;typeof R.yy.parseError=="function"?this.parseError=R.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function W(){var lt;return lt=u.pop()||P.lex()||H,typeof lt!="number"&&(lt instanceof Array&&(u=lt,lt=u.pop()),lt=f.symbols_[lt]||lt),lt}for(var Y,l,j,V,Q={},J,K,ct,yt;;){if(l=m[m.length-1],this.defaultActions[l]?j=this.defaultActions[l]:((Y===null||typeof Y>"u")&&(Y=W()),j=G[l]&&G[l][Y]),typeof j>"u"||!j.length||!j[0]){var zt="";yt=[];for(J in G[l])this.terminals_[J]&&J>Z&&yt.push("'"+this.terminals_[J]+"'");P.showPosition?zt="Parse error on line "+(h+1)+`:
|
|
2
2
|
`+P.showPosition()+`
|
|
3
|
-
Expecting `+yt.join(", ")+", got '"+(this.terminals_[Y]||Y)+"'":zt="Parse error on line "+(h+1)+": Unexpected "+(Y==H?"end of input":"'"+(this.terminals_[Y]||Y)+"'"),this.parseError(zt,{text:P.match,token:this.terminals_[Y]||Y,line:P.yylineno,loc:ot,expected:yt})}if(j[0]instanceof Array&&j.length>1)throw new Error("Parse Error: multiple actions possible at state: "+l+", token: "+Y);switch(j[0]){case 1:m.push(Y),M.push(P.yytext),c.push(P.yylloc),m.push(j[1]),Y=null,C=P.yyleng,d=P.yytext,h=P.yylineno,ot=P.yylloc;break;case 2:if(K=this.productions_[j[1]][1],Q.$=M[M.length-K],Q._$={first_line:c[c.length-(K||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(K||1)].first_column,last_column:c[c.length-1].last_column},k&&(Q._$.range=[c[c.length-(K||1)].range[0],c[c.length-1].range[1]]),V=this.performAction.apply(Q,[d,C,h,R.yy,j[1],M,c].concat(z)),typeof V<"u")return V;K&&(m=m.slice(0,-1*K*2),M=M.slice(0,-1*K),c=c.slice(0,-1*K)),m.push(this.productions_[j[1]][0]),M.push(Q.$),c.push(Q._$),ct=G[m[m.length-2]][m[m.length-1]],m.push(ct);break;case 3:return!0}}return!0}},U=function(){var b={EOF:1,parseError:function(f,m){if(this.yy.parser)this.yy.parser.parseError(f,m);else throw new Error(f)},setInput:function(o,f){return this.yy=f||this.yy||{},this._input=o,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var f=o.match(/(?:\r\n?|\n).*/g);return f?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},unput:function(o){var f=o.length,m=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-f),this.offset-=f;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),m.length-1&&(this.yylineno-=m.length-1);var M=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:m?(m.length===u.length?this.yylloc.first_column:0)+u[u.length-m.length].length-m[0].length:this.yylloc.first_column-f},this.options.ranges&&(this.yylloc.range=[M[0],M[0]+this.yyleng-f]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
3
|
+
Expecting `+yt.join(", ")+", got '"+(this.terminals_[Y]||Y)+"'":zt="Parse error on line "+(h+1)+": Unexpected "+(Y==H?"end of input":"'"+(this.terminals_[Y]||Y)+"'"),this.parseError(zt,{text:P.match,token:this.terminals_[Y]||Y,line:P.yylineno,loc:ot,expected:yt})}if(j[0]instanceof Array&&j.length>1)throw new Error("Parse Error: multiple actions possible at state: "+l+", token: "+Y);switch(j[0]){case 1:m.push(Y),M.push(P.yytext),c.push(P.yylloc),m.push(j[1]),Y=null,C=P.yyleng,d=P.yytext,h=P.yylineno,ot=P.yylloc;break;case 2:if(K=this.productions_[j[1]][1],Q.$=M[M.length-K],Q._$={first_line:c[c.length-(K||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(K||1)].first_column,last_column:c[c.length-1].last_column},k&&(Q._$.range=[c[c.length-(K||1)].range[0],c[c.length-1].range[1]]),V=this.performAction.apply(Q,[d,C,h,R.yy,j[1],M,c].concat(z)),typeof V<"u")return V;K&&(m=m.slice(0,-1*K*2),M=M.slice(0,-1*K),c=c.slice(0,-1*K)),m.push(this.productions_[j[1]][0]),M.push(Q.$),c.push(Q._$),ct=G[m[m.length-2]][m[m.length-1]],m.push(ct);break;case 3:return!0}}return!0}},U=(function(){var b={EOF:1,parseError:function(f,m){if(this.yy.parser)this.yy.parser.parseError(f,m);else throw new Error(f)},setInput:function(o,f){return this.yy=f||this.yy||{},this._input=o,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var f=o.match(/(?:\r\n?|\n).*/g);return f?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},unput:function(o){var f=o.length,m=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-f),this.offset-=f;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),m.length-1&&(this.yylineno-=m.length-1);var M=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:m?(m.length===u.length?this.yylloc.first_column:0)+u[u.length-m.length].length-m[0].length:this.yylloc.first_column-f},this.options.ranges&&(this.yylloc.range=[M[0],M[0]+this.yyleng-f]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(o){this.unput(this.match.slice(o))},pastInput:function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var o=this.pastInput(),f=new Array(o.length+1).join("-");return o+this.upcomingInput()+`
|
|
5
5
|
`+f+"^"},test_match:function(o,f){var m,u,M;if(this.options.backtrack_lexer&&(M={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(M.yylloc.range=this.yylloc.range.slice(0))),u=o[0].match(/(?:\r\n?|\n).*/g),u&&(this.yylineno+=u.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:u?u[u.length-1].length-u[u.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+o[0].length},this.yytext+=o[0],this.match+=o[0],this.matches=o,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(o[0].length),this.matched+=o[0],m=this.performAction.call(this,this.yy,this,f,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),m)return m;if(this._backtrack){for(var c in M)this[c]=M[c];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var o,f,m,u;this._more||(this.yytext="",this.match="");for(var M=this._currentRules(),c=0;c<M.length;c++)if(m=this._input.match(this.rules[M[c]]),m&&(!f||m[0].length>f[0].length)){if(f=m,u=c,this.options.backtrack_lexer){if(o=this.test_match(m,M[c]),o!==!1)return o;if(this._backtrack){f=!1;continue}else return!1}else if(!this.options.flex)break}return f?(o=this.test_match(f,M[u]),o!==!1?o:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var f=this.next();return f||this.lex()},begin:function(f){this.conditionStack.push(f)},popState:function(){var f=this.conditionStack.length-1;return f>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(f){return f=this.conditionStack.length-1-Math.abs(f||0),f>=0?this.conditionStack[f]:"INITIAL"},pushState:function(f){this.begin(f)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(f,m,u,M){switch(u){case 0:return this.begin("open_directive"),"open_directive";case 1:return this.begin("acc_title"),28;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),30;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:break;case 9:break;case 10:break;case 11:return 10;case 12:break;case 13:break;case 14:this.begin("href");break;case 15:this.popState();break;case 16:return 40;case 17:this.begin("callbackname");break;case 18:this.popState();break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 38;case 21:this.popState();break;case 22:return 39;case 23:this.begin("click");break;case 24:this.popState();break;case 25:return 37;case 26:return 4;case 27:return 19;case 28:return 20;case 29:return 21;case 30:return 22;case 31:return 23;case 32:return 25;case 33:return 24;case 34:return 26;case 35:return 12;case 36:return 13;case 37:return 14;case 38:return 15;case 39:return 16;case 40:return 17;case 41:return 18;case 42:return"date";case 43:return 27;case 44:return"accDescription";case 45:return 33;case 46:return 35;case 47:return 36;case 48:return":";case 49:return 6;case 50:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:weekday\s+monday\b)/i,/^(?:weekday\s+tuesday\b)/i,/^(?:weekday\s+wednesday\b)/i,/^(?:weekday\s+thursday\b)/i,/^(?:weekday\s+friday\b)/i,/^(?:weekday\s+saturday\b)/i,/^(?:weekday\s+sunday\b)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^\n]+)/i,/^(?:[^:\n]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},callbackargs:{rules:[21,22],inclusive:!1},callbackname:{rules:[18,19,20],inclusive:!1},href:{rules:[15,16],inclusive:!1},click:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,17,23,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],inclusive:!0}}};return b}();v.lexer=U;function F(){this.yy={}}return F.prototype=v,v.Parser=F,new F}();he.parser=he;const hi=he;_.dayjs.extend(ri);_.dayjs.extend(oi);_.dayjs.extend(fi);let it="",Te="",ve,xe="",Nt=[],Pt=[],be={},we=[],Kt=[],Yt="",Ce="";const un=["active","done","crit","milestone"];let De=[],Vt=!1,Me=!1,Se="sunday",de=0;const di=function(){we=[],Kt=[],Yt="",De=[],Xt=0,ge=void 0,Gt=void 0,tt=[],it="",Te="",Ce="",ve=void 0,xe="",Nt=[],Pt=[],Vt=!1,Me=!1,de=0,be={},_.clear(),Se="sunday"},mi=function(t){Te=t},gi=function(){return Te},yi=function(t){ve=t},ki=function(){return ve},pi=function(t){xe=t},Ti=function(){return xe},vi=function(t){it=t},xi=function(){Vt=!0},bi=function(){return Vt},wi=function(){Me=!0},Ci=function(){return Me},Di=function(t){Ce=t},Mi=function(){return Ce},Si=function(){return it},_i=function(t){Nt=t.toLowerCase().split(/[\s,]+/)},Fi=function(){return Nt},Yi=function(t){Pt=t.toLowerCase().split(/[\s,]+/)},Ui=function(){return Pt},Ai=function(){return be},Ei=function(t){Yt=t,we.push(t)},Li=function(){return we},Wi=function(){let t=Re();const e=10;let n=0;for(;!t&&n<e;)t=Re(),n++;return Kt=tt,Kt},fn=function(t,e,n,r){return r.includes(t.format(e.trim()))?!1:t.isoWeekday()>=6&&n.includes("weekends")||n.includes(t.format("dddd").toLowerCase())?!0:n.includes(t.format(e.trim()))},Ii=function(t){Se=t},Oi=function(){return Se},hn=function(t,e,n,r){if(!n.length||t.manualEndTime)return;let i;t.startTime instanceof Date?i=_.dayjs(t.startTime):i=_.dayjs(t.startTime,e,!0),i=i.add(1,"d");let s;t.endTime instanceof Date?s=_.dayjs(t.endTime):s=_.dayjs(t.endTime,e,!0);const[a,y]=Hi(i,s,e,n,r);t.endTime=a.toDate(),t.renderEndTime=y},Hi=function(t,e,n,r,i){let s=!1,a=null;for(;t<=e;)s||(a=e.toDate()),s=fn(t,n,r,i),s&&(e=e.add(1,"d")),t=t.add(1,"d");return[e,a]},me=function(t,e,n){n=n.trim();const i=/^after\s+(?<ids>[\d\w- ]+)/.exec(n);if(i!==null){let a=null;for(const S of i.groups.ids.split(" ")){let p=wt(S);p!==void 0&&(!a||p.endTime>a.endTime)&&(a=p)}if(a)return a.endTime;const y=new Date;return y.setHours(0,0,0,0),y}let s=_.dayjs(n,e.trim(),!0);if(s.isValid())return s.toDate();{_.log$1.debug("Invalid date:"+n),_.log$1.debug("With date format:"+e.trim());const a=new Date(n);if(a===void 0||isNaN(a.getTime())||a.getFullYear()<-1e4||a.getFullYear()>1e4)throw new Error("Invalid date:"+n);return a}},dn=function(t){const e=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());return e!==null?[Number.parseFloat(e[1]),e[2]]:[NaN,"ms"]},mn=function(t,e,n,r=!1){n=n.trim();const s=/^until\s+(?<ids>[\d\w- ]+)/.exec(n);if(s!==null){let g=null;for(const w of s.groups.ids.split(" ")){let T=wt(w);T!==void 0&&(!g||T.startTime<g.startTime)&&(g=T)}if(g)return g.startTime;const A=new Date;return A.setHours(0,0,0,0),A}let a=_.dayjs(n,e.trim(),!0);if(a.isValid())return r&&(a=a.add(1,"d")),a.toDate();let y=_.dayjs(t);const[S,p]=dn(n);if(!Number.isNaN(S)){const g=y.add(S,p);g.isValid()&&(y=g)}return y.toDate()};let Xt=0;const St=function(t){return t===void 0?(Xt=Xt+1,"task"+Xt):t},Ni=function(t,e){let n;e.substr(0,1)===":"?n=e.substr(1,e.length):n=e;const r=n.split(","),i={};pn(r,i,un);for(let a=0;a<r.length;a++)r[a]=r[a].trim();let s="";switch(r.length){case 1:i.id=St(),i.startTime=t.endTime,s=r[0];break;case 2:i.id=St(),i.startTime=me(void 0,it,r[0]),s=r[1];break;case 3:i.id=St(r[0]),i.startTime=me(void 0,it,r[1]),s=r[2];break}return s&&(i.endTime=mn(i.startTime,it,s,Vt),i.manualEndTime=_.dayjs(s,"YYYY-MM-DD",!0).isValid(),hn(i,it,Pt,Nt)),i},Pi=function(t,e){let n;e.substr(0,1)===":"?n=e.substr(1,e.length):n=e;const r=n.split(","),i={};pn(r,i,un);for(let s=0;s<r.length;s++)r[s]=r[s].trim();switch(r.length){case 1:i.id=St(),i.startTime={type:"prevTaskEnd",id:t},i.endTime={data:r[0]};break;case 2:i.id=St(),i.startTime={type:"getStartDate",startData:r[0]},i.endTime={data:r[1]};break;case 3:i.id=St(r[0]),i.startTime={type:"getStartDate",startData:r[1]},i.endTime={data:r[2]};break}return i};let ge,Gt,tt=[];const gn={},Vi=function(t,e){const n={section:Yt,type:Yt,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:e},task:t,classes:[]},r=Pi(Gt,e);n.raw.startTime=r.startTime,n.raw.endTime=r.endTime,n.id=r.id,n.prevTaskId=Gt,n.active=r.active,n.done=r.done,n.crit=r.crit,n.milestone=r.milestone,n.order=de,de++;const i=tt.push(n);Gt=n.id,gn[n.id]=i-1},wt=function(t){const e=gn[t];return tt[e]},zi=function(t,e){const n={section:Yt,type:Yt,description:t,task:t,classes:[]},r=Ni(ge,e);n.startTime=r.startTime,n.endTime=r.endTime,n.id=r.id,n.active=r.active,n.done=r.done,n.crit=r.crit,n.milestone=r.milestone,ge=n,Kt.push(n)},Re=function(){const t=function(n){const r=tt[n];let i="";switch(tt[n].raw.startTime.type){case"prevTaskEnd":{const s=wt(r.prevTaskId);r.startTime=s.endTime;break}case"getStartDate":i=me(void 0,it,tt[n].raw.startTime.startData),i&&(tt[n].startTime=i);break}return tt[n].startTime&&(tt[n].endTime=mn(tt[n].startTime,it,tt[n].raw.endTime.data,Vt),tt[n].endTime&&(tt[n].processed=!0,tt[n].manualEndTime=_.dayjs(tt[n].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),hn(tt[n],it,Pt,Nt))),tt[n].processed};let e=!0;for(const[n,r]of tt.entries())t(n),e=e&&r.processed;return e},Ri=function(t,e){let n=e;_.getConfig().securityLevel!=="loose"&&(n=Tn.distExports.sanitizeUrl(e)),t.split(",").forEach(function(r){wt(r)!==void 0&&(kn(r,()=>{window.open(n,"_self")}),be[r]=n)}),yn(t,"clickable")},yn=function(t,e){t.split(",").forEach(function(n){let r=wt(n);r!==void 0&&r.classes.push(e)})},qi=function(t,e,n){if(_.getConfig().securityLevel!=="loose"||e===void 0)return;let r=[];if(typeof n=="string"){r=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let s=0;s<r.length;s++){let a=r[s].trim();a.charAt(0)==='"'&&a.charAt(a.length-1)==='"'&&(a=a.substr(1,a.length-2)),r[s]=a}}r.length===0&&r.push(t),wt(t)!==void 0&&kn(t,()=>{_.utils.runFunc(e,...r)})},kn=function(t,e){De.push(function(){const n=document.querySelector(`[id="${t}"]`);n!==null&&n.addEventListener("click",function(){e()})},function(){const n=document.querySelector(`[id="${t}-text"]`);n!==null&&n.addEventListener("click",function(){e()})})},ji=function(t,e,n){t.split(",").forEach(function(r){qi(r,e,n)}),yn(t,"clickable")},Bi=function(t){De.forEach(function(e){e(t)})},Zi={getConfig:()=>_.getConfig().gantt,clear:di,setDateFormat:vi,getDateFormat:Si,enableInclusiveEndDates:xi,endDatesAreInclusive:bi,enableTopAxis:wi,topAxisEnabled:Ci,setAxisFormat:mi,getAxisFormat:gi,setTickInterval:yi,getTickInterval:ki,setTodayMarker:pi,getTodayMarker:Ti,setAccTitle:_.setAccTitle,getAccTitle:_.getAccTitle,setDiagramTitle:_.setDiagramTitle,getDiagramTitle:_.getDiagramTitle,setDisplayMode:Di,getDisplayMode:Mi,setAccDescription:_.setAccDescription,getAccDescription:_.getAccDescription,addSection:Ei,getSections:Li,getTasks:Wi,addTask:Vi,findTaskById:wt,addTaskOrg:zi,setIncludes:_i,getIncludes:Fi,setExcludes:Yi,getExcludes:Ui,setClickEvent:ji,setLink:Ri,getLinks:Ai,bindFunctions:Bi,parseDuration:dn,isInvalidDate:fn,setWeekday:Ii,getWeekday:Oi};function pn(t,e,n){let r=!0;for(;r;)r=!1,n.forEach(function(i){const s="^\\s*"+i+"\\s*$",a=new RegExp(s);t[0].match(a)&&(e[i]=!0,t.shift(1),r=!0)})}const Xi=function(){_.log$1.debug("Something is calling, setConf, remove the call")},qe={monday:It,tuesday:Ke,wednesday:tn,thursday:Tt,friday:en,saturday:nn,sunday:Ht},Gi=(t,e)=>{let n=[...t].map(()=>-1/0),r=[...t].sort((s,a)=>s.startTime-a.startTime||s.order-a.order),i=0;for(const s of r)for(let a=0;a<n.length;a++)if(s.startTime>=n[a]){n[a]=s.endTime,s.order=a+e,a>i&&(i=a);break}return i};let ut;const Qi=function(t,e,n,r){const i=_.getConfig().gantt,s=_.getConfig().securityLevel;let a;s==="sandbox"&&(a=_.select("#i"+e));const y=s==="sandbox"?_.select(a.nodes()[0].contentDocument.body):_.select("body"),S=s==="sandbox"?a.nodes()[0].contentDocument:document,p=S.getElementById(e);ut=p.parentElement.offsetWidth,ut===void 0&&(ut=1200),i.useWidth!==void 0&&(ut=i.useWidth);const g=r.db.getTasks();let A=[];for(const v of g)A.push(v.type);A=O(A);const w={};let T=2*i.topPadding;if(r.db.getDisplayMode()==="compact"||i.displayMode==="compact"){const v={};for(const F of g)v[F.section]===void 0?v[F.section]=[F]:v[F.section].push(F);let U=0;for(const F of Object.keys(v)){const b=Gi(v[F],U)+1;U+=b,T+=b*(i.barHeight+i.barGap),w[F]=b}}else{T+=g.length*(i.barHeight+i.barGap);for(const v of A)w[v]=g.filter(U=>U.type===v).length}p.setAttribute("viewBox","0 0 "+ut+" "+T);const X=y.select(`[id="${e}"]`),I=Kr().domain([bn(g,function(v){return v.startTime}),xn(g,function(v){return v.endTime})]).rangeRound([0,ut-i.leftPadding-i.rightPadding]);function D(v,U){const F=v.startTime,b=U.startTime;let o=0;return F>b?o=1:F<b&&(o=-1),o}g.sort(D),E(g,ut,T),_.configureSvgSize(X,T,ut,i.useMaxWidth),X.append("text").text(r.db.getDiagramTitle()).attr("x",ut/2).attr("y",i.titleTopMargin).attr("class","titleText");function E(v,U,F){const b=i.barHeight,o=b+i.barGap,f=i.topPadding,m=i.leftPadding,u=Dt.linear().domain([0,A.length]).range(["#00B9FA","#F95002"]).interpolate(On);L(o,f,m,U,F,v,r.db.getExcludes(),r.db.getIncludes()),B(m,f,U,F),N(v,o,f,m,b,u,U),$(o,f),x(m,f,U,F)}function N(v,U,F,b,o,f,m){const M=[...new Set(v.map(h=>h.order))].map(h=>v.find(C=>C.order===h));X.append("g").selectAll("rect").data(M).enter().append("rect").attr("x",0).attr("y",function(h,C){return C=h.order,C*U+F-2}).attr("width",function(){return m-i.rightPadding/2}).attr("height",U).attr("class",function(h){for(const[C,Z]of A.entries())if(h.type===Z)return"section section"+C%i.numberSectionStyles;return"section section0"});const c=X.append("g").selectAll("rect").data(v).enter(),G=r.db.getLinks();if(c.append("rect").attr("id",function(h){return h.id}).attr("rx",3).attr("ry",3).attr("x",function(h){return h.milestone?I(h.startTime)+b+.5*(I(h.endTime)-I(h.startTime))-.5*o:I(h.startTime)+b}).attr("y",function(h,C){return C=h.order,C*U+F}).attr("width",function(h){return h.milestone?o:I(h.renderEndTime||h.endTime)-I(h.startTime)}).attr("height",o).attr("transform-origin",function(h,C){return C=h.order,(I(h.startTime)+b+.5*(I(h.endTime)-I(h.startTime))).toString()+"px "+(C*U+F+.5*o).toString()+"px"}).attr("class",function(h){const C="task";let Z="";h.classes.length>0&&(Z=h.classes.join(" "));let H=0;for(const[P,R]of A.entries())h.type===R&&(H=P%i.numberSectionStyles);let z="";return h.active?h.crit?z+=" activeCrit":z=" active":h.done?h.crit?z=" doneCrit":z=" done":h.crit&&(z+=" crit"),z.length===0&&(z=" task"),h.milestone&&(z=" milestone "+z),z+=H,z+=" "+Z,C+z}),c.append("text").attr("id",function(h){return h.id+"-text"}).text(function(h){return h.task}).attr("font-size",i.fontSize).attr("x",function(h){let C=I(h.startTime),Z=I(h.renderEndTime||h.endTime);h.milestone&&(C+=.5*(I(h.endTime)-I(h.startTime))-.5*o),h.milestone&&(Z=C+o);const H=this.getBBox().width;return H>Z-C?Z+H+1.5*i.leftPadding>m?C+b-5:Z+b+5:(Z-C)/2+C+b}).attr("y",function(h,C){return C=h.order,C*U+i.barHeight/2+(i.fontSize/2-2)+F}).attr("text-height",o).attr("class",function(h){const C=I(h.startTime);let Z=I(h.endTime);h.milestone&&(Z=C+o);const H=this.getBBox().width;let z="";h.classes.length>0&&(z=h.classes.join(" "));let P=0;for(const[at,ot]of A.entries())h.type===ot&&(P=at%i.numberSectionStyles);let R="";return h.active&&(h.crit?R="activeCritText"+P:R="activeText"+P),h.done?h.crit?R=R+" doneCritText"+P:R=R+" doneText"+P:h.crit&&(R=R+" critText"+P),h.milestone&&(R+=" milestoneText"),H>Z-C?Z+H+1.5*i.leftPadding>m?z+" taskTextOutsideLeft taskTextOutside"+P+" "+R:z+" taskTextOutsideRight taskTextOutside"+P+" "+R+" width-"+H:z+" taskText taskText"+P+" "+R+" width-"+H}),_.getConfig().securityLevel==="sandbox"){let h;h=_.select("#i"+e);const C=h.nodes()[0].contentDocument;c.filter(function(Z){return G[Z.id]!==void 0}).each(function(Z){var H=C.querySelector("#"+Z.id),z=C.querySelector("#"+Z.id+"-text");const P=H.parentNode;var R=C.createElement("a");R.setAttribute("xlink:href",G[Z.id]),R.setAttribute("target","_top"),P.appendChild(R),R.appendChild(H),R.appendChild(z)})}}function L(v,U,F,b,o,f,m,u){if(m.length===0&&u.length===0)return;let M,c;for(const{startTime:H,endTime:z}of f)(M===void 0||H<M)&&(M=H),(c===void 0||z>c)&&(c=z);if(!M||!c)return;if(_.dayjs(c).diff(_.dayjs(M),"year")>5){_.log$1.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");return}const G=r.db.getDateFormat(),d=[];let h=null,C=_.dayjs(M);for(;C.valueOf()<=c;)r.db.isInvalidDate(C,G,m,u)?h?h.end=C:h={start:C,end:C}:h&&(d.push(h),h=null),C=C.add(1,"d");X.append("g").selectAll("rect").data(d).enter().append("rect").attr("id",function(H){return"exclude-"+H.start.format("YYYY-MM-DD")}).attr("x",function(H){return I(H.start)+F}).attr("y",i.gridLineStartPadding).attr("width",function(H){const z=H.end.add(1,"day");return I(z)-I(H.start)}).attr("height",o-U-i.gridLineStartPadding).attr("transform-origin",function(H,z){return(I(H.start)+F+.5*(I(H.end)-I(H.start))).toString()+"px "+(z*v+.5*o).toString()+"px"}).attr("class","exclude-range")}function B(v,U,F,b){let o=Yn(I).tickSize(-b+U+i.gridLineStartPadding).tickFormat(Jt(r.db.getAxisFormat()||i.axisFormat||"%Y-%m-%d"));const m=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(r.db.getTickInterval()||i.tickInterval);if(m!==null){const u=m[1],M=m[2],c=r.db.getWeekday()||i.weekday;switch(M){case"millisecond":o.ticks(_t.every(u));break;case"second":o.ticks(kt.every(u));break;case"minute":o.ticks(Lt.every(u));break;case"hour":o.ticks(Wt.every(u));break;case"day":o.ticks(pt.every(u));break;case"week":o.ticks(qe[c].every(u));break;case"month":o.ticks(Ot.every(u));break}}if(X.append("g").attr("class","grid").attr("transform","translate("+v+", "+(b-50)+")").call(o).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),r.db.topAxisEnabled()||i.topAxis){let u=Fn(I).tickSize(-b+U+i.gridLineStartPadding).tickFormat(Jt(r.db.getAxisFormat()||i.axisFormat||"%Y-%m-%d"));if(m!==null){const M=m[1],c=m[2],G=r.db.getWeekday()||i.weekday;switch(c){case"millisecond":u.ticks(_t.every(M));break;case"second":u.ticks(kt.every(M));break;case"minute":u.ticks(Lt.every(M));break;case"hour":u.ticks(Wt.every(M));break;case"day":u.ticks(pt.every(M));break;case"week":u.ticks(qe[G].every(M));break;case"month":u.ticks(Ot.every(M));break}}X.append("g").attr("class","grid").attr("transform","translate("+v+", "+U+")").call(u).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}function $(v,U){let F=0;const b=Object.keys(w).map(o=>[o,w[o]]);X.append("g").selectAll("text").data(b).enter().append(function(o){const f=o[0].split(_.common$1.lineBreakRegex),m=-(f.length-1)/2,u=S.createElementNS("http://www.w3.org/2000/svg","text");u.setAttribute("dy",m+"em");for(const[M,c]of f.entries()){const G=S.createElementNS("http://www.w3.org/2000/svg","tspan");G.setAttribute("alignment-baseline","central"),G.setAttribute("x","10"),M>0&&G.setAttribute("dy","1em"),G.textContent=c,u.appendChild(G)}return u}).attr("x",10).attr("y",function(o,f){if(f>0)for(let m=0;m<f;m++)return F+=b[f-1][1],o[1]*v/2+F*v+U;else return o[1]*v/2+U}).attr("font-size",i.sectionFontSize).attr("class",function(o){for(const[f,m]of A.entries())if(o[0]===m)return"sectionTitle sectionTitle"+f%i.numberSectionStyles;return"sectionTitle"})}function x(v,U,F,b){const o=r.db.getTodayMarker();if(o==="off")return;const f=X.append("g").attr("class","today"),m=new Date,u=f.append("line");u.attr("x1",I(m)+v).attr("x2",I(m)+v).attr("y1",i.titleTopMargin).attr("y2",b-i.titleTopMargin).attr("class","today"),o!==""&&u.attr("style",o.replace(/,/g,";"))}function O(v){const U={},F=[];for(let b=0,o=v.length;b<o;++b)Object.prototype.hasOwnProperty.call(U,v[b])||(U[v[b]]=!0,F.push(v[b]));return F}},$i={setConf:Xi,draw:Qi},Ji=t=>`
|
|
6
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var f=this.next();return f||this.lex()},begin:function(f){this.conditionStack.push(f)},popState:function(){var f=this.conditionStack.length-1;return f>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(f){return f=this.conditionStack.length-1-Math.abs(f||0),f>=0?this.conditionStack[f]:"INITIAL"},pushState:function(f){this.begin(f)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(f,m,u,M){switch(u){case 0:return this.begin("open_directive"),"open_directive";case 1:return this.begin("acc_title"),28;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),30;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:break;case 9:break;case 10:break;case 11:return 10;case 12:break;case 13:break;case 14:this.begin("href");break;case 15:this.popState();break;case 16:return 40;case 17:this.begin("callbackname");break;case 18:this.popState();break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 38;case 21:this.popState();break;case 22:return 39;case 23:this.begin("click");break;case 24:this.popState();break;case 25:return 37;case 26:return 4;case 27:return 19;case 28:return 20;case 29:return 21;case 30:return 22;case 31:return 23;case 32:return 25;case 33:return 24;case 34:return 26;case 35:return 12;case 36:return 13;case 37:return 14;case 38:return 15;case 39:return 16;case 40:return 17;case 41:return 18;case 42:return"date";case 43:return 27;case 44:return"accDescription";case 45:return 33;case 46:return 35;case 47:return 36;case 48:return":";case 49:return 6;case 50:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:weekday\s+monday\b)/i,/^(?:weekday\s+tuesday\b)/i,/^(?:weekday\s+wednesday\b)/i,/^(?:weekday\s+thursday\b)/i,/^(?:weekday\s+friday\b)/i,/^(?:weekday\s+saturday\b)/i,/^(?:weekday\s+sunday\b)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^\n]+)/i,/^(?:[^:\n]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},callbackargs:{rules:[21,22],inclusive:!1},callbackname:{rules:[18,19,20],inclusive:!1},href:{rules:[15,16],inclusive:!1},click:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,17,23,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],inclusive:!0}}};return b})();v.lexer=U;function F(){this.yy={}}return F.prototype=v,v.Parser=F,new F})();he.parser=he;const hi=he;_.dayjs.extend(ri);_.dayjs.extend(oi);_.dayjs.extend(fi);let it="",Te="",ve,xe="",Nt=[],Pt=[],be={},we=[],Kt=[],Yt="",Ce="";const un=["active","done","crit","milestone"];let De=[],Vt=!1,Me=!1,Se="sunday",de=0;const di=function(){we=[],Kt=[],Yt="",De=[],Xt=0,ge=void 0,Gt=void 0,tt=[],it="",Te="",Ce="",ve=void 0,xe="",Nt=[],Pt=[],Vt=!1,Me=!1,de=0,be={},_.clear(),Se="sunday"},mi=function(t){Te=t},gi=function(){return Te},yi=function(t){ve=t},ki=function(){return ve},pi=function(t){xe=t},Ti=function(){return xe},vi=function(t){it=t},xi=function(){Vt=!0},bi=function(){return Vt},wi=function(){Me=!0},Ci=function(){return Me},Di=function(t){Ce=t},Mi=function(){return Ce},Si=function(){return it},_i=function(t){Nt=t.toLowerCase().split(/[\s,]+/)},Fi=function(){return Nt},Yi=function(t){Pt=t.toLowerCase().split(/[\s,]+/)},Ui=function(){return Pt},Ai=function(){return be},Ei=function(t){Yt=t,we.push(t)},Li=function(){return we},Wi=function(){let t=Re();const e=10;let n=0;for(;!t&&n<e;)t=Re(),n++;return Kt=tt,Kt},fn=function(t,e,n,r){return r.includes(t.format(e.trim()))?!1:t.isoWeekday()>=6&&n.includes("weekends")||n.includes(t.format("dddd").toLowerCase())?!0:n.includes(t.format(e.trim()))},Ii=function(t){Se=t},Oi=function(){return Se},hn=function(t,e,n,r){if(!n.length||t.manualEndTime)return;let i;t.startTime instanceof Date?i=_.dayjs(t.startTime):i=_.dayjs(t.startTime,e,!0),i=i.add(1,"d");let s;t.endTime instanceof Date?s=_.dayjs(t.endTime):s=_.dayjs(t.endTime,e,!0);const[a,y]=Hi(i,s,e,n,r);t.endTime=a.toDate(),t.renderEndTime=y},Hi=function(t,e,n,r,i){let s=!1,a=null;for(;t<=e;)s||(a=e.toDate()),s=fn(t,n,r,i),s&&(e=e.add(1,"d")),t=t.add(1,"d");return[e,a]},me=function(t,e,n){n=n.trim();const i=/^after\s+(?<ids>[\d\w- ]+)/.exec(n);if(i!==null){let a=null;for(const S of i.groups.ids.split(" ")){let p=wt(S);p!==void 0&&(!a||p.endTime>a.endTime)&&(a=p)}if(a)return a.endTime;const y=new Date;return y.setHours(0,0,0,0),y}let s=_.dayjs(n,e.trim(),!0);if(s.isValid())return s.toDate();{_.log$1.debug("Invalid date:"+n),_.log$1.debug("With date format:"+e.trim());const a=new Date(n);if(a===void 0||isNaN(a.getTime())||a.getFullYear()<-1e4||a.getFullYear()>1e4)throw new Error("Invalid date:"+n);return a}},dn=function(t){const e=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());return e!==null?[Number.parseFloat(e[1]),e[2]]:[NaN,"ms"]},mn=function(t,e,n,r=!1){n=n.trim();const s=/^until\s+(?<ids>[\d\w- ]+)/.exec(n);if(s!==null){let g=null;for(const w of s.groups.ids.split(" ")){let T=wt(w);T!==void 0&&(!g||T.startTime<g.startTime)&&(g=T)}if(g)return g.startTime;const A=new Date;return A.setHours(0,0,0,0),A}let a=_.dayjs(n,e.trim(),!0);if(a.isValid())return r&&(a=a.add(1,"d")),a.toDate();let y=_.dayjs(t);const[S,p]=dn(n);if(!Number.isNaN(S)){const g=y.add(S,p);g.isValid()&&(y=g)}return y.toDate()};let Xt=0;const St=function(t){return t===void 0?(Xt=Xt+1,"task"+Xt):t},Ni=function(t,e){let n;e.substr(0,1)===":"?n=e.substr(1,e.length):n=e;const r=n.split(","),i={};pn(r,i,un);for(let a=0;a<r.length;a++)r[a]=r[a].trim();let s="";switch(r.length){case 1:i.id=St(),i.startTime=t.endTime,s=r[0];break;case 2:i.id=St(),i.startTime=me(void 0,it,r[0]),s=r[1];break;case 3:i.id=St(r[0]),i.startTime=me(void 0,it,r[1]),s=r[2];break}return s&&(i.endTime=mn(i.startTime,it,s,Vt),i.manualEndTime=_.dayjs(s,"YYYY-MM-DD",!0).isValid(),hn(i,it,Pt,Nt)),i},Pi=function(t,e){let n;e.substr(0,1)===":"?n=e.substr(1,e.length):n=e;const r=n.split(","),i={};pn(r,i,un);for(let s=0;s<r.length;s++)r[s]=r[s].trim();switch(r.length){case 1:i.id=St(),i.startTime={type:"prevTaskEnd",id:t},i.endTime={data:r[0]};break;case 2:i.id=St(),i.startTime={type:"getStartDate",startData:r[0]},i.endTime={data:r[1]};break;case 3:i.id=St(r[0]),i.startTime={type:"getStartDate",startData:r[1]},i.endTime={data:r[2]};break}return i};let ge,Gt,tt=[];const gn={},Vi=function(t,e){const n={section:Yt,type:Yt,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:e},task:t,classes:[]},r=Pi(Gt,e);n.raw.startTime=r.startTime,n.raw.endTime=r.endTime,n.id=r.id,n.prevTaskId=Gt,n.active=r.active,n.done=r.done,n.crit=r.crit,n.milestone=r.milestone,n.order=de,de++;const i=tt.push(n);Gt=n.id,gn[n.id]=i-1},wt=function(t){const e=gn[t];return tt[e]},zi=function(t,e){const n={section:Yt,type:Yt,description:t,task:t,classes:[]},r=Ni(ge,e);n.startTime=r.startTime,n.endTime=r.endTime,n.id=r.id,n.active=r.active,n.done=r.done,n.crit=r.crit,n.milestone=r.milestone,ge=n,Kt.push(n)},Re=function(){const t=function(n){const r=tt[n];let i="";switch(tt[n].raw.startTime.type){case"prevTaskEnd":{const s=wt(r.prevTaskId);r.startTime=s.endTime;break}case"getStartDate":i=me(void 0,it,tt[n].raw.startTime.startData),i&&(tt[n].startTime=i);break}return tt[n].startTime&&(tt[n].endTime=mn(tt[n].startTime,it,tt[n].raw.endTime.data,Vt),tt[n].endTime&&(tt[n].processed=!0,tt[n].manualEndTime=_.dayjs(tt[n].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),hn(tt[n],it,Pt,Nt))),tt[n].processed};let e=!0;for(const[n,r]of tt.entries())t(n),e=e&&r.processed;return e},Ri=function(t,e){let n=e;_.getConfig().securityLevel!=="loose"&&(n=Tn.distExports.sanitizeUrl(e)),t.split(",").forEach(function(r){wt(r)!==void 0&&(kn(r,()=>{window.open(n,"_self")}),be[r]=n)}),yn(t,"clickable")},yn=function(t,e){t.split(",").forEach(function(n){let r=wt(n);r!==void 0&&r.classes.push(e)})},qi=function(t,e,n){if(_.getConfig().securityLevel!=="loose"||e===void 0)return;let r=[];if(typeof n=="string"){r=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let s=0;s<r.length;s++){let a=r[s].trim();a.charAt(0)==='"'&&a.charAt(a.length-1)==='"'&&(a=a.substr(1,a.length-2)),r[s]=a}}r.length===0&&r.push(t),wt(t)!==void 0&&kn(t,()=>{_.utils.runFunc(e,...r)})},kn=function(t,e){De.push(function(){const n=document.querySelector(`[id="${t}"]`);n!==null&&n.addEventListener("click",function(){e()})},function(){const n=document.querySelector(`[id="${t}-text"]`);n!==null&&n.addEventListener("click",function(){e()})})},ji=function(t,e,n){t.split(",").forEach(function(r){qi(r,e,n)}),yn(t,"clickable")},Bi=function(t){De.forEach(function(e){e(t)})},Zi={getConfig:()=>_.getConfig().gantt,clear:di,setDateFormat:vi,getDateFormat:Si,enableInclusiveEndDates:xi,endDatesAreInclusive:bi,enableTopAxis:wi,topAxisEnabled:Ci,setAxisFormat:mi,getAxisFormat:gi,setTickInterval:yi,getTickInterval:ki,setTodayMarker:pi,getTodayMarker:Ti,setAccTitle:_.setAccTitle,getAccTitle:_.getAccTitle,setDiagramTitle:_.setDiagramTitle,getDiagramTitle:_.getDiagramTitle,setDisplayMode:Di,getDisplayMode:Mi,setAccDescription:_.setAccDescription,getAccDescription:_.getAccDescription,addSection:Ei,getSections:Li,getTasks:Wi,addTask:Vi,findTaskById:wt,addTaskOrg:zi,setIncludes:_i,getIncludes:Fi,setExcludes:Yi,getExcludes:Ui,setClickEvent:ji,setLink:Ri,getLinks:Ai,bindFunctions:Bi,parseDuration:dn,isInvalidDate:fn,setWeekday:Ii,getWeekday:Oi};function pn(t,e,n){let r=!0;for(;r;)r=!1,n.forEach(function(i){const s="^\\s*"+i+"\\s*$",a=new RegExp(s);t[0].match(a)&&(e[i]=!0,t.shift(1),r=!0)})}const Xi=function(){_.log$1.debug("Something is calling, setConf, remove the call")},qe={monday:It,tuesday:Ke,wednesday:tn,thursday:Tt,friday:en,saturday:nn,sunday:Ht},Gi=(t,e)=>{let n=[...t].map(()=>-1/0),r=[...t].sort((s,a)=>s.startTime-a.startTime||s.order-a.order),i=0;for(const s of r)for(let a=0;a<n.length;a++)if(s.startTime>=n[a]){n[a]=s.endTime,s.order=a+e,a>i&&(i=a);break}return i};let ut;const Qi=function(t,e,n,r){const i=_.getConfig().gantt,s=_.getConfig().securityLevel;let a;s==="sandbox"&&(a=_.select("#i"+e));const y=s==="sandbox"?_.select(a.nodes()[0].contentDocument.body):_.select("body"),S=s==="sandbox"?a.nodes()[0].contentDocument:document,p=S.getElementById(e);ut=p.parentElement.offsetWidth,ut===void 0&&(ut=1200),i.useWidth!==void 0&&(ut=i.useWidth);const g=r.db.getTasks();let A=[];for(const v of g)A.push(v.type);A=O(A);const w={};let T=2*i.topPadding;if(r.db.getDisplayMode()==="compact"||i.displayMode==="compact"){const v={};for(const F of g)v[F.section]===void 0?v[F.section]=[F]:v[F.section].push(F);let U=0;for(const F of Object.keys(v)){const b=Gi(v[F],U)+1;U+=b,T+=b*(i.barHeight+i.barGap),w[F]=b}}else{T+=g.length*(i.barHeight+i.barGap);for(const v of A)w[v]=g.filter(U=>U.type===v).length}p.setAttribute("viewBox","0 0 "+ut+" "+T);const X=y.select(`[id="${e}"]`),I=Kr().domain([bn(g,function(v){return v.startTime}),xn(g,function(v){return v.endTime})]).rangeRound([0,ut-i.leftPadding-i.rightPadding]);function D(v,U){const F=v.startTime,b=U.startTime;let o=0;return F>b?o=1:F<b&&(o=-1),o}g.sort(D),E(g,ut,T),_.configureSvgSize(X,T,ut,i.useMaxWidth),X.append("text").text(r.db.getDiagramTitle()).attr("x",ut/2).attr("y",i.titleTopMargin).attr("class","titleText");function E(v,U,F){const b=i.barHeight,o=b+i.barGap,f=i.topPadding,m=i.leftPadding,u=Dt.linear().domain([0,A.length]).range(["#00B9FA","#F95002"]).interpolate(On);L(o,f,m,U,F,v,r.db.getExcludes(),r.db.getIncludes()),B(m,f,U,F),N(v,o,f,m,b,u,U),$(o,f),x(m,f,U,F)}function N(v,U,F,b,o,f,m){const M=[...new Set(v.map(h=>h.order))].map(h=>v.find(C=>C.order===h));X.append("g").selectAll("rect").data(M).enter().append("rect").attr("x",0).attr("y",function(h,C){return C=h.order,C*U+F-2}).attr("width",function(){return m-i.rightPadding/2}).attr("height",U).attr("class",function(h){for(const[C,Z]of A.entries())if(h.type===Z)return"section section"+C%i.numberSectionStyles;return"section section0"});const c=X.append("g").selectAll("rect").data(v).enter(),G=r.db.getLinks();if(c.append("rect").attr("id",function(h){return h.id}).attr("rx",3).attr("ry",3).attr("x",function(h){return h.milestone?I(h.startTime)+b+.5*(I(h.endTime)-I(h.startTime))-.5*o:I(h.startTime)+b}).attr("y",function(h,C){return C=h.order,C*U+F}).attr("width",function(h){return h.milestone?o:I(h.renderEndTime||h.endTime)-I(h.startTime)}).attr("height",o).attr("transform-origin",function(h,C){return C=h.order,(I(h.startTime)+b+.5*(I(h.endTime)-I(h.startTime))).toString()+"px "+(C*U+F+.5*o).toString()+"px"}).attr("class",function(h){const C="task";let Z="";h.classes.length>0&&(Z=h.classes.join(" "));let H=0;for(const[P,R]of A.entries())h.type===R&&(H=P%i.numberSectionStyles);let z="";return h.active?h.crit?z+=" activeCrit":z=" active":h.done?h.crit?z=" doneCrit":z=" done":h.crit&&(z+=" crit"),z.length===0&&(z=" task"),h.milestone&&(z=" milestone "+z),z+=H,z+=" "+Z,C+z}),c.append("text").attr("id",function(h){return h.id+"-text"}).text(function(h){return h.task}).attr("font-size",i.fontSize).attr("x",function(h){let C=I(h.startTime),Z=I(h.renderEndTime||h.endTime);h.milestone&&(C+=.5*(I(h.endTime)-I(h.startTime))-.5*o),h.milestone&&(Z=C+o);const H=this.getBBox().width;return H>Z-C?Z+H+1.5*i.leftPadding>m?C+b-5:Z+b+5:(Z-C)/2+C+b}).attr("y",function(h,C){return C=h.order,C*U+i.barHeight/2+(i.fontSize/2-2)+F}).attr("text-height",o).attr("class",function(h){const C=I(h.startTime);let Z=I(h.endTime);h.milestone&&(Z=C+o);const H=this.getBBox().width;let z="";h.classes.length>0&&(z=h.classes.join(" "));let P=0;for(const[at,ot]of A.entries())h.type===ot&&(P=at%i.numberSectionStyles);let R="";return h.active&&(h.crit?R="activeCritText"+P:R="activeText"+P),h.done?h.crit?R=R+" doneCritText"+P:R=R+" doneText"+P:h.crit&&(R=R+" critText"+P),h.milestone&&(R+=" milestoneText"),H>Z-C?Z+H+1.5*i.leftPadding>m?z+" taskTextOutsideLeft taskTextOutside"+P+" "+R:z+" taskTextOutsideRight taskTextOutside"+P+" "+R+" width-"+H:z+" taskText taskText"+P+" "+R+" width-"+H}),_.getConfig().securityLevel==="sandbox"){let h;h=_.select("#i"+e);const C=h.nodes()[0].contentDocument;c.filter(function(Z){return G[Z.id]!==void 0}).each(function(Z){var H=C.querySelector("#"+Z.id),z=C.querySelector("#"+Z.id+"-text");const P=H.parentNode;var R=C.createElement("a");R.setAttribute("xlink:href",G[Z.id]),R.setAttribute("target","_top"),P.appendChild(R),R.appendChild(H),R.appendChild(z)})}}function L(v,U,F,b,o,f,m,u){if(m.length===0&&u.length===0)return;let M,c;for(const{startTime:H,endTime:z}of f)(M===void 0||H<M)&&(M=H),(c===void 0||z>c)&&(c=z);if(!M||!c)return;if(_.dayjs(c).diff(_.dayjs(M),"year")>5){_.log$1.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");return}const G=r.db.getDateFormat(),d=[];let h=null,C=_.dayjs(M);for(;C.valueOf()<=c;)r.db.isInvalidDate(C,G,m,u)?h?h.end=C:h={start:C,end:C}:h&&(d.push(h),h=null),C=C.add(1,"d");X.append("g").selectAll("rect").data(d).enter().append("rect").attr("id",function(H){return"exclude-"+H.start.format("YYYY-MM-DD")}).attr("x",function(H){return I(H.start)+F}).attr("y",i.gridLineStartPadding).attr("width",function(H){const z=H.end.add(1,"day");return I(z)-I(H.start)}).attr("height",o-U-i.gridLineStartPadding).attr("transform-origin",function(H,z){return(I(H.start)+F+.5*(I(H.end)-I(H.start))).toString()+"px "+(z*v+.5*o).toString()+"px"}).attr("class","exclude-range")}function B(v,U,F,b){let o=Yn(I).tickSize(-b+U+i.gridLineStartPadding).tickFormat(Jt(r.db.getAxisFormat()||i.axisFormat||"%Y-%m-%d"));const m=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(r.db.getTickInterval()||i.tickInterval);if(m!==null){const u=m[1],M=m[2],c=r.db.getWeekday()||i.weekday;switch(M){case"millisecond":o.ticks(_t.every(u));break;case"second":o.ticks(kt.every(u));break;case"minute":o.ticks(Lt.every(u));break;case"hour":o.ticks(Wt.every(u));break;case"day":o.ticks(pt.every(u));break;case"week":o.ticks(qe[c].every(u));break;case"month":o.ticks(Ot.every(u));break}}if(X.append("g").attr("class","grid").attr("transform","translate("+v+", "+(b-50)+")").call(o).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),r.db.topAxisEnabled()||i.topAxis){let u=Fn(I).tickSize(-b+U+i.gridLineStartPadding).tickFormat(Jt(r.db.getAxisFormat()||i.axisFormat||"%Y-%m-%d"));if(m!==null){const M=m[1],c=m[2],G=r.db.getWeekday()||i.weekday;switch(c){case"millisecond":u.ticks(_t.every(M));break;case"second":u.ticks(kt.every(M));break;case"minute":u.ticks(Lt.every(M));break;case"hour":u.ticks(Wt.every(M));break;case"day":u.ticks(pt.every(M));break;case"week":u.ticks(qe[G].every(M));break;case"month":u.ticks(Ot.every(M));break}}X.append("g").attr("class","grid").attr("transform","translate("+v+", "+U+")").call(u).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}function $(v,U){let F=0;const b=Object.keys(w).map(o=>[o,w[o]]);X.append("g").selectAll("text").data(b).enter().append(function(o){const f=o[0].split(_.common$1.lineBreakRegex),m=-(f.length-1)/2,u=S.createElementNS("http://www.w3.org/2000/svg","text");u.setAttribute("dy",m+"em");for(const[M,c]of f.entries()){const G=S.createElementNS("http://www.w3.org/2000/svg","tspan");G.setAttribute("alignment-baseline","central"),G.setAttribute("x","10"),M>0&&G.setAttribute("dy","1em"),G.textContent=c,u.appendChild(G)}return u}).attr("x",10).attr("y",function(o,f){if(f>0)for(let m=0;m<f;m++)return F+=b[f-1][1],o[1]*v/2+F*v+U;else return o[1]*v/2+U}).attr("font-size",i.sectionFontSize).attr("class",function(o){for(const[f,m]of A.entries())if(o[0]===m)return"sectionTitle sectionTitle"+f%i.numberSectionStyles;return"sectionTitle"})}function x(v,U,F,b){const o=r.db.getTodayMarker();if(o==="off")return;const f=X.append("g").attr("class","today"),m=new Date,u=f.append("line");u.attr("x1",I(m)+v).attr("x2",I(m)+v).attr("y1",i.titleTopMargin).attr("y2",b-i.titleTopMargin).attr("class","today"),o!==""&&u.attr("style",o.replace(/,/g,";"))}function O(v){const U={},F=[];for(let b=0,o=v.length;b<o;++b)Object.prototype.hasOwnProperty.call(U,v[b])||(U[v[b]]=!0,F.push(v[b]));return F}},$i={setConf:Xi,draw:Qi},Ji=t=>`
|
|
7
7
|
.mermaid-main-font {
|
|
8
8
|
font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif);
|
|
9
9
|
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const x=require("./layers.D79Z4mUK.js");require("./layers.Dx6o3AHd.js");const Y=require("./layers.CIBlE4Ia.js");var J=(function(){var n=function(f,i,r,c){for(r=r||{},c=f.length;c--;r[f[c]]=i);return r},t=[6,8,10,11,12,14,16,17,20,21],e=[1,9],a=[1,10],s=[1,11],h=[1,12],l=[1,13],p=[1,16],y=[1,17],g={trace:function(){},yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,period_statement:18,event_statement:19,period:20,event:21,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",20:"period",21:"event"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[18,1],[19,1]],performAction:function(i,r,c,d,u,o,I){var b=o.length-1;switch(u){case 1:return o[b-1];case 2:this.$=[];break;case 3:o[b-1].push(o[b]),this.$=o[b-1];break;case 4:case 5:this.$=o[b];break;case 6:case 7:this.$=[];break;case 8:d.getCommonDb().setDiagramTitle(o[b].substr(6)),this.$=o[b].substr(6);break;case 9:this.$=o[b].trim(),d.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=o[b].trim(),d.getCommonDb().setAccDescription(this.$);break;case 12:d.addSection(o[b].substr(8)),this.$=o[b].substr(8);break;case 15:d.addTask(o[b],0,""),this.$=o[b];break;case 16:d.addEvent(o[b].substr(2)),this.$=o[b];break}},table:[{3:1,4:[1,2]},{1:[3]},n(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:e,12:a,14:s,16:h,17:l,18:14,19:15,20:p,21:y},n(t,[2,7],{1:[2,1]}),n(t,[2,3]),{9:18,11:e,12:a,14:s,16:h,17:l,18:14,19:15,20:p,21:y},n(t,[2,5]),n(t,[2,6]),n(t,[2,8]),{13:[1,19]},{15:[1,20]},n(t,[2,11]),n(t,[2,12]),n(t,[2,13]),n(t,[2,14]),n(t,[2,15]),n(t,[2,16]),n(t,[2,4]),n(t,[2,9]),n(t,[2,10])],defaultActions:{},parseError:function(i,r){if(r.recoverable)this.trace(i);else{var c=new Error(i);throw c.hash=r,c}},parse:function(i){var r=this,c=[0],d=[],u=[null],o=[],I=this.table,b="",$=0,W=0,C=2,P=1,B=o.slice.call(arguments,1),v=Object.create(this.lexer),S={yy:{}};for(var w in this.yy)Object.prototype.hasOwnProperty.call(this.yy,w)&&(S.yy[w]=this.yy[w]);v.setInput(i,S.yy),S.yy.lexer=v,S.yy.parser=this,typeof v.yylloc>"u"&&(v.yylloc={});var T=v.yylloc;o.push(T);var A=v.options&&v.options.ranges;typeof S.yy.parseError=="function"?this.parseError=S.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function z(){var M;return M=d.pop()||v.lex()||P,typeof M!="number"&&(M instanceof Array&&(d=M,M=d.pop()),M=r.symbols_[M]||M),M}for(var k,L,E,U,R={},O,N,X,j;;){if(L=c[c.length-1],this.defaultActions[L]?E=this.defaultActions[L]:((k===null||typeof k>"u")&&(k=z()),E=I[L]&&I[L][k]),typeof E>"u"||!E.length||!E[0]){var Z="";j=[];for(O in I[L])this.terminals_[O]&&O>C&&j.push("'"+this.terminals_[O]+"'");v.showPosition?Z="Parse error on line "+($+1)+`:
|
|
2
|
+
`+v.showPosition()+`
|
|
3
|
+
Expecting `+j.join(", ")+", got '"+(this.terminals_[k]||k)+"'":Z="Parse error on line "+($+1)+": Unexpected "+(k==P?"end of input":"'"+(this.terminals_[k]||k)+"'"),this.parseError(Z,{text:v.match,token:this.terminals_[k]||k,line:v.yylineno,loc:T,expected:j})}if(E[0]instanceof Array&&E.length>1)throw new Error("Parse Error: multiple actions possible at state: "+L+", token: "+k);switch(E[0]){case 1:c.push(k),u.push(v.yytext),o.push(v.yylloc),c.push(E[1]),k=null,W=v.yyleng,b=v.yytext,$=v.yylineno,T=v.yylloc;break;case 2:if(N=this.productions_[E[1]][1],R.$=u[u.length-N],R._$={first_line:o[o.length-(N||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(N||1)].first_column,last_column:o[o.length-1].last_column},A&&(R._$.range=[o[o.length-(N||1)].range[0],o[o.length-1].range[1]]),U=this.performAction.apply(R,[b,W,$,S.yy,E[1],u,o].concat(B)),typeof U<"u")return U;N&&(c=c.slice(0,-1*N*2),u=u.slice(0,-1*N),o=o.slice(0,-1*N)),c.push(this.productions_[E[1]][0]),u.push(R.$),o.push(R._$),X=I[c[c.length-2]][c[c.length-1]],c.push(X);break;case 3:return!0}}return!0}},_=(function(){var f={EOF:1,parseError:function(r,c){if(this.yy.parser)this.yy.parser.parseError(r,c);else throw new Error(r)},setInput:function(i,r){return this.yy=r||this.yy||{},this._input=i,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var r=i.match(/(?:\r\n?|\n).*/g);return r?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},unput:function(i){var r=i.length,c=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;var d=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var u=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===d.length?this.yylloc.first_column:0)+d[d.length-c.length].length-c[0].length:this.yylloc.first_column-r},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-r]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(i){this.unput(this.match.slice(i))},pastInput:function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var i=this.pastInput(),r=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
|
|
5
|
+
`+r+"^"},test_match:function(i,r){var c,d,u;if(this.options.backtrack_lexer&&(u={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(u.yylloc.range=this.yylloc.range.slice(0))),d=i[0].match(/(?:\r\n?|\n).*/g),d&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+i[0].length},this.yytext+=i[0],this.match+=i[0],this.matches=i,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(i[0].length),this.matched+=i[0],c=this.performAction.call(this,this.yy,this,r,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),c)return c;if(this._backtrack){for(var o in u)this[o]=u[o];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var i,r,c,d;this._more||(this.yytext="",this.match="");for(var u=this._currentRules(),o=0;o<u.length;o++)if(c=this._input.match(this.rules[u[o]]),c&&(!r||c[0].length>r[0].length)){if(r=c,d=o,this.options.backtrack_lexer){if(i=this.test_match(c,u[o]),i!==!1)return i;if(this._backtrack){r=!1;continue}else return!1}else if(!this.options.flex)break}return r?(i=this.test_match(r,u[d]),i!==!1?i:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var r=this.next();return r||this.lex()},begin:function(r){this.conditionStack.push(r)},popState:function(){var r=this.conditionStack.length-1;return r>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(r){return r=this.conditionStack.length-1-Math.abs(r||0),r>=0?this.conditionStack[r]:"INITIAL"},pushState:function(r){this.begin(r)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(r,c,d,u){switch(d){case 0:break;case 1:break;case 2:return 10;case 3:break;case 4:break;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),14;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 21;case 16:return 20;case 17:return 6;case 18:return"INVALID"}},rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?::\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18],inclusive:!0}}};return f})();g.lexer=_;function m(){this.yy={}}return m.prototype=g,g.Parser=m,new m})();J.parser=J;const yt=J;let F="",nt=0;const K=[],q=[],V=[],st=()=>x.commonDb,it=function(){K.length=0,q.length=0,F="",V.length=0,x.clear()},rt=function(n){F=n,K.push(n)},at=function(){return K},lt=function(){let n=D();const t=100;let e=0;for(;!n&&e<t;)n=D(),e++;return q.push(...V),q},ot=function(n,t,e){const a={id:nt++,section:F,type:F,task:n,score:t||0,events:e?[e]:[]};V.push(a)},ct=function(n){V.find(e=>e.id===nt-1).events.push(n)},ht=function(n){const t={section:F,type:F,description:n,task:n,classes:[]};q.push(t)},D=function(){const n=function(e){return V[e].processed};let t=!0;for(const[e,a]of V.entries())n(e),t=t&&a.processed;return t},gt={clear:it,getCommonDb:st,addSection:rt,getSections:at,getTasks:lt,addTask:ot,addTaskOrg:ht,addEvent:ct},ft=Object.freeze(Object.defineProperty({__proto__:null,addEvent:ct,addSection:rt,addTask:ot,addTaskOrg:ht,clear:it,default:gt,getCommonDb:st,getSections:at,getTasks:lt},Symbol.toStringTag,{value:"Module"})),mt=12,G=function(n,t){const e=n.append("rect");return e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),e.attr("rx",t.rx),e.attr("ry",t.ry),t.class!==void 0&&e.attr("class",t.class),e},xt=function(n,t){const a=n.append("circle").attr("cx",t.cx).attr("cy",t.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),s=n.append("g");s.append("circle").attr("cx",t.cx-15/3).attr("cy",t.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),s.append("circle").attr("cx",t.cx+15/3).attr("cy",t.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function h(y){const g=Y.arc().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);y.append("path").attr("class","mouth").attr("d",g).attr("transform","translate("+t.cx+","+(t.cy+2)+")")}function l(y){const g=Y.arc().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);y.append("path").attr("class","mouth").attr("d",g).attr("transform","translate("+t.cx+","+(t.cy+7)+")")}function p(y){y.append("line").attr("class","mouth").attr("stroke",2).attr("x1",t.cx-5).attr("y1",t.cy+7).attr("x2",t.cx+5).attr("y2",t.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return t.score>3?h(s):t.score<3?l(s):p(s),a},bt=function(n,t){const e=n.append("circle");return e.attr("cx",t.cx),e.attr("cy",t.cy),e.attr("class","actor-"+t.pos),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("r",t.r),e.class!==void 0&&e.attr("class",e.class),t.title!==void 0&&e.append("title").text(t.title),e},dt=function(n,t){const e=t.text.replace(/<br\s*\/?>/gi," "),a=n.append("text");a.attr("x",t.x),a.attr("y",t.y),a.attr("class","legend"),a.style("text-anchor",t.anchor),t.class!==void 0&&a.attr("class",t.class);const s=a.append("tspan");return s.attr("x",t.x+t.textMargin*2),s.text(e),a},_t=function(n,t){function e(s,h,l,p,y){return s+","+h+" "+(s+l)+","+h+" "+(s+l)+","+(h+p-y)+" "+(s+l-y*1.2)+","+(h+p)+" "+s+","+(h+p)}const a=n.append("polygon");a.attr("points",e(t.x,t.y,50,20,7)),a.attr("class","labelBox"),t.y=t.y+t.labelMargin,t.x=t.x+.5*t.labelMargin,dt(n,t)},kt=function(n,t,e){const a=n.append("g"),s=Q();s.x=t.x,s.y=t.y,s.fill=t.fill,s.width=e.width,s.height=e.height,s.class="journey-section section-type-"+t.num,s.rx=3,s.ry=3,G(a,s),ut(e)(t.text,a,s.x,s.y,s.width,s.height,{class:"journey-section section-type-"+t.num},e,t.colour)};let tt=-1;const vt=function(n,t,e){const a=t.x+e.width/2,s=n.append("g");tt++,s.append("line").attr("id","task"+tt).attr("x1",a).attr("y1",t.y).attr("x2",a).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),xt(s,{cx:a,cy:300+(5-t.score)*30,score:t.score});const l=Q();l.x=t.x,l.y=t.y,l.fill=t.fill,l.width=e.width,l.height=e.height,l.class="task task-type-"+t.num,l.rx=3,l.ry=3,G(s,l),t.x+14,ut(e)(t.task,s,l.x,l.y,l.width,l.height,{class:"task"},e,t.colour)},wt=function(n,t){G(n,{x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,class:"rect"}).lower()},St=function(){return{x:0,y:0,fill:void 0,"text-anchor":"start",width:100,height:100,textMargin:0,rx:0,ry:0}},Q=function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},ut=(function(){function n(s,h,l,p,y,g,_,m){const f=h.append("text").attr("x",l+y/2).attr("y",p+g/2+5).style("font-color",m).style("text-anchor","middle").text(s);a(f,_)}function t(s,h,l,p,y,g,_,m,f){const{taskFontSize:i,taskFontFamily:r}=m,c=s.split(/<br\s*\/?>/gi);for(let d=0;d<c.length;d++){const u=d*i-i*(c.length-1)/2,o=h.append("text").attr("x",l+y/2).attr("y",p).attr("fill",f).style("text-anchor","middle").style("font-size",i).style("font-family",r);o.append("tspan").attr("x",l+y/2).attr("dy",u).text(c[d]),o.attr("y",p+g/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),a(o,_)}}function e(s,h,l,p,y,g,_,m){const f=h.append("switch"),r=f.append("foreignObject").attr("x",l).attr("y",p).attr("width",y).attr("height",g).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");r.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(s),t(s,f,l,p,y,g,_,m),a(r,_)}function a(s,h){for(const l in h)l in h&&s.attr(l,h[l])}return function(s){return s.textPlacement==="fo"?e:s.textPlacement==="old"?n:t}})(),Et=function(n){n.append("defs").append("marker").attr("id","arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")};function pt(n,t){n.each(function(){var e=x.select(this),a=e.text().split(/(\s+|<br>)/).reverse(),s,h=[],l=1.1,p=e.attr("y"),y=parseFloat(e.attr("dy")),g=e.text(null).append("tspan").attr("x",0).attr("y",p).attr("dy",y+"em");for(let _=0;_<a.length;_++)s=a[a.length-1-_],h.push(s),g.text(h.join(" ").trim()),(g.node().getComputedTextLength()>t||s==="<br>")&&(h.pop(),g.text(h.join(" ").trim()),s==="<br>"?h=[""]:h=[s],g=e.append("tspan").attr("x",0).attr("y",p).attr("dy",l+"em").text(s))})}const $t=function(n,t,e,a){const s=e%mt-1,h=n.append("g");t.section=s,h.attr("class",(t.class?t.class+" ":"")+"timeline-node "+("section-"+s));const l=h.append("g"),p=h.append("g"),g=p.append("text").text(t.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(pt,t.width).node().getBBox(),_=a.fontSize&&a.fontSize.replace?a.fontSize.replace("px",""):a.fontSize;return t.height=g.height+_*1.1*.5+t.padding,t.height=Math.max(t.height,t.maxHeight),t.width=t.width+2*t.padding,p.attr("transform","translate("+t.width/2+", "+t.padding/2+")"),It(l,t,s),t},Tt=function(n,t,e){const a=n.append("g"),h=a.append("text").text(t.descr).attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle").call(pt,t.width).node().getBBox(),l=e.fontSize&&e.fontSize.replace?e.fontSize.replace("px",""):e.fontSize;return a.remove(),h.height+l*1.1*.5+t.padding},It=function(n,t,e){n.append("path").attr("id","node-"+t.id).attr("class","node-bkg node-"+t.type).attr("d",`M0 ${t.height-5} v${-t.height+10} q0,-5 5,-5 h${t.width-10} q5,0 5,5 v${t.height-5} H0 Z`),n.append("line").attr("class","node-line-"+e).attr("x1",0).attr("y1",t.height).attr("x2",t.width).attr("y2",t.height)},H={drawRect:G,drawCircle:bt,drawSection:kt,drawText:dt,drawLabel:_t,drawTask:vt,drawBackgroundRect:wt,getTextObj:St,getNoteRect:Q,initGraphics:Et,drawNode:$t,getVirtualNodeHeight:Tt},Nt=function(n,t,e,a){var s,h;const l=x.getConfig(),p=l.leftMargin??50;x.log$1.debug("timeline",a.db);const y=l.securityLevel;let g;y==="sandbox"&&(g=x.select("#i"+t));const m=(y==="sandbox"?x.select(g.nodes()[0].contentDocument.body):x.select("body")).select("#"+t);m.append("g");const f=a.db.getTasks(),i=a.db.getCommonDb().getDiagramTitle();x.log$1.debug("task",f),H.initGraphics(m);const r=a.db.getSections();x.log$1.debug("sections",r);let c=0,d=0,u=0,o=0,I=50+p,b=50;o=50;let $=0,W=!0;r.forEach(function(S){const w={number:$,descr:S,section:$,width:150,padding:20,maxHeight:c},T=H.getVirtualNodeHeight(m,w,l);x.log$1.debug("sectionHeight before draw",T),c=Math.max(c,T+20)});let C=0,P=0;x.log$1.debug("tasks.length",f.length);for(const[S,w]of f.entries()){const T={number:S,descr:w,section:w.section,width:150,padding:20,maxHeight:d},A=H.getVirtualNodeHeight(m,T,l);x.log$1.debug("taskHeight before draw",A),d=Math.max(d,A+20),C=Math.max(C,w.events.length);let z=0;for(let k=0;k<w.events.length;k++){const E={descr:w.events[k],section:w.section,number:w.section,width:150,padding:20,maxHeight:50};z+=H.getVirtualNodeHeight(m,E,l)}P=Math.max(P,z)}x.log$1.debug("maxSectionHeight before draw",c),x.log$1.debug("maxTaskHeight before draw",d),r&&r.length>0?r.forEach(S=>{const w=f.filter(k=>k.section===S),T={number:$,descr:S,section:$,width:200*Math.max(w.length,1)-50,padding:20,maxHeight:c};x.log$1.debug("sectionNode",T);const A=m.append("g"),z=H.drawNode(A,T,$,l);x.log$1.debug("sectionNode output",z),A.attr("transform",`translate(${I}, ${o})`),b+=c+50,w.length>0&&et(m,w,$,I,b,d,l,C,P,c,!1),I+=200*Math.max(w.length,1),b=o,$++}):(W=!1,et(m,f,$,I,b,d,l,C,P,c,!0));const B=m.node().getBBox();x.log$1.debug("bounds",B),i&&m.append("text").text(i).attr("x",B.width/2-p).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),u=W?c+d+150:d+100,m.append("g").attr("class","lineWrapper").append("line").attr("x1",p).attr("y1",u).attr("x2",B.width+3*p).attr("y2",u).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),x.setupGraphViewbox$1(void 0,m,((s=l.timeline)==null?void 0:s.padding)??50,((h=l.timeline)==null?void 0:h.useMaxWidth)??!1)},et=function(n,t,e,a,s,h,l,p,y,g,_){var m;for(const f of t){const i={descr:f.task,section:e,number:e,width:150,padding:20,maxHeight:h};x.log$1.debug("taskNode",i);const r=n.append("g").attr("class","taskWrapper"),d=H.drawNode(r,i,e,l).height;if(x.log$1.debug("taskHeight after draw",d),r.attr("transform",`translate(${a}, ${s})`),h=Math.max(h,d),f.events){const u=n.append("g").attr("class","lineWrapper");let o=h;s+=100,o=o+Mt(n,f.events,e,a,s,l),s-=100,u.append("line").attr("x1",a+190/2).attr("y1",s+h).attr("x2",a+190/2).attr("y2",s+h+(_?h:g)+y+120).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5")}a=a+200,_&&!((m=l.timeline)!=null&&m.disableMulticolor)&&e++}s=s-10},Mt=function(n,t,e,a,s,h){let l=0;const p=s;s=s+100;for(const y of t){const g={descr:y,section:e,number:e,width:150,padding:20,maxHeight:50};x.log$1.debug("eventNode",g);const _=n.append("g").attr("class","eventWrapper"),f=H.drawNode(_,g,e,h).height;l=l+f,_.attr("transform",`translate(${a}, ${s})`),s=s+10+f}return s=p,l},Lt={setConf:()=>{},draw:Nt},Pt=n=>{let t="";for(let e=0;e<n.THEME_COLOR_LIMIT;e++)n["lineColor"+e]=n["lineColor"+e]||n["cScaleInv"+e],x.isDark(n["lineColor"+e])?n["lineColor"+e]=x.lighten(n["lineColor"+e],20):n["lineColor"+e]=x.darken(n["lineColor"+e],20);for(let e=0;e<n.THEME_COLOR_LIMIT;e++){const a=""+(17-3*e);t+=`
|
|
7
|
+
.section-${e-1} rect, .section-${e-1} path, .section-${e-1} circle, .section-${e-1} path {
|
|
8
|
+
fill: ${n["cScale"+e]};
|
|
9
|
+
}
|
|
10
|
+
.section-${e-1} text {
|
|
11
|
+
fill: ${n["cScaleLabel"+e]};
|
|
12
|
+
}
|
|
13
|
+
.node-icon-${e-1} {
|
|
14
|
+
font-size: 40px;
|
|
15
|
+
color: ${n["cScaleLabel"+e]};
|
|
16
|
+
}
|
|
17
|
+
.section-edge-${e-1}{
|
|
18
|
+
stroke: ${n["cScale"+e]};
|
|
19
|
+
}
|
|
20
|
+
.edge-depth-${e-1}{
|
|
21
|
+
stroke-width: ${a};
|
|
22
|
+
}
|
|
23
|
+
.section-${e-1} line {
|
|
24
|
+
stroke: ${n["cScaleInv"+e]} ;
|
|
25
|
+
stroke-width: 3;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.lineWrapper line{
|
|
29
|
+
stroke: ${n["cScaleLabel"+e]} ;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.disabled, .disabled circle, .disabled text {
|
|
33
|
+
fill: lightgray;
|
|
34
|
+
}
|
|
35
|
+
.disabled text {
|
|
36
|
+
fill: #efefef;
|
|
37
|
+
}
|
|
38
|
+
`}return t},At=n=>`
|
|
39
|
+
.edge {
|
|
40
|
+
stroke-width: 3;
|
|
41
|
+
}
|
|
42
|
+
${Pt(n)}
|
|
43
|
+
.section-root rect, .section-root path, .section-root circle {
|
|
44
|
+
fill: ${n.git0};
|
|
45
|
+
}
|
|
46
|
+
.section-root text {
|
|
47
|
+
fill: ${n.gitBranchLabel0};
|
|
48
|
+
}
|
|
49
|
+
.icon-container {
|
|
50
|
+
height:100%;
|
|
51
|
+
display: flex;
|
|
52
|
+
justify-content: center;
|
|
53
|
+
align-items: center;
|
|
54
|
+
}
|
|
55
|
+
.edge {
|
|
56
|
+
fill: none;
|
|
57
|
+
}
|
|
58
|
+
.eventWrapper {
|
|
59
|
+
filter: brightness(120%);
|
|
60
|
+
}
|
|
61
|
+
`,Ht=At,Ct={db:ft,renderer:Lt,parser:yt,styles:Ht};exports.diagram=Ct;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function u(t){function i(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object."));var n=e.done;return Promise.resolve(e.value).then(function(s){return{value:s,done:n}})}return u=function(e){this.s=e,this.n=e.next},u.prototype={s:null,n:null,next:function(){return i(this.n.apply(this.s,arguments))},return:function(e){var n=this.s.return;return n===void 0?Promise.resolve({value:e,done:!0}):i(n.apply(this.s,arguments))},throw:function(e){var n=this.s.return;return n===void 0?Promise.reject(e):i(n.apply(this.s,arguments))}},new u(t)}const m=async(t,i,e=t.name,n)=>{const s=[],y=[];var d,c=!1,v=!1;try{for(var h,f=(function(r){var o,a,l,p=2;for(typeof Symbol<"u"&&(a=Symbol.asyncIterator,l=Symbol.iterator);p--;){if(a&&(o=r[a])!=null)return o.call(r);if(l&&(o=r[l])!=null)return new u(o.call(r));a="@@asyncIterator",l="@@iterator"}throw new TypeError("Object is not async iterable")})(t.values());c=!(h=await f.next()).done;c=!1){const r=h.value,o=`${e}/${r.name}`;r.kind==="file"?y.push(r.getFile().then(a=>(a.directoryHandle=t,a.handle=r,Object.defineProperty(a,"webkitRelativePath",{configurable:!0,enumerable:!0,get:()=>o})))):r.kind!=="directory"||!i||n&&n(r)||s.push(m(r,i,o,n))}}catch(r){v=!0,d=r}finally{try{c&&f.return!=null&&await f.return()}finally{if(v)throw d}}return[...(await Promise.all(s)).flat(),...await Promise.all(y)]};var w=async(t={})=>{t.recursive=t.recursive||!1;const i=await window.showDirectoryPicker({id:t.id,startIn:t.startIn});return m(i,t.recursive,void 0,t.skipDirectory)};exports.default=w;
|