@bkm016/basalt 0.1.9 → 0.1.11

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 (188) hide show
  1. package/{chunk-0xd9mnc2.js → chunk-jymx3a77.js} +165 -152
  2. package/{chunk-66h5qpc6.js → chunk-zq32mwxj.js} +134 -134
  3. package/compiled.js +1 -1
  4. package/package.json +1 -1
  5. package/ui-test-worker.js +1 -1
  6. package/web/{chunk-9yfftz38.js → chunk-05mvzx00.js} +1 -1
  7. package/web/chunk-086dshck.js +1 -0
  8. package/web/chunk-0fy590s0.js +1 -0
  9. package/web/{chunk-4a6gdrbs.js → chunk-0hvxb5d5.js} +1 -1
  10. package/web/chunk-0mdf1qja.js +1 -0
  11. package/web/{chunk-dz7g1gnv.js → chunk-0y971zgq.js} +2 -2
  12. package/web/{chunk-fjb3ksfd.js → chunk-1t38sgrk.js} +2 -2
  13. package/web/{chunk-66wb0p6e.js → chunk-1zfxaafq.js} +1 -1
  14. package/web/{chunk-p9hfcamx.js → chunk-27812gqr.js} +5 -5
  15. package/web/{chunk-sk1wkgjw.js → chunk-2ds0a2z1.js} +3 -3
  16. package/web/{chunk-ddyyc20r.js → chunk-2f2agfpj.js} +11 -11
  17. package/web/{chunk-3ecrkvr3.js → chunk-2tsxj613.js} +3 -3
  18. package/web/{chunk-y2rzeb4v.js → chunk-2weaa3gn.js} +2 -2
  19. package/web/{chunk-0pghpg4y.js → chunk-3020mmp1.js} +1 -1
  20. package/web/{chunk-mykrm8ba.js → chunk-30aeb767.js} +2 -2
  21. package/web/chunk-32zmk3f5.js +1 -0
  22. package/web/{chunk-zb2bkr7f.js → chunk-36dc7tcg.js} +2 -2
  23. package/web/{chunk-nnyc889n.js → chunk-3a57m7xm.js} +3 -3
  24. package/web/{chunk-8w7fyb3v.js → chunk-3b4wqmnh.js} +7 -7
  25. package/web/chunk-3d3wnh8a.js +2 -0
  26. package/web/{chunk-601k823s.js → chunk-3ftb27f3.js} +8 -8
  27. package/web/{chunk-c6yacwbc.js → chunk-47mbbmst.js} +3 -3
  28. package/web/chunk-48479gnx.js +1 -0
  29. package/web/{chunk-qsqtwf34.js → chunk-4gc663j0.js} +2 -2
  30. package/web/{chunk-kcjz03h5.js → chunk-4rwwtfnd.js} +2 -2
  31. package/web/{chunk-eqndhs21.js → chunk-4wwd3pfz.js} +2 -2
  32. package/web/{chunk-myd6sc76.js → chunk-57pyz29y.js} +2 -2
  33. package/web/{chunk-mdfksj61.js → chunk-59nk506k.js} +1 -1
  34. package/web/{chunk-db3twjvk.js → chunk-5ahx98zj.js} +9 -9
  35. package/web/chunk-6cjm2yr7.js +1 -0
  36. package/web/{chunk-frnh4zqf.js → chunk-6jb2zyp6.js} +2 -2
  37. package/web/{chunk-ts6jsfdk.js → chunk-793m5jjh.js} +1 -1
  38. package/web/{chunk-3ak5dg10.js → chunk-7dycbjxn.js} +4 -4
  39. package/web/chunk-7ycxz39p.js +1 -0
  40. package/web/{chunk-tftc5v89.js → chunk-8151c970.js} +1 -1
  41. package/web/{chunk-jccz14ye.js → chunk-885kpj14.js} +2 -2
  42. package/web/{chunk-79e08rk1.js → chunk-8csw0mvf.js} +2 -2
  43. package/web/{chunk-m9q5nr8f.js → chunk-8z7texmv.js} +1 -1
  44. package/web/{chunk-v1exk5wd.js → chunk-90fkdzx3.js} +8 -8
  45. package/web/chunk-94denx9h.js +39 -0
  46. package/web/{chunk-5baeh8q7.js → chunk-96xhmmqz.js} +6 -6
  47. package/web/chunk-9jy8nc4r.js +1 -0
  48. package/web/{chunk-5dr4tkem.js → chunk-9kkzmss7.js} +3 -3
  49. package/web/chunk-9wr33d0t.js +1 -0
  50. package/web/{chunk-3pd0qt83.js → chunk-a3pye9ag.js} +3 -3
  51. package/web/chunk-a4tdrxdh.js +1 -0
  52. package/web/chunk-a9fvsyc1.js +1 -0
  53. package/web/chunk-apvbvg4d.js +1 -0
  54. package/web/{chunk-gn8kyz76.js → chunk-b3j07x0n.js} +6 -6
  55. package/web/{chunk-ff1pmd3g.js → chunk-b6sqwmq7.js} +1 -1
  56. package/web/chunk-bkxcc7v5.js +1 -0
  57. package/web/chunk-bve354k7.js +1 -0
  58. package/web/{chunk-zdyys4ar.js → chunk-cbwvfedy.js} +8 -8
  59. package/web/{chunk-eadfxfkw.js → chunk-cpshsp24.js} +1 -1
  60. package/web/chunk-cwpxakby.js +1 -0
  61. package/web/chunk-d3f763n7.js +2 -0
  62. package/web/{chunk-8z0r0wtk.js → chunk-d4519smc.js} +14 -14
  63. package/web/chunk-de29pe57.js +1 -0
  64. package/web/chunk-dk0fnj87.js +1 -0
  65. package/web/{chunk-c57f714b.js → chunk-drchr3yn.js} +2 -2
  66. package/web/chunk-dsbyfvwz.js +1 -0
  67. package/web/{chunk-3hr3ew9w.js → chunk-dtrh40vr.js} +1 -1
  68. package/web/chunk-e68jw0bg.js +1 -0
  69. package/web/{chunk-veam6vk4.js → chunk-e763h2px.js} +67 -67
  70. package/web/{chunk-nvpp0ghj.js → chunk-enryqmj7.js} +5 -5
  71. package/web/{chunk-fpb2dd2d.js → chunk-f79ajymt.js} +2 -2
  72. package/web/{chunk-qq6m2my8.js → chunk-fj753yzt.js} +2 -2
  73. package/web/{chunk-9ctg0f30.js → chunk-g0rtcedn.js} +3 -3
  74. package/web/{chunk-2x4g9t37.js → chunk-g31dbnzm.js} +4 -4
  75. package/web/{chunk-w3w18stt.js → chunk-g4as4zzd.js} +4 -4
  76. package/web/{chunk-6e87m0nm.js → chunk-gten0rpx.js} +2 -2
  77. package/web/{chunk-a0ryzdnp.js → chunk-gyhr27dm.js} +1 -1
  78. package/web/{chunk-98y92vmh.js → chunk-hjyev38w.js} +6 -6
  79. package/web/{chunk-wzd2a4k5.js → chunk-hm8thq7c.js} +4 -4
  80. package/web/{chunk-07agqp8h.js → chunk-j4gvtszc.js} +2 -2
  81. package/web/chunk-jd7npyv9.js +8 -0
  82. package/web/chunk-jhpg2kcf.js +1 -0
  83. package/web/{chunk-9fnr00kv.js → chunk-jqqbkdtw.js} +2 -2
  84. package/web/chunk-jzz5htxp.js +1 -0
  85. package/web/chunk-ka3q31t1.js +1 -0
  86. package/web/chunk-kahab58k.js +1139 -0
  87. package/web/{chunk-af9evdza.js → chunk-kfbgvh0c.js} +1 -1
  88. package/web/chunk-krgvx75q.js +1 -0
  89. package/web/chunk-kxeaj44h.js +1 -0
  90. package/web/chunk-m1rdyvb5.js +1 -0
  91. package/web/{chunk-5v2c0aqk.js → chunk-m24yb8md.js} +2 -2
  92. package/web/chunk-m7k4wr3k.js +1 -0
  93. package/web/chunk-mdj3r75b.js +1 -0
  94. package/web/{chunk-ewx42c11.js → chunk-mpdeqzc9.js} +10 -10
  95. package/web/{chunk-b5h52neg.js → chunk-mykbcvqz.js} +1 -1
  96. package/web/{chunk-7qkav30b.js → chunk-n33753da.js} +1 -1
  97. package/web/{chunk-rasjtvsb.js → chunk-nafe18y9.js} +10 -10
  98. package/web/chunk-nbcpbqq4.js +1 -0
  99. package/web/{chunk-24jhbz82.js → chunk-nhx8pw7p.js} +1 -1
  100. package/web/chunk-nkpdd9hw.js +1 -0
  101. package/web/{chunk-dwjmr0zj.js → chunk-p1yc8hwn.js} +1 -1
  102. package/web/chunk-p29brxyt.js +1 -0
  103. package/web/chunk-p8fbes0t.js +1 -0
  104. package/web/chunk-pbp1p5ex.js +1 -0
  105. package/web/{chunk-xx11yv61.js → chunk-ppjw1mps.js} +4 -4
  106. package/web/{chunk-7tkgbbf9.js → chunk-pq56b3mq.js} +2 -2
  107. package/web/{chunk-vvvd3grf.js → chunk-pzg25qqe.js} +2 -2
  108. package/web/{chunk-spbs56wz.js → chunk-q65zxczs.js} +7 -7
  109. package/web/{chunk-t893141g.js → chunk-q8v5j963.js} +2 -2
  110. package/web/{chunk-vsjpnwsr.js → chunk-qykt7avq.js} +2 -2
  111. package/web/chunk-r6q1301x.js +1 -0
  112. package/web/chunk-r8kghrkb.js +1 -0
  113. package/web/chunk-rhxn7mxg.js +1 -0
  114. package/web/{chunk-2dvbeqt0.js → chunk-rqympya7.js} +2 -2
  115. package/web/{chunk-30b33r2w.js → chunk-s0xy00v5.js} +2 -2
  116. package/web/chunk-svqshmpg.js +1 -0
  117. package/web/chunk-swzxq7r3.css +1 -0
  118. package/web/{chunk-8jcvdd5d.js → chunk-t18tn37m.js} +2 -2
  119. package/web/chunk-tbsaseer.js +1 -0
  120. package/web/{chunk-5jdrev9p.js → chunk-tggja45g.js} +3 -3
  121. package/web/chunk-tgkdyxbn.js +1 -0
  122. package/web/{chunk-rrpn5r5w.js → chunk-tpdcrrf1.js} +1 -1
  123. package/web/chunk-v0zfnvc1.js +1 -0
  124. package/web/{chunk-5a4mj3qz.js → chunk-v3dn9bfw.js} +1 -1
  125. package/web/chunk-vj31fs16.js +1 -0
  126. package/web/chunk-vr79r8vh.js +1 -0
  127. package/web/chunk-wb9tax0m.js +1 -0
  128. package/web/{chunk-rayf24gy.js → chunk-wbwets5x.js} +23 -23
  129. package/web/chunk-x9eghjjd.js +1 -0
  130. package/web/{chunk-awkdw9rw.js → chunk-xbyrgyy0.js} +2 -2
  131. package/web/{chunk-60axh4sa.js → chunk-xjc5fmcr.js} +24 -24
  132. package/web/{chunk-qh62nkem.js → chunk-ydtrc1ay.js} +2 -2
  133. package/web/chunk-yrh86m0n.js +1 -0
  134. package/web/chunk-z3ky5ews.js +2 -0
  135. package/web/{chunk-ctzkqx2g.js → chunk-zdhyq3ch.js} +13 -13
  136. package/web/{chunk-0zwc2rvh.js → chunk-zv73g4qq.js} +2 -2
  137. package/web/index.html +1 -1
  138. package/web/chunk-08sq3cwm.js +0 -1
  139. package/web/chunk-12qf1r6m.js +0 -1
  140. package/web/chunk-24fjnnee.js +0 -1
  141. package/web/chunk-2hrswh3d.js +0 -2
  142. package/web/chunk-2j2atyjw.js +0 -1
  143. package/web/chunk-3h3g3ca3.js +0 -1
  144. package/web/chunk-3pcrxg6m.js +0 -1
  145. package/web/chunk-3txxt0a7.js +0 -1
  146. package/web/chunk-43g4wd7a.js +0 -1
  147. package/web/chunk-5z2n4z9x.css +0 -1
  148. package/web/chunk-6y55gk1n.js +0 -1
  149. package/web/chunk-7qq1ypvj.js +0 -1
  150. package/web/chunk-814kkkmq.js +0 -8
  151. package/web/chunk-8w8atrdh.js +0 -1
  152. package/web/chunk-935mjq1c.js +0 -39
  153. package/web/chunk-942g3eqn.js +0 -1
  154. package/web/chunk-a61zrp66.js +0 -1
  155. package/web/chunk-arnzrqnm.js +0 -1
  156. package/web/chunk-avxk6jpc.js +0 -2
  157. package/web/chunk-bwy3e58v.js +0 -1
  158. package/web/chunk-dnv8dx72.js +0 -1
  159. package/web/chunk-f7jpakwh.js +0 -1
  160. package/web/chunk-fmthkpff.js +0 -1
  161. package/web/chunk-gv99c8zv.js +0 -1
  162. package/web/chunk-h0767tjv.js +0 -1
  163. package/web/chunk-h0c42zy3.js +0 -1
  164. package/web/chunk-hqynf99g.js +0 -1
  165. package/web/chunk-ket6g0yd.js +0 -1
  166. package/web/chunk-mbwwj216.js +0 -1
  167. package/web/chunk-me7dza1c.js +0 -1
  168. package/web/chunk-mzzaet63.js +0 -1
  169. package/web/chunk-n0wazxgz.js +0 -1
  170. package/web/chunk-nvt9tkt4.js +0 -1139
  171. package/web/chunk-ph1dgffm.js +0 -1
  172. package/web/chunk-q34as3v6.js +0 -1
  173. package/web/chunk-qz6r9v1z.js +0 -1
  174. package/web/chunk-rad2s9ha.js +0 -1
  175. package/web/chunk-s37beysw.js +0 -1
  176. package/web/chunk-s60s09mb.js +0 -1
  177. package/web/chunk-tfvcs2xx.js +0 -1
  178. package/web/chunk-tj1fn8v2.js +0 -1
  179. package/web/chunk-vqmj6peg.js +0 -1
  180. package/web/chunk-wdq2tp9e.js +0 -1
  181. package/web/chunk-wkf5xfyr.js +0 -1
  182. package/web/chunk-xa43ndfj.js +0 -2
  183. package/web/chunk-xh4xn1az.js +0 -1
  184. package/web/chunk-xzwxcxb4.js +0 -1
  185. package/web/chunk-y1qty77a.js +0 -1
  186. package/web/chunk-ys2tns0p.js +0 -1
  187. package/web/chunk-z05x9cbm.js +0 -1
  188. package/web/chunk-zgavhnt8.js +0 -1
@@ -1,2 +1,2 @@
1
- import{t,a,x,l,M,P,Tt,Et,Co,yt,en,So,Hn,Me,To,Qi,At,Ji,tn,Zn}from"./chunk-veam6vk4.js";import{re}from"./chunk-kcjz03h5.js";import{_}from"./chunk-nvt9tkt4.js";function pa(e,{edgePathsClass:r="edges edgePaths"}={}){let n=e.insert("g").attr("class","root"),i=n.insert("g").attr("class","clusters"),s=n.insert("g").attr("class",r),o=n.insert("g").attr("class","edgeLabels"),u=n.insert("g").attr("class","nodes");return{clusters:i,edgePaths:s,edgeLabels:o,nodes:u,rootGroups:n}}t(pa,"createLayoutElementGroups");async function L(e,r,n){if(r.label){let{shapeSvg:i,bbox:s}=await P(e,n===void 0?r:{...r,width:n});r.labelBBox={width:s.width,height:s.height},i.remove()}else r.labelBBox={width:0,height:0}}t(L,"measureGroupLabel");async function ma(e,r,n){let i=await Et(e,r,n),s=i.node()?.getBBox()??{width:0,height:0};return r.width=s.width,r.height=s.height,i}t(ma,"insertMeasuredNode");function D(e,r,n){let i=e,s=new Set;while(i){if(i.dir)return i.dir;if(!i.parentId||s.has(i.parentId))break;s.add(i.parentId),i=r.get(i.parentId)}return n}t(D,"resolveNodeDir");async function S(e,r,n={}){let i=new re({multigraph:!0,compound:!0}),s=[...r.edges],o=l(),u=pa(e),{edgeLabels:d,nodes:c}=u,g=new Map,b=new Map(r.nodes.map((f)=>[f.id,f])),E=r.direction,h=e.node()!=null;await Promise.all(r.nodes.map(async(f)=>{if(f.isGroup){if(h){let w=n.unwrapGroupLabels&&f.labelType!=="markdown";await L(c,f,w?Number.POSITIVE_INFINITY:void 0)}i.setNode(f.id,{...f})}else{if(h){let w=await ma(c,f,{config:o,dir:D(f,b,E)});g.set(f.id,w)}i.setNode(f.id,{...f})}}));for(let f of s){if(h&&Qi(f))await At(d,f);if(i.setEdge(f.start,f.end,{...f},f.id),!r.edges.some((v)=>v.id===f.id))r.edges.push(f)}if(globalThis.mermaidCaptureSizes){let{captureNodeSizes:f}=await (_("4a6gdrbs"),import("./chunk-4a6gdrbs.js"));f(e,r)}return{graph:i,groups:u,nodeElements:g}}t(S,"createGraphWithElements");var W=new Map,m=new Map,k=new Map,U=t(()=>{m.clear(),k.clear(),W.clear()},"clear"),p=t((e,r)=>{let n=m.get(r)||[];return a.trace("In isDescendant",r," ",e," = ",n.includes(e)),n.includes(e)},"isDescendant"),Z=t((e,r)=>{let n=m.get(r)||[];if(a.info("Descendants of ",r," is ",n),a.info("Edge is ",e),e.v===r||e.w===r)return!1;if(!n)return a.debug("Tilt, ",r,",not in descendants"),!1;return n.includes(e.v)||p(e.v,r)||p(e.w,r)||n.includes(e.w)},"edgeInCluster"),R=t((e,r,n,i)=>{a.debug("Copying children of ",e,"root",i,"data",r.node(e),i);let s=r.children(e)||[];if(e!==i)s.push(e);a.debug("Copying (nodes) clusterId",e,"nodes",s),s.forEach((o)=>{if(r.children(o).length>0)R(o,r,n,i);else{let u=r.node(o);if(a.info("cp ",o," to ",i," with parent ",e),n.setNode(o,u),i!==r.parent(o))a.debug("Setting parent",o,r.parent(o)),n.setParent(o,r.parent(o));if(e!==i&&o!==e)a.debug("Setting parent",o,e),n.setParent(o,e);else a.info("In copy ",e,"root",i,"data",r.node(e),i),a.debug("Not Setting parent for node=",o,"cluster!==rootId",e!==i,"node!==clusterId",o!==e);let d=r.edges(o);a.debug("Copying Edges",d),d.forEach((c)=>{a.info("Edge",c);let g=r.edge(c.v,c.w,c.name);a.info("Edge data",g,i);try{if(Z(c,i))a.info("Copying as ",c.v,c.w,g,c.name),n.setEdge(c.v,c.w,g,c.name),a.info("newGraph edges ",n.edges(),n.edge(n.edges()[0]));else a.info("Skipping copy of edge ",c.v,"-->",c.w," rootId: ",i," clusterId:",e)}catch(b){a.error(b)}})}a.debug("Removing node",o),r.removeNode(o)})},"copy"),T=t((e,r)=>{let n=r.children(e),i=[...n];for(let s of n)k.set(s,e),i=[...i,...T(s,r)];return i},"extractDescendants"),I=t((e,r,n)=>{let i=e.edges().filter((c)=>c.v===r||c.w===r),s=e.edges().filter((c)=>c.v===n||c.w===n),o=i.map((c)=>({v:c.v===r?n:c.v,w:c.w===r?r:c.w})),u=s.map((c)=>({v:c.v,w:c.w}));return o.filter((c)=>u.some((g)=>c.v===g.v&&c.w===g.w))},"findCommonEdges"),Bn=t((e,r,n)=>{let i=r.children(e);if(a.trace("Searching children of id ",e,i),i.length<1)return e;let s;for(let o of i){let u=Bn(o,r,n),d=I(r,n,u);if(u)if(d.length>0)s=u;else return u}return s},"findNonClusterChild"),y=t((e)=>{if(!W.has(e))return e;if(!W.get(e).externalConnections)return e;if(W.has(e))return W.get(e).id;return e},"getAnchorId"),so=t((e,r)=>{if(!e||r>10){a.debug("Opting out, no graph ");return}else a.debug("Opting in, graph ");e.nodes().forEach(function(n){if(e.children(n).length>0)a.debug("Cluster identified",n," Replacement id in edges: ",Bn(n,e,n)),m.set(n,T(n,e)),W.set(n,{id:Bn(n,e,n),clusterData:e.node(n)})}),e.nodes().forEach(function(n){let i=e.children(n),s=e.edges();if(i.length>0)a.debug("Cluster identified",n,m),s.forEach((o)=>{let u=p(o.v,n),d=p(o.w,n);if(u^d)a.debug("Edge: ",o," leaves cluster ",n),a.debug("Descendants of XXX ",n,": ",m.get(n)),W.get(n).externalConnections=!0});else a.debug("Not a cluster ",n,m)});for(let n of W.keys()){let i=W.get(n).id,s=e.parent(i);if(s!==n&&W.has(s)&&!W.get(s).externalConnections)W.get(n).id=s;let o=e.edges().some((u)=>u.v===n);if(i&&W.get(n)?.externalConnections&&o&&X(e,i,n)){let u=ee(e,n,e.parent(i));if(u)W.get(n).id=u}}e.edges().forEach(function(n){let i=e.edge(n);a.debug("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(n)),a.debug("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(e.edge(n)));let{v:s,w:o}=n;if(a.debug("Fix XXX",W,"ids:",n.v,n.w,"Translating: ",W.get(n.v)," --- ",W.get(n.w)),W.get(n.v)||W.get(n.w)){if(a.debug("Fixing and trying - removing XXX",n.v,n.w,n.name),s=y(n.v),o=y(n.w),e.removeEdge(n.v,n.w,n.name),s!==n.v){let u=e.parent(s);W.get(u).externalConnections=!0,i.fromCluster=n.v}if(o!==n.w){let u=e.parent(o);W.get(u).externalConnections=!0,i.toCluster=n.w}a.debug("Fix Replacing with XXX",s,o,n.name),e.setEdge(s,o,i,n.name)}}),B(e,0),a.trace(W)},"adjustClustersAndEdges"),B=t((e,r)=>{if(r>10){a.error("Bailing out");return}let n=e.nodes(),i=!1;for(let s of n){let o=e.children(s);i=i||o.length>0}if(!i){a.debug("Done, no node has children",e.nodes());return}a.debug("Nodes = ",n,r);for(let s of n)if(a.debug("Extracting node",s,W,W.has(s)&&!W.get(s).externalConnections,!e.parent(s),e.node(s),e.children("D")," Depth ",r),!W.has(s))a.debug("Not a cluster",s,r);else if(!W.get(s).externalConnections&&e.children(s)&&e.children(s).length>0){a.debug("Cluster without external connections, without a parent and with children",s,r);let u=e.graph().rankdir==="TB"?"LR":"TB";if(W.get(s)?.clusterData?.dir)u=W.get(s).clusterData.dir,a.debug("Fixing dir",W.get(s).clusterData.dir,u);let d=new re({multigraph:!0,compound:!0}).setGraph({rankdir:u,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});R(s,e,d,s),e.setNode(s,{clusterNode:!0,id:s,clusterData:W.get(s).clusterData,label:W.get(s).label,graph:d})}else a.debug("Cluster ** ",s," **not meeting the criteria !externalConnections:",!W.get(s).externalConnections," no parent: ",!e.parent(s)," children ",e.children(s)&&e.children(s).length>0,e.children("D"),r),a.debug(W);n=e.nodes(),a.debug("New list of nodes",n);for(let s of n){let o=e.node(s);if(a.debug(" Now next level",s,o),o?.clusterNode)B(o.graph,r+1)}},"extractor"),A=t((e,r)=>{if(r.length===0)return[];let n=Object.assign([],r);return r.forEach((i)=>{let s=e.children(i),o=A(e,s);n=[...n,...o]}),n},"sorter"),fa=t((e)=>A(e,e.children()),"sortNodesByHierarchy"),X=t((e,r,n)=>{let i=e.parent(r);while(i&&i!==n){let s=W.get(i);if(s&&!s.externalConnections)return!0;i=e.parent(i)}return!1},"isNodeInExtractableCluster"),ee=t((e,r,n)=>{let i=e.children(r)??[];for(let s of i){if(s===n||p(s,n))continue;let o=Bn(s,e,r);if(!o)continue;if(!X(e,o,r))return o}return null},"findSafeAnchorNode");function lr({prepareLayout:e,measureLayout:r,runLayoutCore:n,paintLayout:i,afterPaint:s,paintOptions:o}){let u=r??O;return t(async function(c,g,b,E){let h=g.select("g");(b?.insertMarkers??Zn)(h,c.markers,c.type,c.diagramId),G();let f={element:h,helpers:b,options:E};f.preparedLayout=await e?.(c,f);let w=await u(c,f),v=await n(c,f),C={...f,measure:w};if(i)await i(c,C,v);else await F(c,C,o);await s?.(c,C,v)},"render")}t(lr,"createCommonLayoutRenderer");function G(){Co(),To(),So(),U()}t(G,"clearLayoutRenderState");async function O(e,{element:r},n){return await S(r,e,n)}t(O,"defaultMeasureLayout");async function F(e,r,n={}){let{measure:i}=r,{groups:s}=i;for(let u of n.getNodes?.(e,r)??e.nodes){if(n.skipNode?.(u,r))continue;await j(s,u,r,n)}let o=z(e.nodes);for(let u of e.edges){if(J(u,n))continue;await V(s,u,o,e,n,r)}}t(F,"paintLayoutData");async function j(e,r,n,i){if(r.clusterNode)yt(r);else if(H(r,n,i))await en(e.clusters,r);else yt(r)}t(j,"paintLayoutNode");function H(e,r,n){return e.isGroup===!0&&(n.isCluster?.(e,r)??!0)}t(H,"shouldPaintAsCluster");function z(e){let r=new Map;for(let n of e)if(n?.id)r.set(n.id,n);return r}t(z,"buildNodeLookup");function J(e,r){return e.isLayoutOnly||Boolean(r.skipEdge?.(e))}t(J,"shouldSkipPaintEdge");async function V(e,r,n,i,s,o){let u=tn(e.edgePaths,{...r},s.clusterDb??new Map,i.type,N(r.start,r,n,o,s),N(r.end,r,n,o,s),i.diagramId,Y(r,s),i.layoutAlgorithm);if(Qi(r)){if(!Hn.has(r.id))await At(e.edgeLabels,r);q(r,u)}}t(V,"paintLayoutEdge");function N(e,r,n,i,s){return s.getEdgeNode?.(e,r,i)??(e?n.get(e)??{}:{})}t(N,"getRenderedNode");function Y(e,r){return typeof r.skipIntersect==="function"?r.skipIntersect(e):r.skipIntersect??!1}t(Y,"shouldSkipIntersect");function q(e,r){let n=r?.updatedPath??r?.originalPath,i=x(),{subGraphTitleTotalMargin:s}=Tt({flowchart:i.flowchart??{}});if(e.label){let o=Hn.get(e.id),{x:u,y:d}=Ji(e,r);o.attr("transform",`translate(${u}, ${d+s/2})`)}for(let[o,u]of[["startLeft",e.startLabelLeft],["startRight",e.startLabelRight],["endLeft",e.endLabelLeft],["endRight",e.endLabelRight]])if(u){let{x:d,y:c}=K(e,o,n);Me.get(e.id)[o].attr("transform",`translate(${d}, ${c})`)}}t(q,"positionRenderedEdgeLabel");var te={startLeft:"start_left",startRight:"start_right",endLeft:"end_left",endRight:"end_right"};function K(e,r,n){let i=e.terminalLabelCenters?.[r];if(i)return{...i};if(!n)return{x:e.x,y:e.y};let s=r.startsWith("start")?e.arrowTypeStart:e.arrowTypeEnd;return M.calcTerminalLabelPosition(s?10:0,te[r],n)}t(K,"terminalLabelTranslate");
2
- export{pa,ma,W,Bn,so,fa,lr};
1
+ import{t,a,x,l,N,P,St,Tt,wo,bt,Qt,ko,Wn,Ne,Co,Xi,Et,Ki,Jt,Hn}from"./chunk-e763h2px.js";import{re}from"./chunk-4rwwtfnd.js";import{_}from"./chunk-kahab58k.js";function ua(e,{edgePathsClass:r="edges edgePaths"}={}){let n=e.insert("g").attr("class","root"),i=n.insert("g").attr("class","clusters"),s=n.insert("g").attr("class",r),o=n.insert("g").attr("class","edgeLabels"),u=n.insert("g").attr("class","nodes");return{clusters:i,edgePaths:s,edgeLabels:o,nodes:u,rootGroups:n}}t(ua,"createLayoutElementGroups");async function D(e,r,n){if(r.label){let{shapeSvg:i,bbox:s}=await P(e,n===void 0?r:{...r,width:n});r.labelBBox={width:s.width,height:s.height},i.remove()}else r.labelBBox={width:0,height:0}}t(D,"measureGroupLabel");async function da(e,r,n){let i=await Tt(e,r,n),s=i.node()?.getBBox()??{width:0,height:0};return r.width=s.width,r.height=s.height,i}t(da,"insertMeasuredNode");function S(e,r,n){let i=e,s=new Set;while(i){if(i.dir)return i.dir;if(!i.parentId||s.has(i.parentId))break;s.add(i.parentId),i=r.get(i.parentId)}return n}t(S,"resolveNodeDir");async function k(e,r,n={}){let i=new re({multigraph:!0,compound:!0}),s=[...r.edges],o=l(),u=ua(e),{edgeLabels:d,nodes:c}=u,g=new Map,b=new Map(r.nodes.map((f)=>[f.id,f])),E=r.direction,h=e.node()!=null;await Promise.all(r.nodes.map(async(f)=>{if(f.isGroup){if(h){let w=n.unwrapGroupLabels&&f.labelType!=="markdown";await D(c,f,w?Number.POSITIVE_INFINITY:void 0)}i.setNode(f.id,{...f})}else{if(h){let w=await da(c,f,{config:o,dir:S(f,b,E)});g.set(f.id,w)}i.setNode(f.id,{...f})}}));for(let f of s){if(h&&Xi(f))await Et(d,f);if(i.setEdge(f.start,f.end,{...f},f.id),!r.edges.some((v)=>v.id===f.id))r.edges.push(f)}if(globalThis.mermaidCaptureSizes){let{captureNodeSizes:f}=await (_("0hvxb5d5"),import("./chunk-0hvxb5d5.js"));f(e,r)}return{graph:i,groups:u,nodeElements:g}}t(k,"createGraphWithElements");var W=new Map,m=new Map,R=new Map,U=t(()=>{m.clear(),R.clear(),W.clear()},"clear"),p=t((e,r)=>{let n=m.get(r)||[];return a.trace("In isDescendant",r," ",e," = ",n.includes(e)),n.includes(e)},"isDescendant"),Z=t((e,r)=>{let n=m.get(r)||[];if(a.info("Descendants of ",r," is ",n),a.info("Edge is ",e),e.v===r||e.w===r)return!1;if(!n)return a.debug("Tilt, ",r,",not in descendants"),!1;return n.includes(e.v)||p(e.v,r)||p(e.w,r)||n.includes(e.w)},"edgeInCluster"),T=t((e,r,n,i)=>{a.debug("Copying children of ",e,"root",i,"data",r.node(e),i);let s=r.children(e)||[];if(e!==i)s.push(e);a.debug("Copying (nodes) clusterId",e,"nodes",s),s.forEach((o)=>{if(r.children(o).length>0)T(o,r,n,i);else{let u=r.node(o);if(a.info("cp ",o," to ",i," with parent ",e),n.setNode(o,u),i!==r.parent(o))a.debug("Setting parent",o,r.parent(o)),n.setParent(o,r.parent(o));if(e!==i&&o!==e)a.debug("Setting parent",o,e),n.setParent(o,e);else a.info("In copy ",e,"root",i,"data",r.node(e),i),a.debug("Not Setting parent for node=",o,"cluster!==rootId",e!==i,"node!==clusterId",o!==e);let d=r.edges(o);a.debug("Copying Edges",d),d.forEach((c)=>{a.info("Edge",c);let g=r.edge(c.v,c.w,c.name);a.info("Edge data",g,i);try{if(Z(c,i))a.info("Copying as ",c.v,c.w,g,c.name),n.setEdge(c.v,c.w,g,c.name),a.info("newGraph edges ",n.edges(),n.edge(n.edges()[0]));else a.info("Skipping copy of edge ",c.v,"-->",c.w," rootId: ",i," clusterId:",e)}catch(b){a.error(b)}})}a.debug("Removing node",o),r.removeNode(o)})},"copy"),B=t((e,r)=>{let n=r.children(e),i=[...n];for(let s of n)R.set(s,e),i=[...i,...B(s,r)];return i},"extractDescendants"),I=t((e,r,n)=>{let i=e.edges().filter((c)=>c.v===r||c.w===r),s=e.edges().filter((c)=>c.v===n||c.w===n),o=i.map((c)=>({v:c.v===r?n:c.v,w:c.w===r?r:c.w})),u=s.map((c)=>({v:c.v,w:c.w}));return o.filter((c)=>u.some((g)=>c.v===g.v&&c.w===g.w))},"findCommonEdges"),On=t((e,r,n)=>{let i=r.children(e);if(a.trace("Searching children of id ",e,i),i.length<1)return e;let s;for(let o of i){let u=On(o,r,n),d=I(r,n,u);if(u)if(d.length>0)s=u;else return u}return s},"findNonClusterChild"),L=t((e)=>{if(!W.has(e))return e;if(!W.get(e).externalConnections)return e;if(W.has(e))return W.get(e).id;return e},"getAnchorId"),io=t((e,r)=>{if(!e||r>10){a.debug("Opting out, no graph ");return}else a.debug("Opting in, graph ");e.nodes().forEach(function(n){if(e.children(n).length>0)a.debug("Cluster identified",n," Replacement id in edges: ",On(n,e,n)),m.set(n,B(n,e)),W.set(n,{id:On(n,e,n),clusterData:e.node(n)})}),e.nodes().forEach(function(n){let i=e.children(n),s=e.edges();if(i.length>0)a.debug("Cluster identified",n,m),s.forEach((o)=>{let u=p(o.v,n),d=p(o.w,n);if(u^d)a.debug("Edge: ",o," leaves cluster ",n),a.debug("Descendants of XXX ",n,": ",m.get(n)),W.get(n).externalConnections=!0});else a.debug("Not a cluster ",n,m)});for(let n of W.keys()){let i=W.get(n).id,s=e.parent(i);if(s!==n&&W.has(s)&&!W.get(s).externalConnections)W.get(n).id=s;let o=e.edges().some((u)=>u.v===n);if(i&&W.get(n)?.externalConnections&&o&&X(e,i,n)){let u=ee(e,n,e.parent(i));if(u)W.get(n).id=u}}e.edges().forEach(function(n){let i=e.edge(n);a.debug("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(n)),a.debug("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(e.edge(n)));let{v:s,w:o}=n;if(a.debug("Fix XXX",W,"ids:",n.v,n.w,"Translating: ",W.get(n.v)," --- ",W.get(n.w)),W.get(n.v)||W.get(n.w)){if(a.debug("Fixing and trying - removing XXX",n.v,n.w,n.name),s=L(n.v),o=L(n.w),e.removeEdge(n.v,n.w,n.name),s!==n.v){let u=e.parent(s);W.get(u).externalConnections=!0,i.fromCluster=n.v}if(o!==n.w){let u=e.parent(o);W.get(u).externalConnections=!0,i.toCluster=n.w}a.debug("Fix Replacing with XXX",s,o,n.name),e.setEdge(s,o,i,n.name)}}),M(e,0),a.trace(W)},"adjustClustersAndEdges"),M=t((e,r)=>{if(r>10){a.error("Bailing out");return}let n=e.nodes(),i=!1;for(let s of n){let o=e.children(s);i=i||o.length>0}if(!i){a.debug("Done, no node has children",e.nodes());return}a.debug("Nodes = ",n,r);for(let s of n)if(a.debug("Extracting node",s,W,W.has(s)&&!W.get(s).externalConnections,!e.parent(s),e.node(s),e.children("D")," Depth ",r),!W.has(s))a.debug("Not a cluster",s,r);else if(!W.get(s).externalConnections&&e.children(s)&&e.children(s).length>0){a.debug("Cluster without external connections, without a parent and with children",s,r);let u=e.graph().rankdir==="TB"?"LR":"TB";if(W.get(s)?.clusterData?.dir)u=W.get(s).clusterData.dir,a.debug("Fixing dir",W.get(s).clusterData.dir,u);let d=new re({multigraph:!0,compound:!0}).setGraph({rankdir:u,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});T(s,e,d,s),e.setNode(s,{clusterNode:!0,id:s,clusterData:W.get(s).clusterData,label:W.get(s).label,graph:d})}else a.debug("Cluster ** ",s," **not meeting the criteria !externalConnections:",!W.get(s).externalConnections," no parent: ",!e.parent(s)," children ",e.children(s)&&e.children(s).length>0,e.children("D"),r),a.debug(W);n=e.nodes(),a.debug("New list of nodes",n);for(let s of n){let o=e.node(s);if(a.debug(" Now next level",s,o),o?.clusterNode)M(o.graph,r+1)}},"extractor"),A=t((e,r)=>{if(r.length===0)return[];let n=Object.assign([],r);return r.forEach((i)=>{let s=e.children(i),o=A(e,s);n=[...n,...o]}),n},"sorter"),pa=t((e)=>A(e,e.children()),"sortNodesByHierarchy"),X=t((e,r,n)=>{let i=e.parent(r);while(i&&i!==n){let s=W.get(i);if(s&&!s.externalConnections)return!0;i=e.parent(i)}return!1},"isNodeInExtractableCluster"),ee=t((e,r,n)=>{let i=e.children(r)??[];for(let s of i){if(s===n||p(s,n))continue;let o=On(s,e,r);if(!o)continue;if(!X(e,o,r))return o}return null},"findSafeAnchorNode");function or({prepareLayout:e,measureLayout:r,runLayoutCore:n,paintLayout:i,afterPaint:s,paintOptions:o}){let u=r??O;return t(async function(c,g,b,E){let h=g.select("g");(b?.insertMarkers??Hn)(h,c.markers,c.type,c.diagramId),G();let f={element:h,helpers:b,options:E};f.preparedLayout=await e?.(c,f);let w=await u(c,f),v=await n(c,f),C={...f,measure:w};if(i)await i(c,C,v);else await F(c,C,o);await s?.(c,C,v)},"render")}t(or,"createCommonLayoutRenderer");function G(){wo(),Co(),ko(),U()}t(G,"clearLayoutRenderState");async function O(e,{element:r},n){return await k(r,e,n)}t(O,"defaultMeasureLayout");async function F(e,r,n={}){let{measure:i}=r,{groups:s}=i;for(let u of n.getNodes?.(e,r)??e.nodes){if(n.skipNode?.(u,r))continue;await j(s,u,r,n)}let o=z(e.nodes);for(let u of e.edges){if(J(u,n))continue;await V(s,u,o,e,n,r)}}t(F,"paintLayoutData");async function j(e,r,n,i){if(r.clusterNode)bt(r);else if(H(r,n,i))await Qt(e.clusters,r);else bt(r)}t(j,"paintLayoutNode");function H(e,r,n){return e.isGroup===!0&&(n.isCluster?.(e,r)??!0)}t(H,"shouldPaintAsCluster");function z(e){let r=new Map;for(let n of e)if(n?.id)r.set(n.id,n);return r}t(z,"buildNodeLookup");function J(e,r){return e.isLayoutOnly||Boolean(r.skipEdge?.(e))}t(J,"shouldSkipPaintEdge");async function V(e,r,n,i,s,o){let u=Jt(e.edgePaths,{...r},s.clusterDb??new Map,i.type,y(r.start,r,n,o,s),y(r.end,r,n,o,s),i.diagramId,Y(r,s),i.layoutAlgorithm);if(Xi(r)){if(!Wn.has(r.id))await Et(e.edgeLabels,r);q(r,u)}}t(V,"paintLayoutEdge");function y(e,r,n,i,s){return s.getEdgeNode?.(e,r,i)??(e?n.get(e)??{}:{})}t(y,"getRenderedNode");function Y(e,r){return typeof r.skipIntersect==="function"?r.skipIntersect(e):r.skipIntersect??!1}t(Y,"shouldSkipIntersect");function q(e,r){let n=r?.updatedPath??r?.originalPath,i=x(),{subGraphTitleTotalMargin:s}=St({flowchart:i.flowchart??{}});if(e.label){let o=Wn.get(e.id),{x:u,y:d}=Ki(e,r);o.attr("transform",`translate(${u}, ${d+s/2})`)}for(let[o,u]of[["startLeft",e.startLabelLeft],["startRight",e.startLabelRight],["endLeft",e.endLabelLeft],["endRight",e.endLabelRight]])if(u){let{x:d,y:c}=K(e,o,n);Ne.get(e.id)[o].attr("transform",`translate(${d}, ${c})`)}}t(q,"positionRenderedEdgeLabel");var te={startLeft:"start_left",startRight:"start_right",endLeft:"end_left",endRight:"end_right"};function K(e,r,n){let i=e.terminalLabelCenters?.[r];if(i)return{...i};if(!n)return{x:e.x,y:e.y};let s=r.startsWith("start")?e.arrowTypeStart:e.arrowTypeEnd;return N.calcTerminalLabelPosition(s?10:0,te[r],n)}t(K,"terminalLabelTranslate");
2
+ export{ua,da,W,On,io,pa,or};
@@ -1,9 +1,9 @@
1
- import{t,Ia,a,b,F,C,S,E,T,A,L,R,l,p,En,Cr,An,qi,qe,yo,ln,Gn,M}from"./chunk-veam6vk4.js";import"./chunk-9yfftz38.js";import{$n,hn}from"./chunk-y2rzeb4v.js";import{sr,zr,ua,Ur,kt}from"./chunk-vsjpnwsr.js";import{Ot}from"./chunk-h0c42zy3.js";import{Se,Te}from"./chunk-nvt9tkt4.js";var vn=Te(function(rr,nr){(function(e,r){typeof rr=="object"&&typeof nr<"u"?nr.exports=r():typeof define=="function"&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_isoWeek=r()})(rr,function(){var e="day";return function(r,n,i){var s=function(D){return D.add(4-D.isoWeekday(),e)},o=n.prototype;o.isoWeekYear=function(){return s(this).year()},o.isoWeek=function(D){if(!this.$utils().u(D))return this.add(7*(D-this.isoWeek()),e);var _,B,O,G,H=s(this),z=(_=this.isoWeekYear(),B=this.$u,O=(B?i.utc:i)().year(_).startOf("year"),G=4-O.isoWeekday(),O.isoWeekday()>4&&(G+=7),O.add(G,e));return H.diff(z,"week")+1},o.isoWeekday=function(D){return this.$utils().u(D)?this.day()||7:this.day(this.day()%7?D:D-7)};var u=o.startOf;o.startOf=function(D,_){var B=this.$utils(),O=!!B.u(_)||_;return B.p(D)==="isoweek"?O?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):u.bind(this)(D,_)}}})});var xn=Te(function(ir,ar){(function(e,r){typeof ir=="object"&&typeof ar<"u"?ar.exports=r():typeof define=="function"&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_customParseFormat=r()})(ir,function(){var e={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,n=/\d/,i=/\d\d/,s=/\d\d?/,o=/\d*[^-_:/,()\s\d]+/,u={},D=function(W){return(W=+W)+(W>68?1900:2000)},_=function(W){return function(Z){this[W]=+Z}},B=[/[+-]\d\d:?(\d\d)?|Z/,function(W){(this.zone||(this.zone={})).offset=function(Z){if(!Z)return 0;if(Z==="Z")return 0;var N=Z.match(/([+-]|\d\d)/g),tt=60*N[1]+(+N[2]||0);return tt===0?0:N[0]==="+"?-tt:tt}(W)}],O=function(W){var Z=u[W];return Z&&(Z.indexOf?Z:Z.s.concat(Z.f))},G=function(W,Z){var N,tt=u.meridiem;if(tt){for(var ft=1;ft<=24;ft+=1)if(W.indexOf(tt(ft,0,Z))>-1){N=ft>12;break}}else N=W===(Z?"pm":"PM");return N},H={A:[o,function(W){this.afternoon=G(W,!1)}],a:[o,function(W){this.afternoon=G(W,!0)}],Q:[n,function(W){this.month=3*(W-1)+1}],S:[n,function(W){this.milliseconds=100*+W}],SS:[i,function(W){this.milliseconds=10*+W}],SSS:[/\d{3}/,function(W){this.milliseconds=+W}],s:[s,_("seconds")],ss:[s,_("seconds")],m:[s,_("minutes")],mm:[s,_("minutes")],H:[s,_("hours")],h:[s,_("hours")],HH:[s,_("hours")],hh:[s,_("hours")],D:[s,_("day")],DD:[i,_("day")],Do:[o,function(W){var Z=u.ordinal,N=W.match(/\d+/);if(this.day=N[0],Z)for(var tt=1;tt<=31;tt+=1)Z(tt).replace(/\[|\]/g,"")===W&&(this.day=tt)}],w:[s,_("week")],ww:[i,_("week")],M:[s,_("month")],MM:[i,_("month")],MMM:[o,function(W){var Z=O("months"),N=(O("monthsShort")||Z.map(function(tt){return tt.slice(0,3)})).indexOf(W)+1;if(N<1)throw Error();this.month=N%12||N}],MMMM:[o,function(W){var Z=O("months").indexOf(W)+1;if(Z<1)throw Error();this.month=Z%12||Z}],Y:[/[+-]?\d+/,_("year")],YY:[i,function(W){this.year=D(W)}],YYYY:[/\d{4}/,_("year")],Z:B,ZZ:B};function z(W){var Z,N;Z=W,N=u&&u.formats;for(var tt=(W=Z.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(rt,nt,x){var U=x&&x.toUpperCase();return nt||N[x]||e[x]||N[U].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(I,V,d){return V||d.slice(1)})})).match(r),ft=tt.length,at=0;at<ft;at+=1){var j=tt[at],Y=H[j],f=Y&&Y[0],P=Y&&Y[1];tt[at]=P?{regex:f,parser:P}:j.replace(/^\[|\]$/g,"")}return function(rt){for(var nt={},x=0,U=0;x<ft;x+=1){var I=tt[x];if(typeof I=="string")U+=I.length;else{var{regex:V,parser:d}=I,w=rt.slice(U),v=V.exec(w)[0];d.call(nt,v),rt=rt.replace(v,"")}}return function(k){var Q=k.afternoon;if(Q!==void 0){var c=k.hours;Q?c<12&&(k.hours+=12):c===12&&(k.hours=0),delete k.afternoon}}(nt),nt}}return function(W,Z,N){N.p.customParseFormat=!0,W&&W.parseTwoDigitYear&&(D=W.parseTwoDigitYear);var tt=Z.prototype,ft=tt.parse;tt.parse=function(at){var{date:j,utc:Y,args:f}=at;this.$u=Y;var P=f[1];if(typeof P=="string"){var rt=f[2]===!0,nt=f[3]===!0,x=rt||nt,U=f[2];nt&&(U=f[2]),u=this.$locale(),!rt&&U&&(u=N.Ls[U]),this.$d=function(w,v,k,Q){try{if(["x","X"].indexOf(v)>-1)return new Date((v==="X"?1000:1)*w);var c=z(v)(w),{year:J,month:h,day:mt,hours:m,minutes:q,seconds:K,milliseconds:ut,zone:lt,week:it}=c,g=new Date,X=mt||(J||h?1:g.getDate()),et=J||g.getFullYear(),y=0;J&&!h||(y=h>0?h-1:g.getMonth());var ht,st=m||0,ot=q||0,yt=K||0,gt=ut||0;return lt?new Date(Date.UTC(et,y,X,st,ot,yt,gt+60*lt.offset*1000)):k?new Date(Date.UTC(et,y,X,st,ot,yt,gt)):(ht=new Date(et,y,X,st,ot,yt,gt),it&&(ht=Q(ht).week(it).toDate()),ht)}catch(vt){return new Date("")}}(j,P,Y,N),this.init(),U&&U!==!0&&(this.$L=this.locale(U).$L),x&&j!=this.format(P)&&(this.$d=new Date("")),u={}}else if(P instanceof Array)for(var I=P.length,V=1;V<=I;V+=1){f[1]=P[V-1];var d=N.apply(this,f);if(d.isValid()){this.$d=d.$d,this.$L=d.$L,this.init();break}V===I&&(this.$d=new Date(""))}else ft.call(this,at)}}})});var bn=Te(function(or,cr){(function(e,r){typeof or=="object"&&typeof cr<"u"?cr.exports=r():typeof define=="function"&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_advancedFormat=r()})(or,function(){return function(e,r){var n=r.prototype,i=n.format;n.format=function(s){var o=this,u=this.$locale();if(!this.isValid())return i.bind(this)(s);var D=this.$utils(),_=(s||"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(B){switch(B){case"Q":return Math.ceil((o.$M+1)/3);case"Do":return u.ordinal(o.$D);case"gggg":return o.weekYear();case"GGGG":return o.isoWeekYear();case"wo":return u.ordinal(o.week(),"W");case"w":case"ww":return D.s(o.week(),B==="w"?1:2,"0");case"W":case"WW":return D.s(o.isoWeek(),B==="W"?1:2,"0");case"k":case"kk":return D.s(String(o.$H===0?24:o.$H),B==="k"?1:2,"0");case"X":return Math.floor(o.$d.getTime()/1000);case"x":return o.$d.getTime();case"z":return"["+o.offsetName()+"]";case"zzz":return"["+o.offsetName("long")+"]";default:return B}});return i.bind(this)(_)}}})});var wn=Te(function(ur,lr){(function(e,r){typeof ur=="object"&&typeof lr<"u"?lr.exports=r():typeof define=="function"&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_duration=r()})(ur,function(){var e,r,n=1000,i=60000,s=3600000,o=86400000,u=31536000000,D=2628000000,_=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,B=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,O={years:u,months:D,days:o,hours:s,minutes:i,seconds:n,milliseconds:1,weeks:604800000},G=function(j){return j instanceof ft},H=function(j,Y,f){return new ft(j,f,Y.$l)},z=function(j){return r.p(j)+"s"},W=function(j){return j<0},Z=function(j){return W(j)?Math.ceil(j):Math.floor(j)},N=function(j){return Math.abs(j)},tt=function(j,Y){return j?W(j)?{negative:!0,format:""+N(j)+Y}:{negative:!1,format:""+j+Y}:{negative:!1,format:""}},ft=function(){function j(f,P,rt){var nt=this;if(this.$d={},this.$l=rt,f===void 0&&(this.$ms=0,this.parseFromMilliseconds()),P)return H(f*O[z(P)],this);if(typeof f=="number")return this.$ms=f,this.parseFromMilliseconds(),this;if(typeof f=="object")return Object.keys(f).forEach(function(I){nt.$d[z(I)]=f[I]}),this.calMilliseconds(),this;if(typeof f=="string"){var x=f.match(_);if(x){var U=x.slice(2).map(function(I){return I!=null?Number(I):0});return this.$d.years=U[0],this.$d.months=U[1],this.$d.weeks=U[2],this.$d.days=U[3],this.$d.hours=U[4],this.$d.minutes=U[5],this.$d.seconds=U[6],this.calMilliseconds(),this}}return this}var Y=j.prototype;return Y.calMilliseconds=function(){var f=this;this.$ms=Object.keys(this.$d).reduce(function(P,rt){return P+(f.$d[rt]||0)*O[rt]},0)},Y.parseFromMilliseconds=function(){var f=this.$ms;this.$d.years=Z(f/u),f%=u,this.$d.months=Z(f/D),f%=D,this.$d.days=Z(f/o),f%=o,this.$d.hours=Z(f/s),f%=s,this.$d.minutes=Z(f/i),f%=i,this.$d.seconds=Z(f/n),f%=n,this.$d.milliseconds=f},Y.toISOString=function(){var f=tt(this.$d.years,"Y"),P=tt(this.$d.months,"M"),rt=+this.$d.days||0;this.$d.weeks&&(rt+=7*this.$d.weeks);var nt=tt(rt,"D"),x=tt(this.$d.hours,"H"),U=tt(this.$d.minutes,"M"),I=this.$d.seconds||0;this.$d.milliseconds&&(I+=this.$d.milliseconds/1000,I=Math.round(1000*I)/1000);var V=tt(I,"S"),d=f.negative||P.negative||nt.negative||x.negative||U.negative||V.negative,w=x.format||U.format||V.format?"T":"",v=(d?"-":"")+"P"+f.format+P.format+nt.format+w+x.format+U.format+V.format;return v==="P"||v==="-P"?"P0D":v},Y.toJSON=function(){return this.toISOString()},Y.format=function(f){var P=f||"YYYY-MM-DDTHH:mm:ss",rt={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 P.replace(B,function(nt,x){return x||String(rt[nt])})},Y.as=function(f){return this.$ms/O[z(f)]},Y.get=function(f){var P=this.$ms,rt=z(f);return rt==="milliseconds"?P%=1000:P=rt==="weeks"?Z(P/O[rt]):this.$d[rt],P||0},Y.add=function(f,P,rt){var nt;return nt=P?f*O[z(P)]:G(f)?f.$ms:H(f,this).$ms,H(this.$ms+nt*(rt?-1:1),this)},Y.subtract=function(f,P){return this.add(f,P,!0)},Y.locale=function(f){var P=this.clone();return P.$l=f,P},Y.clone=function(){return H(this.$ms,this)},Y.humanize=function(f){return e().add(this.$ms,"ms").locale(this.$l).fromNow(!f)},Y.valueOf=function(){return this.asMilliseconds()},Y.milliseconds=function(){return this.get("milliseconds")},Y.asMilliseconds=function(){return this.as("milliseconds")},Y.seconds=function(){return this.get("seconds")},Y.asSeconds=function(){return this.as("seconds")},Y.minutes=function(){return this.get("minutes")},Y.asMinutes=function(){return this.as("minutes")},Y.hours=function(){return this.get("hours")},Y.asHours=function(){return this.as("hours")},Y.days=function(){return this.get("days")},Y.asDays=function(){return this.as("days")},Y.weeks=function(){return this.get("weeks")},Y.asWeeks=function(){return this.as("weeks")},Y.months=function(){return this.get("months")},Y.asMonths=function(){return this.as("months")},Y.years=function(){return this.get("years")},Y.asYears=function(){return this.as("years")},j}(),at=function(j,Y,f){return j.add(Y.years()*f,"y").add(Y.months()*f,"M").add(Y.days()*f,"d").add(Y.hours()*f,"h").add(Y.minutes()*f,"m").add(Y.seconds()*f,"s").add(Y.milliseconds()*f,"ms")};return function(j,Y,f){e=f,r=f().$utils(),f.duration=function(nt,x){var U=f.locale();return H(nt,{$l:U},x)},f.isDuration=G;var P=Y.prototype.add,rt=Y.prototype.subtract;Y.prototype.add=function(nt,x){return G(nt)?at(this,nt,1):P.bind(this)(nt,x)},Y.prototype.subtract=function(nt,x){return G(nt)?at(this,nt,-1):rt.bind(this)(nt,x)}}})});function Ee(e){return e}var ye=1,Ae=2,Oe=3,he=4,_r=0.000001;function Bn(e){return"translate("+e+",0)"}function Zn(e){return"translate(0,"+e+")"}function jn(e){return(r)=>+e(r)}function Xn(e,r){if(r=Math.max(0,e.bandwidth()-r*2)/2,e.round())r=Math.round(r);return(n)=>+e(n)+r}function qn(){return!this.__axis}function Yr(e,r){var n=[],i=null,s=null,o=6,u=6,D=3,_=typeof window<"u"&&window.devicePixelRatio>1?0:0.5,B=e===ye||e===he?-1:1,O=e===he||e===Ae?"x":"y",G=e===ye||e===Oe?Bn:Zn;function H(z){var W=i==null?r.ticks?r.ticks.apply(r,n):r.domain():i,Z=s==null?r.tickFormat?r.tickFormat.apply(r,n):Ee:s,N=Math.max(o,0)+D,tt=r.range(),ft=+tt[0]+_,at=+tt[tt.length-1]+_,j=(r.bandwidth?Xn:jn)(r.copy(),_),Y=z.selection?z.selection():z,f=Y.selectAll(".domain").data([null]),P=Y.selectAll(".tick").data(W,r).order(),rt=P.exit(),nt=P.enter().append("g").attr("class","tick"),x=P.select("line"),U=P.select("text");if(f=f.merge(f.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),P=P.merge(nt),x=x.merge(nt.append("line").attr("stroke","currentColor").attr(O+"2",B*o)),U=U.merge(nt.append("text").attr("fill","currentColor").attr(O,B*N).attr("dy",e===ye?"0em":e===Oe?"0.71em":"0.32em")),z!==Y)f=f.transition(z),P=P.transition(z),x=x.transition(z),U=U.transition(z),rt=rt.transition(z).attr("opacity",_r).attr("transform",function(I){return isFinite(I=j(I))?G(I+_):this.getAttribute("transform")}),nt.attr("opacity",_r).attr("transform",function(I){var V=this.parentNode.__axis;return G((V&&isFinite(V=V(I))?V:j(I))+_)});rt.remove(),f.attr("d",e===he||e===Ae?u?"M"+B*u+","+ft+"H"+_+"V"+at+"H"+B*u:"M"+_+","+ft+"V"+at:u?"M"+ft+","+B*u+"V"+_+"H"+at+"V"+B*u:"M"+ft+","+_+"H"+at),P.attr("opacity",1).attr("transform",function(I){return G(j(I)+_)}),x.attr(O+"2",B*o),U.attr(O,B*N).text(Z),Y.filter(qn).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===Ae?"start":e===he?"end":"middle"),Y.each(function(){this.__axis=j})}return H.scale=function(z){return arguments.length?(r=z,H):r},H.ticks=function(){return n=Array.from(arguments),H},H.tickArguments=function(z){return arguments.length?(n=z==null?[]:Array.from(z),H):n.slice()},H.tickValues=function(z){return arguments.length?(i=z==null?null:Array.from(z),H):i&&i.slice()},H.tickFormat=function(z){return arguments.length?(s=z,H):s},H.tickSize=function(z){return arguments.length?(o=u=+z,H):o},H.tickSizeInner=function(z){return arguments.length?(o=+z,H):o},H.tickSizeOuter=function(z){return arguments.length?(u=+z,H):u},H.tickPadding=function(z){return arguments.length?(D=+z,H):D},H.offset=function(z){return arguments.length?(_=+z,H):_},H}function $e(e){return Yr(ye,e)}function He(e){return Yr(Oe,e)}var Fr=Math.PI/180,Ir=180/Math.PI;var ge=18,Lr=0.96422,Wr=1,Er=0.82521,Ar=0.13793103448275862,Qt=0.20689655172413793,Or=3*Qt*Qt,Qn=Qt*Qt*Qt;function $r(e){if(e instanceof Ft)return new Ft(e.l,e.a,e.b,e.opacity);if(e instanceof At)return Nr(e);if(!(e instanceof qe))e=qi(e);var r=ze(e.r),n=ze(e.g),i=ze(e.b),s=Ne((0.2225045*r+0.7168786*n+0.0606169*i)/Wr),o,u;if(r===n&&n===i)o=u=s;else o=Ne((0.4360747*r+0.3850649*n+0.1430804*i)/Lr),u=Ne((0.0139322*r+0.0971045*n+0.7141733*i)/Er);return new Ft(116*s-16,500*(o-s),200*(s-u),e.opacity)}function Hr(e,r,n,i){return arguments.length===1?$r(e):new Ft(e,r,n,i==null?1:i)}function Ft(e,r,n,i){this.l=+e,this.a=+r,this.b=+n,this.opacity=+i}En(Ft,Hr,Cr(An,{brighter(e){return new Ft(this.l+ge*(e==null?1:e),this.a,this.b,this.opacity)},darker(e){return new Ft(this.l-ge*(e==null?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,r=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return r=Lr*Pe(r),e=Wr*Pe(e),n=Er*Pe(n),new qe(Ve(3.1338561*r-1.6168667*e-0.4906146*n),Ve(-0.9787684*r+1.9161415*e+0.033454*n),Ve(0.0719453*r-0.2289914*e+1.4052427*n),this.opacity)}}));function Ne(e){return e>Qn?Math.pow(e,0.3333333333333333):e/Or+Ar}function Pe(e){return e>Qt?e*e*e:Or*(e-Ar)}function Ve(e){return 255*(e<=0.0031308?12.92*e:1.055*Math.pow(e,0.4166666666666667)-0.055)}function ze(e){return(e/=255)<=0.04045?e/12.92:Math.pow((e+0.055)/1.055,2.4)}function Jn(e){if(e instanceof At)return new At(e.h,e.c,e.l,e.opacity);if(!(e instanceof Ft))e=$r(e);if(e.a===0&&e.b===0)return new At(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var r=Math.atan2(e.b,e.a)*Ir;return new At(r<0?r+360:r,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function ke(e,r,n,i){return arguments.length===1?Jn(e):new At(e,r,n,i==null?1:i)}function At(e,r,n,i){this.h=+e,this.c=+r,this.l=+n,this.opacity=+i}function Nr(e){if(isNaN(e.h))return new Ft(e.l,0,0,e.opacity);var r=e.h*Fr;return new Ft(e.l,Math.cos(r)*e.c,Math.sin(r)*e.c,e.opacity)}En(At,ke,Cr(An,{brighter(e){return new At(this.h,this.c,this.l+ge*(e==null?1:e),this.opacity)},darker(e){return new At(this.h,this.c,this.l-ge*(e==null?1:e),this.opacity)},rgb(){return Nr(this).rgb()}}));function Pr(e){return function(r,n){var i=e((r=ke(r)).h,(n=ke(n)).h),s=ln(r.c,n.c),o=ln(r.l,n.l),u=ln(r.opacity,n.opacity);return function(D){return r.h=i(D),r.c=s(D),r.l=o(D),r.opacity=u(D),r+""}}}var Vr=Pr(yo),Ls=Pr(ln);function Re(e,r){e=e.slice();var n=0,i=e.length-1,s=e[n],o=e[i],u;if(o<s)u=n,n=i,i=u,u=s,s=o,o=u;return e[n]=r.floor(s),e[i]=r.ceil(o),e}var Be=new Date,Ze=new Date;function dt(e,r,n,i){function s(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}if(s.floor=(o)=>(e(o=new Date(+o)),o),s.ceil=(o)=>(e(o=new Date(o-1)),r(o,1),e(o),o),s.round=(o)=>{let u=s(o),D=s.ceil(o);return o-u<D-o?u:D},s.offset=(o,u)=>(r(o=new Date(+o),u==null?1:Math.floor(u)),o),s.range=(o,u,D)=>{let _=[];if(o=s.ceil(o),D=D==null?1:Math.floor(D),!(o<u)||!(D>0))return _;let B;do _.push(B=new Date(+o)),r(o,D),e(o);while(B<o&&o<u);return _},s.filter=(o)=>dt((u)=>{if(u>=u)while(e(u),!o(u))u.setTime(u-1)},(u,D)=>{if(u>=u)if(D<0)while(++D<=0)while(r(u,-1),!o(u));else while(--D>=0)while(r(u,1),!o(u));}),n)s.count=(o,u)=>(Be.setTime(+o),Ze.setTime(+u),e(Be),e(Ze),Math.floor(n(Be,Ze))),s.every=(o)=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:!(o>1)?s:s.filter(i?(u)=>i(u)%o===0:(u)=>s.count(0,u)%o===0));return s}var It=dt(()=>{},(e,r)=>{e.setTime(+e+r)},(e,r)=>r-e);It.every=(e)=>{if(e=Math.floor(e),!isFinite(e)||!(e>0))return null;if(!(e>1))return It;return dt((r)=>{r.setTime(Math.floor(r/e)*e)},(r,n)=>{r.setTime(+r+n*e)},(r,n)=>(n-r)/e)};var Rr=It.range;var Ct=1000,xt=60000,Ut=3600000,Vt=86400000,se=604800000,je=2592000000,pe=31536000000;var bt=dt((e)=>{e.setTime(e-e.getMilliseconds())},(e,r)=>{e.setTime(+e+r*Ct)},(e,r)=>(r-e)/Ct,(e)=>e.getUTCSeconds()),Br=bt.range;var $t=dt((e)=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ct)},(e,r)=>{e.setTime(+e+r*xt)},(e,r)=>(r-e)/xt,(e)=>e.getMinutes()),Kn=$t.range,ve=dt((e)=>{e.setUTCSeconds(0,0)},(e,r)=>{e.setTime(+e+r*xt)},(e,r)=>(r-e)/xt,(e)=>e.getUTCMinutes()),ti=ve.range;var Ht=dt((e)=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ct-e.getMinutes()*xt)},(e,r)=>{e.setTime(+e+r*Ut)},(e,r)=>(r-e)/Ut,(e)=>e.getHours()),ei=Ht.range,xe=dt((e)=>{e.setUTCMinutes(0,0,0)},(e,r)=>{e.setTime(+e+r*Ut)},(e,r)=>(r-e)/Ut,(e)=>e.getUTCHours()),ri=xe.range;var St=dt((e)=>e.setHours(0,0,0,0),(e,r)=>e.setDate(e.getDate()+r),(e,r)=>(r-e-(r.getTimezoneOffset()-e.getTimezoneOffset())*xt)/Vt,(e)=>e.getDate()-1),ni=St.range,oe=dt((e)=>{e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCDate(e.getUTCDate()+r)},(e,r)=>(r-e)/Vt,(e)=>e.getUTCDate()-1),ii=oe.range,be=dt((e)=>{e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCDate(e.getUTCDate()+r)},(e,r)=>(r-e)/Vt,(e)=>Math.floor(e/Vt)),ai=be.range;function Bt(e){return dt((r)=>{r.setDate(r.getDate()-(r.getDay()+7-e)%7),r.setHours(0,0,0,0)},(r,n)=>{r.setDate(r.getDate()+n*7)},(r,n)=>(n-r-(n.getTimezoneOffset()-r.getTimezoneOffset())*xt)/se)}var _t=Bt(0),zt=Bt(1),we=Bt(2),Me=Bt(3),Lt=Bt(4),De=Bt(5),Ce=Bt(6),Zr=_t.range,si=zt.range,oi=we.range,ci=Me.range,ui=Lt.range,li=De.range,fi=Ce.range;function Zt(e){return dt((r)=>{r.setUTCDate(r.getUTCDate()-(r.getUTCDay()+7-e)%7),r.setUTCHours(0,0,0,0)},(r,n)=>{r.setUTCDate(r.getUTCDate()+n*7)},(r,n)=>(n-r)/se)}var jt=Zt(0),Jt=Zt(1),jr=Zt(2),Xr=Zt(3),Rt=Zt(4),Gr=Zt(5),qr=Zt(6),Qr=jt.range,di=Jt.range,mi=jr.range,hi=Xr.range,yi=Rt.range,gi=Gr.range,ki=qr.range;var Nt=dt((e)=>{e.setDate(1),e.setHours(0,0,0,0)},(e,r)=>{e.setMonth(e.getMonth()+r)},(e,r)=>r.getMonth()-e.getMonth()+(r.getFullYear()-e.getFullYear())*12,(e)=>e.getMonth()),pi=Nt.range,_e=dt((e)=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCMonth(e.getUTCMonth()+r)},(e,r)=>r.getUTCMonth()-e.getUTCMonth()+(r.getUTCFullYear()-e.getUTCFullYear())*12,(e)=>e.getUTCMonth()),Ti=_e.range;var wt=dt((e)=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,r)=>{e.setFullYear(e.getFullYear()+r)},(e,r)=>r.getFullYear()-e.getFullYear(),(e)=>e.getFullYear());wt.every=(e)=>!isFinite(e=Math.floor(e))||!(e>0)?null:dt((r)=>{r.setFullYear(Math.floor(r.getFullYear()/e)*e),r.setMonth(0,1),r.setHours(0,0,0,0)},(r,n)=>{r.setFullYear(r.getFullYear()+n*e)});var vi=wt.range,Yt=dt((e)=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r)},(e,r)=>r.getUTCFullYear()-e.getUTCFullYear(),(e)=>e.getUTCFullYear());Yt.every=(e)=>!isFinite(e=Math.floor(e))||!(e>0)?null:dt((r)=>{r.setUTCFullYear(Math.floor(r.getUTCFullYear()/e)*e),r.setUTCMonth(0,1),r.setUTCHours(0,0,0,0)},(r,n)=>{r.setUTCFullYear(r.getUTCFullYear()+n*e)});var xi=Yt.range;function Jr(e,r,n,i,s,o){let u=[[bt,1,Ct],[bt,5,5*Ct],[bt,15,15*Ct],[bt,30,30*Ct],[o,1,xt],[o,5,5*xt],[o,15,15*xt],[o,30,30*xt],[s,1,Ut],[s,3,3*Ut],[s,6,6*Ut],[s,12,12*Ut],[i,1,Vt],[i,2,2*Vt],[n,1,se],[r,1,je],[r,3,3*je],[e,1,pe]];function D(B,O,G){let H=O<B;if(H)[B,O]=[O,B];let z=G&&typeof G.range==="function"?G:_(B,O,G),W=z?z.range(B,+O+1):[];return H?W.reverse():W}function _(B,O,G){let H=Math.abs(O-B)/G,z=sr(([,,N])=>N).right(u,H);if(z===u.length)return e.every(zr(B/pe,O/pe,G));if(z===0)return It.every(Math.max(zr(B,O,G),1));let[W,Z]=u[H/u[z-1][2]<u[z][2]/H?z-1:z];return W.every(Z)}return[D,_]}var[bi,wi]=Jr(Yt,_e,jt,be,xe,ve),[Xe,Ge]=Jr(wt,Nt,_t,St,Ht,$t);function Qe(e){if(0<=e.y&&e.y<100){var r=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return r.setFullYear(e.y),r}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Je(e){if(0<=e.y&&e.y<100){var r=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return r.setUTCFullYear(e.y),r}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function ce(e,r,n){return{y:e,m:r,d:n,H:0,M:0,S:0,L:0}}function Ke(e){var{dateTime:r,date:n,time:i,periods:s,days:o,shortDays:u,months:D,shortMonths:_}=e,B=ue(s),O=le(s),G=ue(o),H=le(o),z=ue(u),W=le(u),Z=ue(D),N=le(D),tt=ue(_),ft=le(_),at={a:k,A:Q,b:c,B:J,c:null,d:an,e:an,f:Zi,g:na,G:aa,H:zi,I:Ri,j:Bi,L:fn,m:ji,M:Xi,p:h,q:mt,Q:cn,s:un,S:Gi,u:Qi,U:Ji,V:Ki,w:ta,W:ea,x:null,X:null,y:ra,Y:ia,Z:sa,"%":on},j={a:m,A:q,b:K,B:ut,c:null,d:sn,e:sn,f:fa,g:xa,G:wa,H:oa,I:ca,j:la,L:mn,m:da,M:ma,p:lt,q:it,Q:cn,s:un,S:ha,u:ya,U:ga,V:ka,w:pa,W:Ta,x:null,X:null,y:va,Y:ba,Z:Ma,"%":on},Y={a:x,A:U,b:I,B:V,c:d,d:rn,e:rn,f:Hi,g:en,G:tn,H:nn,I:nn,j:Ei,L:$i,m:Wi,M:Ai,p:nt,q:Li,Q:Pi,s:Vi,S:Oi,u:_i,U:Yi,V:Fi,w:Si,W:Ii,x:w,X:v,y:en,Y:tn,Z:Ui,"%":Ni};at.x=f(n,at),at.X=f(i,at),at.c=f(r,at),j.x=f(n,j),j.X=f(i,j),j.c=f(r,j);function f(g,X){return function(et){var y=[],ht=-1,st=0,ot=g.length,yt,gt,vt;if(!(et instanceof Date))et=new Date(+et);while(++ht<ot)if(g.charCodeAt(ht)===37){if(y.push(g.slice(st,ht)),(gt=Kr[yt=g.charAt(++ht)])!=null)yt=g.charAt(++ht);else gt=yt==="e"?" ":"0";if(vt=X[yt])yt=vt(et,gt);y.push(yt),st=ht+1}return y.push(g.slice(st,ht)),y.join("")}}function P(g,X){return function(et){var y=ce(1900,void 0,1),ht=rt(y,g,et+="",0),st,ot;if(ht!=et.length)return null;if("Q"in y)return new Date(y.Q);if("s"in y)return new Date(y.s*1000+("L"in y?y.L:0));if(X&&!("Z"in y))y.Z=0;if("p"in y)y.H=y.H%12+y.p*12;if(y.m===void 0)y.m="q"in y?y.q:0;if("V"in y){if(y.V<1||y.V>53)return null;if(!("w"in y))y.w=1;if("Z"in y)st=Je(ce(y.y,0,1)),ot=st.getUTCDay(),st=ot>4||ot===0?Jt.ceil(st):Jt(st),st=oe.offset(st,(y.V-1)*7),y.y=st.getUTCFullYear(),y.m=st.getUTCMonth(),y.d=st.getUTCDate()+(y.w+6)%7;else st=Qe(ce(y.y,0,1)),ot=st.getDay(),st=ot>4||ot===0?zt.ceil(st):zt(st),st=St.offset(st,(y.V-1)*7),y.y=st.getFullYear(),y.m=st.getMonth(),y.d=st.getDate()+(y.w+6)%7}else if("W"in y||"U"in y){if(!("w"in y))y.w="u"in y?y.u%7:("W"in y)?1:0;ot="Z"in y?Je(ce(y.y,0,1)).getUTCDay():Qe(ce(y.y,0,1)).getDay(),y.m=0,y.d="W"in y?(y.w+6)%7+y.W*7-(ot+5)%7:y.w+y.U*7-(ot+6)%7}if("Z"in y)return y.H+=y.Z/100|0,y.M+=y.Z%100,Je(y);return Qe(y)}}function rt(g,X,et,y){var ht=0,st=X.length,ot=et.length,yt,gt;while(ht<st){if(y>=ot)return-1;if(yt=X.charCodeAt(ht++),yt===37){if(yt=X.charAt(ht++),gt=Y[yt in Kr?X.charAt(ht++):yt],!gt||(y=gt(g,et,y))<0)return-1}else if(yt!=et.charCodeAt(y++))return-1}return y}function nt(g,X,et){var y=B.exec(X.slice(et));return y?(g.p=O.get(y[0].toLowerCase()),et+y[0].length):-1}function x(g,X,et){var y=z.exec(X.slice(et));return y?(g.w=W.get(y[0].toLowerCase()),et+y[0].length):-1}function U(g,X,et){var y=G.exec(X.slice(et));return y?(g.w=H.get(y[0].toLowerCase()),et+y[0].length):-1}function I(g,X,et){var y=tt.exec(X.slice(et));return y?(g.m=ft.get(y[0].toLowerCase()),et+y[0].length):-1}function V(g,X,et){var y=Z.exec(X.slice(et));return y?(g.m=N.get(y[0].toLowerCase()),et+y[0].length):-1}function d(g,X,et){return rt(g,r,X,et)}function w(g,X,et){return rt(g,n,X,et)}function v(g,X,et){return rt(g,i,X,et)}function k(g){return u[g.getDay()]}function Q(g){return o[g.getDay()]}function c(g){return _[g.getMonth()]}function J(g){return D[g.getMonth()]}function h(g){return s[+(g.getHours()>=12)]}function mt(g){return 1+~~(g.getMonth()/3)}function m(g){return u[g.getUTCDay()]}function q(g){return o[g.getUTCDay()]}function K(g){return _[g.getUTCMonth()]}function ut(g){return D[g.getUTCMonth()]}function lt(g){return s[+(g.getUTCHours()>=12)]}function it(g){return 1+~~(g.getUTCMonth()/3)}return{format:function(g){var X=f(g+="",at);return X.toString=function(){return g},X},parse:function(g){var X=P(g+="",!1);return X.toString=function(){return g},X},utcFormat:function(g){var X=f(g+="",j);return X.toString=function(){return g},X},utcParse:function(g){var X=P(g+="",!0);return X.toString=function(){return g},X}}}var Kr={"-":"",_:" ","0":"0"},Tt=/^\s*\d+/,Mi=/^%/,Di=/[\\^$*+?|[\]().{}]/g;function ct(e,r,n){var i=e<0?"-":"",s=(i?-e:e)+"",o=s.length;return i+(o<n?Array(n-o+1).join(r)+s:s)}function Ci(e){return e.replace(Di,"\\$&")}function ue(e){return new RegExp("^(?:"+e.map(Ci).join("|")+")","i")}function le(e){return new Map(e.map((r,n)=>[r.toLowerCase(),n]))}function Si(e,r,n){var i=Tt.exec(r.slice(n,n+1));return i?(e.w=+i[0],n+i[0].length):-1}function _i(e,r,n){var i=Tt.exec(r.slice(n,n+1));return i?(e.u=+i[0],n+i[0].length):-1}function Yi(e,r,n){var i=Tt.exec(r.slice(n,n+2));return i?(e.U=+i[0],n+i[0].length):-1}function Fi(e,r,n){var i=Tt.exec(r.slice(n,n+2));return i?(e.V=+i[0],n+i[0].length):-1}function Ii(e,r,n){var i=Tt.exec(r.slice(n,n+2));return i?(e.W=+i[0],n+i[0].length):-1}function tn(e,r,n){var i=Tt.exec(r.slice(n,n+4));return i?(e.y=+i[0],n+i[0].length):-1}function en(e,r,n){var i=Tt.exec(r.slice(n,n+2));return i?(e.y=+i[0]+(+i[0]>68?1900:2000),n+i[0].length):-1}function Ui(e,r,n){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(r.slice(n,n+6));return i?(e.Z=i[1]?0:-(i[2]+(i[3]||"00")),n+i[0].length):-1}function Li(e,r,n){var i=Tt.exec(r.slice(n,n+1));return i?(e.q=i[0]*3-3,n+i[0].length):-1}function Wi(e,r,n){var i=Tt.exec(r.slice(n,n+2));return i?(e.m=i[0]-1,n+i[0].length):-1}function rn(e,r,n){var i=Tt.exec(r.slice(n,n+2));return i?(e.d=+i[0],n+i[0].length):-1}function Ei(e,r,n){var i=Tt.exec(r.slice(n,n+3));return i?(e.m=0,e.d=+i[0],n+i[0].length):-1}function nn(e,r,n){var i=Tt.exec(r.slice(n,n+2));return i?(e.H=+i[0],n+i[0].length):-1}function Ai(e,r,n){var i=Tt.exec(r.slice(n,n+2));return i?(e.M=+i[0],n+i[0].length):-1}function Oi(e,r,n){var i=Tt.exec(r.slice(n,n+2));return i?(e.S=+i[0],n+i[0].length):-1}function $i(e,r,n){var i=Tt.exec(r.slice(n,n+3));return i?(e.L=+i[0],n+i[0].length):-1}function Hi(e,r,n){var i=Tt.exec(r.slice(n,n+6));return i?(e.L=Math.floor(i[0]/1000),n+i[0].length):-1}function Ni(e,r,n){var i=Mi.exec(r.slice(n,n+1));return i?n+i[0].length:-1}function Pi(e,r,n){var i=Tt.exec(r.slice(n));return i?(e.Q=+i[0],n+i[0].length):-1}function Vi(e,r,n){var i=Tt.exec(r.slice(n));return i?(e.s=+i[0],n+i[0].length):-1}function an(e,r){return ct(e.getDate(),r,2)}function zi(e,r){return ct(e.getHours(),r,2)}function Ri(e,r){return ct(e.getHours()%12||12,r,2)}function Bi(e,r){return ct(1+St.count(wt(e),e),r,3)}function fn(e,r){return ct(e.getMilliseconds(),r,3)}function Zi(e,r){return fn(e,r)+"000"}function ji(e,r){return ct(e.getMonth()+1,r,2)}function Xi(e,r){return ct(e.getMinutes(),r,2)}function Gi(e,r){return ct(e.getSeconds(),r,2)}function Qi(e){var r=e.getDay();return r===0?7:r}function Ji(e,r){return ct(_t.count(wt(e)-1,e),r,2)}function dn(e){var r=e.getDay();return r>=4||r===0?Lt(e):Lt.ceil(e)}function Ki(e,r){return e=dn(e),ct(Lt.count(wt(e),e)+(wt(e).getDay()===4),r,2)}function ta(e){return e.getDay()}function ea(e,r){return ct(zt.count(wt(e)-1,e),r,2)}function ra(e,r){return ct(e.getFullYear()%100,r,2)}function na(e,r){return e=dn(e),ct(e.getFullYear()%100,r,2)}function ia(e,r){return ct(e.getFullYear()%1e4,r,4)}function aa(e,r){var n=e.getDay();return e=n>=4||n===0?Lt(e):Lt.ceil(e),ct(e.getFullYear()%1e4,r,4)}function sa(e){var r=e.getTimezoneOffset();return(r>0?"-":(r*=-1,"+"))+ct(r/60|0,"0",2)+ct(r%60,"0",2)}function sn(e,r){return ct(e.getUTCDate(),r,2)}function oa(e,r){return ct(e.getUTCHours(),r,2)}function ca(e,r){return ct(e.getUTCHours()%12||12,r,2)}function la(e,r){return ct(1+oe.count(Yt(e),e),r,3)}function mn(e,r){return ct(e.getUTCMilliseconds(),r,3)}function fa(e,r){return mn(e,r)+"000"}function da(e,r){return ct(e.getUTCMonth()+1,r,2)}function ma(e,r){return ct(e.getUTCMinutes(),r,2)}function ha(e,r){return ct(e.getUTCSeconds(),r,2)}function ya(e){var r=e.getUTCDay();return r===0?7:r}function ga(e,r){return ct(jt.count(Yt(e)-1,e),r,2)}function yn(e){var r=e.getUTCDay();return r>=4||r===0?Rt(e):Rt.ceil(e)}function ka(e,r){return e=yn(e),ct(Rt.count(Yt(e),e)+(Yt(e).getUTCDay()===4),r,2)}function pa(e){return e.getUTCDay()}function Ta(e,r){return ct(Jt.count(Yt(e)-1,e),r,2)}function va(e,r){return ct(e.getUTCFullYear()%100,r,2)}function xa(e,r){return e=yn(e),ct(e.getUTCFullYear()%100,r,2)}function ba(e,r){return ct(e.getUTCFullYear()%1e4,r,4)}function wa(e,r){var n=e.getUTCDay();return e=n>=4||n===0?Rt(e):Rt.ceil(e),ct(e.getUTCFullYear()%1e4,r,4)}function Ma(){return"+0000"}function on(){return"%"}function cn(e){return+e}function un(e){return Math.floor(+e/1000)}var Kt,Xt,gn,kn,pn;tr({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 tr(e){return Kt=Ke(e),Xt=Kt.format,gn=Kt.parse,kn=Kt.utcFormat,pn=Kt.utcParse,Kt}function Da(e){return new Date(e)}function Ca(e){return e instanceof Date?+e:+new Date(+e)}function Tn(e,r,n,i,s,o,u,D,_,B){var O=Ur(),{invert:G,domain:H}=O,z=B(".%L"),W=B(":%S"),Z=B("%I:%M"),N=B("%I %p"),tt=B("%a %d"),ft=B("%b %d"),at=B("%B"),j=B("%Y");function Y(f){return(_(f)<f?z:D(f)<f?W:u(f)<f?Z:o(f)<f?N:i(f)<f?s(f)<f?tt:ft:n(f)<f?at:j)(f)}return O.invert=function(f){return new Date(G(f))},O.domain=function(f){return arguments.length?H(Array.from(f,Ca)):H().map(Da)},O.ticks=function(f){var P=H();return e(P[0],P[P.length-1],f==null?10:f)},O.tickFormat=function(f,P){return P==null?Y:B(P)},O.nice=function(f){var P=H();if(!f||typeof f.range!=="function")f=r(P[0],P[P.length-1],f==null?10:f);return f?H(Re(P,f)):O},O.copy=function(){return ua(O,Tn(e,r,n,i,s,o,u,D,_,B))},O}function er(){return Ot.apply(Tn(Xe,Ge,wt,Nt,_t,St,Ht,$t,bt,Xt).domain([new Date(2000,0,1),new Date(2000,0,2)]),arguments)}var Sn=Se(Gn(),1),Mt=Se(Ia(),1),_n=Se(vn(),1),Yn=Se(xn(),1),Fn=Se(bn(),1),ee=Se(Ia(),1),Rn=Se(wn(),1);var dr=function(){var e=t(function(V,d,w,v){for(w=w||{},v=V.length;v--;w[V[v]]=d);return w},"o"),r=[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],i=[1,27],s=[1,28],o=[1,29],u=[1,30],D=[1,31],_=[1,32],B=[1,33],O=[1,34],G=[1,9],H=[1,10],z=[1,11],W=[1,12],Z=[1,13],N=[1,14],tt=[1,15],ft=[1,16],at=[1,19],j=[1,20],Y=[1,21],f=[1,22],P=[1,23],rt=[1,25],nt=[1,35],x={trace:t(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:t(function(d,w,v,k,Q,c,J){var h=c.length-1;switch(Q){case 1:return c[h-1];case 2:this.$=[];break;case 3:c[h-1].push(c[h]),this.$=c[h-1];break;case 4:case 5:this.$=c[h];break;case 6:case 7:this.$=[];break;case 8:k.setWeekday("monday");break;case 9:k.setWeekday("tuesday");break;case 10:k.setWeekday("wednesday");break;case 11:k.setWeekday("thursday");break;case 12:k.setWeekday("friday");break;case 13:k.setWeekday("saturday");break;case 14:k.setWeekday("sunday");break;case 15:k.setWeekend("friday");break;case 16:k.setWeekend("saturday");break;case 17:k.setDateFormat(c[h].substr(11)),this.$=c[h].substr(11);break;case 18:k.enableInclusiveEndDates(),this.$=c[h].substr(18);break;case 19:k.TopAxis(),this.$=c[h].substr(8);break;case 20:k.setAxisFormat(c[h].substr(11)),this.$=c[h].substr(11);break;case 21:k.setTickInterval(c[h].substr(13)),this.$=c[h].substr(13);break;case 22:k.setExcludes(c[h].substr(9)),this.$=c[h].substr(9);break;case 23:k.setIncludes(c[h].substr(9)),this.$=c[h].substr(9);break;case 24:k.setTodayMarker(c[h].substr(12)),this.$=c[h].substr(12);break;case 27:k.setDiagramTitle(c[h].substr(6)),this.$=c[h].substr(6);break;case 28:this.$=c[h].trim(),k.setAccTitle(this.$);break;case 29:case 30:this.$=c[h].trim(),k.setAccDescription(this.$);break;case 31:k.addSection(c[h].substr(8)),this.$=c[h].substr(8);break;case 33:k.addTask(c[h-1],c[h]),this.$="task";break;case 34:this.$=c[h-1],k.setClickEvent(c[h-1],c[h],null);break;case 35:this.$=c[h-2],k.setClickEvent(c[h-2],c[h-1],c[h]);break;case 36:this.$=c[h-2],k.setClickEvent(c[h-2],c[h-1],null),k.setLink(c[h-2],c[h]);break;case 37:this.$=c[h-3],k.setClickEvent(c[h-3],c[h-2],c[h-1]),k.setLink(c[h-3],c[h]);break;case 38:this.$=c[h-2],k.setClickEvent(c[h-2],c[h],null),k.setLink(c[h-2],c[h-1]);break;case 39:this.$=c[h-3],k.setClickEvent(c[h-3],c[h-1],c[h]),k.setLink(c[h-3],c[h-2]);break;case 40:this.$=c[h-1],k.setLink(c[h-1],c[h]);break;case 41:case 47:this.$=c[h-1]+" "+c[h];break;case 42:case 43:case 45:this.$=c[h-2]+" "+c[h-1]+" "+c[h];break;case 44:case 46:this.$=c[h-3]+" "+c[h-2]+" "+c[h-1]+" "+c[h];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(r,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:i,14:s,15:o,16:u,17:D,18:_,19:18,20:B,21:O,22:G,23:H,24:z,25:W,26:Z,27:N,28:tt,29:ft,30:at,31:j,33:Y,35:f,36:P,37:24,38:rt,40:nt},e(r,[2,7],{1:[2,1]}),e(r,[2,3]),{9:36,11:17,12:n,13:i,14:s,15:o,16:u,17:D,18:_,19:18,20:B,21:O,22:G,23:H,24:z,25:W,26:Z,27:N,28:tt,29:ft,30:at,31:j,33:Y,35:f,36:P,37:24,38:rt,40:nt},e(r,[2,5]),e(r,[2,6]),e(r,[2,17]),e(r,[2,18]),e(r,[2,19]),e(r,[2,20]),e(r,[2,21]),e(r,[2,22]),e(r,[2,23]),e(r,[2,24]),e(r,[2,25]),e(r,[2,26]),e(r,[2,27]),{32:[1,37]},{34:[1,38]},e(r,[2,30]),e(r,[2,31]),e(r,[2,32]),{39:[1,39]},e(r,[2,8]),e(r,[2,9]),e(r,[2,10]),e(r,[2,11]),e(r,[2,12]),e(r,[2,13]),e(r,[2,14]),e(r,[2,15]),e(r,[2,16]),{41:[1,40],43:[1,41]},e(r,[2,4]),e(r,[2,28]),e(r,[2,29]),e(r,[2,33]),e(r,[2,34],{42:[1,42],43:[1,43]}),e(r,[2,40],{41:[1,44]}),e(r,[2,35],{43:[1,45]}),e(r,[2,36]),e(r,[2,38],{42:[1,46]}),e(r,[2,37]),e(r,[2,39])],defaultActions:{},parseError:t(function(d,w){if(w.recoverable)this.trace(d);else{var v=Error(d);throw v.hash=w,v}},"parseError"),parse:t(function(d){var w=this,v=[0],k=[],Q=[null],c=[],J=this.table,h="",mt=0,m=0,q=0,K=2,ut=1,lt=c.slice.call(arguments,1),it=Object.create(this.lexer),g={yy:{}};for(var X in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,X))g.yy[X]=this.yy[X];if(it.setInput(d,g.yy),g.yy.lexer=it,g.yy.parser=this,typeof it.yylloc>"u")it.yylloc={};var et=it.yylloc;c.push(et);var y=it.options&&it.options.ranges;if(typeof g.yy.parseError==="function")this.parseError=g.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function ht(Dt){v.length=v.length-2*Dt,Q.length=Q.length-Dt,c.length=c.length-Dt}t(ht,"popStack");function st(){var Dt=k.pop()||it.lex()||ut;if(typeof Dt!=="number"){if(Dt instanceof Array)k=Dt,Dt=k.pop();Dt=w.symbols_[Dt]||Dt}return Dt}t(st,"lex");var ot,yt,gt,vt,ps,Le,qt={},de,Et,Sr,me;while(!0){if(gt=v[v.length-1],this.defaultActions[gt])vt=this.defaultActions[gt];else{if(ot===null||typeof ot>"u")ot=st();vt=J[gt]&&J[gt][ot]}if(typeof vt>"u"||!vt.length||!vt[0]){var We="";me=[];for(de in J[gt])if(this.terminals_[de]&&de>K)me.push("'"+this.terminals_[de]+"'");if(it.showPosition)We="Parse error on line "+(mt+1)+`:
1
+ import{t,Ra,a,b,F,C,S,E,T,A,L,R,l,p,Sn,wr,Tn,Ui,Ve,ho,on,Vn,N}from"./chunk-e763h2px.js";import"./chunk-05mvzx00.js";import{Pn,mn}from"./chunk-2weaa3gn.js";import{ir,Br,la,Fr,wt}from"./chunk-qykt7avq.js";import{Pt}from"./chunk-p8fbes0t.js";import{Se,Te}from"./chunk-kahab58k.js";var xn=Te(function(rr,nr){(function(e,r){typeof rr=="object"&&typeof nr<"u"?nr.exports=r():typeof define=="function"&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_isoWeek=r()})(rr,function(){var e="day";return function(r,n,i){var s=function(M){return M.add(4-M.isoWeekday(),e)},o=n.prototype;o.isoWeekYear=function(){return s(this).year()},o.isoWeek=function(M){if(!this.$utils().u(M))return this.add(7*(M-this.isoWeek()),e);var D,B,W,G,O=s(this),z=(D=this.isoWeekYear(),B=this.$u,W=(B?i.utc:i)().year(D).startOf("year"),G=4-W.isoWeekday(),W.isoWeekday()>4&&(G+=7),W.add(G,e));return O.diff(z,"week")+1},o.isoWeekday=function(M){return this.$utils().u(M)?this.day()||7:this.day(this.day()%7?M:M-7)};var u=o.startOf;o.startOf=function(M,D){var B=this.$utils(),W=!!B.u(D)||D;return B.p(M)==="isoweek"?W?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):u.bind(this)(M,D)}}})});var bn=Te(function(ar,sr){(function(e,r){typeof ar=="object"&&typeof sr<"u"?sr.exports=r():typeof define=="function"&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_customParseFormat=r()})(ar,function(){var e={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,n=/\d/,i=/\d\d/,s=/\d\d?/,o=/\d*[^-_:/,()\s\d]+/,u={},M=function(U){return(U=+U)+(U>68?1900:2000)},D=function(U){return function(Z){this[U]=+Z}},B=[/[+-]\d\d:?(\d\d)?|Z/,function(U){(this.zone||(this.zone={})).offset=function(Z){if(!Z)return 0;if(Z==="Z")return 0;var H=Z.match(/([+-]|\d\d)/g),tt=60*H[1]+(+H[2]||0);return tt===0?0:H[0]==="+"?-tt:tt}(U)}],W=function(U){var Z=u[U];return Z&&(Z.indexOf?Z:Z.s.concat(Z.f))},G=function(U,Z){var H,tt=u.meridiem;if(tt){for(var ft=1;ft<=24;ft+=1)if(U.indexOf(tt(ft,0,Z))>-1){H=ft>12;break}}else H=U===(Z?"pm":"PM");return H},O={A:[o,function(U){this.afternoon=G(U,!1)}],a:[o,function(U){this.afternoon=G(U,!0)}],Q:[n,function(U){this.month=3*(U-1)+1}],S:[n,function(U){this.milliseconds=100*+U}],SS:[i,function(U){this.milliseconds=10*+U}],SSS:[/\d{3}/,function(U){this.milliseconds=+U}],s:[s,D("seconds")],ss:[s,D("seconds")],m:[s,D("minutes")],mm:[s,D("minutes")],H:[s,D("hours")],h:[s,D("hours")],HH:[s,D("hours")],hh:[s,D("hours")],D:[s,D("day")],DD:[i,D("day")],Do:[o,function(U){var Z=u.ordinal,H=U.match(/\d+/);if(this.day=H[0],Z)for(var tt=1;tt<=31;tt+=1)Z(tt).replace(/\[|\]/g,"")===U&&(this.day=tt)}],w:[s,D("week")],ww:[i,D("week")],M:[s,D("month")],MM:[i,D("month")],MMM:[o,function(U){var Z=W("months"),H=(W("monthsShort")||Z.map(function(tt){return tt.slice(0,3)})).indexOf(U)+1;if(H<1)throw Error();this.month=H%12||H}],MMMM:[o,function(U){var Z=W("months").indexOf(U)+1;if(Z<1)throw Error();this.month=Z%12||Z}],Y:[/[+-]?\d+/,D("year")],YY:[i,function(U){this.year=M(U)}],YYYY:[/\d{4}/,D("year")],Z:B,ZZ:B};function z(U){var Z,H;Z=U,H=u&&u.formats;for(var tt=(U=Z.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(rt,nt,x){var I=x&&x.toUpperCase();return nt||H[x]||e[x]||H[I].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(Y,V,d){return V||d.slice(1)})})).match(r),ft=tt.length,at=0;at<ft;at+=1){var j=tt[at],_=O[j],f=_&&_[0],P=_&&_[1];tt[at]=P?{regex:f,parser:P}:j.replace(/^\[|\]$/g,"")}return function(rt){for(var nt={},x=0,I=0;x<ft;x+=1){var Y=tt[x];if(typeof Y=="string")I+=Y.length;else{var{regex:V,parser:d}=Y,w=rt.slice(I),v=V.exec(w)[0];d.call(nt,v),rt=rt.replace(v,"")}}return function(k){var Q=k.afternoon;if(Q!==void 0){var c=k.hours;Q?c<12&&(k.hours+=12):c===12&&(k.hours=0),delete k.afternoon}}(nt),nt}}return function(U,Z,H){H.p.customParseFormat=!0,U&&U.parseTwoDigitYear&&(M=U.parseTwoDigitYear);var tt=Z.prototype,ft=tt.parse;tt.parse=function(at){var{date:j,utc:_,args:f}=at;this.$u=_;var P=f[1];if(typeof P=="string"){var rt=f[2]===!0,nt=f[3]===!0,x=rt||nt,I=f[2];nt&&(I=f[2]),u=this.$locale(),!rt&&I&&(u=H.Ls[I]),this.$d=function(w,v,k,Q){try{if(["x","X"].indexOf(v)>-1)return new Date((v==="X"?1000:1)*w);var c=z(v)(w),{year:J,month:h,day:mt,hours:m,minutes:q,seconds:K,milliseconds:ut,zone:lt,week:it}=c,g=new Date,X=mt||(J||h?1:g.getDate()),et=J||g.getFullYear(),y=0;J&&!h||(y=h>0?h-1:g.getMonth());var ht,st=m||0,ot=q||0,yt=K||0,gt=ut||0;return lt?new Date(Date.UTC(et,y,X,st,ot,yt,gt+60*lt.offset*1000)):k?new Date(Date.UTC(et,y,X,st,ot,yt,gt)):(ht=new Date(et,y,X,st,ot,yt,gt),it&&(ht=Q(ht).week(it).toDate()),ht)}catch(Tt){return new Date("")}}(j,P,_,H),this.init(),I&&I!==!0&&(this.$L=this.locale(I).$L),x&&j!=this.format(P)&&(this.$d=new Date("")),u={}}else if(P instanceof Array)for(var Y=P.length,V=1;V<=Y;V+=1){f[1]=P[V-1];var d=H.apply(this,f);if(d.isValid()){this.$d=d.$d,this.$L=d.$L,this.init();break}V===Y&&(this.$d=new Date(""))}else ft.call(this,at)}}})});var wn=Te(function(or,cr){(function(e,r){typeof or=="object"&&typeof cr<"u"?cr.exports=r():typeof define=="function"&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_advancedFormat=r()})(or,function(){return function(e,r){var n=r.prototype,i=n.format;n.format=function(s){var o=this,u=this.$locale();if(!this.isValid())return i.bind(this)(s);var M=this.$utils(),D=(s||"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(B){switch(B){case"Q":return Math.ceil((o.$M+1)/3);case"Do":return u.ordinal(o.$D);case"gggg":return o.weekYear();case"GGGG":return o.isoWeekYear();case"wo":return u.ordinal(o.week(),"W");case"w":case"ww":return M.s(o.week(),B==="w"?1:2,"0");case"W":case"WW":return M.s(o.isoWeek(),B==="W"?1:2,"0");case"k":case"kk":return M.s(String(o.$H===0?24:o.$H),B==="k"?1:2,"0");case"X":return Math.floor(o.$d.getTime()/1000);case"x":return o.$d.getTime();case"z":return"["+o.offsetName()+"]";case"zzz":return"["+o.offsetName("long")+"]";default:return B}});return i.bind(this)(D)}}})});var Mn=Te(function(ur,lr){(function(e,r){typeof ur=="object"&&typeof lr<"u"?lr.exports=r():typeof define=="function"&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_duration=r()})(ur,function(){var e,r,n=1000,i=60000,s=3600000,o=86400000,u=31536000000,M=2628000000,D=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,B=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,W={years:u,months:M,days:o,hours:s,minutes:i,seconds:n,milliseconds:1,weeks:604800000},G=function(j){return j instanceof ft},O=function(j,_,f){return new ft(j,f,_.$l)},z=function(j){return r.p(j)+"s"},U=function(j){return j<0},Z=function(j){return U(j)?Math.ceil(j):Math.floor(j)},H=function(j){return Math.abs(j)},tt=function(j,_){return j?U(j)?{negative:!0,format:""+H(j)+_}:{negative:!1,format:""+j+_}:{negative:!1,format:""}},ft=function(){function j(f,P,rt){var nt=this;if(this.$d={},this.$l=rt,f===void 0&&(this.$ms=0,this.parseFromMilliseconds()),P)return O(f*W[z(P)],this);if(typeof f=="number")return this.$ms=f,this.parseFromMilliseconds(),this;if(typeof f=="object")return Object.keys(f).forEach(function(Y){nt.$d[z(Y)]=f[Y]}),this.calMilliseconds(),this;if(typeof f=="string"){var x=f.match(D);if(x){var I=x.slice(2).map(function(Y){return Y!=null?Number(Y):0});return this.$d.years=I[0],this.$d.months=I[1],this.$d.weeks=I[2],this.$d.days=I[3],this.$d.hours=I[4],this.$d.minutes=I[5],this.$d.seconds=I[6],this.calMilliseconds(),this}}return this}var _=j.prototype;return _.calMilliseconds=function(){var f=this;this.$ms=Object.keys(this.$d).reduce(function(P,rt){return P+(f.$d[rt]||0)*W[rt]},0)},_.parseFromMilliseconds=function(){var f=this.$ms;this.$d.years=Z(f/u),f%=u,this.$d.months=Z(f/M),f%=M,this.$d.days=Z(f/o),f%=o,this.$d.hours=Z(f/s),f%=s,this.$d.minutes=Z(f/i),f%=i,this.$d.seconds=Z(f/n),f%=n,this.$d.milliseconds=f},_.toISOString=function(){var f=tt(this.$d.years,"Y"),P=tt(this.$d.months,"M"),rt=+this.$d.days||0;this.$d.weeks&&(rt+=7*this.$d.weeks);var nt=tt(rt,"D"),x=tt(this.$d.hours,"H"),I=tt(this.$d.minutes,"M"),Y=this.$d.seconds||0;this.$d.milliseconds&&(Y+=this.$d.milliseconds/1000,Y=Math.round(1000*Y)/1000);var V=tt(Y,"S"),d=f.negative||P.negative||nt.negative||x.negative||I.negative||V.negative,w=x.format||I.format||V.format?"T":"",v=(d?"-":"")+"P"+f.format+P.format+nt.format+w+x.format+I.format+V.format;return v==="P"||v==="-P"?"P0D":v},_.toJSON=function(){return this.toISOString()},_.format=function(f){var P=f||"YYYY-MM-DDTHH:mm:ss",rt={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 P.replace(B,function(nt,x){return x||String(rt[nt])})},_.as=function(f){return this.$ms/W[z(f)]},_.get=function(f){var P=this.$ms,rt=z(f);return rt==="milliseconds"?P%=1000:P=rt==="weeks"?Z(P/W[rt]):this.$d[rt],P||0},_.add=function(f,P,rt){var nt;return nt=P?f*W[z(P)]:G(f)?f.$ms:O(f,this).$ms,O(this.$ms+nt*(rt?-1:1),this)},_.subtract=function(f,P){return this.add(f,P,!0)},_.locale=function(f){var P=this.clone();return P.$l=f,P},_.clone=function(){return O(this.$ms,this)},_.humanize=function(f){return e().add(this.$ms,"ms").locale(this.$l).fromNow(!f)},_.valueOf=function(){return this.asMilliseconds()},_.milliseconds=function(){return this.get("milliseconds")},_.asMilliseconds=function(){return this.as("milliseconds")},_.seconds=function(){return this.get("seconds")},_.asSeconds=function(){return this.as("seconds")},_.minutes=function(){return this.get("minutes")},_.asMinutes=function(){return this.as("minutes")},_.hours=function(){return this.get("hours")},_.asHours=function(){return this.as("hours")},_.days=function(){return this.get("days")},_.asDays=function(){return this.as("days")},_.weeks=function(){return this.get("weeks")},_.asWeeks=function(){return this.as("weeks")},_.months=function(){return this.get("months")},_.asMonths=function(){return this.as("months")},_.years=function(){return this.get("years")},_.asYears=function(){return this.as("years")},j}(),at=function(j,_,f){return j.add(_.years()*f,"y").add(_.months()*f,"M").add(_.days()*f,"d").add(_.hours()*f,"h").add(_.minutes()*f,"m").add(_.seconds()*f,"s").add(_.milliseconds()*f,"ms")};return function(j,_,f){e=f,r=f().$utils(),f.duration=function(nt,x){var I=f.locale();return O(nt,{$l:I},x)},f.isDuration=G;var P=_.prototype.add,rt=_.prototype.subtract;_.prototype.add=function(nt,x){return G(nt)?at(this,nt,1):P.bind(this)(nt,x)},_.prototype.subtract=function(nt,x){return G(nt)?at(this,nt,-1):rt.bind(this)(nt,x)}}})});function Ee(e){return e}var ye=1,Ae=2,Oe=3,he=4,_r=0.000001;function Zn(e){return"translate("+e+",0)"}function jn(e){return"translate(0,"+e+")"}function Xn(e){return(r)=>+e(r)}function Gn(e,r){if(r=Math.max(0,e.bandwidth()-r*2)/2,e.round())r=Math.round(r);return(n)=>+e(n)+r}function qn(){return!this.__axis}function Yr(e,r){var n=[],i=null,s=null,o=6,u=6,M=3,D=typeof window<"u"&&window.devicePixelRatio>1?0:0.5,B=e===ye||e===he?-1:1,W=e===he||e===Ae?"x":"y",G=e===ye||e===Oe?Zn:jn;function O(z){var U=i==null?r.ticks?r.ticks.apply(r,n):r.domain():i,Z=s==null?r.tickFormat?r.tickFormat.apply(r,n):Ee:s,H=Math.max(o,0)+M,tt=r.range(),ft=+tt[0]+D,at=+tt[tt.length-1]+D,j=(r.bandwidth?Gn:Xn)(r.copy(),D),_=z.selection?z.selection():z,f=_.selectAll(".domain").data([null]),P=_.selectAll(".tick").data(U,r).order(),rt=P.exit(),nt=P.enter().append("g").attr("class","tick"),x=P.select("line"),I=P.select("text");if(f=f.merge(f.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),P=P.merge(nt),x=x.merge(nt.append("line").attr("stroke","currentColor").attr(W+"2",B*o)),I=I.merge(nt.append("text").attr("fill","currentColor").attr(W,B*H).attr("dy",e===ye?"0em":e===Oe?"0.71em":"0.32em")),z!==_)f=f.transition(z),P=P.transition(z),x=x.transition(z),I=I.transition(z),rt=rt.transition(z).attr("opacity",_r).attr("transform",function(Y){return isFinite(Y=j(Y))?G(Y+D):this.getAttribute("transform")}),nt.attr("opacity",_r).attr("transform",function(Y){var V=this.parentNode.__axis;return G((V&&isFinite(V=V(Y))?V:j(Y))+D)});rt.remove(),f.attr("d",e===he||e===Ae?u?"M"+B*u+","+ft+"H"+D+"V"+at+"H"+B*u:"M"+D+","+ft+"V"+at:u?"M"+ft+","+B*u+"V"+D+"H"+at+"V"+B*u:"M"+ft+","+D+"H"+at),P.attr("opacity",1).attr("transform",function(Y){return G(j(Y)+D)}),x.attr(W+"2",B*o),I.attr(W,B*H).text(Z),_.filter(qn).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===Ae?"start":e===he?"end":"middle"),_.each(function(){this.__axis=j})}return O.scale=function(z){return arguments.length?(r=z,O):r},O.ticks=function(){return n=Array.from(arguments),O},O.tickArguments=function(z){return arguments.length?(n=z==null?[]:Array.from(z),O):n.slice()},O.tickValues=function(z){return arguments.length?(i=z==null?null:Array.from(z),O):i&&i.slice()},O.tickFormat=function(z){return arguments.length?(s=z,O):s},O.tickSize=function(z){return arguments.length?(o=u=+z,O):o},O.tickSizeInner=function(z){return arguments.length?(o=+z,O):o},O.tickSizeOuter=function(z){return arguments.length?(u=+z,O):u},O.tickPadding=function(z){return arguments.length?(M=+z,O):M},O.offset=function(z){return arguments.length?(D=+z,O):D},O}function $e(e){return Yr(ye,e)}function He(e){return Yr(Oe,e)}var Ir=Math.PI/180,Ur=180/Math.PI;var ge=18,Lr=0.96422,Wr=1,Er=0.82521,Ar=0.13793103448275862,Qt=0.20689655172413793,Or=3*Qt*Qt,Qn=Qt*Qt*Qt;function $r(e){if(e instanceof Ft)return new Ft(e.l,e.a,e.b,e.opacity);if(e instanceof At)return Nr(e);if(!(e instanceof Ve))e=Ui(e);var r=Re(e.r),n=Re(e.g),i=Re(e.b),s=Ne((0.2225045*r+0.7168786*n+0.0606169*i)/Wr),o,u;if(r===n&&n===i)o=u=s;else o=Ne((0.4360747*r+0.3850649*n+0.1430804*i)/Lr),u=Ne((0.0139322*r+0.0971045*n+0.7141733*i)/Er);return new Ft(116*s-16,500*(o-s),200*(s-u),e.opacity)}function Hr(e,r,n,i){return arguments.length===1?$r(e):new Ft(e,r,n,i==null?1:i)}function Ft(e,r,n,i){this.l=+e,this.a=+r,this.b=+n,this.opacity=+i}Sn(Ft,Hr,wr(Tn,{brighter(e){return new Ft(this.l+ge*(e==null?1:e),this.a,this.b,this.opacity)},darker(e){return new Ft(this.l-ge*(e==null?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,r=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return r=Lr*Pe(r),e=Wr*Pe(e),n=Er*Pe(n),new Ve(ze(3.1338561*r-1.6168667*e-0.4906146*n),ze(-0.9787684*r+1.9161415*e+0.033454*n),ze(0.0719453*r-0.2289914*e+1.4052427*n),this.opacity)}}));function Ne(e){return e>Qn?Math.pow(e,0.3333333333333333):e/Or+Ar}function Pe(e){return e>Qt?e*e*e:Or*(e-Ar)}function ze(e){return 255*(e<=0.0031308?12.92*e:1.055*Math.pow(e,0.4166666666666667)-0.055)}function Re(e){return(e/=255)<=0.04045?e/12.92:Math.pow((e+0.055)/1.055,2.4)}function Jn(e){if(e instanceof At)return new At(e.h,e.c,e.l,e.opacity);if(!(e instanceof Ft))e=$r(e);if(e.a===0&&e.b===0)return new At(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var r=Math.atan2(e.b,e.a)*Ur;return new At(r<0?r+360:r,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function ke(e,r,n,i){return arguments.length===1?Jn(e):new At(e,r,n,i==null?1:i)}function At(e,r,n,i){this.h=+e,this.c=+r,this.l=+n,this.opacity=+i}function Nr(e){if(isNaN(e.h))return new Ft(e.l,0,0,e.opacity);var r=e.h*Ir;return new Ft(e.l,Math.cos(r)*e.c,Math.sin(r)*e.c,e.opacity)}Sn(At,ke,wr(Tn,{brighter(e){return new At(this.h,this.c,this.l+ge*(e==null?1:e),this.opacity)},darker(e){return new At(this.h,this.c,this.l-ge*(e==null?1:e),this.opacity)},rgb(){return Nr(this).rgb()}}));function Pr(e){return function(r,n){var i=e((r=ke(r)).h,(n=ke(n)).h),s=on(r.c,n.c),o=on(r.l,n.l),u=on(r.opacity,n.opacity);return function(M){return r.h=i(M),r.c=s(M),r.l=o(M),r.opacity=u(M),r+""}}}var Vr=Pr(ho),Ls=Pr(on);function Be(e,r){e=e.slice();var n=0,i=e.length-1,s=e[n],o=e[i],u;if(o<s)u=n,n=i,i=u,u=s,s=o,o=u;return e[n]=r.floor(s),e[i]=r.ceil(o),e}var Ze=new Date,je=new Date;function dt(e,r,n,i){function s(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}if(s.floor=(o)=>(e(o=new Date(+o)),o),s.ceil=(o)=>(e(o=new Date(o-1)),r(o,1),e(o),o),s.round=(o)=>{let u=s(o),M=s.ceil(o);return o-u<M-o?u:M},s.offset=(o,u)=>(r(o=new Date(+o),u==null?1:Math.floor(u)),o),s.range=(o,u,M)=>{let D=[];if(o=s.ceil(o),M=M==null?1:Math.floor(M),!(o<u)||!(M>0))return D;let B;do D.push(B=new Date(+o)),r(o,M),e(o);while(B<o&&o<u);return D},s.filter=(o)=>dt((u)=>{if(u>=u)while(e(u),!o(u))u.setTime(u-1)},(u,M)=>{if(u>=u)if(M<0)while(++M<=0)while(r(u,-1),!o(u));else while(--M>=0)while(r(u,1),!o(u));}),n)s.count=(o,u)=>(Ze.setTime(+o),je.setTime(+u),e(Ze),e(je),Math.floor(n(Ze,je))),s.every=(o)=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:!(o>1)?s:s.filter(i?(u)=>i(u)%o===0:(u)=>s.count(0,u)%o===0));return s}var It=dt(()=>{},(e,r)=>{e.setTime(+e+r)},(e,r)=>r-e);It.every=(e)=>{if(e=Math.floor(e),!isFinite(e)||!(e>0))return null;if(!(e>1))return It;return dt((r)=>{r.setTime(Math.floor(r/e)*e)},(r,n)=>{r.setTime(+r+n*e)},(r,n)=>(n-r)/e)};var zr=It.range;var Ct=1000,vt=60000,Ut=3600000,Vt=86400000,se=604800000,Xe=2592000000,pe=31536000000;var xt=dt((e)=>{e.setTime(e-e.getMilliseconds())},(e,r)=>{e.setTime(+e+r*Ct)},(e,r)=>(r-e)/Ct,(e)=>e.getUTCSeconds()),Rr=xt.range;var Ot=dt((e)=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ct)},(e,r)=>{e.setTime(+e+r*vt)},(e,r)=>(r-e)/vt,(e)=>e.getMinutes()),Kn=Ot.range,ve=dt((e)=>{e.setUTCSeconds(0,0)},(e,r)=>{e.setTime(+e+r*vt)},(e,r)=>(r-e)/vt,(e)=>e.getUTCMinutes()),ti=ve.range;var $t=dt((e)=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ct-e.getMinutes()*vt)},(e,r)=>{e.setTime(+e+r*Ut)},(e,r)=>(r-e)/Ut,(e)=>e.getHours()),ei=$t.range,xe=dt((e)=>{e.setUTCMinutes(0,0,0)},(e,r)=>{e.setTime(+e+r*Ut)},(e,r)=>(r-e)/Ut,(e)=>e.getUTCHours()),ri=xe.range;var St=dt((e)=>e.setHours(0,0,0,0),(e,r)=>e.setDate(e.getDate()+r),(e,r)=>(r-e-(r.getTimezoneOffset()-e.getTimezoneOffset())*vt)/Vt,(e)=>e.getDate()-1),ni=St.range,oe=dt((e)=>{e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCDate(e.getUTCDate()+r)},(e,r)=>(r-e)/Vt,(e)=>e.getUTCDate()-1),ii=oe.range,be=dt((e)=>{e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCDate(e.getUTCDate()+r)},(e,r)=>(r-e)/Vt,(e)=>Math.floor(e/Vt)),ai=be.range;function Bt(e){return dt((r)=>{r.setDate(r.getDate()-(r.getDay()+7-e)%7),r.setHours(0,0,0,0)},(r,n)=>{r.setDate(r.getDate()+n*7)},(r,n)=>(n-r-(n.getTimezoneOffset()-r.getTimezoneOffset())*vt)/se)}var _t=Bt(0),zt=Bt(1),we=Bt(2),Me=Bt(3),Lt=Bt(4),De=Bt(5),Ce=Bt(6),Zr=_t.range,si=zt.range,oi=we.range,ci=Me.range,ui=Lt.range,li=De.range,fi=Ce.range;function Zt(e){return dt((r)=>{r.setUTCDate(r.getUTCDate()-(r.getUTCDay()+7-e)%7),r.setUTCHours(0,0,0,0)},(r,n)=>{r.setUTCDate(r.getUTCDate()+n*7)},(r,n)=>(n-r)/se)}var jt=Zt(0),Jt=Zt(1),jr=Zt(2),Xr=Zt(3),Rt=Zt(4),Gr=Zt(5),qr=Zt(6),Qr=jt.range,di=Jt.range,mi=jr.range,hi=Xr.range,yi=Rt.range,gi=Gr.range,ki=qr.range;var Ht=dt((e)=>{e.setDate(1),e.setHours(0,0,0,0)},(e,r)=>{e.setMonth(e.getMonth()+r)},(e,r)=>r.getMonth()-e.getMonth()+(r.getFullYear()-e.getFullYear())*12,(e)=>e.getMonth()),pi=Ht.range,_e=dt((e)=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCMonth(e.getUTCMonth()+r)},(e,r)=>r.getUTCMonth()-e.getUTCMonth()+(r.getUTCFullYear()-e.getUTCFullYear())*12,(e)=>e.getUTCMonth()),Ti=_e.range;var bt=dt((e)=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,r)=>{e.setFullYear(e.getFullYear()+r)},(e,r)=>r.getFullYear()-e.getFullYear(),(e)=>e.getFullYear());bt.every=(e)=>!isFinite(e=Math.floor(e))||!(e>0)?null:dt((r)=>{r.setFullYear(Math.floor(r.getFullYear()/e)*e),r.setMonth(0,1),r.setHours(0,0,0,0)},(r,n)=>{r.setFullYear(r.getFullYear()+n*e)});var vi=bt.range,Yt=dt((e)=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r)},(e,r)=>r.getUTCFullYear()-e.getUTCFullYear(),(e)=>e.getUTCFullYear());Yt.every=(e)=>!isFinite(e=Math.floor(e))||!(e>0)?null:dt((r)=>{r.setUTCFullYear(Math.floor(r.getUTCFullYear()/e)*e),r.setUTCMonth(0,1),r.setUTCHours(0,0,0,0)},(r,n)=>{r.setUTCFullYear(r.getUTCFullYear()+n*e)});var xi=Yt.range;function Jr(e,r,n,i,s,o){let u=[[xt,1,Ct],[xt,5,5*Ct],[xt,15,15*Ct],[xt,30,30*Ct],[o,1,vt],[o,5,5*vt],[o,15,15*vt],[o,30,30*vt],[s,1,Ut],[s,3,3*Ut],[s,6,6*Ut],[s,12,12*Ut],[i,1,Vt],[i,2,2*Vt],[n,1,se],[r,1,Xe],[r,3,3*Xe],[e,1,pe]];function M(B,W,G){let O=W<B;if(O)[B,W]=[W,B];let z=G&&typeof G.range==="function"?G:D(B,W,G),U=z?z.range(B,+W+1):[];return O?U.reverse():U}function D(B,W,G){let O=Math.abs(W-B)/G,z=ir(([,,H])=>H).right(u,O);if(z===u.length)return e.every(Br(B/pe,W/pe,G));if(z===0)return It.every(Math.max(Br(B,W,G),1));let[U,Z]=u[O/u[z-1][2]<u[z][2]/O?z-1:z];return U.every(Z)}return[M,D]}var[bi,wi]=Jr(Yt,_e,jt,be,xe,ve),[Ge,qe]=Jr(bt,Ht,_t,St,$t,Ot);function Qe(e){if(0<=e.y&&e.y<100){var r=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return r.setFullYear(e.y),r}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Je(e){if(0<=e.y&&e.y<100){var r=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return r.setUTCFullYear(e.y),r}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function ce(e,r,n){return{y:e,m:r,d:n,H:0,M:0,S:0,L:0}}function Ke(e){var{dateTime:r,date:n,time:i,periods:s,days:o,shortDays:u,months:M,shortMonths:D}=e,B=ue(s),W=le(s),G=ue(o),O=le(o),z=ue(u),U=le(u),Z=ue(M),H=le(M),tt=ue(D),ft=le(D),at={a:k,A:Q,b:c,B:J,c:null,d:an,e:an,f:ji,g:na,G:aa,H:Ri,I:Bi,j:Zi,L:fn,m:Xi,M:Gi,p:h,q:mt,Q:un,s:ln,S:qi,u:Qi,U:Ji,V:Ki,w:ta,W:ea,x:null,X:null,y:ra,Y:ia,Z:sa,"%":cn},j={a:m,A:q,b:K,B:ut,c:null,d:sn,e:sn,f:fa,g:xa,G:wa,H:oa,I:ca,j:ua,L:hn,m:da,M:ma,p:lt,q:it,Q:un,s:ln,S:ha,u:ya,U:ga,V:ka,w:pa,W:Ta,x:null,X:null,y:va,Y:ba,Z:Ma,"%":cn},_={a:x,A:I,b:Y,B:V,c:d,d:rn,e:rn,f:Ni,g:en,G:tn,H:nn,I:nn,j:Ai,L:Hi,m:Ei,M:Oi,p:nt,q:Wi,Q:Vi,s:zi,S:$i,u:_i,U:Yi,V:Fi,w:Si,W:Ii,x:w,X:v,y:en,Y:tn,Z:Li,"%":Pi};at.x=f(n,at),at.X=f(i,at),at.c=f(r,at),j.x=f(n,j),j.X=f(i,j),j.c=f(r,j);function f(g,X){return function(et){var y=[],ht=-1,st=0,ot=g.length,yt,gt,Tt;if(!(et instanceof Date))et=new Date(+et);while(++ht<ot)if(g.charCodeAt(ht)===37){if(y.push(g.slice(st,ht)),(gt=Kr[yt=g.charAt(++ht)])!=null)yt=g.charAt(++ht);else gt=yt==="e"?" ":"0";if(Tt=X[yt])yt=Tt(et,gt);y.push(yt),st=ht+1}return y.push(g.slice(st,ht)),y.join("")}}function P(g,X){return function(et){var y=ce(1900,void 0,1),ht=rt(y,g,et+="",0),st,ot;if(ht!=et.length)return null;if("Q"in y)return new Date(y.Q);if("s"in y)return new Date(y.s*1000+("L"in y?y.L:0));if(X&&!("Z"in y))y.Z=0;if("p"in y)y.H=y.H%12+y.p*12;if(y.m===void 0)y.m="q"in y?y.q:0;if("V"in y){if(y.V<1||y.V>53)return null;if(!("w"in y))y.w=1;if("Z"in y)st=Je(ce(y.y,0,1)),ot=st.getUTCDay(),st=ot>4||ot===0?Jt.ceil(st):Jt(st),st=oe.offset(st,(y.V-1)*7),y.y=st.getUTCFullYear(),y.m=st.getUTCMonth(),y.d=st.getUTCDate()+(y.w+6)%7;else st=Qe(ce(y.y,0,1)),ot=st.getDay(),st=ot>4||ot===0?zt.ceil(st):zt(st),st=St.offset(st,(y.V-1)*7),y.y=st.getFullYear(),y.m=st.getMonth(),y.d=st.getDate()+(y.w+6)%7}else if("W"in y||"U"in y){if(!("w"in y))y.w="u"in y?y.u%7:("W"in y)?1:0;ot="Z"in y?Je(ce(y.y,0,1)).getUTCDay():Qe(ce(y.y,0,1)).getDay(),y.m=0,y.d="W"in y?(y.w+6)%7+y.W*7-(ot+5)%7:y.w+y.U*7-(ot+6)%7}if("Z"in y)return y.H+=y.Z/100|0,y.M+=y.Z%100,Je(y);return Qe(y)}}function rt(g,X,et,y){var ht=0,st=X.length,ot=et.length,yt,gt;while(ht<st){if(y>=ot)return-1;if(yt=X.charCodeAt(ht++),yt===37){if(yt=X.charAt(ht++),gt=_[yt in Kr?X.charAt(ht++):yt],!gt||(y=gt(g,et,y))<0)return-1}else if(yt!=et.charCodeAt(y++))return-1}return y}function nt(g,X,et){var y=B.exec(X.slice(et));return y?(g.p=W.get(y[0].toLowerCase()),et+y[0].length):-1}function x(g,X,et){var y=z.exec(X.slice(et));return y?(g.w=U.get(y[0].toLowerCase()),et+y[0].length):-1}function I(g,X,et){var y=G.exec(X.slice(et));return y?(g.w=O.get(y[0].toLowerCase()),et+y[0].length):-1}function Y(g,X,et){var y=tt.exec(X.slice(et));return y?(g.m=ft.get(y[0].toLowerCase()),et+y[0].length):-1}function V(g,X,et){var y=Z.exec(X.slice(et));return y?(g.m=H.get(y[0].toLowerCase()),et+y[0].length):-1}function d(g,X,et){return rt(g,r,X,et)}function w(g,X,et){return rt(g,n,X,et)}function v(g,X,et){return rt(g,i,X,et)}function k(g){return u[g.getDay()]}function Q(g){return o[g.getDay()]}function c(g){return D[g.getMonth()]}function J(g){return M[g.getMonth()]}function h(g){return s[+(g.getHours()>=12)]}function mt(g){return 1+~~(g.getMonth()/3)}function m(g){return u[g.getUTCDay()]}function q(g){return o[g.getUTCDay()]}function K(g){return D[g.getUTCMonth()]}function ut(g){return M[g.getUTCMonth()]}function lt(g){return s[+(g.getUTCHours()>=12)]}function it(g){return 1+~~(g.getUTCMonth()/3)}return{format:function(g){var X=f(g+="",at);return X.toString=function(){return g},X},parse:function(g){var X=P(g+="",!1);return X.toString=function(){return g},X},utcFormat:function(g){var X=f(g+="",j);return X.toString=function(){return g},X},utcParse:function(g){var X=P(g+="",!0);return X.toString=function(){return g},X}}}var Kr={"-":"",_:" ","0":"0"},pt=/^\s*\d+/,Mi=/^%/,Di=/[\\^$*+?|[\]().{}]/g;function ct(e,r,n){var i=e<0?"-":"",s=(i?-e:e)+"",o=s.length;return i+(o<n?Array(n-o+1).join(r)+s:s)}function Ci(e){return e.replace(Di,"\\$&")}function ue(e){return new RegExp("^(?:"+e.map(Ci).join("|")+")","i")}function le(e){return new Map(e.map((r,n)=>[r.toLowerCase(),n]))}function Si(e,r,n){var i=pt.exec(r.slice(n,n+1));return i?(e.w=+i[0],n+i[0].length):-1}function _i(e,r,n){var i=pt.exec(r.slice(n,n+1));return i?(e.u=+i[0],n+i[0].length):-1}function Yi(e,r,n){var i=pt.exec(r.slice(n,n+2));return i?(e.U=+i[0],n+i[0].length):-1}function Fi(e,r,n){var i=pt.exec(r.slice(n,n+2));return i?(e.V=+i[0],n+i[0].length):-1}function Ii(e,r,n){var i=pt.exec(r.slice(n,n+2));return i?(e.W=+i[0],n+i[0].length):-1}function tn(e,r,n){var i=pt.exec(r.slice(n,n+4));return i?(e.y=+i[0],n+i[0].length):-1}function en(e,r,n){var i=pt.exec(r.slice(n,n+2));return i?(e.y=+i[0]+(+i[0]>68?1900:2000),n+i[0].length):-1}function Li(e,r,n){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(r.slice(n,n+6));return i?(e.Z=i[1]?0:-(i[2]+(i[3]||"00")),n+i[0].length):-1}function Wi(e,r,n){var i=pt.exec(r.slice(n,n+1));return i?(e.q=i[0]*3-3,n+i[0].length):-1}function Ei(e,r,n){var i=pt.exec(r.slice(n,n+2));return i?(e.m=i[0]-1,n+i[0].length):-1}function rn(e,r,n){var i=pt.exec(r.slice(n,n+2));return i?(e.d=+i[0],n+i[0].length):-1}function Ai(e,r,n){var i=pt.exec(r.slice(n,n+3));return i?(e.m=0,e.d=+i[0],n+i[0].length):-1}function nn(e,r,n){var i=pt.exec(r.slice(n,n+2));return i?(e.H=+i[0],n+i[0].length):-1}function Oi(e,r,n){var i=pt.exec(r.slice(n,n+2));return i?(e.M=+i[0],n+i[0].length):-1}function $i(e,r,n){var i=pt.exec(r.slice(n,n+2));return i?(e.S=+i[0],n+i[0].length):-1}function Hi(e,r,n){var i=pt.exec(r.slice(n,n+3));return i?(e.L=+i[0],n+i[0].length):-1}function Ni(e,r,n){var i=pt.exec(r.slice(n,n+6));return i?(e.L=Math.floor(i[0]/1000),n+i[0].length):-1}function Pi(e,r,n){var i=Mi.exec(r.slice(n,n+1));return i?n+i[0].length:-1}function Vi(e,r,n){var i=pt.exec(r.slice(n));return i?(e.Q=+i[0],n+i[0].length):-1}function zi(e,r,n){var i=pt.exec(r.slice(n));return i?(e.s=+i[0],n+i[0].length):-1}function an(e,r){return ct(e.getDate(),r,2)}function Ri(e,r){return ct(e.getHours(),r,2)}function Bi(e,r){return ct(e.getHours()%12||12,r,2)}function Zi(e,r){return ct(1+St.count(bt(e),e),r,3)}function fn(e,r){return ct(e.getMilliseconds(),r,3)}function ji(e,r){return fn(e,r)+"000"}function Xi(e,r){return ct(e.getMonth()+1,r,2)}function Gi(e,r){return ct(e.getMinutes(),r,2)}function qi(e,r){return ct(e.getSeconds(),r,2)}function Qi(e){var r=e.getDay();return r===0?7:r}function Ji(e,r){return ct(_t.count(bt(e)-1,e),r,2)}function dn(e){var r=e.getDay();return r>=4||r===0?Lt(e):Lt.ceil(e)}function Ki(e,r){return e=dn(e),ct(Lt.count(bt(e),e)+(bt(e).getDay()===4),r,2)}function ta(e){return e.getDay()}function ea(e,r){return ct(zt.count(bt(e)-1,e),r,2)}function ra(e,r){return ct(e.getFullYear()%100,r,2)}function na(e,r){return e=dn(e),ct(e.getFullYear()%100,r,2)}function ia(e,r){return ct(e.getFullYear()%1e4,r,4)}function aa(e,r){var n=e.getDay();return e=n>=4||n===0?Lt(e):Lt.ceil(e),ct(e.getFullYear()%1e4,r,4)}function sa(e){var r=e.getTimezoneOffset();return(r>0?"-":(r*=-1,"+"))+ct(r/60|0,"0",2)+ct(r%60,"0",2)}function sn(e,r){return ct(e.getUTCDate(),r,2)}function oa(e,r){return ct(e.getUTCHours(),r,2)}function ca(e,r){return ct(e.getUTCHours()%12||12,r,2)}function ua(e,r){return ct(1+oe.count(Yt(e),e),r,3)}function hn(e,r){return ct(e.getUTCMilliseconds(),r,3)}function fa(e,r){return hn(e,r)+"000"}function da(e,r){return ct(e.getUTCMonth()+1,r,2)}function ma(e,r){return ct(e.getUTCMinutes(),r,2)}function ha(e,r){return ct(e.getUTCSeconds(),r,2)}function ya(e){var r=e.getUTCDay();return r===0?7:r}function ga(e,r){return ct(jt.count(Yt(e)-1,e),r,2)}function yn(e){var r=e.getUTCDay();return r>=4||r===0?Rt(e):Rt.ceil(e)}function ka(e,r){return e=yn(e),ct(Rt.count(Yt(e),e)+(Yt(e).getUTCDay()===4),r,2)}function pa(e){return e.getUTCDay()}function Ta(e,r){return ct(Jt.count(Yt(e)-1,e),r,2)}function va(e,r){return ct(e.getUTCFullYear()%100,r,2)}function xa(e,r){return e=yn(e),ct(e.getUTCFullYear()%100,r,2)}function ba(e,r){return ct(e.getUTCFullYear()%1e4,r,4)}function wa(e,r){var n=e.getUTCDay();return e=n>=4||n===0?Rt(e):Rt.ceil(e),ct(e.getUTCFullYear()%1e4,r,4)}function Ma(){return"+0000"}function cn(){return"%"}function un(e){return+e}function ln(e){return Math.floor(+e/1000)}var Kt,Xt,gn,kn,pn;tr({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 tr(e){return Kt=Ke(e),Xt=Kt.format,gn=Kt.parse,kn=Kt.utcFormat,pn=Kt.utcParse,Kt}function Da(e){return new Date(e)}function Ca(e){return e instanceof Date?+e:+new Date(+e)}function vn(e,r,n,i,s,o,u,M,D,B){var W=Fr(),{invert:G,domain:O}=W,z=B(".%L"),U=B(":%S"),Z=B("%I:%M"),H=B("%I %p"),tt=B("%a %d"),ft=B("%b %d"),at=B("%B"),j=B("%Y");function _(f){return(D(f)<f?z:M(f)<f?U:u(f)<f?Z:o(f)<f?H:i(f)<f?s(f)<f?tt:ft:n(f)<f?at:j)(f)}return W.invert=function(f){return new Date(G(f))},W.domain=function(f){return arguments.length?O(Array.from(f,Ca)):O().map(Da)},W.ticks=function(f){var P=O();return e(P[0],P[P.length-1],f==null?10:f)},W.tickFormat=function(f,P){return P==null?_:B(P)},W.nice=function(f){var P=O();if(!f||typeof f.range!=="function")f=r(P[0],P[P.length-1],f==null?10:f);return f?O(Be(P,f)):W},W.copy=function(){return la(W,vn(e,r,n,i,s,o,u,M,D,B))},W}function er(){return Pt.apply(vn(Ge,qe,bt,Ht,_t,St,$t,Ot,xt,Xt).domain([new Date(2000,0,1),new Date(2000,0,2)]),arguments)}var Yn=Se(Vn(),1),Mt=Se(Ra(),1),Fn=Se(xn(),1),In=Se(bn(),1),Un=Se(wn(),1),ee=Se(Ra(),1),Bn=Se(Mn(),1);var dr=function(){var e=t(function(V,d,w,v){for(w=w||{},v=V.length;v--;w[V[v]]=d);return w},"o"),r=[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],i=[1,27],s=[1,28],o=[1,29],u=[1,30],M=[1,31],D=[1,32],B=[1,33],W=[1,34],G=[1,9],O=[1,10],z=[1,11],U=[1,12],Z=[1,13],H=[1,14],tt=[1,15],ft=[1,16],at=[1,19],j=[1,20],_=[1,21],f=[1,22],P=[1,23],rt=[1,25],nt=[1,35],x={trace:t(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:t(function(d,w,v,k,Q,c,J){var h=c.length-1;switch(Q){case 1:return c[h-1];case 2:this.$=[];break;case 3:c[h-1].push(c[h]),this.$=c[h-1];break;case 4:case 5:this.$=c[h];break;case 6:case 7:this.$=[];break;case 8:k.setWeekday("monday");break;case 9:k.setWeekday("tuesday");break;case 10:k.setWeekday("wednesday");break;case 11:k.setWeekday("thursday");break;case 12:k.setWeekday("friday");break;case 13:k.setWeekday("saturday");break;case 14:k.setWeekday("sunday");break;case 15:k.setWeekend("friday");break;case 16:k.setWeekend("saturday");break;case 17:k.setDateFormat(c[h].substr(11)),this.$=c[h].substr(11);break;case 18:k.enableInclusiveEndDates(),this.$=c[h].substr(18);break;case 19:k.TopAxis(),this.$=c[h].substr(8);break;case 20:k.setAxisFormat(c[h].substr(11)),this.$=c[h].substr(11);break;case 21:k.setTickInterval(c[h].substr(13)),this.$=c[h].substr(13);break;case 22:k.setExcludes(c[h].substr(9)),this.$=c[h].substr(9);break;case 23:k.setIncludes(c[h].substr(9)),this.$=c[h].substr(9);break;case 24:k.setTodayMarker(c[h].substr(12)),this.$=c[h].substr(12);break;case 27:k.setDiagramTitle(c[h].substr(6)),this.$=c[h].substr(6);break;case 28:this.$=c[h].trim(),k.setAccTitle(this.$);break;case 29:case 30:this.$=c[h].trim(),k.setAccDescription(this.$);break;case 31:k.addSection(c[h].substr(8)),this.$=c[h].substr(8);break;case 33:k.addTask(c[h-1],c[h]),this.$="task";break;case 34:this.$=c[h-1],k.setClickEvent(c[h-1],c[h],null);break;case 35:this.$=c[h-2],k.setClickEvent(c[h-2],c[h-1],c[h]);break;case 36:this.$=c[h-2],k.setClickEvent(c[h-2],c[h-1],null),k.setLink(c[h-2],c[h]);break;case 37:this.$=c[h-3],k.setClickEvent(c[h-3],c[h-2],c[h-1]),k.setLink(c[h-3],c[h]);break;case 38:this.$=c[h-2],k.setClickEvent(c[h-2],c[h],null),k.setLink(c[h-2],c[h-1]);break;case 39:this.$=c[h-3],k.setClickEvent(c[h-3],c[h-1],c[h]),k.setLink(c[h-3],c[h-2]);break;case 40:this.$=c[h-1],k.setLink(c[h-1],c[h]);break;case 41:case 47:this.$=c[h-1]+" "+c[h];break;case 42:case 43:case 45:this.$=c[h-2]+" "+c[h-1]+" "+c[h];break;case 44:case 46:this.$=c[h-3]+" "+c[h-2]+" "+c[h-1]+" "+c[h];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(r,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:i,14:s,15:o,16:u,17:M,18:D,19:18,20:B,21:W,22:G,23:O,24:z,25:U,26:Z,27:H,28:tt,29:ft,30:at,31:j,33:_,35:f,36:P,37:24,38:rt,40:nt},e(r,[2,7],{1:[2,1]}),e(r,[2,3]),{9:36,11:17,12:n,13:i,14:s,15:o,16:u,17:M,18:D,19:18,20:B,21:W,22:G,23:O,24:z,25:U,26:Z,27:H,28:tt,29:ft,30:at,31:j,33:_,35:f,36:P,37:24,38:rt,40:nt},e(r,[2,5]),e(r,[2,6]),e(r,[2,17]),e(r,[2,18]),e(r,[2,19]),e(r,[2,20]),e(r,[2,21]),e(r,[2,22]),e(r,[2,23]),e(r,[2,24]),e(r,[2,25]),e(r,[2,26]),e(r,[2,27]),{32:[1,37]},{34:[1,38]},e(r,[2,30]),e(r,[2,31]),e(r,[2,32]),{39:[1,39]},e(r,[2,8]),e(r,[2,9]),e(r,[2,10]),e(r,[2,11]),e(r,[2,12]),e(r,[2,13]),e(r,[2,14]),e(r,[2,15]),e(r,[2,16]),{41:[1,40],43:[1,41]},e(r,[2,4]),e(r,[2,28]),e(r,[2,29]),e(r,[2,33]),e(r,[2,34],{42:[1,42],43:[1,43]}),e(r,[2,40],{41:[1,44]}),e(r,[2,35],{43:[1,45]}),e(r,[2,36]),e(r,[2,38],{42:[1,46]}),e(r,[2,37]),e(r,[2,39])],defaultActions:{},parseError:t(function(d,w){if(w.recoverable)this.trace(d);else{var v=Error(d);throw v.hash=w,v}},"parseError"),parse:t(function(d){var w=this,v=[0],k=[],Q=[null],c=[],J=this.table,h="",mt=0,m=0,q=0,K=2,ut=1,lt=c.slice.call(arguments,1),it=Object.create(this.lexer),g={yy:{}};for(var X in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,X))g.yy[X]=this.yy[X];if(it.setInput(d,g.yy),g.yy.lexer=it,g.yy.parser=this,typeof it.yylloc>"u")it.yylloc={};var et=it.yylloc;c.push(et);var y=it.options&&it.options.ranges;if(typeof g.yy.parseError==="function")this.parseError=g.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function ht(Dt){v.length=v.length-2*Dt,Q.length=Q.length-Dt,c.length=c.length-Dt}t(ht,"popStack");function st(){var Dt=k.pop()||it.lex()||ut;if(typeof Dt!=="number"){if(Dt instanceof Array)k=Dt,Dt=k.pop();Dt=w.symbols_[Dt]||Dt}return Dt}t(st,"lex");var ot,yt,gt,Tt,ps,Le,qt={},de,Et,Sr,me;while(!0){if(gt=v[v.length-1],this.defaultActions[gt])Tt=this.defaultActions[gt];else{if(ot===null||typeof ot>"u")ot=st();Tt=J[gt]&&J[gt][ot]}if(typeof Tt>"u"||!Tt.length||!Tt[0]){var We="";me=[];for(de in J[gt])if(this.terminals_[de]&&de>K)me.push("'"+this.terminals_[de]+"'");if(it.showPosition)We="Parse error on line "+(mt+1)+`:
2
2
  `+it.showPosition()+`
3
- Expecting `+me.join(", ")+", got '"+(this.terminals_[ot]||ot)+"'";else We="Parse error on line "+(mt+1)+": Unexpected "+(ot==ut?"end of input":"'"+(this.terminals_[ot]||ot)+"'");this.parseError(We,{text:it.match,token:this.terminals_[ot]||ot,line:it.yylineno,loc:et,expected:me})}if(vt[0]instanceof Array&&vt.length>1)throw Error("Parse Error: multiple actions possible at state: "+gt+", token: "+ot);switch(vt[0]){case 1:if(v.push(ot),Q.push(it.yytext),c.push(it.yylloc),v.push(vt[1]),ot=null,!yt){if(m=it.yyleng,h=it.yytext,mt=it.yylineno,et=it.yylloc,q>0)q--}else ot=yt,yt=null;break;case 2:if(Et=this.productions_[vt[1]][1],qt.$=Q[Q.length-Et],qt._$={first_line:c[c.length-(Et||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(Et||1)].first_column,last_column:c[c.length-1].last_column},y)qt._$.range=[c[c.length-(Et||1)].range[0],c[c.length-1].range[1]];if(Le=this.performAction.apply(qt,[h,m,mt,g.yy,vt[1],Q,c].concat(lt)),typeof Le<"u")return Le;if(Et)v=v.slice(0,-1*Et*2),Q=Q.slice(0,-1*Et),c=c.slice(0,-1*Et);v.push(this.productions_[vt[1]][0]),Q.push(qt.$),c.push(qt._$),Sr=J[v[v.length-2]][v[v.length-1]],v.push(Sr);break;case 3:return!0}}return!0},"parse")},U=function(){var V={EOF:1,parseError:t(function(w,v){if(this.yy.parser)this.yy.parser.parseError(w,v);else throw Error(w)},"parseError"),setInput:t(function(d,w){if(this.yy=w||this.yy||{},this._input=d,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];return this.offset=0,this},"setInput"),input:t(function(){var d=this._input[0];this.yytext+=d,this.yyleng++,this.offset++,this.match+=d,this.matched+=d;var w=d.match(/(?:\r\n?|\n).*/g);if(w)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),d},"input"),unput:t(function(d){var w=d.length,v=d.split(/(?:\r\n?|\n)/g);this._input=d+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-w),this.offset-=w;var k=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),v.length-1)this.yylineno-=v.length-1;var Q=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:v?(v.length===k.length?this.yylloc.first_column:0)+k[k.length-v.length].length-v[0].length:this.yylloc.first_column-w},this.options.ranges)this.yylloc.range=[Q[0],Q[0]+this.yyleng-w];return this.yyleng=this.yytext.length,this},"unput"),more:t(function(){return this._more=!0,this},"more"),reject:t(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 `+me.join(", ")+", got '"+(this.terminals_[ot]||ot)+"'";else We="Parse error on line "+(mt+1)+": Unexpected "+(ot==ut?"end of input":"'"+(this.terminals_[ot]||ot)+"'");this.parseError(We,{text:it.match,token:this.terminals_[ot]||ot,line:it.yylineno,loc:et,expected:me})}if(Tt[0]instanceof Array&&Tt.length>1)throw Error("Parse Error: multiple actions possible at state: "+gt+", token: "+ot);switch(Tt[0]){case 1:if(v.push(ot),Q.push(it.yytext),c.push(it.yylloc),v.push(Tt[1]),ot=null,!yt){if(m=it.yyleng,h=it.yytext,mt=it.yylineno,et=it.yylloc,q>0)q--}else ot=yt,yt=null;break;case 2:if(Et=this.productions_[Tt[1]][1],qt.$=Q[Q.length-Et],qt._$={first_line:c[c.length-(Et||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(Et||1)].first_column,last_column:c[c.length-1].last_column},y)qt._$.range=[c[c.length-(Et||1)].range[0],c[c.length-1].range[1]];if(Le=this.performAction.apply(qt,[h,m,mt,g.yy,Tt[1],Q,c].concat(lt)),typeof Le<"u")return Le;if(Et)v=v.slice(0,-1*Et*2),Q=Q.slice(0,-1*Et),c=c.slice(0,-1*Et);v.push(this.productions_[Tt[1]][0]),Q.push(qt.$),c.push(qt._$),Sr=J[v[v.length-2]][v[v.length-1]],v.push(Sr);break;case 3:return!0}}return!0},"parse")},I=function(){var V={EOF:1,parseError:t(function(w,v){if(this.yy.parser)this.yy.parser.parseError(w,v);else throw Error(w)},"parseError"),setInput:t(function(d,w){if(this.yy=w||this.yy||{},this._input=d,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];return this.offset=0,this},"setInput"),input:t(function(){var d=this._input[0];this.yytext+=d,this.yyleng++,this.offset++,this.match+=d,this.matched+=d;var w=d.match(/(?:\r\n?|\n).*/g);if(w)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),d},"input"),unput:t(function(d){var w=d.length,v=d.split(/(?:\r\n?|\n)/g);this._input=d+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-w),this.offset-=w;var k=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),v.length-1)this.yylineno-=v.length-1;var Q=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:v?(v.length===k.length?this.yylloc.first_column:0)+k[k.length-v.length].length-v[0].length:this.yylloc.first_column-w},this.options.ranges)this.yylloc.range=[Q[0],Q[0]+this.yyleng-w];return this.yyleng=this.yytext.length,this},"unput"),more:t(function(){return this._more=!0,this},"more"),reject:t(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},"reject"),less:t(function(d){this.unput(this.match.slice(d))},"less"),pastInput:t(function(){var d=this.matched.substr(0,this.matched.length-this.match.length);return(d.length>20?"...":"")+d.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:t(function(){var d=this.match;if(d.length<20)d+=this._input.substr(0,20-d.length);return(d.substr(0,20)+(d.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:t(function(){var d=this.pastInput(),w=Array(d.length+1).join("-");return d+this.upcomingInput()+`
5
5
  `+w+"^"},"showPosition"),test_match:t(function(d,w){var v,k,Q;if(this.options.backtrack_lexer){if(Q={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)Q.yylloc.range=this.yylloc.range.slice(0)}if(k=d[0].match(/(?:\r\n?|\n).*/g),k)this.yylineno+=k.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:k?k[k.length-1].length-k[k.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+d[0].length},this.yytext+=d[0],this.match+=d[0],this.matches=d,this.yyleng=this.yytext.length,this.options.ranges)this.yylloc.range=[this.offset,this.offset+=this.yyleng];if(this._more=!1,this._backtrack=!1,this._input=this._input.slice(d[0].length),this.matched+=d[0],v=this.performAction.call(this,this.yy,this,w,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(v)return v;else if(this._backtrack){for(var c in Q)this[c]=Q[c];return!1}return!1},"test_match"),next:t(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var d,w,v,k;if(!this._more)this.yytext="",this.match="";var Q=this._currentRules();for(var c=0;c<Q.length;c++)if(v=this._input.match(this.rules[Q[c]]),v&&(!w||v[0].length>w[0].length)){if(w=v,k=c,this.options.backtrack_lexer)if(d=this.test_match(v,Q[c]),d!==!1)return d;else if(this._backtrack){w=!1;continue}else return!1;else if(!this.options.flex)break}if(w){if(d=this.test_match(w,Q[k]),d!==!1)return d;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
6
- `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:t(function(){var w=this.next();if(w)return w;else return this.lex()},"lex"),begin:t(function(w){this.conditionStack.push(w)},"begin"),popState:t(function(){var w=this.conditionStack.length-1;if(w>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:t(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:t(function(w){if(w=this.conditionStack.length-1-Math.abs(w||0),w>=0)return this.conditionStack[w];else return"INITIAL"},"topState"),pushState:t(function(w){this.begin(w)},"pushState"),stateStackSize:t(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:t(function(w,v,k,Q){var c=Q;switch(k){case 0:return this.begin("open_directive"),"open_directive";break;case 1:return this.begin("acc_title"),31;break;case 2:return this.popState(),"acc_title_value";break;case 3:return this.begin("acc_descr"),33;break;case 4:return this.popState(),"acc_descr_value";break;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}();x.lexer=U;function I(){this.yy={}}return t(I,"Parser"),I.prototype=x,x.Parser=I,new I}();dr.parser=dr;var Sa=dr;Mt.default.extend(_n.default);Mt.default.extend(Yn.default);Mt.default.extend(Fn.default);var Mn={friday:5,saturday:6},Wt="",gr="",kr=void 0,pr="",ne=[],ie=[],Tr=new Map,vr=[],Ie=[],ae="",xr="",In=["active","done","crit","milestone","vert"],br=[],te="",fe=!1,wr=!1,Mr="sunday",Ue="saturday",mr=0,_a=t(function(){vr=[],Ie=[],ae="",br=[],Ye=0,yr=void 0,Fe=void 0,pt=[],Wt="",gr="",xr="",kr=void 0,pr="",ne=[],ie=[],fe=!1,wr=!1,mr=0,Tr=new Map,te="",C(),Mr="sunday",Ue="saturday"},"clear"),Ya=t(function(e){te=e},"setDiagramId"),Fa=t(function(e){gr=e},"setAxisFormat"),Ua=t(function(){return gr},"getAxisFormat"),La=t(function(e){kr=e},"setTickInterval"),Wa=t(function(){return kr},"getTickInterval"),Ea=t(function(e){pr=e},"setTodayMarker"),Aa=t(function(){return pr},"getTodayMarker"),Oa=t(function(e){Wt=e},"setDateFormat"),$a=t(function(){fe=!0},"enableInclusiveEndDates"),Ha=t(function(){return fe},"endDatesAreInclusive"),Na=t(function(){wr=!0},"enableTopAxis"),Pa=t(function(){return wr},"topAxisEnabled"),Va=t(function(e){xr=e},"setDisplayMode"),za=t(function(){return xr},"getDisplayMode"),Ra=t(function(){return Wt},"getDateFormat"),Un=t((e,r)=>{let n=r.toLowerCase().split(/[\s,]+/).filter((i)=>i!=="");return[...new Set([...e,...n])]},"mergeTokens"),Ba=t(function(e){ne=Un(ne,e)},"setIncludes"),Za=t(function(){return ne},"getIncludes"),ja=t(function(e){ie=Un(ie,e)},"setExcludes"),Xa=t(function(){return ie},"getExcludes"),Ga=t(function(){return Tr},"getLinks"),qa=t(function(e){ae=e,vr.push(e)},"addSection"),Qa=t(function(){return vr},"getSections"),Ja=t(function(){let e=Dn(),r=10,n=0;while(!e&&n<r)e=Dn(),n++;return Ie=pt,Ie},"getTasks"),Ln=t(function(e,r,n,i){let s=e.format(r.trim()),o=e.format("YYYY-MM-DD");if(i.includes(s)||i.includes(o))return!1;if(n.includes("weekends")&&(e.isoWeekday()===Mn[Ue]||e.isoWeekday()===Mn[Ue]+1))return!0;if(n.includes(e.format("dddd").toLowerCase()))return!0;return n.includes(s)||n.includes(o)},"isInvalidDate"),Ka=t(function(e){Mr=e},"setWeekday"),ts=t(function(){return Mr},"getWeekday"),es=t(function(e){Ue=e},"setWeekend"),Wn=t(function(e,r,n,i){if(!n.length||e.manualEndTime)return;let s;if(e.startTime instanceof Date)s=Mt.default(e.startTime);else s=Mt.default(e.startTime,r,!0);s=s.add(1,"d");let o;if(e.endTime instanceof Date)o=Mt.default(e.endTime);else o=Mt.default(e.endTime,r,!0);let[u,D]=rs(s,o,r,n,i);e.endTime=u.toDate(),e.renderEndTime=D},"checkTaskDates"),rs=t(function(e,r,n,i,s){let o=!1,u=null,D=r.add(1e4,"d");while(e<=r){if(!o)u=r.toDate();if(o=Ln(e,n,i,s),o){if(r=r.add(1,"d"),r>D)throw Error("Failed to find a valid date that was not excluded by `excludes` after 10,000 iterations.")}e=e.add(1,"d")}return[r,u]},"fixTaskDates"),On=t(function(e,r){a.warn(`Gantt: the "${e}" statement references unknown task id(s): ${r.join(", ")}. Make sure the referenced tasks exist and declare an id. Milestones need both an id and a duration, e.g. "Milestone :milestone, m1, 2023-01-01, 0d".`)},"warnAboutUnknownTaskIds"),hr=t(function(e,r,n){if(n=n.trim(),t((D)=>{let _=D.trim();return _==="x"||_==="X"},"isTimestampFormat")(r)&&/^\d+$/.test(n))return new Date(Number(n));let o=/^after\s+(?<ids>[\d\w- ]+)/.exec(n);if(o!==null){let D=null,_=[],B=o.groups.ids.split(" ").filter((G)=>G!=="");for(let G of B){let H=Gt(G);if(H===void 0){_.push(G);continue}if(!D||H.endTime>D.endTime)D=H}if(_.length>0)On("after",_);if(D)return D.endTime;let O=new Date;return O.setHours(0,0,0,0),O}let u=Mt.default(n,r.trim(),!0);if(u.isValid())return u.toDate();else{a.debug("Invalid date:"+n),a.debug("With date format:"+r.trim());let D=new Date(n);if(D===void 0||isNaN(D.getTime())||D.getFullYear()<-1e4||D.getFullYear()>1e4)throw Error("Invalid date:"+n);return D}},"getStartDate"),Hn=t(function(e){let r=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(e.trim());if(r!==null)return[Number.parseFloat(r[1]),r[2]];return[NaN,"ms"]},"parseDuration"),Nn=t(function(e,r,n,i=!1){n=n.trim();let o=/^until\s+(?<ids>[\d\w- ]+)/.exec(n);if(o!==null){let O=null,G=[],H=o.groups.ids.split(" ").filter((W)=>W!=="");for(let W of H){let Z=Gt(W);if(Z===void 0){G.push(W);continue}if(!O||Z.startTime<O.startTime)O=Z}if(G.length>0)On("until",G);if(O)return O.startTime;let z=new Date;return z.setHours(0,0,0,0),z}let u=Mt.default(n,r.trim(),!0);if(u.isValid()){if(i)u=u.add(1,"d");return u.toDate()}let D=Mt.default(e),[_,B]=Hn(n);if(Number.isNaN(_))a.warn(`Gantt: "${n}" is neither a valid date for the "${r.trim()}" date format nor a valid duration (e.g. "3d"), so it is ignored and the task gets a zero duration. Milestones need a duration too, e.g. "Milestone :milestone, m1, 2023-01-01, 0d".`);else{let O=D.add(_,B);if(O.isValid())D=O}return D.toDate()},"getEndDate"),Ye=0,re=t(function(e){if(e===void 0)return Ye=Ye+1,"task"+Ye;return e},"parseId"),ns=t(function(e,r){let n;if(r.substr(0,1)===":")n=r.substr(1,r.length);else n=r;let i=n.split(","),s={};Dr(i,s,In);for(let u=0;u<i.length;u++)i[u]=i[u].trim();let o="";switch(i.length){case 1:s.id=re(),s.startTime=e.endTime,o=i[0];break;case 2:s.id=re(),s.startTime=hr(void 0,Wt,i[0]),o=i[1];break;case 3:s.id=re(i[0]),s.startTime=hr(void 0,Wt,i[1]),o=i[2];break;default:}if(o)s.endTime=Nn(s.startTime,Wt,o,fe),s.manualEndTime=Mt.default(o,"YYYY-MM-DD",!0).isValid(),Wn(s,Wt,ie,ne);return s},"compileData"),is=t(function(e,r){let n;if(r.substr(0,1)===":")n=r.substr(1,r.length);else n=r;let i=n.split(","),s={};Dr(i,s,In);for(let o=0;o<i.length;o++)i[o]=i[o].trim();switch(i.length){case 1:s.id=re(),s.startTime={type:"prevTaskEnd",id:e},s.endTime={data:i[0]};break;case 2:s.id=re(),s.startTime={type:"getStartDate",startData:i[0]},s.endTime={data:i[1]};break;case 3:s.id=re(i[0]),s.startTime={type:"getStartDate",startData:i[1]},s.endTime={data:i[2]};break;default:}return s},"parseData"),yr,Fe,pt=[],Pn={},as=t(function(e,r){let n={section:ae,type:ae,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:r},task:e,classes:[]},i=is(Fe,r);if(n.raw.startTime=i.startTime,n.raw.endTime=i.endTime,n.id=i.id,n.prevTaskId=Fe,n.active=i.active,n.done=i.done,n.crit=i.crit,n.milestone=i.milestone,n.vert=i.vert,n.vert)n.order=-1;else n.order=mr,mr++;let s=pt.push(n);Fe=n.id,Pn[n.id]=s-1},"addTask"),Gt=t(function(e){let r=Pn[e];return pt[r]},"findTaskById"),ss=t(function(e,r){let n={section:ae,type:ae,description:e,task:e,classes:[]},i=ns(yr,r);n.startTime=i.startTime,n.endTime=i.endTime,n.id=i.id,n.active=i.active,n.done=i.done,n.crit=i.crit,n.milestone=i.milestone,n.vert=i.vert,yr=n,Ie.push(n)},"addTaskOrg"),Dn=t(function(){let e=t(function(n){let i=pt[n],s="";switch(pt[n].raw.startTime.type){case"prevTaskEnd":{let o=Gt(i.prevTaskId);i.startTime=o.endTime;break}case"getStartDate":if(s=hr(void 0,Wt,pt[n].raw.startTime.startData),s)pt[n].startTime=s;break}if(pt[n].startTime){if(pt[n].endTime=Nn(pt[n].startTime,Wt,pt[n].raw.endTime.data,fe),pt[n].endTime)pt[n].processed=!0,pt[n].manualEndTime=Mt.default(pt[n].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),Wn(pt[n],Wt,ie,ne)}return pt[n].processed},"compileTask"),r=!0;for(let[n,i]of pt.entries())e(n),r=r&&i.processed;return r},"compileTasks"),os=t(function(e,r){let n=r;if(l().securityLevel!=="loose")n=Sn.sanitizeUrl(r);e.split(",").forEach(function(i){if(Gt(i)!==void 0)zn(i,()=>{window.open(n,"_self")}),Tr.set(i,n)}),Vn(e,"clickable")},"setLink"),Vn=t(function(e,r){e.split(",").forEach(function(n){let i=Gt(n);if(i!==void 0)i.classes.push(r)})},"setClass"),cs=t(function(e,r,n){if(l().securityLevel!=="loose")return;if(r===void 0)return;let i=[];if(typeof n==="string"){i=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let o=0;o<i.length;o++){let u=i[o].trim();if(u.startsWith('"')&&u.endsWith('"'))u=u.substr(1,u.length-2);i[o]=u}}if(i.length===0)i.push(e);if(Gt(e)!==void 0)zn(e,()=>{M.runFunc(r,...i)})},"setClickFun"),zn=t(function(e,r){br.push(function(){let n=te?`${te}-${e}`:e,i=document.querySelector(`[id="${n}"]`);if(i!==null)i.addEventListener("click",function(){r()})},function(){let n=te?`${te}-${e}`:e,i=document.querySelector(`[id="${n}-text"]`);if(i!==null)i.addEventListener("click",function(){r()})})},"pushFun"),us=t(function(e,r,n){e.split(",").forEach(function(i){cs(i,r,n)}),Vn(e,"clickable")},"setClickEvent"),ls=t(function(e){br.forEach(function(r){r(e)})},"bindFunctions"),fs={getConfig:t(()=>l().gantt,"getConfig"),clear:_a,setDateFormat:Oa,getDateFormat:Ra,enableInclusiveEndDates:$a,endDatesAreInclusive:Ha,enableTopAxis:Na,topAxisEnabled:Pa,setAxisFormat:Fa,getAxisFormat:Ua,setTickInterval:La,getTickInterval:Wa,setTodayMarker:Ea,getTodayMarker:Aa,setAccTitle:S,getAccTitle:E,setDiagramTitle:L,getDiagramTitle:R,setDiagramId:Ya,setDisplayMode:Va,getDisplayMode:za,setAccDescription:T,getAccDescription:A,addSection:qa,getSections:Qa,getTasks:Ja,addTask:as,findTaskById:Gt,addTaskOrg:ss,setIncludes:Ba,getIncludes:Za,setExcludes:ja,getExcludes:Xa,setClickEvent:us,setLink:os,getLinks:Ga,bindFunctions:ls,parseDuration:Hn,isInvalidDate:Ln,setWeekday:Ka,getWeekday:ts,setWeekend:es};function Dr(e,r,n){let i=!0;while(i)i=!1,n.forEach(function(s){let o="^\\s*"+s+"\\s*$",u=new RegExp(o);if(e[0].match(u))r[s]=!0,e.shift(1),i=!0})}t(Dr,"getTaskTags");ee.default.extend(Rn.default);var ds=t(function(){a.debug("Something is calling, setConf, remove the call")},"setConf"),Cn={monday:zt,tuesday:we,wednesday:Me,thursday:Lt,friday:De,saturday:Ce,sunday:_t},ms=t((e,r)=>{let n=[...e].map(()=>-1/0),i=[...e].sort((o,u)=>o.startTime-u.startTime||o.order-u.order),s=0;for(let o of i)for(let u=0;u<n.length;u++)if(o.startTime>=n[u]){if(n[u]=o.endTime,o.order=u+r,u>s)s=u;break}return s},"getMaxIntersections"),Pt,fr=1e4,hs=t(function(e,r,n,i){let s=l().gantt;i.db.setDiagramId(r);let o=l().securityLevel,u;if(o==="sandbox")u=p("#i"+r);let D=o==="sandbox"?p(u.nodes()[0].contentDocument.body):p("body"),_=o==="sandbox"?u.nodes()[0].contentDocument:document,B=_.getElementById(r);if(Pt=B.parentElement.offsetWidth,Pt===void 0)Pt=1200;if(s.useWidth!==void 0)Pt=s.useWidth;let O=i.db.getTasks(),G=O.filter((x)=>!x.vert),H=[];for(let x of G)H.push(x.type);H=nt(H);let z={},W=2*s.topPadding;if(i.db.getDisplayMode()==="compact"||s.displayMode==="compact"){let x={};for(let I of G)if(x[I.section]===void 0)x[I.section]=[I];else x[I.section].push(I);let U=0;for(let I of Object.keys(x)){let V=ms(x[I],U)+1;U+=V,W+=V*(s.barHeight+s.barGap),z[I]=V}}else{W+=G.length*(s.barHeight+s.barGap);for(let x of H)z[x]=G.filter((U)=>U.type===x).length}B.setAttribute("viewBox","0 0 "+Pt+" "+W);let Z=D.select(`[id="${r}"]`),N=er().domain([hn(O,function(x){return x.startTime}),$n(O,function(x){return x.endTime})]).rangeRound([0,Pt-s.leftPadding-s.rightPadding]);function tt(x,U){let I=x.startTime,V=U.startTime,d=0;if(I>V)d=1;else if(I<V)d=-1;return d}t(tt,"taskCompare"),O.sort(tt),ft(O,Pt,W),F(Z,W,Pt,s.useMaxWidth),Z.append("text").text(i.db.getDiagramTitle()).attr("x",Pt/2).attr("y",s.titleTopMargin).attr("class","titleText");function ft(x,U,I){let V=s.barHeight,d=V+s.barGap,{topPadding:w,leftPadding:v}=s,k=kt().domain([0,H.length]).range(["#00B9FA","#F95002"]).interpolate(Vr);j(d,w,v,U,I,x,i.db.getExcludes(),i.db.getIncludes()),f(v,w,U,I),at(x,d,w,v,V,k,U,I),P(d,w,v,V,k),rt(v,w,U,I)}t(ft,"makeGantt");function at(x,U,I,V,d,w,v){x.sort((m,q)=>m.vert===q.vert?0:m.vert?1:-1);let k=x.filter((m)=>!m.vert),c=[...new Set(k.map((m)=>m.order))].map((m)=>k.find((q)=>q.order===m));Z.append("g").selectAll("rect").data(c).enter().append("rect").attr("x",0).attr("y",function(m,q){return q=m.order,q*U+I-2}).attr("width",function(){return v-s.rightPadding/2}).attr("height",U).attr("class",function(m){for(let[q,K]of H.entries())if(m.type===K)return"section section"+q%s.numberSectionStyles;return"section section0"}).enter();let J=Z.append("g").selectAll("rect").data(x).enter(),h=i.db.getLinks();if(J.append("rect").attr("id",function(m){return r+"-"+m.id}).attr("rx",3).attr("ry",3).attr("x",function(m){if(m.milestone)return N(m.startTime)+V+0.5*(N(m.endTime)-N(m.startTime))-0.5*d;return N(m.startTime)+V}).attr("y",function(m,q){if(q=m.order,m.vert)return s.gridLineStartPadding;return q*U+I}).attr("width",function(m){if(m.milestone)return d;if(m.vert)return 0.08*d;return N(m.renderEndTime||m.endTime)-N(m.startTime)}).attr("height",function(m){if(m.vert)return k.length*(s.barHeight+s.barGap)+s.barHeight*2;return d}).attr("transform-origin",function(m,q){return q=m.order,(N(m.startTime)+V+0.5*(N(m.endTime)-N(m.startTime))).toString()+"px "+(q*U+I+0.5*d).toString()+"px"}).attr("class",function(m){let K="";if(m.classes.length>0)K=m.classes.join(" ");let ut=0;for(let[it,g]of H.entries())if(m.type===g)ut=it%s.numberSectionStyles;let lt="";if(m.active)if(m.crit)lt+=" activeCrit";else lt=" active";else if(m.done)if(m.crit)lt=" doneCrit";else lt=" done";else if(m.crit)lt+=" crit";if(lt.length===0)lt=" task";if(m.milestone)lt=" milestone "+lt;if(m.vert)lt=" vert "+lt;return lt+=ut,lt+=" "+K,"task"+lt}),J.append("text").attr("id",function(m){return r+"-"+m.id+"-text"}).text(function(m){return m.task}).attr("font-size",s.fontSize).attr("x",function(m){let q=N(m.startTime),K=N(m.renderEndTime||m.endTime);if(m.milestone)q+=0.5*(N(m.endTime)-N(m.startTime))-0.5*d,K=q+d;if(m.vert)return N(m.startTime)+V;let ut=this.getBBox().width;if(ut>K-q)if(K+ut+1.5*s.leftPadding>v)return q+V-5;else return K+V+5;else return(K-q)/2+q+V}).attr("y",function(m,q){if(m.vert)return s.gridLineStartPadding+k.length*(s.barHeight+s.barGap)+60;return q=m.order,q*U+s.barHeight/2+(s.fontSize/2-2)+I}).attr("text-height",d).attr("class",function(m){let q=N(m.startTime),K=N(m.endTime);if(m.milestone)K=q+d;let ut=this.getBBox().width,lt="";if(m.classes.length>0)lt=m.classes.join(" ");let it=0;for(let[X,et]of H.entries())if(m.type===et)it=X%s.numberSectionStyles;let g="";if(m.active)if(m.crit)g="activeCritText"+it;else g="activeText"+it;if(m.done)if(m.crit)g=g+" doneCritText"+it;else g=g+" doneText"+it;else if(m.crit)g=g+" critText"+it;if(m.milestone)g+=" milestoneText";if(m.vert)g+=" vertText";if(ut>K-q)if(K+ut+1.5*s.leftPadding>v)return lt+" taskTextOutsideLeft taskTextOutside"+it+" "+g;else return lt+" taskTextOutsideRight taskTextOutside"+it+" "+g+" width-"+ut;else return lt+" taskText taskText"+it+" "+g+" width-"+ut}),l().securityLevel==="sandbox"){let m;m=p("#i"+r);let q=m.nodes()[0].contentDocument;J.filter(function(K){return h.has(K.id)}).each(function(K){var ut=q.querySelector("#"+CSS.escape(r+"-"+K.id)),lt=q.querySelector("#"+CSS.escape(r+"-"+K.id+"-text"));let it=ut.parentNode;var g=q.createElement("a");g.setAttribute("xlink:href",h.get(K.id)),g.setAttribute("target","_top"),it.appendChild(g),g.appendChild(ut),g.appendChild(lt)})}}t(at,"drawRects");function j(x,U,I,V,d,w,v,k){if(v.length===0&&k.length===0)return;let Q,c;for(let{startTime:K,endTime:ut}of w){if(Q===void 0||K<Q)Q=K;if(c===void 0||ut>c)c=ut}if(!Q||!c)return;if(ee.default(c).diff(ee.default(Q),"year")>5){a.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");return}let J=i.db.getDateFormat(),h=[],mt=null,m=ee.default(Q);while(m.valueOf()<=c){if(i.db.isInvalidDate(m,J,v,k))if(!mt)mt={start:m,end:m};else mt.end=m;else if(mt)h.push(mt),mt=null;m=m.add(1,"d")}Z.append("g").selectAll("rect").data(h).enter().append("rect").attr("id",(K)=>r+"-exclude-"+K.start.format("YYYY-MM-DD")).attr("x",(K)=>N(K.start.startOf("day"))+I).attr("y",s.gridLineStartPadding).attr("width",(K)=>N(K.end.endOf("day"))-N(K.start.startOf("day"))).attr("height",d-U-s.gridLineStartPadding).attr("transform-origin",function(K,ut){return(N(K.start)+I+0.5*(N(K.end)-N(K.start))).toString()+"px "+(ut*x+0.5*d).toString()+"px"}).attr("class","exclude-range")}t(j,"drawExcludeDays");function Y(x,U,I,V){if(I<=0||x>U)return 1/0;let d=U-x,w=ee.default.duration({[V??"day"]:I}).asMilliseconds();if(w<=0)return 1/0;return Math.ceil(d/w)}t(Y,"getEstimatedTickCount");function f(x,U,I,V){let d=i.db.getDateFormat(),w=i.db.getAxisFormat(),v;if(w)v=w;else if(d==="D")v="%d";else v=s.axisFormat??"%Y-%m-%d";let k=He(N).tickSize(-V+U+s.gridLineStartPadding).tickFormat(Xt(v)),c=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(i.db.getTickInterval()||s.tickInterval);if(c!==null){let J=parseInt(c[1],10);if(isNaN(J)||J<=0)a.warn(`Invalid tick interval value: "${c[1]}". Skipping custom tick interval.`);else{let h=c[2],mt=i.db.getWeekday()||s.weekday,m=N.domain(),q=m[0],K=m[1],ut=Y(q,K,J,h);if(ut>fr)a.warn(`The tick interval "${J}${h}" would generate ${ut} ticks, which exceeds the maximum allowed (${fr}). This may indicate an invalid date or time range. Skipping custom tick interval.`);else switch(h){case"millisecond":k.ticks(It.every(J));break;case"second":k.ticks(bt.every(J));break;case"minute":k.ticks($t.every(J));break;case"hour":k.ticks(Ht.every(J));break;case"day":k.ticks(St.every(J));break;case"week":k.ticks(Cn[mt].every(J));break;case"month":k.ticks(Nt.every(J));break}}}if(Z.append("g").attr("class","grid").attr("transform","translate("+x+", "+(V-50)+")").call(k).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),i.db.topAxisEnabled()||s.topAxis){let J=$e(N).tickSize(-V+U+s.gridLineStartPadding).tickFormat(Xt(v));if(c!==null){let h=parseInt(c[1],10);if(isNaN(h)||h<=0)a.warn(`Invalid tick interval value: "${c[1]}". Skipping custom tick interval.`);else{let mt=c[2],m=i.db.getWeekday()||s.weekday,q=N.domain(),K=q[0],ut=q[1];if(Y(K,ut,h,mt)<=fr)switch(mt){case"millisecond":J.ticks(It.every(h));break;case"second":J.ticks(bt.every(h));break;case"minute":J.ticks($t.every(h));break;case"hour":J.ticks(Ht.every(h));break;case"day":J.ticks(St.every(h));break;case"week":J.ticks(Cn[m].every(h));break;case"month":J.ticks(Nt.every(h));break}}}Z.append("g").attr("class","grid").attr("transform","translate("+x+", "+U+")").call(J).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}t(f,"makeGrid");function P(x,U){let I=0,V=Object.keys(z).map((d)=>[d,z[d]]);Z.append("g").selectAll("text").data(V).enter().append(function(d){let w=d[0].split(b.lineBreakRegex),v=-(w.length-1)/2,k=_.createElementNS("http://www.w3.org/2000/svg","text");k.setAttribute("dy",v+"em");for(let[Q,c]of w.entries()){let J=_.createElementNS("http://www.w3.org/2000/svg","tspan");if(J.setAttribute("alignment-baseline","central"),J.setAttribute("x","10"),Q>0)J.setAttribute("dy","1em");J.textContent=c,k.appendChild(J)}return k}).attr("x",10).attr("y",function(d,w){if(w>0)for(let v=0;v<w;v++)return I+=V[w-1][1],d[1]*x/2+I*x+U;else return d[1]*x/2+U}).attr("font-size",s.sectionFontSize).attr("class",function(d){for(let[w,v]of H.entries())if(d[0]===v)return"sectionTitle sectionTitle"+w%s.numberSectionStyles;return"sectionTitle"})}t(P,"vertLabels");function rt(x,U,I,V){let d=i.db.getTodayMarker();if(d==="off")return;let w=Z.append("g").attr("class","today"),v=new Date,k=w.append("line");if(k.attr("x1",N(v)+x).attr("x2",N(v)+x).attr("y1",s.titleTopMargin).attr("y2",V-s.titleTopMargin).attr("class","today"),d!=="")k.attr("style",d.replace(/,/g,";"))}t(rt,"drawToday");function nt(x){let U={},I=[];for(let V=0,d=x.length;V<d;++V)if(!Object.prototype.hasOwnProperty.call(U,x[V]))U[x[V]]=!0,I.push(x[V]);return I}t(nt,"checkUnique")},"draw"),ys={setConf:ds,draw:hs},gs=t((e)=>`
6
+ `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:t(function(){var w=this.next();if(w)return w;else return this.lex()},"lex"),begin:t(function(w){this.conditionStack.push(w)},"begin"),popState:t(function(){var w=this.conditionStack.length-1;if(w>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:t(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:t(function(w){if(w=this.conditionStack.length-1-Math.abs(w||0),w>=0)return this.conditionStack[w];else return"INITIAL"},"topState"),pushState:t(function(w){this.begin(w)},"pushState"),stateStackSize:t(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:t(function(w,v,k,Q){var c=Q;switch(k){case 0:return this.begin("open_directive"),"open_directive";break;case 1:return this.begin("acc_title"),31;break;case 2:return this.popState(),"acc_title_value";break;case 3:return this.begin("acc_descr"),33;break;case 4:return this.popState(),"acc_descr_value";break;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}();x.lexer=I;function Y(){this.yy={}}return t(Y,"Parser"),Y.prototype=x,x.Parser=Y,new Y}();dr.parser=dr;var Sa=dr;Mt.default.extend(Fn.default);Mt.default.extend(In.default);Mt.default.extend(Un.default);var Dn={friday:5,saturday:6},Wt="",gr="",kr=void 0,pr="",ne=[],ie=[],Tr=new Map,vr=[],Ie=[],ae="",xr="",Ln=["active","done","crit","milestone","vert"],br=[],te="",fe=!1,Mr=!1,Dr="sunday",Ue="saturday",mr=0,_a=t(function(){vr=[],Ie=[],ae="",br=[],Ye=0,yr=void 0,Fe=void 0,kt=[],Wt="",gr="",xr="",kr=void 0,pr="",ne=[],ie=[],fe=!1,Mr=!1,mr=0,Tr=new Map,te="",C(),Dr="sunday",Ue="saturday"},"clear"),Ya=t(function(e){te=e},"setDiagramId"),Fa=t(function(e){gr=e},"setAxisFormat"),Ia=t(function(){return gr},"getAxisFormat"),Ua=t(function(e){kr=e},"setTickInterval"),La=t(function(){return kr},"getTickInterval"),Wa=t(function(e){pr=e},"setTodayMarker"),Ea=t(function(){return pr},"getTodayMarker"),Aa=t(function(e){Wt=e},"setDateFormat"),Oa=t(function(){fe=!0},"enableInclusiveEndDates"),$a=t(function(){return fe},"endDatesAreInclusive"),Ha=t(function(){Mr=!0},"enableTopAxis"),Na=t(function(){return Mr},"topAxisEnabled"),Pa=t(function(e){xr=e},"setDisplayMode"),Va=t(function(){return xr},"getDisplayMode"),za=t(function(){return Wt},"getDateFormat"),Wn=t((e,r)=>{let n=r.toLowerCase().split(/[\s,]+/).filter((i)=>i!=="");return[...new Set([...e,...n])]},"mergeTokens"),Ba=t(function(e){ne=Wn(ne,e)},"setIncludes"),Za=t(function(){return ne},"getIncludes"),ja=t(function(e){ie=Wn(ie,e)},"setExcludes"),Xa=t(function(){return ie},"getExcludes"),Ga=t(function(){return Tr},"getLinks"),qa=t(function(e){ae=e,vr.push(e)},"addSection"),Qa=t(function(){return vr},"getSections"),Ja=t(function(){let e=Cn(),r=10,n=0;while(!e&&n<r)e=Cn(),n++;return Ie=kt,Ie},"getTasks"),En=t(function(e,r,n,i){let s=e.format(r.trim()),o=e.format("YYYY-MM-DD");if(i.includes(s)||i.includes(o))return!1;if(n.includes("weekends")&&(e.isoWeekday()===Dn[Ue]||e.isoWeekday()===Dn[Ue]+1))return!0;if(n.includes(e.format("dddd").toLowerCase()))return!0;return n.includes(s)||n.includes(o)},"isInvalidDate"),Ka=t(function(e){Dr=e},"setWeekday"),ts=t(function(){return Dr},"getWeekday"),es=t(function(e){Ue=e},"setWeekend"),An=t(function(e,r,n,i){if(!n.length||e.manualEndTime)return;let s;if(e.startTime instanceof Date)s=Mt.default(e.startTime);else s=Mt.default(e.startTime,r,!0);s=s.add(1,"d");let o;if(e.endTime instanceof Date)o=Mt.default(e.endTime);else o=Mt.default(e.endTime,r,!0);let[u,M]=rs(s,o,r,n,i);e.endTime=u.toDate(),e.renderEndTime=M},"checkTaskDates"),rs=t(function(e,r,n,i,s){let o=!1,u=null,M=r.add(1e4,"d");while(e<=r){if(!o)u=r.toDate();if(o=En(e,n,i,s),o){if(r=r.add(1,"d"),r>M)throw Error("Failed to find a valid date that was not excluded by `excludes` after 10,000 iterations.")}e=e.add(1,"d")}return[r,u]},"fixTaskDates"),On=t(function(e,r){a.warn(`Gantt: the "${e}" statement references unknown task id(s): ${r.join(", ")}. Make sure the referenced tasks exist and declare an id. Milestones need both an id and a duration, e.g. "Milestone :milestone, m1, 2023-01-01, 0d".`)},"warnAboutUnknownTaskIds"),hr=t(function(e,r,n){if(n=n.trim(),t((M)=>{let D=M.trim();return D==="x"||D==="X"},"isTimestampFormat")(r)&&/^\d+$/.test(n))return new Date(Number(n));let o=/^after\s+(?<ids>[\d\w- ]+)/.exec(n);if(o!==null){let M=null,D=[],B=o.groups.ids.split(" ").filter((G)=>G!=="");for(let G of B){let O=Gt(G);if(O===void 0){D.push(G);continue}if(!M||O.endTime>M.endTime)M=O}if(D.length>0)On("after",D);if(M)return M.endTime;let W=new Date;return W.setHours(0,0,0,0),W}let u=Mt.default(n,r.trim(),!0);if(u.isValid())return u.toDate();else{a.debug("Invalid date:"+n),a.debug("With date format:"+r.trim());let M=new Date(n);if(M===void 0||isNaN(M.getTime())||M.getFullYear()<-1e4||M.getFullYear()>1e4)throw Error("Invalid date:"+n);return M}},"getStartDate"),$n=t(function(e){let r=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(e.trim());if(r!==null)return[Number.parseFloat(r[1]),r[2]];return[NaN,"ms"]},"parseDuration"),Hn=t(function(e,r,n,i=!1){n=n.trim();let o=/^until\s+(?<ids>[\d\w- ]+)/.exec(n);if(o!==null){let W=null,G=[],O=o.groups.ids.split(" ").filter((U)=>U!=="");for(let U of O){let Z=Gt(U);if(Z===void 0){G.push(U);continue}if(!W||Z.startTime<W.startTime)W=Z}if(G.length>0)On("until",G);if(W)return W.startTime;let z=new Date;return z.setHours(0,0,0,0),z}let u=Mt.default(n,r.trim(),!0);if(u.isValid()){if(i)u=u.add(1,"d");return u.toDate()}let M=Mt.default(e),[D,B]=$n(n);if(Number.isNaN(D))a.warn(`Gantt: "${n}" is neither a valid date for the "${r.trim()}" date format nor a valid duration (e.g. "3d"), so it is ignored and the task gets a zero duration. Milestones need a duration too, e.g. "Milestone :milestone, m1, 2023-01-01, 0d".`);else{let W=M.add(D,B);if(W.isValid())M=W}return M.toDate()},"getEndDate"),Ye=0,re=t(function(e){if(e===void 0)return Ye=Ye+1,"task"+Ye;return e},"parseId"),ns=t(function(e,r){let n;if(r.substr(0,1)===":")n=r.substr(1,r.length);else n=r;let i=n.split(","),s={};Cr(i,s,Ln);for(let u=0;u<i.length;u++)i[u]=i[u].trim();let o="";switch(i.length){case 1:s.id=re(),s.startTime=e.endTime,o=i[0];break;case 2:s.id=re(),s.startTime=hr(void 0,Wt,i[0]),o=i[1];break;case 3:s.id=re(i[0]),s.startTime=hr(void 0,Wt,i[1]),o=i[2];break;default:}if(o)s.endTime=Hn(s.startTime,Wt,o,fe),s.manualEndTime=Mt.default(o,"YYYY-MM-DD",!0).isValid(),An(s,Wt,ie,ne);return s},"compileData"),is=t(function(e,r){let n;if(r.substr(0,1)===":")n=r.substr(1,r.length);else n=r;let i=n.split(","),s={};Cr(i,s,Ln);for(let o=0;o<i.length;o++)i[o]=i[o].trim();switch(i.length){case 1:s.id=re(),s.startTime={type:"prevTaskEnd",id:e},s.endTime={data:i[0]};break;case 2:s.id=re(),s.startTime={type:"getStartDate",startData:i[0]},s.endTime={data:i[1]};break;case 3:s.id=re(i[0]),s.startTime={type:"getStartDate",startData:i[1]},s.endTime={data:i[2]};break;default:}return s},"parseData"),yr,Fe,kt=[],Nn={},as=t(function(e,r){let n={section:ae,type:ae,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:r},task:e,classes:[]},i=is(Fe,r);if(n.raw.startTime=i.startTime,n.raw.endTime=i.endTime,n.id=i.id,n.prevTaskId=Fe,n.active=i.active,n.done=i.done,n.crit=i.crit,n.milestone=i.milestone,n.vert=i.vert,n.vert)n.order=-1;else n.order=mr,mr++;let s=kt.push(n);Fe=n.id,Nn[n.id]=s-1},"addTask"),Gt=t(function(e){let r=Nn[e];return kt[r]},"findTaskById"),ss=t(function(e,r){let n={section:ae,type:ae,description:e,task:e,classes:[]},i=ns(yr,r);n.startTime=i.startTime,n.endTime=i.endTime,n.id=i.id,n.active=i.active,n.done=i.done,n.crit=i.crit,n.milestone=i.milestone,n.vert=i.vert,yr=n,Ie.push(n)},"addTaskOrg"),Cn=t(function(){let e=t(function(n){let i=kt[n],s="";switch(kt[n].raw.startTime.type){case"prevTaskEnd":{let o=Gt(i.prevTaskId);i.startTime=o.endTime;break}case"getStartDate":if(s=hr(void 0,Wt,kt[n].raw.startTime.startData),s)kt[n].startTime=s;break}if(kt[n].startTime){if(kt[n].endTime=Hn(kt[n].startTime,Wt,kt[n].raw.endTime.data,fe),kt[n].endTime)kt[n].processed=!0,kt[n].manualEndTime=Mt.default(kt[n].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),An(kt[n],Wt,ie,ne)}return kt[n].processed},"compileTask"),r=!0;for(let[n,i]of kt.entries())e(n),r=r&&i.processed;return r},"compileTasks"),os=t(function(e,r){let n=r;if(l().securityLevel!=="loose")n=Yn.sanitizeUrl(r);e.split(",").forEach(function(i){if(Gt(i)!==void 0)Rn(i,()=>{window.open(n,"_self")}),Tr.set(i,n)}),zn(e,"clickable")},"setLink"),zn=t(function(e,r){e.split(",").forEach(function(n){let i=Gt(n);if(i!==void 0)i.classes.push(r)})},"setClass"),cs=t(function(e,r,n){if(l().securityLevel!=="loose")return;if(r===void 0)return;let i=[];if(typeof n==="string"){i=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let o=0;o<i.length;o++){let u=i[o].trim();if(u.startsWith('"')&&u.endsWith('"'))u=u.substr(1,u.length-2);i[o]=u}}if(i.length===0)i.push(e);if(Gt(e)!==void 0)Rn(e,()=>{N.runFunc(r,...i)})},"setClickFun"),Rn=t(function(e,r){br.push(function(){let n=te?`${te}-${e}`:e,i=document.querySelector(`[id="${n}"]`);if(i!==null)i.addEventListener("click",function(){r()})},function(){let n=te?`${te}-${e}`:e,i=document.querySelector(`[id="${n}-text"]`);if(i!==null)i.addEventListener("click",function(){r()})})},"pushFun"),us=t(function(e,r,n){e.split(",").forEach(function(i){cs(i,r,n)}),zn(e,"clickable")},"setClickEvent"),ls=t(function(e){br.forEach(function(r){r(e)})},"bindFunctions"),fs={getConfig:t(()=>l().gantt,"getConfig"),clear:_a,setDateFormat:Aa,getDateFormat:za,enableInclusiveEndDates:Oa,endDatesAreInclusive:$a,enableTopAxis:Ha,topAxisEnabled:Na,setAxisFormat:Fa,getAxisFormat:Ia,setTickInterval:Ua,getTickInterval:La,setTodayMarker:Wa,getTodayMarker:Ea,setAccTitle:S,getAccTitle:E,setDiagramTitle:L,getDiagramTitle:R,setDiagramId:Ya,setDisplayMode:Pa,getDisplayMode:Va,setAccDescription:T,getAccDescription:A,addSection:qa,getSections:Qa,getTasks:Ja,addTask:as,findTaskById:Gt,addTaskOrg:ss,setIncludes:Ba,getIncludes:Za,setExcludes:ja,getExcludes:Xa,setClickEvent:us,setLink:os,getLinks:Ga,bindFunctions:ls,parseDuration:$n,isInvalidDate:En,setWeekday:Ka,getWeekday:ts,setWeekend:es};function Cr(e,r,n){let i=!0;while(i)i=!1,n.forEach(function(s){let o="^\\s*"+s+"\\s*$",u=new RegExp(o);if(e[0].match(u))r[s]=!0,e.shift(1),i=!0})}t(Cr,"getTaskTags");ee.default.extend(Bn.default);var ds=t(function(){a.debug("Something is calling, setConf, remove the call")},"setConf"),_n={monday:zt,tuesday:we,wednesday:Me,thursday:Lt,friday:De,saturday:Ce,sunday:_t},ms=t((e,r)=>{let n=[...e].map(()=>-1/0),i=[...e].sort((o,u)=>o.startTime-u.startTime||o.order-u.order),s=0;for(let o of i)for(let u=0;u<n.length;u++)if(o.startTime>=n[u]){if(n[u]=o.endTime,o.order=u+r,u>s)s=u;break}return s},"getMaxIntersections"),Nt,fr=1e4,hs=t(function(e,r,n,i){let s=l().gantt;i.db.setDiagramId(r);let o=l().securityLevel,u;if(o==="sandbox")u=p("#i"+r);let M=o==="sandbox"?p(u.nodes()[0].contentDocument.body):p("body"),D=o==="sandbox"?u.nodes()[0].contentDocument:document,B=D.getElementById(r);if(Nt=B.parentElement.offsetWidth,Nt===void 0)Nt=1200;if(s.useWidth!==void 0)Nt=s.useWidth;let W=i.db.getTasks(),G=W.filter((x)=>!x.vert),O=[];for(let x of G)O.push(x.type);O=nt(O);let z={},U=2*s.topPadding;if(i.db.getDisplayMode()==="compact"||s.displayMode==="compact"){let x={};for(let Y of G)if(x[Y.section]===void 0)x[Y.section]=[Y];else x[Y.section].push(Y);let I=0;for(let Y of Object.keys(x)){let V=ms(x[Y],I)+1;I+=V,U+=V*(s.barHeight+s.barGap),z[Y]=V}}else{U+=G.length*(s.barHeight+s.barGap);for(let x of O)z[x]=G.filter((I)=>I.type===x).length}B.setAttribute("viewBox","0 0 "+Nt+" "+U);let Z=M.select(`[id="${r}"]`),H=er().domain([mn(W,function(x){return x.startTime}),Pn(W,function(x){return x.endTime})]).rangeRound([0,Nt-s.leftPadding-s.rightPadding]);function tt(x,I){let Y=x.startTime,V=I.startTime,d=0;if(Y>V)d=1;else if(Y<V)d=-1;return d}t(tt,"taskCompare"),W.sort(tt),ft(W,Nt,U),F(Z,U,Nt,s.useMaxWidth),Z.append("text").text(i.db.getDiagramTitle()).attr("x",Nt/2).attr("y",s.titleTopMargin).attr("class","titleText");function ft(x,I,Y){let V=s.barHeight,d=V+s.barGap,{topPadding:w,leftPadding:v}=s,k=wt().domain([0,O.length]).range(["#00B9FA","#F95002"]).interpolate(Vr);j(d,w,v,I,Y,x,i.db.getExcludes(),i.db.getIncludes()),f(v,w,I,Y),at(x,d,w,v,V,k,I,Y),P(d,w,v,V,k),rt(v,w,I,Y)}t(ft,"makeGantt");function at(x,I,Y,V,d,w,v){x.sort((m,q)=>m.vert===q.vert?0:m.vert?1:-1);let k=x.filter((m)=>!m.vert),c=[...new Set(k.map((m)=>m.order))].map((m)=>k.find((q)=>q.order===m));Z.append("g").selectAll("rect").data(c).enter().append("rect").attr("x",0).attr("y",function(m,q){return q=m.order,q*I+Y-2}).attr("width",function(){return v-s.rightPadding/2}).attr("height",I).attr("class",function(m){for(let[q,K]of O.entries())if(m.type===K)return"section section"+q%s.numberSectionStyles;return"section section0"}).enter();let J=Z.append("g").selectAll("rect").data(x).enter(),h=i.db.getLinks();if(J.append("rect").attr("id",function(m){return r+"-"+m.id}).attr("rx",3).attr("ry",3).attr("x",function(m){if(m.milestone)return H(m.startTime)+V+0.5*(H(m.endTime)-H(m.startTime))-0.5*d;return H(m.startTime)+V}).attr("y",function(m,q){if(q=m.order,m.vert)return s.gridLineStartPadding;return q*I+Y}).attr("width",function(m){if(m.milestone)return d;if(m.vert)return 0.08*d;return H(m.renderEndTime||m.endTime)-H(m.startTime)}).attr("height",function(m){if(m.vert)return k.length*(s.barHeight+s.barGap)+s.barHeight*2;return d}).attr("transform-origin",function(m,q){return q=m.order,(H(m.startTime)+V+0.5*(H(m.endTime)-H(m.startTime))).toString()+"px "+(q*I+Y+0.5*d).toString()+"px"}).attr("class",function(m){let K="";if(m.classes.length>0)K=m.classes.join(" ");let ut=0;for(let[it,g]of O.entries())if(m.type===g)ut=it%s.numberSectionStyles;let lt="";if(m.active)if(m.crit)lt+=" activeCrit";else lt=" active";else if(m.done)if(m.crit)lt=" doneCrit";else lt=" done";else if(m.crit)lt+=" crit";if(lt.length===0)lt=" task";if(m.milestone)lt=" milestone "+lt;if(m.vert)lt=" vert "+lt;return lt+=ut,lt+=" "+K,"task"+lt}),J.append("text").attr("id",function(m){return r+"-"+m.id+"-text"}).text(function(m){return m.task}).attr("font-size",s.fontSize).attr("x",function(m){let q=H(m.startTime),K=H(m.renderEndTime||m.endTime);if(m.milestone)q+=0.5*(H(m.endTime)-H(m.startTime))-0.5*d,K=q+d;if(m.vert)return H(m.startTime)+V;let ut=this.getBBox().width;if(ut>K-q)if(K+ut+1.5*s.leftPadding>v)return q+V-5;else return K+V+5;else return(K-q)/2+q+V}).attr("y",function(m,q){if(m.vert)return s.gridLineStartPadding+k.length*(s.barHeight+s.barGap)+60;return q=m.order,q*I+s.barHeight/2+(s.fontSize/2-2)+Y}).attr("text-height",d).attr("class",function(m){let q=H(m.startTime),K=H(m.endTime);if(m.milestone)K=q+d;let ut=this.getBBox().width,lt="";if(m.classes.length>0)lt=m.classes.join(" ");let it=0;for(let[X,et]of O.entries())if(m.type===et)it=X%s.numberSectionStyles;let g="";if(m.active)if(m.crit)g="activeCritText"+it;else g="activeText"+it;if(m.done)if(m.crit)g=g+" doneCritText"+it;else g=g+" doneText"+it;else if(m.crit)g=g+" critText"+it;if(m.milestone)g+=" milestoneText";if(m.vert)g+=" vertText";if(ut>K-q)if(K+ut+1.5*s.leftPadding>v)return lt+" taskTextOutsideLeft taskTextOutside"+it+" "+g;else return lt+" taskTextOutsideRight taskTextOutside"+it+" "+g+" width-"+ut;else return lt+" taskText taskText"+it+" "+g+" width-"+ut}),l().securityLevel==="sandbox"){let m;m=p("#i"+r);let q=m.nodes()[0].contentDocument;J.filter(function(K){return h.has(K.id)}).each(function(K){var ut=q.querySelector("#"+CSS.escape(r+"-"+K.id)),lt=q.querySelector("#"+CSS.escape(r+"-"+K.id+"-text"));let it=ut.parentNode;var g=q.createElement("a");g.setAttribute("xlink:href",h.get(K.id)),g.setAttribute("target","_top"),it.appendChild(g),g.appendChild(ut),g.appendChild(lt)})}}t(at,"drawRects");function j(x,I,Y,V,d,w,v,k){if(v.length===0&&k.length===0)return;let Q,c;for(let{startTime:K,endTime:ut}of w){if(Q===void 0||K<Q)Q=K;if(c===void 0||ut>c)c=ut}if(!Q||!c)return;if(ee.default(c).diff(ee.default(Q),"year")>5){a.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");return}let J=i.db.getDateFormat(),h=[],mt=null,m=ee.default(Q);while(m.valueOf()<=c){if(i.db.isInvalidDate(m,J,v,k))if(!mt)mt={start:m,end:m};else mt.end=m;else if(mt)h.push(mt),mt=null;m=m.add(1,"d")}Z.append("g").selectAll("rect").data(h).enter().append("rect").attr("id",(K)=>r+"-exclude-"+K.start.format("YYYY-MM-DD")).attr("x",(K)=>H(K.start.startOf("day"))+Y).attr("y",s.gridLineStartPadding).attr("width",(K)=>H(K.end.endOf("day"))-H(K.start.startOf("day"))).attr("height",d-I-s.gridLineStartPadding).attr("transform-origin",function(K,ut){return(H(K.start)+Y+0.5*(H(K.end)-H(K.start))).toString()+"px "+(ut*x+0.5*d).toString()+"px"}).attr("class","exclude-range")}t(j,"drawExcludeDays");function _(x,I,Y,V){if(Y<=0||x>I)return 1/0;let d=I-x,w=ee.default.duration({[V??"day"]:Y}).asMilliseconds();if(w<=0)return 1/0;return Math.ceil(d/w)}t(_,"getEstimatedTickCount");function f(x,I,Y,V){let d=i.db.getDateFormat(),w=i.db.getAxisFormat(),v;if(w)v=w;else if(d==="D")v="%d";else v=s.axisFormat??"%Y-%m-%d";let k=He(H).tickSize(-V+I+s.gridLineStartPadding).tickFormat(Xt(v)),c=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(i.db.getTickInterval()||s.tickInterval);if(c!==null){let J=parseInt(c[1],10);if(isNaN(J)||J<=0)a.warn(`Invalid tick interval value: "${c[1]}". Skipping custom tick interval.`);else{let h=c[2],mt=i.db.getWeekday()||s.weekday,m=H.domain(),q=m[0],K=m[1],ut=_(q,K,J,h);if(ut>fr)a.warn(`The tick interval "${J}${h}" would generate ${ut} ticks, which exceeds the maximum allowed (${fr}). This may indicate an invalid date or time range. Skipping custom tick interval.`);else switch(h){case"millisecond":k.ticks(It.every(J));break;case"second":k.ticks(xt.every(J));break;case"minute":k.ticks(Ot.every(J));break;case"hour":k.ticks($t.every(J));break;case"day":k.ticks(St.every(J));break;case"week":k.ticks(_n[mt].every(J));break;case"month":k.ticks(Ht.every(J));break}}}if(Z.append("g").attr("class","grid").attr("transform","translate("+x+", "+(V-50)+")").call(k).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),i.db.topAxisEnabled()||s.topAxis){let J=$e(H).tickSize(-V+I+s.gridLineStartPadding).tickFormat(Xt(v));if(c!==null){let h=parseInt(c[1],10);if(isNaN(h)||h<=0)a.warn(`Invalid tick interval value: "${c[1]}". Skipping custom tick interval.`);else{let mt=c[2],m=i.db.getWeekday()||s.weekday,q=H.domain(),K=q[0],ut=q[1];if(_(K,ut,h,mt)<=fr)switch(mt){case"millisecond":J.ticks(It.every(h));break;case"second":J.ticks(xt.every(h));break;case"minute":J.ticks(Ot.every(h));break;case"hour":J.ticks($t.every(h));break;case"day":J.ticks(St.every(h));break;case"week":J.ticks(_n[m].every(h));break;case"month":J.ticks(Ht.every(h));break}}}Z.append("g").attr("class","grid").attr("transform","translate("+x+", "+I+")").call(J).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}t(f,"makeGrid");function P(x,I){let Y=0,V=Object.keys(z).map((d)=>[d,z[d]]);Z.append("g").selectAll("text").data(V).enter().append(function(d){let w=d[0].split(b.lineBreakRegex),v=-(w.length-1)/2,k=D.createElementNS("http://www.w3.org/2000/svg","text");k.setAttribute("dy",v+"em");for(let[Q,c]of w.entries()){let J=D.createElementNS("http://www.w3.org/2000/svg","tspan");if(J.setAttribute("alignment-baseline","central"),J.setAttribute("x","10"),Q>0)J.setAttribute("dy","1em");J.textContent=c,k.appendChild(J)}return k}).attr("x",10).attr("y",function(d,w){if(w>0)for(let v=0;v<w;v++)return Y+=V[w-1][1],d[1]*x/2+Y*x+I;else return d[1]*x/2+I}).attr("font-size",s.sectionFontSize).attr("class",function(d){for(let[w,v]of O.entries())if(d[0]===v)return"sectionTitle sectionTitle"+w%s.numberSectionStyles;return"sectionTitle"})}t(P,"vertLabels");function rt(x,I,Y,V){let d=i.db.getTodayMarker();if(d==="off")return;let w=Z.append("g").attr("class","today"),v=new Date,k=w.append("line");if(k.attr("x1",H(v)+x).attr("x2",H(v)+x).attr("y1",s.titleTopMargin).attr("y2",V-s.titleTopMargin).attr("class","today"),d!=="")k.attr("style",d.replace(/,/g,";"))}t(rt,"drawToday");function nt(x){let I={},Y=[];for(let V=0,d=x.length;V<d;++V)if(!Object.prototype.hasOwnProperty.call(I,x[V]))I[x[V]]=!0,Y.push(x[V]);return Y}t(nt,"checkUnique")},"draw"),ys={setConf:ds,draw:hs},gs=t((e)=>`
7
7
  .mermaid-main-font {
8
8
  font-family: ${e.fontFamily};
9
9
  }