268 lines
57 KiB
JavaScript
268 lines
57 KiB
JavaScript
import{e6 as Jt,e7 as Sn,e8 as Kt,e9 as $t,ea as en,eb as it,ec as Fn,d4 as Un,_ as f,g as En,s as In,q as An,p as Ln,a as Wn,b as Yn,c as _e,d as qe,e as On,ed as ee,l as Je,k as Nn,j as Hn,y as Vn,u as Pn,ee as Rn,ef as zn}from"./admin-BkqzSx7d.js";import{b as Bn,t as Lt,c as qn,a as Zn,l as Xn}from"./linear-CE1y2BCt.js";import{i as jn}from"./init-Gi6I4Gst.js";import"./defaultLocale-C4B-KCzX.js";function Gn(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function Qn(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function Jn(e){return e}var Xe=1,at=2,gt=3,Ze=4,Wt=1e-6;function Kn(e){return"translate("+e+",0)"}function $n(e){return"translate(0,"+e+")"}function er(e){return t=>+e(t)}function tr(e,t){return t=Math.max(0,e.bandwidth()-t*2)/2,e.round()&&(t=Math.round(t)),n=>+e(n)+t}function nr(){return!this.__axis}function tn(e,t){var n=[],r=null,i=null,a=6,s=6,D=3,S=typeof window<"u"&&window.devicePixelRatio>1?0:.5,k=e===Xe||e===Ze?-1:1,p=e===Ze||e===at?"x":"y",A=e===Xe||e===gt?Kn:$n;function x(y){var R=r??(t.ticks?t.ticks.apply(t,n):t.domain()),I=i??(t.tickFormat?t.tickFormat.apply(t,n):Jn),te=Math.max(a,0)+D,re=t.range(),ne=+re[0]+S,Z=+re[re.length-1]+S,X=(t.bandwidth?tr:er)(t.copy(),S),$=y.selection?y.selection():y,w=$.selectAll(".domain").data([null]),N=$.selectAll(".tick").data(R,t).order(),C=N.exit(),U=N.enter().append("g").attr("class","tick"),_=N.select("line"),M=N.select("text");w=w.merge(w.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),N=N.merge(U),_=_.merge(U.append("line").attr("stroke","currentColor").attr(p+"2",k*a)),M=M.merge(U.append("text").attr("fill","currentColor").attr(p,k*te).attr("dy",e===Xe?"0em":e===gt?"0.71em":"0.32em")),y!==$&&(w=w.transition(y),N=N.transition(y),_=_.transition(y),M=M.transition(y),C=C.transition(y).attr("opacity",Wt).attr("transform",function(b){return isFinite(b=X(b))?A(b+S):this.getAttribute("transform")}),U.attr("opacity",Wt).attr("transform",function(b){var L=this.parentNode.__axis;return A((L&&isFinite(L=L(b))?L:X(b))+S)})),C.remove(),w.attr("d",e===Ze||e===at?s?"M"+k*s+","+ne+"H"+S+"V"+Z+"H"+k*s:"M"+S+","+ne+"V"+Z:s?"M"+ne+","+k*s+"V"+S+"H"+Z+"V"+k*s:"M"+ne+","+S+"H"+Z),N.attr("opacity",1).attr("transform",function(b){return A(X(b)+S)}),_.attr(p+"2",k*a),M.attr(p,k*te).text(I),$.filter(nr).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===at?"start":e===Ze?"end":"middle"),$.each(function(){this.__axis=X})}return x.scale=function(y){return arguments.length?(t=y,x):t},x.ticks=function(){return n=Array.from(arguments),x},x.tickArguments=function(y){return arguments.length?(n=y==null?[]:Array.from(y),x):n.slice()},x.tickValues=function(y){return arguments.length?(r=y==null?null:Array.from(y),x):r&&r.slice()},x.tickFormat=function(y){return arguments.length?(i=y,x):i},x.tickSize=function(y){return arguments.length?(a=s=+y,x):a},x.tickSizeInner=function(y){return arguments.length?(a=+y,x):a},x.tickSizeOuter=function(y){return arguments.length?(s=+y,x):s},x.tickPadding=function(y){return arguments.length?(D=+y,x):D},x.offset=function(y){return arguments.length?(S=+y,x):S},x}function rr(e){return tn(Xe,e)}function ir(e){return tn(gt,e)}const ar=Math.PI/180,sr=180/Math.PI,Ke=18,nn=.96422,rn=1,an=.82521,sn=4/29,Me=6/29,on=3*Me*Me,or=Me*Me*Me;function cn(e){if(e instanceof le)return new le(e.l,e.a,e.b,e.opacity);if(e instanceof he)return ln(e);e instanceof Jt||(e=Sn(e));var t=lt(e.r),n=lt(e.g),r=lt(e.b),i=st((.2225045*t+.7168786*n+.0606169*r)/rn),a,s;return t===n&&n===r?a=s=i:(a=st((.4360747*t+.3850649*n+.1430804*r)/nn),s=st((.0139322*t+.0971045*n+.7141733*r)/an)),new le(116*i-16,500*(a-i),200*(i-s),e.opacity)}function cr(e,t,n,r){return arguments.length===1?cn(e):new le(e,t,n,r??1)}function le(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}Kt(le,cr,$t(en,{brighter(e){return new le(this.l+Ke*(e??1),this.a,this.b,this.opacity)},darker(e){return new le(this.l-Ke*(e??1),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return t=nn*ot(t),e=rn*ot(e),n=an*ot(n),new Jt(ct(3.1338561*t-1.6168667*e-.4906146*n),ct(-.9787684*t+1.9161415*e+.033454*n),ct(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}}));function st(e){return e>or?Math.pow(e,1/3):e/on+sn}function ot(e){return e>Me?e*e*e:on*(e-sn)}function ct(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function lt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function lr(e){if(e instanceof he)return new he(e.h,e.c,e.l,e.opacity);if(e instanceof le||(e=cn(e)),e.a===0&&e.b===0)return new he(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*sr;return new he(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function yt(e,t,n,r){return arguments.length===1?lr(e):new he(e,t,n,r??1)}function he(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function ln(e){if(isNaN(e.h))return new le(e.l,0,0,e.opacity);var t=e.h*ar;return new le(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Kt(he,yt,$t(en,{brighter(e){return new he(this.h,this.c,this.l+Ke*(e??1),this.opacity)},darker(e){return new he(this.h,this.c,this.l-Ke*(e??1),this.opacity)},rgb(){return ln(this).rgb()}}));function ur(e){return function(t,n){var r=e((t=yt(t)).h,(n=yt(n)).h),i=it(t.c,n.c),a=it(t.l,n.l),s=it(t.opacity,n.opacity);return function(D){return t.h=r(D),t.c=i(D),t.l=a(D),t.opacity=s(D),t+""}}}const fr=ur(Fn);function dr(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],a=e[r],s;return a<i&&(s=n,n=r,r=s,s=i,i=a,a=s),e[n]=t.floor(i),e[r]=t.ceil(a),e}const ut=new Date,ft=new Date;function G(e,t,n,r){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const s=i(a),D=i.ceil(a);return a-s<D-a?s:D},i.offset=(a,s)=>(t(a=new Date(+a),s==null?1:Math.floor(s)),a),i.range=(a,s,D)=>{const S=[];if(a=i.ceil(a),D=D==null?1:Math.floor(D),!(a<s)||!(D>0))return S;let k;do S.push(k=new Date(+a)),t(a,D),e(a);while(k<a&&a<s);return S},i.filter=a=>G(s=>{if(s>=s)for(;e(s),!a(s);)s.setTime(s-1)},(s,D)=>{if(s>=s)if(D<0)for(;++D<=0;)for(;t(s,-1),!a(s););else for(;--D>=0;)for(;t(s,1),!a(s););}),n&&(i.count=(a,s)=>(ut.setTime(+a),ft.setTime(+s),e(ut),e(ft),Math.floor(n(ut,ft))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(r?s=>r(s)%a===0:s=>i.count(0,s)%a===0):i)),i}const Fe=G(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Fe.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?G(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Fe);Fe.range;const me=1e3,ae=me*60,ge=ae*60,ye=ge*24,bt=ye*7,Yt=ye*30,dt=ye*365,pe=G(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*me)},(e,t)=>(t-e)/me,e=>e.getUTCSeconds());pe.range;const We=G(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*me)},(e,t)=>{e.setTime(+e+t*ae)},(e,t)=>(t-e)/ae,e=>e.getMinutes());We.range;const hr=G(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*ae)},(e,t)=>(t-e)/ae,e=>e.getUTCMinutes());hr.range;const Ye=G(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*me-e.getMinutes()*ae)},(e,t)=>{e.setTime(+e+t*ge)},(e,t)=>(t-e)/ge,e=>e.getHours());Ye.range;const mr=G(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*ge)},(e,t)=>(t-e)/ge,e=>e.getUTCHours());mr.range;const ve=G(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*ae)/ye,e=>e.getDate()-1);ve.range;const xt=G(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ye,e=>e.getUTCDate()-1);xt.range;const gr=G(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ye,e=>Math.floor(e/ye));gr.range;function xe(e){return G(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*ae)/bt)}const He=xe(0),Oe=xe(1),un=xe(2),fn=xe(3),Te=xe(4),dn=xe(5),hn=xe(6);He.range;Oe.range;un.range;fn.range;Te.range;dn.range;hn.range;function we(e){return G(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/bt)}const mn=we(0),$e=we(1),yr=we(2),kr=we(3),Ue=we(4),pr=we(5),vr=we(6);mn.range;$e.range;yr.range;kr.range;Ue.range;pr.range;vr.range;const Ne=G(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());Ne.range;const Tr=G(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());Tr.range;const ke=G(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());ke.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:G(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});ke.range;const be=G(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());be.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:G(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});be.range;function br(e,t,n,r,i,a){const s=[[pe,1,me],[pe,5,5*me],[pe,15,15*me],[pe,30,30*me],[a,1,ae],[a,5,5*ae],[a,15,15*ae],[a,30,30*ae],[i,1,ge],[i,3,3*ge],[i,6,6*ge],[i,12,12*ge],[r,1,ye],[r,2,2*ye],[n,1,bt],[t,1,Yt],[t,3,3*Yt],[e,1,dt]];function D(k,p,A){const x=p<k;x&&([k,p]=[p,k]);const y=A&&typeof A.range=="function"?A:S(k,p,A),R=y?y.range(k,+p+1):[];return x?R.reverse():R}function S(k,p,A){const x=Math.abs(p-k)/A,y=Bn(([,,te])=>te).right(s,x);if(y===s.length)return e.every(Lt(k/dt,p/dt,A));if(y===0)return Fe.every(Math.max(Lt(k,p,A),1));const[R,I]=s[x/s[y-1][2]<s[y][2]/x?y-1:y];return R.every(I)}return[D,S]}const[xr,wr]=br(ke,Ne,He,ve,Ye,We);function ht(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function mt(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Ie(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function Cr(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,s=e.shortDays,D=e.months,S=e.shortMonths,k=Ae(i),p=Le(i),A=Ae(a),x=Le(a),y=Ae(s),R=Le(s),I=Ae(D),te=Le(D),re=Ae(S),ne=Le(S),Z={a:h,A:T,b:c,B:l,c:null,d:Rt,e:Rt,f:Xr,g:ri,G:ai,H:Br,I:qr,j:Zr,L:gn,m:jr,M:Gr,p:o,q:V,Q:qt,s:Zt,S:Qr,u:Jr,U:Kr,V:$r,w:ei,W:ti,x:null,X:null,y:ni,Y:ii,Z:si,"%":Bt},X={a:Y,A:H,b:Q,B:z,c:null,d:zt,e:zt,f:ui,g:Ti,G:xi,H:oi,I:ci,j:li,L:kn,m:fi,M:di,p:B,q:se,Q:qt,s:Zt,S:hi,u:mi,U:gi,V:yi,w:ki,W:pi,x:null,X:null,y:vi,Y:bi,Z:wi,"%":Bt},$={a:_,A:M,b,B:L,c:d,d:Vt,e:Vt,f:Vr,g:Ht,G:Nt,H:Pt,I:Pt,j:Yr,L:Hr,m:Wr,M:Or,p:U,q:Lr,Q:Rr,s:zr,S:Nr,u:Fr,U:Ur,V:Er,w:Sr,W:Ir,x:m,X:v,y:Ht,Y:Nt,Z:Ar,"%":Pr};Z.x=w(n,Z),Z.X=w(r,Z),Z.c=w(t,Z),X.x=w(n,X),X.X=w(r,X),X.c=w(t,X);function w(g,E){return function(W){var u=[],K=-1,F=0,q=g.length,P,oe,ue;for(W instanceof Date||(W=new Date(+W));++K<q;)g.charCodeAt(K)===37&&(u.push(g.slice(F,K)),(oe=Ot[P=g.charAt(++K)])!=null?P=g.charAt(++K):oe=P==="e"?" ":"0",(ue=E[P])&&(P=ue(W,oe)),u.push(P),F=K+1);return u.push(g.slice(F,K)),u.join("")}}function N(g,E){return function(W){var u=Ie(1900,void 0,1),K=C(u,g,W+="",0),F,q;if(K!=W.length)return null;if("Q"in u)return new Date(u.Q);if("s"in u)return new Date(u.s*1e3+("L"in u?u.L:0));if(E&&!("Z"in u)&&(u.Z=0),"p"in u&&(u.H=u.H%12+u.p*12),u.m===void 0&&(u.m="q"in u?u.q:0),"V"in u){if(u.V<1||u.V>53)return null;"w"in u||(u.w=1),"Z"in u?(F=mt(Ie(u.y,0,1)),q=F.getUTCDay(),F=q>4||q===0?$e.ceil(F):$e(F),F=xt.offset(F,(u.V-1)*7),u.y=F.getUTCFullYear(),u.m=F.getUTCMonth(),u.d=F.getUTCDate()+(u.w+6)%7):(F=ht(Ie(u.y,0,1)),q=F.getDay(),F=q>4||q===0?Oe.ceil(F):Oe(F),F=ve.offset(F,(u.V-1)*7),u.y=F.getFullYear(),u.m=F.getMonth(),u.d=F.getDate()+(u.w+6)%7)}else("W"in u||"U"in u)&&("w"in u||(u.w="u"in u?u.u%7:"W"in u?1:0),q="Z"in u?mt(Ie(u.y,0,1)).getUTCDay():ht(Ie(u.y,0,1)).getDay(),u.m=0,u.d="W"in u?(u.w+6)%7+u.W*7-(q+5)%7:u.w+u.U*7-(q+6)%7);return"Z"in u?(u.H+=u.Z/100|0,u.M+=u.Z%100,mt(u)):ht(u)}}function C(g,E,W,u){for(var K=0,F=E.length,q=W.length,P,oe;K<F;){if(u>=q)return-1;if(P=E.charCodeAt(K++),P===37){if(P=E.charAt(K++),oe=$[P in Ot?E.charAt(K++):P],!oe||(u=oe(g,W,u))<0)return-1}else if(P!=W.charCodeAt(u++))return-1}return u}function U(g,E,W){var u=k.exec(E.slice(W));return u?(g.p=p.get(u[0].toLowerCase()),W+u[0].length):-1}function _(g,E,W){var u=y.exec(E.slice(W));return u?(g.w=R.get(u[0].toLowerCase()),W+u[0].length):-1}function M(g,E,W){var u=A.exec(E.slice(W));return u?(g.w=x.get(u[0].toLowerCase()),W+u[0].length):-1}function b(g,E,W){var u=re.exec(E.slice(W));return u?(g.m=ne.get(u[0].toLowerCase()),W+u[0].length):-1}function L(g,E,W){var u=I.exec(E.slice(W));return u?(g.m=te.get(u[0].toLowerCase()),W+u[0].length):-1}function d(g,E,W){return C(g,t,E,W)}function m(g,E,W){return C(g,n,E,W)}function v(g,E,W){return C(g,r,E,W)}function h(g){return s[g.getDay()]}function T(g){return a[g.getDay()]}function c(g){return S[g.getMonth()]}function l(g){return D[g.getMonth()]}function o(g){return i[+(g.getHours()>=12)]}function V(g){return 1+~~(g.getMonth()/3)}function Y(g){return s[g.getUTCDay()]}function H(g){return a[g.getUTCDay()]}function Q(g){return S[g.getUTCMonth()]}function z(g){return D[g.getUTCMonth()]}function B(g){return i[+(g.getUTCHours()>=12)]}function se(g){return 1+~~(g.getUTCMonth()/3)}return{format:function(g){var E=w(g+="",Z);return E.toString=function(){return g},E},parse:function(g){var E=N(g+="",!1);return E.toString=function(){return g},E},utcFormat:function(g){var E=w(g+="",X);return E.toString=function(){return g},E},utcParse:function(g){var E=N(g+="",!0);return E.toString=function(){return g},E}}}var Ot={"-":"",_:" ",0:"0"},J=/^\s*\d+/,Dr=/^%/,_r=/[\\^$*+?|[\]().{}]/g;function O(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",a=i.length;return r+(a<n?new Array(n-a+1).join(t)+i:i)}function Mr(e){return e.replace(_r,"\\$&")}function Ae(e){return new RegExp("^(?:"+e.map(Mr).join("|")+")","i")}function Le(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function Sr(e,t,n){var r=J.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Fr(e,t,n){var r=J.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Ur(e,t,n){var r=J.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Er(e,t,n){var r=J.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Ir(e,t,n){var r=J.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Nt(e,t,n){var r=J.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Ht(e,t,n){var r=J.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Ar(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Lr(e,t,n){var r=J.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function Wr(e,t,n){var r=J.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Vt(e,t,n){var r=J.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Yr(e,t,n){var r=J.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Pt(e,t,n){var r=J.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Or(e,t,n){var r=J.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Nr(e,t,n){var r=J.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Hr(e,t,n){var r=J.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Vr(e,t,n){var r=J.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Pr(e,t,n){var r=Dr.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Rr(e,t,n){var r=J.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function zr(e,t,n){var r=J.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function Rt(e,t){return O(e.getDate(),t,2)}function Br(e,t){return O(e.getHours(),t,2)}function qr(e,t){return O(e.getHours()%12||12,t,2)}function Zr(e,t){return O(1+ve.count(ke(e),e),t,3)}function gn(e,t){return O(e.getMilliseconds(),t,3)}function Xr(e,t){return gn(e,t)+"000"}function jr(e,t){return O(e.getMonth()+1,t,2)}function Gr(e,t){return O(e.getMinutes(),t,2)}function Qr(e,t){return O(e.getSeconds(),t,2)}function Jr(e){var t=e.getDay();return t===0?7:t}function Kr(e,t){return O(He.count(ke(e)-1,e),t,2)}function yn(e){var t=e.getDay();return t>=4||t===0?Te(e):Te.ceil(e)}function $r(e,t){return e=yn(e),O(Te.count(ke(e),e)+(ke(e).getDay()===4),t,2)}function ei(e){return e.getDay()}function ti(e,t){return O(Oe.count(ke(e)-1,e),t,2)}function ni(e,t){return O(e.getFullYear()%100,t,2)}function ri(e,t){return e=yn(e),O(e.getFullYear()%100,t,2)}function ii(e,t){return O(e.getFullYear()%1e4,t,4)}function ai(e,t){var n=e.getDay();return e=n>=4||n===0?Te(e):Te.ceil(e),O(e.getFullYear()%1e4,t,4)}function si(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+O(t/60|0,"0",2)+O(t%60,"0",2)}function zt(e,t){return O(e.getUTCDate(),t,2)}function oi(e,t){return O(e.getUTCHours(),t,2)}function ci(e,t){return O(e.getUTCHours()%12||12,t,2)}function li(e,t){return O(1+xt.count(be(e),e),t,3)}function kn(e,t){return O(e.getUTCMilliseconds(),t,3)}function ui(e,t){return kn(e,t)+"000"}function fi(e,t){return O(e.getUTCMonth()+1,t,2)}function di(e,t){return O(e.getUTCMinutes(),t,2)}function hi(e,t){return O(e.getUTCSeconds(),t,2)}function mi(e){var t=e.getUTCDay();return t===0?7:t}function gi(e,t){return O(mn.count(be(e)-1,e),t,2)}function pn(e){var t=e.getUTCDay();return t>=4||t===0?Ue(e):Ue.ceil(e)}function yi(e,t){return e=pn(e),O(Ue.count(be(e),e)+(be(e).getUTCDay()===4),t,2)}function ki(e){return e.getUTCDay()}function pi(e,t){return O($e.count(be(e)-1,e),t,2)}function vi(e,t){return O(e.getUTCFullYear()%100,t,2)}function Ti(e,t){return e=pn(e),O(e.getUTCFullYear()%100,t,2)}function bi(e,t){return O(e.getUTCFullYear()%1e4,t,4)}function xi(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Ue(e):Ue.ceil(e),O(e.getUTCFullYear()%1e4,t,4)}function wi(){return"+0000"}function Bt(){return"%"}function qt(e){return+e}function Zt(e){return Math.floor(+e/1e3)}var De,et;Ci({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 Ci(e){return De=Cr(e),et=De.format,De.parse,De.utcFormat,De.utcParse,De}function Di(e){return new Date(e)}function _i(e){return e instanceof Date?+e:+new Date(+e)}function vn(e,t,n,r,i,a,s,D,S,k){var p=qn(),A=p.invert,x=p.domain,y=k(".%L"),R=k(":%S"),I=k("%I:%M"),te=k("%I %p"),re=k("%a %d"),ne=k("%b %d"),Z=k("%B"),X=k("%Y");function $(w){return(S(w)<w?y:D(w)<w?R:s(w)<w?I:a(w)<w?te:r(w)<w?i(w)<w?re:ne:n(w)<w?Z:X)(w)}return p.invert=function(w){return new Date(A(w))},p.domain=function(w){return arguments.length?x(Array.from(w,_i)):x().map(Di)},p.ticks=function(w){var N=x();return e(N[0],N[N.length-1],w??10)},p.tickFormat=function(w,N){return N==null?$:k(N)},p.nice=function(w){var N=x();return(!w||typeof w.range!="function")&&(w=t(N[0],N[N.length-1],w??10)),w?x(dr(N,w)):p},p.copy=function(){return Zn(p,vn(e,t,n,r,i,a,s,D,S,k))},p}function Mi(){return jn.apply(vn(xr,wr,ke,Ne,He,ve,Ye,We,pe,et).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var je={exports:{}},Si=je.exports,Xt;function Fi(){return Xt||(Xt=1,(function(e,t){(function(n,r){e.exports=r()})(Si,(function(){var n="day";return function(r,i,a){var s=function(k){return k.add(4-k.isoWeekday(),n)},D=i.prototype;D.isoWeekYear=function(){return s(this).year()},D.isoWeek=function(k){if(!this.$utils().u(k))return this.add(7*(k-this.isoWeek()),n);var p,A,x,y,R=s(this),I=(p=this.isoWeekYear(),A=this.$u,x=(A?a.utc:a)().year(p).startOf("year"),y=4-x.isoWeekday(),x.isoWeekday()>4&&(y+=7),x.add(y,n));return R.diff(I,"week")+1},D.isoWeekday=function(k){return this.$utils().u(k)?this.day()||7:this.day(this.day()%7?k:k-7)};var S=D.startOf;D.startOf=function(k,p){var A=this.$utils(),x=!!A.u(p)||p;return A.p(k)==="isoweek"?x?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):S.bind(this)(k,p)}}}))})(je)),je.exports}var Ui=Fi();const Ei=Un(Ui);var kt=(function(){var e=f(function(L,d,m,v){for(m=m||{},v=L.length;v--;m[L[v]]=d);return m},"o"),t=[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],s=[1,30],D=[1,31],S=[1,32],k=[1,33],p=[1,34],A=[1,9],x=[1,10],y=[1,11],R=[1,12],I=[1,13],te=[1,14],re=[1,15],ne=[1,16],Z=[1,19],X=[1,20],$=[1,21],w=[1,22],N=[1,23],C=[1,25],U=[1,35],_={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(d,m,v,h,T,c,l){var o=c.length-1;switch(T){case 1:return c[o-1];case 2:this.$=[];break;case 3:c[o-1].push(c[o]),this.$=c[o-1];break;case 4:case 5:this.$=c[o];break;case 6:case 7:this.$=[];break;case 8:h.setWeekday("monday");break;case 9:h.setWeekday("tuesday");break;case 10:h.setWeekday("wednesday");break;case 11:h.setWeekday("thursday");break;case 12:h.setWeekday("friday");break;case 13:h.setWeekday("saturday");break;case 14:h.setWeekday("sunday");break;case 15:h.setWeekend("friday");break;case 16:h.setWeekend("saturday");break;case 17:h.setDateFormat(c[o].substr(11)),this.$=c[o].substr(11);break;case 18:h.enableInclusiveEndDates(),this.$=c[o].substr(18);break;case 19:h.TopAxis(),this.$=c[o].substr(8);break;case 20:h.setAxisFormat(c[o].substr(11)),this.$=c[o].substr(11);break;case 21:h.setTickInterval(c[o].substr(13)),this.$=c[o].substr(13);break;case 22:h.setExcludes(c[o].substr(9)),this.$=c[o].substr(9);break;case 23:h.setIncludes(c[o].substr(9)),this.$=c[o].substr(9);break;case 24:h.setTodayMarker(c[o].substr(12)),this.$=c[o].substr(12);break;case 27:h.setDiagramTitle(c[o].substr(6)),this.$=c[o].substr(6);break;case 28:this.$=c[o].trim(),h.setAccTitle(this.$);break;case 29:case 30:this.$=c[o].trim(),h.setAccDescription(this.$);break;case 31:h.addSection(c[o].substr(8)),this.$=c[o].substr(8);break;case 33:h.addTask(c[o-1],c[o]),this.$="task";break;case 34:this.$=c[o-1],h.setClickEvent(c[o-1],c[o],null);break;case 35:this.$=c[o-2],h.setClickEvent(c[o-2],c[o-1],c[o]);break;case 36:this.$=c[o-2],h.setClickEvent(c[o-2],c[o-1],null),h.setLink(c[o-2],c[o]);break;case 37:this.$=c[o-3],h.setClickEvent(c[o-3],c[o-2],c[o-1]),h.setLink(c[o-3],c[o]);break;case 38:this.$=c[o-2],h.setClickEvent(c[o-2],c[o],null),h.setLink(c[o-2],c[o-1]);break;case 39:this.$=c[o-3],h.setClickEvent(c[o-3],c[o-1],c[o]),h.setLink(c[o-3],c[o-2]);break;case 40:this.$=c[o-1],h.setLink(c[o-1],c[o]);break;case 41:case 47:this.$=c[o-1]+" "+c[o];break;case 42:case 43:case 45:this.$=c[o-2]+" "+c[o-1]+" "+c[o];break;case 44:case 46:this.$=c[o-3]+" "+c[o-2]+" "+c[o-1]+" "+c[o];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(t,[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:s,17:D,18:S,19:18,20:k,21:p,22:A,23:x,24:y,25:R,26:I,27:te,28:re,29:ne,30:Z,31:X,33:$,35:w,36:N,37:24,38:C,40:U},e(t,[2,7],{1:[2,1]}),e(t,[2,3]),{9:36,11:17,12:n,13:r,14:i,15:a,16:s,17:D,18:S,19:18,20:k,21:p,22:A,23:x,24:y,25:R,26:I,27:te,28:re,29:ne,30:Z,31:X,33:$,35:w,36:N,37:24,38:C,40:U},e(t,[2,5]),e(t,[2,6]),e(t,[2,17]),e(t,[2,18]),e(t,[2,19]),e(t,[2,20]),e(t,[2,21]),e(t,[2,22]),e(t,[2,23]),e(t,[2,24]),e(t,[2,25]),e(t,[2,26]),e(t,[2,27]),{32:[1,37]},{34:[1,38]},e(t,[2,30]),e(t,[2,31]),e(t,[2,32]),{39:[1,39]},e(t,[2,8]),e(t,[2,9]),e(t,[2,10]),e(t,[2,11]),e(t,[2,12]),e(t,[2,13]),e(t,[2,14]),e(t,[2,15]),e(t,[2,16]),{41:[1,40],43:[1,41]},e(t,[2,4]),e(t,[2,28]),e(t,[2,29]),e(t,[2,33]),e(t,[2,34],{42:[1,42],43:[1,43]}),e(t,[2,40],{41:[1,44]}),e(t,[2,35],{43:[1,45]}),e(t,[2,36]),e(t,[2,38],{42:[1,46]}),e(t,[2,37]),e(t,[2,39])],defaultActions:{},parseError:f(function(d,m){if(m.recoverable)this.trace(d);else{var v=new Error(d);throw v.hash=m,v}},"parseError"),parse:f(function(d){var m=this,v=[0],h=[],T=[null],c=[],l=this.table,o="",V=0,Y=0,H=2,Q=1,z=c.slice.call(arguments,1),B=Object.create(this.lexer),se={yy:{}};for(var g in this.yy)Object.prototype.hasOwnProperty.call(this.yy,g)&&(se.yy[g]=this.yy[g]);B.setInput(d,se.yy),se.yy.lexer=B,se.yy.parser=this,typeof B.yylloc>"u"&&(B.yylloc={});var E=B.yylloc;c.push(E);var W=B.options&&B.options.ranges;typeof se.yy.parseError=="function"?this.parseError=se.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function u(ie){v.length=v.length-2*ie,T.length=T.length-ie,c.length=c.length-ie}f(u,"popStack");function K(){var ie;return ie=h.pop()||B.lex()||Q,typeof ie!="number"&&(ie instanceof Array&&(h=ie,ie=h.pop()),ie=m.symbols_[ie]||ie),ie}f(K,"lex");for(var F,q,P,oe,ue={},ze,fe,At,Be;;){if(q=v[v.length-1],this.defaultActions[q]?P=this.defaultActions[q]:((F===null||typeof F>"u")&&(F=K()),P=l[q]&&l[q][F]),typeof P>"u"||!P.length||!P[0]){var rt="";Be=[];for(ze in l[q])this.terminals_[ze]&&ze>H&&Be.push("'"+this.terminals_[ze]+"'");B.showPosition?rt="Parse error on line "+(V+1)+`:
|
|
`+B.showPosition()+`
|
|
Expecting `+Be.join(", ")+", got '"+(this.terminals_[F]||F)+"'":rt="Parse error on line "+(V+1)+": Unexpected "+(F==Q?"end of input":"'"+(this.terminals_[F]||F)+"'"),this.parseError(rt,{text:B.match,token:this.terminals_[F]||F,line:B.yylineno,loc:E,expected:Be})}if(P[0]instanceof Array&&P.length>1)throw new Error("Parse Error: multiple actions possible at state: "+q+", token: "+F);switch(P[0]){case 1:v.push(F),T.push(B.yytext),c.push(B.yylloc),v.push(P[1]),F=null,Y=B.yyleng,o=B.yytext,V=B.yylineno,E=B.yylloc;break;case 2:if(fe=this.productions_[P[1]][1],ue.$=T[T.length-fe],ue._$={first_line:c[c.length-(fe||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(fe||1)].first_column,last_column:c[c.length-1].last_column},W&&(ue._$.range=[c[c.length-(fe||1)].range[0],c[c.length-1].range[1]]),oe=this.performAction.apply(ue,[o,Y,V,se.yy,P[1],T,c].concat(z)),typeof oe<"u")return oe;fe&&(v=v.slice(0,-1*fe*2),T=T.slice(0,-1*fe),c=c.slice(0,-1*fe)),v.push(this.productions_[P[1]][0]),T.push(ue.$),c.push(ue._$),At=l[v[v.length-2]][v[v.length-1]],v.push(At);break;case 3:return!0}}return!0},"parse")},M=(function(){var L={EOF:1,parseError:f(function(m,v){if(this.yy.parser)this.yy.parser.parseError(m,v);else throw new Error(m)},"parseError"),setInput:f(function(d,m){return this.yy=m||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]),this.offset=0,this},"setInput"),input:f(function(){var d=this._input[0];this.yytext+=d,this.yyleng++,this.offset++,this.match+=d,this.matched+=d;var m=d.match(/(?:\r\n?|\n).*/g);return m?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),d},"input"),unput:f(function(d){var m=d.length,v=d.split(/(?:\r\n?|\n)/g);this._input=d+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-m),this.offset-=m;var h=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 T=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===h.length?this.yylloc.first_column:0)+h[h.length-v.length].length-v[0].length:this.yylloc.first_column-m},this.options.ranges&&(this.yylloc.range=[T[0],T[0]+this.yyleng-m]),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(d){this.unput(this.match.slice(d))},"less"),pastInput:f(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:f(function(){var d=this.match;return d.length<20&&(d+=this._input.substr(0,20-d.length)),(d.substr(0,20)+(d.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:f(function(){var d=this.pastInput(),m=new Array(d.length+1).join("-");return d+this.upcomingInput()+`
|
|
`+m+"^"},"showPosition"),test_match:f(function(d,m){var v,h,T;if(this.options.backtrack_lexer&&(T={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&&(T.yylloc.range=this.yylloc.range.slice(0))),h=d[0].match(/(?:\r\n?|\n).*/g),h&&(this.yylineno+=h.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:h?h[h.length-1].length-h[h.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]),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,m,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),v)return v;if(this._backtrack){for(var c in T)this[c]=T[c];return!1}return!1},"test_match"),next:f(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var d,m,v,h;this._more||(this.yytext="",this.match="");for(var T=this._currentRules(),c=0;c<T.length;c++)if(v=this._input.match(this.rules[T[c]]),v&&(!m||v[0].length>m[0].length)){if(m=v,h=c,this.options.backtrack_lexer){if(d=this.test_match(v,T[c]),d!==!1)return d;if(this._backtrack){m=!1;continue}else return!1}else if(!this.options.flex)break}return m?(d=this.test_match(m,T[h]),d!==!1?d:!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 m=this.next();return m||this.lex()},"lex"),begin:f(function(m){this.conditionStack.push(m)},"begin"),popState:f(function(){var m=this.conditionStack.length-1;return m>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(m){return m=this.conditionStack.length-1-Math.abs(m||0),m>=0?this.conditionStack[m]:"INITIAL"},"topState"),pushState:f(function(m){this.begin(m)},"pushState"),stateStackSize:f(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:f(function(m,v,h,T){switch(h){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 L})();_.lexer=M;function b(){this.yy={}}return f(b,"Parser"),b.prototype=_,_.Parser=b,new b})();kt.parser=kt;var Ii=kt;ee.extend(Ei);ee.extend(Rn);ee.extend(zn);var jt={friday:5,saturday:6},ce="",wt="",Ct=void 0,Dt="",Ve=[],Pe=[],_t=new Map,Mt=[],tt=[],Ee="",St="",Tn=["active","done","crit","milestone","vert"],Ft=[],Re=!1,Ut=!1,Et="sunday",nt="saturday",pt=0,Ai=f(function(){Mt=[],tt=[],Ee="",Ft=[],Ge=0,Tt=void 0,Qe=void 0,j=[],ce="",wt="",St="",Ct=void 0,Dt="",Ve=[],Pe=[],Re=!1,Ut=!1,pt=0,_t=new Map,Vn(),Et="sunday",nt="saturday"},"clear"),Li=f(function(e){wt=e},"setAxisFormat"),Wi=f(function(){return wt},"getAxisFormat"),Yi=f(function(e){Ct=e},"setTickInterval"),Oi=f(function(){return Ct},"getTickInterval"),Ni=f(function(e){Dt=e},"setTodayMarker"),Hi=f(function(){return Dt},"getTodayMarker"),Vi=f(function(e){ce=e},"setDateFormat"),Pi=f(function(){Re=!0},"enableInclusiveEndDates"),Ri=f(function(){return Re},"endDatesAreInclusive"),zi=f(function(){Ut=!0},"enableTopAxis"),Bi=f(function(){return Ut},"topAxisEnabled"),qi=f(function(e){St=e},"setDisplayMode"),Zi=f(function(){return St},"getDisplayMode"),Xi=f(function(){return ce},"getDateFormat"),ji=f(function(e){Ve=e.toLowerCase().split(/[\s,]+/)},"setIncludes"),Gi=f(function(){return Ve},"getIncludes"),Qi=f(function(e){Pe=e.toLowerCase().split(/[\s,]+/)},"setExcludes"),Ji=f(function(){return Pe},"getExcludes"),Ki=f(function(){return _t},"getLinks"),$i=f(function(e){Ee=e,Mt.push(e)},"addSection"),ea=f(function(){return Mt},"getSections"),ta=f(function(){let e=Gt();const t=10;let n=0;for(;!e&&n<t;)e=Gt(),n++;return tt=j,tt},"getTasks"),bn=f(function(e,t,n,r){const i=e.format(t.trim()),a=e.format("YYYY-MM-DD");return r.includes(i)||r.includes(a)?!1:n.includes("weekends")&&(e.isoWeekday()===jt[nt]||e.isoWeekday()===jt[nt]+1)||n.includes(e.format("dddd").toLowerCase())?!0:n.includes(i)||n.includes(a)},"isInvalidDate"),na=f(function(e){Et=e},"setWeekday"),ra=f(function(){return Et},"getWeekday"),ia=f(function(e){nt=e},"setWeekend"),xn=f(function(e,t,n,r){if(!n.length||e.manualEndTime)return;let i;e.startTime instanceof Date?i=ee(e.startTime):i=ee(e.startTime,t,!0),i=i.add(1,"d");let a;e.endTime instanceof Date?a=ee(e.endTime):a=ee(e.endTime,t,!0);const[s,D]=aa(i,a,t,n,r);e.endTime=s.toDate(),e.renderEndTime=D},"checkTaskDates"),aa=f(function(e,t,n,r,i){let a=!1,s=null;for(;e<=t;)a||(s=t.toDate()),a=bn(e,n,r,i),a&&(t=t.add(1,"d")),e=e.add(1,"d");return[t,s]},"fixTaskDates"),vt=f(function(e,t,n){if(n=n.trim(),(t.trim()==="x"||t.trim()==="X")&&/^\d+$/.test(n))return new Date(Number(n));const i=/^after\s+(?<ids>[\d\w- ]+)/.exec(n);if(i!==null){let s=null;for(const S of i.groups.ids.split(" ")){let k=Ce(S);k!==void 0&&(!s||k.endTime>s.endTime)&&(s=k)}if(s)return s.endTime;const D=new Date;return D.setHours(0,0,0,0),D}let a=ee(n,t.trim(),!0);if(a.isValid())return a.toDate();{Je.debug("Invalid date:"+n),Je.debug("With date format:"+t.trim());const s=new Date(n);if(s===void 0||isNaN(s.getTime())||s.getFullYear()<-1e4||s.getFullYear()>1e4)throw new Error("Invalid date:"+n);return s}},"getStartDate"),wn=f(function(e){const t=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(e.trim());return t!==null?[Number.parseFloat(t[1]),t[2]]:[NaN,"ms"]},"parseDuration"),Cn=f(function(e,t,n,r=!1){n=n.trim();const a=/^until\s+(?<ids>[\d\w- ]+)/.exec(n);if(a!==null){let p=null;for(const x of a.groups.ids.split(" ")){let y=Ce(x);y!==void 0&&(!p||y.startTime<p.startTime)&&(p=y)}if(p)return p.startTime;const A=new Date;return A.setHours(0,0,0,0),A}let s=ee(n,t.trim(),!0);if(s.isValid())return r&&(s=s.add(1,"d")),s.toDate();let D=ee(e);const[S,k]=wn(n);if(!Number.isNaN(S)){const p=D.add(S,k);p.isValid()&&(D=p)}return D.toDate()},"getEndDate"),Ge=0,Se=f(function(e){return e===void 0?(Ge=Ge+1,"task"+Ge):e},"parseId"),sa=f(function(e,t){let n;t.substr(0,1)===":"?n=t.substr(1,t.length):n=t;const r=n.split(","),i={};It(r,i,Tn);for(let s=0;s<r.length;s++)r[s]=r[s].trim();let a="";switch(r.length){case 1:i.id=Se(),i.startTime=e.endTime,a=r[0];break;case 2:i.id=Se(),i.startTime=vt(void 0,ce,r[0]),a=r[1];break;case 3:i.id=Se(r[0]),i.startTime=vt(void 0,ce,r[1]),a=r[2];break}return a&&(i.endTime=Cn(i.startTime,ce,a,Re),i.manualEndTime=ee(a,"YYYY-MM-DD",!0).isValid(),xn(i,ce,Pe,Ve)),i},"compileData"),oa=f(function(e,t){let n;t.substr(0,1)===":"?n=t.substr(1,t.length):n=t;const r=n.split(","),i={};It(r,i,Tn);for(let a=0;a<r.length;a++)r[a]=r[a].trim();switch(r.length){case 1:i.id=Se(),i.startTime={type:"prevTaskEnd",id:e},i.endTime={data:r[0]};break;case 2:i.id=Se(),i.startTime={type:"getStartDate",startData:r[0]},i.endTime={data:r[1]};break;case 3:i.id=Se(r[0]),i.startTime={type:"getStartDate",startData:r[1]},i.endTime={data:r[2]};break}return i},"parseData"),Tt,Qe,j=[],Dn={},ca=f(function(e,t){const n={section:Ee,type:Ee,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:t},task:e,classes:[]},r=oa(Qe,t);n.raw.startTime=r.startTime,n.raw.endTime=r.endTime,n.id=r.id,n.prevTaskId=Qe,n.active=r.active,n.done=r.done,n.crit=r.crit,n.milestone=r.milestone,n.vert=r.vert,n.order=pt,pt++;const i=j.push(n);Qe=n.id,Dn[n.id]=i-1},"addTask"),Ce=f(function(e){const t=Dn[e];return j[t]},"findTaskById"),la=f(function(e,t){const n={section:Ee,type:Ee,description:e,task:e,classes:[]},r=sa(Tt,t);n.startTime=r.startTime,n.endTime=r.endTime,n.id=r.id,n.active=r.active,n.done=r.done,n.crit=r.crit,n.milestone=r.milestone,n.vert=r.vert,Tt=n,tt.push(n)},"addTaskOrg"),Gt=f(function(){const e=f(function(n){const r=j[n];let i="";switch(j[n].raw.startTime.type){case"prevTaskEnd":{const a=Ce(r.prevTaskId);r.startTime=a.endTime;break}case"getStartDate":i=vt(void 0,ce,j[n].raw.startTime.startData),i&&(j[n].startTime=i);break}return j[n].startTime&&(j[n].endTime=Cn(j[n].startTime,ce,j[n].raw.endTime.data,Re),j[n].endTime&&(j[n].processed=!0,j[n].manualEndTime=ee(j[n].raw.endTime.data,"YYYY-MM-DD",!0).isValid(),xn(j[n],ce,Pe,Ve))),j[n].processed},"compileTask");let t=!0;for(const[n,r]of j.entries())e(n),t=t&&r.processed;return t},"compileTasks"),ua=f(function(e,t){let n=t;_e().securityLevel!=="loose"&&(n=Hn.sanitizeUrl(t)),e.split(",").forEach(function(r){Ce(r)!==void 0&&(Mn(r,()=>{window.open(n,"_self")}),_t.set(r,n))}),_n(e,"clickable")},"setLink"),_n=f(function(e,t){e.split(",").forEach(function(n){let r=Ce(n);r!==void 0&&r.classes.push(t)})},"setClass"),fa=f(function(e,t,n){if(_e().securityLevel!=="loose"||t===void 0)return;let r=[];if(typeof n=="string"){r=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let a=0;a<r.length;a++){let s=r[a].trim();s.startsWith('"')&&s.endsWith('"')&&(s=s.substr(1,s.length-2)),r[a]=s}}r.length===0&&r.push(e),Ce(e)!==void 0&&Mn(e,()=>{Pn.runFunc(t,...r)})},"setClickFun"),Mn=f(function(e,t){Ft.push(function(){const n=document.querySelector(`[id="${e}"]`);n!==null&&n.addEventListener("click",function(){t()})},function(){const n=document.querySelector(`[id="${e}-text"]`);n!==null&&n.addEventListener("click",function(){t()})})},"pushFun"),da=f(function(e,t,n){e.split(",").forEach(function(r){fa(r,t,n)}),_n(e,"clickable")},"setClickEvent"),ha=f(function(e){Ft.forEach(function(t){t(e)})},"bindFunctions"),ma={getConfig:f(()=>_e().gantt,"getConfig"),clear:Ai,setDateFormat:Vi,getDateFormat:Xi,enableInclusiveEndDates:Pi,endDatesAreInclusive:Ri,enableTopAxis:zi,topAxisEnabled:Bi,setAxisFormat:Li,getAxisFormat:Wi,setTickInterval:Yi,getTickInterval:Oi,setTodayMarker:Ni,getTodayMarker:Hi,setAccTitle:Yn,getAccTitle:Wn,setDiagramTitle:Ln,getDiagramTitle:An,setDisplayMode:qi,getDisplayMode:Zi,setAccDescription:In,getAccDescription:En,addSection:$i,getSections:ea,getTasks:ta,addTask:ca,findTaskById:Ce,addTaskOrg:la,setIncludes:ji,getIncludes:Gi,setExcludes:Qi,getExcludes:Ji,setClickEvent:da,setLink:ua,getLinks:Ki,bindFunctions:ha,parseDuration:wn,isInvalidDate:bn,setWeekday:na,getWeekday:ra,setWeekend:ia};function It(e,t,n){let r=!0;for(;r;)r=!1,n.forEach(function(i){const a="^\\s*"+i+"\\s*$",s=new RegExp(a);e[0].match(s)&&(t[i]=!0,e.shift(1),r=!0)})}f(It,"getTaskTags");var ga=f(function(){Je.debug("Something is calling, setConf, remove the call")},"setConf"),Qt={monday:Oe,tuesday:un,wednesday:fn,thursday:Te,friday:dn,saturday:hn,sunday:He},ya=f((e,t)=>{let n=[...e].map(()=>-1/0),r=[...e].sort((a,s)=>a.startTime-s.startTime||a.order-s.order),i=0;for(const a of r)for(let s=0;s<n.length;s++)if(a.startTime>=n[s]){n[s]=a.endTime,a.order=s+t,s>i&&(i=s);break}return i},"getMaxIntersections"),de,ka=f(function(e,t,n,r){const i=_e().gantt,a=_e().securityLevel;let s;a==="sandbox"&&(s=qe("#i"+t));const D=a==="sandbox"?qe(s.nodes()[0].contentDocument.body):qe("body"),S=a==="sandbox"?s.nodes()[0].contentDocument:document,k=S.getElementById(t);de=k.parentElement.offsetWidth,de===void 0&&(de=1200),i.useWidth!==void 0&&(de=i.useWidth);const p=r.db.getTasks();let A=[];for(const C of p)A.push(C.type);A=N(A);const x={};let y=2*i.topPadding;if(r.db.getDisplayMode()==="compact"||i.displayMode==="compact"){const C={};for(const _ of p)C[_.section]===void 0?C[_.section]=[_]:C[_.section].push(_);let U=0;for(const _ of Object.keys(C)){const M=ya(C[_],U)+1;U+=M,y+=M*(i.barHeight+i.barGap),x[_]=M}}else{y+=p.length*(i.barHeight+i.barGap);for(const C of A)x[C]=p.filter(U=>U.type===C).length}k.setAttribute("viewBox","0 0 "+de+" "+y);const R=D.select(`[id="${t}"]`),I=Mi().domain([Qn(p,function(C){return C.startTime}),Gn(p,function(C){return C.endTime})]).rangeRound([0,de-i.leftPadding-i.rightPadding]);function te(C,U){const _=C.startTime,M=U.startTime;let b=0;return _>M?b=1:_<M&&(b=-1),b}f(te,"taskCompare"),p.sort(te),re(p,de,y),On(R,y,de,i.useMaxWidth),R.append("text").text(r.db.getDiagramTitle()).attr("x",de/2).attr("y",i.titleTopMargin).attr("class","titleText");function re(C,U,_){const M=i.barHeight,b=M+i.barGap,L=i.topPadding,d=i.leftPadding,m=Xn().domain([0,A.length]).range(["#00B9FA","#F95002"]).interpolate(fr);Z(b,L,d,U,_,C,r.db.getExcludes(),r.db.getIncludes()),X(d,L,U,_),ne(C,b,L,d,M,m,U),$(b,L),w(d,L,U,_)}f(re,"makeGantt");function ne(C,U,_,M,b,L,d){C.sort((l,o)=>l.vert===o.vert?0:l.vert?1:-1);const v=[...new Set(C.map(l=>l.order))].map(l=>C.find(o=>o.order===l));R.append("g").selectAll("rect").data(v).enter().append("rect").attr("x",0).attr("y",function(l,o){return o=l.order,o*U+_-2}).attr("width",function(){return d-i.rightPadding/2}).attr("height",U).attr("class",function(l){for(const[o,V]of A.entries())if(l.type===V)return"section section"+o%i.numberSectionStyles;return"section section0"}).enter();const h=R.append("g").selectAll("rect").data(C).enter(),T=r.db.getLinks();if(h.append("rect").attr("id",function(l){return l.id}).attr("rx",3).attr("ry",3).attr("x",function(l){return l.milestone?I(l.startTime)+M+.5*(I(l.endTime)-I(l.startTime))-.5*b:I(l.startTime)+M}).attr("y",function(l,o){return o=l.order,l.vert?i.gridLineStartPadding:o*U+_}).attr("width",function(l){return l.milestone?b:l.vert?.08*b:I(l.renderEndTime||l.endTime)-I(l.startTime)}).attr("height",function(l){return l.vert?p.length*(i.barHeight+i.barGap)+i.barHeight*2:b}).attr("transform-origin",function(l,o){return o=l.order,(I(l.startTime)+M+.5*(I(l.endTime)-I(l.startTime))).toString()+"px "+(o*U+_+.5*b).toString()+"px"}).attr("class",function(l){const o="task";let V="";l.classes.length>0&&(V=l.classes.join(" "));let Y=0;for(const[Q,z]of A.entries())l.type===z&&(Y=Q%i.numberSectionStyles);let H="";return l.active?l.crit?H+=" activeCrit":H=" active":l.done?l.crit?H=" doneCrit":H=" done":l.crit&&(H+=" crit"),H.length===0&&(H=" task"),l.milestone&&(H=" milestone "+H),l.vert&&(H=" vert "+H),H+=Y,H+=" "+V,o+H}),h.append("text").attr("id",function(l){return l.id+"-text"}).text(function(l){return l.task}).attr("font-size",i.fontSize).attr("x",function(l){let o=I(l.startTime),V=I(l.renderEndTime||l.endTime);if(l.milestone&&(o+=.5*(I(l.endTime)-I(l.startTime))-.5*b,V=o+b),l.vert)return I(l.startTime)+M;const Y=this.getBBox().width;return Y>V-o?V+Y+1.5*i.leftPadding>d?o+M-5:V+M+5:(V-o)/2+o+M}).attr("y",function(l,o){return l.vert?i.gridLineStartPadding+p.length*(i.barHeight+i.barGap)+60:(o=l.order,o*U+i.barHeight/2+(i.fontSize/2-2)+_)}).attr("text-height",b).attr("class",function(l){const o=I(l.startTime);let V=I(l.endTime);l.milestone&&(V=o+b);const Y=this.getBBox().width;let H="";l.classes.length>0&&(H=l.classes.join(" "));let Q=0;for(const[B,se]of A.entries())l.type===se&&(Q=B%i.numberSectionStyles);let z="";return l.active&&(l.crit?z="activeCritText"+Q:z="activeText"+Q),l.done?l.crit?z=z+" doneCritText"+Q:z=z+" doneText"+Q:l.crit&&(z=z+" critText"+Q),l.milestone&&(z+=" milestoneText"),l.vert&&(z+=" vertText"),Y>V-o?V+Y+1.5*i.leftPadding>d?H+" taskTextOutsideLeft taskTextOutside"+Q+" "+z:H+" taskTextOutsideRight taskTextOutside"+Q+" "+z+" width-"+Y:H+" taskText taskText"+Q+" "+z+" width-"+Y}),_e().securityLevel==="sandbox"){let l;l=qe("#i"+t);const o=l.nodes()[0].contentDocument;h.filter(function(V){return T.has(V.id)}).each(function(V){var Y=o.querySelector("#"+V.id),H=o.querySelector("#"+V.id+"-text");const Q=Y.parentNode;var z=o.createElement("a");z.setAttribute("xlink:href",T.get(V.id)),z.setAttribute("target","_top"),Q.appendChild(z),z.appendChild(Y),z.appendChild(H)})}}f(ne,"drawRects");function Z(C,U,_,M,b,L,d,m){if(d.length===0&&m.length===0)return;let v,h;for(const{startTime:Y,endTime:H}of L)(v===void 0||Y<v)&&(v=Y),(h===void 0||H>h)&&(h=H);if(!v||!h)return;if(ee(h).diff(ee(v),"year")>5){Je.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 T=r.db.getDateFormat(),c=[];let l=null,o=ee(v);for(;o.valueOf()<=h;)r.db.isInvalidDate(o,T,d,m)?l?l.end=o:l={start:o,end:o}:l&&(c.push(l),l=null),o=o.add(1,"d");R.append("g").selectAll("rect").data(c).enter().append("rect").attr("id",Y=>"exclude-"+Y.start.format("YYYY-MM-DD")).attr("x",Y=>I(Y.start.startOf("day"))+_).attr("y",i.gridLineStartPadding).attr("width",Y=>I(Y.end.endOf("day"))-I(Y.start.startOf("day"))).attr("height",b-U-i.gridLineStartPadding).attr("transform-origin",function(Y,H){return(I(Y.start)+_+.5*(I(Y.end)-I(Y.start))).toString()+"px "+(H*C+.5*b).toString()+"px"}).attr("class","exclude-range")}f(Z,"drawExcludeDays");function X(C,U,_,M){const b=r.db.getDateFormat(),L=r.db.getAxisFormat();let d;L?d=L:b==="D"?d="%d":d=i.axisFormat??"%Y-%m-%d";let m=ir(I).tickSize(-M+U+i.gridLineStartPadding).tickFormat(et(d));const h=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(r.db.getTickInterval()||i.tickInterval);if(h!==null){const T=h[1],c=h[2],l=r.db.getWeekday()||i.weekday;switch(c){case"millisecond":m.ticks(Fe.every(T));break;case"second":m.ticks(pe.every(T));break;case"minute":m.ticks(We.every(T));break;case"hour":m.ticks(Ye.every(T));break;case"day":m.ticks(ve.every(T));break;case"week":m.ticks(Qt[l].every(T));break;case"month":m.ticks(Ne.every(T));break}}if(R.append("g").attr("class","grid").attr("transform","translate("+C+", "+(M-50)+")").call(m).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 T=rr(I).tickSize(-M+U+i.gridLineStartPadding).tickFormat(et(d));if(h!==null){const c=h[1],l=h[2],o=r.db.getWeekday()||i.weekday;switch(l){case"millisecond":T.ticks(Fe.every(c));break;case"second":T.ticks(pe.every(c));break;case"minute":T.ticks(We.every(c));break;case"hour":T.ticks(Ye.every(c));break;case"day":T.ticks(ve.every(c));break;case"week":T.ticks(Qt[o].every(c));break;case"month":T.ticks(Ne.every(c));break}}R.append("g").attr("class","grid").attr("transform","translate("+C+", "+U+")").call(T).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}f(X,"makeGrid");function $(C,U){let _=0;const M=Object.keys(x).map(b=>[b,x[b]]);R.append("g").selectAll("text").data(M).enter().append(function(b){const L=b[0].split(Nn.lineBreakRegex),d=-(L.length-1)/2,m=S.createElementNS("http://www.w3.org/2000/svg","text");m.setAttribute("dy",d+"em");for(const[v,h]of L.entries()){const T=S.createElementNS("http://www.w3.org/2000/svg","tspan");T.setAttribute("alignment-baseline","central"),T.setAttribute("x","10"),v>0&&T.setAttribute("dy","1em"),T.textContent=h,m.appendChild(T)}return m}).attr("x",10).attr("y",function(b,L){if(L>0)for(let d=0;d<L;d++)return _+=M[L-1][1],b[1]*C/2+_*C+U;else return b[1]*C/2+U}).attr("font-size",i.sectionFontSize).attr("class",function(b){for(const[L,d]of A.entries())if(b[0]===d)return"sectionTitle sectionTitle"+L%i.numberSectionStyles;return"sectionTitle"})}f($,"vertLabels");function w(C,U,_,M){const b=r.db.getTodayMarker();if(b==="off")return;const L=R.append("g").attr("class","today"),d=new Date,m=L.append("line");m.attr("x1",I(d)+C).attr("x2",I(d)+C).attr("y1",i.titleTopMargin).attr("y2",M-i.titleTopMargin).attr("class","today"),b!==""&&m.attr("style",b.replace(/,/g,";"))}f(w,"drawToday");function N(C){const U={},_=[];for(let M=0,b=C.length;M<b;++M)Object.prototype.hasOwnProperty.call(U,C[M])||(U[C[M]]=!0,_.push(C[M]));return _}f(N,"checkUnique")},"draw"),pa={setConf:ga,draw:ka},va=f(e=>`
|
|
.mermaid-main-font {
|
|
font-family: ${e.fontFamily};
|
|
}
|
|
|
|
.exclude-range {
|
|
fill: ${e.excludeBkgColor};
|
|
}
|
|
|
|
.section {
|
|
stroke: none;
|
|
opacity: 0.2;
|
|
}
|
|
|
|
.section0 {
|
|
fill: ${e.sectionBkgColor};
|
|
}
|
|
|
|
.section2 {
|
|
fill: ${e.sectionBkgColor2};
|
|
}
|
|
|
|
.section1,
|
|
.section3 {
|
|
fill: ${e.altSectionBkgColor};
|
|
opacity: 0.2;
|
|
}
|
|
|
|
.sectionTitle0 {
|
|
fill: ${e.titleColor};
|
|
}
|
|
|
|
.sectionTitle1 {
|
|
fill: ${e.titleColor};
|
|
}
|
|
|
|
.sectionTitle2 {
|
|
fill: ${e.titleColor};
|
|
}
|
|
|
|
.sectionTitle3 {
|
|
fill: ${e.titleColor};
|
|
}
|
|
|
|
.sectionTitle {
|
|
text-anchor: start;
|
|
font-family: ${e.fontFamily};
|
|
}
|
|
|
|
|
|
/* Grid and axis */
|
|
|
|
.grid .tick {
|
|
stroke: ${e.gridColor};
|
|
opacity: 0.8;
|
|
shape-rendering: crispEdges;
|
|
}
|
|
|
|
.grid .tick text {
|
|
font-family: ${e.fontFamily};
|
|
fill: ${e.textColor};
|
|
}
|
|
|
|
.grid path {
|
|
stroke-width: 0;
|
|
}
|
|
|
|
|
|
/* Today line */
|
|
|
|
.today {
|
|
fill: none;
|
|
stroke: ${e.todayLineColor};
|
|
stroke-width: 2px;
|
|
}
|
|
|
|
|
|
/* Task styling */
|
|
|
|
/* Default task */
|
|
|
|
.task {
|
|
stroke-width: 2;
|
|
}
|
|
|
|
.taskText {
|
|
text-anchor: middle;
|
|
font-family: ${e.fontFamily};
|
|
}
|
|
|
|
.taskTextOutsideRight {
|
|
fill: ${e.taskTextDarkColor};
|
|
text-anchor: start;
|
|
font-family: ${e.fontFamily};
|
|
}
|
|
|
|
.taskTextOutsideLeft {
|
|
fill: ${e.taskTextDarkColor};
|
|
text-anchor: end;
|
|
}
|
|
|
|
|
|
/* Special case clickable */
|
|
|
|
.task.clickable {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.taskText.clickable {
|
|
cursor: pointer;
|
|
fill: ${e.taskTextClickableColor} !important;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.taskTextOutsideLeft.clickable {
|
|
cursor: pointer;
|
|
fill: ${e.taskTextClickableColor} !important;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.taskTextOutsideRight.clickable {
|
|
cursor: pointer;
|
|
fill: ${e.taskTextClickableColor} !important;
|
|
font-weight: bold;
|
|
}
|
|
|
|
|
|
/* Specific task settings for the sections*/
|
|
|
|
.taskText0,
|
|
.taskText1,
|
|
.taskText2,
|
|
.taskText3 {
|
|
fill: ${e.taskTextColor};
|
|
}
|
|
|
|
.task0,
|
|
.task1,
|
|
.task2,
|
|
.task3 {
|
|
fill: ${e.taskBkgColor};
|
|
stroke: ${e.taskBorderColor};
|
|
}
|
|
|
|
.taskTextOutside0,
|
|
.taskTextOutside2
|
|
{
|
|
fill: ${e.taskTextOutsideColor};
|
|
}
|
|
|
|
.taskTextOutside1,
|
|
.taskTextOutside3 {
|
|
fill: ${e.taskTextOutsideColor};
|
|
}
|
|
|
|
|
|
/* Active task */
|
|
|
|
.active0,
|
|
.active1,
|
|
.active2,
|
|
.active3 {
|
|
fill: ${e.activeTaskBkgColor};
|
|
stroke: ${e.activeTaskBorderColor};
|
|
}
|
|
|
|
.activeText0,
|
|
.activeText1,
|
|
.activeText2,
|
|
.activeText3 {
|
|
fill: ${e.taskTextDarkColor} !important;
|
|
}
|
|
|
|
|
|
/* Completed task */
|
|
|
|
.done0,
|
|
.done1,
|
|
.done2,
|
|
.done3 {
|
|
stroke: ${e.doneTaskBorderColor};
|
|
fill: ${e.doneTaskBkgColor};
|
|
stroke-width: 2;
|
|
}
|
|
|
|
.doneText0,
|
|
.doneText1,
|
|
.doneText2,
|
|
.doneText3 {
|
|
fill: ${e.taskTextDarkColor} !important;
|
|
}
|
|
|
|
|
|
/* Tasks on the critical line */
|
|
|
|
.crit0,
|
|
.crit1,
|
|
.crit2,
|
|
.crit3 {
|
|
stroke: ${e.critBorderColor};
|
|
fill: ${e.critBkgColor};
|
|
stroke-width: 2;
|
|
}
|
|
|
|
.activeCrit0,
|
|
.activeCrit1,
|
|
.activeCrit2,
|
|
.activeCrit3 {
|
|
stroke: ${e.critBorderColor};
|
|
fill: ${e.activeTaskBkgColor};
|
|
stroke-width: 2;
|
|
}
|
|
|
|
.doneCrit0,
|
|
.doneCrit1,
|
|
.doneCrit2,
|
|
.doneCrit3 {
|
|
stroke: ${e.critBorderColor};
|
|
fill: ${e.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: ${e.taskTextDarkColor} !important;
|
|
}
|
|
|
|
.vert {
|
|
stroke: ${e.vertLineColor};
|
|
}
|
|
|
|
.vertText {
|
|
font-size: 15px;
|
|
text-anchor: middle;
|
|
fill: ${e.vertLineColor} !important;
|
|
}
|
|
|
|
.activeCritText0,
|
|
.activeCritText1,
|
|
.activeCritText2,
|
|
.activeCritText3 {
|
|
fill: ${e.taskTextDarkColor} !important;
|
|
}
|
|
|
|
.titleText {
|
|
text-anchor: middle;
|
|
font-size: 18px;
|
|
fill: ${e.titleColor||e.textColor};
|
|
font-family: ${e.fontFamily};
|
|
}
|
|
`,"getStyles"),Ta=va,Da={parser:Ii,db:ma,renderer:pa,styles:Ta};export{Da as diagram};
|