@ashwin_droid/notion-stream 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (154) hide show
  1. package/dist/{_baseUniq-DSwfPiGC.js → _baseUniq-D32sgNIc.js} +1 -1
  2. package/dist/{_baseUniq-CT-tc-CG.mjs → _baseUniq-DCnQIx8G.mjs} +51 -51
  3. package/dist/{arc-BBnIBs2j.js → arc-B0uBm0sN.js} +1 -1
  4. package/dist/{arc-DmoYXidQ.mjs → arc-OrNNmmBm.mjs} +1 -1
  5. package/dist/{architecture-U656AL7Q-C0ZB2O9M.js → architecture-U656AL7Q-CLYqYgyv.js} +1 -1
  6. package/dist/{architecture-U656AL7Q-CMPtJMZ-.mjs → architecture-U656AL7Q-seCMyeyz.mjs} +1 -1
  7. package/dist/architectureDiagram-VXUJARFQ-BGsDPmi_.js +36 -0
  8. package/dist/{architectureDiagram-VXUJARFQ-BYzpbF40.mjs → architectureDiagram-VXUJARFQ-BmPLNLcs.mjs} +1846 -1850
  9. package/dist/{blockDiagram-VD42YOAC-DPVTCHn5.mjs → blockDiagram-VD42YOAC-CXKvT-9-.mjs} +913 -922
  10. package/dist/blockDiagram-VD42YOAC-NQhzFvsO.js +122 -0
  11. package/dist/c4Diagram-YG6GDRKO-CMXx6pyB.js +10 -0
  12. package/dist/{c4Diagram-YG6GDRKO-C2Y4q08p.mjs → c4Diagram-YG6GDRKO-DAGMHESb.mjs} +169 -170
  13. package/dist/{channel-DVpqhnow.mjs → channel-BXGyzQA6.mjs} +1 -1
  14. package/dist/channel-Dw8BXC8D.js +1 -0
  15. package/dist/chunk-4BX2VUAB-MnK73C0-.js +1 -0
  16. package/dist/chunk-4BX2VUAB-ZaWvd3Xe.mjs +8 -0
  17. package/dist/{chunk-55IACEB6-P_FVKIbW.js → chunk-55IACEB6-B1EpdpVW.js} +1 -1
  18. package/dist/{chunk-55IACEB6-Du1Simcj.mjs → chunk-55IACEB6-iKbZBHA5.mjs} +1 -1
  19. package/dist/chunk-B4BG7PRW-Bo_sfBKL.js +165 -0
  20. package/dist/{chunk-B4BG7PRW-BUKsa2yH.mjs → chunk-B4BG7PRW-DgqSow4f.mjs} +251 -252
  21. package/dist/{chunk-DI55MBZ5-C9h0qLVI.mjs → chunk-DI55MBZ5-BAHL-2VJ.mjs} +444 -456
  22. package/dist/chunk-DI55MBZ5-BuuMLI1S.js +220 -0
  23. package/dist/{chunk-FMBD7UC4-C08-zA06.mjs → chunk-FMBD7UC4-BE8MbNLe.mjs} +1 -1
  24. package/dist/{chunk-FMBD7UC4-48-zdz-1.js → chunk-FMBD7UC4-Cs1BNv23.js} +1 -1
  25. package/dist/chunk-QN33PNHL-MX1ZMWu-.js +1 -0
  26. package/dist/chunk-QN33PNHL-ZaWv5vaA.mjs +19 -0
  27. package/dist/{chunk-QZHKN3VN-DbO6TJSK.mjs → chunk-QZHKN3VN-D2X7PBDi.mjs} +1 -1
  28. package/dist/{chunk-QZHKN3VN-Dy2264ui.js → chunk-QZHKN3VN-Db6mVb9M.js} +1 -1
  29. package/dist/{chunk-TZMSLE5B-BPmI9i6R.mjs → chunk-TZMSLE5B-AMFXF6mq.mjs} +20 -20
  30. package/dist/{chunk-TZMSLE5B-COENnLAZ.js → chunk-TZMSLE5B-CzjtACDr.js} +1 -1
  31. package/dist/{classDiagram-v2-WZHVMYZB-mzvV1Ifg.mjs → classDiagram-2ON5EDUG-CPwvtUDj.mjs} +2 -2
  32. package/dist/{classDiagram-2ON5EDUG-CFFwYK87.js → classDiagram-2ON5EDUG-UNrH9bQo.js} +1 -1
  33. package/dist/{classDiagram-2ON5EDUG-mzvV1Ifg.mjs → classDiagram-v2-WZHVMYZB-CPwvtUDj.mjs} +2 -2
  34. package/dist/{classDiagram-v2-WZHVMYZB-CFFwYK87.js → classDiagram-v2-WZHVMYZB-UNrH9bQo.js} +1 -1
  35. package/dist/{clone-KtLCwiKH.mjs → clone-CV4F8CSW.mjs} +1 -1
  36. package/dist/clone-HVsPHeK3.js +1 -0
  37. package/dist/{code-block-37QAKDTI-sxlq94xm.js → code-block-37QAKDTI-38K5Mxo2.js} +1 -1
  38. package/dist/{code-block-37QAKDTI-CmykMxjQ.mjs → code-block-37QAKDTI-Q-OOsw6q.mjs} +1 -1
  39. package/dist/cose-bilkent-S5V4N54A-1B77PywG.js +1 -0
  40. package/dist/{cose-bilkent-S5V4N54A-BXcldnso.mjs → cose-bilkent-S5V4N54A-greBbyuM.mjs} +592 -589
  41. package/dist/cytoscape.esm-CNUX3VTg.js +321 -0
  42. package/dist/{cytoscape.esm-ZmItrg9y.mjs → cytoscape.esm-Cvf3sx9F.mjs} +56 -83
  43. package/dist/dagre-6UL2VRFP-DEQXyXKh.js +4 -0
  44. package/dist/dagre-6UL2VRFP-DN5Inkgr.mjs +443 -0
  45. package/dist/diagram-PSM6KHXK-C7tjFZpr.js +24 -0
  46. package/dist/{diagram-PSM6KHXK-DIV3jw9d.mjs → diagram-PSM6KHXK-D-GS1fTc.mjs} +45 -48
  47. package/dist/{diagram-QEK2KX5R-Q0M2_YtR.mjs → diagram-QEK2KX5R-DJXBxeH4.mjs} +10 -14
  48. package/dist/diagram-QEK2KX5R-Doa8ooC_.js +43 -0
  49. package/dist/diagram-S2PKOQOG-BN04h93a.js +24 -0
  50. package/dist/{diagram-S2PKOQOG-_WGA6s2-.mjs → diagram-S2PKOQOG-BuPevKqw.mjs} +22 -23
  51. package/dist/erDiagram-Q2GNP2WA-AS2vnQKc.js +60 -0
  52. package/dist/{erDiagram-Q2GNP2WA-CW0D_QGb.mjs → erDiagram-Q2GNP2WA-DxOmvmqL.mjs} +77 -78
  53. package/dist/flowDiagram-NV44I4VS-BChiRwcp.js +162 -0
  54. package/dist/{flowDiagram-NV44I4VS-DVQ8Ntc4.mjs → flowDiagram-NV44I4VS-Cs_jC87H.mjs} +442 -449
  55. package/dist/{ganttDiagram-JELNMOA3-Bk-dX6qT.mjs → ganttDiagram-JELNMOA3-02b_-xyZ.mjs} +1049 -1041
  56. package/dist/ganttDiagram-JELNMOA3-BGy1b6TD.js +267 -0
  57. package/dist/{gitGraph-F6HP7TQM-CsdwxYUE.mjs → gitGraph-F6HP7TQM-BWm0SBV4.mjs} +1 -1
  58. package/dist/{gitGraph-F6HP7TQM-DvIgo2TM.js → gitGraph-F6HP7TQM-DVfckSNX.js} +1 -1
  59. package/dist/gitGraphDiagram-NY62KEGX-CfzoE07P.mjs +699 -0
  60. package/dist/gitGraphDiagram-NY62KEGX-Cm9ywQoW.js +65 -0
  61. package/dist/{graph-C_T4ZBuC.mjs → graph-DEu7-ZhH.mjs} +8 -8
  62. package/dist/{graph-BNpx6ebg.js → graph-Dw_87ii6.js} +1 -1
  63. package/dist/index-BwYOYPeK.js +670 -0
  64. package/dist/{index-oe4HpmeG.mjs → index-DH3CVXwD.mjs} +22541 -22646
  65. package/dist/index.d.ts +1 -0
  66. package/dist/index.js +1 -1
  67. package/dist/index.mjs +3 -3
  68. package/dist/{info-NVLQJR56-BwFQRguW.js → info-NVLQJR56-BpKxONZx.js} +1 -1
  69. package/dist/info-NVLQJR56-MmJP3L6S.mjs +5 -0
  70. package/dist/{infoDiagram-WHAUD3N6-C-gzsm95.mjs → infoDiagram-WHAUD3N6-Bfsucvti.mjs} +2 -2
  71. package/dist/{infoDiagram-WHAUD3N6-CCb5k_S7.js → infoDiagram-WHAUD3N6-q-yX3_By.js} +1 -1
  72. package/dist/journeyDiagram-XKPGCS4Q-BqtyHvQF.js +139 -0
  73. package/dist/{journeyDiagram-XKPGCS4Q-DzkUL_YG.mjs → journeyDiagram-XKPGCS4Q-dFRLmnr-.mjs} +24 -26
  74. package/dist/kanban-definition-3W4ZIXB7-DeOl9Eme.mjs +719 -0
  75. package/dist/kanban-definition-3W4ZIXB7-DraMxv75.js +89 -0
  76. package/dist/{layout-CuWQnP5Y.js → layout-BKTUO8WZ.js} +1 -1
  77. package/dist/{layout-Cd98WJ7r.mjs → layout-CpL-hYTa.mjs} +22 -22
  78. package/dist/{linear-SU4e8MRt.mjs → linear-CLwIU3di.mjs} +20 -20
  79. package/dist/{linear-DFDw13y6.js → linear-DvM229Di.js} +1 -1
  80. package/dist/mermaid-4DMBBIKO-BpqXz0_U.mjs +4 -0
  81. package/dist/{mermaid-4DMBBIKO-BihEtyib.js → mermaid-4DMBBIKO-Cd15t2pT.js} +1 -1
  82. package/dist/mermaid-parser.core-BVlc9Lqd.js +128 -0
  83. package/dist/{mermaid-parser.core-C8Sxzqul.mjs → mermaid-parser.core-CLAapB2-.mjs} +3404 -3369
  84. package/dist/{min-C2k771MZ.mjs → min--ML-ONY_.mjs} +2 -2
  85. package/dist/{min-CppMRDFn.js → min-BQ4NUvNf.js} +1 -1
  86. package/dist/{mindmap-definition-VGOIOE7T-BUd354uH.mjs → mindmap-definition-VGOIOE7T-78K_EDCb.mjs} +170 -172
  87. package/dist/mindmap-definition-VGOIOE7T-ZHY70ZzV.js +68 -0
  88. package/dist/notion-stream.css +1 -0
  89. package/dist/{ordinal-C0oynhte.mjs → ordinal-B-KqvkJf.mjs} +1 -1
  90. package/dist/{packet-BFZMPI3H-Cz_A86d3.mjs → packet-BFZMPI3H-B34lFb6T.mjs} +1 -1
  91. package/dist/{packet-BFZMPI3H-CFx3kSkL.js → packet-BFZMPI3H-C9xcJQVN.js} +1 -1
  92. package/dist/{pie-7BOR55EZ-_1MqisBd.js → pie-7BOR55EZ-Bz_jfTd_.js} +1 -1
  93. package/dist/pie-7BOR55EZ-DW2Zgje5.mjs +5 -0
  94. package/dist/{pieDiagram-ADFJNKIX-Bg0_gu43.js → pieDiagram-ADFJNKIX-CKzchAXU.js} +2 -2
  95. package/dist/{pieDiagram-ADFJNKIX-lRs_rpwI.mjs → pieDiagram-ADFJNKIX-Ctp6QR7f.mjs} +21 -21
  96. package/dist/quadrantDiagram-AYHSOK5B-D2Rt32D2.js +7 -0
  97. package/dist/{quadrantDiagram-AYHSOK5B-D9kypJt6.mjs → quadrantDiagram-AYHSOK5B-D3U_Qicu.mjs} +230 -232
  98. package/dist/{radar-NHE76QYJ-B-PvZD0K.mjs → radar-NHE76QYJ-CO5ECFHq.mjs} +1 -1
  99. package/dist/{radar-NHE76QYJ-CdtC4C8F.js → radar-NHE76QYJ-DI4PJJjm.js} +1 -1
  100. package/dist/requirementDiagram-UZGBJVZJ-CSgb6U9N.js +64 -0
  101. package/dist/{requirementDiagram-UZGBJVZJ-B5ulaHjE.mjs → requirementDiagram-UZGBJVZJ-Da_yWSD1.mjs} +190 -192
  102. package/dist/sankeyDiagram-TZEHDZUN-C8jpBnM0.js +10 -0
  103. package/dist/{sankeyDiagram-TZEHDZUN-DprIPFbe.mjs → sankeyDiagram-TZEHDZUN-Dp3Eyl8Q.mjs} +189 -189
  104. package/dist/sequenceDiagram-WL72ISMW-BZJ7d_X4.js +145 -0
  105. package/dist/{sequenceDiagram-WL72ISMW-B4m4oag0.mjs → sequenceDiagram-WL72ISMW-yJKe02sV.mjs} +222 -229
  106. package/dist/{stateDiagram-FKZM4ZOC-BD4tnS-V.js → stateDiagram-FKZM4ZOC-Cfuygt_P.js} +1 -1
  107. package/dist/{stateDiagram-FKZM4ZOC-DjkdDbQ2.mjs → stateDiagram-FKZM4ZOC-z0IX85WL.mjs} +4 -4
  108. package/dist/{stateDiagram-v2-4FDKWEC3-AK86F3i6.mjs → stateDiagram-v2-4FDKWEC3-BDMFqSat.mjs} +2 -2
  109. package/dist/{stateDiagram-v2-4FDKWEC3-sybMoxOk.js → stateDiagram-v2-4FDKWEC3-BiriAQkj.js} +1 -1
  110. package/dist/{timeline-definition-IT6M3QCI-BFuQEeZP.mjs → timeline-definition-IT6M3QCI-BmEq-RM3.mjs} +217 -223
  111. package/dist/timeline-definition-IT6M3QCI-CBmpRgUM.js +61 -0
  112. package/dist/{treemap-KMMF4GRG-gtrnY16v.mjs → treemap-KMMF4GRG-IaHP18r_.mjs} +1 -1
  113. package/dist/{treemap-KMMF4GRG-DTnRa789.js → treemap-KMMF4GRG-qP0VzKwW.js} +1 -1
  114. package/dist/{xychartDiagram-PRI3JC2R-CjXiy6m0.mjs → xychartDiagram-PRI3JC2R-BSaI76KX.mjs} +7 -7
  115. package/dist/xychartDiagram-PRI3JC2R-CQgij0Fy.js +7 -0
  116. package/package.json +5 -5
  117. package/dist/architectureDiagram-VXUJARFQ-BPQoZmaM.js +0 -36
  118. package/dist/blockDiagram-VD42YOAC-Z3Fc3Bew.js +0 -122
  119. package/dist/c4Diagram-YG6GDRKO-LzDuCZ2V.js +0 -10
  120. package/dist/channel-6dUO0MQi.js +0 -1
  121. package/dist/chunk-4BX2VUAB-BwubFldI.js +0 -1
  122. package/dist/chunk-4BX2VUAB-DldMXCTt.mjs +0 -9
  123. package/dist/chunk-B4BG7PRW-CKX0VJ-S.js +0 -165
  124. package/dist/chunk-DI55MBZ5-CMq-O8k2.js +0 -220
  125. package/dist/chunk-QN33PNHL-B0sO38bZ.js +0 -1
  126. package/dist/chunk-QN33PNHL-B_PGnTkk.mjs +0 -20
  127. package/dist/clone-B0UaPT2Z.js +0 -1
  128. package/dist/cose-bilkent-S5V4N54A-BCaAPmuF.js +0 -1
  129. package/dist/cytoscape.esm-DkGgpG6d.js +0 -331
  130. package/dist/dagre-6UL2VRFP-By42zbLA.mjs +0 -446
  131. package/dist/dagre-6UL2VRFP-DCwfkcWi.js +0 -4
  132. package/dist/diagram-PSM6KHXK-hjXN9n1N.js +0 -24
  133. package/dist/diagram-QEK2KX5R-B04ODMim.js +0 -43
  134. package/dist/diagram-S2PKOQOG-BmCs4MZE.js +0 -24
  135. package/dist/erDiagram-Q2GNP2WA-4KtQUUuI.js +0 -60
  136. package/dist/flowDiagram-NV44I4VS-BwpfJE0U.js +0 -162
  137. package/dist/ganttDiagram-JELNMOA3-D7rI7u8B.js +0 -267
  138. package/dist/gitGraphDiagram-NY62KEGX-BDTsbSkO.mjs +0 -712
  139. package/dist/gitGraphDiagram-NY62KEGX-IQ8KriUw.js +0 -65
  140. package/dist/index-CkYZRBYn.js +0 -676
  141. package/dist/info-NVLQJR56-B5gDnSIT.mjs +0 -5
  142. package/dist/journeyDiagram-XKPGCS4Q-POnSekz9.js +0 -139
  143. package/dist/kanban-definition-3W4ZIXB7-BPr0_7wG.mjs +0 -720
  144. package/dist/kanban-definition-3W4ZIXB7-Bm064qrf.js +0 -89
  145. package/dist/mermaid-4DMBBIKO-DDxvQcE9.mjs +0 -4
  146. package/dist/mermaid-parser.core-BHAgLMGa.js +0 -128
  147. package/dist/mindmap-definition-VGOIOE7T-CV7bD4HY.js +0 -68
  148. package/dist/pie-7BOR55EZ-B0-atE_o.mjs +0 -5
  149. package/dist/quadrantDiagram-AYHSOK5B-B4gVakRV.js +0 -7
  150. package/dist/requirementDiagram-UZGBJVZJ-0zMPj-SD.js +0 -64
  151. package/dist/sankeyDiagram-TZEHDZUN-Cl8-L83T.js +0 -10
  152. package/dist/sequenceDiagram-WL72ISMW-DRQn7Fe4.js +0 -145
  153. package/dist/timeline-definition-IT6M3QCI-2X4dfyLj.js +0 -61
  154. package/dist/xychartDiagram-PRI3JC2R-BaFd1In8.js +0 -7
@@ -1,267 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index-CkYZRBYn.js"),Mt=require("./linear-DFDw13y6.js"),bn=require("./init-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 wn(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 Dn(t){return t}var Rt=1,te=2,fe=3,jt=4,Fe=1e-6;function Mn(t){return"translate("+t+",0)"}function Cn(t){return"translate(0,"+t+")"}function Sn(t){return e=>+t(e)}function Yn(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function Fn(){return!this.__axis}function Re(t,e){var n=[],r=null,i=null,o=6,u=6,m=3,F=typeof window<"u"&&window.devicePixelRatio>1?0:.5,M=t===Rt||t===jt?-1:1,k=t===jt||t===te?"x":"y",A=t===Rt||t===fe?Mn:Cn;function S(C){var Z=r??(e.ticks?e.ticks.apply(e,n):e.domain()),L=i??(e.tickFormat?e.tickFormat.apply(e,n):Dn),U=Math.max(o,0)+m,I=e.range(),N=+I[0]+F,W=+I[I.length-1]+F,R=(e.bandwidth?Yn:Sn)(e.copy(),F),X=C.selection?C.selection():C,p=X.selectAll(".domain").data([null]),g=X.selectAll(".tick").data(Z,e).order(),y=g.exit(),h=g.enter().append("g").attr("class","tick"),w=g.select("line"),x=g.select("text");p=p.merge(p.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),g=g.merge(h),w=w.merge(h.append("line").attr("stroke","currentColor").attr(k+"2",M*o)),x=x.merge(h.append("text").attr("fill","currentColor").attr(k,M*U).attr("dy",t===Rt?"0em":t===fe?"0.71em":"0.32em")),C!==X&&(p=p.transition(C),g=g.transition(C),w=w.transition(C),x=x.transition(C),y=y.transition(C).attr("opacity",Fe).attr("transform",function(T){return isFinite(T=R(T))?A(T+F):this.getAttribute("transform")}),h.attr("opacity",Fe).attr("transform",function(T){var v=this.parentNode.__axis;return A((v&&isFinite(v=v(T))?v:R(T))+F)})),y.remove(),p.attr("d",t===jt||t===te?u?"M"+M*u+","+N+"H"+F+"V"+W+"H"+M*u:"M"+F+","+N+"V"+W:u?"M"+N+","+M*u+"V"+F+"H"+W+"V"+M*u:"M"+N+","+F+"H"+W),g.attr("opacity",1).attr("transform",function(T){return A(R(T)+F)}),w.attr(k+"2",M*o),x.attr(k,M*U).text(L),X.filter(Fn).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===te?"start":t===jt?"end":"middle"),X.each(function(){this.__axis=R})}return S.scale=function(C){return arguments.length?(e=C,S):e},S.ticks=function(){return n=Array.from(arguments),S},S.tickArguments=function(C){return arguments.length?(n=C==null?[]:Array.from(C),S):n.slice()},S.tickValues=function(C){return arguments.length?(r=C==null?null:Array.from(C),S):r&&r.slice()},S.tickFormat=function(C){return arguments.length?(i=C,S):i},S.tickSize=function(C){return arguments.length?(o=u=+C,S):o},S.tickSizeInner=function(C){return arguments.length?(o=+C,S):o},S.tickSizeOuter=function(C){return arguments.length?(u=+C,S):u},S.tickPadding=function(C){return arguments.length?(m=+C,S):m},S.offset=function(C){return arguments.length?(F=+C,S):F},S}function Un(t){return Re(Rt,t)}function En(t){return Re(fe,t)}const In=Math.PI/180,An=180/Math.PI,qt=18,Ze=.96422,Be=1,qe=.82521,Ge=4/29,Ct=6/29,Xe=3*Ct*Ct,Ln=Ct*Ct*Ct;function Qe(t){if(t instanceof lt)return new lt(t.l,t.a,t.b,t.opacity);if(t instanceof dt)return Je(t);t instanceof s.Rgb||(t=s.rgbConvert(t));var e=ie(t.r),n=ie(t.g),r=ie(t.b),i=ee((.2225045*e+.7168786*n+.0606169*r)/Be),o,u;return e===n&&n===r?o=u=i:(o=ee((.4360747*e+.3850649*n+.1430804*r)/Ze),u=ee((.0139322*e+.0971045*n+.7141733*r)/qe)),new lt(116*i-16,500*(o-i),200*(i-u),t.opacity)}function Wn(t,e,n,r){return arguments.length===1?Qe(t):new lt(t,e,n,r??1)}function lt(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}s.define(lt,Wn,s.extend(s.Color$1,{brighter(t){return new lt(this.l+qt*(t??1),this.a,this.b,this.opacity)},darker(t){return new lt(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=Ze*ne(e),t=Be*ne(t),n=qe*ne(n),new s.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>Ln?Math.pow(t,1/3):t/Xe+Ge}function ne(t){return t>Ct?t*t*t:Xe*(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 $n(t){if(t instanceof dt)return new dt(t.h,t.c,t.l,t.opacity);if(t instanceof lt||(t=Qe(t)),t.a===0&&t.b===0)return new dt(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*An;return new dt(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function de(t,e,n,r){return arguments.length===1?$n(t):new dt(t,e,n,r??1)}function dt(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 lt(t.l,0,0,t.opacity);var e=t.h*In;return new lt(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}s.define(dt,de,s.extend(s.Color$1,{brighter(t){return new dt(this.h,this.c,this.l+qt*(t??1),this.opacity)},darker(t){return new dt(this.h,this.c,this.l-qt*(t??1),this.opacity)},rgb(){return Je(this).rgb()}}));function On(t){return function(e,n){var r=t((e=de(e)).h,(n=de(n)).h),i=s.nogamma(e.c,n.c),o=s.nogamma(e.l,n.l),u=s.nogamma(e.opacity,n.opacity);return function(m){return e.h=r(m),e.c=i(m),e.l=o(m),e.opacity=u(m),e+""}}}const Hn=On(s.hue);function Nn(t,e){t=t.slice();var n=0,r=t.length-1,i=t[n],o=t[r],u;return o<i&&(u=n,n=r,r=u,u=i,i=o,o=u),t[n]=e.floor(i),t[r]=e.ceil(o),t}const ae=new Date,se=new Date;function et(t,e,n,r){function i(o){return t(o=arguments.length===0?new Date:new Date(+o)),o}return i.floor=o=>(t(o=new Date(+o)),o),i.ceil=o=>(t(o=new Date(o-1)),e(o,1),t(o),o),i.round=o=>{const u=i(o),m=i.ceil(o);return o-u<m-o?u:m},i.offset=(o,u)=>(e(o=new Date(+o),u==null?1:Math.floor(u)),o),i.range=(o,u,m)=>{const F=[];if(o=i.ceil(o),m=m==null?1:Math.floor(m),!(o<u)||!(m>0))return F;let M;do F.push(M=new Date(+o)),e(o,m),t(o);while(M<o&&o<u);return F},i.filter=o=>et(u=>{if(u>=u)for(;t(u),!o(u);)u.setTime(u-1)},(u,m)=>{if(u>=u)if(m<0)for(;++m<=0;)for(;e(u,-1),!o(u););else for(;--m>=0;)for(;e(u,1),!o(u););}),n&&(i.count=(o,u)=>(ae.setTime(+o),se.setTime(+u),t(ae),t(se),Math.floor(n(ae,se))),i.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(r?u=>r(u)%o===0:u=>i.count(0,u)%o===0):i)),i}const Yt=et(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);Yt.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):Yt);Yt.range;const ht=1e3,ot=ht*60,mt=ot*60,gt=mt*24,ke=gt*7,Ue=gt*30,oe=gt*365,pt=et(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*ht)},(t,e)=>(e-t)/ht,t=>t.getUTCSeconds());pt.range;const Lt=et(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*ht)},(t,e)=>{t.setTime(+t+e*ot)},(t,e)=>(e-t)/ot,t=>t.getMinutes());Lt.range;const Pn=et(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*ot)},(t,e)=>(e-t)/ot,t=>t.getUTCMinutes());Pn.range;const Wt=et(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*ht-t.getMinutes()*ot)},(t,e)=>{t.setTime(+t+e*mt)},(t,e)=>(e-t)/mt,t=>t.getHours());Wt.range;const Vn=et(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*mt)},(t,e)=>(e-t)/mt,t=>t.getUTCHours());Vn.range;const vt=et(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*ot)/gt,t=>t.getDate()-1);vt.range;const pe=et(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/gt,t=>t.getUTCDate()-1);pe.range;const zn=et(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/gt,t=>Math.floor(t/gt));zn.range;function bt(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())*ot)/ke)}const Ht=bt(0),$t=bt(1),Ke=bt(2),tn=bt(3),Tt=bt(4),en=bt(5),nn=bt(6);Ht.range;$t.range;Ke.range;tn.range;Tt.range;en.range;nn.range;function xt(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=xt(0),Gt=xt(1),jn=xt(2),Rn=xt(3),Ft=xt(4),Zn=xt(5),Bn=xt(6);rn.range;Gt.range;jn.range;Rn.range;Ft.range;Zn.range;Bn.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 qn=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());qn.range;const yt=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());yt.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)});yt.range;const _t=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());_t.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)});_t.range;function Gn(t,e,n,r,i,o){const u=[[pt,1,ht],[pt,5,5*ht],[pt,15,15*ht],[pt,30,30*ht],[o,1,ot],[o,5,5*ot],[o,15,15*ot],[o,30,30*ot],[i,1,mt],[i,3,3*mt],[i,6,6*mt],[i,12,12*mt],[r,1,gt],[r,2,2*gt],[n,1,ke],[e,1,Ue],[e,3,3*Ue],[t,1,oe]];function m(M,k,A){const S=k<M;S&&([M,k]=[k,M]);const C=A&&typeof A.range=="function"?A:F(M,k,A),Z=C?C.range(M,+k+1):[];return S?Z.reverse():Z}function F(M,k,A){const S=Math.abs(k-M)/A,C=Mt.bisector(([,,U])=>U).right(u,S);if(C===u.length)return t.every(Mt.tickStep(M/oe,k/oe,A));if(C===0)return Yt.every(Math.max(Mt.tickStep(M,k,A),1));const[Z,L]=u[S/u[C-1][2]<u[C][2]/S?C-1:C];return Z.every(L)}return[m,F]}const[Xn,Qn]=Gn(yt,Ot,Ht,vt,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 ue(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 Et(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function Jn(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,o=t.days,u=t.shortDays,m=t.months,F=t.shortMonths,M=It(i),k=At(i),A=It(o),S=At(o),C=It(u),Z=At(u),L=It(m),U=At(m),I=It(F),N=At(F),W={a:b,A:Y,b:c,B:q,c:null,d:$e,e:$e,f:_r,g:Ur,G:Ir,H:pr,I:vr,j:Tr,L:an,m:br,M:xr,p:a,q:E,Q:Ne,s:Pe,S:wr,u:Dr,U:Mr,V:Cr,w:Sr,W:Yr,x:null,X:null,y:Fr,Y:Er,Z:Ar,"%":He},R={a:j,A:z,b:P,B:K,c:null,d:Oe,e:Oe,f:Or,g:qr,G:Xr,H:Lr,I:Wr,j:$r,L:on,m:Hr,M:Nr,p:O,q:it,Q:Ne,s:Pe,S:Pr,u:Vr,U:zr,V:jr,w:Rr,W:Zr,x:null,X:null,y:Br,Y:Gr,Z:Qr,"%":He},X={a:w,A:x,b:T,B:v,c:l,d:Le,e:Le,f:mr,g:Ae,G:Ie,H:We,I:We,j:lr,L:hr,m:ur,M:fr,p:h,q:cr,Q:yr,s:kr,S:dr,u:rr,U:ir,V:ar,w:nr,W:sr,x:d,X:_,y:Ae,Y:Ie,Z:or,"%":gr};W.x=p(n,W),W.X=p(r,W),W.c=p(e,W),R.x=p(n,R),R.X=p(r,R),R.c=p(e,R);function p(D,H){return function(V){var f=[],J=-1,$=0,Q=D.length,G,rt,at;for(V instanceof Date||(V=new Date(+V));++J<Q;)D.charCodeAt(J)===37&&(f.push(D.slice($,J)),(rt=Ee[G=D.charAt(++J)])!=null?G=D.charAt(++J):rt=G==="e"?" ":"0",(at=H[G])&&(G=at(V,rt)),f.push(G),$=J+1);return f.push(D.slice($,J)),f.join("")}}function g(D,H){return function(V){var f=Et(1900,void 0,1),J=y(f,D,V+="",0),$,Q;if(J!=V.length)return null;if("Q"in f)return new Date(f.Q);if("s"in f)return new Date(f.s*1e3+("L"in f?f.L:0));if(H&&!("Z"in f)&&(f.Z=0),"p"in f&&(f.H=f.H%12+f.p*12),f.m===void 0&&(f.m="q"in f?f.q:0),"V"in f){if(f.V<1||f.V>53)return null;"w"in f||(f.w=1),"Z"in f?($=ue(Et(f.y,0,1)),Q=$.getUTCDay(),$=Q>4||Q===0?Gt.ceil($):Gt($),$=pe.offset($,(f.V-1)*7),f.y=$.getUTCFullYear(),f.m=$.getUTCMonth(),f.d=$.getUTCDate()+(f.w+6)%7):($=ce(Et(f.y,0,1)),Q=$.getDay(),$=Q>4||Q===0?$t.ceil($):$t($),$=vt.offset($,(f.V-1)*7),f.y=$.getFullYear(),f.m=$.getMonth(),f.d=$.getDate()+(f.w+6)%7)}else("W"in f||"U"in f)&&("w"in f||(f.w="u"in f?f.u%7:"W"in f?1:0),Q="Z"in f?ue(Et(f.y,0,1)).getUTCDay():ce(Et(f.y,0,1)).getDay(),f.m=0,f.d="W"in f?(f.w+6)%7+f.W*7-(Q+5)%7:f.w+f.U*7-(Q+6)%7);return"Z"in f?(f.H+=f.Z/100|0,f.M+=f.Z%100,ue(f)):ce(f)}}function y(D,H,V,f){for(var J=0,$=H.length,Q=V.length,G,rt;J<$;){if(f>=Q)return-1;if(G=H.charCodeAt(J++),G===37){if(G=H.charAt(J++),rt=X[G in Ee?H.charAt(J++):G],!rt||(f=rt(D,V,f))<0)return-1}else if(G!=V.charCodeAt(f++))return-1}return f}function h(D,H,V){var f=M.exec(H.slice(V));return f?(D.p=k.get(f[0].toLowerCase()),V+f[0].length):-1}function w(D,H,V){var f=C.exec(H.slice(V));return f?(D.w=Z.get(f[0].toLowerCase()),V+f[0].length):-1}function x(D,H,V){var f=A.exec(H.slice(V));return f?(D.w=S.get(f[0].toLowerCase()),V+f[0].length):-1}function T(D,H,V){var f=I.exec(H.slice(V));return f?(D.m=N.get(f[0].toLowerCase()),V+f[0].length):-1}function v(D,H,V){var f=L.exec(H.slice(V));return f?(D.m=U.get(f[0].toLowerCase()),V+f[0].length):-1}function l(D,H,V){return y(D,e,H,V)}function d(D,H,V){return y(D,n,H,V)}function _(D,H,V){return y(D,r,H,V)}function b(D){return u[D.getDay()]}function Y(D){return o[D.getDay()]}function c(D){return F[D.getMonth()]}function q(D){return m[D.getMonth()]}function a(D){return i[+(D.getHours()>=12)]}function E(D){return 1+~~(D.getMonth()/3)}function j(D){return u[D.getUTCDay()]}function z(D){return o[D.getUTCDay()]}function P(D){return F[D.getUTCMonth()]}function K(D){return m[D.getUTCMonth()]}function O(D){return i[+(D.getUTCHours()>=12)]}function it(D){return 1+~~(D.getUTCMonth()/3)}return{format:function(D){var H=p(D+="",W);return H.toString=function(){return D},H},parse:function(D){var H=g(D+="",!1);return H.toString=function(){return D},H},utcFormat:function(D){var H=p(D+="",R);return H.toString=function(){return D},H},utcParse:function(D){var H=g(D+="",!0);return H.toString=function(){return D},H}}}var Ee={"-":"",_:" ",0:"0"},nt=/^\s*\d+/,Kn=/^%/,tr=/[\\^$*+?|[\]().{}]/g;function B(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(e)+i:i)}function er(t){return t.replace(tr,"\\$&")}function It(t){return new RegExp("^(?:"+t.map(er).join("|")+")","i")}function At(t){return new Map(t.map((e,n)=>[e.toLowerCase(),n]))}function nr(t,e,n){var r=nt.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function rr(t,e,n){var r=nt.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function ir(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function ar(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function sr(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Ie(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 or(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 cr(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 ur(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 Le(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function lr(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 We(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function fr(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function dr(t,e,n){var r=nt.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function hr(t,e,n){var r=nt.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function mr(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 gr(t,e,n){var r=Kn.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function yr(t,e,n){var r=nt.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function kr(t,e,n){var r=nt.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function $e(t,e){return B(t.getDate(),e,2)}function pr(t,e){return B(t.getHours(),e,2)}function vr(t,e){return B(t.getHours()%12||12,e,2)}function Tr(t,e){return B(1+vt.count(yt(t),t),e,3)}function an(t,e){return B(t.getMilliseconds(),e,3)}function _r(t,e){return an(t,e)+"000"}function br(t,e){return B(t.getMonth()+1,e,2)}function xr(t,e){return B(t.getMinutes(),e,2)}function wr(t,e){return B(t.getSeconds(),e,2)}function Dr(t){var e=t.getDay();return e===0?7:e}function Mr(t,e){return B(Ht.count(yt(t)-1,t),e,2)}function sn(t){var e=t.getDay();return e>=4||e===0?Tt(t):Tt.ceil(t)}function Cr(t,e){return t=sn(t),B(Tt.count(yt(t),t)+(yt(t).getDay()===4),e,2)}function Sr(t){return t.getDay()}function Yr(t,e){return B($t.count(yt(t)-1,t),e,2)}function Fr(t,e){return B(t.getFullYear()%100,e,2)}function Ur(t,e){return t=sn(t),B(t.getFullYear()%100,e,2)}function Er(t,e){return B(t.getFullYear()%1e4,e,4)}function Ir(t,e){var n=t.getDay();return t=n>=4||n===0?Tt(t):Tt.ceil(t),B(t.getFullYear()%1e4,e,4)}function Ar(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+B(e/60|0,"0",2)+B(e%60,"0",2)}function Oe(t,e){return B(t.getUTCDate(),e,2)}function Lr(t,e){return B(t.getUTCHours(),e,2)}function Wr(t,e){return B(t.getUTCHours()%12||12,e,2)}function $r(t,e){return B(1+pe.count(_t(t),t),e,3)}function on(t,e){return B(t.getUTCMilliseconds(),e,3)}function Or(t,e){return on(t,e)+"000"}function Hr(t,e){return B(t.getUTCMonth()+1,e,2)}function Nr(t,e){return B(t.getUTCMinutes(),e,2)}function Pr(t,e){return B(t.getUTCSeconds(),e,2)}function Vr(t){var e=t.getUTCDay();return e===0?7:e}function zr(t,e){return B(rn.count(_t(t)-1,t),e,2)}function cn(t){var e=t.getUTCDay();return e>=4||e===0?Ft(t):Ft.ceil(t)}function jr(t,e){return t=cn(t),B(Ft.count(_t(t),t)+(_t(t).getUTCDay()===4),e,2)}function Rr(t){return t.getUTCDay()}function Zr(t,e){return B(Gt.count(_t(t)-1,t),e,2)}function Br(t,e){return B(t.getUTCFullYear()%100,e,2)}function qr(t,e){return t=cn(t),B(t.getUTCFullYear()%100,e,2)}function Gr(t,e){return B(t.getUTCFullYear()%1e4,e,4)}function Xr(t,e){var n=t.getUTCDay();return t=n>=4||n===0?Ft(t):Ft.ceil(t),B(t.getUTCFullYear()%1e4,e,4)}function Qr(){return"+0000"}function He(){return"%"}function Ne(t){return+t}function Pe(t){return Math.floor(+t/1e3)}var Dt,Xt;Jr({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 Jr(t){return Dt=Jn(t),Xt=Dt.format,Dt.parse,Dt.utcFormat,Dt.utcParse,Dt}function Kr(t){return new Date(t)}function ti(t){return t instanceof Date?+t:+new Date(+t)}function un(t,e,n,r,i,o,u,m,F,M){var k=Mt.continuous(),A=k.invert,S=k.domain,C=M(".%L"),Z=M(":%S"),L=M("%I:%M"),U=M("%I %p"),I=M("%a %d"),N=M("%b %d"),W=M("%B"),R=M("%Y");function X(p){return(F(p)<p?C:m(p)<p?Z:u(p)<p?L:o(p)<p?U:r(p)<p?i(p)<p?I:N:n(p)<p?W:R)(p)}return k.invert=function(p){return new Date(A(p))},k.domain=function(p){return arguments.length?S(Array.from(p,ti)):S().map(Kr)},k.ticks=function(p){var g=S();return t(g[0],g[g.length-1],p??10)},k.tickFormat=function(p,g){return g==null?X:M(g)},k.nice=function(p){var g=S();return(!p||typeof p.range!="function")&&(p=e(g[0],g[g.length-1],p??10)),p?S(Nn(g,p)):k},k.copy=function(){return Mt.copy(k,un(t,e,n,r,i,o,u,m,F,M))},k}function ei(){return bn.initRange.apply(un(Xn,Qn,yt,Ot,Ht,vt,Wt,Lt,pt,Xt).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var ln={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(s.commonjsGlobal,function(){var n="day";return function(r,i,o){var u=function(M){return M.add(4-M.isoWeekday(),n)},m=i.prototype;m.isoWeekYear=function(){return u(this).year()},m.isoWeek=function(M){if(!this.$utils().u(M))return this.add(7*(M-this.isoWeek()),n);var k,A,S,C,Z=u(this),L=(k=this.isoWeekYear(),A=this.$u,S=(A?o.utc:o)().year(k).startOf("year"),C=4-S.isoWeekday(),S.isoWeekday()>4&&(C+=7),S.add(C,n));return Z.diff(L,"week")+1},m.isoWeekday=function(M){return this.$utils().u(M)?this.day()||7:this.day(this.day()%7?M:M-7)};var F=m.startOf;m.startOf=function(M,k){var A=this.$utils(),S=!!A.u(k)||k;return A.p(M)==="isoweek"?S?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):F.bind(this)(M,k)}}})})(ln);var ni=ln.exports;const ri=s.getDefaultExportFromCjs(ni);var fn={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(s.commonjsGlobal,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/,o=/\d\d/,u=/\d\d?/,m=/\d*[^-_:/,()\s\d]+/,F={},M=function(U){return(U=+U)+(U>68?1900:2e3)},k=function(U){return function(I){this[U]=+I}},A=[/[+-]\d\d:?(\d\d)?|Z/,function(U){(this.zone||(this.zone={})).offset=function(I){if(!I||I==="Z")return 0;var N=I.match(/([+-]|\d\d)/g),W=60*N[1]+(+N[2]||0);return W===0?0:N[0]==="+"?-W:W}(U)}],S=function(U){var I=F[U];return I&&(I.indexOf?I:I.s.concat(I.f))},C=function(U,I){var N,W=F.meridiem;if(W){for(var R=1;R<=24;R+=1)if(U.indexOf(W(R,0,I))>-1){N=R>12;break}}else N=U===(I?"pm":"PM");return N},Z={A:[m,function(U){this.afternoon=C(U,!1)}],a:[m,function(U){this.afternoon=C(U,!0)}],Q:[i,function(U){this.month=3*(U-1)+1}],S:[i,function(U){this.milliseconds=100*+U}],SS:[o,function(U){this.milliseconds=10*+U}],SSS:[/\d{3}/,function(U){this.milliseconds=+U}],s:[u,k("seconds")],ss:[u,k("seconds")],m:[u,k("minutes")],mm:[u,k("minutes")],H:[u,k("hours")],h:[u,k("hours")],HH:[u,k("hours")],hh:[u,k("hours")],D:[u,k("day")],DD:[o,k("day")],Do:[m,function(U){var I=F.ordinal,N=U.match(/\d+/);if(this.day=N[0],I)for(var W=1;W<=31;W+=1)I(W).replace(/\[|\]/g,"")===U&&(this.day=W)}],w:[u,k("week")],ww:[o,k("week")],M:[u,k("month")],MM:[o,k("month")],MMM:[m,function(U){var I=S("months"),N=(S("monthsShort")||I.map(function(W){return W.slice(0,3)})).indexOf(U)+1;if(N<1)throw new Error;this.month=N%12||N}],MMMM:[m,function(U){var I=S("months").indexOf(U)+1;if(I<1)throw new Error;this.month=I%12||I}],Y:[/[+-]?\d+/,k("year")],YY:[o,function(U){this.year=M(U)}],YYYY:[/\d{4}/,k("year")],Z:A,ZZ:A};function L(U){var I,N;I=U,N=F&&F.formats;for(var W=(U=I.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(w,x,T){var v=T&&T.toUpperCase();return x||N[T]||n[T]||N[v].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(l,d,_){return d||_.slice(1)})})).match(r),R=W.length,X=0;X<R;X+=1){var p=W[X],g=Z[p],y=g&&g[0],h=g&&g[1];W[X]=h?{regex:y,parser:h}:p.replace(/^\[|\]$/g,"")}return function(w){for(var x={},T=0,v=0;T<R;T+=1){var l=W[T];if(typeof l=="string")v+=l.length;else{var d=l.regex,_=l.parser,b=w.slice(v),Y=d.exec(b)[0];_.call(x,Y),w=w.replace(Y,"")}}return function(c){var q=c.afternoon;if(q!==void 0){var a=c.hours;q?a<12&&(c.hours+=12):a===12&&(c.hours=0),delete c.afternoon}}(x),x}}return function(U,I,N){N.p.customParseFormat=!0,U&&U.parseTwoDigitYear&&(M=U.parseTwoDigitYear);var W=I.prototype,R=W.parse;W.parse=function(X){var p=X.date,g=X.utc,y=X.args;this.$u=g;var h=y[1];if(typeof h=="string"){var w=y[2]===!0,x=y[3]===!0,T=w||x,v=y[2];x&&(v=y[2]),F=this.$locale(),!w&&v&&(F=N.Ls[v]),this.$d=function(b,Y,c,q){try{if(["x","X"].indexOf(Y)>-1)return new Date((Y==="X"?1e3:1)*b);var a=L(Y)(b),E=a.year,j=a.month,z=a.day,P=a.hours,K=a.minutes,O=a.seconds,it=a.milliseconds,D=a.zone,H=a.week,V=new Date,f=z||(E||j?1:V.getDate()),J=E||V.getFullYear(),$=0;E&&!j||($=j>0?j-1:V.getMonth());var Q,G=P||0,rt=K||0,at=O||0,kt=it||0;return D?new Date(Date.UTC(J,$,f,G,rt,at,kt+60*D.offset*1e3)):c?new Date(Date.UTC(J,$,f,G,rt,at,kt)):(Q=new Date(J,$,f,G,rt,at,kt),H&&(Q=q(Q).week(H).toDate()),Q)}catch{return new Date("")}}(p,h,g,N),this.init(),v&&v!==!0&&(this.$L=this.locale(v).$L),T&&p!=this.format(h)&&(this.$d=new Date("")),F={}}else if(h instanceof Array)for(var l=h.length,d=1;d<=l;d+=1){y[1]=h[d-1];var _=N.apply(this,y);if(_.isValid()){this.$d=_.$d,this.$L=_.$L,this.init();break}d===l&&(this.$d=new Date(""))}else R.call(this,X)}}})})(fn);var ii=fn.exports;const ai=s.getDefaultExportFromCjs(ii);var dn={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(s.commonjsGlobal,function(){return function(n,r){var i=r.prototype,o=i.format;i.format=function(u){var m=this,F=this.$locale();if(!this.isValid())return o.bind(this)(u);var M=this.$utils(),k=(u||"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((m.$M+1)/3);case"Do":return F.ordinal(m.$D);case"gggg":return m.weekYear();case"GGGG":return m.isoWeekYear();case"wo":return F.ordinal(m.week(),"W");case"w":case"ww":return M.s(m.week(),A==="w"?1:2,"0");case"W":case"WW":return M.s(m.isoWeek(),A==="W"?1:2,"0");case"k":case"kk":return M.s(String(m.$H===0?24:m.$H),A==="k"?1:2,"0");case"X":return Math.floor(m.$d.getTime()/1e3);case"x":return m.$d.getTime();case"z":return"["+m.offsetName()+"]";case"zzz":return"["+m.offsetName("long")+"]";default:return A}});return o.bind(this)(k)}}})})(dn);var si=dn.exports;const oi=s.getDefaultExportFromCjs(si);var hn={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(s.commonjsGlobal,function(){var n,r,i=1e3,o=6e4,u=36e5,m=864e5,F=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M=31536e6,k=2628e6,A=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,S={years:M,months:k,days:m,hours:u,minutes:o,seconds:i,milliseconds:1,weeks:6048e5},C=function(p){return p instanceof R},Z=function(p,g,y){return new R(p,y,g.$l)},L=function(p){return r.p(p)+"s"},U=function(p){return p<0},I=function(p){return U(p)?Math.ceil(p):Math.floor(p)},N=function(p){return Math.abs(p)},W=function(p,g){return p?U(p)?{negative:!0,format:""+N(p)+g}:{negative:!1,format:""+p+g}:{negative:!1,format:""}},R=function(){function p(y,h,w){var x=this;if(this.$d={},this.$l=w,y===void 0&&(this.$ms=0,this.parseFromMilliseconds()),h)return Z(y*S[L(h)],this);if(typeof y=="number")return this.$ms=y,this.parseFromMilliseconds(),this;if(typeof y=="object")return Object.keys(y).forEach(function(l){x.$d[L(l)]=y[l]}),this.calMilliseconds(),this;if(typeof y=="string"){var T=y.match(A);if(T){var v=T.slice(2).map(function(l){return l!=null?Number(l):0});return this.$d.years=v[0],this.$d.months=v[1],this.$d.weeks=v[2],this.$d.days=v[3],this.$d.hours=v[4],this.$d.minutes=v[5],this.$d.seconds=v[6],this.calMilliseconds(),this}}return this}var g=p.prototype;return g.calMilliseconds=function(){var y=this;this.$ms=Object.keys(this.$d).reduce(function(h,w){return h+(y.$d[w]||0)*S[w]},0)},g.parseFromMilliseconds=function(){var y=this.$ms;this.$d.years=I(y/M),y%=M,this.$d.months=I(y/k),y%=k,this.$d.days=I(y/m),y%=m,this.$d.hours=I(y/u),y%=u,this.$d.minutes=I(y/o),y%=o,this.$d.seconds=I(y/i),y%=i,this.$d.milliseconds=y},g.toISOString=function(){var y=W(this.$d.years,"Y"),h=W(this.$d.months,"M"),w=+this.$d.days||0;this.$d.weeks&&(w+=7*this.$d.weeks);var x=W(w,"D"),T=W(this.$d.hours,"H"),v=W(this.$d.minutes,"M"),l=this.$d.seconds||0;this.$d.milliseconds&&(l+=this.$d.milliseconds/1e3,l=Math.round(1e3*l)/1e3);var d=W(l,"S"),_=y.negative||h.negative||x.negative||T.negative||v.negative||d.negative,b=T.format||v.format||d.format?"T":"",Y=(_?"-":"")+"P"+y.format+h.format+x.format+b+T.format+v.format+d.format;return Y==="P"||Y==="-P"?"P0D":Y},g.toJSON=function(){return this.toISOString()},g.format=function(y){var h=y||"YYYY-MM-DDTHH:mm:ss",w={Y:this.$d.years,YY:r.s(this.$d.years,2,"0"),YYYY:r.s(this.$d.years,4,"0"),M:this.$d.months,MM:r.s(this.$d.months,2,"0"),D:this.$d.days,DD:r.s(this.$d.days,2,"0"),H:this.$d.hours,HH:r.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:r.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:r.s(this.$d.seconds,2,"0"),SSS:r.s(this.$d.milliseconds,3,"0")};return h.replace(F,function(x,T){return T||String(w[x])})},g.as=function(y){return this.$ms/S[L(y)]},g.get=function(y){var h=this.$ms,w=L(y);return w==="milliseconds"?h%=1e3:h=w==="weeks"?I(h/S[w]):this.$d[w],h||0},g.add=function(y,h,w){var x;return x=h?y*S[L(h)]:C(y)?y.$ms:Z(y,this).$ms,Z(this.$ms+x*(w?-1:1),this)},g.subtract=function(y,h){return this.add(y,h,!0)},g.locale=function(y){var h=this.clone();return h.$l=y,h},g.clone=function(){return Z(this.$ms,this)},g.humanize=function(y){return n().add(this.$ms,"ms").locale(this.$l).fromNow(!y)},g.valueOf=function(){return this.asMilliseconds()},g.milliseconds=function(){return this.get("milliseconds")},g.asMilliseconds=function(){return this.as("milliseconds")},g.seconds=function(){return this.get("seconds")},g.asSeconds=function(){return this.as("seconds")},g.minutes=function(){return this.get("minutes")},g.asMinutes=function(){return this.as("minutes")},g.hours=function(){return this.get("hours")},g.asHours=function(){return this.as("hours")},g.days=function(){return this.get("days")},g.asDays=function(){return this.as("days")},g.weeks=function(){return this.get("weeks")},g.asWeeks=function(){return this.as("weeks")},g.months=function(){return this.get("months")},g.asMonths=function(){return this.as("months")},g.years=function(){return this.get("years")},g.asYears=function(){return this.as("years")},p}(),X=function(p,g,y){return p.add(g.years()*y,"y").add(g.months()*y,"M").add(g.days()*y,"d").add(g.hours()*y,"h").add(g.minutes()*y,"m").add(g.seconds()*y,"s").add(g.milliseconds()*y,"ms")};return function(p,g,y){n=y,r=y().$utils(),y.duration=function(x,T){var v=y.locale();return Z(x,{$l:v},T)},y.isDuration=C;var h=g.prototype.add,w=g.prototype.subtract;g.prototype.add=function(x,T){return C(x)?X(this,x,1):h.bind(this)(x,T)},g.prototype.subtract=function(x,T){return C(x)?X(this,x,-1):w.bind(this)(x,T)}}})})(hn);var ci=hn.exports;const ui=s.getDefaultExportFromCjs(ci);var he=function(){var t=s.__name(function(v,l,d,_){for(d=d||{},_=v.length;_--;d[v[_]]=l);return d},"o"),e=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],n=[1,26],r=[1,27],i=[1,28],o=[1,29],u=[1,30],m=[1,31],F=[1,32],M=[1,33],k=[1,34],A=[1,9],S=[1,10],C=[1,11],Z=[1,12],L=[1,13],U=[1,14],I=[1,15],N=[1,16],W=[1,19],R=[1,20],X=[1,21],p=[1,22],g=[1,23],y=[1,25],h=[1,35],w={trace:s.__name(function(){},"trace"),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,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$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",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"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],[19,1],[19,1],[9,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],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:s.__name(function(l,d,_,b,Y,c,q){var a=c.length-1;switch(Y){case 1:return c[a-1];case 2:this.$=[];break;case 3:c[a-1].push(c[a]),this.$=c[a-1];break;case 4:case 5:this.$=c[a];break;case 6:case 7:this.$=[];break;case 8:b.setWeekday("monday");break;case 9:b.setWeekday("tuesday");break;case 10:b.setWeekday("wednesday");break;case 11:b.setWeekday("thursday");break;case 12:b.setWeekday("friday");break;case 13:b.setWeekday("saturday");break;case 14:b.setWeekday("sunday");break;case 15:b.setWeekend("friday");break;case 16:b.setWeekend("saturday");break;case 17:b.setDateFormat(c[a].substr(11)),this.$=c[a].substr(11);break;case 18:b.enableInclusiveEndDates(),this.$=c[a].substr(18);break;case 19:b.TopAxis(),this.$=c[a].substr(8);break;case 20:b.setAxisFormat(c[a].substr(11)),this.$=c[a].substr(11);break;case 21:b.setTickInterval(c[a].substr(13)),this.$=c[a].substr(13);break;case 22:b.setExcludes(c[a].substr(9)),this.$=c[a].substr(9);break;case 23:b.setIncludes(c[a].substr(9)),this.$=c[a].substr(9);break;case 24:b.setTodayMarker(c[a].substr(12)),this.$=c[a].substr(12);break;case 27:b.setDiagramTitle(c[a].substr(6)),this.$=c[a].substr(6);break;case 28:this.$=c[a].trim(),b.setAccTitle(this.$);break;case 29:case 30:this.$=c[a].trim(),b.setAccDescription(this.$);break;case 31:b.addSection(c[a].substr(8)),this.$=c[a].substr(8);break;case 33:b.addTask(c[a-1],c[a]),this.$="task";break;case 34:this.$=c[a-1],b.setClickEvent(c[a-1],c[a],null);break;case 35:this.$=c[a-2],b.setClickEvent(c[a-2],c[a-1],c[a]);break;case 36:this.$=c[a-2],b.setClickEvent(c[a-2],c[a-1],null),b.setLink(c[a-2],c[a]);break;case 37:this.$=c[a-3],b.setClickEvent(c[a-3],c[a-2],c[a-1]),b.setLink(c[a-3],c[a]);break;case 38:this.$=c[a-2],b.setClickEvent(c[a-2],c[a],null),b.setLink(c[a-2],c[a-1]);break;case 39:this.$=c[a-3],b.setClickEvent(c[a-3],c[a-1],c[a]),b.setLink(c[a-3],c[a-2]);break;case 40:this.$=c[a-1],b.setLink(c[a-1],c[a]);break;case 41:case 47:this.$=c[a-1]+" "+c[a];break;case 42:case 43:case 45:this.$=c[a-2]+" "+c[a-1]+" "+c[a];break;case 44:case 46:this.$=c[a-3]+" "+c[a-2]+" "+c[a-1]+" "+c[a];break}},"anonymous"),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:o,16:u,17:m,18:F,19:18,20:M,21:k,22:A,23:S,24:C,25:Z,26:L,27:U,28:I,29:N,30:W,31:R,33:X,35:p,36:g,37:24,38:y,40:h},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:36,11:17,12:n,13:r,14:i,15:o,16:u,17:m,18:F,19:18,20:M,21:k,22:A,23:S,24:C,25:Z,26:L,27:U,28:I,29:N,30:W,31:R,33:X,35:p,36:g,37:24,38:y,40:h},t(e,[2,5]),t(e,[2,6]),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]),t(e,[2,25]),t(e,[2,26]),t(e,[2,27]),{32:[1,37]},{34:[1,38]},t(e,[2,30]),t(e,[2,31]),t(e,[2,32]),{39:[1,39]},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]),t(e,[2,15]),t(e,[2,16]),{41:[1,40],43:[1,41]},t(e,[2,4]),t(e,[2,28]),t(e,[2,29]),t(e,[2,33]),t(e,[2,34],{42:[1,42],43:[1,43]}),t(e,[2,40],{41:[1,44]}),t(e,[2,35],{43:[1,45]}),t(e,[2,36]),t(e,[2,38],{42:[1,46]}),t(e,[2,37]),t(e,[2,39])],defaultActions:{},parseError:s.__name(function(l,d){if(d.recoverable)this.trace(l);else{var _=new Error(l);throw _.hash=d,_}},"parseError"),parse:s.__name(function(l){var d=this,_=[0],b=[],Y=[null],c=[],q=this.table,a="",E=0,j=0,z=2,P=1,K=c.slice.call(arguments,1),O=Object.create(this.lexer),it={yy:{}};for(var D in this.yy)Object.prototype.hasOwnProperty.call(this.yy,D)&&(it.yy[D]=this.yy[D]);O.setInput(l,it.yy),it.yy.lexer=O,it.yy.parser=this,typeof O.yylloc>"u"&&(O.yylloc={});var H=O.yylloc;c.push(H);var V=O.options&&O.options.ranges;typeof it.yy.parseError=="function"?this.parseError=it.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function f(st){_.length=_.length-2*st,Y.length=Y.length-st,c.length=c.length-st}s.__name(f,"popStack");function J(){var st;return st=b.pop()||O.lex()||P,typeof st!="number"&&(st instanceof Array&&(b=st,st=b.pop()),st=d.symbols_[st]||st),st}s.__name(J,"lex");for(var $,Q,G,rt,at={},kt,ct,Ye,zt;;){if(Q=_[_.length-1],this.defaultActions[Q]?G=this.defaultActions[Q]:(($===null||typeof $>"u")&&($=J()),G=q[Q]&&q[Q][$]),typeof G>"u"||!G.length||!G[0]){var Kt="";zt=[];for(kt in q[Q])this.terminals_[kt]&&kt>z&&zt.push("'"+this.terminals_[kt]+"'");O.showPosition?Kt="Parse error on line "+(E+1)+`:
2
- `+O.showPosition()+`
3
- Expecting `+zt.join(", ")+", got '"+(this.terminals_[$]||$)+"'":Kt="Parse error on line "+(E+1)+": Unexpected "+($==P?"end of input":"'"+(this.terminals_[$]||$)+"'"),this.parseError(Kt,{text:O.match,token:this.terminals_[$]||$,line:O.yylineno,loc:H,expected:zt})}if(G[0]instanceof Array&&G.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Q+", token: "+$);switch(G[0]){case 1:_.push($),Y.push(O.yytext),c.push(O.yylloc),_.push(G[1]),$=null,j=O.yyleng,a=O.yytext,E=O.yylineno,H=O.yylloc;break;case 2:if(ct=this.productions_[G[1]][1],at.$=Y[Y.length-ct],at._$={first_line:c[c.length-(ct||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(ct||1)].first_column,last_column:c[c.length-1].last_column},V&&(at._$.range=[c[c.length-(ct||1)].range[0],c[c.length-1].range[1]]),rt=this.performAction.apply(at,[a,j,E,it.yy,G[1],Y,c].concat(K)),typeof rt<"u")return rt;ct&&(_=_.slice(0,-1*ct*2),Y=Y.slice(0,-1*ct),c=c.slice(0,-1*ct)),_.push(this.productions_[G[1]][0]),Y.push(at.$),c.push(at._$),Ye=q[_[_.length-2]][_[_.length-1]],_.push(Ye);break;case 3:return!0}}return!0},"parse")},x=function(){var v={EOF:1,parseError:s.__name(function(d,_){if(this.yy.parser)this.yy.parser.parseError(d,_);else throw new Error(d)},"parseError"),setInput:s.__name(function(l,d){return this.yy=d||this.yy||{},this._input=l,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:s.__name(function(){var l=this._input[0];this.yytext+=l,this.yyleng++,this.offset++,this.match+=l,this.matched+=l;var d=l.match(/(?:\r\n?|\n).*/g);return d?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),l},"input"),unput:s.__name(function(l){var d=l.length,_=l.split(/(?:\r\n?|\n)/g);this._input=l+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-d),this.offset-=d;var b=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),_.length-1&&(this.yylineno-=_.length-1);var Y=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:_?(_.length===b.length?this.yylloc.first_column:0)+b[b.length-_.length].length-_[0].length:this.yylloc.first_column-d},this.options.ranges&&(this.yylloc.range=[Y[0],Y[0]+this.yyleng-d]),this.yyleng=this.yytext.length,this},"unput"),more:s.__name(function(){return this._more=!0,this},"more"),reject:s.__name(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},"reject"),less:s.__name(function(l){this.unput(this.match.slice(l))},"less"),pastInput:s.__name(function(){var l=this.matched.substr(0,this.matched.length-this.match.length);return(l.length>20?"...":"")+l.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s.__name(function(){var l=this.match;return l.length<20&&(l+=this._input.substr(0,20-l.length)),(l.substr(0,20)+(l.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s.__name(function(){var l=this.pastInput(),d=new Array(l.length+1).join("-");return l+this.upcomingInput()+`
5
- `+d+"^"},"showPosition"),test_match:s.__name(function(l,d){var _,b,Y;if(this.options.backtrack_lexer&&(Y={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&&(Y.yylloc.range=this.yylloc.range.slice(0))),b=l[0].match(/(?:\r\n?|\n).*/g),b&&(this.yylineno+=b.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:b?b[b.length-1].length-b[b.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+l[0].length},this.yytext+=l[0],this.match+=l[0],this.matches=l,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(l[0].length),this.matched+=l[0],_=this.performAction.call(this,this.yy,this,d,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),_)return _;if(this._backtrack){for(var c in Y)this[c]=Y[c];return!1}return!1},"test_match"),next:s.__name(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var l,d,_,b;this._more||(this.yytext="",this.match="");for(var Y=this._currentRules(),c=0;c<Y.length;c++)if(_=this._input.match(this.rules[Y[c]]),_&&(!d||_[0].length>d[0].length)){if(d=_,b=c,this.options.backtrack_lexer){if(l=this.test_match(_,Y[c]),l!==!1)return l;if(this._backtrack){d=!1;continue}else return!1}else if(!this.options.flex)break}return d?(l=this.test_match(d,Y[b]),l!==!1?l:!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})},"next"),lex:s.__name(function(){var d=this.next();return d||this.lex()},"lex"),begin:s.__name(function(d){this.conditionStack.push(d)},"begin"),popState:s.__name(function(){var d=this.conditionStack.length-1;return d>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:s.__name(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:s.__name(function(d){return d=this.conditionStack.length-1-Math.abs(d||0),d>=0?this.conditionStack[d]:"INITIAL"},"topState"),pushState:s.__name(function(d){this.begin(d)},"pushState"),stateStackSize:s.__name(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:s.__name(function(d,_,b,Y){switch(b){case 0:return this.begin("open_directive"),"open_directive";case 1:return this.begin("acc_title"),31;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),33;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 43;case 17:this.begin("callbackname");break;case 18:this.popState();break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 41;case 21:this.popState();break;case 22:return 42;case 23:this.begin("click");break;case 24:this.popState();break;case 25:return 40;case 26:return 4;case 27:return 22;case 28:return 23;case 29:return 24;case 30:return 25;case 31:return 26;case 32:return 28;case 33:return 27;case 34:return 29;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 20;case 43:return 21;case 44:return"date";case 45:return 30;case 46:return"accDescription";case 47:return 36;case 48:return 38;case 49:return 39;case 50:return":";case 51:return 6;case 52:return"INVALID"}},"anonymous"),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,/^(?:weekend\s+friday\b)/i,/^(?:weekend\s+saturday\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,51,52],inclusive:!0}}};return v}();w.lexer=x;function T(){this.yy={}}return s.__name(T,"Parser"),T.prototype=w,w.Parser=T,new T}();he.parser=he;var li=he;s.dayjs2.extend(ri);s.dayjs2.extend(ai);s.dayjs2.extend(oi);var Ve={friday:5,saturday:6},ut="",ve="",Te=void 0,_e="",Nt=[],Pt=[],be=new Map,xe=[],Qt=[],Ut="",we="",mn=["active","done","crit","milestone","vert"],De=[],Vt=!1,Me=!1,Ce="sunday",Jt="saturday",me=0,fi=s.__name(function(){xe=[],Qt=[],Ut="",De=[],Zt=0,ye=void 0,Bt=void 0,tt=[],ut="",ve="",we="",Te=void 0,_e="",Nt=[],Pt=[],Vt=!1,Me=!1,me=0,be=new Map,s.clear(),Ce="sunday",Jt="saturday"},"clear"),di=s.__name(function(t){ve=t},"setAxisFormat"),hi=s.__name(function(){return ve},"getAxisFormat"),mi=s.__name(function(t){Te=t},"setTickInterval"),gi=s.__name(function(){return Te},"getTickInterval"),yi=s.__name(function(t){_e=t},"setTodayMarker"),ki=s.__name(function(){return _e},"getTodayMarker"),pi=s.__name(function(t){ut=t},"setDateFormat"),vi=s.__name(function(){Vt=!0},"enableInclusiveEndDates"),Ti=s.__name(function(){return Vt},"endDatesAreInclusive"),_i=s.__name(function(){Me=!0},"enableTopAxis"),bi=s.__name(function(){return Me},"topAxisEnabled"),xi=s.__name(function(t){we=t},"setDisplayMode"),wi=s.__name(function(){return we},"getDisplayMode"),Di=s.__name(function(){return ut},"getDateFormat"),Mi=s.__name(function(t){Nt=t.toLowerCase().split(/[\s,]+/)},"setIncludes"),Ci=s.__name(function(){return Nt},"getIncludes"),Si=s.__name(function(t){Pt=t.toLowerCase().split(/[\s,]+/)},"setExcludes"),Yi=s.__name(function(){return Pt},"getExcludes"),Fi=s.__name(function(){return be},"getLinks"),Ui=s.__name(function(t){Ut=t,xe.push(t)},"addSection"),Ei=s.__name(function(){return xe},"getSections"),Ii=s.__name(function(){let t=ze();const e=10;let n=0;for(;!t&&n<e;)t=ze(),n++;return Qt=tt,Qt},"getTasks"),gn=s.__name(function(t,e,n,r){const i=t.format(e.trim()),o=t.format("YYYY-MM-DD");return r.includes(i)||r.includes(o)?!1:n.includes("weekends")&&(t.isoWeekday()===Ve[Jt]||t.isoWeekday()===Ve[Jt]+1)||n.includes(t.format("dddd").toLowerCase())?!0:n.includes(i)||n.includes(o)},"isInvalidDate"),Ai=s.__name(function(t){Ce=t},"setWeekday"),Li=s.__name(function(){return Ce},"getWeekday"),Wi=s.__name(function(t){Jt=t},"setWeekend"),yn=s.__name(function(t,e,n,r){if(!n.length||t.manualEndTime)return;let i;t.startTime instanceof Date?i=s.dayjs2(t.startTime):i=s.dayjs2(t.startTime,e,!0),i=i.add(1,"d");let o;t.endTime instanceof Date?o=s.dayjs2(t.endTime):o=s.dayjs2(t.endTime,e,!0);const[u,m]=$i(i,o,e,n,r);t.endTime=u.toDate(),t.renderEndTime=m},"checkTaskDates"),$i=s.__name(function(t,e,n,r,i){let o=!1,u=null;for(;t<=e;)o||(u=e.toDate()),o=gn(t,n,r,i),o&&(e=e.add(1,"d")),t=t.add(1,"d");return[e,u]},"fixTaskDates"),ge=s.__name(function(t,e,n){if(n=n.trim(),s.__name(m=>{const F=m.trim();return F==="x"||F==="X"},"isTimestampFormat")(e)&&/^\d+$/.test(n))return new Date(Number(n));const o=/^after\s+(?<ids>[\d\w- ]+)/.exec(n);if(o!==null){let m=null;for(const M of o.groups.ids.split(" ")){let k=wt(M);k!==void 0&&(!m||k.endTime>m.endTime)&&(m=k)}if(m)return m.endTime;const F=new Date;return F.setHours(0,0,0,0),F}let u=s.dayjs2(n,e.trim(),!0);if(u.isValid())return u.toDate();{s.log.debug("Invalid date:"+n),s.log.debug("With date format:"+e.trim());const m=new Date(n);if(m===void 0||isNaN(m.getTime())||m.getFullYear()<-1e4||m.getFullYear()>1e4)throw new Error("Invalid date:"+n);return m}},"getStartDate"),kn=s.__name(function(t){const e=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());return e!==null?[Number.parseFloat(e[1]),e[2]]:[NaN,"ms"]},"parseDuration"),pn=s.__name(function(t,e,n,r=!1){n=n.trim();const o=/^until\s+(?<ids>[\d\w- ]+)/.exec(n);if(o!==null){let k=null;for(const S of o.groups.ids.split(" ")){let C=wt(S);C!==void 0&&(!k||C.startTime<k.startTime)&&(k=C)}if(k)return k.startTime;const A=new Date;return A.setHours(0,0,0,0),A}let u=s.dayjs2(n,e.trim(),!0);if(u.isValid())return r&&(u=u.add(1,"d")),u.toDate();let m=s.dayjs2(t);const[F,M]=kn(n);if(!Number.isNaN(F)){const k=m.add(F,M);k.isValid()&&(m=k)}return m.toDate()},"getEndDate"),Zt=0,St=s.__name(function(t){return t===void 0?(Zt=Zt+1,"task"+Zt):t},"parseId"),Oi=s.__name(function(t,e){let n;e.substr(0,1)===":"?n=e.substr(1,e.length):n=e;const r=n.split(","),i={};Se(r,i,mn);for(let u=0;u<r.length;u++)r[u]=r[u].trim();let o="";switch(r.length){case 1:i.id=St(),i.startTime=t.endTime,o=r[0];break;case 2:i.id=St(),i.startTime=ge(void 0,ut,r[0]),o=r[1];break;case 3:i.id=St(r[0]),i.startTime=ge(void 0,ut,r[1]),o=r[2];break}return o&&(i.endTime=pn(i.startTime,ut,o,Vt),i.manualEndTime=s.dayjs2(o,"YYYY-MM-DD",!0).isValid(),yn(i,ut,Pt,Nt)),i},"compileData"),Hi=s.__name(function(t,e){let n;e.substr(0,1)===":"?n=e.substr(1,e.length):n=e;const r=n.split(","),i={};Se(r,i,mn);for(let o=0;o<r.length;o++)r[o]=r[o].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},"parseData"),ye,Bt,tt=[],vn={},Ni=s.__name(function(t,e){const n={section:Ut,type:Ut,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:e},task:t,classes:[]},r=Hi(Bt,e);n.raw.startTime=r.startTime,n.raw.endTime=r.endTime,n.id=r.id,n.prevTaskId=Bt,n.active=r.active,n.done=r.done,n.crit=r.crit,n.milestone=r.milestone,n.vert=r.vert,n.order=me,me++;const i=tt.push(n);Bt=n.id,vn[n.id]=i-1},"addTask"),wt=s.__name(function(t){const e=vn[t];return tt[e]},"findTaskById"),Pi=s.__name(function(t,e){const n={section:Ut,type:Ut,description:t,task:t,classes:[]},r=Oi(ye,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,n.vert=r.vert,ye=n,Qt.push(n)},"addTaskOrg"),ze=s.__name(function(){const t=s.__name(function(n){const r=tt[n];let i="";switch(tt[n].raw.startTime.type){case"prevTaskEnd":{const o=wt(r.prevTaskId);r.startTime=o.endTime;break}case"getStartDate":i=ge(void 0,ut,tt[n].raw.startTime.startData),i&&(tt[n].startTime=i);break}return tt[n].startTime&&(tt[n].endTime=pn(tt[n].startTime,ut,tt[n].raw.endTime.data,Vt),tt[n].endTime&&(tt[n].processed=!0,tt[n].manualEndTime=s.dayjs2(tt[n].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),yn(tt[n],ut,Pt,Nt))),tt[n].processed},"compileTask");let e=!0;for(const[n,r]of tt.entries())t(n),e=e&&r.processed;return e},"compileTasks"),Vi=s.__name(function(t,e){let n=e;s.getConfig2().securityLevel!=="loose"&&(n=s.sanitizeUrl_1(e)),t.split(",").forEach(function(r){wt(r)!==void 0&&(_n(r,()=>{window.open(n,"_self")}),be.set(r,n))}),Tn(t,"clickable")},"setLink"),Tn=s.__name(function(t,e){t.split(",").forEach(function(n){let r=wt(n);r!==void 0&&r.classes.push(e)})},"setClass"),zi=s.__name(function(t,e,n){if(s.getConfig2().securityLevel!=="loose"||e===void 0)return;let r=[];if(typeof n=="string"){r=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let o=0;o<r.length;o++){let u=r[o].trim();u.startsWith('"')&&u.endsWith('"')&&(u=u.substr(1,u.length-2)),r[o]=u}}r.length===0&&r.push(t),wt(t)!==void 0&&_n(t,()=>{s.utils_default.runFunc(e,...r)})},"setClickFun"),_n=s.__name(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()})})},"pushFun"),ji=s.__name(function(t,e,n){t.split(",").forEach(function(r){zi(r,e,n)}),Tn(t,"clickable")},"setClickEvent"),Ri=s.__name(function(t){De.forEach(function(e){e(t)})},"bindFunctions"),Zi={getConfig:s.__name(()=>s.getConfig2().gantt,"getConfig"),clear:fi,setDateFormat:pi,getDateFormat:Di,enableInclusiveEndDates:vi,endDatesAreInclusive:Ti,enableTopAxis:_i,topAxisEnabled:bi,setAxisFormat:di,getAxisFormat:hi,setTickInterval:mi,getTickInterval:gi,setTodayMarker:yi,getTodayMarker:ki,setAccTitle:s.setAccTitle,getAccTitle:s.getAccTitle,setDiagramTitle:s.setDiagramTitle,getDiagramTitle:s.getDiagramTitle,setDisplayMode:xi,getDisplayMode:wi,setAccDescription:s.setAccDescription,getAccDescription:s.getAccDescription,addSection:Ui,getSections:Ei,getTasks:Ii,addTask:Ni,findTaskById:wt,addTaskOrg:Pi,setIncludes:Mi,getIncludes:Ci,setExcludes:Si,getExcludes:Yi,setClickEvent:ji,setLink:Vi,getLinks:Fi,bindFunctions:Ri,parseDuration:kn,isInvalidDate:gn,setWeekday:Ai,getWeekday:Li,setWeekend:Wi};function Se(t,e,n){let r=!0;for(;r;)r=!1,n.forEach(function(i){const o="^\\s*"+i+"\\s*$",u=new RegExp(o);t[0].match(u)&&(e[i]=!0,t.shift(1),r=!0)})}s.__name(Se,"getTaskTags");s.dayjs2.extend(ui);var Bi=s.__name(function(){s.log.debug("Something is calling, setConf, remove the call")},"setConf"),je={monday:$t,tuesday:Ke,wednesday:tn,thursday:Tt,friday:en,saturday:nn,sunday:Ht},qi=s.__name((t,e)=>{let n=[...t].map(()=>-1/0),r=[...t].sort((o,u)=>o.startTime-u.startTime||o.order-u.order),i=0;for(const o of r)for(let u=0;u<n.length;u++)if(o.startTime>=n[u]){n[u]=o.endTime,o.order=u+e,u>i&&(i=u);break}return i},"getMaxIntersections"),ft,le=1e4,Gi=s.__name(function(t,e,n,r){const i=s.getConfig2().gantt,o=s.getConfig2().securityLevel;let u;o==="sandbox"&&(u=s.select("#i"+e));const m=o==="sandbox"?s.select(u.nodes()[0].contentDocument.body):s.select("body"),F=o==="sandbox"?u.nodes()[0].contentDocument:document,M=F.getElementById(e);ft=M.parentElement.offsetWidth,ft===void 0&&(ft=1200),i.useWidth!==void 0&&(ft=i.useWidth);const k=r.db.getTasks();let A=[];for(const h of k)A.push(h.type);A=y(A);const S={};let C=2*i.topPadding;if(r.db.getDisplayMode()==="compact"||i.displayMode==="compact"){const h={};for(const x of k)h[x.section]===void 0?h[x.section]=[x]:h[x.section].push(x);let w=0;for(const x of Object.keys(h)){const T=qi(h[x],w)+1;w+=T,C+=T*(i.barHeight+i.barGap),S[x]=T}}else{C+=k.length*(i.barHeight+i.barGap);for(const h of A)S[h]=k.filter(w=>w.type===h).length}M.setAttribute("viewBox","0 0 "+ft+" "+C);const Z=m.select(`[id="${e}"]`),L=ei().domain([wn(k,function(h){return h.startTime}),xn(k,function(h){return h.endTime})]).rangeRound([0,ft-i.leftPadding-i.rightPadding]);function U(h,w){const x=h.startTime,T=w.startTime;let v=0;return x>T?v=1:x<T&&(v=-1),v}s.__name(U,"taskCompare"),k.sort(U),I(k,ft,C),s.configureSvgSize(Z,C,ft,i.useMaxWidth),Z.append("text").text(r.db.getDiagramTitle()).attr("x",ft/2).attr("y",i.titleTopMargin).attr("class","titleText");function I(h,w,x){const T=i.barHeight,v=T+i.barGap,l=i.topPadding,d=i.leftPadding,_=Mt.linear().domain([0,A.length]).range(["#00B9FA","#F95002"]).interpolate(Hn);W(v,l,d,w,x,h,r.db.getExcludes(),r.db.getIncludes()),X(d,l,w,x),N(h,v,l,d,T,_,w),p(v,l),g(d,l,w,x)}s.__name(I,"makeGantt");function N(h,w,x,T,v,l,d){h.sort((a,E)=>a.vert===E.vert?0:a.vert?1:-1);const b=[...new Set(h.map(a=>a.order))].map(a=>h.find(E=>E.order===a));Z.append("g").selectAll("rect").data(b).enter().append("rect").attr("x",0).attr("y",function(a,E){return E=a.order,E*w+x-2}).attr("width",function(){return d-i.rightPadding/2}).attr("height",w).attr("class",function(a){for(const[E,j]of A.entries())if(a.type===j)return"section section"+E%i.numberSectionStyles;return"section section0"}).enter();const Y=Z.append("g").selectAll("rect").data(h).enter(),c=r.db.getLinks();if(Y.append("rect").attr("id",function(a){return a.id}).attr("rx",3).attr("ry",3).attr("x",function(a){return a.milestone?L(a.startTime)+T+.5*(L(a.endTime)-L(a.startTime))-.5*v:L(a.startTime)+T}).attr("y",function(a,E){return E=a.order,a.vert?i.gridLineStartPadding:E*w+x}).attr("width",function(a){return a.milestone?v:a.vert?.08*v:L(a.renderEndTime||a.endTime)-L(a.startTime)}).attr("height",function(a){return a.vert?k.length*(i.barHeight+i.barGap)+i.barHeight*2:v}).attr("transform-origin",function(a,E){return E=a.order,(L(a.startTime)+T+.5*(L(a.endTime)-L(a.startTime))).toString()+"px "+(E*w+x+.5*v).toString()+"px"}).attr("class",function(a){const E="task";let j="";a.classes.length>0&&(j=a.classes.join(" "));let z=0;for(const[K,O]of A.entries())a.type===O&&(z=K%i.numberSectionStyles);let P="";return a.active?a.crit?P+=" activeCrit":P=" active":a.done?a.crit?P=" doneCrit":P=" done":a.crit&&(P+=" crit"),P.length===0&&(P=" task"),a.milestone&&(P=" milestone "+P),a.vert&&(P=" vert "+P),P+=z,P+=" "+j,E+P}),Y.append("text").attr("id",function(a){return a.id+"-text"}).text(function(a){return a.task}).attr("font-size",i.fontSize).attr("x",function(a){let E=L(a.startTime),j=L(a.renderEndTime||a.endTime);if(a.milestone&&(E+=.5*(L(a.endTime)-L(a.startTime))-.5*v,j=E+v),a.vert)return L(a.startTime)+T;const z=this.getBBox().width;return z>j-E?j+z+1.5*i.leftPadding>d?E+T-5:j+T+5:(j-E)/2+E+T}).attr("y",function(a,E){return a.vert?i.gridLineStartPadding+k.length*(i.barHeight+i.barGap)+60:(E=a.order,E*w+i.barHeight/2+(i.fontSize/2-2)+x)}).attr("text-height",v).attr("class",function(a){const E=L(a.startTime);let j=L(a.endTime);a.milestone&&(j=E+v);const z=this.getBBox().width;let P="";a.classes.length>0&&(P=a.classes.join(" "));let K=0;for(const[it,D]of A.entries())a.type===D&&(K=it%i.numberSectionStyles);let O="";return a.active&&(a.crit?O="activeCritText"+K:O="activeText"+K),a.done?a.crit?O=O+" doneCritText"+K:O=O+" doneText"+K:a.crit&&(O=O+" critText"+K),a.milestone&&(O+=" milestoneText"),a.vert&&(O+=" vertText"),z>j-E?j+z+1.5*i.leftPadding>d?P+" taskTextOutsideLeft taskTextOutside"+K+" "+O:P+" taskTextOutsideRight taskTextOutside"+K+" "+O+" width-"+z:P+" taskText taskText"+K+" "+O+" width-"+z}),s.getConfig2().securityLevel==="sandbox"){let a;a=s.select("#i"+e);const E=a.nodes()[0].contentDocument;Y.filter(function(j){return c.has(j.id)}).each(function(j){var z=E.querySelector("#"+j.id),P=E.querySelector("#"+j.id+"-text");const K=z.parentNode;var O=E.createElement("a");O.setAttribute("xlink:href",c.get(j.id)),O.setAttribute("target","_top"),K.appendChild(O),O.appendChild(z),O.appendChild(P)})}}s.__name(N,"drawRects");function W(h,w,x,T,v,l,d,_){if(d.length===0&&_.length===0)return;let b,Y;for(const{startTime:z,endTime:P}of l)(b===void 0||z<b)&&(b=z),(Y===void 0||P>Y)&&(Y=P);if(!b||!Y)return;if(s.dayjs2(Y).diff(s.dayjs2(b),"year")>5){s.log.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 c=r.db.getDateFormat(),q=[];let a=null,E=s.dayjs2(b);for(;E.valueOf()<=Y;)r.db.isInvalidDate(E,c,d,_)?a?a.end=E:a={start:E,end:E}:a&&(q.push(a),a=null),E=E.add(1,"d");Z.append("g").selectAll("rect").data(q).enter().append("rect").attr("id",z=>"exclude-"+z.start.format("YYYY-MM-DD")).attr("x",z=>L(z.start.startOf("day"))+x).attr("y",i.gridLineStartPadding).attr("width",z=>L(z.end.endOf("day"))-L(z.start.startOf("day"))).attr("height",v-w-i.gridLineStartPadding).attr("transform-origin",function(z,P){return(L(z.start)+x+.5*(L(z.end)-L(z.start))).toString()+"px "+(P*h+.5*v).toString()+"px"}).attr("class","exclude-range")}s.__name(W,"drawExcludeDays");function R(h,w,x,T){if(x<=0||h>w)return 1/0;const v=w-h,l=s.dayjs2.duration({[T??"day"]:x}).asMilliseconds();return l<=0?1/0:Math.ceil(v/l)}s.__name(R,"getEstimatedTickCount");function X(h,w,x,T){const v=r.db.getDateFormat(),l=r.db.getAxisFormat();let d;l?d=l:v==="D"?d="%d":d=i.axisFormat??"%Y-%m-%d";let _=En(L).tickSize(-T+w+i.gridLineStartPadding).tickFormat(Xt(d));const Y=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(r.db.getTickInterval()||i.tickInterval);if(Y!==null){const c=parseInt(Y[1],10);if(isNaN(c)||c<=0)s.log.warn(`Invalid tick interval value: "${Y[1]}". Skipping custom tick interval.`);else{const q=Y[2],a=r.db.getWeekday()||i.weekday,E=L.domain(),j=E[0],z=E[1],P=R(j,z,c,q);if(P>le)s.log.warn(`The tick interval "${c}${q}" would generate ${P} ticks, which exceeds the maximum allowed (${le}). This may indicate an invalid date or time range. Skipping custom tick interval.`);else switch(q){case"millisecond":_.ticks(Yt.every(c));break;case"second":_.ticks(pt.every(c));break;case"minute":_.ticks(Lt.every(c));break;case"hour":_.ticks(Wt.every(c));break;case"day":_.ticks(vt.every(c));break;case"week":_.ticks(je[a].every(c));break;case"month":_.ticks(Ot.every(c));break}}}if(Z.append("g").attr("class","grid").attr("transform","translate("+h+", "+(T-50)+")").call(_).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 c=Un(L).tickSize(-T+w+i.gridLineStartPadding).tickFormat(Xt(d));if(Y!==null){const q=parseInt(Y[1],10);if(isNaN(q)||q<=0)s.log.warn(`Invalid tick interval value: "${Y[1]}". Skipping custom tick interval.`);else{const a=Y[2],E=r.db.getWeekday()||i.weekday,j=L.domain(),z=j[0],P=j[1];if(R(z,P,q,a)<=le)switch(a){case"millisecond":c.ticks(Yt.every(q));break;case"second":c.ticks(pt.every(q));break;case"minute":c.ticks(Lt.every(q));break;case"hour":c.ticks(Wt.every(q));break;case"day":c.ticks(vt.every(q));break;case"week":c.ticks(je[E].every(q));break;case"month":c.ticks(Ot.every(q));break}}}Z.append("g").attr("class","grid").attr("transform","translate("+h+", "+w+")").call(c).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}s.__name(X,"makeGrid");function p(h,w){let x=0;const T=Object.keys(S).map(v=>[v,S[v]]);Z.append("g").selectAll("text").data(T).enter().append(function(v){const l=v[0].split(s.common_default.lineBreakRegex),d=-(l.length-1)/2,_=F.createElementNS("http://www.w3.org/2000/svg","text");_.setAttribute("dy",d+"em");for(const[b,Y]of l.entries()){const c=F.createElementNS("http://www.w3.org/2000/svg","tspan");c.setAttribute("alignment-baseline","central"),c.setAttribute("x","10"),b>0&&c.setAttribute("dy","1em"),c.textContent=Y,_.appendChild(c)}return _}).attr("x",10).attr("y",function(v,l){if(l>0)for(let d=0;d<l;d++)return x+=T[l-1][1],v[1]*h/2+x*h+w;else return v[1]*h/2+w}).attr("font-size",i.sectionFontSize).attr("class",function(v){for(const[l,d]of A.entries())if(v[0]===d)return"sectionTitle sectionTitle"+l%i.numberSectionStyles;return"sectionTitle"})}s.__name(p,"vertLabels");function g(h,w,x,T){const v=r.db.getTodayMarker();if(v==="off")return;const l=Z.append("g").attr("class","today"),d=new Date,_=l.append("line");_.attr("x1",L(d)+h).attr("x2",L(d)+h).attr("y1",i.titleTopMargin).attr("y2",T-i.titleTopMargin).attr("class","today"),v!==""&&_.attr("style",v.replace(/,/g,";"))}s.__name(g,"drawToday");function y(h){const w={},x=[];for(let T=0,v=h.length;T<v;++T)Object.prototype.hasOwnProperty.call(w,h[T])||(w[h[T]]=!0,x.push(h[T]));return x}s.__name(y,"checkUnique")},"draw"),Xi={setConf:Bi,draw:Gi},Qi=s.__name(t=>`
7
- .mermaid-main-font {
8
- font-family: ${t.fontFamily};
9
- }
10
-
11
- .exclude-range {
12
- fill: ${t.excludeBkgColor};
13
- }
14
-
15
- .section {
16
- stroke: none;
17
- opacity: 0.2;
18
- }
19
-
20
- .section0 {
21
- fill: ${t.sectionBkgColor};
22
- }
23
-
24
- .section2 {
25
- fill: ${t.sectionBkgColor2};
26
- }
27
-
28
- .section1,
29
- .section3 {
30
- fill: ${t.altSectionBkgColor};
31
- opacity: 0.2;
32
- }
33
-
34
- .sectionTitle0 {
35
- fill: ${t.titleColor};
36
- }
37
-
38
- .sectionTitle1 {
39
- fill: ${t.titleColor};
40
- }
41
-
42
- .sectionTitle2 {
43
- fill: ${t.titleColor};
44
- }
45
-
46
- .sectionTitle3 {
47
- fill: ${t.titleColor};
48
- }
49
-
50
- .sectionTitle {
51
- text-anchor: start;
52
- font-family: ${t.fontFamily};
53
- }
54
-
55
-
56
- /* Grid and axis */
57
-
58
- .grid .tick {
59
- stroke: ${t.gridColor};
60
- opacity: 0.8;
61
- shape-rendering: crispEdges;
62
- }
63
-
64
- .grid .tick text {
65
- font-family: ${t.fontFamily};
66
- fill: ${t.textColor};
67
- }
68
-
69
- .grid path {
70
- stroke-width: 0;
71
- }
72
-
73
-
74
- /* Today line */
75
-
76
- .today {
77
- fill: none;
78
- stroke: ${t.todayLineColor};
79
- stroke-width: 2px;
80
- }
81
-
82
-
83
- /* Task styling */
84
-
85
- /* Default task */
86
-
87
- .task {
88
- stroke-width: 2;
89
- }
90
-
91
- .taskText {
92
- text-anchor: middle;
93
- font-family: ${t.fontFamily};
94
- }
95
-
96
- .taskTextOutsideRight {
97
- fill: ${t.taskTextDarkColor};
98
- text-anchor: start;
99
- font-family: ${t.fontFamily};
100
- }
101
-
102
- .taskTextOutsideLeft {
103
- fill: ${t.taskTextDarkColor};
104
- text-anchor: end;
105
- }
106
-
107
-
108
- /* Special case clickable */
109
-
110
- .task.clickable {
111
- cursor: pointer;
112
- }
113
-
114
- .taskText.clickable {
115
- cursor: pointer;
116
- fill: ${t.taskTextClickableColor} !important;
117
- font-weight: bold;
118
- }
119
-
120
- .taskTextOutsideLeft.clickable {
121
- cursor: pointer;
122
- fill: ${t.taskTextClickableColor} !important;
123
- font-weight: bold;
124
- }
125
-
126
- .taskTextOutsideRight.clickable {
127
- cursor: pointer;
128
- fill: ${t.taskTextClickableColor} !important;
129
- font-weight: bold;
130
- }
131
-
132
-
133
- /* Specific task settings for the sections*/
134
-
135
- .taskText0,
136
- .taskText1,
137
- .taskText2,
138
- .taskText3 {
139
- fill: ${t.taskTextColor};
140
- }
141
-
142
- .task0,
143
- .task1,
144
- .task2,
145
- .task3 {
146
- fill: ${t.taskBkgColor};
147
- stroke: ${t.taskBorderColor};
148
- }
149
-
150
- .taskTextOutside0,
151
- .taskTextOutside2
152
- {
153
- fill: ${t.taskTextOutsideColor};
154
- }
155
-
156
- .taskTextOutside1,
157
- .taskTextOutside3 {
158
- fill: ${t.taskTextOutsideColor};
159
- }
160
-
161
-
162
- /* Active task */
163
-
164
- .active0,
165
- .active1,
166
- .active2,
167
- .active3 {
168
- fill: ${t.activeTaskBkgColor};
169
- stroke: ${t.activeTaskBorderColor};
170
- }
171
-
172
- .activeText0,
173
- .activeText1,
174
- .activeText2,
175
- .activeText3 {
176
- fill: ${t.taskTextDarkColor} !important;
177
- }
178
-
179
-
180
- /* Completed task */
181
-
182
- .done0,
183
- .done1,
184
- .done2,
185
- .done3 {
186
- stroke: ${t.doneTaskBorderColor};
187
- fill: ${t.doneTaskBkgColor};
188
- stroke-width: 2;
189
- }
190
-
191
- .doneText0,
192
- .doneText1,
193
- .doneText2,
194
- .doneText3 {
195
- fill: ${t.taskTextDarkColor} !important;
196
- }
197
-
198
-
199
- /* Tasks on the critical line */
200
-
201
- .crit0,
202
- .crit1,
203
- .crit2,
204
- .crit3 {
205
- stroke: ${t.critBorderColor};
206
- fill: ${t.critBkgColor};
207
- stroke-width: 2;
208
- }
209
-
210
- .activeCrit0,
211
- .activeCrit1,
212
- .activeCrit2,
213
- .activeCrit3 {
214
- stroke: ${t.critBorderColor};
215
- fill: ${t.activeTaskBkgColor};
216
- stroke-width: 2;
217
- }
218
-
219
- .doneCrit0,
220
- .doneCrit1,
221
- .doneCrit2,
222
- .doneCrit3 {
223
- stroke: ${t.critBorderColor};
224
- fill: ${t.doneTaskBkgColor};
225
- stroke-width: 2;
226
- cursor: pointer;
227
- shape-rendering: crispEdges;
228
- }
229
-
230
- .milestone {
231
- transform: rotate(45deg) scale(0.8,0.8);
232
- }
233
-
234
- .milestoneText {
235
- font-style: italic;
236
- }
237
- .doneCritText0,
238
- .doneCritText1,
239
- .doneCritText2,
240
- .doneCritText3 {
241
- fill: ${t.taskTextDarkColor} !important;
242
- }
243
-
244
- .vert {
245
- stroke: ${t.vertLineColor};
246
- }
247
-
248
- .vertText {
249
- font-size: 15px;
250
- text-anchor: middle;
251
- fill: ${t.vertLineColor} !important;
252
- }
253
-
254
- .activeCritText0,
255
- .activeCritText1,
256
- .activeCritText2,
257
- .activeCritText3 {
258
- fill: ${t.taskTextDarkColor} !important;
259
- }
260
-
261
- .titleText {
262
- text-anchor: middle;
263
- font-size: 18px;
264
- fill: ${t.titleColor||t.textColor};
265
- font-family: ${t.fontFamily};
266
- }
267
- `,"getStyles"),Ji=Qi,Ki={parser:li,db:Zi,renderer:Xi,styles:Ji};exports.diagram=Ki;