import{es as tn,et as In,eu as en,ev as nn,ew as rn,ex as se,ey as Yn,d5 as sn,g as An,s as Wn,q as Ln,p as On,a as $n,b as Nn,_ as f,c as St,d as qt,e as Hn,ez as nt,l as vt,k as Vn,j as Pn,y as Rn,u as zn,eA as Bn,eB as qn}from"./admin-DgPvPHD7.js";import{b as Zn,t as Le,c as jn,a as Xn,l as Gn}from"./linear-CQCT3DWJ.js";import{i as Qn}from"./init-Gi6I4Gst.js";import"./defaultLocale-C4B-KCzX.js";function Jn(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n=i)&&(n=i)}return n}function Kn(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function tr(t){return t}var jt=1,ae=2,ke=3,Zt=4,Oe=1e-6;function er(t){return"translate("+t+",0)"}function nr(t){return"translate(0,"+t+")"}function rr(t){return e=>+t(e)}function ir(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function sr(){return!this.__axis}function an(t,e){var n=[],r=null,i=null,a=6,c=6,b=3,E=typeof window<"u"&&window.devicePixelRatio>1?0:.5,S=t===jt||t===Zt?-1:1,x=t===Zt||t===ae?"x":"y",W=t===jt||t===ke?er:nr;function _(C){var V=r??(e.ticks?e.ticks.apply(e,n):e.domain()),I=i??(e.tickFormat?e.tickFormat.apply(e,n):tr),tt=Math.max(a,0)+b,Z=e.range(),rt=+Z[0]+E,R=+Z[Z.length-1]+E,q=(e.bandwidth?ir:rr)(e.copy(),E),Q=C.selection?C.selection():C,m=Q.selectAll(".domain").data([null]),g=Q.selectAll(".tick").data(V,e).order(),y=g.exit(),h=g.enter().append("g").attr("class","tick"),D=g.select("line"),M=g.select("text");m=m.merge(m.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),g=g.merge(h),D=D.merge(h.append("line").attr("stroke","currentColor").attr(x+"2",S*a)),M=M.merge(h.append("text").attr("fill","currentColor").attr(x,S*tt).attr("dy",t===jt?"0em":t===ke?"0.71em":"0.32em")),C!==Q&&(m=m.transition(C),g=g.transition(C),D=D.transition(C),M=M.transition(C),y=y.transition(C).attr("opacity",Oe).attr("transform",function(w){return isFinite(w=q(w))?W(w+E):this.getAttribute("transform")}),h.attr("opacity",Oe).attr("transform",function(w){var p=this.parentNode.__axis;return W((p&&isFinite(p=p(w))?p:q(w))+E)})),y.remove(),m.attr("d",t===Zt||t===ae?c?"M"+S*c+","+rt+"H"+E+"V"+R+"H"+S*c:"M"+E+","+rt+"V"+R:c?"M"+rt+","+S*c+"V"+E+"H"+R+"V"+S*c:"M"+rt+","+E+"H"+R),g.attr("opacity",1).attr("transform",function(w){return W(q(w)+E)}),D.attr(x+"2",S*a),M.attr(x,S*tt).text(I),Q.filter(sr).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===ae?"start":t===Zt?"end":"middle"),Q.each(function(){this.__axis=q})}return _.scale=function(C){return arguments.length?(e=C,_):e},_.ticks=function(){return n=Array.from(arguments),_},_.tickArguments=function(C){return arguments.length?(n=C==null?[]:Array.from(C),_):n.slice()},_.tickValues=function(C){return arguments.length?(r=C==null?null:Array.from(C),_):r&&r.slice()},_.tickFormat=function(C){return arguments.length?(i=C,_):i},_.tickSize=function(C){return arguments.length?(a=c=+C,_):a},_.tickSizeInner=function(C){return arguments.length?(a=+C,_):a},_.tickSizeOuter=function(C){return arguments.length?(c=+C,_):c},_.tickPadding=function(C){return arguments.length?(b=+C,_):b},_.offset=function(C){return arguments.length?(E=+C,_):E},_}function ar(t){return an(jt,t)}function or(t){return an(ke,t)}const cr=Math.PI/180,ur=180/Math.PI,Kt=18,on=.96422,cn=1,un=.82521,ln=4/29,_t=6/29,fn=3*_t*_t,lr=_t*_t*_t;function dn(t){if(t instanceof ut)return new ut(t.l,t.a,t.b,t.opacity);if(t instanceof ht)return hn(t);t instanceof tn||(t=In(t));var e=le(t.r),n=le(t.g),r=le(t.b),i=oe((.2225045*e+.7168786*n+.0606169*r)/cn),a,c;return e===n&&n===r?a=c=i:(a=oe((.4360747*e+.3850649*n+.1430804*r)/on),c=oe((.0139322*e+.0971045*n+.7141733*r)/un)),new ut(116*i-16,500*(a-i),200*(i-c),t.opacity)}function fr(t,e,n,r){return arguments.length===1?dn(t):new ut(t,e,n,r??1)}function ut(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}en(ut,fr,nn(rn,{brighter(t){return new ut(this.l+Kt*(t??1),this.a,this.b,this.opacity)},darker(t){return new ut(this.l-Kt*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=on*ce(e),t=cn*ce(t),n=un*ce(n),new tn(ue(3.1338561*e-1.6168667*t-.4906146*n),ue(-.9787684*e+1.9161415*t+.033454*n),ue(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}}));function oe(t){return t>lr?Math.pow(t,1/3):t/fn+ln}function ce(t){return t>_t?t*t*t:fn*(t-ln)}function ue(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function le(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function dr(t){if(t instanceof ht)return new ht(t.h,t.c,t.l,t.opacity);if(t instanceof ut||(t=dn(t)),t.a===0&&t.b===0)return new ht(NaN,0(t(a=new Date(+a)),a),i.ceil=a=>(t(a=new Date(a-1)),e(a,1),t(a),a),i.round=a=>{const c=i(a),b=i.ceil(a);return a-c(e(a=new Date(+a),c==null?1:Math.floor(c)),a),i.range=(a,c,b)=>{const E=[];if(a=i.ceil(a),b=b==null?1:Math.floor(b),!(a0))return E;let S;do E.push(S=new Date(+a)),e(a,b),t(a);while(SG(c=>{if(c>=c)for(;t(c),!a(c);)c.setTime(c-1)},(c,b)=>{if(c>=c)if(b<0)for(;++b<=0;)for(;e(c,-1),!a(c););else for(;--b>=0;)for(;e(c,1),!a(c););}),n&&(i.count=(a,c)=>(fe.setTime(+a),de.setTime(+c),t(fe),t(de),Math.floor(n(fe,de))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(r?c=>r(c)%a===0:c=>i.count(0,c)%a===0):i)),i}const Ut=G(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);Ut.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?G(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):Ut);Ut.range;const mt=1e3,st=mt*60,gt=st*60,yt=gt*24,we=yt*7,$e=yt*30,he=yt*365,pt=G(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*mt)},(t,e)=>(e-t)/mt,t=>t.getUTCSeconds());pt.range;const Lt=G(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*mt)},(t,e)=>{t.setTime(+t+e*st)},(t,e)=>(e-t)/st,t=>t.getMinutes());Lt.range;const yr=G(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*st)},(t,e)=>(e-t)/st,t=>t.getUTCMinutes());yr.range;const Ot=G(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*mt-t.getMinutes()*st)},(t,e)=>{t.setTime(+t+e*gt)},(t,e)=>(e-t)/gt,t=>t.getHours());Ot.range;const kr=G(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*gt)},(t,e)=>(e-t)/gt,t=>t.getUTCHours());kr.range;const Tt=G(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*st)/yt,t=>t.getDate()-1);Tt.range;const Ce=G(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/yt,t=>t.getUTCDate()-1);Ce.range;const pr=G(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/yt,t=>Math.floor(t/yt));pr.range;function wt(t){return G(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+n*7)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*st)/we)}const Ht=wt(0),$t=wt(1),mn=wt(2),gn=wt(3),bt=wt(4),yn=wt(5),kn=wt(6);Ht.range;$t.range;mn.range;gn.range;bt.range;yn.range;kn.range;function Ct(t){return G(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n*7)},(e,n)=>(n-e)/we)}const pn=Ct(0),te=Ct(1),vr=Ct(2),Tr=Ct(3),Et=Ct(4),br=Ct(5),xr=Ct(6);pn.range;te.range;vr.range;Tr.range;Et.range;br.range;xr.range;const Nt=G(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());Nt.range;const wr=G(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());wr.range;const kt=G(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());kt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:G(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)});kt.range;const xt=G(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());xt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:G(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)});xt.range;function Cr(t,e,n,r,i,a){const c=[[pt,1,mt],[pt,5,5*mt],[pt,15,15*mt],[pt,30,30*mt],[a,1,st],[a,5,5*st],[a,15,15*st],[a,30,30*st],[i,1,gt],[i,3,3*gt],[i,6,6*gt],[i,12,12*gt],[r,1,yt],[r,2,2*yt],[n,1,we],[e,1,$e],[e,3,3*$e],[t,1,he]];function b(S,x,W){const _=xtt).right(c,_);if(C===c.length)return t.every(Le(S/he,x/he,W));if(C===0)return Ut.every(Math.max(Le(S,x,W),1));const[V,I]=c[_/c[C-1][2]53)return null;"w"in l||(l.w=1),"Z"in l?(A=ge(Yt(l.y,0,1)),j=A.getUTCDay(),A=j>4||j===0?te.ceil(A):te(A),A=Ce.offset(A,(l.V-1)*7),l.y=A.getUTCFullYear(),l.m=A.getUTCMonth(),l.d=A.getUTCDate()+(l.w+6)%7):(A=me(Yt(l.y,0,1)),j=A.getDay(),A=j>4||j===0?$t.ceil(A):$t(A),A=Tt.offset(A,(l.V-1)*7),l.y=A.getFullYear(),l.m=A.getMonth(),l.d=A.getDate()+(l.w+6)%7)}else("W"in l||"U"in l)&&("w"in l||(l.w="u"in l?l.u%7:"W"in l?1:0),j="Z"in l?ge(Yt(l.y,0,1)).getUTCDay():me(Yt(l.y,0,1)).getDay(),l.m=0,l.d="W"in l?(l.w+6)%7+l.W*7-(j+5)%7:l.w+l.U*7-(j+6)%7);return"Z"in l?(l.H+=l.Z/100|0,l.M+=l.Z%100,ge(l)):me(l)}}function y(T,L,N,l){for(var et=0,A=L.length,j=N.length,B,ot;et=j)return-1;if(B=L.charCodeAt(et++),B===37){if(B=L.charAt(et++),ot=Q[B in Ne?L.charAt(et++):B],!ot||(l=ot(T,N,l))<0)return-1}else if(B!=N.charCodeAt(l++))return-1}return l}function h(T,L,N){var l=S.exec(L.slice(N));return l?(T.p=x.get(l[0].toLowerCase()),N+l[0].length):-1}function D(T,L,N){var l=C.exec(L.slice(N));return l?(T.w=V.get(l[0].toLowerCase()),N+l[0].length):-1}function M(T,L,N){var l=W.exec(L.slice(N));return l?(T.w=_.get(l[0].toLowerCase()),N+l[0].length):-1}function w(T,L,N){var l=Z.exec(L.slice(N));return l?(T.m=rt.get(l[0].toLowerCase()),N+l[0].length):-1}function p(T,L,N){var l=I.exec(L.slice(N));return l?(T.m=tt.get(l[0].toLowerCase()),N+l[0].length):-1}function u(T,L,N){return y(T,e,L,N)}function d(T,L,N){return y(T,n,L,N)}function v(T,L,N){return y(T,r,L,N)}function k(T){return c[T.getDay()]}function F(T){return a[T.getDay()]}function o(T){return E[T.getMonth()]}function z(T){return b[T.getMonth()]}function s(T){return i[+(T.getHours()>=12)]}function U(T){return 1+~~(T.getMonth()/3)}function P(T){return c[T.getUTCDay()]}function $(T){return a[T.getUTCDay()]}function O(T){return E[T.getUTCMonth()]}function J(T){return b[T.getUTCMonth()]}function Y(T){return i[+(T.getUTCHours()>=12)]}function at(T){return 1+~~(T.getUTCMonth()/3)}return{format:function(T){var L=m(T+="",R);return L.toString=function(){return T},L},parse:function(T){var L=g(T+="",!1);return L.toString=function(){return T},L},utcFormat:function(T){var L=m(T+="",q);return L.toString=function(){return T},L},utcParse:function(T){var L=g(T+="",!0);return L.toString=function(){return T},L}}}var Ne={"-":"",_:" ",0:"0"},K=/^\s*\d+/,_r=/^%/,Fr=/[\\^$*+?|[\]().{}]/g;function H(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",a=i.length;return r+(a[e.toLowerCase(),n]))}function Er(t,e,n){var r=K.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function Ir(t,e,n){var r=K.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function Yr(t,e,n){var r=K.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function Ar(t,e,n){var r=K.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Wr(t,e,n){var r=K.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function He(t,e,n){var r=K.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Ve(t,e,n){var r=K.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Lr(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Or(t,e,n){var r=K.exec(e.slice(n,n+1));return r?(t.q=r[0]*3-3,n+r[0].length):-1}function $r(t,e,n){var r=K.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Pe(t,e,n){var r=K.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Nr(t,e,n){var r=K.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Re(t,e,n){var r=K.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Hr(t,e,n){var r=K.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Vr(t,e,n){var r=K.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Pr(t,e,n){var r=K.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Rr(t,e,n){var r=K.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function zr(t,e,n){var r=_r.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Br(t,e,n){var r=K.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function qr(t,e,n){var r=K.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function ze(t,e){return H(t.getDate(),e,2)}function Zr(t,e){return H(t.getHours(),e,2)}function jr(t,e){return H(t.getHours()%12||12,e,2)}function Xr(t,e){return H(1+Tt.count(kt(t),t),e,3)}function vn(t,e){return H(t.getMilliseconds(),e,3)}function Gr(t,e){return vn(t,e)+"000"}function Qr(t,e){return H(t.getMonth()+1,e,2)}function Jr(t,e){return H(t.getMinutes(),e,2)}function Kr(t,e){return H(t.getSeconds(),e,2)}function ti(t){var e=t.getDay();return e===0?7:e}function ei(t,e){return H(Ht.count(kt(t)-1,t),e,2)}function Tn(t){var e=t.getDay();return e>=4||e===0?bt(t):bt.ceil(t)}function ni(t,e){return t=Tn(t),H(bt.count(kt(t),t)+(kt(t).getDay()===4),e,2)}function ri(t){return t.getDay()}function ii(t,e){return H($t.count(kt(t)-1,t),e,2)}function si(t,e){return H(t.getFullYear()%100,e,2)}function ai(t,e){return t=Tn(t),H(t.getFullYear()%100,e,2)}function oi(t,e){return H(t.getFullYear()%1e4,e,4)}function ci(t,e){var n=t.getDay();return t=n>=4||n===0?bt(t):bt.ceil(t),H(t.getFullYear()%1e4,e,4)}function ui(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+H(e/60|0,"0",2)+H(e%60,"0",2)}function Be(t,e){return H(t.getUTCDate(),e,2)}function li(t,e){return H(t.getUTCHours(),e,2)}function fi(t,e){return H(t.getUTCHours()%12||12,e,2)}function di(t,e){return H(1+Ce.count(xt(t),t),e,3)}function bn(t,e){return H(t.getUTCMilliseconds(),e,3)}function hi(t,e){return bn(t,e)+"000"}function mi(t,e){return H(t.getUTCMonth()+1,e,2)}function gi(t,e){return H(t.getUTCMinutes(),e,2)}function yi(t,e){return H(t.getUTCSeconds(),e,2)}function ki(t){var e=t.getUTCDay();return e===0?7:e}function pi(t,e){return H(pn.count(xt(t)-1,t),e,2)}function xn(t){var e=t.getUTCDay();return e>=4||e===0?Et(t):Et.ceil(t)}function vi(t,e){return t=xn(t),H(Et.count(xt(t),t)+(xt(t).getUTCDay()===4),e,2)}function Ti(t){return t.getUTCDay()}function bi(t,e){return H(te.count(xt(t)-1,t),e,2)}function xi(t,e){return H(t.getUTCFullYear()%100,e,2)}function wi(t,e){return t=xn(t),H(t.getUTCFullYear()%100,e,2)}function Ci(t,e){return H(t.getUTCFullYear()%1e4,e,4)}function Di(t,e){var n=t.getUTCDay();return t=n>=4||n===0?Et(t):Et.ceil(t),H(t.getUTCFullYear()%1e4,e,4)}function Mi(){return"+0000"}function qe(){return"%"}function Ze(t){return+t}function je(t){return Math.floor(+t/1e3)}var Mt,ee;Si({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 Si(t){return Mt=Sr(t),ee=Mt.format,Mt.parse,Mt.utcFormat,Mt.utcParse,Mt}function _i(t){return new Date(t)}function Fi(t){return t instanceof Date?+t:+new Date(+t)}function wn(t,e,n,r,i,a,c,b,E,S){var x=jn(),W=x.invert,_=x.domain,C=S(".%L"),V=S(":%S"),I=S("%I:%M"),tt=S("%I %p"),Z=S("%a %d"),rt=S("%b %d"),R=S("%B"),q=S("%Y");function Q(m){return(E(m)4&&(C+=7),_.add(C,n));return V.diff(I,"week")+1},b.isoWeekday=function(S){return this.$utils().u(S)?this.day()||7:this.day(this.day()%7?S:S-7)};var E=b.startOf;b.startOf=function(S,x){var W=this.$utils(),_=!!W.u(x)||x;return W.p(S)==="isoweek"?_?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):E.bind(this)(S,x)}}}))})(Xt)),Xt.exports}var Yi=Ii();const Ai=sn(Yi);var Gt={exports:{}},Wi=Gt.exports,Ge;function Li(){return Ge||(Ge=1,(function(t,e){(function(n,r){t.exports=r()})(Wi,(function(){var n,r,i=1e3,a=6e4,c=36e5,b=864e5,E=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,S=31536e6,x=2628e6,W=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,_={years:S,months:x,days:b,hours:c,minutes:a,seconds:i,milliseconds:1,weeks:6048e5},C=function(m){return m instanceof q},V=function(m,g,y){return new q(m,y,g.$l)},I=function(m){return r.p(m)+"s"},tt=function(m){return m<0},Z=function(m){return tt(m)?Math.ceil(m):Math.floor(m)},rt=function(m){return Math.abs(m)},R=function(m,g){return m?tt(m)?{negative:!0,format:""+rt(m)+g}:{negative:!1,format:""+m+g}:{negative:!1,format:""}},q=(function(){function m(y,h,D){var M=this;if(this.$d={},this.$l=D,y===void 0&&(this.$ms=0,this.parseFromMilliseconds()),h)return V(y*_[I(h)],this);if(typeof y=="number")return this.$ms=y,this.parseFromMilliseconds(),this;if(typeof y=="object")return Object.keys(y).forEach((function(u){M.$d[I(u)]=y[u]})),this.calMilliseconds(),this;if(typeof y=="string"){var w=y.match(W);if(w){var p=w.slice(2).map((function(u){return u!=null?Number(u):0}));return this.$d.years=p[0],this.$d.months=p[1],this.$d.weeks=p[2],this.$d.days=p[3],this.$d.hours=p[4],this.$d.minutes=p[5],this.$d.seconds=p[6],this.calMilliseconds(),this}}return this}var g=m.prototype;return g.calMilliseconds=function(){var y=this;this.$ms=Object.keys(this.$d).reduce((function(h,D){return h+(y.$d[D]||0)*_[D]}),0)},g.parseFromMilliseconds=function(){var y=this.$ms;this.$d.years=Z(y/S),y%=S,this.$d.months=Z(y/x),y%=x,this.$d.days=Z(y/b),y%=b,this.$d.hours=Z(y/c),y%=c,this.$d.minutes=Z(y/a),y%=a,this.$d.seconds=Z(y/i),y%=i,this.$d.milliseconds=y},g.toISOString=function(){var y=R(this.$d.years,"Y"),h=R(this.$d.months,"M"),D=+this.$d.days||0;this.$d.weeks&&(D+=7*this.$d.weeks);var M=R(D,"D"),w=R(this.$d.hours,"H"),p=R(this.$d.minutes,"M"),u=this.$d.seconds||0;this.$d.milliseconds&&(u+=this.$d.milliseconds/1e3,u=Math.round(1e3*u)/1e3);var d=R(u,"S"),v=y.negative||h.negative||M.negative||w.negative||p.negative||d.negative,k=w.format||p.format||d.format?"T":"",F=(v?"-":"")+"P"+y.format+h.format+M.format+k+w.format+p.format+d.format;return F==="P"||F==="-P"?"P0D":F},g.toJSON=function(){return this.toISOString()},g.format=function(y){var h=y||"YYYY-MM-DDTHH:mm:ss",D={Y:this.$d.years,YY:r.s(this.$d.years,2,"0"),YYYY:r.s(this.$d.years,4,"0"),M:this.$d.months,MM:r.s(this.$d.months,2,"0"),D:this.$d.days,DD:r.s(this.$d.days,2,"0"),H:this.$d.hours,HH:r.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:r.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:r.s(this.$d.seconds,2,"0"),SSS:r.s(this.$d.milliseconds,3,"0")};return h.replace(E,(function(M,w){return w||String(D[M])}))},g.as=function(y){return this.$ms/_[I(y)]},g.get=function(y){var h=this.$ms,D=I(y);return D==="milliseconds"?h%=1e3:h=D==="weeks"?Z(h/_[D]):this.$d[D],h||0},g.add=function(y,h,D){var M;return M=h?y*_[I(h)]:C(y)?y.$ms:V(y,this).$ms,V(this.$ms+M*(D?-1:1),this)},g.subtract=function(y,h){return this.add(y,h,!0)},g.locale=function(y){var h=this.clone();return h.$l=y,h},g.clone=function(){return V(this.$ms,this)},g.humanize=function(y){return n().add(this.$ms,"ms").locale(this.$l).fromNow(!y)},g.valueOf=function(){return this.asMilliseconds()},g.milliseconds=function(){return this.get("milliseconds")},g.asMilliseconds=function(){return this.as("milliseconds")},g.seconds=function(){return this.get("seconds")},g.asSeconds=function(){return this.as("seconds")},g.minutes=function(){return this.get("minutes")},g.asMinutes=function(){return this.as("minutes")},g.hours=function(){return this.get("hours")},g.asHours=function(){return this.as("hours")},g.days=function(){return this.get("days")},g.asDays=function(){return this.as("days")},g.weeks=function(){return this.get("weeks")},g.asWeeks=function(){return this.as("weeks")},g.months=function(){return this.get("months")},g.asMonths=function(){return this.as("months")},g.years=function(){return this.get("years")},g.asYears=function(){return this.as("years")},m})(),Q=function(m,g,y){return m.add(g.years()*y,"y").add(g.months()*y,"M").add(g.days()*y,"d").add(g.hours()*y,"h").add(g.minutes()*y,"m").add(g.seconds()*y,"s").add(g.milliseconds()*y,"ms")};return function(m,g,y){n=y,r=y().$utils(),y.duration=function(M,w){var p=y.locale();return V(M,{$l:p},w)},y.isDuration=C;var h=g.prototype.add,D=g.prototype.subtract;g.prototype.add=function(M,w){return C(M)?Q(this,M,1):h.bind(this)(M,w)},g.prototype.subtract=function(M,w){return C(M)?Q(this,M,-1):D.bind(this)(M,w)}}}))})(Gt)),Gt.exports}var Oi=Li();const $i=sn(Oi);var ve=(function(){var t=f(function(p,u,d,v){for(d=d||{},v=p.length;v--;d[p[v]]=u);return d},"o"),e=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],n=[1,26],r=[1,27],i=[1,28],a=[1,29],c=[1,30],b=[1,31],E=[1,32],S=[1,33],x=[1,34],W=[1,9],_=[1,10],C=[1,11],V=[1,12],I=[1,13],tt=[1,14],Z=[1,15],rt=[1,16],R=[1,19],q=[1,20],Q=[1,21],m=[1,22],g=[1,23],y=[1,25],h=[1,35],D={trace:f(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:f(function(u,d,v,k,F,o,z){var s=o.length-1;switch(F){case 1:return o[s-1];case 2:this.$=[];break;case 3:o[s-1].push(o[s]),this.$=o[s-1];break;case 4:case 5:this.$=o[s];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(o[s].substr(11)),this.$=o[s].substr(11);break;case 18:k.enableInclusiveEndDates(),this.$=o[s].substr(18);break;case 19:k.TopAxis(),this.$=o[s].substr(8);break;case 20:k.setAxisFormat(o[s].substr(11)),this.$=o[s].substr(11);break;case 21:k.setTickInterval(o[s].substr(13)),this.$=o[s].substr(13);break;case 22:k.setExcludes(o[s].substr(9)),this.$=o[s].substr(9);break;case 23:k.setIncludes(o[s].substr(9)),this.$=o[s].substr(9);break;case 24:k.setTodayMarker(o[s].substr(12)),this.$=o[s].substr(12);break;case 27:k.setDiagramTitle(o[s].substr(6)),this.$=o[s].substr(6);break;case 28:this.$=o[s].trim(),k.setAccTitle(this.$);break;case 29:case 30:this.$=o[s].trim(),k.setAccDescription(this.$);break;case 31:k.addSection(o[s].substr(8)),this.$=o[s].substr(8);break;case 33:k.addTask(o[s-1],o[s]),this.$="task";break;case 34:this.$=o[s-1],k.setClickEvent(o[s-1],o[s],null);break;case 35:this.$=o[s-2],k.setClickEvent(o[s-2],o[s-1],o[s]);break;case 36:this.$=o[s-2],k.setClickEvent(o[s-2],o[s-1],null),k.setLink(o[s-2],o[s]);break;case 37:this.$=o[s-3],k.setClickEvent(o[s-3],o[s-2],o[s-1]),k.setLink(o[s-3],o[s]);break;case 38:this.$=o[s-2],k.setClickEvent(o[s-2],o[s],null),k.setLink(o[s-2],o[s-1]);break;case 39:this.$=o[s-3],k.setClickEvent(o[s-3],o[s-1],o[s]),k.setLink(o[s-3],o[s-2]);break;case 40:this.$=o[s-1],k.setLink(o[s-1],o[s]);break;case 41:case 47:this.$=o[s-1]+" "+o[s];break;case 42:case 43:case 45:this.$=o[s-2]+" "+o[s-1]+" "+o[s];break;case 44:case 46:this.$=o[s-3]+" "+o[s-2]+" "+o[s-1]+" "+o[s];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:n,13:r,14:i,15:a,16:c,17:b,18:E,19:18,20:S,21:x,22:W,23:_,24:C,25:V,26:I,27:tt,28:Z,29:rt,30:R,31:q,33:Q,35:m,36:g,37:24,38:y,40:h},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:36,11:17,12:n,13:r,14:i,15:a,16:c,17:b,18:E,19:18,20:S,21:x,22:W,23:_,24:C,25:V,26:I,27:tt,28:Z,29:rt,30:R,31:q,33:Q,35:m,36:g,37:24,38:y,40:h},t(e,[2,5]),t(e,[2,6]),t(e,[2,17]),t(e,[2,18]),t(e,[2,19]),t(e,[2,20]),t(e,[2,21]),t(e,[2,22]),t(e,[2,23]),t(e,[2,24]),t(e,[2,25]),t(e,[2,26]),t(e,[2,27]),{32:[1,37]},{34:[1,38]},t(e,[2,30]),t(e,[2,31]),t(e,[2,32]),{39:[1,39]},t(e,[2,8]),t(e,[2,9]),t(e,[2,10]),t(e,[2,11]),t(e,[2,12]),t(e,[2,13]),t(e,[2,14]),t(e,[2,15]),t(e,[2,16]),{41:[1,40],43:[1,41]},t(e,[2,4]),t(e,[2,28]),t(e,[2,29]),t(e,[2,33]),t(e,[2,34],{42:[1,42],43:[1,43]}),t(e,[2,40],{41:[1,44]}),t(e,[2,35],{43:[1,45]}),t(e,[2,36]),t(e,[2,38],{42:[1,46]}),t(e,[2,37]),t(e,[2,39])],defaultActions:{},parseError:f(function(u,d){if(d.recoverable)this.trace(u);else{var v=new Error(u);throw v.hash=d,v}},"parseError"),parse:f(function(u){var d=this,v=[0],k=[],F=[null],o=[],z=this.table,s="",U=0,P=0,$=2,O=1,J=o.slice.call(arguments,1),Y=Object.create(this.lexer),at={yy:{}};for(var T in this.yy)Object.prototype.hasOwnProperty.call(this.yy,T)&&(at.yy[T]=this.yy[T]);Y.setInput(u,at.yy),at.yy.lexer=Y,at.yy.parser=this,typeof Y.yylloc>"u"&&(Y.yylloc={});var L=Y.yylloc;o.push(L);var N=Y.options&&Y.options.ranges;typeof at.yy.parseError=="function"?this.parseError=at.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function l(it){v.length=v.length-2*it,F.length=F.length-it,o.length=o.length-it}f(l,"popStack");function et(){var it;return it=k.pop()||Y.lex()||O,typeof it!="number"&&(it instanceof Array&&(k=it,it=k.pop()),it=d.symbols_[it]||it),it}f(et,"lex");for(var A,j,B,ot,lt={},zt,ft,We,Bt;;){if(j=v[v.length-1],this.defaultActions[j]?B=this.defaultActions[j]:((A===null||typeof A>"u")&&(A=et()),B=z[j]&&z[j][A]),typeof B>"u"||!B.length||!B[0]){var ie="";Bt=[];for(zt in z[j])this.terminals_[zt]&&zt>$&&Bt.push("'"+this.terminals_[zt]+"'");Y.showPosition?ie="Parse error on line "+(U+1)+`: `+Y.showPosition()+` Expecting `+Bt.join(", ")+", got '"+(this.terminals_[A]||A)+"'":ie="Parse error on line "+(U+1)+": Unexpected "+(A==O?"end of input":"'"+(this.terminals_[A]||A)+"'"),this.parseError(ie,{text:Y.match,token:this.terminals_[A]||A,line:Y.yylineno,loc:L,expected:Bt})}if(B[0]instanceof Array&&B.length>1)throw new Error("Parse Error: multiple actions possible at state: "+j+", token: "+A);switch(B[0]){case 1:v.push(A),F.push(Y.yytext),o.push(Y.yylloc),v.push(B[1]),A=null,P=Y.yyleng,s=Y.yytext,U=Y.yylineno,L=Y.yylloc;break;case 2:if(ft=this.productions_[B[1]][1],lt.$=F[F.length-ft],lt._$={first_line:o[o.length-(ft||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(ft||1)].first_column,last_column:o[o.length-1].last_column},N&&(lt._$.range=[o[o.length-(ft||1)].range[0],o[o.length-1].range[1]]),ot=this.performAction.apply(lt,[s,P,U,at.yy,B[1],F,o].concat(J)),typeof ot<"u")return ot;ft&&(v=v.slice(0,-1*ft*2),F=F.slice(0,-1*ft),o=o.slice(0,-1*ft)),v.push(this.productions_[B[1]][0]),F.push(lt.$),o.push(lt._$),We=z[v[v.length-2]][v[v.length-1]],v.push(We);break;case 3:return!0}}return!0},"parse")},M=(function(){var p={EOF:1,parseError:f(function(d,v){if(this.yy.parser)this.yy.parser.parseError(d,v);else throw new Error(d)},"parseError"),setInput:f(function(u,d){return this.yy=d||this.yy||{},this._input=u,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:f(function(){var u=this._input[0];this.yytext+=u,this.yyleng++,this.offset++,this.match+=u,this.matched+=u;var d=u.match(/(?:\r\n?|\n).*/g);return d?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),u},"input"),unput:f(function(u){var d=u.length,v=u.split(/(?:\r\n?|\n)/g);this._input=u+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-d),this.offset-=d;var k=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),v.length-1&&(this.yylineno-=v.length-1);var F=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:v?(v.length===k.length?this.yylloc.first_column:0)+k[k.length-v.length].length-v[0].length:this.yylloc.first_column-d},this.options.ranges&&(this.yylloc.range=[F[0],F[0]+this.yyleng-d]),this.yyleng=this.yytext.length,this},"unput"),more:f(function(){return this._more=!0,this},"more"),reject:f(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). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:f(function(u){this.unput(this.match.slice(u))},"less"),pastInput:f(function(){var u=this.matched.substr(0,this.matched.length-this.match.length);return(u.length>20?"...":"")+u.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:f(function(){var u=this.match;return u.length<20&&(u+=this._input.substr(0,20-u.length)),(u.substr(0,20)+(u.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:f(function(){var u=this.pastInput(),d=new Array(u.length+1).join("-");return u+this.upcomingInput()+` `+d+"^"},"showPosition"),test_match:f(function(u,d){var v,k,F;if(this.options.backtrack_lexer&&(F={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&&(F.yylloc.range=this.yylloc.range.slice(0))),k=u[0].match(/(?:\r\n?|\n).*/g),k&&(this.yylineno+=k.length),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+u[0].length},this.yytext+=u[0],this.match+=u[0],this.matches=u,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(u[0].length),this.matched+=u[0],v=this.performAction.call(this,this.yy,this,d,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),v)return v;if(this._backtrack){for(var o in F)this[o]=F[o];return!1}return!1},"test_match"),next:f(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var u,d,v,k;this._more||(this.yytext="",this.match="");for(var F=this._currentRules(),o=0;od[0].length)){if(d=v,k=o,this.options.backtrack_lexer){if(u=this.test_match(v,F[o]),u!==!1)return u;if(this._backtrack){d=!1;continue}else return!1}else if(!this.options.flex)break}return d?(u=this.test_match(d,F[k]),u!==!1?u:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:f(function(){var d=this.next();return d||this.lex()},"lex"),begin:f(function(d){this.conditionStack.push(d)},"begin"),popState:f(function(){var d=this.conditionStack.length-1;return d>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:f(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:f(function(d){return d=this.conditionStack.length-1-Math.abs(d||0),d>=0?this.conditionStack[d]:"INITIAL"},"topState"),pushState:f(function(d){this.begin(d)},"pushState"),stateStackSize:f(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:f(function(d,v,k,F){switch(k){case 0:return this.begin("open_directive"),"open_directive";case 1:return this.begin("acc_title"),31;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),33;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:break;case 9:break;case 10:break;case 11:return 10;case 12:break;case 13:break;case 14:this.begin("href");break;case 15:this.popState();break;case 16:return 43;case 17:this.begin("callbackname");break;case 18:this.popState();break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 41;case 21:this.popState();break;case 22:return 42;case 23:this.begin("click");break;case 24:this.popState();break;case 25:return 40;case 26:return 4;case 27:return 22;case 28:return 23;case 29:return 24;case 30:return 25;case 31:return 26;case 32:return 28;case 33:return 27;case 34:return 29;case 35:return 12;case 36:return 13;case 37:return 14;case 38:return 15;case 39:return 16;case 40:return 17;case 41:return 18;case 42:return 20;case 43:return 21;case 44:return"date";case 45:return 30;case 46:return"accDescription";case 47:return 36;case 48:return 38;case 49:return 39;case 50:return":";case 51:return 6;case 52:return"INVALID"}},"anonymous"),rules:[/^(?:%%\{)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:weekday\s+monday\b)/i,/^(?:weekday\s+tuesday\b)/i,/^(?:weekday\s+wednesday\b)/i,/^(?:weekday\s+thursday\b)/i,/^(?:weekday\s+friday\b)/i,/^(?:weekday\s+saturday\b)/i,/^(?:weekday\s+sunday\b)/i,/^(?:weekend\s+friday\b)/i,/^(?:weekend\s+saturday\b)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^\n]+)/i,/^(?:[^:\n]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},callbackargs:{rules:[21,22],inclusive:!1},callbackname:{rules:[18,19,20],inclusive:!1},href:{rules:[15,16],inclusive:!1},click:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,17,23,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}};return p})();D.lexer=M;function w(){this.yy={}}return f(w,"Parser"),w.prototype=D,D.Parser=w,new w})();ve.parser=ve;var Ni=ve;nt.extend(Ai);nt.extend(Bn);nt.extend(qn);var Qe={friday:5,saturday:6},ct="",De="",Me=void 0,Se="",Vt=[],Pt=[],_e=new Map,Fe=[],ne=[],It="",Ue="",Cn=["active","done","crit","milestone","vert"],Ee=[],Rt=!1,Ie=!1,Ye="sunday",re="saturday",Te=0,Hi=f(function(){Fe=[],ne=[],It="",Ee=[],Qt=0,xe=void 0,Jt=void 0,X=[],ct="",De="",Ue="",Me=void 0,Se="",Vt=[],Pt=[],Rt=!1,Ie=!1,Te=0,_e=new Map,Rn(),Ye="sunday",re="saturday"},"clear"),Vi=f(function(t){De=t},"setAxisFormat"),Pi=f(function(){return De},"getAxisFormat"),Ri=f(function(t){Me=t},"setTickInterval"),zi=f(function(){return Me},"getTickInterval"),Bi=f(function(t){Se=t},"setTodayMarker"),qi=f(function(){return Se},"getTodayMarker"),Zi=f(function(t){ct=t},"setDateFormat"),ji=f(function(){Rt=!0},"enableInclusiveEndDates"),Xi=f(function(){return Rt},"endDatesAreInclusive"),Gi=f(function(){Ie=!0},"enableTopAxis"),Qi=f(function(){return Ie},"topAxisEnabled"),Ji=f(function(t){Ue=t},"setDisplayMode"),Ki=f(function(){return Ue},"getDisplayMode"),ts=f(function(){return ct},"getDateFormat"),es=f(function(t){Vt=t.toLowerCase().split(/[\s,]+/)},"setIncludes"),ns=f(function(){return Vt},"getIncludes"),rs=f(function(t){Pt=t.toLowerCase().split(/[\s,]+/)},"setExcludes"),is=f(function(){return Pt},"getExcludes"),ss=f(function(){return _e},"getLinks"),as=f(function(t){It=t,Fe.push(t)},"addSection"),os=f(function(){return Fe},"getSections"),cs=f(function(){let t=Je();const e=10;let n=0;for(;!t&&n{const E=b.trim();return E==="x"||E==="X"},"isTimestampFormat")(e)&&/^\d+$/.test(n))return new Date(Number(n));const a=/^after\s+(?[\d\w- ]+)/.exec(n);if(a!==null){let b=null;for(const S of a.groups.ids.split(" ")){let x=Dt(S);x!==void 0&&(!b||x.endTime>b.endTime)&&(b=x)}if(b)return b.endTime;const E=new Date;return E.setHours(0,0,0,0),E}let c=nt(n,e.trim(),!0);if(c.isValid())return c.toDate();{vt.debug("Invalid date:"+n),vt.debug("With date format:"+e.trim());const b=new Date(n);if(b===void 0||isNaN(b.getTime())||b.getFullYear()<-1e4||b.getFullYear()>1e4)throw new Error("Invalid date:"+n);return b}},"getStartDate"),Sn=f(function(t){const e=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(t.trim());return e!==null?[Number.parseFloat(e[1]),e[2]]:[NaN,"ms"]},"parseDuration"),_n=f(function(t,e,n,r=!1){n=n.trim();const a=/^until\s+(?[\d\w- ]+)/.exec(n);if(a!==null){let x=null;for(const _ of a.groups.ids.split(" ")){let C=Dt(_);C!==void 0&&(!x||C.startTime{window.open(n,"_self")}),_e.set(r,n))}),Un(t,"clickable")},"setLink"),Un=f(function(t,e){t.split(",").forEach(function(n){let r=Dt(n);r!==void 0&&r.classes.push(e)})},"setClass"),ps=f(function(t,e,n){if(St().securityLevel!=="loose"||e===void 0)return;let r=[];if(typeof n=="string"){r=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let a=0;a{zn.runFunc(e,...r)})},"setClickFun"),En=f(function(t,e){Ee.push(function(){const n=document.querySelector(`[id="${t}"]`);n!==null&&n.addEventListener("click",function(){e()})},function(){const n=document.querySelector(`[id="${t}-text"]`);n!==null&&n.addEventListener("click",function(){e()})})},"pushFun"),vs=f(function(t,e,n){t.split(",").forEach(function(r){ps(r,e,n)}),Un(t,"clickable")},"setClickEvent"),Ts=f(function(t){Ee.forEach(function(e){e(t)})},"bindFunctions"),bs={getConfig:f(()=>St().gantt,"getConfig"),clear:Hi,setDateFormat:Zi,getDateFormat:ts,enableInclusiveEndDates:ji,endDatesAreInclusive:Xi,enableTopAxis:Gi,topAxisEnabled:Qi,setAxisFormat:Vi,getAxisFormat:Pi,setTickInterval:Ri,getTickInterval:zi,setTodayMarker:Bi,getTodayMarker:qi,setAccTitle:Nn,getAccTitle:$n,setDiagramTitle:On,getDiagramTitle:Ln,setDisplayMode:Ji,getDisplayMode:Ki,setAccDescription:Wn,getAccDescription:An,addSection:as,getSections:os,getTasks:cs,addTask:gs,findTaskById:Dt,addTaskOrg:ys,setIncludes:es,getIncludes:ns,setExcludes:rs,getExcludes:is,setClickEvent:vs,setLink:ks,getLinks:ss,bindFunctions:Ts,parseDuration:Sn,isInvalidDate:Dn,setWeekday:us,getWeekday:ls,setWeekend:fs};function Ae(t,e,n){let r=!0;for(;r;)r=!1,n.forEach(function(i){const a="^\\s*"+i+"\\s*$",c=new RegExp(a);t[0].match(c)&&(e[i]=!0,t.shift(1),r=!0)})}f(Ae,"getTaskTags");nt.extend($i);var xs=f(function(){vt.debug("Something is calling, setConf, remove the call")},"setConf"),Ke={monday:$t,tuesday:mn,wednesday:gn,thursday:bt,friday:yn,saturday:kn,sunday:Ht},ws=f((t,e)=>{let n=[...t].map(()=>-1/0),r=[...t].sort((a,c)=>a.startTime-c.startTime||a.order-c.order),i=0;for(const a of r)for(let c=0;c=n[c]){n[c]=a.endTime,a.order=c+e,c>i&&(i=c);break}return i},"getMaxIntersections"),dt,ye=1e4,Cs=f(function(t,e,n,r){const i=St().gantt,a=St().securityLevel;let c;a==="sandbox"&&(c=qt("#i"+e));const b=a==="sandbox"?qt(c.nodes()[0].contentDocument.body):qt("body"),E=a==="sandbox"?c.nodes()[0].contentDocument:document,S=E.getElementById(e);dt=S.parentElement.offsetWidth,dt===void 0&&(dt=1200),i.useWidth!==void 0&&(dt=i.useWidth);const x=r.db.getTasks();let W=[];for(const h of x)W.push(h.type);W=y(W);const _={};let C=2*i.topPadding;if(r.db.getDisplayMode()==="compact"||i.displayMode==="compact"){const h={};for(const M of x)h[M.section]===void 0?h[M.section]=[M]:h[M.section].push(M);let D=0;for(const M of Object.keys(h)){const w=ws(h[M],D)+1;D+=w,C+=w*(i.barHeight+i.barGap),_[M]=w}}else{C+=x.length*(i.barHeight+i.barGap);for(const h of W)_[h]=x.filter(D=>D.type===h).length}S.setAttribute("viewBox","0 0 "+dt+" "+C);const V=b.select(`[id="${e}"]`),I=Ui().domain([Kn(x,function(h){return h.startTime}),Jn(x,function(h){return h.endTime})]).rangeRound([0,dt-i.leftPadding-i.rightPadding]);function tt(h,D){const M=h.startTime,w=D.startTime;let p=0;return M>w?p=1:Ms.vert===U.vert?0:s.vert?1:-1);const k=[...new Set(h.map(s=>s.order))].map(s=>h.find(U=>U.order===s));V.append("g").selectAll("rect").data(k).enter().append("rect").attr("x",0).attr("y",function(s,U){return U=s.order,U*D+M-2}).attr("width",function(){return d-i.rightPadding/2}).attr("height",D).attr("class",function(s){for(const[U,P]of W.entries())if(s.type===P)return"section section"+U%i.numberSectionStyles;return"section section0"}).enter();const F=V.append("g").selectAll("rect").data(h).enter(),o=r.db.getLinks();if(F.append("rect").attr("id",function(s){return s.id}).attr("rx",3).attr("ry",3).attr("x",function(s){return s.milestone?I(s.startTime)+w+.5*(I(s.endTime)-I(s.startTime))-.5*p:I(s.startTime)+w}).attr("y",function(s,U){return U=s.order,s.vert?i.gridLineStartPadding:U*D+M}).attr("width",function(s){return s.milestone?p:s.vert?.08*p:I(s.renderEndTime||s.endTime)-I(s.startTime)}).attr("height",function(s){return s.vert?x.length*(i.barHeight+i.barGap)+i.barHeight*2:p}).attr("transform-origin",function(s,U){return U=s.order,(I(s.startTime)+w+.5*(I(s.endTime)-I(s.startTime))).toString()+"px "+(U*D+M+.5*p).toString()+"px"}).attr("class",function(s){const U="task";let P="";s.classes.length>0&&(P=s.classes.join(" "));let $=0;for(const[J,Y]of W.entries())s.type===Y&&($=J%i.numberSectionStyles);let O="";return s.active?s.crit?O+=" activeCrit":O=" active":s.done?s.crit?O=" doneCrit":O=" done":s.crit&&(O+=" crit"),O.length===0&&(O=" task"),s.milestone&&(O=" milestone "+O),s.vert&&(O=" vert "+O),O+=$,O+=" "+P,U+O}),F.append("text").attr("id",function(s){return s.id+"-text"}).text(function(s){return s.task}).attr("font-size",i.fontSize).attr("x",function(s){let U=I(s.startTime),P=I(s.renderEndTime||s.endTime);if(s.milestone&&(U+=.5*(I(s.endTime)-I(s.startTime))-.5*p,P=U+p),s.vert)return I(s.startTime)+w;const $=this.getBBox().width;return $>P-U?P+$+1.5*i.leftPadding>d?U+w-5:P+w+5:(P-U)/2+U+w}).attr("y",function(s,U){return s.vert?i.gridLineStartPadding+x.length*(i.barHeight+i.barGap)+60:(U=s.order,U*D+i.barHeight/2+(i.fontSize/2-2)+M)}).attr("text-height",p).attr("class",function(s){const U=I(s.startTime);let P=I(s.endTime);s.milestone&&(P=U+p);const $=this.getBBox().width;let O="";s.classes.length>0&&(O=s.classes.join(" "));let J=0;for(const[at,T]of W.entries())s.type===T&&(J=at%i.numberSectionStyles);let Y="";return s.active&&(s.crit?Y="activeCritText"+J:Y="activeText"+J),s.done?s.crit?Y=Y+" doneCritText"+J:Y=Y+" doneText"+J:s.crit&&(Y=Y+" critText"+J),s.milestone&&(Y+=" milestoneText"),s.vert&&(Y+=" vertText"),$>P-U?P+$+1.5*i.leftPadding>d?O+" taskTextOutsideLeft taskTextOutside"+J+" "+Y:O+" taskTextOutsideRight taskTextOutside"+J+" "+Y+" width-"+$:O+" taskText taskText"+J+" "+Y+" width-"+$}),St().securityLevel==="sandbox"){let s;s=qt("#i"+e);const U=s.nodes()[0].contentDocument;F.filter(function(P){return o.has(P.id)}).each(function(P){var $=U.querySelector("#"+P.id),O=U.querySelector("#"+P.id+"-text");const J=$.parentNode;var Y=U.createElement("a");Y.setAttribute("xlink:href",o.get(P.id)),Y.setAttribute("target","_top"),J.appendChild(Y),Y.appendChild($),Y.appendChild(O)})}}f(rt,"drawRects");function R(h,D,M,w,p,u,d,v){if(d.length===0&&v.length===0)return;let k,F;for(const{startTime:$,endTime:O}of u)(k===void 0||$F)&&(F=O);if(!k||!F)return;if(nt(F).diff(nt(k),"year")>5){vt.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");return}const o=r.db.getDateFormat(),z=[];let s=null,U=nt(k);for(;U.valueOf()<=F;)r.db.isInvalidDate(U,o,d,v)?s?s.end=U:s={start:U,end:U}:s&&(z.push(s),s=null),U=U.add(1,"d");V.append("g").selectAll("rect").data(z).enter().append("rect").attr("id",$=>"exclude-"+$.start.format("YYYY-MM-DD")).attr("x",$=>I($.start.startOf("day"))+M).attr("y",i.gridLineStartPadding).attr("width",$=>I($.end.endOf("day"))-I($.start.startOf("day"))).attr("height",p-D-i.gridLineStartPadding).attr("transform-origin",function($,O){return(I($.start)+M+.5*(I($.end)-I($.start))).toString()+"px "+(O*h+.5*p).toString()+"px"}).attr("class","exclude-range")}f(R,"drawExcludeDays");function q(h,D,M,w){if(M<=0||h>D)return 1/0;const p=D-h,u=nt.duration({[w??"day"]:M}).asMilliseconds();return u<=0?1/0:Math.ceil(p/u)}f(q,"getEstimatedTickCount");function Q(h,D,M,w){const p=r.db.getDateFormat(),u=r.db.getAxisFormat();let d;u?d=u:p==="D"?d="%d":d=i.axisFormat??"%Y-%m-%d";let v=or(I).tickSize(-w+D+i.gridLineStartPadding).tickFormat(ee(d));const F=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(r.db.getTickInterval()||i.tickInterval);if(F!==null){const o=parseInt(F[1],10);if(isNaN(o)||o<=0)vt.warn(`Invalid tick interval value: "${F[1]}". Skipping custom tick interval.`);else{const z=F[2],s=r.db.getWeekday()||i.weekday,U=I.domain(),P=U[0],$=U[1],O=q(P,$,o,z);if(O>ye)vt.warn(`The tick interval "${o}${z}" would generate ${O} ticks, which exceeds the maximum allowed (${ye}). This may indicate an invalid date or time range. Skipping custom tick interval.`);else switch(z){case"millisecond":v.ticks(Ut.every(o));break;case"second":v.ticks(pt.every(o));break;case"minute":v.ticks(Lt.every(o));break;case"hour":v.ticks(Ot.every(o));break;case"day":v.ticks(Tt.every(o));break;case"week":v.ticks(Ke[s].every(o));break;case"month":v.ticks(Nt.every(o));break}}}if(V.append("g").attr("class","grid").attr("transform","translate("+h+", "+(w-50)+")").call(v).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),r.db.topAxisEnabled()||i.topAxis){let o=ar(I).tickSize(-w+D+i.gridLineStartPadding).tickFormat(ee(d));if(F!==null){const z=parseInt(F[1],10);if(isNaN(z)||z<=0)vt.warn(`Invalid tick interval value: "${F[1]}". Skipping custom tick interval.`);else{const s=F[2],U=r.db.getWeekday()||i.weekday,P=I.domain(),$=P[0],O=P[1];if(q($,O,z,s)<=ye)switch(s){case"millisecond":o.ticks(Ut.every(z));break;case"second":o.ticks(pt.every(z));break;case"minute":o.ticks(Lt.every(z));break;case"hour":o.ticks(Ot.every(z));break;case"day":o.ticks(Tt.every(z));break;case"week":o.ticks(Ke[U].every(z));break;case"month":o.ticks(Nt.every(z));break}}}V.append("g").attr("class","grid").attr("transform","translate("+h+", "+D+")").call(o).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}f(Q,"makeGrid");function m(h,D){let M=0;const w=Object.keys(_).map(p=>[p,_[p]]);V.append("g").selectAll("text").data(w).enter().append(function(p){const u=p[0].split(Vn.lineBreakRegex),d=-(u.length-1)/2,v=E.createElementNS("http://www.w3.org/2000/svg","text");v.setAttribute("dy",d+"em");for(const[k,F]of u.entries()){const o=E.createElementNS("http://www.w3.org/2000/svg","tspan");o.setAttribute("alignment-baseline","central"),o.setAttribute("x","10"),k>0&&o.setAttribute("dy","1em"),o.textContent=F,v.appendChild(o)}return v}).attr("x",10).attr("y",function(p,u){if(u>0)for(let d=0;d` .mermaid-main-font { font-family: ${t.fontFamily}; } .exclude-range { fill: ${t.excludeBkgColor}; } .section { stroke: none; opacity: 0.2; } .section0 { fill: ${t.sectionBkgColor}; } .section2 { fill: ${t.sectionBkgColor2}; } .section1, .section3 { fill: ${t.altSectionBkgColor}; opacity: 0.2; } .sectionTitle0 { fill: ${t.titleColor}; } .sectionTitle1 { fill: ${t.titleColor}; } .sectionTitle2 { fill: ${t.titleColor}; } .sectionTitle3 { fill: ${t.titleColor}; } .sectionTitle { text-anchor: start; font-family: ${t.fontFamily}; } /* Grid and axis */ .grid .tick { stroke: ${t.gridColor}; opacity: 0.8; shape-rendering: crispEdges; } .grid .tick text { font-family: ${t.fontFamily}; fill: ${t.textColor}; } .grid path { stroke-width: 0; } /* Today line */ .today { fill: none; stroke: ${t.todayLineColor}; stroke-width: 2px; } /* Task styling */ /* Default task */ .task { stroke-width: 2; } .taskText { text-anchor: middle; font-family: ${t.fontFamily}; } .taskTextOutsideRight { fill: ${t.taskTextDarkColor}; text-anchor: start; font-family: ${t.fontFamily}; } .taskTextOutsideLeft { fill: ${t.taskTextDarkColor}; text-anchor: end; } /* Special case clickable */ .task.clickable { cursor: pointer; } .taskText.clickable { cursor: pointer; fill: ${t.taskTextClickableColor} !important; font-weight: bold; } .taskTextOutsideLeft.clickable { cursor: pointer; fill: ${t.taskTextClickableColor} !important; font-weight: bold; } .taskTextOutsideRight.clickable { cursor: pointer; fill: ${t.taskTextClickableColor} !important; font-weight: bold; } /* Specific task settings for the sections*/ .taskText0, .taskText1, .taskText2, .taskText3 { fill: ${t.taskTextColor}; } .task0, .task1, .task2, .task3 { fill: ${t.taskBkgColor}; stroke: ${t.taskBorderColor}; } .taskTextOutside0, .taskTextOutside2 { fill: ${t.taskTextOutsideColor}; } .taskTextOutside1, .taskTextOutside3 { fill: ${t.taskTextOutsideColor}; } /* Active task */ .active0, .active1, .active2, .active3 { fill: ${t.activeTaskBkgColor}; stroke: ${t.activeTaskBorderColor}; } .activeText0, .activeText1, .activeText2, .activeText3 { fill: ${t.taskTextDarkColor} !important; } /* Completed task */ .done0, .done1, .done2, .done3 { stroke: ${t.doneTaskBorderColor}; fill: ${t.doneTaskBkgColor}; stroke-width: 2; } .doneText0, .doneText1, .doneText2, .doneText3 { fill: ${t.taskTextDarkColor} !important; } /* Tasks on the critical line */ .crit0, .crit1, .crit2, .crit3 { stroke: ${t.critBorderColor}; fill: ${t.critBkgColor}; stroke-width: 2; } .activeCrit0, .activeCrit1, .activeCrit2, .activeCrit3 { stroke: ${t.critBorderColor}; fill: ${t.activeTaskBkgColor}; stroke-width: 2; } .doneCrit0, .doneCrit1, .doneCrit2, .doneCrit3 { stroke: ${t.critBorderColor}; fill: ${t.doneTaskBkgColor}; stroke-width: 2; cursor: pointer; shape-rendering: crispEdges; } .milestone { transform: rotate(45deg) scale(0.8,0.8); } .milestoneText { font-style: italic; } .doneCritText0, .doneCritText1, .doneCritText2, .doneCritText3 { fill: ${t.taskTextDarkColor} !important; } .vert { stroke: ${t.vertLineColor}; } .vertText { font-size: 15px; text-anchor: middle; fill: ${t.vertLineColor} !important; } .activeCritText0, .activeCritText1, .activeCritText2, .activeCritText3 { fill: ${t.taskTextDarkColor} !important; } .titleText { text-anchor: middle; font-size: 18px; fill: ${t.titleColor||t.textColor}; font-family: ${t.fontFamily}; } `,"getStyles"),Ss=Ms,Is={parser:Ni,db:bs,renderer:Ds,styles:Ss};export{Is as diagram};